@finos/legend-query-builder 4.9.3 → 4.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) hide show
  1. package/lib/__lib__/QueryBuilderTesting.d.ts +3 -1
  2. package/lib/__lib__/QueryBuilderTesting.d.ts.map +1 -1
  3. package/lib/__lib__/QueryBuilderTesting.js +4 -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 +36 -33
  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 +5 -6
  18. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
  19. package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts +1 -1
  20. package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts.map +1 -1
  21. package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js +2 -2
  22. package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js.map +1 -1
  23. package/lib/index.css +1 -1
  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/QueryBuilderStateHashUtils.d.ts +2 -0
  30. package/lib/stores/QueryBuilderStateHashUtils.d.ts.map +1 -1
  31. package/lib/stores/QueryBuilderStateHashUtils.js +2 -0
  32. package/lib/stores/QueryBuilderStateHashUtils.js.map +1 -1
  33. package/lib/stores/QueryBuilderValueSpecificationBuilder.d.ts.map +1 -1
  34. package/lib/stores/QueryBuilderValueSpecificationBuilder.js +3 -23
  35. package/lib/stores/QueryBuilderValueSpecificationBuilder.js.map +1 -1
  36. package/lib/stores/explorer/QueryBuilderExplorerState.d.ts.map +1 -1
  37. package/lib/stores/explorer/QueryBuilderExplorerState.js +26 -8
  38. package/lib/stores/explorer/QueryBuilderExplorerState.js.map +1 -1
  39. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.d.ts.map +1 -1
  40. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js +6 -0
  41. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js.map +1 -1
  42. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunction.d.ts +3 -3
  43. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunction.d.ts.map +1 -1
  44. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunction.js.map +1 -1
  45. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.d.ts +2 -2
  46. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.d.ts.map +1 -1
  47. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.js +5 -4
  48. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.js.map +1 -1
  49. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.js +1 -1
  50. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.js.map +1 -1
  51. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts +31 -5
  52. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts.map +1 -1
  53. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js +125 -30
  54. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js.map +1 -1
  55. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.d.ts.map +1 -1
  56. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.js +21 -8
  57. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.js.map +1 -1
  58. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.d.ts +3 -1
  59. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.d.ts.map +1 -1
  60. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js +20 -17
  61. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js.map +1 -1
  62. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts.map +1 -1
  63. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js +4 -6
  64. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js.map +1 -1
  65. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts.map +1 -1
  66. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js +4 -6
  67. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js.map +1 -1
  68. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts +1 -1
  69. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts.map +1 -1
  70. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js +10 -10
  71. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js.map +1 -1
  72. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts.map +1 -1
  73. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js +10 -10
  74. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js.map +1 -1
  75. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts.map +1 -1
  76. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js +5 -5
  77. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js.map +1 -1
  78. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts +1 -1
  79. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts.map +1 -1
  80. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.js +32 -27
  81. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.js.map +1 -1
  82. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts.map +1 -1
  83. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js +10 -5
  84. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js.map +1 -1
  85. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts.map +1 -1
  86. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js +10 -10
  87. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js.map +1 -1
  88. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts.map +1 -1
  89. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js +5 -5
  90. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js.map +1 -1
  91. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts.map +1 -1
  92. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js +4 -6
  93. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js.map +1 -1
  94. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.d.ts.map +1 -1
  95. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js +17 -3
  96. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js.map +1 -1
  97. package/package.json +5 -5
  98. package/src/__lib__/QueryBuilderTesting.ts +4 -1
  99. package/src/components/QueryBuilderResultPanel.tsx +64 -59
  100. package/src/components/__test-utils__/QueryBuilderComponentTestUtils.tsx +25 -1
  101. package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +102 -49
  102. package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +24 -17
  103. package/src/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.ts +3 -4
  104. package/src/stores/QueryBuilderConstantsState.ts +30 -0
  105. package/src/stores/QueryBuilderStateHashUtils.ts +2 -0
  106. package/src/stores/QueryBuilderValueSpecificationBuilder.ts +4 -50
  107. package/src/stores/explorer/QueryBuilderExplorerState.ts +43 -13
  108. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.ts +10 -0
  109. package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunction.ts +2 -3
  110. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.ts +7 -6
  111. package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.ts +1 -1
  112. package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.ts +180 -34
  113. package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.ts +38 -9
  114. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.ts +36 -20
  115. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.ts +5 -6
  116. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.ts +6 -6
  117. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.ts +12 -13
  118. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.ts +10 -9
  119. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.ts +5 -4
  120. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.ts +48 -43
  121. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.ts +12 -4
  122. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.ts +10 -9
  123. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.ts +5 -4
  124. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts +6 -6
  125. package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.ts +26 -4
@@ -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,kCAAkC,EAAE,MAAM,2CAA2C,CAAC;AAC/F,OAAO,EAAE,2BAA2B,EAAE,MAAM,sDAAsD,CAAC;AAEnG,MAAM,OAAO,wCACX,SAAQ,8BAA8B;IAGtC,QAAQ;QACN,OAAO,aAAa,CAAC;IACvB,CAAC;IAED,oBAAoB,CAAC,IAAU;QAC7B,OAAO,aAAa,CAAC,MAAM,KAAK,IAAI,CAAC;IACvC,CAAC;IAED,8BAA8B,CAC5B,wBAAkD;QAElD,MAAM,IAAI,GAAG,wBAAwB,CAAC,KAAK;YACzC,CAAC,CAAC,sCAAsC,CAAC,wBAAwB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B,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;AAKzF,OAAO,EACL,kBAAkB,EAClB,oCAAoC,EACpC,mBAAmB,GACpB,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,wCACX,SAAQ,8BAA8B;IAGtC,QAAQ;QACN,OAAO,aAAa,CAAC;IACvB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AAO,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,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,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AAkC,CAAC,OAAO,CAAC,EAAE;QAC5C,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAC7B,wBAAwB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KAChD,GAAG,WAAW,CAAC,IAAI,CAAC;CAqCtB;AAED,qBAAa,2CACX,SAAQ,iCACR,YAAW,QAAQ;IAEnB,2BAA2B,EAAE,2CAA2C,CAAC;IACzE,MAAM,EAAE,SAAS,CAAC;IAClB,UAAU,EAAE,IAAI,GAAG,SAAS,CAAC;IAC7B,6BAA6B,cAAwB;gBAEzC,QAAQ,EAAE,oBAAoB,EAAE,MAAM,EAAE,SAAS;IAoB7D,SAAS,CAAC,GAAG,EAAE,SAAS,GAAG,IAAI;IAI/B,aAAa,CAAC,GAAG,EAAE,IAAI,GAAG,SAAS,GAAG,IAAI;IAI1C;;;;OAIG;IACF,+BAA+B,CAAC,OAAO,CAAC,EAAE;QACzC,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,6BAA6B,CAAC,EAAE,OAAO,CAAC;QACxC,cAAc,CAAC,EAAE,OAAO,CAAC;KAC1B,GAAG,WAAW,CAAC,IAAI,CAAC;IA2CrB,oBAAoB,IAAI,SAAS;IAyBjC,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAW9B,aAAa,IAAI,IAAI,GAAG,SAAS;IAI1C,IAAI,QAAQ,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,C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,2CAA2C,CAAC;IAC7E;;;OAGG;IACH,kBAAkB,SAAM;gBAGtB,iBAAiB,EAAE,iBAAiB,EACpC,+BAA+B,EAAE,2CAA2C;IAO9E,IAAI,QAAQ,IAAI,MAAM,CAQrB;IAED,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IAItC,kCAAkC,IAAI,WAAW,CAAC,IAAI,CAAC;IA2BvD,kCAAkC,CAAC,OAAO,CAAC,EAAE;QAC5C,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAC7B,wBAAwB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KAChD,GAAG,WAAW,CAAC,IAAI,CAAC;CAqCtB;AAED,qBAAa,2CACX,SAAQ,iCACR,YAAW,QAAQ;IAEnB,2BAA2B,EAAE,2CAA2C,CAAC;IACzE,MAAM,EAAE,SAAS,CAAC;IAClB,UAAU,EAAE,IAAI,GAAG,SAAS,CAAC;IAC7B,6BAA6B,cAAwB;gBAEzC,QAAQ,EAAE,oBAAoB,EAAE,MAAM,EAAE,SAAS;IAoB7D,SAAS,CAAC,GAAG,EAAE,SAAS,GAAG,IAAI;IAI/B,aAAa,CAAC,GAAG,EAAE,IAAI,GAAG,SAAS,GAAG,IAAI;IAI1C;;;;OAIG;IACF,+BAA+B,CAAC,OAAO,CAAC,EAAE;QACzC,YAAY,CAAC,EAAE,OAAO,CAAC;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,o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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,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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9B,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-query-builder",
3
- "version": "4.9.3",
3
+ "version": "4.10.0",
4
4
  "description": "Legend query builder core",
5
5
  "keywords": [
6
6
  "legend",
@@ -42,10 +42,10 @@
42
42
  "test:watch": "jest --watch"
43
43
  },
44
44
  "dependencies": {
45
- "@finos/legend-application": "15.0.44",
46
- "@finos/legend-art": "7.0.44",
47
- "@finos/legend-graph": "31.3.4",
48
- "@finos/legend-lego": "1.1.37",
45
+ "@finos/legend-application": "15.0.45",
46
+ "@finos/legend-art": "7.0.45",
47
+ "@finos/legend-graph": "31.3.5",
48
+ "@finos/legend-lego": "1.1.39",
49
49
  "@finos/legend-server-depot": "6.0.31",
50
50
  "@finos/legend-shared": "10.0.27",
51
51
  "@finos/legend-storage": "3.0.77",
@@ -20,6 +20,7 @@ export enum QUERY_BUILDER_TEST_ID {
20
20
  QUERY_BUILDER = 'query__builder',
21
21
  QUERY_BUILDER_SETUP = 'query__builder__setup',
22
22
  QUERY_BUILDER_TDS = 'query__builder__tds',
23
+ QUERY_BUILDER_TDS_PROJECTION_COLUMN = 'QUERY_BUILDER_TDS_PROJECTION_COLUMN',
23
24
  QUERY_BUILDER_TDS_RESULT_MODIFIER_PROMPT = 'query-builder__tds__result-modifier-prompt',
24
25
  QUERY_BUILDER_GRAPH_FETCH = 'query__builder__graph__fetch',
25
26
  // filter panel
@@ -27,7 +28,9 @@ export enum QUERY_BUILDER_TEST_ID {
27
28
  QUERY_BUILDER_FILTER_TREE = 'query__builder__filter__tree',
28
29
  QUERY_BUILDER_FILTER_TREE_NODE = 'query__builder__filter__tree__node',
29
30
  QUERY_BUILDER_FILTER_TREE_NODE_CONTENT = 'query__builder__filter__tree__node-content',
30
- QUERY_BUILDER_POST_FILTER = 'query__builder__post-filter',
31
+ // post filter
32
+ QUERY_BUILDER_POST_FILTER_PANEL = 'query__builder__post__filter-panel',
33
+ QUERY_BUILDER_POST_FILTER_TREE_NODE_CONTENT = 'query__builder__post__filter-tree-node__content',
31
34
  QUERY_BUILDER_WINDOW_GROUPBY = 'query__builder__window',
32
35
  QUERY_BUILDER_EXPLORER = 'query__builder__explorer',
33
36
  QUERY_BUILDER_PROPERTY_SEARCH_PANEL = 'query__builder__property__search__panel',
@@ -80,6 +80,7 @@ import {
80
80
  type QueryBuilderPostFilterTreeNodeData,
81
81
  PostFilterConditionState,
82
82
  QueryBuilderPostFilterTreeConditionNodeData,
83
+ PostFilterValueSpecConditionValueState,
83
84
  } from '../stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js';
84
85
  import {
85
86
  QueryBuilderPostFilterOperator_Equal,
@@ -171,13 +172,13 @@ const QueryBuilderGridResultContextMenu = observer(
171
172
  .filter(
172
173
  (v) =>
173
174
  v instanceof QueryBuilderPostFilterTreeConditionNodeData &&
174
- v.condition.columnState instanceof
175
+ v.condition.leftConditionValue instanceof
175
176
  QueryBuilderProjectionColumnState,
176
177
  )
177
178
  .filter(
178
179
  (n) =>
179
180
  (n as QueryBuilderPostFilterTreeConditionNodeData).condition
180
- .columnState.columnName ===
181
+ .leftConditionValue.columnName ===
181
182
  (projectionColumnName ?? projectionColumnState?.columnName) &&
182
183
  operators
183
184
  .map((op) => op.getLabel())
@@ -231,7 +232,6 @@ const QueryBuilderGridResultContextMenu = observer(
231
232
  postFilterConditionState = new PostFilterConditionState(
232
233
  postFilterState,
233
234
  possibleProjectionColumnState,
234
- undefined,
235
235
  operator,
236
236
  );
237
237
 
@@ -249,7 +249,9 @@ const QueryBuilderGridResultContextMenu = observer(
249
249
  postFilterConditionState,
250
250
  );
251
251
 
252
- postFilterConditionState.setValue(defaultFilterConditionValue);
252
+ postFilterConditionState.buildFromValueSpec(
253
+ defaultFilterConditionValue,
254
+ );
253
255
  updateFilterConditionValue(
254
256
  defaultFilterConditionValue as InstanceValue,
255
257
  cellData,
@@ -293,62 +295,65 @@ const QueryBuilderGridResultContextMenu = observer(
293
295
  existingPostFilterNode as QueryBuilderPostFilterTreeConditionNodeData
294
296
  ).condition;
295
297
 
296
- if (conditionState.operator.getLabel() === operator.getLabel()) {
297
- const doesValueAlreadyExist =
298
- conditionState.value instanceof InstanceValue &&
299
- (conditionState.value instanceof EnumValueInstanceValue
300
- ? conditionState.value.values.map((ef) => ef.value.name)
301
- : conditionState.value.values
302
- ).includes(cellData.value);
303
-
304
- if (!doesValueAlreadyExist) {
305
- const currentValueSpecificaton = conditionState.value;
306
- const newValueSpecification =
307
- conditionState.operator.getDefaultFilterConditionValue(
308
- conditionState,
298
+ const rightSide = conditionState.rightConditionValue;
299
+ if (rightSide instanceof PostFilterValueSpecConditionValueState) {
300
+ if (conditionState.operator.getLabel() === operator.getLabel()) {
301
+ const doesValueAlreadyExist =
302
+ rightSide.value instanceof InstanceValue &&
303
+ (rightSide.value instanceof EnumValueInstanceValue
304
+ ? rightSide.value.values.map((ef) => ef.value.name)
305
+ : rightSide.value.values
306
+ ).includes(cellData.value);
307
+
308
+ if (!doesValueAlreadyExist) {
309
+ const currentValueSpecificaton = rightSide.value;
310
+ const newValueSpecification =
311
+ conditionState.operator.getDefaultFilterConditionValue(
312
+ conditionState,
313
+ );
314
+ updateFilterConditionValue(
315
+ newValueSpecification as InstanceValue,
316
+ cellData,
309
317
  );
310
- updateFilterConditionValue(
311
- newValueSpecification as InstanceValue,
312
- cellData,
313
- );
314
- conditionState.changeOperator(
315
- isFilterBy ? postFilterInOperator : postFilterNotInOperator,
316
- );
317
- instanceValue_setValues(
318
- conditionState.value as InstanceValue,
319
- [currentValueSpecificaton, newValueSpecification],
320
- tdsState.queryBuilderState.observerContext,
321
- );
322
- }
323
- } else {
324
- const doesValueAlreadyExist =
325
- conditionState.value instanceof InstanceValue &&
326
- conditionState.value.values
327
- .filter((v) => v instanceof InstanceValue)
328
- .map((v) =>
329
- v instanceof EnumValueInstanceValue
330
- ? v.values.map((ef) => ef.value.name)
331
- : (v as InstanceValue).values,
332
- )
333
- .flat()
334
- .includes(cellData.value ?? data?.value);
335
-
336
- if (!doesValueAlreadyExist) {
337
- const newValueSpecification = (
338
- isFilterBy ? postFilterEqualOperator : postFilterNotEqualOperator
339
- ).getDefaultFilterConditionValue(conditionState);
340
- updateFilterConditionValue(
341
- newValueSpecification as InstanceValue,
342
- cellData,
343
- );
344
- instanceValue_setValues(
345
- conditionState.value as InstanceValue,
346
- [
347
- ...(conditionState.value as InstanceValue).values,
348
- newValueSpecification,
349
- ],
350
- tdsState.queryBuilderState.observerContext,
351
- );
318
+ conditionState.changeOperator(
319
+ isFilterBy ? postFilterInOperator : postFilterNotInOperator,
320
+ );
321
+ instanceValue_setValues(
322
+ rightSide.value as InstanceValue,
323
+ [currentValueSpecificaton, newValueSpecification],
324
+ tdsState.queryBuilderState.observerContext,
325
+ );
326
+ }
327
+ } else {
328
+ const doesValueAlreadyExist =
329
+ rightSide.value instanceof InstanceValue &&
330
+ rightSide.value.values
331
+ .filter((v) => v instanceof InstanceValue)
332
+ .map((v) =>
333
+ v instanceof EnumValueInstanceValue
334
+ ? v.values.map((ef) => ef.value.name)
335
+ : (v as InstanceValue).values,
336
+ )
337
+ .flat()
338
+ .includes(cellData.value ?? data?.value);
339
+
340
+ if (!doesValueAlreadyExist) {
341
+ const newValueSpecification = (
342
+ isFilterBy ? postFilterEqualOperator : postFilterNotEqualOperator
343
+ ).getDefaultFilterConditionValue(conditionState);
344
+ updateFilterConditionValue(
345
+ newValueSpecification as InstanceValue,
346
+ cellData,
347
+ );
348
+ instanceValue_setValues(
349
+ rightSide.value as InstanceValue,
350
+ [
351
+ ...(rightSide.value as InstanceValue).values,
352
+ newValueSpecification,
353
+ ],
354
+ tdsState.queryBuilderState.observerContext,
355
+ );
356
+ }
352
357
  }
353
358
  }
354
359
  };
@@ -14,7 +14,14 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { type RenderResult, render, waitFor } from '@testing-library/react';
17
+ import {
18
+ type RenderResult,
19
+ render,
20
+ waitFor,
21
+ fireEvent,
22
+ findByText,
23
+ getByText,
24
+ } from '@testing-library/react';
18
25
  import { LogService } from '@finos/legend-shared';
19
26
  import { createSpy } from '@finos/legend-shared/test';
20
27
  import {
@@ -43,6 +50,23 @@ import {
43
50
  TEST__getGenericApplicationConfig,
44
51
  } from '../../stores/__test-utils__/QueryBuilderStateTestUtils.js';
45
52
 
53
+ export const dragAndDrop = async (
54
+ source: HTMLElement,
55
+ drop: HTMLElement,
56
+ panel: HTMLElement,
57
+ draggingHoverText?: string,
58
+ ): Promise<void> => {
59
+ fireEvent.dragStart(source);
60
+ fireEvent.dragEnter(drop);
61
+ fireEvent.dragOver(drop);
62
+ if (draggingHoverText) {
63
+ await findByText(panel, draggingHoverText);
64
+ fireEvent.drop(getByText(panel, draggingHoverText));
65
+ } else {
66
+ fireEvent.dragOver(drop);
67
+ }
68
+ };
69
+
46
70
  export const TEST__setUpQueryBuilder = async (
47
71
  entities: Entity[],
48
72
  lambda: RawLambda,
@@ -61,7 +61,13 @@ import {
61
61
  } from '@finos/legend-shared';
62
62
  import { flowResult } from 'mobx';
63
63
  import { observer } from 'mobx-react-lite';
64
- import { forwardRef, useCallback, useMemo, useRef, useState } from 'react';
64
+ import React, {
65
+ forwardRef,
66
+ useCallback,
67
+ useMemo,
68
+ useRef,
69
+ useState,
70
+ } from 'react';
65
71
  import { useDrop, useDrag, useDragLayer } from 'react-dnd';
66
72
  import { QueryBuilderAggregateColumnState } from '../../stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js';
67
73
  import type { QueryBuilderPostFilterOperator } from '../../stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.js';
@@ -74,6 +80,8 @@ import {
74
80
  QueryBuilderPostFilterTreeGroupNodeData,
75
81
  QueryBuilderPostFilterTreeBlankConditionNodeData,
76
82
  QUERY_BUILDER_POST_FILTER_DND_TYPE,
83
+ PostFilterValueSpecConditionValueState,
84
+ PostFilterTDSColumnValueConditionValueState,
77
85
  } from '../../stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js';
78
86
  import {
79
87
  type QueryBuilderProjectionColumnState,
@@ -203,14 +211,14 @@ const QueryBuilderPostFilterGroupConditionEditor = observer(
203
211
 
204
212
  export const QueryBuilderColumnBadge = observer(
205
213
  (props: {
206
- postFilterConditionState: PostFilterConditionState;
214
+ colState: QueryBuilderTDSColumnState;
207
215
  onColumnChange: (
208
216
  columnState: QueryBuilderProjectionColumnState,
209
217
  ) => Promise<void>;
210
218
  }) => {
211
- const { postFilterConditionState, onColumnChange } = props;
219
+ const { colState, onColumnChange } = props;
212
220
  const applicationStore = useApplicationStore();
213
- const type = postFilterConditionState.columnState.getColumnType();
221
+ const type = colState.getColumnType();
214
222
  const handleDrop = useCallback(
215
223
  (item: QueryBuilderProjectionColumnDragSource): Promise<void> =>
216
224
  onColumnChange(item.columnState),
@@ -261,12 +269,12 @@ export const QueryBuilderColumnBadge = observer(
261
269
  )}
262
270
  <div
263
271
  className="query-builder-column-badge__property"
264
- title={`${postFilterConditionState.columnName}`}
272
+ title={`${colState.columnName}`}
265
273
  >
266
- {postFilterConditionState.columnName}
274
+ {colState.columnName}
267
275
  </div>
268
276
  <QueryBuilderColumnInfoTooltip
269
- columnState={postFilterConditionState.columnState}
277
+ columnState={colState}
270
278
  placement="bottom-end"
271
279
  >
272
280
  <div className="query-builder-column-badge__property__info">
@@ -291,13 +299,15 @@ const QueryBuilderPostFilterConditionEditor = observer(
291
299
  const applicationStore = useApplicationStore();
292
300
  const changeOperator = (val: QueryBuilderPostFilterOperator) => (): void =>
293
301
  node.condition.changeOperator(val);
302
+ const rightConditionValue = node.condition.rightConditionValue;
294
303
  const changeColumn = async (
295
304
  columnState: QueryBuilderProjectionColumnState,
296
305
  ): Promise<void> => {
297
306
  const currentColState =
298
- node.condition.columnState instanceof QueryBuilderAggregateColumnState
299
- ? node.condition.columnState.projectionColumnState
300
- : node.condition.columnState;
307
+ node.condition.leftConditionValue instanceof
308
+ QueryBuilderAggregateColumnState
309
+ ? node.condition.leftConditionValue.projectionColumnState
310
+ : node.condition.leftConditionValue;
301
311
  if (currentColState !== columnState) {
302
312
  await flowResult(node.condition.changeColumn(columnState));
303
313
  }
@@ -306,12 +316,13 @@ const QueryBuilderPostFilterConditionEditor = observer(
306
316
  const handleDrop = useCallback(
307
317
  (item: QueryBuilderVariableDragSource): void => {
308
318
  const parameterType = item.variable.genericType?.value.rawType;
309
- const conditionValueType = node.condition.columnState.getColumnType();
319
+ const conditionValueType =
320
+ node.condition.leftConditionValue.getColumnType();
310
321
  if (
311
322
  conditionValueType &&
312
323
  isTypeCompatibleForAssignment(parameterType, conditionValueType)
313
324
  ) {
314
- node.condition.setValue(item.variable);
325
+ node.condition.buildFromValueSpec(item.variable);
315
326
  } else {
316
327
  applicationStore.notificationService.notifyWarning(
317
328
  `Incompatible parameter type ${parameterType?.name}. ${parameterType?.name} is not compatible with type ${conditionValueType?.name}.`,
@@ -339,7 +350,7 @@ const QueryBuilderPostFilterConditionEditor = observer(
339
350
  [handleDrop],
340
351
  );
341
352
  const resetNode = (): void => {
342
- node.condition.setValue(
353
+ node.condition.buildFromValueSpec(
343
354
  node.condition.operator.getDefaultFilterConditionValue(node.condition),
344
355
  );
345
356
  };
@@ -355,7 +366,7 @@ const QueryBuilderPostFilterConditionEditor = observer(
355
366
  node.condition.typeaheadSearchState.complete();
356
367
  };
357
368
  const changeValueSpecification = (val: ValueSpecification): void => {
358
- node.condition.setValue(val);
369
+ node.condition.buildFromValueSpec(val);
359
370
  };
360
371
  const selectorConfig = {
361
372
  values: node.condition.typeaheadSearchResults,
@@ -371,6 +382,70 @@ const QueryBuilderPostFilterConditionEditor = observer(
371
382
  monitor.getItemType() === QUERY_BUILDER_WINDOW_COLUMN_DND_TYPE),
372
383
  }));
373
384
 
385
+ const renderRightVal = (): React.ReactNode => {
386
+ if (
387
+ rightConditionValue instanceof PostFilterValueSpecConditionValueState &&
388
+ rightConditionValue.value
389
+ ) {
390
+ return (
391
+ <div
392
+ ref={dropConnector}
393
+ className="query-builder-post-filter-tree__condition-node__value"
394
+ >
395
+ <PanelEntryDropZonePlaceholder
396
+ isDragOver={isFilterValueDragOver}
397
+ label="Change Filter Value"
398
+ >
399
+ <BasicValueSpecificationEditor
400
+ valueSpecification={rightConditionValue.value}
401
+ setValueSpecification={changeValueSpecification}
402
+ graph={graph}
403
+ obseverContext={queryBuilderState.observerContext}
404
+ typeCheckOption={{
405
+ expectedType: guaranteeNonNullable(
406
+ node.condition.leftConditionValue.getColumnType(),
407
+ ),
408
+ }}
409
+ resetValue={resetNode}
410
+ selectorConfig={selectorConfig}
411
+ isConstant={queryBuilderState.constantState.isValueSpecConstant(
412
+ rightConditionValue.value,
413
+ )}
414
+ />
415
+ </PanelEntryDropZonePlaceholder>
416
+ </div>
417
+ );
418
+ } else if (
419
+ rightConditionValue instanceof
420
+ PostFilterTDSColumnValueConditionValueState
421
+ ) {
422
+ const changeRightCol = async (
423
+ columnState: QueryBuilderProjectionColumnState,
424
+ ): Promise<void> => {
425
+ rightConditionValue.changeCol(columnState);
426
+ };
427
+ return (
428
+ <div
429
+ ref={dropConnector}
430
+ className="query-builder-post-filter-tree__condition-node__value"
431
+ >
432
+ <PanelEntryDropZonePlaceholder
433
+ isDragOver={isFilterValueDragOver}
434
+ label="Change Filter Value"
435
+ >
436
+ <div className="query-builder-post-filter-tree__condition-node__property">
437
+ <QueryBuilderColumnBadge
438
+ colState={rightConditionValue.tdsColumn}
439
+ onColumnChange={changeRightCol}
440
+ />
441
+ </div>
442
+ </PanelEntryDropZonePlaceholder>
443
+ </div>
444
+ );
445
+ }
446
+ return null;
447
+ };
448
+
374
449
  return (
375
450
  <div className="query-builder-post-filter-tree__node__label__content dnd__entry__container">
376
451
  <PanelEntryDropZonePlaceholder
@@ -381,7 +456,7 @@ const QueryBuilderPostFilterConditionEditor = observer(
381
456
  <div className="query-builder-post-filter-tree__condition-node">
382
457
  <div className="query-builder-post-filter-tree__condition-node__property">
383
458
  <QueryBuilderColumnBadge
384
- postFilterConditionState={node.condition}
459
+ colState={node.condition.leftConditionValue}
385
460
  onColumnChange={changeColumn}
386
461
  />
387
462
  </div>
@@ -414,34 +489,7 @@ const QueryBuilderPostFilterConditionEditor = observer(
414
489
  <CaretDownIcon />
415
490
  </div>
416
491
  </DropdownMenu>
417
- {node.condition.value && (
418
- <div
419
- ref={dropConnector}
420
- className="query-builder-post-filter-tree__condition-node__value"
421
- >
422
- <PanelEntryDropZonePlaceholder
423
- isDragOver={isFilterValueDragOver}
424
- label="Change Filter Value"
425
- >
426
- <BasicValueSpecificationEditor
427
- valueSpecification={node.condition.value}
428
- setValueSpecification={changeValueSpecification}
429
- graph={graph}
430
- obseverContext={queryBuilderState.observerContext}
431
- typeCheckOption={{
432
- expectedType: guaranteeNonNullable(
433
- node.condition.columnState.getColumnType(),
434
- ),
435
- }}
436
- resetValue={resetNode}
437
- selectorConfig={selectorConfig}
438
- isConstant={queryBuilderState.constantState.isValueSpecConstant(
439
- node.condition.value,
440
- )}
441
- />
442
- </PanelEntryDropZonePlaceholder>
443
- </div>
444
- )}
492
+ {renderRightVal()}
445
493
  </div>
446
494
  </PanelEntryDropZonePlaceholder>
447
495
  </div>
@@ -538,9 +586,8 @@ const QueryBuilderPostFilterTreeNodeContainer = observer(
538
586
  postFilterState,
539
587
  columnState,
540
588
  undefined,
541
- undefined,
542
589
  );
543
- conditionState.setValue(
590
+ conditionState.buildFromValueSpec(
544
591
  conditionState.operator.getDefaultFilterConditionValue(
545
592
  conditionState,
546
593
  ),
@@ -648,6 +695,9 @@ const QueryBuilderPostFilterTreeNodeContainer = observer(
648
695
  >
649
696
  <div
650
697
  ref={ref}
698
+ data-testid={
699
+ QUERY_BUILDER_TEST_ID.QUERY_BUILDER_POST_FILTER_TREE_NODE_CONTENT
700
+ }
651
701
  className={clsx(
652
702
  'tree-view__node__container query-builder-post-filter-tree__node__container',
653
703
  {
@@ -679,6 +729,10 @@ const QueryBuilderPostFilterTreeNodeContainer = observer(
679
729
  <div
680
730
  className={clsx(
681
731
  'tree-view__node__label query-builder-post-filter-tree__node__label',
732
+ {
733
+ 'query-builder-post-filter-tree__node__label--expandable':
734
+ isExpandable,
735
+ },
682
736
  )}
683
737
  >
684
738
  {node instanceof QueryBuilderPostFilterTreeGroupNodeData && (
@@ -894,9 +948,8 @@ const QueryBuilderPostFilterPanelContent = observer(
894
948
  postFilterState,
895
949
  aggregateColumnState ?? columnState,
896
950
  undefined,
897
- undefined,
898
951
  );
899
- postFilterConditionState.setValue(
952
+ postFilterConditionState.buildFromValueSpec(
900
953
  postFilterConditionState.operator.getDefaultFilterConditionValue(
901
954
  postFilterConditionState,
902
955
  ),
@@ -959,7 +1012,7 @@ const QueryBuilderPostFilterPanelContent = observer(
959
1012
  <div className="panel__header__actions">
960
1013
  <DropdownMenu
961
1014
  className="panel__header__action"
962
- title="Show Filter Options Menu..."
1015
+ title="Show Post-Filter Options Menu..."
963
1016
  content={
964
1017
  <MenuContent>
965
1018
  <MenuContentItem onClick={createCondition}>
@@ -1091,7 +1144,7 @@ export const QueryBuilderPostFilterPanel = observer(
1091
1144
 
1092
1145
  return (
1093
1146
  <div
1094
- data-testid={QUERY_BUILDER_TEST_ID.QUERY_BUILDER_POST_FILTER}
1147
+ data-testid={QUERY_BUILDER_TEST_ID.QUERY_BUILDER_POST_FILTER_PANEL}
1095
1148
  className="panel"
1096
1149
  >
1097
1150
  {fetchStructureImplementation instanceof QueryBuilderTDSState && (