@finos/legend-query-builder 4.14.37 → 4.14.39
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/__lib__/QueryBuilderTesting.d.ts +2 -1
- package/lib/__lib__/QueryBuilderTesting.d.ts.map +1 -1
- package/lib/__lib__/QueryBuilderTesting.js +1 -0
- package/lib/__lib__/QueryBuilderTesting.js.map +1 -1
- package/lib/components/QueryBuilder.d.ts.map +1 -1
- package/lib/components/QueryBuilder.js +10 -9
- package/lib/components/QueryBuilder.js.map +1 -1
- package/lib/components/QueryBuilderParametersPanel.js +2 -2
- package/lib/components/QueryBuilderParametersPanel.js.map +1 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts +0 -2
- package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts.map +1 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.js +10 -26
- package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -1
- package/lib/components/QueryBuilderSideBar.d.ts.map +1 -1
- package/lib/components/QueryBuilderSideBar.js +3 -3
- package/lib/components/QueryBuilderSideBar.js.map +1 -1
- package/lib/components/QueryBuilderTextEditor.d.ts.map +1 -1
- package/lib/components/QueryBuilderTextEditor.js +17 -3
- package/lib/components/QueryBuilderTextEditor.js.map +1 -1
- package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts +5 -0
- package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts.map +1 -1
- package/lib/components/explorer/QueryBuilderMilestoningEditor.js +10 -5
- package/lib/components/explorer/QueryBuilderMilestoningEditor.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +45 -12
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +13 -5
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
- package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +1 -1
- package/lib/components/filter/QueryBuilderFilterPanel.js +1 -2
- package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
- package/lib/components/result/QueryBuilderResultPanel.d.ts.map +1 -1
- package/lib/components/result/QueryBuilderResultPanel.js +6 -5
- package/lib/components/result/QueryBuilderResultPanel.js.map +1 -1
- package/lib/components/shared/BasicValueSpecificationEditor.d.ts.map +1 -1
- package/lib/components/shared/BasicValueSpecificationEditor.js +49 -8
- package/lib/components/shared/BasicValueSpecificationEditor.js.map +1 -1
- package/lib/components/workflows/ClassQueryBuilder.d.ts.map +1 -1
- package/lib/components/workflows/ClassQueryBuilder.js +3 -3
- package/lib/components/workflows/ClassQueryBuilder.js.map +1 -1
- package/lib/components/workflows/MappingQueryBuilder.d.ts.map +1 -1
- package/lib/components/workflows/MappingQueryBuilder.js +3 -3
- package/lib/components/workflows/MappingQueryBuilder.js.map +1 -1
- package/lib/components/workflows/ServiceQueryBuilder.d.ts.map +1 -1
- package/lib/components/workflows/ServiceQueryBuilder.js +3 -3
- package/lib/components/workflows/ServiceQueryBuilder.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/QueryBuilderTextEditorState.d.ts +4 -1
- package/lib/stores/QueryBuilderTextEditorState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderTextEditorState.js +19 -2
- package/lib/stores/QueryBuilderTextEditorState.js.map +1 -1
- package/lib/stores/QueryLoaderState.d.ts +2 -2
- package/lib/stores/QueryLoaderState.d.ts.map +1 -1
- package/lib/stores/QueryLoaderState.js +3 -3
- package/lib/stores/QueryLoaderState.js.map +1 -1
- package/lib/stores/explorer/QueryFunctionsExplorerState.d.ts +1 -1
- package/lib/stores/explorer/QueryFunctionsExplorerState.d.ts.map +1 -1
- package/lib/stores/explorer/QueryFunctionsExplorerState.js +2 -1
- package/lib/stores/explorer/QueryFunctionsExplorerState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts +1 -0
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +8 -0
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
- package/lib/stores/milestoning/QueryBuilderMilestoningState.d.ts.map +1 -1
- package/lib/stores/milestoning/QueryBuilderMilestoningState.js +9 -3
- package/lib/stores/milestoning/QueryBuilderMilestoningState.js.map +1 -1
- package/lib/stores/watermark/QueryBuilderWatermarkState.d.ts.map +1 -1
- package/lib/stores/watermark/QueryBuilderWatermarkState.js +0 -1
- package/lib/stores/watermark/QueryBuilderWatermarkState.js.map +1 -1
- package/package.json +8 -8
- package/src/__lib__/QueryBuilderTesting.ts +1 -0
- package/src/components/QueryBuilder.tsx +16 -15
- package/src/components/QueryBuilderParametersPanel.tsx +2 -2
- package/src/components/QueryBuilderPropertyExpressionEditor.tsx +40 -92
- package/src/components/QueryBuilderSideBar.tsx +3 -2
- package/src/components/QueryBuilderTextEditor.tsx +46 -11
- package/src/components/explorer/QueryBuilderMilestoningEditor.tsx +60 -46
- package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +78 -34
- package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +121 -34
- package/src/components/filter/QueryBuilderFilterPanel.tsx +0 -11
- package/src/components/result/QueryBuilderResultPanel.tsx +21 -23
- package/src/components/shared/BasicValueSpecificationEditor.tsx +141 -34
- package/src/components/workflows/ClassQueryBuilder.tsx +3 -2
- package/src/components/workflows/MappingQueryBuilder.tsx +3 -2
- package/src/components/workflows/ServiceQueryBuilder.tsx +7 -3
- package/src/stores/QueryBuilderTextEditorState.ts +20 -2
- package/src/stores/QueryLoaderState.ts +5 -7
- package/src/stores/explorer/QueryFunctionsExplorerState.ts +6 -2
- package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +11 -0
- package/src/stores/milestoning/QueryBuilderMilestoningState.ts +11 -7
- package/src/stores/watermark/QueryBuilderWatermarkState.ts +0 -1
@@ -44,7 +44,6 @@ export class QueryBuilderMilestoningState {
|
|
44
44
|
startDate: observable,
|
45
45
|
endDate: observable,
|
46
46
|
showMilestoningEditor: observable,
|
47
|
-
isMilestonedQuery: computed,
|
48
47
|
setProcessingDate: action,
|
49
48
|
setBusinessDate: action,
|
50
49
|
setStartDate: action,
|
@@ -56,6 +55,9 @@ export class QueryBuilderMilestoningState {
|
|
56
55
|
initializeAllVersionsInRangeParameters: action,
|
57
56
|
clearAllVersionsInRangeParameters: action,
|
58
57
|
clearGetAllParameters: action,
|
58
|
+
isAllVersionsEnabled: computed,
|
59
|
+
isAllVersionsInRangeEnabled: computed,
|
60
|
+
isMilestonedQuery: computed,
|
59
61
|
hashCode: computed,
|
60
62
|
});
|
61
63
|
this.queryBuilderState = queryBuilderState;
|
@@ -245,14 +247,18 @@ export class QueryBuilderMilestoningState {
|
|
245
247
|
exculdeMilestoningState: true,
|
246
248
|
})) {
|
247
249
|
const paramState = this.queryBuilderState.parametersState.parameterStates.find((p) => p.parameter === this.startDate);
|
248
|
-
|
250
|
+
if (paramState) {
|
251
|
+
this.queryBuilderState.parametersState.removeParameter(paramState);
|
252
|
+
}
|
249
253
|
}
|
250
254
|
if (this.endDate instanceof VariableExpression &&
|
251
255
|
!this.queryBuilderState.isVariableUsed(this.endDate, {
|
252
256
|
exculdeMilestoningState: true,
|
253
257
|
})) {
|
254
258
|
const paramState = this.queryBuilderState.parametersState.parameterStates.find((p) => p.parameter === this.endDate);
|
255
|
-
|
259
|
+
if (paramState) {
|
260
|
+
this.queryBuilderState.parametersState.removeParameter(paramState);
|
261
|
+
}
|
256
262
|
}
|
257
263
|
this.setStartDate(undefined);
|
258
264
|
this.setEndDate(undefined);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderMilestoningState.js","sourceRoot":"","sources":["../../../src/stores/milestoning/QueryBuilderMilestoningState.ts"],"names":[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;YACD,CAAC,IAAI,CAAC,iBAAiB,CAAC,aAAa,CAAC,SAAS,CAAC,IAAI,CAClD,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,KAAK,aAAa,CACzC,EACD,CAAC;YACD,MAAM,aAAa,GAAG,IAAI,oBAAoB,CAC5C,oBAAoB,EACpB,IAAI,CAAC,iBAAiB,CAAC,eAAe,EACtC,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAC/C,CAAC;YACF,aAAa,CAAC,kBAAkB,EAAE,CAAC;YACnC,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;QACrE,CAAC;QACD,OAAO,oBAAoB,CAAC;IAC9B,CAAC;IAED,cAAc,CAAC,QAA4B;QACzC,MAAM,cAAc,GAAG,IAAI,CAAC,YAAY;YACtC,CAAC,CAAC,kCAAkC,CAAC,QAAQ,EAAE,IAAI,CAAC,YAAY,CAAC;YACjE,CAAC,CAAC,KAAK,CAAC;QACV,MAAM,oBAAoB,GAAG,IAAI,CAAC,cAAc;YAC9C,CAAC,CAAC,kCAAkC,CAAC,QAAQ,EAAE,IAAI,CAAC,cAAc,CAAC;YACnE,CAAC,CAAC,KAAK,CAAC;QACV,OAAO,cAAc,IAAI,oBAAoB,CAAC;IAChD,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,iBAAiB;YACpD,IAAI,CAAC,YAAY,IAAI,EAAE;YACvB,IAAI,CAAC,cAAc,IAAI,EAAE;SAC1B,CAAC,CAAC;IACL,CAAC;CACF"}
|
1
|
+
{"version":3,"file":"QueryBuilderMilestoningState.js","sourceRoot":"","sources":["../../../src/stores/milestoning/QueryBuilderMilestoningState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,WAAW,EACX,4BAA4B,EAC5B,8BAA8B,EAC9B,sBAAsB,EACtB,0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IAAI,CAAC,iBAAiB,CAAC,aAAa,CAAC,SAAS,CAAC,IAAI,CAClD,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,KAAK,aAAa,CACzC,EACD,CAAC;YACD,MAAM,aAAa,GAAG,IAAI,oBAAoB,CAC5C,oBAAoB,EACpB,IAAI,CAAC,iBAAiB,CAAC,eAAe,EACtC,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAC/C,CAAC;YACF,aAAa,CAAC,kBAAkB,EAAE,CAAC;YACnC,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;QACrE,CAAC;QACD,OAAO,oBAAoB,CAAC;IAC9B,CAAC;IAED,cAAc,CAAC,QAA4B;QACzC,MAAM,cAAc,GAAG,IAAI,CAAC,YAAY;YACtC,CAAC,CAAC,kCAAkC,CAAC,QAAQ,EAAE,IAAI,CAAC,YAAY,CAAC;YACjE,CAAC,CAAC,KAAK,CAAC;QACV,MAAM,oBAAoB,GAAG,IAAI,CAAC,cAAc;YAC9C,CAAC,CAAC,kCAAkC,CAAC,QAAQ,EAAE,IAAI,CAAC,cAAc,CAAC;YACnE,CAAC,CAAC,KAAK,CAAC;QACV,OAAO,cAAc,IAAI,oBAAoB,CAAC;IAChD,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,iBAAiB;YACpD,IAAI,CAAC,YAAY,IAAI,EAAE;YACvB,IAAI,CAAC,cAAc,IAAI,EAAE;SAC1B,CAAC,CAAC;IACL,CAAC;CACF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderWatermarkState.d.ts","sourceRoot":"","sources":["../../../src/stores/watermark/QueryBuilderWatermarkState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EAMxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAGhE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAGjE,qBAAa,0BAA2B,YAAW,QAAQ;IACzD,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C,KAAK,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;gBAE3B,iBAAiB,EAAE,iBAAiB;IAUhD,eAAe,IAAI,kBAAkB;
|
1
|
+
{"version":3,"file":"QueryBuilderWatermarkState.d.ts","sourceRoot":"","sources":["../../../src/stores/watermark/QueryBuilderWatermarkState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EAMxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAGhE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAGjE,qBAAa,0BAA2B,YAAW,QAAQ;IACzD,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C,KAAK,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;gBAE3B,iBAAiB,EAAE,iBAAiB;IAUhD,eAAe,IAAI,kBAAkB;IAUrC,QAAQ,CAAC,GAAG,EAAE,kBAAkB,GAAG,SAAS,GAAG,IAAI;IAMnD,cAAc,CAAC,QAAQ,EAAE,kBAAkB,GAAG,OAAO;IAMrD,IAAI,QAAQ,IAAI,MAAM,CAKrB;CACF"}
|
@@ -31,7 +31,6 @@ export class QueryBuilderWatermarkState {
|
|
31
31
|
}
|
32
32
|
getDefaultValue() {
|
33
33
|
const watermarkConstant = new PrimitiveInstanceValue(GenericTypeExplicitReference.create(new GenericType(PrimitiveType.STRING)));
|
34
|
-
watermarkConstant.values = ['watermarkValue'];
|
35
34
|
return watermarkConstant;
|
36
35
|
}
|
37
36
|
setValue(val) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderWatermarkState.js","sourceRoot":"","sources":["../../../src/stores/watermark/QueryBuilderWatermarkState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,0BAA0B,EAC1B,4BAA4B,EAC5B,WAAW,EACX,sBAAsB,EACtB,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAiB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAAE,kCAAkC,EAAE,MAAM,kCAAkC,CAAC;AAEtF,OAAO,EAAE,kCAAkC,EAAE,MAAM,4CAA4C,CAAC;AAEhG,MAAM,OAAO,0BAA0B;IAC5B,iBAAiB,CAAoB;IAC9C,KAAK,CAAkC;IAEvC,YAAY,iBAAoC;QAC9C,cAAc,CAAC,IAAI,EAAE;YACnB,KAAK,EAAE,UAAU;YACjB,QAAQ,EAAE,MAAM;YAChB,QAAQ,EAAE,QAAQ;SACnB,CAAC,CAAC;QAEH,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC7C,CAAC;IAED,eAAe;QACb,MAAM,iBAAiB,GAAG,IAAI,sBAAsB,CAClD,4BAA4B,CAAC,MAAM,CACjC,IAAI,WAAW,CAAC,aAAa,CAAC,MAAM,CAAC,CACtC,CACF,CAAC;QAEF,
|
1
|
+
{"version":3,"file":"QueryBuilderWatermarkState.js","sourceRoot":"","sources":["../../../src/stores/watermark/QueryBuilderWatermarkState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,0BAA0B,EAC1B,4BAA4B,EAC5B,WAAW,EACX,sBAAsB,EACtB,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAiB,SA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
"name": "@finos/legend-query-builder",
|
3
|
-
"version": "4.14.
|
3
|
+
"version": "4.14.39",
|
4
4
|
"description": "Legend query builder core",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -42,13 +42,13 @@
|
|
42
42
|
"test:watch": "jest --watch"
|
43
43
|
},
|
44
44
|
"dependencies": {
|
45
|
-
"@finos/legend-application": "15.1.
|
46
|
-
"@finos/legend-art": "7.1.
|
47
|
-
"@finos/legend-graph": "31.
|
48
|
-
"@finos/legend-lego": "1.2.
|
49
|
-
"@finos/legend-server-depot": "6.0.
|
50
|
-
"@finos/legend-shared": "10.0.
|
51
|
-
"@finos/legend-storage": "3.0.
|
45
|
+
"@finos/legend-application": "15.1.3",
|
46
|
+
"@finos/legend-art": "7.1.32",
|
47
|
+
"@finos/legend-graph": "31.10.0",
|
48
|
+
"@finos/legend-lego": "1.2.33",
|
49
|
+
"@finos/legend-server-depot": "6.0.41",
|
50
|
+
"@finos/legend-shared": "10.0.36",
|
51
|
+
"@finos/legend-storage": "3.0.86",
|
52
52
|
"@testing-library/react": "15.0.7",
|
53
53
|
"@types/react": "18.3.2",
|
54
54
|
"@types/react-dom": "18.3.0",
|
@@ -52,4 +52,5 @@ export enum QUERY_BUILDER_TEST_ID {
|
|
52
52
|
// result modifier panel
|
53
53
|
QUERY_BUILDER_RESULT_MODIFIER_PANEL = 'query__builder__result__modifier__panel',
|
54
54
|
QUERY_BUILDER_RESULT_MODIFIER_PANEL_SORT_REMOVE_BTN = 'query__builder__projection__options__sort__remove-btn',
|
55
|
+
QUERY_BUILDER_RESULT_MODIFIER_PANEL__WATERMAKR = 'query__builder__result__modifier__panel__watermark',
|
55
56
|
}
|
@@ -224,7 +224,7 @@ const QueryBuilderStatusBar = observer(
|
|
224
224
|
title={
|
225
225
|
!queryBuilderState.canBuildQuery
|
226
226
|
? 'Please fix query errors to edit in Pure'
|
227
|
-
: 'Edit
|
227
|
+
: 'Edit Pure'
|
228
228
|
}
|
229
229
|
>
|
230
230
|
<HackerIcon />
|
@@ -260,6 +260,11 @@ export const QueryBuilder = observer(
|
|
260
260
|
fetchStructureState.implementation instanceof QueryBuilderTDSState;
|
261
261
|
const openLambdaEditor = (mode: QueryBuilderTextEditorMode): void =>
|
262
262
|
queryBuilderState.textEditorState.openModal(mode);
|
263
|
+
const openPure = (): void =>
|
264
|
+
queryBuilderState.textEditorState.openModal(
|
265
|
+
QueryBuilderTextEditorMode.TEXT,
|
266
|
+
true,
|
267
|
+
);
|
263
268
|
const toggleShowFunctionPanel = (): void => {
|
264
269
|
queryBuilderState.setShowFunctionsExplorerPanel(
|
265
270
|
!queryBuilderState.showFunctionsExplorerPanel,
|
@@ -373,13 +378,13 @@ export const QueryBuilder = observer(
|
|
373
378
|
}
|
374
379
|
};
|
375
380
|
|
376
|
-
const
|
381
|
+
const editPure = (): void => {
|
377
382
|
openLambdaEditor(QueryBuilderTextEditorMode.TEXT);
|
378
383
|
};
|
379
|
-
const
|
380
|
-
|
384
|
+
const showPure = (): void => {
|
385
|
+
openPure();
|
381
386
|
};
|
382
|
-
const
|
387
|
+
const showProtocol = (): void => {
|
383
388
|
openLambdaEditor(QueryBuilderTextEditorMode.JSON);
|
384
389
|
};
|
385
390
|
|
@@ -773,7 +778,7 @@ export const QueryBuilder = observer(
|
|
773
778
|
</MenuContentItemLabel>
|
774
779
|
</MenuContentItem>
|
775
780
|
<MenuContentItem
|
776
|
-
onClick={
|
781
|
+
onClick={editPure}
|
777
782
|
disabled={!queryBuilderState.canBuildQuery}
|
778
783
|
title={
|
779
784
|
!queryBuilderState.canBuildQuery
|
@@ -784,12 +789,10 @@ export const QueryBuilder = observer(
|
|
784
789
|
<MenuContentItemIcon>
|
785
790
|
<HackerIcon />
|
786
791
|
</MenuContentItemIcon>
|
787
|
-
<MenuContentItemLabel>
|
788
|
-
Edit Query in Pure
|
789
|
-
</MenuContentItemLabel>
|
792
|
+
<MenuContentItemLabel>Edit Pure</MenuContentItemLabel>
|
790
793
|
</MenuContentItem>
|
791
794
|
<MenuContentItem
|
792
|
-
onClick={
|
795
|
+
onClick={showPure}
|
793
796
|
disabled={!queryBuilderState.canBuildQuery}
|
794
797
|
title={
|
795
798
|
!queryBuilderState.canBuildQuery
|
@@ -800,12 +803,10 @@ export const QueryBuilder = observer(
|
|
800
803
|
<MenuContentItemIcon>
|
801
804
|
<CodeIcon />
|
802
805
|
</MenuContentItemIcon>
|
803
|
-
<MenuContentItemLabel>
|
804
|
-
Show Query in Pure
|
805
|
-
</MenuContentItemLabel>
|
806
|
+
<MenuContentItemLabel>Show Pure</MenuContentItemLabel>
|
806
807
|
</MenuContentItem>
|
807
808
|
<MenuContentItem
|
808
|
-
onClick={
|
809
|
+
onClick={showProtocol}
|
809
810
|
disabled={!queryBuilderState.canBuildQuery}
|
810
811
|
title={
|
811
812
|
!queryBuilderState.canBuildQuery
|
@@ -817,7 +818,7 @@ export const QueryBuilder = observer(
|
|
817
818
|
<SerializeIcon />
|
818
819
|
</MenuContentItemIcon>
|
819
820
|
<MenuContentItemLabel>
|
820
|
-
Show
|
821
|
+
Show Protocol
|
821
822
|
</MenuContentItemLabel>
|
822
823
|
</MenuContentItem>
|
823
824
|
<MenuContentItem onClick={compileQuery}>
|
@@ -26,9 +26,9 @@ import {
|
|
26
26
|
ModalBody,
|
27
27
|
ModalFooter,
|
28
28
|
ModalHeader,
|
29
|
-
InfoCircleIcon,
|
30
29
|
ModalFooterButton,
|
31
30
|
PanelFormValidatedTextField,
|
31
|
+
QuestionCircleIcon,
|
32
32
|
} from '@finos/legend-art';
|
33
33
|
import {
|
34
34
|
type Type,
|
@@ -289,7 +289,7 @@ export const QueryBuilderParametersPanel = observer(
|
|
289
289
|
className="query-builder__variables__info"
|
290
290
|
title={`Parameters are variables assigned to your query. They are dynamic in nature and can change for each execution.`}
|
291
291
|
>
|
292
|
-
<
|
292
|
+
<QuestionCircleIcon />
|
293
293
|
</div>
|
294
294
|
</div>
|
295
295
|
{!isReadOnly && !queryBuilderState.isParameterSupportDisabled && (
|
@@ -26,7 +26,6 @@ import {
|
|
26
26
|
Dialog,
|
27
27
|
PanelDropZone,
|
28
28
|
InfoCircleIcon,
|
29
|
-
PanelEntryDropZonePlaceholder,
|
30
29
|
Modal,
|
31
30
|
ModalHeader,
|
32
31
|
ModalBody,
|
@@ -42,11 +41,6 @@ import {
|
|
42
41
|
type QueryBuilderPropertyExpressionState,
|
43
42
|
} from '../stores/QueryBuilderPropertyEditorState.js';
|
44
43
|
import { useDrop } from 'react-dnd';
|
45
|
-
import {
|
46
|
-
QUERY_BUILDER_EXPLORER_TREE_DND_TYPE,
|
47
|
-
type QueryBuilderExplorerTreeDragSource,
|
48
|
-
type QueryBuilderExplorerTreePropertyNodeData,
|
49
|
-
} from '../stores/explorer/QueryBuilderExplorerState.js';
|
50
44
|
import {
|
51
45
|
type ValueSpecification,
|
52
46
|
type VariableExpression,
|
@@ -464,19 +458,10 @@ export const QueryBuilderPropertyExpressionBadge = observer(
|
|
464
458
|
(props: {
|
465
459
|
columnName?: string;
|
466
460
|
propertyExpressionState: QueryBuilderPropertyExpressionState;
|
467
|
-
onPropertyExpressionChange: (
|
468
|
-
node: QueryBuilderExplorerTreePropertyNodeData,
|
469
|
-
) => void;
|
470
461
|
setColumnName?: (columnName: string) => void;
|
471
462
|
error?: string | undefined;
|
472
463
|
}) => {
|
473
|
-
const {
|
474
|
-
columnName,
|
475
|
-
propertyExpressionState,
|
476
|
-
onPropertyExpressionChange,
|
477
|
-
setColumnName,
|
478
|
-
error,
|
479
|
-
} = props;
|
464
|
+
const { columnName, propertyExpressionState, setColumnName, error } = props;
|
480
465
|
const type =
|
481
466
|
propertyExpressionState.propertyExpression.func.value.genericType.value
|
482
467
|
.rawType;
|
@@ -489,87 +474,50 @@ export const QueryBuilderPropertyExpressionBadge = observer(
|
|
489
474
|
propertyExpressionState.setIsEditingDerivedProperty(true);
|
490
475
|
}
|
491
476
|
};
|
492
|
-
const handleDrop = useCallback(
|
493
|
-
(item: QueryBuilderExplorerTreeDragSource): void =>
|
494
|
-
onPropertyExpressionChange(item.node),
|
495
|
-
[onPropertyExpressionChange],
|
496
|
-
);
|
497
|
-
const [{ isDragOver }, dropConnector] = useDrop<
|
498
|
-
QueryBuilderExplorerTreeDragSource,
|
499
|
-
void,
|
500
|
-
{ isDragOver: boolean }
|
501
|
-
>(
|
502
|
-
() => ({
|
503
|
-
accept: [
|
504
|
-
QUERY_BUILDER_EXPLORER_TREE_DND_TYPE.ENUM_PROPERTY,
|
505
|
-
QUERY_BUILDER_EXPLORER_TREE_DND_TYPE.PRIMITIVE_PROPERTY,
|
506
|
-
],
|
507
|
-
drop: (item, monitor): void => {
|
508
|
-
if (!monitor.didDrop()) {
|
509
|
-
handleDrop(item);
|
510
|
-
} // prevent drop event propagation to accomondate for nested DnD
|
511
|
-
},
|
512
|
-
collect: (monitor) => ({
|
513
|
-
isDragOver: monitor.isOver({ shallow: true }),
|
514
|
-
}),
|
515
|
-
}),
|
516
|
-
[handleDrop],
|
517
|
-
);
|
518
477
|
|
519
478
|
return (
|
520
|
-
<div
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
479
|
+
<div className="query-builder-property-expression-badge">
|
480
|
+
<div
|
481
|
+
className={clsx('query-builder-property-expression-badge__content', {
|
482
|
+
'query-builder-property-expression-badge__content--class':
|
483
|
+
type instanceof Class,
|
484
|
+
'query-builder-property-expression-badge__content--enumeration':
|
485
|
+
type instanceof Enumeration,
|
486
|
+
'query-builder-property-expression-badge__content--primitive':
|
487
|
+
type instanceof PrimitiveType,
|
488
|
+
})}
|
527
489
|
>
|
528
|
-
<
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
type instanceof PrimitiveType,
|
538
|
-
},
|
490
|
+
<QueryBuilderEditablePropertyName
|
491
|
+
columnName={columnName ?? propertyExpressionState.title}
|
492
|
+
setColumnName={setColumnName}
|
493
|
+
error={error}
|
494
|
+
title={`${propertyExpressionState.title} - ${propertyExpressionState.path}`}
|
495
|
+
defaultColumnName={getPropertyChainName(
|
496
|
+
propertyExpressionState.propertyExpression,
|
497
|
+
propertyExpressionState.queryBuilderState.explorerState
|
498
|
+
.humanizePropertyName,
|
539
499
|
)}
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
.humanizePropertyName,
|
500
|
+
/>
|
501
|
+
{hasDerivedPropertyInExpression && (
|
502
|
+
<button
|
503
|
+
className={clsx(
|
504
|
+
'query-builder-property-expression-badge__action',
|
505
|
+
{
|
506
|
+
'query-builder-property-expression-badge__action--error':
|
507
|
+
!isValid,
|
508
|
+
},
|
550
509
|
)}
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
onClick={setDerivedPropertyArguments}
|
563
|
-
title="Set Derived Property Argument(s)..."
|
564
|
-
>
|
565
|
-
{!isValid && <InfoCircleIcon />} (...)
|
566
|
-
</button>
|
567
|
-
)}
|
568
|
-
<QueryBuilderPropertyExpressionEditor
|
569
|
-
propertyExpressionState={propertyExpressionState}
|
570
|
-
/>
|
571
|
-
</div>
|
572
|
-
</PanelEntryDropZonePlaceholder>
|
510
|
+
tabIndex={-1}
|
511
|
+
onClick={setDerivedPropertyArguments}
|
512
|
+
title="Set Derived Property Argument(s)..."
|
513
|
+
>
|
514
|
+
{!isValid && <InfoCircleIcon />} (...)
|
515
|
+
</button>
|
516
|
+
)}
|
517
|
+
<QueryBuilderPropertyExpressionEditor
|
518
|
+
propertyExpressionState={propertyExpressionState}
|
519
|
+
/>
|
520
|
+
</div>
|
573
521
|
</div>
|
574
522
|
);
|
575
523
|
},
|
@@ -21,6 +21,7 @@ import {
|
|
21
21
|
ClockIcon,
|
22
22
|
clsx,
|
23
23
|
PanelHeader,
|
24
|
+
compareLabelFn,
|
24
25
|
} from '@finos/legend-art';
|
25
26
|
import { observer } from 'mobx-react-lite';
|
26
27
|
import type { QueryBuilderState } from '../stores/QueryBuilderState.js';
|
@@ -256,7 +257,7 @@ const BasicQueryBuilderSetup = observer(
|
|
256
257
|
// mapping
|
257
258
|
const mappingOptions = queryBuilderState.graphManagerState.usableMappings
|
258
259
|
.map(buildElementOption)
|
259
|
-
.sort(
|
260
|
+
.sort(compareLabelFn);
|
260
261
|
const selectedMappingOption = queryBuilderState.executionContextState
|
261
262
|
.mapping
|
262
263
|
? buildElementOption(queryBuilderState.executionContextState.mapping)
|
@@ -285,7 +286,7 @@ const BasicQueryBuilderSetup = observer(
|
|
285
286
|
new RuntimePointer(PackageableElementExplicitReference.create(rt)),
|
286
287
|
)
|
287
288
|
.map(buildRuntimeValueOption)
|
288
|
-
.sort(
|
289
|
+
.sort(compareLabelFn);
|
289
290
|
const selectedRuntimeOption = queryBuilderState.executionContextState
|
290
291
|
.runtimeValue
|
291
292
|
? buildRuntimeValueOption(
|
@@ -43,6 +43,7 @@ export const QueryBuilderTextEditor = observer(
|
|
43
43
|
const { queryBuilderState } = props;
|
44
44
|
const applicationStore = useApplicationStore();
|
45
45
|
const queryTextEditorState = queryBuilderState.textEditorState;
|
46
|
+
const isReadOnly = queryTextEditorState.isReadOnly;
|
46
47
|
const close = applicationStore.guardUnhandledError(() =>
|
47
48
|
flowResult(queryBuilderState.textEditorState.closeModal()),
|
48
49
|
);
|
@@ -52,6 +53,27 @@ export const QueryBuilderTextEditor = observer(
|
|
52
53
|
applicationStore.layoutService.setShowBackdrop(false);
|
53
54
|
};
|
54
55
|
const mode = queryTextEditorState.mode;
|
56
|
+
const isEditingPure =
|
57
|
+
mode === QueryBuilderTextEditorMode.TEXT && !isReadOnly;
|
58
|
+
const title =
|
59
|
+
mode === QueryBuilderTextEditorMode.TEXT
|
60
|
+
? isReadOnly
|
61
|
+
? 'Pure Query'
|
62
|
+
: 'Edit Pure Query'
|
63
|
+
: 'Pure Query Protocol';
|
64
|
+
|
65
|
+
const copyExpression = (): void => {
|
66
|
+
applicationStore.clipboardService
|
67
|
+
.copyTextToClipboard(queryTextEditorState.text ?? '')
|
68
|
+
.then(() =>
|
69
|
+
applicationStore.notificationService.notifySuccess(
|
70
|
+
'Query Copied',
|
71
|
+
undefined,
|
72
|
+
2500,
|
73
|
+
),
|
74
|
+
)
|
75
|
+
.catch(applicationStore.alertUnhandledError);
|
76
|
+
};
|
55
77
|
useEffect(() => {
|
56
78
|
flowResult(
|
57
79
|
queryTextEditorState.convertLambdaObjectToGrammarString({
|
@@ -81,7 +103,7 @@ export const QueryBuilderTextEditor = observer(
|
|
81
103
|
})}
|
82
104
|
>
|
83
105
|
<ModalHeader>
|
84
|
-
<div className="modal__title">
|
106
|
+
<div className="modal__title">{title}</div>
|
85
107
|
{queryTextEditorState.parserError && (
|
86
108
|
<div className="modal__title__error-badge">
|
87
109
|
Failed to parse query
|
@@ -99,15 +121,22 @@ export const QueryBuilderTextEditor = observer(
|
|
99
121
|
backdrop__element: Boolean(queryTextEditorState.parserError),
|
100
122
|
})}
|
101
123
|
>
|
102
|
-
{mode === QueryBuilderTextEditorMode.TEXT &&
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
124
|
+
{mode === QueryBuilderTextEditorMode.TEXT &&
|
125
|
+
(isReadOnly ? (
|
126
|
+
<CodeEditor
|
127
|
+
language={CODE_EDITOR_LANGUAGE.PURE}
|
128
|
+
inputValue={queryTextEditorState.fullLambdaString}
|
129
|
+
isReadOnly={true}
|
130
|
+
/>
|
131
|
+
) : (
|
132
|
+
<LambdaEditor
|
133
|
+
className="query-builder-text-mode__lambda-editor"
|
134
|
+
disabled={queryTextEditorState.isConvertingLambdaToString}
|
135
|
+
lambdaEditorState={queryTextEditorState}
|
136
|
+
forceBackdrop={false}
|
137
|
+
autoFocus={true}
|
138
|
+
/>
|
139
|
+
))}
|
111
140
|
{mode === QueryBuilderTextEditorMode.JSON && (
|
112
141
|
<CodeEditor
|
113
142
|
language={CODE_EDITOR_LANGUAGE.JSON}
|
@@ -130,12 +159,18 @@ export const QueryBuilderTextEditor = observer(
|
|
130
159
|
Compiling Query...
|
131
160
|
</ModalFooterStatus>
|
132
161
|
)}
|
133
|
-
{
|
162
|
+
{isEditingPure ? (
|
134
163
|
<ModalFooterButton
|
135
164
|
className="btn--caution"
|
136
165
|
onClick={discardChanges}
|
137
166
|
text="Discard Changes"
|
138
167
|
/>
|
168
|
+
) : (
|
169
|
+
<ModalFooterButton
|
170
|
+
formatText={false}
|
171
|
+
onClick={copyExpression}
|
172
|
+
text="Copy to Clipboard"
|
173
|
+
/>
|
139
174
|
)}
|
140
175
|
<ModalFooterButton
|
141
176
|
onClick={close}
|