@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,13 +36,12 @@ import type {
|
|
36
36
|
} from '../QueryBuilderPostFilterState.js';
|
37
37
|
import {
|
38
38
|
buildNotExpression,
|
39
|
-
generateDefaultValueForPrimitiveType,
|
40
39
|
unwrapNotExpression,
|
41
40
|
} from '../../../../QueryBuilderValueSpecificationHelper.js';
|
42
41
|
import { buildPostFilterConditionExpression } from './QueryBuilderPostFilterOperatorValueSpecificationBuilder.js';
|
43
42
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graph/QueryBuilderMetaModelConst.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 QueryBuilderPostFilterOperator_Contain
|
48
47
|
extends QueryBuilderPostFilterOperator
|
@@ -73,13 +72,14 @@ export class QueryBuilderPostFilterOperator_Contain
|
|
73
72
|
);
|
74
73
|
switch (propertyType.path) {
|
75
74
|
case PRIMITIVE_TYPE.STRING: {
|
76
|
-
return
|
75
|
+
return buildDefaultInstanceValue(
|
77
76
|
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
78
77
|
.graphManagerState.graph,
|
79
|
-
propertyType
|
80
|
-
generateDefaultValueForPrimitiveType(propertyType.path),
|
78
|
+
propertyType,
|
81
79
|
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
82
80
|
.observerContext,
|
81
|
+
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
82
|
+
.INTERNAL__enableInitializingDefaultSimpleExpressionValue,
|
83
83
|
);
|
84
84
|
}
|
85
85
|
default:
|
@@ -34,13 +34,12 @@ import type {
|
|
34
34
|
} from '../QueryBuilderPostFilterState.js';
|
35
35
|
import {
|
36
36
|
buildNotExpression,
|
37
|
-
generateDefaultValueForPrimitiveType,
|
38
37
|
unwrapNotExpression,
|
39
38
|
} from '../../../../QueryBuilderValueSpecificationHelper.js';
|
40
39
|
import { buildPostFilterConditionExpression } from './QueryBuilderPostFilterOperatorValueSpecificationBuilder.js';
|
41
40
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graph/QueryBuilderMetaModelConst.js';
|
42
41
|
import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../../../../QueryBuilderStateHashUtils.js';
|
43
|
-
import {
|
42
|
+
import { buildDefaultInstanceValue } from '../../../../shared/ValueSpecificationEditorHelper.js';
|
44
43
|
|
45
44
|
export class QueryBuilderPostFilterOperator_EndWith
|
46
45
|
extends QueryBuilderPostFilterOperator
|
@@ -70,13 +69,14 @@ export class QueryBuilderPostFilterOperator_EndWith
|
|
70
69
|
postFilterConditionState.leftConditionValue.getColumnType();
|
71
70
|
switch (propertyType?.path) {
|
72
71
|
case PRIMITIVE_TYPE.STRING: {
|
73
|
-
return
|
72
|
+
return buildDefaultInstanceValue(
|
74
73
|
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
75
74
|
.graphManagerState.graph,
|
76
|
-
propertyType
|
77
|
-
generateDefaultValueForPrimitiveType(propertyType.path),
|
75
|
+
propertyType,
|
78
76
|
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
79
77
|
.observerContext,
|
78
|
+
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
79
|
+
.INTERNAL__enableInitializingDefaultSimpleExpressionValue,
|
80
80
|
);
|
81
81
|
}
|
82
82
|
default:
|
package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.ts
CHANGED
@@ -17,15 +17,10 @@
|
|
17
17
|
import {
|
18
18
|
type Type,
|
19
19
|
type ValueSpecification,
|
20
|
-
type Enum,
|
21
20
|
type SimpleFunctionExpression,
|
22
21
|
type FunctionExpression,
|
23
22
|
AbstractPropertyExpression,
|
24
23
|
Enumeration,
|
25
|
-
EnumValueExplicitReference,
|
26
|
-
EnumValueInstanceValue,
|
27
|
-
GenericType,
|
28
|
-
GenericTypeExplicitReference,
|
29
24
|
PRIMITIVE_TYPE,
|
30
25
|
PrimitiveType,
|
31
26
|
} from '@finos/legend-graph';
|
@@ -33,7 +28,6 @@ import {
|
|
33
28
|
guaranteeNonNullable,
|
34
29
|
type Hashable,
|
35
30
|
hashArray,
|
36
|
-
UnsupportedOperationError,
|
37
31
|
} from '@finos/legend-shared';
|
38
32
|
import { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator.js';
|
39
33
|
import { buildPostFilterConditionState } from '../QueryBuilderPostFilterStateBuilder.js';
|
@@ -43,15 +37,13 @@ import {
|
|
43
37
|
} from '../QueryBuilderPostFilterState.js';
|
44
38
|
import {
|
45
39
|
buildNotExpression,
|
46
|
-
generateDefaultValueForPrimitiveType,
|
47
40
|
isTypeCompatibleForAssignment,
|
48
41
|
unwrapNotExpression,
|
49
42
|
} from '../../../../QueryBuilderValueSpecificationHelper.js';
|
50
43
|
import { buildPostFilterConditionExpression } from './QueryBuilderPostFilterOperatorValueSpecificationBuilder.js';
|
51
44
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graph/QueryBuilderMetaModelConst.js';
|
52
45
|
import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../../../../QueryBuilderStateHashUtils.js';
|
53
|
-
import {
|
54
|
-
import { instanceValue_setValues } from '../../../../shared/ValueSpecificationModifierHelper.js';
|
46
|
+
import { buildDefaultInstanceValue } from '../../../../shared/ValueSpecificationEditorHelper.js';
|
55
47
|
|
56
48
|
export class QueryBuilderPostFilterOperator_Equal
|
57
49
|
extends QueryBuilderPostFilterOperator
|
@@ -101,66 +93,15 @@ export class QueryBuilderPostFilterOperator_Equal
|
|
101
93
|
const propertyType = guaranteeNonNullable(
|
102
94
|
postFilterConditionState.leftConditionValue.getColumnType(),
|
103
95
|
);
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
return buildPrimitiveInstanceValue(
|
114
|
-
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
115
|
-
.graphManagerState.graph,
|
116
|
-
propertyType.path,
|
117
|
-
generateDefaultValueForPrimitiveType(propertyType.path),
|
118
|
-
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
119
|
-
.observerContext,
|
120
|
-
);
|
121
|
-
}
|
122
|
-
case PRIMITIVE_TYPE.DATE: {
|
123
|
-
return buildPrimitiveInstanceValue(
|
124
|
-
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
125
|
-
.graphManagerState.graph,
|
126
|
-
PRIMITIVE_TYPE.STRICTDATE,
|
127
|
-
generateDefaultValueForPrimitiveType(propertyType.path),
|
128
|
-
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
129
|
-
.observerContext,
|
130
|
-
);
|
131
|
-
}
|
132
|
-
default:
|
133
|
-
if (propertyType instanceof Enumeration) {
|
134
|
-
if (propertyType.values.length > 0) {
|
135
|
-
const enumValueInstanceValue = new EnumValueInstanceValue(
|
136
|
-
GenericTypeExplicitReference.create(
|
137
|
-
new GenericType(propertyType),
|
138
|
-
),
|
139
|
-
);
|
140
|
-
instanceValue_setValues(
|
141
|
-
enumValueInstanceValue,
|
142
|
-
[
|
143
|
-
EnumValueExplicitReference.create(
|
144
|
-
propertyType.values[0] as Enum,
|
145
|
-
),
|
146
|
-
],
|
147
|
-
postFilterConditionState.postFilterState.tdsState
|
148
|
-
.queryBuilderState.observerContext,
|
149
|
-
);
|
150
|
-
return enumValueInstanceValue;
|
151
|
-
}
|
152
|
-
throw new UnsupportedOperationError(
|
153
|
-
`Can't get default value for post-filter operator '${this.getLabel()}' since enumeration '${
|
154
|
-
propertyType.path
|
155
|
-
}' has no value`,
|
156
|
-
);
|
157
|
-
}
|
158
|
-
throw new UnsupportedOperationError(
|
159
|
-
`Can't get default value for post-filter operator '${this.getLabel()}' when the LHS property is of type '${
|
160
|
-
propertyType.path
|
161
|
-
}'`,
|
162
|
-
);
|
163
|
-
}
|
96
|
+
return buildDefaultInstanceValue(
|
97
|
+
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
98
|
+
.graphManagerState.graph,
|
99
|
+
propertyType,
|
100
|
+
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
101
|
+
.observerContext,
|
102
|
+
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
103
|
+
.INTERNAL__enableInitializingDefaultSimpleExpressionValue,
|
104
|
+
);
|
164
105
|
}
|
165
106
|
|
166
107
|
buildPostFilterConditionExpression(
|
@@ -34,14 +34,11 @@ import type {
|
|
34
34
|
PostFilterConditionState,
|
35
35
|
QueryBuilderPostFilterState,
|
36
36
|
} from '../QueryBuilderPostFilterState.js';
|
37
|
-
import {
|
38
|
-
generateDefaultValueForPrimitiveType,
|
39
|
-
isTypeCompatibleForAssignment,
|
40
|
-
} from '../../../../QueryBuilderValueSpecificationHelper.js';
|
37
|
+
import { isTypeCompatibleForAssignment } from '../../../../QueryBuilderValueSpecificationHelper.js';
|
41
38
|
import { buildPostFilterConditionExpression } from './QueryBuilderPostFilterOperatorValueSpecificationBuilder.js';
|
42
39
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graph/QueryBuilderMetaModelConst.js';
|
43
40
|
import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../../../../QueryBuilderStateHashUtils.js';
|
44
|
-
import {
|
41
|
+
import { buildDefaultInstanceValue } from '../../../../shared/ValueSpecificationEditorHelper.js';
|
45
42
|
|
46
43
|
export class QueryBuilderPostFilterOperator_GreaterThan
|
47
44
|
extends QueryBuilderPostFilterOperator
|
@@ -89,24 +86,16 @@ export class QueryBuilderPostFilterOperator_GreaterThan
|
|
89
86
|
case PRIMITIVE_TYPE.FLOAT:
|
90
87
|
case PRIMITIVE_TYPE.INTEGER:
|
91
88
|
case PRIMITIVE_TYPE.STRICTDATE:
|
92
|
-
case PRIMITIVE_TYPE.DATETIME:
|
93
|
-
return buildPrimitiveInstanceValue(
|
94
|
-
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
95
|
-
.graphManagerState.graph,
|
96
|
-
propertyType.path,
|
97
|
-
generateDefaultValueForPrimitiveType(propertyType.path),
|
98
|
-
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
99
|
-
.observerContext,
|
100
|
-
);
|
101
|
-
}
|
89
|
+
case PRIMITIVE_TYPE.DATETIME:
|
102
90
|
case PRIMITIVE_TYPE.DATE: {
|
103
|
-
return
|
91
|
+
return buildDefaultInstanceValue(
|
104
92
|
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
105
93
|
.graphManagerState.graph,
|
106
|
-
|
107
|
-
generateDefaultValueForPrimitiveType(propertyType.path),
|
94
|
+
propertyType,
|
108
95
|
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
109
96
|
.observerContext,
|
97
|
+
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
98
|
+
.INTERNAL__enableInitializingDefaultSimpleExpressionValue,
|
110
99
|
);
|
111
100
|
}
|
112
101
|
default:
|
@@ -34,14 +34,11 @@ import type {
|
|
34
34
|
PostFilterConditionState,
|
35
35
|
QueryBuilderPostFilterState,
|
36
36
|
} from '../QueryBuilderPostFilterState.js';
|
37
|
-
import {
|
38
|
-
generateDefaultValueForPrimitiveType,
|
39
|
-
isTypeCompatibleForAssignment,
|
40
|
-
} from '../../../../QueryBuilderValueSpecificationHelper.js';
|
37
|
+
import { isTypeCompatibleForAssignment } from '../../../../QueryBuilderValueSpecificationHelper.js';
|
41
38
|
import { buildPostFilterConditionExpression } from './QueryBuilderPostFilterOperatorValueSpecificationBuilder.js';
|
42
39
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graph/QueryBuilderMetaModelConst.js';
|
43
40
|
import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../../../../QueryBuilderStateHashUtils.js';
|
44
|
-
import {
|
41
|
+
import { buildDefaultInstanceValue } from '../../../../shared/ValueSpecificationEditorHelper.js';
|
45
42
|
|
46
43
|
export class QueryBuilderPostFilterOperator_LessThan
|
47
44
|
extends QueryBuilderPostFilterOperator
|
@@ -89,24 +86,16 @@ export class QueryBuilderPostFilterOperator_LessThan
|
|
89
86
|
case PRIMITIVE_TYPE.FLOAT:
|
90
87
|
case PRIMITIVE_TYPE.INTEGER:
|
91
88
|
case PRIMITIVE_TYPE.STRICTDATE:
|
92
|
-
case PRIMITIVE_TYPE.DATETIME:
|
93
|
-
return buildPrimitiveInstanceValue(
|
94
|
-
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
95
|
-
.graphManagerState.graph,
|
96
|
-
propertyType.path,
|
97
|
-
generateDefaultValueForPrimitiveType(propertyType.path),
|
98
|
-
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
99
|
-
.observerContext,
|
100
|
-
);
|
101
|
-
}
|
89
|
+
case PRIMITIVE_TYPE.DATETIME:
|
102
90
|
case PRIMITIVE_TYPE.DATE: {
|
103
|
-
return
|
91
|
+
return buildDefaultInstanceValue(
|
104
92
|
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
105
93
|
.graphManagerState.graph,
|
106
|
-
|
107
|
-
generateDefaultValueForPrimitiveType(propertyType.path),
|
94
|
+
propertyType,
|
108
95
|
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
109
96
|
.observerContext,
|
97
|
+
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
98
|
+
.INTERNAL__enableInitializingDefaultSimpleExpressionValue,
|
110
99
|
);
|
111
100
|
}
|
112
101
|
default:
|
@@ -35,13 +35,12 @@ import type {
|
|
35
35
|
} from '../QueryBuilderPostFilterState.js';
|
36
36
|
import {
|
37
37
|
buildNotExpression,
|
38
|
-
generateDefaultValueForPrimitiveType,
|
39
38
|
unwrapNotExpression,
|
40
39
|
} from '../../../../QueryBuilderValueSpecificationHelper.js';
|
41
40
|
import { buildPostFilterConditionExpression } from './QueryBuilderPostFilterOperatorValueSpecificationBuilder.js';
|
42
41
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graph/QueryBuilderMetaModelConst.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 QueryBuilderPostFilterOperator_StartWith
|
47
46
|
extends QueryBuilderPostFilterOperator
|
@@ -71,13 +70,14 @@ export class QueryBuilderPostFilterOperator_StartWith
|
|
71
70
|
postFilterConditionState.leftConditionValue.getColumnType();
|
72
71
|
switch (propertyType?.path) {
|
73
72
|
case PRIMITIVE_TYPE.STRING: {
|
74
|
-
return
|
73
|
+
return buildDefaultInstanceValue(
|
75
74
|
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
76
75
|
.graphManagerState.graph,
|
77
|
-
propertyType
|
78
|
-
generateDefaultValueForPrimitiveType(propertyType.path),
|
76
|
+
propertyType,
|
79
77
|
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
80
78
|
.observerContext,
|
79
|
+
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
80
|
+
.INTERNAL__enableInitializingDefaultSimpleExpressionValue,
|
81
81
|
);
|
82
82
|
}
|
83
83
|
default:
|
@@ -55,7 +55,10 @@ import {
|
|
55
55
|
import type { QueryBuilderFilterOperator } from './QueryBuilderFilterOperator.js';
|
56
56
|
import { QUERY_BUILDER_GROUP_OPERATION } from '../QueryBuilderGroupOperationHelper.js';
|
57
57
|
import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../QueryBuilderStateHashUtils.js';
|
58
|
-
import {
|
58
|
+
import {
|
59
|
+
isValidInstanceValue,
|
60
|
+
isValueExpressionReferencedInValue,
|
61
|
+
} from '../QueryBuilderValueSpecificationHelper.js';
|
59
62
|
import { instanceValue_setValues } from '../shared/ValueSpecificationModifierHelper.js';
|
60
63
|
|
61
64
|
export enum QUERY_BUILDER_FILTER_DND_TYPE {
|
@@ -201,7 +204,8 @@ export class FilterConditionState implements Hashable {
|
|
201
204
|
let defaultValue = this.operator.getDefaultFilterConditionValue(this);
|
202
205
|
if (
|
203
206
|
defaultValue instanceof CollectionInstanceValue &&
|
204
|
-
this.value instanceof InstanceValue
|
207
|
+
this.value instanceof InstanceValue &&
|
208
|
+
isValidInstanceValue(this.value)
|
205
209
|
) {
|
206
210
|
instanceValue_setValues(
|
207
211
|
defaultValue,
|
@@ -494,6 +498,9 @@ export class QueryBuilderFilterState
|
|
494
498
|
collapseTree: action,
|
495
499
|
setShowPanel: action,
|
496
500
|
expandTree: action,
|
501
|
+
allValidationIssues: computed,
|
502
|
+
hasInvalidFilterValues: computed,
|
503
|
+
hasInvalidDerivedPropertyParameters: computed,
|
497
504
|
hashCode: computed,
|
498
505
|
});
|
499
506
|
|
@@ -953,6 +960,45 @@ export class QueryBuilderFilterState
|
|
953
960
|
);
|
954
961
|
}
|
955
962
|
|
963
|
+
get allValidationIssues(): string[] {
|
964
|
+
const validationIssues: string[] = [];
|
965
|
+
Array.from(this.nodes.values()).forEach((node) => {
|
966
|
+
if (node instanceof QueryBuilderFilterTreeConditionNodeData) {
|
967
|
+
if (
|
968
|
+
node.condition.value instanceof InstanceValue &&
|
969
|
+
!isValidInstanceValue(node.condition.value)
|
970
|
+
) {
|
971
|
+
validationIssues.push(
|
972
|
+
`Filter value for ${node.condition.propertyExpressionState.title} is missing or invalid`,
|
973
|
+
);
|
974
|
+
}
|
975
|
+
if (!node.condition.propertyExpressionState.isValid) {
|
976
|
+
validationIssues.push(
|
977
|
+
`Derived property parameter value for ${node.condition.propertyExpressionState.title} is missing or invalid`,
|
978
|
+
);
|
979
|
+
}
|
980
|
+
}
|
981
|
+
});
|
982
|
+
return validationIssues;
|
983
|
+
}
|
984
|
+
|
985
|
+
get hasInvalidFilterValues(): boolean {
|
986
|
+
return Array.from(this.nodes.values()).some(
|
987
|
+
(node) =>
|
988
|
+
node instanceof QueryBuilderFilterTreeConditionNodeData &&
|
989
|
+
node.condition.value instanceof InstanceValue &&
|
990
|
+
!isValidInstanceValue(node.condition.value),
|
991
|
+
);
|
992
|
+
}
|
993
|
+
|
994
|
+
get hasInvalidDerivedPropertyParameters(): boolean {
|
995
|
+
return Array.from(this.nodes.values()).some(
|
996
|
+
(node) =>
|
997
|
+
node instanceof QueryBuilderFilterTreeConditionNodeData &&
|
998
|
+
!node.condition.propertyExpressionState.isValid,
|
999
|
+
);
|
1000
|
+
}
|
1001
|
+
|
956
1002
|
get hashCode(): string {
|
957
1003
|
return hashArray([
|
958
1004
|
QUERY_BUILDER_STATE_HASH_STRUCTURE.FILTER_STATE,
|
@@ -36,13 +36,12 @@ import {
|
|
36
36
|
} from './QueryBuilderFilterOperatorValueSpecificationBuilder.js';
|
37
37
|
import {
|
38
38
|
buildNotExpression,
|
39
|
-
generateDefaultValueForPrimitiveType,
|
40
39
|
getNonCollectionValueSpecificationType,
|
41
40
|
unwrapNotExpression,
|
42
41
|
} from '../../QueryBuilderValueSpecificationHelper.js';
|
43
42
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../graph/QueryBuilderMetaModelConst.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_Contain
|
48
47
|
extends QueryBuilderFilterOperator
|
@@ -79,12 +78,13 @@ export class QueryBuilderFilterOperator_Contain
|
|
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:
|
@@ -36,13 +36,12 @@ import {
|
|
36
36
|
} from './QueryBuilderFilterOperatorValueSpecificationBuilder.js';
|
37
37
|
import {
|
38
38
|
buildNotExpression,
|
39
|
-
generateDefaultValueForPrimitiveType,
|
40
39
|
getNonCollectionValueSpecificationType,
|
41
40
|
unwrapNotExpression,
|
42
41
|
} from '../../QueryBuilderValueSpecificationHelper.js';
|
43
42
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../graph/QueryBuilderMetaModelConst.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_EndWith
|
48
47
|
extends QueryBuilderFilterOperator
|
@@ -79,12 +78,13 @@ export class QueryBuilderFilterOperator_EndWith
|
|
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:
|
@@ -22,20 +22,11 @@ import { QueryBuilderFilterOperator } from '../QueryBuilderFilterOperator.js';
|
|
22
22
|
import {
|
23
23
|
type ValueSpecification,
|
24
24
|
type SimpleFunctionExpression,
|
25
|
-
type Enum,
|
26
25
|
type AbstractPropertyExpression,
|
27
|
-
EnumValueInstanceValue,
|
28
|
-
GenericTypeExplicitReference,
|
29
|
-
GenericType,
|
30
|
-
EnumValueExplicitReference,
|
31
26
|
Enumeration,
|
32
27
|
PRIMITIVE_TYPE,
|
33
28
|
} from '@finos/legend-graph';
|
34
|
-
import {
|
35
|
-
type Hashable,
|
36
|
-
hashArray,
|
37
|
-
UnsupportedOperationError,
|
38
|
-
} from '@finos/legend-shared';
|
29
|
+
import { type Hashable, hashArray } from '@finos/legend-shared';
|
39
30
|
import {
|
40
31
|
buildFilterConditionState,
|
41
32
|
buildFilterConditionExpression,
|
@@ -43,14 +34,12 @@ import {
|
|
43
34
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../graph/QueryBuilderMetaModelConst.js';
|
44
35
|
import {
|
45
36
|
buildNotExpression,
|
46
|
-
generateDefaultValueForPrimitiveType,
|
47
37
|
getNonCollectionValueSpecificationType,
|
48
38
|
isTypeCompatibleForAssignment,
|
49
39
|
unwrapNotExpression,
|
50
40
|
} from '../../QueryBuilderValueSpecificationHelper.js';
|
51
41
|
import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../../QueryBuilderStateHashUtils.js';
|
52
|
-
import {
|
53
|
-
import { instanceValue_setValues } from '../../shared/ValueSpecificationModifierHelper.js';
|
42
|
+
import { buildDefaultInstanceValue } from '../../shared/ValueSpecificationEditorHelper.js';
|
54
43
|
|
55
44
|
export class QueryBuilderFilterOperator_Equal
|
56
45
|
extends QueryBuilderFilterOperator
|
@@ -103,64 +92,14 @@ export class QueryBuilderFilterOperator_Equal
|
|
103
92
|
const propertyType =
|
104
93
|
filterConditionState.propertyExpressionState.propertyExpression.func.value
|
105
94
|
.genericType.value.rawType;
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
case PRIMITIVE_TYPE.INTEGER: {
|
115
|
-
return buildPrimitiveInstanceValue(
|
116
|
-
filterConditionState.filterState.queryBuilderState.graphManagerState
|
117
|
-
.graph,
|
118
|
-
propertyType.path,
|
119
|
-
generateDefaultValueForPrimitiveType(propertyType.path),
|
120
|
-
filterConditionState.filterState.queryBuilderState.observerContext,
|
121
|
-
);
|
122
|
-
}
|
123
|
-
case PRIMITIVE_TYPE.DATE: {
|
124
|
-
return buildPrimitiveInstanceValue(
|
125
|
-
filterConditionState.filterState.queryBuilderState.graphManagerState
|
126
|
-
.graph,
|
127
|
-
PRIMITIVE_TYPE.STRICTDATE,
|
128
|
-
generateDefaultValueForPrimitiveType(propertyType.path),
|
129
|
-
filterConditionState.filterState.queryBuilderState.observerContext,
|
130
|
-
);
|
131
|
-
}
|
132
|
-
default:
|
133
|
-
if (propertyType instanceof Enumeration) {
|
134
|
-
if (propertyType.values.length > 0) {
|
135
|
-
const enumValueInstanceValue = new EnumValueInstanceValue(
|
136
|
-
GenericTypeExplicitReference.create(
|
137
|
-
new GenericType(propertyType),
|
138
|
-
),
|
139
|
-
);
|
140
|
-
instanceValue_setValues(
|
141
|
-
enumValueInstanceValue,
|
142
|
-
[
|
143
|
-
EnumValueExplicitReference.create(
|
144
|
-
propertyType.values[0] as Enum,
|
145
|
-
),
|
146
|
-
],
|
147
|
-
filterConditionState.filterState.queryBuilderState
|
148
|
-
.observerContext,
|
149
|
-
);
|
150
|
-
return enumValueInstanceValue;
|
151
|
-
}
|
152
|
-
throw new UnsupportedOperationError(
|
153
|
-
`Can't get default value for filter operator '${this.getLabel(
|
154
|
-
filterConditionState,
|
155
|
-
)}' since enumeration '${propertyType.path}' has no value`,
|
156
|
-
);
|
157
|
-
}
|
158
|
-
throw new UnsupportedOperationError(
|
159
|
-
`Can't get default value for filter operator '${this.getLabel(
|
160
|
-
filterConditionState,
|
161
|
-
)}' when the LHS property is of type '${propertyType.path}'`,
|
162
|
-
);
|
163
|
-
}
|
95
|
+
return buildDefaultInstanceValue(
|
96
|
+
filterConditionState.filterState.queryBuilderState.graphManagerState
|
97
|
+
.graph,
|
98
|
+
propertyType,
|
99
|
+
filterConditionState.filterState.queryBuilderState.observerContext,
|
100
|
+
filterConditionState.filterState.queryBuilderState
|
101
|
+
.INTERNAL__enableInitializingDefaultSimpleExpressionValue,
|
102
|
+
);
|
164
103
|
}
|
165
104
|
|
166
105
|
buildFilterConditionExpression(
|
@@ -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_GreaterThan
|
47
46
|
extends QueryBuilderFilterOperator
|
@@ -94,22 +93,15 @@ export class QueryBuilderFilterOperator_GreaterThan
|
|
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_GreaterThanEqual
|
47
46
|
extends QueryBuilderFilterOperator
|
@@ -94,22 +93,15 @@ export class QueryBuilderFilterOperator_GreaterThanEqual
|
|
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:
|