@finos/legend-query-builder 0.2.0 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/QueryBuilder.d.ts +1 -0
- package/lib/components/QueryBuilder.d.ts.map +1 -1
- package/lib/components/QueryBuilder.js +23 -51
- package/lib/components/QueryBuilder.js.map +1 -1
- package/lib/components/QueryBuilderDiffPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderDiffPanel.js +4 -5
- package/lib/components/QueryBuilderDiffPanel.js.map +1 -1
- package/lib/components/QueryBuilderNavigationBlocker.d.ts +22 -0
- package/lib/components/QueryBuilderNavigationBlocker.d.ts.map +1 -0
- package/lib/components/QueryBuilderNavigationBlocker.js +48 -0
- package/lib/components/QueryBuilderNavigationBlocker.js.map +1 -0
- package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderResultPanel.js +19 -19
- package/lib/components/QueryBuilderResultPanel.js.map +1 -1
- package/lib/components/QueryBuilderSideBar.d.ts.map +1 -1
- package/lib/components/QueryBuilderSideBar.js +1 -1
- package/lib/components/QueryBuilderSideBar.js.map +1 -1
- package/lib/components/QueryBuilderTextEditor.d.ts.map +1 -1
- package/lib/components/QueryBuilderTextEditor.js +3 -3
- package/lib/components/QueryBuilderTextEditor.js.map +1 -1
- package/lib/components/QueryBuilder_LegendApplicationPlugin.d.ts +23 -0
- package/lib/components/QueryBuilder_LegendApplicationPlugin.d.ts.map +1 -0
- package/lib/components/QueryBuilder_LegendApplicationPlugin.js +31 -0
- package/lib/components/QueryBuilder_LegendApplicationPlugin.js.map +1 -0
- package/lib/components/QueryBuilder_TestID.d.ts +1 -1
- package/lib/components/QueryBuilder_TestID.d.ts.map +1 -1
- package/lib/components/QueryBuilder_TestID.js +1 -1
- package/lib/components/QueryBuilder_TestID.js.map +1 -1
- package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts.map +1 -1
- package/lib/components/explorer/QueryBuilderExplorerPanel.js +4 -4
- package/lib/components/explorer/QueryBuilderExplorerPanel.js.map +1 -1
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts.map +1 -1
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js +2 -2
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.js +4 -4
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts +2 -2
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +23 -28
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts +2 -2
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +12 -12
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -1
- package/lib/components/fetch-structure/{QueryBuilderProjectionPanel.d.ts → QueryBuilderTDSPanel.d.ts} +4 -4
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -0
- package/lib/components/fetch-structure/{QueryBuilderProjectionPanel.js → QueryBuilderTDSPanel.js} +37 -38
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -0
- package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +1 -1
- package/lib/components/filter/QueryBuilderFilterPanel.js +3 -3
- package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
- package/lib/components/shared/LambdaEditor.d.ts +1 -11
- package/lib/components/shared/LambdaEditor.d.ts.map +1 -1
- package/lib/components/shared/LambdaEditor.js +23 -63
- package/lib/components/shared/LambdaEditor.js.map +1 -1
- package/lib/components/workflows/ServiceQueryBuilder.d.ts.map +1 -1
- package/lib/components/workflows/ServiceQueryBuilder.js +14 -17
- package/lib/components/workflows/ServiceQueryBuilder.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +6 -4
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +6 -4
- package/lib/index.js.map +1 -1
- package/lib/package.json +6 -7
- package/lib/stores/QueryBuilderChangeDetectionState.js +1 -1
- package/lib/stores/QueryBuilderChangeDetectionState.js.map +1 -1
- package/lib/stores/QueryBuilderCommand.d.ts +21 -0
- package/lib/stores/QueryBuilderCommand.d.ts.map +1 -0
- package/lib/stores/QueryBuilderCommand.js +26 -0
- package/lib/stores/QueryBuilderCommand.js.map +1 -0
- package/lib/stores/QueryBuilderPreviewDataHelper.js +25 -25
- package/lib/stores/QueryBuilderPreviewDataHelper.js.map +1 -1
- package/lib/stores/QueryBuilderState.d.ts +4 -4
- package/lib/stores/QueryBuilderState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderState.js +13 -7
- package/lib/stores/QueryBuilderState.js.map +1 -1
- package/lib/stores/QueryBuilderStateBuilder.js +3 -3
- package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
- package/lib/stores/QueryBuilderTypeaheadHelper.d.ts +2 -2
- package/lib/stores/QueryBuilderTypeaheadHelper.d.ts.map +1 -1
- package/lib/stores/QueryBuilderTypeaheadHelper.js +14 -14
- package/lib/stores/QueryBuilderTypeaheadHelper.js.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationHelper.js +3 -4
- package/lib/stores/QueryBuilderValueSpecificationHelper.js.map +1 -1
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts +1 -1
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js +1 -1
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js.map +1 -1
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.js +4 -4
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.js.map +1 -1
- package/lib/stores/fetch-structure/{projection/QueryBuilderProjectionState.d.ts → tds/QueryBuilderTDSState.d.ts} +4 -4
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection/QueryBuilderProjectionState.js → tds/QueryBuilderTDSState.js} +27 -27
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/QueryResultSetModifierState.d.ts +4 -4
- package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/QueryResultSetModifierState.js +4 -4
- package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregateOperator.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateOperator.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregateOperator.js +2 -2
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateOperator.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregateOperatorLoader.d.ts +0 -0
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateOperatorLoader.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregateOperatorLoader.js +0 -0
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateOperatorLoader.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregationState.d.ts +4 -4
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregationState.js +5 -5
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregationStateBuilder.d.ts +0 -0
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregationStateBuilder.js +10 -10
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.js +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Average.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Average.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Average.js +2 -2
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Average.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Count.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Count.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Count.js +2 -2
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Count.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Distinct.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Distinct.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js +3 -3
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_JoinString.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_JoinString.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js +3 -3
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Max.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Max.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Max.js +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Max.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Min.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Min.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Min.js +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Min.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js +3 -3
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js +3 -3
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Sum.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Sum.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Sum.js +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Sum.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterOperator.d.ts +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterOperator.js +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterOperatorLoader.d.ts +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperatorLoader.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterOperatorLoader.js +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperatorLoader.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterState.d.ts +4 -4
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterState.js +10 -12
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterStateBuilder.d.ts +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterStateBuilder.js +13 -14
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.d.ts +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js +3 -3
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperatorHelper.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js +2 -2
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.d.ts +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js +4 -4
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js +4 -4
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js +7 -7
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js +4 -4
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_In.js +5 -5
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js +4 -4
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js +4 -4
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds/projection}/QueryBuilderProjectionColumnState.d.ts +9 -9
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds/projection}/QueryBuilderProjectionColumnState.js +20 -20
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds/projection}/QueryBuilderProjectionStateBuilder.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds/projection}/QueryBuilderProjectionStateBuilder.js +19 -19
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds/projection}/QueryBuilderProjectionValueSpecificationBuilder.d.ts +2 -2
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds/projection}/QueryBuilderProjectionValueSpecificationBuilder.js +28 -28
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -0
- package/lib/stores/filter/QueryBuilderFilterState.d.ts +1 -1
- package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +1 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts.map +1 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.js +3 -4
- package/lib/stores/shared/ValueSpecificationEditorHelper.js.map +1 -1
- package/lib/stores/workflows/ServiceQueryBuilderState.d.ts +3 -1
- package/lib/stores/workflows/ServiceQueryBuilderState.d.ts.map +1 -1
- package/lib/stores/workflows/ServiceQueryBuilderState.js +5 -1
- package/lib/stores/workflows/ServiceQueryBuilderState.js.map +1 -1
- package/package.json +13 -14
- package/src/components/QueryBuilder.tsx +96 -168
- package/src/components/QueryBuilderDiffPanel.tsx +3 -4
- package/src/components/QueryBuilderNavigationBlocker.tsx +62 -0
- package/src/components/QueryBuilderResultPanel.tsx +39 -48
- package/src/components/QueryBuilderSideBar.tsx +1 -0
- package/src/components/QueryBuilderTextEditor.tsx +3 -4
- package/src/components/QueryBuilder_LegendApplicationPlugin.ts +44 -0
- package/src/components/QueryBuilder_TestID.ts +1 -1
- package/src/components/explorer/QueryBuilderExplorerPanel.tsx +4 -6
- package/src/components/explorer/QueryBuilderFunctionsExplorerPanel.tsx +2 -4
- package/src/components/fetch-structure/QueryBuilderFetchStructurePanel.tsx +4 -8
- package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +35 -46
- package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +17 -20
- package/src/components/fetch-structure/{QueryBuilderProjectionPanel.tsx → QueryBuilderTDSPanel.tsx} +47 -57
- package/src/components/filter/QueryBuilderFilterPanel.tsx +4 -7
- package/src/components/shared/LambdaEditor.tsx +22 -85
- package/src/components/workflows/ServiceQueryBuilder.tsx +34 -65
- package/src/index.ts +9 -4
- package/src/stores/QueryBuilderChangeDetectionState.ts +1 -1
- package/src/stores/QueryBuilderCommand.ts +28 -0
- package/src/stores/QueryBuilderPreviewDataHelper.ts +28 -28
- package/src/stores/QueryBuilderState.ts +31 -10
- package/src/stores/QueryBuilderStateBuilder.ts +3 -3
- package/src/stores/QueryBuilderTypeaheadHelper.ts +18 -18
- package/src/stores/QueryBuilderValueSpecificationHelper.ts +3 -3
- package/src/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.ts +1 -1
- package/src/stores/fetch-structure/QueryBuilderFetchStructureState.ts +4 -4
- package/src/stores/fetch-structure/{projection/QueryBuilderProjectionState.ts → tds/QueryBuilderTDSState.ts} +32 -27
- package/src/stores/fetch-structure/{projection → tds}/QueryResultSetModifierState.ts +6 -6
- package/src/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregateOperator.ts +2 -2
- package/src/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregateOperatorLoader.ts +0 -0
- package/src/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregationState.ts +10 -10
- package/src/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregationStateBuilder.ts +10 -12
- package/src/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.ts +2 -2
- package/src/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Average.ts +2 -2
- package/src/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Count.ts +2 -2
- package/src/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Distinct.ts +1 -1
- package/src/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.ts +3 -3
- package/src/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_JoinString.ts +3 -3
- package/src/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Max.ts +1 -1
- package/src/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Min.ts +1 -1
- package/src/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.ts +3 -3
- package/src/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.ts +3 -3
- package/src/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Sum.ts +1 -1
- package/src/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterOperator.ts +0 -0
- package/src/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterOperatorLoader.ts +0 -0
- package/src/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterState.ts +15 -17
- package/src/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterStateBuilder.ts +13 -15
- package/src/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.ts +3 -3
- package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperatorHelper.ts +2 -2
- package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.ts +1 -1
- package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_Contain.ts +4 -4
- package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.ts +4 -4
- package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_Equal.ts +7 -7
- package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.ts +4 -4
- package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.ts +0 -0
- package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_In.ts +5 -5
- package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.ts +1 -1
- package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.ts +4 -4
- package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.ts +0 -0
- package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts +4 -4
- package/src/stores/fetch-structure/{projection → tds/projection}/QueryBuilderProjectionColumnState.ts +23 -27
- package/src/stores/fetch-structure/{projection → tds/projection}/QueryBuilderProjectionStateBuilder.ts +23 -24
- package/src/stores/fetch-structure/{projection → tds/projection}/QueryBuilderProjectionValueSpecificationBuilder.ts +40 -45
- package/src/stores/filter/QueryBuilderFilterState.ts +1 -1
- package/src/stores/shared/ValueSpecificationEditorHelper.ts +3 -4
- package/src/stores/workflows/ServiceQueryBuilderState.ts +6 -0
- package/tsconfig.json +41 -39
- package/lib/components/fetch-structure/QueryBuilderProjectionPanel.d.ts.map +0 -1
- package/lib/components/fetch-structure/QueryBuilderProjectionPanel.js.map +0 -1
- package/lib/components/shared/QueryBuilderLambdaEditor.d.ts +0 -43
- package/lib/components/shared/QueryBuilderLambdaEditor.d.ts.map +0 -1
- package/lib/components/shared/QueryBuilderLambdaEditor.js +0 -48
- package/lib/components/shared/QueryBuilderLambdaEditor.js.map +0 -1
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.js.map +0 -1
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.js.map +0 -1
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionStateBuilder.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionStateBuilder.js.map +0 -1
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +0 -1
- package/lib/stores/fetch-structure/projection/QueryResultSetModifierState.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/QueryResultSetModifierState.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js.map +0 -1
- package/src/components/shared/QueryBuilderLambdaEditor.tsx +0 -120
@@ -62,22 +62,22 @@ import type { CellMouseOverEvent } from '@ag-grid-community/core';
|
|
62
62
|
import {
|
63
63
|
QueryBuilderDerivationProjectionColumnState,
|
64
64
|
QueryBuilderProjectionColumnState,
|
65
|
-
} from '../stores/fetch-structure/projection/QueryBuilderProjectionColumnState.js';
|
65
|
+
} from '../stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js';
|
66
66
|
import {
|
67
67
|
type QueryBuilderPostFilterTreeNodeData,
|
68
68
|
PostFilterConditionState,
|
69
69
|
QueryBuilderPostFilterTreeConditionNodeData,
|
70
|
-
} from '../stores/fetch-structure/
|
70
|
+
} from '../stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js';
|
71
71
|
import {
|
72
72
|
QueryBuilderPostFilterOperator_Equal,
|
73
73
|
QueryBuilderPostFilterOperator_NotEqual,
|
74
|
-
} from '../stores/fetch-structure/
|
74
|
+
} from '../stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js';
|
75
75
|
import {
|
76
76
|
QueryBuilderPostFilterOperator_In,
|
77
77
|
QueryBuilderPostFilterOperator_NotIn,
|
78
|
-
} from '../stores/fetch-structure/
|
79
|
-
import type { QueryBuilderPostFilterOperator } from '../stores/fetch-structure/
|
80
|
-
import {
|
78
|
+
} from '../stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.js';
|
79
|
+
import type { QueryBuilderPostFilterOperator } from '../stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.js';
|
80
|
+
import { QueryBuilderTDSState } from '../stores/fetch-structure/tds/QueryBuilderTDSState.js';
|
81
81
|
import {
|
82
82
|
instanceValue_setValue,
|
83
83
|
instanceValue_setValues,
|
@@ -89,22 +89,22 @@ const QueryBuilderGridResultContextMenu = observer(
|
|
89
89
|
HTMLDivElement,
|
90
90
|
{
|
91
91
|
event: CellMouseOverEvent | null;
|
92
|
-
|
92
|
+
tdsState: QueryBuilderTDSState;
|
93
93
|
}
|
94
94
|
>(function QueryBuilderResultContextMenu(props, ref) {
|
95
|
-
const { event,
|
95
|
+
const { event, tdsState } = props;
|
96
96
|
const applicationStore = useApplicationStore();
|
97
97
|
const postFilterEqualOperator = new QueryBuilderPostFilterOperator_Equal();
|
98
98
|
const postFilterInOperator = new QueryBuilderPostFilterOperator_In();
|
99
99
|
const postFilterNotEqualOperator =
|
100
100
|
new QueryBuilderPostFilterOperator_NotEqual();
|
101
101
|
const postFilterNotInOperator = new QueryBuilderPostFilterOperator_NotIn();
|
102
|
-
const postFilterState =
|
102
|
+
const postFilterState = tdsState.postFilterState;
|
103
103
|
const projectionColumnState = guaranteeNonNullable(
|
104
|
-
|
104
|
+
tdsState.projectionColumns
|
105
105
|
.filter((c) => c.columnName === event?.column.getColId())
|
106
106
|
.concat(
|
107
|
-
|
107
|
+
tdsState.aggregationState.columns
|
108
108
|
.filter((c) => c.columnName === event?.column.getColId())
|
109
109
|
.map((ag) => ag.projectionColumnState),
|
110
110
|
)[0],
|
@@ -256,7 +256,7 @@ const QueryBuilderGridResultContextMenu = observer(
|
|
256
256
|
};
|
257
257
|
|
258
258
|
const filterByOrOut = (isFilterBy: boolean): void => {
|
259
|
-
|
259
|
+
tdsState.setShowPostFilterPanel(true);
|
260
260
|
const existingPostFilterNode = getExistingPostFilterNode(
|
261
261
|
isFilterBy
|
262
262
|
? [postFilterEqualOperator, postFilterInOperator]
|
@@ -320,18 +320,16 @@ const QueryBuilderGridResult = observer(
|
|
320
320
|
<ContextMenu
|
321
321
|
content={
|
322
322
|
// NOTE: we only support this functionality for grid result with a projection fetch-structure
|
323
|
-
fetchStructureImplementation instanceof
|
324
|
-
QueryBuilderProjectionState ? (
|
323
|
+
fetchStructureImplementation instanceof QueryBuilderTDSState ? (
|
325
324
|
<QueryBuilderGridResultContextMenu
|
326
325
|
event={cellDoubleClickedEvent}
|
327
|
-
|
326
|
+
tdsState={fetchStructureImplementation}
|
328
327
|
/>
|
329
328
|
) : null
|
330
329
|
}
|
331
330
|
disabled={
|
332
|
-
!(
|
333
|
-
|
334
|
-
) || !queryBuilderState.isQuerySupported
|
331
|
+
!(fetchStructureImplementation instanceof QueryBuilderTDSState) ||
|
332
|
+
!queryBuilderState.isQuerySupported
|
335
333
|
}
|
336
334
|
menuProps={{ elevation: 7 }}
|
337
335
|
key={executionResult._UUID}
|
@@ -537,28 +535,28 @@ export const QueryBuilderResultPanel = observer(
|
|
537
535
|
</div>
|
538
536
|
</button>
|
539
537
|
) : (
|
540
|
-
<
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
538
|
+
<div className="query-builder__result__execute-btn">
|
539
|
+
<button
|
540
|
+
className="query-builder__result__execute-btn__label"
|
541
|
+
onClick={runQuery}
|
542
|
+
tabIndex={-1}
|
543
|
+
title={
|
544
|
+
queryValidationIssues
|
545
|
+
? `Query is not valid:\n${queryValidationIssues
|
546
|
+
.map((issue) => `\u2022 ${issue}`)
|
547
|
+
.join('\n')}`
|
548
|
+
: undefined
|
549
|
+
}
|
550
|
+
disabled={!isQueryValid}
|
551
|
+
>
|
554
552
|
<PlayIcon className="query-builder__result__execute-btn__label__icon" />
|
555
553
|
<div className="query-builder__result__execute-btn__label__title">
|
556
554
|
Run Query
|
557
555
|
</div>
|
558
|
-
</
|
556
|
+
</button>
|
559
557
|
<DropdownMenu
|
560
558
|
className="query-builder__result__execute-btn__dropdown-btn"
|
561
|
-
disabled={resultState.isGeneratingPlan}
|
559
|
+
disabled={resultState.isGeneratingPlan || !isQueryValid}
|
562
560
|
content={
|
563
561
|
<MenuContent>
|
564
562
|
<MenuContentItem
|
@@ -582,10 +580,12 @@ export const QueryBuilderResultPanel = observer(
|
|
582
580
|
>
|
583
581
|
<CaretDownIcon />
|
584
582
|
</DropdownMenu>
|
585
|
-
</
|
583
|
+
</div>
|
586
584
|
)}
|
587
585
|
<DropdownMenu
|
588
586
|
className="query-builder__result__export__dropdown"
|
587
|
+
title="Export"
|
588
|
+
disabled={!isQueryValid}
|
589
589
|
content={
|
590
590
|
<MenuContent>
|
591
591
|
{Object.values(EXECUTION_SERIALIZATION_FORMAT).map(
|
@@ -607,21 +607,12 @@ export const QueryBuilderResultPanel = observer(
|
|
607
607
|
elevation: 7,
|
608
608
|
}}
|
609
609
|
>
|
610
|
-
<
|
611
|
-
className="query-builder__result__export__dropdown__label"
|
612
|
-
tabIndex={-1}
|
613
|
-
title="Export"
|
614
|
-
disabled={!isQueryValid}
|
615
|
-
>
|
610
|
+
<div className="query-builder__result__export__dropdown__label">
|
616
611
|
Export
|
617
|
-
</
|
618
|
-
<
|
619
|
-
className="query-builder__result__export__dropdown__trigger"
|
620
|
-
tabIndex={-1}
|
621
|
-
disabled={!isQueryValid}
|
622
|
-
>
|
612
|
+
</div>
|
613
|
+
<div className="query-builder__result__export__dropdown__trigger">
|
623
614
|
<CaretDownIcon />
|
624
|
-
</
|
615
|
+
</div>
|
625
616
|
</DropdownMenu>
|
626
617
|
</div>
|
627
618
|
</div>
|
@@ -20,12 +20,12 @@ import { clsx, Dialog } from '@finos/legend-art';
|
|
20
20
|
import type { QueryBuilderState } from '../stores/QueryBuilderState.js';
|
21
21
|
import { QueryBuilderTextEditorMode } from '../stores/QueryBuilderTextEditorState.js';
|
22
22
|
import { flowResult } from 'mobx';
|
23
|
-
import { QueryBuilderLambdaEditor } from './shared/QueryBuilderLambdaEditor.js';
|
24
23
|
import {
|
25
24
|
EDITOR_LANGUAGE,
|
26
25
|
TextInputEditor,
|
27
26
|
useApplicationStore,
|
28
27
|
} from '@finos/legend-application';
|
28
|
+
import { LambdaEditor } from './shared/LambdaEditor.js';
|
29
29
|
|
30
30
|
export const QueryBuilderTextEditor = observer(
|
31
31
|
(props: { queryBuilderState: QueryBuilderState }) => {
|
@@ -38,7 +38,7 @@ export const QueryBuilderTextEditor = observer(
|
|
38
38
|
const discardChanges = (): void => {
|
39
39
|
queryBuilderState.textEditorState.setMode(undefined);
|
40
40
|
// force close the backdrop just in case changes are discarded when there are grammar issues
|
41
|
-
|
41
|
+
applicationStore.setShowBackdrop(false);
|
42
42
|
};
|
43
43
|
const mode = queryTextEditorState.mode;
|
44
44
|
useEffect(() => {
|
@@ -82,10 +82,9 @@ export const QueryBuilderTextEditor = observer(
|
|
82
82
|
})}
|
83
83
|
>
|
84
84
|
{mode === QueryBuilderTextEditorMode.TEXT && (
|
85
|
-
<
|
85
|
+
<LambdaEditor
|
86
86
|
className="query-builder-text-mode__lambda-editor"
|
87
87
|
disabled={queryTextEditorState.isConvertingLambdaToString}
|
88
|
-
queryBuilderState={queryBuilderState}
|
89
88
|
lambdaEditorState={queryTextEditorState}
|
90
89
|
forceBackdrop={false}
|
91
90
|
forceExpansion={true}
|
@@ -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
|
+
|
17
|
+
import {
|
18
|
+
collectKeyedCommandConfigEntriesFromConfig,
|
19
|
+
LegendApplicationPlugin,
|
20
|
+
type KeyedCommandConfigEntry,
|
21
|
+
type LegendApplicationPluginManager,
|
22
|
+
} from '@finos/legend-application';
|
23
|
+
import packageJson from '../../package.json';
|
24
|
+
import { QUERY_BUILDER_COMMAND_CONFIG } from '../stores/QueryBuilderCommand.js';
|
25
|
+
|
26
|
+
export class QueryBuilder_LegendApplicationPlugin extends LegendApplicationPlugin {
|
27
|
+
static NAME = packageJson.extensions.applicationPlugin;
|
28
|
+
|
29
|
+
constructor() {
|
30
|
+
super(QueryBuilder_LegendApplicationPlugin.NAME, packageJson.version);
|
31
|
+
}
|
32
|
+
|
33
|
+
install(
|
34
|
+
pluginManager: LegendApplicationPluginManager<LegendApplicationPlugin>,
|
35
|
+
): void {
|
36
|
+
pluginManager.registerApplicationPlugin(this);
|
37
|
+
}
|
38
|
+
|
39
|
+
override getExtraKeyedCommandConfigEntries(): KeyedCommandConfigEntry[] {
|
40
|
+
return collectKeyedCommandConfigEntriesFromConfig(
|
41
|
+
QUERY_BUILDER_COMMAND_CONFIG,
|
42
|
+
);
|
43
|
+
}
|
44
|
+
}
|
@@ -19,7 +19,7 @@ export enum QUERY_BUILDER_TEST_ID {
|
|
19
19
|
|
20
20
|
QUERY_BUILDER = 'query__builder',
|
21
21
|
QUERY_BUILDER_SETUP = 'query__builder__setup',
|
22
|
-
|
22
|
+
QUERY_BUILDER_TDS = 'query__builder__tds',
|
23
23
|
QUERY_BUILDER_GRAPH_FETCH = 'query__builder__graph__fetch',
|
24
24
|
QUERY_BUILDER_FILTER = 'query__builder__filter',
|
25
25
|
QUERY_BUILDER_POST_FILTER = 'query__builder__post-filter',
|
@@ -436,7 +436,7 @@ const QueryBuilderExplorerTreeNodeContainer = observer(
|
|
436
436
|
}
|
437
437
|
disabled={
|
438
438
|
!(node instanceof QueryBuilderExplorerTreePropertyNodeData) ||
|
439
|
-
|
439
|
+
applicationStore.showBackdrop
|
440
440
|
}
|
441
441
|
menuProps={{ elevation: 7 }}
|
442
442
|
onOpen={onContextMenuOpen}
|
@@ -801,7 +801,7 @@ export const QueryBuilderExplorerPanel = observer(
|
|
801
801
|
<div
|
802
802
|
data-testid={QUERY_BUILDER_TEST_ID.QUERY_BUILDER_EXPLORER}
|
803
803
|
className={clsx('panel query-builder__explorer', {
|
804
|
-
backdrop__element:
|
804
|
+
backdrop__element: applicationStore.showBackdrop,
|
805
805
|
})}
|
806
806
|
>
|
807
807
|
<div className="panel__header">
|
@@ -831,6 +831,7 @@ export const QueryBuilderExplorerPanel = observer(
|
|
831
831
|
</button>
|
832
832
|
<DropdownMenu
|
833
833
|
className="panel__header__action"
|
834
|
+
title="Show Options Menu..."
|
834
835
|
content={
|
835
836
|
<MenuContent>
|
836
837
|
<MenuContentItem onClick={toggleShowUnmappedProperties}>
|
@@ -871,10 +872,7 @@ export const QueryBuilderExplorerPanel = observer(
|
|
871
872
|
elevation: 7,
|
872
873
|
}}
|
873
874
|
>
|
874
|
-
<MoreVerticalIcon
|
875
|
-
title="Show Options Menu..."
|
876
|
-
className="query-builder__icon__more-options"
|
877
|
-
/>
|
875
|
+
<MoreVerticalIcon className="query-builder__icon__more-options" />
|
878
876
|
</DropdownMenu>
|
879
877
|
</div>
|
880
878
|
{propertySearchPanelState.isSearchPanelOpen && (
|
@@ -454,6 +454,7 @@ export const QueryBuilderFunctionsExplorerPanel = observer(
|
|
454
454
|
</div>
|
455
455
|
<DropdownMenu
|
456
456
|
className="panel__header__action"
|
457
|
+
title="Show Options Menu..."
|
457
458
|
content={
|
458
459
|
<MenuContent>
|
459
460
|
<MenuContentItem onClick={toggleShowDependencyFuncions}>
|
@@ -472,10 +473,7 @@ export const QueryBuilderFunctionsExplorerPanel = observer(
|
|
472
473
|
elevation: 7,
|
473
474
|
}}
|
474
475
|
>
|
475
|
-
<MoreVerticalIcon
|
476
|
-
title="Show Options Menu..."
|
477
|
-
className="query-builder__icon__more-options"
|
478
|
-
/>
|
476
|
+
<MoreVerticalIcon className="query-builder__icon__more-options" />
|
479
477
|
</DropdownMenu>
|
480
478
|
</div>
|
481
479
|
</div>
|
@@ -23,9 +23,9 @@ import {
|
|
23
23
|
} from '@finos/legend-art';
|
24
24
|
import type { QueryBuilderState } from '../../stores/QueryBuilderState.js';
|
25
25
|
import { prettyCONSTName } from '@finos/legend-shared';
|
26
|
-
import {
|
26
|
+
import { QueryBuilderTDSPanel } from './QueryBuilderTDSPanel.js';
|
27
27
|
import { QueryBuilderGraphFetchTreePanel } from './QueryBuilderGraphFetchTreePanel.js';
|
28
|
-
import {
|
28
|
+
import { QueryBuilderTDSState } from '../../stores/fetch-structure/tds/QueryBuilderTDSState.js';
|
29
29
|
import { QueryBuilderGraphFetchTreeState } from '../../stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js';
|
30
30
|
import { QueryBuilderPanelIssueCountBadge } from '../shared/QueryBuilderPanelIssueCountBadge.js';
|
31
31
|
import { FETCH_STRUCTURE_IMPLEMENTATION } from '../../stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js';
|
@@ -36,12 +36,8 @@ const QueryBuilderFetchStructureEditor = observer(
|
|
36
36
|
const fetchStructureState = queryBuilderState.fetchStructureState;
|
37
37
|
const fetchStructureImplementation = fetchStructureState.implementation;
|
38
38
|
|
39
|
-
if (fetchStructureImplementation instanceof
|
40
|
-
return
|
41
|
-
<QueryBuilderProjectionPanel
|
42
|
-
projectionState={fetchStructureImplementation}
|
43
|
-
/>
|
44
|
-
);
|
39
|
+
if (fetchStructureImplementation instanceof QueryBuilderTDSState) {
|
40
|
+
return <QueryBuilderTDSPanel tdsState={fetchStructureImplementation} />;
|
45
41
|
} else if (
|
46
42
|
fetchStructureImplementation instanceof QueryBuilderGraphFetchTreeState
|
47
43
|
) {
|
@@ -70,9 +70,9 @@ import { flowResult } from 'mobx';
|
|
70
70
|
import { observer } from 'mobx-react-lite';
|
71
71
|
import { forwardRef, useCallback, useMemo, useRef, useState } from 'react';
|
72
72
|
import { useDrop, useDrag } from 'react-dnd';
|
73
|
-
import { getColumnMultiplicity } from '../../stores/fetch-structure/
|
74
|
-
import { QueryBuilderAggregateColumnState } from '../../stores/fetch-structure/
|
75
|
-
import type { QueryBuilderPostFilterOperator } from '../../stores/fetch-structure/
|
73
|
+
import { getColumnMultiplicity } from '../../stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js';
|
74
|
+
import { QueryBuilderAggregateColumnState } from '../../stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js';
|
75
|
+
import type { QueryBuilderPostFilterOperator } from '../../stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.js';
|
76
76
|
import {
|
77
77
|
type QueryBuilderPostFilterTreeNodeData,
|
78
78
|
type QueryBuilderPostFilterDropTarget,
|
@@ -82,13 +82,13 @@ import {
|
|
82
82
|
QueryBuilderPostFilterTreeGroupNodeData,
|
83
83
|
QUERY_BUILDER_POST_FILTER_DND_TYPE,
|
84
84
|
QueryBuilderPostFilterTreeBlankConditionNodeData,
|
85
|
-
} from '../../stores/fetch-structure/
|
85
|
+
} from '../../stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js';
|
86
86
|
import {
|
87
87
|
type QueryBuilderProjectionColumnState,
|
88
88
|
type QueryBuilderProjectionColumnDragSource,
|
89
89
|
QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE,
|
90
90
|
QueryBuilderDerivationProjectionColumnState,
|
91
|
-
} from '../../stores/fetch-structure/projection/QueryBuilderProjectionColumnState.js';
|
91
|
+
} from '../../stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js';
|
92
92
|
import type { QueryBuilderState } from '../../stores/QueryBuilderState.js';
|
93
93
|
import {
|
94
94
|
type QueryBuilderParameterDragSource,
|
@@ -97,19 +97,19 @@ import {
|
|
97
97
|
import { QUERY_BUILDER_TEST_ID } from '../QueryBuilder_TestID.js';
|
98
98
|
import { isTypeCompatibleForAssignment } from '../../stores/QueryBuilderValueSpecificationHelper.js';
|
99
99
|
import { QUERY_BUILDER_GROUP_OPERATION } from '../../stores/QueryBuilderGroupOperationHelper.js';
|
100
|
-
import {
|
100
|
+
import { QueryBuilderTDSState } from '../../stores/fetch-structure/tds/QueryBuilderTDSState.js';
|
101
101
|
import { BasicValueSpecificationEditor } from '../shared/BasicValueSpecificationEditor.js';
|
102
102
|
|
103
103
|
const QueryBuilderPostFilterConditionContextMenu = observer(
|
104
104
|
forwardRef<
|
105
105
|
HTMLDivElement,
|
106
106
|
{
|
107
|
-
|
107
|
+
tdsState: QueryBuilderTDSState;
|
108
108
|
node: QueryBuilderPostFilterTreeNodeData;
|
109
109
|
}
|
110
110
|
>(function QueryBuilderPostFilterConditionContextMenu(props, ref) {
|
111
|
-
const {
|
112
|
-
const postFilterState =
|
111
|
+
const { tdsState, node } = props;
|
112
|
+
const postFilterState = tdsState.postFilterState;
|
113
113
|
const removeNode = (): void =>
|
114
114
|
postFilterState.removeNodeAndPruneBranch(node);
|
115
115
|
const createCondition = (): void => {
|
@@ -365,7 +365,7 @@ const QueryBuilderPostFilterConditionEditor = observer(
|
|
365
365
|
}) => {
|
366
366
|
const { node, isDragOver } = props;
|
367
367
|
const graph =
|
368
|
-
node.condition.postFilterState.
|
368
|
+
node.condition.postFilterState.tdsState.queryBuilderState
|
369
369
|
.graphManagerState.graph;
|
370
370
|
const applicationStore = useApplicationStore();
|
371
371
|
const changeOperator = (val: QueryBuilderPostFilterOperator) => (): void =>
|
@@ -460,6 +460,7 @@ const QueryBuilderPostFilterConditionEditor = observer(
|
|
460
460
|
</div>
|
461
461
|
<DropdownMenu
|
462
462
|
className="query-builder-post-filter-tree__condition-node__operator"
|
463
|
+
title="Choose Operator..."
|
463
464
|
content={
|
464
465
|
<MenuContent>
|
465
466
|
{node.condition.operators.map((op) => (
|
@@ -482,13 +483,9 @@ const QueryBuilderPostFilterConditionEditor = observer(
|
|
482
483
|
<div className="query-builder-post-filter-tree__condition-node__operator__label">
|
483
484
|
{node.condition.operator.getLabel()}
|
484
485
|
</div>
|
485
|
-
<
|
486
|
-
className="query-builder-post-filter-tree__condition-node__operator__dropdown__trigger"
|
487
|
-
tabIndex={-1}
|
488
|
-
title="Choose Operator..."
|
489
|
-
>
|
486
|
+
<div className="query-builder-post-filter-tree__condition-node__operator__dropdown__trigger">
|
490
487
|
<CaretDownIcon />
|
491
|
-
</
|
488
|
+
</div>
|
492
489
|
</DropdownMenu>
|
493
490
|
{node.condition.value && (
|
494
491
|
<div
|
@@ -505,8 +502,8 @@ const QueryBuilderPostFilterConditionEditor = observer(
|
|
505
502
|
setValueSpecification={changeValueSpecification}
|
506
503
|
graph={graph}
|
507
504
|
obseverContext={
|
508
|
-
node.condition.postFilterState.
|
509
|
-
.
|
505
|
+
node.condition.postFilterState.tdsState.queryBuilderState
|
506
|
+
.observableContext
|
510
507
|
}
|
511
508
|
typeCheckOption={{
|
512
509
|
expectedType: guaranteeNonNullable(
|
@@ -553,17 +550,17 @@ const QueryBuilderPostFilterTreeNodeContainer = observer(
|
|
553
550
|
props: TreeNodeContainerProps<
|
554
551
|
QueryBuilderPostFilterTreeNodeData,
|
555
552
|
{
|
556
|
-
|
553
|
+
tdsState: QueryBuilderTDSState;
|
557
554
|
}
|
558
555
|
>,
|
559
556
|
) => {
|
560
557
|
const { node, level, stepPaddingInRem, onNodeSelect, innerProps } = props;
|
561
|
-
const {
|
558
|
+
const { tdsState } = innerProps;
|
562
559
|
const ref = useRef<HTMLDivElement>(null);
|
563
560
|
const [isSelectedFromContextMenu, setIsSelectedFromContextMenu] =
|
564
561
|
useState(false);
|
565
562
|
const applicationStore = useApplicationStore();
|
566
|
-
const postFilterState =
|
563
|
+
const postFilterState = tdsState.postFilterState;
|
567
564
|
const isExpandable =
|
568
565
|
node instanceof QueryBuilderPostFilterTreeGroupNodeData;
|
569
566
|
const selectNode = (): void => onNodeSelect?.(node);
|
@@ -674,7 +671,7 @@ const QueryBuilderPostFilterTreeNodeContainer = observer(
|
|
674
671
|
<ContextMenu
|
675
672
|
content={
|
676
673
|
<QueryBuilderPostFilterConditionContextMenu
|
677
|
-
|
674
|
+
tdsState={tdsState}
|
678
675
|
node={node}
|
679
676
|
/>
|
680
677
|
}
|
@@ -763,7 +760,7 @@ const QueryBuilderPostFilterTreeNodeView = observer(
|
|
763
760
|
props: TreeNodeViewProps<
|
764
761
|
QueryBuilderPostFilterTreeNodeData,
|
765
762
|
{
|
766
|
-
|
763
|
+
tdsState: QueryBuilderTDSState;
|
767
764
|
}
|
768
765
|
>,
|
769
766
|
) => {
|
@@ -801,9 +798,9 @@ const QueryBuilderPostFilterTreeNodeView = observer(
|
|
801
798
|
);
|
802
799
|
|
803
800
|
const QueryBuilderPostFilterTree = observer(
|
804
|
-
(props: {
|
805
|
-
const {
|
806
|
-
const postFilterState =
|
801
|
+
(props: { tdsState: QueryBuilderTDSState }) => {
|
802
|
+
const { tdsState } = props;
|
803
|
+
const postFilterState = tdsState.postFilterState;
|
807
804
|
const rootNodes = postFilterState.rootIds.map((rootId) =>
|
808
805
|
postFilterState.getNode(rootId),
|
809
806
|
);
|
@@ -829,7 +826,7 @@ const QueryBuilderPostFilterTree = observer(
|
|
829
826
|
getChildNodes={getChildNodes}
|
830
827
|
onNodeSelect={onNodeSelect}
|
831
828
|
innerProps={{
|
832
|
-
|
829
|
+
tdsState: tdsState,
|
833
830
|
}}
|
834
831
|
/>
|
835
832
|
))}
|
@@ -840,10 +837,10 @@ const QueryBuilderPostFilterTree = observer(
|
|
840
837
|
);
|
841
838
|
|
842
839
|
const QueryBuilderPostFilterPanelContent = observer(
|
843
|
-
(props: {
|
844
|
-
const {
|
840
|
+
(props: { tdsState: QueryBuilderTDSState }) => {
|
841
|
+
const { tdsState } = props;
|
845
842
|
const applicationStore = useApplicationStore();
|
846
|
-
const postFilterState =
|
843
|
+
const postFilterState = tdsState.postFilterState;
|
847
844
|
const rootNode = postFilterState.getRootNode();
|
848
845
|
// actions
|
849
846
|
const collapseTree = (): void => {
|
@@ -902,10 +899,9 @@ const QueryBuilderPostFilterPanelContent = observer(
|
|
902
899
|
try {
|
903
900
|
const columnState = (item as QueryBuilderProjectionColumnDragSource)
|
904
901
|
.columnState;
|
905
|
-
const aggregateColumnState =
|
906
|
-
|
907
|
-
|
908
|
-
);
|
902
|
+
const aggregateColumnState = tdsState.aggregationState.columns.find(
|
903
|
+
(column) => column.projectionColumnState === columnState,
|
904
|
+
);
|
909
905
|
if (
|
910
906
|
!aggregateColumnState &&
|
911
907
|
columnState instanceof QueryBuilderDerivationProjectionColumnState
|
@@ -938,11 +934,7 @@ const QueryBuilderPostFilterPanelContent = observer(
|
|
938
934
|
undefined,
|
939
935
|
);
|
940
936
|
},
|
941
|
-
[
|
942
|
-
applicationStore,
|
943
|
-
postFilterState,
|
944
|
-
projectionState.aggregationState.columns,
|
945
|
-
],
|
937
|
+
[applicationStore, postFilterState, tdsState.aggregationState.columns],
|
946
938
|
);
|
947
939
|
const [{ isDragOver }, dropTargetConnector] = useDrop<
|
948
940
|
QueryBuilderProjectionColumnDragSource,
|
@@ -1057,7 +1049,7 @@ const QueryBuilderPostFilterPanelContent = observer(
|
|
1057
1049
|
): string => item.node.dragPreviewLabel}
|
1058
1050
|
types={Object.values(QUERY_BUILDER_POST_FILTER_DND_TYPE)}
|
1059
1051
|
/>
|
1060
|
-
<QueryBuilderPostFilterTree
|
1052
|
+
<QueryBuilderPostFilterTree tdsState={tdsState} />
|
1061
1053
|
</>
|
1062
1054
|
)}
|
1063
1055
|
</PanelDropZone>
|
@@ -1078,15 +1070,12 @@ export const QueryBuilderPostFilterPanel = observer(
|
|
1078
1070
|
data-testid={QUERY_BUILDER_TEST_ID.QUERY_BUILDER_POST_FILTER}
|
1079
1071
|
className="panel"
|
1080
1072
|
>
|
1081
|
-
{fetchStructureImplementation instanceof
|
1082
|
-
QueryBuilderProjectionState && (
|
1073
|
+
{fetchStructureImplementation instanceof QueryBuilderTDSState && (
|
1083
1074
|
<QueryBuilderPostFilterPanelContent
|
1084
|
-
|
1075
|
+
tdsState={fetchStructureImplementation}
|
1085
1076
|
/>
|
1086
1077
|
)}
|
1087
|
-
{!(
|
1088
|
-
fetchStructureImplementation instanceof QueryBuilderProjectionState
|
1089
|
-
) && (
|
1078
|
+
{!(fetchStructureImplementation instanceof QueryBuilderTDSState) && (
|
1090
1079
|
<>
|
1091
1080
|
<div className="panel__header">
|
1092
1081
|
<div className="panel__header__title">
|