@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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-query-builder",
3
- "version": "4.14.51",
3
+ "version": "4.14.53",
4
4
  "description": "Legend query builder core",
5
5
  "keywords": [
6
6
  "legend",
@@ -42,39 +42,39 @@
42
42
  "test:watch": "jest --watch"
43
43
  },
44
44
  "dependencies": {
45
- "@finos/legend-application": "15.1.10",
46
- "@finos/legend-art": "7.1.38",
47
- "@finos/legend-graph": "31.10.5",
48
- "@finos/legend-lego": "1.2.41",
49
- "@finos/legend-server-depot": "6.0.45",
50
- "@finos/legend-shared": "10.0.40",
51
- "@finos/legend-storage": "3.0.90",
52
- "@testing-library/dom": "10.1.0",
45
+ "@finos/legend-application": "15.1.11",
46
+ "@finos/legend-art": "7.1.39",
47
+ "@finos/legend-graph": "31.10.6",
48
+ "@finos/legend-lego": "1.2.42",
49
+ "@finos/legend-server-depot": "6.0.46",
50
+ "@finos/legend-shared": "10.0.41",
51
+ "@finos/legend-storage": "3.0.91",
52
+ "@testing-library/dom": "10.2.0",
53
53
  "@testing-library/react": "16.0.0",
54
54
  "@types/react": "18.3.3",
55
55
  "@types/react-dom": "18.3.0",
56
56
  "chart.js": "4.4.3",
57
57
  "mathjs": "13.0.0",
58
- "mobx": "6.12.3",
58
+ "mobx": "6.12.4",
59
59
  "mobx-react-lite": "4.0.7",
60
- "monaco-editor": "0.49.0",
60
+ "monaco-editor": "0.50.0",
61
61
  "react": "18.3.1",
62
62
  "react-chartjs-2": "5.2.0",
63
63
  "react-dnd": "16.0.1",
64
64
  "react-dom": "18.3.1",
65
65
  "serializr": "3.0.2",
66
- "sql-formatter": "15.3.1"
66
+ "sql-formatter": "15.3.2"
67
67
  },
68
68
  "devDependencies": {
69
- "@finos/legend-dev-utils": "2.1.8",
69
+ "@finos/legend-dev-utils": "2.1.9",
70
70
  "@jest/globals": "29.7.0",
71
71
  "cross-env": "7.0.3",
72
72
  "eslint": "8.57.0",
73
73
  "jest": "29.7.0",
74
74
  "npm-run-all": "4.1.5",
75
75
  "rimraf": "5.0.7",
76
- "sass": "1.77.4",
77
- "typescript": "5.4.5"
76
+ "sass": "1.77.6",
77
+ "typescript": "5.5.2"
78
78
  },
79
79
  "peerDependencies": {
80
80
  "react": "^18.0.0"
@@ -484,6 +484,7 @@ export const QueryBuilder = observer(
484
484
  plugin as QueryBuilder_LegendApplicationPlugin_Extension
485
485
  ).getExtraQueryBuilderHelpMenuActionConfigurations?.() ?? [],
486
486
  )
487
+ .filter((item) => !item.disableFunc?.(queryBuilderState))
487
488
  .map((item) => (
488
489
  <MenuContentItem
489
490
  key={item.key}
@@ -271,7 +271,7 @@ const QueryBuilderSimpleConstantExpressionEditor = observer(
271
271
  );
272
272
  }}
273
273
  graph={queryBuilderState.graphManagerState.graph}
274
- obseverContext={queryBuilderState.observerContext}
274
+ observerContext={queryBuilderState.observerContext}
275
275
  typeCheckOption={{
276
276
  expectedType: selectedType.value,
277
277
  match: selectedType.value === PrimitiveType.DATETIME,
@@ -266,7 +266,7 @@ const VariableExpressionEditor = observer(
266
266
  setDefaultMilestoningValue(deepClone(val));
267
267
  }}
268
268
  graph={queryBuilderState.graphManagerState.graph}
269
- obseverContext={queryBuilderState.observerContext}
269
+ observerContext={queryBuilderState.observerContext}
270
270
  typeCheckOption={{
271
271
  expectedType: selectedType.value,
272
272
  match: selectedType.value === PrimitiveType.DATETIME,
@@ -251,7 +251,7 @@ const DerivedPropertyParameterValueEditor = observer(
251
251
  );
252
252
  }}
253
253
  graph={graph}
254
- obseverContext={
254
+ observerContext={
255
255
  derivedPropertyExpressionState.queryBuilderState.observerContext
256
256
  }
257
257
  typeCheckOption={{
@@ -131,7 +131,7 @@ export const QueryBuilderClassSelector = observer(
131
131
 
132
132
  return (
133
133
  <div className="query-builder__setup__config-group query-builder__setup__config-group--class">
134
- <div className="query-builder__setup__config-group__item ">
134
+ <div className="query-builder__setup__config-group__item">
135
135
  <label
136
136
  className="btn--sm query-builder__setup__config-group__item__label"
137
137
  title="entity"
@@ -114,6 +114,7 @@ export const selectFromCustomSelectorInput = (
114
114
  export const selectFirstOptionFromCustomSelectorInput = (
115
115
  selectorContainer: HTMLElement,
116
116
  lightMode?: boolean,
117
+ verifyInputValue?: boolean,
117
118
  ): void => {
118
119
  const selectorContainerClassName = getSelectorContainerClassName(lightMode);
119
120
  const selectorInputValue = getSelectorInputClassName(lightMode);
@@ -124,7 +125,9 @@ export const selectFirstOptionFromCustomSelectorInput = (
124
125
 
125
126
  fireEvent.keyDown(selector, { key: 'ArrowDown' });
126
127
  fireEvent.keyDown(selector, { key: 'Enter' });
127
- expect(selector.querySelector(selectorInputValue)).not.toBeNull();
128
+ if (verifyInputValue ?? true) {
129
+ expect(selector.querySelector(selectorInputValue)).not.toBeNull();
130
+ }
128
131
  };
129
132
 
130
133
  export const getCustomSelectorInputValue = (
@@ -77,7 +77,7 @@ export const FunctionParametersValidationNodeViewer: React.FC<{
77
77
  Variables Details
78
78
  </PanelListItem>
79
79
  <PanelDivider />
80
- <table className="table query-builder__function-parameters-validation__container__table">
80
+ <table className="query-builder__function-parameters-validation__container__table table">
81
81
  <thead>
82
82
  <tr>
83
83
  <th className="table__cell--left">Name</th>
@@ -30,7 +30,7 @@ export const PartialClassResultTypeViewer: React.FC<{
30
30
  </PanelListItem>
31
31
  <PanelDivider />
32
32
  {
33
- <table className="table query-builder__result__container__table--partial-class">
33
+ <table className="query-builder__result__container__table--partial-class table">
34
34
  <thead>
35
35
  <tr>
36
36
  <th className="table__cell--left">Property</th>
@@ -88,7 +88,7 @@ export const RelationalClassQueryTempTableGraphFetchExecutionNodeViewer: React.F
88
88
  Details
89
89
  </PanelListItem>
90
90
  <PanelDivider />
91
- <table className="table query-builder__store-mapping-global-graph-fetch__container__table">
91
+ <table className="query-builder__store-mapping-global-graph-fetch__container__table table">
92
92
  <thead>
93
93
  <tr>
94
94
  <th className="table__cell--left">Property</th>
@@ -90,7 +90,7 @@ export const RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer: Rea
90
90
  Node Details
91
91
  </PanelListItem>
92
92
  <PanelDivider />
93
- <table className="table query-builder__store-mapping-global-graph-fetch__container__table">
93
+ <table className="query-builder__store-mapping-global-graph-fetch__container__table table">
94
94
  <thead>
95
95
  <tr>
96
96
  <th className="table__cell--left">Property</th>
@@ -88,7 +88,7 @@ export const RelationalRootQueryTempTableGraphFetchExecutionNodeViewer: React.FC
88
88
  Details
89
89
  </PanelListItem>
90
90
  <PanelDivider />
91
- <table className="table query-builder__store-mapping-global-graph-fetch__container__table">
91
+ <table className="query-builder__store-mapping-global-graph-fetch__container__table table">
92
92
  <thead>
93
93
  <tr>
94
94
  <th className="table__cell--left">Property</th>
@@ -116,7 +116,7 @@ export const SQLExecutionNodeViewerHelper: React.FC<{
116
116
  Result Columns
117
117
  </PanelListItem>
118
118
  <PanelDivider />
119
- <table className="table query-builder__sql__container__table">
119
+ <table className="query-builder__sql__container__table table">
120
120
  <thead>
121
121
  <tr>
122
122
  <th className="table__cell--left">Label</th>
@@ -92,7 +92,7 @@ export const StoreMappingGlobalGraphFetchExecutionNodeViewer: React.FC<{
92
92
  Store Mapping Global Graph Fetch Execution Node Details
93
93
  </PanelListItem>
94
94
  <PanelDivider />
95
- <table className="table query-builder__store-mapping-global-graph-fetch__container__table">
95
+ <table className="query-builder__store-mapping-global-graph-fetch__container__table table">
96
96
  <thead>
97
97
  <tr>
98
98
  <th className="table__cell--left">Property</th>
@@ -178,7 +178,7 @@ export const StoreMappingGlobalGraphFetchExecutionNodeViewer: React.FC<{
178
178
  xStorePropertyFetchDetails
179
179
  </PanelListItem>
180
180
  <PanelDivider />
181
- <table className="table query-builder__store-mapping-global-graph-fetch__container__table">
181
+ <table className="query-builder__store-mapping-global-graph-fetch__container__table table">
182
182
  <thead>
183
183
  <tr>
184
184
  <th className="table__cell--left">Property</th>
@@ -33,7 +33,7 @@ export const TDSResultTypeViewer: React.FC<{
33
33
  </PanelListItem>
34
34
  <PanelDivider />
35
35
  {
36
- <table className="table query-builder__result__container__table">
36
+ <table className="query-builder__result__container__table table">
37
37
  <thead>
38
38
  <tr>
39
39
  <th className="table__cell--left">Label</th>
@@ -25,6 +25,7 @@ import {
25
25
  PrimitiveInstanceValue,
26
26
  PRIMITIVE_TYPE,
27
27
  PrimitiveType,
28
+ VariableExpression,
28
29
  } from '@finos/legend-graph';
29
30
  import { useDrop } from 'react-dnd';
30
31
  import { PanelEntryDropZonePlaceholder } from '@finos/legend-art';
@@ -33,16 +34,27 @@ import {
33
34
  BasicValueSpecificationEditor,
34
35
  type QueryBuilderVariableDragSource,
35
36
  QUERY_BUILDER_VARIABLE_DND_TYPE,
37
+ EditableBasicValueSpecificationEditor,
36
38
  } from '../shared/BasicValueSpecificationEditor.js';
37
39
  import { instanceValue_setValues } from '../../stores/shared/ValueSpecificationModifierHelper.js';
40
+ import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../graph/QueryBuilderMetaModelConst.js';
41
+ import { createSupportedFunctionExpression } from '../../stores/shared/ValueSpecificationEditorHelper.js';
38
42
 
39
43
  export const MilestoningParameterEditor = observer(
40
44
  (props: {
41
45
  queryBuilderState: QueryBuilderState;
42
46
  parameter: ValueSpecification;
43
47
  setParameter: (val: ValueSpecification) => void;
48
+ parameterValue: ValueSpecification | undefined;
49
+ setParameterValue: (val: ValueSpecification) => void;
44
50
  }) => {
45
- const { queryBuilderState, parameter, setParameter } = props;
51
+ const {
52
+ queryBuilderState,
53
+ parameter,
54
+ setParameter,
55
+ parameterValue,
56
+ setParameterValue,
57
+ } = props;
46
58
  const handleDrop = useCallback(
47
59
  (item: QueryBuilderVariableDragSource): void => {
48
60
  setParameter(item.variable);
@@ -87,27 +99,53 @@ export const MilestoningParameterEditor = observer(
87
99
  };
88
100
 
89
101
  return (
90
- <div ref={dropConnector} className="query-builder__variable-editor">
91
- <PanelEntryDropZonePlaceholder
92
- isDragOver={isDragOver}
93
- label="Change Milestoning Parameter Value"
94
- >
95
- <BasicValueSpecificationEditor
96
- valueSpecification={parameter}
97
- graph={queryBuilderState.graphManagerState.graph}
98
- obseverContext={queryBuilderState.observerContext}
99
- setValueSpecification={(val: ValueSpecification): void =>
100
- setParameter(val)
101
- }
102
- typeCheckOption={{
103
- expectedType: PrimitiveType.DATE,
104
- }}
105
- resetValue={resetMilestoningParameter}
106
- isConstant={queryBuilderState.constantState.isValueSpecConstant(
107
- parameter,
108
- )}
109
- />
110
- </PanelEntryDropZonePlaceholder>
102
+ <div
103
+ ref={dropConnector}
104
+ className="query-builder__milestoning-panel__variable-editor"
105
+ >
106
+ <div className="query-builder__milestoning-panel__variable-editor__variable">
107
+ <PanelEntryDropZonePlaceholder
108
+ isDragOver={isDragOver}
109
+ label="Change Milestoning Parameter Value"
110
+ >
111
+ <BasicValueSpecificationEditor
112
+ valueSpecification={parameter}
113
+ graph={queryBuilderState.graphManagerState.graph}
114
+ observerContext={queryBuilderState.observerContext}
115
+ setValueSpecification={(val: ValueSpecification): void =>
116
+ setParameter(val)
117
+ }
118
+ typeCheckOption={{
119
+ expectedType: PrimitiveType.DATE,
120
+ }}
121
+ resetValue={resetMilestoningParameter}
122
+ isConstant={queryBuilderState.constantState.isValueSpecConstant(
123
+ parameter,
124
+ )}
125
+ />
126
+ </PanelEntryDropZonePlaceholder>
127
+ </div>
128
+ {parameter instanceof VariableExpression && parameterValue && (
129
+ <div className="query-builder__milestoning-panel__variable-editor__value">
130
+ <EditableBasicValueSpecificationEditor
131
+ valueSpecification={parameterValue}
132
+ setValueSpecification={setParameterValue}
133
+ graph={queryBuilderState.graphManagerState.graph}
134
+ observerContext={queryBuilderState.observerContext}
135
+ typeCheckOption={{
136
+ expectedType: PrimitiveType.DATE,
137
+ }}
138
+ resetValue={() => {
139
+ const now = createSupportedFunctionExpression(
140
+ QUERY_BUILDER_SUPPORTED_FUNCTIONS.NOW,
141
+ PrimitiveType.DATETIME,
142
+ );
143
+ setParameterValue(now);
144
+ }}
145
+ initializeAsEditable={true}
146
+ />
147
+ </div>
148
+ )}
111
149
  </div>
112
150
  );
113
151
  },
@@ -462,7 +462,7 @@ const QueryBuilderPostFilterConditionEditor = observer(
462
462
  valueSpecification={rightConditionValue.value}
463
463
  setValueSpecification={changeValueSpecification}
464
464
  graph={graph}
465
- obseverContext={queryBuilderState.observerContext}
465
+ observerContext={queryBuilderState.observerContext}
466
466
  typeCheckOption={{
467
467
  expectedType: guaranteeNonNullable(
468
468
  node.condition.leftConditionValue.getColumnType(),