@databrainhq/plugin 0.11.10 → 0.11.12
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/Chart/SingleValueChart.d.ts +2 -1
- package/dist/components/ChartPopup/components/UnderlyingData/index.d.ts +3 -2
- package/dist/components/ChartPopup/index.d.ts +4 -3
- package/dist/consts/app.d.ts +4 -0
- package/dist/hooks/useMetricCard.d.ts +3 -2
- package/dist/hooks/useUnderlyingData.d.ts +4 -3
- package/dist/index.es.js +13735 -13749
- package/dist/index.umd.js +146 -145
- package/dist/style.css +1 -1
- package/dist/types/app.d.ts +4 -3
- package/dist/utils/generated/graphql.d.ts +7 -4
- package/dist/webcomponents.es.js +15396 -15411
- package/dist/webcomponents.umd.js +141 -140
- package/package.json +1 -1
|
@@ -18,6 +18,7 @@ export type SingleValueChartProps = {
|
|
|
18
18
|
onChartReady?: () => void;
|
|
19
19
|
comparisonValue?: string;
|
|
20
20
|
trendLineOptions?: any;
|
|
21
|
+
events: any;
|
|
21
22
|
};
|
|
22
|
-
declare const _default: React.MemoExoticComponent<({ value, settings, chartClickConfig, hideBorder, className, onChartReady, comparisonValue, trendLineOptions, }: SingleValueChartProps) => JSX.Element>;
|
|
23
|
+
declare const _default: React.MemoExoticComponent<({ value, settings, chartClickConfig, hideBorder, className, onChartReady, comparisonValue, trendLineOptions, events, }: SingleValueChartProps) => JSX.Element>;
|
|
23
24
|
export default _default;
|
|
@@ -5,7 +5,8 @@ type UnderlyingDataProps = {
|
|
|
5
5
|
isShowUnderlyingData: boolean;
|
|
6
6
|
value: any;
|
|
7
7
|
getUnderlyingData: GetUnderlyingData;
|
|
8
|
-
columnName: string;
|
|
8
|
+
columnName: string | undefined;
|
|
9
|
+
isSingleValueChart: boolean;
|
|
9
10
|
};
|
|
10
|
-
declare const _default: React.MemoExoticComponent<({ isShowUnderlyingData, setShowUnderlyingData, getUnderlyingData, columnName, value, }: UnderlyingDataProps) => JSX.Element>;
|
|
11
|
+
declare const _default: React.MemoExoticComponent<({ isShowUnderlyingData, setShowUnderlyingData, getUnderlyingData, columnName, value, isSingleValueChart, }: UnderlyingDataProps) => JSX.Element>;
|
|
11
12
|
export default _default;
|
|
@@ -3,7 +3,7 @@ import { ClickActionsConfig, GetUnderlyingData } from '@/types';
|
|
|
3
3
|
export type ChartPopupProps = React.PropsWithChildren & {
|
|
4
4
|
getUnderlyingData: GetUnderlyingData;
|
|
5
5
|
value: any;
|
|
6
|
-
columnName: string;
|
|
6
|
+
columnName: string | undefined;
|
|
7
7
|
menuClass?: string;
|
|
8
8
|
menuContainerClass?: string;
|
|
9
9
|
isOpen: boolean;
|
|
@@ -13,8 +13,9 @@ export type ChartPopupProps = React.PropsWithChildren & {
|
|
|
13
13
|
containerRef: React.RefObject<HTMLDivElement>;
|
|
14
14
|
event: any;
|
|
15
15
|
};
|
|
16
|
+
isSingleValueChart: boolean;
|
|
16
17
|
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' | 'dynamic';
|
|
17
18
|
};
|
|
18
|
-
export declare const ChartPopup: ({ position, menuContainerClass, menuClass, isOpen, setOpen, value, columnName, getUnderlyingData, clickBehaviourConfigs, elementRef, }: ChartPopupProps) => JSX.Element;
|
|
19
|
-
declare const _default: React.MemoExoticComponent<({ position, menuContainerClass, menuClass, isOpen, setOpen, value, columnName, getUnderlyingData, clickBehaviourConfigs, elementRef, }: ChartPopupProps) => JSX.Element>;
|
|
19
|
+
export declare const ChartPopup: ({ position, menuContainerClass, menuClass, isOpen, setOpen, value, columnName, getUnderlyingData, clickBehaviourConfigs, elementRef, isSingleValueChart, }: ChartPopupProps) => JSX.Element;
|
|
20
|
+
declare const _default: React.MemoExoticComponent<({ position, menuContainerClass, menuClass, isOpen, setOpen, value, columnName, getUnderlyingData, clickBehaviourConfigs, elementRef, isSingleValueChart, }: ChartPopupProps) => JSX.Element>;
|
|
20
21
|
export default _default;
|
package/dist/consts/app.d.ts
CHANGED
|
@@ -66,3 +66,7 @@ export declare const RAW_CSV_OPTIONS: string[];
|
|
|
66
66
|
export declare const NONE = "NONE";
|
|
67
67
|
export declare const REQUESTED = "REQUESTED";
|
|
68
68
|
export declare const AVAILABLE = "AVAILABLE";
|
|
69
|
+
export declare const NUMBER_FORMAT: {
|
|
70
|
+
label: string;
|
|
71
|
+
value: string;
|
|
72
|
+
}[];
|
|
@@ -20,9 +20,10 @@ export declare const useMetricCard: ({ metric, globalFilters, rlsFilters, client
|
|
|
20
20
|
onDrillDown: (params: any) => void;
|
|
21
21
|
handleChartClick: (params: any) => void;
|
|
22
22
|
dataDb: Record<string, any>[];
|
|
23
|
-
getUnderlyingData: ({ columnName, value, setData, setLoading, }: {
|
|
24
|
-
columnName: string;
|
|
23
|
+
getUnderlyingData: ({ columnName, value, setData, setLoading, isSingleValueChart, }: {
|
|
24
|
+
columnName: string | undefined;
|
|
25
25
|
value: any;
|
|
26
|
+
isSingleValueChart: boolean;
|
|
26
27
|
setData: import("react").Dispatch<import("react").SetStateAction<any[]>>;
|
|
27
28
|
setLoading: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
28
29
|
}) => void;
|
|
@@ -7,9 +7,10 @@ export declare const useUnderlyingData: ({ clientName, tenancyType, values, quer
|
|
|
7
7
|
workspaceId: string;
|
|
8
8
|
metricId: string;
|
|
9
9
|
}) => {
|
|
10
|
-
getUnderlyingData: ({ columnName, value, setData, setLoading, }: {
|
|
11
|
-
columnName: string;
|
|
12
|
-
value: any;
|
|
10
|
+
getUnderlyingData: ({ columnName, value, setData, setLoading, isSingleValueChart, }: {
|
|
11
|
+
columnName: string | undefined;
|
|
12
|
+
value: any | undefined;
|
|
13
|
+
isSingleValueChart: boolean;
|
|
13
14
|
setData: React.Dispatch<React.SetStateAction<any[]>>;
|
|
14
15
|
setLoading: React.Dispatch<React.SetStateAction<boolean>>;
|
|
15
16
|
}) => void;
|