@vizzly/dashboard 0.14.4 → 0.15.0-dev-4c548c2a9cdc29d779838ea3325029fe7e640235

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 (299) hide show
  1. package/dist/charts/src/BubbleChart/BubbleChart.d.ts +5 -0
  2. package/dist/charts/src/BubbleChart/VizzlyBubbleChart.d.ts +3 -0
  3. package/dist/charts/src/BubbleChart/index.d.ts +1 -0
  4. package/dist/charts/src/BubbleChart/types.d.ts +32 -0
  5. package/dist/charts/src/Legend/types.d.ts +1 -1
  6. package/dist/charts/src/XYChart/types.d.ts +2 -0
  7. package/dist/charts/src/v2/components/AreaChart/AreaChart.d.ts +22 -0
  8. package/dist/charts/src/v2/components/AreaChart/contants.d.ts +1 -0
  9. package/dist/charts/src/v2/components/AreaChart/index.d.ts +1 -0
  10. package/dist/charts/src/v2/components/Axis/AxisBottom.d.ts +18 -0
  11. package/dist/charts/src/v2/components/Axis/AxisLeft.d.ts +15 -0
  12. package/dist/charts/src/v2/components/Axis/shared.d.ts +2 -0
  13. package/dist/charts/src/v2/components/BarChart/BarChart.d.ts +24 -0
  14. package/dist/charts/src/v2/components/BarChart/index.d.ts +1 -0
  15. package/dist/charts/src/v2/components/BarChart/useBarXScale.d.ts +2 -0
  16. package/dist/charts/src/v2/components/BubbleChart/BubbleChart.d.ts +35 -0
  17. package/dist/charts/src/v2/components/BubbleChart/index.d.ts +1 -0
  18. package/dist/charts/src/v2/components/ChartWrapper/ChartWrapper.d.ts +9 -0
  19. package/dist/charts/src/v2/components/ComboChart/ComboChart.d.ts +21 -0
  20. package/dist/charts/src/v2/components/GoalLine/GoalLine.d.ts +1 -1
  21. package/dist/charts/src/v2/components/GoalLine/GoalLines.d.ts +11 -0
  22. package/dist/charts/src/v2/components/GridRows/GridRows.d.ts +10 -0
  23. package/dist/charts/src/v2/components/GridRows/shared.d.ts +2 -0
  24. package/dist/charts/src/v2/components/Legend/Legend.d.ts +14 -7
  25. package/dist/charts/src/v2/components/Legend/LegendItem/LegendItem.d.ts +7 -4
  26. package/dist/charts/src/v2/components/Legend/LegendItemBox/LegendItemBox.d.ts +9 -2
  27. package/dist/charts/src/v2/components/LineChart/LineChart.d.ts +16 -1
  28. package/dist/charts/src/v2/components/RadarChart/Grid.d.ts +3 -0
  29. package/dist/charts/src/v2/components/RadarChart/MiddleLine.d.ts +7 -0
  30. package/dist/charts/src/v2/components/RadarChart/Polygons.d.ts +3 -0
  31. package/dist/charts/src/v2/components/RadarChart/RadarChart.d.ts +3 -0
  32. package/dist/charts/src/v2/components/RadarChart/index.d.ts +1 -0
  33. package/dist/charts/src/v2/components/RadarChart/types.d.ts +33 -0
  34. package/dist/charts/src/v2/components/Threshold/ThresholdArea.d.ts +14 -0
  35. package/dist/charts/src/v2/components/Threshold/threshold.utils.d.ts +4 -0
  36. package/dist/charts/src/v2/components/Tooltip/CrosshairCircle.d.ts +21 -0
  37. package/dist/charts/src/v2/components/Tooltip/Line.d.ts +7 -0
  38. package/dist/charts/src/v2/components/Tooltip/Tooltip.d.ts +14 -8
  39. package/dist/charts/src/v2/components/WaterfallChart/Legend.d.ts +15 -0
  40. package/dist/charts/src/v2/components/WaterfallChart/Tooltip.d.ts +14 -0
  41. package/dist/charts/src/v2/components/WaterfallChart/WaterfallChart.d.ts +14 -0
  42. package/dist/charts/src/v2/components/WaterfallChart/index.d.ts +2 -0
  43. package/dist/charts/src/v2/components/hooks/useBottomAxisBaselineShift.d.ts +10 -0
  44. package/dist/charts/src/v2/components/hooks/useFlattenedData.d.ts +4 -0
  45. package/dist/charts/src/v2/components/hooks/useTooltip.d.ts +16 -0
  46. package/dist/charts/src/v2/components/hooks/useVisibleKey.d.ts +6 -0
  47. package/dist/charts/src/v2/components/hooks/useYScale.d.ts +2 -0
  48. package/dist/charts/src/v2/constants/BORDER_RADIUS.d.ts +1 -0
  49. package/dist/charts/src/v2/constants/PADDING.d.ts +4 -0
  50. package/dist/charts/src/v2/index.d.ts +4 -0
  51. package/dist/charts/src/v2/utils/addTrendAndForecast.d.ts +1 -1
  52. package/dist/charts/src/v2/utils/buildMargin.d.ts +10 -0
  53. package/dist/charts/src/v2/utils/components/BarGroup.d.ts +24 -0
  54. package/dist/charts/src/v2/utils/components/BarStacked.d.ts +18 -0
  55. package/dist/charts/src/v2/utils/flattenData.d.ts +1 -1
  56. package/dist/charts/src/v2/utils/getBarFill.d.ts +3 -0
  57. package/dist/charts/src/v2/utils/getClipArea.d.ts +1 -1
  58. package/dist/charts/src/v2/utils/getColor.d.ts +1 -1
  59. package/dist/charts/src/v2/utils/getTooltipData.d.ts +8 -6
  60. package/dist/charts/src/v2/utils/getTrend.d.ts +1 -1
  61. package/dist/charts/src/v2/utils/useableId.d.ts +1 -0
  62. package/dist/dashboard/src/contexts/GlobalProvider/useGlobalProvider.d.ts +18 -42
  63. package/dist/dashboard/src/errors/FailedToSaveError.d.ts +3 -0
  64. package/dist/dashboard/src/index.d.ts +2 -0
  65. package/dist/dashboard/src/types.d.ts +1 -1
  66. package/dist/dashboard.cjs.development.js +76502 -0
  67. package/dist/dashboard.cjs.production.min.js +1 -0
  68. package/dist/dashboard.esm.js +76551 -0
  69. package/dist/index.js +8 -1
  70. package/dist/results-driver/src/driver/VizzlyQuery/AreaChart/toQueries.d.ts +1 -1
  71. package/dist/results-driver/src/driver/VizzlyQuery/AreaChartV2/toQueries.d.ts +4 -0
  72. package/dist/results-driver/src/driver/VizzlyQuery/BarChart/toQueries.d.ts +1 -1
  73. package/dist/results-driver/src/driver/VizzlyQuery/BarChartV2/toQueries.d.ts +4 -0
  74. package/dist/results-driver/src/driver/VizzlyQuery/BasicTable/toQueries.d.ts +1 -1
  75. package/dist/results-driver/src/driver/VizzlyQuery/BubbleChart/toQueries.d.ts +10 -0
  76. package/dist/results-driver/src/driver/VizzlyQuery/BubbleChartV2/toQueries.d.ts +10 -0
  77. package/dist/results-driver/src/driver/VizzlyQuery/ComboChartV2/toQueries.d.ts +10 -0
  78. package/dist/results-driver/src/driver/VizzlyQuery/FunnelChart/toQueries.d.ts +1 -1
  79. package/dist/results-driver/src/driver/VizzlyQuery/HorizontalBarChart/toQueries.d.ts +1 -1
  80. package/dist/results-driver/src/driver/VizzlyQuery/LineChart/toQueries.d.ts +1 -1
  81. package/dist/results-driver/src/driver/VizzlyQuery/LineChartV2/toQueries.d.ts +1 -1
  82. package/dist/results-driver/src/driver/VizzlyQuery/PieChart/toQueries.d.ts +1 -1
  83. package/dist/results-driver/src/driver/VizzlyQuery/PivotTable/toQueries.d.ts +1 -1
  84. package/dist/results-driver/src/driver/VizzlyQuery/RadarChart/toQueries.d.ts +4 -0
  85. package/dist/results-driver/src/driver/VizzlyQuery/RichText/toQueries.d.ts +1 -1
  86. package/dist/results-driver/src/driver/VizzlyQuery/SunburstChart/toQueries.d.ts +4 -0
  87. package/dist/results-driver/src/driver/VizzlyQuery/WaterfallChart/toQueries.d.ts +4 -0
  88. package/dist/results-driver/src/driver/VizzlyQuery/buildVizzlyQuery.d.ts +5 -0
  89. package/dist/results-driver/src/driver/VizzlyQuery/commonToQueries.d.ts +1 -1
  90. package/dist/services/src/Services/View.d.ts +17 -1
  91. package/dist/services/src/index.d.ts +6 -2
  92. package/dist/shared-logic/src/AreaChartV2/attributesSchema.d.ts +3 -0
  93. package/dist/shared-logic/src/AreaChartV2/buildAreaChartRepresentation.d.ts +40 -0
  94. package/dist/shared-logic/src/AreaChartV2/constants.d.ts +3 -0
  95. package/dist/shared-logic/src/AreaChartV2/index.d.ts +4 -0
  96. package/dist/shared-logic/src/AreaChartV2/setAttributes.d.ts +4 -0
  97. package/dist/shared-logic/src/AreaChartV2/types.d.ts +12 -0
  98. package/dist/shared-logic/src/BarChartV2/attributesSchema.d.ts +3 -0
  99. package/dist/shared-logic/src/BarChartV2/buildBarChartRepresentation.d.ts +41 -0
  100. package/dist/shared-logic/src/BarChartV2/constants.d.ts +3 -0
  101. package/dist/shared-logic/src/BarChartV2/index.d.ts +4 -0
  102. package/dist/shared-logic/src/BarChartV2/setAttributes.d.ts +4 -0
  103. package/dist/shared-logic/src/BarChartV2/types.d.ts +9 -0
  104. package/dist/shared-logic/src/BubbleChart/attributesSchema.d.ts +3 -0
  105. package/dist/shared-logic/src/BubbleChart/constants.d.ts +3 -0
  106. package/dist/shared-logic/src/{LineChartV2 → BubbleChart}/getScaleAndTicks.d.ts +2 -1
  107. package/dist/shared-logic/src/BubbleChart/index.d.ts +4 -0
  108. package/dist/shared-logic/src/BubbleChart/setAttributes.d.ts +4 -0
  109. package/dist/shared-logic/src/BubbleChart/types.d.ts +79 -0
  110. package/dist/shared-logic/src/BubbleChartV2/attributesSchema.d.ts +3 -0
  111. package/dist/shared-logic/src/BubbleChartV2/buildBubbleChartRepresentation.d.ts +40 -0
  112. package/dist/shared-logic/src/BubbleChartV2/buildTrendAndForecast.d.ts +25 -0
  113. package/dist/shared-logic/src/BubbleChartV2/constants.d.ts +3 -0
  114. package/dist/shared-logic/src/BubbleChartV2/getConditionalFormatting.d.ts +7 -0
  115. package/dist/shared-logic/src/BubbleChartV2/getGoalLines.d.ts +8 -0
  116. package/dist/shared-logic/src/BubbleChartV2/getMinAndMax.d.ts +15 -0
  117. package/dist/shared-logic/src/BubbleChartV2/getScaleAndTicks.d.ts +42 -0
  118. package/dist/shared-logic/src/BubbleChartV2/getStyleDefinition.d.ts +8 -0
  119. package/dist/shared-logic/src/BubbleChartV2/getTrendsAndForecastsData.d.ts +41 -0
  120. package/dist/shared-logic/src/BubbleChartV2/index.d.ts +4 -0
  121. package/dist/shared-logic/src/BubbleChartV2/setAttributes.d.ts +4 -0
  122. package/dist/shared-logic/src/BubbleChartV2/types.d.ts +79 -0
  123. package/dist/shared-logic/src/ChartsV2/adjustTicks.d.ts +9 -0
  124. package/dist/shared-logic/src/ChartsV2/buildFieldFormatMaps.d.ts +12 -0
  125. package/dist/shared-logic/src/ChartsV2/fillMissingKeysForChartData.d.ts +4 -0
  126. package/dist/shared-logic/src/ChartsV2/formattingFunctionAxis.d.ts +2 -0
  127. package/dist/shared-logic/src/ChartsV2/getConditionalFormatting.d.ts +7 -0
  128. package/dist/shared-logic/src/ChartsV2/getGoalLines.d.ts +8 -0
  129. package/dist/shared-logic/src/ChartsV2/getStackedMinAndMax.d.ts +16 -0
  130. package/dist/shared-logic/src/ChartsV2/getStackedScaleAndTicks.d.ts +43 -0
  131. package/dist/shared-logic/src/ChartsV2/getStyleDefinition.d.ts +9 -0
  132. package/dist/shared-logic/src/{LineChartV2 → ChartsV2}/getTrendsAndForecastsData.d.ts +1 -1
  133. package/dist/shared-logic/src/ChartsV2/getXKeyField.d.ts +3 -0
  134. package/dist/shared-logic/src/ChartsV2/types.d.ts +95 -0
  135. package/dist/shared-logic/src/ComboChart/upcast.d.ts +1 -2
  136. package/dist/shared-logic/src/ComboChartV2/adjustColors.d.ts +1 -0
  137. package/dist/shared-logic/src/ComboChartV2/attributesSchema.d.ts +3 -0
  138. package/dist/shared-logic/src/ComboChartV2/buildComboChartRepresentation.d.ts +53 -0
  139. package/dist/shared-logic/src/ComboChartV2/constants.d.ts +3 -0
  140. package/dist/shared-logic/src/ComboChartV2/index.d.ts +4 -0
  141. package/dist/shared-logic/src/ComboChartV2/setAttributes.d.ts +4 -0
  142. package/dist/shared-logic/src/ComboChartV2/types.d.ts +21 -0
  143. package/dist/shared-logic/src/Component/setAttributes.d.ts +1 -1
  144. package/dist/shared-logic/src/Component/sharedSchemas.d.ts +1 -0
  145. package/dist/shared-logic/src/Component/types.d.ts +149 -5
  146. package/dist/shared-logic/src/Component/usedFields.d.ts +5 -1
  147. package/dist/shared-logic/src/ComponentInterface/types/namespaces.types.d.ts +12 -3
  148. package/dist/shared-logic/src/ComponentInterface/types.d.ts +2 -1
  149. package/dist/shared-logic/src/ConditionalFormatting/utils.d.ts +7 -0
  150. package/dist/shared-logic/src/CustomField/CustomField.d.ts +1 -1
  151. package/dist/shared-logic/src/CustomField/CustomMetric/__mocks__/mockDataSet.d.ts +2 -0
  152. package/dist/shared-logic/src/CustomField/CustomMetric/build.d.ts +3 -7
  153. package/dist/shared-logic/src/CustomField/CustomMetric/index.d.ts +3 -10
  154. package/dist/shared-logic/src/CustomField/CustomMetric/init.d.ts +4 -0
  155. package/dist/shared-logic/src/CustomField/CustomMetric/types.d.ts +21 -15
  156. package/dist/shared-logic/src/CustomField/CustomMetric/validate.d.ts +2 -0
  157. package/dist/shared-logic/src/CustomField/index.d.ts +1 -0
  158. package/dist/shared-logic/src/CustomField/metricValuesHaveAggregates.d.ts +2 -0
  159. package/dist/shared-logic/src/CustomField/types.d.ts +30 -26
  160. package/dist/shared-logic/src/CustomView/types.d.ts +2 -5
  161. package/dist/shared-logic/src/Dashboard/Dashboard.d.ts +2 -0
  162. package/dist/shared-logic/src/Dashboard/fromRaw.d.ts +1 -0
  163. package/dist/shared-logic/src/Dashboard/types.d.ts +1 -0
  164. package/dist/shared-logic/src/DataPanelConfig/types.d.ts +1 -1
  165. package/dist/shared-logic/src/DataSet/DataSet.d.ts +2 -4
  166. package/dist/shared-logic/src/DataSet/fieldFilterOptions.d.ts +2 -0
  167. package/dist/shared-logic/src/DataTable/resultToPivotTableRepresentation.d.ts +3 -4
  168. package/dist/shared-logic/src/Dimension/Dimension.d.ts +1 -0
  169. package/dist/shared-logic/src/Display/Display.d.ts +1 -0
  170. package/dist/shared-logic/src/Drilldown/Drilldown.d.ts +6 -5
  171. package/dist/shared-logic/src/FeatureToggle/types.d.ts +2 -4
  172. package/dist/shared-logic/src/Field/Field.d.ts +3 -13
  173. package/dist/shared-logic/src/FormatPanelConfig/types.d.ts +2 -1
  174. package/dist/shared-logic/src/Headline/headline.utils.d.ts +0 -1
  175. package/dist/shared-logic/src/LineChartV2/buildLineChartRepresentation.d.ts +3 -2
  176. package/dist/shared-logic/src/LineChartV2/types.d.ts +7 -74
  177. package/dist/shared-logic/src/PivotConfig/types.d.ts +1 -0
  178. package/dist/shared-logic/src/Query/Query.d.ts +1 -15
  179. package/dist/shared-logic/src/RadarChart/adjustTicks.d.ts +3 -0
  180. package/dist/shared-logic/src/RadarChart/attributesSchema.d.ts +3 -0
  181. package/dist/shared-logic/src/RadarChart/buildRadarChartRepresentation.d.ts +34 -0
  182. package/dist/shared-logic/src/RadarChart/constants.d.ts +3 -0
  183. package/dist/shared-logic/src/RadarChart/getMinAndMax.d.ts +13 -0
  184. package/dist/shared-logic/src/RadarChart/getScaleAndTicks.d.ts +37 -0
  185. package/dist/shared-logic/src/RadarChart/index.d.ts +4 -0
  186. package/dist/shared-logic/src/RadarChart/setAttributes.d.ts +4 -0
  187. package/dist/shared-logic/src/RadarChart/types.d.ts +46 -0
  188. package/dist/shared-logic/src/Result/Result.d.ts +0 -3
  189. package/dist/shared-logic/src/Result/formatResult.d.ts +3 -3
  190. package/dist/shared-logic/src/Result/formattedResultToSeries.d.ts +3 -2
  191. package/dist/shared-logic/src/Result/types.d.ts +6 -8
  192. package/dist/shared-logic/src/SunburstChart/attributesSchema.d.ts +3 -0
  193. package/dist/shared-logic/src/SunburstChart/constants.d.ts +3 -0
  194. package/dist/shared-logic/src/SunburstChart/index.d.ts +4 -0
  195. package/dist/shared-logic/src/ValueAlias/ValueAlias.d.ts +3 -2
  196. package/dist/shared-logic/src/WaterfallChart/adjustTicks.d.ts +3 -0
  197. package/dist/shared-logic/src/WaterfallChart/attributesSchema.d.ts +3 -0
  198. package/dist/shared-logic/src/WaterfallChart/buildWaterfallChartRepresentation.d.ts +34 -0
  199. package/dist/shared-logic/src/WaterfallChart/constants.d.ts +3 -0
  200. package/dist/shared-logic/src/WaterfallChart/getNiceInterval.d.ts +1 -0
  201. package/dist/shared-logic/src/WaterfallChart/getRepresentationData.d.ts +19 -0
  202. package/dist/shared-logic/src/WaterfallChart/getYTicks.d.ts +8 -0
  203. package/dist/shared-logic/src/WaterfallChart/index.d.ts +4 -0
  204. package/dist/shared-logic/src/WaterfallChart/setAttributes.d.ts +4 -0
  205. package/dist/shared-logic/src/WaterfallChart/types.d.ts +71 -0
  206. package/dist/shared-logic/src/api/queryEngine/getRunQueriesCallback.d.ts +1 -1
  207. package/dist/shared-logic/src/getComponentInterface.d.ts +8 -0
  208. package/dist/shared-ui/src/api/useQueryEffect.d.ts +1 -1
  209. package/dist/shared-ui/src/base/ListView/ListItem.d.ts +0 -1
  210. package/dist/shared-ui/src/base/ListView/index.d.ts +1 -1
  211. package/dist/shared-ui/src/base/Select/Control.d.ts +0 -1
  212. package/dist/shared-ui/src/base/Select/Wrapper.d.ts +0 -1
  213. package/dist/shared-ui/src/components/AreaChartV2/AreaChartV2.d.ts +3 -0
  214. package/dist/shared-ui/src/components/AreaChartV2/AreaChartV2View.d.ts +17 -0
  215. package/dist/shared-ui/src/components/AreaChartV2/index.d.ts +2 -0
  216. package/dist/shared-ui/src/components/BarChartV2/BarChartV2.d.ts +3 -0
  217. package/dist/shared-ui/src/components/BarChartV2/BarChartV2View.d.ts +23 -0
  218. package/dist/shared-ui/src/components/BarChartV2/index.d.ts +2 -0
  219. package/dist/shared-ui/src/components/BubbleChart/BubbleChart.d.ts +3 -0
  220. package/dist/shared-ui/src/components/BubbleChart/BubbleChartView.d.ts +16 -0
  221. package/dist/shared-ui/src/components/BubbleChart/index.d.ts +2 -0
  222. package/dist/shared-ui/src/components/BubbleChartV2/BubbleChartV2.d.ts +3 -0
  223. package/dist/shared-ui/src/components/BubbleChartV2/BubbleChartV2View.d.ts +17 -0
  224. package/dist/shared-ui/src/components/BubbleChartV2/index.d.ts +2 -0
  225. package/dist/shared-ui/src/components/ChartHelper.d.ts +1 -0
  226. package/dist/shared-ui/src/components/ComboChartV2/ComboChartV2.d.ts +3 -0
  227. package/dist/shared-ui/src/components/ComboChartV2/ComboChartViewV2.d.ts +32 -0
  228. package/dist/shared-ui/src/components/Component/types.d.ts +14 -0
  229. package/dist/shared-ui/src/components/Component.d.ts +1 -1
  230. package/dist/shared-ui/src/components/CustomMetric/CustomMetricAggregate.d.ts +12 -0
  231. package/dist/shared-ui/src/components/CustomMetric/MetricOverview.d.ts +2 -0
  232. package/dist/shared-ui/src/components/CustomMetric/buildAggregateItems.d.ts +3 -0
  233. package/dist/shared-ui/src/components/CustomMetric/buildCustomMetric.d.ts +12 -8
  234. package/dist/shared-ui/src/components/CustomMetric/buildFieldsAndAggregates.d.ts +9 -0
  235. package/dist/shared-ui/src/components/CustomMetric/buildLogicItems.d.ts +2 -0
  236. package/dist/shared-ui/src/components/CustomMetric/buildOperatorItems.d.ts +2 -0
  237. package/dist/shared-ui/src/components/CustomMetric/formatFormula.d.ts +2 -1
  238. package/dist/shared-ui/src/components/CustomMetric/init.d.ts +7 -5
  239. package/dist/shared-ui/src/components/CustomMetric/items.d.ts +6 -45
  240. package/dist/shared-ui/src/components/DataTable/buildConditionalFormattingBoundaries.d.ts +1 -0
  241. package/dist/shared-ui/src/components/DataTable/buildTableRepresentation.d.ts +5 -5
  242. package/dist/shared-ui/src/components/DataTable/resizing.d.ts +1 -3
  243. package/dist/shared-ui/src/components/DragAndDrop/DndWrapper.d.ts +0 -11
  244. package/dist/shared-ui/src/components/DragAndDrop/WidthChangingDnd.d.ts +0 -2
  245. package/dist/shared-ui/src/components/Drilldown/useDrilldownSelection.d.ts +4 -3
  246. package/dist/shared-ui/src/components/HeadlineStats/HeadlineStats.d.ts +2 -2
  247. package/dist/shared-ui/src/components/Icons/ComponentIcons.d.ts +4 -0
  248. package/dist/shared-ui/src/components/ItemPicker/ItemPicker.d.ts +4 -1
  249. package/dist/shared-ui/src/components/LineChart/LineChartView.d.ts +1 -1
  250. package/dist/shared-ui/src/components/MercatorMap/View.d.ts +1 -1
  251. package/dist/shared-ui/src/components/Parameters/useParameters.d.ts +1 -1
  252. package/dist/shared-ui/src/components/RadarChart/RadarChart.d.ts +3 -0
  253. package/dist/shared-ui/src/components/RadarChart/RadarChartView.d.ts +9 -0
  254. package/dist/shared-ui/src/components/RadarChart/index.d.ts +2 -0
  255. package/dist/shared-ui/src/components/Studio/StudioApp/Cell.d.ts +1 -0
  256. package/dist/shared-ui/src/components/Studio/StudioApp/DragHandle.d.ts +1 -10
  257. package/dist/shared-ui/src/components/Studio/StudioApp/insertRowAbove.funcs.d.ts +2 -2
  258. package/dist/shared-ui/src/components/SunburstChart/Partition.d.ts +13 -0
  259. package/dist/shared-ui/src/components/SunburstChart/SunburstChart.d.ts +3 -0
  260. package/dist/shared-ui/src/components/SunburstChart/SunburstChartView.d.ts +14 -0
  261. package/dist/shared-ui/src/components/SunburstChart/convertDataToSunburstData.d.ts +11 -0
  262. package/dist/shared-ui/src/components/SunburstChart/index.d.ts +2 -0
  263. package/dist/shared-ui/src/components/WaterfallChart/WaterfallChart.d.ts +3 -0
  264. package/dist/shared-ui/src/components/WaterfallChart/WaterfallChartView.d.ts +6 -0
  265. package/dist/shared-ui/src/components/WaterfallChart/index.d.ts +2 -0
  266. package/dist/shared-ui/src/contexts/DashboardBehaviour/context.d.ts +0 -1
  267. package/dist/shared-ui/src/contexts/DashboardBehaviour/types.d.ts +0 -4
  268. package/dist/shared-ui/src/contexts/DashboardContext/types.d.ts +3 -4
  269. package/dist/shared-ui/src/contexts/ThemeProvider/default.theme.d.ts +1 -0
  270. package/dist/shared-ui/src/hooks/useDraggable.d.ts +17 -0
  271. package/dist/shared-ui/src/hooks/useMoveComponentDrag.d.ts +11 -0
  272. package/dist/shared-ui/src/hooks/useResizableRow.d.ts +30 -0
  273. package/dist/shared-ui/src/hooks/useSubscription.d.ts +1 -1
  274. package/dist/shared-ui/src/library/ConditionalFormatting.d.ts +2 -8
  275. package/dist/shared-ui/src/library/DataPanel/CustomFieldInput/CustomMetric/useCustomMetric.d.ts +1 -1
  276. package/dist/shared-ui/src/library/DataPanel/CustomMetricsInput.d.ts +1 -1
  277. package/dist/shared-ui/src/library/DataPanel/FieldCollectorInput.d.ts +7 -7
  278. package/dist/shared-ui/src/library/DataPanel/MeasuresInput.d.ts +2 -1
  279. package/dist/shared-ui/src/library/ResizableRowCell.d.ts +1 -0
  280. package/dist/shared-ui/src/library/StylePanel/WaterfallColorsSection.d.ts +7 -0
  281. package/dist/shared-ui/src/library/effectHooks/useCheckIfPageClosing.d.ts +2 -0
  282. package/package.json +22 -12
  283. package/dist/charts/src/v2/components/LineChart/buildMargin.d.ts +0 -9
  284. package/dist/shared-logic/src/CustomField/CustomMetric/mockDataSet.d.ts +0 -2
  285. package/dist/shared-logic/src/Headline/index.d.ts +0 -5
  286. package/dist/shared-logic/src/LineChartV2/adjustTicks.d.ts +0 -3
  287. package/dist/shared-logic/src/Query/validate.d.ts +0 -13
  288. package/dist/shared-logic/src/Result/ValidationLogic.d.ts +0 -7
  289. package/dist/shared-ui/src/base/Dragging/DragLayer.d.ts +0 -12
  290. package/dist/shared-ui/src/base/Dragging/DropArea.d.ts +0 -9
  291. package/dist/shared-ui/src/base/Dragging/index.d.ts +0 -3
  292. package/dist/shared-ui/src/base/Dragging/useDropZone.d.ts +0 -6
  293. package/dist/shared-ui/src/base/ListView/useReOrderDrag.d.ts +0 -7
  294. /package/dist/shared-logic/src/{LineChartV2 → BubbleChart}/getAxisFormattingFunction.d.ts +0 -0
  295. /package/dist/shared-logic/src/{LineChartV2 → BubbleChart}/getConditionalFormatting.d.ts +0 -0
  296. /package/dist/shared-logic/src/{LineChartV2 → BubbleChart}/getGoalLines.d.ts +0 -0
  297. /package/dist/shared-logic/src/{LineChartV2 → BubbleChart}/getMinAndMax.d.ts +0 -0
  298. /package/dist/shared-logic/src/{LineChartV2 → BubbleChart}/getStyleDefinition.d.ts +0 -0
  299. /package/dist/shared-logic/src/{LineChartV2 → ChartsV2}/buildTrendAndForecast.d.ts +0 -0
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { BubbleChartProps } from './types';
3
+ import { FormatterProps } from '../types';
4
+ import { ChartRef } from '../utils/chartRendering';
5
+ export declare const BubbleChart: React.ForwardRefExoticComponent<Pick<BubbleChartProps, "height" | "width" | "horizontal" | "x" | "approxXAxisLabelCount" | "approxYAxisLabelCount" | "legend" | "axisTitles" | "lineCurve" | "trends" | "data" | "z" | "onClick" | "theme" | "colors" | "keys" | "goalLine" | "idPrefix" | "uniqueId" | "forceXAxisAsTime" | "annotate" | "formatSeriesName" | "sparkline" | "threshold" | "removeStroke" | "formatXAxisLabel" | "formatYAxisLabel" | "popOverMenuStyles" | "datumFormatter" | "lineStyle"> & FormatterProps & React.RefAttributes<ChartRef>>;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { Props } from '../XYChart/types';
3
+ export declare const VizzlyBubbleChart: (props: Props) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './BubbleChart';
@@ -0,0 +1,32 @@
1
+ import { ChartData, ChartProps, ColorFormatterByDatum, ColorFormatterByKey } from '../types';
2
+ import { GenerateAnnotationType } from '../XYChart/logic/annotations';
3
+ import { AxisTitles, Datum, GoalLine, ThresholdType, Props as VizzlyXYChartProps } from '../XYChart';
4
+ export interface BubbleChartProps extends ChartProps {
5
+ uniqueId: string;
6
+ x: string;
7
+ z: string;
8
+ keys: string[];
9
+ colors: string[];
10
+ data: Array<ChartData>;
11
+ sparkline?: boolean;
12
+ forceXAxisAsTime?: VizzlyXYChartProps['forceXAxisAsTime'];
13
+ annotate?: Array<GenerateAnnotationType>;
14
+ lineCurve?: VizzlyXYChartProps['lineCurve'];
15
+ formatSeriesName: VizzlyXYChartProps['formatSeriesName'];
16
+ formatter: ColorFormatterByKey;
17
+ datumFormatter?: ColorFormatterByDatum;
18
+ onClick?: (value: Datum | undefined) => void;
19
+ goalLine?: GoalLine[];
20
+ axisTitles?: AxisTitles;
21
+ threshold?: Array<ThresholdType>;
22
+ idPrefix: VizzlyXYChartProps['idPrefix'];
23
+ trends?: {
24
+ data: Array<ChartData>;
25
+ keys: string[];
26
+ colors?: string[];
27
+ opacity?: number[];
28
+ strokeWidth?: number[];
29
+ strokeDasharray?: string | number[];
30
+ };
31
+ lineStyle?: 'dotted';
32
+ }
@@ -1 +1 @@
1
- export declare type ChartType = 'bar' | 'area' | 'lines' | 'scatter' | 'pie' | 'trend';
1
+ export declare type ChartType = 'bar' | 'area' | 'lines' | 'scatter' | 'pie' | 'trend' | 'bubble';
@@ -12,6 +12,8 @@ export declare type BarStyleOverrides = {
12
12
  export interface Props extends ChartProps, FormatterProps {
13
13
  uniqueId: string;
14
14
  x: string;
15
+ z?: string;
16
+ isBubble?: boolean;
15
17
  sharedTooltip?: boolean;
16
18
  yAxisOrientation?: 'left' | 'right';
17
19
  sparkline?: boolean;
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ import { ChartTheme } from '../../../types';
3
+ import { AreaChartRepresentation, CurveTypes } from '../../../../../shared-logic/src/AreaChartV2/types';
4
+ export declare type AreaChartProps = {
5
+ uniqueId: string;
6
+ width: number;
7
+ height: number;
8
+ chart: AreaChartRepresentation;
9
+ theme?: ChartTheme;
10
+ options: {
11
+ stacked: boolean;
12
+ curve: CurveTypes;
13
+ showRoundedTotal: boolean;
14
+ showLegend: boolean;
15
+ removeStroke: boolean;
16
+ axis: {
17
+ showXAxisLabels: boolean;
18
+ showYAxisLabels: boolean;
19
+ };
20
+ };
21
+ };
22
+ export declare const AreaChart: ({ chart, options, theme, width, height, uniqueId }: AreaChartProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const AREA_GRADIENT_ID_PREFIX = "area-gradient";
@@ -0,0 +1 @@
1
+ export { AreaChart } from './AreaChart';
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ import { BaseXAxis } from '../../../../../shared-logic/src/ChartsV2/types';
3
+ import { Margin } from '../../utils/buildMargin';
4
+ import { ChartThemeCSS } from '../../utils/getChartThemeCSS';
5
+ import { DataType } from '../../../../../shared-logic/src/Field/types';
6
+ import { ScaleBand, ScaleLinear, ScaleTime, ScalePoint } from '@visx/vendor/d3-scale';
7
+ export declare type AxisBottomProps = {
8
+ x: BaseXAxis;
9
+ margin: Margin;
10
+ baselineShift?: number;
11
+ themeCSS: ChartThemeCSS;
12
+ show?: boolean;
13
+ removeStroke?: boolean;
14
+ xScaleDataType?: DataType;
15
+ xScale: ScaleBand<string> | ScaleBand<Date> | ScaleBand<number> | ScaleLinear<number, number, never> | ScalePoint<string> | ScaleTime<number, number, never> | null;
16
+ height: number;
17
+ };
18
+ export declare function AxisBottom({ x, margin, themeCSS, show, removeStroke, xScaleDataType, xScale, height, baselineShift }: AxisBottomProps): JSX.Element | null;
@@ -0,0 +1,15 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { Margin } from '../../utils/buildMargin';
3
+ import { BaseYAxis } from '../../../../../shared-logic/src/ChartsV2/types';
4
+ import { ScaleLinear } from '@visx/vendor/d3-scale';
5
+ import { ChartThemeCSS } from '../../utils/getChartThemeCSS';
6
+ import { ComboYAxis } from '../../../../../shared-logic/src/ComboChartV2/types';
7
+ export declare const AxisLeft: FunctionComponent<{
8
+ show: boolean;
9
+ y: BaseYAxis | ComboYAxis;
10
+ margin: Margin;
11
+ stroke?: string;
12
+ yScale: ScaleLinear<number, number, never>;
13
+ ticks: number[];
14
+ themeCSS: ChartThemeCSS;
15
+ }>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const AXIS_TITLE_STYLES: React.CSSProperties;
@@ -0,0 +1,24 @@
1
+ /// <reference types="react" />
2
+ import { BarChartRepresentation } from '../../../../../shared-logic/src/BarChartV2/types';
3
+ import { ChartTheme } from '../../../types';
4
+ import { ChartOnViewClick } from '../../../../../shared-logic/src/ChartsV2/types';
5
+ export declare type BarChartProps = {
6
+ width: number;
7
+ height: number;
8
+ theme?: ChartTheme;
9
+ chart: BarChartRepresentation;
10
+ options: {
11
+ stacked: boolean;
12
+ showRoundedTotal: boolean;
13
+ showLegend: boolean;
14
+ removeStroke: boolean;
15
+ axis: {
16
+ showXAxisLabels: boolean;
17
+ showYAxisLabels: boolean;
18
+ };
19
+ };
20
+ onClick: (params: ChartOnViewClick) => void;
21
+ enableHover?: boolean;
22
+ numberOfDimensions: number;
23
+ };
24
+ export declare const BarChart: ({ chart, width, height, options, theme, onClick, enableHover, numberOfDimensions }: BarChartProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export { BarChart } from './BarChart';
@@ -0,0 +1,2 @@
1
+ import { Datum } from '../../../../../shared-logic/src/DatumKey';
2
+ export declare function useBarXScale(xScaleDataType: string, innerWidth: number, xScaleKey: string | null, data: Datum[]): import("@visx/vendor/d3-scale").ScaleBand<number> | import("@visx/vendor/d3-scale").ScaleBand<string> | import("@visx/vendor/d3-scale").ScaleBand<Date> | null;
@@ -0,0 +1,35 @@
1
+ /// <reference types="react" />
2
+ import { ChartTheme } from '../../../types';
3
+ import { BubbleChartRepresentation } from '../../../../../shared-logic/src/BubbleChart/types';
4
+ import { DataType } from '../../../../../shared-logic/src/Field/types';
5
+ import { ConditionalFormattingRule } from '../../../../../shared-logic/src/ChartsV2/types';
6
+ import { ScaleLinear, ScalePoint, ScaleTime } from '@visx/vendor/d3-scale';
7
+ export declare type BubbleChartProps = {
8
+ width: number;
9
+ height: number;
10
+ chart: BubbleChartRepresentation;
11
+ theme?: ChartTheme;
12
+ options: {
13
+ showRoundedTotal: boolean;
14
+ showLegend: boolean;
15
+ removeStroke: boolean;
16
+ axis: {
17
+ showXAxisLabels: boolean;
18
+ showYAxisLabels: boolean;
19
+ };
20
+ };
21
+ };
22
+ export declare const BubbleChart: ({ chart, options, theme, width, height }: BubbleChartProps) => JSX.Element;
23
+ export declare function Bubbles({ yKeys, data, xScaleKey, xScale, yScale, chart, }: {
24
+ yKeys: string[];
25
+ conditionalFormattingRules: ConditionalFormattingRule[];
26
+ data: Array<{
27
+ [x: string]: string | number;
28
+ }>;
29
+ visibleYKeys: string[];
30
+ xScaleKey: string;
31
+ xScaleDataType: DataType;
32
+ xScale: ScalePoint<string> | ScaleTime<number, number, never> | ScaleLinear<number, number, never>;
33
+ yScale: ScaleLinear<number, number, never>;
34
+ chart: BubbleChartRepresentation;
35
+ }): JSX.Element;
@@ -0,0 +1 @@
1
+ export { BubbleChart } from './BubbleChart';
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export declare const ChartWrapper: (props: {
3
+ children: React.ReactNode;
4
+ width: number;
5
+ height: number;
6
+ showLegend: boolean;
7
+ onMouseMove?: React.MouseEventHandler<SVGSVGElement>;
8
+ onMouseLeave?: React.MouseEventHandler<SVGSVGElement>;
9
+ }) => JSX.Element;
@@ -0,0 +1,21 @@
1
+ /// <reference types="react" />
2
+ import { ChartTheme } from '../../../types';
3
+ import { ComboChartRepresentation } from '../../../../../shared-logic/src/ComboChartV2/types';
4
+ export declare type ComboChartProps = {
5
+ width: number;
6
+ height: number;
7
+ theme?: ChartTheme;
8
+ chart: ComboChartRepresentation;
9
+ options: {
10
+ stacked: boolean;
11
+ showRoundedTotal: boolean;
12
+ showLegend: boolean;
13
+ removeStroke: boolean;
14
+ axis: {
15
+ showXAxisLabels: boolean;
16
+ showYAxisLabels: boolean;
17
+ };
18
+ };
19
+ enableHover?: boolean;
20
+ };
21
+ export declare const ComboChart: ({ chart, width, height, options, theme }: ComboChartProps) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { GoalLine as GoalLineType } from '../../../../../shared-logic/src/LineChartV2/types';
2
+ import { GoalLine as GoalLineType } from '../../../../../shared-logic/src/ChartsV2/types';
3
3
  interface GoalLineProps {
4
4
  goalLine: GoalLineType;
5
5
  innerWidth: number;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { GoalLine as GoalLineType } from '../../../../../shared-logic/src/ChartsV2/types';
3
+ import { Margin } from '../../utils/buildMargin';
4
+ export declare const shouldUpdate: (previousProps: any, nextProps: any) => boolean;
5
+ declare const _default: import("react").NamedExoticComponent<{
6
+ goalLines: GoalLineType[];
7
+ y: (value: number) => number;
8
+ margin: Margin;
9
+ width: number;
10
+ }>;
11
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { ScaleLinear } from '@visx/vendor/d3-scale';
3
+ export declare const GridRows: FunctionComponent<{
4
+ ticks: number[];
5
+ yScale: ScaleLinear<number, number, never>;
6
+ removeStroke?: boolean;
7
+ width: number;
8
+ height: number;
9
+ themeCSS: any;
10
+ }>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const GRID_STYLES: React.CSSProperties;
@@ -1,14 +1,21 @@
1
1
  import React from 'react';
2
- import { ConditionalFormattingRule, LegendItem as LegendItemType, Key } from '../../../../../shared-logic/src/LineChartV2/types';
3
- interface LegendProps {
4
- setVisibleYKeys: React.Dispatch<React.SetStateAction<Array<string>>>;
2
+ import { ShapeDefinition, ConditionalFormattingRule, Key } from '../../../../../shared-logic/src/ChartsV2/types';
3
+ import { BarStyles } from '../../../../../shared-logic/src/BarChartV2/types';
4
+ import { LineStyles } from '../../../../../shared-logic/src/LineChartV2/types';
5
+ import { AreaStyles } from '../../../../../shared-logic/src/AreaChartV2/types';
6
+ import { BubbleStyles } from '../../../../../shared-logic/src/BubbleChartV2/types';
7
+ declare type Item<T> = {
8
+ legendItems: Array<ShapeDefinition<T>>;
5
9
  visibleYKeys: Array<string>;
10
+ conditionalFormattingRules: Array<ConditionalFormattingRule>;
11
+ };
12
+ export declare type LegendProps<T> = {
13
+ setVisibleYKeys?: React.Dispatch<React.SetStateAction<Array<string>>>;
6
14
  keys: {
7
15
  [key: string]: Key;
8
16
  };
9
- legendItems: Array<LegendItemType>;
10
- conditionalFormattingRules: Array<ConditionalFormattingRule>;
11
17
  marginLeft: number;
12
- }
13
- export declare const Legend: ({ keys, visibleYKeys, legendItems, setVisibleYKeys, conditionalFormattingRules, marginLeft, }: LegendProps) => JSX.Element;
18
+ items: Item<T>[];
19
+ };
20
+ export declare const Legend: ({ keys, setVisibleYKeys, marginLeft, items, }: LegendProps<BarStyles | LineStyles | AreaStyles | BubbleStyles>) => JSX.Element;
14
21
  export {};
@@ -1,11 +1,14 @@
1
1
  /// <reference types="react" />
2
- import { ConditionalFormattingRule } from '../../../../../../shared-logic/src/LineChartV2/types';
3
- import { LegendItem as LegendItemType } from '../../../../../../shared-logic/src/LineChartV2/types';
4
- interface LegendItemProps extends LegendItemType {
2
+ import { ShapeDefinition, ConditionalFormattingRule } from '../../../../../../shared-logic/src/ChartsV2/types';
3
+ import { LineStyles } from '../../../../../../shared-logic/src/LineChartV2/types';
4
+ import { BarStyles } from '../../../../../../shared-logic/src/BarChartV2/types';
5
+ import { AreaStyles } from '../../../../../../shared-logic/src/AreaChartV2/types';
6
+ import { BubbleStyles } from '../../../../../../shared-logic/src/BubbleChartV2/types';
7
+ interface LegendItemProps<T> extends ShapeDefinition<T> {
5
8
  onClick: () => void;
6
9
  visible: boolean;
7
10
  yKeyFormatted: string | undefined;
8
11
  conditionalFormattingRules: Array<ConditionalFormattingRule>;
9
12
  }
10
- export declare const LegendItem: ({ yKey, yKeyFormatted, color, style, onClick, visible, conditionalFormattingRules, }: LegendItemProps) => JSX.Element;
13
+ export declare const LegendItem: ({ yKey, yKeyFormatted, color, style, onClick, visible, conditionalFormattingRules, }: LegendItemProps<BarStyles | LineStyles | AreaStyles | BubbleStyles>) => JSX.Element;
11
14
  export {};
@@ -1,3 +1,10 @@
1
1
  /// <reference types="react" />
2
- import { LegendItem } from '../../../../../../shared-logic/src/LineChartV2/types';
3
- export declare const LegendItemBox: ({ color, style }: LegendItem) => JSX.Element;
2
+ import { ShapeDefinition } from '../../../../../../shared-logic/src/ChartsV2/types';
3
+ import { LineStyles } from '../../../../../../shared-logic/src/LineChartV2/types';
4
+ export declare const LegendItemBox: ({ color, style }: ShapeDefinition<LineStyles>) => JSX.Element;
5
+ export declare const LegendItemSquare: ({ color }: {
6
+ color: string;
7
+ }) => JSX.Element;
8
+ export declare const LegendItemTriangle: ({ color }: {
9
+ color: string;
10
+ }) => JSX.Element;
@@ -1,6 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import { ChartTheme } from '../../../types';
3
- import { LineChartRepresentation } from '../../../../../shared-logic/src/LineChartV2/types';
3
+ import { LineChartRepresentation, LineStyles } from '../../../../../shared-logic/src/LineChartV2/types';
4
+ import { DataType } from '../../../../../shared-logic/src/Field/types';
5
+ import { ChartDataDefinition, ConditionalFormattingRule, ShapeDefinition } from '../../../../../shared-logic/src/ChartsV2/types';
6
+ import { ScaleLinear, ScaleTime, ScalePoint } from '@visx/vendor/d3-scale';
4
7
  export declare type LineChartProps = {
5
8
  width: number;
6
9
  height: number;
@@ -18,3 +21,15 @@ export declare type LineChartProps = {
18
21
  };
19
22
  };
20
23
  export declare const LineChart: ({ chart, options, theme, width, height }: LineChartProps) => JSX.Element;
24
+ export declare function Lines({ yKeys, visibleYKeys, data, xScaleKey, xScaleDataType, xScale, yScale, lines, curve, conditionalFormattingRules, }: {
25
+ yKeys: string[];
26
+ lines: ShapeDefinition<LineStyles>[];
27
+ conditionalFormattingRules: ConditionalFormattingRule[];
28
+ curve: any;
29
+ data: ChartDataDefinition[];
30
+ visibleYKeys: string[];
31
+ xScaleKey: string;
32
+ xScaleDataType: DataType;
33
+ xScale: ScalePoint<string> | ScaleTime<number, number, never> | ScaleLinear<number, number, never>;
34
+ yScale: ScaleLinear<number, number, never>;
35
+ }): JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { RadarShapeProps } from './types';
3
+ export declare const Grid: ({ chart, radius, themeCSS }: RadarShapeProps) => JSX.Element;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { RadarShapeProps } from './types';
3
+ interface IMiddleLine extends RadarShapeProps {
4
+ show: boolean;
5
+ }
6
+ export declare const MiddleLine: ({ chart, radius, themeCSS, show }: IMiddleLine) => JSX.Element;
7
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { PolygonProps } from './types';
3
+ export declare const Polygons: ({ chart, radius, visibleYKeys }: PolygonProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { RadarChartProps } from './types';
3
+ export declare const RadarChart: ({ chart, width, height, options, theme }: RadarChartProps) => JSX.Element | null;
@@ -0,0 +1 @@
1
+ export { RadarChart } from './RadarChart';
@@ -0,0 +1,33 @@
1
+ import { RadarChartOptions, RadarChartRepresentation } from '../../../../../shared-logic/src/RadarChart/types';
2
+ import { ChartTheme } from '../../../types';
3
+ import { ChartThemeCSS } from '../../utils/getChartThemeCSS';
4
+ declare type SinglePolygonPoints = {
5
+ points: {
6
+ x: number;
7
+ y: number;
8
+ }[];
9
+ pointString: string;
10
+ };
11
+ export declare type SinglePolygonProps = {
12
+ polygonPoints: SinglePolygonPoints;
13
+ colors: string;
14
+ isVisible: boolean;
15
+ };
16
+ export declare type PolygonProps = {
17
+ chart: RadarChartRepresentation;
18
+ radius: number;
19
+ visibleYKeys: string[];
20
+ };
21
+ export declare type RadarShapeProps = {
22
+ chart: RadarChartRepresentation;
23
+ radius: number;
24
+ themeCSS: ChartThemeCSS;
25
+ };
26
+ export declare type RadarChartProps = {
27
+ width: number;
28
+ height: number;
29
+ theme?: ChartTheme;
30
+ chart: RadarChartRepresentation;
31
+ options: RadarChartOptions;
32
+ };
33
+ export {};
@@ -0,0 +1,14 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { ConditionalFormattingRule } from '../../../../../shared-logic/src/ChartsV2/types';
3
+ import { ChartThresholdTheme } from '../../../types';
4
+ import { Margin } from '../../utils/buildMargin';
5
+ export declare const ThresholdArea: FunctionComponent<{
6
+ rules: ConditionalFormattingRule[];
7
+ height: number;
8
+ width: number;
9
+ margin: Margin;
10
+ idPrefix: string;
11
+ theme?: ChartThresholdTheme;
12
+ uniqueId: string;
13
+ yScale: (value: number) => number;
14
+ }>;
@@ -0,0 +1,4 @@
1
+ import { ConditionalFormattingRule } from '../../../../../shared-logic/src/ChartsV2/types';
2
+ export declare const thresholdId: (args: ConditionalFormattingRule, idPrefix: string, position: 'above' | 'below' | 'intermediate', uniqueId: string) => string;
3
+ export declare function buildClipPathId(rule: ConditionalFormattingRule, idPrefix: string, uniqueId: string): string;
4
+ export declare function getRule(rules: ConditionalFormattingRule[], yKey: string): ConditionalFormattingRule[];
@@ -0,0 +1,21 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { Margin } from '../../utils/buildMargin';
3
+ import { DataItem, ShapeDefinition } from '../../../../../shared-logic/src/ChartsV2/types';
4
+ import { DataType } from '../../../../../shared-logic/src/Field/types';
5
+ import { AreaStyles } from '../../../../../shared-logic/src/AreaChartV2/types';
6
+ import { BubbleStyles } from '../../../../../shared-logic/src/BubbleChartV2/types';
7
+ import { LineStyles } from '../../../../../shared-logic/src/LineChartV2/types';
8
+ export declare const CrosshairCircle: FunctionComponent<{
9
+ dataType: DataType;
10
+ yKeys: string[];
11
+ tooltipData: {
12
+ [keyId: string]: DataItem;
13
+ };
14
+ xKey: string | null;
15
+ margin: Margin;
16
+ legendItems: ShapeDefinition<AreaStyles | LineStyles | BubbleStyles>[];
17
+ conditionalFormattingRules: any;
18
+ visibleYKeys: string[];
19
+ yScale: (yKey: string) => number;
20
+ xScale: (value: string | number | Date) => number | undefined;
21
+ }>;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { Margin } from '../../utils/buildMargin';
3
+ export declare const Line: ({ margin, x, height }: {
4
+ margin: Margin;
5
+ x: number;
6
+ height: number;
7
+ }) => JSX.Element;
@@ -1,21 +1,27 @@
1
- import { CSSProperties } from 'react';
2
- import { ConditionalFormattingRule, DataItem, Key, LegendItem } from '../../../../../shared-logic/src/LineChartV2/types';
3
- interface TooltipProps {
1
+ import React, { CSSProperties } from 'react';
2
+ import { ShapeDefinition, ConditionalFormattingRule, DataItem, Key } from '../../../../../shared-logic/src/ChartsV2/types';
3
+ import { LineStyles } from '../../../../../shared-logic/src/LineChartV2/types';
4
+ import { BarStyles } from '../../../../../shared-logic/src/BarChartV2/types';
5
+ import { AreaStyles } from '../../../../../shared-logic/src/AreaChartV2/types';
6
+ import { BubbleStyles } from '../../../../../shared-logic/src/BubbleChartV2/types';
7
+ interface TooltipProps<T> {
4
8
  keys: {
5
9
  [key: string]: Key;
6
10
  };
7
- legendItems: Array<LegendItem>;
8
11
  showRoundedTotal: boolean;
9
12
  tooltipData: {
10
13
  [keyId: string]: DataItem;
11
14
  };
12
15
  tooltipLeft: number;
13
16
  tooltipTop: number;
14
- visibleYKeys: string[];
15
17
  xKey: string;
16
- yKeys: string[];
17
- conditionalFormattingRules: Array<ConditionalFormattingRule>;
18
+ yKeys?: string[];
19
+ items: {
20
+ legendItems: Array<ShapeDefinition<T>>;
21
+ conditionalFormattingRules: Array<ConditionalFormattingRule>;
22
+ visibleYKeys: string[];
23
+ }[];
18
24
  theme: CSSProperties;
19
25
  }
20
- export declare const Tooltip: ({ keys, legendItems, showRoundedTotal, tooltipData, tooltipLeft, tooltipTop, visibleYKeys, xKey, yKeys, conditionalFormattingRules, theme, }: TooltipProps) => JSX.Element;
26
+ export declare const Tooltip: ({ keys, showRoundedTotal, tooltipData, tooltipLeft, tooltipTop, xKey, yKeys, theme, items, }: TooltipProps<LineStyles | BarStyles | AreaStyles | BubbleStyles>) => React.ReactPortal;
21
27
  export {};
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ export declare type LegendProps = {
3
+ showLegend: boolean;
4
+ margin: {
5
+ top: number;
6
+ right: number;
7
+ bottom: number;
8
+ left: number;
9
+ leftTitleOffset: number;
10
+ bottomTitleOffset: number;
11
+ };
12
+ increaseColor: string;
13
+ decreaseColor: string;
14
+ };
15
+ export declare const Legend: ({ showLegend, margin, increaseColor, decreaseColor }: LegendProps) => JSX.Element | null;
@@ -0,0 +1,14 @@
1
+ import { CSSProperties } from 'react';
2
+ import { DataItem } from '../../../../../shared-logic/src/WaterfallChart/types';
3
+ export declare type TooltipProps = {
4
+ showTooltip: boolean;
5
+ tooltipData: {
6
+ [keyId: string]: DataItem;
7
+ } | null | undefined;
8
+ tooltipLeft: number;
9
+ tooltipTop: number;
10
+ xKey: string;
11
+ yKey: string;
12
+ theme: CSSProperties;
13
+ };
14
+ export declare const Tooltip: ({ showTooltip, tooltipData, tooltipLeft, tooltipTop, xKey, yKey, theme, }: TooltipProps) => JSX.Element | null;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { ChartTheme } from '../../../types';
3
+ import { Step, WaterfallChartOptions, WaterfallChartRepresentation } from '../../../../../shared-logic/src/WaterfallChart/types';
4
+ export declare type WaterfallChartProps = {
5
+ width: number;
6
+ height: number;
7
+ chart: WaterfallChartRepresentation;
8
+ steps: Step[];
9
+ options: WaterfallChartOptions;
10
+ theme?: ChartTheme;
11
+ increaseColor: string;
12
+ decreaseColor: string;
13
+ };
14
+ export declare const WaterfallChart: ({ height, width, options, chart, steps, theme, increaseColor, decreaseColor, }: WaterfallChartProps) => JSX.Element | null;
@@ -0,0 +1,2 @@
1
+ export { WaterfallChart } from "./WaterfallChart";
2
+ export type { WaterfallChartProps } from "./WaterfallChart";
@@ -0,0 +1,10 @@
1
+ export declare type UseBottomAxisBaseLineShiftProps = {
2
+ showDetailedSubGroupingLabels: boolean;
3
+ hasBottomTitle: boolean;
4
+ hasLeftTitle: boolean;
5
+ };
6
+ export declare const useBottomAxisBaseLineShift: ({ showDetailedSubGroupingLabels, hasBottomTitle, hasLeftTitle, }: UseBottomAxisBaseLineShiftProps) => {
7
+ bottomAxisBaselineShift: number;
8
+ bottomOffset: number;
9
+ leftOffset: number;
10
+ };
@@ -0,0 +1,4 @@
1
+ import { DataType } from '../../../../../shared-logic/src/Field/types';
2
+ export declare function useFlattenedData<Y>(xScaleKey: string | null, xScaleDataType: DataType, data: {
3
+ [keyId: string]: any;
4
+ }[], yKeys: string[]): Y[];
@@ -0,0 +1,16 @@
1
+ export declare type UseTooltipParams<TooltipData> = {
2
+ tooltipOpen: boolean;
3
+ tooltipLeft?: number;
4
+ tooltipTop?: number;
5
+ lineLeft?: number;
6
+ tooltipData?: TooltipData;
7
+ updateTooltip: (args: UpdateTooltipArgs<TooltipData>) => void;
8
+ showTooltip: (args: ShowTooltipArgs<TooltipData>) => void;
9
+ hideTooltip: () => void;
10
+ };
11
+ declare type UseTooltipState<TooltipData> = Pick<UseTooltipParams<TooltipData>, 'tooltipOpen' | 'tooltipLeft' | 'tooltipTop' | 'lineLeft' | 'tooltipData'>;
12
+ declare type ValueOrFunc<T> = T | ((t: T) => T);
13
+ declare type ShowTooltipArgs<TooltipData> = ValueOrFunc<Omit<UseTooltipState<TooltipData>, 'tooltipOpen'>>;
14
+ declare type UpdateTooltipArgs<TooltipData> = ValueOrFunc<UseTooltipState<TooltipData>>;
15
+ export default function useTooltip<TooltipData = {}>(initialTooltipState?: Partial<UseTooltipParams<TooltipData>>): UseTooltipParams<TooltipData>;
16
+ export {};
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { ShapeDefinition } from '../../../../../shared-logic/src/ChartsV2/types';
3
+ export declare function useVisibleYKeys<T>(areas: ShapeDefinition<T>[]): {
4
+ visibleYKeys: string[];
5
+ setVisibleYKeys: import("react").Dispatch<import("react").SetStateAction<string[]>>;
6
+ };
@@ -0,0 +1,2 @@
1
+ import { Scale } from '../../../../../shared-logic/src/ChartsV2/types';
2
+ export declare function useYScale<T>(innerHeight: number, scale: Scale<T>): import("@visx/vendor/d3-scale").ScaleLinear<number, number, never>;
@@ -0,0 +1 @@
1
+ export declare const BAR_RADIUS = 2;