@finos/legend-query-builder 4.14.47 → 4.14.49

Sign up to get free protection for your applications and to get access to all the features.
Files changed (249) hide show
  1. package/lib/__lib__/QueryBuilderDocumentation.d.ts +3 -1
  2. package/lib/__lib__/QueryBuilderDocumentation.d.ts.map +1 -1
  3. package/lib/__lib__/QueryBuilderDocumentation.js +2 -0
  4. package/lib/__lib__/QueryBuilderDocumentation.js.map +1 -1
  5. package/lib/components/QueryBuilder.d.ts +1 -1
  6. package/lib/components/QueryBuilder.d.ts.map +1 -1
  7. package/lib/components/QueryBuilder.js +59 -46
  8. package/lib/components/QueryBuilder.js.map +1 -1
  9. package/lib/components/QueryBuilderConstantExpressionPanel.d.ts +1 -1
  10. package/lib/components/QueryBuilderConstantExpressionPanel.d.ts.map +1 -1
  11. package/lib/components/QueryBuilderConstantExpressionPanel.js +22 -22
  12. package/lib/components/QueryBuilderConstantExpressionPanel.js.map +1 -1
  13. package/lib/components/QueryBuilderDiffPanel.d.ts +2 -2
  14. package/lib/components/QueryBuilderDiffPanel.js +7 -6
  15. package/lib/components/QueryBuilderDiffPanel.js.map +1 -1
  16. package/lib/components/QueryBuilderParametersPanel.d.ts +1 -1
  17. package/lib/components/QueryBuilderParametersPanel.d.ts.map +1 -1
  18. package/lib/components/QueryBuilderParametersPanel.js +29 -10
  19. package/lib/components/QueryBuilderParametersPanel.js.map +1 -1
  20. package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts +3 -3
  21. package/lib/components/QueryBuilderPropertyExpressionEditor.js +14 -13
  22. package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -1
  23. package/lib/components/QueryBuilderSideBar.d.ts +2 -2
  24. package/lib/components/QueryBuilderSideBar.d.ts.map +1 -1
  25. package/lib/components/QueryBuilderSideBar.js +14 -24
  26. package/lib/components/QueryBuilderSideBar.js.map +1 -1
  27. package/lib/components/QueryBuilderTextEditor.d.ts +1 -1
  28. package/lib/components/QueryBuilderTextEditor.js +8 -7
  29. package/lib/components/QueryBuilderTextEditor.js.map +1 -1
  30. package/lib/components/QueryBuilderUnsupportedQueryEditor.d.ts +1 -1
  31. package/lib/components/QueryBuilderUnsupportedQueryEditor.js +4 -3
  32. package/lib/components/QueryBuilderUnsupportedQueryEditor.js.map +1 -1
  33. package/lib/components/QueryChat.d.ts +1 -1
  34. package/lib/components/QueryChat.js +3 -2
  35. package/lib/components/QueryChat.js.map +1 -1
  36. package/lib/components/QueryLoader.d.ts +2 -2
  37. package/lib/components/QueryLoader.js +25 -24
  38. package/lib/components/QueryLoader.js.map +1 -1
  39. package/lib/components/QueryUsageViewer.d.ts +1 -1
  40. package/lib/components/QueryUsageViewer.js +4 -3
  41. package/lib/components/QueryUsageViewer.js.map +1 -1
  42. package/lib/components/ServiceQuerySetupUtils.js +4 -3
  43. package/lib/components/ServiceQuerySetupUtils.js.map +1 -1
  44. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js +3 -2
  45. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js.map +1 -1
  46. package/lib/components/data-access/DataAccessOverview.d.ts +1 -1
  47. package/lib/components/data-access/DataAccessOverview.js +17 -16
  48. package/lib/components/data-access/DataAccessOverview.js.map +1 -1
  49. package/lib/components/execution-plan/AllocationExecutionNodeViewer.js +4 -3
  50. package/lib/components/execution-plan/AllocationExecutionNodeViewer.js.map +1 -1
  51. package/lib/components/execution-plan/ConstantExecutionNodeViewer.js +3 -2
  52. package/lib/components/execution-plan/ConstantExecutionNodeViewer.js.map +1 -1
  53. package/lib/components/execution-plan/DataTypeResultTypeViewer.js +4 -3
  54. package/lib/components/execution-plan/DataTypeResultTypeViewer.js.map +1 -1
  55. package/lib/components/execution-plan/ExecutionPlanViewer.d.ts +3 -3
  56. package/lib/components/execution-plan/ExecutionPlanViewer.js +34 -33
  57. package/lib/components/execution-plan/ExecutionPlanViewer.js.map +1 -1
  58. package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.js +3 -2
  59. package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.js.map +1 -1
  60. package/lib/components/execution-plan/ImplementationViewer.js +4 -3
  61. package/lib/components/execution-plan/ImplementationViewer.js.map +1 -1
  62. package/lib/components/execution-plan/PartialClassResultViewer.js +3 -2
  63. package/lib/components/execution-plan/PartialClassResultViewer.js.map +1 -1
  64. package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.js +6 -5
  65. package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.js.map +1 -1
  66. package/lib/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.js +7 -6
  67. package/lib/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.js.map +1 -1
  68. package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.js +6 -5
  69. package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.js.map +1 -1
  70. package/lib/components/execution-plan/RelationalTDSInstantiationExecutionNodeViewer.js +4 -3
  71. package/lib/components/execution-plan/RelationalTDSInstantiationExecutionNodeViewer.js.map +1 -1
  72. package/lib/components/execution-plan/ResultTypeViewer.js +5 -4
  73. package/lib/components/execution-plan/ResultTypeViewer.js.map +1 -1
  74. package/lib/components/execution-plan/SQLExecutionNodeViewer.js +7 -6
  75. package/lib/components/execution-plan/SQLExecutionNodeViewer.js.map +1 -1
  76. package/lib/components/execution-plan/SequenceExecutionNodeViewer.js +6 -5
  77. package/lib/components/execution-plan/SequenceExecutionNodeViewer.js.map +1 -1
  78. package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.js +6 -5
  79. package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.js.map +1 -1
  80. package/lib/components/execution-plan/TDSResultTypeViewer.js +4 -3
  81. package/lib/components/execution-plan/TDSResultTypeViewer.js.map +1 -1
  82. package/lib/components/execution-plan/TempTableStrategyViewer.js +3 -2
  83. package/lib/components/execution-plan/TempTableStrategyViewer.js.map +1 -1
  84. package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts +1 -1
  85. package/lib/components/explorer/QueryBuilderExplorerPanel.js +31 -30
  86. package/lib/components/explorer/QueryBuilderExplorerPanel.js.map +1 -1
  87. package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts +1 -1
  88. package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js +20 -19
  89. package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js.map +1 -1
  90. package/lib/components/explorer/{QueryBuilderMilestoningEditor.d.ts → QueryBuilderMilestoningParameterEditor.d.ts} +6 -3
  91. package/lib/components/explorer/QueryBuilderMilestoningParameterEditor.d.ts.map +1 -0
  92. package/lib/components/explorer/QueryBuilderMilestoningParameterEditor.js +53 -0
  93. package/lib/components/explorer/QueryBuilderMilestoningParameterEditor.js.map +1 -0
  94. package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts +1 -1
  95. package/lib/components/explorer/QueryBuilderPropertySearchPanel.js +18 -17
  96. package/lib/components/explorer/QueryBuilderPropertySearchPanel.js.map +1 -1
  97. package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.d.ts +1 -1
  98. package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.js +9 -8
  99. package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.js.map +1 -1
  100. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts +3 -3
  101. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js +24 -23
  102. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js.map +1 -1
  103. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts +4 -3
  104. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +1 -1
  105. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +76 -54
  106. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
  107. package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.d.ts +1 -1
  108. package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.js +3 -2
  109. package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.js.map +1 -1
  110. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts +1 -1
  111. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +1 -1
  112. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +201 -29
  113. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -1
  114. package/lib/components/fetch-structure/QueryBuilderTDSComponentHelper.js +9 -8
  115. package/lib/components/fetch-structure/QueryBuilderTDSComponentHelper.js.map +1 -1
  116. package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts +1 -1
  117. package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
  118. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +55 -36
  119. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
  120. package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.d.ts +1 -1
  121. package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js +29 -28
  122. package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js.map +1 -1
  123. package/lib/components/filter/QueryBuilderFilterPanel.d.ts +1 -1
  124. package/lib/components/filter/QueryBuilderFilterPanel.js +20 -19
  125. package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
  126. package/lib/components/result/QueryBuilderResultPanel.d.ts +2 -2
  127. package/lib/components/result/QueryBuilderResultPanel.d.ts.map +1 -1
  128. package/lib/components/result/QueryBuilderResultPanel.js +19 -17
  129. package/lib/components/result/QueryBuilderResultPanel.js.map +1 -1
  130. package/lib/components/result/tds/QueryBuilderTDSGridResult.d.ts +1 -1
  131. package/lib/components/result/tds/QueryBuilderTDSGridResult.js +11 -10
  132. package/lib/components/result/tds/QueryBuilderTDSGridResult.js.map +1 -1
  133. package/lib/components/result/tds/QueryBuilderTDSResultShared.js +5 -4
  134. package/lib/components/result/tds/QueryBuilderTDSResultShared.js.map +1 -1
  135. package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.d.ts +1 -1
  136. package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.js +9 -8
  137. package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.js.map +1 -1
  138. package/lib/components/shared/BasicValueSpecificationEditor.js +38 -37
  139. package/lib/components/shared/BasicValueSpecificationEditor.js.map +1 -1
  140. package/lib/components/shared/CustomDatePicker.js +21 -20
  141. package/lib/components/shared/CustomDatePicker.js.map +1 -1
  142. package/lib/components/shared/LambdaEditor.d.ts +2 -2
  143. package/lib/components/shared/LambdaEditor.js +14 -13
  144. package/lib/components/shared/LambdaEditor.js.map +1 -1
  145. package/lib/components/shared/LambdaParameterValuesEditor.d.ts +1 -1
  146. package/lib/components/shared/LambdaParameterValuesEditor.js +7 -6
  147. package/lib/components/shared/LambdaParameterValuesEditor.js.map +1 -1
  148. package/lib/components/shared/QueryBuilderPanelIssueCountBadge.js +4 -3
  149. package/lib/components/shared/QueryBuilderPanelIssueCountBadge.js.map +1 -1
  150. package/lib/components/shared/QueryBuilderPropertyInfoTooltip.js +10 -9
  151. package/lib/components/shared/QueryBuilderPropertyInfoTooltip.js.map +1 -1
  152. package/lib/components/shared/QueryBuilderRootClassInfoTooltip.js +4 -3
  153. package/lib/components/shared/QueryBuilderRootClassInfoTooltip.js.map +1 -1
  154. package/lib/components/shared/QueryBuilderVariableSelector.d.ts +2 -2
  155. package/lib/components/shared/QueryBuilderVariableSelector.d.ts.map +1 -1
  156. package/lib/components/shared/QueryBuilderVariableSelector.js +15 -7
  157. package/lib/components/shared/QueryBuilderVariableSelector.js.map +1 -1
  158. package/lib/components/workflows/ClassQueryBuilder.js +6 -5
  159. package/lib/components/workflows/ClassQueryBuilder.js.map +1 -1
  160. package/lib/components/workflows/MappingQueryBuilder.js +6 -5
  161. package/lib/components/workflows/MappingQueryBuilder.js.map +1 -1
  162. package/lib/components/workflows/ServiceQueryBuilder.js +6 -5
  163. package/lib/components/workflows/ServiceQueryBuilder.js.map +1 -1
  164. package/lib/graph-manager/QueryBuilderConfig.d.ts +4 -0
  165. package/lib/graph-manager/QueryBuilderConfig.d.ts.map +1 -1
  166. package/lib/graph-manager/QueryBuilderConfig.js +5 -0
  167. package/lib/graph-manager/QueryBuilderConfig.js.map +1 -1
  168. package/lib/index.css +2 -2
  169. package/lib/index.css.map +1 -1
  170. package/lib/package.json +1 -1
  171. package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts +2 -1
  172. package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts.map +1 -1
  173. package/lib/stores/QueryBuilderValueSpecificationHelper.js +3 -3
  174. package/lib/stores/QueryBuilderValueSpecificationHelper.js.map +1 -1
  175. package/lib/stores/QueryLoaderState.d.ts +1 -0
  176. package/lib/stores/QueryLoaderState.d.ts.map +1 -1
  177. package/lib/stores/QueryLoaderState.js +1 -0
  178. package/lib/stores/QueryLoaderState.js.map +1 -1
  179. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts +1 -0
  180. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
  181. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +8 -0
  182. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
  183. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Percentile.d.ts.map +1 -1
  184. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Percentile.js +4 -2
  185. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Percentile.js.map +1 -1
  186. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts.map +1 -1
  187. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js +1 -1
  188. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js.map +1 -1
  189. package/lib/stores/filter/QueryBuilderFilterStateBuilder.d.ts.map +1 -1
  190. package/lib/stores/filter/QueryBuilderFilterStateBuilder.js +1 -1
  191. package/lib/stores/filter/QueryBuilderFilterStateBuilder.js.map +1 -1
  192. package/lib/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.d.ts +2 -0
  193. package/lib/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.d.ts.map +1 -1
  194. package/lib/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.js +13 -2
  195. package/lib/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.js.map +1 -1
  196. package/lib/stores/milestoning/QueryBuilderBusinessTemporalMilestoningImplementation.d.ts +2 -0
  197. package/lib/stores/milestoning/QueryBuilderBusinessTemporalMilestoningImplementation.d.ts.map +1 -1
  198. package/lib/stores/milestoning/QueryBuilderBusinessTemporalMilestoningImplementation.js +8 -1
  199. package/lib/stores/milestoning/QueryBuilderBusinessTemporalMilestoningImplementation.js.map +1 -1
  200. package/lib/stores/milestoning/QueryBuilderMilestoningHelper.d.ts +1 -1
  201. package/lib/stores/milestoning/QueryBuilderMilestoningHelper.d.ts.map +1 -1
  202. package/lib/stores/milestoning/QueryBuilderMilestoningHelper.js +25 -1
  203. package/lib/stores/milestoning/QueryBuilderMilestoningHelper.js.map +1 -1
  204. package/lib/stores/milestoning/QueryBuilderMilestoningImplementation.d.ts +2 -0
  205. package/lib/stores/milestoning/QueryBuilderMilestoningImplementation.d.ts.map +1 -1
  206. package/lib/stores/milestoning/QueryBuilderMilestoningImplementation.js.map +1 -1
  207. package/lib/stores/milestoning/QueryBuilderMilestoningState.d.ts +5 -0
  208. package/lib/stores/milestoning/QueryBuilderMilestoningState.d.ts.map +1 -1
  209. package/lib/stores/milestoning/QueryBuilderMilestoningState.js +62 -3
  210. package/lib/stores/milestoning/QueryBuilderMilestoningState.js.map +1 -1
  211. package/lib/stores/milestoning/QueryBuilderProcessingTemporalMilestoningImplementation.d.ts +2 -0
  212. package/lib/stores/milestoning/QueryBuilderProcessingTemporalMilestoningImplementation.d.ts.map +1 -1
  213. package/lib/stores/milestoning/QueryBuilderProcessingTemporalMilestoningImplementation.js +8 -1
  214. package/lib/stores/milestoning/QueryBuilderProcessingTemporalMilestoningImplementation.js.map +1 -1
  215. package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts +1 -0
  216. package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts.map +1 -1
  217. package/lib/stores/shared/ValueSpecificationEditorHelper.js +7 -1
  218. package/lib/stores/shared/ValueSpecificationEditorHelper.js.map +1 -1
  219. package/package.json +4 -4
  220. package/src/__lib__/QueryBuilderDocumentation.ts +2 -0
  221. package/src/components/QueryBuilder.tsx +44 -0
  222. package/src/components/QueryBuilderConstantExpressionPanel.tsx +13 -4
  223. package/src/components/QueryBuilderParametersPanel.tsx +55 -0
  224. package/src/components/QueryBuilderSideBar.tsx +0 -42
  225. package/src/components/explorer/QueryBuilderMilestoningParameterEditor.tsx +114 -0
  226. package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +143 -78
  227. package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +445 -19
  228. package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +134 -21
  229. package/src/components/result/QueryBuilderResultPanel.tsx +9 -1
  230. package/src/components/shared/QueryBuilderVariableSelector.tsx +22 -0
  231. package/src/graph-manager/QueryBuilderConfig.ts +6 -0
  232. package/src/stores/QueryBuilderValueSpecificationHelper.ts +4 -1
  233. package/src/stores/QueryLoaderState.ts +1 -0
  234. package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +11 -0
  235. package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Percentile.ts +6 -2
  236. package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts +1 -0
  237. package/src/stores/filter/QueryBuilderFilterStateBuilder.ts +1 -0
  238. package/src/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.ts +23 -0
  239. package/src/stores/milestoning/QueryBuilderBusinessTemporalMilestoningImplementation.ts +13 -0
  240. package/src/stores/milestoning/QueryBuilderMilestoningHelper.ts +45 -0
  241. package/src/stores/milestoning/QueryBuilderMilestoningImplementation.ts +3 -0
  242. package/src/stores/milestoning/QueryBuilderMilestoningState.ts +95 -7
  243. package/src/stores/milestoning/QueryBuilderProcessingTemporalMilestoningImplementation.ts +13 -0
  244. package/src/stores/shared/ValueSpecificationEditorHelper.ts +11 -0
  245. package/tsconfig.json +1 -1
  246. package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts.map +0 -1
  247. package/lib/components/explorer/QueryBuilderMilestoningEditor.js +0 -102
  248. package/lib/components/explorer/QueryBuilderMilestoningEditor.js.map +0 -1
  249. package/src/components/explorer/QueryBuilderMilestoningEditor.tsx +0 -364
@@ -1 +1 @@
1
- {"version":3,"file":"ValueSpecificationEditorHelper.d.ts","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationEditorHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,SAAS,EACd,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,IAAI,EAET,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,kBAAkB,EAElB,WAAW,EAMX,sBAAsB,EACtB,aAAa,EACb,cAAc,EAEd,wBAAwB,EACxB,cAAc,EAOf,MAAM,qBAAqB,CAAC;AAgB7B,eAAO,MAAM,iCAAiC,sBACzB,MAAM,sBACL,IAAI,KACvB,wBAOF,CAAC;AACF,eAAO,MAAM,2BAA2B,UAC/B,SAAS,QACV,cAAc,SACb,OAAO,mBACG,eAAe,KAC/B,sBAQF,CAAC;AAEF,eAAO,MAAM,qCAAqC,kBACjC,aAAa,SACrB,SAAS,mBACC,eAAe,YACtB;IACR,gCAAgC,CAAC,EAAE,OAAO,CAAC;CAC5C,KACA,kBAgCF,CAAC;AAEF,eAAO,MAAM,6BAA6B,gBAC3B,WAAW,KACvB,MACyE,CAAC;AAE7E,eAAO,MAAM,yBAAyB,UAC7B,SAAS,QACV,IAAI,mBACO,eAAe,kCACA,OAAO,KACtC,kBA+DF,CAAC;AAEF,eAAO,MAAM,6BAA6B,UACjC,SAAS,mBACC,eAAe,KAC/B,cAgBF,CAAC;AAEF,eAAO,MAAM,gCAAgC,eAC/B,iBAAiB,mBACZ,eAAe,KAC/B,SAIA,CAAC;AAEJ,eAAO,MAAM,mCAAmC,cACnC,kBAAkB,SACtB,SAAS,mBACC,eAAe,YACtB;IACR,gCAAgC,CAAC,EAAE,OAAO,CAAC;CAC5C,KACA,kBAAkB,GAAG,SAyCvB,CAAC;AAEF,eAAO,MAAM,gCAAgC,uBACvB,kBAAkB,KACrC,MAAM,GAAG,SAkBX,CAAC;AAEF,eAAO,MAAM,kBAAkB,QACxB,kBAAkB,SAChB,SAAS,KACf,OAeF,CAAC;AAEF,eAAO,MAAM,mCAAmC,iBAChC,IAAI,SACX,MAAM,kBACG,eAAe,KAC9B,sBAAsB,GAAG,IAyD3B,CAAC"}
1
+ {"version":3,"file":"ValueSpecificationEditorHelper.d.ts","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationEditorHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,SAAS,EACd,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,IAAI,EAET,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,kBAAkB,EAElB,WAAW,EAMX,sBAAsB,EACtB,aAAa,EACb,cAAc,EAEd,wBAAwB,EACxB,cAAc,EAOf,MAAM,qBAAqB,CAAC;AAiB7B,eAAO,MAAM,iCAAiC,sBACzB,MAAM,sBACL,IAAI,KACvB,wBAOF,CAAC;AACF,eAAO,MAAM,2BAA2B,UAC/B,SAAS,QACV,cAAc,SACb,OAAO,mBACG,eAAe,KAC/B,sBAQF,CAAC;AAEF,eAAO,MAAM,uBAAuB,uBACd,kBAAkB,mBACrB,eAAe,KAC/B,kBAKF,CAAC;AAEF,eAAO,MAAM,qCAAqC,kBACjC,aAAa,SACrB,SAAS,mBACC,eAAe,YACtB;IACR,gCAAgC,CAAC,EAAE,OAAO,CAAC;CAC5C,KACA,kBAgCF,CAAC;AAEF,eAAO,MAAM,6BAA6B,gBAC3B,WAAW,KACvB,MACyE,CAAC;AAE7E,eAAO,MAAM,yBAAyB,UAC7B,SAAS,QACV,IAAI,mBACO,eAAe,kCACA,OAAO,KACtC,kBA+DF,CAAC;AAEF,eAAO,MAAM,6BAA6B,UACjC,SAAS,mBACC,eAAe,KAC/B,cAgBF,CAAC;AAEF,eAAO,MAAM,gCAAgC,eAC/B,iBAAiB,mBACZ,eAAe,KAC/B,SAIA,CAAC;AAEJ,eAAO,MAAM,mCAAmC,cACnC,kBAAkB,SACtB,SAAS,mBACC,eAAe,YACtB;IACR,gCAAgC,CAAC,EAAE,OAAO,CAAC;CAC5C,KACA,kBAAkB,GAAG,SAyCvB,CAAC;AAEF,eAAO,MAAM,gCAAgC,uBACvB,kBAAkB,KACrC,MAAM,GAAG,SAkBX,CAAC;AAEF,eAAO,MAAM,kBAAkB,QACxB,kBAAkB,SAChB,SAAS,KACf,OAeF,CAAC;AAEF,eAAO,MAAM,mCAAmC,iBAChC,IAAI,SACX,MAAM,kBACG,eAAe,KAC9B,sBAAsB,GAAG,IAyD3B,CAAC"}
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { VariableExpression, CollectionInstanceValue, Enumeration, EnumValueExplicitReference, EnumValueInstanceValue, GenericType, GenericTypeExplicitReference, getEnumValue, PrimitiveInstanceValue, PrimitiveType, PRIMITIVE_TYPE, INTERNAL__PropagatedValue, SimpleFunctionExpression, LambdaFunction, FunctionType, PackageableElementExplicitReference, Multiplicity, CORE_PURE_PATH, buildRawLambdaFromLambdaFunction, getValueSpecificationReturnType, } from '@finos/legend-graph';
17
- import { Randomizer, UnsupportedOperationError, returnUndefOnError, } from '@finos/legend-shared';
17
+ import { Randomizer, UnsupportedOperationError, deepClone, returnUndefOnError, } from '@finos/legend-shared';
18
18
  import { generateDefaultValueForPrimitiveType } from '../QueryBuilderValueSpecificationHelper.js';
19
19
  import { instanceValue_setValues, valueSpecification_setGenericType, } from './ValueSpecificationModifierHelper.js';
20
20
  import { QUERY_BUILDER_PURE_PATH, QUERY_BUILDER_SUPPORTED_FUNCTIONS, } from '../../graph/QueryBuilderMetaModelConst.js';
@@ -28,6 +28,12 @@ export const buildPrimitiveInstanceValue = (graph, type, value, observerContext)
28
28
  instanceValue_setValues(instance, [value], observerContext);
29
29
  return instance;
30
30
  };
31
+ export const cloneValueSpecification = (valueSpecification, observerContext) => {
32
+ const copy = deepClone(valueSpecification);
33
+ copy.genericType = valueSpecification.genericType;
34
+ copy.multiplicity = valueSpecification.multiplicity;
35
+ return copy;
36
+ };
31
37
  export const createMockPrimitiveValueSpecification = (primitiveType, graph, observerContext, options) => {
32
38
  const primitiveTypeName = primitiveType.name;
33
39
  if (options?.useCurrentDateDependentFunctions) {
@@ -1 +1 @@
1
- {"version":3,"file":"ValueSpecificationEditorHelper.js","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationEditorHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAQL,kBAAkB,EAClB,uBAAuB,EACvB,WAAW,EACX,0BAA0B,EAC1B,sBAAsB,EACtB,WAAW,EACX,4BAA4B,EAC5B,YAAY,EACZ,sBAAsB,EACtB,aAAa,EACb,cAAc,EACd,yBAAyB,EACzB,wBAAwB,EACxB,cAAc,EACd,YAAY,EACZ,mCAAmC,EACnC,YAAY,EACZ,cAAc,EACd,gCAAgC,EAChC,+BAA+B,GAChC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,UAAU,EACV,yBAAyB,EACzB,kBAAkB,GACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,O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C,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,EACzC,CAAC;oBACD,OAAO,IAAI,CAAC;gBACd,CAAC;gBACD,MAAM,GAAG,IAAI,sBAAsB,CACjC,4BAA4B,CAAC,MAAM,CAAC,IAAI,WAAW,CAAC,YAAY,CAAC,CAAC,CACnE,CAAC;gBACF,uBAAuB,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,CAAC;gBACzD,MAAM;YACR,CAAC;YACD;gBACE,yCAAyC;gBACzC,OAAO,IAAI,CAAC;QAChB,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
1
+ {"version":3,"file":"ValueSpecificationEditorHelper.js","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationEditorHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAQL,kBAAkB,EAClB,uBAAuB,EACvB,WAAW,EACX,0BAA0B,EAC1B,sBAAsB,EACtB,WAAW,EACX,4BAA4B,EAC5B,YAAY,EACZ,sBAAsB,EACtB,aAAa,EACb,cAAc,EACd,yBAAyB,EACzB,wBAAwB,EACxB,cAAc,EACd,YAAY,EACZ,mCAAmC,EACnC,YAAY,EACZ,cAAc,EACd,gCAAgC,EAChC,+BAA+B,GAChC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,UAAU,EACV,yBAAyB,EACzB,SAAS,EACT,kBAAkB,GACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EACL,uBAAuB,EACvB,iCAAiC,GAClC,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,uBAAuB,EACvB,iCAAiC,GAClC,MAAM,2CAA2C,CAAC;AAEnD,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAC/C,iBAAyB,EACzB,kBAAwB,EACE,EAAE;IAC5B,MAAM,cAAc,GAAG,IAA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C,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,EACzC,CAAC;oBACD,OAAO,IAAI,CAAC;gBACd,CAAC;gBACD,MAAM,GAAG,IAAI,sBAAsB,CACjC,4BAA4B,CAAC,MAAM,CAAC,IAAI,WAAW,CAAC,YAAY,CAAC,CAAC,CACnE,CAAC;gBACF,uBAAuB,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,CAAC;gBACzD,MAAM;YACR,CAAC;YACD;gBACE,yCAAyC;gBACzC,OAAO,IAAI,CAAC;QAChB,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-query-builder",
3
- "version": "4.14.47",
3
+ "version": "4.14.49",
4
4
  "description": "Legend query builder core",
5
5
  "keywords": [
6
6
  "legend",
@@ -42,10 +42,10 @@
42
42
  "test:watch": "jest --watch"
43
43
  },
44
44
  "dependencies": {
45
- "@finos/legend-application": "15.1.7",
46
- "@finos/legend-art": "7.1.35",
45
+ "@finos/legend-application": "15.1.9",
46
+ "@finos/legend-art": "7.1.37",
47
47
  "@finos/legend-graph": "31.10.3",
48
- "@finos/legend-lego": "1.2.37",
48
+ "@finos/legend-lego": "1.2.39",
49
49
  "@finos/legend-server-depot": "6.0.44",
50
50
  "@finos/legend-shared": "10.0.39",
51
51
  "@finos/legend-storage": "3.0.89",
@@ -20,4 +20,6 @@ export enum QUERY_BUILDER_DOCUMENTATION_KEY {
20
20
  QUESTION_HOW_TO_ADD_CONSTANTS_TO_QUERY = 'question.how-to-add-constants-to-query',
21
21
  QUESTION_HOW_TO_USE_LOCAL_GRID_MODE = 'question.how-to-use-local-grid-mode',
22
22
  TUTORIAL_QUERY_BUILDER = 'tutorial.query.builder',
23
+ FREQUENTLY_ASKED_QUESTIONS = 'frequently.asked.questions',
24
+ SUPPORT_TICKETS_LINK = 'support.tickets.link',
23
25
  }
@@ -46,6 +46,7 @@ import {
46
46
  clsx,
47
47
  DocumentationIcon,
48
48
  CodeIcon,
49
+ QuestionIcon,
49
50
  } from '@finos/legend-art';
50
51
  import { QueryBuilderFilterPanel } from './filter/QueryBuilderFilterPanel.js';
51
52
  import { QueryBuilderExplorerPanel } from './explorer/QueryBuilderExplorerPanel.js';
@@ -442,6 +443,14 @@ export const QueryBuilder = observer(
442
443
  const queryDocEntry = applicationStore.documentationService.getDocEntry(
443
444
  QUERY_BUILDER_DOCUMENTATION_KEY.TUTORIAL_QUERY_BUILDER,
444
445
  );
446
+ const frequentlyAskedQuestionEntry =
447
+ applicationStore.documentationService.getDocEntry(
448
+ QUERY_BUILDER_DOCUMENTATION_KEY.FREQUENTLY_ASKED_QUESTIONS,
449
+ );
450
+ const supportTicketsEntry =
451
+ applicationStore.documentationService.getDocEntry(
452
+ QUERY_BUILDER_DOCUMENTATION_KEY.SUPPORT_TICKETS_LINK,
453
+ );
445
454
  const openQueryTutorial = (): void => {
446
455
  if (queryDocEntry?.url) {
447
456
  applicationStore.navigationService.navigator.visitAddress(
@@ -449,6 +458,21 @@ export const QueryBuilder = observer(
449
458
  );
450
459
  }
451
460
  };
461
+ const openFrequentlyAskedQuestions = (): void => {
462
+ if (frequentlyAskedQuestionEntry?.url) {
463
+ applicationStore.navigationService.navigator.visitAddress(
464
+ frequentlyAskedQuestionEntry.url,
465
+ );
466
+ }
467
+ };
468
+ const openSupportTickets = (): void => {
469
+ if (supportTicketsEntry?.url) {
470
+ applicationStore.navigationService.navigator.visitAddress(
471
+ supportTicketsEntry.url,
472
+ );
473
+ }
474
+ };
475
+
452
476
  const toggleAssistant = (): void =>
453
477
  applicationStore.assistantService.toggleAssistant();
454
478
 
@@ -893,6 +917,26 @@ export const QueryBuilder = observer(
893
917
  </MenuContentItemLabel>
894
918
  </MenuContentItem>
895
919
  )}
920
+ {frequentlyAskedQuestionEntry && (
921
+ <MenuContentItem onClick={openFrequentlyAskedQuestions}>
922
+ <MenuContentItemIcon>
923
+ <QuestionIcon />
924
+ </MenuContentItemIcon>
925
+ <MenuContentItemLabel>
926
+ Frequently Asked Questions
927
+ </MenuContentItemLabel>
928
+ </MenuContentItem>
929
+ )}
930
+ {supportTicketsEntry && (
931
+ <MenuContentItem onClick={openSupportTickets}>
932
+ <MenuContentItemIcon>
933
+ <QuestionIcon />
934
+ </MenuContentItemIcon>
935
+ <MenuContentItemLabel>
936
+ Open Support Tickets
937
+ </MenuContentItemLabel>
938
+ </MenuContentItem>
939
+ )}
896
940
  <MenuContentItem onClick={toggleAssistant}>
897
941
  <MenuContentItemIcon>
898
942
  {!applicationStore.assistantService.isHidden ? (
@@ -43,7 +43,6 @@ import {
43
43
  isValidIdentifier,
44
44
  InstanceValue,
45
45
  } from '@finos/legend-graph';
46
- import { deepClone } from '@finos/legend-shared';
47
46
  import { observer } from 'mobx-react-lite';
48
47
  import type { QueryBuilderState } from '../stores/QueryBuilderState.js';
49
48
  import {
@@ -52,7 +51,10 @@ import {
52
51
  QueryBuilderCalculatedConstantExpressionState,
53
52
  cloneQueryBuilderConstantLambdaEditorState,
54
53
  } from '../stores/QueryBuilderConstantsState.js';
55
- import { buildDefaultInstanceValue } from '../stores/shared/ValueSpecificationEditorHelper.js';
54
+ import {
55
+ buildDefaultInstanceValue,
56
+ cloneValueSpecification,
57
+ } from '../stores/shared/ValueSpecificationEditorHelper.js';
56
58
  import { BasicValueSpecificationEditor } from './shared/BasicValueSpecificationEditor.js';
57
59
  import { QUERY_BUILDER_TEST_ID } from '../__lib__/QueryBuilderTesting.js';
58
60
  import { QUERY_BUILDER_DOCUMENTATION_KEY } from '../__lib__/QueryBuilderDocumentation.js';
@@ -104,7 +106,9 @@ const QueryBuilderSimpleConstantExpressionEditor = observer(
104
106
 
105
107
  // Value
106
108
  const stateValue = constantState.value;
107
- const [selectedValue, setSelectedValue] = useState(deepClone(stateValue));
109
+ const [selectedValue, setSelectedValue] = useState(
110
+ cloneValueSpecification(stateValue, queryBuilderState.observerContext),
111
+ );
108
112
  const [shouldFocusOnValue, setShouldFocusOnValue] =
109
113
  useState<boolean>(!isCreating);
110
114
  const handleValueInputRef = useCallback(
@@ -259,7 +263,12 @@ const QueryBuilderSimpleConstantExpressionEditor = observer(
259
263
  <BasicValueSpecificationEditor
260
264
  valueSpecification={selectedValue}
261
265
  setValueSpecification={(val: ValueSpecification): void => {
262
- setSelectedValue(deepClone(val));
266
+ setSelectedValue(
267
+ cloneValueSpecification(
268
+ val,
269
+ queryBuilderState.observerContext,
270
+ ),
271
+ );
263
272
  }}
264
273
  graph={queryBuilderState.graphManagerState.graph}
265
274
  obseverContext={queryBuilderState.observerContext}
@@ -29,9 +29,11 @@ import {
29
29
  ModalFooterButton,
30
30
  PanelFormValidatedTextField,
31
31
  QuestionCircleIcon,
32
+ PanelFormSection,
32
33
  } from '@finos/legend-art';
33
34
  import {
34
35
  type Type,
36
+ type ValueSpecification,
35
37
  VariableExpression,
36
38
  GenericTypeExplicitReference,
37
39
  GenericType,
@@ -53,6 +55,10 @@ import {
53
55
  getPackageableElementOptionFormatter,
54
56
  type PackageableElementOption,
55
57
  } from '@finos/legend-lego/graph-editor';
58
+ import { deepClone } from '@finos/legend-shared';
59
+ import { BasicValueSpecificationEditor } from './shared/BasicValueSpecificationEditor.js';
60
+ import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../graph/QueryBuilderMetaModelConst.js';
61
+ import { createSupportedFunctionExpression } from '../stores/shared/ValueSpecificationEditorHelper.js';
56
62
 
57
63
  type MultiplicityOption = { label: string; value: Multiplicity };
58
64
 
@@ -118,6 +124,13 @@ const VariableExpressionEditor = observer(
118
124
  const nameInputRef = useCallback((ref: HTMLInputElement | null): void => {
119
125
  ref?.focus();
120
126
  }, []);
127
+ const [defaultMilestoningValue, setDefaultMilestoningValue] = useState(
128
+ deepClone(lambdaParameterState.value),
129
+ );
130
+ const isMilestoningParameter =
131
+ queryBuilderState.milestoningState.isMilestoningParameter(
132
+ lambdaParameterState.parameter,
133
+ );
121
134
 
122
135
  const getValidationMessage = (input: string): string | undefined =>
123
136
  !hasEditedName
@@ -146,6 +159,13 @@ const VariableExpressionEditor = observer(
146
159
  if (isCreating) {
147
160
  queryParametersState.addParameter(lambdaParameterState);
148
161
  }
162
+ if (isMilestoningParameter) {
163
+ queryBuilderState.milestoningState.updateMilestoningParameterValue(
164
+ lambdaParameterState.parameter,
165
+ defaultMilestoningValue,
166
+ );
167
+ }
168
+
149
169
  handleCancel();
150
170
  };
151
171
 
@@ -231,6 +251,41 @@ const VariableExpressionEditor = observer(
231
251
  }
232
252
  />
233
253
  </div>
254
+ {isMilestoningParameter && defaultMilestoningValue && (
255
+ <PanelFormSection>
256
+ <div className="panel__content__form__section__header__label">
257
+ Value
258
+ </div>
259
+ <div className="panel__content__form__section__header__prompt">
260
+ Choose a default value for this milestoning parameter
261
+ </div>
262
+ <div className="query-builder__variable-editor">
263
+ <BasicValueSpecificationEditor
264
+ valueSpecification={defaultMilestoningValue}
265
+ setValueSpecification={(val: ValueSpecification): void => {
266
+ setDefaultMilestoningValue(deepClone(val));
267
+ }}
268
+ graph={queryBuilderState.graphManagerState.graph}
269
+ obseverContext={queryBuilderState.observerContext}
270
+ typeCheckOption={{
271
+ expectedType: selectedType.value,
272
+ match: selectedType.value === PrimitiveType.DATETIME,
273
+ }}
274
+ resetValue={() => {
275
+ const now = createSupportedFunctionExpression(
276
+ QUERY_BUILDER_SUPPORTED_FUNCTIONS.NOW,
277
+ PrimitiveType.DATETIME,
278
+ );
279
+ setDefaultMilestoningValue(now);
280
+ queryBuilderState.milestoningState.updateMilestoningParameterValue(
281
+ lambdaParameterState.parameter,
282
+ now,
283
+ );
284
+ }}
285
+ />
286
+ </div>
287
+ </PanelFormSection>
288
+ )}
234
289
  </ModalBody>
235
290
  <ModalFooter>
236
291
  <ModalFooterButton
@@ -18,7 +18,6 @@ import {
18
18
  CustomSelectorInput,
19
19
  createFilter,
20
20
  CogIcon,
21
- ClockIcon,
22
21
  clsx,
23
22
  PanelHeader,
24
23
  compareLabelFn,
@@ -34,7 +33,6 @@ import {
34
33
  LATEST_DATE,
35
34
  PrimitiveInstanceValue,
36
35
  VariableExpression,
37
- getMilestoneTemporalStereotype,
38
36
  PackageableElementExplicitReference,
39
37
  RuntimePointer,
40
38
  VARIABLE_REFERENCE_TOKEN,
@@ -47,7 +45,6 @@ import {
47
45
  getPackageableElementOptionFormatter,
48
46
  type PackageableElementOption,
49
47
  } from '@finos/legend-lego/graph-editor';
50
- import { MilestoningParametersEditor } from './explorer/QueryBuilderMilestoningEditor.js';
51
48
  import type { QueryBuilder_LegendApplicationPlugin_Extension } from '../stores/QueryBuilder_LegendApplicationPlugin_Extension.js';
52
49
 
53
50
  export const getParameterValue = (
@@ -75,23 +72,11 @@ const generateClassLabel = (
75
72
  val: Class,
76
73
  queryBuilderState: QueryBuilderState,
77
74
  ): React.ReactNode => {
78
- const milestoneStereotype = getMilestoneTemporalStereotype(
79
- val,
80
- queryBuilderState.graphManagerState.graph,
81
- );
82
-
83
75
  const isDeprecatedClass = isElementDeprecated(
84
76
  val,
85
77
  queryBuilderState.graphManagerState.graph,
86
78
  );
87
79
 
88
- let milestoningTooltipText: string | undefined;
89
- if (milestoneStereotype) {
90
- milestoningTooltipText = queryBuilderState.milestoningState
91
- .getMilestoningImplementation(milestoneStereotype)
92
- .getMilestoningToolTipText();
93
- }
94
-
95
80
  return (
96
81
  <div
97
82
  className={clsx('query-builder__setup__class-option-label', {
@@ -102,12 +87,6 @@ const generateClassLabel = (
102
87
  <div className="query-builder__setup__class-option-label__name">
103
88
  {val.name}
104
89
  </div>
105
- {milestoningTooltipText && (
106
- <ClockIcon
107
- className="query-builder__setup__class-option-label__milestoning"
108
- title={`This class is milestoned:\n${milestoningTooltipText}`}
109
- />
110
- )}
111
90
  </div>
112
91
  );
113
92
  };
@@ -120,7 +99,6 @@ export const QueryBuilderClassSelector = observer(
120
99
  noMatchMessage?: string | undefined;
121
100
  }) => {
122
101
  const { queryBuilderState, classes, onClassChange, noMatchMessage } = props;
123
- const milestoningState = queryBuilderState.milestoningState;
124
102
  const applicationStore = useApplicationStore();
125
103
 
126
104
  // class
@@ -151,10 +129,6 @@ export const QueryBuilderClassSelector = observer(
151
129
  onClassChange?.(val.value);
152
130
  };
153
131
 
154
- // milestoning
155
- const showMilestoningEditor = (): void =>
156
- milestoningState.setShowMilestoningEditor(true);
157
-
158
132
  return (
159
133
  <div className="query-builder__setup__config-group query-builder__setup__config-group--class">
160
134
  <div className="query-builder__setup__config-group__item ">
@@ -192,22 +166,6 @@ export const QueryBuilderClassSelector = observer(
192
166
  .TEMPORARY__isLightColorThemeEnabled,
193
167
  })}
194
168
  />
195
- {queryBuilderState.isQuerySupported && (
196
- <button
197
- className="btn--dark btn__icon--dark query-builder__setup__milestoning"
198
- tabIndex={-1}
199
- onClick={showMilestoningEditor}
200
- disabled={!milestoningState.isMilestonedQuery}
201
- title="Edit Milestoning Parameters"
202
- >
203
- <ClockIcon />
204
- </button>
205
- )}
206
- {milestoningState.isMilestonedQuery && (
207
- <MilestoningParametersEditor
208
- queryBuilderState={queryBuilderState}
209
- />
210
- )}
211
169
  </div>
212
170
  </div>
213
171
  );
@@ -0,0 +1,114 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { observer } from 'mobx-react-lite';
18
+ import type { QueryBuilderState } from '../../stores/QueryBuilderState.js';
19
+ import { useCallback } from 'react';
20
+ import {
21
+ type ValueSpecification,
22
+ GenericType,
23
+ GenericTypeExplicitReference,
24
+ observe_PrimitiveInstanceValue,
25
+ PrimitiveInstanceValue,
26
+ PRIMITIVE_TYPE,
27
+ PrimitiveType,
28
+ } from '@finos/legend-graph';
29
+ import { useDrop } from 'react-dnd';
30
+ import { PanelEntryDropZonePlaceholder } from '@finos/legend-art';
31
+ import { generateDefaultValueForPrimitiveType } from '../../stores/QueryBuilderValueSpecificationHelper.js';
32
+ import {
33
+ BasicValueSpecificationEditor,
34
+ type QueryBuilderVariableDragSource,
35
+ QUERY_BUILDER_VARIABLE_DND_TYPE,
36
+ } from '../shared/BasicValueSpecificationEditor.js';
37
+ import { instanceValue_setValues } from '../../stores/shared/ValueSpecificationModifierHelper.js';
38
+
39
+ export const MilestoningParameterEditor = observer(
40
+ (props: {
41
+ queryBuilderState: QueryBuilderState;
42
+ parameter: ValueSpecification;
43
+ setParameter: (val: ValueSpecification) => void;
44
+ }) => {
45
+ const { queryBuilderState, parameter, setParameter } = props;
46
+ const handleDrop = useCallback(
47
+ (item: QueryBuilderVariableDragSource): void => {
48
+ setParameter(item.variable);
49
+ },
50
+ [setParameter],
51
+ );
52
+ const [{ isDragOver }, dropConnector] = useDrop<
53
+ QueryBuilderVariableDragSource,
54
+ void,
55
+ { isDragOver: boolean }
56
+ >(
57
+ () => ({
58
+ accept: [QUERY_BUILDER_VARIABLE_DND_TYPE],
59
+ drop: (item, monitor): void => {
60
+ if (!monitor.didDrop()) {
61
+ handleDrop(item);
62
+ }
63
+ },
64
+ collect: (monitor): { isDragOver: boolean } => ({
65
+ isDragOver: monitor.isOver({
66
+ shallow: true,
67
+ }),
68
+ }),
69
+ }),
70
+ [handleDrop],
71
+ );
72
+ const resetMilestoningParameter = (): void => {
73
+ const param = observe_PrimitiveInstanceValue(
74
+ new PrimitiveInstanceValue(
75
+ GenericTypeExplicitReference.create(
76
+ new GenericType(PrimitiveType.STRICTDATE),
77
+ ),
78
+ ),
79
+ queryBuilderState.observerContext,
80
+ );
81
+ instanceValue_setValues(
82
+ param,
83
+ [generateDefaultValueForPrimitiveType(PRIMITIVE_TYPE.STRICTDATE)],
84
+ queryBuilderState.observerContext,
85
+ );
86
+ setParameter(param);
87
+ };
88
+
89
+ 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>
111
+ </div>
112
+ );
113
+ },
114
+ );