@databrainhq/plugin 0.11.27 → 0.11.28
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.
|
@@ -8,6 +8,7 @@ type Props = {
|
|
|
8
8
|
isEnablePivotTable: boolean;
|
|
9
9
|
hasNumberKeys: boolean;
|
|
10
10
|
isEnableGauge: boolean;
|
|
11
|
+
enableCharts: string[];
|
|
11
12
|
};
|
|
12
|
-
export declare const ChartModalOptions: ({ chartType, onChartChange, isEnableTimeSeries, isEnablePivotTable, hasNumberKeys, isEnableGauge, }: Props) => React.JSX.Element;
|
|
13
|
+
export declare const ChartModalOptions: ({ chartType, onChartChange, isEnableTimeSeries, isEnablePivotTable, hasNumberKeys, isEnableGauge, enableCharts, }: Props) => React.JSX.Element;
|
|
13
14
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DrillDownSetting } from '@/types';
|
|
1
|
+
import { ChartSettingsType, DrillDownSetting } from '@/types';
|
|
2
2
|
export declare const groupByMultipleKeys: (rawData: any[] | undefined, keys: string[], measureKey: string) => any;
|
|
3
3
|
export declare const groupMeasures: (rawData: any[] | undefined, dimensionKey: string, measureKeys: string[]) => any;
|
|
4
4
|
export declare const updateGroupData: (data: any[] | undefined, keys: string[], selectedGroupBy: string[], setGroupedData: (value: React.SetStateAction<Record<string, any>[]>) => void) => void;
|
|
@@ -7,4 +7,13 @@ export declare const findKeys: (arr: Record<string, any>[]) => {
|
|
|
7
7
|
numberKeys: string[];
|
|
8
8
|
stringKeys: string[];
|
|
9
9
|
};
|
|
10
|
+
export declare const indentifyKeys: (arr: Record<string, any>[]) => {
|
|
11
|
+
numberKeys: string[];
|
|
12
|
+
otherKeys: string[];
|
|
13
|
+
};
|
|
14
|
+
export declare const getEnabledChart: (data: any[]) => string[];
|
|
15
|
+
export declare const autoDetectCharts: ({ data, setChartSettings, }: {
|
|
16
|
+
setChartSettings: React.Dispatch<React.SetStateAction<ChartSettingsType>>;
|
|
17
|
+
data: any[];
|
|
18
|
+
}) => void;
|
|
10
19
|
export declare const drilldown: (chartParams: any, drillDownSettings: DrillDownSetting | undefined, data: any[] | undefined, setDrilledLevel: React.Dispatch<React.SetStateAction<number>>, drilledLevel: number, setShowChartPopup: React.Dispatch<React.SetStateAction<boolean>>, setGroupedData: React.Dispatch<React.SetStateAction<Record<string, any>[]>>) => void;
|