@databrainhq/plugin 0.14.25 → 0.14.26
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/consts/metricOptions.d.ts +17 -0
- package/dist/containers/Dashboard/Dashboard.d.ts +2 -0
- package/dist/containers/Dashboard/EmbededDashboard.d.ts +1 -0
- package/dist/helpers/getModifiedQuery.d.ts +1 -0
- package/dist/hooks/useDebounce.d.ts +2 -0
- package/dist/types/metricCreate.d.ts +43 -3
- package/dist/webcomponents.es.js +17451 -17156
- package/dist/webcomponents.umd.js +147 -147
- package/package.json +1 -1
|
@@ -86,6 +86,23 @@ export declare const FUNCTIONS_SYNONYMNS: Record<string, string[]>;
|
|
|
86
86
|
export declare const SORT_SYNONYMNS: Record<string, string[]>;
|
|
87
87
|
export declare const NUMBER_SYNONYMNS: Record<string, number>;
|
|
88
88
|
export declare const questionKeywords: string[];
|
|
89
|
+
export declare const TIME_FILTER_SYNONYMNS: {
|
|
90
|
+
label: string;
|
|
91
|
+
value: string;
|
|
92
|
+
synonyms: string[];
|
|
93
|
+
alias: (column: string) => string;
|
|
94
|
+
}[];
|
|
95
|
+
export declare const NULL_FILTER_SYNONYMNS: {
|
|
96
|
+
value: string;
|
|
97
|
+
label: string;
|
|
98
|
+
synonymns: string[];
|
|
99
|
+
alias: (column: string) => string;
|
|
100
|
+
}[];
|
|
101
|
+
export declare const NUMBER_FILTER_SYNONYMNS: {
|
|
102
|
+
value: string;
|
|
103
|
+
label: string;
|
|
104
|
+
synonymns: string[];
|
|
105
|
+
}[];
|
|
89
106
|
export declare const DATASET_OTHER_HELPER_FUNCTIONS: {
|
|
90
107
|
value: string;
|
|
91
108
|
label: string;
|
|
@@ -10,6 +10,7 @@ import { AdminThemeOptionsType } from '@/types';
|
|
|
10
10
|
* disableMetricDeletion - boolean value to enable or disable metric deletion
|
|
11
11
|
* disableScheduleEmailReports - boolean value to enable or disable schedule email reports
|
|
12
12
|
* disableLayoutCustomization - boolean value to enable or disable dashboard layout customization
|
|
13
|
+
* disableSaveLayout - boolean value to enable or disable to save layout
|
|
13
14
|
* chartColors - array of colors where each color should be a valid color string e.g. color name, rgb value, hex value, etc.
|
|
14
15
|
* theme - Theme customization.
|
|
15
16
|
* isHideChartSettings - Whether to hide chart settings in full screen view.
|
|
@@ -23,6 +24,7 @@ export interface DashboardProps extends HTMLAttributes<HTMLElement> {
|
|
|
23
24
|
disableMetricUpdation?: boolean;
|
|
24
25
|
disableMetricDeletion?: boolean;
|
|
25
26
|
disableLayoutCustomization?: boolean;
|
|
27
|
+
disableSaveLayout?: boolean;
|
|
26
28
|
disableScheduleEmailReports?: boolean;
|
|
27
29
|
chartColors?: string[];
|
|
28
30
|
};
|
|
@@ -7,6 +7,7 @@ export interface EmbeddedDashboardProps {
|
|
|
7
7
|
disableMetricUpdation?: boolean;
|
|
8
8
|
disableMetricDeletion?: boolean;
|
|
9
9
|
disableLayoutCustomization?: boolean;
|
|
10
|
+
disableSaveLayout?: boolean;
|
|
10
11
|
disableScheduleEmailReports?: boolean;
|
|
11
12
|
disableFullscreen?: boolean;
|
|
12
13
|
chartColors?: string[];
|
|
@@ -19,6 +19,7 @@ export type ReplaceVariable = {
|
|
|
19
19
|
isAllClient?: boolean;
|
|
20
20
|
};
|
|
21
21
|
export declare const replaceVariable: ({ query, rlsConditions, tenancyLevel, clientId, values, isAllClient, }: ReplaceVariable) => string;
|
|
22
|
+
export declare const nameSpace: (name: string, dbName: string) => string;
|
|
22
23
|
export declare const nameSpaceSpecification: (parentAlias: string, columnName: string, dbName: string) => string;
|
|
23
24
|
export declare const cteQuery: (queryStr: string, groupedConditions: Record<string, RlsCondition[]>, dbName: string) => string;
|
|
24
25
|
export declare const subQuery: (queryStr: string, groupedConditions: Record<string, RlsCondition[]>, dbName: string) => string;
|
|
@@ -94,16 +94,56 @@ export type SelectedColumn = {
|
|
|
94
94
|
helperFunction?: string;
|
|
95
95
|
type: 'DEFAULT' | 'HELPER_FUNCTION' | 'CUSTOM' | 'PYTHON';
|
|
96
96
|
index: number;
|
|
97
|
-
configType: 'DIMENSION' | 'AGGREGATE';
|
|
98
|
-
dropType: 'METRIC' | 'DIMENSION';
|
|
97
|
+
configType: 'DIMENSION' | 'AGGREGATE' | 'FILTER';
|
|
98
|
+
dropType: 'METRIC' | 'DIMENSION' | 'FILTER';
|
|
99
99
|
sql: string;
|
|
100
|
-
draggableItemData: DraggableMetricItemData;
|
|
101
100
|
functionConfiguration?: {
|
|
102
101
|
dateFormat?: string;
|
|
103
102
|
};
|
|
104
103
|
synonyms?: string[];
|
|
105
104
|
sortType?: 'ASC' | 'DESC';
|
|
106
105
|
limit?: number;
|
|
106
|
+
filterMethod: string;
|
|
107
|
+
filterType: 'custom' | 'default' | 'agr' | 'dimension' | 'time' | 'client' | 'rls_filter';
|
|
108
|
+
filterValue: {
|
|
109
|
+
stringValue?: string;
|
|
110
|
+
numberValue?: number;
|
|
111
|
+
stringArray?: string[];
|
|
112
|
+
numberArray?: number[];
|
|
113
|
+
timeValue?: {
|
|
114
|
+
startDate: string;
|
|
115
|
+
endDate: string;
|
|
116
|
+
timeFilter: string;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
relationOperator?: 'AND' | 'OR';
|
|
120
|
+
draggableItemData: DraggableMetricItemData;
|
|
121
|
+
keyword?: string;
|
|
122
|
+
};
|
|
123
|
+
export type SelectedFilter = {
|
|
124
|
+
method: string;
|
|
125
|
+
alias: string;
|
|
126
|
+
parentAlias: string;
|
|
127
|
+
type: 'custom' | 'default' | 'agr' | 'dimension' | 'time' | 'client' | 'rls_filter';
|
|
128
|
+
dataType: string;
|
|
129
|
+
value: {
|
|
130
|
+
stringValue?: string;
|
|
131
|
+
numberValue?: number;
|
|
132
|
+
stringArray?: string[];
|
|
133
|
+
numberArray?: number[];
|
|
134
|
+
timeValue?: {
|
|
135
|
+
startDate: string;
|
|
136
|
+
endDate: string;
|
|
137
|
+
timeFilter: string;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
relationOperator?: 'AND' | 'OR';
|
|
141
|
+
sql: string;
|
|
142
|
+
name: string;
|
|
143
|
+
table: TableObjectType;
|
|
144
|
+
draggableItemData: DraggableMetricItemData;
|
|
145
|
+
filterSynonmns?: string[];
|
|
146
|
+
keyword?: string;
|
|
107
147
|
};
|
|
108
148
|
export type DatasetSettings = {
|
|
109
149
|
timeColumn: FloatingDropDownOption;
|