@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
@@ -2,6 +2,7 @@ import { Component as ComponentType } from '../Component/types';
2
2
  import { DataSet } from '../DataSet/types';
3
3
  import { CustomField } from '../CustomField/types';
4
4
  import { Dashboard, SaveableDashboardDefinition, ImportableDashboard } from './types';
5
+ import { FieldUsage } from '@vizzly/api-client';
5
6
  export * from './saveableDashboardDefinitionSchema';
6
7
  export * from './fromRaw';
7
8
  export declare const indexOfDataSet: (dashboard: Dashboard, dataSetId: string) => number;
@@ -35,3 +36,4 @@ export declare const VIZZLY_EDITOR_ID = "vizzly_editor";
35
36
  export declare function updateWithProgrammaticDashboard(allDashboards: Dashboard[], programmaticDashboards: Dashboard[]): Dashboard[];
36
37
  export declare const addUniqueLibraryComponents: (programmaticLibrary: ComponentType[], dashboardLibrary: ComponentType[]) => ComponentType[];
37
38
  export declare const checkAndReturnProgrammaticDashboardId: (dashboards: Dashboard[]) => string | undefined;
39
+ export declare const getFieldUsage: (dashboardDefinition: SaveableDashboardDefinition, dataSets: DataSet[]) => FieldUsage;
@@ -7,6 +7,7 @@ export declare type RawDashboard<Definition = RawDefinition> = {
7
7
  id: string;
8
8
  parent_dashboard_id: string;
9
9
  definition: Definition;
10
+ name?: string | null;
10
11
  theme: StoredTheme & {
11
12
  rowLimit?: number;
12
13
  };
@@ -12,6 +12,7 @@ export declare namespace Dashboard {
12
12
  }
13
13
  export declare type Dashboard = {
14
14
  id: string;
15
+ name?: string | null;
15
16
  parentDashboardId: string | null;
16
17
  metadata: Dashboard.ExternalMetadata;
17
18
  /**
@@ -9,7 +9,7 @@ export declare type Section<Type> = ConstSection<Type> & {
9
9
  declare type MetricOptions = {
10
10
  allowsMultiple?: boolean;
11
11
  maximumMetricsAllowed?: number;
12
- propKey?: 'xMeasure' | 'yMeasure' | 'measure' | 'barMeasure' | 'lineMeasure';
12
+ propKey?: 'xMeasure' | 'yMeasure' | 'zMeasure' | 'measure' | 'barMeasure' | 'lineMeasure';
13
13
  filterFieldOptions?: FieldFilterOptions;
14
14
  };
15
15
  export declare type FieldCollectorOptions<Attrs> = {
@@ -1,9 +1,8 @@
1
1
  import { DataSet } from './types';
2
2
  import { CustomField, SimpleMathField } from '../CustomField/types';
3
3
  import { DateTimeField, NonDateTimeField } from '../Field/types';
4
- import { PreAggregatedQuery, Query } from '../Query/types';
4
+ import { PreAggregatedQuery } from '../Query/types';
5
5
  import * as Field from '../Field/Field';
6
- import FieldNotFoundInDataSet from '../errors/FieldNotFoundInDataSet';
7
6
  import { QueryAttributes } from '../QueryAttributes/types';
8
7
  import { QueryEngineConfig } from '../QueryEngineConfig/types';
9
8
  import { ComponentType } from '../Component/types';
@@ -24,13 +23,12 @@ export declare const hasDateTimeFields: (dataSet: DataSet) => boolean;
24
23
  export declare const getPlaceholder: (dataSet: DataSet, field: string | null) => string;
25
24
  export declare const takeFieldsForDimension: (dataSet: DataSet) => DataSet.Field[];
26
25
  export declare const takeFieldsForMeasure: (dataSet: DataSet, componentType: ComponentType) => DataSet.Field[];
27
- export declare const validateQueries: (dataSet: DataSet, queries: Query[]) => undefined | FieldNotFoundInDataSet;
28
26
  /**
29
27
  * Return all custom fields for a data set, and optionally
30
28
  * provide the componentType to ensure the custom fields which are returned
31
29
  * are also supported by the componentType.
32
30
  */
33
- export declare const takeCustomFields: (dataSet: DataSet, componentType?: "progress" | "areaChart" | "barChart" | "basicTable" | "comboChart" | "custom" | "dataTable" | "funnelChart" | "horizontalBarChart" | "lineChart" | "lineChartV2" | "mercatorMap" | "pieChart" | "richText" | "scatterChart" | "singleStat" | undefined) => CustomField[];
31
+ export declare const takeCustomFields: (dataSet: DataSet, componentType?: "progress" | "areaChart" | "areaChartV2" | "barChart" | "barChartV2" | "basicTable" | "bubbleChart" | "bubbleChartV2" | "comboChart" | "comboChartV2" | "custom" | "dataTable" | "funnelChart" | "horizontalBarChart" | "lineChart" | "lineChartV2" | "mercatorMap" | "pieChart" | "radarChart" | "richText" | "scatterChart" | "singleStat" | "sunburstChart" | "waterfallChart" | undefined) => CustomField[];
34
32
  export declare const takeNonCustomFields: (dataSet: DataSet) => Array<NonDateTimeField | DateTimeField | SimpleMathField>;
35
33
  export declare const takeNonPercentageCustomFields: (dataSet: DataSet) => Array<NonDateTimeField | DateTimeField | SimpleMathField>;
36
34
  export declare const removeCustomFields: (dataSet: DataSet) => DataSet;
@@ -8,6 +8,8 @@ export declare type FieldFilterOptions = {
8
8
  removeAggregateMaths?: boolean;
9
9
  removeDateCalculations?: boolean;
10
10
  removeConditional?: boolean;
11
+ removeCustomBuildMetric?: boolean;
12
+ removeAggregateCustomBuildMetric?: boolean;
11
13
  onlyDimensions?: boolean;
12
14
  onlyMeasures?: boolean;
13
15
  forComponent?: ComponentType;
@@ -2,7 +2,6 @@ import { TextOverride } from '../../../shared-logic/src/Translations/types';
2
2
  import { QueryAttributes } from '../QueryAttributes/types';
3
3
  import { Result as ResultType } from '../Result/types';
4
4
  import { TableRepresentation } from './types';
5
- export declare const resultToPivotTableRepresentation: (result: ResultType, dimension: QueryAttributes['dimension'], measure: QueryAttributes['measure'], dataSetId: string, nullValueAlias?: ((params: {
6
- dataSetId: string;
7
- fieldId: string;
8
- }) => string | null | undefined) | undefined, textOverride?: TextOverride | undefined, hiddenFields?: string[] | undefined) => TableRepresentation;
5
+ export declare const resultToPivotTableRepresentation: (result: ResultType, dimension: QueryAttributes['dimension'], measure: QueryAttributes['measure'], dataSetId: string, textOverride?: TextOverride | undefined, hiddenFields?: string[] | undefined, valueAlias?: {
6
+ [id: string]: string | number;
7
+ } | import("../ValueAlias/types").ValueAliasFunction | undefined) => TableRepresentation;
@@ -3,3 +3,4 @@ import { DecodingFunctionsToCheck } from '../Field';
3
3
  export declare const id: (metric: QueryAttributes.Dimension) => string;
4
4
  export declare const isPivot: (dimensions: QueryAttributes.Dimension[], pivot: 'x' | 'y') => boolean;
5
5
  export declare const findDimension: (dimensions: QueryAttributes.Dimension[], fieldId: string, functionsToCheck: DecodingFunctionsToCheck) => QueryAttributes.Dimension;
6
+ export declare const isDateTime: (dimension: QueryAttributes.Dimension) => boolean;
@@ -20,3 +20,4 @@ export declare const listComponentTypesUsed: (display: Display) => ComponentType
20
20
  export declare const isComponentEmpty: (component: Component | EmptyCell | HeaderComponent) => component is EmptyCell;
21
21
  export declare function isDisplayComponentsEmpty(display: Display): boolean;
22
22
  export declare const moveDisplayToNewIndex: (display: DisplayRow[], movingIndex: number, destinationIndex: number) => DisplayRow[];
23
+ export declare const countNonHeaderRows: (display: Display) => number;
@@ -1,20 +1,21 @@
1
+ import { Component } from '../Component/types';
1
2
  import { DataSet } from '../DataSet/types';
3
+ import { Datum, ParsedDatumKey } from '../DatumKey';
4
+ import * as Dimension from '../Dimension';
2
5
  import { QueryAttributes } from '../QueryAttributes/types';
3
6
  import { QueryEngineConfig } from '../QueryEngineConfig/types';
4
- import { Component } from '../Component/types';
5
- import { Datum, ParsedDatumKey } from '../DatumKey';
6
7
  export declare const updateTimeDimension: (dataSet: DataSet, option: QueryAttributes.TimeDimension & {
7
8
  function?: string;
8
9
  }) => QueryAttributes.TimeDimension | null;
9
10
  export declare type DrilldownField = Component.DrilldownOptions & {
10
- value: string;
11
+ value: string | number | Date;
11
12
  };
12
13
  export declare type SelectedDrilldown = {
13
14
  newField: Component.DrilldownOptions;
14
15
  existingField?: DrilldownField;
15
16
  };
16
- export declare const newDimensions: (dataSet: DataSet, existingField: DrilldownField | undefined, option: QueryAttributes.Dimension, dimension: QueryAttributes.Dimension[]) => QueryAttributes.Dimension[];
17
- export declare const updateFilter: (existingFilters: QueryAttributes.Filter[][], data: any[][], existingField: DrilldownField | undefined, timeDimension: QueryAttributes.TimeDimension | null, dimension?: QueryAttributes.Dimension[] | undefined) => QueryAttributes.Filter[][];
17
+ export declare const newDimensions: (dataSet: DataSet, existingField: DrilldownField | undefined, option: QueryAttributes.Dimension, dimension: QueryAttributes.Dimension[], hasDateTimeInDimension?: boolean | undefined) => QueryAttributes.Dimension[];
18
+ export declare const updateFilter: (existingFilters: QueryAttributes.Filter[][], data: any[][], queryEngineConfig: QueryEngineConfig, existingField: DrilldownField | undefined, timeDimension: QueryAttributes.TimeDimension | null, dimension?: QueryAttributes.Dimension[] | undefined) => QueryAttributes.Filter[][];
18
19
  export declare const drilldownDepthReached: (drilldownSelections: SelectedDrilldown[]) => boolean;
19
20
  export declare const updatedOrder: (existingOrder: QueryAttributes.Order[], dataSet: DataSet, existingField: DrilldownField | undefined, option: QueryAttributes.Dimension | QueryAttributes.TimeDimension) => QueryAttributes.Order[];
20
21
  export declare const validDrilldownProperties: (dataSet: DataSet, drilldown: SelectedDrilldown) => boolean;
@@ -1,5 +1,6 @@
1
1
  export declare type FeatureToggles = {
2
2
  showGlobalFilters: boolean;
3
+ hideToolbar: boolean;
3
4
  showResetButton: boolean;
4
5
  parameters: boolean;
5
6
  canManageGlobalFilters: boolean;
@@ -20,14 +21,11 @@ export declare type FeatureToggles = {
20
21
  allowDateCalculationsCustomField: boolean;
21
22
  allowPercentagesCustomField: boolean;
22
23
  allowRulesCustomField: boolean;
23
- allowCalculatedField: boolean;
24
24
  allowConditionalCustomField: boolean;
25
+ allowCustomBuildField: boolean;
25
26
  /** Show/Hide the Date and Time Filter
26
27
  * @default false */
27
28
  showDateAndTimeFilter: boolean;
28
- /** Show/Hide the Simple Multi Select Filter
29
- * @default false */
30
- simpleMultiSelectFilter: boolean;
31
29
  /** Show/Hide the Date Filter
32
30
  * @default true */
33
31
  showDateFilter: boolean;
@@ -97,16 +97,6 @@ export declare const isArrayDataType: (field: {
97
97
  }) => boolean;
98
98
  export declare const supportedTransformationFunctions: (keys?: (string | number)[] | undefined) => SupportedTransformationFunctions;
99
99
  export declare const supportedAggregatesFunction: (queryEngineConfig: QueryEngineConfig, dataType: DataType, supportedAggregateOptions?: string[] | undefined) => SupportedAggregateOption[];
100
- declare type NullValueAlias = (params: {
101
- dataSetId: string;
102
- fieldId: string;
103
- }) => string | null | undefined;
104
- export declare const nullValue: (dataSetId: string, dimensions: QueryAttributes.Dimension[] | null, timeDimension: QueryAttributes.TimeDimension | null, nullValueAlias?: NullValueAlias | undefined, textOverride?: TextOverride | undefined, textOverrideKey?: string | undefined) => string | undefined;
105
- export declare const nullValueWithFieldId: ({ dataSetId, fieldId, nullValueAlias, textOverride, textOverrideKey, }: {
106
- dataSetId: string;
107
- fieldId: string;
108
- nullValueAlias?: NullValueAlias | undefined;
109
- textOverride?: TextOverride | undefined;
110
- textOverrideKey?: string | undefined;
111
- }) => string | undefined;
112
- export {};
100
+ export declare const checkForNullValue: (dataSetId: string, dimensions: QueryAttributes.Dimension[] | null, timeDimension: QueryAttributes.TimeDimension | null, textOverride?: TextOverride | undefined, valueAlias?: {
101
+ [id: string]: string | number;
102
+ } | import("../ValueAlias/types").ValueAliasFunction | undefined, textOverrideKey?: string | undefined) => string | undefined;
@@ -26,6 +26,7 @@ export declare type AxisLabelsSection = Section<'axisLabels'> & {
26
26
  export declare type LabelsSection = Section<'statsLabels'> & LabelSection<'statsLabels'>;
27
27
  export declare type PrefixSection = Section<'prefixes'>;
28
28
  export declare type MapColorsSection = Section<'mapColors'>;
29
+ export declare type WaterfallColorsSection = Section<'waterfallColors'>;
29
30
  export declare type HeadlineSection = Section<'headline'>;
30
31
  export declare type RichTextFormatSection = Section<'richText'>;
31
32
  export interface ConditionalFormattingSection extends Section<'conditionalFormatting'> {
@@ -41,5 +42,5 @@ export interface ProgressTypeSection<T> extends Omit<Section<T>, 'type'> {
41
42
  progressType?: Omit<Section<T>, 'type'>;
42
43
  }
43
44
  export declare type ProgressTypesSection = Section<'progressType'> & ProgressTypeSection<'progressType'>;
44
- export declare type FormatPanelSection = HeadingSection | FormatSection | ChartStylesSection | PrefixSection | AxisLabelsSection | LabelsSection | MapColorsSection | ConditionalFormattingSection | GoalLineSection | ProgressTypesSection | HeadlineSection | RichTextFormatSection | Section<'trends'>;
45
+ export declare type FormatPanelSection = HeadingSection | FormatSection | ChartStylesSection | PrefixSection | AxisLabelsSection | LabelsSection | MapColorsSection | WaterfallColorsSection | ConditionalFormattingSection | GoalLineSection | ProgressTypesSection | HeadlineSection | RichTextFormatSection | Section<'trends'>;
45
46
  export declare type FormatPanelConfig = Array<FormatPanelSection>;
@@ -2,7 +2,6 @@ import { DataSet as DataSetType } from '../DataSet/types';
2
2
  import { QueryAttributes } from '../QueryAttributes/types';
3
3
  import { SupportedAggregates } from '../Aggregate';
4
4
  import { Component, FormatType } from '../Component/types';
5
- export declare function measureIsSuitableFunc(dataSet: DataSetType, item: QueryAttributes.Measure, supportedAggregates: SupportedAggregates, includes?: Component.HeadlineFunction): boolean;
6
5
  export declare function defineMeasuresForSingleStat(measure: QueryAttributes.Measure[], supportedAggregates: SupportedAggregates, dataSet: DataSetType, func?: Component.HeadlineFunction): QueryAttributes.Measure[];
7
6
  export declare function buildSingleStatProperties(measure: QueryAttributes.Measure[], value?: string | FormatType): {
8
7
  [fieldIdAndAggregate: string]: string;
@@ -1,14 +1,15 @@
1
1
  import { CSSProperties } from 'react';
2
- import { DateTimeFormatter, LineChartRepresentation, NumberFormatter } from './types';
2
+ import { LineChartRepresentation } from './types';
3
3
  import { ValueAlias } from '../ValueAlias/types';
4
4
  import { Result } from '../Result/types';
5
5
  import { PivotConfig } from '../PivotConfig/types';
6
6
  import { QueryAttributes } from '../QueryAttributes/types';
7
7
  import { Component, FormatType } from '../Component/types';
8
8
  import { seriesLabelFormatter } from '../Result/formattedResultToSeries';
9
+ import { DateTimeFormatter, NumberFormatter } from '../ChartsV2/types';
9
10
  interface buildLineChartRepresentationArgs {
10
11
  axisTitles?: Component.AxisTitles;
11
- colors?: CSSProperties['color'][];
12
+ colors: CSSProperties['color'][];
12
13
  conditionalFormattingAttributes: Component.ConditionalFormatting.Rule[];
13
14
  dateTimeFormatOptions: {
14
15
  [id: string]: DateTimeFormatter;
@@ -1,78 +1,11 @@
1
- import { DataType } from '../Field/types';
2
- export declare type KeyId = string;
3
- export declare type Operator = string;
4
- export declare type ConditionalFormattingRule = {
5
- operator: Operator;
6
- value: any;
7
- color: string;
8
- yKey: KeyId;
9
- };
10
- export declare type Axis<SupportedVizzlyDataTypes, AxisKeys> = {
11
- ticks: Tick<SupportedVizzlyDataTypes>[];
12
- scale: {
13
- dataType: DataType;
14
- key: KeyId | null;
15
- ordering: 'asc' | 'desc' | null;
16
- min: SupportedVizzlyDataTypes | null;
17
- max: SupportedVizzlyDataTypes | null;
18
- };
19
- postfix: string;
20
- prefix: string;
21
- title: string | null;
22
- } & AxisKeys;
23
- export declare type LegendItemStyleLine = {
24
- type: 'line';
25
- strokeDasharray: string | number | null;
26
- strokeWidth: number;
27
- };
28
- export declare type LegendItem = {
29
- yKey: KeyId;
30
- color: string;
31
- style: LegendItemStyleLine;
32
- };
33
- export declare type Key = {
34
- key: KeyId;
35
- keyFormatted: string;
36
- dataType: DataType;
37
- };
38
- export declare type Tick<DataType> = {
39
- value: DataType;
40
- formattedValue: string | null;
41
- scaleValue: DataType | null;
42
- };
43
- export declare type LineChartRepresentation = {
44
- keys: {
45
- [key: KeyId]: Key;
46
- };
47
- x: Axis<Date | string | number, {
48
- key: KeyId;
49
- }>;
50
- y: Axis<number, {
51
- keys: KeyId[];
52
- }>;
1
+ import { ShapeDefinition, ConditionalFormattingRule, GoalLine, BaseChartRepresentation } from '../ChartsV2/types';
2
+ export interface LineChartRepresentation extends BaseChartRepresentation {
53
3
  conditionalFormattingRules: ConditionalFormattingRule[];
54
4
  goalLines: GoalLine[];
55
- data: {
56
- [keyId: string]: DataItem;
57
- }[];
58
- lines: LegendItem[];
59
- };
60
- export declare type DataItem = {
61
- value: number | string | null;
62
- formattedValue: string | null;
63
- };
64
- export declare type GoalLine = {
65
- value: number;
66
- formattedValue: string | null;
67
- color: string;
68
- strokeStyle?: 'dashed' | 'solid';
5
+ lines: ShapeDefinition<LineStyles>[];
6
+ }
7
+ export declare type LineStyles = {
8
+ type: 'line';
9
+ strokeDasharray: string | number | null;
69
10
  strokeWidth: number;
70
11
  };
71
- export declare type DateTimeFormatter = {
72
- formatter: (date: Date) => string;
73
- description: string;
74
- };
75
- export declare type NumberFormatter = {
76
- formatter: (number: number | undefined | null, noValueReplacement?: string) => string;
77
- description: string;
78
- };
@@ -1,5 +1,6 @@
1
1
  import { QueryAttributes } from '../QueryAttributes/types';
2
2
  export declare type PivotConfig = {
3
+ z?: string;
3
4
  x: QueryAttributes.Field[];
4
5
  y: (QueryAttributes.Field | 'measures')[];
5
6
  detailed: {
@@ -1,18 +1,8 @@
1
- import { PreAggregatedQuery, PreparedQuery, Query, SubQuery } from './types';
1
+ import { PreAggregatedQuery, PreparedQuery, Query } from './types';
2
2
  import { QueryAttributes } from '../QueryAttributes/types';
3
3
  import { QueryEngineConfig, SupportedFeature as SupportedFeatureType } from '../QueryEngineConfig/types';
4
4
  import { DataSet } from '../DataSet/types';
5
5
  import { Result } from '../Result/types';
6
- import { AdditionalFilter, TimeRangeOptions } from '../AdditionalFilter/types';
7
- import { DataSetDashboardFilters } from '../CustomView/types';
8
- export { validate } from './validate';
9
- export declare const isValidMathsOp: (value: string) => value is import("../CustomField/types").MathOperator;
10
- export declare const containsSubquery: (measures: Query['measure']) => boolean;
11
- export declare const containsAggregates: (query: Query | SubQuery) => boolean;
12
- export declare const hasGroups: (query: Query) => boolean;
13
- export declare const setQueryLimit: (query: Query, limit: number) => Query;
14
- export declare const isRunnable: (query: Query | null, queryEngineConfig: QueryEngineConfig) => boolean;
15
- export declare const takeRunnableQueries: (queries: (Query | null)[], queryEngineConfig: QueryEngineConfig) => Query<string, string, string>[];
16
6
  export declare const build: (dataSet: DataSet<DataSet.Field>, measureAttr: QueryAttributes.Measure[], orderAttr: QueryAttributes.Order[], dimensionAttr: QueryAttributes.Dimension[], timeDimensionAttr: QueryAttributes.TimeDimension | null, limitAttr: number | undefined, offsetAttr: number | undefined, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../results-driver/src/types").Params, prebuiltFilters?: QueryAttributes.Filter[][] | undefined) => {
17
7
  query: Query<string, string, string>;
18
8
  measureDescription: import("./types").MeasureDescription[];
@@ -20,7 +10,6 @@ export declare const build: (dataSet: DataSet<DataSet.Field>, measureAttr: Query
20
10
  export declare const hasDimensions: (query: {
21
11
  group: Query['group'];
22
12
  }) => boolean;
23
- export declare const getMeasures: (query: Query) => Query['measure'];
24
13
  export declare const buildPreAggregatedPreparedQuery: (query: PreAggregatedQuery, dataSet: DataSet) => {
25
14
  query: PreAggregatedQuery;
26
15
  resultFields: Result.Field[];
@@ -30,7 +19,4 @@ export declare const buildUniqueArrayValuesPreparedQuery: (dataSetId: string, da
30
19
  resultFields: Result.Field[];
31
20
  };
32
21
  export declare const buildFilterQuery: (dataSet: DataSet, fieldId: string, optionsFilters?: QueryAttributes.Filter[] | undefined, optionsOrders?: QueryAttributes.Order[] | undefined) => QueryAttributes;
33
- export declare const requiredFields: (query: Query) => Array<string>;
34
22
  export declare const supportsFeature: (queryEngineConfig: QueryEngineConfig, feature: SupportedFeatureType) => boolean;
35
- export declare const toDataSetDashboardFilters: (dataSets: DataSet[], additionalFilters: AdditionalFilter[], dateFilterOptions: TimeRangeOptions) => DataSetDashboardFilters;
36
- export declare function addGlobalFiltersToQueries(queries: QueryAttributes[], dashboardFilters?: DataSetDashboardFilters): QueryAttributes[];
@@ -0,0 +1,3 @@
1
+ import { RadarChartRepresentation } from './types';
2
+ export declare const ASSUMED_AVERAGE_CHAR_WIDTH = 8.8;
3
+ export declare const adjustTicks: (chartRepresentation: RadarChartRepresentation, width: number) => RadarChartRepresentation;
@@ -0,0 +1,3 @@
1
+ import Joi from '@vizzly/joi';
2
+ import { ComponentInterfaceConfig } from '../ComponentInterface/types';
3
+ export declare const attributesSchema: (config: ComponentInterfaceConfig) => Joi.ObjectSchema<any>;
@@ -0,0 +1,34 @@
1
+ import { CSSProperties } from 'react';
2
+ import { FormatType } from '../Component/types';
3
+ import { Result } from '../Result/types';
4
+ import { DateTimeFormatter, NumberFormatter } from '../ChartsV2/types';
5
+ import { PivotConfig } from '../PivotConfig/types';
6
+ import { ValueAlias } from '../ValueAlias/types';
7
+ import { RadarChartRepresentation } from './types';
8
+ import { seriesLabelFormatter } from '../Result/formattedResultToSeries';
9
+ interface buildRadarChartRepresentationArgs {
10
+ result: Result;
11
+ xAxisFormat: FormatType;
12
+ xAxisPostfix: string;
13
+ xAxisPrefix: string;
14
+ yAxisFormat: FormatType;
15
+ yAxisPostfix: string;
16
+ yAxisPrefix: string;
17
+ colors: CSSProperties['color'][];
18
+ dateTimeFormatOptions: {
19
+ [id: string]: DateTimeFormatter;
20
+ };
21
+ defaultFormats: () => {
22
+ [functionId: string]: string;
23
+ };
24
+ nullValue?: string;
25
+ numberFormatOptions: {
26
+ [id: string]: NumberFormatter;
27
+ };
28
+ pivotConfig: PivotConfig;
29
+ valueAlias?: ValueAlias;
30
+ approxYAxisLabelCount: number;
31
+ seriesLabelFormatter: seriesLabelFormatter;
32
+ }
33
+ export declare const buildRadarChartRepresentation: ({ result, xAxisFormat, xAxisPostfix, xAxisPrefix, yAxisFormat, yAxisPostfix, yAxisPrefix, colors, dateTimeFormatOptions, defaultFormats, nullValue, numberFormatOptions, pivotConfig, valueAlias, approxYAxisLabelCount, seriesLabelFormatter, }: buildRadarChartRepresentationArgs) => RadarChartRepresentation;
34
+ export {};
@@ -0,0 +1,3 @@
1
+ import { ViewConstants } from '../ComponentInterface/types/namespaces.types';
2
+ declare const CONSTANTS: ViewConstants;
3
+ export default CONSTANTS;
@@ -0,0 +1,13 @@
1
+ import { DataType } from '../Field/types';
2
+ import { FormattedResult } from '../Result/types';
3
+ export declare const getMinAndMax: ({ data, keys, dataType, }: {
4
+ data: FormattedResult['contentMapped'];
5
+ keys: Array<string>;
6
+ dataType: DataType;
7
+ }) => {
8
+ max: null;
9
+ min: null;
10
+ } | {
11
+ max: number;
12
+ min: number;
13
+ };
@@ -0,0 +1,37 @@
1
+ import { DataType } from '../Field/types';
2
+ import { FormattedResult } from '../Result/types';
3
+ import { KeyId, Tick } from '../ChartsV2/types';
4
+ declare type FormattingFunction = (value: any, nullValueAlias?: string) => string;
5
+ interface GetScaleAndTicksArgs {
6
+ data: FormattedResult['contentMapped'];
7
+ xKey: string | null;
8
+ xScaleDataType: DataType;
9
+ yKeys: string[];
10
+ nullValue: string | undefined;
11
+ tickCountYAxis: number;
12
+ formattingFunctionX: FormattingFunction;
13
+ formattingFunctionY: FormattingFunction;
14
+ }
15
+ interface GetScaleAndTicksReturn {
16
+ x: {
17
+ ticks: Array<Tick<Date | string | number>>;
18
+ scale: {
19
+ max: number | Date | null;
20
+ min: number | Date | null;
21
+ key: KeyId | null;
22
+ dataType: DataType;
23
+ };
24
+ };
25
+ y: {
26
+ ticks: Array<Tick<number>>;
27
+ scale: {
28
+ max: number;
29
+ min: number;
30
+ key: null;
31
+ ordering: 'asc' | 'desc';
32
+ dataType: 'number';
33
+ };
34
+ };
35
+ }
36
+ export declare const getScaleAndTicks: ({ data, xKey, yKeys, xScaleDataType, nullValue, tickCountYAxis, formattingFunctionX, formattingFunctionY, }: GetScaleAndTicksArgs) => GetScaleAndTicksReturn;
37
+ export {};
@@ -0,0 +1,4 @@
1
+ import { Component } from '../Component/types';
2
+ import { LoadComponentInterface } from '../ComponentInterface/types';
3
+ declare const RadarChart: LoadComponentInterface<Component.RadarChartAttributes, Component.RadarChartAttributes>;
4
+ export default RadarChart;
@@ -0,0 +1,4 @@
1
+ import { Component } from '../Component/types';
2
+ import { ComponentInterfaceConfig } from '../ComponentInterface/types';
3
+ declare const _default: (config: ComponentInterfaceConfig) => (radarChart: Component.RadarChartAttributes, partial: Partial<Component.RadarChartAttributes>) => Component.RadarChartAttributes;
4
+ export default _default;
@@ -0,0 +1,46 @@
1
+ import { BaseChartRepresentation, ShapeDefinition, Tick } from '../ChartsV2/types';
2
+ import { DataType } from '../Field/types';
3
+ export declare type KeyId = string;
4
+ export declare type Operator = string;
5
+ export declare type Axis<SupportedVizzlyDataTypes, AxisKeys> = {
6
+ ticks: Tick<SupportedVizzlyDataTypes>[];
7
+ scale: {
8
+ dataType: DataType;
9
+ key: KeyId | null;
10
+ ordering: 'asc' | 'desc' | null;
11
+ min: SupportedVizzlyDataTypes | null;
12
+ max: SupportedVizzlyDataTypes | null;
13
+ };
14
+ postfix: string;
15
+ prefix: string;
16
+ title: string | null;
17
+ } & AxisKeys;
18
+ export declare type LinesItemStyleLine = {
19
+ type: 'line';
20
+ strokeDasharray: string | number | null;
21
+ strokeWidth: number;
22
+ };
23
+ export declare type Key = {
24
+ key: KeyId;
25
+ keyFormatted: string;
26
+ dataType: DataType;
27
+ };
28
+ export interface RadarChartRepresentation extends BaseChartRepresentation {
29
+ lines: ShapeDefinition<LinesItemStyleLine>[];
30
+ }
31
+ export declare type DataItem = {
32
+ value: number | string | null;
33
+ formattedValue: string | null;
34
+ };
35
+ export declare type Data = {
36
+ [keyId: string]: DataItem;
37
+ };
38
+ export declare type RadarChartOptions = {
39
+ showRoundedTotal: boolean;
40
+ showLegend: boolean;
41
+ removeStroke: boolean;
42
+ axis: {
43
+ showYAxisLabels: boolean;
44
+ showXAxisLabels: boolean;
45
+ };
46
+ };
@@ -1,9 +1,7 @@
1
- import { Query } from '../Query/types';
2
1
  import * as Measure from '../Measure';
3
2
  import { DataType } from '../Field/types';
4
3
  import { Result } from './types';
5
4
  import { SupportedAggregates } from '../Aggregate';
6
- import { QueryEngineConfig } from '../QueryEngineConfig/types';
7
5
  import { PivotConfig } from '../PivotConfig/types';
8
6
  import { QueryAttributes as QueryAttributesType } from '../QueryAttributes/types';
9
7
  export declare type RawResult = {
@@ -38,6 +36,5 @@ export declare const getLabel: (result: Result | null, fieldId: string, supporte
38
36
  export declare const isLoading: (result: Result | null | undefined) => result is undefined;
39
37
  export declare const hasFailed: (result: Result | null | undefined) => result is null;
40
38
  export declare const isEmpty: (result: Result | null | undefined) => boolean;
41
- export declare const validate: (result: Result, query: Query, params: QueryEngineConfig) => void;
42
39
  export declare const to100PercentResultSet: (resultSet: Array<TimeSeriesResultSet>) => Array<TimeSeriesResultSet>;
43
40
  export {};
@@ -1,7 +1,7 @@
1
1
  import { ValueAliasFunctionV2 } from '../ValueAlias/types';
2
2
  import { FormattedResult, Result } from './types';
3
- import { DateTimeFormatter, NumberFormatter } from '../LineChartV2/types';
4
- export declare type formatResultArgs = {
3
+ import { DateTimeFormatter, NumberFormatter } from '../ChartsV2/types';
4
+ export declare type FormatResultArgs = {
5
5
  defaultFormats: () => {
6
6
  [functionId: string]: string;
7
7
  };
@@ -33,4 +33,4 @@ export declare type formatResultArgs = {
33
33
  * When provided with a result, and formatting parameters, it returns a
34
34
  * populated result including the formatted value to show.
35
35
  */
36
- export declare const formatResult: (result: Result, params: formatResultArgs) => FormattedResult;
36
+ export declare const formatResult: (result: Result, params: FormatResultArgs) => FormattedResult;
@@ -7,9 +7,10 @@ declare type Key = {
7
7
  dataType: DataType;
8
8
  outputDataType: DataType;
9
9
  };
10
- declare type Returns = {
10
+ declare type FormattedResultToSeriesReturn = {
11
11
  yKeys: string[];
12
12
  xKeys: string[];
13
+ zKey: string;
13
14
  keys: {
14
15
  [keyId: string]: Key;
15
16
  };
@@ -20,5 +21,5 @@ export declare type seriesLabelFormatter = (params: {
20
21
  yPivotFields: FormattedResult['fields'];
21
22
  row: FormattedResult['contentMapped'][number];
22
23
  }) => string;
23
- export declare const formattedResultToSeries: (formattedResult: FormattedResult, pivotConfig: PivotConfig, seriesLabelFormatter: seriesLabelFormatter) => Returns;
24
+ export declare const formattedResultToSeries: (formattedResult: FormattedResult, pivotConfig: PivotConfig, seriesLabelFormatter: seriesLabelFormatter, zFieldId?: string | undefined) => FormattedResultToSeriesReturn;
24
25
  export {};
@@ -19,16 +19,14 @@ export declare type Result = {
19
19
  * Result, but with extra information baked into the
20
20
  * content to determine how it should be displayed.
21
21
  */
22
+ export declare type FormattedChartData = {
23
+ formattedValue: string;
24
+ value: any;
25
+ };
22
26
  export declare type FormattedResult = {
23
- content: {
24
- value: any;
25
- formattedValue: string;
26
- }[][];
27
+ content: FormattedChartData[][];
27
28
  contentMapped: Array<{
28
- [key: string]: {
29
- value: any;
30
- formattedValue: string;
31
- };
29
+ [key: string]: FormattedChartData;
32
30
  }>;
33
31
  fields: Result.Field[];
34
32
  hasMoreResults?: boolean | null;
@@ -0,0 +1,3 @@
1
+ import Joi from '@vizzly/joi';
2
+ import { ComponentInterfaceConfig } from '../ComponentInterface/types';
3
+ export declare const attributesSchema: (config: ComponentInterfaceConfig) => Joi.ObjectSchema<any>;
@@ -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 SunburstChart: LoadComponentInterface<Component.SunburstChartAttributes, Component.SunburstChartAttributes>;
4
+ export default SunburstChart;
@@ -1,6 +1,7 @@
1
- export declare const build: (value: string | number, valueAlias?: {
1
+ export declare const build: (value: string | number | null, valueAlias?: {
2
2
  [id: string]: string | number;
3
3
  } | import("./types").ValueAliasFunction | undefined, options?: {
4
4
  fieldId?: string | null | undefined;
5
5
  filter?: import("../AdditionalFilter/types").NumericFilter | import("../AdditionalFilter/types").SingleSelectFilter | import("../AdditionalFilter/types").DateFilter | import("../AdditionalFilter/types").DateAndTimeFilter | import("../AdditionalFilter/types").DateTimeFilter | import("../AdditionalFilter/types").MultiSelectFilter | import("../AdditionalFilter/types").AdvancedFilter | undefined;
6
- } | undefined) => string | number | undefined;
6
+ dataSetId?: string | undefined;
7
+ } | undefined) => string | number | null | undefined;
@@ -0,0 +1,3 @@
1
+ import { WaterfallChartRepresentation } from './types';
2
+ export declare const ASSUMED_AVERAGE_CHAR_WIDTH = 8.8;
3
+ export declare const adjustTicks: (waterfallChartRepresentation: WaterfallChartRepresentation, width: number) => WaterfallChartRepresentation;