@finos/legend-query-builder 0.1.1 → 0.2.0
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 +10 -7
- 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} +7 -6
- 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 +7 -6
- 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 +13 -13
- 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 +9 -9
- 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} +12 -5
- 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 +7 -6
- 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 +16 -19
- 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
@@ -0,0 +1,157 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
import { GenericType, GenericTypeExplicitReference, observe_ValueSpecification, observe_VariableExpression, PrimitiveInstanceValue, PRIMITIVE_TYPE, VariableExpression, LambdaFunction, TYPICAL_MULTIPLICITY_TYPE, CORE_PURE_PATH, FunctionType, SimpleFunctionExpression, SUPPORTED_FUNCTIONS, extractElementNameFromPath, PackageableElementExplicitReference, } from '@finos/legend-graph';
|
17
|
+
import { addUniqueEntry, deleteEntry, hashArray, IllegalStateError, isNonNullable, uuid, } from '@finos/legend-shared';
|
18
|
+
import { makeObservable, observable, action, computed } from 'mobx';
|
19
|
+
import { generateVariableExpressionMockValue } from './ValueSpecificationEditorHelper.js';
|
20
|
+
import { valueSpecification_setGenericType, valueSpecification_setMultiplicity, } from './ValueSpecificationModifierHelper.js';
|
21
|
+
export var PARAMETER_SUBMIT_ACTION;
|
22
|
+
(function (PARAMETER_SUBMIT_ACTION) {
|
23
|
+
PARAMETER_SUBMIT_ACTION["EXECUTE"] = "EXECUTE";
|
24
|
+
PARAMETER_SUBMIT_ACTION["EXPORT"] = "EXPORT";
|
25
|
+
})(PARAMETER_SUBMIT_ACTION = PARAMETER_SUBMIT_ACTION || (PARAMETER_SUBMIT_ACTION = {}));
|
26
|
+
var LAMABA_PARAMETER_HASH_STRUCTURE;
|
27
|
+
(function (LAMABA_PARAMETER_HASH_STRUCTURE) {
|
28
|
+
LAMABA_PARAMETER_HASH_STRUCTURE["LAMBDA_PARAMETER_STATE"] = "LAMBDA_PARAMETER_STATE";
|
29
|
+
LAMABA_PARAMETER_HASH_STRUCTURE["LAMBDA_PARAMETERS_STATE"] = "LAMBDA_PARAMETERS_STATE";
|
30
|
+
})(LAMABA_PARAMETER_HASH_STRUCTURE || (LAMABA_PARAMETER_HASH_STRUCTURE = {}));
|
31
|
+
export const buildParametersLetLambdaFunc = (graph, lambdaParametersStates) => {
|
32
|
+
const multiplicityOne = graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE);
|
33
|
+
const typeString = graph.getPrimitiveType(PRIMITIVE_TYPE.STRING);
|
34
|
+
const typeAny = graph.getType(CORE_PURE_PATH.ANY);
|
35
|
+
const letlambdaFunction = new LambdaFunction(new FunctionType(PackageableElementExplicitReference.create(typeAny), multiplicityOne));
|
36
|
+
letlambdaFunction.expressionSequence = lambdaParametersStates
|
37
|
+
.map((queryParamState) => {
|
38
|
+
if (queryParamState.value) {
|
39
|
+
const letFunc = new SimpleFunctionExpression(extractElementNameFromPath(SUPPORTED_FUNCTIONS.LET), multiplicityOne);
|
40
|
+
const letVar = new PrimitiveInstanceValue(GenericTypeExplicitReference.create(new GenericType(typeString)), multiplicityOne);
|
41
|
+
letVar.values = [queryParamState.variableName];
|
42
|
+
letFunc.parametersValues.push(letVar);
|
43
|
+
letFunc.parametersValues.push(queryParamState.value);
|
44
|
+
return letFunc;
|
45
|
+
}
|
46
|
+
return undefined;
|
47
|
+
})
|
48
|
+
.filter(isNonNullable);
|
49
|
+
return letlambdaFunction;
|
50
|
+
};
|
51
|
+
export class LambdaParameterState {
|
52
|
+
uuid = uuid();
|
53
|
+
parameter;
|
54
|
+
graph;
|
55
|
+
observableContext;
|
56
|
+
value;
|
57
|
+
constructor(variableExpression, observableContext, graph) {
|
58
|
+
makeObservable(this, {
|
59
|
+
value: observable,
|
60
|
+
setValue: action,
|
61
|
+
mockParameterValue: action,
|
62
|
+
hashCode: computed,
|
63
|
+
});
|
64
|
+
this.observableContext = observableContext;
|
65
|
+
this.parameter = observe_VariableExpression(variableExpression);
|
66
|
+
this.graph = graph;
|
67
|
+
}
|
68
|
+
get hashCode() {
|
69
|
+
return hashArray([
|
70
|
+
LAMABA_PARAMETER_HASH_STRUCTURE.LAMBDA_PARAMETER_STATE,
|
71
|
+
this.parameter,
|
72
|
+
]);
|
73
|
+
}
|
74
|
+
mockParameterValue() {
|
75
|
+
this.setValue(generateVariableExpressionMockValue(this.parameter, this.graph));
|
76
|
+
}
|
77
|
+
setValue(value) {
|
78
|
+
if (value instanceof VariableExpression) {
|
79
|
+
throw new IllegalStateError('Can not assign a parameter to another parameter');
|
80
|
+
}
|
81
|
+
this.value = value
|
82
|
+
? observe_ValueSpecification(value, this.observableContext)
|
83
|
+
: undefined;
|
84
|
+
}
|
85
|
+
changeVariableType(type) {
|
86
|
+
if (type !== this.variableType) {
|
87
|
+
valueSpecification_setGenericType(this.parameter, GenericTypeExplicitReference.create(new GenericType(type)));
|
88
|
+
this.mockParameterValue();
|
89
|
+
}
|
90
|
+
}
|
91
|
+
changeMultiplicity(variableExpression, lowerBound, uppderBound) {
|
92
|
+
const current = this.parameter.multiplicity;
|
93
|
+
if (current.lowerBound !== lowerBound ||
|
94
|
+
current.upperBound !== uppderBound) {
|
95
|
+
valueSpecification_setMultiplicity(variableExpression, this.graph.getMultiplicity(lowerBound, uppderBound));
|
96
|
+
this.mockParameterValue();
|
97
|
+
}
|
98
|
+
}
|
99
|
+
get variableName() {
|
100
|
+
return this.parameter.name;
|
101
|
+
}
|
102
|
+
get variableType() {
|
103
|
+
return this.parameter.genericType?.value.rawType;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
export class ParameterInstanceValuesEditorState {
|
107
|
+
showModal = false;
|
108
|
+
submitAction;
|
109
|
+
constructor() {
|
110
|
+
makeObservable(this, {
|
111
|
+
showModal: observable,
|
112
|
+
submitAction: observable,
|
113
|
+
setShowModal: action,
|
114
|
+
open: action,
|
115
|
+
setSubmitAction: action,
|
116
|
+
});
|
117
|
+
}
|
118
|
+
setShowModal(val) {
|
119
|
+
this.showModal = val;
|
120
|
+
}
|
121
|
+
setSubmitAction(val) {
|
122
|
+
this.submitAction = val;
|
123
|
+
}
|
124
|
+
open(handler, label) {
|
125
|
+
this.setSubmitAction({ handler, label });
|
126
|
+
this.setShowModal(true);
|
127
|
+
}
|
128
|
+
close() {
|
129
|
+
this.setSubmitAction(undefined);
|
130
|
+
this.setShowModal(false);
|
131
|
+
}
|
132
|
+
}
|
133
|
+
export class LambdaParametersState {
|
134
|
+
parameterStates = [];
|
135
|
+
parameterValuesEditorState = new ParameterInstanceValuesEditorState();
|
136
|
+
constructor() {
|
137
|
+
makeObservable(this, {
|
138
|
+
hashCode: computed,
|
139
|
+
});
|
140
|
+
}
|
141
|
+
get hashCode() {
|
142
|
+
return hashArray([
|
143
|
+
LAMABA_PARAMETER_HASH_STRUCTURE.LAMBDA_PARAMETERS_STATE,
|
144
|
+
hashArray(this.parameterStates),
|
145
|
+
]);
|
146
|
+
}
|
147
|
+
addParameter(val) {
|
148
|
+
addUniqueEntry(this.parameterStates, val);
|
149
|
+
}
|
150
|
+
removeParameter(val) {
|
151
|
+
deleteEntry(this.parameterStates, val);
|
152
|
+
}
|
153
|
+
setParameters(val) {
|
154
|
+
this.parameterStates = val;
|
155
|
+
}
|
156
|
+
}
|
157
|
+
//# sourceMappingURL=LambdaParameterState.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"LambdaParameterState.js","sourceRoot":"","sources":["../../../src/stores/shared/LambdaParameterState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAKL,WAAW,EACX,4BAA4B,EAC5B,0BAA0B,EAC1B,0BAA0B,EAC1B,sBAAsB,EACtB,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,yBAAyB,EACzB,cAAc,EACd,YAAY,EACZ,wBAAwB,EACxB,mBAAmB,EACnB,0BAA0B,EAC1B,mCAAmC,GACpC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,cAAc,EACd,WAAW,EAEX,SAAS,EACT,iBAAiB,EACjB,aAAa,EACb,IAAI,GACL,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAAE,mCAAmC,EAAE,MAAM,qCAAqC,CAAC;AAC1F,OAAO,EACL,iCAAiC,EACjC,kCAAkC,GACnC,MAAM,uCAAuC,CAAC;AAE/C,MAAM,CAAN,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IACjC,8CAAmB,CAAA;IACnB,4CAAiB,CAAA;AACnB,CAAC,EAHW,uBAAuB,GAAvB,uBAAuB,KAAvB,uBAAuB,QAGlC;AAED,IAAK,+BAGJ;AAHD,WAAK,+BAA+B;IAClC,oFAAiD,CAAA;IACjD,sFAAmD,CAAA;AACrD,CAAC,EAHI,+BAA+B,KAA/B,+BAA+B,QAGnC;AAED,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAC1C,KAAgB,EAChB,sBAA8C,EAC9B,EAAE;IAClB,MAAM,eAAe,GAAG,KAAK,CAAC,sBAAsB,CAClD,yBAAyB,CAAC,GAAG,CAC9B,CAAC;IACF,MAAM,UAAU,GAAG,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;IACjE,MAAM,OAAO,GAAG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AuB;YACvD,SAAS,CAAC,IAAI,CAAC,eAAe,CAAC;SAChC,CAAC,CAAC;IACL,CAAC;IAED,YAAY,CAAC,GAAyB;QACpC,cAAc,CAAC,IAAI,CAAC,eAAe,EAAE,GAAG,CAAC,CAAC;IAC5C,CAAC;IAED,eAAe,CAAC,GAAyB;QACvC,WAAW,CAAC,IAAI,CAAC,eAAe,EAAE,GAAG,CAAC,CAAC;IACzC,CAAC;IAED,aAAa,CAAC,GAA2B;QACvC,IAAI,CAAC,eAAe,GAAG,GAAG,CAAC;IAC7B,CAAC;CACF"}
|
@@ -13,6 +13,8 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { InstanceValue, } from '@finos/legend-graph';
|
17
|
-
export const
|
18
|
-
|
16
|
+
import { type PureModel, type InstanceValue, type VariableExpression, Enumeration, PrimitiveInstanceValue, PRIMITIVE_TYPE } from '@finos/legend-graph';
|
17
|
+
export declare const createMockEnumerationProperty: (enumeration: Enumeration) => string;
|
18
|
+
export declare const buildPrimitiveInstanceValue: (graph: PureModel, type: PRIMITIVE_TYPE, value: unknown) => PrimitiveInstanceValue;
|
19
|
+
export declare const generateVariableExpressionMockValue: (parameter: VariableExpression, graph: PureModel) => InstanceValue | undefined;
|
20
|
+
//# sourceMappingURL=ValueSpecificationEditorHelper.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ValueSpecificationEditorHelper.d.ts","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationEditorHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,kBAAkB,EAIvB,WAAW,EAMX,sBAAsB,EAEtB,cAAc,EAEf,MAAM,qBAAqB,CAAC;AA4C7B,eAAO,MAAM,6BAA6B,gBAC3B,WAAW,KACvB,MACyE,CAAC;AAE7E,eAAO,MAAM,2BAA2B,UAC/B,SAAS,QACV,cAAc,SACb,OAAO,KACb,sBAYF,CAAC;AAEF,eAAO,MAAM,mCAAmC,cACnC,kBAAkB,SACtB,SAAS,KACf,aAAa,GAAG,SAuClB,CAAC"}
|
@@ -0,0 +1,77 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
import { CollectionInstanceValue, DATE_FORMAT, DATE_TIME_FORMAT, Enumeration, EnumValueExplicitReference, EnumValueInstanceValue, GenericType, GenericTypeExplicitReference, getEnumValue, PrimitiveInstanceValue, PrimitiveType, PRIMITIVE_TYPE, TYPICAL_MULTIPLICITY_TYPE, } from '@finos/legend-graph';
|
17
|
+
import { Randomizer } from '@finos/legend-shared';
|
18
|
+
import { addDays, format } from 'date-fns';
|
19
|
+
import { instanceValue_setValues } from './ValueSpecificationModifierHelper.js';
|
20
|
+
const createMockPrimitiveProperty = (primitiveType, propertyName) => {
|
21
|
+
const randomizer = new Randomizer();
|
22
|
+
switch (primitiveType.name) {
|
23
|
+
case PRIMITIVE_TYPE.BOOLEAN:
|
24
|
+
return randomizer.getRandomItemInCollection([true, false]) ?? true;
|
25
|
+
case PRIMITIVE_TYPE.FLOAT:
|
26
|
+
return randomizer.getRandomFloat();
|
27
|
+
case PRIMITIVE_TYPE.DECIMAL:
|
28
|
+
return randomizer.getRandomDouble();
|
29
|
+
case PRIMITIVE_TYPE.NUMBER:
|
30
|
+
case PRIMITIVE_TYPE.INTEGER:
|
31
|
+
return randomizer.getRandomWholeNumber(100);
|
32
|
+
// NOTE that `Date` is the umbrella type that comprises `StrictDate` and `DateTime`, but for simplicity, we will generate `Date` as `StrictDate`
|
33
|
+
case PRIMITIVE_TYPE.DATE:
|
34
|
+
case PRIMITIVE_TYPE.STRICTDATE:
|
35
|
+
return format(randomizer.getRandomDate(new Date(Date.now()), addDays(Date.now(), 100)), DATE_FORMAT);
|
36
|
+
case PRIMITIVE_TYPE.DATETIME:
|
37
|
+
return format(randomizer.getRandomDate(new Date(Date.now()), addDays(Date.now(), 100)), DATE_TIME_FORMAT);
|
38
|
+
case PRIMITIVE_TYPE.STRING:
|
39
|
+
default:
|
40
|
+
return `${propertyName} ${randomizer.getRandomWholeNumber(100)}`;
|
41
|
+
}
|
42
|
+
};
|
43
|
+
export const createMockEnumerationProperty = (enumeration) => new Randomizer().getRandomItemInCollection(enumeration.values)?.name ?? '';
|
44
|
+
export const buildPrimitiveInstanceValue = (graph, type, value) => {
|
45
|
+
const multiplicityOne = graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE);
|
46
|
+
const instance = new PrimitiveInstanceValue(GenericTypeExplicitReference.create(new GenericType(graph.getPrimitiveType(type))), multiplicityOne);
|
47
|
+
instanceValue_setValues(instance, [value]);
|
48
|
+
return instance;
|
49
|
+
};
|
50
|
+
export const generateVariableExpressionMockValue = (parameter, graph) => {
|
51
|
+
const varType = parameter.genericType?.value.rawType;
|
52
|
+
const multiplicity = parameter.multiplicity;
|
53
|
+
if ((!multiplicity.upperBound || multiplicity.upperBound > 1) && varType) {
|
54
|
+
return new CollectionInstanceValue(multiplicity, GenericTypeExplicitReference.create(new GenericType(varType)));
|
55
|
+
}
|
56
|
+
if (varType instanceof PrimitiveType) {
|
57
|
+
const primitiveInstanceValue = new PrimitiveInstanceValue(GenericTypeExplicitReference.create(varType.name === PRIMITIVE_TYPE.DATE
|
58
|
+
? new GenericType(graph.getPrimitiveType(PRIMITIVE_TYPE.STRICTDATE))
|
59
|
+
: new GenericType(varType)), multiplicity);
|
60
|
+
instanceValue_setValues(primitiveInstanceValue, [
|
61
|
+
createMockPrimitiveProperty(varType, parameter.name === '' ? 'myVar' : parameter.name),
|
62
|
+
]);
|
63
|
+
return primitiveInstanceValue;
|
64
|
+
}
|
65
|
+
else if (varType instanceof Enumeration) {
|
66
|
+
const enumValueInstance = new EnumValueInstanceValue(GenericTypeExplicitReference.create(new GenericType(varType)), multiplicity);
|
67
|
+
const mock = createMockEnumerationProperty(varType);
|
68
|
+
if (mock !== '') {
|
69
|
+
instanceValue_setValues(enumValueInstance, [
|
70
|
+
EnumValueExplicitReference.create(getEnumValue(varType, mock)),
|
71
|
+
]);
|
72
|
+
}
|
73
|
+
return enumValueInstance;
|
74
|
+
}
|
75
|
+
return undefined;
|
76
|
+
};
|
77
|
+
//# sourceMappingURL=ValueSpecificationEditorHelper.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ValueSpecificationEditorHelper.js","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationEditorHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAIL,uBAAuB,EACvB,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,0BAA0B,EAC1B,sBAAsB,EACtB,WAAW,EACX,4BAA4B,EAC5B,YAAY,EACZ,sBAAsB,EACtB,aAAa,EACb,cAAc,EACd,yBAAyB,GAC1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAEhF,MAAM,2BAA2B,GAAG,CAClC,aAA4B,EAC5B,YAAoB,EACO,EAAE;IAC7B,MAAM,UAAU,GAAG,IAAI,UAAU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;YAC9C,2BAA2B,CACzB,OAAO,EACP,SAAS,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CACjD;SACF,CAAC,CAAC;QACH,OAAO,sBAAsB,CAAC;KAC/B;SAAM,IAAI,OAAO,YAAY,WAAW,EAAE;QACzC,MAAM,iBAAiB,GAAG,IAAI,sBAAsB,CAClD,4BAA4B,CAAC,MAAM,CAAC,IAAI,WAAW,CAAC,OAAO,CAAC,CAAC,EAC7D,YAAY,CACb,CAAC;QACF,MAAM,IAAI,GAAG,6BAA6B,CAAC,OAAO,CAAC,CAAC;QACpD,IAAI,IAAI,KAAK,EAAE,EAAE;YACf,uBAAuB,CAAC,iBAAiB,EAAE;gBACzC,0BAA0B,CAAC,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;aAC/D,CAAC,CAAC;SACJ;QACD,OAAO,iBAAiB,CAAC;KAC1B;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC"}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
import { type Multiplicity, type FunctionExpression, type ValueSpecification, type ObserverContext, type VariableExpression, type InstanceValue, type GraphFetchTree, type AbstractPropertyExpression, type GenericTypeReference, type SimpleFunctionExpression, type PackageableElementReference, type Function, type LambdaFunction, type FunctionType, type CollectionInstanceValue, type PropertyReference } from '@finos/legend-graph';
|
17
|
+
export declare const valueSpecification_setGenericType: (target: ValueSpecification, val: GenericTypeReference | undefined) => void;
|
18
|
+
export declare const valueSpecification_setMultiplicity: (target: ValueSpecification, val: Multiplicity) => void;
|
19
|
+
export declare const simpleFunctionExpression_setFunc: (target: SimpleFunctionExpression, val: PackageableElementReference<Function> | undefined) => void;
|
20
|
+
export declare const functionExpression_setParametersValues: (target: FunctionExpression, val: ValueSpecification[], context: ObserverContext) => void;
|
21
|
+
export declare const functionExpression_setParameterValue: (target: FunctionExpression, val: ValueSpecification, idx: number, context: ObserverContext) => void;
|
22
|
+
export declare const functionExpression_addParameterValue: (target: FunctionExpression, val: ValueSpecification, context: ObserverContext) => void;
|
23
|
+
export declare const propertyExpression_setFunc: (target: AbstractPropertyExpression, val: PropertyReference) => void;
|
24
|
+
export declare const variableExpression_setName: (target: VariableExpression, val: string) => void;
|
25
|
+
export declare const collectionInstanceValue_setValues: (target: CollectionInstanceValue, val: ValueSpecification[], observableContext: ObserverContext) => void;
|
26
|
+
export declare const instanceValue_setValue: (target: InstanceValue, val: unknown, idx: number) => void;
|
27
|
+
export declare const instanceValue_setValues: (target: InstanceValue, val: unknown[]) => void;
|
28
|
+
export declare const graphFetchTree_addSubTree: (target: GraphFetchTree, val: GraphFetchTree) => void;
|
29
|
+
export declare const graphFetchTree_removeSubTree: (target: GraphFetchTree, val: GraphFetchTree) => void;
|
30
|
+
export declare const lambdaFunction_setExpressionSequence: (target: LambdaFunction, val: ValueSpecification[], observableContext: ObserverContext) => void;
|
31
|
+
export declare const lambdaFunction_setExpression: (target: LambdaFunction, val: ValueSpecification, idx: number, observableContext: ObserverContext) => void;
|
32
|
+
export declare const functionType_setParameters: (target: FunctionType, val: VariableExpression[]) => void;
|
33
|
+
//# sourceMappingURL=ValueSpecificationModifierHelper.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ValueSpec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CAAC;AAEF,eAAO,MAAM,sBAAsB,WACxB,aAAa,OAAO,OAAO,OAAO,MAAM,SAGlD,CAAC;AAEF,eAAO,MAAM,uBAAuB,WACzB,aAAa,OAAO,OAAO,EAAE,SAKvC,CAAC;AAEF,eAAO,MAAM,yBAAyB,WAC3B,cAAc,OAAO,cAAc,KAAG,IAGhD,CAAC;AAEF,eAAO,MAAM,4BAA4B,WAC9B,cAAc,OAAO,cAAc,KAAG,IAGhD,CAAC;AAEF,eAAO,MAAM,oCAAoC,WAErC,cAAc,OACjB,kBAAkB,EAAE,qBACN,eAAe,SAMrC,CAAC;AAEF,eAAO,MAAM,4BAA4B,WAE7B,cAAc,OACjB,kBAAkB,OAClB,MAAM,qBACQ,eAAe,SAOrC,CAAC;AAEF,eAAO,MAAM,0BAA0B,WAC5B,YAAY,OAAO,kBAAkB,EAAE,SAGjD,CAAC"}
|
@@ -0,0 +1,71 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
import { observe_ValueSpecification, observe_GenericTypeReference, observe_PackageableElementReference, observe_VariableExpression, } from '@finos/legend-graph';
|
17
|
+
import { addUniqueEntry, deleteEntry } from '@finos/legend-shared';
|
18
|
+
import { action } from 'mobx';
|
19
|
+
export const valueSpecification_setGenericType = action((target, val) => {
|
20
|
+
target.genericType = val ? observe_GenericTypeReference(val) : undefined;
|
21
|
+
});
|
22
|
+
export const valueSpecification_setMultiplicity = action((target, val) => {
|
23
|
+
target.multiplicity = val;
|
24
|
+
});
|
25
|
+
export const simpleFunctionExpression_setFunc = action((target,
|
26
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
27
|
+
val) => {
|
28
|
+
target.func = val ? observe_PackageableElementReference(val) : undefined;
|
29
|
+
});
|
30
|
+
export const functionExpression_setParametersValues = action((target, val, context) => {
|
31
|
+
target.parametersValues = val.map((v) => observe_ValueSpecification(v, context));
|
32
|
+
});
|
33
|
+
export const functionExpression_setParameterValue = action((target, val, idx, context) => {
|
34
|
+
target.parametersValues[idx] = observe_ValueSpecification(val, context);
|
35
|
+
});
|
36
|
+
export const functionExpression_addParameterValue = action((target, val, context) => {
|
37
|
+
target.parametersValues.push(observe_ValueSpecification(val, context));
|
38
|
+
});
|
39
|
+
export const propertyExpression_setFunc = action((target, val) => {
|
40
|
+
target.func = val;
|
41
|
+
});
|
42
|
+
export const variableExpression_setName = action((target, val) => {
|
43
|
+
target.name = val;
|
44
|
+
});
|
45
|
+
export const collectionInstanceValue_setValues = action((target, val, observableContext) => {
|
46
|
+
target.values = val.map((v) => observe_ValueSpecification(v, observableContext));
|
47
|
+
});
|
48
|
+
export const instanceValue_setValue = action((target, val, idx) => {
|
49
|
+
target.values[idx] = val;
|
50
|
+
});
|
51
|
+
export const instanceValue_setValues = action((target, val) => {
|
52
|
+
// TODO?: do we have to observe the values here?
|
53
|
+
// we might need to do so when we refactor collection value
|
54
|
+
target.values = val;
|
55
|
+
});
|
56
|
+
export const graphFetchTree_addSubTree = action((target, val) => {
|
57
|
+
addUniqueEntry(target.subTrees, val);
|
58
|
+
});
|
59
|
+
export const graphFetchTree_removeSubTree = action((target, val) => {
|
60
|
+
deleteEntry(target.subTrees, val);
|
61
|
+
});
|
62
|
+
export const lambdaFunction_setExpressionSequence = action((target, val, observableContext) => {
|
63
|
+
target.expressionSequence = val.map((v) => observe_ValueSpecification(v, observableContext));
|
64
|
+
});
|
65
|
+
export const lambdaFunction_setExpression = action((target, val, idx, observableContext) => {
|
66
|
+
target.expressionSequence[idx] = observe_ValueSpecification(val, observableContext);
|
67
|
+
});
|
68
|
+
export const functionType_setParameters = action((target, val) => {
|
69
|
+
target.parameters = val.map((v) => observe_VariableExpression(v));
|
70
|
+
});
|
71
|
+
//# sourceMappingURL=ValueSpecificationModifierHelper.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ValueSpecificationModifierHelper.js","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationModifierHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAiBL,0BAA0B,EAC1B,4BAA4B,EAC5B,mCAAmC,EACnC,0BAA0B,GAC3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,MAAM,CAAC,MAAM,iCAAiC,GAAG,MAAM,CACrD,CAAC,MAA0B,EAAE,GAAqC,EAAQ,EAAE;IAC1E,MAAM,CAAC,WAAW,GAAG,GAAG,CAAC,CAAC,CAAC,4BAA4B,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAC3E,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,kCAAkC,GAAG,MAAM,CACtD,CAAC,MAA0B,EAAE,GAAiB,EAAQ,EAAE;IACtD,MAAM,CAAC,YAAY,GAAG,GAAG,CAAC;AAC5B,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,gCAAgC,GAAG,MAAM,CACpD,CACE,MAAgC;AAChC,wDAAwD;AACxD,GAAsD,EAChD,EAAE;IACR,MAAM,CAAC,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC,mCAAmC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAC3E,CAAC,CACF,CAAC;AAE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AClB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,MAAM,CAC9C,CAAC,MAAoB,EAAE,GAAyB,EAAE,EAAE;IAClD,MAAM,CAAC,UAAU,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC,CAAC;AACpE,CAAC,CACF,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-query-builder",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.2.0",
|
4
4
|
"description": "Legend query builder core",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -41,38 +41,35 @@
|
|
41
41
|
"test:watch": "jest --watch"
|
42
42
|
},
|
43
43
|
"dependencies": {
|
44
|
-
"@ag-grid-community/client-side-row-model": "28.
|
45
|
-
"@ag-grid-community/core": "28.
|
46
|
-
"@ag-grid-community/react": "28.
|
47
|
-
"@finos/legend-application": "
|
48
|
-
"@finos/legend-art": "
|
49
|
-
"@finos/legend-graph": "
|
50
|
-
"@finos/legend-server-depot": "4.1.
|
51
|
-
"@finos/legend-shared": "6.1.
|
52
|
-
"@finos/legend-storage": "3.0.
|
44
|
+
"@ag-grid-community/client-side-row-model": "28.2.0",
|
45
|
+
"@ag-grid-community/core": "28.2.0",
|
46
|
+
"@ag-grid-community/react": "28.2.0",
|
47
|
+
"@finos/legend-application": "9.0.0",
|
48
|
+
"@finos/legend-art": "4.0.0",
|
49
|
+
"@finos/legend-graph": "18.0.0",
|
50
|
+
"@finos/legend-server-depot": "4.1.1",
|
51
|
+
"@finos/legend-shared": "6.1.4",
|
52
|
+
"@finos/legend-storage": "3.0.13",
|
53
53
|
"@testing-library/react": "13.4.0",
|
54
|
+
"@types/papaparse": "5.3.5",
|
54
55
|
"@types/react": "18.0.21",
|
55
56
|
"@types/react-dom": "18.0.6",
|
56
|
-
"@types/react-router-dom": "5.3.3",
|
57
57
|
"date-fns": "2.29.3",
|
58
|
-
"history": "5.3.0",
|
59
58
|
"mobx": "6.6.2",
|
60
59
|
"mobx-react-lite": "3.4.0",
|
61
60
|
"monaco-editor": "0.34.0",
|
61
|
+
"papaparse": "5.3.2",
|
62
62
|
"react": "18.2.0",
|
63
63
|
"react-dnd": "16.0.1",
|
64
64
|
"react-dom": "18.2.0",
|
65
65
|
"react-hotkeys": "2.0.0",
|
66
|
-
"react-resize-detector": "7.1.2",
|
67
|
-
"react-router": "5.3.4",
|
68
|
-
"react-router-dom": "5.3.4",
|
69
66
|
"serializr": "2.0.5"
|
70
67
|
},
|
71
68
|
"devDependencies": {
|
72
|
-
"@finos/legend-dev-utils": "2.0.
|
69
|
+
"@finos/legend-dev-utils": "2.0.20",
|
73
70
|
"@jest/globals": "29.1.2",
|
74
71
|
"cross-env": "7.0.3",
|
75
|
-
"eslint": "8.
|
72
|
+
"eslint": "8.25.0",
|
76
73
|
"jest": "29.1.2",
|
77
74
|
"npm-run-all": "4.1.5",
|
78
75
|
"rimraf": "3.0.2",
|
@@ -296,7 +296,10 @@ export const QueryBuilder = observer(
|
|
296
296
|
</div>
|
297
297
|
</div>
|
298
298
|
<GlobalHotKeys keyMap={keyMap} handlers={handlers}>
|
299
|
-
<Backdrop
|
299
|
+
<Backdrop
|
300
|
+
className="backdrop"
|
301
|
+
open={queryBuilderState.showBackdrop}
|
302
|
+
/>
|
300
303
|
<div className="query-builder__content">
|
301
304
|
<div className="query-builder__activity-bar">
|
302
305
|
<div className="query-builder__activity-bar__items"></div>
|
@@ -16,8 +16,6 @@
|
|
16
16
|
|
17
17
|
import { jest } from '@jest/globals';
|
18
18
|
import { type RenderResult, render, waitFor } from '@testing-library/react';
|
19
|
-
import { Router } from 'react-router';
|
20
|
-
import { createMemoryHistory } from 'history';
|
21
19
|
import { Log } from '@finos/legend-shared';
|
22
20
|
import {
|
23
21
|
type RawMappingModelCoverageAnalysisResult,
|
@@ -34,6 +32,8 @@ import {
|
|
34
32
|
WebApplicationNavigator,
|
35
33
|
TEST__provideMockedWebApplicationNavigator,
|
36
34
|
LegendApplicationComponentFrameworkProvider,
|
35
|
+
Router,
|
36
|
+
createMemoryHistory,
|
37
37
|
} from '@finos/legend-application';
|
38
38
|
import type { Entity } from '@finos/legend-storage';
|
39
39
|
import { QueryBuilder } from './QueryBuilder.js';
|
@@ -20,13 +20,13 @@ import {
|
|
20
20
|
TAB_SIZE,
|
21
21
|
useApplicationStore,
|
22
22
|
} from '@finos/legend-application';
|
23
|
-
import { useResizeDetector } from 'react-resize-detector';
|
24
23
|
import {
|
25
24
|
baseTextEditorSettings,
|
26
25
|
clsx,
|
27
26
|
Dialog,
|
28
27
|
disableEditorHotKeys,
|
29
28
|
disposeDiffEditor,
|
29
|
+
useResizeDetector,
|
30
30
|
} from '@finos/legend-art';
|
31
31
|
import { observer } from 'mobx-react-lite';
|
32
32
|
import { editor as monacoEditorAPI } from 'monaco-editor';
|
@@ -39,22 +39,21 @@ import {
|
|
39
39
|
MULTIPLICITY_INFINITE,
|
40
40
|
PRIMITIVE_TYPE,
|
41
41
|
VariableExpression,
|
42
|
-
Multiplicity,
|
43
42
|
GenericTypeExplicitReference,
|
44
43
|
GenericType,
|
45
44
|
} from '@finos/legend-graph';
|
46
45
|
import {
|
47
46
|
type PackageableElementOption,
|
48
47
|
buildElementOption,
|
49
|
-
variableExpression_setName,
|
50
|
-
LambdaParameterState,
|
51
|
-
LambdaParameterValuesEditor,
|
52
48
|
getPackageableElementOptionFormatter,
|
53
49
|
useApplicationStore,
|
54
50
|
} from '@finos/legend-application';
|
55
51
|
import { useDrag } from 'react-dnd';
|
56
52
|
import { generateEnumerableNameFromToken } from '@finos/legend-shared';
|
57
53
|
import { DEFAULT_VARIABLE_NAME } from '../stores/QueryBuilderConfig.js';
|
54
|
+
import { variableExpression_setName } from '../stores/shared/ValueSpecificationModifierHelper.js';
|
55
|
+
import { LambdaParameterState } from '../stores/shared/LambdaParameterState.js';
|
56
|
+
import { LambdaParameterValuesEditor } from './shared/LambdaParameterValuesEditor.js';
|
58
57
|
|
59
58
|
const VariableExpressionEditor = observer(
|
60
59
|
(props: {
|
@@ -115,6 +114,7 @@ const VariableExpressionEditor = observer(
|
|
115
114
|
event,
|
116
115
|
) => {
|
117
116
|
lambdaParameterState.changeMultiplicity(
|
117
|
+
varState,
|
118
118
|
parseInt(event.target.value),
|
119
119
|
multiplity.upperBound,
|
120
120
|
);
|
@@ -134,6 +134,7 @@ const VariableExpressionEditor = observer(
|
|
134
134
|
!isNaN(parseInt(value, 10))
|
135
135
|
) {
|
136
136
|
lambdaParameterState.changeMultiplicity(
|
137
|
+
varState,
|
137
138
|
multiplity.lowerBound,
|
138
139
|
value === MULTIPLICITY_INFINITE || value === ''
|
139
140
|
? undefined
|
@@ -183,7 +184,7 @@ const VariableExpressionEditor = observer(
|
|
183
184
|
spellCheck={false}
|
184
185
|
value={varState.name}
|
185
186
|
onChange={changeVariableName}
|
186
|
-
placeholder=
|
187
|
+
placeholder="Parameter name"
|
187
188
|
validationErrorMessage={validationMessage}
|
188
189
|
/>
|
189
190
|
</div>
|
@@ -347,7 +348,7 @@ export const QueryBuilderParametersPanel = observer(
|
|
347
348
|
const parmaterState = new LambdaParameterState(
|
348
349
|
new VariableExpression(
|
349
350
|
generateEnumerableNameFromToken(varNames, DEFAULT_VARIABLE_NAME),
|
350
|
-
|
351
|
+
queryBuilderState.graphManagerState.graph.getMultiplicity(1, 1),
|
351
352
|
GenericTypeExplicitReference.create(
|
352
353
|
new GenericType(
|
353
354
|
queryParameterState.queryBuilderState.graphManagerState.graph.getPrimitiveType(
|
@@ -419,9 +420,8 @@ export const QueryBuilderParametersPanel = observer(
|
|
419
420
|
)}
|
420
421
|
{queryParameterState.parameterValuesEditorState.showModal && (
|
421
422
|
<LambdaParameterValuesEditor
|
422
|
-
graph={
|
423
|
-
|
424
|
-
}
|
423
|
+
graph={queryBuilderState.graphManagerState.graph}
|
424
|
+
observerContext={queryBuilderState.observableContext}
|
425
425
|
lambdaParametersState={queryParameterState}
|
426
426
|
/>
|
427
427
|
)}
|