@finos/legend-query-builder 4.5.0 → 4.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. package/lib/__lib__/QueryBuilderTesting.d.ts +1 -0
  2. package/lib/__lib__/QueryBuilderTesting.d.ts.map +1 -1
  3. package/lib/__lib__/QueryBuilderTesting.js +1 -0
  4. package/lib/__lib__/QueryBuilderTesting.js.map +1 -1
  5. package/lib/components/QueryBuilderConstantExpressionPanel.d.ts.map +1 -1
  6. package/lib/components/QueryBuilderConstantExpressionPanel.js +11 -4
  7. package/lib/components/QueryBuilderConstantExpressionPanel.js.map +1 -1
  8. package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
  9. package/lib/components/QueryBuilderResultPanel.js +1 -1
  10. package/lib/components/QueryBuilderResultPanel.js.map +1 -1
  11. package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +1 -1
  12. package/lib/components/filter/QueryBuilderFilterPanel.js +21 -8
  13. package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
  14. package/lib/components/shared/BasicValueSpecificationEditor.js +1 -1
  15. package/lib/components/shared/BasicValueSpecificationEditor.js.map +1 -1
  16. package/lib/components/shared/CustomDatePicker.d.ts.map +1 -1
  17. package/lib/components/shared/CustomDatePicker.js +6 -2
  18. package/lib/components/shared/CustomDatePicker.js.map +1 -1
  19. package/lib/components/shared/QueryBuilderVariableSelector.d.ts.map +1 -1
  20. package/lib/components/shared/QueryBuilderVariableSelector.js +11 -3
  21. package/lib/components/shared/QueryBuilderVariableSelector.js.map +1 -1
  22. package/lib/index.css +2 -2
  23. package/lib/index.css.map +1 -1
  24. package/lib/package.json +1 -1
  25. package/lib/stores/QueryBuilderConstantsState.d.ts +10 -3
  26. package/lib/stores/QueryBuilderConstantsState.d.ts.map +1 -1
  27. package/lib/stores/QueryBuilderConstantsState.js +23 -8
  28. package/lib/stores/QueryBuilderConstantsState.js.map +1 -1
  29. package/lib/stores/QueryBuilderStateBuilder.d.ts +1 -1
  30. package/lib/stores/QueryBuilderStateBuilder.d.ts.map +1 -1
  31. package/lib/stores/QueryBuilderStateBuilder.js +9 -4
  32. package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
  33. package/lib/stores/QueryBuilderValueSpecificationBuilder.js +1 -0
  34. package/lib/stores/QueryBuilderValueSpecificationBuilder.js.map +1 -1
  35. package/lib/stores/filter/QueryBuilderFilterState.d.ts +3 -2
  36. package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +1 -1
  37. package/lib/stores/filter/QueryBuilderFilterState.js +7 -5
  38. package/lib/stores/filter/QueryBuilderFilterState.js.map +1 -1
  39. package/lib/stores/filter/QueryBuilderFilterStateBuilder.d.ts.map +1 -1
  40. package/lib/stores/filter/QueryBuilderFilterStateBuilder.js +1 -1
  41. package/lib/stores/filter/QueryBuilderFilterStateBuilder.js.map +1 -1
  42. package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.d.ts.map +1 -1
  43. package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js +5 -1
  44. package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js.map +1 -1
  45. package/package.json +3 -3
  46. package/src/__lib__/QueryBuilderTesting.ts +1 -0
  47. package/src/components/QueryBuilderConstantExpressionPanel.tsx +18 -9
  48. package/src/components/QueryBuilderResultPanel.tsx +4 -1
  49. package/src/components/filter/QueryBuilderFilterPanel.tsx +43 -7
  50. package/src/components/shared/BasicValueSpecificationEditor.tsx +1 -1
  51. package/src/components/shared/CustomDatePicker.tsx +6 -7
  52. package/src/components/shared/QueryBuilderVariableSelector.tsx +19 -8
  53. package/src/stores/QueryBuilderConstantsState.ts +43 -9
  54. package/src/stores/QueryBuilderStateBuilder.ts +20 -8
  55. package/src/stores/QueryBuilderValueSpecificationBuilder.ts +1 -1
  56. package/src/stores/filter/QueryBuilderFilterState.ts +13 -5
  57. package/src/stores/filter/QueryBuilderFilterStateBuilder.ts +1 -0
  58. package/src/stores/filter/QueryBuilderFilterValueSpecificationBuilder.ts +14 -1
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderFilterStateBuilder.js","sourceRoot":"","sources":["../../../src/stores/filter/QueryBuilderFilterStateBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC1B,cAAc,EACd,2BAA2B,EAC3B,iBAAiB,EACjB,wBAAwB,EAExB,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,UAAU,EACV,UAAU,EACV,oBAAoB,EACpB,aAAa,EACb,kBAAkB,EAClB,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,iCAAiC,EAAE,MAAM,2CAA2C,CAAC;AAC9F,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAE1E,OAAO,EAAE,+BAA+B,EAAE,MAAM,4CAA4C,CAAC;AAC7F,OAAO,EAEL,uCAAuC,EACvC,mCAAmC,EACnC,oCAAoC,EACpC,uCAAuC,GACxC,MAAM,8BAA8B,CAAC;AAEtC,MAAM,kCAAkC,GAAG,CACzC,kBAA8C,EAC1B,EAAE;IACtB,IAAI,iBAAiB,GAAuB,kBAAkB,CAAC;IAC/D,OAAO,iBAAiB,YAAY,0BAA0B,EAAE;QAC9D,iBAAiB,GAAG,oBAAoB,CACtC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC,CAAC,CACtC,CAAC;QACF,oGAAoG;QACpG,kDAAkD;QAClD,OACE,iBAAiB,YAAY,wBAAwB;YACrD,iBAAiB,CACf,iBAAiB,CAAC,YAAY,EAC9B,iCAAiC,CAAC,OAAO,CAC1C,EACD;YACA,iBAAiB,GAAG,oBAAoB,CACtC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC,CAAC,CACtC,CAAC;SACH;KACF;IACD,OAAO,aAAa,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAAC;AAC9D,CAAC,CAAC;AAEF,MAAM,iBAAiB,GAAG,CACx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AC,CAAC,CAAC,CAAC;IACpD,UAAU,CACR,YAAY,EACZ,2BAA2B,EAC3B,yFAAyF,CAC1F,CAAC;IAEF,MAAM,UAAU,GAAG,oBAAoB,CACrC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,EACtB,oEAAoE,CACrE,CAAC;IACF,UAAU,CACR,UAAU,CAAC,kBAAkB,CAAC,MAAM,KAAK,CAAC,EAC1C,oFAAoF,CACrF,CAAC;IACF,MAAM,cAAc,GAAG,aAAa,CAClC,UAAU,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAChC,wBAAwB,EACxB,oFAAoF,CACrF,CAAC;IAEF,UAAU,CACR,UAAU,CAAC,YAAY,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC,EAC/C,8EAA8E,CAC/E,CAAC;IACF,WAAW,CAAC,sBAAsB,CAChC,aAAa,CACX,UAAU,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,EACrC,kBAAkB,EAClB,8EAA8E,CAC/E,CAAC,IAAI,CACP,CAAC;IAEF,iBAAiB,CAAC,cAAc,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;IAE1D;;;;;OAKG;IACH,WAAW,CAAC,YAAY,EAAE,CAAC;AAC7B,CAAC,CAAC"}
1
+ {"version":3,"file":"QueryBuilderFilterStateBuilder.js","sourceRoot":"","sources":["../../../src/stores/filter/QueryBuilderFilterStateBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC1B,cAAc,EACd,2BAA2B,EAC3B,iBAAiB,EACjB,wBAAwB,EAExB,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,UAAU,EACV,UAAU,EACV,oBAAoB,EACpB,aAAa,EACb,kBAAkB,EAClB,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,iCAAiC,EAAE,MAAM,2CAA2C,CAAC;AAC9F,OAAO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,CAAC,EAC/C,8EAA8E,CAC/E,CAAC;IACF,WAAW,CAAC,sBAAsB,CAChC,aAAa,CACX,UAAU,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,EACrC,kBAAkB,EAClB,8EAA8E,CAC/E,CAAC,IAAI,CACP,CAAC;IAEF,iBAAiB,CAAC,cAAc,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;IAE1D;;;;;OAKG;IACH,WAAW,CAAC,YAAY,EAAE,CAAC;AAC7B,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderFilterValueSpecificationBuilder.d.ts","sourceRoot":"","sources":["../../../src/stores/filter/QueryBuilderFilterValueSpecificationBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,OAAO,EAEL,KAAK,cAAc,EAGpB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EACL,KAAK,uBAAuB,EAM7B,MAAM,8BAA8B,CAAC;AA0ItC,eAAO,MAAM,qBAAqB,gBACnB,uBAAuB,kBACpB,cAAc,KAC7B,IA4BF,CAAC"}
1
+ {"version":3,"file":"QueryBuilderFilterValueSpecificationBuilder.d.ts","sourceRoot":"","sources":["../../../src/stores/filter/QueryBuilderFilterValueSpecificationBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,OAAO,EAEL,KAAK,cAAc,EAGpB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EACL,KAAK,uBAAuB,EAM7B,MAAM,8BAA8B,CAAC;AAuJtC,eAAO,MAAM,qBAAqB,gBACnB,uBAAuB,kBACpB,cAAc,KAC7B,IA4BF,CAAC"}
@@ -20,6 +20,7 @@ import { fromGroupOperation } from '../QueryBuilderGroupOperationHelper.js';
20
20
  import { QueryBuilderFilterTreeConditionNodeData, QueryBuilderFilterTreeGroupNodeData, QueryBuilderFilterTreeExistsNodeData, QueryBuilderFilterTreeOperationNodeData, } from './QueryBuilderFilterState.js';
21
21
  import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../graph/QueryBuilderMetaModelConst.js';
22
22
  import { DEFAULT_LAMBDA_VARIABLE_NAME } from '../QueryBuilderConfig.js';
23
+ import { buildPropertyExpressionChain } from '../QueryBuilderValueSpecificationBuilderHelper.js';
23
24
  const buildFilterConditionExpression = (filterState, node) => {
24
25
  if (node instanceof QueryBuilderFilterTreeConditionNodeData) {
25
26
  const parentNode = node.parentId
@@ -70,7 +71,10 @@ const buildFilterConditionExpression = (filterState, node) => {
70
71
  ? guaranteeType(filterState.nodes.get(guaranteeNonNullable(parentNode.parentId)), QueryBuilderFilterTreeOperationNodeData)
71
72
  : undefined;
72
73
  }
73
- const propertyExpression = guaranteeNonNullable(node.propertyExpression);
74
+ const lambdaParameterName = node.parentId
75
+ ? guaranteeType(filterState.nodes.get(guaranteeNonNullable(node.parentId)), QueryBuilderFilterTreeOperationNodeData).lambdaParameterName
76
+ : undefined;
77
+ const propertyExpression = guaranteeNonNullable(buildPropertyExpressionChain(node.propertyExpressionState.propertyExpression, node.propertyExpressionState.queryBuilderState, lambdaParameterName ?? filterState.lambdaParameterName));
74
78
  const clauses = node.childrenIds
75
79
  .map((e) => filterState.nodes.get(e))
76
80
  .filter(isNonNullable)
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderFilterValueSpecificationBuilder.js","sourceRoot":"","sources":["../../../src/stores/filter/QueryBuilderFilterValueSpecificationBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,aAAa,GACd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAGL,0BAA0B,EAC1B,wBAAwB,GACzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,uCAAuC,EAAE,MAAM,4CAA4C,CAAC;AACrG,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAEL,uCAAuC,EACvC,mCAAmC,EAEn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;IACD,yBAAyB;IACzB,MAAM,gBAAgB,GAAG,IAAI,wBAAwB,CACnD,0BAA0B,CAAC,iCAAiC,CAAC,MAAM,CAAC,CACrE,CAAC;IACF,MAAM,iBAAiB,GAAG,oBAAoB,CAC5C,cAAc,CAAC,kBAAkB,CAAC,CAAC,CAAC,CACrC,CAAC;IACF,YAAY;IACZ,gBAAgB,CAAC,gBAAgB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;IAC1D,YAAY;IACZ,gBAAgB,CAAC,gBAAgB,CAAC,IAAI,CACpC,uCAAuC,CACrC,WAAW,CAAC,mBAAmB,EAC/B,0BAA0B,EAC1B,WAAW,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CACtD,CACF,CAAC;IACF,sCAAsC;IACtC,cAAc,CAAC,kBAAkB,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC;AAC1D,CAAC,CAAC"}
1
+ {"version":3,"file":"QueryBuilderFilterValueSpecificationBuilder.js","sourceRoot":"","sources":["../../../src/stores/filter/QueryBuilderFilterValueSpecificationBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,aAAa,GACd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAGL,0BAA0B,EAC1B,wBAAwB,GACzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,uCAAuC,EAAE,MAAM,4CAA4C,CAAC;AACrG,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAEL,uCAAuC,EACvC,mCAAmC,EAEnC,oCAAoC,EACpC,uCAAuC,GACxC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,iCAAiC,EAAE,MAAM,2CAA2C,CAAC;AAC9F,OAAO,EAAE,4BAA4B,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,EAAE,4BAA4B,EAAE,MAAM,mDAAmD,CAAC;AAEjG,MAA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AAC,CAAC,EAAE,EAAE,CAAC,8BAA8B,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;SAC1D,MAAM,CAAC,aAAa,CAAC,CAAC;IAEzB,IAAI,CAAC,0BAA0B,CAAC,MAAM,EAAE;QACtC,OAAO;KACR;IACD,yBAAyB;IACzB,MAAM,gBAAgB,GAAG,IAAI,wBAAwB,CACnD,0BAA0B,CAAC,iCAAiC,CAAC,MAAM,CAAC,CACrE,CAAC;IACF,MAAM,iBAAiB,GAAG,oBAAoB,CAC5C,cAAc,CAAC,kBAAkB,CAAC,CAAC,CAAC,CACrC,CAAC;IACF,YAAY;IACZ,gBAAgB,CAAC,gBAAgB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;IAC1D,YAAY;IACZ,gBAAgB,CAAC,gBAAgB,CAAC,IAAI,CACpC,uCAAuC,CACrC,WAAW,CAAC,mBAAmB,EAC/B,0BAA0B,EAC1B,WAAW,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CACtD,CACF,CAAC;IACF,sCAAsC;IACtC,cAAc,CAAC,kBAAkB,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC;AAC1D,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-query-builder",
3
- "version": "4.5.0",
3
+ "version": "4.6.0",
4
4
  "description": "Legend query builder core",
5
5
  "keywords": [
6
6
  "legend",
@@ -44,8 +44,8 @@
44
44
  "dependencies": {
45
45
  "@finos/legend-application": "15.0.40",
46
46
  "@finos/legend-art": "7.0.40",
47
- "@finos/legend-graph": "31.2.0",
48
- "@finos/legend-lego": "1.1.27",
47
+ "@finos/legend-graph": "31.2.1",
48
+ "@finos/legend-lego": "1.1.29",
49
49
  "@finos/legend-server-depot": "6.0.29",
50
50
  "@finos/legend-shared": "10.0.25",
51
51
  "@finos/legend-storage": "3.0.75",
@@ -27,6 +27,7 @@ export enum QUERY_BUILDER_TEST_ID {
27
27
  QUERY_BUILDER_EXPLORER = 'query__builder__explorer',
28
28
  QUERY_BUILDER_PROPERTY_SEARCH_PANEL = 'query__builder__property__search__panel',
29
29
  QUERY_BUILDER_RESULT_PANEL = 'query__builder__result__panel',
30
+ QUERY_BUILDER_RESULT_ANALYTICS = 'query__builder__result__analytics',
30
31
  QUERY_BUILDER_PARAMETERS = 'query-builder__parameters',
31
32
  QUERY_BUILDER_CONSTANTS = 'query-builder__constants',
32
33
  }
@@ -45,19 +45,22 @@ import { generateEnumerableNameFromToken } from '@finos/legend-shared';
45
45
  import { observer } from 'mobx-react-lite';
46
46
  import { DEFAULT_CONSTANT_VARIABLE_NAME } from '../stores/QueryBuilderConfig.js';
47
47
  import type { QueryBuilderState } from '../stores/QueryBuilderState.js';
48
- import { QueryBuilderConstantExpressionState } from '../stores/QueryBuilderConstantsState.js';
48
+ import {
49
+ type QueryBuilderConstantExpressionState,
50
+ QueryBuilderSimpleConstantExpressionState,
51
+ } from '../stores/QueryBuilderConstantsState.js';
49
52
  import { buildDefaultInstanceValue } from '../stores/shared/ValueSpecificationEditorHelper.js';
50
53
  import { BasicValueSpecificationEditor } from './shared/BasicValueSpecificationEditor.js';
51
54
  import { VariableViewer } from './shared/QueryBuilderVariableSelector.js';
52
55
  import { QUERY_BUILDER_TEST_ID } from '../__lib__/QueryBuilderTesting.js';
53
56
  import { QUERY_BUILDER_DOCUMENTATION_KEY } from '../__lib__/QueryBuilderDocumentation.js';
54
- import { useState } from 'react';
57
+ import React, { useState } from 'react';
55
58
  import { variableExpression_setName } from '../stores/shared/ValueSpecificationModifierHelper.js';
56
59
 
57
60
  // NOTE: We currently only allow constant variables for primitive types of multiplicity ONE.
58
61
  // This is why we don't show multiplicity in the editor.
59
62
  const QueryBuilderConstantExpressionEditor = observer(
60
- (props: { constantState: QueryBuilderConstantExpressionState }) => {
63
+ (props: { constantState: QueryBuilderSimpleConstantExpressionState }) => {
61
64
  const { constantState } = props;
62
65
  const queryBuilderState = constantState.queryBuilderState;
63
66
  const applicationStore = queryBuilderState.applicationStore;
@@ -232,7 +235,7 @@ export const QueryBuilderConstantExpressionPanel = observer(
232
235
  Multiplicity.ONE,
233
236
  );
234
237
  variableEx.genericType = defaultVal.genericType;
235
- const constState = new QueryBuilderConstantExpressionState(
238
+ const constState = new QueryBuilderSimpleConstantExpressionState(
236
239
  queryBuilderState,
237
240
  variableEx,
238
241
  defaultVal,
@@ -241,6 +244,15 @@ export const QueryBuilderConstantExpressionPanel = observer(
241
244
  }
242
245
  };
243
246
 
247
+ const renderConstantModal = (
248
+ val: QueryBuilderConstantExpressionState,
249
+ ): React.ReactNode => {
250
+ if (val instanceof QueryBuilderSimpleConstantExpressionState) {
251
+ return <QueryBuilderConstantExpressionEditor constantState={val} />;
252
+ }
253
+ return null;
254
+ };
255
+
244
256
  return (
245
257
  <div
246
258
  data-testid={QUERY_BUILDER_TEST_ID.QUERY_BUILDER_CONSTANTS}
@@ -300,11 +312,8 @@ export const QueryBuilderConstantExpressionPanel = observer(
300
312
  )}
301
313
  </>
302
314
  </div>
303
- {constantState.selectedConstant && (
304
- <QueryBuilderConstantExpressionEditor
305
- constantState={constantState.selectedConstant}
306
- />
307
- )}
315
+ {constantState.selectedConstant &&
316
+ renderConstantModal(constantState.selectedConstant)}
308
317
  </div>
309
318
  );
310
319
  },
@@ -1069,7 +1069,10 @@ export const QueryBuilderResultPanel = observer(
1069
1069
  </div>
1070
1070
  )}
1071
1071
 
1072
- <div className="query-builder__result__analytics">
1072
+ <div
1073
+ data-testid={QUERY_BUILDER_TEST_ID.QUERY_BUILDER_RESULT_ANALYTICS}
1074
+ className="query-builder__result__analytics"
1075
+ >
1073
1076
  {resultDescription ?? ''}
1074
1077
  </div>
1075
1078
  {executionResult && resultState.checkForStaleResults && (
@@ -45,6 +45,7 @@ import {
45
45
  MoreVerticalIcon,
46
46
  MenuContentItemIcon,
47
47
  MenuContentItemLabel,
48
+ InfoCircleIcon,
48
49
  } from '@finos/legend-art';
49
50
  import {
50
51
  type QueryBuilderFilterConditionDragSource,
@@ -66,7 +67,10 @@ import {
66
67
  buildPropertyExpressionFromExplorerTreeNodeData,
67
68
  QUERY_BUILDER_EXPLORER_TREE_DND_TYPE,
68
69
  } from '../../stores/explorer/QueryBuilderExplorerState.js';
69
- import { QueryBuilderPropertyExpressionBadge } from '../QueryBuilderPropertyExpressionEditor.js';
70
+ import {
71
+ QueryBuilderPropertyExpressionBadge,
72
+ QueryBuilderPropertyExpressionEditor,
73
+ } from '../QueryBuilderPropertyExpressionEditor.js';
70
74
  import type { QueryBuilderState } from '../../stores/QueryBuilderState.js';
71
75
  import {
72
76
  assertErrorThrown,
@@ -242,9 +246,12 @@ export const buildFilterTreeWithExists = (
242
246
  const parentPropertyChainIndex = existsLambdaPropertyChains.findIndex(
243
247
  (p) =>
244
248
  p instanceof AbstractPropertyExpression &&
245
- p.func.value === targetDropNode.propertyExpression.func.value &&
249
+ p.func.value ===
250
+ targetDropNode.propertyExpressionState.propertyExpression.func
251
+ .value &&
246
252
  p.func.ownerReference.value.path ===
247
- targetDropNode.propertyExpression.func.ownerReference.value.path,
253
+ targetDropNode.propertyExpressionState.propertyExpression.func
254
+ .ownerReference.value.path,
248
255
  );
249
256
  if (parentPropertyChainIndex >= 0) {
250
257
  parentNode = targetDropNode;
@@ -281,9 +288,10 @@ export const buildFilterTreeWithExists = (
281
288
  cn instanceof QueryBuilderFilterTreeExistsNodeData &&
282
289
  p.func.value ===
283
290
  guaranteeType(cn, QueryBuilderFilterTreeExistsNodeData)
284
- .propertyExpression.func.value &&
291
+ .propertyExpressionState.propertyExpression.func.value &&
285
292
  p.func.ownerReference.value.path ===
286
- cn.propertyExpression.func.ownerReference.value.path,
293
+ cn.propertyExpressionState.propertyExpression.func.ownerReference
294
+ .value.path,
287
295
  );
288
296
  if (parentPropertyChainIndex >= 0) {
289
297
  parentNode = targetDropNode;
@@ -302,7 +310,7 @@ export const buildFilterTreeWithExists = (
302
310
  // 3. Create exists tree node for all the property chains and add them to the filter tree
303
311
  for (let i = 0; i < existsLambdaPropertyChains.length - 1; ++i) {
304
312
  const existsNode: QueryBuilderFilterTreeExistsNodeData =
305
- new QueryBuilderFilterTreeExistsNodeData(parentNode?.id);
313
+ new QueryBuilderFilterTreeExistsNodeData(filterState, parentNode?.id);
306
314
  existsNode.setPropertyExpression(
307
315
  existsLambdaPropertyChains[i] as AbstractPropertyExpression,
308
316
  );
@@ -456,6 +464,15 @@ const QueryBuilderFilterExistsConditionEditor = observer(
456
464
  isDroppable: boolean;
457
465
  }) => {
458
466
  const { node, humanizePropertyName, isDragOver, isDroppable } = props;
467
+ const hasDerivedPropertyInExpression = Boolean(
468
+ node.propertyExpressionState.derivedPropertyExpressionStates.length,
469
+ );
470
+ const isValid = node.propertyExpressionState.isValid;
471
+ const setDerivedPropertyArguments = (): void => {
472
+ if (hasDerivedPropertyInExpression) {
473
+ node.propertyExpressionState.setIsEditingDerivedProperty(true);
474
+ }
475
+ };
459
476
 
460
477
  return (
461
478
  <div className="query-builder-filter-tree__node__label__content dnd__entry__container">
@@ -470,13 +487,32 @@ const QueryBuilderFilterExistsConditionEditor = observer(
470
487
  >
471
488
  <div className="query-builder-filter-tree__exists-node__label">
472
489
  {getPropertyChainName(
473
- node.propertyExpression,
490
+ node.propertyExpressionState.propertyExpression,
474
491
  humanizePropertyName,
475
492
  )}
476
493
  </div>
477
494
  <div className="query-builder-filter-tree__exists-node__exists--label">
478
495
  exists
479
496
  </div>
497
+ {hasDerivedPropertyInExpression && (
498
+ <button
499
+ className={clsx(
500
+ 'query-builder-filter-tree__exists-node__exists--label__action',
501
+ {
502
+ 'query-builder-filter-tree__exists-node__exists--label__action--error':
503
+ !isValid,
504
+ },
505
+ )}
506
+ tabIndex={-1}
507
+ onClick={setDerivedPropertyArguments}
508
+ title="Set Derived Property Argument(s)..."
509
+ >
510
+ {!isValid && <InfoCircleIcon />} (...)
511
+ </button>
512
+ )}
513
+ <QueryBuilderPropertyExpressionEditor
514
+ propertyExpressionState={node.propertyExpressionState}
515
+ />
480
516
  </div>
481
517
  </PanelEntryDropZonePlaceholder>
482
518
  </div>
@@ -121,7 +121,7 @@ export const VariableInfoTooltip: React.FC<{
121
121
  Type
122
122
  </div>
123
123
  <div className="value-spec-paramater__tooltip__item__value">
124
- {type?.name ?? ''}
124
+ {type?.name ?? '(unknown)'}
125
125
  </div>
126
126
  </div>
127
127
  <div className="value-spec-paramater__tooltip__item">
@@ -840,22 +840,21 @@ const AbsoluteTimeValueSpecificationEditor: React.FC<{
840
840
  const updateAbsoluteTimeValue: React.ChangeEventHandler<HTMLInputElement> = (
841
841
  event,
842
842
  ) => {
843
+ //
844
+ const value = new Date(event.target.value).getUTCSeconds()
845
+ ? event.target.value
846
+ : `${event.target.value}:00`;
843
847
  if (valueSpecification instanceof SimpleFunctionExpression) {
844
848
  setValueSpecification(
845
849
  buildPrimitiveInstanceValue(
846
850
  graph,
847
851
  PRIMITIVE_TYPE.DATETIME,
848
- event.target.value,
852
+ value,
849
853
  observerContext,
850
854
  ),
851
855
  );
852
856
  } else {
853
- instanceValue_setValue(
854
- valueSpecification,
855
- event.target.value,
856
- 0,
857
- observerContext,
858
- );
857
+ instanceValue_setValue(valueSpecification, value, 0, observerContext);
859
858
  if (
860
859
  valueSpecification.genericType.value.rawType.path !==
861
860
  PRIMITIVE_TYPE.DATETIME
@@ -24,9 +24,10 @@ import {
24
24
  useDragPreviewLayer,
25
25
  } from '@finos/legend-art';
26
26
  import {
27
- SimpleFunctionExpression,
28
27
  type ValueSpecification,
28
+ SimpleFunctionExpression,
29
29
  type VariableExpression,
30
+ INTERNAL__UnknownValueSpecification,
30
31
  } from '@finos/legend-graph';
31
32
  import { observer } from 'mobx-react-lite';
32
33
  import { useDrag } from 'react-dnd';
@@ -62,11 +63,12 @@ export const VariableViewer = observer(
62
63
  if (possibleDateLabel) {
63
64
  return possibleDateLabel;
64
65
  }
66
+ } else if (value instanceof INTERNAL__UnknownValueSpecification) {
67
+ return '(calculated)';
65
68
  }
66
69
  return getValueSpecificationStringValue(value);
67
70
  };
68
-
69
- const valueString = constantValue
71
+ const constantValueString = constantValue
70
72
  ? getNameOfValue(constantValue)
71
73
  : undefined;
72
74
  const name = variable.name;
@@ -75,6 +77,15 @@ export const VariableViewer = observer(
75
77
  const isVariableUsed = queryBuilderState.isVariableUsed(variable);
76
78
  const deleteDisabled = isReadOnly || isVariableUsed;
77
79
  const deleteTitle = isVariableUsed ? 'Used in query' : 'Remove';
80
+
81
+ const isEditDisabled =
82
+ isReadOnly ||
83
+ constantValue instanceof INTERNAL__UnknownValueSpecification;
84
+
85
+ const editMessage =
86
+ constantValue instanceof INTERNAL__UnknownValueSpecification
87
+ ? 'Calculated constants can only be edited via text mode'
88
+ : 'Edit';
78
89
  const editVariable = (): void => {
79
90
  actions?.editVariable();
80
91
  };
@@ -115,14 +126,14 @@ export const VariableViewer = observer(
115
126
  </div>
116
127
  <div className="query-builder__variables__variable__label">
117
128
  {name}
118
- {valueString ? (
129
+ {constantValueString ? (
119
130
  <div className="query-builder__constants__value">
120
- {valueString}
131
+ {constantValueString}
121
132
  </div>
122
133
  ) : (
123
134
  <div className="query-builder__variables__variable__type">
124
135
  <div className="query-builder__variables__variable__type__label">
125
- {typeName}
136
+ {typeName ?? 'unknown'}
126
137
  </div>
127
138
  </div>
128
139
  )}
@@ -133,9 +144,9 @@ export const VariableViewer = observer(
133
144
  <button
134
145
  className="query-builder__variables__variable__action"
135
146
  tabIndex={-1}
136
- disabled={isReadOnly}
147
+ disabled={isEditDisabled}
137
148
  onClick={editVariable}
138
- title="Edit"
149
+ title={editMessage}
139
150
  >
140
151
  <PencilIcon />
141
152
  </button>
@@ -17,6 +17,7 @@
17
17
  import {
18
18
  type Type,
19
19
  type ValueSpecification,
20
+ type INTERNAL__UnknownValueSpecification,
20
21
  GenericType,
21
22
  GenericTypeExplicitReference,
22
23
  observe_ValueSpecification,
@@ -37,7 +38,7 @@ import type { QueryBuilderState } from './QueryBuilderState.js';
37
38
  import { buildDefaultInstanceValue } from './shared/ValueSpecificationEditorHelper.js';
38
39
  import { valueSpecification_setGenericType } from './shared/ValueSpecificationModifierHelper.js';
39
40
 
40
- export class QueryBuilderConstantExpressionState implements Hashable {
41
+ export abstract class QueryBuilderConstantExpressionState implements Hashable {
41
42
  readonly queryBuilderState: QueryBuilderState;
42
43
  readonly uuid = uuid();
43
44
  variable: VariableExpression;
@@ -48,13 +49,36 @@ export class QueryBuilderConstantExpressionState implements Hashable {
48
49
  variable: VariableExpression,
49
50
  value: ValueSpecification,
50
51
  ) {
52
+ this.queryBuilderState = queryBuilderState;
53
+ this.variable = variable;
54
+ this.value = value;
55
+ }
56
+
57
+ get hashCode(): string {
58
+ return hashArray([
59
+ QUERY_BUILDER_STATE_HASH_STRUCTURE.CONSTANT_EXPRESSION_STATE,
60
+ this.variable.name,
61
+ this.value,
62
+ ]);
63
+ }
64
+ }
65
+
66
+ export class QueryBuilderSimpleConstantExpressionState
67
+ extends QueryBuilderConstantExpressionState
68
+ implements Hashable
69
+ {
70
+ constructor(
71
+ queryBuilderState: QueryBuilderState,
72
+ variable: VariableExpression,
73
+ value: ValueSpecification,
74
+ ) {
75
+ super(queryBuilderState, variable, value);
51
76
  makeObservable(this, {
52
77
  variable: observable,
53
78
  value: observable,
54
79
  setValueSpec: action,
55
80
  changeValSpecType: action,
56
81
  });
57
- this.queryBuilderState = queryBuilderState;
58
82
  this.value = observe_ValueSpecification(
59
83
  value,
60
84
  this.queryBuilderState.observerContext,
@@ -63,7 +87,6 @@ export class QueryBuilderConstantExpressionState implements Hashable {
63
87
  variable,
64
88
  this.queryBuilderState.observerContext,
65
89
  );
66
- this.variable = variable;
67
90
  }
68
91
 
69
92
  changeValSpecType(type: Type): void {
@@ -106,13 +129,24 @@ export class QueryBuilderConstantExpressionState implements Hashable {
106
129
  );
107
130
  }
108
131
  }
132
+ }
109
133
 
110
- get hashCode(): string {
111
- return hashArray([
112
- QUERY_BUILDER_STATE_HASH_STRUCTURE.CONSTANT_EXPRESSION_STATE,
113
- this.variable.name,
114
- this.value,
115
- ]);
134
+ export class QueryBuilderCalculatedConstantExpressionState
135
+ extends QueryBuilderConstantExpressionState
136
+ implements Hashable
137
+ {
138
+ declare value: INTERNAL__UnknownValueSpecification;
139
+
140
+ constructor(
141
+ queryBuilderState: QueryBuilderState,
142
+ variable: VariableExpression,
143
+ value: INTERNAL__UnknownValueSpecification,
144
+ ) {
145
+ super(queryBuilderState, variable, value);
146
+ makeObservable(this, {
147
+ variable: observable,
148
+ value: observable,
149
+ });
116
150
  }
117
151
  }
118
152
 
@@ -31,7 +31,7 @@ import {
31
31
  type GraphFetchTreeInstanceValue,
32
32
  type ValueSpecificationVisitor,
33
33
  InstanceValue,
34
- type INTERNAL__UnknownValueSpecification,
34
+ INTERNAL__UnknownValueSpecification,
35
35
  type LambdaFunction,
36
36
  type KeyExpressionInstanceValue,
37
37
  matchFunctionName,
@@ -81,7 +81,11 @@ import {
81
81
  import { LambdaParameterState } from './shared/LambdaParameterState.js';
82
82
  import { processTDS_OLAPGroupByExpression } from './fetch-structure/tds/window/QueryBuilderWindowStateBuilder.js';
83
83
  import { processWatermarkExpression } from './watermark/QueryBuilderWatermarkStateBuilder.js';
84
- import { QueryBuilderConstantExpressionState } from './QueryBuilderConstantsState.js';
84
+ import {
85
+ type QueryBuilderConstantExpressionState,
86
+ QueryBuilderCalculatedConstantExpressionState,
87
+ QueryBuilderSimpleConstantExpressionState,
88
+ } from './QueryBuilderConstantsState.js';
85
89
  import { checkIfEquivalent } from './milestoning/QueryBuilderMilestoningHelper.js';
86
90
  import type { QueryBuilderParameterValue } from './QueryBuilderParametersState.js';
87
91
  import { QueryBuilderEmbeddedFromExecutionContextState } from './QueryBuilderExecutionContextState.js';
@@ -143,12 +147,20 @@ const processLetExpression = (
143
147
  );
144
148
  // process right side (value)
145
149
  const rightSide = guaranteeNonNullable(parameters[1]);
146
- // final
147
- const constantExpression = new QueryBuilderConstantExpressionState(
148
- queryBuilderState,
149
- varExp,
150
- rightSide,
151
- );
150
+ let constantExpression: QueryBuilderConstantExpressionState;
151
+ if (rightSide instanceof INTERNAL__UnknownValueSpecification) {
152
+ constantExpression = new QueryBuilderCalculatedConstantExpressionState(
153
+ queryBuilderState,
154
+ varExp,
155
+ rightSide,
156
+ );
157
+ } else {
158
+ constantExpression = new QueryBuilderSimpleConstantExpressionState(
159
+ queryBuilderState,
160
+ varExp,
161
+ rightSide,
162
+ );
163
+ }
152
164
  queryBuilderState.constantState.setShowConstantPanel(true);
153
165
  queryBuilderState.constantState.addConstant(constantExpression);
154
166
  };
@@ -40,7 +40,7 @@ import type { QueryBuilderFetchStructureState } from './fetch-structure/QueryBui
40
40
  import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../graph/QueryBuilderMetaModelConst.js';
41
41
  import { buildWatermarkExpression } from './watermark/QueryBuilderWatermarkValueSpecificationBuilder.js';
42
42
  import { buildExecutionQueryFromLambdaFunction } from './shared/LambdaParameterState.js';
43
- import type { QueryBuilderConstantExpressionState } from './QueryBuilderConstantsState.js';
43
+ import { type QueryBuilderConstantExpressionState } from './QueryBuilderConstantsState.js';
44
44
  import {
45
45
  QueryBuilderEmbeddedFromExecutionContextState,
46
46
  type QueryBuilderExecutionContextState,
@@ -343,16 +343,21 @@ export class QueryBuilderFilterTreeExistsNodeData
343
343
  extends QueryBuilderFilterTreeOperationNodeData
344
344
  implements Hashable
345
345
  {
346
- propertyExpression!: AbstractPropertyExpression;
346
+ readonly filterState: QueryBuilderFilterState;
347
+ propertyExpressionState!: QueryBuilderPropertyExpressionState;
347
348
 
348
- constructor(parentId: string | undefined) {
349
+ constructor(
350
+ filterState: QueryBuilderFilterState,
351
+ parentId: string | undefined,
352
+ ) {
349
353
  super(parentId);
350
354
 
351
355
  makeObservable(this, {
352
- propertyExpression: observable,
356
+ propertyExpressionState: observable,
353
357
  setPropertyExpression: action,
354
358
  });
355
359
 
360
+ this.filterState = filterState;
356
361
  this.isOpen = true;
357
362
  }
358
363
 
@@ -361,7 +366,10 @@ export class QueryBuilderFilterTreeExistsNodeData
361
366
  }
362
367
 
363
368
  setPropertyExpression(val: AbstractPropertyExpression): void {
364
- this.propertyExpression = val;
369
+ this.propertyExpressionState = new QueryBuilderPropertyExpressionState(
370
+ this.filterState.queryBuilderState,
371
+ val,
372
+ );
365
373
  }
366
374
 
367
375
  get hashCode(): string {
@@ -369,7 +377,7 @@ export class QueryBuilderFilterTreeExistsNodeData
369
377
  QUERY_BUILDER_STATE_HASH_STRUCTURE.FILTER_TREE_EXISTS_NODE_DATA,
370
378
  this.parentId ?? '',
371
379
  hashArray(this.childrenIds),
372
- this.propertyExpression,
380
+ this.propertyExpressionState.propertyExpression,
373
381
  this.lambdaParameterName ?? '',
374
382
  ]);
375
383
  }
@@ -120,6 +120,7 @@ const processFilterTree = (
120
120
  propertyExpression.func.value.multiplicity.upperBound > 1
121
121
  ) {
122
122
  const existsNode = new QueryBuilderFilterTreeExistsNodeData(
123
+ filterState,
123
124
  parentFilterNodeId,
124
125
  );
125
126
  const lambdaFunctionInstance = guaranteeType(
@@ -37,6 +37,7 @@ import {
37
37
  } from './QueryBuilderFilterState.js';
38
38
  import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../graph/QueryBuilderMetaModelConst.js';
39
39
  import { DEFAULT_LAMBDA_VARIABLE_NAME } from '../QueryBuilderConfig.js';
40
+ import { buildPropertyExpressionChain } from '../QueryBuilderValueSpecificationBuilderHelper.js';
40
41
 
41
42
  const buildFilterConditionExpression = (
42
43
  filterState: QueryBuilderFilterState,
@@ -110,7 +111,19 @@ const buildFilterConditionExpression = (
110
111
  )
111
112
  : undefined;
112
113
  }
113
- const propertyExpression = guaranteeNonNullable(node.propertyExpression);
114
+ const lambdaParameterName = node.parentId
115
+ ? guaranteeType(
116
+ filterState.nodes.get(guaranteeNonNullable(node.parentId)),
117
+ QueryBuilderFilterTreeOperationNodeData,
118
+ ).lambdaParameterName
119
+ : undefined;
120
+ const propertyExpression = guaranteeNonNullable(
121
+ buildPropertyExpressionChain(
122
+ node.propertyExpressionState.propertyExpression,
123
+ node.propertyExpressionState.queryBuilderState,
124
+ lambdaParameterName ?? filterState.lambdaParameterName,
125
+ ),
126
+ );
114
127
  const clauses = node.childrenIds
115
128
  .map((e) => filterState.nodes.get(e))
116
129
  .filter(isNonNullable)