@databrainhq/plugin 0.8.13 → 0.8.15
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/README.md +26 -26
- package/dist/components/ChartPopup/index.d.ts +5 -2
- package/dist/components/Charts/AreaChart.d.ts +1 -1
- package/dist/components/Charts/BarChart.d.ts +2 -6
- package/dist/components/Charts/BoxPlot.d.ts +1 -1
- package/dist/components/Charts/BubbleChart.d.ts +1 -1
- package/dist/components/Charts/ComboChart.d.ts +1 -1
- package/dist/components/Charts/DoughnutChart.d.ts +1 -1
- package/dist/components/Charts/FunnelChart.d.ts +1 -1
- package/dist/components/Charts/GaugeChart.d.ts +1 -1
- package/dist/components/Charts/Histogram.d.ts +1 -1
- package/dist/components/Charts/LineChart.d.ts +2 -6
- package/dist/components/Charts/PieChart.d.ts +1 -1
- package/dist/components/Charts/RowChart.d.ts +1 -1
- package/dist/components/Charts/SankeyChart.d.ts +1 -1
- package/dist/components/Charts/ScatterChart.d.ts +1 -1
- package/dist/components/Charts/StackedBarChart.d.ts +1 -1
- package/dist/components/Charts/SteppedAreaChart.d.ts +1 -1
- package/dist/components/Charts/WaterfallChart.d.ts +1 -1
- package/dist/components/DrillBreadCrumb/index.d.ts +6 -0
- package/dist/components/MetricChart/MetricChart.d.ts +2 -4
- package/dist/components/MetricCreation/components/ConstructMetric/ConstructMetric.d.ts +1 -1
- package/dist/components/MetricCreation/components/ConstructMetric/components/MetricForm/index.d.ts +1 -1
- package/dist/components/MetricCreation/components/MetricOutput/MetricOutput.d.ts +1 -1
- package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/index.d.ts +5 -3
- package/dist/components/index.d.ts +2 -0
- package/dist/helpers/groupBy.d.ts +4 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useEmbeddedDashboard.d.ts +1 -0
- package/dist/hooks/useUnderlyingData.d.ts +1 -1
- package/dist/index.es.js +1218 -1530
- package/dist/index.umd.js +73 -72
- package/dist/style.css +1 -1
- package/dist/types/metricCreate.d.ts +5 -5
- package/dist/typings.d.ts +17 -17
- package/dist/utils/generated/graphql.d.ts +22 -1
- package/package.json +98 -98
package/README.md
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
# @databrainhq/plugin
|
|
2
|
-
|
|
3
|
-
> Databrain app ui plugin.
|
|
4
|
-
|
|
5
|
-
[](https://www.npmjs.com/package/@databrainhq/plugin) [](https://standardjs.com)
|
|
6
|
-
|
|
7
|
-
## Install
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
npm install @databrainhq/plugin
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Usage
|
|
14
|
-
|
|
15
|
-
```tsx
|
|
16
|
-
import { Dashboard } from '@databrainhq/plugin';
|
|
17
|
-
import '@databrainhq/plugin/dist/style.css';
|
|
18
|
-
|
|
19
|
-
const Example = () => {
|
|
20
|
-
return <Dashboard token={/* Your Guest Token */} />;
|
|
21
|
-
};
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## License
|
|
25
|
-
|
|
26
|
-
MIT © [databrainhq](https://github.com/databrainhq)
|
|
1
|
+
# @databrainhq/plugin
|
|
2
|
+
|
|
3
|
+
> Databrain app ui plugin.
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@databrainhq/plugin) [](https://standardjs.com)
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @databrainhq/plugin
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```tsx
|
|
16
|
+
import { Dashboard } from '@databrainhq/plugin';
|
|
17
|
+
import '@databrainhq/plugin/dist/style.css';
|
|
18
|
+
|
|
19
|
+
const Example = () => {
|
|
20
|
+
return <Dashboard token={/* Your Guest Token */} />;
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## License
|
|
25
|
+
|
|
26
|
+
MIT © [databrainhq](https://github.com/databrainhq)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { GetUnderlyingData } from '@/types';
|
|
2
|
+
import { ClickActionsConfig, GetUnderlyingData } from '@/types';
|
|
3
3
|
export declare type ChartPopupProps = React.PropsWithChildren & {
|
|
4
4
|
getUnderlyingData: GetUnderlyingData;
|
|
5
5
|
value: any;
|
|
@@ -7,8 +7,11 @@ export declare type ChartPopupProps = React.PropsWithChildren & {
|
|
|
7
7
|
menuClass?: string;
|
|
8
8
|
menuContainerClass?: string;
|
|
9
9
|
isOpen: boolean;
|
|
10
|
+
drilldown?: () => void;
|
|
11
|
+
clickBehaviourConfigs: ClickActionsConfig['chart'];
|
|
10
12
|
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
11
13
|
position?: 'left' | 'right' | 'top' | 'bottom' | 'left-bottom-end' | 'right-bottom-end' | 'left-top-end' | 'right-top-end' | 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right' | 'left-bottom' | 'left-top' | 'right-bottom' | 'right-top' | 'center';
|
|
12
14
|
};
|
|
13
|
-
declare const
|
|
15
|
+
export declare const ChartPopup: ({ position, menuContainerClass, menuClass, isOpen, setOpen, value, columnName, getUnderlyingData, drilldown, clickBehaviourConfigs, }: ChartPopupProps) => JSX.Element;
|
|
16
|
+
declare const _default: React.MemoExoticComponent<({ position, menuContainerClass, menuClass, isOpen, setOpen, value, columnName, getUnderlyingData, drilldown, clickBehaviourConfigs, }: ChartPopupProps) => JSX.Element>;
|
|
14
17
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const AreaChart: ({ data, margins, legendSettings, labelSettings, axisSettings, colors,
|
|
2
|
+
declare const AreaChart: ({ data, margins, legendSettings, labelSettings, axisSettings, colors, backGroundColor, customSettings, chartRef, handleChartRightClick, }: any) => JSX.Element;
|
|
3
3
|
export default AreaChart;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import EChartsReact from 'echarts-for-react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { ClickActionsConfig } from '@/types';
|
|
4
3
|
declare type Props = {
|
|
5
4
|
data: {
|
|
6
5
|
labels: string[] | undefined;
|
|
@@ -11,17 +10,14 @@ declare type Props = {
|
|
|
11
10
|
}[] | undefined;
|
|
12
11
|
};
|
|
13
12
|
colors?: string[];
|
|
14
|
-
updateGroup?: (value: string) => void;
|
|
15
|
-
isEnableGroupBy?: boolean;
|
|
16
13
|
backGroundColor: any;
|
|
17
14
|
legendSettings: any;
|
|
18
15
|
labelSettings: any;
|
|
19
16
|
axisSettings: any;
|
|
20
17
|
margins: any;
|
|
21
18
|
customSettings: any;
|
|
22
|
-
chartClickConfig: ClickActionsConfig['chart'];
|
|
23
19
|
chartRef: React.RefObject<EChartsReact>;
|
|
24
|
-
handleChartRightClick
|
|
20
|
+
handleChartRightClick?: (params: any) => void;
|
|
25
21
|
};
|
|
26
|
-
declare const BarChart: ({ data, colors,
|
|
22
|
+
declare const BarChart: ({ data, colors, backGroundColor, legendSettings, labelSettings, axisSettings, margins, customSettings, chartRef, handleChartRightClick, }: Props) => JSX.Element;
|
|
27
23
|
export default BarChart;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const BoxPlot: ({ data, margins, legendSettings, axisSettings, colors, customSettings,
|
|
2
|
+
declare const BoxPlot: ({ data, margins, legendSettings, axisSettings, colors, customSettings, chartRef, handleChartRightClick, }: any) => JSX.Element;
|
|
3
3
|
export default BoxPlot;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const BubbleChart: ({ data, margins, legendSettings, labelSettings, axisSettings, colors,
|
|
2
|
+
declare const BubbleChart: ({ data, margins, legendSettings, labelSettings, axisSettings, colors, customSettings, chartRef, handleChartRightClick, }: any) => JSX.Element;
|
|
3
3
|
export default BubbleChart;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const ComboChart: ({ data, margins, legendSettings, labelSettings, colors,
|
|
2
|
+
declare const ComboChart: ({ data, margins, legendSettings, labelSettings, colors, backGroundColor, customSettings, chartRef, handleChartRightClick, }: any) => JSX.Element;
|
|
3
3
|
export default ComboChart;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const DoughnutChart: ({ data, margins, legendSettings, labelSettings, colors,
|
|
2
|
+
declare const DoughnutChart: ({ data, margins, legendSettings, labelSettings, colors, chartRef, handleChartRightClick, }: any) => JSX.Element;
|
|
3
3
|
export default DoughnutChart;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const FunnelChart: ({ funnelData, margins, legendSettings, labelSettings, colors,
|
|
2
|
+
declare const FunnelChart: ({ funnelData, margins, legendSettings, labelSettings, colors, chartRef, handleChartRightClick, customSettings, }: any) => JSX.Element;
|
|
3
3
|
export default FunnelChart;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const GaugeChart: ({ gaugeData, margins, legendSettings, colors,
|
|
2
|
+
declare const GaugeChart: ({ gaugeData, margins, legendSettings, colors, chartRef, handleChartRightClick, }: any) => JSX.Element;
|
|
3
3
|
export default GaugeChart;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const Histogram: ({ data, margins, legendSettings, labelSettings, axisSettings, chartRef, colors,
|
|
2
|
+
declare const Histogram: ({ data, margins, legendSettings, labelSettings, axisSettings, chartRef, colors, backGroundColor, customSettings, handleChartRightClick, }: any) => JSX.Element;
|
|
3
3
|
export default Histogram;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import EChartsReact from 'echarts-for-react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { AxisSettings, CustomSettings, LabelSettings, LegendSettings } from '@/types/app';
|
|
4
|
-
import { ClickActionsConfig } from '@/types';
|
|
5
4
|
declare type Props = {
|
|
6
5
|
data: {
|
|
7
6
|
labels: string[] | undefined;
|
|
@@ -16,12 +15,9 @@ declare type Props = {
|
|
|
16
15
|
labelSettings: LabelSettings;
|
|
17
16
|
axisSettings: AxisSettings;
|
|
18
17
|
colors?: string[];
|
|
19
|
-
updateGroup?: (value: string) => void;
|
|
20
|
-
isEnableGroupBy?: boolean;
|
|
21
18
|
customSettings: CustomSettings;
|
|
22
|
-
chartClickConfig: ClickActionsConfig['chart'];
|
|
23
19
|
chartRef: React.RefObject<EChartsReact>;
|
|
24
|
-
handleChartRightClick
|
|
20
|
+
handleChartRightClick?: (params: any) => void;
|
|
25
21
|
};
|
|
26
|
-
declare const LineChart: ({ data, margins, legendSettings, labelSettings, axisSettings, colors,
|
|
22
|
+
declare const LineChart: ({ data, margins, legendSettings, labelSettings, axisSettings, colors, customSettings, chartRef, handleChartRightClick, }: Props) => JSX.Element;
|
|
27
23
|
export default LineChart;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const PieChart: ({ data, margins, legendSettings, labelSettings, chartRef, colors,
|
|
2
|
+
declare const PieChart: ({ data, margins, legendSettings, labelSettings, chartRef, colors, handleChartRightClick, }: any) => JSX.Element;
|
|
3
3
|
export default PieChart;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const RowChart: ({ data, margins, legendSettings, labelSettings, chartRef, colors,
|
|
2
|
+
declare const RowChart: ({ data, margins, legendSettings, labelSettings, chartRef, colors, backGroundColor, customSettings, handleChartRightClick, }: any) => JSX.Element;
|
|
3
3
|
export default RowChart;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const SankeyChart: ({ data, margins, chartRef, colors, backGroundColor,
|
|
2
|
+
declare const SankeyChart: ({ data, margins, chartRef, colors, backGroundColor, handleChartRightClick, }: any) => JSX.Element;
|
|
3
3
|
export default SankeyChart;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const ScatterChart: ({ data, margins, legendSettings, labelSettings, axisSettings, chartRef, colors,
|
|
2
|
+
declare const ScatterChart: ({ data, margins, legendSettings, labelSettings, axisSettings, chartRef, colors, isEnableGroupBy, backGroundColor, customSettings, handleChartRightClick, }: any) => JSX.Element;
|
|
3
3
|
export default ScatterChart;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const StackedBarChart: ({ data, margins, legendSettings, labelSettings, axisSettings, chartRef, colors,
|
|
2
|
+
declare const StackedBarChart: ({ data, margins, legendSettings, labelSettings, axisSettings, chartRef, colors, backGroundColor, customSettings, handleChartRightClick, }: any) => JSX.Element;
|
|
3
3
|
export default StackedBarChart;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const SteppedAreaChart: ({ data, margins, legendSettings, labelSettings, axisSettings, chartRef, colors,
|
|
2
|
+
declare const SteppedAreaChart: ({ data, margins, legendSettings, labelSettings, axisSettings, chartRef, colors, backGroundColor, customSettings, handleChartRightClick, }: any) => JSX.Element;
|
|
3
3
|
export default SteppedAreaChart;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const WaterFallChart: ({ data, margins, labelSettings, axisSettings, chartRef, colors,
|
|
2
|
+
declare const WaterFallChart: ({ data, margins, labelSettings, axisSettings, chartRef, colors, backGroundColor, customSettings, handleChartRightClick, }: any) => JSX.Element;
|
|
3
3
|
export default WaterFallChart;
|
|
@@ -29,13 +29,11 @@ export declare type MetricChartProps = {
|
|
|
29
29
|
customSettings: CustomSettings;
|
|
30
30
|
enableSaveAs: boolean;
|
|
31
31
|
colors?: string[];
|
|
32
|
-
updateGroup?: (value: string) => void;
|
|
33
|
-
isEnableGroupBy?: boolean;
|
|
34
32
|
backGroundColor: BackgroundSettings;
|
|
35
33
|
chartClickConfig: ClickActionsConfig['chart'];
|
|
36
34
|
tableSettings: TableSettings;
|
|
37
35
|
chartRef: React.RefObject<EChartsReact>;
|
|
38
36
|
tableName?: string;
|
|
39
|
-
handleChartRightClick
|
|
37
|
+
handleChartRightClick?: (params: any) => void;
|
|
40
38
|
};
|
|
41
|
-
export declare const MetricChart: ({ labels, data, chartType, funnelData, sankeyData, singleValueData, margins, legendSettings, labelSettings, axisSettings, customSettings, enableSaveAs, colors,
|
|
39
|
+
export declare const MetricChart: ({ labels, data, chartType, funnelData, sankeyData, singleValueData, margins, legendSettings, labelSettings, axisSettings, customSettings, enableSaveAs, colors, backGroundColor, chartClickConfig, tableSettings, chartRef, tableName, handleChartRightClick, }: MetricChartProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ConstructMetricProps } from '@/types/metricCreate';
|
|
3
|
-
export declare const ConstructMetric: ({ dateTimeColumnList, columnList, database, companyId, tableName, setData, setError, setLoading, setQuery,
|
|
3
|
+
export declare const ConstructMetric: ({ dateTimeColumnList, columnList, database, companyId, tableName, setData, setError, setLoading, setQuery, clientId, clientColumn, }: ConstructMetricProps) => JSX.Element;
|
package/dist/components/MetricCreation/components/ConstructMetric/components/MetricForm/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ConstructMetricProps } from '@/types/metricCreate';
|
|
3
|
-
export declare const MetricForm: ({ dateTimeColumnList, columnList, database, companyId, tableName, setData, setError, setLoading, setQuery,
|
|
3
|
+
export declare const MetricForm: ({ dateTimeColumnList, columnList, database, companyId, tableName, setData, setError, setLoading, setQuery, clientId, clientColumn, }: ConstructMetricProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { MetricOutputProps } from '@/types/metricCreate';
|
|
3
|
-
export declare const MetricOutput: ({ data, error, isLoading, labels, funnelData, chartType, datasets, setChartType, setXAxis, setYAxisList, yAxisList, xAxis, setMeasure, setStep, step, measure, setSankeyValues, sankeyData, previewTableDataList, singleValue, setSingleValue, singleValueData, setMargins, margins, legendSettings, setLegendSettings, labelSettings, setLabelSettings, axisSettings, setAxisSettings, customSettings, setCustomSettings, tableSettings, setTableSettings,
|
|
3
|
+
export declare const MetricOutput: ({ data, error, isLoading, labels, funnelData, chartType, datasets, setChartType, setXAxis, setYAxisList, yAxisList, xAxis, setMeasure, setStep, step, measure, setSankeyValues, sankeyData, previewTableDataList, singleValue, setSingleValue, singleValueData, setMargins, margins, legendSettings, setLegendSettings, labelSettings, setLabelSettings, axisSettings, setAxisSettings, customSettings, setCustomSettings, tableSettings, setTableSettings, backGroundColor, setBackGroundColor, moreTabs, chartColors, isUpdateMetric, }: MetricOutputProps) => JSX.Element;
|
package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AxisSettings, LabelSettings, LegendSettings, BackgroundSettings, CustomSettings, TableSettings } from '@/types/app';
|
|
3
|
+
import { ClickActionsConfig } from '@/types';
|
|
3
4
|
declare type Props = {
|
|
4
5
|
data: any[] | undefined;
|
|
5
6
|
labels: string[] | undefined;
|
|
@@ -40,16 +41,17 @@ declare type Props = {
|
|
|
40
41
|
setAxisSettings: React.Dispatch<React.SetStateAction<AxisSettings>>;
|
|
41
42
|
customSettings: CustomSettings;
|
|
42
43
|
setCustomSettings: React.Dispatch<React.SetStateAction<CustomSettings>>;
|
|
43
|
-
updateGroup?: (value: string) => void;
|
|
44
|
-
isEnableGroupBy?: boolean;
|
|
45
44
|
isLoading: boolean;
|
|
46
45
|
backGroundColor: BackgroundSettings;
|
|
47
46
|
setBackGroundColor: React.Dispatch<React.SetStateAction<BackgroundSettings>>;
|
|
48
47
|
headerChild?: JSX.Element;
|
|
48
|
+
chartPopupChild?: JSX.Element;
|
|
49
49
|
tableSettings: TableSettings;
|
|
50
50
|
setTableSettings: React.Dispatch<React.SetStateAction<TableSettings>>;
|
|
51
51
|
tableName?: string;
|
|
52
52
|
chartColors?: string[];
|
|
53
|
+
handleChartRightClick?: (params: any) => void;
|
|
54
|
+
chartClickConfig?: ClickActionsConfig['chart'];
|
|
53
55
|
};
|
|
54
|
-
export declare const ChartTab: ({ labels, datasets, funnelData, chartType, setChartType, data, setXAxis, setYAxisList, yAxisList, xAxis, setMeasure, setStep, step, measure, setSankeyValues, sankeyData, singleValue, setSingleValue, singleValueData, setMargins, margins, legendSettings, setLegendSettings, labelSettings, setLabelSettings, customSettings, setCustomSettings, axisSettings, setAxisSettings,
|
|
56
|
+
export declare const ChartTab: ({ labels, datasets, funnelData, chartType, setChartType, data, setXAxis, setYAxisList, yAxisList, xAxis, setMeasure, setStep, step, measure, setSankeyValues, sankeyData, singleValue, setSingleValue, singleValueData, setMargins, margins, legendSettings, setLegendSettings, labelSettings, setLabelSettings, customSettings, setCustomSettings, axisSettings, setAxisSettings, isLoading, backGroundColor, setBackGroundColor, headerChild, tableSettings, setTableSettings, tableName, chartColors, handleChartRightClick, chartClickConfig, chartPopupChild, }: Props) => JSX.Element;
|
|
55
57
|
export {};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import { DrillDownSetting } from '@/types';
|
|
1
2
|
export declare const groupByMultipleKeys: (rawData: any[] | undefined, keys: string[], measureKey: string) => any;
|
|
3
|
+
export declare const groupMeasures: (rawData: any[] | undefined, dimensionKey: string, measureKeys: string[]) => any;
|
|
2
4
|
export declare const updateGroupData: (data: any[] | undefined, keys: string[], selectedGroupBy: string[], setGroupedData: (value: React.SetStateAction<Record<string, any>[]>) => void) => void;
|
|
5
|
+
export declare const updateDrilledData: (data: any[] | undefined, setGroupedData: (value: React.SetStateAction<Record<string, any>[]>) => void, measureKeys: string[], dimenstionKey: string) => void;
|
|
3
6
|
export declare const findKeys: (obj: Record<string, any>) => {
|
|
4
7
|
numberKeys: string[];
|
|
5
8
|
stringKeys: string[];
|
|
6
9
|
};
|
|
10
|
+
export declare const drilldown: (columnName: string | undefined, 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;
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const useUnderlyingData: ({ clientName, tenancyType, values, query, companyId, }: {
|
|
1
|
+
export declare const useUnderlyingData: ({ clientName, tenancyType, values, query, companyId, }: {
|
|
2
2
|
clientName?: string | undefined;
|
|
3
3
|
tenancyType?: string | undefined;
|
|
4
4
|
values?: Record<string, string> | undefined;
|