@finos/legend-query-builder 0.2.1 → 0.2.3
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 +6 -6
- 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 +8 -10
- 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
@@ -20,17 +20,21 @@ import { renderServiceQueryBuilderSetupPanelContent } from '../../components/wor
|
|
20
20
|
import { QueryBuilderState } from '../QueryBuilderState.js';
|
21
21
|
export class ServiceQueryBuilderState extends QueryBuilderState {
|
22
22
|
service;
|
23
|
+
usableServices;
|
23
24
|
executionContexts = [];
|
25
|
+
onServiceChange;
|
24
26
|
onExecutionContextChange;
|
25
27
|
TEMPORARY__setupPanelContentRenderer = () => renderServiceQueryBuilderSetupPanelContent(this);
|
26
28
|
selectedExecutionContext;
|
27
|
-
constructor(applicationStore, graphManagerState, service, executionContextKey, onExecutionContextChange) {
|
29
|
+
constructor(applicationStore, graphManagerState, service, usableServices, executionContextKey, onServiceChange, onExecutionContextChange) {
|
28
30
|
super(applicationStore, graphManagerState);
|
29
31
|
makeObservable(this, {
|
30
32
|
selectedExecutionContext: observable,
|
31
33
|
setSelectedExecutionContext: action,
|
32
34
|
});
|
33
35
|
this.service = service;
|
36
|
+
this.usableServices = usableServices;
|
37
|
+
this.onServiceChange = onServiceChange;
|
34
38
|
this.onExecutionContextChange = onExecutionContextChange;
|
35
39
|
if (service.execution instanceof PureSingleExecution) {
|
36
40
|
this.mapping = service.execution.mapping.value;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ServiceQueryBuilderState.js","sourceRoot":"","sources":["../../../src/stores/workflows/ServiceQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAKL,2BAA2B,EAC3B,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,UAAU,EACV,uBAAuB,EACvB,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,0CAA0C,EAAE,MAAM,mDAAmD,CAAC;AAC/G,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC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,KAAK,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;YAC1D,MAAM,gBAAgB,GAAG,uBAAuB,CAAC,iBAAiB,CAAC,CAAC;YACpE,IAAI,gBAAgB,EAAE;gBACpB,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;aACpC;SACF;IACH,CAAC;CACF"}
|
1
|
+
{"version":3,"file":"ServiceQueryBuilderState.js","sourceRoot":"","sources":["../../../src/stores/workflows/ServiceQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAKL,2BAA2B,EAC3B,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,UAAU,EACV,uBAAuB,EACvB,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,0CAA0C,EAAE,MAAM,mDAAmD,CAAC;AAC/G,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAQ5D,MAAM,OAAO,wBAAyB,SAAQ,iBAAiB;IACpD,OAAO,CAAU;IACjB,cAAc,CAAwB;IACtC,iBAAiB,GAA8B,EAAE,CAAC;IAClD,eAAe,CAAwC;IACvD,wBAAwB,CAEnB;IAEL,oCAAoC,GAAG,GAAoB,EAAE,CACpE,0CAA0C,CAAC,IAAI,CAAC,CAAC;IAEnD,wBAAwB,CAAuC;IAE/D,YACE,gBAA+C,EAC/C,iBAAoC,EACpC,OAAgB,EAChB,cAAqC,EACrC,mBAAwC,EACxC,eAAsD,EACtD,wBAEa;QAEb,KAAK,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;QAE3C,cAAc,CAAC,IAAI,EAAE;YACnB,wBAAwB,EAAE,UAAU;YACpC,2BAA2B,EAAE,MAAM;SACpC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
3
|
+
"version": "0.2.3",
|
4
4
|
"description": "Legend query builder core",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -44,33 +44,31 @@
|
|
44
44
|
"@ag-grid-community/client-side-row-model": "28.2.0",
|
45
45
|
"@ag-grid-community/core": "28.2.0",
|
46
46
|
"@ag-grid-community/react": "28.2.0",
|
47
|
-
"@finos/legend-application": "
|
48
|
-
"@finos/legend-art": "4.0
|
49
|
-
"@finos/legend-graph": "
|
50
|
-
"@finos/legend-server-depot": "4.1.
|
51
|
-
"@finos/legend-shared": "6.1.
|
52
|
-
"@finos/legend-storage": "3.0.
|
47
|
+
"@finos/legend-application": "10.0.1",
|
48
|
+
"@finos/legend-art": "4.1.0",
|
49
|
+
"@finos/legend-graph": "19.1.0",
|
50
|
+
"@finos/legend-server-depot": "4.1.2",
|
51
|
+
"@finos/legend-shared": "6.1.5",
|
52
|
+
"@finos/legend-storage": "3.0.14",
|
53
53
|
"@testing-library/react": "13.4.0",
|
54
54
|
"@types/papaparse": "5.3.5",
|
55
55
|
"@types/react": "18.0.21",
|
56
56
|
"@types/react-dom": "18.0.6",
|
57
|
-
"date-fns": "2.29.3",
|
58
57
|
"mobx": "6.6.2",
|
59
58
|
"mobx-react-lite": "3.4.0",
|
60
|
-
"monaco-editor": "0.34.
|
59
|
+
"monaco-editor": "0.34.1",
|
61
60
|
"papaparse": "5.3.2",
|
62
61
|
"react": "18.2.0",
|
63
62
|
"react-dnd": "16.0.1",
|
64
63
|
"react-dom": "18.2.0",
|
65
|
-
"
|
66
|
-
"serializr": "2.0.5"
|
64
|
+
"serializr": "3.0.1"
|
67
65
|
},
|
68
66
|
"devDependencies": {
|
69
|
-
"@finos/legend-dev-utils": "2.0.
|
70
|
-
"@jest/globals": "29.1
|
67
|
+
"@finos/legend-dev-utils": "2.0.21",
|
68
|
+
"@jest/globals": "29.2.1",
|
71
69
|
"cross-env": "7.0.3",
|
72
70
|
"eslint": "8.25.0",
|
73
|
-
"jest": "29.1
|
71
|
+
"jest": "29.2.1",
|
74
72
|
"npm-run-all": "4.1.5",
|
75
73
|
"rimraf": "3.0.2",
|
76
74
|
"sass": "1.55.0",
|
@@ -83,6 +81,7 @@
|
|
83
81
|
"directory": "build/publishContent"
|
84
82
|
},
|
85
83
|
"extensions": {
|
84
|
+
"applicationPlugin": "@finos/legend-application-plugin-query-builder",
|
86
85
|
"graphManagerPreset": "@finos/legend-graph-manager-preset-query-builder",
|
87
86
|
"pureProtocolProcessorPlugin": "@finos/legend-pure-protocol-processor-plugin-query-builder",
|
88
87
|
"pureGraphManagerPlugin": "@finos/legend-pure-graph-manager-plugin-query-builder"
|
@@ -15,10 +15,8 @@
|
|
15
15
|
*/
|
16
16
|
|
17
17
|
import { observer } from 'mobx-react-lite';
|
18
|
-
import { GlobalHotKeys } from 'react-hotkeys';
|
19
18
|
import {
|
20
19
|
clsx,
|
21
|
-
Backdrop,
|
22
20
|
HammerIcon,
|
23
21
|
ResizablePanelGroup,
|
24
22
|
ResizablePanel,
|
@@ -31,7 +29,6 @@ import {
|
|
31
29
|
MenuContentItemLabel,
|
32
30
|
CheckIcon,
|
33
31
|
CaretDownIcon,
|
34
|
-
CogIcon,
|
35
32
|
DiffIcon,
|
36
33
|
} from '@finos/legend-art';
|
37
34
|
import { QueryBuilderFilterPanel } from './filter/QueryBuilderFilterPanel.js';
|
@@ -45,20 +42,19 @@ import { QueryBuilderFetchStructurePanel } from './fetch-structure/QueryBuilderF
|
|
45
42
|
import { QUERY_BUILDER_TEST_ID } from './QueryBuilder_TestID.js';
|
46
43
|
import { flowResult } from 'mobx';
|
47
44
|
import { QueryBuilderUnsupportedQueryEditor } from './QueryBuilderUnsupportedQueryEditor.js';
|
48
|
-
import {
|
45
|
+
import {
|
46
|
+
BackdropContainer,
|
47
|
+
useApplicationStore,
|
48
|
+
useCommands,
|
49
|
+
} from '@finos/legend-application';
|
49
50
|
import { QueryBuilderParametersPanel } from './QueryBuilderParametersPanel.js';
|
50
51
|
import { QueryBuilderPostFilterPanel } from './fetch-structure/QueryBuilderPostFilterPanel.js';
|
51
52
|
import { QueryBuilderFunctionsExplorerPanel } from './explorer/QueryBuilderFunctionsExplorerPanel.js';
|
52
|
-
import {
|
53
|
+
import { QueryBuilderTDSState } from '../stores/fetch-structure/tds/QueryBuilderTDSState.js';
|
53
54
|
import { QueryBuilderDiffViewPanel } from './QueryBuilderDiffPanel.js';
|
54
55
|
|
55
|
-
|
56
|
-
|
57
|
-
}
|
58
|
-
|
59
|
-
const QUERY_BUILDER_HOTKEY_MAP = Object.freeze({
|
60
|
-
[QUERY_BUILDER_HOTKEY.COMPILE]: 'f9',
|
61
|
-
});
|
56
|
+
export const QUERY_BUILDER_BACKDROP_CONTAINER_ID =
|
57
|
+
'query-builder.backdrop-container';
|
62
58
|
|
63
59
|
const QueryBuilderStatusBar = observer(
|
64
60
|
(props: { queryBuilderState: QueryBuilderState }) => {
|
@@ -158,23 +154,8 @@ const QueryBuilderStatusBar = observer(
|
|
158
154
|
export const QueryBuilder = observer(
|
159
155
|
(props: { queryBuilderState: QueryBuilderState }) => {
|
160
156
|
const { queryBuilderState } = props;
|
161
|
-
const applicationStore = useApplicationStore();
|
162
157
|
const isQuerySupported = queryBuilderState.isQuerySupported;
|
163
158
|
|
164
|
-
// Hotkeys
|
165
|
-
const keyMap = {
|
166
|
-
[QUERY_BUILDER_HOTKEY.COMPILE]: [QUERY_BUILDER_HOTKEY_MAP.COMPILE],
|
167
|
-
};
|
168
|
-
const handlers = {
|
169
|
-
[QUERY_BUILDER_HOTKEY.COMPILE]: (
|
170
|
-
event: KeyboardEvent | undefined,
|
171
|
-
): void => {
|
172
|
-
event?.preventDefault();
|
173
|
-
flowResult(queryBuilderState.compileQuery()).catch(
|
174
|
-
applicationStore.alertUnhandledError,
|
175
|
-
);
|
176
|
-
},
|
177
|
-
};
|
178
159
|
const toggleShowFunctionPanel = (): void => {
|
179
160
|
queryBuilderState.setShowFunctionsExplorerPanel(
|
180
161
|
!queryBuilderState.showFunctionsExplorerPanel,
|
@@ -188,153 +169,102 @@ export const QueryBuilder = observer(
|
|
188
169
|
const toggleShowPostFilterPanel = (): void => {
|
189
170
|
if (
|
190
171
|
queryBuilderState.fetchStructureState.implementation instanceof
|
191
|
-
|
172
|
+
QueryBuilderTDSState
|
192
173
|
) {
|
193
|
-
const
|
194
|
-
|
195
|
-
projectionState.setShowPostFilterPanel(
|
196
|
-
!projectionState.showPostFilterPanel,
|
197
|
-
);
|
174
|
+
const tdsState = queryBuilderState.fetchStructureState.implementation;
|
175
|
+
tdsState.setShowPostFilterPanel(!tdsState.showPostFilterPanel);
|
198
176
|
}
|
199
177
|
};
|
200
178
|
|
201
|
-
|
202
|
-
// NOTE: this is temporary until we find a better home for these settings in query builder
|
203
|
-
const engineConfig =
|
204
|
-
queryBuilderState.graphManagerState.graphManager.TEMPORARY__getEngineConfig();
|
205
|
-
const toggleEngineClientRequestPayloadCompression = (): void =>
|
206
|
-
engineConfig.setUseClientRequestPayloadCompression(
|
207
|
-
!engineConfig.useClientRequestPayloadCompression,
|
208
|
-
);
|
179
|
+
useCommands(queryBuilderState);
|
209
180
|
|
210
181
|
return (
|
211
182
|
<div
|
212
183
|
data-testid={QUERY_BUILDER_TEST_ID.QUERY_BUILDER}
|
213
184
|
className="query-builder"
|
214
185
|
>
|
215
|
-
<
|
216
|
-
|
217
|
-
<DropdownMenu
|
218
|
-
className="query-builder__sub-header__custom-action"
|
219
|
-
content={
|
220
|
-
<MenuContent>
|
221
|
-
<MenuContentItem
|
222
|
-
onClick={toggleShowFunctionPanel}
|
223
|
-
disabled={!queryBuilderState.isQuerySupported}
|
224
|
-
>
|
225
|
-
<MenuContentItemIcon>
|
226
|
-
{queryBuilderState.showFunctionsExplorerPanel ? (
|
227
|
-
<CheckIcon />
|
228
|
-
) : null}
|
229
|
-
</MenuContentItemIcon>
|
230
|
-
<MenuContentItemLabel className="query-builder__sub-header__menu-content">
|
231
|
-
Show Function(s)
|
232
|
-
</MenuContentItemLabel>
|
233
|
-
</MenuContentItem>
|
234
|
-
{/* TODO?: consider hiding this menu option when the fetch-structure is not projection */}
|
235
|
-
{!queryBuilderState.isParameterSupportDisabled && (
|
236
|
-
<MenuContentItem
|
237
|
-
onClick={toggleShowParameterPanel}
|
238
|
-
disabled={
|
239
|
-
!queryBuilderState.isQuerySupported ||
|
240
|
-
queryBuilderState.parametersState.parameterStates
|
241
|
-
.length > 0
|
242
|
-
}
|
243
|
-
>
|
244
|
-
<MenuContentItemIcon>
|
245
|
-
{queryBuilderState.showParametersPanel ? (
|
246
|
-
<CheckIcon />
|
247
|
-
) : null}
|
248
|
-
</MenuContentItemIcon>
|
249
|
-
<MenuContentItemLabel className="query-builder__sub-header__menu-content">
|
250
|
-
Show Parameter(s)
|
251
|
-
</MenuContentItemLabel>
|
252
|
-
</MenuContentItem>
|
253
|
-
)}
|
254
|
-
<MenuContentItem
|
255
|
-
onClick={toggleShowPostFilterPanel}
|
256
|
-
disabled={
|
257
|
-
!queryBuilderState.isQuerySupported ||
|
258
|
-
!(
|
259
|
-
queryBuilderState.fetchStructureState
|
260
|
-
.implementation instanceof QueryBuilderProjectionState
|
261
|
-
) ||
|
262
|
-
Array.from(
|
263
|
-
queryBuilderState.fetchStructureState.implementation.postFilterState.nodes.values(),
|
264
|
-
).length > 0
|
265
|
-
}
|
266
|
-
>
|
267
|
-
<MenuContentItemIcon>
|
268
|
-
{queryBuilderState.fetchStructureState
|
269
|
-
.implementation instanceof
|
270
|
-
QueryBuilderProjectionState &&
|
271
|
-
queryBuilderState.fetchStructureState.implementation
|
272
|
-
.showPostFilterPanel ? (
|
273
|
-
<CheckIcon />
|
274
|
-
) : null}
|
275
|
-
</MenuContentItemIcon>
|
276
|
-
<MenuContentItemLabel className="query-builder__sub-header__menu-content">
|
277
|
-
Show Post-Filter
|
278
|
-
</MenuContentItemLabel>
|
279
|
-
</MenuContentItem>
|
280
|
-
</MenuContent>
|
281
|
-
}
|
282
|
-
menuProps={{
|
283
|
-
anchorOrigin: { vertical: 'bottom', horizontal: 'right' },
|
284
|
-
transformOrigin: { vertical: 'top', horizontal: 'right' },
|
285
|
-
elevation: 7,
|
286
|
-
}}
|
287
|
-
>
|
288
|
-
<button
|
289
|
-
className="query-builder__sub-header__custom-action__label"
|
290
|
-
title="Show Advanced Menu..."
|
291
|
-
>
|
292
|
-
Advanced
|
293
|
-
</button>
|
294
|
-
<CaretDownIcon className="query-builder__sub-header__custom-action__icon" />
|
295
|
-
</DropdownMenu>
|
296
|
-
</div>
|
297
|
-
</div>
|
298
|
-
<GlobalHotKeys keyMap={keyMap} handlers={handlers}>
|
299
|
-
<Backdrop
|
300
|
-
className="backdrop"
|
301
|
-
open={queryBuilderState.showBackdrop}
|
302
|
-
/>
|
186
|
+
<BackdropContainer elementID={QUERY_BUILDER_BACKDROP_CONTAINER_ID} />
|
187
|
+
<div className="query-builder__body">
|
303
188
|
<div className="query-builder__content">
|
304
|
-
<div className="query-
|
305
|
-
<div className="query-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
<
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
189
|
+
<div className="query-builder__sub-header">
|
190
|
+
<div className="query-builder__sub-header__actions">
|
191
|
+
<DropdownMenu
|
192
|
+
className="query-builder__sub-header__custom-action"
|
193
|
+
title="Show Advanced Menu..."
|
194
|
+
content={
|
195
|
+
<MenuContent>
|
196
|
+
<MenuContentItem
|
197
|
+
onClick={toggleShowFunctionPanel}
|
198
|
+
disabled={!queryBuilderState.isQuerySupported}
|
199
|
+
>
|
200
|
+
<MenuContentItemIcon>
|
201
|
+
{queryBuilderState.showFunctionsExplorerPanel ? (
|
202
|
+
<CheckIcon />
|
203
|
+
) : null}
|
204
|
+
</MenuContentItemIcon>
|
205
|
+
<MenuContentItemLabel className="query-builder__sub-header__menu-content">
|
206
|
+
Show Function(s)
|
207
|
+
</MenuContentItemLabel>
|
208
|
+
</MenuContentItem>
|
209
|
+
{/* TODO?: consider hiding this menu option when the fetch-structure is not tds */}
|
210
|
+
{!queryBuilderState.isParameterSupportDisabled && (
|
211
|
+
<MenuContentItem
|
212
|
+
onClick={toggleShowParameterPanel}
|
213
|
+
disabled={
|
214
|
+
!queryBuilderState.isQuerySupported ||
|
215
|
+
queryBuilderState.parametersState.parameterStates
|
216
|
+
.length > 0
|
217
|
+
}
|
218
|
+
>
|
219
|
+
<MenuContentItemIcon>
|
220
|
+
{queryBuilderState.showParametersPanel ? (
|
221
|
+
<CheckIcon />
|
222
|
+
) : null}
|
223
|
+
</MenuContentItemIcon>
|
224
|
+
<MenuContentItemLabel className="query-builder__sub-header__menu-content">
|
225
|
+
Show Parameter(s)
|
226
|
+
</MenuContentItemLabel>
|
227
|
+
</MenuContentItem>
|
228
|
+
)}
|
229
|
+
<MenuContentItem
|
230
|
+
onClick={toggleShowPostFilterPanel}
|
231
|
+
disabled={
|
232
|
+
!queryBuilderState.isQuerySupported ||
|
233
|
+
!(
|
234
|
+
queryBuilderState.fetchStructureState
|
235
|
+
.implementation instanceof QueryBuilderTDSState
|
236
|
+
) ||
|
237
|
+
Array.from(
|
238
|
+
queryBuilderState.fetchStructureState.implementation.postFilterState.nodes.values(),
|
239
|
+
).length > 0
|
240
|
+
}
|
241
|
+
>
|
242
|
+
<MenuContentItemIcon>
|
243
|
+
{queryBuilderState.fetchStructureState
|
244
|
+
.implementation instanceof QueryBuilderTDSState &&
|
245
|
+
queryBuilderState.fetchStructureState.implementation
|
246
|
+
.showPostFilterPanel ? (
|
247
|
+
<CheckIcon />
|
248
|
+
) : null}
|
249
|
+
</MenuContentItemIcon>
|
250
|
+
<MenuContentItemLabel className="query-builder__sub-header__menu-content">
|
251
|
+
Show Post-Filter
|
252
|
+
</MenuContentItemLabel>
|
253
|
+
</MenuContentItem>
|
254
|
+
</MenuContent>
|
255
|
+
}
|
256
|
+
menuProps={{
|
257
|
+
anchorOrigin: { vertical: 'bottom', horizontal: 'right' },
|
258
|
+
transformOrigin: { vertical: 'top', horizontal: 'right' },
|
259
|
+
elevation: 7,
|
260
|
+
}}
|
334
261
|
>
|
335
|
-
<
|
336
|
-
|
337
|
-
|
262
|
+
<div className="query-builder__sub-header__custom-action__label">
|
263
|
+
Advanced
|
264
|
+
</div>
|
265
|
+
<CaretDownIcon className="query-builder__sub-header__custom-action__icon" />
|
266
|
+
</DropdownMenu>
|
267
|
+
</div>
|
338
268
|
</div>
|
339
269
|
<div className="query-builder__main">
|
340
270
|
<ResizablePanelGroup orientation="horizontal">
|
@@ -394,8 +324,7 @@ export const QueryBuilder = observer(
|
|
394
324
|
<ResizablePanel minSize={300}>
|
395
325
|
{(!(
|
396
326
|
queryBuilderState.fetchStructureState
|
397
|
-
.implementation instanceof
|
398
|
-
QueryBuilderProjectionState
|
327
|
+
.implementation instanceof QueryBuilderTDSState
|
399
328
|
) ||
|
400
329
|
!queryBuilderState.fetchStructureState.implementation
|
401
330
|
.showPostFilterPanel) && (
|
@@ -404,8 +333,7 @@ export const QueryBuilder = observer(
|
|
404
333
|
/>
|
405
334
|
)}
|
406
335
|
{queryBuilderState.fetchStructureState
|
407
|
-
.implementation instanceof
|
408
|
-
QueryBuilderProjectionState &&
|
336
|
+
.implementation instanceof QueryBuilderTDSState &&
|
409
337
|
queryBuilderState.fetchStructureState.implementation
|
410
338
|
.showPostFilterPanel && (
|
411
339
|
<ResizablePanelGroup orientation="horizontal">
|
@@ -443,11 +371,11 @@ export const QueryBuilder = observer(
|
|
443
371
|
</ResizablePanelGroup>
|
444
372
|
</div>
|
445
373
|
</div>
|
446
|
-
<QueryBuilderStatusBar queryBuilderState={queryBuilderState} />
|
447
374
|
{queryBuilderState.textEditorState.mode && (
|
448
375
|
<QueryBuilderTextEditor queryBuilderState={queryBuilderState} />
|
449
376
|
)}
|
450
|
-
</
|
377
|
+
</div>
|
378
|
+
<QueryBuilderStatusBar queryBuilderState={queryBuilderState} />
|
451
379
|
</div>
|
452
380
|
);
|
453
381
|
},
|
@@ -15,6 +15,7 @@
|
|
15
15
|
*/
|
16
16
|
|
17
17
|
import {
|
18
|
+
createPassThroughOnKeyHandler,
|
18
19
|
EDITOR_LANGUAGE,
|
19
20
|
EDITOR_THEME,
|
20
21
|
TAB_SIZE,
|
@@ -24,7 +25,6 @@ import {
|
|
24
25
|
baseTextEditorSettings,
|
25
26
|
clsx,
|
26
27
|
Dialog,
|
27
|
-
disableEditorHotKeys,
|
28
28
|
disposeDiffEditor,
|
29
29
|
useResizeDetector,
|
30
30
|
} from '@finos/legend-art';
|
@@ -35,7 +35,6 @@ import {
|
|
35
35
|
type QueryBuilderDiffViewState,
|
36
36
|
QueryBuilderDiffViewMode,
|
37
37
|
} from '../stores/QueryBuilderChangeDetectionState.js';
|
38
|
-
import { prettyCONSTName } from '@finos/legend-shared';
|
39
38
|
import { pruneSourceInformation } from '@finos/legend-graph';
|
40
39
|
|
41
40
|
const TextDiffView = observer(
|
@@ -71,7 +70,7 @@ const TextDiffView = observer(
|
|
71
70
|
readOnly: true,
|
72
71
|
wordWrap: 'on',
|
73
72
|
});
|
74
|
-
|
73
|
+
_editor.getOriginalEditor().onKeyDown(createPassThroughOnKeyHandler());
|
75
74
|
setEditor(_editor);
|
76
75
|
}
|
77
76
|
}, [applicationStore, editor]);
|
@@ -147,7 +146,7 @@ export const QueryBuilderDiffViewPanel = observer(
|
|
147
146
|
})}
|
148
147
|
key={mode}
|
149
148
|
>
|
150
|
-
{
|
149
|
+
{mode}
|
151
150
|
</button>
|
152
151
|
))}
|
153
152
|
</div>
|
@@ -0,0 +1,62 @@
|
|
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
|
+
ActionAlertActionType,
|
19
|
+
ActionAlertType,
|
20
|
+
useApplicationStore,
|
21
|
+
} from '@finos/legend-application';
|
22
|
+
import { observer } from 'mobx-react-lite';
|
23
|
+
import { useEffect } from 'react';
|
24
|
+
import type { QueryBuilderState } from '../stores/QueryBuilderState.js';
|
25
|
+
|
26
|
+
export const QueryBuilderNavigationBlocker = observer(
|
27
|
+
(props: { queryBuilderState: QueryBuilderState }) => {
|
28
|
+
const { queryBuilderState } = props;
|
29
|
+
const applicationStore = useApplicationStore();
|
30
|
+
|
31
|
+
useEffect(() => {
|
32
|
+
applicationStore.navigator.blockNavigation(
|
33
|
+
[(): boolean => queryBuilderState.changeDetectionState.hasChanged],
|
34
|
+
(onProceed: () => void): void => {
|
35
|
+
applicationStore.setActionAlertInfo({
|
36
|
+
// TODO?: should we make this message generic like the `BeforeUnloadEvent` message?
|
37
|
+
message:
|
38
|
+
'Unsaved changes to your query will be lost if you continue. Do you still want to proceed?',
|
39
|
+
type: ActionAlertType.CAUTION,
|
40
|
+
actions: [
|
41
|
+
{
|
42
|
+
label: 'Proceed',
|
43
|
+
type: ActionAlertActionType.PROCEED_WITH_CAUTION,
|
44
|
+
handler: (): void => onProceed(),
|
45
|
+
},
|
46
|
+
{
|
47
|
+
label: 'Abort',
|
48
|
+
type: ActionAlertActionType.PROCEED,
|
49
|
+
default: true,
|
50
|
+
},
|
51
|
+
],
|
52
|
+
});
|
53
|
+
},
|
54
|
+
);
|
55
|
+
return (): void => {
|
56
|
+
applicationStore.navigator.unblockNavigation();
|
57
|
+
};
|
58
|
+
}, [applicationStore, queryBuilderState]);
|
59
|
+
|
60
|
+
return null;
|
61
|
+
},
|
62
|
+
);
|