@finos/legend-query-builder 0.4.4 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (295) hide show
  1. package/lib/components/QueryBuilder.d.ts +1 -0
  2. package/lib/components/QueryBuilder.d.ts.map +1 -1
  3. package/lib/components/QueryBuilder.js +11 -2
  4. package/lib/components/QueryBuilder.js.map +1 -1
  5. package/lib/components/QueryBuilderConstantExpressionPanel.d.ts +23 -0
  6. package/lib/components/QueryBuilderConstantExpressionPanel.d.ts.map +1 -0
  7. package/lib/components/QueryBuilderConstantExpressionPanel.js +105 -0
  8. package/lib/components/QueryBuilderConstantExpressionPanel.js.map +1 -0
  9. package/lib/components/QueryBuilderDiffPanel.d.ts +1 -0
  10. package/lib/components/QueryBuilderDiffPanel.d.ts.map +1 -1
  11. package/lib/components/QueryBuilderDiffPanel.js +1 -2
  12. package/lib/components/QueryBuilderDiffPanel.js.map +1 -1
  13. package/lib/components/QueryBuilderParametersPanel.d.ts +1 -9
  14. package/lib/components/QueryBuilderParametersPanel.d.ts.map +1 -1
  15. package/lib/components/QueryBuilderParametersPanel.js +10 -27
  16. package/lib/components/QueryBuilderParametersPanel.js.map +1 -1
  17. package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts +1 -0
  18. package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts.map +1 -1
  19. package/lib/components/QueryBuilderPropertyExpressionEditor.js +60 -12
  20. package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -1
  21. package/lib/components/QueryBuilderResultPanel.d.ts +1 -0
  22. package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
  23. package/lib/components/QueryBuilderSideBar.d.ts +3 -1
  24. package/lib/components/QueryBuilderSideBar.d.ts.map +1 -1
  25. package/lib/components/QueryBuilderSideBar.js +6 -14
  26. package/lib/components/QueryBuilderSideBar.js.map +1 -1
  27. package/lib/components/QueryBuilderTextEditor.d.ts +1 -0
  28. package/lib/components/QueryBuilderTextEditor.d.ts.map +1 -1
  29. package/lib/components/QueryBuilderUnsupportedQueryEditor.d.ts +1 -0
  30. package/lib/components/QueryBuilderUnsupportedQueryEditor.d.ts.map +1 -1
  31. package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts +1 -0
  32. package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts.map +1 -1
  33. package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts +1 -0
  34. package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts.map +1 -1
  35. package/lib/components/explorer/QueryBuilderMilestoningEditor.js +12 -18
  36. package/lib/components/explorer/QueryBuilderMilestoningEditor.js.map +1 -1
  37. package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts +1 -0
  38. package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts.map +1 -1
  39. package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.d.ts +1 -0
  40. package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.d.ts.map +1 -1
  41. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts +1 -0
  42. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts.map +1 -1
  43. package/lib/components/fetch-structure/{QueryBuilderOLAPGroupByPanel_.d.ts → QueryBuilderOLAPGroupByPanel.d.ts} +3 -2
  44. package/lib/components/fetch-structure/QueryBuilderOLAPGroupByPanel.d.ts.map +1 -0
  45. package/lib/components/fetch-structure/{QueryBuilderOLAPGroupByPanel_.js → QueryBuilderOLAPGroupByPanel.js} +2 -2
  46. package/lib/components/fetch-structure/QueryBuilderOLAPGroupByPanel.js.map +1 -0
  47. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts +1 -0
  48. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +1 -1
  49. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +9 -11
  50. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
  51. package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.d.ts +1 -0
  52. package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.d.ts.map +1 -1
  53. package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.js +1 -1
  54. package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.js.map +1 -1
  55. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts +1 -0
  56. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +1 -1
  57. package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts +1 -0
  58. package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
  59. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +4 -4
  60. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
  61. package/lib/components/filter/QueryBuilderFilterPanel.d.ts +1 -0
  62. package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +1 -1
  63. package/lib/components/filter/QueryBuilderFilterPanel.js +8 -9
  64. package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
  65. package/lib/components/shared/BasicValueSpecificationEditor.d.ts +12 -1
  66. package/lib/components/shared/BasicValueSpecificationEditor.d.ts.map +1 -1
  67. package/lib/components/shared/BasicValueSpecificationEditor.js +11 -7
  68. package/lib/components/shared/BasicValueSpecificationEditor.js.map +1 -1
  69. package/lib/components/shared/CustomDatePicker.d.ts.map +1 -1
  70. package/lib/components/shared/CustomDatePicker.js +3 -3
  71. package/lib/components/shared/CustomDatePicker.js.map +1 -1
  72. package/lib/components/shared/LambdaEditor.d.ts +1 -0
  73. package/lib/components/shared/LambdaEditor.d.ts.map +1 -1
  74. package/lib/components/shared/LambdaEditor.js +1 -15
  75. package/lib/components/shared/LambdaEditor.js.map +1 -1
  76. package/lib/components/shared/LambdaParameterValuesEditor.d.ts +1 -0
  77. package/lib/components/shared/LambdaParameterValuesEditor.d.ts.map +1 -1
  78. package/lib/components/shared/QueryBuilderVariableSelector.d.ts +37 -0
  79. package/lib/components/shared/QueryBuilderVariableSelector.d.ts.map +1 -0
  80. package/lib/components/shared/QueryBuilderVariableSelector.js +53 -0
  81. package/lib/components/shared/QueryBuilderVariableSelector.js.map +1 -0
  82. package/lib/components/watermark/QueryBuilderWatermark.d.ts +1 -0
  83. package/lib/components/watermark/QueryBuilderWatermark.d.ts.map +1 -1
  84. package/lib/components/watermark/QueryBuilderWatermark.js +9 -11
  85. package/lib/components/watermark/QueryBuilderWatermark.js.map +1 -1
  86. package/lib/graphManager/QueryBuilderHashUtils.d.ts +2 -0
  87. package/lib/graphManager/QueryBuilderHashUtils.d.ts.map +1 -1
  88. package/lib/graphManager/QueryBuilderHashUtils.js +2 -0
  89. package/lib/graphManager/QueryBuilderHashUtils.js.map +1 -1
  90. package/lib/index.css +1 -17
  91. package/lib/index.css.map +1 -1
  92. package/lib/package.json +6 -6
  93. package/lib/stores/QueryBuilderConfig.d.ts +1 -0
  94. package/lib/stores/QueryBuilderConfig.d.ts.map +1 -1
  95. package/lib/stores/QueryBuilderConfig.js +1 -0
  96. package/lib/stores/QueryBuilderConfig.js.map +1 -1
  97. package/lib/stores/QueryBuilderConstantsState.d.ts +43 -0
  98. package/lib/stores/QueryBuilderConstantsState.d.ts.map +1 -0
  99. package/lib/stores/QueryBuilderConstantsState.js +116 -0
  100. package/lib/stores/QueryBuilderConstantsState.js.map +1 -0
  101. package/lib/stores/QueryBuilderParametersState.d.ts +0 -4
  102. package/lib/stores/QueryBuilderParametersState.d.ts.map +1 -1
  103. package/lib/stores/QueryBuilderParametersState.js +0 -1
  104. package/lib/stores/QueryBuilderParametersState.js.map +1 -1
  105. package/lib/stores/QueryBuilderPropertyEditorState.d.ts +3 -10
  106. package/lib/stores/QueryBuilderPropertyEditorState.d.ts.map +1 -1
  107. package/lib/stores/QueryBuilderPropertyEditorState.js +6 -140
  108. package/lib/stores/QueryBuilderPropertyEditorState.js.map +1 -1
  109. package/lib/stores/QueryBuilderState.d.ts +10 -3
  110. package/lib/stores/QueryBuilderState.d.ts.map +1 -1
  111. package/lib/stores/QueryBuilderState.js +27 -4
  112. package/lib/stores/QueryBuilderState.js.map +1 -1
  113. package/lib/stores/QueryBuilderStateBuilder.d.ts +4 -3
  114. package/lib/stores/QueryBuilderStateBuilder.d.ts.map +1 -1
  115. package/lib/stores/QueryBuilderStateBuilder.js +50 -42
  116. package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
  117. package/lib/stores/QueryBuilderValueSpecificationBuilder.d.ts.map +1 -1
  118. package/lib/stores/QueryBuilderValueSpecificationBuilder.js +23 -25
  119. package/lib/stores/QueryBuilderValueSpecificationBuilder.js.map +1 -1
  120. package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts.map +1 -1
  121. package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js +14 -78
  122. package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js.map +1 -1
  123. package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts +2 -1
  124. package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts.map +1 -1
  125. package/lib/stores/QueryBuilderValueSpecificationHelper.js +13 -20
  126. package/lib/stores/QueryBuilderValueSpecificationHelper.js.map +1 -1
  127. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts +2 -1
  128. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts.map +1 -1
  129. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js.map +1 -1
  130. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts +2 -1
  131. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts.map +1 -1
  132. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js +4 -0
  133. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js.map +1 -1
  134. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.d.ts +3 -3
  135. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.d.ts.map +1 -1
  136. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js +4 -4
  137. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js.map +1 -1
  138. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts +3 -2
  139. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
  140. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +15 -2
  141. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
  142. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.d.ts +3 -3
  143. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.d.ts.map +1 -1
  144. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.js +6 -6
  145. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.js.map +1 -1
  146. package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByOperatorLoader_.d.ts → QueryBuilderOLAPGroupByOperatorLoader.d.ts} +1 -1
  147. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader.d.ts.map +1 -0
  148. package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByOperatorLoader_.js → QueryBuilderOLAPGroupByOperatorLoader.js} +1 -1
  149. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader.js.map +1 -0
  150. package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByState_.d.ts → QueryBuilderOLAPGroupByState.d.ts} +1 -1
  151. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByState.d.ts.map +1 -0
  152. package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByState_.js → QueryBuilderOLAPGroupByState.js} +1 -1
  153. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByState.js.map +1 -0
  154. package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByStateBuilder_.d.ts → QueryBuilderOLAPGroupByStateBuilder.d.ts} +3 -3
  155. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByStateBuilder.d.ts.map +1 -0
  156. package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByStateBuilder_.js → QueryBuilderOLAPGroupByStateBuilder.js} +4 -4
  157. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByStateBuilder.js.map +1 -0
  158. package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByValueSpecificationBuilder_.d.ts → QueryBuilderOLAPGroupByValueSpecificationBuilder.d.ts} +2 -2
  159. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByValueSpecificationBuilder.d.ts.map +1 -0
  160. package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByValueSpecificationBuilder_.js → QueryBuilderOLAPGroupByValueSpecificationBuilder.js} +2 -2
  161. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByValueSpecificationBuilder.js.map +1 -0
  162. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts +2 -1
  163. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts.map +1 -1
  164. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js +9 -1
  165. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js.map +1 -1
  166. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js +1 -1
  167. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js.map +1 -1
  168. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.d.ts +2 -1
  169. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.d.ts.map +1 -1
  170. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js +4 -0
  171. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js.map +1 -1
  172. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts +5 -5
  173. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts.map +1 -1
  174. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js +10 -10
  175. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js.map +1 -1
  176. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js +1 -1
  177. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -1
  178. package/lib/stores/filter/QueryBuilderFilterState.d.ts +2 -1
  179. package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +1 -1
  180. package/lib/stores/filter/QueryBuilderFilterState.js +9 -1
  181. package/lib/stores/filter/QueryBuilderFilterState.js.map +1 -1
  182. package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.d.ts +2 -2
  183. package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.d.ts.map +1 -1
  184. package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js +6 -4
  185. package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js.map +1 -1
  186. package/lib/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.d.ts +27 -0
  187. package/lib/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.d.ts.map +1 -0
  188. package/lib/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.js +93 -0
  189. package/lib/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.js.map +1 -0
  190. package/lib/stores/milestoning/QueryBuilderBusinessTemporalMilestoningImplementation.d.ts +26 -0
  191. package/lib/stores/milestoning/QueryBuilderBusinessTemporalMilestoningImplementation.d.ts.map +1 -0
  192. package/lib/stores/milestoning/QueryBuilderBusinessTemporalMilestoningImplementation.js +60 -0
  193. package/lib/stores/milestoning/QueryBuilderBusinessTemporalMilestoningImplementation.js.map +1 -0
  194. package/lib/stores/milestoning/QueryBuilderMilestoningHelper.d.ts +70 -0
  195. package/lib/stores/milestoning/QueryBuilderMilestoningHelper.d.ts.map +1 -0
  196. package/lib/stores/milestoning/QueryBuilderMilestoningHelper.js +199 -0
  197. package/lib/stores/milestoning/QueryBuilderMilestoningHelper.js.map +1 -0
  198. package/lib/stores/milestoning/QueryBuilderMilestoningImplementation.d.ts +49 -0
  199. package/lib/stores/milestoning/QueryBuilderMilestoningImplementation.d.ts.map +1 -0
  200. package/lib/stores/milestoning/QueryBuilderMilestoningImplementation.js +24 -0
  201. package/lib/stores/milestoning/QueryBuilderMilestoningImplementation.js.map +1 -0
  202. package/lib/stores/{QueryBuilderMilestoningState.d.ts → milestoning/QueryBuilderMilestoningState.d.ts} +7 -2
  203. package/lib/stores/milestoning/QueryBuilderMilestoningState.d.ts.map +1 -0
  204. package/lib/stores/{QueryBuilderMilestoningState.js → milestoning/QueryBuilderMilestoningState.js} +30 -20
  205. package/lib/stores/milestoning/QueryBuilderMilestoningState.js.map +1 -0
  206. package/lib/stores/milestoning/QueryBuilderProcessingTemporalMilestoningImplementation.d.ts +26 -0
  207. package/lib/stores/milestoning/QueryBuilderProcessingTemporalMilestoningImplementation.d.ts.map +1 -0
  208. package/lib/stores/milestoning/QueryBuilderProcessingTemporalMilestoningImplementation.js +55 -0
  209. package/lib/stores/milestoning/QueryBuilderProcessingTemporalMilestoningImplementation.js.map +1 -0
  210. package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts +3 -1
  211. package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts.map +1 -1
  212. package/lib/stores/shared/ValueSpecificationEditorHelper.js +58 -2
  213. package/lib/stores/shared/ValueSpecificationEditorHelper.js.map +1 -1
  214. package/lib/stores/watermark/QueryBuilderWatermarkState.d.ts +2 -1
  215. package/lib/stores/watermark/QueryBuilderWatermarkState.d.ts.map +1 -1
  216. package/lib/stores/watermark/QueryBuilderWatermarkState.js +6 -0
  217. package/lib/stores/watermark/QueryBuilderWatermarkState.js.map +1 -1
  218. package/lib/stores/watermark/QueryBuilderWatermarkStateBuilder.d.ts +2 -2
  219. package/lib/stores/watermark/QueryBuilderWatermarkStateBuilder.d.ts.map +1 -1
  220. package/lib/stores/watermark/QueryBuilderWatermarkStateBuilder.js +2 -2
  221. package/lib/stores/watermark/QueryBuilderWatermarkStateBuilder.js.map +1 -1
  222. package/lib/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.d.ts +2 -2
  223. package/lib/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.d.ts.map +1 -1
  224. package/lib/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.js +7 -4
  225. package/lib/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.js.map +1 -1
  226. package/lib/stores/workflows/ServiceQueryBuilderState.js +1 -1
  227. package/lib/stores/workflows/ServiceQueryBuilderState.js.map +1 -1
  228. package/package.json +13 -13
  229. package/src/components/QueryBuilder.tsx +38 -0
  230. package/src/components/QueryBuilderConstantExpressionPanel.tsx +291 -0
  231. package/src/components/QueryBuilderDiffPanel.tsx +0 -2
  232. package/src/components/QueryBuilderParametersPanel.tsx +29 -103
  233. package/src/components/QueryBuilderPropertyExpressionEditor.tsx +119 -36
  234. package/src/components/QueryBuilderSideBar.tsx +5 -22
  235. package/src/components/explorer/QueryBuilderMilestoningEditor.tsx +29 -39
  236. package/src/components/fetch-structure/{QueryBuilderOLAPGroupByPanel_.tsx → QueryBuilderOLAPGroupByPanel.tsx} +1 -1
  237. package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +18 -19
  238. package/src/components/fetch-structure/QueryBuilderPostTDSPanel.tsx +1 -1
  239. package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +9 -9
  240. package/src/components/filter/QueryBuilderFilterPanel.tsx +16 -17
  241. package/src/components/shared/BasicValueSpecificationEditor.tsx +47 -22
  242. package/src/components/shared/CustomDatePicker.tsx +3 -2
  243. package/src/components/shared/LambdaEditor.tsx +0 -15
  244. package/src/components/shared/QueryBuilderVariableSelector.tsx +193 -0
  245. package/src/components/watermark/QueryBuilderWatermark.tsx +19 -31
  246. package/src/graphManager/QueryBuilderHashUtils.ts +2 -0
  247. package/src/stores/QueryBuilderConfig.ts +1 -0
  248. package/src/stores/QueryBuilderConstantsState.ts +173 -0
  249. package/src/stores/QueryBuilderParametersState.ts +0 -6
  250. package/src/stores/QueryBuilderPropertyEditorState.ts +6 -235
  251. package/src/stores/QueryBuilderState.ts +36 -4
  252. package/src/stores/QueryBuilderStateBuilder.ts +111 -52
  253. package/src/stores/QueryBuilderValueSpecificationBuilder.ts +34 -51
  254. package/src/stores/QueryBuilderValueSpecificationBuilderHelper.ts +16 -105
  255. package/src/stores/QueryBuilderValueSpecificationHelper.ts +23 -29
  256. package/src/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.ts +2 -0
  257. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts +14 -2
  258. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.ts +5 -0
  259. package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +21 -4
  260. package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.ts +7 -0
  261. package/src/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByOperatorLoader_.ts → QueryBuilderOLAPGroupByOperatorLoader.ts} +0 -0
  262. package/src/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByState_.ts → QueryBuilderOLAPGroupByState.ts} +0 -0
  263. package/src/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByStateBuilder_.ts → QueryBuilderOLAPGroupByStateBuilder.ts} +3 -1
  264. package/src/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByValueSpecificationBuilder_.ts → QueryBuilderOLAPGroupByValueSpecificationBuilder.ts} +1 -1
  265. package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.ts +13 -0
  266. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.ts +1 -1
  267. package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.ts +12 -0
  268. package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts +11 -0
  269. package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +1 -1
  270. package/src/stores/filter/QueryBuilderFilterState.ts +13 -0
  271. package/src/stores/filter/QueryBuilderFilterValueSpecificationBuilder.ts +10 -5
  272. package/src/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.ts +165 -0
  273. package/src/stores/milestoning/QueryBuilderBusinessTemporalMilestoningImplementation.ts +96 -0
  274. package/src/stores/milestoning/QueryBuilderMilestoningHelper.ts +311 -0
  275. package/src/stores/milestoning/QueryBuilderMilestoningImplementation.ts +77 -0
  276. package/src/stores/{QueryBuilderMilestoningState.ts → milestoning/QueryBuilderMilestoningState.ts} +66 -39
  277. package/src/stores/milestoning/QueryBuilderProcessingTemporalMilestoningImplementation.ts +88 -0
  278. package/src/stores/shared/ValueSpecificationEditorHelper.ts +84 -2
  279. package/src/stores/watermark/QueryBuilderWatermarkState.ts +8 -0
  280. package/src/stores/watermark/QueryBuilderWatermarkStateBuilder.ts +3 -0
  281. package/src/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.ts +11 -5
  282. package/src/stores/workflows/ServiceQueryBuilderState.ts +1 -1
  283. package/tsconfig.json +14 -6
  284. package/lib/components/fetch-structure/QueryBuilderOLAPGroupByPanel_.d.ts.map +0 -1
  285. package/lib/components/fetch-structure/QueryBuilderOLAPGroupByPanel_.js.map +0 -1
  286. package/lib/stores/QueryBuilderMilestoningState.d.ts.map +0 -1
  287. package/lib/stores/QueryBuilderMilestoningState.js.map +0 -1
  288. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader_.d.ts.map +0 -1
  289. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader_.js.map +0 -1
  290. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByStateBuilder_.d.ts.map +0 -1
  291. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByStateBuilder_.js.map +0 -1
  292. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByState_.d.ts.map +0 -1
  293. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByState_.js.map +0 -1
  294. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByValueSpecificationBuilder_.d.ts.map +0 -1
  295. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByValueSpecificationBuilder_.js.map +0 -1
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-query-builder",
3
- "version": "0.4.4",
3
+ "version": "0.6.0",
4
4
  "description": "Legend query builder core",
5
5
  "keywords": [
6
6
  "legend",
@@ -53,8 +53,8 @@
53
53
  "@testing-library/react": "13.4.0",
54
54
  "@types/papaparse": "5.3.5",
55
55
  "@types/react": "18.0.25",
56
- "@types/react-dom": "18.0.8",
57
- "mobx": "6.6.2",
56
+ "@types/react-dom": "18.0.9",
57
+ "mobx": "6.7.0",
58
58
  "mobx-react-lite": "3.4.0",
59
59
  "monaco-editor": "0.34.1",
60
60
  "papaparse": "5.3.2",
@@ -65,13 +65,13 @@
65
65
  },
66
66
  "devDependencies": {
67
67
  "@finos/legend-dev-utils": "workspace:*",
68
- "@jest/globals": "29.3.0",
68
+ "@jest/globals": "29.3.1",
69
69
  "cross-env": "7.0.3",
70
70
  "eslint": "8.27.0",
71
- "jest": "29.3.0",
71
+ "jest": "29.3.1",
72
72
  "npm-run-all": "4.1.5",
73
73
  "rimraf": "3.0.2",
74
- "sass": "1.56.0",
74
+ "sass": "1.56.1",
75
75
  "typescript": "4.8.4"
76
76
  },
77
77
  "peerDependencies": {
@@ -19,6 +19,7 @@ export declare enum QUERY_BUILDER_SOURCE_ID_LABEL {
19
19
  }
20
20
  export declare const DEFAULT_LAMBDA_VARIABLE_NAME = "x";
21
21
  export declare const DEFAULT_VARIABLE_NAME = "var";
22
+ export declare const DEFAULT_CONSTANT_VARIABLE_NAME = "c_var";
22
23
  export declare const DEFAULT_POST_FILTER_LAMBDA_VARIABLE_NAME = "row";
23
24
  export declare const QUERY_BUILDER_PROPERTY_SEARCH_MAX_DEPTH = 5;
24
25
  export declare const QUERY_BUILDER_PROPERTY_SEARCH_MAX_NODES = 10000;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderConfig.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,6BAA6B;IACvC,aAAa,kBAAkB;IAC/B,UAAU,eAAe;CAC1B;AAED,eAAO,MAAM,4BAA4B,MAAM,CAAC;AAChD,eAAO,MAAM,qBAAqB,QAAQ,CAAC;AAC3C,eAAO,MAAM,wCAAwC,QAAQ,CAAC;AAE9D,eAAO,MAAM,uCAAuC,IAAI,CAAC;AACzD,eAAO,MAAM,uCAAuC,QAAQ,CAAC;AAC7D,eAAO,MAAM,2CAA2C,MAAM,CAAC;AAE/D,oBAAY,kCAAkC;IAC5C,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,IAAI,SAAS;CACd"}
1
+ {"version":3,"file":"QueryBuilderConfig.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,6BAA6B;IACvC,aAAa,kBAAkB;IAC/B,UAAU,eAAe;CAC1B;AAED,eAAO,MAAM,4BAA4B,MAAM,CAAC;AAChD,eAAO,MAAM,qBAAqB,QAAQ,CAAC;AAC3C,eAAO,MAAM,8BAA8B,UAAU,CAAC;AACtD,eAAO,MAAM,wCAAwC,QAAQ,CAAC;AAE9D,eAAO,MAAM,uCAAuC,IAAI,CAAC;AACzD,eAAO,MAAM,uCAAuC,QAAQ,CAAC;AAC7D,eAAO,MAAM,2CAA2C,MAAM,CAAC;AAE/D,oBAAY,kCAAkC;IAC5C,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,IAAI,SAAS;CACd"}
@@ -20,6 +20,7 @@ export var QUERY_BUILDER_SOURCE_ID_LABEL;
20
20
  })(QUERY_BUILDER_SOURCE_ID_LABEL = QUERY_BUILDER_SOURCE_ID_LABEL || (QUERY_BUILDER_SOURCE_ID_LABEL = {}));
21
21
  export const DEFAULT_LAMBDA_VARIABLE_NAME = 'x';
22
22
  export const DEFAULT_VARIABLE_NAME = 'var';
23
+ export const DEFAULT_CONSTANT_VARIABLE_NAME = 'c_var';
23
24
  export const DEFAULT_POST_FILTER_LAMBDA_VARIABLE_NAME = 'row';
24
25
  export const QUERY_BUILDER_PROPERTY_SEARCH_MAX_DEPTH = 5;
25
26
  export const QUERY_BUILDER_PROPERTY_SEARCH_MAX_NODES = 10000;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderConfig.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,6BAGX;AAHD,WAAY,6BAA6B;IACvC,gEAA+B,CAAA;IAC/B,0DAAyB,CAAA;AAC3B,CAAC,EAHW,6BA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ND,WAAY,kCAAkC;IAC5C,qDAAe,CAAA;IACf,uDAAiB,CAAA;IACjB,yDAAmB,CAAA;IACnB,uDAAiB,CAAA;IACjB,mDAAa,CAAA;AACf,CAAC,EANW,kCAAkC,GAAlC,kCAAkC,KAAlC,kCAAkC,QAM7C"}
@@ -0,0 +1,43 @@
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
+ import { type Type, type ValueSpecification, VariableExpression } from '@finos/legend-graph';
17
+ import { type Hashable } from '@finos/legend-shared';
18
+ import type { QueryBuilderState } from './QueryBuilderState.js';
19
+ export declare class QueryBuilderConstantExpressionState implements Hashable {
20
+ readonly queryBuilderState: QueryBuilderState;
21
+ readonly uuid: string;
22
+ variable: VariableExpression;
23
+ value: ValueSpecification;
24
+ constructor(queryBuilderState: QueryBuilderState, variable: VariableExpression, value: ValueSpecification);
25
+ changeValSpecType(type: Type): void;
26
+ setValueSpec(value: ValueSpecification): void;
27
+ get hashCode(): string;
28
+ }
29
+ export declare class QueryBuilderConstantsState implements Hashable {
30
+ readonly queryBuilderState: QueryBuilderState;
31
+ showConstantPanel: boolean;
32
+ constants: QueryBuilderConstantExpressionState[];
33
+ selectedConstant: QueryBuilderConstantExpressionState | undefined;
34
+ constructor(queryBuilderState: QueryBuilderState);
35
+ get isEmpty(): boolean;
36
+ setShowConstantPanel(val: boolean): void;
37
+ addConstant(val: QueryBuilderConstantExpressionState): void;
38
+ removeConstant(val: QueryBuilderConstantExpressionState): void;
39
+ setSelectedConstant(val: QueryBuilderConstantExpressionState | undefined): void;
40
+ isValueSpecConstant(value: ValueSpecification): boolean;
41
+ get hashCode(): string;
42
+ }
43
+ //# sourceMappingURL=QueryBuilderConstantsState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryBuilderConstantsState.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderConstantsState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,IAAI,EACT,KAAK,kBAAkB,EAIvB,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,QAAQ,EAOd,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAIhE,qBAAa,mCAAoC,YAAW,QAAQ;IAClE,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C,QAAQ,CAAC,IAAI,SAAU;IACvB,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,KAAK,EAAE,kBAAkB,CAAC;gBAGxB,iBAAiB,EAAE,iBAAiB,EACpC,QAAQ,EAAE,kBAAkB,EAC5B,KAAK,EAAE,kBAAkB;IAoB3B,iBAAiB,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI;IAgBnC,YAAY,CAAC,KAAK,EAAE,kBAAkB,GAAG,IAAI;IAsB7C,IAAI,QAAQ,IAAI,MAAM,CAMrB;CACF;AAED,qBAAa,0BAA2B,YAAW,QAAQ;IACzD,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C,iBAAiB,UAAS;IAC1B,SAAS,EAAE,mCAAmC,EAAE,CAAM;IACtD,gBAAgB,EAAE,mCAAmC,GAAG,SAAS,CAAC;gBAEtD,iBAAiB,EAAE,iBAAiB;IAchD,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,oBAAoB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAIxC,WAAW,CAAC,GAAG,EAAE,mCAAmC,GAAG,IAAI;IAI3D,cAAc,CAAC,GAAG,EAAE,mCAAmC,GAAG,IAAI;IAI9D,mBAAmB,CACjB,GAAG,EAAE,mCAAmC,GAAG,SAAS,GACnD,IAAI;IAIP,mBAAmB,CAAC,KAAK,EAAE,kBAAkB,GAAG,OAAO;IASvD,IAAI,QAAQ,IAAI,MAAM,CAKrB;CACF"}
@@ -0,0 +1,116 @@
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
+ import { GenericType, GenericTypeExplicitReference, observe_ValueSpecification, VariableExpression, } from '@finos/legend-graph';
17
+ import { hashArray, deleteEntry, addUniqueEntry, IllegalStateError, uuid, assertErrorThrown, } from '@finos/legend-shared';
18
+ import { action, makeObservable, observable } from 'mobx';
19
+ import { QUERY_BUILDER_HASH_STRUCTURE } from '../graphManager/QueryBuilderHashUtils.js';
20
+ import { buildDefaultInstanceValue } from './shared/ValueSpecificationEditorHelper.js';
21
+ import { valueSpecification_setGenericType } from './shared/ValueSpecificationModifierHelper.js';
22
+ export class QueryBuilderConstantExpressionState {
23
+ queryBuilderState;
24
+ uuid = uuid();
25
+ variable;
26
+ value;
27
+ constructor(queryBuilderState, variable, value) {
28
+ makeObservable(this, {
29
+ variable: observable,
30
+ value: observable,
31
+ setValueSpec: action,
32
+ changeValSpecType: action,
33
+ });
34
+ this.queryBuilderState = queryBuilderState;
35
+ this.value = observe_ValueSpecification(value, this.queryBuilderState.observableContext);
36
+ observe_ValueSpecification(variable, this.queryBuilderState.observableContext);
37
+ this.variable = variable;
38
+ }
39
+ changeValSpecType(type) {
40
+ const variableType = this.value.genericType?.value.rawType;
41
+ if (variableType !== type) {
42
+ try {
43
+ const valSpec = buildDefaultInstanceValue(this.queryBuilderState.graphManagerState.graph, type);
44
+ this.setValueSpec(valSpec);
45
+ }
46
+ catch (error) {
47
+ assertErrorThrown(error);
48
+ this.queryBuilderState.applicationStore.notifyError(error.message);
49
+ }
50
+ }
51
+ }
52
+ setValueSpec(value) {
53
+ if (value instanceof VariableExpression) {
54
+ throw new IllegalStateError('Can not assign a parameter to another parameter');
55
+ }
56
+ this.value = observe_ValueSpecification(value, this.queryBuilderState.observableContext);
57
+ const valueSpecType = value.genericType?.value.rawType;
58
+ if (valueSpecType &&
59
+ valueSpecType !== this.variable.genericType?.value.rawType) {
60
+ valueSpecification_setGenericType(this.variable, GenericTypeExplicitReference.create(new GenericType(valueSpecType)));
61
+ }
62
+ }
63
+ get hashCode() {
64
+ return hashArray([
65
+ QUERY_BUILDER_HASH_STRUCTURE.CONSTANT_EXPRESSION_STATE,
66
+ this.variable.name,
67
+ this.value,
68
+ ]);
69
+ }
70
+ }
71
+ export class QueryBuilderConstantsState {
72
+ queryBuilderState;
73
+ showConstantPanel = false;
74
+ constants = [];
75
+ selectedConstant;
76
+ constructor(queryBuilderState) {
77
+ this.queryBuilderState = queryBuilderState;
78
+ makeObservable(this, {
79
+ constants: observable,
80
+ showConstantPanel: observable,
81
+ selectedConstant: observable,
82
+ addConstant: action,
83
+ removeConstant: action,
84
+ setShowConstantPanel: action,
85
+ setSelectedConstant: action,
86
+ });
87
+ }
88
+ get isEmpty() {
89
+ return !this.constants.length;
90
+ }
91
+ setShowConstantPanel(val) {
92
+ this.showConstantPanel = val;
93
+ }
94
+ addConstant(val) {
95
+ addUniqueEntry(this.constants, val);
96
+ }
97
+ removeConstant(val) {
98
+ deleteEntry(this.constants, val);
99
+ }
100
+ setSelectedConstant(val) {
101
+ this.selectedConstant = val;
102
+ }
103
+ isValueSpecConstant(value) {
104
+ if (value instanceof VariableExpression) {
105
+ return Boolean(this.constants.find((v) => v.variable.name === value.name));
106
+ }
107
+ return false;
108
+ }
109
+ get hashCode() {
110
+ return hashArray([
111
+ QUERY_BUILDER_HASH_STRUCTURE.CONSTANT_STATE,
112
+ hashArray(this.constants),
113
+ ]);
114
+ }
115
+ }
116
+ //# sourceMappingURL=QueryBuilderConstantsState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryBuilderConstantsState.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderConstantsState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,WAAW,EACX,4BAA4B,EAC5B,0BAA0B,EAC1B,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,SAAS,EACT,WAAW,EACX,cAAc,EACd,iBAAiB,EACjB,IAAI,EACJ,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AAExF,OAAO,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AACvF,OAAO,EAAE,iCAAiC,EAAE,MAAM,8CAA8C,CAAC;AAEjG,MAAM,OAAO,mCAAmC;IACrC,iBAAiB,CAAoB;IACrC,IAAI,GAAG,IAAI,EAAE,CAAC;IACvB,QAAQ,CAAqB;IAC7B,KAAK,CAAqB;IAE1B,YACE,iBAAoC,EACpC,QAA4B,EAC5B,KAAyB;QAEzB,cAAc,CAAC,IAAI,EAAE;YACnB,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,UAAU;YACjB,YAAY,EAAE,MAAM;YACpB,iBAAiB,EAAE,MAAM;SAC1B,CAAC,CAAC;QACH,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,KAA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Q,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,CAAC,CAC3D,CAAC;SACH;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,4BAA4B,CAAC,cAAc;YAC3C,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC;SAC1B,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -16,10 +16,6 @@
16
16
  import { type Hashable } from '@finos/legend-shared';
17
17
  import type { QueryBuilderState } from './QueryBuilderState.js';
18
18
  import { type LambdaParameterState, LambdaParametersState } from './shared/LambdaParameterState.js';
19
- export declare const QUERY_BUILDER_PARAMETER_DND_TYPE = "PARAMETER";
20
- export interface QueryBuilderParameterDragSource {
21
- variable: LambdaParameterState;
22
- }
23
19
  export declare class QueryBuilderParametersState extends LambdaParametersState implements Hashable {
24
20
  readonly queryBuilderState: QueryBuilderState;
25
21
  selectedParameter: LambdaParameterState | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderParametersState.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderParametersState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAGhE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EACL,KAAK,oBAAoB,EACzB,qBAAqB,EACtB,MAAM,kCAAkC,CAAC;AAE1C,eAAO,MAAM,gCAAgC,cAAc,CAAC;AAE5D,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,EAAE,oBAAoB,CAAC;CAChC;AAED,qBAAa,2BACX,SAAQ,qBACR,YAAW,QAAQ;IAEnB,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAE9C,iBAAiB,EAAE,oBAAoB,GAAG,SAAS,CAAC;gBAExC,iBAAiB,EAAE,iBAAiB;IAiBhD,IAAa,QAAQ,IAAI,MAAM,CAK9B;IAED,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,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAGhE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EACL,KAAK,oBAAoB,EACzB,qBAAqB,EACtB,MAAM,kCAAkC,CAAC;AAE1C,qBAAa,2BACX,SAAQ,qBACR,YAAW,QAAQ;IAEnB,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAE9C,iBAAiB,EAAE,oBAAoB,GAAG,SAAS,CAAC;gBAExC,iBAAiB,EAAE,iBAAiB;IAiBhD,IAAa,QAAQ,IAAI,MAAM,CAK9B;IAED,oBAAoB,CAAC,GAAG,EAAE,oBAAoB,GAAG,SAAS,GAAG,IAAI;CAGlE"}
@@ -17,7 +17,6 @@ import { hashArray } from '@finos/legend-shared';
17
17
  import { observable, makeObservable, action, override } from 'mobx';
18
18
  import { QUERY_BUILDER_HASH_STRUCTURE } from '../graphManager/QueryBuilderHashUtils.js';
19
19
  import { LambdaParametersState, } from './shared/LambdaParameterState.js';
20
- export const QUERY_BUILDER_PARAMETER_DND_TYPE = 'PARAMETER';
21
20
  export class QueryBuilderParametersState extends LambdaParametersState {
22
21
  queryBuilderState;
23
22
  selectedParameter;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderParametersState.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderParametersState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAiB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE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AAO,2BACX,SAAQ,qBAAqB;IAGpB,iBAAiB,CAAoB;IAE9C,iBAAiB,CAAmC;IAEpD,YAAY,iBAAoC;QAC9C,KAAK,EAAE,CAAC;QAER,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"}
@@ -14,17 +14,9 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { type Hashable } from '@finos/legend-shared';
17
- import { type AbstractProperty, type ValueSpecification, type PureModel, AbstractPropertyExpression, DerivedProperty, VariableExpression, MILESTONING_STEREOTYPE } from '@finos/legend-graph';
17
+ import { type AbstractProperty, type ValueSpecification, type PureModel, AbstractPropertyExpression, DerivedProperty, VariableExpression } from '@finos/legend-graph';
18
18
  import type { QueryBuilderState } from './QueryBuilderState.js';
19
- export declare const getDerivedPropertyMilestoningSteoreotype: (property: DerivedProperty, graph: PureModel) => MILESTONING_STEREOTYPE | undefined;
20
19
  export declare const prettyPropertyName: (value: string) => string;
21
- /**
22
- * Generate a parameter value for the derived property given the index if the property is milestoned.
23
- *
24
- * This method considers different scenarios for milestoning and take into account date propagation
25
- * See https://github.com/finos/legend-studio/pull/891
26
- */
27
- export declare const generateMilestonedPropertyParameterValue: (derivedPropertyExpressionState: QueryBuilderDerivedPropertyExpressionState, idx: number) => ValueSpecification | undefined;
28
20
  export declare const getPropertyChainName: (propertyExpression: AbstractPropertyExpression, humanizePropertyName: boolean) => string;
29
21
  export declare const getPropertyPath: (propertyExpression: AbstractPropertyExpression) => string;
30
22
  /**
@@ -40,7 +32,8 @@ export declare class QueryBuilderDerivedPropertyExpressionState {
40
32
  readonly propertyExpression: AbstractPropertyExpression;
41
33
  readonly derivedProperty: DerivedProperty;
42
34
  readonly parameters: VariableExpression[];
43
- constructor(queryBuilderState: QueryBuilderState, propertyExpression: AbstractPropertyExpression);
35
+ readonly propertyExpressionState: QueryBuilderPropertyExpressionState;
36
+ constructor(queryBuilderState: QueryBuilderState, propertyExpression: AbstractPropertyExpression, propertyExpressionState: QueryBuilderPropertyExpressionState);
44
37
  get property(): AbstractProperty;
45
38
  get parameterValues(): ValueSpecification[];
46
39
  get isValid(): boolean;
@@ -1 +1 @@
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,EACd,0BAA0B,EAC1B,eAAe,EAOf,kBAAkB,EAElB,sBAAsB,EAcvB,MAAM,qBAAqB,CAAC;AAK7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAUhE,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,SA0IvB,C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AC9C,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;IAgE3C,IAAI,QAAQ,IAAI,MAAM,CAKrB;CACF"}
@@ -15,149 +15,13 @@
15
15
  */
16
16
  import { action, computed, makeObservable, observable } from 'mobx';
17
17
  import { getNullableFirstElement, guaranteeNonNullable, guaranteeType, hashArray, isCamelCase, prettyCamelCase, prettyCONSTName, } from '@finos/legend-shared';
18
- import { Class, AbstractPropertyExpression, DerivedProperty, Enumeration, EnumValueExplicitReference, EnumValueInstanceValue, InstanceValue, PrimitiveInstanceValue, PRIMITIVE_TYPE, VariableExpression, getMilestoneTemporalStereotype, MILESTONING_STEREOTYPE, SimpleFunctionExpression, matchFunctionName, TYPE_CAST_TOKEN, observe_AbstractPropertyExpression, GenericTypeExplicitReference, GenericType, BUSINESS_DATE_MILESTONING_PROPERTY_NAME, PROCESSING_DATE_MILESTONING_PROPERTY_NAME, INTERNAL__PropagatedValue, Association, getGeneratedMilestonedPropertiesForAssociation, PropertyExplicitReference, PrimitiveType, } from '@finos/legend-graph';
18
+ import { Class, AbstractPropertyExpression, DerivedProperty, Enumeration, EnumValueExplicitReference, EnumValueInstanceValue, InstanceValue, PrimitiveInstanceValue, VariableExpression, SimpleFunctionExpression, matchFunctionName, TYPE_CAST_TOKEN, observe_AbstractPropertyExpression, GenericTypeExplicitReference, GenericType, PropertyExplicitReference, PrimitiveType, } from '@finos/legend-graph';
19
19
  import { createNullishValue, generateDefaultValueForPrimitiveType, } from './QueryBuilderValueSpecificationHelper.js';
20
20
  import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../graphManager/QueryBuilderSupportedFunctions.js';
21
21
  import { QUERY_BUILDER_HASH_STRUCTURE } from '../graphManager/QueryBuilderHashUtils.js';
22
22
  import { propertyExpression_setFunc, functionExpression_setParametersValues, instanceValue_setValues, } from './shared/ValueSpecificationModifierHelper.js';
23
- export const getDerivedPropertyMilestoningSteoreotype = (property, graph) => {
24
- const owner = property._OWNER;
25
- if (owner instanceof Class) {
26
- return getMilestoneTemporalStereotype(owner, graph);
27
- }
28
- else if (owner instanceof Association) {
29
- const generatedMilestonedProperties = getGeneratedMilestonedPropertiesForAssociation(owner, property);
30
- if (generatedMilestonedProperties.length) {
31
- const ownerClass = generatedMilestonedProperties[0]?.genericType.value.rawType;
32
- return getMilestoneTemporalStereotype(guaranteeType(ownerClass, Class), graph);
33
- }
34
- }
35
- return undefined;
36
- };
37
- /**
38
- * Check if the parameter value of the milestoned property is
39
- * the same as those specified in global scope, so that we can
40
- * potentially replace them with propgated value.
41
- */
42
- const matchMilestoningParameterValue = (stereotype, idx, parameterValue, milestoningDate) => {
43
- const checkIfEquivalent = (param1, param2) => {
44
- if (param1 instanceof VariableExpression &&
45
- param2 instanceof VariableExpression) {
46
- return param1.name === param2.name;
47
- }
48
- else if (param1 instanceof PrimitiveInstanceValue &&
49
- param2 instanceof PrimitiveInstanceValue) {
50
- if (param1.genericType.value.rawType.name === PRIMITIVE_TYPE.LATESTDATE &&
51
- param2.genericType.value.rawType.name === PRIMITIVE_TYPE.LATESTDATE) {
52
- return true;
53
- }
54
- return (param1.genericType.value.rawType.name ===
55
- param2.genericType.value.rawType.name &&
56
- param1.values[0] === param2.values[0]);
57
- }
58
- return false;
59
- };
60
- switch (stereotype) {
61
- case MILESTONING_STEREOTYPE.BITEMPORAL:
62
- return ((idx === 0 &&
63
- checkIfEquivalent(parameterValue, milestoningDate.processingDate)) ||
64
- (idx === 1 &&
65
- checkIfEquivalent(parameterValue, milestoningDate.businessDate)));
66
- case MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL:
67
- return checkIfEquivalent(parameterValue, milestoningDate.processingDate);
68
- case MILESTONING_STEREOTYPE.BUSINESS_TEMPORAL:
69
- return checkIfEquivalent(parameterValue, milestoningDate.businessDate);
70
- default:
71
- }
72
- return false;
73
- };
23
+ import { generateMilestonedPropertyParameterValue } from './milestoning/QueryBuilderMilestoningHelper.js';
74
24
  export const prettyPropertyName = (value) => isCamelCase(value) ? prettyCamelCase(value) : prettyCONSTName(value);
75
- /**
76
- * Generate a parameter value for the derived property given the index if the property is milestoned.
77
- *
78
- * This method considers different scenarios for milestoning and take into account date propagation
79
- * See https://github.com/finos/legend-studio/pull/891
80
- */
81
- export const generateMilestonedPropertyParameterValue = (derivedPropertyExpressionState, idx) => {
82
- // Milestoning transformations should not be done on actual derived properties.
83
- if (derivedPropertyExpressionState.derivedProperty._OWNER.derivedProperties.includes(derivedPropertyExpressionState.derivedProperty)) {
84
- return undefined;
85
- }
86
- const milestoningState = derivedPropertyExpressionState.queryBuilderState.milestoningState;
87
- const temporalSource = getDerivedPropertyMilestoningSteoreotype(derivedPropertyExpressionState.derivedProperty, derivedPropertyExpressionState.queryBuilderState.graphManagerState.graph);
88
- const temporalTarget = derivedPropertyExpressionState.propertyExpression.func.value.genericType
89
- .value.rawType instanceof Class &&
90
- derivedPropertyExpressionState.propertyExpression.func.value._OWNER
91
- ._generatedMilestonedProperties.length !== 0
92
- ? getMilestoneTemporalStereotype(derivedPropertyExpressionState.propertyExpression.func.value
93
- .genericType.value.rawType, derivedPropertyExpressionState.queryBuilderState.graphManagerState
94
- .graph)
95
- : undefined;
96
- const shouldReturnMilestoningParameter = temporalTarget &&
97
- ((idx < derivedPropertyExpressionState.parameterValues.length &&
98
- (matchMilestoningParameterValue(temporalTarget, idx, guaranteeNonNullable(derivedPropertyExpressionState.parameterValues[idx]), milestoningState) ||
99
- /**
100
- * Checks if the given milestoning needs to be overwritten or not.
101
- * Specially, we would need to rewrite the query if the user passes a single parameter
102
- * to the `bitemporal` property expression with `processing temporal` source.
103
- */
104
- (getDerivedPropertyMilestoningSteoreotype(derivedPropertyExpressionState.derivedProperty, derivedPropertyExpressionState.queryBuilderState.graphManagerState
105
- .graph) === MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL &&
106
- temporalTarget === MILESTONING_STEREOTYPE.BITEMPORAL &&
107
- derivedPropertyExpressionState.parameterValues.length === 1))) ||
108
- idx >= derivedPropertyExpressionState.parameterValues.length);
109
- if (!shouldReturnMilestoningParameter) {
110
- return undefined;
111
- }
112
- switch (temporalTarget) {
113
- case MILESTONING_STEREOTYPE.BUSINESS_TEMPORAL: {
114
- if (!milestoningState.businessDate) {
115
- milestoningState.setBusinessDate(derivedPropertyExpressionState.queryBuilderState.milestoningState.buildMilestoningParameter(BUSINESS_DATE_MILESTONING_PROPERTY_NAME));
116
- }
117
- const parameter = new INTERNAL__PropagatedValue(() => guaranteeNonNullable(milestoningState.businessDate));
118
- return parameter;
119
- }
120
- case MILESTONING_STEREOTYPE.BITEMPORAL: {
121
- if (!milestoningState.processingDate) {
122
- milestoningState.setProcessingDate(derivedPropertyExpressionState.queryBuilderState.milestoningState.buildMilestoningParameter(PROCESSING_DATE_MILESTONING_PROPERTY_NAME));
123
- }
124
- if (!milestoningState.businessDate) {
125
- milestoningState.setBusinessDate(derivedPropertyExpressionState.queryBuilderState.milestoningState.buildMilestoningParameter(BUSINESS_DATE_MILESTONING_PROPERTY_NAME));
126
- }
127
- if (idx === 0) {
128
- if (temporalSource === MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL &&
129
- derivedPropertyExpressionState.parameterValues.length === 1) {
130
- return guaranteeType(derivedPropertyExpressionState.propertyExpression
131
- .parametersValues[0], AbstractPropertyExpression).parametersValues[1];
132
- }
133
- const parameter = new INTERNAL__PropagatedValue(() => guaranteeNonNullable(milestoningState.processingDate));
134
- return parameter;
135
- }
136
- else {
137
- if (temporalSource === MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL &&
138
- derivedPropertyExpressionState.parameterValues.length === 1) {
139
- return derivedPropertyExpressionState.parameterValues[0];
140
- }
141
- else if (temporalSource === MILESTONING_STEREOTYPE.BUSINESS_TEMPORAL &&
142
- derivedPropertyExpressionState.parameterValues.length === 1) {
143
- return guaranteeType(derivedPropertyExpressionState.propertyExpression
144
- .parametersValues[0], AbstractPropertyExpression).parametersValues[1];
145
- }
146
- const parameter = new INTERNAL__PropagatedValue(() => guaranteeNonNullable(milestoningState.businessDate));
147
- return parameter;
148
- }
149
- }
150
- case MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL: {
151
- if (!milestoningState.processingDate) {
152
- milestoningState.setProcessingDate(derivedPropertyExpressionState.queryBuilderState.milestoningState.buildMilestoningParameter(PROCESSING_DATE_MILESTONING_PROPERTY_NAME));
153
- }
154
- const parameter = new INTERNAL__PropagatedValue(() => guaranteeNonNullable(milestoningState.processingDate));
155
- return parameter;
156
- }
157
- default:
158
- return undefined;
159
- }
160
- };
161
25
  export const getPropertyChainName = (propertyExpression, humanizePropertyName) => {
162
26
  const propertyNameDecorator = humanizePropertyName
163
27
  ? prettyPropertyName
@@ -269,12 +133,14 @@ export class QueryBuilderDerivedPropertyExpressionState {
269
133
  propertyExpression;
270
134
  derivedProperty;
271
135
  parameters = [];
272
- constructor(queryBuilderState, propertyExpression) {
136
+ propertyExpressionState;
137
+ constructor(queryBuilderState, propertyExpression, propertyExpressionState) {
273
138
  this.path = getPropertyPath(propertyExpression);
274
139
  this.title = getPropertyChainName(propertyExpression, true);
275
140
  this.propertyExpression = observe_AbstractPropertyExpression(propertyExpression, queryBuilderState.observableContext);
276
141
  this.queryBuilderState = queryBuilderState;
277
142
  this.derivedProperty = guaranteeType(propertyExpression.func.value, DerivedProperty);
143
+ this.propertyExpressionState = propertyExpressionState;
278
144
  // build the parameters of the derived properties
279
145
  if (Array.isArray(this.derivedProperty.parameters)) {
280
146
  this.parameters = this.derivedProperty.parameters.map((parameter) => guaranteeType(this.queryBuilderState.graphManagerState.graphManager.buildValueSpecification(parameter, this.queryBuilderState.graphManagerState.graph), VariableExpression));
@@ -369,7 +235,7 @@ export class QueryBuilderPropertyExpressionState {
369
235
  }
370
236
  // Create states to hold derived properties' parameters and arguments for editing
371
237
  if (currentExpression.func.value instanceof DerivedProperty) {
372
- const derivedPropertyExpressionState = new QueryBuilderDerivedPropertyExpressionState(this.queryBuilderState, currentExpression);
238
+ const derivedPropertyExpressionState = new QueryBuilderDerivedPropertyExpressionState(this.queryBuilderState, currentExpression, this);
373
239
  result.push(derivedPropertyExpressionState);
374
240
  }
375
241
  currentExpression = getNullableFirstElement(currentExpression.parametersValues);
@@ -1 +1 @@
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,EACf,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,EAKL,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,eAAe,EACf,kCAAkC,EAClC,4BAA4B,EAC5B,WAAW,EACX,uCAAuC,EACvC,yCAAyC,EACzC,yBAAyB,EACzB,WAAW,EACX,8CAA8C,EAC9C,yBAAyB,EACzB,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,kBAAkB,EAClB,oCAAoC,GACrC,MAAM,2CAA2C,C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,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;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,4BAA4B,CAAC,yBAAyB;YACtD,IAAI,CAAC,kBAAkB;SACxB,CAAC,CAAC;IACL,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,EACf,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,EAKL,0BAA0B,EAC1B,eAAe,EACf,WAAW,EACX,0BAA0B,EAC1B,sBAAsB,EACtB,aAAa,EACb,sBAAsB,EAEtB,kBAAkB,EAClB,wBAAwB,EACxB,iBAAiB,EACjB,eAAe,EACf,kCAAkC,EAClC,4BAA4B,EAC5B,WAAW,EACX,yBAAyB,EACzB,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,kBAAkB,EAClB,oCAAoC,GACrC,MAAM,2CAA2C,CAAC;AAEnD,OAAO,EAAE,iCAAiC,EAAE,MAAM,mDAAmD,CAAC;AACtG,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AACxF,OAAO,EACL,0BAA0B,EAC1B,sCAAsC,EACtC,uBAAuB,GACxB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,wCAAwC,EAAE,MAAM,gDAAgD,CAAC;AAE1G,MAAM,CAAC,MA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C,IAAI,CAAC,iBAAiB,EACtB,iBAAiB,EACjB,IAAI,CACL,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;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,4BAA4B,CAAC,yBAAyB;YACtD,IAAI,CAAC,kBAAkB;SACxB,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -21,14 +21,15 @@ import { QueryBuilderTextEditorState } from './QueryBuilderTextEditorState.js';
21
21
  import { QueryBuilderExplorerState } from './explorer/QueryBuilderExplorerState.js';
22
22
  import { QueryBuilderResultState } from './QueryBuilderResultState.js';
23
23
  import { QueryBuilderUnsupportedQueryState } from './QueryBuilderUnsupportedQueryState.js';
24
- import { type Class, type Mapping, type Runtime, type GraphManagerState, RawLambda, ObserverContext } from '@finos/legend-graph';
24
+ import { type Class, type Mapping, type Runtime, type GraphManagerState, RawLambda, VariableExpression, ObserverContext } from '@finos/legend-graph';
25
25
  import type { CommandRegistrar, GenericLegendApplicationStore } from '@finos/legend-application';
26
26
  import { QueryFunctionsExplorerState } from './explorer/QueryFunctionsExplorerState.js';
27
27
  import { QueryBuilderParametersState } from './QueryBuilderParametersState.js';
28
28
  import type { QueryBuilderFilterOperator } from './filter/QueryBuilderFilterOperator.js';
29
29
  import { QueryBuilderChangeDetectionState } from './QueryBuilderChangeDetectionState.js';
30
- import { QueryBuilderMilestoningState } from './QueryBuilderMilestoningState.js';
30
+ import { QueryBuilderMilestoningState } from './milestoning/QueryBuilderMilestoningState.js';
31
31
  import { QueryBuilderWatermarkState } from './watermark/QueryBuilderWatermarkState.js';
32
+ import { QueryBuilderConstantsState } from './QueryBuilderConstantsState.js';
32
33
  export declare abstract class QueryBuilderState implements CommandRegistrar {
33
34
  applicationStore: GenericLegendApplicationStore;
34
35
  graphManagerState: GraphManagerState;
@@ -36,6 +37,7 @@ export declare abstract class QueryBuilderState implements CommandRegistrar {
36
37
  explorerState: QueryBuilderExplorerState;
37
38
  functionsExplorerState: QueryFunctionsExplorerState;
38
39
  parametersState: QueryBuilderParametersState;
40
+ constantState: QueryBuilderConstantsState;
39
41
  milestoningState: QueryBuilderMilestoningState;
40
42
  fetchStructureState: QueryBuilderFetchStructureState;
41
43
  filterState: QueryBuilderFilterState;
@@ -64,6 +66,8 @@ export declare abstract class QueryBuilderState implements CommandRegistrar {
64
66
  * and will be leveraged when the concepts of workflows are introduced into query builder.
65
67
  */
66
68
  get TEMPORARY__isDnDFetchStructureToFilterSupported(): boolean;
69
+ get allVariables(): VariableExpression[];
70
+ get allVariableNames(): string[];
67
71
  setShowFunctionsExplorerPanel(val: boolean): void;
68
72
  setShowParametersPanel(val: boolean): void;
69
73
  setIsEditingWatermark(val: boolean): void;
@@ -72,11 +76,14 @@ export declare abstract class QueryBuilderState implements CommandRegistrar {
72
76
  setRuntimeValue(val: Runtime | undefined): void;
73
77
  get isQuerySupported(): boolean;
74
78
  registerCommands(): void;
79
+ isVariableUsed(variable: VariableExpression): boolean;
75
80
  deregisterCommands(): void;
76
81
  resetQueryResult(): void;
77
82
  resetQueryContent(): void;
78
83
  changeClass(val: Class): void;
79
- changeMapping(val: Mapping): void;
84
+ changeMapping(val: Mapping, options?: {
85
+ keepQueryContent?: boolean;
86
+ }): void;
80
87
  changeRuntime(val: Runtime): void;
81
88
  buildQuery(options?: {
82
89
  keepSourceInformation: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderState.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAUH,OAAO,EACL,KAAK,WAAW,EAMhB,WAAW,EAEZ,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,EACV,gBAAgB,EAChB,6BAA6B,EAC9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AACxF,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AAEzF,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAGjF,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AAEvF,8BAAsB,iBAAkB,YAAW,gBAAgB;IACjE,gBAAgB,EAAE,6BAA6B,CAAC;IAChD,iBAAiB,EAAE,iBAAiB,CAAC;IAErC,oBA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