@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
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilder.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilder.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AA2BH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAoHxE,eAAO,MAAM,YAAY,WACf;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;
|
1
|
+
{"version":3,"file":"QueryBuilder.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilder.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AA2BH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAoHxE,eAAO,MAAM,YAAY,WACf;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAuSjD,CAAC"}
|
@@ -102,7 +102,7 @@ export const QueryBuilder = observer((props) => {
|
|
102
102
|
anchorOrigin: { vertical: 'bottom', horizontal: 'right' },
|
103
103
|
transformOrigin: { vertical: 'top', horizontal: 'right' },
|
104
104
|
elevation: 7,
|
105
|
-
}, children: [_jsx("button", { className: "query-builder__sub-header__custom-action__label", title: "Show Advanced Menu...", children: "Advanced" }), _jsx(CaretDownIcon, { className: "query-builder__sub-header__custom-action__icon" })] }) }) }), _jsxs(GlobalHotKeys, { keyMap: keyMap, handlers: handlers, children: [_jsx(Backdrop, { className: "backdrop", open: queryBuilderState.
|
105
|
+
}, children: [_jsx("button", { className: "query-builder__sub-header__custom-action__label", title: "Show Advanced Menu...", children: "Advanced" }), _jsx(CaretDownIcon, { className: "query-builder__sub-header__custom-action__icon" })] }) }) }), _jsxs(GlobalHotKeys, { keyMap: keyMap, handlers: handlers, children: [_jsx(Backdrop, { className: "backdrop", open: queryBuilderState.showBackdrop }), _jsxs("div", { className: "query-builder__content", children: [_jsxs("div", { className: "query-builder__activity-bar", children: [_jsx("div", { className: "query-builder__activity-bar__items" }), _jsx(DropdownMenu, { className: "query-builder__activity-bar__setting", content: _jsx(MenuContent, { children: _jsxs(MenuContentItem, { onClick: toggleEngineClientRequestPayloadCompression, children: [_jsx(MenuContentItemIcon, { children: engineConfig.useClientRequestPayloadCompression ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Compress request payload" })] }) }), menuProps: {
|
106
106
|
anchorOrigin: { vertical: 'center', horizontal: 'center' },
|
107
107
|
transformOrigin: { vertical: 'bottom', horizontal: 'left' },
|
108
108
|
elevation: 7,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilder.js","sourceRoot":"","sources":["../../src/components/QueryBuilder.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,mBAAmB,EACnB,cAAc,EACd,sBAAsB,EACtB,UAAU,EACV,YAAY,EACZ,WAAW,EACX,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,SAAS,EACT,aAAa,EACb,OAAO,EACP,QAAQ,GACT,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,uBAAuB,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AiB,EAAE,iBAAiB,GACpC,GACa,CAClB,IACmB,GAClB,IACF,EACN,KAAC,qBAAqB,IAAC,iBAAiB,EAAE,iBAAiB,GAAI,EAC9D,iBAAiB,CAAC,eAAe,CAAC,IAAI,IAAI,CACzC,KAAC,sBAAsB,IAAC,iBAAiB,EAAE,iBAAiB,GAAI,CACjE,IACa,IACZ,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderComponentTestUtils.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderComponentTestUtils.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,KAAK,YAAY,EAAmB,MAAM,wBAAwB,CAAC;
|
1
|
+
{"version":3,"file":"QueryBuilderComponentTestUtils.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderComponentTestUtils.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,KAAK,YAAY,EAAmB,MAAM,wBAAwB,CAAC;AAE5E,OAAO,EACL,KAAK,qCAAqC,EAC1C,KAAK,SAAS,EAIf,MAAM,qBAAqB,CAAC;AAY7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAEpD,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,gCAAgC,CAAC;AAIxC,eAAO,MAAM,uBAAuB,aACxB,MAAM,EAAE,UACV,SAAS,eACJ,MAAM,eACN,MAAM,0CACqB,qCAAqC;kBAE/D,YAAY;uBACP,iBAAiB;EAmErC,CAAC"}
|
@@ -16,11 +16,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
16
|
*/
|
17
17
|
import { jest } from '@jest/globals';
|
18
18
|
import { 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 { GraphManagerState, PackageableElementExplicitReference, RuntimePointer, } from '@finos/legend-graph';
|
23
|
-
import { TEST__ApplicationStoreProvider, TEST__getGenericApplicationConfig, TEST__LegendApplicationPluginManager, TEST__provideMockedApplicationStore, WebApplicationNavigator, TEST__provideMockedWebApplicationNavigator, LegendApplicationComponentFrameworkProvider, } from '@finos/legend-application';
|
21
|
+
import { TEST__ApplicationStoreProvider, TEST__getGenericApplicationConfig, TEST__LegendApplicationPluginManager, TEST__provideMockedApplicationStore, WebApplicationNavigator, TEST__provideMockedWebApplicationNavigator, LegendApplicationComponentFrameworkProvider, Router, createMemoryHistory, } from '@finos/legend-application';
|
24
22
|
import { QueryBuilder } from './QueryBuilder.js';
|
25
23
|
import { INTERNAL__BasicQueryBuilderState, } from '../stores/QueryBuilderState.js';
|
26
24
|
import { QueryBuilder_GraphManagerPreset } from '../graphManager/QueryBuilder_GraphManagerPreset.js';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderComponentTestUtils.js","sourceRoot":"","sources":["../../src/components/QueryBuilderComponentTestUtils.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAqB,MAAM,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"QueryBuilderComponentTestUtils.js","sourceRoot":"","sources":["../../src/components/QueryBuilderComponentTestUtils.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAqB,MAAM,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAGL,iBAAiB,EACjB,mCAAmC,EACnC,cAAc,GACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO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,CACxC,iBAAiB,CAAC,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,CAChD,CACF,CACF,CAAC;IAEF,IAAI,qCAAqC,EAAE;QACzC,IAAI;aACD,KAAK,CAAC,iBAAiB,CAAC,YAAY,EAAE,6BAA6B,CAAC;aACpE,eAAe,CACd,OAAO,CAAC,OAAO,CACb,iBAAiB,CAAC,YAAY,CAAC,uCAAuC,CACpE,qCAAqC,CACtC,CACF,CACF,CAAC;KACL;IAED,MAAM,OAAO,GAAG,mBAAmB,EAAE,CAAC;IACtC,MAAM,SAAS,GAAG,IAAI,uBAAuB,CAAC,OAAO,CAAC,CAAC;IACvD,gBAAgB,CAAC,SAAS,GAAG,SAAS,CAAC;IACvC,0CAA0C,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC;IAEhE,MAAM,YAAY,GAAG,MAAM,CACzB,KAAC,MAAM,IAAC,OAAO,EAAE,OAAO,YACtB,KAAC,8BAA8B,IAC7B,MAAM,EAAE,iCAAiC,EAAE,EAC3C,aAAa,EAAE,aAAa,YAE5B,KAAC,2CAA2C,cAC1C,KAAC,YAAY,IAAC,iBAAiB,EAAE,iBAAiB,GAAI,GACV,GACf,GAC1B,CACV,CAAC;IAEF,MAAM,OAAO,CAAC,GAAG,EAAE,CACjB,YAAY,CAAC,WAAW,CAAC,qBAAqB,CAAC,aAAa,CAAC,CAC9D,CAAC;IAEF,OAAO;QACL,YAAY;QACZ,iBAAiB;KAClB,CAAC;AACJ,CAAC,CAAC"}
|
@@ -15,8 +15,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
15
|
* limitations under the License.
|
16
16
|
*/
|
17
17
|
import { EDITOR_LANGUAGE, EDITOR_THEME, TAB_SIZE, useApplicationStore, } from '@finos/legend-application';
|
18
|
-
import { useResizeDetector } from '
|
19
|
-
import { baseTextEditorSettings, clsx, Dialog, disableEditorHotKeys, disposeDiffEditor, } from '@finos/legend-art';
|
18
|
+
import { baseTextEditorSettings, clsx, Dialog, disableEditorHotKeys, disposeDiffEditor, useResizeDetector, } from '@finos/legend-art';
|
20
19
|
import { observer } from 'mobx-react-lite';
|
21
20
|
import { editor as monacoEditorAPI } from 'monaco-editor';
|
22
21
|
import { useEffect, useRef, useState } from 'react';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderDiffPanel.js","sourceRoot":"","sources":["../../src/components/QueryBuilderDiffPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,eAAe,EACf,YAAY,EACZ,QAAQ,EACR,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,
|
1
|
+
{"version":3,"file":"QueryBuilderDiffPanel.js","sourceRoot":"","sources":["../../src/components/QueryBuilderDiffPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,eAAe,EACf,YAAY,EACZ,QAAQ,EACR,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,sBAAsB,EACtB,IAAI,EACJ,MAAM,EACN,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAEL,wBAAwB,GACzB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,MAAM,YAAY,GAAG,QAAQ,CAC3B,CAAC,KAIA,EAAE,EAAE;IACH,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,KAAK,CA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,CAChB;oCACE,UAAU,EAAE,aAAa,CAAC,YAAY,CAAC,UAAU;wCAC/C,CAAC,CAAC,sBAAsB,CACpB,aAAa,CAAC,YAAY,CAAC,UAG1B,CACF;wCACH,CAAC,CAAC,SAAS;oCACb,IAAI,EAAE,aAAa,CAAC,YAAY,CAAC,IAAI;wCACnC,CAAC,CAAC,sBAAsB,CACpB,aAAa,CAAC,YAAY,CAAC,IAG1B,CACF;wCACH,CAAC,CAAC,SAAS;iCACd,EACD,IAAI,EACJ,QAAQ,CACT,GACD,CACH,IACG,EACN,cAAK,SAAS,EAAC,oCAAoC,YACjD,iBAAQ,SAAS,EAAC,eAAe,EAAC,OAAO,EAAE,KAAK,sBAEvC,GACL,IACF,GACF,GACC,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -15,7 +15,7 @@
|
|
15
15
|
*/
|
16
16
|
/// <reference types="react" resolution-mode="require"/>
|
17
17
|
import type { QueryBuilderState } from '../stores/QueryBuilderState.js';
|
18
|
-
import { LambdaParameterState } from '
|
18
|
+
import { LambdaParameterState } from '../stores/shared/LambdaParameterState.js';
|
19
19
|
export declare const VariableExpressionViewer: ((props: {
|
20
20
|
queryBuilderState: QueryBuilderState;
|
21
21
|
isReadOnly: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderParametersPanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderParametersPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAIH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;
|
1
|
+
{"version":3,"file":"QueryBuilderParametersPanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderParametersPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAIH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAoCxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAuMhF,eAAO,MAAM,wBAAwB,WAC3B;IACN,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,uBAAuB,EAAE,oBAAoB,CAAC;CAC/C;;CA4EF,CAAC;AAEF,eAAO,MAAM,2BAA2B,WAC9B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CA4FjD,CAAC"}
|
@@ -19,10 +19,13 @@ import { observer } from 'mobx-react-lite';
|
|
19
19
|
import { Dialog, BlankPanelContent, CustomSelectorInput, PencilIcon, TimesIcon, DollarIcon, PlusIcon, InputWithInlineValidation, DragPreviewLayer, useDragPreviewLayer, BlankPanelPlaceholder, } from '@finos/legend-art';
|
20
20
|
import { QUERY_BUILDER_PARAMETER_DND_TYPE, } from '../stores/QueryBuilderParametersState.js';
|
21
21
|
import { MULTIPLICITY_INFINITE, PRIMITIVE_TYPE, VariableExpression, GenericTypeExplicitReference, GenericType, } from '@finos/legend-graph';
|
22
|
-
import { buildElementOption,
|
22
|
+
import { buildElementOption, getPackageableElementOptionFormatter, useApplicationStore, } from '@finos/legend-application';
|
23
23
|
import { useDrag } from 'react-dnd';
|
24
24
|
import { generateEnumerableNameFromToken } from '@finos/legend-shared';
|
25
25
|
import { DEFAULT_VARIABLE_NAME } from '../stores/QueryBuilderConfig.js';
|
26
|
+
import { variableExpression_setName } from '../stores/shared/ValueSpecificationModifierHelper.js';
|
27
|
+
import { LambdaParameterState } from '../stores/shared/LambdaParameterState.js';
|
28
|
+
import { LambdaParameterValuesEditor } from './shared/LambdaParameterValuesEditor.js';
|
26
29
|
const VariableExpressionEditor = observer((props) => {
|
27
30
|
// main state
|
28
31
|
const { queryBuilderState, lambdaParameterState } = props;
|
@@ -57,7 +60,7 @@ const VariableExpressionEditor = observer((props) => {
|
|
57
60
|
};
|
58
61
|
// multiplicity
|
59
62
|
const changeLowerBound = (event) => {
|
60
|
-
lambdaParameterState.changeMultiplicity(parseInt(event.target.value), multiplity.upperBound);
|
63
|
+
lambdaParameterState.changeMultiplicity(varState, parseInt(event.target.value), multiplity.upperBound);
|
61
64
|
};
|
62
65
|
const [upperBound, setUppBound] = useState(multiplity.upperBound === undefined
|
63
66
|
? MULTIPLICITY_INFINITE
|
@@ -67,7 +70,7 @@ const VariableExpressionEditor = observer((props) => {
|
|
67
70
|
if (value === MULTIPLICITY_INFINITE ||
|
68
71
|
value === '' ||
|
69
72
|
!isNaN(parseInt(value, 10))) {
|
70
|
-
lambdaParameterState.changeMultiplicity(multiplity.lowerBound, value === MULTIPLICITY_INFINITE || value === ''
|
73
|
+
lambdaParameterState.changeMultiplicity(varState, multiplity.lowerBound, value === MULTIPLICITY_INFINITE || value === ''
|
71
74
|
? undefined
|
72
75
|
: parseInt(value, 10));
|
73
76
|
setUppBound(value);
|
@@ -86,7 +89,7 @@ const VariableExpressionEditor = observer((props) => {
|
|
86
89
|
root: 'editor-modal__root-container',
|
87
90
|
container: 'editor-modal__container',
|
88
91
|
paper: 'editor-modal__content',
|
89
|
-
}, children: _jsxs("div", { className: "modal modal--dark editor-modal query-builder__parameters__modal", children: [_jsx("div", { className: "modal__header", children: _jsxs("div", { className: "modal__title", children: [`${isCreating ? 'Create ' : 'Update '}`, "Parameter"] }) }), _jsxs("div", { className: "modal__body query-builder__parameters__modal__body", children: [_jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Parameter Name" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "Name of the parameter. Should be descriptive of its purpose." }), _jsx("div", { className: "query-builder__parameters__parameter__name", children: _jsx(InputWithInlineValidation, { className: "query-builder__parameters__parameter__name__input input-group__input", spellCheck: false, value: varState.name, onChange: changeVariableName, placeholder:
|
92
|
+
}, children: _jsxs("div", { className: "modal modal--dark editor-modal query-builder__parameters__modal", children: [_jsx("div", { className: "modal__header", children: _jsxs("div", { className: "modal__title", children: [`${isCreating ? 'Create ' : 'Update '}`, "Parameter"] }) }), _jsxs("div", { className: "modal__body query-builder__parameters__modal__body", children: [_jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Parameter Name" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "Name of the parameter. Should be descriptive of its purpose." }), _jsx("div", { className: "query-builder__parameters__parameter__name", children: _jsx(InputWithInlineValidation, { className: "query-builder__parameters__parameter__name__input input-group__input", spellCheck: false, value: varState.name, onChange: changeVariableName, placeholder: "Parameter name", validationErrorMessage: validationMessage }) })] }), _jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Type" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "Data type of the parameter." }), _jsx(CustomSelectorInput, { placeholder: "Choose a type...", options: typeOptions, onChange: changeType, value: selectedType, darkMode: !applicationStore.TEMPORARY__isLightThemeEnabled, formatOptionLabel: getPackageableElementOptionFormatter({
|
90
93
|
darkMode: !applicationStore.TEMPORARY__isLightThemeEnabled,
|
91
94
|
}) })] }), _jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Multiplicity" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "The multiplity determines how many values a parameter can have. Default is set to mandatory single vlue." }), _jsx("input", { className: "panel__content__form__section__input panel__content__form__section__number-input", type: "number", spellCheck: false, value: multiplity.lowerBound, onChange: changeLowerBound }), "..", _jsx("input", { className: "panel__content__form__section__input panel__content__form__section__number-input", spellCheck: false, value: upperBound, onChange: changeUpperBound })] })] }), _jsxs("div", { className: "modal__footer", children: [isCreating && (_jsx("button", { className: "btn modal__footer__close-btn btn--dark", onClick: onAction, disabled: Boolean(validationMessage), children: "Create" })), _jsx("button", { className: "btn modal__footer__close-btn", onClick: close, children: "Close" })] })] }) }));
|
92
95
|
});
|
@@ -123,6 +126,6 @@ export const QueryBuilderParametersPanel = observer((props) => {
|
|
123
126
|
}
|
124
127
|
};
|
125
128
|
return (_jsxs("div", { className: "panel query-builder__parameters", children: [_jsxs("div", { className: "panel__header", children: [_jsx("div", { className: "panel__header__title", children: _jsx("div", { className: "panel__header__title__label", children: "parameters" }) }), !isReadOnly && !queryBuilderState.isParameterSupportDisabled && (_jsx("div", { className: "panel__header__actions", children: _jsx("button", { className: "panel__header__action", tabIndex: -1, onClick: addParameter, title: "Add Parameter", children: _jsx(PlusIcon, {}) }) }))] }), _jsxs("div", { className: "panel__content query-builder__parameters__content", children: [!queryBuilderState.isParameterSupportDisabled && (_jsxs(_Fragment, { children: [Boolean(queryParameterState.parameterStates.length) &&
|
126
|
-
queryParameterState.parameterStates.map((parameter) => (_jsx(VariableExpressionViewer, { queryBuilderState: queryBuilderState, isReadOnly: isReadOnly, variableExpressionState: parameter }, parameter.uuid))), !queryParameterState.parameterStates.length && (_jsx(BlankPanelPlaceholder, { text: "Add a parameter", disabled: isReadOnly, onClick: addParameter, clickActionType: "add", previewText: "No parameter", tooltipText: "Click to add a new parameter" }))] })), queryBuilderState.isParameterSupportDisabled && (_jsx(BlankPanelContent, { children: "Parameters are not supported" }))] }), queryParameterState.selectedParameter && (_jsx(VariableExpressionEditor, { queryBuilderState: queryBuilderState, lambdaParameterState: queryParameterState.selectedParameter })), queryParameterState.parameterValuesEditorState.showModal && (_jsx(LambdaParameterValuesEditor, { graph:
|
129
|
+
queryParameterState.parameterStates.map((parameter) => (_jsx(VariableExpressionViewer, { queryBuilderState: queryBuilderState, isReadOnly: isReadOnly, variableExpressionState: parameter }, parameter.uuid))), !queryParameterState.parameterStates.length && (_jsx(BlankPanelPlaceholder, { text: "Add a parameter", disabled: isReadOnly, onClick: addParameter, clickActionType: "add", previewText: "No parameter", tooltipText: "Click to add a new parameter" }))] })), queryBuilderState.isParameterSupportDisabled && (_jsx(BlankPanelContent, { children: "Parameters are not supported" }))] }), queryParameterState.selectedParameter && (_jsx(VariableExpressionEditor, { queryBuilderState: queryBuilderState, lambdaParameterState: queryParameterState.selectedParameter })), queryParameterState.parameterValuesEditorState.showModal && (_jsx(LambdaParameterValuesEditor, { graph: queryBuilderState.graphManagerState.graph, observerContext: queryBuilderState.observableContext, lambdaParametersState: queryParameterState }))] }));
|
127
130
|
});
|
128
131
|
//# sourceMappingURL=QueryBuilderParametersPanel.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderParametersPanel.js","sourceRoot":"","sources":["../../src/components/QueryBuilderParametersPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EACL,MAAM,EACN,iBAAiB,EACjB,mBAAmB,EACnB,UAAU,EACV,SAAS,EACT,UAAU,EACV,QAAQ,EACR,yBAAyB,EACzB,gBAAgB,EAChB,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,gCAAgC,GACjC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAEL,qBAAqB,EACrB,cAAc,EACd,kBAAkB,EAClB,4BAA4B,EAC5B,WAAW,GACZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,kBAAkB,EAClB,
|
1
|
+
{"version":3,"file":"QueryBuilderParametersPanel.js","sourceRoot":"","sources":["../../src/components/QueryBuilderParametersPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EACL,MAAM,EACN,iBAAiB,EACjB,mBAAmB,EACnB,UAAU,EACV,SAAS,EACT,UAAU,EACV,QAAQ,EACR,yBAAyB,EACzB,gBAAgB,EAChB,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,gCAAgC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,iBAAiB,CAAC,0BAA0B,IAAI,CAChD,8BACG,OAAO,CAAC,mBAAmB,CAAC,eAAe,CAAC,MAAM,CAAC;gCAClD,mBAAmB,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,CACrD,KAAC,wBAAwB,IAEvB,iBAAiB,EAAE,iBAAiB,EACpC,UAAU,EAAE,UAAU,EACtB,uBAAuB,EAAE,SAAS,IAH7B,SAAS,CAAC,IAAI,CAInB,CACH,CAAC,EACH,CAAC,mBAAmB,CAAC,eAAe,CAAC,MAAM,IAAI,CAC9C,KAAC,qBAAqB,IACpB,IAAI,EAAC,iBAAiB,EACtB,QAAQ,EAAE,UAAU,EACpB,OAAO,EAAE,YAAY,EACrB,eAAe,EAAC,KAAK,EACrB,WAAW,EAAC,cAAc,EAC1B,WAAW,EAAC,8BAA8B,GAC1C,CACH,IACA,CACJ,EACA,iBAAiB,CAAC,0BAA0B,IAAI,CAC/C,KAAC,iBAAiB,+CAAiD,CACpE,IACG,EACL,mBAAmB,CAAC,iBAAiB,IAAI,CACxC,KAAC,wBAAwB,IACvB,iBAAiB,EAAE,iBAAiB,EACpC,oBAAoB,EAAE,mBAAmB,CAAC,iBAAiB,GAC3D,CACH,EACA,mBAAmB,CAAC,0BAA0B,CAAC,SAAS,IAAI,CAC3D,KAAC,2BAA2B,IAC1B,KAAK,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,EAChD,eAAe,EAAE,iBAAiB,CAAC,iBAAiB,EACpD,qBAAqB,EAAE,mBAAmB,GAC1C,CACH,IACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderPropertyExpressionEditor.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderPropertyExpressionEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAWH,OAAO,EAKL,KAAK,mCAAmC,EACzC,MAAM,8CAA8C,CAAC;AAEtD,OAAO,EAGL,KAAK,wCAAwC,EAC9C,MAAM,iDAAiD,CAAC;
|
1
|
+
{"version":3,"file":"QueryBuilderPropertyExpressionEditor.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderPropertyExpressionEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAWH,OAAO,EAKL,KAAK,mCAAmC,EACzC,MAAM,8CAA8C,CAAC;AAEtD,OAAO,EAGL,KAAK,wCAAwC,EAC9C,MAAM,iDAAiD,CAAC;AAqKzD,eAAO,MAAM,oCAAoC,WACvC;IAAE,uBAAuB,EAAE,mCAAmC,CAAA;CAAE;;CA+DzE,CAAC;AAEF,eAAO,MAAM,mCAAmC;6BAEnB,mCAAmC;uCAEpD,wCAAwC,KAC3C,IAAI;;;CAyGZ,CAAC"}
|
@@ -25,13 +25,14 @@ import { VariableExpressionViewer } from './QueryBuilderParametersPanel.js';
|
|
25
25
|
import { QUERY_BUILDER_PARAMETER_DND_TYPE, } from '../stores/QueryBuilderParametersState.js';
|
26
26
|
import { Class, Enumeration, PrimitiveType, PRIMITIVE_TYPE, isSuperType, } from '@finos/legend-graph';
|
27
27
|
import { guaranteeNonNullable } from '@finos/legend-shared';
|
28
|
-
import {
|
28
|
+
import { BasicValueSpecificationEditor } from './shared/BasicValueSpecificationEditor.js';
|
29
|
+
import { functionExpression_setParameterValue } from '../stores/shared/ValueSpecificationModifierHelper.js';
|
29
30
|
const DerivedPropertyParameterValueEditor = observer((props) => {
|
30
31
|
const { derivedPropertyExpressionState, variable, idx } = props;
|
31
32
|
const graph = derivedPropertyExpressionState.queryBuilderState.graphManagerState.graph;
|
32
33
|
const parameterType = guaranteeNonNullable(derivedPropertyExpressionState.parameters[idx]?.genericType).value.rawType;
|
33
34
|
const handleDrop = useCallback((item) => {
|
34
|
-
|
35
|
+
functionExpression_setParameterValue(derivedPropertyExpressionState.propertyExpression, item.variable.parameter, idx + 1, derivedPropertyExpressionState.queryBuilderState.observableContext);
|
35
36
|
}, [derivedPropertyExpressionState, idx]);
|
36
37
|
const [{ isParameterValueDragOver }, dropTargetConnector] = useDrop(() => ({
|
37
38
|
accept: [QUERY_BUILDER_PARAMETER_DND_TYPE],
|
@@ -52,14 +53,15 @@ const DerivedPropertyParameterValueEditor = observer((props) => {
|
|
52
53
|
}),
|
53
54
|
}), [handleDrop]);
|
54
55
|
const resetParameterValue = () => {
|
55
|
-
|
56
|
+
functionExpression_setParameterValue(derivedPropertyExpressionState.propertyExpression, generateMilestonedPropertyParameterValue(derivedPropertyExpressionState, idx) ??
|
56
57
|
generateValueSpecificationForParameter(variable, derivedPropertyExpressionState.queryBuilderState.graphManagerState
|
57
|
-
.graph), derivedPropertyExpressionState.queryBuilderState.observableContext);
|
58
|
+
.graph), idx + 1, derivedPropertyExpressionState.queryBuilderState.observableContext);
|
58
59
|
};
|
59
60
|
return (_jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: variable.name }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: `${variable.multiplicity.lowerBound === 0 ? 'optional' : ''}` }), _jsx("div", { className: "query-builder__parameter-editor", children: _jsx(PanelDropZone, { isDragOver: isParameterValueDragOver, dropTargetConnector: dropTargetConnector, children: _jsx(BasicValueSpecificationEditor, { valueSpecification: guaranteeNonNullable(derivedPropertyExpressionState.parameterValues[idx]), setValueSpecification: (val) => {
|
60
|
-
|
61
|
+
functionExpression_setParameterValue(derivedPropertyExpressionState.propertyExpression, val, idx + 1, derivedPropertyExpressionState.queryBuilderState
|
61
62
|
.observableContext);
|
62
|
-
}, graph: graph,
|
63
|
+
}, graph: graph, obseverContext: derivedPropertyExpressionState.queryBuilderState
|
64
|
+
.observableContext, typeCheckOption: {
|
63
65
|
expectedType: parameterType,
|
64
66
|
match: parameterType ===
|
65
67
|
graph.getPrimitiveType(PRIMITIVE_TYPE.DATETIME),
|
@@ -82,7 +84,8 @@ export const QueryBuilderPropertyExpressionEditor = observer((props) => {
|
|
82
84
|
});
|
83
85
|
export const QueryBuilderPropertyExpressionBadge = observer((props) => {
|
84
86
|
const { propertyExpressionState, onPropertyExpressionChange } = props;
|
85
|
-
const type = propertyExpressionState.propertyExpression.func.genericType.value
|
87
|
+
const type = propertyExpressionState.propertyExpression.func.value.genericType.value
|
88
|
+
.rawType;
|
86
89
|
const hasDerivedPropertyInExpression = Boolean(propertyExpressionState.derivedPropertyExpressionStates.length);
|
87
90
|
const isValid = propertyExpressionState.isValid;
|
88
91
|
const setDerivedPropertyArguments = () => {
|
@@ -111,6 +114,6 @@ export const QueryBuilderPropertyExpressionBadge = observer((props) => {
|
|
111
114
|
'query-builder-property-expression-badge__content--primitive': type instanceof PrimitiveType,
|
112
115
|
}), children: [_jsx("div", { className: "query-builder-property-expression-badge__property", title: `${propertyExpressionState.title} - ${propertyExpressionState.path}`, children: propertyExpressionState.title }), hasDerivedPropertyInExpression && (_jsxs("button", { className: clsx('query-builder-property-expression-badge__action', {
|
113
116
|
'query-builder-property-expression-badge__action--error': !isValid,
|
114
|
-
}), tabIndex: -1, onClick: setDerivedPropertyArguments, title: "Set Derived Property Argument(s)...", children: [!isValid && _jsx(InfoCircleIcon, {}), " (...)"] })), _jsx(QueryBuilderPropertyExpressionEditor, { propertyExpressionState: propertyExpressionState }), _jsx(QueryBuilderPropertyInfoTooltip, { property: propertyExpressionState.propertyExpression.func, path: getPropertyPath(propertyExpressionState.propertyExpression), isMapped: true, placement: "bottom-end", children: _jsx("div", { className: "query-builder-property-expression-badge__property__info", children: _jsx(InfoCircleIcon, {}) }) })] }) }) }));
|
117
|
+
}), tabIndex: -1, onClick: setDerivedPropertyArguments, title: "Set Derived Property Argument(s)...", children: [!isValid && _jsx(InfoCircleIcon, {}), " (...)"] })), _jsx(QueryBuilderPropertyExpressionEditor, { propertyExpressionState: propertyExpressionState }), _jsx(QueryBuilderPropertyInfoTooltip, { property: propertyExpressionState.propertyExpression.func.value, path: getPropertyPath(propertyExpressionState.propertyExpression), isMapped: true, placement: "bottom-end", children: _jsx("div", { className: "query-builder-property-expression-badge__property__info", children: _jsx(InfoCircleIcon, {}) }) })] }) }) }));
|
115
118
|
});
|
116
119
|
//# sourceMappingURL=QueryBuilderPropertyExpressionEditor.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderPropertyExpressionEditor.js","sourceRoot":"","sources":["../../src/components/QueryBuilderPropertyExpressionEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EACL,IAAI,EACJ,MAAM,EACN,aAAa,EACb,cAAc,EACd,6BAA6B,GAC9B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,wCAAwC,EACxC,sCAAsC,EACtC,eAAe,GAGhB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EACL,oCAAoC,GAGrC,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAE,+BAA+B,EAAE,MAAM,6CAA6C,CAAC;AAC9F,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAEL,gCAAgC,GACjC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAGL,KAAK,EACL,WAAW,EACX,aAAa,EACb,cAAc,EACd,WAAW,GACZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,
|
1
|
+
{"version":3,"file":"QueryBuilderPropertyExpressionEditor.js","sourceRoot":"","sources":["../../src/components/QueryBuilderPropertyExpressionEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EACL,IAAI,EACJ,MAA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IAC9B,QAAQ,EAAE,uBAAuB,CAAC,kBAAkB,CAAC,IAAI,CAAC,KAAK,EAC/D,IAAI,EAAE,eAAe,CAAC,uBAAuB,CAAC,kBAAkB,CAAC,EACjE,QAAQ,EAAE,IAAI,EACd,SAAS,EAAC,YAAY,YAEtB,cAAK,SAAS,EAAC,yDAAyD,YACtE,KAAC,cAAc,KAAG,GACd,GAC0B,IAC9B,GACwB,GAC5B,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderResultPanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderResultPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAmBH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;
|
1
|
+
{"version":3,"file":"QueryBuilderResultPanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderResultPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAmBH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AA4WxE,eAAO,MAAM,uBAAuB,WAC1B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAiQjD,CAAC"}
|
@@ -19,7 +19,7 @@ import { BlankPanelContent, PanelLoadingIndicator, PlayIcon, DropdownMenu, MenuC
|
|
19
19
|
import { observer } from 'mobx-react-lite';
|
20
20
|
import { flowResult } from 'mobx';
|
21
21
|
import { InstanceValue, extractExecutionResultValues, TdsExecutionResult, RawExecutionResult, EXECUTION_SERIALIZATION_FORMAT, EnumValueInstanceValue, EnumValueExplicitReference, } from '@finos/legend-graph';
|
22
|
-
import { ActionAlertActionType, ActionAlertType, EDITOR_LANGUAGE, ExecutionPlanViewer,
|
22
|
+
import { ActionAlertActionType, ActionAlertType, EDITOR_LANGUAGE, ExecutionPlanViewer, TAB_SIZE, TextInputEditor, useApplicationStore, } from '@finos/legend-application';
|
23
23
|
import { assertErrorThrown, guaranteeNonNullable, isBoolean, } from '@finos/legend-shared';
|
24
24
|
import { forwardRef, useState } from 'react';
|
25
25
|
import { QueryBuilderDerivationProjectionColumnState, QueryBuilderProjectionColumnState, } from '../stores/fetch-structure/projection/QueryBuilderProjectionColumnState.js';
|
@@ -27,6 +27,8 @@ import { PostFilterConditionState, QueryBuilderPostFilterTreeConditionNodeData,
|
|
27
27
|
import { QueryBuilderPostFilterOperator_Equal, QueryBuilderPostFilterOperator_NotEqual, } from '../stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js';
|
28
28
|
import { QueryBuilderPostFilterOperator_In, QueryBuilderPostFilterOperator_NotIn, } from '../stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.js';
|
29
29
|
import { QueryBuilderProjectionState } from '../stores/fetch-structure/projection/QueryBuilderProjectionState.js';
|
30
|
+
import { instanceValue_setValue, instanceValue_setValues, } from '../stores/shared/ValueSpecificationModifierHelper.js';
|
31
|
+
import { PARAMETER_SUBMIT_ACTION } from '../stores/shared/LambdaParameterState.js';
|
30
32
|
const QueryBuilderGridResultContextMenu = observer(forwardRef(function QueryBuilderResultContextMenu(props, ref) {
|
31
33
|
const { event, projectionState } = props;
|
32
34
|
const applicationStore = useApplicationStore();
|
@@ -51,7 +53,7 @@ const QueryBuilderGridResultContextMenu = observer(forwardRef(function QueryBuil
|
|
51
53
|
.includes(n.condition.operator.getLabel()))[0];
|
52
54
|
const updateFilterConditionValue = (conditionValue) => {
|
53
55
|
if (event?.value !== null) {
|
54
|
-
|
56
|
+
instanceValue_setValue(conditionValue, conditionValue instanceof EnumValueInstanceValue
|
55
57
|
? EnumValueExplicitReference.create(guaranteeNonNullable((conditionValue.genericType?.ownerReference
|
56
58
|
.value).values.filter((v) => v.name === event?.value)[0]))
|
57
59
|
: event?.value, 0);
|
@@ -91,7 +93,7 @@ const QueryBuilderGridResultContextMenu = observer(forwardRef(function QueryBuil
|
|
91
93
|
const newValueSpecification = conditionState.operator.getDefaultFilterConditionValue(conditionState);
|
92
94
|
updateFilterConditionValue(newValueSpecification);
|
93
95
|
conditionState.changeOperator(isFilterBy ? postFilterInOperator : postFilterNotInOperator);
|
94
|
-
|
96
|
+
instanceValue_setValues(conditionState.value, [
|
95
97
|
currentValueSpecificaton,
|
96
98
|
newValueSpecification,
|
97
99
|
]);
|
@@ -109,7 +111,7 @@ const QueryBuilderGridResultContextMenu = observer(forwardRef(function QueryBuil
|
|
109
111
|
if (!doesValueAlreadyExist) {
|
110
112
|
const newValueSpecification = (isFilterBy ? postFilterEqualOperator : postFilterNotEqualOperator).getDefaultFilterConditionValue(conditionState);
|
111
113
|
updateFilterConditionValue(newValueSpecification);
|
112
|
-
|
114
|
+
instanceValue_setValues(conditionState.value, [
|
113
115
|
...conditionState.value.values,
|
114
116
|
newValueSpecification,
|
115
117
|
]);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderResultPanel.js","sourceRoot":"","sources":["../../src/components/QueryBuilderResultPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,eAAe,EACf,aAAa,EACb,WAAW,EACX,IAAI,EACJ,eAAe,EACf,uBAAuB,EACvB,YAAY,GACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,OAAO,EAGL,aAAa,EACb,4BAA4B,EAC5B,kBAAkB,EAClB,kBAAkB,EAClB,8BAA8B,EAC9B,sBAAsB,EACtB,0BAA0B,GAC3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,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AAe,IAEd,SAAS,EAAC,qDAAqD,EAC/D,OAAO,EAAE,GAAS,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,YAEzC,MAAM,IAJF,MAAM,CAKK,CACnB,CACF,GACW,EAEhB,SAAS,EAAE;oCACT,YAAY,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE;oCACzD,eAAe,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE;oCACzD,SAAS,EAAE,CAAC;iCACb,aAED,iBACE,SAAS,EAAC,gDAAgD,EAC1D,QAAQ,EAAE,CAAC,CAAC,EACZ,KAAK,EAAC,QAAQ,EACd,QAAQ,EAAE,CAAC,YAAY,uBAGhB,EACT,iBACE,SAAS,EAAC,kDAAkD,EAC5D,QAAQ,EAAE,CAAC,CAAC,EACZ,QAAQ,EAAE,CAAC,YAAY,YAEvB,KAAC,aAAa,KAAG,GACV,IACI,IACX,IACF,EACN,MAAC,YAAY,eACX,KAAC,qBAAqB,IACpB,SAAS,EACP,WAAW,CAAC,cAAc;4BAC1B,WAAW,CAAC,gBAAgB;4BAC5B,WAAW,CAAC,eAAe,CAAC,YAAY,GAE1C,EACD,CAAC,eAAe,IAAI,CACnB,KAAC,iBAAiB,oDAEE,CACrB,EACA,eAAe,IAAI,CAClB,cAAK,SAAS,EAAC,+BAA+B,YAC5C,KAAC,wBAAwB,IACvB,eAAe,EAAE,eAAe,EAChC,iBAAiB,EAAE,iBAAiB,GACpC,GACE,CACP,IACY,EACf,KAAC,mBAAmB,IAClB,kBAAkB,EAAE,WAAW,CAAC,kBAAkB,GAClD,IACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
1
|
+
{"version":3,"file":"QueryBuilderResultPanel.js","sourceRoot":"","sources":["../../src/components/QueryBuilderResultPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM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,cAAc;4BAC1B,WAAW,CAAC,gBAAgB;4BAC5B,WAAW,CAAC,eAAe,CAAC,YAAY,GAE1C,EACD,CAAC,eAAe,IAAI,CACnB,KAAC,iBAAiB,oDAEE,CACrB,EACA,eAAe,IAAI,CAClB,cAAK,SAAS,EAAC,+BAA+B,YAC5C,KAAC,wBAAwB,IACvB,eAAe,EAAE,eAAe,EAChC,iBAAiB,EAAE,iBAAiB,GACpC,GACE,CACP,IACY,EACf,KAAC,mBAAmB,IAClB,kBAAkB,EAAE,WAAW,CAAC,kBAAkB,GAClD,IACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -29,7 +29,7 @@ export const QueryBuilderTextEditor = observer((props) => {
|
|
29
29
|
const discardChanges = () => {
|
30
30
|
queryBuilderState.textEditorState.setMode(undefined);
|
31
31
|
// force close the backdrop just in case changes are discarded when there are grammar issues
|
32
|
-
queryBuilderState.
|
32
|
+
queryBuilderState.setShowBackdrop(false);
|
33
33
|
};
|
34
34
|
const mode = queryTextEditorState.mode;
|
35
35
|
useEffect(() => {
|
@@ -43,6 +43,6 @@ export const QueryBuilderTextEditor = observer((props) => {
|
|
43
43
|
'query-builder-text-mode__modal--has-error': Boolean(queryTextEditorState.parserError),
|
44
44
|
}), children: [_jsxs("div", { className: "modal__header", children: [_jsx("div", { className: "modal__title", children: "Query" }), queryTextEditorState.parserError && (_jsx("div", { className: "modal__title__error-badge", children: "Failed to parse query" }))] }), _jsx("div", { className: "modal__body", children: _jsxs("div", { className: clsx('query-builder-text-mode__modal__content', {
|
45
45
|
backdrop__element: Boolean(queryTextEditorState.parserError),
|
46
|
-
}), children: [mode === QueryBuilderTextEditorMode.TEXT && (_jsx(QueryBuilderLambdaEditor, { className:
|
46
|
+
}), children: [mode === QueryBuilderTextEditorMode.TEXT && (_jsx(QueryBuilderLambdaEditor, { className: "query-builder-text-mode__lambda-editor", disabled: queryTextEditorState.isConvertingLambdaToString, queryBuilderState: queryBuilderState, lambdaEditorState: queryTextEditorState, forceBackdrop: false, forceExpansion: true, useBaseTextEditorSettings: true, hideErrorBar: true, disablePopUp: true })), mode === QueryBuilderTextEditorMode.JSON && (_jsx(TextInputEditor, { language: EDITOR_LANGUAGE.JSON, inputValue: queryTextEditorState.readOnlylambdaJson, isReadOnly: true }))] }) }), _jsxs("div", { className: "modal__footer", children: [mode === QueryBuilderTextEditorMode.TEXT && (_jsx("button", { className: "btn btn--dark btn--caution", onClick: discardChanges, children: "Discard changes" })), _jsx("button", { className: "btn btn--dark", onClick: close, disabled: Boolean(queryTextEditorState.parserError), children: "Close" })] })] }) }));
|
47
47
|
});
|
48
48
|
//# sourceMappingURL=QueryBuilderTextEditor.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderTextEditor.js","sourceRoot":"","sources":["../../src/components/QueryBuilderTextEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AACtF,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EACL,eAAe,EACf,eAAe,EACf,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,CAAC,MAAM,sBAAsB,GAAG,QAAQ,CAC5C,CAAC,KAA+C,EAAE,EAAE;IAClD,MAAM,EAAE,iBAAiB,EAAE,GAAG,KAAK,CAAC;IACpC,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAC/C,MAAM,oBAAoB,GAAG,iBAAiB,CAAC,eAAe,CAAC;IAC/D,MAAM,KAAK,GAAG,gBAAgB,CAAC,mB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Y,EAAE,IAAI,EAClB,YAAY,EAAE,IAAI,GAClB,CACH,EACA,IAAI,KAAK,0BAA0B,CAAC,IAAI,IAAI,CAC3C,KAAC,eAAe,IACd,QAAQ,EAAE,eAAe,CAAC,IAAI,EAC9B,UAAU,EAAE,oBAAoB,CAAC,kBAAkB,EACnD,UAAU,EAAE,IAAI,GAChB,CACH,IACG,GACF,EACN,eAAK,SAAS,EAAC,eAAe,aAC3B,IAAI,KAAK,0BAA0B,CAAC,IAAI,IAAI,CAC3C,iBACE,SAAS,EAAC,4BAA4B,EACtC,OAAO,EAAE,cAAc,gCAGhB,CACV,EACD,iBACE,SAAS,EAAC,eAAe,EACzB,OAAO,EAAE,KAAK,EACd,QAAQ,EAAE,OAAO,CAAC,oBAAoB,CAAC,WAAW,CAAC,sBAG5C,IACL,IACF,GACC,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -14,6 +14,7 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
export declare enum QUERY_BUILDER_TEST_ID {
|
17
|
+
LAMBDA_EDITOR__EDITOR_INPUT = "lambda-editor__editor__input",
|
17
18
|
QUERY_BUILDER = "query__builder",
|
18
19
|
QUERY_BUILDER_SETUP = "query__builder__setup",
|
19
20
|
QUERY_BUILDER_PROJECTION = "query__builder__projection",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilder_TestID.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilder_TestID.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,qBAAqB;IAC/B,aAAa,mBAAmB;IAChC,mBAAmB,0BAA0B;IAC7C,wBAAwB,+BAA+B;IACvD,yBAAyB,iCAAiC;IAC1D,oBAAoB,2BAA2B;IAC/C,yBAAyB,gCAAgC;IACzD,sBAAsB,6BAA6B;IACnD,mCAAmC,4CAA4C;CAChF"}
|
1
|
+
{"version":3,"file":"QueryBuilder_TestID.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilder_TestID.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,qBAAqB;IAC/B,2BAA2B,iCAAiC;IAE5D,aAAa,mBAAmB;IAChC,mBAAmB,0BAA0B;IAC7C,wBAAwB,+BAA+B;IACvD,yBAAyB,iCAAiC;IAC1D,oBAAoB,2BAA2B;IAC/C,yBAAyB,gCAAgC;IACzD,sBAAsB,6BAA6B;IACnD,mCAAmC,4CAA4C;CAChF"}
|
@@ -15,6 +15,7 @@
|
|
15
15
|
*/
|
16
16
|
export var QUERY_BUILDER_TEST_ID;
|
17
17
|
(function (QUERY_BUILDER_TEST_ID) {
|
18
|
+
QUERY_BUILDER_TEST_ID["LAMBDA_EDITOR__EDITOR_INPUT"] = "lambda-editor__editor__input";
|
18
19
|
QUERY_BUILDER_TEST_ID["QUERY_BUILDER"] = "query__builder";
|
19
20
|
QUERY_BUILDER_TEST_ID["QUERY_BUILDER_SETUP"] = "query__builder__setup";
|
20
21
|
QUERY_BUILDER_TEST_ID["QUERY_BUILDER_PROJECTION"] = "query__builder__projection";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilder_TestID.js","sourceRoot":"","sources":["../../src/components/QueryBuilder_TestID.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,
|
1
|
+
{"version":3,"file":"QueryBuilder_TestID.js","sourceRoot":"","sources":["../../src/components/QueryBuilder_TestID.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,qBAWX;AAXD,WAAY,qBAAqB;IAC/B,qFAA4D,CAAA;IAE5D,yDAAgC,CAAA;IAChC,sEAA6C,CAAA;IAC7C,gFAAuD,CAAA;IACvD,mFAA0D,CAAA;IAC1D,wEAA+C,CAAA;IAC/C,kFAAyD,CAAA;IACzD,4EAAmD,CAAA;IACnD,wGAA+E,CAAA;AACjF,CAAC,EAXW,qBAAqB,GAArB,qBAAqB,KAArB,qBAAqB,QAWhC"}
|
@@ -185,7 +185,7 @@ const QueryBuilderExplorerTreeNodeContainer = observer((props) => {
|
|
185
185
|
return null;
|
186
186
|
}
|
187
187
|
return (_jsx(ContextMenu, { content: _jsx(QueryBuilderExplorerContextMenu, { queryBuilderState: queryBuilderState, openNode: openNode, node: node }), disabled: !(node instanceof QueryBuilderExplorerTreePropertyNodeData) ||
|
188
|
-
queryBuilderState.
|
188
|
+
queryBuilderState.showBackdrop, menuProps: { elevation: 7 }, onOpen: onContextMenuOpen, onClose: onContextMenuClose, children: _jsxs("div", { className: clsx('tree-view__node__container query-builder-explorer-tree__node__container', {
|
189
189
|
'query-builder-explorer-tree__node__container--selected-from-context-menu': isSelectedFromContextMenu,
|
190
190
|
'query-builder-explorer-tree__node__container--unmapped': !node.mappingData.mapped,
|
191
191
|
'query-builder-explorer-tree__node__container--selected': node.isSelected,
|
@@ -320,7 +320,7 @@ export const QueryBuilderExplorerPanel = observer((props) => {
|
|
320
320
|
flowResult(explorerState.analyzeMappingModelCoverage()).catch(applicationStore.alertUnhandledError);
|
321
321
|
}, [applicationStore, explorerState, queryBuilderState.mapping]);
|
322
322
|
return (_jsxs("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_EXPLORER, className: clsx('panel query-builder__explorer', {
|
323
|
-
backdrop__element: queryBuilderState.
|
323
|
+
backdrop__element: queryBuilderState.showBackdrop,
|
324
324
|
}), children: [_jsxs("div", { className: "panel__header", children: [_jsx("div", { className: "panel__header__title", children: _jsx("div", { className: "panel__header__title__label", children: "explorer" }) }), _jsxs("div", { className: "panel__header__actions", children: [_jsx("button", { ref: searchButtonRef, className: clsx('panel__header__action', {
|
325
325
|
'query-builder__explorer__header__action--active': propertySearchPanelState.isSearchPanelOpen,
|
326
326
|
}), onClick: togglePropertySearch, tabIndex: -1, title: "Toggle property search", children: _jsx(SearchIcon, {}) }), _jsx("button", { className: "panel__header__action", onClick: collapseTree, tabIndex: -1, title: "Collapse Tree", children: _jsx(CompressIcon, {}) }), _jsx(DropdownMenu, { className: "panel__header__action", content: _jsxs(MenuContent, { children: [_jsxs(MenuContentItem, { onClick: toggleShowUnmappedProperties, children: [_jsx(MenuContentItemIcon, { children: explorerState.showUnmappedProperties ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Show Unmapped Properties" })] }), _jsxs(MenuContentItem, { onClick: toggleHumanizePropertyName, children: [_jsx(MenuContentItemIcon, { children: explorerState.humanizePropertyName ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Humanize Property Name" })] }), _jsxs(MenuContentItem, { onClick: toggleHighlightUsedProperties, children: [_jsx(MenuContentItemIcon, { children: explorerState.highlightUsedProperties ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Highlight already used properties" })] })] }), menuProps: {
|