@finos/legend-application-query 5.2.2 → 5.2.5
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.
- package/lib/application/LegendQueryApplicationConfig.d.ts +0 -2
- package/lib/application/LegendQueryApplicationConfig.d.ts.map +1 -1
- package/lib/application/LegendQueryApplicationConfig.js +0 -2
- package/lib/application/LegendQueryApplicationConfig.js.map +1 -1
- package/lib/components/LegendQueryApplication.d.ts.map +1 -1
- package/lib/components/LegendQueryApplication.js +5 -15
- package/lib/components/LegendQueryApplication.js.map +1 -1
- package/lib/components/LegendQueryBaseStoreProvider.d.ts.map +1 -1
- package/lib/components/LegendQueryBaseStoreProvider.js +1 -3
- package/lib/components/LegendQueryBaseStoreProvider.js.map +1 -1
- package/lib/components/QueryBuilder.d.ts.map +1 -1
- package/lib/components/QueryBuilder.js +16 -9
- package/lib/components/QueryBuilder.js.map +1 -1
- package/lib/components/QueryBuilderParameterPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderParameterPanel.js +1 -1
- package/lib/components/QueryBuilderParameterPanel.js.map +1 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts +1 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts.map +1 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.js +2 -2
- package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -1
- package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderResultPanel.js +8 -8
- package/lib/components/QueryBuilderResultPanel.js.map +1 -1
- package/lib/components/QueryBuilderSetupPanel.js +1 -1
- package/lib/components/QueryBuilderSetupPanel.js.map +1 -1
- package/lib/components/QueryBuilderTextEditor.js +1 -1
- package/lib/components/QueryBuilderTextEditor.js.map +1 -1
- package/lib/components/QueryEditorComponentTestUtils.d.ts +0 -2
- package/lib/components/QueryEditorComponentTestUtils.d.ts.map +1 -1
- package/lib/components/QueryEditorComponentTestUtils.js +2 -5
- package/lib/components/QueryEditorComponentTestUtils.js.map +1 -1
- package/lib/components/QueryEditorStoreProvider.d.ts.map +1 -1
- package/lib/components/QueryEditorStoreProvider.js +3 -7
- package/lib/components/QueryEditorStoreProvider.js.map +1 -1
- package/lib/components/QuerySetupStoreProvider.d.ts.map +1 -1
- package/lib/components/QuerySetupStoreProvider.js +1 -3
- package/lib/components/QuerySetupStoreProvider.js.map +1 -1
- package/lib/components/{QueryBuilderExplorerPanel.d.ts → explorer/QueryBuilderExplorerPanel.d.ts} +1 -1
- package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts.map +1 -0
- package/lib/components/{QueryBuilderExplorerPanel.js → explorer/QueryBuilderExplorerPanel.js} +12 -47
- package/lib/components/explorer/QueryBuilderExplorerPanel.js.map +1 -0
- package/lib/components/{QueryBuilderFunctionsExplorerPanel.d.ts → explorer/QueryBuilderFunctionsExplorerPanel.d.ts} +1 -1
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts.map +1 -0
- package/lib/components/{QueryBuilderFunctionsExplorerPanel.js → explorer/QueryBuilderFunctionsExplorerPanel.js} +1 -1
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js.map +1 -0
- package/lib/components/{QueryBuilderMilestoneEditor.d.ts → explorer/QueryBuilderMilestoneEditor.d.ts} +1 -1
- package/lib/components/explorer/QueryBuilderMilestoneEditor.d.ts.map +1 -0
- package/lib/components/{QueryBuilderMilestoneEditor.js → explorer/QueryBuilderMilestoneEditor.js} +3 -3
- package/lib/components/explorer/QueryBuilderMilestoneEditor.js.map +1 -0
- package/lib/components/{QueryBuilderPropertySearchPanel.d.ts → explorer/QueryBuilderPropertySearchPanel.d.ts} +1 -1
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts.map +1 -0
- package/lib/components/{QueryBuilderPropertySearchPanel.js → explorer/QueryBuilderPropertySearchPanel.js} +5 -5
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.js.map +1 -0
- package/lib/components/{QueryBuilderFetchStructurePanel.d.ts → fetch-structure/QueryBuilderFetchStructurePanel.d.ts} +1 -1
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.d.ts.map +1 -0
- package/lib/components/{QueryBuilderFetchStructurePanel.js → fetch-structure/QueryBuilderFetchStructurePanel.js} +15 -12
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.js.map +1 -0
- package/lib/components/{QueryBuilderGraphFetchTreePanel.d.ts → fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts} +3 -3
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts.map +1 -0
- package/lib/components/{QueryBuilderGraphFetchTreePanel.js → fetch-structure/QueryBuilderGraphFetchTreePanel.js} +4 -4
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js.map +1 -0
- package/lib/components/{QueryBuilderPostFilterPanel.d.ts → fetch-structure/QueryBuilderPostFilterPanel.d.ts} +3 -3
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +1 -0
- package/lib/components/{QueryBuilderPostFilterPanel.js → fetch-structure/QueryBuilderPostFilterPanel.js} +20 -18
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -0
- package/lib/components/{QueryBuilderProjectionPanel.d.ts → fetch-structure/QueryBuilderProjectionPanel.d.ts} +1 -1
- package/lib/components/fetch-structure/QueryBuilderProjectionPanel.d.ts.map +1 -0
- package/lib/components/{QueryBuilderProjectionPanel.js → fetch-structure/QueryBuilderProjectionPanel.js} +11 -11
- package/lib/components/fetch-structure/QueryBuilderProjectionPanel.js.map +1 -0
- package/lib/components/{QueryBuilderResultModifierPanel.d.ts → fetch-structure/QueryBuilderResultModifierPanel.d.ts} +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +1 -0
- package/lib/components/{QueryBuilderResultModifierPanel.js → fetch-structure/QueryBuilderResultModifierPanel.js} +9 -6
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -0
- package/lib/components/{QueryBuilderFilterPanel.d.ts → filter/QueryBuilderFilterPanel.d.ts} +1 -1
- package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +1 -0
- package/lib/components/{QueryBuilderFilterPanel.js → filter/QueryBuilderFilterPanel.js} +10 -9
- package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -0
- package/lib/components/{QueryBuilderLambdaEditor.d.ts → shared/QueryBuilderLambdaEditor.d.ts} +1 -1
- package/lib/components/shared/QueryBuilderLambdaEditor.d.ts.map +1 -0
- package/lib/components/{QueryBuilderLambdaEditor.js → shared/QueryBuilderLambdaEditor.js} +0 -0
- package/lib/components/shared/QueryBuilderLambdaEditor.js.map +1 -0
- package/lib/components/{QueryBuilderPanelIssueCountBadge.d.ts → shared/QueryBuilderPanelIssueCountBadge.d.ts} +0 -0
- package/lib/components/shared/QueryBuilderPanelIssueCountBadge.d.ts.map +1 -0
- package/lib/components/{QueryBuilderPanelIssueCountBadge.js → shared/QueryBuilderPanelIssueCountBadge.js} +0 -0
- package/lib/components/shared/QueryBuilderPanelIssueCountBadge.js.map +1 -0
- package/lib/components/{QueryBuilderPropertyInfoTooltip.d.ts → shared/QueryBuilderPropertyInfoTooltip.d.ts} +0 -0
- package/lib/components/shared/QueryBuilderPropertyInfoTooltip.d.ts.map +1 -0
- package/lib/components/{QueryBuilderPropertyInfoTooltip.js → shared/QueryBuilderPropertyInfoTooltip.js} +0 -0
- package/lib/components/shared/QueryBuilderPropertyInfoTooltip.js.map +1 -0
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +0 -4
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -4
- package/lib/index.js.map +1 -1
- package/lib/package.json +9 -10
- package/lib/stores/LegendQueryBaseStore.d.ts +2 -4
- package/lib/stores/LegendQueryBaseStore.d.ts.map +1 -1
- package/lib/stores/LegendQueryBaseStore.js +1 -5
- package/lib/stores/LegendQueryBaseStore.js.map +1 -1
- package/lib/stores/QueryBuilderGroupOperationHelper.d.ts +22 -0
- package/lib/stores/QueryBuilderGroupOperationHelper.d.ts.map +1 -0
- package/lib/stores/QueryBuilderGroupOperationHelper.js +43 -0
- package/lib/stores/QueryBuilderGroupOperationHelper.js.map +1 -0
- package/lib/stores/QueryBuilderPreviewDataHelper.d.ts.map +1 -1
- package/lib/stores/QueryBuilderPreviewDataHelper.js +16 -17
- package/lib/stores/QueryBuilderPreviewDataHelper.js.map +1 -1
- package/lib/stores/QueryBuilderPropertyEditorState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderPropertyEditorState.js +5 -4
- package/lib/stores/QueryBuilderPropertyEditorState.js.map +1 -1
- package/lib/stores/QueryBuilderResultState.js +1 -1
- package/lib/stores/QueryBuilderResultState.js.map +1 -1
- package/lib/stores/QueryBuilderState.d.ts +9 -16
- package/lib/stores/QueryBuilderState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderState.js +19 -33
- package/lib/stores/QueryBuilderState.js.map +1 -1
- package/lib/stores/QueryBuilderTestUtils.d.ts.map +1 -1
- package/lib/stores/QueryBuilderTestUtils.js +2 -1
- package/lib/stores/QueryBuilderTestUtils.js.map +1 -1
- package/lib/stores/QueryBuilderTypeaheadHelper.d.ts +7 -7
- package/lib/stores/QueryBuilderTypeaheadHelper.d.ts.map +1 -1
- package/lib/stores/QueryBuilderTypeaheadHelper.js +23 -28
- package/lib/stores/QueryBuilderTypeaheadHelper.js.map +1 -1
- package/lib/stores/{QueryBuilderLambdaBuilder.d.ts → QueryBuilderValueSpecificationBuilder.d.ts} +1 -3
- package/lib/stores/QueryBuilderValueSpecificationBuilder.d.ts.map +1 -0
- package/lib/stores/{QueryBuilderLambdaBuilder.js → QueryBuilderValueSpecificationBuilder.js} +179 -190
- package/lib/stores/QueryBuilderValueSpecificationBuilder.js.map +1 -0
- package/lib/stores/{QueryBuilderOperatorsHelper.d.ts → QueryBuilderValueSpecificationHelper.d.ts} +5 -9
- package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts.map +1 -0
- package/lib/stores/{QueryBuilderOperatorsHelper.js → QueryBuilderValueSpecificationHelper.js} +38 -30
- package/lib/stores/QueryBuilderValueSpecificationHelper.js.map +1 -0
- package/lib/stores/{QueryBuilderLambdaProcessor.d.ts → QueryBuilderValueSpecificationProcessor.d.ts} +1 -1
- package/lib/stores/QueryBuilderValueSpecificationProcessor.d.ts.map +1 -0
- package/lib/stores/{QueryBuilderLambdaProcessor.js → QueryBuilderValueSpecificationProcessor.js} +16 -14
- package/lib/stores/QueryBuilderValueSpecificationProcessor.js.map +1 -0
- package/lib/stores/QueryEditorStore.d.ts +4 -6
- package/lib/stores/QueryEditorStore.d.ts.map +1 -1
- package/lib/stores/QueryEditorStore.js +7 -9
- package/lib/stores/QueryEditorStore.js.map +1 -1
- package/lib/stores/QueryEditorStoreTestUtils.d.ts.map +1 -1
- package/lib/stores/QueryEditorStoreTestUtils.js +0 -1
- package/lib/stores/QueryEditorStoreTestUtils.js.map +1 -1
- package/lib/stores/QuerySetupStore.d.ts +1 -3
- package/lib/stores/QuerySetupStore.d.ts.map +1 -1
- package/lib/stores/QuerySetupStore.js +1 -3
- package/lib/stores/QuerySetupStore.js.map +1 -1
- package/lib/stores/{QueryBuilderExplorerState.d.ts → explorer/QueryBuilderExplorerState.d.ts} +3 -2
- package/lib/stores/explorer/QueryBuilderExplorerState.d.ts.map +1 -0
- package/lib/stores/{QueryBuilderExplorerState.js → explorer/QueryBuilderExplorerState.js} +77 -3
- package/lib/stores/explorer/QueryBuilderExplorerState.js.map +1 -0
- package/lib/stores/{QueryBuilderPropertySearchPanelState.d.ts → explorer/QueryBuilderPropertySearchPanelState.d.ts} +2 -2
- package/lib/stores/explorer/QueryBuilderPropertySearchPanelState.d.ts.map +1 -0
- package/lib/stores/{QueryBuilderPropertySearchPanelState.js → explorer/QueryBuilderPropertySearchPanelState.js} +1 -1
- package/lib/stores/explorer/QueryBuilderPropertySearchPanelState.js.map +1 -0
- package/lib/stores/{QueryFunctionsExplorerState.d.ts → explorer/QueryFunctionsExplorerState.d.ts} +1 -1
- package/lib/stores/explorer/QueryFunctionsExplorerState.d.ts.map +1 -0
- package/lib/stores/{QueryFunctionsExplorerState.js → explorer/QueryFunctionsExplorerState.js} +0 -0
- package/lib/stores/explorer/QueryFunctionsExplorerState.js.map +1 -0
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts +23 -0
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js +24 -0
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js.map +1 -0
- package/lib/stores/{QueryBuilderFetchStructureState.d.ts → fetch-structure/QueryBuilderFetchStructureState.d.ts} +11 -7
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.js +116 -0
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.js.map +1 -0
- package/lib/stores/{QueryBuilderGraphFetchTreeState.d.ts → fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts} +6 -5
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts.map +1 -0
- package/lib/stores/{QueryBuilderGraphFetchTreeState.js → fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js} +17 -17
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js.map +1 -0
- package/lib/stores/{QueryBuilderGraphFetchTreeUtil.d.ts → fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.d.ts} +2 -2
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.d.ts.map +1 -0
- package/lib/stores/{QueryBuilderGraphFetchTreeUtil.js → fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js} +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js.map +1 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.d.ts +19 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.js +49 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.js.map +1 -0
- package/lib/stores/{QueryBuilderProjectionState.d.ts → fetch-structure/projection/QueryBuilderProjectionColumnState.d.ts} +6 -34
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.js +187 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.js.map +1 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.d.ts +59 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.js +203 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.js.map +1 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts +21 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.js +73 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -0
- package/lib/stores/{QueryResultSetModifierState.d.ts → fetch-structure/projection/QueryResultSetModifierState.d.ts} +5 -14
- package/lib/stores/fetch-structure/projection/QueryResultSetModifierState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/QueryResultSetModifierState.js +77 -0
- package/lib/stores/fetch-structure/projection/QueryResultSetModifierState.js.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.d.ts +32 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.js +36 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.js.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.d.ts +18 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.js +38 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.js.map +1 -0
- package/lib/stores/{QueryBuilderAggregationState.d.ts → fetch-structure/projection/aggregation/QueryBuilderAggregationState.d.ts} +4 -15
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.d.ts.map +1 -0
- package/lib/stores/{QueryBuilderAggregationState.js → fetch-structure/projection/aggregation/QueryBuilderAggregationState.js} +2 -21
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.js.map +1 -0
- package/lib/stores/{aggregateOperators → fetch-structure/projection/aggregation/operators}/QueryBuilderAggregateOperatorHelper.d.ts +3 -2
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.d.ts.map +1 -0
- package/lib/stores/{aggregateOperators → fetch-structure/projection/aggregation/operators}/QueryBuilderAggregateOperatorHelper.js +1 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.js.map +1 -0
- package/lib/stores/{aggregateOperators → fetch-structure/projection/aggregation/operators}/QueryBuilderAggregateOperator_Average.d.ts +3 -2
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.d.ts.map +1 -0
- package/lib/stores/{aggregateOperators → fetch-structure/projection/aggregation/operators}/QueryBuilderAggregateOperator_Average.js +3 -3
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.js.map +1 -0
- package/lib/stores/{aggregateOperators → fetch-structure/projection/aggregation/operators}/QueryBuilderAggregateOperator_Count.d.ts +3 -2
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.d.ts.map +1 -0
- package/lib/stores/{aggregateOperators → fetch-structure/projection/aggregation/operators}/QueryBuilderAggregateOperator_Count.js +3 -3
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.js.map +1 -0
- package/lib/stores/{aggregateOperators → fetch-structure/projection/aggregation/operators}/QueryBuilderAggregateOperator_Distinct.d.ts +3 -2
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.d.ts.map +1 -0
- package/lib/stores/{aggregateOperators → fetch-structure/projection/aggregation/operators}/QueryBuilderAggregateOperator_Distinct.js +3 -3
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js.map +1 -0
- package/lib/stores/{aggregateOperators → fetch-structure/projection/aggregation/operators}/QueryBuilderAggregateOperator_DistinctCount.d.ts +3 -2
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.d.ts.map +1 -0
- package/lib/stores/{aggregateOperators → fetch-structure/projection/aggregation/operators}/QueryBuilderAggregateOperator_DistinctCount.js +4 -3
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js.map +1 -0
- package/lib/stores/{aggregateOperators → fetch-structure/projection/aggregation/operators}/QueryBuilderAggregateOperator_JoinString.d.ts +3 -2
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.d.ts.map +1 -0
- package/lib/stores/{aggregateOperators → fetch-structure/projection/aggregation/operators}/QueryBuilderAggregateOperator_JoinString.js +4 -3
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js.map +1 -0
- package/lib/stores/{aggregateOperators → fetch-structure/projection/aggregation/operators}/QueryBuilderAggregateOperator_Max.d.ts +3 -2
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.d.ts.map +1 -0
- package/lib/stores/{aggregateOperators → fetch-structure/projection/aggregation/operators}/QueryBuilderAggregateOperator_Max.js +3 -3
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.js.map +1 -0
- package/lib/stores/{aggregateOperators → fetch-structure/projection/aggregation/operators}/QueryBuilderAggregateOperator_Min.d.ts +3 -2
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.d.ts.map +1 -0
- package/lib/stores/{aggregateOperators → fetch-structure/projection/aggregation/operators}/QueryBuilderAggregateOperator_Min.js +3 -3
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.js.map +1 -0
- package/lib/stores/{aggregateOperators → fetch-structure/projection/aggregation/operators}/QueryBuilderAggregateOperator_StdDev_Population.d.ts +3 -2
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.d.ts.map +1 -0
- package/lib/stores/{aggregateOperators → fetch-structure/projection/aggregation/operators}/QueryBuilderAggregateOperator_StdDev_Population.js +3 -3
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js.map +1 -0
- package/lib/stores/{aggregateOperators → fetch-structure/projection/aggregation/operators}/QueryBuilderAggregateOperator_StdDev_Sample.d.ts +3 -2
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts.map +1 -0
- package/lib/stores/{aggregateOperators → fetch-structure/projection/aggregation/operators}/QueryBuilderAggregateOperator_StdDev_Sample.js +3 -3
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js.map +1 -0
- package/lib/stores/{aggregateOperators → fetch-structure/projection/aggregation/operators}/QueryBuilderAggregateOperator_Sum.d.ts +3 -2
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.d.ts.map +1 -0
- package/lib/stores/{aggregateOperators → fetch-structure/projection/aggregation/operators}/QueryBuilderAggregateOperator_Sum.js +3 -3
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.js.map +1 -0
- package/lib/stores/{QueryBuilderPostFilterOperator.d.ts → fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.d.ts} +0 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.d.ts.map +1 -0
- package/lib/stores/{QueryBuilderPostFilterOperator.js → fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.js} +0 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.js.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.d.ts +18 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.js +44 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.js.map +1 -0
- package/lib/stores/{QueryBuilderPostFilterState.d.ts → fetch-structure/projection/post-filter/QueryBuilderPostFilterState.d.ts} +6 -6
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.d.ts.map +1 -0
- package/lib/stores/{QueryBuilderPostFilterState.js → fetch-structure/projection/post-filter/QueryBuilderPostFilterState.js} +18 -15
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.js.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.d.ts +19 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js +82 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js.map +1 -0
- package/lib/stores/{QueryBuilderPostFilterProcessor.d.ts → fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationProcessor.d.ts} +2 -5
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationProcessor.d.ts.map +1 -0
- package/lib/stores/{QueryBuilderPostFilterProcessor.js → fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationProcessor.js} +13 -11
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationProcessor.js.map +1 -0
- package/lib/stores/{postFilterOperators → fetch-structure/projection/post-filter/operators}/QueryBuilderPostFilterOperatorHelper.d.ts +2 -2
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.d.ts.map +1 -0
- package/lib/stores/{postFilterOperators → fetch-structure/projection/post-filter/operators}/QueryBuilderPostFilterOperatorHelper.js +5 -5
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js.map +1 -0
- package/lib/stores/{postFilterOperators → fetch-structure/projection/post-filter/operators}/QueryBuilderPostFilterOperator_Contain.d.ts +0 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts.map +1 -0
- package/lib/stores/{postFilterOperators → fetch-structure/projection/post-filter/operators}/QueryBuilderPostFilterOperator_Contain.js +7 -8
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js.map +1 -0
- package/lib/stores/{postFilterOperators → fetch-structure/projection/post-filter/operators}/QueryBuilderPostFilterOperator_EndWith.d.ts +0 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts.map +1 -0
- package/lib/stores/{postFilterOperators → fetch-structure/projection/post-filter/operators}/QueryBuilderPostFilterOperator_EndWith.js +7 -8
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js.map +1 -0
- package/lib/stores/{postFilterOperators → fetch-structure/projection/post-filter/operators}/QueryBuilderPostFilterOperator_Equal.d.ts +0 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts.map +1 -0
- package/lib/stores/{postFilterOperators → fetch-structure/projection/post-filter/operators}/QueryBuilderPostFilterOperator_Equal.js +11 -12
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js.map +1 -0
- package/lib/stores/{postFilterOperators → fetch-structure/projection/post-filter/operators}/QueryBuilderPostFilterOperator_GreaterThan.d.ts +0 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts.map +1 -0
- package/lib/stores/{postFilterOperators → fetch-structure/projection/post-filter/operators}/QueryBuilderPostFilterOperator_GreaterThan.js +8 -9
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js.map +1 -0
- package/lib/stores/{postFilterOperators → fetch-structure/projection/post-filter/operators}/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts +0 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts.map +1 -0
- package/lib/stores/{postFilterOperators → fetch-structure/projection/post-filter/operators}/QueryBuilderPostFilterOperator_GreaterThanEqual.js +2 -2
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js.map +1 -0
- package/lib/stores/{postFilterOperators → fetch-structure/projection/post-filter/operators}/QueryBuilderPostFilterOperator_In.d.ts +0 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts.map +1 -0
- package/lib/stores/{postFilterOperators → fetch-structure/projection/post-filter/operators}/QueryBuilderPostFilterOperator_In.js +8 -8
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.js.map +1 -0
- package/lib/stores/{postFilterOperators → fetch-structure/projection/post-filter/operators}/QueryBuilderPostFilterOperator_IsEmpty.d.ts +0 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts.map +1 -0
- package/lib/stores/{postFilterOperators → fetch-structure/projection/post-filter/operators}/QueryBuilderPostFilterOperator_IsEmpty.js +3 -3
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js.map +1 -0
- package/lib/stores/{postFilterOperators → fetch-structure/projection/post-filter/operators}/QueryBuilderPostFilterOperator_LessThan.d.ts +0 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts.map +1 -0
- package/lib/stores/{postFilterOperators → fetch-structure/projection/post-filter/operators}/QueryBuilderPostFilterOperator_LessThan.js +8 -9
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js.map +1 -0
- package/lib/stores/{postFilterOperators → fetch-structure/projection/post-filter/operators}/QueryBuilderPostFilterOperator_LessThanEqual.d.ts +0 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts.map +1 -0
- package/lib/stores/{postFilterOperators → fetch-structure/projection/post-filter/operators}/QueryBuilderPostFilterOperator_LessThanEqual.js +2 -2
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js.map +1 -0
- package/lib/stores/{postFilterOperators → fetch-structure/projection/post-filter/operators}/QueryBuilderPostFilterOperator_StartWith.d.ts +0 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts.map +1 -0
- package/lib/stores/{postFilterOperators → fetch-structure/projection/post-filter/operators}/QueryBuilderPostFilterOperator_StartWith.js +7 -8
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js.map +1 -0
- package/lib/stores/filter/QueryBuilderFilterOperator.d.ts +27 -0
- package/lib/stores/filter/QueryBuilderFilterOperator.d.ts.map +1 -0
- package/lib/stores/filter/QueryBuilderFilterOperator.js +20 -0
- package/lib/stores/filter/QueryBuilderFilterOperator.js.map +1 -0
- package/lib/stores/filter/QueryBuilderFilterOperatorLoader.d.ts +18 -0
- package/lib/stores/filter/QueryBuilderFilterOperatorLoader.d.ts.map +1 -0
- package/lib/stores/filter/QueryBuilderFilterOperatorLoader.js +44 -0
- package/lib/stores/filter/QueryBuilderFilterOperatorLoader.js.map +1 -0
- package/lib/stores/{QueryBuilderFilterState.d.ts → filter/QueryBuilderFilterState.d.ts} +7 -16
- package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +1 -0
- package/lib/stores/{QueryBuilderFilterState.js → filter/QueryBuilderFilterState.js} +9 -70
- package/lib/stores/filter/QueryBuilderFilterState.js.map +1 -0
- package/lib/stores/filter/QueryBuilderValueSpecificationBuilder.d.ts +19 -0
- package/lib/stores/filter/QueryBuilderValueSpecificationBuilder.d.ts.map +1 -0
- package/lib/stores/filter/QueryBuilderValueSpecificationBuilder.js +78 -0
- package/lib/stores/filter/QueryBuilderValueSpecificationBuilder.js.map +1 -0
- package/lib/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperatorHelper.d.ts +2 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperatorHelper.d.ts.map +1 -0
- package/lib/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperatorHelper.js +3 -3
- package/lib/stores/filter/operators/QueryBuilderFilterOperatorHelper.js.map +1 -0
- package/lib/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperator_Contain.d.ts +2 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.d.ts.map +1 -0
- package/lib/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperator_Contain.js +3 -4
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js.map +1 -0
- package/lib/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperator_EndWith.d.ts +2 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.d.ts.map +1 -0
- package/lib/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperator_EndWith.js +3 -4
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js.map +1 -0
- package/lib/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperator_Equal.d.ts +2 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.d.ts.map +1 -0
- package/lib/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperator_Equal.js +4 -5
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js.map +1 -0
- package/lib/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperator_GreaterThan.d.ts +2 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.d.ts.map +1 -0
- package/lib/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperator_GreaterThan.js +4 -5
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.js.map +1 -0
- package/lib/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperator_GreaterThanEqual.d.ts +2 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts.map +1 -0
- package/lib/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperator_GreaterThanEqual.js +4 -5
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js.map +1 -0
- package/lib/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperator_In.d.ts +2 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.d.ts.map +1 -0
- package/lib/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperator_In.js +3 -3
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js.map +1 -0
- package/lib/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperator_IsEmpty.d.ts +2 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.d.ts.map +1 -0
- package/lib/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperator_IsEmpty.js +3 -3
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js.map +1 -0
- package/lib/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperator_LessThan.d.ts +2 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.d.ts.map +1 -0
- package/lib/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperator_LessThan.js +4 -5
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.js.map +1 -0
- package/lib/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperator_LessThanEqual.d.ts +2 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.d.ts.map +1 -0
- package/lib/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperator_LessThanEqual.js +4 -5
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js.map +1 -0
- package/lib/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperator_StartWith.d.ts +2 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.d.ts.map +1 -0
- package/lib/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperator_StartWith.js +3 -4
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js.map +1 -0
- package/package.json +16 -17
- package/src/application/LegendQueryApplicationConfig.ts +1 -6
- package/src/components/LegendQueryApplication.tsx +10 -27
- package/src/components/LegendQueryBaseStoreProvider.tsx +0 -3
- package/src/components/QueryBuilder.tsx +19 -12
- package/src/components/QueryBuilderParameterPanel.tsx +1 -0
- package/src/components/QueryBuilderPropertyExpressionEditor.tsx +2 -2
- package/src/components/QueryBuilderResultPanel.tsx +10 -7
- package/src/components/QueryBuilderSetupPanel.tsx +1 -1
- package/src/components/QueryBuilderTextEditor.tsx +1 -1
- package/src/components/QueryEditorComponentTestUtils.tsx +5 -17
- package/src/components/QueryEditorStoreProvider.tsx +0 -7
- package/src/components/QuerySetupStoreProvider.tsx +0 -3
- package/src/components/{QueryBuilderExplorerPanel.tsx → explorer/QueryBuilderExplorerPanel.tsx} +18 -92
- package/src/components/{QueryBuilderFunctionsExplorerPanel.tsx → explorer/QueryBuilderFunctionsExplorerPanel.tsx} +2 -2
- package/src/components/{QueryBuilderMilestoneEditor.tsx → explorer/QueryBuilderMilestoneEditor.tsx} +4 -4
- package/src/components/{QueryBuilderPropertySearchPanel.tsx → explorer/QueryBuilderPropertySearchPanel.tsx} +6 -6
- package/src/components/{QueryBuilderFetchStructurePanel.tsx → fetch-structure/QueryBuilderFetchStructurePanel.tsx} +23 -14
- package/src/components/{QueryBuilderGraphFetchTreePanel.tsx → fetch-structure/QueryBuilderGraphFetchTreePanel.tsx} +6 -6
- package/src/components/{QueryBuilderPostFilterPanel.tsx → fetch-structure/QueryBuilderPostFilterPanel.tsx} +26 -30
- package/src/components/{QueryBuilderProjectionPanel.tsx → fetch-structure/QueryBuilderProjectionPanel.tsx} +13 -15
- package/src/components/{QueryBuilderResultModifierPanel.tsx → fetch-structure/QueryBuilderResultModifierPanel.tsx} +16 -8
- package/src/components/{QueryBuilderFilterPanel.tsx → filter/QueryBuilderFilterPanel.tsx} +12 -19
- package/src/components/{QueryBuilderLambdaEditor.tsx → shared/QueryBuilderLambdaEditor.tsx} +1 -1
- package/src/components/{QueryBuilderPanelIssueCountBadge.tsx → shared/QueryBuilderPanelIssueCountBadge.tsx} +0 -0
- package/src/components/{QueryBuilderPropertyInfoTooltip.tsx → shared/QueryBuilderPropertyInfoTooltip.tsx} +0 -0
- package/src/index.ts +0 -4
- package/src/stores/LegendQueryBaseStore.ts +1 -14
- package/src/stores/QueryBuilderGroupOperationHelper.ts +54 -0
- package/src/stores/QueryBuilderPreviewDataHelper.ts +17 -21
- package/src/stores/QueryBuilderPropertyEditorState.ts +6 -3
- package/src/stores/QueryBuilderResultState.ts +1 -1
- package/src/stores/QueryBuilderState.ts +22 -53
- package/src/stores/QueryBuilderTestUtils.ts +4 -1
- package/src/stores/QueryBuilderTypeaheadHelper.ts +31 -32
- package/src/stores/{QueryBuilderLambdaBuilder.ts → QueryBuilderValueSpecificationBuilder.ts} +331 -347
- package/src/stores/{QueryBuilderOperatorsHelper.ts → QueryBuilderValueSpecificationHelper.ts} +66 -47
- package/src/stores/{QueryBuilderLambdaProcessor.ts → QueryBuilderValueSpecificationProcessor.ts} +20 -13
- package/src/stores/QueryEditorStore.ts +3 -10
- package/src/stores/QueryEditorStoreTestUtils.ts +0 -1
- package/src/stores/QuerySetupStore.ts +0 -4
- package/src/stores/{QueryBuilderExplorerState.ts → explorer/QueryBuilderExplorerState.ts} +143 -3
- package/src/stores/{QueryBuilderPropertySearchPanelState.ts → explorer/QueryBuilderPropertySearchPanelState.ts} +2 -2
- package/src/stores/{QueryFunctionsExplorerState.ts → explorer/QueryFunctionsExplorerState.ts} +1 -1
- package/src/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.ts +34 -0
- package/src/stores/fetch-structure/QueryBuilderFetchStructureState.ts +173 -0
- package/src/stores/{QueryBuilderGraphFetchTreeState.ts → fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts} +29 -25
- package/src/stores/{QueryBuilderGraphFetchTreeUtil.ts → fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.ts} +2 -2
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.ts +90 -0
- package/src/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.ts +329 -0
- package/src/stores/fetch-structure/projection/QueryBuilderProjectionState.ts +390 -0
- package/src/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +170 -0
- package/src/stores/fetch-structure/projection/QueryResultSetModifierState.ts +95 -0
- package/src/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.ts +79 -0
- package/src/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.ts +41 -0
- package/src/stores/{QueryBuilderAggregationState.ts → fetch-structure/projection/aggregation/QueryBuilderAggregationState.ts} +6 -69
- package/src/stores/{aggregateOperators → fetch-structure/projection/aggregation/operators}/QueryBuilderAggregateOperatorHelper.ts +3 -5
- package/src/stores/{aggregateOperators → fetch-structure/projection/aggregation/operators}/QueryBuilderAggregateOperator_Average.ts +4 -6
- package/src/stores/{aggregateOperators → fetch-structure/projection/aggregation/operators}/QueryBuilderAggregateOperator_Count.ts +4 -6
- package/src/stores/{aggregateOperators → fetch-structure/projection/aggregation/operators}/QueryBuilderAggregateOperator_Distinct.ts +4 -6
- package/src/stores/{aggregateOperators → fetch-structure/projection/aggregation/operators}/QueryBuilderAggregateOperator_DistinctCount.ts +4 -6
- package/src/stores/{aggregateOperators → fetch-structure/projection/aggregation/operators}/QueryBuilderAggregateOperator_JoinString.ts +4 -6
- package/src/stores/{aggregateOperators → fetch-structure/projection/aggregation/operators}/QueryBuilderAggregateOperator_Max.ts +4 -6
- package/src/stores/{aggregateOperators → fetch-structure/projection/aggregation/operators}/QueryBuilderAggregateOperator_Min.ts +4 -6
- package/src/stores/{aggregateOperators → fetch-structure/projection/aggregation/operators}/QueryBuilderAggregateOperator_StdDev_Population.ts +4 -6
- package/src/stores/{aggregateOperators → fetch-structure/projection/aggregation/operators}/QueryBuilderAggregateOperator_StdDev_Sample.ts +4 -6
- package/src/stores/{aggregateOperators → fetch-structure/projection/aggregation/operators}/QueryBuilderAggregateOperator_Sum.ts +4 -6
- package/src/stores/{QueryBuilderPostFilterOperator.ts → fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.ts} +0 -0
- package/src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.ts +65 -0
- package/src/stores/{QueryBuilderPostFilterState.ts → fetch-structure/projection/post-filter/QueryBuilderPostFilterState.ts} +35 -28
- package/src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.ts +131 -0
- package/src/stores/{QueryBuilderPostFilterProcessor.ts → fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationProcessor.ts} +13 -11
- package/src/stores/{postFilterOperators → fetch-structure/projection/post-filter/operators}/QueryBuilderPostFilterOperatorHelper.ts +5 -5
- package/src/stores/{postFilterOperators → fetch-structure/projection/post-filter/operators}/QueryBuilderPostFilterOperator_Contain.ts +12 -12
- package/src/stores/{postFilterOperators → fetch-structure/projection/post-filter/operators}/QueryBuilderPostFilterOperator_EndWith.ts +12 -12
- package/src/stores/{postFilterOperators → fetch-structure/projection/post-filter/operators}/QueryBuilderPostFilterOperator_Equal.ts +17 -17
- package/src/stores/{postFilterOperators → fetch-structure/projection/post-filter/operators}/QueryBuilderPostFilterOperator_GreaterThan.ts +12 -12
- package/src/stores/{postFilterOperators → fetch-structure/projection/post-filter/operators}/QueryBuilderPostFilterOperator_GreaterThanEqual.ts +2 -2
- package/src/stores/{postFilterOperators → fetch-structure/projection/post-filter/operators}/QueryBuilderPostFilterOperator_In.ts +12 -12
- package/src/stores/{postFilterOperators → fetch-structure/projection/post-filter/operators}/QueryBuilderPostFilterOperator_IsEmpty.ts +3 -3
- package/src/stores/{postFilterOperators → fetch-structure/projection/post-filter/operators}/QueryBuilderPostFilterOperator_LessThan.ts +12 -12
- package/src/stores/{postFilterOperators → fetch-structure/projection/post-filter/operators}/QueryBuilderPostFilterOperator_LessThanEqual.ts +2 -2
- package/src/stores/{postFilterOperators → fetch-structure/projection/post-filter/operators}/QueryBuilderPostFilterOperator_StartWith.ts +12 -12
- package/src/stores/filter/QueryBuilderFilterOperator.ts +52 -0
- package/src/stores/filter/QueryBuilderFilterOperatorLoader.ts +65 -0
- package/src/stores/{QueryBuilderFilterState.ts → filter/QueryBuilderFilterState.ts} +26 -148
- package/src/stores/filter/QueryBuilderValueSpecificationBuilder.ts +120 -0
- package/src/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperatorHelper.ts +4 -4
- package/src/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperator_Contain.ts +8 -8
- package/src/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperator_EndWith.ts +8 -8
- package/src/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperator_Equal.ts +10 -10
- package/src/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperator_GreaterThan.ts +9 -9
- package/src/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperator_GreaterThanEqual.ts +9 -9
- package/src/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperator_In.ts +7 -7
- package/src/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperator_IsEmpty.ts +6 -6
- package/src/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperator_LessThan.ts +9 -9
- package/src/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperator_LessThanEqual.ts +9 -9
- package/src/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperator_StartWith.ts +7 -7
- package/tsconfig.json +75 -65
- package/lib/components/QueryBuilderExplorerPanel.d.ts.map +0 -1
- package/lib/components/QueryBuilderExplorerPanel.js.map +0 -1
- package/lib/components/QueryBuilderFetchStructurePanel.d.ts.map +0 -1
- package/lib/components/QueryBuilderFetchStructurePanel.js.map +0 -1
- package/lib/components/QueryBuilderFilterPanel.d.ts.map +0 -1
- package/lib/components/QueryBuilderFilterPanel.js.map +0 -1
- package/lib/components/QueryBuilderFunctionsExplorerPanel.d.ts.map +0 -1
- package/lib/components/QueryBuilderFunctionsExplorerPanel.js.map +0 -1
- package/lib/components/QueryBuilderGraphFetchTreePanel.d.ts.map +0 -1
- package/lib/components/QueryBuilderGraphFetchTreePanel.js.map +0 -1
- package/lib/components/QueryBuilderLambdaEditor.d.ts.map +0 -1
- package/lib/components/QueryBuilderLambdaEditor.js.map +0 -1
- package/lib/components/QueryBuilderMilestoneEditor.d.ts.map +0 -1
- package/lib/components/QueryBuilderMilestoneEditor.js.map +0 -1
- package/lib/components/QueryBuilderPanelIssueCountBadge.d.ts.map +0 -1
- package/lib/components/QueryBuilderPanelIssueCountBadge.js.map +0 -1
- package/lib/components/QueryBuilderPostFilterPanel.d.ts.map +0 -1
- package/lib/components/QueryBuilderPostFilterPanel.js.map +0 -1
- package/lib/components/QueryBuilderProjectionPanel.d.ts.map +0 -1
- package/lib/components/QueryBuilderProjectionPanel.js.map +0 -1
- package/lib/components/QueryBuilderPropertyInfoTooltip.d.ts.map +0 -1
- package/lib/components/QueryBuilderPropertyInfoTooltip.js.map +0 -1
- package/lib/components/QueryBuilderPropertySearchPanel.d.ts.map +0 -1
- package/lib/components/QueryBuilderPropertySearchPanel.js.map +0 -1
- package/lib/components/QueryBuilderResultModifierPanel.d.ts.map +0 -1
- package/lib/components/QueryBuilderResultModifierPanel.js.map +0 -1
- package/lib/stores/QueryBuilderAggregationState.d.ts.map +0 -1
- package/lib/stores/QueryBuilderAggregationState.js.map +0 -1
- package/lib/stores/QueryBuilderExplorerState.d.ts.map +0 -1
- package/lib/stores/QueryBuilderExplorerState.js.map +0 -1
- package/lib/stores/QueryBuilderFetchStructureState.d.ts.map +0 -1
- package/lib/stores/QueryBuilderFetchStructureState.js +0 -58
- package/lib/stores/QueryBuilderFetchStructureState.js.map +0 -1
- package/lib/stores/QueryBuilderFilterState.d.ts.map +0 -1
- package/lib/stores/QueryBuilderFilterState.js.map +0 -1
- package/lib/stores/QueryBuilderGraphFetchTreeState.d.ts.map +0 -1
- package/lib/stores/QueryBuilderGraphFetchTreeState.js.map +0 -1
- package/lib/stores/QueryBuilderGraphFetchTreeUtil.d.ts.map +0 -1
- package/lib/stores/QueryBuilderGraphFetchTreeUtil.js.map +0 -1
- package/lib/stores/QueryBuilderLambdaBuilder.d.ts.map +0 -1
- package/lib/stores/QueryBuilderLambdaBuilder.js.map +0 -1
- package/lib/stores/QueryBuilderLambdaProcessor.d.ts.map +0 -1
- package/lib/stores/QueryBuilderLambdaProcessor.js.map +0 -1
- package/lib/stores/QueryBuilderOperatorLoader.d.ts +0 -47
- package/lib/stores/QueryBuilderOperatorLoader.d.ts.map +0 -1
- package/lib/stores/QueryBuilderOperatorLoader.js +0 -94
- package/lib/stores/QueryBuilderOperatorLoader.js.map +0 -1
- package/lib/stores/QueryBuilderOperatorsHelper.d.ts.map +0 -1
- package/lib/stores/QueryBuilderOperatorsHelper.js.map +0 -1
- package/lib/stores/QueryBuilderPostFilterOperator.d.ts.map +0 -1
- package/lib/stores/QueryBuilderPostFilterOperator.js.map +0 -1
- package/lib/stores/QueryBuilderPostFilterProcessor.d.ts.map +0 -1
- package/lib/stores/QueryBuilderPostFilterProcessor.js.map +0 -1
- package/lib/stores/QueryBuilderPostFilterState.d.ts.map +0 -1
- package/lib/stores/QueryBuilderPostFilterState.js.map +0 -1
- package/lib/stores/QueryBuilderProjectionState.d.ts.map +0 -1
- package/lib/stores/QueryBuilderProjectionState.js +0 -416
- package/lib/stores/QueryBuilderProjectionState.js.map +0 -1
- package/lib/stores/QueryBuilderPropertySearchPanelState.d.ts.map +0 -1
- package/lib/stores/QueryBuilderPropertySearchPanelState.js.map +0 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts +0 -19
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts.map +0 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js +0 -50
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js.map +0 -1
- package/lib/stores/QueryFunctionsExplorerState.d.ts.map +0 -1
- package/lib/stores/QueryFunctionsExplorerState.js.map +0 -1
- package/lib/stores/QueryResultSetModifierState.d.ts.map +0 -1
- package/lib/stores/QueryResultSetModifierState.js +0 -165
- package/lib/stores/QueryResultSetModifierState.js.map +0 -1
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperatorHelper.d.ts.map +0 -1
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperatorHelper.js.map +0 -1
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Average.d.ts.map +0 -1
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Average.js.map +0 -1
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Count.d.ts.map +0 -1
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Count.js.map +0 -1
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Distinct.d.ts.map +0 -1
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Distinct.js.map +0 -1
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_DistinctCount.d.ts.map +0 -1
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_DistinctCount.js.map +0 -1
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_JoinString.d.ts.map +0 -1
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_JoinString.js.map +0 -1
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Max.d.ts.map +0 -1
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Max.js.map +0 -1
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Min.d.ts.map +0 -1
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Min.js.map +0 -1
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Population.d.ts.map +0 -1
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Population.js.map +0 -1
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts.map +0 -1
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Sample.js.map +0 -1
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Sum.d.ts.map +0 -1
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Sum.js.map +0 -1
- package/lib/stores/filterOperators/QueryBuilderFilterOperatorHelper.d.ts.map +0 -1
- package/lib/stores/filterOperators/QueryBuilderFilterOperatorHelper.js.map +0 -1
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_Contain.d.ts.map +0 -1
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_Contain.js.map +0 -1
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_EndWith.d.ts.map +0 -1
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_EndWith.js.map +0 -1
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_Equal.d.ts.map +0 -1
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_Equal.js.map +0 -1
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_GreaterThan.d.ts.map +0 -1
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_GreaterThan.js.map +0 -1
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts.map +0 -1
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_GreaterThanEqual.js.map +0 -1
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_In.d.ts.map +0 -1
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_In.js.map +0 -1
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_IsEmpty.d.ts.map +0 -1
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_IsEmpty.js.map +0 -1
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_LessThan.d.ts.map +0 -1
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_LessThan.js.map +0 -1
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_LessThanEqual.d.ts.map +0 -1
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_LessThanEqual.js.map +0 -1
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_StartWith.d.ts.map +0 -1
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_StartWith.js.map +0 -1
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperatorHelper.d.ts.map +0 -1
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperatorHelper.js.map +0 -1
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_Contain.d.ts.map +0 -1
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_Contain.js.map +0 -1
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_EndWith.d.ts.map +0 -1
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_EndWith.js.map +0 -1
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_Equal.d.ts.map +0 -1
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_Equal.js.map +0 -1
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThan.d.ts.map +0 -1
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThan.js.map +0 -1
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts.map +0 -1
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThanEqual.js.map +0 -1
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_In.d.ts.map +0 -1
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_In.js.map +0 -1
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_IsEmpty.d.ts.map +0 -1
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_IsEmpty.js.map +0 -1
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThan.d.ts.map +0 -1
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThan.js.map +0 -1
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts.map +0 -1
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThanEqual.js.map +0 -1
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_StartWith.d.ts.map +0 -1
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_StartWith.js.map +0 -1
- package/src/stores/QueryBuilderFetchStructureState.ts +0 -75
- package/src/stores/QueryBuilderOperatorLoader.ts +0 -133
- package/src/stores/QueryBuilderProjectionState.ts +0 -783
- package/src/stores/QueryBuilderValueSpecificationBuilderHelper.ts +0 -78
- package/src/stores/QueryResultSetModifierState.ts +0 -307
@@ -38,7 +38,7 @@ import {
|
|
38
38
|
type QueryBuilderExplorerTreePropertyNodeData,
|
39
39
|
buildPropertyExpressionFromExplorerTreeNodeData,
|
40
40
|
QUERY_BUILDER_EXPLORER_TREE_DND_TYPE,
|
41
|
-
} from '
|
41
|
+
} from '../../stores/explorer/QueryBuilderExplorerState.js';
|
42
42
|
import { type DropTargetMonitor, useDrag, useDrop } from 'react-dnd';
|
43
43
|
import {
|
44
44
|
type QueryBuilderProjectionColumnDragSource,
|
@@ -46,22 +46,19 @@ import {
|
|
46
46
|
QueryBuilderDerivationProjectionColumnState,
|
47
47
|
QueryBuilderSimpleProjectionColumnState,
|
48
48
|
QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE,
|
49
|
-
} from '
|
50
|
-
import { QueryBuilderPropertyExpressionBadge } from '
|
51
|
-
import type { QueryBuilderState } from '
|
49
|
+
} from '../../stores/fetch-structure/projection/QueryBuilderProjectionColumnState.js';
|
50
|
+
import { QueryBuilderPropertyExpressionBadge } from '../QueryBuilderPropertyExpressionEditor.js';
|
51
|
+
import type { QueryBuilderState } from '../../stores/QueryBuilderState.js';
|
52
52
|
import { QueryResultModifierModal } from './QueryBuilderResultModifierPanel.js';
|
53
|
-
import { QUERY_BUILDER_TEST_ID } from '
|
54
|
-
import {
|
55
|
-
type QueryBuilderAggregateOperator,
|
56
|
-
QueryBuilderAggregateColumnState,
|
57
|
-
} from '../stores/QueryBuilderAggregationState.js';
|
53
|
+
import { QUERY_BUILDER_TEST_ID } from '../QueryBuilder_TestID.js';
|
54
|
+
import { QueryBuilderAggregateColumnState } from '../../stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.js';
|
58
55
|
import { flowResult } from 'mobx';
|
59
|
-
import { QueryBuilderLambdaEditor } from '
|
56
|
+
import { QueryBuilderLambdaEditor } from '../shared/QueryBuilderLambdaEditor.js';
|
60
57
|
import { useApplicationStore } from '@finos/legend-application';
|
61
58
|
import {
|
62
59
|
type QueryBuilderParameterDragSource,
|
63
60
|
QUERY_BUILDER_PARAMETER_DND_TYPE,
|
64
|
-
} from '
|
61
|
+
} from '../../stores/QueryParametersState.js';
|
65
62
|
import {
|
66
63
|
type ConcreteFunctionDefinition,
|
67
64
|
generateFunctionCallString,
|
@@ -71,10 +68,11 @@ import {
|
|
71
68
|
import {
|
72
69
|
type QueryBuilderFunctionsExplorerDragSource,
|
73
70
|
QUERY_BUILDER_FUNCTION_DND_TYPE,
|
74
|
-
} from '
|
75
|
-
import { DEFAULT_LAMBDA_VARIABLE_NAME } from '
|
76
|
-
import { QueryBuilderPostFilterTreeConditionNodeData } from '
|
71
|
+
} from '../../stores/explorer/QueryFunctionsExplorerState.js';
|
72
|
+
import { DEFAULT_LAMBDA_VARIABLE_NAME } from '../../QueryBuilder_Const.js';
|
73
|
+
import { QueryBuilderPostFilterTreeConditionNodeData } from '../../stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.js';
|
77
74
|
import { filterByType } from '@finos/legend-shared';
|
75
|
+
import type { QueryBuilderAggregateOperator } from '../../stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.js';
|
78
76
|
|
79
77
|
const QueryBuilderProjectionColumnContextMenu = observer(
|
80
78
|
forwardRef<
|
@@ -241,7 +239,7 @@ const QueryBuilderProjectionColumnEditor = observer(
|
|
241
239
|
const projectionState =
|
242
240
|
queryBuilderState.fetchStructureState.projectionState;
|
243
241
|
const postFilterColumnStates = Array.from(
|
244
|
-
|
242
|
+
projectionState.postFilterState.nodes.values(),
|
245
243
|
)
|
246
244
|
.filter(filterByType(QueryBuilderPostFilterTreeConditionNodeData))
|
247
245
|
.map((n) => n.condition.columnState);
|
@@ -28,9 +28,9 @@ import {
|
|
28
28
|
import {
|
29
29
|
COLUMN_SORT_TYPE,
|
30
30
|
SortColumnState,
|
31
|
-
} from '
|
32
|
-
import type { QueryBuilderState } from '
|
33
|
-
import type { QueryBuilderProjectionColumnState } from '
|
31
|
+
} from '../../stores/fetch-structure/projection/QueryResultSetModifierState.js';
|
32
|
+
import type { QueryBuilderState } from '../../stores/QueryBuilderState.js';
|
33
|
+
import type { QueryBuilderProjectionColumnState } from '../../stores/fetch-structure/projection/QueryBuilderProjectionColumnState.js';
|
34
34
|
import { guaranteeNonNullable } from '@finos/legend-shared';
|
35
35
|
import { useApplicationStore } from '@finos/legend-application';
|
36
36
|
|
@@ -43,7 +43,9 @@ const ColumnSortEditor = observer(
|
|
43
43
|
const applicationStore = useApplicationStore();
|
44
44
|
const projectionState =
|
45
45
|
queryBuilderState.fetchStructureState.projectionState;
|
46
|
-
const sortColumns =
|
46
|
+
const sortColumns =
|
47
|
+
queryBuilderState.fetchStructureState.projectionState
|
48
|
+
.resultSetModifierState.sortColumns;
|
47
49
|
const projectionOptions = projectionState.columns
|
48
50
|
.filter(
|
49
51
|
(projectionCol) =>
|
@@ -74,7 +76,10 @@ const ColumnSortEditor = observer(
|
|
74
76
|
);
|
75
77
|
};
|
76
78
|
const deleteColumnSort = (): void =>
|
77
|
-
queryBuilderState.resultSetModifierState.deleteSortColumn(
|
79
|
+
queryBuilderState.fetchStructureState.projectionState.resultSetModifierState.deleteSortColumn(
|
80
|
+
columnSort,
|
81
|
+
);
|
82
|
+
|
78
83
|
return (
|
79
84
|
<div className="panel__content__form__section__list__item query-builder__projection__options__sort">
|
80
85
|
<CustomSelectorInput
|
@@ -112,7 +117,9 @@ const ColumnSortEditor = observer(
|
|
112
117
|
const ColumnsSortEditor = observer(
|
113
118
|
(props: { queryBuilderState: QueryBuilderState }) => {
|
114
119
|
const { queryBuilderState } = props;
|
115
|
-
const resultModifier =
|
120
|
+
const resultModifier =
|
121
|
+
queryBuilderState.fetchStructureState.projectionState
|
122
|
+
.resultSetModifierState;
|
116
123
|
const sortColumns = resultModifier.sortColumns;
|
117
124
|
const projectionState =
|
118
125
|
queryBuilderState.fetchStructureState.projectionState;
|
@@ -128,7 +135,6 @@ const ColumnsSortEditor = observer(
|
|
128
135
|
const addValue = (): void => {
|
129
136
|
if (projectionOptions.length > 0) {
|
130
137
|
const sortColumn = new SortColumnState(
|
131
|
-
queryBuilderState,
|
132
138
|
guaranteeNonNullable(projectionOptions[0]).value,
|
133
139
|
);
|
134
140
|
resultModifier.addSortColumn(sortColumn);
|
@@ -173,7 +179,9 @@ const ColumnsSortEditor = observer(
|
|
173
179
|
export const QueryResultModifierModal = observer(
|
174
180
|
(props: { queryBuilderState: QueryBuilderState }) => {
|
175
181
|
const { queryBuilderState } = props;
|
176
|
-
const resultModifier =
|
182
|
+
const resultModifier =
|
183
|
+
queryBuilderState.fetchStructureState.projectionState
|
184
|
+
.resultSetModifierState;
|
177
185
|
const limitResults = resultModifier.limit;
|
178
186
|
const distinct = resultModifier.distinct;
|
179
187
|
const close = (): void => resultModifier.setShowModal(false);
|
@@ -47,28 +47,27 @@ import {
|
|
47
47
|
type QueryBuilderFilterConditionDragSource,
|
48
48
|
type QueryBuilderFilterDropTarget,
|
49
49
|
type QueryBuilderFilterTreeNodeData,
|
50
|
-
type QueryBuilderFilterOperator,
|
51
50
|
QUERY_BUILDER_FILTER_DND_TYPE,
|
52
51
|
FilterConditionState,
|
53
52
|
QueryBuilderFilterTreeConditionNodeData,
|
54
53
|
QueryBuilderFilterTreeBlankConditionNodeData,
|
55
54
|
QueryBuilderFilterTreeGroupNodeData,
|
56
|
-
} from '
|
55
|
+
} from '../../stores/filter/QueryBuilderFilterState.js';
|
57
56
|
import { useDrag, useDrop } from 'react-dnd';
|
58
57
|
import {
|
59
58
|
type QueryBuilderExplorerTreeDragSource,
|
60
59
|
type QueryBuilderExplorerTreePropertyNodeData,
|
61
60
|
buildPropertyExpressionFromExplorerTreeNodeData,
|
62
61
|
QUERY_BUILDER_EXPLORER_TREE_DND_TYPE,
|
63
|
-
} from '
|
64
|
-
import { QueryBuilderPropertyExpressionBadge } from '
|
65
|
-
import type { QueryBuilderState } from '
|
62
|
+
} from '../../stores/explorer/QueryBuilderExplorerState.js';
|
63
|
+
import { QueryBuilderPropertyExpressionBadge } from '../QueryBuilderPropertyExpressionEditor.js';
|
64
|
+
import type { QueryBuilderState } from '../../stores/QueryBuilderState.js';
|
66
65
|
import {
|
67
66
|
assertErrorThrown,
|
68
67
|
debounce,
|
69
68
|
UnsupportedOperationError,
|
70
69
|
} from '@finos/legend-shared';
|
71
|
-
import { QUERY_BUILDER_TEST_ID } from '
|
70
|
+
import { QUERY_BUILDER_TEST_ID } from '../QueryBuilder_TestID.js';
|
72
71
|
import {
|
73
72
|
useApplicationStore,
|
74
73
|
BasicValueSpecificationEditor,
|
@@ -76,17 +75,16 @@ import {
|
|
76
75
|
import {
|
77
76
|
type QueryBuilderParameterDragSource,
|
78
77
|
QUERY_BUILDER_PARAMETER_DND_TYPE,
|
79
|
-
} from '
|
80
|
-
import {
|
81
|
-
isTypeCompatibleWithConditionValueType,
|
82
|
-
QUERY_BUILDER_GROUP_OPERATION,
|
83
|
-
} from '../stores/QueryBuilderOperatorsHelper.js';
|
78
|
+
} from '../../stores/QueryParametersState.js';
|
84
79
|
import type { ValueSpecification } from '@finos/legend-graph';
|
85
80
|
import {
|
86
81
|
type QueryBuilderProjectionColumnDragSource,
|
87
82
|
QueryBuilderSimpleProjectionColumnState,
|
88
83
|
QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE,
|
89
|
-
} from '
|
84
|
+
} from '../../stores/fetch-structure/projection/QueryBuilderProjectionColumnState.js';
|
85
|
+
import type { QueryBuilderFilterOperator } from '../../stores/filter/QueryBuilderFilterOperator.js';
|
86
|
+
import { isTypeCompatibleForAssignment } from '../../stores/QueryBuilderValueSpecificationHelper.js';
|
87
|
+
import { QUERY_BUILDER_GROUP_OPERATION } from '../../stores/QueryBuilderGroupOperationHelper.js';
|
90
88
|
|
91
89
|
const QueryBuilderFilterGroupConditionEditor = observer(
|
92
90
|
(props: {
|
@@ -166,12 +164,7 @@ const QueryBuilderFilterConditionEditor = observer(
|
|
166
164
|
const conditionValueType =
|
167
165
|
node.condition.propertyExpressionState.propertyExpression.func
|
168
166
|
.genericType.value.rawType;
|
169
|
-
if (
|
170
|
-
isTypeCompatibleWithConditionValueType(
|
171
|
-
parameterType,
|
172
|
-
conditionValueType,
|
173
|
-
)
|
174
|
-
) {
|
167
|
+
if (isTypeCompatibleForAssignment(parameterType, conditionValueType)) {
|
175
168
|
node.condition.setValue(item.variable.parameter);
|
176
169
|
} else {
|
177
170
|
applicationStore.notifyWarning(
|
@@ -770,7 +763,7 @@ export const QueryBuilderFilterPanel = observer(
|
|
770
763
|
{ isDragOver: boolean }
|
771
764
|
>(
|
772
765
|
() => ({
|
773
|
-
accept: queryBuilderState.mode.
|
766
|
+
accept: queryBuilderState.mode.isDnDFetchStructureToFilterSupported
|
774
767
|
? [
|
775
768
|
QUERY_BUILDER_EXPLORER_TREE_DND_TYPE.ENUM_PROPERTY,
|
776
769
|
QUERY_BUILDER_EXPLORER_TREE_DND_TYPE.PRIMITIVE_PROPERTY,
|
@@ -18,7 +18,7 @@ import { flowResult } from 'mobx';
|
|
18
18
|
import { observer } from 'mobx-react-lite';
|
19
19
|
import { type IKeyboardEvent, KeyCode } from 'monaco-editor';
|
20
20
|
import { useCallback, useMemo } from 'react';
|
21
|
-
import type { QueryBuilderState } from '
|
21
|
+
import type { QueryBuilderState } from '../../stores/QueryBuilderState.js';
|
22
22
|
import type { Type } from '@finos/legend-graph';
|
23
23
|
import {
|
24
24
|
useApplicationStore,
|
File without changes
|
File without changes
|
package/src/index.ts
CHANGED
@@ -49,7 +49,3 @@ export {
|
|
49
49
|
StandardQueryBuilderMode,
|
50
50
|
QueryBuilderState,
|
51
51
|
} from './stores/QueryBuilderState.js';
|
52
|
-
export { QueryBuilderExplorerTreeRootNodeData } from './stores/QueryBuilderExplorerState.js';
|
53
|
-
export { FETCH_STRUCTURE_MODE } from './stores/QueryBuilderFetchStructureState.js';
|
54
|
-
export { COLUMN_SORT_TYPE } from './stores/QueryResultSetModifierState.js';
|
55
|
-
export { QueryBuilderSimpleProjectionColumnState } from './stores/QueryBuilderProjectionState.js';
|
@@ -15,14 +15,10 @@
|
|
15
15
|
*/
|
16
16
|
|
17
17
|
import type { DepotServerClient } from '@finos/legend-server-depot';
|
18
|
-
import {
|
19
|
-
type ApplicationStore,
|
20
|
-
LegendApplicationSDLCSetupState,
|
21
|
-
} from '@finos/legend-application';
|
18
|
+
import type { ApplicationStore } from '@finos/legend-application';
|
22
19
|
import type { LegendQueryPluginManager } from '../application/LegendQueryPluginManager.js';
|
23
20
|
import type { LegendQueryApplicationConfig } from '../application/LegendQueryApplicationConfig.js';
|
24
21
|
import type { LegendQueryApplicationPlugin } from './LegendQueryApplicationPlugin.js';
|
25
|
-
import type { SDLCServerClient } from '@finos/legend-server-sdlc';
|
26
22
|
|
27
23
|
export type LegendQueryApplicationStore = ApplicationStore<
|
28
24
|
LegendQueryApplicationConfig,
|
@@ -33,26 +29,17 @@ export class LegendQueryBaseStore {
|
|
33
29
|
applicationStore: LegendQueryApplicationStore;
|
34
30
|
depotServerClient: DepotServerClient;
|
35
31
|
pluginManager: LegendQueryPluginManager;
|
36
|
-
applicationSDLCSetupState: LegendApplicationSDLCSetupState;
|
37
32
|
|
38
33
|
constructor(
|
39
34
|
applicationStore: LegendQueryApplicationStore,
|
40
35
|
depotServerClient: DepotServerClient,
|
41
|
-
sdlcServerClient: SDLCServerClient,
|
42
36
|
pluginManager: LegendQueryPluginManager,
|
43
37
|
) {
|
44
38
|
this.applicationStore = applicationStore;
|
45
|
-
this.applicationSDLCSetupState = new LegendApplicationSDLCSetupState(
|
46
|
-
applicationStore,
|
47
|
-
sdlcServerClient,
|
48
|
-
);
|
49
39
|
this.depotServerClient = depotServerClient;
|
50
40
|
this.pluginManager = pluginManager;
|
51
41
|
|
52
42
|
// Register plugins
|
53
|
-
this.applicationSDLCSetupState.sdlcServerClient.setTracerService(
|
54
|
-
this.applicationStore.tracerService,
|
55
|
-
);
|
56
43
|
this.depotServerClient.setTracerService(
|
57
44
|
this.applicationStore.tracerService,
|
58
45
|
);
|
@@ -0,0 +1,54 @@
|
|
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
|
+
|
17
|
+
import { matchFunctionName } from '@finos/legend-graph';
|
18
|
+
import { UnsupportedOperationError } from '@finos/legend-shared';
|
19
|
+
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../QueryBuilder_Const.js';
|
20
|
+
|
21
|
+
export enum QUERY_BUILDER_GROUP_OPERATION {
|
22
|
+
AND = 'and',
|
23
|
+
OR = 'or',
|
24
|
+
}
|
25
|
+
|
26
|
+
export const fromGroupOperation = (
|
27
|
+
operation: QUERY_BUILDER_GROUP_OPERATION,
|
28
|
+
): string => {
|
29
|
+
switch (operation) {
|
30
|
+
case QUERY_BUILDER_GROUP_OPERATION.AND:
|
31
|
+
return QUERY_BUILDER_SUPPORTED_FUNCTIONS.AND;
|
32
|
+
case QUERY_BUILDER_GROUP_OPERATION.OR:
|
33
|
+
return QUERY_BUILDER_SUPPORTED_FUNCTIONS.OR;
|
34
|
+
default:
|
35
|
+
throw new UnsupportedOperationError(
|
36
|
+
`Can't derive function name from group operation '${operation}'`,
|
37
|
+
);
|
38
|
+
}
|
39
|
+
};
|
40
|
+
|
41
|
+
export const toGroupOperation = (
|
42
|
+
functionName: string,
|
43
|
+
): QUERY_BUILDER_GROUP_OPERATION => {
|
44
|
+
if (matchFunctionName(functionName, QUERY_BUILDER_SUPPORTED_FUNCTIONS.AND)) {
|
45
|
+
return QUERY_BUILDER_GROUP_OPERATION.AND;
|
46
|
+
} else if (
|
47
|
+
matchFunctionName(functionName, QUERY_BUILDER_SUPPORTED_FUNCTIONS.OR)
|
48
|
+
) {
|
49
|
+
return QUERY_BUILDER_GROUP_OPERATION.OR;
|
50
|
+
}
|
51
|
+
throw new UnsupportedOperationError(
|
52
|
+
`Can't derive group operation from function name '${functionName}'`,
|
53
|
+
);
|
54
|
+
};
|
@@ -19,21 +19,21 @@ import type {
|
|
19
19
|
AbstractPropertyExpression,
|
20
20
|
} from '@finos/legend-graph';
|
21
21
|
import { guaranteeNonNullable } from '@finos/legend-shared';
|
22
|
-
import
|
23
|
-
import {
|
24
|
-
import {
|
25
|
-
import {
|
26
|
-
import {
|
27
|
-
import {
|
28
|
-
import {
|
29
|
-
import {
|
30
|
-
import {
|
31
|
-
import { QueryBuilderSimpleProjectionColumnState } from './QueryBuilderProjectionState.js';
|
22
|
+
import { QueryBuilderAggregateOperator_Average } from './fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.js';
|
23
|
+
import { QueryBuilderAggregateOperator_Count } from './fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.js';
|
24
|
+
import { QueryBuilderAggregateOperator_DistinctCount } from './fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js';
|
25
|
+
import { QueryBuilderAggregateOperator_Max } from './fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.js';
|
26
|
+
import { QueryBuilderAggregateOperator_Min } from './fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.js';
|
27
|
+
import { QueryBuilderAggregateOperator_StdDev_Population } from './fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js';
|
28
|
+
import { QueryBuilderAggregateOperator_StdDev_Sample } from './fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js';
|
29
|
+
import { QueryBuilderAggregateOperator_Sum } from './fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.js';
|
30
|
+
import { QueryBuilderSimpleProjectionColumnState } from './fetch-structure/projection/QueryBuilderProjectionColumnState.js';
|
32
31
|
import type { QueryBuilderState } from './QueryBuilderState.js';
|
33
32
|
import {
|
34
33
|
COLUMN_SORT_TYPE,
|
35
34
|
SortColumnState,
|
36
|
-
} from './QueryResultSetModifierState.js';
|
35
|
+
} from './fetch-structure/projection/QueryResultSetModifierState.js';
|
36
|
+
import type { QueryBuilderAggregateOperator } from './fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.js';
|
37
37
|
|
38
38
|
const PREVIEW_DATA_TAKE_LIMIT = 10;
|
39
39
|
const PREVIEW_DATA_NON_NUMERIC_VALUE_COLUMN_NAME = 'Value';
|
@@ -90,7 +90,7 @@ const createProjectionColumn = (
|
|
90
90
|
const createQueryBuilderState = (
|
91
91
|
queryBuilderState: QueryBuilderState,
|
92
92
|
): QueryBuilderState => {
|
93
|
-
const builderState = queryBuilderState.
|
93
|
+
const builderState = queryBuilderState.cloneQueryBuilderState();
|
94
94
|
builderState.querySetupState = queryBuilderState.querySetupState;
|
95
95
|
return builderState;
|
96
96
|
};
|
@@ -191,15 +191,11 @@ export const buildNonNumericPreviewDataQuery = (
|
|
191
191
|
valueCountProjectionState,
|
192
192
|
);
|
193
193
|
// result set
|
194
|
-
builderState.resultSetModifierState.limit =
|
195
|
-
|
196
|
-
|
197
|
-
valueCountProjectionState,
|
198
|
-
);
|
194
|
+
builderState.fetchStructureState.projectionState.resultSetModifierState.limit =
|
195
|
+
PREVIEW_DATA_TAKE_LIMIT;
|
196
|
+
const sortValueCount = new SortColumnState(valueCountProjectionState);
|
199
197
|
sortValueCount.sortType = COLUMN_SORT_TYPE.DESC;
|
200
|
-
builderState.resultSetModifierState.sortColumns =
|
201
|
-
sortValueCount,
|
202
|
-
new SortColumnState(builderState, valueProjectionColState),
|
203
|
-
];
|
198
|
+
builderState.fetchStructureState.projectionState.resultSetModifierState.sortColumns =
|
199
|
+
[sortValueCount, new SortColumnState(valueProjectionColState)];
|
204
200
|
return builderState.resultState.buildExecutionRawLambda();
|
205
201
|
};
|
@@ -52,8 +52,9 @@ import {
|
|
52
52
|
DEFAULT_PROCESSING_DATE_MILESTONING_PARAMETER_NAME,
|
53
53
|
INTERNAL__PropagatedValue,
|
54
54
|
Association,
|
55
|
+
getGeneratedMilestonedPropertiesForAssociation,
|
55
56
|
} from '@finos/legend-graph';
|
56
|
-
import { generateDefaultValueForPrimitiveType } from './
|
57
|
+
import { generateDefaultValueForPrimitiveType } from './QueryBuilderValueSpecificationHelper.js';
|
57
58
|
import type { QueryBuilderState } from './QueryBuilderState.js';
|
58
59
|
import type { QueryBuilderSetupState } from './QueryBuilderSetupState.js';
|
59
60
|
import { functionExpression_setParametersValues } from '@finos/legend-application';
|
@@ -67,9 +68,11 @@ export const getDerivedPropertyMilestoningSteoreotype = (
|
|
67
68
|
if (owner instanceof Class) {
|
68
69
|
return getMilestoneTemporalStereotype(owner, graph);
|
69
70
|
} else if (owner instanceof Association) {
|
70
|
-
|
71
|
+
const generatedMilestonedProperties =
|
72
|
+
getGeneratedMilestonedPropertiesForAssociation(owner, property);
|
73
|
+
if (generatedMilestonedProperties.length) {
|
71
74
|
const ownerClass =
|
72
|
-
|
75
|
+
generatedMilestonedProperties[0]?.genericType.value.rawType;
|
73
76
|
return getMilestoneTemporalStereotype(
|
74
77
|
guaranteeType(ownerClass, Class),
|
75
78
|
graph,
|
@@ -36,7 +36,7 @@ import {
|
|
36
36
|
RawExecutionResult,
|
37
37
|
buildRawLambdaFromLambdaFunction,
|
38
38
|
} from '@finos/legend-graph';
|
39
|
-
import { buildLambdaFunction } from './
|
39
|
+
import { buildLambdaFunction } from './QueryBuilderValueSpecificationBuilder.js';
|
40
40
|
import {
|
41
41
|
buildParametersLetLambdaFunc,
|
42
42
|
ExecutionPlanState,
|
@@ -24,23 +24,19 @@ import {
|
|
24
24
|
filterByType,
|
25
25
|
hashObject,
|
26
26
|
} from '@finos/legend-shared';
|
27
|
-
import {
|
28
|
-
|
29
|
-
QueryBuilderFilterState,
|
30
|
-
} from './QueryBuilderFilterState.js';
|
31
|
-
import { QueryBuilderFetchStructureState } from './QueryBuilderFetchStructureState.js';
|
32
|
-
import { QueryResultSetModifierState } from './QueryResultSetModifierState.js';
|
27
|
+
import { QueryBuilderFilterState } from './filter/QueryBuilderFilterState.js';
|
28
|
+
import { QueryBuilderFetchStructureState } from './fetch-structure/QueryBuilderFetchStructureState.js';
|
33
29
|
import {
|
34
30
|
QueryTextEditorMode,
|
35
31
|
QueryTextEditorState,
|
36
32
|
} from './QueryTextEditorState.js';
|
37
33
|
import { QueryBuilderSetupState } from './QueryBuilderSetupState.js';
|
38
|
-
import { QueryBuilderExplorerState } from './QueryBuilderExplorerState.js';
|
34
|
+
import { QueryBuilderExplorerState } from './explorer/QueryBuilderExplorerState.js';
|
39
35
|
import { QueryBuilderResultState } from './QueryBuilderResultState.js';
|
40
36
|
import {
|
41
37
|
processQueryBuilderLambdaFunction,
|
42
38
|
processQueryParameters,
|
43
|
-
} from './
|
39
|
+
} from './QueryBuilderValueSpecificationProcessor.js';
|
44
40
|
import { QueryBuilderUnsupportedState } from './QueryBuilderUnsupportedState.js';
|
45
41
|
import {
|
46
42
|
type Class,
|
@@ -62,20 +58,16 @@ import {
|
|
62
58
|
buildLambdaVariableExpressions,
|
63
59
|
buildRawLambdaFromLambdaFunction,
|
64
60
|
} from '@finos/legend-graph';
|
65
|
-
import { buildLambdaFunction } from './
|
61
|
+
import { buildLambdaFunction } from './QueryBuilderValueSpecificationBuilder.js';
|
66
62
|
import {
|
67
63
|
LambdaParameterState,
|
68
64
|
type GenericLegendApplicationStore,
|
69
65
|
} from '@finos/legend-application';
|
70
|
-
import {
|
71
|
-
import type { QueryBuilderPostFilterOperator } from './QueryBuilderPostFilterOperator.js';
|
72
|
-
import { QueryFunctionsExplorerState } from './QueryFunctionsExplorerState.js';
|
66
|
+
import { QueryFunctionsExplorerState } from './explorer/QueryFunctionsExplorerState.js';
|
73
67
|
import { QueryParametersState } from './QueryParametersState.js';
|
74
|
-
import {
|
75
|
-
|
76
|
-
|
77
|
-
POST_FILTER_OPERATORS,
|
78
|
-
} from './QueryBuilderOperatorLoader.js';
|
68
|
+
import type { QueryBuilderFilterOperator } from './filter/QueryBuilderFilterOperator.js';
|
69
|
+
import { getQueryBuilderCoreFilterOperators } from './filter/QueryBuilderFilterOperatorLoader.js';
|
70
|
+
import { QueryResultSetModifierState } from './fetch-structure/projection/QueryResultSetModifierState.js';
|
79
71
|
|
80
72
|
export abstract class QueryBuilderMode {
|
81
73
|
abstract get isParametersDisabled(): boolean;
|
@@ -86,7 +78,7 @@ export abstract class QueryBuilderMode {
|
|
86
78
|
* This flag is for turning on/off dnd from projection panel to filter panel,
|
87
79
|
* and will be leveraged when the concepts of workflows are introduced into query builder.
|
88
80
|
*/
|
89
|
-
get
|
81
|
+
get isDnDFetchStructureToFilterSupported(): boolean {
|
90
82
|
return true;
|
91
83
|
}
|
92
84
|
}
|
@@ -130,20 +122,18 @@ export class QueryBuilderState {
|
|
130
122
|
queryFunctionsExplorerState: QueryFunctionsExplorerState;
|
131
123
|
fetchStructureState: QueryBuilderFetchStructureState;
|
132
124
|
filterState: QueryBuilderFilterState;
|
133
|
-
postFilterState: QueryBuilderPostFilterState;
|
134
|
-
resultSetModifierState: QueryResultSetModifierState;
|
135
125
|
resultState: QueryBuilderResultState;
|
136
126
|
queryTextEditorState: QueryTextEditorState;
|
137
127
|
queryUnsupportedState: QueryBuilderUnsupportedState;
|
138
128
|
observableContext: ObserverContext;
|
139
|
-
|
140
|
-
postFilterOperators: QueryBuilderPostFilterOperator[] = POST_FILTER_OPERATORS;
|
129
|
+
changeDetectionState: QueryBuilderChangeDetectionState;
|
141
130
|
isCompiling = false;
|
142
131
|
backdrop = false;
|
143
132
|
showFunctionPanel = false;
|
144
133
|
showParameterPanel = false;
|
145
|
-
|
146
|
-
|
134
|
+
|
135
|
+
filterOperators: QueryBuilderFilterOperator[] =
|
136
|
+
getQueryBuilderCoreFilterOperators();
|
147
137
|
|
148
138
|
constructor(
|
149
139
|
applicationStore: GenericLegendApplicationStore,
|
@@ -157,8 +147,6 @@ export class QueryBuilderState {
|
|
157
147
|
queryFunctionsExplorerState: observable,
|
158
148
|
fetchStructureState: observable,
|
159
149
|
filterState: observable,
|
160
|
-
postFilterState: observable,
|
161
|
-
resultSetModifierState: observable,
|
162
150
|
resultState: observable,
|
163
151
|
queryTextEditorState: observable,
|
164
152
|
queryUnsupportedState: observable,
|
@@ -167,7 +155,6 @@ export class QueryBuilderState {
|
|
167
155
|
mode: observable,
|
168
156
|
showFunctionPanel: observable,
|
169
157
|
showParameterPanel: observable,
|
170
|
-
showPostFilterPanel: observable,
|
171
158
|
changeDetectionState: observable,
|
172
159
|
setMode: action,
|
173
160
|
resetQueryBuilder: action,
|
@@ -177,7 +164,6 @@ export class QueryBuilderState {
|
|
177
164
|
setBackdrop: action,
|
178
165
|
setShowFunctionPanel: action,
|
179
166
|
setShowParameterPanel: action,
|
180
|
-
setShowPostFilterPanel: action,
|
181
167
|
changeClass: action,
|
182
168
|
changeFetchStructure: action,
|
183
169
|
compileQuery: flow,
|
@@ -190,16 +176,8 @@ export class QueryBuilderState {
|
|
190
176
|
this.explorerState = new QueryBuilderExplorerState(this);
|
191
177
|
this.queryParametersState = new QueryParametersState(this);
|
192
178
|
this.queryFunctionsExplorerState = new QueryFunctionsExplorerState(this);
|
193
|
-
this.fetchStructureState = new QueryBuilderFetchStructureState(
|
194
|
-
this,
|
195
|
-
AGGREGATION_OPERATORS,
|
196
|
-
);
|
179
|
+
this.fetchStructureState = new QueryBuilderFetchStructureState(this);
|
197
180
|
this.filterState = new QueryBuilderFilterState(this, this.filterOperators);
|
198
|
-
this.postFilterState = new QueryBuilderPostFilterState(
|
199
|
-
this,
|
200
|
-
this.postFilterOperators,
|
201
|
-
);
|
202
|
-
this.resultSetModifierState = new QueryResultSetModifierState(this);
|
203
181
|
this.resultState = new QueryBuilderResultState(this);
|
204
182
|
this.queryTextEditorState = new QueryTextEditorState(this);
|
205
183
|
this.queryUnsupportedState = new QueryBuilderUnsupportedState(this);
|
@@ -226,10 +204,6 @@ export class QueryBuilderState {
|
|
226
204
|
this.showParameterPanel = val;
|
227
205
|
}
|
228
206
|
|
229
|
-
setShowPostFilterPanel(val: boolean): void {
|
230
|
-
this.showPostFilterPanel = val;
|
231
|
-
}
|
232
|
-
|
233
207
|
getQuery(options?: { keepSourceInformation: boolean }): RawLambda {
|
234
208
|
if (!this.isQuerySupported()) {
|
235
209
|
const parameters = this.queryParametersState.parameterStates.map((e) =>
|
@@ -264,21 +238,13 @@ export class QueryBuilderState {
|
|
264
238
|
this.explorerState.refreshTreeData();
|
265
239
|
this.queryParametersState = new QueryParametersState(this);
|
266
240
|
this.queryFunctionsExplorerState = new QueryFunctionsExplorerState(this);
|
267
|
-
const fetchStructureState = new QueryBuilderFetchStructureState(
|
268
|
-
this,
|
269
|
-
this.fetchStructureState.projectionState.aggregationState.operators,
|
270
|
-
);
|
241
|
+
const fetchStructureState = new QueryBuilderFetchStructureState(this);
|
271
242
|
fetchStructureState.setFetchStructureMode(
|
272
243
|
this.fetchStructureState.fetchStructureMode,
|
273
244
|
);
|
274
245
|
this.fetchStructureState = fetchStructureState;
|
275
|
-
this.filterState = new QueryBuilderFilterState(this, this.filterOperators);
|
276
|
-
this.postFilterState = new QueryBuilderPostFilterState(
|
277
|
-
this,
|
278
|
-
this.postFilterOperators,
|
279
|
-
);
|
280
|
-
this.resultSetModifierState = new QueryResultSetModifierState(this);
|
281
246
|
this.fetchStructureState.graphFetchTreeState.initialize();
|
247
|
+
this.filterState = new QueryBuilderFilterState(this, this.filterOperators);
|
282
248
|
}
|
283
249
|
|
284
250
|
initialize(rawLambda: RawLambda, options?: { notifyError: boolean }): void {
|
@@ -362,6 +328,7 @@ export class QueryBuilderState {
|
|
362
328
|
const variableState = new LambdaParameterState(
|
363
329
|
milestoningParameter,
|
364
330
|
this.querySetupState.queryBuilderState.observableContext,
|
331
|
+
this.querySetupState.queryBuilderState.graphManagerState.graph,
|
365
332
|
);
|
366
333
|
variableState.mockParameterValue();
|
367
334
|
this.queryParametersState.addParameter(variableState);
|
@@ -480,8 +447,10 @@ export class QueryBuilderState {
|
|
480
447
|
this.explorerState.refreshTreeData();
|
481
448
|
}
|
482
449
|
|
450
|
+
// TODO-BEFORE-PR: consider removing this
|
483
451
|
changeFetchStructure(): void {
|
484
|
-
this.resultSetModifierState =
|
452
|
+
this.fetchStructureState.projectionState.resultSetModifierState =
|
453
|
+
new QueryResultSetModifierState(this.fetchStructureState.projectionState);
|
485
454
|
const treeData = this.fetchStructureState.graphFetchTreeState.treeData;
|
486
455
|
if (!treeData) {
|
487
456
|
this.fetchStructureState.graphFetchTreeState.initialize();
|
@@ -492,7 +461,7 @@ export class QueryBuilderState {
|
|
492
461
|
return this.fetchStructureState.validationIssues;
|
493
462
|
}
|
494
463
|
|
495
|
-
|
464
|
+
cloneQueryBuilderState(): QueryBuilderState {
|
496
465
|
return new QueryBuilderState(
|
497
466
|
this.applicationStore,
|
498
467
|
this.graphManagerState,
|
@@ -23,6 +23,7 @@ import {
|
|
23
23
|
} from '@finos/legend-graph';
|
24
24
|
import type { Entity } from '@finos/legend-storage';
|
25
25
|
import { jest } from '@jest/globals';
|
26
|
+
import { flowResult } from 'mobx';
|
26
27
|
import { LegendQueryPluginManager } from '../application/LegendQueryPluginManager.js';
|
27
28
|
import { QueryBuilder_GraphManagerPreset } from '../graphManager/QueryBuilder_GraphManagerPreset.js';
|
28
29
|
import {
|
@@ -87,7 +88,9 @@ export const TEST_setUpQueryBuilderState = async (
|
|
87
88
|
),
|
88
89
|
);
|
89
90
|
|
90
|
-
await
|
91
|
+
await flowResult(
|
92
|
+
queryBuilderState.explorerState.analyzeMappingModelCoverage(),
|
93
|
+
);
|
91
94
|
}
|
92
95
|
return queryBuilderState;
|
93
96
|
};
|