@databrainhq/plugin 0.10.18 → 0.10.20
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/ChartModal/ChartConfig.d.ts +2 -1
- package/dist/components/ChartModal/ChartModalOptions.d.ts +2 -1
- package/dist/components/ChartSettingsPopup/ChartSettingsPopup.d.ts +3 -1
- package/dist/components/ChartSettingsPopup/components/ChartSettings/index.d.ts +3 -1
- package/dist/components/MetricCreation/components/MetricOutput/MetricOutput.d.ts +1 -1
- package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/index.d.ts +3 -1
- package/dist/components/PivotTable/index.d.ts +8 -0
- package/dist/components/PivotTable/transformData.d.ts +7 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useSqlMetadata.d.ts +10 -0
- package/dist/index.es.js +31174 -30457
- package/dist/index.umd.js +174 -168
- package/dist/style.css +1 -1
- package/dist/types/app.d.ts +1 -1
- package/dist/types/metricCreate.d.ts +2 -0
- package/dist/utils/getChartOptions.d.ts +1 -0
- package/package.json +3 -2
- package/dist/components/Chart/PivotTable.d.ts +0 -3
|
@@ -4,6 +4,7 @@ type Props = {
|
|
|
4
4
|
data?: Record<string, any>[];
|
|
5
5
|
chartSettings: ChartSettingsType;
|
|
6
6
|
setChartSettings: React.Dispatch<React.SetStateAction<ChartSettingsType>>;
|
|
7
|
+
groupbyList: any[];
|
|
7
8
|
};
|
|
8
|
-
export declare const ChartConfig: ({ data, chartSettings, setChartSettings, }: Props) => JSX.Element;
|
|
9
|
+
export declare const ChartConfig: ({ data, chartSettings, setChartSettings, groupbyList, }: Props) => JSX.Element;
|
|
9
10
|
export {};
|
|
@@ -5,6 +5,7 @@ type Props = {
|
|
|
5
5
|
onChartChange: (chartType: ChartType) => void;
|
|
6
6
|
chartType: ChartType;
|
|
7
7
|
isEnableTimeSeries: boolean;
|
|
8
|
+
isEnablePivotTable: boolean;
|
|
8
9
|
};
|
|
9
|
-
export declare const ChartModalOptions: ({ chartType, onChartChange, isEnableTimeSeries, }: Props) => JSX.Element;
|
|
10
|
+
export declare const ChartModalOptions: ({ chartType, onChartChange, isEnableTimeSeries, isEnablePivotTable, }: Props) => JSX.Element;
|
|
10
11
|
export {};
|
|
@@ -5,5 +5,7 @@ export type ChartSettingsPopupProps = Partial<Pick<PopoverMenuProps, 'buttonClas
|
|
|
5
5
|
data?: Record<string, any>[];
|
|
6
6
|
settings: ChartSettingsType;
|
|
7
7
|
setSettings: React.Dispatch<React.SetStateAction<ChartSettingsType>>;
|
|
8
|
+
isEnablePivotTable: boolean;
|
|
9
|
+
groupbyList: any[];
|
|
8
10
|
};
|
|
9
|
-
export declare const ChartSettingsPopup: ({ data, settings, setSettings, buttonClass, menuClass, menuContainerClass, className, position, }: ChartSettingsPopupProps) => JSX.Element;
|
|
11
|
+
export declare const ChartSettingsPopup: ({ data, settings, setSettings, buttonClass, menuClass, menuContainerClass, className, position, isEnablePivotTable, groupbyList, }: ChartSettingsPopupProps) => JSX.Element;
|
|
@@ -4,6 +4,8 @@ type Props = {
|
|
|
4
4
|
data: any[] | undefined;
|
|
5
5
|
chartSettings: ChartSettingsType;
|
|
6
6
|
setChartSettings: React.Dispatch<React.SetStateAction<ChartSettingsType>>;
|
|
7
|
+
isEnablePivotTable: boolean;
|
|
8
|
+
groupbyList: any[];
|
|
7
9
|
};
|
|
8
|
-
export declare const ChartSettings: ({ data, chartSettings, setChartSettings, }: Props) => JSX.Element;
|
|
10
|
+
export declare const ChartSettings: ({ data, chartSettings, setChartSettings, isEnablePivotTable, groupbyList, }: Props) => JSX.Element;
|
|
9
11
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { MetricOutputProps } from '@/types/metricCreate';
|
|
3
|
-
export declare const MetricOutput: ({ data, error, isLoading, previewTableDataList, moreTabs, chartColors, chartSettings, setChartSettings, isUpdateMetric, }: MetricOutputProps) => JSX.Element;
|
|
3
|
+
export declare const MetricOutput: ({ data, error, isLoading, previewTableDataList, moreTabs, chartColors, chartSettings, setChartSettings, isUpdateMetric, isEnablePivotTable, groupbyList, }: MetricOutputProps) => JSX.Element;
|
package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/index.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ type Props = {
|
|
|
10
10
|
setChartSettings: React.Dispatch<React.SetStateAction<ChartSettingsType>>;
|
|
11
11
|
handleChartRightClick?: (params: any) => void;
|
|
12
12
|
chartClickConfig?: ClickActionsConfig['chart'];
|
|
13
|
+
isEnablePivotTable: boolean;
|
|
14
|
+
groupbyList: any[];
|
|
13
15
|
};
|
|
14
|
-
export declare const ChartTab: ({ data, isLoading, headerChild, chartSettings, setChartSettings, chartColors, handleChartRightClick, chartClickConfig, chartPopupChild, }: Props) => JSX.Element;
|
|
16
|
+
export declare const ChartTab: ({ data, isLoading, headerChild, chartSettings, setChartSettings, chartColors, handleChartRightClick, chartClickConfig, chartPopupChild, isEnablePivotTable, groupbyList, }: Props) => JSX.Element;
|
|
15
17
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PivotSettingsType } from '@/types';
|
|
3
|
+
declare const PivotTable: ({ data, pivotTableSettings, onChartReady, }: {
|
|
4
|
+
data: any[];
|
|
5
|
+
pivotTableSettings?: PivotSettingsType | undefined;
|
|
6
|
+
onChartReady?: (() => void) | undefined;
|
|
7
|
+
}) => JSX.Element;
|
|
8
|
+
export default PivotTable;
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const useSqlMetadata: () => {
|
|
2
|
+
getGroupByColumnList: ({ query, databaseName, onSuccess, }: {
|
|
3
|
+
query: string;
|
|
4
|
+
databaseName: string;
|
|
5
|
+
onSuccess: (list: any[]) => void;
|
|
6
|
+
}) => void;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* getGroupByColumnList({query, databaseName, (list)=> setGroupByList(list)})
|
|
10
|
+
*/
|