@finos/legend-query-builder 0.1.2 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/QueryBuilder.d.ts.map +1 -1
- package/lib/components/QueryBuilder.js +1 -1
- package/lib/components/QueryBuilder.js.map +1 -1
- package/lib/components/QueryBuilderComponentTestUtils.d.ts.map +1 -1
- package/lib/components/QueryBuilderComponentTestUtils.js +1 -3
- package/lib/components/QueryBuilderComponentTestUtils.js.map +1 -1
- package/lib/components/QueryBuilderDiffPanel.js +1 -2
- package/lib/components/QueryBuilderDiffPanel.js.map +1 -1
- package/lib/components/QueryBuilderParametersPanel.d.ts +1 -1
- package/lib/components/QueryBuilderParametersPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderParametersPanel.js +8 -5
- package/lib/components/QueryBuilderParametersPanel.js.map +1 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts.map +1 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.js +11 -8
- package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -1
- package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderResultPanel.js +6 -4
- package/lib/components/QueryBuilderResultPanel.js.map +1 -1
- package/lib/components/QueryBuilderTextEditor.js +2 -2
- package/lib/components/QueryBuilderTextEditor.js.map +1 -1
- package/lib/components/QueryBuilder_TestID.d.ts +1 -0
- package/lib/components/QueryBuilder_TestID.d.ts.map +1 -1
- package/lib/components/QueryBuilder_TestID.js +1 -0
- package/lib/components/QueryBuilder_TestID.js.map +1 -1
- package/lib/components/explorer/QueryBuilderExplorerPanel.js +2 -2
- package/lib/components/explorer/QueryBuilderExplorerPanel.js.map +1 -1
- package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts.map +1 -1
- package/lib/components/explorer/QueryBuilderMilestoningEditor.js +5 -4
- package/lib/components/explorer/QueryBuilderMilestoningEditor.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +4 -2
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -1
- package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +1 -1
- package/lib/components/filter/QueryBuilderFilterPanel.js +7 -4
- package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
- package/lib/components/shared/BasicValueSpecificationEditor.d.ts +53 -0
- package/lib/components/shared/BasicValueSpecificationEditor.d.ts.map +1 -0
- package/lib/components/shared/BasicValueSpecificationEditor.js +323 -0
- package/lib/components/shared/BasicValueSpecificationEditor.js.map +1 -0
- package/lib/components/shared/CustomDatePicker.d.ts +39 -0
- package/lib/components/shared/CustomDatePicker.d.ts.map +1 -0
- package/lib/components/shared/CustomDatePicker.js +622 -0
- package/lib/components/shared/CustomDatePicker.js.map +1 -0
- package/lib/components/shared/LambdaEditor.d.ts +92 -0
- package/lib/components/shared/LambdaEditor.d.ts.map +1 -0
- package/lib/components/shared/LambdaEditor.js +432 -0
- package/lib/components/shared/LambdaEditor.js.map +1 -0
- package/lib/{graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.d.ts → components/shared/LambdaParameterValuesEditor.d.ts} +11 -3
- package/lib/components/shared/LambdaParameterValuesEditor.d.ts.map +1 -0
- package/lib/components/shared/LambdaParameterValuesEditor.js +52 -0
- package/lib/components/shared/LambdaParameterValuesEditor.js.map +1 -0
- package/lib/components/shared/QueryBuilderLambdaEditor.d.ts +1 -1
- package/lib/components/shared/QueryBuilderLambdaEditor.d.ts.map +1 -1
- package/lib/components/shared/QueryBuilderLambdaEditor.js +3 -2
- package/lib/components/shared/QueryBuilderLambdaEditor.js.map +1 -1
- package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js +1 -2
- package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/{V1_QueryBuilder_FunctionExpressionBuilder.d.ts → V1_QueryValueSpecificationBuilderHelper.d.ts} +3 -2
- package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts.map +1 -0
- package/lib/graphManager/protocol/pure/v1/{V1_QueryBuilder_FunctionExpressionBuilder.js → V1_QueryValueSpecificationBuilderHelper.js} +3 -2
- package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js.map +1 -0
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +7 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +8 -0
- package/lib/index.js.map +1 -1
- package/lib/package.json +7 -10
- package/lib/stores/QueryBuilderMilestoningState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderMilestoningState.js +6 -6
- package/lib/stores/QueryBuilderMilestoningState.js.map +1 -1
- package/lib/stores/QueryBuilderParametersState.d.ts +1 -1
- package/lib/stores/QueryBuilderParametersState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderParametersState.js +1 -1
- package/lib/stores/QueryBuilderParametersState.js.map +1 -1
- package/lib/stores/QueryBuilderPropertyEditorState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderPropertyEditorState.js +35 -38
- package/lib/stores/QueryBuilderPropertyEditorState.js.map +1 -1
- package/lib/stores/QueryBuilderResultState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderResultState.js +2 -1
- package/lib/stores/QueryBuilderResultState.js.map +1 -1
- package/lib/stores/QueryBuilderState.d.ts +2 -2
- package/lib/stores/QueryBuilderState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderState.js +5 -5
- package/lib/stores/QueryBuilderState.js.map +1 -1
- package/lib/stores/QueryBuilderStateBuilder.js +1 -1
- package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
- package/lib/stores/QueryBuilderTextEditorState.d.ts +1 -1
- package/lib/stores/QueryBuilderTextEditorState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderTextEditorState.js +2 -1
- package/lib/stores/QueryBuilderTextEditorState.js.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilder.js +2 -2
- package/lib/stores/QueryBuilderValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js +23 -20
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts +1 -1
- package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationHelper.js +10 -9
- package/lib/stores/QueryBuilderValueSpecificationHelper.js.map +1 -1
- package/lib/stores/explorer/QueryBuilderExplorerState.d.ts.map +1 -1
- package/lib/stores/explorer/QueryBuilderExplorerState.js +4 -3
- package/lib/stores/explorer/QueryBuilderExplorerState.js.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/{QueryBuilderGraphFetchValueSpecificationBuilder.d.ts → QueryBuilderGraphFetchTreeValueSpecificationBuilder.d.ts} +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/graph-fetch/{QueryBuilderGraphFetchValueSpecificationBuilder.js → QueryBuilderGraphFetchTreeValueSpecificationBuilder.js} +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.d.ts +1 -1
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.js +3 -3
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.js.map +1 -1
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.js +1 -1
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.js.map +1 -1
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionStateBuilder.js +4 -4
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionStateBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.js +6 -6
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/{QueryBuilderAggregateOperatorHelper.d.ts → QueryBuilderAggregateOperatorValueSpecificationBuilder.d.ts} +2 -2
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/{QueryBuilderAggregateOperatorHelper.js → QueryBuilderAggregateOperatorValueSpecificationBuilder.js} +2 -2
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.js +3 -3
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.js.map +1 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.js +3 -3
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.js.map +1 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js +3 -3
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js.map +1 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js +1 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js.map +1 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js +1 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js.map +1 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.js +5 -5
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.js.map +1 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.js +5 -5
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.js.map +1 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js +3 -3
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js.map +1 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js +3 -3
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js.map +1 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.js +3 -3
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.js.map +1 -1
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.js +2 -2
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.d.ts +1 -1
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js +10 -10
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.d.ts +1 -4
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.d.ts.map +1 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js +3 -46
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js.map +1 -1
- package/{src/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.ts → lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.d.ts} +5 -13
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js +61 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts.map +1 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js +5 -4
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js.map +1 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts.map +1 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js +5 -4
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js.map +1 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts.map +1 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js +10 -8
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js.map +1 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts.map +1 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js +5 -4
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js.map +1 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js +3 -3
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js.map +1 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.js +3 -3
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.js.map +1 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js +1 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js.map +1 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts.map +1 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js +5 -4
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js.map +1 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js +3 -3
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js.map +1 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts.map +1 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js +5 -4
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js.map +1 -1
- package/lib/stores/filter/operators/{QueryBuilderFilterOperatorHelper.d.ts → QueryBuilderFilterOperatorValueSpecificationBuilder.d.ts} +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperatorValueSpecificationBuilder.d.ts.map +1 -0
- package/lib/stores/filter/operators/{QueryBuilderFilterOperatorHelper.js → QueryBuilderFilterOperatorValueSpecificationBuilder.js} +11 -13
- package/lib/stores/filter/operators/QueryBuilderFilterOperatorValueSpecificationBuilder.js.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js +7 -6
- 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 +7 -6
- 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 +13 -11
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.js +8 -7
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js +8 -7
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js +6 -6
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js +4 -4
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.js +8 -7
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js +8 -7
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js +7 -6
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js.map +1 -1
- package/lib/stores/shared/LambdaEditorState.d.ts +40 -0
- package/lib/stores/shared/LambdaEditorState.d.ts.map +1 -0
- package/lib/stores/shared/LambdaEditorState.js +81 -0
- package/lib/stores/shared/LambdaEditorState.js.map +1 -0
- package/lib/stores/shared/LambdaParameterState.d.ts +62 -0
- package/lib/stores/shared/LambdaParameterState.d.ts.map +1 -0
- package/lib/stores/shared/LambdaParameterState.js +157 -0
- package/lib/stores/shared/LambdaParameterState.js.map +1 -0
- package/lib/{graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.js → stores/shared/ValueSpecificationEditorHelper.d.ts} +5 -3
- package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts.map +1 -0
- package/lib/stores/shared/ValueSpecificationEditorHelper.js +77 -0
- package/lib/stores/shared/ValueSpecificationEditorHelper.js.map +1 -0
- package/lib/stores/shared/ValueSpecificationModifierHelper.d.ts +33 -0
- package/lib/stores/shared/ValueSpecificationModifierHelper.d.ts.map +1 -0
- package/lib/stores/shared/ValueSpecificationModifierHelper.js +71 -0
- package/lib/stores/shared/ValueSpecificationModifierHelper.js.map +1 -0
- package/package.json +14 -17
- package/src/components/QueryBuilder.tsx +4 -1
- package/src/components/QueryBuilderComponentTestUtils.tsx +2 -2
- package/src/components/QueryBuilderDiffPanel.tsx +1 -1
- package/src/components/QueryBuilderParametersPanel.tsx +8 -7
- package/src/components/QueryBuilderPropertyExpressionEditor.tsx +15 -12
- package/src/components/QueryBuilderResultPanel.tsx +8 -6
- package/src/components/QueryBuilderTextEditor.tsx +2 -2
- package/src/components/QueryBuilder_TestID.ts +2 -0
- package/src/components/explorer/QueryBuilderExplorerPanel.tsx +2 -2
- package/src/components/explorer/QueryBuilderMilestoningEditor.tsx +5 -3
- package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +6 -4
- package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +1 -1
- package/src/components/filter/QueryBuilderFilterPanel.tsx +9 -6
- package/src/components/shared/BasicValueSpecificationEditor.tsx +837 -0
- package/src/components/shared/CustomDatePicker.tsx +1363 -0
- package/src/components/shared/LambdaEditor.tsx +858 -0
- package/src/components/shared/LambdaParameterValuesEditor.tsx +121 -0
- package/src/components/shared/QueryBuilderLambdaEditor.tsx +5 -5
- package/src/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.ts +2 -2
- package/src/graphManager/protocol/pure/v1/{V1_QueryBuilder_FunctionExpressionBuilder.ts → V1_QueryValueSpecificationBuilderHelper.ts} +9 -1
- package/src/index.ts +11 -0
- package/src/stores/QueryBuilderMilestoningState.ts +7 -7
- package/src/stores/QueryBuilderParametersState.ts +4 -4
- package/src/stores/QueryBuilderPropertyEditorState.ts +49 -56
- package/src/stores/QueryBuilderResultState.ts +2 -4
- package/src/stores/QueryBuilderState.ts +5 -5
- package/src/stores/QueryBuilderStateBuilder.ts +1 -1
- package/src/stores/QueryBuilderTextEditorState.ts +2 -1
- package/src/stores/QueryBuilderValueSpecificationBuilder.ts +5 -2
- package/src/stores/QueryBuilderValueSpecificationBuilderHelper.ts +30 -42
- package/src/stores/QueryBuilderValueSpecificationHelper.ts +13 -8
- package/src/stores/explorer/QueryBuilderExplorerState.ts +12 -2
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts +1 -1
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.ts +3 -3
- package/src/stores/fetch-structure/graph-fetch/{QueryBuilderGraphFetchValueSpecificationBuilder.ts → QueryBuilderGraphFetchTreeValueSpecificationBuilder.ts} +0 -1
- package/src/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.ts +3 -3
- package/src/stores/fetch-structure/projection/QueryBuilderProjectionState.ts +1 -1
- package/src/stores/fetch-structure/projection/QueryBuilderProjectionStateBuilder.ts +4 -4
- package/src/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +6 -9
- package/src/stores/fetch-structure/projection/aggregation/operators/{QueryBuilderAggregateOperatorHelper.ts → QueryBuilderAggregateOperatorValueSpecificationBuilder.ts} +1 -1
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.ts +3 -3
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.ts +3 -3
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.ts +3 -3
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.ts +1 -1
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.ts +1 -1
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.ts +5 -5
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.ts +5 -5
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.ts +3 -3
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.ts +3 -3
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.ts +3 -3
- package/src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.ts +2 -2
- package/src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.ts +12 -10
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.ts +2 -86
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.ts +104 -0
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.ts +3 -3
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.ts +3 -3
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.ts +8 -7
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.ts +4 -4
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.ts +3 -3
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.ts +2 -2
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.ts +1 -1
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.ts +4 -4
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.ts +3 -3
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts +3 -3
- package/src/stores/filter/operators/{QueryBuilderFilterOperatorHelper.ts → QueryBuilderFilterOperatorValueSpecificationBuilder.ts} +10 -11
- package/src/stores/filter/operators/QueryBuilderFilterOperator_Contain.ts +5 -5
- package/src/stores/filter/operators/QueryBuilderFilterOperator_EndWith.ts +5 -5
- package/src/stores/filter/operators/QueryBuilderFilterOperator_Equal.ts +11 -10
- package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.ts +7 -7
- package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.ts +7 -7
- package/src/stores/filter/operators/QueryBuilderFilterOperator_In.ts +5 -5
- package/src/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.ts +3 -3
- package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThan.ts +7 -7
- package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.ts +7 -7
- package/src/stores/filter/operators/QueryBuilderFilterOperator_StartWith.ts +5 -5
- package/src/stores/shared/LambdaEditorState.ts +118 -0
- package/src/stores/shared/LambdaParameterState.ts +259 -0
- package/src/stores/shared/ValueSpecificationEditorHelper.ts +143 -0
- package/src/stores/shared/ValueSpecificationModifierHelper.ts +177 -0
- package/tsconfig.json +14 -7
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.d.ts.map +0 -1
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.js.map +0 -1
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.d.ts.map +0 -1
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.js.map +0 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.d.ts.map +0 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.js.map +0 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperatorHelper.d.ts.map +0 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperatorHelper.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderAggregateOperator_Count.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,cAAc,EAOd,WAAW,GACZ,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAEL,uCAAuC,GACxC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,
|
1
|
+
{"version":3,"file":"QueryBuilderAggregateOperator_Count.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,cAAc,EAOd,WAAW,GACZ,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAEL,uCAAuC,GACxC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,6DAA6D,CAAC;AACrE,OAAO,EAAE,iCAAiC,EAAE,MAAM,+DAA+D,CAAC;AAClH,OAAO,EAAiB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,4BAA4B,EAAE,MAAM,sDAAsD,CAAC;AAEpG,MAAM,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S,CAAC,CAAC,4BAA4B,CAAC,wBAAwB,CAAC,CAAC,CAAC;IAC5E,CAAC;CACF"}
|
@@ -16,7 +16,7 @@
|
|
16
16
|
import { PRIMITIVE_TYPE, Enumeration, } from '@finos/legend-graph';
|
17
17
|
import { QueryBuilderAggregateOperator } from '../QueryBuilderAggregateOperator.js';
|
18
18
|
import { QueryBuilderSimpleProjectionColumnState, } from '../../QueryBuilderProjectionColumnState.js';
|
19
|
-
import { buildAggregateColumnState, buildAggregateExpression, } from './
|
19
|
+
import { buildAggregateColumnState, buildAggregateExpression, } from './QueryBuilderAggregateOperatorValueSpecificationBuilder.js';
|
20
20
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
21
21
|
import { hashArray } from '@finos/legend-shared';
|
22
22
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../../graphManager/QueryBuilderHashUtils.js';
|
@@ -27,7 +27,7 @@ export class QueryBuilderAggregateOperator_Distinct extends QueryBuilderAggregat
|
|
27
27
|
isCompatibleWithColumn(projectionColumnState) {
|
28
28
|
if (projectionColumnState instanceof QueryBuilderSimpleProjectionColumnState) {
|
29
29
|
const propertyType = projectionColumnState.propertyExpressionState.propertyExpression.func
|
30
|
-
.genericType.value.rawType;
|
30
|
+
.value.genericType.value.rawType;
|
31
31
|
return ([
|
32
32
|
PRIMITIVE_TYPE.STRING,
|
33
33
|
PRIMITIVE_TYPE.BOOLEAN,
|
@@ -43,7 +43,7 @@ export class QueryBuilderAggregateOperator_Distinct extends QueryBuilderAggregat
|
|
43
43
|
return true;
|
44
44
|
}
|
45
45
|
buildAggregateExpression(propertyExpression, variableName, graph) {
|
46
|
-
return buildAggregateExpression(QUERY_BUILDER_SUPPORTED_FUNCTIONS.UNIQUE_VALUE_ONLY,
|
46
|
+
return buildAggregateExpression(QUERY_BUILDER_SUPPORTED_FUNCTIONS.UNIQUE_VALUE_ONLY, variableName, graph);
|
47
47
|
}
|
48
48
|
buildAggregateColumnState(expression, lambdaParam, projectionColumnState) {
|
49
49
|
return buildAggregateColumnState(projectionColumnState, lambdaParam, expression, QUERY_BUILDER_SUPPORTED_FUNCTIONS.UNIQUE_VALUE_ONLY, this);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderAggregateOperator_Distinct.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,cAAc,EAMd,WAAW,GACZ,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAEL,uCAAuC,GACxC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,
|
1
|
+
{"version":3,"file":"QueryBuilderAggregateOperator_Distinct.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,cAAc,EAMd,WAAW,GACZ,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAEL,uCAAuC,GACxC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,6DAA6D,CAAC;AACrE,OAAO,EAAE,iCAAiC,EAAE,MAAM,+DAA+D,CAAC;AAClH,OAAO,EAAiB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,4BAA4B,EAAE,MAAM,sDAAsD,CAAC;AAEpG,MAAM,OAAO,sCACX,SAAQ,6BAA6B;IAGrC,QAAQ,CAAC,qBAAwD;QAC/D,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,sBAAsB,CACpB,qBAAwD;QAExD,IACE,qBAAqB,YAAY,uCAAuC,EACxE;YACA,MAAM,YAAY,GAChB,qBAAqB,CAAC,uBAAuB,CAAC,kBAAkB,CAAC,IAAI;iBAClE,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC;YACrC,OAAO,CAEH;gBACE,cAAc,CAAC,MAAM;gBACrB,cAAc,CAAC,OAAO;gBACtB,cAAc,CAAC,MAAM;gBACrB,cAAc,CAAC,OAAO;gBACtB,cAAc,CAAC,OAAO;gBACtB,cAAc,CAAC,KAAK;gBACpB,cAAc,CAAC,IAAI;gBACnB,cAAc,CAAC,UAAU;gBACzB,cAAc,CAAC,QAAQ;aAE1B,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,YAAY,YAAY,WAAW,CACrE,CAAC;SACH;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,wBAAwB,CACtB,kBAA0D,EAC1D,YAAoB,EACpB,KAAgB;QAEhB,OAAO,wBAAwB,CAC7B,iCAAiC,CAAC,iBAAiB,EACnD,YAAY,EACZ,KAAK,CACN,CAAC;IACJ,CAAC;IAED,yBAAyB,CACvB,UAAoC,EACpC,WAA+B,EAC/B,qBAAwD;QAExD,OAAO,yBAAyB,CAC9B,qBAAqB,EACrB,WAAW,EACX,UAAU,EACV,iCAAiC,CAAC,iBAAiB,EACnD,IAAI,CACL,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,4BAA4B,CAAC,2BAA2B;SACzD,CAAC,CAAC;IACL,CAAC;CACF"}
|
@@ -27,7 +27,7 @@ export class QueryBuilderAggregateOperator_DistinctCount extends QueryBuilderAgg
|
|
27
27
|
isCompatibleWithColumn(projectionColumnState) {
|
28
28
|
if (projectionColumnState instanceof QueryBuilderSimpleProjectionColumnState) {
|
29
29
|
const propertyType = projectionColumnState.propertyExpressionState.propertyExpression.func
|
30
|
-
.genericType.value.rawType;
|
30
|
+
.value.genericType.value.rawType;
|
31
31
|
return ([
|
32
32
|
PRIMITIVE_TYPE.STRING,
|
33
33
|
PRIMITIVE_TYPE.BOOLEAN,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderAggregateOperator_DistinctCount.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAIL,wBAAwB,EACxB,kBAAkB,EAClB,yBAAyB,EACzB,0BAA0B,EAC1B,iBAAiB,EACjB,cAAc,EAEd,WAAW,GACZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,UAAU,EACV,aAAa,EAEb,SAAS,GACV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAEL,uCAAuC,GACxC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,iCAAiC,EAAE,MAAM,+DAA+D,CAAC;AAClH,OAAO,EAAE,4BAA4B,EAAE,MAAM,sDAAsD,CAAC;AAEpG,MAAM,OAAO,2CACX,SAAQ,6BAA6B;IAGrC,QAAQ,CAAC,qBAAwD;QAC/D,OAAO,gBAAgB,CAAC;IAC1B,CAAC;IAED,sBAAsB,CACpB,qBAAwD;QAExD,IACE,qBAAqB,YAAY,uCAAuC,EACxE;YACA,MAAM,YAAY,GAChB,qBAAqB,CAAC,uBAAuB,CAAC,kBAAkB,CAAC,IAAI;iBAClE,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"QueryBuilderAggregateOperator_DistinctCount.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAc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ACtB,sFAAsF,CACxF,CAAC;YACF,UAAU,CACR,kBAAkB,CAAC,gBAAgB,CAAC,MAAM,KAAK,CAAC,EAChD,qEAAqE,CACtE,CAAC;YAEF,WAAW;YACX,MAAM,kBAAkB,GAAG,aAAa,CACtC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC,CAAC,EACtC,kBAAkB,EAClB,0GAA0G,CAC3G,CAAC;YACF,UAAU,CACR,oBAAoB,CAAC,mBAAmB,KAAK,kBAAkB,CAAC,IAAI,EACpE,8EAA8E,kBAAkB,CAAC,IAAI,gCAAgC,oBAAoB,CAAC,mBAAmB,GAAG,CACjL,CAAC;YAEF,WAAW;YACX,UAAU,CACR,IAAI,CAAC,sBAAsB,CAAC,oBAAoB,CAAC,qBAAqB,CAAC,EACvE,yEAAyE,CAC1E,CAAC;YACF,oBAAoB,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;YAEvC,OAAO,oBAAoB,CAAC;SAC7B;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IAEQ,aAAa,CACpB,oBAAsD;QAEtD,MAAM,KAAK,GACT,oBAAoB,CAAC,gBAAgB,CAAC,eAAe,CAAC,iBAAiB;aACpE,iBAAiB,CAAC,KAAK,CAAC;QAC7B,OAAO,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IAC/C,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,4BAA4B,CAAC,iCAAiC;SAC/D,CAAC,CAAC;IACL,CAAC;CACF"}
|
@@ -27,7 +27,7 @@ export class QueryBuilderAggregateOperator_JoinString extends QueryBuilderAggreg
|
|
27
27
|
isCompatibleWithColumn(projectionColumnState) {
|
28
28
|
if (projectionColumnState instanceof QueryBuilderSimpleProjectionColumnState) {
|
29
29
|
const propertyType = projectionColumnState.propertyExpressionState.propertyExpression.func
|
30
|
-
.genericType.value.rawType;
|
30
|
+
.value.genericType.value.rawType;
|
31
31
|
// NOTE: Engine does not support Enumerations at the moment.
|
32
32
|
return PRIMITIVE_TYPE.STRING === propertyType.path;
|
33
33
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderAggregateOperator_JoinString.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAKL,iBAAiB,EACjB,wBAAwB,EACxB,kBAAkB,EAClB,yBAAyB,EACzB,0BAA0B,EAC1B,sBAAsB,EACtB,4BAA4B,EAC5B,WAAW,EACX,cAAc,GACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,UAAU,EACV,aAAa,EAEb,SAAS,GACV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAEL,uCAAuC,GACxC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,iCAAiC,EAAE,MAAM,+DAA+D,CAAC;AAClH,OAAO,EAAE,4BAA4B,EAAE,MAAM,sDAAsD,CAAC;AAEpG,MAAM,OAAO,wCACX,SAAQ,6BAA6B;IAGrC,QAAQ,CAAC,qBAAwD;QAC/D,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,sBAAsB,CACpB,qBAAwD;QAExD,IACE,qBAAqB,YAAY,uCAAuC,EACxE;YACA,MAAM,YAAY,GAChB,qBAAqB,CAAC,uBAAuB,CAAC,kBAAkB,CAAC,IAAI;iBAClE,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"QueryBuilderAggregateOperator_JoinString.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAKL,iBAAiB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uE,CACxE,CAAC;YAEF,WAAW;YACX,UAAU,CACR,IAAI,CAAC,sBAAsB,CAAC,oBAAoB,CAAC,qBAAqB,CAAC,EACvE,kFAAkF,CACnF,CAAC;YACF,oBAAoB,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;YAEvC,OAAO,oBAAoB,CAAC;SAC7B;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IAEQ,aAAa,CACpB,oBAAsD;QAEtD,MAAM,KAAK,GACT,oBAAoB,CAAC,gBAAgB,CAAC,eAAe,CAAC,iBAAiB;aACpE,iBAAiB,CAAC,KAAK,CAAC;QAC7B,OAAO,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;IAC9C,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,4BAA4B,CAAC,8BAA8B;SAC5D,CAAC,CAAC;IACL,CAAC;CACF"}
|
@@ -16,7 +16,7 @@
|
|
16
16
|
import { matchFunctionName, PRIMITIVE_TYPE, } from '@finos/legend-graph';
|
17
17
|
import { QueryBuilderAggregateOperator } from '../QueryBuilderAggregateOperator.js';
|
18
18
|
import { QueryBuilderSimpleProjectionColumnState, } from '../../QueryBuilderProjectionColumnState.js';
|
19
|
-
import { buildAggregateColumnState, buildAggregateExpression, } from './
|
19
|
+
import { buildAggregateColumnState, buildAggregateExpression, } from './QueryBuilderAggregateOperatorValueSpecificationBuilder.js';
|
20
20
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
21
21
|
import { hashArray } from '@finos/legend-shared';
|
22
22
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../../graphManager/QueryBuilderHashUtils.js';
|
@@ -27,7 +27,7 @@ export class QueryBuilderAggregateOperator_Max extends QueryBuilderAggregateOper
|
|
27
27
|
isCompatibleWithColumn(projectionColumnState) {
|
28
28
|
if (projectionColumnState instanceof QueryBuilderSimpleProjectionColumnState) {
|
29
29
|
const propertyType = projectionColumnState.propertyExpressionState.propertyExpression.func
|
30
|
-
.genericType.value.rawType;
|
30
|
+
.value.genericType.value.rawType;
|
31
31
|
return [
|
32
32
|
PRIMITIVE_TYPE.NUMBER,
|
33
33
|
PRIMITIVE_TYPE.INTEGER,
|
@@ -45,15 +45,15 @@ export class QueryBuilderAggregateOperator_Max extends QueryBuilderAggregateOper
|
|
45
45
|
PRIMITIVE_TYPE.DATE,
|
46
46
|
PRIMITIVE_TYPE.STRICTDATE,
|
47
47
|
PRIMITIVE_TYPE.DATETIME,
|
48
|
-
].includes(propertyExpression?.func.genericType.value.rawType.path ??
|
48
|
+
].includes(propertyExpression?.func.value.genericType.value.rawType.path ??
|
49
49
|
PRIMITIVE_TYPE.NUMBER)
|
50
50
|
? QUERY_BUILDER_SUPPORTED_FUNCTIONS.DATE_MAX
|
51
|
-
: QUERY_BUILDER_SUPPORTED_FUNCTIONS.MAX,
|
51
|
+
: QUERY_BUILDER_SUPPORTED_FUNCTIONS.MAX, variableName, graph);
|
52
52
|
}
|
53
53
|
buildAggregateColumnState(expression, lambdaParam, projectionColumnState) {
|
54
54
|
if (projectionColumnState instanceof QueryBuilderSimpleProjectionColumnState) {
|
55
55
|
const propertyType = projectionColumnState.propertyExpressionState.propertyExpression.func
|
56
|
-
.genericType.value.rawType;
|
56
|
+
.value.genericType.value.rawType;
|
57
57
|
switch (propertyType.path) {
|
58
58
|
case PRIMITIVE_TYPE.NUMBER:
|
59
59
|
case PRIMITIVE_TYPE.INTEGER:
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderAggregateOperator_Max.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,cAAc,GAMf,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAEL,uCAAuC,GACxC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,
|
1
|
+
{"version":3,"file":"QueryBuilderAggregateOperator_Max.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,cAAc,GAMf,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAEL,uCAAuC,GACxC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,6DAA6D,CAAC;AACrE,OAAO,EAAE,iCAAiC,EAAE,MAAM,+DAA+D,CAAC;AAClH,OAAO,EAAiB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,4BAA4B,EAAE,MAAM,sDAAsD,CAAC;AAEpG,MAAM,OAAO,iCACX,SAAQ,6BAA6B;IAGrC,QAAQ,CAAC,qBAAwD;QAC/D,OAAO,KAAK,CAAC;IACf,CAAC;IAED,sBAAsB,CACpB,qBAAwD;QAExD,IACE,qBAAqB,YAAY,uCAAuC,EACxE;YACA,MAAM,YAAY,GAChB,qBAAqB,CAAC,uBAAuB,CAAC,kBAAkB,CAAC,IAAI;iBAClE,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC;YACrC,OACE;gBACE,cAAc,CAAC,MAAM;gBACrB,cAAc,CAAC,OAAO;gBACtB,cAAc,CAAC,OAAO;gBACtB,cAAc,CAAC,KAAK;gBACpB,cAAc,CAAC,IAAI;gBACnB,cAAc,CAAC,UAAU;gBACzB,cAAc,CAAC,QAAQ;aAE1B,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;SAC/B;QACD,O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AC,iBAAiB,CAChB,UAAU,CAAC,YAAY,EACvB,iCAAiC,CAAC,QAAQ,CAC3C,EACD;wBACA,OAAO,SAAS,CAAC;qBAClB;oBACD,OAAO,yBAAyB,CAC9B,qBAAqB,EACrB,WAAW,EACX,UAAU,EACV,iCAAiC,CAAC,QAAQ,EAC1C,IAAI,CACL,CAAC;iBACH;gBACD;oBACE,OAAO,SAAS,CAAC;aACpB;SACF;QACD,IACE,iBAAiB,CACf,UAAU,CAAC,YAAY,EACvB,iCAAiC,CAAC,GAAG,CACtC,EACD;YACA,OAAO,yBAAyB,CAC9B,qBAAqB,EACrB,WAAW,EACX,UAAU,EACV,iCAAiC,CAAC,GAAG,EACrC,IAAI,CACL,CAAC;SACH;aAAM,IACL,iBAAiB,CACf,UAAU,CAAC,YAAY,EACvB,iCAAiC,CAAC,QAAQ,CAC3C,EACD;YACA,OAAO,yBAAyB,CAC9B,qBAAqB,EACrB,WAAW,EACX,UAAU,EACV,iCAAiC,CAAC,QAAQ,EAC1C,IAAI,CACL,CAAC;SACH;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC,CAAC,4BAA4B,CAAC,sBAAsB,CAAC,CAAC,CAAC;IAC1E,CAAC;CACF"}
|
@@ -16,7 +16,7 @@
|
|
16
16
|
import { matchFunctionName, PRIMITIVE_TYPE, } from '@finos/legend-graph';
|
17
17
|
import { QueryBuilderAggregateOperator } from '../QueryBuilderAggregateOperator.js';
|
18
18
|
import { QueryBuilderSimpleProjectionColumnState, } from '../../QueryBuilderProjectionColumnState.js';
|
19
|
-
import { buildAggregateColumnState, buildAggregateExpression, } from './
|
19
|
+
import { buildAggregateColumnState, buildAggregateExpression, } from './QueryBuilderAggregateOperatorValueSpecificationBuilder.js';
|
20
20
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
21
21
|
import { hashArray } from '@finos/legend-shared';
|
22
22
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../../graphManager/QueryBuilderHashUtils.js';
|
@@ -27,7 +27,7 @@ export class QueryBuilderAggregateOperator_Min extends QueryBuilderAggregateOper
|
|
27
27
|
isCompatibleWithColumn(projectionColumnState) {
|
28
28
|
if (projectionColumnState instanceof QueryBuilderSimpleProjectionColumnState) {
|
29
29
|
const propertyType = projectionColumnState.propertyExpressionState.propertyExpression.func
|
30
|
-
.genericType.value.rawType;
|
30
|
+
.value.genericType.value.rawType;
|
31
31
|
return [
|
32
32
|
PRIMITIVE_TYPE.NUMBER,
|
33
33
|
PRIMITIVE_TYPE.INTEGER,
|
@@ -45,15 +45,15 @@ export class QueryBuilderAggregateOperator_Min extends QueryBuilderAggregateOper
|
|
45
45
|
PRIMITIVE_TYPE.DATE,
|
46
46
|
PRIMITIVE_TYPE.STRICTDATE,
|
47
47
|
PRIMITIVE_TYPE.DATETIME,
|
48
|
-
].includes(propertyExpression?.func.genericType.value.rawType.path ??
|
48
|
+
].includes(propertyExpression?.func.value.genericType.value.rawType.path ??
|
49
49
|
PRIMITIVE_TYPE.NUMBER)
|
50
50
|
? QUERY_BUILDER_SUPPORTED_FUNCTIONS.DATE_MIN
|
51
|
-
: QUERY_BUILDER_SUPPORTED_FUNCTIONS.MIN,
|
51
|
+
: QUERY_BUILDER_SUPPORTED_FUNCTIONS.MIN, variableName, graph);
|
52
52
|
}
|
53
53
|
buildAggregateColumnState(expression, lambdaParam, projectionColumnState) {
|
54
54
|
if (projectionColumnState instanceof QueryBuilderSimpleProjectionColumnState) {
|
55
55
|
const propertyType = projectionColumnState.propertyExpressionState.propertyExpression.func
|
56
|
-
.genericType.value.rawType;
|
56
|
+
.value.genericType.value.rawType;
|
57
57
|
switch (propertyType.path) {
|
58
58
|
case PRIMITIVE_TYPE.NUMBER:
|
59
59
|
case PRIMITIVE_TYPE.INTEGER:
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderAggregateOperator_Min.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,cAAc,GAMf,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAEL,uCAAuC,GACxC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,
|
1
|
+
{"version":3,"file":"QueryBuilderAggregateOperator_Min.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,cAAc,GAMf,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAEL,uCAAuC,GACxC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,6DAA6D,CAAC;AACrE,OAAO,EAAE,iCAAiC,EAAE,MAAM,+DAA+D,CAAC;AAClH,OAAO,EAAiB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,4BAA4B,EAAE,MAAM,sDAAsD,CAAC;AAEpG,MAAM,OAAO,iCACX,SAAQ,6BAA6B;IAGrC,QAAQ,CAAC,qBAAwD;QAC/D,OAAO,KAAK,CAAC;IACf,CAAC;IAED,sBAAsB,CACpB,qBAAwD;QAExD,IACE,qBAAqB,YAAY,uCAAuC,EACxE;YACA,MAAM,YAAY,GAChB,qBAAqB,CAAC,uBAAuB,CAAC,kBAAkB,CAAC,IAAI;iBAClE,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC;YACrC,OACE;gBACE,cAAc,CAAC,MA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AC9B,qBAAqB,EACrB,WAAW,EACX,UAAU,EACV,iCAAiC,CAAC,GAAG,EACrC,IAAI,CACL,CAAC;iBACH;gBACD,KAAK,cAAc,CAAC,IAAI,CAAC;gBACzB,KAAK,cAAc,CAAC,UAAU,CAAC;gBAC/B,KAAK,cAAc,CAAC,QAAQ,CAAC,CAAC;oBAC5B,IACE,CAAC,iBAAiB,CAChB,UAAU,CAAC,YAAY,EACvB,iCAAiC,CAAC,QAAQ,CAC3C,EACD;wBACA,OAAO,SAAS,CAAC;qBAClB;oBACD,OAAO,yBAAyB,CAC9B,qBAAqB,EACrB,WAAW,EACX,UAAU,EACV,iCAAiC,CAAC,QAAQ,EAC1C,IAAI,CACL,CAAC;iBACH;gBACD;oBACE,OAAO,SAAS,CAAC;aACpB;SACF;QACD,IACE,iBAAiB,CACf,UAAU,CAAC,YAAY,EACvB,iCAAiC,CAAC,GAAG,CACtC,EACD;YACA,OAAO,yBAAyB,CAC9B,qBAAqB,EACrB,WAAW,EACX,UAAU,EACV,iCAAiC,CAAC,GAAG,EACrC,IAAI,CACL,CAAC;SACH;aAAM,IACL,iBAAiB,CACf,UAAU,CAAC,YAAY,EACvB,iCAAiC,CAAC,QAAQ,CAC3C,EACD;YACA,OAAO,yBAAyB,CAC9B,qBAAqB,EACrB,WAAW,EACX,UAAU,EACV,iCAAiC,CAAC,QAAQ,EAC1C,IAAI,CACL,CAAC;SACH;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC,CAAC,4BAA4B,CAAC,sBAAsB,CAAC,CAAC,CAAC;IAC1E,CAAC;CACF"}
|
@@ -16,7 +16,7 @@
|
|
16
16
|
import { PRIMITIVE_TYPE, } from '@finos/legend-graph';
|
17
17
|
import { QueryBuilderAggregateOperator } from '../QueryBuilderAggregateOperator.js';
|
18
18
|
import { QueryBuilderSimpleProjectionColumnState, } from '../../QueryBuilderProjectionColumnState.js';
|
19
|
-
import { buildAggregateColumnState, buildAggregateExpression, } from './
|
19
|
+
import { buildAggregateColumnState, buildAggregateExpression, } from './QueryBuilderAggregateOperatorValueSpecificationBuilder.js';
|
20
20
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
21
21
|
import { hashArray } from '@finos/legend-shared';
|
22
22
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../../graphManager/QueryBuilderHashUtils.js';
|
@@ -27,7 +27,7 @@ export class QueryBuilderAggregateOperator_StdDev_Population extends QueryBuilde
|
|
27
27
|
isCompatibleWithColumn(projectionColumnState) {
|
28
28
|
if (projectionColumnState instanceof QueryBuilderSimpleProjectionColumnState) {
|
29
29
|
const propertyType = projectionColumnState.propertyExpressionState.propertyExpression.func
|
30
|
-
.genericType.value.rawType;
|
30
|
+
.value.genericType.value.rawType;
|
31
31
|
return [
|
32
32
|
PRIMITIVE_TYPE.NUMBER,
|
33
33
|
PRIMITIVE_TYPE.INTEGER,
|
@@ -38,7 +38,7 @@ export class QueryBuilderAggregateOperator_StdDev_Population extends QueryBuilde
|
|
38
38
|
return true;
|
39
39
|
}
|
40
40
|
buildAggregateExpression(propertyExpression, variableName, graph) {
|
41
|
-
return buildAggregateExpression(QUERY_BUILDER_SUPPORTED_FUNCTIONS.STD_DEV_POPULATION,
|
41
|
+
return buildAggregateExpression(QUERY_BUILDER_SUPPORTED_FUNCTIONS.STD_DEV_POPULATION, variableName, graph);
|
42
42
|
}
|
43
43
|
buildAggregateColumnState(expression, lambdaParam, projectionColumnState) {
|
44
44
|
return buildAggregateColumnState(projectionColumnState, lambdaParam, expression, QUERY_BUILDER_SUPPORTED_FUNCTIONS.STD_DEV_POPULATION, this);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderAggregateOperator_StdDev_Population.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,cAAc,GAMf,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAEL,uCAAuC,GACxC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,
|
1
|
+
{"version":3,"file":"QueryBuilderAggregateOperator_StdDev_Population.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,cAAc,GAMf,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAEL,uCAAuC,GACxC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,6DAA6D,CAAC;AACrE,OAAO,EAAE,iCAAiC,EAAE,MAAM,+DAA+D,CAAC;AAClH,OAAO,EAAiB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,4BAA4B,EAAE,MAAM,sDAAsD,CAAC;AAEpG,MAAM,OAAO,+CACX,SAAQ,6BAA6B;IAGrC,QAAQ,CAAC,qBAAwD;QAC/D,OAAO,sBAAsB,CAAC;IAChC,CAAC;IAED,sBAAsB,CACpB,qBAAwD;QAExD,IACE,qBAAqB,YAAY,uCAAuC,EACxE;YACA,MAAM,YAAY,GAChB,qBAAqB,CAAC,uBAAuB,CAAC,kBAAkB,CAAC,IAAI;iBAClE,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC;YACrC,OACE;gBACE,cAAc,CAAC,MAAM;gBACrB,cAAc,CAAC,OAAO;gBACtB,cAAc,CAAC,OAAO;gBACtB,cAAc,CAAC,KAAK;aAEvB,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;SAC/B;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,wBAAwB,CACtB,kBAA0D,EAC1D,YAAoB,EACpB,KAAgB;QAEhB,OAAO,wBAAwB,CAC7B,iCAAiC,CAAC,kBAAkB,EACpD,YAAY,EACZ,KAAK,CACN,CAAC;IACJ,CAAC;IAED,yBAAyB,CACvB,UAAoC,EACpC,WAA+B,EAC/B,qBAAwD;QAExD,OAAO,yBAAyB,CAC9B,qBAAqB,EACrB,WAAW,EACX,UAAU,EACV,iCAAiC,CAAC,kBAAkB,EACpD,IAAI,CACL,CAAC;IACJ,CAAC;IAEQ,aAAa,CACpB,oBAAsD;QAEtD,MAAM,KAAK,GACT,oBAAoB,CAAC,qBAAqB,CAAC,eAAe;aACvD,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAAC;QAC/C,OAAO,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;IAC9C,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,4BAA4B,CAAC,qCAAqC;SACnE,CAAC,CAAC;IACL,CAAC;CACF"}
|
@@ -16,7 +16,7 @@
|
|
16
16
|
import { PRIMITIVE_TYPE, } from '@finos/legend-graph';
|
17
17
|
import { QueryBuilderAggregateOperator } from '../QueryBuilderAggregateOperator.js';
|
18
18
|
import { QueryBuilderSimpleProjectionColumnState, } from '../../QueryBuilderProjectionColumnState.js';
|
19
|
-
import { buildAggregateColumnState, buildAggregateExpression, } from './
|
19
|
+
import { buildAggregateColumnState, buildAggregateExpression, } from './QueryBuilderAggregateOperatorValueSpecificationBuilder.js';
|
20
20
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
21
21
|
import { hashArray } from '@finos/legend-shared';
|
22
22
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../../graphManager/QueryBuilderHashUtils.js';
|
@@ -27,7 +27,7 @@ export class QueryBuilderAggregateOperator_StdDev_Sample extends QueryBuilderAgg
|
|
27
27
|
isCompatibleWithColumn(projectionColumnState) {
|
28
28
|
if (projectionColumnState instanceof QueryBuilderSimpleProjectionColumnState) {
|
29
29
|
const propertyType = projectionColumnState.propertyExpressionState.propertyExpression.func
|
30
|
-
.genericType.value.rawType;
|
30
|
+
.value.genericType.value.rawType;
|
31
31
|
return [
|
32
32
|
PRIMITIVE_TYPE.NUMBER,
|
33
33
|
PRIMITIVE_TYPE.INTEGER,
|
@@ -38,7 +38,7 @@ export class QueryBuilderAggregateOperator_StdDev_Sample extends QueryBuilderAgg
|
|
38
38
|
return true;
|
39
39
|
}
|
40
40
|
buildAggregateExpression(propertyExpression, variableName, graph) {
|
41
|
-
return buildAggregateExpression(QUERY_BUILDER_SUPPORTED_FUNCTIONS.STD_DEV_SAMPLE,
|
41
|
+
return buildAggregateExpression(QUERY_BUILDER_SUPPORTED_FUNCTIONS.STD_DEV_SAMPLE, variableName, graph);
|
42
42
|
}
|
43
43
|
buildAggregateColumnState(expression, lambdaParam, projectionColumnState) {
|
44
44
|
return buildAggregateColumnState(projectionColumnState, lambdaParam, expression, QUERY_BUILDER_SUPPORTED_FUNCTIONS.STD_DEV_SAMPLE, this);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderAggregateOperator_StdDev_Sample.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,cAAc,GAOf,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAEL,uCAAuC,GACxC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,
|
1
|
+
{"version":3,"file":"QueryBuilderAggregateOperator_StdDev_Sample.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,cAAc,GAOf,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAEL,uCAAuC,GACxC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,6DAA6D,CAAC;AACrE,OAAO,EAAE,iCAAiC,EAAE,MAAM,+DAA+D,CAAC;AAClH,OAAO,EAAiB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,4BAA4B,EAAE,MAAM,sDAAsD,CAAC;AAEpG,MAAM,OAAO,2CACX,SAAQ,6BAA6B;IAGrC,QAAQ,CAAC,qBAAwD;QAC/D,OAAO,kBAAkB,CAAC;IAC5B,CAAC;IAED,sBAAsB,CACpB,qBAAwD;QAExD,IACE,qBAAqB,YAAY,uCAAuC,EACxE;YACA,MAAM,YAAY,GAChB,qBAAqB,CAAC,uBAAuB,CAAC,kBAAkB,CAAC,IAAI;iBAClE,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC;YACrC,OACE;gBACE,cAAc,CAAC,MAAM;gBACrB,cAAc,CAAC,OAAO;gBACtB,cAAc,CAAC,OAAO;gBACtB,cAAc,CAAC,KAAK;aAEvB,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;SAC/B;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,wBAAwB,CACtB,kBAA0D,EAC1D,YAAoB,EACpB,KAAgB;QAEhB,OAAO,wBAAwB,CAC7B,iCAAiC,CAAC,cAAc,EAChD,YAAY,EACZ,KAAK,CACN,CAAC;IACJ,CAAC;IAED,yBAAyB,CACvB,UAAoC,EACpC,WAA+B,EAC/B,qBAAwD;QAExD,OAAO,yBAAyB,CAC9B,qBAAqB,EACrB,WAAW,EACX,UAAU,EACV,iCAAiC,CAAC,cAAc,EAChD,IAAI,CACL,CAAC;IACJ,CAAC;IAEQ,aAAa,CACpB,oBAAsD;QAEtD,MAAM,KAAK,GACT,oBAAoB,CAAC,qBAAqB,CAAC,eAAe;aACvD,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAAC;QAC/C,OAAO,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;IAC9C,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,4BAA4B,CAAC,iCAAiC;SAC/D,CAAC,CAAC;IACL,CAAC;CACF"}
|
@@ -16,7 +16,7 @@
|
|
16
16
|
import { PRIMITIVE_TYPE, } from '@finos/legend-graph';
|
17
17
|
import { QueryBuilderAggregateOperator } from '../QueryBuilderAggregateOperator.js';
|
18
18
|
import { QueryBuilderSimpleProjectionColumnState, } from '../../QueryBuilderProjectionColumnState.js';
|
19
|
-
import { buildAggregateColumnState, buildAggregateExpression, } from './
|
19
|
+
import { buildAggregateColumnState, buildAggregateExpression, } from './QueryBuilderAggregateOperatorValueSpecificationBuilder.js';
|
20
20
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
21
21
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../../graphManager/QueryBuilderHashUtils.js';
|
22
22
|
import { hashArray } from '@finos/legend-shared';
|
@@ -27,7 +27,7 @@ export class QueryBuilderAggregateOperator_Sum extends QueryBuilderAggregateOper
|
|
27
27
|
isCompatibleWithColumn(projectionColumnState) {
|
28
28
|
if (projectionColumnState instanceof QueryBuilderSimpleProjectionColumnState) {
|
29
29
|
const propertyType = projectionColumnState.propertyExpressionState.propertyExpression.func
|
30
|
-
.genericType.value.rawType;
|
30
|
+
.value.genericType.value.rawType;
|
31
31
|
return [
|
32
32
|
PRIMITIVE_TYPE.NUMBER,
|
33
33
|
PRIMITIVE_TYPE.INTEGER,
|
@@ -38,7 +38,7 @@ export class QueryBuilderAggregateOperator_Sum extends QueryBuilderAggregateOper
|
|
38
38
|
return true;
|
39
39
|
}
|
40
40
|
buildAggregateExpression(propertyExpression, variableName, graph) {
|
41
|
-
return buildAggregateExpression(QUERY_BUILDER_SUPPORTED_FUNCTIONS.SUM,
|
41
|
+
return buildAggregateExpression(QUERY_BUILDER_SUPPORTED_FUNCTIONS.SUM, variableName, graph);
|
42
42
|
}
|
43
43
|
buildAggregateColumnState(expression, lambdaParam, projectionColumnState) {
|
44
44
|
return buildAggregateColumnState(projectionColumnState, lambdaParam, expression, QUERY_BUILDER_SUPPORTED_FUNCTIONS.SUM, this);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderAggregateOperator_Sum.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,cAAc,GAMf,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAEL,uCAAuC,GACxC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,
|
1
|
+
{"version":3,"file":"QueryBuilderAggregateOperator_Sum.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,cAAc,GAMf,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAEL,uCAAuC,GACxC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,6DAA6D,CAAC;AACrE,OAAO,EAAE,iCAAiC,EAAE,MAAM,+DAA+D,CAAC;AAClH,OAAO,EAAE,4BAA4B,EAAE,MAAM,sDAAsD,CAAC;AACpG,OAAO,EAAiB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEhE,MAAM,OAAO,iCACX,SAAQ,6BAA6B;IAGrC,QAAQ,CAAC,qBAAwD;QAC/D,OAAO,KAAK,CAAC;IACf,CAAC;IAED,sBAAsB,CACpB,qBAAwD;QAExD,IACE,qBAAqB,YAAY,uCAAuC,EACxE;YACA,MAAM,YAAY,GAChB,qBAAqB,CAAC,uBAAuB,CAAC,kBAAkB,CAAC,IAAI;iBAClE,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC;YACrC,OACE;gBACE,cAAc,CAAC,MAAM;gBACrB,cAAc,CAAC,OAAO;gBACtB,cAAc,CAAC,OAAO;gBACtB,cAAc,CAAC,KAAK;aAEvB,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;SAC/B;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,wBAAwB,CACtB,kBAA0D,EAC1D,YAAoB,EACpB,KAAgB;QAEhB,OAAO,wBAAwB,CAC7B,iCAAiC,CAAC,GAAG,EACrC,YAAY,EACZ,KAAK,CACN,CAAC;IACJ,CAAC;IAED,yBAAyB,CACvB,UAAoC,EACpC,WAA+B,EAC/B,qBAAwD;QAExD,OAAO,yBAAyB,CAC9B,qBAAqB,EACrB,WAAW,EACX,UAAU,EACV,iCAAiC,CAAC,GAAG,EACrC,IAAI,CACL,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC,CAAC,4BAA4B,CAAC,sBAAsB,CAAC,CAAC,CAAC;IAC1E,CAAC;CACF"}
|
package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.js
CHANGED
@@ -22,7 +22,7 @@ import { QueryBuilderProjectionState } from '../QueryBuilderProjectionState.js';
|
|
22
22
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
23
23
|
const findProjectionColumnState = (propertyExpression, postFilterState) => {
|
24
24
|
const projectionState = postFilterState.projectionState;
|
25
|
-
const properyExpressionName = propertyExpression.func.name;
|
25
|
+
const properyExpressionName = propertyExpression.func.value.name;
|
26
26
|
assertTrue(Object.values(TDS_COLUMN_GETTER).includes(properyExpressionName), `Can't process TDS column expression: TDS column property '${properyExpressionName}' not supported. Supported types are ${Object.values(TDS_COLUMN_GETTER).join(',')}`);
|
27
27
|
const tdsColumnGetter = properyExpressionName;
|
28
28
|
const columnNameExpression = propertyExpression.parametersValues[1];
|
@@ -53,7 +53,7 @@ export const buildPostFilterConditionState = (postFilterState, expression, opera
|
|
53
53
|
const tdsColumnGetter = operator.getTdsColumnGetter();
|
54
54
|
if (tdsColumnGetter &&
|
55
55
|
expression instanceof AbstractPropertyExpression &&
|
56
|
-
expression.func.name === tdsColumnGetter) {
|
56
|
+
expression.func.value.name === tdsColumnGetter) {
|
57
57
|
const columnState = findProjectionColumnState(expression, postFilterState);
|
58
58
|
postConditionState = new PostFilterConditionState(postFilterState, columnState, undefined, operator);
|
59
59
|
return postConditionState;
|
package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderPostFilterStateBuilder.js","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC1B,0BAA0B,EAC1B,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,GAEnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,EACb,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAEL,kCAAkC,EAClC,wBAAwB,EACxB,2CAA2C,EAC3C,uCAAuC,EACvC,iBAAiB,EACjB,0BAA0B,GAC3B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAEL,2CAA2C,GAC5C,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAChF,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAEhF,OAAO,EAAE,iCAAiC,EAAE,MAAM,4DAA4D,CAAC;AAE/G,MAAM,yBAAyB,GAAG,CAChC,kBAA8C,EAC9C,eAA4C,EAC0B,EAAE;IACxE,MAAM,eAAe,GAAG,eAAe,CAAC,eAAe,CAAC;IACxD,MAAM,qBAAqB,GAAG,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC;
|
1
|
+
{"version":3,"file":"QueryBuilderPostFilterStateBuilder.js","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC1B,0BAA0B,EAC1B,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,GAEnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,EACb,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAEL,kCAAkC,EAClC,wBAAwB,EACxB,2CAA2C,EAC3C,uCAAuC,EACvC,iBAAiB,EACjB,0BAA0B,GAC3B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAEL,2CAA2C,GAC5C,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,C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AAG,oBAAoB,CACrC,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAC,EAC1B,0EAA0E,CAC3E,CAAC;QACF,UAAU,CACR,UAAU,CAAC,kBAAkB,CAAC,MAAM,KAAK,CAAC,EAC1C,0FAA0F,CAC3F,CAAC;QACF,MAAM,cAAc,GAAG,aAAa,CAClC,UAAU,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAChC,kBAAkB,EAClB,qGAAqG,CACtG,CAAC;QACF,UAAU,CACR,UAAU,CAAC,YAAY,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC,EAC/C,oFAAoF,CACrF,CAAC;QACF,eAAe,CAAC,sBAAsB,CACpC,aAAa,CACX,UAAU,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,EACrC,kBAAkB,EAClB,8GAA8G,CAC/G,CAAC,IAAI,CACP,CAAC;QACF,qBAAqB,CAAC,cAAc,EAAE,eAAe,EAAE,SAAS,CAAC,CAAC;QAElE,eAAe,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;QAC7C,eAAe,CAAC,YAAY,EAAE,CAAC;KAChC;AACH,CAAC,CAAC"}
|
@@ -15,5 +15,5 @@
|
|
15
15
|
*/
|
16
16
|
import { type LambdaFunction } from '@finos/legend-graph';
|
17
17
|
import { type QueryBuilderPostFilterState } from './QueryBuilderPostFilterState.js';
|
18
|
-
export declare const appendPostFilter: (postFilterState: QueryBuilderPostFilterState,
|
18
|
+
export declare const appendPostFilter: (postFilterState: QueryBuilderPostFilterState, lambdaFunction: LambdaFunction) => LambdaFunction;
|
19
19
|
//# sourceMappingURL=QueryBuilderPostFilterValueSpecificationBuilder.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderPostFilterValueSpecificationBuilder.d.ts","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAIL,KAAK,cAAc,EAEpB,MAAM,qBAAqB,CAAC;AAK7B,OAAO,EAIL,KAAK,2BAA2B,EACjC,MAAM,kCAAkC,CAAC;AAwD1C,eAAO,MAAM,gBAAgB,oBACV,2BAA2B,
|
1
|
+
{"version":3,"file":"QueryBuilderPostFilterValueSpecificationBuilder.d.ts","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAIL,KAAK,cAAc,EAEpB,MAAM,qBAAqB,CAAC;AAK7B,OAAO,EAIL,KAAK,2BAA2B,EACjC,MAAM,kCAAkC,CAAC;AAwD1C,eAAO,MAAM,gBAAgB,oBACV,2BAA2B,kBAC5B,cAAc,KAC7B,cA+BF,CAAC"}
|
@@ -19,17 +19,17 @@ import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../graphManager/Quer
|
|
19
19
|
import { fromGroupOperation } from '../../../QueryBuilderGroupOperationHelper.js';
|
20
20
|
import { buildGenericLambdaFunctionInstanceValue } from '../../../QueryBuilderValueSpecificationHelper.js';
|
21
21
|
import { QueryBuilderPostFilterTreeConditionNodeData, QueryBuilderPostFilterTreeGroupNodeData, } from './QueryBuilderPostFilterState.js';
|
22
|
-
const buildPostFilterExpression = (
|
22
|
+
const buildPostFilterExpression = (postFilterState, node) => {
|
23
23
|
if (node instanceof QueryBuilderPostFilterTreeConditionNodeData) {
|
24
24
|
return node.condition.operator.buildPostFilterConditionExpression(node.condition);
|
25
25
|
}
|
26
26
|
else if (node instanceof QueryBuilderPostFilterTreeGroupNodeData) {
|
27
|
-
const multiplicityOne =
|
27
|
+
const multiplicityOne = postFilterState.projectionState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE);
|
28
28
|
const func = new SimpleFunctionExpression(extractElementNameFromPath(fromGroupOperation(node.groupOperation)), multiplicityOne);
|
29
29
|
const clauses = node.childrenIds
|
30
|
-
.map((e) =>
|
30
|
+
.map((e) => postFilterState.nodes.get(e))
|
31
31
|
.filter(isNonNullable)
|
32
|
-
.map((e) => buildPostFilterExpression(
|
32
|
+
.map((e) => buildPostFilterExpression(postFilterState, e))
|
33
33
|
.filter(isNonNullable);
|
34
34
|
/**
|
35
35
|
* NOTE: Due to a limitation (or perhaps design decision) in the engine, group operations
|
@@ -58,22 +58,22 @@ const buildPostFilterExpression = (filterState, node) => {
|
|
58
58
|
}
|
59
59
|
return undefined;
|
60
60
|
};
|
61
|
-
export const appendPostFilter = (postFilterState,
|
61
|
+
export const appendPostFilter = (postFilterState, lambdaFunction) => {
|
62
62
|
const postFilterConditionExpressions = postFilterState.rootIds
|
63
63
|
.map((e) => guaranteeNonNullable(postFilterState.nodes.get(e)))
|
64
64
|
.map((e) => buildPostFilterExpression(postFilterState, e))
|
65
65
|
.filter(isNonNullable);
|
66
66
|
if (!postFilterConditionExpressions.length ||
|
67
|
-
|
68
|
-
return
|
67
|
+
lambdaFunction.expressionSequence.length !== 1) {
|
68
|
+
return lambdaFunction;
|
69
69
|
}
|
70
70
|
const multiplicityOne = postFilterState.projectionState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE);
|
71
71
|
const filterLambda = buildGenericLambdaFunctionInstanceValue(postFilterState.lambdaParameterName, postFilterConditionExpressions, postFilterState.projectionState.queryBuilderState.graphManagerState.graph);
|
72
72
|
// main filter expression
|
73
73
|
const filterExpression = new SimpleFunctionExpression(extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_FILTER), multiplicityOne);
|
74
|
-
const currentExpression = guaranteeNonNullable(
|
74
|
+
const currentExpression = guaranteeNonNullable(lambdaFunction.expressionSequence[0]);
|
75
75
|
filterExpression.parametersValues = [currentExpression, filterLambda];
|
76
|
-
|
77
|
-
return
|
76
|
+
lambdaFunction.expressionSequence[0] = filterExpression;
|
77
|
+
return lambdaFunction;
|
78
78
|
};
|
79
79
|
//# sourceMappingURL=QueryBuilderPostFilterValueSpecificationBuilder.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderPostFilterValueSpecificationBuilder.js","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,0BAA0B,EAC1B,wBAAwB,EACxB,yBAAyB,GAG1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,iCAAiC,EAAE,MAAM,4DAA4D,CAAC;AAC/G,OAAO,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAC;AAClF,OAAO,EAAE,uCAAuC,EAAE,MAAM,kDAAkD,CAAC;AAC3G,OAAO,EACL,2CAA2C,EAC3C,uCAAuC,GAGxC,MAAM,kCAAkC,CAAC;AAE1C,MAAM,yBAAyB,GAAG,CAChC,
|
1
|
+
{"version":3,"file":"QueryBuilderPostFilterValueSpecificationBuilder.js","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,0BAA0B,EAC1B,wBAAwB,EACxB,yBAAyB,GAG1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,iCAAiC,EAAE,MAAM,4DAA4D,CAAC;AAC/G,OAAO,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAC;AAClF,OAAO,EAAE,uCAAuC,EAAE,MAAM,kDAAkD,CAAC;AAC3G,OAAO,EACL,2CAA2C,EAC3C,uCAAuC,GAGx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AC9B,eAAe,CAAC,eAAe,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAC1E,CAAC;IACF,yBAAyB;IACzB,MAAM,gBAAgB,GAAG,IAAI,wBAAwB,CACnD,0BAA0B,CAAC,iCAAiC,CAAC,UAAU,CAAC,EACxE,eAAe,CAChB,CAAC;IACF,MAAM,iBAAiB,GAAG,oBAAoB,CAC5C,cAAc,CAAC,kBAAkB,CAAC,CAAC,CAAC,CACrC,CAAC;IACF,gBAAgB,CAAC,gBAAgB,GAAG,CAAC,iBAAiB,EAAE,YAAY,CAAC,CAAC;IACtE,cAAc,CAAC,kBAAkB,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC;IACxD,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC"}
|
@@ -13,11 +13,8 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { type Multiplicity
|
16
|
+
import { type Multiplicity } from '@finos/legend-graph';
|
17
17
|
import { QueryBuilderAggregateColumnState } from '../../aggregation/QueryBuilderAggregationState.js';
|
18
|
-
import type { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator.js';
|
19
|
-
import { type PostFilterConditionState } from '../QueryBuilderPostFilterState.js';
|
20
18
|
import { type QueryBuilderProjectionColumnState } from '../../QueryBuilderProjectionColumnState.js';
|
21
19
|
export declare const getColumnMultiplicity: (columnState: QueryBuilderProjectionColumnState | QueryBuilderAggregateColumnState) => Multiplicity;
|
22
|
-
export declare const buildPostFilterConditionExpression: (filterConditionState: PostFilterConditionState, operator: QueryBuilderPostFilterOperator, operatorFunctionFullPath: string | undefined) => FunctionExpression;
|
23
20
|
//# sourceMappingURL=QueryBuilderPostFilterOperatorHelper.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderPostFilterOperatorHelper.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,YAAY,
|
1
|
+
{"version":3,"file":"QueryBuilderPostFilterOperatorHelper.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,YAAY,EAElB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,gCAAgC,EAAE,MAAM,mDAAmD,CAAC;AACrG,OAAO,EACL,KAAK,iCAAiC,EAEvC,MAAM,4CAA4C,CAAC;AAEpD,eAAO,MAAM,qBAAqB,gBAE5B,iCAAiC,GACjC,gCAAgC,KACnC,YAaF,CAAC"}
|
@@ -13,61 +13,18 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import {
|
17
|
-
import {
|
16
|
+
import { TYPICAL_MULTIPLICITY_TYPE, } from '@finos/legend-graph';
|
17
|
+
import { UnsupportedOperationError } from '@finos/legend-shared';
|
18
18
|
import { QueryBuilderAggregateColumnState } from '../../aggregation/QueryBuilderAggregationState.js';
|
19
|
-
import { getTDSColumnDerivedProperyFromType, } from '../QueryBuilderPostFilterState.js';
|
20
19
|
import { QueryBuilderSimpleProjectionColumnState, } from '../../QueryBuilderProjectionColumnState.js';
|
21
20
|
export const getColumnMultiplicity = (columnState) => {
|
22
21
|
if (columnState instanceof QueryBuilderAggregateColumnState) {
|
23
22
|
return columnState.aggregationState.projectionState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE);
|
24
23
|
}
|
25
24
|
else if (columnState instanceof QueryBuilderSimpleProjectionColumnState) {
|
26
|
-
return columnState.propertyExpressionState.propertyExpression.func
|
25
|
+
return columnState.propertyExpressionState.propertyExpression.func.value
|
27
26
|
.multiplicity;
|
28
27
|
}
|
29
28
|
throw new UnsupportedOperationError(`Can't get multiplicity for column`, columnState);
|
30
29
|
};
|
31
|
-
export const buildPostFilterConditionExpression = (filterConditionState, operator,
|
32
|
-
/**
|
33
|
-
* If provided, this will be used to construct the simple
|
34
|
-
* function expression for the function with the specified
|
35
|
-
* name. If not provided, we will fall back to use the TDS column getter function expression.
|
36
|
-
* This is the case because with TDS, we are provided some filter-like operators, e.g. IS_NULL, IS_NOT_NULL, etc.
|
37
|
-
*/
|
38
|
-
operatorFunctionFullPath) => {
|
39
|
-
// primitives
|
40
|
-
const graph = filterConditionState.postFilterState.projectionState.queryBuilderState
|
41
|
-
.graphManagerState.graph;
|
42
|
-
const multiplicityOne = graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE);
|
43
|
-
const typeString = graph.getPrimitiveType(PRIMITIVE_TYPE.STRING);
|
44
|
-
// property expression
|
45
|
-
const colState = filterConditionState.columnState;
|
46
|
-
const tdsPropertyExpression = new AbstractPropertyExpression('', multiplicityOne);
|
47
|
-
let tdsDerivedPropertyName;
|
48
|
-
const correspondingTdsDerivedProperty = operator.getTdsColumnGetter();
|
49
|
-
if (correspondingTdsDerivedProperty) {
|
50
|
-
tdsDerivedPropertyName = correspondingTdsDerivedProperty;
|
51
|
-
}
|
52
|
-
else {
|
53
|
-
const type = guaranteeNonNullable(colState.getReturnType());
|
54
|
-
tdsDerivedPropertyName = getTDSColumnDerivedProperyFromType(type);
|
55
|
-
}
|
56
|
-
tdsPropertyExpression.func = guaranteeNonNullable(getAllClassDerivedProperties(graph.getClass(CORE_PURE_PATH.TDS_ROW)).find((p) => p.name === tdsDerivedPropertyName));
|
57
|
-
const variableName = new VariableExpression(filterConditionState.postFilterState.lambdaParameterName, multiplicityOne);
|
58
|
-
const colInstanceValue = new PrimitiveInstanceValue(GenericTypeExplicitReference.create(new GenericType(typeString)), multiplicityOne);
|
59
|
-
colInstanceValue.values = [colState.columnName];
|
60
|
-
tdsPropertyExpression.parametersValues = [variableName, colInstanceValue];
|
61
|
-
if (operatorFunctionFullPath) {
|
62
|
-
const expression = new SimpleFunctionExpression(extractElementNameFromPath(operatorFunctionFullPath), multiplicityOne);
|
63
|
-
expression.parametersValues.push(tdsPropertyExpression);
|
64
|
-
if (filterConditionState.value) {
|
65
|
-
expression.parametersValues.push(filterConditionState.value);
|
66
|
-
}
|
67
|
-
return expression;
|
68
|
-
}
|
69
|
-
else {
|
70
|
-
return tdsPropertyExpression;
|
71
|
-
}
|
72
|
-
};
|
73
30
|
//# sourceMappingURL=QueryBuilderPostFilterOperatorHelper.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderPostFilterOperatorHelper.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,
|
1
|
+
{"version":3,"file":"QueryBuilderPostFilterOperatorHelper.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,yBAAyB,GAC1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAE,gCAAgC,EAAE,MAAM,mDAAmD,CAAC;AACrG,OAAO,EAEL,uCAAuC,GACxC,MAAM,4CAA4C,CAAC;AAEpD,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,WAEoC,EACtB,EAAE;IAChB,IAAI,WAAW,YAAY,gCAAgC,EAAE;QAC3D,OAAO,WAAW,CAAC,gBAAgB,CAAC,eAAe,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAAC,sBAAsB,CAClH,yBAAyB,CAAC,GAAG,CAC9B,CAAC;KACH;SAAM,IAAI,WAAW,YAAY,uCAAuC,EAAE;QACzE,OAAO,WAAW,CAAC,uBAAuB,CAAC,kBAAkB,CAAC,IAAI,CAAC,KAAK;aACrE,YAAY,CAAC;KACjB;IACD,MAAM,IAAI,yBAAyB,CACjC,mCAAmC,EACnC,WAAW,CACZ,CAAC;AACJ,CAAC,CAAC"}
|
@@ -13,16 +13,8 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
|
17
|
-
import {
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
} from '@finos/legend-graph';
|
22
|
-
|
23
|
-
export const V1_buildSubTypePropertyExpressionTypeInference = (
|
24
|
-
inferredVariable: SimpleFunctionExpression,
|
25
|
-
): Type | undefined =>
|
26
|
-
inferredVariable.parametersValues.filter(
|
27
|
-
(param) => param instanceof InstanceValue,
|
28
|
-
)[0]?.genericType?.value.rawType;
|
16
|
+
import { type FunctionExpression } from '@finos/legend-graph';
|
17
|
+
import type { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator.js';
|
18
|
+
import { type PostFilterConditionState } from '../QueryBuilderPostFilterState.js';
|
19
|
+
export declare const buildPostFilterConditionExpression: (filterConditionState: PostFilterConditionState, operator: QueryBuilderPostFilterOperator, operatorFunctionFullPath: string | undefined) => FunctionExpression;
|
20
|
+
//# sourceMappingURL=QueryBuilderPostFilterOperatorValueSpecificationBuilder.d.ts.map
|