@finos/legend-query-builder 4.11.9 → 4.11.11
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/__lib__/QueryBuilderDocumentation.d.ts +1 -1
- package/lib/__lib__/QueryBuilderDocumentation.d.ts.map +1 -1
- package/lib/__lib__/QueryBuilderDocumentation.js +1 -1
- package/lib/__lib__/QueryBuilderDocumentation.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js +2 -2
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js.map +1 -1
- package/lib/components/result/QueryBuilderResultPanel.js +7 -7
- package/lib/components/result/QueryBuilderResultPanel.js.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSGridResult.d.ts +1 -1
- package/lib/components/result/tds/QueryBuilderTDSGridResult.d.ts.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSGridResult.js +62 -9
- package/lib/components/result/tds/QueryBuilderTDSGridResult.js.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSResultShared.d.ts +0 -1
- package/lib/components/result/tds/QueryBuilderTDSResultShared.d.ts.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSResultShared.js +1 -29
- package/lib/components/result/tds/QueryBuilderTDSResultShared.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.js +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.js.map +1 -1
- package/lib/index.css +1 -17
- package/lib/index.css.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/QueryBuilderState.d.ts +2 -2
- package/lib/stores/QueryBuilderState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderState.js +5 -5
- package/lib/stores/QueryBuilderState.js.map +1 -1
- package/lib/stores/workflows/ServiceQueryBuilderState.d.ts.map +1 -1
- package/lib/stores/workflows/ServiceQueryBuilderState.js +6 -5
- package/lib/stores/workflows/ServiceQueryBuilderState.js.map +1 -1
- package/package.json +5 -5
- package/src/__lib__/QueryBuilderDocumentation.ts +1 -1
- package/src/components/fetch-structure/QueryBuilderGraphFetchTreePanel.tsx +2 -4
- package/src/components/result/QueryBuilderResultPanel.tsx +13 -13
- package/src/components/result/tds/QueryBuilderTDSGridResult.tsx +73 -10
- package/src/components/result/tds/QueryBuilderTDSResultShared.tsx +0 -35
- package/src/graph-manager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.ts +1 -1
- package/src/stores/QueryBuilderState.ts +5 -5
- package/src/stores/workflows/ServiceQueryBuilderState.ts +3 -4
@@ -27,7 +27,6 @@ import {
|
|
27
27
|
InstanceValue,
|
28
28
|
EnumValueInstanceValue,
|
29
29
|
EnumValueExplicitReference,
|
30
|
-
PRIMITIVE_TYPE,
|
31
30
|
type ExecutionResult,
|
32
31
|
RelationalExecutionActivities,
|
33
32
|
} from '@finos/legend-graph';
|
@@ -119,40 +118,6 @@ export const getExecutedSqlFromExecutionResult = (
|
|
119
118
|
return undefined;
|
120
119
|
};
|
121
120
|
|
122
|
-
export const getAggregationTDSColumnCustomizations = (
|
123
|
-
result: TDSExecutionResult,
|
124
|
-
columnName: string,
|
125
|
-
): object | undefined => {
|
126
|
-
const columnType = result.builder.columns.find(
|
127
|
-
(col) => col.name === columnName,
|
128
|
-
)?.type;
|
129
|
-
switch (columnType) {
|
130
|
-
case PRIMITIVE_TYPE.STRING:
|
131
|
-
return {
|
132
|
-
filter: 'agTextColumnFilter',
|
133
|
-
allowedAggFuncs: ['count'],
|
134
|
-
};
|
135
|
-
case PRIMITIVE_TYPE.DATE:
|
136
|
-
case PRIMITIVE_TYPE.DATETIME:
|
137
|
-
case PRIMITIVE_TYPE.STRICTDATE:
|
138
|
-
return {
|
139
|
-
filter: 'agDateColumnFilter',
|
140
|
-
allowedAggFuncs: ['count'],
|
141
|
-
};
|
142
|
-
case PRIMITIVE_TYPE.DECIMAL:
|
143
|
-
case PRIMITIVE_TYPE.INTEGER:
|
144
|
-
case PRIMITIVE_TYPE.FLOAT:
|
145
|
-
return {
|
146
|
-
filter: 'agNumberColumnFilter',
|
147
|
-
allowedAggFuncs: ['count', 'sum', 'max', 'min', 'avg'],
|
148
|
-
};
|
149
|
-
default:
|
150
|
-
return {
|
151
|
-
allowedAggFuncs: ['count'],
|
152
|
-
};
|
153
|
-
}
|
154
|
-
};
|
155
|
-
|
156
121
|
export const getRowDataFromExecutionResult = (
|
157
122
|
executionResult: TDSExecutionResult,
|
158
123
|
): QueryBuilderTDSRowDataType[] => {
|
@@ -296,7 +296,7 @@ export class V1_QueryBuilder_PureGraphManagerExtension extends QueryBuilder_Pure
|
|
296
296
|
serviceAnalysisResult.service = service;
|
297
297
|
if (protocol.execution instanceof V1_PureMultiExecution) {
|
298
298
|
serviceAnalysisResult.executionKeys =
|
299
|
-
protocol.execution.executionParameters
|
299
|
+
protocol.execution.executionParameters?.map((param) => param.key);
|
300
300
|
}
|
301
301
|
result.push(serviceAnalysisResult);
|
302
302
|
}
|
@@ -139,7 +139,7 @@ export abstract class QueryBuilderState implements CommandRegistrar {
|
|
139
139
|
isCheckingEntitlments = false;
|
140
140
|
isCalendarEnabled = false;
|
141
141
|
isQueryChatOpened = false;
|
142
|
-
|
142
|
+
isLocalModeEnabled = false;
|
143
143
|
|
144
144
|
class?: Class | undefined;
|
145
145
|
executionContextState: QueryBuilderExecutionContextState;
|
@@ -181,7 +181,7 @@ export abstract class QueryBuilderState implements CommandRegistrar {
|
|
181
181
|
executionContextState: observable,
|
182
182
|
class: observable,
|
183
183
|
isQueryChatOpened: observable,
|
184
|
-
|
184
|
+
isLocalModeEnabled: observable,
|
185
185
|
|
186
186
|
sideBarClassName: computed,
|
187
187
|
isQuerySupported: computed,
|
@@ -194,7 +194,7 @@ export abstract class QueryBuilderState implements CommandRegistrar {
|
|
194
194
|
setIsCheckingEntitlments: action,
|
195
195
|
setClass: action,
|
196
196
|
setIsQueryChatOpened: action,
|
197
|
-
|
197
|
+
setIsLocalModeEnabled: action,
|
198
198
|
|
199
199
|
resetQueryResult: action,
|
200
200
|
resetQueryContent: action,
|
@@ -303,8 +303,8 @@ export abstract class QueryBuilderState implements CommandRegistrar {
|
|
303
303
|
this.isQueryChatOpened = val;
|
304
304
|
}
|
305
305
|
|
306
|
-
|
307
|
-
this.
|
306
|
+
setIsLocalModeEnabled(val: boolean): void {
|
307
|
+
this.isLocalModeEnabled = val;
|
308
308
|
}
|
309
309
|
|
310
310
|
setInternalize(val: QueryBuilderInternalizeState | undefined): void {
|
@@ -84,13 +84,12 @@ export class ServiceQueryBuilderState extends QueryBuilderState {
|
|
84
84
|
this.executionContextState.mapping = service.execution.mapping?.value;
|
85
85
|
this.executionContextState.runtimeValue = service.execution.runtime;
|
86
86
|
} else if (service.execution instanceof PureMultiExecution) {
|
87
|
-
this.executionContexts =
|
88
|
-
(ep) => ({
|
87
|
+
this.executionContexts =
|
88
|
+
service.execution.executionParameters?.map((ep) => ({
|
89
89
|
key: ep.key,
|
90
90
|
mapping: ep.mapping.value,
|
91
91
|
runtimeValue: ep.runtime,
|
92
|
-
})
|
93
|
-
);
|
92
|
+
})) ?? [];
|
94
93
|
let selectedExecutionContext: ServiceExecutionContext;
|
95
94
|
if (executionContextKey) {
|
96
95
|
const matchingExecutionContext = this.executionContexts.find(
|