@finos/legend-query-builder 0.4.1 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/QueryBuilder.js +2 -2
- package/lib/components/QueryBuilderDiffPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderDiffPanel.js.map +1 -1
- package/lib/components/QueryBuilderNavigationBlocker.d.ts.map +1 -1
- package/lib/components/QueryBuilderNavigationBlocker.js +1 -1
- package/lib/components/QueryBuilderNavigationBlocker.js.map +1 -1
- package/lib/components/QueryBuilderParametersPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderParametersPanel.js +20 -23
- package/lib/components/QueryBuilderParametersPanel.js.map +1 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts.map +1 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.js +2 -3
- package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -1
- package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderResultPanel.js.map +1 -1
- package/lib/components/QueryBuilderSideBar.js +3 -3
- package/lib/components/QueryBuilderSideBar.js.map +1 -1
- package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts.map +1 -1
- package/lib/components/explorer/QueryBuilderMilestoningEditor.js +3 -3
- package/lib/components/explorer/QueryBuilderMilestoningEditor.js.map +1 -1
- package/lib/components/fetch-structure/{QueryBuilderOlapGroupByPanel.d.ts → QueryBuilderOLAPGroupByPanel_.d.ts} +3 -3
- package/lib/components/fetch-structure/QueryBuilderOLAPGroupByPanel_.d.ts.map +1 -0
- package/lib/components/fetch-structure/{QueryBuilderOlapGroupByPanel.js → QueryBuilderOLAPGroupByPanel_.js} +63 -25
- package/lib/components/fetch-structure/QueryBuilderOLAPGroupByPanel_.js.map +1 -0
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.js +3 -3
- package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSComponentHelper.d.ts +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSComponentHelper.d.ts.map +1 -1
- package/lib/components/shared/BasicValueSpecificationEditor.d.ts.map +1 -1
- package/lib/components/shared/BasicValueSpecificationEditor.js +7 -8
- package/lib/components/shared/BasicValueSpecificationEditor.js.map +1 -1
- package/lib/components/shared/CustomDatePicker.d.ts.map +1 -1
- package/lib/components/shared/CustomDatePicker.js +30 -35
- package/lib/components/shared/CustomDatePicker.js.map +1 -1
- package/lib/components/shared/LambdaParameterValuesEditor.d.ts.map +1 -1
- package/lib/components/shared/LambdaParameterValuesEditor.js +3 -5
- package/lib/components/shared/LambdaParameterValuesEditor.js.map +1 -1
- package/lib/components/watermark/QueryBuilderWatermark.d.ts.map +1 -1
- package/lib/components/watermark/QueryBuilderWatermark.js +6 -4
- package/lib/components/watermark/QueryBuilderWatermark.js.map +1 -1
- package/lib/graphManager/QueryBuilderHashUtils.d.ts +14 -14
- package/lib/graphManager/QueryBuilderHashUtils.d.ts.map +1 -1
- package/lib/graphManager/QueryBuilderHashUtils.js +14 -14
- package/lib/graphManager/QueryBuilderHashUtils.js.map +1 -1
- package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js +2 -2
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.js +3 -3
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts +1 -1
- package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js +7 -8
- package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js.map +1 -1
- package/lib/index.css +1 -17
- package/lib/index.css.map +1 -1
- package/lib/package.json +5 -5
- package/lib/stores/QueryBuilderMilestoningState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderMilestoningState.js +2 -2
- package/lib/stores/QueryBuilderMilestoningState.js.map +1 -1
- package/lib/stores/QueryBuilderPropertyEditorState.d.ts +5 -0
- package/lib/stores/QueryBuilderPropertyEditorState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderPropertyEditorState.js +13 -22
- package/lib/stores/QueryBuilderPropertyEditorState.js.map +1 -1
- package/lib/stores/QueryBuilderResultState.d.ts +2 -1
- package/lib/stores/QueryBuilderResultState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderResultState.js +14 -16
- package/lib/stores/QueryBuilderResultState.js.map +1 -1
- package/lib/stores/QueryBuilderStateBuilder.d.ts +7 -13
- package/lib/stores/QueryBuilderStateBuilder.d.ts.map +1 -1
- package/lib/stores/QueryBuilderStateBuilder.js +18 -36
- package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilder.js +6 -22
- package/lib/stores/QueryBuilderValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js +8 -5
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts +6 -2
- package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationHelper.js +12 -11
- package/lib/stores/QueryBuilderValueSpecificationHelper.js.map +1 -1
- package/lib/stores/explorer/QueryBuilderExplorerState.d.ts.map +1 -1
- package/lib/stores/explorer/QueryBuilderExplorerState.js +8 -9
- package/lib/stores/explorer/QueryBuilderExplorerState.js.map +1 -1
- package/lib/stores/explorer/QueryBuilderPropertySearchState.d.ts.map +1 -1
- package/lib/stores/explorer/QueryBuilderPropertySearchState.js +2 -4
- package/lib/stores/explorer/QueryBuilderPropertySearchState.js.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.js +8 -10
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/{QueryBuilderTDSColumnState_.d.ts → QueryBuilderTDSColumnState.d.ts} +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSColumnState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/{QueryBuilderTDSColumnState_.js → QueryBuilderTDSColumnState.js} +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSColumnState.js.map +1 -0
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSHelper.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSHelper.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts +5 -5
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +4 -4
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.js +3 -4
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Average.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Average.js +2 -4
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Average.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Count.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Count.js +2 -4
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Count.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js +4 -5
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_JoinString.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js +8 -11
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js +2 -4
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js +2 -4
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js.map +1 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOlapGroupByOperatorLoader.d.ts → QueryBuilderOLAPGroupByOperatorLoader_.d.ts} +3 -3
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader_.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader_.js +36 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader_.js.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOlapGroupByStateBuilder.d.ts → QueryBuilderOLAPGroupByStateBuilder_.d.ts} +2 -2
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByStateBuilder_.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOlapGroupByStateBuilder.js → QueryBuilderOLAPGroupByStateBuilder_.js} +8 -8
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByStateBuilder_.js.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOlapGroupByState.d.ts → QueryBuilderOLAPGroupByState_.d.ts} +35 -35
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByState_.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOlapGroupByState.js → QueryBuilderOLAPGroupByState_.js} +21 -21
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByState_.js.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOlapGroupByValueSpecificationBuilder.d.ts → QueryBuilderOLAPGroupByValueSpecificationBuilder_.d.ts} +3 -3
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByValueSpecificationBuilder_.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOlapGroupByValueSpecificationBuilder.js → QueryBuilderOLAPGroupByValueSpecificationBuilder_.js} +17 -19
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByValueSpecificationBuilder_.js.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_.d.ts → QueryBuilderTDS_OLAPOperator.d.ts} +3 -3
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_.d.ts.map → QueryBuilderTDS_OLAPOperator.d.ts.map} +1 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_.js → QueryBuilderTDS_OLAPOperator.js} +4 -4
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator.js.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Count.d.ts → QueryBuilderTDS_OLAPOperator_Average.d.ts} +3 -3
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Average.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Average.js → QueryBuilderTDS_OLAPOperator_Average.js} +4 -4
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Average.js.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Average.d.ts → QueryBuilderTDS_OLAPOperator_Count.d.ts} +3 -3
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Count.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Count.js → QueryBuilderTDS_OLAPOperator_Count.js} +4 -4
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Count.js.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Sum.d.ts → QueryBuilderTDS_OLAPOperator_Max.d.ts} +3 -3
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Max.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Max.js → QueryBuilderTDS_OLAPOperator_Max.js} +4 -4
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Max.js.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Max.d.ts → QueryBuilderTDS_OLAPOperator_Min.d.ts} +3 -3
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Min.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Min.js → QueryBuilderTDS_OLAPOperator_Min.js} +4 -4
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Min.js.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Min.d.ts → QueryBuilderTDS_OLAPOperator_Sum.d.ts} +3 -3
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Sum.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Sum.js → QueryBuilderTDS_OLAPOperator_Sum.js} +4 -4
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Sum.js.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_AverageRank_.d.ts → QueryBuilderTDS_OLAPRankOperator_AverageRank.d.ts} +3 -3
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_AverageRank.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_AverageRank_.js → QueryBuilderTDS_OLAPRankOperator_AverageRank.js} +6 -4
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_AverageRank_.js.map → QueryBuilderTDS_OLAPRankOperator_AverageRank.js.map} +1 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_DenseRank_.d.ts → QueryBuilderTDS_OLAPRankOperator_DenseRank.d.ts} +3 -3
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_DenseRank.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_DenseRank_.js → QueryBuilderTDS_OLAPRankOperator_DenseRank.js} +6 -4
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_DenseRank_.js.map → QueryBuilderTDS_OLAPRankOperator_DenseRank.js.map} +1 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_Rank_.d.ts → QueryBuilderTDS_OLAPRankOperator_Rank.d.ts} +3 -3
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_Rank.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_Rank_.js → QueryBuilderTDS_OLAPRankOperator_Rank.js} +4 -4
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_Rank_.js.map → QueryBuilderTDS_OLAPRankOperator_Rank.js.map} +1 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_RowNumber_.d.ts → QueryBuilderTDS_OLAPRankOperator_RowNumber.d.ts} +3 -3
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_RowNumber.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_RowNumber_.js → QueryBuilderTDS_OLAPRankOperator_RowNumber.js} +6 -4
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_RowNumber_.js.map → QueryBuilderTDS_OLAPRankOperator_RowNumber.js.map} +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js +10 -10
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js +4 -6
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.d.ts +2 -2
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js +5 -7
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js +5 -7
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js +4 -10
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js +4 -10
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js +3 -7
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.js +3 -7
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js +2 -3
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js +4 -10
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js +5 -5
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js +16 -20
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js +4 -6
- package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperatorValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperatorValueSpecificationBuilder.js +12 -15
- package/lib/stores/filter/operators/QueryBuilderFilterOperatorValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js +6 -7
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js +6 -7
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js +3 -5
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js +3 -5
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js +4 -7
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js +6 -7
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js.map +1 -1
- package/lib/stores/shared/LambdaParameterState.d.ts +1 -2
- package/lib/stores/shared/LambdaParameterState.d.ts.map +1 -1
- package/lib/stores/shared/LambdaParameterState.js +2 -22
- package/lib/stores/shared/LambdaParameterState.js.map +1 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts.map +1 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.js +6 -7
- package/lib/stores/shared/ValueSpecificationEditorHelper.js.map +1 -1
- package/lib/stores/watermark/QueryBuilderWatermarkState.d.ts +1 -2
- package/lib/stores/watermark/QueryBuilderWatermarkState.d.ts.map +1 -1
- package/lib/stores/watermark/QueryBuilderWatermarkState.js +2 -7
- package/lib/stores/watermark/QueryBuilderWatermarkState.js.map +1 -1
- package/lib/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.js +1 -1
- package/lib/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.js.map +1 -1
- package/package.json +12 -12
- package/src/components/QueryBuilder.tsx +2 -2
- package/src/components/QueryBuilderDiffPanel.tsx +4 -16
- package/src/components/QueryBuilderNavigationBlocker.tsx +4 -0
- package/src/components/QueryBuilderParametersPanel.tsx +51 -70
- package/src/components/QueryBuilderPropertyExpressionEditor.tsx +1 -4
- package/src/components/QueryBuilderResultPanel.tsx +2 -1
- package/src/components/QueryBuilderSideBar.tsx +3 -3
- package/src/components/explorer/QueryBuilderMilestoningEditor.tsx +3 -13
- package/src/components/fetch-structure/{QueryBuilderOlapGroupByPanel.tsx → QueryBuilderOLAPGroupByPanel_.tsx} +168 -87
- package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +4 -4
- package/src/components/fetch-structure/QueryBuilderPostTDSPanel.tsx +5 -5
- package/src/components/fetch-structure/QueryBuilderTDSComponentHelper.tsx +1 -1
- package/src/components/shared/BasicValueSpecificationEditor.tsx +1 -10
- package/src/components/shared/CustomDatePicker.tsx +37 -47
- package/src/components/shared/LambdaParameterValuesEditor.tsx +4 -6
- package/src/components/watermark/QueryBuilderWatermark.tsx +16 -6
- package/src/graphManager/QueryBuilderHashUtils.ts +14 -14
- package/src/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.ts +2 -2
- package/src/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.ts +3 -4
- package/src/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.ts +18 -12
- package/src/stores/QueryBuilderMilestoningState.ts +4 -12
- package/src/stores/QueryBuilderPropertyEditorState.ts +15 -30
- package/src/stores/QueryBuilderResultState.ts +19 -22
- package/src/stores/QueryBuilderStateBuilder.ts +44 -78
- package/src/stores/QueryBuilderValueSpecificationBuilder.ts +8 -33
- package/src/stores/QueryBuilderValueSpecificationBuilderHelper.ts +9 -10
- package/src/stores/QueryBuilderValueSpecificationHelper.ts +24 -25
- package/src/stores/explorer/QueryBuilderExplorerState.ts +6 -19
- package/src/stores/explorer/QueryBuilderPropertySearchState.ts +2 -8
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.ts +5 -30
- package/src/stores/fetch-structure/tds/{QueryBuilderTDSColumnState_.ts → QueryBuilderTDSColumnState.ts} +0 -0
- package/src/stores/fetch-structure/tds/QueryBuilderTDSHelper.ts +1 -1
- package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +8 -8
- package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.ts +1 -1
- package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.ts +2 -6
- package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Average.ts +2 -4
- package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Count.ts +2 -4
- package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.ts +2 -7
- package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_JoinString.ts +10 -17
- package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.ts +2 -4
- package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.ts +2 -4
- package/src/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader_.ts +39 -0
- package/src/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOlapGroupByStateBuilder.ts → QueryBuilderOLAPGroupByStateBuilder_.ts} +14 -14
- package/src/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOlapGroupByState.ts → QueryBuilderOLAPGroupByState_.ts} +51 -51
- package/src/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOlapGroupByValueSpecificationBuilder.ts → QueryBuilderOLAPGroupByValueSpecificationBuilder_.ts} +28 -33
- package/src/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_.ts → QueryBuilderTDS_OLAPOperator.ts} +4 -4
- package/src/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Average.ts → QueryBuilderTDS_OLAPOperator_Average.ts} +3 -3
- package/src/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Count.ts → QueryBuilderTDS_OLAPOperator_Count.ts} +3 -3
- package/src/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Max.ts → QueryBuilderTDS_OLAPOperator_Max.ts} +3 -3
- package/src/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Min.ts → QueryBuilderTDS_OLAPOperator_Min.ts} +3 -3
- package/src/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Sum.ts → QueryBuilderTDS_OLAPOperator_Sum.ts} +3 -3
- package/src/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_AverageRank_.ts → QueryBuilderTDS_OLAPRankOperator_AverageRank.ts} +5 -3
- package/src/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_DenseRank_.ts → QueryBuilderTDS_OLAPRankOperator_DenseRank.ts} +5 -3
- package/src/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_Rank_.ts → QueryBuilderTDS_OLAPRankOperator_Rank.ts} +3 -3
- package/src/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_RowNumber_.ts → QueryBuilderTDS_OLAPRankOperator_RowNumber.ts} +5 -3
- package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.ts +11 -10
- package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.ts +1 -1
- package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.ts +0 -12
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.ts +8 -14
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.ts +5 -14
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.ts +4 -12
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.ts +4 -12
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.ts +1 -13
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.ts +3 -13
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.ts +2 -5
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts +4 -12
- package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.ts +7 -11
- package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +13 -44
- package/src/stores/filter/QueryBuilderFilterValueSpecificationBuilder.ts +0 -12
- package/src/stores/filter/operators/QueryBuilderFilterOperatorValueSpecificationBuilder.ts +7 -28
- package/src/stores/filter/operators/QueryBuilderFilterOperator_Contain.ts +6 -6
- package/src/stores/filter/operators/QueryBuilderFilterOperator_EndWith.ts +6 -6
- package/src/stores/filter/operators/QueryBuilderFilterOperator_Equal.ts +0 -8
- package/src/stores/filter/operators/QueryBuilderFilterOperator_In.ts +2 -8
- package/src/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.ts +4 -8
- package/src/stores/filter/operators/QueryBuilderFilterOperator_StartWith.ts +6 -6
- package/src/stores/shared/LambdaParameterState.ts +0 -49
- package/src/stores/shared/ValueSpecificationEditorHelper.ts +2 -9
- package/src/stores/watermark/QueryBuilderWatermarkState.ts +2 -29
- package/src/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.ts +0 -2
- package/tsconfig.json +16 -16
- package/lib/components/fetch-structure/QueryBuilderOlapGroupByPanel.d.ts.map +0 -1
- package/lib/components/fetch-structure/QueryBuilderOlapGroupByPanel.js.map +0 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSColumnState_.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSColumnState_.js.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByOperatorLoader.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByOperatorLoader.js +0 -36
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByOperatorLoader.js.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByState.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByState.js.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByStateBuilder.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByStateBuilder.js.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByValueSpecificationBuilder.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByValueSpecificationBuilder.js.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_.js.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Average.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Average.js.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Count.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Count.js.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Max.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Max.js.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Min.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Min.js.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Sum.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Sum.js.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_AverageRank_.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_DenseRank_.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_Rank_.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_RowNumber_.d.ts.map +0 -1
- package/src/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByOperatorLoader.ts +0 -39
@@ -23,6 +23,7 @@ import {
|
|
23
23
|
Enumeration,
|
24
24
|
PRIMITIVE_TYPE,
|
25
25
|
observe_ValueSpecification,
|
26
|
+
PrimitiveType,
|
26
27
|
} from '@finos/legend-graph';
|
27
28
|
import {
|
28
29
|
type GeneratorFn,
|
@@ -66,7 +67,7 @@ import {
|
|
66
67
|
import { QUERY_BUILDER_GROUP_OPERATION } from '../../../QueryBuilderGroupOperationHelper.js';
|
67
68
|
import type { QueryBuilderTDSState } from '../QueryBuilderTDSState.js';
|
68
69
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../graphManager/QueryBuilderHashUtils.js';
|
69
|
-
import type { QueryBuilderTDSColumnState } from '../
|
70
|
+
import type { QueryBuilderTDSColumnState } from '../QueryBuilderTDSColumnState.js';
|
70
71
|
|
71
72
|
export enum QUERY_BUILDER_POST_FILTER_DND_TYPE {
|
72
73
|
GROUP_CONDITION = 'GROUP_CONDITION',
|
@@ -127,23 +128,23 @@ export const getTypeFromDerivedProperty = (
|
|
127
128
|
): Type | undefined => {
|
128
129
|
switch (derivedProperty) {
|
129
130
|
case TDS_COLUMN_GETTER.GET_STRING:
|
130
|
-
return
|
131
|
+
return PrimitiveType.STRING;
|
131
132
|
case TDS_COLUMN_GETTER.GET_NUMBER:
|
132
|
-
return
|
133
|
+
return PrimitiveType.NUMBER;
|
133
134
|
case TDS_COLUMN_GETTER.GET_INTEGER:
|
134
|
-
return
|
135
|
+
return PrimitiveType.INTEGER;
|
135
136
|
case TDS_COLUMN_GETTER.GET_FLOAT:
|
136
|
-
return
|
137
|
+
return PrimitiveType.FLOAT;
|
137
138
|
case TDS_COLUMN_GETTER.GET_DECIMAL:
|
138
|
-
return
|
139
|
+
return PrimitiveType.DECIMAL;
|
139
140
|
case TDS_COLUMN_GETTER.GET_DATE:
|
140
|
-
return
|
141
|
+
return PrimitiveType.DATE;
|
141
142
|
case TDS_COLUMN_GETTER.GET_DATETIME:
|
142
|
-
return
|
143
|
+
return PrimitiveType.DATETIME;
|
143
144
|
case TDS_COLUMN_GETTER.GET_STRICTDATE:
|
144
|
-
return
|
145
|
+
return PrimitiveType.STRICTDATE;
|
145
146
|
case TDS_COLUMN_GETTER.GET_BOOLEAN:
|
146
|
-
return
|
147
|
+
return PrimitiveType.BOOLEAN;
|
147
148
|
default:
|
148
149
|
return undefined;
|
149
150
|
}
|
@@ -33,7 +33,7 @@ import {
|
|
33
33
|
UnsupportedOperationError,
|
34
34
|
} from '@finos/legend-shared';
|
35
35
|
import { QueryBuilderDerivationProjectionColumnState } from '../projection/QueryBuilderProjectionColumnState.js';
|
36
|
-
import type { QueryBuilderTDSColumnState } from '../
|
36
|
+
import type { QueryBuilderTDSColumnState } from '../QueryBuilderTDSColumnState.js';
|
37
37
|
import { getTDSColumnState } from '../QueryBuilderTDSHelper.js';
|
38
38
|
import type { QueryBuilderPostFilterOperator } from './QueryBuilderPostFilterOperator.js';
|
39
39
|
import {
|
@@ -17,7 +17,6 @@
|
|
17
17
|
import {
|
18
18
|
extractElementNameFromPath,
|
19
19
|
SimpleFunctionExpression,
|
20
|
-
TYPICAL_MULTIPLICITY_TYPE,
|
21
20
|
type LambdaFunction,
|
22
21
|
type ValueSpecification,
|
23
22
|
} from '@finos/legend-graph';
|
@@ -41,13 +40,8 @@ const buildPostFilterExpression = (
|
|
41
40
|
node.condition,
|
42
41
|
);
|
43
42
|
} else if (node instanceof QueryBuilderPostFilterTreeGroupNodeData) {
|
44
|
-
const multiplicityOne =
|
45
|
-
postFilterState.tdsState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
|
46
|
-
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
47
|
-
);
|
48
43
|
const func = new SimpleFunctionExpression(
|
49
44
|
extractElementNameFromPath(fromGroupOperation(node.groupOperation)),
|
50
|
-
multiplicityOne,
|
51
45
|
);
|
52
46
|
const clauses = node.childrenIds
|
53
47
|
.map((e) => postFilterState.nodes.get(e))
|
@@ -72,7 +66,6 @@ const buildPostFilterExpression = (
|
|
72
66
|
const clause2 = currentClause;
|
73
67
|
const groupClause = new SimpleFunctionExpression(
|
74
68
|
extractElementNameFromPath(fromGroupOperation(node.groupOperation)),
|
75
|
-
multiplicityOne,
|
76
69
|
);
|
77
70
|
groupClause.parametersValues = [clause1, clause2];
|
78
71
|
currentClause = groupClause;
|
@@ -100,10 +93,6 @@ export const appendPostFilter = (
|
|
100
93
|
) {
|
101
94
|
return lambdaFunction;
|
102
95
|
}
|
103
|
-
const multiplicityOne =
|
104
|
-
postFilterState.tdsState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
|
105
|
-
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
106
|
-
);
|
107
96
|
const filterLambda = buildGenericLambdaFunctionInstanceValue(
|
108
97
|
postFilterState.lambdaParameterName,
|
109
98
|
postFilterConditionExpressions,
|
@@ -112,7 +101,6 @@ export const appendPostFilter = (
|
|
112
101
|
// main filter expression
|
113
102
|
const filterExpression = new SimpleFunctionExpression(
|
114
103
|
extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_FILTER),
|
115
|
-
multiplicityOne,
|
116
104
|
);
|
117
105
|
const currentExpression = guaranteeNonNullable(
|
118
106
|
lambdaFunction.expressionSequence[0],
|
package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.ts
CHANGED
@@ -14,27 +14,21 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
|
17
|
-
import {
|
18
|
-
type Multiplicity,
|
19
|
-
TYPICAL_MULTIPLICITY_TYPE,
|
20
|
-
} from '@finos/legend-graph';
|
17
|
+
import { Multiplicity } from '@finos/legend-graph';
|
21
18
|
import { UnsupportedOperationError } from '@finos/legend-shared';
|
22
19
|
import { QueryBuilderAggregateColumnState } from '../../aggregation/QueryBuilderAggregationState.js';
|
23
|
-
import {
|
20
|
+
import { QueryBuilderOLAPGroupByColumnState } from '../../olapGroupBy/QueryBuilderOLAPGroupByState_.js';
|
24
21
|
import { QueryBuilderSimpleProjectionColumnState } from '../../projection/QueryBuilderProjectionColumnState.js';
|
25
|
-
import type { QueryBuilderTDSColumnState } from '../../
|
22
|
+
import type { QueryBuilderTDSColumnState } from '../../QueryBuilderTDSColumnState.js';
|
26
23
|
|
27
24
|
export const getColumnMultiplicity = (
|
28
25
|
columnState: QueryBuilderTDSColumnState | QueryBuilderAggregateColumnState,
|
29
26
|
): Multiplicity => {
|
30
|
-
if (
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
return columnState.olapState.tdsState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
|
36
|
-
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
37
|
-
);
|
27
|
+
if (
|
28
|
+
columnState instanceof QueryBuilderAggregateColumnState ||
|
29
|
+
columnState instanceof QueryBuilderOLAPGroupByColumnState
|
30
|
+
) {
|
31
|
+
return Multiplicity.ONE;
|
38
32
|
} else if (columnState instanceof QueryBuilderSimpleProjectionColumnState) {
|
39
33
|
return columnState.propertyExpressionState.propertyExpression.func.value
|
40
34
|
.multiplicity;
|
@@ -21,13 +21,13 @@ import {
|
|
21
21
|
GenericType,
|
22
22
|
GenericTypeExplicitReference,
|
23
23
|
PrimitiveInstanceValue,
|
24
|
-
PRIMITIVE_TYPE,
|
25
24
|
SimpleFunctionExpression,
|
26
|
-
TYPICAL_MULTIPLICITY_TYPE,
|
27
25
|
VariableExpression,
|
28
26
|
getAllClassDerivedProperties,
|
29
27
|
CORE_PURE_PATH,
|
30
28
|
PropertyExplicitReference,
|
29
|
+
Multiplicity,
|
30
|
+
PrimitiveType,
|
31
31
|
} from '@finos/legend-graph';
|
32
32
|
import { guaranteeNonNullable } from '@finos/legend-shared';
|
33
33
|
import type { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator.js';
|
@@ -52,16 +52,9 @@ export const buildPostFilterConditionExpression = (
|
|
52
52
|
const graph =
|
53
53
|
filterConditionState.postFilterState.tdsState.queryBuilderState
|
54
54
|
.graphManagerState.graph;
|
55
|
-
const multiplicityOne = graph.getTypicalMultiplicity(
|
56
|
-
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
57
|
-
);
|
58
|
-
const typeString = graph.getPrimitiveType(PRIMITIVE_TYPE.STRING);
|
59
55
|
// property expression
|
60
56
|
const colState = filterConditionState.columnState;
|
61
|
-
const tdsPropertyExpression = new AbstractPropertyExpression(
|
62
|
-
'',
|
63
|
-
multiplicityOne,
|
64
|
-
);
|
57
|
+
const tdsPropertyExpression = new AbstractPropertyExpression('');
|
65
58
|
let tdsDerivedPropertyName: TDS_COLUMN_GETTER;
|
66
59
|
const correspondingTDSDerivedProperty = operator.getTDSColumnGetter();
|
67
60
|
if (correspondingTDSDerivedProperty) {
|
@@ -79,11 +72,10 @@ export const buildPostFilterConditionExpression = (
|
|
79
72
|
);
|
80
73
|
const variableName = new VariableExpression(
|
81
74
|
filterConditionState.postFilterState.lambdaParameterName,
|
82
|
-
|
75
|
+
Multiplicity.ONE,
|
83
76
|
);
|
84
77
|
const colInstanceValue = new PrimitiveInstanceValue(
|
85
|
-
GenericTypeExplicitReference.create(new GenericType(
|
86
|
-
multiplicityOne,
|
78
|
+
GenericTypeExplicitReference.create(new GenericType(PrimitiveType.STRING)),
|
87
79
|
);
|
88
80
|
colInstanceValue.values = [colState.columnName];
|
89
81
|
tdsPropertyExpression.parametersValues = [variableName, colInstanceValue];
|
@@ -91,7 +83,6 @@ export const buildPostFilterConditionExpression = (
|
|
91
83
|
if (operatorFunctionFullPath) {
|
92
84
|
const expression = new SimpleFunctionExpression(
|
93
85
|
extractElementNameFromPath(operatorFunctionFullPath),
|
94
|
-
multiplicityOne,
|
95
86
|
);
|
96
87
|
expression.parametersValues.push(tdsPropertyExpression);
|
97
88
|
if (filterConditionState.value) {
|
@@ -20,6 +20,7 @@ import {
|
|
20
20
|
type ValueSpecification,
|
21
21
|
type FunctionExpression,
|
22
22
|
PRIMITIVE_TYPE,
|
23
|
+
PrimitiveType,
|
23
24
|
} from '@finos/legend-graph';
|
24
25
|
import {
|
25
26
|
guaranteeNonNullable,
|
@@ -53,10 +54,7 @@ export class QueryBuilderPostFilterOperator_Contain
|
|
53
54
|
}
|
54
55
|
|
55
56
|
isCompatibleWithType(type: Type): boolean {
|
56
|
-
|
57
|
-
return true;
|
58
|
-
}
|
59
|
-
return false;
|
57
|
+
return type === PrimitiveType.STRING;
|
60
58
|
}
|
61
59
|
|
62
60
|
isCompatibleWithConditionValue(
|
@@ -65,7 +63,7 @@ export class QueryBuilderPostFilterOperator_Contain
|
|
65
63
|
const type = postFilterConditionState.value
|
66
64
|
? getNonCollectionValueSpecificationType(postFilterConditionState.value)
|
67
65
|
: undefined;
|
68
|
-
return
|
66
|
+
return PrimitiveType.STRING === type;
|
69
67
|
}
|
70
68
|
|
71
69
|
getDefaultFilterConditionValue(
|
@@ -131,13 +129,7 @@ export class QueryBuilderPostFilterOperator_NotContain extends QueryBuilderPostF
|
|
131
129
|
const expression = super.buildPostFilterConditionExpression(
|
132
130
|
postFilterConditionState,
|
133
131
|
);
|
134
|
-
return expression
|
135
|
-
? buildNotExpression(
|
136
|
-
expression,
|
137
|
-
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
138
|
-
.graphManagerState.graph,
|
139
|
-
)
|
140
|
-
: undefined;
|
132
|
+
return expression ? buildNotExpression(expression) : undefined;
|
141
133
|
}
|
142
134
|
|
143
135
|
override buildPostFilterConditionState(
|
@@ -19,6 +19,7 @@ import {
|
|
19
19
|
type ValueSpecification,
|
20
20
|
type FunctionExpression,
|
21
21
|
PRIMITIVE_TYPE,
|
22
|
+
PrimitiveType,
|
22
23
|
} from '@finos/legend-graph';
|
23
24
|
import {
|
24
25
|
type Hashable,
|
@@ -51,10 +52,7 @@ export class QueryBuilderPostFilterOperator_EndWith
|
|
51
52
|
}
|
52
53
|
|
53
54
|
isCompatibleWithType(type: Type): boolean {
|
54
|
-
|
55
|
-
return true;
|
56
|
-
}
|
57
|
-
return false;
|
55
|
+
return PrimitiveType.STRING === type;
|
58
56
|
}
|
59
57
|
|
60
58
|
isCompatibleWithConditionValue(
|
@@ -63,7 +61,7 @@ export class QueryBuilderPostFilterOperator_EndWith
|
|
63
61
|
const type = postFilterConditionState.value
|
64
62
|
? getNonCollectionValueSpecificationType(postFilterConditionState.value)
|
65
63
|
: undefined;
|
66
|
-
return
|
64
|
+
return PrimitiveType.STRING === type;
|
67
65
|
}
|
68
66
|
|
69
67
|
getDefaultFilterConditionValue(
|
@@ -128,13 +126,7 @@ export class QueryBuilderPostFilterOperator_NotEndWith extends QueryBuilderPostF
|
|
128
126
|
const expression = super.buildPostFilterConditionExpression(
|
129
127
|
postFilterConditionState,
|
130
128
|
);
|
131
|
-
return expression
|
132
|
-
? buildNotExpression(
|
133
|
-
expression,
|
134
|
-
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
135
|
-
.graphManagerState.graph,
|
136
|
-
)
|
137
|
-
: undefined;
|
129
|
+
return expression ? buildNotExpression(expression) : undefined;
|
138
130
|
}
|
139
131
|
|
140
132
|
override buildPostFilterConditionState(
|
package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.ts
CHANGED
@@ -27,7 +27,6 @@ import {
|
|
27
27
|
GenericType,
|
28
28
|
GenericTypeExplicitReference,
|
29
29
|
PRIMITIVE_TYPE,
|
30
|
-
TYPICAL_MULTIPLICITY_TYPE,
|
31
30
|
SUPPORTED_FUNCTIONS,
|
32
31
|
} from '@finos/legend-graph';
|
33
32
|
import {
|
@@ -131,15 +130,10 @@ export class QueryBuilderPostFilterOperator_Equal
|
|
131
130
|
default:
|
132
131
|
if (propertyType instanceof Enumeration) {
|
133
132
|
if (propertyType.values.length > 0) {
|
134
|
-
const multiplicityOne =
|
135
|
-
postFilterConditionState.postFilterState.tdsState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
|
136
|
-
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
137
|
-
);
|
138
133
|
const enumValueInstanceValue = new EnumValueInstanceValue(
|
139
134
|
GenericTypeExplicitReference.create(
|
140
135
|
new GenericType(propertyType),
|
141
136
|
),
|
142
|
-
multiplicityOne,
|
143
137
|
);
|
144
138
|
instanceValue_setValues(enumValueInstanceValue, [
|
145
139
|
EnumValueExplicitReference.create(propertyType.values[0] as Enum),
|
@@ -208,13 +202,7 @@ export class QueryBuilderPostFilterOperator_NotEqual extends QueryBuilderPostFil
|
|
208
202
|
const expression = super.buildPostFilterConditionExpression(
|
209
203
|
postFilterConditionState,
|
210
204
|
);
|
211
|
-
return expression
|
212
|
-
? buildNotExpression(
|
213
|
-
expression,
|
214
|
-
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
215
|
-
.graphManagerState.graph,
|
216
|
-
)
|
217
|
-
: undefined;
|
205
|
+
return expression ? buildNotExpression(expression) : undefined;
|
218
206
|
}
|
219
207
|
|
220
208
|
override buildPostFilterConditionState(
|
package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.ts
CHANGED
@@ -25,7 +25,7 @@ import {
|
|
25
25
|
VariableExpression,
|
26
26
|
GenericTypeExplicitReference,
|
27
27
|
GenericType,
|
28
|
-
|
28
|
+
Multiplicity,
|
29
29
|
} from '@finos/legend-graph';
|
30
30
|
import {
|
31
31
|
guaranteeNonNullable,
|
@@ -123,15 +123,11 @@ export class QueryBuilderPostFilterOperator_In
|
|
123
123
|
getDefaultFilterConditionValue(
|
124
124
|
postFilterConditionState: PostFilterConditionState,
|
125
125
|
): ValueSpecification {
|
126
|
-
const multiplicityOne =
|
127
|
-
postFilterConditionState.postFilterState.tdsState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
|
128
|
-
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
129
|
-
);
|
130
126
|
const propertyType = guaranteeNonNullable(
|
131
127
|
postFilterConditionState.columnState.getColumnType(),
|
132
128
|
);
|
133
129
|
return new CollectionInstanceValue(
|
134
|
-
|
130
|
+
Multiplicity.ONE,
|
135
131
|
GenericTypeExplicitReference.create(new GenericType(propertyType)),
|
136
132
|
);
|
137
133
|
}
|
@@ -174,13 +170,7 @@ export class QueryBuilderPostFilterOperator_NotIn extends QueryBuilderPostFilter
|
|
174
170
|
const expression = super.buildPostFilterConditionExpression(
|
175
171
|
postFilterConditionState,
|
176
172
|
);
|
177
|
-
return expression
|
178
|
-
? buildNotExpression(
|
179
|
-
expression,
|
180
|
-
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
181
|
-
.graphManagerState.graph,
|
182
|
-
)
|
183
|
-
: undefined;
|
173
|
+
return expression ? buildNotExpression(expression) : undefined;
|
184
174
|
}
|
185
175
|
|
186
176
|
override buildPostFilterConditionState(
|
@@ -19,7 +19,7 @@ import {
|
|
19
19
|
type ValueSpecification,
|
20
20
|
type FunctionExpression,
|
21
21
|
Enumeration,
|
22
|
-
|
22
|
+
PrimitiveType,
|
23
23
|
} from '@finos/legend-graph';
|
24
24
|
import { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator.js';
|
25
25
|
import { buildPostFilterConditionState } from '../QueryBuilderPostFilterStateBuilder.js';
|
@@ -47,10 +47,7 @@ export class QueryBuilderPostFilterOperator_IsEmpty
|
|
47
47
|
}
|
48
48
|
|
49
49
|
isCompatibleWithType(type: Type): boolean {
|
50
|
-
return
|
51
|
-
Object.values(PRIMITIVE_TYPE).includes(type.path as PRIMITIVE_TYPE) ||
|
52
|
-
type instanceof Enumeration
|
53
|
-
);
|
50
|
+
return type instanceof PrimitiveType || type instanceof Enumeration;
|
54
51
|
}
|
55
52
|
|
56
53
|
isCompatibleWithConditionValue(
|
@@ -20,6 +20,7 @@ import {
|
|
20
20
|
type SimpleFunctionExpression,
|
21
21
|
type FunctionExpression,
|
22
22
|
PRIMITIVE_TYPE,
|
23
|
+
PrimitiveType,
|
23
24
|
} from '@finos/legend-graph';
|
24
25
|
import {
|
25
26
|
type Hashable,
|
@@ -52,10 +53,7 @@ export class QueryBuilderPostFilterOperator_StartWith
|
|
52
53
|
}
|
53
54
|
|
54
55
|
isCompatibleWithType(type: Type): boolean {
|
55
|
-
|
56
|
-
return true;
|
57
|
-
}
|
58
|
-
return false;
|
56
|
+
return PrimitiveType.STRING === type;
|
59
57
|
}
|
60
58
|
|
61
59
|
isCompatibleWithConditionValue(
|
@@ -64,7 +62,7 @@ export class QueryBuilderPostFilterOperator_StartWith
|
|
64
62
|
const type = postFilterConditionState.value
|
65
63
|
? getNonCollectionValueSpecificationType(postFilterConditionState.value)
|
66
64
|
: undefined;
|
67
|
-
return
|
65
|
+
return PrimitiveType.STRING === type;
|
68
66
|
}
|
69
67
|
|
70
68
|
getDefaultFilterConditionValue(
|
@@ -131,13 +129,7 @@ export class QueryBuilderPostFilterOperator_NotStartWith
|
|
131
129
|
const expression = super.buildPostFilterConditionExpression(
|
132
130
|
postFilterConditionState,
|
133
131
|
);
|
134
|
-
return expression
|
135
|
-
? buildNotExpression(
|
136
|
-
expression,
|
137
|
-
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
138
|
-
.graphManagerState.graph,
|
139
|
-
)
|
140
|
-
: undefined;
|
132
|
+
return expression ? buildNotExpression(expression) : undefined;
|
141
133
|
}
|
142
134
|
|
143
135
|
override buildPostFilterConditionState(
|
@@ -40,16 +40,16 @@ import {
|
|
40
40
|
type VariableExpression,
|
41
41
|
PackageableElementExplicitReference,
|
42
42
|
GRAPH_MANAGER_EVENT,
|
43
|
-
PRIMITIVE_TYPE,
|
44
43
|
buildSourceInformationSourceId,
|
45
44
|
ParserError,
|
46
|
-
TYPICAL_MULTIPLICITY_TYPE,
|
47
45
|
RawVariableExpression,
|
48
46
|
Enumeration,
|
49
47
|
RawLambda,
|
50
48
|
stub_RawLambda,
|
49
|
+
Multiplicity,
|
50
|
+
PrimitiveType,
|
51
51
|
} from '@finos/legend-graph';
|
52
|
-
import { QueryBuilderTDSColumnState } from '../
|
52
|
+
import { QueryBuilderTDSColumnState } from '../QueryBuilderTDSColumnState.js';
|
53
53
|
import type { QueryBuilderTDSState } from '../QueryBuilderTDSState.js';
|
54
54
|
import {
|
55
55
|
DEFAULT_LAMBDA_VARIABLE_NAME,
|
@@ -294,16 +294,13 @@ export class QueryBuilderDerivationProjectionColumnState
|
|
294
294
|
assertTrue(Array.isArray(this.lambda.parameters));
|
295
295
|
const projectionParameter = this.lambda.parameters as object[];
|
296
296
|
const graph = this.tdsState.queryBuilderState.graphManagerState.graph;
|
297
|
-
const multiplicityOne = graph.getTypicalMultiplicity(
|
298
|
-
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
299
|
-
);
|
300
297
|
assertTrue(projectionParameter.length === 1);
|
301
298
|
const variable = projectionParameter[0] as VariableExpression;
|
302
299
|
assertNonEmptyString(variable.name);
|
303
300
|
// assign variable to query class
|
304
301
|
const rawVariableExpression = new RawVariableExpression(
|
305
302
|
variable.name,
|
306
|
-
|
303
|
+
Multiplicity.ONE,
|
307
304
|
PackageableElementExplicitReference.create(
|
308
305
|
guaranteeNonNullable(this.tdsState.queryBuilderState.class),
|
309
306
|
),
|
@@ -323,10 +320,9 @@ export class QueryBuilderDerivationProjectionColumnState
|
|
323
320
|
)) as string;
|
324
321
|
const resolvedType = graph.getType(type);
|
325
322
|
assertTrue(
|
326
|
-
|
327
|
-
resolvedType
|
328
|
-
|
329
|
-
'projection column must have primitive return type',
|
323
|
+
resolvedType instanceof PrimitiveType ||
|
324
|
+
resolvedType instanceof Enumeration,
|
325
|
+
'Projection column must have return type of either primitve type or enumeration',
|
330
326
|
);
|
331
327
|
this.setReturnType(resolvedType);
|
332
328
|
}
|
package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts
CHANGED
@@ -21,15 +21,14 @@ import {
|
|
21
21
|
GenericType,
|
22
22
|
GenericTypeExplicitReference,
|
23
23
|
PrimitiveInstanceValue,
|
24
|
-
PRIMITIVE_TYPE,
|
25
24
|
SimpleFunctionExpression,
|
26
|
-
TYPICAL_MULTIPLICITY_TYPE,
|
27
25
|
type ValueSpecification,
|
28
26
|
INTERNAL__UnknownValueSpecification,
|
29
27
|
V1_serializeRawValueSpecification,
|
30
28
|
V1_transformRawLambda,
|
31
29
|
V1_GraphTransformerContextBuilder,
|
32
30
|
matchFunctionName,
|
31
|
+
PrimitiveType,
|
33
32
|
} from '@finos/legend-graph';
|
34
33
|
import {
|
35
34
|
guaranteeNonNullable,
|
@@ -48,33 +47,21 @@ import {
|
|
48
47
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
49
48
|
import { buildGenericLambdaFunctionInstanceValue } from '../../../QueryBuilderValueSpecificationHelper.js';
|
50
49
|
import { buildPropertyExpressionChain } from '../../../QueryBuilderValueSpecificationBuilderHelper.js';
|
51
|
-
import {
|
50
|
+
import { appendOLAPGroupByState } from '../olapGroupBy/QueryBuilderOLAPGroupByValueSpecificationBuilder_.js';
|
52
51
|
import { appendPostFilter } from '../post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js';
|
53
52
|
|
54
53
|
const buildSortExpression = (
|
55
54
|
sortColumnState: SortColumnState,
|
56
55
|
): SimpleFunctionExpression => {
|
57
|
-
const multiplicityOne =
|
58
|
-
sortColumnState.columnState.tdsState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
|
59
|
-
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
60
|
-
);
|
61
56
|
const sortColumnFunction = new SimpleFunctionExpression(
|
62
57
|
extractElementNameFromPath(
|
63
58
|
sortColumnState.sortType === COLUMN_SORT_TYPE.ASC
|
64
59
|
? QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_ASC
|
65
60
|
: QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_DESC,
|
66
61
|
),
|
67
|
-
multiplicityOne,
|
68
62
|
);
|
69
63
|
const sortColumnName = new PrimitiveInstanceValue(
|
70
|
-
GenericTypeExplicitReference.create(
|
71
|
-
new GenericType(
|
72
|
-
sortColumnState.columnState.tdsState.queryBuilderState.graphManagerState.graph.getPrimitiveType(
|
73
|
-
PRIMITIVE_TYPE.STRING,
|
74
|
-
),
|
75
|
-
),
|
76
|
-
),
|
77
|
-
multiplicityOne,
|
64
|
+
GenericTypeExplicitReference.create(new GenericType(PrimitiveType.STRING)),
|
78
65
|
);
|
79
66
|
sortColumnName.values = [sortColumnState.columnState.columnName];
|
80
67
|
sortColumnFunction.parametersValues[0] = sortColumnName;
|
@@ -90,10 +77,6 @@ const appendResultSetModifier = (
|
|
90
77
|
}
|
91
78
|
| undefined,
|
92
79
|
): LambdaFunction => {
|
93
|
-
const multiplicityOne =
|
94
|
-
resultModifierState.tdsState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
|
95
|
-
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
96
|
-
);
|
97
80
|
if (lambdaFunction.expressionSequence.length === 1) {
|
98
81
|
const func = lambdaFunction.expressionSequence[0];
|
99
82
|
if (func instanceof SimpleFunctionExpression) {
|
@@ -112,7 +95,6 @@ const appendResultSetModifier = (
|
|
112
95
|
extractElementNameFromPath(
|
113
96
|
QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_DISTINCT,
|
114
97
|
),
|
115
|
-
multiplicityOne,
|
116
98
|
);
|
117
99
|
distinctFunction.parametersValues[0] = currentExpression;
|
118
100
|
currentExpression = distinctFunction;
|
@@ -124,7 +106,6 @@ const appendResultSetModifier = (
|
|
124
106
|
extractElementNameFromPath(
|
125
107
|
QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_SORT,
|
126
108
|
),
|
127
|
-
multiplicityOne,
|
128
109
|
);
|
129
110
|
const multiplicity =
|
130
111
|
resultModifierState.tdsState.queryBuilderState.graphManagerState.graph.getMultiplicity(
|
@@ -146,13 +127,8 @@ const appendResultSetModifier = (
|
|
146
127
|
if (resultModifierState.limit || options?.overridingLimit) {
|
147
128
|
const limit = new PrimitiveInstanceValue(
|
148
129
|
GenericTypeExplicitReference.create(
|
149
|
-
new GenericType(
|
150
|
-
resultModifierState.tdsState.queryBuilderState.graphManagerState.graph.getPrimitiveType(
|
151
|
-
PRIMITIVE_TYPE.INTEGER,
|
152
|
-
),
|
153
|
-
),
|
130
|
+
new GenericType(PrimitiveType.INTEGER),
|
154
131
|
),
|
155
|
-
multiplicityOne,
|
156
132
|
);
|
157
133
|
limit.values = [
|
158
134
|
Math.min(
|
@@ -164,7 +140,6 @@ const appendResultSetModifier = (
|
|
164
140
|
extractElementNameFromPath(
|
165
141
|
QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_TAKE,
|
166
142
|
),
|
167
|
-
multiplicityOne,
|
168
143
|
);
|
169
144
|
takeFunction.parametersValues[0] = currentExpression;
|
170
145
|
takeFunction.parametersValues[1] = limit;
|
@@ -195,13 +170,6 @@ export const appendProjection = (
|
|
195
170
|
lambdaFunction.expressionSequence[0],
|
196
171
|
`Can't build projection expression: preceding expression is not defined`,
|
197
172
|
);
|
198
|
-
const multiplicityOne =
|
199
|
-
queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
|
200
|
-
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
201
|
-
);
|
202
|
-
const typeString = queryBuilderState.graphManagerState.graph.getPrimitiveType(
|
203
|
-
PRIMITIVE_TYPE.STRING,
|
204
|
-
);
|
205
173
|
|
206
174
|
// build projection
|
207
175
|
if (tdsState.aggregationState.columns.length) {
|
@@ -210,7 +178,6 @@ export const appendProjection = (
|
|
210
178
|
extractElementNameFromPath(
|
211
179
|
QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_GROUP_BY,
|
212
180
|
),
|
213
|
-
multiplicityOne,
|
214
181
|
);
|
215
182
|
|
216
183
|
const colLambdas = new CollectionInstanceValue(
|
@@ -236,8 +203,9 @@ export const appendProjection = (
|
|
236
203
|
tdsState.projectionColumns.forEach((projectionColumnState) => {
|
237
204
|
// column alias
|
238
205
|
const colAlias = new PrimitiveInstanceValue(
|
239
|
-
GenericTypeExplicitReference.create(
|
240
|
-
|
206
|
+
GenericTypeExplicitReference.create(
|
207
|
+
new GenericType(PrimitiveType.STRING),
|
208
|
+
),
|
241
209
|
);
|
242
210
|
colAlias.values.push(projectionColumnState.columnName);
|
243
211
|
colAliases.values.push(colAlias);
|
@@ -257,6 +225,7 @@ export const appendProjection = (
|
|
257
225
|
buildPropertyExpressionChain(
|
258
226
|
projectionColumnState.propertyExpressionState.propertyExpression,
|
259
227
|
projectionColumnState.propertyExpressionState.queryBuilderState,
|
228
|
+
projectionColumnState.lambdaParameterName,
|
260
229
|
true,
|
261
230
|
),
|
262
231
|
],
|
@@ -292,7 +261,6 @@ export const appendProjection = (
|
|
292
261
|
if (aggregateColumnState) {
|
293
262
|
const aggregateFunctionExpression = new SimpleFunctionExpression(
|
294
263
|
extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_AGG),
|
295
|
-
multiplicityOne,
|
296
264
|
);
|
297
265
|
const aggregateLambda = buildGenericLambdaFunctionInstanceValue(
|
298
266
|
aggregateColumnState.lambdaParameterName,
|
@@ -324,7 +292,6 @@ export const appendProjection = (
|
|
324
292
|
// projection
|
325
293
|
const projectFunction = new SimpleFunctionExpression(
|
326
294
|
extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_PROJECT),
|
327
|
-
multiplicityOne,
|
328
295
|
);
|
329
296
|
const colLambdas = new CollectionInstanceValue(
|
330
297
|
queryBuilderState.graphManagerState.graph.getMultiplicity(
|
@@ -341,8 +308,9 @@ export const appendProjection = (
|
|
341
308
|
tdsState.projectionColumns.forEach((projectionColumnState) => {
|
342
309
|
// column alias
|
343
310
|
const colAlias = new PrimitiveInstanceValue(
|
344
|
-
GenericTypeExplicitReference.create(
|
345
|
-
|
311
|
+
GenericTypeExplicitReference.create(
|
312
|
+
new GenericType(PrimitiveType.STRING),
|
313
|
+
),
|
346
314
|
);
|
347
315
|
colAlias.values.push(projectionColumnState.columnName);
|
348
316
|
colAliases.values.push(colAlias);
|
@@ -358,6 +326,7 @@ export const appendProjection = (
|
|
358
326
|
buildPropertyExpressionChain(
|
359
327
|
projectionColumnState.propertyExpressionState.propertyExpression,
|
360
328
|
projectionColumnState.propertyExpressionState.queryBuilderState,
|
329
|
+
projectionColumnState.lambdaParameterName,
|
361
330
|
),
|
362
331
|
],
|
363
332
|
queryBuilderState.graphManagerState.graph,
|
@@ -398,7 +367,7 @@ export const appendProjection = (
|
|
398
367
|
}
|
399
368
|
|
400
369
|
// build olapGroupBy
|
401
|
-
|
370
|
+
appendOLAPGroupByState(tdsState.olapGroupByState, lambdaFunction);
|
402
371
|
|
403
372
|
// build post-filter
|
404
373
|
appendPostFilter(tdsState.postFilterState, lambdaFunction);
|