@fluentui/react-charts 9.3.23 → 9.3.25

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 (740) hide show
  1. package/CHANGELOG.md +30 -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 +5 -5
  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 +5 -5
  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 +11 -11
  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 +9 -9
  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 +11 -11
  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 +13 -13
  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 +4 -4
  165. package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js.map +1 -1
  166. package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.js +4 -4
  167. package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.js.map +1 -1
  168. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +11 -11
  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 +10 -10
  177. package/lib/components/Legends/Legends.js.map +1 -1
  178. package/lib/components/Legends/OverflowMenu.js +4 -4
  179. package/lib/components/Legends/index.js +3 -3
  180. package/lib/components/Legends/index.js.map +1 -1
  181. package/lib/components/Legends/shape.js +2 -2
  182. package/lib/components/Legends/shape.js.map +1 -1
  183. package/lib/components/Legends/useLegendsStyles.styles.js +3 -3
  184. package/lib/components/Legends/useLegendsStyles.styles.js.map +1 -1
  185. package/lib/components/Legends/useLegendsStyles.styles.raw.js +3 -3
  186. package/lib/components/Legends/useLegendsStyles.styles.raw.js.map +1 -1
  187. package/lib/components/LineChart/LineChart.js +16 -16
  188. package/lib/components/LineChart/LineChart.js.map +1 -1
  189. package/lib/components/LineChart/eventAnnotation/EventAnnotation.js +5 -5
  190. package/lib/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
  191. package/lib/components/LineChart/eventAnnotation/LabelLink.js +4 -4
  192. package/lib/components/LineChart/eventAnnotation/LabelLink.js.map +1 -1
  193. package/lib/components/LineChart/eventAnnotation/Textbox.js +3 -3
  194. package/lib/components/LineChart/eventAnnotation/Textbox.js.map +1 -1
  195. package/lib/components/LineChart/index.js +4 -4
  196. package/lib/components/LineChart/index.js.map +1 -1
  197. package/lib/components/LineChart/useLineChartStyles.styles.js +4 -4
  198. package/lib/components/LineChart/useLineChartStyles.styles.js.map +1 -1
  199. package/lib/components/LineChart/useLineChartStyles.styles.raw.js +4 -4
  200. package/lib/components/LineChart/useLineChartStyles.styles.raw.js.map +1 -1
  201. package/lib/components/PolarChart/PolarChart.js +13 -13
  202. package/lib/components/PolarChart/PolarChart.js.map +1 -1
  203. package/lib/components/PolarChart/PolarChart.utils.js +6 -6
  204. package/lib/components/PolarChart/PolarChart.utils.js.map +1 -1
  205. package/lib/components/PolarChart/index.js +2 -2
  206. package/lib/components/PolarChart/index.js.map +1 -1
  207. package/lib/components/PolarChart/usePolarChartStyles.styles.js +2 -2
  208. package/lib/components/PolarChart/usePolarChartStyles.styles.js.map +1 -1
  209. package/lib/components/PolarChart/usePolarChartStyles.styles.raw.js +2 -2
  210. package/lib/components/ResponsiveContainer/ResponsiveContainer.js +4 -4
  211. package/lib/components/ResponsiveContainer/ResponsiveContainer.js.map +1 -1
  212. package/lib/components/ResponsiveContainer/index.js +3 -3
  213. package/lib/components/ResponsiveContainer/index.js.map +1 -1
  214. package/lib/components/ResponsiveContainer/useResponsiveChildStyles.styles.js +1 -1
  215. package/lib/components/ResponsiveContainer/useResponsiveChildStyles.styles.js.map +1 -1
  216. package/lib/components/ResponsiveContainer/useResponsiveChildStyles.styles.raw.js +1 -1
  217. package/lib/components/ResponsiveContainer/withResponsiveContainer.js +2 -2
  218. package/lib/components/ResponsiveContainer/withResponsiveContainer.js.map +1 -1
  219. package/lib/components/SankeyChart/SankeyChart.js +14 -14
  220. package/lib/components/SankeyChart/SankeyChart.js.map +1 -1
  221. package/lib/components/SankeyChart/index.js +3 -3
  222. package/lib/components/SankeyChart/index.js.map +1 -1
  223. package/lib/components/SankeyChart/useSankeyChartStyles.styles.js +3 -3
  224. package/lib/components/SankeyChart/useSankeyChartStyles.styles.js.map +1 -1
  225. package/lib/components/SankeyChart/useSankeyChartStyles.styles.raw.js +3 -3
  226. package/lib/components/SankeyChart/useSankeyChartStyles.styles.raw.js.map +1 -1
  227. package/lib/components/ScatterChart/ScatterChart.js +13 -13
  228. package/lib/components/ScatterChart/ScatterChart.js.map +1 -1
  229. package/lib/components/ScatterChart/index.js +3 -3
  230. package/lib/components/ScatterChart/index.js.map +1 -1
  231. package/lib/components/ScatterChart/useScatterChartStyles.styles.js +2 -2
  232. package/lib/components/ScatterChart/useScatterChartStyles.styles.js.map +1 -1
  233. package/lib/components/ScatterChart/useScatterChartStyles.styles.raw.js +2 -2
  234. package/lib/components/ScatterChart/useScatterChartStyles.styles.raw.js.map +1 -1
  235. package/lib/components/Sparkline/Sparkline.js +7 -7
  236. package/lib/components/Sparkline/Sparkline.js.map +1 -1
  237. package/lib/components/Sparkline/index.js +3 -3
  238. package/lib/components/Sparkline/index.js.map +1 -1
  239. package/lib/components/Sparkline/useSparklineStyles.styles.js +2 -2
  240. package/lib/components/Sparkline/useSparklineStyles.styles.js.map +1 -1
  241. package/lib/components/Sparkline/useSparklineStyles.styles.raw.js +2 -2
  242. package/lib/components/VegaDeclarativeChart/VegaDeclarativeChart.js +15 -15
  243. package/lib/components/VegaDeclarativeChart/VegaDeclarativeChart.js.map +1 -1
  244. package/lib/components/VegaDeclarativeChart/VegaDeclarativeChartHooks.js +4 -4
  245. package/lib/components/VegaDeclarativeChart/VegaLiteColorAdapter.js +2 -2
  246. package/lib/components/VegaDeclarativeChart/VegaLiteColorAdapter.js.map +1 -1
  247. package/lib/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.js +5 -5
  248. package/lib/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.js.map +1 -1
  249. package/lib/components/VegaDeclarativeChart/index.js +1 -1
  250. package/lib/components/VegaDeclarativeChart/index.js.map +1 -1
  251. package/lib/components/VerticalBarChart/VerticalBarChart.js +10 -10
  252. package/lib/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
  253. package/lib/components/VerticalBarChart/index.js +3 -3
  254. package/lib/components/VerticalBarChart/index.js.map +1 -1
  255. package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.js +4 -4
  256. package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.js.map +1 -1
  257. package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.js +4 -4
  258. package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.js.map +1 -1
  259. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js +11 -11
  260. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
  261. package/lib/components/VerticalStackedBarChart/index.js +3 -3
  262. package/lib/components/VerticalStackedBarChart/index.js.map +1 -1
  263. package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js +2 -2
  264. package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js.map +1 -1
  265. package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.js +2 -2
  266. package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.js.map +1 -1
  267. package/lib/index.js +26 -26
  268. package/lib/index.js.map +1 -1
  269. package/lib/types/index.js +3 -3
  270. package/lib/types/index.js.map +1 -1
  271. package/lib/utilities/ChartTitle.js +4 -4
  272. package/lib/utilities/ChartTitle.js.map +1 -1
  273. package/lib/utilities/Common.styles.js +2 -2
  274. package/lib/utilities/Common.styles.js.map +1 -1
  275. package/lib/utilities/Common.styles.raw.js +2 -2
  276. package/lib/utilities/Common.styles.raw.js.map +1 -1
  277. package/lib/utilities/FocusableTooltipText.js +6 -6
  278. package/lib/utilities/FocusableTooltipText.js.map +1 -1
  279. package/lib/utilities/SVGTooltipText.js +7 -7
  280. package/lib/utilities/SVGTooltipText.js.map +1 -1
  281. package/lib/utilities/async-utils.js +1 -1
  282. package/lib/utilities/async-utils.js.map +1 -1
  283. package/lib/utilities/colors.js +2 -2
  284. package/lib/utilities/getWindow.js +1 -1
  285. package/lib/utilities/hooks.js +3 -3
  286. package/lib/utilities/hooks.js.map +1 -1
  287. package/lib/utilities/image-export-utils.js +4 -4
  288. package/lib/utilities/image-export-utils.js.map +1 -1
  289. package/lib/utilities/index.js +5 -5
  290. package/lib/utilities/index.js.map +1 -1
  291. package/lib/utilities/scatterpolar-utils.js +1 -1
  292. package/lib/utilities/test-data.js +1 -1
  293. package/lib/utilities/test-data.js.map +1 -1
  294. package/lib/utilities/utilities.js +11 -11
  295. package/lib-commonjs/AnnotationOnlyChart.cjs +6 -0
  296. package/lib-commonjs/{AnnotationOnlyChart.js.map → AnnotationOnlyChart.cjs.map} +1 -1
  297. package/lib-commonjs/{DonutChart.js → AreaChart.cjs} +1 -1
  298. package/lib-commonjs/{AreaChart.js.map → AreaChart.cjs.map} +1 -1
  299. package/lib-commonjs/{AnnotationOnlyChart.js → CartesianChart.cjs} +1 -1
  300. package/lib-commonjs/{CartesianChart.js.map → CartesianChart.cjs.map} +1 -1
  301. package/lib-commonjs/{VegaDeclarativeChart.js → ChartTable.cjs} +1 -1
  302. package/lib-commonjs/{ChartTable.js.map → ChartTable.cjs.map} +1 -1
  303. package/lib-commonjs/DeclarativeChart.cjs +6 -0
  304. package/lib-commonjs/{DeclarativeChart.js.map → DeclarativeChart.cjs.map} +1 -1
  305. package/lib-commonjs/{ChartTable.js → DonutChart.cjs} +1 -1
  306. package/lib-commonjs/{DonutChart.js.map → DonutChart.cjs.map} +1 -1
  307. package/lib-commonjs/FunnelChart.cjs +6 -0
  308. package/lib-commonjs/{FunnelChart.js.map → FunnelChart.cjs.map} +1 -1
  309. package/lib-commonjs/GanttChart.cjs +6 -0
  310. package/lib-commonjs/{GanttChart.js.map → GanttChart.cjs.map} +1 -1
  311. package/lib-commonjs/GaugeChart.cjs +6 -0
  312. package/lib-commonjs/{GaugeChart.js.map → GaugeChart.cjs.map} +1 -1
  313. package/lib-commonjs/{GroupedVerticalBarChart.js → GroupedVerticalBarChart.cjs} +1 -1
  314. package/lib-commonjs/{GroupedVerticalBarChart.js.map → GroupedVerticalBarChart.cjs.map} +1 -1
  315. package/lib-commonjs/{DeclarativeChart.js → HeatMapChart.cjs} +1 -1
  316. package/lib-commonjs/{HeatMapChart.js.map → HeatMapChart.cjs.map} +1 -1
  317. package/lib-commonjs/HorizontalBarChart.cjs +6 -0
  318. package/lib-commonjs/{HorizontalBarChart.js.map → HorizontalBarChart.cjs.map} +1 -1
  319. package/lib-commonjs/{HorizontalBarChartWithAxis.js → HorizontalBarChartWithAxis.cjs} +1 -1
  320. package/lib-commonjs/{HorizontalBarChartWithAxis.js.map → HorizontalBarChartWithAxis.cjs.map} +1 -1
  321. package/lib-commonjs/{SankeyChart.js → Legends.cjs} +1 -1
  322. package/lib-commonjs/{Legends.js.map → Legends.cjs.map} +1 -1
  323. package/lib-commonjs/{FunnelChart.js → LineChart.cjs} +1 -1
  324. package/lib-commonjs/{LineChart.js.map → LineChart.cjs.map} +1 -1
  325. package/lib-commonjs/PolarChart.cjs +6 -0
  326. package/lib-commonjs/{PolarChart.js.map → PolarChart.cjs.map} +1 -1
  327. package/lib-commonjs/Popover.cjs +6 -0
  328. package/lib-commonjs/{Popover.js.map → Popover.cjs.map} +1 -1
  329. package/lib-commonjs/ResponsiveContainer.cjs +6 -0
  330. package/lib-commonjs/{ResponsiveContainer.js.map → ResponsiveContainer.cjs.map} +1 -1
  331. package/lib-commonjs/SankeyChart.cjs +6 -0
  332. package/lib-commonjs/{SankeyChart.js.map → SankeyChart.cjs.map} +1 -1
  333. package/lib-commonjs/{CartesianChart.js → ScatterChart.cjs} +1 -1
  334. package/lib-commonjs/{ScatterChart.js.map → ScatterChart.cjs.map} +1 -1
  335. package/lib-commonjs/{AreaChart.js → Sparkline.cjs} +1 -1
  336. package/lib-commonjs/{Sparkline.js.map → Sparkline.cjs.map} +1 -1
  337. package/lib-commonjs/VegaDeclarativeChart.cjs +6 -0
  338. package/lib-commonjs/{VegaDeclarativeChart.js.map → VegaDeclarativeChart.cjs.map} +1 -1
  339. package/lib-commonjs/VerticalBarChart.cjs +6 -0
  340. package/lib-commonjs/{VerticalBarChart.js.map → VerticalBarChart.cjs.map} +1 -1
  341. package/lib-commonjs/{VerticalStackedBarChart.js → VerticalStackedBarChart.cjs} +1 -1
  342. package/lib-commonjs/{VerticalStackedBarChart.js.map → VerticalStackedBarChart.cjs.map} +1 -1
  343. package/lib-commonjs/components/AnnotationOnlyChart/{AnnotationOnlyChart.js → AnnotationOnlyChart.cjs} +5 -5
  344. package/lib-commonjs/components/AnnotationOnlyChart/{AnnotationOnlyChart.js.map → AnnotationOnlyChart.cjs.map} +1 -1
  345. package/lib-commonjs/{HeatMapChart.js → components/AnnotationOnlyChart/index.cjs} +2 -1
  346. package/lib-commonjs/components/AnnotationOnlyChart/{index.js.map → index.cjs.map} +1 -1
  347. package/lib-commonjs/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.cjs.map +1 -0
  348. package/lib-commonjs/components/AreaChart/{AreaChart.js → AreaChart.cjs} +4 -4
  349. package/lib-commonjs/components/AreaChart/{AreaChart.js.map → AreaChart.cjs.map} +1 -1
  350. package/lib-commonjs/components/AreaChart/index.cjs +8 -0
  351. package/lib-commonjs/components/AreaChart/{index.js.map → index.cjs.map} +1 -1
  352. package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.cjs.map +1 -0
  353. package/lib-commonjs/components/AreaChart/{useAreaChartStyles.styles.raw.js → useAreaChartStyles.styles.raw.cjs} +1 -1
  354. package/lib-commonjs/components/AreaChart/{useAreaChartStyles.styles.raw.js.map → useAreaChartStyles.styles.raw.cjs.map} +1 -1
  355. package/lib-commonjs/components/ChartTable/{ChartTable.js → ChartTable.cjs} +5 -5
  356. package/lib-commonjs/components/ChartTable/{ChartTable.js.map → ChartTable.cjs.map} +1 -1
  357. package/lib-commonjs/components/ChartTable/index.cjs +8 -0
  358. package/lib-commonjs/components/ChartTable/{index.js.map → index.cjs.map} +1 -1
  359. package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.cjs.map +1 -0
  360. package/lib-commonjs/components/ChartTable/{useChartTableStyles.styles.raw.js → useChartTableStyles.styles.raw.cjs} +1 -1
  361. package/lib-commonjs/components/ChartTable/{useChartTableStyles.styles.raw.js.map → useChartTableStyles.styles.raw.cjs.map} +1 -1
  362. package/lib-commonjs/components/CommonComponents/Annotations/{ChartAnnotationLayer.js → ChartAnnotationLayer.cjs} +1 -1
  363. package/lib-commonjs/components/CommonComponents/Annotations/{ChartAnnotationLayer.js.map → ChartAnnotationLayer.cjs.map} +1 -1
  364. package/lib-commonjs/components/CommonComponents/Annotations/index.cjs +7 -0
  365. package/lib-commonjs/components/CommonComponents/Annotations/{index.js.map → index.cjs.map} +1 -1
  366. package/lib-commonjs/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.cjs.map +1 -0
  367. package/lib-commonjs/components/CommonComponents/{CartesianChart.js → CartesianChart.cjs} +5 -5
  368. package/lib-commonjs/components/CommonComponents/{CartesianChart.js.map → CartesianChart.cjs.map} +1 -1
  369. package/lib-commonjs/components/CommonComponents/{ChartPopover.js → ChartPopover.cjs} +3 -3
  370. package/lib-commonjs/components/CommonComponents/{ChartPopover.js.map → ChartPopover.cjs.map} +1 -1
  371. package/lib-commonjs/components/CommonComponents/index.cjs +11 -0
  372. package/lib-commonjs/components/CommonComponents/{index.js.map → index.cjs.map} +1 -1
  373. package/lib-commonjs/components/CommonComponents/{useCartesianChartStyles.styles.js → useCartesianChartStyles.styles.cjs} +1 -1
  374. package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.cjs.map +1 -0
  375. package/lib-commonjs/components/CommonComponents/{useCartesianChartStyles.styles.raw.js → useCartesianChartStyles.styles.raw.cjs} +2 -2
  376. package/lib-commonjs/components/CommonComponents/{useCartesianChartStyles.styles.raw.js.map → useCartesianChartStyles.styles.raw.cjs.map} +1 -1
  377. package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.cjs.map +1 -0
  378. package/lib-commonjs/components/DeclarativeChart/{DeclarativeChart.js → DeclarativeChart.cjs} +21 -21
  379. package/lib-commonjs/components/DeclarativeChart/{DeclarativeChart.js.map → DeclarativeChart.cjs.map} +1 -1
  380. package/lib-commonjs/components/DeclarativeChart/{PlotlyColorAdapter.js → PlotlyColorAdapter.cjs} +2 -2
  381. package/lib-commonjs/components/DeclarativeChart/{PlotlyColorAdapter.js.map → PlotlyColorAdapter.cjs.map} +1 -1
  382. package/lib-commonjs/components/DeclarativeChart/{PlotlySchemaAdapter.js → PlotlySchemaAdapter.cjs} +3 -3
  383. package/lib-commonjs/components/DeclarativeChart/{PlotlySchemaAdapter.js.map → PlotlySchemaAdapter.cjs.map} +1 -1
  384. package/lib-commonjs/components/DeclarativeChart/{index.js → index.cjs} +1 -1
  385. package/lib-commonjs/components/DeclarativeChart/{index.js.map → index.cjs.map} +1 -1
  386. package/lib-commonjs/components/DonutChart/Arc/{Arc.js → Arc.cjs} +2 -2
  387. package/lib-commonjs/components/DonutChart/Arc/{Arc.js.map → Arc.cjs.map} +1 -1
  388. package/lib-commonjs/components/DonutChart/Arc/index.cjs +7 -0
  389. package/lib-commonjs/components/DonutChart/Arc/{index.js.map → index.cjs.map} +1 -1
  390. package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.cjs.map +1 -0
  391. package/lib-commonjs/components/DonutChart/Arc/{useArcStyles.styles.raw.js → useArcStyles.styles.raw.cjs} +1 -1
  392. package/lib-commonjs/components/DonutChart/Arc/{useArcStyles.styles.raw.js.map → useArcStyles.styles.raw.cjs.map} +1 -1
  393. package/lib-commonjs/components/DonutChart/{DonutChart.js → DonutChart.cjs} +6 -6
  394. package/lib-commonjs/components/DonutChart/{DonutChart.js.map → DonutChart.cjs.map} +1 -1
  395. package/lib-commonjs/components/DonutChart/Pie/{Pie.js → Pie.cjs} +3 -3
  396. package/lib-commonjs/components/DonutChart/Pie/{Pie.js.map → Pie.cjs.map} +1 -1
  397. package/lib-commonjs/components/DonutChart/Pie/index.cjs +7 -0
  398. package/lib-commonjs/components/DonutChart/Pie/{index.js.map → index.cjs.map} +1 -1
  399. package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.cjs.map +1 -0
  400. package/lib-commonjs/components/DonutChart/index.cjs +8 -0
  401. package/lib-commonjs/components/DonutChart/{index.js.map → index.cjs.map} +1 -1
  402. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.cjs.map +1 -0
  403. package/lib-commonjs/components/DonutChart/{useDonutChartStyles.styles.raw.js → useDonutChartStyles.styles.raw.cjs} +1 -1
  404. package/lib-commonjs/components/DonutChart/{useDonutChartStyles.styles.raw.js.map → useDonutChartStyles.styles.raw.cjs.map} +1 -1
  405. package/lib-commonjs/components/FunnelChart/{FunnelChart.js → FunnelChart.cjs} +7 -7
  406. package/lib-commonjs/components/FunnelChart/{FunnelChart.js.map → FunnelChart.cjs.map} +1 -1
  407. package/lib-commonjs/components/FunnelChart/index.cjs +7 -0
  408. package/lib-commonjs/components/FunnelChart/{index.js.map → index.cjs.map} +1 -1
  409. package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.cjs.map +1 -0
  410. package/lib-commonjs/components/FunnelChart/{useFunnelChartStyles.styles.raw.js → useFunnelChartStyles.styles.raw.cjs} +1 -1
  411. package/lib-commonjs/components/FunnelChart/{useFunnelChartStyles.styles.raw.js.map → useFunnelChartStyles.styles.raw.cjs.map} +1 -1
  412. package/lib-commonjs/components/GanttChart/{GanttChart.js → GanttChart.cjs} +5 -5
  413. package/lib-commonjs/components/GanttChart/{GanttChart.js.map → GanttChart.cjs.map} +1 -1
  414. package/lib-commonjs/components/GanttChart/index.cjs +7 -0
  415. package/lib-commonjs/components/GanttChart/{index.js.map → index.cjs.map} +1 -1
  416. package/lib-commonjs/components/GaugeChart/{GaugeChart.js → GaugeChart.cjs} +6 -6
  417. package/lib-commonjs/components/GaugeChart/{GaugeChart.js.map → GaugeChart.cjs.map} +1 -1
  418. package/lib-commonjs/components/GaugeChart/index.cjs +8 -0
  419. package/lib-commonjs/components/GaugeChart/{index.js.map → index.cjs.map} +1 -1
  420. package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.cjs.map +1 -0
  421. package/lib-commonjs/components/GaugeChart/{useGaugeChartStyles.styles.raw.js → useGaugeChartStyles.styles.raw.cjs} +1 -1
  422. package/lib-commonjs/components/GaugeChart/{useGaugeChartStyles.styles.raw.js.map → useGaugeChartStyles.styles.raw.cjs.map} +1 -1
  423. package/lib-commonjs/components/GroupedVerticalBarChart/{GroupedVerticalBarChart.js → GroupedVerticalBarChart.cjs} +4 -4
  424. package/lib-commonjs/components/GroupedVerticalBarChart/{GroupedVerticalBarChart.js.map → GroupedVerticalBarChart.cjs.map} +1 -1
  425. package/lib-commonjs/components/GroupedVerticalBarChart/index.cjs +8 -0
  426. package/lib-commonjs/components/GroupedVerticalBarChart/{index.js.map → index.cjs.map} +1 -1
  427. package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.cjs.map +1 -0
  428. package/lib-commonjs/components/GroupedVerticalBarChart/{useGroupedVerticalBarChartStyles.styles.raw.js → useGroupedVerticalBarChartStyles.styles.raw.cjs} +1 -1
  429. package/lib-commonjs/components/GroupedVerticalBarChart/{useGroupedVerticalBarChartStyles.styles.raw.js.map → useGroupedVerticalBarChartStyles.styles.raw.cjs.map} +1 -1
  430. package/lib-commonjs/components/HeatMapChart/{HeatMapChart.js → HeatMapChart.cjs} +5 -5
  431. package/lib-commonjs/components/HeatMapChart/{HeatMapChart.js.map → HeatMapChart.cjs.map} +1 -1
  432. package/lib-commonjs/components/HeatMapChart/index.cjs +8 -0
  433. package/lib-commonjs/components/HeatMapChart/{index.js.map → index.cjs.map} +1 -1
  434. package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.cjs.map +1 -0
  435. package/lib-commonjs/components/HorizontalBarChart/{HorizontalBarChart.js → HorizontalBarChart.cjs} +6 -6
  436. package/lib-commonjs/components/HorizontalBarChart/{HorizontalBarChart.js.map → HorizontalBarChart.cjs.map} +1 -1
  437. package/lib-commonjs/components/HorizontalBarChart/index.cjs +8 -0
  438. package/lib-commonjs/components/HorizontalBarChart/{index.js.map → index.cjs.map} +1 -1
  439. package/lib-commonjs/components/HorizontalBarChart/{useHorizontalBarChartStyles.styles.js → useHorizontalBarChartStyles.styles.cjs} +1 -1
  440. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.cjs.map +1 -0
  441. package/lib-commonjs/components/HorizontalBarChart/{useHorizontalBarChartStyles.styles.raw.js → useHorizontalBarChartStyles.styles.raw.cjs} +2 -2
  442. package/lib-commonjs/components/HorizontalBarChart/{useHorizontalBarChartStyles.styles.raw.js.map → useHorizontalBarChartStyles.styles.raw.cjs.map} +1 -1
  443. package/lib-commonjs/components/HorizontalBarChartWithAxis/{HorizontalBarChartWithAxis.js → HorizontalBarChartWithAxis.cjs} +7 -7
  444. package/lib-commonjs/components/HorizontalBarChartWithAxis/{HorizontalBarChartWithAxis.js.map → HorizontalBarChartWithAxis.cjs.map} +1 -1
  445. package/lib-commonjs/components/HorizontalBarChartWithAxis/index.cjs +8 -0
  446. package/lib-commonjs/components/HorizontalBarChartWithAxis/{index.js.map → index.cjs.map} +1 -1
  447. package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.cjs.map +1 -0
  448. package/lib-commonjs/components/HorizontalBarChartWithAxis/{useHorizontalBarChartWithAxisStyles.styles.raw.js → useHorizontalBarChartWithAxisStyles.styles.raw.cjs} +1 -1
  449. package/lib-commonjs/components/HorizontalBarChartWithAxis/{useHorizontalBarChartWithAxisStyles.styles.raw.js.map → useHorizontalBarChartWithAxisStyles.styles.raw.cjs.map} +1 -1
  450. package/lib-commonjs/components/Legends/{Legends.js → Legends.cjs} +4 -4
  451. package/lib-commonjs/components/Legends/{Legends.js.map → Legends.cjs.map} +1 -1
  452. package/lib-commonjs/components/Legends/index.cjs +8 -0
  453. package/lib-commonjs/components/Legends/{index.js.map → index.cjs.map} +1 -1
  454. package/lib-commonjs/components/Legends/{shape.js → shape.cjs} +1 -1
  455. package/lib-commonjs/components/Legends/{shape.js.map → shape.cjs.map} +1 -1
  456. package/lib-commonjs/components/Legends/useLegendsStyles.styles.cjs.map +1 -0
  457. package/lib-commonjs/components/Legends/{useLegendsStyles.styles.raw.js → useLegendsStyles.styles.raw.cjs} +1 -1
  458. package/lib-commonjs/components/Legends/{useLegendsStyles.styles.raw.js.map → useLegendsStyles.styles.raw.cjs.map} +1 -1
  459. package/lib-commonjs/components/LineChart/{LineChart.js → LineChart.cjs} +7 -7
  460. package/lib-commonjs/components/LineChart/{LineChart.js.map → LineChart.cjs.map} +1 -1
  461. package/lib-commonjs/components/LineChart/eventAnnotation/{EventAnnotation.js → EventAnnotation.cjs} +3 -3
  462. package/lib-commonjs/components/LineChart/eventAnnotation/{EventAnnotation.js.map → EventAnnotation.cjs.map} +1 -1
  463. package/lib-commonjs/components/LineChart/eventAnnotation/{LabelLink.js → LabelLink.cjs} +2 -2
  464. package/lib-commonjs/components/LineChart/eventAnnotation/{LabelLink.js.map → LabelLink.cjs.map} +1 -1
  465. package/lib-commonjs/components/LineChart/eventAnnotation/{Textbox.js → Textbox.cjs} +1 -1
  466. package/lib-commonjs/components/LineChart/eventAnnotation/{Textbox.js.map → Textbox.cjs.map} +1 -1
  467. package/lib-commonjs/components/LineChart/index.cjs +9 -0
  468. package/lib-commonjs/components/LineChart/{index.js.map → index.cjs.map} +1 -1
  469. package/lib-commonjs/components/LineChart/useLineChartStyles.styles.cjs.map +1 -0
  470. package/lib-commonjs/components/LineChart/{useLineChartStyles.styles.raw.js → useLineChartStyles.styles.raw.cjs} +1 -1
  471. package/lib-commonjs/components/LineChart/{useLineChartStyles.styles.raw.js.map → useLineChartStyles.styles.raw.cjs.map} +1 -1
  472. package/lib-commonjs/components/PolarChart/{PolarChart.js → PolarChart.cjs} +6 -6
  473. package/lib-commonjs/components/PolarChart/{PolarChart.js.map → PolarChart.cjs.map} +1 -1
  474. package/lib-commonjs/components/PolarChart/{PolarChart.utils.js → PolarChart.utils.cjs} +1 -1
  475. package/lib-commonjs/components/PolarChart/{PolarChart.utils.js.map → PolarChart.utils.cjs.map} +1 -1
  476. package/lib-commonjs/components/PolarChart/index.cjs +7 -0
  477. package/lib-commonjs/components/PolarChart/{index.js.map → index.cjs.map} +1 -1
  478. package/lib-commonjs/components/PolarChart/usePolarChartStyles.styles.cjs.map +1 -0
  479. package/lib-commonjs/components/ResponsiveContainer/{ResponsiveContainer.js → ResponsiveContainer.cjs} +2 -2
  480. package/lib-commonjs/components/ResponsiveContainer/{ResponsiveContainer.js.map → ResponsiveContainer.cjs.map} +1 -1
  481. package/lib-commonjs/components/ResponsiveContainer/index.cjs +8 -0
  482. package/lib-commonjs/components/ResponsiveContainer/{index.js.map → index.cjs.map} +1 -1
  483. package/lib-commonjs/components/ResponsiveContainer/useResponsiveChildStyles.styles.cjs.map +1 -0
  484. package/lib-commonjs/components/ResponsiveContainer/{withResponsiveContainer.js → withResponsiveContainer.cjs} +1 -1
  485. package/lib-commonjs/components/ResponsiveContainer/{withResponsiveContainer.js.map → withResponsiveContainer.cjs.map} +1 -1
  486. package/lib-commonjs/components/SankeyChart/{SankeyChart.js → SankeyChart.cjs} +5 -5
  487. package/lib-commonjs/components/SankeyChart/{SankeyChart.js.map → SankeyChart.cjs.map} +1 -1
  488. package/lib-commonjs/components/SankeyChart/index.cjs +8 -0
  489. package/lib-commonjs/components/SankeyChart/{index.js.map → index.cjs.map} +1 -1
  490. package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.cjs.map +1 -0
  491. package/lib-commonjs/components/SankeyChart/{useSankeyChartStyles.styles.raw.js → useSankeyChartStyles.styles.raw.cjs} +1 -1
  492. package/lib-commonjs/components/SankeyChart/{useSankeyChartStyles.styles.raw.js.map → useSankeyChartStyles.styles.raw.cjs.map} +1 -1
  493. package/lib-commonjs/components/ScatterChart/{ScatterChart.js → ScatterChart.cjs} +6 -6
  494. package/lib-commonjs/components/ScatterChart/{ScatterChart.js.map → ScatterChart.cjs.map} +1 -1
  495. package/lib-commonjs/components/ScatterChart/index.cjs +8 -0
  496. package/lib-commonjs/components/ScatterChart/{index.js.map → index.cjs.map} +1 -1
  497. package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.cjs.map +1 -0
  498. package/lib-commonjs/components/ScatterChart/{useScatterChartStyles.styles.raw.js → useScatterChartStyles.styles.raw.cjs} +1 -1
  499. package/lib-commonjs/components/ScatterChart/{useScatterChartStyles.styles.raw.js.map → useScatterChartStyles.styles.raw.cjs.map} +1 -1
  500. package/lib-commonjs/components/Sparkline/{Sparkline.js → Sparkline.cjs} +2 -2
  501. package/lib-commonjs/components/Sparkline/{Sparkline.js.map → Sparkline.cjs.map} +1 -1
  502. package/lib-commonjs/components/Sparkline/index.cjs +8 -0
  503. package/lib-commonjs/components/Sparkline/{index.js.map → index.cjs.map} +1 -1
  504. package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.cjs.map +1 -0
  505. package/lib-commonjs/components/VegaDeclarativeChart/{VegaDeclarativeChart.js → VegaDeclarativeChart.cjs} +14 -14
  506. package/lib-commonjs/components/VegaDeclarativeChart/{VegaDeclarativeChart.js.map → VegaDeclarativeChart.cjs.map} +1 -1
  507. package/lib-commonjs/components/VegaDeclarativeChart/{VegaLiteColorAdapter.js → VegaLiteColorAdapter.cjs} +2 -2
  508. package/lib-commonjs/components/VegaDeclarativeChart/{VegaLiteColorAdapter.js.map → VegaLiteColorAdapter.cjs.map} +1 -1
  509. package/lib-commonjs/components/VegaDeclarativeChart/{VegaLiteSchemaAdapter.js → VegaLiteSchemaAdapter.cjs} +2 -2
  510. package/lib-commonjs/components/VegaDeclarativeChart/{VegaLiteSchemaAdapter.js.map → VegaLiteSchemaAdapter.cjs.map} +1 -1
  511. package/lib-commonjs/{Legends.js → components/VegaDeclarativeChart/index.cjs} +1 -1
  512. package/lib-commonjs/components/VegaDeclarativeChart/{index.js.map → index.cjs.map} +1 -1
  513. package/lib-commonjs/components/VerticalBarChart/{VerticalBarChart.js → VerticalBarChart.cjs} +4 -4
  514. package/lib-commonjs/components/VerticalBarChart/{VerticalBarChart.js.map → VerticalBarChart.cjs.map} +1 -1
  515. package/lib-commonjs/components/VerticalBarChart/index.cjs +8 -0
  516. package/lib-commonjs/components/VerticalBarChart/{index.js.map → index.cjs.map} +1 -1
  517. package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.cjs.map +1 -0
  518. package/lib-commonjs/components/VerticalBarChart/{useVerticalBarChartStyles.styles.raw.js → useVerticalBarChartStyles.styles.raw.cjs} +2 -2
  519. package/lib-commonjs/components/VerticalBarChart/{useVerticalBarChartStyles.styles.raw.js.map → useVerticalBarChartStyles.styles.raw.cjs.map} +1 -1
  520. package/lib-commonjs/components/VerticalStackedBarChart/{VerticalStackedBarChart.js → VerticalStackedBarChart.cjs} +4 -4
  521. package/lib-commonjs/components/VerticalStackedBarChart/{VerticalStackedBarChart.js.map → VerticalStackedBarChart.cjs.map} +1 -1
  522. package/lib-commonjs/components/VerticalStackedBarChart/index.cjs +8 -0
  523. package/lib-commonjs/components/VerticalStackedBarChart/{index.js.map → index.cjs.map} +1 -1
  524. package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.cjs.map +1 -0
  525. package/lib-commonjs/components/VerticalStackedBarChart/{useVerticalStackedBarChartStyles.styles.raw.js → useVerticalStackedBarChartStyles.styles.raw.cjs} +1 -1
  526. package/lib-commonjs/components/VerticalStackedBarChart/{useVerticalStackedBarChartStyles.styles.raw.js.map → useVerticalStackedBarChartStyles.styles.raw.cjs.map} +1 -1
  527. package/lib-commonjs/index.cjs +31 -0
  528. package/lib-commonjs/{index.js.map → index.cjs.map} +1 -1
  529. package/lib-commonjs/types/index.cjs +8 -0
  530. package/lib-commonjs/types/{index.js.map → index.cjs.map} +1 -1
  531. package/lib-commonjs/utilities/{ChartTitle.js → ChartTitle.cjs} +3 -3
  532. package/lib-commonjs/utilities/{ChartTitle.js.map → ChartTitle.cjs.map} +1 -1
  533. package/lib-commonjs/utilities/{Common.styles.raw.js → Common.styles.cjs} +1 -1
  534. package/lib-commonjs/utilities/Common.styles.cjs.map +1 -0
  535. package/lib-commonjs/utilities/{Common.styles.js → Common.styles.raw.cjs} +1 -1
  536. package/lib-commonjs/utilities/{Common.styles.raw.js.map → Common.styles.raw.cjs.map} +1 -1
  537. package/lib-commonjs/utilities/{FocusableTooltipText.js → FocusableTooltipText.cjs} +3 -3
  538. package/lib-commonjs/utilities/{FocusableTooltipText.js.map → FocusableTooltipText.cjs.map} +1 -1
  539. package/lib-commonjs/utilities/{SVGTooltipText.js → SVGTooltipText.cjs} +2 -2
  540. package/lib-commonjs/utilities/{SVGTooltipText.js.map → SVGTooltipText.cjs.map} +1 -1
  541. package/lib-commonjs/utilities/{async-utils.js → async-utils.cjs} +1 -1
  542. package/lib-commonjs/utilities/{async-utils.js.map → async-utils.cjs.map} +1 -1
  543. package/lib-commonjs/utilities/{hooks.js → hooks.cjs} +2 -2
  544. package/lib-commonjs/utilities/{hooks.js.map → hooks.cjs.map} +1 -1
  545. package/lib-commonjs/utilities/{image-export-utils.js → image-export-utils.cjs} +2 -2
  546. package/lib-commonjs/utilities/{image-export-utils.js.map → image-export-utils.cjs.map} +1 -1
  547. package/lib-commonjs/utilities/index.cjs +10 -0
  548. package/lib-commonjs/utilities/{index.js.map → index.cjs.map} +1 -1
  549. package/lib-commonjs/utilities/{test-data.js → test-data.cjs} +1 -1
  550. package/lib-commonjs/utilities/{test-data.js.map → test-data.cjs.map} +1 -1
  551. package/package.json +21 -15
  552. package/lib-commonjs/GanttChart.js +0 -6
  553. package/lib-commonjs/GaugeChart.js +0 -6
  554. package/lib-commonjs/HorizontalBarChart.js +0 -6
  555. package/lib-commonjs/LineChart.js +0 -6
  556. package/lib-commonjs/PolarChart.js +0 -6
  557. package/lib-commonjs/Popover.js +0 -6
  558. package/lib-commonjs/ResponsiveContainer.js +0 -6
  559. package/lib-commonjs/ScatterChart.js +0 -6
  560. package/lib-commonjs/Sparkline.js +0 -6
  561. package/lib-commonjs/VerticalBarChart.js +0 -6
  562. package/lib-commonjs/components/AnnotationOnlyChart/index.js +0 -7
  563. package/lib-commonjs/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.js.map +0 -1
  564. package/lib-commonjs/components/AreaChart/index.js +0 -8
  565. package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.js.map +0 -1
  566. package/lib-commonjs/components/ChartTable/index.js +0 -8
  567. package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.js.map +0 -1
  568. package/lib-commonjs/components/CommonComponents/Annotations/index.js +0 -7
  569. package/lib-commonjs/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.js.map +0 -1
  570. package/lib-commonjs/components/CommonComponents/index.js +0 -11
  571. package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.js.map +0 -1
  572. package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.js.map +0 -1
  573. package/lib-commonjs/components/DonutChart/Arc/index.js +0 -7
  574. package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.js.map +0 -1
  575. package/lib-commonjs/components/DonutChart/Pie/index.js +0 -7
  576. package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.js.map +0 -1
  577. package/lib-commonjs/components/DonutChart/index.js +0 -8
  578. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.js.map +0 -1
  579. package/lib-commonjs/components/FunnelChart/index.js +0 -7
  580. package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.js.map +0 -1
  581. package/lib-commonjs/components/GanttChart/index.js +0 -7
  582. package/lib-commonjs/components/GaugeChart/index.js +0 -8
  583. package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.js.map +0 -1
  584. package/lib-commonjs/components/GroupedVerticalBarChart/index.js +0 -8
  585. package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js.map +0 -1
  586. package/lib-commonjs/components/HeatMapChart/index.js +0 -8
  587. package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.js.map +0 -1
  588. package/lib-commonjs/components/HorizontalBarChart/index.js +0 -8
  589. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js.map +0 -1
  590. package/lib-commonjs/components/HorizontalBarChartWithAxis/index.js +0 -8
  591. package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js.map +0 -1
  592. package/lib-commonjs/components/Legends/index.js +0 -8
  593. package/lib-commonjs/components/Legends/useLegendsStyles.styles.js.map +0 -1
  594. package/lib-commonjs/components/LineChart/index.js +0 -9
  595. package/lib-commonjs/components/LineChart/useLineChartStyles.styles.js.map +0 -1
  596. package/lib-commonjs/components/PolarChart/index.js +0 -7
  597. package/lib-commonjs/components/PolarChart/usePolarChartStyles.styles.js.map +0 -1
  598. package/lib-commonjs/components/ResponsiveContainer/index.js +0 -8
  599. package/lib-commonjs/components/ResponsiveContainer/useResponsiveChildStyles.styles.js.map +0 -1
  600. package/lib-commonjs/components/SankeyChart/index.js +0 -8
  601. package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.js.map +0 -1
  602. package/lib-commonjs/components/ScatterChart/index.js +0 -8
  603. package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.js.map +0 -1
  604. package/lib-commonjs/components/Sparkline/index.js +0 -8
  605. package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.js.map +0 -1
  606. package/lib-commonjs/components/VegaDeclarativeChart/index.js +0 -6
  607. package/lib-commonjs/components/VerticalBarChart/index.js +0 -8
  608. package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.js.map +0 -1
  609. package/lib-commonjs/components/VerticalStackedBarChart/index.js +0 -8
  610. package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js.map +0 -1
  611. package/lib-commonjs/index.js +0 -31
  612. package/lib-commonjs/types/index.js +0 -8
  613. package/lib-commonjs/utilities/Common.styles.js.map +0 -1
  614. package/lib-commonjs/utilities/index.js +0 -10
  615. /package/lib-commonjs/components/AnnotationOnlyChart/{AnnotationOnlyChart.types.js → AnnotationOnlyChart.types.cjs} +0 -0
  616. /package/lib-commonjs/components/AnnotationOnlyChart/{AnnotationOnlyChart.types.js.map → AnnotationOnlyChart.types.cjs.map} +0 -0
  617. /package/lib-commonjs/components/AnnotationOnlyChart/{useAnnotationOnlyChartStyles.styles.js → useAnnotationOnlyChartStyles.styles.cjs} +0 -0
  618. /package/lib-commonjs/components/AnnotationOnlyChart/{useAnnotationOnlyChartStyles.styles.raw.js → useAnnotationOnlyChartStyles.styles.raw.cjs} +0 -0
  619. /package/lib-commonjs/components/AnnotationOnlyChart/{useAnnotationOnlyChartStyles.styles.raw.js.map → useAnnotationOnlyChartStyles.styles.raw.cjs.map} +0 -0
  620. /package/lib-commonjs/components/AreaChart/{AreaChart.types.js → AreaChart.types.cjs} +0 -0
  621. /package/lib-commonjs/components/AreaChart/{AreaChart.types.js.map → AreaChart.types.cjs.map} +0 -0
  622. /package/lib-commonjs/components/AreaChart/{useAreaChartStyles.styles.js → useAreaChartStyles.styles.cjs} +0 -0
  623. /package/lib-commonjs/components/ChartTable/{ChartTable.types.js → ChartTable.types.cjs} +0 -0
  624. /package/lib-commonjs/components/ChartTable/{ChartTable.types.js.map → ChartTable.types.cjs.map} +0 -0
  625. /package/lib-commonjs/components/ChartTable/{useChartTableStyles.styles.js → useChartTableStyles.styles.cjs} +0 -0
  626. /package/lib-commonjs/components/CommonComponents/Annotations/{ChartAnnotationLayer.types.js → ChartAnnotationLayer.types.cjs} +0 -0
  627. /package/lib-commonjs/components/CommonComponents/Annotations/{ChartAnnotationLayer.types.js.map → ChartAnnotationLayer.types.cjs.map} +0 -0
  628. /package/lib-commonjs/components/CommonComponents/Annotations/{useChartAnnotationLayer.styles.js → useChartAnnotationLayer.styles.cjs} +0 -0
  629. /package/lib-commonjs/components/CommonComponents/Annotations/{useChartAnnotationLayer.styles.raw.js → useChartAnnotationLayer.styles.raw.cjs} +0 -0
  630. /package/lib-commonjs/components/CommonComponents/Annotations/{useChartAnnotationLayer.styles.raw.js.map → useChartAnnotationLayer.styles.raw.cjs.map} +0 -0
  631. /package/lib-commonjs/components/CommonComponents/{CartesianChart.types.js → CartesianChart.types.cjs} +0 -0
  632. /package/lib-commonjs/components/CommonComponents/{CartesianChart.types.js.map → CartesianChart.types.cjs.map} +0 -0
  633. /package/lib-commonjs/components/CommonComponents/{ChartPopover.types.js → ChartPopover.types.cjs} +0 -0
  634. /package/lib-commonjs/components/CommonComponents/{ChartPopover.types.js.map → ChartPopover.types.cjs.map} +0 -0
  635. /package/lib-commonjs/components/CommonComponents/{useChartPopoverStyles.styles.js → useChartPopoverStyles.styles.cjs} +0 -0
  636. /package/lib-commonjs/components/CommonComponents/{useChartPopoverStyles.styles.raw.js → useChartPopoverStyles.styles.raw.cjs} +0 -0
  637. /package/lib-commonjs/components/CommonComponents/{useChartPopoverStyles.styles.raw.js.map → useChartPopoverStyles.styles.raw.cjs.map} +0 -0
  638. /package/lib-commonjs/components/DonutChart/Arc/{Arc.types.js → Arc.types.cjs} +0 -0
  639. /package/lib-commonjs/components/DonutChart/Arc/{Arc.types.js.map → Arc.types.cjs.map} +0 -0
  640. /package/lib-commonjs/components/DonutChart/Arc/{useArcStyles.styles.js → useArcStyles.styles.cjs} +0 -0
  641. /package/lib-commonjs/components/DonutChart/{DonutChart.types.js → DonutChart.types.cjs} +0 -0
  642. /package/lib-commonjs/components/DonutChart/{DonutChart.types.js.map → DonutChart.types.cjs.map} +0 -0
  643. /package/lib-commonjs/components/DonutChart/Pie/{Pie.types.js → Pie.types.cjs} +0 -0
  644. /package/lib-commonjs/components/DonutChart/Pie/{Pie.types.js.map → Pie.types.cjs.map} +0 -0
  645. /package/lib-commonjs/components/DonutChart/Pie/{usePieStyles.styles.js → usePieStyles.styles.cjs} +0 -0
  646. /package/lib-commonjs/components/DonutChart/Pie/{usePieStyles.styles.raw.js → usePieStyles.styles.raw.cjs} +0 -0
  647. /package/lib-commonjs/components/DonutChart/Pie/{usePieStyles.styles.raw.js.map → usePieStyles.styles.raw.cjs.map} +0 -0
  648. /package/lib-commonjs/components/DonutChart/{useDonutChartStyles.styles.js → useDonutChartStyles.styles.cjs} +0 -0
  649. /package/lib-commonjs/components/FunnelChart/{FunnelChart.types.js → FunnelChart.types.cjs} +0 -0
  650. /package/lib-commonjs/components/FunnelChart/{FunnelChart.types.js.map → FunnelChart.types.cjs.map} +0 -0
  651. /package/lib-commonjs/components/FunnelChart/{funnelGeometry.js → funnelGeometry.cjs} +0 -0
  652. /package/lib-commonjs/components/FunnelChart/{funnelGeometry.js.map → funnelGeometry.cjs.map} +0 -0
  653. /package/lib-commonjs/components/FunnelChart/{useFunnelChartStyles.styles.js → useFunnelChartStyles.styles.cjs} +0 -0
  654. /package/lib-commonjs/components/GanttChart/{GanttChart.types.js → GanttChart.types.cjs} +0 -0
  655. /package/lib-commonjs/components/GanttChart/{GanttChart.types.js.map → GanttChart.types.cjs.map} +0 -0
  656. /package/lib-commonjs/components/GanttChart/{useGanttChartStyles.styles.js → useGanttChartStyles.styles.cjs} +0 -0
  657. /package/lib-commonjs/components/GanttChart/{useGanttChartStyles.styles.js.map → useGanttChartStyles.styles.cjs.map} +0 -0
  658. /package/lib-commonjs/components/GanttChart/{useGanttChartStyles.styles.raw.js → useGanttChartStyles.styles.raw.cjs} +0 -0
  659. /package/lib-commonjs/components/GanttChart/{useGanttChartStyles.styles.raw.js.map → useGanttChartStyles.styles.raw.cjs.map} +0 -0
  660. /package/lib-commonjs/components/GaugeChart/{GaugeChart.types.js → GaugeChart.types.cjs} +0 -0
  661. /package/lib-commonjs/components/GaugeChart/{GaugeChart.types.js.map → GaugeChart.types.cjs.map} +0 -0
  662. /package/lib-commonjs/components/GaugeChart/{useGaugeChartStyles.styles.js → useGaugeChartStyles.styles.cjs} +0 -0
  663. /package/lib-commonjs/components/GroupedVerticalBarChart/{GroupedVerticalBarChart.types.js → GroupedVerticalBarChart.types.cjs} +0 -0
  664. /package/lib-commonjs/components/GroupedVerticalBarChart/{GroupedVerticalBarChart.types.js.map → GroupedVerticalBarChart.types.cjs.map} +0 -0
  665. /package/lib-commonjs/components/GroupedVerticalBarChart/{useGroupedVerticalBarChartStyles.styles.js → useGroupedVerticalBarChartStyles.styles.cjs} +0 -0
  666. /package/lib-commonjs/components/HeatMapChart/{HeatMapChart.types.js → HeatMapChart.types.cjs} +0 -0
  667. /package/lib-commonjs/components/HeatMapChart/{HeatMapChart.types.js.map → HeatMapChart.types.cjs.map} +0 -0
  668. /package/lib-commonjs/components/HeatMapChart/{useHeatMapChartStyles.styles.js → useHeatMapChartStyles.styles.cjs} +0 -0
  669. /package/lib-commonjs/components/HeatMapChart/{useHeatMapChartStyles.styles.raw.js → useHeatMapChartStyles.styles.raw.cjs} +0 -0
  670. /package/lib-commonjs/components/HeatMapChart/{useHeatMapChartStyles.styles.raw.js.map → useHeatMapChartStyles.styles.raw.cjs.map} +0 -0
  671. /package/lib-commonjs/components/HorizontalBarChart/{HorizontalBarChart.types.js → HorizontalBarChart.types.cjs} +0 -0
  672. /package/lib-commonjs/components/HorizontalBarChart/{HorizontalBarChart.types.js.map → HorizontalBarChart.types.cjs.map} +0 -0
  673. /package/lib-commonjs/components/HorizontalBarChartWithAxis/{HorizontalBarChartWithAxis.types.js → HorizontalBarChartWithAxis.types.cjs} +0 -0
  674. /package/lib-commonjs/components/HorizontalBarChartWithAxis/{HorizontalBarChartWithAxis.types.js.map → HorizontalBarChartWithAxis.types.cjs.map} +0 -0
  675. /package/lib-commonjs/components/HorizontalBarChartWithAxis/{useHorizontalBarChartWithAxisStyles.styles.js → useHorizontalBarChartWithAxisStyles.styles.cjs} +0 -0
  676. /package/lib-commonjs/components/Legends/{Legends.types.js → Legends.types.cjs} +0 -0
  677. /package/lib-commonjs/components/Legends/{Legends.types.js.map → Legends.types.cjs.map} +0 -0
  678. /package/lib-commonjs/components/Legends/{OverflowMenu.js → OverflowMenu.cjs} +0 -0
  679. /package/lib-commonjs/components/Legends/{OverflowMenu.js.map → OverflowMenu.cjs.map} +0 -0
  680. /package/lib-commonjs/components/Legends/{useLegendsStyles.styles.js → useLegendsStyles.styles.cjs} +0 -0
  681. /package/lib-commonjs/components/LineChart/{LineChart.types.js → LineChart.types.cjs} +0 -0
  682. /package/lib-commonjs/components/LineChart/{LineChart.types.js.map → LineChart.types.cjs.map} +0 -0
  683. /package/lib-commonjs/components/LineChart/{useLineChartStyles.styles.js → useLineChartStyles.styles.cjs} +0 -0
  684. /package/lib-commonjs/components/PolarChart/{PolarChart.types.js → PolarChart.types.cjs} +0 -0
  685. /package/lib-commonjs/components/PolarChart/{PolarChart.types.js.map → PolarChart.types.cjs.map} +0 -0
  686. /package/lib-commonjs/components/PolarChart/{usePolarChartStyles.styles.js → usePolarChartStyles.styles.cjs} +0 -0
  687. /package/lib-commonjs/components/PolarChart/{usePolarChartStyles.styles.raw.js → usePolarChartStyles.styles.raw.cjs} +0 -0
  688. /package/lib-commonjs/components/PolarChart/{usePolarChartStyles.styles.raw.js.map → usePolarChartStyles.styles.raw.cjs.map} +0 -0
  689. /package/lib-commonjs/components/ResponsiveContainer/{ResponsiveContainer.types.js → ResponsiveContainer.types.cjs} +0 -0
  690. /package/lib-commonjs/components/ResponsiveContainer/{ResponsiveContainer.types.js.map → ResponsiveContainer.types.cjs.map} +0 -0
  691. /package/lib-commonjs/components/ResponsiveContainer/{useResponsiveChildStyles.styles.js → useResponsiveChildStyles.styles.cjs} +0 -0
  692. /package/lib-commonjs/components/ResponsiveContainer/{useResponsiveChildStyles.styles.raw.js → useResponsiveChildStyles.styles.raw.cjs} +0 -0
  693. /package/lib-commonjs/components/ResponsiveContainer/{useResponsiveChildStyles.styles.raw.js.map → useResponsiveChildStyles.styles.raw.cjs.map} +0 -0
  694. /package/lib-commonjs/components/SankeyChart/{SankeyChart.types.js → SankeyChart.types.cjs} +0 -0
  695. /package/lib-commonjs/components/SankeyChart/{SankeyChart.types.js.map → SankeyChart.types.cjs.map} +0 -0
  696. /package/lib-commonjs/components/SankeyChart/{useSankeyChartStyles.styles.js → useSankeyChartStyles.styles.cjs} +0 -0
  697. /package/lib-commonjs/components/ScatterChart/{ScatterChart.types.js → ScatterChart.types.cjs} +0 -0
  698. /package/lib-commonjs/components/ScatterChart/{ScatterChart.types.js.map → ScatterChart.types.cjs.map} +0 -0
  699. /package/lib-commonjs/components/ScatterChart/{useScatterChartStyles.styles.js → useScatterChartStyles.styles.cjs} +0 -0
  700. /package/lib-commonjs/components/Sparkline/{Sparkline.types.js → Sparkline.types.cjs} +0 -0
  701. /package/lib-commonjs/components/Sparkline/{Sparkline.types.js.map → Sparkline.types.cjs.map} +0 -0
  702. /package/lib-commonjs/components/Sparkline/{useSparklineStyles.styles.js → useSparklineStyles.styles.cjs} +0 -0
  703. /package/lib-commonjs/components/Sparkline/{useSparklineStyles.styles.raw.js → useSparklineStyles.styles.raw.cjs} +0 -0
  704. /package/lib-commonjs/components/Sparkline/{useSparklineStyles.styles.raw.js.map → useSparklineStyles.styles.raw.cjs.map} +0 -0
  705. /package/lib-commonjs/components/VegaDeclarativeChart/{VegaDeclarativeChartHooks.js → VegaDeclarativeChartHooks.cjs} +0 -0
  706. /package/lib-commonjs/components/VegaDeclarativeChart/{VegaDeclarativeChartHooks.js.map → VegaDeclarativeChartHooks.cjs.map} +0 -0
  707. /package/lib-commonjs/components/VegaDeclarativeChart/{VegaLiteExpressionEvaluator.js → VegaLiteExpressionEvaluator.cjs} +0 -0
  708. /package/lib-commonjs/components/VegaDeclarativeChart/{VegaLiteExpressionEvaluator.js.map → VegaLiteExpressionEvaluator.cjs.map} +0 -0
  709. /package/lib-commonjs/components/VegaDeclarativeChart/{VegaLiteTypes.js → VegaLiteTypes.cjs} +0 -0
  710. /package/lib-commonjs/components/VegaDeclarativeChart/{VegaLiteTypes.js.map → VegaLiteTypes.cjs.map} +0 -0
  711. /package/lib-commonjs/components/VerticalBarChart/{VerticalBarChart.types.js → VerticalBarChart.types.cjs} +0 -0
  712. /package/lib-commonjs/components/VerticalBarChart/{VerticalBarChart.types.js.map → VerticalBarChart.types.cjs.map} +0 -0
  713. /package/lib-commonjs/components/VerticalBarChart/{useVerticalBarChartStyles.styles.js → useVerticalBarChartStyles.styles.cjs} +0 -0
  714. /package/lib-commonjs/components/VerticalStackedBarChart/{VerticalStackedBarChart.types.js → VerticalStackedBarChart.types.cjs} +0 -0
  715. /package/lib-commonjs/components/VerticalStackedBarChart/{VerticalStackedBarChart.types.js.map → VerticalStackedBarChart.types.cjs.map} +0 -0
  716. /package/lib-commonjs/components/VerticalStackedBarChart/{useVerticalStackedBarChartStyles.styles.js → useVerticalStackedBarChartStyles.styles.cjs} +0 -0
  717. /package/lib-commonjs/types/{ChartAnnotation.js → ChartAnnotation.cjs} +0 -0
  718. /package/lib-commonjs/types/{ChartAnnotation.js.map → ChartAnnotation.cjs.map} +0 -0
  719. /package/lib-commonjs/types/{DataPoint.js → DataPoint.cjs} +0 -0
  720. /package/lib-commonjs/types/{DataPoint.js.map → DataPoint.cjs.map} +0 -0
  721. /package/lib-commonjs/types/{EventAnnotation.js → EventAnnotation.cjs} +0 -0
  722. /package/lib-commonjs/types/{EventAnnotation.js.map → EventAnnotation.cjs.map} +0 -0
  723. /package/lib-commonjs/types/{LegendDataItem.js → LegendDataItem.cjs} +0 -0
  724. /package/lib-commonjs/types/{LegendDataItem.js.map → LegendDataItem.cjs.map} +0 -0
  725. /package/lib-commonjs/utilities/{KeyCodes.js → KeyCodes.cjs} +0 -0
  726. /package/lib-commonjs/utilities/{KeyCodes.js.map → KeyCodes.cjs.map} +0 -0
  727. /package/lib-commonjs/utilities/{colors.js → colors.cjs} +0 -0
  728. /package/lib-commonjs/utilities/{colors.js.map → colors.cjs.map} +0 -0
  729. /package/lib-commonjs/utilities/{getWindow.js → getWindow.cjs} +0 -0
  730. /package/lib-commonjs/utilities/{getWindow.js.map → getWindow.cjs.map} +0 -0
  731. /package/lib-commonjs/utilities/{overflow-utils.js → overflow-utils.cjs} +0 -0
  732. /package/lib-commonjs/utilities/{overflow-utils.js.map → overflow-utils.cjs.map} +0 -0
  733. /package/lib-commonjs/utilities/{scatterpolar-utils.js → scatterpolar-utils.cjs} +0 -0
  734. /package/lib-commonjs/utilities/{scatterpolar-utils.js.map → scatterpolar-utils.cjs.map} +0 -0
  735. /package/lib-commonjs/utilities/{string.js → string.cjs} +0 -0
  736. /package/lib-commonjs/utilities/{string.js.map → string.cjs.map} +0 -0
  737. /package/lib-commonjs/utilities/{utilities.js → utilities.cjs} +0 -0
  738. /package/lib-commonjs/utilities/{utilities.js.map → utilities.cjs.map} +0 -0
  739. /package/lib-commonjs/utilities/{vbc-utils.js → vbc-utils.cjs} +0 -0
  740. /package/lib-commonjs/utilities/{vbc-utils.js.map → vbc-utils.cjs.map} +0 -0
@@ -1,15 +1,15 @@
1
1
  'use client';
2
- import * as React from 'react';
3
- import { useId } from '@fluentui/react-utilities';
4
- import { useRtl, ChartTitle, CHART_TITLE_PADDING } from '../../utilities/index';
5
- import { Legends } from '../Legends/index';
6
- import { useArrowNavigationGroup } from '@fluentui/react-tabster';
7
- import { ChartPopover } from '../CommonComponents/ChartPopover';
8
- import { formatToLocaleString } from '@fluentui/chart-utilities';
9
- import { getContrastTextColor } from '../../utilities/colors';
10
- import { useFunnelChartStyles } from './useFunnelChartStyles.styles';
11
- import { getHorizontalFunnelSegmentGeometry, getVerticalFunnelSegmentGeometry, getSegmentTextProps, getStackedHorizontalFunnelSegmentGeometry, getStackedVerticalFunnelSegmentGeometry } from './funnelGeometry';
12
- import { useImageExport } from '../../utilities/hooks';
2
+ import * as React from "react";
3
+ import { useId } from "@fluentui/react-utilities";
4
+ import { useRtl, ChartTitle, CHART_TITLE_PADDING } from "../../utilities/index.js";
5
+ import { Legends } from "../Legends/index.js";
6
+ import { useArrowNavigationGroup } from "@fluentui/react-tabster";
7
+ import { ChartPopover } from "../CommonComponents/ChartPopover.js";
8
+ import { formatToLocaleString } from "@fluentui/chart-utilities";
9
+ import { getContrastTextColor } from "../../utilities/colors.js";
10
+ import { useFunnelChartStyles } from "./useFunnelChartStyles.styles.js";
11
+ import { getHorizontalFunnelSegmentGeometry, getVerticalFunnelSegmentGeometry, getSegmentTextProps, getStackedHorizontalFunnelSegmentGeometry, getStackedVerticalFunnelSegmentGeometry } from "./funnelGeometry.js";
12
+ import { useImageExport } from "../../utilities/hooks.js";
13
13
  export const FunnelChart = /*#__PURE__*/ React.forwardRef(({ orientation = 'vertical', ...restProps }, forwardedRef)=>{
14
14
  var _props_legendProps, _props_titleStyles_titleFont, _props_titleStyles;
15
15
  const props = {
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/FunnelChart/FunnelChart.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useId } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport { useRtl, ChartTitle, CHART_TITLE_PADDING } from '../../utilities/index';\nimport type { FunnelChartDataPoint, FunnelChartProps } from './FunnelChart.types';\nimport type { Legend } from '../Legends/index';\nimport { Legends } from '../Legends/index';\nimport { useArrowNavigationGroup } from '@fluentui/react-tabster';\nimport { ChartPopover } from '../CommonComponents/ChartPopover';\nimport { formatToLocaleString } from '@fluentui/chart-utilities';\nimport { getContrastTextColor } from '../../utilities/colors';\nimport { useFunnelChartStyles } from './useFunnelChartStyles.styles';\nimport {\n getHorizontalFunnelSegmentGeometry,\n getVerticalFunnelSegmentGeometry,\n getSegmentTextProps,\n getStackedHorizontalFunnelSegmentGeometry,\n getStackedVerticalFunnelSegmentGeometry,\n} from './funnelGeometry';\nimport type { ChartPopoverProps } from '../../index';\nimport { useImageExport } from '../../utilities/hooks';\n\nexport const FunnelChart: React.FunctionComponent<FunnelChartProps> = React.forwardRef<\n HTMLDivElement,\n FunnelChartProps\n>(({ orientation = 'vertical', ...restProps }, forwardedRef) => {\n const props = { orientation, ...restProps };\n const _emptyChartId: string = useId('_FunnelChart_empty');\n const isRTL = useRtl();\n\n const [hoveredStage, setHoveredStage] = React.useState<string | null>(null);\n const [calloutData, setCalloutData] = React.useState<FunnelChartDataPoint | null>(null);\n const [selectedLegends, setSelectedLegends] = React.useState<string[]>([]);\n const [isPopoverOpen, setPopoverOpen] = React.useState(false);\n const [refSelected, setRefSelected] = React.useState<HTMLElement | null>(null);\n const isStacked = isStackedFunnelData(props.data);\n const { chartContainerRef, legendsRef: _legendsRef } = useImageExport(props.componentRef, props.hideLegend, false);\n\n React.useEffect(() => {\n if (props.legendProps?.selectedLegends) {\n setSelectedLegends(props.legendProps.selectedLegends);\n }\n }, [props.legendProps?.selectedLegends]);\n\n function _handleHover(\n data: FunnelChartDataPoint,\n mouseEvent: React.MouseEvent<SVGElement>,\n targetElement?: HTMLElement | null,\n ) {\n mouseEvent?.persist();\n setCalloutData(data);\n setRefSelected(targetElement!);\n setPopoverOpen(true);\n }\n\n function _handleFocus(\n data: FunnelChartDataPoint,\n focusEvent: React.FocusEvent<SVGPathElement>,\n targetElement?: HTMLElement | null,\n ) {\n focusEvent?.persist();\n setCalloutData(data);\n setRefSelected(targetElement!);\n setPopoverOpen(true);\n }\n\n function _handleStackedHover(\n stage: string,\n subValue: { category: string; value: number; color: string },\n mouseEvent: React.MouseEvent<SVGElement>,\n targetElement?: HTMLElement | null,\n ) {\n mouseEvent?.persist();\n setCalloutData({\n stage,\n value: subValue.value,\n color: subValue.color,\n category: subValue.category,\n } as FunnelChartDataPoint);\n setRefSelected(targetElement!);\n setPopoverOpen(true);\n }\n\n function _handleStackedFocus(\n stage: string,\n subValue: { category: string; value: number; color: string },\n focusEvent: React.FocusEvent<SVGPathElement>,\n targetElement?: HTMLElement | null,\n ) {\n focusEvent?.persist();\n setCalloutData({\n stage,\n value: subValue.value,\n color: subValue.color,\n category: subValue.category,\n } as FunnelChartDataPoint);\n setRefSelected(targetElement!);\n setPopoverOpen(true);\n }\n\n function _handleMouseOut() {\n setHoveredStage(null);\n setPopoverOpen(false);\n setCalloutData(null);\n }\n\n function _onLegendSelectionChange(\n legendsSelected: string[],\n event: React.MouseEvent<HTMLButtonElement>,\n currentLegend?: Legend,\n ): void {\n if (props.legendProps?.canSelectMultipleLegends) {\n setSelectedLegends(legendsSelected);\n } else {\n setSelectedLegends(legendsSelected.slice(-1));\n }\n\n if (props.legendProps?.onChange) {\n props.legendProps.onChange(legendsSelected, event, currentLegend);\n }\n }\n\n const _onLegendSelectionChangeCallback = React.useCallback(_onLegendSelectionChange, [props.legendProps]);\n\n function getHighlightedLegend(): string[] {\n return selectedLegends.length > 0 ? selectedLegends : hoveredStage ? [hoveredStage] : [];\n }\n\n function legendHighlighted(legend: string): boolean {\n return getHighlightedLegend().includes(legend);\n }\n\n function noLegendHighlighted(): boolean {\n return getHighlightedLegend().length === 0;\n }\n\n function _getAriaLabel(\n data: FunnelChartDataPoint | { stage: string; subValue: { category: string; value: number; color: string } },\n ): string {\n if ('subValue' in data) {\n // Stacked funnel segment\n const formattedValue = formatToLocaleString(data.subValue.value.toString(), props.culture);\n return `${data.stage}, ${data.subValue.category}, ${formattedValue}.`;\n } else {\n // Non-stacked funnel segment\n const formattedValue = formatToLocaleString((data.value ?? 0).toString(), props.culture);\n return `${data.stage}, ${formattedValue}.`;\n }\n }\n\n function _getEventHandlerProps(\n data: FunnelChartDataPoint | { stage: string; subValue: { category: string; value: number; color: string } },\n opacity?: number,\n segmentId?: string,\n ) {\n const targetElement = document.getElementById(segmentId!);\n if ('subValue' in data) {\n return {\n culture: props.culture,\n onMouseOver:\n opacity == 1\n ? (event: React.MouseEvent<SVGElement>) =>\n _handleStackedHover(data.stage, data.subValue, event, targetElement)\n : undefined,\n onMouseMove:\n opacity == 1\n ? (event: React.MouseEvent<SVGElement>) =>\n _handleStackedHover(data.stage, data.subValue, event, targetElement)\n : undefined,\n onFocus: (event: React.FocusEvent<SVGPathElement>) =>\n _handleStackedFocus(data.stage, data.subValue, event, targetElement),\n onBlur: () => _handleMouseOut(),\n onMouseOut: () => _handleMouseOut(),\n };\n } else {\n return {\n culture: props.culture,\n onMouseOver:\n opacity == 1 ? (event: React.MouseEvent<SVGElement>) => _handleHover(data, event, targetElement) : undefined,\n onMouseMove:\n opacity == 1 ? (event: React.MouseEvent<SVGElement>) => _handleHover(data, event, targetElement) : undefined,\n onFocus: (event: React.FocusEvent<SVGPathElement>) => _handleFocus(data, event, targetElement),\n onBlur: () => _handleMouseOut(),\n onMouseOut: () => _handleMouseOut(),\n };\n }\n }\n\n function _renderSegmentText({\n show,\n x,\n y,\n value,\n textColor,\n opacity,\n }: {\n show: boolean;\n x: number;\n y: number;\n value: number;\n textColor: string;\n opacity: number;\n }) {\n if (!show) {\n return null;\n }\n\n const textElement = (\n <text\n x={isRTL ? funnelWidth - x : x}\n y={y}\n opacity={opacity}\n textAnchor=\"middle\"\n alignmentBaseline=\"middle\"\n fill={textColor}\n >\n {formatToLocaleString(value.toString(), props.culture) as React.ReactNode}\n </text>\n );\n\n if (isRTL) {\n return <g transform={`scale(-1,1) translate(${-funnelWidth},0)`}>{textElement}</g>;\n }\n return textElement;\n }\n\n function _renderFunnelSegment({\n key,\n pathD,\n fill,\n opacity,\n textProps,\n data,\n tabIndex,\n }: {\n key: string | number;\n pathD: string;\n fill: string;\n opacity: number;\n textProps?: {\n show: boolean;\n x: number;\n y: number;\n value: number;\n };\n data: FunnelChartDataPoint | { stage: string; subValue: { category: string; value: number; color: string } };\n tabIndex?: number;\n }) {\n const segmentId = `funnel-segment-${key}`;\n const eventHandlers = _getEventHandlerProps(data, opacity, segmentId);\n const textColor = getContrastTextColor(fill);\n return (\n <g key={key} role=\"presentation\">\n <path\n id={segmentId}\n d={pathD}\n fill={fill}\n opacity={opacity}\n {...eventHandlers}\n tabIndex={tabIndex}\n role=\"option\"\n aria-label={_getAriaLabel(data)}\n />\n {textProps && (\n <g {...eventHandlers} aria-hidden={true}>\n {_renderSegmentText({ ...textProps, textColor, opacity })}\n </g>\n )}\n </g>\n );\n }\n\n function _createFunnel(containerHeight: number, containerWidth: number): JSXElement[] {\n const { data } = props;\n const funnelWidth = containerWidth;\n const funnelHeight = containerHeight * 0.8;\n\n return data.map((d, i) => {\n const geometryProps =\n props.orientation === 'vertical'\n ? getVerticalFunnelSegmentGeometry({ d, i, data, funnelWidth, funnelHeight, isRTL })\n : getHorizontalFunnelSegmentGeometry({ d, i, data, funnelWidth, funnelHeight, isRTL });\n\n const { pathD, textX, textY, availableWidth } = geometryProps;\n const minTextWidth = 16;\n const eventHandlerProps = _getEventHandlerProps(d);\n const textProps = getSegmentTextProps({\n availableWidth,\n minTextWidth,\n textX,\n textY,\n value: d.value!,\n ...eventHandlerProps,\n });\n\n return _renderFunnelSegment({\n key: i,\n pathD,\n fill: d.color!,\n opacity: legendHighlighted(d.stage as string) || noLegendHighlighted() ? 1 : 0.1,\n textProps,\n data: d,\n tabIndex: legendHighlighted(d.stage as string) || noLegendHighlighted() ? 0 : undefined,\n });\n });\n }\n\n function isStackedFunnelData(data: FunnelChartDataPoint[]): boolean {\n return Array.isArray(data) && data.every(stage => Array.isArray(stage.subValues));\n }\n\n function _renderStackedSegment(\n stage: FunnelChartDataPoint,\n subValue: { value: number; color: string; category: string },\n stageIndex: number,\n subValueIndex: number,\n geometryParams: {\n stages: FunnelChartDataPoint[];\n totals: number[];\n maxTotal: number;\n funnelWidth: number;\n funnelHeight: number;\n isRTL: boolean;\n },\n ): JSXElement {\n // Ensure stages have subValues for geometry functions\n const stagesWithSubValues = geometryParams.stages.map(s => ({\n ...s,\n subValues: s.subValues || [],\n }));\n const geom =\n props.orientation === 'vertical'\n ? getStackedVerticalFunnelSegmentGeometry({\n ...geometryParams,\n stages: stagesWithSubValues,\n i: stageIndex,\n k: subValueIndex,\n })\n : getStackedHorizontalFunnelSegmentGeometry({\n ...geometryParams,\n stages: stagesWithSubValues,\n i: stageIndex,\n k: subValueIndex,\n });\n\n const minTextWidth = 16;\n const eventHandlerProps = _getEventHandlerProps({ stage: stage.stage as string, subValue });\n const textProps = getSegmentTextProps({\n availableWidth: geom.availableWidth,\n minTextWidth,\n textX: geom.textX,\n textY: geom.textY,\n value: subValue.value,\n ...eventHandlerProps,\n });\n\n return _renderFunnelSegment({\n key: `${stageIndex}-${subValueIndex}`,\n pathD: geom.pathD,\n fill: subValue.color,\n opacity:\n (isStackedFunnelData(props.data) && legendHighlighted(subValue.category)) || noLegendHighlighted() ? 1 : 0.1,\n textProps,\n data: { stage: stage.stage as string, subValue },\n tabIndex: legendHighlighted(subValue.category) || noLegendHighlighted() ? 0 : undefined,\n });\n }\n\n function _createStackedFunnel(containerHeight: number, containerWidth: number): JSXElement[] {\n const { data } = props;\n\n const stages = data;\n const totals = stages.map(s => s?.subValues?.reduce((sum, subValue) => sum + subValue.value, 0) ?? 0);\n const maxTotal = Math.max(...totals);\n\n const funnelWidth = containerWidth;\n const funnelHeight = containerHeight * 0.8;\n\n const paths: JSXElement[] = [];\n\n const geometryParams = {\n stages,\n totals,\n maxTotal,\n funnelWidth,\n funnelHeight,\n isRTL,\n };\n\n for (let i = 0; i < stages.length; i++) {\n const cur = stages[i];\n for (let k = 0; k < (cur.subValues ?? []).length; k++) {\n const v = cur.subValues?.[k];\n if (!v) {\n continue;\n }\n paths.push(_renderStackedSegment(cur, v, i, k, geometryParams));\n }\n }\n return paths;\n }\n\n function _renderLegends(): JSXElement {\n if (props.hideLegend) {\n return <></>;\n }\n let legends: Legend[];\n\n if (isStacked) {\n // Collect unique categories and their color\n const categoryMap: Record<string, string> = {};\n props.data.forEach((stage: FunnelChartDataPoint) => {\n (stage.subValues || []).forEach(sub => {\n if (!(sub.category in categoryMap)) {\n categoryMap[sub.category] = sub.color;\n }\n });\n });\n legends = Object.entries(categoryMap).map(([category, color]) => ({\n title: category,\n color,\n hoverAction: () => setHoveredStage(category),\n onMouseOutAction: () => setHoveredStage(null),\n }));\n } else {\n legends = props.data.map((d: FunnelChartDataPoint) => ({\n title: d.stage as string,\n color: d.color!,\n hoverAction: () => setHoveredStage(d.stage as string),\n onMouseOutAction: () => setHoveredStage(null),\n }));\n }\n\n return (\n <div style={{ display: 'flex', justifyContent: 'center' }}>\n <Legends\n legends={legends}\n centerLegends={true}\n onChange={_onLegendSelectionChangeCallback}\n {...props.legendProps}\n legendRef={_legendsRef}\n />\n </div>\n );\n }\n\n function _isChartEmpty(): boolean {\n return !(props.data && props.data.length > 0);\n }\n\n const classes = useFunnelChartStyles(props);\n\n const calloutProps: ChartPopoverProps = {\n ...props.calloutProps,\n color: calloutData?.color,\n hoverXValue: calloutData?.stage,\n YValue: calloutData?.value,\n };\n\n const width = props.width || 350;\n const height = props.height || 500;\n\n const titleHeight = props.chartTitle\n ? Math.max(\n (typeof props.titleStyles?.titleFont?.size === 'number' ? props.titleStyles.titleFont.size : 13) +\n CHART_TITLE_PADDING,\n 40,\n )\n : 40;\n const funnelMarginTop = titleHeight;\n const funnelWidth = width * 0.8;\n const funnelOffsetX = (width - funnelWidth) / 2;\n const arrowAttributes = useArrowNavigationGroup({ circular: true, axis: 'horizontal' });\n const segmentCount = isStacked\n ? props.data.reduce((count, stage) => count + (stage.subValues?.length ?? 0), 0)\n : props.data.length;\n\n return !_isChartEmpty() ? (\n <div ref={chartContainerRef} className={classes.root} style={{ width, height }}>\n <svg\n width={width}\n height={height}\n className={classes.chart}\n {...arrowAttributes}\n role={'region'}\n aria-label={props.chartTitle}\n >\n {!props.hideLegend && props.chartTitle && (\n <ChartTitle\n title={props.chartTitle}\n x={width / 2}\n maxWidth={width - 20}\n className={classes.chartTitle}\n titleStyles={props.titleStyles}\n tooltipClassName={classes.svgTooltip}\n />\n )}\n <g\n role=\"listbox\"\n aria-label={`Funnel chart with ${segmentCount} segments`}\n transform={\n isRTL\n ? `translate(${funnelOffsetX + funnelWidth}, ${funnelMarginTop}) scale(-1,1)`\n : `translate(${funnelOffsetX}, ${funnelMarginTop})`\n }\n >\n {isStacked\n ? _createStackedFunnel(height - funnelMarginTop, funnelWidth)\n : _createFunnel(height - funnelMarginTop, funnelWidth)}\n </g>\n </svg>\n {isPopoverOpen && (\n <ChartPopover\n {...props.calloutProps}\n XValue={calloutProps?.hoverXValue as string}\n yCalloutValue={calloutProps?.YValue as string}\n culture={props.culture}\n positioning={{\n target: refSelected,\n }}\n isPopoverOpen={isPopoverOpen}\n color={calloutProps?.color}\n isCartesian={false}\n />\n )}\n {_renderLegends()}\n </div>\n ) : (\n <div id={_emptyChartId} role={'alert'} style={{ opacity: '0' }} aria-label={'Graph has no data to display'} />\n );\n});\nFunnelChart.displayName = 'FunnelChart';\n"],"names":["React","useId","useRtl","ChartTitle","CHART_TITLE_PADDING","Legends","useArrowNavigationGroup","ChartPopover","formatToLocaleString","getContrastTextColor","useFunnelChartStyles","getHorizontalFunnelSegmentGeometry","getVerticalFunnelSegmentGeometry","getSegmentTextProps","getStackedHorizontalFunnelSegmentGeometry","getStackedVerticalFunnelSegmentGeometry","useImageExport","FunnelChart","forwardRef","orientation","restProps","forwardedRef","props","_emptyChartId","isRTL","hoveredStage","setHoveredStage","useState","calloutData","setCalloutData","selectedLegends","setSelectedLegends","isPopoverOpen","setPopoverOpen","refSelected","setRefSelected","isStacked","isStackedFunnelData","data","chartContainerRef","legendsRef","_legendsRef","componentRef","hideLegend","useEffect","legendProps","_handleHover","mouseEvent","targetElement","persist","_handleFocus","focusEvent","_handleStackedHover","stage","subValue","value","color","category","_handleStackedFocus","_handleMouseOut","_onLegendSelectionChange","legendsSelected","event","currentLegend","canSelectMultipleLegends","slice","onChange","_onLegendSelectionChangeCallback","useCallback","getHighlightedLegend","length","legendHighlighted","legend","includes","noLegendHighlighted","_getAriaLabel","formattedValue","toString","culture","_getEventHandlerProps","opacity","segmentId","document","getElementById","onMouseOver","undefined","onMouseMove","onFocus","onBlur","onMouseOut","_renderSegmentText","show","x","y","textColor","textElement","text","funnelWidth","textAnchor","alignmentBaseline","fill","g","transform","_renderFunnelSegment","key","pathD","textProps","tabIndex","eventHandlers","role","path","id","d","aria-label","aria-hidden","_createFunnel","containerHeight","containerWidth","funnelHeight","map","i","geometryProps","textX","textY","availableWidth","minTextWidth","eventHandlerProps","Array","isArray","every","subValues","_renderStackedSegment","stageIndex","subValueIndex","geometryParams","stagesWithSubValues","stages","s","geom","k","_createStackedFunnel","totals","reduce","sum","maxTotal","Math","max","paths","cur","v","push","_renderLegends","legends","categoryMap","forEach","sub","Object","entries","title","hoverAction","onMouseOutAction","div","style","display","justifyContent","centerLegends","legendRef","_isChartEmpty","classes","calloutProps","hoverXValue","YValue","width","height","titleHeight","chartTitle","titleStyles","titleFont","size","funnelMarginTop","funnelOffsetX","arrowAttributes","circular","axis","segmentCount","count","ref","className","root","svg","chart","maxWidth","tooltipClassName","svgTooltip","XValue","yCalloutValue","positioning","target","isCartesian","displayName"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,KAAK,QAAQ,4BAA4B;AAElD,SAASC,MAAM,EAAEC,UAAU,EAAEC,mBAAmB,QAAQ,wBAAwB;AAGhF,SAASC,OAAO,QAAQ,mBAAmB;AAC3C,SAASC,uBAAuB,QAAQ,0BAA0B;AAClE,SAASC,YAAY,QAAQ,mCAAmC;AAChE,SAAS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C5F;QACCQ,MAAK;QACLI,cAAY,CAAC,kBAAkB,EAAEuE,aAAa,SAAS,CAAC;QACxDlF,WACE9E,QACI,CAAC,UAAU,EAAE4J,gBAAgBnF,YAAY,EAAE,EAAEkF,gBAAgB,aAAa,CAAC,GAC3E,CAAC,UAAU,EAAEC,cAAc,EAAE,EAAED,gBAAgB,CAAC,CAAC;OAGtD/I,YACGwG,qBAAqBiC,SAASM,iBAAiBlF,eAC/CkB,cAAc0D,SAASM,iBAAiBlF,gBAG/CjE,+BACC,oBAACzB;QACE,GAAGe,MAAMmJ,YAAY;QACtByB,MAAM,EAAEzB,yBAAAA,mCAAAA,aAAcC,WAAW;QACjCyB,aAAa,EAAE1B,yBAAAA,mCAAAA,aAAcE,MAAM;QACnC7F,SAASxD,MAAMwD,OAAO;QACtBsH,aAAa;YACXC,QAAQnK;QACV;QACAF,eAAeA;QACfwB,KAAK,EAAEiH,yBAAAA,mCAAAA,aAAcjH,KAAK;QAC1B8I,aAAa;QAGhB/C,kCAGH,oBAACU;QAAIlD,IAAIxF;QAAesF,MAAM;QAASqD,OAAO;YAAElF,SAAS;QAAI;QAAGiC,cAAY;;AAEhF,GAAG;AACHhG,YAAYsL,WAAW,GAAG"}
1
+ {"version":3,"sources":["../src/components/FunnelChart/FunnelChart.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useId } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport { useRtl, ChartTitle, CHART_TITLE_PADDING } from '../../utilities/index';\nimport type { FunnelChartDataPoint, FunnelChartProps } from './FunnelChart.types';\nimport type { Legend } from '../Legends/index';\nimport { Legends } from '../Legends/index';\nimport { useArrowNavigationGroup } from '@fluentui/react-tabster';\nimport { ChartPopover } from '../CommonComponents/ChartPopover';\nimport { formatToLocaleString } from '@fluentui/chart-utilities';\nimport { getContrastTextColor } from '../../utilities/colors';\nimport { useFunnelChartStyles } from './useFunnelChartStyles.styles';\nimport {\n getHorizontalFunnelSegmentGeometry,\n getVerticalFunnelSegmentGeometry,\n getSegmentTextProps,\n getStackedHorizontalFunnelSegmentGeometry,\n getStackedVerticalFunnelSegmentGeometry,\n} from './funnelGeometry';\nimport type { ChartPopoverProps } from '../../index';\nimport { useImageExport } from '../../utilities/hooks';\n\nexport const FunnelChart: React.FunctionComponent<FunnelChartProps> = React.forwardRef<\n HTMLDivElement,\n FunnelChartProps\n>(({ orientation = 'vertical', ...restProps }, forwardedRef) => {\n const props = { orientation, ...restProps };\n const _emptyChartId: string = useId('_FunnelChart_empty');\n const isRTL = useRtl();\n\n const [hoveredStage, setHoveredStage] = React.useState<string | null>(null);\n const [calloutData, setCalloutData] = React.useState<FunnelChartDataPoint | null>(null);\n const [selectedLegends, setSelectedLegends] = React.useState<string[]>([]);\n const [isPopoverOpen, setPopoverOpen] = React.useState(false);\n const [refSelected, setRefSelected] = React.useState<HTMLElement | null>(null);\n const isStacked = isStackedFunnelData(props.data);\n const { chartContainerRef, legendsRef: _legendsRef } = useImageExport(props.componentRef, props.hideLegend, false);\n\n React.useEffect(() => {\n if (props.legendProps?.selectedLegends) {\n setSelectedLegends(props.legendProps.selectedLegends);\n }\n }, [props.legendProps?.selectedLegends]);\n\n function _handleHover(\n data: FunnelChartDataPoint,\n mouseEvent: React.MouseEvent<SVGElement>,\n targetElement?: HTMLElement | null,\n ) {\n mouseEvent?.persist();\n setCalloutData(data);\n setRefSelected(targetElement!);\n setPopoverOpen(true);\n }\n\n function _handleFocus(\n data: FunnelChartDataPoint,\n focusEvent: React.FocusEvent<SVGPathElement>,\n targetElement?: HTMLElement | null,\n ) {\n focusEvent?.persist();\n setCalloutData(data);\n setRefSelected(targetElement!);\n setPopoverOpen(true);\n }\n\n function _handleStackedHover(\n stage: string,\n subValue: { category: string; value: number; color: string },\n mouseEvent: React.MouseEvent<SVGElement>,\n targetElement?: HTMLElement | null,\n ) {\n mouseEvent?.persist();\n setCalloutData({\n stage,\n value: subValue.value,\n color: subValue.color,\n category: subValue.category,\n } as FunnelChartDataPoint);\n setRefSelected(targetElement!);\n setPopoverOpen(true);\n }\n\n function _handleStackedFocus(\n stage: string,\n subValue: { category: string; value: number; color: string },\n focusEvent: React.FocusEvent<SVGPathElement>,\n targetElement?: HTMLElement | null,\n ) {\n focusEvent?.persist();\n setCalloutData({\n stage,\n value: subValue.value,\n color: subValue.color,\n category: subValue.category,\n } as FunnelChartDataPoint);\n setRefSelected(targetElement!);\n setPopoverOpen(true);\n }\n\n function _handleMouseOut() {\n setHoveredStage(null);\n setPopoverOpen(false);\n setCalloutData(null);\n }\n\n function _onLegendSelectionChange(\n legendsSelected: string[],\n event: React.MouseEvent<HTMLButtonElement>,\n currentLegend?: Legend,\n ): void {\n if (props.legendProps?.canSelectMultipleLegends) {\n setSelectedLegends(legendsSelected);\n } else {\n setSelectedLegends(legendsSelected.slice(-1));\n }\n\n if (props.legendProps?.onChange) {\n props.legendProps.onChange(legendsSelected, event, currentLegend);\n }\n }\n\n const _onLegendSelectionChangeCallback = React.useCallback(_onLegendSelectionChange, [props.legendProps]);\n\n function getHighlightedLegend(): string[] {\n return selectedLegends.length > 0 ? selectedLegends : hoveredStage ? [hoveredStage] : [];\n }\n\n function legendHighlighted(legend: string): boolean {\n return getHighlightedLegend().includes(legend);\n }\n\n function noLegendHighlighted(): boolean {\n return getHighlightedLegend().length === 0;\n }\n\n function _getAriaLabel(\n data: FunnelChartDataPoint | { stage: string; subValue: { category: string; value: number; color: string } },\n ): string {\n if ('subValue' in data) {\n // Stacked funnel segment\n const formattedValue = formatToLocaleString(data.subValue.value.toString(), props.culture);\n return `${data.stage}, ${data.subValue.category}, ${formattedValue}.`;\n } else {\n // Non-stacked funnel segment\n const formattedValue = formatToLocaleString((data.value ?? 0).toString(), props.culture);\n return `${data.stage}, ${formattedValue}.`;\n }\n }\n\n function _getEventHandlerProps(\n data: FunnelChartDataPoint | { stage: string; subValue: { category: string; value: number; color: string } },\n opacity?: number,\n segmentId?: string,\n ) {\n const targetElement = document.getElementById(segmentId!);\n if ('subValue' in data) {\n return {\n culture: props.culture,\n onMouseOver:\n opacity == 1\n ? (event: React.MouseEvent<SVGElement>) =>\n _handleStackedHover(data.stage, data.subValue, event, targetElement)\n : undefined,\n onMouseMove:\n opacity == 1\n ? (event: React.MouseEvent<SVGElement>) =>\n _handleStackedHover(data.stage, data.subValue, event, targetElement)\n : undefined,\n onFocus: (event: React.FocusEvent<SVGPathElement>) =>\n _handleStackedFocus(data.stage, data.subValue, event, targetElement),\n onBlur: () => _handleMouseOut(),\n onMouseOut: () => _handleMouseOut(),\n };\n } else {\n return {\n culture: props.culture,\n onMouseOver:\n opacity == 1 ? (event: React.MouseEvent<SVGElement>) => _handleHover(data, event, targetElement) : undefined,\n onMouseMove:\n opacity == 1 ? (event: React.MouseEvent<SVGElement>) => _handleHover(data, event, targetElement) : undefined,\n onFocus: (event: React.FocusEvent<SVGPathElement>) => _handleFocus(data, event, targetElement),\n onBlur: () => _handleMouseOut(),\n onMouseOut: () => _handleMouseOut(),\n };\n }\n }\n\n function _renderSegmentText({\n show,\n x,\n y,\n value,\n textColor,\n opacity,\n }: {\n show: boolean;\n x: number;\n y: number;\n value: number;\n textColor: string;\n opacity: number;\n }) {\n if (!show) {\n return null;\n }\n\n const textElement = (\n <text\n x={isRTL ? funnelWidth - x : x}\n y={y}\n opacity={opacity}\n textAnchor=\"middle\"\n alignmentBaseline=\"middle\"\n fill={textColor}\n >\n {formatToLocaleString(value.toString(), props.culture) as React.ReactNode}\n </text>\n );\n\n if (isRTL) {\n return <g transform={`scale(-1,1) translate(${-funnelWidth},0)`}>{textElement}</g>;\n }\n return textElement;\n }\n\n function _renderFunnelSegment({\n key,\n pathD,\n fill,\n opacity,\n textProps,\n data,\n tabIndex,\n }: {\n key: string | number;\n pathD: string;\n fill: string;\n opacity: number;\n textProps?: {\n show: boolean;\n x: number;\n y: number;\n value: number;\n };\n data: FunnelChartDataPoint | { stage: string; subValue: { category: string; value: number; color: string } };\n tabIndex?: number;\n }) {\n const segmentId = `funnel-segment-${key}`;\n const eventHandlers = _getEventHandlerProps(data, opacity, segmentId);\n const textColor = getContrastTextColor(fill);\n return (\n <g key={key} role=\"presentation\">\n <path\n id={segmentId}\n d={pathD}\n fill={fill}\n opacity={opacity}\n {...eventHandlers}\n tabIndex={tabIndex}\n role=\"option\"\n aria-label={_getAriaLabel(data)}\n />\n {textProps && (\n <g {...eventHandlers} aria-hidden={true}>\n {_renderSegmentText({ ...textProps, textColor, opacity })}\n </g>\n )}\n </g>\n );\n }\n\n function _createFunnel(containerHeight: number, containerWidth: number): JSXElement[] {\n const { data } = props;\n const funnelWidth = containerWidth;\n const funnelHeight = containerHeight * 0.8;\n\n return data.map((d, i) => {\n const geometryProps =\n props.orientation === 'vertical'\n ? getVerticalFunnelSegmentGeometry({ d, i, data, funnelWidth, funnelHeight, isRTL })\n : getHorizontalFunnelSegmentGeometry({ d, i, data, funnelWidth, funnelHeight, isRTL });\n\n const { pathD, textX, textY, availableWidth } = geometryProps;\n const minTextWidth = 16;\n const eventHandlerProps = _getEventHandlerProps(d);\n const textProps = getSegmentTextProps({\n availableWidth,\n minTextWidth,\n textX,\n textY,\n value: d.value!,\n ...eventHandlerProps,\n });\n\n return _renderFunnelSegment({\n key: i,\n pathD,\n fill: d.color!,\n opacity: legendHighlighted(d.stage as string) || noLegendHighlighted() ? 1 : 0.1,\n textProps,\n data: d,\n tabIndex: legendHighlighted(d.stage as string) || noLegendHighlighted() ? 0 : undefined,\n });\n });\n }\n\n function isStackedFunnelData(data: FunnelChartDataPoint[]): boolean {\n return Array.isArray(data) && data.every(stage => Array.isArray(stage.subValues));\n }\n\n function _renderStackedSegment(\n stage: FunnelChartDataPoint,\n subValue: { value: number; color: string; category: string },\n stageIndex: number,\n subValueIndex: number,\n geometryParams: {\n stages: FunnelChartDataPoint[];\n totals: number[];\n maxTotal: number;\n funnelWidth: number;\n funnelHeight: number;\n isRTL: boolean;\n },\n ): JSXElement {\n // Ensure stages have subValues for geometry functions\n const stagesWithSubValues = geometryParams.stages.map(s => ({\n ...s,\n subValues: s.subValues || [],\n }));\n const geom =\n props.orientation === 'vertical'\n ? getStackedVerticalFunnelSegmentGeometry({\n ...geometryParams,\n stages: stagesWithSubValues,\n i: stageIndex,\n k: subValueIndex,\n })\n : getStackedHorizontalFunnelSegmentGeometry({\n ...geometryParams,\n stages: stagesWithSubValues,\n i: stageIndex,\n k: subValueIndex,\n });\n\n const minTextWidth = 16;\n const eventHandlerProps = _getEventHandlerProps({ stage: stage.stage as string, subValue });\n const textProps = getSegmentTextProps({\n availableWidth: geom.availableWidth,\n minTextWidth,\n textX: geom.textX,\n textY: geom.textY,\n value: subValue.value,\n ...eventHandlerProps,\n });\n\n return _renderFunnelSegment({\n key: `${stageIndex}-${subValueIndex}`,\n pathD: geom.pathD,\n fill: subValue.color,\n opacity:\n (isStackedFunnelData(props.data) && legendHighlighted(subValue.category)) || noLegendHighlighted() ? 1 : 0.1,\n textProps,\n data: { stage: stage.stage as string, subValue },\n tabIndex: legendHighlighted(subValue.category) || noLegendHighlighted() ? 0 : undefined,\n });\n }\n\n function _createStackedFunnel(containerHeight: number, containerWidth: number): JSXElement[] {\n const { data } = props;\n\n const stages = data;\n const totals = stages.map(s => s?.subValues?.reduce((sum, subValue) => sum + subValue.value, 0) ?? 0);\n const maxTotal = Math.max(...totals);\n\n const funnelWidth = containerWidth;\n const funnelHeight = containerHeight * 0.8;\n\n const paths: JSXElement[] = [];\n\n const geometryParams = {\n stages,\n totals,\n maxTotal,\n funnelWidth,\n funnelHeight,\n isRTL,\n };\n\n for (let i = 0; i < stages.length; i++) {\n const cur = stages[i];\n for (let k = 0; k < (cur.subValues ?? []).length; k++) {\n const v = cur.subValues?.[k];\n if (!v) {\n continue;\n }\n paths.push(_renderStackedSegment(cur, v, i, k, geometryParams));\n }\n }\n return paths;\n }\n\n function _renderLegends(): JSXElement {\n if (props.hideLegend) {\n return <></>;\n }\n let legends: Legend[];\n\n if (isStacked) {\n // Collect unique categories and their color\n const categoryMap: Record<string, string> = {};\n props.data.forEach((stage: FunnelChartDataPoint) => {\n (stage.subValues || []).forEach(sub => {\n if (!(sub.category in categoryMap)) {\n categoryMap[sub.category] = sub.color;\n }\n });\n });\n legends = Object.entries(categoryMap).map(([category, color]) => ({\n title: category,\n color,\n hoverAction: () => setHoveredStage(category),\n onMouseOutAction: () => setHoveredStage(null),\n }));\n } else {\n legends = props.data.map((d: FunnelChartDataPoint) => ({\n title: d.stage as string,\n color: d.color!,\n hoverAction: () => setHoveredStage(d.stage as string),\n onMouseOutAction: () => setHoveredStage(null),\n }));\n }\n\n return (\n <div style={{ display: 'flex', justifyContent: 'center' }}>\n <Legends\n legends={legends}\n centerLegends={true}\n onChange={_onLegendSelectionChangeCallback}\n {...props.legendProps}\n legendRef={_legendsRef}\n />\n </div>\n );\n }\n\n function _isChartEmpty(): boolean {\n return !(props.data && props.data.length > 0);\n }\n\n const classes = useFunnelChartStyles(props);\n\n const calloutProps: ChartPopoverProps = {\n ...props.calloutProps,\n color: calloutData?.color,\n hoverXValue: calloutData?.stage,\n YValue: calloutData?.value,\n };\n\n const width = props.width || 350;\n const height = props.height || 500;\n\n const titleHeight = props.chartTitle\n ? Math.max(\n (typeof props.titleStyles?.titleFont?.size === 'number' ? props.titleStyles.titleFont.size : 13) +\n CHART_TITLE_PADDING,\n 40,\n )\n : 40;\n const funnelMarginTop = titleHeight;\n const funnelWidth = width * 0.8;\n const funnelOffsetX = (width - funnelWidth) / 2;\n const arrowAttributes = useArrowNavigationGroup({ circular: true, axis: 'horizontal' });\n const segmentCount = isStacked\n ? props.data.reduce((count, stage) => count + (stage.subValues?.length ?? 0), 0)\n : props.data.length;\n\n return !_isChartEmpty() ? (\n <div ref={chartContainerRef} className={classes.root} style={{ width, height }}>\n <svg\n width={width}\n height={height}\n className={classes.chart}\n {...arrowAttributes}\n role={'region'}\n aria-label={props.chartTitle}\n >\n {!props.hideLegend && props.chartTitle && (\n <ChartTitle\n title={props.chartTitle}\n x={width / 2}\n maxWidth={width - 20}\n className={classes.chartTitle}\n titleStyles={props.titleStyles}\n tooltipClassName={classes.svgTooltip}\n />\n )}\n <g\n role=\"listbox\"\n aria-label={`Funnel chart with ${segmentCount} segments`}\n transform={\n isRTL\n ? `translate(${funnelOffsetX + funnelWidth}, ${funnelMarginTop}) scale(-1,1)`\n : `translate(${funnelOffsetX}, ${funnelMarginTop})`\n }\n >\n {isStacked\n ? _createStackedFunnel(height - funnelMarginTop, funnelWidth)\n : _createFunnel(height - funnelMarginTop, funnelWidth)}\n </g>\n </svg>\n {isPopoverOpen && (\n <ChartPopover\n {...props.calloutProps}\n XValue={calloutProps?.hoverXValue as string}\n yCalloutValue={calloutProps?.YValue as string}\n culture={props.culture}\n positioning={{\n target: refSelected,\n }}\n isPopoverOpen={isPopoverOpen}\n color={calloutProps?.color}\n isCartesian={false}\n />\n )}\n {_renderLegends()}\n </div>\n ) : (\n <div id={_emptyChartId} role={'alert'} style={{ opacity: '0' }} aria-label={'Graph has no data to display'} />\n );\n});\nFunnelChart.displayName = 'FunnelChart';\n"],"names":["React","useId","useRtl","ChartTitle","CHART_TITLE_PADDING","Legends","useArrowNavigationGroup","ChartPopover","formatToLocaleString","getContrastTextColor","useFunnelChartStyles","getHorizontalFunnelSegmentGeometry","getVerticalFunnelSegmentGeometry","getSegmentTextProps","getStackedHorizontalFunnelSegmentGeometry","getStackedVerticalFunnelSegmentGeometry","useImageExport","FunnelChart","forwardRef","orientation","restProps","forwardedRef","props","_emptyChartId","isRTL","hoveredStage","setHoveredStage","useState","calloutData","setCalloutData","selectedLegends","setSelectedLegends","isPopoverOpen","setPopoverOpen","refSelected","setRefSelected","isStacked","isStackedFunnelData","data","chartContainerRef","legendsRef","_legendsRef","componentRef","hideLegend","useEffect","legendProps","_handleHover","mouseEvent","targetElement","persist","_handleFocus","focusEvent","_handleStackedHover","stage","subValue","value","color","category","_handleStackedFocus","_handleMouseOut","_onLegendSelectionChange","legendsSelected","event","currentLegend","canSelectMultipleLegends","slice","onChange","_onLegendSelectionChangeCallback","useCallback","getHighlightedLegend","length","legendHighlighted","legend","includes","noLegendHighlighted","_getAriaLabel","formattedValue","toString","culture","_getEventHandlerProps","opacity","segmentId","document","getElementById","onMouseOver","undefined","onMouseMove","onFocus","onBlur","onMouseOut","_renderSegmentText","show","x","y","textColor","textElement","text","funnelWidth","textAnchor","alignmentBaseline","fill","g","transform","_renderFunnelSegment","key","pathD","textProps","tabIndex","eventHandlers","role","path","id","d","aria-label","aria-hidden","_createFunnel","containerHeight","containerWidth","funnelHeight","map","i","geometryProps","textX","textY","availableWidth","minTextWidth","eventHandlerProps","Array","isArray","every","subValues","_renderStackedSegment","stageIndex","subValueIndex","geometryParams","stagesWithSubValues","stages","s","geom","k","_createStackedFunnel","totals","reduce","sum","maxTotal","Math","max","paths","cur","v","push","_renderLegends","legends","categoryMap","forEach","sub","Object","entries","title","hoverAction","onMouseOutAction","div","style","display","justifyContent","centerLegends","legendRef","_isChartEmpty","classes","calloutProps","hoverXValue","YValue","width","height","titleHeight","chartTitle","titleStyles","titleFont","size","funnelMarginTop","funnelOffsetX","arrowAttributes","circular","axis","segmentCount","count","ref","className","root","svg","chart","maxWidth","tooltipClassName","svgTooltip","XValue","yCalloutValue","positioning","target","isCartesian","displayName"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,KAAK,QAAQ,4BAA4B;AAElD,SAASC,MAAM,EAAEC,UAAU,EAAEC,mBAAmB,QAAQ,2BAAwB;AAGhF,SAASC,OAAO,QAAQ,sBAAmB;AAC3C,SAASC,uBAAuB,QAAQ,0BAA0B;AAClE,SAASC,YAAY,QAAQ,sCAAmC;AAChE,SAASC,oBAAoB,QAAQ,4BAA4B;AACjE,SAASC,oBAAoB,QAAQ,4BAAyB;AAC9D,SAASC,oBAAoB,QAAQ,mCAAgC;AACrE,SACEC,kCAAkC,EAClCC,gCAAgC,EAChCC,mBAAmB,EACnBC,yCAAyC,EACzCC,uCAAuC,QAClC,sBAAmB;AAE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,EAAED,gBAAgB,CAAC,CAAC;OAGtD/I,YACGwG,qBAAqBiC,SAASM,iBAAiBlF,eAC/CkB,cAAc0D,SAASM,iBAAiBlF,gBAG/CjE,+BACC,oBAACzB;QACE,GAAGe,MAAMmJ,YAAY;QACtByB,MAAM,EAAEzB,yBAAAA,mCAAAA,aAAcC,WAAW;QACjCyB,aAAa,EAAE1B,yBAAAA,mCAAAA,aAAcE,MAAM;QACnC7F,SAASxD,MAAMwD,OAAO;QACtBsH,aAAa;YACXC,QAAQnK;QACV;QACAF,eAAeA;QACfwB,KAAK,EAAEiH,yBAAAA,mCAAAA,aAAcjH,KAAK;QAC1B8I,aAAa;QAGhB/C,kCAGH,oBAACU;QAAIlD,IAAIxF;QAAesF,MAAM;QAASqD,OAAO;YAAElF,SAAS;QAAI;QAAGiC,cAAY;;AAEhF,GAAG;AACHhG,YAAYsL,WAAW,GAAG"}
@@ -1,2 +1,2 @@
1
- export * from './FunnelChart';
2
- export * from './FunnelChart.types';
1
+ export * from "./FunnelChart.js";
2
+ export * from "./FunnelChart.types.js";
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/FunnelChart/index.ts"],"sourcesContent":["export * from './FunnelChart';\nexport * from './FunnelChart.types';\n"],"names":[],"mappings":"AAAA,cAAc,gBAAgB;AAC9B,cAAc,sBAAsB"}
1
+ {"version":3,"sources":["../src/components/FunnelChart/index.ts"],"sourcesContent":["export * from './FunnelChart';\nexport * from './FunnelChart.types';\n"],"names":[],"mappings":"AAAA,cAAc,mBAAgB;AAC9B,cAAc,yBAAsB"}
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
 
3
- import { __styles, mergeClasses } from '@griffel/react';
4
- import { tokens } from '@fluentui/react-theme';
5
- import { getChartTitleStyles, HighContrastSelector } from '../../utilities/index';
3
+ import { __styles, mergeClasses } from "@griffel/react";
4
+ import { tokens } from "@fluentui/react-theme";
5
+ import { getChartTitleStyles, HighContrastSelector } from "../../utilities/index.js";
6
6
  /**
7
7
  * @internal
8
8
  */
@@ -1 +1 @@
1
- {"version":3,"names":["__styles","mergeClasses","tokens","getChartTitleStyles","HighContrastSelector","funnelClassNames","root","chart","text","calloutContentRoot","chartTitle","svgTooltip","useStyles","Bt984gj","a9b677","Bqenvij","Bahqtrf","Be2twd7","Bhrd7zp","qhf8xq","fsow6f","mc9l5x","Bkecrkj","Bkfmm31","B2u0y6b","Bg96gwp","Bvjb7m6","jrapky","Bxms50k","d","m","useFunnelChartStyles","props","_props_styles","_props_styles1","_props_styles2","_props_styles3","_props_styles4","_props_styles5","className","baseStyles","styles"],"sources":["useFunnelChartStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport { getChartTitleStyles, HighContrastSelector } from '../../utilities/index';\n/**\n * @internal\n */ export const funnelClassNames = {\n root: 'fui-funnel__root',\n chart: 'fui-funnel__chart',\n text: 'fui-funnel__text',\n calloutContentRoot: 'fui-funnel__callout-content-root',\n chartTitle: 'fui-funnel__chartTitle',\n svgTooltip: 'fui-funnel__svgTooltip'\n};\n/**\n * Base Styles\n */ const useStyles = makeStyles({\n root: {\n alignItems: 'center',\n width: '100%',\n height: '100%',\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeBase300,\n fontWeight: tokens.fontWeightRegular,\n position: 'relative',\n textAlign: 'left'\n },\n chart: {\n display: 'block',\n width: '100%',\n height: '100%'\n },\n text: {\n pointerEvents: 'none',\n fontWeight: tokens.fontWeightSemibold,\n fill: tokens.colorNeutralForeground1,\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeBase300\n },\n calloutContentRoot: {\n maxWidth: '238px'\n },\n chartTitle: getChartTitleStyles(),\n svgTooltip: {\n fill: tokens.colorNeutralBackground1,\n [HighContrastSelector]: {\n fill: 'Canvas'\n }\n }\n});\n/**\n * Apply styling to the FunnelChart component\n */ export const useFunnelChartStyles = (props)=>{\n var _props_styles, _props_styles1, _props_styles2, _props_styles3, _props_styles4, _props_styles5;\n const { className } = props;\n const baseStyles = useStyles();\n return {\n root: mergeClasses(funnelClassNames.root, baseStyles.root, className, (_props_styles = props.styles) === null || _props_styles === void 0 ? void 0 : _props_styles.root),\n chart: mergeClasses(funnelClassNames.chart, baseStyles.chart, (_props_styles1 = props.styles) === null || _props_styles1 === void 0 ? void 0 : _props_styles1.chart),\n text: mergeClasses(funnelClassNames.text, baseStyles.text, (_props_styles2 = props.styles) === null || _props_styles2 === void 0 ? void 0 : _props_styles2.text),\n calloutContentRoot: mergeClasses(baseStyles.calloutContentRoot, (_props_styles3 = props.styles) === null || _props_styles3 === void 0 ? void 0 : _props_styles3.calloutContentRoot),\n chartTitle: mergeClasses(funnelClassNames.chartTitle, baseStyles.chartTitle, (_props_styles4 = props.styles) === null || _props_styles4 === void 0 ? void 0 : _props_styles4.chartTitle),\n svgTooltip: mergeClasses(funnelClassNames.svgTooltip, baseStyles.svgTooltip, (_props_styles5 = props.styles) === null || _props_styles5 === void 0 ? void 0 : _props_styles5.svgTooltip)\n };\n};\n"],"mappings":"AAAA,YAAY;;AACZ,SAAAA,QAAA,EAAqBC,YAAY,QAAQ,gBAAgB;AACzD,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,SAASC,mBAAmB,EAAEC,oBAAoB,QAAQ,uBAAuB;AACjF;AACA;AACA;AAAI,OAAO,MAAMC,gBAAgB,GAAG;EAChCC,IAAI,EAAE,kBAAkB;EACxBC,KAAK,EAAE,mBAAmB;EAC1BC,IAAI,EAAE,kBAAkB;EACxBC,kBAAkB,EAAE,kCAAkC;EACtDC,UAAU,EAAE,wBAAwB;EACpCC,UAAU,EAAE;AAChB,CAAC;AACD;AACA;AACA;AAAI,MAAMC,SAAS,gBAAGZ,QAAA;EAAAM,IAAA;IAAAO,OAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,MAAA;EAAA;EAAAb,KAAA;IAAA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,MAAM,MAAM,IAAI,IAAIN,cAAc,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,cAAc,CAAC3B,IAAI,CAAC;IAChKC,kBAAkB,EAAER,YAAY,CAACuC,UAAU,CAAC/B,kBAAkB,EAAE,CAAC2B,cAAc,GAAGJ,KAAK,CAACS,MAAM,MAAM,IAAI,IAAIL,cAAc,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,cAAc,CAAC3B,kBAAkB,CAAC;IACnLC,UAAU,EAAET,YAAY,CAACI,gBAAgB,CAACK,UAAU,EAAE8B,UAAU,CAAC9B,UAAU,EAAE,CAAC2B,cAAc,GAAGL,KAAK,CAACS,MAAM,MAAM,IAAI,IAAIJ,cAAc,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,cAAc,CAAC3B,UAAU,CAAC;IACxLC,UAAU,EAAEV,YAAY,CAACI,gBAAgB,CAACM,UAAU,EAAE6B,UAAU,CAAC7B,UAAU,EAAE,CAAC2B,cAAc,GAAGN,KAAK,CAACS,MAAM,MAAM,IAAI,IAAIH,cAAc,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,cAAc,CAAC3B,UAAU;EAC3L,CAAC;AACL,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["__styles","mergeClasses","tokens","getChartTitleStyles","HighContrastSelector","funnelClassNames","root","chart","text","calloutContentRoot","chartTitle","svgTooltip","useStyles","Bt984gj","a9b677","Bqenvij","Bahqtrf","Be2twd7","Bhrd7zp","qhf8xq","fsow6f","mc9l5x","Bkecrkj","Bkfmm31","B2u0y6b","Bg96gwp","Bvjb7m6","jrapky","Bxms50k","d","m","useFunnelChartStyles","props","_props_styles","_props_styles1","_props_styles2","_props_styles3","_props_styles4","_props_styles5","className","baseStyles","styles"],"sources":["useFunnelChartStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses } from \"@griffel/react\";\nimport { tokens } from \"@fluentui/react-theme\";\nimport { getChartTitleStyles, HighContrastSelector } from \"../../utilities/index.js\";\n/**\n * @internal\n */ export const funnelClassNames = {\n root: 'fui-funnel__root',\n chart: 'fui-funnel__chart',\n text: 'fui-funnel__text',\n calloutContentRoot: 'fui-funnel__callout-content-root',\n chartTitle: 'fui-funnel__chartTitle',\n svgTooltip: 'fui-funnel__svgTooltip'\n};\n/**\n * Base Styles\n */ const useStyles = makeStyles({\n root: {\n alignItems: 'center',\n width: '100%',\n height: '100%',\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeBase300,\n fontWeight: tokens.fontWeightRegular,\n position: 'relative',\n textAlign: 'left'\n },\n chart: {\n display: 'block',\n width: '100%',\n height: '100%'\n },\n text: {\n pointerEvents: 'none',\n fontWeight: tokens.fontWeightSemibold,\n fill: tokens.colorNeutralForeground1,\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeBase300\n },\n calloutContentRoot: {\n maxWidth: '238px'\n },\n chartTitle: getChartTitleStyles(),\n svgTooltip: {\n fill: tokens.colorNeutralBackground1,\n [HighContrastSelector]: {\n fill: 'Canvas'\n }\n }\n});\n/**\n * Apply styling to the FunnelChart component\n */ export const useFunnelChartStyles = (props)=>{\n var _props_styles, _props_styles1, _props_styles2, _props_styles3, _props_styles4, _props_styles5;\n const { className } = props;\n const baseStyles = useStyles();\n return {\n root: mergeClasses(funnelClassNames.root, baseStyles.root, className, (_props_styles = props.styles) === null || _props_styles === void 0 ? void 0 : _props_styles.root),\n chart: mergeClasses(funnelClassNames.chart, baseStyles.chart, (_props_styles1 = props.styles) === null || _props_styles1 === void 0 ? void 0 : _props_styles1.chart),\n text: mergeClasses(funnelClassNames.text, baseStyles.text, (_props_styles2 = props.styles) === null || _props_styles2 === void 0 ? void 0 : _props_styles2.text),\n calloutContentRoot: mergeClasses(baseStyles.calloutContentRoot, (_props_styles3 = props.styles) === null || _props_styles3 === void 0 ? void 0 : _props_styles3.calloutContentRoot),\n chartTitle: mergeClasses(funnelClassNames.chartTitle, baseStyles.chartTitle, (_props_styles4 = props.styles) === null || _props_styles4 === void 0 ? void 0 : _props_styles4.chartTitle),\n svgTooltip: mergeClasses(funnelClassNames.svgTooltip, baseStyles.svgTooltip, (_props_styles5 = props.styles) === null || _props_styles5 === void 0 ? void 0 : _props_styles5.svgTooltip)\n };\n};\n"],"mappings":"AAAA,YAAY;;AACZ,SAAAA,QAAA,EAAqBC,YAAY,QAAQ,gBAAgB;AACzD,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,SAASC,mBAAmB,EAAEC,oBAAoB,QAAQ,0BAA0B;AACpF;AACA;AACA;AAAI,OAAO,MAAMC,gBAAgB,GAAG;EAChCC,IAAI,EAAE,kBAAkB;EACxBC,KAAK,EAAE,mBAAmB;EAC1BC,IAAI,EAAE,kBAAkB;EACxBC,kBAAkB,EAAE,kCAAkC;EACtDC,UAAU,EAAE,wBAAwB;EACpCC,UAAU,EAAE;AAChB,CAAC;AACD;AACA;AACA;AAAI,MAAMC,SAAS,gBAAGZ,QAAA;EAAAM,IAAA;IAAAO,OAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,MAAA;EAAA;EAAAb,KAAA;IAAAc,MAAA;IAAAP,MAAA;IAAAC,OAAA;EAAA;EAAAP,IAAA;IAAAc,OAAA;IAAAJ,OAAA;IAAAK,OAAA;IAAAP,OAAA;IAAAC,OAAA;EAAA;EAAAR,kBAAA;IAAAe,OAAA;EAAA;EAAAd,UAAA;IAAAM,OAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAO,OAAA;IAAAF,OAAA;IAAAG,OAAA;IAAAN,MAAA;IAAAO,MAAA;EAAA;EAAAhB,UAAA;IAAAY,OAAA;IAAAK,OAAA;EAAA;AAAA;EAAAC,CAAA;EAAAC,CAAA;IAAAA,CAAA;EAAA;AAAA,CAiCrB,CAAC;AACF;AACA;AACA;AAAI,OAAO,MAAMC,oBAAoB,GAAIC,KAAK,IAAG;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K,CAAC,GAAG,KAAK,CAAC,GAAGA,cAAc,CAAC3B,UAAU,CAAC;IACxLC,UAAU,EAAEV,YAAY,CAACI,gBAAgB,CAACM,UAAU,EAAE6B,UAAU,CAAC7B,UAAU,EAAE,CAAC2B,cAAc,GAAGN,KAAK,CAACS,MAAM,MAAM,IAAI,IAAIH,cAAc,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,cAAc,CAAC3B,UAAU;EAC3L,CAAC;AACL,CAAC","ignoreList":[]}
@@ -1,7 +1,7 @@
1
1
  'use client';
2
- import { makeStyles, mergeClasses } from '@griffel/react';
3
- import { tokens } from '@fluentui/react-theme';
4
- import { getChartTitleStyles, HighContrastSelector } from '../../utilities/index';
2
+ import { makeStyles, mergeClasses } from "@griffel/react";
3
+ import { tokens } from "@fluentui/react-theme";
4
+ import { getChartTitleStyles, HighContrastSelector } from "../../utilities/index.js";
5
5
  /**
6
6
  * @internal
7
7
  */ export const funnelClassNames = {
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/FunnelChart/useFunnelChartStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport type { GriffelStyle } from '@griffel/react';\nimport { makeStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { FunnelChartProps, FunnelChartStyles } from './index';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { getChartTitleStyles, HighContrastSelector } from '../../utilities/index';\n\n/**\n * @internal\n */\nexport const funnelClassNames: SlotClassNames<FunnelChartStyles> = {\n root: 'fui-funnel__root',\n chart: 'fui-funnel__chart',\n text: 'fui-funnel__text',\n calloutContentRoot: 'fui-funnel__callout-content-root',\n chartTitle: 'fui-funnel__chartTitle',\n svgTooltip: 'fui-funnel__svgTooltip',\n};\n\n/**\n * Base Styles\n */\nconst useStyles = makeStyles({\n root: {\n alignItems: 'center',\n width: '100%',\n height: '100%',\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeBase300,\n fontWeight: tokens.fontWeightRegular,\n position: 'relative',\n textAlign: 'left',\n },\n chart: {\n display: 'block',\n width: '100%',\n height: '100%',\n },\n text: {\n pointerEvents: 'none',\n fontWeight: tokens.fontWeightSemibold,\n fill: tokens.colorNeutralForeground1,\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeBase300,\n },\n calloutContentRoot: {\n maxWidth: '238px',\n },\n chartTitle: getChartTitleStyles() as GriffelStyle,\n svgTooltip: {\n fill: tokens.colorNeutralBackground1,\n [HighContrastSelector]: {\n fill: 'Canvas',\n },\n },\n});\n\n/**\n * Apply styling to the FunnelChart component\n */\nexport const useFunnelChartStyles = (props: FunnelChartProps): FunnelChartStyles => {\n const { className } = props;\n const baseStyles = useStyles();\n\n return {\n root: mergeClasses(funnelClassNames.root, baseStyles.root, className, props.styles?.root),\n chart: mergeClasses(funnelClassNames.chart, baseStyles.chart, props.styles?.chart),\n text: mergeClasses(funnelClassNames.text, baseStyles.text, props.styles?.text),\n calloutContentRoot: mergeClasses(baseStyles.calloutContentRoot, props.styles?.calloutContentRoot),\n chartTitle: mergeClasses(funnelClassNames.chartTitle, baseStyles.chartTitle, props.styles?.chartTitle),\n svgTooltip: mergeClasses(funnelClassNames.svgTooltip, baseStyles.svgTooltip, props.styles?.svgTooltip),\n };\n};\n"],"names":["makeStyles","mergeClasses","tokens","getChartTitleStyles","HighContrastSelector","funnelClassNames","root","chart","text","calloutContentRoot","chartTitle","svgTooltip","useStyles","alignItems","width","height","fontFamily","fontFamilyBase","fontSize","fontSizeBase300","fontWeight","fontWeightRegular","position","textAlign","display","pointerEvents","fontWeightSemibold","fill","colorNeutralForeground1","maxWidth","colorNeutralBackground1","useFunnelChartStyles","props","className","baseStyles","styles"],"mappings":"AAAA;AAGA,SAASA,UAAU,EAAEC,YAAY,QAAQ,iBAAiB;AAC1D,SAASC,MAAM,QAAQ,wBAAwB;AAG/C,SAASC,mBAAmB,EAAEC,oBAAoB,QAAQ,wBAAwB;AAElF;;CAEC,GACD,OA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WAAWzB,kBAAkB,GAAEuB,iBAAAA,MAAMG,MAAM,cAAZH,qCAAAA,eAAcvB,kBAAkB;QAChGC,YAAYT,aAAaI,iBAAiBK,UAAU,EAAEwB,WAAWxB,UAAU,GAAEsB,iBAAAA,MAAMG,MAAM,cAAZH,qCAAAA,eAActB,UAAU;QACrGC,YAAYV,aAAaI,iBAAiBM,UAAU,EAAEuB,WAAWvB,UAAU,GAAEqB,iBAAAA,MAAMG,MAAM,cAAZH,qCAAAA,eAAcrB,UAAU;IACvG;AACF,EAAE"}
1
+ {"version":3,"sources":["../src/components/FunnelChart/useFunnelChartStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport type { GriffelStyle } from '@griffel/react';\nimport { makeStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { FunnelChartProps, FunnelChartStyles } from './index';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { getChartTitleStyles, HighContrastSelector } from '../../utilities/index';\n\n/**\n * @internal\n */\nexport const funnelClassNames: SlotClassNames<FunnelChartStyles> = {\n root: 'fui-funnel__root',\n chart: 'fui-funnel__chart',\n text: 'fui-funnel__text',\n calloutContentRoot: 'fui-funnel__callout-content-root',\n chartTitle: 'fui-funnel__chartTitle',\n svgTooltip: 'fui-funnel__svgTooltip',\n};\n\n/**\n * Base Styles\n */\nconst useStyles = makeStyles({\n root: {\n alignItems: 'center',\n width: '100%',\n height: '100%',\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeBase300,\n fontWeight: tokens.fontWeightRegular,\n position: 'relative',\n textAlign: 'left',\n },\n chart: {\n display: 'block',\n width: '100%',\n height: '100%',\n },\n text: {\n pointerEvents: 'none',\n fontWeight: tokens.fontWeightSemibold,\n fill: tokens.colorNeutralForeground1,\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeBase300,\n },\n calloutContentRoot: {\n maxWidth: '238px',\n },\n chartTitle: getChartTitleStyles() as GriffelStyle,\n svgTooltip: {\n fill: tokens.colorNeutralBackground1,\n [HighContrastSelector]: {\n fill: 'Canvas',\n },\n },\n});\n\n/**\n * Apply styling to the FunnelChart component\n */\nexport const useFunnelChartStyles = (props: FunnelChartProps): FunnelChartStyles => {\n const { className } = props;\n const baseStyles = useStyles();\n\n return {\n root: mergeClasses(funnelClassNames.root, baseStyles.root, className, props.styles?.root),\n chart: mergeClasses(funnelClassNames.chart, baseStyles.chart, props.styles?.chart),\n text: mergeClasses(funnelClassNames.text, baseStyles.text, props.styles?.text),\n calloutContentRoot: mergeClasses(baseStyles.calloutContentRoot, props.styles?.calloutContentRoot),\n chartTitle: mergeClasses(funnelClassNames.chartTitle, baseStyles.chartTitle, props.styles?.chartTitle),\n svgTooltip: mergeClasses(funnelClassNames.svgTooltip, baseStyles.svgTooltip, props.styles?.svgTooltip),\n };\n};\n"],"names":["makeStyles","mergeClasses","tokens","getChartTitleStyles","HighContrastSelector","funnelClassNames","root","chart","text","calloutContentRoot","chartTitle","svgTooltip","useStyles","alignItems","width","height","fontFamily","fontFamilyBase","fontSize","fontSizeBase300","fontWeight","fontWeightRegular","position","textAlign","display","pointerEvents","fontWeightSemibold","fill","colorNeutralForeground1","maxWidth","colorNeutralBackground1","useFunnelChartStyles","props","className","baseStyles","styles"],"mappings":"AAAA;AAGA,SAASA,UAAU,EAAEC,YAAY,QAAQ,iBAAiB;AAC1D,SAASC,MAAM,QAAQ,wBAAwB;AAG/C,SAASC,mBAAmB,EAAEC,oBAAoB,QAAQ,2BAAwB;AAElF;;CAEC,GACD,OAAO,MAAMC,mBAAsD;IACjEC,MAAM;IACNC,OAAO;IACPC,MAAM;IACNC,oBAAoB;IACpBC,YAAY;IACZC,YAAY;AACd,EAAE;AAEF;;CAEC,GACD,MAAMC,YAAYZ,WAAW;IAC3BM,MAAM;QACJO,YAAY;QACZC,OAAO;QACPC,QAAQ;QACRC,YAAYd,OAAOe,cAAc;QACjCC,UAAUhB,OAAOiB,eAAe;QAChCC,YAAYlB,OAAOmB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MG,MAAM,cAAZH,qCAAAA,eAAcrB,UAAU;IACvG;AACF,EAAE"}
@@ -1,13 +1,13 @@
1
1
  'use client';
2
- import * as React from 'react';
3
- import { max as d3Max, min as d3Min } from 'd3-array';
4
- import { useId } from '@fluentui/react-utilities';
5
- import { Legends } from '../Legends/index';
6
- import { CartesianChart } from '../CommonComponents/index';
7
- import { ChartPopover } from '../CommonComponents/ChartPopover';
8
- import { ChartTypes, YAxisType, XAxisTypes, getTypeOfAxis, getNextColor, findHBCWANumericMinMaxOfY, createYAxisForHorizontalBarChartWithAxis, createStringYAxisForHorizontalBarChartWithAxis, areArraysEqual, MIN_DOMAIN_MARGIN, sortAxisCategories, calculateAppropriateBarWidth, getColorFromToken, getScalePadding, getDateFormatLevel } from '../../utilities/index';
9
- import { formatDateToLocaleString, getMultiLevelDateTimeFormatOptions } from '@fluentui/chart-utilities';
10
- import { useImageExport } from '../../utilities/hooks';
2
+ import * as React from "react";
3
+ import { max as d3Max, min as d3Min } from "d3-array";
4
+ import { useId } from "@fluentui/react-utilities";
5
+ import { Legends } from "../Legends/index.js";
6
+ import { CartesianChart } from "../CommonComponents/index.js";
7
+ import { ChartPopover } from "../CommonComponents/ChartPopover.js";
8
+ import { ChartTypes, YAxisType, XAxisTypes, getTypeOfAxis, getNextColor, findHBCWANumericMinMaxOfY, createYAxisForHorizontalBarChartWithAxis, createStringYAxisForHorizontalBarChartWithAxis, areArraysEqual, MIN_DOMAIN_MARGIN, sortAxisCategories, calculateAppropriateBarWidth, getColorFromToken, getScalePadding, getDateFormatLevel } from "../../utilities/index.js";
9
+ import { formatDateToLocaleString, getMultiLevelDateTimeFormatOptions } from "@fluentui/chart-utilities";
10
+ import { useImageExport } from "../../utilities/hooks.js";
11
11
  const DEFAULT_BAR_HEIGHT = 24;
12
12
  const MIN_BAR_HEIGHT = 1;
13
13
  export const GanttChart = /*#__PURE__*/ React.forwardRef(({ useUTC = true, yAxisCategoryOrder = 'default', maxBarHeight = 24, ...props }, forwardedRef)=>{
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/GanttChart/GanttChart.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { max as d3Max, min as d3Min } from 'd3-array';\nimport type { ScaleLinear, ScaleBand, ScaleTime } from 'd3-scale';\nimport { useId } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport type { Legend } from '../Legends/index';\nimport { Legends } from '../Legends/index';\nimport type { Margins, GanttChartDataPoint } from '../../types/DataPoint';\nimport type { ModifiedCartesianChartProps } from '../CommonComponents/index';\nimport { CartesianChart } from '../CommonComponents/index';\nimport type { GanttChartProps } from './GanttChart.types';\nimport { ChartPopover } from '../CommonComponents/ChartPopover';\nimport type { ChartPopoverProps } from '../../index';\nimport type { IDomainNRange } from '../../utilities/index';\nimport {\n ChartTypes,\n YAxisType,\n XAxisTypes,\n getTypeOfAxis,\n getNextColor,\n findHBCWANumericMinMaxOfY,\n createYAxisForHorizontalBarChartWithAxis,\n createStringYAxisForHorizontalBarChartWithAxis,\n areArraysEqual,\n MIN_DOMAIN_MARGIN,\n sortAxisCategories,\n calculateAppropriateBarWidth,\n getColorFromToken,\n getScalePadding,\n getDateFormatLevel,\n} from '../../utilities/index';\nimport { formatDateToLocaleString, getMultiLevelDateTimeFormatOptions } from '@fluentui/chart-utilities';\nimport { useImageExport } from '../../utilities/hooks';\n\ntype NumberScale = ScaleLinear<number, number>;\ntype StringScale = ScaleBand<string>;\ntype DateScale = ScaleTime<Date, number>;\n\nconst DEFAULT_BAR_HEIGHT = 24;\nconst MIN_BAR_HEIGHT = 1;\n\nexport const GanttChart: React.FunctionComponent<GanttChartProps> = React.forwardRef<HTMLDivElement, GanttChartProps>(\n ({ useUTC = true, yAxisCategoryOrder = 'default', maxBarHeight = 24, ...props }, forwardedRef) => {\n const _barHeight = React.useRef<number>(DEFAULT_BAR_HEIGHT);\n const _margins = React.useRef<Margins>({});\n const _calloutAnchorPoint = React.useRef<GanttChartDataPoint | null>(null);\n const _emptyChartId = useId('Gantt_empty');\n const _legendId = useId('gantt_legend');\n const _legendMap = React.useRef<Record<string, { id: string; startColor: string; endColor: string }>>({});\n const _prevProps = React.useRef<Partial<GanttChartProps>>({});\n\n const [calloutColor, setCalloutColor] = React.useState<string>('');\n const [hoveredLegend, setHoveredLegend] = React.useState<string>('');\n const [calloutLegend, setCalloutLegend] = React.useState<string>('');\n const [xCalloutValue, setXCalloutValue] = React.useState<string>('');\n const [yCalloutValue, setYCalloutValue] = React.useState<string>('');\n const [selectedLegends, setSelectedLegends] = React.useState<string[]>(props.legendProps?.selectedLegends || []);\n const [calloutDataPoint, setCalloutDataPoint] = React.useState<GanttChartDataPoint>();\n const [clickPosition, setClickPosition] = React.useState({ x: 0, y: 0 });\n const [isPopoverOpen, setPopoverOpen] = React.useState(false);\n const { cartesianChartRef, legendsRef: _legendsRef } = useImageExport(props.componentRef, props.hideLegend);\n\n React.useEffect(() => {\n if (!areArraysEqual(_prevProps.current.legendProps?.selectedLegends, props.legendProps?.selectedLegends)) {\n setSelectedLegends(props.legendProps?.selectedLegends || []);\n }\n _prevProps.current = props;\n }, [props]);\n\n const _points = React.useMemo(() => {\n _legendMap.current = {};\n let colorIndex = 0;\n\n return (\n props.data?.map(point => {\n const legend = `${point.legend}`;\n if (!_legendMap.current[legend]) {\n let startColor = point.color ? getColorFromToken(point.color) : getNextColor(colorIndex, 0);\n let endColor = startColor;\n\n if (props.enableGradient) {\n startColor = point.gradient?.[0]!;\n endColor = point.gradient?.[1]!;\n }\n\n _legendMap.current[legend] = { id: `${_legendId}_${colorIndex}`, startColor, endColor };\n colorIndex += 1;\n }\n\n const { startColor, endColor } = _legendMap.current[legend];\n return {\n ...point,\n color: startColor,\n ...(props.enableGradient ? { gradient: [startColor, endColor] as [string, string] } : {}),\n };\n }) ?? []\n );\n }, [props.data, props.enableGradient]);\n\n const _xAxisType = React.useMemo(() => {\n if (_points.length > 0) {\n return getTypeOfAxis(_points[0].x.start, true) as XAxisTypes;\n }\n return XAxisTypes.DateAxis;\n }, [_points]);\n\n const _yAxisType = React.useMemo(() => {\n if (_points.length > 0) {\n return getTypeOfAxis(_points[0].y, false) as YAxisType;\n }\n return YAxisType.StringAxis;\n }, [_points]);\n\n const _yAxisPadding = React.useMemo(() => {\n return getScalePadding(props.yAxisPadding, undefined, 1 / 2);\n }, [props.yAxisPadding]);\n\n const _dateFormatOptions = React.useMemo(() => {\n if (_xAxisType !== XAxisTypes.DateAxis) {\n return undefined;\n }\n\n let lowestFormatLevel = 100;\n let highestFormatLevel = -1;\n _points.forEach(p => {\n const startFormatLevel = getDateFormatLevel(p.x.start as Date, useUTC as boolean);\n const endFormatLevel = getDateFormatLevel(p.x.end as Date, useUTC as boolean);\n lowestFormatLevel = Math.min(lowestFormatLevel, startFormatLevel, endFormatLevel);\n highestFormatLevel = Math.max(highestFormatLevel, startFormatLevel, endFormatLevel);\n });\n\n return getMultiLevelDateTimeFormatOptions(lowestFormatLevel, highestFormatLevel);\n }, [useUTC, _points, _xAxisType]);\n\n const _mapYValueToXValues = React.useCallback(() => {\n const yValueToXValues: Record<string, number[]> = {};\n _points.forEach(point => {\n if (!yValueToXValues[point.y]) {\n yValueToXValues[point.y] = [];\n }\n yValueToXValues[point.y].push(+point.x.end - +point.x.start);\n });\n return yValueToXValues;\n }, [_points]);\n\n const _getOrderedYAxisLabels = React.useCallback(() => {\n const yValueToXValues = _mapYValueToXValues();\n\n if (_yAxisType !== YAxisType.StringAxis) {\n return Object.keys(yValueToXValues).sort((a, b) => +a - +b);\n }\n\n if (yAxisCategoryOrder === 'default') {\n return Object.keys(yValueToXValues).reverse();\n }\n return sortAxisCategories(yValueToXValues, yAxisCategoryOrder);\n }, [_mapYValueToXValues, _yAxisType, yAxisCategoryOrder]);\n\n const _yAxisLabels = React.useMemo(() => _getOrderedYAxisLabels(), [_getOrderedYAxisLabels]);\n\n const _getDomainNRangeValues = React.useCallback(\n (\n points: GanttChartDataPoint[],\n margins: Margins,\n containerWidth: number,\n chartType: ChartTypes,\n isRTL: boolean,\n xAxisType: XAxisTypes,\n barWidth: number,\n tickValues: Date[] | number[] | undefined,\n ): IDomainNRange => {\n const xValues: (Date | number)[] = [];\n points.forEach(point => {\n xValues.push(point.x.start, point.x.end);\n });\n\n const xMin = d3Min(xValues) || 0;\n const xMax = d3Max(xValues) || 0;\n\n return {\n dStartValue: isRTL ? xMax : xMin,\n dEndValue: isRTL ? xMin : xMax,\n rStartValue: margins.left!,\n rEndValue: containerWidth - margins.right!,\n };\n },\n [],\n );\n\n const _getMargins = React.useCallback((margins: Margins) => {\n _margins.current = margins;\n }, []);\n\n const _getFormattedXValue = React.useCallback(\n (point: GanttChartDataPoint): string => {\n let formattedStartX: string;\n let formattedEndX: string;\n\n if (_xAxisType === XAxisTypes.DateAxis) {\n formattedStartX = formatDateToLocaleString(\n point.x.start as Date,\n props.culture,\n useUTC as boolean,\n false,\n _dateFormatOptions,\n );\n formattedEndX = formatDateToLocaleString(\n point.x.end as Date,\n props.culture,\n useUTC as boolean,\n false,\n _dateFormatOptions,\n );\n } else {\n formattedStartX = point.x.start.toString();\n formattedEndX = point.x.end.toString();\n }\n\n return `${formattedStartX} - ${formattedEndX}`;\n },\n [props.culture, useUTC, _dateFormatOptions, _xAxisType],\n );\n\n const _getCustomizedCallout = React.useCallback(() => {\n const defaultRender = (point?: GanttChartDataPoint): JSXElement | null => {\n return point ? (\n <ChartPopover\n isPopoverOpen={isPopoverOpen}\n clickPosition={clickPosition}\n XValue={point.yAxisCalloutData || point.y.toString()}\n legend={point.legend}\n YValue={point.xAxisCalloutData || _getFormattedXValue(point)}\n color={point.color}\n culture={props.culture}\n />\n ) : null;\n };\n\n return props.onRenderCalloutPerDataPoint\n ? props.onRenderCalloutPerDataPoint(calloutDataPoint, defaultRender)\n : null;\n //eslint-disable-next-line react-hooks/exhaustive-deps\n }, [_getFormattedXValue, calloutDataPoint, props.culture, props.onRenderCalloutPerDataPoint]);\n\n const _getAriaLabel = React.useCallback(\n (point: GanttChartDataPoint): string => {\n const xValue = point.xAxisCalloutData || _getFormattedXValue(point);\n const yValue = point.yAxisCalloutData || point.y;\n return (\n point.callOutAccessibilityData?.ariaLabel ||\n `${yValue}. ` + (point.legend ? `${point.legend}, ` : '') + `${xValue}.`\n );\n },\n [_getFormattedXValue],\n );\n\n const _getHighlightedLegend = React.useCallback(() => {\n return selectedLegends.length > 0 ? selectedLegends : hoveredLegend ? [hoveredLegend] : [];\n }, [hoveredLegend, selectedLegends]);\n\n /**\n * This function checks if the given legend is highlighted or not.\n * A legend can be highlighted in 2 ways:\n * 1. selection: if the user clicks on it\n * 2. hovering: if there is no selected legend and the user hovers over it\n */\n const _legendHighlighted = React.useCallback(\n (legend: string | undefined) => {\n return _getHighlightedLegend().includes(`${legend}`);\n },\n [_getHighlightedLegend],\n );\n\n /**\n * This function checks if none of the legends is selected or hovered.\n */\n const _noLegendHighlighted = React.useCallback(() => {\n return _getHighlightedLegend().length === 0;\n }, [_getHighlightedLegend]);\n\n const _showCallout = React.useCallback(\n (target: React.MouseEvent<SVGElement> | React.FocusEvent<SVGElement>, point: GanttChartDataPoint) => {\n if (!(_noLegendHighlighted() || _legendHighlighted(point.legend)) || _calloutAnchorPoint.current === point) {\n return;\n }\n if ('clientX' in target && 'clientY' in target) {\n updatePosition(target.clientX, target.clientY);\n } else {\n const rect = (target.target as SVGElement).getBoundingClientRect();\n updatePosition(rect.left, rect.top);\n }\n _calloutAnchorPoint.current = point;\n setPopoverOpen(true);\n setCalloutLegend(point.legend!);\n setCalloutColor(point.color!);\n setXCalloutValue(point.yAxisCalloutData || point.y.toString());\n setYCalloutValue(point.xAxisCalloutData! || _getFormattedXValue(point));\n setCalloutDataPoint(point);\n },\n [_getFormattedXValue, _legendHighlighted, _noLegendHighlighted],\n );\n\n const _onBarFocus = React.useCallback(\n (point: GanttChartDataPoint, focusEvent: React.FocusEvent<SVGElement>): void => {\n _showCallout(focusEvent, point);\n },\n [_showCallout],\n );\n\n const _onBarHover = React.useCallback(\n (point: GanttChartDataPoint, mouseEvent: React.MouseEvent<SVGElement>): void => {\n _showCallout(mouseEvent, point);\n },\n [_showCallout],\n );\n\n const _onBarLeave = React.useCallback((): void => {\n // do nothing\n }, []);\n\n const _handleChartMouseLeave = React.useCallback((): void => {\n _calloutAnchorPoint.current = null;\n setPopoverOpen(false);\n setCalloutLegend('');\n setCalloutColor('');\n setXCalloutValue('');\n setYCalloutValue('');\n setCalloutDataPoint(undefined);\n }, []);\n\n const _getBarHeight = React.useCallback(\n (adjustedValue: number): number => {\n let barHeight: number;\n if (typeof props.barHeight === 'number') {\n barHeight = props.barHeight;\n } else {\n barHeight = adjustedValue;\n }\n if (typeof maxBarHeight === 'number') {\n barHeight = Math.min(barHeight, maxBarHeight);\n }\n barHeight = Math.max(barHeight, MIN_BAR_HEIGHT);\n return barHeight;\n },\n [maxBarHeight, props.barHeight],\n );\n\n const _getOrderedDataPoints = React.useCallback(() => {\n const result: GanttChartDataPoint[] = [];\n\n const yValueToPoints: Record<string, GanttChartDataPoint[]> = {};\n _points.forEach(point => {\n if (!yValueToPoints[point.y]) {\n yValueToPoints[point.y] = [];\n }\n yValueToPoints[point.y].push(point);\n });\n\n for (let i = _yAxisLabels.length - 1; i >= 0; i--) {\n const yValue = _yAxisLabels[i];\n if (yValueToPoints[yValue]) {\n result.push(...yValueToPoints[yValue].sort((a, b) => +a.x.start - +b.x.start));\n }\n }\n\n return result;\n }, [_points, _yAxisLabels]);\n\n const _createBars = React.useCallback(\n ({\n xScale,\n yScalePrimary: yScale,\n }: {\n xScale: DateScale | NumberScale;\n yScalePrimary: NumberScale | StringScale;\n }): JSXElement => {\n const getGradientId = (legend: string | undefined) => {\n const legendId = _legendMap.current[`${legend}`].id;\n return `${legendId}_gradient`;\n };\n\n const gradientDefs: JSXElement[] = [];\n if (props.enableGradient) {\n Object.keys(_legendMap.current).forEach((legend: string, index: number) => {\n const { startColor, endColor } = _legendMap.current[legend];\n gradientDefs.push(\n <linearGradient key={index} id={getGradientId(legend)}>\n <stop offset=\"0\" stopColor={startColor} />\n <stop offset=\"100%\" stopColor={endColor} />\n </linearGradient>,\n );\n });\n }\n\n let scaleBandwidth = 0;\n if (_yAxisType === YAxisType.StringAxis) {\n scaleBandwidth = (yScale as StringScale).bandwidth();\n _barHeight.current = _getBarHeight(scaleBandwidth);\n }\n\n const points = _getOrderedDataPoints();\n const bars = points.map((point: GanttChartDataPoint, index: number) => {\n const rectStartX = xScale(point.x.start);\n const rectEndX = xScale(point.x.end);\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const rectY = yScale(point.y as any)! + (scaleBandwidth - _barHeight.current) / 2;\n\n const shouldHighlight = _noLegendHighlighted() || _legendHighlighted(point.legend);\n\n return (\n <rect\n key={index}\n x={Math.min(rectStartX, rectEndX)}\n y={rectY}\n width={Math.max(Math.abs(rectEndX - rectStartX), 2)}\n height={_barHeight.current}\n rx={props.roundCorners ? 3 : 0}\n fill={props.enableGradient ? `url(#${getGradientId(point.legend)})` : point.color}\n opacity={shouldHighlight ? 1 : 0.1}\n onClick={point.onClick}\n onMouseOver={(event: React.MouseEvent<SVGElement>) => _onBarHover(point, event)}\n onMouseLeave={_onBarLeave}\n onFocus={(event: React.FocusEvent<SVGElement>) => _onBarFocus(point, event)}\n onBlur={_onBarLeave}\n tabIndex={shouldHighlight ? 0 : -1}\n role=\"option\"\n aria-label={_getAriaLabel(point)}\n />\n );\n });\n return (\n <g role=\"listbox\" aria-label={`${points.length} ${points.length === 1 ? 'bar' : 'bars'}`}>\n {gradientDefs.length > 0 ? <defs>{gradientDefs}</defs> : null}\n {bars}\n </g>\n );\n },\n [\n _getAriaLabel,\n _getBarHeight,\n _getOrderedDataPoints,\n _legendHighlighted,\n _noLegendHighlighted,\n _onBarFocus,\n _onBarHover,\n _onBarLeave,\n _yAxisType,\n props.enableGradient,\n props.roundCorners,\n ],\n );\n\n const _onLegendHover = React.useCallback((legend: string): void => {\n setHoveredLegend(legend);\n }, []);\n\n const _onLegendLeave = React.useCallback((): void => {\n setHoveredLegend('');\n }, []);\n\n const _onLegendSelectionChange = React.useCallback(\n (_selectedLegends: string[], event: React.MouseEvent<HTMLButtonElement>, currentLegend?: Legend): void => {\n if (props.legendProps?.canSelectMultipleLegends) {\n setSelectedLegends(_selectedLegends);\n } else {\n setSelectedLegends(_selectedLegends.slice(-1));\n }\n if (props.legendProps?.onChange) {\n props.legendProps.onChange(_selectedLegends, event, currentLegend);\n }\n },\n [props.legendProps],\n );\n\n const _getLegendData = React.useCallback((): JSXElement => {\n const actions: Legend[] = [];\n\n Object.keys(_legendMap.current).forEach((legendTitle: string) => {\n const legend: Legend = {\n title: legendTitle,\n color: _legendMap.current[legendTitle].startColor,\n hoverAction: () => {\n _handleChartMouseLeave();\n _onLegendHover(legendTitle);\n },\n onMouseOutAction: () => {\n _onLegendLeave();\n },\n };\n\n actions.push(legend);\n });\n\n const legends = (\n <Legends\n legends={actions}\n enabledWrapLines={props.enabledLegendsWrapLines}\n overflowText={props.legendsOverflowText}\n onChange={_onLegendSelectionChange}\n {...props.legendProps}\n legendRef={_legendsRef}\n />\n );\n return legends;\n }, [\n _handleChartMouseLeave,\n _onLegendHover,\n _onLegendLeave,\n _onLegendSelectionChange,\n props.enabledLegendsWrapLines,\n props.legendProps,\n props.legendsOverflowText,\n ]);\n\n const _getChartTitle = React.useCallback((): string => {\n return (props.chartTitle ? `${props.chartTitle}. ` : '') + `Gantt chart with ${_points.length} data points. `;\n }, [_points.length, props.chartTitle]);\n\n const _isChartEmpty = React.useCallback((): boolean => {\n return _points.length === 0;\n }, [_points.length]);\n\n const _getYDomainMargins = React.useCallback(\n (containerHeight: number): Margins => {\n let domainMargin = MIN_DOMAIN_MARGIN;\n\n const ySet = new Set<string | number>();\n _points.forEach((point: GanttChartDataPoint) => {\n ySet.add(point.y);\n });\n const uniqueY = Array.from(ySet);\n\n /** Total height available to render the bars */\n const totalHeight =\n containerHeight -\n (_margins.current.top! + MIN_DOMAIN_MARGIN) -\n (_margins.current.bottom! + MIN_DOMAIN_MARGIN);\n\n if (_yAxisType !== YAxisType.StringAxis) {\n _barHeight.current = _getBarHeight(\n calculateAppropriateBarWidth(uniqueY as number[] | Date[], totalHeight, _yAxisPadding),\n );\n domainMargin += _barHeight.current / 2;\n }\n\n return {\n ..._margins.current,\n top: _margins.current.top! + domainMargin,\n bottom: _margins.current.bottom! + domainMargin,\n };\n },\n [_getBarHeight, _points, _yAxisPadding, _yAxisType],\n );\n\n function 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 setPopoverOpen(true);\n }\n }\n\n if (!_isChartEmpty()) {\n _barHeight.current = _getBarHeight(DEFAULT_BAR_HEIGHT);\n\n const calloutProps: ChartPopoverProps = {\n isPopoverOpen,\n clickPosition,\n color: calloutColor,\n legend: calloutLegend,\n XValue: xCalloutValue,\n YValue: yCalloutValue,\n ...props.calloutProps,\n };\n const tickParams: ModifiedCartesianChartProps['tickParams'] = {\n tickValues: props.tickValues,\n tickFormat: props.tickFormat,\n };\n\n return (\n <CartesianChart\n {...props}\n yAxisPadding={_yAxisPadding}\n chartTitle={_getChartTitle()}\n points={_points}\n chartType={ChartTypes.GanttChart}\n xAxisType={_xAxisType}\n yAxisType={_yAxisType}\n componentRef={cartesianChartRef}\n stringDatasetForYAxisDomain={_yAxisLabels}\n calloutProps={calloutProps}\n tickParams={tickParams}\n legendBars={_getLegendData()}\n createYAxis={createYAxisForHorizontalBarChartWithAxis}\n getDomainNRangeValues={_getDomainNRangeValues}\n createStringYAxis={createStringYAxisForHorizontalBarChartWithAxis}\n getMinMaxOfYAxis={findHBCWANumericMinMaxOfY}\n customizedCallout={_getCustomizedCallout()}\n getmargins={_getMargins}\n getYDomainMargins={_getYDomainMargins}\n onChartMouseLeave={_handleChartMouseLeave}\n useUTC={useUTC}\n children={_createBars}\n />\n );\n } else {\n return (\n <div id={_emptyChartId} role={'alert'} style={{ opacity: '0' }} aria-label={'Graph has no data to display'} />\n );\n }\n },\n);\n\nGanttChart.displayName = 'GanttChart';\n"],"names":["React","max","d3Max","min","d3Min","useId","Legends","CartesianChart","ChartPopover","ChartTypes","YAxisType","XAxisTypes","getTypeOfAxis","getNextColor","findHBCWANumericMinMaxOfY","createYAxisForHorizontalBarChartWithAxis","createStringYAxisForHorizontalBarChartWithAxis","areArraysEqual","MIN_DOMAIN_MARGIN","sortAxisCategories","calculateAppropriateBarWidth","getColorFromToken","getScalePadding","getDateFormatLevel","formatDateToLocaleString","getMultiLevelDateTimeFormatOptions","useImageExport","DEFAULT_BAR_HEIGHT","MIN_BAR_HEIGHT","GanttChart","forwardRef","useUTC","yAxisCategoryOrder","maxBarHeight","props","forwardedRef","_barHeight","useRef","_margins","_calloutAnchorPoint","_emptyChartId","_legendId","_legendMap","_prevProps","calloutColor","setCalloutColor","useState","hoveredLegend","setHoveredLegend","calloutLegend","setCalloutLegend","xCalloutValue","setXCalloutValue","yCalloutValue","setYCalloutValue","selectedLegends","setSelectedLegends","legendProps","calloutDataPoint","setCalloutDataPoint","clickPosition","setClickPosition","x","y","isPopoverOpen","setPopoverOpen","cartesianChartRef","legendsRef","_legendsRef","componentRef","hideLegend","useEffect","current","_points","useMemo","colorIndex","data","map","point","legend","startColor","color","endColor","enableGradient","gradient","id","_xAxisType","length","start","DateAxis","_yAxisType","StringAxis","_yAxisPadding","yAxisPadding","undefined","_dateFormatOptions","lowestFormatLevel","highestFormatLevel","forEach","p","startFormatLevel","endFormatLevel","end","Math","_mapYValueToXValues","useCallback","yValueToXValues","push","_getOrderedYAxisLabels","Object","keys","sort","a","b","reverse","_yAxisLabels","_getDomainNRangeValues","points","margins","containerWidth","chartType","isRTL","xAxisType","barWidth","tickValues","xValues","xMin","xMax","dStartValue","dEndValue","rStartValue","left","rEndValue","right","_getMargins","_getFormattedXValue","formattedStartX","formattedEndX","culture","toString","_getCustomizedCallout","defaultRender","XValue","yAxisCalloutData","YValue","xAxisCalloutData","onRenderCalloutPerDataPoint","_getAriaLabel","xValue","yValue","callOutAccessibilityData","ariaLabel","_getHighlightedLegend","_legendHighlighted","includes","_noLegendHighlighted","_showCallout","target","updatePosition","clientX","clientY","rect","getBoundingClientRect","top","_onBarFocus","focusEvent","_onBarHover","mouseEvent","_onBarLeave","_handleChartMouseLeave","_getBarHeight","adjustedValue","barHeight","_getOrderedDataPoints","result","yValueToPoints","i","_createBars","xScale","yScalePrimary","yScale","getGradientId","legendId","gradientDefs","index","linearGradient","key","stop","offset","stopColor","scaleBandwidth","bandwidth","bars","rectStartX","rectEndX","rectY","shouldHighlight","width","abs","height","rx","roundCorners","fill","opacity","onClick","onMouseOver","event","onMouseLeave","onFocus","onBlur","tabIndex","role","aria-label","g","defs","_onLegendHover","_onLegendLeave","_onLegendSelectionChange","_selectedLegends","currentLegend","canSelectMultipleLegends","slice","onChange","_getLegendData","actions","legendTitle","title","hoverAction","onMouseOutAction","legends","enabledWrapLines","enabledLegendsWrapLines","overflowText","legendsOverflowText","legendRef","_getChartTitle","chartTitle","_isChartEmpty","_getYDomainMargins","containerHeight","domainMargin","ySet","Set","add","uniqueY","Array","from","totalHeight","bottom","newX","newY","threshold","distance","sqrt","pow","calloutProps","tickParams","tickFormat","yAxisType","stringDatasetForYAxisDomain","legendBars","createYAxis","getDomainNRangeValues","createStringYAxis","getMinMaxOfYAxis","customizedCallout","getmargins","getYDomainMargins","onChartMouseLeave","children","div","style","displayName"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,OAAOC,KAAK,EAAEC,OAAOC,KAAK,QAAQ,WAAW;AAEtD,SAASC,KAAK,QAAQ,4BAA4B;AAGlD,SAASC,OAAO,QAAQ,mBAAmB;AAG3C,SAASC,cAAc,QAAQ,4BAA4B;AAE3D,SAASC,YAAY,QAAQ,mCAAmC;AAGh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G2L;gBAAM1L,GAAG2L;YAAK;YACpCzL,eAAe;QACjB;IACF;IAEA,IAAI,CAAC4K,iBAAiB;QACpBzM,WAAWoC,OAAO,GAAGkG,cAAc/I;QAEnC,MAAMoO,eAAkC;YACtC/L;YACAJ;YACAqB,OAAOrC;YACPmC,QAAQ9B;YACR6F,QAAQ3F;YACR6F,QAAQ3F;YACR,GAAGnB,MAAM6N,YAAY;QACvB;QACA,MAAMC,aAAwD;YAC5DpI,YAAY1F,MAAM0F,UAAU;YAC5BqI,YAAY/N,MAAM+N,UAAU;QAC9B;QAEA,qBACE,oBAAC1P;YACE,GAAG2B,KAAK;YACT2D,cAAcD;YACdgJ,YAAYD;YACZtH,QAAQ5C;YACR+C,WAAW/G,WAAWoB,UAAU;YAChC6F,WAAWpC;YACX4K,WAAWxK;YACXrB,cAAcH;YACdiM,6BAA6BhJ;YAC7B4I,cAAcA;YACdC,YAAYA;YACZI,YAAYrC;YACZsC,aAAatP;YACbuP,uBAAuBlJ;YACvBmJ,mBAAmBvP;YACnBwP,kBAAkB1P;YAClB2P,mBAAmB7H;YACnB8H,YAAYpI;YACZqI,mBAAmB7B;YACnB8B,mBAAmBnG;YACnB1I,QAAQA;YACR8O,UAAU5F;;IAGhB,OAAO;QACL,qBACE,oBAAC6F;YAAIzL,IAAI7C;YAAe2K,MAAM;YAAS4D,OAAO;gBAAEpE,SAAS;YAAI;YAAGS,cAAY;;IAEhF;AACF,GACA;AAEFvL,WAAWmP,WAAW,GAAG"}
1
+ {"version":3,"sources":["../src/components/GanttChart/GanttChart.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { max as d3Max, min as d3Min } from 'd3-array';\nimport type { ScaleLinear, ScaleBand, ScaleTime } from 'd3-scale';\nimport { useId } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport type { Legend } from '../Legends/index';\nimport { Legends } from '../Legends/index';\nimport type { Margins, GanttChartDataPoint } from '../../types/DataPoint';\nimport type { ModifiedCartesianChartProps } from '../CommonComponents/index';\nimport { CartesianChart } from '../CommonComponents/index';\nimport type { GanttChartProps } from './GanttChart.types';\nimport { ChartPopover } from '../CommonComponents/ChartPopover';\nimport type { ChartPopoverProps } from '../../index';\nimport type { IDomainNRange } from '../../utilities/index';\nimport {\n ChartTypes,\n YAxisType,\n XAxisTypes,\n getTypeOfAxis,\n getNextColor,\n findHBCWANumericMinMaxOfY,\n createYAxisForHorizontalBarChartWithAxis,\n createStringYAxisForHorizontalBarChartWithAxis,\n areArraysEqual,\n MIN_DOMAIN_MARGIN,\n sortAxisCategories,\n calculateAppropriateBarWidth,\n getColorFromToken,\n getScalePadding,\n getDateFormatLevel,\n} from '../../utilities/index';\nimport { formatDateToLocaleString, getMultiLevelDateTimeFormatOptions } from '@fluentui/chart-utilities';\nimport { useImageExport } from '../../utilities/hooks';\n\ntype NumberScale = ScaleLinear<number, number>;\ntype StringScale = ScaleBand<string>;\ntype DateScale = ScaleTime<Date, number>;\n\nconst DEFAULT_BAR_HEIGHT = 24;\nconst MIN_BAR_HEIGHT = 1;\n\nexport const GanttChart: React.FunctionComponent<GanttChartProps> = React.forwardRef<HTMLDivElement, GanttChartProps>(\n ({ useUTC = true, yAxisCategoryOrder = 'default', maxBarHeight = 24, ...props }, forwardedRef) => {\n const _barHeight = React.useRef<number>(DEFAULT_BAR_HEIGHT);\n const _margins = React.useRef<Margins>({});\n const _calloutAnchorPoint = React.useRef<GanttChartDataPoint | null>(null);\n const _emptyChartId = useId('Gantt_empty');\n const _legendId = useId('gantt_legend');\n const _legendMap = React.useRef<Record<string, { id: string; startColor: string; endColor: string }>>({});\n const _prevProps = React.useRef<Partial<GanttChartProps>>({});\n\n const [calloutColor, setCalloutColor] = React.useState<string>('');\n const [hoveredLegend, setHoveredLegend] = React.useState<string>('');\n const [calloutLegend, setCalloutLegend] = React.useState<string>('');\n const [xCalloutValue, setXCalloutValue] = React.useState<string>('');\n const [yCalloutValue, setYCalloutValue] = React.useState<string>('');\n const [selectedLegends, setSelectedLegends] = React.useState<string[]>(props.legendProps?.selectedLegends || []);\n const [calloutDataPoint, setCalloutDataPoint] = React.useState<GanttChartDataPoint>();\n const [clickPosition, setClickPosition] = React.useState({ x: 0, y: 0 });\n const [isPopoverOpen, setPopoverOpen] = React.useState(false);\n const { cartesianChartRef, legendsRef: _legendsRef } = useImageExport(props.componentRef, props.hideLegend);\n\n React.useEffect(() => {\n if (!areArraysEqual(_prevProps.current.legendProps?.selectedLegends, props.legendProps?.selectedLegends)) {\n setSelectedLegends(props.legendProps?.selectedLegends || []);\n }\n _prevProps.current = props;\n }, [props]);\n\n const _points = React.useMemo(() => {\n _legendMap.current = {};\n let colorIndex = 0;\n\n return (\n props.data?.map(point => {\n const legend = `${point.legend}`;\n if (!_legendMap.current[legend]) {\n let startColor = point.color ? getColorFromToken(point.color) : getNextColor(colorIndex, 0);\n let endColor = startColor;\n\n if (props.enableGradient) {\n startColor = point.gradient?.[0]!;\n endColor = point.gradient?.[1]!;\n }\n\n _legendMap.current[legend] = { id: `${_legendId}_${colorIndex}`, startColor, endColor };\n colorIndex += 1;\n }\n\n const { startColor, endColor } = _legendMap.current[legend];\n return {\n ...point,\n color: startColor,\n ...(props.enableGradient ? { gradient: [startColor, endColor] as [string, string] } : {}),\n };\n }) ?? []\n );\n }, [props.data, props.enableGradient]);\n\n const _xAxisType = React.useMemo(() => {\n if (_points.length > 0) {\n return getTypeOfAxis(_points[0].x.start, true) as XAxisTypes;\n }\n return XAxisTypes.DateAxis;\n }, [_points]);\n\n const _yAxisType = React.useMemo(() => {\n if (_points.length > 0) {\n return getTypeOfAxis(_points[0].y, false) as YAxisType;\n }\n return YAxisType.StringAxis;\n }, [_points]);\n\n const _yAxisPadding = React.useMemo(() => {\n return getScalePadding(props.yAxisPadding, undefined, 1 / 2);\n }, [props.yAxisPadding]);\n\n const _dateFormatOptions = React.useMemo(() => {\n if (_xAxisType !== XAxisTypes.DateAxis) {\n return undefined;\n }\n\n let lowestFormatLevel = 100;\n let highestFormatLevel = -1;\n _points.forEach(p => {\n const startFormatLevel = getDateFormatLevel(p.x.start as Date, useUTC as boolean);\n const endFormatLevel = getDateFormatLevel(p.x.end as Date, useUTC as boolean);\n lowestFormatLevel = Math.min(lowestFormatLevel, startFormatLevel, endFormatLevel);\n highestFormatLevel = Math.max(highestFormatLevel, startFormatLevel, endFormatLevel);\n });\n\n return getMultiLevelDateTimeFormatOptions(lowestFormatLevel, highestFormatLevel);\n }, [useUTC, _points, _xAxisType]);\n\n const _mapYValueToXValues = React.useCallback(() => {\n const yValueToXValues: Record<string, number[]> = {};\n _points.forEach(point => {\n if (!yValueToXValues[point.y]) {\n yValueToXValues[point.y] = [];\n }\n yValueToXValues[point.y].push(+point.x.end - +point.x.start);\n });\n return yValueToXValues;\n }, [_points]);\n\n const _getOrderedYAxisLabels = React.useCallback(() => {\n const yValueToXValues = _mapYValueToXValues();\n\n if (_yAxisType !== YAxisType.StringAxis) {\n return Object.keys(yValueToXValues).sort((a, b) => +a - +b);\n }\n\n if (yAxisCategoryOrder === 'default') {\n return Object.keys(yValueToXValues).reverse();\n }\n return sortAxisCategories(yValueToXValues, yAxisCategoryOrder);\n }, [_mapYValueToXValues, _yAxisType, yAxisCategoryOrder]);\n\n const _yAxisLabels = React.useMemo(() => _getOrderedYAxisLabels(), [_getOrderedYAxisLabels]);\n\n const _getDomainNRangeValues = React.useCallback(\n (\n points: GanttChartDataPoint[],\n margins: Margins,\n containerWidth: number,\n chartType: ChartTypes,\n isRTL: boolean,\n xAxisType: XAxisTypes,\n barWidth: number,\n tickValues: Date[] | number[] | undefined,\n ): IDomainNRange => {\n const xValues: (Date | number)[] = [];\n points.forEach(point => {\n xValues.push(point.x.start, point.x.end);\n });\n\n const xMin = d3Min(xValues) || 0;\n const xMax = d3Max(xValues) || 0;\n\n return {\n dStartValue: isRTL ? xMax : xMin,\n dEndValue: isRTL ? xMin : xMax,\n rStartValue: margins.left!,\n rEndValue: containerWidth - margins.right!,\n };\n },\n [],\n );\n\n const _getMargins = React.useCallback((margins: Margins) => {\n _margins.current = margins;\n }, []);\n\n const _getFormattedXValue = React.useCallback(\n (point: GanttChartDataPoint): string => {\n let formattedStartX: string;\n let formattedEndX: string;\n\n if (_xAxisType === XAxisTypes.DateAxis) {\n formattedStartX = formatDateToLocaleString(\n point.x.start as Date,\n props.culture,\n useUTC as boolean,\n false,\n _dateFormatOptions,\n );\n formattedEndX = formatDateToLocaleString(\n point.x.end as Date,\n props.culture,\n useUTC as boolean,\n false,\n _dateFormatOptions,\n );\n } else {\n formattedStartX = point.x.start.toString();\n formattedEndX = point.x.end.toString();\n }\n\n return `${formattedStartX} - ${formattedEndX}`;\n },\n [props.culture, useUTC, _dateFormatOptions, _xAxisType],\n );\n\n const _getCustomizedCallout = React.useCallback(() => {\n const defaultRender = (point?: GanttChartDataPoint): JSXElement | null => {\n return point ? (\n <ChartPopover\n isPopoverOpen={isPopoverOpen}\n clickPosition={clickPosition}\n XValue={point.yAxisCalloutData || point.y.toString()}\n legend={point.legend}\n YValue={point.xAxisCalloutData || _getFormattedXValue(point)}\n color={point.color}\n culture={props.culture}\n />\n ) : null;\n };\n\n return props.onRenderCalloutPerDataPoint\n ? props.onRenderCalloutPerDataPoint(calloutDataPoint, defaultRender)\n : null;\n //eslint-disable-next-line react-hooks/exhaustive-deps\n }, [_getFormattedXValue, calloutDataPoint, props.culture, props.onRenderCalloutPerDataPoint]);\n\n const _getAriaLabel = React.useCallback(\n (point: GanttChartDataPoint): string => {\n const xValue = point.xAxisCalloutData || _getFormattedXValue(point);\n const yValue = point.yAxisCalloutData || point.y;\n return (\n point.callOutAccessibilityData?.ariaLabel ||\n `${yValue}. ` + (point.legend ? `${point.legend}, ` : '') + `${xValue}.`\n );\n },\n [_getFormattedXValue],\n );\n\n const _getHighlightedLegend = React.useCallback(() => {\n return selectedLegends.length > 0 ? selectedLegends : hoveredLegend ? [hoveredLegend] : [];\n }, [hoveredLegend, selectedLegends]);\n\n /**\n * This function checks if the given legend is highlighted or not.\n * A legend can be highlighted in 2 ways:\n * 1. selection: if the user clicks on it\n * 2. hovering: if there is no selected legend and the user hovers over it\n */\n const _legendHighlighted = React.useCallback(\n (legend: string | undefined) => {\n return _getHighlightedLegend().includes(`${legend}`);\n },\n [_getHighlightedLegend],\n );\n\n /**\n * This function checks if none of the legends is selected or hovered.\n */\n const _noLegendHighlighted = React.useCallback(() => {\n return _getHighlightedLegend().length === 0;\n }, [_getHighlightedLegend]);\n\n const _showCallout = React.useCallback(\n (target: React.MouseEvent<SVGElement> | React.FocusEvent<SVGElement>, point: GanttChartDataPoint) => {\n if (!(_noLegendHighlighted() || _legendHighlighted(point.legend)) || _calloutAnchorPoint.current === point) {\n return;\n }\n if ('clientX' in target && 'clientY' in target) {\n updatePosition(target.clientX, target.clientY);\n } else {\n const rect = (target.target as SVGElement).getBoundingClientRect();\n updatePosition(rect.left, rect.top);\n }\n _calloutAnchorPoint.current = point;\n setPopoverOpen(true);\n setCalloutLegend(point.legend!);\n setCalloutColor(point.color!);\n setXCalloutValue(point.yAxisCalloutData || point.y.toString());\n setYCalloutValue(point.xAxisCalloutData! || _getFormattedXValue(point));\n setCalloutDataPoint(point);\n },\n [_getFormattedXValue, _legendHighlighted, _noLegendHighlighted],\n );\n\n const _onBarFocus = React.useCallback(\n (point: GanttChartDataPoint, focusEvent: React.FocusEvent<SVGElement>): void => {\n _showCallout(focusEvent, point);\n },\n [_showCallout],\n );\n\n const _onBarHover = React.useCallback(\n (point: GanttChartDataPoint, mouseEvent: React.MouseEvent<SVGElement>): void => {\n _showCallout(mouseEvent, point);\n },\n [_showCallout],\n );\n\n const _onBarLeave = React.useCallback((): void => {\n // do nothing\n }, []);\n\n const _handleChartMouseLeave = React.useCallback((): void => {\n _calloutAnchorPoint.current = null;\n setPopoverOpen(false);\n setCalloutLegend('');\n setCalloutColor('');\n setXCalloutValue('');\n setYCalloutValue('');\n setCalloutDataPoint(undefined);\n }, []);\n\n const _getBarHeight = React.useCallback(\n (adjustedValue: number): number => {\n let barHeight: number;\n if (typeof props.barHeight === 'number') {\n barHeight = props.barHeight;\n } else {\n barHeight = adjustedValue;\n }\n if (typeof maxBarHeight === 'number') {\n barHeight = Math.min(barHeight, maxBarHeight);\n }\n barHeight = Math.max(barHeight, MIN_BAR_HEIGHT);\n return barHeight;\n },\n [maxBarHeight, props.barHeight],\n );\n\n const _getOrderedDataPoints = React.useCallback(() => {\n const result: GanttChartDataPoint[] = [];\n\n const yValueToPoints: Record<string, GanttChartDataPoint[]> = {};\n _points.forEach(point => {\n if (!yValueToPoints[point.y]) {\n yValueToPoints[point.y] = [];\n }\n yValueToPoints[point.y].push(point);\n });\n\n for (let i = _yAxisLabels.length - 1; i >= 0; i--) {\n const yValue = _yAxisLabels[i];\n if (yValueToPoints[yValue]) {\n result.push(...yValueToPoints[yValue].sort((a, b) => +a.x.start - +b.x.start));\n }\n }\n\n return result;\n }, [_points, _yAxisLabels]);\n\n const _createBars = React.useCallback(\n ({\n xScale,\n yScalePrimary: yScale,\n }: {\n xScale: DateScale | NumberScale;\n yScalePrimary: NumberScale | StringScale;\n }): JSXElement => {\n const getGradientId = (legend: string | undefined) => {\n const legendId = _legendMap.current[`${legend}`].id;\n return `${legendId}_gradient`;\n };\n\n const gradientDefs: JSXElement[] = [];\n if (props.enableGradient) {\n Object.keys(_legendMap.current).forEach((legend: string, index: number) => {\n const { startColor, endColor } = _legendMap.current[legend];\n gradientDefs.push(\n <linearGradient key={index} id={getGradientId(legend)}>\n <stop offset=\"0\" stopColor={startColor} />\n <stop offset=\"100%\" stopColor={endColor} />\n </linearGradient>,\n );\n });\n }\n\n let scaleBandwidth = 0;\n if (_yAxisType === YAxisType.StringAxis) {\n scaleBandwidth = (yScale as StringScale).bandwidth();\n _barHeight.current = _getBarHeight(scaleBandwidth);\n }\n\n const points = _getOrderedDataPoints();\n const bars = points.map((point: GanttChartDataPoint, index: number) => {\n const rectStartX = xScale(point.x.start);\n const rectEndX = xScale(point.x.end);\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const rectY = yScale(point.y as any)! + (scaleBandwidth - _barHeight.current) / 2;\n\n const shouldHighlight = _noLegendHighlighted() || _legendHighlighted(point.legend);\n\n return (\n <rect\n key={index}\n x={Math.min(rectStartX, rectEndX)}\n y={rectY}\n width={Math.max(Math.abs(rectEndX - rectStartX), 2)}\n height={_barHeight.current}\n rx={props.roundCorners ? 3 : 0}\n fill={props.enableGradient ? `url(#${getGradientId(point.legend)})` : point.color}\n opacity={shouldHighlight ? 1 : 0.1}\n onClick={point.onClick}\n onMouseOver={(event: React.MouseEvent<SVGElement>) => _onBarHover(point, event)}\n onMouseLeave={_onBarLeave}\n onFocus={(event: React.FocusEvent<SVGElement>) => _onBarFocus(point, event)}\n onBlur={_onBarLeave}\n tabIndex={shouldHighlight ? 0 : -1}\n role=\"option\"\n aria-label={_getAriaLabel(point)}\n />\n );\n });\n return (\n <g role=\"listbox\" aria-label={`${points.length} ${points.length === 1 ? 'bar' : 'bars'}`}>\n {gradientDefs.length > 0 ? <defs>{gradientDefs}</defs> : null}\n {bars}\n </g>\n );\n },\n [\n _getAriaLabel,\n _getBarHeight,\n _getOrderedDataPoints,\n _legendHighlighted,\n _noLegendHighlighted,\n _onBarFocus,\n _onBarHover,\n _onBarLeave,\n _yAxisType,\n props.enableGradient,\n props.roundCorners,\n ],\n );\n\n const _onLegendHover = React.useCallback((legend: string): void => {\n setHoveredLegend(legend);\n }, []);\n\n const _onLegendLeave = React.useCallback((): void => {\n setHoveredLegend('');\n }, []);\n\n const _onLegendSelectionChange = React.useCallback(\n (_selectedLegends: string[], event: React.MouseEvent<HTMLButtonElement>, currentLegend?: Legend): void => {\n if (props.legendProps?.canSelectMultipleLegends) {\n setSelectedLegends(_selectedLegends);\n } else {\n setSelectedLegends(_selectedLegends.slice(-1));\n }\n if (props.legendProps?.onChange) {\n props.legendProps.onChange(_selectedLegends, event, currentLegend);\n }\n },\n [props.legendProps],\n );\n\n const _getLegendData = React.useCallback((): JSXElement => {\n const actions: Legend[] = [];\n\n Object.keys(_legendMap.current).forEach((legendTitle: string) => {\n const legend: Legend = {\n title: legendTitle,\n color: _legendMap.current[legendTitle].startColor,\n hoverAction: () => {\n _handleChartMouseLeave();\n _onLegendHover(legendTitle);\n },\n onMouseOutAction: () => {\n _onLegendLeave();\n },\n };\n\n actions.push(legend);\n });\n\n const legends = (\n <Legends\n legends={actions}\n enabledWrapLines={props.enabledLegendsWrapLines}\n overflowText={props.legendsOverflowText}\n onChange={_onLegendSelectionChange}\n {...props.legendProps}\n legendRef={_legendsRef}\n />\n );\n return legends;\n }, [\n _handleChartMouseLeave,\n _onLegendHover,\n _onLegendLeave,\n _onLegendSelectionChange,\n props.enabledLegendsWrapLines,\n props.legendProps,\n props.legendsOverflowText,\n ]);\n\n const _getChartTitle = React.useCallback((): string => {\n return (props.chartTitle ? `${props.chartTitle}. ` : '') + `Gantt chart with ${_points.length} data points. `;\n }, [_points.length, props.chartTitle]);\n\n const _isChartEmpty = React.useCallback((): boolean => {\n return _points.length === 0;\n }, [_points.length]);\n\n const _getYDomainMargins = React.useCallback(\n (containerHeight: number): Margins => {\n let domainMargin = MIN_DOMAIN_MARGIN;\n\n const ySet = new Set<string | number>();\n _points.forEach((point: GanttChartDataPoint) => {\n ySet.add(point.y);\n });\n const uniqueY = Array.from(ySet);\n\n /** Total height available to render the bars */\n const totalHeight =\n containerHeight -\n (_margins.current.top! + MIN_DOMAIN_MARGIN) -\n (_margins.current.bottom! + MIN_DOMAIN_MARGIN);\n\n if (_yAxisType !== YAxisType.StringAxis) {\n _barHeight.current = _getBarHeight(\n calculateAppropriateBarWidth(uniqueY as number[] | Date[], totalHeight, _yAxisPadding),\n );\n domainMargin += _barHeight.current / 2;\n }\n\n return {\n ..._margins.current,\n top: _margins.current.top! + domainMargin,\n bottom: _margins.current.bottom! + domainMargin,\n };\n },\n [_getBarHeight, _points, _yAxisPadding, _yAxisType],\n );\n\n function 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 setPopoverOpen(true);\n }\n }\n\n if (!_isChartEmpty()) {\n _barHeight.current = _getBarHeight(DEFAULT_BAR_HEIGHT);\n\n const calloutProps: ChartPopoverProps = {\n isPopoverOpen,\n clickPosition,\n color: calloutColor,\n legend: calloutLegend,\n XValue: xCalloutValue,\n YValue: yCalloutValue,\n ...props.calloutProps,\n };\n const tickParams: ModifiedCartesianChartProps['tickParams'] = {\n tickValues: props.tickValues,\n tickFormat: props.tickFormat,\n };\n\n return (\n <CartesianChart\n {...props}\n yAxisPadding={_yAxisPadding}\n chartTitle={_getChartTitle()}\n points={_points}\n chartType={ChartTypes.GanttChart}\n xAxisType={_xAxisType}\n yAxisType={_yAxisType}\n componentRef={cartesianChartRef}\n stringDatasetForYAxisDomain={_yAxisLabels}\n calloutProps={calloutProps}\n tickParams={tickParams}\n legendBars={_getLegendData()}\n createYAxis={createYAxisForHorizontalBarChartWithAxis}\n getDomainNRangeValues={_getDomainNRangeValues}\n createStringYAxis={createStringYAxisForHorizontalBarChartWithAxis}\n getMinMaxOfYAxis={findHBCWANumericMinMaxOfY}\n customizedCallout={_getCustomizedCallout()}\n getmargins={_getMargins}\n getYDomainMargins={_getYDomainMargins}\n onChartMouseLeave={_handleChartMouseLeave}\n useUTC={useUTC}\n children={_createBars}\n />\n );\n } else {\n return (\n <div id={_emptyChartId} role={'alert'} style={{ opacity: '0' }} aria-label={'Graph has no data to display'} />\n );\n }\n },\n);\n\nGanttChart.displayName = 'GanttChart';\n"],"names":["React","max","d3Max","min","d3Min","useId","Legends","CartesianChart","ChartPopover","ChartTypes","YAxisType","XAxisTypes","getTypeOfAxis","getNextColor","findHBCWANumericMinMaxOfY","createYAxisForHorizontalBarChartWithAxis","createStringYAxisForHorizontalBarChartWithAxis","areArraysEqual","MIN_DOMAIN_MARGIN","sortAxisCategories","calculateAppropriateBarWidth","getColorFromToken","getScalePadding","getDateFormatLevel","formatDateToLocaleString","getMultiLevelDateTimeFormatOptions","useImageExport","DEFAULT_BAR_HEIGHT","MIN_BAR_HEIGHT","GanttChart","forwardRef","useUTC","yAxisCategoryOrder","maxBarHeight","props","forwardedRef","_barHeight","useRef","_margins","_calloutAnchorPoint","_emptyChartId","_legendId","_legendMap","_prevProps","calloutColor","setCalloutColor","useState","hoveredLegend","setHoveredLegend","calloutLegend","setCalloutLegend","xCalloutValue","setXCalloutValue","yCalloutValue","setYCalloutValue","selectedLegends","setSelectedLegends","legendProps","calloutDataPoint","setCalloutDataPoint","clickPosition","setClickPosition","x","y","isPopoverOpen","setPopoverOpen","cartesianChartRef","legendsRef","_legendsRef","componentRef","hideLegend","useEffect","current","_points","useMemo","colorIndex","data","map","point","legend","startColor","color","endColor","enableGradient","gradient","id","_xAxisType","length","start","DateAxis","_yAxisType","StringAxis","_yAxisPadding","yAxisPadding","undefined","_dateFormatOptions","lowestFormatLevel","highestFormatLevel","forEach","p","startFormatLevel","endFormatLevel","end","Math","_mapYValueToXValues","useCallback","yValueToXValues","push","_getOrderedYAxisLabels","Object","keys","sort","a","b","reverse","_yAxisLabels","_getDomainNRangeValues","points","margins","containerWidth","chartType","isRTL","xAxisType","barWidth","tickValues","xValues","xMin","xMax","dStartValue","dEndValue","rStartValue","left","rEndValue","right","_getMargins","_getFormattedXValue","formattedStartX","formattedEndX","culture","toString","_getCustomizedCallout","defaultRender","XValue","yAxisCalloutData","YValue","xAxisCalloutData","onRenderCalloutPerDataPoint","_getAriaLabel","xValue","yValue","callOutAccessibilityData","ariaLabel","_getHighlightedLegend","_legendHighlighted","includes","_noLegendHighlighted","_showCallout","target","updatePosition","clientX","clientY","rect","getBoundingClientRect","top","_onBarFocus","focusEvent","_onBarHover","mouseEvent","_onBarLeave","_handleChartMouseLeave","_getBarHeight","adjustedValue","barHeight","_getOrderedDataPoints","result","yValueToPoints","i","_createBars","xScale","yScalePrimary","yScale","getGradientId","legendId","gradientDefs","index","linearGradient","key","stop","offset","stopColor","scaleBandwidth","bandwidth","bars","rectStartX","rectEndX","rectY","shouldHighlight","width","abs","height","rx","roundCorners","fill","opacity","onClick","onMouseOver","event","onMouseLeave","onFocus","onBlur","tabIndex","role","aria-label","g","defs","_onLegendHover","_onLegendLeave","_onLegendSelectionChange","_selectedLegends","currentLegend","canSelectMultipleLegends","slice","onChange","_getLegendData","actions","legendTitle","title","hoverAction","onMouseOutAction","legends","enabledWrapLines","enabledLegendsWrapLines","overflowText","legendsOverflowText","legendRef","_getChartTitle","chartTitle","_isChartEmpty","_getYDomainMargins","containerHeight","domainMargin","ySet","Set","add","uniqueY","Array","from","totalHeight","bottom","newX","newY","threshold","distance","sqrt","pow","calloutProps","tickParams","tickFormat","yAxisType","stringDatasetForYAxisDomain","legendBars","createYAxis","getDomainNRangeValues","createStringYAxis","getMinMaxOfYAxis","customizedCallout","getmargins","getYDomainMargins","onChartMouseLeave","children","div","style","displayName"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,OAAOC,KAAK,EAAEC,OAAOC,KAAK,QAAQ,WAAW;AAEtD,SAASC,KAAK,QAAQ,4BAA4B;AAGlD,SAASC,OAAO,QAAQ,sBAAmB;AAG3C,SAASC,cAAc,QAAQ,+BAA4B;AAE3D,SAASC,YAAY,QAAQ,sCAAmC;AAGhE,SACEC,UAAU,EACVC,SAAS,EACTC,UAAU,EACVC,aAAa,EACbC,YAAY,EACZC,yBAAyB,EACzBC,wCAAwC,EACxCC,8CAA8C,EAC9CC,cAAc,EACdC,iBAAiB,EACjBC,kBAAkB,EAClBC,4BAA4B,EAC5BC,iBAAiB,EACjBC,eAAe,EACfC,kBAAkB,QACb,2BAAwB;AAC/B,SAASC,wBAAwB,EAAEC,kCAAkC,QAAQ,4BAA4B;AACzG,SAASC,cAAc,QAAQ,2BAAwB;AAMvD,MAAMC,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/N,MAAM+N,UAAU;QAC9B;QAEA,qBACE,oBAAC1P;YACE,GAAG2B,KAAK;YACT2D,cAAcD;YACdgJ,YAAYD;YACZtH,QAAQ5C;YACR+C,WAAW/G,WAAWoB,UAAU;YAChC6F,WAAWpC;YACX4K,WAAWxK;YACXrB,cAAcH;YACdiM,6BAA6BhJ;YAC7B4I,cAAcA;YACdC,YAAYA;YACZI,YAAYrC;YACZsC,aAAatP;YACbuP,uBAAuBlJ;YACvBmJ,mBAAmBvP;YACnBwP,kBAAkB1P;YAClB2P,mBAAmB7H;YACnB8H,YAAYpI;YACZqI,mBAAmB7B;YACnB8B,mBAAmBnG;YACnB1I,QAAQA;YACR8O,UAAU5F;;IAGhB,OAAO;QACL,qBACE,oBAAC6F;YAAIzL,IAAI7C;YAAe2K,MAAM;YAAS4D,OAAO;gBAAEpE,SAAS;YAAI;YAAGS,cAAY;;IAEhF;AACF,GACA;AAEFvL,WAAWmP,WAAW,GAAG"}
@@ -1,2 +1,2 @@
1
- export * from './GanttChart';
2
- export * from './GanttChart.types';
1
+ export * from "./GanttChart.js";
2
+ export * from "./GanttChart.types.js";
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/GanttChart/index.ts"],"sourcesContent":["export * from './GanttChart';\nexport * from './GanttChart.types';\n"],"names":[],"mappings":"AAAA,cAAc,eAAe;AAC7B,cAAc,qBAAqB"}
1
+ {"version":3,"sources":["../src/components/GanttChart/index.ts"],"sourcesContent":["export * from './GanttChart';\nexport * from './GanttChart.types';\n"],"names":[],"mappings":"AAAA,cAAc,kBAAe;AAC7B,cAAc,wBAAqB"}
@@ -1,15 +1,15 @@
1
1
  'use client';
2
- import * as React from 'react';
3
- import { useGaugeChartStyles } from './useGaugeChartStyles.styles';
4
- import { select as d3Select } from 'd3-selection';
5
- import { arc as d3Arc } from 'd3-shape';
6
- import { Points, areArraysEqual, formatScientificLimitWidth, getAccessibleDataObject, getColorFromToken, getNextColor, pointTypes, useRtl, ChartTitle } from '../../utilities/index';
7
- import { formatToLocaleString } from '@fluentui/chart-utilities';
8
- import { SVGTooltipText } from '../../utilities/SVGTooltipText';
9
- import { Legends, Shape } from '../Legends/index';
10
- import { useArrowNavigationGroup } from '@fluentui/react-tabster';
11
- import { ChartPopover } from '../CommonComponents/ChartPopover';
12
- import { useImageExport } from '../../utilities/hooks';
2
+ import * as React from "react";
3
+ import { useGaugeChartStyles } from "./useGaugeChartStyles.styles.js";
4
+ import { select as d3Select } from "d3-selection";
5
+ import { arc as d3Arc } from "d3-shape";
6
+ import { Points, areArraysEqual, formatScientificLimitWidth, getAccessibleDataObject, getColorFromToken, getNextColor, pointTypes, useRtl, ChartTitle } from "../../utilities/index.js";
7
+ import { formatToLocaleString } from "@fluentui/chart-utilities";
8
+ import { SVGTooltipText } from "../../utilities/SVGTooltipText.js";
9
+ import { Legends, Shape } from "../Legends/index.js";
10
+ import { useArrowNavigationGroup } from "@fluentui/react-tabster";
11
+ import { ChartPopover } from "../CommonComponents/ChartPopover.js";
12
+ import { useImageExport } from "../../utilities/hooks.js";
13
13
  const GAUGE_MARGIN = 16;
14
14
  const LABEL_WIDTH = 36;
15
15
  const LABEL_HEIGHT = 16;