@databrainhq/plugin 0.6.10 → 0.7.0

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 (68) hide show
  1. package/dist/components/ChartModal/ChartConfig.d.ts +2 -2
  2. package/dist/components/ChartModal/ChartModalOptions.d.ts +2 -2
  3. package/dist/components/ChartModal/SelectField.d.ts +1 -2
  4. package/dist/components/ChartModal/index.d.ts +3 -0
  5. package/dist/components/Charts/LineChart.d.ts +1 -1
  6. package/dist/components/ExternalMetricForm/index.d.ts +1 -1
  7. package/dist/components/FilterDropDown/index.d.ts +2 -3
  8. package/dist/components/FloatingDropDown/index.d.ts +1 -2
  9. package/dist/components/FullScreenChart/index.d.ts +2 -2
  10. package/dist/components/GlobalFilters/index.d.ts +3 -3
  11. package/dist/components/MetricChart/CsvDownloadButton.d.ts +2 -2
  12. package/dist/components/MetricChart/MetricChart.d.ts +34 -0
  13. package/dist/components/MetricChart/index.d.ts +2 -35
  14. package/dist/components/MetricCreation/MetricCreation.d.ts +3 -0
  15. package/dist/components/MetricCreation/components/ConstructMetric/ConstructMetric.d.ts +3 -0
  16. package/dist/components/MetricCreation/components/ConstructMetric/components/MetricForm/index.d.ts +2 -3
  17. package/dist/components/MetricCreation/components/ConstructMetric/index.d.ts +2 -4
  18. package/dist/components/MetricCreation/components/Dataset/index.d.ts +2 -3
  19. package/dist/components/MetricCreation/components/Header/index.d.ts +1 -2
  20. package/dist/components/MetricCreation/components/MetricOutput/MetricOutput.d.ts +3 -0
  21. package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/components/ChartConfigure/index.d.ts +3 -3
  22. package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/components/ChartSettings/index.d.ts +3 -3
  23. package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/index.d.ts +3 -3
  24. package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/components/InputTables/index.d.ts +1 -2
  25. package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/index.d.ts +2 -2
  26. package/dist/components/MetricCreation/components/MetricOutput/index.d.ts +3 -4
  27. package/dist/components/MetricCreation/index.d.ts +5 -4
  28. package/dist/components/{RlsFilters/index.d.ts → MetricFilters/MetricFilters.d.ts} +3 -3
  29. package/dist/components/{RlsFilters → MetricFilters}/MultipleTimeGrain.d.ts +2 -2
  30. package/dist/components/MetricFilters/index.d.ts +2 -0
  31. package/dist/components/MetricList/MetricList.d.ts +45 -0
  32. package/dist/components/MetricList/components/MetricCard.d.ts +2 -3
  33. package/dist/components/MetricList/components/SingleValueCard.d.ts +1 -2
  34. package/dist/components/MetricList/index.d.ts +3 -45
  35. package/dist/components/MetricTable/index.d.ts +2 -2
  36. package/dist/components/Modal/Modal.d.ts +9 -0
  37. package/dist/components/Modal/ModalFooter.d.ts +4 -2
  38. package/dist/components/Modal/index.d.ts +2 -10
  39. package/dist/components/PopoverMenu/index.d.ts +1 -2
  40. package/dist/components/Select/index.d.ts +2 -2
  41. package/dist/consts/app.d.ts +39 -0
  42. package/dist/consts/index.d.ts +2 -39
  43. package/dist/containers/Dashboard/{index.d.ts → EmbededDashboard.d.ts} +2 -2
  44. package/dist/containers/index.d.ts +1 -1
  45. package/dist/helpers/getModifiedQuery.d.ts +6 -0
  46. package/dist/helpers/getTimeFilterValue.d.ts +2 -2
  47. package/dist/helpers/groupArray.d.ts +1 -0
  48. package/dist/helpers/index.d.ts +4 -0
  49. package/dist/hooks/index.d.ts +5 -0
  50. package/dist/hooks/useEmbeddedDashboard.d.ts +1 -2
  51. package/dist/hooks/useExternalMetric.d.ts +3 -3
  52. package/dist/hooks/useGenerateDatasetMetrics.d.ts +1 -2
  53. package/dist/hooks/useGenerateEmbeddedMetric.d.ts +15 -0
  54. package/dist/hooks/useOutsideAlerter.d.ts +2 -2
  55. package/dist/index.d.ts +5 -0
  56. package/dist/index.es.js +7152 -8487
  57. package/dist/index.umd.js +121 -106
  58. package/dist/style.css +1 -1
  59. package/dist/types/app.d.ts +124 -0
  60. package/dist/types/index.d.ts +2 -124
  61. package/dist/types/metricCreate.d.ts +1 -8
  62. package/dist/utils/arrayToCsvString.d.ts +1 -2
  63. package/dist/utils/colors.d.ts +1 -2
  64. package/dist/utils/getChartAttributes.d.ts +2 -2
  65. package/dist/utils/getFormattedDataType.d.ts +1 -2
  66. package/dist/utils/index.d.ts +5 -0
  67. package/package.json +1 -1
  68. package/dist/components/ErrorFallback/index.d.ts +0 -3
@@ -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,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;
@@ -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;
@@ -16,10 +16,9 @@ export declare type FloatingDropDownProps = {
16
16
  children?: React.ReactNode;
17
17
  Icon?: any;
18
18
  };
19
+ export declare const FloatingDropDown: ({ label, labelVariant, selectedOption, onChange, className, options, isDisabled, children, Icon, isSearchEnabled, }: FloatingDropDownProps) => JSX.Element;
19
20
  export declare type MultiFloatingDropDownProps = Omit<FloatingDropDownProps, 'selectedOption' | 'onChange'> & {
20
21
  selectedOptions: FloatingDropDownOption[];
21
22
  onChange: (options: FloatingDropDownOption[]) => void;
22
23
  };
23
24
  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>;
9
+ declare const _default: React.NamedExoticComponent<GlobalFiltersProps>;
10
10
  export default _default;
@@ -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>;
@@ -21,7 +21,7 @@ declare type HookSelectInput = Omit<SelectInput, 'value'> & {
21
21
  name: string;
22
22
  };
23
23
  export declare const Select: ({ label, options, onChange, value, defaultValue, children, placeHolder, className, isSearchEnabled, }: SelectInput) => JSX.Element;
24
- declare const HookSelect: ({ control, name, options, label, defaultValue, }: HookSelectInput) => JSX.Element;
24
+ export declare const HookSelect: ({ control, name, options, label, defaultValue, }: HookSelectInput) => JSX.Element;
25
25
  export declare const SelectWithSubValue: ({ label, options, onChange, value, defaultValue, }: any) => JSX.Element;
26
26
  export declare const DropDown: ({ control, name, options, label, defaultValue, }: HookSelectInput) => JSX.Element;
27
27
  declare type MultiSelectProps = {
@@ -42,4 +42,4 @@ declare type HookMultiSelectProps = MultiSelectProps & {
42
42
  control: Control<FieldValues>;
43
43
  };
44
44
  export declare const HookMultiSelect: React.FC<HookMultiSelectProps>;
45
- export default HookSelect;
45
+ export {};
@@ -0,0 +1,39 @@
1
+ export declare const SOMETHING_WENT_WRONG = "something went wrong, please try again";
2
+ export declare const CHART_TYPES: {
3
+ line: string;
4
+ stepped: string;
5
+ bar: string;
6
+ stack: string;
7
+ histogram: string;
8
+ bubble: string;
9
+ scatter: string;
10
+ row: string;
11
+ area: string;
12
+ combo: string;
13
+ pie: string;
14
+ doughnut: string;
15
+ waterfall: string;
16
+ funnel: string;
17
+ gauge: string;
18
+ sankey: string;
19
+ singleValue: string;
20
+ boxplot: string;
21
+ table: string;
22
+ };
23
+ export declare const STATUS_TAB = "STATUS_TAB";
24
+ export declare const STREAM_TAB = "STREAM_TAB";
25
+ export declare const CLIENT_NAME_VAR = "client_id_variable";
26
+ export declare const RLS_CONDITIONS: Record<string, string>;
27
+ export declare const CHART_TAB = "CHART_TAB";
28
+ export declare const TABLE_TAB = "TABLE_TAB";
29
+ export declare const QUERY_TAB = "QUERY_TAB";
30
+ export declare const INPUT_TABLE = "INPUT_TABLE";
31
+ export declare const OUTPUT_TABLE = "OUTPUT_TABLE";
32
+ export declare const DOUGHNUT = "doughnut";
33
+ export declare const PIE = "pie";
34
+ export declare const SANKEY = "sankey";
35
+ export declare const BOXPLOT = "boxplot";
36
+ export declare const TABLE = "table";
37
+ export declare const GENERAL = "general";
38
+ export declare const CONFIG = "configuration";
39
+ export declare const DESTINATIONS: Record<string, string>;
@@ -1,39 +1,2 @@
1
- export declare const SOMETHING_WENT_WRONG = "something went wrong, please try again";
2
- export declare const CHART_TYPES: {
3
- line: string;
4
- stepped: string;
5
- bar: string;
6
- stack: string;
7
- histogram: string;
8
- bubble: string;
9
- scatter: string;
10
- row: string;
11
- area: string;
12
- combo: string;
13
- pie: string;
14
- doughnut: string;
15
- waterfall: string;
16
- funnel: string;
17
- gauge: string;
18
- sankey: string;
19
- singleValue: string;
20
- boxplot: string;
21
- table: string;
22
- };
23
- export declare const STATUS_TAB = "STATUS_TAB";
24
- export declare const STREAM_TAB = "STREAM_TAB";
25
- export declare const CLIENT_NAME_VAR = "client_id_variable";
26
- export declare const RLS_CONDITIONS: Record<string, string>;
27
- export declare const CHART_TAB = "CHART_TAB";
28
- export declare const TABLE_TAB = "TABLE_TAB";
29
- export declare const QUERY_TAB = "QUERY_TAB";
30
- export declare const INPUT_TABLE = "INPUT_TABLE";
31
- export declare const OUTPUT_TABLE = "OUTPUT_TABLE";
32
- export declare const DOUGHNUT = "doughnut";
33
- export declare const PIE = "pie";
34
- export declare const SANKEY = "sankey";
35
- export declare const BOXPLOT = "boxplot";
36
- export declare const TABLE = "table";
37
- export declare const GENERAL = "general";
38
- export declare const CONFIG = "configuration";
39
- export declare const DESTINATIONS: Record<string, string>;
1
+ export * from './app';
2
+ export * from './metricOptions';