@finos/legend-query-builder 4.9.4 → 4.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. package/lib/__lib__/QueryBuilderTesting.d.ts +4 -1
  2. package/lib/__lib__/QueryBuilderTesting.d.ts.map +1 -1
  3. package/lib/__lib__/QueryBuilderTesting.js +5 -1
  4. package/lib/__lib__/QueryBuilderTesting.js.map +1 -1
  5. package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
  6. package/lib/components/QueryBuilderResultPanel.js +80 -90
  7. package/lib/components/QueryBuilderResultPanel.js.map +1 -1
  8. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.d.ts +1 -0
  9. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.d.ts.map +1 -1
  10. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js +13 -1
  11. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js.map +1 -1
  12. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts +2 -2
  13. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +1 -1
  14. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +42 -24
  15. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
  16. package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
  17. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +1 -1
  18. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
  19. package/lib/components/filter/QueryBuilderFilterPanel.d.ts +3 -2
  20. package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +1 -1
  21. package/lib/components/filter/QueryBuilderFilterPanel.js +145 -8
  22. package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
  23. package/lib/index.css +16 -0
  24. package/lib/package.json +1 -1
  25. package/lib/stores/QueryBuilderConstantsState.d.ts +5 -1
  26. package/lib/stores/QueryBuilderConstantsState.d.ts.map +1 -1
  27. package/lib/stores/QueryBuilderConstantsState.js +14 -1
  28. package/lib/stores/QueryBuilderConstantsState.js.map +1 -1
  29. package/lib/stores/QueryBuilderResultState.d.ts +3 -0
  30. package/lib/stores/QueryBuilderResultState.d.ts.map +1 -1
  31. package/lib/stores/QueryBuilderResultState.js +31 -2
  32. package/lib/stores/QueryBuilderResultState.js.map +1 -1
  33. package/lib/stores/QueryBuilderStateHashUtils.d.ts +2 -0
  34. package/lib/stores/QueryBuilderStateHashUtils.d.ts.map +1 -1
  35. package/lib/stores/QueryBuilderStateHashUtils.js +2 -0
  36. package/lib/stores/QueryBuilderStateHashUtils.js.map +1 -1
  37. package/lib/stores/QueryBuilderValueSpecificationBuilder.d.ts.map +1 -1
  38. package/lib/stores/QueryBuilderValueSpecificationBuilder.js +3 -23
  39. package/lib/stores/QueryBuilderValueSpecificationBuilder.js.map +1 -1
  40. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.js +1 -1
  41. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.js.map +1 -1
  42. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts +31 -5
  43. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts.map +1 -1
  44. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js +125 -30
  45. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js.map +1 -1
  46. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.d.ts.map +1 -1
  47. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.js +21 -8
  48. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.js.map +1 -1
  49. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.d.ts +3 -1
  50. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.d.ts.map +1 -1
  51. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js +20 -17
  52. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js.map +1 -1
  53. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts.map +1 -1
  54. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js +4 -6
  55. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js.map +1 -1
  56. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts.map +1 -1
  57. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js +4 -6
  58. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js.map +1 -1
  59. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts +1 -1
  60. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts.map +1 -1
  61. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js +10 -10
  62. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js.map +1 -1
  63. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts.map +1 -1
  64. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js +10 -10
  65. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js.map +1 -1
  66. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts.map +1 -1
  67. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js +5 -5
  68. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js.map +1 -1
  69. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts +1 -1
  70. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts.map +1 -1
  71. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.js +32 -27
  72. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.js.map +1 -1
  73. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts.map +1 -1
  74. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js +10 -5
  75. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js.map +1 -1
  76. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts.map +1 -1
  77. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js +10 -10
  78. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js.map +1 -1
  79. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts.map +1 -1
  80. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js +5 -5
  81. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js.map +1 -1
  82. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts.map +1 -1
  83. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js +4 -6
  84. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js.map +1 -1
  85. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.d.ts.map +1 -1
  86. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js +17 -3
  87. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js.map +1 -1
  88. package/lib/stores/filter/QueryBuilderFilterState.d.ts +7 -1
  89. package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +1 -1
  90. package/lib/stores/filter/QueryBuilderFilterState.js +27 -0
  91. package/lib/stores/filter/QueryBuilderFilterState.js.map +1 -1
  92. package/package.json +5 -5
  93. package/src/__lib__/QueryBuilderTesting.ts +5 -1
  94. package/src/components/QueryBuilderResultPanel.tsx +127 -135
  95. package/src/components/__test-utils__/QueryBuilderComponentTestUtils.tsx +25 -1
  96. package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +102 -49
  97. package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +6 -2
  98. package/src/components/filter/QueryBuilderFilterPanel.tsx +239 -21
  99. package/src/stores/QueryBuilderConstantsState.ts +30 -0
  100. package/src/stores/QueryBuilderResultState.ts +36 -1
  101. package/src/stores/QueryBuilderStateHashUtils.ts +2 -0
  102. package/src/stores/QueryBuilderValueSpecificationBuilder.ts +4 -50
  103. package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.ts +1 -1
  104. package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.ts +180 -34
  105. package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.ts +38 -9
  106. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.ts +36 -20
  107. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.ts +5 -6
  108. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.ts +6 -6
  109. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.ts +12 -13
  110. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.ts +10 -9
  111. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.ts +5 -4
  112. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.ts +48 -43
  113. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.ts +12 -4
  114. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.ts +10 -9
  115. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.ts +5 -4
  116. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts +6 -6
  117. package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.ts +26 -4
  118. package/src/stores/filter/QueryBuilderFilterState.ts +40 -1
@@ -17,6 +17,7 @@ import { CollectionInstanceValue, Enumeration, PRIMITIVE_TYPE, VariableExpressio
17
17
  import { guaranteeNonNullable, hashArray, } from '@finos/legend-shared';
18
18
  import { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator.js';
19
19
  import { buildPostFilterConditionState } from '../QueryBuilderPostFilterStateBuilder.js';
20
+ import { PostFilterValueSpecConditionValueState, } from '../QueryBuilderPostFilterState.js';
20
21
  import { buildPostFilterConditionExpression } from './QueryBuilderPostFilterOperatorValueSpecificationBuilder.js';
21
22
  import { buildNotExpression, getCollectionValueSpecificationType, unwrapNotExpression, } from '../../../../QueryBuilderValueSpecificationHelper.js';
22
23
  import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graph/QueryBuilderMetaModelConst.js';
@@ -37,43 +38,47 @@ export class QueryBuilderPostFilterOperator_In extends QueryBuilderPostFilterOpe
37
38
  type instanceof Enumeration);
38
39
  }
39
40
  isCompatibleWithConditionValue(postFilterConditionState) {
40
- const propertyType = guaranteeNonNullable(postFilterConditionState.columnState.getColumnType());
41
- const valueSpec = postFilterConditionState.value;
42
- if (valueSpec instanceof CollectionInstanceValue) {
43
- if (valueSpec.values.length === 0) {
44
- return true;
45
- }
46
- const collectionType = getCollectionValueSpecificationType(postFilterConditionState.postFilterState.tdsState.queryBuilderState
47
- .graphManagerState.graph, valueSpec.values);
48
- if (!collectionType) {
49
- return false;
50
- }
51
- if ([
52
- PRIMITIVE_TYPE.NUMBER,
53
- PRIMITIVE_TYPE.INTEGER,
54
- PRIMITIVE_TYPE.DECIMAL,
55
- PRIMITIVE_TYPE.FLOAT,
56
- ].includes(propertyType.path)) {
57
- return [
41
+ const propertyType = guaranteeNonNullable(postFilterConditionState.leftConditionValue.getColumnType());
42
+ const rightSide = postFilterConditionState.rightConditionValue;
43
+ // `in`/`not in` doest not support right hand value being column state as the multipliticy for columns are [0..1]
44
+ if (rightSide instanceof PostFilterValueSpecConditionValueState) {
45
+ const valueSpec = rightSide.value;
46
+ if (valueSpec instanceof CollectionInstanceValue) {
47
+ if (valueSpec.values.length === 0) {
48
+ return true;
49
+ }
50
+ const collectionType = getCollectionValueSpecificationType(postFilterConditionState.postFilterState.tdsState.queryBuilderState
51
+ .graphManagerState.graph, valueSpec.values);
52
+ if (!collectionType) {
53
+ return false;
54
+ }
55
+ if ([
58
56
  PRIMITIVE_TYPE.NUMBER,
59
57
  PRIMITIVE_TYPE.INTEGER,
60
58
  PRIMITIVE_TYPE.DECIMAL,
61
59
  PRIMITIVE_TYPE.FLOAT,
62
- ].includes(collectionType.path);
60
+ ].includes(propertyType.path)) {
61
+ return [
62
+ PRIMITIVE_TYPE.NUMBER,
63
+ PRIMITIVE_TYPE.INTEGER,
64
+ PRIMITIVE_TYPE.DECIMAL,
65
+ PRIMITIVE_TYPE.FLOAT,
66
+ ].includes(collectionType.path);
67
+ }
68
+ return collectionType === propertyType;
63
69
  }
64
- return collectionType === propertyType;
65
- }
66
- else if (valueSpec instanceof VariableExpression) {
67
- // check if not a single value
68
- if (valueSpec.multiplicity.upperBound === 1) {
69
- return false;
70
+ else if (valueSpec instanceof VariableExpression) {
71
+ // check if not a single value
72
+ if (valueSpec.multiplicity.upperBound === 1) {
73
+ return false;
74
+ }
75
+ return propertyType === valueSpec.genericType?.value.rawType;
70
76
  }
71
- return propertyType === valueSpec.genericType?.value.rawType;
72
77
  }
73
78
  return false;
74
79
  }
75
80
  getDefaultFilterConditionValue(postFilterConditionState) {
76
- const propertyType = guaranteeNonNullable(postFilterConditionState.columnState.getColumnType());
81
+ const propertyType = guaranteeNonNullable(postFilterConditionState.leftConditionValue.getColumnType());
77
82
  return new CollectionInstanceValue(Multiplicity.ONE, GenericTypeExplicitReference.create(new GenericType(propertyType)));
78
83
  }
79
84
  buildPostFilterConditionExpression(postFilterConditionState) {
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderPostFilterOperator_In.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAKL,uBAAuB,EACvB,WAAW,EACX,cAAc,EACd,kBAAkB,EAClB,4BAA4B,EAC5B,WAAW,EACX,YAAY,GACb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,oBAAoB,EAEpB,SAAS,GACV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,EAAE,6BAA6B,EAAE,MAAM,0CAA0C,CAAC;AAKzF,OAAO,EAAE,kCAAkC,EAAE,MAAM,8DAA8D,CAAC;AAClH,OAAO,EACL,kBAAkB,EAClB,mCAAmC,EACnC,mBAAmB,GACpB,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,iCAAiC,EAAE,MAAM,oDAAoD,CAAC;AACvG,OAAO,EAAE,kCAAkC,EAAE,MAAM,2CAA2C,CAAC;AAE/F,MAAM,OAAO,iCACX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QAEpC,MAAM,eAAe,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACxD,OAAO,eAAe;YACpB,CAAC,CAAC,KAAK,CAAC,6BAA6B,CAAC,eAAe,EAAE,eAAe,CAAC;YACvE,CAAC,CAAC,SAAS,CAAC;IAChB,CAAC;IAED,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,2BAA2B;SAC/D,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"QueryBuilderPostFilterOperator_In.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAKL,uBAAuB,EACvB,WAAW,EACX,cAAc,EACd,kBAAkB,EAClB,4BAA4B,EAC5B,WAAW,EACX,YAAY,GACb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,oBAAoB,EAEpB,SAAS,GACV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,EAAE,6BAA6B,EAAE,MAAM,0CAA0C,CAAC;AACzF,OAAO,EACL,sCAAsC,GAGvC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,kCAAkC,EAAE,MAAM,8DAA8D,CAAC;AAClH,OAAO,EACL,kBAAkB,EAClB,mCAAmC,EACnC,mBAAmB,GACpB,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,iCAAiC,EAAE,MAAM,oDAAoD,CAAC;AACvG,OAAO,EAAE,kCAAkC,EAAE,MAAM,2CAA2C,CAAC;AAE/F,MAAM,OAAO,iCACX,SAAQ,8BAA8B;IAGtC,QAAQ;QACN,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,oBAAoB,CAAC,IAAU;QAC7B,OAAO,CAEH;YACE,cAAc,CAAC,MAAM;YACrB,cAAc,CAAC,MAAM;YACrB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AAmB,CAAC,UAAU,CAAC,CAAC;QACxD,OAAO,eAAe;YACpB,CAAC,CAAC,KAAK,CAAC,6BAA6B,CAAC,eAAe,EAAE,eAAe,CAAC;YACvE,CAAC,CAAC,SAAS,CAAC;IAChB,CAAC;IAED,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,2BAA2B;SAC/D,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderPostFilterOperator_IsEmpty.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,IAAI,EACT,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EAGxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAEtF,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,iBAAiB,EAClB,MAAM,mCAAmC,CAAC;AAI3C,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAGhE,qBAAa,sCACX,SAAQ,8BACR,YAAW,QAAQ;IAEnB,QAAQ,IAAI,MAAM;IAIT,kBAAkB,IAAI,iBAAiB,GAAG,SAAS;IAI5D,oBAAoB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO;IAIzC,8BAA8B,CAC5B,wBAAwB,EAAE,wBAAwB,GACjD,OAAO;IAID,gCAAgC,CACvC,eAAe,EAAE,wBAAwB,GACxC,OAAO;IAiBV,8BAA8B,CAC5B,wBAAwB,EAAE,wBAAwB,GACjD,kBAAkB,GAAG,SAAS;IAIjC,kCAAkC,CAChC,wBAAwB,EAAE,wBAAwB,GACjD,kBAAkB,GAAG,SAAS;IAQjC,6BAA6B,CAC3B,eAAe,EAAE,2BAA2B,EAC5C,UAAU,EAAE,kBAAkB,GAC7B,wBAAwB,GAAG,SAAS;IASvC,IAAI,QAAQ,IAAI,MAAM,CAIrB;CACF;AAED,qBAAa,yCAA0C,SAAQ,sCAAsC;IAC1F,QAAQ,IAAI,MAAM;IAIlB,kBAAkB,IAAI,iBAAiB,GAAG,SAAS;IAI5D,IAAa,QAAQ,IAAI,MAAM,CAI9B;CACF"}
1
+ {"version":3,"file":"QueryBuilderPostFilterOperator_IsEmpty.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,IAAI,EACT,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EAGxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAEtF,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,iBAAiB,EAElB,MAAM,mCAAmC,CAAC;AAI3C,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAGhE,qBAAa,sCACX,SAAQ,8BACR,YAAW,QAAQ;IAEnB,QAAQ,IAAI,MAAM;IAIT,kBAAkB,IAAI,iBAAiB,GAAG,SAAS;IAI5D,oBAAoB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO;IAIzC,8BAA8B,CAC5B,wBAAwB,EAAE,wBAAwB,GACjD,OAAO;IAWD,gCAAgC,CACvC,eAAe,EAAE,wBAAwB,GACxC,OAAO;IAiBV,8BAA8B,CAC5B,wBAAwB,EAAE,wBAAwB,GACjD,kBAAkB,GAAG,SAAS;IAIjC,kCAAkC,CAChC,wBAAwB,EAAE,wBAAwB,GACjD,kBAAkB,GAAG,SAAS;IAQjC,6BAA6B,CAC3B,eAAe,EAAE,2BAA2B,EAC5C,UAAU,EAAE,kBAAkB,GAC7B,wBAAwB,GAAG,SAAS;IASvC,IAAI,QAAQ,IAAI,MAAM,CAIrB;CACF;AAED,qBAAa,yCAA0C,SAAQ,sCAAsC;IAC1F,QAAQ,IAAI,MAAM;IAIlB,kBAAkB,IAAI,iBAAiB,GAAG,SAAS;IAI5D,IAAa,QAAQ,IAAI,MAAM,CAI9B;CACF"}
@@ -16,7 +16,7 @@
16
16
  import { Enumeration, PrimitiveType, } from '@finos/legend-graph';
17
17
  import { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator.js';
18
18
  import { buildPostFilterConditionState } from '../QueryBuilderPostFilterStateBuilder.js';
19
- import { TDS_COLUMN_GETTER, } from '../QueryBuilderPostFilterState.js';
19
+ import { TDS_COLUMN_GETTER, PostFilterValueSpecConditionValueState, } from '../QueryBuilderPostFilterState.js';
20
20
  import { QueryBuilderSimpleProjectionColumnState } from '../../projection/QueryBuilderProjectionColumnState.js';
21
21
  import { buildPostFilterConditionExpression } from './QueryBuilderPostFilterOperatorValueSpecificationBuilder.js';
22
22
  import { isPropertyExpressionChainOptional } from '../../../../QueryBuilderValueSpecificationHelper.js';
@@ -33,14 +33,19 @@ export class QueryBuilderPostFilterOperator_IsEmpty extends QueryBuilderPostFilt
33
33
  return type instanceof PrimitiveType || type instanceof Enumeration;
34
34
  }
35
35
  isCompatibleWithConditionValue(postFilterConditionState) {
36
- return postFilterConditionState.value === undefined;
36
+ if (postFilterConditionState.rightConditionValue instanceof
37
+ PostFilterValueSpecConditionValueState &&
38
+ postFilterConditionState.rightConditionValue.value === undefined) {
39
+ return true;
40
+ }
41
+ return false;
37
42
  }
38
43
  isCompatibleWithPostFilterColumn(postFilterState) {
39
- const columnType = postFilterState.columnState.getColumnType();
44
+ const columnType = postFilterState.leftConditionValue.getColumnType();
40
45
  if (columnType && this.isCompatibleWithType(columnType)) {
41
- if (postFilterState.columnState instanceof
46
+ if (postFilterState.leftConditionValue instanceof
42
47
  QueryBuilderSimpleProjectionColumnState) {
43
- return isPropertyExpressionChainOptional(postFilterState.columnState.propertyExpressionState
48
+ return isPropertyExpressionChainOptional(postFilterState.leftConditionValue.propertyExpressionState
44
49
  .propertyExpression);
45
50
  }
46
51
  return true;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderPostFilterOperator_IsEmpty.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAIL,WAAW,EACX,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,EAAE,6BAA6B,EAAE,MAAM,0CAA0C,CAAC;AACzF,OAAO,EAGL,iBAAiB,GAClB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,uCAAuC,EAAE,MAAM,uDAAuD,CAAC;AAChH,OAAO,EAAE,kCAAkC,EAAE,MAAM,8DAA8D,CAAC;AAClH,OAAO,EAAE,iCAAiC,EAAE,MAAM,qDAAqD,CAAC;AACxG,OAAO,EAAiB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,kCAAkC,EAAE,MAAM,2CAA2C,CAAC;AAE/F,MAAM,OAAO,sCACX,SAAQ,8BAA8B;IAGtC,QAAQ;QACN,OAAO,UAAU,CAAC;IACpB,CAAC;IAEQ,kBAAkB;QACzB,OAAO,iBAAiB,CAAC,OAAO,CAAC;IACnC,CAAC;IAED,oBAAoB,CAAC,IAAU;QAC7B,OAAO,IAAI,YAAY,aAAa,IAAI,IAAI,YAAY,WAAW,CAAC;IACtE,CAAC;IAED,8BAA8B,CAC5B,wBAAkD;QAElD,OAAO,wBAAwB,CAAC,KAAK,KAAK,SAAS,CAAC;IACtD,CAAC;IAEQ,gCAAgC,CACvC,eAAyC;QAEzC,MAAM,UAAU,GAAG,eAAe,CAAC,WAAW,CAAC,aAAa,EAAE,CAAC;QAC/D,IAAI,UAAU,IAAI,IAAI,CAAC,oBAAoB,CAAC,UAAU,CAAC,EAAE;YACvD,IACE,eAAe,CAAC,WAAW;gBAC3B,uCAAuC,EACvC;gBACA,OAAO,iCAAiC,CACtC,eAAe,CAAC,WAAW,CAAC,uBAAuB;qBAChD,kBAAkB,CACtB,CAAC;aACH;YACD,OAAO,IAAI,CAAC;SACb;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,8BAA8B,CAC5B,wBAAkD;QAElD,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,kCAAkC,CAChC,wBAAkD;QAElD,OAAO,kCAAkC,CACvC,wBAAwB,EACxB,IAAI,EACJ,SAAS,CACV,CAAC;IACJ,CAAC;IAED,6BAA6B,CAC3B,eAA4C,EAC5C,UAA8B;QAE9B,OAAO,6BAA6B,CAClC,eAAe,EACf,UAAU,EACV,SAAS,EACT,IAAI,CACL,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,6BAA6B;SACjE,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,yCAA0C,SAAQ,sCAAsC;IAC1F,QAAQ;QACf,OAAO,cAAc,CAAC;IACxB,CAAC;IAEQ,kBAAkB;QACzB,OAAO,iBAAiB,CAAC,WAAW,CAAC;IACvC,CAAC;IAED,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,iCAAiC;SACrE,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"QueryBuilderPostFilterOperator_IsEmpty.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAIL,WAAW,EACX,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,EAAE,6BA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,SAAS,CAAC;IACnB,CAAC;IAED,kCAAkC,CAChC,wBAAkD;QAElD,OAAO,kCAAkC,CACvC,wBAAwB,EACxB,IAAI,EACJ,SAAS,CACV,CAAC;IACJ,CAAC;IAED,6BAA6B,CAC3B,eAA4C,EAC5C,UAA8B;QAE9B,OAAO,6BAA6B,CAClC,eAAe,EACf,UAAU,EACV,SAAS,EACT,IAAI,CACL,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,6BAA6B;SACjE,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,yCAA0C,SAAQ,sCAAsC;IAC1F,QAAQ;QACf,OAAO,cAAc,CAAC;IACxB,CAAC;IAEQ,kBAAkB;QACzB,OAAO,iBAAiB,CAAC,WAAW,CAAC;IACvC,CAAC;IAED,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,iCAAiC;SACrE,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderPostFilterOperator_LessThan.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,IAAI,EACT,KAAK,kBAAkB,EAEvB,KAAK,kBAAkB,EAExB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,KAAK,QAAQ,EAGd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAEtF,OAAO,KAAK,EACV,wBAAwB,EACxB,2BAA2B,EAC5B,MAAM,mCAAmC,CAAC;AAW3C,qBAAa,uCACX,SAAQ,8BACR,YAAW,QAAQ;IAEnB,QAAQ,IAAI,MAAM;IAIlB,oBAAoB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO;IAczC,8BAA8B,CAC5B,wBAAwB,EAAE,wBAAwB,GACjD,OAAO;IAWV,8BAA8B,CAC5B,wBAAwB,EAAE,wBAAwB,GACjD,kBAAkB;IAmCrB,kCAAkC,CAChC,wBAAwB,EAAE,wBAAwB,GACjD,kBAAkB,GAAG,SAAS;IAajC,6BAA6B,CAC3B,eAAe,EAAE,2BAA2B,EAC5C,UAAU,EAAE,kBAAkB,GAC7B,wBAAwB,GAAG,SAAS;IAevC,IAAI,QAAQ,IAAI,MAAM,CAIrB;CACF"}
1
+ {"version":3,"file":"QueryBuilderPostFilterOperator_LessThan.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,IAAI,EACT,KAAK,kBAAkB,EAEvB,KAAK,kBAAkB,EAGxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,KAAK,QAAQ,EAGd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAEtF,OAAO,KAAK,EACV,wBAAwB,EACxB,2BAA2B,EAC5B,MAAM,mCAAmC,CAAC;AAU3C,qBAAa,uCACX,SAAQ,8BACR,YAAW,QAAQ;IAEnB,QAAQ,IAAI,MAAM;IAIlB,oBAAoB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO;IAczC,8BAA8B,CAC5B,wBAAwB,EAAE,wBAAwB,GACjD,OAAO;IAWV,8BAA8B,CAC5B,wBAAwB,EAAE,wBAAwB,GACjD,kBAAkB;IAoCrB,kCAAkC,CAChC,wBAAwB,EAAE,wBAAwB,GACjD,kBAAkB,GAAG,SAAS;IAajC,6BAA6B,CAC3B,eAAe,EAAE,2BAA2B,EAC5C,UAAU,EAAE,kBAAkB,GAC7B,wBAAwB,GAAG,SAAS;IAevC,IAAI,QAAQ,IAAI,MAAM,CAIrB;CACF"}
@@ -13,11 +13,11 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { AbstractPropertyExpression, PRIMITIVE_TYPE, } from '@finos/legend-graph';
16
+ import { AbstractPropertyExpression, PRIMITIVE_TYPE, PrimitiveType, } from '@finos/legend-graph';
17
17
  import { guaranteeNonNullable, hashArray, UnsupportedOperationError, } from '@finos/legend-shared';
18
18
  import { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator.js';
19
19
  import { buildPostFilterConditionState } from '../QueryBuilderPostFilterStateBuilder.js';
20
- import { generateDefaultValueForPrimitiveType, getNonCollectionValueSpecificationType, isTypeCompatibleForAssignment, } from '../../../../QueryBuilderValueSpecificationHelper.js';
20
+ import { generateDefaultValueForPrimitiveType, isTypeCompatibleForAssignment, } from '../../../../QueryBuilderValueSpecificationHelper.js';
21
21
  import { buildPostFilterConditionExpression } from './QueryBuilderPostFilterOperatorValueSpecificationBuilder.js';
22
22
  import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graph/QueryBuilderMetaModelConst.js';
23
23
  import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../../../../QueryBuilderStateHashUtils.js';
@@ -38,12 +38,12 @@ export class QueryBuilderPostFilterOperator_LessThan extends QueryBuilderPostFil
38
38
  ].includes(type.path);
39
39
  }
40
40
  isCompatibleWithConditionValue(postFilterConditionState) {
41
- return isTypeCompatibleForAssignment(postFilterConditionState.value
42
- ? getNonCollectionValueSpecificationType(postFilterConditionState.value)
43
- : undefined, guaranteeNonNullable(postFilterConditionState.columnState.getColumnType()));
41
+ return isTypeCompatibleForAssignment(!postFilterConditionState.rightConditionValue.isCollection
42
+ ? postFilterConditionState.rightConditionValue.type
43
+ : undefined, guaranteeNonNullable(postFilterConditionState.leftConditionValue.getColumnType()));
44
44
  }
45
45
  getDefaultFilterConditionValue(postFilterConditionState) {
46
- const propertyType = postFilterConditionState.columnState.getColumnType();
46
+ const propertyType = postFilterConditionState.leftConditionValue.getColumnType();
47
47
  switch (propertyType?.path) {
48
48
  case PRIMITIVE_TYPE.NUMBER:
49
49
  case PRIMITIVE_TYPE.DECIMAL:
@@ -65,10 +65,10 @@ export class QueryBuilderPostFilterOperator_LessThan extends QueryBuilderPostFil
65
65
  }
66
66
  }
67
67
  buildPostFilterConditionExpression(postFilterConditionState) {
68
- return buildPostFilterConditionExpression(postFilterConditionState, this, postFilterConditionState.columnState.getColumnType()?.path ===
69
- PRIMITIVE_TYPE.DATETIME &&
70
- postFilterConditionState.value?.genericType?.value.rawType.path !==
71
- PRIMITIVE_TYPE.DATETIME
68
+ return buildPostFilterConditionExpression(postFilterConditionState, this, postFilterConditionState.leftConditionValue.getColumnType() ===
69
+ PrimitiveType.DATETIME &&
70
+ postFilterConditionState.rightConditionValue.type !==
71
+ PrimitiveType.DATETIME
72
72
  ? QUERY_BUILDER_SUPPORTED_FUNCTIONS.IS_BEFORE_DAY
73
73
  : QUERY_BUILDER_SUPPORTED_FUNCTIONS.LESS_THAN);
74
74
  }
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderPostFilterOperator_LessThan.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,0BAA0B,EAE1B,cAAc,GACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,oBAAoB,EAEpB,SAAS,EACT,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,EAAE,6BAA6B,EAAE,MAAM,0CAA0C,CAAC;AAKzF,OAAO,EACL,oCAAoC,EACpC,sCAAsC,EACtC,6BAA6B,GAC9B,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,kCAAkC,EAAE,MAAM,8DAA8D,CAAC;AAClH,OAAO,EAAE,iCAAiC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,gBAAgB,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI;gBAC7D,cAAc,CAAC,QAAQ;YACzB,CAAC,CAAC,iCAAiC,CAAC,aAAa;YACjD,CAAC,CAAC,iCAAiC,CAAC,SAAS,EAC/C,IAAI,CACL,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,8BAA8B;SAClE,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"QueryBuilderPostFilterOperator_LessThan.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,0BAA0B,EAE1B,cAAc,EACd,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,oBAAoB,EAEpB,SAAS,EACT,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,EAAE,6BAA6B,EAAE,MAAM,0CAA0C,CAAC;AAKzF,OAAO,EACL,oCAAoC,EACpC,6BAA6B,GAC9B,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,kCAAkC,EAAE,MAAM,8DAA8D,CAAC;AAClH,OAAO,EAAE,iCAAiC,EAAE,MAAM,oDAAoD,CAAC;AACvG,OAAO,EAAE,kCAAkC,EAAE,MAAM,2CAA2C,CAAC;AAC/F,OAAO,EAAE,2BAA2B,EAAE,MAAM,sDAAsD,CAAC;AAEnG,MAAM,OAAO,uCACX,SAAQ,8BAA8B;IAGtC,QAAQ;QACN,OAAO,GAAG,CAAC;IACb,CAAC;IAED,oBAAoB,CAAC,IAAU;QAC7B,OACE;YACE,cAAc,CAAC,MAAM;YACrB,cAAc,CAAC,OAAO;YACtB,cAAc,CAAC,OAAO;Y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ilderPostFilterOperator_LessThanEqual.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EAGxB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EACV,wBAAwB,EACxB,2BAA2B,EAC5B,MAAM,mCAAmC,CAAC;AAE3C,OAAO,EAAE,uCAAuC,EAAE,MAAM,8CAA8C,CAAC;AAEvG,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAGhE,qBAAa,4CACX,SAAQ,uCACR,YAAW,QAAQ;IAEV,QAAQ,IAAI,MAAM;IAIlB,kCAAkC,CACzC,wBAAwB,EAAE,wBAAwB,GACjD,kBAAkB,GAAG,SAAS;IAaxB,6BAA6B,CACpC,eAAe,EAAE,2BAA2B,EAC5C,UAAU,EAAE,kBAAkB,GAC7B,wBAAwB,GAAG,SAAS;IAevC,IAAa,QAAQ,IAAI,MAAM,CAI9B;CACF"}
1
+ {"version":3,"file":"QueryBuilderPostFilterOperator_LessThanEqual.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EAIxB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EACV,wBAAwB,EACxB,2BAA2B,EAC5B,MAAM,mCAAmC,CAAC;AAE3C,OAAO,EAAE,uCAAuC,EAAE,MAAM,8CAA8C,CAAC;AAEvG,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAGhE,qBAAa,4CACX,SAAQ,uCACR,YAAW,QAAQ;IAEV,QAAQ,IAAI,MAAM;IAIlB,kCAAkC,CACzC,wBAAwB,EAAE,wBAAwB,GACjD,kBAAkB,GAAG,SAAS;IAaxB,6BAA6B,CACpC,eAAe,EAAE,2BAA2B,EAC5C,UAAU,EAAE,kBAAkB,GAC7B,wBAAwB,GAAG,SAAS;IAevC,IAAa,QAAQ,IAAI,MAAM,CAI9B;CACF"}
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { AbstractPropertyExpression, PRIMITIVE_TYPE, } from '@finos/legend-graph';
16
+ import { AbstractPropertyExpression, PRIMITIVE_TYPE, PrimitiveType, } from '@finos/legend-graph';
17
17
  import { buildPostFilterConditionState } from '../QueryBuilderPostFilterStateBuilder.js';
18
18
  import { buildPostFilterConditionExpression } from './QueryBuilderPostFilterOperatorValueSpecificationBuilder.js';
19
19
  import { QueryBuilderPostFilterOperator_LessThan } from './QueryBuilderPostFilterOperator_LessThan.js';
@@ -25,10 +25,10 @@ export class QueryBuilderPostFilterOperator_LessThanEqual extends QueryBuilderPo
25
25
  return '<=';
26
26
  }
27
27
  buildPostFilterConditionExpression(postFilterConditionState) {
28
- return buildPostFilterConditionExpression(postFilterConditionState, this, postFilterConditionState.columnState.getColumnType()?.path ===
29
- PRIMITIVE_TYPE.DATETIME &&
30
- postFilterConditionState.value?.genericType?.value.rawType.path !==
31
- PRIMITIVE_TYPE.DATETIME
28
+ return buildPostFilterConditionExpression(postFilterConditionState, this, postFilterConditionState.leftConditionValue.getColumnType() ===
29
+ PrimitiveType.DATETIME &&
30
+ postFilterConditionState.rightConditionValue.type !==
31
+ PrimitiveType.DATETIME
32
32
  ? QUERY_BUILDER_SUPPORTED_FUNCTIONS.IS_ON_OR_BEFORE_DAY
33
33
  : QUERY_BUILDER_SUPPORTED_FUNCTIONS.LESS_THAN_EQUAL);
34
34
  }
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderPostFilterOperator_LessThanEqual.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/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gBAAgB,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI;gBAC7D,cAAc,CAAC,QAAQ;YACzB,CAAC,CAAC,iCAAiC,CAAC,mBAAmB;YACvD,CAAC,CAAC,iCAAiC,CAAC,eAAe,EACrD,IAAI,CACL,CAAC;IACJ,CAAC;IAED,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,oCAAoC;SACxE,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"QueryBuilderPostFilterOperator_LessThanEqual.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,0BAA0B,EAC1B,cAAc,EACd,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,6BAA6B,EAAE,MAAM,0CAA0C,CAAC;AAKzF,OAAO,EAAE,kCAAkC,EAAE,MAAM,8DAA8D,CAAC;AAClH,OAAO,EAAE,uCAAuC,EAAE,MAAM,8CAA8C,CAAC;AACvG,OAAO,EAAE,iCAAiC,EAAE,MAAM,oDAAoD,CAAC;AACvG,OAAO,EAAiB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,kCAAkC,EAAE,MAAM,2CAA2C,CAAC;AAE/F,MAAM,OAAO,4CACX,SAAQ,uCAAuC;IAGtC,QAAQ;QACf,OAAO,IAAI,CAAC;IACd,CAAC;IAEQ,kCAAkC,CACzC,wBAAkD;QAElD,OAAO,kCAAkC,CACvC,wBAAwB,EACxB,IAAI,EACJ,wBAAwB,CAAC,kBAAkB,CAAC,aAAa,EAAE;YACzD,aAAa,CAAC,QAAQ;YACtB,wBAAwB,CAAC,mBAAmB,CAAC,IAAI;gBAC/C,aAAa,CAAC,QAAQ;YACxB,CAAC,CAAC,iCAAiC,CAAC,mBAAmB;YACvD,CAAC,CAAC,iCAAiC,CAAC,eAAe,CACtD,CAAC;IACJ,CAAC;IAEQ,6BAA6B,CACpC,eAA4C,EAC5C,UAA8B;QAE9B,OAAO,6BAA6B,CAClC,eAAe,EACf,UAAU,EACV,UAAU,CAAC,gBAAgB,CAAC,CAAC,CAAC,YAAY,0BAA0B;YAClE,UAAU,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,OAAO;iBAChE,IAAI,KAAK,cAAc,CAAC,QAAQ;YACnC,UAAU,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI;gBAC7D,cAAc,CAAC,QAAQ;YACzB,CAAC,CAAC,iCAAiC,CAAC,mBAAmB;YACvD,CAAC,CAAC,iCAAiC,CAAC,eAAe,EACrD,IAAI,CACL,CAAC;IACJ,CAAC;IAED,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,oCAAoC;SACxE,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderPostFilterOperator_StartWith.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,IAAI,EACT,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EAGxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,QAAQ,EAGd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAEtF,OAAO,KAAK,EACV,wBAAwB,EACxB,2BAA2B,EAC5B,MAAM,mCAAmC,CAAC;AAY3C,qBAAa,wCACX,SAAQ,8BACR,YAAW,QAAQ;IAEnB,QAAQ,IAAI,MAAM;IAIlB,oBAAoB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO;IAIzC,8BAA8B,CAC5B,wBAAwB,EAAE,wBAAwB,GACjD,OAAO;IAOV,8BAA8B,CAC5B,wBAAwB,EAAE,wBAAwB,GACjD,kBAAkB;IAoBrB,kCAAkC,CAChC,wBAAwB,EAAE,wBAAwB,GACjD,kBAAkB,GAAG,SAAS;IAQjC,6BAA6B,CAC3B,eAAe,EAAE,2BAA2B,EAC5C,UAAU,EAAE,kBAAkB,GAC7B,wBAAwB,GAAG,SAAS;IASvC,IAAI,QAAQ,IAAI,MAAM,CAIrB;CACF;AACD,qBAAa,2CACX,SAAQ,wCACR,YAAW,QAAQ;IAEV,QAAQ,IAAI,MAAM;IAIlB,kCAAkC,CACzC,wBAAwB,EAAE,wBAAwB,GACjD,kBAAkB,GAAG,SAAS;IAOxB,6BAA6B,CACpC,eAAe,EAAE,2BAA2B,EAC5C,UAAU,EAAE,wBAAwB,GACnC,wBAAwB,GAAG,SAAS;IAOvC,IAAa,QAAQ,IAAI,MAAM,CAI9B;CACF"}
1
+ {"version":3,"file":"QueryBuilderPostFilterOperator_StartWith.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,IAAI,EACT,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EAGxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,QAAQ,EAGd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAEtF,OAAO,KAAK,EACV,wBAAwB,EACxB,2BAA2B,EAC5B,MAAM,mCAAmC,CAAC;AAW3C,qBAAa,wCACX,SAAQ,8BACR,YAAW,QAAQ;IAEnB,QAAQ,IAAI,MAAM;IAIlB,oBAAoB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO;IAIzC,8BAA8B,CAC5B,wBAAwB,EAAE,wBAAwB,GACjD,OAAO;IAOV,8BAA8B,CAC5B,wBAAwB,EAAE,wBAAwB,GACjD,kBAAkB;IAqBrB,kCAAkC,CAChC,wBAAwB,EAAE,wBAAwB,GACjD,kBAAkB,GAAG,SAAS;IAQjC,6BAA6B,CAC3B,eAAe,EAAE,2BAA2B,EAC5C,UAAU,EAAE,kBAAkB,GAC7B,wBAAwB,GAAG,SAAS;IASvC,IAAI,QAAQ,IAAI,MAAM,CAIrB;CACF;AACD,qBAAa,2CACX,SAAQ,wCACR,YAAW,QAAQ;IAEV,QAAQ,IAAI,MAAM;IAIlB,kCAAkC,CACzC,wBAAwB,EAAE,wBAAwB,GACjD,kBAAkB,GAAG,SAAS;IAOxB,6BAA6B,CACpC,eAAe,EAAE,2BAA2B,EAC5C,UAAU,EAAE,wBAAwB,GACnC,wBAAwB,GAAG,SAAS;IAOvC,IAAa,QAAQ,IAAI,MAAM,CAI9B;CACF"}
@@ -17,7 +17,7 @@ import { PRIMITIVE_TYPE, PrimitiveType, } from '@finos/legend-graph';
17
17
  import { hashArray, UnsupportedOperationError, } from '@finos/legend-shared';
18
18
  import { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator.js';
19
19
  import { buildPostFilterConditionState } from '../QueryBuilderPostFilterStateBuilder.js';
20
- import { buildNotExpression, generateDefaultValueForPrimitiveType, getNonCollectionValueSpecificationType, unwrapNotExpression, } from '../../../../QueryBuilderValueSpecificationHelper.js';
20
+ import { buildNotExpression, generateDefaultValueForPrimitiveType, unwrapNotExpression, } from '../../../../QueryBuilderValueSpecificationHelper.js';
21
21
  import { buildPostFilterConditionExpression } from './QueryBuilderPostFilterOperatorValueSpecificationBuilder.js';
22
22
  import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graph/QueryBuilderMetaModelConst.js';
23
23
  import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../../../../QueryBuilderStateHashUtils.js';
@@ -30,13 +30,11 @@ export class QueryBuilderPostFilterOperator_StartWith extends QueryBuilderPostFi
30
30
  return PrimitiveType.STRING === type;
31
31
  }
32
32
  isCompatibleWithConditionValue(postFilterConditionState) {
33
- const type = postFilterConditionState.value
34
- ? getNonCollectionValueSpecificationType(postFilterConditionState.value)
35
- : undefined;
36
- return PrimitiveType.STRING === type;
33
+ return (!postFilterConditionState.rightConditionValue.isCollection &&
34
+ PrimitiveType.STRING === postFilterConditionState.rightConditionValue.type);
37
35
  }
38
36
  getDefaultFilterConditionValue(postFilterConditionState) {
39
- const propertyType = postFilterConditionState.columnState.getColumnType();
37
+ const propertyType = postFilterConditionState.leftConditionValue.getColumnType();
40
38
  switch (propertyType?.path) {
41
39
  case PRIMITIVE_TYPE.STRING: {
42
40
  return buildPrimitiveInstanceValue(postFilterConditionState.postFilterState.tdsState.queryBuilderState
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderPostFilterOperator_StartWith.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAKL,cAAc,EACd,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,SAAS,EACT,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,EAAE,6BAA6B,EAAE,MAAM,0CAA0C,CAAC;AAKzF,OAAO,EACL,kBAAkB,EAClB,oCAAoC,EACpC,sCAAsC,EACtC,mBAAmB,GACpB,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,kCAAkC,EAAE,MAAM,8DAA8D,CAAC;AAClH,OAAO,EAAE,iCAAiC,EAAE,MAAM,oDAAoD,CAAC;AACvG,OAAO,EAAE,kCAA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,6BAA6B,CAClC,eAAe,EACf,UAAU,EACV,iCAAiC,CAAC,WAAW,EAC7C,IAAI,CACL,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,+BAA+B;SACnE,CAAC,CAAC;IACL,CAAC;CACF;AACD,MAAM,OAAO,2CACX,SAAQ,wCAAwC;IAGvC,QAAQ;QACf,OAAO,oBAAoB,CAAC;IAC9B,CAAC;IAEQ,kCAAkC,CACzC,wBAAkD;QAElD,MAAM,UAAU,GAAG,KAAK,CAAC,kCAAkC,CACzD,wBAAwB,CACzB,CAAC;QACF,OAAO,UAAU,CAAC,CAAC,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IACjE,CAAC;IAEQ,6BAA6B,CACpC,eAA4C,EAC5C,UAAoC;QAEpC,MAAM,eAAe,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACxD,OAAO,eAAe;YACpB,CAAC,CAAC,KAAK,CAAC,6BAA6B,CAAC,eAAe,EAAE,eAAe,CAAC;YACvE,CAAC,CAAC,SAAS,CAAC;IAChB,CAAC;IAED,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,mCAAmC;SACvE,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"QueryBuilderPostFilterOperator_StartWith.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAKL,cAAc,EACd,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,SAAS,EACT,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,EAAE,6BAA6B,EAAE,MAAM,0CAA0C,CAAC;AAKz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AChC,wBAAkD;QAElD,OAAO,kCAAkC,CACvC,wBAAwB,EACxB,IAAI,EACJ,iCAAiC,CAAC,WAAW,CAC9C,CAAC;IACJ,CAAC;IAED,6BAA6B,CAC3B,eAA4C,EAC5C,UAA8B;QAE9B,OAAO,6BAA6B,CAClC,eAAe,EACf,UAAU,EACV,iCAAiC,CAAC,WAAW,EAC7C,IAAI,CACL,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,+BAA+B;SACnE,CAAC,CAAC;IACL,CAAC;CACF;AACD,MAAM,OAAO,2CACX,SAAQ,wCAAwC;IAGvC,QAAQ;QACf,OAAO,oBAAoB,CAAC;IAC9B,CAAC;IAEQ,kCAAkC,CACzC,wBAAkD;QAElD,MAAM,UAAU,GAAG,KAAK,CAAC,kCAAkC,CACzD,wBAAwB,CACzB,CAAC;QACF,OAAO,UAAU,CAAC,CAAC,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IACjE,CAAC;IAEQ,6BAA6B,CACpC,eAA4C,EAC5C,UAAoC;QAEpC,MAAM,eAAe,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACxD,OAAO,eAAe;YACpB,CAAC,CAAC,KAAK,CAAC,6BAA6B,CAAC,eAAe,EAAE,eAAe,CAAC;YACvE,CAAC,CAAC,SAAS,CAAC;IAChB,CAAC;IAED,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,mCAAmC;SACvE,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderProjectionColumnState.d.ts","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAUH,OAAO,EACL,KAAK,WAAW,EAMhB,KAAK,QAAQ,EAEb,WAAW,EACZ,MAAM,s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,IAAI,MAAM,CAOrB;CACF"}
1
+ {"version":3,"file":"QueryBuilderProjectionColumnState.d.ts","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAUH,OAAO,EACL,KAAK,WAAW,EAMhB,KAAK,QAAQ,EAEb,WAAW,EACZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,wCAAwC,EAE9C,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAEL,mCAAmC,EACpC,MAAM,6CAA6C,CAAC;AACrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,IAAI,EACT,KAAK,kBAAkB,EAOvB,SAAS,EAIV,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAMvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAGzE,eAAO,MAAM,wCAAwC,sBAAsB,CAAC;AAE5E,MAAM,WAAW,sCAAsC;IACrD,WAAW,EAAE,iCAAiC,CAAC;CAChD;AAED,8BAAsB,iCACpB,SAAQ,0BACR,YAAW,QAAQ;IAEnB,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;gBAEP,QAAQ,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM;IAa9D,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;CAGjC;AAED,qBAAa,uCACX,SAAQ,iCACR,YAAW,QAAQ;IAEnB,mBAAmB,EAAE,MAAM,CAAgC;IAC3D,uBAAuB,EAAE,mCAAmC,CAAC;gBAG3D,QAAQ,EAAE,oBAAoB,EAC9B,kBAAkB,EAAE,0BAA0B,EAC9C,oB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C;QACvB,6BAA6B,CAAC,EAAE,OAAO,CAAC;QACxC,cAAc,CAAC,EAAE,OAAO,CAAC;KAC1B,GAAG,WAAW,CAAC,IAAI,CAAC;IA2CrB,oBAAoB,IAAI,SAAS;IA+CjC,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAW9B,aAAa,IAAI,IAAI,GAAG,SAAS;IAI1C,IAAI,QAAQ,IAAI,MAAM,CAOrB;CACF"}
@@ -217,9 +217,23 @@ export class QueryBuilderDerivationProjectionColumnState extends QueryBuilderPro
217
217
  const variable = projectionParameter[0];
218
218
  assertNonEmptyString(variable.name);
219
219
  // assign variable to query class
220
- const rawVariableExpression = new RawVariableExpression(variable.name, Multiplicity.ONE, PackageableElementExplicitReference.create(guaranteeNonNullable(this.tdsState.queryBuilderState.class)));
221
- const _rawVariableExpression = this.tdsState.queryBuilderState.graphManagerState.graphManager.serializeRawValueSpecification(rawVariableExpression);
222
- const isolatedLambda = new RawLambda([_rawVariableExpression], this.lambda.body);
220
+ const queryBuilderState = this.tdsState.queryBuilderState;
221
+ const rawVariableExpression = new RawVariableExpression(variable.name, Multiplicity.ONE, PackageableElementExplicitReference.create(guaranteeNonNullable(queryBuilderState.class)));
222
+ const _rawVariableExpression = queryBuilderState.graphManagerState.graphManager.serializeRawValueSpecification(rawVariableExpression);
223
+ const parameters = queryBuilderState.parametersState.parameterStates.map((_param) => queryBuilderState.graphManagerState.graphManager.serializeValueSpecification(_param.parameter));
224
+ const letExpressions = queryBuilderState.constantState.constants
225
+ .map((_const) => _const.buildLetExpression())
226
+ .map((expres) => queryBuilderState.graphManagerState.graphManager.serializeValueSpecification(expres));
227
+ let lambdaBody = this.lambda.body;
228
+ if (letExpressions.length) {
229
+ if (Array.isArray(this.lambda.body)) {
230
+ lambdaBody = [...letExpressions, ...this.lambda.body];
231
+ }
232
+ else {
233
+ lambdaBody = [...letExpressions, this.lambda.body];
234
+ }
235
+ }
236
+ const isolatedLambda = new RawLambda([_rawVariableExpression, ...parameters], lambdaBody);
223
237
  return isolatedLambda;
224
238
  }
225
239
  setLambdaReturnType(type) {
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderProjectionColumnState.js","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,MAAM,EACN,cAAc,EACd,UAAU,EACV,IAAI,EACJ,QAAQ,EACR,UAAU,GACX,MAAM,MAAM,CAAC;AACd,OAAO,EAEL,QAAQ,EACR,iBAAiB,EACjB,oBAAoB,EACpB,UAAU,EACV,oBAAoB,EAEpB,SAAS,EACT,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,+CAA+C,GAChD,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,oBAAoB,EACpB,mCAAmC,GACpC,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAIL,mCAAmC,EACnC,mBAAmB,EACnB,8BAA8B,EAC9B,WAAW,EACX,qBAAqB,EACrB,WAAW,EACX,SAAS,EACT,cAAc,EACd,YAAY,EACZ,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAE9E,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,GAC9B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,kCAAkC,EAAE,MAAM,wCAAwC,CAAC;AAC5F,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,kCAAkC,EAAE,MAAM,kDAAkD,CAAC;AAEtG,MAAM,CAAC,MAAM,wCAAwC,GAAG,mBAAmB,CAAC;AAM5E,MAAM,OAAgB,iCACpB,SAAQ,0BAA0B;IAGlC,QAAQ,CAAuB;IAC/B,UAAU,CAAS;IAEnB,YAAY,QAA8B,EAAE,UAAkB;QAC5D,KAAK,EAAE,CAAC;QACR,cAAc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AM,cAAc,GAAG,IAAI,SAAS,CAClC,CAAC,sBAAsB,CAAC,EACxB,IAAI,CAAC,MAAM,CAAC,IAAI,CACjB,CAAC;QACF,OAAO,cAAc,CAAC;IACxB,CAAC;IAED,mBAAmB,CAAC,IAAY;QAC9B,MAAM,YAAY,GAChB,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACxE,UAAU,CACR,YAAY,YAAY,aAAa;YACnC,YAAY,YAAY,WAAW,EACrC,gFAAgF,CACjF,CAAC;QACF,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;IACnC,CAAC;IAEQ,aAAa;QACpB,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,kCAAkC;YACrE,IAAI,CAAC,UAAU,IAAI,EAAE;YACrB,IAAI,CAAC,MAAM;YACX,IAAI,CAAC,UAAU;SAChB,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"QueryBuilderProjectionColumnState.js","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,MAAM,EACN,cAAc,EACd,UAAU,EACV,IAAI,EACJ,QAAQ,EACR,UAAU,GACX,MAAM,MAAM,CAAC;AACd,OAAO,EAEL,QAAQ,EACR,iBAAiB,EACjB,oBAAoB,EACpB,UAAU,EACV,oBAAoB,EAEpB,SAAS,EACT,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,+CAA+C,GAChD,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,oBAAoB,EACpB,mCAAmC,GACpC,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAIL,mCAAmC,EACnC,mBAAmB,EACnB,8BAA8B,EA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,EAAE;gBACnC,UAAU,GAAG,CAAC,GAAG,cAAc,EAAE,GAAI,IAAI,CAAC,MAAM,CAAC,IAAiB,CAAC,CAAC;aACrE;iBAAM;gBACL,UAAU,GAAG,CAAC,GAAG,cAAc,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;aACpD;SACF;QACD,MAAM,cAAc,GAAG,IAAI,SAAS,CAClC,CAAC,sBAAsB,EAAE,GAAG,UAAU,CAAC,EACvC,UAAU,CACX,CAAC;QACF,OAAO,cAAc,CAAC;IACxB,CAAC;IAED,mBAAmB,CAAC,IAAY;QAC9B,MAAM,YAAY,GAChB,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACxE,UAAU,CACR,YAAY,YAAY,aAAa;YACnC,YAAY,YAAY,WAAW,EACrC,gFAAgF,CACjF,CAAC;QACF,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;IACnC,CAAC;IAEQ,aAAa;QACpB,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,kCAAkC;YACrE,IAAI,CAAC,UAAU,IAAI,EAAE;YACrB,IAAI,CAAC,MAAM;YACX,IAAI,CAAC,UAAU;SAChB,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -112,11 +112,17 @@ export declare class QueryBuilderFilterState implements TreeData<QueryBuilderFil
112
112
  setSelectedNode(val: QueryBuilderFilterTreeNodeData | undefined): void;
113
113
  getNode(id: string): QueryBuilderFilterTreeNodeData;
114
114
  getRootNode(): QueryBuilderFilterTreeNodeData | undefined;
115
- private getParentNode;
115
+ getParentNode(node: QueryBuilderFilterTreeNodeData): QueryBuilderFilterTreeOperationNodeData | undefined;
116
116
  private addRootNode;
117
117
  addNodeFromNode(node: QueryBuilderFilterTreeNodeData, fromNode: QueryBuilderFilterTreeNodeData | undefined): void;
118
118
  replaceBlankNodeWithNode(node: QueryBuilderFilterTreeNodeData, blankNode: QueryBuilderFilterTreeBlankConditionNodeData): void;
119
119
  addGroupConditionNodeFromNode(fromNode: QueryBuilderFilterTreeNodeData | undefined): void;
120
+ /**
121
+ *
122
+ * Function to create group condition from node where either of the
123
+ * child nodes of group condition is `exists` node
124
+ */
125
+ newGroupConditionFromNode(fromNode: QueryBuilderFilterTreeConditionNodeData | QueryBuilderFilterTreeExistsNodeData, node?: QueryBuilderFilterTreeConditionNodeData | QueryBuilderFilterTreeExistsNodeData | undefined, operation?: QUERY_BUILDER_GROUP_OPERATION | undefined): QueryBuilderFilterTreeGroupNodeData;
120
126
  newGroupWithConditionFromNode(node: QueryBuilderFilterTreeNodeData | undefined, fromNode: QueryBuilderFilterTreeNodeData | undefined): void;
121
127
  private removeNode;
122
128
  private pruneChildlessGroupNodes;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderFilterState.d.ts","sourceRoot":"","sources":["../../../src/stores/filter/QueryBuilderFilterState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EACL,KAAK,WAAW,EAWhB,WAAW,EACX,KAAK,QAAQ,EAGd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,0CAA0C,CAAC;AACnG,OAAO,EAAE,mCAAmC,EAAE,MAAM,uCAAuC,CAAC;AAC5F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAEL,KAAK,0BAA0B,EAC/B,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EAExB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,wEAAwE,CAAC;AAMrI,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iC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BAA8B,GACrC,OAAO;IAeV,QAAQ,CACN,IAAI,EAAE,8BAA8B,EACpC,MAAM,EAAE,8BAA8B,GACrC,IAAI;IAIP,YAAY,IAAI,IAAI;IAIpB,UAAU,IAAI,IAAI;IAIlB,cAAc,CAAC,QAAQ,EAAE,kBAAkB,GAAG,OAAO;IAUrD,IAAI,QAAQ,IAAI,MAAM,CAMrB;CACF"}
@@ -298,6 +298,7 @@ export class QueryBuilderFilterState {
298
298
  addNodeFromNode: action,
299
299
  replaceBlankNodeWithNode: action,
300
300
  addGroupConditionNodeFromNode: action,
301
+ newGroupConditionFromNode: action,
301
302
  newGroupWithConditionFromNode: action,
302
303
  removeNodeAndPruneBranch: action,
303
304
  pruneTree: action,
@@ -423,6 +424,32 @@ export class QueryBuilderFilterState {
423
424
  newGroupNode.addChildNode(newBlankConditionNode2);
424
425
  this.addNodeFromNode(newGroupNode, fromNode);
425
426
  }
427
+ /**
428
+ *
429
+ * Function to create group condition from node where either of the
430
+ * child nodes of group condition is `exists` node
431
+ */
432
+ newGroupConditionFromNode(fromNode, node, operation) {
433
+ const fromNodeParent = this.getParentNode(fromNode);
434
+ const newGroupNode = new QueryBuilderFilterTreeGroupNodeData(undefined, operation ?? QUERY_BUILDER_GROUP_OPERATION.AND);
435
+ this.nodes.set(newGroupNode.id, newGroupNode);
436
+ fromNodeParent?.removeChildNode(fromNode);
437
+ newGroupNode.addChildNode(fromNode);
438
+ if (node) {
439
+ this.nodes.set(node.id, node);
440
+ newGroupNode.addChildNode(node);
441
+ }
442
+ newGroupNode.lambdaParameterName =
443
+ fromNodeParent?.lambdaParameterName ?? this.lambdaParameterName;
444
+ if (fromNodeParent) {
445
+ fromNodeParent.addChildNode(newGroupNode);
446
+ }
447
+ else {
448
+ deleteEntry(this.rootIds, fromNode.id);
449
+ this.addRootNode(newGroupNode);
450
+ }
451
+ return newGroupNode;
452
+ }
426
453
  newGroupWithConditionFromNode(node, fromNode) {
427
454
  const newNode = node ?? new QueryBuilderFilterTreeBlankConditionNodeData(undefined);
428
455
  if (fromNode instanceof QueryBuilderFilterTreeConditionNodeData) {