@finos/legend-query-builder 2.1.6 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (515) hide show
  1. package/lib/__lib__/QueryBuilderDocumentation.d.ts.map +1 -0
  2. package/lib/__lib__/QueryBuilderDocumentation.js.map +1 -0
  3. package/lib/__lib__/QueryBuilderEvent.d.ts.map +1 -0
  4. package/lib/__lib__/QueryBuilderEvent.js.map +1 -0
  5. package/lib/__lib__/QueryBuilderSetting.d.ts.map +1 -0
  6. package/lib/__lib__/QueryBuilderSetting.js.map +1 -0
  7. package/lib/__lib__/QueryBuilderTelemetryHelper.d.ts.map +1 -0
  8. package/lib/__lib__/QueryBuilderTelemetryHelper.js.map +1 -0
  9. package/lib/__lib__/QueryBuilderTesting.d.ts.map +1 -0
  10. package/lib/__lib__/QueryBuilderTesting.js.map +1 -0
  11. package/lib/{components/shared/ElementIconUtils.d.ts → __test__.d.ts} +2 -3
  12. package/lib/__test__.d.ts.map +1 -0
  13. package/lib/__test__.js +17 -0
  14. package/lib/__test__.js.map +1 -0
  15. package/lib/components/QueryBuilder.js +3 -3
  16. package/lib/components/QueryBuilder.js.map +1 -1
  17. package/lib/components/QueryBuilderConstantExpressionPanel.d.ts.map +1 -1
  18. package/lib/components/QueryBuilderConstantExpressionPanel.js +3 -4
  19. package/lib/components/QueryBuilderConstantExpressionPanel.js.map +1 -1
  20. package/lib/components/QueryBuilderDiffPanel.d.ts.map +1 -1
  21. package/lib/components/QueryBuilderDiffPanel.js +7 -51
  22. package/lib/components/QueryBuilderDiffPanel.js.map +1 -1
  23. package/lib/components/QueryBuilderParametersPanel.d.ts.map +1 -1
  24. package/lib/components/QueryBuilderParametersPanel.js +4 -4
  25. package/lib/components/QueryBuilderParametersPanel.js.map +1 -1
  26. package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
  27. package/lib/components/QueryBuilderResultPanel.js +16 -16
  28. package/lib/components/QueryBuilderResultPanel.js.map +1 -1
  29. package/lib/components/QueryBuilderSideBar.d.ts +1 -2
  30. package/lib/components/QueryBuilderSideBar.d.ts.map +1 -1
  31. package/lib/components/QueryBuilderSideBar.js +3 -5
  32. package/lib/components/QueryBuilderSideBar.js.map +1 -1
  33. package/lib/components/QueryBuilderTextEditor.js +2 -2
  34. package/lib/components/QueryBuilderTextEditor.js.map +1 -1
  35. package/lib/components/QueryBuilderUnsupportedQueryEditor.js +2 -2
  36. package/lib/components/QueryBuilderUnsupportedQueryEditor.js.map +1 -1
  37. package/lib/components/QueryBuilder_LegendApplicationPlugin.js +1 -1
  38. package/lib/components/QueryBuilder_LegendApplicationPlugin.js.map +1 -1
  39. package/lib/components/{QueryBuilderComponentTestUtils.d.ts → __test-utils__/QueryBuilderComponentTestUtils.d.ts} +1 -1
  40. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.d.ts.map +1 -0
  41. package/lib/components/{QueryBuilderComponentTestUtils.js → __test-utils__/QueryBuilderComponentTestUtils.js} +17 -15
  42. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js.map +1 -0
  43. package/lib/components/execution-plan/ExecutionPlanViewer.d.ts.map +1 -1
  44. package/lib/components/execution-plan/ExecutionPlanViewer.js +3 -3
  45. package/lib/components/execution-plan/ExecutionPlanViewer.js.map +1 -1
  46. package/lib/components/execution-plan/SQLExecutionNodeViewer.d.ts.map +1 -1
  47. package/lib/components/execution-plan/SQLExecutionNodeViewer.js +1 -2
  48. package/lib/components/execution-plan/SQLExecutionNodeViewer.js.map +1 -1
  49. package/lib/components/explorer/QueryBuilderExplorerPanel.js +2 -2
  50. package/lib/components/explorer/QueryBuilderExplorerPanel.js.map +1 -1
  51. package/lib/components/explorer/QueryBuilderPropertySearchPanel.js +2 -2
  52. package/lib/components/explorer/QueryBuilderPropertySearchPanel.js.map +1 -1
  53. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts +12 -2
  54. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts.map +1 -1
  55. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js +147 -22
  56. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js.map +1 -1
  57. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +1 -1
  58. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
  59. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +1 -1
  60. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
  61. package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js +1 -1
  62. package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js.map +1 -1
  63. package/lib/components/filter/QueryBuilderFilterPanel.js +1 -1
  64. package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
  65. package/lib/components/shared/BasicValueSpecificationEditor.js +1 -1
  66. package/lib/components/shared/BasicValueSpecificationEditor.js.map +1 -1
  67. package/lib/components/shared/CustomDatePicker.d.ts.map +1 -1
  68. package/lib/components/shared/CustomDatePicker.js +39 -37
  69. package/lib/components/shared/CustomDatePicker.js.map +1 -1
  70. package/lib/components/shared/LambdaEditor.d.ts.map +1 -1
  71. package/lib/components/shared/LambdaEditor.js +9 -7
  72. package/lib/components/shared/LambdaEditor.js.map +1 -1
  73. package/lib/components/workflows/ClassQueryBuilder.d.ts.map +1 -1
  74. package/lib/components/workflows/ClassQueryBuilder.js +2 -3
  75. package/lib/components/workflows/ClassQueryBuilder.js.map +1 -1
  76. package/lib/components/workflows/MappingQueryBuilder.d.ts.map +1 -1
  77. package/lib/components/workflows/MappingQueryBuilder.js +2 -3
  78. package/lib/components/workflows/MappingQueryBuilder.js.map +1 -1
  79. package/lib/components/workflows/ServiceQueryBuilder.d.ts.map +1 -1
  80. package/lib/components/workflows/ServiceQueryBuilder.js +2 -1
  81. package/lib/components/workflows/ServiceQueryBuilder.js.map +1 -1
  82. package/lib/{graphManager/QueryBuilderSupportedFunctions.d.ts → graph/QueryBuilderMetaModelConst.d.ts} +22 -1
  83. package/lib/graph/QueryBuilderMetaModelConst.d.ts.map +1 -0
  84. package/lib/{graphManager/QueryBuilderSupportedFunctions.js → graph/QueryBuilderMetaModelConst.js} +27 -1
  85. package/lib/graph/QueryBuilderMetaModelConst.js.map +1 -0
  86. package/lib/graph-manager/QueryBuilder_GraphManagerPreset.d.ts.map +1 -0
  87. package/lib/{graphManager → graph-manager}/QueryBuilder_GraphManagerPreset.js +1 -1
  88. package/lib/graph-manager/QueryBuilder_GraphManagerPreset.js.map +1 -0
  89. package/lib/{graphManager/QueryBuilder_GraphManagerPlugin.d.ts → graph-manager/QueryBuilder_PureGraphManagerPlugin.d.ts} +2 -1
  90. package/lib/graph-manager/QueryBuilder_PureGraphManagerPlugin.d.ts.map +1 -0
  91. package/lib/{graphManager/QueryBuilder_GraphManagerPlugin.js → graph-manager/QueryBuilder_PureGraphManagerPlugin.js} +9 -1
  92. package/lib/graph-manager/QueryBuilder_PureGraphManagerPlugin.js.map +1 -0
  93. package/lib/graph-manager/action/analytics/MappingRuntimeCompatibilityAnalysis.d.ts.map +1 -0
  94. package/lib/graph-manager/action/analytics/MappingRuntimeCompatibilityAnalysis.js.map +1 -0
  95. package/lib/graph-manager/action/analytics/ServiceExecutionAnalysis.d.ts.map +1 -0
  96. package/lib/graph-manager/action/analytics/ServiceExecutionAnalysis.js.map +1 -0
  97. package/lib/graph-manager/protocol/pure/QueryBuilder_PureGraphManagerExtension.d.ts.map +1 -0
  98. package/lib/graph-manager/protocol/pure/QueryBuilder_PureGraphManagerExtension.js.map +1 -0
  99. package/lib/graph-manager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.d.ts.map +1 -0
  100. package/lib/graph-manager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.js.map +1 -0
  101. package/lib/graph-manager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.d.ts.map +1 -0
  102. package/lib/{graphManager → graph-manager}/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js +26 -2
  103. package/lib/graph-manager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js.map +1 -0
  104. package/lib/graph-manager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.d.ts.map +1 -0
  105. package/lib/{graphManager → graph-manager}/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.js +2 -2
  106. package/lib/graph-manager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.js.map +1 -0
  107. package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts.map +1 -0
  108. package/lib/{graphManager → graph-manager}/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js +5 -5
  109. package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js.map +1 -0
  110. package/lib/index.css +2 -2
  111. package/lib/index.css.map +1 -1
  112. package/lib/index.d.ts +10 -11
  113. package/lib/index.d.ts.map +1 -1
  114. package/lib/index.js +8 -9
  115. package/lib/index.js.map +1 -1
  116. package/lib/package.json +3 -2
  117. package/lib/stores/QueryBuilderConstantsState.js +3 -3
  118. package/lib/stores/QueryBuilderConstantsState.js.map +1 -1
  119. package/lib/stores/QueryBuilderGroupOperationHelper.js +1 -1
  120. package/lib/stores/QueryBuilderGroupOperationHelper.js.map +1 -1
  121. package/lib/stores/QueryBuilderParametersState.js +2 -2
  122. package/lib/stores/QueryBuilderParametersState.js.map +1 -1
  123. package/lib/stores/QueryBuilderPropertyEditorState.js +3 -3
  124. package/lib/stores/QueryBuilderPropertyEditorState.js.map +1 -1
  125. package/lib/stores/QueryBuilderResultState.js +4 -4
  126. package/lib/stores/QueryBuilderResultState.js.map +1 -1
  127. package/lib/stores/QueryBuilderState.js +2 -2
  128. package/lib/stores/QueryBuilderState.js.map +1 -1
  129. package/lib/stores/QueryBuilderStateBuilder.js +1 -1
  130. package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
  131. package/lib/{graphManager/QueryBuilderHashUtils.d.ts → stores/QueryBuilderStateHashUtils.d.ts} +2 -2
  132. package/lib/stores/QueryBuilderStateHashUtils.d.ts.map +1 -0
  133. package/lib/stores/QueryBuilderStateHashUtils.js +111 -0
  134. package/lib/stores/QueryBuilderStateHashUtils.js.map +1 -0
  135. package/lib/stores/QueryBuilderTextEditorState.js +2 -2
  136. package/lib/stores/QueryBuilderTextEditorState.js.map +1 -1
  137. package/lib/stores/QueryBuilderUnsupportedQueryState.js +2 -2
  138. package/lib/stores/QueryBuilderUnsupportedQueryState.js.map +1 -1
  139. package/lib/stores/QueryBuilderValueSpecificationBuilder.js +1 -1
  140. package/lib/stores/QueryBuilderValueSpecificationBuilder.js.map +1 -1
  141. package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js +1 -1
  142. package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js.map +1 -1
  143. package/lib/stores/QueryBuilderValueSpecificationHelper.js +1 -1
  144. package/lib/stores/QueryBuilderValueSpecificationHelper.js.map +1 -1
  145. package/lib/stores/__test-utils__/QueryBuilderStateTestUtils.d.ts +39 -0
  146. package/lib/stores/__test-utils__/QueryBuilderStateTestUtils.d.ts.map +1 -0
  147. package/lib/stores/{QueryBuilderStateTestUtils.js → __test-utils__/QueryBuilderStateTestUtils.js} +54 -6
  148. package/lib/stores/__test-utils__/QueryBuilderStateTestUtils.js.map +1 -0
  149. package/lib/stores/entitlements/QueryBuilderCheckEntitlementsState.js +2 -2
  150. package/lib/stores/entitlements/QueryBuilderCheckEntitlementsState.js.map +1 -1
  151. package/lib/stores/explorer/QueryBuilderExplorerState.js +1 -1
  152. package/lib/stores/explorer/QueryBuilderExplorerState.js.map +1 -1
  153. package/lib/stores/explorer/QueryBuilderPropertySearchState.d.ts +1 -2
  154. package/lib/stores/explorer/QueryBuilderPropertySearchState.d.ts.map +1 -1
  155. package/lib/stores/explorer/QueryBuilderPropertySearchState.js +1 -2
  156. package/lib/stores/explorer/QueryBuilderPropertySearchState.js.map +1 -1
  157. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts +3 -0
  158. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts.map +1 -1
  159. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js +21 -3
  160. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js.map +1 -1
  161. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.d.ts.map +1 -1
  162. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js +4 -4
  163. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js.map +1 -1
  164. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js +2 -2
  165. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js.map +1 -1
  166. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.d.ts.map +1 -1
  167. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.js +14 -14
  168. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.js.map +1 -1
  169. package/lib/stores/fetch-structure/tds/QueryBuilderTDSHelper.js +1 -1
  170. package/lib/stores/fetch-structure/tds/QueryBuilderTDSHelper.js.map +1 -1
  171. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +4 -4
  172. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
  173. package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.js +3 -3
  174. package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.js.map +1 -1
  175. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js +3 -3
  176. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js.map +1 -1
  177. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.js +1 -1
  178. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.js.map +1 -1
  179. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Average.d.ts.map +1 -1
  180. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Average.js +5 -3
  181. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Average.js.map +1 -1
  182. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Count.d.ts.map +1 -1
  183. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Count.js +5 -3
  184. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Count.js.map +1 -1
  185. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js +3 -3
  186. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js.map +1 -1
  187. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js +3 -3
  188. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js.map +1 -1
  189. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js +3 -3
  190. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js.map +1 -1
  191. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Max.d.ts.map +1 -1
  192. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Max.js +5 -3
  193. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Max.js.map +1 -1
  194. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Min.d.ts.map +1 -1
  195. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Min.js +5 -3
  196. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Min.js.map +1 -1
  197. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js +3 -3
  198. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js.map +1 -1
  199. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js +3 -3
  200. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js.map +1 -1
  201. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Sum.d.ts.map +1 -1
  202. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Sum.js +5 -3
  203. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Sum.js.map +1 -1
  204. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js +6 -6
  205. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js.map +1 -1
  206. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.js +1 -1
  207. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.js.map +1 -1
  208. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js +1 -1
  209. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js.map +1 -1
  210. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.d.ts.map +1 -1
  211. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js +3 -2
  212. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js.map +1 -1
  213. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js +4 -4
  214. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js.map +1 -1
  215. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js +4 -4
  216. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js.map +1 -1
  217. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts.map +1 -1
  218. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js +9 -7
  219. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js.map +1 -1
  220. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts.map +1 -1
  221. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js +6 -6
  222. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js.map +1 -1
  223. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts.map +1 -1
  224. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js +6 -6
  225. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js.map +1 -1
  226. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts.map +1 -1
  227. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.js +6 -4
  228. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.js.map +1 -1
  229. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js +3 -3
  230. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js.map +1 -1
  231. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts.map +1 -1
  232. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js +6 -6
  233. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js.map +1 -1
  234. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts.map +1 -1
  235. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js +6 -6
  236. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js.map +1 -1
  237. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js +4 -4
  238. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js.map +1 -1
  239. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js +3 -3
  240. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js.map +1 -1
  241. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js +1 -1
  242. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js.map +1 -1
  243. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js +1 -1
  244. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -1
  245. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowState.js +6 -6
  246. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowState.js.map +1 -1
  247. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowStateBuilder.js +1 -1
  248. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowStateBuilder.js.map +1 -1
  249. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowValueSpecificationBuilder.js +1 -1
  250. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowValueSpecificationBuilder.js.map +1 -1
  251. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Average.js +3 -3
  252. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Average.js.map +1 -1
  253. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Count.d.ts.map +1 -1
  254. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Count.js +5 -3
  255. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Count.js.map +1 -1
  256. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Max.d.ts.map +1 -1
  257. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Max.js +5 -3
  258. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Max.js.map +1 -1
  259. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Min.d.ts.map +1 -1
  260. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Min.js +5 -3
  261. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Min.js.map +1 -1
  262. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Sum.d.ts.map +1 -1
  263. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Sum.js +5 -3
  264. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Sum.js.map +1 -1
  265. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_AverageRank.js +3 -3
  266. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_AverageRank.js.map +1 -1
  267. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_DenseRank.js +3 -3
  268. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_DenseRank.js.map +1 -1
  269. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_Rank.d.ts.map +1 -1
  270. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_Rank.js +5 -3
  271. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_Rank.js.map +1 -1
  272. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_RowNumber.js +3 -3
  273. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_RowNumber.js.map +1 -1
  274. package/lib/stores/filter/QueryBuilderFilterState.js +6 -6
  275. package/lib/stores/filter/QueryBuilderFilterState.js.map +1 -1
  276. package/lib/stores/filter/QueryBuilderFilterStateBuilder.js +1 -1
  277. package/lib/stores/filter/QueryBuilderFilterStateBuilder.js.map +1 -1
  278. package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js +1 -1
  279. package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js.map +1 -1
  280. package/lib/stores/filter/operators/QueryBuilderFilterOperatorValueSpecificationBuilder.js +1 -1
  281. package/lib/stores/filter/operators/QueryBuilderFilterOperatorValueSpecificationBuilder.js.map +1 -1
  282. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.d.ts.map +1 -1
  283. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js +6 -4
  284. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js.map +1 -1
  285. package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.d.ts.map +1 -1
  286. package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js +6 -4
  287. package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js.map +1 -1
  288. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.d.ts.map +1 -1
  289. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js +11 -7
  290. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js.map +1 -1
  291. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.d.ts.map +1 -1
  292. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.js +6 -6
  293. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.js.map +1 -1
  294. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts.map +1 -1
  295. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js +6 -6
  296. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js.map +1 -1
  297. package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.d.ts.map +1 -1
  298. package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js +6 -4
  299. package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js.map +1 -1
  300. package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.d.ts.map +1 -1
  301. package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js +6 -4
  302. package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js.map +1 -1
  303. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.d.ts.map +1 -1
  304. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.js +8 -6
  305. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.js.map +1 -1
  306. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.d.ts.map +1 -1
  307. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js +6 -6
  308. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js.map +1 -1
  309. package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.d.ts.map +1 -1
  310. package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js +6 -4
  311. package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js.map +1 -1
  312. package/lib/stores/milestoning/QueryBuilderMilestoningState.js +2 -2
  313. package/lib/stores/milestoning/QueryBuilderMilestoningState.js.map +1 -1
  314. package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts +2 -2
  315. package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts.map +1 -1
  316. package/lib/stores/shared/ValueSpecificationEditorHelper.js +4 -3
  317. package/lib/stores/shared/ValueSpecificationEditorHelper.js.map +1 -1
  318. package/lib/stores/watermark/QueryBuilderWatermarkState.js +2 -2
  319. package/lib/stores/watermark/QueryBuilderWatermarkState.js.map +1 -1
  320. package/lib/stores/watermark/QueryBuilderWatermarkStateBuilder.js +1 -1
  321. package/lib/stores/watermark/QueryBuilderWatermarkStateBuilder.js.map +1 -1
  322. package/lib/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.js +1 -1
  323. package/lib/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.js.map +1 -1
  324. package/package.json +11 -10
  325. package/src/__test__.ts +17 -0
  326. package/src/components/QueryBuilder.tsx +3 -3
  327. package/src/components/QueryBuilderConstantExpressionPanel.tsx +4 -5
  328. package/src/components/QueryBuilderDiffPanel.tsx +10 -80
  329. package/src/components/QueryBuilderParametersPanel.tsx +8 -9
  330. package/src/components/QueryBuilderResultPanel.tsx +24 -19
  331. package/src/components/QueryBuilderSideBar.tsx +5 -10
  332. package/src/components/QueryBuilderTextEditor.tsx +4 -4
  333. package/src/components/QueryBuilderUnsupportedQueryEditor.tsx +2 -2
  334. package/src/components/QueryBuilder_LegendApplicationPlugin.ts +1 -1
  335. package/src/components/{QueryBuilderComponentTestUtils.tsx → __test-utils__/QueryBuilderComponentTestUtils.tsx} +29 -34
  336. package/src/components/execution-plan/ExecutionPlanViewer.tsx +6 -3
  337. package/src/components/execution-plan/SQLExecutionNodeViewer.tsx +4 -2
  338. package/src/components/explorer/QueryBuilderExplorerPanel.tsx +2 -2
  339. package/src/components/explorer/QueryBuilderPropertySearchPanel.tsx +2 -2
  340. package/src/components/fetch-structure/QueryBuilderGraphFetchTreePanel.tsx +388 -65
  341. package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +1 -1
  342. package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +1 -1
  343. package/src/components/fetch-structure/QueryBuilderTDSWindowPanel.tsx +1 -1
  344. package/src/components/filter/QueryBuilderFilterPanel.tsx +1 -1
  345. package/src/components/shared/BasicValueSpecificationEditor.tsx +1 -1
  346. package/src/components/shared/CustomDatePicker.tsx +54 -41
  347. package/src/components/shared/LambdaEditor.tsx +10 -8
  348. package/src/components/workflows/ClassQueryBuilder.tsx +6 -8
  349. package/src/components/workflows/MappingQueryBuilder.tsx +6 -8
  350. package/src/components/workflows/ServiceQueryBuilder.tsx +5 -5
  351. package/src/{graphManager/QueryBuilderSupportedFunctions.ts → graph/QueryBuilderMetaModelConst.ts} +29 -0
  352. package/src/{graphManager → graph-manager}/QueryBuilder_GraphManagerPreset.ts +1 -1
  353. package/src/{graphManager/QueryBuilder_GraphManagerPlugin.ts → graph-manager/QueryBuilder_PureGraphManagerPlugin.ts} +9 -0
  354. package/src/{graphManager → graph-manager}/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.ts +55 -1
  355. package/src/{graphManager → graph-manager}/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.ts +2 -2
  356. package/src/{graphManager → graph-manager}/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.ts +13 -5
  357. package/src/index.ts +13 -11
  358. package/src/stores/QueryBuilderConstantsState.ts +3 -3
  359. package/src/stores/QueryBuilderGroupOperationHelper.ts +1 -1
  360. package/src/stores/QueryBuilderParametersState.ts +2 -2
  361. package/src/stores/QueryBuilderPropertyEditorState.ts +3 -3
  362. package/src/stores/QueryBuilderResultState.ts +4 -4
  363. package/src/stores/QueryBuilderState.ts +2 -2
  364. package/src/stores/QueryBuilderStateBuilder.ts +1 -1
  365. package/src/{graphManager/QueryBuilderHashUtils.ts → stores/QueryBuilderStateHashUtils.ts} +1 -1
  366. package/src/stores/QueryBuilderTextEditorState.ts +2 -2
  367. package/src/stores/QueryBuilderUnsupportedQueryState.ts +2 -2
  368. package/src/stores/QueryBuilderValueSpecificationBuilder.ts +1 -1
  369. package/src/stores/QueryBuilderValueSpecificationBuilderHelper.ts +1 -1
  370. package/src/stores/QueryBuilderValueSpecificationHelper.ts +1 -1
  371. package/src/stores/{QueryBuilderStateTestUtils.ts → __test-utils__/QueryBuilderStateTestUtils.ts} +80 -8
  372. package/src/stores/entitlements/QueryBuilderCheckEntitlementsState.ts +2 -2
  373. package/src/stores/explorer/QueryBuilderExplorerState.ts +1 -1
  374. package/src/stores/explorer/QueryBuilderPropertySearchState.ts +1 -1
  375. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts +36 -2
  376. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.ts +7 -5
  377. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.ts +2 -2
  378. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.ts +16 -14
  379. package/src/stores/fetch-structure/tds/QueryBuilderTDSHelper.ts +1 -1
  380. package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +4 -4
  381. package/src/stores/fetch-structure/tds/QueryResultSetModifierState.ts +3 -3
  382. package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.ts +3 -3
  383. package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.ts +1 -1
  384. package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Average.ts +5 -3
  385. package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Count.ts +5 -3
  386. package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Distinct.ts +3 -3
  387. package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.ts +3 -3
  388. package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_JoinString.ts +3 -3
  389. package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Max.ts +5 -3
  390. package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Min.ts +5 -3
  391. package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.ts +3 -3
  392. package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.ts +3 -3
  393. package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Sum.ts +5 -3
  394. package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.ts +6 -6
  395. package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.ts +1 -1
  396. package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.ts +1 -1
  397. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.ts +4 -4
  398. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.ts +4 -4
  399. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.ts +4 -4
  400. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.ts +8 -7
  401. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.ts +5 -6
  402. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.ts +5 -6
  403. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.ts +6 -4
  404. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.ts +3 -3
  405. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.ts +5 -6
  406. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.ts +5 -6
  407. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts +4 -4
  408. package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.ts +3 -3
  409. package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts +1 -1
  410. package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +1 -1
  411. package/src/stores/fetch-structure/tds/window/QueryBuilderWindowState.ts +6 -6
  412. package/src/stores/fetch-structure/tds/window/QueryBuilderWindowStateBuilder.ts +1 -1
  413. package/src/stores/fetch-structure/tds/window/QueryBuilderWindowValueSpecificationBuilder.ts +1 -1
  414. package/src/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Average.ts +3 -3
  415. package/src/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Count.ts +5 -3
  416. package/src/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Max.ts +5 -3
  417. package/src/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Min.ts +5 -3
  418. package/src/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Sum.ts +5 -3
  419. package/src/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_AverageRank.ts +3 -3
  420. package/src/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_DenseRank.ts +3 -3
  421. package/src/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_Rank.ts +5 -3
  422. package/src/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_RowNumber.ts +3 -3
  423. package/src/stores/filter/QueryBuilderFilterState.ts +6 -6
  424. package/src/stores/filter/QueryBuilderFilterStateBuilder.ts +1 -1
  425. package/src/stores/filter/QueryBuilderFilterValueSpecificationBuilder.ts +1 -1
  426. package/src/stores/filter/operators/QueryBuilderFilterOperatorValueSpecificationBuilder.ts +1 -1
  427. package/src/stores/filter/operators/QueryBuilderFilterOperator_Contain.ts +6 -4
  428. package/src/stores/filter/operators/QueryBuilderFilterOperator_EndWith.ts +6 -4
  429. package/src/stores/filter/operators/QueryBuilderFilterOperator_Equal.ts +10 -7
  430. package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.ts +5 -6
  431. package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.ts +5 -6
  432. package/src/stores/filter/operators/QueryBuilderFilterOperator_In.ts +6 -4
  433. package/src/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.ts +6 -4
  434. package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThan.ts +7 -6
  435. package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.ts +5 -6
  436. package/src/stores/filter/operators/QueryBuilderFilterOperator_StartWith.ts +6 -4
  437. package/src/stores/milestoning/QueryBuilderMilestoningState.ts +2 -2
  438. package/src/stores/shared/ValueSpecificationEditorHelper.ts +4 -4
  439. package/src/stores/watermark/QueryBuilderWatermarkState.ts +2 -2
  440. package/src/stores/watermark/QueryBuilderWatermarkStateBuilder.ts +1 -1
  441. package/src/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.ts +1 -1
  442. package/tsconfig.json +19 -19
  443. package/lib/application/QueryBuilderDocumentation.d.ts.map +0 -1
  444. package/lib/application/QueryBuilderDocumentation.js.map +0 -1
  445. package/lib/application/QueryBuilderEvent.d.ts.map +0 -1
  446. package/lib/application/QueryBuilderEvent.js.map +0 -1
  447. package/lib/application/QueryBuilderSetting.d.ts.map +0 -1
  448. package/lib/application/QueryBuilderSetting.js.map +0 -1
  449. package/lib/application/QueryBuilderTelemetryHelper.d.ts.map +0 -1
  450. package/lib/application/QueryBuilderTelemetryHelper.js.map +0 -1
  451. package/lib/application/QueryBuilderTesting.d.ts.map +0 -1
  452. package/lib/application/QueryBuilderTesting.js.map +0 -1
  453. package/lib/components/QueryBuilderComponentTestUtils.d.ts.map +0 -1
  454. package/lib/components/QueryBuilderComponentTestUtils.js.map +0 -1
  455. package/lib/components/shared/ElementIconUtils.d.ts.map +0 -1
  456. package/lib/components/shared/ElementIconUtils.js +0 -37
  457. package/lib/components/shared/ElementIconUtils.js.map +0 -1
  458. package/lib/graphManager/QueryBuilderHashUtils.d.ts.map +0 -1
  459. package/lib/graphManager/QueryBuilderHashUtils.js +0 -111
  460. package/lib/graphManager/QueryBuilderHashUtils.js.map +0 -1
  461. package/lib/graphManager/QueryBuilderSupportedFunctions.d.ts.map +0 -1
  462. package/lib/graphManager/QueryBuilderSupportedFunctions.js.map +0 -1
  463. package/lib/graphManager/QueryBuilder_GraphManagerPlugin.d.ts.map +0 -1
  464. package/lib/graphManager/QueryBuilder_GraphManagerPlugin.js.map +0 -1
  465. package/lib/graphManager/QueryBuilder_GraphManagerPreset.d.ts.map +0 -1
  466. package/lib/graphManager/QueryBuilder_GraphManagerPreset.js.map +0 -1
  467. package/lib/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.d.ts.map +0 -1
  468. package/lib/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.js.map +0 -1
  469. package/lib/graphManager/action/analytics/ServiceExecutionAnalysis.d.ts.map +0 -1
  470. package/lib/graphManager/action/analytics/ServiceExecutionAnalysis.js.map +0 -1
  471. package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.d.ts.map +0 -1
  472. package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.js.map +0 -1
  473. package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.d.ts.map +0 -1
  474. package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.js.map +0 -1
  475. package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.d.ts.map +0 -1
  476. package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js.map +0 -1
  477. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.d.ts.map +0 -1
  478. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.js.map +0 -1
  479. package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts.map +0 -1
  480. package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js.map +0 -1
  481. package/lib/stores/QueryBuilderStateTestUtils.d.ts +0 -24
  482. package/lib/stores/QueryBuilderStateTestUtils.d.ts.map +0 -1
  483. package/lib/stores/QueryBuilderStateTestUtils.js.map +0 -1
  484. package/src/components/shared/ElementIconUtils.tsx +0 -47
  485. /package/lib/{application → __lib__}/QueryBuilderDocumentation.d.ts +0 -0
  486. /package/lib/{application → __lib__}/QueryBuilderDocumentation.js +0 -0
  487. /package/lib/{application → __lib__}/QueryBuilderEvent.d.ts +0 -0
  488. /package/lib/{application → __lib__}/QueryBuilderEvent.js +0 -0
  489. /package/lib/{application → __lib__}/QueryBuilderSetting.d.ts +0 -0
  490. /package/lib/{application → __lib__}/QueryBuilderSetting.js +0 -0
  491. /package/lib/{application → __lib__}/QueryBuilderTelemetryHelper.d.ts +0 -0
  492. /package/lib/{application → __lib__}/QueryBuilderTelemetryHelper.js +0 -0
  493. /package/lib/{application → __lib__}/QueryBuilderTesting.d.ts +0 -0
  494. /package/lib/{application → __lib__}/QueryBuilderTesting.js +0 -0
  495. /package/lib/{graphManager → graph-manager}/QueryBuilder_GraphManagerPreset.d.ts +0 -0
  496. /package/lib/{graphManager → graph-manager}/action/analytics/MappingRuntimeCompatibilityAnalysis.d.ts +0 -0
  497. /package/lib/{graphManager → graph-manager}/action/analytics/MappingRuntimeCompatibilityAnalysis.js +0 -0
  498. /package/lib/{graphManager → graph-manager}/action/analytics/ServiceExecutionAnalysis.d.ts +0 -0
  499. /package/lib/{graphManager → graph-manager}/action/analytics/ServiceExecutionAnalysis.js +0 -0
  500. /package/lib/{graphManager → graph-manager}/protocol/pure/QueryBuilder_PureGraphManagerExtension.d.ts +0 -0
  501. /package/lib/{graphManager → graph-manager}/protocol/pure/QueryBuilder_PureGraphManagerExtension.js +0 -0
  502. /package/lib/{graphManager → graph-manager}/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.d.ts +0 -0
  503. /package/lib/{graphManager → graph-manager}/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.js +0 -0
  504. /package/lib/{graphManager → graph-manager}/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.d.ts +0 -0
  505. /package/lib/{graphManager → graph-manager}/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.d.ts +0 -0
  506. /package/lib/{graphManager → graph-manager}/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts +0 -0
  507. /package/src/{application → __lib__}/QueryBuilderDocumentation.ts +0 -0
  508. /package/src/{application → __lib__}/QueryBuilderEvent.ts +0 -0
  509. /package/src/{application → __lib__}/QueryBuilderSetting.ts +0 -0
  510. /package/src/{application → __lib__}/QueryBuilderTelemetryHelper.ts +0 -0
  511. /package/src/{application → __lib__}/QueryBuilderTesting.ts +0 -0
  512. /package/src/{graphManager → graph-manager}/action/analytics/MappingRuntimeCompatibilityAnalysis.ts +0 -0
  513. /package/src/{graphManager → graph-manager}/action/analytics/ServiceExecutionAnalysis.ts +0 -0
  514. /package/src/{graphManager → graph-manager}/protocol/pure/QueryBuilder_PureGraphManagerExtension.ts +0 -0
  515. /package/src/{graphManager → graph-manager}/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.ts +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-query-builder",
3
- "version": "2.1.6",
3
+ "version": "3.0.0",
4
4
  "description": "Legend query builder core",
5
5
  "keywords": [
6
6
  "legend",
@@ -20,6 +20,7 @@
20
20
  "type": "module",
21
21
  "exports": {
22
22
  ".": "./lib/index.js",
23
+ "./test": "./lib/__test__.js",
23
24
  "./lib/index.css": "./lib/index.css"
24
25
  },
25
26
  "module": "lib/index.js",
@@ -41,15 +42,15 @@
41
42
  "test:watch": "jest --watch"
42
43
  },
43
44
  "dependencies": {
44
- "@finos/legend-application": "14.0.3",
45
- "@finos/legend-art": "7.0.0",
46
- "@finos/legend-graph": "27.0.2",
47
- "@finos/legend-lego": "0.1.3",
48
- "@finos/legend-server-depot": "4.4.14",
49
- "@finos/legend-shared": "8.2.0",
50
- "@finos/legend-storage": "3.0.48",
45
+ "@finos/legend-application": "15.0.0",
46
+ "@finos/legend-art": "7.0.1",
47
+ "@finos/legend-graph": "28.0.0",
48
+ "@finos/legend-lego": "0.1.5",
49
+ "@finos/legend-server-depot": "5.0.0",
50
+ "@finos/legend-shared": "9.0.0",
51
+ "@finos/legend-storage": "3.0.49",
51
52
  "@testing-library/react": "14.0.0",
52
- "@types/react": "18.0.34",
53
+ "@types/react": "18.0.37",
53
54
  "@types/react-dom": "18.0.11",
54
55
  "mathjs": "11.8.0",
55
56
  "mobx": "6.9.0",
@@ -62,7 +63,7 @@
62
63
  "sql-formatter": "12.2.0"
63
64
  },
64
65
  "devDependencies": {
65
- "@finos/legend-dev-utils": "2.0.53",
66
+ "@finos/legend-dev-utils": "2.0.54",
66
67
  "@jest/globals": "29.5.0",
67
68
  "cross-env": "7.0.3",
68
69
  "eslint": "8.38.0",
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ export { TEST__setUpQueryBuilder } from './components/__test-utils__/QueryBuilderComponentTestUtils.js';
@@ -49,7 +49,7 @@ import { QueryBuilderTextEditor } from './QueryBuilderTextEditor.js';
49
49
  import type { QueryBuilderState } from '../stores/QueryBuilderState.js';
50
50
  import { QueryBuilderTextEditorMode } from '../stores/QueryBuilderTextEditorState.js';
51
51
  import { QueryBuilderFetchStructurePanel } from './fetch-structure/QueryBuilderFetchStructurePanel.js';
52
- import { QUERY_BUILDER_TEST_ID } from '../application/QueryBuilderTesting.js';
52
+ import { QUERY_BUILDER_TEST_ID } from '../__lib__/QueryBuilderTesting.js';
53
53
  import { flowResult } from 'mobx';
54
54
  import { QueryBuilderUnsupportedQueryEditor } from './QueryBuilderUnsupportedQueryEditor.js';
55
55
  import {
@@ -67,9 +67,9 @@ import { QueryBuilderPostTDSPanel } from './fetch-structure/QueryBuilderPostTDSP
67
67
  import { QueryBuilderWatermarkEditor } from './watermark/QueryBuilderWatermark.js';
68
68
  import { QueryBuilderConstantExpressionPanel } from './QueryBuilderConstantExpressionPanel.js';
69
69
  import { QueryBuilder_LegendApplicationPlugin } from './QueryBuilder_LegendApplicationPlugin.js';
70
- import { QUERY_BUILDER_SETTING_KEY } from '../application/QueryBuilderSetting.js';
70
+ import { QUERY_BUILDER_SETTING_KEY } from '../__lib__/QueryBuilderSetting.js';
71
71
  import { QUERY_BUILDER_COMPONENT_ELEMENT_ID } from './QueryBuilderComponentElement.js';
72
- import { QUERY_BUILDER_DOCUMENTATION_KEY } from '../application/QueryBuilderDocumentation.js';
72
+ import { QUERY_BUILDER_DOCUMENTATION_KEY } from '../__lib__/QueryBuilderDocumentation.js';
73
73
 
74
74
  const QueryBuilderStatusBar = observer(
75
75
  (props: { queryBuilderState: QueryBuilderState }) => {
@@ -15,10 +15,10 @@
15
15
  */
16
16
 
17
17
  import {
18
- type PackageableElementOption,
19
18
  buildElementOption,
20
19
  getPackageableElementOptionFormatter,
21
- } from '@finos/legend-application';
20
+ type PackageableElementOption,
21
+ } from '@finos/legend-lego/graph-editor';
22
22
  import {
23
23
  BlankPanelPlaceholder,
24
24
  CustomSelectorInput,
@@ -49,8 +49,8 @@ import { buildDefaultInstanceValue } from '../stores/shared/ValueSpecificationEd
49
49
  import { variableExpression_setName } from '../stores/shared/ValueSpecificationModifierHelper.js';
50
50
  import { BasicValueSpecificationEditor } from './shared/BasicValueSpecificationEditor.js';
51
51
  import { VariableViewer } from './shared/QueryBuilderVariableSelector.js';
52
- import { QUERY_BUILDER_TEST_ID } from '../application/QueryBuilderTesting.js';
53
- import { QUERY_BUILDER_DOCUMENTATION_KEY } from '../application/QueryBuilderDocumentation.js';
52
+ import { QUERY_BUILDER_TEST_ID } from '../__lib__/QueryBuilderTesting.js';
53
+ import { QUERY_BUILDER_DOCUMENTATION_KEY } from '../__lib__/QueryBuilderDocumentation.js';
54
54
 
55
55
  // NOTE: We currently only allow constant variables for primitive types of multiplicity ONE.
56
56
  // This is why we don't show multiplicity in the editor.
@@ -153,7 +153,6 @@ const QueryBuilderConstantExpressionEditor = observer(
153
153
  darkMode:
154
154
  !applicationStore.layoutService
155
155
  .TEMPORARY__isLightColorThemeEnabled,
156
- graph: queryBuilderState.graphManagerState.graph,
157
156
  })}
158
157
  />
159
158
  </PanelFormSection>
@@ -14,90 +14,21 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import {
18
- CODE_EDITOR_LANGUAGE,
19
- CODE_EDITOR_THEME,
20
- TAB_SIZE,
21
- useApplicationStore,
22
- } from '@finos/legend-application';
23
- import { clsx, Dialog, useResizeDetector, Button } from '@finos/legend-art';
17
+ import { DEFAULT_TAB_SIZE } from '@finos/legend-application';
18
+ import { clsx, Dialog, Button } from '@finos/legend-art';
24
19
  import { observer } from 'mobx-react-lite';
25
- import { editor as monacoEditorAPI } from 'monaco-editor';
26
- import { useEffect, useRef, useState } from 'react';
20
+ import { useEffect } from 'react';
27
21
  import {
28
22
  type QueryBuilderDiffViewState,
29
23
  QueryBuilderDiffViewMode,
30
24
  } from '../stores/QueryBuilderChangeDetectionState.js';
31
25
  import { pruneSourceInformation } from '@finos/legend-graph';
32
26
  import {
33
- disposeDiffCodeEditor,
34
- getBaseCodeEditorOptions,
27
+ CODE_EDITOR_LANGUAGE,
28
+ CodeDiffView,
29
+ JSONDiffView,
35
30
  } from '@finos/legend-lego/code-editor';
36
31
 
37
- const TextDiffView = observer(
38
- (props: {
39
- language: CODE_EDITOR_LANGUAGE;
40
- from?: string | undefined;
41
- to?: string | undefined;
42
- }) => {
43
- const { from, to, language } = props;
44
- const applicationStore = useApplicationStore();
45
- const [editor, setEditor] =
46
- useState<monacoEditorAPI.IStandaloneDiffEditor>();
47
- const editorRef = useRef<HTMLDivElement>(null);
48
- const originalText = from ?? '';
49
- const modifiedText = to ?? '';
50
-
51
- const { ref, width, height } = useResizeDetector<HTMLDivElement>();
52
-
53
- useEffect(() => {
54
- if (width !== undefined && height !== undefined) {
55
- editor?.layout({ width, height });
56
- }
57
- }, [editor, width, height]);
58
-
59
- useEffect(() => {
60
- if (!editor && editorRef.current) {
61
- const element = editorRef.current;
62
- const _editor = monacoEditorAPI.createDiffEditor(element, {
63
- ...getBaseCodeEditorOptions(),
64
- theme: applicationStore.layoutService
65
- .TEMPORARY__isLightColorThemeEnabled
66
- ? CODE_EDITOR_THEME.TEMPORARY__VSCODE_LIGHT
67
- : CODE_EDITOR_THEME.LEGEND,
68
- readOnly: true,
69
- wordWrap: 'on',
70
- });
71
- setEditor(_editor);
72
- }
73
- }, [applicationStore, editor]);
74
-
75
- if (editor) {
76
- const originalModel = monacoEditorAPI.createModel(originalText, language);
77
- const modifiedModel = monacoEditorAPI.createModel(modifiedText, language);
78
- editor.setModel({
79
- original: originalModel,
80
- modified: modifiedModel,
81
- });
82
- }
83
-
84
- useEffect(
85
- () => (): void => {
86
- if (editor) {
87
- disposeDiffCodeEditor(editor);
88
- }
89
- },
90
- [editor],
91
- ); // dispose editor
92
-
93
- return (
94
- <div ref={ref} className="code-editor__container">
95
- <div className="code-editor__body" ref={editorRef} />
96
- </div>
97
- );
98
- },
99
- );
100
-
101
32
  export const QueryBuilderDiffViewPanel = observer(
102
33
  (props: { diffViewState: QueryBuilderDiffViewState }) => {
103
34
  const { diffViewState } = props;
@@ -149,15 +80,14 @@ export const QueryBuilderDiffViewPanel = observer(
149
80
  </div>
150
81
  <div className="query-builder__diff-panel__content">
151
82
  {diffViewState.mode === QueryBuilderDiffViewMode.GRAMMAR && (
152
- <TextDiffView
83
+ <CodeDiffView
153
84
  language={CODE_EDITOR_LANGUAGE.PURE}
154
85
  from={fromGrammarText}
155
86
  to={toGrammarText}
156
87
  />
157
88
  )}
158
89
  {diffViewState.mode === QueryBuilderDiffViewMode.JSON && (
159
- <TextDiffView
160
- language={CODE_EDITOR_LANGUAGE.JSON}
90
+ <JSONDiffView
161
91
  from={JSON.stringify(
162
92
  {
163
93
  parameters: diffViewState.initialQuery.parameters
@@ -172,7 +102,7 @@ export const QueryBuilderDiffViewPanel = observer(
172
102
  : undefined,
173
103
  },
174
104
  null,
175
- TAB_SIZE,
105
+ DEFAULT_TAB_SIZE,
176
106
  )}
177
107
  to={JSON.stringify(
178
108
  {
@@ -188,7 +118,7 @@ export const QueryBuilderDiffViewPanel = observer(
188
118
  : undefined,
189
119
  },
190
120
  null,
191
- TAB_SIZE,
121
+ DEFAULT_TAB_SIZE,
192
122
  )}
193
123
  />
194
124
  )}
@@ -39,20 +39,20 @@ import {
39
39
  Multiplicity,
40
40
  getMultiplicityPrettyDescription,
41
41
  } from '@finos/legend-graph';
42
- import {
43
- type PackageableElementOption,
44
- buildElementOption,
45
- getPackageableElementOptionFormatter,
46
- useApplicationStore,
47
- } from '@finos/legend-application';
42
+ import { useApplicationStore } from '@finos/legend-application';
48
43
  import { generateEnumerableNameFromToken } from '@finos/legend-shared';
49
44
  import { DEFAULT_VARIABLE_NAME } from '../stores/QueryBuilderConfig.js';
50
45
  import { variableExpression_setName } from '../stores/shared/ValueSpecificationModifierHelper.js';
51
46
  import { LambdaParameterState } from '../stores/shared/LambdaParameterState.js';
52
47
  import { LambdaParameterValuesEditor } from './shared/LambdaParameterValuesEditor.js';
53
48
  import { VariableViewer } from './shared/QueryBuilderVariableSelector.js';
54
- import { QUERY_BUILDER_TEST_ID } from '../application/QueryBuilderTesting.js';
55
- import { QUERY_BUILDER_DOCUMENTATION_KEY } from '../application/QueryBuilderDocumentation.js';
49
+ import { QUERY_BUILDER_TEST_ID } from '../__lib__/QueryBuilderTesting.js';
50
+ import { QUERY_BUILDER_DOCUMENTATION_KEY } from '../__lib__/QueryBuilderDocumentation.js';
51
+ import {
52
+ buildElementOption,
53
+ getPackageableElementOptionFormatter,
54
+ type PackageableElementOption,
55
+ } from '@finos/legend-lego/graph-editor';
56
56
 
57
57
  type MultiplicityOption = { label: string; value: Multiplicity };
58
58
 
@@ -182,7 +182,6 @@ const VariableExpressionEditor = observer(
182
182
  darkMode:
183
183
  !applicationStore.layoutService
184
184
  .TEMPORARY__isLightColorThemeEnabled,
185
- graph: queryBuilderState.graphManagerState.graph,
186
185
  })}
187
186
  />
188
187
  </div>
@@ -45,8 +45,7 @@ import {
45
45
  import {
46
46
  ActionAlertActionType,
47
47
  ActionAlertType,
48
- CODE_EDITOR_LANGUAGE,
49
- TAB_SIZE,
48
+ DEFAULT_TAB_SIZE,
50
49
  useApplicationStore,
51
50
  } from '@finos/legend-application';
52
51
  import {
@@ -57,7 +56,7 @@ import {
57
56
  prettyDuration,
58
57
  prettyCONSTName,
59
58
  } from '@finos/legend-shared';
60
- import { forwardRef, useState } from 'react';
59
+ import { type MutableRefObject, forwardRef, useRef } from 'react';
61
60
  import {
62
61
  QueryBuilderDerivationProjectionColumnState,
63
62
  QueryBuilderProjectionColumnState,
@@ -82,19 +81,22 @@ import {
82
81
  instanceValue_setValues,
83
82
  } from '../stores/shared/ValueSpecificationModifierHelper.js';
84
83
  import { PARAMETER_SUBMIT_ACTION } from '../stores/shared/LambdaParameterState.js';
85
- import { QUERY_BUILDER_TEST_ID } from '../application/QueryBuilderTesting.js';
84
+ import { QUERY_BUILDER_TEST_ID } from '../__lib__/QueryBuilderTesting.js';
86
85
  import {
87
86
  DataGrid,
88
87
  type DataGridCellMouseOverEvent,
89
88
  } from '@finos/legend-lego/data-grid';
90
- import { CodeEditor } from '@finos/legend-lego/code-editor';
89
+ import {
90
+ CODE_EDITOR_LANGUAGE,
91
+ CodeEditor,
92
+ } from '@finos/legend-lego/code-editor';
91
93
  import { ExecutionPlanViewer } from './execution-plan/ExecutionPlanViewer.js';
92
94
 
93
95
  const QueryBuilderGridResultContextMenu = observer(
94
96
  forwardRef<
95
97
  HTMLDivElement,
96
98
  {
97
- event: DataGridCellMouseOverEvent | null;
99
+ event: MutableRefObject<DataGridCellMouseOverEvent | null>;
98
100
  tdsState: QueryBuilderTDSState;
99
101
  }
100
102
  >(function QueryBuilderResultContextMenu(props, ref) {
@@ -108,10 +110,10 @@ const QueryBuilderGridResultContextMenu = observer(
108
110
  const postFilterState = tdsState.postFilterState;
109
111
  const projectionColumnState = guaranteeNonNullable(
110
112
  tdsState.projectionColumns
111
- .filter((c) => c.columnName === event?.column.getColId())
113
+ .filter((c) => c.columnName === event.current?.column.getColId())
112
114
  .concat(
113
115
  tdsState.aggregationState.columns
114
- .filter((c) => c.columnName === event?.column.getColId())
116
+ .filter((c) => c.columnName === event.current?.column.getColId())
115
117
  .map((ag) => ag.projectionColumnState),
116
118
  )[0],
117
119
  );
@@ -142,7 +144,7 @@ const QueryBuilderGridResultContextMenu = observer(
142
144
  const updateFilterConditionValue = (
143
145
  conditionValue: InstanceValue,
144
146
  ): void => {
145
- if (event?.value !== null) {
147
+ if (event.current?.value !== null) {
146
148
  instanceValue_setValue(
147
149
  conditionValue,
148
150
  conditionValue instanceof EnumValueInstanceValue
@@ -151,10 +153,10 @@ const QueryBuilderGridResultContextMenu = observer(
151
153
  (
152
154
  conditionValue.genericType?.ownerReference
153
155
  .value as Enumeration
154
- ).values.filter((v) => v.name === event?.value)[0],
156
+ ).values.filter((v) => v.name === event.current?.value)[0],
155
157
  ),
156
158
  )
157
- : event?.value,
159
+ : event.current?.value,
158
160
  0,
159
161
  tdsState.queryBuilderState.observerContext,
160
162
  );
@@ -221,7 +223,7 @@ const QueryBuilderGridResultContextMenu = observer(
221
223
  (conditionState.value instanceof EnumValueInstanceValue
222
224
  ? conditionState.value.values.map((ef) => ef.value.name)
223
225
  : conditionState.value.values
224
- ).includes(event?.value);
226
+ ).includes(event.current?.value);
225
227
  if (!doesValueAlreadyExist) {
226
228
  const currentValueSpecificaton = conditionState.value;
227
229
  const newValueSpecification =
@@ -249,7 +251,7 @@ const QueryBuilderGridResultContextMenu = observer(
249
251
  : (v as InstanceValue).values,
250
252
  )
251
253
  .flat()
252
- .includes(event?.value);
254
+ .includes(event.current?.value);
253
255
  if (!doesValueAlreadyExist) {
254
256
  const newValueSpecification = (
255
257
  isFilterBy ? postFilterEqualOperator : postFilterNotEqualOperator
@@ -285,12 +287,14 @@ const QueryBuilderGridResultContextMenu = observer(
285
287
  };
286
288
 
287
289
  const handleCopyCellValue = applicationStore.guardUnhandledError(() =>
288
- applicationStore.clipboardService.copyTextToClipboard(event?.value),
290
+ applicationStore.clipboardService.copyTextToClipboard(
291
+ event.current?.value,
292
+ ),
289
293
  );
290
294
 
291
295
  const handleCopyRowValue = applicationStore.guardUnhandledError(() =>
292
296
  applicationStore.clipboardService.copyTextToClipboard(
293
- Object.values(event?.data).toString(),
297
+ Object.values(event.current?.data).toString(),
294
298
  ),
295
299
  );
296
300
 
@@ -330,8 +334,9 @@ const QueryBuilderGridResult = observer(
330
334
  const { executionResult, queryBuilderState } = props;
331
335
  const fetchStructureImplementation =
332
336
  queryBuilderState.fetchStructureState.implementation;
333
- const [cellDoubleClickedEvent, setCellDoubleClickedEvent] =
334
- useState<DataGridCellMouseOverEvent | null>(null);
337
+ const cellDoubleClickedEvent = useRef<DataGridCellMouseOverEvent | null>(
338
+ null,
339
+ );
335
340
  const columns = executionResult.result.columns;
336
341
  const rowData = executionResult.result.rows.map((_row, rowIdx) => {
337
342
  const row: PlainObject = {};
@@ -381,7 +386,7 @@ const QueryBuilderGridResult = observer(
381
386
  // in. hence why we set the cell every time we mouse over
382
387
  // rather than making user click multiple times.
383
388
  onCellMouseOver={(event): void => {
384
- setCellDoubleClickedEvent(event);
389
+ cellDoubleClickedEvent.current = event;
385
390
  }}
386
391
  suppressFieldDotNotation={true}
387
392
  columnDefs={columns.map((colName) => ({
@@ -425,7 +430,7 @@ const QueryBuilderResultValues = observer(
425
430
  inputValue={JSON.stringify(
426
431
  extractExecutionResultValues(executionResult),
427
432
  null,
428
- TAB_SIZE,
433
+ DEFAULT_TAB_SIZE,
429
434
  )}
430
435
  isReadOnly={true}
431
436
  />
@@ -26,7 +26,7 @@ import {
26
26
  } from '@finos/legend-art';
27
27
  import { observer } from 'mobx-react-lite';
28
28
  import type { QueryBuilderState } from '../stores/QueryBuilderState.js';
29
- import { QUERY_BUILDER_TEST_ID } from '../application/QueryBuilderTesting.js';
29
+ import { QUERY_BUILDER_TEST_ID } from '../__lib__/QueryBuilderTesting.js';
30
30
  import {
31
31
  type Class,
32
32
  type Mapping,
@@ -41,14 +41,13 @@ import {
41
41
  VARIABLE_REFERENCE_TOKEN,
42
42
  isElementDeprecated,
43
43
  PrimitiveType,
44
- type PureModel,
45
44
  } from '@finos/legend-graph';
45
+ import { useApplicationStore } from '@finos/legend-application';
46
46
  import {
47
- type PackageableElementOption,
48
- getPackageableElementOptionFormatter,
49
47
  buildElementOption,
50
- useApplicationStore,
51
- } from '@finos/legend-application';
48
+ getPackageableElementOptionFormatter,
49
+ type PackageableElementOption,
50
+ } from '@finos/legend-lego/graph-editor';
52
51
  import { MilestoningParametersEditor } from './explorer/QueryBuilderMilestoningEditor.js';
53
52
 
54
53
  export const getParameterValue = (
@@ -188,7 +187,6 @@ export const QueryBuilderClassSelector = observer(
188
187
  darkMode:
189
188
  !applicationStore.layoutService
190
189
  .TEMPORARY__isLightColorThemeEnabled,
191
- graph: queryBuilderState.graphManagerState.graph,
192
190
  })}
193
191
  />
194
192
  {queryBuilderState.isQuerySupported && (
@@ -226,7 +224,6 @@ export const buildRuntimeValueOption = (
226
224
 
227
225
  export const getRuntimeOptionFormatter = (props: {
228
226
  darkMode?: boolean;
229
- pureModel: PureModel;
230
227
  }): ((option: { value: Runtime }) => React.ReactNode) =>
231
228
  function RuntimeOptionLabel(option: { value: Runtime }): React.ReactNode {
232
229
  if (option.value instanceof RuntimePointer) {
@@ -351,7 +348,6 @@ const BasicQueryBuilderSetup = observer(
351
348
  darkMode:
352
349
  !applicationStore.layoutService
353
350
  .TEMPORARY__isLightColorThemeEnabled,
354
- graph: queryBuilderState.graphManagerState.graph,
355
351
  })}
356
352
  />
357
353
  </div>
@@ -386,7 +382,6 @@ const BasicQueryBuilderSetup = observer(
386
382
  darkMode:
387
383
  !applicationStore.layoutService
388
384
  .TEMPORARY__isLightColorThemeEnabled,
389
- pureModel: queryBuilderState.graphManagerState.graph,
390
385
  })}
391
386
  />
392
387
  </div>
@@ -31,12 +31,12 @@ import {
31
31
  import type { QueryBuilderState } from '../stores/QueryBuilderState.js';
32
32
  import { QueryBuilderTextEditorMode } from '../stores/QueryBuilderTextEditorState.js';
33
33
  import { flowResult } from 'mobx';
34
+ import { useApplicationStore } from '@finos/legend-application';
35
+ import { LambdaEditor } from './shared/LambdaEditor.js';
34
36
  import {
35
37
  CODE_EDITOR_LANGUAGE,
36
- useApplicationStore,
37
- } from '@finos/legend-application';
38
- import { LambdaEditor } from './shared/LambdaEditor.js';
39
- import { CodeEditor } from '@finos/legend-lego/code-editor';
38
+ CodeEditor,
39
+ } from '@finos/legend-lego/code-editor';
40
40
 
41
41
  export const QueryBuilderTextEditor = observer(
42
42
  (props: { queryBuilderState: QueryBuilderState }) => {
@@ -29,7 +29,7 @@ import {
29
29
  import { QueryBuilderSidebar } from './QueryBuilderSideBar.js';
30
30
  import { QueryBuilderParametersPanel } from './QueryBuilderParametersPanel.js';
31
31
 
32
- const QueryBuilderUnsupportedQueryEditPanel = observer(
32
+ const QueryBuilderUnsupportedQueryViewer = observer(
33
33
  (props: { queryBuilderState: QueryBuilderState }) => {
34
34
  const { queryBuilderState } = props;
35
35
  const queryUnsupportedState = queryBuilderState.unsupportedQueryState;
@@ -77,7 +77,7 @@ export const QueryBuilderUnsupportedQueryEditor = observer(
77
77
  </ResizablePanel>
78
78
  <ResizablePanelSplitter />
79
79
  <ResizablePanel>
80
- <QueryBuilderUnsupportedQueryEditPanel
80
+ <QueryBuilderUnsupportedQueryViewer
81
81
  queryBuilderState={queryBuilderState}
82
82
  />
83
83
  </ResizablePanel>
@@ -24,7 +24,7 @@ import {
24
24
  type LegendApplicationSetup,
25
25
  } from '@finos/legend-application';
26
26
  import packageJson from '../../package.json';
27
- import { QUERY_BUILDER_SETTING_CONFIG } from '../application/QueryBuilderSetting.js';
27
+ import { QUERY_BUILDER_SETTING_CONFIG } from '../__lib__/QueryBuilderSetting.js';
28
28
  import { QUERY_BUILDER_COMMAND_CONFIG } from '../stores/QueryBuilderCommand.js';
29
29
  import type { QueryBuilderState } from '../stores/QueryBuilderState.js';
30
30
  import { configureDataGridComponent } from '@finos/legend-lego/data-grid';
@@ -15,7 +15,8 @@
15
15
  */
16
16
 
17
17
  import { type RenderResult, render, waitFor } from '@testing-library/react';
18
- import { createSpy, LogService } from '@finos/legend-shared';
18
+ import { LogService } from '@finos/legend-shared';
19
+ import { createSpy } from '@finos/legend-shared/test';
19
20
  import {
20
21
  type RawMappingModelCoverageAnalysisResult,
21
22
  type RawLambda,
@@ -24,24 +25,23 @@ import {
24
25
  RuntimePointer,
25
26
  } from '@finos/legend-graph';
26
27
  import {
27
- TEST__ApplicationStoreProvider,
28
- TEST__getGenericApplicationConfig,
29
- TEST__LegendApplicationPluginManager,
30
- TEST__provideMockedApplicationStore,
31
- WebApplicationNavigator,
32
- TEST__provideMockedWebApplicationNavigator,
33
- LegendApplicationComponentFrameworkProvider,
34
- Router,
35
- createMemoryHistory,
28
+ ApplicationStoreProvider,
29
+ ApplicationFrameworkProvider,
30
+ ApplicationStore,
36
31
  } from '@finos/legend-application';
32
+ import { TEST__BrowserEnvironmentProvider } from '@finos/legend-application/test';
37
33
  import type { Entity } from '@finos/legend-storage';
38
- import { QueryBuilder } from './QueryBuilder.js';
34
+ import { QueryBuilder } from '../QueryBuilder.js';
39
35
  import {
40
36
  type QueryBuilderState,
41
37
  INTERNAL__BasicQueryBuilderState,
42
- } from '../stores/QueryBuilderState.js';
43
- import { QueryBuilder_GraphManagerPreset } from '../graphManager/QueryBuilder_GraphManagerPreset.js';
44
- import { QUERY_BUILDER_TEST_ID } from '../application/QueryBuilderTesting.js';
38
+ } from '../../stores/QueryBuilderState.js';
39
+ import { QueryBuilder_GraphManagerPreset } from '../../graph-manager/QueryBuilder_GraphManagerPreset.js';
40
+ import { QUERY_BUILDER_TEST_ID } from '../../__lib__/QueryBuilderTesting.js';
41
+ import {
42
+ TEST__LegendApplicationPluginManager,
43
+ TEST__getGenericApplicationConfig,
44
+ } from '../../stores/__test-utils__/QueryBuilderStateTestUtils.js';
45
45
 
46
46
  export const TEST__setUpQueryBuilder = async (
47
47
  entities: Entity[],
@@ -53,12 +53,15 @@ export const TEST__setUpQueryBuilder = async (
53
53
  renderResult: RenderResult;
54
54
  queryBuilderState: QueryBuilderState;
55
55
  }> => {
56
- const pluginManager = TEST__LegendApplicationPluginManager.create();
57
- pluginManager.usePresets([new QueryBuilder_GraphManagerPreset()]).install();
56
+ const MOCK__pluginManager = TEST__LegendApplicationPluginManager.create();
57
+ MOCK__pluginManager.usePresets([
58
+ new QueryBuilder_GraphManagerPreset(),
59
+ ]).install();
58
60
  const graphManagerState = new GraphManagerState(
59
- pluginManager,
61
+ MOCK__pluginManager,
60
62
  new LogService(),
61
63
  );
64
+
62
65
  await graphManagerState.initializeSystem();
63
66
  await graphManagerState.graphManager.buildGraph(
64
67
  graphManagerState.graph,
@@ -66,18 +69,13 @@ export const TEST__setUpQueryBuilder = async (
66
69
  graphManagerState.graphBuildState,
67
70
  );
68
71
 
69
- const history = createMemoryHistory();
70
- const navigator = new WebApplicationNavigator(history);
71
- TEST__provideMockedWebApplicationNavigator({ mock: navigator });
72
-
73
- const applicationStore = TEST__provideMockedApplicationStore(
72
+ const MOCK__applicationStore = new ApplicationStore(
74
73
  TEST__getGenericApplicationConfig(),
75
- pluginManager,
76
- { navigator },
74
+ MOCK__pluginManager,
77
75
  );
78
76
 
79
77
  const queryBuilderState = new INTERNAL__BasicQueryBuilderState(
80
- applicationStore,
78
+ MOCK__applicationStore,
81
79
  graphManagerState,
82
80
  );
83
81
  const mapping = graphManagerState.graph.getMapping(mappingPath);
@@ -103,16 +101,13 @@ export const TEST__setUpQueryBuilder = async (
103
101
  }
104
102
 
105
103
  const renderResult = render(
106
- <Router history={history}>
107
- <TEST__ApplicationStoreProvider
108
- config={TEST__getGenericApplicationConfig()}
109
- pluginManager={pluginManager}
110
- >
111
- <LegendApplicationComponentFrameworkProvider>
104
+ <ApplicationStoreProvider store={MOCK__applicationStore}>
105
+ <TEST__BrowserEnvironmentProvider>
106
+ <ApplicationFrameworkProvider>
112
107
  <QueryBuilder queryBuilderState={queryBuilderState} />
113
- </LegendApplicationComponentFrameworkProvider>
114
- </TEST__ApplicationStoreProvider>
115
- </Router>,
108
+ </ApplicationFrameworkProvider>
109
+ </TEST__BrowserEnvironmentProvider>
110
+ </ApplicationStoreProvider>,
116
111
  );
117
112
 
118
113
  await waitFor(() =>