@databrainhq/plugin 0.7.21 → 0.7.22

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.
@@ -4,6 +4,7 @@ declare type Props = {
4
4
  chartType: string;
5
5
  setXAxis: React.Dispatch<React.SetStateAction<string | undefined>>;
6
6
  setYAxisList: React.Dispatch<React.SetStateAction<string[] | undefined>>;
7
+ yAxisList?: string[];
7
8
  xAxis: string | undefined;
8
9
  setMeasure: React.Dispatch<React.SetStateAction<string | undefined>>;
9
10
  setStep: React.Dispatch<React.SetStateAction<string | undefined>>;
@@ -14,5 +15,5 @@ declare type Props = {
14
15
  setSingleValue: React.Dispatch<React.SetStateAction<string | undefined>>;
15
16
  setSettingsShow: React.Dispatch<React.SetStateAction<boolean>>;
16
17
  };
17
- export declare const ChartConfig: ({ data, setXAxis, xAxis, setYAxisList, chartType, setStep, setMeasure, step, measure, setSankeyValues, setSettingsShow, singleValue, setSingleValue, }: Props) => JSX.Element;
18
+ export declare const ChartConfig: ({ data, setXAxis, xAxis, yAxisList, setYAxisList, chartType, setStep, setMeasure, step, measure, setSankeyValues, setSettingsShow, singleValue, setSingleValue, }: Props) => JSX.Element;
18
19
  export {};
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  declare type Props = {
3
3
  setChartType: React.Dispatch<React.SetStateAction<string>>;
4
+ chartType: string;
4
5
  };
5
- export declare const ChartModalOptions: ({ setChartType }: Props) => JSX.Element;
6
+ export declare const ChartModalOptions: ({ chartType, setChartType }: Props) => JSX.Element;
6
7
  export {};
@@ -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, tableSettings, setTableSettings, updateGroup, isEnableGroupBy, backGroundColor, setBackGroundColor, moreTabs, }: MetricOutputProps) => JSX.Element;
3
+ export declare const MetricOutput: ({ data, error, isLoading, labels, funnelData, chartType, datasets, setChartType, setXAxis, setYAxisList, yAxisList, 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;
@@ -6,6 +6,7 @@ declare type Props = {
6
6
  setChartType: React.Dispatch<React.SetStateAction<string>>;
7
7
  setXAxis: React.Dispatch<React.SetStateAction<string | undefined>>;
8
8
  setYAxisList: React.Dispatch<React.SetStateAction<string[] | undefined>>;
9
+ yAxisList?: string[];
9
10
  xAxis: string | undefined;
10
11
  setMeasure: React.Dispatch<React.SetStateAction<string | undefined>>;
11
12
  setStep: React.Dispatch<React.SetStateAction<string | undefined>>;
@@ -30,5 +31,5 @@ declare type Props = {
30
31
  tableSettings: TableSettings;
31
32
  setTableSettings: React.Dispatch<React.SetStateAction<TableSettings>>;
32
33
  };
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;
34
+ export declare const ChartSettings: ({ chartType, setChartType, data, setXAxis, setYAxisList, yAxisList, 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;
34
35
  export {};
@@ -16,6 +16,7 @@ declare type Props = {
16
16
  setChartType: React.Dispatch<React.SetStateAction<string>>;
17
17
  setXAxis: React.Dispatch<React.SetStateAction<string | undefined>>;
18
18
  setYAxisList: React.Dispatch<React.SetStateAction<string[] | undefined>>;
19
+ yAxisList?: string[];
19
20
  xAxis: string | undefined;
20
21
  setMeasure: React.Dispatch<React.SetStateAction<string | undefined>>;
21
22
  setStep: React.Dispatch<React.SetStateAction<string | undefined>>;
@@ -48,5 +49,5 @@ declare type Props = {
48
49
  tableSettings: TableSettings;
49
50
  setTableSettings: React.Dispatch<React.SetStateAction<TableSettings>>;
50
51
  };
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;
52
+ export declare const ChartTab: ({ labels, datasets, funnelData, chartType, setChartType, data, setXAxis, setYAxisList, yAxisList, 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;
52
53
  export {};
@@ -23,7 +23,7 @@ declare type HookSelectInput = Omit<SelectInput, 'value'> & {
23
23
  name: string;
24
24
  };
25
25
  export declare const Select: ({ label, options, onChange, value, defaultValue, children, placeHolder, className, containerClass, isSearchEnabled, textSize, }: SelectInput) => JSX.Element;
26
- export declare const HookSelect: ({ control, name, options, label, defaultValue, }: HookSelectInput) => JSX.Element;
26
+ export declare const HookSelect: ({ control, name, ...rest }: HookSelectInput) => JSX.Element;
27
27
  export declare const SelectWithSubValue: ({ label, options, onChange, value, defaultValue, }: any) => JSX.Element;
28
28
  export declare const DropDown: ({ control, name, options, label, defaultValue, }: HookSelectInput) => JSX.Element;
29
29
  declare type MultiSelectProps = {