@databrainhq/plugin 0.12.11 → 0.12.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/MetricList/components/MetricCards/MetricCard.d.ts +4 -1
- package/dist/components/Modal/Modal.d.ts +1 -0
- package/dist/hooks/useMetricCard.d.ts +3 -1
- package/dist/types/app.d.ts +1 -0
- package/dist/webcomponents.es.js +21469 -21367
- package/dist/webcomponents.umd.js +166 -166
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { ExternalMetrics } from '@/types/queryTypes';
|
|
3
3
|
import { ClientType } from '@/types/app';
|
|
4
4
|
import { FilterFieldType } from '@/components/FilterField';
|
|
5
|
+
import { RlsCondition } from '@/types';
|
|
5
6
|
export type MetricCardProps = {
|
|
6
7
|
globalFilters?: {
|
|
7
8
|
tableName: string;
|
|
@@ -23,5 +24,7 @@ export type MetricCardProps = {
|
|
|
23
24
|
chartRendererType?: 'svg' | 'canvas';
|
|
24
25
|
isDisableMorePopup?: boolean;
|
|
25
26
|
isInternalApp?: boolean;
|
|
27
|
+
setCrossDashboardFilters?: React.Dispatch<React.SetStateAction<RlsCondition[]>>;
|
|
28
|
+
crossDashboardFilters?: RlsCondition[];
|
|
26
29
|
};
|
|
27
|
-
export declare const MetricCard: ({ globalFilters, metricItem, onMaximize, client, colors, param, companyTenancyType, renderHeaderName, isDisableCardClick, onArchive, chartRendererType, isDisableMorePopup, appFilters, isInternalApp, }: MetricCardProps) => React.JSX.Element;
|
|
30
|
+
export declare const MetricCard: ({ globalFilters, metricItem, onMaximize, client, colors, param, companyTenancyType, renderHeaderName, isDisableCardClick, onArchive, chartRendererType, isDisableMorePopup, appFilters, isInternalApp, setCrossDashboardFilters, crossDashboardFilters, }: MetricCardProps) => React.JSX.Element;
|
|
@@ -16,8 +16,10 @@ type UseMetricCardProps = {
|
|
|
16
16
|
datasetSettings?: DatasetSettings;
|
|
17
17
|
setDatasetSettings?: React.Dispatch<React.SetStateAction<DatasetSettings>>;
|
|
18
18
|
isInternalApp?: boolean;
|
|
19
|
+
setCrossDashboardFilters?: React.Dispatch<React.SetStateAction<RlsCondition[]>>;
|
|
20
|
+
crossDashboardFilters?: RlsCondition[];
|
|
19
21
|
};
|
|
20
|
-
export declare const useMetricCard: ({ metric, globalFilters, rlsFilters, clientId, chartSettings, setChartSettings, tenancyLevel, isInternalApp, appFilters, }: UseMetricCardProps) => {
|
|
22
|
+
export declare const useMetricCard: ({ metric, globalFilters, rlsFilters, clientId, chartSettings, setChartSettings, tenancyLevel, isInternalApp, appFilters, setCrossDashboardFilters, crossDashboardFilters, }: UseMetricCardProps) => {
|
|
21
23
|
onDrillDown: (params: any) => void;
|
|
22
24
|
handleChartClick: (params: any) => void;
|
|
23
25
|
dataDb: Record<string, any>[];
|