@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,53 @@
1
+ import { BarChartRepresentation } from '../BarChartV2/types';
2
+ import { LineChartRepresentation } from '../LineChartV2/types';
3
+ import { Result as ResultType } from '../../../shared-logic/src/Result/types';
4
+ export declare function buildComboChartRepresentation(xKeyField: ResultType.Field | undefined, barChartRepresentation: BarChartRepresentation, lineChartRepresentation: LineChartRepresentation): {
5
+ x: {
6
+ scale: {
7
+ min: number;
8
+ max: number;
9
+ dataType: import("../Field/types").DataType;
10
+ key: string | null;
11
+ ordering: "asc" | "desc" | null;
12
+ } | {
13
+ min: null;
14
+ max: null;
15
+ dataType: import("../Field/types").DataType;
16
+ key: string | null;
17
+ ordering: "asc" | "desc" | null;
18
+ };
19
+ ticks: import("../ChartsV2/types").Tick<string | number | Date>[];
20
+ postfix: string;
21
+ prefix: string;
22
+ title: string | null;
23
+ key: string;
24
+ };
25
+ keys: {};
26
+ y: {
27
+ scale: {
28
+ max: number;
29
+ min: number;
30
+ dataType: import("../Field/types").DataType;
31
+ key: string | null;
32
+ ordering: "asc" | "desc" | null;
33
+ };
34
+ ticks: import("../ChartsV2/types").Tick<number>[];
35
+ barKeys: string[];
36
+ lineKeys: string[];
37
+ postfix: string;
38
+ prefix: string;
39
+ title: string | null;
40
+ keys: string[];
41
+ };
42
+ lines: {
43
+ definitions: import("../ChartsV2/types").ShapeDefinition<import("../LineChartV2/types").LineStyles>[];
44
+ data: import("../ChartsV2/types").Datum[];
45
+ conditionalFormattingRules: import("../ChartsV2/types").ConditionalFormattingRule[];
46
+ };
47
+ bars: {
48
+ definitions: import("../ChartsV2/types").ShapeDefinition<import("../BarChartV2/types").BarStyles>[];
49
+ data: import("../ChartsV2/types").Datum[];
50
+ conditionalFormattingRules: import("../ChartsV2/types").ConditionalFormattingRule[];
51
+ };
52
+ goalLines: import("../ChartsV2/types").GoalLine[];
53
+ };
@@ -0,0 +1,3 @@
1
+ import { ViewConstants } from '../ComponentInterface/types/namespaces.types';
2
+ declare const CONSTANTS: ViewConstants;
3
+ export default CONSTANTS;
@@ -0,0 +1,4 @@
1
+ import { Component } from '../Component/types';
2
+ import { LoadComponentInterface } from '../ComponentInterface/types';
3
+ declare const ComboChartV2: LoadComponentInterface<Component.ComboChartV2Attributes, Component.ComboChartV2Attributes>;
4
+ export default ComboChartV2;
@@ -0,0 +1,4 @@
1
+ import { Component } from '../Component/types';
2
+ import { ComponentInterfaceConfig } from '../ComponentInterface/types';
3
+ declare const _default: (config: ComponentInterfaceConfig) => (chart: Component.ComboChartV2Attributes, partial: Partial<Component.ComboChartV2Attributes>) => Component.ComboChartV2Attributes;
4
+ export default _default;
@@ -0,0 +1,21 @@
1
+ import { BarStyles } from '../BarChartV2/types';
2
+ import { ShapeDefinition, ConditionalFormattingRule, GoalLine, BaseChartRepresentation, KeyId, Axis, Datum } from '../ChartsV2/types';
3
+ import { LineStyles } from '../LineChartV2/types';
4
+ export declare type ComboYAxis = Axis<number, {
5
+ lineKeys: KeyId[];
6
+ barKeys: KeyId[];
7
+ }>;
8
+ export interface ComboChartRepresentation extends Omit<BaseChartRepresentation, 'y' | 'data'> {
9
+ goalLines: GoalLine[];
10
+ bars: {
11
+ definitions: ShapeDefinition<BarStyles>[];
12
+ data: Datum[];
13
+ conditionalFormattingRules: ConditionalFormattingRule[];
14
+ };
15
+ lines: {
16
+ definitions: ShapeDefinition<LineStyles>[];
17
+ data: Datum[];
18
+ conditionalFormattingRules: ConditionalFormattingRule[];
19
+ };
20
+ y: ComboYAxis;
21
+ }
@@ -7,5 +7,5 @@ export declare const removeUnusedOrderFieldsFromTimeSeriesComponent: <T extends
7
7
  timeDimension?: QueryAttributes.TimeDimension | null | undefined;
8
8
  dimension: Array<QueryAttributes.Dimension>;
9
9
  }>(attributes: T) => T;
10
- declare const setAttributes: <Attributes extends Component.Attributes>(attributes: Partial<Component.AreaChartAttributes> | Partial<Component.BarChartAttributes> | Partial<Component.BasicTableAttributes> | Partial<Component.ComboChartAttributes> | Partial<Component.CustomViewAttributes> | Partial<Component.DataTableAttributes> | Partial<Component.FunnelChartAttributes> | Partial<Component.HorizontalBarChartAttributes> | Partial<Component.LineChartAttributes> | Partial<Component.LineChartV2Attributes> | Partial<Component.MercatorMapAttributes> | Partial<Component.PieChartAttributes> | Partial<Component.ProgressAttributes> | Partial<Component.RichTextAttributes> | Partial<Component.ScatterChartAttributes> | Partial<Component.SingleStatAttributes>, partialAttributes: Partial<Component.AreaChartAttributes> | Partial<Component.BarChartAttributes> | Partial<Component.BasicTableAttributes> | Partial<Component.ComboChartAttributes> | Partial<Component.CustomViewAttributes> | Partial<Component.DataTableAttributes> | Partial<Component.FunnelChartAttributes> | Partial<Component.HorizontalBarChartAttributes> | Partial<Component.LineChartAttributes> | Partial<Component.LineChartV2Attributes> | Partial<Component.MercatorMapAttributes> | Partial<Component.PieChartAttributes> | Partial<Component.ProgressAttributes> | Partial<Component.RichTextAttributes> | Partial<Component.ScatterChartAttributes> | Partial<Component.SingleStatAttributes>, schema: Joi.ObjectSchema<any>) => Attributes;
10
+ declare const setAttributes: <Attributes extends Component.Attributes>(attributes: Partial<Component.AreaChartAttributes> | Partial<Component.BarChartAttributes> | Partial<Component.BasicTableAttributes> | Partial<Component.BubbleChartAttributes> | Partial<Component.BubbleChartV2Attributes> | Partial<Component.ComboChartAttributes> | Partial<Component.CustomViewAttributes> | Partial<Component.DataTableAttributes> | Partial<Component.FunnelChartAttributes> | Partial<Component.HorizontalBarChartAttributes> | Partial<Component.LineChartAttributes> | Partial<Component.LineChartV2Attributes> | Partial<Component.BarChartV2Attributes> | Partial<Component.AreaChartV2Attributes> | Partial<Component.MercatorMapAttributes> | Partial<Component.PieChartAttributes> | Partial<Component.SunburstChartAttributes> | Partial<Component.ProgressAttributes> | Partial<Component.RichTextAttributes> | Partial<Component.ScatterChartAttributes> | Partial<Component.SingleStatAttributes> | Partial<Component.WaterfallChartAttributes> | Partial<Component.RadarChartAttributes> | Partial<Component.ComboChartV2Attributes>, partialAttributes: Partial<Component.AreaChartAttributes> | Partial<Component.BarChartAttributes> | Partial<Component.BasicTableAttributes> | Partial<Component.BubbleChartAttributes> | Partial<Component.BubbleChartV2Attributes> | Partial<Component.ComboChartAttributes> | Partial<Component.CustomViewAttributes> | Partial<Component.DataTableAttributes> | Partial<Component.FunnelChartAttributes> | Partial<Component.HorizontalBarChartAttributes> | Partial<Component.LineChartAttributes> | Partial<Component.LineChartV2Attributes> | Partial<Component.BarChartV2Attributes> | Partial<Component.AreaChartV2Attributes> | Partial<Component.MercatorMapAttributes> | Partial<Component.PieChartAttributes> | Partial<Component.SunburstChartAttributes> | Partial<Component.ProgressAttributes> | Partial<Component.RichTextAttributes> | Partial<Component.ScatterChartAttributes> | Partial<Component.SingleStatAttributes> | Partial<Component.WaterfallChartAttributes> | Partial<Component.RadarChartAttributes> | Partial<Component.ComboChartV2Attributes>, schema: Joi.ObjectSchema<any>) => Attributes;
11
11
  export default setAttributes;
@@ -45,6 +45,7 @@ export declare const timeDimensionQuerySchema: (queryEngineConfig: QueryEngineCo
45
45
  offset: Joi.NumberSchema<number>;
46
46
  };
47
47
  export declare const lineCurveSchema: Joi.StringSchema<string>;
48
+ export declare const areaCurveSchema: Joi.StringSchema<string>;
48
49
  export declare const protectedFieldsMeasure: (queryEngineConfig: QueryEngineConfig) => Joi.ArraySchema<any[]>;
49
50
  export declare const protectedFieldsDimension: (queryEngineConfig: QueryEngineConfig) => Joi.ArraySchema<any[]>;
50
51
  export declare const parametersSchema: (queryEngineConfig: QueryEngineConfig, attributeSchemaOptions: ComponentInterfaceConfig['attributesSchemaOptions']) => Joi.ObjectSchema<any>;
@@ -11,10 +11,11 @@ import { DataSet } from '../DataSet/types';
11
11
  export declare type getNumberFormatter = (formatterId: string | undefined | null) => (number: number) => string;
12
12
  export declare type FormatType = string | null;
13
13
  export declare type ApproxAxisLabelCount = 'auto' | number;
14
- export declare type ComponentType = 'areaChart' | 'barChart' | 'basicTable' | 'comboChart' | 'custom' | 'dataTable' | 'funnelChart' | 'horizontalBarChart' | 'lineChart' | 'lineChartV2' | 'mercatorMap' | 'pieChart' | 'progress' | 'richText' | 'scatterChart' | 'singleStat';
14
+ export declare type ComponentType = 'areaChart' | 'areaChartV2' | 'barChart' | 'barChartV2' | 'basicTable' | 'bubbleChart' | 'bubbleChartV2' | 'comboChart' | 'comboChartV2' | 'custom' | 'dataTable' | 'funnelChart' | 'horizontalBarChart' | 'lineChart' | 'lineChartV2' | 'mercatorMap' | 'pieChart' | 'progress' | 'radarChart' | 'richText' | 'scatterChart' | 'singleStat' | 'sunburstChart' | 'waterfallChart';
15
15
  export declare const componentTypes: string[];
16
16
  export declare namespace Component {
17
17
  export type LineCurve = 'natural' | 'straight' | 'step' | 'stepBefore' | 'stepAfter' | 'dotted';
18
+ export type AreaCurve = 'natural' | 'straight' | 'step';
18
19
  export type RawComponent = Omit<Component, 'queries' | 'results' | 'span'> & {
19
20
  colSpan?: number;
20
21
  };
@@ -145,6 +146,29 @@ export declare namespace Component {
145
146
  };
146
147
  axisTitles?: AxisTitles;
147
148
  };
149
+ export type ComboChartV2Attributes = BaseAttributes & Omit<BaseQueryAttributes, 'measure' | 'dimension'> & {
150
+ type: 'comboChartV2';
151
+ barMeasure: QueryAttributes.Measure[];
152
+ lineMeasure: QueryAttributes.Measure[];
153
+ barDimension: QueryAttributes.Dimension[];
154
+ lineDimension: QueryAttributes.Dimension[];
155
+ stacked?: false;
156
+ xAxisPrefix: string;
157
+ yAxisPrefix: string;
158
+ xAxisPostfix: string;
159
+ yAxisPostfix: string;
160
+ xAxisFormat: FormatType;
161
+ yAxisFormat: FormatType;
162
+ approxXAxisLabelCount: ApproxAxisLabelCount;
163
+ approxYAxisLabelCount: ApproxAxisLabelCount;
164
+ legend: boolean;
165
+ goalLines?: Array<Component.GoalLine.Rule>;
166
+ conditionalFormattingRules?: {
167
+ bar?: Array<ConditionalFormatting.Rule>;
168
+ line?: Array<ConditionalFormatting.Rule>;
169
+ };
170
+ axisTitles?: AxisTitles;
171
+ };
148
172
  export type LineChartAttributes = BaseAttributes & BaseQueryAttributes & {
149
173
  type: 'lineChart';
150
174
  stacked?: boolean | '100%';
@@ -187,6 +211,47 @@ export declare namespace Component {
187
211
  headline?: Headline;
188
212
  trends?: Array<Trends>;
189
213
  };
214
+ export type AreaChartV2Attributes = BaseAttributes & BaseQueryAttributes & {
215
+ type: 'areaChartV2';
216
+ stacked: boolean;
217
+ xAxisPrefix: string;
218
+ yAxisPrefix: string;
219
+ xAxisPostfix: string;
220
+ yAxisPostfix: string;
221
+ xAxisFormat: FormatType;
222
+ yAxisFormat: FormatType;
223
+ approxXAxisLabelCount: ApproxAxisLabelCount;
224
+ approxYAxisLabelCount: ApproxAxisLabelCount;
225
+ conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
226
+ drilldown: QueryAttributes.Dimension[];
227
+ legend: boolean;
228
+ parameters?: Parameters;
229
+ goalLines?: Array<Component.GoalLine.Rule>;
230
+ axisTitles?: AxisTitles;
231
+ headline?: Headline;
232
+ trends?: Array<Trends>;
233
+ lineCurve: AreaCurve;
234
+ };
235
+ export type BarChartV2Attributes = BaseAttributes & BaseQueryAttributes & {
236
+ type: 'barChartV2';
237
+ stacked?: boolean;
238
+ xAxisPrefix: string;
239
+ yAxisPrefix: string;
240
+ xAxisPostfix: string;
241
+ yAxisPostfix: string;
242
+ xAxisFormat: FormatType;
243
+ yAxisFormat: FormatType;
244
+ approxXAxisLabelCount: ApproxAxisLabelCount;
245
+ approxYAxisLabelCount: ApproxAxisLabelCount;
246
+ conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
247
+ drilldown: QueryAttributes.Dimension[];
248
+ legend: boolean;
249
+ parameters?: Parameters;
250
+ goalLines?: Array<Component.GoalLine.Rule>;
251
+ axisTitles?: AxisTitles;
252
+ headline?: Headline;
253
+ drilldownOptions: Array<DrilldownOptions> | undefined;
254
+ };
190
255
  export type PieChartAttributes = BaseAttributes & BaseQueryAttributes & {
191
256
  type: 'pieChart';
192
257
  conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
@@ -197,6 +262,15 @@ export declare namespace Component {
197
262
  parameters?: Parameters;
198
263
  drilldownOptions: Array<DrilldownOptions> | undefined;
199
264
  };
265
+ export type SunburstChartAttributes = BaseAttributes & BaseQueryAttributes & {
266
+ type: 'sunburstChart';
267
+ conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
268
+ labelsAsPercentage: boolean;
269
+ legend: boolean;
270
+ labels?: boolean;
271
+ labelFormat: FormatType;
272
+ parameters?: Parameters;
273
+ };
200
274
  export type AreaChartAttributes = BaseAttributes & BaseQueryAttributes & {
201
275
  type: 'areaChart';
202
276
  stacked?: boolean | '100%';
@@ -332,8 +406,77 @@ export declare namespace Component {
332
406
  goalLines?: Array<Component.GoalLine.Rule>;
333
407
  axisTitles?: AxisTitles;
334
408
  };
335
- export type ViewType = 'areaChart' | 'barChart' | 'basicTable' | 'comboChart' | 'custom' | 'dataTable' | 'funnelChart' | 'horizontalBarChart' | 'lineChart' | 'lineChartV2' | 'mercatorMap' | 'pieChart' | 'progress' | 'richText' | 'scatterChart' | 'singleStat';
336
- export type Attributes = AreaChartAttributes | BarChartAttributes | BasicTableAttributes | ComboChartAttributes | CustomViewAttributes | DataTableAttributes | FunnelChartAttributes | HorizontalBarChartAttributes | LineChartAttributes | LineChartV2Attributes | MercatorMapAttributes | PieChartAttributes | ProgressAttributes | RichTextAttributes | ScatterChartAttributes | SingleStatAttributes;
409
+ export type BubbleChartAttributes = BaseAttributes & Omit<BaseQueryAttributes, 'measure'> & {
410
+ type: 'bubbleChart';
411
+ xMeasure: QueryAttributes.Measure | null;
412
+ yMeasure: QueryAttributes.Measure | null;
413
+ zMeasure?: QueryAttributes.Measure | null;
414
+ legend: boolean;
415
+ xAxisPrefix: string;
416
+ yAxisPrefix: string;
417
+ xAxisPostfix: string;
418
+ yAxisPostfix: string;
419
+ xAxisFormat: FormatType;
420
+ yAxisFormat: FormatType;
421
+ approxXAxisLabelCount: ApproxAxisLabelCount;
422
+ approxYAxisLabelCount: ApproxAxisLabelCount;
423
+ goalLines?: Array<Component.GoalLine.Rule>;
424
+ axisTitles?: AxisTitles;
425
+ };
426
+ export type BubbleChartV2Attributes = BaseAttributes & BaseQueryAttributes & {
427
+ type: 'bubbleChartV2';
428
+ stacked?: boolean | '100%';
429
+ zMeasure: QueryAttributes.Measure[];
430
+ xMeasure: QueryAttributes.Measure[];
431
+ xAxisPrefix: string;
432
+ yAxisPrefix: string;
433
+ xAxisPostfix: string;
434
+ yAxisPostfix: string;
435
+ lineCurve: LineCurve;
436
+ xAxisFormat: FormatType;
437
+ yAxisFormat: FormatType;
438
+ approxXAxisLabelCount: ApproxAxisLabelCount;
439
+ approxYAxisLabelCount: ApproxAxisLabelCount;
440
+ conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
441
+ drilldown: QueryAttributes.Dimension[];
442
+ legend: boolean;
443
+ parameters?: Parameters;
444
+ goalLines?: Array<Component.GoalLine.Rule>;
445
+ axisTitles?: AxisTitles;
446
+ headline?: Headline;
447
+ trends?: Array<Trends>;
448
+ };
449
+ export type RadarChartAttributes = BaseAttributes & BaseQueryAttributes & {
450
+ type: 'radarChart';
451
+ legend: boolean;
452
+ xAxisPrefix: string;
453
+ yAxisPrefix: string;
454
+ xAxisPostfix: string;
455
+ yAxisPostfix: string;
456
+ xAxisFormat: FormatType;
457
+ yAxisFormat: FormatType;
458
+ approxXAxisLabelCount: ApproxAxisLabelCount;
459
+ approxYAxisLabelCount: ApproxAxisLabelCount;
460
+ };
461
+ export type WaterfallChartAttributes = BaseAttributes & BaseQueryAttributes & {
462
+ type: 'waterfallChart';
463
+ xAxisPrefix: string;
464
+ yAxisPrefix: string;
465
+ xAxisPostfix: string;
466
+ yAxisPostfix: string;
467
+ xAxisFormat: FormatType;
468
+ yAxisFormat: FormatType;
469
+ approxXAxisLabelCount: ApproxAxisLabelCount;
470
+ approxYAxisLabelCount: ApproxAxisLabelCount;
471
+ legend: boolean;
472
+ parameters?: Parameters;
473
+ axisTitles?: AxisTitles;
474
+ headline?: Headline;
475
+ increaseColor: string;
476
+ decreaseColor: string;
477
+ };
478
+ export type ViewType = 'areaChart' | 'barChart' | 'basicTable' | 'bubbleChart' | 'bubbleChartV2' | 'comboChart' | 'comboChartV2' | 'custom' | 'dataTable' | 'funnelChart' | 'horizontalBarChart' | 'lineChart' | 'lineChartV2' | 'areaChartV2' | 'barChartV2' | 'mercatorMap' | 'pieChart' | 'sunburstChart' | 'progress' | 'richText' | 'scatterChart' | 'singleStat' | 'waterfallChart' | 'radarChart';
479
+ export type Attributes = AreaChartAttributes | BarChartAttributes | BasicTableAttributes | BubbleChartAttributes | BubbleChartV2Attributes | ComboChartAttributes | CustomViewAttributes | DataTableAttributes | FunnelChartAttributes | HorizontalBarChartAttributes | LineChartAttributes | LineChartV2Attributes | BarChartV2Attributes | AreaChartV2Attributes | MercatorMapAttributes | PieChartAttributes | SunburstChartAttributes | ProgressAttributes | RichTextAttributes | ScatterChartAttributes | SingleStatAttributes | WaterfallChartAttributes | RadarChartAttributes | ComboChartV2Attributes;
337
480
  export interface RenderTableCell {
338
481
  viewId: string;
339
482
  type: 'basicTable' | 'dataTable';
@@ -371,7 +514,7 @@ export declare namespace Component {
371
514
  };
372
515
  }
373
516
  export interface ChartOnViewClick extends BaseOnViewClick {
374
- type: 'barChart' | 'horizontalBarChart' | 'pieChart';
517
+ type: 'barChart' | 'horizontalBarChart' | 'pieChart' | 'sunburstChart';
375
518
  clicked: {
376
519
  grouping?: Array<ReturnedField>;
377
520
  value?: ReturnedField;
@@ -393,8 +536,9 @@ export declare namespace Component {
393
536
  };
394
537
  export type ValueAliasOptions = {
395
538
  fieldId?: string;
396
- value: string | number;
539
+ value: string | number | null;
397
540
  filter?: AdditionalFilter;
541
+ dataSetId?: string;
398
542
  };
399
543
  export type Parameters = {
400
544
  measure?: ParameterMeasure;
@@ -2,5 +2,9 @@ import { QueryAttributes } from '../QueryAttributes/types';
2
2
  import { Component } from './types';
3
3
  export declare const usedMeasures: (attrs: Partial<Component.Attributes | QueryAttributes>) => QueryAttributes['measure'];
4
4
  export declare const usedDimensions: (attrs: Partial<Component.Attributes | QueryAttributes>) => QueryAttributes['dimension'];
5
- declare const usedFields: (attrs: Partial<Component.Attributes | QueryAttributes>) => string[];
5
+ declare const usedFields: (attrs: Partial<Component.Attributes | QueryAttributes>) => Array<{
6
+ dataSetId: string;
7
+ fieldId: string;
8
+ function: string;
9
+ }>;
6
10
  export default usedFields;
@@ -19,6 +19,7 @@ declare type SubSectionDef = {
19
19
  bar?: SubSection<'metrics'>;
20
20
  xAxis?: SubSection<'metrics'>;
21
21
  yAxis?: SubSection<'metrics'>;
22
+ zAxis?: SubSection<'metrics'>;
22
23
  };
23
24
  export declare type Pagination = {
24
25
  options: number[];
@@ -28,6 +29,7 @@ export interface DataPanelNamespaces {
28
29
  views: Section<'views'>;
29
30
  fields?: Section<'fields'>;
30
31
  field_y_axis?: Section<'fieldCollector'>;
32
+ field_z_axis?: Section<'fieldCollector'>;
31
33
  field_rows?: Section<'fieldCollector'>;
32
34
  field_columns?: Section<'fieldCollector'>;
33
35
  field_metrics?: Section<'fieldCollector'>;
@@ -56,13 +58,19 @@ export interface FormatPanelNamespaces {
56
58
  'x.postfix': SubSection<'axisLabels'>;
57
59
  'x.format': SubSection<'axisLabels'>;
58
60
  'x.count': SubSection<'axisLabels'>;
59
- 'x.axis_title': SubSection<'axisLabels'>;
61
+ 'x.axis_title'?: SubSection<'axisLabels'>;
60
62
  y: SubSection<'axisLabels'>;
61
63
  'y.prefix': SubSection<'axisLabels'>;
62
64
  'y.postfix': SubSection<'axisLabels'>;
63
65
  'y.format': SubSection<'axisLabels'>;
64
66
  'y.count': SubSection<'axisLabels'>;
65
- 'y.axis_title': SubSection<'axisLabels'>;
67
+ 'y.axis_title'?: SubSection<'axisLabels'>;
68
+ z?: SubSection<'axisLabels'>;
69
+ 'z.prefix'?: SubSection<'axisLabels'>;
70
+ 'z.postfix'?: SubSection<'axisLabels'>;
71
+ 'z.format'?: SubSection<'axisLabels'>;
72
+ 'z.count'?: SubSection<'axisLabels'>;
73
+ 'z.axis_title'?: SubSection<'axisLabels'>;
66
74
  };
67
75
  };
68
76
  stats_labels?: Section<'statsLabels'> & {
@@ -99,6 +107,7 @@ export interface FormatPanelNamespaces {
99
107
  };
100
108
  goal_line?: Section<'goalLine'>;
101
109
  map_colors?: Section<'mapColors'>;
110
+ waterfall_colors?: Section<'waterfallColors'>;
102
111
  headline?: Section<'headline'>;
103
112
  trends?: Section<'trends'>;
104
113
  prefixes?: Section<'prefixes'>;
@@ -109,5 +118,5 @@ export interface FormatPanelNamespaces {
109
118
  };
110
119
  };
111
120
  }
112
- export declare type ComponentNamespace = 'area_chart' | 'bar_chart' | 'basic_table' | 'combo_chart' | 'custom' | 'fields' | 'funnel_chart' | 'headline' | 'horizontal_bar_chart' | 'line_chart' | 'mercator_map' | 'pie_chart' | 'pivot_table' | 'progress' | 'rich_text' | 'scatter_chart' | 'single_stat';
121
+ export declare type ComponentNamespace = 'area_chart' | 'bar_chart' | 'basic_table' | 'bubble_chart' | 'combo_chart' | 'custom' | 'fields' | 'funnel_chart' | 'headline' | 'horizontal_bar_chart' | 'line_chart' | 'mercator_map' | 'pie_chart' | 'sunburst_chart' | 'pivot_table' | 'progress' | 'rich_text' | 'scatter_chart' | 'single_stat' | 'waterfall_chart' | 'radar_chart';
113
122
  export {};
@@ -34,11 +34,12 @@ export interface ComponentInterface<Hydrated = any, Dumped = any> extends Dumpab
34
34
  roundedNumbers: boolean;
35
35
  dateCalculations: boolean;
36
36
  conditional: boolean;
37
- calculatedField: Array<AcceptedTypes> | false;
37
+ customBuild: Array<AcceptedTypes> | false;
38
38
  };
39
39
  supportedFeatures: {
40
40
  parameters: boolean;
41
41
  colorGradient: boolean;
42
42
  };
43
+ supportedAggregations?: Array<string>;
43
44
  }
44
45
  export declare type LoadComponentInterface<Hydrated, Dumped> = (config: ComponentInterfaceConfig) => ComponentInterface<Hydrated, Dumped>;
@@ -0,0 +1,7 @@
1
+ import { QueryAttributes } from '../QueryAttributes/types';
2
+ export declare type ComparisonFilter = {
3
+ op: QueryAttributes.Operator;
4
+ value: QueryAttributes.Filter['value'];
5
+ };
6
+ export declare const compare: (filter: ComparisonFilter, recordValue: unknown) => any;
7
+ export declare const conditionIsMet: (filter: ComparisonFilter, value: number | string | boolean) => boolean;
@@ -11,7 +11,7 @@ export declare const isAggregateMathField: (field: DataSetType.Field) => field i
11
11
  export declare const isPercentageField: (field: DataSetType.Field) => field is PercentageField;
12
12
  export declare const isRules: (field: DataSetType.Field) => field is RulesField;
13
13
  export declare const isConditional: (field: DataSetType.Field) => field is ConditionalField;
14
- export declare const isMetric: (field: DataSetType.Field) => field is MetricField;
14
+ export declare const isCustomBuildMetric: (field: DataSetType.Field) => field is MetricField;
15
15
  export declare const isDateCalculation: (field: DataSetType.Field) => field is DateCalculationField;
16
16
  export declare const getCustomFieldCategory: (field: CustomField) => CustomFieldCategory;
17
17
  export declare const isCustomField: (field: DataSetType.Field) => field is CustomField;
@@ -0,0 +1,2 @@
1
+ import { DataSet } from '../../../DataSet/types';
2
+ export declare const mockDataSets: DataSet[];
@@ -1,11 +1,7 @@
1
1
  import { DataSet } from '../../DataSet/types';
2
- import { Query, QueryNameSpace } from '../../Query/types';
3
- import * as Filter from '../../Filter';
4
- import * as Types from './types';
2
+ import { Query } from '../../Query/types';
5
3
  import { QueryAttributes } from '../../QueryAttributes/types';
6
4
  import { Params } from '../../../../results-driver/src/types';
7
5
  import { QueryEngineConfig } from '../../QueryEngineConfig/types';
8
- export declare const buildOperator: (operator: Types.Operator, dataSet: DataSet, params: Params, measureAttribute?: QueryAttributes.Measure | undefined) => Query['measure'][number];
9
- export declare const buildIfLogic: (ifLogic: Types.IfLogic, dataSet: DataSet, localAndDashboardFilters: QueryAttributes.Filter[], queryEngineConfig: QueryEngineConfig, params: Params, measureAttribute?: QueryAttributes.Measure | undefined) => QueryNameSpace.FieldDefinition<string, string, string>;
10
- export declare const buildNumber: (numberInput: Types.NumberInput) => QueryNameSpace.FieldDefinition<string, string, string>;
11
- export declare const buildField: (field: Types.Field) => QueryNameSpace.FieldDefinition<string, string, string>;
6
+ import { MetricField } from '../types';
7
+ export declare const build: (measureAttribute: QueryAttributes.Measure, customField: MetricField, dataSet: DataSet, queryEngineConfig: QueryEngineConfig, params: Params) => Query['measure'][number];
@@ -1,10 +1,3 @@
1
- import { DataSet } from '../../DataSet/types';
2
- import { Query } from '../../Query/types';
3
- import * as Types from './types';
4
- import { QueryAttributes } from '../../QueryAttributes/types';
5
- import { Params } from '../../../../results-driver/src/types';
6
- import { QueryEngineConfig } from '../../QueryEngineConfig/types';
7
- import { MetricField } from '../types';
8
- export declare const init: (publicName: string, metric: Types.Metric, queryEngineConfig: QueryEngineConfig) => MetricField;
9
- export declare const build: (measureAttribute: QueryAttributes.Measure, customField: MetricField, dataSet: DataSet, queryEngineConfig: QueryEngineConfig, params: Params) => Query['measure'][number];
10
- export declare const validate: (field: MetricField) => boolean;
1
+ export * from './init';
2
+ export * from './build';
3
+ export * from './validate';
@@ -0,0 +1,4 @@
1
+ import * as Types from './types';
2
+ import { QueryEngineConfig } from '../../QueryEngineConfig/types';
3
+ import { MetricField } from '../types';
4
+ export declare const init: (publicName: string, metric: Types.Metric, queryEngineConfig: QueryEngineConfig) => MetricField;
@@ -4,13 +4,15 @@ export declare enum PropertyType {
4
4
  IfLogic = "ifLogic",
5
5
  NumberInput = "number",
6
6
  Variable = "variable",
7
- Field = "field"
7
+ Field = "field",
8
+ Aggregate = "aggregate"
9
+ }
10
+ export declare enum OperatorType {
11
+ Divide = "/",
12
+ Multiply = "*",
13
+ Subtract = "-",
14
+ Add = "+"
8
15
  }
9
- export declare type Operator = {
10
- type: PropertyType.Operator;
11
- op: OperatorType;
12
- values: Array<Operator | NumberInput | Field | Variable | IfLogic>;
13
- };
14
16
  export declare type NumberInput = {
15
17
  type: PropertyType.NumberInput;
16
18
  value: number | undefined;
@@ -24,18 +26,22 @@ export declare type Field = {
24
26
  fieldId: string;
25
27
  function: string;
26
28
  };
29
+ export declare type Aggregate = {
30
+ type: PropertyType.Aggregate;
31
+ fieldId: string;
32
+ function?: string;
33
+ };
27
34
  export declare type IfLogic = {
28
35
  type: PropertyType.IfLogic;
29
36
  cases: Array<{
30
37
  filter: Array<QueryAttributes.Filter[]>;
31
- returns: Operator | NumberInput | Field | Variable | IfLogic | undefined;
38
+ returns: Operator | NumberInput | Field | Variable | IfLogic | Aggregate | undefined;
32
39
  }>;
33
- else: Operator | NumberInput | Field | Variable | IfLogic | undefined;
40
+ else: Operator | NumberInput | Field | Variable | IfLogic | undefined | Aggregate;
34
41
  };
35
- export declare type Metric = Operator | IfLogic;
36
- export declare enum OperatorType {
37
- Divide = "/",
38
- Multiply = "*",
39
- Subtract = "-",
40
- Add = "+"
41
- }
42
+ export declare type Operator = {
43
+ type: PropertyType.Operator;
44
+ op: OperatorType;
45
+ values: Array<Operator | NumberInput | Field | Variable | IfLogic | Aggregate>;
46
+ };
47
+ export declare type Metric = Operator | IfLogic | Aggregate | NumberInput | Field;
@@ -0,0 +1,2 @@
1
+ import { MetricField } from '../types';
2
+ export declare const validate: (field: MetricField) => boolean;
@@ -6,4 +6,5 @@ export * as Rules from './Rules';
6
6
  export * as RoundedNumber from './RoundedNumber';
7
7
  export * as DateCalculation from './DateCalculation';
8
8
  export * as Conditional from './Conditional';
9
+ export * as CustomMetric from './CustomMetric';
9
10
  export * from './upcast';
@@ -0,0 +1,2 @@
1
+ import { Aggregate, IfLogic, NumberInput, Operator, Field as FieldMetric, Variable } from './CustomMetric/types';
2
+ export declare function metricValuesHaveAggregates(values: (Operator | IfLogic | Aggregate | NumberInput | FieldMetric | Variable)[] | undefined): boolean;
@@ -3,22 +3,15 @@ import { BaseField, DataType, NonDateTimeField } from '../Field/types';
3
3
  import { Rules } from './Rules/types';
4
4
  import { Metric } from './CustomMetric/types';
5
5
  declare type BaseCustomField = Omit<NonDateTimeField, 'dashboardFilterGroups'>;
6
- export declare type PercentageField = BaseCustomField & Percentage;
7
- export declare type RoundedNumberField = BaseCustomField & RoundedNumber;
8
- export declare type DateCalculationField = BaseCustomField & DateCalculation;
9
- export declare type AggregateMathField = BaseCustomField & AggregateMath;
10
- export declare type ConditionalField = BaseCustomField & Conditional;
11
- export declare type MetricField = BaseCustomField & {
12
- metric: Metric;
6
+ declare type SimpleMath = {
7
+ leftFieldId: string;
8
+ operator: MathOperator;
9
+ rightFieldId: string;
13
10
  };
14
- export declare type SimpleMathField = BaseCustomField & SimpleMath & {
15
- dataType: 'number';
11
+ declare type RoundedNumber = {
12
+ roundToDecimalPlaces: 0 | 2;
13
+ fieldId: string;
16
14
  };
17
- export interface RulesField extends BaseField {
18
- rules: Rules[];
19
- dataType: 'string';
20
- }
21
- export declare type CustomField = PercentageField | SimpleMathField | AggregateMathField | RulesField | RoundedNumberField | DateCalculationField | ConditionalField | MetricField;
22
15
  export declare type Conditional = {
23
16
  fieldId: string;
24
17
  function: string;
@@ -55,25 +48,36 @@ export declare type AggregateMath = {
55
48
  /** @deprecated ignore this outside of upcasting */
56
49
  rightAggregate?: string;
57
50
  };
58
- export declare type SimpleMath = {
59
- leftFieldId: string;
60
- operator: MathOperator;
61
- rightFieldId: string;
62
- };
63
- export declare type RoundedNumber = {
64
- roundToDecimalPlaces: 0 | 2;
65
- fieldId: string;
66
- };
67
51
  export declare type DateCalculation = {
68
52
  leftFieldId: string;
69
53
  rightFieldId: string;
70
54
  dateCalculationFunction: 'seconds_between' | 'minutes_between' | 'hours_between' | 'days_between';
71
55
  };
56
+ export declare type PercentageField = BaseCustomField & Percentage;
57
+ export declare type RoundedNumberField = BaseCustomField & RoundedNumber;
58
+ export declare type DateCalculationField = BaseCustomField & DateCalculation;
59
+ export declare type AggregateMathField = BaseCustomField & AggregateMath;
60
+ export declare type ConditionalField = BaseCustomField & Conditional;
61
+ export declare type MetricField = BaseCustomField & {
62
+ metric: Metric;
63
+ };
64
+ export declare type SimpleMathField = BaseCustomField & SimpleMath & {
65
+ dataType: 'number';
66
+ };
67
+ export declare type RulesField = BaseField & {
68
+ rules: Rules[];
69
+ dataType: 'string';
70
+ };
71
+ export declare type CustomBuildMetricField = BaseField & {
72
+ metricAttributes: Metric;
73
+ dataType: 'number';
74
+ };
75
+ export declare type CustomField = PercentageField | SimpleMathField | AggregateMathField | RulesField | RoundedNumberField | DateCalculationField | ConditionalField | MetricField | CustomBuildMetricField;
72
76
  export declare type MathOperator = '*' | '-' | '/' | '+';
73
- export declare type CustomFieldCategory = 'percentage' | 'math' | 'rules' | 'roundedNumber' | 'dateCalculation' | 'conditional' | 'calculatedField';
77
+ export declare type CustomFieldCategory = 'percentage' | 'math' | 'rules' | 'roundedNumber' | 'dateCalculation' | 'conditional' | 'customBuildMetric';
74
78
  export declare enum AcceptedTypes {
75
79
  Maths = "maths",
76
- IfStatement = "ifStatement"
80
+ IfStatement = "ifStatement",
81
+ Aggregates = "aggregates"
77
82
  }
78
- export declare type MaybeOldCustomField = CustomField;
79
83
  export {};
@@ -1,13 +1,10 @@
1
1
  /// <reference types="react" />
2
+ import { FilterConfig } from '../AdditionalFilter/types';
2
3
  import { Component } from '../Component/types';
3
- import { QueryAttributes } from '../QueryAttributes/types';
4
4
  export declare type CustomView = StaticCustomView | SelectableCustomView;
5
- export declare type DataSetDashboardFilters = {
6
- [dataSetId: string]: QueryAttributes.Filter[][];
7
- };
8
5
  export declare type CustomViewCallbackParams = {
9
- dashboardFilters: DataSetDashboardFilters;
10
6
  attributes?: Component.CustomViewAttributes;
7
+ filterConfig: FilterConfig;
11
8
  };
12
9
  export declare type BaseCustomView = {
13
10
  id: string;