@finos/legend-query-builder 0.1.2 → 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 +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
@@ -0,0 +1,323 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
/**
|
3
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
4
|
+
*
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
* you may not use this file except in compliance with the License.
|
7
|
+
* You may obtain a copy of the License at
|
8
|
+
*
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
*
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
* See the License for the specific language governing permissions and
|
15
|
+
* limitations under the License.
|
16
|
+
*/
|
17
|
+
import { useApplicationStore } from '@finos/legend-application';
|
18
|
+
import { Tooltip, DollarIcon, clsx, InfoCircleIcon, RefreshIcon, CheckSquareIcon, SquareIcon, CustomSelectorInput, SaveIcon, PencilIcon, } from '@finos/legend-art';
|
19
|
+
import { PrimitiveInstanceValue, CollectionInstanceValue, EnumValueInstanceValue, INTERNAL__PropagatedValue, SimpleFunctionExpression, VariableExpression, EnumValueExplicitReference, TYPICAL_MULTIPLICITY_TYPE, PrimitiveType, PRIMITIVE_TYPE, GenericTypeExplicitReference, GenericType, Enumeration, getEnumValue, getMultiplicityDescription, } from '@finos/legend-graph';
|
20
|
+
import { guaranteeNonNullable, isNonNullable, returnUndefOnError, uniq, } from '@finos/legend-shared';
|
21
|
+
import { flowResult } from 'mobx';
|
22
|
+
import { observer } from 'mobx-react-lite';
|
23
|
+
import CSVParser from 'papaparse';
|
24
|
+
import { useEffect, useRef, useState } from 'react';
|
25
|
+
import { instanceValue_setValue, instanceValue_setValues, } from '../../stores/shared/ValueSpecificationModifierHelper.js';
|
26
|
+
import { CustomDatePicker } from './CustomDatePicker.js';
|
27
|
+
const ParameterInfoTooltip = (props) => {
|
28
|
+
const { variable, children, placement } = props;
|
29
|
+
const type = variable.genericType?.value.rawType;
|
30
|
+
return (_jsx(Tooltip, { arrow: true, ...(placement !== undefined ? { placement } : {}), classes: {
|
31
|
+
tooltip: 'value-spec-paramater__tooltip',
|
32
|
+
arrow: 'value-spec-paramater__tooltip__arrow',
|
33
|
+
tooltipPlacementRight: 'value-spec-paramater__tooltip--right',
|
34
|
+
}, TransitionProps: {
|
35
|
+
// disable transition
|
36
|
+
// NOTE: somehow, this is the only workaround we have, if for example
|
37
|
+
// we set `appear = true`, the tooltip will jump out of position
|
38
|
+
timeout: 0,
|
39
|
+
}, title: _jsxs("div", { className: "value-spec-paramater__tooltip__content", children: [_jsxs("div", { className: "value-spec-paramater__tooltip__item", children: [_jsx("div", { className: "value-spec-paramater__tooltip__item__label", children: "Type" }), _jsx("div", { className: "value-spec-paramater__tooltip__item__value", children: type?.name ?? '' })] }), _jsxs("div", { className: "value-spec-paramater__tooltip__item", children: [_jsx("div", { className: "value-spec-paramater__tooltip__item__label", children: "Var Name" }), _jsx("div", { className: "value-spec-paramater__tooltip__item__value", children: variable.name })] }), _jsxs("div", { className: "value-spec-paramater__tooltip__item", children: [_jsx("div", { className: "value-spec-paramater__tooltip__item__label", children: "Multiplicity" }), _jsx("div", { className: "value-spec-paramater__tooltip__item__value", children: getMultiplicityDescription(variable.multiplicity) })] })] }), children: children }));
|
40
|
+
};
|
41
|
+
const VariableExpressionParameterEditor = observer((props) => {
|
42
|
+
const { valueSpecification, className, resetValue } = props;
|
43
|
+
const varName = valueSpecification.name;
|
44
|
+
return (_jsxs("div", { className: clsx('value-spec-editor__parameter', className), children: [_jsx("div", { className: "value-spec-editor__parameter__icon", children: _jsx(DollarIcon, {}) }), _jsxs("div", { className: "value-spec-editor__parameter__label", children: [_jsx("div", { className: "value-spec-editor__parameter__text", children: varName }), _jsx(ParameterInfoTooltip, { variable: valueSpecification, children: _jsx("div", { className: "value-spec-editor__parameter__info", children: _jsx(InfoCircleIcon, {}) }) }), _jsx("button", { className: "value-spec-editor__parameter__reset-btn", title: "Reset", onClick: resetValue, children: _jsx(RefreshIcon, {}) })] })] }));
|
45
|
+
});
|
46
|
+
const StringPrimitiveInstanceValueEditor = observer((props) => {
|
47
|
+
const { valueSpecification, className, resetValue, setValueSpecification, selectorConfig, } = props;
|
48
|
+
const useSelector = Boolean(selectorConfig);
|
49
|
+
const applicationStore = useApplicationStore();
|
50
|
+
const value = valueSpecification.values[0];
|
51
|
+
const updateValueSpec = (val) => {
|
52
|
+
instanceValue_setValue(valueSpecification, val, 0);
|
53
|
+
setValueSpecification(valueSpecification);
|
54
|
+
};
|
55
|
+
const changeInputValue = (event) => {
|
56
|
+
updateValueSpec(event.target.value);
|
57
|
+
};
|
58
|
+
// custom select
|
59
|
+
const selectedValue = { value: value, label: value };
|
60
|
+
const reloadValuesFunc = selectorConfig?.reloadValues;
|
61
|
+
const changeValue = (val) => {
|
62
|
+
const newValue = val === null ? '' : val.value.toString();
|
63
|
+
updateValueSpec(newValue);
|
64
|
+
};
|
65
|
+
const handleInputChange = (inputValue, actionChange) => {
|
66
|
+
if (actionChange.action === 'input-change') {
|
67
|
+
updateValueSpec(inputValue);
|
68
|
+
reloadValuesFunc?.cancel();
|
69
|
+
const reloadValuesFuncTransformation = reloadValuesFunc?.(inputValue);
|
70
|
+
if (reloadValuesFuncTransformation) {
|
71
|
+
flowResult(reloadValuesFuncTransformation).catch(applicationStore.alertUnhandledError);
|
72
|
+
}
|
73
|
+
}
|
74
|
+
if (actionChange.action === 'input-blur') {
|
75
|
+
reloadValuesFunc?.cancel();
|
76
|
+
selectorConfig?.cleanUpReloadValues?.();
|
77
|
+
}
|
78
|
+
};
|
79
|
+
const isLoading = selectorConfig?.isLoading;
|
80
|
+
const queryOptions = selectorConfig?.values?.length
|
81
|
+
? selectorConfig.values.map((e) => ({
|
82
|
+
value: e,
|
83
|
+
label: e.toString(),
|
84
|
+
}))
|
85
|
+
: undefined;
|
86
|
+
const noOptionsMessage = selectorConfig?.values === undefined ? () => null : undefined;
|
87
|
+
return (_jsxs("div", { className: clsx('value-spec-editor', className), children: [useSelector ? (_jsx(CustomSelectorInput, { className: "value-spec-editor__enum-selector", options: queryOptions, onChange: changeValue, value: selectedValue, onInputChange: handleInputChange, darkMode: !applicationStore.TEMPORARY__isLightThemeEnabled, isLoading: isLoading, allowCreateWhileLoading: true, noOptionsMessage: noOptionsMessage, components: {
|
88
|
+
DropdownIndicator: null,
|
89
|
+
} })) : (_jsx("input", { className: "panel__content__form__section__input value-spec-editor__input", spellCheck: false, value: value, placeholder: value === '' ? '(empty)' : undefined, onChange: changeInputValue })), _jsx("button", { className: "value-spec-editor__reset-btn", title: "Reset", onClick: resetValue, children: _jsx(RefreshIcon, {}) })] }));
|
90
|
+
});
|
91
|
+
const BooleanPrimitiveInstanceValueEditor = observer((props) => {
|
92
|
+
const { valueSpecification, className, resetValue, setValueSpecification } = props;
|
93
|
+
const value = valueSpecification.values[0];
|
94
|
+
const toggleValue = () => {
|
95
|
+
instanceValue_setValue(valueSpecification, !value, 0);
|
96
|
+
setValueSpecification(valueSpecification);
|
97
|
+
};
|
98
|
+
return (_jsxs("div", { className: clsx('value-spec-editor', className), children: [_jsx("button", { className: clsx('value-spec-editor__toggler__btn', {
|
99
|
+
'value-spec-editor__toggler__btn--toggled': value,
|
100
|
+
}), onClick: toggleValue, children: value ? _jsx(CheckSquareIcon, {}) : _jsx(SquareIcon, {}) }), _jsx("button", { className: "value-spec-editor__reset-btn", title: "Reset", onClick: resetValue, children: _jsx(RefreshIcon, {}) })] }));
|
101
|
+
});
|
102
|
+
const NumberPrimitiveInstanceValueEditor = observer((props) => {
|
103
|
+
const { valueSpecification, isInteger, className, resetValue, setValueSpecification, } = props;
|
104
|
+
const value = valueSpecification.values[0];
|
105
|
+
const changeValue = (event) => {
|
106
|
+
let inputVal = isInteger
|
107
|
+
? parseInt(event.target.value, 10)
|
108
|
+
: parseFloat(event.target.value);
|
109
|
+
inputVal = isNaN(inputVal) ? 0 : inputVal;
|
110
|
+
instanceValue_setValue(valueSpecification, inputVal, 0);
|
111
|
+
setValueSpecification(valueSpecification);
|
112
|
+
};
|
113
|
+
return (_jsxs("div", { className: clsx('value-spec-editor', className), children: [_jsx("input", { className: "panel__content__form__section__input value-spec-editor__input", spellCheck: false, type: "number", value: value, onChange: changeValue }), _jsx("button", { className: "value-spec-editor__reset-btn", title: "Reset", onClick: resetValue, children: _jsx(RefreshIcon, {}) })] }));
|
114
|
+
});
|
115
|
+
const EnumValueInstanceValueEditor = observer((props) => {
|
116
|
+
const { valueSpecification, className, resetValue, setValueSpecification } = props;
|
117
|
+
const enumValueRef = guaranteeNonNullable(valueSpecification.values[0]);
|
118
|
+
const enumValue = enumValueRef.value;
|
119
|
+
const options = enumValue._OWNER.values.map((value) => ({
|
120
|
+
label: value.name,
|
121
|
+
value: value,
|
122
|
+
}));
|
123
|
+
const changeValue = (val) => {
|
124
|
+
instanceValue_setValue(valueSpecification, EnumValueExplicitReference.create(val.value), 0);
|
125
|
+
setValueSpecification(valueSpecification);
|
126
|
+
};
|
127
|
+
return (_jsxs("div", { className: clsx('value-spec-editor', className), children: [_jsx(CustomSelectorInput, { className: "value-spec-editor__enum-selector", options: options, onChange: changeValue, value: { value: enumValue, label: enumValue.name }, darkMode: true }), _jsx("button", { className: "value-spec-editor__reset-btn", title: "Reset", onClick: resetValue, children: _jsx(RefreshIcon, {}) })] }));
|
128
|
+
});
|
129
|
+
const stringifyValue = (values) => {
|
130
|
+
if (values.length === 0) {
|
131
|
+
return '';
|
132
|
+
}
|
133
|
+
return CSVParser.unparse([
|
134
|
+
values
|
135
|
+
.map((val) => {
|
136
|
+
if (val instanceof PrimitiveInstanceValue) {
|
137
|
+
return val.values[0];
|
138
|
+
}
|
139
|
+
else if (val instanceof EnumValueInstanceValue) {
|
140
|
+
return guaranteeNonNullable(val.values[0]).value.name;
|
141
|
+
}
|
142
|
+
return undefined;
|
143
|
+
})
|
144
|
+
.filter(isNonNullable),
|
145
|
+
]).trim();
|
146
|
+
};
|
147
|
+
/**
|
148
|
+
* NOTE: We attempt to be less disruptive here by not throwing errors left and right, instead
|
149
|
+
* we silently remove values which are not valid or parsable. But perhaps, we can consider
|
150
|
+
* passing in logger or notifier to show give the users some idea of what went wrong instead
|
151
|
+
* of silently swallow parts of their inputs like this.
|
152
|
+
*/
|
153
|
+
const setCollectionValue = (valueSpecification, graph, expectedType, value) => {
|
154
|
+
if (value.trim().length === 0) {
|
155
|
+
instanceValue_setValues(valueSpecification, []);
|
156
|
+
return;
|
157
|
+
}
|
158
|
+
const multiplicityOne = graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE);
|
159
|
+
let result = [];
|
160
|
+
const parseResult = CSVParser.parse(value.trim(), {
|
161
|
+
delimiter: ',',
|
162
|
+
});
|
163
|
+
const parseData = parseResult.data[0]; // only take the first line
|
164
|
+
if (parseResult.errors.length) {
|
165
|
+
if (parseResult.errors[0] &&
|
166
|
+
parseResult.errors[0].code === 'UndetectableDelimiter' &&
|
167
|
+
parseResult.errors[0].type === 'Delimiter' &&
|
168
|
+
parseResult.data.length === 1) {
|
169
|
+
// NOTE: this happens when the user only put one item in the value input
|
170
|
+
// we can go the other way by ensure the input has a comma but this is arguably neater
|
171
|
+
// as it tinkers with the parser
|
172
|
+
}
|
173
|
+
else {
|
174
|
+
// there were some parsing error, escape
|
175
|
+
// NOTE: ideally, we could show a warning here
|
176
|
+
return;
|
177
|
+
}
|
178
|
+
}
|
179
|
+
else if (expectedType instanceof PrimitiveType) {
|
180
|
+
switch (expectedType.path) {
|
181
|
+
case PRIMITIVE_TYPE.STRING: {
|
182
|
+
result = uniq(parseData)
|
183
|
+
.map((item) => {
|
184
|
+
const primitiveInstanceValue = new PrimitiveInstanceValue(GenericTypeExplicitReference.create(new GenericType(expectedType)), multiplicityOne);
|
185
|
+
instanceValue_setValues(primitiveInstanceValue, [item.toString()]);
|
186
|
+
return primitiveInstanceValue;
|
187
|
+
})
|
188
|
+
.filter(isNonNullable);
|
189
|
+
break;
|
190
|
+
}
|
191
|
+
case PRIMITIVE_TYPE.NUMBER:
|
192
|
+
case PRIMITIVE_TYPE.FLOAT:
|
193
|
+
case PRIMITIVE_TYPE.DECIMAL:
|
194
|
+
case PRIMITIVE_TYPE.INTEGER: {
|
195
|
+
result = uniq(parseData
|
196
|
+
.filter((val) => !isNaN(Number(val)))
|
197
|
+
.map((val) => Number(val)))
|
198
|
+
.map((item) => {
|
199
|
+
const primitiveInstanceValue = new PrimitiveInstanceValue(GenericTypeExplicitReference.create(new GenericType(expectedType)), multiplicityOne);
|
200
|
+
instanceValue_setValues(primitiveInstanceValue, [item]);
|
201
|
+
return primitiveInstanceValue;
|
202
|
+
})
|
203
|
+
.filter(isNonNullable);
|
204
|
+
break;
|
205
|
+
}
|
206
|
+
default:
|
207
|
+
// unsupported expected type, just escape
|
208
|
+
return;
|
209
|
+
}
|
210
|
+
}
|
211
|
+
else if (expectedType instanceof Enumeration) {
|
212
|
+
result = uniq(parseData.map((item) => item.trim()))
|
213
|
+
.map((item) => {
|
214
|
+
const _enum = returnUndefOnError(() => getEnumValue(expectedType, item));
|
215
|
+
if (!_enum) {
|
216
|
+
return undefined;
|
217
|
+
}
|
218
|
+
const enumValueInstanceValue = new EnumValueInstanceValue(GenericTypeExplicitReference.create(new GenericType(expectedType)), multiplicityOne);
|
219
|
+
instanceValue_setValues(enumValueInstanceValue, [
|
220
|
+
EnumValueExplicitReference.create(_enum),
|
221
|
+
]);
|
222
|
+
return enumValueInstanceValue;
|
223
|
+
})
|
224
|
+
.filter(isNonNullable);
|
225
|
+
}
|
226
|
+
instanceValue_setValues(valueSpecification, result);
|
227
|
+
};
|
228
|
+
const COLLECTION_PREVIEW_CHAR_LIMIT = 50;
|
229
|
+
const CollectionValueInstanceValueEditor = observer((props) => {
|
230
|
+
const { valueSpecification, graph, expectedType, className, resetValue, setValueSpecification, } = props;
|
231
|
+
const inputRef = useRef(null);
|
232
|
+
const [text, setText] = useState(stringifyValue(valueSpecification.values));
|
233
|
+
const [editable, setEditable] = useState(false);
|
234
|
+
const valueText = stringifyValue(valueSpecification.values);
|
235
|
+
const previewText = `List(${valueSpecification.values.length === 0
|
236
|
+
? 'empty'
|
237
|
+
: valueSpecification.values.length})${valueSpecification.values.length === 0
|
238
|
+
? ''
|
239
|
+
: `: ${valueText.length > COLLECTION_PREVIEW_CHAR_LIMIT
|
240
|
+
? `${valueText.substring(0, COLLECTION_PREVIEW_CHAR_LIMIT)}...`
|
241
|
+
: valueText}`}`;
|
242
|
+
const enableEdit = () => setEditable(true);
|
243
|
+
const saveEdit = () => {
|
244
|
+
setEditable(false);
|
245
|
+
setCollectionValue(valueSpecification, graph, expectedType, text);
|
246
|
+
setText(stringifyValue(valueSpecification.values));
|
247
|
+
setValueSpecification(valueSpecification);
|
248
|
+
};
|
249
|
+
const changeValue = (event) => setText(event.target.value);
|
250
|
+
// focus the input box when edit is enabled
|
251
|
+
useEffect(() => {
|
252
|
+
if (editable) {
|
253
|
+
inputRef.current?.focus();
|
254
|
+
}
|
255
|
+
}, [editable]);
|
256
|
+
if (editable) {
|
257
|
+
return (_jsxs("div", { className: clsx('value-spec-editor', className), children: [_jsx("input", { ref: inputRef, className: "panel__content__form__section__input value-spec-editor__input", spellCheck: false, value: text, placeholder: text === '' ? '(empty)' : undefined, onChange: changeValue }), _jsx("button", { className: "value-spec-editor__list-editor__save-button btn--dark", onClick: saveEdit, children: _jsx(SaveIcon, {}) }), _jsx("button", { className: "value-spec-editor__reset-btn", title: "Reset", onClick: resetValue, children: _jsx(RefreshIcon, {}) })] }));
|
258
|
+
}
|
259
|
+
return (_jsxs("div", { className: clsx('value-spec-editor', className), onClick: enableEdit, title: "Click to edit", children: [_jsx("input", { className: "value-spec-editor__list-editor__preview", spellCheck: false, value: previewText, disabled: true }), _jsx("button", { className: "value-spec-editor__list-editor__edit-icon", children: _jsx(PencilIcon, {}) })] }));
|
260
|
+
});
|
261
|
+
const UnsupportedValueSpecificationEditor = () => (_jsx("div", { className: "value-spec-editor--unsupported", children: "unsupported" }));
|
262
|
+
const DateInstanceValueEditor = observer((props) => {
|
263
|
+
const { valueSpecification, setValueSpecification, graph, obseverContext, typeCheckOption, resetValue, } = props;
|
264
|
+
return (_jsxs("div", { className: "value-spec-editor", children: [_jsx(CustomDatePicker, { valueSpecification: valueSpecification, graph: graph, observerContext: obseverContext, typeCheckOption: typeCheckOption, setValueSpecification: setValueSpecification }), _jsx("button", { className: "value-spec-editor__reset-btn", title: "Reset", onClick: resetValue, children: _jsx(RefreshIcon, {}) })] }));
|
265
|
+
});
|
266
|
+
/**
|
267
|
+
* TODO we should pass in the props `resetValueSpecification`. Reset
|
268
|
+
* should be part of this editor. Also through here we can call `observe_` accordingly.
|
269
|
+
*
|
270
|
+
* See https://github.com/finos/legend-studio/pull/1021
|
271
|
+
*/
|
272
|
+
export const BasicValueSpecificationEditor = (props) => {
|
273
|
+
const { className, valueSpecification, graph, obseverContext, typeCheckOption, setValueSpecification, resetValue, selectorConfig, } = props;
|
274
|
+
if (valueSpecification instanceof PrimitiveInstanceValue) {
|
275
|
+
const _type = valueSpecification.genericType.value.rawType;
|
276
|
+
switch (_type.path) {
|
277
|
+
case PRIMITIVE_TYPE.STRING:
|
278
|
+
return (_jsx(StringPrimitiveInstanceValueEditor, { valueSpecification: valueSpecification, setValueSpecification: setValueSpecification, className: className, resetValue: resetValue, selectorConfig: selectorConfig }));
|
279
|
+
case PRIMITIVE_TYPE.BOOLEAN:
|
280
|
+
return (_jsx(BooleanPrimitiveInstanceValueEditor, { valueSpecification: valueSpecification, setValueSpecification: setValueSpecification, className: className, resetValue: resetValue }));
|
281
|
+
case PRIMITIVE_TYPE.NUMBER:
|
282
|
+
case PRIMITIVE_TYPE.FLOAT:
|
283
|
+
case PRIMITIVE_TYPE.DECIMAL:
|
284
|
+
case PRIMITIVE_TYPE.INTEGER:
|
285
|
+
return (_jsx(NumberPrimitiveInstanceValueEditor, { valueSpecification: valueSpecification, isInteger: _type.path === PRIMITIVE_TYPE.INTEGER, setValueSpecification: setValueSpecification, className: className, resetValue: resetValue }));
|
286
|
+
case PRIMITIVE_TYPE.DATE:
|
287
|
+
case PRIMITIVE_TYPE.STRICTDATE:
|
288
|
+
case PRIMITIVE_TYPE.DATETIME:
|
289
|
+
case PRIMITIVE_TYPE.LATESTDATE:
|
290
|
+
return (_jsx(DateInstanceValueEditor, { valueSpecification: valueSpecification, graph: graph, obseverContext: obseverContext, typeCheckOption: typeCheckOption, className: className, setValueSpecification: setValueSpecification, resetValue: resetValue }));
|
291
|
+
default:
|
292
|
+
return _jsx(UnsupportedValueSpecificationEditor, {});
|
293
|
+
}
|
294
|
+
}
|
295
|
+
else if (valueSpecification instanceof EnumValueInstanceValue) {
|
296
|
+
return (_jsx(EnumValueInstanceValueEditor, { valueSpecification: valueSpecification, className: className, resetValue: resetValue, setValueSpecification: setValueSpecification }));
|
297
|
+
}
|
298
|
+
else if (valueSpecification instanceof CollectionInstanceValue &&
|
299
|
+
valueSpecification.genericType) {
|
300
|
+
// NOTE: since when we fill in the arguments, `[]` (or `nullish` value in Pure)
|
301
|
+
// is used for parameters we don't handle, we should not attempt to support empty collection
|
302
|
+
// without generic type here as that is equivalent to `[]`
|
303
|
+
return (_jsx(CollectionValueInstanceValueEditor, { valueSpecification: valueSpecification, graph: graph, expectedType: typeCheckOption.expectedType, className: className, resetValue: resetValue, setValueSpecification: setValueSpecification }));
|
304
|
+
}
|
305
|
+
// property expression
|
306
|
+
else if (valueSpecification instanceof VariableExpression) {
|
307
|
+
return (_jsx(VariableExpressionParameterEditor, { valueSpecification: valueSpecification, className: className, resetValue: resetValue }));
|
308
|
+
}
|
309
|
+
else if (valueSpecification instanceof INTERNAL__PropagatedValue) {
|
310
|
+
return (_jsx(BasicValueSpecificationEditor, { valueSpecification: valueSpecification.getValue(), graph: graph, obseverContext: obseverContext, typeCheckOption: typeCheckOption, setValueSpecification: setValueSpecification, resetValue: resetValue }));
|
311
|
+
}
|
312
|
+
else if (valueSpecification instanceof SimpleFunctionExpression &&
|
313
|
+
[
|
314
|
+
PRIMITIVE_TYPE.DATE.toString(),
|
315
|
+
PRIMITIVE_TYPE.STRICTDATE.toString(),
|
316
|
+
PRIMITIVE_TYPE.DATETIME.toString(),
|
317
|
+
PRIMITIVE_TYPE.LATESTDATE.toString(),
|
318
|
+
].includes(typeCheckOption.expectedType.path)) {
|
319
|
+
return (_jsx(DateInstanceValueEditor, { valueSpecification: valueSpecification, graph: graph, obseverContext: obseverContext, typeCheckOption: typeCheckOption, className: className, setValueSpecification: setValueSpecification, resetValue: resetValue }));
|
320
|
+
}
|
321
|
+
return _jsx(UnsupportedValueSpecificationEditor, {});
|
322
|
+
};
|
323
|
+
//# sourceMappingURL=BasicValueSpecificationEditor.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"BasicValueSpecificationEditor.js","sourceRoot":"","sources":["../../../src/components/shared/BasicValueSpecificationEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAGL,OAAO,EACP,UAAU,EACV,IAAI,EACJ,cAAc,EACd,WAAW,EACX,eAAe,EACf,UAAU,EACV,mBAAmB,EACnB,QAAQ,EACR,UAAU,GACX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAKL,sBAAsB,EACtB,uBAAuB,EACvB,sBAAsB,EACtB,yBAAyB,EACzB,wBAAwB,EACxB,kBAAkB,EAClB,0BAA0B,EAC1B,yBAAyB,EACzB,aAAa,EACb,cAAc,EACd,4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YACE,cAAc,CAAC,IAAI,CAAC,QAAQ,EAAE;YAC9B,cAAc,CAAC,UAAU,CAAC,QAAQ,EAAE;YACpC,cAAc,CAAC,QAAQ,CAAC,QAAQ,EAAE;YAClC,cAAc,CAAC,UAAU,CAAC,QAAQ,EAAE;SACrC,CAAC,QAAQ,CAAC,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,EAC7C;QACA,OAAO,CACL,KAAC,uBAAuB,IACtB,kBAAkB,EAAE,kBAAkB,EACtC,KAAK,EAAE,KAAK,EACZ,cAAc,EAAE,cAAc,EAC9B,eAAe,EAAE,eAAe,EAChC,SAAS,EAAE,SAAS,EACpB,qBAAqB,EAAE,qBAAqB,EAC5C,UAAU,EAAE,UAAU,GACtB,CACH,CAAC;KACH;IACD,OAAO,KAAC,mCAAmC,KAAG,CAAC;AACjD,CAAC,CAAC"}
|
@@ -0,0 +1,39 @@
|
|
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
|
+
/// <reference types="react" resolution-mode="require"/>
|
17
|
+
import { type PureModel, type Type, type ValueSpecification, SimpleFunctionExpression, PrimitiveInstanceValue, type ObserverContext } from '@finos/legend-graph';
|
18
|
+
export declare const CustomDatePicker: React.FC<{
|
19
|
+
valueSpecification: PrimitiveInstanceValue | SimpleFunctionExpression;
|
20
|
+
graph: PureModel;
|
21
|
+
observerContext: ObserverContext;
|
22
|
+
typeCheckOption: {
|
23
|
+
expectedType: Type;
|
24
|
+
/**
|
25
|
+
* Indicates if a strict type-matching will happen.
|
26
|
+
* Sometimes, auto-boxing allow some rooms to wiggle,
|
27
|
+
* for example we can assign a Float to an Integer, a
|
28
|
+
* Date to a DateTime. With this flag set to `true`
|
29
|
+
* we will not allow this.
|
30
|
+
*
|
31
|
+
* For example, if `match=true`, it means that options in the
|
32
|
+
* date-capability-dropdown which are not returning type DateTime
|
33
|
+
* will be filtered out.
|
34
|
+
*/
|
35
|
+
match?: boolean;
|
36
|
+
};
|
37
|
+
setValueSpecification: (val: ValueSpecification) => void;
|
38
|
+
}>;
|
39
|
+
//# sourceMappingURL=CustomDatePicker.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CustomDatePicker.d.ts","sourceRoot":"","sources":["../../../src/components/shared/CustomDatePicker.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAQH,OAAO,EACL,KAAK,SAAS,EAEd,KAAK,IAAI,EACT,KAAK,kBAAkB,EAEvB,wBAAwB,EAGxB,sBAAsB,EAStB,KAAK,eAAe,EACrB,MAAM,qBAAqB,CAAC;AA+lC7B,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC;IACtC,kBAAkB,EAAE,sBAAsB,GAAG,wBAAwB,CAAC;IACtE,KAAK,EAAE,SAAS,CAAC;IACjB,eAAe,EAAE,eAAe,CAAC;IACjC,eAAe,EAAE;QACf,YAAY,EAAE,IAAI,CAAC;QACnB;;;;;;;;;;WAUG;QACH,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB,CAAC;IACF,qBAAqB,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,IAAI,CAAC;CAC1D,CAsLA,CAAC"}
|