@semcore/d3-chart 16.0.2-prerelease.4 → 16.0.3-prerelease.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 (453) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +1 -50
  3. package/lib/cjs/AnimatedClipPath.js +13 -13
  4. package/lib/cjs/AnimatedClipPath.js.map +1 -1
  5. package/lib/cjs/Area.js +29 -27
  6. package/lib/cjs/Area.js.map +1 -1
  7. package/lib/cjs/Axis.js +97 -101
  8. package/lib/cjs/Axis.js.map +1 -1
  9. package/lib/cjs/Bar.js +31 -32
  10. package/lib/cjs/Bar.js.map +1 -1
  11. package/lib/cjs/Bubble.js +26 -27
  12. package/lib/cjs/Bubble.js.map +1 -1
  13. package/lib/cjs/CompactHorizontalBar.js +65 -68
  14. package/lib/cjs/CompactHorizontalBar.js.map +1 -1
  15. package/lib/cjs/Donut.js +94 -95
  16. package/lib/cjs/Donut.js.map +1 -1
  17. package/lib/cjs/Dots.js +36 -34
  18. package/lib/cjs/Dots.js.map +1 -1
  19. package/lib/cjs/GroupBar.js +16 -16
  20. package/lib/cjs/GroupBar.js.map +1 -1
  21. package/lib/cjs/HorizontalBar.js +30 -31
  22. package/lib/cjs/HorizontalBar.js.map +1 -1
  23. package/lib/cjs/Hover.js +27 -33
  24. package/lib/cjs/Hover.js.map +1 -1
  25. package/lib/cjs/Line.js +23 -23
  26. package/lib/cjs/Line.js.map +1 -1
  27. package/lib/cjs/Pattern.js +13 -11
  28. package/lib/cjs/Pattern.js.map +1 -1
  29. package/lib/cjs/Plot.js +26 -27
  30. package/lib/cjs/Plot.js.map +1 -1
  31. package/lib/cjs/Radar.js +125 -132
  32. package/lib/cjs/Radar.js.map +1 -1
  33. package/lib/cjs/RadialTree.js +164 -145
  34. package/lib/cjs/RadialTree.js.map +1 -1
  35. package/lib/cjs/Reference.js +47 -49
  36. package/lib/cjs/Reference.js.map +1 -1
  37. package/lib/cjs/ResponsiveContainer.js +19 -20
  38. package/lib/cjs/ResponsiveContainer.js.map +1 -1
  39. package/lib/cjs/ScatterPlot.js +24 -25
  40. package/lib/cjs/ScatterPlot.js.map +1 -1
  41. package/lib/cjs/StackBar.js +20 -23
  42. package/lib/cjs/StackBar.js.map +1 -1
  43. package/lib/cjs/StackedArea.js +14 -15
  44. package/lib/cjs/StackedArea.js.map +1 -1
  45. package/lib/cjs/Tooltip.js +34 -35
  46. package/lib/cjs/Tooltip.js.map +1 -1
  47. package/lib/cjs/Venn.js +28 -29
  48. package/lib/cjs/Venn.js.map +1 -1
  49. package/lib/cjs/a11y/DataAccessibilityTable.js +2 -3
  50. package/lib/cjs/a11y/DataAccessibilityTable.js.map +1 -1
  51. package/lib/cjs/a11y/PlotA11yModule.js +11 -12
  52. package/lib/cjs/a11y/PlotA11yModule.js.map +1 -1
  53. package/lib/cjs/a11y/PlotA11yView.js +10 -11
  54. package/lib/cjs/a11y/PlotA11yView.js.map +1 -1
  55. package/lib/cjs/a11y/bezier.js +1 -2
  56. package/lib/cjs/a11y/bezier.js.map +1 -1
  57. package/lib/cjs/a11y/focus.js +4 -5
  58. package/lib/cjs/a11y/focus.js.map +1 -1
  59. package/lib/cjs/a11y/hints.js +5 -8
  60. package/lib/cjs/a11y/hints.js.map +1 -1
  61. package/lib/cjs/a11y/insights.js +63 -64
  62. package/lib/cjs/a11y/insights.js.map +1 -1
  63. package/lib/cjs/a11y/intl.js +1 -2
  64. package/lib/cjs/a11y/intl.js.map +1 -1
  65. package/lib/cjs/a11y/locale.js +4 -5
  66. package/lib/cjs/a11y/locale.js.map +1 -1
  67. package/lib/cjs/a11y/serialize.js +15 -17
  68. package/lib/cjs/a11y/serialize.js.map +1 -1
  69. package/lib/cjs/a11y/summarize.js +1 -2
  70. package/lib/cjs/a11y/summarize.js.map +1 -1
  71. package/lib/cjs/a11y/translations/module/__intergalactic-dynamic-locales.js +4 -5
  72. package/lib/cjs/a11y/translations/module/__intergalactic-dynamic-locales.js.map +1 -1
  73. package/lib/cjs/a11y/translations/view/__intergalactic-dynamic-locales.js +4 -5
  74. package/lib/cjs/a11y/translations/view/__intergalactic-dynamic-locales.js.map +1 -1
  75. package/lib/cjs/color.js +2 -3
  76. package/lib/cjs/color.js.map +1 -1
  77. package/lib/cjs/component/Chart/AbstractChart.js +43 -46
  78. package/lib/cjs/component/Chart/AbstractChart.js.map +1 -1
  79. package/lib/cjs/component/Chart/AbstractChart.type.js.map +1 -1
  80. package/lib/cjs/component/Chart/AreaChart.js +17 -20
  81. package/lib/cjs/component/Chart/AreaChart.js.map +1 -1
  82. package/lib/cjs/component/Chart/AreaChart.type.js.map +1 -1
  83. package/lib/cjs/component/Chart/BarChart.js +17 -21
  84. package/lib/cjs/component/Chart/BarChart.js.map +1 -1
  85. package/lib/cjs/component/Chart/BarChart.type.js.map +1 -1
  86. package/lib/cjs/component/Chart/BubbleChart.js +18 -19
  87. package/lib/cjs/component/Chart/BubbleChart.js.map +1 -1
  88. package/lib/cjs/component/Chart/BubbleChart.type.js.map +1 -1
  89. package/lib/cjs/component/Chart/CigaretteChart.js +19 -23
  90. package/lib/cjs/component/Chart/CigaretteChart.js.map +1 -1
  91. package/lib/cjs/component/Chart/CigaretteChart.type.js.map +1 -1
  92. package/lib/cjs/component/Chart/CompactHorizontalBarChart.js +13 -14
  93. package/lib/cjs/component/Chart/CompactHorizontalBarChart.js.map +1 -1
  94. package/lib/cjs/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
  95. package/lib/cjs/component/Chart/DonutChart.js +13 -14
  96. package/lib/cjs/component/Chart/DonutChart.js.map +1 -1
  97. package/lib/cjs/component/Chart/DonutChart.type.js.map +1 -1
  98. package/lib/cjs/component/Chart/HistogramChart.js +15 -16
  99. package/lib/cjs/component/Chart/HistogramChart.js.map +1 -1
  100. package/lib/cjs/component/Chart/HistogramChart.type.js.map +1 -1
  101. package/lib/cjs/component/Chart/LineChart.js +17 -18
  102. package/lib/cjs/component/Chart/LineChart.js.map +1 -1
  103. package/lib/cjs/component/Chart/LineChart.type.js.map +1 -1
  104. package/lib/cjs/component/Chart/RadarChart.js +14 -17
  105. package/lib/cjs/component/Chart/RadarChart.js.map +1 -1
  106. package/lib/cjs/component/Chart/RadarChart.type.js.map +1 -1
  107. package/lib/cjs/component/Chart/ScatterPlotChart.js +14 -15
  108. package/lib/cjs/component/Chart/ScatterPlotChart.js.map +1 -1
  109. package/lib/cjs/component/Chart/ScatterPlotChart.type.js.map +1 -1
  110. package/lib/cjs/component/Chart/VennChart.js +12 -13
  111. package/lib/cjs/component/Chart/VennChart.js.map +1 -1
  112. package/lib/cjs/component/Chart/VennChart.type.js.map +1 -1
  113. package/lib/cjs/component/Chart/index.js +7 -8
  114. package/lib/cjs/component/Chart/index.js.map +1 -1
  115. package/lib/cjs/component/ChartLegend/BaseLegend.js +42 -20
  116. package/lib/cjs/component/ChartLegend/BaseLegend.js.map +1 -1
  117. package/lib/cjs/component/ChartLegend/BaseLegend.type.js.map +1 -1
  118. package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +20 -20
  119. package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
  120. package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.type.js.map +1 -1
  121. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +79 -67
  122. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
  123. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js +1 -2
  124. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
  125. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +18 -18
  126. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
  127. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
  128. package/lib/cjs/component/ChartLegend/index.js +1 -2
  129. package/lib/cjs/component/ChartLegend/index.js.map +1 -1
  130. package/lib/cjs/component/Cigarette/Cigarette.js +18 -19
  131. package/lib/cjs/component/Cigarette/Cigarette.js.map +1 -1
  132. package/lib/cjs/component/StackGroupBar/StackGroupBar.js +22 -26
  133. package/lib/cjs/component/StackGroupBar/StackGroupBar.js.map +1 -1
  134. package/lib/cjs/component/StackGroupBar/StackGroupBar.type.js.map +1 -1
  135. package/lib/cjs/component/SvgElement.js +21 -0
  136. package/lib/cjs/component/SvgElement.js.map +1 -0
  137. package/lib/cjs/createElement.d.js.map +1 -1
  138. package/lib/cjs/createElement.js +7 -8
  139. package/lib/cjs/createElement.js.map +1 -1
  140. package/lib/cjs/index.js +9 -2
  141. package/lib/cjs/index.js.map +1 -1
  142. package/lib/cjs/translations/__intergalactic-dynamic-locales.js +4 -5
  143. package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
  144. package/lib/cjs/types/Area.d.js.map +1 -1
  145. package/lib/cjs/types/Axis.d.js.map +1 -1
  146. package/lib/cjs/types/Bar.d.js.map +1 -1
  147. package/lib/cjs/types/Bubble.d.js.map +1 -1
  148. package/lib/cjs/types/ClipPath.d.js.map +1 -1
  149. package/lib/cjs/types/CompactHorizontalBar.d.js.map +1 -1
  150. package/lib/cjs/types/Donut.d.js.map +1 -1
  151. package/lib/cjs/types/GroupBar.d.js.map +1 -1
  152. package/lib/cjs/types/HorizontalBar.d.js.map +1 -1
  153. package/lib/cjs/types/Hover.d.js.map +1 -1
  154. package/lib/cjs/types/Line.d.js.map +1 -1
  155. package/lib/cjs/types/Plot.d.js.map +1 -1
  156. package/lib/cjs/types/Radar.d.js.map +1 -1
  157. package/lib/cjs/types/Reference.d.js.map +1 -1
  158. package/lib/cjs/types/ResponsiveContainer.d.js.map +1 -1
  159. package/lib/cjs/types/ScatterPlot.d.js.map +1 -1
  160. package/lib/cjs/types/StackBar.d.js.map +1 -1
  161. package/lib/cjs/types/StackedArea.d.js.map +1 -1
  162. package/lib/cjs/types/Tooltip.d.js.map +1 -1
  163. package/lib/cjs/types/Venn.d.js.map +1 -1
  164. package/lib/cjs/types/context.d.js.map +1 -1
  165. package/lib/cjs/types/index.d.js +2 -2
  166. package/lib/cjs/types/index.d.js.map +1 -1
  167. package/lib/cjs/utils.js +31 -52
  168. package/lib/cjs/utils.js.map +1 -1
  169. package/lib/es6/AnimatedClipPath.js +11 -10
  170. package/lib/es6/AnimatedClipPath.js.map +1 -1
  171. package/lib/es6/Area.js +27 -24
  172. package/lib/es6/Area.js.map +1 -1
  173. package/lib/es6/Axis.js +96 -98
  174. package/lib/es6/Axis.js.map +1 -1
  175. package/lib/es6/Bar.js +28 -27
  176. package/lib/es6/Bar.js.map +1 -1
  177. package/lib/es6/Bubble.js +24 -24
  178. package/lib/es6/Bubble.js.map +1 -1
  179. package/lib/es6/CompactHorizontalBar.js +63 -65
  180. package/lib/es6/CompactHorizontalBar.js.map +1 -1
  181. package/lib/es6/Donut.js +92 -92
  182. package/lib/es6/Donut.js.map +1 -1
  183. package/lib/es6/Dots.js +36 -33
  184. package/lib/es6/Dots.js.map +1 -1
  185. package/lib/es6/GroupBar.js +14 -13
  186. package/lib/es6/GroupBar.js.map +1 -1
  187. package/lib/es6/HorizontalBar.js +27 -26
  188. package/lib/es6/HorizontalBar.js.map +1 -1
  189. package/lib/es6/Hover.js +24 -28
  190. package/lib/es6/Hover.js.map +1 -1
  191. package/lib/es6/Line.js +20 -19
  192. package/lib/es6/Line.js.map +1 -1
  193. package/lib/es6/Pattern.js +4 -2
  194. package/lib/es6/Pattern.js.map +1 -1
  195. package/lib/es6/Plot.js +25 -25
  196. package/lib/es6/Plot.js.map +1 -1
  197. package/lib/es6/Radar.js +122 -128
  198. package/lib/es6/Radar.js.map +1 -1
  199. package/lib/es6/RadialTree.js +162 -142
  200. package/lib/es6/RadialTree.js.map +1 -1
  201. package/lib/es6/Reference.js +44 -43
  202. package/lib/es6/Reference.js.map +1 -1
  203. package/lib/es6/ResponsiveContainer.js +17 -17
  204. package/lib/es6/ResponsiveContainer.js.map +1 -1
  205. package/lib/es6/ScatterPlot.js +22 -22
  206. package/lib/es6/ScatterPlot.js.map +1 -1
  207. package/lib/es6/StackBar.js +17 -19
  208. package/lib/es6/StackBar.js.map +1 -1
  209. package/lib/es6/StackedArea.js +12 -12
  210. package/lib/es6/StackedArea.js.map +1 -1
  211. package/lib/es6/Tooltip.js +33 -33
  212. package/lib/es6/Tooltip.js.map +1 -1
  213. package/lib/es6/Venn.js +26 -26
  214. package/lib/es6/Venn.js.map +1 -1
  215. package/lib/es6/a11y/DataAccessibilityTable.js.map +1 -1
  216. package/lib/es6/a11y/PlotA11yModule.js +11 -11
  217. package/lib/es6/a11y/PlotA11yModule.js.map +1 -1
  218. package/lib/es6/a11y/PlotA11yView.js +9 -9
  219. package/lib/es6/a11y/PlotA11yView.js.map +1 -1
  220. package/lib/es6/a11y/bezier.js.map +1 -1
  221. package/lib/es6/a11y/focus.js +3 -3
  222. package/lib/es6/a11y/focus.js.map +1 -1
  223. package/lib/es6/a11y/hints.js +1 -1
  224. package/lib/es6/a11y/hints.js.map +1 -1
  225. package/lib/es6/a11y/insights.js +61 -61
  226. package/lib/es6/a11y/insights.js.map +1 -1
  227. package/lib/es6/a11y/intl.js.map +1 -1
  228. package/lib/es6/a11y/locale.js +2 -2
  229. package/lib/es6/a11y/locale.js.map +1 -1
  230. package/lib/es6/a11y/serialize.js +14 -13
  231. package/lib/es6/a11y/serialize.js.map +1 -1
  232. package/lib/es6/a11y/summarize.js.map +1 -1
  233. package/lib/es6/a11y/translations/module/__intergalactic-dynamic-locales.js +2 -2
  234. package/lib/es6/a11y/translations/module/__intergalactic-dynamic-locales.js.map +1 -1
  235. package/lib/es6/a11y/translations/view/__intergalactic-dynamic-locales.js +2 -2
  236. package/lib/es6/a11y/translations/view/__intergalactic-dynamic-locales.js.map +1 -1
  237. package/lib/es6/color.js +1 -1
  238. package/lib/es6/color.js.map +1 -1
  239. package/lib/es6/component/Chart/AbstractChart.js +40 -41
  240. package/lib/es6/component/Chart/AbstractChart.js.map +1 -1
  241. package/lib/es6/component/Chart/AbstractChart.type.js.map +1 -1
  242. package/lib/es6/component/Chart/AreaChart.js +16 -16
  243. package/lib/es6/component/Chart/AreaChart.js.map +1 -1
  244. package/lib/es6/component/Chart/AreaChart.type.js.map +1 -1
  245. package/lib/es6/component/Chart/BarChart.js +15 -17
  246. package/lib/es6/component/Chart/BarChart.js.map +1 -1
  247. package/lib/es6/component/Chart/BarChart.type.js.map +1 -1
  248. package/lib/es6/component/Chart/BubbleChart.js +17 -15
  249. package/lib/es6/component/Chart/BubbleChart.js.map +1 -1
  250. package/lib/es6/component/Chart/BubbleChart.type.js.map +1 -1
  251. package/lib/es6/component/Chart/CigaretteChart.js +17 -17
  252. package/lib/es6/component/Chart/CigaretteChart.js.map +1 -1
  253. package/lib/es6/component/Chart/CigaretteChart.type.js.map +1 -1
  254. package/lib/es6/component/Chart/CompactHorizontalBarChart.js +11 -10
  255. package/lib/es6/component/Chart/CompactHorizontalBarChart.js.map +1 -1
  256. package/lib/es6/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
  257. package/lib/es6/component/Chart/DonutChart.js +12 -10
  258. package/lib/es6/component/Chart/DonutChart.js.map +1 -1
  259. package/lib/es6/component/Chart/DonutChart.type.js.map +1 -1
  260. package/lib/es6/component/Chart/HistogramChart.js +14 -12
  261. package/lib/es6/component/Chart/HistogramChart.js.map +1 -1
  262. package/lib/es6/component/Chart/HistogramChart.type.js.map +1 -1
  263. package/lib/es6/component/Chart/LineChart.js +15 -14
  264. package/lib/es6/component/Chart/LineChart.js.map +1 -1
  265. package/lib/es6/component/Chart/LineChart.type.js.map +1 -1
  266. package/lib/es6/component/Chart/RadarChart.js +12 -13
  267. package/lib/es6/component/Chart/RadarChart.js.map +1 -1
  268. package/lib/es6/component/Chart/RadarChart.type.js.map +1 -1
  269. package/lib/es6/component/Chart/ScatterPlotChart.js +13 -11
  270. package/lib/es6/component/Chart/ScatterPlotChart.js.map +1 -1
  271. package/lib/es6/component/Chart/ScatterPlotChart.type.js.map +1 -1
  272. package/lib/es6/component/Chart/VennChart.js +10 -9
  273. package/lib/es6/component/Chart/VennChart.js.map +1 -1
  274. package/lib/es6/component/Chart/VennChart.type.js.map +1 -1
  275. package/lib/es6/component/Chart/index.js +6 -6
  276. package/lib/es6/component/Chart/index.js.map +1 -1
  277. package/lib/es6/component/ChartLegend/BaseLegend.js +40 -17
  278. package/lib/es6/component/ChartLegend/BaseLegend.js.map +1 -1
  279. package/lib/es6/component/ChartLegend/BaseLegend.type.js.map +1 -1
  280. package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +18 -17
  281. package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
  282. package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.type.js.map +1 -1
  283. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +77 -64
  284. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
  285. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
  286. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +16 -15
  287. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
  288. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
  289. package/lib/es6/component/ChartLegend/index.js.map +1 -1
  290. package/lib/es6/component/Cigarette/Cigarette.js +16 -16
  291. package/lib/es6/component/Cigarette/Cigarette.js.map +1 -1
  292. package/lib/es6/component/StackGroupBar/StackGroupBar.js +20 -21
  293. package/lib/es6/component/StackGroupBar/StackGroupBar.js.map +1 -1
  294. package/lib/es6/component/StackGroupBar/StackGroupBar.type.js.map +1 -1
  295. package/lib/es6/component/SvgElement.js +14 -0
  296. package/lib/es6/component/SvgElement.js.map +1 -0
  297. package/lib/es6/createElement.d.js.map +1 -1
  298. package/lib/es6/createElement.js +5 -5
  299. package/lib/es6/createElement.js.map +1 -1
  300. package/lib/es6/index.js +1 -0
  301. package/lib/es6/index.js.map +1 -1
  302. package/lib/es6/translations/__intergalactic-dynamic-locales.js +2 -2
  303. package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
  304. package/lib/es6/types/Area.d.js.map +1 -1
  305. package/lib/es6/types/Axis.d.js.map +1 -1
  306. package/lib/es6/types/Bar.d.js.map +1 -1
  307. package/lib/es6/types/Bubble.d.js.map +1 -1
  308. package/lib/es6/types/ClipPath.d.js.map +1 -1
  309. package/lib/es6/types/CompactHorizontalBar.d.js.map +1 -1
  310. package/lib/es6/types/Donut.d.js.map +1 -1
  311. package/lib/es6/types/GroupBar.d.js.map +1 -1
  312. package/lib/es6/types/HorizontalBar.d.js.map +1 -1
  313. package/lib/es6/types/Hover.d.js.map +1 -1
  314. package/lib/es6/types/Line.d.js.map +1 -1
  315. package/lib/es6/types/Plot.d.js.map +1 -1
  316. package/lib/es6/types/Radar.d.js.map +1 -1
  317. package/lib/es6/types/Reference.d.js.map +1 -1
  318. package/lib/es6/types/ResponsiveContainer.d.js.map +1 -1
  319. package/lib/es6/types/ScatterPlot.d.js.map +1 -1
  320. package/lib/es6/types/StackBar.d.js.map +1 -1
  321. package/lib/es6/types/StackedArea.d.js.map +1 -1
  322. package/lib/es6/types/Tooltip.d.js.map +1 -1
  323. package/lib/es6/types/Venn.d.js.map +1 -1
  324. package/lib/es6/types/context.d.js.map +1 -1
  325. package/lib/es6/types/index.d.js +1 -0
  326. package/lib/es6/types/index.d.js.map +1 -1
  327. package/lib/es6/utils.js +11 -13
  328. package/lib/es6/utils.js.map +1 -1
  329. package/lib/esm/AnimatedClipPath.mjs +10 -7
  330. package/lib/esm/Area.mjs +30 -25
  331. package/lib/esm/Axis.mjs +67 -67
  332. package/lib/esm/Bar.mjs +31 -28
  333. package/lib/esm/Bubble.mjs +28 -26
  334. package/lib/esm/CompactHorizontalBar.mjs +61 -60
  335. package/lib/esm/Donut.mjs +50 -49
  336. package/lib/esm/Dots.mjs +32 -27
  337. package/lib/esm/GroupBar.mjs +14 -11
  338. package/lib/esm/HorizontalBar.mjs +30 -27
  339. package/lib/esm/Hover.mjs +28 -30
  340. package/lib/esm/Line.mjs +23 -20
  341. package/lib/esm/Pattern.mjs +1 -1
  342. package/lib/esm/Plot.mjs +27 -25
  343. package/lib/esm/Radar.mjs +90 -94
  344. package/lib/esm/RadialTree.mjs +86 -86
  345. package/lib/esm/Reference.mjs +34 -31
  346. package/lib/esm/ResponsiveContainer.mjs +19 -17
  347. package/lib/esm/ScatterPlot.mjs +26 -24
  348. package/lib/esm/StackBar.mjs +17 -17
  349. package/lib/esm/StackedArea.mjs +13 -11
  350. package/lib/esm/Tooltip.mjs +35 -33
  351. package/lib/esm/Venn.mjs +29 -27
  352. package/lib/esm/a11y/DataAccessibilityTable.mjs +2 -2
  353. package/lib/esm/a11y/PlotA11yModule.mjs +8 -8
  354. package/lib/esm/a11y/PlotA11yView.mjs +9 -9
  355. package/lib/esm/a11y/focus.mjs +3 -3
  356. package/lib/esm/a11y/hints.mjs +1 -1
  357. package/lib/esm/a11y/insights.mjs +77 -78
  358. package/lib/esm/a11y/intl.mjs +1 -1
  359. package/lib/esm/a11y/locale.mjs +2 -2
  360. package/lib/esm/a11y/serialize.mjs +12 -12
  361. package/lib/esm/a11y/translations/module/__intergalactic-dynamic-locales.mjs +2 -2
  362. package/lib/esm/a11y/translations/view/__intergalactic-dynamic-locales.mjs +2 -2
  363. package/lib/esm/component/Chart/AbstractChart.mjs +38 -37
  364. package/lib/esm/component/Chart/AreaChart.mjs +19 -15
  365. package/lib/esm/component/Chart/BarChart.mjs +20 -17
  366. package/lib/esm/component/Chart/BubbleChart.mjs +16 -13
  367. package/lib/esm/component/Chart/CigaretteChart.mjs +24 -17
  368. package/lib/esm/component/Chart/CompactHorizontalBarChart.mjs +18 -10
  369. package/lib/esm/component/Chart/DonutChart.mjs +13 -10
  370. package/lib/esm/component/Chart/HistogramChart.mjs +18 -12
  371. package/lib/esm/component/Chart/LineChart.mjs +18 -12
  372. package/lib/esm/component/Chart/RadarChart.mjs +19 -12
  373. package/lib/esm/component/Chart/ScatterPlotChart.mjs +14 -11
  374. package/lib/esm/component/Chart/VennChart.mjs +12 -9
  375. package/lib/esm/component/Chart/index.mjs +6 -6
  376. package/lib/esm/component/ChartLegend/BaseLegend.mjs +42 -17
  377. package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +21 -18
  378. package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +67 -56
  379. package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +23 -20
  380. package/lib/esm/component/Cigarette/Cigarette.mjs +18 -16
  381. package/lib/esm/component/StackGroupBar/StackGroupBar.mjs +20 -19
  382. package/lib/esm/component/SvgElement.mjs +14 -0
  383. package/lib/esm/createElement.mjs +5 -5
  384. package/lib/esm/index.mjs +2 -0
  385. package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +2 -2
  386. package/lib/esm/utils.mjs +8 -8
  387. package/lib/types/Area.d.ts +7 -6
  388. package/lib/types/Axis.d.ts +4 -3
  389. package/lib/types/Bar.d.ts +7 -6
  390. package/lib/types/Bubble.d.ts +6 -5
  391. package/lib/types/ClipPath.d.ts +4 -3
  392. package/lib/types/CompactHorizontalBar.d.ts +7 -8
  393. package/lib/types/Donut.d.ts +6 -5
  394. package/lib/types/GroupBar.d.ts +6 -6
  395. package/lib/types/HorizontalBar.d.ts +7 -6
  396. package/lib/types/Hover.d.ts +8 -8
  397. package/lib/types/Line.d.ts +7 -6
  398. package/lib/types/Pattern.d.ts +51 -51
  399. package/lib/types/Plot.d.ts +10 -9
  400. package/lib/types/Radar.d.ts +8 -7
  401. package/lib/types/RadialTree.d.ts +9 -54
  402. package/lib/types/Reference.d.ts +5 -4
  403. package/lib/types/ResponsiveContainer.d.ts +5 -4
  404. package/lib/types/ScatterPlot.d.ts +6 -5
  405. package/lib/types/StackBar.d.ts +7 -6
  406. package/lib/types/StackedArea.d.ts +6 -5
  407. package/lib/types/Tooltip.d.ts +14 -12
  408. package/lib/types/Venn.d.ts +7 -6
  409. package/lib/types/a11y/DataAccessibilityTable.d.ts +2 -2
  410. package/lib/types/a11y/PlotA11yModule.d.ts +1 -1
  411. package/lib/types/a11y/hints.d.ts +5 -5
  412. package/lib/types/a11y/insights.d.ts +1 -1
  413. package/lib/types/a11y/intl.d.ts +1 -1
  414. package/lib/types/a11y/serialize.d.ts +7 -7
  415. package/lib/types/a11y/summarize.d.ts +2 -2
  416. package/lib/types/component/Chart/AbstractChart.d.ts +6 -6
  417. package/lib/types/component/Chart/AbstractChart.type.d.ts +27 -27
  418. package/lib/types/component/Chart/AreaChart.d.ts +1 -1
  419. package/lib/types/component/Chart/AreaChart.type.d.ts +6 -6
  420. package/lib/types/component/Chart/BarChart.d.ts +1 -1
  421. package/lib/types/component/Chart/BarChart.type.d.ts +6 -6
  422. package/lib/types/component/Chart/BubbleChart.d.ts +1 -1
  423. package/lib/types/component/Chart/BubbleChart.type.d.ts +4 -4
  424. package/lib/types/component/Chart/CigaretteChart.d.ts +1 -1
  425. package/lib/types/component/Chart/CigaretteChart.type.d.ts +4 -4
  426. package/lib/types/component/Chart/CompactHorizontalBarChart.d.ts +1 -1
  427. package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts +5 -5
  428. package/lib/types/component/Chart/DonutChart.d.ts +1 -1
  429. package/lib/types/component/Chart/DonutChart.type.d.ts +5 -5
  430. package/lib/types/component/Chart/HistogramChart.d.ts +1 -1
  431. package/lib/types/component/Chart/HistogramChart.type.d.ts +4 -4
  432. package/lib/types/component/Chart/LineChart.d.ts +1 -1
  433. package/lib/types/component/Chart/LineChart.type.d.ts +7 -7
  434. package/lib/types/component/Chart/RadarChart.d.ts +1 -1
  435. package/lib/types/component/Chart/RadarChart.type.d.ts +4 -4
  436. package/lib/types/component/Chart/ScatterPlotChart.d.ts +1 -1
  437. package/lib/types/component/Chart/ScatterPlotChart.type.d.ts +5 -5
  438. package/lib/types/component/Chart/VennChart.d.ts +1 -1
  439. package/lib/types/component/Chart/VennChart.type.d.ts +4 -4
  440. package/lib/types/component/ChartLegend/BaseLegend.d.ts +6 -4
  441. package/lib/types/component/ChartLegend/BaseLegend.type.d.ts +4 -5
  442. package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.d.ts +1 -1
  443. package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.type.d.ts +4 -5
  444. package/lib/types/component/ChartLegend/LegendItem/LegendItem.d.ts +1 -1
  445. package/lib/types/component/ChartLegend/LegendItem/LegendItem.type.d.ts +17 -10
  446. package/lib/types/component/ChartLegend/LegendTable/LegendTable.d.ts +1 -1
  447. package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts +5 -5
  448. package/lib/types/component/StackGroupBar/StackGroupBar.d.ts +1 -1
  449. package/lib/types/component/StackGroupBar/StackGroupBar.type.d.ts +3 -4
  450. package/lib/types/component/SvgElement.d.ts +10 -0
  451. package/lib/types/index.d.ts +2 -1
  452. package/lib/types/utils.d.ts +6 -6
  453. package/package.json +22 -23
@@ -2,26 +2,30 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
2
  import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
3
3
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
4
4
  import _createClass from "@babel/runtime/helpers/esm/createClass";
5
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
6
+ import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
7
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
5
8
  import _inherits from "@babel/runtime/helpers/esm/inherits";
6
- import _createSuper from "@babel/runtime/helpers/esm/createSuper";
7
9
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
8
- import React from "react";
9
10
  import { createComponent } from "@semcore/core";
11
+ import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
12
+ import { Text } from "@semcore/typography";
10
13
  import { scaleTime, scaleLinear } from "d3-scale";
14
+ import React from "react";
11
15
  import ScatterPlot from "../../ScatterPlot.mjs";
12
16
  import { getScatterPlotRadius, minMax } from "../../utils.mjs";
13
17
  import { AbstractChart } from "./AbstractChart.mjs";
14
- import { Text } from "@semcore/typography";
15
- import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
16
18
  import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
19
+ function _callSuper(t, o, e) {
20
+ return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
21
+ }
17
22
  var ScatterPlotChartComponent = /* @__PURE__ */ function(_AbstractChart) {
18
- _inherits(ScatterPlotChartComponent2, _AbstractChart);
19
- var _super = _createSuper(ScatterPlotChartComponent2);
20
23
  function ScatterPlotChartComponent2() {
21
24
  _classCallCheck(this, ScatterPlotChartComponent2);
22
- return _super.apply(this, arguments);
25
+ return _callSuper(this, ScatterPlotChartComponent2, arguments);
23
26
  }
24
- _createClass(ScatterPlotChartComponent2, [{
27
+ _inherits(ScatterPlotChartComponent2, _AbstractChart);
28
+ return _createClass(ScatterPlotChartComponent2, [{
25
29
  key: "dataKeys",
26
30
  get: function get() {
27
31
  var _this$props = this.props, data = _this$props.data, groupKey = _this$props.groupKey, valueKey = _this$props.valueKey;
@@ -112,9 +116,9 @@ var ScatterPlotChartComponent = /* @__PURE__ */ function(_AbstractChart) {
112
116
  color: item.color
113
117
  }, "Data"), /* @__PURE__ */ React.createElement(Text, {
114
118
  tag: "div"
115
- }, "X axis ", _this.tooltipValueFormatter(data[index][x])), /* @__PURE__ */ React.createElement(Text, {
119
+ }, "X axis", _this.tooltipValueFormatter(data[index][x])), /* @__PURE__ */ React.createElement(Text, {
116
120
  tag: "div"
117
- }, "Y axis ", _this.tooltipValueFormatter(data[index][y])))
121
+ }, "Y axis", _this.tooltipValueFormatter(data[index][y])))
118
122
  };
119
123
  });
120
124
  });
@@ -127,7 +131,6 @@ var ScatterPlotChartComponent = /* @__PURE__ */ function(_AbstractChart) {
127
131
  });
128
132
  }
129
133
  }]);
130
- return ScatterPlotChartComponent2;
131
134
  }(AbstractChart);
132
135
  _defineProperty(ScatterPlotChartComponent, "displayName", "Chart.ScatterPlot");
133
136
  _defineProperty(ScatterPlotChartComponent, "defaultProps", {
@@ -1,24 +1,28 @@
1
1
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/esm/createClass";
3
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
4
+ import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
5
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
3
6
  import _inherits from "@babel/runtime/helpers/esm/inherits";
4
- import _createSuper from "@babel/runtime/helpers/esm/createSuper";
5
7
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
6
- import React from "react";
7
8
  import { createComponent } from "@semcore/core";
9
+ import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
10
+ import { Text } from "@semcore/typography";
8
11
  import { scaleLinear } from "d3-scale";
12
+ import React from "react";
9
13
  import Venn from "../../Venn.mjs";
10
14
  import { AbstractChart } from "./AbstractChart.mjs";
11
- import { Text } from "@semcore/typography";
12
- import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
13
15
  import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
16
+ function _callSuper(t, o, e) {
17
+ return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
18
+ }
14
19
  var VennChartComponent = /* @__PURE__ */ function(_AbstractChart) {
15
- _inherits(VennChartComponent2, _AbstractChart);
16
- var _super = _createSuper(VennChartComponent2);
17
20
  function VennChartComponent2() {
18
21
  _classCallCheck(this, VennChartComponent2);
19
- return _super.apply(this, arguments);
22
+ return _callSuper(this, VennChartComponent2, arguments);
20
23
  }
21
- _createClass(VennChartComponent2, [{
24
+ _inherits(VennChartComponent2, _AbstractChart);
25
+ return _createClass(VennChartComponent2, [{
22
26
  key: "xScale",
23
27
  get: function get() {
24
28
  var xScale = this.asProps.xScale;
@@ -125,7 +129,6 @@ var VennChartComponent = /* @__PURE__ */ function(_AbstractChart) {
125
129
  });
126
130
  }
127
131
  }]);
128
- return VennChartComponent2;
129
132
  }(AbstractChart);
130
133
  _defineProperty(VennChartComponent, "displayName", "Chart.Venn");
131
134
  _defineProperty(VennChartComponent, "defaultProps", {
@@ -1,14 +1,14 @@
1
- import { LineChart } from "./LineChart.mjs";
1
+ import { AreaChart } from "./AreaChart.mjs";
2
2
  import { BarChart } from "./BarChart.mjs";
3
+ import { BubbleChart } from "./BubbleChart.mjs";
4
+ import { CigaretteChart } from "./CigaretteChart.mjs";
3
5
  import { CompactHorizontalBarChart } from "./CompactHorizontalBarChart.mjs";
6
+ import { DonutChart } from "./DonutChart.mjs";
4
7
  import { HistogramChart } from "./HistogramChart.mjs";
8
+ import { LineChart } from "./LineChart.mjs";
9
+ import { RadarChart } from "./RadarChart.mjs";
5
10
  import { ScatterPlotChart } from "./ScatterPlotChart.mjs";
6
- import { AreaChart } from "./AreaChart.mjs";
7
- import { BubbleChart } from "./BubbleChart.mjs";
8
- import { DonutChart } from "./DonutChart.mjs";
9
11
  import { VennChart } from "./VennChart.mjs";
10
- import { RadarChart } from "./RadarChart.mjs";
11
- import { CigaretteChart } from "./CigaretteChart.mjs";
12
12
  const index = {
13
13
  Line: LineChart,
14
14
  Bar: BarChart,
@@ -1,41 +1,65 @@
1
1
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
2
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
3
3
  import _createClass from "@babel/runtime/helpers/esm/createClass";
4
- import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
4
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
5
+ import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
6
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
5
7
  import _inherits from "@babel/runtime/helpers/esm/inherits";
6
- import _createSuper from "@babel/runtime/helpers/esm/createSuper";
7
8
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
8
9
  import { Component } from "@semcore/core";
9
10
  import { makeDataHintsHandlers } from "../../a11y/hints.mjs";
11
+ function _callSuper(t, o, e) {
12
+ return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
13
+ }
10
14
  var BaseLegend = /* @__PURE__ */ function(_Component) {
11
- _inherits(BaseLegend2, _Component);
12
- var _super = _createSuper(BaseLegend2);
13
15
  function BaseLegend2() {
14
16
  var _this;
15
17
  _classCallCheck(this, BaseLegend2);
16
18
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
17
19
  args[_key] = arguments[_key];
18
20
  }
19
- _this = _super.call.apply(_super, [this].concat(args));
20
- _defineProperty(_assertThisInitialized(_this), "onChangeLegendItem", function(id, checked) {
21
+ _this = _callSuper(this, BaseLegend2, [].concat(args));
22
+ _defineProperty(_this, "onChangeLegendItem", function(id, checked) {
21
23
  var _this$props$onChangeV, _this$props;
22
- (_this$props$onChangeV = (_this$props = _this.props).onChangeVisibleItem) === null || _this$props$onChangeV === void 0 ? void 0 : _this$props$onChangeV.call(_this$props, id, checked);
24
+ (_this$props$onChangeV = (_this$props = _this.props).onChangeVisibleItem) === null || _this$props$onChangeV === void 0 || _this$props$onChangeV.call(_this$props, id, checked);
25
+ if (checked) {
26
+ var _this$props$onMouseEn, _this$props2;
27
+ (_this$props$onMouseEn = (_this$props2 = _this.props).onMouseEnterItem) === null || _this$props$onMouseEn === void 0 || _this$props$onMouseEn.call(_this$props2, id);
28
+ } else {
29
+ var _this$props$onMouseLe, _this$props3;
30
+ (_this$props$onMouseLe = (_this$props3 = _this.props).onMouseLeaveItem) === null || _this$props$onMouseLe === void 0 || _this$props$onMouseLe.call(_this$props3, id);
31
+ }
32
+ });
33
+ _defineProperty(_this, "onFocusLegendItem", function(checked) {
34
+ return function(id) {
35
+ var _this$props$onMouseEn2, _this$props5;
36
+ if (!checked) {
37
+ var _this$props$onMouseLe2, _this$props4;
38
+ return (_this$props$onMouseLe2 = (_this$props4 = _this.props).onMouseLeaveItem) === null || _this$props$onMouseLe2 === void 0 ? void 0 : _this$props$onMouseLe2.call(_this$props4, id);
39
+ }
40
+ (_this$props$onMouseEn2 = (_this$props5 = _this.props).onMouseEnterItem) === null || _this$props$onMouseEn2 === void 0 || _this$props$onMouseEn2.call(_this$props5, id);
41
+ };
42
+ });
43
+ _defineProperty(_this, "onBlurLegendItem", function(id) {
44
+ var _this$props$onMouseLe3, _this$props6;
45
+ (_this$props$onMouseLe3 = (_this$props6 = _this.props).onMouseLeaveItem) === null || _this$props$onMouseLe3 === void 0 || _this$props$onMouseLe3.call(_this$props6, id);
23
46
  });
24
- _defineProperty(_assertThisInitialized(_this), "bindOnMouseEnterItem", function(id) {
47
+ _defineProperty(_this, "bindOnMouseEnterItem", function(id) {
25
48
  return function(e) {
26
- var _this$props$onMouseEn, _this$props2;
27
- (_this$props$onMouseEn = (_this$props2 = _this.props).onMouseEnterItem) === null || _this$props$onMouseEn === void 0 ? void 0 : _this$props$onMouseEn.call(_this$props2, id, e);
49
+ var _this$props$onMouseEn3, _this$props7;
50
+ (_this$props$onMouseEn3 = (_this$props7 = _this.props).onMouseEnterItem) === null || _this$props$onMouseEn3 === void 0 || _this$props$onMouseEn3.call(_this$props7, id, e);
28
51
  };
29
52
  });
30
- _defineProperty(_assertThisInitialized(_this), "bindOnMouseLeaveItem", function(id) {
53
+ _defineProperty(_this, "bindOnMouseLeaveItem", function(id) {
31
54
  return function(e) {
32
- var _this$props$onMouseLe, _this$props3;
33
- (_this$props$onMouseLe = (_this$props3 = _this.props).onMouseLeaveItem) === null || _this$props$onMouseLe === void 0 ? void 0 : _this$props$onMouseLe.call(_this$props3, id, e);
55
+ var _this$props$onMouseLe4, _this$props8;
56
+ (_this$props$onMouseLe4 = (_this$props8 = _this.props).onMouseLeaveItem) === null || _this$props$onMouseLe4 === void 0 || _this$props$onMouseLe4.call(_this$props8, id, e);
34
57
  };
35
58
  });
36
59
  return _this;
37
60
  }
38
- _createClass(BaseLegend2, [{
61
+ _inherits(BaseLegend2, _Component);
62
+ return _createClass(BaseLegend2, [{
39
63
  key: "componentDidMount",
40
64
  value: function componentDidMount() {
41
65
  this.setHints();
@@ -53,7 +77,7 @@ var BaseLegend = /* @__PURE__ */ function(_Component) {
53
77
  var _this$asProps = this.asProps, items = _this$asProps.items, dataHints = _this$asProps.dataHints;
54
78
  var dataHintsHandler = dataHints ? makeDataHintsHandlers(dataHints) : void 0;
55
79
  items.forEach(function(legendItem) {
56
- dataHintsHandler === null || dataHintsHandler === void 0 ? void 0 : dataHintsHandler.labelKey("value", legendItem.id, legendItem.label);
80
+ dataHintsHandler === null || dataHintsHandler === void 0 || dataHintsHandler.labelKey("value", legendItem.id, legendItem.label);
57
81
  });
58
82
  }
59
83
  }, {
@@ -73,8 +97,10 @@ var BaseLegend = /* @__PURE__ */ function(_Component) {
73
97
  return _objectSpread(_objectSpread({}, line), {}, {
74
98
  shape,
75
99
  size,
100
+ onFocusLegendItem: this.onFocusLegendItem(line.checked),
101
+ onBlurLegendItem: this.onBlurLegendItem,
76
102
  onChangeLegendItem: this.onChangeLegendItem,
77
- onMouseEnter: this.bindOnMouseEnterItem(line.id),
103
+ onMouseEnter: line.checked ? this.bindOnMouseEnterItem(line.id) : void 0,
78
104
  onMouseLeave: this.bindOnMouseLeaveItem(line.id),
79
105
  style: {
80
106
  gridRowStart: "".concat(index + 1),
@@ -84,7 +110,6 @@ var BaseLegend = /* @__PURE__ */ function(_Component) {
84
110
  });
85
111
  }
86
112
  }]);
87
- return BaseLegend2;
88
113
  }(Component);
89
114
  export {
90
115
  BaseLegend
@@ -1,41 +1,45 @@
1
1
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
2
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
3
3
  import _createClass from "@babel/runtime/helpers/esm/createClass";
4
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
5
+ import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
6
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
4
7
  import _inherits from "@babel/runtime/helpers/esm/inherits";
5
- import _createSuper from "@babel/runtime/helpers/esm/createSuper";
6
8
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
7
- import { sstyled, createComponent, assignProps } from "@semcore/core";
8
- import React from "react";
9
- import { Flex } from "@semcore/flex-box";
10
- import { LegendItemComponent } from "../LegendItem/LegendItem.mjs";
11
- import Divider from "@semcore/divider";
9
+ import { createComponent, sstyled, assignProps } from "@semcore/core";
12
10
  import Checkbox from "@semcore/checkbox";
13
- import { BaseLegend } from "../BaseLegend.mjs";
14
- import { localizedMessages } from "../../../translations/__intergalactic-dynamic-locales.mjs";
15
11
  import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
12
+ import Divider from "@semcore/divider";
13
+ import { Flex } from "@semcore/flex-box";
14
+ import React from "react";
15
+ import { localizedMessages } from "../../../translations/__intergalactic-dynamic-locales.mjs";
16
+ import { BaseLegend } from "../BaseLegend.mjs";
17
+ import { LegendItemComponent } from "../LegendItem/LegendItem.mjs";
18
+ function _callSuper(t, o, e) {
19
+ return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
20
+ }
16
21
  /*!__reshadow-styles__:"./legend-flex.shadow.css"*/
17
22
  var style = (
18
23
  /*__reshadow_css_start__*/
19
24
  (sstyled.insert(
20
25
  /*__inner_css_start__*/
21
- ".___SLegendFlex_ww5w4_gg_._direction_row_ww5w4_gg_{align-items:flex-start;align-content:flex-start;flex-wrap:wrap;gap:8px 16px}.___SLegendFlex_ww5w4_gg_._direction_column_ww5w4_gg_{align-items:flex-start;flex-wrap:wrap;gap:8px}",
26
+ ".___SLegendFlex_pc68p_gg_._direction_row_pc68p_gg_{align-items:flex-start;align-content:flex-start;flex-wrap:wrap;gap:8px 16px}.___SLegendFlex_pc68p_gg_._direction_column_pc68p_gg_{align-items:flex-start;flex-wrap:wrap;gap:8px}",
22
27
  /*__inner_css_end__*/
23
- "ww5w4_gg_"
28
+ "pc68p_gg_"
24
29
  ), /*__reshadow_css_end__*/
25
30
  {
26
- "__SLegendFlex": "___SLegendFlex_ww5w4_gg_",
27
- "_direction_row": "_direction_row_ww5w4_gg_",
28
- "_direction_column": "_direction_column_ww5w4_gg_"
31
+ "__SLegendFlex": "___SLegendFlex_pc68p_gg_",
32
+ "_direction_row": "_direction_row_pc68p_gg_",
33
+ "_direction_column": "_direction_column_pc68p_gg_"
29
34
  })
30
35
  );
31
36
  var LegendFlexRoot = /* @__PURE__ */ function(_BaseLegend) {
32
- _inherits(LegendFlexRoot2, _BaseLegend);
33
- var _super = _createSuper(LegendFlexRoot2);
34
37
  function LegendFlexRoot2() {
35
38
  _classCallCheck(this, LegendFlexRoot2);
36
- return _super.apply(this, arguments);
39
+ return _callSuper(this, LegendFlexRoot2, arguments);
37
40
  }
38
- _createClass(LegendFlexRoot2, [{
41
+ _inherits(LegendFlexRoot2, _BaseLegend);
42
+ return _createClass(LegendFlexRoot2, [{
39
43
  key: "renderTrend",
40
44
  value: function renderTrend() {
41
45
  var _ref3 = this.asProps, onTrendIsVisibleChange = _ref3.onTrendIsVisibleChange, trendIsVisible = _ref3.trendIsVisible, trendLabel = _ref3.trendLabel, size = _ref3.size, getI18nText = _ref3.getI18nText;
@@ -66,7 +70,6 @@ var LegendFlexRoot = /* @__PURE__ */ function(_BaseLegend) {
66
70
  })), withTrend && this.renderTrend(), suffix ? suffix : null);
67
71
  }
68
72
  }]);
69
- return LegendFlexRoot2;
70
73
  }(BaseLegend);
71
74
  _defineProperty(LegendFlexRoot, "displayName", "LegendFlex");
72
75
  _defineProperty(LegendFlexRoot, "style", style);
@@ -2,57 +2,61 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
2
2
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
3
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
4
4
  import _createClass from "@babel/runtime/helpers/esm/createClass";
5
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
6
+ import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
7
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
5
8
  import _inherits from "@babel/runtime/helpers/esm/inherits";
6
- import _createSuper from "@babel/runtime/helpers/esm/createSuper";
7
9
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
8
- import { sstyled, createComponent, assignProps, Component } from "@semcore/core";
9
- import React from "react";
10
- import { Box, Flex } from "@semcore/flex-box";
10
+ import { createComponent, sstyled, assignProps, Component } from "@semcore/core";
11
11
  import Checkbox from "@semcore/checkbox";
12
- import { Text } from "@semcore/typography";
13
- import { StaticShapes } from "./LegendItem.type.mjs";
14
12
  import resolveColorEnhance from "@semcore/core/lib/utils/enhances/resolveColorEnhance";
15
13
  import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
14
+ import { Flex, Box } from "@semcore/flex-box";
15
+ import { Text } from "@semcore/typography";
16
+ import React from "react";
17
+ import { StaticShapes } from "./LegendItem.type.mjs";
16
18
  import { PatternSymbol } from "../../../Pattern.mjs";
17
19
  import { getChartDefaultColorName } from "../../../utils.mjs";
18
20
  var _excluded = ["id", "checked", "color", "onChangeLegendItem", "shape"];
21
+ function _callSuper(t, o, e) {
22
+ return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
23
+ }
19
24
  /*!__reshadow-styles__:"./legend-item.shadow.css"*/
20
25
  var style = (
21
26
  /*__reshadow_css_start__*/
22
27
  (sstyled.insert(
23
28
  /*__inner_css_start__*/
24
- '.___SLegendItem_11zva_gg_{min-width:0;align-items:flex-start}@media (hover:hover){.___SLegendItem_11zva_gg_:hover{cursor:pointer}.___SLegendItem_11zva_gg_.__disabled_11zva_gg_:hover{cursor:default}}.___SPointShape_11zva_gg_.__color_11zva_gg_{background-color:var(--color_11zva);margin-right:8px;flex-shrink:0}.___SPointShape_11zva_gg_._shape_Circle_11zva_gg_._size_l_11zva_gg_{width:16px;height:16px;border-radius:8px;margin-top:4px}.___SPointShape_11zva_gg_._shape_Circle_11zva_gg_._size_m_11zva_gg_{width:12px;height:12px;border-radius:6px;margin-top:4px}.___SPointShape_11zva_gg_._shape_Line_11zva_gg_._size_l_11zva_gg_{width:16px;height:4px;border-radius:3px;margin-top:9px}.___SPointShape_11zva_gg_._shape_Line_11zva_gg_._size_m_11zva_gg_{width:12px;height:4px;border-radius:3px;margin-top:8px}.___SPointShape_11zva_gg_._shape_Square_11zva_gg_._size_l_11zva_gg_{width:16px;height:16px;border-radius:2px;margin-top:4px}.___SPointShape_11zva_gg_._shape_Square_11zva_gg_._size_m_11zva_gg_{width:12px;height:12px;border-radius:2px;margin-top:4px}.___SPointShape_11zva_gg_._shape_Pattern_11zva_gg_{background-color:transparent;margin-right:4px}.___SIcon_11zva_gg_{line-height:0;margin-right:4px}.___SIcon_11zva_gg_._size_l_11zva_gg_{margin-top:4px}.___SIcon_11zva_gg_._size_m_11zva_gg_{margin-top:2px}.___SLabel_11zva_gg_{min-width:0}.___SAdditionalLabel_11zva_gg_._size_l_11zva_gg_,.___SCount_11zva_gg_._size_l_11zva_gg_,.___SLabel_11zva_gg_._size_l_11zva_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SAdditionalLabel_11zva_gg_._size_m_11zva_gg_,.___SCount_11zva_gg_._size_m_11zva_gg_,.___SLabel_11zva_gg_._size_m_11zva_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SAdditionalLabel_11zva_gg_,.___SCount_11zva_gg_{margin-left:4px}.___SAdditionalLabel_11zva_gg_{white-space:nowrap;display:flex;align-items:flex-start}.___SAdditionalLabel_11zva_gg_::before{content:"";display:inline-block;background-color:var(--intergalactic-text-secondary, #6c6e79);height:4px;width:4px;border-radius:2px;margin-right:4px}.___SAdditionalLabel_11zva_gg_._size_l_11zva_gg_::before{margin-top:10px}.___SAdditionalLabel_11zva_gg_._size_m_11zva_gg_::before{margin-top:8px}.___SPatternSymbol_11zva_gg_{transform:scale(.8)}',
29
+ '.___SLegendItem_1feua_gg_{min-width:0;align-items:flex-start}@media (hover:hover){.___SLegendItem_1feua_gg_:hover{cursor:pointer}.___SLegendItem_1feua_gg_.__disabled_1feua_gg_:hover{cursor:default}}.___SPointShape_1feua_gg_.__color_1feua_gg_{background-color:var(--color_1feua);margin-right:8px;flex-shrink:0}.___SPointShape_1feua_gg_._shape_Circle_1feua_gg_._size_l_1feua_gg_{width:16px;height:16px;border-radius:8px;margin-top:4px}.___SPointShape_1feua_gg_._shape_Circle_1feua_gg_._size_m_1feua_gg_{width:12px;height:12px;border-radius:6px;margin-top:4px}.___SPointShape_1feua_gg_._shape_Line_1feua_gg_._size_l_1feua_gg_{width:16px;height:4px;border-radius:3px;margin-top:9px}.___SPointShape_1feua_gg_._shape_Line_1feua_gg_._size_m_1feua_gg_{width:12px;height:4px;border-radius:3px;margin-top:8px}.___SPointShape_1feua_gg_._shape_Square_1feua_gg_._size_l_1feua_gg_{width:16px;height:16px;border-radius:2px;margin-top:4px}.___SPointShape_1feua_gg_._shape_Square_1feua_gg_._size_m_1feua_gg_{width:12px;height:12px;border-radius:2px;margin-top:4px}.___SPointShape_1feua_gg_._shape_Pattern_1feua_gg_{background-color:transparent;margin-right:4px}.___SIcon_1feua_gg_{line-height:0;margin-right:4px}.___SIcon_1feua_gg_._size_l_1feua_gg_{margin-top:4px}.___SIcon_1feua_gg_._size_m_1feua_gg_{margin-top:2px}.___SLabel_1feua_gg_{min-width:0}.___SAdditionalLabel_1feua_gg_._size_l_1feua_gg_,.___SCount_1feua_gg_._size_l_1feua_gg_,.___SLabel_1feua_gg_._size_l_1feua_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SAdditionalLabel_1feua_gg_._size_m_1feua_gg_,.___SCount_1feua_gg_._size_m_1feua_gg_,.___SLabel_1feua_gg_._size_m_1feua_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SAdditionalLabel_1feua_gg_,.___SCount_1feua_gg_{margin-left:4px}.___SAdditionalLabel_1feua_gg_{white-space:nowrap;display:flex;align-items:flex-start}.___SAdditionalLabel_1feua_gg_::before{content:"";display:inline-block;background-color:var(--intergalactic-text-secondary, #6c6e79);height:4px;width:4px;border-radius:2px;margin-right:4px}.___SAdditionalLabel_1feua_gg_._size_l_1feua_gg_::before{margin-top:10px}.___SAdditionalLabel_1feua_gg_._size_m_1feua_gg_::before{margin-top:8px}.___SPatternSymbol_1feua_gg_{transform:scale(.8)}',
25
30
  /*__inner_css_end__*/
26
- "11zva_gg_"
31
+ "1feua_gg_"
27
32
  ), /*__reshadow_css_end__*/
28
33
  {
29
- "__SLegendItem": "___SLegendItem_11zva_gg_",
30
- "_disabled": "__disabled_11zva_gg_",
31
- "__SPointShape": "___SPointShape_11zva_gg_",
32
- "_color": "__color_11zva_gg_",
33
- "--color": "--color_11zva",
34
- "_shape_Circle": "_shape_Circle_11zva_gg_",
35
- "_size_l": "_size_l_11zva_gg_",
36
- "_size_m": "_size_m_11zva_gg_",
37
- "_shape_Line": "_shape_Line_11zva_gg_",
38
- "_shape_Square": "_shape_Square_11zva_gg_",
39
- "_shape_Pattern": "_shape_Pattern_11zva_gg_",
40
- "__SIcon": "___SIcon_11zva_gg_",
41
- "__SLabel": "___SLabel_11zva_gg_",
42
- "__SAdditionalLabel": "___SAdditionalLabel_11zva_gg_",
43
- "__SCount": "___SCount_11zva_gg_",
44
- "__SPatternSymbol": "___SPatternSymbol_11zva_gg_"
34
+ "__SLegendItem": "___SLegendItem_1feua_gg_",
35
+ "_disabled": "__disabled_1feua_gg_",
36
+ "__SPointShape": "___SPointShape_1feua_gg_",
37
+ "_color": "__color_1feua_gg_",
38
+ "--color": "--color_1feua",
39
+ "_shape_Circle": "_shape_Circle_1feua_gg_",
40
+ "_size_l": "_size_l_1feua_gg_",
41
+ "_size_m": "_size_m_1feua_gg_",
42
+ "_shape_Line": "_shape_Line_1feua_gg_",
43
+ "_shape_Square": "_shape_Square_1feua_gg_",
44
+ "_shape_Pattern": "_shape_Pattern_1feua_gg_",
45
+ "__SIcon": "___SIcon_1feua_gg_",
46
+ "__SLabel": "___SLabel_1feua_gg_",
47
+ "__SAdditionalLabel": "___SAdditionalLabel_1feua_gg_",
48
+ "__SCount": "___SCount_1feua_gg_",
49
+ "__SPatternSymbol": "___SPatternSymbol_1feua_gg_"
45
50
  })
46
51
  );
47
52
  var enhance = [resolveColorEnhance(), uniqueIDEnhancement()];
48
53
  var LegendItemRoot = /* @__PURE__ */ function(_Component) {
49
- _inherits(LegendItemRoot2, _Component);
50
- var _super = _createSuper(LegendItemRoot2);
51
54
  function LegendItemRoot2() {
52
55
  _classCallCheck(this, LegendItemRoot2);
53
- return _super.apply(this, arguments);
56
+ return _callSuper(this, LegendItemRoot2, arguments);
54
57
  }
55
- _createClass(LegendItemRoot2, [{
58
+ _inherits(LegendItemRoot2, _Component);
59
+ return _createClass(LegendItemRoot2, [{
56
60
  key: "getUniqueID",
57
61
  value: function getUniqueID() {
58
62
  var uid = this.asProps.uid;
@@ -61,18 +65,24 @@ var LegendItemRoot = /* @__PURE__ */ function(_Component) {
61
65
  }, {
62
66
  key: "getShapeProps",
63
67
  value: function getShapeProps() {
64
- var _this$asProps = this.asProps, checked = _this$asProps.checked, color = _this$asProps.color, shape = _this$asProps.shape, label = _this$asProps.label, id = _this$asProps.id, size = _this$asProps.size, resolveColor = _this$asProps.resolveColor, patterns = _this$asProps.patterns, onChangeLegendItem = _this$asProps.onChangeLegendItem;
68
+ var _this$asProps = this.asProps, checked = _this$asProps.checked, color = _this$asProps.color, shape = _this$asProps.shape, label = _this$asProps.label, id = _this$asProps.id, size = _this$asProps.size, resolveColor = _this$asProps.resolveColor, patterns = _this$asProps.patterns, onChangeLegendItem = _this$asProps.onChangeLegendItem, onFocusLegendItem = _this$asProps.onFocusLegendItem, onBlurLegendItem = _this$asProps.onBlurLegendItem;
65
69
  return {
66
70
  label,
67
71
  shape,
68
72
  checked,
69
- color: resolveColor(color),
70
- patternKey: color,
73
+ "color": resolveColor(color),
74
+ "patternKey": color,
71
75
  patterns,
72
76
  size,
73
- onChange: function onChange(value) {
77
+ "onChange": function onChange(value) {
74
78
  onChangeLegendItem(id, value);
75
79
  },
80
+ "onFocus": function onFocus() {
81
+ return onFocusLegendItem(id);
82
+ },
83
+ "onBlur": function onBlur() {
84
+ return onBlurLegendItem(id);
85
+ },
76
86
  "aria-labelledby": shape === "Checkbox" ? this.getUniqueID() : null
77
87
  };
78
88
  }
@@ -132,7 +142,6 @@ var LegendItemRoot = /* @__PURE__ */ function(_Component) {
132
142
  }, _ref))), /* @__PURE__ */ React.createElement(Children, _ref7.cn("Children", {})));
133
143
  }
134
144
  }]);
135
- return LegendItemRoot2;
136
145
  }(Component);
137
146
  _defineProperty(LegendItemRoot, "displayName", "LegendItem");
138
147
  _defineProperty(LegendItemRoot, "style", style);
@@ -143,10 +152,10 @@ _defineProperty(LegendItemRoot, "defaultProps", function() {
143
152
  };
144
153
  });
145
154
  function Shape(props) {
146
- var _ref2 = arguments[0], _ref10;
155
+ var _ref2 = arguments[0], _ref0;
147
156
  var SPointShape = Box;
148
157
  var SPatternSymbol = PatternSymbol;
149
- var styles = props.styles, size = props.size, shape = props.shape, checked = props.checked, color = props.color, _props$patternKey = props.patternKey, patternKey = _props$patternKey === void 0 ? getChartDefaultColorName(0) : _props$patternKey, Children = props.Children, hasChildren = props.children, patterns = props.patterns, onChange = props.onChange;
158
+ var styles = props.styles, size = props.size, shape = props.shape, checked = props.checked, color = props.color, _props$patternKey = props.patternKey, patternKey = _props$patternKey === void 0 ? getChartDefaultColorName(0) : _props$patternKey, Children = props.Children, hasChildren = props.children, patterns = props.patterns, onChange = props.onChange, onFocus = props.onFocus, onBlur = props.onBlur;
150
159
  if (hasChildren) {
151
160
  return /* @__PURE__ */ React.createElement(Children, null);
152
161
  }
@@ -167,6 +176,8 @@ function Shape(props) {
167
176
  "checked": checked,
168
177
  "theme": checked ? color : void 0,
169
178
  "onChange": onChange,
179
+ "onFocus": onFocus,
180
+ "onBlur": onBlur,
170
181
  "aria-labelledby": props["aria-labelledby"]
171
182
  })), patterns && /* @__PURE__ */ React.createElement(Box, _ref9.cn("Box", {
172
183
  "mt": "2px",
@@ -177,54 +188,54 @@ function Shape(props) {
177
188
  "aria-hidden": true
178
189
  }))));
179
190
  }
180
- return _ref10 = sstyled(styles), /* @__PURE__ */ React.createElement(SPointShape, _ref10.cn("SPointShape", _objectSpread({}, assignProps({}, _ref2))), /* @__PURE__ */ React.createElement(Children, _ref10.cn("Children", {})));
191
+ return _ref0 = sstyled(styles), /* @__PURE__ */ React.createElement(SPointShape, _ref0.cn("SPointShape", _objectSpread({}, assignProps({}, _ref2))), /* @__PURE__ */ React.createElement(Children, _ref0.cn("Children", {})));
181
192
  }
182
- function Icon(_ref15) {
183
- var _ref3 = arguments[0], _ref11;
184
- var styles = _ref15.styles, hasChildren = _ref15.children, Children = _ref15.Children;
193
+ function Icon(_ref13) {
194
+ var _ref3 = arguments[0], _ref1;
195
+ var styles = _ref13.styles, hasChildren = _ref13.children, Children = _ref13.Children;
185
196
  var SIcon = Box;
186
197
  if (!hasChildren) {
187
198
  return null;
188
199
  }
189
- return _ref11 = sstyled(styles), /* @__PURE__ */ React.createElement(SIcon, _ref11.cn("SIcon", _objectSpread({}, assignProps({
200
+ return _ref1 = sstyled(styles), /* @__PURE__ */ React.createElement(SIcon, _ref1.cn("SIcon", _objectSpread({}, assignProps({
190
201
  "tag": "span"
191
- }, _ref3))), /* @__PURE__ */ React.createElement(Children, _ref11.cn("Children", {})));
202
+ }, _ref3))), /* @__PURE__ */ React.createElement(Children, _ref1.cn("Children", {})));
192
203
  }
193
204
  Icon.displayName = "Icon";
194
- function Label(_ref16) {
195
- var _ref4 = arguments[0], _ref12;
196
- var styles = _ref16.styles, hasChildren = _ref16.children, Children = _ref16.Children;
205
+ function Label(_ref14) {
206
+ var _ref4 = arguments[0], _ref10;
207
+ var styles = _ref14.styles, hasChildren = _ref14.children, Children = _ref14.Children;
197
208
  var SLabel = Text;
198
209
  if (!hasChildren) {
199
210
  return null;
200
211
  }
201
- return _ref12 = sstyled(styles), /* @__PURE__ */ React.createElement(SLabel, _ref12.cn("SLabel", _objectSpread({}, assignProps({
212
+ return _ref10 = sstyled(styles), /* @__PURE__ */ React.createElement(SLabel, _ref10.cn("SLabel", _objectSpread({}, assignProps({
202
213
  "use": "primary"
203
- }, _ref4))), /* @__PURE__ */ React.createElement(Children, _ref12.cn("Children", {})));
214
+ }, _ref4))), /* @__PURE__ */ React.createElement(Children, _ref10.cn("Children", {})));
204
215
  }
205
216
  Label.displayName = "Label";
206
- function AdditionalLabel(_ref17) {
207
- var _ref5 = arguments[0], _ref13;
208
- var styles = _ref17.styles, hasChildren = _ref17.children, Children = _ref17.Children;
217
+ function AdditionalLabel(_ref15) {
218
+ var _ref5 = arguments[0], _ref11;
219
+ var styles = _ref15.styles, hasChildren = _ref15.children, Children = _ref15.Children;
209
220
  var SAdditionalLabel = Text;
210
221
  if (!hasChildren) {
211
222
  return null;
212
223
  }
213
- return _ref13 = sstyled(styles), /* @__PURE__ */ React.createElement(SAdditionalLabel, _ref13.cn("SAdditionalLabel", _objectSpread({}, assignProps({
224
+ return _ref11 = sstyled(styles), /* @__PURE__ */ React.createElement(SAdditionalLabel, _ref11.cn("SAdditionalLabel", _objectSpread({}, assignProps({
214
225
  "use": "secondary"
215
- }, _ref5))), /* @__PURE__ */ React.createElement(Children, _ref13.cn("Children", {})));
226
+ }, _ref5))), /* @__PURE__ */ React.createElement(Children, _ref11.cn("Children", {})));
216
227
  }
217
228
  AdditionalLabel.displayName = "AdditionalLabel";
218
- function Count(_ref18) {
219
- var _ref6 = arguments[0], _ref14;
220
- var styles = _ref18.styles, hasChildren = _ref18.children, Children = _ref18.Children;
229
+ function Count(_ref16) {
230
+ var _ref6 = arguments[0], _ref12;
231
+ var styles = _ref16.styles, hasChildren = _ref16.children, Children = _ref16.Children;
221
232
  var SCount = Text;
222
233
  if (!hasChildren) {
223
234
  return null;
224
235
  }
225
- return _ref14 = sstyled(styles), /* @__PURE__ */ React.createElement(SCount, _ref14.cn("SCount", _objectSpread({}, assignProps({
236
+ return _ref12 = sstyled(styles), /* @__PURE__ */ React.createElement(SCount, _ref12.cn("SCount", _objectSpread({}, assignProps({
226
237
  "use": "secondary"
227
- }, _ref6))), /* @__PURE__ */ React.createElement(Children, _ref14.cn("Children", {})));
238
+ }, _ref6))), /* @__PURE__ */ React.createElement(Children, _ref12.cn("Children", {})));
228
239
  }
229
240
  Count.displayName = "Count";
230
241
  var LegendItemComponent = createComponent(LegendItemRoot, {
@@ -1,39 +1,43 @@
1
1
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
2
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
3
3
  import _createClass from "@babel/runtime/helpers/esm/createClass";
4
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
5
+ import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
6
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
4
7
  import _inherits from "@babel/runtime/helpers/esm/inherits";
5
- import _createSuper from "@babel/runtime/helpers/esm/createSuper";
6
8
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
7
- import { sstyled, createComponent, assignProps } from "@semcore/core";
8
- import React from "react";
9
+ import { createComponent, sstyled, assignProps } from "@semcore/core";
9
10
  import { Box } from "@semcore/flex-box";
10
- import { LegendItemComponent } from "../LegendItem/LegendItem.mjs";
11
+ import React from "react";
11
12
  import { BaseLegend } from "../BaseLegend.mjs";
13
+ import { LegendItemComponent } from "../LegendItem/LegendItem.mjs";
14
+ function _callSuper(t, o, e) {
15
+ return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
16
+ }
12
17
  /*!__reshadow-styles__:"./legend-table.shadow.css"*/
13
18
  var style = (
14
19
  /*__reshadow_css_start__*/
15
20
  (sstyled.insert(
16
21
  /*__inner_css_start__*/
17
- '.___SLegendTable_grj2v_gg_.__columns-count_grj2v_gg_{font-feature-settings:"tnum";font-variant-numeric:tabular-nums;display:grid;grid-template-columns:auto .2fr;align-items:center;height:-moz-fit-content;height:fit-content;grid-column-gap:16px;grid-row-gap:8px}.___SColumnItem_grj2v_gg_._size_l_grj2v_gg_{font-size:var(--intergalactic-fs-300, 16px);text-align:right}.___SColumnItem_grj2v_gg_._size_m_grj2v_gg_{font-size:var(--intergalactic-fs-200, 14px);text-align:right}',
22
+ '.___SLegendTable_e4nzj_gg_.__columns-count_e4nzj_gg_{font-feature-settings:"tnum";font-variant-numeric:tabular-nums;display:grid;grid-template-columns:auto .2fr;align-items:center;height:-moz-fit-content;height:fit-content;grid-column-gap:16px;grid-row-gap:8px}.___SColumnItem_e4nzj_gg_._size_l_e4nzj_gg_{font-size:var(--intergalactic-fs-300, 16px);text-align:right}.___SColumnItem_e4nzj_gg_._size_m_e4nzj_gg_{font-size:var(--intergalactic-fs-200, 14px);text-align:right}',
18
23
  /*__inner_css_end__*/
19
- "grj2v_gg_"
24
+ "e4nzj_gg_"
20
25
  ), /*__reshadow_css_end__*/
21
26
  {
22
- "__SLegendTable": "___SLegendTable_grj2v_gg_",
23
- "_columns-count": "__columns-count_grj2v_gg_",
24
- "__SColumnItem": "___SColumnItem_grj2v_gg_",
25
- "_size_l": "_size_l_grj2v_gg_",
26
- "_size_m": "_size_m_grj2v_gg_"
27
+ "__SLegendTable": "___SLegendTable_e4nzj_gg_",
28
+ "_columns-count": "__columns-count_e4nzj_gg_",
29
+ "__SColumnItem": "___SColumnItem_e4nzj_gg_",
30
+ "_size_l": "_size_l_e4nzj_gg_",
31
+ "_size_m": "_size_m_e4nzj_gg_"
27
32
  })
28
33
  );
29
34
  var LegendTableRoot = /* @__PURE__ */ function(_BaseLegend) {
30
- _inherits(LegendTableRoot2, _BaseLegend);
31
- var _super = _createSuper(LegendTableRoot2);
32
35
  function LegendTableRoot2() {
33
36
  _classCallCheck(this, LegendTableRoot2);
34
- return _super.apply(this, arguments);
37
+ return _callSuper(this, LegendTableRoot2, arguments);
35
38
  }
36
- _createClass(LegendTableRoot2, [{
39
+ _inherits(LegendTableRoot2, _BaseLegend);
40
+ return _createClass(LegendTableRoot2, [{
37
41
  key: "render",
38
42
  value: function render() {
39
43
  var _ref = this.asProps, _ref3, _items$;
@@ -43,15 +47,15 @@ var LegendTableRoot = /* @__PURE__ */ function(_BaseLegend) {
43
47
  return _ref3 = sstyled(styles), /* @__PURE__ */ React.createElement(SLegendTable, _ref3.cn("SLegendTable", _objectSpread({}, assignProps({
44
48
  "columns-count": columnsCount + 1,
45
49
  "role": "group"
46
- }, _ref))), items.map(function(_ref5, index) {
50
+ }, _ref))), items.map(function(_ref5, _index) {
47
51
  var id = _ref5.id, _ref5$columns = _ref5.columns, columns = _ref5$columns === void 0 ? [] : _ref5$columns;
48
52
  return /* @__PURE__ */ React.createElement(React.Fragment, {
49
53
  key: id
50
- }, /* @__PURE__ */ React.createElement(Children, null), columns.map(function(item, index2) {
54
+ }, /* @__PURE__ */ React.createElement(Children, null), columns.map(function(item, index) {
51
55
  return /* @__PURE__ */ React.createElement(React.Fragment, {
52
- key: "".concat(id, "__").concat(index2)
56
+ key: "".concat(id, "__").concat(index)
53
57
  }, /* @__PURE__ */ React.createElement(LegendTable.Column, {
54
- index: index2,
58
+ index,
55
59
  size,
56
60
  styles
57
61
  }, item));
@@ -59,7 +63,6 @@ var LegendTableRoot = /* @__PURE__ */ function(_BaseLegend) {
59
63
  }));
60
64
  }
61
65
  }]);
62
- return LegendTableRoot2;
63
66
  }(BaseLegend);
64
67
  _defineProperty(LegendTableRoot, "displayName", "LegendTable");
65
68
  _defineProperty(LegendTableRoot, "style", style);