@databrainhq/plugin 0.6.5 → 0.6.7
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/Button/index.d.ts +1 -1
- package/dist/components/ChartModal/ChartConfig.d.ts +1 -1
- package/dist/components/ChartModal/ChartModalOptions.d.ts +1 -1
- package/dist/components/ChartModal/SelectField.d.ts +2 -1
- package/dist/components/Charts/AreaChart.d.ts +2 -1
- package/dist/components/Charts/BarChart.d.ts +8 -1
- package/dist/components/Charts/BoxPlot.d.ts +2 -1
- package/dist/components/Charts/BubbleChart.d.ts +2 -1
- package/dist/components/Charts/ComboChart.d.ts +2 -1
- package/dist/components/Charts/DoughnutChart.d.ts +2 -1
- package/dist/components/Charts/FunnelChart.d.ts +2 -1
- package/dist/components/Charts/GaugeChart.d.ts +2 -1
- package/dist/components/Charts/Histogram.d.ts +2 -1
- package/dist/components/Charts/LineChart.d.ts +4 -2
- package/dist/components/Charts/PieChart.d.ts +2 -1
- package/dist/components/Charts/RowChart.d.ts +2 -1
- package/dist/components/Charts/SankeyChart.d.ts +2 -1
- package/dist/components/Charts/ScatterChart.d.ts +2 -1
- package/dist/components/Charts/SingleValueChart/index.d.ts +3 -0
- package/dist/components/Charts/StackedBarChart.d.ts +2 -1
- package/dist/components/Charts/SteppedAreaChart.d.ts +2 -1
- package/dist/components/Charts/Table/TableChart.d.ts +3 -0
- package/dist/components/Charts/WaterfallChart.d.ts +2 -1
- package/dist/components/DataType/index.d.ts +1 -1
- package/dist/components/Error/index.d.ts +2 -1
- package/dist/components/ErrorFallback/index.d.ts +1 -1
- package/dist/components/FilterDropDown/index.d.ts +1 -1
- package/dist/components/FloatingDropDown/index.d.ts +1 -1
- package/dist/components/FullScreenChart/index.d.ts +2 -1
- package/dist/components/InfoTooltip/index.d.ts +5 -0
- package/dist/components/InputField/index.d.ts +1 -1
- package/dist/components/MetricChart/CsvDownloadButton.d.ts +2 -0
- package/dist/components/MetricChart/index.d.ts +5 -2
- package/dist/components/MetricCreation/components/ConstructMetric/components/MetricForm/index.d.ts +1 -1
- package/dist/components/MetricCreation/components/ConstructMetric/index.d.ts +1 -1
- package/dist/components/MetricCreation/components/Dataset/index.d.ts +1 -1
- package/dist/components/MetricCreation/components/Header/index.d.ts +2 -1
- package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/components/ChartConfigure/index.d.ts +6 -3
- package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/components/ChartSettings/index.d.ts +14 -1
- package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/index.d.ts +6 -2
- package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/components/InputTables/index.d.ts +2 -1
- package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/index.d.ts +2 -1
- package/dist/components/MetricCreation/components/MetricOutput/index.d.ts +2 -1
- package/dist/components/MetricCreation/index.d.ts +2 -1
- package/dist/components/MetricTable/index.d.ts +2 -1
- package/dist/components/PopoverMenu/index.d.ts +1 -1
- package/dist/components/RlsFilters/MultipleTimeGrain.d.ts +2 -1
- package/dist/components/RlsFilters/index.d.ts +5 -2
- package/dist/components/SearchTab/index.d.ts +2 -1
- package/dist/components/Select/index.d.ts +4 -4
- package/dist/components/Tab/index.d.ts +3 -1
- package/dist/components/Table/index.d.ts +2 -1
- package/dist/components/Text/index.d.ts +1 -1
- package/dist/components/TextAreaField/index.d.ts +2 -1
- package/dist/components/TimeGrainField/index.d.ts +1 -1
- package/dist/consts/index.d.ts +2 -0
- package/dist/hooks/useExternalMetric.d.ts +4 -2
- package/dist/index.es.js +6239 -18149
- package/dist/index.umd.js +84 -93
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +31 -0
- package/dist/types/metricCreate.d.ts +8 -1
- package/package.json +1 -5
- package/dist/components/Charts/SingleValueChart.d.ts +0 -2
- package/dist/components/Charts/TableChart.d.ts +0 -2
- /package/dist/components/{MetricFilters → GlobalFilters}/index.d.ts +0 -0
package/dist/types/index.d.ts
CHANGED
|
@@ -10,6 +10,15 @@ export declare type LegendSettings = {
|
|
|
10
10
|
right: number;
|
|
11
11
|
position: string;
|
|
12
12
|
};
|
|
13
|
+
export declare type CustomSettings = {
|
|
14
|
+
hideSplitLines: string;
|
|
15
|
+
hideAxisLines: string;
|
|
16
|
+
barWidth: number;
|
|
17
|
+
barRadius: number;
|
|
18
|
+
};
|
|
19
|
+
export declare type BackgroundSettings = {
|
|
20
|
+
show: boolean;
|
|
21
|
+
};
|
|
13
22
|
export declare type LabelSettings = {
|
|
14
23
|
axis: string;
|
|
15
24
|
show: boolean;
|
|
@@ -30,6 +39,7 @@ export declare type Schema = {
|
|
|
30
39
|
tableName: string;
|
|
31
40
|
columns: string[];
|
|
32
41
|
columnsWithDataType: {
|
|
42
|
+
as: any;
|
|
33
43
|
dataType: string;
|
|
34
44
|
name: string;
|
|
35
45
|
}[];
|
|
@@ -55,6 +65,7 @@ export declare type SelectedTable = {
|
|
|
55
65
|
columns: {
|
|
56
66
|
name: string;
|
|
57
67
|
datatype: string;
|
|
68
|
+
as: string;
|
|
58
69
|
}[] | [];
|
|
59
70
|
}[] | undefined;
|
|
60
71
|
export declare type GroupBy = {
|
|
@@ -81,6 +92,15 @@ export declare type FilterType = {
|
|
|
81
92
|
tableName: string;
|
|
82
93
|
columns: Schema['columnsWithDataType'];
|
|
83
94
|
};
|
|
95
|
+
export declare type JoinField = {
|
|
96
|
+
a: string;
|
|
97
|
+
b: string;
|
|
98
|
+
};
|
|
99
|
+
export declare type SqlError = {
|
|
100
|
+
errorMessage: string;
|
|
101
|
+
explanation: string;
|
|
102
|
+
solution: string;
|
|
103
|
+
};
|
|
84
104
|
export declare type RlsCondition = {
|
|
85
105
|
name: string;
|
|
86
106
|
columnName: string;
|
|
@@ -90,3 +110,14 @@ export declare type RlsCondition = {
|
|
|
90
110
|
options: string[] | number[];
|
|
91
111
|
value?: string;
|
|
92
112
|
};
|
|
113
|
+
export declare type MetricData = {
|
|
114
|
+
id: string;
|
|
115
|
+
name: string;
|
|
116
|
+
dashboards: {
|
|
117
|
+
name: string;
|
|
118
|
+
id: string;
|
|
119
|
+
}[];
|
|
120
|
+
description: string;
|
|
121
|
+
createdBy: string;
|
|
122
|
+
dateCreated: string;
|
|
123
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { AxisSettings,
|
|
2
|
+
import { AxisSettings, BackgroundSettings, CustomSettings, LabelSettings, LegendSettings, RlsCondition } from '.';
|
|
3
|
+
import { FloatingDropDownOption } from '@/components/FloatingDropDown';
|
|
3
4
|
declare type ColumnData = {
|
|
4
5
|
name: string;
|
|
5
6
|
datatype: string;
|
|
@@ -92,9 +93,15 @@ export declare type MetricOutputProps = {
|
|
|
92
93
|
setLabelSettings: React.Dispatch<React.SetStateAction<LabelSettings>>;
|
|
93
94
|
axisSettings: AxisSettings;
|
|
94
95
|
setAxisSettings: React.Dispatch<React.SetStateAction<AxisSettings>>;
|
|
96
|
+
customSettings: CustomSettings;
|
|
97
|
+
setCustomSettings: React.Dispatch<React.SetStateAction<CustomSettings>>;
|
|
95
98
|
updateGroup?: (value: string) => void;
|
|
96
99
|
isEnableGroupBy?: boolean;
|
|
97
100
|
enableQueryTab?: boolean;
|
|
101
|
+
backGroundColor: BackgroundSettings;
|
|
102
|
+
setBackGroundColor: React.Dispatch<React.SetStateAction<BackgroundSettings>>;
|
|
103
|
+
rlsConditions?: RlsCondition[] | undefined;
|
|
104
|
+
onChangeFilterValue?: (name: string, value: string) => void;
|
|
98
105
|
};
|
|
99
106
|
export declare type CompanyIntegration = {
|
|
100
107
|
id: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@databrainhq/plugin",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.7",
|
|
4
4
|
"description": "Databrain app dashboard ui plugin.",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -41,7 +41,6 @@
|
|
|
41
41
|
"@graphql-codegen/typescript-react-query": "^3.6.2",
|
|
42
42
|
"@iconify/json": "^2.2.6",
|
|
43
43
|
"@svgr/core": "^6.5.1",
|
|
44
|
-
"@types/chart.js": "^2.9.37",
|
|
45
44
|
"@types/node": "^12.12.38",
|
|
46
45
|
"@types/react": "^18.0.26",
|
|
47
46
|
"@types/react-dom": "^18.0.10",
|
|
@@ -82,12 +81,9 @@
|
|
|
82
81
|
],
|
|
83
82
|
"dependencies": {
|
|
84
83
|
"@headlessui/react": "^1.7.7",
|
|
85
|
-
"chart.js": "^3.9.1",
|
|
86
|
-
"chartjs-plugin-zoom": "^1.2.1",
|
|
87
84
|
"classnames": "^2.3.2",
|
|
88
85
|
"echarts": "^5.4.1",
|
|
89
86
|
"echarts-for-react": "^3.0.2",
|
|
90
|
-
"react-chartjs-2": "^4.3.1",
|
|
91
87
|
"react-error-boundary": "^3.1.4",
|
|
92
88
|
"react-grid-layout": "^1.3.4",
|
|
93
89
|
"react-hook-form": "^7.42.1",
|
|
File without changes
|