@databrainhq/plugin 0.14.54 → 0.14.56
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/components/ChartSettingsPopup/components/ChartConfigure/ComboChartFormatter.d.ts +8 -0
- package/dist/components/GaugeLegend/index.d.ts +10 -0
- package/dist/components/Icons/Logos/index.d.ts +2 -0
- package/dist/components/MetricList/MetricList.d.ts +1 -0
- package/dist/components/MetricList/components/FullScreenView/index.d.ts +4 -1
- package/dist/components/MetricList/components/MetricCards/MetricCard.d.ts +4 -1
- package/dist/components/PivotTable/PivotTableV2.d.ts +8 -1
- package/dist/consts/api.d.ts +2 -0
- package/dist/consts/app.d.ts +2 -0
- package/dist/consts/metricOptions.d.ts +3 -1
- package/dist/helpers/createMetric.d.ts +7 -0
- package/dist/helpers/darkColorIdentifier.d.ts +1 -0
- package/dist/helpers/generateColorPalette.d.ts +1 -0
- package/dist/helpers/getColumnType.d.ts +1 -1
- package/dist/helpers/getComboRangeLabel.d.ts +5 -0
- package/dist/helpers/getModifiedQuery.d.ts +1 -0
- package/dist/helpers/index.d.ts +1 -0
- package/dist/helpers/timeseries.d.ts +17 -2
- package/dist/helpers/tooltipFormatter.d.ts +1 -1
- package/dist/hooks/useGenerateMetric.d.ts +1 -1
- package/dist/hooks/useMetricCard.d.ts +4 -1
- package/dist/queries/metric.query.d.ts +6 -1
- package/dist/types/app.d.ts +20 -2
- package/dist/types/metricCreate.d.ts +25 -3
- package/dist/usa-c14e93e4.mjs +15112 -0
- package/dist/utils/fetcher.d.ts +2 -0
- package/dist/utils/getChartAttributes.d.ts +59 -2
- package/dist/utils/getChartOptions.d.ts +6 -1
- package/dist/utils/getNoAxisChartOptions.d.ts +3 -1
- package/dist/webcomponents.es.js +66157 -79682
- package/dist/webcomponents.umd.js +228 -226
- package/dist/world-8db01cf5.mjs +45896 -0
- package/package.json +1 -1
package/dist/utils/fetcher.d.ts
CHANGED
|
@@ -1,4 +1,61 @@
|
|
|
1
|
-
type
|
|
1
|
+
type GetLabelsParams = {
|
|
2
|
+
data: Record<string, any>[] | undefined;
|
|
3
|
+
xAxis: string | undefined;
|
|
4
|
+
isDynamicXaxis: boolean;
|
|
5
|
+
isGroupXAxis: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare const getLabels: ({ data, xAxis, isDynamicXaxis, isGroupXAxis, }: GetLabelsParams) => string[] | undefined;
|
|
8
|
+
export type GetDatasetsParams = {
|
|
9
|
+
data: Record<string, any>[] | undefined;
|
|
10
|
+
yAxisList: string[] | undefined;
|
|
11
|
+
xAxis: string | undefined;
|
|
12
|
+
isDynamicXaxis: boolean;
|
|
13
|
+
isCumulativeBar: boolean;
|
|
14
|
+
chartType: string;
|
|
15
|
+
seriesType: string;
|
|
16
|
+
isGroupXAxis: boolean;
|
|
17
|
+
};
|
|
18
|
+
export declare const getDatasets: ({ data, yAxisList, xAxis, isDynamicXaxis, isCumulativeBar, chartType, seriesType, isGroupXAxis, }: GetDatasetsParams) => {
|
|
19
|
+
label: string;
|
|
20
|
+
data: any[] | undefined;
|
|
21
|
+
borderColor: string;
|
|
22
|
+
}[] | undefined;
|
|
23
|
+
type GetFunnelDataParams = {
|
|
24
|
+
data: Record<string, any>[] | undefined;
|
|
25
|
+
measure: string | undefined;
|
|
26
|
+
step: string | undefined;
|
|
27
|
+
};
|
|
28
|
+
export declare const getFunnelData: ({ data, measure, step }: GetFunnelDataParams) => {
|
|
29
|
+
value: any;
|
|
30
|
+
name: any;
|
|
31
|
+
}[];
|
|
32
|
+
type GetSingleValueDataParams = {
|
|
33
|
+
data: Record<string, any>[] | undefined;
|
|
34
|
+
singleValue: string | undefined;
|
|
35
|
+
};
|
|
36
|
+
export declare const getSingleValueData: ({ data, singleValue, }: GetSingleValueDataParams) => any[];
|
|
37
|
+
type GetXaxisDataParams = {
|
|
38
|
+
isTimeSeries: boolean;
|
|
39
|
+
xAxis: string | undefined;
|
|
40
|
+
data: Record<string, any>[] | undefined;
|
|
41
|
+
selectedFormat: string | undefined;
|
|
42
|
+
fillXAxis: boolean;
|
|
43
|
+
};
|
|
44
|
+
export declare const getXAxisData: ({ isTimeSeries, xAxis, data, selectedFormat, fillXAxis, }: GetXaxisDataParams) => any[];
|
|
45
|
+
export type GetSeriesDataParams = {
|
|
46
|
+
data: Record<string, any>[] | undefined;
|
|
47
|
+
xAxis: string | undefined;
|
|
48
|
+
yAxisList: string[] | undefined;
|
|
49
|
+
seriesField: string | undefined;
|
|
50
|
+
isTimeSeries: boolean;
|
|
51
|
+
selectedFormat: string | undefined;
|
|
52
|
+
fillXAxis: boolean;
|
|
53
|
+
isCumulativeBar: boolean;
|
|
54
|
+
chartType: string;
|
|
55
|
+
seriesType: string;
|
|
56
|
+
};
|
|
57
|
+
export declare const getSeriesData: ({ data, seriesField, isTimeSeries, xAxis, selectedFormat, fillXAxis, yAxisList, isCumulativeBar, chartType, seriesType, }: GetSeriesDataParams) => any;
|
|
58
|
+
export type GetChartAttributesParams = {
|
|
2
59
|
data: Record<string, any>[] | undefined;
|
|
3
60
|
yAxisList: string[] | undefined;
|
|
4
61
|
xAxis: string | undefined;
|
|
@@ -15,7 +72,7 @@ type Params = {
|
|
|
15
72
|
seriesType: string;
|
|
16
73
|
isGroupXAxis: boolean;
|
|
17
74
|
};
|
|
18
|
-
export declare const getChartAttributes: ({ data, measure, singleValue, step, xAxis, yAxisList, seriesField, isTimeSeries, selectedFormat, fillXAxis, isDynamicXaxis, isCumulativeBar, chartType, seriesType, isGroupXAxis, }:
|
|
75
|
+
export declare const getChartAttributes: ({ data, measure, singleValue, step, xAxis, yAxisList, seriesField, isTimeSeries, selectedFormat, fillXAxis, isDynamicXaxis, isCumulativeBar, chartType, seriesType, isGroupXAxis, }: GetChartAttributesParams) => {
|
|
19
76
|
labels: string[];
|
|
20
77
|
datasets: any;
|
|
21
78
|
funnelData: {
|
|
@@ -27,5 +27,10 @@ export type GetChartOptionsParams = {
|
|
|
27
27
|
chartOptions: ChartSettingsType;
|
|
28
28
|
data: Record<string, any>[];
|
|
29
29
|
colors?: string[];
|
|
30
|
+
geoJsonData?: any;
|
|
30
31
|
};
|
|
31
|
-
export declare const
|
|
32
|
+
export declare const getLegendData: ({ chartOptions, data, }: {
|
|
33
|
+
chartOptions: ChartSettingsType;
|
|
34
|
+
data: Record<string, any>[];
|
|
35
|
+
}) => any;
|
|
36
|
+
export declare const getChartOptions: ({ chartOptions, data, colors, geoJsonData, }: GetChartOptionsParams) => Record<string, any>;
|
|
@@ -10,5 +10,7 @@ export type GetNoAxisChartOptionsParams = {
|
|
|
10
10
|
name: any;
|
|
11
11
|
}[];
|
|
12
12
|
singleValueData?: any;
|
|
13
|
+
geoJsonData?: any;
|
|
14
|
+
mapColors?: string[];
|
|
13
15
|
};
|
|
14
|
-
export declare const getNoAxisChartOptions: ({ chartOptions, data, colors, datasets, funnelData, labels, singleValueData, }: GetNoAxisChartOptionsParams) => Record<string, any>;
|
|
16
|
+
export declare const getNoAxisChartOptions: ({ chartOptions, data, colors, datasets, funnelData, labels, singleValueData, geoJsonData, mapColors, }: GetNoAxisChartOptionsParams) => Record<string, any>;
|