@finos/legend-query-builder 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +201 -0
- package/README.md +3 -0
- package/lib/components/QueryBuilder.d.ts +22 -0
- package/lib/components/QueryBuilder.d.ts.map +1 -0
- package/lib/components/QueryBuilder.js +111 -0
- package/lib/components/QueryBuilder.js.map +1 -0
- package/lib/components/QueryBuilderComponentTestUtils.d.ts +24 -0
- package/lib/components/QueryBuilderComponentTestUtils.d.ts.map +1 -0
- package/lib/components/QueryBuilderComponentTestUtils.js +54 -0
- package/lib/components/QueryBuilderComponentTestUtils.js.map +1 -0
- package/lib/components/QueryBuilderParametersPanel.d.ts +31 -0
- package/lib/components/QueryBuilderParametersPanel.d.ts.map +1 -0
- package/lib/components/QueryBuilderParametersPanel.js +128 -0
- package/lib/components/QueryBuilderParametersPanel.js.map +1 -0
- package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts +29 -0
- package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts.map +1 -0
- package/lib/components/QueryBuilderPropertyExpressionEditor.js +116 -0
- package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -0
- package/lib/components/QueryBuilderResultPanel.d.ts +22 -0
- package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -0
- package/lib/components/QueryBuilderResultPanel.js +242 -0
- package/lib/components/QueryBuilderResultPanel.js.map +1 -0
- package/lib/components/QueryBuilderSideBar.d.ts +41 -0
- package/lib/components/QueryBuilderSideBar.d.ts.map +1 -0
- package/lib/components/QueryBuilderSideBar.js +169 -0
- package/lib/components/QueryBuilderSideBar.js.map +1 -0
- package/lib/components/QueryBuilderTextEditor.d.ts +22 -0
- package/lib/components/QueryBuilderTextEditor.d.ts.map +1 -0
- package/lib/components/QueryBuilderTextEditor.js +48 -0
- package/lib/components/QueryBuilderTextEditor.js.map +1 -0
- package/lib/components/QueryBuilderUnsupportedQueryEditor.d.ts +22 -0
- package/lib/components/QueryBuilderUnsupportedQueryEditor.d.ts.map +1 -0
- package/lib/components/QueryBuilderUnsupportedQueryEditor.js +36 -0
- package/lib/components/QueryBuilderUnsupportedQueryEditor.js.map +1 -0
- package/lib/components/QueryBuilder_TestID.d.ts +26 -0
- package/lib/components/QueryBuilder_TestID.d.ts.map +1 -0
- package/lib/components/QueryBuilder_TestID.js +27 -0
- package/lib/components/QueryBuilder_TestID.js.map +1 -0
- package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts +36 -0
- package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts.map +1 -0
- package/lib/components/explorer/QueryBuilderExplorerPanel.js +340 -0
- package/lib/components/explorer/QueryBuilderExplorerPanel.js.map +1 -0
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts +22 -0
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts.map +1 -0
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js +147 -0
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js.map +1 -0
- package/lib/components/explorer/QueryBuilderMilestoneEditor.d.ts +22 -0
- package/lib/components/explorer/QueryBuilderMilestoneEditor.d.ts.map +1 -0
- package/lib/components/explorer/QueryBuilderMilestoneEditor.js +122 -0
- package/lib/components/explorer/QueryBuilderMilestoneEditor.js.map +1 -0
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts +23 -0
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts.map +1 -0
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.js +200 -0
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.js.map +1 -0
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.d.ts +22 -0
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.d.ts.map +1 -0
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.js +52 -0
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.js.map +1 -0
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts +31 -0
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts.map +1 -0
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js +94 -0
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js.map +1 -0
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts +30 -0
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +1 -0
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +378 -0
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -0
- package/lib/components/fetch-structure/QueryBuilderProjectionPanel.d.ts +22 -0
- package/lib/components/fetch-structure/QueryBuilderProjectionPanel.d.ts.map +1 -0
- package/lib/components/fetch-structure/QueryBuilderProjectionPanel.js +216 -0
- package/lib/components/fetch-structure/QueryBuilderProjectionPanel.js.map +1 -0
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts +22 -0
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +1 -0
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +88 -0
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -0
- package/lib/components/filter/QueryBuilderFilterPanel.d.ts +22 -0
- package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +1 -0
- package/lib/components/filter/QueryBuilderFilterPanel.js +316 -0
- package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -0
- package/lib/components/shared/ElementIconUtils.d.ts +18 -0
- package/lib/components/shared/ElementIconUtils.d.ts.map +1 -0
- package/lib/components/shared/ElementIconUtils.js +37 -0
- package/lib/components/shared/ElementIconUtils.js.map +1 -0
- package/lib/components/shared/QueryBuilderLambdaEditor.d.ts +42 -0
- package/lib/components/shared/QueryBuilderLambdaEditor.d.ts.map +1 -0
- package/lib/components/shared/QueryBuilderLambdaEditor.js +47 -0
- package/lib/components/shared/QueryBuilderLambdaEditor.js.map +1 -0
- package/lib/components/shared/QueryBuilderPanelIssueCountBadge.d.ts +20 -0
- package/lib/components/shared/QueryBuilderPanelIssueCountBadge.d.ts.map +1 -0
- package/lib/components/shared/QueryBuilderPanelIssueCountBadge.js +28 -0
- package/lib/components/shared/QueryBuilderPanelIssueCountBadge.js.map +1 -0
- package/lib/components/shared/QueryBuilderPropertyInfoTooltip.d.ts +26 -0
- package/lib/components/shared/QueryBuilderPropertyInfoTooltip.d.ts.map +1 -0
- package/lib/components/shared/QueryBuilderPropertyInfoTooltip.js +32 -0
- package/lib/components/shared/QueryBuilderPropertyInfoTooltip.js.map +1 -0
- package/lib/components/workflows/ClassQueryBuilder.d.ts +18 -0
- package/lib/components/workflows/ClassQueryBuilder.d.ts.map +1 -0
- package/lib/components/workflows/ClassQueryBuilder.js +87 -0
- package/lib/components/workflows/ClassQueryBuilder.js.map +1 -0
- package/lib/components/workflows/MappingQueryBuilder.d.ts +18 -0
- package/lib/components/workflows/MappingQueryBuilder.d.ts.map +1 -0
- package/lib/components/workflows/MappingQueryBuilder.js +88 -0
- package/lib/components/workflows/MappingQueryBuilder.js.map +1 -0
- package/lib/components/workflows/ServiceQueryBuilder.d.ts +18 -0
- package/lib/components/workflows/ServiceQueryBuilder.d.ts.map +1 -0
- package/lib/components/workflows/ServiceQueryBuilder.js +69 -0
- package/lib/components/workflows/ServiceQueryBuilder.js.map +1 -0
- package/lib/graphManager/QueryBuilderSupportedFunctions.d.ts +60 -0
- package/lib/graphManager/QueryBuilderSupportedFunctions.d.ts.map +1 -0
- package/lib/graphManager/QueryBuilderSupportedFunctions.js +65 -0
- package/lib/graphManager/QueryBuilderSupportedFunctions.js.map +1 -0
- package/lib/graphManager/QueryBuilder_GraphManagerPlugin.d.ts +21 -0
- package/lib/graphManager/QueryBuilder_GraphManagerPlugin.d.ts.map +1 -0
- package/lib/graphManager/QueryBuilder_GraphManagerPlugin.js +27 -0
- package/lib/graphManager/QueryBuilder_GraphManagerPlugin.js.map +1 -0
- package/lib/graphManager/QueryBuilder_GraphManagerPreset.d.ts +24 -0
- package/lib/graphManager/QueryBuilder_GraphManagerPreset.d.ts.map +1 -0
- package/lib/graphManager/QueryBuilder_GraphManagerPreset.js +32 -0
- package/lib/graphManager/QueryBuilder_GraphManagerPreset.js.map +1 -0
- package/lib/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.d.ts +21 -0
- package/lib/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.d.ts.map +1 -0
- package/lib/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.js +20 -0
- package/lib/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.js.map +1 -0
- package/lib/graphManager/action/analytics/ServiceExecutionAnalysis.d.ts +21 -0
- package/lib/graphManager/action/analytics/ServiceExecutionAnalysis.d.ts.map +1 -0
- package/lib/graphManager/action/analytics/ServiceExecutionAnalysis.js +20 -0
- package/lib/graphManager/action/analytics/ServiceExecutionAnalysis.js.map +1 -0
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.d.ts +25 -0
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.d.ts.map +1 -0
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.js +21 -0
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.js.map +1 -0
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.d.ts +18 -0
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.d.ts.map +1 -0
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.js +20 -0
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.js.map +1 -0
- package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.d.ts +22 -0
- package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.d.ts.map +1 -0
- package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js +70 -0
- package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js.map +1 -0
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.d.ts +22 -0
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.d.ts.map +1 -0
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.js +207 -0
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.js.map +1 -0
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.d.ts +18 -0
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.d.ts.map +1 -0
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.js +18 -0
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.js.map +1 -0
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.d.ts +29 -0
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.d.ts.map +1 -0
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.js +182 -0
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.js.map +1 -0
- package/lib/index.css +17 -0
- package/lib/index.css.map +1 -0
- package/lib/index.d.ts +28 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +26 -0
- package/lib/index.js.map +1 -0
- package/lib/package.json +95 -0
- package/lib/stores/QueryBuilderBootstraper.d.ts +17 -0
- package/lib/stores/QueryBuilderBootstraper.d.ts.map +1 -0
- package/lib/stores/QueryBuilderBootstraper.js +22 -0
- package/lib/stores/QueryBuilderBootstraper.js.map +1 -0
- package/lib/stores/QueryBuilderChangeDetectionState.d.ts +25 -0
- package/lib/stores/QueryBuilderChangeDetectionState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderChangeDetectionState.js +32 -0
- package/lib/stores/QueryBuilderChangeDetectionState.js.map +1 -0
- package/lib/stores/QueryBuilderConfig.d.ts +32 -0
- package/lib/stores/QueryBuilderConfig.d.ts.map +1 -0
- package/lib/stores/QueryBuilderConfig.js +34 -0
- package/lib/stores/QueryBuilderConfig.js.map +1 -0
- package/lib/stores/QueryBuilderGroupOperationHelper.d.ts +22 -0
- package/lib/stores/QueryBuilderGroupOperationHelper.d.ts.map +1 -0
- package/lib/stores/QueryBuilderGroupOperationHelper.js +43 -0
- package/lib/stores/QueryBuilderGroupOperationHelper.js.map +1 -0
- package/lib/stores/QueryBuilderMilestoningState.d.ts +32 -0
- package/lib/stores/QueryBuilderMilestoningState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderMilestoningState.js +95 -0
- package/lib/stores/QueryBuilderMilestoningState.js.map +1 -0
- package/lib/stores/QueryBuilderParametersState.d.ts +28 -0
- package/lib/stores/QueryBuilderParametersState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderParametersState.js +39 -0
- package/lib/stores/QueryBuilderParametersState.js.map +1 -0
- package/lib/stores/QueryBuilderPreviewDataHelper.d.ts +26 -0
- package/lib/stores/QueryBuilderPreviewDataHelper.d.ts.map +1 -0
- package/lib/stores/QueryBuilderPreviewDataHelper.js +138 -0
- package/lib/stores/QueryBuilderPreviewDataHelper.js.map +1 -0
- package/lib/stores/QueryBuilderPropertyEditorState.d.ts +62 -0
- package/lib/stores/QueryBuilderPropertyEditorState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderPropertyEditorState.js +395 -0
- package/lib/stores/QueryBuilderPropertyEditorState.js.map +1 -0
- package/lib/stores/QueryBuilderResultState.d.ts +41 -0
- package/lib/stores/QueryBuilderResultState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderResultState.js +176 -0
- package/lib/stores/QueryBuilderResultState.js.map +1 -0
- package/lib/stores/QueryBuilderState.d.ts +110 -0
- package/lib/stores/QueryBuilderState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderState.js +334 -0
- package/lib/stores/QueryBuilderState.js.map +1 -0
- package/lib/stores/QueryBuilderStateBuilder.d.ts +124 -0
- package/lib/stores/QueryBuilderStateBuilder.d.ts.map +1 -0
- package/lib/stores/QueryBuilderStateBuilder.js +311 -0
- package/lib/stores/QueryBuilderStateBuilder.js.map +1 -0
- package/lib/stores/QueryBuilderStateTestUtils.d.ts +24 -0
- package/lib/stores/QueryBuilderStateTestUtils.d.ts.map +1 -0
- package/lib/stores/QueryBuilderStateTestUtils.js +50 -0
- package/lib/stores/QueryBuilderStateTestUtils.js.map +1 -0
- package/lib/stores/QueryBuilderTextEditorState.d.ts +49 -0
- package/lib/stores/QueryBuilderTextEditorState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderTextEditorState.js +145 -0
- package/lib/stores/QueryBuilderTextEditorState.js.map +1 -0
- package/lib/stores/QueryBuilderTypeaheadHelper.d.ts +24 -0
- package/lib/stores/QueryBuilderTypeaheadHelper.d.ts.map +1 -0
- package/lib/stores/QueryBuilderTypeaheadHelper.js +85 -0
- package/lib/stores/QueryBuilderTypeaheadHelper.js.map +1 -0
- package/lib/stores/QueryBuilderUnsupportedQueryState.d.ts +26 -0
- package/lib/stores/QueryBuilderUnsupportedQueryState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderUnsupportedQueryState.js +37 -0
- package/lib/stores/QueryBuilderUnsupportedQueryState.js.map +1 -0
- package/lib/stores/QueryBuilderValueSpecificationBuilder.d.ts +20 -0
- package/lib/stores/QueryBuilderValueSpecificationBuilder.d.ts.map +1 -0
- package/lib/stores/QueryBuilderValueSpecificationBuilder.js +87 -0
- package/lib/stores/QueryBuilderValueSpecificationBuilder.js.map +1 -0
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts +27 -0
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts.map +1 -0
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js +161 -0
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js.map +1 -0
- package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts +61 -0
- package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts.map +1 -0
- package/lib/stores/QueryBuilderValueSpecificationHelper.js +235 -0
- package/lib/stores/QueryBuilderValueSpecificationHelper.js.map +1 -0
- package/lib/stores/explorer/QueryBuilderExplorerState.d.ts +99 -0
- package/lib/stores/explorer/QueryBuilderExplorerState.d.ts.map +1 -0
- package/lib/stores/explorer/QueryBuilderExplorerState.js +446 -0
- package/lib/stores/explorer/QueryBuilderExplorerState.js.map +1 -0
- package/lib/stores/explorer/QueryBuilderPropertySearchState.d.ts +46 -0
- package/lib/stores/explorer/QueryBuilderPropertySearchState.d.ts.map +1 -0
- package/lib/stores/explorer/QueryBuilderPropertySearchState.js +242 -0
- package/lib/stores/explorer/QueryBuilderPropertySearchState.js.map +1 -0
- package/lib/stores/explorer/QueryFunctionsExplorerState.d.ts +59 -0
- package/lib/stores/explorer/QueryFunctionsExplorerState.d.ts.map +1 -0
- package/lib/stores/explorer/QueryFunctionsExplorerState.js +228 -0
- package/lib/stores/explorer/QueryFunctionsExplorerState.js.map +1 -0
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts +40 -0
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js +34 -0
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js.map +1 -0
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.d.ts +27 -0
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.js +73 -0
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.js.map +1 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts +49 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js +157 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js.map +1 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.d.ts +20 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js +62 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.d.ts +42 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.d.ts.map +1 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js +173 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js.map +1 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.d.ts +26 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.js +72 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.d.ts +73 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.js +187 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.js.map +1 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.d.ts +68 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.js +305 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.js.map +1 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionStateBuilder.d.ts +25 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionStateBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionStateBuilder.js +186 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionStateBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts +26 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.js +189 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/projection/QueryResultSetModifierState.d.ts +43 -0
- package/lib/stores/fetch-structure/projection/QueryResultSetModifierState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/QueryResultSetModifierState.js +77 -0
- package/lib/stores/fetch-structure/projection/QueryResultSetModifierState.js.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.d.ts +32 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.js +36 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.js.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.d.ts +18 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.js +38 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.js.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.d.ts +42 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.js +103 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.js.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.d.ts +20 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.js +96 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.d.ts +22 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.js +40 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.js.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.d.ts +27 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.js +50 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.js.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.d.ts +27 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.js +55 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.js.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.d.ts +26 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js +50 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.d.ts +27 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js +78 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.d.ts +27 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js +67 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.d.ts +26 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.js +86 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.js.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.d.ts +26 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.js +86 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.js.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.d.ts +27 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js +50 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts +27 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js +50 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.d.ts +26 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.js +45 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.js.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.d.ts +29 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.js +30 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.js.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.d.ts +18 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.js +44 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.js.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.d.ts +135 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.js +585 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.js.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.d.ts +22 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.js +122 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.d.ts +19 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js +79 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.d.ts +23 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js +73 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts +32 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js +75 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts +32 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js +75 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts +32 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js +118 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts +27 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js +81 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts +24 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js +43 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts +32 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.js +104 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.js.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts +33 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js +67 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts +27 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js +81 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts +24 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js +43 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts +32 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js +75 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js.map +1 -0
- package/lib/stores/filter/QueryBuilderFilterOperator.d.ts +27 -0
- package/lib/stores/filter/QueryBuilderFilterOperator.d.ts.map +1 -0
- package/lib/stores/filter/QueryBuilderFilterOperator.js +20 -0
- package/lib/stores/filter/QueryBuilderFilterOperator.js.map +1 -0
- package/lib/stores/filter/QueryBuilderFilterOperatorLoader.d.ts +18 -0
- package/lib/stores/filter/QueryBuilderFilterOperatorLoader.d.ts.map +1 -0
- package/lib/stores/filter/QueryBuilderFilterOperatorLoader.js +44 -0
- package/lib/stores/filter/QueryBuilderFilterOperatorLoader.js.map +1 -0
- package/lib/stores/filter/QueryBuilderFilterState.d.ts +123 -0
- package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +1 -0
- package/lib/stores/filter/QueryBuilderFilterState.js +531 -0
- package/lib/stores/filter/QueryBuilderFilterState.js.map +1 -0
- package/lib/stores/filter/QueryBuilderFilterStateBuilder.d.ts +19 -0
- package/lib/stores/filter/QueryBuilderFilterStateBuilder.d.ts.map +1 -0
- package/lib/stores/filter/QueryBuilderFilterStateBuilder.js +74 -0
- package/lib/stores/filter/QueryBuilderFilterStateBuilder.js.map +1 -0
- package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.d.ts +19 -0
- package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.d.ts.map +1 -0
- package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js +78 -0
- package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperatorHelper.d.ts +21 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperatorHelper.d.ts.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperatorHelper.js +257 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperatorHelper.js.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.d.ts +32 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.d.ts.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js +71 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.d.ts +32 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.d.ts.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js +71 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.d.ts +32 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.d.ts.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js +115 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.d.ts +27 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.d.ts.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.js +83 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.js.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts +27 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js +83 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.d.ts +32 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.d.ts.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js +103 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.d.ts +32 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.d.ts.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js +65 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.d.ts +27 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.d.ts.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.js +83 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.js.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.d.ts +27 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.d.ts.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js +83 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.d.ts +32 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.d.ts.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js +71 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js.map +1 -0
- package/lib/stores/workflows/ClassQueryBuilderState.d.ts +35 -0
- package/lib/stores/workflows/ClassQueryBuilderState.d.ts.map +1 -0
- package/lib/stores/workflows/ClassQueryBuilderState.js +57 -0
- package/lib/stores/workflows/ClassQueryBuilderState.js.map +1 -0
- package/lib/stores/workflows/MappingQueryBuilderState.d.ts +33 -0
- package/lib/stores/workflows/MappingQueryBuilderState.d.ts.map +1 -0
- package/lib/stores/workflows/MappingQueryBuilderState.js +55 -0
- package/lib/stores/workflows/MappingQueryBuilderState.js.map +1 -0
- package/lib/stores/workflows/ServiceQueryBuilderState.d.ts +44 -0
- package/lib/stores/workflows/ServiceQueryBuilderState.d.ts.map +1 -0
- package/lib/stores/workflows/ServiceQueryBuilderState.js +90 -0
- package/lib/stores/workflows/ServiceQueryBuilderState.js.map +1 -0
- package/package.json +95 -0
- package/src/components/QueryBuilder.tsx +411 -0
- package/src/components/QueryBuilderComponentTestUtils.tsx +122 -0
- package/src/components/QueryBuilderParametersPanel.tsx +431 -0
- package/src/components/QueryBuilderPropertyExpressionEditor.tsx +376 -0
- package/src/components/QueryBuilderResultPanel.tsx +640 -0
- package/src/components/QueryBuilderSideBar.tsx +421 -0
- package/src/components/QueryBuilderTextEditor.tsx +127 -0
- package/src/components/QueryBuilderUnsupportedQueryEditor.tsx +88 -0
- package/src/components/QueryBuilder_TestID.ts +26 -0
- package/src/components/explorer/QueryBuilderExplorerPanel.tsx +934 -0
- package/src/components/explorer/QueryBuilderFunctionsExplorerPanel.tsx +554 -0
- package/src/components/explorer/QueryBuilderMilestoneEditor.tsx +296 -0
- package/src/components/explorer/QueryBuilderPropertySearchPanel.tsx +617 -0
- package/src/components/fetch-structure/QueryBuilderFetchStructurePanel.tsx +112 -0
- package/src/components/fetch-structure/QueryBuilderGraphFetchTreePanel.tsx +276 -0
- package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +1103 -0
- package/src/components/fetch-structure/QueryBuilderProjectionPanel.tsx +649 -0
- package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +254 -0
- package/src/components/filter/QueryBuilderFilterPanel.tsx +891 -0
- package/src/components/shared/ElementIconUtils.tsx +47 -0
- package/src/components/shared/QueryBuilderLambdaEditor.tsx +120 -0
- package/src/components/shared/QueryBuilderPanelIssueCountBadge.tsx +40 -0
- package/src/components/shared/QueryBuilderPropertyInfoTooltip.tsx +87 -0
- package/src/components/workflows/ClassQueryBuilder.tsx +198 -0
- package/src/components/workflows/MappingQueryBuilder.tsx +195 -0
- package/src/components/workflows/ServiceQueryBuilder.tsx +192 -0
- package/src/graphManager/QueryBuilderSupportedFunctions.ts +67 -0
- package/src/graphManager/QueryBuilder_GraphManagerPlugin.ts +32 -0
- package/src/graphManager/QueryBuilder_GraphManagerPreset.ts +33 -0
- package/src/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.ts +22 -0
- package/src/graphManager/action/analytics/ServiceExecutionAnalysis.ts +22 -0
- package/src/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.ts +47 -0
- package/src/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.ts +27 -0
- package/src/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.ts +167 -0
- package/src/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.ts +571 -0
- package/src/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.ts +28 -0
- package/src/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.ts +296 -0
- package/src/index.ts +38 -0
- package/src/stores/QueryBuilderBootstraper.ts +23 -0
- package/src/stores/QueryBuilderChangeDetectionState.ts +37 -0
- package/src/stores/QueryBuilderConfig.ts +34 -0
- package/src/stores/QueryBuilderGroupOperationHelper.ts +54 -0
- package/src/stores/QueryBuilderMilestoningState.ts +164 -0
- package/src/stores/QueryBuilderParametersState.ts +52 -0
- package/src/stores/QueryBuilderPreviewDataHelper.ts +202 -0
- package/src/stores/QueryBuilderPropertyEditorState.ts +668 -0
- package/src/stores/QueryBuilderResultState.ts +281 -0
- package/src/stores/QueryBuilderState.ts +465 -0
- package/src/stores/QueryBuilderStateBuilder.ts +585 -0
- package/src/stores/QueryBuilderStateTestUtils.ts +99 -0
- package/src/stores/QueryBuilderTextEditorState.ts +203 -0
- package/src/stores/QueryBuilderTypeaheadHelper.ts +152 -0
- package/src/stores/QueryBuilderUnsupportedQueryState.ts +44 -0
- package/src/stores/QueryBuilderValueSpecificationBuilder.ts +179 -0
- package/src/stores/QueryBuilderValueSpecificationBuilderHelper.ts +256 -0
- package/src/stores/QueryBuilderValueSpecificationHelper.ts +359 -0
- package/src/stores/explorer/QueryBuilderExplorerState.ts +798 -0
- package/src/stores/explorer/QueryBuilderPropertySearchState.ts +333 -0
- package/src/stores/explorer/QueryFunctionsExplorerState.ts +375 -0
- package/src/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.ts +65 -0
- package/src/stores/fetch-structure/QueryBuilderFetchStructureState.ts +107 -0
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts +240 -0
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.ts +131 -0
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.ts +282 -0
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.ts +154 -0
- package/src/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.ts +327 -0
- package/src/stores/fetch-structure/projection/QueryBuilderProjectionState.ts +569 -0
- package/src/stores/fetch-structure/projection/QueryBuilderProjectionStateBuilder.ts +426 -0
- package/src/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +416 -0
- package/src/stores/fetch-structure/projection/QueryResultSetModifierState.ts +95 -0
- package/src/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.ts +79 -0
- package/src/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.ts +41 -0
- package/src/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.ts +145 -0
- package/src/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.ts +228 -0
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.ts +109 -0
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.ts +98 -0
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.ts +106 -0
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.ts +96 -0
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.ts +173 -0
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.ts +155 -0
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.ts +174 -0
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.ts +174 -0
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.ts +98 -0
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.ts +98 -0
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.ts +88 -0
- package/src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.ts +66 -0
- package/src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.ts +65 -0
- package/src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.ts +807 -0
- package/src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.ts +297 -0
- package/src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.ts +121 -0
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.ts +129 -0
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.ts +140 -0
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.ts +135 -0
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.ts +218 -0
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.ts +143 -0
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.ts +70 -0
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.ts +183 -0
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.ts +113 -0
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.ts +143 -0
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.ts +70 -0
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts +135 -0
- package/src/stores/filter/QueryBuilderFilterOperator.ts +52 -0
- package/src/stores/filter/QueryBuilderFilterOperatorLoader.ts +65 -0
- package/src/stores/filter/QueryBuilderFilterState.ts +736 -0
- package/src/stores/filter/QueryBuilderFilterStateBuilder.ts +155 -0
- package/src/stores/filter/QueryBuilderFilterValueSpecificationBuilder.ts +120 -0
- package/src/stores/filter/operators/QueryBuilderFilterOperatorHelper.ts +524 -0
- package/src/stores/filter/operators/QueryBuilderFilterOperator_Contain.ts +134 -0
- package/src/stores/filter/operators/QueryBuilderFilterOperator_EndWith.ts +134 -0
- package/src/stores/filter/operators/QueryBuilderFilterOperator_Equal.ts +211 -0
- package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.ts +145 -0
- package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.ts +145 -0
- package/src/stores/filter/operators/QueryBuilderFilterOperator_In.ts +181 -0
- package/src/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.ts +125 -0
- package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThan.ts +145 -0
- package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.ts +145 -0
- package/src/stores/filter/operators/QueryBuilderFilterOperator_StartWith.ts +134 -0
- package/src/stores/workflows/ClassQueryBuilderState.ts +80 -0
- package/src/stores/workflows/MappingQueryBuilderState.ts +86 -0
- package/src/stores/workflows/ServiceQueryBuilderState.ts +143 -0
- package/tsconfig.json +166 -0
- package/tsconfig.package.json +38 -0
@@ -0,0 +1,736 @@
|
|
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
|
+
|
17
|
+
import {
|
18
|
+
action,
|
19
|
+
computed,
|
20
|
+
makeAutoObservable,
|
21
|
+
makeObservable,
|
22
|
+
observable,
|
23
|
+
flow,
|
24
|
+
} from 'mobx';
|
25
|
+
import type { TreeNodeData, TreeData } from '@finos/legend-art';
|
26
|
+
import {
|
27
|
+
type GeneratorFn,
|
28
|
+
assertTrue,
|
29
|
+
getNullableFirstElement,
|
30
|
+
guaranteeNonNullable,
|
31
|
+
guaranteeType,
|
32
|
+
IllegalStateError,
|
33
|
+
uuid,
|
34
|
+
addUniqueEntry,
|
35
|
+
deleteEntry,
|
36
|
+
assertErrorThrown,
|
37
|
+
filterByType,
|
38
|
+
ActionState,
|
39
|
+
} from '@finos/legend-shared';
|
40
|
+
import type { QueryBuilderExplorerTreeDragSource } from '../explorer/QueryBuilderExplorerState.js';
|
41
|
+
import { QueryBuilderPropertyExpressionState } from '../QueryBuilderPropertyEditorState.js';
|
42
|
+
import type { QueryBuilderState } from '../QueryBuilderState.js';
|
43
|
+
import {
|
44
|
+
type ExecutionResult,
|
45
|
+
type AbstractPropertyExpression,
|
46
|
+
type ValueSpecification,
|
47
|
+
observe_ValueSpecification,
|
48
|
+
} from '@finos/legend-graph';
|
49
|
+
import { DEFAULT_LAMBDA_VARIABLE_NAME } from '../QueryBuilderConfig.js';
|
50
|
+
import type { QueryBuilderProjectionColumnDragSource } from '../fetch-structure/projection/QueryBuilderProjectionColumnState.js';
|
51
|
+
import {
|
52
|
+
buildPropertyTypeaheadQuery,
|
53
|
+
buildTypeaheadOptions,
|
54
|
+
performTypeahead,
|
55
|
+
} from '../QueryBuilderTypeaheadHelper.js';
|
56
|
+
import type { QueryBuilderFilterOperator } from './QueryBuilderFilterOperator.js';
|
57
|
+
import { QUERY_BUILDER_GROUP_OPERATION } from '../QueryBuilderGroupOperationHelper.js';
|
58
|
+
|
59
|
+
export enum QUERY_BUILDER_FILTER_DND_TYPE {
|
60
|
+
GROUP_CONDITION = 'GROUP_CONDITION',
|
61
|
+
CONDITION = 'CONDITION',
|
62
|
+
BLANK_CONDITION = 'BLANK_CONDITION',
|
63
|
+
}
|
64
|
+
|
65
|
+
export interface QueryBuilderFilterConditionDragSource {
|
66
|
+
node: QueryBuilderFilterTreeNodeData;
|
67
|
+
}
|
68
|
+
|
69
|
+
export type QueryBuilderFilterDropTarget =
|
70
|
+
| QueryBuilderExplorerTreeDragSource
|
71
|
+
| QueryBuilderProjectionColumnDragSource
|
72
|
+
| QueryBuilderFilterConditionDragSource;
|
73
|
+
export type QueryBuilderFilterConditionRearrangeDropTarget =
|
74
|
+
QueryBuilderFilterConditionDragSource;
|
75
|
+
|
76
|
+
export class FilterConditionState {
|
77
|
+
filterState: QueryBuilderFilterState;
|
78
|
+
propertyExpressionState: QueryBuilderPropertyExpressionState;
|
79
|
+
operator!: QueryBuilderFilterOperator;
|
80
|
+
value?: ValueSpecification | undefined;
|
81
|
+
existsLambdaParamNames: string[] = [];
|
82
|
+
typeaheadSearchResults: string[] | undefined;
|
83
|
+
typeaheadSearchState = ActionState.create();
|
84
|
+
|
85
|
+
constructor(
|
86
|
+
filterState: QueryBuilderFilterState,
|
87
|
+
propertyExpression: AbstractPropertyExpression,
|
88
|
+
) {
|
89
|
+
makeAutoObservable(this, {
|
90
|
+
filterState: false,
|
91
|
+
operators: computed,
|
92
|
+
changeProperty: action,
|
93
|
+
changeOperator: action,
|
94
|
+
setOperator: action,
|
95
|
+
setValue: action,
|
96
|
+
typeaheadSearchResults: observable,
|
97
|
+
typeaheadSearchState: observable,
|
98
|
+
addExistsLambdaParamNames: action,
|
99
|
+
handleTypeaheadSearch: flow,
|
100
|
+
});
|
101
|
+
|
102
|
+
this.filterState = filterState;
|
103
|
+
this.propertyExpressionState = new QueryBuilderPropertyExpressionState(
|
104
|
+
filterState.queryBuilderState,
|
105
|
+
propertyExpression,
|
106
|
+
);
|
107
|
+
|
108
|
+
// operator
|
109
|
+
assertTrue(
|
110
|
+
this.operators.length !== 0,
|
111
|
+
`Can't find an operator for property '${this.propertyExpressionState.path}': no operators registered`,
|
112
|
+
);
|
113
|
+
this.operator = this.operators[0] as QueryBuilderFilterOperator;
|
114
|
+
this.setValue(this.operator.getDefaultFilterConditionValue(this));
|
115
|
+
}
|
116
|
+
|
117
|
+
get operators(): QueryBuilderFilterOperator[] {
|
118
|
+
return this.filterState.operators.filter((op) =>
|
119
|
+
op.isCompatibleWithFilterConditionProperty(this),
|
120
|
+
);
|
121
|
+
}
|
122
|
+
|
123
|
+
*handleTypeaheadSearch(): GeneratorFn<void> {
|
124
|
+
try {
|
125
|
+
this.typeaheadSearchState.inProgress();
|
126
|
+
this.typeaheadSearchResults = undefined;
|
127
|
+
if (performTypeahead(this.value)) {
|
128
|
+
const result =
|
129
|
+
(yield this.filterState.queryBuilderState.graphManagerState.graphManager.executeMapping(
|
130
|
+
buildPropertyTypeaheadQuery(
|
131
|
+
this.filterState.queryBuilderState,
|
132
|
+
this.propertyExpressionState.propertyExpression,
|
133
|
+
this.value,
|
134
|
+
),
|
135
|
+
guaranteeNonNullable(this.filterState.queryBuilderState.mapping),
|
136
|
+
guaranteeNonNullable(
|
137
|
+
this.filterState.queryBuilderState.runtimeValue,
|
138
|
+
),
|
139
|
+
this.filterState.queryBuilderState.graphManagerState.graph,
|
140
|
+
)) as ExecutionResult;
|
141
|
+
this.typeaheadSearchResults = buildTypeaheadOptions(result);
|
142
|
+
}
|
143
|
+
this.typeaheadSearchState.pass();
|
144
|
+
} catch (error) {
|
145
|
+
assertErrorThrown(error);
|
146
|
+
this.typeaheadSearchResults = [];
|
147
|
+
this.typeaheadSearchState.fail();
|
148
|
+
} finally {
|
149
|
+
this.typeaheadSearchState.complete();
|
150
|
+
}
|
151
|
+
}
|
152
|
+
|
153
|
+
changeProperty(propertyExpression: AbstractPropertyExpression): void {
|
154
|
+
try {
|
155
|
+
// first, check if the new property is supported
|
156
|
+
new FilterConditionState(this.filterState, propertyExpression);
|
157
|
+
} catch (error) {
|
158
|
+
assertErrorThrown(error);
|
159
|
+
this.filterState.queryBuilderState.applicationStore.notifyError(error);
|
160
|
+
return;
|
161
|
+
}
|
162
|
+
|
163
|
+
// observe the property expression
|
164
|
+
observe_ValueSpecification(
|
165
|
+
propertyExpression,
|
166
|
+
this.filterState.queryBuilderState.observableContext,
|
167
|
+
);
|
168
|
+
|
169
|
+
this.propertyExpressionState = new QueryBuilderPropertyExpressionState(
|
170
|
+
this.filterState.queryBuilderState,
|
171
|
+
propertyExpression,
|
172
|
+
);
|
173
|
+
|
174
|
+
const newCompatibleOperators = this.operators;
|
175
|
+
assertTrue(
|
176
|
+
newCompatibleOperators.length !== 0,
|
177
|
+
`Can't find an operator for property '${this.propertyExpressionState.path}': no operators registered`,
|
178
|
+
);
|
179
|
+
if (!newCompatibleOperators.includes(this.operator)) {
|
180
|
+
this.changeOperator(
|
181
|
+
newCompatibleOperators[0] as QueryBuilderFilterOperator,
|
182
|
+
);
|
183
|
+
} else if (!this.operator.isCompatibleWithFilterConditionValue(this)) {
|
184
|
+
this.setValue(this.operator.getDefaultFilterConditionValue(this));
|
185
|
+
}
|
186
|
+
}
|
187
|
+
|
188
|
+
changeOperator(val: QueryBuilderFilterOperator): void {
|
189
|
+
this.setOperator(val);
|
190
|
+
if (!this.operator.isCompatibleWithFilterConditionValue(this)) {
|
191
|
+
this.setValue(this.operator.getDefaultFilterConditionValue(this));
|
192
|
+
}
|
193
|
+
}
|
194
|
+
|
195
|
+
setOperator(val: QueryBuilderFilterOperator): void {
|
196
|
+
this.operator = val;
|
197
|
+
}
|
198
|
+
|
199
|
+
setValue(val: ValueSpecification | undefined): void {
|
200
|
+
this.value = val
|
201
|
+
? observe_ValueSpecification(
|
202
|
+
val,
|
203
|
+
this.filterState.queryBuilderState.observableContext,
|
204
|
+
)
|
205
|
+
: undefined;
|
206
|
+
}
|
207
|
+
|
208
|
+
addExistsLambdaParamNames(val: string): void {
|
209
|
+
this.existsLambdaParamNames.push(val);
|
210
|
+
}
|
211
|
+
}
|
212
|
+
|
213
|
+
export abstract class QueryBuilderFilterTreeNodeData implements TreeNodeData {
|
214
|
+
readonly id = uuid();
|
215
|
+
readonly label = '';
|
216
|
+
// NOTE: we don't use the `isSelected` attribute is not used since we keep track of it from the tree data level
|
217
|
+
isOpen?: boolean | undefined;
|
218
|
+
parentId?: string | undefined;
|
219
|
+
|
220
|
+
constructor(parentId: string | undefined) {
|
221
|
+
this.parentId = parentId;
|
222
|
+
|
223
|
+
makeObservable(this, {
|
224
|
+
isOpen: observable,
|
225
|
+
parentId: observable,
|
226
|
+
setIsOpen: action,
|
227
|
+
setParentId: action,
|
228
|
+
});
|
229
|
+
}
|
230
|
+
|
231
|
+
abstract get dragPreviewLabel(): string;
|
232
|
+
setIsOpen(val: boolean): void {
|
233
|
+
this.isOpen = val;
|
234
|
+
}
|
235
|
+
setParentId(val: string | undefined): void {
|
236
|
+
this.parentId = val;
|
237
|
+
}
|
238
|
+
}
|
239
|
+
|
240
|
+
export class QueryBuilderFilterTreeGroupNodeData extends QueryBuilderFilterTreeNodeData {
|
241
|
+
groupOperation: QUERY_BUILDER_GROUP_OPERATION;
|
242
|
+
childrenIds: string[] = [];
|
243
|
+
|
244
|
+
constructor(
|
245
|
+
parentId: string | undefined,
|
246
|
+
groupOperation: QUERY_BUILDER_GROUP_OPERATION,
|
247
|
+
) {
|
248
|
+
super(parentId);
|
249
|
+
|
250
|
+
makeObservable(this, {
|
251
|
+
groupOperation: observable,
|
252
|
+
childrenIds: observable,
|
253
|
+
setGroupOperation: action,
|
254
|
+
addChildNode: action,
|
255
|
+
removeChildNode: action,
|
256
|
+
dragPreviewLabel: computed,
|
257
|
+
});
|
258
|
+
|
259
|
+
this.groupOperation = groupOperation;
|
260
|
+
this.isOpen = true;
|
261
|
+
}
|
262
|
+
|
263
|
+
get dragPreviewLabel(): string {
|
264
|
+
return `${this.groupOperation.toUpperCase()} group`;
|
265
|
+
}
|
266
|
+
|
267
|
+
setGroupOperation(val: QUERY_BUILDER_GROUP_OPERATION): void {
|
268
|
+
this.groupOperation = val;
|
269
|
+
}
|
270
|
+
addChildNode(node: QueryBuilderFilterTreeNodeData): void {
|
271
|
+
addUniqueEntry(this.childrenIds, node.id);
|
272
|
+
node.setParentId(this.id);
|
273
|
+
}
|
274
|
+
removeChildNode(node: QueryBuilderFilterTreeNodeData): void {
|
275
|
+
deleteEntry(this.childrenIds, node.id);
|
276
|
+
node.setParentId(undefined);
|
277
|
+
}
|
278
|
+
addChildNodeAt(node: QueryBuilderFilterTreeNodeData, idx: number): void {
|
279
|
+
if (!this.childrenIds.find((childId) => childId === node.id)) {
|
280
|
+
idx = Math.max(0, Math.min(idx, this.childrenIds.length - 1));
|
281
|
+
this.childrenIds.splice(idx, 0, node.id);
|
282
|
+
node.setParentId(this.id);
|
283
|
+
}
|
284
|
+
}
|
285
|
+
}
|
286
|
+
|
287
|
+
export class QueryBuilderFilterTreeConditionNodeData extends QueryBuilderFilterTreeNodeData {
|
288
|
+
condition: FilterConditionState;
|
289
|
+
|
290
|
+
constructor(parentId: string | undefined, condition: FilterConditionState) {
|
291
|
+
super(parentId);
|
292
|
+
|
293
|
+
makeObservable(this, {
|
294
|
+
condition: observable,
|
295
|
+
dragPreviewLabel: computed,
|
296
|
+
});
|
297
|
+
|
298
|
+
this.condition = condition;
|
299
|
+
}
|
300
|
+
|
301
|
+
get dragPreviewLabel(): string {
|
302
|
+
return this.condition.propertyExpressionState.title;
|
303
|
+
}
|
304
|
+
}
|
305
|
+
|
306
|
+
export class QueryBuilderFilterTreeBlankConditionNodeData extends QueryBuilderFilterTreeNodeData {
|
307
|
+
constructor(parentId: string | undefined) {
|
308
|
+
super(parentId);
|
309
|
+
|
310
|
+
makeObservable(this, {
|
311
|
+
dragPreviewLabel: computed,
|
312
|
+
});
|
313
|
+
}
|
314
|
+
|
315
|
+
get dragPreviewLabel(): string {
|
316
|
+
return '<blank>';
|
317
|
+
}
|
318
|
+
}
|
319
|
+
|
320
|
+
export class QueryBuilderFilterState
|
321
|
+
implements TreeData<QueryBuilderFilterTreeNodeData>
|
322
|
+
{
|
323
|
+
queryBuilderState: QueryBuilderState;
|
324
|
+
lambdaParameterName = DEFAULT_LAMBDA_VARIABLE_NAME;
|
325
|
+
rootIds: string[] = [];
|
326
|
+
nodes = new Map<string, QueryBuilderFilterTreeNodeData>();
|
327
|
+
selectedNode?: QueryBuilderFilterTreeNodeData | undefined;
|
328
|
+
isRearrangingConditions = false;
|
329
|
+
operators: QueryBuilderFilterOperator[] = [];
|
330
|
+
private _suppressClickawayEventListener = false;
|
331
|
+
|
332
|
+
constructor(
|
333
|
+
queryBuilderState: QueryBuilderState,
|
334
|
+
operators: QueryBuilderFilterOperator[],
|
335
|
+
) {
|
336
|
+
makeAutoObservable(this, {
|
337
|
+
queryBuilderState: false,
|
338
|
+
isValidMove: false,
|
339
|
+
setLambdaParameterName: action,
|
340
|
+
setRearrangingConditions: action,
|
341
|
+
suppressClickawayEventListener: action,
|
342
|
+
handleClickaway: action,
|
343
|
+
setSelectedNode: action,
|
344
|
+
addNodeFromNode: action,
|
345
|
+
replaceBlankNodeWithNode: action,
|
346
|
+
addGroupConditionNodeFromNode: action,
|
347
|
+
newGroupWithConditionFromNode: action,
|
348
|
+
removeNodeAndPruneBranch: action,
|
349
|
+
pruneTree: action,
|
350
|
+
simplifyTree: action,
|
351
|
+
collapseTree: action,
|
352
|
+
expandTree: action,
|
353
|
+
});
|
354
|
+
|
355
|
+
this.queryBuilderState = queryBuilderState;
|
356
|
+
this.operators = operators;
|
357
|
+
}
|
358
|
+
|
359
|
+
get isEmpty(): boolean {
|
360
|
+
return !this.nodes.size && !this.rootIds.length;
|
361
|
+
}
|
362
|
+
|
363
|
+
setLambdaParameterName(val: string): void {
|
364
|
+
this.lambdaParameterName = val;
|
365
|
+
}
|
366
|
+
|
367
|
+
setRearrangingConditions(val: boolean): void {
|
368
|
+
this.isRearrangingConditions = val;
|
369
|
+
}
|
370
|
+
suppressClickawayEventListener(): void {
|
371
|
+
this._suppressClickawayEventListener = true;
|
372
|
+
}
|
373
|
+
handleClickaway(): void {
|
374
|
+
if (this._suppressClickawayEventListener) {
|
375
|
+
this._suppressClickawayEventListener = false;
|
376
|
+
return;
|
377
|
+
}
|
378
|
+
this.setSelectedNode(undefined);
|
379
|
+
}
|
380
|
+
setSelectedNode(val: QueryBuilderFilterTreeNodeData | undefined): void {
|
381
|
+
this.selectedNode = val;
|
382
|
+
}
|
383
|
+
|
384
|
+
getNode(id: string): QueryBuilderFilterTreeNodeData {
|
385
|
+
return guaranteeNonNullable(
|
386
|
+
this.nodes.get(id),
|
387
|
+
`Can't find query builder filter tree node with ID '${id}'`,
|
388
|
+
);
|
389
|
+
}
|
390
|
+
getRootNode(): QueryBuilderFilterTreeNodeData | undefined {
|
391
|
+
assertTrue(
|
392
|
+
this.rootIds.length < 2,
|
393
|
+
'Query builder filter tree cannot have more than 1 root',
|
394
|
+
);
|
395
|
+
const rootId = getNullableFirstElement(this.rootIds);
|
396
|
+
return rootId ? this.getNode(rootId) : undefined;
|
397
|
+
}
|
398
|
+
|
399
|
+
private getParentNode(
|
400
|
+
node: QueryBuilderFilterTreeNodeData,
|
401
|
+
): QueryBuilderFilterTreeGroupNodeData | undefined {
|
402
|
+
return node.parentId
|
403
|
+
? guaranteeType(
|
404
|
+
this.nodes.get(node.parentId),
|
405
|
+
QueryBuilderFilterTreeGroupNodeData,
|
406
|
+
)
|
407
|
+
: undefined;
|
408
|
+
}
|
409
|
+
|
410
|
+
private addRootNode(node: QueryBuilderFilterTreeNodeData): void {
|
411
|
+
const rootNode = this.getRootNode();
|
412
|
+
this.nodes.set(node.id, node);
|
413
|
+
if (rootNode instanceof QueryBuilderFilterTreeGroupNodeData) {
|
414
|
+
rootNode.addChildNode(node);
|
415
|
+
} else if (
|
416
|
+
rootNode instanceof QueryBuilderFilterTreeConditionNodeData ||
|
417
|
+
rootNode instanceof QueryBuilderFilterTreeBlankConditionNodeData
|
418
|
+
) {
|
419
|
+
// if the root node is condition node, form a group between the root node and the new node and nominate the group node as the new root
|
420
|
+
const groupNode = new QueryBuilderFilterTreeGroupNodeData(
|
421
|
+
undefined,
|
422
|
+
QUERY_BUILDER_GROUP_OPERATION.AND,
|
423
|
+
);
|
424
|
+
groupNode.addChildNode(rootNode);
|
425
|
+
groupNode.addChildNode(node);
|
426
|
+
this.rootIds = [groupNode.id];
|
427
|
+
this.nodes.set(groupNode.id, groupNode);
|
428
|
+
} else if (!rootNode) {
|
429
|
+
// if there is no root node, set this node as the root
|
430
|
+
this.rootIds = [node.id];
|
431
|
+
}
|
432
|
+
}
|
433
|
+
|
434
|
+
addNodeFromNode(
|
435
|
+
node: QueryBuilderFilterTreeNodeData,
|
436
|
+
fromNode: QueryBuilderFilterTreeNodeData | undefined,
|
437
|
+
): void {
|
438
|
+
if (fromNode instanceof QueryBuilderFilterTreeGroupNodeData) {
|
439
|
+
this.nodes.set(node.id, node);
|
440
|
+
fromNode.addChildNode(node);
|
441
|
+
} else if (
|
442
|
+
fromNode instanceof QueryBuilderFilterTreeConditionNodeData ||
|
443
|
+
fromNode instanceof QueryBuilderFilterTreeBlankConditionNodeData
|
444
|
+
) {
|
445
|
+
this.nodes.set(node.id, node);
|
446
|
+
const fromNodeParent = this.getParentNode(fromNode);
|
447
|
+
if (fromNodeParent) {
|
448
|
+
fromNodeParent.addChildNode(node);
|
449
|
+
} else {
|
450
|
+
this.addRootNode(node);
|
451
|
+
}
|
452
|
+
} else if (!this.selectedNode) {
|
453
|
+
// if no current node is selected, the node will be added to root
|
454
|
+
this.addRootNode(node);
|
455
|
+
}
|
456
|
+
}
|
457
|
+
|
458
|
+
replaceBlankNodeWithNode(
|
459
|
+
node: QueryBuilderFilterTreeNodeData,
|
460
|
+
blankNode: QueryBuilderFilterTreeBlankConditionNodeData,
|
461
|
+
): void {
|
462
|
+
this.nodes.set(node.id, node);
|
463
|
+
const blankNodeParent = this.getParentNode(blankNode);
|
464
|
+
if (blankNodeParent) {
|
465
|
+
const blankNodeIdx = blankNodeParent.childrenIds.findIndex(
|
466
|
+
(childId) => childId === blankNode.id,
|
467
|
+
);
|
468
|
+
blankNodeParent.addChildNodeAt(node, blankNodeIdx);
|
469
|
+
blankNodeParent.removeChildNode(blankNode);
|
470
|
+
} else {
|
471
|
+
this.addRootNode(node);
|
472
|
+
}
|
473
|
+
this.removeNode(blankNode);
|
474
|
+
}
|
475
|
+
|
476
|
+
addGroupConditionNodeFromNode(
|
477
|
+
fromNode: QueryBuilderFilterTreeNodeData | undefined,
|
478
|
+
): void {
|
479
|
+
const newGroupNode = new QueryBuilderFilterTreeGroupNodeData(
|
480
|
+
undefined,
|
481
|
+
QUERY_BUILDER_GROUP_OPERATION.AND,
|
482
|
+
);
|
483
|
+
const newBlankConditionNode1 =
|
484
|
+
new QueryBuilderFilterTreeBlankConditionNodeData(undefined);
|
485
|
+
const newBlankConditionNode2 =
|
486
|
+
new QueryBuilderFilterTreeBlankConditionNodeData(undefined);
|
487
|
+
this.nodes.set(newBlankConditionNode1.id, newBlankConditionNode1);
|
488
|
+
this.nodes.set(newBlankConditionNode2.id, newBlankConditionNode2);
|
489
|
+
newGroupNode.addChildNode(newBlankConditionNode1);
|
490
|
+
newGroupNode.addChildNode(newBlankConditionNode2);
|
491
|
+
this.addNodeFromNode(newGroupNode, fromNode);
|
492
|
+
}
|
493
|
+
|
494
|
+
newGroupWithConditionFromNode(
|
495
|
+
node: QueryBuilderFilterTreeNodeData | undefined,
|
496
|
+
fromNode: QueryBuilderFilterTreeNodeData | undefined,
|
497
|
+
): void {
|
498
|
+
const newNode =
|
499
|
+
node ?? new QueryBuilderFilterTreeBlankConditionNodeData(undefined);
|
500
|
+
if (fromNode instanceof QueryBuilderFilterTreeConditionNodeData) {
|
501
|
+
const fromNodeParent = this.getParentNode(fromNode);
|
502
|
+
if (fromNodeParent) {
|
503
|
+
const fromNodeIdx = fromNodeParent.childrenIds.findIndex(
|
504
|
+
(childId) => childId === fromNode.id,
|
505
|
+
);
|
506
|
+
fromNodeParent.removeChildNode(fromNode);
|
507
|
+
const newGroupNode = new QueryBuilderFilterTreeGroupNodeData(
|
508
|
+
undefined,
|
509
|
+
QUERY_BUILDER_GROUP_OPERATION.AND,
|
510
|
+
);
|
511
|
+
this.nodes.set(newNode.id, newNode);
|
512
|
+
this.nodes.set(newGroupNode.id, newGroupNode);
|
513
|
+
newGroupNode.addChildNode(fromNode);
|
514
|
+
newGroupNode.addChildNode(newNode);
|
515
|
+
fromNodeParent.addChildNodeAt(newGroupNode, fromNodeIdx);
|
516
|
+
} else {
|
517
|
+
this.addRootNode(newNode);
|
518
|
+
}
|
519
|
+
}
|
520
|
+
}
|
521
|
+
|
522
|
+
private removeNode(node: QueryBuilderFilterTreeNodeData): void {
|
523
|
+
this.nodes.delete(node.id);
|
524
|
+
// remove relationship with children nodes
|
525
|
+
if (node instanceof QueryBuilderFilterTreeGroupNodeData) {
|
526
|
+
// NOTE: we are deleting child node, i.e. modifying `childrenIds` as we iterate
|
527
|
+
[...node.childrenIds].forEach((childId) =>
|
528
|
+
node.removeChildNode(this.getNode(childId)),
|
529
|
+
);
|
530
|
+
}
|
531
|
+
// remove relationship with parent node
|
532
|
+
const parentNode = this.getParentNode(node);
|
533
|
+
if (parentNode) {
|
534
|
+
parentNode.removeChildNode(node);
|
535
|
+
} else {
|
536
|
+
deleteEntry(this.rootIds, node.id);
|
537
|
+
}
|
538
|
+
}
|
539
|
+
|
540
|
+
private pruneChildlessGroupNodes(): void {
|
541
|
+
const getChildlessGroupNodes = (): QueryBuilderFilterTreeGroupNodeData[] =>
|
542
|
+
Array.from(this.nodes.values())
|
543
|
+
.filter(filterByType(QueryBuilderFilterTreeGroupNodeData))
|
544
|
+
.filter((node) => !node.childrenIds.length);
|
545
|
+
let nodesToProcess = getChildlessGroupNodes();
|
546
|
+
while (nodesToProcess.length) {
|
547
|
+
nodesToProcess.forEach((node) => this.removeNode(node));
|
548
|
+
nodesToProcess = getChildlessGroupNodes();
|
549
|
+
}
|
550
|
+
}
|
551
|
+
|
552
|
+
private pruneOrphanNodes(): void {
|
553
|
+
const getOrphanNodes = (): QueryBuilderFilterTreeNodeData[] =>
|
554
|
+
Array.from(this.nodes.values()).filter(
|
555
|
+
(node) => !node.parentId && !this.rootIds.includes(node.id),
|
556
|
+
); // nodes without parent, except for root nodes
|
557
|
+
let nodesToProcess = getOrphanNodes();
|
558
|
+
while (nodesToProcess.length) {
|
559
|
+
nodesToProcess.forEach((node) => this.removeNode(node));
|
560
|
+
nodesToProcess = getOrphanNodes();
|
561
|
+
}
|
562
|
+
}
|
563
|
+
|
564
|
+
/**
|
565
|
+
* If group node has fewer than 2 children, flatten it
|
566
|
+
*/
|
567
|
+
private squashGroupNode(node: QueryBuilderFilterTreeGroupNodeData): void {
|
568
|
+
if (node.childrenIds.length < 2) {
|
569
|
+
const parentNode = this.getParentNode(node);
|
570
|
+
// NOTE: we are deleting child node, i.e. modifying `childrenIds` as we iterate
|
571
|
+
[...node.childrenIds].forEach((childId) => {
|
572
|
+
const childNode = this.getNode(childId);
|
573
|
+
node.removeChildNode(childNode);
|
574
|
+
if (parentNode) {
|
575
|
+
parentNode.addChildNode(childNode);
|
576
|
+
} else {
|
577
|
+
addUniqueEntry(this.rootIds, childId);
|
578
|
+
}
|
579
|
+
});
|
580
|
+
// remove the group node
|
581
|
+
this.nodes.delete(node.id);
|
582
|
+
if (parentNode) {
|
583
|
+
parentNode.removeChildNode(node);
|
584
|
+
} else {
|
585
|
+
deleteEntry(this.rootIds, node.id);
|
586
|
+
}
|
587
|
+
}
|
588
|
+
}
|
589
|
+
|
590
|
+
removeNodeAndPruneBranch(node: QueryBuilderFilterTreeNodeData): void {
|
591
|
+
const parentNode = this.getParentNode(node);
|
592
|
+
this.removeNode(node);
|
593
|
+
// squash parent node after the current node is deleted
|
594
|
+
if (parentNode) {
|
595
|
+
parentNode.removeChildNode(node);
|
596
|
+
let currentParentNode: QueryBuilderFilterTreeGroupNodeData | undefined =
|
597
|
+
parentNode;
|
598
|
+
while (currentParentNode) {
|
599
|
+
if (currentParentNode.childrenIds.length >= 2) {
|
600
|
+
break;
|
601
|
+
}
|
602
|
+
this.squashGroupNode(currentParentNode);
|
603
|
+
currentParentNode = this.getParentNode(currentParentNode);
|
604
|
+
}
|
605
|
+
} else {
|
606
|
+
deleteEntry(this.rootIds, node.id);
|
607
|
+
}
|
608
|
+
this.pruneOrphanNodes();
|
609
|
+
// check if selected node is still around, if not, unset the selected node
|
610
|
+
if (this.selectedNode && !this.nodes.get(this.selectedNode.id)) {
|
611
|
+
this.setSelectedNode(undefined);
|
612
|
+
}
|
613
|
+
}
|
614
|
+
|
615
|
+
pruneTree(): void {
|
616
|
+
this.setSelectedNode(undefined);
|
617
|
+
// remove all blank nodes
|
618
|
+
Array.from(this.nodes.values())
|
619
|
+
.filter(
|
620
|
+
(node) => node instanceof QueryBuilderFilterTreeBlankConditionNodeData,
|
621
|
+
)
|
622
|
+
.forEach((node) => this.removeNode(node));
|
623
|
+
// prune
|
624
|
+
this.pruneOrphanNodes();
|
625
|
+
this.pruneChildlessGroupNodes();
|
626
|
+
// squash group nodes
|
627
|
+
// NOTE: since we have pruned all blank nodes and childless group nodes, at this point, if there are group nodes to be squashed
|
628
|
+
// it will be group node with exactly 1 non-blank condition
|
629
|
+
const getSquashableGroupNodes = (): QueryBuilderFilterTreeGroupNodeData[] =>
|
630
|
+
Array.from(this.nodes.values())
|
631
|
+
.filter(filterByType(QueryBuilderFilterTreeGroupNodeData))
|
632
|
+
.filter((node) => node.childrenIds.length < 2)
|
633
|
+
.filter((node) => {
|
634
|
+
if (!node.childrenIds.length) {
|
635
|
+
throw new IllegalStateError(
|
636
|
+
'Query builder filter tree found unexpected childless group nodes',
|
637
|
+
);
|
638
|
+
}
|
639
|
+
const firstChildNodeId = node.childrenIds[0] as string;
|
640
|
+
const childNode = this.getNode(firstChildNodeId);
|
641
|
+
if (
|
642
|
+
childNode instanceof QueryBuilderFilterTreeBlankConditionNodeData
|
643
|
+
) {
|
644
|
+
throw new IllegalStateError(
|
645
|
+
'Query builder filter tree found unexpected blank nodes',
|
646
|
+
);
|
647
|
+
}
|
648
|
+
return (
|
649
|
+
this.getNode(firstChildNodeId) instanceof
|
650
|
+
QueryBuilderFilterTreeConditionNodeData
|
651
|
+
);
|
652
|
+
});
|
653
|
+
let nodesToProcess = getSquashableGroupNodes();
|
654
|
+
while (nodesToProcess.length) {
|
655
|
+
nodesToProcess.forEach((node) => this.squashGroupNode(node));
|
656
|
+
nodesToProcess = getSquashableGroupNodes();
|
657
|
+
}
|
658
|
+
// check if selected node is still around, if not, unset the selected node
|
659
|
+
if (this.selectedNode && !this.nodes.get(this.selectedNode.id)) {
|
660
|
+
this.setSelectedNode(undefined);
|
661
|
+
}
|
662
|
+
}
|
663
|
+
|
664
|
+
/**
|
665
|
+
* Cleanup unecessary group nodes (i.e. group node whose group operation is the same as its parent's)
|
666
|
+
*/
|
667
|
+
simplifyTree(): void {
|
668
|
+
this.setSelectedNode(undefined);
|
669
|
+
const getUnnecessaryNodes = (): QueryBuilderFilterTreeGroupNodeData[] =>
|
670
|
+
Array.from(this.nodes.values())
|
671
|
+
.filter(filterByType(QueryBuilderFilterTreeGroupNodeData))
|
672
|
+
.filter((node) => {
|
673
|
+
if (!node.parentId || !this.nodes.has(node.parentId)) {
|
674
|
+
return false;
|
675
|
+
}
|
676
|
+
const parentGroupNode = guaranteeType(
|
677
|
+
this.nodes.get(node.parentId),
|
678
|
+
QueryBuilderFilterTreeGroupNodeData,
|
679
|
+
);
|
680
|
+
return parentGroupNode.groupOperation === node.groupOperation;
|
681
|
+
});
|
682
|
+
// Squash these unnecessary group nodes
|
683
|
+
let nodesToProcess = getUnnecessaryNodes();
|
684
|
+
while (nodesToProcess.length) {
|
685
|
+
nodesToProcess.forEach((node) => {
|
686
|
+
const parentNode = guaranteeType(
|
687
|
+
this.nodes.get(guaranteeNonNullable(node.parentId)),
|
688
|
+
QueryBuilderFilterTreeGroupNodeData,
|
689
|
+
);
|
690
|
+
// send all children of the current group node to their grandparent node
|
691
|
+
[...node.childrenIds].forEach((childId) => {
|
692
|
+
const childNode = this.getNode(childId);
|
693
|
+
parentNode.addChildNode(childNode);
|
694
|
+
});
|
695
|
+
// remove the current group node
|
696
|
+
parentNode.removeChildNode(node);
|
697
|
+
// remove the node
|
698
|
+
this.nodes.delete(node.id);
|
699
|
+
});
|
700
|
+
nodesToProcess = getUnnecessaryNodes();
|
701
|
+
}
|
702
|
+
}
|
703
|
+
|
704
|
+
isValidMove(
|
705
|
+
node: QueryBuilderFilterTreeNodeData,
|
706
|
+
toNode: QueryBuilderFilterTreeNodeData,
|
707
|
+
): boolean {
|
708
|
+
const isMovingToItself = node === toNode;
|
709
|
+
// disallow moving a node to its descendants
|
710
|
+
let isMovingToChildNode = false;
|
711
|
+
let currentParentNode = this.getParentNode(toNode);
|
712
|
+
while (currentParentNode) {
|
713
|
+
if (currentParentNode === node) {
|
714
|
+
isMovingToChildNode = true;
|
715
|
+
break;
|
716
|
+
}
|
717
|
+
currentParentNode = this.getParentNode(currentParentNode);
|
718
|
+
}
|
719
|
+
return !isMovingToItself && !isMovingToChildNode;
|
720
|
+
}
|
721
|
+
|
722
|
+
moveNode(
|
723
|
+
node: QueryBuilderFilterTreeNodeData,
|
724
|
+
toNode: QueryBuilderFilterTreeNodeData,
|
725
|
+
): void {
|
726
|
+
// do something;
|
727
|
+
}
|
728
|
+
|
729
|
+
collapseTree(): void {
|
730
|
+
Array.from(this.nodes.values()).forEach((node) => node.setIsOpen(false));
|
731
|
+
}
|
732
|
+
|
733
|
+
expandTree(): void {
|
734
|
+
Array.from(this.nodes.values()).forEach((node) => node.setIsOpen(true));
|
735
|
+
}
|
736
|
+
}
|