@databrainhq/plugin 0.15.32 → 0.15.33-uat

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.
@@ -20,6 +20,17 @@ export type ChartProps = {
20
20
  chartHeight?: number;
21
21
  chartAppearance?: ChartAppearanceType;
22
22
  metricCardColor?: string;
23
+ isMetricCard?: boolean;
24
+ };
25
+ export type MemoizedChartProps = {
26
+ chartOptions: ChartSettingsType;
27
+ events?: Record<string, Function>;
28
+ config?: Record<string, any>;
29
+ className?: string;
30
+ chartHeight?: number;
31
+ hasDecreasedHeight?: boolean;
32
+ zoomOptions?: any;
33
+ options: any;
23
34
  };
24
35
  /**
25
36
  * @name Chart - The metric visualization component.
@@ -31,4 +42,4 @@ export type ChartProps = {
31
42
  * @prop colors (optional) - the admin provided chart color palettes.
32
43
  * @returns JSX - chart visaulization content.
33
44
  */
34
- export declare const Chart: React.MemoExoticComponent<({ chartOptions, data, events, colors, config, className, isShowFullScreen, isShowFullScreenEnabled, sortOrder, onMaximize, onDrillPivotTable, pivotDrillState, isPythonMode, seriesName, isSortReversed, chartHeight, chartAppearance, metricCardColor, }: ChartProps) => React.JSX.Element>;
45
+ export declare const Chart: React.MemoExoticComponent<({ chartOptions, data, events, colors, config, className, isShowFullScreen, isShowFullScreenEnabled, sortOrder, onMaximize, onDrillPivotTable, pivotDrillState, isPythonMode, seriesName, isSortReversed, chartHeight, chartAppearance, metricCardColor, isMetricCard, }: ChartProps) => React.JSX.Element>;
@@ -12,6 +12,7 @@ interface Props extends React.HTMLProps<HTMLInputElement> {
12
12
  rightIcon?: JSX.Element;
13
13
  labelVariant?: 'floating' | 'static';
14
14
  isImportant?: boolean;
15
+ addSuffix?: string;
15
16
  }
16
- export declare const InputField: ({ type, register, label, isDisabled, id, elementRef, error, supportingText, leftIcon, rightIcon, labelVariant, value, isImportant, ...rest }: Props) => React.JSX.Element;
17
+ export declare const InputField: ({ type, register, label, isDisabled, id, elementRef, error, supportingText, leftIcon, rightIcon, addSuffix, labelVariant, value, isImportant, ...rest }: Props) => React.JSX.Element;
17
18
  export {};
@@ -7,8 +7,10 @@ type ScheduleEmailProps = {
7
7
  sharingSettingsId?: string;
8
8
  externalDashboardId?: string;
9
9
  onComplete?: () => void;
10
+ isShowSettings: boolean;
11
+ setShowSettings: React.Dispatch<React.SetStateAction<boolean>>;
10
12
  };
11
- export declare const ScheduleEmail: ({ props: { chartOptions, getInternalToken, scheduleReportConfig, externalDashboardId, sharingSettingsId, onComplete, }, }: {
13
+ export declare const ScheduleEmail: ({ props: { chartOptions, getInternalToken, scheduleReportConfig, externalDashboardId, sharingSettingsId, onComplete, isShowSettings, setShowSettings, }, }: {
12
14
  props: ScheduleEmailProps;
13
15
  }) => React.JSX.Element;
14
16
  export default ScheduleEmail;
@@ -116,7 +116,7 @@ export declare const LINEAR_POINTER_SIZE: {
116
116
  label: string;
117
117
  value: string;
118
118
  }[];
119
- export declare const ICONS_LIST: readonly ["ruler", "help", "merge", "custom", "invite", "guide", "headphone", "disable", "sync", "sparkle", "export", "spinner", "split-vertical", "split-horizontal", "placeholder", "warning", "drag-icon", "check", "people", "new-window", "circle", "group-by", "undo", "redo", "maximize", "minimize", "fullscreen", "download", "archive", "format", "company", "profile", "users", "bar-chart", "bar-chart-2", "kebab-menu-horizontal", "kebab-menu-vertical", "paint-brush", "funnel", "funnel-simple", "cross", "columns", "gear", "presentation-chart", "chevron-down", "plus", "info", "arrow-down", "arrow-up", "arrow-left", "arrow-right", "double-arrow-left", "double-arrow-right", "expand-arrows", "eye", "eye-slash", "database", "magnifying-glass", "pencil-simple-line", "pencil-simple", "file-sql", "code", "sign-out", "save", "delete", "align-space-even", "align-bottom", "align-left", "align-right", "align-top", "align-center", "arrows-horizontal", "arrows-vertical", "trend-up", "combo", "caret-down-fill", "caret-up-fill", "caret-up-down", "pie", "table-view", "task-done-file", "right-angle", "text-rotation-angle-up", "text-rotation-none", "text-rotation-up", "preview-file", "share", "image", "text", "color-palette", "shuffle", "table", "chart", "calendar", "horizontal-rule", "short-text", "subheader", "copy", "timer", "link", "not-found", "row", "line", "time series", "globe", "map", "histogram", "radar", "scale", "scatter", "tree", "doughnut", "scatter", "waterfall", "area", "bubble", "boxplot", "string", "boolean", "date", "number", "unknown", "array", "right-join", "left-join", "outer-join", "right-full-join", "left-full-join", "inner-join", "full-join", "version-history", "roles", "gauge", "step", "treeMap", "stack", "horizontal stack", "wand", "schedule", "saved-schedule"];
119
+ export declare const ICONS_LIST: readonly ["ruler", "help", "merge", "custom", "invite", "guide", "headphone", "disable", "sync", "sparkle", "export", "spinner", "split-vertical", "split-horizontal", "placeholder", "warning", "drag-icon", "check", "people", "new-window", "circle", "group-by", "undo", "redo", "maximize", "minimize", "fullscreen", "download", "archive", "format", "company", "profile", "users", "bar-chart", "bar-chart-2", "kebab-menu-horizontal", "kebab-menu-vertical", "paint-brush", "funnel", "funnel-simple", "cross", "columns", "gear", "presentation-chart", "chevron-down", "plus", "info", "arrow-down", "arrow-up", "arrow-left", "arrow-right", "double-arrow-left", "double-arrow-right", "expand-arrows", "eye", "eye-slash", "database", "magnifying-glass", "pencil-simple-line", "pencil-simple", "file-sql", "code", "sign-out", "save", "delete", "align-space-even", "align-bottom", "align-left", "align-right", "align-top", "align-center", "arrows-horizontal", "angle", "arrows-vertical", "rectangle", "circular", "diamond", "triangle", "arrow-shape", "straignt-line", "trend-up", "combo", "caret-down-fill", "caret-up-fill", "caret-up-down", "pie", "table-view", "task-done-file", "right-angle", "text-rotation-angle-up", "text-rotation-none", "text-rotation-up", "preview-file", "share", "image", "text", "color-palette", "shuffle", "table", "chart", "calendar", "horizontal-rule", "short-text", "subheader", "copy", "timer", "link", "not-found", "row", "line", "time series", "globe", "map", "histogram", "radar", "scale", "scatter", "tree", "doughnut", "scatter", "waterfall", "area", "bubble", "boxplot", "string", "boolean", "date", "number", "unknown", "array", "right-join", "left-join", "outer-join", "right-full-join", "left-full-join", "inner-join", "full-join", "version-history", "roles", "gauge", "step", "treeMap", "stack", "horizontal stack", "wand", "schedule", "saved-schedule"];
120
120
  export declare const NUMBER = "number";
121
121
  export declare const STRING = "string";
122
122
  export declare const BOOLEAN = "boolean";
@@ -29,6 +29,7 @@ export interface DashboardProps extends HTMLAttributes<HTMLElement> {
29
29
  disableSaveLayout?: boolean;
30
30
  disableScheduleEmailReports?: boolean;
31
31
  disableUnderlyingData?: boolean;
32
+ showDashboardActions?: boolean;
32
33
  hideDashboardName?: boolean;
33
34
  chartColors?: string[];
34
35
  hideDatePickerOptions?: string[];
@@ -26,6 +26,7 @@ export interface EmbeddedDashboardProps {
26
26
  hideMetricCardShadow?: boolean;
27
27
  disableUnderlyingData?: boolean;
28
28
  shouldFitFullScreen?: boolean;
29
+ showDashboardActions?: boolean;
29
30
  };
30
31
  theme?: ThemeType;
31
32
  adminThemeOption?: AdminThemeOptionsType;
@@ -13,4 +13,4 @@ export declare const getValidRlsConditionOptions: (rlsCondition: RlsCondition, f
13
13
  value: string | number;
14
14
  label: string;
15
15
  }[] | import("@/types").DateTypeOptionType[];
16
- } | undefined;
16
+ };
@@ -143,6 +143,7 @@ export type CustomSettings = {
143
143
  legendSize?: number;
144
144
  legendWeight?: number;
145
145
  legendPosition?: string;
146
+ isShowSplitLines?: boolean;
146
147
  };
147
148
  gaugeV2?: {
148
149
  isEnableMarkerRange?: boolean;
@@ -1,16 +1,11 @@
1
1
  import { DashboardProps } from './containers/Dashboard';
2
- import { Chart, ChartProps } from './components';
3
2
  import { MetricProps } from './containers/Metric';
4
- import { CreateEmbedMetricProps } from './containers/CreateMetric/CreateEmbeddedMetric';
5
3
  export type { CustomSettings, TableSettings, MarginSettings, AxisSettings, LegendSettings, LabelSettings, BackgroundSettings, PivotSettingsType, GaugeSettingsType, ChartSettingsType, TimeSeriesSettingsType, MetricFilterOptionsType, DateTypeOptionType, } from '@/types';
6
4
  export declare namespace JSX {
7
5
  interface IntrinsicElements {
8
6
  Tag: any;
9
7
  'dbn-dashboard': DashboardProps;
10
8
  'dbn-metric': MetricProps;
11
- 'dbn-chart': ChartProps;
12
- 'dbn-create-metric': CreateEmbedMetricProps;
13
9
  }
14
10
  }
15
- export type { DashboardProps, MetricProps, ChartProps, CreateEmbedMetricProps };
16
- export { Chart };
11
+ export type { DashboardProps, MetricProps };