@databrainhq/plugin 0.14.50 → 0.14.51
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/MetricCreation/components/MetricOutput/MetricOutput.d.ts +1 -1
- package/dist/helpers/getModifiedQuery.d.ts +1 -0
- package/dist/helpers/timeseries.d.ts +3 -1
- package/dist/hooks/useDatasetMetric.d.ts +2 -1
- package/dist/hooks/useExternalMetric.d.ts +1 -0
- package/dist/hooks/useMetricConfig.d.ts +1 -0
- package/dist/types/metricCreate.d.ts +1 -0
- package/dist/webcomponents.es.js +31300 -31194
- package/dist/webcomponents.umd.js +176 -176
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { MetricOutputProps } from '@/types/metricCreate';
|
|
3
|
-
export declare const MetricOutput: ({ data, error, isLoading, previewTableDataList, moreTabs, chartColors, chartSettings, setChartSettings, isUpdateMetric, isDisableSqlBtn, setShowSqlModal, isEnablePivotTable, groupbyList, hasNumberKeys, isEnableGauge, outputHeaderProps, metrics, dimensions, onGenerateChart, setMetrics, setColumn, isEnableSingleDimension, isEnableSingleMetrics, functionOptions, configuration, }: MetricOutputProps) => React.JSX.Element;
|
|
3
|
+
export declare const MetricOutput: ({ data, error, isLoading, previewTableDataList, moreTabs, chartColors, chartSettings, setChartSettings, isUpdateMetric, isDisableSqlBtn, setShowSqlModal, isEnablePivotTable, groupbyList, hasNumberKeys, isEnableGauge, outputHeaderProps, metrics, dimensions, onGenerateChart, setMetrics, setColumn, isEnableSingleDimension, isEnableSingleMetrics, functionOptions, configuration, dbName, }: MetricOutputProps) => React.JSX.Element;
|
|
@@ -53,4 +53,5 @@ export declare const getModifiedQuery: ({ rlsConditions, dbName, query, }: {
|
|
|
53
53
|
export declare const getSqlStatement: ({ query, clientId, rlsConditions, globalFilters, dbName, tenancyLevel, values, isAllClient, }: GetSqlStatement) => string;
|
|
54
54
|
export declare const isAppliedFilter: (filter: RlsCondition) => number | boolean | Date | undefined;
|
|
55
55
|
export declare const onChangeGlobalFilter: ({ column, setAppliedFilters, value, operator, type, }: OnChangeGlobalFilterParams) => void;
|
|
56
|
+
export declare const getColumnNameKeyString: (columnName: string, dbName: string) => string;
|
|
56
57
|
export {};
|
|
@@ -4,7 +4,7 @@ interface TimeSeriesData {
|
|
|
4
4
|
data: Record<string, any>[];
|
|
5
5
|
values?: string[];
|
|
6
6
|
}
|
|
7
|
-
export declare const getTimeSeriesData: ({ dataArray, timeStampKey, type, valuekeys, groupBy, labelSettings, customSettings, backGroundColor, fillXAxis, isCumulativeBar, }: {
|
|
7
|
+
export declare const getTimeSeriesData: ({ dataArray, timeStampKey, type, valuekeys, groupBy, labelSettings, customSettings, backGroundColor, fillXAxis, isCumulativeBar, customData, yAxisList, }: {
|
|
8
8
|
dataArray: Record<string, any>[];
|
|
9
9
|
timeStampKey: string;
|
|
10
10
|
valuekeys: string[];
|
|
@@ -15,6 +15,8 @@ export declare const getTimeSeriesData: ({ dataArray, timeStampKey, type, valuek
|
|
|
15
15
|
backGroundColor: BackgroundSettings;
|
|
16
16
|
fillXAxis: boolean;
|
|
17
17
|
isCumulativeBar: boolean;
|
|
18
|
+
customData: any;
|
|
19
|
+
yAxisList: string[];
|
|
18
20
|
}) => ({
|
|
19
21
|
stack?: string | undefined;
|
|
20
22
|
barWidth?: string | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import ReactAce from 'react-ace/lib/ace';
|
|
3
|
-
import { CreateNewFilter, CreateNewSort, DatasetConfig, DatasetMetricCreationConfiguration, FloatingDropDownOption, TableType } from '@/types';
|
|
3
|
+
import { CreateNewFilter, CreateNewSort, DatasetConfig, DatasetMetricCreationConfiguration, FloatingDropDownOption, SelectedColumn, TableType } from '@/types';
|
|
4
4
|
declare const useDatasetMetric: ({ ...config }: DatasetConfig) => {
|
|
5
5
|
configuration: DatasetMetricCreationConfiguration;
|
|
6
6
|
setConfiguration: import("react").Dispatch<import("react").SetStateAction<DatasetMetricCreationConfiguration>>;
|
|
@@ -40,5 +40,6 @@ declare const useDatasetMetric: ({ ...config }: DatasetConfig) => {
|
|
|
40
40
|
value: string;
|
|
41
41
|
label: string;
|
|
42
42
|
}[];
|
|
43
|
+
getChartFields: (colList: SelectedColumn[]) => string[];
|
|
43
44
|
};
|
|
44
45
|
export default useDatasetMetric;
|
|
@@ -54,5 +54,6 @@ declare const useMetricConfig: ({ ...config }: ConfigType) => {
|
|
|
54
54
|
isEnableSingleMetrics: boolean;
|
|
55
55
|
enabledCharts: string[];
|
|
56
56
|
setResetPallete: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
57
|
+
dbName: string;
|
|
57
58
|
};
|
|
58
59
|
export default useMetricConfig;
|
|
@@ -473,6 +473,7 @@ export type DatasetConfig = {
|
|
|
473
473
|
setGroupByList: React.Dispatch<React.SetStateAction<string[]>>;
|
|
474
474
|
chart: string;
|
|
475
475
|
setChartSettings: React.Dispatch<React.SetStateAction<ChartSettingsType>>;
|
|
476
|
+
dbName?: string;
|
|
476
477
|
};
|
|
477
478
|
export type OnChangeFilterValueType = ((name: string, value: string, customValue?: Record<string, Date>, stringValues?: FloatingDropDownOption[]) => void) | undefined;
|
|
478
479
|
export type MetricFilterDemoThemeType = {
|