@databrainhq/plugin 0.12.13 → 0.12.15
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/MetricList/MetricList.d.ts +2 -0
- package/dist/components/MetricList/components/MetricCards/MetricCard.d.ts +3 -1
- package/dist/consts/app.d.ts +1 -0
- package/dist/containers/Dashboard/Dashboard.d.ts +6 -2
- package/dist/containers/Dashboard/EmbededDashboard.d.ts +2 -0
- package/dist/containers/Metric/EmbeddedMetric.d.ts +3 -1
- package/dist/containers/Metric/index.d.ts +4 -0
- package/dist/types/app.d.ts +20 -1
- package/dist/webcomponents.es.js +37260 -36642
- package/dist/webcomponents.umd.js +178 -178
- package/package.json +1 -1
|
@@ -25,5 +25,7 @@ export type ExternalMetricListProps = {
|
|
|
25
25
|
sharingSettingsId?: string;
|
|
26
26
|
isHideChartSettings?: boolean;
|
|
27
27
|
isHideTablePreview?: boolean;
|
|
28
|
+
enableDownloadCsv?: boolean;
|
|
29
|
+
enableEmailCsv?: boolean;
|
|
28
30
|
};
|
|
29
31
|
export declare const ExternalMetricList: React.FC<ExternalMetricListProps>;
|
|
@@ -27,5 +27,7 @@ export type MetricCardProps = {
|
|
|
27
27
|
setCrossDashboardFilters?: React.Dispatch<React.SetStateAction<RlsCondition[]>>;
|
|
28
28
|
crossDashboardFilters?: RlsCondition[];
|
|
29
29
|
metricFilterOptions?: MetricFilterOptionsType;
|
|
30
|
+
onDownloadRawCsv?: (filterValues?: Record<string, any>) => void;
|
|
31
|
+
enableDownloadCsv?: boolean;
|
|
30
32
|
};
|
|
31
|
-
export declare const MetricCard: ({ globalFilters, metricItem, onMaximize, client, colors, param, companyTenancyType, renderHeaderName, isDisableCardClick, onArchive, chartRendererType, isDisableMorePopup, appFilters, isInternalApp, setCrossDashboardFilters, crossDashboardFilters, metricFilterOptions }: MetricCardProps) => React.JSX.Element;
|
|
33
|
+
export declare const MetricCard: ({ globalFilters, metricItem, onMaximize, client, colors, param, companyTenancyType, renderHeaderName, isDisableCardClick, onArchive, chartRendererType, isDisableMorePopup, appFilters, isInternalApp, setCrossDashboardFilters, crossDashboardFilters, metricFilterOptions, onDownloadRawCsv, enableDownloadCsv, }: MetricCardProps) => React.JSX.Element;
|
package/dist/consts/app.d.ts
CHANGED
|
@@ -26,6 +26,8 @@ export interface DashboardProps extends HTMLAttributes<HTMLElement> {
|
|
|
26
26
|
theme?: ThemeType;
|
|
27
27
|
isHideChartSettings?: boolean;
|
|
28
28
|
isHideTablePreview?: boolean;
|
|
29
|
+
enableDownloadCsv?: boolean;
|
|
30
|
+
enableEmailCsv?: boolean;
|
|
29
31
|
}
|
|
30
32
|
/**
|
|
31
33
|
* @name Dashboard - A react component to display the dashboard.
|
|
@@ -33,7 +35,9 @@ export interface DashboardProps extends HTMLAttributes<HTMLElement> {
|
|
|
33
35
|
* @prop {string} dashboardId (optional) - A dashboard id (one which you have provided at the time of creating it) of the dashboard you want to see.
|
|
34
36
|
* @prop {object} options (optional) - Additional options like access permissions e.g. metric creation, updation, archiving and layout customization.
|
|
35
37
|
* @prop {boolean} isHideChartSettings (optional) - Whether to hide chart settings in full screen view.
|
|
36
|
-
* @prop {boolean}
|
|
38
|
+
* @prop {boolean} isHideChartSettings (optional) - Whether to hide chart settings in full screen view.
|
|
39
|
+
* @prop {boolean} enableDownloadCsv (optional) - Whether to show download csv option in metric card.
|
|
40
|
+
* @prop {boolean} enableEmailCsv (optional) - Whether to show email csv option in metric card.
|
|
37
41
|
* @prop {object} theme (optional) - A theme object to customize the theme.
|
|
38
42
|
*/
|
|
39
|
-
export declare const Dashboard: ({ token, options, theme, dashboardId, isHideChartSettings, isHideTablePreview, }: DashboardProps) => React.JSX.Element;
|
|
43
|
+
export declare const Dashboard: ({ token, options, theme, dashboardId, isHideChartSettings, isHideTablePreview, enableDownloadCsv, enableEmailCsv, }: DashboardProps) => React.JSX.Element;
|
|
@@ -9,6 +9,8 @@ export interface EmbeddedMetricProps {
|
|
|
9
9
|
onMinimize?: () => void;
|
|
10
10
|
isHideChartSettings?: boolean;
|
|
11
11
|
isHideTablePreview?: boolean;
|
|
12
|
+
enableDownloadCsv?: boolean;
|
|
13
|
+
enableEmailCsv?: boolean;
|
|
12
14
|
metricFilterOptions?: MetricFilterOptionsType;
|
|
13
15
|
}
|
|
14
|
-
export declare const EmbeddedMetric: React.MemoExoticComponent<({ token, chartColors, metricId, chartRendererType, variant, onMinimize, isHideChartSettings, isHideTablePreview, metricFilterOptions, }: EmbeddedMetricProps) => React.JSX.Element>;
|
|
16
|
+
export declare const EmbeddedMetric: React.MemoExoticComponent<({ token, chartColors, metricId, chartRendererType, variant, onMinimize, isHideChartSettings, isHideTablePreview, enableDownloadCsv, enableEmailCsv, metricFilterOptions, }: EmbeddedMetricProps) => React.JSX.Element>;
|
|
@@ -20,6 +20,8 @@ export interface MetricProps extends HTMLAttributes<HTMLElement> {
|
|
|
20
20
|
variant?: 'card' | 'fullscreen';
|
|
21
21
|
isHideChartSettings?: boolean;
|
|
22
22
|
isHideTablePreview?: boolean;
|
|
23
|
+
enableDownloadCsv?: boolean;
|
|
24
|
+
enableEmailCsv?: boolean;
|
|
23
25
|
onMinimize?: () => void;
|
|
24
26
|
chartRendererType?: 'svg' | 'canvas';
|
|
25
27
|
theme?: ThemeType;
|
|
@@ -35,6 +37,8 @@ export interface MetricProps extends HTMLAttributes<HTMLElement> {
|
|
|
35
37
|
* @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.
|
|
36
38
|
* @prop {boolean} isHideChartSettings - Whether to hide the chart settings in full screen view.
|
|
37
39
|
* @prop {boolean} isHideTablePreview - Whether to hide the table preview in full screen view.
|
|
40
|
+
* @prop {boolean} enableDownloadCsv (optional) - Whether to show download csv option in metric card.
|
|
41
|
+
* @prop {boolean} enableEmailCsv (optional) - Whether to show email csv option in metric card.
|
|
38
42
|
* @prop {string} variant (optional) - The variant to render the metric it can be card (fullscreen included) or fullscreen.
|
|
39
43
|
* @prop {object} metricFilterOptions (optional) - An optional metric filter options to be displayed in the metric filters.
|
|
40
44
|
* @prop {function} onMinimize (optional) - An optional callback when minimize button is clicked.
|
package/dist/types/app.d.ts
CHANGED
|
@@ -86,7 +86,6 @@ export type CustomSettings = {
|
|
|
86
86
|
zoomOnMouseWheel?: boolean;
|
|
87
87
|
};
|
|
88
88
|
showDynamicBehaviour?: boolean;
|
|
89
|
-
enableRoseType?: boolean;
|
|
90
89
|
roseType?: string;
|
|
91
90
|
selectedMode?: string;
|
|
92
91
|
selectedOffset?: number;
|
|
@@ -97,6 +96,22 @@ export type CustomSettings = {
|
|
|
97
96
|
offset2: number;
|
|
98
97
|
direction: string;
|
|
99
98
|
}[];
|
|
99
|
+
isShowBarGradient?: boolean;
|
|
100
|
+
barGradient?: {
|
|
101
|
+
startColor?: string;
|
|
102
|
+
endColor?: string;
|
|
103
|
+
offset1?: number;
|
|
104
|
+
offset2?: number;
|
|
105
|
+
direction?: string;
|
|
106
|
+
};
|
|
107
|
+
enableBackgroundGradient?: boolean;
|
|
108
|
+
backgroundGradient?: {
|
|
109
|
+
startColor?: string;
|
|
110
|
+
endColor?: string;
|
|
111
|
+
offset1?: number;
|
|
112
|
+
offset2?: number;
|
|
113
|
+
direction?: string;
|
|
114
|
+
};
|
|
100
115
|
};
|
|
101
116
|
export type TableSettings = {
|
|
102
117
|
contentAlignment?: string;
|
|
@@ -286,6 +301,8 @@ export type DateOptionType = {
|
|
|
286
301
|
count: number;
|
|
287
302
|
endDate?: Date;
|
|
288
303
|
startDate?: Date;
|
|
304
|
+
fromDate?: Date;
|
|
305
|
+
toDate?: Date;
|
|
289
306
|
minDate?: Date;
|
|
290
307
|
maxDate?: Date;
|
|
291
308
|
};
|
|
@@ -338,6 +355,8 @@ export type DateTypeOptionType = {
|
|
|
338
355
|
time?: 'Day' | 'Week' | 'Month' | 'Quarter' | 'Year';
|
|
339
356
|
name: string;
|
|
340
357
|
count?: number;
|
|
358
|
+
fromDate?: Date;
|
|
359
|
+
toDate?: Date;
|
|
341
360
|
minDate?: Date;
|
|
342
361
|
maxDate?: Date;
|
|
343
362
|
};
|