@fluentui/react-charting 5.12.24 → 5.12.27

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 (1168) hide show
  1. package/CHANGELOG.json +52 -1
  2. package/CHANGELOG.md +30 -2
  3. package/dist/react-charting.js +2 -0
  4. package/dist/react-charting.js.map +1 -0
  5. package/dist/react-charting.min.js +2 -0
  6. package/dist/react-charting.min.js.map +1 -0
  7. package/lib/AreaChart.d.ts +1 -0
  8. package/lib/AreaChart.js +2 -0
  9. package/lib/AreaChart.js.map +1 -0
  10. package/lib/CartesianChart.d.ts +1 -0
  11. package/lib/CartesianChart.js +2 -0
  12. package/lib/CartesianChart.js.map +1 -0
  13. package/lib/DonutChart.d.ts +1 -0
  14. package/lib/DonutChart.js +2 -0
  15. package/lib/DonutChart.js.map +1 -0
  16. package/lib/GroupedVerticalBarChart.d.ts +1 -0
  17. package/lib/GroupedVerticalBarChart.js +2 -0
  18. package/lib/GroupedVerticalBarChart.js.map +1 -0
  19. package/lib/HeatMapChart.d.ts +1 -0
  20. package/lib/HeatMapChart.js +2 -0
  21. package/lib/HeatMapChart.js.map +1 -0
  22. package/lib/HorizontalBarChart.d.ts +1 -0
  23. package/lib/HorizontalBarChart.js +2 -0
  24. package/lib/HorizontalBarChart.js.map +1 -0
  25. package/lib/Legends.d.ts +1 -0
  26. package/lib/Legends.js +2 -0
  27. package/lib/Legends.js.map +1 -0
  28. package/lib/LineChart.d.ts +1 -0
  29. package/lib/LineChart.js +2 -0
  30. package/lib/LineChart.js.map +1 -0
  31. package/lib/PieChart.d.ts +1 -0
  32. package/lib/PieChart.js +2 -0
  33. package/lib/PieChart.js.map +1 -0
  34. package/lib/SankeyChart.d.ts +1 -0
  35. package/lib/SankeyChart.js +2 -0
  36. package/lib/SankeyChart.js.map +1 -0
  37. package/lib/Sparkline.d.ts +1 -0
  38. package/lib/Sparkline.js +2 -0
  39. package/lib/Sparkline.js.map +1 -0
  40. package/lib/StackedBarChart.d.ts +1 -0
  41. package/lib/StackedBarChart.js +2 -0
  42. package/lib/StackedBarChart.js.map +1 -0
  43. package/lib/Styling.d.ts +2 -0
  44. package/lib/Styling.js +8 -0
  45. package/lib/Styling.js.map +1 -0
  46. package/lib/TreeChart.d.ts +1 -0
  47. package/lib/TreeChart.js +2 -0
  48. package/lib/TreeChart.js.map +1 -0
  49. package/lib/Utilities.d.ts +2 -0
  50. package/lib/Utilities.js +20 -0
  51. package/lib/Utilities.js.map +1 -0
  52. package/lib/VerticalBarChart.d.ts +1 -0
  53. package/lib/VerticalBarChart.js +2 -0
  54. package/lib/VerticalBarChart.js.map +1 -0
  55. package/lib/VerticalStackedBarChart.d.ts +1 -0
  56. package/lib/VerticalStackedBarChart.js +2 -0
  57. package/lib/VerticalStackedBarChart.js.map +1 -0
  58. package/lib/components/AreaChart/AreaChart.base.d.ts +73 -0
  59. package/lib/components/AreaChart/AreaChart.base.js +489 -0
  60. package/lib/components/AreaChart/AreaChart.base.js.map +1 -0
  61. package/lib/components/AreaChart/AreaChart.d.ts +3 -0
  62. package/lib/components/AreaChart/AreaChart.js +6 -0
  63. package/lib/components/AreaChart/AreaChart.js.map +1 -0
  64. package/lib/components/AreaChart/AreaChart.styles.d.ts +2 -0
  65. package/lib/components/AreaChart/AreaChart.styles.js +7 -0
  66. package/lib/components/AreaChart/AreaChart.styles.js.map +1 -0
  67. package/lib/components/AreaChart/AreaChart.types.d.ts +36 -0
  68. package/lib/components/AreaChart/AreaChart.types.js +2 -0
  69. package/lib/components/AreaChart/AreaChart.types.js.map +1 -0
  70. package/lib/components/AreaChart/index.d.ts +2 -0
  71. package/lib/components/AreaChart/index.js +3 -0
  72. package/lib/components/AreaChart/index.js.map +1 -0
  73. package/lib/components/CommonComponents/CartesianChart.base.d.ts +43 -0
  74. package/lib/components/CommonComponents/CartesianChart.base.js +323 -0
  75. package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -0
  76. package/lib/components/CommonComponents/CartesianChart.d.ts +3 -0
  77. package/lib/components/CommonComponents/CartesianChart.js +5 -0
  78. package/lib/components/CommonComponents/CartesianChart.js.map +1 -0
  79. package/lib/components/CommonComponents/CartesianChart.styles.d.ts +2 -0
  80. package/lib/components/CommonComponents/CartesianChart.styles.js +163 -0
  81. package/lib/components/CommonComponents/CartesianChart.styles.js.map +1 -0
  82. package/lib/components/CommonComponents/CartesianChart.types.d.ts +400 -0
  83. package/lib/components/CommonComponents/CartesianChart.types.js +2 -0
  84. package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -0
  85. package/lib/components/CommonComponents/index.d.ts +2 -0
  86. package/lib/components/CommonComponents/index.js +3 -0
  87. package/lib/components/CommonComponents/index.js.map +1 -0
  88. package/lib/components/DonutChart/Arc/Arc.d.ts +19 -0
  89. package/lib/components/DonutChart/Arc/Arc.js +77 -0
  90. package/lib/components/DonutChart/Arc/Arc.js.map +1 -0
  91. package/lib/components/DonutChart/Arc/Arc.styles.d.ts +2 -0
  92. package/lib/components/DonutChart/Arc/Arc.styles.js +32 -0
  93. package/lib/components/DonutChart/Arc/Arc.styles.js.map +1 -0
  94. package/lib/components/DonutChart/Arc/Arc.types.d.ts +112 -0
  95. package/lib/components/DonutChart/Arc/Arc.types.js +2 -0
  96. package/lib/components/DonutChart/Arc/Arc.types.js.map +1 -0
  97. package/lib/components/DonutChart/Arc/index.d.ts +2 -0
  98. package/lib/components/DonutChart/Arc/index.js +3 -0
  99. package/lib/components/DonutChart/Arc/index.js.map +1 -0
  100. package/lib/components/DonutChart/DonutChart.base.d.ts +44 -0
  101. package/lib/components/DonutChart/DonutChart.base.js +209 -0
  102. package/lib/components/DonutChart/DonutChart.base.js.map +1 -0
  103. package/lib/components/DonutChart/DonutChart.d.ts +3 -0
  104. package/lib/components/DonutChart/DonutChart.js +6 -0
  105. package/lib/components/DonutChart/DonutChart.js.map +1 -0
  106. package/lib/components/DonutChart/DonutChart.styles.d.ts +2 -0
  107. package/lib/components/DonutChart/DonutChart.styles.js +29 -0
  108. package/lib/components/DonutChart/DonutChart.styles.js.map +1 -0
  109. package/lib/components/DonutChart/DonutChart.types.d.ts +53 -0
  110. package/lib/components/DonutChart/DonutChart.types.js +2 -0
  111. package/lib/components/DonutChart/DonutChart.types.js.map +1 -0
  112. package/lib/components/DonutChart/Pie/Pie.d.ts +12 -0
  113. package/lib/components/DonutChart/Pie/Pie.js +47 -0
  114. package/lib/components/DonutChart/Pie/Pie.js.map +1 -0
  115. package/lib/components/DonutChart/Pie/Pie.styles.d.ts +2 -0
  116. package/lib/components/DonutChart/Pie/Pie.styles.js +6 -0
  117. package/lib/components/DonutChart/Pie/Pie.styles.js.map +1 -0
  118. package/lib/components/DonutChart/Pie/Pie.types.d.ts +78 -0
  119. package/lib/components/DonutChart/Pie/Pie.types.js +2 -0
  120. package/lib/components/DonutChart/Pie/Pie.types.js.map +1 -0
  121. package/lib/components/DonutChart/Pie/index.d.ts +2 -0
  122. package/lib/components/DonutChart/Pie/index.js +3 -0
  123. package/lib/components/DonutChart/Pie/index.js.map +1 -0
  124. package/lib/components/DonutChart/index.d.ts +3 -0
  125. package/lib/components/DonutChart/index.js +4 -0
  126. package/lib/components/DonutChart/index.js.map +1 -0
  127. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +49 -0
  128. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +351 -0
  129. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -0
  130. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.d.ts +3 -0
  131. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +6 -0
  132. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -0
  133. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.d.ts +2 -0
  134. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +11 -0
  135. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -0
  136. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +74 -0
  137. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js +2 -0
  138. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -0
  139. package/lib/components/GroupedVerticalBarChart/index.d.ts +2 -0
  140. package/lib/components/GroupedVerticalBarChart/index.js +3 -0
  141. package/lib/components/GroupedVerticalBarChart/index.js.map +1 -0
  142. package/lib/components/HeatMapChart/HeatMapChart.base.d.ts +145 -0
  143. package/lib/components/HeatMapChart/HeatMapChart.base.js +498 -0
  144. package/lib/components/HeatMapChart/HeatMapChart.base.js.map +1 -0
  145. package/lib/components/HeatMapChart/HeatMapChart.d.ts +3 -0
  146. package/lib/components/HeatMapChart/HeatMapChart.js +5 -0
  147. package/lib/components/HeatMapChart/HeatMapChart.js.map +1 -0
  148. package/lib/components/HeatMapChart/HeatMapChart.styles.d.ts +2 -0
  149. package/lib/components/HeatMapChart/HeatMapChart.styles.js +22 -0
  150. package/lib/components/HeatMapChart/HeatMapChart.styles.js.map +1 -0
  151. package/lib/components/HeatMapChart/HeatMapChart.types.d.ts +110 -0
  152. package/lib/components/HeatMapChart/HeatMapChart.types.js +2 -0
  153. package/lib/components/HeatMapChart/HeatMapChart.types.js.map +1 -0
  154. package/lib/components/HeatMapChart/index.d.ts +2 -0
  155. package/lib/components/HeatMapChart/index.js +3 -0
  156. package/lib/components/HeatMapChart/index.js.map +1 -0
  157. package/lib/components/HorizontalBarChart/HorizontalBarChart.base.d.ts +34 -0
  158. package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js +194 -0
  159. package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -0
  160. package/lib/components/HorizontalBarChart/HorizontalBarChart.d.ts +3 -0
  161. package/lib/components/HorizontalBarChart/HorizontalBarChart.js +6 -0
  162. package/lib/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -0
  163. package/lib/components/HorizontalBarChart/HorizontalBarChart.styles.d.ts +2 -0
  164. package/lib/components/HorizontalBarChart/HorizontalBarChart.styles.js +49 -0
  165. package/lib/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -0
  166. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.d.ts +130 -0
  167. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js +2 -0
  168. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -0
  169. package/lib/components/HorizontalBarChart/index.d.ts +3 -0
  170. package/lib/components/HorizontalBarChart/index.js +4 -0
  171. package/lib/components/HorizontalBarChart/index.js.map +1 -0
  172. package/lib/components/Legends/Legends.base.d.ts +42 -0
  173. package/lib/components/Legends/Legends.base.js +311 -0
  174. package/lib/components/Legends/Legends.base.js.map +1 -0
  175. package/lib/components/Legends/Legends.d.ts +3 -0
  176. package/lib/components/Legends/Legends.js +5 -0
  177. package/lib/components/Legends/Legends.js.map +1 -0
  178. package/lib/components/Legends/Legends.styles.d.ts +2 -0
  179. package/lib/components/Legends/Legends.styles.js +103 -0
  180. package/lib/components/Legends/Legends.styles.js.map +1 -0
  181. package/lib/components/Legends/Legends.types.d.ts +169 -0
  182. package/lib/components/Legends/Legends.types.js +2 -0
  183. package/lib/components/Legends/Legends.types.js.map +1 -0
  184. package/lib/components/Legends/index.d.ts +3 -0
  185. package/lib/components/Legends/index.js +4 -0
  186. package/lib/components/Legends/index.js.map +1 -0
  187. package/lib/components/Legends/shape.d.ts +9 -0
  188. package/lib/components/Legends/shape.js +24 -0
  189. package/lib/components/Legends/shape.js.map +1 -0
  190. package/lib/components/LineChart/LineChart.base.d.ts +69 -0
  191. package/lib/components/LineChart/LineChart.base.js +768 -0
  192. package/lib/components/LineChart/LineChart.base.js.map +1 -0
  193. package/lib/components/LineChart/LineChart.d.ts +3 -0
  194. package/lib/components/LineChart/LineChart.js +6 -0
  195. package/lib/components/LineChart/LineChart.js.map +1 -0
  196. package/lib/components/LineChart/LineChart.styles.d.ts +2 -0
  197. package/lib/components/LineChart/LineChart.styles.js +7 -0
  198. package/lib/components/LineChart/LineChart.styles.js.map +1 -0
  199. package/lib/components/LineChart/LineChart.types.d.ts +72 -0
  200. package/lib/components/LineChart/LineChart.types.js +2 -0
  201. package/lib/components/LineChart/LineChart.types.js.map +1 -0
  202. package/lib/components/LineChart/eventAnnotation/EventAnnotation.d.ts +10 -0
  203. package/lib/components/LineChart/eventAnnotation/EventAnnotation.js +93 -0
  204. package/lib/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -0
  205. package/lib/components/LineChart/eventAnnotation/LabelLink.d.ts +22 -0
  206. package/lib/components/LineChart/eventAnnotation/LabelLink.js +37 -0
  207. package/lib/components/LineChart/eventAnnotation/LabelLink.js.map +1 -0
  208. package/lib/components/LineChart/eventAnnotation/Textbox.d.ts +13 -0
  209. package/lib/components/LineChart/eventAnnotation/Textbox.js +37 -0
  210. package/lib/components/LineChart/eventAnnotation/Textbox.js.map +1 -0
  211. package/lib/components/LineChart/index.d.ts +3 -0
  212. package/lib/components/LineChart/index.js +4 -0
  213. package/lib/components/LineChart/index.js.map +1 -0
  214. package/lib/components/PieChart/Arc/Arc.d.ts +12 -0
  215. package/lib/components/PieChart/Arc/Arc.js +57 -0
  216. package/lib/components/PieChart/Arc/Arc.js.map +1 -0
  217. package/lib/components/PieChart/Arc/Arc.styles.d.ts +2 -0
  218. package/lib/components/PieChart/Arc/Arc.styles.js +8 -0
  219. package/lib/components/PieChart/Arc/Arc.styles.js.map +1 -0
  220. package/lib/components/PieChart/Arc/Arc.types.d.ts +60 -0
  221. package/lib/components/PieChart/Arc/Arc.types.js +2 -0
  222. package/lib/components/PieChart/Arc/Arc.types.js.map +1 -0
  223. package/lib/components/PieChart/Arc/index.d.ts +2 -0
  224. package/lib/components/PieChart/Arc/index.js +3 -0
  225. package/lib/components/PieChart/Arc/index.js.map +1 -0
  226. package/lib/components/PieChart/Pie/Pie.d.ts +10 -0
  227. package/lib/components/PieChart/Pie/Pie.js +35 -0
  228. package/lib/components/PieChart/Pie/Pie.js.map +1 -0
  229. package/lib/components/PieChart/Pie/Pie.styles.d.ts +2 -0
  230. package/lib/components/PieChart/Pie/Pie.styles.js +6 -0
  231. package/lib/components/PieChart/Pie/Pie.styles.js.map +1 -0
  232. package/lib/components/PieChart/Pie/Pie.types.d.ts +46 -0
  233. package/lib/components/PieChart/Pie/Pie.types.js +2 -0
  234. package/lib/components/PieChart/Pie/Pie.types.js.map +1 -0
  235. package/lib/components/PieChart/Pie/index.d.ts +2 -0
  236. package/lib/components/PieChart/Pie/index.js +3 -0
  237. package/lib/components/PieChart/Pie/index.js.map +1 -0
  238. package/lib/components/PieChart/PieChart.base.d.ts +7 -0
  239. package/lib/components/PieChart/PieChart.base.js +34 -0
  240. package/lib/components/PieChart/PieChart.base.js.map +1 -0
  241. package/lib/components/PieChart/PieChart.d.ts +3 -0
  242. package/lib/components/PieChart/PieChart.js +6 -0
  243. package/lib/components/PieChart/PieChart.js.map +1 -0
  244. package/lib/components/PieChart/PieChart.styles.d.ts +2 -0
  245. package/lib/components/PieChart/PieChart.styles.js +29 -0
  246. package/lib/components/PieChart/PieChart.styles.js.map +1 -0
  247. package/lib/components/PieChart/PieChart.types.d.ts +63 -0
  248. package/lib/components/PieChart/PieChart.types.js +2 -0
  249. package/lib/components/PieChart/PieChart.types.js.map +1 -0
  250. package/lib/components/PieChart/index.d.ts +2 -0
  251. package/lib/components/PieChart/index.js +3 -0
  252. package/lib/components/PieChart/index.js.map +1 -0
  253. package/lib/components/SankeyChart/SankeyChart.base.d.ts +18 -0
  254. package/lib/components/SankeyChart/SankeyChart.base.js +108 -0
  255. package/lib/components/SankeyChart/SankeyChart.base.js.map +1 -0
  256. package/lib/components/SankeyChart/SankeyChart.d.ts +3 -0
  257. package/lib/components/SankeyChart/SankeyChart.js +6 -0
  258. package/lib/components/SankeyChart/SankeyChart.js.map +1 -0
  259. package/lib/components/SankeyChart/SankeyChart.styles.d.ts +2 -0
  260. package/lib/components/SankeyChart/SankeyChart.styles.js +21 -0
  261. package/lib/components/SankeyChart/SankeyChart.styles.js.map +1 -0
  262. package/lib/components/SankeyChart/SankeyChart.types.d.ts +63 -0
  263. package/lib/components/SankeyChart/SankeyChart.types.js +2 -0
  264. package/lib/components/SankeyChart/SankeyChart.types.js.map +1 -0
  265. package/lib/components/SankeyChart/index.d.ts +2 -0
  266. package/lib/components/SankeyChart/index.js +3 -0
  267. package/lib/components/SankeyChart/index.js.map +1 -0
  268. package/lib/components/Sparkline/Sparkline.base.d.ts +20 -0
  269. package/lib/components/Sparkline/Sparkline.base.js +76 -0
  270. package/lib/components/Sparkline/Sparkline.base.js.map +1 -0
  271. package/lib/components/Sparkline/Sparkline.d.ts +3 -0
  272. package/lib/components/Sparkline/Sparkline.js +6 -0
  273. package/lib/components/Sparkline/Sparkline.js.map +1 -0
  274. package/lib/components/Sparkline/Sparkline.styles.d.ts +2 -0
  275. package/lib/components/Sparkline/Sparkline.styles.js +10 -0
  276. package/lib/components/Sparkline/Sparkline.styles.js.map +1 -0
  277. package/lib/components/Sparkline/Sparkline.types.d.ts +51 -0
  278. package/lib/components/Sparkline/Sparkline.types.js +2 -0
  279. package/lib/components/Sparkline/Sparkline.types.js.map +1 -0
  280. package/lib/components/Sparkline/index.d.ts +2 -0
  281. package/lib/components/Sparkline/index.js +3 -0
  282. package/lib/components/Sparkline/index.js.map +1 -0
  283. package/lib/components/StackedBarChart/MultiStackedBarChart.base.d.ts +41 -0
  284. package/lib/components/StackedBarChart/MultiStackedBarChart.base.js +293 -0
  285. package/lib/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -0
  286. package/lib/components/StackedBarChart/MultiStackedBarChart.d.ts +3 -0
  287. package/lib/components/StackedBarChart/MultiStackedBarChart.js +6 -0
  288. package/lib/components/StackedBarChart/MultiStackedBarChart.js.map +1 -0
  289. package/lib/components/StackedBarChart/MultiStackedBarChart.styles.d.ts +2 -0
  290. package/lib/components/StackedBarChart/MultiStackedBarChart.styles.js +61 -0
  291. package/lib/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -0
  292. package/lib/components/StackedBarChart/MultiStackedBarChart.types.d.ts +154 -0
  293. package/lib/components/StackedBarChart/MultiStackedBarChart.types.js +2 -0
  294. package/lib/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -0
  295. package/lib/components/StackedBarChart/StackedBarChart.base.d.ts +39 -0
  296. package/lib/components/StackedBarChart/StackedBarChart.base.js +297 -0
  297. package/lib/components/StackedBarChart/StackedBarChart.base.js.map +1 -0
  298. package/lib/components/StackedBarChart/StackedBarChart.d.ts +3 -0
  299. package/lib/components/StackedBarChart/StackedBarChart.js +6 -0
  300. package/lib/components/StackedBarChart/StackedBarChart.js.map +1 -0
  301. package/lib/components/StackedBarChart/StackedBarChart.styles.d.ts +2 -0
  302. package/lib/components/StackedBarChart/StackedBarChart.styles.js +94 -0
  303. package/lib/components/StackedBarChart/StackedBarChart.styles.js.map +1 -0
  304. package/lib/components/StackedBarChart/StackedBarChart.types.d.ts +202 -0
  305. package/lib/components/StackedBarChart/StackedBarChart.types.js +2 -0
  306. package/lib/components/StackedBarChart/StackedBarChart.types.js.map +1 -0
  307. package/lib/components/StackedBarChart/index.d.ts +5 -0
  308. package/lib/components/StackedBarChart/index.js +6 -0
  309. package/lib/components/StackedBarChart/index.js.map +1 -0
  310. package/lib/components/TreeChart/TreeChart.base.d.ts +18 -0
  311. package/lib/components/TreeChart/TreeChart.base.js +303 -0
  312. package/lib/components/TreeChart/TreeChart.base.js.map +1 -0
  313. package/lib/components/TreeChart/TreeChart.d.ts +3 -0
  314. package/lib/components/TreeChart/TreeChart.js +5 -0
  315. package/lib/components/TreeChart/TreeChart.js.map +1 -0
  316. package/lib/components/TreeChart/TreeChart.styles.d.ts +2 -0
  317. package/lib/components/TreeChart/TreeChart.styles.js +28 -0
  318. package/lib/components/TreeChart/TreeChart.styles.js.map +1 -0
  319. package/lib/components/TreeChart/TreeChart.types.d.ts +185 -0
  320. package/lib/components/TreeChart/TreeChart.types.js +23 -0
  321. package/lib/components/TreeChart/TreeChart.types.js.map +1 -0
  322. package/lib/components/TreeChart/index.d.ts +2 -0
  323. package/lib/components/TreeChart/index.js +3 -0
  324. package/lib/components/TreeChart/index.js.map +1 -0
  325. package/lib/components/VerticalBarChart/VerticalBarChart.base.d.ts +57 -0
  326. package/lib/components/VerticalBarChart/VerticalBarChart.base.js +482 -0
  327. package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -0
  328. package/lib/components/VerticalBarChart/VerticalBarChart.d.ts +3 -0
  329. package/lib/components/VerticalBarChart/VerticalBarChart.js +6 -0
  330. package/lib/components/VerticalBarChart/VerticalBarChart.js.map +1 -0
  331. package/lib/components/VerticalBarChart/VerticalBarChart.styles.d.ts +2 -0
  332. package/lib/components/VerticalBarChart/VerticalBarChart.styles.js +22 -0
  333. package/lib/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -0
  334. package/lib/components/VerticalBarChart/VerticalBarChart.types.d.ts +105 -0
  335. package/lib/components/VerticalBarChart/VerticalBarChart.types.js +2 -0
  336. package/lib/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -0
  337. package/lib/components/VerticalBarChart/index.d.ts +2 -0
  338. package/lib/components/VerticalBarChart/index.js +3 -0
  339. package/lib/components/VerticalBarChart/index.js.map +1 -0
  340. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +71 -0
  341. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +607 -0
  342. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -0
  343. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.d.ts +3 -0
  344. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js +6 -0
  345. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -0
  346. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.d.ts +2 -0
  347. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +12 -0
  348. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -0
  349. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.d.ts +133 -0
  350. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js +2 -0
  351. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -0
  352. package/lib/components/VerticalStackedBarChart/index.d.ts +2 -0
  353. package/lib/components/VerticalStackedBarChart/index.js +3 -0
  354. package/lib/components/VerticalStackedBarChart/index.js.map +1 -0
  355. package/lib/index.d.ts +18 -0
  356. package/lib/index.js +19 -0
  357. package/lib/index.js.map +1 -0
  358. package/lib/types/IDataPoint.d.ts +541 -0
  359. package/lib/types/IDataPoint.js +2 -0
  360. package/lib/types/IDataPoint.js.map +1 -0
  361. package/lib/types/IEventAnnotation.d.ts +6 -0
  362. package/lib/types/IEventAnnotation.js +2 -0
  363. package/lib/types/IEventAnnotation.js.map +1 -0
  364. package/lib/types/ILegendDataItem.d.ts +10 -0
  365. package/lib/types/ILegendDataItem.js +2 -0
  366. package/lib/types/ILegendDataItem.js.map +1 -0
  367. package/lib/types/index.d.ts +2 -0
  368. package/lib/types/index.js +3 -0
  369. package/lib/types/index.js.map +1 -0
  370. package/lib/utilities/ChartHoverCard/ChartHoverCard.base.d.ts +6 -0
  371. package/lib/utilities/ChartHoverCard/ChartHoverCard.base.js +38 -0
  372. package/lib/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -0
  373. package/lib/utilities/ChartHoverCard/ChartHoverCard.d.ts +3 -0
  374. package/lib/utilities/ChartHoverCard/ChartHoverCard.js +6 -0
  375. package/lib/utilities/ChartHoverCard/ChartHoverCard.js.map +1 -0
  376. package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.d.ts +2 -0
  377. package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.js +82 -0
  378. package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -0
  379. package/lib/utilities/ChartHoverCard/ChartHoverCard.types.d.ts +105 -0
  380. package/lib/utilities/ChartHoverCard/ChartHoverCard.types.js +2 -0
  381. package/lib/utilities/ChartHoverCard/ChartHoverCard.types.js.map +1 -0
  382. package/lib/utilities/ChartHoverCard/index.d.ts +3 -0
  383. package/lib/utilities/ChartHoverCard/index.js +4 -0
  384. package/lib/utilities/ChartHoverCard/index.js.map +1 -0
  385. package/lib/utilities/index.d.ts +2 -0
  386. package/lib/utilities/index.js +3 -0
  387. package/lib/utilities/index.js.map +1 -0
  388. package/lib/utilities/utilities.d.ts +374 -0
  389. package/lib/utilities/utilities.js +819 -0
  390. package/lib/utilities/utilities.js.map +1 -0
  391. package/lib/version.d.ts +1 -0
  392. package/lib/version.js +5 -0
  393. package/lib/version.js.map +1 -0
  394. package/lib-amd/AreaChart.d.ts +1 -0
  395. package/lib-amd/AreaChart.js +6 -0
  396. package/lib-amd/AreaChart.js.map +1 -0
  397. package/lib-amd/CartesianChart.d.ts +1 -0
  398. package/lib-amd/CartesianChart.js +6 -0
  399. package/lib-amd/CartesianChart.js.map +1 -0
  400. package/lib-amd/DonutChart.d.ts +1 -0
  401. package/lib-amd/DonutChart.js +6 -0
  402. package/lib-amd/DonutChart.js.map +1 -0
  403. package/lib-amd/GroupedVerticalBarChart.d.ts +1 -0
  404. package/lib-amd/GroupedVerticalBarChart.js +6 -0
  405. package/lib-amd/GroupedVerticalBarChart.js.map +1 -0
  406. package/lib-amd/HeatMapChart.d.ts +1 -0
  407. package/lib-amd/HeatMapChart.js +6 -0
  408. package/lib-amd/HeatMapChart.js.map +1 -0
  409. package/lib-amd/HorizontalBarChart.d.ts +1 -0
  410. package/lib-amd/HorizontalBarChart.js +6 -0
  411. package/lib-amd/HorizontalBarChart.js.map +1 -0
  412. package/lib-amd/Legends.d.ts +1 -0
  413. package/lib-amd/Legends.js +6 -0
  414. package/lib-amd/Legends.js.map +1 -0
  415. package/lib-amd/LineChart.d.ts +1 -0
  416. package/lib-amd/LineChart.js +6 -0
  417. package/lib-amd/LineChart.js.map +1 -0
  418. package/lib-amd/PieChart.d.ts +1 -0
  419. package/lib-amd/PieChart.js +6 -0
  420. package/lib-amd/PieChart.js.map +1 -0
  421. package/lib-amd/SankeyChart.d.ts +1 -0
  422. package/lib-amd/SankeyChart.js +6 -0
  423. package/lib-amd/SankeyChart.js.map +1 -0
  424. package/lib-amd/Sparkline.d.ts +1 -0
  425. package/lib-amd/Sparkline.js +6 -0
  426. package/lib-amd/Sparkline.js.map +1 -0
  427. package/lib-amd/StackedBarChart.d.ts +1 -0
  428. package/lib-amd/StackedBarChart.js +6 -0
  429. package/lib-amd/StackedBarChart.js.map +1 -0
  430. package/lib-amd/Styling.d.ts +2 -0
  431. package/lib-amd/Styling.js +75 -0
  432. package/lib-amd/Styling.js.map +1 -0
  433. package/lib-amd/TreeChart.d.ts +1 -0
  434. package/lib-amd/TreeChart.js +6 -0
  435. package/lib-amd/TreeChart.js.map +1 -0
  436. package/lib-amd/Utilities.d.ts +2 -0
  437. package/lib-amd/Utilities.js +183 -0
  438. package/lib-amd/Utilities.js.map +1 -0
  439. package/lib-amd/VerticalBarChart.d.ts +1 -0
  440. package/lib-amd/VerticalBarChart.js +6 -0
  441. package/lib-amd/VerticalBarChart.js.map +1 -0
  442. package/lib-amd/VerticalStackedBarChart.d.ts +1 -0
  443. package/lib-amd/VerticalStackedBarChart.js +6 -0
  444. package/lib-amd/VerticalStackedBarChart.js.map +1 -0
  445. package/lib-amd/components/AreaChart/AreaChart.base.d.ts +73 -0
  446. package/lib-amd/components/AreaChart/AreaChart.base.js +482 -0
  447. package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -0
  448. package/lib-amd/components/AreaChart/AreaChart.d.ts +3 -0
  449. package/lib-amd/components/AreaChart/AreaChart.js +8 -0
  450. package/lib-amd/components/AreaChart/AreaChart.js.map +1 -0
  451. package/lib-amd/components/AreaChart/AreaChart.styles.d.ts +2 -0
  452. package/lib-amd/components/AreaChart/AreaChart.styles.js +12 -0
  453. package/lib-amd/components/AreaChart/AreaChart.styles.js.map +1 -0
  454. package/lib-amd/components/AreaChart/AreaChart.types.d.ts +36 -0
  455. package/lib-amd/components/AreaChart/AreaChart.types.js +5 -0
  456. package/lib-amd/components/AreaChart/AreaChart.types.js.map +1 -0
  457. package/lib-amd/components/AreaChart/index.d.ts +2 -0
  458. package/lib-amd/components/AreaChart/index.js +7 -0
  459. package/lib-amd/components/AreaChart/index.js.map +1 -0
  460. package/lib-amd/components/CommonComponents/CartesianChart.base.d.ts +43 -0
  461. package/lib-amd/components/CommonComponents/CartesianChart.base.js +321 -0
  462. package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -0
  463. package/lib-amd/components/CommonComponents/CartesianChart.d.ts +3 -0
  464. package/lib-amd/components/CommonComponents/CartesianChart.js +7 -0
  465. package/lib-amd/components/CommonComponents/CartesianChart.js.map +1 -0
  466. package/lib-amd/components/CommonComponents/CartesianChart.styles.d.ts +2 -0
  467. package/lib-amd/components/CommonComponents/CartesianChart.styles.js +166 -0
  468. package/lib-amd/components/CommonComponents/CartesianChart.styles.js.map +1 -0
  469. package/lib-amd/components/CommonComponents/CartesianChart.types.d.ts +400 -0
  470. package/lib-amd/components/CommonComponents/CartesianChart.types.js +5 -0
  471. package/lib-amd/components/CommonComponents/CartesianChart.types.js.map +1 -0
  472. package/lib-amd/components/CommonComponents/index.d.ts +2 -0
  473. package/lib-amd/components/CommonComponents/index.js +7 -0
  474. package/lib-amd/components/CommonComponents/index.js.map +1 -0
  475. package/lib-amd/components/DonutChart/Arc/Arc.d.ts +19 -0
  476. package/lib-amd/components/DonutChart/Arc/Arc.js +76 -0
  477. package/lib-amd/components/DonutChart/Arc/Arc.js.map +1 -0
  478. package/lib-amd/components/DonutChart/Arc/Arc.styles.d.ts +2 -0
  479. package/lib-amd/components/DonutChart/Arc/Arc.styles.js +37 -0
  480. package/lib-amd/components/DonutChart/Arc/Arc.styles.js.map +1 -0
  481. package/lib-amd/components/DonutChart/Arc/Arc.types.d.ts +112 -0
  482. package/lib-amd/components/DonutChart/Arc/Arc.types.js +5 -0
  483. package/lib-amd/components/DonutChart/Arc/Arc.types.js.map +1 -0
  484. package/lib-amd/components/DonutChart/Arc/index.d.ts +2 -0
  485. package/lib-amd/components/DonutChart/Arc/index.js +7 -0
  486. package/lib-amd/components/DonutChart/Arc/index.js.map +1 -0
  487. package/lib-amd/components/DonutChart/DonutChart.base.d.ts +44 -0
  488. package/lib-amd/components/DonutChart/DonutChart.base.js +206 -0
  489. package/lib-amd/components/DonutChart/DonutChart.base.js.map +1 -0
  490. package/lib-amd/components/DonutChart/DonutChart.d.ts +3 -0
  491. package/lib-amd/components/DonutChart/DonutChart.js +8 -0
  492. package/lib-amd/components/DonutChart/DonutChart.js.map +1 -0
  493. package/lib-amd/components/DonutChart/DonutChart.styles.d.ts +2 -0
  494. package/lib-amd/components/DonutChart/DonutChart.styles.js +35 -0
  495. package/lib-amd/components/DonutChart/DonutChart.styles.js.map +1 -0
  496. package/lib-amd/components/DonutChart/DonutChart.types.d.ts +53 -0
  497. package/lib-amd/components/DonutChart/DonutChart.types.js +5 -0
  498. package/lib-amd/components/DonutChart/DonutChart.types.js.map +1 -0
  499. package/lib-amd/components/DonutChart/Pie/Pie.d.ts +12 -0
  500. package/lib-amd/components/DonutChart/Pie/Pie.js +48 -0
  501. package/lib-amd/components/DonutChart/Pie/Pie.js.map +1 -0
  502. package/lib-amd/components/DonutChart/Pie/Pie.styles.d.ts +2 -0
  503. package/lib-amd/components/DonutChart/Pie/Pie.styles.js +12 -0
  504. package/lib-amd/components/DonutChart/Pie/Pie.styles.js.map +1 -0
  505. package/lib-amd/components/DonutChart/Pie/Pie.types.d.ts +78 -0
  506. package/lib-amd/components/DonutChart/Pie/Pie.types.js +5 -0
  507. package/lib-amd/components/DonutChart/Pie/Pie.types.js.map +1 -0
  508. package/lib-amd/components/DonutChart/Pie/index.d.ts +2 -0
  509. package/lib-amd/components/DonutChart/Pie/index.js +7 -0
  510. package/lib-amd/components/DonutChart/Pie/index.js.map +1 -0
  511. package/lib-amd/components/DonutChart/index.d.ts +3 -0
  512. package/lib-amd/components/DonutChart/index.js +8 -0
  513. package/lib-amd/components/DonutChart/index.js.map +1 -0
  514. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +49 -0
  515. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +346 -0
  516. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -0
  517. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.d.ts +3 -0
  518. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +8 -0
  519. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -0
  520. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.d.ts +2 -0
  521. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +16 -0
  522. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -0
  523. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +74 -0
  524. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js +5 -0
  525. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -0
  526. package/lib-amd/components/GroupedVerticalBarChart/index.d.ts +2 -0
  527. package/lib-amd/components/GroupedVerticalBarChart/index.js +7 -0
  528. package/lib-amd/components/GroupedVerticalBarChart/index.js.map +1 -0
  529. package/lib-amd/components/HeatMapChart/HeatMapChart.base.d.ts +145 -0
  530. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js +492 -0
  531. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js.map +1 -0
  532. package/lib-amd/components/HeatMapChart/HeatMapChart.d.ts +3 -0
  533. package/lib-amd/components/HeatMapChart/HeatMapChart.js +7 -0
  534. package/lib-amd/components/HeatMapChart/HeatMapChart.js.map +1 -0
  535. package/lib-amd/components/HeatMapChart/HeatMapChart.styles.d.ts +2 -0
  536. package/lib-amd/components/HeatMapChart/HeatMapChart.styles.js +28 -0
  537. package/lib-amd/components/HeatMapChart/HeatMapChart.styles.js.map +1 -0
  538. package/lib-amd/components/HeatMapChart/HeatMapChart.types.d.ts +110 -0
  539. package/lib-amd/components/HeatMapChart/HeatMapChart.types.js +5 -0
  540. package/lib-amd/components/HeatMapChart/HeatMapChart.types.js.map +1 -0
  541. package/lib-amd/components/HeatMapChart/index.d.ts +2 -0
  542. package/lib-amd/components/HeatMapChart/index.js +7 -0
  543. package/lib-amd/components/HeatMapChart/index.js.map +1 -0
  544. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.d.ts +34 -0
  545. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js +193 -0
  546. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -0
  547. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.d.ts +3 -0
  548. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.js +8 -0
  549. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -0
  550. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.d.ts +2 -0
  551. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.js +53 -0
  552. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -0
  553. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.d.ts +130 -0
  554. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.js +5 -0
  555. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -0
  556. package/lib-amd/components/HorizontalBarChart/index.d.ts +3 -0
  557. package/lib-amd/components/HorizontalBarChart/index.js +8 -0
  558. package/lib-amd/components/HorizontalBarChart/index.js.map +1 -0
  559. package/lib-amd/components/Legends/Legends.base.d.ts +42 -0
  560. package/lib-amd/components/Legends/Legends.base.js +307 -0
  561. package/lib-amd/components/Legends/Legends.base.js.map +1 -0
  562. package/lib-amd/components/Legends/Legends.d.ts +3 -0
  563. package/lib-amd/components/Legends/Legends.js +7 -0
  564. package/lib-amd/components/Legends/Legends.js.map +1 -0
  565. package/lib-amd/components/Legends/Legends.styles.d.ts +2 -0
  566. package/lib-amd/components/Legends/Legends.styles.js +107 -0
  567. package/lib-amd/components/Legends/Legends.styles.js.map +1 -0
  568. package/lib-amd/components/Legends/Legends.types.d.ts +169 -0
  569. package/lib-amd/components/Legends/Legends.types.js +5 -0
  570. package/lib-amd/components/Legends/Legends.types.js.map +1 -0
  571. package/lib-amd/components/Legends/index.d.ts +3 -0
  572. package/lib-amd/components/Legends/index.js +8 -0
  573. package/lib-amd/components/Legends/index.js.map +1 -0
  574. package/lib-amd/components/Legends/shape.d.ts +9 -0
  575. package/lib-amd/components/Legends/shape.js +27 -0
  576. package/lib-amd/components/Legends/shape.js.map +1 -0
  577. package/lib-amd/components/LineChart/LineChart.base.d.ts +69 -0
  578. package/lib-amd/components/LineChart/LineChart.base.js +762 -0
  579. package/lib-amd/components/LineChart/LineChart.base.js.map +1 -0
  580. package/lib-amd/components/LineChart/LineChart.d.ts +3 -0
  581. package/lib-amd/components/LineChart/LineChart.js +8 -0
  582. package/lib-amd/components/LineChart/LineChart.js.map +1 -0
  583. package/lib-amd/components/LineChart/LineChart.styles.d.ts +2 -0
  584. package/lib-amd/components/LineChart/LineChart.styles.js +12 -0
  585. package/lib-amd/components/LineChart/LineChart.styles.js.map +1 -0
  586. package/lib-amd/components/LineChart/LineChart.types.d.ts +72 -0
  587. package/lib-amd/components/LineChart/LineChart.types.js +5 -0
  588. package/lib-amd/components/LineChart/LineChart.types.js.map +1 -0
  589. package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.d.ts +10 -0
  590. package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js +95 -0
  591. package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -0
  592. package/lib-amd/components/LineChart/eventAnnotation/LabelLink.d.ts +22 -0
  593. package/lib-amd/components/LineChart/eventAnnotation/LabelLink.js +40 -0
  594. package/lib-amd/components/LineChart/eventAnnotation/LabelLink.js.map +1 -0
  595. package/lib-amd/components/LineChart/eventAnnotation/Textbox.d.ts +13 -0
  596. package/lib-amd/components/LineChart/eventAnnotation/Textbox.js +40 -0
  597. package/lib-amd/components/LineChart/eventAnnotation/Textbox.js.map +1 -0
  598. package/lib-amd/components/LineChart/index.d.ts +3 -0
  599. package/lib-amd/components/LineChart/index.js +8 -0
  600. package/lib-amd/components/LineChart/index.js.map +1 -0
  601. package/lib-amd/components/PieChart/Arc/Arc.d.ts +12 -0
  602. package/lib-amd/components/PieChart/Arc/Arc.js +56 -0
  603. package/lib-amd/components/PieChart/Arc/Arc.js.map +1 -0
  604. package/lib-amd/components/PieChart/Arc/Arc.styles.d.ts +2 -0
  605. package/lib-amd/components/PieChart/Arc/Arc.styles.js +13 -0
  606. package/lib-amd/components/PieChart/Arc/Arc.styles.js.map +1 -0
  607. package/lib-amd/components/PieChart/Arc/Arc.types.d.ts +60 -0
  608. package/lib-amd/components/PieChart/Arc/Arc.types.js +5 -0
  609. package/lib-amd/components/PieChart/Arc/Arc.types.js.map +1 -0
  610. package/lib-amd/components/PieChart/Arc/index.d.ts +2 -0
  611. package/lib-amd/components/PieChart/Arc/index.js +7 -0
  612. package/lib-amd/components/PieChart/Arc/index.js.map +1 -0
  613. package/lib-amd/components/PieChart/Pie/Pie.d.ts +10 -0
  614. package/lib-amd/components/PieChart/Pie/Pie.js +35 -0
  615. package/lib-amd/components/PieChart/Pie/Pie.js.map +1 -0
  616. package/lib-amd/components/PieChart/Pie/Pie.styles.d.ts +2 -0
  617. package/lib-amd/components/PieChart/Pie/Pie.styles.js +12 -0
  618. package/lib-amd/components/PieChart/Pie/Pie.styles.js.map +1 -0
  619. package/lib-amd/components/PieChart/Pie/Pie.types.d.ts +46 -0
  620. package/lib-amd/components/PieChart/Pie/Pie.types.js +5 -0
  621. package/lib-amd/components/PieChart/Pie/Pie.types.js.map +1 -0
  622. package/lib-amd/components/PieChart/Pie/index.d.ts +2 -0
  623. package/lib-amd/components/PieChart/Pie/index.js +7 -0
  624. package/lib-amd/components/PieChart/Pie/index.js.map +1 -0
  625. package/lib-amd/components/PieChart/PieChart.base.d.ts +7 -0
  626. package/lib-amd/components/PieChart/PieChart.base.js +35 -0
  627. package/lib-amd/components/PieChart/PieChart.base.js.map +1 -0
  628. package/lib-amd/components/PieChart/PieChart.d.ts +3 -0
  629. package/lib-amd/components/PieChart/PieChart.js +8 -0
  630. package/lib-amd/components/PieChart/PieChart.js.map +1 -0
  631. package/lib-amd/components/PieChart/PieChart.styles.d.ts +2 -0
  632. package/lib-amd/components/PieChart/PieChart.styles.js +34 -0
  633. package/lib-amd/components/PieChart/PieChart.styles.js.map +1 -0
  634. package/lib-amd/components/PieChart/PieChart.types.d.ts +63 -0
  635. package/lib-amd/components/PieChart/PieChart.types.js +5 -0
  636. package/lib-amd/components/PieChart/PieChart.types.js.map +1 -0
  637. package/lib-amd/components/PieChart/index.d.ts +2 -0
  638. package/lib-amd/components/PieChart/index.js +7 -0
  639. package/lib-amd/components/PieChart/index.js.map +1 -0
  640. package/lib-amd/components/SankeyChart/SankeyChart.base.d.ts +18 -0
  641. package/lib-amd/components/SankeyChart/SankeyChart.base.js +109 -0
  642. package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +1 -0
  643. package/lib-amd/components/SankeyChart/SankeyChart.d.ts +3 -0
  644. package/lib-amd/components/SankeyChart/SankeyChart.js +8 -0
  645. package/lib-amd/components/SankeyChart/SankeyChart.js.map +1 -0
  646. package/lib-amd/components/SankeyChart/SankeyChart.styles.d.ts +2 -0
  647. package/lib-amd/components/SankeyChart/SankeyChart.styles.js +27 -0
  648. package/lib-amd/components/SankeyChart/SankeyChart.styles.js.map +1 -0
  649. package/lib-amd/components/SankeyChart/SankeyChart.types.d.ts +63 -0
  650. package/lib-amd/components/SankeyChart/SankeyChart.types.js +5 -0
  651. package/lib-amd/components/SankeyChart/SankeyChart.types.js.map +1 -0
  652. package/lib-amd/components/SankeyChart/index.d.ts +2 -0
  653. package/lib-amd/components/SankeyChart/index.js +7 -0
  654. package/lib-amd/components/SankeyChart/index.js.map +1 -0
  655. package/lib-amd/components/Sparkline/Sparkline.base.d.ts +20 -0
  656. package/lib-amd/components/Sparkline/Sparkline.base.js +74 -0
  657. package/lib-amd/components/Sparkline/Sparkline.base.js.map +1 -0
  658. package/lib-amd/components/Sparkline/Sparkline.d.ts +3 -0
  659. package/lib-amd/components/Sparkline/Sparkline.js +8 -0
  660. package/lib-amd/components/Sparkline/Sparkline.js.map +1 -0
  661. package/lib-amd/components/Sparkline/Sparkline.styles.d.ts +2 -0
  662. package/lib-amd/components/Sparkline/Sparkline.styles.js +15 -0
  663. package/lib-amd/components/Sparkline/Sparkline.styles.js.map +1 -0
  664. package/lib-amd/components/Sparkline/Sparkline.types.d.ts +51 -0
  665. package/lib-amd/components/Sparkline/Sparkline.types.js +5 -0
  666. package/lib-amd/components/Sparkline/Sparkline.types.js.map +1 -0
  667. package/lib-amd/components/Sparkline/index.d.ts +2 -0
  668. package/lib-amd/components/Sparkline/index.js +7 -0
  669. package/lib-amd/components/Sparkline/index.js.map +1 -0
  670. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.d.ts +41 -0
  671. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js +291 -0
  672. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -0
  673. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.d.ts +3 -0
  674. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.js +8 -0
  675. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.js.map +1 -0
  676. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.d.ts +2 -0
  677. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.js +66 -0
  678. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -0
  679. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.d.ts +154 -0
  680. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.js +5 -0
  681. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -0
  682. package/lib-amd/components/StackedBarChart/StackedBarChart.base.d.ts +39 -0
  683. package/lib-amd/components/StackedBarChart/StackedBarChart.base.js +295 -0
  684. package/lib-amd/components/StackedBarChart/StackedBarChart.base.js.map +1 -0
  685. package/lib-amd/components/StackedBarChart/StackedBarChart.d.ts +3 -0
  686. package/lib-amd/components/StackedBarChart/StackedBarChart.js +8 -0
  687. package/lib-amd/components/StackedBarChart/StackedBarChart.js.map +1 -0
  688. package/lib-amd/components/StackedBarChart/StackedBarChart.styles.d.ts +2 -0
  689. package/lib-amd/components/StackedBarChart/StackedBarChart.styles.js +98 -0
  690. package/lib-amd/components/StackedBarChart/StackedBarChart.styles.js.map +1 -0
  691. package/lib-amd/components/StackedBarChart/StackedBarChart.types.d.ts +202 -0
  692. package/lib-amd/components/StackedBarChart/StackedBarChart.types.js +5 -0
  693. package/lib-amd/components/StackedBarChart/StackedBarChart.types.js.map +1 -0
  694. package/lib-amd/components/StackedBarChart/index.d.ts +5 -0
  695. package/lib-amd/components/StackedBarChart/index.js +10 -0
  696. package/lib-amd/components/StackedBarChart/index.js.map +1 -0
  697. package/lib-amd/components/TreeChart/TreeChart.base.d.ts +18 -0
  698. package/lib-amd/components/TreeChart/TreeChart.base.js +301 -0
  699. package/lib-amd/components/TreeChart/TreeChart.base.js.map +1 -0
  700. package/lib-amd/components/TreeChart/TreeChart.d.ts +3 -0
  701. package/lib-amd/components/TreeChart/TreeChart.js +7 -0
  702. package/lib-amd/components/TreeChart/TreeChart.js.map +1 -0
  703. package/lib-amd/components/TreeChart/TreeChart.styles.d.ts +2 -0
  704. package/lib-amd/components/TreeChart/TreeChart.styles.js +33 -0
  705. package/lib-amd/components/TreeChart/TreeChart.styles.js.map +1 -0
  706. package/lib-amd/components/TreeChart/TreeChart.types.d.ts +185 -0
  707. package/lib-amd/components/TreeChart/TreeChart.types.js +28 -0
  708. package/lib-amd/components/TreeChart/TreeChart.types.js.map +1 -0
  709. package/lib-amd/components/TreeChart/index.d.ts +2 -0
  710. package/lib-amd/components/TreeChart/index.js +7 -0
  711. package/lib-amd/components/TreeChart/index.js.map +1 -0
  712. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.d.ts +57 -0
  713. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +476 -0
  714. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -0
  715. package/lib-amd/components/VerticalBarChart/VerticalBarChart.d.ts +3 -0
  716. package/lib-amd/components/VerticalBarChart/VerticalBarChart.js +8 -0
  717. package/lib-amd/components/VerticalBarChart/VerticalBarChart.js.map +1 -0
  718. package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.d.ts +2 -0
  719. package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js +27 -0
  720. package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -0
  721. package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.d.ts +105 -0
  722. package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.js +5 -0
  723. package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -0
  724. package/lib-amd/components/VerticalBarChart/index.d.ts +2 -0
  725. package/lib-amd/components/VerticalBarChart/index.js +7 -0
  726. package/lib-amd/components/VerticalBarChart/index.js.map +1 -0
  727. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +71 -0
  728. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +601 -0
  729. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -0
  730. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.d.ts +3 -0
  731. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.js +8 -0
  732. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -0
  733. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.d.ts +2 -0
  734. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +17 -0
  735. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -0
  736. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.d.ts +133 -0
  737. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js +5 -0
  738. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -0
  739. package/lib-amd/components/VerticalStackedBarChart/index.d.ts +2 -0
  740. package/lib-amd/components/VerticalStackedBarChart/index.js +7 -0
  741. package/lib-amd/components/VerticalStackedBarChart/index.js.map +1 -0
  742. package/lib-amd/index.d.ts +18 -0
  743. package/lib-amd/index.js +22 -0
  744. package/lib-amd/index.js.map +1 -0
  745. package/lib-amd/types/IDataPoint.d.ts +541 -0
  746. package/lib-amd/types/IDataPoint.js +5 -0
  747. package/lib-amd/types/IDataPoint.js.map +1 -0
  748. package/lib-amd/types/IEventAnnotation.d.ts +6 -0
  749. package/lib-amd/types/IEventAnnotation.js +5 -0
  750. package/lib-amd/types/IEventAnnotation.js.map +1 -0
  751. package/lib-amd/types/ILegendDataItem.d.ts +10 -0
  752. package/lib-amd/types/ILegendDataItem.js +5 -0
  753. package/lib-amd/types/ILegendDataItem.js.map +1 -0
  754. package/lib-amd/types/index.d.ts +2 -0
  755. package/lib-amd/types/index.js +7 -0
  756. package/lib-amd/types/index.js.map +1 -0
  757. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.d.ts +6 -0
  758. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.js +39 -0
  759. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -0
  760. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.d.ts +3 -0
  761. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.js +8 -0
  762. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.js.map +1 -0
  763. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.d.ts +2 -0
  764. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.js +87 -0
  765. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -0
  766. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.types.d.ts +105 -0
  767. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.types.js +5 -0
  768. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.types.js.map +1 -0
  769. package/lib-amd/utilities/ChartHoverCard/index.d.ts +3 -0
  770. package/lib-amd/utilities/ChartHoverCard/index.js +8 -0
  771. package/lib-amd/utilities/ChartHoverCard/index.js.map +1 -0
  772. package/lib-amd/utilities/index.d.ts +2 -0
  773. package/lib-amd/utilities/index.js +7 -0
  774. package/lib-amd/utilities/index.js.map +1 -0
  775. package/lib-amd/utilities/utilities.d.ts +374 -0
  776. package/lib-amd/utilities/utilities.js +844 -0
  777. package/lib-amd/utilities/utilities.js.map +1 -0
  778. package/lib-amd/version.d.ts +1 -0
  779. package/lib-amd/version.js +6 -0
  780. package/lib-amd/version.js.map +1 -0
  781. package/lib-commonjs/AreaChart.d.ts +1 -0
  782. package/lib-commonjs/AreaChart.js +5 -0
  783. package/lib-commonjs/AreaChart.js.map +1 -0
  784. package/lib-commonjs/CartesianChart.d.ts +1 -0
  785. package/lib-commonjs/CartesianChart.js +5 -0
  786. package/lib-commonjs/CartesianChart.js.map +1 -0
  787. package/lib-commonjs/DonutChart.d.ts +1 -0
  788. package/lib-commonjs/DonutChart.js +5 -0
  789. package/lib-commonjs/DonutChart.js.map +1 -0
  790. package/lib-commonjs/GroupedVerticalBarChart.d.ts +1 -0
  791. package/lib-commonjs/GroupedVerticalBarChart.js +5 -0
  792. package/lib-commonjs/GroupedVerticalBarChart.js.map +1 -0
  793. package/lib-commonjs/HeatMapChart.d.ts +1 -0
  794. package/lib-commonjs/HeatMapChart.js +5 -0
  795. package/lib-commonjs/HeatMapChart.js.map +1 -0
  796. package/lib-commonjs/HorizontalBarChart.d.ts +1 -0
  797. package/lib-commonjs/HorizontalBarChart.js +5 -0
  798. package/lib-commonjs/HorizontalBarChart.js.map +1 -0
  799. package/lib-commonjs/Legends.d.ts +1 -0
  800. package/lib-commonjs/Legends.js +5 -0
  801. package/lib-commonjs/Legends.js.map +1 -0
  802. package/lib-commonjs/LineChart.d.ts +1 -0
  803. package/lib-commonjs/LineChart.js +5 -0
  804. package/lib-commonjs/LineChart.js.map +1 -0
  805. package/lib-commonjs/PieChart.d.ts +1 -0
  806. package/lib-commonjs/PieChart.js +5 -0
  807. package/lib-commonjs/PieChart.js.map +1 -0
  808. package/lib-commonjs/SankeyChart.d.ts +1 -0
  809. package/lib-commonjs/SankeyChart.js +5 -0
  810. package/lib-commonjs/SankeyChart.js.map +1 -0
  811. package/lib-commonjs/Sparkline.d.ts +1 -0
  812. package/lib-commonjs/Sparkline.js +5 -0
  813. package/lib-commonjs/Sparkline.js.map +1 -0
  814. package/lib-commonjs/StackedBarChart.d.ts +1 -0
  815. package/lib-commonjs/StackedBarChart.js +5 -0
  816. package/lib-commonjs/StackedBarChart.js.map +1 -0
  817. package/lib-commonjs/Styling.d.ts +2 -0
  818. package/lib-commonjs/Styling.js +75 -0
  819. package/lib-commonjs/Styling.js.map +1 -0
  820. package/lib-commonjs/TreeChart.d.ts +1 -0
  821. package/lib-commonjs/TreeChart.js +5 -0
  822. package/lib-commonjs/TreeChart.js.map +1 -0
  823. package/lib-commonjs/Utilities.d.ts +2 -0
  824. package/lib-commonjs/Utilities.js +185 -0
  825. package/lib-commonjs/Utilities.js.map +1 -0
  826. package/lib-commonjs/VerticalBarChart.d.ts +1 -0
  827. package/lib-commonjs/VerticalBarChart.js +5 -0
  828. package/lib-commonjs/VerticalBarChart.js.map +1 -0
  829. package/lib-commonjs/VerticalStackedBarChart.d.ts +1 -0
  830. package/lib-commonjs/VerticalStackedBarChart.js +5 -0
  831. package/lib-commonjs/VerticalStackedBarChart.js.map +1 -0
  832. package/lib-commonjs/components/AreaChart/AreaChart.base.d.ts +73 -0
  833. package/lib-commonjs/components/AreaChart/AreaChart.base.js +492 -0
  834. package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -0
  835. package/lib-commonjs/components/AreaChart/AreaChart.d.ts +3 -0
  836. package/lib-commonjs/components/AreaChart/AreaChart.js +9 -0
  837. package/lib-commonjs/components/AreaChart/AreaChart.js.map +1 -0
  838. package/lib-commonjs/components/AreaChart/AreaChart.styles.d.ts +2 -0
  839. package/lib-commonjs/components/AreaChart/AreaChart.styles.js +11 -0
  840. package/lib-commonjs/components/AreaChart/AreaChart.styles.js.map +1 -0
  841. package/lib-commonjs/components/AreaChart/AreaChart.types.d.ts +36 -0
  842. package/lib-commonjs/components/AreaChart/AreaChart.types.js +3 -0
  843. package/lib-commonjs/components/AreaChart/AreaChart.types.js.map +1 -0
  844. package/lib-commonjs/components/AreaChart/index.d.ts +2 -0
  845. package/lib-commonjs/components/AreaChart/index.js +6 -0
  846. package/lib-commonjs/components/AreaChart/index.js.map +1 -0
  847. package/lib-commonjs/components/CommonComponents/CartesianChart.base.d.ts +43 -0
  848. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js +326 -0
  849. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -0
  850. package/lib-commonjs/components/CommonComponents/CartesianChart.d.ts +3 -0
  851. package/lib-commonjs/components/CommonComponents/CartesianChart.js +8 -0
  852. package/lib-commonjs/components/CommonComponents/CartesianChart.js.map +1 -0
  853. package/lib-commonjs/components/CommonComponents/CartesianChart.styles.d.ts +2 -0
  854. package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js +167 -0
  855. package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js.map +1 -0
  856. package/lib-commonjs/components/CommonComponents/CartesianChart.types.d.ts +400 -0
  857. package/lib-commonjs/components/CommonComponents/CartesianChart.types.js +3 -0
  858. package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -0
  859. package/lib-commonjs/components/CommonComponents/index.d.ts +2 -0
  860. package/lib-commonjs/components/CommonComponents/index.js +6 -0
  861. package/lib-commonjs/components/CommonComponents/index.js.map +1 -0
  862. package/lib-commonjs/components/DonutChart/Arc/Arc.d.ts +19 -0
  863. package/lib-commonjs/components/DonutChart/Arc/Arc.js +80 -0
  864. package/lib-commonjs/components/DonutChart/Arc/Arc.js.map +1 -0
  865. package/lib-commonjs/components/DonutChart/Arc/Arc.styles.d.ts +2 -0
  866. package/lib-commonjs/components/DonutChart/Arc/Arc.styles.js +36 -0
  867. package/lib-commonjs/components/DonutChart/Arc/Arc.styles.js.map +1 -0
  868. package/lib-commonjs/components/DonutChart/Arc/Arc.types.d.ts +112 -0
  869. package/lib-commonjs/components/DonutChart/Arc/Arc.types.js +3 -0
  870. package/lib-commonjs/components/DonutChart/Arc/Arc.types.js.map +1 -0
  871. package/lib-commonjs/components/DonutChart/Arc/index.d.ts +2 -0
  872. package/lib-commonjs/components/DonutChart/Arc/index.js +6 -0
  873. package/lib-commonjs/components/DonutChart/Arc/index.js.map +1 -0
  874. package/lib-commonjs/components/DonutChart/DonutChart.base.d.ts +44 -0
  875. package/lib-commonjs/components/DonutChart/DonutChart.base.js +212 -0
  876. package/lib-commonjs/components/DonutChart/DonutChart.base.js.map +1 -0
  877. package/lib-commonjs/components/DonutChart/DonutChart.d.ts +3 -0
  878. package/lib-commonjs/components/DonutChart/DonutChart.js +9 -0
  879. package/lib-commonjs/components/DonutChart/DonutChart.js.map +1 -0
  880. package/lib-commonjs/components/DonutChart/DonutChart.styles.d.ts +2 -0
  881. package/lib-commonjs/components/DonutChart/DonutChart.styles.js +33 -0
  882. package/lib-commonjs/components/DonutChart/DonutChart.styles.js.map +1 -0
  883. package/lib-commonjs/components/DonutChart/DonutChart.types.d.ts +53 -0
  884. package/lib-commonjs/components/DonutChart/DonutChart.types.js +3 -0
  885. package/lib-commonjs/components/DonutChart/DonutChart.types.js.map +1 -0
  886. package/lib-commonjs/components/DonutChart/Pie/Pie.d.ts +12 -0
  887. package/lib-commonjs/components/DonutChart/Pie/Pie.js +50 -0
  888. package/lib-commonjs/components/DonutChart/Pie/Pie.js.map +1 -0
  889. package/lib-commonjs/components/DonutChart/Pie/Pie.styles.d.ts +2 -0
  890. package/lib-commonjs/components/DonutChart/Pie/Pie.styles.js +10 -0
  891. package/lib-commonjs/components/DonutChart/Pie/Pie.styles.js.map +1 -0
  892. package/lib-commonjs/components/DonutChart/Pie/Pie.types.d.ts +78 -0
  893. package/lib-commonjs/components/DonutChart/Pie/Pie.types.js +3 -0
  894. package/lib-commonjs/components/DonutChart/Pie/Pie.types.js.map +1 -0
  895. package/lib-commonjs/components/DonutChart/Pie/index.d.ts +2 -0
  896. package/lib-commonjs/components/DonutChart/Pie/index.js +6 -0
  897. package/lib-commonjs/components/DonutChart/Pie/index.js.map +1 -0
  898. package/lib-commonjs/components/DonutChart/index.d.ts +3 -0
  899. package/lib-commonjs/components/DonutChart/index.js +7 -0
  900. package/lib-commonjs/components/DonutChart/index.js.map +1 -0
  901. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +49 -0
  902. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +354 -0
  903. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -0
  904. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.d.ts +3 -0
  905. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +9 -0
  906. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -0
  907. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.d.ts +2 -0
  908. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +15 -0
  909. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -0
  910. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +74 -0
  911. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js +3 -0
  912. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -0
  913. package/lib-commonjs/components/GroupedVerticalBarChart/index.d.ts +2 -0
  914. package/lib-commonjs/components/GroupedVerticalBarChart/index.js +6 -0
  915. package/lib-commonjs/components/GroupedVerticalBarChart/index.js.map +1 -0
  916. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.d.ts +145 -0
  917. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js +501 -0
  918. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js.map +1 -0
  919. package/lib-commonjs/components/HeatMapChart/HeatMapChart.d.ts +3 -0
  920. package/lib-commonjs/components/HeatMapChart/HeatMapChart.js +8 -0
  921. package/lib-commonjs/components/HeatMapChart/HeatMapChart.js.map +1 -0
  922. package/lib-commonjs/components/HeatMapChart/HeatMapChart.styles.d.ts +2 -0
  923. package/lib-commonjs/components/HeatMapChart/HeatMapChart.styles.js +26 -0
  924. package/lib-commonjs/components/HeatMapChart/HeatMapChart.styles.js.map +1 -0
  925. package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.d.ts +110 -0
  926. package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.js +3 -0
  927. package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.js.map +1 -0
  928. package/lib-commonjs/components/HeatMapChart/index.d.ts +2 -0
  929. package/lib-commonjs/components/HeatMapChart/index.js +6 -0
  930. package/lib-commonjs/components/HeatMapChart/index.js.map +1 -0
  931. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.d.ts +34 -0
  932. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js +197 -0
  933. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -0
  934. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.d.ts +3 -0
  935. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js +9 -0
  936. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -0
  937. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.styles.d.ts +2 -0
  938. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.styles.js +53 -0
  939. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -0
  940. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.d.ts +130 -0
  941. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js +3 -0
  942. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -0
  943. package/lib-commonjs/components/HorizontalBarChart/index.d.ts +3 -0
  944. package/lib-commonjs/components/HorizontalBarChart/index.js +7 -0
  945. package/lib-commonjs/components/HorizontalBarChart/index.js.map +1 -0
  946. package/lib-commonjs/components/Legends/Legends.base.d.ts +42 -0
  947. package/lib-commonjs/components/Legends/Legends.base.js +314 -0
  948. package/lib-commonjs/components/Legends/Legends.base.js.map +1 -0
  949. package/lib-commonjs/components/Legends/Legends.d.ts +3 -0
  950. package/lib-commonjs/components/Legends/Legends.js +8 -0
  951. package/lib-commonjs/components/Legends/Legends.js.map +1 -0
  952. package/lib-commonjs/components/Legends/Legends.styles.d.ts +2 -0
  953. package/lib-commonjs/components/Legends/Legends.styles.js +107 -0
  954. package/lib-commonjs/components/Legends/Legends.styles.js.map +1 -0
  955. package/lib-commonjs/components/Legends/Legends.types.d.ts +169 -0
  956. package/lib-commonjs/components/Legends/Legends.types.js +3 -0
  957. package/lib-commonjs/components/Legends/Legends.types.js.map +1 -0
  958. package/lib-commonjs/components/Legends/index.d.ts +3 -0
  959. package/lib-commonjs/components/Legends/index.js +7 -0
  960. package/lib-commonjs/components/Legends/index.js.map +1 -0
  961. package/lib-commonjs/components/Legends/shape.d.ts +9 -0
  962. package/lib-commonjs/components/Legends/shape.js +28 -0
  963. package/lib-commonjs/components/Legends/shape.js.map +1 -0
  964. package/lib-commonjs/components/LineChart/LineChart.base.d.ts +69 -0
  965. package/lib-commonjs/components/LineChart/LineChart.base.js +771 -0
  966. package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -0
  967. package/lib-commonjs/components/LineChart/LineChart.d.ts +3 -0
  968. package/lib-commonjs/components/LineChart/LineChart.js +9 -0
  969. package/lib-commonjs/components/LineChart/LineChart.js.map +1 -0
  970. package/lib-commonjs/components/LineChart/LineChart.styles.d.ts +2 -0
  971. package/lib-commonjs/components/LineChart/LineChart.styles.js +11 -0
  972. package/lib-commonjs/components/LineChart/LineChart.styles.js.map +1 -0
  973. package/lib-commonjs/components/LineChart/LineChart.types.d.ts +72 -0
  974. package/lib-commonjs/components/LineChart/LineChart.types.js +3 -0
  975. package/lib-commonjs/components/LineChart/LineChart.types.js.map +1 -0
  976. package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.d.ts +10 -0
  977. package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js +97 -0
  978. package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -0
  979. package/lib-commonjs/components/LineChart/eventAnnotation/LabelLink.d.ts +22 -0
  980. package/lib-commonjs/components/LineChart/eventAnnotation/LabelLink.js +41 -0
  981. package/lib-commonjs/components/LineChart/eventAnnotation/LabelLink.js.map +1 -0
  982. package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.d.ts +13 -0
  983. package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js +41 -0
  984. package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js.map +1 -0
  985. package/lib-commonjs/components/LineChart/index.d.ts +3 -0
  986. package/lib-commonjs/components/LineChart/index.js +7 -0
  987. package/lib-commonjs/components/LineChart/index.js.map +1 -0
  988. package/lib-commonjs/components/PieChart/Arc/Arc.d.ts +12 -0
  989. package/lib-commonjs/components/PieChart/Arc/Arc.js +60 -0
  990. package/lib-commonjs/components/PieChart/Arc/Arc.js.map +1 -0
  991. package/lib-commonjs/components/PieChart/Arc/Arc.styles.d.ts +2 -0
  992. package/lib-commonjs/components/PieChart/Arc/Arc.styles.js +12 -0
  993. package/lib-commonjs/components/PieChart/Arc/Arc.styles.js.map +1 -0
  994. package/lib-commonjs/components/PieChart/Arc/Arc.types.d.ts +60 -0
  995. package/lib-commonjs/components/PieChart/Arc/Arc.types.js +3 -0
  996. package/lib-commonjs/components/PieChart/Arc/Arc.types.js.map +1 -0
  997. package/lib-commonjs/components/PieChart/Arc/index.d.ts +2 -0
  998. package/lib-commonjs/components/PieChart/Arc/index.js +6 -0
  999. package/lib-commonjs/components/PieChart/Arc/index.js.map +1 -0
  1000. package/lib-commonjs/components/PieChart/Pie/Pie.d.ts +10 -0
  1001. package/lib-commonjs/components/PieChart/Pie/Pie.js +38 -0
  1002. package/lib-commonjs/components/PieChart/Pie/Pie.js.map +1 -0
  1003. package/lib-commonjs/components/PieChart/Pie/Pie.styles.d.ts +2 -0
  1004. package/lib-commonjs/components/PieChart/Pie/Pie.styles.js +10 -0
  1005. package/lib-commonjs/components/PieChart/Pie/Pie.styles.js.map +1 -0
  1006. package/lib-commonjs/components/PieChart/Pie/Pie.types.d.ts +46 -0
  1007. package/lib-commonjs/components/PieChart/Pie/Pie.types.js +3 -0
  1008. package/lib-commonjs/components/PieChart/Pie/Pie.types.js.map +1 -0
  1009. package/lib-commonjs/components/PieChart/Pie/index.d.ts +2 -0
  1010. package/lib-commonjs/components/PieChart/Pie/index.js +6 -0
  1011. package/lib-commonjs/components/PieChart/Pie/index.js.map +1 -0
  1012. package/lib-commonjs/components/PieChart/PieChart.base.d.ts +7 -0
  1013. package/lib-commonjs/components/PieChart/PieChart.base.js +37 -0
  1014. package/lib-commonjs/components/PieChart/PieChart.base.js.map +1 -0
  1015. package/lib-commonjs/components/PieChart/PieChart.d.ts +3 -0
  1016. package/lib-commonjs/components/PieChart/PieChart.js +9 -0
  1017. package/lib-commonjs/components/PieChart/PieChart.js.map +1 -0
  1018. package/lib-commonjs/components/PieChart/PieChart.styles.d.ts +2 -0
  1019. package/lib-commonjs/components/PieChart/PieChart.styles.js +33 -0
  1020. package/lib-commonjs/components/PieChart/PieChart.styles.js.map +1 -0
  1021. package/lib-commonjs/components/PieChart/PieChart.types.d.ts +63 -0
  1022. package/lib-commonjs/components/PieChart/PieChart.types.js +3 -0
  1023. package/lib-commonjs/components/PieChart/PieChart.types.js.map +1 -0
  1024. package/lib-commonjs/components/PieChart/index.d.ts +2 -0
  1025. package/lib-commonjs/components/PieChart/index.js +6 -0
  1026. package/lib-commonjs/components/PieChart/index.js.map +1 -0
  1027. package/lib-commonjs/components/SankeyChart/SankeyChart.base.d.ts +18 -0
  1028. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js +111 -0
  1029. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js.map +1 -0
  1030. package/lib-commonjs/components/SankeyChart/SankeyChart.d.ts +3 -0
  1031. package/lib-commonjs/components/SankeyChart/SankeyChart.js +9 -0
  1032. package/lib-commonjs/components/SankeyChart/SankeyChart.js.map +1 -0
  1033. package/lib-commonjs/components/SankeyChart/SankeyChart.styles.d.ts +2 -0
  1034. package/lib-commonjs/components/SankeyChart/SankeyChart.styles.js +25 -0
  1035. package/lib-commonjs/components/SankeyChart/SankeyChart.styles.js.map +1 -0
  1036. package/lib-commonjs/components/SankeyChart/SankeyChart.types.d.ts +63 -0
  1037. package/lib-commonjs/components/SankeyChart/SankeyChart.types.js +3 -0
  1038. package/lib-commonjs/components/SankeyChart/SankeyChart.types.js.map +1 -0
  1039. package/lib-commonjs/components/SankeyChart/index.d.ts +2 -0
  1040. package/lib-commonjs/components/SankeyChart/index.js +6 -0
  1041. package/lib-commonjs/components/SankeyChart/index.js.map +1 -0
  1042. package/lib-commonjs/components/Sparkline/Sparkline.base.d.ts +20 -0
  1043. package/lib-commonjs/components/Sparkline/Sparkline.base.js +79 -0
  1044. package/lib-commonjs/components/Sparkline/Sparkline.base.js.map +1 -0
  1045. package/lib-commonjs/components/Sparkline/Sparkline.d.ts +3 -0
  1046. package/lib-commonjs/components/Sparkline/Sparkline.js +9 -0
  1047. package/lib-commonjs/components/Sparkline/Sparkline.js.map +1 -0
  1048. package/lib-commonjs/components/Sparkline/Sparkline.styles.d.ts +2 -0
  1049. package/lib-commonjs/components/Sparkline/Sparkline.styles.js +14 -0
  1050. package/lib-commonjs/components/Sparkline/Sparkline.styles.js.map +1 -0
  1051. package/lib-commonjs/components/Sparkline/Sparkline.types.d.ts +51 -0
  1052. package/lib-commonjs/components/Sparkline/Sparkline.types.js +3 -0
  1053. package/lib-commonjs/components/Sparkline/Sparkline.types.js.map +1 -0
  1054. package/lib-commonjs/components/Sparkline/index.d.ts +2 -0
  1055. package/lib-commonjs/components/Sparkline/index.js +6 -0
  1056. package/lib-commonjs/components/Sparkline/index.js.map +1 -0
  1057. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.d.ts +41 -0
  1058. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js +296 -0
  1059. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -0
  1060. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.d.ts +3 -0
  1061. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.js +9 -0
  1062. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.js.map +1 -0
  1063. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.styles.d.ts +2 -0
  1064. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.styles.js +65 -0
  1065. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -0
  1066. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.types.d.ts +154 -0
  1067. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.types.js +3 -0
  1068. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -0
  1069. package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.d.ts +39 -0
  1070. package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js +300 -0
  1071. package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js.map +1 -0
  1072. package/lib-commonjs/components/StackedBarChart/StackedBarChart.d.ts +3 -0
  1073. package/lib-commonjs/components/StackedBarChart/StackedBarChart.js +9 -0
  1074. package/lib-commonjs/components/StackedBarChart/StackedBarChart.js.map +1 -0
  1075. package/lib-commonjs/components/StackedBarChart/StackedBarChart.styles.d.ts +2 -0
  1076. package/lib-commonjs/components/StackedBarChart/StackedBarChart.styles.js +98 -0
  1077. package/lib-commonjs/components/StackedBarChart/StackedBarChart.styles.js.map +1 -0
  1078. package/lib-commonjs/components/StackedBarChart/StackedBarChart.types.d.ts +202 -0
  1079. package/lib-commonjs/components/StackedBarChart/StackedBarChart.types.js +3 -0
  1080. package/lib-commonjs/components/StackedBarChart/StackedBarChart.types.js.map +1 -0
  1081. package/lib-commonjs/components/StackedBarChart/index.d.ts +5 -0
  1082. package/lib-commonjs/components/StackedBarChart/index.js +9 -0
  1083. package/lib-commonjs/components/StackedBarChart/index.js.map +1 -0
  1084. package/lib-commonjs/components/TreeChart/TreeChart.base.d.ts +18 -0
  1085. package/lib-commonjs/components/TreeChart/TreeChart.base.js +306 -0
  1086. package/lib-commonjs/components/TreeChart/TreeChart.base.js.map +1 -0
  1087. package/lib-commonjs/components/TreeChart/TreeChart.d.ts +3 -0
  1088. package/lib-commonjs/components/TreeChart/TreeChart.js +8 -0
  1089. package/lib-commonjs/components/TreeChart/TreeChart.js.map +1 -0
  1090. package/lib-commonjs/components/TreeChart/TreeChart.styles.d.ts +2 -0
  1091. package/lib-commonjs/components/TreeChart/TreeChart.styles.js +32 -0
  1092. package/lib-commonjs/components/TreeChart/TreeChart.styles.js.map +1 -0
  1093. package/lib-commonjs/components/TreeChart/TreeChart.types.d.ts +185 -0
  1094. package/lib-commonjs/components/TreeChart/TreeChart.types.js +26 -0
  1095. package/lib-commonjs/components/TreeChart/TreeChart.types.js.map +1 -0
  1096. package/lib-commonjs/components/TreeChart/index.d.ts +2 -0
  1097. package/lib-commonjs/components/TreeChart/index.js +6 -0
  1098. package/lib-commonjs/components/TreeChart/index.js.map +1 -0
  1099. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.d.ts +57 -0
  1100. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js +485 -0
  1101. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -0
  1102. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.d.ts +3 -0
  1103. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js +9 -0
  1104. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js.map +1 -0
  1105. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.styles.d.ts +2 -0
  1106. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.styles.js +26 -0
  1107. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -0
  1108. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.d.ts +105 -0
  1109. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.js +3 -0
  1110. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -0
  1111. package/lib-commonjs/components/VerticalBarChart/index.d.ts +2 -0
  1112. package/lib-commonjs/components/VerticalBarChart/index.js +6 -0
  1113. package/lib-commonjs/components/VerticalBarChart/index.js.map +1 -0
  1114. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +71 -0
  1115. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +610 -0
  1116. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -0
  1117. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.d.ts +3 -0
  1118. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js +9 -0
  1119. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -0
  1120. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.d.ts +2 -0
  1121. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +16 -0
  1122. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -0
  1123. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.d.ts +133 -0
  1124. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js +3 -0
  1125. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -0
  1126. package/lib-commonjs/components/VerticalStackedBarChart/index.d.ts +2 -0
  1127. package/lib-commonjs/components/VerticalStackedBarChart/index.js +6 -0
  1128. package/lib-commonjs/components/VerticalStackedBarChart/index.js.map +1 -0
  1129. package/lib-commonjs/index.d.ts +18 -0
  1130. package/lib-commonjs/index.js +22 -0
  1131. package/lib-commonjs/index.js.map +1 -0
  1132. package/lib-commonjs/types/IDataPoint.d.ts +541 -0
  1133. package/lib-commonjs/types/IDataPoint.js +3 -0
  1134. package/lib-commonjs/types/IDataPoint.js.map +1 -0
  1135. package/lib-commonjs/types/IEventAnnotation.d.ts +6 -0
  1136. package/lib-commonjs/types/IEventAnnotation.js +3 -0
  1137. package/lib-commonjs/types/IEventAnnotation.js.map +1 -0
  1138. package/lib-commonjs/types/ILegendDataItem.d.ts +10 -0
  1139. package/lib-commonjs/types/ILegendDataItem.js +3 -0
  1140. package/lib-commonjs/types/ILegendDataItem.js.map +1 -0
  1141. package/lib-commonjs/types/index.d.ts +2 -0
  1142. package/lib-commonjs/types/index.js +6 -0
  1143. package/lib-commonjs/types/index.js.map +1 -0
  1144. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.base.d.ts +6 -0
  1145. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.base.js +41 -0
  1146. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -0
  1147. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.d.ts +3 -0
  1148. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.js +9 -0
  1149. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.js.map +1 -0
  1150. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.styles.d.ts +2 -0
  1151. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.styles.js +86 -0
  1152. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -0
  1153. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.types.d.ts +105 -0
  1154. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.types.js +3 -0
  1155. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.types.js.map +1 -0
  1156. package/lib-commonjs/utilities/ChartHoverCard/index.d.ts +3 -0
  1157. package/lib-commonjs/utilities/ChartHoverCard/index.js +7 -0
  1158. package/lib-commonjs/utilities/ChartHoverCard/index.js.map +1 -0
  1159. package/lib-commonjs/utilities/index.d.ts +2 -0
  1160. package/lib-commonjs/utilities/index.js +6 -0
  1161. package/lib-commonjs/utilities/index.js.map +1 -0
  1162. package/lib-commonjs/utilities/utilities.d.ts +374 -0
  1163. package/lib-commonjs/utilities/utilities.js +849 -0
  1164. package/lib-commonjs/utilities/utilities.js.map +1 -0
  1165. package/lib-commonjs/version.d.ts +1 -0
  1166. package/lib-commonjs/version.js +7 -0
  1167. package/lib-commonjs/version.js.map +1 -0
  1168. package/package.json +4 -4
@@ -0,0 +1,49 @@
1
+ import { __assign } from "tslib";
2
+ import { FontWeights } from '@fluentui/react/lib/Styling';
3
+ export var getHorizontalBarChartStyles = function (props) {
4
+ var className = props.className, theme = props.theme, width = props.width;
5
+ var palette = theme.palette;
6
+ return {
7
+ root: [
8
+ {
9
+ display: 'flex',
10
+ flexDirection: 'column',
11
+ width: width ? width : '100%',
12
+ },
13
+ className,
14
+ ],
15
+ items: {
16
+ height: '32px',
17
+ marginTop: '5px',
18
+ position: 'relative',
19
+ },
20
+ chart: {
21
+ width: '100%',
22
+ height: '8px',
23
+ marginBottom: '11px',
24
+ },
25
+ barWrapper: {
26
+ stroke: theme.palette.white,
27
+ strokeWidth: 2,
28
+ },
29
+ chartTitle: __assign(__assign({}, theme.fonts.small), { display: 'flex', justifyContent: 'space-between', marginBottom: '3px' }),
30
+ chartDataText: {
31
+ fontWeight: FontWeights.bold,
32
+ },
33
+ chartDataTextDenominator: {
34
+ fontWeight: FontWeights.semibold,
35
+ },
36
+ triangle: {
37
+ width: '0',
38
+ height: '0',
39
+ borderLeft: '4px solid transparent',
40
+ borderRight: '4px solid transparent',
41
+ borderTop: '8px solid',
42
+ borderTopColor: palette.blue,
43
+ marginBottom: '4px',
44
+ position: 'absolute',
45
+ top: '12px',
46
+ },
47
+ };
48
+ };
49
+ //# sourceMappingURL=HorizontalBarChart.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HorizontalBarChart.styles.js","sourceRoot":"../src/","sources":["components/HorizontalBarChart/HorizontalBarChart.styles.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAG1D,MAAM,CAAC,IAAM,2BAA2B,GAAG,UAAC,KAAoC;IACtE,IAAA,SAAS,GAAmB,KAAK,UAAxB,EAAE,KAAK,GAAY,KAAK,MAAjB,EAAE,KAAK,GAAK,KAAK,MAAV,CAAW;IAClC,IAAA,OAAO,GAAK,KAAM,QAAX,CAAY;IAE3B,OAAO;QACL,IAAI,EAAE;YACJ;gBACE,OAAO,EAAE,MAAM;gBACf,aAAa,EAAE,QAAQ;gBACvB,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM;aAC9B;YACD,SAAS;SACV;QACD,KAAK,EAAE;YACL,MAAM,EAAE,MAAM;YACd,SAAS,EAAE,KAAK;YAChB,QAAQ,EAAE,UAAU;SACrB;QACD,KAAK,EAAE;YACL,KAAK,EAAE,MAAM;YACb,MAAM,EAAE,KAAK;YACb,YAAY,EAAE,MAAM;SACrB;QACD,UAAU,EAAE;YACV,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK;YAC3B,WAAW,EAAE,CAAC;SACf;QACD,UAAU,wBACL,KAAK,CAAC,KAAK,CAAC,KAAK,KACpB,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,eAAe,EAC/B,YAAY,EAAE,KAAK,GACpB;QACD,aAAa,EAAE;YACb,UAAU,EAAE,WAAW,CAAC,IAAI;SAC7B;QACD,wBAAwB,EAAE;YACxB,UAAU,EAAE,WAAW,CAAC,QAAQ;SACjC;QACD,QAAQ,EAAE;YACR,KAAK,EAAE,GAAG;YACV,MAAM,EAAE,GAAG;YACX,UAAU,EAAE,uBAAuB;YACnC,WAAW,EAAE,uBAAuB;YACpC,SAAS,EAAE,WAAW;YACtB,cAAc,EAAE,OAAO,CAAC,IAAI;YAC5B,YAAY,EAAE,KAAK;YACnB,QAAQ,EAAE,UAAU;YACpB,GAAG,EAAE,MAAM;SACZ;KACF,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { FontWeights } from '@fluentui/react/lib/Styling';\nimport { IHorizontalBarChartStyleProps, IHorizontalBarChartStyles } from './HorizontalBarChart.types';\n\nexport const getHorizontalBarChartStyles = (props: IHorizontalBarChartStyleProps): IHorizontalBarChartStyles => {\n const { className, theme, width } = props;\n const { palette } = theme!;\n\n return {\n root: [\n {\n display: 'flex',\n flexDirection: 'column',\n width: width ? width : '100%',\n },\n className,\n ],\n items: {\n height: '32px',\n marginTop: '5px',\n position: 'relative',\n },\n chart: {\n width: '100%',\n height: '8px',\n marginBottom: '11px',\n },\n barWrapper: {\n stroke: theme.palette.white,\n strokeWidth: 2,\n },\n chartTitle: {\n ...theme.fonts.small,\n display: 'flex',\n justifyContent: 'space-between',\n marginBottom: '3px',\n },\n chartDataText: {\n fontWeight: FontWeights.bold,\n },\n chartDataTextDenominator: {\n fontWeight: FontWeights.semibold,\n },\n triangle: {\n width: '0',\n height: '0',\n borderLeft: '4px solid transparent',\n borderRight: '4px solid transparent',\n borderTop: '8px solid',\n borderTopColor: palette.blue,\n marginBottom: '4px',\n position: 'absolute',\n top: '12px',\n },\n };\n};\n"]}
@@ -0,0 +1,130 @@
1
+ import { IChartProps, IChartDataPoint } from './index';
2
+ import { IStyle, ITheme } from '@fluentui/react/lib/Styling';
3
+ import { ICalloutProps } from '@fluentui/react/lib/Callout';
4
+ import { IRenderFunction, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';
5
+ export interface IHorizontalBarChartProps {
6
+ /**
7
+ * An array of chart data points for the Horizontal bar chart
8
+ */
9
+ data?: IChartProps[];
10
+ /**
11
+ * Width of bar chart
12
+ */
13
+ width?: number;
14
+ /**
15
+ * Height of bar chart
16
+ * @default 15
17
+ */
18
+ barHeight?: number;
19
+ /**
20
+ * Additional CSS class(es) to apply to the StackedBarChart.
21
+ */
22
+ className?: string;
23
+ /**
24
+ * Theme (provided through customization.)
25
+ */
26
+ theme?: ITheme;
27
+ /**
28
+ * This property tells whether to show ratio on top of stacked bar chart or not.
29
+ */
30
+ hideRatio?: boolean[];
31
+ /**
32
+ * Do not show tooltips in chart
33
+ *
34
+ * @default false
35
+ */
36
+ hideTooltip?: boolean;
37
+ /**
38
+ * This property tells how to show data text on top right of bar chart.
39
+ * If barChartCustomData props added, then this props will be overrided.
40
+ * @default 'default'
41
+ */
42
+ chartDataMode?: ChartDataMode;
43
+ /**
44
+ * Call to provide customized styling that will layer on top of the variant rules.
45
+ */
46
+ styles?: IStyleFunctionOrObject<IHorizontalBarChartStyleProps, IHorizontalBarChartStyles>;
47
+ /**
48
+ * Define a custom callout renderer for a horizontal bar
49
+ */
50
+ onRenderCalloutPerHorizontalBar?: IRenderFunction<IChartDataPoint>;
51
+ /**
52
+ * props for the callout in the chart
53
+ */
54
+ calloutProps?: Partial<ICalloutProps>;
55
+ /**
56
+ * Custom text to the chart (right side of the chart)
57
+ * IChartProps will be available as props to the method prop.
58
+ * If this method not given, default values (IHorizontalDataPoint {x,y})
59
+ * will be used to display the data/text based on given chartModeData prop.
60
+ */
61
+ barChartCustomData?: IRenderFunction<IChartProps>;
62
+ /**
63
+ * The prop used to define the culture to localized the numbers
64
+ */
65
+ culture?: string;
66
+ }
67
+ export interface IHorizontalBarChartStyleProps {
68
+ /**
69
+ * Theme (provided through customization.)
70
+ */
71
+ theme: ITheme;
72
+ /**
73
+ * Additional CSS class(es) to apply to the StackedBarChart.
74
+ */
75
+ className?: string;
76
+ /**
77
+ * Width of the chart.
78
+ */
79
+ width: number | undefined;
80
+ /**
81
+ * line color for callout
82
+ */
83
+ color?: string;
84
+ /**
85
+ * Height of bar chart
86
+ * @default 15
87
+ */
88
+ barHeight?: number;
89
+ }
90
+ export interface IHorizontalBarChartStyles {
91
+ /**
92
+ * Styling for the root container
93
+ */
94
+ root: IStyle;
95
+ /**
96
+ * Styling for each item in the container
97
+ */
98
+ items: IStyle;
99
+ /**
100
+ * Style for the chart.
101
+ */
102
+ chart: IStyle;
103
+ /**
104
+ * Style for the chart Title.
105
+ */
106
+ chartTitle: IStyle;
107
+ /**
108
+ * Style for the bars.
109
+ */
110
+ barWrapper: IStyle;
111
+ /**
112
+ * Style for the chart data text.
113
+ */
114
+ chartDataText: IStyle;
115
+ /**
116
+ * Style for the chart data text denominator.
117
+ */
118
+ chartDataTextDenominator: IStyle;
119
+ /**
120
+ * Style for the benchmark triangle
121
+ */
122
+ triangle: IStyle;
123
+ }
124
+ /**
125
+ * Chart data mode for chart data text
126
+ * default: show the datapoint.x value
127
+ * fraction: show the fraction of datapoint.x/datapoint.y
128
+ * percentage: show the percentage of (datapoint.x/datapoint.y)%
129
+ */
130
+ export declare type ChartDataMode = 'default' | 'fraction' | 'percentage';
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=HorizontalBarChart.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HorizontalBarChart.types.js","sourceRoot":"../src/","sources":["components/HorizontalBarChart/HorizontalBarChart.types.ts"],"names":[],"mappings":"","sourcesContent":["import { IChartProps, IChartDataPoint } from './index';\nimport { IStyle, ITheme } from '@fluentui/react/lib/Styling';\nimport { ICalloutProps } from '@fluentui/react/lib/Callout';\nimport { IRenderFunction, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\n\nexport interface IHorizontalBarChartProps {\n /**\n * An array of chart data points for the Horizontal bar chart\n */\n data?: IChartProps[];\n\n /**\n * Width of bar chart\n */\n width?: number;\n\n /**\n * Height of bar chart\n * @default 15\n */\n barHeight?: number;\n\n /**\n * Additional CSS class(es) to apply to the StackedBarChart.\n */\n className?: string;\n\n /**\n * Theme (provided through customization.)\n */\n theme?: ITheme;\n\n /**\n * This property tells whether to show ratio on top of stacked bar chart or not.\n */\n hideRatio?: boolean[];\n\n /**\n * Do not show tooltips in chart\n *\n * @default false\n */\n hideTooltip?: boolean;\n\n /**\n * This property tells how to show data text on top right of bar chart.\n * If barChartCustomData props added, then this props will be overrided.\n * @default 'default'\n */\n chartDataMode?: ChartDataMode;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject<IHorizontalBarChartStyleProps, IHorizontalBarChartStyles>;\n\n /**\n * Define a custom callout renderer for a horizontal bar\n */\n onRenderCalloutPerHorizontalBar?: IRenderFunction<IChartDataPoint>;\n\n /**\n * props for the callout in the chart\n */\n calloutProps?: Partial<ICalloutProps>;\n\n /**\n * Custom text to the chart (right side of the chart)\n * IChartProps will be available as props to the method prop.\n * If this method not given, default values (IHorizontalDataPoint {x,y})\n * will be used to display the data/text based on given chartModeData prop.\n */\n barChartCustomData?: IRenderFunction<IChartProps>;\n\n /**\n * The prop used to define the culture to localized the numbers\n */\n culture?: string;\n}\n\nexport interface IHorizontalBarChartStyleProps {\n /**\n * Theme (provided through customization.)\n */\n theme: ITheme;\n\n /**\n * Additional CSS class(es) to apply to the StackedBarChart.\n */\n className?: string;\n\n /**\n * Width of the chart.\n */\n width: number | undefined;\n\n /**\n * line color for callout\n */\n color?: string;\n\n /**\n * Height of bar chart\n * @default 15\n */\n barHeight?: number;\n}\n\nexport interface IHorizontalBarChartStyles {\n /**\n * Styling for the root container\n */\n root: IStyle;\n\n /**\n * Styling for each item in the container\n */\n items: IStyle;\n /**\n * Style for the chart.\n */\n chart: IStyle;\n\n /**\n * Style for the chart Title.\n */\n chartTitle: IStyle;\n\n /**\n * Style for the bars.\n */\n barWrapper: IStyle;\n\n /**\n * Style for the chart data text.\n */\n chartDataText: IStyle;\n\n /**\n * Style for the chart data text denominator.\n */\n chartDataTextDenominator: IStyle;\n\n /**\n * Style for the benchmark triangle\n */\n triangle: IStyle;\n}\n\n/**\n * Chart data mode for chart data text\n * default: show the datapoint.x value\n * fraction: show the fraction of datapoint.x/datapoint.y\n * percentage: show the percentage of (datapoint.x/datapoint.y)%\n */\nexport type ChartDataMode = 'default' | 'fraction' | 'percentage';\n"]}
@@ -0,0 +1,3 @@
1
+ export * from './HorizontalBarChart';
2
+ export * from './HorizontalBarChart.types';
3
+ export * from '../../types/index';
@@ -0,0 +1,4 @@
1
+ export * from './HorizontalBarChart';
2
+ export * from './HorizontalBarChart.types';
3
+ export * from '../../types/index';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/HorizontalBarChart/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC","sourcesContent":["export * from './HorizontalBarChart';\nexport * from './HorizontalBarChart.types';\nexport * from '../../types/index';\n"]}
@@ -0,0 +1,42 @@
1
+ import * as React from 'react';
2
+ import { ILegendsProps } from './Legends.types';
3
+ export interface ILegendState {
4
+ selectedLegend: string;
5
+ selecetedLegendInHoverCard: string;
6
+ selectedState: boolean;
7
+ hoverState: boolean;
8
+ isHoverCardVisible: boolean;
9
+ selectedLegends: string[];
10
+ }
11
+ export declare class LegendsBase extends React.Component<ILegendsProps, ILegendState> {
12
+ private _hoverCardRef;
13
+ private _classNames;
14
+ constructor(props: ILegendsProps);
15
+ componentDidUpdate(prevProps: ILegendsProps): void;
16
+ render(): JSX.Element;
17
+ private _generateData;
18
+ private _onRenderData;
19
+ private _onReduceData;
20
+ private _onGrowData;
21
+ /**
22
+ * This function will get called when there is an ability to
23
+ * select multiple legends
24
+ * @param legend ILegend
25
+ */
26
+ private _canSelectMultipleLegends;
27
+ /**
28
+ * This function will get called when there is
29
+ * ability to select only single legend
30
+ * @param legend ILegend
31
+ */
32
+ private _canSelectOnlySingleLegend;
33
+ private _onClick;
34
+ private _onRenderCompactCard;
35
+ private _renderOverflowItems;
36
+ private _hoverCardVisible;
37
+ private _onHoverOverLegend;
38
+ private _onLeave;
39
+ private _renderButton;
40
+ private _getShape;
41
+ private _getColor;
42
+ }
@@ -0,0 +1,311 @@
1
+ import { __assign, __extends, __spreadArray } from "tslib";
2
+ import * as React from 'react';
3
+ import { HoverCard, HoverCardType } from '@fluentui/react/lib/HoverCard';
4
+ import { classNamesFunction, find, getNativeProps, buttonProperties } from '@fluentui/react/lib/Utilities';
5
+ import { ResizeGroup } from '@fluentui/react/lib/ResizeGroup';
6
+ import { OverflowSet } from '@fluentui/react/lib/OverflowSet';
7
+ import { FocusZone, FocusZoneDirection } from '@fluentui/react-focus';
8
+ import { Shape } from './shape';
9
+ import { silceOrAppendToArray } from '../../utilities/utilities';
10
+ var getClassNames = classNamesFunction();
11
+ var LegendsBase = /** @class */ (function (_super) {
12
+ __extends(LegendsBase, _super);
13
+ function LegendsBase(props) {
14
+ var _this = _super.call(this, props) || this;
15
+ _this._onRenderData = function (data) {
16
+ var _a = _this.props, overflowProps = _a.overflowProps, _b = _a.allowFocusOnLegends, allowFocusOnLegends = _b === void 0 ? true : _b;
17
+ var rootStyles = {
18
+ root: {
19
+ justifyContent: _this.props.centerLegends ? 'center' : 'unset',
20
+ flexWrap: 'wrap',
21
+ },
22
+ };
23
+ return (React.createElement(FocusZone, __assign({}, (allowFocusOnLegends && { role: 'listbox', 'aria-label': 'Legends' })),
24
+ React.createElement(OverflowSet, __assign({ items: data.primary, overflowItems: data.overflow, onRenderItem: _this._renderButton, onRenderOverflowButton: _this._renderOverflowItems }, overflowProps, { styles: __assign(__assign({}, rootStyles), overflowProps === null || overflowProps === void 0 ? void 0 : overflowProps.styles) }))));
25
+ };
26
+ _this._onReduceData = function (currentdata) {
27
+ if (currentdata.primary.length === 0) {
28
+ return;
29
+ }
30
+ var overflow = __spreadArray(__spreadArray([], currentdata.primary.slice(-1)), currentdata.overflow);
31
+ var primary = currentdata.primary.slice(0, -1);
32
+ return { primary: primary, overflow: overflow };
33
+ };
34
+ _this._onGrowData = function (currentdata) {
35
+ if (currentdata.overflow.length === 0) {
36
+ return;
37
+ }
38
+ var overflow = currentdata.overflow.slice(1);
39
+ var primary = __spreadArray(__spreadArray([], currentdata.primary), currentdata.overflow.slice(0, 1));
40
+ return { primary: primary, overflow: overflow };
41
+ };
42
+ /**
43
+ * This function will get called when there is an ability to
44
+ * select multiple legends
45
+ * @param legend ILegend
46
+ */
47
+ _this._canSelectMultipleLegends = function (legend) {
48
+ var selectedLegends = silceOrAppendToArray(_this.state.selectedLegends, legend.title);
49
+ _this.setState({
50
+ //check if user selected all legends then empty it get the default behaviour
51
+ selectedLegends: selectedLegends.length === _this.props.legends.length ? [] : selectedLegends,
52
+ // make selectedState to false if none or all the legends selected
53
+ selectedState: selectedLegends.length === 0 || selectedLegends.length === _this.props.legends.length ? false : true,
54
+ selecetedLegendInHoverCard: _this.state.isHoverCardVisible ? legend.title : 'none',
55
+ selectedLegend: 'none',
56
+ hoverState: false,
57
+ });
58
+ };
59
+ /**
60
+ * This function will get called when there is
61
+ * ability to select only single legend
62
+ * @param legend ILegend
63
+ */
64
+ _this._canSelectOnlySingleLegend = function (legend) {
65
+ if (_this.state.selectedState === true && _this.state.selectedLegend === legend.title) {
66
+ _this.setState({
67
+ selectedLegend: 'none',
68
+ selectedState: false,
69
+ selecetedLegendInHoverCard: _this.state.isHoverCardVisible ? legend.title : 'none',
70
+ });
71
+ }
72
+ else {
73
+ _this.setState({
74
+ hoverState: true,
75
+ selectedState: true,
76
+ selectedLegend: legend.title,
77
+ selecetedLegendInHoverCard: _this.state.isHoverCardVisible ? legend.title : 'none',
78
+ });
79
+ }
80
+ };
81
+ _this._onClick = function (legend) {
82
+ if (legend.action) {
83
+ var _a = _this.props.canSelectMultipleLegends, canSelectMultipleLegends = _a === void 0 ? false : _a;
84
+ if (canSelectMultipleLegends) {
85
+ _this._canSelectMultipleLegends(legend);
86
+ }
87
+ else {
88
+ _this._canSelectOnlySingleLegend(legend);
89
+ }
90
+ legend.action();
91
+ }
92
+ };
93
+ _this._onRenderCompactCard = function (expandingCard) {
94
+ var _a = _this.props, _b = _a.allowFocusOnLegends, allowFocusOnLegends = _b === void 0 ? true : _b, className = _a.className, styles = _a.styles, theme = _a.theme;
95
+ var overflowHoverCardLegends = [];
96
+ var classNames = getClassNames(styles, {
97
+ theme: theme,
98
+ className: className,
99
+ });
100
+ expandingCard.renderData.forEach(function (legend, index) {
101
+ var hoverCardElement = _this._renderButton(legend, index, true);
102
+ overflowHoverCardLegends.push(hoverCardElement);
103
+ });
104
+ var hoverCardData = (React.createElement(FocusZone, __assign({}, (allowFocusOnLegends && { role: 'listbox' }), { direction: FocusZoneDirection.vertical }, _this.props.focusZonePropsInHoverCard, { className: classNames.hoverCardRoot }), overflowHoverCardLegends));
105
+ return hoverCardData;
106
+ };
107
+ _this._renderOverflowItems = function (legends) {
108
+ var _a = _this.props.allowFocusOnLegends, allowFocusOnLegends = _a === void 0 ? true : _a;
109
+ var items = [];
110
+ legends.forEach(function (legend, i) {
111
+ items.push({ key: i.toString(), name: legend.title, onClick: legend.action });
112
+ });
113
+ var renderOverflowData = { renderData: legends };
114
+ var _b = _this.props, theme = _b.theme, className = _b.className, styles = _b.styles, overflowText = _b.overflowText;
115
+ var classNames = getClassNames(styles, {
116
+ theme: theme,
117
+ className: className,
118
+ });
119
+ var plainCardProps = {
120
+ onRenderPlainCard: _this._onRenderCompactCard,
121
+ renderData: renderOverflowData,
122
+ };
123
+ var overflowString = overflowText ? overflowText : 'more';
124
+ // execute similar to "_onClick" and "_onLeave" logic at HoverCard onCardHide event
125
+ var onHoverCardHideHandler = function () {
126
+ var _a = _this.props.canSelectMultipleLegends, canSelectMultipleLegends = _a === void 0 ? false : _a;
127
+ var selectedOverflowItem = find(legends, function (legend) {
128
+ return legend.title === _this.state.selecetedLegendInHoverCard || legend.title === _this.state.selectedLegend;
129
+ });
130
+ _this.setState({
131
+ isHoverCardVisible: false,
132
+ selecetedLegendInHoverCard: 'none',
133
+ selectedLegends: [],
134
+ }, function () {
135
+ if (selectedOverflowItem) {
136
+ _this.setState({ selectedLegend: 'none', selectedState: false }, function () {
137
+ if (selectedOverflowItem.action && !canSelectMultipleLegends) {
138
+ selectedOverflowItem.action();
139
+ }
140
+ if (_this.props.onLegendHoverCardLeave && canSelectMultipleLegends) {
141
+ _this.props.onLegendHoverCardLeave();
142
+ }
143
+ _this.setState({ hoverState: false }, function () {
144
+ if (selectedOverflowItem.onMouseOutAction) {
145
+ selectedOverflowItem.onMouseOutAction(true);
146
+ }
147
+ });
148
+ });
149
+ }
150
+ });
151
+ };
152
+ return (React.createElement(HoverCard, { type: HoverCardType.plain, plainCardProps: plainCardProps, instantOpenOnClick: true,
153
+ // eslint-disable-next-line react/jsx-no-bind
154
+ onCardHide: onHoverCardHideHandler, setInitialFocus: true, trapFocus: true, onCardVisible: _this._hoverCardVisible, styles: classNames.subComponentStyles.hoverCardStyles, cardDismissDelay: 300, target: _this._hoverCardRef },
155
+ React.createElement("div", __assign({ className: classNames.overflowIndicationTextStyle, ref: function (rootElem) { return (_this._hoverCardRef = rootElem); } }, (allowFocusOnLegends && {
156
+ role: 'link',
157
+ 'aria-expanded': _this.state.isHoverCardVisible,
158
+ 'aria-label': items.length + " " + overflowString,
159
+ }), { "data-is-focusable": allowFocusOnLegends }),
160
+ items.length,
161
+ " ",
162
+ overflowString)));
163
+ };
164
+ _this._hoverCardVisible = function () {
165
+ _this.setState({ isHoverCardVisible: true });
166
+ };
167
+ _this._onHoverOverLegend = function (legend) {
168
+ if (!_this.state.selectedState) {
169
+ if (legend.hoverAction) {
170
+ _this.setState({ hoverState: true, selectedLegend: legend.title });
171
+ legend.hoverAction();
172
+ }
173
+ }
174
+ };
175
+ _this._onLeave = function (legend) {
176
+ if (!_this.state.selectedState) {
177
+ if (legend.onMouseOutAction) {
178
+ _this.setState({ hoverState: false, selectedLegend: 'none' });
179
+ legend.onMouseOutAction();
180
+ }
181
+ }
182
+ };
183
+ _this._renderButton = function (data, index, overflow) {
184
+ var _a = _this.props.allowFocusOnLegends, allowFocusOnLegends = _a === void 0 ? true : _a;
185
+ var legend = {
186
+ title: data.title,
187
+ color: data.color,
188
+ shape: data.shape,
189
+ action: data.action,
190
+ hoverAction: data.hoverAction,
191
+ onMouseOutAction: data.onMouseOutAction,
192
+ stripePattern: data.stripePattern,
193
+ isLineLegendInBarChart: data.isLineLegendInBarChart,
194
+ opacity: data.opacity,
195
+ };
196
+ var color = _this._getColor(legend.title, legend.color);
197
+ var _b = _this.props, theme = _b.theme, className = _b.className, styles = _b.styles;
198
+ var classNames = getClassNames(styles, {
199
+ theme: theme,
200
+ className: className,
201
+ colorOnSelectedState: color,
202
+ borderColor: legend.color,
203
+ overflow: overflow,
204
+ stripePattern: legend.stripePattern,
205
+ isLineLegendInBarChart: legend.isLineLegendInBarChart,
206
+ opacity: legend.opacity,
207
+ });
208
+ var onClickHandler = function () {
209
+ _this._onClick(legend);
210
+ };
211
+ var onHoverHandler = function () {
212
+ _this._onHoverOverLegend(legend);
213
+ };
214
+ var onMouseOut = function () {
215
+ _this._onLeave(legend);
216
+ };
217
+ var shape = _this._getShape(classNames, legend, color);
218
+ return (React.createElement("button", __assign({}, (allowFocusOnLegends && {
219
+ 'aria-selected': _this.state.selectedLegend === legend.title,
220
+ role: 'option',
221
+ 'aria-label': legend.title + " selected",
222
+ 'aria-setsize': data['aria-setsize'],
223
+ 'aria-posinset': data['aria-posinset'],
224
+ }), (data.nativeButtonProps && __assign({}, data.nativeButtonProps)), { key: index, className: classNames.legend, onClick: onClickHandler, onMouseOver: onHoverHandler, onMouseOut: onMouseOut, onFocus: onHoverHandler, onBlur: onMouseOut, "data-is-focusable": allowFocusOnLegends }),
225
+ shape,
226
+ React.createElement("div", { className: classNames.text }, legend.title)));
227
+ };
228
+ _this.state = {
229
+ selectedLegend: 'none',
230
+ selectedState: false,
231
+ hoverState: false,
232
+ isHoverCardVisible: false,
233
+ selecetedLegendInHoverCard: 'none',
234
+ selectedLegends: [],
235
+ };
236
+ return _this;
237
+ }
238
+ LegendsBase.prototype.componentDidUpdate = function (prevProps) {
239
+ if (prevProps.selectedLegend !== this.props.selectedLegend) {
240
+ this.setState({ selectedLegend: this.props.selectedLegend });
241
+ }
242
+ };
243
+ LegendsBase.prototype.render = function () {
244
+ var _a = this.props, theme = _a.theme, className = _a.className, styles = _a.styles;
245
+ this._classNames = getClassNames(styles, {
246
+ theme: theme,
247
+ className: className,
248
+ });
249
+ var dataToRender = this._generateData();
250
+ return (React.createElement("div", { className: this._classNames.root }, this.props.enabledWrapLines ? (this._onRenderData(dataToRender)) : (React.createElement(ResizeGroup, { data: dataToRender, onReduceData: this._onReduceData, onRenderData: this._onRenderData, onGrowData: this._onGrowData }))));
251
+ };
252
+ LegendsBase.prototype._generateData = function () {
253
+ var _this = this;
254
+ var _a = this.props.allowFocusOnLegends, allowFocusOnLegends = _a === void 0 ? true : _a;
255
+ var dataItems = this.props.legends.map(function (legend, index) {
256
+ return __assign(__assign({}, (allowFocusOnLegends && {
257
+ nativeButtonProps: getNativeProps(legend, buttonProperties, [
258
+ 'title',
259
+ ]),
260
+ 'aria-setsize': _this.props.legends.length,
261
+ 'aria-posinset': index + 1,
262
+ })), { title: legend.title, action: legend.action, hoverAction: legend.hoverAction, onMouseOutAction: legend.onMouseOutAction, color: legend.color, shape: legend.shape, stripePattern: legend.stripePattern, isLineLegendInBarChart: legend.isLineLegendInBarChart, opacity: legend.opacity, key: index });
263
+ });
264
+ var result = {
265
+ primary: dataItems,
266
+ overflow: [],
267
+ };
268
+ return result;
269
+ };
270
+ LegendsBase.prototype._getShape = function (classNames, legend, color) {
271
+ var svgParentProps = {
272
+ className: classNames.shape,
273
+ };
274
+ var svgChildProps = {
275
+ fill: color,
276
+ strokeWidth: 2,
277
+ stroke: legend.color,
278
+ };
279
+ return (React.createElement(Shape, { svgProps: svgParentProps, pathProps: svgChildProps, shape: legend.shape, classNameForNonSvg: classNames.rect }));
280
+ };
281
+ LegendsBase.prototype._getColor = function (title, color) {
282
+ var _a = this.props, theme = _a.theme, _b = _a.canSelectMultipleLegends, canSelectMultipleLegends = _b === void 0 ? false : _b;
283
+ var palette = theme.palette;
284
+ var legendColor = color;
285
+ // below if statement will get executed for the hovered legend.
286
+ // (which is also the slected legend see fucntion:-_onHoverOverLegend)
287
+ if (this.state.hoverState && this.state.selectedLegend === title) {
288
+ legendColor = color;
289
+ } // below esle if statement will get executed for the unselected-legend which is hovered
290
+ else if (this.state.hoverState && this.state.selectedLegend !== 'none' && this.state.selectedLegend !== title) {
291
+ legendColor = palette.white;
292
+ } // below else if statement will get executed if the legends are in the selected state
293
+ // this is will only get executed when we have ability to select multiple legends
294
+ else if (!!canSelectMultipleLegends && this.state.selectedState && this.state.selectedLegends.indexOf(title) > -1) {
295
+ legendColor = color;
296
+ } // below else if statement will get executed when no legend is selected and hovered
297
+ //(for example:- initial render of legends)
298
+ else if ((!this.state.selectedState && this.state.selectedLegend === 'none') ||
299
+ this.state.selectedLegend === title ||
300
+ this.state.selectedLegends.length <= 0) {
301
+ legendColor = color;
302
+ }
303
+ else {
304
+ legendColor = palette.white;
305
+ }
306
+ return legendColor;
307
+ };
308
+ return LegendsBase;
309
+ }(React.Component));
310
+ export { LegendsBase };
311
+ //# sourceMappingURL=Legends.base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Legends.base.js","sourceRoot":"../src/","sources":["components/Legends/Legends.base.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,SAAS,EAAE,aAAa,EAAuB,MAAM,+BAA+B,CAAC;AAC9F,OAAO,EAAE,kBAAkB,EAAE,IAAI,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAC3G,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAE9D,OAAO,EAAE,WAAW,EAAyB,MAAM,iCAAiC,CAAC;AACrF,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAStE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,IAAM,aAAa,GAAG,kBAAkB,EAAqC,CAAC;AAyB9E;IAAiC,+BAA4C;IAI3E,qBAAmB,KAAoB;QAAvC,YACE,kBAAM,KAAK,CAAC,SASb;QA6DO,mBAAa,GAAG,UAAC,IAAiD;YAClE,IAAA,KAAgD,KAAI,CAAC,KAAK,EAAxD,aAAa,mBAAA,EAAE,2BAA0B,EAA1B,mBAAmB,mBAAG,IAAI,KAAe,CAAC;YACjE,IAAM,UAAU,GAAG;gBACjB,IAAI,EAAE;oBACJ,cAAc,EAAE,KAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO;oBAC7D,QAAQ,EAAE,MAAM;iBACjB;aACF,CAAC;YACF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AU,IAAI,IAAI,CAAC,KAAK,CAAC,cAAc,KAAK,MAAM,IAAI,IAAI,CAAC,KAAK,CAAC,cAAc,KAAK,KAAK,EAAE;YAC7G,WAAW,GAAG,OAAO,CAAC,KAAK,CAAC;SAC7B,CAAC,qFAAqF;QACvF,kFAAkF;aAC7E,IAAI,CAAC,CAAC,wBAAwB,IAAI,IAAI,CAAC,KAAK,CAAC,aAAa,IAAI,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE;YACjH,WAAW,GAAG,KAAK,CAAC;SACrB,CAAC,mFAAmF;QACrF,2CAA2C;aACtC,IACH,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,aAAa,IAAI,IAAI,CAAC,KAAK,CAAC,cAAc,KAAK,MAAM,CAAC;YACnE,IAAI,CAAC,KAAK,CAAC,cAAc,KAAK,KAAK;YACnC,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,MAAM,IAAI,CAAC,EACtC;YACA,WAAW,GAAG,KAAK,CAAC;SACrB;aAAM;YACL,WAAW,GAAG,OAAO,CAAC,KAAK,CAAC;SAC7B;QACD,OAAO,WAAW,CAAC;IACrB,CAAC;IACH,kBAAC;AAAD,CAAC,AAxZD,CAAiC,KAAK,CAAC,SAAS,GAwZ/C","sourcesContent":["import * as React from 'react';\n\nimport { IContextualMenuItem } from '@fluentui/react/lib/ContextualMenu';\nimport { HoverCard, HoverCardType, IExpandingCardProps } from '@fluentui/react/lib/HoverCard';\nimport { classNamesFunction, find, getNativeProps, buttonProperties } from '@fluentui/react/lib/Utilities';\nimport { ResizeGroup } from '@fluentui/react/lib/ResizeGroup';\nimport { IProcessedStyleSet } from '@fluentui/react/lib/Styling';\nimport { OverflowSet, IOverflowSetItemProps } from '@fluentui/react/lib/OverflowSet';\nimport { FocusZone, FocusZoneDirection } from '@fluentui/react-focus';\nimport {\n ILegend,\n ILegendsProps,\n LegendShape,\n ILegendsStyles,\n ILegendStyleProps,\n ILegendOverflowData,\n} from './Legends.types';\nimport { Shape } from './shape';\n\nimport { silceOrAppendToArray } from '../../utilities/utilities';\n\nconst getClassNames = classNamesFunction<ILegendStyleProps, ILegendsStyles>();\n\n// This is an internal interface used for rendering the legends with unique key\ninterface ILegendItem extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n name?: string;\n title: string;\n action: VoidFunction;\n hoverAction: VoidFunction;\n onMouseOutAction: VoidFunction;\n color: string;\n shape?: LegendShape;\n key: number;\n opacity?: number;\n stripePattern?: boolean;\n isLineLegendInBarChart?: boolean;\n}\n\nexport interface ILegendState {\n selectedLegend: string;\n selecetedLegendInHoverCard: string;\n selectedState: boolean;\n hoverState: boolean;\n isHoverCardVisible: boolean;\n selectedLegends: string[];\n}\nexport class LegendsBase extends React.Component<ILegendsProps, ILegendState> {\n private _hoverCardRef: HTMLDivElement;\n private _classNames: IProcessedStyleSet<ILegendsStyles>;\n\n public constructor(props: ILegendsProps) {\n super(props);\n this.state = {\n selectedLegend: 'none',\n selectedState: false,\n hoverState: false,\n isHoverCardVisible: false,\n selecetedLegendInHoverCard: 'none',\n selectedLegends: [],\n };\n }\n\n public componentDidUpdate(prevProps: ILegendsProps) {\n if (prevProps.selectedLegend !== this.props.selectedLegend) {\n this.setState({ selectedLegend: this.props.selectedLegend! });\n }\n }\n\n public render(): JSX.Element {\n const { theme, className, styles } = this.props;\n this._classNames = getClassNames(styles!, {\n theme: theme!,\n className,\n });\n const dataToRender = this._generateData();\n return (\n <div className={this._classNames.root}>\n {this.props.enabledWrapLines ? (\n this._onRenderData(dataToRender)\n ) : (\n <ResizeGroup\n data={dataToRender}\n onReduceData={this._onReduceData}\n onRenderData={this._onRenderData}\n onGrowData={this._onGrowData}\n />\n )}\n </div>\n );\n }\n\n private _generateData(): ILegendOverflowData {\n const { allowFocusOnLegends = true } = this.props;\n const dataItems: ILegendItem[] = this.props.legends.map((legend: ILegend, index: number) => {\n return {\n ...(allowFocusOnLegends && {\n nativeButtonProps: getNativeProps<React.HTMLAttributes<HTMLButtonElement>>(legend, buttonProperties, [\n 'title',\n ]),\n 'aria-setsize': this.props.legends.length,\n 'aria-posinset': index + 1,\n }),\n title: legend.title,\n action: legend.action!,\n hoverAction: legend.hoverAction!,\n onMouseOutAction: legend.onMouseOutAction!,\n color: legend.color,\n shape: legend.shape,\n stripePattern: legend.stripePattern,\n isLineLegendInBarChart: legend.isLineLegendInBarChart,\n opacity: legend.opacity,\n key: index,\n };\n });\n const result: ILegendOverflowData = {\n primary: dataItems,\n overflow: [],\n };\n return result;\n }\n\n private _onRenderData = (data: IOverflowSetItemProps | ILegendOverflowData): JSX.Element => {\n const { overflowProps, allowFocusOnLegends = true } = this.props;\n const rootStyles = {\n root: {\n justifyContent: this.props.centerLegends ? 'center' : 'unset',\n flexWrap: 'wrap',\n },\n };\n return (\n <FocusZone {...(allowFocusOnLegends && { role: 'listbox', 'aria-label': 'Legends' })}>\n <OverflowSet\n items={data.primary}\n overflowItems={data.overflow}\n onRenderItem={this._renderButton}\n onRenderOverflowButton={this._renderOverflowItems}\n {...overflowProps}\n styles={{ ...rootStyles, ...overflowProps?.styles }}\n />\n </FocusZone>\n );\n };\n\n private _onReduceData = (currentdata: IOverflowSetItemProps): {} | void => {\n if (currentdata.primary.length === 0) {\n return;\n }\n const overflow = [...currentdata.primary.slice(-1), ...currentdata.overflow];\n const primary = currentdata.primary.slice(0, -1);\n return { primary, overflow };\n };\n\n private _onGrowData = (currentdata: IOverflowSetItemProps): {} | void => {\n if (currentdata.overflow.length === 0) {\n return;\n }\n const overflow = currentdata.overflow.slice(1);\n const primary = [...currentdata.primary, ...currentdata.overflow.slice(0, 1)];\n return { primary, overflow };\n };\n\n /**\n * This function will get called when there is an ability to\n * select multiple legends\n * @param legend ILegend\n */\n private _canSelectMultipleLegends = (legend: ILegend): void => {\n const selectedLegends = silceOrAppendToArray(this.state.selectedLegends, legend.title);\n this.setState({\n //check if user selected all legends then empty it get the default behaviour\n selectedLegends: selectedLegends.length === this.props.legends.length ? [] : selectedLegends,\n // make selectedState to false if none or all the legends selected\n selectedState:\n selectedLegends.length === 0 || selectedLegends.length === this.props.legends.length ? false : true,\n selecetedLegendInHoverCard: this.state.isHoverCardVisible ? legend.title : 'none',\n selectedLegend: 'none',\n hoverState: false,\n });\n };\n\n /**\n * This function will get called when there is\n * ability to select only single legend\n * @param legend ILegend\n */\n\n private _canSelectOnlySingleLegend = (legend: ILegend): void => {\n if (this.state.selectedState === true && this.state.selectedLegend === legend.title) {\n this.setState({\n selectedLegend: 'none',\n selectedState: false,\n selecetedLegendInHoverCard: this.state.isHoverCardVisible ? legend.title : 'none',\n });\n } else {\n this.setState({\n hoverState: true,\n selectedState: true,\n selectedLegend: legend.title,\n selecetedLegendInHoverCard: this.state.isHoverCardVisible ? legend.title : 'none',\n });\n }\n };\n\n private _onClick = (legend: ILegend): void => {\n if (legend.action) {\n const { canSelectMultipleLegends = false } = this.props;\n if (canSelectMultipleLegends) {\n this._canSelectMultipleLegends(legend);\n } else {\n this._canSelectOnlySingleLegend(legend);\n }\n legend.action();\n }\n };\n\n private _onRenderCompactCard = (expandingCard: IExpandingCardProps): JSX.Element => {\n const { allowFocusOnLegends = true, className, styles, theme } = this.props;\n const overflowHoverCardLegends: JSX.Element[] = [];\n const classNames = getClassNames(styles!, {\n theme: theme!,\n className,\n });\n expandingCard.renderData.forEach((legend: IOverflowSetItemProps, index: number) => {\n const hoverCardElement = this._renderButton(legend, index, true);\n overflowHoverCardLegends.push(hoverCardElement);\n });\n const hoverCardData = (\n <FocusZone\n {...(allowFocusOnLegends && { role: 'listbox' })}\n direction={FocusZoneDirection.vertical}\n {...this.props.focusZonePropsInHoverCard}\n className={classNames.hoverCardRoot}\n >\n {overflowHoverCardLegends}\n </FocusZone>\n );\n return hoverCardData;\n };\n\n private _renderOverflowItems = (legends: ILegend[]) => {\n const { allowFocusOnLegends = true } = this.props;\n const items: IContextualMenuItem[] = [];\n legends.forEach((legend: ILegend, i: number) => {\n items.push({ key: i.toString(), name: legend.title, onClick: legend.action });\n });\n const renderOverflowData: IExpandingCardProps = { renderData: legends };\n const { theme, className, styles, overflowText } = this.props;\n const classNames = getClassNames(styles!, {\n theme: theme!,\n className,\n });\n const plainCardProps = {\n onRenderPlainCard: this._onRenderCompactCard,\n renderData: renderOverflowData,\n };\n\n const overflowString = overflowText ? overflowText : 'more';\n // execute similar to \"_onClick\" and \"_onLeave\" logic at HoverCard onCardHide event\n const onHoverCardHideHandler = () => {\n const { canSelectMultipleLegends = false } = this.props;\n const selectedOverflowItem = find(\n legends,\n (legend: ILegend) =>\n legend.title === this.state.selecetedLegendInHoverCard || legend.title === this.state.selectedLegend,\n );\n this.setState(\n {\n isHoverCardVisible: false,\n selecetedLegendInHoverCard: 'none',\n selectedLegends: [],\n },\n () => {\n if (selectedOverflowItem) {\n this.setState({ selectedLegend: 'none', selectedState: false }, () => {\n if (selectedOverflowItem.action && !canSelectMultipleLegends) {\n selectedOverflowItem.action();\n }\n if (this.props.onLegendHoverCardLeave && canSelectMultipleLegends) {\n this.props.onLegendHoverCardLeave();\n }\n this.setState({ hoverState: false }, () => {\n if (selectedOverflowItem.onMouseOutAction) {\n selectedOverflowItem.onMouseOutAction(true);\n }\n });\n });\n }\n },\n );\n };\n return (\n <HoverCard\n type={HoverCardType.plain}\n plainCardProps={plainCardProps}\n instantOpenOnClick={true}\n // eslint-disable-next-line react/jsx-no-bind\n onCardHide={onHoverCardHideHandler}\n setInitialFocus={true}\n trapFocus={true}\n onCardVisible={this._hoverCardVisible}\n styles={classNames.subComponentStyles.hoverCardStyles}\n cardDismissDelay={300}\n target={this._hoverCardRef}\n >\n <div\n className={classNames.overflowIndicationTextStyle}\n ref={(rootElem: HTMLDivElement) => (this._hoverCardRef = rootElem)}\n {...(allowFocusOnLegends && {\n role: 'link',\n 'aria-expanded': this.state.isHoverCardVisible,\n 'aria-label': `${items.length} ${overflowString}`,\n })}\n data-is-focusable={allowFocusOnLegends}\n >\n {items.length} {overflowString}\n </div>\n </HoverCard>\n );\n };\n\n private _hoverCardVisible = () => {\n this.setState({ isHoverCardVisible: true });\n };\n\n private _onHoverOverLegend = (legend: ILegend) => {\n if (!this.state.selectedState) {\n if (legend.hoverAction) {\n this.setState({ hoverState: true, selectedLegend: legend.title });\n legend.hoverAction();\n }\n }\n };\n\n private _onLeave = (legend: ILegend) => {\n if (!this.state.selectedState) {\n if (legend.onMouseOutAction) {\n this.setState({ hoverState: false, selectedLegend: 'none' });\n legend.onMouseOutAction();\n }\n }\n };\n\n private _renderButton = (data: IOverflowSetItemProps, index?: number, overflow?: boolean) => {\n const { allowFocusOnLegends = true } = this.props;\n const legend: ILegend = {\n title: data.title,\n color: data.color,\n shape: data.shape,\n action: data.action,\n hoverAction: data.hoverAction,\n onMouseOutAction: data.onMouseOutAction,\n stripePattern: data.stripePattern,\n isLineLegendInBarChart: data.isLineLegendInBarChart,\n opacity: data.opacity,\n };\n const color = this._getColor(legend.title, legend.color);\n const { theme, className, styles } = this.props;\n const classNames = getClassNames(styles!, {\n theme: theme!,\n className,\n colorOnSelectedState: color,\n borderColor: legend.color,\n overflow: overflow,\n stripePattern: legend.stripePattern,\n isLineLegendInBarChart: legend.isLineLegendInBarChart,\n opacity: legend.opacity,\n });\n const onClickHandler = () => {\n this._onClick(legend);\n };\n const onHoverHandler = () => {\n this._onHoverOverLegend(legend);\n };\n const onMouseOut = () => {\n this._onLeave(legend);\n };\n const shape = this._getShape(classNames, legend, color);\n return (\n <button\n {...(allowFocusOnLegends && {\n 'aria-selected': this.state.selectedLegend === legend.title,\n role: 'option',\n 'aria-label': `${legend.title} selected`,\n 'aria-setsize': data['aria-setsize'],\n 'aria-posinset': data['aria-posinset'],\n })}\n {...(data.nativeButtonProps && { ...data.nativeButtonProps })}\n key={index}\n className={classNames.legend}\n onClick={onClickHandler}\n onMouseOver={onHoverHandler}\n onMouseOut={onMouseOut}\n onFocus={onHoverHandler}\n onBlur={onMouseOut}\n data-is-focusable={allowFocusOnLegends}\n /* eslint-enable react/jsx-no-bind */\n >\n {shape}\n <div className={classNames.text}>{legend.title}</div>\n </button>\n );\n };\n\n private _getShape(\n classNames: IProcessedStyleSet<ILegendsStyles>,\n legend: ILegend,\n color: string,\n ): React.ReactNode | string {\n const svgParentProps: React.SVGAttributes<SVGElement> = {\n className: classNames.shape,\n };\n const svgChildProps: React.SVGAttributes<SVGElement> = {\n fill: color,\n strokeWidth: 2,\n stroke: legend.color,\n };\n return (\n <Shape\n svgProps={svgParentProps}\n pathProps={svgChildProps}\n shape={legend.shape as LegendShape}\n classNameForNonSvg={classNames.rect}\n />\n );\n }\n\n private _getColor(title: string, color: string): string {\n const { theme, canSelectMultipleLegends = false } = this.props;\n const { palette } = theme!;\n let legendColor = color;\n // below if statement will get executed for the hovered legend.\n // (which is also the slected legend see fucntion:-_onHoverOverLegend)\n if (this.state.hoverState && this.state.selectedLegend === title) {\n legendColor = color;\n } // below esle if statement will get executed for the unselected-legend which is hovered\n else if (this.state.hoverState && this.state.selectedLegend !== 'none' && this.state.selectedLegend !== title) {\n legendColor = palette.white;\n } // below else if statement will get executed if the legends are in the selected state\n // this is will only get executed when we have ability to select multiple legends\n else if (!!canSelectMultipleLegends && this.state.selectedState && this.state.selectedLegends.indexOf(title) > -1) {\n legendColor = color;\n } // below else if statement will get executed when no legend is selected and hovered\n //(for example:- initial render of legends)\n else if (\n (!this.state.selectedState && this.state.selectedLegend === 'none') ||\n this.state.selectedLegend === title ||\n this.state.selectedLegends.length <= 0\n ) {\n legendColor = color;\n } else {\n legendColor = palette.white;\n }\n return legendColor;\n }\n}\n"]}
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { ILegendsProps } from './Legends.types';
3
+ export declare const Legends: React.FunctionComponent<ILegendsProps>;
@@ -0,0 +1,5 @@
1
+ import { styled } from '@fluentui/react/lib/Utilities';
2
+ import { LegendsBase } from './Legends.base';
3
+ import { getStyles } from './Legends.styles';
4
+ export var Legends = styled(LegendsBase, getStyles);
5
+ //# sourceMappingURL=Legends.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Legends.js","sourceRoot":"../src/","sources":["components/Legends/Legends.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAEvD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,MAAM,CAAC,IAAM,OAAO,GAA2C,MAAM,CACnE,WAAW,EACX,SAAS,CACV,CAAC","sourcesContent":["import * as React from 'react';\nimport { styled } from '@fluentui/react/lib/Utilities';\nimport { ILegendsProps, ILegendStyleProps, ILegendsStyles } from './Legends.types';\nimport { LegendsBase } from './Legends.base';\nimport { getStyles } from './Legends.styles';\n\nexport const Legends: React.FunctionComponent<ILegendsProps> = styled<ILegendsProps, ILegendStyleProps, ILegendsStyles>(\n LegendsBase,\n getStyles,\n);\n"]}