@databrainhq/plugin 0.8.2 → 0.8.4
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/Charts/Table/TableChart.d.ts +3 -3
- package/dist/components/MetricChart/MetricChart.d.ts +2 -1
- package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/index.d.ts +2 -1
- package/dist/components/MetricList/MetricList.d.ts +1 -0
- package/dist/components/Table/DebouncedInput.d.ts +6 -0
- package/dist/components/Table/index.d.ts +4 -1
- package/dist/consts/validations.d.ts +24 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useClientDashboardLayout.d.ts +10 -0
- package/dist/hooks/useDownloadRawCsv.d.ts +18 -0
- package/dist/index.es.js +6928 -3006
- package/dist/index.umd.js +135 -61
- package/dist/style.css +1 -1
- package/dist/utils/generated/graphql.d.ts +229 -1
- package/dist/utils/theme.d.ts +1 -0
- package/package.json +3 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: React.MemoExoticComponent<({ data, chartClickConfig, tableSettings, tableName, }: any) => JSX.Element>;
|
|
3
|
+
export default _default;
|
|
@@ -35,6 +35,7 @@ export declare type MetricChartProps = {
|
|
|
35
35
|
chartClickConfig: ClickActionsConfig['chart'];
|
|
36
36
|
tableSettings: TableSettings;
|
|
37
37
|
chartRef: React.RefObject<EChartsReact>;
|
|
38
|
+
tableName?: string;
|
|
38
39
|
handleChartRightClick: (params: any) => void;
|
|
39
40
|
};
|
|
40
|
-
export declare const MetricChart: ({ labels, data, chartType, funnelData, sankeyData, singleValueData, margins, legendSettings, labelSettings, axisSettings, customSettings, enableSaveAs, colors, updateGroup, isEnableGroupBy, backGroundColor, chartClickConfig, tableSettings, chartRef, handleChartRightClick, }: MetricChartProps) => JSX.Element;
|
|
41
|
+
export declare const MetricChart: ({ labels, data, chartType, funnelData, sankeyData, singleValueData, margins, legendSettings, labelSettings, axisSettings, customSettings, enableSaveAs, colors, updateGroup, isEnableGroupBy, backGroundColor, chartClickConfig, tableSettings, chartRef, tableName, handleChartRightClick, }: MetricChartProps) => JSX.Element;
|
package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/index.d.ts
CHANGED
|
@@ -48,7 +48,8 @@ declare type Props = {
|
|
|
48
48
|
headerChild?: JSX.Element;
|
|
49
49
|
tableSettings: TableSettings;
|
|
50
50
|
setTableSettings: React.Dispatch<React.SetStateAction<TableSettings>>;
|
|
51
|
+
tableName?: string;
|
|
51
52
|
chartColors?: string[];
|
|
52
53
|
};
|
|
53
|
-
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, updateGroup, isLoading, isEnableGroupBy, backGroundColor, setBackGroundColor, headerChild, tableSettings, setTableSettings, chartColors, }: Props) => JSX.Element;
|
|
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, updateGroup, isLoading, isEnableGroupBy, backGroundColor, setBackGroundColor, headerChild, tableSettings, setTableSettings, tableName, chartColors, }: Props) => JSX.Element;
|
|
54
55
|
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const DebouncedInput: ({ value, onChange, debounce, ...props }: {
|
|
3
|
+
value: string | number;
|
|
4
|
+
onChange: (value: string | number) => void;
|
|
5
|
+
debounce?: number | undefined;
|
|
6
|
+
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange">) => JSX.Element;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { TableSettings } from '@/types';
|
|
2
3
|
declare type Props = {
|
|
3
4
|
data: any[] | undefined;
|
|
4
5
|
isLoading: boolean;
|
|
5
6
|
error: string;
|
|
7
|
+
tableSettings?: TableSettings;
|
|
8
|
+
tableName?: string;
|
|
6
9
|
};
|
|
7
|
-
export declare const Table: ({ data, isLoading, error }: Props) => JSX.Element;
|
|
10
|
+
export declare const Table: ({ data, isLoading, error, tableSettings, tableName, }: Props) => JSX.Element;
|
|
8
11
|
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const required: {
|
|
2
|
+
required: string;
|
|
3
|
+
};
|
|
4
|
+
export declare const asEmail: {
|
|
5
|
+
pattern: {
|
|
6
|
+
value: RegExp;
|
|
7
|
+
message: string;
|
|
8
|
+
};
|
|
9
|
+
required: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const asPassword: {
|
|
12
|
+
minLength: {
|
|
13
|
+
value: number;
|
|
14
|
+
message: string;
|
|
15
|
+
};
|
|
16
|
+
required: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const asName: {
|
|
19
|
+
minLength: {
|
|
20
|
+
value: number;
|
|
21
|
+
message: string;
|
|
22
|
+
};
|
|
23
|
+
required: string;
|
|
24
|
+
};
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Layout } from 'react-grid-layout';
|
|
2
|
+
export declare type UseClientDashboardLayoutProps = {
|
|
3
|
+
externalDashboardId: string;
|
|
4
|
+
clientId: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const useClientDashboardLayout: ({ externalDashboardId, clientId, }: UseClientDashboardLayoutProps) => {
|
|
7
|
+
handleLayoutChange: (_layout: Layout[], _oldItem: Layout, newItem: Layout) => Promise<void>;
|
|
8
|
+
markClientLayoutChange: () => Promise<void>;
|
|
9
|
+
isLayoutChanged: boolean;
|
|
10
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FieldValues } from 'react-hook-form';
|
|
3
|
+
declare const useDownloadRawCsv: () => {
|
|
4
|
+
isShowRawCsvModal: boolean;
|
|
5
|
+
setRawCsvModal: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
downloadCsvError: string;
|
|
8
|
+
onSubmitDownloadCsv: ({ companyId, sqlQuery, values, clientName, tenancyType, }: {
|
|
9
|
+
values: FieldValues;
|
|
10
|
+
sqlQuery: string;
|
|
11
|
+
companyId: string;
|
|
12
|
+
clientName?: string | undefined;
|
|
13
|
+
tenancyType?: string | undefined;
|
|
14
|
+
}) => void;
|
|
15
|
+
handleSubmit: import("react-hook-form").UseFormHandleSubmit<FieldValues>;
|
|
16
|
+
register: import("react-hook-form").UseFormRegister<FieldValues>;
|
|
17
|
+
};
|
|
18
|
+
export default useDownloadRawCsv;
|