@finos/legend-query-builder 0.2.1 → 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
package/src/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterState.ts
RENAMED
@@ -56,14 +56,14 @@ import {
|
|
56
56
|
type QueryBuilderProjectionColumnState,
|
57
57
|
type QueryBuilderProjectionColumnDragSource,
|
58
58
|
QueryBuilderDerivationProjectionColumnState,
|
59
|
-
} from '../QueryBuilderProjectionColumnState.js';
|
59
|
+
} from '../projection/QueryBuilderProjectionColumnState.js';
|
60
60
|
import {
|
61
61
|
buildProjectionColumnTypeaheadQuery,
|
62
62
|
buildTypeaheadOptions,
|
63
63
|
performTypeahead,
|
64
64
|
} from '../../../QueryBuilderTypeaheadHelper.js';
|
65
65
|
import { QUERY_BUILDER_GROUP_OPERATION } from '../../../QueryBuilderGroupOperationHelper.js';
|
66
|
-
import type {
|
66
|
+
import type { QueryBuilderTDSState } from '../QueryBuilderTDSState.js';
|
67
67
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../graphManager/QueryBuilderHashUtils.js';
|
68
68
|
|
69
69
|
export enum QUERY_BUILDER_POST_FILTER_DND_TYPE {
|
@@ -365,21 +365,20 @@ export class PostFilterConditionState implements Hashable {
|
|
365
365
|
this.typeaheadSearchResults = undefined;
|
366
366
|
if (performTypeahead(this.value)) {
|
367
367
|
const result =
|
368
|
-
(yield this.postFilterState.
|
368
|
+
(yield this.postFilterState.tdsState.queryBuilderState.graphManagerState.graphManager.executeMapping(
|
369
369
|
buildProjectionColumnTypeaheadQuery(
|
370
|
-
this.postFilterState.
|
370
|
+
this.postFilterState.tdsState.queryBuilderState,
|
371
371
|
this.columnState,
|
372
372
|
this.value,
|
373
373
|
),
|
374
374
|
guaranteeNonNullable(
|
375
|
-
this.postFilterState.
|
375
|
+
this.postFilterState.tdsState.queryBuilderState.mapping,
|
376
376
|
),
|
377
377
|
guaranteeNonNullable(
|
378
|
-
this.postFilterState.
|
379
|
-
.runtimeValue,
|
378
|
+
this.postFilterState.tdsState.queryBuilderState.runtimeValue,
|
380
379
|
),
|
381
|
-
this.postFilterState.
|
382
|
-
.
|
380
|
+
this.postFilterState.tdsState.queryBuilderState.graphManagerState
|
381
|
+
.graph,
|
383
382
|
)) as ExecutionResult;
|
384
383
|
this.typeaheadSearchResults = buildTypeaheadOptions(result);
|
385
384
|
}
|
@@ -403,8 +402,7 @@ export class PostFilterConditionState implements Hashable {
|
|
403
402
|
this.value = val
|
404
403
|
? observe_ValueSpecification(
|
405
404
|
val,
|
406
|
-
this.postFilterState.
|
407
|
-
.observableContext,
|
405
|
+
this.postFilterState.tdsState.queryBuilderState.observableContext,
|
408
406
|
)
|
409
407
|
: undefined;
|
410
408
|
}
|
@@ -424,7 +422,7 @@ export class PostFilterConditionState implements Hashable {
|
|
424
422
|
): GeneratorFn<void> {
|
425
423
|
try {
|
426
424
|
const aggregateColumnState =
|
427
|
-
this.postFilterState.
|
425
|
+
this.postFilterState.tdsState.aggregationState.columns.find(
|
428
426
|
(column) => column.projectionColumnState === columnState,
|
429
427
|
);
|
430
428
|
const colState = aggregateColumnState ?? columnState;
|
@@ -446,7 +444,7 @@ export class PostFilterConditionState implements Hashable {
|
|
446
444
|
}
|
447
445
|
} catch (error) {
|
448
446
|
assertErrorThrown(error);
|
449
|
-
this.postFilterState.
|
447
|
+
this.postFilterState.tdsState.queryBuilderState.applicationStore.notifyError(
|
450
448
|
`Can't drag column '${columnState.columnName}' due to: ${error.message}`,
|
451
449
|
);
|
452
450
|
}
|
@@ -465,7 +463,7 @@ export class PostFilterConditionState implements Hashable {
|
|
465
463
|
export class QueryBuilderPostFilterState
|
466
464
|
implements TreeData<QueryBuilderPostFilterTreeNodeData>, Hashable
|
467
465
|
{
|
468
|
-
|
466
|
+
tdsState: QueryBuilderTDSState;
|
469
467
|
lambdaParameterName = DEFAULT_POST_FILTER_LAMBDA_VARIABLE_NAME;
|
470
468
|
selectedNode?: QueryBuilderPostFilterTreeNodeData | undefined;
|
471
469
|
isRearrangingConditions = false;
|
@@ -475,11 +473,11 @@ export class QueryBuilderPostFilterState
|
|
475
473
|
_suppressClickawayEventListener = false;
|
476
474
|
|
477
475
|
constructor(
|
478
|
-
|
476
|
+
tdsState: QueryBuilderTDSState,
|
479
477
|
operators: QueryBuilderPostFilterOperator[],
|
480
478
|
) {
|
481
479
|
makeObservable(this, {
|
482
|
-
|
480
|
+
tdsState: false,
|
483
481
|
selectedNode: observable,
|
484
482
|
isRearrangingConditions: observable,
|
485
483
|
rootIds: observable,
|
@@ -501,7 +499,7 @@ export class QueryBuilderPostFilterState
|
|
501
499
|
hashCode: computed,
|
502
500
|
});
|
503
501
|
|
504
|
-
this.
|
502
|
+
this.tdsState = tdsState;
|
505
503
|
this.operators = operators;
|
506
504
|
}
|
507
505
|
|
@@ -46,9 +46,9 @@ import {
|
|
46
46
|
import {
|
47
47
|
type QueryBuilderProjectionColumnState,
|
48
48
|
QueryBuilderDerivationProjectionColumnState,
|
49
|
-
} from '../QueryBuilderProjectionColumnState.js';
|
49
|
+
} from '../projection/QueryBuilderProjectionColumnState.js';
|
50
50
|
import { toGroupOperation } from '../../../QueryBuilderGroupOperationHelper.js';
|
51
|
-
import {
|
51
|
+
import { QueryBuilderTDSState } from '../QueryBuilderTDSState.js';
|
52
52
|
import type { QueryBuilderState } from '../../../QueryBuilderState.js';
|
53
53
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
54
54
|
|
@@ -56,7 +56,7 @@ const findProjectionColumnState = (
|
|
56
56
|
propertyExpression: AbstractPropertyExpression,
|
57
57
|
postFilterState: QueryBuilderPostFilterState,
|
58
58
|
): QueryBuilderProjectionColumnState | QueryBuilderAggregateColumnState => {
|
59
|
-
const
|
59
|
+
const tdsState = postFilterState.tdsState;
|
60
60
|
const properyExpressionName = propertyExpression.func.value.name;
|
61
61
|
assertTrue(
|
62
62
|
Object.values(TDS_COLUMN_GETTER).includes(
|
@@ -77,8 +77,8 @@ const findProjectionColumnState = (
|
|
77
77
|
'Can`t process TDS column expression: Column should be a string primitive instance value',
|
78
78
|
);
|
79
79
|
const columnStates = [
|
80
|
-
...
|
81
|
-
...
|
80
|
+
...tdsState.aggregationState.columns,
|
81
|
+
...tdsState.projectionColumns,
|
82
82
|
];
|
83
83
|
const columnState = guaranteeNonNullable(
|
84
84
|
columnStates.find((c) => c.columnName === columnName),
|
@@ -90,8 +90,7 @@ const findProjectionColumnState = (
|
|
90
90
|
if (columnState instanceof QueryBuilderDerivationProjectionColumnState) {
|
91
91
|
const type = getTypeFromDerivedProperty(
|
92
92
|
tdsColumnGetter,
|
93
|
-
postFilterState.
|
94
|
-
.graph,
|
93
|
+
postFilterState.tdsState.queryBuilderState.graphManagerState.graph,
|
95
94
|
);
|
96
95
|
if (type) {
|
97
96
|
columnState.setReturnType(type);
|
@@ -243,12 +242,11 @@ export const processTDSPostFilterExpression = (
|
|
243
242
|
): void => {
|
244
243
|
if (
|
245
244
|
queryBuilderState.fetchStructureState.implementation instanceof
|
246
|
-
|
245
|
+
QueryBuilderTDSState
|
247
246
|
) {
|
248
|
-
const
|
249
|
-
|
250
|
-
const
|
251
|
-
const fetchStructureState = projectionState.fetchStructureState;
|
247
|
+
const tdsState = queryBuilderState.fetchStructureState.implementation;
|
248
|
+
const postFilterState = tdsState.postFilterState;
|
249
|
+
const fetchStructureState = tdsState.fetchStructureState;
|
252
250
|
const postFilterLambda = expression.parametersValues[1];
|
253
251
|
assertType(
|
254
252
|
postFilterLambda,
|
@@ -258,11 +256,11 @@ export const processTDSPostFilterExpression = (
|
|
258
256
|
|
259
257
|
assertType(
|
260
258
|
fetchStructureState.implementation,
|
261
|
-
|
259
|
+
QueryBuilderTDSState,
|
262
260
|
`Can't process post-filter lambda: post-filter lambda must use projection fetch structure`,
|
263
261
|
);
|
264
262
|
assertTrue(
|
265
|
-
Boolean(
|
263
|
+
Boolean(tdsState.projectionColumns.length),
|
266
264
|
`Can't process post-filter lambda: post-filter lambda must have at least one projection column `,
|
267
265
|
);
|
268
266
|
const lambdaFunc = guaranteeNonNullable(
|
@@ -291,7 +289,7 @@ export const processTDSPostFilterExpression = (
|
|
291
289
|
);
|
292
290
|
processPostFilterTree(rootExpression, postFilterState, undefined);
|
293
291
|
|
294
|
-
|
292
|
+
tdsState.setShowPostFilterPanel(true);
|
295
293
|
postFilterState.simplifyTree();
|
296
294
|
}
|
297
295
|
};
|
@@ -42,7 +42,7 @@ const buildPostFilterExpression = (
|
|
42
42
|
);
|
43
43
|
} else if (node instanceof QueryBuilderPostFilterTreeGroupNodeData) {
|
44
44
|
const multiplicityOne =
|
45
|
-
postFilterState.
|
45
|
+
postFilterState.tdsState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
|
46
46
|
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
47
47
|
);
|
48
48
|
const func = new SimpleFunctionExpression(
|
@@ -101,13 +101,13 @@ export const appendPostFilter = (
|
|
101
101
|
return lambdaFunction;
|
102
102
|
}
|
103
103
|
const multiplicityOne =
|
104
|
-
postFilterState.
|
104
|
+
postFilterState.tdsState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
|
105
105
|
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
106
106
|
);
|
107
107
|
const filterLambda = buildGenericLambdaFunctionInstanceValue(
|
108
108
|
postFilterState.lambdaParameterName,
|
109
109
|
postFilterConditionExpressions,
|
110
|
-
postFilterState.
|
110
|
+
postFilterState.tdsState.queryBuilderState.graphManagerState.graph,
|
111
111
|
);
|
112
112
|
// main filter expression
|
113
113
|
const filterExpression = new SimpleFunctionExpression(
|
@@ -23,7 +23,7 @@ import { QueryBuilderAggregateColumnState } from '../../aggregation/QueryBuilder
|
|
23
23
|
import {
|
24
24
|
type QueryBuilderProjectionColumnState,
|
25
25
|
QueryBuilderSimpleProjectionColumnState,
|
26
|
-
} from '../../QueryBuilderProjectionColumnState.js';
|
26
|
+
} from '../../projection/QueryBuilderProjectionColumnState.js';
|
27
27
|
|
28
28
|
export const getColumnMultiplicity = (
|
29
29
|
columnState:
|
@@ -31,7 +31,7 @@ export const getColumnMultiplicity = (
|
|
31
31
|
| QueryBuilderAggregateColumnState,
|
32
32
|
): Multiplicity => {
|
33
33
|
if (columnState instanceof QueryBuilderAggregateColumnState) {
|
34
|
-
return columnState.aggregationState.
|
34
|
+
return columnState.aggregationState.tdsState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
|
35
35
|
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
36
36
|
);
|
37
37
|
} else if (columnState instanceof QueryBuilderSimpleProjectionColumnState) {
|
@@ -50,7 +50,7 @@ export const buildPostFilterConditionExpression = (
|
|
50
50
|
): FunctionExpression => {
|
51
51
|
// primitives
|
52
52
|
const graph =
|
53
|
-
filterConditionState.postFilterState.
|
53
|
+
filterConditionState.postFilterState.tdsState.queryBuilderState
|
54
54
|
.graphManagerState.graph;
|
55
55
|
const multiplicityOne = graph.getTypicalMultiplicity(
|
56
56
|
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
@@ -77,8 +77,8 @@ export class QueryBuilderPostFilterOperator_Contain
|
|
77
77
|
switch (propertyType.path) {
|
78
78
|
case PRIMITIVE_TYPE.STRING: {
|
79
79
|
return buildPrimitiveInstanceValue(
|
80
|
-
postFilterConditionState.postFilterState.
|
81
|
-
.
|
80
|
+
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
81
|
+
.graphManagerState.graph,
|
82
82
|
propertyType.path,
|
83
83
|
generateDefaultValueForPrimitiveType(propertyType.path),
|
84
84
|
);
|
@@ -134,8 +134,8 @@ export class QueryBuilderPostFilterOperator_NotContain extends QueryBuilderPostF
|
|
134
134
|
return expression
|
135
135
|
? buildNotExpression(
|
136
136
|
expression,
|
137
|
-
postFilterConditionState.postFilterState.
|
138
|
-
.
|
137
|
+
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
138
|
+
.graphManagerState.graph,
|
139
139
|
)
|
140
140
|
: undefined;
|
141
141
|
}
|
@@ -73,8 +73,8 @@ export class QueryBuilderPostFilterOperator_EndWith
|
|
73
73
|
switch (propertyType?.path) {
|
74
74
|
case PRIMITIVE_TYPE.STRING: {
|
75
75
|
return buildPrimitiveInstanceValue(
|
76
|
-
postFilterConditionState.postFilterState.
|
77
|
-
.
|
76
|
+
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
77
|
+
.graphManagerState.graph,
|
78
78
|
propertyType.path,
|
79
79
|
generateDefaultValueForPrimitiveType(propertyType.path),
|
80
80
|
);
|
@@ -131,8 +131,8 @@ export class QueryBuilderPostFilterOperator_NotEndWith extends QueryBuilderPostF
|
|
131
131
|
return expression
|
132
132
|
? buildNotExpression(
|
133
133
|
expression,
|
134
|
-
postFilterConditionState.postFilterState.
|
135
|
-
.
|
134
|
+
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
135
|
+
.graphManagerState.graph,
|
136
136
|
)
|
137
137
|
: undefined;
|
138
138
|
}
|
@@ -114,16 +114,16 @@ export class QueryBuilderPostFilterOperator_Equal
|
|
114
114
|
case PRIMITIVE_TYPE.FLOAT:
|
115
115
|
case PRIMITIVE_TYPE.INTEGER: {
|
116
116
|
return buildPrimitiveInstanceValue(
|
117
|
-
postFilterConditionState.postFilterState.
|
118
|
-
.
|
117
|
+
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
118
|
+
.graphManagerState.graph,
|
119
119
|
propertyType.path,
|
120
120
|
generateDefaultValueForPrimitiveType(propertyType.path),
|
121
121
|
);
|
122
122
|
}
|
123
123
|
case PRIMITIVE_TYPE.DATE: {
|
124
124
|
return buildPrimitiveInstanceValue(
|
125
|
-
postFilterConditionState.postFilterState.
|
126
|
-
.
|
125
|
+
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
126
|
+
.graphManagerState.graph,
|
127
127
|
PRIMITIVE_TYPE.STRICTDATE,
|
128
128
|
generateDefaultValueForPrimitiveType(propertyType.path),
|
129
129
|
);
|
@@ -132,7 +132,7 @@ export class QueryBuilderPostFilterOperator_Equal
|
|
132
132
|
if (propertyType instanceof Enumeration) {
|
133
133
|
if (propertyType.values.length > 0) {
|
134
134
|
const multiplicityOne =
|
135
|
-
postFilterConditionState.postFilterState.
|
135
|
+
postFilterConditionState.postFilterState.tdsState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
|
136
136
|
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
137
137
|
);
|
138
138
|
const enumValueInstanceValue = new EnumValueInstanceValue(
|
@@ -211,8 +211,8 @@ export class QueryBuilderPostFilterOperator_NotEqual extends QueryBuilderPostFil
|
|
211
211
|
return expression
|
212
212
|
? buildNotExpression(
|
213
213
|
expression,
|
214
|
-
postFilterConditionState.postFilterState.
|
215
|
-
.
|
214
|
+
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
215
|
+
.graphManagerState.graph,
|
216
216
|
)
|
217
217
|
: undefined;
|
218
218
|
}
|
@@ -91,16 +91,16 @@ export class QueryBuilderPostFilterOperator_GreaterThan
|
|
91
91
|
case PRIMITIVE_TYPE.STRICTDATE:
|
92
92
|
case PRIMITIVE_TYPE.DATETIME: {
|
93
93
|
return buildPrimitiveInstanceValue(
|
94
|
-
postFilterConditionState.postFilterState.
|
95
|
-
.
|
94
|
+
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
95
|
+
.graphManagerState.graph,
|
96
96
|
propertyType.path,
|
97
97
|
generateDefaultValueForPrimitiveType(propertyType.path),
|
98
98
|
);
|
99
99
|
}
|
100
100
|
case PRIMITIVE_TYPE.DATE: {
|
101
101
|
return buildPrimitiveInstanceValue(
|
102
|
-
postFilterConditionState.postFilterState.
|
103
|
-
.
|
102
|
+
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
103
|
+
.graphManagerState.graph,
|
104
104
|
PRIMITIVE_TYPE.STRICTDATE,
|
105
105
|
generateDefaultValueForPrimitiveType(propertyType.path),
|
106
106
|
);
|
File without changes
|
@@ -83,8 +83,8 @@ export class QueryBuilderPostFilterOperator_In
|
|
83
83
|
return true;
|
84
84
|
}
|
85
85
|
const collectionType = getCollectionValueSpecificationType(
|
86
|
-
postFilterConditionState.postFilterState.
|
87
|
-
.
|
86
|
+
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
87
|
+
.graphManagerState.graph,
|
88
88
|
valueSpec.values,
|
89
89
|
);
|
90
90
|
if (!collectionType) {
|
@@ -124,7 +124,7 @@ export class QueryBuilderPostFilterOperator_In
|
|
124
124
|
postFilterConditionState: PostFilterConditionState,
|
125
125
|
): ValueSpecification {
|
126
126
|
const multiplicityOne =
|
127
|
-
postFilterConditionState.postFilterState.
|
127
|
+
postFilterConditionState.postFilterState.tdsState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
|
128
128
|
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
129
129
|
);
|
130
130
|
const propertyType = guaranteeNonNullable(
|
@@ -177,8 +177,8 @@ export class QueryBuilderPostFilterOperator_NotIn extends QueryBuilderPostFilter
|
|
177
177
|
return expression
|
178
178
|
? buildNotExpression(
|
179
179
|
expression,
|
180
|
-
postFilterConditionState.postFilterState.
|
181
|
-
.
|
180
|
+
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
181
|
+
.graphManagerState.graph,
|
182
182
|
)
|
183
183
|
: undefined;
|
184
184
|
}
|
@@ -28,7 +28,7 @@ import {
|
|
28
28
|
type QueryBuilderPostFilterState,
|
29
29
|
TDS_COLUMN_GETTER,
|
30
30
|
} from '../QueryBuilderPostFilterState.js';
|
31
|
-
import { QueryBuilderSimpleProjectionColumnState } from '../../QueryBuilderProjectionColumnState.js';
|
31
|
+
import { QueryBuilderSimpleProjectionColumnState } from '../../projection/QueryBuilderProjectionColumnState.js';
|
32
32
|
import { buildPostFilterConditionExpression } from './QueryBuilderPostFilterOperatorValueSpecificationBuilder.js';
|
33
33
|
import { isPropertyExpressionChainOptional } from '../../../../QueryBuilderValueSpecificationHelper.js';
|
34
34
|
import { type Hashable, hashArray } from '@finos/legend-shared';
|
@@ -91,16 +91,16 @@ export class QueryBuilderPostFilterOperator_LessThan
|
|
91
91
|
case PRIMITIVE_TYPE.STRICTDATE:
|
92
92
|
case PRIMITIVE_TYPE.DATETIME: {
|
93
93
|
return buildPrimitiveInstanceValue(
|
94
|
-
postFilterConditionState.postFilterState.
|
95
|
-
.
|
94
|
+
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
95
|
+
.graphManagerState.graph,
|
96
96
|
propertyType.path,
|
97
97
|
generateDefaultValueForPrimitiveType(propertyType.path),
|
98
98
|
);
|
99
99
|
}
|
100
100
|
case PRIMITIVE_TYPE.DATE: {
|
101
101
|
return buildPrimitiveInstanceValue(
|
102
|
-
postFilterConditionState.postFilterState.
|
103
|
-
.
|
102
|
+
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
103
|
+
.graphManagerState.graph,
|
104
104
|
PRIMITIVE_TYPE.STRICTDATE,
|
105
105
|
generateDefaultValueForPrimitiveType(propertyType.path),
|
106
106
|
);
|
File without changes
|
@@ -74,8 +74,8 @@ export class QueryBuilderPostFilterOperator_StartWith
|
|
74
74
|
switch (propertyType?.path) {
|
75
75
|
case PRIMITIVE_TYPE.STRING: {
|
76
76
|
return buildPrimitiveInstanceValue(
|
77
|
-
postFilterConditionState.postFilterState.
|
78
|
-
.
|
77
|
+
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
78
|
+
.graphManagerState.graph,
|
79
79
|
propertyType.path,
|
80
80
|
generateDefaultValueForPrimitiveType(propertyType.path),
|
81
81
|
);
|
@@ -134,8 +134,8 @@ export class QueryBuilderPostFilterOperator_NotStartWith
|
|
134
134
|
return expression
|
135
135
|
? buildNotExpression(
|
136
136
|
expression,
|
137
|
-
postFilterConditionState.postFilterState.
|
138
|
-
.
|
137
|
+
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
138
|
+
.graphManagerState.graph,
|
139
139
|
)
|
140
140
|
: undefined;
|
141
141
|
}
|
@@ -29,12 +29,12 @@ import {
|
|
29
29
|
import {
|
30
30
|
type QueryBuilderExplorerTreePropertyNodeData,
|
31
31
|
buildPropertyExpressionFromExplorerTreeNodeData,
|
32
|
-
} from '
|
32
|
+
} from '../../../explorer/QueryBuilderExplorerState.js';
|
33
33
|
import {
|
34
34
|
getPropertyChainName,
|
35
35
|
QueryBuilderPropertyExpressionState,
|
36
|
-
} from '
|
37
|
-
import type { QueryBuilderState } from '
|
36
|
+
} from '../../../QueryBuilderPropertyEditorState.js';
|
37
|
+
import type { QueryBuilderState } from '../../../QueryBuilderState.js';
|
38
38
|
import {
|
39
39
|
type AbstractPropertyExpression,
|
40
40
|
type Type,
|
@@ -53,10 +53,10 @@ import {
|
|
53
53
|
import {
|
54
54
|
DEFAULT_LAMBDA_VARIABLE_NAME,
|
55
55
|
QUERY_BUILDER_SOURCE_ID_LABEL,
|
56
|
-
} from '
|
57
|
-
import type {
|
58
|
-
import { QUERY_BUILDER_HASH_STRUCTURE } from '
|
59
|
-
import { LambdaEditorState } from '
|
56
|
+
} from '../../../QueryBuilderConfig.js';
|
57
|
+
import type { QueryBuilderTDSState } from '../QueryBuilderTDSState.js';
|
58
|
+
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../graphManager/QueryBuilderHashUtils.js';
|
59
|
+
import { LambdaEditorState } from '../../../shared/LambdaEditorState.js';
|
60
60
|
|
61
61
|
export const QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE = 'PROJECTION_COLUMN';
|
62
62
|
|
@@ -66,22 +66,19 @@ export interface QueryBuilderProjectionColumnDragSource {
|
|
66
66
|
|
67
67
|
export abstract class QueryBuilderProjectionColumnState implements Hashable {
|
68
68
|
readonly uuid = uuid();
|
69
|
-
|
69
|
+
tdsState: QueryBuilderTDSState;
|
70
70
|
columnName: string;
|
71
71
|
|
72
|
-
constructor(
|
73
|
-
projectionState: QueryBuilderProjectionState,
|
74
|
-
columnName: string,
|
75
|
-
) {
|
72
|
+
constructor(tdsState: QueryBuilderTDSState, columnName: string) {
|
76
73
|
makeObservable(this, {
|
77
74
|
uuid: false,
|
78
|
-
|
75
|
+
tdsState: false,
|
79
76
|
columnName: observable,
|
80
77
|
setColumnName: action,
|
81
78
|
hashCode: computed,
|
82
79
|
});
|
83
80
|
|
84
|
-
this.
|
81
|
+
this.tdsState = tdsState;
|
85
82
|
this.columnName = columnName;
|
86
83
|
}
|
87
84
|
|
@@ -102,11 +99,11 @@ export class QueryBuilderSimpleProjectionColumnState
|
|
102
99
|
propertyExpressionState: QueryBuilderPropertyExpressionState;
|
103
100
|
|
104
101
|
constructor(
|
105
|
-
|
102
|
+
tdsState: QueryBuilderTDSState,
|
106
103
|
propertyExpression: AbstractPropertyExpression,
|
107
104
|
humanizePropertyName: boolean,
|
108
105
|
) {
|
109
|
-
super(
|
106
|
+
super(tdsState, '');
|
110
107
|
|
111
108
|
makeObservable(this, {
|
112
109
|
lambdaParameterName: observable,
|
@@ -116,7 +113,7 @@ export class QueryBuilderSimpleProjectionColumnState
|
|
116
113
|
});
|
117
114
|
|
118
115
|
this.propertyExpressionState = new QueryBuilderPropertyExpressionState(
|
119
|
-
|
116
|
+
tdsState.queryBuilderState,
|
120
117
|
propertyExpression,
|
121
118
|
);
|
122
119
|
this.columnName = getPropertyChainName(
|
@@ -134,10 +131,10 @@ export class QueryBuilderSimpleProjectionColumnState
|
|
134
131
|
humanizePropertyName: boolean,
|
135
132
|
): void {
|
136
133
|
this.propertyExpressionState = new QueryBuilderPropertyExpressionState(
|
137
|
-
this.
|
134
|
+
this.tdsState.queryBuilderState,
|
138
135
|
buildPropertyExpressionFromExplorerTreeNodeData(
|
139
136
|
node,
|
140
|
-
this.
|
137
|
+
this.tdsState.queryBuilderState.explorerState,
|
141
138
|
),
|
142
139
|
);
|
143
140
|
this.columnName = getPropertyChainName(
|
@@ -264,8 +261,8 @@ export class QueryBuilderDerivationProjectionColumnState
|
|
264
261
|
lambda: RawLambda;
|
265
262
|
returnType: Type | undefined;
|
266
263
|
|
267
|
-
constructor(
|
268
|
-
super(
|
264
|
+
constructor(tdsState: QueryBuilderTDSState, lambda: RawLambda) {
|
265
|
+
super(tdsState, '(derivation)');
|
269
266
|
|
270
267
|
makeObservable(this, {
|
271
268
|
lambda: observable,
|
@@ -276,7 +273,7 @@ export class QueryBuilderDerivationProjectionColumnState
|
|
276
273
|
|
277
274
|
this.derivationLambdaEditorState =
|
278
275
|
new QueryBuilderDerivationProjectionLambdaState(
|
279
|
-
|
276
|
+
tdsState.queryBuilderState,
|
280
277
|
this,
|
281
278
|
);
|
282
279
|
this.lambda = lambda;
|
@@ -298,8 +295,7 @@ export class QueryBuilderDerivationProjectionColumnState
|
|
298
295
|
*fetchDerivationLambdaReturnType(): GeneratorFn<void> {
|
299
296
|
assertTrue(Array.isArray(this.lambda.parameters));
|
300
297
|
const projectionParameter = this.lambda.parameters as object[];
|
301
|
-
const graph =
|
302
|
-
this.projectionState.queryBuilderState.graphManagerState.graph;
|
298
|
+
const graph = this.tdsState.queryBuilderState.graphManagerState.graph;
|
303
299
|
const multiplicityOne = graph.getTypicalMultiplicity(
|
304
300
|
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
305
301
|
);
|
@@ -311,11 +307,11 @@ export class QueryBuilderDerivationProjectionColumnState
|
|
311
307
|
variable.name,
|
312
308
|
multiplicityOne,
|
313
309
|
PackageableElementExplicitReference.create(
|
314
|
-
guaranteeNonNullable(this.
|
310
|
+
guaranteeNonNullable(this.tdsState.queryBuilderState.class),
|
315
311
|
),
|
316
312
|
);
|
317
313
|
const _rawVariableExpression =
|
318
|
-
this.
|
314
|
+
this.tdsState.queryBuilderState.graphManagerState.graphManager.serializeRawValueSpecification(
|
319
315
|
rawVariableExpression,
|
320
316
|
);
|
321
317
|
const isolatedLambda = new RawLambda(
|
@@ -323,7 +319,7 @@ export class QueryBuilderDerivationProjectionColumnState
|
|
323
319
|
this.lambda.body,
|
324
320
|
);
|
325
321
|
const type =
|
326
|
-
(yield this.
|
322
|
+
(yield this.tdsState.queryBuilderState.graphManagerState.graphManager.getLambdaReturnType(
|
327
323
|
isolatedLambda,
|
328
324
|
graph,
|
329
325
|
)) as string;
|