@vizzly/dashboard 0.15.0-dev-3d764e5c2346be462bbcf7327369903e64b96b40 → 0.15.1-dev-7c85efb9d70a7b5e5367d265c0b48faf46ecac6e

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 (220) hide show
  1. package/dist/charts/src/BubbleChart/BubbleChart.d.ts +1 -1
  2. package/dist/charts/src/FunnelChart/FunnelChart.d.ts +0 -1
  3. package/dist/charts/src/ScatterChart/ScatterChart.d.ts +2 -2
  4. package/dist/charts/src/XYChart/types.d.ts +0 -3
  5. package/dist/charts/src/useXAxisLabelCount.d.ts +1 -1
  6. package/dist/charts/src/v2/components/AreaChart/AreaChart.d.ts +0 -1
  7. package/dist/charts/src/v2/components/Axis/AxisBottom.d.ts +1 -2
  8. package/dist/charts/src/v2/components/Axis/AxisLeft.d.ts +3 -3
  9. package/dist/charts/src/v2/components/BarChart/BarChart.d.ts +4 -6
  10. package/dist/charts/src/v2/components/BubbleChart/BubbleChart.d.ts +1 -1
  11. package/dist/charts/src/v2/components/ChartWrapper/ChartWrapper.d.ts +2 -4
  12. package/dist/charts/src/v2/components/ComboChart/ComboChart.d.ts +0 -1
  13. package/dist/charts/src/v2/components/LineChart/LineChart.d.ts +7 -12
  14. package/dist/charts/src/v2/components/RadarChart/Polygons.d.ts +1 -1
  15. package/dist/charts/src/v2/components/RadarChart/types.d.ts +0 -4
  16. package/dist/charts/src/v2/components/Tooltip/CrosshairCircle.d.ts +1 -1
  17. package/dist/charts/src/v2/components/Tooltip/Tooltip.d.ts +1 -2
  18. package/dist/charts/src/v2/components/WaterfallChart/Tooltip.d.ts +2 -2
  19. package/dist/charts/src/v2/components/WaterfallChart/WaterfallChart.d.ts +2 -4
  20. package/dist/charts/src/v2/components/hooks/useBottomAxisBaselineShift.d.ts +10 -0
  21. package/dist/charts/src/v2/index.d.ts +2 -4
  22. package/dist/charts/src/v2/utils/buildMargin.d.ts +0 -1
  23. package/dist/charts/src/v2/utils/components/BarGroup.d.ts +5 -9
  24. package/dist/charts/src/v2/utils/components/BarStacked.d.ts +5 -10
  25. package/dist/charts/src/v2/utils/getBarFill.d.ts +1 -1
  26. package/dist/charts/src/v2/utils/getTooltipData.d.ts +5 -5
  27. package/dist/{shared-ui → dashboard}/src/SetupError.d.ts +2 -2
  28. package/dist/{shared-ui → dashboard}/src/contexts/GlobalProvider/GlobalProvider.d.ts +2 -4
  29. package/dist/{shared-ui → dashboard}/src/contexts/GlobalProvider/buildImplementationMeta.d.ts +1 -1
  30. package/dist/{shared-ui → dashboard}/src/contexts/GlobalProvider/useGlobalProvider.d.ts +43 -75
  31. package/dist/{shared-ui → dashboard}/src/contexts/GlobalProvider/useOnDashboardLoadCallback.d.ts +2 -3
  32. package/dist/{shared-ui → dashboard}/src/contexts/SessionContext/useSessionContext.d.ts +0 -1
  33. package/dist/dashboard/src/index.d.ts +0 -1
  34. package/dist/dashboard/src/types.d.ts +128 -1
  35. package/dist/dashboard.cjs.development.js +15053 -18233
  36. package/dist/dashboard.cjs.production.min.js +1 -1
  37. package/dist/dashboard.esm.js +15073 -18258
  38. package/dist/results-driver/src/driver/VizzlyQuery/AdditionalFilter/toQueries.d.ts +3 -7
  39. package/dist/results-driver/src/driver/VizzlyQuery/AreaChart/toQueries.d.ts +2 -2
  40. package/dist/results-driver/src/driver/VizzlyQuery/AreaChartV2/toQueries.d.ts +2 -2
  41. package/dist/results-driver/src/driver/VizzlyQuery/BarChart/toQueries.d.ts +2 -2
  42. package/dist/results-driver/src/driver/VizzlyQuery/BarChartV2/toQueries.d.ts +2 -2
  43. package/dist/results-driver/src/driver/VizzlyQuery/BasicTable/toQueries.d.ts +2 -2
  44. package/dist/results-driver/src/driver/VizzlyQuery/FunnelChart/toQueries.d.ts +2 -2
  45. package/dist/results-driver/src/driver/VizzlyQuery/HorizontalBarChart/toQueries.d.ts +2 -2
  46. package/dist/results-driver/src/driver/VizzlyQuery/LineChart/toQueries.d.ts +2 -2
  47. package/dist/results-driver/src/driver/VizzlyQuery/LineChartV2/toQueries.d.ts +2 -2
  48. package/dist/results-driver/src/driver/VizzlyQuery/PieChart/toQueries.d.ts +2 -2
  49. package/dist/results-driver/src/driver/VizzlyQuery/PivotTable/toQueries.d.ts +2 -2
  50. package/dist/results-driver/src/driver/VizzlyQuery/RadarChart/toQueries.d.ts +2 -2
  51. package/dist/results-driver/src/driver/VizzlyQuery/RichText/toQueries.d.ts +2 -2
  52. package/dist/results-driver/src/driver/VizzlyQuery/SunburstChart/toQueries.d.ts +2 -2
  53. package/dist/results-driver/src/driver/VizzlyQuery/WaterfallChart/toQueries.d.ts +3 -9
  54. package/dist/results-driver/src/driver/VizzlyQuery/buildVizzlyQuery.d.ts +5 -5
  55. package/dist/results-driver/src/driver/VizzlyQuery/commonToQueries.d.ts +1 -1
  56. package/dist/results-driver/src/types.d.ts +0 -2
  57. package/dist/services/src/index.d.ts +0 -5
  58. package/dist/shared-logic/src/AdditionalFilter/AdditionalFilter.d.ts +7 -9
  59. package/dist/shared-logic/src/AdditionalFilter/FilterConfig.d.ts +3 -14
  60. package/dist/shared-logic/src/AdditionalFilter/toQueryAttributesFilter.d.ts +2 -2
  61. package/dist/shared-logic/src/AdditionalFilter/types.d.ts +2 -6
  62. package/dist/shared-logic/src/BarChartV2/buildBarChartRepresentation.d.ts +1 -1
  63. package/dist/shared-logic/src/BubbleChart/types.d.ts +0 -7
  64. package/dist/shared-logic/src/BubbleChartV2/buildBubbleChartRepresentation.d.ts +7 -5
  65. package/dist/shared-logic/src/BubbleChartV2/getScaleAndTicks.d.ts +3 -4
  66. package/dist/shared-logic/src/BubbleChartV2/types.d.ts +0 -10
  67. package/dist/shared-logic/src/Callbacks/cell.funcs.d.ts +1 -1
  68. package/dist/shared-logic/src/ChartsV2/adjustTicks.d.ts +4 -7
  69. package/dist/shared-logic/src/ChartsV2/types.d.ts +0 -2
  70. package/dist/shared-logic/src/ComboChartV2/buildComboChartRepresentation.d.ts +3 -3
  71. package/dist/shared-logic/src/Component/setAttributes.d.ts +1 -1
  72. package/dist/shared-logic/src/Component/sharedSchemas.d.ts +0 -2
  73. package/dist/shared-logic/src/Component/types.d.ts +7 -44
  74. package/dist/shared-logic/src/ComponentInterface/types/namespaces.types.d.ts +15 -17
  75. package/dist/shared-logic/src/CustomField/AggregateMath/index.d.ts +1 -2
  76. package/dist/shared-logic/src/CustomField/Conditional/index.d.ts +2 -2
  77. package/dist/shared-logic/src/CustomField/CustomField.d.ts +1 -2
  78. package/dist/shared-logic/src/CustomField/CustomMetric/build.d.ts +1 -1
  79. package/dist/shared-logic/src/CustomField/CustomMetric/combineFilters.d.ts +2 -0
  80. package/dist/shared-logic/src/CustomField/DateCalculation/index.d.ts +1 -2
  81. package/dist/shared-logic/src/CustomField/Percentage/index.d.ts +5 -6
  82. package/dist/shared-logic/src/CustomField/RoundedNumber/index.d.ts +1 -2
  83. package/dist/shared-logic/src/CustomField/Rules/index.d.ts +2 -2
  84. package/dist/shared-logic/src/CustomField/SimpleMath/index.d.ts +1 -1
  85. package/dist/shared-logic/src/CustomField/types.d.ts +1 -6
  86. package/dist/shared-logic/src/DataPanelConfig/types.d.ts +1 -1
  87. package/dist/shared-logic/src/DataSet/DataSet.d.ts +1 -1
  88. package/dist/shared-logic/src/DataTable/resultToPivotTableRepresentation.d.ts +1 -2
  89. package/dist/shared-logic/src/Field/Field.d.ts +3 -4
  90. package/dist/shared-logic/src/Filter/Filter.d.ts +10 -0
  91. package/dist/shared-logic/src/Filter/Where.d.ts +6 -0
  92. package/dist/shared-logic/src/Filter/combineFilters.d.ts +1 -0
  93. package/dist/shared-logic/src/Filter/types.d.ts +4 -2
  94. package/dist/shared-logic/src/FormatPanelConfig/types.d.ts +1 -3
  95. package/dist/shared-logic/src/Generate/query.d.ts +3 -3
  96. package/dist/shared-logic/src/JSQueryEngine/types.d.ts +8 -2
  97. package/dist/shared-logic/src/Query/Query.d.ts +22 -0
  98. package/dist/shared-logic/src/Query/buildFromQueryAttributes.d.ts +3 -3
  99. package/dist/shared-logic/src/Query/types.d.ts +109 -6
  100. package/dist/shared-logic/src/Result/Result.d.ts +2 -2
  101. package/dist/shared-logic/src/Result/formattedResultToSeries.d.ts +1 -1
  102. package/dist/shared-logic/src/TimeDimension/TimeDimension.d.ts +1 -3
  103. package/dist/shared-logic/src/ValueAlias/ValueAlias.d.ts +1 -2
  104. package/dist/shared-logic/src/VizzlyState/index.d.ts +0 -2
  105. package/dist/shared-logic/src/WaterfallChart/buildWaterfallChartRepresentation.d.ts +3 -7
  106. package/dist/shared-logic/src/WaterfallChart/getRepresentationData.d.ts +2 -5
  107. package/dist/shared-logic/src/WaterfallChart/getYTicks.d.ts +1 -1
  108. package/dist/shared-logic/src/WaterfallChart/types.d.ts +0 -1
  109. package/dist/shared-logic/src/api/queryEngine/getRunQueriesCallback.d.ts +1 -2
  110. package/dist/shared-logic/src/api/vizzly/aiHelpers/view.d.ts +1 -1
  111. package/dist/shared-logic/src/getComponentInterface.d.ts +1 -1
  112. package/dist/shared-logic/src/utils/feedback.d.ts +2 -2
  113. package/dist/shared-ui/src/api/useQueryEffect.d.ts +4 -5
  114. package/dist/shared-ui/src/base/ListView/index.d.ts +2 -2
  115. package/dist/shared-ui/src/base/Panel/Panel.d.ts +1 -1
  116. package/dist/shared-ui/src/base/Section/Section.d.ts +1 -1
  117. package/dist/shared-ui/src/base/Table/Table.d.ts +1 -1
  118. package/dist/shared-ui/src/components/AdditionalFilter/AdvancedPicker/AdvancedSelectFilter.d.ts +1 -1
  119. package/dist/shared-ui/src/components/AdditionalFilter/FiltersModal.d.ts +1 -1
  120. package/dist/shared-ui/src/components/AdditionalFilter/asyncLoadFilterOptions.d.ts +1 -2
  121. package/dist/shared-ui/src/components/AdditionalFilter/labelWidth.d.ts +0 -15
  122. package/dist/shared-ui/src/components/AreaChart/AreaChartView.d.ts +1 -1
  123. package/dist/shared-ui/src/components/BarChartV2/BarChartV2View.d.ts +3 -3
  124. package/dist/shared-ui/src/components/BubbleChart/BubbleChartView.d.ts +1 -1
  125. package/dist/shared-ui/src/components/ChartHelper.d.ts +1 -1
  126. package/dist/shared-ui/src/components/ComboChart/ComboChartView.d.ts +1 -1
  127. package/dist/shared-ui/src/components/Component/types.d.ts +3 -2
  128. package/dist/shared-ui/src/components/Component.d.ts +2 -0
  129. package/dist/shared-ui/src/components/DataTable/DataTableRow.d.ts +1 -1
  130. package/dist/shared-ui/src/components/DataTable/buildTableRepresentation.d.ts +1 -2
  131. package/dist/shared-ui/src/components/DataTable/helpers.d.ts +1 -2
  132. package/dist/shared-ui/src/components/Drilldown/useDrilldownSelection.d.ts +1 -1
  133. package/dist/shared-ui/src/components/FormatPropsEditor/FormatPanelFromConfig.d.ts +1 -1
  134. package/dist/shared-ui/src/components/HeadlineStats/HeadlineStats.d.ts +2 -2
  135. package/dist/shared-ui/src/components/LineChart/LineChartView.d.ts +1 -1
  136. package/dist/shared-ui/src/components/MercatorMap/View.d.ts +1 -1
  137. package/dist/shared-ui/src/components/PieChart/PieChartView.d.ts +4 -4
  138. package/dist/shared-ui/src/components/Progress/ProgressView.d.ts +1 -1
  139. package/dist/shared-ui/src/components/ScatterChart/ScatterChartView.d.ts +1 -1
  140. package/dist/shared-ui/src/components/SingleStat/SingleStatView.d.ts +1 -1
  141. package/dist/shared-ui/src/components/Studio/StudioApp/Cell.d.ts +2 -0
  142. package/dist/shared-ui/src/components/Studio/StudioContexts.d.ts +1 -1
  143. package/dist/shared-ui/src/components/SunburstChart/SunburstChartView.d.ts +2 -5
  144. package/dist/shared-ui/src/components/SunburstChart/convertDataToSunburstData.d.ts +2 -8
  145. package/dist/shared-ui/src/components/WaterfallChart/WaterfallChartView.d.ts +3 -3
  146. package/dist/shared-ui/src/components/useComponentEffect.d.ts +2 -2
  147. package/dist/shared-ui/src/contexts/DashboardBehaviour/context.d.ts +2 -2
  148. package/dist/shared-ui/src/contexts/DashboardBehaviour/types.d.ts +14 -19
  149. package/dist/shared-ui/src/contexts/DashboardContext/context.d.ts +1 -4
  150. package/dist/shared-ui/src/contexts/DashboardContext/types.d.ts +41 -27
  151. package/dist/shared-ui/src/headlessui/components/switch/switch.d.ts +1 -1
  152. package/dist/shared-ui/src/headlessui/hooks/use-disposables.d.ts +1 -1
  153. package/dist/shared-ui/src/headlessui/utils/disposables.d.ts +1 -1
  154. package/dist/shared-ui/src/hooks/useVizzly.d.ts +1 -1
  155. package/dist/shared-ui/src/library/DataPanel/CustomFieldInput/Rules/RulesModal.d.ts +1 -1
  156. package/dist/shared-ui/src/library/DataPanel/CustomFieldInput/types.d.ts +4 -4
  157. package/dist/shared-ui/src/library/DataPanel/CustomMetricsInput.d.ts +1 -1
  158. package/dist/shared-ui/src/library/DataPanel/sections/index.d.ts +0 -1
  159. package/dist/shared-ui/src/library/Editor/useEditor.d.ts +2 -0
  160. package/dist/shared-ui/src/library/Library/ComponentInLibrary.d.ts +1 -0
  161. package/dist/shared-ui/src/library/Library/Library.d.ts +4 -0
  162. package/dist/shared-ui/src/library/Library/types.d.ts +2 -0
  163. package/dist/shared-ui/src/library/StylePanel/AxisPreferenceSection.d.ts +1 -1
  164. package/package.json +3 -4
  165. package/dist/charts/src/ScatterChart/types.d.ts +0 -32
  166. package/dist/charts/src/v2/components/DataLabel/DataLabel.d.ts +0 -11
  167. package/dist/charts/src/v2/components/DataLabel/index.d.ts +0 -1
  168. package/dist/charts/src/v2/components/GridColumns/GridRows.d.ts +0 -10
  169. package/dist/charts/src/v2/components/HorizontalBarChart/HorizontalBarChart.d.ts +0 -27
  170. package/dist/charts/src/v2/components/HorizontalBarChart/getTooltipDataForHorizontalChart.d.ts +0 -25
  171. package/dist/charts/src/v2/components/HorizontalBarChart/index.d.ts +0 -1
  172. package/dist/charts/src/v2/components/HorizontalBarChart/useScalesForHorizontalChart.d.ts +0 -4
  173. package/dist/charts/src/v2/components/QuadrantOverlay/QuadrantOverlay.d.ts +0 -10
  174. package/dist/charts/src/v2/components/QuadrantOverlay/index.d.ts +0 -2
  175. package/dist/charts/src/v2/components/RadarChart/RadarCrosshairCircle.d.ts +0 -19
  176. package/dist/charts/src/v2/components/RadarChart/shared.d.ts +0 -2
  177. package/dist/charts/src/v2/components/VerticalGoalLine/VerticalGoalLine.d.ts +0 -11
  178. package/dist/charts/src/v2/components/VerticalGoalLine/VerticalGoalLines.d.ts +0 -11
  179. package/dist/charts/src/v2/components/VerticalGoalLine/index.d.ts +0 -2
  180. package/dist/charts/src/v2/components/WaterfallChart/waterfall.utils.d.ts +0 -2
  181. package/dist/charts/src/v2/components/hooks/useGroupingAxisBaselineShift.d.ts +0 -11
  182. package/dist/charts/src/v2/utils/components/HorizontalBarGroup.d.ts +0 -28
  183. package/dist/charts/src/v2/utils/components/HorizontalBarStacked.d.ts +0 -23
  184. package/dist/charts/src/v2/utils/getRadarTooltipData.d.ts +0 -21
  185. package/dist/results-driver/src/driver/VizzlyQuery/HorizontalBarChartV2/toQueries.d.ts +0 -4
  186. package/dist/shared-logic/src/AliasFields/types.d.ts +0 -5
  187. package/dist/shared-logic/src/ChartsV2/convertToStackedPercentages.d.ts +0 -1
  188. package/dist/shared-logic/src/CustomField/AliasField/index.d.ts +0 -7
  189. package/dist/shared-logic/src/CustomField/CustomMetric/combineForCustomMetricFilters.d.ts +0 -2
  190. package/dist/shared-logic/src/CustomField/constants.d.ts +0 -15
  191. package/dist/shared-logic/src/DataLabel/index.d.ts +0 -17
  192. package/dist/shared-logic/src/HorizontalBarChartV2/attributesSchema.d.ts +0 -3
  193. package/dist/shared-logic/src/HorizontalBarChartV2/buildHorizontalBarChartRepresentation.d.ts +0 -41
  194. package/dist/shared-logic/src/HorizontalBarChartV2/constants.d.ts +0 -3
  195. package/dist/shared-logic/src/HorizontalBarChartV2/index.d.ts +0 -4
  196. package/dist/shared-logic/src/HorizontalBarChartV2/setAttributes.d.ts +0 -4
  197. package/dist/shared-logic/src/HorizontalBarChartV2/types.d.ts +0 -41
  198. package/dist/shared-logic/src/PivotConfigForMetricAxis/index.d.ts +0 -3
  199. package/dist/shared-logic/src/Result/formattedResultToSeriesForMetricAxis.d.ts +0 -25
  200. package/dist/shared-ui/src/components/HorizontalBarChartV2/HorizontalBarChartV2.d.ts +0 -3
  201. package/dist/shared-ui/src/components/HorizontalBarChartV2/HorizontalBarChartV2View.d.ts +0 -17
  202. package/dist/shared-ui/src/components/HorizontalBarChartV2/index.d.ts +0 -2
  203. package/dist/shared-ui/src/contexts/AliasFields/useInteractiveFields.d.ts +0 -6
  204. package/dist/shared-ui/src/contexts/GlobalProvider/GlobalProvider.test.d.ts +0 -1
  205. package/dist/shared-ui/src/errors/InvalidProperty.d.ts +0 -5
  206. package/dist/shared-ui/src/library/DataPanel/DateComparisonModal/DateComparisonModal.d.ts +0 -12
  207. package/dist/shared-ui/src/library/DataPanel/DateComparisonModal/Rules.d.ts +0 -11
  208. package/dist/shared-ui/src/library/DataPanel/DateComparisonModal/types.d.ts +0 -13
  209. package/dist/shared-ui/src/library/DataPanel/DateComparisonModal/useCustomMetric.d.ts +0 -17
  210. package/dist/shared-ui/src/library/DataPanel/sections/DateComparisonSection.d.ts +0 -8
  211. package/dist/shared-ui/src/library/StylePanel/Quadrant/QuadrantSection.d.ts +0 -6
  212. package/dist/shared-ui/src/types/dashboard.d.ts +0 -130
  213. /package/dist/charts/src/v2/components/{GridColumns → GridRows}/shared.d.ts +0 -0
  214. /package/dist/{shared-ui → dashboard}/src/contexts/SessionContext/getStrategy.d.ts +0 -0
  215. /package/dist/{shared-ui → dashboard}/src/contexts/SessionContext/index.d.ts +0 -0
  216. /package/dist/{shared-ui → dashboard}/src/contexts/useDashboardStrategy/runStrategy.d.ts +0 -0
  217. /package/dist/{shared-ui → dashboard}/src/contexts/useDashboardStrategy/types.d.ts +0 -0
  218. /package/dist/{shared-ui → dashboard}/src/contexts/useDashboardStrategy.d.ts +0 -0
  219. /package/dist/{shared-ui → dashboard}/src/contexts/useScheduledReports.d.ts +0 -0
  220. /package/dist/{shared-ui → dashboard}/src/errors/FailedToSaveError.d.ts +0 -0
@@ -3,7 +3,6 @@ import { QueryAttributes } from '../QueryAttributes/types';
3
3
  import { DataType } from '../Field/types';
4
4
  import { FormattedResult } from '../Result/types';
5
5
  import { Tick } from '../ChartsV2/types';
6
- import { ApproxAxisLabelCount } from '../../../shared-logic/src/Component/types';
7
6
  declare type FormattingFunction = (value: any, nullValueAlias?: string) => string;
8
7
  interface getScaleAndTicksArgs {
9
8
  data: FormattedResult['contentMapped'];
@@ -11,7 +10,7 @@ interface getScaleAndTicksArgs {
11
10
  xScaleDataType: DataType;
12
11
  yKeys: string[];
13
12
  nullValue: string | undefined;
14
- approxYAxisLabelCount: ApproxAxisLabelCount;
13
+ tickCountYAxis: number;
15
14
  formattingFunctionX: FormattingFunction;
16
15
  formattingFunctionY: FormattingFunction;
17
16
  order: QueryAttributes.Order[];
@@ -33,11 +32,11 @@ interface getScaleAndTicksReturn {
33
32
  scale: {
34
33
  max: number;
35
34
  min: number;
36
- key: string | null;
35
+ key: null;
37
36
  ordering: 'asc' | 'desc';
38
37
  dataType: 'number';
39
38
  };
40
39
  };
41
40
  }
42
- export declare const getScaleAndTicks: ({ data, xKey, yKeys, xScaleDataType, nullValue, approxYAxisLabelCount, formattingFunctionX, formattingFunctionY, order, goalLines, }: getScaleAndTicksArgs) => getScaleAndTicksReturn;
41
+ export declare const getScaleAndTicks: ({ data, xKey, yKeys, xScaleDataType, nullValue, tickCountYAxis, formattingFunctionX, formattingFunctionY, order, goalLines, }: getScaleAndTicksArgs) => getScaleAndTicksReturn;
43
42
  export {};
@@ -1,4 +1,3 @@
1
- import { Component } from '../../../shared-logic/src/Component/types';
2
1
  import { Tick } from '../ChartsV2/types';
3
2
  import { DataType } from '../Field/types';
4
3
  export declare type KeyId = string;
@@ -37,12 +36,6 @@ export declare type Key = {
37
36
  keyFormatted: string;
38
37
  dataType: DataType;
39
38
  };
40
- export declare type Legend = {
41
- keys: {
42
- [key: KeyId]: Key;
43
- };
44
- items: LegendItem[];
45
- };
46
39
  export declare type BubbleChartRepresentation = {
47
40
  keys: {
48
41
  [key: KeyId]: Key;
@@ -54,15 +47,12 @@ export declare type BubbleChartRepresentation = {
54
47
  keys: KeyId[];
55
48
  }>;
56
49
  z: string;
57
- quadrants: Component.Quadrant.Rule;
58
50
  conditionalFormattingRules: ConditionalFormattingRule[];
59
51
  goalLines: GoalLine[];
60
52
  data: {
61
53
  [keyId: string]: DataItem;
62
54
  }[];
63
55
  lines: LegendItem[];
64
- groupByKey: string;
65
- legend: Legend;
66
56
  };
67
57
  export declare type DataItem = {
68
58
  value: number | string | null;
@@ -65,7 +65,7 @@ export declare function getCellAttributes(result: Result, rowIndex: number, cell
65
65
  aggregate?: undefined;
66
66
  } | {
67
67
  fieldId: string;
68
- value: import("react").ReactText;
68
+ value: string | number;
69
69
  function: string;
70
70
  aggregate: string;
71
71
  grouping?: undefined;
@@ -1,12 +1,9 @@
1
- import { HorizontalBarChartRepresentation } from '../HorizontalBarChartV2/types';
2
1
  import { Result } from '../Result/types';
3
2
  import { BaseChartRepresentation, Tick } from './types';
4
- export declare const ASSUMED_AVERAGE_CHAR_WIDTH = 7.1;
5
- export declare const ASSUMED_AVERAGE_CHAR_HEIGHT = 24;
6
- export declare function howManyTicksFitInWidth(ticks: Tick<string | number | Date>[], maxWidth: number, avgCharWidth?: number): number;
7
- export declare function howManyTicksFitInHeight(ticks: Tick<string | number | Date>[], maxHeight: number, avgCharHeight?: number): number;
3
+ export declare const ASSUMED_AVERAGE_CHAR_WIDTH = 4;
4
+ export declare function howManyTicksFitInWidth(ticks: Tick<string | Number | Date>[], maxWidth: number, avgCharWidth?: number): number;
5
+ export declare function howManyTicksFitInHeight(ticks: Tick<string | number | Date>[], height: number): number | undefined;
8
6
  export declare function determineYTicks(ticks: Tick<number>[], height: number): Tick<number>[];
9
7
  export declare function pickEquallySpaced<T>(arr: Tick<T>[], numPicks: number): Tick<T>[];
10
8
  export declare function adjustTicks<T extends BaseChartRepresentation>(representation: T, width: number, height: number, xKeyField?: Result.Field): T;
11
- export declare function adjustTicksForHorizontalChart(representation: HorizontalBarChartRepresentation, width: number, height: number, yKeyField?: Result.Field): HorizontalBarChartRepresentation;
12
- export declare function getEvenlySpacedTicks<DataType extends string | number | Date>(ticks: Tick<DataType>[], count: number, xKeyField: Result.Field | undefined): Tick<DataType>[];
9
+ export declare function getEvenlySpacedTicks<DataType extends string | number | Date>(ticks: Tick<DataType>[], count: number | undefined, xKeyField: Result.Field | undefined): Tick<DataType>[];
@@ -54,8 +54,6 @@ export declare type GoalLine = {
54
54
  export declare type DataItem = {
55
55
  value: number | string | null;
56
56
  formattedValue: string | null;
57
- originalValue?: number | string | null;
58
- displayValue?: number;
59
57
  };
60
58
  export declare type DateTimeFormatter = {
61
59
  formatter: (date: Date) => string;
@@ -8,13 +8,13 @@ export declare function buildComboChartRepresentation(xKeyField: ResultType.Fiel
8
8
  max: number;
9
9
  dataType: import("../Field/types").DataType;
10
10
  key: string | null;
11
- ordering: "desc" | "asc" | null;
11
+ ordering: "asc" | "desc" | null;
12
12
  } | {
13
13
  min: null;
14
14
  max: null;
15
15
  dataType: import("../Field/types").DataType;
16
16
  key: string | null;
17
- ordering: "desc" | "asc" | null;
17
+ ordering: "asc" | "desc" | null;
18
18
  };
19
19
  ticks: import("../ChartsV2/types").Tick<string | number | Date>[];
20
20
  postfix: string;
@@ -29,7 +29,7 @@ export declare function buildComboChartRepresentation(xKeyField: ResultType.Fiel
29
29
  min: number;
30
30
  dataType: import("../Field/types").DataType;
31
31
  key: string | null;
32
- ordering: "desc" | "asc" | null;
32
+ ordering: "asc" | "desc" | null;
33
33
  };
34
34
  ticks: import("../ChartsV2/types").Tick<number>[];
35
35
  barKeys: string[];
@@ -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.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> | Partial<Component.HorizontalBarChartV2Attributes>, 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> | Partial<Component.HorizontalBarChartV2Attributes>, 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;
@@ -8,7 +8,6 @@ export declare const measureSchema: (supportedAggregates: SupportedAggregates, a
8
8
  export declare const orderSchema: (queryEngineConfig: QueryEngineConfig) => Joi.ObjectSchema<any>;
9
9
  export declare const timeDimensionSchema: (supportedTimeTruncFunctions: SupportedTimeTruncFunctions) => Joi.ObjectSchema<any>;
10
10
  export declare const dimensionSchema: (supportedTimeTruncFunctions: SupportedTimeTruncFunctions, attributeSchemaOptions: ComponentInterfaceConfig['attributesSchemaOptions']) => Joi.ArraySchema<any[]>;
11
- export declare const queryFilterSchema: (queryEngineConfig: QueryEngineConfig, maxDepth?: number) => Joi.Schema;
12
11
  export declare const filterSchema: (queryEngineConfig: QueryEngineConfig) => Joi.ObjectSchema<any>;
13
12
  export declare const queryAttributesFilter: (queryEngineConfig: QueryEngineConfig) => Joi.ArraySchema<any[]>;
14
13
  export declare const queryAttributesLimit: () => Joi.NumberSchema<number>;
@@ -52,7 +51,6 @@ export declare const protectedFieldsDimension: (queryEngineConfig: QueryEngineCo
52
51
  export declare const parametersSchema: (queryEngineConfig: QueryEngineConfig, attributeSchemaOptions: ComponentInterfaceConfig['attributesSchemaOptions']) => Joi.ObjectSchema<any>;
53
52
  export declare const goalLineSchema: () => Joi.ObjectSchema<any>;
54
53
  export declare const goalLinesSchema: () => Joi.ArraySchema<any[]>;
55
- export declare const quadrantsSchema: () => Joi.ObjectSchema<any>;
56
54
  export declare const headlineSchema: () => Joi.ObjectSchema<any>;
57
55
  export declare const axisTitleSchema: () => Joi.ObjectSchema<any>;
58
56
  export declare const sizingSchema: Joi.ObjectSchema<any>;
@@ -8,11 +8,10 @@ import { TableFieldsV2 } from '../DataTable/types';
8
8
  import { Dictionary } from 'lodash';
9
9
  import { MovingAverage, TrendType } from '../Trends/types';
10
10
  import { DataSet } from '../DataSet/types';
11
- import { RulesField } from '../CustomField/types';
12
11
  export declare type getNumberFormatter = (formatterId: string | undefined | null) => (number: number) => string;
13
12
  export declare type FormatType = string | null;
14
13
  export declare type ApproxAxisLabelCount = 'auto' | number;
15
- export declare type ComponentType = 'areaChart' | 'areaChartV2' | 'barChart' | 'barChartV2' | 'basicTable' | 'bubbleChart' | 'bubbleChartV2' | 'comboChart' | 'comboChartV2' | 'custom' | 'dataTable' | 'funnelChart' | 'horizontalBarChart' | 'horizontalBarChartV2' | 'lineChart' | 'lineChartV2' | 'mercatorMap' | 'pieChart' | 'progress' | 'radarChart' | 'richText' | 'scatterChart' | 'singleStat' | 'sunburstChart' | 'waterfallChart';
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';
16
15
  export declare const componentTypes: string[];
17
16
  export declare namespace Component {
18
17
  export type LineCurve = 'natural' | 'straight' | 'step' | 'stepBefore' | 'stepAfter' | 'dotted';
@@ -88,7 +87,6 @@ export declare namespace Component {
88
87
  approxXAxisLabelCount: ApproxAxisLabelCount;
89
88
  approxYAxisLabelCount: ApproxAxisLabelCount;
90
89
  legend: boolean;
91
- labels?: boolean;
92
90
  protectedFields?: ProtectedFields;
93
91
  parameters?: Parameters;
94
92
  goalLines?: Array<Component.GoalLine.Rule>;
@@ -164,7 +162,6 @@ export declare namespace Component {
164
162
  approxXAxisLabelCount: ApproxAxisLabelCount;
165
163
  approxYAxisLabelCount: ApproxAxisLabelCount;
166
164
  legend: boolean;
167
- labels?: boolean;
168
165
  goalLines?: Array<Component.GoalLine.Rule>;
169
166
  conditionalFormattingRules?: {
170
167
  bar?: Array<ConditionalFormatting.Rule>;
@@ -208,7 +205,6 @@ export declare namespace Component {
208
205
  conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
209
206
  drilldown: QueryAttributes.Dimension[];
210
207
  legend: boolean;
211
- labels?: boolean;
212
208
  parameters?: Parameters;
213
209
  goalLines?: Array<Component.GoalLine.Rule>;
214
210
  axisTitles?: AxisTitles;
@@ -229,7 +225,6 @@ export declare namespace Component {
229
225
  conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
230
226
  drilldown: QueryAttributes.Dimension[];
231
227
  legend: boolean;
232
- labels?: boolean;
233
228
  parameters?: Parameters;
234
229
  goalLines?: Array<Component.GoalLine.Rule>;
235
230
  axisTitles?: AxisTitles;
@@ -239,7 +234,7 @@ export declare namespace Component {
239
234
  };
240
235
  export type BarChartV2Attributes = BaseAttributes & BaseQueryAttributes & {
241
236
  type: 'barChartV2';
242
- stacked?: boolean | '100%';
237
+ stacked?: boolean;
243
238
  xAxisPrefix: string;
244
239
  yAxisPrefix: string;
245
240
  xAxisPostfix: string;
@@ -249,12 +244,13 @@ export declare namespace Component {
249
244
  approxXAxisLabelCount: ApproxAxisLabelCount;
250
245
  approxYAxisLabelCount: ApproxAxisLabelCount;
251
246
  conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
247
+ drilldown: QueryAttributes.Dimension[];
252
248
  legend: boolean;
253
- labels?: boolean;
254
249
  parameters?: Parameters;
255
250
  goalLines?: Array<Component.GoalLine.Rule>;
256
251
  axisTitles?: AxisTitles;
257
252
  headline?: Headline;
253
+ drilldownOptions: Array<DrilldownOptions> | undefined;
258
254
  };
259
255
  export type PieChartAttributes = BaseAttributes & BaseQueryAttributes & {
260
256
  type: 'pieChart';
@@ -295,25 +291,6 @@ export declare namespace Component {
295
291
  axisTitles?: AxisTitles;
296
292
  headline?: Headline;
297
293
  };
298
- export type HorizontalBarChartV2Attributes = BaseAttributes & BaseQueryAttributes & {
299
- type: 'horizontalBarChartV2';
300
- stacked?: boolean | '100%';
301
- xAxisPrefix: string;
302
- yAxisPrefix: string;
303
- xAxisPostfix: string;
304
- yAxisPostfix: string;
305
- xAxisFormat: FormatType;
306
- yAxisFormat: FormatType;
307
- approxXAxisLabelCount: ApproxAxisLabelCount;
308
- approxYAxisLabelCount: ApproxAxisLabelCount;
309
- conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
310
- legend: boolean;
311
- labels?: boolean;
312
- parameters?: Parameters;
313
- goalLines?: Array<Component.GoalLine.Rule>;
314
- axisTitles?: AxisTitles;
315
- headline?: Headline;
316
- };
317
294
  export namespace ConditionalFormatting {
318
295
  type Rule = {
319
296
  filters: QueryAttributes['filter'];
@@ -335,17 +312,6 @@ export declare namespace Component {
335
312
  label?: boolean;
336
313
  };
337
314
  }
338
- export namespace Quadrant {
339
- type Rule = {
340
- enabled: boolean;
341
- labels: {
342
- quadrantOne?: string;
343
- quadrantTwo?: string;
344
- quadrantThree?: string;
345
- quadrantFour?: string;
346
- };
347
- };
348
- }
349
315
  export type ExportNames = {
350
316
  [resultFieldId: string]: string | undefined;
351
317
  };
@@ -438,7 +404,6 @@ export declare namespace Component {
438
404
  approxXAxisLabelCount: ApproxAxisLabelCount;
439
405
  approxYAxisLabelCount: ApproxAxisLabelCount;
440
406
  goalLines?: Array<Component.GoalLine.Rule>;
441
- quadrants?: Component.Quadrant.Rule;
442
407
  axisTitles?: AxisTitles;
443
408
  };
444
409
  export type BubbleChartAttributes = BaseAttributes & Omit<BaseQueryAttributes, 'measure'> & {
@@ -480,7 +445,6 @@ export declare namespace Component {
480
445
  axisTitles?: AxisTitles;
481
446
  headline?: Headline;
482
447
  trends?: Array<Trends>;
483
- quadrants?: Component.Quadrant.Rule;
484
448
  };
485
449
  export type RadarChartAttributes = BaseAttributes & BaseQueryAttributes & {
486
450
  type: 'radarChart';
@@ -505,16 +469,14 @@ export declare namespace Component {
505
469
  approxXAxisLabelCount: ApproxAxisLabelCount;
506
470
  approxYAxisLabelCount: ApproxAxisLabelCount;
507
471
  legend: boolean;
508
- labels?: boolean;
509
472
  parameters?: Parameters;
510
473
  axisTitles?: AxisTitles;
511
474
  headline?: Headline;
512
475
  increaseColor: string;
513
476
  decreaseColor: string;
514
- comparison: RulesField | null;
515
477
  };
516
- 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' | 'horizontalBarChartV2';
517
- 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 | HorizontalBarChartV2Attributes;
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;
518
480
  export interface RenderTableCell {
519
481
  viewId: string;
520
482
  type: 'basicTable' | 'dataTable';
@@ -624,6 +586,7 @@ export declare type MaybeOldComponent<Attrs = Component.Attributes> = Omit<Compo
624
586
  export declare type Component<Attrs = Component.Attributes> = {
625
587
  attributes: Attrs;
626
588
  localFilters: Array<AdditionalFilter>;
589
+ results: (Result | null)[];
627
590
  colSpan: number;
628
591
  /** @deprecated Moved to dashboard level. */
629
592
  reports: Array<Report>;
@@ -25,30 +25,29 @@ export declare type Pagination = {
25
25
  options: number[];
26
26
  };
27
27
  export interface DataPanelNamespaces {
28
- combo_chart_dimension?: Section<'comboChartDimension'>;
29
- comparison?: Section<'comparison'>;
30
- custom_metrics?: Section<'customMetrics'>;
31
28
  data_set: Section<'dataSet'>;
32
- dateComparison?: Section<'dateComparison'>;
33
- drilldown?: Section<'drilldown'>;
29
+ views: Section<'views'>;
30
+ fields?: Section<'fields'>;
31
+ field_y_axis?: Section<'fieldCollector'>;
32
+ field_z_axis?: Section<'fieldCollector'>;
33
+ field_rows?: Section<'fieldCollector'>;
34
34
  field_columns?: Section<'fieldCollector'>;
35
- field_country?: Section<'fieldCollector'>;
36
- field_grouping?: Section<'fieldCollector'>;
37
35
  field_metrics?: Section<'fieldCollector'>;
38
- field_rows?: Section<'fieldCollector'>;
36
+ field_grouping?: Section<'fieldCollector'>;
37
+ progress_goals?: Section<'progressGoals'>;
38
+ drilldown?: Section<'drilldown'>;
39
39
  field_x_axis?: Section<'fieldCollector'>;
40
- field_y_axis?: Section<'fieldCollector'>;
41
- field_z_axis?: Section<'fieldCollector'>;
42
- fields?: Section<'fields'>;
40
+ field_country?: Section<'fieldCollector'>;
41
+ sort?: Section<'sort'>;
43
42
  filter?: Section<'filter'>;
43
+ custom_metrics?: Section<'customMetrics'>;
44
+ limit?: Section<'limit'>;
45
+ pagination?: Section<'pagination'>;
46
+ combo_chart_dimension?: Section<'comboChartDimension'>;
47
+ comparison?: Section<'comparison'>;
44
48
  labelled_metrics?: Section<'labelledMetrics'> & {
45
49
  subSectionDefinition: SubSectionDef;
46
50
  };
47
- limit?: Section<'limit'>;
48
- pagination?: Section<'pagination'>;
49
- progress_goals?: Section<'progressGoals'>;
50
- sort?: Section<'sort'>;
51
- views: Section<'views'>;
52
51
  }
53
52
  export declare type Namespace = keyof FormatPanelNamespaces | keyof DataPanelNamespaces;
54
53
  export interface FormatPanelNamespaces {
@@ -118,7 +117,6 @@ export interface FormatPanelNamespaces {
118
117
  line: SubSection<'stacked'>;
119
118
  };
120
119
  };
121
- quadrants?: Section<'quadrants'>;
122
120
  }
123
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';
124
122
  export {};
@@ -1,7 +1,6 @@
1
1
  import { AggregateMathField, AggregateNested } from '../../CustomField/types';
2
2
  import { Query } from '../../Query/types';
3
3
  import { QueryEngineConfig } from '../../QueryEngineConfig/types';
4
- import { VariableList } from '../../Variables/types';
5
4
  import { MathOperator } from '../types';
6
5
  export declare const init: (publicName: string, leftFieldId: string, leftFunction: string, operator: MathOperator, rightFieldId: string, rightFunction: string, queryEngineConfig: QueryEngineConfig, leftNested: AggregateNested | undefined, rightNested: AggregateNested | undefined) => AggregateMathField;
7
- export declare const build: (customField: AggregateMathField, variables: VariableList) => Query['measure'][number];
6
+ export declare const build: (customField: AggregateMathField) => Query['measure'][number];
@@ -1,9 +1,9 @@
1
- import { Params } from '../../../../results-driver/src/types';
2
1
  import { DataSet } from '../../DataSet/types';
3
- import * as Filter from '../../Filter';
4
2
  import { Query } from '../../Query/types';
5
3
  import { QueryAttributes } from '../../QueryAttributes/types';
6
4
  import { QueryEngineConfig } from '../../QueryEngineConfig/types';
7
5
  import { ConditionalField } from '../types';
6
+ import * as Filter from '../../Filter';
7
+ import { Params } from '../../../../results-driver/src/types';
8
8
  export declare const init: (publicName: string, fieldId: string, func: string, rule: QueryAttributes.Filter[][], queryEngineConfig: QueryEngineConfig) => ConditionalField;
9
9
  export declare const build: (field: ConditionalField, queryEngineConfig: QueryEngineConfig, dataSet: DataSet, params: Params) => Query['measure'][number];
@@ -1,5 +1,5 @@
1
1
  import { DataSet as DataSetType } from '../DataSet/types';
2
- import { AggregateMathField, AliasFieldType, ConditionalField, CustomField, DateCalculationField, MetricField, PercentageField, RoundedNumberField, RulesField, SimpleMathField } from '../CustomField/types';
2
+ import { AggregateMathField, ConditionalField, CustomField, DateCalculationField, MetricField, PercentageField, RoundedNumberField, RulesField, SimpleMathField } from '../CustomField/types';
3
3
  import { QueryAttributes } from '../QueryAttributes/types';
4
4
  import { QueryEngineConfig } from '../QueryEngineConfig/types';
5
5
  import { Query } from '../Query/types';
@@ -12,7 +12,6 @@ export declare const isPercentageField: (field: DataSetType.Field) => field is P
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
14
  export declare const isCustomBuildMetric: (field: DataSetType.Field) => field is MetricField;
15
- export declare const isAliasField: (field: DataSetType.Field) => field is AliasFieldType;
16
15
  export declare const isDateCalculation: (field: DataSetType.Field) => field is DateCalculationField;
17
16
  export declare const getCustomFieldCategory: (field: CustomField) => CustomFieldCategory;
18
17
  export declare const isCustomField: (field: DataSetType.Field) => field is CustomField;
@@ -1,7 +1,7 @@
1
- import { Params } from '../../../../results-driver/src/types';
2
1
  import { DataSet } from '../../DataSet/types';
3
2
  import { Query } from '../../Query/types';
4
3
  import { QueryAttributes } from '../../QueryAttributes/types';
4
+ import { Params } from '../../../../results-driver/src/types';
5
5
  import { QueryEngineConfig } from '../../QueryEngineConfig/types';
6
6
  import { MetricField } from '../types';
7
7
  export declare const build: (measureAttribute: QueryAttributes.Measure, customField: MetricField, dataSet: DataSet, queryEngineConfig: QueryEngineConfig, params: Params) => Query['measure'][number];
@@ -0,0 +1,2 @@
1
+ import { QueryAttributes } from '../../QueryAttributes/types';
2
+ export declare function combineFilters(filters: QueryAttributes.Filter[][] | undefined, customFilters: QueryAttributes.Filter[][] | undefined): QueryAttributes.Filter[][];
@@ -1,7 +1,6 @@
1
1
  import { Query } from '../../Query/types';
2
2
  import { QueryAttributes } from '../../QueryAttributes/types';
3
3
  import { QueryEngineConfig } from '../../QueryEngineConfig/types';
4
- import { VariableList } from '../../Variables/types';
5
4
  import { DateCalculationField } from '../types';
6
5
  export declare const init: (publicName: string, leftFieldId: string, dateCalculationFunction: DateCalculationField['dateCalculationFunction'], rightFieldId: string, queryEngineConfig: QueryEngineConfig) => DateCalculationField;
7
- export declare const build: (measureAttribute: QueryAttributes.Measure, customField: DateCalculationField, variables: VariableList) => Query['measure'][number];
6
+ export declare const build: (measureAttribute: QueryAttributes.Measure, customField: DateCalculationField) => Query['measure'][number];
@@ -1,16 +1,15 @@
1
- import { Params } from '../../../../results-driver/src/types';
2
1
  import { DataSet } from '../../DataSet/types';
2
+ import { PercentageField } from '../types';
3
3
  import { Query } from '../../Query/types';
4
4
  import { QueryAttributes } from '../../QueryAttributes/types';
5
5
  import { QueryEngineConfig } from '../../QueryEngineConfig/types';
6
- import { VariableList } from '../../Variables/types';
7
- import { PercentageField } from '../types';
6
+ import { Params } from '../../../../results-driver/src/types';
8
7
  /**
9
8
  * Creates a new custom percentage field.
10
9
  */
11
10
  export declare const init: (publicName: string, denominatorFieldId: string, denominatorAggregate: string, numeratorFieldId: string | null, numeratorAggregate: string | null, numeratorFilter: QueryAttributes['filter'], denominatorFilter: QueryAttributes['filter'], queryEngineConfig: QueryEngineConfig, denominatorScope?: PercentageField['denominatorScope']) => PercentageField;
12
11
  export declare const build: (customField: PercentageField, queryEngineConfig: QueryEngineConfig, dataSet: DataSet, _queryHasDimension: boolean, params: Params) => Query['measure'][number];
13
- export declare function buildPercentageFilters(customField: PercentageField, variables: VariableList): {
14
- queryFilterFromNumeratorFilter: import("@vizzly/sqlbuilder-public").RecursiveFilter;
15
- queryFilterFromDenominatorFilter: import("@vizzly/sqlbuilder-public").RecursiveFilter;
12
+ export declare function buildPercentageFilters(filters: QueryAttributes.Filter[][] | undefined, customField: PercentageField): {
13
+ combinedNominatorFilters: QueryAttributes.Filter[][];
14
+ combinedDenominatorFilters: QueryAttributes.Filter[][];
16
15
  };
@@ -2,6 +2,5 @@ import { RoundedNumberField } from '../../CustomField/types';
2
2
  import { Query } from '../../Query/types';
3
3
  import { QueryAttributes } from '../../QueryAttributes/types';
4
4
  import { QueryEngineConfig } from '../../QueryEngineConfig/types';
5
- import { VariableList } from '../../Variables/types';
6
5
  export declare const init: (publicName: string, fieldId: string, roundToDecimalPlaces: 0 | 2, queryEngineConfig: QueryEngineConfig) => RoundedNumberField;
7
- export declare const build: (measureAttribute: QueryAttributes.Measure, customField: RoundedNumberField, variables: VariableList) => Query['measure'][number];
6
+ export declare const build: (measureAttribute: QueryAttributes.Measure, customField: RoundedNumberField) => Query['measure'][number];
@@ -1,10 +1,10 @@
1
- import { Params } from '../../../../results-driver/src/types';
2
- import { RulesField } from '../../CustomField/types';
3
1
  import { DataSet } from '../../DataSet/types';
2
+ import { RulesField } from '../../CustomField/types';
4
3
  import { Query, QueryNameSpace } from '../../Query/types';
5
4
  import { QueryAttributes } from '../../QueryAttributes/types';
6
5
  import { QueryEngineConfig } from '../../QueryEngineConfig/types';
7
6
  import { Rules } from './types';
7
+ import { Params } from '../../../../results-driver/src/types';
8
8
  export declare const init: (publicName: string, rules: Rules[], queryEngineConfig: QueryEngineConfig) => RulesField;
9
9
  export declare const build: (measureAttribute: QueryAttributes.Measure, customField: RulesField, queryEngineConfig: QueryEngineConfig, dataSet: DataSet, params: Params) => Query['measure'][number];
10
10
  export declare const convertToCases: (rules: Rules[], queryEngineConfig: QueryEngineConfig, dataSet: DataSet, params: Params) => QueryNameSpace.Cases[];
@@ -8,4 +8,4 @@ import { Params } from '../../../../results-driver/src/types';
8
8
  import { VariableList } from '../../Variables/types';
9
9
  export declare const init: (publicName: string, leftFieldId: string, operator: MathOperator, rightFieldId: string, queryEngineConfig: QueryEngineConfig) => SimpleMathField;
10
10
  export declare const build: (measureAttribute: QueryAttributes.Measure, customField: SimpleMathField, dataSet: DataSet, params: Params) => Query['measure'][number];
11
- export declare const buildSide: (value: string, dataSet: DataSet, variables: VariableList) => QueryNameSpace.FieldDefinition;
11
+ export declare const buildSide: (value: string, dataSet: DataSet, variables: VariableList) => QueryNameSpace.FieldDefinition<string, string, string>;
@@ -58,11 +58,6 @@ export declare type RoundedNumberField = BaseCustomField & RoundedNumber;
58
58
  export declare type DateCalculationField = BaseCustomField & DateCalculation;
59
59
  export declare type AggregateMathField = BaseCustomField & AggregateMath;
60
60
  export declare type ConditionalField = BaseCustomField & Conditional;
61
- export declare type AliasFieldType = BaseCustomField & {
62
- allowedFields: Array<{
63
- id: string;
64
- }>;
65
- };
66
61
  export declare type MetricField = BaseCustomField & {
67
62
  metric: Metric;
68
63
  };
@@ -77,7 +72,7 @@ export declare type CustomBuildMetricField = BaseField & {
77
72
  metricAttributes: Metric;
78
73
  dataType: 'number';
79
74
  };
80
- export declare type CustomField = PercentageField | SimpleMathField | AggregateMathField | RulesField | RoundedNumberField | DateCalculationField | ConditionalField | MetricField | CustomBuildMetricField | AliasFieldType;
75
+ export declare type CustomField = PercentageField | SimpleMathField | AggregateMathField | RulesField | RoundedNumberField | DateCalculationField | ConditionalField | MetricField | CustomBuildMetricField;
81
76
  export declare type MathOperator = '*' | '-' | '/' | '+';
82
77
  export declare type CustomFieldCategory = 'percentage' | 'math' | 'rules' | 'roundedNumber' | 'dateCalculation' | 'conditional' | 'customBuildMetric';
83
78
  export declare enum AcceptedTypes {
@@ -40,6 +40,6 @@ export interface ProgressGoalSection<T> extends Omit<Section<T>, 'type'> {
40
40
  }
41
41
  export declare type ProgressGoalsSection = Section<'progressGoals'> & ProgressGoalSection<'progressGoals'>;
42
42
  export declare type PaginationSection = Section<'pagination'> & Pagination;
43
- export declare type DataPanelSection = DimensionSection | FieldCollectorSection | LabelledMetricSection | MetricsSection | PaginationSection | ProgressGoalsSection | Section<'comboChartDimension'> | Section<'comparison'> | Section<'country'> | Section<'customMetrics'> | Section<'dataSet'> | Section<'dateComparison'> | Section<'drilldown'> | Section<'fields'> | Section<'filter'> | Section<'limit'> | Section<'sort'> | Section<'timeDimension'> | Section<'views'> | Section<'xAxis'>;
43
+ export declare type DataPanelSection = Section<'dataSet'> | MetricsSection | FieldCollectorSection | LabelledMetricSection | Section<'customMetrics'> | DimensionSection | Section<'drilldown'> | Section<'comparison'> | Section<'comboChartDimension'> | Section<'timeDimension'> | Section<'xAxis'> | Section<'views'> | Section<'sort'> | Section<'filter'> | Section<'limit'> | PaginationSection | Section<'fields'> | Section<'country'> | ProgressGoalsSection;
44
44
  export declare type DataPanelConfig = Array<DataPanelSection>;
45
45
  export {};
@@ -28,7 +28,7 @@ export declare const takeFieldsForMeasure: (dataSet: DataSet, componentType: Com
28
28
  * provide the componentType to ensure the custom fields which are returned
29
29
  * are also supported by the componentType.
30
30
  */
31
- export declare const takeCustomFields: (dataSet: DataSet, componentType?: "progress" | "areaChart" | "areaChartV2" | "barChart" | "barChartV2" | "basicTable" | "bubbleChart" | "bubbleChartV2" | "comboChart" | "comboChartV2" | "custom" | "dataTable" | "funnelChart" | "horizontalBarChart" | "horizontalBarChartV2" | "lineChart" | "lineChartV2" | "mercatorMap" | "pieChart" | "radarChart" | "richText" | "scatterChart" | "singleStat" | "sunburstChart" | "waterfallChart" | 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[];
32
32
  export declare const takeNonCustomFields: (dataSet: DataSet) => Array<NonDateTimeField | DateTimeField | SimpleMathField>;
33
33
  export declare const takeNonPercentageCustomFields: (dataSet: DataSet) => Array<NonDateTimeField | DateTimeField | SimpleMathField>;
34
34
  export declare const removeCustomFields: (dataSet: DataSet) => DataSet;
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { TextOverride } from '../../../shared-logic/src/Translations/types';
3
2
  import { QueryAttributes } from '../QueryAttributes/types';
4
3
  import { Result as ResultType } from '../Result/types';
5
4
  import { TableRepresentation } from './types';
6
5
  export declare const resultToPivotTableRepresentation: (result: ResultType, dimension: QueryAttributes['dimension'], measure: QueryAttributes['measure'], dataSetId: string, textOverride?: TextOverride | undefined, hiddenFields?: string[] | undefined, valueAlias?: {
7
- [id: string]: import("react").ReactText;
6
+ [id: string]: string | number;
8
7
  } | import("../ValueAlias/types").ValueAliasFunction | undefined) => TableRepresentation;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DataSet } from '../DataSet/types';
3
2
  import { DateTimeField, NonDateTimeField, SupportedAggregateOption } from '../Field/types';
4
3
  import { DataType } from './types';
@@ -36,7 +35,7 @@ export declare const isValidDataType: (type: string) => boolean;
36
35
  export declare const toHumanReadable: (fieldTitle: string) => string;
37
36
  export declare const dataTypeToHumanReadable: (dataType: DataType) => string;
38
37
  export declare const toString: (value: null | string | number | Date | boolean | string[], formatDate?: ((date: Date) => string) | undefined, nullReplacement?: string) => string | null;
39
- export declare const toStringShort: (value: null | string | number | Date, nullReplacement?: string) => import("react").ReactText;
38
+ export declare const toStringShort: (value: null | string | number | Date, nullReplacement?: string) => string | number;
40
39
  export declare const removeFields: <T extends {
41
40
  id: string;
42
41
  }>(originalFields: {
@@ -96,8 +95,8 @@ export declare const upcastStringDimensionsToObject: (dimensions: QueryAttribute
96
95
  export declare const isArrayDataType: (field: {
97
96
  dataType: DataType;
98
97
  }) => boolean;
99
- export declare const supportedTransformationFunctions: (keys?: import("react").ReactText[] | undefined) => SupportedTransformationFunctions;
98
+ export declare const supportedTransformationFunctions: (keys?: (string | number)[] | undefined) => SupportedTransformationFunctions;
100
99
  export declare const supportedAggregatesFunction: (queryEngineConfig: QueryEngineConfig, dataType: DataType, supportedAggregateOptions?: string[] | undefined) => SupportedAggregateOption[];
101
100
  export declare const checkForNullValue: (dataSetId: string, dimensions: QueryAttributes.Dimension[] | null, timeDimension: QueryAttributes.TimeDimension | null, textOverride?: TextOverride | undefined, valueAlias?: {
102
- [id: string]: import("react").ReactText;
101
+ [id: string]: string | number;
103
102
  } | import("../ValueAlias/types").ValueAliasFunction | undefined, textOverrideKey?: string | undefined) => string | undefined;
@@ -0,0 +1,10 @@
1
+ import { Query } from '../Query/types';
2
+ import { QueryAttributes } from '../QueryAttributes/types';
3
+ import { QueryEngineConfig } from '../QueryEngineConfig/types';
4
+ import { DataSet } from '../DataSet/types';
5
+ import { Params } from '../../../results-driver/src/types';
6
+ export declare const addAndFilters: (filter: QueryAttributes['filter'], filterToAddToAll: QueryAttributes.Filter[]) => QueryAttributes['filter'];
7
+ export declare const filterAttributeToQueryFilter: (filters: QueryAttributes.Filter[][], queryEngineConfig: QueryEngineConfig, dataSet: DataSet, params: Params) => Query['filter'];
8
+ export declare const takeUsedFields: (filter: QueryAttributes['filter']) => string[];
9
+ export declare const isAvailable: (filter?: QueryAttributes.Filter[][] | undefined) => boolean | undefined;
10
+ export declare const isAdditionalFilter: (value: any) => boolean;
@@ -0,0 +1,6 @@
1
+ import { DataSet } from '../DataSet/types';
2
+ import { WhereClause } from './types';
3
+ import { QueryEngineConfig } from '../QueryEngineConfig/types';
4
+ import { Params } from '../../../results-driver/src/types';
5
+ export declare const filterConfigToWhere: (dataSet: DataSet, queryEngineConfig: QueryEngineConfig, params: Params) => WhereClause | undefined;
6
+ export declare const isWhereClause: (thing: any) => thing is WhereClause;
@@ -1,2 +1,3 @@
1
1
  import { QueryAttributes } from '../QueryAttributes/types';
2
2
  export declare const combineFilters: (array1: QueryAttributes.Filter[][], array2: QueryAttributes.Filter[][]) => QueryAttributes.Filter[][];
3
+ export declare function combineForCustomMetricFilters(filters: QueryAttributes.Filter[][] | undefined, customFilters: QueryAttributes.Filter[][] | undefined): QueryAttributes.Filter[][];
@@ -1,7 +1,9 @@
1
- import type { Query } from '@vizzly/sqlbuilder-public';
2
1
  export declare enum Clause {
3
2
  AND_WHERE = "andWhere",
4
3
  OR_WHERE = "orWhere",
5
4
  WHERE = "where"
6
5
  }
7
- export declare type WhereClause = Query['filter'];
6
+ export declare type WhereClause = {
7
+ type: Clause;
8
+ value: any;
9
+ };