@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
@@ -59,8 +59,11 @@ import {
59
59
  type RawExecutionPlan,
60
60
  } from '@finos/legend-graph';
61
61
  import { SQLExecutionNodeViewer } from './SQLExecutionNodeViewer.js';
62
- import { CodeEditor } from '@finos/legend-lego/code-editor';
63
- import { CODE_EDITOR_LANGUAGE, TAB_SIZE } from '@finos/legend-application';
62
+ import {
63
+ CODE_EDITOR_LANGUAGE,
64
+ CodeEditor,
65
+ } from '@finos/legend-lego/code-editor';
66
+ import { DEFAULT_TAB_SIZE } from '@finos/legend-application';
64
67
 
65
68
  /**
66
69
  * @modularize
@@ -456,7 +459,7 @@ const ExecutionPlanViewerContent = observer(
456
459
  </ResizablePanelGroup>
457
460
  ) : (
458
461
  <CodeEditor
459
- inputValue={JSON.stringify(rawPlan, undefined, TAB_SIZE)}
462
+ inputValue={JSON.stringify(rawPlan, undefined, DEFAULT_TAB_SIZE)}
460
463
  isReadOnly={true}
461
464
  language={CODE_EDITOR_LANGUAGE.JSON}
462
465
  showMiniMap={true}
@@ -18,8 +18,10 @@ import { observer } from 'mobx-react-lite';
18
18
  import type { ExecutionPlanState } from '../../stores/execution-plan/ExecutionPlanState.js';
19
19
  import { format as formatSQL } from 'sql-formatter';
20
20
  import type { SQLResultColumn } from '@finos/legend-graph';
21
- import { CodeEditor } from '@finos/legend-lego/code-editor';
22
- import { CODE_EDITOR_LANGUAGE } from '@finos/legend-application';
21
+ import {
22
+ CODE_EDITOR_LANGUAGE,
23
+ CodeEditor,
24
+ } from '@finos/legend-lego/code-editor';
23
25
 
24
26
  /**
25
27
  * TODO: Create a new `AbstractPlugin` for this, called `ExecutionPlanViewerPlugin`
@@ -87,8 +87,7 @@ import {
87
87
  isElementDeprecated,
88
88
  } from '@finos/legend-graph';
89
89
  import { useApplicationStore } from '@finos/legend-application';
90
- import { getClassPropertyIcon } from '../shared/ElementIconUtils.js';
91
- import { QUERY_BUILDER_TEST_ID } from '../../application/QueryBuilderTesting.js';
90
+ import { QUERY_BUILDER_TEST_ID } from '../../__lib__/QueryBuilderTesting.js';
92
91
  import {
93
92
  filterByType,
94
93
  guaranteeNonNullable,
@@ -97,6 +96,7 @@ import {
97
96
  import { QueryBuilderPropertySearchPanel } from './QueryBuilderPropertySearchPanel.js';
98
97
  import { QueryBuilderTDSState } from '../../stores/fetch-structure/tds/QueryBuilderTDSState.js';
99
98
  import { QueryBuilderSimpleProjectionColumnState } from '../../stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js';
99
+ import { getClassPropertyIcon } from '@finos/legend-lego/graph-editor';
100
100
 
101
101
  const checkForDeprecatedNode = (
102
102
  node: QueryBuilderExplorerTreeNodeData,
@@ -60,8 +60,8 @@ import {
60
60
  renderPropertyTypeIcon,
61
61
  } from './QueryBuilderExplorerPanel.js';
62
62
  import { QueryBuilderPropertyInfoTooltip } from '../shared/QueryBuilderPropertyInfoTooltip.js';
63
- import { QUERY_BUILDER_TEST_ID } from '../../application/QueryBuilderTesting.js';
64
- import { FuzzySearchAdvancedConfigMenu } from '@finos/legend-application/components';
63
+ import { QUERY_BUILDER_TEST_ID } from '../../__lib__/QueryBuilderTesting.js';
64
+ import { FuzzySearchAdvancedConfigMenu } from '@finos/legend-lego/application';
65
65
 
66
66
  const prettyPropertyNameFromNodeId = (name: string): string => {
67
67
  let propNameArray = name.split('.');
@@ -41,9 +41,21 @@ import {
41
41
  ModalFooterButton,
42
42
  ModalFooter,
43
43
  SerializeIcon,
44
+ ResizablePanel,
45
+ ResizablePanelSplitter,
46
+ ResizablePanelGroup,
47
+ BufferIcon,
48
+ CustomSelectorInput,
49
+ FolderIcon,
44
50
  } from '@finos/legend-art';
45
- import { QUERY_BUILDER_TEST_ID } from '../../application/QueryBuilderTesting.js';
46
- import { isNonNullable } from '@finos/legend-shared';
51
+ import { QUERY_BUILDER_TEST_ID } from '../../__lib__/QueryBuilderTesting.js';
52
+ import {
53
+ deepClone,
54
+ filterByType,
55
+ guaranteeNonNullable,
56
+ isNonNullable,
57
+ prettyCONSTName,
58
+ } from '@finos/legend-shared';
47
59
  import {
48
60
  type QueryBuilderGraphFetchTreeData,
49
61
  type QueryBuilderGraphFetchTreeNodeData,
@@ -55,12 +67,53 @@ import {
55
67
  QUERY_BUILDER_EXPLORER_TREE_DND_TYPE,
56
68
  } from '../../stores/explorer/QueryBuilderExplorerState.js';
57
69
  import {
70
+ type GraphFetchSerializationState,
71
+ GraphFetchExternalFormatSerializationState,
58
72
  GraphFetchPureSerializationState,
59
73
  PureSerializationConfig,
74
+ SERIALIZATION_TYPE,
60
75
  type QueryBuilderGraphFetchTreeState,
61
76
  } from '../../stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js';
62
- import { getClassPropertyIcon } from '../shared/ElementIconUtils.js';
63
77
  import { QueryBuilderTextEditorMode } from '../../stores/QueryBuilderTextEditorState.js';
78
+ import {
79
+ type PackageableElement,
80
+ Binding,
81
+ Package,
82
+ getDescendantsOfPackage,
83
+ } from '@finos/legend-graph';
84
+ import {
85
+ ActionAlertActionType,
86
+ ActionAlertType,
87
+ } from '@finos/legend-application';
88
+ import {
89
+ buildElementOption,
90
+ getClassPropertyIcon,
91
+ type PackageableElementOption,
92
+ } from '@finos/legend-lego/graph-editor';
93
+
94
+ const getBindingFormatter = (props: {
95
+ darkMode?: boolean;
96
+ }): ((
97
+ option: PackageableElementOption<PackageableElement>,
98
+ ) => React.ReactNode) =>
99
+ function BindingLabel(
100
+ option: PackageableElementOption<PackageableElement>,
101
+ ): React.ReactNode {
102
+ const className = props.darkMode
103
+ ? 'packageable-element-option-label--dark'
104
+ : 'packageable-element-option-label';
105
+ return (
106
+ <div className={className}>
107
+ <div className={`${className}__name`}>{option.label}</div>
108
+ {option.value.package && (
109
+ <div className={`${className}__tag`}>{option.value.path}</div>
110
+ )}
111
+ <div className={`${className}__tag`}>
112
+ {(option.value as Binding).contentType}
113
+ </div>
114
+ </div>
115
+ );
116
+ };
64
117
 
65
118
  const QueryBuilderGraphFetchTreeNodeContainer: React.FC<
66
119
  TreeNodeContainerProps<
@@ -287,22 +340,131 @@ const PureSerializationConfigModal = observer(
287
340
  },
288
341
  );
289
342
 
343
+ export const QueryBuilderGraphFetchExternalConfig = observer(
344
+ (props: {
345
+ graphFetchState: QueryBuilderGraphFetchTreeState;
346
+ serializationState: GraphFetchExternalFormatSerializationState;
347
+ serializationTreeData: QueryBuilderGraphFetchTreeData;
348
+ bindings: Binding[];
349
+ isReadOnly: boolean;
350
+ }) => {
351
+ const {
352
+ graphFetchState,
353
+ serializationState,
354
+ serializationTreeData,
355
+ bindings,
356
+ isReadOnly,
357
+ } = props;
358
+ const bindingOptions = bindings.map((result) => buildElementOption(result));
359
+ const selectedBinding = {
360
+ value: serializationState.targetBinding,
361
+ label: serializationState.targetBinding.name,
362
+ };
363
+ const onBindingChange = (
364
+ val: PackageableElementOption<Binding> | null,
365
+ ): void => {
366
+ if (val !== null) {
367
+ serializationState.setBinding(val.value);
368
+ serializationState.setGraphFetchTree(serializationTreeData);
369
+ }
370
+ };
371
+ const onNodeSelect = (node: QueryBuilderGraphFetchTreeNodeData): void => {
372
+ if (node.childrenIds.length) {
373
+ node.isOpen = !node.isOpen;
374
+ }
375
+ };
376
+ const getChildNodes = (
377
+ node: QueryBuilderGraphFetchTreeNodeData,
378
+ ): QueryBuilderGraphFetchTreeNodeData[] =>
379
+ node.childrenIds
380
+ .map((id) => serializationTreeData.nodes.get(id))
381
+ .filter(isNonNullable);
382
+ const removeNode = (node: QueryBuilderGraphFetchTreeNodeData): void => {
383
+ if (serializationTreeData.nodes.size === 1) {
384
+ graphFetchState.queryBuilderState.applicationStore.notificationService.notifyWarning(
385
+ 'externalize serialization tree can not be empty',
386
+ );
387
+ } else {
388
+ removeNodeRecursively(serializationTreeData, node);
389
+ serializationState.setGraphFetchTree({ ...serializationTreeData });
390
+ }
391
+ };
392
+
393
+ return (
394
+ <div className="query-builder-graph-fetch-external-format">
395
+ <div className="service-execution-editor__configuration__items">
396
+ <div className="service-execution-editor__configuration__item">
397
+ <div className="btn--sm service-execution-editor__configuration__item__label">
398
+ <BufferIcon />
399
+ </div>
400
+ <CustomSelectorInput
401
+ className="panel__content__form__section__dropdown service-execution-editor__configuration__item__dropdown"
402
+ disabled={isReadOnly}
403
+ options={bindingOptions}
404
+ onChange={onBindingChange}
405
+ value={selectedBinding}
406
+ formatOptionLabel={getBindingFormatter({
407
+ darkMode: true,
408
+ })}
409
+ darkMode={true}
410
+ />
411
+ </div>
412
+ <div className="service-execution-editor__configuration__item">
413
+ <div className="btn--sm service-execution-editor__configuration__item__label">
414
+ <FolderIcon />
415
+ </div>
416
+ <TreeView
417
+ components={{
418
+ TreeNodeContainer: QueryBuilderGraphFetchTreeNodeContainer,
419
+ }}
420
+ className="query-builder-graph-fetch-tree__container__tree"
421
+ treeData={serializationTreeData}
422
+ onNodeSelect={onNodeSelect}
423
+ getChildNodes={getChildNodes}
424
+ innerProps={{
425
+ isReadOnly,
426
+ removeNode,
427
+ }}
428
+ />
429
+ </div>
430
+ </div>
431
+ </div>
432
+ );
433
+ },
434
+ );
435
+
290
436
  export const QueryBuilderGraphFetchTreeExplorer = observer(
291
437
  (props: {
292
438
  graphFetchState: QueryBuilderGraphFetchTreeState;
293
- pureSerializationState: GraphFetchPureSerializationState;
439
+ serializationState: GraphFetchSerializationState;
294
440
  treeData: QueryBuilderGraphFetchTreeData;
295
441
  updateTreeData: (data: QueryBuilderGraphFetchTreeData) => void;
296
442
  isReadOnly: boolean;
297
443
  }) => {
298
444
  const {
299
445
  graphFetchState,
300
- pureSerializationState,
446
+ serializationState,
301
447
  treeData,
302
448
  updateTreeData,
303
449
  isReadOnly,
304
450
  } = props;
305
451
 
452
+ // Retrieve all bindings whose packageableElementIncludes contain the root class of main graph fetch tree
453
+ const compatibleBindings =
454
+ graphFetchState.queryBuilderState.graphManagerState.usableStores
455
+ .filter(filterByType(Binding))
456
+ .filter((b) => {
457
+ const elements = b.modelUnit.packageableElementIncludes.map(
458
+ (p) => p.value,
459
+ );
460
+ return elements
461
+ .filter(filterByType(Package))
462
+ .map((p) => Array.from(getDescendantsOfPackage(p)))
463
+ .flat()
464
+ .concat(elements.filter((e) => !(e instanceof Package)))
465
+ .includes(treeData.tree.class.value);
466
+ });
467
+
306
468
  const onNodeSelect = (node: QueryBuilderGraphFetchTreeNodeData): void => {
307
469
  if (node.childrenIds.length) {
308
470
  node.isOpen = !node.isOpen;
@@ -319,6 +481,24 @@ export const QueryBuilderGraphFetchTreeExplorer = observer(
319
481
 
320
482
  const removeNode = (node: QueryBuilderGraphFetchTreeNodeData): void => {
321
483
  removeNodeRecursively(treeData, node);
484
+ if (treeData.nodes.size === 0) {
485
+ graphFetchState.setSerializationState(
486
+ new GraphFetchPureSerializationState(graphFetchState),
487
+ );
488
+ }
489
+ // Remove node from external format serialization tree as well
490
+ if (
491
+ serializationState instanceof
492
+ GraphFetchExternalFormatSerializationState &&
493
+ serializationState.treeData &&
494
+ serializationState.treeData.nodes.get(node.id)
495
+ ) {
496
+ removeNodeRecursively(
497
+ serializationState.treeData,
498
+ guaranteeNonNullable(serializationState.treeData.nodes.get(node.id)),
499
+ );
500
+ updateTreeData({ ...serializationState.treeData });
501
+ }
322
502
  updateTreeData({ ...treeData });
323
503
  };
324
504
 
@@ -326,71 +506,202 @@ export const QueryBuilderGraphFetchTreeExplorer = observer(
326
506
  graphFetchState.setChecked(!graphFetchState.isChecked);
327
507
 
328
508
  const openConfigModal = (): void => {
329
- pureSerializationState.setConfigModal(true);
509
+ if (serializationState instanceof GraphFetchPureSerializationState) {
510
+ serializationState.setConfigModal(true);
511
+ }
330
512
  };
331
513
 
514
+ const onChangeSerializationType =
515
+ (implementationType: SERIALIZATION_TYPE): (() => void) =>
516
+ (): void => {
517
+ if (implementationType !== serializationState.getLabel()) {
518
+ graphFetchState.queryBuilderState.applicationStore.alertService.setActionAlertInfo(
519
+ {
520
+ message:
521
+ 'Current graph-fetch will be lost when switching to a different serialization mode. Do you still want to proceed?',
522
+ type: ActionAlertType.CAUTION,
523
+ actions: [
524
+ {
525
+ label: 'Proceed',
526
+ type: ActionAlertActionType.PROCEED_WITH_CAUTION,
527
+ handler:
528
+ graphFetchState.queryBuilderState.applicationStore.guardUnhandledError(
529
+ async () => {
530
+ switch (implementationType) {
531
+ case SERIALIZATION_TYPE.EXTERNAL_FORMAT:
532
+ if (
533
+ compatibleBindings.length > 0 &&
534
+ compatibleBindings[0]
535
+ ) {
536
+ const externalizeState =
537
+ new GraphFetchExternalFormatSerializationState(
538
+ graphFetchState,
539
+ compatibleBindings[0],
540
+ undefined,
541
+ );
542
+ graphFetchState.setGraphFetchTree(treeData);
543
+ externalizeState.setGraphFetchTree(
544
+ deepClone(treeData),
545
+ );
546
+ graphFetchState.setSerializationState(
547
+ externalizeState,
548
+ );
549
+ } else {
550
+ graphFetchState.queryBuilderState.applicationStore.notificationService.notifyWarning(
551
+ `Can't switch to external format serialization: No compatible bindings found`,
552
+ );
553
+ }
554
+ break;
555
+ case SERIALIZATION_TYPE.PURE:
556
+ default:
557
+ graphFetchState.setSerializationState(
558
+ new GraphFetchPureSerializationState(
559
+ graphFetchState,
560
+ ),
561
+ );
562
+ break;
563
+ }
564
+ },
565
+ ),
566
+ },
567
+ {
568
+ label: 'Cancel',
569
+ type: ActionAlertActionType.PROCEED,
570
+ default: true,
571
+ },
572
+ ],
573
+ },
574
+ );
575
+ }
576
+ };
577
+
332
578
  return (
333
579
  <div className="query-builder-graph-fetch-tree">
334
580
  <div className="query-builder-graph-fetch-tree__toolbar">
581
+ <div className="query-builder__fetch__structure__modes">
582
+ {Object.values(SERIALIZATION_TYPE).map((type) => (
583
+ <button
584
+ onClick={onChangeSerializationType(type)}
585
+ className={clsx('query-builder__fetch__structure__mode', {
586
+ 'query-builder__fetch__structure__mode--selected':
587
+ type === serializationState.getLabel(),
588
+ })}
589
+ key={type}
590
+ >
591
+ {prettyCONSTName(type)}
592
+ </button>
593
+ ))}
594
+ </div>
335
595
  <div className="query-builder-graph-fetch-tree__actions">
336
- <button
337
- className="query-builder-graph-fetch-tree__actions__action-btn__label"
338
- onClick={openConfigModal}
339
- title={`${
340
- pureSerializationState.config
341
- ? 'Edit pure serialization config'
342
- : 'Add pure serialization config'
343
- }`}
344
- tabIndex={-1}
345
- >
346
- <SerializeIcon className="query-builder-graph-fetch-tree__actions__action-btn__label__icon" />
347
- <div className="query-builder-graph-fetch-tree__actions__action-btn__label__title">
348
- {pureSerializationState.config ? 'Edit Config' : 'Add Config'}
596
+ {serializationState instanceof GraphFetchPureSerializationState && (
597
+ <div className="query-builder-graph-fetch-tree__actions__action">
598
+ <button
599
+ className="query-builder-graph-fetch-tree__actions__action-btn__label"
600
+ onClick={openConfigModal}
601
+ title={`${
602
+ serializationState.config
603
+ ? 'Edit pure serialization config'
604
+ : 'Add pure serialization config'
605
+ }`}
606
+ tabIndex={-1}
607
+ >
608
+ <SerializeIcon className="query-builder-graph-fetch-tree__actions__action-btn__label__icon" />
609
+ <div className="query-builder-graph-fetch-tree__actions__action-btn__label__title">
610
+ {serializationState.config ? 'Edit Config' : 'Add Config'}
611
+ </div>
612
+ </button>
349
613
  </div>
350
- </button>
351
- </div>
352
- <div
353
- className={clsx('panel__content__form__section__toggler')}
354
- onClick={toggleChecked}
355
- >
356
- <button
357
- className={clsx('panel__content__form__section__toggler__btn', {
358
- 'panel__content__form__section__toggler__btn--toggled':
359
- graphFetchState.isChecked,
360
- })}
614
+ )}
615
+ <div
616
+ className={clsx('panel__content__form__section__toggler')}
617
+ onClick={toggleChecked}
361
618
  >
362
- {graphFetchState.isChecked ? <CheckSquareIcon /> : <SquareIcon />}
363
- </button>
364
- <div className="panel__content__form__section__toggler__prompt">
365
- Check graph fetch
366
- </div>
367
- <div className="query-builder-graph-fetch-tree__toolbar__hint-icon">
368
- <InfoCircleIcon title="With this enabled, while executing, violations of constraints will reported as part of the result, rather than causing a failure" />
619
+ <button
620
+ className={clsx('panel__content__form__section__toggler__btn', {
621
+ 'panel__content__form__section__toggler__btn--toggled':
622
+ graphFetchState.isChecked,
623
+ })}
624
+ >
625
+ {graphFetchState.isChecked ? (
626
+ <CheckSquareIcon />
627
+ ) : (
628
+ <SquareIcon />
629
+ )}
630
+ </button>
631
+ <div className="panel__content__form__section__toggler__prompt">
632
+ Check graph fetch
633
+ </div>
634
+ <div className="query-builder-graph-fetch-tree__toolbar__hint-icon">
635
+ <InfoCircleIcon title="With this enabled, while executing, violations of constraints will reported as part of the result, rather than causing a failure" />
636
+ </div>
369
637
  </div>
370
638
  </div>
371
639
  </div>
372
640
  <div className="query-builder-graph-fetch-tree__container">
373
- {pureSerializationState.configModal && (
374
- <PureSerializationConfigModal
375
- pureSerializationState={pureSerializationState}
376
- graphFetchState={graphFetchState}
377
- config={
378
- pureSerializationState.config ?? new PureSerializationConfig()
379
- }
380
- />
381
- )}
382
- <TreeView
383
- components={{
384
- TreeNodeContainer: QueryBuilderGraphFetchTreeNodeContainer,
385
- }}
386
- treeData={treeData}
387
- onNodeSelect={onNodeSelect}
388
- getChildNodes={getChildNodes}
389
- innerProps={{
390
- isReadOnly,
391
- removeNode,
392
- }}
393
- />
641
+ {serializationState instanceof GraphFetchPureSerializationState &&
642
+ serializationState.configModal && (
643
+ <PureSerializationConfigModal
644
+ pureSerializationState={serializationState}
645
+ graphFetchState={graphFetchState}
646
+ config={
647
+ serializationState.config ?? new PureSerializationConfig()
648
+ }
649
+ />
650
+ )}
651
+ <ResizablePanelGroup orientation="horizontal">
652
+ <ResizablePanel>
653
+ <div className="query-builder-graph-fetch-external-format__config-group">
654
+ <div className="query-builder-graph-fetch-external-format__config-group__header">
655
+ <div className="query-builder-graph-fetch-external-format__config-group__header__title">
656
+ Graph Fetch Tree
657
+ </div>
658
+ </div>
659
+ <div className="query-builder-graph-fetch-external-format__config-group__content">
660
+ <div className="query-builder-graph-fetch-external-format__config-group__item">
661
+ <TreeView
662
+ components={{
663
+ TreeNodeContainer:
664
+ QueryBuilderGraphFetchTreeNodeContainer,
665
+ }}
666
+ className="query-builder-graph-fetch-tree__container__tree"
667
+ treeData={treeData}
668
+ onNodeSelect={onNodeSelect}
669
+ getChildNodes={getChildNodes}
670
+ innerProps={{
671
+ isReadOnly,
672
+ removeNode,
673
+ }}
674
+ />
675
+ </div>
676
+ </div>
677
+ </div>
678
+ </ResizablePanel>
679
+ <ResizablePanelSplitter />
680
+ {serializationState instanceof
681
+ GraphFetchExternalFormatSerializationState &&
682
+ serializationState.treeData && (
683
+ <ResizablePanel>
684
+ <div className="query-builder-graph-fetch-external-format__config-group">
685
+ <div className="query-builder-graph-fetch-external-format__config-group__header">
686
+ <div className="query-builder-graph-fetch-external-format__config-group__header__title">
687
+ Externalize
688
+ </div>
689
+ </div>
690
+ <div className="query-builder-graph-fetch-external-format__config-group__content">
691
+ <div className="query-builder-graph-fetch-external-format_config-group__item">
692
+ <QueryBuilderGraphFetchExternalConfig
693
+ graphFetchState={graphFetchState}
694
+ serializationState={serializationState}
695
+ serializationTreeData={serializationState.treeData}
696
+ bindings={compatibleBindings}
697
+ isReadOnly={false}
698
+ />
699
+ </div>
700
+ </div>
701
+ </div>
702
+ </ResizablePanel>
703
+ )}
704
+ </ResizablePanelGroup>
394
705
  </div>
395
706
  </div>
396
707
  );
@@ -400,10 +711,9 @@ export const QueryBuilderGraphFetchTreeExplorer = observer(
400
711
  const QueryBuilderGraphFetchTreePanel = observer(
401
712
  (props: {
402
713
  graphFetchTreeState: QueryBuilderGraphFetchTreeState;
403
-
404
- pureSerializationState: GraphFetchPureSerializationState;
714
+ serializationState: GraphFetchSerializationState;
405
715
  }) => {
406
- const { graphFetchTreeState, pureSerializationState } = props;
716
+ const { graphFetchTreeState, serializationState } = props;
407
717
  const treeData = graphFetchTreeState.treeData;
408
718
 
409
719
  // Deep/Graph Fetch Tree
@@ -415,8 +725,18 @@ const QueryBuilderGraphFetchTreePanel = observer(
415
725
  const handleDrop = useCallback(
416
726
  (item: QueryBuilderExplorerTreeDragSource): void => {
417
727
  graphFetchTreeState.addProperty(item.node, { refreshTreeData: true });
728
+ // If serializationState is GraphFetchExternalFormatSerializationState, we should add this node to
729
+ // the external format serialization tree as well
730
+ if (
731
+ serializationState instanceof
732
+ GraphFetchExternalFormatSerializationState
733
+ ) {
734
+ serializationState.addProperty(deepClone(item.node), {
735
+ refreshTreeData: true,
736
+ });
737
+ }
418
738
  },
419
- [graphFetchTreeState],
739
+ [graphFetchTreeState, serializationState],
420
740
  );
421
741
  const [{ isDragOver }, dropTargetConnector] = useDrop<
422
742
  QueryBuilderExplorerTreeDragSource,
@@ -458,7 +778,7 @@ const QueryBuilderGraphFetchTreePanel = observer(
458
778
  {treeData && !isGraphFetchTreeDataEmpty(treeData) && (
459
779
  <QueryBuilderGraphFetchTreeExplorer
460
780
  graphFetchState={graphFetchTreeState}
461
- pureSerializationState={pureSerializationState}
781
+ serializationState={serializationState}
462
782
  treeData={treeData}
463
783
  isReadOnly={false}
464
784
  updateTreeData={updateTreeData}
@@ -478,11 +798,14 @@ export const QueryBuilderGraphFetchPanel = observer(
478
798
  graphFetchTreeState.queryBuilderState.textEditorState.openModal(
479
799
  QueryBuilderTextEditorMode.TEXT,
480
800
  );
481
- if (serializationState instanceof GraphFetchPureSerializationState) {
801
+ if (
802
+ serializationState instanceof GraphFetchPureSerializationState ||
803
+ serializationState instanceof GraphFetchExternalFormatSerializationState
804
+ ) {
482
805
  return (
483
806
  <QueryBuilderGraphFetchTreePanel
484
807
  graphFetchTreeState={graphFetchTreeState}
485
- pureSerializationState={serializationState}
808
+ serializationState={serializationState}
486
809
  />
487
810
  );
488
811
  }
@@ -79,7 +79,7 @@ import {
79
79
  QueryBuilderDerivationProjectionColumnState,
80
80
  } from '../../stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js';
81
81
  import type { QueryBuilderState } from '../../stores/QueryBuilderState.js';
82
- import { QUERY_BUILDER_TEST_ID } from '../../application/QueryBuilderTesting.js';
82
+ import { QUERY_BUILDER_TEST_ID } from '../../__lib__/QueryBuilderTesting.js';
83
83
  import { isTypeCompatibleForAssignment } from '../../stores/QueryBuilderValueSpecificationHelper.js';
84
84
  import { QUERY_BUILDER_GROUP_OPERATION } from '../../stores/QueryBuilderGroupOperationHelper.js';
85
85
  import { QueryBuilderTDSState } from '../../stores/fetch-structure/tds/QueryBuilderTDSState.js';
@@ -53,7 +53,7 @@ import {
53
53
  } from '../../stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js';
54
54
  import { QueryBuilderPropertyExpressionBadge } from '../QueryBuilderPropertyExpressionEditor.js';
55
55
  import { QueryResultModifierModal } from './QueryBuilderResultModifierPanel.js';
56
- import { QUERY_BUILDER_TEST_ID } from '../../application/QueryBuilderTesting.js';
56
+ import { QUERY_BUILDER_TEST_ID } from '../../__lib__/QueryBuilderTesting.js';
57
57
  import { flowResult } from 'mobx';
58
58
  import { useApplicationStore } from '@finos/legend-application';
59
59
  import {
@@ -63,7 +63,7 @@ import { QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE } from '../../stores/fetch-str
63
63
  import type { QueryBuilderTDSColumnState } from '../../stores/fetch-structure/tds/QueryBuilderTDSColumnState.js';
64
64
  import type { QueryBuilderTDSState } from '../../stores/fetch-structure/tds/QueryBuilderTDSState.js';
65
65
  import { COLUMN_SORT_TYPE } from '../../stores/fetch-structure/tds/QueryResultSetModifierState.js';
66
- import { QUERY_BUILDER_TEST_ID } from '../../application/QueryBuilderTesting.js';
66
+ import { QUERY_BUILDER_TEST_ID } from '../../__lib__/QueryBuilderTesting.js';
67
67
  import { QueryBuilderPanelIssueCountBadge } from '../shared/QueryBuilderPanelIssueCountBadge.js';
68
68
 
69
69
  // helpers
@@ -68,7 +68,7 @@ import {
68
68
  debounce,
69
69
  UnsupportedOperationError,
70
70
  } from '@finos/legend-shared';
71
- import { QUERY_BUILDER_TEST_ID } from '../../application/QueryBuilderTesting.js';
71
+ import { QUERY_BUILDER_TEST_ID } from '../../__lib__/QueryBuilderTesting.js';
72
72
  import { useApplicationStore } from '@finos/legend-application';
73
73
  import type { ValueSpecification } from '@finos/legend-graph';
74
74
  import {
@@ -76,7 +76,7 @@ import {
76
76
  instanceValue_setValues,
77
77
  } from '../../stores/shared/ValueSpecificationModifierHelper.js';
78
78
  import { CustomDatePicker } from './CustomDatePicker.js';
79
- import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../graphManager/QueryBuilderSupportedFunctions.js';
79
+ import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../graph/QueryBuilderMetaModelConst.js';
80
80
  import { simplifyValueExpression } from '../../stores/QueryBuilderValueSpecificationHelper.js';
81
81
  import { evaluate } from 'mathjs';
82
82