@databrainhq/plugin 0.7.16 → 0.7.18

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.
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const TableChart: ({ data, chartClickConfig }: any) => JSX.Element;
2
+ declare const TableChart: ({ data, chartClickConfig, tableSettings }: any) => JSX.Element;
3
3
  export default TableChart;
@@ -1,2 +1,7 @@
1
1
  /// <reference types="react" />
2
- export declare const DataType: ({ datatype }: Record<string, string>) => JSX.Element;
2
+ declare type Props = {
3
+ datatype: string;
4
+ className?: string;
5
+ };
6
+ export declare const DataType: ({ datatype, className }: Props) => JSX.Element;
7
+ export {};
@@ -10,12 +10,12 @@ export declare type FloatingDropDownProps = {
10
10
  isDisabled?: boolean;
11
11
  isSearchEnabled?: boolean;
12
12
  children?: React.ReactNode;
13
- Icon?: any;
13
+ icon?: JSX.Element;
14
14
  closeControl?: {
15
15
  close: boolean;
16
16
  };
17
17
  };
18
- export declare const FloatingDropDown: ({ label, labelVariant, selectedOption, onChange, className, options, isDisabled, children, Icon, isSearchEnabled, closeControl, }: FloatingDropDownProps) => JSX.Element;
18
+ export declare const FloatingDropDown: ({ label, labelVariant, selectedOption, onChange, className, options, isDisabled, children, icon, isSearchEnabled, closeControl, }: FloatingDropDownProps) => JSX.Element;
19
19
  export declare type MultiFloatingDropDownProps = Omit<FloatingDropDownProps, 'selectedOption' | 'onChange'> & {
20
20
  selectedOptions: FloatingDropDownOption[];
21
21
  onChange: (options: FloatingDropDownOption[]) => void;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ declare type IconsProps = {
3
+ name: 'data-exploration-icon' | 'dashboard-icon' | 'external-dashboard-icon' | 'sql-query-icon' | 'table-tab-icon' | 'visualization-icon' | 'arrow-back-icon' | 'logout-icon' | 'more-icon' | 'save-icon' | 'copy-icon' | 'dataset-icon' | 'filter-icon' | 'settings-icon' | 'info-icon' | 'schema-icon' | 'fullscreen-icon' | 'table-icon' | 'time-taken-icon' | 'setup-icon' | 'data-model-icon' | 'integration-icon' | 'external-dashboard-icon' | 'csv-icon' | 'iframe-icon' | 'dashboard-icon' | 'plus-icon' | 'checked-icon' | 'clone-icon' | 'close-icon' | 'double-arrow-left-icon' | 'double-arrow-right-icon' | 'metric-store-icon' | 'reset-icon' | 'play-icon' | 'tick-icon' | 'text-icon' | 'time-icon' | 'unknown-icon' | 'array-icon' | 'date-icon' | 'boolean-icon' | 'id-icon' | 'number-icon' | 'object-icon';
4
+ className?: string;
5
+ };
6
+ export declare const Icons: React.FC<IconsProps>;
7
+ export {};
@@ -4,5 +4,7 @@ declare type TooltipProps = PropsWithChildren & {
4
4
  className?: string;
5
5
  };
6
6
  export declare const Tooltip: React.FC<TooltipProps>;
7
- export declare const InfoTooltip: React.FC<Omit<TooltipProps, 'content'>>;
7
+ export declare const InfoTooltip: React.FC<Omit<TooltipProps, 'content'> & {
8
+ iconClass?: string;
9
+ }>;
8
10
  export {};
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { AxisSettings, LabelSettings, LegendSettings, BackgroundSettings, CustomSettings } from '@/types/app';
2
+ import { AxisSettings, LabelSettings, LegendSettings, BackgroundSettings, CustomSettings, TableSettings } from '@/types/app';
3
3
  import { ClickActionsConfig } from '@/types';
4
4
  export declare type MetricChartProps = {
5
5
  data: {
@@ -32,5 +32,6 @@ export declare type MetricChartProps = {
32
32
  isEnableGroupBy?: boolean;
33
33
  backGroundColor: BackgroundSettings;
34
34
  chartClickConfig: ClickActionsConfig['chart'];
35
+ tableSettings: TableSettings;
35
36
  };
36
- export declare const MetricChart: ({ labels, data, chartType, funnelData, sankeyData, singleValueData, margins, legendSettings, labelSettings, axisSettings, customSettings, enableSaveAs, colors, updateGroup, isEnableGroupBy, backGroundColor, chartClickConfig, }: MetricChartProps) => JSX.Element;
37
+ export declare const MetricChart: ({ labels, data, chartType, funnelData, sankeyData, singleValueData, margins, legendSettings, labelSettings, axisSettings, customSettings, enableSaveAs, colors, updateGroup, isEnableGroupBy, backGroundColor, chartClickConfig, tableSettings, }: MetricChartProps) => JSX.Element;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { MetricOutputProps } from '@/types/metricCreate';
3
- export declare const MetricOutput: ({ data, error, isLoading, labels, funnelData, chartType, datasets, setChartType, setXAxis, setYAxisList, xAxis, setMeasure, setStep, step, measure, setSankeyValues, sankeyData, previewTableDataList, singleValue, setSingleValue, singleValueData, setMargins, margins, legendSettings, setLegendSettings, labelSettings, setLabelSettings, axisSettings, setAxisSettings, customSettings, setCustomSettings, updateGroup, isEnableGroupBy, backGroundColor, setBackGroundColor, moreTabs, }: MetricOutputProps) => JSX.Element;
3
+ export declare const MetricOutput: ({ data, error, isLoading, labels, funnelData, chartType, datasets, setChartType, setXAxis, setYAxisList, xAxis, setMeasure, setStep, step, measure, setSankeyValues, sankeyData, previewTableDataList, singleValue, setSingleValue, singleValueData, setMargins, margins, legendSettings, setLegendSettings, labelSettings, setLabelSettings, axisSettings, setAxisSettings, customSettings, setCustomSettings, tableSettings, setTableSettings, updateGroup, isEnableGroupBy, backGroundColor, setBackGroundColor, moreTabs, }: MetricOutputProps) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { AxisSettings, BackgroundSettings, CustomSettings, LabelSettings, LegendSettings } from '@/types/app';
2
+ import { AxisSettings, BackgroundSettings, CustomSettings, LabelSettings, LegendSettings, TableSettings } from '@/types/app';
3
3
  declare type Props = {
4
4
  setMargins: React.Dispatch<React.SetStateAction<Record<string, number>>>;
5
5
  margins: Record<string, number>;
@@ -15,6 +15,8 @@ declare type Props = {
15
15
  setChartType: any;
16
16
  backGroundColor: BackgroundSettings;
17
17
  setBackGroundColor: React.Dispatch<React.SetStateAction<BackgroundSettings>>;
18
+ tableSettings: TableSettings;
19
+ setTableSettings: React.Dispatch<React.SetStateAction<TableSettings>>;
18
20
  };
19
- export declare const ChartConfigure: ({ setMargins, margins, legendSettings, setLegendSettings, labelSettings, setLabelSettings, axisSettings, setAxisSettings, chartType, setChartType, customSettings, setCustomSettings, backGroundColor, setBackGroundColor, }: Props) => JSX.Element;
21
+ export declare const ChartConfigure: ({ setMargins, margins, legendSettings, setLegendSettings, labelSettings, setLabelSettings, axisSettings, setAxisSettings, chartType, setChartType, customSettings, setCustomSettings, backGroundColor, setBackGroundColor, tableSettings, setTableSettings, }: Props) => JSX.Element;
20
22
  export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { AxisSettings, BackgroundSettings, CustomSettings, LabelSettings, LegendSettings } from '@/types/app';
2
+ import { AxisSettings, BackgroundSettings, CustomSettings, LabelSettings, LegendSettings, TableSettings } from '@/types/app';
3
3
  declare type Props = {
4
4
  data: any[] | undefined;
5
5
  chartType: string;
@@ -27,6 +27,8 @@ declare type Props = {
27
27
  setCustomSettings: React.Dispatch<React.SetStateAction<CustomSettings>>;
28
28
  backGroundColor: BackgroundSettings;
29
29
  setBackGroundColor: React.Dispatch<React.SetStateAction<BackgroundSettings>>;
30
+ tableSettings: TableSettings;
31
+ setTableSettings: React.Dispatch<React.SetStateAction<TableSettings>>;
30
32
  };
31
- export declare const ChartSettings: ({ chartType, setChartType, data, setXAxis, setYAxisList, xAxis, setMeasure, setStep, step, measure, setSankeyValues, singleValue, setSingleValue, setSettingsShow, setMargins, margins, legendSettings, setLegendSettings, labelSettings, setLabelSettings, axisSettings, setAxisSettings, customSettings, setCustomSettings, backGroundColor, setBackGroundColor, }: Props) => JSX.Element;
33
+ export declare const ChartSettings: ({ chartType, setChartType, data, setXAxis, setYAxisList, xAxis, setMeasure, setStep, step, measure, setSankeyValues, singleValue, setSingleValue, setSettingsShow, setMargins, margins, legendSettings, setLegendSettings, labelSettings, setLabelSettings, axisSettings, setAxisSettings, customSettings, setCustomSettings, backGroundColor, setBackGroundColor, tableSettings, setTableSettings, }: Props) => JSX.Element;
32
34
  export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { AxisSettings, LabelSettings, LegendSettings, BackgroundSettings, CustomSettings } from '@/types/app';
2
+ import { AxisSettings, LabelSettings, LegendSettings, BackgroundSettings, CustomSettings, TableSettings } from '@/types/app';
3
3
  declare type Props = {
4
4
  data: any[] | undefined;
5
5
  labels: string[] | undefined;
@@ -45,6 +45,8 @@ declare type Props = {
45
45
  backGroundColor: BackgroundSettings;
46
46
  setBackGroundColor: React.Dispatch<React.SetStateAction<BackgroundSettings>>;
47
47
  headerChild?: JSX.Element;
48
+ tableSettings: TableSettings;
49
+ setTableSettings: React.Dispatch<React.SetStateAction<TableSettings>>;
48
50
  };
49
- export declare const ChartTab: ({ labels, datasets, funnelData, chartType, setChartType, data, setXAxis, setYAxisList, xAxis, setMeasure, setStep, step, measure, setSankeyValues, sankeyData, singleValue, setSingleValue, singleValueData, setMargins, margins, legendSettings, setLegendSettings, labelSettings, setLabelSettings, customSettings, setCustomSettings, axisSettings, setAxisSettings, updateGroup, isLoading, isEnableGroupBy, backGroundColor, setBackGroundColor, headerChild, }: Props) => JSX.Element;
51
+ export declare const ChartTab: ({ labels, datasets, funnelData, chartType, setChartType, data, setXAxis, setYAxisList, xAxis, setMeasure, setStep, step, measure, setSankeyValues, sankeyData, singleValue, setSingleValue, singleValueData, setMargins, margins, legendSettings, setLegendSettings, labelSettings, setLabelSettings, customSettings, setCustomSettings, axisSettings, setAxisSettings, updateGroup, isLoading, isEnableGroupBy, backGroundColor, setBackGroundColor, headerChild, tableSettings, setTableSettings, }: Props) => JSX.Element;
50
52
  export {};
@@ -25,3 +25,4 @@ export * from './Text';
25
25
  export * from './TextAreaField';
26
26
  export * from './TimeGrainField';
27
27
  export * from './ToggleButton';
28
+ export * from './Icons';
@@ -1,5 +1,5 @@
1
1
  import { FieldValues } from 'react-hook-form';
2
- import { AxisSettings, CustomSettings, DashboardType, GroupBy, LabelSettings, LegendSettings, RlsFilterObjectType, SelectedColumns, BackgroundSettings } from '@/types/app';
2
+ import { AxisSettings, CustomSettings, TableSettings, DashboardType, GroupBy, LabelSettings, LegendSettings, RlsFilterObjectType, SelectedColumns, BackgroundSettings } from '@/types/app';
3
3
  declare type Params = {
4
4
  companyIntegrationId: string | undefined;
5
5
  selectedColumns: SelectedColumns[] | undefined;
@@ -19,6 +19,7 @@ declare type Params = {
19
19
  labelSettings: LabelSettings;
20
20
  axisSettings: AxisSettings;
21
21
  customSettings?: CustomSettings;
22
+ tableSettings?: TableSettings;
22
23
  backGroundColor?: BackgroundSettings;
23
24
  integrationName: string | undefined;
24
25
  clientId?: string | null;
@@ -32,7 +33,7 @@ declare type Params = {
32
33
  selectedGroupBy: string[];
33
34
  groupBy: GroupBy | undefined;
34
35
  };
35
- export declare const useExternalMetric: ({ companyIntegrationId, selectedColumns, query, metricQuery, integrationName, outputColumns, xAxis, yAxisList, chartType, step, measure, sankeyValues, singleValue, margins, legendSettings, labelSettings, axisSettings, customSettings, backGroundColor, clientId, companyId, mode, timeGrain, dashboardIds, isEnableGroupBy, groupBy, selectedGroupBy, }: Params) => {
36
+ export declare const useExternalMetric: ({ companyIntegrationId, selectedColumns, query, metricQuery, integrationName, outputColumns, xAxis, yAxisList, chartType, step, measure, sankeyValues, singleValue, margins, legendSettings, labelSettings, axisSettings, customSettings, tableSettings, backGroundColor, clientId, companyId, mode, timeGrain, dashboardIds, isEnableGroupBy, groupBy, selectedGroupBy, }: Params) => {
36
37
  createExternalMetric: (data: FieldValues) => void;
37
38
  error: string;
38
39
  };