@finos/legend-query-builder 4.14.28 → 4.14.30

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. package/lib/components/QueryBuilder.d.ts.map +1 -1
  2. package/lib/components/QueryBuilder.js +22 -14
  3. package/lib/components/QueryBuilder.js.map +1 -1
  4. package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts.map +1 -1
  5. package/lib/components/QueryBuilderPropertyExpressionEditor.js +6 -2
  6. package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -1
  7. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.d.ts.map +1 -1
  8. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js +2 -1
  9. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js.map +1 -1
  10. package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
  11. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +10 -2
  12. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
  13. package/lib/components/result/tds/QueryBuilderTDSGridResult.d.ts.map +1 -1
  14. package/lib/components/result/tds/QueryBuilderTDSGridResult.js +1 -0
  15. package/lib/components/result/tds/QueryBuilderTDSGridResult.js.map +1 -1
  16. package/lib/index.css +1 -17
  17. package/lib/index.css.map +1 -1
  18. package/lib/index.d.ts +1 -0
  19. package/lib/index.d.ts.map +1 -1
  20. package/lib/index.js +1 -0
  21. package/lib/index.js.map +1 -1
  22. package/lib/package.json +1 -1
  23. package/lib/stores/QueryBuilderState.d.ts +7 -1
  24. package/lib/stores/QueryBuilderState.d.ts.map +1 -1
  25. package/lib/stores/QueryBuilderState.js +10 -2
  26. package/lib/stores/QueryBuilderState.js.map +1 -1
  27. package/lib/stores/__test-utils__/QueryBuilderStateTestUtils.d.ts.map +1 -1
  28. package/lib/stores/__test-utils__/QueryBuilderStateTestUtils.js +2 -1
  29. package/lib/stores/__test-utils__/QueryBuilderStateTestUtils.js.map +1 -1
  30. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
  31. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +4 -0
  32. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
  33. package/lib/stores/workflow/QueryBuilderWorkFlowState.d.ts +23 -0
  34. package/lib/stores/workflow/QueryBuilderWorkFlowState.d.ts.map +1 -0
  35. package/lib/stores/workflow/QueryBuilderWorkFlowState.js +24 -0
  36. package/lib/stores/workflow/QueryBuilderWorkFlowState.js.map +1 -0
  37. package/lib/stores/workflows/FunctionQueryBuilderState.d.ts +2 -1
  38. package/lib/stores/workflows/FunctionQueryBuilderState.d.ts.map +1 -1
  39. package/lib/stores/workflows/FunctionQueryBuilderState.js +2 -2
  40. package/lib/stores/workflows/FunctionQueryBuilderState.js.map +1 -1
  41. package/lib/stores/workflows/MappingQueryBuilderState.d.ts +2 -1
  42. package/lib/stores/workflows/MappingQueryBuilderState.d.ts.map +1 -1
  43. package/lib/stores/workflows/MappingQueryBuilderState.js +2 -2
  44. package/lib/stores/workflows/MappingQueryBuilderState.js.map +1 -1
  45. package/lib/stores/workflows/ServiceQueryBuilderState.d.ts +2 -1
  46. package/lib/stores/workflows/ServiceQueryBuilderState.d.ts.map +1 -1
  47. package/lib/stores/workflows/ServiceQueryBuilderState.js +2 -2
  48. package/lib/stores/workflows/ServiceQueryBuilderState.js.map +1 -1
  49. package/package.json +1 -1
  50. package/src/components/QueryBuilder.tsx +106 -24
  51. package/src/components/QueryBuilderPropertyExpressionEditor.tsx +6 -2
  52. package/src/components/__test-utils__/QueryBuilderComponentTestUtils.tsx +2 -0
  53. package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +10 -2
  54. package/src/components/result/tds/QueryBuilderTDSGridResult.tsx +1 -0
  55. package/src/index.ts +1 -0
  56. package/src/stores/QueryBuilderState.ts +11 -0
  57. package/src/stores/__test-utils__/QueryBuilderStateTestUtils.ts +2 -0
  58. package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +7 -0
  59. package/src/stores/workflow/QueryBuilderWorkFlowState.ts +27 -0
  60. package/src/stores/workflows/FunctionQueryBuilderState.ts +3 -1
  61. package/src/stores/workflows/MappingQueryBuilderState.ts +9 -1
  62. package/src/stores/workflows/ServiceQueryBuilderState.ts +9 -1
  63. package/tsconfig.json +1 -0
@@ -34,6 +34,7 @@ import { action, makeObservable, observable } from 'mobx';
34
34
  import { renderServiceQueryBuilderSetupPanelContent } from '../../components/workflows/ServiceQueryBuilder.js';
35
35
  import { QueryBuilderState } from '../QueryBuilderState.js';
36
36
  import type { QueryBuilderConfig } from '../../graph-manager/QueryBuilderConfig.js';
37
+ import type { QueryBuilderWorkflowState } from '../workflow/QueryBuilderWorkFlowState.js';
37
38
 
38
39
  export type ServiceExecutionContext = {
39
40
  key: string;
@@ -58,6 +59,7 @@ export class ServiceQueryBuilderState extends QueryBuilderState {
58
59
  constructor(
59
60
  applicationStore: GenericLegendApplicationStore,
60
61
  graphManagerState: GraphManagerState,
62
+ workflowState: QueryBuilderWorkflowState,
61
63
  service: Service,
62
64
  usableServices: Service[] | undefined,
63
65
  executionContextKey?: string | undefined,
@@ -68,7 +70,13 @@ export class ServiceQueryBuilderState extends QueryBuilderState {
68
70
  config?: QueryBuilderConfig | undefined,
69
71
  sourceInfo?: object | undefined,
70
72
  ) {
71
- super(applicationStore, graphManagerState, config, sourceInfo);
73
+ super(
74
+ applicationStore,
75
+ graphManagerState,
76
+ workflowState,
77
+ config,
78
+ sourceInfo,
79
+ );
72
80
 
73
81
  makeObservable(this, {
74
82
  selectedExecutionContext: observable,
package/tsconfig.json CHANGED
@@ -177,6 +177,7 @@
177
177
  "./src/stores/watermark/QueryBuilderWatermarkState.ts",
178
178
  "./src/stores/watermark/QueryBuilderWatermarkStateBuilder.ts",
179
179
  "./src/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.ts",
180
+ "./src/stores/workflow/QueryBuilderWorkFlowState.ts",
180
181
  "./src/stores/workflows/ClassQueryBuilderState.ts",
181
182
  "./src/stores/workflows/FunctionQueryBuilderState.ts",
182
183
  "./src/stores/workflows/MappingQueryBuilderState.ts",