@finos/legend-query-builder 0.4.0 → 0.4.2
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/QueryBuilderParametersPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderParametersPanel.js +4 -5
- 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/QueryBuilderExplorerPanel.d.ts.map +1 -1
- package/lib/components/explorer/QueryBuilderExplorerPanel.js +2 -2
- package/lib/components/explorer/QueryBuilderExplorerPanel.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 +2 -2
- 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.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js +3 -4
- 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 +14 -18
- 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 +10 -13
- 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/QueryBuilderParametersPanel.tsx +14 -23
- 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/QueryBuilderExplorerPanel.tsx +4 -2
- 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 +2 -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 +11 -44
- package/src/stores/filter/QueryBuilderFilterValueSpecificationBuilder.ts +0 -12
- package/src/stores/filter/operators/QueryBuilderFilterOperatorValueSpecificationBuilder.ts +5 -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
@@ -91,10 +91,10 @@ import type { LambdaFunctionBuilderOption } from '../../QueryBuilderValueSpecifi
|
|
91
91
|
import { appendProjection } from './projection/QueryBuilderProjectionValueSpecificationBuilder.js';
|
92
92
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../graphManager/QueryBuilderSupportedFunctions.js';
|
93
93
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../graphManager/QueryBuilderHashUtils.js';
|
94
|
-
import {
|
95
|
-
import type {
|
96
|
-
import {
|
97
|
-
import type { QueryBuilderTDSColumnState } from './
|
94
|
+
import { QueryBuilderOLAPGroupByState } from './olapGroupBy/QueryBuilderOLAPGroupByState_.js';
|
95
|
+
import type { QueryBuilderTDS_OLAPOperator } from './olapGroupBy/operators/QueryBuilderTDS_OLAPOperator.js';
|
96
|
+
import { getQueryBuilderCoreOLAPGroupByOperators } from './olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader_.js';
|
97
|
+
import type { QueryBuilderTDSColumnState } from './QueryBuilderTDSColumnState.js';
|
98
98
|
|
99
99
|
export class QueryBuilderTDSState
|
100
100
|
extends QueryBuilderFetchStructureImplementationState
|
@@ -102,7 +102,7 @@ export class QueryBuilderTDSState
|
|
102
102
|
{
|
103
103
|
readonly aggregationState: QueryBuilderAggregationState;
|
104
104
|
readonly postFilterState: QueryBuilderPostFilterState;
|
105
|
-
readonly olapGroupByState:
|
105
|
+
readonly olapGroupByState: QueryBuilderOLAPGroupByState;
|
106
106
|
readonly resultSetModifierState: QueryResultSetModifierState;
|
107
107
|
projectionColumns: QueryBuilderProjectionColumnState[] = [];
|
108
108
|
isConvertDerivationProjectionObjects = false;
|
@@ -113,8 +113,8 @@ export class QueryBuilderTDSState
|
|
113
113
|
getQueryBuilderCorePostFilterOperators();
|
114
114
|
aggregationOperators: QueryBuilderAggregateOperator[] =
|
115
115
|
getQueryBuilderCoreAggregrationOperators();
|
116
|
-
olapGroupByOperators:
|
117
|
-
|
116
|
+
olapGroupByOperators: QueryBuilderTDS_OLAPOperator[] =
|
117
|
+
getQueryBuilderCoreOLAPGroupByOperators();
|
118
118
|
|
119
119
|
constructor(
|
120
120
|
queryBuilderState: QueryBuilderState,
|
@@ -147,7 +147,7 @@ export class QueryBuilderTDSState
|
|
147
147
|
this,
|
148
148
|
this.aggregationOperators,
|
149
149
|
);
|
150
|
-
this.olapGroupByState = new
|
150
|
+
this.olapGroupByState = new QueryBuilderOLAPGroupByState(
|
151
151
|
this,
|
152
152
|
this.olapGroupByOperators,
|
153
153
|
);
|
@@ -27,7 +27,7 @@ import type { QueryBuilderTDSState } from '../QueryBuilderTDSState.js';
|
|
27
27
|
import type { QueryBuilderAggregateOperator } from './QueryBuilderAggregateOperator.js';
|
28
28
|
import type { QueryBuilderProjectionColumnState } from '../projection/QueryBuilderProjectionColumnState.js';
|
29
29
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../graphManager/QueryBuilderHashUtils.js';
|
30
|
-
import { QueryBuilderTDSColumnState } from '../
|
30
|
+
import { QueryBuilderTDSColumnState } from '../QueryBuilderTDSColumnState.js';
|
31
31
|
|
32
32
|
export class QueryBuilderAggregateColumnState
|
33
33
|
extends QueryBuilderTDSColumnState
|
@@ -21,7 +21,7 @@ import {
|
|
21
21
|
extractElementNameFromPath,
|
22
22
|
matchFunctionName,
|
23
23
|
VariableExpression,
|
24
|
-
|
24
|
+
Multiplicity,
|
25
25
|
} from '@finos/legend-graph';
|
26
26
|
import { guaranteeType, assertTrue } from '@finos/legend-shared';
|
27
27
|
import { QueryBuilderAggregateColumnState } from '../QueryBuilderAggregationState.js';
|
@@ -33,15 +33,11 @@ export const buildAggregateExpression = (
|
|
33
33
|
variableName: string,
|
34
34
|
graph: PureModel,
|
35
35
|
): ValueSpecification => {
|
36
|
-
const multiplicityOne = graph.getTypicalMultiplicity(
|
37
|
-
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
38
|
-
);
|
39
36
|
const expression = new SimpleFunctionExpression(
|
40
37
|
extractElementNameFromPath(operatorFunctionFullPath),
|
41
|
-
multiplicityOne,
|
42
38
|
);
|
43
39
|
expression.parametersValues.push(
|
44
|
-
new VariableExpression(variableName,
|
40
|
+
new VariableExpression(variableName, Multiplicity.ONE),
|
45
41
|
);
|
46
42
|
return expression;
|
47
43
|
};
|
@@ -22,6 +22,7 @@ import {
|
|
22
22
|
type PureModel,
|
23
23
|
type AbstractPropertyExpression,
|
24
24
|
type Type,
|
25
|
+
PrimitiveType,
|
25
26
|
} from '@finos/legend-graph';
|
26
27
|
import type { QueryBuilderAggregateColumnState } from '../QueryBuilderAggregationState.js';
|
27
28
|
import { QueryBuilderAggregateOperator } from '../QueryBuilderAggregateOperator.js';
|
@@ -95,10 +96,7 @@ export class QueryBuilderAggregateOperator_Average
|
|
95
96
|
override getReturnType(
|
96
97
|
aggregateColumnState: QueryBuilderAggregateColumnState,
|
97
98
|
): Type {
|
98
|
-
|
99
|
-
aggregateColumnState.aggregationState.tdsState.queryBuilderState
|
100
|
-
.graphManagerState.graph;
|
101
|
-
return graph.getType(PRIMITIVE_TYPE.FLOAT);
|
99
|
+
return PrimitiveType.FLOAT;
|
102
100
|
}
|
103
101
|
|
104
102
|
get hashCode(): string {
|
package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Count.ts
CHANGED
@@ -23,6 +23,7 @@ import {
|
|
23
23
|
type PureModel,
|
24
24
|
type AbstractPropertyExpression,
|
25
25
|
Enumeration,
|
26
|
+
PrimitiveType,
|
26
27
|
} from '@finos/legend-graph';
|
27
28
|
import type { QueryBuilderAggregateColumnState } from '../QueryBuilderAggregationState.js';
|
28
29
|
import { QueryBuilderAggregateOperator } from '../QueryBuilderAggregateOperator.js';
|
@@ -103,10 +104,7 @@ export class QueryBuilderAggregateOperator_Count
|
|
103
104
|
override getReturnType(
|
104
105
|
aggregateColumnState: QueryBuilderAggregateColumnState,
|
105
106
|
): Type {
|
106
|
-
|
107
|
-
aggregateColumnState.aggregationState.tdsState.queryBuilderState
|
108
|
-
.graphManagerState.graph;
|
109
|
-
return graph.getType(PRIMITIVE_TYPE.INTEGER);
|
107
|
+
return PrimitiveType.INTEGER;
|
110
108
|
}
|
111
109
|
|
112
110
|
get hashCode(): string {
|
@@ -20,12 +20,12 @@ import {
|
|
20
20
|
type ValueSpecification,
|
21
21
|
SimpleFunctionExpression,
|
22
22
|
VariableExpression,
|
23
|
-
TYPICAL_MULTIPLICITY_TYPE,
|
24
23
|
extractElementNameFromPath,
|
25
24
|
matchFunctionName,
|
26
25
|
PRIMITIVE_TYPE,
|
27
26
|
type Type,
|
28
27
|
Enumeration,
|
28
|
+
Multiplicity,
|
29
29
|
} from '@finos/legend-graph';
|
30
30
|
import {
|
31
31
|
assertTrue,
|
@@ -83,19 +83,14 @@ export class QueryBuilderAggregateOperator_DistinctCount
|
|
83
83
|
variableName: string,
|
84
84
|
graph: PureModel,
|
85
85
|
): ValueSpecification {
|
86
|
-
const multiplicityOne = graph.getTypicalMultiplicity(
|
87
|
-
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
88
|
-
);
|
89
86
|
const distinctExpression = new SimpleFunctionExpression(
|
90
87
|
extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.DISTINCT),
|
91
|
-
multiplicityOne,
|
92
88
|
);
|
93
89
|
distinctExpression.parametersValues.push(
|
94
|
-
new VariableExpression(variableName,
|
90
|
+
new VariableExpression(variableName, Multiplicity.ONE),
|
95
91
|
);
|
96
92
|
const distinctCountExpression = new SimpleFunctionExpression(
|
97
93
|
extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.COUNT),
|
98
|
-
multiplicityOne,
|
99
94
|
);
|
100
95
|
distinctCountExpression.parametersValues.push(distinctExpression);
|
101
96
|
return distinctCountExpression;
|
@@ -22,12 +22,12 @@ import {
|
|
22
22
|
matchFunctionName,
|
23
23
|
SimpleFunctionExpression,
|
24
24
|
VariableExpression,
|
25
|
-
TYPICAL_MULTIPLICITY_TYPE,
|
26
25
|
extractElementNameFromPath,
|
27
26
|
PrimitiveInstanceValue,
|
28
27
|
GenericTypeExplicitReference,
|
29
28
|
GenericType,
|
30
|
-
|
29
|
+
Multiplicity,
|
30
|
+
PrimitiveType,
|
31
31
|
} from '@finos/legend-graph';
|
32
32
|
import {
|
33
33
|
assertTrue,
|
@@ -58,11 +58,12 @@ export class QueryBuilderAggregateOperator_JoinString
|
|
58
58
|
if (
|
59
59
|
projectionColumnState instanceof QueryBuilderSimpleProjectionColumnState
|
60
60
|
) {
|
61
|
-
const propertyType =
|
62
|
-
projectionColumnState.propertyExpressionState.propertyExpression.func
|
63
|
-
.value.genericType.value.rawType;
|
64
61
|
// NOTE: Engine does not support Enumerations at the moment.
|
65
|
-
return
|
62
|
+
return (
|
63
|
+
PrimitiveType.STRING ===
|
64
|
+
projectionColumnState.propertyExpressionState.propertyExpression.func
|
65
|
+
.value.genericType.value.rawType
|
66
|
+
);
|
66
67
|
}
|
67
68
|
return true;
|
68
69
|
}
|
@@ -72,24 +73,19 @@ export class QueryBuilderAggregateOperator_JoinString
|
|
72
73
|
variableName: string,
|
73
74
|
graph: PureModel,
|
74
75
|
): ValueSpecification {
|
75
|
-
const multiplicityOne = graph.getTypicalMultiplicity(
|
76
|
-
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
77
|
-
);
|
78
76
|
const expression = new SimpleFunctionExpression(
|
79
77
|
extractElementNameFromPath(
|
80
78
|
QUERY_BUILDER_SUPPORTED_FUNCTIONS.JOIN_STRINGS,
|
81
79
|
),
|
82
|
-
multiplicityOne,
|
83
80
|
);
|
84
81
|
const delimiter = new PrimitiveInstanceValue(
|
85
82
|
GenericTypeExplicitReference.create(
|
86
|
-
new GenericType(
|
83
|
+
new GenericType(PrimitiveType.STRING),
|
87
84
|
),
|
88
|
-
multiplicityOne,
|
89
85
|
);
|
90
86
|
delimiter.values = [';'];
|
91
87
|
expression.parametersValues.push(
|
92
|
-
new VariableExpression(variableName,
|
88
|
+
new VariableExpression(variableName, Multiplicity.ONE),
|
93
89
|
delimiter,
|
94
90
|
);
|
95
91
|
return expression;
|
@@ -156,10 +152,7 @@ export class QueryBuilderAggregateOperator_JoinString
|
|
156
152
|
override getReturnType(
|
157
153
|
aggregateColumnState: QueryBuilderAggregateColumnState,
|
158
154
|
): Type {
|
159
|
-
|
160
|
-
aggregateColumnState.aggregationState.tdsState.queryBuilderState
|
161
|
-
.graphManagerState.graph;
|
162
|
-
return graph.getType(PRIMITIVE_TYPE.STRING);
|
155
|
+
return PrimitiveType.STRING;
|
163
156
|
}
|
164
157
|
|
165
158
|
get hashCode(): string {
|
@@ -22,6 +22,7 @@ import {
|
|
22
22
|
type VariableExpression,
|
23
23
|
type AbstractPropertyExpression,
|
24
24
|
type PureModel,
|
25
|
+
PrimitiveType,
|
25
26
|
} from '@finos/legend-graph';
|
26
27
|
import type { QueryBuilderAggregateColumnState } from '../QueryBuilderAggregationState.js';
|
27
28
|
import { QueryBuilderAggregateOperator } from '../QueryBuilderAggregateOperator.js';
|
@@ -95,10 +96,7 @@ export class QueryBuilderAggregateOperator_StdDev_Population
|
|
95
96
|
override getReturnType(
|
96
97
|
aggregateColumnState: QueryBuilderAggregateColumnState,
|
97
98
|
): Type {
|
98
|
-
|
99
|
-
aggregateColumnState.projectionColumnState.tdsState.queryBuilderState
|
100
|
-
.graphManagerState.graph;
|
101
|
-
return graph.getType(PRIMITIVE_TYPE.NUMBER);
|
99
|
+
return PrimitiveType.NUMBER;
|
102
100
|
}
|
103
101
|
|
104
102
|
get hashCode(): string {
|
@@ -22,6 +22,7 @@ import {
|
|
22
22
|
type VariableExpression,
|
23
23
|
type AbstractPropertyExpression,
|
24
24
|
type PureModel,
|
25
|
+
PrimitiveType,
|
25
26
|
} from '@finos/legend-graph';
|
26
27
|
import type { QueryBuilderAggregateColumnState } from '../QueryBuilderAggregationState.js';
|
27
28
|
import { QueryBuilderAggregateOperator } from '../QueryBuilderAggregateOperator.js';
|
@@ -95,10 +96,7 @@ export class QueryBuilderAggregateOperator_StdDev_Sample
|
|
95
96
|
override getReturnType(
|
96
97
|
aggregateColumnState: QueryBuilderAggregateColumnState,
|
97
98
|
): Type {
|
98
|
-
|
99
|
-
aggregateColumnState.projectionColumnState.tdsState.queryBuilderState
|
100
|
-
.graphManagerState.graph;
|
101
|
-
return graph.getType(PRIMITIVE_TYPE.NUMBER);
|
99
|
+
return PrimitiveType.NUMBER;
|
102
100
|
}
|
103
101
|
|
104
102
|
get hashCode(): string {
|
@@ -0,0 +1,39 @@
|
|
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 { QueryBuilderTDS_OLAPOperator } from './operators/QueryBuilderTDS_OLAPOperator.js';
|
18
|
+
import { QueryBuilderTDS_OLAPRankOperator_AverageRank } from './operators/QueryBuilderTDS_OLAPRankOperator_AverageRank.js';
|
19
|
+
import { QueryBuilderTDS_OLAPRankOperator_DenseRank } from './operators/QueryBuilderTDS_OLAPRankOperator_DenseRank.js';
|
20
|
+
import { QueryBuilderTDS_OLAPRankOperator_Rank } from './operators/QueryBuilderTDS_OLAPRankOperator_Rank.js';
|
21
|
+
import { QueryBuilderTDS_OLAPRankOperator_RowNumber } from './operators/QueryBuilderTDS_OLAPRankOperator_RowNumber.js';
|
22
|
+
import { QueryBuilderTDS_OLAPOperator_Sum } from './operators/QueryBuilderTDS_OLAPOperator_Sum.js';
|
23
|
+
import { QueryBuilderTDS_OLAPOperator_Count } from './operators/QueryBuilderTDS_OLAPOperator_Count.js';
|
24
|
+
import { QueryBuilderTDS_OLAPOperator_Max } from './operators/QueryBuilderTDS_OLAPOperator_Max.js';
|
25
|
+
import { QueryBuilderTDS_OLAPOperator_Min } from './operators/QueryBuilderTDS_OLAPOperator_Min.js';
|
26
|
+
import { QueryBuilderTDS_OLAPOperator_Average } from './operators/QueryBuilderTDS_OLAPOperator_Average.js';
|
27
|
+
|
28
|
+
export const getQueryBuilderCoreOLAPGroupByOperators =
|
29
|
+
(): QueryBuilderTDS_OLAPOperator[] => [
|
30
|
+
new QueryBuilderTDS_OLAPOperator_Sum(),
|
31
|
+
new QueryBuilderTDS_OLAPOperator_Count(),
|
32
|
+
new QueryBuilderTDS_OLAPOperator_Max(),
|
33
|
+
new QueryBuilderTDS_OLAPOperator_Min(),
|
34
|
+
new QueryBuilderTDS_OLAPOperator_Average(),
|
35
|
+
new QueryBuilderTDS_OLAPRankOperator_AverageRank(),
|
36
|
+
new QueryBuilderTDS_OLAPRankOperator_DenseRank(),
|
37
|
+
new QueryBuilderTDS_OLAPRankOperator_Rank(),
|
38
|
+
new QueryBuilderTDS_OLAPRankOperator_RowNumber(),
|
39
|
+
];
|
@@ -39,14 +39,14 @@ import {
|
|
39
39
|
} from '../QueryBuilderTDSHelper.js';
|
40
40
|
import { QueryBuilderTDSState } from '../QueryBuilderTDSState.js';
|
41
41
|
import {
|
42
|
-
type
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
} from './
|
42
|
+
type QueryBuilderTDS_OLAPOperatorState,
|
43
|
+
OLAPGroupByColumnSortByState,
|
44
|
+
QueryBuilderOLAPGroupByColumnState,
|
45
|
+
QueryBuilderTDS_OLAPAggreationOperatorState,
|
46
|
+
QueryBuilderTDS_OLAPRankOperatorState,
|
47
|
+
} from './QueryBuilderOLAPGroupByState_.js';
|
48
48
|
|
49
|
-
export const
|
49
|
+
export const processTDS_OLAPGroupByExpression = (
|
50
50
|
expression: SimpleFunctionExpression,
|
51
51
|
queryBuilderState: QueryBuilderState,
|
52
52
|
): void => {
|
@@ -116,7 +116,7 @@ export const processTDSOlapGroupByExpression = (
|
|
116
116
|
});
|
117
117
|
|
118
118
|
// process sortBy
|
119
|
-
let sortByState:
|
119
|
+
let sortByState: OLAPGroupByColumnSortByState | undefined;
|
120
120
|
if (containsSortByExpression) {
|
121
121
|
const sortByExpression = guaranteeType(
|
122
122
|
sortByValueSpec,
|
@@ -134,10 +134,10 @@ export const processTDSOlapGroupByExpression = (
|
|
134
134
|
'Can`t process OLAP sort column: OLAP sort column should be a string primitive instance value',
|
135
135
|
);
|
136
136
|
const sortColState = getTDSColumnState(tdsState, colSortVal);
|
137
|
-
sortByState = new
|
137
|
+
sortByState = new OLAPGroupByColumnSortByState(sortColState, colSortType);
|
138
138
|
}
|
139
139
|
// process olap operation
|
140
|
-
let operatorState:
|
140
|
+
let operatorState: QueryBuilderTDS_OLAPOperatorState;
|
141
141
|
if (olapOperationExpression instanceof SimpleFunctionExpression) {
|
142
142
|
assertTrue(
|
143
143
|
matchFunctionName(olapOperationExpression.functionName, [
|
@@ -172,7 +172,7 @@ export const processTDSOlapGroupByExpression = (
|
|
172
172
|
tdsState.olapGroupByState.findOperator(operationFunctionExp.functionName),
|
173
173
|
`olapGroupBy() operator '${operationFunctionExp.functionName}' not supported`,
|
174
174
|
);
|
175
|
-
operatorState = new
|
175
|
+
operatorState = new QueryBuilderTDS_OLAPAggreationOperatorState(
|
176
176
|
tdsState.olapGroupByState,
|
177
177
|
operation,
|
178
178
|
oppColumnState,
|
@@ -203,7 +203,7 @@ export const processTDSOlapGroupByExpression = (
|
|
203
203
|
!operation.isColumnAggregator(),
|
204
204
|
`Operator '${operation.getLabel()}' expects a TDS column to aggregate against`,
|
205
205
|
);
|
206
|
-
operatorState = new
|
206
|
+
operatorState = new QueryBuilderTDS_OLAPRankOperatorState(
|
207
207
|
tdsState.olapGroupByState,
|
208
208
|
operation,
|
209
209
|
);
|
@@ -225,13 +225,13 @@ export const processTDSOlapGroupByExpression = (
|
|
225
225
|
).values[0],
|
226
226
|
'Can`t process OLAP column: OLAP column should be a string primitive instance value',
|
227
227
|
);
|
228
|
-
const olapGroupByColumnState = new
|
228
|
+
const olapGroupByColumnState = new QueryBuilderOLAPGroupByColumnState(
|
229
229
|
tdsState.olapGroupByState,
|
230
230
|
windowColumns,
|
231
231
|
sortByState,
|
232
232
|
operatorState,
|
233
233
|
olapColumnValue,
|
234
234
|
);
|
235
|
-
tdsState.olapGroupByState.
|
235
|
+
tdsState.olapGroupByState.addOLAPColumn(olapGroupByColumnState);
|
236
236
|
tdsState.setShowOlapGroupByPanel(true);
|
237
237
|
};
|
@@ -27,22 +27,22 @@ import { action, makeObservable, observable } from 'mobx';
|
|
27
27
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../graphManager/QueryBuilderHashUtils.js';
|
28
28
|
import { DEFAULT_LAMBDA_VARIABLE_NAME } from '../../../QueryBuilderConfig.js';
|
29
29
|
import type { QueryBuilderProjectionColumnDragSource } from '../projection/QueryBuilderProjectionColumnState.js';
|
30
|
-
import { QueryBuilderTDSColumnState } from '../
|
30
|
+
import { QueryBuilderTDSColumnState } from '../QueryBuilderTDSColumnState.js';
|
31
31
|
import type { QueryBuilderTDSState } from '../QueryBuilderTDSState.js';
|
32
32
|
import type { COLUMN_SORT_TYPE } from '../QueryResultSetModifierState.js';
|
33
|
-
import type {
|
33
|
+
import type { QueryBuilderTDS_OLAPOperator } from './operators/QueryBuilderTDS_OLAPOperator.js';
|
34
34
|
|
35
35
|
export const QUERY_BUILDER_OLAP_COLUMN_DND_TYPE = 'OLAP_COLUMN';
|
36
36
|
|
37
|
-
export interface
|
38
|
-
columnState:
|
37
|
+
export interface QueryBuilderOLAPColumnDragSource {
|
38
|
+
columnState: QueryBuilderTDSColumnState;
|
39
39
|
}
|
40
40
|
|
41
|
-
export type
|
41
|
+
export type QueryBuilderOLAPDropTarget =
|
42
42
|
| QueryBuilderProjectionColumnDragSource
|
43
|
-
|
|
43
|
+
| QueryBuilderOLAPColumnDragSource;
|
44
44
|
|
45
|
-
export class
|
45
|
+
export class OLAPGroupByColumnSortByState implements Hashable {
|
46
46
|
columnState: QueryBuilderTDSColumnState;
|
47
47
|
sortType: COLUMN_SORT_TYPE;
|
48
48
|
|
@@ -71,21 +71,21 @@ export class OlapGroupByColumnSortByState implements Hashable {
|
|
71
71
|
|
72
72
|
get hashCode(): string {
|
73
73
|
return hashArray([
|
74
|
-
QUERY_BUILDER_HASH_STRUCTURE.
|
74
|
+
QUERY_BUILDER_HASH_STRUCTURE.TDS_OLAP_GROUPBY_COLUMN_SORTBY_STATE,
|
75
75
|
this.sortType,
|
76
76
|
this.columnState.columnName,
|
77
77
|
]);
|
78
78
|
}
|
79
79
|
}
|
80
80
|
|
81
|
-
export abstract class
|
82
|
-
readonly olapState:
|
81
|
+
export abstract class QueryBuilderTDS_OLAPOperatorState implements Hashable {
|
82
|
+
readonly olapState: QueryBuilderOLAPGroupByState;
|
83
83
|
lambdaParameterName: string = DEFAULT_LAMBDA_VARIABLE_NAME;
|
84
|
-
operator:
|
84
|
+
operator: QueryBuilderTDS_OLAPOperator;
|
85
85
|
|
86
86
|
constructor(
|
87
|
-
olapState:
|
88
|
-
operator:
|
87
|
+
olapState: QueryBuilderOLAPGroupByState,
|
88
|
+
operator: QueryBuilderTDS_OLAPOperator,
|
89
89
|
) {
|
90
90
|
this.olapState = olapState;
|
91
91
|
this.operator = operator;
|
@@ -95,23 +95,23 @@ export abstract class QueryBuilderTDSOlapOperatorState implements Hashable {
|
|
95
95
|
this.lambdaParameterName = paramName;
|
96
96
|
}
|
97
97
|
|
98
|
-
setOperator(val:
|
98
|
+
setOperator(val: QueryBuilderTDS_OLAPOperator): void {
|
99
99
|
this.operator = val;
|
100
100
|
}
|
101
101
|
|
102
102
|
get hashCode(): string {
|
103
103
|
return hashArray([
|
104
|
-
QUERY_BUILDER_HASH_STRUCTURE.
|
104
|
+
QUERY_BUILDER_HASH_STRUCTURE.TDS_OLAP_GROUPBY_OPERATION_STATE,
|
105
105
|
this.lambdaParameterName,
|
106
106
|
this.operator,
|
107
107
|
]);
|
108
108
|
}
|
109
109
|
}
|
110
110
|
|
111
|
-
export class
|
111
|
+
export class QueryBuilderTDS_OLAPRankOperatorState extends QueryBuilderTDS_OLAPOperatorState {
|
112
112
|
constructor(
|
113
|
-
olapState:
|
114
|
-
operator:
|
113
|
+
olapState: QueryBuilderOLAPGroupByState,
|
114
|
+
operator: QueryBuilderTDS_OLAPOperator,
|
115
115
|
) {
|
116
116
|
super(olapState, operator);
|
117
117
|
makeObservable(this, {
|
@@ -120,11 +120,11 @@ export class QueryBuilderTDSOlapRankOperatorState extends QueryBuilderTDSOlapOpe
|
|
120
120
|
}
|
121
121
|
}
|
122
122
|
|
123
|
-
export class
|
123
|
+
export class QueryBuilderTDS_OLAPAggreationOperatorState extends QueryBuilderTDS_OLAPOperatorState {
|
124
124
|
columnState: QueryBuilderTDSColumnState;
|
125
125
|
constructor(
|
126
|
-
olapState:
|
127
|
-
operator:
|
126
|
+
olapState: QueryBuilderOLAPGroupByState,
|
127
|
+
operator: QueryBuilderTDS_OLAPOperator,
|
128
128
|
columnState: QueryBuilderTDSColumnState,
|
129
129
|
) {
|
130
130
|
super(olapState, operator);
|
@@ -142,7 +142,7 @@ export class QueryBuilderTDSOlapAggreationOperatorState extends QueryBuilderTDSO
|
|
142
142
|
|
143
143
|
override get hashCode(): string {
|
144
144
|
return hashArray([
|
145
|
-
QUERY_BUILDER_HASH_STRUCTURE.
|
145
|
+
QUERY_BUILDER_HASH_STRUCTURE.TDS_OLAP_GROUPBY_AGG_OPERATION_STATE,
|
146
146
|
this.lambdaParameterName,
|
147
147
|
this.operator,
|
148
148
|
this.columnState.columnName,
|
@@ -150,21 +150,21 @@ export class QueryBuilderTDSOlapAggreationOperatorState extends QueryBuilderTDSO
|
|
150
150
|
}
|
151
151
|
}
|
152
152
|
|
153
|
-
export class
|
153
|
+
export class QueryBuilderOLAPGroupByColumnState
|
154
154
|
extends QueryBuilderTDSColumnState
|
155
155
|
implements Hashable
|
156
156
|
{
|
157
|
-
readonly olapState:
|
157
|
+
readonly olapState: QueryBuilderOLAPGroupByState;
|
158
158
|
windowColumns: QueryBuilderTDSColumnState[] = [];
|
159
|
-
sortByState:
|
160
|
-
operationState:
|
159
|
+
sortByState: OLAPGroupByColumnSortByState | undefined;
|
160
|
+
operationState: QueryBuilderTDS_OLAPOperatorState;
|
161
161
|
columnName: string;
|
162
162
|
|
163
163
|
constructor(
|
164
|
-
olapState:
|
164
|
+
olapState: QueryBuilderOLAPGroupByState,
|
165
165
|
windowColumns: QueryBuilderTDSColumnState[],
|
166
|
-
sortType:
|
167
|
-
operationState:
|
166
|
+
sortType: OLAPGroupByColumnSortByState | undefined,
|
167
|
+
operationState: QueryBuilderTDS_OLAPOperatorState,
|
168
168
|
columnName: string,
|
169
169
|
) {
|
170
170
|
super();
|
@@ -189,7 +189,7 @@ export class QueryBuilderOlapGroupByColumnState
|
|
189
189
|
this.columnName = columnName;
|
190
190
|
}
|
191
191
|
|
192
|
-
get
|
192
|
+
get columnOLAPGroupIdx(): number {
|
193
193
|
return this.olapState.olapColumns.findIndex((e) => e === this);
|
194
194
|
}
|
195
195
|
|
@@ -204,7 +204,7 @@ export class QueryBuilderOlapGroupByColumnState
|
|
204
204
|
|
205
205
|
get referencedTDSColumns(): QueryBuilderTDSColumnState[] {
|
206
206
|
const operatorReference =
|
207
|
-
this.operationState instanceof
|
207
|
+
this.operationState instanceof QueryBuilderTDS_OLAPAggreationOperatorState
|
208
208
|
? [this.operationState.columnState]
|
209
209
|
: [];
|
210
210
|
const soryByReference = this.sortByState
|
@@ -223,11 +223,11 @@ export class QueryBuilderOlapGroupByColumnState
|
|
223
223
|
this.columnName = val;
|
224
224
|
}
|
225
225
|
|
226
|
-
setOperatorState(op:
|
226
|
+
setOperatorState(op: QueryBuilderTDS_OLAPOperatorState): void {
|
227
227
|
this.operationState = op;
|
228
228
|
}
|
229
229
|
|
230
|
-
setSortBy(val:
|
230
|
+
setSortBy(val: OLAPGroupByColumnSortByState | undefined): void {
|
231
231
|
this.sortByState = val;
|
232
232
|
}
|
233
233
|
|
@@ -244,7 +244,7 @@ export class QueryBuilderOlapGroupByColumnState
|
|
244
244
|
}
|
245
245
|
|
246
246
|
possibleAggregatedColumns(
|
247
|
-
op:
|
247
|
+
op: QueryBuilderTDS_OLAPOperator,
|
248
248
|
): QueryBuilderTDSColumnState[] {
|
249
249
|
if (op.isColumnAggregator()) {
|
250
250
|
return this.possibleReferencedColumns.filter((col) =>
|
@@ -254,10 +254,10 @@ export class QueryBuilderOlapGroupByColumnState
|
|
254
254
|
return [];
|
255
255
|
}
|
256
256
|
|
257
|
-
changeOperator(olapOp:
|
257
|
+
changeOperator(olapOp: QueryBuilderTDS_OLAPOperator): void {
|
258
258
|
const currentOperator = this.operationState.operator;
|
259
259
|
const currentAggregateColumn =
|
260
|
-
this.operationState instanceof
|
260
|
+
this.operationState instanceof QueryBuilderTDS_OLAPAggreationOperatorState
|
261
261
|
? this.operationState.columnState
|
262
262
|
: undefined;
|
263
263
|
if (currentOperator !== olapOp) {
|
@@ -269,7 +269,7 @@ export class QueryBuilderOlapGroupByColumnState
|
|
269
269
|
: this.possibleAggregatedColumns(olapOp)[0];
|
270
270
|
if (compatibleAggCol) {
|
271
271
|
this.setOperatorState(
|
272
|
-
new
|
272
|
+
new QueryBuilderTDS_OLAPAggreationOperatorState(
|
273
273
|
this.olapState,
|
274
274
|
olapOp,
|
275
275
|
compatibleAggCol,
|
@@ -278,7 +278,7 @@ export class QueryBuilderOlapGroupByColumnState
|
|
278
278
|
}
|
279
279
|
} else {
|
280
280
|
this.setOperatorState(
|
281
|
-
new
|
281
|
+
new QueryBuilderTDS_OLAPRankOperatorState(this.olapState, olapOp),
|
282
282
|
);
|
283
283
|
}
|
284
284
|
}
|
@@ -290,7 +290,7 @@ export class QueryBuilderOlapGroupByColumnState
|
|
290
290
|
if (sortOp) {
|
291
291
|
const sortInfoOpState =
|
292
292
|
sortByState ??
|
293
|
-
new
|
293
|
+
new OLAPGroupByColumnSortByState(
|
294
294
|
guaranteeNonNullable(this.possibleReferencedColumns[0]),
|
295
295
|
sortOp,
|
296
296
|
);
|
@@ -304,7 +304,7 @@ export class QueryBuilderOlapGroupByColumnState
|
|
304
304
|
|
305
305
|
get hashCode(): string {
|
306
306
|
return hashArray([
|
307
|
-
QUERY_BUILDER_HASH_STRUCTURE.
|
307
|
+
QUERY_BUILDER_HASH_STRUCTURE.TDS_OLAP_GROUPBY_COLUMN_STATE,
|
308
308
|
hashArray(this.windowColumns),
|
309
309
|
this.sortByState ?? '',
|
310
310
|
this.operationState,
|
@@ -313,20 +313,20 @@ export class QueryBuilderOlapGroupByColumnState
|
|
313
313
|
}
|
314
314
|
}
|
315
315
|
|
316
|
-
export class
|
316
|
+
export class QueryBuilderOLAPGroupByState implements Hashable {
|
317
317
|
readonly tdsState: QueryBuilderTDSState;
|
318
|
-
olapColumns:
|
319
|
-
operators:
|
320
|
-
editColumn:
|
318
|
+
olapColumns: QueryBuilderOLAPGroupByColumnState[] = [];
|
319
|
+
operators: QueryBuilderTDS_OLAPOperator[];
|
320
|
+
editColumn: QueryBuilderOLAPGroupByColumnState | undefined;
|
321
321
|
|
322
322
|
constructor(
|
323
323
|
tdsState: QueryBuilderTDSState,
|
324
|
-
operators:
|
324
|
+
operators: QueryBuilderTDS_OLAPOperator[],
|
325
325
|
) {
|
326
326
|
makeObservable(this, {
|
327
327
|
olapColumns: observable,
|
328
328
|
editColumn: observable,
|
329
|
-
|
329
|
+
addOLAPColumn: action,
|
330
330
|
removeColumn: action,
|
331
331
|
moveColumn: action,
|
332
332
|
setEditColumn: action,
|
@@ -343,19 +343,19 @@ export class QueryBuilderOlapGroupByState implements Hashable {
|
|
343
343
|
return uniq(this.olapColumns.map((c) => c.referencedTDSColumns).flat());
|
344
344
|
}
|
345
345
|
|
346
|
-
setEditColumn(col:
|
346
|
+
setEditColumn(col: QueryBuilderOLAPGroupByColumnState | undefined): void {
|
347
347
|
this.editColumn = col;
|
348
348
|
}
|
349
349
|
|
350
|
-
findOperator(func: string):
|
350
|
+
findOperator(func: string): QueryBuilderTDS_OLAPOperator | undefined {
|
351
351
|
return this.operators.find((o) => matchFunctionName(func, o.pureFunc));
|
352
352
|
}
|
353
353
|
|
354
|
-
|
354
|
+
addOLAPColumn(olapGroupByCol: QueryBuilderOLAPGroupByColumnState): void {
|
355
355
|
addUniqueEntry(this.olapColumns, olapGroupByCol);
|
356
356
|
}
|
357
357
|
|
358
|
-
removeColumn(column:
|
358
|
+
removeColumn(column: QueryBuilderOLAPGroupByColumnState): void {
|
359
359
|
deleteEntry(this.olapColumns, column);
|
360
360
|
}
|
361
361
|
|
@@ -370,7 +370,7 @@ export class QueryBuilderOlapGroupByState implements Hashable {
|
|
370
370
|
|
371
371
|
get hashCode(): string {
|
372
372
|
return hashArray([
|
373
|
-
QUERY_BUILDER_HASH_STRUCTURE.
|
373
|
+
QUERY_BUILDER_HASH_STRUCTURE.TDS_OLAP_GROUPBY_STATE,
|
374
374
|
hashArray(this.olapColumns),
|
375
375
|
]);
|
376
376
|
}
|