@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
@@ -18,13 +18,15 @@ export declare enum QUERY_BUILDER_TEST_ID {
18
18
  QUERY_BUILDER = "query__builder",
19
19
  QUERY_BUILDER_SETUP = "query__builder__setup",
20
20
  QUERY_BUILDER_TDS = "query__builder__tds",
21
+ QUERY_BUILDER_TDS_PROJECTION_COLUMN = "QUERY_BUILDER_TDS_PROJECTION_COLUMN",
21
22
  QUERY_BUILDER_TDS_RESULT_MODIFIER_PROMPT = "query-builder__tds__result-modifier-prompt",
22
23
  QUERY_BUILDER_GRAPH_FETCH = "query__builder__graph__fetch",
23
24
  QUERY_BUILDER_FILTER_PANEL = "query__builder__filter__panel",
24
25
  QUERY_BUILDER_FILTER_TREE = "query__builder__filter__tree",
25
26
  QUERY_BUILDER_FILTER_TREE_NODE = "query__builder__filter__tree__node",
26
27
  QUERY_BUILDER_FILTER_TREE_NODE_CONTENT = "query__builder__filter__tree__node-content",
27
- QUERY_BUILDER_POST_FILTER = "query__builder__post-filter",
28
+ QUERY_BUILDER_POST_FILTER_PANEL = "query__builder__post__filter-panel",
29
+ QUERY_BUILDER_POST_FILTER_TREE_NODE_CONTENT = "query__builder__post__filter-tree-node__content",
28
30
  QUERY_BUILDER_WINDOW_GROUPBY = "query__builder__window",
29
31
  QUERY_BUILDER_EXPLORER = "query__builder__explorer",
30
32
  QUERY_BUILDER_PROPERTY_SEARCH_PANEL = "query__builder__property__search__panel",
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderTesting.d.ts","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderTesting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,qBAAqB;IAC/B,2BAA2B,iCAAiC;IAE5D,aAAa,mBAAmB;IAChC,mBAAmB,0BAA0B;IAC7C,iBAAiB,wBAAwB;IACzC,wCAAwC,+CAA+C;IACvF,yBAAyB,iCAAiC;IAE1D,0BAA0B,kCAAkC;IAC5D,yBAAyB,iCAAiC;IAC1D,8BAA8B,uCAAuC;IACrE,sCAAsC,+CAA+C;IACrF,yBAAyB,gCAAgC;IACzD,4BAA4B,2BAA2B;IACvD,sBAAsB,6BAA6B;IACnD,mCAAmC,4CAA4C;IAC/E,0BAA0B,kCAAkC;IAC5D,8BAA8B,sCAAsC;IACpE,wBAAwB,8BAA8B;IACtD,uBAAuB,6BAA6B;CACrD"}
1
+ {"version":3,"file":"QueryBuilderTesting.d.ts","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderTesting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,qBAAqB;IAC/B,2BAA2B,iCAAiC;IAE5D,aAAa,mBAAmB;IAChC,mBAAmB,0BAA0B;IAC7C,iBAAiB,wBAAwB;IACzC,mCAAmC,wCAAwC;IAC3E,wCAAwC,+CAA+C;IACvF,yBAAyB,iCAAiC;IAE1D,0BAA0B,kCAAkC;IAC5D,yBAAyB,iCAAiC;IAC1D,8BAA8B,uCAAuC;IACrE,sCAAsC,+CAA+C;IAErF,+BAA+B,uCAAuC;IACtE,2CAA2C,oDAAoD;IAC/F,4BAA4B,2BAA2B;IACvD,sBAAsB,6BAA6B;IACnD,mCAAmC,4CAA4C;IAC/E,0BAA0B,kCAAkC;IAC5D,8BAA8B,sCAAsC;IACpE,wBAAwB,8BAA8B;IACtD,uBAAuB,6BAA6B;CACrD"}
@@ -19,6 +19,7 @@ export var QUERY_BUILDER_TEST_ID;
19
19
  QUERY_BUILDER_TEST_ID["QUERY_BUILDER"] = "query__builder";
20
20
  QUERY_BUILDER_TEST_ID["QUERY_BUILDER_SETUP"] = "query__builder__setup";
21
21
  QUERY_BUILDER_TEST_ID["QUERY_BUILDER_TDS"] = "query__builder__tds";
22
+ QUERY_BUILDER_TEST_ID["QUERY_BUILDER_TDS_PROJECTION_COLUMN"] = "QUERY_BUILDER_TDS_PROJECTION_COLUMN";
22
23
  QUERY_BUILDER_TEST_ID["QUERY_BUILDER_TDS_RESULT_MODIFIER_PROMPT"] = "query-builder__tds__result-modifier-prompt";
23
24
  QUERY_BUILDER_TEST_ID["QUERY_BUILDER_GRAPH_FETCH"] = "query__builder__graph__fetch";
24
25
  // filter panel
@@ -26,7 +27,9 @@ export var QUERY_BUILDER_TEST_ID;
26
27
  QUERY_BUILDER_TEST_ID["QUERY_BUILDER_FILTER_TREE"] = "query__builder__filter__tree";
27
28
  QUERY_BUILDER_TEST_ID["QUERY_BUILDER_FILTER_TREE_NODE"] = "query__builder__filter__tree__node";
28
29
  QUERY_BUILDER_TEST_ID["QUERY_BUILDER_FILTER_TREE_NODE_CONTENT"] = "query__builder__filter__tree__node-content";
29
- QUERY_BUILDER_TEST_ID["QUERY_BUILDER_POST_FILTER"] = "query__builder__post-filter";
30
+ // post filter
31
+ QUERY_BUILDER_TEST_ID["QUERY_BUILDER_POST_FILTER_PANEL"] = "query__builder__post__filter-panel";
32
+ QUERY_BUILDER_TEST_ID["QUERY_BUILDER_POST_FILTER_TREE_NODE_CONTENT"] = "query__builder__post__filter-tree-node__content";
30
33
  QUERY_BUILDER_TEST_ID["QUERY_BUILDER_WINDOW_GROUPBY"] = "query__builder__window";
31
34
  QUERY_BUILDER_TEST_ID["QUERY_BUILDER_EXPLORER"] = "query__builder__explorer";
32
35
  QUERY_BUILDER_TEST_ID["QUERY_BUILDER_PROPERTY_SEARCH_PANEL"] = "query__builder__property__search__panel";
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderTesting.js","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderTesting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,qBAqBX;AArBD,WAAY,qBAAqB;IAC/B,qFAA4D,CAAA;IAE5D,yDAAgC,CAAA;IAChC,sEAA6C,CAAA;IAC7C,kEAAyC,CAAA;IACzC,gHAAuF,CAAA;IACvF,mFAA0D,CAAA;IAC1D,eAAe;IACf,qFAA4D,CAAA;IAC5D,mFAA0D,CAAA;IAC1D,8FAAqE,CAAA;IACrE,8GAAqF,CAAA;IACrF,kFAAyD,CAAA;IACzD,gFAAuD,CAAA;IACvD,4EAAmD,CAAA;IACnD,wGAA+E,CAAA;IAC/E,qFAA4D,CAAA;IAC5D,6FAAoE,CAAA;IACpE,+EAAsD,CAAA;IACtD,6EAAoD,CAAA;AACtD,CAAC,EArBW,qBAAqB,KAArB,qBAAqB,QAqBhC"}
1
+ {"version":3,"file":"QueryBuilderTesting.js","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderTesting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,qBAwBX;AAxBD,WAAY,qBAAqB;IAC/B,qFAA4D,CAAA;IAE5D,yDAAgC,CAAA;IAChC,sEAA6C,CAAA;IAC7C,kEAAyC,CAAA;IACzC,oGAA2E,CAAA;IAC3E,gHAAuF,CAAA;IACvF,mFAA0D,CAAA;IAC1D,eAAe;IACf,qFAA4D,CAAA;IAC5D,mFAA0D,CAAA;IAC1D,8FAAqE,CAAA;IACrE,8GAAqF,CAAA;IACrF,cAAc;IACd,+FAAsE,CAAA;IACtE,wHAA+F,CAAA;IAC/F,gFAAuD,CAAA;IACvD,4EAAmD,CAAA;IACnD,wGAA+E,CAAA;IAC/E,qFAA4D,CAAA;IAC5D,6FAAoE,CAAA;IACpE,+EAAsD,CAAA;IACtD,6EAAoD,CAAA;AACtD,CAAC,EAxBW,qBAAqB,KAArB,qBAAqB,QAwBhC"}
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderResultPanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderResultPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA6BH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AA8ExE,eAAO,MAAM,cAAc,QAAS,MAAM,KAAG,MAY5C,CAAC;AA4rBF,eAAO,MAAM,uBAAuB,WAC1B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAsZjD,CAAC"}
1
+ {"version":3,"file":"QueryBuilderResultPanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderResultPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA6BH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AA+ExE,eAAO,MAAM,cAAc,QAAS,MAAM,KAAG,MAY5C,CAAC;AAgsBF,eAAO,MAAM,uBAAuB,WAC1B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAsZjD,CAAC"}
@@ -23,7 +23,7 @@ import { ActionAlertActionType, ActionAlertType, DEFAULT_TAB_SIZE, useApplicatio
23
23
  import { assertErrorThrown, guaranteeNonNullable, isBoolean, prettyDuration, filterByType, isValidURL, isString, isNumber, } from '@finos/legend-shared';
24
24
  import { forwardRef, useRef, useState } from 'react';
25
25
  import { QueryBuilderDerivationProjectionColumnState, QueryBuilderProjectionColumnState, } from '../stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js';
26
- import { PostFilterConditionState, QueryBuilderPostFilterTreeConditionNodeData, } from '../stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js';
26
+ import { PostFilterConditionState, QueryBuilderPostFilterTreeConditionNodeData, PostFilterValueSpecConditionValueState, } from '../stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js';
27
27
  import { QueryBuilderPostFilterOperator_Equal, QueryBuilderPostFilterOperator_NotEqual, } from '../stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js';
28
28
  import { QueryBuilderPostFilterOperator_In, QueryBuilderPostFilterOperator_NotIn, } from '../stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.js';
29
29
  import { QueryBuilderTDSState } from '../stores/fetch-structure/tds/QueryBuilderTDSState.js';
@@ -68,10 +68,10 @@ const QueryBuilderGridResultContextMenu = observer(forwardRef(function QueryBuil
68
68
  .map((ag) => ag.projectionColumnState))[0];
69
69
  const getExistingPostFilterNode = (operators, projectionColumnName) => Array.from(postFilterState.nodes.values())
70
70
  .filter((v) => v instanceof QueryBuilderPostFilterTreeConditionNodeData &&
71
- v.condition.columnState instanceof
71
+ v.condition.leftConditionValue instanceof
72
72
  QueryBuilderProjectionColumnState)
73
73
  .filter((n) => n.condition
74
- .columnState.columnName ===
74
+ .leftConditionValue.columnName ===
75
75
  (projectionColumnName ?? projectionColumnState?.columnName) &&
76
76
  operators
77
77
  .map((op) => op.getLabel())
@@ -95,13 +95,13 @@ const QueryBuilderGridResultContextMenu = observer(forwardRef(function QueryBuil
95
95
  .map((ag) => ag.projectionColumnState))[0]
96
96
  : projectionColumnState;
97
97
  if (possibleProjectionColumnState) {
98
- postFilterConditionState = new PostFilterConditionState(postFilterState, possibleProjectionColumnState, undefined, operator);
98
+ postFilterConditionState = new PostFilterConditionState(postFilterState, possibleProjectionColumnState, operator);
99
99
  if (projectionColumnState instanceof
100
100
  QueryBuilderDerivationProjectionColumnState) {
101
101
  await flowResult(projectionColumnState.fetchDerivationLambdaReturnType());
102
102
  }
103
103
  const defaultFilterConditionValue = postFilterConditionState.operator.getDefaultFilterConditionValue(postFilterConditionState);
104
- postFilterConditionState.setValue(defaultFilterConditionValue);
104
+ postFilterConditionState.buildFromValueSpec(defaultFilterConditionValue);
105
105
  updateFilterConditionValue(defaultFilterConditionValue, cellData);
106
106
  postFilterState.addNodeFromNode(new QueryBuilderPostFilterTreeConditionNodeData(undefined, postFilterConditionState), undefined);
107
107
  }
@@ -122,35 +122,38 @@ const QueryBuilderGridResultContextMenu = observer(forwardRef(function QueryBuil
122
122
  return;
123
123
  }
124
124
  const conditionState = existingPostFilterNode.condition;
125
- if (conditionState.operator.getLabel() === operator.getLabel()) {
126
- const doesValueAlreadyExist = conditionState.value instanceof InstanceValue &&
127
- (conditionState.value instanceof EnumValueInstanceValue
128
- ? conditionState.value.values.map((ef) => ef.value.name)
129
- : conditionState.value.values).includes(cellData.value);
130
- if (!doesValueAlreadyExist) {
131
- const currentValueSpecificaton = conditionState.value;
132
- const newValueSpecification = conditionState.operator.getDefaultFilterConditionValue(conditionState);
133
- updateFilterConditionValue(newValueSpecification, cellData);
134
- conditionState.changeOperator(isFilterBy ? postFilterInOperator : postFilterNotInOperator);
135
- instanceValue_setValues(conditionState.value, [currentValueSpecificaton, newValueSpecification], tdsState.queryBuilderState.observerContext);
125
+ const rightSide = conditionState.rightConditionValue;
126
+ if (rightSide instanceof PostFilterValueSpecConditionValueState) {
127
+ if (conditionState.operator.getLabel() === operator.getLabel()) {
128
+ const doesValueAlreadyExist = rightSide.value instanceof InstanceValue &&
129
+ (rightSide.value instanceof EnumValueInstanceValue
130
+ ? rightSide.value.values.map((ef) => ef.value.name)
131
+ : rightSide.value.values).includes(cellData.value);
132
+ if (!doesValueAlreadyExist) {
133
+ const currentValueSpecificaton = rightSide.value;
134
+ const newValueSpecification = conditionState.operator.getDefaultFilterConditionValue(conditionState);
135
+ updateFilterConditionValue(newValueSpecification, cellData);
136
+ conditionState.changeOperator(isFilterBy ? postFilterInOperator : postFilterNotInOperator);
137
+ instanceValue_setValues(rightSide.value, [currentValueSpecificaton, newValueSpecification], tdsState.queryBuilderState.observerContext);
138
+ }
136
139
  }
137
- }
138
- else {
139
- const doesValueAlreadyExist = conditionState.value instanceof InstanceValue &&
140
- conditionState.value.values
141
- .filter((v) => v instanceof InstanceValue)
142
- .map((v) => v instanceof EnumValueInstanceValue
143
- ? v.values.map((ef) => ef.value.name)
144
- : v.values)
145
- .flat()
146
- .includes(cellData.value ?? data?.value);
147
- if (!doesValueAlreadyExist) {
148
- const newValueSpecification = (isFilterBy ? postFilterEqualOperator : postFilterNotEqualOperator).getDefaultFilterConditionValue(conditionState);
149
- updateFilterConditionValue(newValueSpecification, cellData);
150
- instanceValue_setValues(conditionState.value, [
151
- ...conditionState.value.values,
152
- newValueSpecification,
153
- ], tdsState.queryBuilderState.observerContext);
140
+ else {
141
+ const doesValueAlreadyExist = rightSide.value instanceof InstanceValue &&
142
+ rightSide.value.values
143
+ .filter((v) => v instanceof InstanceValue)
144
+ .map((v) => v instanceof EnumValueInstanceValue
145
+ ? v.values.map((ef) => ef.value.name)
146
+ : v.values)
147
+ .flat()
148
+ .includes(cellData.value ?? data?.value);
149
+ if (!doesValueAlreadyExist) {
150
+ const newValueSpecification = (isFilterBy ? postFilterEqualOperator : postFilterNotEqualOperator).getDefaultFilterConditionValue(conditionState);
151
+ updateFilterConditionValue(newValueSpecification, cellData);
152
+ instanceValue_setValues(rightSide.value, [
153
+ ...rightSide.value.values,
154
+ newValueSpecification,
155
+ ], tdsState.queryBuilderState.observerContext);
156
+ }
154
157
  }
155
158
  }
156
159
  };
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderResultPanel.js","sourceRoot":"","sources":["../../src/components/QueryBuilderResultPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,eAAe,EACf,aAAa,EACb,WAAW,EACX,IAAI,EACJ,eAAe,EACf,uBAAuB,EACvB,YAAY,EACZ,kBAAkB,EAClB,MAAM,EACN,OAAO,EACP,MAAM,EACN,KAAK,EACL,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,YAAY,GACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC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,WAAW,CAAC,eAAe,CAAC,YAAY,GAE1C,EACD,CAAC,eAAe,IAAI,CACnB,KAAC,iBAAiB,oDAEE,CACrB,EACA,eAAe,IAAI,CAClB,cAAK,SAAS,EAAC,+BAA+B,YAC5C,KAAC,wBAAwB,IACvB,eAAe,EAAE,eAAe,EAChC,iBAAiB,EAAE,iBAAiB,GACpC,GACE,CACP,IACY,EACf,KAAC,mBAAmB,IAClB,kBAAkB,EAAE,WAAW,CAAC,kBAAkB,GAClD,IACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"QueryBuilderResultPanel.js","sourceRoot":"","sources":["../../src/components/QueryBuilderResultPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,eAAe,EACf,aAAa,EACb,WAAW,EACX,IAAI,EACJ,eAAe,EACf,uBAAuB,EACvB,YAAY,EACZ,kBAAkB,EAClB,MAAM,EACN,OAAO,EACP,MAAM,EACN,KAAK,EACL,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,YAAY,GACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,OAAO,EAGL,aAAa,EACb,4BAA4B,EAC5B,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,0BAA0B,EAC1B,6BAA6B,EAC7B,0BAA0B,GAC3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,SAAS,EAET,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e,EAChC,iBAAiB,EAAE,iBAAiB,GACpC,GACE,CACP,IACY,EACf,KAAC,mBAAmB,IAClB,kBAAkB,EAAE,WAAW,CAAC,kBAAkB,GAClD,IACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -17,6 +17,7 @@ import { type RenderResult } from '@testing-library/react';
17
17
  import { type RawMappingModelCoverageAnalysisResult, type RawLambda } from '@finos/legend-graph';
18
18
  import type { Entity } from '@finos/legend-storage';
19
19
  import { type QueryBuilderState } from '../../stores/QueryBuilderState.js';
20
+ export declare const dragAndDrop: (source: HTMLElement, drop: HTMLElement, panel: HTMLElement, draggingHoverText?: string) => Promise<void>;
20
21
  export declare const TEST__setUpQueryBuilder: (entities: Entity[], lambda: RawLambda, mappingPath: string, runtimePath: string, rawMappingModelCoverageAnalysisResult?: RawMappingModelCoverageAnalysisResult) => Promise<{
21
22
  renderResult: RenderResult;
22
23
  queryBuilderState: QueryBuilderState;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderComponentTestUtils.d.ts","sourceRoot":"","sources":["../../../src/components/__test-utils__/QueryBuilderComponentTestUtils.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,YAAY,EAAmB,MAAM,wBAAwB,CAAC;AAG5E,OAAO,EACL,KAAK,qCAAqC,EAC1C,KAAK,SAAS,EAIf,MAAM,qBAAqB,CAAC;AAO7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAEpD,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,mCAAmC,CAAC;AAQ3C,eAAO,MAAM,uBAAuB,aACxB,MAAM,EAAE,UACV,SAAS,eACJ,MAAM,eACN,MAAM,0CACqB,qCAAqC;kBAE/D,YAAY;uBACP,iBAAiB;EAyErC,CAAC"}
1
+ {"version":3,"file":"QueryBuilderComponentTestUtils.d.ts","sourceRoot":"","sources":["../../../src/components/__test-utils__/QueryBuilderComponentTestUtils.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,YAAY,EAMlB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EACL,KAAK,qCAAqC,EAC1C,KAAK,SAAS,EAIf,MAAM,qBAAqB,CAAC;AAO7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAEpD,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,mCAAmC,CAAC;AAQ3C,eAAO,MAAM,WAAW,WACd,WAAW,QACb,WAAW,SACV,WAAW,sBACE,MAAM,KACzB,QAAQ,IAAI,CAUd,CAAC;AAEF,eAAO,MAAM,uBAAuB,aACxB,MAAM,EAAE,UACV,SAAS,eACJ,MAAM,eACN,MAAM,0CACqB,qCAAqC;kBAE/D,YAAY;uBACP,iBAAiB;EAyErC,CAAC"}
@@ -14,7 +14,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- import { render, waitFor } from '@testing-library/react';
17
+ import { render, waitFor, fireEvent, findByText, getByText, } from '@testing-library/react';
18
18
  import { LogService } from '@finos/legend-shared';
19
19
  import { createSpy } from '@finos/legend-shared/test';
20
20
  import { GraphManagerState, PackageableElementExplicitReference, RuntimePointer, } from '@finos/legend-graph';
@@ -25,6 +25,18 @@ import { INTERNAL__BasicQueryBuilderState, } from '../../stores/QueryBuilderStat
25
25
  import { QueryBuilder_GraphManagerPreset } from '../../graph-manager/QueryBuilder_GraphManagerPreset.js';
26
26
  import { QUERY_BUILDER_TEST_ID } from '../../__lib__/QueryBuilderTesting.js';
27
27
  import { TEST__LegendApplicationPluginManager, TEST__getGenericApplicationConfig, } from '../../stores/__test-utils__/QueryBuilderStateTestUtils.js';
28
+ export const dragAndDrop = async (source, drop, panel, draggingHoverText) => {
29
+ fireEvent.dragStart(source);
30
+ fireEvent.dragEnter(drop);
31
+ fireEvent.dragOver(drop);
32
+ if (draggingHoverText) {
33
+ await findByText(panel, draggingHoverText);
34
+ fireEvent.drop(getByText(panel, draggingHoverText));
35
+ }
36
+ else {
37
+ fireEvent.dragOver(drop);
38
+ }
39
+ };
28
40
  export const TEST__setUpQueryBuilder = async (entities, lambda, mappingPath, runtimePath, rawMappingModelCoverageAnalysisResult) => {
29
41
  const MOCK__pluginManager = TEST__LegendApplicationPluginManager.create();
30
42
  MOCK__pluginManager.usePresets([
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderComponentTestUtils.js","sourceRoot":"","sources":["../../../src/components/__test-utils__/QueryBuilderComponentTestUtils.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAqB,MAAM,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAGL,iBAAiB,EACjB,mCAAmC,EACnC,cAAc,GACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,gBAAgB,GACjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AAElF,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAEL,gCAAgC,GACjC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,+BAA+B,EAAE,MAAM,wDAAwD,CAAC;AACzG,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EACL,oCAAoC,EACpC,iCAAiC,GAClC,MAAM,2DAA2D,CAAC;AAEnE,MAAM,CAAC,MAAM,uBAAuB,GAAG,KAAK,EAC1C,QAAkB,EAClB,MAAiB,EACjB,WAAmB,EACnB,WAAmB,EACnB,qCAA6E,EAI5E,EAAE;IACH,MAAM,mBAAmB,GAAG,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,MAAM,CACzB,KAAC,wBAAwB,IAAC,KAAK,EAAE,sBAAsB,YACrD,KAAC,gCAAgC,cAC/B,KAAC,4BAA4B,cAC3B,KAAC,YAAY,IAAC,iBAAiB,EAAE,iBAAiB,GAAI,GACzB,GACE,GACV,CAC5B,CAAC;IAEF,MAAM,OAAO,CAAC,GAAG,EAAE,CACjB,YAAY,CAAC,WAAW,CAAC,qBAAqB,CAAC,aAAa,CAAC,CAC9D,CAAC;IAEF,OAAO;QACL,YAAY;QACZ,iBAAiB;KAClB,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"QueryBuilderComponentTestUtils.js","sourceRoot":"","sources":["../../../src/components/__test-utils__/QueryBuilderComponentTestUtils.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,MAAM,EACN,OAAO,EACP,SAAS,EACT,UAAU,EACV,SAAS,GACV,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAGL,iBAAiB,EACjB,mCAAmC,EACnC,cAAc,GACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,gBAAgB,GACjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AAElF,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAEL,gCAAgC,GACjC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,+BAA+B,EAAE,MAAM,wDAAwD,CAAC;AACzG,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EACL,oCAAoC,EACpC,iCAAiC,GAClC,MAAM,2DAA2D,CAAC;AAEnE,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,EAC9B,MAA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M,iBAAiB,GAAG,IAAI,gCAAgC,CAC5D,sBAAsB,EACtB,iBAAiB,EACjB,SAAS,CACV,CAAC;IACF,MAAM,OAAO,GAAG,iBAAiB,CAAC,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;IAChE,iBAAiB,CAAC,qBAAqB,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IAC5D,iBAAiB,CAAC,qBAAqB,CAAC,eAAe,CACrD,IAAI,cAAc,CAChB,mCAAmC,CAAC,MAAM,CACxC,iBAAiB,CAAC,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,CAChD,CACF,CACF,CAAC;IAEF,IAAI,qCAAqC,EAAE;QACzC,SAAS,CACP,iBAAiB,CAAC,YAAY,EAC9B,6BAA6B,CAC9B,CAAC,iBAAiB,CACjB,iBAAiB,CAAC,YAAY,CAAC,uCAAuC,CACpE,qCAAqC,EACrC,OAAO,CACR,CACF,CAAC;KACH;IAED,MAAM,YAAY,GAAG,MAAM,CACzB,KAAC,wBAAwB,IAAC,KAAK,EAAE,sBAAsB,YACrD,KAAC,gCAAgC,cAC/B,KAAC,4BAA4B,cAC3B,KAAC,YAAY,IAAC,iBAAiB,EAAE,iBAAiB,GAAI,GACzB,GACE,GACV,CAC5B,CAAC;IAEF,MAAM,OAAO,CAAC,GAAG,EAAE,CACjB,YAAY,CAAC,WAAW,CAAC,qBAAqB,CAAC,aAAa,CAAC,CAC9D,CAAC;IAEF,OAAO;QACL,YAAY;QACZ,iBAAiB;KAClB,CAAC;AACJ,CAAC,CAAC"}
@@ -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 { PostFilterConditionState } from '../../stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js';
17
16
  import { type QueryBuilderProjectionColumnState } from '../../stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js';
18
17
  import type { QueryBuilderState } from '../../stores/QueryBuilderState.js';
18
+ import type { QueryBuilderTDSColumnState } from '../../stores/fetch-structure/tds/QueryBuilderTDSColumnState.js';
19
19
  export declare const QueryBuilderColumnBadge: ((props: {
20
- postFilterConditionState: PostFilterConditionState;
20
+ colState: QueryBuilderTDSColumnState;
21
21
  onColumnChange: (columnState: QueryBuilderProjectionColumnState) => Promise<void>;
22
22
  }) => import("react/jsx-runtime").JSX.Element) & {
23
23
  displayName: string;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderPostFilterPanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAqDH,OAAO,EAGL,wBAAwB,EAMzB,MAAM,6EAA6E,CAAC;AACrF,OAAO,EACL,KAAK,iCAAiC,EAIvC,MAAM,kFAAkF,CAAC;AAC1F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAwH3E,eAAO,MAAM,uBAAuB;8BAEN,wBAAwB;kCAEnC,iCAAiC,KAC3C,QAAQ,IAAI,CAAC;;;CAwErB,CAAC;AAqyBF,eAAO,MAAM,2BAA2B,WAC9B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAgCjD,CAAC"}
1
+ {"version":3,"file":"QueryBuilderPostFilterPanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAuEH,OAAO,EACL,KAAK,iCAAiC,EAIvC,MAAM,kFAAkF,CAAC;AAC1F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAkB3E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gEAAgE,CAAC;AAsGjH,eAAO,MAAM,uBAAuB;cAEtB,0BAA0B;kCAErB,iCAAiC,KAC3C,QAAQ,IAAI,CAAC;;;CAwErB,CAAC;AAk1BF,eAAO,MAAM,2BAA2B,WAC9B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAgCjD,CAAC"}
@@ -20,10 +20,10 @@ import { Class, Enumeration, PrimitiveType, } from '@finos/legend-graph';
20
20
  import { assertErrorThrown, guaranteeNonNullable, debounce, } from '@finos/legend-shared';
21
21
  import { flowResult } from 'mobx';
22
22
  import { observer } from 'mobx-react-lite';
23
- import { forwardRef, useCallback, useMemo, useRef, useState } from 'react';
23
+ import React, { forwardRef, useCallback, useMemo, useRef, useState, } from 'react';
24
24
  import { useDrop, useDrag, useDragLayer } from 'react-dnd';
25
25
  import { QueryBuilderAggregateColumnState } from '../../stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js';
26
- import { PostFilterConditionState, QueryBuilderPostFilterTreeConditionNodeData, QueryBuilderPostFilterTreeGroupNodeData, QueryBuilderPostFilterTreeBlankConditionNodeData, QUERY_BUILDER_POST_FILTER_DND_TYPE, } from '../../stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js';
26
+ import { PostFilterConditionState, QueryBuilderPostFilterTreeConditionNodeData, QueryBuilderPostFilterTreeGroupNodeData, QueryBuilderPostFilterTreeBlankConditionNodeData, QUERY_BUILDER_POST_FILTER_DND_TYPE, PostFilterValueSpecConditionValueState, PostFilterTDSColumnValueConditionValueState, } from '../../stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js';
27
27
  import { QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE, QueryBuilderDerivationProjectionColumnState, } from '../../stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js';
28
28
  import { QUERY_BUILDER_TEST_ID } from '../../__lib__/QueryBuilderTesting.js';
29
29
  import { isTypeCompatibleForAssignment } from '../../stores/QueryBuilderValueSpecificationHelper.js';
@@ -63,9 +63,9 @@ const QueryBuilderPostFilterGroupConditionEditor = observer((props) => {
63
63
  }), title: "Switch Operation", onClick: switchOperation, children: [_jsx("div", { className: "query-builder-post-filter-tree__group-node__label", children: node.groupOperation }), _jsx("button", { className: "query-builder-post-filter-tree__group-node__action", children: _jsx(FilledTriangleIcon, {}) })] }) }) }));
64
64
  });
65
65
  export const QueryBuilderColumnBadge = observer((props) => {
66
- const { postFilterConditionState, onColumnChange } = props;
66
+ const { colState, onColumnChange } = props;
67
67
  const applicationStore = useApplicationStore();
68
- const type = postFilterConditionState.columnState.getColumnType();
68
+ const type = colState.getColumnType();
69
69
  const handleDrop = useCallback((item) => onColumnChange(item.columnState), [onColumnChange]);
70
70
  const [{ isDragOver }, dropConnector] = useDrop(() => ({
71
71
  accept: [
@@ -85,7 +85,7 @@ export const QueryBuilderColumnBadge = observer((props) => {
85
85
  'query-builder-column-badge__type--class': type instanceof Class,
86
86
  'query-builder-column-badge__type--enumeration': type instanceof Enumeration,
87
87
  'query-builder-column-badge__type--primitive': type instanceof PrimitiveType,
88
- }), children: renderPropertyTypeIcon(type) })), _jsx("div", { className: "query-builder-column-badge__property", title: `${postFilterConditionState.columnName}`, children: postFilterConditionState.columnName }), _jsx(QueryBuilderColumnInfoTooltip, { columnState: postFilterConditionState.columnState, placement: "bottom-end", children: _jsx("div", { className: "query-builder-column-badge__property__info", children: _jsx(InfoCircleIcon, {}) }) })] }) }) }));
88
+ }), children: renderPropertyTypeIcon(type) })), _jsx("div", { className: "query-builder-column-badge__property", title: `${colState.columnName}`, children: colState.columnName }), _jsx(QueryBuilderColumnInfoTooltip, { columnState: colState, placement: "bottom-end", children: _jsx("div", { className: "query-builder-column-badge__property__info", children: _jsx(InfoCircleIcon, {}) }) })] }) }) }));
89
89
  });
90
90
  const QueryBuilderPostFilterConditionEditor = observer((props) => {
91
91
  const { node, isDragOver } = props;
@@ -93,10 +93,12 @@ const QueryBuilderPostFilterConditionEditor = observer((props) => {
93
93
  const graph = queryBuilderState.graphManagerState.graph;
94
94
  const applicationStore = useApplicationStore();
95
95
  const changeOperator = (val) => () => node.condition.changeOperator(val);
96
+ const rightConditionValue = node.condition.rightConditionValue;
96
97
  const changeColumn = async (columnState) => {
97
- const currentColState = node.condition.columnState instanceof QueryBuilderAggregateColumnState
98
- ? node.condition.columnState.projectionColumnState
99
- : node.condition.columnState;
98
+ const currentColState = node.condition.leftConditionValue instanceof
99
+ QueryBuilderAggregateColumnState
100
+ ? node.condition.leftConditionValue.projectionColumnState
101
+ : node.condition.leftConditionValue;
100
102
  if (currentColState !== columnState) {
101
103
  await flowResult(node.condition.changeColumn(columnState));
102
104
  }
@@ -104,10 +106,10 @@ const QueryBuilderPostFilterConditionEditor = observer((props) => {
104
106
  // Drag and Drop on filter condition value
105
107
  const handleDrop = useCallback((item) => {
106
108
  const parameterType = item.variable.genericType?.value.rawType;
107
- const conditionValueType = node.condition.columnState.getColumnType();
109
+ const conditionValueType = node.condition.leftConditionValue.getColumnType();
108
110
  if (conditionValueType &&
109
111
  isTypeCompatibleForAssignment(parameterType, conditionValueType)) {
110
- node.condition.setValue(item.variable);
112
+ node.condition.buildFromValueSpec(item.variable);
111
113
  }
112
114
  else {
113
115
  applicationStore.notificationService.notifyWarning(`Incompatible parameter type ${parameterType?.name}. ${parameterType?.name} is not compatible with type ${conditionValueType?.name}.`);
@@ -125,14 +127,14 @@ const QueryBuilderPostFilterConditionEditor = observer((props) => {
125
127
  }),
126
128
  }), [handleDrop]);
127
129
  const resetNode = () => {
128
- node.condition.setValue(node.condition.operator.getDefaultFilterConditionValue(node.condition));
130
+ node.condition.buildFromValueSpec(node.condition.operator.getDefaultFilterConditionValue(node.condition));
129
131
  };
130
132
  const debouncedTypeaheadSearch = useMemo(() => debounce((inputVal) => node.condition.handleTypeaheadSearch(), 1000), [node]);
131
133
  const cleanUpReloadValues = () => {
132
134
  node.condition.typeaheadSearchState.complete();
133
135
  };
134
136
  const changeValueSpecification = (val) => {
135
- node.condition.setValue(val);
137
+ node.condition.buildFromValueSpec(val);
136
138
  };
137
139
  const selectorConfig = {
138
140
  values: node.condition.typeaheadSearchResults,
@@ -145,13 +147,27 @@ const QueryBuilderPostFilterConditionEditor = observer((props) => {
145
147
  (monitor.getItemType() === QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE ||
146
148
  monitor.getItemType() === QUERY_BUILDER_WINDOW_COLUMN_DND_TYPE),
147
149
  }));
148
- return (_jsx("div", { className: "query-builder-post-filter-tree__node__label__content dnd__entry__container", children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: isDragOver, isDroppable: isDroppable, label: "Add New Logical Group", children: _jsxs("div", { className: "query-builder-post-filter-tree__condition-node", children: [_jsx("div", { className: "query-builder-post-filter-tree__condition-node__property", children: _jsx(QueryBuilderColumnBadge, { postFilterConditionState: node.condition, onColumnChange: changeColumn }) }), _jsxs(DropdownMenu, { className: "query-builder-post-filter-tree__condition-node__operator", title: "Choose Operator...", content: _jsx(MenuContent, { children: node.condition.operators.map((op) => (_jsx(MenuContentItem, { className: "query-builder-post-filter-tree__condition-node__operator__dropdown__option", onClick: changeOperator(op), children: op.getLabel() }, op.uuid))) }), menuProps: {
150
+ const renderRightVal = () => {
151
+ if (rightConditionValue instanceof PostFilterValueSpecConditionValueState &&
152
+ rightConditionValue.value) {
153
+ return (_jsx("div", { ref: dropConnector, className: "query-builder-post-filter-tree__condition-node__value", children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: isFilterValueDragOver, label: "Change Filter Value", children: _jsx(BasicValueSpecificationEditor, { valueSpecification: rightConditionValue.value, setValueSpecification: changeValueSpecification, graph: graph, obseverContext: queryBuilderState.observerContext, typeCheckOption: {
154
+ expectedType: guaranteeNonNullable(node.condition.leftConditionValue.getColumnType()),
155
+ }, resetValue: resetNode, selectorConfig: selectorConfig, isConstant: queryBuilderState.constantState.isValueSpecConstant(rightConditionValue.value) }) }) }));
156
+ }
157
+ else if (rightConditionValue instanceof
158
+ PostFilterTDSColumnValueConditionValueState) {
159
+ const changeRightCol = async (columnState) => {
160
+ rightConditionValue.changeCol(columnState);
161
+ };
162
+ return (_jsx("div", { ref: dropConnector, className: "query-builder-post-filter-tree__condition-node__value", children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: isFilterValueDragOver, label: "Change Filter Value", children: _jsx("div", { className: "query-builder-post-filter-tree__condition-node__property", children: _jsx(QueryBuilderColumnBadge, { colState: rightConditionValue.tdsColumn, onColumnChange: changeRightCol }) }) }) }));
163
+ }
164
+ return null;
165
+ };
166
+ return (_jsx("div", { className: "query-builder-post-filter-tree__node__label__content dnd__entry__container", children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: isDragOver, isDroppable: isDroppable, label: "Add New Logical Group", children: _jsxs("div", { className: "query-builder-post-filter-tree__condition-node", children: [_jsx("div", { className: "query-builder-post-filter-tree__condition-node__property", children: _jsx(QueryBuilderColumnBadge, { colState: node.condition.leftConditionValue, onColumnChange: changeColumn }) }), _jsxs(DropdownMenu, { className: "query-builder-post-filter-tree__condition-node__operator", title: "Choose Operator...", content: _jsx(MenuContent, { children: node.condition.operators.map((op) => (_jsx(MenuContentItem, { className: "query-builder-post-filter-tree__condition-node__operator__dropdown__option", onClick: changeOperator(op), children: op.getLabel() }, op.uuid))) }), menuProps: {
149
167
  anchorOrigin: { vertical: 'bottom', horizontal: 'left' },
150
168
  transformOrigin: { vertical: 'top', horizontal: 'left' },
151
169
  elevation: 7,
152
- }, children: [_jsx("div", { className: "query-builder-post-filter-tree__condition-node__operator__label", children: node.condition.operator.getLabel() }), _jsx("div", { className: "query-builder-post-filter-tree__condition-node__operator__dropdown__trigger", children: _jsx(CaretDownIcon, {}) })] }), node.condition.value && (_jsx("div", { ref: dropConnector, className: "query-builder-post-filter-tree__condition-node__value", children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: isFilterValueDragOver, label: "Change Filter Value", children: _jsx(BasicValueSpecificationEditor, { valueSpecification: node.condition.value, setValueSpecification: changeValueSpecification, graph: graph, obseverContext: queryBuilderState.observerContext, typeCheckOption: {
153
- expectedType: guaranteeNonNullable(node.condition.columnState.getColumnType()),
154
- }, resetValue: resetNode, selectorConfig: selectorConfig, isConstant: queryBuilderState.constantState.isValueSpecConstant(node.condition.value) }) }) }))] }) }) }));
170
+ }, children: [_jsx("div", { className: "query-builder-post-filter-tree__condition-node__operator__label", children: node.condition.operator.getLabel() }), _jsx("div", { className: "query-builder-post-filter-tree__condition-node__operator__dropdown__trigger", children: _jsx(CaretDownIcon, {}) })] }), renderRightVal()] }) }) }));
155
171
  });
156
172
  const QueryBuilderPostFilterBlankConditionEditor = observer((props) => {
157
173
  const { isDragOver, isDroppable } = props;
@@ -190,8 +206,8 @@ const QueryBuilderPostFilterTreeNodeContainer = observer((props) => {
190
206
  const columnState = item.columnState;
191
207
  let conditionState;
192
208
  try {
193
- conditionState = new PostFilterConditionState(postFilterState, columnState, undefined, undefined);
194
- conditionState.setValue(conditionState.operator.getDefaultFilterConditionValue(conditionState));
209
+ conditionState = new PostFilterConditionState(postFilterState, columnState, undefined);
210
+ conditionState.buildFromValueSpec(conditionState.operator.getDefaultFilterConditionValue(conditionState));
195
211
  }
196
212
  catch (error) {
197
213
  assertErrorThrown(error);
@@ -243,14 +259,16 @@ const QueryBuilderPostFilterTreeNodeContainer = observer((props) => {
243
259
  (monitor.getItemType() === QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE ||
244
260
  monitor.getItemType() === QUERY_BUILDER_WINDOW_COLUMN_DND_TYPE),
245
261
  }));
246
- return (_jsx(ContextMenu, { content: _jsx(QueryBuilderPostFilterConditionContextMenu, { tdsState: tdsState, node: node }), menuProps: { elevation: 7 }, onOpen: onContextMenuOpen, onClose: onContextMenuClose, children: _jsxs("div", { ref: ref, className: clsx('tree-view__node__container query-builder-post-filter-tree__node__container', {
262
+ return (_jsx(ContextMenu, { content: _jsx(QueryBuilderPostFilterConditionContextMenu, { tdsState: tdsState, node: node }), menuProps: { elevation: 7 }, onOpen: onContextMenuOpen, onClose: onContextMenuClose, children: _jsxs("div", { ref: ref, "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_POST_FILTER_TREE_NODE_CONTENT, className: clsx('tree-view__node__container query-builder-post-filter-tree__node__container', {
247
263
  'query-builder-post-filter-tree__node__container--no-hover': postFilterState.isRearrangingConditions,
248
264
  'query-builder-post-filter-tree__node__container--selected': node === postFilterState.selectedNode,
249
265
  'query-builder-post-filter-tree__node__container--selected-from-context-menu': isSelectedFromContextMenu,
250
266
  }), children: [_jsxs("div", { className: "query-builder-post-filter-tree__node__content", style: {
251
267
  paddingLeft: `${(level - 1) * (stepPaddingInRem ?? 2) + 1.5}rem`,
252
268
  display: 'flex',
253
- }, onClick: selectNode, children: [isExpandable && (_jsx("div", { className: "query-builder-post-filter-tree__expand-icon", onClick: toggleExpandNode, children: node.isOpen ? _jsx(ChevronDownIcon, {}) : _jsx(ChevronRightIcon, {}) })), _jsxs("div", { className: clsx('tree-view__node__label query-builder-post-filter-tree__node__label'), children: [node instanceof QueryBuilderPostFilterTreeGroupNodeData && (_jsx(QueryBuilderPostFilterGroupConditionEditor, { node: node, isDroppable: isDroppable, isDragOver: isDragOver })), node instanceof QueryBuilderPostFilterTreeConditionNodeData && (_jsx(QueryBuilderPostFilterConditionEditor, { node: node, isDragOver: isDragOver })), node instanceof
269
+ }, onClick: selectNode, children: [isExpandable && (_jsx("div", { className: "query-builder-post-filter-tree__expand-icon", onClick: toggleExpandNode, children: node.isOpen ? _jsx(ChevronDownIcon, {}) : _jsx(ChevronRightIcon, {}) })), _jsxs("div", { className: clsx('tree-view__node__label query-builder-post-filter-tree__node__label', {
270
+ 'query-builder-post-filter-tree__node__label--expandable': isExpandable,
271
+ }), children: [node instanceof QueryBuilderPostFilterTreeGroupNodeData && (_jsx(QueryBuilderPostFilterGroupConditionEditor, { node: node, isDroppable: isDroppable, isDragOver: isDragOver })), node instanceof QueryBuilderPostFilterTreeConditionNodeData && (_jsx(QueryBuilderPostFilterConditionEditor, { node: node, isDragOver: isDragOver })), node instanceof
254
272
  QueryBuilderPostFilterTreeBlankConditionNodeData && (_jsx(QueryBuilderPostFilterBlankConditionEditor, { node: node, isDragOver: isDragOver, isDroppable: isDroppable }))] })] }), _jsx("div", { className: "query-builder-post-filter-tree__node__actions", children: _jsx("button", { className: "query-builder-post-filter-tree__node__action", tabIndex: -1, title: "Remove", onClick: removeNode, children: _jsx(TimesIcon, {}) }) })] }) }));
255
273
  });
256
274
  const QueryBuilderPostFilterTreeNodeView = observer((props) => {
@@ -328,8 +346,8 @@ const QueryBuilderPostFilterPanelContent = observer((props) => {
328
346
  isBeingDropped: true,
329
347
  }));
330
348
  }
331
- postFilterConditionState = new PostFilterConditionState(postFilterState, aggregateColumnState ?? columnState, undefined, undefined);
332
- postFilterConditionState.setValue(postFilterConditionState.operator.getDefaultFilterConditionValue(postFilterConditionState));
349
+ postFilterConditionState = new PostFilterConditionState(postFilterState, aggregateColumnState ?? columnState, undefined);
350
+ postFilterConditionState.buildFromValueSpec(postFilterConditionState.operator.getDefaultFilterConditionValue(postFilterConditionState));
333
351
  }
334
352
  catch (error) {
335
353
  assertErrorThrown(error);
@@ -361,7 +379,7 @@ const QueryBuilderPostFilterPanelContent = observer((props) => {
361
379
  (monitor.getItemType() === QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE ||
362
380
  monitor.getItemType() === QUERY_BUILDER_WINDOW_COLUMN_DND_TYPE),
363
381
  }));
364
- return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "panel__header", children: [_jsx("div", { className: "panel__header__title", children: _jsx("div", { className: "panel__header__title__label", children: "post-filter" }) }), _jsx("div", { className: "panel__header__actions", children: _jsx(DropdownMenu, { className: "panel__header__action", title: "Show Filter Options Menu...", content: _jsxs(MenuContent, { children: [_jsxs(MenuContentItem, { onClick: createCondition, children: [_jsx(MenuContentItemIcon, { children: _jsx(PlusIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Create Condition" })] }), _jsxs(MenuContentItem, { disabled: !(postFilterState.selectedNode instanceof
382
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "panel__header", children: [_jsx("div", { className: "panel__header__title", children: _jsx("div", { className: "panel__header__title__label", children: "post-filter" }) }), _jsx("div", { className: "panel__header__actions", children: _jsx(DropdownMenu, { className: "panel__header__action", title: "Show Post-Filter Options Menu...", content: _jsxs(MenuContent, { children: [_jsxs(MenuContentItem, { onClick: createCondition, children: [_jsx(MenuContentItemIcon, { children: _jsx(PlusIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Create Condition" })] }), _jsxs(MenuContentItem, { disabled: !(postFilterState.selectedNode instanceof
365
383
  QueryBuilderPostFilterTreeConditionNodeData), onClick: newGroupWithCondition, children: [_jsx(MenuContentItemIcon, { children: _jsx(PlusCircleIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Create Group From Condition" })] }), _jsxs(MenuContentItem, { disabled: !allowGroupCreation, title: !allowGroupCreation
366
384
  ? 'Please select a filter node first to create logical group'
367
385
  : '', onClick: createGroupCondition, children: [_jsx(MenuContentItemIcon, { children: _jsx(NewFolderIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Create Logical Group" })] }), _jsxs(MenuContentItem, { onClick: pruneTree, children: [_jsx(MenuContentItemIcon, { children: _jsx(TrashIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Cleanup Tree" })] }), _jsxs(MenuContentItem, { onClick: simplifyTree, children: [_jsx(MenuContentItemIcon, { children: _jsx(CircleIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Simplify Tree" })] }), _jsxs(MenuContentItem, { onClick: collapseTree, children: [_jsx(MenuContentItemIcon, { children: _jsx(CompressIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Collapse Tree" })] }), _jsxs(MenuContentItem, { onClick: expandTree, children: [_jsx(MenuContentItemIcon, { children: _jsx(ExpandIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Expand Tree" })] })] }), children: _jsx(MoreVerticalIcon, { className: "query-builder__icon__more-options" }) }) })] }), _jsx(PanelContent, { children: _jsxs(PanelDropZone, { isDragOver: isDragOver && postFilterState.isEmpty, isDroppable: isDroppable && postFilterState.isEmpty, dropTargetConnector: dropTargetConnector, children: [_jsx(PanelLoadingIndicator, { isLoading: Boolean(postFilterState.derivedColumnBeingDropped) }), postFilterState.isEmpty && (_jsx(BlankPanelPlaceholder, { text: "Add a post-filter condition", tooltipText: "Drag and drop properties here" })), !postFilterState.isEmpty && (_jsxs(_Fragment, { children: [_jsx(DragPreviewLayer, { labelGetter: (item) => item.node.dragPreviewLabel, types: Object.values(QUERY_BUILDER_POST_FILTER_DND_TYPE) }), _jsx(QueryBuilderPostFilterTree, { tdsState: tdsState })] })), isDroppable && !postFilterState.isEmpty && (_jsx("div", { ref: addPostFilterRef, className: "query-builder-post-filter-tree__free-drop-zone__container", children: _jsxs(PanelEntryDropZonePlaceholder, { isDragOver: isDragOver, isDroppable: isDroppable, className: "query-builder-post-filter-tree__free-drop-zone", label: "Add post-filter to main group", children: [_jsx(_Fragment, {}), ' '] }) }))] }) })] }));
@@ -369,6 +387,6 @@ const QueryBuilderPostFilterPanelContent = observer((props) => {
369
387
  export const QueryBuilderPostFilterPanel = observer((props) => {
370
388
  const { queryBuilderState } = props;
371
389
  const fetchStructureImplementation = queryBuilderState.fetchStructureState.implementation;
372
- return (_jsxs("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_POST_FILTER, className: "panel", children: [fetchStructureImplementation instanceof QueryBuilderTDSState && (_jsx(QueryBuilderPostFilterPanelContent, { tdsState: fetchStructureImplementation })), !(fetchStructureImplementation instanceof QueryBuilderTDSState) && (_jsxs(_Fragment, { children: [_jsx("div", { className: "panel__header", children: _jsx("div", { className: "panel__header__title", children: _jsx("div", { className: "panel__header__title__label", children: "post-filter" }) }) }), _jsx(PanelContent, { children: _jsx(BlankPanelContent, { children: "Post-filter is not supported for the current fetch-structure" }) })] }))] }));
390
+ return (_jsxs("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_POST_FILTER_PANEL, className: "panel", children: [fetchStructureImplementation instanceof QueryBuilderTDSState && (_jsx(QueryBuilderPostFilterPanelContent, { tdsState: fetchStructureImplementation })), !(fetchStructureImplementation instanceof QueryBuilderTDSState) && (_jsxs(_Fragment, { children: [_jsx("div", { className: "panel__header", children: _jsx("div", { className: "panel__header__title", children: _jsx("div", { className: "panel__header__title__label", children: "post-filter" }) }) }), _jsx(PanelContent, { children: _jsx(BlankPanelContent, { children: "Post-filter is not supported for the current fetch-structure" }) })] }))] }));
373
391
  });
374
392
  //# sourceMappingURL=QueryBuilderPostFilterPanel.js.map