@finos/legend-query-builder 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (348) hide show
  1. package/lib/components/QueryBuilder.d.ts.map +1 -1
  2. package/lib/components/QueryBuilder.js +14 -4
  3. package/lib/components/QueryBuilder.js.map +1 -1
  4. package/lib/components/QueryBuilderDiffPanel.d.ts +22 -0
  5. package/lib/components/QueryBuilderDiffPanel.d.ts.map +1 -0
  6. package/lib/components/QueryBuilderDiffPanel.js +103 -0
  7. package/lib/components/QueryBuilderDiffPanel.js.map +1 -0
  8. package/lib/components/QueryBuilderParametersPanel.js +3 -3
  9. package/lib/components/QueryBuilderParametersPanel.js.map +1 -1
  10. package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
  11. package/lib/components/QueryBuilderResultPanel.js +8 -9
  12. package/lib/components/QueryBuilderResultPanel.js.map +1 -1
  13. package/lib/components/QueryBuilderSideBar.js +1 -1
  14. package/lib/components/QueryBuilderSideBar.js.map +1 -1
  15. package/lib/components/ServiceQuerySetupUtils.d.ts +23 -0
  16. package/lib/components/ServiceQuerySetupUtils.d.ts.map +1 -0
  17. package/lib/components/ServiceQuerySetupUtils.js +25 -0
  18. package/lib/components/ServiceQuerySetupUtils.js.map +1 -0
  19. package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts.map +1 -1
  20. package/lib/components/explorer/QueryBuilderExplorerPanel.js +4 -10
  21. package/lib/components/explorer/QueryBuilderExplorerPanel.js.map +1 -1
  22. package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts.map +1 -1
  23. package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js +8 -6
  24. package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js.map +1 -1
  25. package/lib/components/explorer/{QueryBuilderMilestoneEditor.d.ts → QueryBuilderMilestoningEditor.d.ts} +1 -1
  26. package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts.map +1 -0
  27. package/lib/components/explorer/{QueryBuilderMilestoneEditor.js → QueryBuilderMilestoningEditor.js} +9 -9
  28. package/lib/components/explorer/QueryBuilderMilestoningEditor.js.map +1 -0
  29. package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts.map +1 -1
  30. package/lib/components/explorer/QueryBuilderPropertySearchPanel.js +69 -61
  31. package/lib/components/explorer/QueryBuilderPropertySearchPanel.js.map +1 -1
  32. package/lib/components/fetch-structure/QueryBuilderProjectionPanel.d.ts.map +1 -1
  33. package/lib/components/fetch-structure/QueryBuilderProjectionPanel.js +1 -3
  34. package/lib/components/fetch-structure/QueryBuilderProjectionPanel.js.map +1 -1
  35. package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +1 -1
  36. package/lib/components/filter/QueryBuilderFilterPanel.js +3 -7
  37. package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
  38. package/lib/components/shared/QueryBuilderPropertyInfoTooltip.d.ts.map +1 -1
  39. package/lib/components/shared/QueryBuilderPropertyInfoTooltip.js +7 -2
  40. package/lib/components/shared/QueryBuilderPropertyInfoTooltip.js.map +1 -1
  41. package/lib/graphManager/QueryBuilderHashUtils.d.ts +84 -0
  42. package/lib/graphManager/QueryBuilderHashUtils.d.ts.map +1 -0
  43. package/lib/graphManager/QueryBuilderHashUtils.js +91 -0
  44. package/lib/graphManager/QueryBuilderHashUtils.js.map +1 -0
  45. package/lib/index.css +2 -2
  46. package/lib/index.css.map +1 -1
  47. package/lib/index.d.ts +3 -0
  48. package/lib/index.d.ts.map +1 -1
  49. package/lib/index.js +3 -0
  50. package/lib/index.js.map +1 -1
  51. package/lib/package.json +6 -4
  52. package/lib/stores/QueryBuilderChangeDetectionState.d.ts +26 -5
  53. package/lib/stores/QueryBuilderChangeDetectionState.d.ts.map +1 -1
  54. package/lib/stores/QueryBuilderChangeDetectionState.js +82 -10
  55. package/lib/stores/QueryBuilderChangeDetectionState.js.map +1 -1
  56. package/lib/stores/QueryBuilderConfig.d.ts +1 -0
  57. package/lib/stores/QueryBuilderConfig.d.ts.map +1 -1
  58. package/lib/stores/QueryBuilderConfig.js +1 -0
  59. package/lib/stores/QueryBuilderConfig.js.map +1 -1
  60. package/lib/stores/QueryBuilderMilestoningState.d.ts +3 -1
  61. package/lib/stores/QueryBuilderMilestoningState.d.ts.map +1 -1
  62. package/lib/stores/QueryBuilderMilestoningState.js +10 -0
  63. package/lib/stores/QueryBuilderMilestoningState.js.map +1 -1
  64. package/lib/stores/QueryBuilderParametersState.d.ts +3 -1
  65. package/lib/stores/QueryBuilderParametersState.d.ts.map +1 -1
  66. package/lib/stores/QueryBuilderParametersState.js +10 -1
  67. package/lib/stores/QueryBuilderParametersState.js.map +1 -1
  68. package/lib/stores/QueryBuilderPropertyEditorState.d.ts +5 -3
  69. package/lib/stores/QueryBuilderPropertyEditorState.d.ts.map +1 -1
  70. package/lib/stores/QueryBuilderPropertyEditorState.js +15 -5
  71. package/lib/stores/QueryBuilderPropertyEditorState.js.map +1 -1
  72. package/lib/stores/QueryBuilderResultState.d.ts +5 -3
  73. package/lib/stores/QueryBuilderResultState.d.ts.map +1 -1
  74. package/lib/stores/QueryBuilderResultState.js +26 -6
  75. package/lib/stores/QueryBuilderResultState.js.map +1 -1
  76. package/lib/stores/QueryBuilderState.d.ts +3 -5
  77. package/lib/stores/QueryBuilderState.d.ts.map +1 -1
  78. package/lib/stores/QueryBuilderState.js +32 -22
  79. package/lib/stores/QueryBuilderState.js.map +1 -1
  80. package/lib/stores/QueryBuilderStateTestUtils.js +1 -1
  81. package/lib/stores/QueryBuilderStateTestUtils.js.map +1 -1
  82. package/lib/stores/QueryBuilderTextEditorState.js +1 -1
  83. package/lib/stores/QueryBuilderTextEditorState.js.map +1 -1
  84. package/lib/stores/QueryBuilderUnsupportedQueryState.d.ts +4 -2
  85. package/lib/stores/QueryBuilderUnsupportedQueryState.d.ts.map +1 -1
  86. package/lib/stores/QueryBuilderUnsupportedQueryState.js +10 -1
  87. package/lib/stores/QueryBuilderUnsupportedQueryState.js.map +1 -1
  88. package/lib/stores/ServiceInfo.d.ts +28 -0
  89. package/lib/stores/ServiceInfo.d.ts.map +1 -0
  90. package/lib/stores/ServiceInfo.js +34 -0
  91. package/lib/stores/ServiceInfo.js.map +1 -0
  92. package/lib/stores/explorer/QueryBuilderExplorerState.d.ts +6 -6
  93. package/lib/stores/explorer/QueryBuilderExplorerState.d.ts.map +1 -1
  94. package/lib/stores/explorer/QueryBuilderExplorerState.js +19 -14
  95. package/lib/stores/explorer/QueryBuilderExplorerState.js.map +1 -1
  96. package/lib/stores/explorer/QueryBuilderPropertySearchState.d.ts +36 -17
  97. package/lib/stores/explorer/QueryBuilderPropertySearchState.d.ts.map +1 -1
  98. package/lib/stores/explorer/QueryBuilderPropertySearchState.js +203 -161
  99. package/lib/stores/explorer/QueryBuilderPropertySearchState.js.map +1 -1
  100. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts +5 -3
  101. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts.map +1 -1
  102. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js +1 -0
  103. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js.map +1 -1
  104. package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.d.ts +1 -1
  105. package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.d.ts.map +1 -1
  106. package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.js +3 -3
  107. package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.js.map +1 -1
  108. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts +3 -1
  109. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts.map +1 -1
  110. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js +9 -1
  111. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js.map +1 -1
  112. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.d.ts +7 -5
  113. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.d.ts.map +1 -1
  114. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js +20 -5
  115. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js.map +1 -1
  116. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.d.ts +7 -4
  117. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.d.ts.map +1 -1
  118. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.js +20 -5
  119. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.js.map +1 -1
  120. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.d.ts +6 -5
  121. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.d.ts.map +1 -1
  122. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.js +14 -9
  123. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.js.map +1 -1
  124. package/lib/stores/fetch-structure/projection/QueryResultSetModifierState.d.ts +6 -3
  125. package/lib/stores/fetch-structure/projection/QueryResultSetModifierState.d.ts.map +1 -1
  126. package/lib/stores/fetch-structure/projection/QueryResultSetModifierState.js +28 -5
  127. package/lib/stores/fetch-structure/projection/QueryResultSetModifierState.js.map +1 -1
  128. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.d.ts +4 -1
  129. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.d.ts.map +1 -1
  130. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.js +7 -1
  131. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.js.map +1 -1
  132. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.d.ts +8 -5
  133. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.d.ts.map +1 -1
  134. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.js +24 -7
  135. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.js.map +1 -1
  136. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.d.ts +3 -1
  137. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.d.ts.map +1 -1
  138. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.js +5 -0
  139. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.js.map +1 -1
  140. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.d.ts +3 -1
  141. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.d.ts.map +1 -1
  142. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.js +5 -0
  143. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.js.map +1 -1
  144. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.d.ts +3 -1
  145. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.d.ts.map +1 -1
  146. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js +7 -0
  147. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js.map +1 -1
  148. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.d.ts +3 -1
  149. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.d.ts.map +1 -1
  150. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js +7 -1
  151. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js.map +1 -1
  152. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.d.ts +3 -1
  153. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.d.ts.map +1 -1
  154. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js +7 -1
  155. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js.map +1 -1
  156. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.d.ts +3 -1
  157. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.d.ts.map +1 -1
  158. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.js +5 -0
  159. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.js.map +1 -1
  160. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.d.ts +3 -1
  161. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.d.ts.map +1 -1
  162. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.js +5 -0
  163. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.js.map +1 -1
  164. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.d.ts +3 -1
  165. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.d.ts.map +1 -1
  166. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js +7 -0
  167. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js.map +1 -1
  168. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts +3 -1
  169. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts.map +1 -1
  170. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js +7 -0
  171. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js.map +1 -1
  172. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.d.ts +3 -1
  173. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.d.ts.map +1 -1
  174. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.js +5 -0
  175. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.js.map +1 -1
  176. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.d.ts +3 -1
  177. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.d.ts.map +1 -1
  178. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.js.map +1 -1
  179. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.d.ts +14 -8
  180. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.d.ts.map +1 -1
  181. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.js +54 -4
  182. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.js.map +1 -1
  183. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts +4 -1
  184. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts.map +1 -1
  185. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js +12 -1
  186. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js.map +1 -1
  187. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts +4 -1
  188. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts.map +1 -1
  189. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js +12 -1
  190. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js.map +1 -1
  191. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts +4 -1
  192. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts.map +1 -1
  193. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js +10 -1
  194. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js.map +1 -1
  195. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts +3 -1
  196. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts.map +1 -1
  197. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js +7 -1
  198. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js.map +1 -1
  199. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts +1 -0
  200. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts.map +1 -1
  201. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js +7 -0
  202. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js.map +1 -1
  203. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts +4 -1
  204. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts.map +1 -1
  205. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.js +10 -1
  206. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.js.map +1 -1
  207. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts +4 -1
  208. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts.map +1 -1
  209. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js +12 -0
  210. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js.map +1 -1
  211. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts +3 -1
  212. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts.map +1 -1
  213. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js +7 -1
  214. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js.map +1 -1
  215. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts +3 -1
  216. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts.map +1 -1
  217. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js +7 -0
  218. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js.map +1 -1
  219. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts +5 -2
  220. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts.map +1 -1
  221. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js +12 -1
  222. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js.map +1 -1
  223. package/lib/stores/filter/QueryBuilderFilterOperator.d.ts +3 -1
  224. package/lib/stores/filter/QueryBuilderFilterOperator.d.ts.map +1 -1
  225. package/lib/stores/filter/QueryBuilderFilterOperator.js.map +1 -1
  226. package/lib/stores/filter/QueryBuilderFilterState.d.ts +14 -8
  227. package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +1 -1
  228. package/lib/stores/filter/QueryBuilderFilterState.js +54 -9
  229. package/lib/stores/filter/QueryBuilderFilterState.js.map +1 -1
  230. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.d.ts +4 -1
  231. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.d.ts.map +1 -1
  232. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js +10 -1
  233. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js.map +1 -1
  234. package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.d.ts +4 -1
  235. package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.d.ts.map +1 -1
  236. package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js +10 -1
  237. package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js.map +1 -1
  238. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.d.ts +4 -1
  239. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.d.ts.map +1 -1
  240. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js +8 -1
  241. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js.map +1 -1
  242. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.d.ts +3 -1
  243. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.d.ts.map +1 -1
  244. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.js +7 -1
  245. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.js.map +1 -1
  246. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts +3 -1
  247. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts.map +1 -1
  248. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js +7 -1
  249. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js.map +1 -1
  250. package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.d.ts +4 -1
  251. package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.d.ts.map +1 -1
  252. package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js +8 -0
  253. package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js.map +1 -1
  254. package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.d.ts +4 -1
  255. package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.d.ts.map +1 -1
  256. package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js +10 -0
  257. package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js.map +1 -1
  258. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.d.ts +3 -1
  259. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.d.ts.map +1 -1
  260. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.js +5 -1
  261. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.js.map +1 -1
  262. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.d.ts +3 -1
  263. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.d.ts.map +1 -1
  264. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js +7 -1
  265. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js.map +1 -1
  266. package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.d.ts +4 -1
  267. package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.d.ts.map +1 -1
  268. package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js +10 -1
  269. package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js.map +1 -1
  270. package/lib/stores/workflows/ServiceQueryBuilderState.d.ts.map +1 -1
  271. package/lib/stores/workflows/ServiceQueryBuilderState.js +15 -7
  272. package/lib/stores/workflows/ServiceQueryBuilderState.js.map +1 -1
  273. package/package.json +12 -10
  274. package/src/components/QueryBuilder.tsx +41 -1
  275. package/src/components/QueryBuilderDiffPanel.tsx +222 -0
  276. package/src/components/QueryBuilderParametersPanel.tsx +3 -3
  277. package/src/components/QueryBuilderResultPanel.tsx +31 -18
  278. package/src/components/QueryBuilderSideBar.tsx +1 -1
  279. package/src/components/ServiceQuerySetupUtils.tsx +54 -0
  280. package/src/components/explorer/QueryBuilderExplorerPanel.tsx +5 -12
  281. package/src/components/explorer/QueryBuilderFunctionsExplorerPanel.tsx +24 -14
  282. package/src/components/explorer/{QueryBuilderMilestoneEditor.tsx → QueryBuilderMilestoningEditor.tsx} +12 -8
  283. package/src/components/explorer/QueryBuilderPropertySearchPanel.tsx +156 -145
  284. package/src/components/fetch-structure/QueryBuilderProjectionPanel.tsx +1 -5
  285. package/src/components/filter/QueryBuilderFilterPanel.tsx +3 -13
  286. package/src/components/shared/QueryBuilderPropertyInfoTooltip.tsx +22 -0
  287. package/src/graphManager/QueryBuilderHashUtils.ts +95 -0
  288. package/src/index.ts +3 -0
  289. package/src/stores/QueryBuilderChangeDetectionState.ts +112 -10
  290. package/src/stores/QueryBuilderConfig.ts +2 -0
  291. package/src/stores/QueryBuilderMilestoningState.ts +12 -1
  292. package/src/stores/QueryBuilderParametersState.ts +15 -2
  293. package/src/stores/QueryBuilderPropertyEditorState.ts +19 -7
  294. package/src/stores/QueryBuilderResultState.ts +30 -8
  295. package/src/stores/QueryBuilderState.ts +50 -37
  296. package/src/stores/QueryBuilderStateTestUtils.ts +1 -1
  297. package/src/stores/QueryBuilderTextEditorState.ts +1 -1
  298. package/src/stores/QueryBuilderUnsupportedQueryState.ts +13 -3
  299. package/src/stores/ServiceInfo.ts +52 -0
  300. package/src/stores/explorer/QueryBuilderExplorerState.ts +26 -30
  301. package/src/stores/explorer/QueryBuilderPropertySearchState.ts +259 -193
  302. package/src/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.ts +8 -3
  303. package/src/stores/fetch-structure/QueryBuilderFetchStructureState.ts +4 -4
  304. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts +18 -2
  305. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.ts +31 -6
  306. package/src/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.ts +34 -9
  307. package/src/stores/fetch-structure/projection/QueryBuilderProjectionState.ts +23 -16
  308. package/src/stores/fetch-structure/projection/QueryResultSetModifierState.ts +38 -8
  309. package/src/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.ts +15 -2
  310. package/src/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.ts +37 -12
  311. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.ts +10 -1
  312. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.ts +10 -1
  313. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.ts +12 -1
  314. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.ts +17 -2
  315. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.ts +17 -2
  316. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.ts +10 -1
  317. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.ts +10 -1
  318. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.ts +12 -1
  319. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.ts +12 -1
  320. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.ts +10 -1
  321. package/src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.ts +4 -2
  322. package/src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.ts +78 -10
  323. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.ts +19 -1
  324. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.ts +22 -2
  325. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.ts +17 -1
  326. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.ts +13 -1
  327. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.ts +8 -0
  328. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.ts +20 -2
  329. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.ts +18 -1
  330. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.ts +13 -1
  331. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.ts +12 -1
  332. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts +26 -3
  333. package/src/stores/filter/QueryBuilderFilterOperator.ts +4 -2
  334. package/src/stores/filter/QueryBuilderFilterState.ts +80 -22
  335. package/src/stores/filter/operators/QueryBuilderFilterOperator_Contain.ts +20 -2
  336. package/src/stores/filter/operators/QueryBuilderFilterOperator_EndWith.ts +20 -2
  337. package/src/stores/filter/operators/QueryBuilderFilterOperator_Equal.ts +18 -2
  338. package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.ts +16 -2
  339. package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.ts +16 -2
  340. package/src/stores/filter/operators/QueryBuilderFilterOperator_In.ts +14 -1
  341. package/src/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.ts +16 -1
  342. package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThan.ts +14 -2
  343. package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.ts +16 -2
  344. package/src/stores/filter/operators/QueryBuilderFilterOperator_StartWith.ts +20 -2
  345. package/src/stores/workflows/ServiceQueryBuilderState.ts +24 -9
  346. package/tsconfig.json +7 -2
  347. package/lib/components/explorer/QueryBuilderMilestoneEditor.d.ts.map +0 -1
  348. package/lib/components/explorer/QueryBuilderMilestoneEditor.js.map +0 -1
@@ -14,8 +14,9 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { type ValueSpecification } from '@finos/legend-graph';
17
+ import { type Hashable } from '@finos/legend-shared';
17
18
  import type { QueryBuilderState } from './QueryBuilderState.js';
18
- export declare class QueryBuilderMilestoningState {
19
+ export declare class QueryBuilderMilestoningState implements Hashable {
19
20
  queryBuilderState: QueryBuilderState;
20
21
  showMilestoningEditor: boolean;
21
22
  businessDate?: ValueSpecification | undefined;
@@ -28,5 +29,6 @@ export declare class QueryBuilderMilestoningState {
28
29
  setBusinessDate(val: ValueSpecification | undefined): void;
29
30
  updateMilestoningConfiguration(): void;
30
31
  buildMilestoningParameter(parameterName: string): ValueSpecification;
32
+ get hashCode(): string;
31
33
  }
32
34
  //# sourceMappingURL=QueryBuilderMilestoningState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderMilestoningState.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderMilestoningState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAWL,KAAK,kBAAkB,EACxB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,qBAAa,4BAA4B;IACvC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AAG,IAAI;IAS5D,eAAe,CAAC,GAAG,EAAE,kBAAkB,GAAG,SAAS,GAAG,IAAI;IAS1D,8BAA8B,IAAI,IAAI;IAiBtC,yBAAyB,CAAC,aAAa,EAAE,MAAM,GAAG,kBAAkB;IA8BpE,IAAI,QAAQ,IAAI,MAAM,CAMrB;CACF"}
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { LambdaParameterState } from '@finos/legend-application';
17
17
  import { DEFAULT_BUSINESS_DATE_MILESTONING_PARAMETER_NAME, DEFAULT_PROCESSING_DATE_MILESTONING_PARAMETER_NAME, GenericType, GenericTypeExplicitReference, getMilestoneTemporalStereotype, MILESTONING_STEREOTYPE, observe_ValueSpecification, PRIMITIVE_TYPE, TYPICAL_MULTIPLICITY_TYPE, VariableExpression, } from '@finos/legend-graph';
18
+ import { hashArray } from '@finos/legend-shared';
18
19
  import { action, computed, makeObservable, observable } from 'mobx';
20
+ import { QUERY_BUILDER_HASH_STRUCTURE } from '../graphManager/QueryBuilderHashUtils.js';
19
21
  export class QueryBuilderMilestoningState {
20
22
  queryBuilderState;
21
23
  showMilestoningEditor = false;
@@ -32,6 +34,7 @@ export class QueryBuilderMilestoningState {
32
34
  setProcessingDate: action,
33
35
  setBusinessDate: action,
34
36
  setShowMilestoningEditor: action,
37
+ hashCode: computed,
35
38
  });
36
39
  this.queryBuilderState = queryBuilderState;
37
40
  }
@@ -91,5 +94,12 @@ export class QueryBuilderMilestoningState {
91
94
  }
92
95
  return milestoningParameter;
93
96
  }
97
+ get hashCode() {
98
+ return hashArray([
99
+ QUERY_BUILDER_HASH_STRUCTURE.MILESTONING_STATE,
100
+ this.businessDate ?? '',
101
+ this.processingDate ?? '',
102
+ ]);
103
+ }
94
104
  }
95
105
  //# sourceMappingURL=QueryBuilderMilestoningState.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderMilestoningState.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderMilestoningState.ts"],"names":[],"mappings":"AAAA;;;;;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F;IACH,CAAC;IAED,yBAAyB,CAAC,aAAqB;QAC7C,MAAM,oBAAoB,GAAG,IAAI,kBAAkB,CACjD,aAAa,EACb,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAAC,sBAAsB,CACnE,yBAAyB,CAAC,GAAG,CAC9B,EACD,4BAA4B,CAAC,MAAM,CACjC,IAAI,WAAW,CACb,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAAC,gBAAgB,CAC/F,cAAc,CAAC,IAAI,CACpB,CACF,CACF,CACF,CAAC;QACF,IACE,CAAC,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAC,eAAe,CAAC,IAAI,CAC1D,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,KAAK,aAAa,CACxC,EACD;YACA,MAAM,aAAa,GAAG,IAAI,oBAAoB,CAC5C,oBAAoB,EACpB,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,EACxC,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAC/C,CAAC;YACF,aAAa,CAAC,kBAAkB,EAAE,CAAC;YACnC,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;SACpE;QACD,OAAO,oBAAoB,CAAC;IAC9B,CAAC;CACF"}
1
+ {"version":3,"file":"QueryBuilderMilestoningState.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderMilestoningState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EACL,gDAAgD,EAChD,kDAAkD,EAClD,WAAW,EACX,4BAA4B,EAC5B,8BAA8B,EAC9B,sBAAsB,EACtB,0BAA0B,EAC1B,cAAc,EACd,yBAAyB,EACzB,kBAAkB,GAEnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAiB,S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KAAK,CAAC,sBAAsB,CACnE,yBAAyB,CAAC,GAAG,CAC9B,EACD,4BAA4B,CAAC,MAAM,CACjC,IAAI,WAAW,CACb,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAAC,gBAAgB,CAC/F,cAAc,CAAC,IAAI,CACpB,CACF,CACF,CACF,CAAC;QACF,IACE,CAAC,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAC,eAAe,CAAC,IAAI,CAC1D,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,KAAK,aAAa,CACxC,EACD;YACA,MAAM,aAAa,GAAG,IAAI,oBAAoB,CAC5C,oBAAoB,EACpB,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,EACxC,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAC/C,CAAC;YACF,aAAa,CAAC,kBAAkB,EAAE,CAAC;YACnC,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;SACpE;QACD,OAAO,oBAAoB,CAAC;IAC9B,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,4BAA4B,CAAC,iBAAiB;YAC9C,IAAI,CAAC,YAAY,IAAI,EAAE;YACvB,IAAI,CAAC,cAAc,IAAI,EAAE;SAC1B,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -14,15 +14,17 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { LambdaParametersState, type LambdaParameterState } from '@finos/legend-application';
17
+ import { type Hashable } from '@finos/legend-shared';
17
18
  import type { QueryBuilderState } from './QueryBuilderState.js';
18
19
  export declare const QUERY_BUILDER_PARAMETER_DND_TYPE = "PARAMETER";
19
20
  export interface QueryBuilderParameterDragSource {
20
21
  variable: LambdaParameterState;
21
22
  }
22
- export declare class QueryBuilderParametersState extends LambdaParametersState {
23
+ export declare class QueryBuilderParametersState extends LambdaParametersState implements Hashable {
23
24
  selectedParameter: LambdaParameterState | undefined;
24
25
  queryBuilderState: QueryBuilderState;
25
26
  constructor(queryBuilderState: QueryBuilderState);
27
+ get hashCode(): string;
26
28
  setSelectedParameter(val: LambdaParameterState | undefined): void;
27
29
  }
28
30
  //# sourceMappingURL=QueryBuilderParametersState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderParametersState.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderParametersState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,qBAAqB,EACrB,KAAK,oBAAoB,EAC1B,MAAM,2BAA2B,CAAC;AAEnC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,eAAO,MAAM,gCAAgC,cAAc,CAAC;AAE5D,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,EAAE,oBAAoB,CAAC;CAChC;AAED,qBAAa,2BAA4B,SAAQ,qBAAqB;IACpE,iBAAiB,EAAE,oBAAoB,GAAG,SAAS,CAAC;IACpD,iBAAiB,EAAE,iBAAiB,CAAC;gBAEzB,iBAAiB,EAAE,iBAAiB;IAehD,oBAAoB,CAAC,GAAG,EAAE,oBAAoB,GAAG,SAAS,GAAG,IAAI;CAGlE"}
1
+ {"version":3,"file":"QueryBuilderParametersState.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderParametersState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,qBAAqB,EACrB,KAAK,oBAAoB,EAC1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAGhE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,eAAO,MAAM,gCAAgC,cAAc,CAAC;AAE5D,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,EAAE,oBAAoB,CAAC;CAChC;AAED,qBAAa,2BACX,SAAQ,qBACR,YAAW,QAAQ;IAEnB,iBAAiB,EAAE,oBAAoB,GAAG,SAAS,CAAC;IACpD,iBAAiB,EAAE,iBAAiB,CAAC;gBAEzB,iBAAiB,EAAE,iBAAiB;IAgBhD,IAAa,QAAQ,IAAI,MAAM,CAK9B;IAED,oBAAoB,CAAC,GAAG,EAAE,oBAAoB,GAAG,SAAS,GAAG,IAAI;CAGlE"}
@@ -14,7 +14,9 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { LambdaParametersState, } from '@finos/legend-application';
17
- import { observable, makeObservable, action } from 'mobx';
17
+ import { hashArray } from '@finos/legend-shared';
18
+ import { observable, makeObservable, action, override } from 'mobx';
19
+ import { QUERY_BUILDER_HASH_STRUCTURE } from '../graphManager/QueryBuilderHashUtils.js';
18
20
  export const QUERY_BUILDER_PARAMETER_DND_TYPE = 'PARAMETER';
19
21
  export class QueryBuilderParametersState extends LambdaParametersState {
20
22
  selectedParameter;
@@ -29,9 +31,16 @@ export class QueryBuilderParametersState extends LambdaParametersState {
29
31
  setParameters: action,
30
32
  selectedParameter: observable,
31
33
  setSelectedParameter: action,
34
+ hashCode: override,
32
35
  });
33
36
  this.queryBuilderState = queryBuilderState;
34
37
  }
38
+ get hashCode() {
39
+ return hashArray([
40
+ QUERY_BUILDER_HASH_STRUCTURE.PARAMETERS_STATE,
41
+ hashArray(this.parameterStates),
42
+ ]);
43
+ }
35
44
  setSelectedParameter(val) {
36
45
  this.selectedParameter = val;
37
46
  }
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderParametersState.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderParametersState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,qBAAqB,GAEtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAG1D,MAAM,CAAC,MAAM,gCAAgC,GAAG,WAAW,CAAC;AAM5D,MAAM,OAAO,2BAA4B,SAAQ,qBAAqB;IACpE,iBAAiB,CAAmC;IACpD,iBAAiB,CAAoB;IAErC,YAAY,iBAAoC;QAC9C,KAAK,EAAE,CAAC;QACR,cAAc,CAAC,IAAI,EAAE;YACnB,0BAA0B,EAAE,UAAU;YACtC,eAAe,EAAE,UAAU;YAC3B,YAAY,EAAE,MAAM;YACpB,eAAe,EAAE,MAAM;YACvB,aAAa,EAAE,MAAM;YACrB,iBAAiB,EAAE,UAAU;YAC7B,oBAAoB,EAAE,MAAM;SAC7B,CAAC,CAAC;QAEH,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC7C,CAAC;IAED,oBAAoB,CAAC,GAAqC;QACxD,IAAI,CAAC,iBAAiB,GAAG,GAAG,CAAC;IAC/B,CAAC;CACF"}
1
+ {"version":3,"file":"QueryBuilderParametersState.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderParametersState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,qBAAqB,GAEtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAiB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AAGxF,MAAM,CAAC,MAAM,gCAAgC,GAAG,WAAW,CAAC;AAM5D,MAAM,OAAO,2BACX,SAAQ,qBAAqB;IAG7B,iBAAiB,CAAmC;IACpD,iBAAiB,CAAoB;IAErC,YAAY,iBAAoC;QAC9C,KAAK,EAAE,CAAC;QACR,cAAc,CAAC,IAAI,EAAE;YACnB,0BAA0B,EAAE,UAAU;YACtC,eAAe,EAAE,UAAU;YAC3B,YAAY,EAAE,MAAM;YACpB,eAAe,EAAE,MAAM;YACvB,aAAa,EAAE,MAAM;YACrB,iBAAiB,EAAE,UAAU;YAC7B,oBAAoB,EAAE,MAAM;YAC5B,QAAQ,EAAE,QAAQ;SACnB,CAAC,CAAC;QAEH,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC7C,CAAC;IAED,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,4BAA4B,CAAC,gBAAgB;YAC7C,SAAS,CAAC,IAAI,CAAC,eAAe,CAAC;SAChC,CAAC,CAAC;IACL,CAAC;IAED,oBAAoB,CAAC,GAAqC;QACxD,IAAI,CAAC,iBAAiB,GAAG,GAAG,CAAC;IAC/B,CAAC;CACF"}
@@ -13,6 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import { type Hashable } from '@finos/legend-shared';
16
17
  import { type AbstractProperty, type ValueSpecification, type PureModel, AbstractPropertyExpression, DerivedProperty, VariableExpression, MILESTONING_STEREOTYPE } from '@finos/legend-graph';
17
18
  import type { QueryBuilderState } from './QueryBuilderState.js';
18
19
  export declare const getDerivedPropertyMilestoningSteoreotype: (property: DerivedProperty, graph: PureModel) => MILESTONING_STEREOTYPE | undefined;
@@ -39,11 +40,11 @@ export declare class QueryBuilderDerivedPropertyExpressionState {
39
40
  get parameterValues(): ValueSpecification[];
40
41
  get isValid(): boolean;
41
42
  }
42
- export declare class QueryBuilderPropertyExpressionState {
43
- queryBuilderState: QueryBuilderState;
43
+ export declare class QueryBuilderPropertyExpressionState implements Hashable {
44
+ readonly queryBuilderState: QueryBuilderState;
45
+ readonly propertyExpression: AbstractPropertyExpression;
44
46
  path: string;
45
47
  title: string;
46
- readonly propertyExpression: AbstractPropertyExpression;
47
48
  isEditingDerivedPropertyExpression: boolean;
48
49
  derivedPropertyExpressionStates: QueryBuilderDerivedPropertyExpressionState[];
49
50
  /**
@@ -58,5 +59,6 @@ export declare class QueryBuilderPropertyExpressionState {
58
59
  get isValid(): boolean;
59
60
  setIsEditingDerivedProperty(val: boolean): void;
60
61
  private initDerivedPropertyExpressionStates;
62
+ get hashCode(): string;
61
63
  }
62
64
  //# sourceMappingURL=QueryBuilderPropertyEditorState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderPropertyEditorState.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderPropertyEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAWH,OAAO,EAEL,KAAK,gBAAgB,EAErB,KAAK,kBAAkB,EACvB,KAAK,SAAS,EAGd,0BAA0B,EAC1B,eAAe,EAOf,kBAAkB,EAElB,sBAAsB,EAYvB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAKhE,eAAO,MAAM,wCAAwC,aACzC,eAAe,SAClB,SAAS,KACf,sBAAsB,GAAG,SAiB3B,CAAC;AAyDF,eAAO,MAAM,kBAAkB,UAAW,MAAM,KAAG,MACmB,CAAC;AAEvE;;;;;GAKG;AACH,eAAO,MAAM,wCAAwC,mCACnB,0CAA0C,OACrE,MAAM,KACV,kBAAkB,GAAG,SA0JvB,CAAC;AAEF,eAAO,MAAM,oBAAoB,uBACX,0BAA0B,wBACxB,OAAO,KAC5B,MAmDF,CAAC;AAEF,eAAO,MAAM,eAAe,uBACN,0BAA0B,KAC7C,MAYF,CAAC;AAEF,eAAO,MAAM,sCAAsC,cACtC,kBAAkB,SACtB,SAAS,KACf,kBAyDF,CAAC;AA8CF,qBAAa,0CAA0C;IACrD,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,kBAAkB,EAAE,0BAA0B,CAAC;IACxD,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IAC1C,QAAQ,CAAC,UAAU,EAAE,kBAAkB,EAAE,CAAM;gBAG7C,iBAAiB,EAAE,iBAAiB,EACpC,kBAAkB,EAAE,0BAA0B;IA4BhD,IAAI,QAAQ,IAAI,gBAAgB,CAE/B;IAED,IAAI,eAAe,IAAI,kBAAkB,EAAE,CAE1C;IAED,IAAI,OAAO,IAAI,OAAO,CAwBrB;CACF;AAED,qBAAa,mCAAmC;IAC9C,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,kBAAkB,EAAE,0BAA0B,CAAC;IAExD,kCAAkC,UAAS;IAG3C,+BAA+B,EAAE,0CAA0C,EAAE,CACxE;IACL;;;;;;OAMG;IACH,sBAAsB,UAAS;gBAG7B,iBAAiB,EAAE,iBAAiB,EACpC,kBAAkB,EAAE,0BAA0B;IAqBhD,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,2BAA2B,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAI/C,OAAO,CAAC,mCAAmC;CA0D5C"}
1
+ {"version":3,"file":"QueryBuilderPropertyEditorState.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderPropertyEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAIL,KAAK,QAAQ,EAKd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,KAAK,gBAAgB,EAErB,KAAK,kBAAkB,EACvB,KAAK,SAAS,EAGd,0BAA0B,EAC1B,eAAe,EAOf,kBAAkB,EAElB,sBAAsB,EAYvB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAMhE,eAAO,MAAM,wCAAwC,aACzC,eAAe,SAClB,SAAS,KACf,sBAAsB,GAAG,SAiB3B,CAAC;AAyDF,eAAO,MAAM,kBAAkB,UAAW,MAAM,KAAG,MACmB,CAAC;AAEvE;;;;;GAKG;AACH,eAAO,MAAM,wCAAwC,mCACnB,0CAA0C,OACrE,MAAM,KACV,kBAAkB,GAAG,SA0JvB,CAAC;AAEF,eAAO,MAAM,oBAAoB,uBACX,0BAA0B,wBACxB,OAAO,KAC5B,MAmDF,CAAC;AAEF,eAAO,MAAM,eAAe,uBACN,0BAA0B,KAC7C,MAYF,CAAC;AAEF,eAAO,MAAM,sCAAsC,cACtC,kBAAkB,SACtB,SAAS,KACf,kBAyDF,CAAC;AA8CF,qBAAa,0CAA0C;IACrD,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,kBAAkB,EAAE,0BAA0B,CAAC;IACxD,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IAC1C,QAAQ,CAAC,UAAU,EAAE,kBAAkB,EAAE,CAAM;gBAG7C,iBAAiB,EAAE,iBAAiB,EACpC,kBAAkB,EAAE,0BAA0B;IA4BhD,IAAI,QAAQ,IAAI,gBAAgB,CAE/B;IAED,IAAI,eAAe,IAAI,kBAAkB,EAAE,CAE1C;IAED,IAAI,OAAO,IAAI,OAAO,CAwBrB;CACF;AAED,qBAAa,mCAAoC,YAAW,QAAQ;IAClE,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C,QAAQ,CAAC,kBAAkB,EAAE,0BAA0B,CAAC;IACxD,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,kCAAkC,UAAS;IAG3C,+BAA+B,EAAE,0CAA0C,EAAE,CACxE;IACL;;;;;;OAMG;IACH,sBAAsB,UAAS;gBAG7B,iBAAiB,EAAE,iBAAiB,EACpC,kBAAkB,EAAE,0BAA0B;IAwBhD,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,2BAA2B,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAI/C,OAAO,CAAC,mCAAmC;IA2D3C,IAAI,QAAQ,IAAI,MAAM,CAKrB;CACF"}
@@ -13,12 +13,13 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { action, makeAutoObservable } from 'mobx';
17
- import { getNullableFirstElement, guaranteeNonNullable, guaranteeType, isCamelCase, prettyCamelCase, prettyCONSTName, } from '@finos/legend-shared';
16
+ import { action, computed, makeObservable, observable } from 'mobx';
17
+ import { getNullableFirstElement, guaranteeNonNullable, guaranteeType, hashArray, isCamelCase, prettyCamelCase, prettyCONSTName, } from '@finos/legend-shared';
18
18
  import { Class, TYPICAL_MULTIPLICITY_TYPE, CollectionInstanceValue, AbstractPropertyExpression, DerivedProperty, Enumeration, EnumValueExplicitReference, EnumValueInstanceValue, InstanceValue, PrimitiveInstanceValue, PRIMITIVE_TYPE, VariableExpression, getMilestoneTemporalStereotype, MILESTONING_STEREOTYPE, SimpleFunctionExpression, matchFunctionName, TYPE_CAST_TOKEN, observe_AbstractPropertyExpression, GenericTypeExplicitReference, GenericType, DEFAULT_BUSINESS_DATE_MILESTONING_PARAMETER_NAME, DEFAULT_PROCESSING_DATE_MILESTONING_PARAMETER_NAME, INTERNAL__PropagatedValue, Association, getGeneratedMilestonedPropertiesForAssociation, } from '@finos/legend-graph';
19
19
  import { generateDefaultValueForPrimitiveType } from './QueryBuilderValueSpecificationHelper.js';
20
20
  import { functionExpression_setParametersValues } from '@finos/legend-application';
21
21
  import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../graphManager/QueryBuilderSupportedFunctions.js';
22
+ import { QUERY_BUILDER_HASH_STRUCTURE } from '../graphManager/QueryBuilderHashUtils.js';
22
23
  export const getDerivedPropertyMilestoningSteoreotype = (property, graph) => {
23
24
  const owner = property._OWNER;
24
25
  if (owner instanceof Class) {
@@ -322,9 +323,9 @@ export class QueryBuilderDerivedPropertyExpressionState {
322
323
  }
323
324
  export class QueryBuilderPropertyExpressionState {
324
325
  queryBuilderState;
326
+ propertyExpression;
325
327
  path;
326
328
  title;
327
- propertyExpression;
328
329
  isEditingDerivedPropertyExpression = false;
329
330
  // Since this property is a chain expression, some link of the chain can be
330
331
  // derived property, as such, we need to keep track of the derived properties state in an array
@@ -338,10 +339,13 @@ export class QueryBuilderPropertyExpressionState {
338
339
  */
339
340
  requiresExistsHandling = false;
340
341
  constructor(queryBuilderState, propertyExpression) {
341
- makeAutoObservable(this, {
342
- queryBuilderState: false,
342
+ makeObservable(this, {
343
+ isEditingDerivedPropertyExpression: observable,
344
+ derivedPropertyExpressionStates: observable,
343
345
  setIsEditingDerivedProperty: action,
344
346
  initDerivedPropertyExpressionStates: action,
347
+ isValid: computed,
348
+ hashCode: computed,
345
349
  });
346
350
  this.queryBuilderState = queryBuilderState;
347
351
  this.propertyExpression = observe_AbstractPropertyExpression(propertyExpression, queryBuilderState.observableContext);
@@ -391,5 +395,11 @@ export class QueryBuilderPropertyExpressionState {
391
395
  this.requiresExistsHandling = requiresExistsHandling;
392
396
  this.derivedPropertyExpressionStates = result.slice().reverse();
393
397
  }
398
+ get hashCode() {
399
+ return hashArray([
400
+ QUERY_BUILDER_HASH_STRUCTURE.PROPERTY_EXPRESSION_STATE,
401
+ this.propertyExpression,
402
+ ]);
403
+ }
394
404
  }
395
405
  //# sourceMappingURL=QueryBuilderPropertyEditorState.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderPropertyEditorState.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderPropertyEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAC;AAClD,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,aAAa,EACb,WAAW,EACX,eAAe,EACf,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,EAKL,yBAAyB,EACzB,uBAAuB,EACvB,0BAA0B,EAC1B,eAAe,EACf,WAAW,EACX,0BAA0B,EAC1B,sBAAsB,EACtB,aAAa,EACb,sBAAsB,EACtB,cAAc,EACd,kBAAkB,EAClB,8BAA8B,EAC9B,sBAAsB,EACtB,wBAAwB,EACxB,iBAAiB,EACjB,eA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,CAAC,IAAI,CAAC,IAAI,CAAC;gBACzC,MAAM,IAAI,GACR,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,8BAA8B,CAAC,IAAI,CAC/D,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CACvB,CAAC;gBACJ,IAAI,IAAI,EAAE;oBACR,iBAAiB,CAAC,IAAI,GAAG,IAAI,CAAC;iBAC/B;aACF;YAED,iFAAiF;YACjF,IAAI,iBAAiB,CAAC,IAAI,YAAY,eAAe,EAAE;gBACrD,MAAM,8BAA8B,GAClC,IAAI,0CAA0C,CAC5C,IAAI,CAAC,iBAAiB,EACtB,iBAAiB,CAClB,CAAC;gBACJ,MAAM,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC;aAC7C;YACD,iBAAiB,GAAG,uBAAuB,CACzC,iBAAiB,CAAC,gBAAgB,CACnC,CAAC;YACF,oGAAoG;YACpG,kDAAkD;YAClD,OACE,iBAAiB,YAAY,wBAAwB;gBACrD,iBAAiB,CACf,iBAAiB,CAAC,YAAY,EAC9B,iCAAiC,CAAC,OAAO,CAC1C,EACD;gBACA,iBAAiB,GAAG,uBAAuB,CACzC,iBAAiB,CAAC,gBAAgB,CACnC,CAAC;aACH;SACF;QACD,IAAI,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;QACrD,IAAI,CAAC,+BAA+B,GAAG,MAAM,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,CAAC;IAClE,CAAC;CACF"}
1
+ {"version":3,"file":"QueryBuilderPropertyEditorState.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderPropertyEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,aAAa,EAEb,SAAS,EACT,WAAW,EACX,eAAe,EAC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;QACrD,IAAI,CAAC,+BAA+B,GAAG,MAAM,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,CAAC;IAClE,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,4BAA4B,CAAC,yBAAyB;YACtD,IAAI,CAAC,kBAAkB;SACxB,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -18,14 +18,15 @@ import type { QueryBuilderState } from './QueryBuilderState.js';
18
18
  import { type ExecutionResult, type RawLambda, EXECUTION_SERIALIZATION_FORMAT } from '@finos/legend-graph';
19
19
  import { ExecutionPlanState } from '@finos/legend-application';
20
20
  export declare class QueryBuilderResultState {
21
- queryBuilderState: QueryBuilderState;
22
- exportDataState: ActionState;
21
+ readonly queryBuilderState: QueryBuilderState;
22
+ readonly exportDataState: ActionState;
23
+ readonly executionPlanState: ExecutionPlanState;
23
24
  previewLimit: number;
24
25
  isRunningQuery: boolean;
25
26
  isGeneratingPlan: boolean;
26
27
  executionResult?: ExecutionResult | undefined;
27
- executionPlanState: ExecutionPlanState;
28
28
  executionDuration?: number | undefined;
29
+ latestRunHashCode?: string | undefined;
29
30
  queryRunPromise: Promise<ExecutionResult> | undefined;
30
31
  constructor(queryBuilderState: QueryBuilderState);
31
32
  setIsRunningQuery: (val: boolean) => void;
@@ -33,6 +34,7 @@ export declare class QueryBuilderResultState {
33
34
  setExecutionDuration: (val: number | undefined) => void;
34
35
  setPreviewLimit: (val: number) => void;
35
36
  setQueryRunPromise: (promise: Promise<ExecutionResult> | undefined) => void;
37
+ get checkForStaleResults(): boolean;
36
38
  buildExecutionRawLambda(): RawLambda;
37
39
  exportData(serializationFormat: EXECUTION_SERIALIZATION_FORMAT): GeneratorFn<void>;
38
40
  runQuery(): GeneratorFn<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderResultState.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderResultState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,E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AAG,WAAW,CAAC,IAAI,CAAC;CAsDjD"}
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { action, makeAutoObservable } from 'mobx';
16
+ import { action, flow, makeObservable, observable } from 'mobx';
17
17
  import { assertErrorThrown, LogEvent, guaranteeNonNullable, ContentType, guaranteeType, downloadFileUsingDataURI, UnsupportedOperationError, ActionState, } from '@finos/legend-shared';
18
18
  import { GRAPH_MANAGER_EVENT, EXECUTION_SERIALIZATION_FORMAT, RawExecutionResult, buildRawLambdaFromLambdaFunction, } from '@finos/legend-graph';
19
19
  import { buildLambdaFunction } from './QueryBuilderValueSpecificationBuilder.js';
@@ -22,19 +22,31 @@ const DEFAULT_LIMIT = 1000;
22
22
  export class QueryBuilderResultState {
23
23
  queryBuilderState;
24
24
  exportDataState = ActionState.create();
25
+ executionPlanState;
25
26
  previewLimit = DEFAULT_LIMIT;
26
27
  isRunningQuery = false;
27
28
  isGeneratingPlan = false;
28
29
  executionResult;
29
- executionPlanState;
30
30
  executionDuration;
31
+ latestRunHashCode;
31
32
  queryRunPromise = undefined;
32
33
  constructor(queryBuilderState) {
33
- makeAutoObservable(this, {
34
- queryBuilderState: false,
35
- executionPlanState: false,
34
+ makeObservable(this, {
35
+ executionResult: observable,
36
+ previewLimit: observable,
37
+ executionDuration: observable,
38
+ latestRunHashCode: observable,
39
+ queryRunPromise: observable,
40
+ isGeneratingPlan: observable,
41
+ isRunningQuery: observable,
36
42
  setIsRunningQuery: action,
37
43
  setExecutionResult: action,
44
+ setExecutionDuration: action,
45
+ setPreviewLimit: action,
46
+ setQueryRunPromise: action,
47
+ exportData: flow,
48
+ runQuery: flow,
49
+ generatePlan: flow,
38
50
  });
39
51
  this.queryBuilderState = queryBuilderState;
40
52
  this.executionPlanState = new ExecutionPlanState(this.queryBuilderState.applicationStore, this.queryBuilderState.graphManagerState);
@@ -54,6 +66,12 @@ export class QueryBuilderResultState {
54
66
  setQueryRunPromise = (promise) => {
55
67
  this.queryRunPromise = promise;
56
68
  };
69
+ get checkForStaleResults() {
70
+ if (this.latestRunHashCode !== this.queryBuilderState.hashCode) {
71
+ return true;
72
+ }
73
+ return false;
74
+ }
57
75
  buildExecutionRawLambda() {
58
76
  let query;
59
77
  if (this.queryBuilderState.isQuerySupported) {
@@ -116,7 +134,8 @@ export class QueryBuilderResultState {
116
134
  }
117
135
  *runQuery() {
118
136
  try {
119
- this.isRunningQuery = true;
137
+ this.setIsRunningQuery(true);
138
+ const currentHashCode = this.queryBuilderState.hashCode;
120
139
  const mapping = guaranteeNonNullable(this.queryBuilderState.mapping, 'Mapping is required to execute query');
121
140
  const runtime = guaranteeNonNullable(this.queryBuilderState.runtimeValue, `Runtime is required to execute query`);
122
141
  const query = this.buildExecutionRawLambda();
@@ -126,6 +145,7 @@ export class QueryBuilderResultState {
126
145
  const result = (yield promise);
127
146
  if (this.queryRunPromise === promise) {
128
147
  this.setExecutionResult(result);
148
+ this.latestRunHashCode = currentHashCode;
129
149
  this.setExecutionDuration(Date.now() - startTime);
130
150
  }
131
151
  }
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderResultState.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderResultState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAC;AAClD,OAAO,EAEL,iBAAiB,EACjB,QAAQ,EACR,oBAAoB,EACpB,WAAW,EACX,aAAa,EACb,wBAAwB,EACxB,yBAAyB,EACzB,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAIL,mBAAmB,EACnB,8BAA8B,EAC9B,kBAAkB,EAClB,gCAAgC,GACjC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AACjF,OAAO,EACL,4BAA4B,EAC5B,kBAAkB,GACnB,MAAM,2BAA2B,CAAC;AAE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C,iBAAiB,CAAC,iBAAiB,CAAC,YAAY,CAAC,kBAAkB,CACtE,OAAO,EACP,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAC/C,CAAC;gBACJ,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;aACvC;YAAC,MAAM;gBACN,aAAa;aACd;SACF;QAAC,OAAO,KAAK,EAAE;YACd,iBAAiB,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,GAAG,CAAC,KAAK,CAC/C,QAAQ,CAAC,MAAM,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,EACtD,KAAK,CACN,CAAC;YACF,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;SAC5D;gBAAS;YACR,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC;SAC/B;IACH,CAAC;CACF"}
1
+ {"version":3,"file":"QueryBuilderResultState.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderResultState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAChE,OAAO,EAEL,iBAAiB,EACjB,QAAQ,EACR,oBAAoB,EACpB,WAAW,EACX,aAAa,EACb,wBAAwB,EACxB,yBAAyB,EACzB,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAIL,mBAAmB,EACnB,8BAA8B,EAC9B,kBAAkB,EAClB,gCAAgC,GACjC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AACjF,OAAO,EACL,4BAA4B,EAC5B,kBAAkB,GACnB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,aAAa,GAAG,IAAI,CAAC;AAE3B,MAAM,OAAO,uBAAuB;IACz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EACP,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAC/C,CAA8C,CAAC;gBAClD,OAAO,GAAG,WAAW,CAAC,IAAI,CAAC;gBAC3B,IAAI,CAAC,kBAAkB,CAAC,YAAY,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;aACzD;iBAAM;gBACL,OAAO;oBACL,CAAC,MAAM,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,YAAY,CAAC,qBAAqB,CAChF,KAAK,EACL,OAAO,EACP,OAAO,EACP,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAC/C,CAAW,CAAC;aAChB;YACD,IAAI;gBACF,IAAI,CAAC,kBAAkB,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;gBAC5C,MAAM,IAAI,GACR,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,YAAY,CAAC,kBAAkB,CACtE,OAAO,EACP,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAC/C,CAAC;gBACJ,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;aACvC;YAAC,MAAM;gBACN,aAAa;aACd;SACF;QAAC,OAAO,KAAK,EAAE;YACd,iBAAiB,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,GAAG,CAAC,KAAK,CAC/C,QAAQ,CAAC,MAAM,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,EACtD,KAAK,CACN,CAAC;YACF,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;SAC5D;gBAAS;YACR,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC;SAC/B;IACH,CAAC;CACF"}
@@ -77,14 +77,11 @@ export declare abstract class QueryBuilderState {
77
77
  buildQuery(options?: {
78
78
  keepSourceInformation: boolean;
79
79
  }): RawLambda;
80
- initializeWithQuery(rawLambda: RawLambda): void;
80
+ initializeWithQuery(query: RawLambda): void;
81
81
  /**
82
82
  * Process the provided query, and rebuild the query builder state.
83
- *
84
- * @throws error if there is an issue building the compiled lambda or rebuilding the state.
85
- * consumers of function should handle the errors.
86
83
  */
87
- rebuildWithQuery(val: RawLambda): void;
84
+ rebuildWithQuery(query: RawLambda): void;
88
85
  saveQuery(onSaveQuery: (lambda: RawLambda) => Promise<void>): Promise<void>;
89
86
  compileQuery(): GeneratorFn<void>;
90
87
  get validationIssues(): string[] | undefined;
@@ -94,6 +91,7 @@ export declare abstract class QueryBuilderState {
94
91
  * see {@link INTERNAL__BasicQueryBuilderState} for more details
95
92
  */
96
93
  INTERNAL__toBasicQueryBuilderState(): QueryBuilderState;
94
+ get hashCode(): string;
97
95
  }
98
96
  /**
99
97
  * This type is used for testing and analytics operation in query builder.
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderState.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAGH,OAAO,EACL,KAAK,WAAW,EAMhB,WAAW,EACZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,+BAA+B,EAAE,MAAM,sDAAsD,CAAC;AACvG,OAAO,EAEL,2BAA2B,EAC5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAKvE,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EACL,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,iBAAiB,EAKtB,SAAS,EAGT,eAAe,EAIhB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2B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I;IAI1C,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI;IAI/C,IAAI,gBAAgB,IAAI,OAAO,CAE9B;IAED,gBAAgB,IAAI,IAAI;IAMxB,iBAAiB,IAAI,IAAI;IAsBzB,WAAW,CAAC,GAAG,EAAE,KAAK,GAAG,IAAI;IAS7B,aAAa,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAMjC,aAAa,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAKjC,UAAU,CAAC,OAAO,CAAC,EAAE;QAAE,qBAAqB,EAAE,OAAO,CAAA;KAAE,GAAG,SAAS;IAoBnE,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;IAK3C;;OAEG;IACH,gBAAgB,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;IA+ClC,SAAS,CACb,WAAW,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,OAAO,CAAC,IAAI,CAAC,GAChD,OAAO,CAAC,IAAI,CAAC;IAUf,YAAY,IAAI,WAAW,CAAC,IAAI,CAAC;IAoFlC,IAAI,gBAAgB,IAAI,MAAM,EAAE,GAAG,SAAS,CAE3C;IAED;;;;OAIG;IACH,kCAAkC,IAAI,iBAAiB;IAYvD,IAAI,QAAQ,IAAI,MAAM,CASrB;CACF;AAED;;;;;;;;;GASG;AACH,qBAAa,gCAAiC,SAAQ,iBAAiB;CAAG"}
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { action, flow, observable, makeObservable, computed } from 'mobx';
17
- import { LogEvent, assertErrorThrown, guaranteeNonNullable, guaranteeType, filterByType, ActionState, } from '@finos/legend-shared';
17
+ import { LogEvent, assertErrorThrown, guaranteeNonNullable, guaranteeType, filterByType, ActionState, hashArray, } from '@finos/legend-shared';
18
18
  import { QueryBuilderFilterState } from './filter/QueryBuilderFilterState.js';
19
19
  import { QueryBuilderFetchStructureState } from './fetch-structure/QueryBuilderFetchStructureState.js';
20
20
  import { QueryBuilderTextEditorMode, QueryBuilderTextEditorState, } from './QueryBuilderTextEditorState.js';
@@ -29,6 +29,7 @@ import { QueryBuilderParametersState } from './QueryBuilderParametersState.js';
29
29
  import { getQueryBuilderCoreFilterOperators } from './filter/QueryBuilderFilterOperatorLoader.js';
30
30
  import { QueryBuilderChangeDetectionState } from './QueryBuilderChangeDetectionState.js';
31
31
  import { QueryBuilderMilestoningState } from './QueryBuilderMilestoningState.js';
32
+ import { QUERY_BUILDER_HASH_STRUCTURE } from '../graphManager/QueryBuilderHashUtils.js';
32
33
  export class QueryBuilderState {
33
34
  applicationStore;
34
35
  graphManagerState;
@@ -87,6 +88,7 @@ export class QueryBuilderState {
87
88
  rebuildWithQuery: action,
88
89
  saveQuery: action,
89
90
  compileQuery: flow,
91
+ hashCode: computed,
90
92
  });
91
93
  this.applicationStore = applicationStore;
92
94
  this.graphManagerState = graphManagerState;
@@ -193,9 +195,22 @@ export class QueryBuilderState {
193
195
  keepSourceInformation: Boolean(options?.keepSourceInformation),
194
196
  }), this.graphManagerState);
195
197
  }
196
- initializeWithQuery(rawLambda) {
198
+ initializeWithQuery(query) {
199
+ this.rebuildWithQuery(query);
200
+ this.changeDetectionState.initialize(query);
201
+ }
202
+ /**
203
+ * Process the provided query, and rebuild the query builder state.
204
+ */
205
+ rebuildWithQuery(query) {
197
206
  try {
198
- this.rebuildWithQuery(rawLambda);
207
+ this.resetQueryResult();
208
+ this.resetQueryContent();
209
+ if (!isStubbed_RawLambda(query)) {
210
+ const valueSpec = observe_ValueSpecification(this.graphManagerState.graphManager.buildValueSpecification(this.graphManagerState.graphManager.serializeRawValueSpecification(query), this.graphManagerState.graph), this.observableContext);
211
+ const compiledValueSpecification = guaranteeType(valueSpec, LambdaFunctionInstanceValue, `Can't build query state: query builder only support lambda`);
212
+ processQueryLambdaFunction(guaranteeNonNullable(compiledValueSpecification.values[0]), this);
213
+ }
199
214
  if (this.parametersState.parameterStates.length > 0) {
200
215
  this.setShowParametersPanel(true);
201
216
  }
@@ -205,33 +220,18 @@ export class QueryBuilderState {
205
220
  this.resetQueryContent();
206
221
  this.resetQueryResult();
207
222
  this.unsupportedQueryState.setLambdaError(error);
208
- this.unsupportedQueryState.setRawLambda(rawLambda);
223
+ this.unsupportedQueryState.setRawLambda(query);
209
224
  this.setClass(undefined);
210
- const parameters = buildLambdaVariableExpressions(rawLambda, this.graphManagerState)
225
+ const parameters = buildLambdaVariableExpressions(query, this.graphManagerState)
211
226
  .map((param) => observe_ValueSpecification(param, this.observableContext))
212
227
  .filter(filterByType(VariableExpression));
213
228
  processParameters(parameters, this);
214
229
  }
215
230
  }
216
- /**
217
- * Process the provided query, and rebuild the query builder state.
218
- *
219
- * @throws error if there is an issue building the compiled lambda or rebuilding the state.
220
- * consumers of function should handle the errors.
221
- */
222
- rebuildWithQuery(val) {
223
- this.resetQueryResult();
224
- this.resetQueryContent();
225
- if (!isStubbed_RawLambda(val)) {
226
- const valueSpec = observe_ValueSpecification(this.graphManagerState.graphManager.buildValueSpecification(this.graphManagerState.graphManager.serializeRawValueSpecification(val), this.graphManagerState.graph), this.observableContext);
227
- const compiledValueSpecification = guaranteeType(valueSpec, LambdaFunctionInstanceValue, `Can't build query state: query builder only support lambda`);
228
- processQueryLambdaFunction(guaranteeNonNullable(compiledValueSpecification.values[0]), this);
229
- }
230
- }
231
231
  async saveQuery(onSaveQuery) {
232
232
  try {
233
- const rawLambda = this.buildQuery();
234
- await onSaveQuery(rawLambda);
233
+ const query = this.buildQuery();
234
+ await onSaveQuery(query);
235
235
  }
236
236
  catch (error) {
237
237
  assertErrorThrown(error);
@@ -318,6 +318,16 @@ export class QueryBuilderState {
318
318
  basicState.runtimeValue = this.runtimeValue;
319
319
  return basicState;
320
320
  }
321
+ get hashCode() {
322
+ return hashArray([
323
+ QUERY_BUILDER_HASH_STRUCTURE.QUERY_BUILDER_STATE,
324
+ this.unsupportedQueryState,
325
+ this.milestoningState,
326
+ this.parametersState,
327
+ this.filterState,
328
+ this.fetchStructureState.implementation,
329
+ ]);
330
+ }
321
331
  }
322
332
  /**
323
333
  * This type is used for testing and analytics operation in query builder.