@finos/legend-query-builder 0.4.1 → 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/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/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
@@ -47,18 +47,18 @@ import { assertErrorThrown, guaranteeNonNullable } from '@finos/legend-shared';
|
|
47
47
|
import { observer } from 'mobx-react-lite';
|
48
48
|
import { forwardRef, useCallback, useRef, useState } from 'react';
|
49
49
|
import { type DropTargetMonitor, useDrag, useDrop } from 'react-dnd';
|
50
|
-
import type {
|
50
|
+
import type { QueryBuilderTDS_OLAPOperator } from '../../stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator.js';
|
51
51
|
import {
|
52
|
-
type
|
53
|
-
type
|
54
|
-
type
|
55
|
-
|
56
|
-
|
57
|
-
|
52
|
+
type QueryBuilderOLAPGroupByState,
|
53
|
+
type QueryBuilderOLAPDropTarget,
|
54
|
+
type QueryBuilderOLAPColumnDragSource,
|
55
|
+
QueryBuilderOLAPGroupByColumnState,
|
56
|
+
QueryBuilderTDS_OLAPRankOperatorState,
|
57
|
+
QueryBuilderTDS_OLAPAggreationOperatorState,
|
58
58
|
QUERY_BUILDER_OLAP_COLUMN_DND_TYPE,
|
59
|
-
} from '../../stores/fetch-structure/tds/olapGroupBy/
|
59
|
+
} from '../../stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByState_.js';
|
60
60
|
import { QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE } from '../../stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js';
|
61
|
-
import type { QueryBuilderTDSColumnState } from '../../stores/fetch-structure/tds/
|
61
|
+
import type { QueryBuilderTDSColumnState } from '../../stores/fetch-structure/tds/QueryBuilderTDSColumnState.js';
|
62
62
|
import type { QueryBuilderTDSState } from '../../stores/fetch-structure/tds/QueryBuilderTDSState.js';
|
63
63
|
import { COLUMN_SORT_TYPE } from '../../stores/fetch-structure/tds/QueryResultSetModifierState.js';
|
64
64
|
import { QUERY_BUILDER_TEST_ID } from '../QueryBuilder_TestID.js';
|
@@ -67,7 +67,7 @@ import { QUERY_BUILDER_TEST_ID } from '../QueryBuilder_TestID.js';
|
|
67
67
|
const createOlapColumnState = (
|
68
68
|
columnState: QueryBuilderTDSColumnState,
|
69
69
|
tdsState: QueryBuilderTDSState,
|
70
|
-
):
|
70
|
+
): QueryBuilderOLAPGroupByColumnState => {
|
71
71
|
const operator = tdsState.olapGroupByState.operators.filter(
|
72
72
|
(o) =>
|
73
73
|
o.isColumnAggregator() &&
|
@@ -79,12 +79,12 @@ const createOlapColumnState = (
|
|
79
79
|
)[0],
|
80
80
|
);
|
81
81
|
if (operator) {
|
82
|
-
const opState = new
|
82
|
+
const opState = new QueryBuilderTDS_OLAPAggreationOperatorState(
|
83
83
|
tdsState.olapGroupByState,
|
84
84
|
operator,
|
85
85
|
columnState,
|
86
86
|
);
|
87
|
-
return new
|
87
|
+
return new QueryBuilderOLAPGroupByColumnState(
|
88
88
|
tdsState.olapGroupByState,
|
89
89
|
[],
|
90
90
|
undefined,
|
@@ -92,11 +92,11 @@ const createOlapColumnState = (
|
|
92
92
|
`${operator.getLabel()} ${columnState.columnName}`,
|
93
93
|
);
|
94
94
|
} else {
|
95
|
-
return new
|
95
|
+
return new QueryBuilderOLAPGroupByColumnState(
|
96
96
|
tdsState.olapGroupByState,
|
97
97
|
[columnState],
|
98
98
|
undefined,
|
99
|
-
new
|
99
|
+
new QueryBuilderTDS_OLAPRankOperatorState(
|
100
100
|
tdsState.olapGroupByState,
|
101
101
|
nonColoperator,
|
102
102
|
),
|
@@ -109,7 +109,7 @@ const QueryBuilderOlapGroupByColumnContextMenu = observer(
|
|
109
109
|
forwardRef<
|
110
110
|
HTMLDivElement,
|
111
111
|
{
|
112
|
-
columnState:
|
112
|
+
columnState: QueryBuilderOLAPGroupByColumnState;
|
113
113
|
}
|
114
114
|
>(function QueryBuilderOlapGroupByColumnContextMenu(props, ref) {
|
115
115
|
const { columnState } = props;
|
@@ -178,8 +178,8 @@ const TDSColumnSelectorEditor = observer(
|
|
178
178
|
|
179
179
|
const QueryBuilderOlapColumnModalEditor = observer(
|
180
180
|
(props: {
|
181
|
-
olapGroupByState:
|
182
|
-
olapColumnState:
|
181
|
+
olapGroupByState: QueryBuilderOLAPGroupByState;
|
182
|
+
olapColumnState: QueryBuilderOLAPGroupByColumnState;
|
183
183
|
}) => {
|
184
184
|
const { olapGroupByState, olapColumnState } = props;
|
185
185
|
const createNewOlap =
|
@@ -209,14 +209,14 @@ const QueryBuilderOlapColumnModalEditor = observer(
|
|
209
209
|
const operators = olapGroupByState.operators;
|
210
210
|
const operationState = olapColumnState.operationState;
|
211
211
|
const olapOpColumn =
|
212
|
-
operationState instanceof
|
212
|
+
operationState instanceof QueryBuilderTDS_OLAPAggreationOperatorState
|
213
213
|
? operationState.columnState
|
214
214
|
: undefined;
|
215
215
|
const changeOperatorCol = (
|
216
216
|
val: { label: string; value: QueryBuilderTDSColumnState } | null,
|
217
217
|
): void => {
|
218
218
|
if (
|
219
|
-
operationState instanceof
|
219
|
+
operationState instanceof QueryBuilderTDS_OLAPAggreationOperatorState
|
220
220
|
) {
|
221
221
|
if (val !== null) {
|
222
222
|
operationState.setColumnState(val.value);
|
@@ -224,7 +224,7 @@ const QueryBuilderOlapColumnModalEditor = observer(
|
|
224
224
|
}
|
225
225
|
};
|
226
226
|
const changeOperator =
|
227
|
-
(olapOp:
|
227
|
+
(olapOp: QueryBuilderTDS_OLAPOperator) => (): void => {
|
228
228
|
olapColumnState.changeOperator(olapOp);
|
229
229
|
};
|
230
230
|
// window
|
@@ -232,7 +232,7 @@ const QueryBuilderOlapColumnModalEditor = observer(
|
|
232
232
|
(e) => !olapColumnState.windowColumns.includes(e),
|
233
233
|
);
|
234
234
|
const create = (): void => {
|
235
|
-
olapGroupByState.
|
235
|
+
olapGroupByState.addOLAPColumn(olapColumnState);
|
236
236
|
close();
|
237
237
|
};
|
238
238
|
const addWindowValue = (): void => {
|
@@ -264,7 +264,16 @@ const QueryBuilderOlapColumnModalEditor = observer(
|
|
264
264
|
paper: 'editor-modal__content',
|
265
265
|
}}
|
266
266
|
>
|
267
|
-
<Modal
|
267
|
+
<Modal
|
268
|
+
darkMode={true}
|
269
|
+
className={clsx([
|
270
|
+
'query-builder__olap__modal',
|
271
|
+
{
|
272
|
+
'query-editor--light':
|
273
|
+
applicationStore.TEMPORARY__isLightThemeEnabled,
|
274
|
+
},
|
275
|
+
])}
|
276
|
+
>
|
268
277
|
<ModalHeader
|
269
278
|
title={
|
270
279
|
createNewOlap
|
@@ -273,23 +282,6 @@ const QueryBuilderOlapColumnModalEditor = observer(
|
|
273
282
|
}
|
274
283
|
/>
|
275
284
|
<div className="query-builder__olap__modal__body">
|
276
|
-
<PanelFormSection>
|
277
|
-
<div className="panel__content__form__section__header__label">
|
278
|
-
OLAP Column Name
|
279
|
-
</div>
|
280
|
-
<div className="panel__content__form__section__header__prompt">
|
281
|
-
Name of OLAP Column that will be part of TDS Result
|
282
|
-
</div>
|
283
|
-
<InputWithInlineValidation
|
284
|
-
className="query-builder__olap__column__name__input input-group__input"
|
285
|
-
spellCheck={false}
|
286
|
-
value={olapColumnState.columnName}
|
287
|
-
onChange={changeColumnName}
|
288
|
-
validationErrorMessage={
|
289
|
-
isDuplicatedColumnName ? 'Duplicated column' : undefined
|
290
|
-
}
|
291
|
-
/>
|
292
|
-
</PanelFormSection>
|
293
285
|
<PanelFormSection>
|
294
286
|
<div className="panel__content__form__section__header__label">
|
295
287
|
OLAP Operator
|
@@ -478,7 +470,7 @@ const QueryBuilderOlapColumnModalEditor = observer(
|
|
478
470
|
elevation: 7,
|
479
471
|
}}
|
480
472
|
>
|
481
|
-
<
|
473
|
+
<div
|
482
474
|
className={clsx(
|
483
475
|
'query-builder__olap__column__sortby__operator__badge',
|
484
476
|
{
|
@@ -490,18 +482,36 @@ const QueryBuilderOlapColumnModalEditor = observer(
|
|
490
482
|
title="Choose OLAP SortBy Operator..."
|
491
483
|
>
|
492
484
|
<SortIcon />
|
493
|
-
</
|
494
|
-
<
|
485
|
+
</div>
|
486
|
+
<div
|
495
487
|
className="query-builder__olap__column__sortby__operator__dropdown__trigger"
|
496
488
|
tabIndex={-1}
|
497
489
|
title="Choose OLAP SortBy Operator..."
|
498
490
|
>
|
499
491
|
<CaretDownIcon />
|
500
|
-
</
|
492
|
+
</div>
|
501
493
|
</DropdownMenu>
|
502
494
|
</div>
|
503
495
|
</div>
|
504
496
|
</PanelFormSection>
|
497
|
+
|
498
|
+
<PanelFormSection>
|
499
|
+
<div className="panel__content__form__section__header__label">
|
500
|
+
OLAP Column Name
|
501
|
+
</div>
|
502
|
+
<div className="panel__content__form__section__header__prompt">
|
503
|
+
Name of OLAP Column that will be part of TDS Result
|
504
|
+
</div>
|
505
|
+
<InputWithInlineValidation
|
506
|
+
className="query-builder__olap__column__name__input input-group__input"
|
507
|
+
spellCheck={false}
|
508
|
+
value={olapColumnState.columnName}
|
509
|
+
onChange={changeColumnName}
|
510
|
+
validationErrorMessage={
|
511
|
+
isDuplicatedColumnName ? 'Duplicated column' : undefined
|
512
|
+
}
|
513
|
+
/>
|
514
|
+
</PanelFormSection>
|
505
515
|
</div>
|
506
516
|
<ModalFooter>
|
507
517
|
{createNewOlap ? (
|
@@ -524,16 +534,48 @@ const TDSColumnReferenceEditor = observer(
|
|
524
534
|
(props: {
|
525
535
|
tdsColumn: QueryBuilderTDSColumnState;
|
526
536
|
handleChange: (val: QueryBuilderTDSColumnState) => void;
|
537
|
+
selectionEditor?: {
|
538
|
+
options: QueryBuilderTDSColumnState[];
|
539
|
+
};
|
527
540
|
}) => {
|
528
|
-
const { handleChange, tdsColumn } = props;
|
541
|
+
const { handleChange, tdsColumn, selectionEditor } = props;
|
542
|
+
const applicationStore = useApplicationStore();
|
543
|
+
const [opAnchor, setOpAnchor] = useState<HTMLButtonElement | null>(null);
|
544
|
+
const openOpAnchor = (event: React.MouseEvent<HTMLButtonElement>): void => {
|
545
|
+
if (selectionEditor) {
|
546
|
+
setOpAnchor(event.currentTarget);
|
547
|
+
}
|
548
|
+
};
|
549
|
+
const closeOpAnchor = (): void => {
|
550
|
+
setOpAnchor(null);
|
551
|
+
};
|
552
|
+
|
553
|
+
const value = {
|
554
|
+
label: tdsColumn.columnName,
|
555
|
+
value: tdsColumn,
|
556
|
+
};
|
557
|
+
|
558
|
+
const options =
|
559
|
+
selectionEditor?.options.map((col) => ({
|
560
|
+
label: col.columnName,
|
561
|
+
value: col,
|
562
|
+
})) ?? [];
|
563
|
+
const onChange = (
|
564
|
+
val: { label: string; value: QueryBuilderTDSColumnState } | null,
|
565
|
+
): void => {
|
566
|
+
if (val !== null) {
|
567
|
+
handleChange(val.value);
|
568
|
+
}
|
569
|
+
};
|
570
|
+
|
529
571
|
const handleDrop = useCallback(
|
530
|
-
(item:
|
572
|
+
(item: QueryBuilderOLAPColumnDragSource): void => {
|
531
573
|
handleChange(item.columnState);
|
532
574
|
},
|
533
575
|
[handleChange],
|
534
576
|
);
|
535
577
|
const [{ isDragOver }, dropOpConnector] = useDrop<
|
536
|
-
|
578
|
+
QueryBuilderOLAPColumnDragSource,
|
537
579
|
void,
|
538
580
|
{ isDragOver: boolean }
|
539
581
|
>(
|
@@ -555,50 +597,85 @@ const TDSColumnReferenceEditor = observer(
|
|
555
597
|
);
|
556
598
|
|
557
599
|
return (
|
558
|
-
|
559
|
-
<
|
560
|
-
|
561
|
-
className="query-builder__olap__tds__column
|
600
|
+
<>
|
601
|
+
<button
|
602
|
+
onClick={openOpAnchor}
|
603
|
+
className="query-builder__olap__tds__column"
|
562
604
|
>
|
563
|
-
<
|
564
|
-
|
565
|
-
|
566
|
-
className="query-builder__dnd__placeholder"
|
605
|
+
<div
|
606
|
+
ref={dropOpConnector}
|
607
|
+
className="query-builder__olap__tds__column-badge"
|
567
608
|
>
|
568
|
-
<
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
609
|
+
<PanelEntryDropZonePlaceholder
|
610
|
+
showPlaceholder={isDragOver}
|
611
|
+
label="Change Column"
|
612
|
+
className="query-builder__dnd__placeholder"
|
613
|
+
>
|
614
|
+
<div className="query-builder__olap__tds__column-badge__content">
|
615
|
+
<div
|
616
|
+
className="query-builder__olap__tds__column-badge__property"
|
617
|
+
title={`${tdsColumn.columnName}`}
|
618
|
+
>
|
619
|
+
{tdsColumn.columnName}
|
620
|
+
</div>
|
621
|
+
</div>
|
622
|
+
</PanelEntryDropZonePlaceholder>
|
623
|
+
</div>
|
624
|
+
</button>
|
625
|
+
{selectionEditor && (
|
626
|
+
<BasePopover
|
627
|
+
open={Boolean(opAnchor)}
|
628
|
+
anchorEl={opAnchor}
|
629
|
+
onClose={closeOpAnchor}
|
630
|
+
anchorOrigin={{
|
631
|
+
vertical: 'bottom',
|
632
|
+
horizontal: 'center',
|
633
|
+
}}
|
634
|
+
transformOrigin={{
|
635
|
+
vertical: 'top',
|
636
|
+
horizontal: 'center',
|
637
|
+
}}
|
638
|
+
>
|
639
|
+
<div className="query-builder__olap__column__window__popover">
|
640
|
+
<div className="panel__content__form__section__list__item query-builder__olap__tds__column__options">
|
641
|
+
<CustomSelectorInput
|
642
|
+
className="query-builder__projection__options__sort__dropdown"
|
643
|
+
options={options}
|
644
|
+
disabled={options.length < 1}
|
645
|
+
onChange={onChange}
|
646
|
+
value={value}
|
647
|
+
darkMode={!applicationStore.TEMPORARY__isLightThemeEnabled}
|
648
|
+
/>
|
574
649
|
</div>
|
575
650
|
</div>
|
576
|
-
</
|
577
|
-
|
578
|
-
|
651
|
+
</BasePopover>
|
652
|
+
)}
|
653
|
+
</>
|
579
654
|
);
|
580
655
|
},
|
581
656
|
);
|
582
657
|
|
583
658
|
const QueryBuilderOlapGroupByColumnEditor = observer(
|
584
|
-
(props: { olapColumnState:
|
659
|
+
(props: { olapColumnState: QueryBuilderOLAPGroupByColumnState }) => {
|
585
660
|
const { olapColumnState } = props;
|
586
661
|
const olapState = olapColumnState.olapState;
|
587
662
|
const tdsState = olapState.tdsState;
|
588
663
|
const operators = olapState.operators;
|
589
664
|
// state
|
590
665
|
const ref = useRef<HTMLDivElement>(null);
|
591
|
-
const [
|
592
|
-
|
593
|
-
|
666
|
+
const [windowAnchor, setWindowAnchor] = useState<HTMLButtonElement | null>(
|
667
|
+
null,
|
668
|
+
);
|
594
669
|
const openWindowPopover = (
|
595
670
|
event: React.MouseEvent<HTMLButtonElement>,
|
596
671
|
): void => {
|
597
|
-
|
672
|
+
setWindowAnchor(event.currentTarget);
|
598
673
|
};
|
599
674
|
const closeWindowPopover = (): void => {
|
600
|
-
|
675
|
+
setWindowAnchor(null);
|
601
676
|
};
|
677
|
+
const [isSelectedFromContextMenu, setIsSelectedFromContextMenu] =
|
678
|
+
useState(false);
|
602
679
|
const onContextMenuOpen = (): void => setIsSelectedFromContextMenu(true);
|
603
680
|
const onContextMenuClose = (): void => setIsSelectedFromContextMenu(false);
|
604
681
|
|
@@ -622,12 +699,12 @@ const QueryBuilderOlapGroupByColumnEditor = observer(
|
|
622
699
|
// operator
|
623
700
|
const operationState = olapColumnState.operationState;
|
624
701
|
const aggregateColumn =
|
625
|
-
operationState instanceof
|
702
|
+
operationState instanceof QueryBuilderTDS_OLAPAggreationOperatorState
|
626
703
|
? operationState.columnState
|
627
704
|
: undefined;
|
628
705
|
|
629
706
|
const changeOperator =
|
630
|
-
(olapOp:
|
707
|
+
(olapOp: QueryBuilderTDS_OLAPOperator) => (): void => {
|
631
708
|
olapColumnState.changeOperator(olapOp);
|
632
709
|
};
|
633
710
|
|
@@ -649,7 +726,7 @@ const QueryBuilderOlapGroupByColumnEditor = observer(
|
|
649
726
|
// Drag and Drop
|
650
727
|
const handleHover = useCallback(
|
651
728
|
(
|
652
|
-
item:
|
729
|
+
item: QueryBuilderOLAPColumnDragSource,
|
653
730
|
monitor: DropTargetMonitor,
|
654
731
|
): void => {
|
655
732
|
const dragIndex = tdsState.olapGroupByState.olapColumns.findIndex(
|
@@ -678,7 +755,7 @@ const QueryBuilderOlapGroupByColumnEditor = observer(
|
|
678
755
|
},
|
679
756
|
[olapColumnState, olapState, tdsState.olapGroupByState.olapColumns],
|
680
757
|
);
|
681
|
-
const [, dropConnector] = useDrop<
|
758
|
+
const [, dropConnector] = useDrop<QueryBuilderOLAPColumnDragSource>(
|
682
759
|
() => ({
|
683
760
|
accept: [QUERY_BUILDER_OLAP_COLUMN_DND_TYPE],
|
684
761
|
hover: (item, monitor): void => handleHover(item, monitor),
|
@@ -687,12 +764,10 @@ const QueryBuilderOlapGroupByColumnEditor = observer(
|
|
687
764
|
);
|
688
765
|
const [{ olapColumnBeingDragged }, dragConnector, dragPreviewConnector] =
|
689
766
|
useDrag<
|
690
|
-
|
767
|
+
QueryBuilderOLAPColumnDragSource,
|
691
768
|
void,
|
692
769
|
{
|
693
|
-
olapColumnBeingDragged:
|
694
|
-
| QueryBuilderOlapGroupByColumnState
|
695
|
-
| undefined;
|
770
|
+
olapColumnBeingDragged: QueryBuilderTDSColumnState | undefined;
|
696
771
|
}
|
697
772
|
>(
|
698
773
|
() => ({
|
@@ -706,7 +781,7 @@ const QueryBuilderOlapGroupByColumnEditor = observer(
|
|
706
781
|
*/
|
707
782
|
olapColumnBeingDragged:
|
708
783
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
709
|
-
(monitor.getItem() as
|
784
|
+
(monitor.getItem() as QueryBuilderOLAPColumnDragSource | null)
|
710
785
|
?.columnState,
|
711
786
|
}),
|
712
787
|
}),
|
@@ -718,7 +793,7 @@ const QueryBuilderOlapGroupByColumnEditor = observer(
|
|
718
793
|
|
719
794
|
const handleOpDrop = (val: QueryBuilderTDSColumnState): void => {
|
720
795
|
if (
|
721
|
-
operationState instanceof
|
796
|
+
operationState instanceof QueryBuilderTDS_OLAPAggreationOperatorState
|
722
797
|
) {
|
723
798
|
operationState.setColumnState(val);
|
724
799
|
}
|
@@ -729,7 +804,7 @@ const QueryBuilderOlapGroupByColumnEditor = observer(
|
|
729
804
|
}
|
730
805
|
};
|
731
806
|
const handleWindowDrop = useCallback(
|
732
|
-
(item:
|
807
|
+
(item: QueryBuilderOLAPColumnDragSource): void => {
|
733
808
|
const colState = item.columnState;
|
734
809
|
if (
|
735
810
|
olapColumnState.possibleReferencedColumns.includes(colState) &&
|
@@ -741,7 +816,7 @@ const QueryBuilderOlapGroupByColumnEditor = observer(
|
|
741
816
|
[olapColumnState],
|
742
817
|
);
|
743
818
|
const [{ isDragOver }, dropOpConnector] = useDrop<
|
744
|
-
|
819
|
+
QueryBuilderOLAPColumnDragSource,
|
745
820
|
void,
|
746
821
|
{ isDragOver: boolean }
|
747
822
|
>(
|
@@ -804,6 +879,9 @@ const QueryBuilderOlapGroupByColumnEditor = observer(
|
|
804
879
|
<TDSColumnReferenceEditor
|
805
880
|
tdsColumn={aggregateColumn}
|
806
881
|
handleChange={handleOpDrop}
|
882
|
+
selectionEditor={{
|
883
|
+
options: olapColumnState.possibleReferencedColumns,
|
884
|
+
}}
|
807
885
|
/>
|
808
886
|
)}
|
809
887
|
<DropdownMenu
|
@@ -875,8 +953,8 @@ const QueryBuilderOlapGroupByColumnEditor = observer(
|
|
875
953
|
</PanelEntryDropZonePlaceholder>
|
876
954
|
</button>
|
877
955
|
<BasePopover
|
878
|
-
open={Boolean(
|
879
|
-
anchorEl={
|
956
|
+
open={Boolean(windowAnchor)}
|
957
|
+
anchorEl={windowAnchor}
|
880
958
|
onClose={closeWindowPopover}
|
881
959
|
anchorOrigin={{
|
882
960
|
vertical: 'bottom',
|
@@ -929,6 +1007,9 @@ const QueryBuilderOlapGroupByColumnEditor = observer(
|
|
929
1007
|
<TDSColumnReferenceEditor
|
930
1008
|
tdsColumn={sortByState.columnState}
|
931
1009
|
handleChange={handleSortDrop}
|
1010
|
+
selectionEditor={{
|
1011
|
+
options: olapColumnState.possibleReferencedColumns,
|
1012
|
+
}}
|
932
1013
|
/>
|
933
1014
|
)}
|
934
1015
|
{!sortByState && (
|
@@ -1029,7 +1110,7 @@ const QueryBuilderOlapGroupByColumnEditor = observer(
|
|
1029
1110
|
);
|
1030
1111
|
|
1031
1112
|
export const QueryBuilderOlapGroupByPanel = observer(
|
1032
|
-
(props: { olapGroupByState:
|
1113
|
+
(props: { olapGroupByState: QueryBuilderOLAPGroupByState }) => {
|
1033
1114
|
const { olapGroupByState } = props;
|
1034
1115
|
const applicationStore = useApplicationStore();
|
1035
1116
|
const createOlapGroupBy = (): void => {
|
@@ -1044,13 +1125,13 @@ export const QueryBuilderOlapGroupByPanel = observer(
|
|
1044
1125
|
};
|
1045
1126
|
// Drag and Drop
|
1046
1127
|
const handleDrop = useCallback(
|
1047
|
-
async (item:
|
1128
|
+
async (item: QueryBuilderOLAPDropTarget): Promise<void> => {
|
1048
1129
|
try {
|
1049
1130
|
const newOlapState = createOlapColumnState(
|
1050
1131
|
item.columnState,
|
1051
1132
|
olapGroupByState.tdsState,
|
1052
1133
|
);
|
1053
|
-
olapGroupByState.
|
1134
|
+
olapGroupByState.addOLAPColumn(newOlapState);
|
1054
1135
|
} catch (error) {
|
1055
1136
|
assertErrorThrown(error);
|
1056
1137
|
applicationStore.notifyError(error.message);
|
@@ -1060,7 +1141,7 @@ export const QueryBuilderOlapGroupByPanel = observer(
|
|
1060
1141
|
[applicationStore, olapGroupByState],
|
1061
1142
|
);
|
1062
1143
|
const [{ isDragOver }, dropTargetConnector] = useDrop<
|
1063
|
-
|
1144
|
+
QueryBuilderOLAPDropTarget,
|
1064
1145
|
void,
|
1065
1146
|
{ isDragOver: boolean }
|
1066
1147
|
>(
|
@@ -93,10 +93,10 @@ import {
|
|
93
93
|
renderPropertyTypeIcon,
|
94
94
|
} from './QueryBuilderTDSComponentHelper.js';
|
95
95
|
import {
|
96
|
-
type
|
96
|
+
type QueryBuilderOLAPColumnDragSource,
|
97
97
|
QUERY_BUILDER_OLAP_COLUMN_DND_TYPE,
|
98
|
-
} from '../../stores/fetch-structure/tds/olapGroupBy/
|
99
|
-
import type { QueryBuilderTDSColumnState } from '../../stores/fetch-structure/tds/
|
98
|
+
} from '../../stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByState_.js';
|
99
|
+
import type { QueryBuilderTDSColumnState } from '../../stores/fetch-structure/tds/QueryBuilderTDSColumnState.js';
|
100
100
|
|
101
101
|
const QueryBuilderPostFilterConditionContextMenu = observer(
|
102
102
|
forwardRef<
|
@@ -492,7 +492,7 @@ const QueryBuilderPostFilterTreeNodeContainer = observer(
|
|
492
492
|
const columnState = (
|
493
493
|
item as
|
494
494
|
| QueryBuilderProjectionColumnDragSource
|
495
|
-
|
|
495
|
+
| QueryBuilderOLAPColumnDragSource
|
496
496
|
).columnState as QueryBuilderTDSColumnState;
|
497
497
|
let conditionState: PostFilterConditionState;
|
498
498
|
try {
|
@@ -21,7 +21,7 @@ import {
|
|
21
21
|
ResizablePanelSplitter,
|
22
22
|
} from '@finos/legend-art';
|
23
23
|
import { QueryBuilderFilterPanel } from '../filter/QueryBuilderFilterPanel.js';
|
24
|
-
import { QueryBuilderOlapGroupByPanel } from './
|
24
|
+
import { QueryBuilderOlapGroupByPanel } from './QueryBuilderOLAPGroupByPanel_.js';
|
25
25
|
import { QueryBuilderPostFilterPanel } from './QueryBuilderPostFilterPanel.js';
|
26
26
|
import type { QueryBuilderTDSState } from '../../stores/fetch-structure/tds/QueryBuilderTDSState.js';
|
27
27
|
|
@@ -29,7 +29,7 @@ export const QueryBuilderPostTDSPanel = observer(
|
|
29
29
|
(props: { tdsState: QueryBuilderTDSState }) => {
|
30
30
|
const { tdsState } = props;
|
31
31
|
const showFilterPanel = tdsState.queryBuilderState.filterState.showPanel;
|
32
|
-
const
|
32
|
+
const showOLAPGroupByPanel = tdsState.showOlapGroupByPanel;
|
33
33
|
const showPostFilterPanel = tdsState.showPostFilterPanel;
|
34
34
|
if (!tdsState.TEMPORARY__showPostFetchStructurePanel) {
|
35
35
|
return null;
|
@@ -43,17 +43,17 @@ export const QueryBuilderPostTDSPanel = observer(
|
|
43
43
|
/>
|
44
44
|
</ResizablePanel>
|
45
45
|
)}
|
46
|
-
{showFilterPanel && (
|
46
|
+
{showFilterPanel && (showOLAPGroupByPanel || showPostFilterPanel) && (
|
47
47
|
<ResizablePanelSplitter />
|
48
48
|
)}
|
49
|
-
{
|
49
|
+
{showOLAPGroupByPanel && (
|
50
50
|
<ResizablePanel minSize={40}>
|
51
51
|
<QueryBuilderOlapGroupByPanel
|
52
52
|
olapGroupByState={tdsState.olapGroupByState}
|
53
53
|
/>
|
54
54
|
</ResizablePanel>
|
55
55
|
)}
|
56
|
-
{
|
56
|
+
{showOLAPGroupByPanel && showPostFilterPanel && (
|
57
57
|
<ResizablePanelSplitter />
|
58
58
|
)}
|
59
59
|
{showPostFilterPanel && (
|
@@ -32,7 +32,7 @@ import {
|
|
32
32
|
import { returnUndefOnError } from '@finos/legend-shared';
|
33
33
|
import type { QueryBuilderAggregateColumnState } from '../../stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js';
|
34
34
|
import { getColumnMultiplicity } from '../../stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js';
|
35
|
-
import type { QueryBuilderTDSColumnState } from '../../stores/fetch-structure/tds/
|
35
|
+
import type { QueryBuilderTDSColumnState } from '../../stores/fetch-structure/tds/QueryBuilderTDSColumnState.js';
|
36
36
|
|
37
37
|
export const renderPropertyTypeIcon = (type: Type): React.ReactNode => {
|
38
38
|
if (type instanceof PrimitiveType) {
|
@@ -41,7 +41,6 @@ import {
|
|
41
41
|
SimpleFunctionExpression,
|
42
42
|
VariableExpression,
|
43
43
|
EnumValueExplicitReference,
|
44
|
-
TYPICAL_MULTIPLICITY_TYPE,
|
45
44
|
PrimitiveType,
|
46
45
|
PRIMITIVE_TYPE,
|
47
46
|
GenericTypeExplicitReference,
|
@@ -436,7 +435,6 @@ const stringifyValue = (values: ValueSpecification[]): string => {
|
|
436
435
|
*/
|
437
436
|
const setCollectionValue = (
|
438
437
|
valueSpecification: CollectionInstanceValue,
|
439
|
-
graph: PureModel,
|
440
438
|
expectedType: Type,
|
441
439
|
value: string,
|
442
440
|
): void => {
|
@@ -444,9 +442,6 @@ const setCollectionValue = (
|
|
444
442
|
instanceValue_setValues(valueSpecification, []);
|
445
443
|
return;
|
446
444
|
}
|
447
|
-
const multiplicityOne = graph.getTypicalMultiplicity(
|
448
|
-
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
449
|
-
);
|
450
445
|
let result: unknown[] = [];
|
451
446
|
const parseResult = CSVParser.parse<string[]>(value.trim(), {
|
452
447
|
delimiter: ',',
|
@@ -476,7 +471,6 @@ const setCollectionValue = (
|
|
476
471
|
GenericTypeExplicitReference.create(
|
477
472
|
new GenericType(expectedType),
|
478
473
|
),
|
479
|
-
multiplicityOne,
|
480
474
|
);
|
481
475
|
instanceValue_setValues(primitiveInstanceValue, [item.toString()]);
|
482
476
|
return primitiveInstanceValue;
|
@@ -498,7 +492,6 @@ const setCollectionValue = (
|
|
498
492
|
GenericTypeExplicitReference.create(
|
499
493
|
new GenericType(expectedType),
|
500
494
|
),
|
501
|
-
multiplicityOne,
|
502
495
|
);
|
503
496
|
instanceValue_setValues(primitiveInstanceValue, [item]);
|
504
497
|
return primitiveInstanceValue;
|
@@ -521,7 +514,6 @@ const setCollectionValue = (
|
|
521
514
|
}
|
522
515
|
const enumValueInstanceValue = new EnumValueInstanceValue(
|
523
516
|
GenericTypeExplicitReference.create(new GenericType(expectedType)),
|
524
|
-
multiplicityOne,
|
525
517
|
);
|
526
518
|
instanceValue_setValues(enumValueInstanceValue, [
|
527
519
|
EnumValueExplicitReference.create(_enum),
|
@@ -546,7 +538,6 @@ const CollectionValueInstanceValueEditor = observer(
|
|
546
538
|
}) => {
|
547
539
|
const {
|
548
540
|
valueSpecification,
|
549
|
-
graph,
|
550
541
|
expectedType,
|
551
542
|
className,
|
552
543
|
resetValue,
|
@@ -572,7 +563,7 @@ const CollectionValueInstanceValueEditor = observer(
|
|
572
563
|
const enableEdit = (): void => setEditable(true);
|
573
564
|
const saveEdit = (): void => {
|
574
565
|
setEditable(false);
|
575
|
-
setCollectionValue(valueSpecification,
|
566
|
+
setCollectionValue(valueSpecification, expectedType, text);
|
576
567
|
setText(stringifyValue(valueSpecification.values));
|
577
568
|
setValueSpecification(valueSpecification);
|
578
569
|
};
|