@finos/legend-query-builder 4.2.4 → 4.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. package/lib/components/QueryBuilder.d.ts.map +1 -1
  2. package/lib/components/QueryBuilder.js +3 -1
  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 +11 -2
  6. package/lib/components/QueryBuilderResultPanel.js.map +1 -1
  7. package/lib/components/QueryBuilderSideBar.d.ts +16 -0
  8. package/lib/components/QueryBuilderSideBar.d.ts.map +1 -1
  9. package/lib/components/QueryBuilderSideBar.js +85 -7
  10. package/lib/components/QueryBuilderSideBar.js.map +1 -1
  11. package/lib/components/QueryChat.d.ts.map +1 -1
  12. package/lib/components/QueryChat.js +1 -1
  13. package/lib/components/QueryChat.js.map +1 -1
  14. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js +2 -2
  15. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js.map +1 -1
  16. package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts.map +1 -1
  17. package/lib/components/explorer/QueryBuilderExplorerPanel.js +5 -1
  18. package/lib/components/explorer/QueryBuilderExplorerPanel.js.map +1 -1
  19. package/lib/components/workflows/ClassQueryBuilder.d.ts.map +1 -1
  20. package/lib/components/workflows/ClassQueryBuilder.js +13 -9
  21. package/lib/components/workflows/ClassQueryBuilder.js.map +1 -1
  22. package/lib/components/workflows/MappingQueryBuilder.d.ts.map +1 -1
  23. package/lib/components/workflows/MappingQueryBuilder.js +13 -11
  24. package/lib/components/workflows/MappingQueryBuilder.js.map +1 -1
  25. package/lib/components/workflows/ServiceQueryBuilder.d.ts.map +1 -1
  26. package/lib/components/workflows/ServiceQueryBuilder.js +3 -2
  27. package/lib/components/workflows/ServiceQueryBuilder.js.map +1 -1
  28. package/lib/index.css +1 -1
  29. package/lib/index.d.ts +1 -0
  30. package/lib/index.d.ts.map +1 -1
  31. package/lib/index.js +1 -0
  32. package/lib/index.js.map +1 -1
  33. package/lib/package.json +1 -1
  34. package/lib/stores/QueryBuilderExecutionContextState.d.ts +34 -0
  35. package/lib/stores/QueryBuilderExecutionContextState.d.ts.map +1 -0
  36. package/lib/stores/QueryBuilderExecutionContextState.js +59 -0
  37. package/lib/stores/QueryBuilderExecutionContextState.js.map +1 -0
  38. package/lib/stores/QueryBuilderInternalizeState.d.ts +24 -0
  39. package/lib/stores/QueryBuilderInternalizeState.d.ts.map +1 -0
  40. package/lib/stores/QueryBuilderInternalizeState.js +26 -0
  41. package/lib/stores/QueryBuilderInternalizeState.js.map +1 -0
  42. package/lib/stores/QueryBuilderResultState.js +5 -5
  43. package/lib/stores/QueryBuilderResultState.js.map +1 -1
  44. package/lib/stores/QueryBuilderState.d.ts +7 -5
  45. package/lib/stores/QueryBuilderState.d.ts.map +1 -1
  46. package/lib/stores/QueryBuilderState.js +19 -17
  47. package/lib/stores/QueryBuilderState.js.map +1 -1
  48. package/lib/stores/QueryBuilderStateBuilder.d.ts +1 -1
  49. package/lib/stores/QueryBuilderStateBuilder.d.ts.map +1 -1
  50. package/lib/stores/QueryBuilderStateBuilder.js +27 -2
  51. package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
  52. package/lib/stores/QueryBuilderValueSpecificationBuilder.d.ts.map +1 -1
  53. package/lib/stores/QueryBuilderValueSpecificationBuilder.js +28 -2
  54. package/lib/stores/QueryBuilderValueSpecificationBuilder.js.map +1 -1
  55. package/lib/stores/__test-utils__/QueryBuilderStateTestUtils.d.ts.map +1 -1
  56. package/lib/stores/__test-utils__/QueryBuilderStateTestUtils.js +2 -2
  57. package/lib/stores/__test-utils__/QueryBuilderStateTestUtils.js.map +1 -1
  58. package/lib/stores/entitlements/QueryBuilderCheckEntitlementsState.d.ts.map +1 -1
  59. package/lib/stores/entitlements/QueryBuilderCheckEntitlementsState.js +6 -4
  60. package/lib/stores/entitlements/QueryBuilderCheckEntitlementsState.js.map +1 -1
  61. package/lib/stores/explorer/QueryBuilderExplorerState.js +9 -9
  62. package/lib/stores/explorer/QueryBuilderExplorerState.js.map +1 -1
  63. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.d.ts +2 -1
  64. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.d.ts.map +1 -1
  65. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js +25 -2
  66. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js.map +1 -1
  67. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +1 -1
  68. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
  69. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts.map +1 -1
  70. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js +3 -1
  71. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js.map +1 -1
  72. package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +1 -1
  73. package/lib/stores/filter/QueryBuilderFilterState.js +2 -1
  74. package/lib/stores/filter/QueryBuilderFilterState.js.map +1 -1
  75. package/lib/stores/workflows/ClassQueryBuilderState.d.ts.map +1 -1
  76. package/lib/stores/workflows/ClassQueryBuilderState.js +2 -1
  77. package/lib/stores/workflows/ClassQueryBuilderState.js.map +1 -1
  78. package/lib/stores/workflows/FunctionQueryBuilderState.d.ts +23 -0
  79. package/lib/stores/workflows/FunctionQueryBuilderState.d.ts.map +1 -0
  80. package/lib/stores/workflows/FunctionQueryBuilderState.js +27 -0
  81. package/lib/stores/workflows/FunctionQueryBuilderState.js.map +1 -0
  82. package/lib/stores/workflows/ServiceQueryBuilderState.d.ts.map +1 -1
  83. package/lib/stores/workflows/ServiceQueryBuilderState.js +7 -7
  84. package/lib/stores/workflows/ServiceQueryBuilderState.js.map +1 -1
  85. package/package.json +4 -4
  86. package/src/components/QueryBuilder.tsx +5 -1
  87. package/src/components/QueryBuilderResultPanel.tsx +13 -3
  88. package/src/components/QueryBuilderSideBar.tsx +211 -7
  89. package/src/components/QueryChat.tsx +2 -1
  90. package/src/components/__test-utils__/QueryBuilderComponentTestUtils.tsx +2 -2
  91. package/src/components/explorer/QueryBuilderExplorerPanel.tsx +5 -1
  92. package/src/components/workflows/ClassQueryBuilder.tsx +17 -9
  93. package/src/components/workflows/MappingQueryBuilder.tsx +15 -11
  94. package/src/components/workflows/ServiceQueryBuilder.tsx +3 -2
  95. package/src/index.ts +1 -0
  96. package/src/stores/QueryBuilderExecutionContextState.ts +69 -0
  97. package/src/stores/QueryBuilderInternalizeState.ts +34 -0
  98. package/src/stores/QueryBuilderResultState.ts +6 -6
  99. package/src/stores/QueryBuilderState.ts +28 -21
  100. package/src/stores/QueryBuilderStateBuilder.ts +79 -1
  101. package/src/stores/QueryBuilderValueSpecificationBuilder.ts +50 -1
  102. package/src/stores/__test-utils__/QueryBuilderStateTestUtils.ts +4 -2
  103. package/src/stores/entitlements/QueryBuilderCheckEntitlementsState.ts +6 -4
  104. package/src/stores/explorer/QueryBuilderExplorerState.ts +9 -9
  105. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.ts +64 -2
  106. package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +1 -1
  107. package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.ts +4 -2
  108. package/src/stores/filter/QueryBuilderFilterState.ts +5 -2
  109. package/src/stores/workflows/ClassQueryBuilderState.ts +2 -1
  110. package/src/stores/workflows/FunctionQueryBuilderState.ts +38 -0
  111. package/src/stores/workflows/ServiceQueryBuilderState.ts +7 -11
  112. package/tsconfig.json +3 -0
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderFilterState.js","sourceRoot":"","sources":["../../../src/stores/filter/QueryBuilderFilterState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAA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B;IAEjD;;;;;OAKG;IACH,oBAAoB,CAAC,MAAM,EAAE,KAAK,GAAG,IAAI;IAmBzC;;;;OAIG;IACH,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;CAgB/C"}
1
+ {"version":3,"file":"ClassQueryBuilderState.d.ts","sourceRoot":"","sources":["../../../src/stores/workflows/ClassQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,KAAK,EACV,KAAK,OAAO,EAKb,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,qBAAa,sBAAuB,SAAQ,iBAAiB;IAClD,oCAAoC,QAAO,MAAM,SAAS,CAClB;IAEjD;;;;;OAKG;IACH,oBAAoB,CAAC,MAAM,EAAE,KAAK,GAAG,IAAI;IAoBzC;;;;OAIG;IACH,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;CAgB/C"}
@@ -28,7 +28,8 @@ export class ClassQueryBuilderState extends QueryBuilderState {
28
28
  propagateClassChange(_class) {
29
29
  const compatibleMappings = getClassCompatibleMappings(_class, this.graphManagerState.usableMappings);
30
30
  // cascading
31
- const isCurrentMappingCompatible = this.mapping && compatibleMappings.includes(this.mapping);
31
+ const isCurrentMappingCompatible = this.executionContextState.mapping &&
32
+ compatibleMappings.includes(this.executionContextState.mapping);
32
33
  if (this.isMappingReadOnly || isCurrentMappingCompatible) {
33
34
  return;
34
35
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ClassQueryBuilderState.js","sourceRoot":"","sources":["../../../src/stores/workflows/ClassQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,0BAA0B,EAC1B,4BAA4B,EAC5B,cAAc,EACd,mCAAmC,GACpC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,E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,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;IACH,CAAC;CACF"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { GenericLegendApplicationStore } from '@finos/legend-application';
17
+ import type { ConcreteFunctionDefinition, GraphManagerState } from '@finos/legend-graph';
18
+ import { ClassQueryBuilderState } from './ClassQueryBuilderState.js';
19
+ export declare class FunctionQueryBuilderState extends ClassQueryBuilderState {
20
+ readonly functionElement: ConcreteFunctionDefinition;
21
+ constructor(applicationStore: GenericLegendApplicationStore, graphManagerState: GraphManagerState, functionElemenet: ConcreteFunctionDefinition);
22
+ }
23
+ //# sourceMappingURL=FunctionQueryBuilderState.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { ClassQueryBuilderState } from './ClassQueryBuilderState.js';
17
+ // Note: We may want to move it to extend QueryBuilderState directly
18
+ // but for now we will use the same setup as class as class, mapping, runtime are editable
19
+ export class FunctionQueryBuilderState extends ClassQueryBuilderState {
20
+ functionElement;
21
+ constructor(applicationStore, graphManagerState, functionElemenet) {
22
+ super(applicationStore, graphManagerState);
23
+ this.functionElement = functionElemenet;
24
+ this.showParametersPanel = true;
25
+ }
26
+ }
27
+ //# sourceMappingURL=FunctionQueryBuilderState.js.map
@@ -0,0 +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,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AAe,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,QAAO,MAAM,SAAS,CAChB;IAEnD,wBAAwB,CAAC,EAAE,uBAAuB,GAAG,SAAS,CAAC;gBAG7D,gBAAgB,EAAE,6BAA6B,EAC/C,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,OAAO,EAAE,GAAG,SAAS,EACrC,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,EACxC,eAAe,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,EACtD,wBAAwB,CAAC,EACrB,CAAC,CAAC,GAAG,EAAE,uBAAuB,KAAK,IAAI,CAAC,GACxC,SAAS;IAqDf,2BAA2B,CAAC,GAAG,EAAE,uBAAuB,GAAG,IAAI;IAI/D,IAAa,gBAAgB,IAAI,MAAM,GAAG,SAAS,CAIlD;IAED,IAAa,iBAAiB,IAAI,OAAO,CAExC;IAED,IAAa,iBAAiB,IAAI,OAAO,CAExC;IAED;;;;;;OAMG;IACH,+BAA+B,CAC7B,gBAAgB,EAAE,uBAAuB,GACxC,IAAI;CAkBR"}
@@ -37,9 +37,8 @@ export class ServiceQueryBuilderState extends QueryBuilderState {
37
37
  this.onServiceChange = onServiceChange;
38
38
  this.onExecutionContextChange = onExecutionContextChange;
39
39
  if (service.execution instanceof PureSingleExecution) {
40
- assertTrue(Boolean(service.execution.mapping && service.execution.runtime), 'Service queries without runtime/mapping are not supported');
41
- this.mapping = service.execution.mapping?.value;
42
- this.runtimeValue = service.execution.runtime;
40
+ this.executionContextState.mapping = service.execution.mapping?.value;
41
+ this.executionContextState.runtimeValue = service.execution.runtime;
43
42
  }
44
43
  else if (service.execution instanceof PureMultiExecution) {
45
44
  this.executionContexts = service.execution.executionParameters.map((ep) => ({
@@ -60,8 +59,9 @@ export class ServiceQueryBuilderState extends QueryBuilderState {
60
59
  selectedExecutionContext = guaranteeNonNullable(this.executionContexts[0]);
61
60
  }
62
61
  this.setSelectedExecutionContext(selectedExecutionContext);
63
- this.mapping = selectedExecutionContext.mapping;
64
- this.runtimeValue = selectedExecutionContext.runtimeValue;
62
+ this.executionContextState.mapping = selectedExecutionContext.mapping;
63
+ this.executionContextState.runtimeValue =
64
+ selectedExecutionContext.runtimeValue;
65
65
  }
66
66
  }
67
67
  setSelectedExecutionContext(val) {
@@ -73,10 +73,10 @@ export class ServiceQueryBuilderState extends QueryBuilderState {
73
73
  : 'query-builder__setup__service';
74
74
  }
75
75
  get isMappingReadOnly() {
76
- return true;
76
+ return !this.executionContextState.specifiedInQuery;
77
77
  }
78
78
  get isRuntimeReadOnly() {
79
- return true;
79
+ return !this.executionContextState.specifiedInQuery;
80
80
  }
81
81
  /**
82
82
  * Propagation after changing the execution context:
@@ -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,CAA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EAAE,CAAC,CAAC;QACxD,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC;QAElD,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":"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,gBA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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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-query-builder",
3
- "version": "4.2.4",
3
+ "version": "4.3.1",
4
4
  "description": "Legend query builder core",
5
5
  "keywords": [
6
6
  "legend",
@@ -44,9 +44,9 @@
44
44
  "dependencies": {
45
45
  "@finos/legend-application": "15.0.36",
46
46
  "@finos/legend-art": "7.0.36",
47
- "@finos/legend-graph": "31.1.1",
48
- "@finos/legend-lego": "1.1.17",
49
- "@finos/legend-server-depot": "6.0.23",
47
+ "@finos/legend-graph": "31.1.3",
48
+ "@finos/legend-lego": "1.1.19",
49
+ "@finos/legend-server-depot": "6.0.24",
50
50
  "@finos/legend-shared": "10.0.22",
51
51
  "@finos/legend-storage": "3.0.72",
52
52
  "@testing-library/react": "14.0.0",
@@ -127,10 +127,14 @@ const QueryBuilderStatusBar = observer(
127
127
  <button
128
128
  className={clsx(
129
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
+ },
130
134
  )}
131
135
  onClick={openQueryChat}
132
136
  tabIndex={-1}
133
- title="Open query chat"
137
+ title="Open Query Chat"
134
138
  >
135
139
  <ChatIcon />
136
140
  </button>
@@ -53,6 +53,7 @@ import {
53
53
  EnumValueInstanceValue,
54
54
  EnumValueExplicitReference,
55
55
  RelationalExecutionActivities,
56
+ getTDSRowRankByColumnInAsc,
56
57
  } from '@finos/legend-graph';
57
58
  import {
58
59
  ActionAlertActionType,
@@ -523,10 +524,19 @@ const QueryResultCellRenderer = observer(
523
524
  ) {
524
525
  return undefined;
525
526
  }
526
-
527
- return resultState.executionResult.result.rows[rowIndex]?.values[
528
- colIndex
527
+ const sortedExecutionResult = [
528
+ ...resultState.executionResult.result.rows,
529
529
  ];
530
+ if (params.columnApi.getColumnState()[colIndex]?.sort === 'asc') {
531
+ sortedExecutionResult.sort((a, b) =>
532
+ getTDSRowRankByColumnInAsc(a, b, colIndex),
533
+ );
534
+ } else if (params.columnApi.getColumnState()[colIndex]?.sort === 'desc') {
535
+ sortedExecutionResult.sort((a, b) =>
536
+ getTDSRowRankByColumnInAsc(b, a, colIndex),
537
+ );
538
+ }
539
+ return sortedExecutionResult[rowIndex]?.values[colIndex];
530
540
  };
531
541
 
532
542
  const isCoordinatesSelected = (
@@ -212,6 +212,206 @@ export const QueryBuilderClassSelector = observer(
212
212
  },
213
213
  );
214
214
 
215
+ export const QueryBuilderMappingSelector = observer(
216
+ (props: {
217
+ queryBuilderState: QueryBuilderState;
218
+ classes: Class[];
219
+ onClassChange?: ((val: Class) => void) | undefined;
220
+ noMatchMessage?: string | undefined;
221
+ }) => {
222
+ const { queryBuilderState, classes, onClassChange, noMatchMessage } = props;
223
+ const milestoningState = queryBuilderState.milestoningState;
224
+ const applicationStore = useApplicationStore();
225
+
226
+ // class
227
+ const elementFilterOption = createFilter({
228
+ ignoreCase: true,
229
+ ignoreAccents: false,
230
+ stringify: (option: PackageableElementOption<Class>): string =>
231
+ option.value.path,
232
+ });
233
+
234
+ const classOptions = classes.map((_class) => ({
235
+ value: _class,
236
+ label: generateClassLabel(_class, queryBuilderState),
237
+ }));
238
+ const selectedClassOption = queryBuilderState.class
239
+ ? {
240
+ value: queryBuilderState.class,
241
+ label: generateClassLabel(queryBuilderState.class, queryBuilderState),
242
+ }
243
+ : null;
244
+ const changeClass = (val: PackageableElementOption<Class>): void => {
245
+ if (val.value === queryBuilderState.class) {
246
+ return;
247
+ }
248
+ queryBuilderState.changeClass(val.value);
249
+ onClassChange?.(val.value);
250
+ };
251
+
252
+ // milestoning
253
+ const showMilestoningEditor = (): void =>
254
+ milestoningState.setShowMilestoningEditor(true);
255
+
256
+ return (
257
+ <div className="query-builder__setup__config-group query-builder__setup__config-group--class">
258
+ <div className="query-builder__setup__config-group__content">
259
+ <div className="query-builder__setup__config-group__item ">
260
+ <div
261
+ className="btn--sm query-builder__setup__config-group__item__label"
262
+ title="class"
263
+ >
264
+ <PURE_ClassIcon />
265
+ </div>
266
+ <CustomSelectorInput
267
+ className="panel__content__form__section__dropdown query-builder__setup__config-group__item__selector query-builder__setup__config-group__item__selector__milestoned"
268
+ placeholder={
269
+ classOptions.length
270
+ ? 'Choose a class...'
271
+ : noMatchMessage ?? 'No class found'
272
+ }
273
+ disabled={
274
+ classOptions.length < 1 ||
275
+ (classOptions.length === 1 && Boolean(selectedClassOption))
276
+ }
277
+ noMatchMessage={noMatchMessage}
278
+ options={classOptions}
279
+ onChange={changeClass}
280
+ value={selectedClassOption}
281
+ darkMode={
282
+ !applicationStore.layoutService
283
+ .TEMPORARY__isLightColorThemeEnabled
284
+ }
285
+ filterOption={elementFilterOption}
286
+ formatOptionLabel={getPackageableElementOptionFormatter({
287
+ darkMode:
288
+ !applicationStore.layoutService
289
+ .TEMPORARY__isLightColorThemeEnabled,
290
+ })}
291
+ />
292
+ {queryBuilderState.isQuerySupported && (
293
+ <button
294
+ className="btn--dark btn__icon--dark query-builder__setup__milestoning"
295
+ tabIndex={-1}
296
+ onClick={showMilestoningEditor}
297
+ disabled={!milestoningState.isMilestonedQuery}
298
+ title="Edit Milestoning Parameters"
299
+ >
300
+ <ClockIcon />
301
+ </button>
302
+ )}
303
+ {milestoningState.isMilestonedQuery && (
304
+ <MilestoningParametersEditor
305
+ queryBuilderState={queryBuilderState}
306
+ />
307
+ )}
308
+ </div>
309
+ </div>
310
+ </div>
311
+ );
312
+ },
313
+ );
314
+
315
+ export const QueryBuilderFunction = observer(
316
+ (props: {
317
+ queryBuilderState: QueryBuilderState;
318
+ classes: Class[];
319
+ onClassChange?: ((val: Class) => void) | undefined;
320
+ noMatchMessage?: string | undefined;
321
+ }) => {
322
+ const { queryBuilderState, classes, onClassChange, noMatchMessage } = props;
323
+ const milestoningState = queryBuilderState.milestoningState;
324
+ const applicationStore = useApplicationStore();
325
+
326
+ // class
327
+ const elementFilterOption = createFilter({
328
+ ignoreCase: true,
329
+ ignoreAccents: false,
330
+ stringify: (option: PackageableElementOption<Class>): string =>
331
+ option.value.path,
332
+ });
333
+
334
+ const classOptions = classes.map((_class) => ({
335
+ value: _class,
336
+ label: generateClassLabel(_class, queryBuilderState),
337
+ }));
338
+ const selectedClassOption = queryBuilderState.class
339
+ ? {
340
+ value: queryBuilderState.class,
341
+ label: generateClassLabel(queryBuilderState.class, queryBuilderState),
342
+ }
343
+ : null;
344
+ const changeClass = (val: PackageableElementOption<Class>): void => {
345
+ if (val.value === queryBuilderState.class) {
346
+ return;
347
+ }
348
+ queryBuilderState.changeClass(val.value);
349
+ onClassChange?.(val.value);
350
+ };
351
+
352
+ // milestoning
353
+ const showMilestoningEditor = (): void =>
354
+ milestoningState.setShowMilestoningEditor(true);
355
+
356
+ return (
357
+ <div className="query-builder__setup__config-group query-builder__setup__config-group--class">
358
+ <div className="query-builder__setup__config-group__content">
359
+ <div className="query-builder__setup__config-group__item ">
360
+ <div
361
+ className="btn--sm query-builder__setup__config-group__item__label"
362
+ title="class"
363
+ >
364
+ <PURE_ClassIcon />
365
+ </div>
366
+ <CustomSelectorInput
367
+ className="panel__content__form__section__dropdown query-builder__setup__config-group__item__selector query-builder__setup__config-group__item__selector__milestoned"
368
+ placeholder={
369
+ classOptions.length
370
+ ? 'Choose a class...'
371
+ : noMatchMessage ?? 'No class found'
372
+ }
373
+ disabled={
374
+ classOptions.length < 1 ||
375
+ (classOptions.length === 1 && Boolean(selectedClassOption))
376
+ }
377
+ noMatchMessage={noMatchMessage}
378
+ options={classOptions}
379
+ onChange={changeClass}
380
+ value={selectedClassOption}
381
+ darkMode={
382
+ !applicationStore.layoutService
383
+ .TEMPORARY__isLightColorThemeEnabled
384
+ }
385
+ filterOption={elementFilterOption}
386
+ formatOptionLabel={getPackageableElementOptionFormatter({
387
+ darkMode:
388
+ !applicationStore.layoutService
389
+ .TEMPORARY__isLightColorThemeEnabled,
390
+ })}
391
+ />
392
+ {queryBuilderState.isQuerySupported && (
393
+ <button
394
+ className="btn--dark btn__icon--dark query-builder__setup__milestoning"
395
+ tabIndex={-1}
396
+ onClick={showMilestoningEditor}
397
+ disabled={!milestoningState.isMilestonedQuery}
398
+ title="Edit Milestoning Parameters"
399
+ >
400
+ <ClockIcon />
401
+ </button>
402
+ )}
403
+ {milestoningState.isMilestonedQuery && (
404
+ <MilestoningParametersEditor
405
+ queryBuilderState={queryBuilderState}
406
+ />
407
+ )}
408
+ </div>
409
+ </div>
410
+ </div>
411
+ );
412
+ },
413
+ );
414
+
215
415
  export const buildRuntimeValueOption = (
216
416
  runtimeValue: Runtime,
217
417
  ): { label: string; value: Runtime } => ({
@@ -257,13 +457,14 @@ const BasicQueryBuilderSetup = observer(
257
457
  queryBuilderState.graphManagerState.usableMappings.map(
258
458
  buildElementOption,
259
459
  );
260
- const selectedMappingOption = queryBuilderState.mapping
261
- ? buildElementOption(queryBuilderState.mapping)
460
+ const selectedMappingOption = queryBuilderState.executionContextState
461
+ .mapping
462
+ ? buildElementOption(queryBuilderState.executionContextState.mapping)
262
463
  : null;
263
464
  const changeMapping = (val: PackageableElementOption<Mapping>): void => {
264
465
  if (
265
466
  !queryBuilderState.class ||
266
- val.value === queryBuilderState.mapping ||
467
+ val.value === queryBuilderState.executionContextState.mapping ||
267
468
  queryBuilderState.isMappingReadOnly
268
469
  ) {
269
470
  return;
@@ -284,12 +485,15 @@ const BasicQueryBuilderSetup = observer(
284
485
  new RuntimePointer(PackageableElementExplicitReference.create(rt)),
285
486
  )
286
487
  .map(buildRuntimeValueOption);
287
- const selectedRuntimeOption = queryBuilderState.runtimeValue
288
- ? buildRuntimeValueOption(queryBuilderState.runtimeValue)
488
+ const selectedRuntimeOption = queryBuilderState.executionContextState
489
+ .runtimeValue
490
+ ? buildRuntimeValueOption(
491
+ queryBuilderState.executionContextState.runtimeValue,
492
+ )
289
493
  : null;
290
494
  const changeRuntime = (val: { value: Runtime }): void => {
291
495
  if (
292
- val.value === queryBuilderState.runtimeValue ||
496
+ val.value === queryBuilderState.executionContextState.runtimeValue ||
293
497
  queryBuilderState.isRuntimeReadOnly
294
498
  ) {
295
499
  return;
@@ -368,7 +572,7 @@ const BasicQueryBuilderSetup = observer(
368
572
  disabled={
369
573
  queryBuilderState.isRuntimeReadOnly ||
370
574
  !queryBuilderState.class ||
371
- !queryBuilderState.mapping
575
+ !queryBuilderState.executionContextState.mapping
372
576
  }
373
577
  options={runtimeOptions}
374
578
  onChange={changeRuntime}
@@ -62,8 +62,9 @@ export const QueryChat = observer(
62
62
  </ModalBody>
63
63
  <ModalFooter>
64
64
  <ModalFooterButton
65
+ className="btn--caution"
65
66
  onClick={() => queryBuilderState.setIsQueryChatOpened(false)}
66
- text="Close"
67
+ text="Discard and Close"
67
68
  />
68
69
  </ModalFooter>
69
70
  </Modal>
@@ -84,8 +84,8 @@ export const TEST__setUpQueryBuilder = async (
84
84
  graphManagerState,
85
85
  );
86
86
  const mapping = graphManagerState.graph.getMapping(mappingPath);
87
- queryBuilderState.setMapping(mapping);
88
- queryBuilderState.setRuntimeValue(
87
+ queryBuilderState.executionContextState.setMapping(mapping);
88
+ queryBuilderState.executionContextState.setRuntimeValue(
89
89
  new RuntimePointer(
90
90
  PackageableElementExplicitReference.create(
91
91
  graphManagerState.graph.getRuntime(runtimePath),
@@ -849,7 +849,11 @@ export const QueryBuilderExplorerPanel = observer(
849
849
  flowResult(explorerState.analyzeMappingModelCoverage()).catch(
850
850
  applicationStore.alertUnhandledError,
851
851
  );
852
- }, [applicationStore, explorerState, queryBuilderState.mapping]);
852
+ }, [
853
+ applicationStore,
854
+ explorerState,
855
+ queryBuilderState.executionContextState.mapping,
856
+ ]);
853
857
  return (
854
858
  <div
855
859
  data-testid={QUERY_BUILDER_TEST_ID.QUERY_BUILDER_EXPLORER}