@finos/legend-query-builder 4.19.22 → 4.19.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/lib/components/QueryBuilder.d.ts.map +1 -1
  2. package/lib/components/QueryBuilder.js +65 -50
  3. package/lib/components/QueryBuilder.js.map +1 -1
  4. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.d.ts +2 -1
  5. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.d.ts.map +1 -1
  6. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js +2 -2
  7. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js.map +1 -1
  8. package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
  9. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +11 -7
  10. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
  11. package/lib/components/shared/LambdaEditor.d.ts.map +1 -1
  12. package/lib/components/shared/LambdaEditor.js +4 -13
  13. package/lib/components/shared/LambdaEditor.js.map +1 -1
  14. package/lib/components/sql-playground/SQLPlaygroundEditor.d.ts.map +1 -1
  15. package/lib/components/sql-playground/SQLPlaygroundEditor.js +4 -4
  16. package/lib/components/sql-playground/SQLPlaygroundEditor.js.map +1 -1
  17. package/lib/data-access-overview.css +1 -1
  18. package/lib/index.css +1 -1
  19. package/lib/index.d.ts +1 -0
  20. package/lib/index.d.ts.map +1 -1
  21. package/lib/index.js +1 -0
  22. package/lib/index.js.map +1 -1
  23. package/lib/package.json +1 -1
  24. package/lib/stores/query-workflow/QueryBuilderWorkFlowState.d.ts +10 -0
  25. package/lib/stores/query-workflow/QueryBuilderWorkFlowState.d.ts.map +1 -1
  26. package/lib/stores/query-workflow/QueryBuilderWorkFlowState.js +16 -0
  27. package/lib/stores/query-workflow/QueryBuilderWorkFlowState.js.map +1 -1
  28. package/package.json +8 -8
  29. package/src/components/QueryBuilder.tsx +392 -365
  30. package/src/components/__test-utils__/QueryBuilderComponentTestUtils.tsx +3 -1
  31. package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +383 -371
  32. package/src/components/shared/LambdaEditor.tsx +10 -13
  33. package/src/components/sql-playground/SQLPlaygroundEditor.tsx +6 -5
  34. package/src/index.ts +1 -0
  35. package/src/stores/query-workflow/QueryBuilderWorkFlowState.ts +19 -0
@@ -65,6 +65,7 @@ import { expect } from '@jest/globals';
65
65
  import {
66
66
  QueryBuilderActionConfig,
67
67
  QueryBuilderAdvancedWorkflowState,
68
+ type QueryBuilderWorkflowState,
68
69
  } from '../../stores/query-workflow/QueryBuilderWorkFlowState.js';
69
70
  import { AccessorQueryBuilderState } from '../../stores/workflows/accessor/AccessorQueryBuilderState.js';
70
71
  import { Route, Routes } from '@finos/legend-application/browser';
@@ -238,6 +239,7 @@ export const TEST__setUpQueryBuilder = async (
238
239
  mappingPath: string,
239
240
  runtimePath: string,
240
241
  rawMappingModelCoverageAnalysisResult?: RawMappingModelCoverageAnalysisResult,
242
+ workflowState: QueryBuilderWorkflowState = QueryBuilderAdvancedWorkflowState.INSTANCE,
241
243
  ): Promise<{
242
244
  renderResult: RenderResult;
243
245
  queryBuilderState: QueryBuilderState;
@@ -256,7 +258,7 @@ export const TEST__setUpQueryBuilder = async (
256
258
  const queryBuilderState = new INTERNAL__BasicQueryBuilderState(
257
259
  MOCK__applicationStore,
258
260
  graphManagerState,
259
- QueryBuilderAdvancedWorkflowState.INSTANCE,
261
+ workflowState,
260
262
  undefined,
261
263
  );
262
264
  const mapping = graphManagerState.graph.getMapping(mappingPath);