@databrainhq/plugin 0.6.6 → 0.6.7
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/Button/index.d.ts +1 -1
- package/dist/components/ChartModal/ChartConfig.d.ts +1 -1
- package/dist/components/ChartModal/ChartModalOptions.d.ts +1 -1
- package/dist/components/ChartModal/SelectField.d.ts +2 -1
- package/dist/components/Charts/AreaChart.d.ts +2 -1
- package/dist/components/Charts/BarChart.d.ts +8 -1
- package/dist/components/Charts/BoxPlot.d.ts +2 -1
- package/dist/components/Charts/BubbleChart.d.ts +2 -1
- package/dist/components/Charts/ComboChart.d.ts +2 -1
- package/dist/components/Charts/DoughnutChart.d.ts +2 -1
- package/dist/components/Charts/FunnelChart.d.ts +2 -1
- package/dist/components/Charts/GaugeChart.d.ts +2 -1
- package/dist/components/Charts/Histogram.d.ts +2 -1
- package/dist/components/Charts/LineChart.d.ts +4 -2
- package/dist/components/Charts/PieChart.d.ts +2 -1
- package/dist/components/Charts/RowChart.d.ts +2 -1
- package/dist/components/Charts/SankeyChart.d.ts +2 -1
- package/dist/components/Charts/ScatterChart.d.ts +2 -1
- package/dist/components/Charts/SingleValueChart/index.d.ts +3 -0
- package/dist/components/Charts/StackedBarChart.d.ts +2 -1
- package/dist/components/Charts/SteppedAreaChart.d.ts +2 -1
- package/dist/components/Charts/Table/TableChart.d.ts +3 -0
- package/dist/components/Charts/WaterfallChart.d.ts +2 -1
- package/dist/components/DataType/index.d.ts +1 -1
- package/dist/components/Error/index.d.ts +2 -1
- package/dist/components/ErrorFallback/index.d.ts +1 -1
- package/dist/components/FilterDropDown/index.d.ts +1 -1
- package/dist/components/FloatingDropDown/index.d.ts +1 -1
- package/dist/components/FullScreenChart/index.d.ts +2 -1
- package/dist/components/InfoTooltip/index.d.ts +5 -0
- package/dist/components/InputField/index.d.ts +1 -1
- package/dist/components/MetricChart/CsvDownloadButton.d.ts +2 -0
- package/dist/components/MetricChart/index.d.ts +5 -2
- package/dist/components/MetricCreation/components/ConstructMetric/components/MetricForm/index.d.ts +1 -1
- package/dist/components/MetricCreation/components/ConstructMetric/index.d.ts +1 -1
- package/dist/components/MetricCreation/components/Dataset/index.d.ts +1 -1
- package/dist/components/MetricCreation/components/Header/index.d.ts +2 -1
- package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/components/ChartConfigure/index.d.ts +6 -3
- package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/components/ChartSettings/index.d.ts +14 -1
- package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/index.d.ts +6 -2
- package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/components/InputTables/index.d.ts +2 -1
- package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/index.d.ts +2 -1
- package/dist/components/MetricCreation/components/MetricOutput/index.d.ts +2 -1
- package/dist/components/MetricCreation/index.d.ts +2 -1
- package/dist/components/MetricTable/index.d.ts +2 -1
- package/dist/components/PopoverMenu/index.d.ts +1 -1
- package/dist/components/RlsFilters/MultipleTimeGrain.d.ts +2 -1
- package/dist/components/RlsFilters/index.d.ts +5 -2
- package/dist/components/SearchTab/index.d.ts +2 -1
- package/dist/components/Select/index.d.ts +4 -4
- package/dist/components/Tab/index.d.ts +3 -1
- package/dist/components/Table/index.d.ts +2 -1
- package/dist/components/Text/index.d.ts +1 -1
- package/dist/components/TextAreaField/index.d.ts +2 -1
- package/dist/components/TimeGrainField/index.d.ts +1 -1
- package/dist/consts/index.d.ts +2 -0
- package/dist/hooks/useExternalMetric.d.ts +4 -2
- package/dist/index.es.js +6237 -18148
- package/dist/index.umd.js +84 -93
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +31 -0
- package/dist/types/metricCreate.d.ts +8 -1
- package/package.json +1 -5
- package/dist/components/Charts/SingleValueChart.d.ts +0 -2
- package/dist/components/Charts/TableChart.d.ts +0 -2
- /package/dist/components/{MetricFilters → GlobalFilters}/index.d.ts +0 -0
|
@@ -9,5 +9,5 @@ interface Props {
|
|
|
9
9
|
onClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
10
10
|
title?: string;
|
|
11
11
|
}
|
|
12
|
-
declare const Button: ({ isDisabled, type, className, children, variant, size, onClick, title }: Props) =>
|
|
12
|
+
declare const Button: ({ isDisabled, type, className, children, variant, size, onClick, title, }: Props) => JSX.Element;
|
|
13
13
|
export default Button;
|
|
@@ -14,5 +14,5 @@ declare type Props = {
|
|
|
14
14
|
setSingleValue: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
15
15
|
setSettingsShow: React.Dispatch<React.SetStateAction<boolean>>;
|
|
16
16
|
};
|
|
17
|
-
declare const _default: React.MemoExoticComponent<({ data, setXAxis, xAxis, setYAxisList, chartType, setStep, setMeasure, step, measure, setSankeyValues, setSettingsShow, singleValue, setSingleValue }: Props) =>
|
|
17
|
+
declare const _default: React.MemoExoticComponent<({ data, setXAxis, xAxis, setYAxisList, chartType, setStep, setMeasure, step, measure, setSankeyValues, setSettingsShow, singleValue, setSingleValue, }: Props) => JSX.Element>;
|
|
18
18
|
export default _default;
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
declare type Props = {
|
|
3
3
|
setChartType: React.Dispatch<React.SetStateAction<string>>;
|
|
4
4
|
};
|
|
5
|
-
declare const ChartModalOptions: ({ setChartType }: Props) =>
|
|
5
|
+
declare const ChartModalOptions: ({ setChartType }: Props) => JSX.Element;
|
|
6
6
|
export default ChartModalOptions;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const AreaChart: ({ data, margins, legendSettings, labelSettings, axisSettings, enableSaveAs, colors, updateGroup, isEnableGroupBy, backGroundColor, customSettings, }: any) => JSX.Element;
|
|
2
3
|
export default AreaChart;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
declare type Props = {
|
|
2
3
|
data: {
|
|
3
4
|
labels: string[] | undefined;
|
|
@@ -10,6 +11,12 @@ declare type Props = {
|
|
|
10
11
|
colors?: string[];
|
|
11
12
|
updateGroup?: (value: string) => void;
|
|
12
13
|
isEnableGroupBy?: boolean;
|
|
14
|
+
backGroundColor: any;
|
|
15
|
+
legendSettings: any;
|
|
16
|
+
labelSettings: any;
|
|
17
|
+
axisSettings: any;
|
|
18
|
+
margins: any;
|
|
19
|
+
customSettings: any;
|
|
13
20
|
};
|
|
14
|
-
declare const BarChart: ({ data, colors, updateGroup, isEnableGroupBy }: Props) =>
|
|
21
|
+
declare const BarChart: ({ data, colors, updateGroup, isEnableGroupBy, backGroundColor, legendSettings, labelSettings, axisSettings, margins, customSettings, }: Props) => JSX.Element;
|
|
15
22
|
export default BarChart;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const BoxPlot: ({ data, margins, legendSettings, axisSettings, enableSaveAs, colors, customSettings, }: any) => JSX.Element;
|
|
2
3
|
export default BoxPlot;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const BubbleChart: ({ data, margins, legendSettings, labelSettings, axisSettings, enableSaveAs, colors, updateGroup, isEnableGroupBy, customSettings, }: any) => JSX.Element;
|
|
2
3
|
export default BubbleChart;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const ComboChart: ({ data, margins, legendSettings, labelSettings, enableSaveAs, colors, updateGroup, isEnableGroupBy, backGroundColor, customSettings, }: any) => JSX.Element;
|
|
2
3
|
export default ComboChart;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const DoughnutChart: ({ data, margins, legendSettings, labelSettings, enableSaveAs, colors, updateGroup, isEnableGroupBy, }: any) => JSX.Element;
|
|
2
3
|
export default DoughnutChart;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const FunnelChart: ({ funnelData, margins, legendSettings, labelSettings, colors, }: any) => JSX.Element;
|
|
2
3
|
export default FunnelChart;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const GaugeChart: ({ gaugeData, margins, legendSettings, enableSaveAs, colors, }: any) => JSX.Element;
|
|
2
3
|
export default GaugeChart;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const Histogram: ({ data, margins, legendSettings, labelSettings, axisSettings, enableSaveAs, colors, updateGroup, isEnableGroupBy, backGroundColor, customSettings, }: any) => JSX.Element;
|
|
2
3
|
export default Histogram;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AxisSettings, CustomSettings, LabelSettings, LegendSettings } from '@/types';
|
|
2
3
|
declare type Props = {
|
|
3
4
|
data: {
|
|
4
5
|
labels: string[] | undefined;
|
|
@@ -16,6 +17,7 @@ declare type Props = {
|
|
|
16
17
|
colors?: string[];
|
|
17
18
|
updateGroup?: (value: string) => void;
|
|
18
19
|
isEnableGroupBy?: boolean;
|
|
20
|
+
customSettings: CustomSettings;
|
|
19
21
|
};
|
|
20
|
-
declare const LineChart: ({ data, margins, legendSettings, labelSettings, axisSettings, enableSaveAs, colors, updateGroup, isEnableGroupBy }: Props) =>
|
|
22
|
+
declare const LineChart: ({ data, margins, legendSettings, labelSettings, axisSettings, enableSaveAs, colors, updateGroup, isEnableGroupBy, customSettings, }: Props) => JSX.Element;
|
|
21
23
|
export default LineChart;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const PieChart: ({ data, margins, legendSettings, labelSettings, enableSaveAs, colors, updateGroup, isEnableGroupBy, }: any) => JSX.Element;
|
|
2
3
|
export default PieChart;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const RowChart: ({ data, margins, legendSettings, labelSettings, enableSaveAs, colors, updateGroup, isEnableGroupBy, backGroundColor, customSettings, }: any) => JSX.Element;
|
|
2
3
|
export default RowChart;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const ScatterChart: ({ data, margins, legendSettings, labelSettings, axisSettings, enableSaveAs, colors, updateGroup, isEnableGroupBy, backGroundColor, customSettings, }: any) => JSX.Element;
|
|
2
3
|
export default ScatterChart;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const StackedBarChart: ({ data, margins, legendSettings, labelSettings, axisSettings, enableSaveAs, colors, updateGroup, isEnableGroupBy, backGroundColor, customSettings, }: any) => JSX.Element;
|
|
2
3
|
export default StackedBarChart;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const SteppedAreaChart: ({ data, margins, legendSettings, labelSettings, axisSettings, enableSaveAs, colors, updateGroup, isEnableGroupBy, backGroundColor, customSettings, }: any) => JSX.Element;
|
|
2
3
|
export default SteppedAreaChart;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const WaterFallChart: ({ data, margins, labelSettings, axisSettings, enableSaveAs, colors, updateGroup, isEnableGroupBy, backGroundColor, customSettings, }: any) => JSX.Element;
|
|
2
3
|
export default WaterFallChart;
|
|
@@ -8,5 +8,5 @@ export declare type FilterDropDownProps = Omit<FloatingDropDownProps, 'options'
|
|
|
8
8
|
};
|
|
9
9
|
export declare type MultiFilterDropDownProps = Pick<FilterDropDownProps, 'autoSelected' | 'companyId' | 'filter'> & Omit<MultiFloatingDropDownProps, 'options' | 'isDisabled'>;
|
|
10
10
|
export declare const MultiFilterDropdown: React.FC<MultiFilterDropDownProps>;
|
|
11
|
-
declare const _default: React.MemoExoticComponent<({ companyId, filter, onChange, selectedOption, autoSelected, ...rest }: FilterDropDownProps) =>
|
|
11
|
+
declare const _default: React.MemoExoticComponent<({ companyId, filter, onChange, selectedOption, autoSelected, ...rest }: FilterDropDownProps) => JSX.Element>;
|
|
12
12
|
export default _default;
|
|
@@ -21,5 +21,5 @@ export declare type MultiFloatingDropDownProps = Omit<FloatingDropDownProps, 'se
|
|
|
21
21
|
onChange: (options: FloatingDropDownOption[]) => void;
|
|
22
22
|
};
|
|
23
23
|
export declare const MultiFloatingDropDown: React.FC<MultiFloatingDropDownProps>;
|
|
24
|
-
declare const _default: React.MemoExoticComponent<({ label, labelVariant, selectedOption, onChange, className, options, isDisabled, children, Icon, isSearchEnabled }: FloatingDropDownProps) =>
|
|
24
|
+
declare const _default: React.MemoExoticComponent<({ label, labelVariant, selectedOption, onChange, className, options, isDisabled, children, Icon, isSearchEnabled, }: FloatingDropDownProps) => JSX.Element>;
|
|
25
25
|
export default _default;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { MetricChartProps } from '@/components/MetricChart';
|
|
2
3
|
declare type Props = {
|
|
3
4
|
isShow: boolean;
|
|
4
5
|
onCancel: () => void;
|
|
5
6
|
chart?: MetricChartProps;
|
|
6
7
|
};
|
|
7
|
-
declare const FullScreenChart: ({ isShow, onCancel, chart }: Props) =>
|
|
8
|
+
declare const FullScreenChart: ({ isShow, onCancel, chart }: Props) => JSX.Element;
|
|
8
9
|
export default FullScreenChart;
|
|
@@ -21,5 +21,5 @@ interface Props {
|
|
|
21
21
|
inputClass?: string;
|
|
22
22
|
className?: string;
|
|
23
23
|
}
|
|
24
|
-
declare const InputField: ({ id, name, value, placeholder, label, type, onBlur, onFocus, onChange, onKeyDown, defaultValue, register, error, icon, checked, isDisabled, labelClass, inputClass, className }: Props) =>
|
|
24
|
+
declare const InputField: ({ id, name, value, placeholder, label, type, onBlur, onFocus, onChange, onKeyDown, defaultValue, register, error, icon, checked, isDisabled, labelClass, inputClass, className, }: Props) => JSX.Element;
|
|
25
25
|
export default InputField;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AxisSettings, LabelSettings, LegendSettings, BackgroundSettings, CustomSettings } from '@/types';
|
|
2
3
|
export declare type MetricChartProps = {
|
|
3
4
|
data: {
|
|
4
5
|
labels: string[] | undefined;
|
|
@@ -23,10 +24,12 @@ export declare type MetricChartProps = {
|
|
|
23
24
|
legendSettings: LegendSettings;
|
|
24
25
|
labelSettings: LabelSettings;
|
|
25
26
|
axisSettings: AxisSettings;
|
|
27
|
+
customSettings: CustomSettings;
|
|
26
28
|
enableSaveAs: boolean;
|
|
27
29
|
colors?: string[];
|
|
28
30
|
updateGroup?: (value: string) => void;
|
|
29
31
|
isEnableGroupBy?: boolean;
|
|
32
|
+
backGroundColor: BackgroundSettings;
|
|
30
33
|
};
|
|
31
|
-
declare const MetricChart: ({ labels, data, chartType, funnelData, sankeyData, singleValueData, margins, legendSettings, labelSettings, axisSettings, enableSaveAs, colors, updateGroup, isEnableGroupBy }: MetricChartProps) =>
|
|
34
|
+
declare const MetricChart: ({ labels, data, chartType, funnelData, sankeyData, singleValueData, margins, legendSettings, labelSettings, axisSettings, customSettings, enableSaveAs, colors, updateGroup, isEnableGroupBy, backGroundColor, }: MetricChartProps) => JSX.Element;
|
|
32
35
|
export default MetricChart;
|
package/dist/components/MetricCreation/components/ConstructMetric/components/MetricForm/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ConstructMetricProps } from '@/types/metricCreate';
|
|
3
|
-
declare const _default: React.MemoExoticComponent<({ dateTimeColumnList, columnList, database, companyId, tableName, setData, setError, setLoading, setQuery, isEnableGroupBy, setSelectedGroupBy }: ConstructMetricProps) =>
|
|
3
|
+
declare const _default: React.MemoExoticComponent<({ dateTimeColumnList, columnList, database, companyId, tableName, setData, setError, setLoading, setQuery, isEnableGroupBy, setSelectedGroupBy, }: ConstructMetricProps) => JSX.Element>;
|
|
4
4
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ConstructMetricProps } from '@/types/metricCreate';
|
|
3
|
-
declare const _default: React.MemoExoticComponent<({ dateTimeColumnList, columnList, database, companyId, tableName, setData, setError, setLoading, setQuery, isEnableGroupBy, setEnableGroupBy, setSelectedGroupBy }: ConstructMetricProps) =>
|
|
3
|
+
declare const _default: React.MemoExoticComponent<({ dateTimeColumnList, columnList, database, companyId, tableName, setData, setError, setLoading, setQuery, isEnableGroupBy, setEnableGroupBy, setSelectedGroupBy, }: ConstructMetricProps) => JSX.Element>;
|
|
4
4
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DatasetProps } from '@/types/metricCreate';
|
|
3
|
-
declare const _default: React.MemoExoticComponent<({ setselectTable, selectTable, tableList, columnList }: DatasetProps) =>
|
|
3
|
+
declare const _default: React.MemoExoticComponent<({ setselectTable, selectTable, tableList, columnList, }: DatasetProps) => JSX.Element>;
|
|
4
4
|
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { HeaderProps } from '@/types/metricCreate';
|
|
2
|
-
declare const Header: ({ setShowMetricCreateModal, isDisableSaveBtn, Heading, isDisableSqlBtn, setShowSaveMetricModal, setShowSqlModal }: HeaderProps) =>
|
|
3
|
+
declare const Header: ({ setShowMetricCreateModal, isDisableSaveBtn, Heading, isDisableSqlBtn, setShowSaveMetricModal, setShowSqlModal, }: HeaderProps) => JSX.Element;
|
|
3
4
|
export default Header;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { AxisSettings, LabelSettings, LegendSettings } from '@/types';
|
|
2
|
+
import { AxisSettings, BackgroundSettings, CustomSettings, LabelSettings, LegendSettings } from '@/types';
|
|
3
3
|
declare type Props = {
|
|
4
4
|
setMargins: React.Dispatch<React.SetStateAction<Record<string, number>>>;
|
|
5
5
|
margins: Record<string, number>;
|
|
@@ -7,11 +7,14 @@ declare type Props = {
|
|
|
7
7
|
setLegendSettings: React.Dispatch<React.SetStateAction<LegendSettings>>;
|
|
8
8
|
labelSettings: LabelSettings;
|
|
9
9
|
setLabelSettings: React.Dispatch<React.SetStateAction<LabelSettings>>;
|
|
10
|
-
setConfigureShow: any;
|
|
11
10
|
axisSettings: AxisSettings;
|
|
12
11
|
setAxisSettings: React.Dispatch<React.SetStateAction<AxisSettings>>;
|
|
12
|
+
customSettings: CustomSettings;
|
|
13
|
+
setCustomSettings: React.Dispatch<React.SetStateAction<CustomSettings>>;
|
|
13
14
|
chartType: any;
|
|
14
15
|
setChartType: any;
|
|
16
|
+
backGroundColor: BackgroundSettings;
|
|
17
|
+
setBackGroundColor: React.Dispatch<React.SetStateAction<BackgroundSettings>>;
|
|
15
18
|
};
|
|
16
|
-
declare const ChartConfigure: ({ setMargins, margins, legendSettings, setLegendSettings, labelSettings, setLabelSettings,
|
|
19
|
+
declare const ChartConfigure: ({ setMargins, margins, legendSettings, setLegendSettings, labelSettings, setLabelSettings, axisSettings, setAxisSettings, chartType, setChartType, customSettings, setCustomSettings, backGroundColor, setBackGroundColor, }: Props) => JSX.Element;
|
|
17
20
|
export default ChartConfigure;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { AxisSettings, BackgroundSettings, CustomSettings, LabelSettings, LegendSettings } from '@/types';
|
|
2
3
|
declare type Props = {
|
|
3
4
|
data: any[] | undefined;
|
|
4
5
|
chartType: string;
|
|
@@ -14,6 +15,18 @@ declare type Props = {
|
|
|
14
15
|
singleValue: string | undefined;
|
|
15
16
|
setSingleValue: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
16
17
|
setSettingsShow: React.Dispatch<React.SetStateAction<boolean>>;
|
|
18
|
+
setMargins: React.Dispatch<React.SetStateAction<Record<string, number>>>;
|
|
19
|
+
margins: Record<string, number>;
|
|
20
|
+
legendSettings: LegendSettings;
|
|
21
|
+
setLegendSettings: React.Dispatch<React.SetStateAction<LegendSettings>>;
|
|
22
|
+
labelSettings: LabelSettings;
|
|
23
|
+
setLabelSettings: React.Dispatch<React.SetStateAction<LabelSettings>>;
|
|
24
|
+
axisSettings: AxisSettings;
|
|
25
|
+
setAxisSettings: React.Dispatch<React.SetStateAction<AxisSettings>>;
|
|
26
|
+
customSettings: CustomSettings;
|
|
27
|
+
setCustomSettings: React.Dispatch<React.SetStateAction<CustomSettings>>;
|
|
28
|
+
backGroundColor: BackgroundSettings;
|
|
29
|
+
setBackGroundColor: React.Dispatch<React.SetStateAction<BackgroundSettings>>;
|
|
17
30
|
};
|
|
18
|
-
declare const ChartSettings: ({ chartType, setChartType, data, setXAxis, setYAxisList, xAxis, setMeasure, setStep, step, measure, setSankeyValues, singleValue, setSingleValue, setSettingsShow }: Props) =>
|
|
31
|
+
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;
|
|
19
32
|
export default ChartSettings;
|
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 } from '@/types';
|
|
2
|
+
import { AxisSettings, LabelSettings, LegendSettings, BackgroundSettings, CustomSettings } from '@/types';
|
|
3
3
|
declare type Props = {
|
|
4
4
|
data: any[] | undefined;
|
|
5
5
|
labels: string[] | undefined;
|
|
@@ -37,9 +37,13 @@ declare type Props = {
|
|
|
37
37
|
setLabelSettings: React.Dispatch<React.SetStateAction<LabelSettings>>;
|
|
38
38
|
axisSettings: AxisSettings;
|
|
39
39
|
setAxisSettings: React.Dispatch<React.SetStateAction<AxisSettings>>;
|
|
40
|
+
customSettings: CustomSettings;
|
|
41
|
+
setCustomSettings: React.Dispatch<React.SetStateAction<CustomSettings>>;
|
|
40
42
|
updateGroup?: (value: string) => void;
|
|
41
43
|
isEnableGroupBy?: boolean;
|
|
42
44
|
isLoading: boolean;
|
|
45
|
+
backGroundColor: BackgroundSettings;
|
|
46
|
+
setBackGroundColor: React.Dispatch<React.SetStateAction<BackgroundSettings>>;
|
|
43
47
|
};
|
|
44
|
-
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, axisSettings, setAxisSettings, updateGroup, isLoading, isEnableGroupBy }: Props) =>
|
|
48
|
+
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, }: Props) => JSX.Element;
|
|
45
49
|
export default ChartTab;
|
package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
declare type Props = {
|
|
2
3
|
previewTableDataList: any[] | undefined;
|
|
3
4
|
outpuTableData: any[] | undefined;
|
|
4
5
|
isOutputLoading: boolean;
|
|
5
6
|
outputError: string;
|
|
6
7
|
};
|
|
7
|
-
declare const TableTab: ({ outpuTableData, outputError, isOutputLoading, previewTableDataList }: Props) =>
|
|
8
|
+
declare const TableTab: ({ outpuTableData, outputError, isOutputLoading, previewTableDataList, }: Props) => JSX.Element;
|
|
8
9
|
export default TableTab;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { MetricOutputProps } from '@/types/metricCreate';
|
|
2
|
-
declare const MetricOutput: ({
|
|
3
|
+
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, }: MetricOutputProps) => JSX.Element;
|
|
3
4
|
export default MetricOutput;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { EmbeddedMetricCreationProps } from '@/types/metricCreate';
|
|
2
|
-
declare const EmbeddedMetricCreation: ({ clientId, companyId, mode, externalDashboardId, variant }: EmbeddedMetricCreationProps) =>
|
|
3
|
+
declare const EmbeddedMetricCreation: ({ clientId, companyId, mode, externalDashboardId, variant, }: EmbeddedMetricCreationProps) => JSX.Element;
|
|
3
4
|
export default EmbeddedMetricCreation;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
declare type Props = {
|
|
2
3
|
columnName: string;
|
|
3
4
|
dbName: string;
|
|
4
5
|
onChangeFilterValue: (name: string, value: string) => void;
|
|
5
6
|
name: string;
|
|
6
7
|
};
|
|
7
|
-
declare const MultipleTimeGrain: ({ columnName, dbName, onChangeFilterValue, name }: Props) =>
|
|
8
|
+
declare const MultipleTimeGrain: ({ columnName, dbName, onChangeFilterValue, name, }: Props) => JSX.Element;
|
|
8
9
|
export default MultipleTimeGrain;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PopoverMenuProps } from '@/components/PopoverMenu';
|
|
1
3
|
import { RlsCondition } from '@/types';
|
|
2
|
-
declare type Props = {
|
|
4
|
+
declare type Props = Partial<PopoverMenuProps> & {
|
|
3
5
|
rlsConditions: RlsCondition[];
|
|
4
6
|
onChangeFilterValue: (name: string, value: string) => void;
|
|
5
7
|
dbName: string;
|
|
8
|
+
iconClass?: string;
|
|
6
9
|
};
|
|
7
|
-
declare const RlsFilters: ({ rlsConditions, onChangeFilterValue, dbName }: Props) =>
|
|
10
|
+
declare const RlsFilters: ({ rlsConditions, onChangeFilterValue, dbName, iconClass, ...rest }: Props) => JSX.Element;
|
|
8
11
|
export default RlsFilters;
|
|
@@ -20,10 +20,10 @@ declare type HookSelectInput = Omit<SelectInput, 'value'> & {
|
|
|
20
20
|
control: Control;
|
|
21
21
|
name: string;
|
|
22
22
|
};
|
|
23
|
-
export declare const Select: ({ label, options, onChange, value, defaultValue, children, placeHolder, className, isSearchEnabled }: SelectInput) =>
|
|
24
|
-
declare const HookSelect: ({ control, name, options, label, defaultValue }: HookSelectInput) =>
|
|
25
|
-
export declare const SelectWithSubValue: ({ label, options, onChange, value, defaultValue }: any) =>
|
|
26
|
-
export declare const DropDown: ({ control, name, options, label, defaultValue }: HookSelectInput) =>
|
|
23
|
+
export declare const Select: ({ label, options, onChange, value, defaultValue, children, placeHolder, className, isSearchEnabled, }: SelectInput) => JSX.Element;
|
|
24
|
+
declare const HookSelect: ({ control, name, options, label, defaultValue, }: HookSelectInput) => JSX.Element;
|
|
25
|
+
export declare const SelectWithSubValue: ({ label, options, onChange, value, defaultValue, }: any) => JSX.Element;
|
|
26
|
+
export declare const DropDown: ({ control, name, options, label, defaultValue, }: HookSelectInput) => JSX.Element;
|
|
27
27
|
declare type MultiSelectProps = {
|
|
28
28
|
options: Option[];
|
|
29
29
|
defaultValue?: Option['value'][];
|
|
@@ -3,6 +3,8 @@ declare type TabProps = {
|
|
|
3
3
|
options: string[];
|
|
4
4
|
activeTab: string;
|
|
5
5
|
setActiveTab: React.Dispatch<React.SetStateAction<string>>;
|
|
6
|
+
className?: string;
|
|
7
|
+
tabText?: string;
|
|
6
8
|
};
|
|
7
|
-
declare const Tab: ({ options, activeTab, setActiveTab }: TabProps) =>
|
|
9
|
+
declare const Tab: ({ options, activeTab, setActiveTab, className, tabText, }: TabProps) => JSX.Element;
|
|
8
10
|
export default Tab;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
declare type Props = {
|
|
2
3
|
data: any[] | undefined;
|
|
3
4
|
isLoading: boolean;
|
|
4
5
|
error: string;
|
|
5
6
|
};
|
|
6
|
-
declare const Table: ({ data, isLoading, error }: Props) =>
|
|
7
|
+
declare const Table: ({ data, isLoading, error }: Props) => JSX.Element;
|
|
7
8
|
export default Table;
|
|
@@ -6,5 +6,5 @@ interface Props {
|
|
|
6
6
|
onClick?: () => void;
|
|
7
7
|
styleClass: 'primary' | 'secondary' | 'tertiary' | 'font-14' | 'font-14a' | 'font-14b' | 'font-14c' | 'font-15' | 'font-18' | 'font-20' | 'font-34' | 'custom';
|
|
8
8
|
}
|
|
9
|
-
declare const Text: ({ className, variant, styleClass, children, onClick }: Props) =>
|
|
9
|
+
declare const Text: ({ className, variant, styleClass, children, onClick, }: Props) => JSX.Element;
|
|
10
10
|
export default Text;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { UseFormRegisterReturn } from 'react-hook-form';
|
|
2
3
|
interface Props {
|
|
3
4
|
id: string;
|
|
@@ -14,5 +15,5 @@ interface Props {
|
|
|
14
15
|
onBlur?: any;
|
|
15
16
|
className?: string;
|
|
16
17
|
}
|
|
17
|
-
declare const TextAreaField: ({ id, label, placeholder, rows, cols, resizable, register, error, defaultValue, value, onFocus, onBlur, className }: Props) =>
|
|
18
|
+
declare const TextAreaField: ({ id, label, placeholder, rows, cols, resizable, register, error, defaultValue, value, onFocus, onBlur, className, }: Props) => JSX.Element;
|
|
18
19
|
export default TextAreaField;
|
|
@@ -9,5 +9,5 @@ declare type Props = {
|
|
|
9
9
|
isDisabled?: boolean;
|
|
10
10
|
onChange?: (value: string) => void;
|
|
11
11
|
};
|
|
12
|
-
declare const TimeGrainField: ({ isShowlabel, timeGrainValue, setTimeGrainValue, register, className, isDisabled, onChange }: Props) =>
|
|
12
|
+
declare const TimeGrainField: ({ isShowlabel, timeGrainValue, setTimeGrainValue, register, className, isDisabled, onChange, }: Props) => JSX.Element;
|
|
13
13
|
export default TimeGrainField;
|
package/dist/consts/index.d.ts
CHANGED
|
@@ -34,4 +34,6 @@ export declare const PIE = "pie";
|
|
|
34
34
|
export declare const SANKEY = "sankey";
|
|
35
35
|
export declare const BOXPLOT = "boxplot";
|
|
36
36
|
export declare const TABLE = "table";
|
|
37
|
+
export declare const GENERAL = "general";
|
|
38
|
+
export declare const CONFIG = "configuration";
|
|
37
39
|
export declare const DESTINATIONS: Record<string, string>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { AxisSettings, DashboardType, GroupBy, LabelSettings, LegendSettings, RlsFilterObjectType, SelectedColumns } from '@/types';
|
|
2
|
+
import { AxisSettings, CustomSettings, DashboardType, GroupBy, LabelSettings, LegendSettings, RlsFilterObjectType, SelectedColumns, BackgroundSettings } from '@/types';
|
|
3
3
|
declare type Params = {
|
|
4
4
|
companyIntegrationId: string | undefined;
|
|
5
5
|
selectedColumns: SelectedColumns[] | undefined;
|
|
@@ -18,6 +18,8 @@ declare type Params = {
|
|
|
18
18
|
legendSettings: LegendSettings;
|
|
19
19
|
labelSettings: LabelSettings;
|
|
20
20
|
axisSettings: AxisSettings;
|
|
21
|
+
customSettings?: CustomSettings;
|
|
22
|
+
backGroundColor?: BackgroundSettings;
|
|
21
23
|
integrationName: string | undefined;
|
|
22
24
|
clientId?: string | null;
|
|
23
25
|
isEmbedded?: boolean;
|
|
@@ -30,7 +32,7 @@ declare type Params = {
|
|
|
30
32
|
selectedGroupBy: string[];
|
|
31
33
|
groupBy: GroupBy | undefined;
|
|
32
34
|
};
|
|
33
|
-
declare const useExternalMetric: ({ companyIntegrationId, selectedColumns, query, metricQuery, integrationName, outputColumns, xAxis, yAxisList, chartType, step, measure, sankeyValues, singleValue, margins, legendSettings, labelSettings, axisSettings, clientId, companyId, mode, timeGrain, dashboardIds, isEnableGroupBy, groupBy, selectedGroupBy, }: Params) => {
|
|
35
|
+
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) => {
|
|
34
36
|
createExternalMetric: (data: FieldValues) => void;
|
|
35
37
|
error: string;
|
|
36
38
|
};
|