@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
@@ -23,7 +23,6 @@ import {
|
|
23
23
|
PRIMITIVE_TYPE,
|
24
24
|
type ValueSpecification,
|
25
25
|
type SimpleFunctionExpression,
|
26
|
-
buildPrimitiveInstanceValue,
|
27
26
|
} from '@finos/legend-graph';
|
28
27
|
import {
|
29
28
|
type Hashable,
|
@@ -33,7 +32,7 @@ import {
|
|
33
32
|
import {
|
34
33
|
buildFilterConditionState,
|
35
34
|
buildFilterConditionExpression,
|
36
|
-
} from './
|
35
|
+
} from './QueryBuilderFilterOperatorValueSpecificationBuilder.js';
|
37
36
|
import {
|
38
37
|
buildNotExpression,
|
39
38
|
generateDefaultValueForPrimitiveType,
|
@@ -42,6 +41,7 @@ import {
|
|
42
41
|
} from '../../QueryBuilderValueSpecificationHelper.js';
|
43
42
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../graphManager/QueryBuilderSupportedFunctions.js';
|
44
43
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../graphManager/QueryBuilderHashUtils.js';
|
44
|
+
import { buildPrimitiveInstanceValue } from '../../shared/ValueSpecificationEditorHelper.js';
|
45
45
|
|
46
46
|
export class QueryBuilderFilterOperator_Contain
|
47
47
|
extends QueryBuilderFilterOperator
|
@@ -55,7 +55,7 @@ export class QueryBuilderFilterOperator_Contain
|
|
55
55
|
filterConditionState: FilterConditionState,
|
56
56
|
): boolean {
|
57
57
|
const propertyType =
|
58
|
-
filterConditionState.propertyExpressionState.propertyExpression.func
|
58
|
+
filterConditionState.propertyExpressionState.propertyExpression.func.value
|
59
59
|
.genericType.value.rawType;
|
60
60
|
return PRIMITIVE_TYPE.STRING === propertyType.path;
|
61
61
|
}
|
@@ -73,7 +73,7 @@ export class QueryBuilderFilterOperator_Contain
|
|
73
73
|
filterConditionState: FilterConditionState,
|
74
74
|
): ValueSpecification | undefined {
|
75
75
|
const propertyType =
|
76
|
-
filterConditionState.propertyExpressionState.propertyExpression.func
|
76
|
+
filterConditionState.propertyExpressionState.propertyExpression.func.value
|
77
77
|
.genericType.value.rawType;
|
78
78
|
switch (propertyType.path) {
|
79
79
|
case PRIMITIVE_TYPE.STRING: {
|
@@ -128,9 +128,9 @@ export class QueryBuilderFilterOperator_NotContain extends QueryBuilderFilterOpe
|
|
128
128
|
filterConditionState: FilterConditionState,
|
129
129
|
): ValueSpecification {
|
130
130
|
return buildNotExpression(
|
131
|
+
super.buildFilterConditionExpression(filterConditionState),
|
131
132
|
filterConditionState.filterState.queryBuilderState.graphManagerState
|
132
133
|
.graph,
|
133
|
-
super.buildFilterConditionExpression(filterConditionState),
|
134
134
|
);
|
135
135
|
}
|
136
136
|
|
@@ -23,7 +23,6 @@ import {
|
|
23
23
|
PRIMITIVE_TYPE,
|
24
24
|
type ValueSpecification,
|
25
25
|
type SimpleFunctionExpression,
|
26
|
-
buildPrimitiveInstanceValue,
|
27
26
|
} from '@finos/legend-graph';
|
28
27
|
import {
|
29
28
|
type Hashable,
|
@@ -33,7 +32,7 @@ import {
|
|
33
32
|
import {
|
34
33
|
buildFilterConditionState,
|
35
34
|
buildFilterConditionExpression,
|
36
|
-
} from './
|
35
|
+
} from './QueryBuilderFilterOperatorValueSpecificationBuilder.js';
|
37
36
|
import {
|
38
37
|
buildNotExpression,
|
39
38
|
generateDefaultValueForPrimitiveType,
|
@@ -42,6 +41,7 @@ import {
|
|
42
41
|
} from '../../QueryBuilderValueSpecificationHelper.js';
|
43
42
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../graphManager/QueryBuilderSupportedFunctions.js';
|
44
43
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../graphManager/QueryBuilderHashUtils.js';
|
44
|
+
import { buildPrimitiveInstanceValue } from '../../shared/ValueSpecificationEditorHelper.js';
|
45
45
|
|
46
46
|
export class QueryBuilderFilterOperator_EndWith
|
47
47
|
extends QueryBuilderFilterOperator
|
@@ -55,7 +55,7 @@ export class QueryBuilderFilterOperator_EndWith
|
|
55
55
|
filterConditionState: FilterConditionState,
|
56
56
|
): boolean {
|
57
57
|
const propertyType =
|
58
|
-
filterConditionState.propertyExpressionState.propertyExpression.func
|
58
|
+
filterConditionState.propertyExpressionState.propertyExpression.func.value
|
59
59
|
.genericType.value.rawType;
|
60
60
|
return PRIMITIVE_TYPE.STRING === propertyType.path;
|
61
61
|
}
|
@@ -73,7 +73,7 @@ export class QueryBuilderFilterOperator_EndWith
|
|
73
73
|
filterConditionState: FilterConditionState,
|
74
74
|
): ValueSpecification | undefined {
|
75
75
|
const propertyType =
|
76
|
-
filterConditionState.propertyExpressionState.propertyExpression.func
|
76
|
+
filterConditionState.propertyExpressionState.propertyExpression.func.value
|
77
77
|
.genericType.value.rawType;
|
78
78
|
switch (propertyType.path) {
|
79
79
|
case PRIMITIVE_TYPE.STRING: {
|
@@ -128,9 +128,9 @@ export class QueryBuilderFilterOperator_NotEndWith extends QueryBuilderFilterOpe
|
|
128
128
|
filterConditionState: FilterConditionState,
|
129
129
|
): ValueSpecification {
|
130
130
|
return buildNotExpression(
|
131
|
+
super.buildFilterConditionExpression(filterConditionState),
|
131
132
|
filterConditionState.filterState.queryBuilderState.graphManagerState
|
132
133
|
.graph,
|
133
|
-
super.buildFilterConditionExpression(filterConditionState),
|
134
134
|
);
|
135
135
|
}
|
136
136
|
|
@@ -32,7 +32,6 @@ import {
|
|
32
32
|
Enumeration,
|
33
33
|
PRIMITIVE_TYPE,
|
34
34
|
SUPPORTED_FUNCTIONS,
|
35
|
-
buildPrimitiveInstanceValue,
|
36
35
|
} from '@finos/legend-graph';
|
37
36
|
import {
|
38
37
|
type Hashable,
|
@@ -42,7 +41,7 @@ import {
|
|
42
41
|
import {
|
43
42
|
buildFilterConditionState,
|
44
43
|
buildFilterConditionExpression,
|
45
|
-
} from './
|
44
|
+
} from './QueryBuilderFilterOperatorValueSpecificationBuilder.js';
|
46
45
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../graphManager/QueryBuilderSupportedFunctions.js';
|
47
46
|
import {
|
48
47
|
buildNotExpression,
|
@@ -52,6 +51,8 @@ import {
|
|
52
51
|
unwrapNotExpression,
|
53
52
|
} from '../../QueryBuilderValueSpecificationHelper.js';
|
54
53
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../graphManager/QueryBuilderHashUtils.js';
|
54
|
+
import { buildPrimitiveInstanceValue } from '../../shared/ValueSpecificationEditorHelper.js';
|
55
|
+
import { instanceValue_setValues } from '../../shared/ValueSpecificationModifierHelper.js';
|
55
56
|
|
56
57
|
export class QueryBuilderFilterOperator_Equal
|
57
58
|
extends QueryBuilderFilterOperator
|
@@ -65,7 +66,7 @@ export class QueryBuilderFilterOperator_Equal
|
|
65
66
|
filterConditionState: FilterConditionState,
|
66
67
|
): boolean {
|
67
68
|
const propertyType =
|
68
|
-
filterConditionState.propertyExpressionState.propertyExpression.func
|
69
|
+
filterConditionState.propertyExpressionState.propertyExpression.func.value
|
69
70
|
.genericType.value.rawType;
|
70
71
|
return (
|
71
72
|
(
|
@@ -93,7 +94,7 @@ export class QueryBuilderFilterOperator_Equal
|
|
93
94
|
filterConditionState.value
|
94
95
|
? getNonCollectionValueSpecificationType(filterConditionState.value)
|
95
96
|
: undefined,
|
96
|
-
filterConditionState.propertyExpressionState.propertyExpression.func
|
97
|
+
filterConditionState.propertyExpressionState.propertyExpression.func.value
|
97
98
|
.genericType.value.rawType,
|
98
99
|
);
|
99
100
|
}
|
@@ -102,7 +103,7 @@ export class QueryBuilderFilterOperator_Equal
|
|
102
103
|
filterConditionState: FilterConditionState,
|
103
104
|
): ValueSpecification | undefined {
|
104
105
|
const propertyType =
|
105
|
-
filterConditionState.propertyExpressionState.propertyExpression.func
|
106
|
+
filterConditionState.propertyExpressionState.propertyExpression.func.value
|
106
107
|
.genericType.value.rawType;
|
107
108
|
switch (propertyType.path) {
|
108
109
|
case PRIMITIVE_TYPE.STRING:
|
@@ -141,9 +142,9 @@ export class QueryBuilderFilterOperator_Equal
|
|
141
142
|
),
|
142
143
|
multiplicityOne,
|
143
144
|
);
|
144
|
-
enumValueInstanceValue
|
145
|
+
instanceValue_setValues(enumValueInstanceValue, [
|
145
146
|
EnumValueExplicitReference.create(propertyType.values[0] as Enum),
|
146
|
-
];
|
147
|
+
]);
|
147
148
|
return enumValueInstanceValue;
|
148
149
|
}
|
149
150
|
throw new UnsupportedOperationError(
|
@@ -165,7 +166,7 @@ export class QueryBuilderFilterOperator_Equal
|
|
165
166
|
): ValueSpecification {
|
166
167
|
return buildFilterConditionExpression(
|
167
168
|
filterConditionState,
|
168
|
-
filterConditionState.propertyExpressionState.propertyExpression.func
|
169
|
+
filterConditionState.propertyExpressionState.propertyExpression.func.value
|
169
170
|
.genericType.value.rawType.path === PRIMITIVE_TYPE.DATETIME &&
|
170
171
|
filterConditionState.value?.genericType?.value.rawType.path !==
|
171
172
|
PRIMITIVE_TYPE.DATETIME
|
@@ -181,7 +182,7 @@ export class QueryBuilderFilterOperator_Equal
|
|
181
182
|
return buildFilterConditionState(
|
182
183
|
filterState,
|
183
184
|
expression,
|
184
|
-
(expression.parametersValues[0] as AbstractPropertyExpression).func
|
185
|
+
(expression.parametersValues[0] as AbstractPropertyExpression).func.value
|
185
186
|
.genericType.value.rawType.path === PRIMITIVE_TYPE.DATETIME &&
|
186
187
|
expression.parametersValues[1]?.genericType?.value.rawType.path !==
|
187
188
|
PRIMITIVE_TYPE.DATETIME
|
@@ -205,9 +206,9 @@ export class QueryBuilderFilterOperator_NotEqual extends QueryBuilderFilterOpera
|
|
205
206
|
filterConditionState: FilterConditionState,
|
206
207
|
): ValueSpecification {
|
207
208
|
return buildNotExpression(
|
209
|
+
super.buildFilterConditionExpression(filterConditionState),
|
208
210
|
filterConditionState.filterState.queryBuilderState.graphManagerState
|
209
211
|
.graph,
|
210
|
-
super.buildFilterConditionExpression(filterConditionState),
|
211
212
|
);
|
212
213
|
}
|
213
214
|
|
@@ -25,7 +25,6 @@ import {
|
|
25
25
|
type AbstractPropertyExpression,
|
26
26
|
PRIMITIVE_TYPE,
|
27
27
|
SUPPORTED_FUNCTIONS,
|
28
|
-
buildPrimitiveInstanceValue,
|
29
28
|
} from '@finos/legend-graph';
|
30
29
|
import {
|
31
30
|
type Hashable,
|
@@ -35,7 +34,7 @@ import {
|
|
35
34
|
import {
|
36
35
|
buildFilterConditionState,
|
37
36
|
buildFilterConditionExpression,
|
38
|
-
} from './
|
37
|
+
} from './QueryBuilderFilterOperatorValueSpecificationBuilder.js';
|
39
38
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../graphManager/QueryBuilderSupportedFunctions.js';
|
40
39
|
import {
|
41
40
|
generateDefaultValueForPrimitiveType,
|
@@ -43,6 +42,7 @@ import {
|
|
43
42
|
isTypeCompatibleForAssignment,
|
44
43
|
} from '../../QueryBuilderValueSpecificationHelper.js';
|
45
44
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../graphManager/QueryBuilderHashUtils.js';
|
45
|
+
import { buildPrimitiveInstanceValue } from '../../shared/ValueSpecificationEditorHelper.js';
|
46
46
|
|
47
47
|
export class QueryBuilderFilterOperator_GreaterThan
|
48
48
|
extends QueryBuilderFilterOperator
|
@@ -56,7 +56,7 @@ export class QueryBuilderFilterOperator_GreaterThan
|
|
56
56
|
filterConditionState: FilterConditionState,
|
57
57
|
): boolean {
|
58
58
|
const propertyType =
|
59
|
-
filterConditionState.propertyExpressionState.propertyExpression.func
|
59
|
+
filterConditionState.propertyExpressionState.propertyExpression.func.value
|
60
60
|
.genericType.value.rawType;
|
61
61
|
return (
|
62
62
|
[
|
@@ -78,7 +78,7 @@ export class QueryBuilderFilterOperator_GreaterThan
|
|
78
78
|
filterConditionState.value
|
79
79
|
? getNonCollectionValueSpecificationType(filterConditionState.value)
|
80
80
|
: undefined,
|
81
|
-
filterConditionState.propertyExpressionState.propertyExpression.func
|
81
|
+
filterConditionState.propertyExpressionState.propertyExpression.func.value
|
82
82
|
.genericType.value.rawType,
|
83
83
|
);
|
84
84
|
}
|
@@ -87,7 +87,7 @@ export class QueryBuilderFilterOperator_GreaterThan
|
|
87
87
|
filterConditionState: FilterConditionState,
|
88
88
|
): ValueSpecification | undefined {
|
89
89
|
const propertyType =
|
90
|
-
filterConditionState.propertyExpressionState.propertyExpression.func
|
90
|
+
filterConditionState.propertyExpressionState.propertyExpression.func.value
|
91
91
|
.genericType.value.rawType;
|
92
92
|
switch (propertyType.path) {
|
93
93
|
case PRIMITIVE_TYPE.NUMBER:
|
@@ -125,7 +125,7 @@ export class QueryBuilderFilterOperator_GreaterThan
|
|
125
125
|
): ValueSpecification {
|
126
126
|
return buildFilterConditionExpression(
|
127
127
|
filterConditionState,
|
128
|
-
filterConditionState.propertyExpressionState.propertyExpression.func
|
128
|
+
filterConditionState.propertyExpressionState.propertyExpression.func.value
|
129
129
|
.genericType.value.rawType.path === PRIMITIVE_TYPE.DATETIME &&
|
130
130
|
filterConditionState.value?.genericType?.value.rawType.path !==
|
131
131
|
PRIMITIVE_TYPE.DATETIME
|
@@ -141,7 +141,7 @@ export class QueryBuilderFilterOperator_GreaterThan
|
|
141
141
|
return buildFilterConditionState(
|
142
142
|
filterState,
|
143
143
|
expression,
|
144
|
-
(expression.parametersValues[0] as AbstractPropertyExpression).func
|
144
|
+
(expression.parametersValues[0] as AbstractPropertyExpression).func.value
|
145
145
|
.genericType.value.rawType.path === PRIMITIVE_TYPE.DATETIME &&
|
146
146
|
expression.parametersValues[1]?.genericType?.value.rawType.path !==
|
147
147
|
PRIMITIVE_TYPE.DATETIME
|
@@ -25,7 +25,6 @@ import {
|
|
25
25
|
type SimpleFunctionExpression,
|
26
26
|
type AbstractPropertyExpression,
|
27
27
|
SUPPORTED_FUNCTIONS,
|
28
|
-
buildPrimitiveInstanceValue,
|
29
28
|
} from '@finos/legend-graph';
|
30
29
|
import {
|
31
30
|
type Hashable,
|
@@ -35,7 +34,7 @@ import {
|
|
35
34
|
import {
|
36
35
|
buildFilterConditionState,
|
37
36
|
buildFilterConditionExpression,
|
38
|
-
} from './
|
37
|
+
} from './QueryBuilderFilterOperatorValueSpecificationBuilder.js';
|
39
38
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../graphManager/QueryBuilderSupportedFunctions.js';
|
40
39
|
import {
|
41
40
|
generateDefaultValueForPrimitiveType,
|
@@ -43,6 +42,7 @@ import {
|
|
43
42
|
isTypeCompatibleForAssignment,
|
44
43
|
} from '../../QueryBuilderValueSpecificationHelper.js';
|
45
44
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../graphManager/QueryBuilderHashUtils.js';
|
45
|
+
import { buildPrimitiveInstanceValue } from '../../shared/ValueSpecificationEditorHelper.js';
|
46
46
|
|
47
47
|
export class QueryBuilderFilterOperator_GreaterThanEqual
|
48
48
|
extends QueryBuilderFilterOperator
|
@@ -56,7 +56,7 @@ export class QueryBuilderFilterOperator_GreaterThanEqual
|
|
56
56
|
filterConditionState: FilterConditionState,
|
57
57
|
): boolean {
|
58
58
|
const propertyType =
|
59
|
-
filterConditionState.propertyExpressionState.propertyExpression.func
|
59
|
+
filterConditionState.propertyExpressionState.propertyExpression.func.value
|
60
60
|
.genericType.value.rawType;
|
61
61
|
return (
|
62
62
|
[
|
@@ -78,7 +78,7 @@ export class QueryBuilderFilterOperator_GreaterThanEqual
|
|
78
78
|
filterConditionState.value
|
79
79
|
? getNonCollectionValueSpecificationType(filterConditionState.value)
|
80
80
|
: undefined,
|
81
|
-
filterConditionState.propertyExpressionState.propertyExpression.func
|
81
|
+
filterConditionState.propertyExpressionState.propertyExpression.func.value
|
82
82
|
.genericType.value.rawType,
|
83
83
|
);
|
84
84
|
}
|
@@ -87,7 +87,7 @@ export class QueryBuilderFilterOperator_GreaterThanEqual
|
|
87
87
|
filterConditionState: FilterConditionState,
|
88
88
|
): ValueSpecification | undefined {
|
89
89
|
const propertyType =
|
90
|
-
filterConditionState.propertyExpressionState.propertyExpression.func
|
90
|
+
filterConditionState.propertyExpressionState.propertyExpression.func.value
|
91
91
|
.genericType.value.rawType;
|
92
92
|
switch (propertyType.path) {
|
93
93
|
case PRIMITIVE_TYPE.NUMBER:
|
@@ -125,7 +125,7 @@ export class QueryBuilderFilterOperator_GreaterThanEqual
|
|
125
125
|
): ValueSpecification {
|
126
126
|
return buildFilterConditionExpression(
|
127
127
|
filterConditionState,
|
128
|
-
filterConditionState.propertyExpressionState.propertyExpression.func
|
128
|
+
filterConditionState.propertyExpressionState.propertyExpression.func.value
|
129
129
|
.genericType.value.rawType.path === PRIMITIVE_TYPE.DATETIME &&
|
130
130
|
filterConditionState.value?.genericType?.value.rawType.path !==
|
131
131
|
PRIMITIVE_TYPE.DATETIME
|
@@ -141,7 +141,7 @@ export class QueryBuilderFilterOperator_GreaterThanEqual
|
|
141
141
|
return buildFilterConditionState(
|
142
142
|
filterState,
|
143
143
|
expression,
|
144
|
-
(expression.parametersValues[0] as AbstractPropertyExpression).func
|
144
|
+
(expression.parametersValues[0] as AbstractPropertyExpression).func.value
|
145
145
|
.genericType.value.rawType.path === PRIMITIVE_TYPE.DATETIME &&
|
146
146
|
expression.parametersValues[1]?.genericType?.value.rawType.path !==
|
147
147
|
PRIMITIVE_TYPE.DATETIME
|
@@ -33,7 +33,7 @@ import {
|
|
33
33
|
import {
|
34
34
|
buildFilterConditionState,
|
35
35
|
buildFilterConditionExpression,
|
36
|
-
} from './
|
36
|
+
} from './QueryBuilderFilterOperatorValueSpecificationBuilder.js';
|
37
37
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../graphManager/QueryBuilderSupportedFunctions.js';
|
38
38
|
import {
|
39
39
|
buildNotExpression,
|
@@ -55,7 +55,7 @@ export class QueryBuilderFilterOperator_In
|
|
55
55
|
filterConditionState: FilterConditionState,
|
56
56
|
): boolean {
|
57
57
|
const propertyType =
|
58
|
-
filterConditionState.propertyExpressionState.propertyExpression.func
|
58
|
+
filterConditionState.propertyExpressionState.propertyExpression.func.value
|
59
59
|
.genericType.value.rawType;
|
60
60
|
return (
|
61
61
|
(
|
@@ -76,7 +76,7 @@ export class QueryBuilderFilterOperator_In
|
|
76
76
|
filterConditionState: FilterConditionState,
|
77
77
|
): boolean {
|
78
78
|
const propertyType =
|
79
|
-
filterConditionState.propertyExpressionState.propertyExpression.func
|
79
|
+
filterConditionState.propertyExpressionState.propertyExpression.func.value
|
80
80
|
.genericType.value.rawType;
|
81
81
|
const valueSpec = filterConditionState.value;
|
82
82
|
if (valueSpec instanceof CollectionInstanceValue) {
|
@@ -129,7 +129,7 @@ export class QueryBuilderFilterOperator_In
|
|
129
129
|
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
130
130
|
);
|
131
131
|
const propertyType =
|
132
|
-
filterConditionState.propertyExpressionState.propertyExpression.func
|
132
|
+
filterConditionState.propertyExpressionState.propertyExpression.func.value
|
133
133
|
.genericType.value.rawType;
|
134
134
|
return new CollectionInstanceValue(
|
135
135
|
multiplicityOne,
|
@@ -172,9 +172,9 @@ export class QueryBuilderFilterOperator_NotIn extends QueryBuilderFilterOperator
|
|
172
172
|
filterConditionState: FilterConditionState,
|
173
173
|
): ValueSpecification {
|
174
174
|
return buildNotExpression(
|
175
|
+
super.buildFilterConditionExpression(filterConditionState),
|
175
176
|
filterConditionState.filterState.queryBuilderState.graphManagerState
|
176
177
|
.graph,
|
177
|
-
super.buildFilterConditionExpression(filterConditionState),
|
178
178
|
);
|
179
179
|
}
|
180
180
|
|
@@ -28,7 +28,7 @@ import {
|
|
28
28
|
import {
|
29
29
|
buildFilterConditionState,
|
30
30
|
buildFilterConditionExpression,
|
31
|
-
} from './
|
31
|
+
} from './QueryBuilderFilterOperatorValueSpecificationBuilder.js';
|
32
32
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../graphManager/QueryBuilderSupportedFunctions.js';
|
33
33
|
import {
|
34
34
|
buildNotExpression,
|
@@ -50,7 +50,7 @@ export class QueryBuilderFilterOperator_IsEmpty
|
|
50
50
|
filterConditionState: FilterConditionState,
|
51
51
|
): boolean {
|
52
52
|
const propertyType =
|
53
|
-
filterConditionState.propertyExpressionState.propertyExpression.func
|
53
|
+
filterConditionState.propertyExpressionState.propertyExpression.func.value
|
54
54
|
.genericType.value.rawType;
|
55
55
|
// First check if property is optional
|
56
56
|
if (
|
@@ -116,9 +116,9 @@ export class QueryBuilderFilterOperator_IsNotEmpty extends QueryBuilderFilterOpe
|
|
116
116
|
filterConditionState: FilterConditionState,
|
117
117
|
): ValueSpecification {
|
118
118
|
return buildNotExpression(
|
119
|
+
super.buildFilterConditionExpression(filterConditionState),
|
119
120
|
filterConditionState.filterState.queryBuilderState.graphManagerState
|
120
121
|
.graph,
|
121
|
-
super.buildFilterConditionExpression(filterConditionState),
|
122
122
|
);
|
123
123
|
}
|
124
124
|
|
@@ -25,7 +25,6 @@ import {
|
|
25
25
|
type SimpleFunctionExpression,
|
26
26
|
type AbstractPropertyExpression,
|
27
27
|
SUPPORTED_FUNCTIONS,
|
28
|
-
buildPrimitiveInstanceValue,
|
29
28
|
} from '@finos/legend-graph';
|
30
29
|
import {
|
31
30
|
type Hashable,
|
@@ -35,7 +34,7 @@ import {
|
|
35
34
|
import {
|
36
35
|
buildFilterConditionState,
|
37
36
|
buildFilterConditionExpression,
|
38
|
-
} from './
|
37
|
+
} from './QueryBuilderFilterOperatorValueSpecificationBuilder.js';
|
39
38
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../graphManager/QueryBuilderSupportedFunctions.js';
|
40
39
|
import {
|
41
40
|
generateDefaultValueForPrimitiveType,
|
@@ -43,6 +42,7 @@ import {
|
|
43
42
|
isTypeCompatibleForAssignment,
|
44
43
|
} from '../../QueryBuilderValueSpecificationHelper.js';
|
45
44
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../graphManager/QueryBuilderHashUtils.js';
|
45
|
+
import { buildPrimitiveInstanceValue } from '../../shared/ValueSpecificationEditorHelper.js';
|
46
46
|
|
47
47
|
export class QueryBuilderFilterOperator_LessThan
|
48
48
|
extends QueryBuilderFilterOperator
|
@@ -56,7 +56,7 @@ export class QueryBuilderFilterOperator_LessThan
|
|
56
56
|
filterConditionState: FilterConditionState,
|
57
57
|
): boolean {
|
58
58
|
const propertyType =
|
59
|
-
filterConditionState.propertyExpressionState.propertyExpression.func
|
59
|
+
filterConditionState.propertyExpressionState.propertyExpression.func.value
|
60
60
|
.genericType.value.rawType;
|
61
61
|
return (
|
62
62
|
[
|
@@ -78,7 +78,7 @@ export class QueryBuilderFilterOperator_LessThan
|
|
78
78
|
filterConditionState.value
|
79
79
|
? getNonCollectionValueSpecificationType(filterConditionState.value)
|
80
80
|
: undefined,
|
81
|
-
filterConditionState.propertyExpressionState.propertyExpression.func
|
81
|
+
filterConditionState.propertyExpressionState.propertyExpression.func.value
|
82
82
|
.genericType.value.rawType,
|
83
83
|
);
|
84
84
|
}
|
@@ -87,7 +87,7 @@ export class QueryBuilderFilterOperator_LessThan
|
|
87
87
|
filterConditionState: FilterConditionState,
|
88
88
|
): ValueSpecification | undefined {
|
89
89
|
const propertyType =
|
90
|
-
filterConditionState.propertyExpressionState.propertyExpression.func
|
90
|
+
filterConditionState.propertyExpressionState.propertyExpression.func.value
|
91
91
|
.genericType.value.rawType;
|
92
92
|
switch (propertyType.path) {
|
93
93
|
case PRIMITIVE_TYPE.NUMBER:
|
@@ -125,7 +125,7 @@ export class QueryBuilderFilterOperator_LessThan
|
|
125
125
|
): ValueSpecification {
|
126
126
|
return buildFilterConditionExpression(
|
127
127
|
filterConditionState,
|
128
|
-
filterConditionState.propertyExpressionState.propertyExpression.func
|
128
|
+
filterConditionState.propertyExpressionState.propertyExpression.func.value
|
129
129
|
.genericType.value.rawType.path === PRIMITIVE_TYPE.DATETIME &&
|
130
130
|
filterConditionState.value?.genericType?.value.rawType.path !==
|
131
131
|
PRIMITIVE_TYPE.DATETIME
|
@@ -141,7 +141,7 @@ export class QueryBuilderFilterOperator_LessThan
|
|
141
141
|
return buildFilterConditionState(
|
142
142
|
filterState,
|
143
143
|
expression,
|
144
|
-
(expression.parametersValues[0] as AbstractPropertyExpression).func
|
144
|
+
(expression.parametersValues[0] as AbstractPropertyExpression).func.value
|
145
145
|
.genericType.value.rawType.path === PRIMITIVE_TYPE.DATETIME &&
|
146
146
|
expression.parametersValues[1]?.genericType?.value.rawType.path !==
|
147
147
|
PRIMITIVE_TYPE.DATETIME
|
@@ -25,7 +25,6 @@ import {
|
|
25
25
|
type SimpleFunctionExpression,
|
26
26
|
type AbstractPropertyExpression,
|
27
27
|
SUPPORTED_FUNCTIONS,
|
28
|
-
buildPrimitiveInstanceValue,
|
29
28
|
} from '@finos/legend-graph';
|
30
29
|
import {
|
31
30
|
type Hashable,
|
@@ -35,7 +34,7 @@ import {
|
|
35
34
|
import {
|
36
35
|
buildFilterConditionState,
|
37
36
|
buildFilterConditionExpression,
|
38
|
-
} from './
|
37
|
+
} from './QueryBuilderFilterOperatorValueSpecificationBuilder.js';
|
39
38
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../graphManager/QueryBuilderSupportedFunctions.js';
|
40
39
|
import {
|
41
40
|
generateDefaultValueForPrimitiveType,
|
@@ -43,6 +42,7 @@ import {
|
|
43
42
|
isTypeCompatibleForAssignment,
|
44
43
|
} from '../../QueryBuilderValueSpecificationHelper.js';
|
45
44
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../graphManager/QueryBuilderHashUtils.js';
|
45
|
+
import { buildPrimitiveInstanceValue } from '../../shared/ValueSpecificationEditorHelper.js';
|
46
46
|
|
47
47
|
export class QueryBuilderFilterOperator_LessThanEqual
|
48
48
|
extends QueryBuilderFilterOperator
|
@@ -56,7 +56,7 @@ export class QueryBuilderFilterOperator_LessThanEqual
|
|
56
56
|
filterConditionState: FilterConditionState,
|
57
57
|
): boolean {
|
58
58
|
const propertyType =
|
59
|
-
filterConditionState.propertyExpressionState.propertyExpression.func
|
59
|
+
filterConditionState.propertyExpressionState.propertyExpression.func.value
|
60
60
|
.genericType.value.rawType;
|
61
61
|
return (
|
62
62
|
[
|
@@ -78,7 +78,7 @@ export class QueryBuilderFilterOperator_LessThanEqual
|
|
78
78
|
filterConditionState.value
|
79
79
|
? getNonCollectionValueSpecificationType(filterConditionState.value)
|
80
80
|
: undefined,
|
81
|
-
filterConditionState.propertyExpressionState.propertyExpression.func
|
81
|
+
filterConditionState.propertyExpressionState.propertyExpression.func.value
|
82
82
|
.genericType.value.rawType,
|
83
83
|
);
|
84
84
|
}
|
@@ -87,7 +87,7 @@ export class QueryBuilderFilterOperator_LessThanEqual
|
|
87
87
|
filterConditionState: FilterConditionState,
|
88
88
|
): ValueSpecification | undefined {
|
89
89
|
const propertyType =
|
90
|
-
filterConditionState.propertyExpressionState.propertyExpression.func
|
90
|
+
filterConditionState.propertyExpressionState.propertyExpression.func.value
|
91
91
|
.genericType.value.rawType;
|
92
92
|
switch (propertyType.path) {
|
93
93
|
case PRIMITIVE_TYPE.NUMBER:
|
@@ -125,7 +125,7 @@ export class QueryBuilderFilterOperator_LessThanEqual
|
|
125
125
|
): ValueSpecification {
|
126
126
|
return buildFilterConditionExpression(
|
127
127
|
filterConditionState,
|
128
|
-
filterConditionState.propertyExpressionState.propertyExpression.func
|
128
|
+
filterConditionState.propertyExpressionState.propertyExpression.func.value
|
129
129
|
.genericType.value.rawType.path === PRIMITIVE_TYPE.DATETIME &&
|
130
130
|
filterConditionState.value?.genericType?.value.rawType.path !==
|
131
131
|
PRIMITIVE_TYPE.DATETIME
|
@@ -141,7 +141,7 @@ export class QueryBuilderFilterOperator_LessThanEqual
|
|
141
141
|
return buildFilterConditionState(
|
142
142
|
filterState,
|
143
143
|
expression,
|
144
|
-
(expression.parametersValues[0] as AbstractPropertyExpression).func
|
144
|
+
(expression.parametersValues[0] as AbstractPropertyExpression).func.value
|
145
145
|
.genericType.value.rawType.path === PRIMITIVE_TYPE.DATETIME &&
|
146
146
|
expression.parametersValues[1]?.genericType?.value.rawType.path !==
|
147
147
|
PRIMITIVE_TYPE.DATETIME
|
@@ -23,7 +23,6 @@ import {
|
|
23
23
|
PRIMITIVE_TYPE,
|
24
24
|
type ValueSpecification,
|
25
25
|
type SimpleFunctionExpression,
|
26
|
-
buildPrimitiveInstanceValue,
|
27
26
|
} from '@finos/legend-graph';
|
28
27
|
import {
|
29
28
|
type Hashable,
|
@@ -33,7 +32,7 @@ import {
|
|
33
32
|
import {
|
34
33
|
buildFilterConditionState,
|
35
34
|
buildFilterConditionExpression,
|
36
|
-
} from './
|
35
|
+
} from './QueryBuilderFilterOperatorValueSpecificationBuilder.js';
|
37
36
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../graphManager/QueryBuilderSupportedFunctions.js';
|
38
37
|
import {
|
39
38
|
buildNotExpression,
|
@@ -42,6 +41,7 @@ import {
|
|
42
41
|
unwrapNotExpression,
|
43
42
|
} from '../../QueryBuilderValueSpecificationHelper.js';
|
44
43
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../graphManager/QueryBuilderHashUtils.js';
|
44
|
+
import { buildPrimitiveInstanceValue } from '../../shared/ValueSpecificationEditorHelper.js';
|
45
45
|
|
46
46
|
export class QueryBuilderFilterOperator_StartWith
|
47
47
|
extends QueryBuilderFilterOperator
|
@@ -55,7 +55,7 @@ export class QueryBuilderFilterOperator_StartWith
|
|
55
55
|
filterConditionState: FilterConditionState,
|
56
56
|
): boolean {
|
57
57
|
const propertyType =
|
58
|
-
filterConditionState.propertyExpressionState.propertyExpression.func
|
58
|
+
filterConditionState.propertyExpressionState.propertyExpression.func.value
|
59
59
|
.genericType.value.rawType;
|
60
60
|
return PRIMITIVE_TYPE.STRING === propertyType.path;
|
61
61
|
}
|
@@ -73,7 +73,7 @@ export class QueryBuilderFilterOperator_StartWith
|
|
73
73
|
filterConditionState: FilterConditionState,
|
74
74
|
): ValueSpecification | undefined {
|
75
75
|
const propertyType =
|
76
|
-
filterConditionState.propertyExpressionState.propertyExpression.func
|
76
|
+
filterConditionState.propertyExpressionState.propertyExpression.func.value
|
77
77
|
.genericType.value.rawType;
|
78
78
|
switch (propertyType.path) {
|
79
79
|
case PRIMITIVE_TYPE.STRING: {
|
@@ -128,9 +128,9 @@ export class QueryBuilderFilterOperator_NotStartWith extends QueryBuilderFilterO
|
|
128
128
|
filterConditionState: FilterConditionState,
|
129
129
|
): ValueSpecification {
|
130
130
|
return buildNotExpression(
|
131
|
+
super.buildFilterConditionExpression(filterConditionState),
|
131
132
|
filterConditionState.filterState.queryBuilderState.graphManagerState
|
132
133
|
.graph,
|
133
|
-
super.buildFilterConditionExpression(filterConditionState),
|
134
134
|
);
|
135
135
|
}
|
136
136
|
|