@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
@@ -14,7 +14,7 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
import { QueryBuilderFilterOperator } from '../QueryBuilderFilterOperator.js';
|
17
|
-
import { PRIMITIVE_TYPE, } from '@finos/legend-graph';
|
17
|
+
import { PRIMITIVE_TYPE, PrimitiveType, } from '@finos/legend-graph';
|
18
18
|
import { hashArray, UnsupportedOperationError, } from '@finos/legend-shared';
|
19
19
|
import { buildFilterConditionState, buildFilterConditionExpression, } from './QueryBuilderFilterOperatorValueSpecificationBuilder.js';
|
20
20
|
import { buildNotExpression, generateDefaultValueForPrimitiveType, getNonCollectionValueSpecificationType, unwrapNotExpression, } from '../../QueryBuilderValueSpecificationHelper.js';
|
@@ -26,15 +26,15 @@ export class QueryBuilderFilterOperator_Contain extends QueryBuilderFilterOperat
|
|
26
26
|
return 'contains';
|
27
27
|
}
|
28
28
|
isCompatibleWithFilterConditionProperty(filterConditionState) {
|
29
|
-
|
30
|
-
.
|
31
|
-
|
29
|
+
return (PrimitiveType.STRING ===
|
30
|
+
filterConditionState.propertyExpressionState.propertyExpression.func.value
|
31
|
+
.genericType.value.rawType);
|
32
32
|
}
|
33
33
|
isCompatibleWithFilterConditionValue(filterConditionState) {
|
34
34
|
const type = filterConditionState.value
|
35
35
|
? getNonCollectionValueSpecificationType(filterConditionState.value)
|
36
36
|
: undefined;
|
37
|
-
return
|
37
|
+
return PrimitiveType.STRING === type;
|
38
38
|
}
|
39
39
|
getDefaultFilterConditionValue(filterConditionState) {
|
40
40
|
const propertyType = filterConditionState.propertyExpressionState.propertyExpression.func.value
|
@@ -63,8 +63,7 @@ export class QueryBuilderFilterOperator_NotContain extends QueryBuilderFilterOpe
|
|
63
63
|
return `doesn't contain`;
|
64
64
|
}
|
65
65
|
buildFilterConditionExpression(filterConditionState) {
|
66
|
-
return buildNotExpression(super.buildFilterConditionExpression(filterConditionState)
|
67
|
-
.graph);
|
66
|
+
return buildNotExpression(super.buildFilterConditionExpression(filterConditionState));
|
68
67
|
}
|
69
68
|
buildFilterConditionState(filterState, expression) {
|
70
69
|
const innerExpression = unwrapNotExpression(expression);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderFilterOperator_Contain.js","sourceRoot":"","sources":["../../../../src/stores/filter/operators/QueryBuilderFilterOperator_Contain.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EACL,cAAc,
|
1
|
+
{"version":3,"file":"QueryBuilderFilterOperator_Contain.js","sourceRoot":"","sources":["../../../../src/stores/filter/operators/QueryBuilderFilterOperator_Contain.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EACL,cAAc,EAGd,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,SAAS,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oot":"","sources":["../../../../src/stores/filter/operators/QueryBuilderFilterOperator_EndWith.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,
|
1
|
+
{"version":3,"file":"QueryBuilderFilterOperator_EndWith.d.ts","sourceRoot":"","sources":["../../../../src/stores/filter/operators/QueryBuilderFilterOperator_EndWith.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAE9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,QAAQ,EAGd,MAAM,sBAAsB,CAAC;AAe9B,qBAAa,kCACX,SAAQ,0BACR,YAAW,QAAQ;IAEnB,QAAQ,CAAC,oBAAoB,EAAE,oBAAoB,GAAG,MAAM;IAI5D,uCAAuC,CACrC,oBAAoB,EAAE,oBAAoB,GACzC,OAAO;IAQV,oCAAoC,CAClC,oBAAoB,EAAE,oBAAoB,GACzC,OAAO;IAOV,8BAA8B,CAC5B,oBAAoB,EAAE,oBAAoB,GACzC,kBAAkB,GAAG,SAAS;IAsBjC,8BAA8B,CAC5B,oBAAoB,EAAE,oBAAoB,GACzC,kBAAkB;IAOrB,yBAAyB,CACvB,WAAW,EAAE,uBAAuB,EACpC,UAAU,EAAE,wBAAwB,GACnC,oBAAoB,GAAG,SAAS;IASnC,IAAI,QAAQ,IAAI,MAAM,CAErB;CACF;AAED,qBAAa,qCAAsC,SAAQ,kCAAkC;IAClF,QAAQ,CAAC,oBAAoB,EAAE,oBAAoB,GAAG,MAAM;IAI5D,8BAA8B,CACrC,oBAAoB,EAAE,oBAAoB,GACzC,kBAAkB;IAMZ,yBAAyB,CAChC,WAAW,EAAE,uBAAuB,EACpC,UAAU,EAAE,wBAAwB,GACnC,oBAAoB,GAAG,SAAS;IAOnC,IAAa,QAAQ,IAAI,MAAM,CAI9B;CACF"}
|
@@ -14,7 +14,7 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
import { QueryBuilderFilterOperator } from '../QueryBuilderFilterOperator.js';
|
17
|
-
import { PRIMITIVE_TYPE, } from '@finos/legend-graph';
|
17
|
+
import { PRIMITIVE_TYPE, PrimitiveType, } from '@finos/legend-graph';
|
18
18
|
import { hashArray, UnsupportedOperationError, } from '@finos/legend-shared';
|
19
19
|
import { buildFilterConditionState, buildFilterConditionExpression, } from './QueryBuilderFilterOperatorValueSpecificationBuilder.js';
|
20
20
|
import { buildNotExpression, generateDefaultValueForPrimitiveType, getNonCollectionValueSpecificationType, unwrapNotExpression, } from '../../QueryBuilderValueSpecificationHelper.js';
|
@@ -26,15 +26,15 @@ export class QueryBuilderFilterOperator_EndWith extends QueryBuilderFilterOperat
|
|
26
26
|
return 'ends with';
|
27
27
|
}
|
28
28
|
isCompatibleWithFilterConditionProperty(filterConditionState) {
|
29
|
-
|
30
|
-
.
|
31
|
-
|
29
|
+
return (PrimitiveType.STRING ===
|
30
|
+
filterConditionState.propertyExpressionState.propertyExpression.func.value
|
31
|
+
.genericType.value.rawType);
|
32
32
|
}
|
33
33
|
isCompatibleWithFilterConditionValue(filterConditionState) {
|
34
34
|
const type = filterConditionState.value
|
35
35
|
? getNonCollectionValueSpecificationType(filterConditionState.value)
|
36
36
|
: undefined;
|
37
|
-
return
|
37
|
+
return PrimitiveType.STRING === type;
|
38
38
|
}
|
39
39
|
getDefaultFilterConditionValue(filterConditionState) {
|
40
40
|
const propertyType = filterConditionState.propertyExpressionState.propertyExpression.func.value
|
@@ -63,8 +63,7 @@ export class QueryBuilderFilterOperator_NotEndWith extends QueryBuilderFilterOpe
|
|
63
63
|
return `doesn't end with`;
|
64
64
|
}
|
65
65
|
buildFilterConditionExpression(filterConditionState) {
|
66
|
-
return buildNotExpression(super.buildFilterConditionExpression(filterConditionState)
|
67
|
-
.graph);
|
66
|
+
return buildNotExpression(super.buildFilterConditionExpression(filterConditionState));
|
68
67
|
}
|
69
68
|
buildFilterConditionState(filterState, expression) {
|
70
69
|
const innerExpression = unwrapNotExpression(expression);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderFilterOperator_EndWith.js","sourceRoot":"","sources":["../../../../src/stores/filter/operators/QueryBuilderFilterOperator_EndWith.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EACL,cAAc,
|
1
|
+
{"version":3,"file":"QueryBuilderFilterOperator_EndWith.js","sourceRoot":"","sources":["../../../../src/stores/filter/operators/QueryBuilderFilterOperator_EndWith.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EACL,cAAc,EAGd,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,SAAS,EACT,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,yBAAyB,EACzB,8BAA8B,GAC/B,MAAM,0DAA0D,CAAC;AAClE,OAAO,EACL,kBAAkB,EAClB,oCAAoC,EACpC,sCAAsC,EACtC,mBAAmB,GACpB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAE,iCAAiC,EAAE,MAAM,yDAAyD,CAAC;AAC5G,OAAO,EAAE,4BAA4B,EAAE,MAAM,gDAAgD,CAAC;AAC9F,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAE7F,MAAM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C,OAAO,yBAAyB,CAC9B,WAAW,EACX,UAAU,EACV,iCAAiC,CAAC,SAAS,EAC3C,IAAI,CACL,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC,CAAC,4BAA4B,CAAC,wBAAwB,CAAC,CAAC,CAAC;IAC5E,CAAC;CACF;AAED,MAAM,OAAO,qCAAsC,SAAQ,kCAAkC;IAClF,QAAQ,CAAC,oBAA0C;QAC1D,OAAO,kBAAkB,CAAC;IAC5B,CAAC;IAEQ,8BAA8B,CACrC,oBAA0C;QAE1C,OAAO,kBAAkB,CACvB,KAAK,CAAC,8BAA8B,CAAC,oBAAoB,CAAC,CAC3D,CAAC;IACJ,CAAC;IAEQ,yBAAyB,CAChC,WAAoC,EACpC,UAAoC;QAEpC,MAAM,eAAe,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACxD,OAAO,eAAe;YACpB,CAAC,CAAC,KAAK,CAAC,yBAAyB,CAAC,WAAW,EAAE,eAAe,CAAC;YAC/D,CAAC,CAAC,SAAS,CAAC;IAChB,CAAC;IAED,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,4BAA4B,CAAC,4BAA4B;SAC1D,CAAC,CAAC;IACL,CAAC;CACF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderFilterOperator_Equal.d.ts","sourceRoot":"","sources":["../../../../src/stores/filter/operators/QueryBuilderFilterOperator_Equal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,
|
1
|
+
{"version":3,"file":"QueryBuilderFilterOperator_Equal.d.ts","sourceRoot":"","sources":["../../../../src/stores/filter/operators/QueryBuilderFilterOperator_Equal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAU9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,QAAQ,EAGd,MAAM,sBAAsB,CAAC;AAiB9B,qBAAa,gCACX,SAAQ,0BACR,YAAW,QAAQ;IAEnB,QAAQ,CAAC,oBAAoB,EAAE,oBAAoB,GAAG,MAAM;IAI5D,uCAAuC,CACrC,oBAAoB,EAAE,oBAAoB,GACzC,OAAO;IAuBV,oCAAoC,CAClC,oBAAoB,EAAE,oBAAoB,GACzC,OAAO;IAUV,8BAA8B,CAC5B,oBAAoB,EAAE,oBAAoB,GACzC,kBAAkB,GAAG,SAAS;IAuDjC,8BAA8B,CAC5B,oBAAoB,EAAE,oBAAoB,GACzC,kBAAkB;IAYrB,yBAAyB,CACvB,WAAW,EAAE,uBAAuB,EACpC,UAAU,EAAE,wBAAwB,GACnC,oBAAoB,GAAG,SAAS;IAcnC,IAAI,QAAQ,IAAI,MAAM,CAErB;CACF;AAED,qBAAa,mCAAoC,SAAQ,gCAAgC;IAC9E,QAAQ,CAAC,oBAAoB,EAAE,oBAAoB,GAAG,MAAM;IAI5D,8BAA8B,CACrC,oBAAoB,EAAE,oBAAoB,GACzC,kBAAkB;IAMZ,yBAAyB,CAChC,WAAW,EAAE,uBAAuB,EACpC,UAAU,EAAE,wBAAwB,GACnC,oBAAoB,GAAG,SAAS;IAOnC,IAAa,QAAQ,IAAI,MAAM,CAE9B;CACF"}
|
@@ -14,7 +14,7 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
import { QueryBuilderFilterOperator } from '../QueryBuilderFilterOperator.js';
|
17
|
-
import { EnumValueInstanceValue, GenericTypeExplicitReference, GenericType,
|
17
|
+
import { EnumValueInstanceValue, GenericTypeExplicitReference, GenericType, EnumValueExplicitReference, Enumeration, PRIMITIVE_TYPE, SUPPORTED_FUNCTIONS, } from '@finos/legend-graph';
|
18
18
|
import { hashArray, UnsupportedOperationError, } from '@finos/legend-shared';
|
19
19
|
import { buildFilterConditionState, buildFilterConditionExpression, } from './QueryBuilderFilterOperatorValueSpecificationBuilder.js';
|
20
20
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../graphManager/QueryBuilderSupportedFunctions.js';
|
@@ -71,8 +71,7 @@ export class QueryBuilderFilterOperator_Equal extends QueryBuilderFilterOperator
|
|
71
71
|
default:
|
72
72
|
if (propertyType instanceof Enumeration) {
|
73
73
|
if (propertyType.values.length > 0) {
|
74
|
-
const
|
75
|
-
const enumValueInstanceValue = new EnumValueInstanceValue(GenericTypeExplicitReference.create(new GenericType(propertyType)), multiplicityOne);
|
74
|
+
const enumValueInstanceValue = new EnumValueInstanceValue(GenericTypeExplicitReference.create(new GenericType(propertyType)));
|
76
75
|
instanceValue_setValues(enumValueInstanceValue, [
|
77
76
|
EnumValueExplicitReference.create(propertyType.values[0]),
|
78
77
|
]);
|
@@ -108,8 +107,7 @@ export class QueryBuilderFilterOperator_NotEqual extends QueryBuilderFilterOpera
|
|
108
107
|
return `is not`;
|
109
108
|
}
|
110
109
|
buildFilterConditionExpression(filterConditionState) {
|
111
|
-
return buildNotExpression(super.buildFilterConditionExpression(filterConditionState)
|
112
|
-
.graph);
|
110
|
+
return buildNotExpression(super.buildFilterConditionExpression(filterConditionState));
|
113
111
|
}
|
114
112
|
buildFilterConditionState(filterState, expression) {
|
115
113
|
const innerExpression = unwrapNotExpression(expression);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderFilterOperator_Equal.js","sourceRoot":"","sources":["../../../../src/stores/filter/operators/QueryBuilderFilterOperator_Equal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAKL,sBAAsB,EACtB,4BAA4B,EAC5B,WAAW,EACX,
|
1
|
+
{"version":3,"file":"QueryBuilderFilterOperator_Equal.js","sourceRoot":"","sources":["../../../../src/stores/filter/operators/QueryBuilderFilterOperator_Equal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAKL,sBAAsB,EACtB,4BAA4B,EAC5B,WAAW,EACX,0BAA0B,EAC1B,WAAW,EACX,cAAc,EACd,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,SAAS,EACT,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,yBAAyB,EACzB,8BAA8B,GAC/B,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,iCAAiC,EAAE,MAAM,yDAAyD,CAAC;AAC5G,OAAO,EACL,kBAAkB,EAClB,oCAAoC,EACpC,sCAAsC,EACtC,6BAA6B,EAC7B,mBAAmB,GACpB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAE,4BAA4B,EAAE,MAAM,gDAAgD,CAAC;AAC9F,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAC7F,OAAO,EAAE,uBAAuB,EAAE,MAAM,kDAAkD,CAAC;AAE3F,MAAM,OAAO,gCACX,SAAQ,0BAA0B;IAGlC,QAAQ,CAAC,oBAA0C;QACjD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,uCAAuC,CACrC,oBAA0C;QAE1C,MAAM,YAAY,GAChB,oBAAoB,CAAC,uBAAuB,CAAC,kBAAkB,CAAC,IAAI,CAAC,KAAK;aACvE,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC;QAC/B,OAAO,CAEH;YACE,cAAc,CAAC,MAAM;YACrB,cAAc,CAAC,OA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AC,yBAAyB,CAAC,CAAC,CAAC;IAC7E,CAAC;CACF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderFilterOperator_In.d.ts","sourceRoot":"","sources":["../../../../src/stores/filter/operators/QueryBuilderFilterOperator_In.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAQ9B,MAAM,qBAAqB,CAAC;AAW7B,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAGhE,qBAAa,6BACX,SAAQ,0BACR,YAAW,QAAQ;IAEnB,QAAQ,CAAC,oBAAoB,EAAE,oBAAoB,GAAG,MAAM;IAI5D,uCAAuC,CACrC,oBAAoB,EAAE,oBAAoB,GACzC,OAAO;IAmBV,oCAAoC,CAClC,oBAAoB,EAAE,oBAAoB,GACzC,OAAO;IA+CV,8BAA8B,CAC5B,oBAAoB,EAAE,oBAAoB,GACzC,kBAAkB,GAAG,SAAS;
|
1
|
+
{"version":3,"file":"QueryBuilderFilterOperator_In.d.ts","sourceRoot":"","sources":["../../../../src/stores/filter/operators/QueryBuilderFilterOperator_In.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAQ9B,MAAM,qBAAqB,CAAC;AAW7B,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAGhE,qBAAa,6BACX,SAAQ,0BACR,YAAW,QAAQ;IAEnB,QAAQ,CAAC,oBAAoB,EAAE,oBAAoB,GAAG,MAAM;IAI5D,uCAAuC,CACrC,oBAAoB,EAAE,oBAAoB,GACzC,OAAO;IAmBV,oCAAoC,CAClC,oBAAoB,EAAE,oBAAoB,GACzC,OAAO;IA+CV,8BAA8B,CAC5B,oBAAoB,EAAE,oBAAoB,GACzC,kBAAkB,GAAG,SAAS;IAUjC,8BAA8B,CAC5B,oBAAoB,EAAE,oBAAoB,GACzC,kBAAkB;IAOrB,yBAAyB,CACvB,WAAW,EAAE,uBAAuB,EACpC,UAAU,EAAE,wBAAwB,GACnC,oBAAoB,GAAG,SAAS;IASnC,IAAI,QAAQ,IAAI,MAAM,CAErB;CACF;AAED,qBAAa,gCAAiC,SAAQ,6BAA6B;IACxE,QAAQ,CAAC,oBAAoB,EAAE,oBAAoB,GAAG,MAAM;IAI5D,8BAA8B,CACrC,oBAAoB,EAAE,oBAAoB,GACzC,kBAAkB;IAMZ,yBAAyB,CAChC,WAAW,EAAE,uBAAuB,EACpC,UAAU,EAAE,wBAAwB,GACnC,oBAAoB,GAAG,SAAS;IAOnC,IAAa,QAAQ,IAAI,MAAM,CAE9B;CACF"}
|
@@ -14,7 +14,7 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
import { QueryBuilderFilterOperator } from '../QueryBuilderFilterOperator.js';
|
17
|
-
import { VariableExpression, CollectionInstanceValue, GenericTypeExplicitReference, GenericType,
|
17
|
+
import { VariableExpression, CollectionInstanceValue, GenericTypeExplicitReference, GenericType, Enumeration, PRIMITIVE_TYPE, Multiplicity, } from '@finos/legend-graph';
|
18
18
|
import { buildFilterConditionState, buildFilterConditionExpression, } from './QueryBuilderFilterOperatorValueSpecificationBuilder.js';
|
19
19
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../graphManager/QueryBuilderSupportedFunctions.js';
|
20
20
|
import { buildNotExpression, getCollectionValueSpecificationType, unwrapNotExpression, } from '../../QueryBuilderValueSpecificationHelper.js';
|
@@ -75,10 +75,9 @@ export class QueryBuilderFilterOperator_In extends QueryBuilderFilterOperator {
|
|
75
75
|
return false;
|
76
76
|
}
|
77
77
|
getDefaultFilterConditionValue(filterConditionState) {
|
78
|
-
const multiplicityOne = filterConditionState.filterState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE);
|
79
78
|
const propertyType = filterConditionState.propertyExpressionState.propertyExpression.func.value
|
80
79
|
.genericType.value.rawType;
|
81
|
-
return new CollectionInstanceValue(
|
80
|
+
return new CollectionInstanceValue(Multiplicity.ONE, GenericTypeExplicitReference.create(new GenericType(propertyType)));
|
82
81
|
}
|
83
82
|
buildFilterConditionExpression(filterConditionState) {
|
84
83
|
return buildFilterConditionExpression(filterConditionState, QUERY_BUILDER_SUPPORTED_FUNCTIONS.IN);
|
@@ -95,8 +94,7 @@ export class QueryBuilderFilterOperator_NotIn extends QueryBuilderFilterOperator
|
|
95
94
|
return `is not in`;
|
96
95
|
}
|
97
96
|
buildFilterConditionExpression(filterConditionState) {
|
98
|
-
return buildNotExpression(super.buildFilterConditionExpression(filterConditionState)
|
99
|
-
.graph);
|
97
|
+
return buildNotExpression(super.buildFilterConditionExpression(filterConditionState));
|
100
98
|
}
|
101
99
|
buildFilterConditionState(filterState, expression) {
|
102
100
|
const innerExpression = unwrapNotExpression(expression);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderFilterOperator_In.js","sourceRoot":"","sources":["../../../../src/stores/filter/operators/QueryBuilderFilterOperator_In.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAGL,kBAAkB,EAClB,uBAAuB,EACvB,4BAA4B,EAC5B,WAAW,EACX,
|
1
|
+
{"version":3,"file":"QueryBuilderFilterOperator_In.js","sourceRoot":"","sources":["../../../../src/stores/filter/operators/QueryBuilderFilterOperator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AAC,IAAI,WAAW,CAAC,YAAY,CAAC,CAAC,CACnE,CAAC;IACJ,CAAC;IAED,8BAA8B,CAC5B,oBAA0C;QAE1C,OAAO,8BAA8B,CACnC,oBAAoB,EACpB,iCAAiC,CAAC,EAAE,CACrC,CAAC;IACJ,CAAC;IAED,yBAAyB,CACvB,WAAoC,EACpC,UAAoC;QAEpC,OAAO,yBAAyB,CAC9B,WAAW,EACX,UAAU,EACV,iCAAiC,CAAC,EAAE,EACpC,IAAI,CACL,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC,CAAC,4BAA4B,CAAC,kBAAkB,CAAC,CAAC,CAAC;IACtE,CAAC;CACF;AAED,MAAM,OAAO,gCAAiC,SAAQ,6BAA6B;IACxE,QAAQ,CAAC,oBAA0C;QAC1D,OAAO,WAAW,CAAC;IACrB,CAAC;IAEQ,8BAA8B,CACrC,oBAA0C;QAE1C,OAAO,kBAAkB,CACvB,KAAK,CAAC,8BAA8B,CAAC,oBAAoB,CAAC,CAC3D,CAAC;IACJ,CAAC;IAEQ,yBAAyB,CAChC,WAAoC,EACpC,UAAoC;QAEpC,MAAM,eAAe,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACxD,OAAO,eAAe;YACpB,CAAC,CAAC,KAAK,CAAC,yBAAyB,CAAC,WAAW,EAAE,eAAe,CAAC;YAC/D,CAAC,CAAC,SAAS,CAAC;IAChB,CAAC;IAED,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC,CAAC,4BAA4B,CAAC,sBAAsB,CAAC,CAAC,CAAC;IAC1E,CAAC;CACF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderFilterOperator_IsEmpty.d.ts","sourceRoot":"","sources":["../../../../src/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAG9B,MAAM,qBAAqB,CAAC;AAW7B,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAGhE,qBAAa,kCACX,SAAQ,0BACR,YAAW,QAAQ;IAEnB,QAAQ,CAAC,oBAAoB,EAAE,oBAAoB,GAAG,MAAM;IAI5D,uCAAuC,CACrC,oBAAoB,EAAE,oBAAoB,GACzC,OAAO;
|
1
|
+
{"version":3,"file":"QueryBuilderFilterOperator_IsEmpty.d.ts","sourceRoot":"","sources":["../../../../src/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAG9B,MAAM,qBAAqB,CAAC;AAW7B,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAGhE,qBAAa,kCACX,SAAQ,0BACR,YAAW,QAAQ;IAEnB,QAAQ,CAAC,oBAAoB,EAAE,oBAAoB,GAAG,MAAM;IAI5D,uCAAuC,CACrC,oBAAoB,EAAE,oBAAoB,GACzC,OAAO;IAkBV,oCAAoC,CAClC,oBAAoB,EAAE,oBAAoB,GACzC,OAAO;IAIV,8BAA8B,CAC5B,oBAAoB,EAAE,oBAAoB,GACzC,kBAAkB,GAAG,SAAS;IAIjC,8BAA8B,CAC5B,oBAAoB,EAAE,oBAAoB,GACzC,kBAAkB;IAOrB,yBAAyB,CACvB,WAAW,EAAE,uBAAuB,EACpC,UAAU,EAAE,wBAAwB,GACnC,oBAAoB,GAAG,SAAS;IAUnC,IAAI,QAAQ,IAAI,MAAM,CAErB;CACF;AAED,qBAAa,qCAAsC,SAAQ,kCAAkC;IAClF,QAAQ,CAAC,oBAAoB,EAAE,oBAAoB,GAAG,MAAM;IAI5D,8BAA8B,CACrC,oBAAoB,EAAE,oBAAoB,GACzC,kBAAkB;IAMZ,yBAAyB,CAChC,WAAW,EAAE,uBAAuB,EACpC,UAAU,EAAE,wBAAwB,GACnC,oBAAoB,GAAG,SAAS;IAOnC,IAAa,QAAQ,IAAI,MAAM,CAI9B;CACF"}
|
@@ -14,7 +14,7 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
import { QueryBuilderFilterOperator } from '../QueryBuilderFilterOperator.js';
|
17
|
-
import {
|
17
|
+
import { Enumeration, PrimitiveType, } from '@finos/legend-graph';
|
18
18
|
import { buildFilterConditionState, buildFilterConditionExpression, } from './QueryBuilderFilterOperatorValueSpecificationBuilder.js';
|
19
19
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../graphManager/QueryBuilderSupportedFunctions.js';
|
20
20
|
import { buildNotExpression, isPropertyExpressionChainOptional, unwrapNotExpression, } from '../../QueryBuilderValueSpecificationHelper.js';
|
@@ -31,10 +31,8 @@ export class QueryBuilderFilterOperator_IsEmpty extends QueryBuilderFilterOperat
|
|
31
31
|
if (!isPropertyExpressionChainOptional(filterConditionState.propertyExpressionState.propertyExpression)) {
|
32
32
|
return false;
|
33
33
|
}
|
34
|
-
|
35
|
-
|
36
|
-
}
|
37
|
-
return Object.values(PRIMITIVE_TYPE).includes(propertyType.path);
|
34
|
+
return (propertyType instanceof Enumeration ||
|
35
|
+
propertyType instanceof PrimitiveType);
|
38
36
|
}
|
39
37
|
isCompatibleWithFilterConditionValue(filterConditionState) {
|
40
38
|
return filterConditionState.value === undefined;
|
@@ -57,8 +55,7 @@ export class QueryBuilderFilterOperator_IsNotEmpty extends QueryBuilderFilterOpe
|
|
57
55
|
return `is not empty`;
|
58
56
|
}
|
59
57
|
buildFilterConditionExpression(filterConditionState) {
|
60
|
-
return buildNotExpression(super.buildFilterConditionExpression(filterConditionState)
|
61
|
-
.graph);
|
58
|
+
return buildNotExpression(super.buildFilterConditionExpression(filterConditionState));
|
62
59
|
}
|
63
60
|
buildFilterConditionState(filterState, expression) {
|
64
61
|
const innerExpression = unwrapNotExpression(expression);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderFilterOperator_IsEmpty.js","sourceRoot":"","sources":["../../../../src/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAGL,
|
1
|
+
{"version":3,"file":"QueryBuilderFilterOperator_IsEmpty.js","sourceRoot":"","sources":["../../../../src/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAGL,WAAW,EACX,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,yBAAyB,EACzB,8BAA8B,GAC/B,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,iCAAiC,EAAE,MAAM,yDAAyD,CAAC;AAC5G,OAAO,EACL,kBAAkB,EAClB,iCAAiC,EACjC,mBAAmB,GACpB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAiB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,4BAA4B,EAAE,MAAM,gDAAgD,CAAC;AAE9F,MAAM,OAAO,kCACX,SAAQ,0BAA0B;IAGlC,QAAQ,CAAC,oBAA0C;QACjD,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,uCAAuC,CACrC,oBAA0C;QAE1C,MAAM,YAAY,GAChB,oBAAoB,CAAC,uBAAuB,CAAC,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AAC;YAC/D,CAAC,CAAC,SAAS,CAAC;IAChB,CAAC;IAED,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,4BAA4B,CAAC,4BAA4B;SAC1D,CAAC,CAAC;IACL,CAAC;CACF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderFilterOperator_StartWith.d.ts","sourceRoot":"","sources":["../../../../src/stores/filter/operators/QueryBuilderFilterOperator_StartWith.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,
|
1
|
+
{"version":3,"file":"QueryBuilderFilterOperator_StartWith.d.ts","sourceRoot":"","sources":["../../../../src/stores/filter/operators/QueryBuilderFilterOperator_StartWith.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAE9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,QAAQ,EAGd,MAAM,sBAAsB,CAAC;AAe9B,qBAAa,oCACX,SAAQ,0BACR,YAAW,QAAQ;IAEnB,QAAQ,CAAC,oBAAoB,EAAE,oBAAoB,GAAG,MAAM;IAI5D,uCAAuC,CACrC,oBAAoB,EAAE,oBAAoB,GACzC,OAAO;IAQV,oCAAoC,CAClC,oBAAoB,EAAE,oBAAoB,GACzC,OAAO;IAOV,8BAA8B,CAC5B,oBAAoB,EAAE,oBAAoB,GACzC,kBAAkB,GAAG,SAAS;IAsBjC,8BAA8B,CAC5B,oBAAoB,EAAE,oBAAoB,GACzC,kBAAkB;IAOrB,yBAAyB,CACvB,WAAW,EAAE,uBAAuB,EACpC,UAAU,EAAE,wBAAwB,GACnC,oBAAoB,GAAG,SAAS;IASnC,IAAI,QAAQ,IAAI,MAAM,CAErB;CACF;AAED,qBAAa,uCAAwC,SAAQ,oCAAoC;IACtF,QAAQ,CAAC,oBAAoB,EAAE,oBAAoB,GAAG,MAAM;IAI5D,8BAA8B,CACrC,oBAAoB,EAAE,oBAAoB,GACzC,kBAAkB;IAMZ,yBAAyB,CAChC,WAAW,EAAE,uBAAuB,EACpC,UAAU,EAAE,wBAAwB,GACnC,oBAAoB,GAAG,SAAS;IAOnC,IAAa,QAAQ,IAAI,MAAM,CAI9B;CACF"}
|
@@ -14,7 +14,7 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
import { QueryBuilderFilterOperator } from '../QueryBuilderFilterOperator.js';
|
17
|
-
import { PRIMITIVE_TYPE, } from '@finos/legend-graph';
|
17
|
+
import { PRIMITIVE_TYPE, PrimitiveType, } from '@finos/legend-graph';
|
18
18
|
import { UnsupportedOperationError, hashArray, } from '@finos/legend-shared';
|
19
19
|
import { buildFilterConditionState, buildFilterConditionExpression, } from './QueryBuilderFilterOperatorValueSpecificationBuilder.js';
|
20
20
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../graphManager/QueryBuilderSupportedFunctions.js';
|
@@ -26,15 +26,15 @@ export class QueryBuilderFilterOperator_StartWith extends QueryBuilderFilterOper
|
|
26
26
|
return 'starts with';
|
27
27
|
}
|
28
28
|
isCompatibleWithFilterConditionProperty(filterConditionState) {
|
29
|
-
|
30
|
-
.
|
31
|
-
|
29
|
+
return (PrimitiveType.STRING ===
|
30
|
+
filterConditionState.propertyExpressionState.propertyExpression.func.value
|
31
|
+
.genericType.value.rawType);
|
32
32
|
}
|
33
33
|
isCompatibleWithFilterConditionValue(filterConditionState) {
|
34
34
|
const type = filterConditionState.value
|
35
35
|
? getNonCollectionValueSpecificationType(filterConditionState.value)
|
36
36
|
: undefined;
|
37
|
-
return
|
37
|
+
return PrimitiveType.STRING === type;
|
38
38
|
}
|
39
39
|
getDefaultFilterConditionValue(filterConditionState) {
|
40
40
|
const propertyType = filterConditionState.propertyExpressionState.propertyExpression.func.value
|
@@ -63,8 +63,7 @@ export class QueryBuilderFilterOperator_NotStartWith extends QueryBuilderFilterO
|
|
63
63
|
return `doesn't start with`;
|
64
64
|
}
|
65
65
|
buildFilterConditionExpression(filterConditionState) {
|
66
|
-
return buildNotExpression(super.buildFilterConditionExpression(filterConditionState)
|
67
|
-
.graph);
|
66
|
+
return buildNotExpression(super.buildFilterConditionExpression(filterConditionState));
|
68
67
|
}
|
69
68
|
buildFilterConditionState(filterState, expression) {
|
70
69
|
const innerExpression = unwrapNotExpression(expression);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderFilterOperator_StartWith.js","sourceRoot":"","sources":["../../../../src/stores/filter/operators/QueryBuilderFilterOperator_StartWith.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EACL,cAAc,
|
1
|
+
{"version":3,"file":"QueryBuilderFilterOperator_StartWith.js","sourceRoot":"","sources":["../../../../src/stores/filter/operators/QueryBuilderFilterOperator_StartWith.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EACL,cAAc,EAGd,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,yBAAyB,EACzB,SAAS,GACV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,yBAAyB,EACzB,8BAA8B,GAC/B,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,iCAAiC,EAAE,MAAM,yDAAyD,CAAC;AAC5G,OAAO,E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AAI,GAAG,CAC7D,CAAC;SACL;IACH,CAAC;IAED,8BAA8B,CAC5B,oBAA0C;QAE1C,OAAO,8BAA8B,CACnC,oBAAoB,EACpB,iCAAiC,CAAC,WAAW,CAC9C,CAAC;IACJ,CAAC;IAED,yBAAyB,CACvB,WAAoC,EACpC,UAAoC;QAEpC,OAAO,yBAAyB,CAC9B,WAAW,EACX,UAAU,EACV,iCAAiC,CAAC,WAAW,EAC7C,IAAI,CACL,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC,CAAC,4BAA4B,CAAC,0BAA0B,CAAC,CAAC,CAAC;IAC9E,CAAC;CACF;AAED,MAAM,OAAO,uCAAwC,SAAQ,oCAAoC;IACtF,QAAQ,CAAC,oBAA0C;QAC1D,OAAO,oBAAoB,CAAC;IAC9B,CAAC;IAEQ,8BAA8B,CACrC,oBAA0C;QAE1C,OAAO,kBAAkB,CACvB,KAAK,CAAC,8BAA8B,CAAC,oBAAoB,CAAC,CAC3D,CAAC;IACJ,CAAC;IAEQ,yBAAyB,CAChC,WAAoC,EACpC,UAAoC;QAEpC,MAAM,eAAe,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACxD,OAAO,eAAe;YACpB,CAAC,CAAC,KAAK,CAAC,yBAAyB,CAAC,WAAW,EAAE,eAAe,CAAC;YAC/D,CAAC,CAAC,SAAS,CAAC;IAChB,CAAC;IAED,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,4BAA4B,CAAC,8BAA8B;SAC5D,CAAC,CAAC;IACL,CAAC;CACF"}
|
@@ -13,13 +13,12 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { type ObserverContext, type Type, type ValueSpecification, type PureModel, VariableExpression
|
16
|
+
import { type ObserverContext, type Type, type ValueSpecification, type PureModel, VariableExpression } from '@finos/legend-graph';
|
17
17
|
import { type Hashable } from '@finos/legend-shared';
|
18
18
|
export declare enum PARAMETER_SUBMIT_ACTION {
|
19
19
|
EXECUTE = "EXECUTE",
|
20
20
|
EXPORT = "EXPORT"
|
21
21
|
}
|
22
|
-
export declare const buildParametersLetLambdaFunc: (graph: PureModel, lambdaParametersStates: LambdaParameterState[]) => LambdaFunction;
|
23
22
|
export declare class LambdaParameterState implements Hashable {
|
24
23
|
readonly uuid: string;
|
25
24
|
readonly parameter: VariableExpression;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LambdaParameterState.d.ts","sourceRoot":"","sources":["../../../src/stores/shared/LambdaParameterState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,IAAI,EACT,KAAK,kBAAkB,EACvB,KAAK,SAAS,
|
1
|
+
{"version":3,"file":"LambdaParameterState.d.ts","sourceRoot":"","sources":["../../../src/stores/shared/LambdaParameterState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,IAAI,EACT,KAAK,kBAAkB,EACvB,KAAK,SAAS,EAKd,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,KAAK,QAAQ,EAId,MAAM,sBAAsB,CAAC;AAQ9B,oBAAY,uBAAuB;IACjC,OAAO,YAAY;IACnB,MAAM,WAAW;CAClB;AAMD,qBAAa,oBAAqB,YAAW,QAAQ;IACnD,QAAQ,CAAC,IAAI,SAAU;IACvB,QAAQ,CAAC,SAAS,EAAE,kBAAkB,CAAC;IACvC,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;IAC1B,QAAQ,CAAC,iBAAiB,EAAE,eAAe,CAAC;IAE5C,KAAK,EAAE,kBAAkB,GAAG,SAAS,CAAC;gBAGpC,kBAAkB,EAAE,kBAAkB,EACtC,iBAAiB,EAAE,eAAe,EAClC,KAAK,EAAE,SAAS;IAalB,IAAI,QAAQ,IAAI,MAAM,CAKrB;IAED,kBAAkB,IAAI,IAAI;IAM1B,QAAQ,CAAC,KAAK,EAAE,kBAAkB,GAAG,SAAS,GAAG,IAAI;IAWrD,kBAAkB,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI;IAUpC,kBAAkB,CAChB,kBAAkB,EAAE,kBAAkB,EACtC,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,MAAM,GAAG,SAAS,GAC9B,IAAI;IAcP,IAAI,YAAY,IAAI,MAAM,CAEzB;IAED,IAAI,YAAY,IAAI,IAAI,GAAG,SAAS,CAEnC;CACF;AAED,qBAAa,kCAAkC;IAC7C,SAAS,UAAS;IAClB,YAAY,EACR;QACE,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;QAC7B,KAAK,EAAE,MAAM,CAAC;KACf,GACD,SAAS,CAAC;;IAYd,YAAY,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAIhC,eAAe,CACb,GAAG,EACC;QACE,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;QAC7B,KAAK,EAAE,MAAM,CAAC;KACf,GACD,SAAS,GACZ,IAAI;IAIP,IAAI,CAAC,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAKvD,KAAK,IAAI,IAAI;CAId;AAED,8BAAsB,qBAAsB,YAAW,QAAQ;IAC7D,eAAe,EAAE,oBAAoB,EAAE,CAAM;IAC7C,0BAA0B,qCAA4C;;IAQtE,IAAI,QAAQ,IAAI,MAAM,CAKrB;IAED,YAAY,CAAC,GAAG,EAAE,oBAAoB,GAAG,IAAI;IAI7C,eAAe,CAAC,GAAG,EAAE,oBAAoB,GAAG,IAAI;IAIhD,aAAa,CAAC,GAAG,EAAE,oBAAoB,EAAE,GAAG,IAAI;CAGjD"}
|
@@ -13,8 +13,8 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { GenericType, GenericTypeExplicitReference, observe_ValueSpecification, observe_VariableExpression,
|
17
|
-
import { addUniqueEntry, deleteEntry, hashArray, IllegalStateError,
|
16
|
+
import { GenericType, GenericTypeExplicitReference, observe_ValueSpecification, observe_VariableExpression, VariableExpression, } from '@finos/legend-graph';
|
17
|
+
import { addUniqueEntry, deleteEntry, hashArray, IllegalStateError, uuid, } from '@finos/legend-shared';
|
18
18
|
import { makeObservable, observable, action, computed } from 'mobx';
|
19
19
|
import { generateVariableExpressionMockValue } from './ValueSpecificationEditorHelper.js';
|
20
20
|
import { valueSpecification_setGenericType, valueSpecification_setMultiplicity, } from './ValueSpecificationModifierHelper.js';
|
@@ -28,26 +28,6 @@ var LAMABA_PARAMETER_HASH_STRUCTURE;
|
|
28
28
|
LAMABA_PARAMETER_HASH_STRUCTURE["LAMBDA_PARAMETER_STATE"] = "LAMBDA_PARAMETER_STATE";
|
29
29
|
LAMABA_PARAMETER_HASH_STRUCTURE["LAMBDA_PARAMETERS_STATE"] = "LAMBDA_PARAMETERS_STATE";
|
30
30
|
})(LAMABA_PARAMETER_HASH_STRUCTURE || (LAMABA_PARAMETER_HASH_STRUCTURE = {}));
|
31
|
-
export const buildParametersLetLambdaFunc = (graph, lambdaParametersStates) => {
|
32
|
-
const multiplicityOne = graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE);
|
33
|
-
const typeString = graph.getPrimitiveType(PRIMITIVE_TYPE.STRING);
|
34
|
-
const typeAny = graph.getType(CORE_PURE_PATH.ANY);
|
35
|
-
const letlambdaFunction = new LambdaFunction(new FunctionType(PackageableElementExplicitReference.create(typeAny), multiplicityOne));
|
36
|
-
letlambdaFunction.expressionSequence = lambdaParametersStates
|
37
|
-
.map((queryParamState) => {
|
38
|
-
if (queryParamState.value) {
|
39
|
-
const letFunc = new SimpleFunctionExpression(extractElementNameFromPath(SUPPORTED_FUNCTIONS.LET), multiplicityOne);
|
40
|
-
const letVar = new PrimitiveInstanceValue(GenericTypeExplicitReference.create(new GenericType(typeString)), multiplicityOne);
|
41
|
-
letVar.values = [queryParamState.variableName];
|
42
|
-
letFunc.parametersValues.push(letVar);
|
43
|
-
letFunc.parametersValues.push(queryParamState.value);
|
44
|
-
return letFunc;
|
45
|
-
}
|
46
|
-
return undefined;
|
47
|
-
})
|
48
|
-
.filter(isNonNullable);
|
49
|
-
return letlambdaFunction;
|
50
|
-
};
|
51
31
|
export class LambdaParameterState {
|
52
32
|
uuid = uuid();
|
53
33
|
parameter;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LambdaParameterState.js","sourceRoot":"","sources":["../../../src/stores/shared/LambdaParameterState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAKL,WAAW,EACX,4BAA4B,EAC5B,0BAA0B,EAC1B,0BAA0B,EAC1B,
|
1
|
+
{"version":3,"file":"LambdaParameterState.js","sourceRoot":"","sources":["../../../src/stores/shared/LambdaParameterState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAKL,WAAW,EACX,4BAA4B,EAC5B,0BAA0B,EAC1B,0BAA0B,EAC1B,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,cAAc,EACd,WAAW,EAEX,SAAS,EACT,iBAAiB,EACjB,IAAI,GACL,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAAE,mCAAmC,EAAE,MAAM,qCAAqC,CAAC;AAC1F,OAAO,EACL,iCAAiC,EACjC,kCAAkC,GACnC,MAAM,uCAAuC,CAAC;AAE/C,MAAM,CAAN,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IACjC,8CAAmB,CAAA;IACnB,4CAAiB,CAAA;AACnB,CAAC,EAHW,uBAAuB,GAAvB,uBAAuB,KAAvB,uBAAuB,QAGlC;AAED,IAAK,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;QACzC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAED,KAAK;QACH,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;QAChC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAC3B,CAAC;CACF;AAED,MAAM,OAAgB,qBAAqB;IACzC,eAAe,GAA2B,EAAE,CAAC;IAC7C,0BAA0B,GAAG,IAAI,kCAAkC,EAAE,CAAC;IAEtE;QACE,cAAc,CAAC,IAAI,EAAE;YACnB,QAAQ,EAAE,QAAQ;SACnB,CAAC,CAAC;IACL,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,+BAA+B,CAAC,uBAAuB;YACvD,SAAS,CAAC,IAAI,CAAC,eAAe,CAAC;SAChC,CAAC,CAAC;IACL,CAAC;IAED,YAAY,CAAC,GAAyB;QACpC,cAAc,CAAC,IAAI,CAAC,eAAe,EAAE,GAAG,CAAC,CAAC;IAC5C,CAAC;IAED,eAAe,CAAC,GAAyB;QACvC,WAAW,CAAC,IAAI,CAAC,eAAe,EAAE,GAAG,CAAC,CAAC;IACzC,CAAC;IAED,aAAa,CAAC,GAA2B;QACvC,IAAI,CAAC,eAAe,GAAG,GAAG,CAAC;IAC7B,CAAC;CACF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ValueSpecificationEditorHelper.d.ts","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationEditorHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,kBAAkB,EAIvB,WAAW,EAMX,sBAAsB,EAEtB,cAAc,
|
1
|
+
{"version":3,"file":"ValueSpecificationEditorHelper.d.ts","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationEditorHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,kBAAkB,EAIvB,WAAW,EAMX,sBAAsB,EAEtB,cAAc,EACf,MAAM,qBAAqB,CAAC;AA2C7B,eAAO,MAAM,6BAA6B,gBAC3B,WAAW,KACvB,MACyE,CAAC;AAE7E,eAAO,MAAM,2BAA2B,UAC/B,SAAS,QACV,cAAc,SACb,OAAO,KACb,sBAQF,CAAC;AAEF,eAAO,MAAM,mCAAmC,cACnC,kBAAkB,SACtB,SAAS,KACf,aAAa,GAAG,SAqClB,CAAC"}
|
@@ -13,7 +13,7 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { CollectionInstanceValue, DATE_FORMAT, DATE_TIME_FORMAT, Enumeration, EnumValueExplicitReference, EnumValueInstanceValue, GenericType, GenericTypeExplicitReference, getEnumValue, PrimitiveInstanceValue, PrimitiveType, PRIMITIVE_TYPE,
|
16
|
+
import { CollectionInstanceValue, DATE_FORMAT, DATE_TIME_FORMAT, Enumeration, EnumValueExplicitReference, EnumValueInstanceValue, GenericType, GenericTypeExplicitReference, getEnumValue, PrimitiveInstanceValue, PrimitiveType, PRIMITIVE_TYPE, } from '@finos/legend-graph';
|
17
17
|
import { addDays, formatDate, Randomizer } from '@finos/legend-shared';
|
18
18
|
import { instanceValue_setValues } from './ValueSpecificationModifierHelper.js';
|
19
19
|
const createMockPrimitiveProperty = (primitiveType, propertyName) => {
|
@@ -41,8 +41,7 @@ const createMockPrimitiveProperty = (primitiveType, propertyName) => {
|
|
41
41
|
};
|
42
42
|
export const createMockEnumerationProperty = (enumeration) => new Randomizer().getRandomItemInCollection(enumeration.values)?.name ?? '';
|
43
43
|
export const buildPrimitiveInstanceValue = (graph, type, value) => {
|
44
|
-
const
|
45
|
-
const instance = new PrimitiveInstanceValue(GenericTypeExplicitReference.create(new GenericType(graph.getPrimitiveType(type))), multiplicityOne);
|
44
|
+
const instance = new PrimitiveInstanceValue(GenericTypeExplicitReference.create(new GenericType(graph.getPrimitiveType(type))));
|
46
45
|
instanceValue_setValues(instance, [value]);
|
47
46
|
return instance;
|
48
47
|
};
|
@@ -53,16 +52,16 @@ export const generateVariableExpressionMockValue = (parameter, graph) => {
|
|
53
52
|
return new CollectionInstanceValue(multiplicity, GenericTypeExplicitReference.create(new GenericType(varType)));
|
54
53
|
}
|
55
54
|
if (varType instanceof PrimitiveType) {
|
56
|
-
const primitiveInstanceValue = new PrimitiveInstanceValue(GenericTypeExplicitReference.create(varType
|
57
|
-
? new GenericType(
|
58
|
-
: new GenericType(varType))
|
55
|
+
const primitiveInstanceValue = new PrimitiveInstanceValue(GenericTypeExplicitReference.create(varType === PrimitiveType.DATE
|
56
|
+
? new GenericType(PrimitiveType.STRICTDATE)
|
57
|
+
: new GenericType(varType)));
|
59
58
|
instanceValue_setValues(primitiveInstanceValue, [
|
60
59
|
createMockPrimitiveProperty(varType, parameter.name === '' ? 'myVar' : parameter.name),
|
61
60
|
]);
|
62
61
|
return primitiveInstanceValue;
|
63
62
|
}
|
64
63
|
else if (varType instanceof Enumeration) {
|
65
|
-
const enumValueInstance = new EnumValueInstanceValue(GenericTypeExplicitReference.create(new GenericType(varType))
|
64
|
+
const enumValueInstance = new EnumValueInstanceValue(GenericTypeExplicitReference.create(new GenericType(varType)));
|
66
65
|
const mock = createMockEnumerationProperty(varType);
|
67
66
|
if (mock !== '') {
|
68
67
|
instanceValue_setValues(enumValueInstance, [
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ValueSpecificationEditorHelper.js","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationEditorHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAIL,uBAAuB,EACvB,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,0BAA0B,EAC1B,sBAAsB,EACtB,WAAW,EACX,4BAA4B,EAC5B,YAAY,EACZ,sBAAsB,EACtB,aAAa,EACb,cAAc,
|
1
|
+
{"version":3,"file":"ValueSpecificationEditorHelper.js","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationEditorHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAIL,uBAAuB,EACvB,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,0BAA0B,EAC1B,sBAAsB,EACtB,WAAW,EACX,4BAA4B,EAC5B,YAAY,EACZ,sBAAsB,EACtB,aAAa,EACb,cAAc,GACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAEhF,MAAM,2BAA2B,GAAG,CAClC,aAA4B,EAC5B,YAAoB,EACO,EAAE;IAC7B,MAAM,UAAU,GAAG,IAAI,UAAU,EAAE,CAAC;IACpC,QAAQ,aAAa,CAAC,IAAI,EAAE;QAC1B,KAAK,cAAc,CAAC,OAAO;YACzB,OAAO,UAAU,CAAC,yBAAyB,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,IAAI,IAAI,CAAC;QACrE,KAAK,cAAc,CAAC,KAAK;YACvB,OAAO,UAAU,CAAC,cAAc,EAAE,CAAC;QACrC,KAAK,cAAc,CAAC,OAAO;YACzB,OAAO,UAAU,CAAC,eAAe,EAAE,CAAC;QACtC,KAAK,cAAc,CAAC,MAAM,CAAC;QAC3B,KAAK,cAAc,CAAC,OAAO;YACzB,OAAO,UAAU,CAAC,oBAAoB,CAAC,GAAG,CAAC,CAAC;QAC9C,gJAAgJ;QAChJ,KAAK,cAAc,CAAC,IAAI,CAAC;QACzB,KAAK,cAAc,CAAC,UAAU;YAC5B,OAAO,UAAU,CACf,UAAU,CAAC,aAAa,CACtB,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,EACpB,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,EAAE,GAAG,CAA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AuB,CAChC,YAAY,EACZ,4BAA4B,CAAC,MAAM,CAAC,IAAI,WAAW,CAAC,OAAO,CAAC,CAAC,CAC9D,CAAC;KACH;IACD,IAAI,OAAO,YAAY,aAAa,EAAE;QACpC,MAAM,sBAAsB,GAAG,IAAI,sBAAsB,CACvD,4BAA4B,CAAC,MAAM,CACjC,OAAO,KAAK,aAAa,CAAC,IAAI;YAC5B,CAAC,CAAC,IAAI,WAAW,CAAC,aAAa,CAAC,UAAU,CAAC;YAC3C,CAAC,CAAC,IAAI,WAAW,CAAC,OAAO,CAAC,CAC7B,CACF,CAAC;QACF,uBAAuB,CAAC,sBAAsB,EAAE;YAC9C,2BAA2B,CACzB,OAAO,EACP,SAAS,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CACjD;SACF,CAAC,CAAC;QACH,OAAO,sBAAsB,CAAC;KAC/B;SAAM,IAAI,OAAO,YAAY,WAAW,EAAE;QACzC,MAAM,iBAAiB,GAAG,IAAI,sBAAsB,CAClD,4BAA4B,CAAC,MAAM,CAAC,IAAI,WAAW,CAAC,OAAO,CAAC,CAAC,CAC9D,CAAC;QACF,MAAM,IAAI,GAAG,6BAA6B,CAAC,OAAO,CAAC,CAAC;QACpD,IAAI,IAAI,KAAK,EAAE,EAAE;YACf,uBAAuB,CAAC,iBAAiB,EAAE;gBACzC,0BAA0B,CAAC,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;aAC/D,CAAC,CAAC;SACJ;QACD,OAAO,iBAAiB,CAAC;KAC1B;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC"}
|
@@ -13,7 +13,7 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { type ValueSpecification
|
16
|
+
import { type ValueSpecification } from '@finos/legend-graph';
|
17
17
|
import { type Hashable } from '@finos/legend-shared';
|
18
18
|
import type { QueryBuilderState } from '../QueryBuilderState.js';
|
19
19
|
export declare class QueryBuilderWatermarkState implements Hashable {
|
@@ -21,7 +21,6 @@ export declare class QueryBuilderWatermarkState implements Hashable {
|
|
21
21
|
value?: ValueSpecification | undefined;
|
22
22
|
isEditingWatermark: boolean;
|
23
23
|
constructor(queryBuilderState: QueryBuilderState);
|
24
|
-
isParamaterCompatibleWithWaterMark: (parameter: VariableExpression) => boolean;
|
25
24
|
resetValue(): void;
|
26
25
|
setIsEditingWatermark(val: boolean): void;
|
27
26
|
enableWatermark(): void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderWatermarkState.d.ts","sourceRoot":"","sources":["../../../src/stores/watermark/QueryBuilderWatermarkState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,kBAAkB,
|
1
|
+
{"version":3,"file":"QueryBuilderWatermarkState.d.ts","sourceRoot":"","sources":["../../../src/stores/watermark/QueryBuilderWatermarkState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,kBAAkB,EAMxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAGhE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,qBAAa,0BAA2B,YAAW,QAAQ;IACzD,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C,KAAK,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IACvC,kBAAkB,UAAS;gBAEf,iBAAiB,EAAE,iBAAiB;IAchD,UAAU,IAAI,IAAI;IAWlB,qBAAqB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAIzC,eAAe,IAAI,IAAI;IAQvB,QAAQ,CAAC,GAAG,EAAE,kBAAkB,GAAG,SAAS,GAAG,IAAI;IASnD,IAAI,QAAQ,IAAI,MAAM,CAKrB;CACF"}
|
@@ -13,7 +13,7 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { observe_ValueSpecification, GenericTypeExplicitReference, GenericType,
|
16
|
+
import { observe_ValueSpecification, GenericTypeExplicitReference, GenericType, PrimitiveInstanceValue, PrimitiveType, } from '@finos/legend-graph';
|
17
17
|
import { hashArray } from '@finos/legend-shared';
|
18
18
|
import { makeObservable, observable, action, computed } from 'mobx';
|
19
19
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../graphManager/QueryBuilderHashUtils.js';
|
@@ -33,13 +33,8 @@ export class QueryBuilderWatermarkState {
|
|
33
33
|
});
|
34
34
|
this.queryBuilderState = queryBuilderState;
|
35
35
|
}
|
36
|
-
isParamaterCompatibleWithWaterMark = (parameter) => {
|
37
|
-
const isString = this.queryBuilderState.graphManagerState.graph.getPrimitiveType(PRIMITIVE_TYPE.STRING) === parameter.genericType?.value.rawType;
|
38
|
-
const isMultiplictyOne = multiplicityComparator(parameter.multiplicity, this.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE));
|
39
|
-
return isString && isMultiplictyOne;
|
40
|
-
};
|
41
36
|
resetValue() {
|
42
|
-
const watermarkConstant = new PrimitiveInstanceValue(GenericTypeExplicitReference.create(new GenericType(
|
37
|
+
const watermarkConstant = new PrimitiveInstanceValue(GenericTypeExplicitReference.create(new GenericType(PrimitiveType.STRING)));
|
43
38
|
watermarkConstant.values = ['watermarkValue'];
|
44
39
|
this.setValue(watermarkConstant);
|
45
40
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderWatermarkState.js","sourceRoot":"","sources":["../../../src/stores/watermark/QueryBuilderWatermarkState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,0BAA0B,EAC1B,4BAA4B,EAC5B,WAAW,EACX,
|
1
|
+
{"version":3,"file":"QueryBuilderWatermarkState.js","sourceRoot":"","sources":["../../../src/stores/watermark/QueryBuilderWatermarkState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,0BAA0B,EAC1B,4BAA4B,EAC5B,WAAW,EACX,sBAAsB,EACtB,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAiB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAG3F,MAAM,OAAO,0BAA0B;IAC5B,iBAAiB,CAAoB;IAC9C,KAAK,CAAkC;IACvC,kBAAkB,GAAG,KAAK,CAAC;IAE3B,YAAY,iBAAoC;QAC9C,cAAc,CAAC,IAAI,EAAE;YACnB,KAAK,EAAE,UAAU;YACjB,kBAAkB,EAAE,UAAU;YAC9B,QAAQ,EAAE,MAAM;YAChB,UAAU,EAAE,MAAM;YAClB,eAAe,EAAE,MAAM;YACvB,qBAAqB,EAAE,MAAM;YAC7B,QAAQ,EAAE,QAAQ;SACnB,CAAC,CAAC;QAEH,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC7C,CAAC;IAED,UAAU;QACR,MAAM,iBAAiB,GAAG,IAAI,sBAAsB,CAClD,4BAA4B,CAAC,MAAM,CACjC,IAAI,WAAW,CAAC,aAAa,CAAC,MAAM,CAAC,CACtC,CACF,CAAC;QAEF,iBAAiB,CAAC,MAAM,GAAG,CAAC,gBAAgB,CAAC,CAAC;QAC9C,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;IACnC,CAAC;IAED,qBAAqB,CAAC,GAAY;QAChC,IAAI,CAAC,kBAAkB,GAAG,GAAG,CAAC;IAChC,CAAC;IAED,eAAe;QACb,IAAI,IAAI,CAAC,KAAK,EAAE;YACd,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;SAC1B;aAAM;YACL,IAAI,CAAC,UAAU,EAAE,CAAC;SACnB;IACH,CAAC;IAED,QAAQ,CAAC,GAAmC;QAC1C,IAAI,CAAC,KAAK,GAAG,GAAG;YACd,CAAC,CAAC,0BAA0B,CACxB,GAAG,EACH,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CACzC;YACH,CAAC,CAAC,SAAS,CAAC;IAChB,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,4BAA4B,CAAC,eAAe;YAC5C,IAAI,CAAC,KAAK,IAAI,EAAE;SACjB,CAAC,CAAC;IACL,CAAC;CACF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderWatermarkValueSpecificationBuilder.d.ts","sourceRoot":"","sources":["../../../src/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,wBAAwB,
|
1
|
+
{"version":3,"file":"QueryBuilderWatermarkValueSpecificationBuilder.d.ts","sourceRoot":"","sources":["../../../src/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,wBAAwB,EAEzB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAElF,eAAO,MAAM,wBAAwB,mBACnB,0BAA0B,cAC9B,wBAAwB,KACnC,wBAAwB,GAAG,SAiB7B,CAAC"}
|