@databrainhq/plugin 0.7.17 → 0.7.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/Charts/Table/TableChart.d.ts +1 -1
- package/dist/components/MetricChart/MetricChart.d.ts +3 -2
- package/dist/components/MetricCreation/components/MetricOutput/MetricOutput.d.ts +1 -1
- package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/components/ChartConfigure/index.d.ts +4 -2
- package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/components/ChartSettings/index.d.ts +4 -2
- package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/index.d.ts +4 -2
- package/dist/hooks/useExternalMetric.d.ts +3 -2
- package/dist/index.es.js +865 -503
- package/dist/index.umd.js +49 -49
- package/dist/style.css +1 -1
- package/dist/types/app.d.ts +22 -2
- package/dist/types/metricCreate.d.ts +3 -1
- package/package.json +1 -1
package/dist/types/app.d.ts
CHANGED
|
@@ -23,6 +23,18 @@ export declare type CustomSettings = {
|
|
|
23
23
|
dateFormatter: string;
|
|
24
24
|
numberFormatter: string;
|
|
25
25
|
};
|
|
26
|
+
export declare type TableSettings = {
|
|
27
|
+
contentAlignment: string;
|
|
28
|
+
lineGap: string;
|
|
29
|
+
hideVerticalDivider: boolean;
|
|
30
|
+
enableStripedRows: boolean;
|
|
31
|
+
showRowHover: boolean;
|
|
32
|
+
showTableTitle: boolean;
|
|
33
|
+
showTableDesc: boolean;
|
|
34
|
+
enableTableSearch: boolean;
|
|
35
|
+
enableFilter: boolean;
|
|
36
|
+
enableSorting: boolean;
|
|
37
|
+
};
|
|
26
38
|
export declare type BackgroundSettings = {
|
|
27
39
|
show: boolean;
|
|
28
40
|
};
|
|
@@ -108,14 +120,22 @@ export declare type SqlError = {
|
|
|
108
120
|
explanation: string;
|
|
109
121
|
solution: string;
|
|
110
122
|
};
|
|
123
|
+
export declare type DateOptionType = {
|
|
124
|
+
id: string;
|
|
125
|
+
range: string;
|
|
126
|
+
time: string;
|
|
127
|
+
format: string;
|
|
128
|
+
name: string;
|
|
129
|
+
count: number;
|
|
130
|
+
};
|
|
111
131
|
export declare type RlsCondition = {
|
|
112
132
|
name: string;
|
|
113
133
|
columnName: string;
|
|
114
134
|
tableName: string;
|
|
115
135
|
datatype: string;
|
|
116
136
|
isAddOnMetrics: boolean;
|
|
117
|
-
options: string[] | number[];
|
|
118
|
-
value?: string;
|
|
137
|
+
options: string[] | number[] | DateOptionType[];
|
|
138
|
+
value?: string | DateOptionType;
|
|
119
139
|
dimensionColumn?: string;
|
|
120
140
|
measureColumn?: string;
|
|
121
141
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { AxisSettings, BackgroundSettings, CustomSettings, LabelSettings, LegendSettings, RlsCondition, FloatingDropDownOption } from './app';
|
|
2
|
+
import { AxisSettings, BackgroundSettings, CustomSettings, LabelSettings, LegendSettings, RlsCondition, FloatingDropDownOption, TableSettings } from './app';
|
|
3
3
|
declare type ColumnData = {
|
|
4
4
|
name: string;
|
|
5
5
|
datatype: string;
|
|
@@ -101,6 +101,8 @@ export declare type MetricOutputProps = {
|
|
|
101
101
|
enableQueryTab?: boolean;
|
|
102
102
|
backGroundColor: BackgroundSettings;
|
|
103
103
|
setBackGroundColor: React.Dispatch<React.SetStateAction<BackgroundSettings>>;
|
|
104
|
+
tableSettings: TableSettings;
|
|
105
|
+
setTableSettings: React.Dispatch<React.SetStateAction<TableSettings>>;
|
|
104
106
|
rlsConditions?: RlsCondition[] | undefined;
|
|
105
107
|
onChangeFilterValue?: (name: string, value: string) => void;
|
|
106
108
|
moreTabs?: {
|