@finos/legend-query-builder 0.2.0 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/QueryBuilder.d.ts +1 -0
- package/lib/components/QueryBuilder.d.ts.map +1 -1
- package/lib/components/QueryBuilder.js +23 -51
- package/lib/components/QueryBuilder.js.map +1 -1
- package/lib/components/QueryBuilderDiffPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderDiffPanel.js +4 -5
- package/lib/components/QueryBuilderDiffPanel.js.map +1 -1
- package/lib/components/QueryBuilderNavigationBlocker.d.ts +22 -0
- package/lib/components/QueryBuilderNavigationBlocker.d.ts.map +1 -0
- package/lib/components/QueryBuilderNavigationBlocker.js +48 -0
- package/lib/components/QueryBuilderNavigationBlocker.js.map +1 -0
- package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderResultPanel.js +19 -19
- package/lib/components/QueryBuilderResultPanel.js.map +1 -1
- package/lib/components/QueryBuilderSideBar.d.ts.map +1 -1
- package/lib/components/QueryBuilderSideBar.js +1 -1
- package/lib/components/QueryBuilderSideBar.js.map +1 -1
- package/lib/components/QueryBuilderTextEditor.d.ts.map +1 -1
- package/lib/components/QueryBuilderTextEditor.js +3 -3
- package/lib/components/QueryBuilderTextEditor.js.map +1 -1
- package/lib/components/QueryBuilder_LegendApplicationPlugin.d.ts +23 -0
- package/lib/components/QueryBuilder_LegendApplicationPlugin.d.ts.map +1 -0
- package/lib/components/QueryBuilder_LegendApplicationPlugin.js +31 -0
- package/lib/components/QueryBuilder_LegendApplicationPlugin.js.map +1 -0
- package/lib/components/QueryBuilder_TestID.d.ts +1 -1
- package/lib/components/QueryBuilder_TestID.d.ts.map +1 -1
- package/lib/components/QueryBuilder_TestID.js +1 -1
- package/lib/components/QueryBuilder_TestID.js.map +1 -1
- package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts.map +1 -1
- package/lib/components/explorer/QueryBuilderExplorerPanel.js +4 -4
- package/lib/components/explorer/QueryBuilderExplorerPanel.js.map +1 -1
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts.map +1 -1
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js +2 -2
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.js +4 -4
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts +2 -2
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +23 -28
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts +2 -2
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +12 -12
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -1
- package/lib/components/fetch-structure/{QueryBuilderProjectionPanel.d.ts → QueryBuilderTDSPanel.d.ts} +4 -4
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -0
- package/lib/components/fetch-structure/{QueryBuilderProjectionPanel.js → QueryBuilderTDSPanel.js} +37 -38
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -0
- package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +1 -1
- package/lib/components/filter/QueryBuilderFilterPanel.js +3 -3
- package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
- package/lib/components/shared/LambdaEditor.d.ts +1 -11
- package/lib/components/shared/LambdaEditor.d.ts.map +1 -1
- package/lib/components/shared/LambdaEditor.js +23 -63
- package/lib/components/shared/LambdaEditor.js.map +1 -1
- package/lib/components/workflows/ServiceQueryBuilder.d.ts.map +1 -1
- package/lib/components/workflows/ServiceQueryBuilder.js +14 -17
- package/lib/components/workflows/ServiceQueryBuilder.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +6 -4
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +6 -4
- package/lib/index.js.map +1 -1
- package/lib/package.json +6 -7
- package/lib/stores/QueryBuilderChangeDetectionState.js +1 -1
- package/lib/stores/QueryBuilderChangeDetectionState.js.map +1 -1
- package/lib/stores/QueryBuilderCommand.d.ts +21 -0
- package/lib/stores/QueryBuilderCommand.d.ts.map +1 -0
- package/lib/stores/QueryBuilderCommand.js +26 -0
- package/lib/stores/QueryBuilderCommand.js.map +1 -0
- package/lib/stores/QueryBuilderPreviewDataHelper.js +25 -25
- package/lib/stores/QueryBuilderPreviewDataHelper.js.map +1 -1
- package/lib/stores/QueryBuilderState.d.ts +4 -4
- package/lib/stores/QueryBuilderState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderState.js +13 -7
- package/lib/stores/QueryBuilderState.js.map +1 -1
- package/lib/stores/QueryBuilderStateBuilder.js +3 -3
- package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
- package/lib/stores/QueryBuilderTypeaheadHelper.d.ts +2 -2
- package/lib/stores/QueryBuilderTypeaheadHelper.d.ts.map +1 -1
- package/lib/stores/QueryBuilderTypeaheadHelper.js +14 -14
- package/lib/stores/QueryBuilderTypeaheadHelper.js.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationHelper.js +3 -4
- package/lib/stores/QueryBuilderValueSpecificationHelper.js.map +1 -1
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts +1 -1
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js +1 -1
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js.map +1 -1
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.js +4 -4
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.js.map +1 -1
- package/lib/stores/fetch-structure/{projection/QueryBuilderProjectionState.d.ts → tds/QueryBuilderTDSState.d.ts} +4 -4
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection/QueryBuilderProjectionState.js → tds/QueryBuilderTDSState.js} +27 -27
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/QueryResultSetModifierState.d.ts +4 -4
- package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/QueryResultSetModifierState.js +4 -4
- package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregateOperator.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateOperator.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregateOperator.js +2 -2
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateOperator.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregateOperatorLoader.d.ts +0 -0
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateOperatorLoader.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregateOperatorLoader.js +0 -0
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateOperatorLoader.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregationState.d.ts +4 -4
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregationState.js +5 -5
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregationStateBuilder.d.ts +0 -0
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregationStateBuilder.js +10 -10
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.js +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Average.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Average.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Average.js +2 -2
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Average.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Count.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Count.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Count.js +2 -2
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Count.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Distinct.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Distinct.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js +3 -3
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_JoinString.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_JoinString.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js +3 -3
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Max.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Max.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Max.js +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Max.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Min.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Min.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Min.js +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Min.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js +3 -3
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js +3 -3
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Sum.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Sum.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Sum.js +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Sum.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterOperator.d.ts +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterOperator.js +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterOperatorLoader.d.ts +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperatorLoader.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterOperatorLoader.js +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperatorLoader.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterState.d.ts +4 -4
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterState.js +10 -12
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterStateBuilder.d.ts +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterStateBuilder.js +13 -14
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.d.ts +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js +3 -3
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperatorHelper.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js +2 -2
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.d.ts +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js +4 -4
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js +4 -4
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js +7 -7
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js +4 -4
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_In.js +5 -5
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js +4 -4
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts +0 -0
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js +4 -4
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds/projection}/QueryBuilderProjectionColumnState.d.ts +9 -9
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds/projection}/QueryBuilderProjectionColumnState.js +20 -20
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds/projection}/QueryBuilderProjectionStateBuilder.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds/projection}/QueryBuilderProjectionStateBuilder.js +19 -19
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds/projection}/QueryBuilderProjectionValueSpecificationBuilder.d.ts +2 -2
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/{projection → tds/projection}/QueryBuilderProjectionValueSpecificationBuilder.js +28 -28
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -0
- package/lib/stores/filter/QueryBuilderFilterState.d.ts +1 -1
- package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +1 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts.map +1 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.js +3 -4
- package/lib/stores/shared/ValueSpecificationEditorHelper.js.map +1 -1
- package/lib/stores/workflows/ServiceQueryBuilderState.d.ts +3 -1
- package/lib/stores/workflows/ServiceQueryBuilderState.d.ts.map +1 -1
- package/lib/stores/workflows/ServiceQueryBuilderState.js +5 -1
- package/lib/stores/workflows/ServiceQueryBuilderState.js.map +1 -1
- package/package.json +13 -14
- package/src/components/QueryBuilder.tsx +96 -168
- package/src/components/QueryBuilderDiffPanel.tsx +3 -4
- package/src/components/QueryBuilderNavigationBlocker.tsx +62 -0
- package/src/components/QueryBuilderResultPanel.tsx +39 -48
- package/src/components/QueryBuilderSideBar.tsx +1 -0
- package/src/components/QueryBuilderTextEditor.tsx +3 -4
- package/src/components/QueryBuilder_LegendApplicationPlugin.ts +44 -0
- package/src/components/QueryBuilder_TestID.ts +1 -1
- package/src/components/explorer/QueryBuilderExplorerPanel.tsx +4 -6
- package/src/components/explorer/QueryBuilderFunctionsExplorerPanel.tsx +2 -4
- package/src/components/fetch-structure/QueryBuilderFetchStructurePanel.tsx +4 -8
- package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +35 -46
- package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +17 -20
- package/src/components/fetch-structure/{QueryBuilderProjectionPanel.tsx → QueryBuilderTDSPanel.tsx} +47 -57
- package/src/components/filter/QueryBuilderFilterPanel.tsx +4 -7
- package/src/components/shared/LambdaEditor.tsx +22 -85
- package/src/components/workflows/ServiceQueryBuilder.tsx +34 -65
- package/src/index.ts +9 -4
- package/src/stores/QueryBuilderChangeDetectionState.ts +1 -1
- package/src/stores/QueryBuilderCommand.ts +28 -0
- package/src/stores/QueryBuilderPreviewDataHelper.ts +28 -28
- package/src/stores/QueryBuilderState.ts +31 -10
- package/src/stores/QueryBuilderStateBuilder.ts +3 -3
- package/src/stores/QueryBuilderTypeaheadHelper.ts +18 -18
- package/src/stores/QueryBuilderValueSpecificationHelper.ts +3 -3
- package/src/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.ts +1 -1
- package/src/stores/fetch-structure/QueryBuilderFetchStructureState.ts +4 -4
- package/src/stores/fetch-structure/{projection/QueryBuilderProjectionState.ts → tds/QueryBuilderTDSState.ts} +32 -27
- package/src/stores/fetch-structure/{projection → tds}/QueryResultSetModifierState.ts +6 -6
- package/src/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregateOperator.ts +2 -2
- package/src/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregateOperatorLoader.ts +0 -0
- package/src/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregationState.ts +10 -10
- package/src/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregationStateBuilder.ts +10 -12
- package/src/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.ts +2 -2
- package/src/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Average.ts +2 -2
- package/src/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Count.ts +2 -2
- package/src/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Distinct.ts +1 -1
- package/src/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.ts +3 -3
- package/src/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_JoinString.ts +3 -3
- package/src/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Max.ts +1 -1
- package/src/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Min.ts +1 -1
- package/src/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.ts +3 -3
- package/src/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.ts +3 -3
- package/src/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Sum.ts +1 -1
- package/src/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterOperator.ts +0 -0
- package/src/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterOperatorLoader.ts +0 -0
- package/src/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterState.ts +15 -17
- package/src/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterStateBuilder.ts +13 -15
- package/src/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.ts +3 -3
- package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperatorHelper.ts +2 -2
- package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.ts +1 -1
- package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_Contain.ts +4 -4
- package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.ts +4 -4
- package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_Equal.ts +7 -7
- package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.ts +4 -4
- package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.ts +0 -0
- package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_In.ts +5 -5
- package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.ts +1 -1
- package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.ts +4 -4
- package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.ts +0 -0
- package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts +4 -4
- package/src/stores/fetch-structure/{projection → tds/projection}/QueryBuilderProjectionColumnState.ts +23 -27
- package/src/stores/fetch-structure/{projection → tds/projection}/QueryBuilderProjectionStateBuilder.ts +23 -24
- package/src/stores/fetch-structure/{projection → tds/projection}/QueryBuilderProjectionValueSpecificationBuilder.ts +40 -45
- package/src/stores/filter/QueryBuilderFilterState.ts +1 -1
- package/src/stores/shared/ValueSpecificationEditorHelper.ts +3 -4
- package/src/stores/workflows/ServiceQueryBuilderState.ts +6 -0
- package/tsconfig.json +41 -39
- package/lib/components/fetch-structure/QueryBuilderProjectionPanel.d.ts.map +0 -1
- package/lib/components/fetch-structure/QueryBuilderProjectionPanel.js.map +0 -1
- package/lib/components/shared/QueryBuilderLambdaEditor.d.ts +0 -43
- package/lib/components/shared/QueryBuilderLambdaEditor.d.ts.map +0 -1
- package/lib/components/shared/QueryBuilderLambdaEditor.js +0 -48
- package/lib/components/shared/QueryBuilderLambdaEditor.js.map +0 -1
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.js.map +0 -1
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.js.map +0 -1
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionStateBuilder.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionStateBuilder.js.map +0 -1
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +0 -1
- package/lib/stores/fetch-structure/projection/QueryResultSetModifierState.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/QueryResultSetModifierState.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js.map +0 -1
- package/src/components/shared/QueryBuilderLambdaEditor.tsx +0 -120
@@ -14,24 +14,15 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
|
17
|
-
import {
|
18
|
-
CustomSelectorInput,
|
19
|
-
PURE_MappingIcon,
|
20
|
-
PURE_RuntimeIcon,
|
21
|
-
PlayIcon,
|
22
|
-
} from '@finos/legend-art';
|
17
|
+
import { CustomSelectorInput, PlayIcon, RobotIcon } from '@finos/legend-art';
|
23
18
|
import { observer } from 'mobx-react-lite';
|
24
|
-
import { getMappingCompatibleClasses } from '@finos/legend-graph';
|
19
|
+
import { getMappingCompatibleClasses, type Service } from '@finos/legend-graph';
|
25
20
|
import {
|
26
|
-
getPackageableElementOptionFormatter,
|
27
21
|
buildElementOption,
|
28
22
|
useApplicationStore,
|
23
|
+
type PackageableElementOption,
|
29
24
|
} from '@finos/legend-application';
|
30
|
-
import {
|
31
|
-
buildRuntimeValueOption,
|
32
|
-
getRuntimeOptionFormatter,
|
33
|
-
QueryBuilderClassSelector,
|
34
|
-
} from '../QueryBuilderSideBar.js';
|
25
|
+
import { QueryBuilderClassSelector } from '../QueryBuilderSideBar.js';
|
35
26
|
import type {
|
36
27
|
ServiceExecutionContext,
|
37
28
|
ServiceQueryBuilderState,
|
@@ -49,7 +40,7 @@ const buildExecutionContextOption = (
|
|
49
40
|
});
|
50
41
|
|
51
42
|
/**
|
52
|
-
* This setup panel supports cascading in order: Execution Context -> Class
|
43
|
+
* This setup panel supports cascading in order: Service -> Execution Context -> Class
|
53
44
|
*
|
54
45
|
* In other words, we will only show:
|
55
46
|
* - For class selector: the list of compatible classes with the selected mapping
|
@@ -61,15 +52,18 @@ const ServiceQueryBuilderSetupPanelContent = observer(
|
|
61
52
|
const { queryBuilderState } = props;
|
62
53
|
const applicationStore = useApplicationStore();
|
63
54
|
|
64
|
-
//
|
65
|
-
const
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
55
|
+
// execution context
|
56
|
+
const serviceOptions =
|
57
|
+
queryBuilderState.usableServices?.map(buildElementOption) ?? [];
|
58
|
+
const selectedServiceOption = buildElementOption(queryBuilderState.service);
|
59
|
+
const onServiceOptionChange = (
|
60
|
+
option: PackageableElementOption<Service>,
|
61
|
+
): void => {
|
62
|
+
if (option.value === queryBuilderState.service) {
|
63
|
+
return;
|
64
|
+
}
|
65
|
+
queryBuilderState.onServiceChange?.(option.value);
|
66
|
+
};
|
73
67
|
|
74
68
|
// execution context
|
75
69
|
const executionContextOptions = queryBuilderState.executionContexts.map(
|
@@ -109,6 +103,23 @@ const ServiceQueryBuilderSetupPanelContent = observer(
|
|
109
103
|
</div>
|
110
104
|
</div>
|
111
105
|
<div className="query-builder__setup__config-group__content">
|
106
|
+
<div className="query-builder__setup__config-group__item">
|
107
|
+
<div
|
108
|
+
className="btn--sm query-builder__setup__config-group__item__label"
|
109
|
+
title="service"
|
110
|
+
>
|
111
|
+
<RobotIcon className="query-builder__setup__service__icon__service" />
|
112
|
+
</div>
|
113
|
+
<CustomSelectorInput
|
114
|
+
className="panel__content__form__section__dropdown query-builder__setup__config-group__item__selector"
|
115
|
+
placeholder="Choose a service..."
|
116
|
+
options={serviceOptions}
|
117
|
+
disabled={serviceOptions.length <= 1}
|
118
|
+
onChange={onServiceOptionChange}
|
119
|
+
value={selectedServiceOption}
|
120
|
+
darkMode={!applicationStore.TEMPORARY__isLightThemeEnabled}
|
121
|
+
/>
|
122
|
+
</div>
|
112
123
|
{/* We will display mapping and runtime selector for single-execution and execution context for multi-execution */}
|
113
124
|
{Boolean(queryBuilderState.executionContexts.length) && (
|
114
125
|
<>
|
@@ -131,48 +142,6 @@ const ServiceQueryBuilderSetupPanelContent = observer(
|
|
131
142
|
</div>
|
132
143
|
</>
|
133
144
|
)}
|
134
|
-
{!queryBuilderState.executionContexts.length && (
|
135
|
-
<>
|
136
|
-
<div className="query-builder__setup__config-group__item">
|
137
|
-
<div
|
138
|
-
className="btn--sm query-builder__setup__config-group__item__label"
|
139
|
-
title="mapping"
|
140
|
-
>
|
141
|
-
<PURE_MappingIcon />
|
142
|
-
</div>
|
143
|
-
<CustomSelectorInput
|
144
|
-
className="panel__content__form__section__dropdown query-builder__setup__config-group__item__selector"
|
145
|
-
disabled={true}
|
146
|
-
options={[]}
|
147
|
-
value={selectedMappingOption}
|
148
|
-
darkMode={!applicationStore.TEMPORARY__isLightThemeEnabled}
|
149
|
-
formatOptionLabel={getPackageableElementOptionFormatter({
|
150
|
-
darkMode:
|
151
|
-
!applicationStore.TEMPORARY__isLightThemeEnabled,
|
152
|
-
})}
|
153
|
-
/>
|
154
|
-
</div>
|
155
|
-
<div className="query-builder__setup__config-group__item">
|
156
|
-
<div
|
157
|
-
className="btn--sm query-builder__setup__config-group__item__label"
|
158
|
-
title="runtime"
|
159
|
-
>
|
160
|
-
<PURE_RuntimeIcon />
|
161
|
-
</div>
|
162
|
-
<CustomSelectorInput
|
163
|
-
className="panel__content__form__section__dropdown query-builder__setup__config-group__item__selector"
|
164
|
-
disabled={true}
|
165
|
-
options={[]}
|
166
|
-
value={selectedRuntimeOption}
|
167
|
-
darkMode={!applicationStore.TEMPORARY__isLightThemeEnabled}
|
168
|
-
formatOptionLabel={getRuntimeOptionFormatter({
|
169
|
-
darkMode:
|
170
|
-
!applicationStore.TEMPORARY__isLightThemeEnabled,
|
171
|
-
})}
|
172
|
-
/>
|
173
|
-
</div>
|
174
|
-
</>
|
175
|
-
)}
|
176
145
|
</div>
|
177
146
|
</div>
|
178
147
|
<QueryBuilderClassSelector
|
package/src/index.ts
CHANGED
@@ -17,9 +17,14 @@
|
|
17
17
|
export * from './stores/QueryBuilderBootstraper.js';
|
18
18
|
export { QueryBuilder_GraphManagerPreset } from './graphManager/QueryBuilder_GraphManagerPreset.js';
|
19
19
|
|
20
|
-
export { QUERY_BUILDER_TEST_ID } from './components
|
21
|
-
export {
|
22
|
-
export {
|
20
|
+
export { QUERY_BUILDER_TEST_ID } from './components/QueryBuilder_TestID.js';
|
21
|
+
export { QueryBuilder_LegendApplicationPlugin } from './components/QueryBuilder_LegendApplicationPlugin.js';
|
22
|
+
export { QueryBuilderNavigationBlocker } from './components/QueryBuilderNavigationBlocker.js';
|
23
|
+
export {
|
24
|
+
QueryBuilder,
|
25
|
+
QUERY_BUILDER_BACKDROP_CONTAINER_ID,
|
26
|
+
} from './components/QueryBuilder.js';
|
27
|
+
export { QueryBuilderState } from './stores/QueryBuilderState.js';
|
23
28
|
|
24
29
|
export { QueryBuilderPropertySearchState } from './stores/explorer/QueryBuilderPropertySearchState.js';
|
25
30
|
export {
|
@@ -32,7 +37,7 @@ export { MappingQueryBuilderState } from './stores/workflows/MappingQueryBuilder
|
|
32
37
|
export {
|
33
38
|
type ServiceExecutionContext,
|
34
39
|
ServiceQueryBuilderState,
|
35
|
-
} from './stores
|
40
|
+
} from './stores/workflows/ServiceQueryBuilderState.js';
|
36
41
|
|
37
42
|
export { getQueryBuilderGraphManagerExtension } from './graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.js';
|
38
43
|
export type { ServiceExecutionAnalysisResult } from './graphManager/action/analytics/ServiceExecutionAnalysis.js';
|
@@ -0,0 +1,28 @@
|
|
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 type { CommandConfigData } from '@finos/legend-application';
|
18
|
+
|
19
|
+
export enum QUERY_BUILDER_COMMAND_KEY {
|
20
|
+
COMPILE = 'query-builder.compile',
|
21
|
+
}
|
22
|
+
|
23
|
+
export const QUERY_BUILDER_COMMAND_CONFIG: CommandConfigData = {
|
24
|
+
[QUERY_BUILDER_COMMAND_KEY.COMPILE]: {
|
25
|
+
title: 'Query Builder: Compile query',
|
26
|
+
defaultKeyboardShortcut: 'f9',
|
27
|
+
},
|
28
|
+
};
|
@@ -19,22 +19,22 @@ import type {
|
|
19
19
|
AbstractPropertyExpression,
|
20
20
|
} from '@finos/legend-graph';
|
21
21
|
import { guaranteeNonNullable, guaranteeType } from '@finos/legend-shared';
|
22
|
-
import { QueryBuilderAggregateOperator_Average } from './fetch-structure/
|
23
|
-
import { QueryBuilderAggregateOperator_Count } from './fetch-structure/
|
24
|
-
import { QueryBuilderAggregateOperator_DistinctCount } from './fetch-structure/
|
25
|
-
import { QueryBuilderAggregateOperator_Max } from './fetch-structure/
|
26
|
-
import { QueryBuilderAggregateOperator_Min } from './fetch-structure/
|
27
|
-
import { QueryBuilderAggregateOperator_StdDev_Population } from './fetch-structure/
|
28
|
-
import { QueryBuilderAggregateOperator_StdDev_Sample } from './fetch-structure/
|
29
|
-
import { QueryBuilderAggregateOperator_Sum } from './fetch-structure/
|
30
|
-
import { QueryBuilderSimpleProjectionColumnState } from './fetch-structure/projection/QueryBuilderProjectionColumnState.js';
|
22
|
+
import { QueryBuilderAggregateOperator_Average } from './fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Average.js';
|
23
|
+
import { QueryBuilderAggregateOperator_Count } from './fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Count.js';
|
24
|
+
import { QueryBuilderAggregateOperator_DistinctCount } from './fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js';
|
25
|
+
import { QueryBuilderAggregateOperator_Max } from './fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Max.js';
|
26
|
+
import { QueryBuilderAggregateOperator_Min } from './fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Min.js';
|
27
|
+
import { QueryBuilderAggregateOperator_StdDev_Population } from './fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js';
|
28
|
+
import { QueryBuilderAggregateOperator_StdDev_Sample } from './fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js';
|
29
|
+
import { QueryBuilderAggregateOperator_Sum } from './fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Sum.js';
|
30
|
+
import { QueryBuilderSimpleProjectionColumnState } from './fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js';
|
31
31
|
import type { QueryBuilderState } from './QueryBuilderState.js';
|
32
32
|
import {
|
33
33
|
COLUMN_SORT_TYPE,
|
34
34
|
SortColumnState,
|
35
|
-
} from './fetch-structure/
|
36
|
-
import type { QueryBuilderAggregateOperator } from './fetch-structure/
|
37
|
-
import {
|
35
|
+
} from './fetch-structure/tds/QueryResultSetModifierState.js';
|
36
|
+
import type { QueryBuilderAggregateOperator } from './fetch-structure/tds/aggregation/QueryBuilderAggregateOperator.js';
|
37
|
+
import { QueryBuilderTDSState } from './fetch-structure/tds/QueryBuilderTDSState.js';
|
38
38
|
|
39
39
|
const PREVIEW_DATA_TAKE_LIMIT = 10;
|
40
40
|
const PREVIEW_DATA_NON_NUMERIC_VALUE_COLUMN_NAME = 'Value';
|
@@ -75,12 +75,12 @@ const NUMERIC_AGG_FUNC_TO_AGG_OP: [
|
|
75
75
|
];
|
76
76
|
|
77
77
|
const createSimpleProjectionColumn = (
|
78
|
-
|
78
|
+
tdsState: QueryBuilderTDSState,
|
79
79
|
propertyExpression: AbstractPropertyExpression,
|
80
80
|
columnName: string,
|
81
81
|
): QueryBuilderSimpleProjectionColumnState => {
|
82
82
|
const col = new QueryBuilderSimpleProjectionColumnState(
|
83
|
-
|
83
|
+
tdsState,
|
84
84
|
propertyExpression,
|
85
85
|
false,
|
86
86
|
);
|
@@ -123,18 +123,18 @@ export const buildNumericPreviewDataQuery = (
|
|
123
123
|
// ]
|
124
124
|
// )
|
125
125
|
const builderState = queryBuilderState.INTERNAL__toBasicQueryBuilderState();
|
126
|
-
const
|
126
|
+
const tdsState = guaranteeType(
|
127
127
|
builderState.fetchStructureState.implementation,
|
128
|
-
|
128
|
+
QueryBuilderTDSState,
|
129
129
|
);
|
130
|
-
const aggregationState =
|
130
|
+
const aggregationState = tdsState.aggregationState;
|
131
131
|
NUMERIC_AGG_FUNC_TO_AGG_OP.forEach((val) => {
|
132
132
|
const colState = createSimpleProjectionColumn(
|
133
|
-
|
133
|
+
tdsState,
|
134
134
|
propertyExpression,
|
135
135
|
val[0],
|
136
136
|
);
|
137
|
-
|
137
|
+
tdsState.projectionColumns.push(colState);
|
138
138
|
const valAggOp = guaranteeNonNullable(
|
139
139
|
aggregationState.operators.find((t) => t instanceof val[1]),
|
140
140
|
);
|
@@ -163,38 +163,38 @@ export const buildNonNumericPreviewDataQuery = (
|
|
163
163
|
// ]
|
164
164
|
// )->sort([desc('Count'), asc('Value')])->take(10)
|
165
165
|
const builderState = queryBuilderState.INTERNAL__toBasicQueryBuilderState();
|
166
|
-
const
|
166
|
+
const tdsState = guaranteeType(
|
167
167
|
builderState.fetchStructureState.implementation,
|
168
|
-
|
168
|
+
QueryBuilderTDSState,
|
169
169
|
);
|
170
170
|
const valueProjectionColState = createSimpleProjectionColumn(
|
171
|
-
|
171
|
+
tdsState,
|
172
172
|
propertyExpression,
|
173
173
|
PREVIEW_DATA_NON_NUMERIC_VALUE_COLUMN_NAME,
|
174
174
|
);
|
175
175
|
const valueCountProjectionState = createSimpleProjectionColumn(
|
176
|
-
|
176
|
+
tdsState,
|
177
177
|
propertyExpression,
|
178
178
|
PREVIEW_DATA_NON_NUMERIC_COUNT_COLUMN_NAME,
|
179
179
|
);
|
180
|
-
|
180
|
+
tdsState.projectionColumns = [
|
181
181
|
valueProjectionColState,
|
182
182
|
valueCountProjectionState,
|
183
183
|
];
|
184
184
|
const distinctCountOp = guaranteeNonNullable(
|
185
|
-
|
185
|
+
tdsState.aggregationState.operators.find(
|
186
186
|
(t) => t instanceof QueryBuilderAggregateOperator_Count,
|
187
187
|
),
|
188
188
|
);
|
189
|
-
|
189
|
+
tdsState.aggregationState.changeColumnAggregateOperator(
|
190
190
|
distinctCountOp,
|
191
191
|
valueCountProjectionState,
|
192
192
|
);
|
193
193
|
// result set
|
194
|
-
|
194
|
+
tdsState.resultSetModifierState.limit = PREVIEW_DATA_TAKE_LIMIT;
|
195
195
|
const sortValueCount = new SortColumnState(valueCountProjectionState);
|
196
196
|
sortValueCount.sortType = COLUMN_SORT_TYPE.DESC;
|
197
|
-
|
197
|
+
tdsState.resultSetModifierState.sortColumns = [
|
198
198
|
sortValueCount,
|
199
199
|
new SortColumnState(valueProjectionColState),
|
200
200
|
];
|
@@ -14,7 +14,14 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
|
17
|
-
import {
|
17
|
+
import {
|
18
|
+
action,
|
19
|
+
flow,
|
20
|
+
observable,
|
21
|
+
makeObservable,
|
22
|
+
computed,
|
23
|
+
flowResult,
|
24
|
+
} from 'mobx';
|
18
25
|
import {
|
19
26
|
type GeneratorFn,
|
20
27
|
LogEvent,
|
@@ -56,7 +63,10 @@ import {
|
|
56
63
|
buildRawLambdaFromLambdaFunction,
|
57
64
|
} from '@finos/legend-graph';
|
58
65
|
import { buildLambdaFunction } from './QueryBuilderValueSpecificationBuilder.js';
|
59
|
-
import type {
|
66
|
+
import type {
|
67
|
+
CommandRegistrar,
|
68
|
+
GenericLegendApplicationStore,
|
69
|
+
} from '@finos/legend-application';
|
60
70
|
import { QueryFunctionsExplorerState } from './explorer/QueryFunctionsExplorerState.js';
|
61
71
|
import { QueryBuilderParametersState } from './QueryBuilderParametersState.js';
|
62
72
|
import type { QueryBuilderFilterOperator } from './filter/QueryBuilderFilterOperator.js';
|
@@ -64,8 +74,9 @@ import { getQueryBuilderCoreFilterOperators } from './filter/QueryBuilderFilterO
|
|
64
74
|
import { QueryBuilderChangeDetectionState } from './QueryBuilderChangeDetectionState.js';
|
65
75
|
import { QueryBuilderMilestoningState } from './QueryBuilderMilestoningState.js';
|
66
76
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../graphManager/QueryBuilderHashUtils.js';
|
77
|
+
import { QUERY_BUILDER_COMMAND_KEY } from './QueryBuilderCommand.js';
|
67
78
|
|
68
|
-
export abstract class QueryBuilderState {
|
79
|
+
export abstract class QueryBuilderState implements CommandRegistrar {
|
69
80
|
applicationStore: GenericLegendApplicationStore;
|
70
81
|
graphManagerState: GraphManagerState;
|
71
82
|
|
@@ -84,7 +95,6 @@ export abstract class QueryBuilderState {
|
|
84
95
|
observableContext: ObserverContext;
|
85
96
|
|
86
97
|
queryCompileState = ActionState.create();
|
87
|
-
showBackdrop = false;
|
88
98
|
showFunctionsExplorerPanel = false;
|
89
99
|
showParametersPanel = false;
|
90
100
|
|
@@ -109,7 +119,6 @@ export abstract class QueryBuilderState {
|
|
109
119
|
resultState: observable,
|
110
120
|
textEditorState: observable,
|
111
121
|
unsupportedQueryState: observable,
|
112
|
-
showBackdrop: observable,
|
113
122
|
showFunctionsExplorerPanel: observable,
|
114
123
|
showParametersPanel: observable,
|
115
124
|
changeDetectionState: observable,
|
@@ -121,7 +130,6 @@ export abstract class QueryBuilderState {
|
|
121
130
|
isQuerySupported: computed,
|
122
131
|
validationIssues: computed,
|
123
132
|
|
124
|
-
setShowBackdrop: action,
|
125
133
|
setShowFunctionsExplorerPanel: action,
|
126
134
|
setShowParametersPanel: action,
|
127
135
|
setClass: action,
|
@@ -185,10 +193,6 @@ export abstract class QueryBuilderState {
|
|
185
193
|
return true;
|
186
194
|
}
|
187
195
|
|
188
|
-
setShowBackdrop(val: boolean): void {
|
189
|
-
this.showBackdrop = val;
|
190
|
-
}
|
191
|
-
|
192
196
|
setShowFunctionsExplorerPanel(val: boolean): void {
|
193
197
|
this.showFunctionsExplorerPanel = val;
|
194
198
|
}
|
@@ -213,6 +217,23 @@ export abstract class QueryBuilderState {
|
|
213
217
|
return !this.unsupportedQueryState.rawLambda;
|
214
218
|
}
|
215
219
|
|
220
|
+
registerCommands(): void {
|
221
|
+
this.applicationStore.commandCenter.registerCommand({
|
222
|
+
key: QUERY_BUILDER_COMMAND_KEY.COMPILE,
|
223
|
+
action: () => {
|
224
|
+
flowResult(this.compileQuery()).catch(
|
225
|
+
this.applicationStore.alertUnhandledError,
|
226
|
+
);
|
227
|
+
},
|
228
|
+
});
|
229
|
+
}
|
230
|
+
|
231
|
+
deregisterCommands(): void {
|
232
|
+
[QUERY_BUILDER_COMMAND_KEY.COMPILE].forEach((key) =>
|
233
|
+
this.applicationStore.commandCenter.deregisterCommand(key),
|
234
|
+
);
|
235
|
+
}
|
236
|
+
|
216
237
|
resetQueryResult(): void {
|
217
238
|
const resultState = new QueryBuilderResultState(this);
|
218
239
|
resultState.setPreviewLimit(this.resultState.previewLimit);
|
@@ -49,12 +49,12 @@ import {
|
|
49
49
|
type INTERNAL__PropagatedValue,
|
50
50
|
type ValueSpecification,
|
51
51
|
} from '@finos/legend-graph';
|
52
|
-
import { processTDSPostFilterExpression } from './fetch-structure/
|
52
|
+
import { processTDSPostFilterExpression } from './fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.js';
|
53
53
|
import { processFilterExpression } from './filter/QueryBuilderFilterStateBuilder.js';
|
54
54
|
import {
|
55
55
|
processTDSAggregateExpression,
|
56
56
|
processTDSGroupByExpression,
|
57
|
-
} from './fetch-structure/
|
57
|
+
} from './fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.js';
|
58
58
|
import {
|
59
59
|
processGraphFetchExpression,
|
60
60
|
processGraphFetchSerializeExpression,
|
@@ -67,7 +67,7 @@ import {
|
|
67
67
|
processTDSSortDirectionExpression,
|
68
68
|
processTDSSortExpression,
|
69
69
|
processTDSTakeExpression,
|
70
|
-
} from './fetch-structure/projection/QueryBuilderProjectionStateBuilder.js';
|
70
|
+
} from './fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js';
|
71
71
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../graphManager/QueryBuilderSupportedFunctions.js';
|
72
72
|
import { LambdaParameterState } from './shared/LambdaParameterState.js';
|
73
73
|
|
@@ -24,18 +24,18 @@ import {
|
|
24
24
|
type RawLambda,
|
25
25
|
} from '@finos/legend-graph';
|
26
26
|
import { guaranteeType, isNonNullable, isString } from '@finos/legend-shared';
|
27
|
-
import { QueryBuilderPostFilterOperator_StartWith } from './fetch-structure/
|
28
|
-
import type { QueryBuilderAggregateColumnState } from './fetch-structure/
|
27
|
+
import { QueryBuilderPostFilterOperator_StartWith } from './fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js';
|
28
|
+
import type { QueryBuilderAggregateColumnState } from './fetch-structure/tds/aggregation/QueryBuilderAggregationState.js';
|
29
29
|
import {
|
30
30
|
PostFilterConditionState,
|
31
31
|
QueryBuilderPostFilterTreeConditionNodeData,
|
32
|
-
} from './fetch-structure/
|
32
|
+
} from './fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js';
|
33
33
|
import {
|
34
34
|
QueryBuilderProjectionColumnState,
|
35
35
|
QueryBuilderSimpleProjectionColumnState,
|
36
|
-
} from './fetch-structure/projection/QueryBuilderProjectionColumnState.js';
|
36
|
+
} from './fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js';
|
37
37
|
import type { QueryBuilderState } from './QueryBuilderState.js';
|
38
|
-
import {
|
38
|
+
import { QueryBuilderTDSState } from './fetch-structure/tds/QueryBuilderTDSState.js';
|
39
39
|
import {
|
40
40
|
DEFAULT_TYPEAHEAD_SEARCH_LIMIT,
|
41
41
|
DEFAULT_TYPEAHEAD_SEARCH_MINIMUM_SEARCH_LENGTH,
|
@@ -45,12 +45,12 @@ const initializeQueryBuilderState = (
|
|
45
45
|
queryBuilderState: QueryBuilderState,
|
46
46
|
): QueryBuilderState => {
|
47
47
|
const builderState = queryBuilderState.INTERNAL__toBasicQueryBuilderState();
|
48
|
-
const
|
48
|
+
const tdsState = guaranteeType(
|
49
49
|
builderState.fetchStructureState.implementation,
|
50
|
-
|
50
|
+
QueryBuilderTDSState,
|
51
51
|
);
|
52
|
-
|
53
|
-
|
52
|
+
tdsState.resultSetModifierState.distinct = true;
|
53
|
+
tdsState.resultSetModifierState.limit = DEFAULT_TYPEAHEAD_SEARCH_LIMIT;
|
54
54
|
return builderState;
|
55
55
|
};
|
56
56
|
|
@@ -61,21 +61,21 @@ const buildColumnTypeaheadQuery = (
|
|
61
61
|
| QueryBuilderAggregateColumnState,
|
62
62
|
value: ValueSpecification | undefined,
|
63
63
|
): RawLambda => {
|
64
|
-
const
|
64
|
+
const tdsState = guaranteeType(
|
65
65
|
builderState.fetchStructureState.implementation,
|
66
|
-
|
66
|
+
QueryBuilderTDSState,
|
67
67
|
);
|
68
68
|
let projectionColumnState;
|
69
69
|
if (columnState instanceof QueryBuilderProjectionColumnState) {
|
70
70
|
projectionColumnState = columnState;
|
71
71
|
} else {
|
72
72
|
projectionColumnState = columnState.projectionColumnState;
|
73
|
-
const aggregationState =
|
73
|
+
const aggregationState = tdsState.aggregationState;
|
74
74
|
aggregationState.columns = [columnState];
|
75
75
|
}
|
76
|
-
|
76
|
+
tdsState.projectionColumns = [projectionColumnState];
|
77
77
|
const postConditionState = new PostFilterConditionState(
|
78
|
-
|
78
|
+
tdsState.postFilterState,
|
79
79
|
columnState,
|
80
80
|
value,
|
81
81
|
new QueryBuilderPostFilterOperator_StartWith(),
|
@@ -84,7 +84,7 @@ const buildColumnTypeaheadQuery = (
|
|
84
84
|
undefined,
|
85
85
|
postConditionState,
|
86
86
|
);
|
87
|
-
|
87
|
+
tdsState.postFilterState.addNodeFromNode(postFilterNode, undefined);
|
88
88
|
return builderState.resultState.buildExecutionRawLambda();
|
89
89
|
};
|
90
90
|
|
@@ -94,12 +94,12 @@ export const buildPropertyTypeaheadQuery = (
|
|
94
94
|
value: ValueSpecification | undefined,
|
95
95
|
): RawLambda => {
|
96
96
|
const builderState = initializeQueryBuilderState(queryBuilderState);
|
97
|
-
const
|
97
|
+
const tdsState = guaranteeType(
|
98
98
|
builderState.fetchStructureState.implementation,
|
99
|
-
|
99
|
+
QueryBuilderTDSState,
|
100
100
|
);
|
101
101
|
const columnState = new QueryBuilderSimpleProjectionColumnState(
|
102
|
-
|
102
|
+
tdsState,
|
103
103
|
propertyExpression,
|
104
104
|
false,
|
105
105
|
);
|
@@ -44,13 +44,13 @@ import {
|
|
44
44
|
} from '@finos/legend-graph';
|
45
45
|
import {
|
46
46
|
addUniqueEntry,
|
47
|
+
formatDate,
|
47
48
|
guaranteeNonNullable,
|
48
49
|
guaranteeType,
|
49
50
|
isNumber,
|
50
51
|
isString,
|
51
52
|
UnsupportedOperationError,
|
52
53
|
} from '@finos/legend-shared';
|
53
|
-
import { format } from 'date-fns';
|
54
54
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../graphManager/QueryBuilderSupportedFunctions.js';
|
55
55
|
import { getDerivedPropertyMilestoningSteoreotype } from './QueryBuilderPropertyEditorState.js';
|
56
56
|
|
@@ -220,9 +220,9 @@ export const generateDefaultValueForPrimitiveType = (
|
|
220
220
|
return 0;
|
221
221
|
case PRIMITIVE_TYPE.DATE:
|
222
222
|
case PRIMITIVE_TYPE.STRICTDATE:
|
223
|
-
return
|
223
|
+
return formatDate(new Date(Date.now()), DATE_FORMAT);
|
224
224
|
case PRIMITIVE_TYPE.DATETIME:
|
225
|
-
return
|
225
|
+
return formatDate(new Date(Date.now()), DATE_TIME_FORMAT);
|
226
226
|
default:
|
227
227
|
throw new UnsupportedOperationError(
|
228
228
|
`Can't generate default value for primitive type '${type}'`,
|
@@ -27,7 +27,7 @@ import type { LambdaFunctionBuilderOption } from '../QueryBuilderValueSpecificat
|
|
27
27
|
import type { QueryBuilderFetchStructureState } from './QueryBuilderFetchStructureState.js';
|
28
28
|
|
29
29
|
export enum FETCH_STRUCTURE_IMPLEMENTATION {
|
30
|
-
|
30
|
+
TABULAR_DATA_STRUCTURE = 'TABULAR_DATA_STRUCTURE',
|
31
31
|
GRAPH_FETCH = 'GRAPH_FETCH',
|
32
32
|
}
|
33
33
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
import { action, makeObservable, observable } from 'mobx';
|
18
18
|
import type { QueryBuilderState } from '../QueryBuilderState.js';
|
19
19
|
import { QueryBuilderGraphFetchTreeState } from './graph-fetch/QueryBuilderGraphFetchTreeState.js';
|
20
|
-
import {
|
20
|
+
import { QueryBuilderTDSState } from './tds/QueryBuilderTDSState.js';
|
21
21
|
import {
|
22
22
|
type QueryBuilderExplorerTreeNodeData,
|
23
23
|
QueryBuilderExplorerTreePropertyNodeData,
|
@@ -46,7 +46,7 @@ export class QueryBuilderFetchStructureState {
|
|
46
46
|
* graph-fetch since `getAll()` naturally works for graph-fetch case
|
47
47
|
* and graph-fetch allows somewhat an empty tree
|
48
48
|
*/
|
49
|
-
this.implementation = new
|
49
|
+
this.implementation = new QueryBuilderTDSState(
|
50
50
|
this.queryBuilderState,
|
51
51
|
this,
|
52
52
|
);
|
@@ -54,8 +54,8 @@ export class QueryBuilderFetchStructureState {
|
|
54
54
|
|
55
55
|
changeImplementation(type: string): void {
|
56
56
|
switch (type) {
|
57
|
-
case FETCH_STRUCTURE_IMPLEMENTATION.
|
58
|
-
this.implementation = new
|
57
|
+
case FETCH_STRUCTURE_IMPLEMENTATION.TABULAR_DATA_STRUCTURE: {
|
58
|
+
this.implementation = new QueryBuilderTDSState(
|
59
59
|
this.queryBuilderState,
|
60
60
|
this,
|
61
61
|
);
|