@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.
- package/dist/charts/src/BubbleChart/BubbleChart.d.ts +1 -1
- package/dist/charts/src/FunnelChart/FunnelChart.d.ts +0 -1
- package/dist/charts/src/ScatterChart/ScatterChart.d.ts +2 -2
- package/dist/charts/src/XYChart/types.d.ts +0 -3
- package/dist/charts/src/useXAxisLabelCount.d.ts +1 -1
- package/dist/charts/src/v2/components/AreaChart/AreaChart.d.ts +0 -1
- package/dist/charts/src/v2/components/Axis/AxisBottom.d.ts +1 -2
- package/dist/charts/src/v2/components/Axis/AxisLeft.d.ts +3 -3
- package/dist/charts/src/v2/components/BarChart/BarChart.d.ts +4 -6
- package/dist/charts/src/v2/components/BubbleChart/BubbleChart.d.ts +1 -1
- package/dist/charts/src/v2/components/ChartWrapper/ChartWrapper.d.ts +2 -4
- package/dist/charts/src/v2/components/ComboChart/ComboChart.d.ts +0 -1
- package/dist/charts/src/v2/components/LineChart/LineChart.d.ts +7 -12
- package/dist/charts/src/v2/components/RadarChart/Polygons.d.ts +1 -1
- package/dist/charts/src/v2/components/RadarChart/types.d.ts +0 -4
- package/dist/charts/src/v2/components/Tooltip/CrosshairCircle.d.ts +1 -1
- package/dist/charts/src/v2/components/Tooltip/Tooltip.d.ts +1 -2
- package/dist/charts/src/v2/components/WaterfallChart/Tooltip.d.ts +2 -2
- package/dist/charts/src/v2/components/WaterfallChart/WaterfallChart.d.ts +2 -4
- package/dist/charts/src/v2/components/hooks/useBottomAxisBaselineShift.d.ts +10 -0
- package/dist/charts/src/v2/index.d.ts +2 -4
- package/dist/charts/src/v2/utils/buildMargin.d.ts +0 -1
- package/dist/charts/src/v2/utils/components/BarGroup.d.ts +5 -9
- package/dist/charts/src/v2/utils/components/BarStacked.d.ts +5 -10
- package/dist/charts/src/v2/utils/getBarFill.d.ts +1 -1
- package/dist/charts/src/v2/utils/getTooltipData.d.ts +5 -5
- package/dist/{shared-ui → dashboard}/src/SetupError.d.ts +2 -2
- package/dist/{shared-ui → dashboard}/src/contexts/GlobalProvider/GlobalProvider.d.ts +2 -4
- package/dist/{shared-ui → dashboard}/src/contexts/GlobalProvider/buildImplementationMeta.d.ts +1 -1
- package/dist/{shared-ui → dashboard}/src/contexts/GlobalProvider/useGlobalProvider.d.ts +43 -75
- package/dist/{shared-ui → dashboard}/src/contexts/GlobalProvider/useOnDashboardLoadCallback.d.ts +2 -3
- package/dist/{shared-ui → dashboard}/src/contexts/SessionContext/useSessionContext.d.ts +0 -1
- package/dist/dashboard/src/index.d.ts +0 -1
- package/dist/dashboard/src/types.d.ts +128 -1
- package/dist/dashboard.cjs.development.js +15053 -18233
- package/dist/dashboard.cjs.production.min.js +1 -1
- package/dist/dashboard.esm.js +15073 -18258
- package/dist/results-driver/src/driver/VizzlyQuery/AdditionalFilter/toQueries.d.ts +3 -7
- package/dist/results-driver/src/driver/VizzlyQuery/AreaChart/toQueries.d.ts +2 -2
- package/dist/results-driver/src/driver/VizzlyQuery/AreaChartV2/toQueries.d.ts +2 -2
- package/dist/results-driver/src/driver/VizzlyQuery/BarChart/toQueries.d.ts +2 -2
- package/dist/results-driver/src/driver/VizzlyQuery/BarChartV2/toQueries.d.ts +2 -2
- package/dist/results-driver/src/driver/VizzlyQuery/BasicTable/toQueries.d.ts +2 -2
- package/dist/results-driver/src/driver/VizzlyQuery/FunnelChart/toQueries.d.ts +2 -2
- package/dist/results-driver/src/driver/VizzlyQuery/HorizontalBarChart/toQueries.d.ts +2 -2
- package/dist/results-driver/src/driver/VizzlyQuery/LineChart/toQueries.d.ts +2 -2
- package/dist/results-driver/src/driver/VizzlyQuery/LineChartV2/toQueries.d.ts +2 -2
- package/dist/results-driver/src/driver/VizzlyQuery/PieChart/toQueries.d.ts +2 -2
- package/dist/results-driver/src/driver/VizzlyQuery/PivotTable/toQueries.d.ts +2 -2
- package/dist/results-driver/src/driver/VizzlyQuery/RadarChart/toQueries.d.ts +2 -2
- package/dist/results-driver/src/driver/VizzlyQuery/RichText/toQueries.d.ts +2 -2
- package/dist/results-driver/src/driver/VizzlyQuery/SunburstChart/toQueries.d.ts +2 -2
- package/dist/results-driver/src/driver/VizzlyQuery/WaterfallChart/toQueries.d.ts +3 -9
- package/dist/results-driver/src/driver/VizzlyQuery/buildVizzlyQuery.d.ts +5 -5
- package/dist/results-driver/src/driver/VizzlyQuery/commonToQueries.d.ts +1 -1
- package/dist/results-driver/src/types.d.ts +0 -2
- package/dist/services/src/index.d.ts +0 -5
- package/dist/shared-logic/src/AdditionalFilter/AdditionalFilter.d.ts +7 -9
- package/dist/shared-logic/src/AdditionalFilter/FilterConfig.d.ts +3 -14
- package/dist/shared-logic/src/AdditionalFilter/toQueryAttributesFilter.d.ts +2 -2
- package/dist/shared-logic/src/AdditionalFilter/types.d.ts +2 -6
- package/dist/shared-logic/src/BarChartV2/buildBarChartRepresentation.d.ts +1 -1
- package/dist/shared-logic/src/BubbleChart/types.d.ts +0 -7
- package/dist/shared-logic/src/BubbleChartV2/buildBubbleChartRepresentation.d.ts +7 -5
- package/dist/shared-logic/src/BubbleChartV2/getScaleAndTicks.d.ts +3 -4
- package/dist/shared-logic/src/BubbleChartV2/types.d.ts +0 -10
- package/dist/shared-logic/src/Callbacks/cell.funcs.d.ts +1 -1
- package/dist/shared-logic/src/ChartsV2/adjustTicks.d.ts +4 -7
- package/dist/shared-logic/src/ChartsV2/types.d.ts +0 -2
- package/dist/shared-logic/src/ComboChartV2/buildComboChartRepresentation.d.ts +3 -3
- package/dist/shared-logic/src/Component/setAttributes.d.ts +1 -1
- package/dist/shared-logic/src/Component/sharedSchemas.d.ts +0 -2
- package/dist/shared-logic/src/Component/types.d.ts +7 -44
- package/dist/shared-logic/src/ComponentInterface/types/namespaces.types.d.ts +15 -17
- package/dist/shared-logic/src/CustomField/AggregateMath/index.d.ts +1 -2
- package/dist/shared-logic/src/CustomField/Conditional/index.d.ts +2 -2
- package/dist/shared-logic/src/CustomField/CustomField.d.ts +1 -2
- package/dist/shared-logic/src/CustomField/CustomMetric/build.d.ts +1 -1
- package/dist/shared-logic/src/CustomField/CustomMetric/combineFilters.d.ts +2 -0
- package/dist/shared-logic/src/CustomField/DateCalculation/index.d.ts +1 -2
- package/dist/shared-logic/src/CustomField/Percentage/index.d.ts +5 -6
- package/dist/shared-logic/src/CustomField/RoundedNumber/index.d.ts +1 -2
- package/dist/shared-logic/src/CustomField/Rules/index.d.ts +2 -2
- package/dist/shared-logic/src/CustomField/SimpleMath/index.d.ts +1 -1
- package/dist/shared-logic/src/CustomField/types.d.ts +1 -6
- package/dist/shared-logic/src/DataPanelConfig/types.d.ts +1 -1
- package/dist/shared-logic/src/DataSet/DataSet.d.ts +1 -1
- package/dist/shared-logic/src/DataTable/resultToPivotTableRepresentation.d.ts +1 -2
- package/dist/shared-logic/src/Field/Field.d.ts +3 -4
- package/dist/shared-logic/src/Filter/Filter.d.ts +10 -0
- package/dist/shared-logic/src/Filter/Where.d.ts +6 -0
- package/dist/shared-logic/src/Filter/combineFilters.d.ts +1 -0
- package/dist/shared-logic/src/Filter/types.d.ts +4 -2
- package/dist/shared-logic/src/FormatPanelConfig/types.d.ts +1 -3
- package/dist/shared-logic/src/Generate/query.d.ts +3 -3
- package/dist/shared-logic/src/JSQueryEngine/types.d.ts +8 -2
- package/dist/shared-logic/src/Query/Query.d.ts +22 -0
- package/dist/shared-logic/src/Query/buildFromQueryAttributes.d.ts +3 -3
- package/dist/shared-logic/src/Query/types.d.ts +109 -6
- package/dist/shared-logic/src/Result/Result.d.ts +2 -2
- package/dist/shared-logic/src/Result/formattedResultToSeries.d.ts +1 -1
- package/dist/shared-logic/src/TimeDimension/TimeDimension.d.ts +1 -3
- package/dist/shared-logic/src/ValueAlias/ValueAlias.d.ts +1 -2
- package/dist/shared-logic/src/VizzlyState/index.d.ts +0 -2
- package/dist/shared-logic/src/WaterfallChart/buildWaterfallChartRepresentation.d.ts +3 -7
- package/dist/shared-logic/src/WaterfallChart/getRepresentationData.d.ts +2 -5
- package/dist/shared-logic/src/WaterfallChart/getYTicks.d.ts +1 -1
- package/dist/shared-logic/src/WaterfallChart/types.d.ts +0 -1
- package/dist/shared-logic/src/api/queryEngine/getRunQueriesCallback.d.ts +1 -2
- package/dist/shared-logic/src/api/vizzly/aiHelpers/view.d.ts +1 -1
- package/dist/shared-logic/src/getComponentInterface.d.ts +1 -1
- package/dist/shared-logic/src/utils/feedback.d.ts +2 -2
- package/dist/shared-ui/src/api/useQueryEffect.d.ts +4 -5
- package/dist/shared-ui/src/base/ListView/index.d.ts +2 -2
- package/dist/shared-ui/src/base/Panel/Panel.d.ts +1 -1
- package/dist/shared-ui/src/base/Section/Section.d.ts +1 -1
- package/dist/shared-ui/src/base/Table/Table.d.ts +1 -1
- package/dist/shared-ui/src/components/AdditionalFilter/AdvancedPicker/AdvancedSelectFilter.d.ts +1 -1
- package/dist/shared-ui/src/components/AdditionalFilter/FiltersModal.d.ts +1 -1
- package/dist/shared-ui/src/components/AdditionalFilter/asyncLoadFilterOptions.d.ts +1 -2
- package/dist/shared-ui/src/components/AdditionalFilter/labelWidth.d.ts +0 -15
- package/dist/shared-ui/src/components/AreaChart/AreaChartView.d.ts +1 -1
- package/dist/shared-ui/src/components/BarChartV2/BarChartV2View.d.ts +3 -3
- package/dist/shared-ui/src/components/BubbleChart/BubbleChartView.d.ts +1 -1
- package/dist/shared-ui/src/components/ChartHelper.d.ts +1 -1
- package/dist/shared-ui/src/components/ComboChart/ComboChartView.d.ts +1 -1
- package/dist/shared-ui/src/components/Component/types.d.ts +3 -2
- package/dist/shared-ui/src/components/Component.d.ts +2 -0
- package/dist/shared-ui/src/components/DataTable/DataTableRow.d.ts +1 -1
- package/dist/shared-ui/src/components/DataTable/buildTableRepresentation.d.ts +1 -2
- package/dist/shared-ui/src/components/DataTable/helpers.d.ts +1 -2
- package/dist/shared-ui/src/components/Drilldown/useDrilldownSelection.d.ts +1 -1
- package/dist/shared-ui/src/components/FormatPropsEditor/FormatPanelFromConfig.d.ts +1 -1
- package/dist/shared-ui/src/components/HeadlineStats/HeadlineStats.d.ts +2 -2
- package/dist/shared-ui/src/components/LineChart/LineChartView.d.ts +1 -1
- package/dist/shared-ui/src/components/MercatorMap/View.d.ts +1 -1
- package/dist/shared-ui/src/components/PieChart/PieChartView.d.ts +4 -4
- package/dist/shared-ui/src/components/Progress/ProgressView.d.ts +1 -1
- package/dist/shared-ui/src/components/ScatterChart/ScatterChartView.d.ts +1 -1
- package/dist/shared-ui/src/components/SingleStat/SingleStatView.d.ts +1 -1
- package/dist/shared-ui/src/components/Studio/StudioApp/Cell.d.ts +2 -0
- package/dist/shared-ui/src/components/Studio/StudioContexts.d.ts +1 -1
- package/dist/shared-ui/src/components/SunburstChart/SunburstChartView.d.ts +2 -5
- package/dist/shared-ui/src/components/SunburstChart/convertDataToSunburstData.d.ts +2 -8
- package/dist/shared-ui/src/components/WaterfallChart/WaterfallChartView.d.ts +3 -3
- package/dist/shared-ui/src/components/useComponentEffect.d.ts +2 -2
- package/dist/shared-ui/src/contexts/DashboardBehaviour/context.d.ts +2 -2
- package/dist/shared-ui/src/contexts/DashboardBehaviour/types.d.ts +14 -19
- package/dist/shared-ui/src/contexts/DashboardContext/context.d.ts +1 -4
- package/dist/shared-ui/src/contexts/DashboardContext/types.d.ts +41 -27
- package/dist/shared-ui/src/headlessui/components/switch/switch.d.ts +1 -1
- package/dist/shared-ui/src/headlessui/hooks/use-disposables.d.ts +1 -1
- package/dist/shared-ui/src/headlessui/utils/disposables.d.ts +1 -1
- package/dist/shared-ui/src/hooks/useVizzly.d.ts +1 -1
- package/dist/shared-ui/src/library/DataPanel/CustomFieldInput/Rules/RulesModal.d.ts +1 -1
- package/dist/shared-ui/src/library/DataPanel/CustomFieldInput/types.d.ts +4 -4
- package/dist/shared-ui/src/library/DataPanel/CustomMetricsInput.d.ts +1 -1
- package/dist/shared-ui/src/library/DataPanel/sections/index.d.ts +0 -1
- package/dist/shared-ui/src/library/Editor/useEditor.d.ts +2 -0
- package/dist/shared-ui/src/library/Library/ComponentInLibrary.d.ts +1 -0
- package/dist/shared-ui/src/library/Library/Library.d.ts +4 -0
- package/dist/shared-ui/src/library/Library/types.d.ts +2 -0
- package/dist/shared-ui/src/library/StylePanel/AxisPreferenceSection.d.ts +1 -1
- package/package.json +3 -4
- package/dist/charts/src/ScatterChart/types.d.ts +0 -32
- package/dist/charts/src/v2/components/DataLabel/DataLabel.d.ts +0 -11
- package/dist/charts/src/v2/components/DataLabel/index.d.ts +0 -1
- package/dist/charts/src/v2/components/GridColumns/GridRows.d.ts +0 -10
- package/dist/charts/src/v2/components/HorizontalBarChart/HorizontalBarChart.d.ts +0 -27
- package/dist/charts/src/v2/components/HorizontalBarChart/getTooltipDataForHorizontalChart.d.ts +0 -25
- package/dist/charts/src/v2/components/HorizontalBarChart/index.d.ts +0 -1
- package/dist/charts/src/v2/components/HorizontalBarChart/useScalesForHorizontalChart.d.ts +0 -4
- package/dist/charts/src/v2/components/QuadrantOverlay/QuadrantOverlay.d.ts +0 -10
- package/dist/charts/src/v2/components/QuadrantOverlay/index.d.ts +0 -2
- package/dist/charts/src/v2/components/RadarChart/RadarCrosshairCircle.d.ts +0 -19
- package/dist/charts/src/v2/components/RadarChart/shared.d.ts +0 -2
- package/dist/charts/src/v2/components/VerticalGoalLine/VerticalGoalLine.d.ts +0 -11
- package/dist/charts/src/v2/components/VerticalGoalLine/VerticalGoalLines.d.ts +0 -11
- package/dist/charts/src/v2/components/VerticalGoalLine/index.d.ts +0 -2
- package/dist/charts/src/v2/components/WaterfallChart/waterfall.utils.d.ts +0 -2
- package/dist/charts/src/v2/components/hooks/useGroupingAxisBaselineShift.d.ts +0 -11
- package/dist/charts/src/v2/utils/components/HorizontalBarGroup.d.ts +0 -28
- package/dist/charts/src/v2/utils/components/HorizontalBarStacked.d.ts +0 -23
- package/dist/charts/src/v2/utils/getRadarTooltipData.d.ts +0 -21
- package/dist/results-driver/src/driver/VizzlyQuery/HorizontalBarChartV2/toQueries.d.ts +0 -4
- package/dist/shared-logic/src/AliasFields/types.d.ts +0 -5
- package/dist/shared-logic/src/ChartsV2/convertToStackedPercentages.d.ts +0 -1
- package/dist/shared-logic/src/CustomField/AliasField/index.d.ts +0 -7
- package/dist/shared-logic/src/CustomField/CustomMetric/combineForCustomMetricFilters.d.ts +0 -2
- package/dist/shared-logic/src/CustomField/constants.d.ts +0 -15
- package/dist/shared-logic/src/DataLabel/index.d.ts +0 -17
- package/dist/shared-logic/src/HorizontalBarChartV2/attributesSchema.d.ts +0 -3
- package/dist/shared-logic/src/HorizontalBarChartV2/buildHorizontalBarChartRepresentation.d.ts +0 -41
- package/dist/shared-logic/src/HorizontalBarChartV2/constants.d.ts +0 -3
- package/dist/shared-logic/src/HorizontalBarChartV2/index.d.ts +0 -4
- package/dist/shared-logic/src/HorizontalBarChartV2/setAttributes.d.ts +0 -4
- package/dist/shared-logic/src/HorizontalBarChartV2/types.d.ts +0 -41
- package/dist/shared-logic/src/PivotConfigForMetricAxis/index.d.ts +0 -3
- package/dist/shared-logic/src/Result/formattedResultToSeriesForMetricAxis.d.ts +0 -25
- package/dist/shared-ui/src/components/HorizontalBarChartV2/HorizontalBarChartV2.d.ts +0 -3
- package/dist/shared-ui/src/components/HorizontalBarChartV2/HorizontalBarChartV2View.d.ts +0 -17
- package/dist/shared-ui/src/components/HorizontalBarChartV2/index.d.ts +0 -2
- package/dist/shared-ui/src/contexts/AliasFields/useInteractiveFields.d.ts +0 -6
- package/dist/shared-ui/src/contexts/GlobalProvider/GlobalProvider.test.d.ts +0 -1
- package/dist/shared-ui/src/errors/InvalidProperty.d.ts +0 -5
- package/dist/shared-ui/src/library/DataPanel/DateComparisonModal/DateComparisonModal.d.ts +0 -12
- package/dist/shared-ui/src/library/DataPanel/DateComparisonModal/Rules.d.ts +0 -11
- package/dist/shared-ui/src/library/DataPanel/DateComparisonModal/types.d.ts +0 -13
- package/dist/shared-ui/src/library/DataPanel/DateComparisonModal/useCustomMetric.d.ts +0 -17
- package/dist/shared-ui/src/library/DataPanel/sections/DateComparisonSection.d.ts +0 -8
- package/dist/shared-ui/src/library/StylePanel/Quadrant/QuadrantSection.d.ts +0 -6
- package/dist/shared-ui/src/types/dashboard.d.ts +0 -130
- /package/dist/charts/src/v2/components/{GridColumns → GridRows}/shared.d.ts +0 -0
- /package/dist/{shared-ui → dashboard}/src/contexts/SessionContext/getStrategy.d.ts +0 -0
- /package/dist/{shared-ui → dashboard}/src/contexts/SessionContext/index.d.ts +0 -0
- /package/dist/{shared-ui → dashboard}/src/contexts/useDashboardStrategy/runStrategy.d.ts +0 -0
- /package/dist/{shared-ui → dashboard}/src/contexts/useDashboardStrategy/types.d.ts +0 -0
- /package/dist/{shared-ui → dashboard}/src/contexts/useDashboardStrategy.d.ts +0 -0
- /package/dist/{shared-ui → dashboard}/src/contexts/useScheduledReports.d.ts +0 -0
- /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
|
-
|
|
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:
|
|
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,
|
|
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:
|
|
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 =
|
|
5
|
-
export declare
|
|
6
|
-
export declare function
|
|
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
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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
|
|
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' | '
|
|
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
|
|
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'
|
|
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
|
|
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
|
-
|
|
33
|
-
|
|
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
|
-
|
|
36
|
+
field_grouping?: Section<'fieldCollector'>;
|
|
37
|
+
progress_goals?: Section<'progressGoals'>;
|
|
38
|
+
drilldown?: Section<'drilldown'>;
|
|
39
39
|
field_x_axis?: Section<'fieldCollector'>;
|
|
40
|
-
|
|
41
|
-
|
|
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
|
|
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,
|
|
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];
|
|
@@ -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
|
|
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 {
|
|
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(
|
|
14
|
-
|
|
15
|
-
|
|
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
|
|
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
|
|
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 =
|
|
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" | "
|
|
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]:
|
|
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) =>
|
|
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?:
|
|
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]:
|
|
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 =
|
|
6
|
+
export declare type WhereClause = {
|
|
7
|
+
type: Clause;
|
|
8
|
+
value: any;
|
|
9
|
+
};
|