@databrainhq/plugin 0.11.6 → 0.11.8
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/containers/Metric/EmbeddedMetric.d.ts +3 -1
- package/dist/containers/Metric/index.d.ts +4 -0
- package/dist/hooks/useMetricCard.d.ts +0 -1
- package/dist/index.es.js +8463 -8445
- package/dist/index.umd.js +113 -114
- package/dist/types/app.d.ts +1 -0
- package/dist/utils/generated/graphql.d.ts +1 -2
- package/dist/webcomponents.es.js +8576 -8556
- package/dist/webcomponents.umd.js +120 -121
- package/package.json +1 -1
|
@@ -17,6 +17,7 @@ export type SingleValueChartProps = {
|
|
|
17
17
|
className?: string;
|
|
18
18
|
onChartReady?: () => void;
|
|
19
19
|
comparisonValue?: string;
|
|
20
|
+
trendLineOptions?: any;
|
|
20
21
|
};
|
|
21
|
-
declare const _default: React.MemoExoticComponent<({ value, settings, chartClickConfig, hideBorder, className, onChartReady, comparisonValue, }: SingleValueChartProps) => JSX.Element>;
|
|
22
|
+
declare const _default: React.MemoExoticComponent<({ value, settings, chartClickConfig, hideBorder, className, onChartReady, comparisonValue, trendLineOptions, }: SingleValueChartProps) => JSX.Element>;
|
|
22
23
|
export default _default;
|
|
@@ -4,5 +4,7 @@ export interface EmbeddedMetricProps {
|
|
|
4
4
|
chartColors?: string[];
|
|
5
5
|
metricId: string;
|
|
6
6
|
chartRendererType?: 'svg' | 'canvas';
|
|
7
|
+
variant?: 'card' | 'fullscreen';
|
|
8
|
+
onMinimize?: () => void;
|
|
7
9
|
}
|
|
8
|
-
export declare const EmbeddedMetric: React.MemoExoticComponent<({ token, chartColors, metricId, chartRendererType, }: EmbeddedMetricProps) => JSX.Element>;
|
|
10
|
+
export declare const EmbeddedMetric: React.MemoExoticComponent<({ token, chartColors, metricId, chartRendererType, variant, onMinimize, }: EmbeddedMetricProps) => JSX.Element>;
|
|
@@ -14,6 +14,8 @@ export interface MetricProps extends HTMLAttributes<HTMLElement> {
|
|
|
14
14
|
token: string;
|
|
15
15
|
chartColors?: string[];
|
|
16
16
|
metricId: string;
|
|
17
|
+
variant?: 'card' | 'fullscreen';
|
|
18
|
+
onMinimize?: () => void;
|
|
17
19
|
chartRendererType?: 'svg' | 'canvas';
|
|
18
20
|
theme?: ThemeType;
|
|
19
21
|
width?: number;
|
|
@@ -25,6 +27,8 @@ export interface MetricProps extends HTMLAttributes<HTMLElement> {
|
|
|
25
27
|
* @name Metric - A react component to display a single metric card.
|
|
26
28
|
* @prop {string} token - A client based guest token.
|
|
27
29
|
* @prop {string} metricId - A metric id (one which you have provided at the time of it's creation) of the metric you want to display.
|
|
30
|
+
* @prop {string} variant (optional) - The variant to render the metric it can be card (fullscreen included) or fullscreen.
|
|
31
|
+
* @prop {function} onMinimize (optional) - An optional callback when minimize button is clicked.
|
|
28
32
|
* @prop {array} chartColors (optional) - An array of colors to be used to visualize the chart.
|
|
29
33
|
* @prop {string} chartRendererType (optional) - Whether to display chart as svg or canvas. In case of low end devices or in general svg is better and in case of frequent data changes or high size data visualization canvas is better. Defaults to canvas.
|
|
30
34
|
* @prop {number} width (optional) - The width of the metric card e.g. 500, 200 etc. will be treated as pixel value.
|
|
@@ -36,7 +36,6 @@ export declare const useMetricCard: ({ metric, globalFilters, rlsFilters, client
|
|
|
36
36
|
drilledLevel: number;
|
|
37
37
|
dimensions: any;
|
|
38
38
|
rlsConditions: RlsCondition[];
|
|
39
|
-
comparisonValue: string;
|
|
40
39
|
setTableLimit: import("react").Dispatch<import("react").SetStateAction<{
|
|
41
40
|
limit: number;
|
|
42
41
|
offset: number;
|