@fluentui/react-charts 9.3.22 → 9.3.24

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 (755) hide show
  1. package/CHANGELOG.md +33 -2
  2. package/dist/index.d.cts +5724 -0
  3. package/lib/AnnotationOnlyChart.js +1 -1
  4. package/lib/AnnotationOnlyChart.js.map +1 -1
  5. package/lib/AreaChart.js +1 -1
  6. package/lib/AreaChart.js.map +1 -1
  7. package/lib/CartesianChart.js +1 -1
  8. package/lib/CartesianChart.js.map +1 -1
  9. package/lib/ChartTable.js +1 -1
  10. package/lib/ChartTable.js.map +1 -1
  11. package/lib/DeclarativeChart.js +1 -1
  12. package/lib/DeclarativeChart.js.map +1 -1
  13. package/lib/DonutChart.js +1 -1
  14. package/lib/DonutChart.js.map +1 -1
  15. package/lib/FunnelChart.js +1 -1
  16. package/lib/FunnelChart.js.map +1 -1
  17. package/lib/GanttChart.js +1 -1
  18. package/lib/GanttChart.js.map +1 -1
  19. package/lib/GaugeChart.js +1 -1
  20. package/lib/GaugeChart.js.map +1 -1
  21. package/lib/GroupedVerticalBarChart.js +1 -1
  22. package/lib/GroupedVerticalBarChart.js.map +1 -1
  23. package/lib/HeatMapChart.js +1 -1
  24. package/lib/HeatMapChart.js.map +1 -1
  25. package/lib/HorizontalBarChart.js +1 -1
  26. package/lib/HorizontalBarChart.js.map +1 -1
  27. package/lib/HorizontalBarChartWithAxis.js +1 -1
  28. package/lib/HorizontalBarChartWithAxis.js.map +1 -1
  29. package/lib/Legends.js +1 -1
  30. package/lib/Legends.js.map +1 -1
  31. package/lib/LineChart.js +1 -1
  32. package/lib/LineChart.js.map +1 -1
  33. package/lib/PolarChart.js +1 -1
  34. package/lib/PolarChart.js.map +1 -1
  35. package/lib/Popover.js +1 -1
  36. package/lib/Popover.js.map +1 -1
  37. package/lib/ResponsiveContainer.js +1 -1
  38. package/lib/ResponsiveContainer.js.map +1 -1
  39. package/lib/SankeyChart.js +1 -1
  40. package/lib/SankeyChart.js.map +1 -1
  41. package/lib/ScatterChart.js +1 -1
  42. package/lib/ScatterChart.js.map +1 -1
  43. package/lib/Sparkline.js +1 -1
  44. package/lib/Sparkline.js.map +1 -1
  45. package/lib/VegaDeclarativeChart.js +1 -1
  46. package/lib/VegaDeclarativeChart.js.map +1 -1
  47. package/lib/VerticalBarChart.js +1 -1
  48. package/lib/VerticalBarChart.js.map +1 -1
  49. package/lib/VerticalStackedBarChart.js +1 -1
  50. package/lib/VerticalStackedBarChart.js.map +1 -1
  51. package/lib/components/AnnotationOnlyChart/AnnotationOnlyChart.js +5 -5
  52. package/lib/components/AnnotationOnlyChart/AnnotationOnlyChart.js.map +1 -1
  53. package/lib/components/AnnotationOnlyChart/index.js +2 -2
  54. package/lib/components/AnnotationOnlyChart/index.js.map +1 -1
  55. package/lib/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.js +2 -2
  56. package/lib/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.js.map +1 -1
  57. package/lib/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.raw.js +2 -2
  58. package/lib/components/AreaChart/AreaChart.js +11 -11
  59. package/lib/components/AreaChart/AreaChart.js.map +1 -1
  60. package/lib/components/AreaChart/index.js +3 -3
  61. package/lib/components/AreaChart/index.js.map +1 -1
  62. package/lib/components/AreaChart/useAreaChartStyles.styles.js +2 -2
  63. package/lib/components/AreaChart/useAreaChartStyles.styles.js.map +1 -1
  64. package/lib/components/AreaChart/useAreaChartStyles.styles.raw.js +2 -2
  65. package/lib/components/AreaChart/useAreaChartStyles.styles.raw.js.map +1 -1
  66. package/lib/components/ChartTable/ChartTable.js +9 -9
  67. package/lib/components/ChartTable/ChartTable.js.map +1 -1
  68. package/lib/components/ChartTable/index.js +3 -3
  69. package/lib/components/ChartTable/index.js.map +1 -1
  70. package/lib/components/ChartTable/useChartTableStyles.styles.js +3 -3
  71. package/lib/components/ChartTable/useChartTableStyles.styles.js.map +1 -1
  72. package/lib/components/ChartTable/useChartTableStyles.styles.raw.js +3 -3
  73. package/lib/components/ChartTable/useChartTableStyles.styles.raw.js.map +1 -1
  74. package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.js +5 -5
  75. package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.js.map +1 -1
  76. package/lib/components/CommonComponents/Annotations/index.js +2 -2
  77. package/lib/components/CommonComponents/Annotations/index.js.map +1 -1
  78. package/lib/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.js +3 -3
  79. package/lib/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.js.map +1 -1
  80. package/lib/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.raw.js +3 -3
  81. package/lib/components/CommonComponents/CartesianChart.js +9 -9
  82. package/lib/components/CommonComponents/CartesianChart.js.map +1 -1
  83. package/lib/components/CommonComponents/ChartPopover.js +9 -9
  84. package/lib/components/CommonComponents/ChartPopover.js.map +1 -1
  85. package/lib/components/CommonComponents/index.js +6 -6
  86. package/lib/components/CommonComponents/index.js.map +1 -1
  87. package/lib/components/CommonComponents/useCartesianChartStyles.styles.js +4 -4
  88. package/lib/components/CommonComponents/useCartesianChartStyles.styles.js.map +1 -1
  89. package/lib/components/CommonComponents/useCartesianChartStyles.styles.raw.js +4 -4
  90. package/lib/components/CommonComponents/useCartesianChartStyles.styles.raw.js.map +1 -1
  91. package/lib/components/CommonComponents/useChartPopoverStyles.styles.js +2 -2
  92. package/lib/components/CommonComponents/useChartPopoverStyles.styles.js.map +1 -1
  93. package/lib/components/CommonComponents/useChartPopoverStyles.styles.raw.js +2 -2
  94. package/lib/components/DeclarativeChart/DeclarativeChart.js +28 -28
  95. package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  96. package/lib/components/DeclarativeChart/PlotlyColorAdapter.js +5 -5
  97. package/lib/components/DeclarativeChart/PlotlyColorAdapter.js.map +1 -1
  98. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +9 -9
  99. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  100. package/lib/components/DeclarativeChart/index.js +1 -1
  101. package/lib/components/DeclarativeChart/index.js.map +1 -1
  102. package/lib/components/DonutChart/Arc/Arc.js +8 -7
  103. package/lib/components/DonutChart/Arc/Arc.js.map +1 -1
  104. package/lib/components/DonutChart/Arc/index.js +2 -2
  105. package/lib/components/DonutChart/Arc/index.js.map +1 -1
  106. package/lib/components/DonutChart/Arc/useArcStyles.styles.js +3 -3
  107. package/lib/components/DonutChart/Arc/useArcStyles.styles.js.map +1 -1
  108. package/lib/components/DonutChart/Arc/useArcStyles.styles.raw.js +3 -3
  109. package/lib/components/DonutChart/Arc/useArcStyles.styles.raw.js.map +1 -1
  110. package/lib/components/DonutChart/DonutChart.js +10 -10
  111. package/lib/components/DonutChart/DonutChart.js.map +1 -1
  112. package/lib/components/DonutChart/Pie/Pie.js +8 -6
  113. package/lib/components/DonutChart/Pie/Pie.js.map +1 -1
  114. package/lib/components/DonutChart/Pie/index.js +2 -2
  115. package/lib/components/DonutChart/Pie/index.js.map +1 -1
  116. package/lib/components/DonutChart/Pie/usePieStyles.styles.js +2 -2
  117. package/lib/components/DonutChart/Pie/usePieStyles.styles.js.map +1 -1
  118. package/lib/components/DonutChart/Pie/usePieStyles.styles.raw.js +2 -2
  119. package/lib/components/DonutChart/index.js +3 -3
  120. package/lib/components/DonutChart/index.js.map +1 -1
  121. package/lib/components/DonutChart/useDonutChartStyles.styles.js +3 -3
  122. package/lib/components/DonutChart/useDonutChartStyles.styles.js.map +1 -1
  123. package/lib/components/DonutChart/useDonutChartStyles.styles.raw.js +3 -3
  124. package/lib/components/DonutChart/useDonutChartStyles.styles.raw.js.map +1 -1
  125. package/lib/components/FunnelChart/FunnelChart.js +25 -14
  126. package/lib/components/FunnelChart/FunnelChart.js.map +1 -1
  127. package/lib/components/FunnelChart/index.js +2 -2
  128. package/lib/components/FunnelChart/index.js.map +1 -1
  129. package/lib/components/FunnelChart/useFunnelChartStyles.styles.js +3 -3
  130. package/lib/components/FunnelChart/useFunnelChartStyles.styles.js.map +1 -1
  131. package/lib/components/FunnelChart/useFunnelChartStyles.styles.raw.js +3 -3
  132. package/lib/components/FunnelChart/useFunnelChartStyles.styles.raw.js.map +1 -1
  133. package/lib/components/GanttChart/GanttChart.js +14 -11
  134. package/lib/components/GanttChart/GanttChart.js.map +1 -1
  135. package/lib/components/GanttChart/index.js +2 -2
  136. package/lib/components/GanttChart/index.js.map +1 -1
  137. package/lib/components/GaugeChart/GaugeChart.js +17 -14
  138. package/lib/components/GaugeChart/GaugeChart.js.map +1 -1
  139. package/lib/components/GaugeChart/index.js +3 -3
  140. package/lib/components/GaugeChart/index.js.map +1 -1
  141. package/lib/components/GaugeChart/useGaugeChartStyles.styles.js +3 -3
  142. package/lib/components/GaugeChart/useGaugeChartStyles.styles.js.map +1 -1
  143. package/lib/components/GaugeChart/useGaugeChartStyles.styles.raw.js +3 -3
  144. package/lib/components/GaugeChart/useGaugeChartStyles.styles.raw.js.map +1 -1
  145. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +11 -11
  146. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -1
  147. package/lib/components/GroupedVerticalBarChart/index.js +3 -3
  148. package/lib/components/GroupedVerticalBarChart/index.js.map +1 -1
  149. package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js +2 -2
  150. package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js.map +1 -1
  151. package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.js +2 -2
  152. package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.js.map +1 -1
  153. package/lib/components/HeatMapChart/HeatMapChart.js +21 -16
  154. package/lib/components/HeatMapChart/HeatMapChart.js.map +1 -1
  155. package/lib/components/HeatMapChart/index.js +3 -3
  156. package/lib/components/HeatMapChart/index.js.map +1 -1
  157. package/lib/components/HeatMapChart/useHeatMapChartStyles.styles.js +2 -2
  158. package/lib/components/HeatMapChart/useHeatMapChartStyles.styles.js.map +1 -1
  159. package/lib/components/HeatMapChart/useHeatMapChartStyles.styles.raw.js +2 -2
  160. package/lib/components/HorizontalBarChart/HorizontalBarChart.js +11 -11
  161. package/lib/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -1
  162. package/lib/components/HorizontalBarChart/index.js +3 -3
  163. package/lib/components/HorizontalBarChart/index.js.map +1 -1
  164. package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js +6 -6
  165. package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js.map +1 -1
  166. package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.js +5 -5
  167. package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.js.map +1 -1
  168. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +13 -13
  169. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
  170. package/lib/components/HorizontalBarChartWithAxis/index.js +3 -3
  171. package/lib/components/HorizontalBarChartWithAxis/index.js.map +1 -1
  172. package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js +3 -3
  173. package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js.map +1 -1
  174. package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.js +3 -3
  175. package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.js.map +1 -1
  176. package/lib/components/Legends/Legends.js +72 -42
  177. package/lib/components/Legends/Legends.js.map +1 -1
  178. package/lib/components/Legends/OverflowMenu.js +50 -12
  179. package/lib/components/Legends/OverflowMenu.js.map +1 -1
  180. package/lib/components/Legends/index.js +3 -3
  181. package/lib/components/Legends/index.js.map +1 -1
  182. package/lib/components/Legends/shape.js +2 -2
  183. package/lib/components/Legends/shape.js.map +1 -1
  184. package/lib/components/Legends/useLegendsStyles.styles.js +3 -3
  185. package/lib/components/Legends/useLegendsStyles.styles.js.map +1 -1
  186. package/lib/components/Legends/useLegendsStyles.styles.raw.js +3 -3
  187. package/lib/components/Legends/useLegendsStyles.styles.raw.js.map +1 -1
  188. package/lib/components/LineChart/LineChart.js +16 -16
  189. package/lib/components/LineChart/LineChart.js.map +1 -1
  190. package/lib/components/LineChart/eventAnnotation/EventAnnotation.js +5 -5
  191. package/lib/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
  192. package/lib/components/LineChart/eventAnnotation/LabelLink.js +4 -4
  193. package/lib/components/LineChart/eventAnnotation/LabelLink.js.map +1 -1
  194. package/lib/components/LineChart/eventAnnotation/Textbox.js +3 -3
  195. package/lib/components/LineChart/eventAnnotation/Textbox.js.map +1 -1
  196. package/lib/components/LineChart/index.js +4 -4
  197. package/lib/components/LineChart/index.js.map +1 -1
  198. package/lib/components/LineChart/useLineChartStyles.styles.js +4 -4
  199. package/lib/components/LineChart/useLineChartStyles.styles.js.map +1 -1
  200. package/lib/components/LineChart/useLineChartStyles.styles.raw.js +4 -4
  201. package/lib/components/LineChart/useLineChartStyles.styles.raw.js.map +1 -1
  202. package/lib/components/PolarChart/PolarChart.js +13 -13
  203. package/lib/components/PolarChart/PolarChart.js.map +1 -1
  204. package/lib/components/PolarChart/PolarChart.utils.js +6 -6
  205. package/lib/components/PolarChart/PolarChart.utils.js.map +1 -1
  206. package/lib/components/PolarChart/index.js +2 -2
  207. package/lib/components/PolarChart/index.js.map +1 -1
  208. package/lib/components/PolarChart/usePolarChartStyles.styles.js +2 -2
  209. package/lib/components/PolarChart/usePolarChartStyles.styles.js.map +1 -1
  210. package/lib/components/PolarChart/usePolarChartStyles.styles.raw.js +2 -2
  211. package/lib/components/ResponsiveContainer/ResponsiveContainer.js +4 -4
  212. package/lib/components/ResponsiveContainer/ResponsiveContainer.js.map +1 -1
  213. package/lib/components/ResponsiveContainer/index.js +3 -3
  214. package/lib/components/ResponsiveContainer/index.js.map +1 -1
  215. package/lib/components/ResponsiveContainer/useResponsiveChildStyles.styles.js +1 -1
  216. package/lib/components/ResponsiveContainer/useResponsiveChildStyles.styles.js.map +1 -1
  217. package/lib/components/ResponsiveContainer/useResponsiveChildStyles.styles.raw.js +1 -1
  218. package/lib/components/ResponsiveContainer/withResponsiveContainer.js +2 -2
  219. package/lib/components/ResponsiveContainer/withResponsiveContainer.js.map +1 -1
  220. package/lib/components/SankeyChart/SankeyChart.js +27 -21
  221. package/lib/components/SankeyChart/SankeyChart.js.map +1 -1
  222. package/lib/components/SankeyChart/index.js +3 -3
  223. package/lib/components/SankeyChart/index.js.map +1 -1
  224. package/lib/components/SankeyChart/useSankeyChartStyles.styles.js +3 -3
  225. package/lib/components/SankeyChart/useSankeyChartStyles.styles.js.map +1 -1
  226. package/lib/components/SankeyChart/useSankeyChartStyles.styles.raw.js +3 -3
  227. package/lib/components/SankeyChart/useSankeyChartStyles.styles.raw.js.map +1 -1
  228. package/lib/components/ScatterChart/ScatterChart.js +16 -16
  229. package/lib/components/ScatterChart/ScatterChart.js.map +1 -1
  230. package/lib/components/ScatterChart/index.js +3 -3
  231. package/lib/components/ScatterChart/index.js.map +1 -1
  232. package/lib/components/ScatterChart/useScatterChartStyles.styles.js +2 -2
  233. package/lib/components/ScatterChart/useScatterChartStyles.styles.js.map +1 -1
  234. package/lib/components/ScatterChart/useScatterChartStyles.styles.raw.js +2 -2
  235. package/lib/components/ScatterChart/useScatterChartStyles.styles.raw.js.map +1 -1
  236. package/lib/components/Sparkline/Sparkline.js +7 -7
  237. package/lib/components/Sparkline/Sparkline.js.map +1 -1
  238. package/lib/components/Sparkline/index.js +3 -3
  239. package/lib/components/Sparkline/index.js.map +1 -1
  240. package/lib/components/Sparkline/useSparklineStyles.styles.js +2 -2
  241. package/lib/components/Sparkline/useSparklineStyles.styles.js.map +1 -1
  242. package/lib/components/Sparkline/useSparklineStyles.styles.raw.js +2 -2
  243. package/lib/components/VegaDeclarativeChart/VegaDeclarativeChart.js +15 -15
  244. package/lib/components/VegaDeclarativeChart/VegaDeclarativeChart.js.map +1 -1
  245. package/lib/components/VegaDeclarativeChart/VegaDeclarativeChartHooks.js +4 -4
  246. package/lib/components/VegaDeclarativeChart/VegaLiteColorAdapter.js +2 -2
  247. package/lib/components/VegaDeclarativeChart/VegaLiteColorAdapter.js.map +1 -1
  248. package/lib/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.js +5 -5
  249. package/lib/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.js.map +1 -1
  250. package/lib/components/VegaDeclarativeChart/index.js +1 -1
  251. package/lib/components/VegaDeclarativeChart/index.js.map +1 -1
  252. package/lib/components/VerticalBarChart/VerticalBarChart.js +16 -13
  253. package/lib/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
  254. package/lib/components/VerticalBarChart/index.js +3 -3
  255. package/lib/components/VerticalBarChart/index.js.map +1 -1
  256. package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.js +4 -4
  257. package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.js.map +1 -1
  258. package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.js +4 -4
  259. package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.js.map +1 -1
  260. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js +11 -11
  261. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
  262. package/lib/components/VerticalStackedBarChart/index.js +3 -3
  263. package/lib/components/VerticalStackedBarChart/index.js.map +1 -1
  264. package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js +2 -2
  265. package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js.map +1 -1
  266. package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.js +2 -2
  267. package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.js.map +1 -1
  268. package/lib/index.js +26 -26
  269. package/lib/index.js.map +1 -1
  270. package/lib/types/index.js +3 -3
  271. package/lib/types/index.js.map +1 -1
  272. package/lib/utilities/ChartTitle.js +4 -4
  273. package/lib/utilities/ChartTitle.js.map +1 -1
  274. package/lib/utilities/Common.styles.js +2 -2
  275. package/lib/utilities/Common.styles.js.map +1 -1
  276. package/lib/utilities/Common.styles.raw.js +2 -2
  277. package/lib/utilities/Common.styles.raw.js.map +1 -1
  278. package/lib/utilities/FocusableTooltipText.js +6 -6
  279. package/lib/utilities/FocusableTooltipText.js.map +1 -1
  280. package/lib/utilities/SVGTooltipText.js +7 -7
  281. package/lib/utilities/SVGTooltipText.js.map +1 -1
  282. package/lib/utilities/async-utils.js +1 -1
  283. package/lib/utilities/async-utils.js.map +1 -1
  284. package/lib/utilities/colors.js +2 -2
  285. package/lib/utilities/getWindow.js +1 -1
  286. package/lib/utilities/hooks.js +3 -3
  287. package/lib/utilities/hooks.js.map +1 -1
  288. package/lib/utilities/image-export-utils.js +4 -4
  289. package/lib/utilities/image-export-utils.js.map +1 -1
  290. package/lib/utilities/index.js +5 -5
  291. package/lib/utilities/index.js.map +1 -1
  292. package/lib/utilities/scatterpolar-utils.js +1 -1
  293. package/lib/utilities/test-data.js +1 -1
  294. package/lib/utilities/test-data.js.map +1 -1
  295. package/lib/utilities/utilities.js +13 -13
  296. package/lib/utilities/utilities.js.map +1 -1
  297. package/lib-commonjs/AnnotationOnlyChart.cjs +6 -0
  298. package/lib-commonjs/{AnnotationOnlyChart.js.map → AnnotationOnlyChart.cjs.map} +1 -1
  299. package/lib-commonjs/{DonutChart.js → AreaChart.cjs} +1 -1
  300. package/lib-commonjs/{AreaChart.js.map → AreaChart.cjs.map} +1 -1
  301. package/lib-commonjs/{AnnotationOnlyChart.js → CartesianChart.cjs} +1 -1
  302. package/lib-commonjs/{CartesianChart.js.map → CartesianChart.cjs.map} +1 -1
  303. package/lib-commonjs/{VegaDeclarativeChart.js → ChartTable.cjs} +1 -1
  304. package/lib-commonjs/{ChartTable.js.map → ChartTable.cjs.map} +1 -1
  305. package/lib-commonjs/DeclarativeChart.cjs +6 -0
  306. package/lib-commonjs/{DeclarativeChart.js.map → DeclarativeChart.cjs.map} +1 -1
  307. package/lib-commonjs/{ChartTable.js → DonutChart.cjs} +1 -1
  308. package/lib-commonjs/{DonutChart.js.map → DonutChart.cjs.map} +1 -1
  309. package/lib-commonjs/FunnelChart.cjs +6 -0
  310. package/lib-commonjs/{FunnelChart.js.map → FunnelChart.cjs.map} +1 -1
  311. package/lib-commonjs/GanttChart.cjs +6 -0
  312. package/lib-commonjs/{GanttChart.js.map → GanttChart.cjs.map} +1 -1
  313. package/lib-commonjs/GaugeChart.cjs +6 -0
  314. package/lib-commonjs/{GaugeChart.js.map → GaugeChart.cjs.map} +1 -1
  315. package/lib-commonjs/{GroupedVerticalBarChart.js → GroupedVerticalBarChart.cjs} +1 -1
  316. package/lib-commonjs/{GroupedVerticalBarChart.js.map → GroupedVerticalBarChart.cjs.map} +1 -1
  317. package/lib-commonjs/{DeclarativeChart.js → HeatMapChart.cjs} +1 -1
  318. package/lib-commonjs/{HeatMapChart.js.map → HeatMapChart.cjs.map} +1 -1
  319. package/lib-commonjs/HorizontalBarChart.cjs +6 -0
  320. package/lib-commonjs/{HorizontalBarChart.js.map → HorizontalBarChart.cjs.map} +1 -1
  321. package/lib-commonjs/{HorizontalBarChartWithAxis.js → HorizontalBarChartWithAxis.cjs} +1 -1
  322. package/lib-commonjs/{HorizontalBarChartWithAxis.js.map → HorizontalBarChartWithAxis.cjs.map} +1 -1
  323. package/lib-commonjs/{SankeyChart.js → Legends.cjs} +1 -1
  324. package/lib-commonjs/{Legends.js.map → Legends.cjs.map} +1 -1
  325. package/lib-commonjs/{FunnelChart.js → LineChart.cjs} +1 -1
  326. package/lib-commonjs/{LineChart.js.map → LineChart.cjs.map} +1 -1
  327. package/lib-commonjs/PolarChart.cjs +6 -0
  328. package/lib-commonjs/{PolarChart.js.map → PolarChart.cjs.map} +1 -1
  329. package/lib-commonjs/Popover.cjs +6 -0
  330. package/lib-commonjs/{Popover.js.map → Popover.cjs.map} +1 -1
  331. package/lib-commonjs/ResponsiveContainer.cjs +6 -0
  332. package/lib-commonjs/{ResponsiveContainer.js.map → ResponsiveContainer.cjs.map} +1 -1
  333. package/lib-commonjs/SankeyChart.cjs +6 -0
  334. package/lib-commonjs/{SankeyChart.js.map → SankeyChart.cjs.map} +1 -1
  335. package/lib-commonjs/{CartesianChart.js → ScatterChart.cjs} +1 -1
  336. package/lib-commonjs/{ScatterChart.js.map → ScatterChart.cjs.map} +1 -1
  337. package/lib-commonjs/{AreaChart.js → Sparkline.cjs} +1 -1
  338. package/lib-commonjs/{Sparkline.js.map → Sparkline.cjs.map} +1 -1
  339. package/lib-commonjs/VegaDeclarativeChart.cjs +6 -0
  340. package/lib-commonjs/{VegaDeclarativeChart.js.map → VegaDeclarativeChart.cjs.map} +1 -1
  341. package/lib-commonjs/VerticalBarChart.cjs +6 -0
  342. package/lib-commonjs/{VerticalBarChart.js.map → VerticalBarChart.cjs.map} +1 -1
  343. package/lib-commonjs/{VerticalStackedBarChart.js → VerticalStackedBarChart.cjs} +1 -1
  344. package/lib-commonjs/{VerticalStackedBarChart.js.map → VerticalStackedBarChart.cjs.map} +1 -1
  345. package/lib-commonjs/components/AnnotationOnlyChart/{AnnotationOnlyChart.js → AnnotationOnlyChart.cjs} +5 -5
  346. package/lib-commonjs/components/AnnotationOnlyChart/{AnnotationOnlyChart.js.map → AnnotationOnlyChart.cjs.map} +1 -1
  347. package/lib-commonjs/{HeatMapChart.js → components/AnnotationOnlyChart/index.cjs} +2 -1
  348. package/lib-commonjs/components/AnnotationOnlyChart/{index.js.map → index.cjs.map} +1 -1
  349. package/lib-commonjs/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.cjs.map +1 -0
  350. package/lib-commonjs/components/AreaChart/{AreaChart.js → AreaChart.cjs} +4 -4
  351. package/lib-commonjs/components/AreaChart/{AreaChart.js.map → AreaChart.cjs.map} +1 -1
  352. package/lib-commonjs/components/AreaChart/index.cjs +8 -0
  353. package/lib-commonjs/components/AreaChart/{index.js.map → index.cjs.map} +1 -1
  354. package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.cjs.map +1 -0
  355. package/lib-commonjs/components/AreaChart/{useAreaChartStyles.styles.raw.js → useAreaChartStyles.styles.raw.cjs} +1 -1
  356. package/lib-commonjs/components/AreaChart/{useAreaChartStyles.styles.raw.js.map → useAreaChartStyles.styles.raw.cjs.map} +1 -1
  357. package/lib-commonjs/components/ChartTable/{ChartTable.js → ChartTable.cjs} +5 -5
  358. package/lib-commonjs/components/ChartTable/{ChartTable.js.map → ChartTable.cjs.map} +1 -1
  359. package/lib-commonjs/components/ChartTable/index.cjs +8 -0
  360. package/lib-commonjs/components/ChartTable/{index.js.map → index.cjs.map} +1 -1
  361. package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.cjs.map +1 -0
  362. package/lib-commonjs/components/ChartTable/{useChartTableStyles.styles.raw.js → useChartTableStyles.styles.raw.cjs} +1 -1
  363. package/lib-commonjs/components/ChartTable/{useChartTableStyles.styles.raw.js.map → useChartTableStyles.styles.raw.cjs.map} +1 -1
  364. package/lib-commonjs/components/CommonComponents/Annotations/{ChartAnnotationLayer.js → ChartAnnotationLayer.cjs} +1 -1
  365. package/lib-commonjs/components/CommonComponents/Annotations/{ChartAnnotationLayer.js.map → ChartAnnotationLayer.cjs.map} +1 -1
  366. package/lib-commonjs/components/CommonComponents/Annotations/index.cjs +7 -0
  367. package/lib-commonjs/components/CommonComponents/Annotations/{index.js.map → index.cjs.map} +1 -1
  368. package/lib-commonjs/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.cjs.map +1 -0
  369. package/lib-commonjs/components/CommonComponents/{CartesianChart.js → CartesianChart.cjs} +5 -5
  370. package/lib-commonjs/components/CommonComponents/{CartesianChart.js.map → CartesianChart.cjs.map} +1 -1
  371. package/lib-commonjs/components/CommonComponents/{ChartPopover.js → ChartPopover.cjs} +3 -3
  372. package/lib-commonjs/components/CommonComponents/{ChartPopover.js.map → ChartPopover.cjs.map} +1 -1
  373. package/lib-commonjs/components/CommonComponents/index.cjs +11 -0
  374. package/lib-commonjs/components/CommonComponents/{index.js.map → index.cjs.map} +1 -1
  375. package/lib-commonjs/components/CommonComponents/{useCartesianChartStyles.styles.js → useCartesianChartStyles.styles.cjs} +1 -1
  376. package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.cjs.map +1 -0
  377. package/lib-commonjs/components/CommonComponents/{useCartesianChartStyles.styles.raw.js → useCartesianChartStyles.styles.raw.cjs} +2 -2
  378. package/lib-commonjs/components/CommonComponents/{useCartesianChartStyles.styles.raw.js.map → useCartesianChartStyles.styles.raw.cjs.map} +1 -1
  379. package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.cjs.map +1 -0
  380. package/lib-commonjs/components/DeclarativeChart/{DeclarativeChart.js → DeclarativeChart.cjs} +21 -21
  381. package/lib-commonjs/components/DeclarativeChart/{DeclarativeChart.js.map → DeclarativeChart.cjs.map} +1 -1
  382. package/lib-commonjs/components/DeclarativeChart/{PlotlyColorAdapter.js → PlotlyColorAdapter.cjs} +2 -2
  383. package/lib-commonjs/components/DeclarativeChart/{PlotlyColorAdapter.js.map → PlotlyColorAdapter.cjs.map} +1 -1
  384. package/lib-commonjs/components/DeclarativeChart/{PlotlySchemaAdapter.js → PlotlySchemaAdapter.cjs} +3 -3
  385. package/lib-commonjs/components/DeclarativeChart/{PlotlySchemaAdapter.js.map → PlotlySchemaAdapter.cjs.map} +1 -1
  386. package/lib-commonjs/components/DeclarativeChart/{index.js → index.cjs} +1 -1
  387. package/lib-commonjs/components/DeclarativeChart/{index.js.map → index.cjs.map} +1 -1
  388. package/lib-commonjs/components/DonutChart/Arc/{Arc.js → Arc.cjs} +5 -4
  389. package/lib-commonjs/components/DonutChart/Arc/Arc.cjs.map +1 -0
  390. package/lib-commonjs/components/DonutChart/Arc/index.cjs +7 -0
  391. package/lib-commonjs/components/DonutChart/Arc/{index.js.map → index.cjs.map} +1 -1
  392. package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.cjs.map +1 -0
  393. package/lib-commonjs/components/DonutChart/Arc/{useArcStyles.styles.raw.js → useArcStyles.styles.raw.cjs} +1 -1
  394. package/lib-commonjs/components/DonutChart/Arc/{useArcStyles.styles.raw.js.map → useArcStyles.styles.raw.cjs.map} +1 -1
  395. package/lib-commonjs/components/DonutChart/{DonutChart.js → DonutChart.cjs} +6 -6
  396. package/lib-commonjs/components/DonutChart/{DonutChart.js.map → DonutChart.cjs.map} +1 -1
  397. package/lib-commonjs/components/DonutChart/Pie/{Pie.js → Pie.cjs} +6 -4
  398. package/lib-commonjs/components/DonutChart/Pie/{Pie.js.map → Pie.cjs.map} +1 -1
  399. package/lib-commonjs/components/DonutChart/Pie/index.cjs +7 -0
  400. package/lib-commonjs/components/DonutChart/Pie/{index.js.map → index.cjs.map} +1 -1
  401. package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.cjs.map +1 -0
  402. package/lib-commonjs/components/DonutChart/index.cjs +8 -0
  403. package/lib-commonjs/components/DonutChart/{index.js.map → index.cjs.map} +1 -1
  404. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.cjs.map +1 -0
  405. package/lib-commonjs/components/DonutChart/{useDonutChartStyles.styles.raw.js → useDonutChartStyles.styles.raw.cjs} +1 -1
  406. package/lib-commonjs/components/DonutChart/{useDonutChartStyles.styles.raw.js.map → useDonutChartStyles.styles.raw.cjs.map} +1 -1
  407. package/lib-commonjs/components/FunnelChart/{FunnelChart.js → FunnelChart.cjs} +21 -10
  408. package/lib-commonjs/components/FunnelChart/FunnelChart.cjs.map +1 -0
  409. package/lib-commonjs/components/FunnelChart/index.cjs +7 -0
  410. package/lib-commonjs/components/FunnelChart/{index.js.map → index.cjs.map} +1 -1
  411. package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.cjs.map +1 -0
  412. package/lib-commonjs/components/FunnelChart/{useFunnelChartStyles.styles.raw.js → useFunnelChartStyles.styles.raw.cjs} +1 -1
  413. package/lib-commonjs/components/FunnelChart/{useFunnelChartStyles.styles.raw.js.map → useFunnelChartStyles.styles.raw.cjs.map} +1 -1
  414. package/lib-commonjs/components/GanttChart/{GanttChart.js → GanttChart.cjs} +10 -7
  415. package/lib-commonjs/components/GanttChart/GanttChart.cjs.map +1 -0
  416. package/lib-commonjs/components/GanttChart/index.cjs +7 -0
  417. package/lib-commonjs/components/GanttChart/{index.js.map → index.cjs.map} +1 -1
  418. package/lib-commonjs/components/GaugeChart/{GaugeChart.js → GaugeChart.cjs} +12 -9
  419. package/lib-commonjs/components/GaugeChart/{GaugeChart.js.map → GaugeChart.cjs.map} +1 -1
  420. package/lib-commonjs/components/GaugeChart/index.cjs +8 -0
  421. package/lib-commonjs/components/GaugeChart/{index.js.map → index.cjs.map} +1 -1
  422. package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.cjs.map +1 -0
  423. package/lib-commonjs/components/GaugeChart/{useGaugeChartStyles.styles.raw.js → useGaugeChartStyles.styles.raw.cjs} +1 -1
  424. package/lib-commonjs/components/GaugeChart/{useGaugeChartStyles.styles.raw.js.map → useGaugeChartStyles.styles.raw.cjs.map} +1 -1
  425. package/lib-commonjs/components/GroupedVerticalBarChart/{GroupedVerticalBarChart.js → GroupedVerticalBarChart.cjs} +4 -4
  426. package/lib-commonjs/components/GroupedVerticalBarChart/{GroupedVerticalBarChart.js.map → GroupedVerticalBarChart.cjs.map} +1 -1
  427. package/lib-commonjs/components/GroupedVerticalBarChart/index.cjs +8 -0
  428. package/lib-commonjs/components/GroupedVerticalBarChart/{index.js.map → index.cjs.map} +1 -1
  429. package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.cjs.map +1 -0
  430. package/lib-commonjs/components/GroupedVerticalBarChart/{useGroupedVerticalBarChartStyles.styles.raw.js → useGroupedVerticalBarChartStyles.styles.raw.cjs} +1 -1
  431. package/lib-commonjs/components/GroupedVerticalBarChart/{useGroupedVerticalBarChartStyles.styles.raw.js.map → useGroupedVerticalBarChartStyles.styles.raw.cjs.map} +1 -1
  432. package/lib-commonjs/components/HeatMapChart/{HeatMapChart.js → HeatMapChart.cjs} +13 -8
  433. package/lib-commonjs/components/HeatMapChart/HeatMapChart.cjs.map +1 -0
  434. package/lib-commonjs/components/HeatMapChart/index.cjs +8 -0
  435. package/lib-commonjs/components/HeatMapChart/{index.js.map → index.cjs.map} +1 -1
  436. package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.cjs.map +1 -0
  437. package/lib-commonjs/components/HorizontalBarChart/{HorizontalBarChart.js → HorizontalBarChart.cjs} +6 -6
  438. package/lib-commonjs/components/HorizontalBarChart/{HorizontalBarChart.js.map → HorizontalBarChart.cjs.map} +1 -1
  439. package/lib-commonjs/components/HorizontalBarChart/index.cjs +8 -0
  440. package/lib-commonjs/components/HorizontalBarChart/{index.js.map → index.cjs.map} +1 -1
  441. package/lib-commonjs/components/HorizontalBarChart/{useHorizontalBarChartStyles.styles.js → useHorizontalBarChartStyles.styles.cjs} +5 -5
  442. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.cjs.map +1 -0
  443. package/lib-commonjs/components/HorizontalBarChart/{useHorizontalBarChartStyles.styles.raw.js → useHorizontalBarChartStyles.styles.raw.cjs} +3 -3
  444. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.cjs.map +1 -0
  445. package/lib-commonjs/components/HorizontalBarChartWithAxis/{HorizontalBarChartWithAxis.js → HorizontalBarChartWithAxis.cjs} +9 -9
  446. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.cjs.map +1 -0
  447. package/lib-commonjs/components/HorizontalBarChartWithAxis/index.cjs +8 -0
  448. package/lib-commonjs/components/HorizontalBarChartWithAxis/{index.js.map → index.cjs.map} +1 -1
  449. package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.cjs.map +1 -0
  450. package/lib-commonjs/components/HorizontalBarChartWithAxis/{useHorizontalBarChartWithAxisStyles.styles.raw.js → useHorizontalBarChartWithAxisStyles.styles.raw.cjs} +1 -1
  451. package/lib-commonjs/components/HorizontalBarChartWithAxis/{useHorizontalBarChartWithAxisStyles.styles.raw.js.map → useHorizontalBarChartWithAxisStyles.styles.raw.cjs.map} +1 -1
  452. package/lib-commonjs/components/Legends/{Legends.js → Legends.cjs} +66 -36
  453. package/lib-commonjs/components/Legends/Legends.cjs.map +1 -0
  454. package/lib-commonjs/components/Legends/OverflowMenu.cjs +82 -0
  455. package/lib-commonjs/components/Legends/OverflowMenu.cjs.map +1 -0
  456. package/lib-commonjs/components/Legends/index.cjs +8 -0
  457. package/lib-commonjs/components/Legends/{index.js.map → index.cjs.map} +1 -1
  458. package/lib-commonjs/components/Legends/{shape.js → shape.cjs} +1 -1
  459. package/lib-commonjs/components/Legends/{shape.js.map → shape.cjs.map} +1 -1
  460. package/lib-commonjs/components/Legends/useLegendsStyles.styles.cjs.map +1 -0
  461. package/lib-commonjs/components/Legends/{useLegendsStyles.styles.raw.js → useLegendsStyles.styles.raw.cjs} +1 -1
  462. package/lib-commonjs/components/Legends/{useLegendsStyles.styles.raw.js.map → useLegendsStyles.styles.raw.cjs.map} +1 -1
  463. package/lib-commonjs/components/LineChart/{LineChart.js → LineChart.cjs} +7 -7
  464. package/lib-commonjs/components/LineChart/{LineChart.js.map → LineChart.cjs.map} +1 -1
  465. package/lib-commonjs/components/LineChart/eventAnnotation/{EventAnnotation.js → EventAnnotation.cjs} +3 -3
  466. package/lib-commonjs/components/LineChart/eventAnnotation/{EventAnnotation.js.map → EventAnnotation.cjs.map} +1 -1
  467. package/lib-commonjs/components/LineChart/eventAnnotation/{LabelLink.js → LabelLink.cjs} +2 -2
  468. package/lib-commonjs/components/LineChart/eventAnnotation/{LabelLink.js.map → LabelLink.cjs.map} +1 -1
  469. package/lib-commonjs/components/LineChart/eventAnnotation/{Textbox.js → Textbox.cjs} +1 -1
  470. package/lib-commonjs/components/LineChart/eventAnnotation/{Textbox.js.map → Textbox.cjs.map} +1 -1
  471. package/lib-commonjs/components/LineChart/index.cjs +9 -0
  472. package/lib-commonjs/components/LineChart/{index.js.map → index.cjs.map} +1 -1
  473. package/lib-commonjs/components/LineChart/useLineChartStyles.styles.cjs.map +1 -0
  474. package/lib-commonjs/components/LineChart/{useLineChartStyles.styles.raw.js → useLineChartStyles.styles.raw.cjs} +1 -1
  475. package/lib-commonjs/components/LineChart/{useLineChartStyles.styles.raw.js.map → useLineChartStyles.styles.raw.cjs.map} +1 -1
  476. package/lib-commonjs/components/PolarChart/{PolarChart.js → PolarChart.cjs} +6 -6
  477. package/lib-commonjs/components/PolarChart/{PolarChart.js.map → PolarChart.cjs.map} +1 -1
  478. package/lib-commonjs/components/PolarChart/{PolarChart.utils.js → PolarChart.utils.cjs} +1 -1
  479. package/lib-commonjs/components/PolarChart/{PolarChart.utils.js.map → PolarChart.utils.cjs.map} +1 -1
  480. package/lib-commonjs/components/PolarChart/index.cjs +7 -0
  481. package/lib-commonjs/components/PolarChart/{index.js.map → index.cjs.map} +1 -1
  482. package/lib-commonjs/components/PolarChart/usePolarChartStyles.styles.cjs.map +1 -0
  483. package/lib-commonjs/components/ResponsiveContainer/{ResponsiveContainer.js → ResponsiveContainer.cjs} +2 -2
  484. package/lib-commonjs/components/ResponsiveContainer/{ResponsiveContainer.js.map → ResponsiveContainer.cjs.map} +1 -1
  485. package/lib-commonjs/components/ResponsiveContainer/index.cjs +8 -0
  486. package/lib-commonjs/components/ResponsiveContainer/{index.js.map → index.cjs.map} +1 -1
  487. package/lib-commonjs/components/ResponsiveContainer/useResponsiveChildStyles.styles.cjs.map +1 -0
  488. package/lib-commonjs/components/ResponsiveContainer/{withResponsiveContainer.js → withResponsiveContainer.cjs} +1 -1
  489. package/lib-commonjs/components/ResponsiveContainer/{withResponsiveContainer.js.map → withResponsiveContainer.cjs.map} +1 -1
  490. package/lib-commonjs/components/SankeyChart/{SankeyChart.js → SankeyChart.cjs} +18 -12
  491. package/lib-commonjs/components/SankeyChart/SankeyChart.cjs.map +1 -0
  492. package/lib-commonjs/components/SankeyChart/index.cjs +8 -0
  493. package/lib-commonjs/components/SankeyChart/{index.js.map → index.cjs.map} +1 -1
  494. package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.cjs.map +1 -0
  495. package/lib-commonjs/components/SankeyChart/{useSankeyChartStyles.styles.raw.js → useSankeyChartStyles.styles.raw.cjs} +1 -1
  496. package/lib-commonjs/components/SankeyChart/{useSankeyChartStyles.styles.raw.js.map → useSankeyChartStyles.styles.raw.cjs.map} +1 -1
  497. package/lib-commonjs/components/ScatterChart/{ScatterChart.js → ScatterChart.cjs} +9 -9
  498. package/lib-commonjs/components/ScatterChart/ScatterChart.cjs.map +1 -0
  499. package/lib-commonjs/components/ScatterChart/index.cjs +8 -0
  500. package/lib-commonjs/components/ScatterChart/{index.js.map → index.cjs.map} +1 -1
  501. package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.cjs.map +1 -0
  502. package/lib-commonjs/components/ScatterChart/{useScatterChartStyles.styles.raw.js → useScatterChartStyles.styles.raw.cjs} +1 -1
  503. package/lib-commonjs/components/ScatterChart/{useScatterChartStyles.styles.raw.js.map → useScatterChartStyles.styles.raw.cjs.map} +1 -1
  504. package/lib-commonjs/components/Sparkline/{Sparkline.js → Sparkline.cjs} +2 -2
  505. package/lib-commonjs/components/Sparkline/{Sparkline.js.map → Sparkline.cjs.map} +1 -1
  506. package/lib-commonjs/components/Sparkline/index.cjs +8 -0
  507. package/lib-commonjs/components/Sparkline/{index.js.map → index.cjs.map} +1 -1
  508. package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.cjs.map +1 -0
  509. package/lib-commonjs/components/VegaDeclarativeChart/{VegaDeclarativeChart.js → VegaDeclarativeChart.cjs} +14 -14
  510. package/lib-commonjs/components/VegaDeclarativeChart/{VegaDeclarativeChart.js.map → VegaDeclarativeChart.cjs.map} +1 -1
  511. package/lib-commonjs/components/VegaDeclarativeChart/{VegaLiteColorAdapter.js → VegaLiteColorAdapter.cjs} +2 -2
  512. package/lib-commonjs/components/VegaDeclarativeChart/{VegaLiteColorAdapter.js.map → VegaLiteColorAdapter.cjs.map} +1 -1
  513. package/lib-commonjs/components/VegaDeclarativeChart/{VegaLiteSchemaAdapter.js → VegaLiteSchemaAdapter.cjs} +2 -2
  514. package/lib-commonjs/components/VegaDeclarativeChart/{VegaLiteSchemaAdapter.js.map → VegaLiteSchemaAdapter.cjs.map} +1 -1
  515. package/lib-commonjs/{Legends.js → components/VegaDeclarativeChart/index.cjs} +1 -1
  516. package/lib-commonjs/components/VegaDeclarativeChart/{index.js.map → index.cjs.map} +1 -1
  517. package/lib-commonjs/components/VerticalBarChart/{VerticalBarChart.js → VerticalBarChart.cjs} +10 -7
  518. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.cjs.map +1 -0
  519. package/lib-commonjs/components/VerticalBarChart/index.cjs +8 -0
  520. package/lib-commonjs/components/VerticalBarChart/{index.js.map → index.cjs.map} +1 -1
  521. package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.cjs.map +1 -0
  522. package/lib-commonjs/components/VerticalBarChart/{useVerticalBarChartStyles.styles.raw.js → useVerticalBarChartStyles.styles.raw.cjs} +2 -2
  523. package/lib-commonjs/components/VerticalBarChart/{useVerticalBarChartStyles.styles.raw.js.map → useVerticalBarChartStyles.styles.raw.cjs.map} +1 -1
  524. package/lib-commonjs/components/VerticalStackedBarChart/{VerticalStackedBarChart.js → VerticalStackedBarChart.cjs} +4 -4
  525. package/lib-commonjs/components/VerticalStackedBarChart/{VerticalStackedBarChart.js.map → VerticalStackedBarChart.cjs.map} +1 -1
  526. package/lib-commonjs/components/VerticalStackedBarChart/index.cjs +8 -0
  527. package/lib-commonjs/components/VerticalStackedBarChart/{index.js.map → index.cjs.map} +1 -1
  528. package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.cjs.map +1 -0
  529. package/lib-commonjs/components/VerticalStackedBarChart/{useVerticalStackedBarChartStyles.styles.raw.js → useVerticalStackedBarChartStyles.styles.raw.cjs} +1 -1
  530. package/lib-commonjs/components/VerticalStackedBarChart/{useVerticalStackedBarChartStyles.styles.raw.js.map → useVerticalStackedBarChartStyles.styles.raw.cjs.map} +1 -1
  531. package/lib-commonjs/index.cjs +31 -0
  532. package/lib-commonjs/{index.js.map → index.cjs.map} +1 -1
  533. package/lib-commonjs/types/index.cjs +8 -0
  534. package/lib-commonjs/types/{index.js.map → index.cjs.map} +1 -1
  535. package/lib-commonjs/utilities/{ChartTitle.js → ChartTitle.cjs} +3 -3
  536. package/lib-commonjs/utilities/{ChartTitle.js.map → ChartTitle.cjs.map} +1 -1
  537. package/lib-commonjs/utilities/{Common.styles.raw.js → Common.styles.cjs} +1 -1
  538. package/lib-commonjs/utilities/Common.styles.cjs.map +1 -0
  539. package/lib-commonjs/utilities/{Common.styles.js → Common.styles.raw.cjs} +1 -1
  540. package/lib-commonjs/utilities/{Common.styles.raw.js.map → Common.styles.raw.cjs.map} +1 -1
  541. package/lib-commonjs/utilities/{FocusableTooltipText.js → FocusableTooltipText.cjs} +3 -3
  542. package/lib-commonjs/utilities/{FocusableTooltipText.js.map → FocusableTooltipText.cjs.map} +1 -1
  543. package/lib-commonjs/utilities/{SVGTooltipText.js → SVGTooltipText.cjs} +2 -2
  544. package/lib-commonjs/utilities/{SVGTooltipText.js.map → SVGTooltipText.cjs.map} +1 -1
  545. package/lib-commonjs/utilities/{async-utils.js → async-utils.cjs} +1 -1
  546. package/lib-commonjs/utilities/{async-utils.js.map → async-utils.cjs.map} +1 -1
  547. package/lib-commonjs/utilities/{hooks.js → hooks.cjs} +2 -2
  548. package/lib-commonjs/utilities/{hooks.js.map → hooks.cjs.map} +1 -1
  549. package/lib-commonjs/utilities/{image-export-utils.js → image-export-utils.cjs} +2 -2
  550. package/lib-commonjs/utilities/{image-export-utils.js.map → image-export-utils.cjs.map} +1 -1
  551. package/lib-commonjs/utilities/index.cjs +10 -0
  552. package/lib-commonjs/utilities/{index.js.map → index.cjs.map} +1 -1
  553. package/lib-commonjs/utilities/{test-data.js → test-data.cjs} +1 -1
  554. package/lib-commonjs/utilities/{test-data.js.map → test-data.cjs.map} +1 -1
  555. package/lib-commonjs/utilities/{utilities.js → utilities.cjs} +2 -2
  556. package/lib-commonjs/utilities/utilities.cjs.map +1 -0
  557. package/package.json +21 -15
  558. package/lib-commonjs/GanttChart.js +0 -6
  559. package/lib-commonjs/GaugeChart.js +0 -6
  560. package/lib-commonjs/HorizontalBarChart.js +0 -6
  561. package/lib-commonjs/LineChart.js +0 -6
  562. package/lib-commonjs/PolarChart.js +0 -6
  563. package/lib-commonjs/Popover.js +0 -6
  564. package/lib-commonjs/ResponsiveContainer.js +0 -6
  565. package/lib-commonjs/ScatterChart.js +0 -6
  566. package/lib-commonjs/Sparkline.js +0 -6
  567. package/lib-commonjs/VerticalBarChart.js +0 -6
  568. package/lib-commonjs/components/AnnotationOnlyChart/index.js +0 -7
  569. package/lib-commonjs/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.js.map +0 -1
  570. package/lib-commonjs/components/AreaChart/index.js +0 -8
  571. package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.js.map +0 -1
  572. package/lib-commonjs/components/ChartTable/index.js +0 -8
  573. package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.js.map +0 -1
  574. package/lib-commonjs/components/CommonComponents/Annotations/index.js +0 -7
  575. package/lib-commonjs/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.js.map +0 -1
  576. package/lib-commonjs/components/CommonComponents/index.js +0 -11
  577. package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.js.map +0 -1
  578. package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.js.map +0 -1
  579. package/lib-commonjs/components/DonutChart/Arc/Arc.js.map +0 -1
  580. package/lib-commonjs/components/DonutChart/Arc/index.js +0 -7
  581. package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.js.map +0 -1
  582. package/lib-commonjs/components/DonutChart/Pie/index.js +0 -7
  583. package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.js.map +0 -1
  584. package/lib-commonjs/components/DonutChart/index.js +0 -8
  585. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.js.map +0 -1
  586. package/lib-commonjs/components/FunnelChart/FunnelChart.js.map +0 -1
  587. package/lib-commonjs/components/FunnelChart/index.js +0 -7
  588. package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.js.map +0 -1
  589. package/lib-commonjs/components/GanttChart/GanttChart.js.map +0 -1
  590. package/lib-commonjs/components/GanttChart/index.js +0 -7
  591. package/lib-commonjs/components/GaugeChart/index.js +0 -8
  592. package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.js.map +0 -1
  593. package/lib-commonjs/components/GroupedVerticalBarChart/index.js +0 -8
  594. package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js.map +0 -1
  595. package/lib-commonjs/components/HeatMapChart/HeatMapChart.js.map +0 -1
  596. package/lib-commonjs/components/HeatMapChart/index.js +0 -8
  597. package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.js.map +0 -1
  598. package/lib-commonjs/components/HorizontalBarChart/index.js +0 -8
  599. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js.map +0 -1
  600. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.js.map +0 -1
  601. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +0 -1
  602. package/lib-commonjs/components/HorizontalBarChartWithAxis/index.js +0 -8
  603. package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js.map +0 -1
  604. package/lib-commonjs/components/Legends/Legends.js.map +0 -1
  605. package/lib-commonjs/components/Legends/OverflowMenu.js +0 -44
  606. package/lib-commonjs/components/Legends/OverflowMenu.js.map +0 -1
  607. package/lib-commonjs/components/Legends/index.js +0 -8
  608. package/lib-commonjs/components/Legends/useLegendsStyles.styles.js.map +0 -1
  609. package/lib-commonjs/components/LineChart/index.js +0 -9
  610. package/lib-commonjs/components/LineChart/useLineChartStyles.styles.js.map +0 -1
  611. package/lib-commonjs/components/PolarChart/index.js +0 -7
  612. package/lib-commonjs/components/PolarChart/usePolarChartStyles.styles.js.map +0 -1
  613. package/lib-commonjs/components/ResponsiveContainer/index.js +0 -8
  614. package/lib-commonjs/components/ResponsiveContainer/useResponsiveChildStyles.styles.js.map +0 -1
  615. package/lib-commonjs/components/SankeyChart/SankeyChart.js.map +0 -1
  616. package/lib-commonjs/components/SankeyChart/index.js +0 -8
  617. package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.js.map +0 -1
  618. package/lib-commonjs/components/ScatterChart/ScatterChart.js.map +0 -1
  619. package/lib-commonjs/components/ScatterChart/index.js +0 -8
  620. package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.js.map +0 -1
  621. package/lib-commonjs/components/Sparkline/index.js +0 -8
  622. package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.js.map +0 -1
  623. package/lib-commonjs/components/VegaDeclarativeChart/index.js +0 -6
  624. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js.map +0 -1
  625. package/lib-commonjs/components/VerticalBarChart/index.js +0 -8
  626. package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.js.map +0 -1
  627. package/lib-commonjs/components/VerticalStackedBarChart/index.js +0 -8
  628. package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js.map +0 -1
  629. package/lib-commonjs/index.js +0 -31
  630. package/lib-commonjs/types/index.js +0 -8
  631. package/lib-commonjs/utilities/Common.styles.js.map +0 -1
  632. package/lib-commonjs/utilities/index.js +0 -10
  633. package/lib-commonjs/utilities/utilities.js.map +0 -1
  634. /package/lib-commonjs/components/AnnotationOnlyChart/{AnnotationOnlyChart.types.js → AnnotationOnlyChart.types.cjs} +0 -0
  635. /package/lib-commonjs/components/AnnotationOnlyChart/{AnnotationOnlyChart.types.js.map → AnnotationOnlyChart.types.cjs.map} +0 -0
  636. /package/lib-commonjs/components/AnnotationOnlyChart/{useAnnotationOnlyChartStyles.styles.js → useAnnotationOnlyChartStyles.styles.cjs} +0 -0
  637. /package/lib-commonjs/components/AnnotationOnlyChart/{useAnnotationOnlyChartStyles.styles.raw.js → useAnnotationOnlyChartStyles.styles.raw.cjs} +0 -0
  638. /package/lib-commonjs/components/AnnotationOnlyChart/{useAnnotationOnlyChartStyles.styles.raw.js.map → useAnnotationOnlyChartStyles.styles.raw.cjs.map} +0 -0
  639. /package/lib-commonjs/components/AreaChart/{AreaChart.types.js → AreaChart.types.cjs} +0 -0
  640. /package/lib-commonjs/components/AreaChart/{AreaChart.types.js.map → AreaChart.types.cjs.map} +0 -0
  641. /package/lib-commonjs/components/AreaChart/{useAreaChartStyles.styles.js → useAreaChartStyles.styles.cjs} +0 -0
  642. /package/lib-commonjs/components/ChartTable/{ChartTable.types.js → ChartTable.types.cjs} +0 -0
  643. /package/lib-commonjs/components/ChartTable/{ChartTable.types.js.map → ChartTable.types.cjs.map} +0 -0
  644. /package/lib-commonjs/components/ChartTable/{useChartTableStyles.styles.js → useChartTableStyles.styles.cjs} +0 -0
  645. /package/lib-commonjs/components/CommonComponents/Annotations/{ChartAnnotationLayer.types.js → ChartAnnotationLayer.types.cjs} +0 -0
  646. /package/lib-commonjs/components/CommonComponents/Annotations/{ChartAnnotationLayer.types.js.map → ChartAnnotationLayer.types.cjs.map} +0 -0
  647. /package/lib-commonjs/components/CommonComponents/Annotations/{useChartAnnotationLayer.styles.js → useChartAnnotationLayer.styles.cjs} +0 -0
  648. /package/lib-commonjs/components/CommonComponents/Annotations/{useChartAnnotationLayer.styles.raw.js → useChartAnnotationLayer.styles.raw.cjs} +0 -0
  649. /package/lib-commonjs/components/CommonComponents/Annotations/{useChartAnnotationLayer.styles.raw.js.map → useChartAnnotationLayer.styles.raw.cjs.map} +0 -0
  650. /package/lib-commonjs/components/CommonComponents/{CartesianChart.types.js → CartesianChart.types.cjs} +0 -0
  651. /package/lib-commonjs/components/CommonComponents/{CartesianChart.types.js.map → CartesianChart.types.cjs.map} +0 -0
  652. /package/lib-commonjs/components/CommonComponents/{ChartPopover.types.js → ChartPopover.types.cjs} +0 -0
  653. /package/lib-commonjs/components/CommonComponents/{ChartPopover.types.js.map → ChartPopover.types.cjs.map} +0 -0
  654. /package/lib-commonjs/components/CommonComponents/{useChartPopoverStyles.styles.js → useChartPopoverStyles.styles.cjs} +0 -0
  655. /package/lib-commonjs/components/CommonComponents/{useChartPopoverStyles.styles.raw.js → useChartPopoverStyles.styles.raw.cjs} +0 -0
  656. /package/lib-commonjs/components/CommonComponents/{useChartPopoverStyles.styles.raw.js.map → useChartPopoverStyles.styles.raw.cjs.map} +0 -0
  657. /package/lib-commonjs/components/DonutChart/Arc/{Arc.types.js → Arc.types.cjs} +0 -0
  658. /package/lib-commonjs/components/DonutChart/Arc/{Arc.types.js.map → Arc.types.cjs.map} +0 -0
  659. /package/lib-commonjs/components/DonutChart/Arc/{useArcStyles.styles.js → useArcStyles.styles.cjs} +0 -0
  660. /package/lib-commonjs/components/DonutChart/{DonutChart.types.js → DonutChart.types.cjs} +0 -0
  661. /package/lib-commonjs/components/DonutChart/{DonutChart.types.js.map → DonutChart.types.cjs.map} +0 -0
  662. /package/lib-commonjs/components/DonutChart/Pie/{Pie.types.js → Pie.types.cjs} +0 -0
  663. /package/lib-commonjs/components/DonutChart/Pie/{Pie.types.js.map → Pie.types.cjs.map} +0 -0
  664. /package/lib-commonjs/components/DonutChart/Pie/{usePieStyles.styles.js → usePieStyles.styles.cjs} +0 -0
  665. /package/lib-commonjs/components/DonutChart/Pie/{usePieStyles.styles.raw.js → usePieStyles.styles.raw.cjs} +0 -0
  666. /package/lib-commonjs/components/DonutChart/Pie/{usePieStyles.styles.raw.js.map → usePieStyles.styles.raw.cjs.map} +0 -0
  667. /package/lib-commonjs/components/DonutChart/{useDonutChartStyles.styles.js → useDonutChartStyles.styles.cjs} +0 -0
  668. /package/lib-commonjs/components/FunnelChart/{FunnelChart.types.js → FunnelChart.types.cjs} +0 -0
  669. /package/lib-commonjs/components/FunnelChart/{FunnelChart.types.js.map → FunnelChart.types.cjs.map} +0 -0
  670. /package/lib-commonjs/components/FunnelChart/{funnelGeometry.js → funnelGeometry.cjs} +0 -0
  671. /package/lib-commonjs/components/FunnelChart/{funnelGeometry.js.map → funnelGeometry.cjs.map} +0 -0
  672. /package/lib-commonjs/components/FunnelChart/{useFunnelChartStyles.styles.js → useFunnelChartStyles.styles.cjs} +0 -0
  673. /package/lib-commonjs/components/GanttChart/{GanttChart.types.js → GanttChart.types.cjs} +0 -0
  674. /package/lib-commonjs/components/GanttChart/{GanttChart.types.js.map → GanttChart.types.cjs.map} +0 -0
  675. /package/lib-commonjs/components/GanttChart/{useGanttChartStyles.styles.js → useGanttChartStyles.styles.cjs} +0 -0
  676. /package/lib-commonjs/components/GanttChart/{useGanttChartStyles.styles.js.map → useGanttChartStyles.styles.cjs.map} +0 -0
  677. /package/lib-commonjs/components/GanttChart/{useGanttChartStyles.styles.raw.js → useGanttChartStyles.styles.raw.cjs} +0 -0
  678. /package/lib-commonjs/components/GanttChart/{useGanttChartStyles.styles.raw.js.map → useGanttChartStyles.styles.raw.cjs.map} +0 -0
  679. /package/lib-commonjs/components/GaugeChart/{GaugeChart.types.js → GaugeChart.types.cjs} +0 -0
  680. /package/lib-commonjs/components/GaugeChart/{GaugeChart.types.js.map → GaugeChart.types.cjs.map} +0 -0
  681. /package/lib-commonjs/components/GaugeChart/{useGaugeChartStyles.styles.js → useGaugeChartStyles.styles.cjs} +0 -0
  682. /package/lib-commonjs/components/GroupedVerticalBarChart/{GroupedVerticalBarChart.types.js → GroupedVerticalBarChart.types.cjs} +0 -0
  683. /package/lib-commonjs/components/GroupedVerticalBarChart/{GroupedVerticalBarChart.types.js.map → GroupedVerticalBarChart.types.cjs.map} +0 -0
  684. /package/lib-commonjs/components/GroupedVerticalBarChart/{useGroupedVerticalBarChartStyles.styles.js → useGroupedVerticalBarChartStyles.styles.cjs} +0 -0
  685. /package/lib-commonjs/components/HeatMapChart/{HeatMapChart.types.js → HeatMapChart.types.cjs} +0 -0
  686. /package/lib-commonjs/components/HeatMapChart/{HeatMapChart.types.js.map → HeatMapChart.types.cjs.map} +0 -0
  687. /package/lib-commonjs/components/HeatMapChart/{useHeatMapChartStyles.styles.js → useHeatMapChartStyles.styles.cjs} +0 -0
  688. /package/lib-commonjs/components/HeatMapChart/{useHeatMapChartStyles.styles.raw.js → useHeatMapChartStyles.styles.raw.cjs} +0 -0
  689. /package/lib-commonjs/components/HeatMapChart/{useHeatMapChartStyles.styles.raw.js.map → useHeatMapChartStyles.styles.raw.cjs.map} +0 -0
  690. /package/lib-commonjs/components/HorizontalBarChart/{HorizontalBarChart.types.js → HorizontalBarChart.types.cjs} +0 -0
  691. /package/lib-commonjs/components/HorizontalBarChart/{HorizontalBarChart.types.js.map → HorizontalBarChart.types.cjs.map} +0 -0
  692. /package/lib-commonjs/components/HorizontalBarChartWithAxis/{HorizontalBarChartWithAxis.types.js → HorizontalBarChartWithAxis.types.cjs} +0 -0
  693. /package/lib-commonjs/components/HorizontalBarChartWithAxis/{HorizontalBarChartWithAxis.types.js.map → HorizontalBarChartWithAxis.types.cjs.map} +0 -0
  694. /package/lib-commonjs/components/HorizontalBarChartWithAxis/{useHorizontalBarChartWithAxisStyles.styles.js → useHorizontalBarChartWithAxisStyles.styles.cjs} +0 -0
  695. /package/lib-commonjs/components/Legends/{Legends.types.js → Legends.types.cjs} +0 -0
  696. /package/lib-commonjs/components/Legends/{Legends.types.js.map → Legends.types.cjs.map} +0 -0
  697. /package/lib-commonjs/components/Legends/{useLegendsStyles.styles.js → useLegendsStyles.styles.cjs} +0 -0
  698. /package/lib-commonjs/components/LineChart/{LineChart.types.js → LineChart.types.cjs} +0 -0
  699. /package/lib-commonjs/components/LineChart/{LineChart.types.js.map → LineChart.types.cjs.map} +0 -0
  700. /package/lib-commonjs/components/LineChart/{useLineChartStyles.styles.js → useLineChartStyles.styles.cjs} +0 -0
  701. /package/lib-commonjs/components/PolarChart/{PolarChart.types.js → PolarChart.types.cjs} +0 -0
  702. /package/lib-commonjs/components/PolarChart/{PolarChart.types.js.map → PolarChart.types.cjs.map} +0 -0
  703. /package/lib-commonjs/components/PolarChart/{usePolarChartStyles.styles.js → usePolarChartStyles.styles.cjs} +0 -0
  704. /package/lib-commonjs/components/PolarChart/{usePolarChartStyles.styles.raw.js → usePolarChartStyles.styles.raw.cjs} +0 -0
  705. /package/lib-commonjs/components/PolarChart/{usePolarChartStyles.styles.raw.js.map → usePolarChartStyles.styles.raw.cjs.map} +0 -0
  706. /package/lib-commonjs/components/ResponsiveContainer/{ResponsiveContainer.types.js → ResponsiveContainer.types.cjs} +0 -0
  707. /package/lib-commonjs/components/ResponsiveContainer/{ResponsiveContainer.types.js.map → ResponsiveContainer.types.cjs.map} +0 -0
  708. /package/lib-commonjs/components/ResponsiveContainer/{useResponsiveChildStyles.styles.js → useResponsiveChildStyles.styles.cjs} +0 -0
  709. /package/lib-commonjs/components/ResponsiveContainer/{useResponsiveChildStyles.styles.raw.js → useResponsiveChildStyles.styles.raw.cjs} +0 -0
  710. /package/lib-commonjs/components/ResponsiveContainer/{useResponsiveChildStyles.styles.raw.js.map → useResponsiveChildStyles.styles.raw.cjs.map} +0 -0
  711. /package/lib-commonjs/components/SankeyChart/{SankeyChart.types.js → SankeyChart.types.cjs} +0 -0
  712. /package/lib-commonjs/components/SankeyChart/{SankeyChart.types.js.map → SankeyChart.types.cjs.map} +0 -0
  713. /package/lib-commonjs/components/SankeyChart/{useSankeyChartStyles.styles.js → useSankeyChartStyles.styles.cjs} +0 -0
  714. /package/lib-commonjs/components/ScatterChart/{ScatterChart.types.js → ScatterChart.types.cjs} +0 -0
  715. /package/lib-commonjs/components/ScatterChart/{ScatterChart.types.js.map → ScatterChart.types.cjs.map} +0 -0
  716. /package/lib-commonjs/components/ScatterChart/{useScatterChartStyles.styles.js → useScatterChartStyles.styles.cjs} +0 -0
  717. /package/lib-commonjs/components/Sparkline/{Sparkline.types.js → Sparkline.types.cjs} +0 -0
  718. /package/lib-commonjs/components/Sparkline/{Sparkline.types.js.map → Sparkline.types.cjs.map} +0 -0
  719. /package/lib-commonjs/components/Sparkline/{useSparklineStyles.styles.js → useSparklineStyles.styles.cjs} +0 -0
  720. /package/lib-commonjs/components/Sparkline/{useSparklineStyles.styles.raw.js → useSparklineStyles.styles.raw.cjs} +0 -0
  721. /package/lib-commonjs/components/Sparkline/{useSparklineStyles.styles.raw.js.map → useSparklineStyles.styles.raw.cjs.map} +0 -0
  722. /package/lib-commonjs/components/VegaDeclarativeChart/{VegaDeclarativeChartHooks.js → VegaDeclarativeChartHooks.cjs} +0 -0
  723. /package/lib-commonjs/components/VegaDeclarativeChart/{VegaDeclarativeChartHooks.js.map → VegaDeclarativeChartHooks.cjs.map} +0 -0
  724. /package/lib-commonjs/components/VegaDeclarativeChart/{VegaLiteExpressionEvaluator.js → VegaLiteExpressionEvaluator.cjs} +0 -0
  725. /package/lib-commonjs/components/VegaDeclarativeChart/{VegaLiteExpressionEvaluator.js.map → VegaLiteExpressionEvaluator.cjs.map} +0 -0
  726. /package/lib-commonjs/components/VegaDeclarativeChart/{VegaLiteTypes.js → VegaLiteTypes.cjs} +0 -0
  727. /package/lib-commonjs/components/VegaDeclarativeChart/{VegaLiteTypes.js.map → VegaLiteTypes.cjs.map} +0 -0
  728. /package/lib-commonjs/components/VerticalBarChart/{VerticalBarChart.types.js → VerticalBarChart.types.cjs} +0 -0
  729. /package/lib-commonjs/components/VerticalBarChart/{VerticalBarChart.types.js.map → VerticalBarChart.types.cjs.map} +0 -0
  730. /package/lib-commonjs/components/VerticalBarChart/{useVerticalBarChartStyles.styles.js → useVerticalBarChartStyles.styles.cjs} +0 -0
  731. /package/lib-commonjs/components/VerticalStackedBarChart/{VerticalStackedBarChart.types.js → VerticalStackedBarChart.types.cjs} +0 -0
  732. /package/lib-commonjs/components/VerticalStackedBarChart/{VerticalStackedBarChart.types.js.map → VerticalStackedBarChart.types.cjs.map} +0 -0
  733. /package/lib-commonjs/components/VerticalStackedBarChart/{useVerticalStackedBarChartStyles.styles.js → useVerticalStackedBarChartStyles.styles.cjs} +0 -0
  734. /package/lib-commonjs/types/{ChartAnnotation.js → ChartAnnotation.cjs} +0 -0
  735. /package/lib-commonjs/types/{ChartAnnotation.js.map → ChartAnnotation.cjs.map} +0 -0
  736. /package/lib-commonjs/types/{DataPoint.js → DataPoint.cjs} +0 -0
  737. /package/lib-commonjs/types/{DataPoint.js.map → DataPoint.cjs.map} +0 -0
  738. /package/lib-commonjs/types/{EventAnnotation.js → EventAnnotation.cjs} +0 -0
  739. /package/lib-commonjs/types/{EventAnnotation.js.map → EventAnnotation.cjs.map} +0 -0
  740. /package/lib-commonjs/types/{LegendDataItem.js → LegendDataItem.cjs} +0 -0
  741. /package/lib-commonjs/types/{LegendDataItem.js.map → LegendDataItem.cjs.map} +0 -0
  742. /package/lib-commonjs/utilities/{KeyCodes.js → KeyCodes.cjs} +0 -0
  743. /package/lib-commonjs/utilities/{KeyCodes.js.map → KeyCodes.cjs.map} +0 -0
  744. /package/lib-commonjs/utilities/{colors.js → colors.cjs} +0 -0
  745. /package/lib-commonjs/utilities/{colors.js.map → colors.cjs.map} +0 -0
  746. /package/lib-commonjs/utilities/{getWindow.js → getWindow.cjs} +0 -0
  747. /package/lib-commonjs/utilities/{getWindow.js.map → getWindow.cjs.map} +0 -0
  748. /package/lib-commonjs/utilities/{overflow-utils.js → overflow-utils.cjs} +0 -0
  749. /package/lib-commonjs/utilities/{overflow-utils.js.map → overflow-utils.cjs.map} +0 -0
  750. /package/lib-commonjs/utilities/{scatterpolar-utils.js → scatterpolar-utils.cjs} +0 -0
  751. /package/lib-commonjs/utilities/{scatterpolar-utils.js.map → scatterpolar-utils.cjs.map} +0 -0
  752. /package/lib-commonjs/utilities/{string.js → string.cjs} +0 -0
  753. /package/lib-commonjs/utilities/{string.js.map → string.cjs.map} +0 -0
  754. /package/lib-commonjs/utilities/{vbc-utils.js → vbc-utils.cjs} +0 -0
  755. /package/lib-commonjs/utilities/{vbc-utils.js.map → vbc-utils.cjs.map} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["usePolarChartStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses } from \"@griffel/react\";\nimport { tokens, typographyStyles } from \"@fluentui/react-theme\";\n/**\n * @internal\n */ export const polarChartClassNames = {\n root: 'fui-polar__root',\n chartWrapper: 'fui-polar__chartWrapper',\n chart: 'fui-polar__chart',\n gridLineInner: 'fui-polar__gridLineInner',\n gridLineOuter: 'fui-polar__gridLineOuter',\n tickLabel: 'fui-polar__tickLabel',\n legendContainer: 'fui-polar__legendContainer'\n};\nconst useStyles = makeStyles({\n root: {\n ...typographyStyles.body1,\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n width: '100%',\n height: '100%',\n textAlign: 'left'\n },\n chart: {\n display: 'block'\n },\n gridLine: {\n fill: 'none',\n stroke: tokens.colorNeutralForeground1,\n strokeWidth: '1px'\n },\n gridLineInner: {\n opacity: 0.2\n },\n gridLineOuter: {\n opacity: 1\n },\n tickLabel: {\n ...typographyStyles.caption2Strong,\n fill: tokens.colorNeutralForeground1\n },\n legendContainer: {\n width: '100%'\n }\n});\n/**\n * Apply styling to the PolarChart component\n */ export const usePolarChartStyles = (props)=>{\n var _props_styles, _props_styles1, _props_styles2, _props_styles3, _props_styles4, _props_styles5, _props_styles6;\n const baseStyles = useStyles();\n return {\n root: mergeClasses(polarChartClassNames.root, baseStyles.root, (_props_styles = props.styles) === null || _props_styles === void 0 ? void 0 : _props_styles.root),\n chartWrapper: mergeClasses(polarChartClassNames.chartWrapper, (_props_styles1 = props.styles) === null || _props_styles1 === void 0 ? void 0 : _props_styles1.chartWrapper),\n chart: mergeClasses(polarChartClassNames.chart, baseStyles.chart, (_props_styles2 = props.styles) === null || _props_styles2 === void 0 ? void 0 : _props_styles2.chart),\n gridLineInner: mergeClasses(polarChartClassNames.gridLineInner, baseStyles.gridLine, baseStyles.gridLineInner, (_props_styles3 = props.styles) === null || _props_styles3 === void 0 ? void 0 : _props_styles3.gridLineInner),\n gridLineOuter: mergeClasses(polarChartClassNames.gridLineOuter, baseStyles.gridLine, baseStyles.gridLineOuter, (_props_styles4 = props.styles) === null || _props_styles4 === void 0 ? void 0 : _props_styles4.gridLineOuter),\n tickLabel: mergeClasses(polarChartClassNames.tickLabel, baseStyles.tickLabel, (_props_styles5 = props.styles) === null || _props_styles5 === void 0 ? void 0 : _props_styles5.tickLabel),\n legendContainer: mergeClasses(polarChartClassNames.legendContainer, baseStyles.legendContainer, (_props_styles6 = props.styles) === null || _props_styles6 === void 0 ? void 0 : _props_styles6.legendContainer)\n };\n};\n"],"names":["__styles","mergeClasses","tokens","typographyStyles","polarChartClassNames","root","chartWrapper","chart","gridLineInner","gridLineOuter","tickLabel","legendContainer","useStyles","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","mc9l5x","Beiy3e4","Bt984gj","a9b677","Bqenvij","fsow6f","gridLine","Bkfmm31","ojy3ng","Be5yapy","abs64n","d","usePolarChartStyles","props","_props_styles","_props_styles1","_props_styles2","_props_styles3","_props_styles4","_props_styles5","_props_styles6","baseStyles","styles"],"mappings":"AAAA,YAAY;;;;;;;;;;;;IAKKI,oBAAoB;;;uBA2CD;eAAnByB;;;uBA/CwB,gBAAgB;AAI9C,6BAA6B;IACpCxB,IAAI,EAAE,iBAAiB;IACvBC,YAAY,EAAE,yBAAyB;IACvCC,KAAK,EAAE,kBAAkB;IACzBC,aAAa,EAAE,0BAA0B;IACzCC,aAAa,EAAE,0BAA0B;IACzCC,SAAS,EAAE,s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,GAAGA,cAAc,CAAC1B,SAAS,CAAC;QACxLC,eAAe,MAAEV,mBAAY,EAACG,oBAAoB,CAACO,eAAe,EAAE2B,UAAU,CAAC3B,eAAe,EAAE,CAAC0B,cAAc,GAAGP,KAAK,CAACS,MAAAA,AAAM,MAAM,IAAI,IAAIF,cAAc,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,cAAc,CAAC1B,eAAe;IACnN,CAAC;AACL,CAAC"}
@@ -11,8 +11,8 @@ Object.defineProperty(exports, "ResponsiveContainer", {
11
11
  });
12
12
  const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
13
13
  const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
14
- const _getWindow = require("../../utilities/getWindow");
15
- const _useResponsiveChildStylesstyles = require("./useResponsiveChildStyles.styles");
14
+ const _getWindow = require("../../utilities/getWindow.cjs");
15
+ const _useResponsiveChildStylesstyles = require("./useResponsiveChildStyles.styles.cjs");
16
16
  const _react1 = require("@griffel/react");
17
17
  const ResponsiveContainer = (props)=>{
18
18
  const containerRef = _react.useRef(null);
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/ResponsiveContainer/ResponsiveContainer.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { getWindow } from '../../utilities/getWindow';\nimport type { ResponsiveChildProps, ResponsiveContainerProps } from './ResponsiveContainer.types';\nimport { useResponsiveChildStyles } from './useResponsiveChildStyles.styles';\nimport { mergeClasses } from '@griffel/react';\n\n/**\n * Responsive Container component\n * {@docCategory ResponsiveContainer}\n */\nexport const ResponsiveContainer: React.FC<ResponsiveContainerProps> = props => {\n const containerRef = React.useRef<HTMLDivElement>(null);\n const onResizeRef = React.useRef<ResponsiveContainerProps['onResize'] | undefined>(undefined);\n const childClasses = useResponsiveChildStyles();\n\n const [size, setSize] = React.useState<{ containerWidth?: number; containerHeight?: number }>({});\n\n // eslint-disable-next-line react-hooks/refs\n onResizeRef.current = props.onResize;\n\n React.useEffect(() => {\n const _window = getWindow(containerRef.current) as (Window & typeof globalThis) | undefined;\n let animationFrameId: number | undefined;\n let resizeObserver: ResizeObserver | undefined;\n\n const resizeCallback = (entries: ResizeObserverEntry[]) => {\n const { width: containerWidth, height: containerHeight } = entries[0].contentRect;\n // rAF is an alternative to the throttle function. For more info, see:\n // https://css-tricks.com/debouncing-throttling-explained-examples/#aa-requestanimationframe-raf\n animationFrameId = _window?.requestAnimationFrame(() => {\n // eslint-disable-next-line react-hooks/set-state-in-effect\n setSize(prevSize => {\n const roundedWidth = Math.floor(containerWidth);\n const roundedHeight = Math.floor(containerHeight);\n if (prevSize.containerWidth === roundedWidth && prevSize.containerHeight === roundedHeight) {\n return prevSize;\n }\n\n return { containerWidth: roundedWidth, containerHeight: roundedHeight };\n });\n });\n onResizeRef.current?.(containerWidth, containerHeight);\n };\n\n if (_window && _window.ResizeObserver) {\n resizeObserver = new _window.ResizeObserver(resizeCallback);\n if (containerRef.current) {\n resizeObserver.observe(containerRef.current);\n }\n }\n\n return () => {\n if (animationFrameId) {\n _window?.cancelAnimationFrame(animationFrameId);\n }\n\n resizeObserver?.disconnect();\n };\n }, []);\n\n const chartContent = React.useMemo(() => {\n let calculatedWidth = size.containerWidth;\n let calculatedHeight = size.containerHeight;\n\n if (typeof props.aspect === 'number' && props.aspect > 0) {\n if (calculatedWidth) {\n calculatedHeight = calculatedWidth / props.aspect;\n } else if (calculatedHeight) {\n calculatedWidth = calculatedHeight * props.aspect;\n }\n\n if (typeof props.maxHeight === 'number' && calculatedHeight && calculatedHeight > props.maxHeight) {\n calculatedHeight = props.maxHeight;\n }\n }\n\n return React.Children.map(props.children, child => {\n return React.cloneElement<ResponsiveChildProps>(child, {\n width: calculatedWidth,\n height: calculatedHeight,\n // For SankeyChart\n shouldResize: (calculatedWidth ?? 0) + (calculatedHeight ?? 0),\n styles: {\n root: mergeClasses(child.props.styles?.root, childClasses.root),\n chartWrapper: mergeClasses(child.props.styles?.chartWrapper, childClasses.chartWrapper),\n chart: mergeClasses(child.props.styles?.chart, childClasses.chart),\n },\n });\n });\n }, [size, props.aspect, props.maxHeight, props.children]);\n\n return (\n <div\n ref={containerRef}\n style={{\n width: props.width ?? '100%',\n height: props.height ?? '100%',\n minWidth: props.minWidth,\n minHeight: props.minHeight,\n maxHeight: props.maxHeight,\n }}\n >\n {chartContent}\n </div>\n );\n};\nResponsiveContainer.displayName = 'ResponsiveContainer';\n"],"names":["React","getWindow","useResponsiveChildStyles","mergeClasses","ResponsiveContainer","props","containerRef","useRef","onResizeRef","undefined","childClasses","size","setSize","useState","current","onResize","useEffect","_window","animationFrameId","resizeObserver","resizeCallback","entries","width","containerWidth","height","containerHeight","contentRect","requestAnimationFrame","prevSize","roundedWidth","Math","floor","roundedHeight","ResizeObserver","observe","cancelAnimationFrame","disconnect","chartContent","useMemo","calculatedWidth","calculatedHeight","aspect","maxHeight","Children","map","children","child","cloneElement","shouldResize","styles","root","chartWrapper","chart","div","ref","style","minWidth","minHeight","displayName"],"mappings":"AAAA;;;;;+BAYaI;;;;;;;iEAVU,QAAQ;2BACL,4BAA4B;gDAEb,oCAAoC;wBAChD,iBAAiB;AAMvC,4BAAgEC,CAAAA;IACrE,MAAMC,eAAeN,OAAMO,MAAM,CAAiB;IAClD,MAAMC,cAAcR,OAAMO,MAAM,CAAmDE;IACnF,MAAMC,mBAAeR,wDAAAA;IAErB,MAAM,CAACS,MAAMC,QAAQ,GAAGZ,OAAMa,QAAQ,CAAwD,CAAC;IAE/F,4CAA4C;IAC5CL,YAAYM,OAAO,GAAGT,MAAMU,QAAQ;IAEpCf,OAAMgB,SAAS,CAAC;QACd,MAAMC,cAAUhB,oBAAAA,EAAUK,aAAaQ,OAAO;QAC9C,IAAII;QACJ,IAAIC;QAEJ,MAAMC,iBAAiB,CAACC;gBAgBtBb;YAfA,MAAM,EAAEc,OAAOC,cAAc,EAAEC,QAAQC,eAAe,EAAE,GAAGJ,OAAO,CAAC,EAAE,CAACK,WAAW;YACjF,sEAAsE;YACt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O;YACLjC,OAAOjB,gBAAAA,MAAMiB,KAAAA,AAAK,MAAA,QAAXjB,iBAAAA,KAAAA,IAAAA,eAAe;YACtBmB,QAAQnB,CAAAA,gBAAAA,MAAMmB,MAAAA,AAAM,MAAA,QAAZnB,kBAAAA,KAAAA,IAAAA,gBAAgB;YACxBmD,UAAUnD,MAAMmD,QAAQ;YACxBC,WAAWpD,MAAMoD,SAAS;YAC1Bf,WAAWrC,MAAMqC,SAAS;QAC5B;OAECL;AAGP,EAAE;AACFjC,oBAAoBsD,WAAW,GAAG"}
1
+ {"version":3,"sources":["../src/components/ResponsiveContainer/ResponsiveContainer.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { getWindow } from '../../utilities/getWindow';\nimport type { ResponsiveChildProps, ResponsiveContainerProps } from './ResponsiveContainer.types';\nimport { useResponsiveChildStyles } from './useResponsiveChildStyles.styles';\nimport { mergeClasses } from '@griffel/react';\n\n/**\n * Responsive Container component\n * {@docCategory ResponsiveContainer}\n */\nexport const ResponsiveContainer: React.FC<ResponsiveContainerProps> = props => {\n const containerRef = React.useRef<HTMLDivElement>(null);\n const onResizeRef = React.useRef<ResponsiveContainerProps['onResize'] | undefined>(undefined);\n const childClasses = useResponsiveChildStyles();\n\n const [size, setSize] = React.useState<{ containerWidth?: number; containerHeight?: number }>({});\n\n // eslint-disable-next-line react-hooks/refs\n onResizeRef.current = props.onResize;\n\n React.useEffect(() => {\n const _window = getWindow(containerRef.current) as (Window & typeof globalThis) | undefined;\n let animationFrameId: number | undefined;\n let resizeObserver: ResizeObserver | undefined;\n\n const resizeCallback = (entries: ResizeObserverEntry[]) => {\n const { width: containerWidth, height: containerHeight } = entries[0].contentRect;\n // rAF is an alternative to the throttle function. For more info, see:\n // https://css-tricks.com/debouncing-throttling-explained-examples/#aa-requestanimationframe-raf\n animationFrameId = _window?.requestAnimationFrame(() => {\n // eslint-disable-next-line react-hooks/set-state-in-effect\n setSize(prevSize => {\n const roundedWidth = Math.floor(containerWidth);\n const roundedHeight = Math.floor(containerHeight);\n if (prevSize.containerWidth === roundedWidth && prevSize.containerHeight === roundedHeight) {\n return prevSize;\n }\n\n return { containerWidth: roundedWidth, containerHeight: roundedHeight };\n });\n });\n onResizeRef.current?.(containerWidth, containerHeight);\n };\n\n if (_window && _window.ResizeObserver) {\n resizeObserver = new _window.ResizeObserver(resizeCallback);\n if (containerRef.current) {\n resizeObserver.observe(containerRef.current);\n }\n }\n\n return () => {\n if (animationFrameId) {\n _window?.cancelAnimationFrame(animationFrameId);\n }\n\n resizeObserver?.disconnect();\n };\n }, []);\n\n const chartContent = React.useMemo(() => {\n let calculatedWidth = size.containerWidth;\n let calculatedHeight = size.containerHeight;\n\n if (typeof props.aspect === 'number' && props.aspect > 0) {\n if (calculatedWidth) {\n calculatedHeight = calculatedWidth / props.aspect;\n } else if (calculatedHeight) {\n calculatedWidth = calculatedHeight * props.aspect;\n }\n\n if (typeof props.maxHeight === 'number' && calculatedHeight && calculatedHeight > props.maxHeight) {\n calculatedHeight = props.maxHeight;\n }\n }\n\n return React.Children.map(props.children, child => {\n return React.cloneElement<ResponsiveChildProps>(child, {\n width: calculatedWidth,\n height: calculatedHeight,\n // For SankeyChart\n shouldResize: (calculatedWidth ?? 0) + (calculatedHeight ?? 0),\n styles: {\n root: mergeClasses(child.props.styles?.root, childClasses.root),\n chartWrapper: mergeClasses(child.props.styles?.chartWrapper, childClasses.chartWrapper),\n chart: mergeClasses(child.props.styles?.chart, childClasses.chart),\n },\n });\n });\n }, [size, props.aspect, props.maxHeight, props.children]);\n\n return (\n <div\n ref={containerRef}\n style={{\n width: props.width ?? '100%',\n height: props.height ?? '100%',\n minWidth: props.minWidth,\n minHeight: props.minHeight,\n maxHeight: props.maxHeight,\n }}\n >\n {chartContent}\n </div>\n );\n};\nResponsiveContainer.displayName = 'ResponsiveContainer';\n"],"names":["React","getWindow","useResponsiveChildStyles","mergeClasses","ResponsiveContainer","props","containerRef","useRef","onResizeRef","undefined","childClasses","size","setSize","useState","current","onResize","useEffect","_window","animationFrameId","resizeObserver","resizeCallback","entries","width","containerWidth","height","containerHeight","contentRect","requestAnimationFrame","prevSize","roundedWidth","Math","floor","roundedHeight","ResizeObserver","observe","cancelAnimationFrame","disconnect","chartContent","useMemo","calculatedWidth","calculatedHeight","aspect","maxHeight","Children","map","children","child","cloneElement","shouldResize","styles","root","chartWrapper","chart","div","ref","style","minWidth","minHeight","displayName"],"mappings":"AAAA;;;;;+BAYaI;;;;;;;iEAVU,QAAQ;2BACL,+BAA4B;gDAEb,uCAAoC;wBAChD,iBAAiB;AAMvC,4BAAgEC,CAAAA;IACrE,MAAMC,eAAeN,OAAMO,MAAM,CAAiB;IAClD,MAAMC,cAAcR,OAAMO,MAAM,CAAmDE;IACnF,MAAMC,mBAAeR,wDAAAA;IAErB,MAAM,CAACS,MAAMC,QAAQ,GAAGZ,OAAMa,QAAQ,CAAwD,CAAC;IAE/F,4CAA4C;IAC5CL,YAAYM,OAAO,GAAGT,MAAMU,QAAQ;IAEpCf,OAAMgB,SAAS,CAAC;QACd,MAAMC,cAAUhB,oBAAAA,EAAUK,aAAaQ,OAAO;QAC9C,IAAII;QACJ,IAAIC;QAEJ,MAAMC,iBAAiB,CAACC;gBAgBtBb;YAfA,MAAM,EAAEc,OAAOC,cAAc,EAAEC,QAAQC,eAAe,EAAE,GAAGJ,OAAO,CAAC,EAAE,CAACK,WAAW;YACjF,sEAAsE;YACtE,gGAAgG;YAChGR,mBAAmBD,YAAAA,QAAAA,YAAAA,KAAAA,IAAAA,KAAAA,IAAAA,QAASU,qBAAqB,CAAC;gBAChD,2DAA2D;gBAC3Df,QAAQgB,CAAAA;oBACN,MAAMC,eAAeC,KAAKC,KAAK,CAACR;oBAChC,MAAMS,gBAAgBF,KAAKC,KAAK,CAACN;oBACjC,IAAIG,SAASL,cAAc,KAAKM,gBAAgBD,SAASH,eAAe,KAAKO,eAAe;wBAC1F,OAAOJ;oBACT;oBAEA,OAAO;wBAAEL,gBAAgBM;wBA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0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./ResponsiveContainer.cjs"), exports);
7
+ _export_star._(require("./ResponsiveContainer.types.cjs"), exports);
8
+ _export_star._(require("./withResponsiveContainer.cjs"), exports);
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/ResponsiveContainer/index.ts"],"sourcesContent":["export * from './ResponsiveContainer';\nexport * from './ResponsiveContainer.types';\nexport * from './withResponsiveContainer';\n"],"names":[],"mappings":";;;;;uBAAc,wBAAwB;uBACxB,8BAA8B;uBAC9B,4BAA4B"}
1
+ {"version":3,"sources":["../src/components/ResponsiveContainer/index.ts"],"sourcesContent":["export * from './ResponsiveContainer';\nexport * from './ResponsiveContainer.types';\nexport * from './withResponsiveContainer';\n"],"names":[],"mappings":";;;;;uBAAc,2BAAwB;uBACxB,iCAA8B;uBAC9B,+BAA4B"}
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useResponsiveChildStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses } from \"@griffel/react\";\nexport const responsiveChildClassNames = {\n root: 'fui-charts-resp-child__root',\n chartWrapper: 'fui-charts-resp-child__chartWrapper',\n chart: 'fui-charts-resp-child__chart'\n};\nconst useStyles = makeStyles({\n root: {\n width: '100%',\n height: '100%'\n },\n chartWrapper: {\n width: '100%'\n },\n chart: {\n // This overrides the pixel width of svg allowing it to resize properly within a flexbox or grid layout.\n // Note: height is not set to 100% because that causes the charts to resize vertically in an infinite loop.\n width: '100%'\n }\n});\nexport const useResponsiveChildStyles = ()=>{\n const baseStyles = useStyles();\n return {\n root: mergeClasses(responsiveChildClassNames.root, baseStyles.root),\n chartWrapper: mergeClasses(responsiveChildClassNames.chartWrapper, baseStyles.chartWrapper),\n chart: mergeClasses(responsiveChildClassNames.chart, baseStyles.chart)\n };\n};\n"],"names":["__styles","mergeClasses","responsiveChildClassNames","root","chartWrapper","chart","useStyles","a9b677","Bqenvij","d","useResponsiveChildStyles","baseStyles"],"mappings":"AAAA,YAAY;;;;;;;;;;;;IAECE,yBAAyB;;;IAmBzBQ,wBAAwB;;;;uBApBI,gBAAgB;AAClD,kCAAkC;IACrCP,IAAI,EAAE,6BAA6B;IACnCC,YAAY,EAAE,qCAAqC;IACnDC,KAAK,EAAE;AACX,CAAC;AACD,MAAMC,SAAS,GAAA,WAAA,OAAGN,eAAA,EAAA;IAAAG,IAAA,EAAA;QAAAI,MAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;IAAAJ,YAAA,EAAA;QAAAG,MAAA,EAAA;IAAA;IAAAF,KAAA,EAAA;QAAAE,MAAA,EAAA;IAAA;AAAA,GAAA;IAAAE,CAAA,EAAA;QAAA;QAAA;KAAA;AAAA,CAajB,CAAC;AACK,iCAAiCC,CAAA,KAAI;IACxC,MAAMC,UAAU,GAAGL,SAAS,CAAC,CAAC;IAC9B,OAAO;QACHH,IAAI,MAAEF,mBAAY,EAACC,yBAAyB,CAACC,IAAI,EAAEQ,UAAU,CAACR,IAAI,CAAC;QACnEC,YAAY,MAAEH,mBAAY,EAACC,yBAAyB,CAACE,YAAY,EAAEO,UAAU,CAACP,YAAY,CAAC;QAC3FC,KAAK,MAAEJ,mBAAY,EAACC,yBAAyB,CAACG,KAAK,EAAEM,UAAU,CAACN,KAAK;IACzE,CAAC;AACL,CAAC"}
@@ -11,7 +11,7 @@ Object.defineProperty(exports, "withResponsiveContainer", {
11
11
  });
12
12
  const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
13
13
  const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
14
- const _ResponsiveContainer = require("./ResponsiveContainer");
14
+ const _ResponsiveContainer = require("./ResponsiveContainer.cjs");
15
15
  function withResponsiveContainer(WrappedComponent) {
16
16
  const ComponentWithResponsiveContainer = ({ aspect, width, height, minWidth, minHeight, maxHeight, onResize, ...restProps })=>{
17
17
  return /*#__PURE__*/ _react.createElement(_ResponsiveContainer.ResponsiveContainer, {
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/ResponsiveContainer/withResponsiveContainer.tsx"],"sourcesContent":["'use client';\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\nimport * as React from 'react';\nimport { ResponsiveContainer } from './ResponsiveContainer';\nimport type { ResponsiveContainerProps } from './ResponsiveContainer.types';\n\n/**\n * An HOC to update wrapped component on container resize.\n * {@docCategory ResponsiveContainer}\n */\nexport function withResponsiveContainer<TProps extends Omit<ResponsiveContainerProps, 'children'>>(\n WrappedComponent: React.ComponentType<TProps>,\n): React.FC<TProps> {\n const ComponentWithResponsiveContainer: React.FC<TProps> = ({\n aspect,\n width,\n height,\n minWidth,\n minHeight,\n maxHeight,\n onResize,\n ...restProps\n }) => {\n return (\n <ResponsiveContainer\n aspect={aspect}\n width={width}\n height={height}\n minWidth={minWidth}\n minHeight={minHeight}\n maxHeight={maxHeight}\n onResize={onResize}\n >\n <WrappedComponent {...(restProps as any)} />\n </ResponsiveContainer>\n );\n };\n\n return ComponentWithResponsiveContainer;\n}\n"],"names":["React","ResponsiveContainer","withResponsiveContainer","WrappedComponent","ComponentWithResponsiveContainer","aspect","width","height","minWidth","minHeight","maxHeight","onResize","restProps"],"mappings":"AAAA;;;;;+BAWgBE;;;;;;;iEARO,QAAQ;qCACK,wBAAwB;AAOrD,iCACLC,gBAA6C;IAE7C,MAAMC,mCAAqD,CAAC,EAC1DC,MAAM,EACNC,KAAK,EACLC,MAAM,EACNC,QAAQ,EACRC,SAAS,EACTC,SAAS,EACTC,QAAQ,EACR,GAAGC,WACJ;QACC,OAAA,WAAA,GACE,OAAA,aAAA,CAACX,wCAAAA,EAAAA;YACCI,QAAQA;YACRC,OAAOA;YACPC,QAAQA;YACRC,UAAUA;YACVC,WAAWA;YACXC,WAAWA;YACXC,UAAUA;yBAEV,OAAA,aAAA,CAACR,kBAAsBS;IAG7B;IAEA,OAAOR;AACT"}
1
+ {"version":3,"sources":["../src/components/ResponsiveContainer/withResponsiveContainer.tsx"],"sourcesContent":["'use client';\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\nimport * as React from 'react';\nimport { ResponsiveContainer } from './ResponsiveContainer';\nimport type { ResponsiveContainerProps } from './ResponsiveContainer.types';\n\n/**\n * An HOC to update wrapped component on container resize.\n * {@docCategory ResponsiveContainer}\n */\nexport function withResponsiveContainer<TProps extends Omit<ResponsiveContainerProps, 'children'>>(\n WrappedComponent: React.ComponentType<TProps>,\n): React.FC<TProps> {\n const ComponentWithResponsiveContainer: React.FC<TProps> = ({\n aspect,\n width,\n height,\n minWidth,\n minHeight,\n maxHeight,\n onResize,\n ...restProps\n }) => {\n return (\n <ResponsiveContainer\n aspect={aspect}\n width={width}\n height={height}\n minWidth={minWidth}\n minHeight={minHeight}\n maxHeight={maxHeight}\n onResize={onResize}\n >\n <WrappedComponent {...(restProps as any)} />\n </ResponsiveContainer>\n );\n };\n\n return ComponentWithResponsiveContainer;\n}\n"],"names":["React","ResponsiveContainer","withResponsiveContainer","WrappedComponent","ComponentWithResponsiveContainer","aspect","width","height","minWidth","minHeight","maxHeight","onResize","restProps"],"mappings":"AAAA;;;;;+BAWgBE;;;;;;;iEARO,QAAQ;qCACK,2BAAwB;AAOrD,iCACLC,gBAA6C;IAE7C,MAAMC,mCAAqD,CAAC,EAC1DC,MAAM,EACNC,KAAK,EACLC,MAAM,EACNC,QAAQ,EACRC,SAAS,EACTC,SAAS,EACTC,QAAQ,EACR,GAAGC,WACJ;QACC,OAAA,WAAA,GACE,OAAA,aAAA,CAACX,wCAAAA,EAAAA;YACCI,QAAQA;YACRC,OAAOA;YACPC,QAAQA;YACRC,UAAUA;YACVC,WAAWA;YACXC,WAAWA;YACXC,UAAUA;yBAEV,OAAA,aAAA,CAACR,kBAAsBS;IAG7B;IAEA,OAAOR;AACT"}
@@ -32,12 +32,12 @@ const _d3array = require("d3-array");
32
32
  const _d3sankey = require("d3-sankey");
33
33
  const _d3selection = require("d3-selection");
34
34
  const _d3shape = require("d3-shape");
35
- const _useSankeyChartStylesstyles = require("./useSankeyChartStyles.styles");
36
- const _index = require("../CommonComponents/index");
35
+ const _useSankeyChartStylesstyles = require("./useSankeyChartStyles.styles.cjs");
36
+ const _index = require("../CommonComponents/index.cjs");
37
37
  const _reacttabster = require("@fluentui/react-tabster");
38
- const _string = require("../../utilities/string");
39
- const _hooks = require("../../utilities/hooks");
40
- const _index1 = require("../../utilities/index");
38
+ const _string = require("../../utilities/string.cjs");
39
+ const _hooks = require("../../utilities/hooks.cjs");
40
+ const _index1 = require("../../utilities/index.cjs");
41
41
  const PADDING_PERCENTAGE = 0.3;
42
42
  const NON_SELECTED_NODE_AND_STREAM_COLOR = '#757575';
43
43
  const DEFAULT_NODE_COLORS = [
@@ -642,7 +642,8 @@ const SankeyChart = /*#__PURE__*/ _react.forwardRef((props, forwardedRef)=>{
642
642
  const target = singleLink.target;
643
643
  // TODO: localize the aria-label string
644
644
  return /*#__PURE__*/ _react.createElement("g", {
645
- key: key
645
+ key: key,
646
+ role: "presentation"
646
647
  }, /*#__PURE__*/ _react.createElement("defs", null, /*#__PURE__*/ _react.createElement("linearGradient", {
647
648
  id: gradientId,
648
649
  x1: "0%",
@@ -669,7 +670,7 @@ const SankeyChart = /*#__PURE__*/ _react.forwardRef((props, forwardedRef)=>{
669
670
  fillOpacity: _getOpacityStream(singleLink),
670
671
  tabIndex: 0,
671
672
  "aria-label": aria,
672
- role: "img"
673
+ role: "option"
673
674
  }));
674
675
  });
675
676
  }
@@ -692,7 +693,8 @@ const SankeyChart = /*#__PURE__*/ _react.forwardRef((props, forwardedRef)=>{
692
693
  }, singleNode);
693
694
  return /*#__PURE__*/ _react.createElement("g", {
694
695
  key: index,
695
- id: gElementId
696
+ id: gElementId,
697
+ role: "presentation"
696
698
  }, /*#__PURE__*/ _react.createElement("rect", {
697
699
  x: x0,
698
700
  y: y0,
@@ -708,7 +710,7 @@ const SankeyChart = /*#__PURE__*/ _react.forwardRef((props, forwardedRef)=>{
708
710
  opacity: "1",
709
711
  tabIndex: 0,
710
712
  "aria-label": aria,
711
- role: "img"
713
+ role: "option"
712
714
  }), height > MIN_HEIGHT_FOR_TYPE && /*#__PURE__*/ _react.createElement("g", {
713
715
  className: classes.nodeTextContainer
714
716
  }, /*#__PURE__*/ _react.createElement("g", {
@@ -999,7 +1001,9 @@ const SankeyChart = /*#__PURE__*/ _react.forwardRef((props, forwardedRef)=>{
999
1001
  width: width,
1000
1002
  height: height,
1001
1003
  id: _chartId,
1002
- className: classes.chart
1004
+ className: classes.chart,
1005
+ role: "listbox",
1006
+ "aria-label": `Sankey chart with ${nodes.length} nodes and ${links.length} links`
1003
1007
  }, !props.hideLegend && props.data.chartTitle && /*#__PURE__*/ _react.createElement(_index1.ChartTitle, {
1004
1008
  title: props.data.chartTitle,
1005
1009
  x: width / 2,
@@ -1011,14 +1015,16 @@ const SankeyChart = /*#__PURE__*/ _react.forwardRef((props, forwardedRef)=>{
1011
1015
  if (item.type === 'node') {
1012
1016
  return /*#__PURE__*/ _react.createElement("g", {
1013
1017
  key: nodes[item.index].nodeId,
1014
- className: classes.nodes
1018
+ className: classes.nodes,
1019
+ role: "presentation"
1015
1020
  }, nodeData[item.index]);
1016
1021
  } else {
1017
1022
  return /*#__PURE__*/ _react.createElement("g", {
1018
1023
  key: `${links[item.index].source.nodeId}-${links[item.index].target.nodeId}`,
1019
1024
  className: classes.links,
1020
1025
  stroke: props.pathColor ? props.pathColor : _reacttheme.tokens.colorStrokeFocus2,
1021
- strokeOpacity: 1
1026
+ strokeOpacity: 1,
1027
+ role: "presentation"
1022
1028
  }, linkData[item.index]);
1023
1029
  }
1024
1030
  }))), calloutProps.isPopoverOpen && /*#__PURE__*/ _react.createElement(_index.ChartPopover, calloutProps), /*#__PURE__*/ _react.createElement("div", {
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/SankeyChart/SankeyChart.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useFluent_unstable as useFluent } from '@fluentui/react-shared-contexts';\nimport { tokens } from '@fluentui/react-theme';\nimport { useId } from '@fluentui/react-utilities';\nimport { sum as d3Sum } from 'd3-array';\nimport type { SankeyGraph, SankeyLayout } from 'd3-sankey';\nimport { sankey as d3Sankey, sankeyJustify, sankeyRight } from 'd3-sankey';\nimport type { Selection as D3Selection } from 'd3-selection';\nimport { select, selectAll } from 'd3-selection';\nimport { area as d3Area, curveBumpX as d3CurveBasis } from 'd3-shape';\nimport type { Margins, SLink, SNode } from '../../types/DataPoint';\nimport type { SankeyChartData, SankeyChartProps } from './SankeyChart.types';\nimport { useSankeyChartStyles } from './useSankeyChartStyles.styles';\nimport type { ChartPopoverProps } from '../CommonComponents/index';\nimport { ChartPopover } from '../CommonComponents/index';\nimport { useArrowNavigationGroup } from '@fluentui/react-tabster';\nimport { format } from '../../utilities/string';\nimport { useImageExport } from '../../utilities/hooks';\nimport { ChartTitle, CHART_TITLE_PADDING } from '../../utilities/index';\n\nconst PADDING_PERCENTAGE = 0.3;\n\ntype NodeId = number | string;\ntype ItemValues<T> = { [key: NodeId]: T };\ntype NodeValues = ItemValues<number>;\ntype LinkItemValues<T> = { [key: NodeId]: ItemValues<T> };\ntype LinkValues = LinkItemValues<number>;\n\ntype NodesInColumns = { [key: number]: SNode[] };\ntype NormalizedData = SankeyChartData & {\n width: number;\n height: number;\n};\n\ntype NodeColors = { fillColor: string; borderColor: string };\ntype SankeyLayoutGenerator = SankeyLayout<SankeyGraph<{}, {}>, {}, {}>;\n\nconst NON_SELECTED_NODE_AND_STREAM_COLOR: string = '#757575';\nconst DEFAULT_NODE_COLORS: NodeColors[] = [\n { fillColor: '#00758F', borderColor: '#002E39' },\n { fillColor: '#77004D', borderColor: '#43002C' },\n { fillColor: '#4F6BED', borderColor: '#3B52B4' },\n { fillColor: '#937600', borderColor: '#6D5700' },\n { fillColor: '#286EA8', borderColor: '#00457E' },\n { fillColor: '#A43FB1', borderColor: '#7C158A' },\n { fillColor: '#CC3595', borderColor: '#7F215D' },\n { fillColor: '#0E7878', borderColor: '#004E4E' },\n { fillColor: '#8764B8', borderColor: '#4B3867' },\n { fillColor: '#9C663F', borderColor: '#6D4123' },\n];\n\nconst MIN_HEIGHT_FOR_DOUBLINE_TYPE = 36;\nconst MIN_HEIGHT_FOR_TYPE = 24;\nconst REST_STREAM_OPACITY: number = 1;\nconst NON_SELECTED_OPACITY: number = 1;\nconst SELECTED_STREAM_OPACITY: number = 0.3;\nconst NON_SELECTED_STREAM_BORDER_OPACITY: number = 0.5;\nconst DEFAULT_TEXT_COLOR: string = '#323130';\nconst NON_SELECTED_TEXT_COLOR: string = '#FFFFFF';\nconst NODE_WIDTH = 124;\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction getSelectedNodes(selectedLinks: Set<SLink>): any[] {\n const nodes: SNode[] = [];\n selectedLinks.forEach(link => {\n nodes.push(link.target as SNode);\n\n if (nodes.indexOf(link.source as SNode) === -1) {\n nodes.push(link.source as SNode);\n }\n });\n return nodes;\n}\n\nfunction getSelectedLinks(singleNode: SNode): Set<SLink> {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const q: any = new Array<any>();\n const finalLinks: Set<SLink> = new Set<SLink>();\n\n singleNode.sourceLinks!.forEach((link: SLink) => {\n q.push(link);\n finalLinks.add(link);\n });\n\n while (q.length > 0) {\n const poppedLink: SLink = q.shift();\n const node: SNode = poppedLink.target as SNode;\n if (node && node.sourceLinks) {\n node.sourceLinks.forEach((link: SLink) => {\n finalLinks.add(link);\n q.push(link);\n });\n }\n }\n\n if (singleNode.targetLinks) {\n singleNode.targetLinks.forEach((link: SLink) => {\n q.push(link);\n finalLinks.add(link);\n });\n }\n\n while (q.length > 0) {\n const poppedLink: SLink = q.shift();\n const node: SNode = poppedLink.source as SNode;\n if (node && node.targetLinks) {\n node.targetLinks.forEach((link: SLink) => {\n finalLinks.add(link);\n q.push(link);\n });\n }\n }\n\n return finalLinks;\n}\n\nfunction getSelectedLinksforStreamHover(singleLink: SLink): {\n selectedLinks: Set<SLink>;\n selectedNodes: Set<SNode>;\n} {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const q: any = new Array<any>();\n const finalLinks: Set<SLink> = new Set<SLink>();\n const finalNodes: Set<SNode> = new Set<SNode>();\n\n q.push(singleLink.source);\n finalLinks.add(singleLink);\n while (q.length > 0) {\n const poppedNode: SNode = q.shift();\n finalNodes.add(poppedNode);\n if (poppedNode.targetLinks && poppedNode.targetLinks.length > 0) {\n poppedNode.targetLinks.forEach((link: SLink) => {\n q.push(link.source);\n finalLinks.add(link);\n });\n }\n }\n\n q.push(singleLink.target);\n\n while (q.length > 0) {\n const poppedNode: SNode = q.shift();\n finalNodes.add(poppedNode);\n if (poppedNode.sourceLinks && poppedNode.sourceLinks.length > 0) {\n poppedNode.sourceLinks.forEach((link: SLink) => {\n q.push(link.target);\n finalLinks.add(link);\n });\n }\n }\n\n return {\n selectedLinks: finalLinks,\n selectedNodes: finalNodes,\n };\n}\n\n/**\n * This is used to group nodes by column index.\n */\n// This is exported for unit tests.\nexport function groupNodesByColumn(graph: SankeyChartData): NodesInColumns {\n const nodesInColumn: NodesInColumns = {};\n graph.nodes.forEach((node: SNode) => {\n const columnId = node.layer!;\n if (nodesInColumn[columnId]) {\n nodesInColumn[columnId].push(node);\n } else {\n nodesInColumn[columnId] = [node];\n }\n });\n return nodesInColumn;\n}\n\n/**\n * This is used to normalize the nodes value whose value is less than 1% of the total column value.\n */\nfunction adjustOnePercentHeightNodes(\n nodesInColumn: NodesInColumns,\n computedNodes: NodeValues,\n originalLinks: LinkValues,\n): void {\n const totalColumnValue = Object.values(nodesInColumn).map((column: SNode[]) => {\n return d3Sum(column, (node: SNode) => node.value);\n });\n totalColumnValue.forEach((columnValue: number, index: number) => {\n let totalPercentage = 0;\n const onePercent = 0.01 * columnValue;\n const columnNodes = nodesInColumn[index];\n columnNodes.forEach((node: SNode) => {\n const value = computedNodes[node.nodeId];\n const nodePercentage = (value / columnValue) * 100;\n node.actualValue = value;\n //if the value is less than 1% then we are making it as 1% of total .\n if (nodePercentage < 1) {\n node.value = onePercent;\n totalPercentage = totalPercentage + 1;\n } else {\n totalPercentage = totalPercentage + nodePercentage;\n }\n });\n //since we have adjusted the value to be 1% but we need to keep the sum of the percentage value under 100.\n const scalingRatio = totalPercentage !== 0 ? totalPercentage / 100 : 1;\n if (scalingRatio > 1) {\n // Loop through each node in that column and scale that node--and its incoming and outgoing links--by the\n // scaling ratio. We need the sankey diagram to re-layout the nodes and links after we do this.\n columnNodes.forEach((node: SNode) => {\n const normalized = (node.value = node.value! / scalingRatio);\n // Which Original Value? and Which Normalized Value is needed, here? The Node? The Link? Both?\n changeColumnValue(node, computedNodes[node.nodeId], normalized, originalLinks);\n });\n }\n });\n}\n\n/**\n * This is used for normalizing each link's value to reflect the normalized node value.\n */\nfunction changeColumnValue(\n node: SNode,\n originalNodeValue: number,\n normalizedNodeValue: number,\n linkValues: LinkValues,\n) {\n // For each link in the source and target, compute the proportion that this link contributes to the total\n // then adjust the link's value to reflect its proportion of the normalized node value.\n const updateLinkValue = (link: SLink) => {\n const value = linkValue(linkValues, link);\n link.unnormalizedValue = value;\n const linkRatio = value / originalNodeValue;\n link.value = Math.max(normalizedNodeValue * linkRatio, link.value);\n };\n node.sourceLinks!.forEach(updateLinkValue);\n node.targetLinks!.forEach(updateLinkValue);\n}\n\n/**\n * This is used for calculating the node non normalized value based on link non normalized value.\n * The links have the original weights. Computed nodes have the total weight of all incoming and outgoing links.\n */\nfunction populateNodeActualValue(data: SankeyChartData, computedNodes: NodeValues, originalLinks: LinkValues) {\n data.links.forEach((link: SLink) => {\n if (!link.unnormalizedValue) {\n link.unnormalizedValue = linkValue(originalLinks, link);\n }\n });\n data.nodes.forEach((node: SNode) => {\n node.actualValue = computedNodes[node.nodeId as NodeId];\n });\n}\n\n/**\n * This is used to introduce dynamic padding for cases where the number of nodes in a column is huge\n * so that we maintain a node to space ratio for such columns as if we fail to do so the\n * chart is devoid of nodes and only shows links.\n */\n// This is exported for unit tests\nexport function adjustPadding(sankey: SankeyLayoutGenerator, height: number, nodesInColumn: NodesInColumns): void {\n let padding = sankey.nodePadding();\n const minPadding = PADDING_PERCENTAGE * height;\n Object.values(nodesInColumn).forEach((column: SNode[]) => {\n const totalPaddingInColumn = height - d3Sum(column, (node: SNode) => node.y1! - node.y0!);\n if (minPadding < totalPaddingInColumn) {\n // Here we are calculating the min of default and calculated padding, we will not increase the padding\n // in any scenario.\n padding = Math.min(padding, minPadding / (column.length - 1));\n }\n });\n sankey.nodePadding(padding);\n}\n\nfunction idFromNumberOrSNode(node: SNode | number): NodeId {\n if (typeof node === 'number') {\n return node;\n }\n return node.nodeId as NodeId;\n}\n\n/**\n * Duplicates the supplied chart data so that we do not alter the original.\n * @param data The data to duplicate.\n * @returns The duplicated data.\n */\nfunction duplicateData(data: SankeyChartData): SankeyChartData {\n return {\n nodes: data.nodes.map(\n (node: SNode): SNode => ({\n ...node,\n }),\n ),\n links: data.links.map(\n (link: SLink): SLink => ({\n ...link,\n }),\n ),\n };\n}\n\nfunction valuesOfNodes(nodes: SNode[]): NodeValues {\n const result: NodeValues = {};\n nodes.forEach((node: SNode) => {\n result[node.nodeId as NodeId] = node.value!;\n });\n return result;\n}\n\nfunction valuesOfLinks(links: SLink[]): LinkValues {\n const result: LinkValues = {};\n links.forEach((link: SLink) => {\n const sourceId = idFromNumberOrSNode(link.source);\n let sourceToTarget = result[sourceId];\n if (!sourceToTarget) {\n sourceToTarget = {};\n result[sourceId] = sourceToTarget;\n }\n sourceToTarget[idFromNumberOrSNode(link.target)] = link.value;\n });\n return result;\n}\n\nfunction linkValue<T>(originalLinks: LinkItemValues<T>, link: SLink): T {\n return originalLinks[idFromNumberOrSNode(link.source)][idFromNumberOrSNode(link.target)];\n}\n\n// This is exported for unit tests.\nexport function preRenderLayout(\n margins: Margins,\n containerWidth: number,\n containerHeight: number,\n isRtl: boolean,\n): { sankey: SankeyLayoutGenerator; height: number; width: number } {\n const { left, right, top, bottom } = margins;\n\n const sankey = d3Sankey()\n .nodeWidth(NODE_WIDTH)\n .extent([\n [left!, top!],\n [containerWidth - right!, containerHeight - bottom!],\n ])\n .nodeAlign(isRtl ? sankeyRight : sankeyJustify);\n\n return { sankey, height: containerHeight, width: containerWidth };\n}\n\nconst elipsis = '...';\n\n/**\n * This is used to assign node fillcolors and borderColor cyclically when the user doesnt\n * provide color to individual node.\n */\nfunction assignNodeColors(\n nodes: SNode[],\n colorsForNodes: string[] | undefined,\n borderColorsForNodes: string[] | undefined,\n) {\n let colors: string[];\n let borders: string[];\n if (colorsForNodes && borderColorsForNodes) {\n colors = colorsForNodes;\n borders = borderColorsForNodes;\n } else {\n colors = DEFAULT_NODE_COLORS.map(color => color.fillColor);\n borders = DEFAULT_NODE_COLORS.map(color => color.borderColor);\n }\n let currentIndex = 0;\n nodes.forEach((node: SNode) => {\n if (!node.color && !node.borderColor) {\n node.color = colors[currentIndex];\n node.borderColor = borders[currentIndex];\n } else if (node.color && !node.borderColor) {\n node.borderColor = '#757575';\n } else if (node.borderColor && !node.color) {\n node.color = '#F5F5F5';\n }\n currentIndex = (currentIndex + 1) % colors.length;\n });\n}\n\n/**\n * Takes in the display name for the node and potentially returns a trimmed version of the name.\n * @param tspan the `tspan` element to use for text visual length measurement\n * @param text is the text which we will potentially truncate\n * @param rectangleWidth is the width of the rectangle which will contain the text\n * @param padding is the space we need to leave between the rect lines and other text\n * @returns the name to show on the node which might be the truncated `text` if the `text` is too long\n */\nfunction truncateText(tspan: TSpanForTextMeasuring, text: string, rectangleWidth: number, padding: number) {\n // NOTE: This method is the most-expensive in terms of rerendering components.\n const textLengthForNodeName = rectangleWidth - padding; // This can likely be computed once and passed in.\n // The following `select` statement injects a `tempText` element into the DOM. This injection\n // (and subsequent removal) is causing a layout recalculation. This is a performance issue.\n // Note that this code will always inject a `tempText` element, but doesn't always remove it. This is a bug.\n if (fitsWithinNode(tspan, text, textLengthForNodeName)) {\n return text;\n }\n // Computing the size of elipsis is performed with each node. This should be computed once and used everywhere.\n // TODO: Compute the size of the elipsis once and use it everywhere.\n const elipsisLength = computeElipsisLength(tspan);\n let line: string = '';\n // Calculate how much of the original text to show.\n // TODO: The folllowing is O(n). We could use a binary search to make this faster: O(log(n)).\n for (let i = 0; i < text.length; i++) {\n line += text[i];\n tspan.text(line);\n const currentNode = tspan.node();\n if (currentNode !== null) {\n const w = currentNode!.getComputedTextLength();\n if (w >= textLengthForNodeName - elipsisLength) {\n line = line.slice(0, -1);\n line += elipsis;\n break;\n }\n }\n }\n tspan.text(null);\n return line;\n}\n\ntype RenderedNodeAttributes = {\n readonly reactId: string;\n readonly gElementId: string;\n readonly name: string;\n readonly aria: string;\n readonly trimmed: boolean;\n readonly height: number;\n readonly weightOffset: number;\n};\n\ntype RenderedLinkAttributes = {\n readonly reactId: string;\n readonly aria: string;\n readonly from: string;\n};\n\ntype TSpanForTextMeasuring = D3Selection<SVGTSpanElement, unknown, HTMLElement, unknown>;\n\nfunction fitsWithinNode(tspan: TSpanForTextMeasuring, text: string, textLengthForNodeName: number): boolean {\n const measurement = measureText(tspan, text);\n if (measurement === undefined) {\n return false;\n }\n return measurement <= textLengthForNodeName;\n}\n\nfunction measureText(tspan: TSpanForTextMeasuring, text: string | number): number | undefined {\n try {\n tspan.text(text);\n return tspan.node()?.getComputedTextLength();\n } finally {\n tspan.text(null);\n }\n}\n\nfunction computeElipsisLength(tspan: TSpanForTextMeasuring): number {\n const measurement = measureText(tspan, elipsis);\n return measurement === undefined ? 0 : measurement;\n}\n\nfunction computeLinkAttributes(\n links: SLink[],\n linkFrom: (node: SNode) => string,\n linkAriaLabel: (link: SLink) => string,\n linkId: string,\n): LinkItemValues<RenderedLinkAttributes> {\n const result: LinkItemValues<RenderedLinkAttributes> = {};\n links.forEach((link: SLink, index: number) => {\n const sourceId = idFromNumberOrSNode(link.source);\n let sourceToTarget = result[sourceId];\n if (!sourceToTarget) {\n sourceToTarget = {};\n result[sourceId] = sourceToTarget;\n }\n sourceToTarget[idFromNumberOrSNode(link.target)] = {\n reactId: `${linkId}-${index}`,\n from: linkFrom(link.source as SNode),\n aria: linkAriaLabel(link),\n };\n });\n\n return result;\n}\n\ntype ItemPositions = {\n readonly x0: number;\n readonly y0: number;\n readonly x1: number;\n readonly y1: number;\n};\n\ntype SankeyLinkWithPositions = ItemPositions & {\n readonly source: ItemPositions;\n readonly target: ItemPositions;\n readonly width: number;\n};\n\ntype AreaDataPoint = {\n readonly x: number;\n readonly y0: number;\n readonly y1: number;\n};\n\nconst linkToDataPoints = (d: SankeyLinkWithPositions): [AreaDataPoint, AreaDataPoint] => {\n const halfWidth = d.width * 0.5;\n const y0 = d.y0;\n const y1 = d.y1;\n return [\n { x: d.source.x1, y0: y0 + halfWidth, y1: y0 - halfWidth },\n { x: d.target.x0, y0: y1 + halfWidth, y1: y1 - halfWidth },\n ];\n};\n\nconst linkArea = d3Area<AreaDataPoint>()\n .x((p: AreaDataPoint) => p.x)\n .y0((p: AreaDataPoint) => p.y0)\n .y1((p: AreaDataPoint) => p.y1)\n .curve(d3CurveBasis);\n\nfunction nodeTextColor(\n state: { selectedState: boolean; selectedNodes: Set<number>; selectedNode: SNode | undefined },\n singleNode: SNode,\n): string {\n return !(\n !state.selectedState ||\n (state.selectedNodes.has(singleNode.index!) && state.selectedNode) ||\n !state.selectedNode\n )\n ? DEFAULT_TEXT_COLOR\n : NON_SELECTED_TEXT_COLOR;\n}\n\ntype StringRenderer = {\n linkFrom: (node: SNode) => string;\n};\n\ntype AccessibilityRenderer = {\n emptyAriaLabel: string;\n nodeAriaLabel: (node: SNode, weight: number) => string;\n linkAriaLabel: (link: SLink) => string;\n};\n\nexport const SankeyChart: React.FunctionComponent<SankeyChartProps> = React.forwardRef<\n HTMLDivElement,\n SankeyChartProps\n>((props, forwardedRef) => {\n const classes = useSankeyChartStyles(props);\n const { chartContainerRef: chartContainer } = useImageExport(props.componentRef, true, false);\n const _reqID = React.useRef<number | undefined>(undefined);\n const _linkId = useId('link');\n const _chartId = useId('sankeyChart');\n const _emptyChartId = useId('_SankeyChart_empty');\n const _labelTooltipId = useId('tooltip');\n const titleHeight = props.data?.chartTitle\n ? Math.max(\n (typeof props.titleStyles?.titleFont?.size === 'number' ? props.titleStyles.titleFont.size : 13) +\n CHART_TITLE_PADDING,\n 36,\n )\n : 36;\n const _margins = React.useRef<Margins>({ top: titleHeight, right: 48, bottom: 32, left: 48 });\n const { targetDocument, dir } = useFluent();\n const _window = targetDocument?.defaultView;\n const _isRtl: boolean = dir === 'rtl';\n const _numColumns = React.useRef<number>(0);\n const _nodeBarId = useId('nodeBar');\n const _nodeGElementId = useId('nodeGElement');\n const _arrowNavigationAttributes = useArrowNavigationGroup({ axis: 'grid' });\n const _tooltip = React.useRef<HTMLDivElement>(null);\n\n const [containerHeight, setContainerHeight] = React.useState<number>(468);\n const [containerWidth, setContainerWidth] = React.useState<number>(912);\n const [selectedState, setSelectedState] = React.useState<boolean>(false);\n const [selectedLinks, setSelectedLinks] = React.useState(new Set<number>());\n const [selectedNodes, setSelectedNodes] = React.useState(new Set<number>());\n const [isCalloutVisible, setCalloutVisible] = React.useState<boolean>(false);\n const [selectedNode, setSelectedNode] = React.useState<SNode>();\n const [color, setColor] = React.useState<string>();\n const [xCalloutValue, setXCalloutValue] = React.useState<string>();\n const [yCalloutValue, setYCalloutValue] = React.useState<string>();\n const [descriptionMessage, setDescriptionMessage] = React.useState<string>();\n const [clickPosition, setClickPosition] = React.useState({ x: 0, y: 0 });\n\n const _fitParentContainer = React.useCallback((): void => {\n _reqID.current = _window?.requestAnimationFrame(() => {\n // NOTE: Calls to this method trigger a re-render.\n const container = props.parentRef ? props.parentRef : chartContainer.current;\n if (container) {\n const currentContainerWidth =\n props.reflowProps?.mode === 'min-width'\n ? Math.max(container.getBoundingClientRect().width, _calculateChartMinWidth())\n : container.getBoundingClientRect().width;\n const currentContainerHeight = container.getBoundingClientRect().height;\n setContainerWidth(currentContainerWidth);\n setContainerHeight(currentContainerHeight);\n }\n });\n }, [_window, props.reflowProps?.mode, props.parentRef]);\n\n React.useEffect(() => {\n _fitParentContainer();\n\n return () => {\n if (typeof _reqID.current === 'number') {\n _window?.cancelAnimationFrame(_reqID.current);\n }\n };\n }, [_fitParentContainer, _window, props.shouldResize]);\n\n const _formatNumber = React.useCallback(\n (value: number): string => {\n return props.formatNumberOptions\n ? value.toLocaleString(props.culture, props.formatNumberOptions)\n : value.toString();\n },\n [props.formatNumberOptions, props.culture],\n );\n\n const _computeNodeAttributes = React.useCallback(\n (nodes: SNode[], nodeAriaLabel: (node: SNode, weight: number) => string): ItemValues<RenderedNodeAttributes> => {\n const result: ItemValues<RenderedNodeAttributes> = {};\n const weightSpan = select('.nodeName').append('text').attr('class', 'tempText').append('tspan').text(null);\n const nameSpan = select('.nodeName')\n .append('text')\n .attr('class', 'tempText')\n .attr('font-size', '10')\n .append('tspan')\n .text(null);\n nodes.forEach((singleNode: SNode, index: number) => {\n const height = Math.max(singleNode.y1! - singleNode.y0!, 0);\n let padding = 8;\n let textLengthForNodeWeight = 0;\n\n const nodeValue = singleNode.actualValue!;\n // If the nodeWeight is in the same line as node description an extra padding\n // of 6 px is required between node description and node weight.\n if (height < MIN_HEIGHT_FOR_DOUBLINE_TYPE) {\n padding = padding + 6;\n // The following `select` statement injects a `tempText` element into the DOM. This injection\n // (and subsequent removal) is causing a layout recalculation. This is a performance issue.\n const measurement = measureText(weightSpan, _formatNumber(nodeValue));\n if (measurement !== undefined) {\n textLengthForNodeWeight = measurement;\n padding = padding + textLengthForNodeWeight;\n }\n }\n // Since the total width of the node is 124 and we are giving margin of 8px from the left .\n // So the actual value on which it will be truncated is 124-8=116.\n const truncatedname: string = truncateText(nameSpan, singleNode.name, NODE_WIDTH - 8, padding);\n const isTruncated: boolean = truncatedname.slice(-3) === elipsis;\n result[singleNode.nodeId] = {\n reactId: `${_nodeBarId}-${index}`,\n gElementId: `${_nodeGElementId}-${index}`,\n name: truncatedname,\n aria: nodeAriaLabel(singleNode, nodeValue),\n trimmed: isTruncated,\n height,\n weightOffset: textLengthForNodeWeight,\n };\n });\n selectAll('.tempText').remove();\n return result;\n },\n [_formatNumber, _nodeBarId, _nodeGElementId],\n );\n\n const _linkCalloutAttributes = (singleLink: SLink, from: string) => {\n setCalloutVisible(true);\n setColor((singleLink.source as SNode).color!);\n setXCalloutValue((singleLink.target as SNode).name);\n setYCalloutValue(_formatNumber(singleLink.unnormalizedValue!));\n setDescriptionMessage(from);\n };\n\n const _isChartEmpty = React.useCallback(() => {\n const sankeyChartData = props.data?.SankeyChartData;\n return !(sankeyChartData && sankeyChartData.nodes.length > 0 && sankeyChartData.links.length > 0);\n }, [props.data]);\n\n const _normalizeSankeyData = React.useCallback(\n (\n data: SankeyChartData,\n _containerWidth: number,\n _containerHeight: number,\n colorsForNodes: string[] | undefined,\n borderColorsForNodes: string[] | undefined,\n ): NormalizedData => {\n if (_isChartEmpty()) {\n return { width: 0, height: 0, nodes: [], links: [] };\n }\n\n const { sankey, height, width } = preRenderLayout(_margins.current, _containerWidth, _containerHeight, _isRtl);\n // Clone the data before mutating it (via the SankeyLayoutGenerator) so that we don't mutate the original data.\n const transformed: SankeyChartData = duplicateData(data);\n sankey(transformed);\n // NOTE: After the prior line, `transformed` is now a more-complex object than the incoming `ISankeyChartData`.\n // `transformed` should be cast to a more-specific type. This is a breaking change because we would be eliminating\n // fields from `ISankeyChartData` and putting those fields on a now-local type. But doing so makes it clearer what\n // the caller needs to supply and why. For example, the `actualValue` and `layer` fields of `ISNodeExtra` should\n // both be moved. Similarly for `unnormalizedValue` in `ISLinkExtra`.\n // `SankeyNodeMinimal` and `SankeyLinkMinimal` are both the types after `sankey(transformed)`, but have almost no\n // bearing on the data before `sankey(transformed)` (which is basically nodes with ids and names along with links\n // with source index, target index, and value).\n const nodesInColumn = groupNodesByColumn(transformed);\n _numColumns.current = Object.keys(nodesInColumn).length;\n // Keep track of the original values of the links and their acccumulated values in the nodes\n // Setting these in external objects so they cannot be mutated by other code.\n // The IDs of nodes can be numbers or strings. But, the IDs of links are always the index into the \"nodes\" array.\n // After the sankey layout is computed, the each link's `source` and `target` will have the ID of the node in the\n // type originally specified in the Nodes array. Consequently, we get the values of those links after the sankey\n // transformation.\n const nodeValues = valuesOfNodes(transformed.nodes);\n const linkValues = valuesOfLinks(transformed.links);\n adjustOnePercentHeightNodes(nodesInColumn, nodeValues, linkValues);\n adjustPadding(sankey, containerHeight - _margins.current.top! - _margins.current.bottom!, nodesInColumn);\n // `sankey` is called a second time, probably to re-layout the nodes with the one-percent adjusted weights.\n // NOTE: The second call to `sankey` is required to allow links to be hoverable.\n // Without the second call, the links are not hoverable.\n sankey(transformed);\n populateNodeActualValue(transformed, nodeValues, linkValues);\n assignNodeColors(transformed.nodes, colorsForNodes, borderColorsForNodes);\n return {\n width,\n height,\n nodes: transformed.nodes,\n links: transformed.links,\n };\n },\n [_isChartEmpty, _isRtl],\n );\n\n const _createLinks = (\n dataLinks: SLink[],\n linkAttributes: LinkItemValues<RenderedLinkAttributes>,\n ): React.ReactNode[] | undefined => {\n if (dataLinks) {\n const linkId = _linkId;\n return dataLinks.map((singleLink: SLink, index: number): React.ReactNode => {\n const onMouseOut = () => {\n _onStreamLeave(singleLink);\n };\n const { reactId, from, aria } = linkValue(linkAttributes, singleLink);\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const dataPoints: Array<any> = linkToDataPoints(singleLink as unknown as SankeyLinkWithPositions);\n const key = `${linkId}-${index}`;\n const gradientId = `gradient-${key}`;\n const gradientUrl = `url(#${gradientId})`;\n const source = singleLink.source as SNode;\n const target = singleLink.target as SNode;\n // TODO: localize the aria-label string\n return (\n <g key={key} role=\"presentation\">\n <defs>\n <linearGradient id={gradientId} x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">\n <stop offset=\"0\" stopColor={source.color} />\n <stop offset=\"100%\" stopColor={target.color} />\n </linearGradient>\n </defs>\n <path\n d={linkArea(dataPoints)!}\n id={reactId}\n fill={_fillStreamColors(singleLink, gradientUrl)}\n stroke={_fillStreamBorder(singleLink, gradientUrl)}\n strokeWidth=\"2\"\n strokeOpacity={_getOpacityStreamBorder(singleLink)}\n onMouseOver={event => _onStreamHover(event, singleLink, from)}\n onMouseOut={onMouseOut}\n onFocus={event => _onFocusLink(event, singleLink, from)}\n onBlur={_onBlur}\n fillOpacity={_getOpacityStream(singleLink)}\n tabIndex={0}\n aria-label={aria}\n role=\"option\"\n />\n </g>\n );\n });\n }\n return [];\n };\n\n const _createNodes = (\n dataNodes: SNode[],\n nodeAttributes: ItemValues<RenderedNodeAttributes>,\n ): React.ReactNode[] | undefined => {\n if (dataNodes) {\n const textAnchor = _isRtl ? 'end' : 'start';\n return dataNodes.map((singleNode: SNode, index: number): React.ReactNode => {\n const onMouseOut = () => {\n _onLeave(singleNode);\n };\n const {\n reactId: nodeId,\n gElementId,\n height,\n trimmed: isTruncated,\n name: truncatedName,\n weightOffset: textLengthForNodeWeight,\n aria,\n } = nodeAttributes[singleNode.nodeId];\n const tooTall = height > MIN_HEIGHT_FOR_DOUBLINE_TYPE;\n const { name, actualValue, x0, x1, y0 } = singleNode;\n const textColor = nodeTextColor({ selectedState, selectedNodes, selectedNode }, singleNode);\n return (\n <g key={index} id={gElementId} role=\"presentation\">\n <rect\n x={x0}\n y={y0}\n height={height}\n width={x1! - x0!}\n fill={_fillNodeColors(singleNode)}\n id={nodeId}\n onMouseOver={e => _onHover(singleNode, e)}\n onMouseOut={onMouseOut}\n onFocus={_onCloseCallout}\n stroke={_fillNodeBorder(singleNode)}\n strokeWidth=\"2\"\n opacity=\"1\"\n tabIndex={0}\n aria-label={aria}\n role=\"option\"\n />\n {height > MIN_HEIGHT_FOR_TYPE && (\n <g className={classes.nodeTextContainer}>\n <g className=\"nodeName\">\n <text\n id={`${nodeId}-name`}\n x={x0}\n y={y0}\n dy={'1.2em'}\n dx={'0.4em'}\n textAnchor={textAnchor}\n fontWeight=\"regular\"\n aria-hidden=\"true\"\n fill={textColor}\n fontSize={10}\n onMouseOver={e => _showTooltip(name, isTruncated, e)}\n onMouseOut={() => _hideTooltip()}\n >\n {truncatedName}\n </text>\n </g>\n\n <text\n x={tooTall ? x0 : x1! - textLengthForNodeWeight - 8}\n y={y0}\n dy={tooTall ? '2em' : '1em'}\n dx={tooTall ? '0.4em' : '0em'}\n textAnchor={textAnchor}\n fontWeight=\"bold\"\n aria-hidden=\"true\"\n fill={textColor}\n fontSize={14}\n >\n {actualValue ? _formatNumber(actualValue) : actualValue}\n </text>\n </g>\n )}\n </g>\n );\n });\n }\n };\n\n const _onLeave = (singleNode: SNode) => {\n if (selectedState) {\n setSelectedState(false);\n setSelectedNodes(new Set<number>());\n setSelectedLinks(new Set<number>());\n setSelectedNode(undefined);\n }\n };\n\n const _onHover = (singleNode: SNode, mouseEvent: React.MouseEvent<SVGElement>) => {\n mouseEvent.persist();\n _onCloseCallout();\n const _selectedLinks = getSelectedLinks(singleNode);\n const _selectedNodes = getSelectedNodes(_selectedLinks);\n _selectedNodes.push(singleNode);\n setSelectedState(true);\n setSelectedNodes(new Set<number>(Array.from(_selectedNodes).map(node => node.index!)));\n setSelectedLinks(new Set<number>(Array.from(_selectedLinks).map(link => link.index!)));\n setSelectedNode(singleNode);\n updatePosition(mouseEvent.clientX, mouseEvent.clientY);\n setCalloutVisible(singleNode.y1! - singleNode.y0! < MIN_HEIGHT_FOR_TYPE);\n setColor(singleNode.color);\n setXCalloutValue(singleNode.name);\n setYCalloutValue(_formatNumber(singleNode.actualValue!));\n };\n\n const _onStreamHover = (mouseEvent: React.MouseEvent<SVGElement>, singleLink: SLink, from: string) => {\n mouseEvent.persist();\n _onCloseCallout();\n const { selectedLinks: _selectedLinks, selectedNodes: _selectedNodes } = getSelectedLinksforStreamHover(singleLink);\n setSelectedState(true);\n setSelectedNodes(new Set<number>(Array.from(_selectedNodes).map(node => node.index!)));\n setSelectedLinks(new Set<number>(Array.from(_selectedLinks).map(link => link.index!)));\n updatePosition(mouseEvent.clientX, mouseEvent.clientY);\n _linkCalloutAttributes(singleLink, from);\n };\n\n const _onStreamLeave = (singleLink: SLink) => {\n if (selectedState) {\n setSelectedState(false);\n setSelectedNodes(new Set<number>());\n setSelectedLinks(new Set<number>());\n }\n };\n\n const _onFocusLink = (focusEvent: React.FocusEvent<SVGElement>, singleLink: SLink, from: string): void => {\n // There is a big difference in how \"Tab\" and the \"Arrow keys\" are handled in this diagram.\n // In particular, I would expect the \"Down\" key to be like \"Tab\", but it jumps a little wildly. I'm not sure\n // if this behavior is an accessiblity violation, but it we might want to investigate it.\n focusEvent.persist();\n _onCloseCallout();\n const boundingRect = focusEvent.currentTarget.getBoundingClientRect();\n const clientX = boundingRect.left + boundingRect.width / 2;\n const clientY = boundingRect.top + boundingRect.height / 2;\n updatePosition(clientX, clientY);\n _linkCalloutAttributes(singleLink, from);\n };\n\n const _onCloseCallout = () => {\n setCalloutVisible(false);\n updatePosition(0, 0);\n setDescriptionMessage('');\n };\n\n const _onBlur = (): void => {\n /**/\n };\n\n const _fillNodeColors = (singleNode: SNode): string | undefined => {\n if (!selectedState) {\n return singleNode.color;\n } else {\n if (selectedNode && selectedNodes.has(singleNode.index!)) {\n return selectedNode.color;\n } else if (!selectedNode) {\n return singleNode.color;\n }\n return NON_SELECTED_NODE_AND_STREAM_COLOR;\n }\n };\n\n const _fillStreamColors = (singleLink: SLink, gradientUrl: string): string | undefined => {\n if (selectedState && selectedLinks.has(singleLink.index!)) {\n return singleLink ? singleLink.color : selectedNode ? selectedNode.color : gradientUrl;\n }\n };\n\n const _fillStreamBorder = (singleLink: SLink, gradientUrl: string): string => {\n if (!selectedState) {\n return NON_SELECTED_NODE_AND_STREAM_COLOR;\n } else {\n if (selectedLinks.has(singleLink.index!)) {\n return selectedNode ? selectedNode.borderColor! : gradientUrl;\n }\n return NON_SELECTED_NODE_AND_STREAM_COLOR;\n }\n };\n\n const _fillNodeBorder = (singleNode: SNode): string => {\n if (!selectedState) {\n return singleNode.borderColor!;\n } else {\n if (selectedNodes.has(singleNode.index!)) {\n return selectedNode ? selectedNode.borderColor! : singleNode.borderColor!;\n }\n return singleNode.borderColor!;\n }\n };\n\n const _getOpacityStream = (singleLink: SLink): number => {\n if (selectedState) {\n if (!selectedLinks.has(singleLink.index!)) {\n return NON_SELECTED_OPACITY;\n } else if (!selectedNode) {\n return SELECTED_STREAM_OPACITY;\n }\n }\n return REST_STREAM_OPACITY;\n };\n\n const _getOpacityStreamBorder = (singleLink: SLink): number => {\n if (selectedState && !selectedLinks.has(singleLink.index!) && !selectedNode) {\n return NON_SELECTED_STREAM_BORDER_OPACITY;\n }\n\n return NON_SELECTED_OPACITY;\n };\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const _showTooltip = (text: string, checkTrcuncated: boolean, evt: any) => {\n if (_tooltip.current && checkTrcuncated) {\n //Fixing tooltip position by attaching it to the element rather than page\n select(_tooltip.current)\n .style('opacity', 0.9)\n .style('color', tokens.colorNeutralForeground1)\n .style('left', evt.pageX + 'px')\n .style('top', evt.pageY - 28 + 'px')\n .text(text);\n }\n };\n\n const _hideTooltip = () => {\n if (_tooltip.current) {\n select(_tooltip.current).style('opacity', 0);\n }\n };\n\n const _calculateChartMinWidth = (): number => {\n return (\n _margins.current.left! +\n _margins.current.right! +\n // total width of all node columns\n _numColumns.current * NODE_WIDTH +\n // minimum total width of all column gaps\n (_numColumns.current - 1) * (NODE_WIDTH / 2)\n );\n };\n\n const updatePosition = (newX: number, newY: number) => {\n const threshold = 1; // Set a threshold for movement\n const { x, y } = clickPosition;\n // Calculate the distance moved\n const distance = Math.sqrt(Math.pow(newX - x, 2) + Math.pow(newY - y, 2));\n // Update the position only if the distance moved is greater than the threshold\n if (distance > threshold) {\n setClickPosition({ x: newX, y: newY });\n }\n };\n\n // Prepare the localization utilities\n const _strings: StringRenderer = React.useMemo(() => {\n const fromString = props.strings?.linkFrom || 'From {0}';\n // NOTE: The `node` parameter is the sankey-generated node on the link, and not the original `node` supplied\n // by the caller.\n return {\n linkFrom: (node: SNode) => format(fromString, node.name),\n };\n }, [props.strings]);\n const _accessibility: AccessibilityRenderer = React.useMemo(() => {\n const linkString = props.accessibility?.linkAriaLabel || 'link from {0} to {1} with weight {2}';\n const nodeString = props.accessibility?.nodeAriaLabel || 'node {0} with weight {1}';\n return {\n emptyAriaLabel: props.accessibility?.emptyAriaLabel || 'Graph has no data to display',\n linkAriaLabel: (link: SLink) =>\n format(\n linkString,\n (link.source as SNode).name,\n (link.target as SNode).name,\n link.unnormalizedValue ? _formatNumber(link.unnormalizedValue) : link.unnormalizedValue,\n ),\n nodeAriaLabel: (node: SNode, weight: number) => format(nodeString, node.name, _formatNumber(weight)),\n };\n }, [_formatNumber, props.accessibility]);\n\n // Compute the position of each node and link\n const { nodes, links, width, height } = React.useMemo(\n () =>\n _normalizeSankeyData(\n props.data.SankeyChartData!,\n containerWidth,\n containerHeight,\n props.colorsForNodes,\n props.borderColorsForNodes,\n ),\n [\n _normalizeSankeyData,\n containerHeight,\n containerWidth,\n props.borderColorsForNodes,\n props.colorsForNodes,\n props.data,\n ],\n );\n // Pre-compute some important attributes about nodes, specifically text\n const nodeAttributes = React.useMemo(\n () => _computeNodeAttributes(nodes, _accessibility.nodeAriaLabel),\n [_accessibility, _computeNodeAttributes, nodes],\n );\n const linkAttributes = React.useMemo(\n () => computeLinkAttributes(links, _strings.linkFrom, _accessibility.linkAriaLabel, _linkId),\n [_accessibility, _linkId, _strings, links],\n );\n\n if (!_isChartEmpty()) {\n // In FocusZone, the focus order is determined by the rendering order of the elements. We need to find\n // a rendering order such that the focus moves through the nodes and links in a logical sequence.\n // Rendering the nodes and links layer by layer in a vertical order seems to be the most effective solution\n // with FocusZone. Although this focus order may not be entirely logical, it ensures that the focus moves\n // sequentially and prevents links (especially skip layer links) from being rendered over the nodes.\n const nodeLinkDomOrderArray: { layer: number; type: string; index: number }[] = [];\n nodes.sort((a: SNode, b: SNode) => {\n if (a.x0 !== b.x0) {\n return a.x0! - b.x0!;\n }\n return a.y0! - b.y0!;\n });\n nodes.forEach((item: SNode, index) => {\n nodeLinkDomOrderArray.push({ layer: item.layer!, type: 'node', index });\n });\n links.sort((a: SLink, b: SLink) => {\n const asx0 = (a.source as SNode).x0;\n const bsx0 = (b.source as SNode).x0;\n if (asx0 !== bsx0) {\n return asx0! - bsx0!;\n }\n return a.y0! - b.y0!;\n });\n links.forEach((item: SLink, index) => {\n nodeLinkDomOrderArray.push({ layer: (item.source as SNode).layer!, type: 'link', index });\n });\n nodeLinkDomOrderArray.sort((a, b) => {\n if (a.layer !== b.layer) {\n return a.layer - b.layer;\n }\n\n if (a.type > b.type) {\n return -1;\n }\n if (a.type < b.type) {\n return 1;\n }\n return 0;\n });\n\n // Build the nodes and links as rendered in the UX.\n const nodeData = _createNodes(nodes, nodeAttributes);\n const linkData = _createLinks(links, linkAttributes);\n\n const calloutProps: ChartPopoverProps = {\n isPopoverOpen: isCalloutVisible,\n clickPosition,\n color,\n XValue: xCalloutValue,\n YValue: yCalloutValue,\n descriptionMessage,\n ...props.calloutProps!,\n };\n return (\n <div className={classes.root} ref={chartContainer} onMouseLeave={_onCloseCallout}>\n {/*\n - Horizontal navigation has been disabled because the nodes and links are rendered vertically,\n causing the left/right arrow keys to move focus up or down to the previous or next sibling element.\n - Bidirectional navigation has been disabled because it causes the up/down arrow keys to move the focus\n in a non-sequential and erratic manner within a 2D grid.\n */}\n <div className={classes.chartWrapper} {..._arrowNavigationAttributes}>\n <svg\n width={width}\n height={height}\n id={_chartId}\n className={classes.chart}\n role=\"listbox\"\n aria-label={`Sankey chart with ${nodes.length} nodes and ${links.length} links`}\n >\n {!props.hideLegend && props.data.chartTitle && (\n <ChartTitle\n title={props.data.chartTitle}\n x={width / 2}\n maxWidth={width - 20}\n className={classes.chartTitle}\n titleStyles={props.titleStyles}\n tooltipClassName={classes.svgTooltip}\n />\n )}\n {nodeLinkDomOrderArray.map(item => {\n if (item.type === 'node') {\n return (\n <g key={nodes[item.index].nodeId} className={classes.nodes} role=\"presentation\">\n {nodeData![item.index]}\n </g>\n );\n } else {\n return (\n <g\n key={`${(links[item.index].source as SNode).nodeId}-${(links[item.index].target as SNode).nodeId}`}\n className={classes.links}\n stroke={props.pathColor ? props.pathColor : tokens.colorStrokeFocus2}\n strokeOpacity={1}\n role=\"presentation\"\n >\n {linkData![item.index]}\n </g>\n );\n }\n })}\n </svg>\n </div>\n {calloutProps.isPopoverOpen && <ChartPopover {...calloutProps} />}\n <div id={_labelTooltipId} className={classes.toolTip} style={{ opacity: 0 }} ref={_tooltip} />\n </div>\n );\n }\n return <div id={_emptyChartId} role={'alert'} style={{ opacity: '0' }} aria-label={_accessibility.emptyAriaLabel} />;\n});\n\nSankeyChart.displayName = 'SankeyChart';\n"],"names":["React","useFluent_unstable","useFluent","tokens","useId","sum","d3Sum","sankey","d3Sankey","sankeyJustify","sankeyRight","select","selectAll","area","d3Area","curveBumpX","d3CurveBasis","useSankeyChartStyles","ChartPopover","useArrowNavigationGroup","format","useImageExport","ChartTitle","CHART_TITLE_PADDING","PADDING_PERCENTAGE","NON_SELECTED_NODE_AND_STREAM_COLOR","DEFAULT_NODE_COLORS","fillColor","borderColor","MIN_HEIGHT_FOR_DOUBLINE_TYPE","MIN_HEIGHT_FOR_TYPE","REST_STREAM_OPACITY","NON_SELECTED_OPACITY","SELECTED_STREAM_OPACITY","NON_SELECTED_STREAM_BORDER_OPACITY","DEFAULT_TEXT_COLOR","NON_SELECTED_TEXT_COLOR","NODE_WIDTH","getSelectedNodes","selectedLinks","nodes","forEach","link","push","target","indexOf","source","getSelectedLinks","singleNode","q","Array","finalLinks","Set","sourceLinks","add","length","poppedLink","shift","node","targetLinks","getSelectedLinksforStreamHover","singleLink","finalNodes","poppedNode","selectedNodes","groupNodesByColumn","graph","nodesInColumn","columnId","layer","adjustOnePercentHeightNodes","computedNodes","originalLinks","totalColumnValue","Object","values","map","column","value","columnValue","index","totalPercentage","onePercent","columnNodes","nodeId","nodePercentage","actualValue","scalingRatio","normalized","changeColumnValue","originalNodeValue","normalizedNodeValue","linkValues","updateLinkValue","linkValue","unnormalizedValue","linkRatio","Math","max","populateNodeActualValue","data","links","adjustPadding","height","padding","nodePadding","minPadding","totalPaddingInColumn","y1","y0","min","idFromNumberOrSNode","duplicateData","valuesOfNodes","result","valuesOfLinks","sourceId","sourceToTarget","preRenderLayout","margins","containerWidth","containerHeight","isRtl","left","right","top","bottom","nodeWidth","extent","nodeAlign","width","elipsis","assignNodeColors","colorsForNodes","borderColorsForNodes","colors","borders","color","currentIndex","truncateText","tspan","text","rectangleWidth","textLengthForNodeName","fitsWithinNode","elipsisLength","computeElipsisLength","line","i","currentNode","w","getComputedTextLength","slice","measurement","measureText","undefined","computeLinkAttributes","linkFrom","linkAriaLabel","linkId","reactId","from","aria","linkToDataPoints","d","halfWidth","x","x1","x0","linkArea","p","curve","nodeTextColor","state","selectedState","has","selectedNode","SankeyChart","forwardRef","props","forwardedRef","classes","chartContainerRef","chartContainer","componentRef","_reqID","useRef","_linkId","_chartId","_emptyChartId","_labelTooltipId","titleHeight","chartTitle","titleStyles","titleFont","size","_margins","targetDocument","dir","_window","defaultView","_isRtl","_numColumns","_nodeBarId","_nodeGElementId","_arrowNavigationAttributes","axis","_tooltip","setContainerHeight","useState","setContainerWidth","setSelectedState","setSelectedLinks","setSelectedNodes","isCalloutVisible","setCalloutVisible","setSelectedNode","setColor","xCalloutValue","setXCalloutValue","yCalloutValue","setYCalloutValue","descriptionMessage","setDescriptionMessage","clickPosition","setClickPosition","y","_fitParentContainer","useCallback","current","requestAnimationFrame","container","parentRef","currentContainerWidth","reflowProps","mode","getBoundingClientRect","_calculateChartMinWidth","currentContainerHeight","useEffect","cancelAnimationFrame","shouldResize","_formatNumber","formatNumberOptions","toLocaleString","culture","toString","_computeNodeAttributes","nodeAriaLabel","weightSpan","append","attr","nameSpan","textLengthForNodeWeight","nodeValue","truncatedname","name","isTruncated","gElementId","trimmed","weightOffset","remove","_linkCalloutAttributes","_isChartEmpty","sankeyChartData","SankeyChartData","_normalizeSankeyData","_containerWidth","_containerHeight","transformed","keys","nodeValues","_createLinks","dataLinks","linkAttributes","onMouseOut","_onStreamLeave","dataPoints","key","gradientId","gradientUrl","g","role","defs","linearGradient","id","x2","y2","stop","offset","stopColor","path","fill","_fillStreamColors","stroke","_fillStreamBorder","strokeWidth","strokeOpacity","_getOpacityStreamBorder","onMouseOver","event","_onStreamHover","onFocus","_onFocusLink","onBlur","_onBlur","fillOpacity","_getOpacityStream","tabIndex","aria-label","_createNodes","dataNodes","nodeAttributes","textAnchor","_onLeave","truncatedName","tooTall","textColor","rect","_fillNodeColors","e","_onHover","_onCloseCallout","_fillNodeBorder","opacity","className","nodeTextContainer","dy","dx","fontWeight","aria-hidden","fontSize","_showTooltip","_hideTooltip","mouseEvent","persist","_selectedLinks","_selectedNodes","updatePosition","clientX","clientY","focusEvent","boundingRect","currentTarget","checkTrcuncated","evt","style","colorNeutralForeground1","pageX","pageY","newX","newY","threshold","distance","sqrt","pow","_strings","useMemo","fromString","strings","_accessibility","linkString","accessibility","nodeString","emptyAriaLabel","weight","nodeLinkDomOrderArray","sort","a","b","item","type","asx0","bsx0","nodeData","linkData","calloutProps","isPopoverOpen","XValue","YValue","div","root","ref","onMouseLeave","chartWrapper","svg","chart","hideLegend","title","maxWidth","tooltipClassName","svgTooltip","pathColor","colorStrokeFocus2","toolTip","displayName"],"mappings":"AAAA;;;;;;;;;;;;eA8hBaiL;eAAAA;;IA3RG3E,aAAAA;;;sBAhGArC;eAAAA;;IAoKAqD,eAAAA;;;;;iEArUO,QAAQ;qCACiB,kCAAkC;4BAC3D,wBAAwB;gCACzB,4BAA4B;yBACrB,WAAW;0BAEuB,YAAY;6BAEzC,eAAe;yBACU,WAAW;4CAGjC,mCAAgC;uBAExC,+BAA4B;8BACjB,0BAA0B;wBAC3C,4BAAyB;uBACjB,2BAAwB;wBACP,2BAAwB;AAExE,MAAM9F,qBAAqB;AAiB3B,MAAMC,qCAA6C;AACnD,MAAMC,sBAAoC;IACxC;QAAEC,WAAW;QAAW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AAA,GACE,OAAA,aAAA,CAAC1F,KAAAA;oBAAEH,KAAK9O,KAAK,CAAC0U,KAAKlS,KAAK,CAAC,CAACI,MAAM;oBAAEiP,WAAWhJ,QAAQ7I,KAAK;oBAAEkP,MAAK;mBAC9D4F,QAAS,CAACJ,KAAKlS,KAAK,CAAC;YAG5B,OAAO;gBACL,OAAA,WAAA,GACE,OAAA,aAAA,CAACyM,KAAAA;oBACCH,KAAK,GAAIjL,KAAK,CAAC6Q,KAAKlS,KAAK,CAAC,CAAClC,MAAM,CAAWsC,MAAM,CAAC,CAAC,EAAGiB,KAAK,CAAC6Q,KAAKlS,KAAK,CAAC,CAACpC,MAAM,CAAWwC,MAAM,EAAE;oBAClGiP,WAAWhJ,QAAQhF,KAAK;oBACxBiM,QAAQnH,MAAMqN,SAAS,GAAGrN,MAAMqN,SAAS,GAAGrY,kBAAAA,CAAOsY,iBAAiB;oBACpEhG,eAAe;oBACff,MAAK;mBAEJ6F,QAAS,CAACL,KAAKlS,KAAK,CAAC;YAG5B;QACF,MAGHwS,aAAaC,aAAa,IAAA,WAAA,GAAI,OAAA,aAAA,CAACvW,mBAAAA,EAAiBsW,eAAAA,WAAAA,GACjD,OAAA,aAAA,CAACI,OAAAA;YAAI/F,IAAI/F;YAAiBuI,WAAWhJ,QAAQqN,OAAO;YAAEhD,OAAO;gBAAEtB,SAAS;YAAE;YAAG0D,KAAK/K;;IAGxF;IACA,OAAA,WAAA,GAAO,OAAA,aAAA,CAAC6K,OAAAA;QAAI/F,IAAIhG;QAAe6F,MAAM;QAASgE,OAAO;YAAEtB,SAAS;QAAI;QAAGf,cAAYmD,eAAeI,cAAc;;AAClH,GAAG;AAEH3L,YAAY0N,WAAW,GAAG"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./SankeyChart.cjs"), exports);
7
+ _export_star._(require("./SankeyChart.types.cjs"), exports);
8
+ _export_star._(require("../../types/index.cjs"), exports);
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/SankeyChart/index.ts"],"sourcesContent":["export * from './SankeyChart';\nexport * from './SankeyChart.types';\nexport * from '../../types/index';\n"],"names":[],"mappings":";;;;;uBAAc,gBAAgB;uBAChB,sBAAsB;uBACtB,oBAAoB"}
1
+ {"version":3,"sources":["../src/components/SankeyChart/index.ts"],"sourcesContent":["export * from './SankeyChart';\nexport * from './SankeyChart.types';\nexport * from '../../types/index';\n"],"names":[],"mappings":";;;;;uBAAc,mBAAgB;uBAChB,yBAAsB;uBACtB,uBAAoB"}
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useSankeyChartStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses } from \"@griffel/react\";\nimport { tokens, typographyStyles } from \"@fluentui/react-theme\";\nimport { HighContrastSelector, getTooltipStyle, getChartTitleStyles } from \"../../utilities/index.js\";\nexport const sankeyChartClassNames = {\n root: 'fui-sc__root',\n nodes: 'fui-sc__nodes',\n links: 'fui-sc__links',\n nodeTextContainer: 'fui-sc__nodeTextContainer',\n toolTip: 'fui-sc__toolTip',\n chartWrapper: 'fui-sc__chartWrapper',\n chart: 'fui-sc__chart',\n chartTitle: 'fui-sc__chartTitle',\n svgTooltip: 'fui-sc__svgTooltip'\n};\nconst useStyles = makeStyles({\n root: {\n ...typographyStyles.body1,\n display: 'flex',\n width: '100%',\n height: '100%',\n flexDirection: 'column',\n overflow: 'hidden',\n textAlign: 'left'\n },\n links: {\n fill: tokens.colorNeutralBackground1,\n strokeWidth: '3px',\n [HighContrastSelector]: {\n fill: 'Canvas'\n }\n },\n nodes: {\n fill: '#F5F5F5',\n [HighContrastSelector]: {\n fill: 'Canvas'\n }\n },\n toolTip: getTooltipStyle(),\n nodeTextContainer: {\n '& text': {\n [HighContrastSelector]: {\n fill: 'CanvasText'\n }\n },\n marginTop: '4px',\n marginLeft: '8px',\n marginBottom: '4px',\n marginRight: '8px'\n },\n chartWrapper: {\n overflow: 'auto'\n },\n chart: {\n display: 'block'\n },\n chartTitle: getChartTitleStyles(),\n svgTooltip: {\n fill: tokens.colorNeutralBackground1,\n [HighContrastSelector]: {\n fill: 'Canvas'\n }\n }\n});\nexport const useSankeyChartStyles = (props)=>{\n var _props_styles, _props_reflowProps, _props_styles1, _props_styles2, _props_styles3, _props_styles4;\n const baseStyles = useStyles();\n return {\n root: mergeClasses(sankeyChartClassNames.root, baseStyles.root, (_props_styles = props.styles) === null || _props_styles === void 0 ? void 0 : _props_styles.root),\n nodes: mergeClasses(sankeyChartClassNames.nodes, baseStyles.nodes /*, props.styles?.nodes*/ ),\n links: mergeClasses(sankeyChartClassNames.links, baseStyles.links /*, props.styles?.links*/ ),\n nodeTextContainer: mergeClasses(sankeyChartClassNames.nodeTextContainer, baseStyles.nodeTextContainer /*, props.styles?.nodeTextContainer*/ ),\n toolTip: mergeClasses(sankeyChartClassNames.toolTip, baseStyles.toolTip /*, props.styles?.toolTip*/ ),\n chartWrapper: mergeClasses(sankeyChartClassNames.chartWrapper, ((_props_reflowProps = props.reflowProps) === null || _props_reflowProps === void 0 ? void 0 : _props_reflowProps.mode) === 'min-width' ? baseStyles.chartWrapper : '', (_props_styles1 = props.styles) === null || _props_styles1 === void 0 ? void 0 : _props_styles1.chartWrapper),\n chart: mergeClasses(sankeyChartClassNames.chart, baseStyles.chart, (_props_styles2 = props.styles) === null || _props_styles2 === void 0 ? void 0 : _props_styles2.chart),\n chartTitle: mergeClasses(sankeyChartClassNames.chartTitle, baseStyles.chartTitle, (_props_styles3 = props.styles) === null || _props_styles3 === void 0 ? void 0 : _props_styles3.chartTitle),\n svgTooltip: mergeClasses(sankeyChartClassNames.svgTooltip, baseStyles.svgTooltip, (_props_styles4 = props.styles) === null || _props_styles4 === void 0 ? void 0 : _props_styles4.svgTooltip)\n };\n};\n"],"names":["__styles","mergeClasses","tokens","typographyStyles","HighContrastSelector","getTooltipStyle","getChartTitleStyles","sankeyChartClassNames","root","nodes","links","nodeTextContainer","toolTip","chartWrapper","chart","chartTitle","svgTooltip","useStyles","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","mc9l5x","a9b677","Bqenvij","Beiy3e4","B68tc82","Bmxbyg5","Bpg54ce","fsow6f","Bkfmm31","Be5yapy","Bxms50k","Byoj8tv","uwmqm3","z189sj","z8tnut","B0ocmuz","qhf8xq","De3pzq","Beyfa6y","Bbmb7ep","Btl43ni","B7oj6ja","Dimara","Bkecrkj","sj55zd","Blza11w","B6of3ja","Frg6f3","jrapky","t21cq0","Bvjb7m6","d","p","m","useSankeyChartStyles","props","_props_styles","_props_reflowProps","_props_styles1","_props_styles2","_props_styles3","_props_styles4","baseStyles","styles","reflowProps","mode"],"mappings":"AAAA,YAAY;;;;;;;;;;;;IAICO,qBAAqB;;;wBA4DD;eAApBiD;;;uBA/D4B,gBAAgB;AAGlD,8BAA8B;IACjChD,IAAI,EAAE,cAAc;IACpBC,KAAK,EAAE,eAAe;IACtBC,KAAK,EAAE,eAAe;IACtBC,iBAAiB,EAAE,2BAA2B;IAC9CC,OAAO,EAAE,iBAAiB;IAC1BC,YAAY,EAAE,sBAAsB;IACpCC,KAAK,EAAE,eAAe;IACtBC,UAAU,EAAE,oBAAoB;IAChCC,UAAU,EAAE;AAChB,CAAC;AACD,MAAMC,SAAS,GAAA,WAAA,OAAGjB,eAAA,EAAA;IAAAQ,IAAA,EAAA;QAAAU,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;YAAA;YAAA;SAAA;IAAA;IAAAnB,KAAA,EAAA;QAAAoB,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;IAAA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;QACrGC,YAAY,MAAEZ,mBAAY,EAACM,qBAAqB,CAACM,YAAY,EAAE,CAAC,CAAC8C,kBAAkB,GAAGF,KAAK,CAACS,WAAAA,AAAW,MAAM,IAAI,IAAIP,kBAAkB,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,kBAAkB,CAACQ,IAAAA,AAAI,MAAM,WAAW,GAAGH,UAAU,CAACnD,YAAY,GAAG,EAAE,EAAE,CAAC+C,cAAc,GAAGH,KAAK,CAACQ,MAAM,AAANA,MAAY,IAAI,IAAIL,cAAc,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,cAAc,CAAC/C,YAAY,CAAC;QACpVC,KAAK,MAAEb,mBAAY,EAACM,qBAAqB,CAACO,KAAK,EAAEkD,UAAU,CAAClD,KAAK,EAAE,CAAC+C,cAAc,GAAGJ,KAAK,CAACQ,MAAAA,AAAM,MAAM,IAAI,IAAIJ,cAAc,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,cAAc,CAAC/C,KAAK,CAAC;QACzKC,UAAU,MAAEd,mBAAY,EAACM,qBAAqB,CAACQ,UAAU,EAAEiD,UAAU,CAACjD,UAAU,EAAE,CAAC+C,cAAc,GAAGL,KAAK,CAACQ,MAAAA,AAAM,MAAM,IAAI,IAAIH,cAAc,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,cAAc,CAAC/C,UAAU,CAAC;QAC7LC,UAAU,MAAEf,mBAAY,EAACM,qBAAqB,CAACS,UAAU,EAAEgD,UAAU,CAAChD,UAAU,EAAE,CAAC+C,cAAc,GAAGN,KAAK,CAACQ,MAAAA,AAAM,MAAM,IAAI,IAAIF,cAAc,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,cAAc,CAAC/C,UAAU;IAChM,CAAC;AACL,CAAC"}
@@ -19,7 +19,7 @@ _export(exports, {
19
19
  });
20
20
  const _react = require("@griffel/react");
21
21
  const _reacttheme = require("@fluentui/react-theme");
22
- const _index = require("../../utilities/index");
22
+ const _index = require("../../utilities/index.cjs");
23
23
  const sankeyChartClassNames = {
24
24
  root: 'fui-sc__root',
25
25
  nodes: 'fui-sc__nodes',
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/SankeyChart/useSankeyChartStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport type { GriffelStyle } from '@griffel/react';\nimport { makeStyles, mergeClasses } from '@griffel/react';\nimport type { SankeyChartProps, SankeyChartStyles } from './SankeyChart.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { tokens, typographyStyles } from '@fluentui/react-theme';\nimport { HighContrastSelector, getTooltipStyle, getChartTitleStyles } from '../../utilities/index';\n\nexport const sankeyChartClassNames: SlotClassNames<SankeyChartStyles> = {\n root: 'fui-sc__root',\n nodes: 'fui-sc__nodes',\n links: 'fui-sc__links',\n nodeTextContainer: 'fui-sc__nodeTextContainer',\n toolTip: 'fui-sc__toolTip',\n chartWrapper: 'fui-sc__chartWrapper',\n chart: 'fui-sc__chart',\n chartTitle: 'fui-sc__chartTitle',\n svgTooltip: 'fui-sc__svgTooltip',\n};\nconst useStyles = makeStyles({\n root: {\n ...typographyStyles.body1,\n display: 'flex',\n width: '100%',\n height: '100%',\n flexDirection: 'column',\n overflow: 'hidden',\n textAlign: 'left',\n },\n links: {\n fill: tokens.colorNeutralBackground1,\n strokeWidth: '3px',\n [HighContrastSelector]: {\n fill: 'Canvas',\n },\n },\n nodes: {\n fill: '#F5F5F5',\n [HighContrastSelector]: {\n fill: 'Canvas',\n },\n },\n toolTip: getTooltipStyle() as GriffelStyle,\n nodeTextContainer: {\n '& text': {\n [HighContrastSelector]: {\n fill: 'CanvasText',\n },\n },\n\n marginTop: '4px',\n marginLeft: '8px',\n marginBottom: '4px',\n marginRight: '8px',\n },\n chartWrapper: {\n overflow: 'auto',\n },\n chart: {\n display: 'block',\n },\n chartTitle: getChartTitleStyles() as GriffelStyle,\n svgTooltip: {\n fill: tokens.colorNeutralBackground1,\n [HighContrastSelector]: {\n fill: 'Canvas',\n },\n },\n});\n\nexport const useSankeyChartStyles = (props: SankeyChartProps): SankeyChartStyles => {\n const baseStyles = useStyles();\n\n return {\n root: mergeClasses(sankeyChartClassNames.root, baseStyles.root, props.styles?.root),\n nodes: mergeClasses(sankeyChartClassNames.nodes, baseStyles.nodes /*, props.styles?.nodes*/),\n links: mergeClasses(sankeyChartClassNames.links, baseStyles.links /*, props.styles?.links*/),\n nodeTextContainer: mergeClasses(\n sankeyChartClassNames.nodeTextContainer,\n baseStyles.nodeTextContainer /*, props.styles?.nodeTextContainer*/,\n ),\n toolTip: mergeClasses(sankeyChartClassNames.toolTip, baseStyles.toolTip /*, props.styles?.toolTip*/),\n chartWrapper: mergeClasses(\n sankeyChartClassNames.chartWrapper,\n props.reflowProps?.mode === 'min-width' ? baseStyles.chartWrapper : '',\n props.styles?.chartWrapper,\n ),\n chart: mergeClasses(sankeyChartClassNames.chart, baseStyles.chart, props.styles?.chart),\n chartTitle: mergeClasses(sankeyChartClassNames.chartTitle, baseStyles.chartTitle, props.styles?.chartTitle),\n svgTooltip: mergeClasses(sankeyChartClassNames.svgTooltip, baseStyles.svgTooltip, props.styles?.svgTooltip),\n };\n};\n"],"names":["makeStyles","mergeClasses","tokens","typographyStyles","HighContrastSelector","getTooltipStyle","getChartTitleStyles","sankeyChartClassNames","root","nodes","links","nodeTextContainer","toolTip","chartWrapper","chart","chartTitle","svgTooltip","useStyles","body1","display","width","height","flexDirection","overflow","textAlign","fill","colorNeutralBackground1","strokeWidth","marginTop","marginLeft","marginBottom","marginRight","useSankeyChartStyles","props","baseStyles","styles","reflowProps","mode"],"mappings":"AAAA;;;;;;;;;;;;IASaO,qBAAAA;;;wBA8DAyB;eAAAA;;;uBApE4B,iBAAiB;4BAGjB,wBAAwB;uBACU,wBAAwB;AAE5F,8BAAiE;IACtExB,MAAM;IACNC,OAAO;IACPC,OAAO;IACPC,mBAAmB;IACnBC,SAAS;IACTC,cAAc;IACdC,OAAO;IACP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A,EACjBM,sBAAsBI,iBAAiB,EACvCuB,WAAWvB,iBAAiB,CAAC,mCAAmC;QAElEC,aAASX,mBAAAA,EAAaM,sBAAsBK,OAAO,EAAEsB,WAAWtB,OAAO,CAAC,yBAAyB;QACjGC,kBAAcZ,mBAAAA,EACZM,sBAAsBM,YAAY,EAClCoB,CAAAA,CAAAA,qBAAAA,MAAMG,WAAAA,AAAW,MAAA,QAAjBH,uBAAAA,KAAAA,IAAAA,KAAAA,IAAAA,mBAAmBI,IAAAA,AAAI,MAAK,cAAcH,WAAWrB,YAAY,GAAG,IACpEoB,AADoE,kBACpEA,MAAME,MAAAA,AAAM,MAAA,QAAZF,mBAAAA,KAAAA,IAAAA,KAAAA,IAAAA,eAAcpB,YAAY;QAE5BC,WAAOb,mBAAAA,EAAaM,sBAAsBO,KAAK,EAAEoB,WAAWpB,KAAK,EAAA,CAAEmB,iBAAAA,MAAME,MAAAA,AAAM,MAAA,QAAZF,mBAAAA,KAAAA,IAAAA,KAAAA,IAAAA,eAAcnB,KAAK;QACtFC,YAAYd,uBAAAA,EAAaM,sBAAsBQ,UAAU,EAAEmB,WAAWnB,UAAU,EAAA,CAAEkB,iBAAAA,MAAME,MAAAA,AAAM,MAAA,QAAZF,mBAAAA,KAAAA,IAAAA,KAAAA,IAAAA,eAAclB,UAAU;QAC1GC,gBAAYf,mBAAAA,EAAaM,sBAAsBS,UAAU,EAAEkB,WAAWlB,UAAU,EAAA,CAAEiB,iBAAAA,MAAME,MAAAA,AAAM,MAAA,QAAZF,mBAAAA,KAAAA,IAAAA,KAAAA,IAAAA,eAAcjB,UAAU;IAC5G;AACF,EAAE"}
1
+ {"version":3,"sources":["../src/components/SankeyChart/useSankeyChartStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport type { GriffelStyle } from '@griffel/react';\nimport { makeStyles, mergeClasses } from '@griffel/react';\nimport type { SankeyChartProps, SankeyChartStyles } from './SankeyChart.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { tokens, typographyStyles } from '@fluentui/react-theme';\nimport { HighContrastSelector, getTooltipStyle, getChartTitleStyles } from '../../utilities/index';\n\nexport const sankeyChartClassNames: SlotClassNames<SankeyChartStyles> = {\n root: 'fui-sc__root',\n nodes: 'fui-sc__nodes',\n links: 'fui-sc__links',\n nodeTextContainer: 'fui-sc__nodeTextContainer',\n toolTip: 'fui-sc__toolTip',\n chartWrapper: 'fui-sc__chartWrapper',\n chart: 'fui-sc__chart',\n chartTitle: 'fui-sc__chartTitle',\n svgTooltip: 'fui-sc__svgTooltip',\n};\nconst useStyles = makeStyles({\n root: {\n ...typographyStyles.body1,\n display: 'flex',\n width: '100%',\n height: '100%',\n flexDirection: 'column',\n overflow: 'hidden',\n textAlign: 'left',\n },\n links: {\n fill: tokens.colorNeutralBackground1,\n strokeWidth: '3px',\n [HighContrastSelector]: {\n fill: 'Canvas',\n },\n },\n nodes: {\n fill: '#F5F5F5',\n [HighContrastSelector]: {\n fill: 'Canvas',\n },\n },\n toolTip: getTooltipStyle() as GriffelStyle,\n nodeTextContainer: {\n '& text': {\n [HighContrastSelector]: {\n fill: 'CanvasText',\n },\n },\n\n marginTop: '4px',\n marginLeft: '8px',\n marginBottom: '4px',\n marginRight: '8px',\n },\n chartWrapper: {\n overflow: 'auto',\n },\n chart: {\n display: 'block',\n },\n chartTitle: getChartTitleStyles() as GriffelStyle,\n svgTooltip: {\n fill: tokens.colorNeutralBackground1,\n [HighContrastSelector]: {\n fill: 'Canvas',\n },\n },\n});\n\nexport const useSankeyChartStyles = (props: SankeyChartProps): SankeyChartStyles => {\n const baseStyles = useStyles();\n\n return {\n root: mergeClasses(sankeyChartClassNames.root, baseStyles.root, props.styles?.root),\n nodes: mergeClasses(sankeyChartClassNames.nodes, baseStyles.nodes /*, props.styles?.nodes*/),\n links: mergeClasses(sankeyChartClassNames.links, baseStyles.links /*, props.styles?.links*/),\n nodeTextContainer: mergeClasses(\n sankeyChartClassNames.nodeTextContainer,\n baseStyles.nodeTextContainer /*, props.styles?.nodeTextContainer*/,\n ),\n toolTip: mergeClasses(sankeyChartClassNames.toolTip, baseStyles.toolTip /*, props.styles?.toolTip*/),\n chartWrapper: mergeClasses(\n sankeyChartClassNames.chartWrapper,\n props.reflowProps?.mode === 'min-width' ? baseStyles.chartWrapper : '',\n props.styles?.chartWrapper,\n ),\n chart: mergeClasses(sankeyChartClassNames.chart, baseStyles.chart, props.styles?.chart),\n chartTitle: mergeClasses(sankeyChartClassNames.chartTitle, baseStyles.chartTitle, props.styles?.chartTitle),\n svgTooltip: mergeClasses(sankeyChartClassNames.svgTooltip, baseStyles.svgTooltip, props.styles?.svgTooltip),\n };\n};\n"],"names":["makeStyles","mergeClasses","tokens","typographyStyles","HighContrastSelector","getTooltipStyle","getChartTitleStyles","sankeyChartClassNames","root","nodes","links","nodeTextContainer","toolTip","chartWrapper","chart","chartTitle","svgTooltip","useStyles","body1","display","width","height","flexDirection","overflow","textAlign","fill","colorNeutralBackground1","strokeWidth","marginTop","marginLeft","marginBottom","marginRight","useSankeyChartStyles","props","baseStyles","styles","reflowProps","mode"],"mappings":"AAAA;;;;;;;;;;;;IASaO,qBAAAA;;;wBA8DAyB;eAAAA;;;uBApE4B,iBAAiB;4BAGjB,wBAAwB;uBACU,2BAAwB;AAE5F,8BAAiE;IACtExB,MAAM;IACNC,OAAO;IACPC,OAAO;IACPC,mBAAmB;IACnBC,SAAS;IACTC,cAAc;IACdC,OAAO;IACPC,YAAY;IACZC,YAAY;AACd,EAAE;AACF,MAAMC,gBAAYjB,iBAAAA,EAAW;IAC3BQ,MAAM;QACJ,GAAGL,4BAAAA,CAAiBe,KAAK;QACzBC,SAAS;QACTC,OAAO;QACPC,QAAQ;QACRC,eAAe;QACfC,UAAU;QACVC,WAAW;IACb;IACAd,OAAO;QACLe,MAAMvB,kBAAAA,CAAOwB,uBAAuB;QACpCC,aAAa;QACb,CAACvB,2BAAAA,CAAqB,EAAE;YACtBqB,MAAM;QACR;IACF;IACAhB,OAAO;QACLgB,MAA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AAY,GAAG,IACpEoB,AADoE,kBACpEA,MAAME,MAAAA,AAAM,MAAA,QAAZF,mBAAAA,KAAAA,IAAAA,KAAAA,IAAAA,eAAcpB,YAAY;QAE5BC,WAAOb,mBAAAA,EAAaM,sBAAsBO,KAAK,EAAEoB,WAAWpB,KAAK,EAAA,CAAEmB,iBAAAA,MAAME,MAAAA,AAAM,MAAA,QAAZF,mBAAAA,KAAAA,IAAAA,KAAAA,IAAAA,eAAcnB,KAAK;QACtFC,YAAYd,uBAAAA,EAAaM,sBAAsBQ,UAAU,EAAEmB,WAAWnB,UAAU,EAAA,CAAEkB,iBAAAA,MAAME,MAAAA,AAAM,MAAA,QAAZF,mBAAAA,KAAAA,IAAAA,KAAAA,IAAAA,eAAclB,UAAU;QAC1GC,gBAAYf,mBAAAA,EAAaM,sBAAsBS,UAAU,EAAEkB,WAAWlB,UAAU,EAAA,CAAEiB,iBAAAA,MAAME,MAAAA,AAAM,MAAA,QAAZF,mBAAAA,KAAAA,IAAAA,KAAAA,IAAAA,eAAcjB,UAAU;IAC5G;AACF,EAAE"}
@@ -11,17 +11,17 @@ Object.defineProperty(exports, "ScatterChart", {
11
11
  });
12
12
  const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
13
13
  const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
14
- const _useScatterChartStylesstyles = require("./useScatterChartStyles.styles");
14
+ const _useScatterChartStylesstyles = require("./useScatterChartStyles.styles.cjs");
15
15
  const _d3selection = require("d3-selection");
16
- const _index = require("../Legends/index");
16
+ const _index = require("../Legends/index.cjs");
17
17
  const _d3array = require("d3-array");
18
18
  const _reactutilities = require("@fluentui/react-utilities");
19
- const _index1 = require("../../utilities/index");
20
- const _index2 = require("../../index");
19
+ const _index1 = require("../../utilities/index.cjs");
20
+ const _index2 = require("../../index.cjs");
21
21
  const _reacttheme = require("@fluentui/react-theme");
22
- const _scatterpolarutils = require("../../utilities/scatterpolar-utils");
22
+ const _scatterpolarutils = require("../../utilities/scatterpolar-utils.cjs");
23
23
  const _chartutilities = require("@fluentui/chart-utilities");
24
- const _hooks = require("../../utilities/hooks");
24
+ const _hooks = require("../../utilities/hooks.cjs");
25
25
  const ScatterChart = /*#__PURE__*/ _react.forwardRef((props, forwardedRef)=>{
26
26
  var _props_legendProps, _props_legendProps1;
27
27
  const _circleId = (0, _reactutilities.useId)('circle');
@@ -329,10 +329,10 @@ const ScatterChart = /*#__PURE__*/ _react.forwardRef((props, forwardedRef)=>{
329
329
  opacity: isLegendSelected && !currentPointHidden ? 1 : 0.1,
330
330
  fill: _getPointFill(seriesColor, circleId, j, false),
331
331
  stroke: seriesColor,
332
- role: "img",
332
+ role: "option",
333
333
  "aria-label": _getAriaLabel(i, j),
334
334
  tabIndex: isLegendSelected ? 0 : undefined
335
- }), ",", text && /*#__PURE__*/ _react.createElement("text", {
335
+ }), text && /*#__PURE__*/ _react.createElement("text", {
336
336
  key: `${circleId}-label`,
337
337
  x: xPoint + _xBandwidth,
338
338
  y: yPoint + Math.max(circleRadius + 12, 16),
@@ -351,7 +351,7 @@ const ScatterChart = /*#__PURE__*/ _react.forwardRef((props, forwardedRef)=>{
351
351
  }
352
352
  series.push(/*#__PURE__*/ _react.createElement("g", {
353
353
  key: `series_${i}`,
354
- role: "region",
354
+ role: "listbox",
355
355
  "aria-label": `${legendVal}, series ${i + 1} of ${_points.length} with ${_points[i].data.length} data points.`
356
356
  }, pointsForSeries));
357
357
  }