@databrainhq/plugin 0.6.10 → 0.7.1
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 +2 -2
- package/dist/components/ChartModal/ChartConfig.d.ts +2 -2
- package/dist/components/ChartModal/ChartModalOptions.d.ts +2 -2
- package/dist/components/ChartModal/SelectField.d.ts +1 -2
- package/dist/components/ChartModal/index.d.ts +3 -0
- package/dist/components/Charts/LineChart.d.ts +1 -1
- package/dist/components/DataType/index.d.ts +2 -3
- package/dist/components/Error/index.d.ts +2 -2
- package/dist/components/ErrorFallback/index.d.ts +2 -3
- package/dist/components/ExternalMetricForm/index.d.ts +3 -3
- package/dist/components/FilterDropDown/index.d.ts +2 -3
- package/dist/components/FilterField/index.d.ts +4 -3
- package/dist/components/FloatingDropDown/index.d.ts +5 -7
- package/dist/components/FullScreenChart/index.d.ts +2 -2
- package/dist/components/GlobalFilters/index.d.ts +4 -4
- package/dist/components/InfoTooltip/index.d.ts +2 -5
- package/dist/components/InputField/index.d.ts +2 -2
- package/dist/components/MetricChart/CsvDownloadButton.d.ts +2 -2
- package/dist/components/MetricChart/MetricChart.d.ts +34 -0
- package/dist/components/MetricChart/index.d.ts +2 -35
- package/dist/components/MetricCreation/MetricCreation.d.ts +3 -0
- package/dist/components/MetricCreation/components/ConstructMetric/ConstructMetric.d.ts +3 -0
- package/dist/components/MetricCreation/components/ConstructMetric/components/MetricForm/index.d.ts +2 -3
- package/dist/components/MetricCreation/components/ConstructMetric/index.d.ts +2 -4
- package/dist/components/MetricCreation/components/Dataset/index.d.ts +2 -3
- package/dist/components/MetricCreation/components/Header/index.d.ts +1 -2
- package/dist/components/MetricCreation/components/MetricOutput/MetricOutput.d.ts +3 -0
- package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/components/ChartConfigure/index.d.ts +3 -3
- package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/components/ChartSettings/index.d.ts +3 -3
- package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/index.d.ts +3 -3
- package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/components/InputTables/index.d.ts +1 -2
- package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/index.d.ts +2 -2
- package/dist/components/MetricCreation/components/MetricOutput/index.d.ts +3 -4
- package/dist/components/MetricCreation/index.d.ts +5 -4
- package/dist/components/{RlsFilters/index.d.ts → MetricFilters/MetricFilters.d.ts} +3 -3
- package/dist/components/{RlsFilters → MetricFilters}/MultipleTimeGrain.d.ts +2 -2
- package/dist/components/MetricFilters/index.d.ts +2 -0
- package/dist/components/MetricList/MetricList.d.ts +45 -0
- package/dist/components/MetricList/components/MetricCard.d.ts +2 -3
- package/dist/components/MetricList/components/SingleValueCard.d.ts +1 -2
- package/dist/components/MetricList/index.d.ts +3 -45
- package/dist/components/MetricTable/index.d.ts +2 -2
- package/dist/components/Modal/Modal.d.ts +9 -0
- package/dist/components/Modal/ModalFooter.d.ts +4 -2
- package/dist/components/Modal/index.d.ts +2 -10
- package/dist/components/PopoverMenu/index.d.ts +1 -2
- package/dist/components/SearchTab/index.d.ts +1 -2
- package/dist/components/Select/index.d.ts +2 -2
- package/dist/components/Tab/index.d.ts +2 -2
- package/dist/components/Table/index.d.ts +2 -2
- package/dist/components/Text/index.d.ts +3 -3
- package/dist/components/TextAreaField/index.d.ts +2 -2
- package/dist/components/TimeGrainField/index.d.ts +2 -2
- package/dist/components/ToggleButton/index.d.ts +2 -2
- package/dist/components/index.d.ts +28 -0
- package/dist/consts/app.d.ts +39 -0
- package/dist/consts/index.d.ts +2 -39
- package/dist/containers/Dashboard/Dashboard.d.ts +4 -0
- package/dist/containers/Dashboard/EmbededDashboard.d.ts +12 -0
- package/dist/containers/Dashboard/index.d.ts +2 -12
- package/dist/helpers/getModifiedQuery.d.ts +6 -0
- package/dist/helpers/getTimeFilterValue.d.ts +2 -2
- package/dist/helpers/groupArray.d.ts +1 -0
- package/dist/helpers/index.d.ts +4 -0
- package/dist/hooks/index.d.ts +5 -0
- package/dist/hooks/useEmbeddedDashboard.d.ts +1 -2
- package/dist/hooks/useExternalMetric.d.ts +3 -3
- package/dist/hooks/useGenerateDatasetMetrics.d.ts +1 -2
- package/dist/hooks/useGenerateEmbeddedMetric.d.ts +15 -0
- package/dist/hooks/useOutsideAlerter.d.ts +2 -2
- package/dist/index.d.ts +6 -0
- package/dist/index.es.js +3191 -2832
- package/dist/index.umd.js +124 -106
- package/dist/style.css +1 -1
- package/dist/types/app.d.ts +124 -0
- package/dist/types/index.d.ts +2 -124
- package/dist/types/metricCreate.d.ts +1 -9
- package/dist/utils/arrayToCsvString.d.ts +1 -2
- package/dist/utils/colors.d.ts +1 -2
- package/dist/utils/getChartAttributes.d.ts +2 -2
- package/dist/utils/getFormattedDataType.d.ts +1 -2
- package/dist/utils/index.d.ts +5 -0
- package/package.json +3 -3
|
@@ -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) => JSX.Element;
|
|
13
|
-
export
|
|
12
|
+
export declare const Button: ({ isDisabled, type, className, children, variant, size, onClick, title, }: Props) => JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -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
|
|
18
|
-
export
|
|
17
|
+
export declare const ChartConfig: ({ data, setXAxis, xAxis, setYAxisList, chartType, setStep, setMeasure, step, measure, setSankeyValues, setSettingsShow, singleValue, setSingleValue, }: Props) => JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -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) => JSX.Element;
|
|
6
|
-
export
|
|
5
|
+
export declare const ChartModalOptions: ({ setChartType }: Props) => JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { AxisSettings, CustomSettings, LabelSettings, LegendSettings } from '@/types';
|
|
2
|
+
import { AxisSettings, CustomSettings, LabelSettings, LegendSettings } from '@/types/app';
|
|
3
3
|
declare type Props = {
|
|
4
4
|
data: {
|
|
5
5
|
labels: string[] | undefined;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
declare const
|
|
3
|
-
export default _default;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const DataType: ({ datatype }: Record<string, string>) => JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
declare const
|
|
3
|
-
export default _default;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const ErrorFallback: () => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FieldValues } from 'react-hook-form';
|
|
3
|
-
import { DashboardType } from '@/types';
|
|
3
|
+
import { DashboardType } from '@/types/app';
|
|
4
4
|
declare type ExternalMetricProps = {
|
|
5
5
|
onSubmit: (values: FieldValues) => void;
|
|
6
6
|
defaultValues?: FieldValues;
|
|
@@ -11,5 +11,5 @@ declare type ExternalMetricProps = {
|
|
|
11
11
|
companyId: string;
|
|
12
12
|
error?: string;
|
|
13
13
|
};
|
|
14
|
-
declare const
|
|
15
|
-
export
|
|
14
|
+
export declare const ExternalMetricForm: React.FC<ExternalMetricProps>;
|
|
15
|
+
export {};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { RlsFilterObjectType } from '@/types';
|
|
2
|
+
import { RlsFilterObjectType } from '@/types/app';
|
|
3
3
|
import { FloatingDropDownProps, MultiFloatingDropDownProps } from '@/components/FloatingDropDown';
|
|
4
4
|
export declare type FilterDropDownProps = Omit<FloatingDropDownProps, 'options' | 'isDisabled'> & {
|
|
5
5
|
companyId: string;
|
|
6
6
|
filter: Pick<RlsFilterObjectType, 'columnName' | 'tableName' | 'defaultValue' | 'value'>;
|
|
7
7
|
autoSelected?: boolean;
|
|
8
8
|
};
|
|
9
|
+
export declare const FilterDropDown: ({ companyId, filter, onChange, selectedOption, autoSelected, ...rest }: FilterDropDownProps) => JSX.Element;
|
|
9
10
|
export declare type MultiFilterDropDownProps = Pick<FilterDropDownProps, 'autoSelected' | 'companyId' | 'filter'> & Omit<MultiFloatingDropDownProps, 'options' | 'isDisabled'>;
|
|
10
11
|
export declare const MultiFilterDropdown: React.FC<MultiFilterDropDownProps>;
|
|
11
|
-
declare const _default: React.MemoExoticComponent<({ companyId, filter, onChange, selectedOption, autoSelected, ...rest }: FilterDropDownProps) => JSX.Element>;
|
|
12
|
-
export default _default;
|
|
@@ -3,12 +3,14 @@ export declare type FilterFieldType = {
|
|
|
3
3
|
column: string;
|
|
4
4
|
operator: string;
|
|
5
5
|
value?: string | string[] | number | number[] | boolean | boolean[] | null;
|
|
6
|
+
as?: string;
|
|
6
7
|
};
|
|
7
|
-
declare type FilterFieldProps = {
|
|
8
|
+
export declare type FilterFieldProps = {
|
|
8
9
|
tableName: string;
|
|
9
10
|
filter: {
|
|
10
11
|
name: string;
|
|
11
12
|
dataType: string;
|
|
13
|
+
as: string;
|
|
12
14
|
};
|
|
13
15
|
isResetted: boolean;
|
|
14
16
|
onChange: (field: FilterFieldType) => void;
|
|
@@ -16,5 +18,4 @@ declare type FilterFieldProps = {
|
|
|
16
18
|
};
|
|
17
19
|
export declare const isInFilterOperator: (input: string) => boolean;
|
|
18
20
|
export declare const isNullFilterOperator: (input: string) => boolean;
|
|
19
|
-
declare const
|
|
20
|
-
export default _default;
|
|
21
|
+
export declare const FilterField: React.FC<FilterFieldProps>;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
key?: string;
|
|
4
|
-
label: string;
|
|
5
|
-
value: string;
|
|
6
|
-
};
|
|
2
|
+
import { FloatingDropDownOption } from '@/types';
|
|
7
3
|
export declare type FloatingDropDownProps = {
|
|
8
4
|
onChange: (option: FloatingDropDownOption) => void;
|
|
9
5
|
selectedOption: FloatingDropDownOption;
|
|
@@ -15,11 +11,13 @@ export declare type FloatingDropDownProps = {
|
|
|
15
11
|
isSearchEnabled?: boolean;
|
|
16
12
|
children?: React.ReactNode;
|
|
17
13
|
Icon?: any;
|
|
14
|
+
closeControl?: {
|
|
15
|
+
close: boolean;
|
|
16
|
+
};
|
|
18
17
|
};
|
|
18
|
+
export declare const FloatingDropDown: ({ label, labelVariant, selectedOption, onChange, className, options, isDisabled, children, Icon, isSearchEnabled, closeControl, }: FloatingDropDownProps) => JSX.Element;
|
|
19
19
|
export declare type MultiFloatingDropDownProps = Omit<FloatingDropDownProps, 'selectedOption' | 'onChange'> & {
|
|
20
20
|
selectedOptions: FloatingDropDownOption[];
|
|
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) => JSX.Element>;
|
|
25
|
-
export default _default;
|
|
@@ -5,5 +5,5 @@ declare type Props = {
|
|
|
5
5
|
onCancel: () => void;
|
|
6
6
|
chart?: MetricChartProps;
|
|
7
7
|
};
|
|
8
|
-
declare const FullScreenChart: ({ isShow, onCancel, chart }: Props) => JSX.Element;
|
|
9
|
-
export
|
|
8
|
+
export declare const FullScreenChart: ({ isShow, onCancel, chart }: Props) => JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { MetricCardProps } from '@/components/MetricList/components/MetricCard';
|
|
3
|
-
import { FilterType } from '@/types';
|
|
4
|
-
declare type
|
|
3
|
+
import { FilterType } from '@/types/app';
|
|
4
|
+
declare type GlobalFiltersProps = {
|
|
5
5
|
filters: FilterType[];
|
|
6
6
|
companyId: string;
|
|
7
7
|
onApply: (filters: MetricCardProps['globalFilters']) => void;
|
|
8
8
|
};
|
|
9
|
-
declare const
|
|
10
|
-
export
|
|
9
|
+
export declare const GlobalFilters: React.FC<GlobalFiltersProps>;
|
|
10
|
+
export {};
|
|
@@ -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) => JSX.Element;
|
|
25
|
-
export
|
|
24
|
+
export 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
|
+
export {};
|
|
@@ -6,5 +6,5 @@ declare type CsvDownloadButtonProps = {
|
|
|
6
6
|
iconClass?: string;
|
|
7
7
|
text?: string;
|
|
8
8
|
};
|
|
9
|
-
declare const
|
|
10
|
-
export
|
|
9
|
+
export declare const CsvDownloadButton: React.FC<CsvDownloadButtonProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AxisSettings, LabelSettings, LegendSettings, BackgroundSettings, CustomSettings } from '@/types/app';
|
|
3
|
+
export declare type MetricChartProps = {
|
|
4
|
+
data: {
|
|
5
|
+
labels: string[] | undefined;
|
|
6
|
+
datasets: {
|
|
7
|
+
label: string;
|
|
8
|
+
data: any[] | undefined;
|
|
9
|
+
borderColor: string;
|
|
10
|
+
}[] | undefined;
|
|
11
|
+
};
|
|
12
|
+
labels: string[] | undefined;
|
|
13
|
+
funnelData: ('' | {
|
|
14
|
+
value: any;
|
|
15
|
+
name: any;
|
|
16
|
+
} | undefined)[] | undefined;
|
|
17
|
+
chartType: string;
|
|
18
|
+
sankeyData: (any[] | undefined)[] | undefined;
|
|
19
|
+
singleValueData: ('' | {
|
|
20
|
+
value: any;
|
|
21
|
+
label: string;
|
|
22
|
+
} | undefined)[] | undefined;
|
|
23
|
+
margins: Record<string, number>;
|
|
24
|
+
legendSettings: LegendSettings;
|
|
25
|
+
labelSettings: LabelSettings;
|
|
26
|
+
axisSettings: AxisSettings;
|
|
27
|
+
customSettings: CustomSettings;
|
|
28
|
+
enableSaveAs: boolean;
|
|
29
|
+
colors?: string[];
|
|
30
|
+
updateGroup?: (value: string) => void;
|
|
31
|
+
isEnableGroupBy?: boolean;
|
|
32
|
+
backGroundColor: BackgroundSettings;
|
|
33
|
+
};
|
|
34
|
+
export declare const MetricChart: ({ labels, data, chartType, funnelData, sankeyData, singleValueData, margins, legendSettings, labelSettings, axisSettings, customSettings, enableSaveAs, colors, updateGroup, isEnableGroupBy, backGroundColor, }: MetricChartProps) => JSX.Element;
|
|
@@ -1,35 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare type MetricChartProps = {
|
|
4
|
-
data: {
|
|
5
|
-
labels: string[] | undefined;
|
|
6
|
-
datasets: {
|
|
7
|
-
label: string;
|
|
8
|
-
data: any[] | undefined;
|
|
9
|
-
borderColor: string;
|
|
10
|
-
}[] | undefined;
|
|
11
|
-
};
|
|
12
|
-
labels: string[] | undefined;
|
|
13
|
-
funnelData: ('' | {
|
|
14
|
-
value: any;
|
|
15
|
-
name: any;
|
|
16
|
-
} | undefined)[] | undefined;
|
|
17
|
-
chartType: string;
|
|
18
|
-
sankeyData: (any[] | undefined)[] | undefined;
|
|
19
|
-
singleValueData: ('' | {
|
|
20
|
-
value: any;
|
|
21
|
-
label: string;
|
|
22
|
-
} | undefined)[] | undefined;
|
|
23
|
-
margins: Record<string, number>;
|
|
24
|
-
legendSettings: LegendSettings;
|
|
25
|
-
labelSettings: LabelSettings;
|
|
26
|
-
axisSettings: AxisSettings;
|
|
27
|
-
customSettings: CustomSettings;
|
|
28
|
-
enableSaveAs: boolean;
|
|
29
|
-
colors?: string[];
|
|
30
|
-
updateGroup?: (value: string) => void;
|
|
31
|
-
isEnableGroupBy?: boolean;
|
|
32
|
-
backGroundColor: BackgroundSettings;
|
|
33
|
-
};
|
|
34
|
-
declare const MetricChart: ({ labels, data, chartType, funnelData, sankeyData, singleValueData, margins, legendSettings, labelSettings, axisSettings, customSettings, enableSaveAs, colors, updateGroup, isEnableGroupBy, backGroundColor, }: MetricChartProps) => JSX.Element;
|
|
35
|
-
export default MetricChart;
|
|
1
|
+
export * from './CsvDownloadButton';
|
|
2
|
+
export * from './MetricChart';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ConstructMetricProps } from '@/types/metricCreate';
|
|
3
|
+
export declare const ConstructMetric: ({ dateTimeColumnList, columnList, database, companyId, tableName, setData, setError, setLoading, setQuery, isEnableGroupBy, setEnableGroupBy, setSelectedGroupBy, }: ConstructMetricProps) => JSX.Element;
|
package/dist/components/MetricCreation/components/ConstructMetric/components/MetricForm/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { ConstructMetricProps } from '@/types/metricCreate';
|
|
3
|
-
declare const
|
|
4
|
-
export default _default;
|
|
3
|
+
export declare const MetricForm: ({ dateTimeColumnList, columnList, database, companyId, tableName, setData, setError, setLoading, setQuery, isEnableGroupBy, setSelectedGroupBy, }: ConstructMetricProps) => JSX.Element;
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare const _default: React.MemoExoticComponent<({ dateTimeColumnList, columnList, database, companyId, tableName, setData, setError, setLoading, setQuery, isEnableGroupBy, setEnableGroupBy, setSelectedGroupBy, }: ConstructMetricProps) => JSX.Element>;
|
|
4
|
-
export default _default;
|
|
1
|
+
export * from './components/MetricForm';
|
|
2
|
+
export * from './ConstructMetric';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { DatasetProps } from '@/types/metricCreate';
|
|
3
|
-
declare const
|
|
4
|
-
export default _default;
|
|
3
|
+
export declare const Dataset: ({ setselectTable, selectTable, tableList, columnList, }: DatasetProps) => JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { HeaderProps } from '@/types/metricCreate';
|
|
3
|
-
declare const Header: ({ setShowMetricCreateModal, isDisableSaveBtn, Heading, isDisableSqlBtn, setShowSaveMetricModal, setShowSqlModal, }: HeaderProps) => JSX.Element;
|
|
4
|
-
export default Header;
|
|
3
|
+
export declare const Header: ({ setShowMetricCreateModal, isDisableSaveBtn, Heading, isDisableSqlBtn, setShowSaveMetricModal, setShowSqlModal, }: HeaderProps) => JSX.Element;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
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, }: MetricOutputProps) => JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { AxisSettings, BackgroundSettings, CustomSettings, LabelSettings, LegendSettings } from '@/types';
|
|
2
|
+
import { AxisSettings, BackgroundSettings, CustomSettings, LabelSettings, LegendSettings } from '@/types/app';
|
|
3
3
|
declare type Props = {
|
|
4
4
|
setMargins: React.Dispatch<React.SetStateAction<Record<string, number>>>;
|
|
5
5
|
margins: Record<string, number>;
|
|
@@ -16,5 +16,5 @@ declare type Props = {
|
|
|
16
16
|
backGroundColor: BackgroundSettings;
|
|
17
17
|
setBackGroundColor: React.Dispatch<React.SetStateAction<BackgroundSettings>>;
|
|
18
18
|
};
|
|
19
|
-
declare const ChartConfigure: ({ setMargins, margins, legendSettings, setLegendSettings, labelSettings, setLabelSettings, axisSettings, setAxisSettings, chartType, setChartType, customSettings, setCustomSettings, backGroundColor, setBackGroundColor, }: Props) => JSX.Element;
|
|
20
|
-
export
|
|
19
|
+
export declare const ChartConfigure: ({ setMargins, margins, legendSettings, setLegendSettings, labelSettings, setLabelSettings, axisSettings, setAxisSettings, chartType, setChartType, customSettings, setCustomSettings, backGroundColor, setBackGroundColor, }: Props) => JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { AxisSettings, BackgroundSettings, CustomSettings, LabelSettings, LegendSettings } from '@/types';
|
|
2
|
+
import { AxisSettings, BackgroundSettings, CustomSettings, LabelSettings, LegendSettings } from '@/types/app';
|
|
3
3
|
declare type Props = {
|
|
4
4
|
data: any[] | undefined;
|
|
5
5
|
chartType: string;
|
|
@@ -28,5 +28,5 @@ declare type Props = {
|
|
|
28
28
|
backGroundColor: BackgroundSettings;
|
|
29
29
|
setBackGroundColor: React.Dispatch<React.SetStateAction<BackgroundSettings>>;
|
|
30
30
|
};
|
|
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;
|
|
32
|
-
export
|
|
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;
|
|
32
|
+
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';
|
|
2
|
+
import { AxisSettings, LabelSettings, LegendSettings, BackgroundSettings, CustomSettings } from '@/types/app';
|
|
3
3
|
declare type Props = {
|
|
4
4
|
data: any[] | undefined;
|
|
5
5
|
labels: string[] | undefined;
|
|
@@ -45,5 +45,5 @@ declare type Props = {
|
|
|
45
45
|
backGroundColor: BackgroundSettings;
|
|
46
46
|
setBackGroundColor: React.Dispatch<React.SetStateAction<BackgroundSettings>>;
|
|
47
47
|
};
|
|
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;
|
|
49
|
-
export
|
|
48
|
+
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, }: Props) => JSX.Element;
|
|
49
|
+
export {};
|
package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/index.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ declare type Props = {
|
|
|
5
5
|
isOutputLoading: boolean;
|
|
6
6
|
outputError: string;
|
|
7
7
|
};
|
|
8
|
-
declare const TableTab: ({ outpuTableData, outputError, isOutputLoading, previewTableDataList, }: Props) => JSX.Element;
|
|
9
|
-
export
|
|
8
|
+
export declare const TableTab: ({ outpuTableData, outputError, isOutputLoading, previewTableDataList, }: Props) => JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export default MetricOutput;
|
|
1
|
+
export * from './MetricOutput';
|
|
2
|
+
export * from './components/ChartTab';
|
|
3
|
+
export * from './components/TableTab';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
1
|
+
export * from './MetricCreation';
|
|
2
|
+
export * from './components/ConstructMetric';
|
|
3
|
+
export * from './components/Dataset';
|
|
4
|
+
export * from './components/Header';
|
|
5
|
+
export * from './components/MetricOutput';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { PopoverMenuProps } from '@/components/PopoverMenu';
|
|
3
|
-
import { RlsCondition } from '@/types';
|
|
3
|
+
import { RlsCondition } from '@/types/app';
|
|
4
4
|
declare type Props = Partial<PopoverMenuProps> & {
|
|
5
5
|
rlsConditions: RlsCondition[];
|
|
6
6
|
onChangeFilterValue: (name: string, value: string) => void;
|
|
7
7
|
dbName: string;
|
|
8
8
|
iconClass?: string;
|
|
9
9
|
};
|
|
10
|
-
declare const
|
|
11
|
-
export
|
|
10
|
+
export declare const MetricFilters: ({ rlsConditions, onChangeFilterValue, dbName, iconClass, ...rest }: Props) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -5,5 +5,5 @@ declare type Props = {
|
|
|
5
5
|
onChangeFilterValue: (name: string, value: string) => void;
|
|
6
6
|
name: string;
|
|
7
7
|
};
|
|
8
|
-
declare const MultipleTimeGrain: ({ columnName, dbName, onChangeFilterValue, name, }: Props) => JSX.Element;
|
|
9
|
-
export
|
|
8
|
+
export declare const MultipleTimeGrain: ({ columnName, dbName, onChangeFilterValue, name, }: Props) => JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MetricCardProps } from './components/MetricCard';
|
|
3
|
+
import { ClientType } from '@/types/app';
|
|
4
|
+
import { ThemeType } from '@/utils/theme';
|
|
5
|
+
export declare const GridLayout: React.ComponentClass<import("react-grid-layout").ResponsiveProps & import("react-grid-layout").WidthProviderProps, any>;
|
|
6
|
+
export declare type ExternalMetricListProps = {
|
|
7
|
+
chartColors?: string[];
|
|
8
|
+
globalFilters?: MetricCardProps['globalFilters'];
|
|
9
|
+
client: ClientType['value'];
|
|
10
|
+
isLiveMode: boolean;
|
|
11
|
+
isMetricListLoading?: boolean;
|
|
12
|
+
breakpoint: ThemeType['breakpoint'];
|
|
13
|
+
layoutCols: ThemeType['metricLayoutCols'];
|
|
14
|
+
externalDashboardMetrics?: {
|
|
15
|
+
__typename?: 'externalDashboardMetrics';
|
|
16
|
+
externalMetricId: any;
|
|
17
|
+
externalDashboardId: any;
|
|
18
|
+
externalMetric: {
|
|
19
|
+
__typename?: 'externalMetrics';
|
|
20
|
+
chartOptions: any;
|
|
21
|
+
clientId?: string | null;
|
|
22
|
+
companyId: any;
|
|
23
|
+
companyIntegrationId: any;
|
|
24
|
+
createdAt: any;
|
|
25
|
+
createdBy?: string | null;
|
|
26
|
+
description: string;
|
|
27
|
+
id: any;
|
|
28
|
+
inputFields?: any | null;
|
|
29
|
+
integrationName: string;
|
|
30
|
+
isCreatedByClient: boolean;
|
|
31
|
+
isLive: boolean;
|
|
32
|
+
metricId: string;
|
|
33
|
+
metricQuery?: string | null;
|
|
34
|
+
name: string;
|
|
35
|
+
outputColumns?: string | null;
|
|
36
|
+
query: string;
|
|
37
|
+
resizeAttributes: any;
|
|
38
|
+
timeGrain?: string | null;
|
|
39
|
+
updatedAt: any;
|
|
40
|
+
};
|
|
41
|
+
}[] | undefined;
|
|
42
|
+
params?: any;
|
|
43
|
+
companyTenancyType: string;
|
|
44
|
+
};
|
|
45
|
+
export declare const ExternalMetricList: React.FC<ExternalMetricListProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ClientType } from '@/types';
|
|
2
|
+
import { ClientType } from '@/types/app';
|
|
3
3
|
import { MetricChartProps } from '@/components/MetricChart';
|
|
4
4
|
import { FilterFieldType } from '@/components/FilterField';
|
|
5
5
|
export declare type MetricCardProps = {
|
|
@@ -14,5 +14,4 @@ export declare type MetricCardProps = {
|
|
|
14
14
|
param?: any;
|
|
15
15
|
companyTenancyType: string;
|
|
16
16
|
};
|
|
17
|
-
declare const MetricCard: React.FC<MetricCardProps>;
|
|
18
|
-
export default MetricCard;
|
|
17
|
+
export declare const MetricCard: React.FC<MetricCardProps>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { MetricCardProps } from '@/components/MetricList/components/MetricCard';
|
|
3
|
-
declare const SingleValueCard: React.FC<Omit<MetricCardProps, 'onMaximize'>>;
|
|
4
|
-
export default SingleValueCard;
|
|
3
|
+
export declare const SingleValueCard: React.FC<Omit<MetricCardProps, 'onMaximize'>>;
|
|
@@ -1,45 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { ThemeType } from '@/utils/theme';
|
|
5
|
-
export declare type ExternalMetricListProps = {
|
|
6
|
-
chartColors?: string[];
|
|
7
|
-
globalFilters?: MetricCardProps['globalFilters'];
|
|
8
|
-
client: ClientType['value'];
|
|
9
|
-
isLiveMode: boolean;
|
|
10
|
-
isMetricListLoading?: boolean;
|
|
11
|
-
breakpoint: ThemeType['breakpoint'];
|
|
12
|
-
layoutCols: ThemeType['metricLayoutCols'];
|
|
13
|
-
externalDashboardMetrics?: {
|
|
14
|
-
__typename?: 'externalDashboardMetrics';
|
|
15
|
-
externalMetricId: any;
|
|
16
|
-
externalDashboardId: any;
|
|
17
|
-
externalMetric: {
|
|
18
|
-
__typename?: 'externalMetrics';
|
|
19
|
-
chartOptions: any;
|
|
20
|
-
clientId?: string | null;
|
|
21
|
-
companyId: any;
|
|
22
|
-
companyIntegrationId: any;
|
|
23
|
-
createdAt: any;
|
|
24
|
-
createdBy?: string | null;
|
|
25
|
-
description: string;
|
|
26
|
-
id: any;
|
|
27
|
-
inputFields?: any | null;
|
|
28
|
-
integrationName: string;
|
|
29
|
-
isCreatedByClient: boolean;
|
|
30
|
-
isLive: boolean;
|
|
31
|
-
metricId: string;
|
|
32
|
-
metricQuery?: string | null;
|
|
33
|
-
name: string;
|
|
34
|
-
outputColumns?: string | null;
|
|
35
|
-
query: string;
|
|
36
|
-
resizeAttributes: any;
|
|
37
|
-
timeGrain?: string | null;
|
|
38
|
-
updatedAt: any;
|
|
39
|
-
};
|
|
40
|
-
}[] | undefined;
|
|
41
|
-
params?: any;
|
|
42
|
-
companyTenancyType: string;
|
|
43
|
-
};
|
|
44
|
-
declare const _default: React.NamedExoticComponent<ExternalMetricListProps>;
|
|
45
|
-
export default _default;
|
|
1
|
+
export * from './MetricList';
|
|
2
|
+
export * from './components/MetricCard';
|
|
3
|
+
export * from './components/SingleValueCard';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
export interface ModalProps extends PropsWithChildren<any> {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
headerTitle?: string;
|
|
6
|
+
customHeader?: JSX.Element;
|
|
7
|
+
icon?: any;
|
|
8
|
+
}
|
|
9
|
+
export declare const Modal: React.FC<ModalProps>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare
|
|
3
|
-
|
|
2
|
+
export declare type ModalFooterProps = React.PropsWithChildren<any> & {
|
|
3
|
+
className?: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const ModalFooter: React.FC<ModalFooterProps>;
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
isOpen: boolean;
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
headerTitle?: string;
|
|
6
|
-
customHeader?: JSX.Element;
|
|
7
|
-
icon?: any;
|
|
8
|
-
}
|
|
9
|
-
declare const _default: React.NamedExoticComponent<ModalProps>;
|
|
10
|
-
export default _default;
|
|
1
|
+
export * from './Modal';
|
|
2
|
+
export * from './ModalFooter';
|
|
@@ -8,5 +8,4 @@ export declare type PopoverMenuProps = React.PropsWithChildren & {
|
|
|
8
8
|
isDisabled?: boolean;
|
|
9
9
|
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';
|
|
10
10
|
};
|
|
11
|
-
declare const
|
|
12
|
-
export default _default;
|
|
11
|
+
export declare const PopoverMenu: React.FC<PopoverMenuProps>;
|