@finos/legend-query-builder 4.14.51 → 4.14.53

Sign up to get free protection for your applications and to get access to all the features.
Files changed (219) hide show
  1. package/lib/components/QueryBuilder.d.ts.map +1 -1
  2. package/lib/components/QueryBuilder.js +1 -0
  3. package/lib/components/QueryBuilder.js.map +1 -1
  4. package/lib/components/QueryBuilderConstantExpressionPanel.js +1 -1
  5. package/lib/components/QueryBuilderConstantExpressionPanel.js.map +1 -1
  6. package/lib/components/QueryBuilderParametersPanel.js +1 -1
  7. package/lib/components/QueryBuilderParametersPanel.js.map +1 -1
  8. package/lib/components/QueryBuilderPropertyExpressionEditor.js +1 -1
  9. package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -1
  10. package/lib/components/QueryBuilderSideBar.d.ts.map +1 -1
  11. package/lib/components/QueryBuilderSideBar.js +1 -1
  12. package/lib/components/QueryBuilderSideBar.js.map +1 -1
  13. package/lib/components/QueryBuilder_LegendApplicationPlugin.d.ts +0 -1
  14. package/lib/components/QueryBuilder_LegendApplicationPlugin.d.ts.map +1 -1
  15. package/lib/components/ServiceQuerySetupUtils.d.ts.map +1 -1
  16. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.d.ts +1 -1
  17. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.d.ts.map +1 -1
  18. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js +4 -2
  19. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js.map +1 -1
  20. package/lib/components/execution-plan/AllocationExecutionNodeViewer.d.ts +0 -1
  21. package/lib/components/execution-plan/AllocationExecutionNodeViewer.d.ts.map +1 -1
  22. package/lib/components/execution-plan/ConstantExecutionNodeViewer.d.ts +0 -1
  23. package/lib/components/execution-plan/ConstantExecutionNodeViewer.d.ts.map +1 -1
  24. package/lib/components/execution-plan/DataTypeResultTypeViewer.d.ts +0 -1
  25. package/lib/components/execution-plan/DataTypeResultTypeViewer.d.ts.map +1 -1
  26. package/lib/components/execution-plan/ExecutionPlanViewer.d.ts +0 -1
  27. package/lib/components/execution-plan/ExecutionPlanViewer.d.ts.map +1 -1
  28. package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.js +1 -1
  29. package/lib/components/execution-plan/ImplementationViewer.d.ts +0 -1
  30. package/lib/components/execution-plan/ImplementationViewer.d.ts.map +1 -1
  31. package/lib/components/execution-plan/PartialClassResultViewer.d.ts +0 -1
  32. package/lib/components/execution-plan/PartialClassResultViewer.d.ts.map +1 -1
  33. package/lib/components/execution-plan/PartialClassResultViewer.js +1 -1
  34. package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.d.ts +0 -1
  35. package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.d.ts.map +1 -1
  36. package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.js +1 -1
  37. package/lib/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts +0 -1
  38. package/lib/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts.map +1 -1
  39. package/lib/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.js +1 -1
  40. package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts +0 -1
  41. package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts.map +1 -1
  42. package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.js +1 -1
  43. package/lib/components/execution-plan/RelationalTDSInstantiationExecutionNodeViewer.d.ts +0 -1
  44. package/lib/components/execution-plan/RelationalTDSInstantiationExecutionNodeViewer.d.ts.map +1 -1
  45. package/lib/components/execution-plan/ResultTypeViewer.d.ts +0 -1
  46. package/lib/components/execution-plan/ResultTypeViewer.d.ts.map +1 -1
  47. package/lib/components/execution-plan/SQLExecutionNodeViewer.d.ts +0 -1
  48. package/lib/components/execution-plan/SQLExecutionNodeViewer.d.ts.map +1 -1
  49. package/lib/components/execution-plan/SQLExecutionNodeViewer.js +1 -1
  50. package/lib/components/execution-plan/SequenceExecutionNodeViewer.d.ts +0 -1
  51. package/lib/components/execution-plan/SequenceExecutionNodeViewer.d.ts.map +1 -1
  52. package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.d.ts +0 -1
  53. package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.d.ts.map +1 -1
  54. package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.js +2 -2
  55. package/lib/components/execution-plan/TDSResultTypeViewer.d.ts +0 -1
  56. package/lib/components/execution-plan/TDSResultTypeViewer.d.ts.map +1 -1
  57. package/lib/components/execution-plan/TDSResultTypeViewer.js +1 -1
  58. package/lib/components/execution-plan/TempTableStrategyViewer.d.ts +0 -1
  59. package/lib/components/execution-plan/TempTableStrategyViewer.d.ts.map +1 -1
  60. package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts +0 -1
  61. package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts.map +1 -1
  62. package/lib/components/explorer/QueryBuilderMilestoningParameterEditor.d.ts +2 -0
  63. package/lib/components/explorer/QueryBuilderMilestoningParameterEditor.d.ts.map +1 -1
  64. package/lib/components/explorer/QueryBuilderMilestoningParameterEditor.js +14 -7
  65. package/lib/components/explorer/QueryBuilderMilestoningParameterEditor.js.map +1 -1
  66. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts +0 -1
  67. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts.map +1 -1
  68. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +1 -1
  69. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +1 -1
  70. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
  71. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +1 -1
  72. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +36 -11
  73. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -1
  74. package/lib/components/fetch-structure/QueryBuilderTDSComponentHelper.d.ts +0 -1
  75. package/lib/components/fetch-structure/QueryBuilderTDSComponentHelper.d.ts.map +1 -1
  76. package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
  77. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +5 -2
  78. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
  79. package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +1 -1
  80. package/lib/components/filter/QueryBuilderFilterPanel.js +9 -4
  81. package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
  82. package/lib/components/result/QueryBuilderResultPanel.d.ts.map +1 -1
  83. package/lib/components/result/QueryBuilderResultPanel.js +1 -1
  84. package/lib/components/result/QueryBuilderResultPanel.js.map +1 -1
  85. package/lib/components/result/tds/QueryBuilderTDSGridResult.d.ts.map +1 -1
  86. package/lib/components/result/tds/QueryBuilderTDSGridResult.js +10 -8
  87. package/lib/components/result/tds/QueryBuilderTDSGridResult.js.map +1 -1
  88. package/lib/components/result/tds/QueryBuilderTDSResultShared.d.ts +0 -1
  89. package/lib/components/result/tds/QueryBuilderTDSResultShared.d.ts.map +1 -1
  90. package/lib/components/result/tds/QueryBuilderTDSResultShared.js.map +1 -1
  91. package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.js +2 -2
  92. package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.js.map +1 -1
  93. package/lib/components/shared/BasicValueSpecificationEditor.d.ts +19 -4
  94. package/lib/components/shared/BasicValueSpecificationEditor.d.ts.map +1 -1
  95. package/lib/components/shared/BasicValueSpecificationEditor.js +97 -36
  96. package/lib/components/shared/BasicValueSpecificationEditor.js.map +1 -1
  97. package/lib/components/shared/CustomDatePicker.d.ts +2 -1
  98. package/lib/components/shared/CustomDatePicker.d.ts.map +1 -1
  99. package/lib/components/shared/CustomDatePicker.js +8 -5
  100. package/lib/components/shared/CustomDatePicker.js.map +1 -1
  101. package/lib/components/shared/LambdaParameterValuesEditor.js +1 -1
  102. package/lib/components/shared/LambdaParameterValuesEditor.js.map +1 -1
  103. package/lib/components/shared/QueryBuilderPanelIssueCountBadge.d.ts +0 -1
  104. package/lib/components/shared/QueryBuilderPanelIssueCountBadge.d.ts.map +1 -1
  105. package/lib/components/shared/QueryBuilderPropertyInfoTooltip.d.ts +0 -1
  106. package/lib/components/shared/QueryBuilderPropertyInfoTooltip.d.ts.map +1 -1
  107. package/lib/components/shared/QueryBuilderRootClassInfoTooltip.d.ts +0 -1
  108. package/lib/components/shared/QueryBuilderRootClassInfoTooltip.d.ts.map +1 -1
  109. package/lib/components/shared/QueryBuilderVariableSelector.d.ts +3 -0
  110. package/lib/components/shared/QueryBuilderVariableSelector.d.ts.map +1 -1
  111. package/lib/components/shared/QueryBuilderVariableSelector.js +3 -3
  112. package/lib/components/shared/QueryBuilderVariableSelector.js.map +1 -1
  113. package/lib/components/workflows/ClassQueryBuilder.d.ts.map +1 -1
  114. package/lib/components/workflows/MappingQueryBuilder.d.ts.map +1 -1
  115. package/lib/components/workflows/ServiceQueryBuilder.d.ts.map +1 -1
  116. package/lib/graph/QueryBuilderMetaModelConst.d.ts +1 -0
  117. package/lib/graph/QueryBuilderMetaModelConst.d.ts.map +1 -1
  118. package/lib/graph/QueryBuilderMetaModelConst.js +1 -0
  119. package/lib/graph/QueryBuilderMetaModelConst.js.map +1 -1
  120. package/lib/graph-manager/protocol/pure/QueryBuilder_PureGraphManagerExtension.d.ts.map +1 -1
  121. package/lib/graph-manager/protocol/pure/QueryBuilder_PureGraphManagerExtension.js.map +1 -1
  122. package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts +1 -2
  123. package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts.map +1 -1
  124. package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js +68 -8
  125. package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js.map +1 -1
  126. package/lib/index.css +2 -2
  127. package/lib/index.css.map +1 -1
  128. package/lib/index.d.ts +1 -1
  129. package/lib/index.d.ts.map +1 -1
  130. package/lib/index.js +1 -1
  131. package/lib/index.js.map +1 -1
  132. package/lib/package.json +7 -7
  133. package/lib/stores/QueryBuilderState.d.ts +0 -1
  134. package/lib/stores/QueryBuilderState.d.ts.map +1 -1
  135. package/lib/stores/QueryBuilderState.js +1 -0
  136. package/lib/stores/QueryBuilderState.js.map +1 -1
  137. package/lib/stores/QueryBuilderStateBuilder.d.ts.map +1 -1
  138. package/lib/stores/QueryBuilderStateBuilder.js +5 -1
  139. package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
  140. package/lib/stores/QueryBuilderValueSpecificationHelper.js.map +1 -1
  141. package/lib/stores/QueryBuilder_LegendApplicationPlugin_Extension.d.ts +1 -2
  142. package/lib/stores/QueryBuilder_LegendApplicationPlugin_Extension.d.ts.map +1 -1
  143. package/lib/stores/__test-utils__/QueryBuilderStateTestUtils.d.ts.map +1 -1
  144. package/lib/stores/execution-plan/ExecutionPlanState.d.ts.map +1 -1
  145. package/lib/stores/explorer/QueryBuilderExplorerState.d.ts +0 -1
  146. package/lib/stores/explorer/QueryBuilderExplorerState.d.ts.map +1 -1
  147. package/lib/stores/explorer/QueryFunctionsExplorerState.d.ts.map +1 -1
  148. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.d.ts.map +1 -1
  149. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.d.ts.map +1 -1
  150. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts +2 -0
  151. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
  152. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +6 -0
  153. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
  154. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts +11 -0
  155. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts.map +1 -1
  156. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js +76 -20
  157. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js.map +1 -1
  158. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +1 -1
  159. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js +70 -34
  160. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -1
  161. package/lib/stores/filter/QueryBuilderFilterState.d.ts +2 -0
  162. package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +1 -1
  163. package/lib/stores/filter/QueryBuilderFilterState.js +7 -0
  164. package/lib/stores/filter/QueryBuilderFilterState.js.map +1 -1
  165. package/lib/stores/milestoning/QueryBuilderMilestoningState.d.ts +2 -2
  166. package/lib/stores/milestoning/QueryBuilderMilestoningState.d.ts.map +1 -1
  167. package/lib/stores/milestoning/QueryBuilderMilestoningState.js +15 -4
  168. package/lib/stores/milestoning/QueryBuilderMilestoningState.js.map +1 -1
  169. package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts +5 -2
  170. package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts.map +1 -1
  171. package/lib/stores/shared/ValueSpecificationEditorHelper.js +20 -9
  172. package/lib/stores/shared/ValueSpecificationEditorHelper.js.map +1 -1
  173. package/lib/stores/shared/ValueSpecificationModifierHelper.d.ts.map +1 -1
  174. package/lib/stores/workflows/ClassQueryBuilderState.d.ts.map +1 -1
  175. package/lib/stores/workflows/MappingQueryBuilderState.d.ts.map +1 -1
  176. package/lib/stores/workflows/ServiceQueryBuilderState.d.ts.map +1 -1
  177. package/package.json +15 -15
  178. package/src/components/QueryBuilder.tsx +1 -0
  179. package/src/components/QueryBuilderConstantExpressionPanel.tsx +1 -1
  180. package/src/components/QueryBuilderParametersPanel.tsx +1 -1
  181. package/src/components/QueryBuilderPropertyExpressionEditor.tsx +1 -1
  182. package/src/components/QueryBuilderSideBar.tsx +1 -1
  183. package/src/components/__test-utils__/QueryBuilderComponentTestUtils.tsx +4 -1
  184. package/src/components/execution-plan/FunctionParametersValidationNodeViewer.tsx +1 -1
  185. package/src/components/execution-plan/PartialClassResultViewer.tsx +1 -1
  186. package/src/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.tsx +1 -1
  187. package/src/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.tsx +1 -1
  188. package/src/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.tsx +1 -1
  189. package/src/components/execution-plan/SQLExecutionNodeViewer.tsx +1 -1
  190. package/src/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.tsx +2 -2
  191. package/src/components/execution-plan/TDSResultTypeViewer.tsx +1 -1
  192. package/src/components/explorer/QueryBuilderMilestoningParameterEditor.tsx +60 -22
  193. package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +1 -1
  194. package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +156 -60
  195. package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +12 -2
  196. package/src/components/filter/QueryBuilderFilterPanel.tsx +18 -4
  197. package/src/components/result/QueryBuilderResultPanel.tsx +1 -0
  198. package/src/components/result/tds/QueryBuilderTDSGridResult.tsx +12 -13
  199. package/src/components/result/tds/QueryBuilderTDSResultShared.tsx +1 -1
  200. package/src/components/result/tds/QueryBuilderTDSSimpleGridResult.tsx +2 -2
  201. package/src/components/shared/BasicValueSpecificationEditor.tsx +257 -55
  202. package/src/components/shared/CustomDatePicker.tsx +36 -11
  203. package/src/components/shared/LambdaParameterValuesEditor.tsx +1 -1
  204. package/src/components/shared/QueryBuilderVariableSelector.tsx +13 -4
  205. package/src/graph/QueryBuilderMetaModelConst.ts +1 -0
  206. package/src/graph-manager/protocol/pure/QueryBuilder_PureGraphManagerExtension.ts +1 -1
  207. package/src/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.ts +189 -18
  208. package/src/index.ts +1 -0
  209. package/src/stores/QueryBuilderState.ts +1 -0
  210. package/src/stores/QueryBuilderStateBuilder.ts +6 -1
  211. package/src/stores/QueryBuilderValueSpecificationHelper.ts +2 -2
  212. package/src/stores/QueryBuilder_LegendApplicationPlugin_Extension.ts +1 -1
  213. package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +7 -0
  214. package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts +167 -43
  215. package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +145 -69
  216. package/src/stores/filter/QueryBuilderFilterState.ts +8 -0
  217. package/src/stores/milestoning/QueryBuilderMilestoningState.ts +22 -9
  218. package/src/stores/shared/ValueSpecificationEditorHelper.ts +47 -7
  219. package/tsconfig.package.json +1 -1
@@ -419,6 +419,22 @@ export const QueryResultModifierModal = observer(
419
419
  );
420
420
  const [startDate, setStartDate] = useState(milestoningState.startDate);
421
421
  const [endDate, setEndDate] = useState(milestoningState.endDate);
422
+ const [businessDateValue, setBusinessDateValue] = useState(
423
+ milestoningState.getMilestoningParameterValue(
424
+ milestoningState.businessDate,
425
+ ),
426
+ );
427
+ const [processingDateValue, setProcessingDateValue] = useState(
428
+ milestoningState.getMilestoningParameterValue(
429
+ milestoningState.processingDate,
430
+ ),
431
+ );
432
+ const [startDateValue, setStartDateValue] = useState(
433
+ milestoningState.getMilestoningParameterValue(milestoningState.startDate),
434
+ );
435
+ const [endDateValue, setEndDateValue] = useState(
436
+ milestoningState.getMilestoningParameterValue(milestoningState.endDate),
437
+ );
422
438
 
423
439
  const shouldFilterMilestoningParamIfNotUsed = (
424
440
  param: ValueSpecification | undefined,
@@ -491,28 +507,28 @@ export const QueryResultModifierModal = observer(
491
507
  );
492
508
  setParameterStates(allParamStates);
493
509
  if (!businessDate) {
494
- setBusinessDate(
495
- allParamStates.find(
496
- (ps) =>
497
- ps.variableName ===
498
- (milestoningState.businessDate &&
499
- milestoningState.businessDate instanceof VariableExpression
500
- ? milestoningState.businessDate.name
501
- : BUSINESS_DATE_MILESTONING_PROPERTY_NAME),
502
- )?.parameter,
510
+ const lambdaParamState = allParamStates.find(
511
+ (ps) =>
512
+ ps.variableName ===
513
+ (milestoningState.businessDate &&
514
+ milestoningState.businessDate instanceof VariableExpression
515
+ ? milestoningState.businessDate.name
516
+ : BUSINESS_DATE_MILESTONING_PROPERTY_NAME),
503
517
  );
518
+ setBusinessDate(lambdaParamState?.parameter);
519
+ setBusinessDateValue(lambdaParamState?.value);
504
520
  }
505
521
  if (!processingDate) {
506
- setProcessingDate(
507
- allParamStates.find(
508
- (ps) =>
509
- ps.variableName ===
510
- (milestoningState.businessDate &&
511
- milestoningState.processingDate instanceof VariableExpression
512
- ? milestoningState.processingDate.name
513
- : PROCESSING_DATE_MILESTONING_PROPERTY_NAME),
514
- )?.parameter,
522
+ const lambdaParamState = allParamStates.find(
523
+ (ps) =>
524
+ ps.variableName ===
525
+ (milestoningState.businessDate &&
526
+ milestoningState.processingDate instanceof VariableExpression
527
+ ? milestoningState.processingDate.name
528
+ : PROCESSING_DATE_MILESTONING_PROPERTY_NAME),
515
529
  );
530
+ setProcessingDate(lambdaParamState?.parameter);
531
+ setProcessingDateValue(lambdaParamState?.value);
516
532
  }
517
533
  }
518
534
  setIsAllVersionsEnabled(Boolean(value));
@@ -552,6 +568,7 @@ export const QueryResultModifierModal = observer(
552
568
  MILESTONING_START_DATE_PARAMETER_NAME,
553
569
  );
554
570
  setStartDate(startDateParameterState.parameter);
571
+ setStartDateValue(startDateParameterState.value);
555
572
  }
556
573
  if (!(endDate && endDate instanceof VariableExpression)) {
557
574
  endDateParameterState = getOrCreateNewLambdaParameterState(
@@ -559,6 +576,7 @@ export const QueryResultModifierModal = observer(
559
576
  MILESTONING_END_DATE_PARAMETER_NAME,
560
577
  );
561
578
  setEndDate(endDateParameterState.parameter);
579
+ setEndDateValue(endDateParameterState.value);
562
580
  }
563
581
  setParameterStates([
564
582
  ...new Set([
@@ -601,6 +619,24 @@ export const QueryResultModifierModal = observer(
601
619
  setParameterStates(
602
620
  milestoningState.queryBuilderState.parametersState.parameterStates,
603
621
  );
622
+ setStartDateValue(
623
+ milestoningState.getMilestoningParameterValue(
624
+ milestoningState.startDate,
625
+ ),
626
+ );
627
+ setEndDateValue(
628
+ milestoningState.getMilestoningParameterValue(milestoningState.endDate),
629
+ );
630
+ setProcessingDateValue(
631
+ milestoningState.getMilestoningParameterValue(
632
+ milestoningState.processingDate,
633
+ ),
634
+ );
635
+ setBusinessDateValue(
636
+ milestoningState.getMilestoningParameterValue(
637
+ milestoningState.businessDate,
638
+ ),
639
+ );
604
640
  };
605
641
 
606
642
  // Handle user actions
@@ -630,6 +666,11 @@ export const QueryResultModifierModal = observer(
630
666
  milestoningState.queryBuilderState.setGetAllFunction(
631
667
  QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS.GET_ALL_VERSIONS_IN_RANGE,
632
668
  );
669
+ milestoningState.updateMilestoningParameterValue(
670
+ startDate,
671
+ startDateValue,
672
+ );
673
+ milestoningState.updateMilestoningParameterValue(endDate, endDateValue);
633
674
  } else if (isAllVersionsEnabled) {
634
675
  milestoningState.clearGetAllParameters();
635
676
  milestoningState.queryBuilderState.setGetAllFunction(
@@ -644,6 +685,14 @@ export const QueryResultModifierModal = observer(
644
685
  milestoningState.queryBuilderState.setGetAllFunction(
645
686
  QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS.GET_ALL,
646
687
  );
688
+ milestoningState.updateMilestoningParameterValue(
689
+ processingDate,
690
+ processingDateValue,
691
+ );
692
+ milestoningState.updateMilestoningParameterValue(
693
+ businessDate,
694
+ businessDateValue,
695
+ );
647
696
  }
648
697
  milestoningState.updateQueryBuilderState();
649
698
  };
@@ -660,7 +709,26 @@ export const QueryResultModifierModal = observer(
660
709
  setParameterStates(
661
710
  milestoningState.queryBuilderState.parametersState.parameterStates,
662
711
  );
712
+ setStartDateValue(
713
+ milestoningState.getMilestoningParameterValue(
714
+ milestoningState.startDate,
715
+ ),
716
+ );
717
+ setEndDateValue(
718
+ milestoningState.getMilestoningParameterValue(milestoningState.endDate),
719
+ );
720
+ setProcessingDateValue(
721
+ milestoningState.getMilestoningParameterValue(
722
+ milestoningState.processingDate,
723
+ ),
724
+ );
725
+ setBusinessDateValue(
726
+ milestoningState.getMilestoningParameterValue(
727
+ milestoningState.businessDate,
728
+ ),
729
+ );
663
730
  }, [
731
+ milestoningState,
664
732
  milestoningState.isAllVersionsEnabled,
665
733
  milestoningState.isAllVersionsInRangeEnabled,
666
734
  milestoningState.queryBuilderState.parametersState.parameterStates,
@@ -724,24 +792,34 @@ export const QueryResultModifierModal = observer(
724
792
  <div className="panel__content__form__section__header__label">
725
793
  Start Date
726
794
  </div>
795
+ <div className="panel__content__form__section__header__prompt">
796
+ Choose a value for this milestoning parameter
797
+ </div>
727
798
  <MilestoningParameterEditor
728
799
  queryBuilderState={
729
800
  milestoningState.queryBuilderState
730
801
  }
731
802
  parameter={startDate}
732
803
  setParameter={setStartDate}
804
+ parameterValue={startDateValue}
805
+ setParameterValue={setStartDateValue}
733
806
  />
734
807
  </PanelFormSection>
735
808
  <PanelFormSection>
736
809
  <div className="panel__content__form__section__header__label">
737
810
  End Date
738
811
  </div>
812
+ <div className="panel__content__form__section__header__prompt">
813
+ Choose a value for this milestoning parameter
814
+ </div>
739
815
  <MilestoningParameterEditor
740
816
  queryBuilderState={
741
817
  milestoningState.queryBuilderState
742
818
  }
743
819
  parameter={endDate}
744
820
  setParameter={setEndDate}
821
+ parameterValue={endDateValue}
822
+ setParameterValue={setEndDateValue}
745
823
  />
746
824
  </PanelFormSection>
747
825
  </div>
@@ -755,12 +833,17 @@ export const QueryResultModifierModal = observer(
755
833
  <div className="panel__content__form__section__header__label">
756
834
  Processing Date
757
835
  </div>
836
+ <div className="panel__content__form__section__header__prompt">
837
+ Choose a value for this milestoning parameter
838
+ </div>
758
839
  <MilestoningParameterEditor
759
840
  queryBuilderState={
760
841
  milestoningState.queryBuilderState
761
842
  }
762
843
  parameter={processingDate}
763
844
  setParameter={setProcessingDate}
845
+ parameterValue={processingDateValue}
846
+ setParameterValue={setProcessingDateValue}
764
847
  />
765
848
  </PanelFormSection>
766
849
  )}
@@ -769,58 +852,71 @@ export const QueryResultModifierModal = observer(
769
852
  <div className="panel__content__form__section__header__label">
770
853
  Business Date
771
854
  </div>
855
+ <div className="panel__content__form__section__header__prompt">
856
+ Choose a value for this milestoning parameter
857
+ </div>
772
858
  <MilestoningParameterEditor
773
859
  queryBuilderState={
774
860
  milestoningState.queryBuilderState
775
861
  }
776
862
  parameter={businessDate}
777
863
  setParameter={setBusinessDate}
864
+ parameterValue={businessDateValue}
865
+ setParameterValue={setBusinessDateValue}
778
866
  />
779
867
  </PanelFormSection>
780
868
  )}
781
869
  </>
782
870
  )}
783
- <PanelFormSection>
784
- <div className="panel__content__form__section__header__label">
785
- List of compatible milestoning parameters
786
- </div>
787
- </PanelFormSection>
788
- <div className="panel__content__form__section__list__items">
789
- <PanelFormListItems title="Available parameters">
790
- {filteredParameterStates.length === 0 && (
791
- <> No available parameters </>
792
- )}
793
- {filteredParameterStates.map((pState) => (
794
- <VariableViewer
795
- key={pState.uuid}
796
- variable={pState.parameter}
797
- isReadOnly={true}
798
- queryBuilderState={milestoningState.queryBuilderState}
799
- />
800
- ))}
801
- </PanelFormListItems>
802
- {Boolean(filteredConstantState.length) && (
803
- <PanelFormListItems title="Available constants">
804
- {filteredConstantState.map((constantState) => (
805
- <VariableViewer
806
- key={constantState.uuid}
807
- variable={constantState.variable}
808
- value={{
809
- val:
810
- constantState instanceof
811
- QueryBuilderSimpleConstantExpressionState
812
- ? constantState.value
813
- : undefined,
814
- }}
815
- queryBuilderState={
816
- milestoningState.queryBuilderState
817
- }
818
- isReadOnly={true}
819
- />
820
- ))}
821
- </PanelFormListItems>
822
- )}
823
- </div>
871
+ {!(isAllVersionsEnabled && !isAllVersionsInRangeEnabled) && (
872
+ <>
873
+ <PanelFormSection>
874
+ <div className="panel__content__form__section__header__label">
875
+ List of compatible milestoning parameters
876
+ </div>
877
+ </PanelFormSection>
878
+ <div className="panel__content__form__section__list__items">
879
+ {filteredParameterStates.length > 0 && (
880
+ <PanelFormListItems title="Available parameters">
881
+ {filteredParameterStates.map((pState) => (
882
+ <VariableViewer
883
+ key={pState.uuid}
884
+ variable={pState.parameter}
885
+ isReadOnly={true}
886
+ queryBuilderState={
887
+ milestoningState.queryBuilderState
888
+ }
889
+ option={{
890
+ hideMilestoningParameterValueString: true,
891
+ }}
892
+ />
893
+ ))}
894
+ </PanelFormListItems>
895
+ )}
896
+ {Boolean(filteredConstantState.length) && (
897
+ <PanelFormListItems title="Available constants">
898
+ {filteredConstantState.map((constantState) => (
899
+ <VariableViewer
900
+ key={constantState.uuid}
901
+ variable={constantState.variable}
902
+ value={{
903
+ val:
904
+ constantState instanceof
905
+ QueryBuilderSimpleConstantExpressionState
906
+ ? constantState.value
907
+ : undefined,
908
+ }}
909
+ queryBuilderState={
910
+ milestoningState.queryBuilderState
911
+ }
912
+ isReadOnly={true}
913
+ />
914
+ ))}
915
+ </PanelFormListItems>
916
+ )}
917
+ </div>
918
+ </>
919
+ )}
824
920
  <div className="query-builder__projection__options__section-name">
825
921
  Other
826
922
  </div>
@@ -960,7 +1056,7 @@ export const QueryResultModifierModal = observer(
960
1056
  watermarkState.queryBuilderState.graphManagerState
961
1057
  .graph
962
1058
  }
963
- obseverContext={
1059
+ observerContext={
964
1060
  watermarkState.queryBuilderState.observerContext
965
1061
  }
966
1062
  typeCheckOption={{
@@ -1146,7 +1146,7 @@ const QueryBuilderProjectionColumnEditor = observer(
1146
1146
  aggregateColumnState.calendarFunction?.setEndDate(val);
1147
1147
  }}
1148
1148
  graph={tdsState.queryBuilderState.graphManagerState.graph}
1149
- obseverContext={tdsState.queryBuilderState.observerContext}
1149
+ observerContext={tdsState.queryBuilderState.observerContext}
1150
1150
  typeCheckOption={{
1151
1151
  expectedType: PrimitiveType.STRICTDATE,
1152
1152
  }}
@@ -1353,7 +1353,17 @@ export const QueryBuilderTDSPanel = observer(
1353
1353
  : 'Set Query Options'}
1354
1354
  </div>
1355
1355
  </button>
1356
- <div className="query-builder__projection__result-modifier-prompt__divider">
1356
+
1357
+ <div
1358
+ className={clsx(
1359
+ 'query-builder__projection__result-modifier-prompt__divider',
1360
+ {
1361
+ 'query-builder__projection__result-modifier-prompt__divider--light':
1362
+ applicationStore.layoutService
1363
+ .TEMPORARY__isLightColorThemeEnabled,
1364
+ },
1365
+ )}
1366
+ >
1357
1367
  {tdsState.isQueryOptionsSet && ' - '}
1358
1368
  </div>
1359
1369
  {tdsState.queryBuilderState.milestoningState
@@ -14,7 +14,14 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { useRef, useState, useCallback, forwardRef, useMemo } from 'react';
17
+ import {
18
+ useRef,
19
+ useState,
20
+ useCallback,
21
+ forwardRef,
22
+ useMemo,
23
+ useEffect,
24
+ } from 'react';
18
25
  import { observer } from 'mobx-react-lite';
19
26
  import {
20
27
  type TreeNodeContainerProps,
@@ -103,9 +110,9 @@ import type { QueryBuilderFilterOperator } from '../../stores/filter/QueryBuilde
103
110
  import { isTypeCompatibleForAssignment } from '../../stores/QueryBuilderValueSpecificationHelper.js';
104
111
  import { QUERY_BUILDER_GROUP_OPERATION } from '../../stores/QueryBuilderGroupOperationHelper.js';
105
112
  import {
106
- BasicValueSpecificationEditor,
107
113
  type QueryBuilderVariableDragSource,
108
114
  QUERY_BUILDER_VARIABLE_DND_TYPE,
115
+ EditableBasicValueSpecificationEditor,
109
116
  } from '../shared/BasicValueSpecificationEditor.js';
110
117
  import { QueryBuilderTelemetryHelper } from '../../__lib__/QueryBuilderTelemetryHelper.js';
111
118
  import { getPropertyChainName } from '../../stores/QueryBuilderPropertyEditorState.js';
@@ -350,6 +357,7 @@ export const buildFilterTreeWithExists = (
350
357
  undefined,
351
358
  filterConditionState,
352
359
  );
360
+ treeNode.setIsNewlyAdded(true);
353
361
  filterState.addNodeFromNode(treeNode, parentNode);
354
362
  if (targetDropNode instanceof QueryBuilderFilterTreeBlankConditionNodeData) {
355
363
  filterState.removeNodeAndPruneBranch(targetDropNode);
@@ -511,6 +519,7 @@ const buildFilterTree = (
511
519
  undefined,
512
520
  filterConditionState,
513
521
  );
522
+ treeNode.setIsNewlyAdded(true);
514
523
  // Check if there are any exists node present in the parent nodes of the target.
515
524
  // This would change the way we build the filter tree
516
525
  let cn: QueryBuilderFilterTreeNodeData | undefined = targetDropNode;
@@ -798,6 +807,10 @@ const QueryBuilderFilterConditionEditor = observer(
798
807
  cleanUpReloadValues,
799
808
  };
800
809
 
810
+ useEffect(() => {
811
+ node.setIsNewlyAdded(false);
812
+ }, [node]);
813
+
801
814
  return (
802
815
  <div
803
816
  className="dnd__entry__container"
@@ -856,11 +869,11 @@ const QueryBuilderFilterConditionEditor = observer(
856
869
  isDragOver={isFilterValueDragOver}
857
870
  label="Change Filter Value"
858
871
  >
859
- <BasicValueSpecificationEditor
872
+ <EditableBasicValueSpecificationEditor
860
873
  valueSpecification={node.condition.value}
861
874
  setValueSpecification={changeValueSpecification}
862
875
  graph={graph}
863
- obseverContext={queryBuilderState.observerContext}
876
+ observerContext={queryBuilderState.observerContext}
864
877
  typeCheckOption={{
865
878
  expectedType:
866
879
  node.condition.propertyExpressionState
@@ -872,6 +885,7 @@ const QueryBuilderFilterConditionEditor = observer(
872
885
  isConstant={queryBuilderState.constantState.isValueSpecConstant(
873
886
  node.condition.value,
874
887
  )}
888
+ initializeAsEditable={node.isNewlyAdded}
875
889
  />
876
890
  </PanelEntryDropZonePlaceholder>
877
891
  </div>
@@ -334,6 +334,7 @@ export const QueryBuilderResultPanel = observer(
334
334
  <MenuContentItem
335
335
  key={item.key}
336
336
  title={item.title ?? ''}
337
+ disabled={item.disableFunc?.(queryBuilderState) ?? false}
337
338
  onClick={() => {
338
339
  item.onClick(queryBuilderState);
339
340
  }}
@@ -22,7 +22,6 @@ import {
22
22
  DataGrid,
23
23
  type DataGridApi,
24
24
  type DataGridCellRange,
25
- type DataGridColumnApi,
26
25
  type DataGridColumnDefinition,
27
26
  type DataGridGetContextMenuItemsParams,
28
27
  type DataGridIRowNode,
@@ -249,9 +248,7 @@ export const QueryBuilderTDSGridResult = observer(
249
248
  const applicationStore = useApplicationStore();
250
249
  const darkMode =
251
250
  !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled;
252
- const [columnAPi, setColumnApi] = useState<DataGridColumnApi | undefined>(
253
- undefined,
254
- );
251
+ const [gridApi, setGridApi] = useState<DataGridApi | undefined>(undefined);
255
252
  const [aggFuncParams, setAggFuncParams] = useState<
256
253
  DataGridIAggFuncParams | undefined
257
254
  >(undefined);
@@ -262,12 +259,12 @@ export const QueryBuilderTDSGridResult = observer(
262
259
  : getColDefs(executionResult, resultState);
263
260
 
264
261
  const onSaveGridColumnState = (): void => {
265
- if (!columnAPi) {
262
+ if (!gridApi) {
266
263
  return;
267
264
  }
268
265
  resultState.setGridConfig({
269
- columns: columnAPi.getColumnState(),
270
- isPivotModeEnabled: columnAPi.isPivotMode(),
266
+ columns: gridApi.getColumnState(),
267
+ isPivotModeEnabled: gridApi.isPivotMode(),
271
268
  isLocalModeEnabled: true,
272
269
  previewLimit: resultState.previewLimit,
273
270
  ...(resultState.wavgAggregationState?.weightedColumnIdPairs && {
@@ -368,7 +365,7 @@ export const QueryBuilderTDSGridResult = observer(
368
365
  ],
369
366
  );
370
367
 
371
- const weightedColumnOptions = columnAPi
368
+ const weightedColumnOptions = gridApi
372
369
  ?.getColumns()
373
370
  ?.filter((c) => c.getColDef().cellDataType === 'number')
374
371
  .map((col) => ({
@@ -458,7 +455,7 @@ export const QueryBuilderTDSGridResult = observer(
458
455
 
459
456
  useEffect(() => {
460
457
  if (aggFuncParams) {
461
- aggFuncParams.columnApi.setColumnAggFunc(
458
+ aggFuncParams.api.setColumnAggFunc(
462
459
  aggFuncParams.colDef.field!,
463
460
  QueryBuilderDataGridCustomAggregationFunction.WAVG,
464
461
  );
@@ -480,10 +477,12 @@ export const QueryBuilderTDSGridResult = observer(
480
477
  <DataGrid
481
478
  rowData={getRowDataFromExecutionResult(executionResult)}
482
479
  onGridReady={(params): void => {
483
- setColumnApi(params.columnApi);
484
- params.columnApi.setPivotMode(
485
- Boolean(resultState.gridConfig?.isPivotModeEnabled),
486
- );
480
+ setGridApi(params.api);
481
+ params.api.updateGridOptions({
482
+ pivotMode: Boolean(
483
+ resultState.gridConfig?.isPivotModeEnabled,
484
+ ),
485
+ });
487
486
  }}
488
487
  gridOptions={{
489
488
  suppressScrollOnNewData: true,
@@ -316,7 +316,7 @@ const updateExistingPostFilterConditionNodeData = (
316
316
  .map((v) =>
317
317
  v instanceof EnumValueInstanceValue
318
318
  ? v.values.map((ef) => ef.value.name)
319
- : (v as InstanceValue).values,
319
+ : v.values,
320
320
  )
321
321
  .flat()
322
322
  .includes(_cellData.value ?? data?.value);
@@ -114,11 +114,11 @@ const QueryResultCellRenderer = observer(
114
114
  ) {
115
115
  return undefined;
116
116
  }
117
- if (params.columnApi.getColumnState()[colIndex]?.sort === 'asc') {
117
+ if (params.api.getColumnState()[colIndex]?.sort === 'asc') {
118
118
  resultState.executionResult.result.rows.sort((a, b) =>
119
119
  getTDSRowRankByColumnInAsc(a, b, colIndex),
120
120
  );
121
- } else if (params.columnApi.getColumnState()[colIndex]?.sort === 'desc') {
121
+ } else if (params.api.getColumnState()[colIndex]?.sort === 'desc') {
122
122
  resultState.executionResult.result.rows.sort((a, b) =>
123
123
  getTDSRowRankByColumnInAsc(b, a, colIndex),
124
124
  );