@databrainhq/plugin 0.11.17 → 0.11.19
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/ChartModal/ChartModalOptions.d.ts +3 -1
- package/dist/components/ChartSettingsPopup/ChartSettingsPopup.d.ts +3 -1
- package/dist/components/ChartSettingsPopup/components/ChartSettings/index.d.ts +3 -1
- package/dist/components/MetricCreation/components/MetricOutput/MetricOutput.d.ts +1 -1
- package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/index.d.ts +3 -1
- package/dist/helpers/hasUniqueKeyValues.d.ts +1 -0
- package/dist/hooks/useMetricCard.d.ts +2 -0
- package/dist/types/app.d.ts +5 -0
- package/dist/types/metricCreate.d.ts +2 -0
- package/dist/webcomponents.es.d.ts +1 -0
- package/dist/webcomponents.es.js +18137 -17873
- package/dist/webcomponents.umd.js +219 -219
- package/package.json +5 -12
- package/dist/index.es.js +0 -97964
- package/dist/index.umd.js +0 -1885
- package/dist/style.css +0 -1
|
@@ -6,6 +6,8 @@ type Props = {
|
|
|
6
6
|
chartType: ChartType;
|
|
7
7
|
isEnableTimeSeries: boolean;
|
|
8
8
|
isEnablePivotTable: boolean;
|
|
9
|
+
hasNumberKeys: boolean;
|
|
10
|
+
isEnableGauge: boolean;
|
|
9
11
|
};
|
|
10
|
-
export declare const ChartModalOptions: ({ chartType, onChartChange, isEnableTimeSeries, isEnablePivotTable, }: Props) => React.JSX.Element;
|
|
12
|
+
export declare const ChartModalOptions: ({ chartType, onChartChange, isEnableTimeSeries, isEnablePivotTable, hasNumberKeys, isEnableGauge, }: Props) => React.JSX.Element;
|
|
11
13
|
export {};
|
|
@@ -7,5 +7,7 @@ export type ChartSettingsPopupProps = Partial<Pick<PopoverMenuProps, 'buttonClas
|
|
|
7
7
|
setSettings: React.Dispatch<React.SetStateAction<ChartSettingsType>>;
|
|
8
8
|
isEnablePivotTable: boolean;
|
|
9
9
|
groupbyList: any[];
|
|
10
|
+
hasNumberKeys: boolean;
|
|
11
|
+
isEnableGauge: boolean;
|
|
10
12
|
};
|
|
11
|
-
export declare const ChartSettingsPopup: ({ data, settings, setSettings, buttonClass, menuClass, menuContainerClass, className, position, isEnablePivotTable, groupbyList, }: ChartSettingsPopupProps) => React.JSX.Element;
|
|
13
|
+
export declare const ChartSettingsPopup: ({ data, settings, setSettings, buttonClass, menuClass, menuContainerClass, className, position, isEnablePivotTable, groupbyList, hasNumberKeys, isEnableGauge, }: ChartSettingsPopupProps) => React.JSX.Element;
|
|
@@ -6,6 +6,8 @@ type Props = {
|
|
|
6
6
|
setChartSettings: React.Dispatch<React.SetStateAction<ChartSettingsType>>;
|
|
7
7
|
isEnablePivotTable: boolean;
|
|
8
8
|
groupbyList: any[];
|
|
9
|
+
hasNumberKeys: boolean;
|
|
10
|
+
isEnableGauge: boolean;
|
|
9
11
|
};
|
|
10
|
-
export declare const ChartSettings: ({ data, chartSettings, setChartSettings, isEnablePivotTable, groupbyList, }: Props) => React.JSX.Element;
|
|
12
|
+
export declare const ChartSettings: ({ data, chartSettings, setChartSettings, isEnablePivotTable, groupbyList, hasNumberKeys, isEnableGauge, }: Props) => React.JSX.Element;
|
|
11
13
|
export {};
|
|
@@ -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, }: MetricOutputProps) => React.JSX.Element;
|
|
3
|
+
export declare const MetricOutput: ({ data, error, isLoading, previewTableDataList, moreTabs, chartColors, chartSettings, setChartSettings, isUpdateMetric, isDisableSqlBtn, setShowSqlModal, isEnablePivotTable, groupbyList, hasNumberKeys, isEnableGauge, }: MetricOutputProps) => React.JSX.Element;
|
package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/index.d.ts
CHANGED
|
@@ -12,6 +12,8 @@ type Props = {
|
|
|
12
12
|
chartClickConfig?: ClickActionsConfig['chart'];
|
|
13
13
|
isEnablePivotTable: boolean;
|
|
14
14
|
groupbyList: any[];
|
|
15
|
+
hasNumberKeys: boolean;
|
|
16
|
+
isEnableGauge: boolean;
|
|
15
17
|
};
|
|
16
|
-
export declare const ChartTab: ({ data, isLoading, headerChild, chartSettings, setChartSettings, chartColors, handleChartRightClick, chartClickConfig, chartPopupChild, isEnablePivotTable, groupbyList, }: Props) => React.JSX.Element;
|
|
18
|
+
export declare const ChartTab: ({ data, isLoading, headerChild, chartSettings, setChartSettings, chartColors, handleChartRightClick, chartClickConfig, chartPopupChild, isEnablePivotTable, groupbyList, hasNumberKeys, isEnableGauge, }: Props) => React.JSX.Element;
|
|
17
19
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const hasUniqueKeyValues: (array: Record<string, any>[], key1: string, key2: string) => boolean;
|
|
@@ -52,6 +52,8 @@ export declare const useMetricCard: ({ metric, globalFilters, rlsFilters, client
|
|
|
52
52
|
isExternalChart: boolean | undefined;
|
|
53
53
|
isEnablePivotTable: boolean;
|
|
54
54
|
groupByList: any[];
|
|
55
|
+
hasNumberKeys: boolean;
|
|
56
|
+
isEnableGauge: boolean;
|
|
55
57
|
updateFilter: (filter: RlsCondition) => void;
|
|
56
58
|
};
|
|
57
59
|
export {};
|
package/dist/types/app.d.ts
CHANGED
|
@@ -122,6 +122,10 @@ export type PivotSettingsType = {
|
|
|
122
122
|
rows?: string[];
|
|
123
123
|
columns?: string[];
|
|
124
124
|
};
|
|
125
|
+
export type GaugeSettingsType = {
|
|
126
|
+
metric?: string;
|
|
127
|
+
dimensions?: string[];
|
|
128
|
+
};
|
|
125
129
|
export type ChartSettingsType = {
|
|
126
130
|
chartType: keyof typeof CHART_TYPES;
|
|
127
131
|
margins?: MarginSettings;
|
|
@@ -136,6 +140,7 @@ export type ChartSettingsType = {
|
|
|
136
140
|
customSettings?: CustomSettings;
|
|
137
141
|
tableSettings?: TableSettings;
|
|
138
142
|
pivotTableSettings?: PivotSettingsType;
|
|
143
|
+
gaugeSettings?: GaugeSettingsType;
|
|
139
144
|
axisSettings?: AxisSettings;
|
|
140
145
|
backGroundColor?: BackgroundSettings;
|
|
141
146
|
timeSeriesSettings?: TimeSeriesSettingsType;
|
|
@@ -74,7 +74,9 @@ export type MetricOutputProps = {
|
|
|
74
74
|
clientName?: string;
|
|
75
75
|
isLoading: boolean;
|
|
76
76
|
isEnablePivotTable: boolean;
|
|
77
|
+
isEnableGauge: boolean;
|
|
77
78
|
groupbyList: any[];
|
|
79
|
+
hasNumberKeys: boolean;
|
|
78
80
|
setQuery?: React.Dispatch<React.SetStateAction<string>>;
|
|
79
81
|
setData?: React.Dispatch<React.SetStateAction<any[] | undefined>>;
|
|
80
82
|
setLoading?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './webcomponents'
|