@finos/legend-query-builder 4.0.3 → 4.0.5
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js +1 -1
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.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/QueryBuilderParametersState.d.ts +5 -0
- package/lib/stores/QueryBuilderParametersState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderParametersState.js.map +1 -1
- package/lib/stores/QueryBuilderState.d.ts +4 -2
- package/lib/stores/QueryBuilderState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderState.js +40 -8
- package/lib/stores/QueryBuilderState.js.map +1 -1
- package/lib/stores/QueryBuilderStateBuilder.d.ts +8 -3
- package/lib/stores/QueryBuilderStateBuilder.d.ts.map +1 -1
- package/lib/stores/QueryBuilderStateBuilder.js +21 -9
- package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts +2 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js +6 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js.map +1 -1
- package/package.json +8 -8
- package/src/components/fetch-structure/QueryBuilderGraphFetchTreePanel.tsx +8 -0
- package/src/stores/QueryBuilderParametersState.ts +9 -0
- package/src/stores/QueryBuilderState.ts +51 -11
- package/src/stores/QueryBuilderStateBuilder.ts +30 -8
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts +7 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderGraphFetchTreeState.js","sourceRoot":"","sources":["../../../../src/stores/fetch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GraphFetchTreeState.js","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAKL,mCAAmC,EACnC,kBAAkB,EAClB,kBAAkB,GAEnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,2BAA2B,EAC3B,uBAAuB,GACxB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,kCAAkC,EAClC,iCAAiC,GAElC,MAAM,6CAA6C,CAAC;AACrD,OAAO,EACL,8BAA8B,EAC9B,6CAA6C,GAC9C,MAAM,qDAAqD,CAAC;AAE7D,OAAO,EACL,qBAAqB,EACrB,eAAe,GAChB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,0DAA0D,CAAC;AAC5F,OAAO,EACL,SAAS,EACT,oBAAoB,EACpB,SAAS,EAET,yBAAyB,EACzB,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,kCAAkC,EAAE,MAAM,qCAAqC,CAAC;AACzF,OAAO,EAAE,kCAAkC,EAAE,MAAM,+CAA+C,CAAC;AAGnG,MAAM,CAAN,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,mCAAa,CAAA;IACb,yDAAmC,CAAA;AACrC,CAAC,EAHW,kBAAkB,GAAlB,kBAAkB,KAAlB,kBAAkB,QAG7B;AAED,MAAM,CAAN,IAAY,8BAEX;AAFD,WAAY,8BAA8B;IACxC,mDAAiB,CAAA;AACnB,CAAC,EAFW,8BAA8B,GAA9B,8BAA8B,KAA9B,8BAA8B,QAEzC;AAED,MAAM,6BAA6B,GAAG,OAAO,CAAC;AAE9C,MAAM,OAAO,uBAAuB;IAClC,WAAW,CAAS;IACpB,cAAc,CAAqB;IACnC,WA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AAS,CAAC;YACf,kCAAkC,CAAC,iBAAiB;YACpD,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE;YACzB,IAAI,CAAC,QAAQ,EAAE,IAAI,IAAI,EAAE;SAC1B,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-query-builder",
|
3
|
-
"version": "4.0.
|
3
|
+
"version": "4.0.5",
|
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.0.
|
46
|
-
"@finos/legend-art": "7.0.
|
47
|
-
"@finos/legend-graph": "30.0.
|
48
|
-
"@finos/legend-lego": "1.0.
|
49
|
-
"@finos/legend-server-depot": "6.0.
|
50
|
-
"@finos/legend-shared": "10.0.
|
51
|
-
"@finos/legend-storage": "3.0.
|
45
|
+
"@finos/legend-application": "15.0.18",
|
46
|
+
"@finos/legend-art": "7.0.19",
|
47
|
+
"@finos/legend-graph": "30.0.2",
|
48
|
+
"@finos/legend-lego": "1.0.15",
|
49
|
+
"@finos/legend-server-depot": "6.0.11",
|
50
|
+
"@finos/legend-shared": "10.0.10",
|
51
|
+
"@finos/legend-storage": "3.0.60",
|
52
52
|
"@testing-library/react": "14.0.0",
|
53
53
|
"@types/react": "18.2.7",
|
54
54
|
"@types/react-dom": "18.2.4",
|
@@ -264,6 +264,14 @@ const PureSerializationConfigModal = observer(
|
|
264
264
|
: undefined
|
265
265
|
}
|
266
266
|
/>
|
267
|
+
<PanelFormTextField
|
268
|
+
name="Date Time Format"
|
269
|
+
value={config.dateTimeFormat}
|
270
|
+
isReadOnly={false}
|
271
|
+
update={(value: string | undefined): void =>
|
272
|
+
config.setDateTimeFormat(value === '' ? undefined : value)
|
273
|
+
}
|
274
|
+
/>
|
267
275
|
<PanelFormBooleanField
|
268
276
|
name="Include Type"
|
269
277
|
value={config.includeType}
|
@@ -22,6 +22,15 @@ import {
|
|
22
22
|
type LambdaParameterState,
|
23
23
|
LambdaParametersState,
|
24
24
|
} from './shared/LambdaParameterState.js';
|
25
|
+
import type {
|
26
|
+
ValueSpecification,
|
27
|
+
VariableExpression,
|
28
|
+
} from '@finos/legend-graph';
|
29
|
+
|
30
|
+
export interface QueryBuilderParameterValue {
|
31
|
+
variable: string | VariableExpression;
|
32
|
+
value: ValueSpecification | undefined;
|
33
|
+
}
|
25
34
|
|
26
35
|
export class QueryBuilderParametersState
|
27
36
|
extends LambdaParametersState
|
@@ -79,7 +79,10 @@ import type {
|
|
79
79
|
GenericLegendApplicationStore,
|
80
80
|
} from '@finos/legend-application';
|
81
81
|
import { QueryFunctionsExplorerState } from './explorer/QueryFunctionsExplorerState.js';
|
82
|
-
import {
|
82
|
+
import {
|
83
|
+
QueryBuilderParametersState,
|
84
|
+
type QueryBuilderParameterValue,
|
85
|
+
} from './QueryBuilderParametersState.js';
|
83
86
|
import type { QueryBuilderFilterOperator } from './filter/QueryBuilderFilterOperator.js';
|
84
87
|
import { getQueryBuilderCoreFilterOperators } from './filter/QueryBuilderFilterOperatorLoader.js';
|
85
88
|
import { QueryBuilderChangeDetectionState } from './QueryBuilderChangeDetectionState.js';
|
@@ -371,6 +374,20 @@ export abstract class QueryBuilderState implements CommandRegistrar {
|
|
371
374
|
this.setRuntimeValue(val);
|
372
375
|
}
|
373
376
|
|
377
|
+
getCurrentParameterValues(): Map<string, ValueSpecification> | undefined {
|
378
|
+
if (this.parametersState.parameterStates.length) {
|
379
|
+
const result = new Map<string, ValueSpecification>();
|
380
|
+
this.parametersState.parameterStates.forEach((paramState) => {
|
381
|
+
const val = paramState.value;
|
382
|
+
if (val) {
|
383
|
+
result.set(paramState.variableName, val);
|
384
|
+
}
|
385
|
+
});
|
386
|
+
return result;
|
387
|
+
}
|
388
|
+
return undefined;
|
389
|
+
}
|
390
|
+
|
374
391
|
buildQuery(options?: { keepSourceInformation: boolean }): RawLambda {
|
375
392
|
if (!this.isQuerySupported) {
|
376
393
|
const parameters = this.parametersState.parameterStates.map((e) =>
|
@@ -444,8 +461,13 @@ export abstract class QueryBuilderState implements CommandRegistrar {
|
|
444
461
|
return PrimitiveType.STRING;
|
445
462
|
}
|
446
463
|
|
447
|
-
initializeWithQuery(
|
448
|
-
|
464
|
+
initializeWithQuery(
|
465
|
+
query: RawLambda,
|
466
|
+
defaultParameterValues?: Map<string, ValueSpecification>,
|
467
|
+
): void {
|
468
|
+
this.rebuildWithQuery(query, {
|
469
|
+
defaultParameterValues,
|
470
|
+
});
|
449
471
|
this.resetQueryResult();
|
450
472
|
this.changeDetectionState.initialize(query);
|
451
473
|
}
|
@@ -458,18 +480,32 @@ export abstract class QueryBuilderState implements CommandRegistrar {
|
|
458
480
|
options?: {
|
459
481
|
preserveParameterValues?: boolean | undefined;
|
460
482
|
preserveResult?: boolean | undefined;
|
483
|
+
defaultParameterValues?: Map<string, ValueSpecification> | undefined;
|
461
484
|
},
|
462
485
|
): void {
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
>();
|
486
|
+
let previousStateParameterValues:
|
487
|
+
| Map<string, QueryBuilderParameterValue>
|
488
|
+
| undefined = undefined;
|
467
489
|
try {
|
490
|
+
const paramValues = new Map<string, QueryBuilderParameterValue>();
|
468
491
|
if (options?.preserveParameterValues) {
|
469
|
-
// Preserving parameter values
|
470
492
|
this.parametersState.parameterStates.forEach((ps) => {
|
471
|
-
|
493
|
+
paramValues.set(ps.parameter.name, {
|
494
|
+
variable: ps.parameter,
|
495
|
+
value: ps.value,
|
496
|
+
});
|
472
497
|
});
|
498
|
+
previousStateParameterValues = paramValues;
|
499
|
+
} else if (options?.defaultParameterValues?.size) {
|
500
|
+
Array.from(options.defaultParameterValues.entries()).forEach(
|
501
|
+
([k, v]) => {
|
502
|
+
paramValues.set(k, {
|
503
|
+
variable: k,
|
504
|
+
value: v,
|
505
|
+
});
|
506
|
+
},
|
507
|
+
);
|
508
|
+
previousStateParameterValues = paramValues;
|
473
509
|
}
|
474
510
|
this.resetQueryResult({ preserveResult: options?.preserveResult });
|
475
511
|
this.resetQueryContent();
|
@@ -492,7 +528,9 @@ export abstract class QueryBuilderState implements CommandRegistrar {
|
|
492
528
|
processQueryLambdaFunction(
|
493
529
|
guaranteeNonNullable(compiledValueSpecification.values[0]),
|
494
530
|
this,
|
495
|
-
|
531
|
+
{
|
532
|
+
parameterValues: previousStateParameterValues,
|
533
|
+
},
|
496
534
|
);
|
497
535
|
}
|
498
536
|
if (this.parametersState.parameterStates.length > 0) {
|
@@ -511,7 +549,9 @@ export abstract class QueryBuilderState implements CommandRegistrar {
|
|
511
549
|
)
|
512
550
|
.map((param) => observe_ValueSpecification(param, this.observerContext))
|
513
551
|
.filter(filterByType(VariableExpression));
|
514
|
-
processParameters(parameters, this,
|
552
|
+
processParameters(parameters, this, {
|
553
|
+
parameterValues: previousStateParameterValues,
|
554
|
+
});
|
515
555
|
}
|
516
556
|
}
|
517
557
|
|
@@ -21,6 +21,7 @@ import {
|
|
21
21
|
guaranteeIsString,
|
22
22
|
guaranteeNonNullable,
|
23
23
|
guaranteeType,
|
24
|
+
isString,
|
24
25
|
UnsupportedOperationError,
|
25
26
|
} from '@finos/legend-shared';
|
26
27
|
import type { QueryBuilderState } from './QueryBuilderState.js';
|
@@ -39,12 +40,13 @@ import {
|
|
39
40
|
type LambdaFunctionInstanceValue,
|
40
41
|
PrimitiveInstanceValue,
|
41
42
|
SimpleFunctionExpression,
|
42
|
-
|
43
|
+
VariableExpression,
|
43
44
|
type AbstractPropertyExpression,
|
44
45
|
getMilestoneTemporalStereotype,
|
45
46
|
type INTERNAL__PropagatedValue,
|
46
47
|
type ValueSpecification,
|
47
48
|
SUPPORTED_FUNCTIONS,
|
49
|
+
isSuperType,
|
48
50
|
} from '@finos/legend-graph';
|
49
51
|
import { processTDSPostFilterExpression } from './fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.js';
|
50
52
|
import { processFilterExpression } from './filter/QueryBuilderFilterStateBuilder.js';
|
@@ -75,6 +77,7 @@ import { processTDS_OLAPGroupByExpression } from './fetch-structure/tds/window/Q
|
|
75
77
|
import { processWatermarkExpression } from './watermark/QueryBuilderWatermarkStateBuilder.js';
|
76
78
|
import { QueryBuilderConstantExpressionState } from './QueryBuilderConstantsState.js';
|
77
79
|
import { checkIfEquivalent } from './milestoning/QueryBuilderMilestoningHelper.js';
|
80
|
+
import type { QueryBuilderParameterValue } from './QueryBuilderParametersState.js';
|
78
81
|
|
79
82
|
const processGetAllExpression = (
|
80
83
|
expression: SimpleFunctionExpression,
|
@@ -654,15 +657,32 @@ export class QueryBuilderValueSpecificationProcessor
|
|
654
657
|
export const processParameters = (
|
655
658
|
parameters: VariableExpression[],
|
656
659
|
queryBuilderState: QueryBuilderState,
|
657
|
-
|
660
|
+
options?: {
|
661
|
+
parameterValues?: Map<string, QueryBuilderParameterValue> | undefined;
|
662
|
+
},
|
658
663
|
): void => {
|
659
664
|
const queryParameterState = queryBuilderState.parametersState;
|
660
665
|
parameters.forEach((parameter) => {
|
661
666
|
let matchingParameterValue: ValueSpecification | undefined;
|
662
|
-
if (parameterValues) {
|
663
|
-
Array.from(parameterValues.entries()).forEach(([key, value]) => {
|
664
|
-
|
665
|
-
|
667
|
+
if (options?.parameterValues) {
|
668
|
+
Array.from(options.parameterValues.entries()).forEach(([key, value]) => {
|
669
|
+
const variable = value.variable;
|
670
|
+
if (
|
671
|
+
variable instanceof VariableExpression &&
|
672
|
+
checkIfEquivalent(variable, parameter)
|
673
|
+
) {
|
674
|
+
matchingParameterValue = value.value;
|
675
|
+
} else if (isString(variable) && variable === parameter.name) {
|
676
|
+
// TODO: we may want to do further checks here like multiplicity checks
|
677
|
+
const instanceType = value.value?.genericType?.value.rawType;
|
678
|
+
const paramType = parameter.genericType?.value.rawType;
|
679
|
+
if (
|
680
|
+
instanceType &&
|
681
|
+
paramType &&
|
682
|
+
isSuperType(paramType, instanceType)
|
683
|
+
) {
|
684
|
+
matchingParameterValue = value.value;
|
685
|
+
}
|
666
686
|
}
|
667
687
|
});
|
668
688
|
}
|
@@ -684,13 +704,15 @@ export const processParameters = (
|
|
684
704
|
export const processQueryLambdaFunction = (
|
685
705
|
lambdaFunction: LambdaFunction,
|
686
706
|
queryBuilderState: QueryBuilderState,
|
687
|
-
|
707
|
+
parameterOptions?: {
|
708
|
+
parameterValues?: Map<string, QueryBuilderParameterValue> | undefined;
|
709
|
+
},
|
688
710
|
): void => {
|
689
711
|
if (lambdaFunction.functionType.parameters.length) {
|
690
712
|
processParameters(
|
691
713
|
lambdaFunction.functionType.parameters,
|
692
714
|
queryBuilderState,
|
693
|
-
|
715
|
+
parameterOptions,
|
694
716
|
);
|
695
717
|
}
|
696
718
|
lambdaFunction.expressionSequence.map((expression) =>
|
@@ -72,6 +72,7 @@ const DEFAULT_PURE_CONFIG_TYPE_NAME = '@type';
|
|
72
72
|
|
73
73
|
export class PureSerializationConfig {
|
74
74
|
typeKeyName: string;
|
75
|
+
dateTimeFormat: string | undefined;
|
75
76
|
includeType: boolean | undefined;
|
76
77
|
includeEnumType: boolean | undefined;
|
77
78
|
removePropertiesWithNullValues: boolean | undefined;
|
@@ -85,12 +86,14 @@ export class PureSerializationConfig {
|
|
85
86
|
typeKeyName: observable,
|
86
87
|
includeType: observable,
|
87
88
|
includeEnumType: observable,
|
89
|
+
dateTimeFormat: observable,
|
88
90
|
removePropertiesWithNullValues: observable,
|
89
91
|
removePropertiesWithEmptySets: observable,
|
90
92
|
fullyQualifiedTypePath: observable,
|
91
93
|
includeObjectReference: observable,
|
92
94
|
setTypeName: action,
|
93
95
|
setIncludeObjectReference: action,
|
96
|
+
setDateTimeFormat: action,
|
94
97
|
setIncludeType: action,
|
95
98
|
setFullyQualifiedTypePath: action,
|
96
99
|
setRemovePropertiesWithEmptySets: action,
|
@@ -110,6 +113,10 @@ export class PureSerializationConfig {
|
|
110
113
|
return config;
|
111
114
|
}
|
112
115
|
|
116
|
+
setDateTimeFormat(val: string | undefined): void {
|
117
|
+
this.dateTimeFormat = val;
|
118
|
+
}
|
119
|
+
|
113
120
|
setTypeName(val: string): void {
|
114
121
|
this.typeKeyName = val;
|
115
122
|
}
|