@databrainhq/plugin 0.12.32 → 0.13.0-beta.0
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/Accordion/index.d.ts +27 -0
- package/dist/components/Badge/index.d.ts +9 -0
- package/dist/components/Button/index.d.ts +6 -3
- package/dist/components/Chart/SingleValueChart.d.ts +1 -1
- package/dist/components/Chart/index.d.ts +4 -2
- package/dist/components/ChartSettingsPopup/ChartSettingsPopup.d.ts +2 -3
- package/dist/components/ChartSettingsPopup/components/ChartConfigure/PositionContainer.d.ts +7 -0
- package/dist/components/ChartSettingsPopup/components/ChartConfigure/index.d.ts +10 -3
- package/dist/components/ChartTypePanel/index.d.ts +15 -0
- package/dist/components/Checkbox/index.d.ts +10 -0
- package/dist/components/ColorField/{Index.d.ts → ColorField.d.ts} +2 -2
- package/dist/components/DateRangePicker/index.d.ts +3 -1
- package/dist/components/DrillBreadCrumb/index.d.ts +3 -1
- package/dist/components/FilterDropDown/index.d.ts +8 -4
- package/dist/components/FloatingDropDown/index.d.ts +10 -14
- package/dist/components/FullScreenChart/index.d.ts +1 -1
- package/dist/components/GlobalFilters/AppliedFilter.d.ts +1 -1
- package/dist/components/GlobalFilters/Filters.d.ts +1 -1
- package/dist/components/GlobalFilters/HorizontalFilters.d.ts +1 -1
- package/dist/components/GlobalFilters/NumberFilterField.d.ts +3 -1
- package/dist/components/GlobalFilters/index.d.ts +1 -2
- package/dist/components/Icons/Logos/index.d.ts +12 -0
- package/dist/components/Icons/index.d.ts +6 -4
- package/dist/components/InfoTooltip/index.d.ts +6 -2
- package/dist/components/InputField/index.d.ts +5 -6
- package/dist/components/List/index.d.ts +19 -0
- package/dist/components/Menu/index.d.ts +30 -0
- package/dist/components/MetricChart/CsvDownloadButton.d.ts +2 -1
- package/dist/components/MetricList/MetricList.d.ts +6 -1
- package/dist/components/MetricList/components/ArchiveMetricModal/index.d.ts +1 -1
- package/dist/components/MetricList/components/FullScreenView/index.d.ts +4 -5
- package/dist/components/MetricList/components/MetricCards/MetricCard.d.ts +4 -3
- package/dist/components/Modal/Modal.d.ts +1 -0
- package/dist/components/MultiSelectDropdown/index.d.ts +28 -0
- package/dist/components/Panel/index.d.ts +15 -0
- package/dist/components/PopoverMenu/index.d.ts +21 -5
- package/dist/components/RadioButton/index.d.ts +16 -0
- package/dist/components/SearchTab/index.d.ts +1 -1
- package/dist/components/Select/index.d.ts +2 -12
- package/dist/components/{ToggleButton → Switch}/SwitchInput.d.ts +1 -1
- package/dist/components/Switch/index.d.ts +10 -0
- package/dist/components/Table/index.d.ts +4 -1
- package/dist/components/Tabs/index.d.ts +37 -0
- package/dist/components/Text/index.d.ts +7 -6
- package/dist/components/TimeGrainField/index.d.ts +1 -1
- package/dist/components/index.d.ts +12 -1
- package/dist/consts/app.d.ts +4 -0
- package/dist/consts/metricOptions.d.ts +4 -0
- package/dist/helpers/checkIsElementInViewport.d.ts +1 -0
- package/dist/helpers/index.d.ts +2 -0
- package/dist/helpers/timeseries.d.ts +2 -2
- package/dist/hooks/useMetricCard.d.ts +9 -7
- package/dist/hooks/useOutsideAlerter.d.ts +8 -1
- package/dist/queries/externalDashboard.mutation.d.ts +1 -1
- package/dist/queries/externalDashboard.query.d.ts +1 -1
- package/dist/queries/metric.mutation.d.ts +1 -1
- package/dist/queries/metric.query.d.ts +1 -1
- package/dist/types/app.d.ts +46 -6
- package/dist/types/metricCreate.d.ts +5 -0
- package/dist/utils/colors.d.ts +1 -0
- package/dist/utils/getChartOptions.d.ts +1 -2
- package/dist/utils/index.d.ts +1 -0
- package/dist/webcomponents.es.js +84984 -91456
- package/dist/webcomponents.umd.js +270 -344
- package/package.json +108 -107
- package/dist/components/ChartModal/SelectField.d.ts +0 -2
- package/dist/components/Charts/AreaChart.d.ts +0 -3
- package/dist/components/Charts/BarChart.d.ts +0 -25
- package/dist/components/Charts/BoxPlot.d.ts +0 -3
- package/dist/components/Charts/BubbleChart.d.ts +0 -3
- package/dist/components/Charts/ComboChart.d.ts +0 -3
- package/dist/components/Charts/DoughnutChart.d.ts +0 -3
- package/dist/components/Charts/FunnelChart.d.ts +0 -3
- package/dist/components/Charts/GaugeChart.d.ts +0 -3
- package/dist/components/Charts/Histogram.d.ts +0 -3
- package/dist/components/Charts/LineChart.d.ts +0 -25
- package/dist/components/Charts/PieChart.d.ts +0 -3
- package/dist/components/Charts/RowChart.d.ts +0 -3
- package/dist/components/Charts/SankeyChart.d.ts +0 -3
- package/dist/components/Charts/ScatterChart.d.ts +0 -3
- package/dist/components/Charts/SingleValueChart/index.d.ts +0 -3
- package/dist/components/Charts/StackedBarChart.d.ts +0 -3
- package/dist/components/Charts/SteppedAreaChart.d.ts +0 -3
- package/dist/components/Charts/Table/TableChart.d.ts +0 -3
- package/dist/components/Charts/TimeSeriesChart.d.ts +0 -4
- package/dist/components/Charts/WaterfallChart.d.ts +0 -3
- package/dist/components/MetricChart/MetricChart.d.ts +0 -45
- package/dist/components/ToggleButton/ToggleInput.d.ts +0 -9
- package/dist/components/ToggleButton/index.d.ts +0 -14
- package/dist/containers/index.d.ts +0 -3
- package/dist/index.d.ts +0 -7
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UseFormRegisterReturn } from 'react-hook-form';
|
|
3
|
+
interface Props extends React.HTMLProps<HTMLInputElement> {
|
|
4
|
+
label?: string;
|
|
5
|
+
register?: UseFormRegisterReturn;
|
|
6
|
+
error?: any;
|
|
7
|
+
leftIcon?: JSX.Element;
|
|
8
|
+
rightIcon?: JSX.Element;
|
|
9
|
+
isDisabled?: boolean;
|
|
10
|
+
labelClass?: string;
|
|
11
|
+
inputClass?: string;
|
|
12
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
13
|
+
elementRef?: React.Ref<HTMLInputElement>;
|
|
14
|
+
}
|
|
15
|
+
export declare const RadioButton: ({ type, register, error, leftIcon, rightIcon, label, isDisabled, labelClass, inputClass, className, id, elementRef, ...rest }: Props) => React.JSX.Element;
|
|
16
|
+
export default RadioButton;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const SearchTab: ({ setSearchKeyword, className }: any) => React.JSX.Element;
|
|
2
|
+
export declare const SearchTab: ({ setSearchKeyword, className, placeholder, }: any) => React.JSX.Element;
|
|
@@ -6,30 +6,21 @@ type Option = {
|
|
|
6
6
|
label: string;
|
|
7
7
|
};
|
|
8
8
|
type SelectInput = {
|
|
9
|
-
name?: string;
|
|
10
9
|
label?: string;
|
|
11
10
|
value: any;
|
|
12
11
|
placeHolder?: string;
|
|
13
12
|
options: Option[] | undefined;
|
|
14
13
|
onChange?: (val: string | any) => void;
|
|
15
|
-
defaultValue?: string | number | boolean;
|
|
16
|
-
children?: React.ReactNode;
|
|
17
|
-
className?: string;
|
|
18
|
-
containerClass?: string;
|
|
19
14
|
isSearchEnabled?: boolean;
|
|
20
|
-
|
|
21
|
-
textSize?: string;
|
|
15
|
+
searchIcon?: JSX.Element;
|
|
22
16
|
labelVariant?: 'floating' | 'static';
|
|
23
17
|
};
|
|
24
18
|
type HookSelectInput = Omit<SelectInput, 'value'> & {
|
|
25
19
|
control: Control;
|
|
26
20
|
name: string;
|
|
27
21
|
};
|
|
28
|
-
export declare const
|
|
29
|
-
export declare const Select: ({ name, label, options, onChange, value, defaultValue, children, placeHolder, className, containerClass, isSearchEnabled, textSize, icon, labelVariant, }: SelectInput) => React.JSX.Element;
|
|
22
|
+
export declare const Select: ({ label, options, onChange, value, placeHolder, isSearchEnabled, searchIcon, labelVariant, }: SelectInput) => React.JSX.Element;
|
|
30
23
|
export declare const HookSelect: ({ control, name, ...rest }: HookSelectInput) => React.JSX.Element;
|
|
31
|
-
export declare const SelectWithSubValue: ({ label, options, onChange, value, defaultValue, }: any) => React.JSX.Element;
|
|
32
|
-
export declare const DropDown: ({ control, name, options, label, defaultValue, }: HookSelectInput) => React.JSX.Element;
|
|
33
24
|
type MultiSelectProps = {
|
|
34
25
|
options: Option[];
|
|
35
26
|
defaultValue?: Option['value'][];
|
|
@@ -47,7 +38,6 @@ type MultiSelectProps = {
|
|
|
47
38
|
icon?: JSX.Element;
|
|
48
39
|
isDisableShowSelectedTag?: boolean;
|
|
49
40
|
};
|
|
50
|
-
export declare const OldMultiSelect: React.FC<MultiSelectProps>;
|
|
51
41
|
export declare const MultiSelect: React.FC<MultiSelectProps>;
|
|
52
42
|
type HookMultiSelectProps = MultiSelectProps & {
|
|
53
43
|
control: Control<FieldValues>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type SwitchButtonProps = {
|
|
3
|
+
onChange?: (enabled: boolean) => void;
|
|
4
|
+
enabled?: boolean;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
defaultEnabled?: boolean;
|
|
7
|
+
name?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const Switch: React.FC<SwitchButtonProps>;
|
|
10
|
+
export {};
|
|
@@ -23,6 +23,9 @@ type Props = {
|
|
|
23
23
|
isInfiniteScroll?: boolean;
|
|
24
24
|
onLoadMore?: () => void;
|
|
25
25
|
hasMoreData?: boolean;
|
|
26
|
+
isShowFullScreen?: boolean;
|
|
27
|
+
filterValues?: Record<string, any>;
|
|
28
|
+
onMaximize?: () => void;
|
|
26
29
|
};
|
|
27
|
-
export declare const Table: ({ data, isLoading, error, tableSettings, tableName, className, onColumnSizingChange, onChartReady, onChangePage, isExternalChart, isEnableNextBtn, isEnablePrevBtn, paginationInfo, setChartSettings, isInfiniteScroll, onLoadMore, hasMoreData, }: Props) => React.JSX.Element;
|
|
30
|
+
export declare const Table: ({ data, isLoading, error, tableSettings, tableName, className, onColumnSizingChange, onChartReady, onChangePage, isExternalChart, isEnableNextBtn, isEnablePrevBtn, paginationInfo, setChartSettings, isInfiniteScroll, onLoadMore, hasMoreData, isShowFullScreen, onMaximize, }: Props) => React.JSX.Element;
|
|
28
31
|
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type TabsContextType = [
|
|
3
|
+
activeTab: string | number,
|
|
4
|
+
setActiveTab: React.Dispatch<React.SetStateAction<string | number>>,
|
|
5
|
+
variant: 'primary' | 'popoverTabs'
|
|
6
|
+
];
|
|
7
|
+
export declare const TabsContext: React.Context<[] | TabsContextType>;
|
|
8
|
+
type TabsProps = {
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
variant?: 'primary' | 'popoverTabs';
|
|
11
|
+
defaultActiveTab?: string | number;
|
|
12
|
+
width?: string;
|
|
13
|
+
};
|
|
14
|
+
type TabProps = {
|
|
15
|
+
children: React.ReactNode;
|
|
16
|
+
tabId: string;
|
|
17
|
+
width?: string;
|
|
18
|
+
grow?: boolean;
|
|
19
|
+
className?: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const Tabs: {
|
|
22
|
+
Context: React.FC<TabsProps>;
|
|
23
|
+
List: React.FC<{
|
|
24
|
+
children: React.ReactNode;
|
|
25
|
+
width?: string | undefined;
|
|
26
|
+
background?: string | undefined;
|
|
27
|
+
className?: string | undefined;
|
|
28
|
+
}>;
|
|
29
|
+
Tab: React.FC<TabProps>;
|
|
30
|
+
Panel: React.FC<{
|
|
31
|
+
children: React.ReactNode;
|
|
32
|
+
tabId: string;
|
|
33
|
+
width?: string | undefined;
|
|
34
|
+
className?: string | undefined;
|
|
35
|
+
}>;
|
|
36
|
+
};
|
|
37
|
+
export {};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { Colors } from '@/types';
|
|
2
3
|
interface Props {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
children
|
|
4
|
+
variant?: 'heading-lg' | 'heading' | 'body-text-lg' | 'body-text' | 'body-text-sm' | 'btn' | 'label' | 'display' | 'body-text-xs';
|
|
5
|
+
color?: Colors;
|
|
6
|
+
children: React.ReactNode;
|
|
6
7
|
onClick?: () => void;
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
display?: 'block' | 'inline';
|
|
9
|
+
opacity?: 0 | 0.1 | 0.2 | 0.3 | 0.4 | 0.5 | 0.6 | 0.7 | 0.8 | 0.9 | 1;
|
|
9
10
|
}
|
|
10
|
-
export declare const Text: ({
|
|
11
|
+
export declare const Text: ({ children, variant, color, display, onClick, opacity, }: Props) => React.JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -3,7 +3,7 @@ import { FieldValues, UseFormRegister } from 'react-hook-form';
|
|
|
3
3
|
type Props = {
|
|
4
4
|
isShowlabel?: boolean;
|
|
5
5
|
timeGrainValue: string;
|
|
6
|
-
setTimeGrainValue: React.Dispatch<React.SetStateAction<string
|
|
6
|
+
setTimeGrainValue: React.Dispatch<React.SetStateAction<string>> | ((value: string) => void);
|
|
7
7
|
register?: UseFormRegister<FieldValues>;
|
|
8
8
|
className?: string;
|
|
9
9
|
isDisabled?: boolean;
|
|
@@ -24,7 +24,7 @@ export * from './Table';
|
|
|
24
24
|
export * from './Text';
|
|
25
25
|
export * from './TextAreaField';
|
|
26
26
|
export * from './TimeGrainField';
|
|
27
|
-
export * from './
|
|
27
|
+
export * from './Switch';
|
|
28
28
|
export * from './Icons';
|
|
29
29
|
export * from './ChartPopup';
|
|
30
30
|
export * from './DrillBreadCrumb';
|
|
@@ -38,3 +38,14 @@ export * from './GlobalFilters/NumberFilterField';
|
|
|
38
38
|
export * from './DateRangePicker';
|
|
39
39
|
export * from './Loader';
|
|
40
40
|
export * from './TagInputField';
|
|
41
|
+
export * from './Checkbox';
|
|
42
|
+
export * from './MultiSelectDropdown';
|
|
43
|
+
export * from './Accordion';
|
|
44
|
+
export * from './Panel';
|
|
45
|
+
export * from './Tabs';
|
|
46
|
+
export * from './List';
|
|
47
|
+
export * from './ColorField/ColorField';
|
|
48
|
+
export * from './RadioButton';
|
|
49
|
+
export * from './Menu';
|
|
50
|
+
export * from './ChartTypePanel';
|
|
51
|
+
export * from './Badge';
|
package/dist/consts/app.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isInViewport: (element: any) => boolean;
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BackgroundSettings, CustomSettings, LabelSettings, TimeSeriesGroupType, TimeSeriesType } from '@/types';
|
|
2
2
|
interface TimeSeriesData {
|
|
3
3
|
timeStampKey: string;
|
|
4
|
-
valuekeys: string[];
|
|
5
4
|
data: Record<string, any>[];
|
|
5
|
+
values?: string[];
|
|
6
6
|
}
|
|
7
7
|
export declare const getTimeSeriesData: ({ dataArray, timeStampKey, type, valuekeys, groupBy, labelSettings, customSettings, backGroundColor, fillXAxis, isCumulativeBar, }: {
|
|
8
8
|
dataArray: Record<string, any>[];
|
|
@@ -62,5 +62,5 @@ export declare const getTimeSeriesData: ({ dataArray, timeStampKey, type, valuek
|
|
|
62
62
|
focus: string;
|
|
63
63
|
};
|
|
64
64
|
})[];
|
|
65
|
-
export declare const isTimeSeriesDataValid: ({ data, timeStampKey,
|
|
65
|
+
export declare const isTimeSeriesDataValid: ({ data, timeStampKey, }: TimeSeriesData) => boolean;
|
|
66
66
|
export {};
|
|
@@ -3,15 +3,10 @@ import { ChartSettingsType, FloatingDropDownOption, RlsCondition, DatasetSetting
|
|
|
3
3
|
import { MetricCardProps } from '@/components';
|
|
4
4
|
type UseMetricCardProps = {
|
|
5
5
|
metric: Record<string, any>;
|
|
6
|
-
chartSettings: ChartSettingsType;
|
|
7
|
-
setChartSettings: React.Dispatch<React.SetStateAction<ChartSettingsType>>;
|
|
8
6
|
clientId: string;
|
|
9
7
|
tenancyLevel: string;
|
|
10
8
|
globalFilters?: MetricCardProps['globalFilters'];
|
|
11
|
-
rlsFilters?:
|
|
12
|
-
param: any;
|
|
13
|
-
filterValues: Record<string, any>;
|
|
14
|
-
};
|
|
9
|
+
rlsFilters?: any;
|
|
15
10
|
appFilters?: any;
|
|
16
11
|
datasetSettings?: DatasetSettings;
|
|
17
12
|
setDatasetSettings?: React.Dispatch<React.SetStateAction<DatasetSettings>>;
|
|
@@ -20,7 +15,7 @@ type UseMetricCardProps = {
|
|
|
20
15
|
crossDashboardFilters?: RlsCondition[];
|
|
21
16
|
metricFilterOptions?: MetricFilterOptionsType;
|
|
22
17
|
};
|
|
23
|
-
export declare const useMetricCard: ({ metric, globalFilters, rlsFilters, clientId,
|
|
18
|
+
export declare const useMetricCard: ({ metric, globalFilters, rlsFilters, clientId, tenancyLevel, isInternalApp, appFilters, setCrossDashboardFilters, crossDashboardFilters, metricFilterOptions, }: UseMetricCardProps) => {
|
|
24
19
|
onDrillLevelClick: (index: number) => void;
|
|
25
20
|
onDrillDown: (params: any) => void;
|
|
26
21
|
handleChartClick: (params: any) => void;
|
|
@@ -39,6 +34,13 @@ export declare const useMetricCard: ({ metric, globalFilters, rlsFilters, client
|
|
|
39
34
|
chartParams: any;
|
|
40
35
|
isQueryLoading: boolean;
|
|
41
36
|
setLoading: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
37
|
+
isSingleValueNull: boolean;
|
|
38
|
+
dynamicOptions: any;
|
|
39
|
+
chartSettings: ChartSettingsType;
|
|
40
|
+
setChartSettings: import("react").Dispatch<import("react").SetStateAction<ChartSettingsType>>;
|
|
41
|
+
isEnableZoom: boolean;
|
|
42
|
+
filterValues: Record<string, any>;
|
|
43
|
+
containerRef: import("react").RefObject<HTMLDivElement>;
|
|
42
44
|
drilledLevel: number;
|
|
43
45
|
dimensions: any;
|
|
44
46
|
rlsConditions: RlsCondition[];
|
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
type UseOutsideAlerterProps = {
|
|
3
3
|
onOutsideClick: () => void;
|
|
4
4
|
wrapRef: React.RefObject<any>;
|
|
5
|
+
portalRef?: any;
|
|
5
6
|
};
|
|
6
|
-
export declare const useOutsideAlerter: ({ onOutsideClick, wrapRef, }: UseOutsideAlerterProps) => void;
|
|
7
|
+
export declare const useOutsideAlerter: ({ onOutsideClick, wrapRef, portalRef, }: UseOutsideAlerterProps) => void;
|
|
8
|
+
type UsePopoverOutsideAlerterProps = {
|
|
9
|
+
wrapRef: React.RefObject<any>;
|
|
10
|
+
portalRef?: any;
|
|
11
|
+
autoCloseParent?: boolean;
|
|
12
|
+
};
|
|
13
|
+
export declare const usePopoverOutsideAlerter: ({ wrapRef, portalRef, autoCloseParent, }: UsePopoverOutsideAlerterProps) => void;
|
|
7
14
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UseCreateMetricMutationInputType, UseDeleteDashboardScheduleReportMutationInputType, UseGenerateMetricMutationInputType, UsePreviewTableMutationInputType, UseSaveDashboardLayoutMutationInputType, UseSaveDashboardScheduleReportMutationInputType, UseUpdateAdminMetricMutationInputType, UseUpdateMetricMutationInputType } from '
|
|
1
|
+
import { UseCreateMetricMutationInputType, UseDeleteDashboardScheduleReportMutationInputType, UseGenerateMetricMutationInputType, UsePreviewTableMutationInputType, UseSaveDashboardLayoutMutationInputType, UseSaveDashboardScheduleReportMutationInputType, UseUpdateAdminMetricMutationInputType, UseUpdateMetricMutationInputType } from '../types/queryTypes';
|
|
2
2
|
export declare const useSaveDashboardLayoutMutation: () => import("react-query").UseMutationResult<{
|
|
3
3
|
data: unknown;
|
|
4
4
|
}, unknown, UseSaveDashboardLayoutMutationInputType, unknown>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UseDashboardDataQueryInputType } from '
|
|
1
|
+
import { UseDashboardDataQueryInputType } from '../types/queryTypes';
|
|
2
2
|
export declare const useDashboardDataQuery: ({ token, dashboardId, }: UseDashboardDataQueryInputType) => import("react-query").UseQueryResult<{
|
|
3
3
|
data: unknown;
|
|
4
4
|
}, unknown>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UseMetricColumnMutationInputType, UseMetricUnderlyingDataMutationInputType, UseMetricShareCsvMutationInputType, UseMarkArchivedMutationInputType } from '
|
|
1
|
+
import { UseMetricColumnMutationInputType, UseMetricUnderlyingDataMutationInputType, UseMetricShareCsvMutationInputType, UseMarkArchivedMutationInputType } from '../types/queryTypes';
|
|
2
2
|
export declare const useMetricColumnMutation: () => import("react-query").UseMutationResult<{
|
|
3
3
|
data: unknown;
|
|
4
4
|
}, unknown, UseMetricColumnMutationInputType, unknown>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UseMetricQueryQueryInputType } from '
|
|
1
|
+
import { UseMetricQueryQueryInputType } from '../types/queryTypes';
|
|
2
2
|
export declare const useMetricDataQuery: (data: UseMetricQueryQueryInputType) => import("react-query").UseQueryResult<{
|
|
3
3
|
data: unknown;
|
|
4
4
|
}, unknown>;
|
package/dist/types/app.d.ts
CHANGED
|
@@ -44,9 +44,10 @@ export type LegendSettings = {
|
|
|
44
44
|
left?: number;
|
|
45
45
|
right?: number;
|
|
46
46
|
position?: string;
|
|
47
|
-
truncateLegend?: boolean;
|
|
48
47
|
truncateLegendValue?: number;
|
|
49
48
|
legendShape?: string;
|
|
49
|
+
customise?: boolean;
|
|
50
|
+
fixedPosition?: string;
|
|
50
51
|
};
|
|
51
52
|
export type MarginSettings = {
|
|
52
53
|
marginTop?: number;
|
|
@@ -55,12 +56,15 @@ export type MarginSettings = {
|
|
|
55
56
|
marginRight?: number;
|
|
56
57
|
};
|
|
57
58
|
export type CustomSettings = {
|
|
58
|
-
|
|
59
|
-
|
|
59
|
+
hideXSplitLines?: boolean;
|
|
60
|
+
hideYSplitLines?: boolean;
|
|
61
|
+
hideXAxisLines?: boolean;
|
|
62
|
+
hideYAxisLines?: boolean;
|
|
60
63
|
barWidth?: number;
|
|
61
64
|
barRadius?: number[];
|
|
62
65
|
xRotation?: number;
|
|
63
|
-
|
|
66
|
+
hideXAxisLabels?: boolean;
|
|
67
|
+
hideYAxisLabels?: boolean;
|
|
64
68
|
fontSize?: number;
|
|
65
69
|
subHeaderShow?: boolean;
|
|
66
70
|
comparisonValueShow?: boolean;
|
|
@@ -85,7 +89,7 @@ export type CustomSettings = {
|
|
|
85
89
|
hideNullValues?: boolean;
|
|
86
90
|
chartZoom?: {
|
|
87
91
|
isZoomEnabled?: boolean;
|
|
88
|
-
zoomAxis?:
|
|
92
|
+
zoomAxis?: string;
|
|
89
93
|
zoomOnMouseWheel?: boolean;
|
|
90
94
|
};
|
|
91
95
|
showDynamicBehaviour?: boolean;
|
|
@@ -123,6 +127,33 @@ export type CustomSettings = {
|
|
|
123
127
|
};
|
|
124
128
|
labelPrefix?: string;
|
|
125
129
|
labelSuffix?: string;
|
|
130
|
+
enableTitleDesc?: boolean;
|
|
131
|
+
chartTitle?: string;
|
|
132
|
+
chartDesc?: string;
|
|
133
|
+
titlePosition?: string;
|
|
134
|
+
cumulativeBar?: boolean;
|
|
135
|
+
stepPadding?: number;
|
|
136
|
+
showFunnelShadow?: boolean;
|
|
137
|
+
hideSplitLines?: boolean;
|
|
138
|
+
hideAxisLines?: boolean;
|
|
139
|
+
axisLabels?: boolean;
|
|
140
|
+
isStackBar?: boolean;
|
|
141
|
+
showSelectLegend?: boolean;
|
|
142
|
+
showStackLabels?: boolean;
|
|
143
|
+
coloredBars?: boolean;
|
|
144
|
+
};
|
|
145
|
+
export type Colors = 'primary' | 'primary-dark' | 'secondary' | 'secondary-dark' | 'alert' | 'alert-dark' | 'alert-light' | 'success' | 'success-dark' | 'success-light' | 'warning' | 'warning-dark' | 'info' | 'info-light' | 'white' | 'gray' | 'gray-dark' | 'light' | 'dark';
|
|
146
|
+
export type IconType = 'undo' | 'redo' | 'maximize' | 'minimize' | 'fullscreen' | 'download' | 'archive' | 'format' | 'company' | 'profile' | 'users' | 'bar-chart' | 'bar-chart-2' | 'kebab-menu-horizontal' | 'kebab-menu-vertical' | 'paint-brush' | 'funnel' | 'funnel-simple' | 'cross' | 'columns' | 'gear' | 'presentation-chart' | 'chevron-down' | 'plus' | 'info' | 'arrow-down' | 'arrow-up' | 'arrow-left' | 'arrow-right' | 'double-arrow-left' | 'double-arrow-right' | 'expand-arrows' | 'eye' | 'eye-slash' | 'database' | 'magnifying-glass' | 'pencil-simple-line' | 'pencil-simple' | 'file-sql' | 'code' | 'sign-out' | 'save' | 'delete' | 'align-space-even' | 'align-bottom' | 'align-left' | 'align-right' | 'align-top' | 'trend-up' | 'trend-up-chart' | 'caret-down-fill' | 'caret-up-fill' | 'caret-up-down' | 'pie-chart' | 'table-view' | 'task-done-file' | 'right-angle' | 'text-rotation-angle-up' | 'text-rotation-none' | 'text-rotation-up' | 'preview-file' | 'share' | 'image' | 'text' | 'color-palette' | 'shuffle' | 'table' | 'chart' | 'calendar' | 'horizontal-rule' | 'short-text' | 'subheader' | 'copy' | 'timer' | 'link' | 'not-found' | 'bar-chart-horizontal' | 'line-chart' | 'line-chart-trend-up' | 'globe' | 'map' | 'leaderboard' | 'radar' | 'scale' | 'scatter-plot' | 'tree' | 'donut-chart' | 'scatter-chart' | 'waterfall-chart' | 'area-chart' | 'bubble-chart' | 'candlestick-chart';
|
|
147
|
+
export type LogoType = 'redshift' | 'postgres' | 'mysql' | 'mongodb' | 'bigquery' | 'snowflake' | 'microsoft' | 'google' | 'elasticsearch' | 'redis';
|
|
148
|
+
export type IconSizes = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
149
|
+
export type IconConfig = {
|
|
150
|
+
size: IconSizes;
|
|
151
|
+
color: Colors;
|
|
152
|
+
};
|
|
153
|
+
export type IconsProps = {
|
|
154
|
+
name: IconType;
|
|
155
|
+
size?: IconSizes;
|
|
156
|
+
color?: Colors;
|
|
126
157
|
cumulativeBar?: boolean;
|
|
127
158
|
showFunnelShadow?: boolean;
|
|
128
159
|
stepPadding?: number;
|
|
@@ -135,6 +166,7 @@ export type TableSettings = {
|
|
|
135
166
|
contentAlignment?: string;
|
|
136
167
|
lineGap?: string;
|
|
137
168
|
hideVerticalDivider?: boolean;
|
|
169
|
+
hideHorizontalDivider?: boolean;
|
|
138
170
|
badgeColumns?: string[];
|
|
139
171
|
enableStripedRows?: boolean;
|
|
140
172
|
showRowHover?: boolean;
|
|
@@ -204,6 +236,7 @@ export type ChartSettingsType = {
|
|
|
204
236
|
margins?: MarginSettings;
|
|
205
237
|
xAxis?: string;
|
|
206
238
|
yAxisList?: string[];
|
|
239
|
+
chartColors?: string[];
|
|
207
240
|
stackTableCols?: string[];
|
|
208
241
|
step?: string;
|
|
209
242
|
measure?: string;
|
|
@@ -301,8 +334,11 @@ export type DashboardType = {
|
|
|
301
334
|
export type FloatingDropDownOption = {
|
|
302
335
|
key?: string;
|
|
303
336
|
label: string;
|
|
304
|
-
labelType?: string;
|
|
305
337
|
value: string;
|
|
338
|
+
badge?: string;
|
|
339
|
+
subValue?: string;
|
|
340
|
+
icon?: string;
|
|
341
|
+
columnList?: any;
|
|
306
342
|
};
|
|
307
343
|
export type FilterType = {
|
|
308
344
|
tableName: string;
|
|
@@ -327,6 +363,7 @@ export type DateOptionType = {
|
|
|
327
363
|
endDate?: Date;
|
|
328
364
|
startDate?: Date;
|
|
329
365
|
fromDate?: Date;
|
|
366
|
+
timeGrain?: string;
|
|
330
367
|
toDate?: Date;
|
|
331
368
|
minDate?: Date;
|
|
332
369
|
maxDate?: Date;
|
|
@@ -358,6 +395,9 @@ export type RlsCondition = {
|
|
|
358
395
|
variableOptions?: CustomOption[];
|
|
359
396
|
variableStrings?: string[];
|
|
360
397
|
selectedVariableValue?: CustomOption;
|
|
398
|
+
optionColumnName?: string;
|
|
399
|
+
optionTableName?: string;
|
|
400
|
+
filterType?: string;
|
|
361
401
|
};
|
|
362
402
|
export type MetricData = {
|
|
363
403
|
id: string;
|
|
@@ -124,4 +124,9 @@ export type DrillDownSetting = {
|
|
|
124
124
|
selectedDimensions: string[];
|
|
125
125
|
isEnableGroupBy: boolean;
|
|
126
126
|
};
|
|
127
|
+
export type ComparisonLagSettings = {
|
|
128
|
+
column: FloatingDropDownOption;
|
|
129
|
+
timeGrain: FloatingDropDownOption;
|
|
130
|
+
periodLag: number;
|
|
131
|
+
};
|
|
127
132
|
export {};
|
package/dist/utils/colors.d.ts
CHANGED
|
@@ -4,6 +4,5 @@ export type GetChartOptionsParams = {
|
|
|
4
4
|
chartOptions: ChartSettingsType;
|
|
5
5
|
data: Record<string, any>[];
|
|
6
6
|
colors?: string[];
|
|
7
|
-
selectedSeries?: string[];
|
|
8
7
|
};
|
|
9
|
-
export declare const getChartOptions: ({ chartOptions, data, colors,
|
|
8
|
+
export declare const getChartOptions: ({ chartOptions, data, colors, }: GetChartOptionsParams) => Record<string, any>;
|
package/dist/utils/index.d.ts
CHANGED