@devtable/dashboard 5.2.0 → 5.4.0
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/api-caller/index.d.ts +6 -0
- package/dist/dashboard.es.js +2552 -2327
- package/dist/dashboard.umd.js +15 -15
- package/dist/model/sql-snippets/index.d.ts +1 -0
- package/dist/panel/viz/index.d.ts +1 -0
- package/dist/plugins/viz-components/cartesian/panel/reference-areas/index.d.ts +9 -0
- package/dist/plugins/viz-components/cartesian/panel/reference-areas/reference-area.d.ts +14 -0
- package/dist/plugins/viz-components/cartesian/type.d.ts +11 -0
- package/dist/utils/sql.d.ts +3 -1
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Control, UseFormWatch } from 'react-hook-form';
|
|
3
|
+
import { ICartesianChartConf } from '../../type';
|
|
4
|
+
interface IReferenceAreasField {
|
|
5
|
+
control: Control<ICartesianChartConf, $TSFixMe>;
|
|
6
|
+
watch: UseFormWatch<ICartesianChartConf>;
|
|
7
|
+
}
|
|
8
|
+
export declare function ReferenceAreasField({ control, watch }: IReferenceAreasField): JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Control, UseFieldArrayRemove } from 'react-hook-form';
|
|
3
|
+
import { ICartesianChartConf } from '../../type';
|
|
4
|
+
interface IReferenceAreaField {
|
|
5
|
+
control: Control<ICartesianChartConf, $TSFixMe>;
|
|
6
|
+
index: number;
|
|
7
|
+
remove: UseFieldArrayRemove;
|
|
8
|
+
variableOptions: {
|
|
9
|
+
label: string;
|
|
10
|
+
value: string;
|
|
11
|
+
}[];
|
|
12
|
+
}
|
|
13
|
+
export declare function ReferenceAreaField({ control, index, remove, variableOptions }: IReferenceAreaField): JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -55,6 +55,16 @@ export interface ICartesianReferenceLine {
|
|
|
55
55
|
template: string;
|
|
56
56
|
variable_key: string;
|
|
57
57
|
}
|
|
58
|
+
export interface ICartesianReferenceArea {
|
|
59
|
+
name: string;
|
|
60
|
+
color: string;
|
|
61
|
+
type: 'rectangle';
|
|
62
|
+
direction: 'horizontal';
|
|
63
|
+
y_keys: {
|
|
64
|
+
upper: string;
|
|
65
|
+
lower: string;
|
|
66
|
+
};
|
|
67
|
+
}
|
|
58
68
|
export interface ICartesianChartConf {
|
|
59
69
|
x_axis_data_key: string;
|
|
60
70
|
x_axis_name: string;
|
|
@@ -75,5 +85,6 @@ export interface ICartesianChartConf {
|
|
|
75
85
|
};
|
|
76
86
|
variables: ITemplateVariable[];
|
|
77
87
|
reference_lines: ICartesianReferenceLine[];
|
|
88
|
+
reference_areas: ICartesianReferenceArea[];
|
|
78
89
|
}
|
|
79
90
|
export declare const DEFAULT_CONFIG: ICartesianChartConf;
|
package/dist/utils/sql.d.ts
CHANGED
|
@@ -3,7 +3,9 @@ import { ContextInfoType } from '../model/context';
|
|
|
3
3
|
import { SQLSnippetModelInstance } from '../model/sql-snippets';
|
|
4
4
|
export declare function explainSQLSnippet(snippet: string, context: ContextInfoType, filterValues: FilterValuesType): any;
|
|
5
5
|
export declare function formatSQL(sql: string, params?: Record<string, $TSFixMe>): any;
|
|
6
|
-
export declare function getSQLParams(context: ContextInfoType, sqlSnippets: SQLSnippetModelInstance[], filterValues: FilterValuesType):
|
|
6
|
+
export declare function getSQLParams(context: ContextInfoType, sqlSnippets: SQLSnippetModelInstance[], filterValues: FilterValuesType): {
|
|
7
|
+
context: ContextInfoType;
|
|
7
8
|
filters: FilterValuesType;
|
|
9
|
+
sql_snippets: Record<string, any>;
|
|
8
10
|
};
|
|
9
11
|
export declare function explainSQL(sql: string, context: ContextInfoType, sqlSnippets: SQLSnippetModelInstance[], filterValues: FilterValuesType): any;
|