@databrainhq/plugin 0.6.10 → 0.7.1

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.
Files changed (83) hide show
  1. package/dist/components/Button/index.d.ts +2 -2
  2. package/dist/components/ChartModal/ChartConfig.d.ts +2 -2
  3. package/dist/components/ChartModal/ChartModalOptions.d.ts +2 -2
  4. package/dist/components/ChartModal/SelectField.d.ts +1 -2
  5. package/dist/components/ChartModal/index.d.ts +3 -0
  6. package/dist/components/Charts/LineChart.d.ts +1 -1
  7. package/dist/components/DataType/index.d.ts +2 -3
  8. package/dist/components/Error/index.d.ts +2 -2
  9. package/dist/components/ErrorFallback/index.d.ts +2 -3
  10. package/dist/components/ExternalMetricForm/index.d.ts +3 -3
  11. package/dist/components/FilterDropDown/index.d.ts +2 -3
  12. package/dist/components/FilterField/index.d.ts +4 -3
  13. package/dist/components/FloatingDropDown/index.d.ts +5 -7
  14. package/dist/components/FullScreenChart/index.d.ts +2 -2
  15. package/dist/components/GlobalFilters/index.d.ts +4 -4
  16. package/dist/components/InfoTooltip/index.d.ts +2 -5
  17. package/dist/components/InputField/index.d.ts +2 -2
  18. package/dist/components/MetricChart/CsvDownloadButton.d.ts +2 -2
  19. package/dist/components/MetricChart/MetricChart.d.ts +34 -0
  20. package/dist/components/MetricChart/index.d.ts +2 -35
  21. package/dist/components/MetricCreation/MetricCreation.d.ts +3 -0
  22. package/dist/components/MetricCreation/components/ConstructMetric/ConstructMetric.d.ts +3 -0
  23. package/dist/components/MetricCreation/components/ConstructMetric/components/MetricForm/index.d.ts +2 -3
  24. package/dist/components/MetricCreation/components/ConstructMetric/index.d.ts +2 -4
  25. package/dist/components/MetricCreation/components/Dataset/index.d.ts +2 -3
  26. package/dist/components/MetricCreation/components/Header/index.d.ts +1 -2
  27. package/dist/components/MetricCreation/components/MetricOutput/MetricOutput.d.ts +3 -0
  28. package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/components/ChartConfigure/index.d.ts +3 -3
  29. package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/components/ChartSettings/index.d.ts +3 -3
  30. package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/index.d.ts +3 -3
  31. package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/components/InputTables/index.d.ts +1 -2
  32. package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/index.d.ts +2 -2
  33. package/dist/components/MetricCreation/components/MetricOutput/index.d.ts +3 -4
  34. package/dist/components/MetricCreation/index.d.ts +5 -4
  35. package/dist/components/{RlsFilters/index.d.ts → MetricFilters/MetricFilters.d.ts} +3 -3
  36. package/dist/components/{RlsFilters → MetricFilters}/MultipleTimeGrain.d.ts +2 -2
  37. package/dist/components/MetricFilters/index.d.ts +2 -0
  38. package/dist/components/MetricList/MetricList.d.ts +45 -0
  39. package/dist/components/MetricList/components/MetricCard.d.ts +2 -3
  40. package/dist/components/MetricList/components/SingleValueCard.d.ts +1 -2
  41. package/dist/components/MetricList/index.d.ts +3 -45
  42. package/dist/components/MetricTable/index.d.ts +2 -2
  43. package/dist/components/Modal/Modal.d.ts +9 -0
  44. package/dist/components/Modal/ModalFooter.d.ts +4 -2
  45. package/dist/components/Modal/index.d.ts +2 -10
  46. package/dist/components/PopoverMenu/index.d.ts +1 -2
  47. package/dist/components/SearchTab/index.d.ts +1 -2
  48. package/dist/components/Select/index.d.ts +2 -2
  49. package/dist/components/Tab/index.d.ts +2 -2
  50. package/dist/components/Table/index.d.ts +2 -2
  51. package/dist/components/Text/index.d.ts +3 -3
  52. package/dist/components/TextAreaField/index.d.ts +2 -2
  53. package/dist/components/TimeGrainField/index.d.ts +2 -2
  54. package/dist/components/ToggleButton/index.d.ts +2 -2
  55. package/dist/components/index.d.ts +28 -0
  56. package/dist/consts/app.d.ts +39 -0
  57. package/dist/consts/index.d.ts +2 -39
  58. package/dist/containers/Dashboard/Dashboard.d.ts +4 -0
  59. package/dist/containers/Dashboard/EmbededDashboard.d.ts +12 -0
  60. package/dist/containers/Dashboard/index.d.ts +2 -12
  61. package/dist/helpers/getModifiedQuery.d.ts +6 -0
  62. package/dist/helpers/getTimeFilterValue.d.ts +2 -2
  63. package/dist/helpers/groupArray.d.ts +1 -0
  64. package/dist/helpers/index.d.ts +4 -0
  65. package/dist/hooks/index.d.ts +5 -0
  66. package/dist/hooks/useEmbeddedDashboard.d.ts +1 -2
  67. package/dist/hooks/useExternalMetric.d.ts +3 -3
  68. package/dist/hooks/useGenerateDatasetMetrics.d.ts +1 -2
  69. package/dist/hooks/useGenerateEmbeddedMetric.d.ts +15 -0
  70. package/dist/hooks/useOutsideAlerter.d.ts +2 -2
  71. package/dist/index.d.ts +6 -0
  72. package/dist/index.es.js +3191 -2832
  73. package/dist/index.umd.js +124 -106
  74. package/dist/style.css +1 -1
  75. package/dist/types/app.d.ts +124 -0
  76. package/dist/types/index.d.ts +2 -124
  77. package/dist/types/metricCreate.d.ts +1 -9
  78. package/dist/utils/arrayToCsvString.d.ts +1 -2
  79. package/dist/utils/colors.d.ts +1 -2
  80. package/dist/utils/getChartAttributes.d.ts +2 -2
  81. package/dist/utils/getFormattedDataType.d.ts +1 -2
  82. package/dist/utils/index.d.ts +5 -0
  83. package/package.json +3 -3
@@ -9,5 +9,5 @@ interface Props {
9
9
  onClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
10
10
  title?: string;
11
11
  }
12
- declare const Button: ({ isDisabled, type, className, children, variant, size, onClick, title, }: Props) => JSX.Element;
13
- export default Button;
12
+ export declare const Button: ({ isDisabled, type, className, children, variant, size, onClick, title, }: Props) => JSX.Element;
13
+ export {};
@@ -14,5 +14,5 @@ declare type Props = {
14
14
  setSingleValue: React.Dispatch<React.SetStateAction<string | undefined>>;
15
15
  setSettingsShow: React.Dispatch<React.SetStateAction<boolean>>;
16
16
  };
17
- declare const _default: React.MemoExoticComponent<({ data, setXAxis, xAxis, setYAxisList, chartType, setStep, setMeasure, step, measure, setSankeyValues, setSettingsShow, singleValue, setSingleValue, }: Props) => JSX.Element>;
18
- export default _default;
17
+ export declare const ChartConfig: ({ data, setXAxis, xAxis, setYAxisList, chartType, setStep, setMeasure, step, measure, setSankeyValues, setSettingsShow, singleValue, setSingleValue, }: Props) => JSX.Element;
18
+ export {};
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  declare type Props = {
3
3
  setChartType: React.Dispatch<React.SetStateAction<string>>;
4
4
  };
5
- declare const ChartModalOptions: ({ setChartType }: Props) => JSX.Element;
6
- export default ChartModalOptions;
5
+ export declare const ChartModalOptions: ({ setChartType }: Props) => JSX.Element;
6
+ export {};
@@ -1,3 +1,2 @@
1
1
  /// <reference types="react" />
2
- declare const SelectField: ({ value, options, control }: any) => JSX.Element;
3
- export default SelectField;
2
+ export declare const SelectField: ({ value, options, control }: any) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ export * from './ChartConfig';
2
+ export * from './ChartModalOptions';
3
+ export * from './SelectField';
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { AxisSettings, CustomSettings, LabelSettings, LegendSettings } from '@/types';
2
+ import { AxisSettings, CustomSettings, LabelSettings, LegendSettings } from '@/types/app';
3
3
  declare type Props = {
4
4
  data: {
5
5
  labels: string[] | undefined;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const _default: React.MemoExoticComponent<({ datatype }: Record<string, string>) => JSX.Element>;
3
- export default _default;
1
+ /// <reference types="react" />
2
+ export declare const DataType: ({ datatype }: Record<string, string>) => JSX.Element;
@@ -2,5 +2,5 @@
2
2
  declare type ErrorMessageProps = {
3
3
  message?: string;
4
4
  };
5
- declare const Error: ({ message }: ErrorMessageProps) => JSX.Element;
6
- export default Error;
5
+ export declare const Error: ({ message }: ErrorMessageProps) => JSX.Element;
6
+ export {};
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const _default: React.MemoExoticComponent<() => JSX.Element>;
3
- export default _default;
1
+ /// <reference types="react" />
2
+ export declare const ErrorFallback: () => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { FieldValues } from 'react-hook-form';
3
- import { DashboardType } from '@/types';
3
+ import { DashboardType } from '@/types/app';
4
4
  declare type ExternalMetricProps = {
5
5
  onSubmit: (values: FieldValues) => void;
6
6
  defaultValues?: FieldValues;
@@ -11,5 +11,5 @@ declare type ExternalMetricProps = {
11
11
  companyId: string;
12
12
  error?: string;
13
13
  };
14
- declare const _default: React.NamedExoticComponent<ExternalMetricProps>;
15
- export default _default;
14
+ export declare const ExternalMetricForm: React.FC<ExternalMetricProps>;
15
+ export {};
@@ -1,12 +1,11 @@
1
1
  import React from 'react';
2
- import { RlsFilterObjectType } from '@/types';
2
+ import { RlsFilterObjectType } from '@/types/app';
3
3
  import { FloatingDropDownProps, MultiFloatingDropDownProps } from '@/components/FloatingDropDown';
4
4
  export declare type FilterDropDownProps = Omit<FloatingDropDownProps, 'options' | 'isDisabled'> & {
5
5
  companyId: string;
6
6
  filter: Pick<RlsFilterObjectType, 'columnName' | 'tableName' | 'defaultValue' | 'value'>;
7
7
  autoSelected?: boolean;
8
8
  };
9
+ export declare const FilterDropDown: ({ companyId, filter, onChange, selectedOption, autoSelected, ...rest }: FilterDropDownProps) => JSX.Element;
9
10
  export declare type MultiFilterDropDownProps = Pick<FilterDropDownProps, 'autoSelected' | 'companyId' | 'filter'> & Omit<MultiFloatingDropDownProps, 'options' | 'isDisabled'>;
10
11
  export declare const MultiFilterDropdown: React.FC<MultiFilterDropDownProps>;
11
- declare const _default: React.MemoExoticComponent<({ companyId, filter, onChange, selectedOption, autoSelected, ...rest }: FilterDropDownProps) => JSX.Element>;
12
- export default _default;
@@ -3,12 +3,14 @@ export declare type FilterFieldType = {
3
3
  column: string;
4
4
  operator: string;
5
5
  value?: string | string[] | number | number[] | boolean | boolean[] | null;
6
+ as?: string;
6
7
  };
7
- declare type FilterFieldProps = {
8
+ export declare type FilterFieldProps = {
8
9
  tableName: string;
9
10
  filter: {
10
11
  name: string;
11
12
  dataType: string;
13
+ as: string;
12
14
  };
13
15
  isResetted: boolean;
14
16
  onChange: (field: FilterFieldType) => void;
@@ -16,5 +18,4 @@ declare type FilterFieldProps = {
16
18
  };
17
19
  export declare const isInFilterOperator: (input: string) => boolean;
18
20
  export declare const isNullFilterOperator: (input: string) => boolean;
19
- declare const _default: React.NamedExoticComponent<FilterFieldProps>;
20
- export default _default;
21
+ export declare const FilterField: React.FC<FilterFieldProps>;
@@ -1,9 +1,5 @@
1
1
  import React from 'react';
2
- export declare type FloatingDropDownOption = {
3
- key?: string;
4
- label: string;
5
- value: string;
6
- };
2
+ import { FloatingDropDownOption } from '@/types';
7
3
  export declare type FloatingDropDownProps = {
8
4
  onChange: (option: FloatingDropDownOption) => void;
9
5
  selectedOption: FloatingDropDownOption;
@@ -15,11 +11,13 @@ export declare type FloatingDropDownProps = {
15
11
  isSearchEnabled?: boolean;
16
12
  children?: React.ReactNode;
17
13
  Icon?: any;
14
+ closeControl?: {
15
+ close: boolean;
16
+ };
18
17
  };
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;
22
22
  };
23
23
  export declare const MultiFloatingDropDown: React.FC<MultiFloatingDropDownProps>;
24
- declare const _default: React.MemoExoticComponent<({ label, labelVariant, selectedOption, onChange, className, options, isDisabled, children, Icon, isSearchEnabled, }: FloatingDropDownProps) => JSX.Element>;
25
- export default _default;
@@ -5,5 +5,5 @@ declare type Props = {
5
5
  onCancel: () => void;
6
6
  chart?: MetricChartProps;
7
7
  };
8
- declare const FullScreenChart: ({ isShow, onCancel, chart }: Props) => JSX.Element;
9
- export default FullScreenChart;
8
+ export declare const FullScreenChart: ({ isShow, onCancel, chart }: Props) => JSX.Element;
9
+ export {};
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import { MetricCardProps } from '@/components/MetricList/components/MetricCard';
3
- import { FilterType } from '@/types';
4
- declare type MetricFiltersProps = {
3
+ import { FilterType } from '@/types/app';
4
+ declare type GlobalFiltersProps = {
5
5
  filters: FilterType[];
6
6
  companyId: string;
7
7
  onApply: (filters: MetricCardProps['globalFilters']) => void;
8
8
  };
9
- declare const _default: React.NamedExoticComponent<MetricFiltersProps>;
10
- export default _default;
9
+ export declare const GlobalFilters: React.FC<GlobalFiltersProps>;
10
+ export {};
@@ -1,5 +1,2 @@
1
- import React from 'react';
2
- declare const _default: React.NamedExoticComponent<{
3
- children?: React.ReactNode;
4
- }>;
5
- export default _default;
1
+ import React, { PropsWithChildren } from 'react';
2
+ export declare const InfoTooltip: React.FC<PropsWithChildren>;
@@ -21,5 +21,5 @@ interface Props {
21
21
  inputClass?: string;
22
22
  className?: string;
23
23
  }
24
- declare const InputField: ({ id, name, value, placeholder, label, type, onBlur, onFocus, onChange, onKeyDown, defaultValue, register, error, icon, checked, isDisabled, labelClass, inputClass, className, }: Props) => JSX.Element;
25
- export default InputField;
24
+ export declare const InputField: ({ id, name, value, placeholder, label, type, onBlur, onFocus, onChange, onKeyDown, defaultValue, register, error, icon, checked, isDisabled, labelClass, inputClass, className, }: Props) => JSX.Element;
25
+ export {};
@@ -6,5 +6,5 @@ declare type CsvDownloadButtonProps = {
6
6
  iconClass?: string;
7
7
  text?: string;
8
8
  };
9
- declare const _default: React.NamedExoticComponent<CsvDownloadButtonProps>;
10
- export default _default;
9
+ export declare const CsvDownloadButton: React.FC<CsvDownloadButtonProps>;
10
+ export {};
@@ -0,0 +1,34 @@
1
+ /// <reference types="react" />
2
+ import { AxisSettings, LabelSettings, LegendSettings, BackgroundSettings, CustomSettings } from '@/types/app';
3
+ export declare type MetricChartProps = {
4
+ data: {
5
+ labels: string[] | undefined;
6
+ datasets: {
7
+ label: string;
8
+ data: any[] | undefined;
9
+ borderColor: string;
10
+ }[] | undefined;
11
+ };
12
+ labels: string[] | undefined;
13
+ funnelData: ('' | {
14
+ value: any;
15
+ name: any;
16
+ } | undefined)[] | undefined;
17
+ chartType: string;
18
+ sankeyData: (any[] | undefined)[] | undefined;
19
+ singleValueData: ('' | {
20
+ value: any;
21
+ label: string;
22
+ } | undefined)[] | undefined;
23
+ margins: Record<string, number>;
24
+ legendSettings: LegendSettings;
25
+ labelSettings: LabelSettings;
26
+ axisSettings: AxisSettings;
27
+ customSettings: CustomSettings;
28
+ enableSaveAs: boolean;
29
+ colors?: string[];
30
+ updateGroup?: (value: string) => void;
31
+ isEnableGroupBy?: boolean;
32
+ backGroundColor: BackgroundSettings;
33
+ };
34
+ export declare const MetricChart: ({ labels, data, chartType, funnelData, sankeyData, singleValueData, margins, legendSettings, labelSettings, axisSettings, customSettings, enableSaveAs, colors, updateGroup, isEnableGroupBy, backGroundColor, }: MetricChartProps) => JSX.Element;
@@ -1,35 +1,2 @@
1
- /// <reference types="react" />
2
- import { AxisSettings, LabelSettings, LegendSettings, BackgroundSettings, CustomSettings } from '@/types';
3
- export declare type MetricChartProps = {
4
- data: {
5
- labels: string[] | undefined;
6
- datasets: {
7
- label: string;
8
- data: any[] | undefined;
9
- borderColor: string;
10
- }[] | undefined;
11
- };
12
- labels: string[] | undefined;
13
- funnelData: ('' | {
14
- value: any;
15
- name: any;
16
- } | undefined)[] | undefined;
17
- chartType: string;
18
- sankeyData: (any[] | undefined)[] | undefined;
19
- singleValueData: ('' | {
20
- value: any;
21
- label: string;
22
- } | undefined)[] | undefined;
23
- margins: Record<string, number>;
24
- legendSettings: LegendSettings;
25
- labelSettings: LabelSettings;
26
- axisSettings: AxisSettings;
27
- customSettings: CustomSettings;
28
- enableSaveAs: boolean;
29
- colors?: string[];
30
- updateGroup?: (value: string) => void;
31
- isEnableGroupBy?: boolean;
32
- backGroundColor: BackgroundSettings;
33
- };
34
- declare const MetricChart: ({ labels, data, chartType, funnelData, sankeyData, singleValueData, margins, legendSettings, labelSettings, axisSettings, customSettings, enableSaveAs, colors, updateGroup, isEnableGroupBy, backGroundColor, }: MetricChartProps) => JSX.Element;
35
- export default MetricChart;
1
+ export * from './CsvDownloadButton';
2
+ export * from './MetricChart';
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { EmbeddedMetricCreationProps } from '@/types/metricCreate';
3
+ export declare const EmbeddedMetricCreation: ({ clientId, companyId, mode, externalDashboardId, variant, }: EmbeddedMetricCreationProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { ConstructMetricProps } from '@/types/metricCreate';
3
+ export declare const ConstructMetric: ({ dateTimeColumnList, columnList, database, companyId, tableName, setData, setError, setLoading, setQuery, isEnableGroupBy, setEnableGroupBy, setSelectedGroupBy, }: ConstructMetricProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { ConstructMetricProps } from '@/types/metricCreate';
3
- declare const _default: React.MemoExoticComponent<({ dateTimeColumnList, columnList, database, companyId, tableName, setData, setError, setLoading, setQuery, isEnableGroupBy, setSelectedGroupBy, }: ConstructMetricProps) => JSX.Element>;
4
- export default _default;
3
+ export declare const MetricForm: ({ dateTimeColumnList, columnList, database, companyId, tableName, setData, setError, setLoading, setQuery, isEnableGroupBy, setSelectedGroupBy, }: ConstructMetricProps) => JSX.Element;
@@ -1,4 +1,2 @@
1
- import React from 'react';
2
- import { ConstructMetricProps } from '@/types/metricCreate';
3
- declare const _default: React.MemoExoticComponent<({ dateTimeColumnList, columnList, database, companyId, tableName, setData, setError, setLoading, setQuery, isEnableGroupBy, setEnableGroupBy, setSelectedGroupBy, }: ConstructMetricProps) => JSX.Element>;
4
- export default _default;
1
+ export * from './components/MetricForm';
2
+ export * from './ConstructMetric';
@@ -1,4 +1,3 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { DatasetProps } from '@/types/metricCreate';
3
- declare const _default: React.MemoExoticComponent<({ setselectTable, selectTable, tableList, columnList, }: DatasetProps) => JSX.Element>;
4
- export default _default;
3
+ export declare const Dataset: ({ setselectTable, selectTable, tableList, columnList, }: DatasetProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { HeaderProps } from '@/types/metricCreate';
3
- declare const Header: ({ setShowMetricCreateModal, isDisableSaveBtn, Heading, isDisableSqlBtn, setShowSaveMetricModal, setShowSqlModal, }: HeaderProps) => JSX.Element;
4
- export default Header;
3
+ export declare const Header: ({ setShowMetricCreateModal, isDisableSaveBtn, Heading, isDisableSqlBtn, setShowSaveMetricModal, setShowSqlModal, }: HeaderProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
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, }: MetricOutputProps) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { AxisSettings, BackgroundSettings, CustomSettings, LabelSettings, LegendSettings } from '@/types';
2
+ import { AxisSettings, BackgroundSettings, CustomSettings, LabelSettings, LegendSettings } from '@/types/app';
3
3
  declare type Props = {
4
4
  setMargins: React.Dispatch<React.SetStateAction<Record<string, number>>>;
5
5
  margins: Record<string, number>;
@@ -16,5 +16,5 @@ declare type Props = {
16
16
  backGroundColor: BackgroundSettings;
17
17
  setBackGroundColor: React.Dispatch<React.SetStateAction<BackgroundSettings>>;
18
18
  };
19
- declare const ChartConfigure: ({ setMargins, margins, legendSettings, setLegendSettings, labelSettings, setLabelSettings, axisSettings, setAxisSettings, chartType, setChartType, customSettings, setCustomSettings, backGroundColor, setBackGroundColor, }: Props) => JSX.Element;
20
- export default ChartConfigure;
19
+ export declare const ChartConfigure: ({ setMargins, margins, legendSettings, setLegendSettings, labelSettings, setLabelSettings, axisSettings, setAxisSettings, chartType, setChartType, customSettings, setCustomSettings, backGroundColor, setBackGroundColor, }: Props) => JSX.Element;
20
+ export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { AxisSettings, BackgroundSettings, CustomSettings, LabelSettings, LegendSettings } from '@/types';
2
+ import { AxisSettings, BackgroundSettings, CustomSettings, LabelSettings, LegendSettings } from '@/types/app';
3
3
  declare type Props = {
4
4
  data: any[] | undefined;
5
5
  chartType: string;
@@ -28,5 +28,5 @@ declare type Props = {
28
28
  backGroundColor: BackgroundSettings;
29
29
  setBackGroundColor: React.Dispatch<React.SetStateAction<BackgroundSettings>>;
30
30
  };
31
- 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;
32
- export default ChartSettings;
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;
32
+ export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { AxisSettings, LabelSettings, LegendSettings, BackgroundSettings, CustomSettings } from '@/types';
2
+ import { AxisSettings, LabelSettings, LegendSettings, BackgroundSettings, CustomSettings } from '@/types/app';
3
3
  declare type Props = {
4
4
  data: any[] | undefined;
5
5
  labels: string[] | undefined;
@@ -45,5 +45,5 @@ declare type Props = {
45
45
  backGroundColor: BackgroundSettings;
46
46
  setBackGroundColor: React.Dispatch<React.SetStateAction<BackgroundSettings>>;
47
47
  };
48
- 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, }: Props) => JSX.Element;
49
- export default ChartTab;
48
+ 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, }: Props) => JSX.Element;
49
+ export {};
@@ -1,3 +1,2 @@
1
1
  /// <reference types="react" />
2
- declare const InputTables: ({ previewTableDataList }: any) => JSX.Element;
3
- export default InputTables;
2
+ export declare const InputTables: ({ previewTableDataList }: any) => JSX.Element;
@@ -5,5 +5,5 @@ declare type Props = {
5
5
  isOutputLoading: boolean;
6
6
  outputError: string;
7
7
  };
8
- declare const TableTab: ({ outpuTableData, outputError, isOutputLoading, previewTableDataList, }: Props) => JSX.Element;
9
- export default TableTab;
8
+ export declare const TableTab: ({ outpuTableData, outputError, isOutputLoading, previewTableDataList, }: Props) => JSX.Element;
9
+ export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
- import { MetricOutputProps } from '@/types/metricCreate';
3
- 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, }: MetricOutputProps) => JSX.Element;
4
- export default MetricOutput;
1
+ export * from './MetricOutput';
2
+ export * from './components/ChartTab';
3
+ export * from './components/TableTab';
@@ -1,4 +1,5 @@
1
- /// <reference types="react" />
2
- import { EmbeddedMetricCreationProps } from '@/types/metricCreate';
3
- declare const EmbeddedMetricCreation: ({ clientId, companyId, mode, externalDashboardId, variant, }: EmbeddedMetricCreationProps) => JSX.Element;
4
- export default EmbeddedMetricCreation;
1
+ export * from './MetricCreation';
2
+ export * from './components/ConstructMetric';
3
+ export * from './components/Dataset';
4
+ export * from './components/Header';
5
+ export * from './components/MetricOutput';
@@ -1,11 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  import { PopoverMenuProps } from '@/components/PopoverMenu';
3
- import { RlsCondition } from '@/types';
3
+ import { RlsCondition } from '@/types/app';
4
4
  declare type Props = Partial<PopoverMenuProps> & {
5
5
  rlsConditions: RlsCondition[];
6
6
  onChangeFilterValue: (name: string, value: string) => void;
7
7
  dbName: string;
8
8
  iconClass?: string;
9
9
  };
10
- declare const RlsFilters: ({ rlsConditions, onChangeFilterValue, dbName, iconClass, ...rest }: Props) => JSX.Element;
11
- export default RlsFilters;
10
+ export declare const MetricFilters: ({ rlsConditions, onChangeFilterValue, dbName, iconClass, ...rest }: Props) => JSX.Element;
11
+ export {};
@@ -5,5 +5,5 @@ declare type Props = {
5
5
  onChangeFilterValue: (name: string, value: string) => void;
6
6
  name: string;
7
7
  };
8
- declare const MultipleTimeGrain: ({ columnName, dbName, onChangeFilterValue, name, }: Props) => JSX.Element;
9
- export default MultipleTimeGrain;
8
+ export declare const MultipleTimeGrain: ({ columnName, dbName, onChangeFilterValue, name, }: Props) => JSX.Element;
9
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './MetricFilters';
2
+ export * from './MultipleTimeGrain';
@@ -0,0 +1,45 @@
1
+ import React from 'react';
2
+ import { MetricCardProps } from './components/MetricCard';
3
+ import { ClientType } from '@/types/app';
4
+ import { ThemeType } from '@/utils/theme';
5
+ export declare const GridLayout: React.ComponentClass<import("react-grid-layout").ResponsiveProps & import("react-grid-layout").WidthProviderProps, any>;
6
+ export declare type ExternalMetricListProps = {
7
+ chartColors?: string[];
8
+ globalFilters?: MetricCardProps['globalFilters'];
9
+ client: ClientType['value'];
10
+ isLiveMode: boolean;
11
+ isMetricListLoading?: boolean;
12
+ breakpoint: ThemeType['breakpoint'];
13
+ layoutCols: ThemeType['metricLayoutCols'];
14
+ externalDashboardMetrics?: {
15
+ __typename?: 'externalDashboardMetrics';
16
+ externalMetricId: any;
17
+ externalDashboardId: any;
18
+ externalMetric: {
19
+ __typename?: 'externalMetrics';
20
+ chartOptions: any;
21
+ clientId?: string | null;
22
+ companyId: any;
23
+ companyIntegrationId: any;
24
+ createdAt: any;
25
+ createdBy?: string | null;
26
+ description: string;
27
+ id: any;
28
+ inputFields?: any | null;
29
+ integrationName: string;
30
+ isCreatedByClient: boolean;
31
+ isLive: boolean;
32
+ metricId: string;
33
+ metricQuery?: string | null;
34
+ name: string;
35
+ outputColumns?: string | null;
36
+ query: string;
37
+ resizeAttributes: any;
38
+ timeGrain?: string | null;
39
+ updatedAt: any;
40
+ };
41
+ }[] | undefined;
42
+ params?: any;
43
+ companyTenancyType: string;
44
+ };
45
+ export declare const ExternalMetricList: React.FC<ExternalMetricListProps>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ClientType } from '@/types';
2
+ import { ClientType } from '@/types/app';
3
3
  import { MetricChartProps } from '@/components/MetricChart';
4
4
  import { FilterFieldType } from '@/components/FilterField';
5
5
  export declare type MetricCardProps = {
@@ -14,5 +14,4 @@ export declare type MetricCardProps = {
14
14
  param?: any;
15
15
  companyTenancyType: string;
16
16
  };
17
- declare const MetricCard: React.FC<MetricCardProps>;
18
- export default MetricCard;
17
+ export declare const MetricCard: React.FC<MetricCardProps>;
@@ -1,4 +1,3 @@
1
1
  import React from 'react';
2
2
  import { MetricCardProps } from '@/components/MetricList/components/MetricCard';
3
- declare const SingleValueCard: React.FC<Omit<MetricCardProps, 'onMaximize'>>;
4
- export default SingleValueCard;
3
+ export declare const SingleValueCard: React.FC<Omit<MetricCardProps, 'onMaximize'>>;
@@ -1,45 +1,3 @@
1
- import React from 'react';
2
- import { MetricCardProps } from '@/components/MetricList/components/MetricCard';
3
- import { ClientType } from '@/types';
4
- import { ThemeType } from '@/utils/theme';
5
- export declare type ExternalMetricListProps = {
6
- chartColors?: string[];
7
- globalFilters?: MetricCardProps['globalFilters'];
8
- client: ClientType['value'];
9
- isLiveMode: boolean;
10
- isMetricListLoading?: boolean;
11
- breakpoint: ThemeType['breakpoint'];
12
- layoutCols: ThemeType['metricLayoutCols'];
13
- externalDashboardMetrics?: {
14
- __typename?: 'externalDashboardMetrics';
15
- externalMetricId: any;
16
- externalDashboardId: any;
17
- externalMetric: {
18
- __typename?: 'externalMetrics';
19
- chartOptions: any;
20
- clientId?: string | null;
21
- companyId: any;
22
- companyIntegrationId: any;
23
- createdAt: any;
24
- createdBy?: string | null;
25
- description: string;
26
- id: any;
27
- inputFields?: any | null;
28
- integrationName: string;
29
- isCreatedByClient: boolean;
30
- isLive: boolean;
31
- metricId: string;
32
- metricQuery?: string | null;
33
- name: string;
34
- outputColumns?: string | null;
35
- query: string;
36
- resizeAttributes: any;
37
- timeGrain?: string | null;
38
- updatedAt: any;
39
- };
40
- }[] | undefined;
41
- params?: any;
42
- companyTenancyType: string;
43
- };
44
- declare const _default: React.NamedExoticComponent<ExternalMetricListProps>;
45
- export default _default;
1
+ export * from './MetricList';
2
+ export * from './components/MetricCard';
3
+ export * from './components/SingleValueCard';
@@ -3,5 +3,5 @@ declare type Props = {
3
3
  data: any;
4
4
  isError: boolean;
5
5
  };
6
- declare const MetricTable: ({ data, isError }: Props) => JSX.Element;
7
- export default MetricTable;
6
+ export declare const MetricTable: ({ data, isError }: Props) => JSX.Element;
7
+ export {};
@@ -0,0 +1,9 @@
1
+ import React, { PropsWithChildren } from 'react';
2
+ export interface ModalProps extends PropsWithChildren<any> {
3
+ isOpen: boolean;
4
+ onClose: () => void;
5
+ headerTitle?: string;
6
+ customHeader?: JSX.Element;
7
+ icon?: any;
8
+ }
9
+ export declare const Modal: React.FC<ModalProps>;
@@ -1,3 +1,5 @@
1
1
  import React from 'react';
2
- declare const _default: React.NamedExoticComponent<any>;
3
- export default _default;
2
+ export declare type ModalFooterProps = React.PropsWithChildren<any> & {
3
+ className?: string;
4
+ };
5
+ export declare const ModalFooter: React.FC<ModalFooterProps>;
@@ -1,10 +1,2 @@
1
- import React, { PropsWithChildren } from 'react';
2
- export interface ModalProps extends PropsWithChildren<any> {
3
- isOpen: boolean;
4
- onClose: () => void;
5
- headerTitle?: string;
6
- customHeader?: JSX.Element;
7
- icon?: any;
8
- }
9
- declare const _default: React.NamedExoticComponent<ModalProps>;
10
- export default _default;
1
+ export * from './Modal';
2
+ export * from './ModalFooter';
@@ -8,5 +8,4 @@ export declare type PopoverMenuProps = React.PropsWithChildren & {
8
8
  isDisabled?: boolean;
9
9
  position?: 'left' | 'right' | 'top' | 'bottom' | 'left-bottom-end' | 'right-bottom-end' | 'left-top-end' | 'right-top-end' | 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right' | 'left-bottom' | 'left-top' | 'right-bottom' | 'right-top' | 'center';
10
10
  };
11
- declare const _default: React.NamedExoticComponent<PopoverMenuProps>;
12
- export default _default;
11
+ export declare const PopoverMenu: React.FC<PopoverMenuProps>;