@elliemae/ds-dataviz 3.80.0-next.67 → 3.80.0-next.71

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 (398) hide show
  1. package/dist/cjs/constants/index.js +73 -0
  2. package/dist/cjs/constants/index.js.map +7 -0
  3. package/dist/cjs/graphs/Chart/Chart.js +6 -1
  4. package/dist/cjs/graphs/Chart/Chart.js.map +2 -2
  5. package/dist/cjs/graphs/Chart/ChartContext.js.map +2 -2
  6. package/dist/cjs/graphs/Chart/SingleStackedBar/SingleStackedBar.js +36 -24
  7. package/dist/cjs/graphs/Chart/SingleStackedBar/SingleStackedBar.js.map +3 -3
  8. package/dist/cjs/graphs/Chart/SingleStackedBar/styles.js +12 -5
  9. package/dist/cjs/graphs/Chart/SingleStackedBar/styles.js.map +2 -2
  10. package/dist/cjs/graphs/Chart/config/chartInteractionStore.js +98 -0
  11. package/dist/cjs/graphs/Chart/config/chartInteractionStore.js.map +7 -0
  12. package/dist/cjs/graphs/Chart/config/useChart.js +56 -40
  13. package/dist/cjs/graphs/Chart/config/useChart.js.map +2 -2
  14. package/dist/cjs/graphs/Chart/config/useChartDescription.js +62 -0
  15. package/dist/cjs/graphs/Chart/config/useChartDescription.js.map +7 -0
  16. package/dist/cjs/graphs/Chart/config/useEntranceAnimation.js +141 -0
  17. package/dist/cjs/graphs/Chart/config/useEntranceAnimation.js.map +7 -0
  18. package/dist/cjs/graphs/Chart/config/useGetters.js +10 -0
  19. package/dist/cjs/graphs/Chart/config/useGetters.js.map +2 -2
  20. package/dist/cjs/graphs/Chart/config/useInternalMargins.js +25 -5
  21. package/dist/cjs/graphs/Chart/config/useInternalMargins.js.map +2 -2
  22. package/dist/cjs/graphs/Chart/config/useKeyboardNavigation.js +35 -51
  23. package/dist/cjs/graphs/Chart/config/useKeyboardNavigation.js.map +2 -2
  24. package/dist/cjs/graphs/Chart/config/useScales.js +200 -67
  25. package/dist/cjs/graphs/Chart/config/useScales.js.map +2 -2
  26. package/dist/cjs/graphs/Chart/config/useValidateProps.js +53 -4
  27. package/dist/cjs/graphs/Chart/config/useValidateProps.js.map +2 -2
  28. package/dist/cjs/graphs/Chart/config/useValueAxisTransition.js +128 -0
  29. package/dist/cjs/graphs/Chart/config/useValueAxisTransition.js.map +7 -0
  30. package/dist/cjs/graphs/Chart/config/useWheelScroll.js +111 -0
  31. package/dist/cjs/graphs/Chart/config/useWheelScroll.js.map +7 -0
  32. package/dist/cjs/graphs/Chart/helpers/alignedTicks.js +56 -0
  33. package/dist/cjs/graphs/Chart/helpers/alignedTicks.js.map +7 -0
  34. package/dist/cjs/graphs/Chart/helpers/barPath.js +53 -0
  35. package/dist/cjs/graphs/Chart/helpers/barPath.js.map +7 -0
  36. package/dist/cjs/graphs/Chart/{react-desc-prop-types.js → helpers/dataInView.js} +26 -27
  37. package/dist/cjs/graphs/Chart/helpers/dataInView.js.map +7 -0
  38. package/dist/cjs/graphs/Chart/helpers/index.js +34 -0
  39. package/dist/cjs/graphs/Chart/helpers/index.js.map +2 -2
  40. package/dist/cjs/graphs/Chart/{SingleStackedBar/exported-related/theming.js → helpers/logAxis.js} +13 -9
  41. package/dist/cjs/graphs/Chart/helpers/logAxis.js.map +7 -0
  42. package/dist/cjs/graphs/Chart/helpers/tickRotation.js +54 -0
  43. package/dist/cjs/graphs/Chart/helpers/tickRotation.js.map +7 -0
  44. package/dist/cjs/graphs/Chart/helpers/timeTicks.js +56 -0
  45. package/dist/cjs/graphs/Chart/helpers/timeTicks.js.map +7 -0
  46. package/dist/cjs/graphs/Chart/helpers/trend.js +45 -0
  47. package/dist/cjs/graphs/Chart/helpers/trend.js.map +7 -0
  48. package/dist/cjs/graphs/Chart/{SingleStackedBar/exported-related/index.js → helpers/useSerieDimming.js} +20 -6
  49. package/dist/cjs/graphs/Chart/helpers/useSerieDimming.js.map +7 -0
  50. package/dist/cjs/graphs/Chart/helpers/useUniqueData.js +15 -18
  51. package/dist/cjs/graphs/Chart/helpers/useUniqueData.js.map +2 -2
  52. package/dist/cjs/graphs/Chart/helpers/useVirtualizedSeries.js +12 -5
  53. package/dist/cjs/graphs/Chart/helpers/useVirtualizedSeries.js.map +2 -2
  54. package/dist/cjs/graphs/Chart/{DataTestIds.js → helpers/zeroLine.js} +12 -9
  55. package/dist/cjs/graphs/Chart/helpers/zeroLine.js.map +7 -0
  56. package/dist/cjs/graphs/Chart/parts/A11yRegion.js +8 -2
  57. package/dist/cjs/graphs/Chart/parts/A11yRegion.js.map +2 -2
  58. package/dist/cjs/graphs/Chart/parts/Axis/Axis.js +40 -4
  59. package/dist/cjs/graphs/Chart/parts/Axis/Axis.js.map +2 -2
  60. package/dist/cjs/graphs/Chart/parts/Axis/AxisBottom.js +18 -4
  61. package/dist/cjs/graphs/Chart/parts/Axis/AxisBottom.js.map +2 -2
  62. package/dist/cjs/graphs/Chart/parts/Axis/AxisLeft.js +14 -6
  63. package/dist/cjs/graphs/Chart/parts/Axis/AxisLeft.js.map +2 -2
  64. package/dist/cjs/graphs/Chart/parts/Axis/AxisRight.js +14 -4
  65. package/dist/cjs/graphs/Chart/parts/Axis/AxisRight.js.map +2 -2
  66. package/dist/cjs/graphs/Chart/parts/Axis/GridLine.js +15 -1
  67. package/dist/cjs/graphs/Chart/parts/Axis/GridLine.js.map +2 -2
  68. package/dist/cjs/graphs/Chart/parts/Axis/Tick.js +10 -4
  69. package/dist/cjs/graphs/Chart/parts/Axis/Tick.js.map +2 -2
  70. package/dist/cjs/graphs/Chart/parts/Axis/useTickTransition.js +170 -0
  71. package/dist/cjs/graphs/Chart/parts/Axis/useTickTransition.js.map +7 -0
  72. package/dist/cjs/graphs/Chart/parts/ChartContainer.js +41 -19
  73. package/dist/cjs/graphs/Chart/parts/ChartContainer.js.map +2 -2
  74. package/dist/cjs/graphs/Chart/parts/FocusableRegion.js +6 -3
  75. package/dist/cjs/graphs/Chart/parts/FocusableRegion.js.map +2 -2
  76. package/dist/cjs/graphs/Chart/parts/HoverBand.js +86 -0
  77. package/dist/cjs/graphs/Chart/parts/HoverBand.js.map +7 -0
  78. package/dist/cjs/graphs/Chart/parts/Labels/Label.js +12 -1
  79. package/dist/cjs/graphs/Chart/parts/Labels/Label.js.map +2 -2
  80. package/dist/cjs/graphs/Chart/parts/Labels/index.js +12 -4
  81. package/dist/cjs/graphs/Chart/parts/Labels/index.js.map +2 -2
  82. package/dist/cjs/graphs/Chart/parts/Legend/BottomLegend.js +6 -3
  83. package/dist/cjs/graphs/Chart/parts/Legend/BottomLegend.js.map +2 -2
  84. package/dist/cjs/graphs/Chart/parts/Legend/LeftLegend.js +2 -6
  85. package/dist/cjs/graphs/Chart/parts/Legend/LeftLegend.js.map +2 -2
  86. package/dist/cjs/graphs/Chart/parts/Legend/LegendItem.js +91 -9
  87. package/dist/cjs/graphs/Chart/parts/Legend/LegendItem.js.map +2 -2
  88. package/dist/cjs/graphs/Chart/parts/Legend/RightLegend.js +3 -4
  89. package/dist/cjs/graphs/Chart/parts/Legend/RightLegend.js.map +2 -2
  90. package/dist/cjs/graphs/Chart/parts/Legend/TopLegend.js +8 -6
  91. package/dist/cjs/graphs/Chart/parts/Legend/TopLegend.js.map +2 -2
  92. package/dist/cjs/graphs/Chart/parts/Scrapper/Scrapper.js +29 -3
  93. package/dist/cjs/graphs/Chart/parts/Scrapper/Scrapper.js.map +2 -2
  94. package/dist/cjs/graphs/Chart/parts/Scrapper/ScrapperLine.js +82 -55
  95. package/dist/cjs/graphs/Chart/parts/Scrapper/ScrapperLine.js.map +3 -3
  96. package/dist/cjs/graphs/Chart/parts/Scrapper/VerticalScrapper.js +14 -6
  97. package/dist/cjs/graphs/Chart/parts/Scrapper/VerticalScrapper.js.map +2 -2
  98. package/dist/cjs/graphs/Chart/parts/Scrapper/VerticalScrapperLine.js +67 -43
  99. package/dist/cjs/graphs/Chart/parts/Scrapper/VerticalScrapperLine.js.map +2 -2
  100. package/dist/cjs/graphs/Chart/{SingleStackedBar/exported-related/data-test-ids.js → parts/ScreenReaderText.js} +17 -7
  101. package/dist/cjs/graphs/Chart/parts/ScreenReaderText.js.map +7 -0
  102. package/dist/cjs/graphs/Chart/parts/Scroller/BlurMask.js +14 -9
  103. package/dist/cjs/graphs/Chart/parts/Scroller/BlurMask.js.map +2 -2
  104. package/dist/cjs/graphs/Chart/parts/Scroller/Controllers.js +152 -49
  105. package/dist/cjs/graphs/Chart/parts/Scroller/Controllers.js.map +2 -2
  106. package/dist/cjs/graphs/Chart/parts/Scroller/ScrollBarX.js +22 -6
  107. package/dist/cjs/graphs/Chart/parts/Scroller/ScrollBarX.js.map +2 -2
  108. package/dist/cjs/graphs/Chart/parts/Scroller/ScrollBarY.js +13 -6
  109. package/dist/cjs/graphs/Chart/parts/Scroller/ScrollBarY.js.map +2 -2
  110. package/dist/cjs/graphs/Chart/parts/Scroller/ScrollableContainerX.js +42 -35
  111. package/dist/cjs/graphs/Chart/parts/Scroller/ScrollableContainerX.js.map +2 -2
  112. package/dist/cjs/graphs/Chart/parts/Scroller/ScrollableContainerY.js +9 -4
  113. package/dist/cjs/graphs/Chart/parts/Scroller/ScrollableContainerY.js.map +2 -2
  114. package/dist/cjs/graphs/Chart/parts/SeriesFactory.js +39 -30
  115. package/dist/cjs/graphs/Chart/parts/SeriesFactory.js.map +2 -2
  116. package/dist/cjs/graphs/Chart/parts/TrendHighlight.js +57 -19
  117. package/dist/cjs/graphs/Chart/parts/TrendHighlight.js.map +2 -2
  118. package/dist/cjs/graphs/Chart/parts/ZeroLine.js +66 -0
  119. package/dist/cjs/graphs/Chart/parts/ZeroLine.js.map +7 -0
  120. package/dist/cjs/graphs/Chart/scales/index.js +50 -20
  121. package/dist/cjs/graphs/Chart/scales/index.js.map +3 -3
  122. package/dist/cjs/graphs/Chart/series/Area.js +76 -9
  123. package/dist/cjs/graphs/Chart/series/Area.js.map +2 -2
  124. package/dist/cjs/graphs/Chart/series/Bars.js +3 -1
  125. package/dist/cjs/graphs/Chart/series/Bars.js.map +2 -2
  126. package/dist/cjs/graphs/Chart/series/HorizontalBars.js +4 -1
  127. package/dist/cjs/graphs/Chart/series/HorizontalBars.js.map +2 -2
  128. package/dist/cjs/graphs/Chart/series/HorizontalStackedBars.js +14 -7
  129. package/dist/cjs/graphs/Chart/series/HorizontalStackedBars.js.map +2 -2
  130. package/dist/cjs/graphs/Chart/series/Line.js +9 -7
  131. package/dist/cjs/graphs/Chart/series/Line.js.map +2 -2
  132. package/dist/cjs/graphs/Chart/series/Point.js +114 -128
  133. package/dist/cjs/graphs/Chart/series/Point.js.map +3 -3
  134. package/dist/cjs/graphs/Chart/series/Points.js +8 -2
  135. package/dist/cjs/graphs/Chart/series/Points.js.map +2 -2
  136. package/dist/cjs/graphs/Chart/series/Rect.js +133 -122
  137. package/dist/cjs/graphs/Chart/series/Rect.js.map +3 -3
  138. package/dist/cjs/graphs/Chart/series/StackedBar.js +14 -6
  139. package/dist/cjs/graphs/Chart/series/StackedBar.js.map +2 -2
  140. package/dist/cjs/graphs/Chart/styles.js +65 -34
  141. package/dist/cjs/graphs/Chart/styles.js.map +2 -2
  142. package/dist/cjs/graphs/constants.js +24 -9
  143. package/dist/cjs/graphs/constants.js.map +2 -2
  144. package/dist/cjs/index.js +17 -6
  145. package/dist/cjs/index.js.map +3 -3
  146. package/dist/cjs/react-desc-prop-types.js +150 -0
  147. package/dist/cjs/react-desc-prop-types.js.map +7 -0
  148. package/dist/cjs/typescript-testing/slot-props.js +69 -0
  149. package/dist/cjs/typescript-testing/slot-props.js.map +7 -0
  150. package/dist/cjs/typescript-testing/typescript-data-viz-valid.js +34 -2
  151. package/dist/cjs/typescript-testing/typescript-data-viz-valid.js.map +2 -2
  152. package/dist/cjs/typescript-testing/typescript-single-stacked-bar-valid.js +93 -0
  153. package/dist/cjs/typescript-testing/typescript-single-stacked-bar-valid.js.map +7 -0
  154. package/dist/esm/constants/index.js +43 -0
  155. package/dist/esm/constants/index.js.map +7 -0
  156. package/dist/esm/graphs/Chart/Chart.js +6 -1
  157. package/dist/esm/graphs/Chart/Chart.js.map +2 -2
  158. package/dist/esm/graphs/Chart/ChartContext.js.map +2 -2
  159. package/dist/esm/graphs/Chart/SingleStackedBar/SingleStackedBar.js +40 -23
  160. package/dist/esm/graphs/Chart/SingleStackedBar/SingleStackedBar.js.map +2 -2
  161. package/dist/esm/graphs/Chart/SingleStackedBar/styles.js +12 -5
  162. package/dist/esm/graphs/Chart/SingleStackedBar/styles.js.map +2 -2
  163. package/dist/esm/graphs/Chart/config/chartInteractionStore.js +68 -0
  164. package/dist/esm/graphs/Chart/config/chartInteractionStore.js.map +7 -0
  165. package/dist/esm/graphs/Chart/config/useChart.js +58 -42
  166. package/dist/esm/graphs/Chart/config/useChart.js.map +2 -2
  167. package/dist/esm/graphs/Chart/config/useChartDescription.js +32 -0
  168. package/dist/esm/graphs/Chart/config/useChartDescription.js.map +7 -0
  169. package/dist/esm/graphs/Chart/config/useEntranceAnimation.js +111 -0
  170. package/dist/esm/graphs/Chart/config/useEntranceAnimation.js.map +7 -0
  171. package/dist/esm/graphs/Chart/config/useGetters.js +10 -0
  172. package/dist/esm/graphs/Chart/config/useGetters.js.map +2 -2
  173. package/dist/esm/graphs/Chart/config/useInternalMargins.js +26 -6
  174. package/dist/esm/graphs/Chart/config/useInternalMargins.js.map +2 -2
  175. package/dist/esm/graphs/Chart/config/useKeyboardNavigation.js +35 -51
  176. package/dist/esm/graphs/Chart/config/useKeyboardNavigation.js.map +2 -2
  177. package/dist/esm/graphs/Chart/config/useScales.js +202 -69
  178. package/dist/esm/graphs/Chart/config/useScales.js.map +2 -2
  179. package/dist/esm/graphs/Chart/config/useValidateProps.js +53 -4
  180. package/dist/esm/graphs/Chart/config/useValidateProps.js.map +2 -2
  181. package/dist/esm/graphs/Chart/config/useValueAxisTransition.js +98 -0
  182. package/dist/esm/graphs/Chart/config/useValueAxisTransition.js.map +7 -0
  183. package/dist/esm/graphs/Chart/config/useWheelScroll.js +81 -0
  184. package/dist/esm/graphs/Chart/config/useWheelScroll.js.map +7 -0
  185. package/dist/esm/graphs/Chart/helpers/alignedTicks.js +26 -0
  186. package/dist/esm/graphs/Chart/helpers/alignedTicks.js.map +7 -0
  187. package/dist/esm/graphs/Chart/helpers/barPath.js +23 -0
  188. package/dist/esm/graphs/Chart/helpers/barPath.js.map +7 -0
  189. package/dist/esm/graphs/Chart/helpers/dataInView.js +28 -0
  190. package/dist/esm/graphs/Chart/helpers/dataInView.js.map +7 -0
  191. package/dist/esm/graphs/Chart/helpers/index.js +34 -0
  192. package/dist/esm/graphs/Chart/helpers/index.js.map +2 -2
  193. package/dist/esm/graphs/Chart/helpers/logAxis.js +14 -0
  194. package/dist/esm/graphs/Chart/helpers/logAxis.js.map +7 -0
  195. package/dist/esm/graphs/Chart/helpers/tickRotation.js +24 -0
  196. package/dist/esm/graphs/Chart/helpers/tickRotation.js.map +7 -0
  197. package/dist/esm/graphs/Chart/helpers/timeTicks.js +26 -0
  198. package/dist/esm/graphs/Chart/helpers/timeTicks.js.map +7 -0
  199. package/dist/esm/graphs/Chart/helpers/trend.js +15 -0
  200. package/dist/esm/graphs/Chart/helpers/trend.js.map +7 -0
  201. package/dist/esm/graphs/Chart/helpers/useSerieDimming.js +15 -0
  202. package/dist/esm/graphs/Chart/helpers/useSerieDimming.js.map +7 -0
  203. package/dist/esm/graphs/Chart/helpers/useUniqueData.js +15 -18
  204. package/dist/esm/graphs/Chart/helpers/useUniqueData.js.map +2 -2
  205. package/dist/esm/graphs/Chart/helpers/useVirtualizedSeries.js +12 -5
  206. package/dist/esm/graphs/Chart/helpers/useVirtualizedSeries.js.map +2 -2
  207. package/dist/esm/graphs/Chart/helpers/zeroLine.js +13 -0
  208. package/dist/esm/graphs/Chart/helpers/zeroLine.js.map +7 -0
  209. package/dist/esm/graphs/Chart/parts/A11yRegion.js +7 -1
  210. package/dist/esm/graphs/Chart/parts/A11yRegion.js.map +2 -2
  211. package/dist/esm/graphs/Chart/parts/Axis/Axis.js +40 -4
  212. package/dist/esm/graphs/Chart/parts/Axis/Axis.js.map +2 -2
  213. package/dist/esm/graphs/Chart/parts/Axis/AxisBottom.js +18 -4
  214. package/dist/esm/graphs/Chart/parts/Axis/AxisBottom.js.map +2 -2
  215. package/dist/esm/graphs/Chart/parts/Axis/AxisLeft.js +14 -6
  216. package/dist/esm/graphs/Chart/parts/Axis/AxisLeft.js.map +2 -2
  217. package/dist/esm/graphs/Chart/parts/Axis/AxisRight.js +14 -4
  218. package/dist/esm/graphs/Chart/parts/Axis/AxisRight.js.map +2 -2
  219. package/dist/esm/graphs/Chart/parts/Axis/GridLine.js +16 -2
  220. package/dist/esm/graphs/Chart/parts/Axis/GridLine.js.map +2 -2
  221. package/dist/esm/graphs/Chart/parts/Axis/Tick.js +11 -5
  222. package/dist/esm/graphs/Chart/parts/Axis/Tick.js.map +2 -2
  223. package/dist/esm/graphs/Chart/parts/Axis/useTickTransition.js +140 -0
  224. package/dist/esm/graphs/Chart/parts/Axis/useTickTransition.js.map +7 -0
  225. package/dist/esm/graphs/Chart/parts/ChartContainer.js +41 -19
  226. package/dist/esm/graphs/Chart/parts/ChartContainer.js.map +2 -2
  227. package/dist/esm/graphs/Chart/parts/FocusableRegion.js +7 -4
  228. package/dist/esm/graphs/Chart/parts/FocusableRegion.js.map +2 -2
  229. package/dist/esm/graphs/Chart/parts/HoverBand.js +56 -0
  230. package/dist/esm/graphs/Chart/parts/HoverBand.js.map +7 -0
  231. package/dist/esm/graphs/Chart/parts/Labels/Label.js +12 -1
  232. package/dist/esm/graphs/Chart/parts/Labels/Label.js.map +2 -2
  233. package/dist/esm/graphs/Chart/parts/Labels/index.js +12 -4
  234. package/dist/esm/graphs/Chart/parts/Labels/index.js.map +2 -2
  235. package/dist/esm/graphs/Chart/parts/Legend/BottomLegend.js +7 -4
  236. package/dist/esm/graphs/Chart/parts/Legend/BottomLegend.js.map +2 -2
  237. package/dist/esm/graphs/Chart/parts/Legend/LeftLegend.js +3 -7
  238. package/dist/esm/graphs/Chart/parts/Legend/LeftLegend.js.map +2 -2
  239. package/dist/esm/graphs/Chart/parts/Legend/LegendItem.js +91 -9
  240. package/dist/esm/graphs/Chart/parts/Legend/LegendItem.js.map +2 -2
  241. package/dist/esm/graphs/Chart/parts/Legend/RightLegend.js +4 -5
  242. package/dist/esm/graphs/Chart/parts/Legend/RightLegend.js.map +2 -2
  243. package/dist/esm/graphs/Chart/parts/Legend/TopLegend.js +9 -7
  244. package/dist/esm/graphs/Chart/parts/Legend/TopLegend.js.map +2 -2
  245. package/dist/esm/graphs/Chart/parts/Scrapper/Scrapper.js +29 -3
  246. package/dist/esm/graphs/Chart/parts/Scrapper/Scrapper.js.map +2 -2
  247. package/dist/esm/graphs/Chart/parts/Scrapper/ScrapperLine.js +83 -56
  248. package/dist/esm/graphs/Chart/parts/Scrapper/ScrapperLine.js.map +3 -3
  249. package/dist/esm/graphs/Chart/parts/Scrapper/VerticalScrapper.js +14 -6
  250. package/dist/esm/graphs/Chart/parts/Scrapper/VerticalScrapper.js.map +2 -2
  251. package/dist/esm/graphs/Chart/parts/Scrapper/VerticalScrapperLine.js +68 -44
  252. package/dist/esm/graphs/Chart/parts/Scrapper/VerticalScrapperLine.js.map +2 -2
  253. package/dist/esm/graphs/Chart/parts/ScreenReaderText.js +18 -0
  254. package/dist/esm/graphs/Chart/parts/ScreenReaderText.js.map +7 -0
  255. package/dist/esm/graphs/Chart/parts/Scroller/BlurMask.js +14 -9
  256. package/dist/esm/graphs/Chart/parts/Scroller/BlurMask.js.map +2 -2
  257. package/dist/esm/graphs/Chart/parts/Scroller/Controllers.js +154 -51
  258. package/dist/esm/graphs/Chart/parts/Scroller/Controllers.js.map +2 -2
  259. package/dist/esm/graphs/Chart/parts/Scroller/ScrollBarX.js +22 -6
  260. package/dist/esm/graphs/Chart/parts/Scroller/ScrollBarX.js.map +2 -2
  261. package/dist/esm/graphs/Chart/parts/Scroller/ScrollBarY.js +13 -6
  262. package/dist/esm/graphs/Chart/parts/Scroller/ScrollBarY.js.map +2 -2
  263. package/dist/esm/graphs/Chart/parts/Scroller/ScrollableContainerX.js +43 -36
  264. package/dist/esm/graphs/Chart/parts/Scroller/ScrollableContainerX.js.map +2 -2
  265. package/dist/esm/graphs/Chart/parts/Scroller/ScrollableContainerY.js +10 -5
  266. package/dist/esm/graphs/Chart/parts/Scroller/ScrollableContainerY.js.map +2 -2
  267. package/dist/esm/graphs/Chart/parts/SeriesFactory.js +40 -31
  268. package/dist/esm/graphs/Chart/parts/SeriesFactory.js.map +2 -2
  269. package/dist/esm/graphs/Chart/parts/TrendHighlight.js +58 -20
  270. package/dist/esm/graphs/Chart/parts/TrendHighlight.js.map +2 -2
  271. package/dist/esm/graphs/Chart/parts/ZeroLine.js +36 -0
  272. package/dist/esm/graphs/Chart/parts/ZeroLine.js.map +7 -0
  273. package/dist/esm/graphs/Chart/scales/index.js +51 -21
  274. package/dist/esm/graphs/Chart/scales/index.js.map +3 -3
  275. package/dist/esm/graphs/Chart/series/Area.js +77 -10
  276. package/dist/esm/graphs/Chart/series/Area.js.map +2 -2
  277. package/dist/esm/graphs/Chart/series/Bars.js +3 -1
  278. package/dist/esm/graphs/Chart/series/Bars.js.map +2 -2
  279. package/dist/esm/graphs/Chart/series/HorizontalBars.js +4 -1
  280. package/dist/esm/graphs/Chart/series/HorizontalBars.js.map +2 -2
  281. package/dist/esm/graphs/Chart/series/HorizontalStackedBars.js +15 -8
  282. package/dist/esm/graphs/Chart/series/HorizontalStackedBars.js.map +2 -2
  283. package/dist/esm/graphs/Chart/series/Line.js +9 -7
  284. package/dist/esm/graphs/Chart/series/Line.js.map +2 -2
  285. package/dist/esm/graphs/Chart/series/Point.js +120 -130
  286. package/dist/esm/graphs/Chart/series/Point.js.map +3 -3
  287. package/dist/esm/graphs/Chart/series/Points.js +8 -2
  288. package/dist/esm/graphs/Chart/series/Points.js.map +2 -2
  289. package/dist/esm/graphs/Chart/series/Rect.js +134 -123
  290. package/dist/esm/graphs/Chart/series/Rect.js.map +3 -3
  291. package/dist/esm/graphs/Chart/series/StackedBar.js +15 -7
  292. package/dist/esm/graphs/Chart/series/StackedBar.js.map +2 -2
  293. package/dist/esm/graphs/Chart/styles.js +66 -35
  294. package/dist/esm/graphs/Chart/styles.js.map +2 -2
  295. package/dist/esm/graphs/constants.js +25 -10
  296. package/dist/esm/graphs/constants.js.map +2 -2
  297. package/dist/esm/index.js +19 -7
  298. package/dist/esm/index.js.map +2 -2
  299. package/dist/esm/react-desc-prop-types.js +125 -0
  300. package/dist/esm/react-desc-prop-types.js.map +7 -0
  301. package/dist/esm/typescript-testing/slot-props.js +46 -0
  302. package/dist/esm/typescript-testing/slot-props.js.map +7 -0
  303. package/dist/esm/typescript-testing/typescript-data-viz-valid.js +35 -3
  304. package/dist/esm/typescript-testing/typescript-data-viz-valid.js.map +2 -2
  305. package/dist/esm/typescript-testing/typescript-single-stacked-bar-valid.js +70 -0
  306. package/dist/esm/typescript-testing/typescript-single-stacked-bar-valid.js.map +7 -0
  307. package/dist/types/constants/index.d.ts +42 -0
  308. package/dist/types/graphs/Chart/Chart.d.ts +4 -2
  309. package/dist/types/graphs/Chart/ChartContext.d.ts +9 -11
  310. package/dist/types/graphs/Chart/SingleStackedBar/SingleStackedBar.d.ts +1 -1
  311. package/dist/types/graphs/Chart/config/chartInteractionStore.d.ts +32 -0
  312. package/dist/types/graphs/Chart/config/useChart.d.ts +9 -11
  313. package/dist/types/graphs/Chart/config/useChartDescription.d.ts +5 -0
  314. package/dist/types/graphs/Chart/config/useEntranceAnimation.d.ts +16 -0
  315. package/dist/types/graphs/Chart/config/useGetters.d.ts +1 -1
  316. package/dist/types/graphs/Chart/config/useInternalMargins.d.ts +4 -1
  317. package/dist/types/graphs/Chart/config/useKeyboardNavigation.d.ts +1 -1
  318. package/dist/types/graphs/Chart/config/useScales.d.ts +8 -2
  319. package/dist/types/graphs/Chart/config/useValidateProps.d.ts +7 -1
  320. package/dist/types/graphs/Chart/config/useValueAxisTransition.d.ts +6 -0
  321. package/dist/types/graphs/Chart/config/useWheelScroll.d.ts +2 -0
  322. package/dist/types/graphs/Chart/helpers/alignedTicks.d.ts +1 -0
  323. package/dist/types/graphs/Chart/helpers/barPath.d.ts +11 -0
  324. package/dist/types/graphs/Chart/helpers/dataInView.d.ts +6 -0
  325. package/dist/types/graphs/Chart/helpers/index.d.ts +10 -1
  326. package/dist/types/graphs/Chart/helpers/logAxis.d.ts +8 -0
  327. package/dist/types/graphs/Chart/helpers/tickRotation.d.ts +2 -0
  328. package/dist/types/graphs/Chart/helpers/timeTicks.d.ts +2 -0
  329. package/dist/types/graphs/Chart/helpers/trend.d.ts +3 -0
  330. package/dist/types/graphs/Chart/helpers/useSerieDimming.d.ts +3 -0
  331. package/dist/types/graphs/Chart/helpers/useUniqueData.d.ts +1 -1
  332. package/dist/types/graphs/Chart/helpers/useVirtualizedSeries.d.ts +1 -1
  333. package/dist/types/graphs/Chart/helpers/zeroLine.d.ts +2 -0
  334. package/dist/types/graphs/Chart/parts/Axis/Axis.d.ts +4 -1
  335. package/dist/types/graphs/Chart/parts/Axis/Tick.d.ts +1 -0
  336. package/dist/types/graphs/Chart/parts/Axis/useTickTransition.d.ts +24 -0
  337. package/dist/types/graphs/Chart/parts/HoverBand.d.ts +2 -0
  338. package/dist/types/graphs/Chart/parts/Labels/Label.d.ts +3 -0
  339. package/dist/types/graphs/Chart/parts/Scrapper/ScrapperLine.d.ts +11 -1
  340. package/dist/types/graphs/Chart/parts/Scrapper/VerticalScrapperLine.d.ts +6 -7
  341. package/dist/types/graphs/Chart/parts/ScreenReaderText.d.ts +5 -0
  342. package/dist/types/graphs/Chart/parts/TrendHighlight.d.ts +3 -2
  343. package/dist/types/graphs/Chart/parts/ZeroLine.d.ts +2 -0
  344. package/dist/types/graphs/Chart/scales/index.d.ts +10 -3
  345. package/dist/types/graphs/Chart/series/Area.d.ts +1 -1
  346. package/dist/types/graphs/Chart/series/Bars.d.ts +1 -1
  347. package/dist/types/graphs/Chart/series/HorizontalBars.d.ts +1 -1
  348. package/dist/types/graphs/Chart/series/HorizontalStackedBars.d.ts +1 -1
  349. package/dist/types/graphs/Chart/series/Line.d.ts +1 -1
  350. package/dist/types/graphs/Chart/series/Point.d.ts +3 -2
  351. package/dist/types/graphs/Chart/series/Points.d.ts +1 -1
  352. package/dist/types/graphs/Chart/series/Rect.d.ts +3 -2
  353. package/dist/types/graphs/Chart/series/StackedBar.d.ts +1 -1
  354. package/dist/types/graphs/Chart/styles.d.ts +18 -5
  355. package/dist/types/graphs/constants.d.ts +13 -1
  356. package/dist/types/index.d.ts +6 -1
  357. package/dist/types/react-desc-prop-types.d.ts +228 -0
  358. package/package.json +8 -7
  359. package/dist/cjs/graphs/Chart/DataTestIds.js.map +0 -7
  360. package/dist/cjs/graphs/Chart/SingleStackedBar/exported-related/data-test-ids.js.map +0 -7
  361. package/dist/cjs/graphs/Chart/SingleStackedBar/exported-related/index.js.map +0 -7
  362. package/dist/cjs/graphs/Chart/SingleStackedBar/exported-related/theming.js.map +0 -7
  363. package/dist/cjs/graphs/Chart/SingleStackedBar/index.js +0 -31
  364. package/dist/cjs/graphs/Chart/SingleStackedBar/index.js.map +0 -7
  365. package/dist/cjs/graphs/Chart/SingleStackedBar/react-desc-prop-types.js +0 -51
  366. package/dist/cjs/graphs/Chart/SingleStackedBar/react-desc-prop-types.js.map +0 -7
  367. package/dist/cjs/graphs/Chart/index.js +0 -33
  368. package/dist/cjs/graphs/Chart/index.js.map +0 -7
  369. package/dist/cjs/graphs/Chart/react-desc-prop-types.js.map +0 -7
  370. package/dist/cjs/graphs/index.js +0 -31
  371. package/dist/cjs/graphs/index.js.map +0 -7
  372. package/dist/esm/graphs/Chart/DataTestIds.js +0 -10
  373. package/dist/esm/graphs/Chart/DataTestIds.js.map +0 -7
  374. package/dist/esm/graphs/Chart/SingleStackedBar/exported-related/data-test-ids.js +0 -8
  375. package/dist/esm/graphs/Chart/SingleStackedBar/exported-related/data-test-ids.js.map +0 -7
  376. package/dist/esm/graphs/Chart/SingleStackedBar/exported-related/index.js +0 -4
  377. package/dist/esm/graphs/Chart/SingleStackedBar/exported-related/index.js.map +0 -7
  378. package/dist/esm/graphs/Chart/SingleStackedBar/exported-related/theming.js +0 -10
  379. package/dist/esm/graphs/Chart/SingleStackedBar/exported-related/theming.js.map +0 -7
  380. package/dist/esm/graphs/Chart/SingleStackedBar/index.js +0 -4
  381. package/dist/esm/graphs/Chart/SingleStackedBar/index.js.map +0 -7
  382. package/dist/esm/graphs/Chart/SingleStackedBar/react-desc-prop-types.js +0 -21
  383. package/dist/esm/graphs/Chart/SingleStackedBar/react-desc-prop-types.js.map +0 -7
  384. package/dist/esm/graphs/Chart/index.js +0 -6
  385. package/dist/esm/graphs/Chart/index.js.map +0 -7
  386. package/dist/esm/graphs/Chart/react-desc-prop-types.js +0 -29
  387. package/dist/esm/graphs/Chart/react-desc-prop-types.js.map +0 -7
  388. package/dist/esm/graphs/index.js +0 -4
  389. package/dist/esm/graphs/index.js.map +0 -7
  390. package/dist/types/graphs/Chart/DataTestIds.d.ts +0 -5
  391. package/dist/types/graphs/Chart/SingleStackedBar/exported-related/data-test-ids.d.ts +0 -3
  392. package/dist/types/graphs/Chart/SingleStackedBar/exported-related/index.d.ts +0 -2
  393. package/dist/types/graphs/Chart/SingleStackedBar/exported-related/theming.d.ts +0 -4
  394. package/dist/types/graphs/Chart/SingleStackedBar/index.d.ts +0 -3
  395. package/dist/types/graphs/Chart/SingleStackedBar/react-desc-prop-types.d.ts +0 -44
  396. package/dist/types/graphs/Chart/index.d.ts +0 -4
  397. package/dist/types/graphs/Chart/react-desc-prop-types.d.ts +0 -510
  398. package/dist/types/graphs/index.d.ts +0 -2
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/graphs/constants.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { curveLinear, curveMonotoneX, timeDay, timeMonth, timeHour, timeMinute, timeWeek } from 'd3';\n\nexport const SCALE_TYPES = {\n LINEAR: 'linear',\n BAND: 'band',\n LOG: 'log',\n TIME: 'time',\n};\n\nexport const FOCUS_RING = {\n COLOR: '#335cad',\n STROKE_WIDTH: 2,\n OFFSET: 4,\n};\n\nexport const SERIE_TYPES = { LINE: 'line', BAR: 'bar', AREA: 'area', POINT: 'point' } as const;\n\nexport const SCRAPPER = {\n TYPE_HORIZONTAL: 'horizontal',\n TYPE_VERTICAL: 'vertical',\n};\n\nexport const LINE = {\n POINT_STYLE: {\n CIRCLE: 'CIRCLE',\n SQUARE: 'SQUARE',\n DIAMOND: 'DIAMOND',\n },\n DEFAULT_POINT_RADIUS: 4,\n DASH_STYLE: {\n SHORTDOT: 'SHORTDOT',\n SHORTDASHDOT: 'SHORTDASHDOT',\n DASH: 'DASH',\n SHORTDASH: 'SHORTDASH',\n },\n DASH_STYLE_VALUES: {\n SHORTDOT: [2, 2],\n SHORTDASHDOT: [6, 2, 2, 2],\n DASH: [8, 6],\n SHORTDASH: [6, 2],\n },\n CURVE_STYLE: {\n LINEAR: 'LINEAR',\n SPLINE: 'SPLINE',\n },\n};\n\nexport const curveStyleMap = {\n [LINE.CURVE_STYLE.LINEAR]: curveLinear,\n [LINE.CURVE_STYLE.SPLINE]: curveMonotoneX,\n};\n\nexport const TOOLBAR = {\n RESET: {\n HEIGHT: 21,\n WIDTH: 21,\n },\n};\n\nexport const TIME_OFFSET: Record<string, d3.CountableTimeInterval> = {\n HOUR: timeHour,\n MINUTE: timeMinute,\n WEEK: timeWeek,\n DAY: timeDay,\n MONTH: timeMonth,\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,aAAa,gBAAgB,SAAS,WAAW,UAAU,YAAY,gBAAgB;AAEzF,MAAM,cAAc;AAAA,EACzB,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR;AAEO,MAAM,aAAa;AAAA,EACxB,OAAO;AAAA,EACP,cAAc;AAAA,EACd,QAAQ;AACV;AAEO,MAAM,cAAc,EAAE,MAAM,QAAQ,KAAK,OAAO,MAAM,QAAQ,OAAO,QAAQ;AAE7E,MAAM,WAAW;AAAA,EACtB,iBAAiB;AAAA,EACjB,eAAe;AACjB;AAEO,MAAM,OAAO;AAAA,EAClB,aAAa;AAAA,IACX,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,SAAS;AAAA,EACX;AAAA,EACA,sBAAsB;AAAA,EACtB,YAAY;AAAA,IACV,UAAU;AAAA,IACV,cAAc;AAAA,IACd,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AAAA,EACA,mBAAmB;AAAA,IACjB,UAAU,CAAC,GAAG,CAAC;AAAA,IACf,cAAc,CAAC,GAAG,GAAG,GAAG,CAAC;AAAA,IACzB,MAAM,CAAC,GAAG,CAAC;AAAA,IACX,WAAW,CAAC,GAAG,CAAC;AAAA,EAClB;AAAA,EACA,aAAa;AAAA,IACX,QAAQ;AAAA,IACR,QAAQ;AAAA,EACV;AACF;AAEO,MAAM,gBAAgB;AAAA,EAC3B,CAAC,KAAK,YAAY,MAAM,GAAG;AAAA,EAC3B,CAAC,KAAK,YAAY,MAAM,GAAG;AAC7B;AAEO,MAAM,UAAU;AAAA,EACrB,OAAO;AAAA,IACL,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AACF;AAEO,MAAM,cAAwD;AAAA,EACnE,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,KAAK;AAAA,EACL,OAAO;AACT;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { curveLinear, curveMonotoneX, utcDay, utcHour, utcMinute, utcMonth, utcWeek, utcYear } from 'd3';\nimport type { CountableTimeInterval } from 'd3';\nimport type { DSChartT } from '../react-desc-prop-types.js';\n\nexport const SCALE_TYPES = {\n LINEAR: 'linear',\n BAND: 'band',\n LOG: 'log',\n TIME: 'time',\n};\n\nexport const FOCUS_RING = {\n COLOR: '#006AA9', // brand-700, the fallback when no theme is provided\n STROKE_WIDTH: 2,\n OFFSET: 4,\n // space between a mark and its focus ring (surface color shows through)\n GAP: 2,\n};\n\n// mark specs: thin bars with a rounded data end, a surface gap between stacked segments, a surface ring on markers\nexport const MARKS = {\n BAR_MAX_THICKNESS: 24,\n BAR_RADIUS: 4,\n STACK_GAP: 2,\n MARKER_RING: 2,\n AREA_TOP_OPACITY: 0.24,\n AREA_BOTTOM_OPACITY: 0.02,\n};\n\nexport const SERIE_TYPES = { LINE: 'line', BAR: 'bar', AREA: 'area', POINT: 'point' } as const;\n\nexport const SCRAPPER = {\n TYPE_HORIZONTAL: 'horizontal',\n TYPE_VERTICAL: 'vertical',\n};\n\nexport const LINE = {\n POINT_STYLE: {\n CIRCLE: 'CIRCLE',\n SQUARE: 'SQUARE',\n DIAMOND: 'DIAMOND',\n },\n DEFAULT_POINT_RADIUS: 4,\n DASH_STYLE: {\n SHORTDOT: 'SHORTDOT',\n SHORTDASHDOT: 'SHORTDASHDOT',\n DASH: 'DASH',\n SHORTDASH: 'SHORTDASH',\n },\n DASH_STYLE_VALUES: {\n SHORTDOT: [2, 2],\n SHORTDASHDOT: [6, 2, 2, 2],\n DASH: [8, 6],\n SHORTDASH: [6, 2],\n },\n CURVE_STYLE: {\n LINEAR: 'LINEAR',\n SPLINE: 'SPLINE',\n },\n};\n\nexport const curveStyleMap = {\n [LINE.CURVE_STYLE.LINEAR]: curveLinear,\n [LINE.CURVE_STYLE.SPLINE]: curveMonotoneX,\n};\n\nexport const TOOLBAR = {\n RESET: {\n HEIGHT: 21,\n WIDTH: 21,\n },\n};\n\n// the intervals of intervalType (a tick on each one) and of domainPaddingType (the unit of domainPadding), in UTC like\n// the ticks of a time axis (scaleUtc): in local time a day of padding was 23 or 25 hours on a daylight saving change\nexport const TIME_INTERVALS: Record<DSChartT.IntervalT, CountableTimeInterval> = {\n MINUTE: utcMinute,\n HOUR: utcHour,\n DAY: utcDay,\n WEEK: utcWeek,\n MONTH: utcMonth,\n YEAR: utcYear,\n};\n\n// where the tooltip of the scrapper opens when scrapper.tooltipPreference is not set\nexport const SCRAPPER_DEFAULT_TOOLTIP_PREFERENCE = 'top';\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,aAAa,gBAAgB,QAAQ,SAAS,WAAW,UAAU,SAAS,eAAe;AAI7F,MAAM,cAAc;AAAA,EACzB,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR;AAEO,MAAM,aAAa;AAAA,EACxB,OAAO;AAAA;AAAA,EACP,cAAc;AAAA,EACd,QAAQ;AAAA;AAAA,EAER,KAAK;AACP;AAGO,MAAM,QAAQ;AAAA,EACnB,mBAAmB;AAAA,EACnB,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,aAAa;AAAA,EACb,kBAAkB;AAAA,EAClB,qBAAqB;AACvB;AAEO,MAAM,cAAc,EAAE,MAAM,QAAQ,KAAK,OAAO,MAAM,QAAQ,OAAO,QAAQ;AAE7E,MAAM,WAAW;AAAA,EACtB,iBAAiB;AAAA,EACjB,eAAe;AACjB;AAEO,MAAM,OAAO;AAAA,EAClB,aAAa;AAAA,IACX,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,SAAS;AAAA,EACX;AAAA,EACA,sBAAsB;AAAA,EACtB,YAAY;AAAA,IACV,UAAU;AAAA,IACV,cAAc;AAAA,IACd,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AAAA,EACA,mBAAmB;AAAA,IACjB,UAAU,CAAC,GAAG,CAAC;AAAA,IACf,cAAc,CAAC,GAAG,GAAG,GAAG,CAAC;AAAA,IACzB,MAAM,CAAC,GAAG,CAAC;AAAA,IACX,WAAW,CAAC,GAAG,CAAC;AAAA,EAClB;AAAA,EACA,aAAa;AAAA,IACX,QAAQ;AAAA,IACR,QAAQ;AAAA,EACV;AACF;AAEO,MAAM,gBAAgB;AAAA,EAC3B,CAAC,KAAK,YAAY,MAAM,GAAG;AAAA,EAC3B,CAAC,KAAK,YAAY,MAAM,GAAG;AAC7B;AAEO,MAAM,UAAU;AAAA,EACrB,OAAO;AAAA,IACL,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AACF;AAIO,MAAM,iBAAoE;AAAA,EAC/E,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AAAA,EACN,OAAO;AAAA,EACP,MAAM;AACR;AAGO,MAAM,sCAAsC;",
6
6
  "names": []
7
7
  }
package/dist/esm/index.js CHANGED
@@ -1,16 +1,28 @@
1
1
  import * as React from "react";
2
+ import { Chart, ChartWithSchema } from "./graphs/Chart/Chart.js";
3
+ import { DSSingleStackedBar, DSSingleStackedBarWithSchema } from "./graphs/Chart/SingleStackedBar/SingleStackedBar.js";
4
+ import { COLOR_PALLET } from "./graphs/Chart/helpers/colorPallet.js";
5
+ import { SERIE_TYPES } from "./graphs/constants.js";
2
6
  import {
3
- Chart,
4
- DSSingleStackedBar,
5
- DSSingleStackedBarWithSchema,
6
- COLOR_PALLET,
7
- SERIE_TYPES
8
- } from "./graphs/index.js";
7
+ DSDatavizName,
8
+ DATAVIZ_SLOTS,
9
+ DATAVIZ_DATA_TESTID,
10
+ DSSingleStackedBarName,
11
+ SINGLE_STACKED_BAR_SLOTS,
12
+ SINGLE_STACKED_BAR_DATA_TESTID
13
+ } from "./constants/index.js";
9
14
  export {
10
15
  COLOR_PALLET,
11
16
  Chart,
17
+ ChartWithSchema,
18
+ DATAVIZ_DATA_TESTID,
19
+ DATAVIZ_SLOTS,
20
+ DSDatavizName,
12
21
  DSSingleStackedBar,
22
+ DSSingleStackedBarName,
13
23
  DSSingleStackedBarWithSchema,
14
- SERIE_TYPES
24
+ SERIE_TYPES,
25
+ SINGLE_STACKED_BAR_DATA_TESTID,
26
+ SINGLE_STACKED_BAR_SLOTS
15
27
  };
16
28
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/index.ts"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export {\n Chart,\n DSSingleStackedBar,\n DSSingleStackedBarWithSchema,\n COLOR_PALLET,\n SERIE_TYPES,\n type DSChartT,\n type DSSingleStackedBarT,\n} from './graphs/index.js';\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAGK;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { Chart, ChartWithSchema } from './graphs/Chart/Chart.js';\nexport { DSSingleStackedBar, DSSingleStackedBarWithSchema } from './graphs/Chart/SingleStackedBar/SingleStackedBar.js';\nexport { COLOR_PALLET } from './graphs/Chart/helpers/colorPallet.js';\nexport { SERIE_TYPES } from './graphs/constants.js';\nexport { type DSChartT, type DSSingleStackedBarT } from './react-desc-prop-types.js';\nexport {\n DSDatavizName,\n DATAVIZ_SLOTS,\n DATAVIZ_DATA_TESTID,\n DSSingleStackedBarName,\n SINGLE_STACKED_BAR_SLOTS,\n SINGLE_STACKED_BAR_DATA_TESTID,\n} from './constants/index.js';\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,OAAO,uBAAuB;AACvC,SAAS,oBAAoB,oCAAoC;AACjE,SAAS,oBAAoB;AAC7B,SAAS,mBAAmB;AAE5B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,125 @@
1
+ import * as React from "react";
2
+ import {
3
+ PropTypes,
4
+ getPropsPerSlotPropTypes,
5
+ globalAttributesPropTypes,
6
+ xstyledPropTypes
7
+ } from "@elliemae/ds-props-helpers";
8
+ import { DATAVIZ_SLOTS, DSDatavizName, DSSingleStackedBarName, SINGLE_STACKED_BAR_SLOTS } from "./constants/index.js";
9
+ const TIME_INTERVAL_NAMES = ["MINUTE", "HOUR", "DAY", "WEEK", "MONTH", "YEAR"];
10
+ const getAxisTickPropTypes = () => PropTypes.shape({
11
+ tickValues: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.instanceOf(Date)])),
12
+ tickFormat: PropTypes.oneOfType([
13
+ PropTypes.func.signature("((value: string | number | Date) => string)"),
14
+ PropTypes.string
15
+ ]),
16
+ tickCount: PropTypes.number,
17
+ tickRotation: PropTypes.number,
18
+ overwriteTicks: PropTypes.bool,
19
+ color: PropTypes.string
20
+ });
21
+ const getAxisPropTypes = () => PropTypes.shape({
22
+ type: PropTypes.oneOf(["log", "band", "time", "linear"]).isRequired,
23
+ showGrid: PropTypes.bool,
24
+ color: PropTypes.string,
25
+ label: PropTypes.string,
26
+ cols: PropTypes.arrayOf(PropTypes.string),
27
+ domainPadding: PropTypes.oneOfType([PropTypes.number, PropTypes.arrayOf(PropTypes.number)]),
28
+ intervalType: PropTypes.oneOf(TIME_INTERVAL_NAMES),
29
+ hideAxis: PropTypes.bool,
30
+ beginAtZero: PropTypes.bool,
31
+ advanced: PropTypes.shape({
32
+ pointSpacing: PropTypes.shape({ type: PropTypes.oneOf(["ratio"]).isRequired, value: PropTypes.number.isRequired }).isRequired
33
+ }),
34
+ tick: getAxisTickPropTypes(),
35
+ min: PropTypes.oneOfType([PropTypes.number, PropTypes.instanceOf(Date)]),
36
+ max: PropTypes.oneOfType([PropTypes.number, PropTypes.instanceOf(Date)]),
37
+ domainPaddingType: PropTypes.oneOf(TIME_INTERVAL_NAMES),
38
+ fitToView: PropTypes.bool
39
+ });
40
+ const DSChartPropTypes = {
41
+ ...getPropsPerSlotPropTypes(DSDatavizName, DATAVIZ_SLOTS),
42
+ series: PropTypes.arrayOf(
43
+ PropTypes.shape({
44
+ name: PropTypes.string.isRequired,
45
+ data: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.object])).isRequired,
46
+ type: PropTypes.oneOf(["line", "bar", "area", "point"]).isRequired,
47
+ scale: PropTypes.string,
48
+ color: PropTypes.string.isRequired,
49
+ dashStyle: PropTypes.string,
50
+ pointRadius: PropTypes.number,
51
+ pointStyle: PropTypes.string,
52
+ curveStyle: PropTypes.string,
53
+ higherIsBetter: PropTypes.bool
54
+ })
55
+ ).isRequired.description(
56
+ 'Series to plot. Each one has a name, its values, a type and a color (a Dimsum palette key such as "blue-200", or any CSS color). An empty list renders the axes with no data'
57
+ ),
58
+ xAxis: getAxisPropTypes().isRequired.description(
59
+ "Horizontal axis configuration. min and max widen the axis to hold them, and the data can widen it further"
60
+ ),
61
+ yAxis: getAxisPropTypes().isRequired.description(
62
+ "Vertical axis configuration. min and max widen the axis to hold them, and the data can widen it further"
63
+ ),
64
+ y2Axis: getAxisPropTypes().description(
65
+ 'Secondary vertical axis, drawn on the right. Series with scale "y2" are plotted against it, or against the main axis when it is not set. When both axes are linear, its ticks sit at the heights of the ticks of the main axis, on the grid lines, unless it sets min, max, domainPadding, tick.tickCount or tick.tickValues'
66
+ ),
67
+ groups: PropTypes.arrayOf(PropTypes.arrayOf(PropTypes.string)).description(
68
+ 'Series names to stack together, one array per stack, e.g. [["data1", "data2"]]'
69
+ ),
70
+ types: PropTypes.oneOf(["scatter"]).description('"scatter" renders the series that have no type as points'),
71
+ scrapper: PropTypes.shape({
72
+ type: PropTypes.oneOf(["horizontal", "vertical"]).isRequired,
73
+ color: PropTypes.string.isRequired,
74
+ tooltipPreference: PropTypes.string
75
+ }).description(
76
+ 'Guide line that follows the pointer, with its direction, color and tooltip placement (tooltipPreference, "top" by default)'
77
+ ),
78
+ withTrendHighlight: PropTypes.bool.description(
79
+ "Highlights the stretch of a line, or of the top of an area, that leads to its focused point (keyboard, pointer or scrapper): success color when it goes the good way, danger when it goes the bad way, neutral when flat. A rise is good unless the series sets higherIsBetter false. The points read the change to screen readers"
80
+ ),
81
+ withAnimation: PropTypes.bool.description(
82
+ "Animates the series when the chart mounts: they grow from the baseline of the value axis. Skipped when the user prefers reduced motion"
83
+ ),
84
+ animationDuration: PropTypes.number.description("Duration in milliseconds of the entrance animation of withAnimation").defaultValue(700),
85
+ TooltipRenderer: PropTypes.func.signature(
86
+ "((props: { data: { name: string; xValue: string | number | Date | null; yValue: string | number | Date | null; datum: object }[] }) => JSX.Element)"
87
+ ).description("Component rendered as the tooltip of the active data point, it receives the data of that point"),
88
+ height: PropTypes.number.description("Height of the chart in pixels").defaultValue(500),
89
+ width: PropTypes.number.description(
90
+ "Width of the chart in pixels. When omitted the chart takes the width of its container and follows its resizes"
91
+ ),
92
+ legend: PropTypes.shape({
93
+ position: PropTypes.oneOf(["right", "bottom", "left", "top"]).isRequired,
94
+ preventFilterAction: PropTypes.bool
95
+ }).description("Legend position, and whether clicking a legend item hides or shows its series"),
96
+ xScroll: PropTypes.bool.description(
97
+ "Makes the horizontal axis scrollable and zoomable, together with xAxis.advanced.pointSpacing"
98
+ ),
99
+ yScroll: PropTypes.bool.description("Makes the vertical axis scrollable, together with yAxis.advanced.pointSpacing")
100
+ };
101
+ const DSChartPropTypesSchema = DSChartPropTypes;
102
+ const defaultSingleStackedBarProps = {
103
+ gutter: "xxxs"
104
+ };
105
+ const DSSingleStackedBarPropTypes = {
106
+ ...getPropsPerSlotPropTypes(DSSingleStackedBarName, SINGLE_STACKED_BAR_SLOTS),
107
+ ...globalAttributesPropTypes,
108
+ ...xstyledPropTypes,
109
+ height: PropTypes.string.description("Height of the bar").isRequired,
110
+ gutter: PropTypes.string.description("Gap between the bars").defaultValue("xxxs"),
111
+ TooltipRenderer: PropTypes.func.description("Callback function that returns a custom renderer for the tooltip"),
112
+ LegendRenderer: PropTypes.func.description("Callback function that returns a custom renderer for the legend"),
113
+ data: PropTypes.arrayOf(
114
+ PropTypes.shape({ name: PropTypes.string, data: PropTypes.number, color: PropTypes.string })
115
+ ).description("Array of the series which represent the chart")
116
+ };
117
+ const DSSingleStackedBarPropTypesSchema = DSSingleStackedBarPropTypes;
118
+ export {
119
+ DSChartPropTypes,
120
+ DSChartPropTypesSchema,
121
+ DSSingleStackedBarPropTypes,
122
+ DSSingleStackedBarPropTypesSchema,
123
+ defaultSingleStackedBarProps
124
+ };
125
+ //# sourceMappingURL=react-desc-prop-types.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/react-desc-prop-types.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\nimport type { DSPropTypesSchema, GlobalAttributesT, ValidationMap, XstyledProps } from '@elliemae/ds-props-helpers';\nimport {\n PropTypes,\n getPropsPerSlotPropTypes,\n globalAttributesPropTypes,\n xstyledPropTypes,\n} from '@elliemae/ds-props-helpers';\nimport { type BorderProps } from '@elliemae/ds-system';\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport type { Series, ScaleLinear, ScaleBand } from 'd3';\nimport { type DSHookFloatingContextT } from '@elliemae/ds-floating-context';\nimport { type SERIE_TYPES } from './graphs/constants.js';\nimport { DATAVIZ_SLOTS, DSDatavizName, DSSingleStackedBarName, SINGLE_STACKED_BAR_SLOTS } from './constants/index.js';\n\nexport declare namespace DSChartT {\n export type SlotFunctionArguments = {\n dsDatavizRoot: () => object;\n dsDatavizAxisLine: () => object;\n dsDatavizAxisLabel: () => object;\n dsDatavizLine: () => object;\n dsDatavizArea: () => object;\n dsDatavizBar: () => object;\n dsDatavizPoint: () => object;\n dsDatavizTooltip: () => object;\n dsDatavizTooltipHoverArea: () => object;\n dsDatavizResetZoomButton: () => object;\n dsDatavizZoomInButton: () => object;\n dsDatavizZoomOutButton: () => object;\n };\n\n export type AxisTypeT = 'log' | 'band' | 'time' | 'linear';\n\n export type LinearScale = ScaleLinear<number, number, never>;\n export type BandScale = ScaleBand<string>;\n export type SeriesTypes = (typeof SERIE_TYPES)[keyof typeof SERIE_TYPES];\n export type Scales = LinearScale | BandScale;\n export interface SeriesT {\n name: string;\n data: Array<number | null | { x: number | string | Date; y: number }>;\n type: SeriesTypes;\n scale?: string;\n color: string;\n // line\n dashStyle?: string;\n pointRadius?: number;\n pointStyle?: string;\n // line and area: \"LINEAR\" (the default) or \"SPLINE\"\n curveStyle?: string;\n /**\n * With withTrendHighlight, whether a rise is good for the series: true (the default) draws a rise in the success\n * color and a fall in the danger color, false the other way round, for a series such as days to close\n */\n higherIsBetter?: boolean;\n }\n\n export interface ScrapperT {\n type: 'horizontal' | 'vertical';\n color: string;\n // where the tooltip of the scrapper opens, \"top\" by default\n tooltipPreference?: DSHookFloatingContextT.PopperPlacementsT;\n }\n\n export interface SerieComponentT {\n serie: InternalSerie;\n }\n\n export interface LegendT {\n position: 'right' | 'bottom' | 'left' | 'top';\n preventFilterAction?: boolean;\n }\n\n export interface AxisTickT {\n tickValues?: number[] | Date[];\n tickFormat?: ((value: string | number | Date) => string) | string;\n tickCount?: number;\n tickRotation?: number;\n overwriteTicks?: boolean;\n color?: string;\n }\n\n export type IntervalT = 'MINUTE' | 'HOUR' | 'DAY' | 'WEEK' | 'MONTH' | 'YEAR';\n\n export interface AxisT {\n type: AxisTypeT;\n showGrid?: boolean;\n color?: string;\n label?: string;\n cols?: string[];\n domainPadding?: number | number[];\n intervalType?: IntervalT;\n hideAxis?: boolean;\n beginAtZero?: boolean;\n advanced?: {\n /**\n * The size of the plot against the visible part of it, for a scrollable axis (xScroll, yScroll): with value 2 the\n * plot is twice as wide (or tall) as the chart and scrolls. \"ratio\" is the only type\n */\n pointSpacing: {\n type: 'ratio';\n value: number;\n };\n };\n tick?: AxisTickT;\n /**\n * A value the axis holds at its start: the axis widens to include it, and the data can widen it further (a dev\n * warning says when it does). Ignored with beginAtZero, and on a log axis when it is not positive.\n */\n min?: number | Date;\n /**\n * A value the axis holds at its end: the axis widens to include it, and the data can widen it further (a dev\n * warning says when it does).\n */\n max?: number | Date;\n /** The unit of domainPadding on a time axis: the axis leaves that many minutes, hours, days... at each end */\n domainPaddingType?: IntervalT;\n /**\n * On a horizontally scrollable chart (xScroll), a vertical axis takes its domain from the data in view instead of\n * the whole data, so a stretch of small values reads at the full height. It changes as the chart scrolls and zooms,\n * rounded to its ticks and eased, and beginAtZero, min and max still apply. On by default: false keeps the domain of\n * the whole data, so stretches far apart compare at the same scale\n */\n fitToView?: boolean;\n }\n\n export interface InternalDatum {\n key: string;\n value: number | { x: number; y: number };\n position: number;\n serie: string;\n scale: string;\n color: string;\n }\n\n export interface InternalSerie {\n key: string;\n data: InternalDatum[];\n name: string;\n type: SeriesTypes;\n scale?: string | undefined;\n color: string;\n dashStyle?: string;\n pointRadius?: number;\n pointStyle?: string;\n curveStyle?: string;\n higherIsBetter?: boolean;\n }\n\n export type InternalData = InternalSerie[];\n export interface TooltipRenderDataT {\n data: {\n datum: InternalDatum;\n name: string;\n xValue: string | number | Date | null;\n yValue: string | number | Date | null;\n }[];\n }\n export interface OptionalProps extends TypescriptHelpersT.PropsForGlobalOnSlots<\n typeof DSDatavizName,\n typeof DATAVIZ_SLOTS\n > {\n groups?: string[][];\n types?: 'scatter';\n scrapper?: ScrapperT;\n withTrendHighlight?: boolean;\n withAnimation?: boolean;\n animationDuration?: number;\n TooltipRenderer?: React.ComponentType<TooltipRenderDataT>;\n height?: number;\n width?: number;\n legend?: LegendT;\n xScroll?: boolean;\n yScroll?: boolean;\n y2Axis?: AxisT;\n yAxis: AxisT;\n xAxis: AxisT;\n }\n\n export interface DefaultProps {\n series: SeriesT[];\n }\n\n export interface RequiredProps {}\n\n export interface Props extends OptionalProps, DefaultProps, RequiredProps {}\n\n export type StackedSeriesByGroupT = Series<\n {\n [key: string]: number;\n },\n string\n >[][];\n\n export interface ScrapperDatum {\n position: number | undefined;\n name: string;\n xValue: string | number | Date | null;\n yValue: string | number | Date | null;\n key: number;\n datum: DSChartT.InternalDatum;\n }\n}\n\nconst TIME_INTERVAL_NAMES: DSChartT.IntervalT[] = ['MINUTE', 'HOUR', 'DAY', 'WEEK', 'MONTH', 'YEAR'];\n\n// the PropTypes builders mutate the instance they are called on (isRequired, description), so every axis prop gets its own\nconst getAxisTickPropTypes = () =>\n PropTypes.shape({\n tickValues: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.instanceOf(Date)])),\n tickFormat: PropTypes.oneOfType([\n PropTypes.func.signature('((value: string | number | Date) => string)'),\n PropTypes.string,\n ]),\n tickCount: PropTypes.number,\n tickRotation: PropTypes.number,\n overwriteTicks: PropTypes.bool,\n color: PropTypes.string,\n });\n\nconst getAxisPropTypes = () =>\n PropTypes.shape({\n type: PropTypes.oneOf(['log', 'band', 'time', 'linear']).isRequired,\n showGrid: PropTypes.bool,\n color: PropTypes.string,\n label: PropTypes.string,\n cols: PropTypes.arrayOf(PropTypes.string),\n domainPadding: PropTypes.oneOfType([PropTypes.number, PropTypes.arrayOf(PropTypes.number)]),\n intervalType: PropTypes.oneOf(TIME_INTERVAL_NAMES),\n hideAxis: PropTypes.bool,\n beginAtZero: PropTypes.bool,\n advanced: PropTypes.shape({\n pointSpacing: PropTypes.shape({ type: PropTypes.oneOf(['ratio']).isRequired, value: PropTypes.number.isRequired })\n .isRequired,\n }),\n tick: getAxisTickPropTypes(),\n min: PropTypes.oneOfType([PropTypes.number, PropTypes.instanceOf(Date)]),\n max: PropTypes.oneOfType([PropTypes.number, PropTypes.instanceOf(Date)]),\n domainPaddingType: PropTypes.oneOf(TIME_INTERVAL_NAMES),\n fitToView: PropTypes.bool,\n });\n\n// Chart forwards neither global attributes nor xstyled props to the DOM, so the schema documents only its own props;\n// attributes for the root container go through the dsDatavizRoot slot (see KNOWN_INTENTIONAL_DEVIATIONS.md)\nexport const DSChartPropTypes: DSPropTypesSchema<DSChartT.Props> = {\n ...getPropsPerSlotPropTypes(DSDatavizName, DATAVIZ_SLOTS),\n series: PropTypes.arrayOf(\n PropTypes.shape({\n name: PropTypes.string.isRequired,\n data: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.object])).isRequired,\n type: PropTypes.oneOf(['line', 'bar', 'area', 'point']).isRequired,\n scale: PropTypes.string,\n color: PropTypes.string.isRequired,\n dashStyle: PropTypes.string,\n pointRadius: PropTypes.number,\n pointStyle: PropTypes.string,\n curveStyle: PropTypes.string,\n higherIsBetter: PropTypes.bool,\n }),\n ).isRequired.description(\n 'Series to plot. Each one has a name, its values, a type and a color (a Dimsum palette key such as \"blue-200\", or any CSS color). An empty list renders the axes with no data',\n ),\n xAxis: getAxisPropTypes().isRequired.description(\n 'Horizontal axis configuration. min and max widen the axis to hold them, and the data can widen it further',\n ),\n yAxis: getAxisPropTypes().isRequired.description(\n 'Vertical axis configuration. min and max widen the axis to hold them, and the data can widen it further',\n ),\n y2Axis: getAxisPropTypes().description(\n 'Secondary vertical axis, drawn on the right. Series with scale \"y2\" are plotted against it, or against the main axis when it is not set. When both axes are linear, its ticks sit at the heights of the ticks of the main axis, on the grid lines, unless it sets min, max, domainPadding, tick.tickCount or tick.tickValues',\n ),\n groups: PropTypes.arrayOf(PropTypes.arrayOf(PropTypes.string)).description(\n 'Series names to stack together, one array per stack, e.g. [[\"data1\", \"data2\"]]',\n ),\n types: PropTypes.oneOf(['scatter']).description('\"scatter\" renders the series that have no type as points'),\n scrapper: PropTypes.shape({\n type: PropTypes.oneOf(['horizontal', 'vertical']).isRequired,\n color: PropTypes.string.isRequired,\n tooltipPreference: PropTypes.string,\n }).description(\n 'Guide line that follows the pointer, with its direction, color and tooltip placement (tooltipPreference, \"top\" by default)',\n ),\n withTrendHighlight: PropTypes.bool.description(\n 'Highlights the stretch of a line, or of the top of an area, that leads to its focused point (keyboard, pointer or scrapper): success color when it goes the good way, danger when it goes the bad way, neutral when flat. A rise is good unless the series sets higherIsBetter false. The points read the change to screen readers',\n ),\n withAnimation: PropTypes.bool.description(\n 'Animates the series when the chart mounts: they grow from the baseline of the value axis. Skipped when the user prefers reduced motion',\n ),\n animationDuration: PropTypes.number\n .description('Duration in milliseconds of the entrance animation of withAnimation')\n .defaultValue(700),\n TooltipRenderer: PropTypes.func\n .signature(\n '((props: { data: { name: string; xValue: string | number | Date | null; yValue: string | number | Date | null; datum: object }[] }) => JSX.Element)',\n )\n .description('Component rendered as the tooltip of the active data point, it receives the data of that point'),\n height: PropTypes.number.description('Height of the chart in pixels').defaultValue(500),\n width: PropTypes.number.description(\n 'Width of the chart in pixels. When omitted the chart takes the width of its container and follows its resizes',\n ),\n legend: PropTypes.shape({\n position: PropTypes.oneOf(['right', 'bottom', 'left', 'top']).isRequired,\n preventFilterAction: PropTypes.bool,\n }).description('Legend position, and whether clicking a legend item hides or shows its series'),\n xScroll: PropTypes.bool.description(\n 'Makes the horizontal axis scrollable and zoomable, together with xAxis.advanced.pointSpacing',\n ),\n yScroll: PropTypes.bool.description('Makes the vertical axis scrollable, together with yAxis.advanced.pointSpacing'),\n};\n\nexport const DSChartPropTypesSchema = DSChartPropTypes as unknown as ValidationMap<DSChartT.Props>;\n\nexport declare namespace DSSingleStackedBarT {\n export type SlotFunctionArguments = {\n dsSingleStackedBarRoot: () => object;\n dsSingleStackedBarBar: () => object;\n dsSingleStackedBarTooltip: () => object;\n dsSingleStackedBarTooltipHoverArea: () => object;\n };\n\n export type DatumT = {\n name: string;\n data: number;\n color: string;\n };\n export type SingleStackedBarDatumT = DatumT[];\n export type TooltipRenderDataT = {\n datum: DatumT;\n };\n export interface SingleStackedBarT {\n data: SingleStackedBarDatumT;\n TooltipRenderer?: React.ComponentType<TooltipRenderDataT>;\n LegendRenderer?: React.ComponentType<TooltipRenderDataT>;\n height: string | number;\n gutter?: string | number;\n }\n\n export interface BarT extends SingleStackedBarT {\n isFocused: boolean;\n borderRadius?: BorderProps['borderRadius'];\n bg: string;\n tabIndex?: 0 | -1;\n datum: DatumT;\n }\n\n export interface RequiredProps {\n height: string | number;\n data: DatumT[];\n }\n\n export interface DefaultProps {\n gutter: string;\n }\n\n export interface OptionalProps extends TypescriptHelpersT.PropsForGlobalOnSlots<\n typeof DSSingleStackedBarName,\n typeof SINGLE_STACKED_BAR_SLOTS\n > {\n TooltipRenderer?: React.ComponentType<TooltipRenderDataT>;\n LegendRenderer?: React.ComponentType<TooltipRenderDataT>;\n }\n\n export interface Props\n extends\n Partial<DefaultProps>,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLButtonElement>, keyof DefaultProps | keyof OptionalProps | keyof RequiredProps>,\n XstyledProps,\n RequiredProps {}\n\n export interface InternalProps\n extends\n DefaultProps,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLButtonElement>, keyof DefaultProps | keyof OptionalProps | keyof RequiredProps>,\n XstyledProps,\n RequiredProps {}\n}\n\nexport const defaultSingleStackedBarProps: DSSingleStackedBarT.DefaultProps = {\n gutter: 'xxxs',\n};\n\nexport const DSSingleStackedBarPropTypes: DSPropTypesSchema<DSSingleStackedBarT.Props> = {\n ...getPropsPerSlotPropTypes(DSSingleStackedBarName, SINGLE_STACKED_BAR_SLOTS),\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n height: PropTypes.string.description('Height of the bar').isRequired,\n gutter: PropTypes.string.description('Gap between the bars').defaultValue('xxxs'),\n TooltipRenderer: PropTypes.func.description('Callback function that returns a custom renderer for the tooltip'),\n LegendRenderer: PropTypes.func.description('Callback function that returns a custom renderer for the legend'),\n data: PropTypes.arrayOf(\n PropTypes.shape({ name: PropTypes.string, data: PropTypes.number, color: PropTypes.string }),\n ).description('Array of the series which represent the chart'),\n};\n\nexport const DSSingleStackedBarPropTypesSchema =\n DSSingleStackedBarPropTypes as unknown as ValidationMap<DSSingleStackedBarT.Props>;\n"],
5
+ "mappings": "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",
6
+ "names": []
7
+ }
@@ -0,0 +1,46 @@
1
+ import * as React from "react";
2
+ const ChartSlotPropsAsObject = {
3
+ dsDatavizRoot: { "aria-label": "just a typescript test" },
4
+ dsDatavizAxisLine: { "aria-label": "just a typescript test" },
5
+ dsDatavizAxisLabel: { "aria-label": "just a typescript test" },
6
+ dsDatavizLine: { "aria-label": "just a typescript test" },
7
+ dsDatavizArea: { "aria-label": "just a typescript test" },
8
+ dsDatavizBar: { "aria-label": "just a typescript test" },
9
+ dsDatavizPoint: { "aria-label": "just a typescript test" },
10
+ dsDatavizTooltip: { "aria-label": "just a typescript test" },
11
+ dsDatavizTooltipHoverArea: { "aria-label": "just a typescript test" },
12
+ dsDatavizResetZoomButton: { "aria-label": "just a typescript test" },
13
+ dsDatavizZoomInButton: { "aria-label": "just a typescript test" },
14
+ dsDatavizZoomOutButton: { "aria-label": "just a typescript test" }
15
+ };
16
+ const ChartSlotPropsAsFunctions = {
17
+ dsDatavizRoot: () => ({ "aria-label": "just a typescript test" }),
18
+ dsDatavizAxisLine: () => ({ "aria-label": "just a typescript test" }),
19
+ dsDatavizAxisLabel: () => ({ "aria-label": "just a typescript test" }),
20
+ dsDatavizLine: () => ({ "aria-label": "just a typescript test" }),
21
+ dsDatavizArea: () => ({ "aria-label": "just a typescript test" }),
22
+ dsDatavizBar: () => ({ "aria-label": "just a typescript test" }),
23
+ dsDatavizPoint: () => ({ "aria-label": "just a typescript test" }),
24
+ dsDatavizTooltip: () => ({ "aria-label": "just a typescript test" }),
25
+ dsDatavizTooltipHoverArea: () => ({ "aria-label": "just a typescript test" }),
26
+ dsDatavizResetZoomButton: () => ({ "aria-label": "just a typescript test" }),
27
+ dsDatavizZoomInButton: () => ({ "aria-label": "just a typescript test" }),
28
+ dsDatavizZoomOutButton: () => ({ "aria-label": "just a typescript test" })
29
+ };
30
+ const ChartSlotFunctionsAreValidProps = ChartSlotPropsAsFunctions;
31
+ const EnsureAllChartSlotsExistInSlotFunctionArguments = ChartSlotPropsAsFunctions;
32
+ const SingleStackedBarSlotPropsAsObject = {
33
+ dsSingleStackedBarRoot: { "aria-label": "just a typescript test" },
34
+ dsSingleStackedBarBar: { "aria-label": "just a typescript test" },
35
+ dsSingleStackedBarTooltip: { "aria-label": "just a typescript test" },
36
+ dsSingleStackedBarTooltipHoverArea: { "aria-label": "just a typescript test" }
37
+ };
38
+ const SingleStackedBarSlotPropsAsFunctions = {
39
+ dsSingleStackedBarRoot: () => ({ "aria-label": "just a typescript test" }),
40
+ dsSingleStackedBarBar: () => ({ "aria-label": "just a typescript test" }),
41
+ dsSingleStackedBarTooltip: () => ({ "aria-label": "just a typescript test" }),
42
+ dsSingleStackedBarTooltipHoverArea: () => ({ "aria-label": "just a typescript test" })
43
+ };
44
+ const SingleStackedBarSlotFunctionsAreValidProps = SingleStackedBarSlotPropsAsFunctions;
45
+ const EnsureAllSingleStackedBarSlotsExistInSlotFunctionArguments = SingleStackedBarSlotPropsAsFunctions;
46
+ //# sourceMappingURL=slot-props.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/typescript-testing/slot-props.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport type {\n DSDatavizName,\n DATAVIZ_SLOTS,\n DSSingleStackedBarName,\n SINGLE_STACKED_BAR_SLOTS,\n} from '../constants/index.js';\nimport type { DSChartT, DSSingleStackedBarT } from '../react-desc-prop-types.js';\n\n// Chart renders the DSDataviz slots\nconst ChartSlotPropsAsObject: Partial<DSChartT.Props> = {\n dsDatavizRoot: { 'aria-label': 'just a typescript test' },\n dsDatavizAxisLine: { 'aria-label': 'just a typescript test' },\n dsDatavizAxisLabel: { 'aria-label': 'just a typescript test' },\n dsDatavizLine: { 'aria-label': 'just a typescript test' },\n dsDatavizArea: { 'aria-label': 'just a typescript test' },\n dsDatavizBar: { 'aria-label': 'just a typescript test' },\n dsDatavizPoint: { 'aria-label': 'just a typescript test' },\n dsDatavizTooltip: { 'aria-label': 'just a typescript test' },\n dsDatavizTooltipHoverArea: { 'aria-label': 'just a typescript test' },\n dsDatavizResetZoomButton: { 'aria-label': 'just a typescript test' },\n dsDatavizZoomInButton: { 'aria-label': 'just a typescript test' },\n dsDatavizZoomOutButton: { 'aria-label': 'just a typescript test' },\n};\n\nconst ChartSlotPropsAsFunctions: DSChartT.SlotFunctionArguments = {\n dsDatavizRoot: () => ({ 'aria-label': 'just a typescript test' }),\n dsDatavizAxisLine: () => ({ 'aria-label': 'just a typescript test' }),\n dsDatavizAxisLabel: () => ({ 'aria-label': 'just a typescript test' }),\n dsDatavizLine: () => ({ 'aria-label': 'just a typescript test' }),\n dsDatavizArea: () => ({ 'aria-label': 'just a typescript test' }),\n dsDatavizBar: () => ({ 'aria-label': 'just a typescript test' }),\n dsDatavizPoint: () => ({ 'aria-label': 'just a typescript test' }),\n dsDatavizTooltip: () => ({ 'aria-label': 'just a typescript test' }),\n dsDatavizTooltipHoverArea: () => ({ 'aria-label': 'just a typescript test' }),\n dsDatavizResetZoomButton: () => ({ 'aria-label': 'just a typescript test' }),\n dsDatavizZoomInButton: () => ({ 'aria-label': 'just a typescript test' }),\n dsDatavizZoomOutButton: () => ({ 'aria-label': 'just a typescript test' }),\n};\n\n// The function form must also be accepted by the public Props, slot by slot\nconst ChartSlotFunctionsAreValidProps: Partial<DSChartT.Props> = ChartSlotPropsAsFunctions;\n\n// Exhaustiveness check \u2014 fails compilation if a Chart slot is missing from SlotFunctionArguments\nconst EnsureAllChartSlotsExistInSlotFunctionArguments: Required<\n TypescriptHelpersT.PropsForSlots<typeof DSDatavizName, typeof DATAVIZ_SLOTS>\n> = ChartSlotPropsAsFunctions;\n\n// DSSingleStackedBar renders its own slots\nconst SingleStackedBarSlotPropsAsObject: Partial<DSSingleStackedBarT.Props> = {\n dsSingleStackedBarRoot: { 'aria-label': 'just a typescript test' },\n dsSingleStackedBarBar: { 'aria-label': 'just a typescript test' },\n dsSingleStackedBarTooltip: { 'aria-label': 'just a typescript test' },\n dsSingleStackedBarTooltipHoverArea: { 'aria-label': 'just a typescript test' },\n};\n\nconst SingleStackedBarSlotPropsAsFunctions: DSSingleStackedBarT.SlotFunctionArguments = {\n dsSingleStackedBarRoot: () => ({ 'aria-label': 'just a typescript test' }),\n dsSingleStackedBarBar: () => ({ 'aria-label': 'just a typescript test' }),\n dsSingleStackedBarTooltip: () => ({ 'aria-label': 'just a typescript test' }),\n dsSingleStackedBarTooltipHoverArea: () => ({ 'aria-label': 'just a typescript test' }),\n};\n\n// The function form must also be accepted by the public Props, slot by slot\nconst SingleStackedBarSlotFunctionsAreValidProps: Partial<DSSingleStackedBarT.Props> =\n SingleStackedBarSlotPropsAsFunctions;\n\n// Exhaustiveness check \u2014 fails compilation if a DSSingleStackedBar slot is missing from SlotFunctionArguments\nconst EnsureAllSingleStackedBarSlotsExistInSlotFunctionArguments: Required<\n TypescriptHelpersT.PropsForSlots<typeof DSSingleStackedBarName, typeof SINGLE_STACKED_BAR_SLOTS>\n> = SingleStackedBarSlotPropsAsFunctions;\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACWvB,MAAM,yBAAkD;AAAA,EACtD,eAAe,EAAE,cAAc,yBAAyB;AAAA,EACxD,mBAAmB,EAAE,cAAc,yBAAyB;AAAA,EAC5D,oBAAoB,EAAE,cAAc,yBAAyB;AAAA,EAC7D,eAAe,EAAE,cAAc,yBAAyB;AAAA,EACxD,eAAe,EAAE,cAAc,yBAAyB;AAAA,EACxD,cAAc,EAAE,cAAc,yBAAyB;AAAA,EACvD,gBAAgB,EAAE,cAAc,yBAAyB;AAAA,EACzD,kBAAkB,EAAE,cAAc,yBAAyB;AAAA,EAC3D,2BAA2B,EAAE,cAAc,yBAAyB;AAAA,EACpE,0BAA0B,EAAE,cAAc,yBAAyB;AAAA,EACnE,uBAAuB,EAAE,cAAc,yBAAyB;AAAA,EAChE,wBAAwB,EAAE,cAAc,yBAAyB;AACnE;AAEA,MAAM,4BAA4D;AAAA,EAChE,eAAe,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAC/D,mBAAmB,OAAO,EAAE,cAAc,yBAAyB;AAAA,EACnE,oBAAoB,OAAO,EAAE,cAAc,yBAAyB;AAAA,EACpE,eAAe,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAC/D,eAAe,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAC/D,cAAc,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAC9D,gBAAgB,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAChE,kBAAkB,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAClE,2BAA2B,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAC3E,0BAA0B,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAC1E,uBAAuB,OAAO,EAAE,cAAc,yBAAyB;AAAA,EACvE,wBAAwB,OAAO,EAAE,cAAc,yBAAyB;AAC1E;AAGA,MAAM,kCAA2D;AAGjE,MAAM,kDAEF;AAGJ,MAAM,oCAAwE;AAAA,EAC5E,wBAAwB,EAAE,cAAc,yBAAyB;AAAA,EACjE,uBAAuB,EAAE,cAAc,yBAAyB;AAAA,EAChE,2BAA2B,EAAE,cAAc,yBAAyB;AAAA,EACpE,oCAAoC,EAAE,cAAc,yBAAyB;AAC/E;AAEA,MAAM,uCAAkF;AAAA,EACtF,wBAAwB,OAAO,EAAE,cAAc,yBAAyB;AAAA,EACxE,uBAAuB,OAAO,EAAE,cAAc,yBAAyB;AAAA,EACvE,2BAA2B,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAC3E,oCAAoC,OAAO,EAAE,cAAc,yBAAyB;AACtF;AAGA,MAAM,6CACJ;AAGF,MAAM,6DAEF;",
6
+ "names": []
7
+ }
@@ -1,19 +1,32 @@
1
1
  import * as React from "react";
2
2
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
3
  import { createRef } from "react";
4
- import { Chart } from "../index.js";
4
+ import { Chart, ChartWithSchema } from "../index.js";
5
5
  const closeButtonRef = createRef();
6
6
  const testRequiredProps = {};
7
7
  const testOptionalProps = {
8
+ withAnimation: true,
9
+ // tooltipPreference is optional
10
+ scrapper: { type: "vertical", color: "gray" },
11
+ animationDuration: 500,
8
12
  xAxis: {
9
13
  label: "x-axis",
10
14
  type: "linear"
11
15
  },
12
16
  yAxis: {
13
17
  label: "y-axis",
14
- type: "linear"
18
+ type: "linear",
19
+ // on a horizontally scrollable chart, the domain of the data in view
20
+ fitToView: true
15
21
  }
16
22
  };
23
+ const testScrollableTimeAxis = {
24
+ type: "time",
25
+ intervalType: "HOUR",
26
+ domainPadding: [1, 1],
27
+ domainPaddingType: "MINUTE",
28
+ advanced: { pointSpacing: { type: "ratio", value: 2 } }
29
+ };
17
30
  const testPartialDefaults = {
18
31
  series: [
19
32
  {
@@ -35,7 +48,13 @@ const testCompleteDefaults = {
35
48
  data: [1, 2, 3, 4, 5],
36
49
  name: "Series 1",
37
50
  color: "red",
38
- type: "line"
51
+ type: "line",
52
+ curveStyle: "SPLINE",
53
+ // with withTrendHighlight, a fall is good for this series
54
+ higherIsBetter: false,
55
+ dashStyle: "DASH",
56
+ pointStyle: "SQUARE",
57
+ pointRadius: 4
39
58
  }
40
59
  ]
41
60
  };
@@ -58,6 +77,7 @@ const ExampleUsageComponent = () => /* @__PURE__ */ jsxs(Fragment, { children: [
58
77
  /* @__PURE__ */ jsx(Chart, { ...testExplicitDefinition }),
59
78
  /* @__PURE__ */ jsx(Chart, { ...testInferedTypeCompatibility }),
60
79
  /* @__PURE__ */ jsx(Chart, { ...testDefinitionAsConst }),
80
+ /* @__PURE__ */ jsx(ChartWithSchema, { ...testExplicitDefinition }),
61
81
  /* @__PURE__ */ jsx(
62
82
  Chart,
63
83
  {
@@ -78,6 +98,18 @@ const ExampleUsageComponent = () => /* @__PURE__ */ jsxs(Fragment, { children: [
78
98
  type: "linear"
79
99
  }
80
100
  }
101
+ ),
102
+ /* @__PURE__ */ jsx(
103
+ Chart,
104
+ {
105
+ series: [{ data: [1, 2, 3], name: "Series 1", color: "blue-200", type: "bar" }],
106
+ xAxis: { type: "band", cols: ["a", "b", "c"] },
107
+ yAxis: { type: "linear" },
108
+ dsDatavizRoot: { "aria-label": "Weekly production" },
109
+ dsDatavizBar: () => ({ "data-custom": "bar" }),
110
+ dsDatavizPoint: { "data-custom": "point" },
111
+ dsDatavizAxisLine: () => ({ "data-custom": "axis line" })
112
+ }
81
113
  )
82
114
  ] });
83
115
  //# sourceMappingURL=typescript-data-viz-valid.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/typescript-testing/typescript-data-viz-valid.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport { createRef } from 'react';\nimport { Chart } from '../index.js';\nimport type { DSChartT } from '../index.js';\n\n// test we expose the namespace and the namespace follows our deliverable conventions\ntype ComponentPropsForApp = DSChartT.Props;\ntype ComponentPropsDefaultProps = DSChartT.DefaultProps;\ntype ComponentPropsOptionalProps = DSChartT.OptionalProps;\ntype ComponentPropsRequiredProps = DSChartT.RequiredProps;\n\nconst closeButtonRef = createRef<HTMLButtonElement>();\n\nconst testRequiredProps: ComponentPropsRequiredProps = {};\n\nconst testOptionalProps: ComponentPropsOptionalProps = {\n xAxis: {\n label: 'x-axis',\n type: 'linear',\n },\n yAxis: {\n label: 'y-axis',\n type: 'linear',\n },\n};\n\n// difference Props and InternalProps is that InternalProps has all the default props filled in\n// Props allows for partial defaults\nconst testPartialDefaults: Partial<ComponentPropsDefaultProps> = {\n series: [\n {\n data: [1, 2, 3, 4, 5],\n name: 'Series 1',\n color: 'red',\n type: 'line',\n },\n ],\n};\n\nconst testPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n} as ComponentPropsForApp;\n\n// InternalProps requires all defaults to be filled in\nconst testCompleteDefaults: Required<ComponentPropsDefaultProps> = {\n series: [\n {\n data: [1, 2, 3, 4, 5],\n name: 'Series 1',\n color: 'red',\n type: 'line',\n },\n ],\n};\n\n// using the explicit type definition, if there is an error, it will be marked on the key that is wrong\nconst testExplicitDefinition: ComponentPropsForApp = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n};\n\n// using the \"as\" syntax, if there is an error, it will be marking the whole object as wrong because it is not compatible with the type\nconst testInferedTypeCompatibility = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n} as ComponentPropsForApp;\n\nconst testDefinitionAsConst = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n} as const;\n\nconst ExampleUsageComponent = () => (\n <>\n {/* works with explicitly casted props, all syntaxes */}\n <Chart {...testExplicitDefinition} />\n <Chart {...testInferedTypeCompatibility} />\n <Chart {...testDefinitionAsConst} />\n {/* works with inline values */}\n <Chart\n series={[\n {\n data: [1, 2, 3, 4, 5],\n name: 'Series 1',\n color: 'red',\n type: 'line',\n },\n ]}\n xAxis={{\n label: 'x-axis',\n type: 'linear',\n }}\n yAxis={{\n label: 'y-axis',\n type: 'linear',\n }}\n />\n </>\n);\n"],
5
- "mappings": "AAAA,YAAY,WAAW;AC8ErB,mBAEE,KAFF;AA7EF,SAAS,iBAAiB;AAC1B,SAAS,aAAa;AAStB,MAAM,iBAAiB,UAA6B;AAEpD,MAAM,oBAAiD,CAAC;AAExD,MAAM,oBAAiD;AAAA,EACrD,OAAO;AAAA,IACL,OAAO;AAAA,IACP,MAAM;AAAA,EACR;AAAA,EACA,OAAO;AAAA,IACL,OAAO;AAAA,IACP,MAAM;AAAA,EACR;AACF;AAIA,MAAM,sBAA2D;AAAA,EAC/D,QAAQ;AAAA,IACN;AAAA,MACE,MAAM,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC;AAAA,MACpB,MAAM;AAAA,MACN,OAAO;AAAA,MACP,MAAM;AAAA,IACR;AAAA,EACF;AACF;AAEA,MAAM,oBAAoB;AAAA,EACxB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAGA,MAAM,uBAA6D;AAAA,EACjE,QAAQ;AAAA,IACN;AAAA,MACE,MAAM,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC;AAAA,MACpB,MAAM;AAAA,MACN,OAAO;AAAA,MACP,MAAM;AAAA,IACR;AAAA,EACF;AACF;AAGA,MAAM,yBAA+C;AAAA,EACnD,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAGA,MAAM,+BAA+B;AAAA,EACnC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAEA,MAAM,wBAAwB;AAAA,EAC5B,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAEA,MAAM,wBAAwB,MAC5B,iCAEE;AAAA,sBAAC,SAAO,GAAG,wBAAwB;AAAA,EACnC,oBAAC,SAAO,GAAG,8BAA8B;AAAA,EACzC,oBAAC,SAAO,GAAG,uBAAuB;AAAA,EAElC;AAAA,IAAC;AAAA;AAAA,MACC,QAAQ;AAAA,QACN;AAAA,UACE,MAAM,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC;AAAA,UACpB,MAAM;AAAA,UACN,OAAO;AAAA,UACP,MAAM;AAAA,QACR;AAAA,MACF;AAAA,MACA,OAAO;AAAA,QACL,OAAO;AAAA,QACP,MAAM;AAAA,MACR;AAAA,MACA,OAAO;AAAA,QACL,OAAO;AAAA,QACP,MAAM;AAAA,MACR;AAAA;AAAA,EACF;AAAA,GACF;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport { createRef } from 'react';\nimport { Chart, ChartWithSchema } from '../index.js';\nimport type { DSChartT } from '../index.js';\n\n// test we expose the namespace and the namespace follows our deliverable conventions\ntype ComponentPropsForApp = DSChartT.Props;\ntype ComponentPropsDefaultProps = DSChartT.DefaultProps;\ntype ComponentPropsOptionalProps = DSChartT.OptionalProps;\ntype ComponentPropsRequiredProps = DSChartT.RequiredProps;\n\nconst closeButtonRef = createRef<HTMLButtonElement>();\n\nconst testRequiredProps: ComponentPropsRequiredProps = {};\n\nconst testOptionalProps: ComponentPropsOptionalProps = {\n withAnimation: true,\n // tooltipPreference is optional\n scrapper: { type: 'vertical', color: 'gray' },\n animationDuration: 500,\n xAxis: {\n label: 'x-axis',\n type: 'linear',\n },\n yAxis: {\n label: 'y-axis',\n type: 'linear',\n // on a horizontally scrollable chart, the domain of the data in view\n fitToView: true,\n },\n};\n\n// a scrollable time axis: pointSpacing takes the size of the plot against the visible part (\"ratio\" is its only type),\n// and intervalType and domainPaddingType take the UTC intervals from MINUTE to YEAR\nconst testScrollableTimeAxis: DSChartT.AxisT = {\n type: 'time',\n intervalType: 'HOUR',\n domainPadding: [1, 1],\n domainPaddingType: 'MINUTE',\n advanced: { pointSpacing: { type: 'ratio', value: 2 } },\n};\n\n// difference Props and InternalProps is that InternalProps has all the default props filled in\n// Props allows for partial defaults\nconst testPartialDefaults: Partial<ComponentPropsDefaultProps> = {\n series: [\n {\n data: [1, 2, 3, 4, 5],\n name: 'Series 1',\n color: 'red',\n type: 'line',\n },\n ],\n};\n\nconst testPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n} as ComponentPropsForApp;\n\n// InternalProps requires all defaults to be filled in\nconst testCompleteDefaults: Required<ComponentPropsDefaultProps> = {\n series: [\n {\n data: [1, 2, 3, 4, 5],\n name: 'Series 1',\n color: 'red',\n type: 'line',\n curveStyle: 'SPLINE',\n // with withTrendHighlight, a fall is good for this series\n higherIsBetter: false,\n dashStyle: 'DASH',\n pointStyle: 'SQUARE',\n pointRadius: 4,\n },\n ],\n};\n\n// using the explicit type definition, if there is an error, it will be marked on the key that is wrong\nconst testExplicitDefinition: ComponentPropsForApp = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n};\n\n// using the \"as\" syntax, if there is an error, it will be marking the whole object as wrong because it is not compatible with the type\nconst testInferedTypeCompatibility = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n} as ComponentPropsForApp;\n\nconst testDefinitionAsConst = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n} as const;\n\nconst ExampleUsageComponent = () => (\n <>\n {/* works with explicitly casted props, all syntaxes */}\n <Chart {...testExplicitDefinition} />\n <Chart {...testInferedTypeCompatibility} />\n <Chart {...testDefinitionAsConst} />\n <ChartWithSchema {...testExplicitDefinition} />\n {/* works with inline values */}\n <Chart\n series={[\n {\n data: [1, 2, 3, 4, 5],\n name: 'Series 1',\n color: 'red',\n type: 'line',\n },\n ]}\n xAxis={{\n label: 'x-axis',\n type: 'linear',\n }}\n yAxis={{\n label: 'y-axis',\n type: 'linear',\n }}\n />\n {/* works with slot props, object and function forms */}\n <Chart\n series={[{ data: [1, 2, 3], name: 'Series 1', color: 'blue-200', type: 'bar' }]}\n xAxis={{ type: 'band', cols: ['a', 'b', 'c'] }}\n yAxis={{ type: 'linear' }}\n dsDatavizRoot={{ 'aria-label': 'Weekly production' }}\n dsDatavizBar={() => ({ 'data-custom': 'bar' })}\n dsDatavizPoint={{ 'data-custom': 'point' }}\n dsDatavizAxisLine={() => ({ 'data-custom': 'axis line' })}\n />\n </>\n);\n"],
5
+ "mappings": "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",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,70 @@
1
+ import * as React from "react";
2
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
+ import { DSSingleStackedBar, DSSingleStackedBarWithSchema } from "../index.js";
4
+ const TooltipRenderer = ({ datum }) => /* @__PURE__ */ jsx("p", { children: datum.name });
5
+ const testRequiredProps = {
6
+ height: 40,
7
+ data: [
8
+ { name: "James", data: 3, color: "green-100" },
9
+ { name: "Bill", data: 4, color: "orange-100" }
10
+ ]
11
+ };
12
+ const testOptionalProps = {
13
+ TooltipRenderer: ({ datum }) => /* @__PURE__ */ jsx("p", { children: datum.name }),
14
+ LegendRenderer: ({ datum }) => /* @__PURE__ */ jsx("p", { children: datum.data }),
15
+ dsSingleStackedBarRoot: { "aria-label": "votes" },
16
+ dsSingleStackedBarBar: () => ({ "data-custom": "bar" })
17
+ };
18
+ const testPartialDefaults = {};
19
+ const testProps = {
20
+ ...testRequiredProps,
21
+ ...testOptionalProps,
22
+ ...testPartialDefaults
23
+ };
24
+ const testCompleteDefaults = {
25
+ gutter: "xxxs"
26
+ };
27
+ const testInternalProps = {
28
+ ...testRequiredProps,
29
+ ...testOptionalProps,
30
+ ...testCompleteDefaults
31
+ };
32
+ const testExplicitDefinition = {
33
+ ...testRequiredProps,
34
+ ...testOptionalProps,
35
+ ...testCompleteDefaults
36
+ };
37
+ const testInferedTypeCompatibility = {
38
+ ...testRequiredProps,
39
+ ...testOptionalProps,
40
+ ...testCompleteDefaults
41
+ };
42
+ const testDefinitionAsConst = {
43
+ ...testRequiredProps,
44
+ ...testOptionalProps,
45
+ ...testCompleteDefaults
46
+ };
47
+ const ExampleUsageComponent = () => /* @__PURE__ */ jsxs(Fragment, { children: [
48
+ /* @__PURE__ */ jsx(DSSingleStackedBar, { ...testExplicitDefinition }),
49
+ /* @__PURE__ */ jsx(DSSingleStackedBar, { ...testInferedTypeCompatibility }),
50
+ /* @__PURE__ */ jsx(DSSingleStackedBar, { ...testDefinitionAsConst }),
51
+ /* @__PURE__ */ jsx(DSSingleStackedBarWithSchema, { ...testExplicitDefinition }),
52
+ /* @__PURE__ */ jsx(
53
+ DSSingleStackedBar,
54
+ {
55
+ height: "40",
56
+ gutter: "xs",
57
+ "aria-label": "votes",
58
+ data: [
59
+ { name: "James", data: 3, color: "green-100" },
60
+ { name: "Bill", data: 4, color: "orange-100" }
61
+ ],
62
+ TooltipRenderer,
63
+ dsSingleStackedBarRoot: { "aria-label": "votes" },
64
+ dsSingleStackedBarBar: () => ({ "data-custom": "bar" }),
65
+ dsSingleStackedBarTooltip: { "data-custom": "tooltip" },
66
+ dsSingleStackedBarTooltipHoverArea: () => ({ "data-custom": "hover area" })
67
+ }
68
+ )
69
+ ] });
70
+ //# sourceMappingURL=typescript-single-stacked-bar-valid.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/typescript-testing/typescript-single-stacked-bar-valid.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport { DSSingleStackedBar, DSSingleStackedBarWithSchema } from '../index.js';\nimport type { DSSingleStackedBarT } from '../index.js';\n\n// test we expose the namespace and the namespace follows our deliverable conventions\ntype ComponentPropsForApp = DSSingleStackedBarT.Props;\ntype ComponentPropsInternals = DSSingleStackedBarT.InternalProps;\ntype ComponentPropsDefaultProps = DSSingleStackedBarT.DefaultProps;\ntype ComponentPropsOptionalProps = DSSingleStackedBarT.OptionalProps;\ntype ComponentPropsRequiredProps = DSSingleStackedBarT.RequiredProps;\n\nconst TooltipRenderer: DSSingleStackedBarT.OptionalProps['TooltipRenderer'] = ({ datum }) => <p>{datum.name}</p>;\n\nconst testRequiredProps: ComponentPropsRequiredProps = {\n height: 40,\n data: [\n { name: 'James', data: 3, color: 'green-100' },\n { name: 'Bill', data: 4, color: 'orange-100' },\n ],\n};\n\nconst testOptionalProps: ComponentPropsOptionalProps = {\n TooltipRenderer: ({ datum }) => <p>{datum.name}</p>,\n LegendRenderer: ({ datum }) => <p>{datum.data}</p>,\n dsSingleStackedBarRoot: { 'aria-label': 'votes' },\n dsSingleStackedBarBar: () => ({ 'data-custom': 'bar' }),\n};\n\n// difference Props and InternalProps is that InternalProps has all the default props filled in\n// Props allows for partial defaults\nconst testPartialDefaults: Partial<ComponentPropsDefaultProps> = {};\n\nconst testProps = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n} as ComponentPropsForApp;\n\n// InternalProps requires all defaults to be filled in\nconst testCompleteDefaults: Required<ComponentPropsDefaultProps> = {\n gutter: 'xxxs',\n};\n\nconst testInternalProps: ComponentPropsInternals = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n};\n\n// using the explicit type definition, if there is an error, it will be marked on the key that is wrong\nconst testExplicitDefinition: ComponentPropsForApp = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n};\n\n// using the \"as\" syntax, if there is an error, it will be marking the whole object as wrong because it is not compatible with the type\nconst testInferedTypeCompatibility = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n} as ComponentPropsForApp;\n\nconst testDefinitionAsConst = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n} as const;\n\nconst ExampleUsageComponent = () => (\n <>\n {/* works with explicitly casted props, all syntaxes */}\n <DSSingleStackedBar {...testExplicitDefinition} />\n <DSSingleStackedBar {...testInferedTypeCompatibility} />\n <DSSingleStackedBar {...testDefinitionAsConst} />\n <DSSingleStackedBarWithSchema {...testExplicitDefinition} />\n {/* works with inline values */}\n <DSSingleStackedBar\n height=\"40\"\n gutter=\"xs\"\n aria-label=\"votes\"\n data={[\n { name: 'James', data: 3, color: 'green-100' },\n { name: 'Bill', data: 4, color: 'orange-100' },\n ]}\n TooltipRenderer={TooltipRenderer}\n dsSingleStackedBarRoot={{ 'aria-label': 'votes' }}\n dsSingleStackedBarBar={() => ({ 'data-custom': 'bar' })}\n dsSingleStackedBarTooltip={{ 'data-custom': 'tooltip' }}\n dsSingleStackedBarTooltipHoverArea={() => ({ 'data-custom': 'hover area' })}\n />\n </>\n);\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACWsE,SA2D3F,UA3D2F,KA2D3F,YA3D2F;AAV7F,SAAS,oBAAoB,oCAAoC;AAUjE,MAAM,kBAAwE,CAAC,EAAE,MAAM,MAAM,oBAAC,OAAG,gBAAM,MAAK;AAE5G,MAAM,oBAAiD;AAAA,EACrD,QAAQ;AAAA,EACR,MAAM;AAAA,IACJ,EAAE,MAAM,SAAS,MAAM,GAAG,OAAO,YAAY;AAAA,IAC7C,EAAE,MAAM,QAAQ,MAAM,GAAG,OAAO,aAAa;AAAA,EAC/C;AACF;AAEA,MAAM,oBAAiD;AAAA,EACrD,iBAAiB,CAAC,EAAE,MAAM,MAAM,oBAAC,OAAG,gBAAM,MAAK;AAAA,EAC/C,gBAAgB,CAAC,EAAE,MAAM,MAAM,oBAAC,OAAG,gBAAM,MAAK;AAAA,EAC9C,wBAAwB,EAAE,cAAc,QAAQ;AAAA,EAChD,uBAAuB,OAAO,EAAE,eAAe,MAAM;AACvD;AAIA,MAAM,sBAA2D,CAAC;AAElE,MAAM,YAAY;AAAA,EAChB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAGA,MAAM,uBAA6D;AAAA,EACjE,QAAQ;AACV;AAEA,MAAM,oBAA6C;AAAA,EACjD,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAGA,MAAM,yBAA+C;AAAA,EACnD,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAGA,MAAM,+BAA+B;AAAA,EACnC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAEA,MAAM,wBAAwB;AAAA,EAC5B,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAEA,MAAM,wBAAwB,MAC5B,iCAEE;AAAA,sBAAC,sBAAoB,GAAG,wBAAwB;AAAA,EAChD,oBAAC,sBAAoB,GAAG,8BAA8B;AAAA,EACtD,oBAAC,sBAAoB,GAAG,uBAAuB;AAAA,EAC/C,oBAAC,gCAA8B,GAAG,wBAAwB;AAAA,EAE1D;AAAA,IAAC;AAAA;AAAA,MACC,QAAO;AAAA,MACP,QAAO;AAAA,MACP,cAAW;AAAA,MACX,MAAM;AAAA,QACJ,EAAE,MAAM,SAAS,MAAM,GAAG,OAAO,YAAY;AAAA,QAC7C,EAAE,MAAM,QAAQ,MAAM,GAAG,OAAO,aAAa;AAAA,MAC/C;AAAA,MACA;AAAA,MACA,wBAAwB,EAAE,cAAc,QAAQ;AAAA,MAChD,uBAAuB,OAAO,EAAE,eAAe,MAAM;AAAA,MACrD,2BAA2B,EAAE,eAAe,UAAU;AAAA,MACtD,oCAAoC,OAAO,EAAE,eAAe,aAAa;AAAA;AAAA,EAC3E;AAAA,GACF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,42 @@
1
+ export declare const DSDatavizName = "DSDataviz";
2
+ export declare const DATAVIZ_SLOTS: {
3
+ readonly ROOT: "root";
4
+ readonly AXIS_LINE: "axis-line";
5
+ readonly AXIS_LABEL: "axis-label";
6
+ readonly LINE: "line";
7
+ readonly AREA: "area";
8
+ readonly BAR: "bar";
9
+ readonly POINT: "point";
10
+ readonly TOOLTIP: "tooltip";
11
+ readonly TOOLTIP_HOVER_AREA: "tooltip-hover-area";
12
+ readonly RESET_ZOOM_BUTTON: "reset-zoom-button";
13
+ readonly ZOOM_IN_BUTTON: "zoom-in-button";
14
+ readonly ZOOM_OUT_BUTTON: "zoom-out-button";
15
+ };
16
+ export declare const DATAVIZ_DATA_TESTID: {
17
+ readonly ROOT: "ds-dataviz-root";
18
+ readonly AXIS_LINE: "ds-dataviz-axis-line";
19
+ readonly AXIS_LABEL: "ds-dataviz-axis-label";
20
+ readonly LINE: "ds-dataviz-line";
21
+ readonly AREA: "ds-dataviz-area";
22
+ readonly BAR: "ds-dataviz-bar";
23
+ readonly POINT: "ds-dataviz-point";
24
+ readonly TOOLTIP: "ds-dataviz-tooltip";
25
+ readonly TOOLTIP_HOVER_AREA: "ds-dataviz-tooltip-hover-area";
26
+ readonly RESET_ZOOM_BUTTON: "ds-dataviz-reset-zoom-button";
27
+ readonly ZOOM_IN_BUTTON: "ds-dataviz-zoom-in-button";
28
+ readonly ZOOM_OUT_BUTTON: "ds-dataviz-zoom-out-button";
29
+ };
30
+ export declare const DSSingleStackedBarName = "DSSingleStackedBar";
31
+ export declare const SINGLE_STACKED_BAR_SLOTS: {
32
+ readonly ROOT: "root";
33
+ readonly BAR: "bar";
34
+ readonly TOOLTIP: "tooltip";
35
+ readonly TOOLTIP_HOVER_AREA: "tooltip-hover-area";
36
+ };
37
+ export declare const SINGLE_STACKED_BAR_DATA_TESTID: {
38
+ readonly ROOT: "ds-single-stacked-bar-root";
39
+ readonly BAR: "ds-single-stacked-bar-bar";
40
+ readonly TOOLTIP: "ds-single-stacked-bar-tooltip";
41
+ readonly TOOLTIP_HOVER_AREA: "ds-single-stacked-bar-tooltip-hover-area";
42
+ };
@@ -1,3 +1,5 @@
1
1
  import React from 'react';
2
- import type { DSChartT } from './react-desc-prop-types.js';
3
- export declare const Chart: React.ComponentType<DSChartT.Props>;
2
+ import { type DSChartT } from '../../react-desc-prop-types.js';
3
+ declare const Chart: React.ComponentType<DSChartT.Props>;
4
+ declare const ChartWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<DSChartT.Props>;
5
+ export { Chart, ChartWithSchema };
@@ -1,7 +1,8 @@
1
1
  import type React from 'react';
2
2
  import type { ScaleBand, ScaleOrdinal } from 'd3';
3
- import type { DSChartT } from './react-desc-prop-types.js';
3
+ import type { DSChartT } from '../../react-desc-prop-types.js';
4
4
  import type { ScaleT } from './scales/index.js';
5
+ import type { ChartInteractionStoreT } from './config/chartInteractionStore.js';
5
6
  interface ContextT {
6
7
  props: DSChartT.Props;
7
8
  originalSeries: DSChartT.SeriesT[];
@@ -10,18 +11,19 @@ interface ContextT {
10
11
  xScale: ScaleT | null;
11
12
  yScale: ScaleT | null;
12
13
  y2Scale: ScaleT | null;
14
+ fullDataTicks: {
15
+ y: (number | string)[] | null;
16
+ y2: (number | string)[] | null;
17
+ };
13
18
  innerHeight: number;
14
19
  innerWidth: number;
15
- activePoint: DSChartT.InternalDatum | null;
16
20
  containerRef: HTMLDivElement | null;
17
21
  setContainerRef: React.Dispatch<React.SetStateAction<HTMLDivElement | null>>;
18
22
  groups: string[];
19
23
  subGroupScale?: ScaleBand<string> | null;
20
24
  colorScale: ScaleOrdinal<string, unknown, string>;
21
25
  axisLeftRef: SVGGElement | null;
22
- scrapperPosY: number;
23
- scrapperPosX: number;
24
- xScrollbarPosition: number;
26
+ interactionStore: ChartInteractionStoreT;
25
27
  isGrabbed: boolean;
26
28
  startPosition: number;
27
29
  isScrollbarVisible: boolean;
@@ -35,6 +37,7 @@ interface ContextT {
35
37
  };
36
38
  toolbarHeight: number;
37
39
  leftLegendHeight: number;
40
+ topLegendWidth: number;
38
41
  rightLegendHeight: number;
39
42
  leftLabelHeight: number;
40
43
  leftLegendWidth: number;
@@ -53,9 +56,6 @@ interface ContextT {
53
56
  stackedData: DSChartT.StackedSeriesByGroupT;
54
57
  width: number;
55
58
  height: number;
56
- isZooming: boolean;
57
- zoomStartingPosition: number;
58
- movingPosition: number;
59
59
  axisLeftWidth: number;
60
60
  bottomLegendWidth: number;
61
61
  setActivePoint: React.Dispatch<React.SetStateAction<DSChartT.InternalDatum | null>>;
@@ -86,9 +86,7 @@ interface ContextT {
86
86
  getY2ScaleValue: (datum: DSChartT.InternalDatum | number) => number;
87
87
  setContainerRatio: React.Dispatch<React.SetStateAction<number>>;
88
88
  setToolbarRef: React.Dispatch<React.SetStateAction<SVGGElement | null>>;
89
- setMovingPosition: React.Dispatch<React.SetStateAction<number>>;
90
- setIsZooming: React.Dispatch<React.SetStateAction<boolean>>;
91
- setZoomStartingPosition: React.Dispatch<React.SetStateAction<number>>;
89
+ getOwnerProps: () => DSChartT.Props;
92
90
  }
93
91
  export declare const ChartContext: React.Context<ContextT>;
94
92
  export {};