@finos/legend-query-builder 4.14.34 → 4.14.36
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/__lib__/QueryBuilderTesting.d.ts +1 -0
- package/lib/__lib__/QueryBuilderTesting.d.ts.map +1 -1
- package/lib/__lib__/QueryBuilderTesting.js +1 -0
- package/lib/__lib__/QueryBuilderTesting.js.map +1 -1
- package/lib/components/QueryBuilder.d.ts.map +1 -1
- package/lib/components/QueryBuilder.js +37 -17
- package/lib/components/QueryBuilder.js.map +1 -1
- package/lib/components/QueryBuilderConstantExpressionPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderConstantExpressionPanel.js +30 -13
- package/lib/components/QueryBuilderConstantExpressionPanel.js.map +1 -1
- package/lib/components/QueryBuilderParametersPanel.js.map +1 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts.map +1 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.js +2 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -1
- package/lib/components/QueryBuilderSideBar.d.ts +2 -18
- package/lib/components/QueryBuilderSideBar.d.ts.map +1 -1
- package/lib/components/QueryBuilderSideBar.js +32 -104
- package/lib/components/QueryBuilderSideBar.js.map +1 -1
- package/lib/components/QueryLoader.js.map +1 -1
- package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.d.ts.map +1 -1
- package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js.map +1 -1
- package/lib/components/data-access/DataAccessOverview.js.map +1 -1
- package/lib/components/execution-plan/ConstantExecutionNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/DataTypeResultTypeViewer.js.map +1 -1
- package/lib/components/execution-plan/ExecutionPlanViewer.js.map +1 -1
- package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.js +1 -2
- package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/ImplementationViewer.js.map +1 -1
- package/lib/components/execution-plan/ResultTypeViewer.js.map +1 -1
- package/lib/components/execution-plan/SQLExecutionNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/SequenceExecutionNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/TempTableStrategyViewer.js.map +1 -1
- package/lib/components/explorer/QueryBuilderExplorerPanel.js.map +1 -1
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js.map +1 -1
- package/lib/components/explorer/QueryBuilderMilestoningEditor.js.map +1 -1
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +2 -1
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +50 -5
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSComponentHelper.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +2 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js.map +1 -1
- package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +1 -1
- package/lib/components/filter/QueryBuilderFilterPanel.js +2 -1
- package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
- package/lib/components/result/QueryBuilderResultPanel.js.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSGridResult.js.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSResultShared.js.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.js.map +1 -1
- package/lib/components/shared/BasicValueSpecificationEditor.d.ts +0 -1
- package/lib/components/shared/BasicValueSpecificationEditor.d.ts.map +1 -1
- package/lib/components/shared/BasicValueSpecificationEditor.js +62 -28
- package/lib/components/shared/BasicValueSpecificationEditor.js.map +1 -1
- package/lib/components/shared/CustomDatePicker.d.ts +1 -0
- package/lib/components/shared/CustomDatePicker.d.ts.map +1 -1
- package/lib/components/shared/CustomDatePicker.js +15 -10
- package/lib/components/shared/CustomDatePicker.js.map +1 -1
- package/lib/components/shared/LambdaEditor.js +1 -1
- package/lib/components/shared/LambdaEditor.js.map +1 -1
- package/lib/components/shared/LambdaParameterValuesEditor.js.map +1 -1
- package/lib/components/shared/QueryBuilderPanelIssueCountBadge.js.map +1 -1
- package/lib/components/shared/QueryBuilderVariableSelector.d.ts +1 -0
- package/lib/components/shared/QueryBuilderVariableSelector.d.ts.map +1 -1
- package/lib/components/shared/QueryBuilderVariableSelector.js +2 -2
- package/lib/components/shared/QueryBuilderVariableSelector.js.map +1 -1
- package/lib/components/workflows/ClassQueryBuilder.d.ts.map +1 -1
- package/lib/components/workflows/ClassQueryBuilder.js +19 -16
- package/lib/components/workflows/ClassQueryBuilder.js.map +1 -1
- package/lib/components/workflows/MappingQueryBuilder.d.ts.map +1 -1
- package/lib/components/workflows/MappingQueryBuilder.js +18 -15
- package/lib/components/workflows/MappingQueryBuilder.js.map +1 -1
- package/lib/components/workflows/ServiceQueryBuilder.d.ts.map +1 -1
- package/lib/components/workflows/ServiceQueryBuilder.js +13 -10
- package/lib/components/workflows/ServiceQueryBuilder.js.map +1 -1
- package/lib/graph-manager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/package.json +16 -16
- package/lib/stores/QueryBuilderChangeDetectionState.js.map +1 -1
- package/lib/stores/QueryBuilderChangeHistoryState.js.map +1 -1
- package/lib/stores/QueryBuilderConstantsState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderConstantsState.js +2 -1
- package/lib/stores/QueryBuilderConstantsState.js.map +1 -1
- package/lib/stores/QueryBuilderGroupOperationHelper.js.map +1 -1
- package/lib/stores/QueryBuilderPropertyEditorState.d.ts +1 -1
- package/lib/stores/QueryBuilderPropertyEditorState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderPropertyEditorState.js +14 -35
- package/lib/stores/QueryBuilderPropertyEditorState.js.map +1 -1
- package/lib/stores/QueryBuilderResultState.js.map +1 -1
- package/lib/stores/QueryBuilderState.d.ts +3 -0
- package/lib/stores/QueryBuilderState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderState.js +15 -1
- package/lib/stores/QueryBuilderState.js.map +1 -1
- package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
- package/lib/stores/QueryBuilderTextEditorState.js.map +1 -1
- package/lib/stores/QueryBuilderTypeaheadHelper.js.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts +2 -1
- package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationHelper.js +23 -1
- package/lib/stores/QueryBuilderValueSpecificationHelper.js.map +1 -1
- package/lib/stores/QueryBuilder_LegendApplicationPlugin_Extension.d.ts +13 -0
- package/lib/stores/QueryBuilder_LegendApplicationPlugin_Extension.d.ts.map +1 -1
- package/lib/stores/QueryLoaderState.js.map +1 -1
- package/lib/stores/__test-utils__/QueryBuilderStateTestUtils.js.map +1 -1
- package/lib/stores/data-access/DataAccessState.js.map +1 -1
- package/lib/stores/entitlements/QueryBuilderCheckEntitlementsState.js.map +1 -1
- package/lib/stores/execution-plan/ExecutionPlanState.js.map +1 -1
- package/lib/stores/explorer/QueryBuilderExplorerState.js.map +1 -1
- package/lib/stores/explorer/QueryBuilderPropertySearchState.js.map +1 -1
- package/lib/stores/explorer/QueryFunctionsExplorerState.js.map +1 -1
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts +2 -0
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js +2 -0
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js.map +1 -1
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.js.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts +2 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js +6 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSHelper.js.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts +2 -0
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +16 -0
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunction.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Average.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Count.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Max.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Min.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Sum.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts +3 -0
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js +42 -3
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js +6 -5
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js +6 -5
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js +8 -37
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js +7 -10
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js +7 -10
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js +6 -5
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderRelationProjectValueSpecBuidler.js.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderTypedProjectionStateBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowStateBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Average.js.map +1 -1
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Count.js.map +1 -1
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Max.js.map +1 -1
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Min.js.map +1 -1
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Sum.js.map +1 -1
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_AverageRank.js.map +1 -1
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_DenseRank.js.map +1 -1
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_Rank.js.map +1 -1
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_RowNumber.js.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterState.d.ts +3 -0
- package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterState.js +30 -2
- package/lib/stores/filter/QueryBuilderFilterState.js.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterStateBuilder.js.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperatorValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js +5 -4
- 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 +5 -4
- 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 +7 -35
- 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 +6 -8
- 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 +6 -8
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js.map +1 -1
- 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 +6 -8
- 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 +6 -8
- 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 +5 -4
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js.map +1 -1
- package/lib/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.js.map +1 -1
- package/lib/stores/milestoning/QueryBuilderBusinessTemporalMilestoningImplementation.js.map +1 -1
- package/lib/stores/milestoning/QueryBuilderMilestoningHelper.js.map +1 -1
- package/lib/stores/milestoning/QueryBuilderMilestoningState.js.map +1 -1
- package/lib/stores/milestoning/QueryBuilderProcessingTemporalMilestoningImplementation.js.map +1 -1
- package/lib/stores/query-workflow/QueryBuilderWorkFlowState.d.ts +5 -0
- package/lib/stores/query-workflow/QueryBuilderWorkFlowState.d.ts.map +1 -1
- package/lib/stores/query-workflow/QueryBuilderWorkFlowState.js +7 -0
- package/lib/stores/query-workflow/QueryBuilderWorkFlowState.js.map +1 -1
- package/lib/stores/shared/LambdaEditorState.js.map +1 -1
- package/lib/stores/shared/LambdaParameterState.js.map +1 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts +1 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts.map +1 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.js +20 -10
- package/lib/stores/shared/ValueSpecificationEditorHelper.js.map +1 -1
- package/lib/stores/watermark/QueryBuilderWatermarkState.d.ts +0 -2
- package/lib/stores/watermark/QueryBuilderWatermarkState.d.ts.map +1 -1
- package/lib/stores/watermark/QueryBuilderWatermarkState.js +0 -6
- package/lib/stores/watermark/QueryBuilderWatermarkState.js.map +1 -1
- package/lib/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/workflows/ClassQueryBuilderState.js.map +1 -1
- package/lib/stores/workflows/MappingQueryBuilderState.d.ts +2 -2
- package/lib/stores/workflows/MappingQueryBuilderState.d.ts.map +1 -1
- package/lib/stores/workflows/MappingQueryBuilderState.js +2 -1
- package/lib/stores/workflows/MappingQueryBuilderState.js.map +1 -1
- package/lib/stores/workflows/ServiceQueryBuilderState.d.ts +2 -2
- package/lib/stores/workflows/ServiceQueryBuilderState.d.ts.map +1 -1
- package/lib/stores/workflows/ServiceQueryBuilderState.js +2 -1
- package/lib/stores/workflows/ServiceQueryBuilderState.js.map +1 -1
- package/package.json +24 -24
- package/src/__lib__/QueryBuilderTesting.ts +1 -0
- package/src/components/QueryBuilder.tsx +89 -46
- package/src/components/QueryBuilderConstantExpressionPanel.tsx +41 -19
- package/src/components/QueryBuilderParametersPanel.tsx +7 -7
- package/src/components/QueryBuilderPropertyExpressionEditor.tsx +2 -0
- package/src/components/QueryBuilderSideBar.tsx +138 -339
- package/src/components/execution-plan/FunctionParametersValidationNodeViewer.tsx +3 -2
- package/src/components/explorer/QueryBuilderExplorerPanel.tsx +4 -4
- package/src/components/explorer/QueryBuilderPropertySearchPanel.tsx +4 -4
- package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +8 -3
- package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +139 -1
- package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +21 -4
- package/src/components/fetch-structure/QueryBuilderTDSWindowPanel.tsx +4 -4
- package/src/components/filter/QueryBuilderFilterPanel.tsx +12 -6
- package/src/components/result/tds/QueryBuilderTDSResultShared.tsx +2 -2
- package/src/components/result/tds/QueryBuilderTDSSimpleGridResult.tsx +1 -1
- package/src/components/shared/BasicValueSpecificationEditor.tsx +96 -34
- package/src/components/shared/CustomDatePicker.tsx +30 -22
- package/src/components/shared/QueryBuilderVariableSelector.tsx +2 -2
- package/src/components/workflows/ClassQueryBuilder.tsx +79 -77
- package/src/components/workflows/MappingQueryBuilder.tsx +75 -76
- package/src/components/workflows/ServiceQueryBuilder.tsx +71 -70
- package/src/index.ts +2 -1
- package/src/stores/QueryBuilderConstantsState.ts +2 -0
- package/src/stores/QueryBuilderPropertyEditorState.ts +17 -56
- package/src/stores/QueryBuilderState.ts +23 -1
- package/src/stores/QueryBuilderValueSpecificationHelper.ts +32 -0
- package/src/stores/QueryBuilder_LegendApplicationPlugin_Extension.ts +18 -0
- package/src/stores/explorer/QueryBuilderExplorerState.ts +2 -2
- package/src/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.ts +4 -0
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts +8 -0
- package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +33 -0
- package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.ts +59 -0
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.ts +5 -5
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.ts +5 -5
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.ts +10 -69
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.ts +7 -18
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.ts +7 -18
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts +5 -5
- package/src/stores/filter/QueryBuilderFilterState.ts +48 -2
- 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 +10 -71
- package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.ts +6 -14
- package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.ts +6 -14
- package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThan.ts +6 -14
- package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.ts +6 -14
- package/src/stores/filter/operators/QueryBuilderFilterOperator_StartWith.ts +5 -5
- package/src/stores/query-workflow/QueryBuilderWorkFlowState.ts +10 -0
- package/src/stores/shared/ValueSpecificationEditorHelper.ts +32 -16
- package/src/stores/watermark/QueryBuilderWatermarkState.ts +0 -7
- package/src/stores/workflows/MappingQueryBuilderState.ts +7 -1
- package/src/stores/workflows/ServiceQueryBuilderState.ts +6 -1
- package/tsconfig.json +17 -2
- package/tsconfig.package.json +17 -1
- package/lib/components/watermark/QueryBuilderWatermark.d.ts +0 -22
- package/lib/components/watermark/QueryBuilderWatermark.d.ts.map +0 -1
- package/lib/components/watermark/QueryBuilderWatermark.js +0 -83
- package/lib/components/watermark/QueryBuilderWatermark.js.map +0 -1
- package/src/components/watermark/QueryBuilderWatermark.tsx +0 -218
@@ -36,12 +36,11 @@ import {
|
|
36
36
|
} from './QueryBuilderFilterOperatorValueSpecificationBuilder.js';
|
37
37
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../graph/QueryBuilderMetaModelConst.js';
|
38
38
|
import {
|
39
|
-
generateDefaultValueForPrimitiveType,
|
40
39
|
getNonCollectionValueSpecificationType,
|
41
40
|
isTypeCompatibleForAssignment,
|
42
41
|
} from '../../QueryBuilderValueSpecificationHelper.js';
|
43
42
|
import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../../QueryBuilderStateHashUtils.js';
|
44
|
-
import {
|
43
|
+
import { buildDefaultInstanceValue } from '../../shared/ValueSpecificationEditorHelper.js';
|
45
44
|
|
46
45
|
export class QueryBuilderFilterOperator_LessThan
|
47
46
|
extends QueryBuilderFilterOperator
|
@@ -94,22 +93,15 @@ export class QueryBuilderFilterOperator_LessThan
|
|
94
93
|
case PRIMITIVE_TYPE.FLOAT:
|
95
94
|
case PRIMITIVE_TYPE.INTEGER:
|
96
95
|
case PRIMITIVE_TYPE.STRICTDATE:
|
97
|
-
case PRIMITIVE_TYPE.DATETIME:
|
98
|
-
return buildPrimitiveInstanceValue(
|
99
|
-
filterConditionState.filterState.queryBuilderState.graphManagerState
|
100
|
-
.graph,
|
101
|
-
propertyType.path,
|
102
|
-
generateDefaultValueForPrimitiveType(propertyType.path),
|
103
|
-
filterConditionState.filterState.queryBuilderState.observerContext,
|
104
|
-
);
|
105
|
-
}
|
96
|
+
case PRIMITIVE_TYPE.DATETIME:
|
106
97
|
case PRIMITIVE_TYPE.DATE: {
|
107
|
-
return
|
98
|
+
return buildDefaultInstanceValue(
|
108
99
|
filterConditionState.filterState.queryBuilderState.graphManagerState
|
109
100
|
.graph,
|
110
|
-
|
111
|
-
generateDefaultValueForPrimitiveType(propertyType.path),
|
101
|
+
propertyType,
|
112
102
|
filterConditionState.filterState.queryBuilderState.observerContext,
|
103
|
+
filterConditionState.filterState.queryBuilderState
|
104
|
+
.INTERNAL__enableInitializingDefaultSimpleExpressionValue,
|
113
105
|
);
|
114
106
|
}
|
115
107
|
default:
|
@@ -36,12 +36,11 @@ import {
|
|
36
36
|
} from './QueryBuilderFilterOperatorValueSpecificationBuilder.js';
|
37
37
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../graph/QueryBuilderMetaModelConst.js';
|
38
38
|
import {
|
39
|
-
generateDefaultValueForPrimitiveType,
|
40
39
|
getNonCollectionValueSpecificationType,
|
41
40
|
isTypeCompatibleForAssignment,
|
42
41
|
} from '../../QueryBuilderValueSpecificationHelper.js';
|
43
42
|
import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../../QueryBuilderStateHashUtils.js';
|
44
|
-
import {
|
43
|
+
import { buildDefaultInstanceValue } from '../../shared/ValueSpecificationEditorHelper.js';
|
45
44
|
|
46
45
|
export class QueryBuilderFilterOperator_LessThanEqual
|
47
46
|
extends QueryBuilderFilterOperator
|
@@ -94,22 +93,15 @@ export class QueryBuilderFilterOperator_LessThanEqual
|
|
94
93
|
case PRIMITIVE_TYPE.FLOAT:
|
95
94
|
case PRIMITIVE_TYPE.INTEGER:
|
96
95
|
case PRIMITIVE_TYPE.STRICTDATE:
|
97
|
-
case PRIMITIVE_TYPE.DATETIME:
|
98
|
-
return buildPrimitiveInstanceValue(
|
99
|
-
filterConditionState.filterState.queryBuilderState.graphManagerState
|
100
|
-
.graph,
|
101
|
-
propertyType.path,
|
102
|
-
generateDefaultValueForPrimitiveType(propertyType.path),
|
103
|
-
filterConditionState.filterState.queryBuilderState.observerContext,
|
104
|
-
);
|
105
|
-
}
|
96
|
+
case PRIMITIVE_TYPE.DATETIME:
|
106
97
|
case PRIMITIVE_TYPE.DATE: {
|
107
|
-
return
|
98
|
+
return buildDefaultInstanceValue(
|
108
99
|
filterConditionState.filterState.queryBuilderState.graphManagerState
|
109
100
|
.graph,
|
110
|
-
|
111
|
-
generateDefaultValueForPrimitiveType(propertyType.path),
|
101
|
+
propertyType,
|
112
102
|
filterConditionState.filterState.queryBuilderState.observerContext,
|
103
|
+
filterConditionState.filterState.queryBuilderState
|
104
|
+
.INTERNAL__enableInitializingDefaultSimpleExpressionValue,
|
113
105
|
);
|
114
106
|
}
|
115
107
|
default:
|
@@ -37,12 +37,11 @@ import {
|
|
37
37
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../graph/QueryBuilderMetaModelConst.js';
|
38
38
|
import {
|
39
39
|
buildNotExpression,
|
40
|
-
generateDefaultValueForPrimitiveType,
|
41
40
|
getNonCollectionValueSpecificationType,
|
42
41
|
unwrapNotExpression,
|
43
42
|
} from '../../QueryBuilderValueSpecificationHelper.js';
|
44
43
|
import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../../QueryBuilderStateHashUtils.js';
|
45
|
-
import {
|
44
|
+
import { buildDefaultInstanceValue } from '../../shared/ValueSpecificationEditorHelper.js';
|
46
45
|
|
47
46
|
export class QueryBuilderFilterOperator_StartWith
|
48
47
|
extends QueryBuilderFilterOperator
|
@@ -79,12 +78,13 @@ export class QueryBuilderFilterOperator_StartWith
|
|
79
78
|
.genericType.value.rawType;
|
80
79
|
switch (propertyType.path) {
|
81
80
|
case PRIMITIVE_TYPE.STRING: {
|
82
|
-
return
|
81
|
+
return buildDefaultInstanceValue(
|
83
82
|
filterConditionState.filterState.queryBuilderState.graphManagerState
|
84
83
|
.graph,
|
85
|
-
propertyType
|
86
|
-
generateDefaultValueForPrimitiveType(propertyType.path),
|
84
|
+
propertyType,
|
87
85
|
filterConditionState.filterState.queryBuilderState.observerContext,
|
86
|
+
filterConditionState.filterState.queryBuilderState
|
87
|
+
.INTERNAL__enableInitializingDefaultSimpleExpressionValue,
|
88
88
|
);
|
89
89
|
}
|
90
90
|
default:
|
@@ -21,12 +21,22 @@ export interface FetchStructureLayoutConfig {
|
|
21
21
|
showInFetchPanel: boolean;
|
22
22
|
}
|
23
23
|
|
24
|
+
export class QueryBuilderActionConfig {
|
25
|
+
static INSTANCE = new QueryBuilderActionConfig();
|
26
|
+
}
|
27
|
+
|
24
28
|
export abstract class QueryBuilderWorkflowState {
|
29
|
+
actionConfig = QueryBuilderActionConfig.INSTANCE;
|
30
|
+
|
25
31
|
abstract get showStatusBar(): boolean;
|
26
32
|
|
27
33
|
abstract getFetchStructureLayoutConfig(
|
28
34
|
state: QueryBuilderState,
|
29
35
|
): FetchStructureLayoutConfig;
|
36
|
+
|
37
|
+
updateActionConfig(actionConfig: QueryBuilderActionConfig): void {
|
38
|
+
this.actionConfig = actionConfig;
|
39
|
+
}
|
30
40
|
}
|
31
41
|
|
32
42
|
export class QueryBuilderAdvancedWorkflowState extends QueryBuilderWorkflowState {
|
@@ -134,11 +134,11 @@ export const buildDefaultInstanceValue = (
|
|
134
134
|
graph: PureModel,
|
135
135
|
type: Type,
|
136
136
|
observerContext: ObserverContext,
|
137
|
+
enableInitializingDefaultValue: boolean,
|
137
138
|
): ValueSpecification => {
|
138
139
|
const path = type.path;
|
139
140
|
switch (path) {
|
140
141
|
case PRIMITIVE_TYPE.STRING:
|
141
|
-
case PRIMITIVE_TYPE.BOOLEAN:
|
142
142
|
case PRIMITIVE_TYPE.STRICTDATE:
|
143
143
|
case PRIMITIVE_TYPE.DATETIME:
|
144
144
|
case PRIMITIVE_TYPE.NUMBER:
|
@@ -147,6 +147,16 @@ export const buildDefaultInstanceValue = (
|
|
147
147
|
case PRIMITIVE_TYPE.BINARY:
|
148
148
|
case PRIMITIVE_TYPE.BYTE:
|
149
149
|
case PRIMITIVE_TYPE.INTEGER: {
|
150
|
+
return buildPrimitiveInstanceValue(
|
151
|
+
graph,
|
152
|
+
path,
|
153
|
+
enableInitializingDefaultValue
|
154
|
+
? generateDefaultValueForPrimitiveType(path)
|
155
|
+
: null,
|
156
|
+
observerContext,
|
157
|
+
);
|
158
|
+
}
|
159
|
+
case PRIMITIVE_TYPE.BOOLEAN: {
|
150
160
|
return buildPrimitiveInstanceValue(
|
151
161
|
graph,
|
152
162
|
path,
|
@@ -158,29 +168,34 @@ export const buildDefaultInstanceValue = (
|
|
158
168
|
return buildPrimitiveInstanceValue(
|
159
169
|
graph,
|
160
170
|
PRIMITIVE_TYPE.STRICTDATE,
|
161
|
-
|
171
|
+
enableInitializingDefaultValue
|
172
|
+
? generateDefaultValueForPrimitiveType(path)
|
173
|
+
: null,
|
162
174
|
observerContext,
|
163
175
|
);
|
164
176
|
}
|
165
177
|
default:
|
166
178
|
if (type instanceof Enumeration) {
|
167
|
-
|
168
|
-
|
169
|
-
GenericTypeExplicitReference.create(new GenericType(type)),
|
170
|
-
);
|
171
|
-
instanceValue_setValues(
|
172
|
-
enumValueInstanceValue,
|
173
|
-
[EnumValueExplicitReference.create(type.values[0] as Enum)],
|
174
|
-
observerContext,
|
175
|
-
);
|
176
|
-
return enumValueInstanceValue;
|
177
|
-
}
|
178
|
-
throw new UnsupportedOperationError(
|
179
|
-
`Can't get default value for enumeration since enumeration '${path}' has no value`,
|
179
|
+
const enumValueInstanceValue = new EnumValueInstanceValue(
|
180
|
+
GenericTypeExplicitReference.create(new GenericType(type)),
|
180
181
|
);
|
182
|
+
if (enableInitializingDefaultValue) {
|
183
|
+
if (type.values.length > 0) {
|
184
|
+
instanceValue_setValues(
|
185
|
+
enumValueInstanceValue,
|
186
|
+
[EnumValueExplicitReference.create(type.values[0] as Enum)],
|
187
|
+
observerContext,
|
188
|
+
);
|
189
|
+
} else {
|
190
|
+
throw new UnsupportedOperationError(
|
191
|
+
`Can't get default value for enumeration since enumeration '${path}' has no value`,
|
192
|
+
);
|
193
|
+
}
|
194
|
+
}
|
195
|
+
return enumValueInstanceValue;
|
181
196
|
}
|
182
197
|
throw new UnsupportedOperationError(
|
183
|
-
`Can't get default value for type'${path}'`,
|
198
|
+
`Can't get default value for type '${path}'`,
|
184
199
|
);
|
185
200
|
}
|
186
201
|
};
|
@@ -201,6 +216,7 @@ export const buildDefaultEmptyStringLambda = (
|
|
201
216
|
graph,
|
202
217
|
PrimitiveType.STRING,
|
203
218
|
observerContext,
|
219
|
+
true,
|
204
220
|
);
|
205
221
|
return lambdaFunction;
|
206
222
|
};
|
@@ -32,14 +32,11 @@ import { isValueExpressionReferencedInValue } from '../QueryBuilderValueSpecific
|
|
32
32
|
export class QueryBuilderWatermarkState implements Hashable {
|
33
33
|
readonly queryBuilderState: QueryBuilderState;
|
34
34
|
value?: ValueSpecification | undefined;
|
35
|
-
isEditingWatermark = false;
|
36
35
|
|
37
36
|
constructor(queryBuilderState: QueryBuilderState) {
|
38
37
|
makeObservable(this, {
|
39
38
|
value: observable,
|
40
|
-
isEditingWatermark: observable,
|
41
39
|
setValue: action,
|
42
|
-
setIsEditingWatermark: action,
|
43
40
|
hashCode: computed,
|
44
41
|
});
|
45
42
|
|
@@ -57,10 +54,6 @@ export class QueryBuilderWatermarkState implements Hashable {
|
|
57
54
|
return watermarkConstant;
|
58
55
|
}
|
59
56
|
|
60
|
-
setIsEditingWatermark(val: boolean): void {
|
61
|
-
this.isEditingWatermark = val;
|
62
|
-
}
|
63
|
-
|
64
57
|
setValue(val: ValueSpecification | undefined): void {
|
65
58
|
this.value = val
|
66
59
|
? observe_ValueSpecification(val, this.queryBuilderState.observerContext)
|
@@ -28,7 +28,10 @@ import { getNullableFirstEntry } from '@finos/legend-shared';
|
|
28
28
|
import { renderMappingQueryBuilderSetupPanelContent } from '../../components/workflows/MappingQueryBuilder.js';
|
29
29
|
import { QueryBuilderState } from '../QueryBuilderState.js';
|
30
30
|
import type { QueryBuilderConfig } from '../../graph-manager/QueryBuilderConfig.js';
|
31
|
-
import type {
|
31
|
+
import type {
|
32
|
+
QueryBuilderActionConfig,
|
33
|
+
QueryBuilderWorkflowState,
|
34
|
+
} from '../query-workflow/QueryBuilderWorkFlowState.js';
|
32
35
|
|
33
36
|
export class MappingQueryBuilderState extends QueryBuilderState {
|
34
37
|
readonly onMappingChange?: ((val: Mapping) => void) | undefined;
|
@@ -41,6 +44,7 @@ export class MappingQueryBuilderState extends QueryBuilderState {
|
|
41
44
|
applicationStore: GenericLegendApplicationStore,
|
42
45
|
graphManagerState: GraphManagerState,
|
43
46
|
workflowState: QueryBuilderWorkflowState,
|
47
|
+
actionConfig: QueryBuilderActionConfig,
|
44
48
|
onMappingChange?: ((val: Mapping) => void) | undefined,
|
45
49
|
onRuntimeChange?: ((val: Runtime) => void) | undefined,
|
46
50
|
config?: QueryBuilderConfig | undefined,
|
@@ -50,12 +54,14 @@ export class MappingQueryBuilderState extends QueryBuilderState {
|
|
50
54
|
applicationStore,
|
51
55
|
graphManagerState,
|
52
56
|
workflowState,
|
57
|
+
|
53
58
|
config,
|
54
59
|
sourceInfo,
|
55
60
|
);
|
56
61
|
|
57
62
|
this.onMappingChange = onMappingChange;
|
58
63
|
this.onRuntimeChange = onRuntimeChange;
|
64
|
+
this.workflowState.updateActionConfig(actionConfig);
|
59
65
|
}
|
60
66
|
|
61
67
|
/**
|
@@ -34,7 +34,10 @@ import { action, makeObservable, observable } from 'mobx';
|
|
34
34
|
import { renderServiceQueryBuilderSetupPanelContent } from '../../components/workflows/ServiceQueryBuilder.js';
|
35
35
|
import { QueryBuilderState } from '../QueryBuilderState.js';
|
36
36
|
import type { QueryBuilderConfig } from '../../graph-manager/QueryBuilderConfig.js';
|
37
|
-
import type {
|
37
|
+
import type {
|
38
|
+
QueryBuilderActionConfig,
|
39
|
+
QueryBuilderWorkflowState,
|
40
|
+
} from '../query-workflow/QueryBuilderWorkFlowState.js';
|
38
41
|
|
39
42
|
export type ServiceExecutionContext = {
|
40
43
|
key: string;
|
@@ -60,6 +63,7 @@ export class ServiceQueryBuilderState extends QueryBuilderState {
|
|
60
63
|
applicationStore: GenericLegendApplicationStore,
|
61
64
|
graphManagerState: GraphManagerState,
|
62
65
|
workflowState: QueryBuilderWorkflowState,
|
66
|
+
actionConfig: QueryBuilderActionConfig,
|
63
67
|
service: Service,
|
64
68
|
usableServices: Service[] | undefined,
|
65
69
|
executionContextKey?: string | undefined,
|
@@ -87,6 +91,7 @@ export class ServiceQueryBuilderState extends QueryBuilderState {
|
|
87
91
|
this.usableServices = usableServices;
|
88
92
|
this.onServiceChange = onServiceChange;
|
89
93
|
this.onExecutionContextChange = onExecutionContextChange;
|
94
|
+
this.workflowState.updateActionConfig(actionConfig);
|
90
95
|
|
91
96
|
if (service.execution instanceof PureSingleExecution) {
|
92
97
|
this.executionContextState.mapping = service.execution.mapping?.value;
|
package/tsconfig.json
CHANGED
@@ -24,7 +24,23 @@
|
|
24
24
|
"outDir": "./lib",
|
25
25
|
"tsBuildInfoFile": "./build/prod.tsbuildinfo",
|
26
26
|
"rootDir": "./src",
|
27
|
-
"jsx": "react-jsx"
|
27
|
+
"jsx": "react-jsx",
|
28
|
+
"moduleResolution": "nodenext",
|
29
|
+
"moduleDetection": "force",
|
30
|
+
"isolatedModules": true,
|
31
|
+
"esModuleInterop": true,
|
32
|
+
"allowSyntheticDefaultImports": true,
|
33
|
+
"preserveConstEnums": true,
|
34
|
+
"incremental": true,
|
35
|
+
"useDefineForClassFields": true,
|
36
|
+
"noImplicitAny": true,
|
37
|
+
"noImplicitThis": true,
|
38
|
+
"strictNullChecks": true,
|
39
|
+
"strictFunctionTypes": true,
|
40
|
+
"strictBindCallApply": true,
|
41
|
+
"strictPropertyInitialization": true,
|
42
|
+
"alwaysStrict": true,
|
43
|
+
"useUnknownInCatchVariables": true
|
28
44
|
},
|
29
45
|
"references": [
|
30
46
|
{
|
@@ -242,7 +258,6 @@
|
|
242
258
|
"./src/components/shared/QueryBuilderPropertyInfoTooltip.tsx",
|
243
259
|
"./src/components/shared/QueryBuilderRootClassInfoTooltip.tsx",
|
244
260
|
"./src/components/shared/QueryBuilderVariableSelector.tsx",
|
245
|
-
"./src/components/watermark/QueryBuilderWatermark.tsx",
|
246
261
|
"./src/components/workflows/ClassQueryBuilder.tsx",
|
247
262
|
"./src/components/workflows/MappingQueryBuilder.tsx",
|
248
263
|
"./src/components/workflows/ServiceQueryBuilder.tsx"
|
package/tsconfig.package.json
CHANGED
@@ -23,7 +23,23 @@
|
|
23
23
|
"forceConsistentCasingInFileNames": true,
|
24
24
|
"outDir": "./lib",
|
25
25
|
"tsBuildInfoFile": "./build/package.tsbuildinfo",
|
26
|
-
"rootDir": "./"
|
26
|
+
"rootDir": "./",
|
27
|
+
"moduleResolution": "nodenext",
|
28
|
+
"moduleDetection": "force",
|
29
|
+
"isolatedModules": true,
|
30
|
+
"esModuleInterop": true,
|
31
|
+
"allowSyntheticDefaultImports": true,
|
32
|
+
"preserveConstEnums": true,
|
33
|
+
"incremental": true,
|
34
|
+
"useDefineForClassFields": true,
|
35
|
+
"noImplicitAny": true,
|
36
|
+
"noImplicitThis": true,
|
37
|
+
"strictNullChecks": true,
|
38
|
+
"strictFunctionTypes": true,
|
39
|
+
"strictBindCallApply": true,
|
40
|
+
"strictPropertyInitialization": true,
|
41
|
+
"alwaysStrict": true,
|
42
|
+
"useUnknownInCatchVariables": true
|
27
43
|
},
|
28
44
|
"files": [
|
29
45
|
"./package.json"
|
@@ -1,22 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
-
*
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
* you may not use this file except in compliance with the License.
|
6
|
-
* You may obtain a copy of the License at
|
7
|
-
*
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
*
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
* See the License for the specific language governing permissions and
|
14
|
-
* limitations under the License.
|
15
|
-
*/
|
16
|
-
import type { QueryBuilderState } from '../../stores/QueryBuilderState.js';
|
17
|
-
export declare const QueryBuilderWatermarkEditor: ((props: {
|
18
|
-
queryBuilderState: QueryBuilderState;
|
19
|
-
}) => import("react/jsx-runtime").JSX.Element) & {
|
20
|
-
displayName: string;
|
21
|
-
};
|
22
|
-
//# sourceMappingURL=QueryBuilderWatermark.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderWatermark.d.ts","sourceRoot":"","sources":["../../../src/components/watermark/QueryBuilderWatermark.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAyBH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AA6F3E,eAAO,MAAM,2BAA2B,WAC9B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAoFjD,CAAC"}
|
@@ -1,83 +0,0 @@
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment, 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 { Dialog, PanelDropZone, PanelFormBooleanField, PanelForm, PanelDivider, Modal, ModalBody, ModalFooter, ModalHeader, PanelFormSection, ModalFooterButton, } from '@finos/legend-art';
|
18
|
-
import { areMultiplicitiesEqual, Multiplicity, PrimitiveType, } from '@finos/legend-graph';
|
19
|
-
import { observer } from 'mobx-react-lite';
|
20
|
-
import { useCallback, useState } from 'react';
|
21
|
-
import { useDrop } from 'react-dnd';
|
22
|
-
import { BasicValueSpecificationEditor, QUERY_BUILDER_VARIABLE_DND_TYPE, } from '../shared/BasicValueSpecificationEditor.js';
|
23
|
-
import { VariableSelector } from '../shared/QueryBuilderVariableSelector.js';
|
24
|
-
import { clone, deepClone } from '@finos/legend-shared';
|
25
|
-
const isParamaterCompatibleWithWaterMark = (parameter) => PrimitiveType.STRING === parameter.genericType?.value.rawType &&
|
26
|
-
areMultiplicitiesEqual(parameter.multiplicity, Multiplicity.ONE);
|
27
|
-
const WatermarkValueEditor = observer((props) => {
|
28
|
-
const { selectedValue, setSelectedValue, handleResetValue, watermarkState, } = props;
|
29
|
-
const graph = watermarkState.queryBuilderState.graphManagerState.graph;
|
30
|
-
const handleDrop = useCallback((item) => {
|
31
|
-
setSelectedValue(item.variable);
|
32
|
-
}, [setSelectedValue]);
|
33
|
-
const [{ isParameterValueDragOver }, dropTargetConnector] = useDrop(() => ({
|
34
|
-
accept: [QUERY_BUILDER_VARIABLE_DND_TYPE],
|
35
|
-
drop: (item, monitor) => {
|
36
|
-
if (!monitor.didDrop() &&
|
37
|
-
// Only allows parameters with muliplicity 1 and type string
|
38
|
-
isParamaterCompatibleWithWaterMark(item.variable)) {
|
39
|
-
handleDrop(item);
|
40
|
-
} // prevent drop event propagation to accomondate for nested DnD
|
41
|
-
},
|
42
|
-
collect: (monitor) => ({
|
43
|
-
isParameterValueDragOver: monitor.isOver({
|
44
|
-
shallow: true,
|
45
|
-
}),
|
46
|
-
}),
|
47
|
-
}), [handleDrop]);
|
48
|
-
return (_jsx(PanelFormSection, { children: _jsx("div", { className: "query-builder__variable-editor", children: _jsx(PanelDropZone, { isDragOver: isParameterValueDragOver, dropTargetConnector: dropTargetConnector, children: _jsx(BasicValueSpecificationEditor, { valueSpecification: selectedValue, setValueSpecification: (val) => {
|
49
|
-
setSelectedValue(clone(val));
|
50
|
-
}, graph: graph, obseverContext: watermarkState.queryBuilderState.observerContext, typeCheckOption: {
|
51
|
-
expectedType: PrimitiveType.STRING,
|
52
|
-
}, resetValue: handleResetValue, isConstant: watermarkState.queryBuilderState.constantState.isValueSpecConstant(selectedValue) }) }) }) }));
|
53
|
-
});
|
54
|
-
export const QueryBuilderWatermarkEditor = observer((props) => {
|
55
|
-
const { queryBuilderState } = props;
|
56
|
-
const applicationStore = queryBuilderState.applicationStore;
|
57
|
-
const watermarkState = queryBuilderState.watermarkState;
|
58
|
-
const [selectedValue, setSelectedValue] = useState(deepClone(watermarkState.value));
|
59
|
-
const handleCancel = () => {
|
60
|
-
watermarkState.setIsEditingWatermark(false);
|
61
|
-
};
|
62
|
-
const handleApply = () => {
|
63
|
-
watermarkState.setValue(selectedValue);
|
64
|
-
handleCancel();
|
65
|
-
};
|
66
|
-
const handleResetValue = () => {
|
67
|
-
setSelectedValue(watermarkState.getDefaultValue());
|
68
|
-
};
|
69
|
-
const toggleWatermark = () => {
|
70
|
-
if (selectedValue) {
|
71
|
-
setSelectedValue(undefined);
|
72
|
-
}
|
73
|
-
else {
|
74
|
-
handleResetValue();
|
75
|
-
}
|
76
|
-
};
|
77
|
-
return (_jsx(Dialog, { open: Boolean(watermarkState.isEditingWatermark), onClose: handleCancel, classes: {
|
78
|
-
root: 'editor-modal__root-container',
|
79
|
-
container: 'editor-modal__container',
|
80
|
-
paper: 'editor-modal__content',
|
81
|
-
}, children: _jsxs(Modal, { darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, className: "editor-modal query-builder__watermark__modal", children: [_jsx(ModalHeader, { title: "Watermark" }), _jsx(ModalBody, { children: _jsxs(PanelForm, { children: [_jsx(PanelFormBooleanField, { isReadOnly: false, value: selectedValue !== undefined, prompt: "Enable watermark", update: toggleWatermark }), selectedValue && (_jsxs(_Fragment, { children: [_jsx(WatermarkValueEditor, { selectedValue: selectedValue, setSelectedValue: setSelectedValue, handleResetValue: handleResetValue, watermarkState: watermarkState }), _jsx(PanelDivider, {}), _jsx(VariableSelector, { filterBy: isParamaterCompatibleWithWaterMark, queryBuilderState: queryBuilderState })] }))] }) }), _jsxs(ModalFooter, { children: [_jsx(ModalFooterButton, { text: "Apply", onClick: handleApply }), _jsx(ModalFooterButton, { text: "Cancel", onClick: handleCancel, type: "secondary" })] })] }) }));
|
82
|
-
});
|
83
|
-
//# sourceMappingURL=QueryBuilderWatermark.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderWatermark.js","sourceRoot":"","sources":["../../../src/components/watermark/QueryBuilderWatermark.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,MAAM,EACN,aAAa,EACb,qBAAqB,EACrB,SAAS,EACT,YAAY,EACZ,KAAK,EACL,SAAS,EACT,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,sBAAsB,EACtB,YAAY,EACZ,aAAa,GAGd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,OAAO,EACL,6BAA6B,EAC7B,+BAA+B,GAEhC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAC7E,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAExD,MAAM,kCAAkC,GAAG,CACzC,SAA6B,EACpB,EAAE,CACX,aAAa,CAAC,MAAM,KAAK,SAAS,CAAC,WAAW,EAAE,KAAK,CAAC,OAAO;IAC7D,sBAAsB,CAAC,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC;AAEnE,MAAM,oBAAoB,GAAG,QAAQ,CACnC,CAAC,KAKA,EAAE,EAAE;IACH,MAAM,EACJ,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,GACf,GAAG,KAAK,CAAC;IAEV,MAAM,KAAK,GAAG,cAAc,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAAC;IAEvE,MAAM,UAAU,GAAG,WAAW,CAC5B,CAAC,IAAoC,EAAQ,EAAE;QAC7C,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAClC,CAAC,EACD,CAAC,gBAAgB,CAAC,CACnB,CAAC;IAEF,MAAM,CAAC,EAAE,wBAAwB,EAAE,EAAE,mBAAmB,CAAC,GAAG,OAAO,CAKjE,GAAG,EAAE,CAAC,CAAC;QACL,MAAM,EAAE,CAAC,+BAA+B,CAAC;QACzC,IAAI,EAAE,CAAC,IAAI,EAAE,OAAO,EAAQ,EAAE;YAC5B,IACE,CAAC,OAAO,CAAC,OAAO,EAAE;gBAClB,4DAA4D;gBAC5D,kCAAkC,CAAC,IAAI,CAAC,QAAQ,CAAC,EACjD;gBACA,UAAU,CAAC,IAAI,CAAC,CAAC;aAClB,CAAC,+DAA+D;QACnE,CAAC;QACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;YACrB,wBAAwB,EAAE,OAAO,CAAC,MAAM,CAAC;gBACvC,OAAO,EAAE,IAAI;aACd,CAAC;SACH,CAAC;KACH,CAAC,EACF,CAAC,UAAU,CAAC,CACb,CAAC;IAEF,OAAO,CACL,KAAC,gBAAgB,cACf,cAAK,SAAS,EAAC,gCAAgC,YAC7C,KAAC,aAAa,IACZ,UAAU,EAAE,wBAAwB,EACpC,mBAAmB,EAAE,mBAAmB,YAExC,KAAC,6BAA6B,IAC5B,kBAAkB,EAAE,aAAa,EACjC,qBAAqB,EAAE,CAAC,GAAuB,EAAQ,EAAE;wBACvD,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;oBAC/B,CAAC,EACD,KAAK,EAAE,KAAK,EACZ,cAAc,EAAE,cAAc,CAAC,iBAAiB,CAAC,eAAe,EAChE,eAAe,EAAE;wBACf,YAAY,EAAE,aAAa,CAAC,MAAM;qBACnC,EACD,UAAU,EAAE,gBAAgB,EAC5B,UAAU,EAAE,cAAc,CAAC,iBAAiB,CAAC,aAAa,CAAC,mBAAmB,CAC5E,aAAa,CACd,GACD,GACY,GACZ,GACW,CACpB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAG,QAAQ,CACjD,CAAC,KAA+C,EAAE,EAAE;IAClD,MAAM,EAAE,iBAAiB,EAAE,GAAG,KAAK,CAAC;IACpC,MAAM,gBAAgB,GAAG,iBAAiB,CAAC,gBAAgB,CAAC;IAC5D,MAAM,cAAc,GAAG,iBAAiB,CAAC,cAAc,CAAC;IAExD,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAChD,SAAS,CAAC,cAAc,CAAC,KAAK,CAAC,CAChC,CAAC;IAEF,MAAM,YAAY,GAAG,GAAS,EAAE;QAC9B,cAAc,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC;IAC9C,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,GAAS,EAAE;QAC7B,cAAc,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;QACvC,YAAY,EAAE,CAAC;IACjB,CAAC,CAAC;IAEF,MAAM,gBAAgB,GAAG,GAAS,EAAE;QAClC,gBAAgB,CAAC,cAAc,CAAC,eAAe,EAAE,CAAC,CAAC;IACrD,CAAC,CAAC;IAEF,MAAM,eAAe,GAAG,GAAS,EAAE;QACjC,IAAI,aAAa,EAAE;YACjB,gBAAgB,CAAC,SAAS,CAAC,CAAC;SAC7B;aAAM;YACL,gBAAgB,EAAE,CAAC;SACpB;IACH,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,MAAM,IACL,IAAI,EAAE,OAAO,CAAC,cAAc,CAAC,kBAAkB,CAAC,EAChD,OAAO,EAAE,YAAY,EACrB,OAAO,EAAE;YACP,IAAI,EAAE,8BAA8B;YACpC,SAAS,EAAE,yBAAyB;YACpC,KAAK,EAAE,uBAAuB;SAC/B,YAED,MAAC,KAAK,IACJ,QAAQ,EACN,CAAC,gBAAgB,CAAC,aAAa,CAAC,mCAAmC,EAErE,SAAS,EAAC,8CAA8C,aAExD,KAAC,WAAW,IAAC,KAAK,EAAC,WAAW,GAAG,EACjC,KAAC,SAAS,cACR,MAAC,SAAS,eACR,KAAC,qBAAqB,IACpB,UAAU,EAAE,KAAK,EACjB,KAAK,EAAE,aAAa,KAAK,SAAS,EAClC,MAAM,EAAC,kBAAkB,EACzB,MAAM,EAAE,eAAe,GACvB,EACD,aAAa,IAAI,CAChB,8BACE,KAAC,oBAAoB,IACnB,aAAa,EAAE,aAAa,EAC5B,gBAAgB,EAAE,gBAAgB,EAClC,gBAAgB,EAAE,gBAAgB,EAClC,cAAc,EAAE,cAAc,GAC9B,EACF,KAAC,YAAY,KAAG,EAChB,KAAC,gBAAgB,IACf,QAAQ,EAAE,kCAAkC,EAC5C,iBAAiB,EAAE,iBAAiB,GACpC,IACD,CACJ,IACS,GACF,EACZ,MAAC,WAAW,eACV,KAAC,iBAAiB,IAAC,IAAI,EAAC,OAAO,EAAC,OAAO,EAAE,WAAW,GAAI,EACxD,KAAC,iBAAiB,IAChB,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,YAAY,EACrB,IAAI,EAAC,WAAW,GAChB,IACU,IACR,GACD,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
|