@databrainhq/plugin 0.10.12 → 0.10.14
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.
- package/dist/components/Chart/PivotTable.d.ts +3 -0
- package/dist/components/ChartModal/ChartConfig.d.ts +3 -2
- package/dist/components/ChartSettingsPopup/ChartSettingsPopup.d.ts +3 -2
- package/dist/components/ChartSettingsPopup/components/ChartSettings/index.d.ts +3 -1
- package/dist/components/MetricCreation/components/ConstructMetric/ConstructMetric.d.ts +1 -1
- package/dist/components/MetricCreation/components/ConstructMetric/components/MetricForm/index.d.ts +1 -1
- package/dist/components/MetricCreation/components/Header/index.d.ts +1 -1
- package/dist/components/MetricCreation/components/MetricOutput/MetricOutput.d.ts +1 -1
- package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/index.d.ts +3 -2
- package/dist/consts/app.d.ts +1 -0
- package/dist/hooks/useExternalMetric.d.ts +3 -1
- package/dist/hooks/useMetricCard.d.ts +3 -1
- package/dist/index.es.js +21393 -21224
- package/dist/index.umd.js +162 -161
- package/dist/style.css +1 -1
- package/dist/types/app.d.ts +5 -0
- package/dist/types/metricCreate.d.ts +21 -6
- package/dist/utils/generated/graphql.d.ts +6 -2
- package/package.json +1 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ChartSettingsType } from '@/types';
|
|
2
|
+
import { ChartSettingsType, DatasetSettings } from '@/types';
|
|
3
3
|
type Props = {
|
|
4
4
|
data?: Record<string, any>[];
|
|
5
5
|
chartSettings: ChartSettingsType;
|
|
6
6
|
setChartSettings: React.Dispatch<React.SetStateAction<ChartSettingsType>>;
|
|
7
|
+
datasetSettings: DatasetSettings | undefined;
|
|
7
8
|
};
|
|
8
|
-
export declare const ChartConfig: ({ data, chartSettings, setChartSettings, }: Props) => JSX.Element;
|
|
9
|
+
export declare const ChartConfig: ({ data, chartSettings, setChartSettings, datasetSettings, }: Props) => JSX.Element;
|
|
9
10
|
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ChartSettingsType } from '@/types';
|
|
2
|
+
import { ChartSettingsType, DatasetSettings } from '@/types';
|
|
3
3
|
import { PopoverMenuProps } from '@/components/PopoverMenu';
|
|
4
4
|
export type ChartSettingsPopupProps = Partial<Pick<PopoverMenuProps, 'buttonClass' | 'menuClass' | 'menuContainerClass' | 'position' | 'className'>> & {
|
|
5
5
|
data?: Record<string, any>[];
|
|
6
6
|
settings: ChartSettingsType;
|
|
7
7
|
setSettings: React.Dispatch<React.SetStateAction<ChartSettingsType>>;
|
|
8
|
+
datasetSettings: DatasetSettings | undefined;
|
|
8
9
|
};
|
|
9
|
-
export declare const ChartSettingsPopup: ({ data, settings, setSettings, buttonClass, menuClass, menuContainerClass, className, position, }: ChartSettingsPopupProps) => JSX.Element;
|
|
10
|
+
export declare const ChartSettingsPopup: ({ data, settings, setSettings, buttonClass, menuClass, menuContainerClass, className, position, datasetSettings, }: ChartSettingsPopupProps) => JSX.Element;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ChartSettingsType } from '@/types/app';
|
|
3
|
+
import { DatasetSettings } from '@/types';
|
|
3
4
|
type Props = {
|
|
4
5
|
data: any[] | undefined;
|
|
5
6
|
chartSettings: ChartSettingsType;
|
|
6
7
|
setChartSettings: React.Dispatch<React.SetStateAction<ChartSettingsType>>;
|
|
8
|
+
datasetSettings: DatasetSettings | undefined;
|
|
7
9
|
};
|
|
8
|
-
export declare const ChartSettings: ({ data, chartSettings, setChartSettings, }: Props) => JSX.Element;
|
|
10
|
+
export declare const ChartSettings: ({ data, chartSettings, setChartSettings, datasetSettings, }: Props) => JSX.Element;
|
|
9
11
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ConstructMetricProps } from '@/types/metricCreate';
|
|
3
|
-
export declare const ConstructMetric: ({ dateTimeColumnList, columnList, database, companyId, tableName, setData, setError, setLoading, setQuery, clientId, clientColumn, databaseId, }: ConstructMetricProps) => JSX.Element;
|
|
3
|
+
export declare const ConstructMetric: ({ dateTimeColumnList, columnList, database, companyId, tableName, setData, setError, setLoading, setQuery, clientId, clientColumn, databaseId, datasetSettings, setDatasetSettings, }: ConstructMetricProps) => JSX.Element;
|
package/dist/components/MetricCreation/components/ConstructMetric/components/MetricForm/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ConstructMetricProps } from '@/types/metricCreate';
|
|
3
|
-
export declare const MetricForm: ({ dateTimeColumnList, columnList, database, tableName, setData, setError, setLoading, setQuery, clientId, clientColumn, databaseId, }: ConstructMetricProps) => JSX.Element;
|
|
3
|
+
export declare const MetricForm: ({ dateTimeColumnList, columnList, database, tableName, setData, setError, setLoading, setQuery, clientId, clientColumn, databaseId, datasetSettings, setDatasetSettings, }: ConstructMetricProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { HeaderProps } from '@/types/metricCreate';
|
|
3
|
-
export declare const Header: ({ setShowMetricCreateModal, isDisableSaveBtn, Heading,
|
|
3
|
+
export declare const Header: ({ setShowMetricCreateModal, isDisableSaveBtn, Heading, setShowSaveMetricModal, }: HeaderProps) => 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, previewTableDataList, moreTabs, chartColors, chartSettings, setChartSettings, isUpdateMetric, }: MetricOutputProps) => JSX.Element;
|
|
3
|
+
export declare const MetricOutput: ({ data, error, isLoading, previewTableDataList, moreTabs, chartColors, chartSettings, setChartSettings, isUpdateMetric, datasetSettings, }: MetricOutputProps) => JSX.Element;
|
package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ClickActionsConfig, ChartSettingsType } from '@/types';
|
|
2
|
+
import { ClickActionsConfig, ChartSettingsType, DatasetSettings } from '@/types';
|
|
3
3
|
type Props = {
|
|
4
4
|
data?: Record<string, any>[];
|
|
5
5
|
isLoading: boolean;
|
|
@@ -10,6 +10,7 @@ type Props = {
|
|
|
10
10
|
setChartSettings: React.Dispatch<React.SetStateAction<ChartSettingsType>>;
|
|
11
11
|
handleChartRightClick?: (params: any) => void;
|
|
12
12
|
chartClickConfig?: ClickActionsConfig['chart'];
|
|
13
|
+
datasetSettings: DatasetSettings | undefined;
|
|
13
14
|
};
|
|
14
|
-
export declare const ChartTab: ({ data, isLoading, headerChild, chartSettings, setChartSettings, chartColors, handleChartRightClick, chartClickConfig, chartPopupChild, }: Props) => JSX.Element;
|
|
15
|
+
export declare const ChartTab: ({ data, isLoading, headerChild, chartSettings, setChartSettings, chartColors, handleChartRightClick, chartClickConfig, chartPopupChild, datasetSettings, }: Props) => JSX.Element;
|
|
15
16
|
export {};
|
package/dist/consts/app.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FieldValues } from 'react-hook-form';
|
|
2
2
|
import { ExternalMetrics } from '@/utils/generated/graphql';
|
|
3
3
|
import { DashboardType, GroupBy, RlsFilterObjectType, SelectedColumns, ChartSettingsType } from '@/types/app';
|
|
4
|
+
import { DatasetSettings } from '@/types';
|
|
4
5
|
type Params = {
|
|
5
6
|
onSuccess: () => void;
|
|
6
7
|
companyIntegrationId: string | undefined;
|
|
@@ -23,8 +24,9 @@ type Params = {
|
|
|
23
24
|
selectedGroupBy: string[];
|
|
24
25
|
groupBy: GroupBy | undefined;
|
|
25
26
|
metric?: ExternalMetrics;
|
|
27
|
+
datasetMetricSettings?: DatasetSettings;
|
|
26
28
|
};
|
|
27
|
-
export declare const useExternalMetric: ({ onSuccess, companyIntegrationId, selectedColumns, query, metricQuery, integrationName, outputColumns, chartSettings, clientId, companyId, isLiveMode, timeGrain, dashboardIds, isEnableGroupBy, groupBy, selectedGroupBy, userProvidedDashboardId, metric, }: Params) => {
|
|
29
|
+
export declare const useExternalMetric: ({ onSuccess, companyIntegrationId, selectedColumns, query, metricQuery, integrationName, outputColumns, chartSettings, clientId, companyId, isLiveMode, timeGrain, dashboardIds, isEnableGroupBy, groupBy, selectedGroupBy, userProvidedDashboardId, metric, datasetMetricSettings, }: Params) => {
|
|
28
30
|
createExternalMetric: (data: FieldValues) => void;
|
|
29
31
|
updateExternalMetric: (data: FieldValues) => void;
|
|
30
32
|
error: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ChartSettingsType, FloatingDropDownOption, RlsCondition } from '@/types';
|
|
2
|
+
import { ChartSettingsType, FloatingDropDownOption, RlsCondition, DatasetSettings } from '@/types';
|
|
3
3
|
import { ExternalMetrics } from '@/utils/generated/graphql';
|
|
4
4
|
import { MetricCardProps } from '@/components';
|
|
5
5
|
type UseMetricCardProps = {
|
|
@@ -13,6 +13,8 @@ type UseMetricCardProps = {
|
|
|
13
13
|
param: any;
|
|
14
14
|
filterValues: Record<string, any>;
|
|
15
15
|
};
|
|
16
|
+
datasetSettings?: DatasetSettings;
|
|
17
|
+
setDatasetSettings?: React.Dispatch<React.SetStateAction<DatasetSettings>>;
|
|
16
18
|
};
|
|
17
19
|
export declare const useMetricCard: ({ metric, globalFilters, rlsFilters, clientId, chartSettings, setChartSettings, tenancyLevel, }: UseMetricCardProps) => {
|
|
18
20
|
onDrillDown: (params: any) => void;
|