@finos/legend-query-builder 4.14.34 → 4.14.36

Sign up to get free protection for your applications and to get access to all the features.
Files changed (330) hide show
  1. package/lib/__lib__/QueryBuilderTesting.d.ts +1 -0
  2. package/lib/__lib__/QueryBuilderTesting.d.ts.map +1 -1
  3. package/lib/__lib__/QueryBuilderTesting.js +1 -0
  4. package/lib/__lib__/QueryBuilderTesting.js.map +1 -1
  5. package/lib/components/QueryBuilder.d.ts.map +1 -1
  6. package/lib/components/QueryBuilder.js +37 -17
  7. package/lib/components/QueryBuilder.js.map +1 -1
  8. package/lib/components/QueryBuilderConstantExpressionPanel.d.ts.map +1 -1
  9. package/lib/components/QueryBuilderConstantExpressionPanel.js +30 -13
  10. package/lib/components/QueryBuilderConstantExpressionPanel.js.map +1 -1
  11. package/lib/components/QueryBuilderParametersPanel.js.map +1 -1
  12. package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts.map +1 -1
  13. package/lib/components/QueryBuilderPropertyExpressionEditor.js +2 -1
  14. package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -1
  15. package/lib/components/QueryBuilderSideBar.d.ts +2 -18
  16. package/lib/components/QueryBuilderSideBar.d.ts.map +1 -1
  17. package/lib/components/QueryBuilderSideBar.js +32 -104
  18. package/lib/components/QueryBuilderSideBar.js.map +1 -1
  19. package/lib/components/QueryLoader.js.map +1 -1
  20. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.d.ts.map +1 -1
  21. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js.map +1 -1
  22. package/lib/components/data-access/DataAccessOverview.js.map +1 -1
  23. package/lib/components/execution-plan/ConstantExecutionNodeViewer.js.map +1 -1
  24. package/lib/components/execution-plan/DataTypeResultTypeViewer.js.map +1 -1
  25. package/lib/components/execution-plan/ExecutionPlanViewer.js.map +1 -1
  26. package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.d.ts.map +1 -1
  27. package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.js +1 -2
  28. package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.js.map +1 -1
  29. package/lib/components/execution-plan/ImplementationViewer.js.map +1 -1
  30. package/lib/components/execution-plan/ResultTypeViewer.js.map +1 -1
  31. package/lib/components/execution-plan/SQLExecutionNodeViewer.js.map +1 -1
  32. package/lib/components/execution-plan/SequenceExecutionNodeViewer.js.map +1 -1
  33. package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.js.map +1 -1
  34. package/lib/components/execution-plan/TempTableStrategyViewer.js.map +1 -1
  35. package/lib/components/explorer/QueryBuilderExplorerPanel.js.map +1 -1
  36. package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js.map +1 -1
  37. package/lib/components/explorer/QueryBuilderMilestoningEditor.js.map +1 -1
  38. package/lib/components/explorer/QueryBuilderPropertySearchPanel.js.map +1 -1
  39. package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.js.map +1 -1
  40. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts.map +1 -1
  41. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js.map +1 -1
  42. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +1 -1
  43. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +2 -1
  44. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
  45. package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.js.map +1 -1
  46. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +1 -1
  47. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +50 -5
  48. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -1
  49. package/lib/components/fetch-structure/QueryBuilderTDSComponentHelper.js.map +1 -1
  50. package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
  51. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +2 -1
  52. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
  53. package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js.map +1 -1
  54. package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +1 -1
  55. package/lib/components/filter/QueryBuilderFilterPanel.js +2 -1
  56. package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
  57. package/lib/components/result/QueryBuilderResultPanel.js.map +1 -1
  58. package/lib/components/result/tds/QueryBuilderTDSGridResult.js.map +1 -1
  59. package/lib/components/result/tds/QueryBuilderTDSResultShared.js.map +1 -1
  60. package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.js.map +1 -1
  61. package/lib/components/shared/BasicValueSpecificationEditor.d.ts +0 -1
  62. package/lib/components/shared/BasicValueSpecificationEditor.d.ts.map +1 -1
  63. package/lib/components/shared/BasicValueSpecificationEditor.js +62 -28
  64. package/lib/components/shared/BasicValueSpecificationEditor.js.map +1 -1
  65. package/lib/components/shared/CustomDatePicker.d.ts +1 -0
  66. package/lib/components/shared/CustomDatePicker.d.ts.map +1 -1
  67. package/lib/components/shared/CustomDatePicker.js +15 -10
  68. package/lib/components/shared/CustomDatePicker.js.map +1 -1
  69. package/lib/components/shared/LambdaEditor.js +1 -1
  70. package/lib/components/shared/LambdaEditor.js.map +1 -1
  71. package/lib/components/shared/LambdaParameterValuesEditor.js.map +1 -1
  72. package/lib/components/shared/QueryBuilderPanelIssueCountBadge.js.map +1 -1
  73. package/lib/components/shared/QueryBuilderVariableSelector.d.ts +1 -0
  74. package/lib/components/shared/QueryBuilderVariableSelector.d.ts.map +1 -1
  75. package/lib/components/shared/QueryBuilderVariableSelector.js +2 -2
  76. package/lib/components/shared/QueryBuilderVariableSelector.js.map +1 -1
  77. package/lib/components/workflows/ClassQueryBuilder.d.ts.map +1 -1
  78. package/lib/components/workflows/ClassQueryBuilder.js +19 -16
  79. package/lib/components/workflows/ClassQueryBuilder.js.map +1 -1
  80. package/lib/components/workflows/MappingQueryBuilder.d.ts.map +1 -1
  81. package/lib/components/workflows/MappingQueryBuilder.js +18 -15
  82. package/lib/components/workflows/MappingQueryBuilder.js.map +1 -1
  83. package/lib/components/workflows/ServiceQueryBuilder.d.ts.map +1 -1
  84. package/lib/components/workflows/ServiceQueryBuilder.js +13 -10
  85. package/lib/components/workflows/ServiceQueryBuilder.js.map +1 -1
  86. package/lib/graph-manager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js.map +1 -1
  87. package/lib/graph-manager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.js.map +1 -1
  88. package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js.map +1 -1
  89. package/lib/index.css +2 -2
  90. package/lib/index.css.map +1 -1
  91. package/lib/index.d.ts +2 -1
  92. package/lib/index.d.ts.map +1 -1
  93. package/lib/index.js +1 -0
  94. package/lib/index.js.map +1 -1
  95. package/lib/package.json +16 -16
  96. package/lib/stores/QueryBuilderChangeDetectionState.js.map +1 -1
  97. package/lib/stores/QueryBuilderChangeHistoryState.js.map +1 -1
  98. package/lib/stores/QueryBuilderConstantsState.d.ts.map +1 -1
  99. package/lib/stores/QueryBuilderConstantsState.js +2 -1
  100. package/lib/stores/QueryBuilderConstantsState.js.map +1 -1
  101. package/lib/stores/QueryBuilderGroupOperationHelper.js.map +1 -1
  102. package/lib/stores/QueryBuilderPropertyEditorState.d.ts +1 -1
  103. package/lib/stores/QueryBuilderPropertyEditorState.d.ts.map +1 -1
  104. package/lib/stores/QueryBuilderPropertyEditorState.js +14 -35
  105. package/lib/stores/QueryBuilderPropertyEditorState.js.map +1 -1
  106. package/lib/stores/QueryBuilderResultState.js.map +1 -1
  107. package/lib/stores/QueryBuilderState.d.ts +3 -0
  108. package/lib/stores/QueryBuilderState.d.ts.map +1 -1
  109. package/lib/stores/QueryBuilderState.js +15 -1
  110. package/lib/stores/QueryBuilderState.js.map +1 -1
  111. package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
  112. package/lib/stores/QueryBuilderTextEditorState.js.map +1 -1
  113. package/lib/stores/QueryBuilderTypeaheadHelper.js.map +1 -1
  114. package/lib/stores/QueryBuilderValueSpecificationBuilder.js.map +1 -1
  115. package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js.map +1 -1
  116. package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts +2 -1
  117. package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts.map +1 -1
  118. package/lib/stores/QueryBuilderValueSpecificationHelper.js +23 -1
  119. package/lib/stores/QueryBuilderValueSpecificationHelper.js.map +1 -1
  120. package/lib/stores/QueryBuilder_LegendApplicationPlugin_Extension.d.ts +13 -0
  121. package/lib/stores/QueryBuilder_LegendApplicationPlugin_Extension.d.ts.map +1 -1
  122. package/lib/stores/QueryLoaderState.js.map +1 -1
  123. package/lib/stores/__test-utils__/QueryBuilderStateTestUtils.js.map +1 -1
  124. package/lib/stores/data-access/DataAccessState.js.map +1 -1
  125. package/lib/stores/entitlements/QueryBuilderCheckEntitlementsState.js.map +1 -1
  126. package/lib/stores/execution-plan/ExecutionPlanState.js.map +1 -1
  127. package/lib/stores/explorer/QueryBuilderExplorerState.js.map +1 -1
  128. package/lib/stores/explorer/QueryBuilderPropertySearchState.js.map +1 -1
  129. package/lib/stores/explorer/QueryFunctionsExplorerState.js.map +1 -1
  130. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts +2 -0
  131. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts.map +1 -1
  132. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js +2 -0
  133. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js.map +1 -1
  134. package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.js.map +1 -1
  135. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts +2 -0
  136. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts.map +1 -1
  137. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js +6 -0
  138. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js.map +1 -1
  139. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js.map +1 -1
  140. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js.map +1 -1
  141. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.js.map +1 -1
  142. package/lib/stores/fetch-structure/tds/QueryBuilderTDSHelper.js.map +1 -1
  143. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts +2 -0
  144. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
  145. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +16 -0
  146. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
  147. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunction.js.map +1 -1
  148. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.js.map +1 -1
  149. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js.map +1 -1
  150. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.js.map +1 -1
  151. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.js.map +1 -1
  152. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Average.js.map +1 -1
  153. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Count.js.map +1 -1
  154. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js.map +1 -1
  155. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js.map +1 -1
  156. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js.map +1 -1
  157. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Max.js.map +1 -1
  158. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Min.js.map +1 -1
  159. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js.map +1 -1
  160. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js.map +1 -1
  161. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Sum.js.map +1 -1
  162. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.js.map +1 -1
  163. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts +3 -0
  164. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts.map +1 -1
  165. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js +42 -3
  166. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js.map +1 -1
  167. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.js.map +1 -1
  168. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js.map +1 -1
  169. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js.map +1 -1
  170. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js.map +1 -1
  171. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts.map +1 -1
  172. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js +6 -5
  173. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js.map +1 -1
  174. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts.map +1 -1
  175. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js +6 -5
  176. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js.map +1 -1
  177. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts.map +1 -1
  178. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js +8 -37
  179. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js.map +1 -1
  180. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts.map +1 -1
  181. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js +7 -10
  182. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js.map +1 -1
  183. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.js.map +1 -1
  184. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js.map +1 -1
  185. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts.map +1 -1
  186. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js +7 -10
  187. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js.map +1 -1
  188. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts.map +1 -1
  189. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js +6 -5
  190. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js.map +1 -1
  191. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js.map +1 -1
  192. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js.map +1 -1
  193. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -1
  194. package/lib/stores/fetch-structure/tds/projection/QueryBuilderRelationProjectValueSpecBuidler.js.map +1 -1
  195. package/lib/stores/fetch-structure/tds/projection/QueryBuilderTypedProjectionStateBuilder.js.map +1 -1
  196. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowState.js.map +1 -1
  197. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowStateBuilder.js.map +1 -1
  198. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowValueSpecificationBuilder.js.map +1 -1
  199. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Average.js.map +1 -1
  200. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Count.js.map +1 -1
  201. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Max.js.map +1 -1
  202. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Min.js.map +1 -1
  203. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Sum.js.map +1 -1
  204. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_AverageRank.js.map +1 -1
  205. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_DenseRank.js.map +1 -1
  206. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_Rank.js.map +1 -1
  207. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_RowNumber.js.map +1 -1
  208. package/lib/stores/filter/QueryBuilderFilterState.d.ts +3 -0
  209. package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +1 -1
  210. package/lib/stores/filter/QueryBuilderFilterState.js +30 -2
  211. package/lib/stores/filter/QueryBuilderFilterState.js.map +1 -1
  212. package/lib/stores/filter/QueryBuilderFilterStateBuilder.js.map +1 -1
  213. package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js.map +1 -1
  214. package/lib/stores/filter/operators/QueryBuilderFilterOperatorValueSpecificationBuilder.js.map +1 -1
  215. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.d.ts.map +1 -1
  216. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js +5 -4
  217. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js.map +1 -1
  218. package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.d.ts.map +1 -1
  219. package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js +5 -4
  220. package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js.map +1 -1
  221. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.d.ts.map +1 -1
  222. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js +7 -35
  223. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js.map +1 -1
  224. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.d.ts.map +1 -1
  225. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.js +6 -8
  226. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.js.map +1 -1
  227. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts.map +1 -1
  228. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js +6 -8
  229. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js.map +1 -1
  230. package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js.map +1 -1
  231. package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js.map +1 -1
  232. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.d.ts.map +1 -1
  233. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.js +6 -8
  234. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.js.map +1 -1
  235. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.d.ts.map +1 -1
  236. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js +6 -8
  237. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js.map +1 -1
  238. package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.d.ts.map +1 -1
  239. package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js +5 -4
  240. package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js.map +1 -1
  241. package/lib/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.js.map +1 -1
  242. package/lib/stores/milestoning/QueryBuilderBusinessTemporalMilestoningImplementation.js.map +1 -1
  243. package/lib/stores/milestoning/QueryBuilderMilestoningHelper.js.map +1 -1
  244. package/lib/stores/milestoning/QueryBuilderMilestoningState.js.map +1 -1
  245. package/lib/stores/milestoning/QueryBuilderProcessingTemporalMilestoningImplementation.js.map +1 -1
  246. package/lib/stores/query-workflow/QueryBuilderWorkFlowState.d.ts +5 -0
  247. package/lib/stores/query-workflow/QueryBuilderWorkFlowState.d.ts.map +1 -1
  248. package/lib/stores/query-workflow/QueryBuilderWorkFlowState.js +7 -0
  249. package/lib/stores/query-workflow/QueryBuilderWorkFlowState.js.map +1 -1
  250. package/lib/stores/shared/LambdaEditorState.js.map +1 -1
  251. package/lib/stores/shared/LambdaParameterState.js.map +1 -1
  252. package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts +1 -1
  253. package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts.map +1 -1
  254. package/lib/stores/shared/ValueSpecificationEditorHelper.js +20 -10
  255. package/lib/stores/shared/ValueSpecificationEditorHelper.js.map +1 -1
  256. package/lib/stores/watermark/QueryBuilderWatermarkState.d.ts +0 -2
  257. package/lib/stores/watermark/QueryBuilderWatermarkState.d.ts.map +1 -1
  258. package/lib/stores/watermark/QueryBuilderWatermarkState.js +0 -6
  259. package/lib/stores/watermark/QueryBuilderWatermarkState.js.map +1 -1
  260. package/lib/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.js.map +1 -1
  261. package/lib/stores/workflows/ClassQueryBuilderState.js.map +1 -1
  262. package/lib/stores/workflows/MappingQueryBuilderState.d.ts +2 -2
  263. package/lib/stores/workflows/MappingQueryBuilderState.d.ts.map +1 -1
  264. package/lib/stores/workflows/MappingQueryBuilderState.js +2 -1
  265. package/lib/stores/workflows/MappingQueryBuilderState.js.map +1 -1
  266. package/lib/stores/workflows/ServiceQueryBuilderState.d.ts +2 -2
  267. package/lib/stores/workflows/ServiceQueryBuilderState.d.ts.map +1 -1
  268. package/lib/stores/workflows/ServiceQueryBuilderState.js +2 -1
  269. package/lib/stores/workflows/ServiceQueryBuilderState.js.map +1 -1
  270. package/package.json +24 -24
  271. package/src/__lib__/QueryBuilderTesting.ts +1 -0
  272. package/src/components/QueryBuilder.tsx +89 -46
  273. package/src/components/QueryBuilderConstantExpressionPanel.tsx +41 -19
  274. package/src/components/QueryBuilderParametersPanel.tsx +7 -7
  275. package/src/components/QueryBuilderPropertyExpressionEditor.tsx +2 -0
  276. package/src/components/QueryBuilderSideBar.tsx +138 -339
  277. package/src/components/execution-plan/FunctionParametersValidationNodeViewer.tsx +3 -2
  278. package/src/components/explorer/QueryBuilderExplorerPanel.tsx +4 -4
  279. package/src/components/explorer/QueryBuilderPropertySearchPanel.tsx +4 -4
  280. package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +8 -3
  281. package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +139 -1
  282. package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +21 -4
  283. package/src/components/fetch-structure/QueryBuilderTDSWindowPanel.tsx +4 -4
  284. package/src/components/filter/QueryBuilderFilterPanel.tsx +12 -6
  285. package/src/components/result/tds/QueryBuilderTDSResultShared.tsx +2 -2
  286. package/src/components/result/tds/QueryBuilderTDSSimpleGridResult.tsx +1 -1
  287. package/src/components/shared/BasicValueSpecificationEditor.tsx +96 -34
  288. package/src/components/shared/CustomDatePicker.tsx +30 -22
  289. package/src/components/shared/QueryBuilderVariableSelector.tsx +2 -2
  290. package/src/components/workflows/ClassQueryBuilder.tsx +79 -77
  291. package/src/components/workflows/MappingQueryBuilder.tsx +75 -76
  292. package/src/components/workflows/ServiceQueryBuilder.tsx +71 -70
  293. package/src/index.ts +2 -1
  294. package/src/stores/QueryBuilderConstantsState.ts +2 -0
  295. package/src/stores/QueryBuilderPropertyEditorState.ts +17 -56
  296. package/src/stores/QueryBuilderState.ts +23 -1
  297. package/src/stores/QueryBuilderValueSpecificationHelper.ts +32 -0
  298. package/src/stores/QueryBuilder_LegendApplicationPlugin_Extension.ts +18 -0
  299. package/src/stores/explorer/QueryBuilderExplorerState.ts +2 -2
  300. package/src/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.ts +4 -0
  301. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts +8 -0
  302. package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +33 -0
  303. package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.ts +59 -0
  304. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.ts +5 -5
  305. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.ts +5 -5
  306. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.ts +10 -69
  307. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.ts +7 -18
  308. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.ts +7 -18
  309. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts +5 -5
  310. package/src/stores/filter/QueryBuilderFilterState.ts +48 -2
  311. package/src/stores/filter/operators/QueryBuilderFilterOperator_Contain.ts +5 -5
  312. package/src/stores/filter/operators/QueryBuilderFilterOperator_EndWith.ts +5 -5
  313. package/src/stores/filter/operators/QueryBuilderFilterOperator_Equal.ts +10 -71
  314. package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.ts +6 -14
  315. package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.ts +6 -14
  316. package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThan.ts +6 -14
  317. package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.ts +6 -14
  318. package/src/stores/filter/operators/QueryBuilderFilterOperator_StartWith.ts +5 -5
  319. package/src/stores/query-workflow/QueryBuilderWorkFlowState.ts +10 -0
  320. package/src/stores/shared/ValueSpecificationEditorHelper.ts +32 -16
  321. package/src/stores/watermark/QueryBuilderWatermarkState.ts +0 -7
  322. package/src/stores/workflows/MappingQueryBuilderState.ts +7 -1
  323. package/src/stores/workflows/ServiceQueryBuilderState.ts +6 -1
  324. package/tsconfig.json +17 -2
  325. package/tsconfig.package.json +17 -1
  326. package/lib/components/watermark/QueryBuilderWatermark.d.ts +0 -22
  327. package/lib/components/watermark/QueryBuilderWatermark.d.ts.map +0 -1
  328. package/lib/components/watermark/QueryBuilderWatermark.js +0 -83
  329. package/lib/components/watermark/QueryBuilderWatermark.js.map +0 -1
  330. package/src/components/watermark/QueryBuilderWatermark.tsx +0 -218
@@ -1 +1 @@
1
- {"version":3,"file":"ClassQueryBuilderState.js","sourceRoot":"","sources":["../../../src/stores/workflows/ClassQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,0BAA0B,EAC1B,4BAA4B,EAC5B,cAAc,EACd,mCAAmC,GACpC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,OAAO,EAAE,wCAAwC,EAAE,MAAM,iDAAiD,CAAC;AAC3G,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,OAAO,sBAAuB,SAAQ,iBAAiB;IAClD,oCAAoC,GAAG,GAAoB,EAAE,CACpE,wCAAwC,CAAC,IAAI,CAAC,CAAC;IAEjD;;;;;OAKG;IACH,oBAAoB,CAAC,MAAa;QAChC,MAAM,kBAAkB,GAAG,0BAA0B,CACnD,MAAM,EACN,IAAI,CAAC,iBAAiB,CAAC,cAAc,CACtC,CAAC;QACF,YAAY;QACZ,MAAM,0BAA0B,GAC9B,IAAI,CAAC,qBAAqB,CAAC,OAAO;YAClC,kBAAkB,CAAC,QAAQ,CAAC,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC;QAClE,IAAI,IAAI,CAAC,iBAAiB,IAAI,0BAA0B,EAAE;YACxD,OAAO;SACR;QACD,6CAA6C;QAC7C,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,kBAAkB,CAAC,CAAC;QACrE,IAAI,kBAAkB,EAAE;YACtB,IAAI,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC;YACvC,IAAI,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,CAAC;SACjD;IACH,CAAC;IAED;;;;OAIG;IACH,sBAAsB,CAAC,OAAgB;QACrC,8CAA8C;QAC9C,sDAAsD;QACtD,MAAM,kBAAkB,GAAG,4BAA4B,CACrD,OAAO,EACP,IAAI,CAAC,iBAAiB,CAAC,cAAc,CACtC,CAAC;QACF,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,kBAAkB,CAAC,CAAC;QACrE,IAAI,kBAAkB,EAAE;YACtB,IAAI,CAAC,aAAa,CAChB,IAAI,cAAc,CAChB,mCAAmC,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAC/D,CACF,CAAC;SACH;IACH,CAAC;CACF"}
1
+ {"version":3,"file":"ClassQueryBuilderState.js","sourceRoot":"","sources":["../../../src/stores/workflows/ClassQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,0BAA0B,EAC1B,4BAA4B,EAC5B,cA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B,mCAAmC,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAC/D,CACF,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
@@ -17,12 +17,12 @@ import type { GenericLegendApplicationStore } from '@finos/legend-application';
17
17
  import { type Mapping, type Runtime, type GraphManagerState } from '@finos/legend-graph';
18
18
  import { QueryBuilderState } from '../QueryBuilderState.js';
19
19
  import type { QueryBuilderConfig } from '../../graph-manager/QueryBuilderConfig.js';
20
- import type { QueryBuilderWorkflowState } from '../query-workflow/QueryBuilderWorkFlowState.js';
20
+ import type { QueryBuilderActionConfig, QueryBuilderWorkflowState } from '../query-workflow/QueryBuilderWorkFlowState.js';
21
21
  export declare class MappingQueryBuilderState extends QueryBuilderState {
22
22
  readonly onMappingChange?: ((val: Mapping) => void) | undefined;
23
23
  readonly onRuntimeChange?: ((val: Runtime) => void) | undefined;
24
24
  TEMPORARY__setupPanelContentRenderer: () => React.ReactNode;
25
- constructor(applicationStore: GenericLegendApplicationStore, graphManagerState: GraphManagerState, workflowState: QueryBuilderWorkflowState, onMappingChange?: ((val: Mapping) => void) | undefined, onRuntimeChange?: ((val: Runtime) => void) | undefined, config?: QueryBuilderConfig | undefined, sourceInfo?: object | undefined);
25
+ constructor(applicationStore: GenericLegendApplicationStore, graphManagerState: GraphManagerState, workflowState: QueryBuilderWorkflowState, actionConfig: QueryBuilderActionConfig, onMappingChange?: ((val: Mapping) => void) | undefined, onRuntimeChange?: ((val: Runtime) => void) | undefined, config?: QueryBuilderConfig | undefined, sourceInfo?: object | undefined);
26
26
  /**
27
27
  * Propagation after changing the mapping:
28
28
  * - If no runtime is chosen, try to choose a compatible runtime
@@ -1 +1 @@
1
- {"version":3,"file":"MappingQueryBuilderState.d.ts","sourceRoot":"","sources":["../../../src/stores/workflows/MappingQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,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,qBAAqB,CAAC;AAG7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,KAAK,EACV,wBAAwB,EACxB,yBAAyB,EAC1B,MAAM,gDAAgD,CAAC;AAExD,qBAAa,wBAAyB,SAAQ,iBAAiB;IAC7D,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IAChE,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IAEvD,oCAAoC,QAAO,MAAM,SAAS,CAChB;gBAGjD,gBAAgB,EAAE,6BAA6B,EAC/C,iBAAiB,EAAE,iBAAiB,EACpC,aAAa,EAAE,yBAAyB,EACxC,YAAY,EAAE,wBAAwB,EACtC,eAAe,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,EACtD,eAAe,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,EACtD,MAAM,CAAC,EAAE,kBAAkB,GAAG,SAAS,EACvC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS;IAgBjC;;;;;;OAMG;IACH,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;CA6B/C"}
@@ -21,10 +21,11 @@ export class MappingQueryBuilderState extends QueryBuilderState {
21
21
  onMappingChange;
22
22
  onRuntimeChange;
23
23
  TEMPORARY__setupPanelContentRenderer = () => renderMappingQueryBuilderSetupPanelContent(this);
24
- constructor(applicationStore, graphManagerState, workflowState, onMappingChange, onRuntimeChange, config, sourceInfo) {
24
+ constructor(applicationStore, graphManagerState, workflowState, actionConfig, onMappingChange, onRuntimeChange, config, sourceInfo) {
25
25
  super(applicationStore, graphManagerState, workflowState, config, sourceInfo);
26
26
  this.onMappingChange = onMappingChange;
27
27
  this.onRuntimeChange = onRuntimeChange;
28
+ this.workflowState.updateActionConfig(actionConfig);
28
29
  }
29
30
  /**
30
31
  * Propagation after changing the mapping:
@@ -1 +1 @@
1
- {"version":3,"file":"MappingQueryBuilderState.js","sourceRoot":"","sources":["../../../src/stores/workflows/MappingQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAIL,4BAA4B,EAC5B,cAAc,EACd,mCAAmC,EACnC,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,0CAA0C,EAAE,MAAM,mDAAmD,CAAC;AAC/G,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAI5D,MAAM,OAAO,wBAAyB,SAAQ,iBAAiB;IACpD,eAAe,CAAwC;IACvD,eAAe,CAAwC;IAEvD,oCAAoC,GAAG,GAAoB,EAAE,CACpE,0CAA0C,CAAC,IAAI,CAAC,CAAC;IAEnD,YACE,gBAA+C,EAC/C,iBAAoC,EACpC,aAAwC,EACxC,eAAsD,EACtD,eAAsD,EACtD,MAAuC,EACvC,UAA+B;QAE/B,KAAK,CACH,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,MAAM,EACN,UAAU,CACX,CAAC;QAEF,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;IACzC,CAAC;IAED;;;;;;OAMG;IACH,sBAAsB,CAAC,OAAgB;QACrC,8CAA8C;QAC9C,sDAAsD;QACtD,MAAM,kBAAkB,GAAG,4BAA4B,CACrD,OAAO,EACP,IAAI,CAAC,iBAAiB,CAAC,cAAc,CACtC,CAAC;QACF,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,kBAAkB,CAAC,CAAC;QACrE,IAAI,kBAAkB,EAAE;YACtB,IAAI,CAAC,aAAa,CAChB,IAAI,cAAc,CAChB,mCAAmC,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAC/D,CACF,CAAC;SACH;QAED,MAAM,iBAAiB,GAAG,2BAA2B,CACnD,OAAO,EACP,IAAI,CAAC,iBAAiB,CAAC,aAAa,CACrC,CAAC;QACF,kEAAkE;QAClE,4DAA4D;QAC5D,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;YAC1D,MAAM,gBAAgB,GAAG,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;YAClE,IAAI,gBAAgB,EAAE;gBACpB,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;aACpC;SACF;IACH,CAAC;CACF"}
1
+ {"version":3,"file":"MappingQueryBuilderState.js","sourceRoot":"","sources":["../../../src/stores/workflows/MappingQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAIL,4BAA4B,EAC5B,cAAc,EACd,mCAAmC,EACnC,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,0CAA0C,EAAE,MAAM,mDAAmD,CAAC;AAC/G,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAO5D,MAAM,OAAO,wBAAyB,SAAQ,iBAAiB;IACpD,eAAe,CAAwC;IACvD,eAAe,CAAwC;IAEvD,oCAAoC,GAAG,GAAoB,EAAE,CACpE,0CAA0C,CAAC,IAAI,CAAC,CAAC;IAEnD,YACE,gBAA+C,EAC/C,iBAAoC,EACpC,aAAwC,EACxC,YAAsC,EACtC,eAAsD,EACtD,eAAsD,EACtD,MAAuC,EACvC,UAA+B;QAE/B,KAAK,CACH,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EAEb,MAAM,EACN,UAAU,CACX,CAAC;QAEF,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,aAAa,CAAC,kBAAkB,CAAC,YAAY,CAAC,CAAC;IACtD,CAAC;IAED;;;;;;OAMG;IACH,sBAAsB,CAAC,OAAgB;QACrC,8CAA8C;QAC9C,sDAAsD;QACtD,MAAM,kBAAkB,GAAG,4BAA4B,CACrD,OAAO,EACP,IAAI,CAAC,iBAAiB,CAAC,cAAc,CACtC,CAAC;QACF,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,kBAAkB,CAAC,CAAC;QACrE,IAAI,kBAAkB,EAAE,CAAC;YACvB,IAAI,CAAC,aAAa,CAChB,IAAI,cAAc,CAChB,mCAAmC,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAC/D,CACF,CAAC;QACJ,CAAC;QAED,MAAM,iBAAiB,GAAG,2BAA2B,CACnD,OAAO,EACP,IAAI,CAAC,iBAAiB,CAAC,aAAa,CACrC,CAAC;QACF,kEAAkE;QAClE,4DAA4D;QAC5D,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YAC3D,MAAM,gBAAgB,GAAG,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;YAClE,IAAI,gBAAgB,EAAE,CAAC;gBACrB,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;YACrC,CAAC;QACH,CAAC;IACH,CAAC;CACF"}
@@ -17,7 +17,7 @@ import type { GenericLegendApplicationStore } from '@finos/legend-application';
17
17
  import { type Mapping, type Runtime, type GraphManagerState, type Service } from '@finos/legend-graph';
18
18
  import { QueryBuilderState } from '../QueryBuilderState.js';
19
19
  import type { QueryBuilderConfig } from '../../graph-manager/QueryBuilderConfig.js';
20
- import type { QueryBuilderWorkflowState } from '../query-workflow/QueryBuilderWorkFlowState.js';
20
+ import type { QueryBuilderActionConfig, QueryBuilderWorkflowState } from '../query-workflow/QueryBuilderWorkFlowState.js';
21
21
  export type ServiceExecutionContext = {
22
22
  key: string;
23
23
  mapping: Mapping;
@@ -31,7 +31,7 @@ export declare class ServiceQueryBuilderState extends QueryBuilderState {
31
31
  readonly onExecutionContextChange?: ((val: ServiceExecutionContext) => void) | undefined;
32
32
  TEMPORARY__setupPanelContentRenderer: () => React.ReactNode;
33
33
  selectedExecutionContext?: ServiceExecutionContext | undefined;
34
- constructor(applicationStore: GenericLegendApplicationStore, graphManagerState: GraphManagerState, workflowState: QueryBuilderWorkflowState, service: Service, usableServices: Service[] | undefined, executionContextKey?: string | undefined, onServiceChange?: ((val: Service) => void) | undefined, onExecutionContextChange?: ((val: ServiceExecutionContext) => void) | undefined, config?: QueryBuilderConfig | undefined, sourceInfo?: object | undefined);
34
+ constructor(applicationStore: GenericLegendApplicationStore, graphManagerState: GraphManagerState, workflowState: QueryBuilderWorkflowState, actionConfig: QueryBuilderActionConfig, service: Service, usableServices: Service[] | undefined, executionContextKey?: string | undefined, onServiceChange?: ((val: Service) => void) | undefined, onExecutionContextChange?: ((val: ServiceExecutionContext) => void) | undefined, config?: QueryBuilderConfig | undefined, sourceInfo?: object | undefined);
35
35
  setSelectedExecutionContext(val: ServiceExecutionContext): void;
36
36
  get sideBarClassName(): string | undefined;
37
37
  get isMappingReadOnly(): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"ServiceQueryBuilderState.d.ts","sourceRoot":"","sources":["../../../src/stores/workflows/ServiceQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,iBAAiB,EACtB,KAAK,OAAO,EAIb,MAAM,qBAAqB,CAAC;AAS7B,OAAO,EAAE,iBAAiB,E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,CAAC,EAC9B,CAAC,CAAC,GAAG,EAAE,uBAAuB,KAAK,IAAI,CAAC,GACxC,SAAS,CAAC;IAEL,oCAAoC,QAAO,MAAM,SAAS,CAChB;IAEnD,wBAAwB,CAAC,EAAE,uBAAuB,GAAG,SAAS,CAAC;gBAG7D,gBAAgB,EAAE,6BAA6B,EAC/C,iBAAiB,EAAE,iBAAiB,EACpC,aAAa,EAAE,yBAAyB,EACxC,YAAY,EAAE,wBAAwB,EACtC,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,OAAO,EAAE,GAAG,SAAS,EACrC,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,EACxC,eAAe,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,EACtD,wBAAwB,CAAC,EACrB,CAAC,CAAC,GAAG,EAAE,uBAAuB,KAAK,IAAI,CAAC,GACxC,SAAS,EACb,MAAM,CAAC,EAAE,kBAAkB,GAAG,SAAS,EACvC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS;IA2DjC,2BAA2B,CAAC,GAAG,EAAE,uBAAuB,GAAG,IAAI;IAI/D,IAAa,gBAAgB,IAAI,MAAM,GAAG,SAAS,CAIlD;IAED,IAAa,iBAAiB,IAAI,OAAO,CAExC;IAED,IAAa,iBAAiB,IAAI,OAAO,CAExC;IAED;;;;;;OAMG;IACH,+BAA+B,CAC7B,gBAAgB,EAAE,uBAAuB,GACxC,IAAI;CAkBR"}
@@ -26,7 +26,7 @@ export class ServiceQueryBuilderState extends QueryBuilderState {
26
26
  onExecutionContextChange;
27
27
  TEMPORARY__setupPanelContentRenderer = () => renderServiceQueryBuilderSetupPanelContent(this);
28
28
  selectedExecutionContext;
29
- constructor(applicationStore, graphManagerState, workflowState, service, usableServices, executionContextKey, onServiceChange, onExecutionContextChange, config, sourceInfo) {
29
+ constructor(applicationStore, graphManagerState, workflowState, actionConfig, service, usableServices, executionContextKey, onServiceChange, onExecutionContextChange, config, sourceInfo) {
30
30
  super(applicationStore, graphManagerState, workflowState, config, sourceInfo);
31
31
  makeObservable(this, {
32
32
  selectedExecutionContext: observable,
@@ -36,6 +36,7 @@ export class ServiceQueryBuilderState extends QueryBuilderState {
36
36
  this.usableServices = usableServices;
37
37
  this.onServiceChange = onServiceChange;
38
38
  this.onExecutionContextChange = onExecutionContextChange;
39
+ this.workflowState.updateActionConfig(actionConfig);
39
40
  if (service.execution instanceof PureSingleExecution) {
40
41
  this.executionContextState.mapping = service.execution.mapping?.value;
41
42
  this.executionContextState.runtimeValue = service.execution.runtime;
@@ -1 +1 @@
1
- {"version":3,"file":"ServiceQueryBuilderState.js","sourceRoot":"","sources":["../../../src/stores/workflows/ServiceQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAKL,2BAA2B,EAC3B,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,UAAU,EACV,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,0CAA0C,EAAE,MAAM,mDAAmD,CAAC;AAC/G,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAU5D,MAAM,OAAO,wBAAyB,SAAQ,iBAAiB;IACpD,OAAO,CAAU;IACjB,cAAc,CAAwB;IACtC,iBAAiB,GAA8B,EAAE,CAAC;IAClD,eAAe,CAAwC;IACvD,wBAAwB,CAEnB;IAEL,oCAAoC,GAAG,GAAoB,EAAE,CACpE,0CAA0C,CAAC,IAAI,CAAC,CAAC;IAEnD,wBAAwB,CAAuC;IAE/D,YACE,gBAA+C,EAC/C,iBAAoC,EACpC,aAAwC,EACxC,OAAgB,EAChB,cAAqC,EACrC,mBAAwC,EACxC,eAAsD,EACtD,wBAEa,EACb,M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D,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;YAC1D,MAAM,gBAAgB,GAAG,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;YAClE,IAAI,gBAAgB,EAAE;gBACpB,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;aACpC;SACF;IACH,CAAC;CACF"}
1
+ {"version":3,"file":"ServiceQueryBuilderState.js","sourceRoot":"","sources":["../../../src/stores/workflows/ServiceQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAKL,2BAA2B,EAC3B,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,UAAU,EACV,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,0CAA0C,EAAE,MAAM,mDAAmD,CAAC;AAC/G,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAa5D,MAAM,OAAO,wBAAyB,SAAQ,iBAAiB;IACpD,OAAO,CAAU;IACjB,cAAc,CAAwB;IACtC,iBAAiB,GAA8B,EAAE,CAAC;IAClD,eAAe,CAAwC;IACvD,wBAAwB,CAEnB;IAEL,oCAAoC,GAAG,GAAoB,EAAE,CACpE,0CAA0C,CAAC,IAAI,CAAC,CAAC;IAEnD,wBAAwB,CAAuC;IAE/D,YACE,gBAA+C,EAC/C,iBAAoC,EACpC,aAAwC,EACxC,YAAsC,EACtC,OAAgB,EAChB,cAAqC,EACrC,mBAAwC,EACxC,eAAsD,EACtD,wBAEa,EACb,MAAuC,EACvC,UAA+B;QAE/B,KAAK,CACH,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,MAAM,EACN,UA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AC;QACF,kEAAkE;QAClE,4DAA4D;QAC5D,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YAC3D,MAAM,gBAAgB,GAAG,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;YAClE,IAAI,gBAAgB,EAAE,CAAC;gBACrB,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;YACrC,CAAC;QACH,CAAC;IACH,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-query-builder",
3
- "version": "4.14.34",
3
+ "version": "4.14.36",
4
4
  "description": "Legend query builder core",
5
5
  "keywords": [
6
6
  "legend",
@@ -42,38 +42,38 @@
42
42
  "test:watch": "jest --watch"
43
43
  },
44
44
  "dependencies": {
45
- "@finos/legend-application": "15.0.75",
46
- "@finos/legend-art": "7.1.27",
47
- "@finos/legend-graph": "31.9.14",
48
- "@finos/legend-lego": "1.2.28",
49
- "@finos/legend-server-depot": "6.0.39",
50
- "@finos/legend-shared": "10.0.34",
51
- "@finos/legend-storage": "3.0.84",
52
- "@testing-library/react": "14.0.0",
53
- "@types/react": "18.2.31",
54
- "@types/react-dom": "18.2.14",
55
- "chart.js": "4.4.0",
56
- "mathjs": "11.11.2",
57
- "mobx": "6.10.2",
58
- "mobx-react-lite": "4.0.5",
59
- "monaco-editor": "0.44.0",
60
- "react": "18.2.0",
45
+ "@finos/legend-application": "15.1.0",
46
+ "@finos/legend-art": "7.1.29",
47
+ "@finos/legend-graph": "31.9.15",
48
+ "@finos/legend-lego": "1.2.30",
49
+ "@finos/legend-server-depot": "6.0.40",
50
+ "@finos/legend-shared": "10.0.35",
51
+ "@finos/legend-storage": "3.0.85",
52
+ "@testing-library/react": "15.0.7",
53
+ "@types/react": "18.3.2",
54
+ "@types/react-dom": "18.3.0",
55
+ "chart.js": "4.4.2",
56
+ "mathjs": "12.4.2",
57
+ "mobx": "6.12.3",
58
+ "mobx-react-lite": "4.0.7",
59
+ "monaco-editor": "0.48.0",
60
+ "react": "18.3.1",
61
61
  "react-chartjs-2": "5.2.0",
62
62
  "react-dnd": "16.0.1",
63
- "react-dom": "18.2.0",
63
+ "react-dom": "18.3.1",
64
64
  "serializr": "3.0.2",
65
- "sql-formatter": "13.0.1"
65
+ "sql-formatter": "15.3.1"
66
66
  },
67
67
  "devDependencies": {
68
- "@finos/legend-dev-utils": "2.1.4",
68
+ "@finos/legend-dev-utils": "2.1.5",
69
69
  "@jest/globals": "29.7.0",
70
70
  "cross-env": "7.0.3",
71
- "eslint": "8.52.0",
71
+ "eslint": "8.57.0",
72
72
  "jest": "29.7.0",
73
73
  "npm-run-all": "4.1.5",
74
- "rimraf": "5.0.5",
75
- "sass": "1.69.4",
76
- "typescript": "5.2.2"
74
+ "rimraf": "5.0.7",
75
+ "sass": "1.77.1",
76
+ "typescript": "5.4.5"
77
77
  },
78
78
  "peerDependencies": {
79
79
  "react": "^18.0.0"
@@ -18,6 +18,7 @@ export enum QUERY_BUILDER_TEST_ID {
18
18
  LAMBDA_EDITOR__EDITOR_INPUT = 'lambda-editor__editor__input',
19
19
 
20
20
  QUERY_BUILDER = 'query__builder',
21
+ QUERY_BUILDER_ACTIONS = 'query__builder__actions',
21
22
  QUERY_BUILDER_SETUP = 'query__builder__setup',
22
23
  QUERY_BUILDER_FETCH_STRUCTURE = 'query__builder__fetch__structure',
23
24
  QUERY_BUILDER_TDS_PROJECTION = 'query__builder__tds__projection',
@@ -29,7 +29,6 @@ import {
29
29
  CheckIcon,
30
30
  CaretDownIcon,
31
31
  DiffIcon,
32
- WaterDropIcon,
33
32
  MenuContentDivider,
34
33
  Dialog,
35
34
  Modal,
@@ -74,16 +73,16 @@ import { QueryBuilderDiffViewPanelDiaglog } from './QueryBuilderDiffPanel.js';
74
73
  import { guaranteeType } from '@finos/legend-shared';
75
74
  import { QueryBuilderGraphFetchTreeState } from '../stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js';
76
75
  import { QueryBuilderPostTDSPanel } from './fetch-structure/QueryBuilderPostTDSPanel.js';
77
- import { QueryBuilderWatermarkEditor } from './watermark/QueryBuilderWatermark.js';
78
76
  import { QueryBuilderConstantExpressionPanel } from './QueryBuilderConstantExpressionPanel.js';
79
77
  import { QUERY_BUILDER_SETTING_KEY } from '../__lib__/QueryBuilderSetting.js';
80
78
  import { QUERY_BUILDER_COMPONENT_ELEMENT_ID } from './QueryBuilderComponentElement.js';
81
79
  import { DataAccessOverview } from './data-access/DataAccessOverview.js';
82
80
  import { QueryChat } from './QueryChat.js';
83
- import { useEffect, useRef } from 'react';
81
+ import { Fragment, useEffect, useRef } from 'react';
84
82
  import { RedoButton, UndoButton } from '@finos/legend-lego/application';
85
83
  import { FETCH_STRUCTURE_IMPLEMENTATION } from '../stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js';
86
84
  import { onChangeFetchStructureImplementation } from '../stores/fetch-structure/QueryBuilderFetchStructureState.js';
85
+ import type { QueryBuilder_LegendApplicationPlugin_Extension } from '../stores/QueryBuilder_LegendApplicationPlugin_Extension.js';
87
86
 
88
87
  const QueryBuilderPostGraphFetchPanel = observer(
89
88
  (props: { graphFetchState: QueryBuilderGraphFetchTreeState }) => {
@@ -126,13 +125,18 @@ const QueryBuilderStatusBar = observer(
126
125
  className={clsx(
127
126
  'query-builder__status-bar__action query-builder__status-bar__view-diff-btn',
128
127
  )}
129
- disabled={!queryBuilderState.changeDetectionState.hasChanged}
128
+ disabled={
129
+ !queryBuilderState.changeDetectionState.hasChanged ||
130
+ !queryBuilderState.canBuildQuery
131
+ }
130
132
  onClick={showDiff}
131
133
  tabIndex={-1}
132
134
  title={
133
- queryBuilderState.changeDetectionState.hasChanged
134
- ? 'Show changes'
135
- : 'Query has not been changed'
135
+ !queryBuilderState.canBuildQuery
136
+ ? 'Please fix query errors to show changes'
137
+ : queryBuilderState.changeDetectionState.hasChanged
138
+ ? 'Show changes'
139
+ : 'Query has not been changed'
136
140
  }
137
141
  >
138
142
  <DiffIcon />
@@ -193,7 +197,12 @@ const QueryBuilderStatusBar = observer(
193
197
  openLambdaEditor(QueryBuilderTextEditorMode.JSON)
194
198
  }
195
199
  tabIndex={-1}
196
- title="View Query Protocol"
200
+ disabled={!queryBuilderState.canBuildQuery}
201
+ title={
202
+ !queryBuilderState.canBuildQuery
203
+ ? 'Please fix query errors to show query protocol'
204
+ : 'Show Query Protocol'
205
+ }
197
206
  >{`{ }`}</button>
198
207
  <button
199
208
  className={clsx(
@@ -208,7 +217,12 @@ const QueryBuilderStatusBar = observer(
208
217
  openLambdaEditor(QueryBuilderTextEditorMode.TEXT)
209
218
  }
210
219
  tabIndex={-1}
211
- title="View Query in Pure"
220
+ disabled={!queryBuilderState.canBuildQuery}
221
+ title={
222
+ !queryBuilderState.canBuildQuery
223
+ ? 'Please fix query errors to edit in Pure'
224
+ : 'Edit Query in Pure'
225
+ }
212
226
  >
213
227
  <HackerIcon />
214
228
  </button>
@@ -277,10 +291,6 @@ export const QueryBuilder = observer(
277
291
  }
278
292
  };
279
293
 
280
- const openWatermark = (): void => {
281
- queryBuilderState.watermarkState.setIsEditingWatermark(true);
282
- };
283
-
284
294
  const toggleEnableCalendar = (): void => {
285
295
  if (queryBuilderState.isCalendarEnabled) {
286
296
  queryBuilderState.applicationStore.alertService.setActionAlertInfo({
@@ -431,7 +441,11 @@ export const QueryBuilder = observer(
431
441
  useEffect(() => {
432
442
  // this condition is for passing all exisitng tests because when we initialize a queryBuilderState for a test,
433
443
  // we use an empty RawLambda with an empty class and this useEffect is called earlier than initializeWithQuery()
434
- if (queryBuilderState.isQuerySupported && queryBuilderState.class) {
444
+ if (
445
+ queryBuilderState.isQuerySupported &&
446
+ queryBuilderState.class &&
447
+ queryBuilderState.canBuildQuery
448
+ ) {
435
449
  queryBuilderState.changeHistoryState.cacheNewQuery(
436
450
  queryBuilderState.buildQuery(),
437
451
  );
@@ -457,19 +471,11 @@ export const QueryBuilder = observer(
457
471
  isLoading={queryBuilderState.resultState.exportState.isInProgress}
458
472
  />
459
473
  <div className="query-builder__content">
460
- <div className="query-builder__header">
474
+ <div
475
+ data-testid={QUERY_BUILDER_TEST_ID.QUERY_BUILDER_ACTIONS}
476
+ className="query-builder__header"
477
+ >
461
478
  <div className="query-builder__header__statuses">
462
- {queryBuilderState.watermarkState.value && (
463
- <button
464
- className="query-builder__header__status query-builder__header__status--action"
465
- onClick={openWatermark}
466
- tabIndex={-1}
467
- title="Used watermark"
468
- name="Used watermark"
469
- >
470
- <WaterDropIcon />
471
- </button>
472
- )}
473
479
  {queryBuilderState.isCalendarEnabled && (
474
480
  <div
475
481
  className="query-builder__header__status"
@@ -478,11 +484,19 @@ export const QueryBuilder = observer(
478
484
  <CalendarClockIcon className="query-builder__header__status__icon--calendar" />
479
485
  </div>
480
486
  )}
481
- {queryBuilderState.watermarkState.isEditingWatermark && (
482
- <QueryBuilderWatermarkEditor
483
- queryBuilderState={queryBuilderState}
484
- />
485
- )}
487
+ {applicationStore.pluginManager
488
+ .getApplicationPlugins()
489
+ .flatMap(
490
+ (plugin) =>
491
+ (
492
+ plugin as QueryBuilder_LegendApplicationPlugin_Extension
493
+ ).getExtraQueryBuilderHeaderTitleConfigurations?.() ?? [],
494
+ )
495
+ .map((actionConfig) => (
496
+ <Fragment key={actionConfig.key}>
497
+ {actionConfig.renderer(queryBuilderState)}
498
+ </Fragment>
499
+ ))}
486
500
  </div>
487
501
  <div className="query-builder__header__actions">
488
502
  <div className="query-builder__header__actions__undo-redo">
@@ -503,6 +517,21 @@ export const QueryBuilder = observer(
503
517
  redo={redo}
504
518
  />
505
519
  </div>
520
+ {applicationStore.pluginManager
521
+ .getApplicationPlugins()
522
+ .flatMap(
523
+ (plugin) =>
524
+ (
525
+ plugin as QueryBuilder_LegendApplicationPlugin_Extension
526
+ ).getExtraQueryBuilderHeaderActionConfigurations?.() ??
527
+ [],
528
+ )
529
+ .sort((A, B) => B.category - A.category)
530
+ .map((actionConfig) => (
531
+ <Fragment key={actionConfig.key}>
532
+ {actionConfig.renderer(queryBuilderState)}
533
+ </Fragment>
534
+ ))}
506
535
  <DropdownMenu
507
536
  className="query-builder__header__advanced-dropdown"
508
537
  title="Show Advanced Menu..."
@@ -643,14 +672,6 @@ export const QueryBuilder = observer(
643
672
  Show Post-Filter
644
673
  </MenuContentItemLabel>
645
674
  </MenuContentItem>
646
- <MenuContentItem onClick={openWatermark}>
647
- <MenuContentItemIcon>
648
- <WaterDropIcon />
649
- </MenuContentItemIcon>
650
- <MenuContentItemLabel>
651
- Show Watermark
652
- </MenuContentItemLabel>
653
- </MenuContentItem>
654
675
  <MenuContentItem
655
676
  onClick={toggleEnableCalendar}
656
677
  disabled={
@@ -695,11 +716,17 @@ export const QueryBuilder = observer(
695
716
  <MenuContentItem
696
717
  onClick={openCheckEntitlmentsEditor}
697
718
  disabled={
698
- queryBuilderState.isQuerySupported &&
699
- queryBuilderState.fetchStructureState
700
- .implementation instanceof QueryBuilderTDSState &&
701
- queryBuilderState.fetchStructureState.implementation
702
- .projectionColumns.length === 0
719
+ (queryBuilderState.isQuerySupported &&
720
+ queryBuilderState.fetchStructureState
721
+ .implementation instanceof QueryBuilderTDSState &&
722
+ queryBuilderState.fetchStructureState.implementation
723
+ .projectionColumns.length === 0) ||
724
+ !queryBuilderState.canBuildQuery
725
+ }
726
+ title={
727
+ !queryBuilderState.canBuildQuery
728
+ ? 'Please fix query errors to check entitlements'
729
+ : ''
703
730
  }
704
731
  >
705
732
  <MenuContentItemIcon>
@@ -709,7 +736,15 @@ export const QueryBuilder = observer(
709
736
  Check Entitlements
710
737
  </MenuContentItemLabel>
711
738
  </MenuContentItem>
712
- <MenuContentItem onClick={editQueryInPure}>
739
+ <MenuContentItem
740
+ onClick={editQueryInPure}
741
+ disabled={!queryBuilderState.canBuildQuery}
742
+ title={
743
+ !queryBuilderState.canBuildQuery
744
+ ? 'Please fix query errors to edit in Pure'
745
+ : undefined
746
+ }
747
+ >
713
748
  <MenuContentItemIcon>
714
749
  <HackerIcon />
715
750
  </MenuContentItemIcon>
@@ -717,7 +752,15 @@ export const QueryBuilder = observer(
717
752
  Edit Query in Pure
718
753
  </MenuContentItemLabel>
719
754
  </MenuContentItem>
720
- <MenuContentItem onClick={showQueryProtocol}>
755
+ <MenuContentItem
756
+ onClick={showQueryProtocol}
757
+ disabled={!queryBuilderState.canBuildQuery}
758
+ title={
759
+ !queryBuilderState.canBuildQuery
760
+ ? 'Please fix query errors to show query protocol'
761
+ : undefined
762
+ }
763
+ >
721
764
  <MenuContentItemIcon>
722
765
  <SerializeIcon />
723
766
  </MenuContentItemIcon>
@@ -41,6 +41,7 @@ import {
41
41
  VariableExpression,
42
42
  Multiplicity,
43
43
  isValidIdentifier,
44
+ InstanceValue,
44
45
  } from '@finos/legend-graph';
45
46
  import { deepClone } from '@finos/legend-shared';
46
47
  import { observer } from 'mobx-react-lite';
@@ -60,6 +61,7 @@ import { variableExpression_setName } from '../stores/shared/ValueSpecificationM
60
61
  import { LambdaEditor } from './shared/LambdaEditor.js';
61
62
  import { VariableViewer } from './shared/QueryBuilderVariableSelector.js';
62
63
  import { flowResult } from 'mobx';
64
+ import { isValidInstanceValue } from '../stores/QueryBuilderValueSpecificationHelper.js';
63
65
 
64
66
  const getConstantNameValidationMessage = (
65
67
  constantInput: string,
@@ -69,11 +71,11 @@ const getConstantNameValidationMessage = (
69
71
  !constantInput
70
72
  ? `Constant name can't be empty`
71
73
  : isValidIdentifier(constantInput) === false
72
- ? 'Constant name must be text with no spaces and not start with an uppercase letter or number'
73
- : allVariableNames.filter((e) => e === constantInput).length > 0 &&
74
- constantInput !== currentConstantName
75
- ? 'Constant name already exists'
76
- : undefined;
74
+ ? 'Constant name must be text with no spaces and not start with an uppercase letter or number'
75
+ : allVariableNames.filter((e) => e === constantInput).length > 0 &&
76
+ constantInput !== currentConstantName
77
+ ? 'Constant name already exists'
78
+ : undefined;
77
79
 
78
80
  // NOTE: We currently only allow constant variables for primitive types of multiplicity ONE.
79
81
  // This is why we don't show multiplicity in the editor.
@@ -93,13 +95,9 @@ const QueryBuilderSimpleConstantExpressionEditor = observer(
93
95
  const [selectedName, setSelectedName] = useState(stateName);
94
96
  const [isNameValid, setIsNameValid] = useState<boolean>(true);
95
97
  const [hasEditedName, setHasEditedName] = useState<boolean>(false);
96
- const [nameInputRef, setNameInputRef] = useState<HTMLInputElement | null>(
97
- null,
98
- );
99
98
  const handleNameInputRef = useCallback(
100
99
  (ref: HTMLInputElement | null): void => {
101
100
  ref?.focus();
102
- setNameInputRef(ref);
103
101
  },
104
102
  [],
105
103
  );
@@ -107,6 +105,17 @@ const QueryBuilderSimpleConstantExpressionEditor = observer(
107
105
  // Value
108
106
  const stateValue = constantState.value;
109
107
  const [selectedValue, setSelectedValue] = useState(deepClone(stateValue));
108
+ const [shouldFocusOnValue, setShouldFocusOnValue] =
109
+ useState<boolean>(!isCreating);
110
+ const handleValueInputRef = useCallback(
111
+ (ref: HTMLInputElement | null): void => {
112
+ if (shouldFocusOnValue) {
113
+ ref?.focus();
114
+ setShouldFocusOnValue(false);
115
+ }
116
+ },
117
+ [shouldFocusOnValue],
118
+ );
110
119
 
111
120
  // Type
112
121
  const stateType =
@@ -121,12 +130,28 @@ const QueryBuilderSimpleConstantExpressionEditor = observer(
121
130
  queryBuilderState.graphManagerState.graph,
122
131
  val.value,
123
132
  queryBuilderState.observerContext,
133
+ queryBuilderState.INTERNAL__enableInitializingDefaultSimpleExpressionValue,
124
134
  );
125
135
  setSelectedValue(newValSpec);
126
136
  }
137
+ setShouldFocusOnValue(true);
127
138
  };
139
+ // Disabling binary, strict time, latest date, and byte as we
140
+ // don't support these constant types
141
+ const supportedPrimitiveTypes: PrimitiveType[] = [
142
+ PrimitiveType.STRING,
143
+ PrimitiveType.BOOLEAN,
144
+ PrimitiveType.NUMBER,
145
+ PrimitiveType.INTEGER,
146
+ PrimitiveType.FLOAT,
147
+ PrimitiveType.DECIMAL,
148
+ PrimitiveType.DATE,
149
+ PrimitiveType.STRICTDATE,
150
+ PrimitiveType.DATETIME,
151
+ ];
128
152
  const typeOptions: PackageableElementOption<Type>[] =
129
153
  queryBuilderState.graphManagerState.graph.primitiveTypes
154
+ .filter((type) => supportedPrimitiveTypes.includes(type))
130
155
  .map(buildElementOption)
131
156
  .concat(
132
157
  queryBuilderState.graphManagerState.graph.enumerations.map(
@@ -134,15 +159,6 @@ const QueryBuilderSimpleConstantExpressionEditor = observer(
134
159
  ),
135
160
  );
136
161
 
137
- const handleValueInputRef = (ref: HTMLInputElement | null): void => {
138
- if (
139
- (!isCreating || hasEditedName) &&
140
- document.activeElement !== nameInputRef
141
- ) {
142
- ref?.focus();
143
- }
144
- };
145
-
146
162
  // Modal lifecycle actions
147
163
  const handleCancel = (): void => {
148
164
  variableState.setSelectedConstant(undefined);
@@ -163,6 +179,7 @@ const QueryBuilderSimpleConstantExpressionEditor = observer(
163
179
  queryBuilderState.graphManagerState.graph,
164
180
  selectedType.value,
165
181
  queryBuilderState.observerContext,
182
+ queryBuilderState.INTERNAL__enableInitializingDefaultSimpleExpressionValue,
166
183
  );
167
184
  setSelectedValue(valSpec);
168
185
  };
@@ -259,7 +276,11 @@ const QueryBuilderSimpleConstantExpressionEditor = observer(
259
276
  <ModalFooter>
260
277
  <ModalFooterButton
261
278
  text={isCreating ? 'Create' : 'Apply'}
262
- disabled={!isNameValid}
279
+ disabled={
280
+ !isNameValid ||
281
+ (selectedValue instanceof InstanceValue &&
282
+ !isValidInstanceValue(selectedValue))
283
+ }
263
284
  onClick={handleApply}
264
285
  />
265
286
  <ModalFooterButton
@@ -415,6 +436,7 @@ export const QueryBuilderConstantExpressionPanel = observer(
415
436
  graph,
416
437
  PrimitiveType.STRING,
417
438
  queryBuilderState.observerContext,
439
+ queryBuilderState.INTERNAL__enableInitializingDefaultSimpleExpressionValue,
418
440
  );
419
441
  const variableEx = new VariableExpression('', Multiplicity.ONE);
420
442
  variableEx.genericType = defaultVal.genericType;
@@ -123,13 +123,13 @@ const VariableExpressionEditor = observer(
123
123
  !hasEditedName
124
124
  ? undefined
125
125
  : !input
126
- ? `Parameter name can't be empty`
127
- : allVariableNames.filter((e) => e === input).length > 0 &&
128
- input !== stateName
129
- ? 'Parameter name already exists'
130
- : isValidIdentifier(input, true) === false
131
- ? 'Parameter name must be text with no spaces and not start with an uppercase letter or number'
132
- : undefined;
126
+ ? `Parameter name can't be empty`
127
+ : allVariableNames.filter((e) => e === input).length > 0 &&
128
+ input !== stateName
129
+ ? 'Parameter name already exists'
130
+ : isValidIdentifier(input, true) === false
131
+ ? 'Parameter name must be text with no spaces and not start with an uppercase letter or number'
132
+ : undefined;
133
133
 
134
134
  // modal lifecycle actions
135
135
  const handleCancel = (): void => {
@@ -207,6 +207,8 @@ const DerivedPropertyParameterValueEditor = observer(
207
207
  variable,
208
208
  derivedPropertyExpressionState.queryBuilderState.graphManagerState
209
209
  .graph,
210
+ derivedPropertyExpressionState.queryBuilderState
211
+ .INTERNAL__enableInitializingDefaultSimpleExpressionValue,
210
212
  derivedPropertyExpressionState.queryBuilderState.observerContext,
211
213
  ),
212
214
  idx + 1,