@databrainhq/plugin 0.7.17 → 0.7.18
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 +1 -1
- package/dist/components/MetricChart/MetricChart.d.ts +3 -2
- package/dist/components/MetricCreation/components/MetricOutput/MetricOutput.d.ts +1 -1
- package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/components/ChartConfigure/index.d.ts +4 -2
- package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/components/ChartSettings/index.d.ts +4 -2
- package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/index.d.ts +4 -2
- package/dist/hooks/useExternalMetric.d.ts +3 -2
- package/dist/index.es.js +746 -491
- package/dist/index.umd.js +49 -49
- package/dist/style.css +1 -1
- package/dist/types/app.d.ts +12 -0
- package/dist/types/metricCreate.d.ts +3 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { AxisSettings, LabelSettings, LegendSettings, BackgroundSettings, CustomSettings } from '@/types/app';
|
|
2
|
+
import { AxisSettings, LabelSettings, LegendSettings, BackgroundSettings, CustomSettings, TableSettings } from '@/types/app';
|
|
3
3
|
import { ClickActionsConfig } from '@/types';
|
|
4
4
|
export declare type MetricChartProps = {
|
|
5
5
|
data: {
|
|
@@ -32,5 +32,6 @@ export declare type MetricChartProps = {
|
|
|
32
32
|
isEnableGroupBy?: boolean;
|
|
33
33
|
backGroundColor: BackgroundSettings;
|
|
34
34
|
chartClickConfig: ClickActionsConfig['chart'];
|
|
35
|
+
tableSettings: TableSettings;
|
|
35
36
|
};
|
|
36
|
-
export declare const MetricChart: ({ labels, data, chartType, funnelData, sankeyData, singleValueData, margins, legendSettings, labelSettings, axisSettings, customSettings, enableSaveAs, colors, updateGroup, isEnableGroupBy, backGroundColor, chartClickConfig, }: MetricChartProps) => JSX.Element;
|
|
37
|
+
export declare const MetricChart: ({ labels, data, chartType, funnelData, sankeyData, singleValueData, margins, legendSettings, labelSettings, axisSettings, customSettings, enableSaveAs, colors, updateGroup, isEnableGroupBy, backGroundColor, chartClickConfig, tableSettings, }: MetricChartProps) => 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, xAxis, setMeasure, setStep, step, measure, setSankeyValues, sankeyData, previewTableDataList, singleValue, setSingleValue, singleValueData, setMargins, margins, legendSettings, setLegendSettings, labelSettings, setLabelSettings, axisSettings, setAxisSettings, customSettings, setCustomSettings, updateGroup, isEnableGroupBy, backGroundColor, setBackGroundColor, moreTabs, }: MetricOutputProps) => JSX.Element;
|
|
3
|
+
export declare const MetricOutput: ({ data, error, isLoading, labels, funnelData, chartType, datasets, setChartType, setXAxis, setYAxisList, xAxis, setMeasure, setStep, step, measure, setSankeyValues, sankeyData, previewTableDataList, singleValue, setSingleValue, singleValueData, setMargins, margins, legendSettings, setLegendSettings, labelSettings, setLabelSettings, axisSettings, setAxisSettings, customSettings, setCustomSettings, tableSettings, setTableSettings, updateGroup, isEnableGroupBy, backGroundColor, setBackGroundColor, moreTabs, }: MetricOutputProps) => JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { AxisSettings, BackgroundSettings, CustomSettings, LabelSettings, LegendSettings } from '@/types/app';
|
|
2
|
+
import { AxisSettings, BackgroundSettings, CustomSettings, LabelSettings, LegendSettings, TableSettings } from '@/types/app';
|
|
3
3
|
declare type Props = {
|
|
4
4
|
setMargins: React.Dispatch<React.SetStateAction<Record<string, number>>>;
|
|
5
5
|
margins: Record<string, number>;
|
|
@@ -15,6 +15,8 @@ declare type Props = {
|
|
|
15
15
|
setChartType: any;
|
|
16
16
|
backGroundColor: BackgroundSettings;
|
|
17
17
|
setBackGroundColor: React.Dispatch<React.SetStateAction<BackgroundSettings>>;
|
|
18
|
+
tableSettings: TableSettings;
|
|
19
|
+
setTableSettings: React.Dispatch<React.SetStateAction<TableSettings>>;
|
|
18
20
|
};
|
|
19
|
-
export declare const ChartConfigure: ({ setMargins, margins, legendSettings, setLegendSettings, labelSettings, setLabelSettings, axisSettings, setAxisSettings, chartType, setChartType, customSettings, setCustomSettings, backGroundColor, setBackGroundColor, }: Props) => JSX.Element;
|
|
21
|
+
export declare const ChartConfigure: ({ setMargins, margins, legendSettings, setLegendSettings, labelSettings, setLabelSettings, axisSettings, setAxisSettings, chartType, setChartType, customSettings, setCustomSettings, backGroundColor, setBackGroundColor, tableSettings, setTableSettings, }: Props) => JSX.Element;
|
|
20
22
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { AxisSettings, BackgroundSettings, CustomSettings, LabelSettings, LegendSettings } from '@/types/app';
|
|
2
|
+
import { AxisSettings, BackgroundSettings, CustomSettings, LabelSettings, LegendSettings, TableSettings } from '@/types/app';
|
|
3
3
|
declare type Props = {
|
|
4
4
|
data: any[] | undefined;
|
|
5
5
|
chartType: string;
|
|
@@ -27,6 +27,8 @@ declare type Props = {
|
|
|
27
27
|
setCustomSettings: React.Dispatch<React.SetStateAction<CustomSettings>>;
|
|
28
28
|
backGroundColor: BackgroundSettings;
|
|
29
29
|
setBackGroundColor: React.Dispatch<React.SetStateAction<BackgroundSettings>>;
|
|
30
|
+
tableSettings: TableSettings;
|
|
31
|
+
setTableSettings: React.Dispatch<React.SetStateAction<TableSettings>>;
|
|
30
32
|
};
|
|
31
|
-
export declare const ChartSettings: ({ chartType, setChartType, data, setXAxis, setYAxisList, xAxis, setMeasure, setStep, step, measure, setSankeyValues, singleValue, setSingleValue, setSettingsShow, setMargins, margins, legendSettings, setLegendSettings, labelSettings, setLabelSettings, axisSettings, setAxisSettings, customSettings, setCustomSettings, backGroundColor, setBackGroundColor, }: Props) => JSX.Element;
|
|
33
|
+
export declare const ChartSettings: ({ chartType, setChartType, data, setXAxis, setYAxisList, xAxis, setMeasure, setStep, step, measure, setSankeyValues, singleValue, setSingleValue, setSettingsShow, setMargins, margins, legendSettings, setLegendSettings, labelSettings, setLabelSettings, axisSettings, setAxisSettings, customSettings, setCustomSettings, backGroundColor, setBackGroundColor, tableSettings, setTableSettings, }: Props) => JSX.Element;
|
|
32
34
|
export {};
|
package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { AxisSettings, LabelSettings, LegendSettings, BackgroundSettings, CustomSettings } from '@/types/app';
|
|
2
|
+
import { AxisSettings, LabelSettings, LegendSettings, BackgroundSettings, CustomSettings, TableSettings } from '@/types/app';
|
|
3
3
|
declare type Props = {
|
|
4
4
|
data: any[] | undefined;
|
|
5
5
|
labels: string[] | undefined;
|
|
@@ -45,6 +45,8 @@ declare type Props = {
|
|
|
45
45
|
backGroundColor: BackgroundSettings;
|
|
46
46
|
setBackGroundColor: React.Dispatch<React.SetStateAction<BackgroundSettings>>;
|
|
47
47
|
headerChild?: JSX.Element;
|
|
48
|
+
tableSettings: TableSettings;
|
|
49
|
+
setTableSettings: React.Dispatch<React.SetStateAction<TableSettings>>;
|
|
48
50
|
};
|
|
49
|
-
export declare const ChartTab: ({ labels, datasets, funnelData, chartType, setChartType, data, setXAxis, setYAxisList, 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, }: Props) => JSX.Element;
|
|
51
|
+
export declare const ChartTab: ({ labels, datasets, funnelData, chartType, setChartType, data, setXAxis, setYAxisList, 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, }: Props) => JSX.Element;
|
|
50
52
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { AxisSettings, CustomSettings, DashboardType, GroupBy, LabelSettings, LegendSettings, RlsFilterObjectType, SelectedColumns, BackgroundSettings } from '@/types/app';
|
|
2
|
+
import { AxisSettings, CustomSettings, TableSettings, DashboardType, GroupBy, LabelSettings, LegendSettings, RlsFilterObjectType, SelectedColumns, BackgroundSettings } from '@/types/app';
|
|
3
3
|
declare type Params = {
|
|
4
4
|
companyIntegrationId: string | undefined;
|
|
5
5
|
selectedColumns: SelectedColumns[] | undefined;
|
|
@@ -19,6 +19,7 @@ declare type Params = {
|
|
|
19
19
|
labelSettings: LabelSettings;
|
|
20
20
|
axisSettings: AxisSettings;
|
|
21
21
|
customSettings?: CustomSettings;
|
|
22
|
+
tableSettings?: TableSettings;
|
|
22
23
|
backGroundColor?: BackgroundSettings;
|
|
23
24
|
integrationName: string | undefined;
|
|
24
25
|
clientId?: string | null;
|
|
@@ -32,7 +33,7 @@ declare type Params = {
|
|
|
32
33
|
selectedGroupBy: string[];
|
|
33
34
|
groupBy: GroupBy | undefined;
|
|
34
35
|
};
|
|
35
|
-
export declare const useExternalMetric: ({ companyIntegrationId, selectedColumns, query, metricQuery, integrationName, outputColumns, xAxis, yAxisList, chartType, step, measure, sankeyValues, singleValue, margins, legendSettings, labelSettings, axisSettings, customSettings, backGroundColor, clientId, companyId, mode, timeGrain, dashboardIds, isEnableGroupBy, groupBy, selectedGroupBy, }: Params) => {
|
|
36
|
+
export declare const useExternalMetric: ({ companyIntegrationId, selectedColumns, query, metricQuery, integrationName, outputColumns, xAxis, yAxisList, chartType, step, measure, sankeyValues, singleValue, margins, legendSettings, labelSettings, axisSettings, customSettings, tableSettings, backGroundColor, clientId, companyId, mode, timeGrain, dashboardIds, isEnableGroupBy, groupBy, selectedGroupBy, }: Params) => {
|
|
36
37
|
createExternalMetric: (data: FieldValues) => void;
|
|
37
38
|
error: string;
|
|
38
39
|
};
|