@finos/legend-query-builder 4.3.8 → 4.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) 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/__test-utils__/QueryBuilderComponentTestUtils.d.ts.map +1 -1
  5. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js +1 -1
  6. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js.map +1 -1
  7. package/lib/graph-manager/QueryBuilderConfig.d.ts +24 -0
  8. package/lib/graph-manager/QueryBuilderConfig.d.ts.map +1 -0
  9. package/lib/graph-manager/QueryBuilderConfig.js +27 -0
  10. package/lib/graph-manager/QueryBuilderConfig.js.map +1 -0
  11. package/lib/index.css +16 -0
  12. package/lib/index.d.ts +1 -0
  13. package/lib/index.d.ts.map +1 -1
  14. package/lib/index.js +1 -0
  15. package/lib/index.js.map +1 -1
  16. package/lib/package.json +9 -9
  17. package/lib/stores/QueryBuilderState.d.ts +3 -1
  18. package/lib/stores/QueryBuilderState.d.ts.map +1 -1
  19. package/lib/stores/QueryBuilderState.js +4 -2
  20. package/lib/stores/QueryBuilderState.js.map +1 -1
  21. package/lib/stores/__test-utils__/QueryBuilderStateTestUtils.d.ts.map +1 -1
  22. package/lib/stores/__test-utils__/QueryBuilderStateTestUtils.js +1 -1
  23. package/lib/stores/__test-utils__/QueryBuilderStateTestUtils.js.map +1 -1
  24. package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts +4 -1
  25. package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts.map +1 -1
  26. package/lib/stores/shared/ValueSpecificationEditorHelper.js +1 -1
  27. package/lib/stores/shared/ValueSpecificationEditorHelper.js.map +1 -1
  28. package/lib/stores/workflows/FunctionQueryBuilderState.d.ts +2 -1
  29. package/lib/stores/workflows/FunctionQueryBuilderState.d.ts.map +1 -1
  30. package/lib/stores/workflows/FunctionQueryBuilderState.js +2 -2
  31. package/lib/stores/workflows/FunctionQueryBuilderState.js.map +1 -1
  32. package/lib/stores/workflows/MappingQueryBuilderState.d.ts +2 -1
  33. package/lib/stores/workflows/MappingQueryBuilderState.d.ts.map +1 -1
  34. package/lib/stores/workflows/MappingQueryBuilderState.js +2 -2
  35. package/lib/stores/workflows/MappingQueryBuilderState.js.map +1 -1
  36. package/lib/stores/workflows/ServiceQueryBuilderState.d.ts +2 -1
  37. package/lib/stores/workflows/ServiceQueryBuilderState.d.ts.map +1 -1
  38. package/lib/stores/workflows/ServiceQueryBuilderState.js +2 -2
  39. package/lib/stores/workflows/ServiceQueryBuilderState.js.map +1 -1
  40. package/package.json +17 -17
  41. package/src/components/QueryBuilder.tsx +16 -14
  42. package/src/components/__test-utils__/QueryBuilderComponentTestUtils.tsx +1 -0
  43. package/src/graph-manager/QueryBuilderConfig.ts +31 -0
  44. package/src/index.ts +1 -1
  45. package/src/stores/QueryBuilderState.ts +5 -0
  46. package/src/stores/__test-utils__/QueryBuilderStateTestUtils.ts +1 -0
  47. package/src/stores/shared/ValueSpecificationEditorHelper.ts +1 -1
  48. package/src/stores/workflows/FunctionQueryBuilderState.ts +3 -1
  49. package/src/stores/workflows/MappingQueryBuilderState.ts +3 -1
  50. package/src/stores/workflows/ServiceQueryBuilderState.ts +3 -1
  51. package/tsconfig.json +1 -0
@@ -33,6 +33,7 @@ import {
33
33
  import { action, makeObservable, observable } from 'mobx';
34
34
  import { renderServiceQueryBuilderSetupPanelContent } from '../../components/workflows/ServiceQueryBuilder.js';
35
35
  import { QueryBuilderState } from '../QueryBuilderState.js';
36
+ import type { QueryBuilderConfig } from '../../graph-manager/QueryBuilderConfig.js';
36
37
 
37
38
  export type ServiceExecutionContext = {
38
39
  key: string;
@@ -64,8 +65,9 @@ export class ServiceQueryBuilderState extends QueryBuilderState {
64
65
  onExecutionContextChange?:
65
66
  | ((val: ServiceExecutionContext) => void)
66
67
  | undefined,
68
+ config?: QueryBuilderConfig | undefined,
67
69
  ) {
68
- super(applicationStore, graphManagerState);
70
+ super(applicationStore, graphManagerState, config);
69
71
 
70
72
  makeObservable(this, {
71
73
  selectedExecutionContext: observable,
package/tsconfig.json CHANGED
@@ -44,6 +44,7 @@
44
44
  "./src/components/QueryBuilder_LegendApplicationPlugin.ts",
45
45
  "./src/components/QuerySetupUtils.ts",
46
46
  "./src/graph/QueryBuilderMetaModelConst.ts",
47
+ "./src/graph-manager/QueryBuilderConfig.ts",
47
48
  "./src/graph-manager/QueryBuilderConst.ts",
48
49
  "./src/graph-manager/QueryBuilder_GraphManagerPreset.ts",
49
50
  "./src/graph-manager/QueryBuilder_PureGraphManagerPlugin.ts",