@finos/legend-query-builder 4.3.9 → 4.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. package/lib/components/QueryBuilder.d.ts.map +1 -1
  2. package/lib/components/QueryBuilder.js +2 -2
  3. package/lib/components/QueryBuilder.js.map +1 -1
  4. package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
  5. package/lib/components/QueryBuilderResultPanel.js +8 -2
  6. package/lib/components/QueryBuilderResultPanel.js.map +1 -1
  7. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.d.ts.map +1 -1
  8. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js +1 -1
  9. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js.map +1 -1
  10. package/lib/components/execution-plan/AllocationExecutionNodeViewer.js +1 -1
  11. package/lib/components/execution-plan/AllocationExecutionNodeViewer.js.map +1 -1
  12. package/lib/components/execution-plan/ExecutionPlanViewer.d.ts +7 -0
  13. package/lib/components/execution-plan/ExecutionPlanViewer.d.ts.map +1 -1
  14. package/lib/components/execution-plan/ExecutionPlanViewer.js +109 -27
  15. package/lib/components/execution-plan/ExecutionPlanViewer.js.map +1 -1
  16. package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.d.ts.map +1 -1
  17. package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.js.map +1 -1
  18. package/lib/components/execution-plan/ImplementationViewer.d.ts +23 -0
  19. package/lib/components/execution-plan/ImplementationViewer.d.ts.map +1 -0
  20. package/lib/components/execution-plan/ImplementationViewer.js +35 -0
  21. package/lib/components/execution-plan/ImplementationViewer.js.map +1 -0
  22. package/lib/components/execution-plan/PartialClassResultViewer.d.ts +21 -0
  23. package/lib/components/execution-plan/PartialClassResultViewer.d.ts.map +1 -0
  24. package/lib/components/execution-plan/PartialClassResultViewer.js +24 -0
  25. package/lib/components/execution-plan/PartialClassResultViewer.js.map +1 -0
  26. package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.d.ts +23 -0
  27. package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.d.ts.map +1 -0
  28. package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.js +43 -0
  29. package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.js.map +1 -0
  30. package/lib/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts +23 -0
  31. package/lib/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts.map +1 -0
  32. package/lib/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.js +47 -0
  33. package/lib/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.js.map +1 -0
  34. package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts +23 -0
  35. package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts.map +1 -0
  36. package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.js +43 -0
  37. package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.js.map +1 -0
  38. package/lib/components/execution-plan/ResultTypeViewer.d.ts.map +1 -1
  39. package/lib/components/execution-plan/ResultTypeViewer.js +5 -1
  40. package/lib/components/execution-plan/ResultTypeViewer.js.map +1 -1
  41. package/lib/components/execution-plan/SQLExecutionNodeViewer.d.ts +1 -1
  42. package/lib/components/execution-plan/SQLExecutionNodeViewer.d.ts.map +1 -1
  43. package/lib/components/execution-plan/SQLExecutionNodeViewer.js +16 -3
  44. package/lib/components/execution-plan/SQLExecutionNodeViewer.js.map +1 -1
  45. package/lib/components/execution-plan/SequenceExecutionNodeViewer.d.ts +6 -0
  46. package/lib/components/execution-plan/SequenceExecutionNodeViewer.d.ts.map +1 -1
  47. package/lib/components/execution-plan/SequenceExecutionNodeViewer.js +34 -12
  48. package/lib/components/execution-plan/SequenceExecutionNodeViewer.js.map +1 -1
  49. package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.d.ts +23 -0
  50. package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.d.ts.map +1 -0
  51. package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.js +57 -0
  52. package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.js.map +1 -0
  53. package/lib/components/execution-plan/TempTableStrategyViewer.d.ts +28 -0
  54. package/lib/components/execution-plan/TempTableStrategyViewer.d.ts.map +1 -0
  55. package/lib/components/execution-plan/TempTableStrategyViewer.js +42 -0
  56. package/lib/components/execution-plan/TempTableStrategyViewer.js.map +1 -0
  57. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts +7 -1
  58. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts.map +1 -1
  59. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js +16 -10
  60. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js.map +1 -1
  61. package/lib/components/shared/CustomDatePicker.d.ts +2 -1
  62. package/lib/components/shared/CustomDatePicker.d.ts.map +1 -1
  63. package/lib/components/shared/CustomDatePicker.js +31 -19
  64. package/lib/components/shared/CustomDatePicker.js.map +1 -1
  65. package/lib/components/shared/QueryBuilderVariableSelector.d.ts.map +1 -1
  66. package/lib/components/shared/QueryBuilderVariableSelector.js +1 -1
  67. package/lib/components/shared/QueryBuilderVariableSelector.js.map +1 -1
  68. package/lib/graph-manager/QueryBuilderConfig.d.ts +24 -0
  69. package/lib/graph-manager/QueryBuilderConfig.d.ts.map +1 -0
  70. package/lib/graph-manager/QueryBuilderConfig.js +27 -0
  71. package/lib/graph-manager/QueryBuilderConfig.js.map +1 -0
  72. package/lib/index.css +2 -2
  73. package/lib/index.css.map +1 -1
  74. package/lib/index.d.ts +1 -0
  75. package/lib/index.d.ts.map +1 -1
  76. package/lib/index.js +1 -0
  77. package/lib/index.js.map +1 -1
  78. package/lib/package.json +9 -9
  79. package/lib/stores/QueryBuilderState.d.ts +3 -1
  80. package/lib/stores/QueryBuilderState.d.ts.map +1 -1
  81. package/lib/stores/QueryBuilderState.js +4 -2
  82. package/lib/stores/QueryBuilderState.js.map +1 -1
  83. package/lib/stores/__test-utils__/QueryBuilderStateTestUtils.d.ts.map +1 -1
  84. package/lib/stores/__test-utils__/QueryBuilderStateTestUtils.js +1 -1
  85. package/lib/stores/__test-utils__/QueryBuilderStateTestUtils.js.map +1 -1
  86. package/lib/stores/execution-plan/ExecutionPlanState.d.ts +15 -1
  87. package/lib/stores/execution-plan/ExecutionPlanState.d.ts.map +1 -1
  88. package/lib/stores/execution-plan/ExecutionPlanState.js +50 -3
  89. package/lib/stores/execution-plan/ExecutionPlanState.js.map +1 -1
  90. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts.map +1 -1
  91. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js +16 -4
  92. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js.map +1 -1
  93. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.d.ts +6 -4
  94. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.d.ts.map +1 -1
  95. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js +43 -9
  96. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js.map +1 -1
  97. package/lib/stores/workflows/FunctionQueryBuilderState.d.ts +2 -1
  98. package/lib/stores/workflows/FunctionQueryBuilderState.d.ts.map +1 -1
  99. package/lib/stores/workflows/FunctionQueryBuilderState.js +2 -2
  100. package/lib/stores/workflows/FunctionQueryBuilderState.js.map +1 -1
  101. package/lib/stores/workflows/MappingQueryBuilderState.d.ts +2 -1
  102. package/lib/stores/workflows/MappingQueryBuilderState.d.ts.map +1 -1
  103. package/lib/stores/workflows/MappingQueryBuilderState.js +2 -2
  104. package/lib/stores/workflows/MappingQueryBuilderState.js.map +1 -1
  105. package/lib/stores/workflows/ServiceQueryBuilderState.d.ts +2 -1
  106. package/lib/stores/workflows/ServiceQueryBuilderState.d.ts.map +1 -1
  107. package/lib/stores/workflows/ServiceQueryBuilderState.js +2 -2
  108. package/lib/stores/workflows/ServiceQueryBuilderState.js.map +1 -1
  109. package/package.json +17 -17
  110. package/src/components/QueryBuilder.tsx +16 -14
  111. package/src/components/QueryBuilderResultPanel.tsx +7 -2
  112. package/src/components/__test-utils__/QueryBuilderComponentTestUtils.tsx +1 -0
  113. package/src/components/execution-plan/AllocationExecutionNodeViewer.tsx +1 -1
  114. package/src/components/execution-plan/ExecutionPlanViewer.tsx +233 -57
  115. package/src/components/execution-plan/FunctionParametersValidationNodeViewer.tsx +1 -0
  116. package/src/components/execution-plan/ImplementationViewer.tsx +76 -0
  117. package/src/components/execution-plan/PartialClassResultViewer.tsx +55 -0
  118. package/src/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.tsx +190 -0
  119. package/src/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.tsx +219 -0
  120. package/src/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.tsx +204 -0
  121. package/src/components/execution-plan/ResultTypeViewer.tsx +4 -0
  122. package/src/components/execution-plan/SQLExecutionNodeViewer.tsx +66 -44
  123. package/src/components/execution-plan/SequenceExecutionNodeViewer.tsx +79 -15
  124. package/src/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.tsx +264 -0
  125. package/src/components/execution-plan/TempTableStrategyViewer.tsx +97 -0
  126. package/src/components/fetch-structure/QueryBuilderGraphFetchTreePanel.tsx +23 -9
  127. package/src/components/shared/CustomDatePicker.tsx +65 -27
  128. package/src/components/shared/QueryBuilderVariableSelector.tsx +4 -1
  129. package/src/graph-manager/QueryBuilderConfig.ts +31 -0
  130. package/src/index.ts +1 -1
  131. package/src/stores/QueryBuilderState.ts +5 -0
  132. package/src/stores/__test-utils__/QueryBuilderStateTestUtils.ts +1 -0
  133. package/src/stores/execution-plan/ExecutionPlanState.ts +64 -1
  134. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts +17 -7
  135. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.ts +73 -9
  136. package/src/stores/workflows/FunctionQueryBuilderState.ts +3 -1
  137. package/src/stores/workflows/MappingQueryBuilderState.ts +3 -1
  138. package/src/stores/workflows/ServiceQueryBuilderState.ts +3 -1
  139. package/tsconfig.json +8 -0
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderGraphFetchTreeState.d.ts","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,KAAK,EACV,KAAK,cAAc,EACnB,KAAK,kBAAkB,EAIvB,KAAK,OAAO,EACb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,8BAA8B,EAGpC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAGL,KAAK,wCAAwC,EAC9C,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAEL,6CAA6C,EAC9C,MAAM,qDAAqD,CAAC;AAC7D,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AAK7F,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sDAAsD,CAAC;AAExG,OAAO,EAIL,KAAK,QAAQ,EAEb,WAAW,EACZ,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAEvE,oBAAY,kBAAkB;IAC5B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,SAAS,GAAG,IAAI;IAIxE,UAAU,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAI9B,OAAO,CAAC,cAAc;IAYtB,IAAa,uBAAuB,IAAI,MAAM,EAAE,CAE/C;IAEQ,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,cAAc;IAY1D,aAAa,CAAC,MAAM,EAAE,KAAK,GAAG,SAAS,GAAG,IAAI;IAI9C,oBAAoB,CAClB,cAAc,EAAE,cAAc,EAC9B,OAAO,CAAC,EAAE,2BAA2B,GACpC,IAAI;IAIP,WAAW,CACT,IAAI,EAAE,wCAAwC,EAC9C,OAAO,CAAC,EAAE;QACR,eAAe,CAAC,EAAE,OAAO,CAAC;KAC3B,GACA,IAAI;IAkBP,sBAAsB,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,OAAO;IAInE,qBAAqB,IAAI,IAAI;IAI7B,aAAa,CAAC,IAAI,EAAE,wCAAwC,GAAG,IAAI;IAYnE,eAAe,CAAC,KAAK,EAAE,wCAAwC,EAAE,GAAG,IAAI;IAaxE,iCAAiC,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI;IA2B7D,cAAc,CAAC,QAAQ,EAAE,kBAAkB,GAAG,OAAO;IAUrD,IAAI,QAAQ,IAAI,MAAM,CAMrB;CACF"}
1
+ {"version":3,"file":"QueryBuilderGraphFetchTreeState.d.ts","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,KAAK,EACV,KAAK,cAAc,EACnB,KAAK,kBAAkB,EAIvB,KAAK,OAAO,EAEb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,8BAA8B,EAGpC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAG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import { action, computed, makeObservable, observable } from 'mobx';
17
- import { PackageableElementExplicitReference, RootGraphFetchTree, getAllSuperclasses, } from '@finos/legend-graph';
17
+ import { PackageableElementExplicitReference, RootGraphFetchTree, getAllSuperclasses, PropertyGraphFetchTree, } from '@finos/legend-graph';
18
18
  import { addQueryBuilderPropertyNode, buildGraphFetchTreeData, } from './QueryBuilderGraphFetchTreeUtil.js';
19
19
  import { generateExplorerTreePropertyNodeID, generateExplorerTreeSubtypeNodeID, } from '../../explorer/QueryBuilderExplorerState.js';
20
20
  import { FETCH_STRUCTURE_IMPLEMENTATION, QueryBuilderFetchStructureImplementationState, } from '../QueryBuilderFetchStructureImplementationState.js';
@@ -228,9 +228,16 @@ export class QueryBuilderGraphFetchTreeState extends QueryBuilderFetchStructureI
228
228
  ? // since we traverse the nodes in order, parent node ID should already been computed
229
229
  guaranteeNonNullable(explorerTreeNodeIDIndex.get(node.parentId))
230
230
  : '';
231
- const propertyNodeID = generateExplorerTreePropertyNodeID(parentNodeID, node.tree.property.value.name);
231
+ let generateID = '';
232
+ if (node.tree instanceof RootGraphFetchTree) {
233
+ generateID = `root.${node.tree.class.valueForSerialization ?? ''}`;
234
+ }
235
+ else if (node.tree instanceof PropertyGraphFetchTree) {
236
+ generateID = node.tree.property.value.name;
237
+ }
238
+ const propertyNodeID = generateExplorerTreePropertyNodeID(parentNodeID, generateID);
232
239
  ids.push(propertyNodeID);
233
- if (node.tree.subType) {
240
+ if (node.tree instanceof PropertyGraphFetchTree && node.tree.subType) {
234
241
  nodeID = generateExplorerTreeSubtypeNodeID(propertyNodeID, node.tree.subType.value.path);
235
242
  getAllSuperclasses(node.tree.subType.value)
236
243
  .concat(node.tree.subType.value)
@@ -348,7 +355,12 @@ export class QueryBuilderGraphFetchTreeState extends QueryBuilderFetchStructureI
348
355
  }
349
356
  }
350
357
  isVariableUsed(variable) {
351
- return Boolean(Array.from(this.treeData?.nodes.values() ?? []).find((node) => node.tree.parameters.find((p) => isValueExpressionReferencedInValue(variable, p))));
358
+ return Boolean(Array.from(this.treeData?.nodes.values() ?? []).find((node) => {
359
+ if (node.tree instanceof PropertyGraphFetchTree) {
360
+ return node.tree.parameters.find((p) => isValueExpressionReferencedInValue(variable, p));
361
+ }
362
+ return undefined;
363
+ }));
352
364
  }
353
365
  get hashCode() {
354
366
  return hashArray([
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderGraphFetchTreeState.js","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAKL,mCAAmC,EACnC,kBAAkB,EAClB,kBAAkB,GAEnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,2BAA2B,EAC3B,uBAAuB,GACxB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,kCAAkC,EAClC,iCAAiC,GAElC,MAAM,6CAA6C,CAAC;AACrD,OAAO,EACL,8BAA8B,EAC9B,6CAA6C,GAC9C,MAAM,qDAAqD,CAAC;AAE7D,OAAO,EACL,qBAAqB,EACrB,eAAe,GAChB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,0DAA0D,CAAC;AAC5F,OAAO,EACL,SAAS,EACT,oBAAoB,EACpB,SAAS,EAET,yBAAyB,EACzB,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,kCAAkC,EAAE,MAAM,qCAAqC,CAAC;AACzF,OAAO,EAAE,kCAAkC,EAAE,MAAM,+CAA+C,CAAC;AAGnG,MAAM,CAAN,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,mCAAa,CAAA;IACb,yDAAmC,CAAA;AACrC,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB,QAG7B;AAED,MAAM,CAAN,I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AAC,IAAI,EAAE,EAAE,CAC5D,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAC9B,kCAAkC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAChD,CACF,CACF,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,iBAAiB;YACpD,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE;YACzB,IAAI,CAAC,QAAQ,EAAE,IAAI,IAAI,EAAE;SAC1B,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"QueryBuilderGraphFetchTreeState.js","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAKL,mCAAmC,EACnC,kBAAkB,EAClB,kBAAkB,EAElB,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,2BAA2B,EAC3B,uBAAuB,GACxB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,kCAAkC,EAClC,iCAAiC,GAElC,MAAM,6CAA6C,CAAC;AACrD,OAAO,EACL,8BAA8B,EAC9B,6CAA6C,GAC9C,MAAM,qDAAqD,CAAC;AAE7D,OAAO,EACL,qBAAqB,EACrB,eAAe,GAChB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,0DAA0D,CAAC;AAC5F,OAAO,EACL,SAAS,EACT,oBAAoB,EACpB,SAAS,EAET,yBAAyB,EACzB,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,kCAAkC,EAAE,MAAM,qCAAqC,CAAC;AACzF,OAAO,EAAE,kCAAkC,EAAE,MAAM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,EAAE,qBAAqB,CAAC,oBAAoB;wBAChD,OAAO,EACL,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,mBAAmB,CACzD,KAAK,IAAI,EAAE,CAAC,QAAQ,EAAE,CACvB;qBACJ;oBACD;wBACE,KAAK,EAAE,QAAQ;wBACf,IAAI,EAAE,qBAAqB,CAAC,OAAO;wBACnC,OAAO,EAAE,IAAI;qBACd;iBACF;aACF,CAAC,CAAC;SACJ;aAAM;YACL,QAAQ,EAAE,CAAC;SACZ;IACH,CAAC;IAED,cAAc,CAAC,QAA4B;QACzC,OAAO,OAAO,CACZ,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE;YAC5D,IAAI,IAAI,CAAC,IAAI,YAAY,sBAAsB,EAAE;gBAC/C,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CACrC,kCAAkC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAChD,CAAC;aACH;YACD,OAAO,SAAS,CAAC;QACnB,CAAC,CAAC,CACH,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,iBAAiB;YACpD,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE;YACzB,IAAI,CAAC,QAAQ,EAAE,IAAI,IAAI,EAAE;SAC1B,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -15,18 +15,18 @@
15
15
  */
16
16
  import { type Hashable } from '@finos/legend-shared';
17
17
  import type { TreeNodeData, TreeData } from '@finos/legend-art';
18
- import { type AbstractProperty, type Type, type RootGraphFetchTree, PropertyGraphFetchTree } from '@finos/legend-graph';
18
+ import { type AbstractProperty, type Type, RootGraphFetchTree, PropertyGraphFetchTree } from '@finos/legend-graph';
19
19
  import { type QueryBuilderExplorerTreeNodeData, QueryBuilderExplorerTreePropertyNodeData } from '../../explorer/QueryBuilderExplorerState.js';
20
20
  import type { QueryBuilderState } from '../../QueryBuilderState.js';
21
21
  export declare class QueryBuilderGraphFetchTreeNodeData implements TreeNodeData, Hashable {
22
22
  readonly id: string;
23
23
  readonly label: string;
24
- readonly tree: PropertyGraphFetchTree;
24
+ readonly tree: PropertyGraphFetchTree | RootGraphFetchTree;
25
25
  readonly parentId?: string | undefined;
26
26
  isSelected?: boolean | undefined;
27
27
  isOpen?: boolean | undefined;
28
28
  childrenIds: string[];
29
- constructor(id: string, label: string, parentId: string | undefined, graphFetchTreeNode: PropertyGraphFetchTree);
29
+ constructor(id: string, label: string, parentId: string | undefined, graphFetchTreeNode: PropertyGraphFetchTree | RootGraphFetchTree);
30
30
  get type(): Type;
31
31
  get hashCode(): string;
32
32
  }
@@ -34,10 +34,12 @@ export interface QueryBuilderGraphFetchTreeData extends TreeData<QueryBuilderGra
34
34
  tree: RootGraphFetchTree;
35
35
  }
36
36
  export declare const generateGraphFetchTreeNodeID: (property: AbstractProperty, parentNodeId: string | undefined, subType: Type | undefined) => string;
37
+ export declare const generateRootGraphFetchTreeNodeID: (parentNodeId: string | undefined, classValue: string | undefined) => string;
37
38
  /**
38
39
  * Build graph fetch tree data from an existing graph fetch tree root
39
40
  */
40
- export declare const buildGraphFetchTreeData: (tree: RootGraphFetchTree) => QueryBuilderGraphFetchTreeData;
41
+ export declare const buildGraphFetchTreeData: (tree: RootGraphFetchTree, displayRoot?: boolean) => QueryBuilderGraphFetchTreeData;
42
+ export declare const buildPropertyGraphFetchTreeData: (propertyTree: PropertyGraphFetchTree) => QueryBuilderGraphFetchTreeData;
41
43
  export declare const isGraphFetchTreeDataEmpty: (treeData: QueryBuilderGraphFetchTreeData) => boolean;
42
44
  export declare const removeNodeRecursively: (treeData: QueryBuilderGraphFetchTreeData, node: QueryBuilderGraphFetchTreeNodeData) => void;
43
45
  export declare const addQueryBuilderPropertyNode: (treeData: QueryBuilderGraphFetchTreeData, explorerTreeData: TreeData<QueryBuilderExplorerTreeNodeData>, node: QueryBuilderExplorerTreePropertyNodeData, queryBuilderState: QueryBuilderState) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderGraphFetchTreeUtil.d.ts","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAKL,KAAK,QAAQ,EACd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EACL,KAAK,gBAAgB,EAErB,KAAK,IAAI,EACT,KAAK,kBAAkB,EAGvB,sBAAsB,EAGvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,gCAAgC,EACrC,wCAAwC,EAEzC,MAAM,6CAA6C,CAAC;AACrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAQpE,qBAAa,kCACX,YAAW,YAAY,EAAE,QAAQ;IAEjC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,sBAAsB,CAAC;IACtC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,WAAW,EAAE,MAAM,EAAE,CAAM;gBAGzB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,kBAAkB,EAAE,sBAAsB;IAc5C,IAAI,IAAI,IAAI,IAAI,CAEf;IAED,IAAI,QAAQ,IAAI,MAAM,CASrB;CACF;AAED,MAAM,WAAW,8BACf,SAAQ,QAAQ,CAAC,kCAAkC,CAAC;IACpD,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAED,eAAO,MAAM,4BAA4B,aAC7B,gBAAgB,gBACZ,MAAM,GAAG,SAAS,WACvB,IAAI,GAAG,SAAS,KACxB,MAGC,CAAC;AA6BL;;GAEG;AACH,eAAO,MAAM,uBAAuB,SAC5B,kBAAkB,KACvB,8BASF,CAAC;AAEF,eAAO,MAAM,yBAAyB,aAC1B,8BAA8B,KACvC,OAA8C,CAAC;AA6ClD,eAAO,MAAM,qBAAqB,aACtB,8BAA8B,QAClC,kCAAkC,KACvC,IAGF,CAAC;AAEF,eAAO,MAAM,2BAA2B,aAC5B,8BAA8B,oBACtB,SAAS,gCAAgC,CAAC,QACtD,wCAAwC,qBAC3B,iBAAiB,KACnC,IAwGF,CAAC"}
1
+ {"version":3,"file":"QueryBuilderGraphFetchTreeUtil.d.ts","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAKL,KAAK,QAAQ,EAEd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EACL,KAAK,gBAAgB,EAErB,KAAK,IAAI,EACT,kBAAkB,EAGlB,sBAAsB,EAGvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,gCAAgC,EACrC,wCAAwC,EAEzC,MAAM,6CAA6C,CAAC;AACrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAQpE,qBAAa,kCACX,YAAW,YAAY,EAAE,QAAQ;IAEjC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,sBAAsB,GAAG,kBAAkB,CAAC;IAC3D,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,WAAW,EAAE,MAAM,EAAE,CAAM;gBAGzB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,kBAAkB,EAAE,sBAAsB,GAAG,kBAAkB;IAcjE,IAAI,IAAI,IAAI,IAAI,CAWf;IAED,IAAI,QAAQ,IAAI,MAAM,CASrB;CACF;AAED,MAAM,WAAW,8BACf,SAAQ,QAAQ,CAAC,kCAAkC,CAAC;IACpD,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAED,eAAO,MAAM,4BAA4B,aAC7B,gBAAgB,gBACZ,MAAM,GAAG,SAAS,WACvB,IAAI,GAAG,SAAS,KACxB,MAGC,CAAC;AAEL,eAAO,MAAM,gCAAgC,iBAC7B,MAAM,GAAG,SAAS,cACpB,MAAM,GAAG,SAAS,KAC7B,MAGC,CAAC;AAoDL;;GAEG;AACH,eAAO,MAAM,uBAAuB,SAC5B,kBAAkB,gBACX,OAAO,KACnB,8BAgBF,CAAC;AAEF,eAAO,MAAM,+BAA+B,iBAC5B,sBAAsB,KACnC,8BAWF,CAAC;AAEF,eAAO,MAAM,yBAAyB,aAC1B,8BAA8B,KACvC,OAA8C,CAAC;AA6ClD,eAAO,MAAM,qBAAqB,aACtB,8BAA8B,QAClC,kCAAkC,KACvC,IAGF,CAAC;AAEF,eAAO,MAAM,2BAA2B,aAC5B,8BAA8B,oBACtB,SAAS,gCAAgC,CAAC,QACtD,wCAAwC,qBAC3B,iBAAiB,KACnC,IAwGF,CAAC"}
@@ -13,8 +13,8 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { assertType, addUniqueEntry, deleteEntry, hashArray, } from '@finos/legend-shared';
17
- import { PropertyExplicitReference, Class, PropertyGraphFetchTree, PackageableElementExplicitReference, TYPE_CAST_TOKEN, } from '@finos/legend-graph';
16
+ import { assertType, addUniqueEntry, deleteEntry, hashArray, UnsupportedOperationError, } from '@finos/legend-shared';
17
+ import { RootGraphFetchTree, PropertyExplicitReference, Class, PropertyGraphFetchTree, PackageableElementExplicitReference, TYPE_CAST_TOKEN, } from '@finos/legend-graph';
18
18
  import { QueryBuilderExplorerTreePropertyNodeData, QueryBuilderExplorerTreeSubTypeNodeData, } from '../../explorer/QueryBuilderExplorerState.js';
19
19
  import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../../QueryBuilderStateHashUtils.js';
20
20
  import { computed, makeObservable } from 'mobx';
@@ -39,7 +39,13 @@ export class QueryBuilderGraphFetchTreeNodeData {
39
39
  this.isOpen = true;
40
40
  }
41
41
  get type() {
42
- return this.tree.property.value.genericType.value.rawType;
42
+ if (this.tree instanceof PropertyGraphFetchTree) {
43
+ return this.tree.property.value.genericType.value.rawType;
44
+ }
45
+ if (this.tree instanceof RootGraphFetchTree) {
46
+ return this.tree.class.value;
47
+ }
48
+ throw new UnsupportedOperationError(`Can't get type of Graph Fetch Tree`, this.tree);
43
49
  }
44
50
  get hashCode() {
45
51
  return hashArray([
@@ -53,6 +59,7 @@ export class QueryBuilderGraphFetchTreeNodeData {
53
59
  }
54
60
  }
55
61
  export const generateGraphFetchTreeNodeID = (property, parentNodeId, subType) => `${parentNodeId ? `${parentNodeId}.` : ''}${property.name}${subType ? `${TYPE_CAST_TOKEN}${subType.path}` : ''}`;
62
+ export const generateRootGraphFetchTreeNodeID = (parentNodeId, classValue) => `${parentNodeId ? `${parentNodeId}.` : ''}${classValue ? `${TYPE_CAST_TOKEN}${classValue}` : ''}`;
56
63
  const buildGraphFetchSubTree = (tree, parentNode, nodes) => {
57
64
  assertType(tree, PropertyGraphFetchTree, 'Graph fetch sub-tree must be a property graph fetch tree');
58
65
  const property = tree.property.value;
@@ -66,17 +73,44 @@ const buildGraphFetchSubTree = (tree, parentNode, nodes) => {
66
73
  });
67
74
  return node;
68
75
  };
76
+ const buildRootGraphFetchSubTree = (tree, parentNode, nodes) => {
77
+ const parentNodeId = parentNode?.id;
78
+ const node = new QueryBuilderGraphFetchTreeNodeData(generateRootGraphFetchTreeNodeID(parentNodeId, tree.class.valueForSerialization ?? ''), tree.class.value.name, parentNodeId, tree);
79
+ tree.subTrees.forEach((subTree) => {
80
+ const subTreeNode = buildGraphFetchSubTree(subTree, node, nodes);
81
+ addUniqueEntry(node.childrenIds, subTreeNode.id);
82
+ nodes.set(subTreeNode.id, subTreeNode);
83
+ });
84
+ return node;
85
+ };
69
86
  /**
70
87
  * Build graph fetch tree data from an existing graph fetch tree root
71
88
  */
72
- export const buildGraphFetchTreeData = (tree) => {
89
+ export const buildGraphFetchTreeData = (tree, displayRoot = false) => {
73
90
  const rootIds = [];
74
91
  const nodes = new Map();
75
- tree.subTrees.forEach((subTree) => {
76
- const subTreeNode = buildGraphFetchSubTree(subTree, undefined, nodes);
77
- addUniqueEntry(rootIds, subTreeNode.id);
78
- nodes.set(subTreeNode.id, subTreeNode);
79
- });
92
+ if (displayRoot) {
93
+ const rootNode = buildRootGraphFetchSubTree(tree, undefined, nodes);
94
+ addUniqueEntry(rootIds, rootNode.id);
95
+ nodes.set(rootNode.id, rootNode);
96
+ }
97
+ else {
98
+ tree.subTrees.forEach((subTree) => {
99
+ const subTreeNode = buildGraphFetchSubTree(subTree, undefined, nodes);
100
+ addUniqueEntry(rootIds, subTreeNode.id);
101
+ nodes.set(subTreeNode.id, subTreeNode);
102
+ });
103
+ }
104
+ return { rootIds, nodes, tree };
105
+ };
106
+ export const buildPropertyGraphFetchTreeData = (propertyTree) => {
107
+ const rootIds = [];
108
+ const nodes = new Map();
109
+ const propertyNode = buildGraphFetchSubTree(propertyTree, undefined, nodes);
110
+ addUniqueEntry(rootIds, propertyNode.id);
111
+ nodes.set(propertyNode.id, propertyNode);
112
+ const tree = new RootGraphFetchTree(PackageableElementExplicitReference.create(new Class('root')));
113
+ tree.subTrees.push(propertyTree);
80
114
  return { rootIds, nodes, tree };
81
115
  };
82
116
  export const isGraphFetchTreeDataEmpty = (treeData) => treeData.tree.subTrees.length === 0;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderGraphFetchTreeUtil.js","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,UAAU,EACV,cAAc,EACd,WAAW,EACX,SAAS,GAEV,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAKL,yBAAyB,EACzB,KAAK,EACL,sBAAsB,EACtB,mCAAmC,EACnC,eAAe,GAChB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,wCAAwC,EACxC,uCAAuC,GACxC,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAAE,kCAAkC,EAAE,MAAM,qCAAqC,CAAC;AACzF,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAChD,OAAO,EACL,yBAAyB,EACzB,4BAA4B,GAC7B,MAAM,kDAAkD,CAAC;AAE1D,MAAM,OAAO,kCAAkC;IAGpC,EAAE,CAAS;IACX,KAAK,CAAS;IACd,IAAI,CAAyB;IAC7B,QAAQ,CAAsB;IACvC,UAAU,CAAuB;IACjC,MAAM,CAAuB;IAC7B,WAAW,GAAa,EAAE,CAAC;IAE3B,YACE,EAAU,EACV,KAAa,EACb,QAA4B,EAC5B,kBAA0C;QAE1C,cAAc,CAAC,IAAI,EAAE;YACnB,QAAQ,EAAE,QAAQ;SACnB,CAAC,CAAC;QAEH,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CA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E;YACd,cAAc,CAAC,UAAU,CAAC,WAAW,EAAE,SAAS,CAAC,EAAE,CAAC,CAAC;YACrD,yBAAyB,CACvB,UAAU,CAAC,IAAI,EACf,SAAS,CAAC,IAAI,EACd,iBAAiB,CAAC,eAAe,CAClC,CAAC;SACH;aAAM;YACL,cAAc,CAAC,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC,EAAE,CAAC,CAAC;YAC/C,yBAAyB,CACvB,QAAQ,CAAC,IAAI,EACb,SAAS,CAAC,IAAI,EACd,iBAAiB,CAAC,eAAe,CAClC,CAAC;SACH;KACF;AACH,CAAC,CAAC"}
1
+ {"version":3,"file":"QueryBuilderGraphFetchTreeUtil.js","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,UAAU,EACV,cAAc,EACd,WAAW,EACX,SAAS,EAET,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAIL,kBAAkB,EAClB,yBAAyB,EACzB,KAAK,EACL,sBAAsB,EACtB,mCAAmC,EACnC,eAAe,GAChB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,wCAAwC,EACxC,uCAAuC,GACxC,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAAE,kCAAkC,EAAE,MAAM,qCAAqC,CAAC;AACzF,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAChD,OAAO,EACL,yBAAyB,EACzB,4BAA4B,GAC7B,MAAM,kDAAkD,CAAC;AAE1D,MAAM,OAAO,kCAAkC;IAGpC,EAAE,CAAS;IACX,KAAK,CAAS;IACd,IAAI,CAA8C;IAClD,QAAQ,CAAsB;IACvC,UAAU,CAAuB;IACjC,MAAM,CAAuB;IAC7B,WAAW,GAAa,EAAE,CAAC;IAE3B,YACE,EAAU,EACV,KAAa,EACb,QAA4B,EAC5B,kBA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,eAAe,CAClC,CAAC;SACH;aAAM;YACL,cAAc,CAAC,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC,EAAE,CAAC,CAAC;YAC/C,yBAAyB,CACvB,QAAQ,CAAC,IAAI,EACb,SAAS,CAAC,IAAI,EACd,iBAAiB,CAAC,eAAe,CAClC,CAAC;SACH;KACF;AACH,CAAC,CAAC"}
@@ -16,8 +16,9 @@
16
16
  import type { GenericLegendApplicationStore } from '@finos/legend-application';
17
17
  import type { ConcreteFunctionDefinition, GraphManagerState } from '@finos/legend-graph';
18
18
  import { ClassQueryBuilderState } from './ClassQueryBuilderState.js';
19
+ import type { QueryBuilderConfig } from '../../graph-manager/QueryBuilderConfig.js';
19
20
  export declare class FunctionQueryBuilderState extends ClassQueryBuilderState {
20
21
  readonly functionElement: ConcreteFunctionDefinition;
21
- constructor(applicationStore: GenericLegendApplicationStore, graphManagerState: GraphManagerState, functionElemenet: ConcreteFunctionDefinition);
22
+ constructor(applicationStore: GenericLegendApplicationStore, graphManagerState: GraphManagerState, functionElemenet: ConcreteFunctionDefinition, config: QueryBuilderConfig | undefined);
22
23
  }
23
24
  //# sourceMappingURL=FunctionQueryBuilderState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FunctionQueryBuilderState.d.ts","sourceRoot":"","sources":["../../../src/stores/workflows/FunctionQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,KAAK,EACV,0BAA0B,EAC1B,iBAAiB,EAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAIrE,qBAAa,yBAA0B,SAAQ,sBAAsB;IACnE,QAAQ,CAAC,eAAe,EAAE,0BAA0B,CAAC;gBAGnD,gBAAgB,EAAE,6BAA6B,EAC/C,iBAAiB,EAAE,iBAAiB,EACpC,gBAAgB,EAAE,0BAA0B;CAM/C"}
1
+ {"version":3,"file":"FunctionQueryBuilderState.d.ts","sourceRoot":"","sources":["../../../src/stores/workflows/FunctionQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,KAAK,EACV,0BAA0B,EAC1B,iBAAiB,EAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAIpF,qBAAa,yBAA0B,SAAQ,sBAAsB;IACnE,QAAQ,CAAC,eAAe,EAAE,0BAA0B,CAAC;gBAGnD,gBAAgB,EAAE,6BAA6B,EAC/C,iBAAiB,EAAE,iBAAiB,EACpC,gBAAgB,EAAE,0BAA0B,EAC5C,MAAM,EAAE,kBAAkB,GAAG,SAAS;CAMzC"}
@@ -18,8 +18,8 @@ import { ClassQueryBuilderState } from './ClassQueryBuilderState.js';
18
18
  // but for now we will use the same setup as class as class, mapping, runtime are editable
19
19
  export class FunctionQueryBuilderState extends ClassQueryBuilderState {
20
20
  functionElement;
21
- constructor(applicationStore, graphManagerState, functionElemenet) {
22
- super(applicationStore, graphManagerState);
21
+ constructor(applicationStore, graphManagerState, functionElemenet, config) {
22
+ super(applicationStore, graphManagerState, config);
23
23
  this.functionElement = functionElemenet;
24
24
  this.showParametersPanel = true;
25
25
  }
@@ -1 +1 @@
1
- {"version":3,"file":"FunctionQueryBuilderState.js","sourceRoot":"","sources":["../../../src/stores/workflows/FunctionQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE,oEAAoE;AACpE,0FAA0F;AAC1F,MAAM,OAAO,yBAA0B,SAAQ,sBAAsB;IAC1D,eAAe,CAA6B;IAErD,YACE,gBAA+C,EAC/C,iBAAoC,EACpC,gBAA4C;QAE5C,KAAK,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;QAC3C,IAAI,CAAC,eAAe,GAAG,gBAAgB,CAAC;QACxC,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC;IAClC,CAAC;CACF"}
1
+ {"version":3,"file":"FunctionQueryBuilderState.js","sourceRoot":"","sources":["../../../src/stores/workflows/FunctionQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAGrE,oEAAoE;AACpE,0FAA0F;AAC1F,MAAM,OAAO,yBAA0B,SAAQ,sBAAsB;IAC1D,eAAe,CAA6B;IAErD,YACE,gBAA+C,EAC/C,iBAAoC,EACpC,gBAA4C,EAC5C,MAAsC;QAEtC,KAAK,CAAC,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,CAAC,CAAC;QACnD,IAAI,CAAC,eAAe,GAAG,gBAAgB,CAAC;QACxC,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC;IAClC,CAAC;CACF"}
@@ -16,11 +16,12 @@
16
16
  import type { GenericLegendApplicationStore } from '@finos/legend-application';
17
17
  import { type Mapping, type Runtime, type GraphManagerState } from '@finos/legend-graph';
18
18
  import { QueryBuilderState } from '../QueryBuilderState.js';
19
+ import type { QueryBuilderConfig } from '../../graph-manager/QueryBuilderConfig.js';
19
20
  export declare class MappingQueryBuilderState extends QueryBuilderState {
20
21
  readonly onMappingChange?: ((val: Mapping) => void) | undefined;
21
22
  readonly onRuntimeChange?: ((val: Runtime) => void) | undefined;
22
23
  TEMPORARY__setupPanelContentRenderer: () => React.ReactNode;
23
- constructor(applicationStore: GenericLegendApplicationStore, graphManagerState: GraphManagerState, onMappingChange?: ((val: Mapping) => void) | undefined, onRuntimeChange?: ((val: Runtime) => void) | undefined);
24
+ constructor(applicationStore: GenericLegendApplicationStore, graphManagerState: GraphManagerState, onMappingChange?: ((val: Mapping) => void) | undefined, onRuntimeChange?: ((val: Runtime) => void) | undefined, config?: QueryBuilderConfig | undefined);
24
25
  /**
25
26
  * Propagation after changing the mapping:
26
27
  * - If no runtime is chosen, try to choose a compatible runtime
@@ -1 +1 @@
1
- {"version":3,"file":"MappingQueryBuilderState.d.ts","sourceRoot":"","sources":["../../../src/stores/workflows/MappingQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,iBAAiB,EAKvB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,qBAAa,wBAAyB,SAAQ,iBAAiB;IAC7D,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IAChE,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IAEvD,oCAAoC,QAAO,MAAM,SAAS,CAChB;gBAGjD,gBAAgB,EAAE,6BAA6B,EAC/C,iBAAiB,EAAE,iBAAiB,EACpC,eAAe,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,EACtD,eAAe,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS;IAQxD;;;;;;OAMG;IACH,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;CA6B/C"}
1
+ {"version":3,"file":"MappingQueryBuilderState.d.ts","sourceRoot":"","sources":["../../../src/stores/workflows/MappingQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,iBAAiB,EAKvB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAEpF,qBAAa,wBAAyB,SAAQ,iBAAiB;IAC7D,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IAChE,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IAEvD,oCAAoC,QAAO,MAAM,SAAS,CAChB;gBAGjD,gBAAgB,EAAE,6BAA6B,EAC/C,iBAAiB,EAAE,iBAAiB,EACpC,eAAe,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,EACtD,eAAe,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,EACtD,MAAM,CAAC,EAAE,kBAAkB,GAAG,SAAS;IAQzC;;;;;;OAMG;IACH,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;CA6B/C"}
@@ -21,8 +21,8 @@ export class MappingQueryBuilderState extends QueryBuilderState {
21
21
  onMappingChange;
22
22
  onRuntimeChange;
23
23
  TEMPORARY__setupPanelContentRenderer = () => renderMappingQueryBuilderSetupPanelContent(this);
24
- constructor(applicationStore, graphManagerState, onMappingChange, onRuntimeChange) {
25
- super(applicationStore, graphManagerState);
24
+ constructor(applicationStore, graphManagerState, onMappingChange, onRuntimeChange, config) {
25
+ super(applicationStore, graphManagerState, config);
26
26
  this.onMappingChange = onMappingChange;
27
27
  this.onRuntimeChange = onRuntimeChange;
28
28
  }
@@ -1 +1 @@
1
- {"version":3,"file":"MappingQueryBuilderState.js","sourceRoot":"","sources":["../../../src/stores/workflows/MappingQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAIL,4BAA4B,EAC5B,cAAc,EACd,mCAAmC,EACnC,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,0CAA0C,EAAE,MAAM,mDAAmD,CAAC;AAC/G,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,OAAO,wBAAyB,SAAQ,iBAAiB;IACpD,eAAe,CAAwC;IACvD,eAAe,CAAwC;IAEvD,oCAAoC,GAAG,GAAoB,EAAE,CACpE,0CAA0C,CAAC,IAAI,CAAC,CAAC;IAEnD,YACE,gBAA+C,EAC/C,iBAAoC,EACpC,eAAsD,EACtD,eAAsD;QAEtD,KAAK,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;QAE3C,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;IACzC,CAAC;IAED;;;;;;OAMG;IACH,sBAAsB,CAAC,OAAgB;QACrC,8CAA8C;QAC9C,sDAAsD;QACtD,MAAM,kBAAkB,GAAG,4BAA4B,CACrD,OAAO,EACP,IAAI,CAAC,iBAAiB,CAAC,cAAc,CACtC,CAAC;QACF,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,kBAAkB,CAAC,CAAC;QACrE,IAAI,kBAAkB,EAAE;YACtB,IAAI,CAAC,aAAa,CAChB,IAAI,cAAc,CAChB,mCAAmC,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAC/D,CACF,CAAC;SACH;QAED,MAAM,iBAAiB,GAAG,2BAA2B,CACnD,OAAO,EACP,IAAI,CAAC,iBAAiB,CAAC,aAAa,CACrC,CAAC;QACF,kEAAkE;QAClE,4DAA4D;QAC5D,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;YAC1D,MAAM,gBAAgB,GAAG,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;YAClE,IAAI,gBAAgB,EAAE;gBACpB,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;aACpC;SACF;IACH,CAAC;CACF"}
1
+ {"version":3,"file":"MappingQueryBuilderState.js","sourceRoot":"","sources":["../../../src/stores/workflows/MappingQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAIL,4BAA4B,EAC5B,cAAc,EACd,mCAAmC,EACnC,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,0CAA0C,EAAE,MAAM,mDAAmD,CAAC;AAC/G,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAG5D,MAAM,OAAO,wBAAyB,SAAQ,iBAAiB;IACpD,eAAe,CAAwC;IACvD,eAAe,CAAwC;IAEvD,oCAAoC,GAAG,GAAoB,EAAE,CACpE,0CAA0C,CAAC,IAAI,CAAC,CAAC;IAEnD,YACE,gBAA+C,EAC/C,iBAAoC,EACpC,eAAsD,EACtD,eAAsD,EACtD,MAAuC;QAEvC,KAAK,CAAC,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,CAAC,CAAC;QAEnD,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;IACzC,CAAC;IAED;;;;;;OAMG;IACH,sBAAsB,CAAC,OAAgB;QACrC,8CAA8C;QAC9C,sDAAsD;QACtD,MAAM,kBAAkB,GAAG,4BAA4B,CACrD,OAAO,EACP,IAAI,CAAC,iBAAiB,CAAC,cAAc,CACtC,CAAC;QACF,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,kBAAkB,CAAC,CAAC;QACrE,IAAI,kBAAkB,EAAE;YACtB,IAAI,CAAC,aAAa,CAChB,IAAI,cAAc,CAChB,mCAAmC,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAC/D,CACF,CAAC;SACH;QAED,MAAM,iBAAiB,GAAG,2BAA2B,CACnD,OAAO,EACP,IAAI,CAAC,iBAAiB,CAAC,aAAa,CACrC,CAAC;QACF,kEAAkE;QAClE,4DAA4D;QAC5D,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;YAC1D,MAAM,gBAAgB,GAAG,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;YAClE,IAAI,gBAAgB,EAAE;gBACpB,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;aACpC;SACF;IACH,CAAC;CACF"}
@@ -16,6 +16,7 @@
16
16
  import type { GenericLegendApplicationStore } from '@finos/legend-application';
17
17
  import { type Mapping, type Runtime, type GraphManagerState, type Service } from '@finos/legend-graph';
18
18
  import { QueryBuilderState } from '../QueryBuilderState.js';
19
+ import type { QueryBuilderConfig } from '../../graph-manager/QueryBuilderConfig.js';
19
20
  export type ServiceExecutionContext = {
20
21
  key: string;
21
22
  mapping: Mapping;
@@ -29,7 +30,7 @@ export declare class ServiceQueryBuilderState extends QueryBuilderState {
29
30
  readonly onExecutionContextChange?: ((val: ServiceExecutionContext) => void) | undefined;
30
31
  TEMPORARY__setupPanelContentRenderer: () => React.ReactNode;
31
32
  selectedExecutionContext?: ServiceExecutionContext | undefined;
32
- constructor(applicationStore: GenericLegendApplicationStore, graphManagerState: GraphManagerState, service: Service, usableServices: Service[] | undefined, executionContextKey?: string | undefined, onServiceChange?: ((val: Service) => void) | undefined, onExecutionContextChange?: ((val: ServiceExecutionContext) => void) | undefined);
33
+ constructor(applicationStore: GenericLegendApplicationStore, graphManagerState: GraphManagerState, service: Service, usableServices: Service[] | undefined, executionContextKey?: string | undefined, onServiceChange?: ((val: Service) => void) | undefined, onExecutionContextChange?: ((val: ServiceExecutionContext) => void) | undefined, config?: QueryBuilderConfig | undefined);
33
34
  setSelectedExecutionContext(val: ServiceExecutionContext): void;
34
35
  get sideBarClassName(): string | undefined;
35
36
  get isMappingReadOnly(): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"ServiceQueryBuilderState.d.ts","sourceRoot":"","sources":["../../../src/stores/workflows/ServiceQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,iBAAiB,EACtB,KAAK,OAAO,EAIb,MAAM,qBAAqB,CAAC;AAS7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,MAAM,uBAAuB,GAAG;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,qBAAa,wBAAyB,SAAQ,iBAAiB;IAC7D,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,cAAc,EAAE,OAAO,EAAE,GAAG,SAAS,CAAC;IAC/C,QAAQ,CAAC,iBAAiB,EAAE,uBAAuB,EAAE,CAAM;IAC3D,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IAChE,QAAQ,CAAC,wBAAwB,CAAC,EAC9B,CAAC,CAAC,GAAG,EAAE,uBAAuB,KAAK,IAAI,CAAC,GACxC,SAAS,CAAC;IAEL,oCAAoC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extChange;
27
27
  TEMPORARY__setupPanelContentRenderer = () => renderServiceQueryBuilderSetupPanelContent(this);
28
28
  selectedExecutionContext;
29
- constructor(applicationStore, graphManagerState, service, usableServices, executionContextKey, onServiceChange, onExecutionContextChange) {
30
- super(applicationStore, graphManagerState);
29
+ constructor(applicationStore, graphManagerState, service, usableServices, executionContextKey, onServiceChange, onExecutionContextChange, config) {
30
+ super(applicationStore, graphManagerState, config);
31
31
  makeObservable(this, {
32
32
  selectedExecutionContext: observable,
33
33
  setSelectedExecutionContext: action,
@@ -1 +1 @@
1
- {"version":3,"file":"ServiceQueryBuilderState.js","sourceRoot":"","sources":["../../../src/stores/workflows/ServiceQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAKL,2BAA2B,EAC3B,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,UAAU,EACV,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,0CAA0C,EAAE,MAAM,mDAAmD,CAAC;AAC/G,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAQ5D,MAAM,OAAO,wBAAyB,SAAQ,iBAAiB;IACpD,OAAO,CAAU;IACjB,cAAc,CAAwB;IACtC,iBAAiB,GAA8B,EAAE,CAAC;IAClD,eAAe,CAAwC;IACvD,wBAAwB,CAEnB;IAEL,oCAAoC,GAAG,GAAoB,EAAE,CACpE,0CAA0C,CAAC,IAAI,CAAC,CAAC;IAEnD,wBAAwB,CAAuC;IAE/D,YACE,gBAA+C,EAC/C,iBAAoC,EACpC,OAAgB,EAChB,cAAqC,EACrC,mBAAwC,EACxC,eAAsD,EACtD,wBAEa;QAEb,KAAK,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,C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BAAgB,GAAG,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;YAClE,IAAI,gBAAgB,EAAE;gBACpB,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;aACpC;SACF;IACH,CAAC;CACF"}
1
+ {"version":3,"file":"ServiceQueryBuilderState.js","sourceRoot":"","sources":["../../../src/stores/workflows/ServiceQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAKL,2BAA2B,EAC3B,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,UAAU,EACV,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,0CAA0C,EAAE,MAAM,mDAAmD,CAAC;AAC/G,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAS5D,MAAM,OAAO,wBAAyB,SAAQ,iBAAiB;IACpD,OAAO,CAAU;IACjB,cAAc,CAAwB;IACtC,iBAAiB,GAA8B,EAAE,CAAC;IAClD,eAAe,CAAwC;IACvD,wBAAwB,CAEnB;IAEL,oCAAoC,GAAG,GAAoB,EAAE,CACpE,0CAA0C,CAAC,IAAI,CAAC,CAAC;IAEnD,wBAAwB,CAAuC;IAE/D,YACE,gBAA+C,EAC/C,iBAAoC,EACpC,OAAgB,EAChB,cAAqC,EACrC,mBAAwC,EACxC,eAAsD,EACtD,wBAEa,EACb,MAAuC;QAEvC,KAAK,CAAC,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,CAAC,CAAC;QAEnD,cAAc,CAAC,IAAI,EAAE;YACnB,wBAAwB,EAAE,UAAU;YACpC,2BAA2B,EAAE,MAAM;SACpC,CAAC,CAAC;QAEH,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC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ED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-query-builder",
3
- "version": "4.3.9",
3
+ "version": "4.5.0",
4
4
  "description": "Legend query builder core",
5
5
  "keywords": [
6
6
  "legend",
@@ -42,19 +42,19 @@
42
42
  "test:watch": "jest --watch"
43
43
  },
44
44
  "dependencies": {
45
- "@finos/legend-application": "15.0.38",
46
- "@finos/legend-art": "7.0.38",
47
- "@finos/legend-graph": "31.1.9",
48
- "@finos/legend-lego": "1.1.25",
49
- "@finos/legend-server-depot": "6.0.28",
50
- "@finos/legend-shared": "10.0.24",
51
- "@finos/legend-storage": "3.0.74",
45
+ "@finos/legend-application": "15.0.40",
46
+ "@finos/legend-art": "7.0.40",
47
+ "@finos/legend-graph": "31.2.0",
48
+ "@finos/legend-lego": "1.1.27",
49
+ "@finos/legend-server-depot": "6.0.29",
50
+ "@finos/legend-shared": "10.0.25",
51
+ "@finos/legend-storage": "3.0.75",
52
52
  "@testing-library/react": "14.0.0",
53
- "@types/react": "18.2.20",
53
+ "@types/react": "18.2.21",
54
54
  "@types/react-dom": "18.2.7",
55
- "chart.js": "4.3.3",
56
- "mathjs": "11.9.1",
57
- "mobx": "6.10.0",
55
+ "chart.js": "4.4.0",
56
+ "mathjs": "11.11.0",
57
+ "mobx": "6.10.2",
58
58
  "mobx-react-lite": "3.4.3",
59
59
  "monaco-editor": "0.41.0",
60
60
  "react": "18.2.0",
@@ -65,15 +65,15 @@
65
65
  "sql-formatter": "12.2.4"
66
66
  },
67
67
  "devDependencies": {
68
- "@finos/legend-dev-utils": "2.0.78",
69
- "@jest/globals": "29.6.3",
68
+ "@finos/legend-dev-utils": "2.0.79",
69
+ "@jest/globals": "29.6.4",
70
70
  "cross-env": "7.0.3",
71
- "eslint": "8.47.0",
72
- "jest": "29.6.3",
71
+ "eslint": "8.48.0",
72
+ "jest": "29.6.4",
73
73
  "npm-run-all": "4.1.5",
74
74
  "rimraf": "5.0.1",
75
75
  "sass": "1.66.1",
76
- "typescript": "5.1.6"
76
+ "typescript": "5.2.2"
77
77
  },
78
78
  "peerDependencies": {
79
79
  "react": "^18.0.0"
@@ -124,20 +124,22 @@ const QueryBuilderStatusBar = observer(
124
124
  {queryBuilderState.isQueryChatOpened && (
125
125
  <QueryChat queryBuilderState={queryBuilderState} />
126
126
  )}
127
- <button
128
- className={clsx(
129
- 'query-builder__status-bar__action query-builder__status-bar__action__toggler',
130
- {
131
- 'query-builder__status-bar__action__toggler--toggled':
132
- queryBuilderState.isQueryChatOpened === true,
133
- },
134
- )}
135
- onClick={openQueryChat}
136
- tabIndex={-1}
137
- title="Open Query Chat"
138
- >
139
- <ChatIcon />
140
- </button>
127
+ {!queryBuilderState.config?.TEMPORARY__disableQueryBuilderChat && (
128
+ <button
129
+ className={clsx(
130
+ 'query-builder__status-bar__action query-builder__status-bar__action__toggler',
131
+ {
132
+ 'query-builder__status-bar__action__toggler--toggled':
133
+ queryBuilderState.isQueryChatOpened === true,
134
+ },
135
+ )}
136
+ onClick={openQueryChat}
137
+ tabIndex={-1}
138
+ title="Open Query Chat"
139
+ >
140
+ <ChatIcon />
141
+ </button>
142
+ )}
141
143
  <button
142
144
  className={clsx(
143
145
  'query-builder__status-bar__action query-builder__status-bar__compile-btn',
@@ -118,10 +118,15 @@ import { QueryUsageViewer } from './QueryUsageViewer.js';
118
118
 
119
119
  export const tryToFormatSql = (sql: string): string => {
120
120
  try {
121
- const formattedSql = formatSQL(sql);
121
+ const formattedSql = formatSQL(sql, { language: 'mysql' });
122
122
  return formattedSql;
123
123
  } catch {
124
- return sql;
124
+ try {
125
+ const formattedSql = formatSQL(sql);
126
+ return formattedSql;
127
+ } catch {
128
+ return sql;
129
+ }
125
130
  }
126
131
  };
127
132
 
@@ -82,6 +82,7 @@ export const TEST__setUpQueryBuilder = async (
82
82
  const queryBuilderState = new INTERNAL__BasicQueryBuilderState(
83
83
  MOCK__applicationStore,
84
84
  graphManagerState,
85
+ undefined,
85
86
  );
86
87
  const mapping = graphManagerState.graph.getMapping(mappingPath);
87
88
  queryBuilderState.executionContextState.setMapping(mapping);
@@ -31,7 +31,7 @@ export const AllocationExecutionNodeViewer: React.FC<{
31
31
  const { node, executionPlanState } = props;
32
32
  const varName = node.varName;
33
33
  const resultType = node.resultType;
34
- const realizeInMemory = node.realizeInMemory.toString();
34
+ const realizeInMemory = node.realizeInMemory?.toString();
35
35
  const applicationStore = executionPlanState.applicationStore;
36
36
 
37
37
  return (