@finos/legend-application-query 5.1.0 → 5.2.3
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 +17 -1
- package/lib/application/LegendQueryApplicationConfig.d.ts.map +1 -1
- package/lib/application/LegendQueryApplicationConfig.js +23 -1
- package/lib/application/LegendQueryApplicationConfig.js.map +1 -1
- package/lib/components/QueryBuilder.d.ts.map +1 -1
- package/lib/components/QueryBuilder.js +17 -8
- package/lib/components/QueryBuilder.js.map +1 -1
- package/lib/components/QueryBuilderParameterPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderParameterPanel.js +14 -35
- 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 +13 -13
- package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -1
- package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderResultPanel.js +34 -26
- package/lib/components/QueryBuilderResultPanel.js.map +1 -1
- package/lib/components/QueryBuilderSetupPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderSetupPanel.js +11 -12
- 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/QueryBuilderUnsupportedQueryEditor.d.ts.map +1 -1
- package/lib/components/QueryBuilderUnsupportedQueryEditor.js +4 -2
- package/lib/components/QueryBuilderUnsupportedQueryEditor.js.map +1 -1
- package/lib/components/QueryEditor.d.ts.map +1 -1
- package/lib/components/QueryEditor.js +16 -4
- package/lib/components/QueryEditor.js.map +1 -1
- package/lib/components/QueryEditorComponentTestUtils.d.ts.map +1 -1
- package/lib/components/QueryEditorComponentTestUtils.js +0 -2
- package/lib/components/QueryEditorComponentTestUtils.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} +19 -81
- 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} +9 -39
- 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} +7 -7
- 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} +8 -11
- 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/fetch-structure/QueryBuilderFetchStructurePanel.js +135 -0
- 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} +9 -9
- 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} +51 -74
- 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} +53 -73
- 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} +12 -7
- 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} +35 -64
- package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -0
- package/lib/components/{QueryBuilderLambdaEditor.d.ts → shared/QueryBuilderLambdaEditor.d.ts} +2 -1
- package/lib/components/shared/QueryBuilderLambdaEditor.d.ts.map +1 -0
- package/lib/components/{QueryBuilderLambdaEditor.js → shared/QueryBuilderLambdaEditor.js} +2 -2
- package/lib/components/shared/QueryBuilderLambdaEditor.js.map +1 -0
- package/lib/components/shared/QueryBuilderPanelIssueCountBadge.d.ts +20 -0
- package/lib/components/shared/QueryBuilderPanelIssueCountBadge.d.ts.map +1 -0
- package/lib/components/shared/QueryBuilderPanelIssueCountBadge.js +28 -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 +10 -9
- 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/QueryBuilderSetupState.js +1 -1
- package/lib/stores/QueryBuilderSetupState.js.map +1 -1
- package/lib/stores/QueryBuilderState.d.ts +14 -16
- package/lib/stores/QueryBuilderState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderState.js +27 -34
- 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} +18 -14
- package/lib/stores/QueryBuilderValueSpecificationProcessor.js.map +1 -0
- package/lib/stores/QueryEditorStore.d.ts.map +1 -1
- package/lib/stores/QueryEditorStore.js +14 -3
- package/lib/stores/QueryEditorStore.js.map +1 -1
- package/lib/stores/QueryParametersState.d.ts +1 -3
- package/lib/stores/QueryParametersState.d.ts.map +1 -1
- package/lib/stores/QueryParametersState.js +1 -4
- package/lib/stores/QueryParametersState.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} +76 -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} +3 -7
- package/lib/stores/explorer/QueryFunctionsExplorerState.d.ts.map +1 -0
- package/lib/stores/{QueryFunctionsExplorerState.js → explorer/QueryFunctionsExplorerState.js} +2 -11
- 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/fetch-structure/QueryBuilderFetchStructureState.d.ts +44 -0
- 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} +23 -20
- 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} +7 -40
- 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} +10 -10
- 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} +24 -21
- 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 +13 -11
- 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 +10 -8
- 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 +10 -8
- 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} +11 -25
- package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +1 -0
- package/lib/stores/{QueryBuilderFilterState.js → filter/QueryBuilderFilterState.js} +15 -81
- 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 +8 -6
- 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 +8 -6
- 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 +8 -6
- 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 +8 -6
- 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 +8 -6
- 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 +17 -16
- package/src/application/LegendQueryApplicationConfig.ts +35 -1
- package/src/components/QueryBuilder.tsx +30 -12
- package/src/components/QueryBuilderParameterPanel.tsx +22 -54
- package/src/components/QueryBuilderPropertyExpressionEditor.tsx +63 -59
- package/src/components/QueryBuilderResultPanel.tsx +81 -59
- package/src/components/QueryBuilderSetupPanel.tsx +11 -12
- package/src/components/QueryBuilderTextEditor.tsx +1 -1
- package/src/components/QueryBuilderUnsupportedQueryEditor.tsx +4 -2
- package/src/components/QueryEditor.tsx +39 -1
- package/src/components/QueryEditorComponentTestUtils.tsx +0 -2
- package/src/components/{QueryBuilderExplorerPanel.tsx → explorer/QueryBuilderExplorerPanel.tsx} +35 -148
- package/src/components/{QueryBuilderFunctionsExplorerPanel.tsx → explorer/QueryBuilderFunctionsExplorerPanel.tsx} +25 -70
- package/src/components/{QueryBuilderMilestoneEditor.tsx → explorer/QueryBuilderMilestoneEditor.tsx} +38 -38
- package/src/components/{QueryBuilderPropertySearchPanel.tsx → explorer/QueryBuilderPropertySearchPanel.tsx} +14 -15
- package/src/components/fetch-structure/QueryBuilderFetchStructurePanel.tsx +246 -0
- package/src/components/{QueryBuilderGraphFetchTreePanel.tsx → fetch-structure/QueryBuilderGraphFetchTreePanel.tsx} +40 -31
- package/src/components/{QueryBuilderPostFilterPanel.tsx → fetch-structure/QueryBuilderPostFilterPanel.tsx} +228 -266
- package/src/components/{QueryBuilderProjectionPanel.tsx → fetch-structure/QueryBuilderProjectionPanel.tsx} +135 -181
- package/src/components/{QueryBuilderResultModifierPanel.tsx → fetch-structure/QueryBuilderResultModifierPanel.tsx} +20 -10
- package/src/components/{QueryBuilderFilterPanel.tsx → filter/QueryBuilderFilterPanel.tsx} +195 -243
- package/src/components/{QueryBuilderLambdaEditor.tsx → shared/QueryBuilderLambdaEditor.tsx} +4 -1
- package/src/components/shared/QueryBuilderPanelIssueCountBadge.tsx +38 -0
- package/src/components/{QueryBuilderPropertyInfoTooltip.tsx → shared/QueryBuilderPropertyInfoTooltip.tsx} +0 -0
- package/src/index.ts +0 -4
- 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/QueryBuilderSetupState.ts +1 -1
- package/src/stores/QueryBuilderState.ts +31 -54
- 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} +28 -13
- package/src/stores/QueryEditorStore.ts +19 -3
- package/src/stores/QueryParametersState.ts +1 -3
- 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} +2 -12
- 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} +43 -33
- 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} +42 -35
- 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 +23 -16
- package/src/stores/{postFilterOperators → fetch-structure/projection/post-filter/operators}/QueryBuilderPostFilterOperator_GreaterThan.ts +18 -11
- 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 +18 -11
- 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} +33 -160
- 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 +18 -11
- package/src/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperator_GreaterThan.ts +17 -10
- package/src/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperator_GreaterThanEqual.ts +17 -10
- 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 +17 -10
- package/src/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperator_LessThanEqual.ts +17 -10
- package/src/stores/{filterOperators → filter/operators}/QueryBuilderFilterOperator_StartWith.ts +7 -7
- package/tsconfig.json +75 -64
- 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 +0 -121
- 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/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 +0 -34
- package/lib/stores/QueryBuilderFetchStructureState.d.ts.map +0 -1
- package/lib/stores/QueryBuilderFetchStructureState.js +0 -50
- 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 -428
- 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/components/QueryBuilderFetchStructurePanel.tsx +0 -224
- package/src/stores/QueryBuilderFetchStructureState.ts +0 -66
- package/src/stores/QueryBuilderOperatorLoader.ts +0 -133
- package/src/stores/QueryBuilderProjectionState.ts +0 -794
- package/src/stores/QueryBuilderValueSpecificationBuilderHelper.ts +0 -76
- package/src/stores/QueryResultSetModifierState.ts +0 -307
package/lib/stores/{QueryFunctionsExplorerState.js → explorer/QueryFunctionsExplorerState.js}
RENAMED
@@ -16,22 +16,16 @@
|
|
16
16
|
import { ConcreteFunctionDefinition, Package, Unit, ROOT_PACKAGE_NAME, } from '@finos/legend-graph';
|
17
17
|
import { addUniqueEntry, guaranteeNonNullable, isNonNullable, uuid, } from '@finos/legend-shared';
|
18
18
|
import { action, makeObservable, observable } from 'mobx';
|
19
|
-
export
|
20
|
-
(function (QUERY_BUILDER_FUNCTIONS_EXPLORER_TREE_DND_TYPE) {
|
21
|
-
QUERY_BUILDER_FUNCTIONS_EXPLORER_TREE_DND_TYPE["FUNCTION"] = "FUNCTION";
|
22
|
-
QUERY_BUILDER_FUNCTIONS_EXPLORER_TREE_DND_TYPE["PACKAGE"] = "PACKAGE";
|
23
|
-
})(QUERY_BUILDER_FUNCTIONS_EXPLORER_TREE_DND_TYPE = QUERY_BUILDER_FUNCTIONS_EXPLORER_TREE_DND_TYPE || (QUERY_BUILDER_FUNCTIONS_EXPLORER_TREE_DND_TYPE = {}));
|
19
|
+
export const QUERY_BUILDER_FUNCTION_DND_TYPE = 'QUERY_BUILDER_FUNCTION';
|
24
20
|
export class QueryBuilderFunctionsExplorerTreeNodeData {
|
25
21
|
id;
|
26
22
|
label;
|
27
|
-
dndType;
|
28
23
|
childrenIds = [];
|
29
24
|
isOpen;
|
30
25
|
packageableElement;
|
31
|
-
constructor(id, label,
|
26
|
+
constructor(id, label, packageableElement) {
|
32
27
|
this.id = id;
|
33
28
|
this.label = label;
|
34
|
-
this.dndType = dndType;
|
35
29
|
this.packageableElement = packageableElement;
|
36
30
|
}
|
37
31
|
}
|
@@ -47,9 +41,6 @@ const getValidDisplayablePackageSet = (queryBuilderState, rootPackageName) => {
|
|
47
41
|
};
|
48
42
|
export const generateFunctionsExplorerTreeNodeData = (queryBuilderState, element, rootPackageName) => ({
|
49
43
|
id: element.path,
|
50
|
-
dndType: element instanceof Package
|
51
|
-
? QUERY_BUILDER_FUNCTIONS_EXPLORER_TREE_DND_TYPE.PACKAGE
|
52
|
-
: QUERY_BUILDER_FUNCTIONS_EXPLORER_TREE_DND_TYPE.FUNCTION,
|
53
44
|
label: element.name,
|
54
45
|
childrenIds: element instanceof Package
|
55
46
|
? element.children
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryFunctionsExplorerState.js","sourceRoot":"","sources":["../../../src/stores/explorer/QueryFunctionsExplorerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,0BAA0B,EAC1B,OAAO,EACP,IAAI,EACJ,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,aAAa,EACb,IAAI,GACL,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAI1D,MAAM,CAAC,MA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,YAAY,CAAC,GAAG,CAC7D,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,0BAA0B,CAAC,IAAI,EAAE,CAAC,CAAC,CAC/C,CAAC;QACN,CAAC,CAAC,CAAC;QACH,IACE,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAAC,iBAAiB;aAC7D,eAAe,EAClB;YACA,IAAI,CAAC,0CAA0C,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE;gBAC7D,IAAI,CAAC,qBAAqB,CACxB,4BAA4B,CAC1B,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAAC,iBAAiB;qBAC7D,IAAI,EACP,IAAI,CAAC,iBAAiB,EACtB,iBAAiB,CAAC,uBAAuB,CAC1C,CACF,CAAC;gBACF,IAAI,CAAC,gCAAgC;oBACnC,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAAC,iBAAiB,CAAC,SAAS,CAAC,GAAG,CAC5E,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,0BAA0B,CAAC,IAAI,EAAE,CAAC,CAAC,CAC/C,CAAC;YACN,CAAC,CAAC,CAAC;SACJ;IACH,CAAC;CACF"}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
import type { QueryBuilderState } from '../QueryBuilderState.js';
|
17
|
+
import type { QueryBuilderFetchStructureState } from './QueryBuilderFetchStructureState.js';
|
18
|
+
export declare abstract class QueryBuilderFetchStructureImplementationState {
|
19
|
+
queryBuilderState: QueryBuilderState;
|
20
|
+
fetchStructureState: QueryBuilderFetchStructureState;
|
21
|
+
constructor(queryBuilderState: QueryBuilderState, fetchStructureState: QueryBuilderFetchStructureState);
|
22
|
+
}
|
23
|
+
//# sourceMappingURL=QueryBuilderFetchStructureImplementationState.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderFetchStructureImplementationState.d.ts","sourceRoot":"","sources":["../../../src/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAE5F,8BAAsB,6CAA6C;IACjE,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,mBAAmB,EAAE,+BAA+B,CAAC;gBAGnD,iBAAiB,EAAE,iBAAiB,EACpC,mBAAmB,EAAE,+BAA+B;CAQvD"}
|
@@ -0,0 +1,24 @@
|
|
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
|
+
export class QueryBuilderFetchStructureImplementationState {
|
17
|
+
queryBuilderState;
|
18
|
+
fetchStructureState;
|
19
|
+
constructor(queryBuilderState, fetchStructureState) {
|
20
|
+
this.queryBuilderState = queryBuilderState;
|
21
|
+
this.fetchStructureState = fetchStructureState;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
//# sourceMappingURL=QueryBuilderFetchStructureImplementationState.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderFetchStructureImplementationState.js","sourceRoot":"","sources":["../../../src/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,MAAM,OAAgB,6CAA6C;IACjE,iBAAiB,CAAoB;IACrC,mBAAmB,CAAkC;IAErD,YACE,iBAAoC,EACpC,mBAAoD;QAEpD,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;IACjD,CAAC;CAIF"}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
import type { QueryBuilderState } from '../QueryBuilderState.js';
|
17
|
+
import { QueryBuilderGraphFetchTreeState } from './graph-fetch/QueryBuilderGraphFetchTreeState.js';
|
18
|
+
import { QueryBuilderProjectionState } from './projection/QueryBuilderProjectionState.js';
|
19
|
+
import { type QueryBuilderExplorerTreeNodeData } from '../explorer/QueryBuilderExplorerState.js';
|
20
|
+
export declare enum FETCH_STRUCTURE_MODE {
|
21
|
+
PROJECTION = "PROJECTION",
|
22
|
+
GRAPH_FETCH = "GRAPH_FETCH"
|
23
|
+
}
|
24
|
+
export declare class QueryBuilderFetchStructureState {
|
25
|
+
queryBuilderState: QueryBuilderState;
|
26
|
+
/**
|
27
|
+
* TODO: refactor this so we could reduce this to
|
28
|
+
* `implementationState: QueryBuilderFetchStructureImplementationState`
|
29
|
+
* so we don't have graph fetch and projection at the same time
|
30
|
+
*
|
31
|
+
* TODO?: perhaps it would eventually make sense to default to
|
32
|
+
* graph-fetch since `getAll()` naturally works for graph-fetch case
|
33
|
+
* and graph-fetch allows somewhat an empty tree
|
34
|
+
*/
|
35
|
+
fetchStructureMode: FETCH_STRUCTURE_MODE;
|
36
|
+
projectionState: QueryBuilderProjectionState;
|
37
|
+
graphFetchTreeState: QueryBuilderGraphFetchTreeState;
|
38
|
+
constructor(queryBuilderState: QueryBuilderState);
|
39
|
+
setFetchStructureMode(val: FETCH_STRUCTURE_MODE): void;
|
40
|
+
fetchProperty(node: QueryBuilderExplorerTreeNodeData): void;
|
41
|
+
fetchNodeChildrenProperties(node: QueryBuilderExplorerTreeNodeData): void;
|
42
|
+
get validationIssues(): string[] | undefined;
|
43
|
+
}
|
44
|
+
//# sourceMappingURL=QueryBuilderFetchStructureState.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderFetchStructureState.d.ts","sourceRoot":"","sources":["../../../src/stores/fetch-structure/QueryBuilderFetchStructureState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,+BAA+B,EAAE,MAAM,kDAAkD,CAAC;AACnG,OAAO,EAAE,2BAA2B,EAAE,MAAM,6CAA6C,CAAC;AAC1F,OAAO,EAEL,KAAK,gCAAgC,EAEtC,MAAM,0CAA0C,CAAC;AAMlD,oBAAY,oBAAoB;IAC9B,UAAU,eAAe;IACzB,WAAW,gBAAgB;CAC5B;AAED,qBAAa,+BAA+B;IAC1C,iBAAiB,EAAE,iBAAiB,CAAC;IACrC;;;;;;;;OAQG;IACH,kBAAkB,uBAAmC;IACrD,eAAe,EAAE,2BAA2B,CAAC;IAC7C,mBAAmB,EAAE,+BAA+B,CAAC;gBAEzC,iBAAiB,EAAE,iBAAiB;IAmBhD,qBAAqB,CAAC,GAAG,EAAE,oBAAoB,GAAG,IAAI;IAItD,aAAa,CAAC,IAAI,EAAE,gCAAgC,GAAG,IAAI;IAgC3D,2BAA2B,CAAC,IAAI,EAAE,gCAAgC,GAAG,IAAI;IA0DzE,IAAI,gBAAgB,IAAI,MAAM,EAAE,GAAG,SAAS,CAQ3C;CACF"}
|
@@ -0,0 +1,116 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
import { action, makeAutoObservable } from 'mobx';
|
17
|
+
import { QueryBuilderGraphFetchTreeState } from './graph-fetch/QueryBuilderGraphFetchTreeState.js';
|
18
|
+
import { QueryBuilderProjectionState } from './projection/QueryBuilderProjectionState.js';
|
19
|
+
import { buildPropertyExpressionFromExplorerTreeNodeData, QueryBuilderExplorerTreePropertyNodeData, } from '../explorer/QueryBuilderExplorerState.js';
|
20
|
+
import { Class } from '@finos/legend-graph';
|
21
|
+
import { filterByType } from '@finos/legend-shared';
|
22
|
+
import { addQueryBuilderPropertyNode } from './graph-fetch/QueryBuilderGraphFetchTreeUtil.js';
|
23
|
+
import { QueryBuilderSimpleProjectionColumnState } from './projection/QueryBuilderProjectionColumnState.js';
|
24
|
+
export var FETCH_STRUCTURE_MODE;
|
25
|
+
(function (FETCH_STRUCTURE_MODE) {
|
26
|
+
FETCH_STRUCTURE_MODE["PROJECTION"] = "PROJECTION";
|
27
|
+
FETCH_STRUCTURE_MODE["GRAPH_FETCH"] = "GRAPH_FETCH";
|
28
|
+
})(FETCH_STRUCTURE_MODE = FETCH_STRUCTURE_MODE || (FETCH_STRUCTURE_MODE = {}));
|
29
|
+
export class QueryBuilderFetchStructureState {
|
30
|
+
queryBuilderState;
|
31
|
+
/**
|
32
|
+
* TODO: refactor this so we could reduce this to
|
33
|
+
* `implementationState: QueryBuilderFetchStructureImplementationState`
|
34
|
+
* so we don't have graph fetch and projection at the same time
|
35
|
+
*
|
36
|
+
* TODO?: perhaps it would eventually make sense to default to
|
37
|
+
* graph-fetch since `getAll()` naturally works for graph-fetch case
|
38
|
+
* and graph-fetch allows somewhat an empty tree
|
39
|
+
*/
|
40
|
+
fetchStructureMode = FETCH_STRUCTURE_MODE.PROJECTION;
|
41
|
+
projectionState;
|
42
|
+
graphFetchTreeState;
|
43
|
+
constructor(queryBuilderState) {
|
44
|
+
makeAutoObservable(this, {
|
45
|
+
queryBuilderState: false,
|
46
|
+
setFetchStructureMode: action,
|
47
|
+
});
|
48
|
+
this.queryBuilderState = queryBuilderState;
|
49
|
+
// TODO: we probably should modularize this a bit better
|
50
|
+
// See https://github.com/finos/legend-studio/issues/731
|
51
|
+
this.projectionState = new QueryBuilderProjectionState(queryBuilderState, this);
|
52
|
+
this.graphFetchTreeState = new QueryBuilderGraphFetchTreeState(queryBuilderState, this);
|
53
|
+
}
|
54
|
+
setFetchStructureMode(val) {
|
55
|
+
this.fetchStructureMode = val;
|
56
|
+
}
|
57
|
+
fetchProperty(node) {
|
58
|
+
if (node instanceof QueryBuilderExplorerTreePropertyNodeData &&
|
59
|
+
!(node.type instanceof Class)) {
|
60
|
+
switch (this.fetchStructureMode) {
|
61
|
+
case FETCH_STRUCTURE_MODE.GRAPH_FETCH: {
|
62
|
+
this.graphFetchTreeState.addProperty(node);
|
63
|
+
return;
|
64
|
+
}
|
65
|
+
case FETCH_STRUCTURE_MODE.PROJECTION: {
|
66
|
+
this.projectionState.addColumn(new QueryBuilderSimpleProjectionColumnState(this.projectionState, buildPropertyExpressionFromExplorerTreeNodeData(this.queryBuilderState.explorerState.nonNullableTreeData, node, this.queryBuilderState.graphManagerState.graph, this.queryBuilderState.explorerState.propertySearchPanelState
|
67
|
+
.allMappedPropertyNodes), this.queryBuilderState.explorerState.humanizePropertyName));
|
68
|
+
return;
|
69
|
+
}
|
70
|
+
default:
|
71
|
+
return;
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
fetchNodeChildrenProperties(node) {
|
76
|
+
if (node.type instanceof Class) {
|
77
|
+
// NOTE: here we require the node to already been expanded so the child nodes are generated
|
78
|
+
// we don't allow adding unopened node. Maybe if it helps, we can show a warning.
|
79
|
+
const nodesToAdd = node.childrenIds
|
80
|
+
.map((childId) => this.queryBuilderState.explorerState.nonNullableTreeData.nodes.get(childId))
|
81
|
+
.filter(filterByType(QueryBuilderExplorerTreePropertyNodeData))
|
82
|
+
.filter((childNode) => !(childNode.type instanceof Class) && childNode.mappingData.mapped);
|
83
|
+
switch (this.fetchStructureMode) {
|
84
|
+
case FETCH_STRUCTURE_MODE.GRAPH_FETCH: {
|
85
|
+
const graphFetchTreeData = this.graphFetchTreeState.treeData;
|
86
|
+
if (graphFetchTreeData) {
|
87
|
+
nodesToAdd.forEach((nodeToAdd) => addQueryBuilderPropertyNode(graphFetchTreeData, this.queryBuilderState.explorerState.nonNullableTreeData, nodeToAdd, this.queryBuilderState));
|
88
|
+
this.graphFetchTreeState.setGraphFetchTree({
|
89
|
+
...graphFetchTreeData,
|
90
|
+
});
|
91
|
+
}
|
92
|
+
return;
|
93
|
+
}
|
94
|
+
case FETCH_STRUCTURE_MODE.PROJECTION: {
|
95
|
+
nodesToAdd.forEach((nodeToAdd) => {
|
96
|
+
this.projectionState.addColumn(new QueryBuilderSimpleProjectionColumnState(this.projectionState, buildPropertyExpressionFromExplorerTreeNodeData(this.queryBuilderState.explorerState.nonNullableTreeData, nodeToAdd, this.queryBuilderState.graphManagerState.graph, this.queryBuilderState.explorerState.propertySearchPanelState
|
97
|
+
.allMappedPropertyNodes), this.queryBuilderState.explorerState.humanizePropertyName));
|
98
|
+
});
|
99
|
+
return;
|
100
|
+
}
|
101
|
+
default:
|
102
|
+
return;
|
103
|
+
}
|
104
|
+
}
|
105
|
+
}
|
106
|
+
get validationIssues() {
|
107
|
+
switch (this.fetchStructureMode) {
|
108
|
+
case FETCH_STRUCTURE_MODE.PROJECTION:
|
109
|
+
return this.projectionState.validationIssues;
|
110
|
+
case FETCH_STRUCTURE_MODE.GRAPH_FETCH:
|
111
|
+
default:
|
112
|
+
return undefined;
|
113
|
+
}
|
114
|
+
}
|
115
|
+
}
|
116
|
+
//# sourceMappingURL=QueryBuilderFetchStructureState.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderFetchStructureState.js","sourceRoot":"","sources":["../../../src/stores/fetch-structure/QueryBuilderFetchStructureState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAC;AAElD,OAAO,EAAE,+BAA+B,EAAE,MAAM,kDAAkD,CAAC;AACnG,OAAO,EAAE,2BAA2B,EAAE,MAAM,6CAA6C,CAAC;AAC1F,OAAO,EACL,+CAA+C,EAE/C,wCAAwC,GACzC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5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iB,CAAC,aAAa,CAAC,mBAAmB,EACxD,SAAS,EACT,IAAI,CAAC,iBAAiB,CACvB,CACF,CAAC;wBACF,IAAI,CAAC,mBAAmB,CAAC,iBAAiB,CAAC;4BACzC,GAAG,kBAAkB;yBACtB,CAAC,CAAC;qBACJ;oBACD,OAAO;iBACR;gBACD,KAAK,oBAAoB,CAAC,UAAU,CAAC,CAAC;oBACpC,UAAU,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;wBAC/B,IAAI,CAAC,eAAe,CAAC,SAAS,CAC5B,IAAI,uCAAuC,CACzC,IAAI,CAAC,eAAe,EACpB,+CAA+C,CAC7C,IAAI,CAAC,iBAAiB,CAAC,aAAa,CAAC,mBAAmB,EACxD,SAAS,EACT,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,EAC9C,IAAI,CAAC,iBAAiB,CAAC,aAAa,CAAC,wBAAwB;6BAC1D,sBAAsB,CAC1B,EACD,IAAI,CAAC,iBAAiB,CAAC,aAAa,CAAC,oBAAoB,CAC1D,CACF,CAAC;oBACJ,CAAC,CAAC,CAAC;oBACH,OAAO;iBACR;gBACD;oBACE,OAAO;aACV;SACF;IACH,CAAC;IAED,IAAI,gBAAgB;QAClB,QAAQ,IAAI,CAAC,kBAAkB,EAAE;YAC/B,KAAK,oBAAoB,CAAC,UAAU;gBAClC,OAAO,IAAI,CAAC,eAAe,CAAC,gBAAgB,CAAC;YAC/C,KAAK,oBAAoB,CAAC,WAAW,CAAC;YACtC;gBACE,OAAO,SAAS,CAAC;SACpB;IACH,CAAC;CACF"}
|
@@ -13,12 +13,13 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import type { QueryBuilderState } from '
|
16
|
+
import type { QueryBuilderState } from '../../QueryBuilderState.js';
|
17
17
|
import { RootGraphFetchTree } from '@finos/legend-graph';
|
18
18
|
import { type QueryBuilderGraphFetchTreeData } from './QueryBuilderGraphFetchTreeUtil.js';
|
19
|
-
import type { QueryBuilderExplorerTreePropertyNodeData } from '
|
20
|
-
|
21
|
-
|
19
|
+
import type { QueryBuilderExplorerTreePropertyNodeData } from '../../explorer/QueryBuilderExplorerState.js';
|
20
|
+
import { QueryBuilderFetchStructureImplementationState } from '../QueryBuilderFetchStructureImplementationState.js';
|
21
|
+
import type { QueryBuilderFetchStructureState } from '../QueryBuilderFetchStructureState.js';
|
22
|
+
export declare class QueryBuilderGraphFetchTreeState extends QueryBuilderFetchStructureImplementationState {
|
22
23
|
treeData?: QueryBuilderGraphFetchTreeData | undefined;
|
23
24
|
/**
|
24
25
|
* If set to `true` we will use `graphFetchChecked` function instead of `graphFetch`.
|
@@ -26,7 +27,7 @@ export declare class QueryBuilderGraphFetchTreeState {
|
|
26
27
|
* Hence we default this to `false` for graph fetch to work universally.
|
27
28
|
*/
|
28
29
|
isChecked: boolean;
|
29
|
-
constructor(queryBuilderState: QueryBuilderState);
|
30
|
+
constructor(queryBuilderState: QueryBuilderState, fetchStructureState: QueryBuilderFetchStructureState);
|
30
31
|
setGraphFetchTree(val: QueryBuilderGraphFetchTreeData | undefined): void;
|
31
32
|
setChecked(val: boolean): void;
|
32
33
|
initialize(tree?: RootGraphFetchTree): void;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderGraphFetchTreeState.d.ts","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,OAAO,EAEL,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,8BAA8B,EAGpC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,6CAA6C,CAAC;AAE5G,OAAO,EAAE,6CAA6C,EAAE,MAAM,qDAAqD,CAAC;AACpH,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AAE7F,qBAAa,+BAAgC,SAAQ,6CAA6C;IAChG,QAAQ,CAAC,EAAE,8BAA8B,GAAG,SAAS,CAAC;IACtD;;;;OAIG;IACH,SAAS,UAAS;gBAGhB,iBAAiB,EAAE,iBAAiB,EACpC,mBAAmB,EAAE,+BAA+B;IAYtD,iBAAiB,CAAC,GAAG,EAAE,8BAA8B,GAAG,SAAS,GAAG,IAAI;IAIxE,UAAU,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAK9B,UAAU,CAAC,IAAI,CAAC,EAAE,kBAAkB,GAAG,IAAI;IAmB3C,WAAW,CAAC,IAAI,EAAE,wCAAwC,GAAG,IAAI;CAgBlE"}
|
@@ -13,11 +13,12 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import {
|
16
|
+
import { action, makeObservable, observable } from 'mobx';
|
17
17
|
import { PackageableElementExplicitReference, RootGraphFetchTree, } from '@finos/legend-graph';
|
18
18
|
import { addQueryBuilderPropertyNode, buildGraphFetchTreeData, } from './QueryBuilderGraphFetchTreeUtil.js';
|
19
|
-
|
20
|
-
|
19
|
+
import { assertNonNullable } from '@finos/legend-shared';
|
20
|
+
import { QueryBuilderFetchStructureImplementationState } from '../QueryBuilderFetchStructureImplementationState.js';
|
21
|
+
export class QueryBuilderGraphFetchTreeState extends QueryBuilderFetchStructureImplementationState {
|
21
22
|
treeData;
|
22
23
|
/**
|
23
24
|
* If set to `true` we will use `graphFetchChecked` function instead of `graphFetch`.
|
@@ -25,13 +26,14 @@ export class QueryBuilderGraphFetchTreeState {
|
|
25
26
|
* Hence we default this to `false` for graph fetch to work universally.
|
26
27
|
*/
|
27
28
|
isChecked = false;
|
28
|
-
constructor(queryBuilderState) {
|
29
|
-
|
30
|
-
|
29
|
+
constructor(queryBuilderState, fetchStructureState) {
|
30
|
+
super(queryBuilderState, fetchStructureState);
|
31
|
+
makeObservable(this, {
|
32
|
+
treeData: observable,
|
33
|
+
isChecked: observable,
|
31
34
|
setGraphFetchTree: action,
|
32
35
|
setChecked: action,
|
33
36
|
});
|
34
|
-
this.queryBuilderState = queryBuilderState;
|
35
37
|
}
|
36
38
|
setGraphFetchTree(val) {
|
37
39
|
this.treeData = val;
|
@@ -39,27 +41,28 @@ export class QueryBuilderGraphFetchTreeState {
|
|
39
41
|
setChecked(val) {
|
40
42
|
this.isChecked = val;
|
41
43
|
}
|
44
|
+
// TODO-BEFORE-PR: consider removing this
|
42
45
|
initialize(tree) {
|
43
|
-
if (
|
44
|
-
|
45
|
-
|
46
|
+
if (tree) {
|
47
|
+
this.setGraphFetchTree(buildGraphFetchTreeData(tree));
|
48
|
+
}
|
49
|
+
else {
|
50
|
+
const _class = this.queryBuilderState.querySetupState._class;
|
51
|
+
if (_class) {
|
52
|
+
this.setGraphFetchTree(buildGraphFetchTreeData(new RootGraphFetchTree(PackageableElementExplicitReference.create(_class))));
|
46
53
|
}
|
47
54
|
else {
|
48
|
-
|
49
|
-
if (_class) {
|
50
|
-
this.setGraphFetchTree(buildGraphFetchTreeData(new RootGraphFetchTree(PackageableElementExplicitReference.create(_class))));
|
51
|
-
}
|
52
|
-
else {
|
53
|
-
this.setGraphFetchTree(undefined);
|
54
|
-
}
|
55
|
+
this.setGraphFetchTree(undefined);
|
55
56
|
}
|
56
57
|
}
|
57
58
|
}
|
58
59
|
addProperty(node) {
|
59
|
-
if (this.treeData) {
|
60
|
-
|
61
|
-
this.setGraphFetchTree({ ...this.treeData });
|
60
|
+
if (!this.treeData) {
|
61
|
+
this.initialize();
|
62
62
|
}
|
63
|
+
assertNonNullable(this.treeData, `Graph-fetch tree has not been properly initialized`);
|
64
|
+
addQueryBuilderPropertyNode(this.treeData, this.queryBuilderState.explorerState.nonNullableTreeData, node, this.queryBuilderState);
|
65
|
+
this.setGraphFetchTree({ ...this.treeData });
|
63
66
|
}
|
64
67
|
}
|
65
68
|
//# sourceMappingURL=QueryBuilderGraphFetchTreeState.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderGraphFetchTreeState.js","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC1D,OAAO,EACL,mCAAmC,EACnC,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,2BAA2B,EAC3B,uBAAuB,GACxB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,6CAA6C,EAAE,MAAM,qDAAqD,CAAC;AAGpH,MAAM,OAAO,+BAAgC,SAAQ,6CAA6C;IAChG,QAAQ,CAA8C;IACtD;;;;OAIG;IACH,SAAS,GAAG,KAAK,CAAC;IAElB,YACE,iBAAoC,EACpC,mBAAoD;QAEpD,KAAK,CAAC,iBAAiB,EAAE,mBAAmB,CAAC,CAAC;QAE9C,cAAc,CAAC,IAAI,EAAE;YACnB,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,UAAU;YACrB,iBAAiB,EAAE,MAAM;YACzB,UAAU,EAAE,MAAM;SACnB,CAAC,CAAC;IACL,CAAC;IAED,iBAAiB,CAAC,GAA+C;QAC/D,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC;IACtB,CAAC;IAED,UAAU,CAAC,GAAY;QACrB,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC;IACvB,CAAC;IAED,yCAAyC;IACzC,UAAU,CAAC,IAAyB;QAClC,IAAI,IAAI,EAAE;YACR,IAAI,CAAC,iBAAiB,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC,CAAC;SACvD;aAAM;YACL,MAAM,MAAM,GAAG,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAC,MAAM,CAAC;YAC7D,IAAI,MAAM,EAAE;gBACV,IAAI,CAAC,iBAAiB,CACpB,uBAAuB,CACrB,IAAI,kBAAkB,CACpB,mCAAmC,CAAC,MAAM,CAAC,MAAM,CAAC,CACnD,CACF,CACF,CAAC;aACH;iBAAM;gBACL,IAAI,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC;aACnC;SACF;IACH,CAAC;IAED,WAAW,CAAC,IAA8C;QACxD,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YAClB,IAAI,CAAC,UAAU,EAAE,CAAC;SACnB;QACD,iBAAiB,CACf,IAAI,CAAC,QAAQ,EACb,oDAAoD,CACrD,CAAC;QACF,2BAA2B,CACzB,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,iBAAiB,CAAC,aAAa,CAAC,mBAAmB,EACxD,IAAI,EACJ,IAAI,CAAC,iBAAiB,CACvB,CAAC;QACF,IAAI,CAAC,iBAAiB,CAAC,EAAE,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC/C,CAAC;CACF"}
|
@@ -15,8 +15,8 @@
|
|
15
15
|
*/
|
16
16
|
import type { TreeNodeData, TreeData } from '@finos/legend-art';
|
17
17
|
import { type Type, type RootGraphFetchTree, PropertyGraphFetchTree } from '@finos/legend-graph';
|
18
|
-
import { type QueryBuilderExplorerTreeNodeData, QueryBuilderExplorerTreePropertyNodeData } from '
|
19
|
-
import type { QueryBuilderState } from '
|
18
|
+
import { type QueryBuilderExplorerTreeNodeData, QueryBuilderExplorerTreePropertyNodeData } from '../../explorer/QueryBuilderExplorerState.js';
|
19
|
+
import type { QueryBuilderState } from '../../QueryBuilderState.js';
|
20
20
|
export declare class QueryBuilderGraphFetchTreeNodeData implements TreeNodeData {
|
21
21
|
isSelected?: boolean | undefined;
|
22
22
|
isOpen?: boolean | undefined;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuil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B,aAC5B,8BAA8B,oBACtB,SAAS,gCAAgC,CAAC,QACtD,wCAAwC,qBAC3B,iBAAiB,KACnC,IAgGF,CAAC"}
|
@@ -15,7 +15,7 @@
|
|
15
15
|
*/
|
16
16
|
import { assertType, addUniqueEntry, deleteEntry } from '@finos/legend-shared';
|
17
17
|
import { PropertyExplicitReference, Class, PropertyGraphFetchTree, PackageableElementExplicitReference, } from '@finos/legend-graph';
|
18
|
-
import { QueryBuilderExplorerTreePropertyNodeData, QueryBuilderExplorerTreeSubTypeNodeData, } from '
|
18
|
+
import { QueryBuilderExplorerTreePropertyNodeData, QueryBuilderExplorerTreeSubTypeNodeData, } from '../../explorer/QueryBuilderExplorerState.js';
|
19
19
|
import { graphFetchTree_addSubTree, graphFetchTree_removeSubTree, } from '@finos/legend-application';
|
20
20
|
export class QueryBuilderGraphFetchTreeNodeData {
|
21
21
|
isSelected;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderGraphFetchTreeUtil.js","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAE/E,OAAO,EAKL,yBAAyB,EACzB,KAAK,EACL,sBAAsB,EACtB,mCAAmC,GACpC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,wCAAwC,EACxC,uCAAuC,GACxC,MAAM,6CAA6C,CAAC;AAErD,OAAO,EACL,yBAAyB,EACzB,4BAA4B,GAC7B,MAAM,2BAA2B,CAAC;AAEnC,MAAM,OAAO,kCAAkC;IAC7C,UAAU,CAAuB;IACjC,MAAM,CAAuB;IAC7B,EAAE,CAAS;IACX,KAAK,CAAS;IACd,WAAW,GAAa,EAAE,CAAC;IAC3B,QAAQ,CAAsB;IAC9B,IAAI,CAAyB;IAE7B,YACE,EAAU,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,CAAC,IAAI,CAAC,CAAC;SAC5D;aAAM;YACL,cAAc,CAAC,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC,EAAE,CAAC,CAAC;YAC/C,yBAAyB,CAAC,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC;SAC1D;KACF;AACH,CAAC,CAAC"}
|
package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.d.ts
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
import { type LambdaFunction } from '@finos/legend-graph';
|
17
|
+
import type { QueryBuilderState } from '../../QueryBuilderState.js';
|
18
|
+
export declare const appendTakeLimit: (queryBuilderState: QueryBuilderState, lambda: LambdaFunction, previewLimit?: number | undefined) => LambdaFunction;
|
19
|
+
//# sourceMappingURL=QueryBuilderGraphFetchValueSpecificationBuilder.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderGraphFetchValueSpecificationBuilder.d.ts","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAUL,KAAK,cAAc,EACpB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,eAAO,MAAM,eAAe,sBACP,iBAAiB,UAC5B,cAAc,iBACP,MAAM,GAAG,SAAS,KAChC,cAqDF,CAAC"}
|
package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.js
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
import { extractElementNameFromPath, GenericType, GenericTypeExplicitReference, matchFunctionName, PrimitiveInstanceValue, PRIMITIVE_TYPE, SimpleFunctionExpression, TYPICAL_MULTIPLICITY_TYPE, } from '@finos/legend-graph';
|
17
|
+
import { guaranteeType } from '@finos/legend-shared';
|
18
|
+
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../QueryBuilder_Const.js';
|
19
|
+
export const appendTakeLimit = (queryBuilderState, lambda, previewLimit) => {
|
20
|
+
if (!previewLimit) {
|
21
|
+
return lambda;
|
22
|
+
}
|
23
|
+
const multiplicityOne = queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE);
|
24
|
+
if (lambda.expressionSequence.length === 1) {
|
25
|
+
const func = lambda.expressionSequence[0];
|
26
|
+
if (func instanceof SimpleFunctionExpression) {
|
27
|
+
if (matchFunctionName(func.functionName, QUERY_BUILDER_SUPPORTED_FUNCTIONS.SERIALIZE)) {
|
28
|
+
const limit = new PrimitiveInstanceValue(GenericTypeExplicitReference.create(new GenericType(queryBuilderState.graphManagerState.graph.getPrimitiveType(PRIMITIVE_TYPE.INTEGER))), multiplicityOne);
|
29
|
+
limit.values = [previewLimit];
|
30
|
+
const takeFunction = new SimpleFunctionExpression(extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.TAKE), multiplicityOne);
|
31
|
+
// NOTE: `take()` does not work on `graphFetch()` or `serialize()` so we will put it
|
32
|
+
// right next to `all()`
|
33
|
+
const serializeFunction = func;
|
34
|
+
const graphFetchFunc = guaranteeType(serializeFunction.parametersValues[0], SimpleFunctionExpression);
|
35
|
+
const getAllFunc = graphFetchFunc
|
36
|
+
.parametersValues[0];
|
37
|
+
takeFunction.parametersValues[0] = getAllFunc;
|
38
|
+
takeFunction.parametersValues[1] = limit;
|
39
|
+
graphFetchFunc.parametersValues = [
|
40
|
+
takeFunction,
|
41
|
+
graphFetchFunc.parametersValues[1],
|
42
|
+
];
|
43
|
+
return lambda;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
return lambda;
|
48
|
+
};
|
49
|
+
//# sourceMappingURL=QueryBuilderGraphFetchValueSpecificationBuilder.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderGraphFetchValueSpecificationBuilder.js","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,0BAA0B,EAC1B,WAAW,EACX,4BAA4B,EAC5B,iBAAiB,EACjB,sBAAsB,EACtB,cAAc,EACd,wBAAwB,EACxB,yBAAyB,GAG1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,iCAAiC,EAAE,MAAM,gCAAgC,C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CAAC,CAAC,CAAC,GAAG,KAAK,CAAC;gBACzC,cAAc,CAAC,gBAAgB,GAAG;oBAChC,YAAY;oBACZ,cAAc,CAAC,gBAAgB,CAAC,CAAC,CAAuB;iBACzD,CAAC;gBACF,OAAO,MAAM,CAAC;aACf;SACF;KACF;IACD,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
|
@@ -14,25 +14,21 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
import { type GeneratorFn } from '@finos/legend-shared';
|
17
|
-
import { type QueryBuilderExplorerTreePropertyNodeData } from '
|
18
|
-
import { QueryBuilderPropertyExpressionState } from '
|
19
|
-
import type { QueryBuilderState } from '
|
20
|
-
import { type AbstractPropertyExpression, type
|
21
|
-
import { type QueryBuilderAggregateOperator, QueryBuilderAggregationState } from './QueryBuilderAggregationState.js';
|
17
|
+
import { type QueryBuilderExplorerTreePropertyNodeData } from '../../explorer/QueryBuilderExplorerState.js';
|
18
|
+
import { QueryBuilderPropertyExpressionState } from '../../QueryBuilderPropertyEditorState.js';
|
19
|
+
import type { QueryBuilderState } from '../../QueryBuilderState.js';
|
20
|
+
import { type AbstractPropertyExpression, type Type, RawLambda } from '@finos/legend-graph';
|
22
21
|
import { LambdaEditorState } from '@finos/legend-application';
|
23
|
-
|
24
|
-
|
25
|
-
}
|
22
|
+
import type { QueryBuilderProjectionState } from './QueryBuilderProjectionState.js';
|
23
|
+
export declare const QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE = "PROJECTION_COLUMN";
|
26
24
|
export interface QueryBuilderProjectionColumnDragSource {
|
27
25
|
columnState: QueryBuilderProjectionColumnState;
|
28
26
|
}
|
29
27
|
export declare abstract class QueryBuilderProjectionColumnState {
|
30
28
|
readonly uuid: string;
|
31
29
|
projectionState: QueryBuilderProjectionState;
|
32
|
-
isBeingDragged: boolean;
|
33
30
|
columnName: string;
|
34
31
|
constructor(projectionState: QueryBuilderProjectionState, columnName: string);
|
35
|
-
setIsBeingDragged(val: boolean): void;
|
36
32
|
setColumnName(val: string): void;
|
37
33
|
abstract getReturnType(): Type | undefined;
|
38
34
|
}
|
@@ -73,34 +69,5 @@ export declare class QueryBuilderDerivationProjectionColumnState extends QueryBu
|
|
73
69
|
fetchDerivationLambdaReturnType(): GeneratorFn<void>;
|
74
70
|
getReturnType(): Type | undefined;
|
75
71
|
}
|
76
|
-
export declare class QueryBuilderProjectionState {
|
77
|
-
queryBuilderState: QueryBuilderState;
|
78
|
-
columns: QueryBuilderProjectionColumnState[];
|
79
|
-
aggregationState: QueryBuilderAggregationState;
|
80
|
-
isConvertDerivationProjectionObjects: boolean;
|
81
|
-
constructor(queryBuilderState: QueryBuilderState, operators: QueryBuilderAggregateOperator[]);
|
82
|
-
convertDerivationProjectionObjects(): GeneratorFn<void>;
|
83
|
-
transformSimpleProjectionToDerivation(simpleProjectionColumnState: QueryBuilderSimpleProjectionColumnState): void;
|
84
|
-
replaceColumn(oldVal: QueryBuilderProjectionColumnState, newVal: QueryBuilderProjectionColumnState): void;
|
85
|
-
removeColumn(val: QueryBuilderProjectionColumnState): void;
|
86
|
-
addColumn(val: QueryBuilderProjectionColumnState, options?: {
|
87
|
-
/**
|
88
|
-
* Often time, we would want to enforce doing a sort when adding new column
|
89
|
-
* to ensure aggregate columns stay at the bottom of the list of projections
|
90
|
-
* But sometimes, we can opt in to use this flag to disable this sorting behavior,
|
91
|
-
* such as when we build/process.
|
92
|
-
*/
|
93
|
-
skipSorting?: boolean | undefined;
|
94
|
-
}): void;
|
95
|
-
moveColumn(sourceIndex: number, targetIndex: number): void;
|
96
|
-
addNewBlankDerivation(): void;
|
97
|
-
revealCompilationError(compilationError: CompilationError): boolean;
|
98
|
-
get derivations(): QueryBuilderDerivationProjectionColumnState[];
|
99
|
-
get hasParserError(): boolean;
|
100
|
-
clearCompilationError(): void;
|
101
|
-
previewData(node: QueryBuilderExplorerTreePropertyNodeData): GeneratorFn<void>;
|
102
|
-
isValidProjectionState(): boolean;
|
103
|
-
getValidationErrorMessage(): string | undefined;
|
104
|
-
}
|
105
72
|
export {};
|
106
|
-
//# sourceMappingURL=
|
73
|
+
//# sourceMappingURL=QueryBuilderProjectionColumnState.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderProjectionColumnState.d.ts","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,WAAW,EAOjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,wCAAwC,EAE9C,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAEL,mCAAmC,EACpC,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,IAAI,EAUT,SAAS,EAEV,MAAM,qBAAqB,CAAC;AAK7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAEpF,eAAO,MAAM,wCAAwC,sBAAsB,CAAC;AAE5E,MAAM,WAAW,sCAAsC;IACrD,WAAW,EAAE,iCAAiC,CAAC;CAChD;AAED,8BAAsB,iCAAiC;IACrD,QAAQ,CAAC,IAAI,SAAU;IACvB,eAAe,EAAE,2BAA2B,CAAC;IAC7C,UAAU,EAAE,MAAM,CAAC;gBAGjB,eAAe,EAAE,2BAA2B,EAC5C,UAAU,EAAE,MAAM;IAapB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAIhC,QAAQ,CAAC,aAAa,IAAI,IAAI,GAAG,SAAS;CAC3C;AAED,qBAAa,uCAAwC,SAAQ,iCAAiC;IAC5F,mBAAmB,EAAE,MAAM,CAAgC;IAC3D,uBAAuB,EAAE,mCAAmC,CAAC;gBAG3D,eAAe,E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