@databrainhq/plugin 0.12.9 → 0.12.10
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/MetricFilterDropDown/index.d.ts +2 -1
- package/dist/components/MetricList/MetricList.d.ts +2 -0
- package/dist/components/MetricList/components/FullScreenView/index.d.ts +3 -1
- package/dist/containers/Dashboard/Dashboard.d.ts +7 -1
- 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 +6 -0
- package/dist/types/app.d.ts +1 -1
- package/dist/webcomponents.es.js +23109 -23069
- package/dist/webcomponents.umd.js +170 -170
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ type Props = {
|
|
|
5
5
|
onChangeFilterValue?: (name: string, value: string, customValue?: Record<string, Date>, stringValues?: FloatingDropDownOption[]) => void;
|
|
6
6
|
workspaceId: string;
|
|
7
7
|
clientId?: string;
|
|
8
|
+
className?: string;
|
|
8
9
|
};
|
|
9
|
-
export declare const MetricFilterDropDown: ({ rlsConditions, onChangeFilterValue, workspaceId, clientId, }: Props) => React.JSX.Element;
|
|
10
|
+
export declare const MetricFilterDropDown: ({ rlsConditions, onChangeFilterValue, workspaceId, clientId, className, }: Props) => React.JSX.Element;
|
|
10
11
|
export default MetricFilterDropDown;
|
|
@@ -23,5 +23,7 @@ export type ExternalMetricListProps = {
|
|
|
23
23
|
externalDashboardId: string;
|
|
24
24
|
externalDashboardPk: string;
|
|
25
25
|
sharingSettingsId?: string;
|
|
26
|
+
isHideChartSettings?: boolean;
|
|
27
|
+
isHideTablePreview?: boolean;
|
|
26
28
|
};
|
|
27
29
|
export declare const ExternalMetricList: React.FC<ExternalMetricListProps>;
|
|
@@ -18,5 +18,7 @@ export type FullScreenViewProps = {
|
|
|
18
18
|
sharingSettingsId?: string;
|
|
19
19
|
isInternalApp?: boolean;
|
|
20
20
|
isShowChartConfigTab?: boolean;
|
|
21
|
+
isHideChartSettings?: boolean;
|
|
22
|
+
isHideTablePreview?: boolean;
|
|
21
23
|
};
|
|
22
|
-
export declare const FullScreenView: ({ metric, colors, rlsFilters, onMinimize, clientId, tenancyLevel, companyId, externalDashboardId, userProvidedDashboardId, isAllowedToUpdateMetrics, sharingSettingsId, appFilters, isInternalApp, isShowChartConfigTab, }: FullScreenViewProps) => React.JSX.Element;
|
|
24
|
+
export declare const FullScreenView: ({ metric, colors, rlsFilters, onMinimize, clientId, tenancyLevel, companyId, externalDashboardId, userProvidedDashboardId, isAllowedToUpdateMetrics, sharingSettingsId, appFilters, isInternalApp, isShowChartConfigTab, isHideChartSettings, isHideTablePreview, }: FullScreenViewProps) => React.JSX.Element;
|
|
@@ -10,6 +10,8 @@ import { ThemeType } from '@/utils/theme';
|
|
|
10
10
|
* disableLayoutCustomization - boolean value to enable or disable dashboard layout customization
|
|
11
11
|
* chartColors - array of colors where each color should be a valid color string e.g. color name, rgb value, hex value, etc.
|
|
12
12
|
* theme - Theme customization.
|
|
13
|
+
* isHideChartSettings - Whether to hide chart settings in full screen view.
|
|
14
|
+
* isHideTablePreview - Whether to hide table preview in full screen view.
|
|
13
15
|
*/
|
|
14
16
|
export interface DashboardProps extends HTMLAttributes<HTMLElement> {
|
|
15
17
|
token: string;
|
|
@@ -22,12 +24,16 @@ export interface DashboardProps extends HTMLAttributes<HTMLElement> {
|
|
|
22
24
|
chartColors?: string[];
|
|
23
25
|
};
|
|
24
26
|
theme?: ThemeType;
|
|
27
|
+
isHideChartSettings?: boolean;
|
|
28
|
+
isHideTablePreview?: boolean;
|
|
25
29
|
}
|
|
26
30
|
/**
|
|
27
31
|
* @name Dashboard - A react component to display the dashboard.
|
|
28
32
|
* @prop {string} token - A client based guest token.
|
|
29
33
|
* @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.
|
|
30
34
|
* @prop {object} options (optional) - Additional options like access permissions e.g. metric creation, updation, archiving and layout customization.
|
|
35
|
+
* @prop {boolean} isHideChartSettings (optional) - Whether to hide chart settings in full screen view.
|
|
36
|
+
* @prop {boolean} isHideTablePreview (optional) - Whether to hide table preview in full screen view.
|
|
31
37
|
* @prop {object} theme (optional) - A theme object to customize the theme.
|
|
32
38
|
*/
|
|
33
|
-
export declare const Dashboard: ({ token, options, theme, dashboardId, }: DashboardProps) => React.JSX.Element;
|
|
39
|
+
export declare const Dashboard: ({ token, options, theme, dashboardId, isHideChartSettings, isHideTablePreview, }: DashboardProps) => React.JSX.Element;
|
|
@@ -6,5 +6,7 @@ export interface EmbeddedMetricProps {
|
|
|
6
6
|
chartRendererType?: 'svg' | 'canvas';
|
|
7
7
|
variant?: 'card' | 'fullscreen';
|
|
8
8
|
onMinimize?: () => void;
|
|
9
|
+
isHideChartSettings?: boolean;
|
|
10
|
+
isHideTablePreview?: boolean;
|
|
9
11
|
}
|
|
10
|
-
export declare const EmbeddedMetric: React.MemoExoticComponent<({ token, chartColors, metricId, chartRendererType, variant, onMinimize, }: EmbeddedMetricProps) => React.JSX.Element>;
|
|
12
|
+
export declare const EmbeddedMetric: React.MemoExoticComponent<({ token, chartColors, metricId, chartRendererType, variant, onMinimize, isHideChartSettings, isHideTablePreview, }: EmbeddedMetricProps) => React.JSX.Element>;
|
|
@@ -5,6 +5,8 @@ import { ThemeType } from '@/utils/theme';
|
|
|
5
5
|
* metricId - The id of the dashboard you want to see.
|
|
6
6
|
* width - The width of the metric card in number.
|
|
7
7
|
* height - The height of the metric card in number.
|
|
8
|
+
* isHideChartSettings - Whether to hide the chart settings in full screen view.
|
|
9
|
+
* isHideTablePreview - Whether to hide the table preview in full screen view.
|
|
8
10
|
* className - The usual className attribute to provide styles.
|
|
9
11
|
* style - The usual style attribute to provide inline styles.
|
|
10
12
|
* chartColors - array of colors where each color should be a valid color string e.g. color name, rgb value, hex value, etc.
|
|
@@ -15,6 +17,8 @@ export interface MetricProps extends HTMLAttributes<HTMLElement> {
|
|
|
15
17
|
chartColors?: string[];
|
|
16
18
|
metricId: string;
|
|
17
19
|
variant?: 'card' | 'fullscreen';
|
|
20
|
+
isHideChartSettings?: boolean;
|
|
21
|
+
isHideTablePreview?: boolean;
|
|
18
22
|
onMinimize?: () => void;
|
|
19
23
|
chartRendererType?: 'svg' | 'canvas';
|
|
20
24
|
theme?: ThemeType;
|
|
@@ -27,6 +31,8 @@ export interface MetricProps extends HTMLAttributes<HTMLElement> {
|
|
|
27
31
|
* @name Metric - A react component to display a single metric card.
|
|
28
32
|
* @prop {string} token - A client based guest token.
|
|
29
33
|
* @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.
|
|
34
|
+
* @prop {boolean} isHideChartSettings - Whether to hide the chart settings in full screen view.
|
|
35
|
+
* @prop {boolean} isHideTablePreview - Whether to hide the table preview in full screen view.
|
|
30
36
|
* @prop {string} variant (optional) - The variant to render the metric it can be card (fullscreen included) or fullscreen.
|
|
31
37
|
* @prop {function} onMinimize (optional) - An optional callback when minimize button is clicked.
|
|
32
38
|
* @prop {array} chartColors (optional) - An array of colors to be used to visualize the chart.
|
package/dist/types/app.d.ts
CHANGED
|
@@ -155,7 +155,6 @@ export type ChartSettingsType = {
|
|
|
155
155
|
isMultiDimension?: boolean;
|
|
156
156
|
isDynamicSeries?: boolean;
|
|
157
157
|
seriesField?: string;
|
|
158
|
-
metricFilterPosition?: string;
|
|
159
158
|
seriesOptions?: string[];
|
|
160
159
|
ungroupedAlias?: string;
|
|
161
160
|
dynamicXAxis?: {
|
|
@@ -273,6 +272,7 @@ export type RlsCondition = {
|
|
|
273
272
|
as?: string;
|
|
274
273
|
};
|
|
275
274
|
isAppFilter?: boolean;
|
|
275
|
+
position?: 'top-left' | 'top-right';
|
|
276
276
|
};
|
|
277
277
|
export type MetricData = {
|
|
278
278
|
id: string;
|