@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,891 @@
|
|
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 { useRef, useState, useCallback, forwardRef, useMemo } from 'react';
|
18
|
+
import { observer } from 'mobx-react-lite';
|
19
|
+
import {
|
20
|
+
type TreeNodeContainerProps,
|
21
|
+
type TreeNodeViewProps,
|
22
|
+
clsx,
|
23
|
+
ClickAwayListener,
|
24
|
+
ContextMenu,
|
25
|
+
DropdownMenu,
|
26
|
+
MenuContent,
|
27
|
+
MenuContentItem,
|
28
|
+
BlankPanelPlaceholder,
|
29
|
+
FilledTriangleIcon,
|
30
|
+
CompressIcon,
|
31
|
+
ExpandIcon,
|
32
|
+
BrushIcon,
|
33
|
+
NewFolderIcon,
|
34
|
+
CircleIcon,
|
35
|
+
CaretDownIcon,
|
36
|
+
PlusIcon,
|
37
|
+
ChevronDownIcon,
|
38
|
+
ChevronRightIcon,
|
39
|
+
PlusCircleIcon,
|
40
|
+
TimesIcon,
|
41
|
+
PanelDropZone,
|
42
|
+
DragPreviewLayer,
|
43
|
+
PanelEntryDropZonePlaceholder,
|
44
|
+
useDragPreviewLayer,
|
45
|
+
} from '@finos/legend-art';
|
46
|
+
import {
|
47
|
+
type QueryBuilderFilterConditionDragSource,
|
48
|
+
type QueryBuilderFilterDropTarget,
|
49
|
+
type QueryBuilderFilterTreeNodeData,
|
50
|
+
QUERY_BUILDER_FILTER_DND_TYPE,
|
51
|
+
FilterConditionState,
|
52
|
+
QueryBuilderFilterTreeConditionNodeData,
|
53
|
+
QueryBuilderFilterTreeBlankConditionNodeData,
|
54
|
+
QueryBuilderFilterTreeGroupNodeData,
|
55
|
+
} from '../../stores/filter/QueryBuilderFilterState.js';
|
56
|
+
import { useDrag, useDrop } from 'react-dnd';
|
57
|
+
import {
|
58
|
+
type QueryBuilderExplorerTreeDragSource,
|
59
|
+
type QueryBuilderExplorerTreePropertyNodeData,
|
60
|
+
buildPropertyExpressionFromExplorerTreeNodeData,
|
61
|
+
QUERY_BUILDER_EXPLORER_TREE_DND_TYPE,
|
62
|
+
} from '../../stores/explorer/QueryBuilderExplorerState.js';
|
63
|
+
import { QueryBuilderPropertyExpressionBadge } from '../QueryBuilderPropertyExpressionEditor.js';
|
64
|
+
import type { QueryBuilderState } from '../../stores/QueryBuilderState.js';
|
65
|
+
import {
|
66
|
+
assertErrorThrown,
|
67
|
+
debounce,
|
68
|
+
UnsupportedOperationError,
|
69
|
+
} from '@finos/legend-shared';
|
70
|
+
import { QUERY_BUILDER_TEST_ID } from '../QueryBuilder_TestID.js';
|
71
|
+
import {
|
72
|
+
useApplicationStore,
|
73
|
+
BasicValueSpecificationEditor,
|
74
|
+
} from '@finos/legend-application';
|
75
|
+
import {
|
76
|
+
type QueryBuilderParameterDragSource,
|
77
|
+
QUERY_BUILDER_PARAMETER_DND_TYPE,
|
78
|
+
} from '../../stores/QueryBuilderParametersState.js';
|
79
|
+
import type { ValueSpecification } from '@finos/legend-graph';
|
80
|
+
import {
|
81
|
+
type QueryBuilderProjectionColumnDragSource,
|
82
|
+
QueryBuilderSimpleProjectionColumnState,
|
83
|
+
QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE,
|
84
|
+
} from '../../stores/fetch-structure/projection/QueryBuilderProjectionColumnState.js';
|
85
|
+
import type { QueryBuilderFilterOperator } from '../../stores/filter/QueryBuilderFilterOperator.js';
|
86
|
+
import { isTypeCompatibleForAssignment } from '../../stores/QueryBuilderValueSpecificationHelper.js';
|
87
|
+
import { QUERY_BUILDER_GROUP_OPERATION } from '../../stores/QueryBuilderGroupOperationHelper.js';
|
88
|
+
|
89
|
+
const QueryBuilderFilterGroupConditionEditor = observer(
|
90
|
+
(props: {
|
91
|
+
node: QueryBuilderFilterTreeGroupNodeData;
|
92
|
+
isDragOver: boolean;
|
93
|
+
}) => {
|
94
|
+
const { node, isDragOver } = props;
|
95
|
+
const switchOperation: React.MouseEventHandler<HTMLDivElement> = (
|
96
|
+
event,
|
97
|
+
): void => {
|
98
|
+
event.stopPropagation(); // prevent triggering selecting the node
|
99
|
+
node.setGroupOperation(
|
100
|
+
node.groupOperation === QUERY_BUILDER_GROUP_OPERATION.AND
|
101
|
+
? QUERY_BUILDER_GROUP_OPERATION.OR
|
102
|
+
: QUERY_BUILDER_GROUP_OPERATION.AND,
|
103
|
+
);
|
104
|
+
};
|
105
|
+
return (
|
106
|
+
<div className="query-builder-filter-tree__node__label__content">
|
107
|
+
<PanelEntryDropZonePlaceholder
|
108
|
+
showPlaceholder={isDragOver}
|
109
|
+
label="Add to Logical Group"
|
110
|
+
className="query-builder__dnd__placeholder"
|
111
|
+
>
|
112
|
+
<div
|
113
|
+
className={clsx('query-builder-filter-tree__group-node', {
|
114
|
+
'query-builder-filter-tree__group-node--and':
|
115
|
+
node.groupOperation === QUERY_BUILDER_GROUP_OPERATION.AND,
|
116
|
+
'query-builder-filter-tree__group-node--or':
|
117
|
+
node.groupOperation === QUERY_BUILDER_GROUP_OPERATION.OR,
|
118
|
+
})}
|
119
|
+
title="Switch Operation"
|
120
|
+
onClick={switchOperation}
|
121
|
+
>
|
122
|
+
<div className="query-builder-filter-tree__group-node__label">
|
123
|
+
{node.groupOperation}
|
124
|
+
</div>
|
125
|
+
<button className="query-builder-filter-tree__group-node__action">
|
126
|
+
<FilledTriangleIcon />
|
127
|
+
</button>
|
128
|
+
</div>
|
129
|
+
</PanelEntryDropZonePlaceholder>
|
130
|
+
</div>
|
131
|
+
);
|
132
|
+
},
|
133
|
+
);
|
134
|
+
|
135
|
+
const QueryBuilderFilterConditionEditor = observer(
|
136
|
+
(props: {
|
137
|
+
node: QueryBuilderFilterTreeConditionNodeData;
|
138
|
+
isDragOver: boolean;
|
139
|
+
}) => {
|
140
|
+
const { node, isDragOver } = props;
|
141
|
+
const graph =
|
142
|
+
node.condition.filterState.queryBuilderState.graphManagerState.graph;
|
143
|
+
const applicationStore = useApplicationStore();
|
144
|
+
const changeOperator = (val: QueryBuilderFilterOperator) => (): void =>
|
145
|
+
node.condition.changeOperator(val);
|
146
|
+
const changeProperty = (
|
147
|
+
propertyNode: QueryBuilderExplorerTreePropertyNodeData,
|
148
|
+
): void =>
|
149
|
+
node.condition.changeProperty(
|
150
|
+
buildPropertyExpressionFromExplorerTreeNodeData(
|
151
|
+
node.condition.filterState.queryBuilderState.explorerState
|
152
|
+
.nonNullableTreeData,
|
153
|
+
propertyNode,
|
154
|
+
graph,
|
155
|
+
node.condition.filterState.queryBuilderState.explorerState
|
156
|
+
.propertySearchState.allMappedPropertyNodes,
|
157
|
+
),
|
158
|
+
);
|
159
|
+
// Drag and Drop on filter condition value
|
160
|
+
const handleDrop = useCallback(
|
161
|
+
(item: QueryBuilderParameterDragSource): void => {
|
162
|
+
const parameterType =
|
163
|
+
item.variable.parameter.genericType?.value.rawType;
|
164
|
+
const conditionValueType =
|
165
|
+
node.condition.propertyExpressionState.propertyExpression.func
|
166
|
+
.genericType.value.rawType;
|
167
|
+
if (isTypeCompatibleForAssignment(parameterType, conditionValueType)) {
|
168
|
+
node.condition.setValue(item.variable.parameter);
|
169
|
+
} else {
|
170
|
+
applicationStore.notifyWarning(
|
171
|
+
`Incompatible parameter type ${parameterType?.name}. ${parameterType?.name} is not compatible with type ${conditionValueType.name}.`,
|
172
|
+
);
|
173
|
+
}
|
174
|
+
},
|
175
|
+
[applicationStore, node.condition],
|
176
|
+
);
|
177
|
+
const [{ isFilterValueDragOver }, dropConnector] = useDrop<
|
178
|
+
QueryBuilderParameterDragSource,
|
179
|
+
void,
|
180
|
+
{ isFilterValueDragOver: boolean }
|
181
|
+
>(
|
182
|
+
() => ({
|
183
|
+
accept: [QUERY_BUILDER_PARAMETER_DND_TYPE],
|
184
|
+
drop: (item, monitor): void => {
|
185
|
+
if (!monitor.didDrop()) {
|
186
|
+
handleDrop(item);
|
187
|
+
} // prevent drop event propagation to accomondate for nested DnD
|
188
|
+
},
|
189
|
+
collect: (monitor) => ({
|
190
|
+
isFilterValueDragOver: monitor.isOver({ shallow: true }),
|
191
|
+
}),
|
192
|
+
}),
|
193
|
+
[handleDrop],
|
194
|
+
);
|
195
|
+
const resetNode = (): void => {
|
196
|
+
node.condition.setValue(
|
197
|
+
node.condition.operator.getDefaultFilterConditionValue(node.condition),
|
198
|
+
);
|
199
|
+
};
|
200
|
+
const debouncedTypeaheadSearch = useMemo(
|
201
|
+
() =>
|
202
|
+
debounce(
|
203
|
+
(inputVal: string) => node.condition.handleTypeaheadSearch(),
|
204
|
+
1000,
|
205
|
+
),
|
206
|
+
[node],
|
207
|
+
);
|
208
|
+
const cleanUpReloadValues = (): void => {
|
209
|
+
node.condition.typeaheadSearchState.complete();
|
210
|
+
};
|
211
|
+
const changeValueSpecification = (val: ValueSpecification): void => {
|
212
|
+
node.condition.setValue(val);
|
213
|
+
};
|
214
|
+
const selectorConfig = {
|
215
|
+
values: node.condition.typeaheadSearchResults,
|
216
|
+
isLoading: node.condition.typeaheadSearchState.isInProgress,
|
217
|
+
reloadValues: debouncedTypeaheadSearch,
|
218
|
+
cleanUpReloadValues,
|
219
|
+
};
|
220
|
+
|
221
|
+
return (
|
222
|
+
<div className="query-builder-filter-tree__node__label__content">
|
223
|
+
<PanelEntryDropZonePlaceholder
|
224
|
+
showPlaceholder={isDragOver}
|
225
|
+
label="Add New Logical Group"
|
226
|
+
className="query-builder__dnd__placeholder"
|
227
|
+
>
|
228
|
+
<div className="query-builder-filter-tree__condition-node">
|
229
|
+
<div className="query-builder-filter-tree__condition-node__property">
|
230
|
+
<QueryBuilderPropertyExpressionBadge
|
231
|
+
propertyExpressionState={node.condition.propertyExpressionState}
|
232
|
+
onPropertyExpressionChange={changeProperty}
|
233
|
+
/>
|
234
|
+
</div>
|
235
|
+
<DropdownMenu
|
236
|
+
className="query-builder-filter-tree__condition-node__operator"
|
237
|
+
content={
|
238
|
+
<MenuContent>
|
239
|
+
{node.condition.operators.map((op) => (
|
240
|
+
<MenuContentItem
|
241
|
+
key={op.uuid}
|
242
|
+
className="query-builder-filter-tree__condition-node__operator__dropdown__option"
|
243
|
+
onClick={changeOperator(op)}
|
244
|
+
>
|
245
|
+
{op.getLabel(node.condition)}
|
246
|
+
</MenuContentItem>
|
247
|
+
))}
|
248
|
+
</MenuContent>
|
249
|
+
}
|
250
|
+
menuProps={{
|
251
|
+
anchorOrigin: { vertical: 'bottom', horizontal: 'left' },
|
252
|
+
transformOrigin: { vertical: 'top', horizontal: 'left' },
|
253
|
+
elevation: 7,
|
254
|
+
}}
|
255
|
+
>
|
256
|
+
<div className="query-builder-filter-tree__condition-node__operator__label">
|
257
|
+
{node.condition.operator.getLabel(node.condition)}
|
258
|
+
</div>
|
259
|
+
<button
|
260
|
+
className="query-builder-filter-tree__condition-node__operator__dropdown__trigger"
|
261
|
+
tabIndex={-1}
|
262
|
+
title="Choose Operator..."
|
263
|
+
>
|
264
|
+
<CaretDownIcon />
|
265
|
+
</button>
|
266
|
+
</DropdownMenu>
|
267
|
+
{node.condition.value && (
|
268
|
+
<div
|
269
|
+
ref={dropConnector}
|
270
|
+
className="query-builder-filter-tree__condition-node__value"
|
271
|
+
>
|
272
|
+
<PanelEntryDropZonePlaceholder
|
273
|
+
showPlaceholder={isFilterValueDragOver}
|
274
|
+
label="Change Filter Value"
|
275
|
+
className="query-builder__dnd__placeholder"
|
276
|
+
>
|
277
|
+
<BasicValueSpecificationEditor
|
278
|
+
valueSpecification={node.condition.value}
|
279
|
+
setValueSpecification={changeValueSpecification}
|
280
|
+
graph={graph}
|
281
|
+
typeCheckOption={{
|
282
|
+
expectedType:
|
283
|
+
node.condition.propertyExpressionState
|
284
|
+
.propertyExpression.func.genericType.value.rawType,
|
285
|
+
}}
|
286
|
+
resetValue={resetNode}
|
287
|
+
selectorConfig={selectorConfig}
|
288
|
+
/>
|
289
|
+
</PanelEntryDropZonePlaceholder>
|
290
|
+
</div>
|
291
|
+
)}
|
292
|
+
</div>
|
293
|
+
</PanelEntryDropZonePlaceholder>
|
294
|
+
</div>
|
295
|
+
);
|
296
|
+
},
|
297
|
+
);
|
298
|
+
|
299
|
+
const QueryBuilderFilterBlankConditionEditor = observer(
|
300
|
+
(props: {
|
301
|
+
node: QueryBuilderFilterTreeBlankConditionNodeData;
|
302
|
+
isDragOver: boolean;
|
303
|
+
}) => {
|
304
|
+
const { isDragOver } = props;
|
305
|
+
return (
|
306
|
+
<div className="query-builder-filter-tree__node__label__content">
|
307
|
+
<PanelEntryDropZonePlaceholder
|
308
|
+
showPlaceholder={isDragOver}
|
309
|
+
label="Create Condition"
|
310
|
+
className="query-builder__dnd__placeholder"
|
311
|
+
>
|
312
|
+
<div className="query-builder-filter-tree__blank-node">blank</div>
|
313
|
+
</PanelEntryDropZonePlaceholder>
|
314
|
+
</div>
|
315
|
+
);
|
316
|
+
},
|
317
|
+
);
|
318
|
+
|
319
|
+
const QueryBuilderFilterConditionContextMenu = observer(
|
320
|
+
forwardRef<
|
321
|
+
HTMLDivElement,
|
322
|
+
{
|
323
|
+
queryBuilderState: QueryBuilderState;
|
324
|
+
node: QueryBuilderFilterTreeNodeData;
|
325
|
+
}
|
326
|
+
>(function QueryBuilderFilterConditionContextMenu(props, ref) {
|
327
|
+
const { queryBuilderState, node } = props;
|
328
|
+
const filterState = queryBuilderState.filterState;
|
329
|
+
const removeNode = (): void => filterState.removeNodeAndPruneBranch(node);
|
330
|
+
const createCondition = (): void => {
|
331
|
+
filterState.suppressClickawayEventListener();
|
332
|
+
filterState.addNodeFromNode(
|
333
|
+
new QueryBuilderFilterTreeBlankConditionNodeData(undefined),
|
334
|
+
node,
|
335
|
+
);
|
336
|
+
};
|
337
|
+
const createGroupCondition = (): void => {
|
338
|
+
filterState.suppressClickawayEventListener();
|
339
|
+
filterState.addGroupConditionNodeFromNode(node);
|
340
|
+
};
|
341
|
+
const newGroupWithCondition = (): void => {
|
342
|
+
filterState.suppressClickawayEventListener();
|
343
|
+
filterState.newGroupWithConditionFromNode(undefined, node);
|
344
|
+
};
|
345
|
+
|
346
|
+
return (
|
347
|
+
<MenuContent ref={ref}>
|
348
|
+
{node instanceof QueryBuilderFilterTreeGroupNodeData && (
|
349
|
+
<MenuContentItem onClick={createCondition}>
|
350
|
+
Add New Condition
|
351
|
+
</MenuContentItem>
|
352
|
+
)}
|
353
|
+
{node instanceof QueryBuilderFilterTreeGroupNodeData && (
|
354
|
+
<MenuContentItem onClick={createGroupCondition}>
|
355
|
+
Add New Logical Group
|
356
|
+
</MenuContentItem>
|
357
|
+
)}
|
358
|
+
{node instanceof QueryBuilderFilterTreeConditionNodeData && (
|
359
|
+
<MenuContentItem onClick={newGroupWithCondition}>
|
360
|
+
Form a New Logical Group
|
361
|
+
</MenuContentItem>
|
362
|
+
)}
|
363
|
+
<MenuContentItem onClick={removeNode}>Remove</MenuContentItem>
|
364
|
+
</MenuContent>
|
365
|
+
);
|
366
|
+
}),
|
367
|
+
);
|
368
|
+
|
369
|
+
const QueryBuilderFilterTreeNodeContainer = observer(
|
370
|
+
(
|
371
|
+
props: TreeNodeContainerProps<
|
372
|
+
QueryBuilderFilterTreeNodeData,
|
373
|
+
{
|
374
|
+
queryBuilderState: QueryBuilderState;
|
375
|
+
}
|
376
|
+
>,
|
377
|
+
) => {
|
378
|
+
const { node, level, stepPaddingInRem, onNodeSelect, innerProps } = props;
|
379
|
+
const { queryBuilderState } = innerProps;
|
380
|
+
const ref = useRef<HTMLDivElement>(null);
|
381
|
+
const [isSelectedFromContextMenu, setIsSelectedFromContextMenu] =
|
382
|
+
useState(false);
|
383
|
+
const applicationStore = useApplicationStore();
|
384
|
+
const filterState = queryBuilderState.filterState;
|
385
|
+
const isExpandable = node instanceof QueryBuilderFilterTreeGroupNodeData;
|
386
|
+
const selectNode = (): void => onNodeSelect?.(node);
|
387
|
+
const toggleExpandNode = (): void => node.setIsOpen(!node.isOpen);
|
388
|
+
const removeNode = (): void => filterState.removeNodeAndPruneBranch(node);
|
389
|
+
|
390
|
+
// Drag and Drop
|
391
|
+
const handleDrop = useCallback(
|
392
|
+
(item: QueryBuilderFilterDropTarget, type: string): void => {
|
393
|
+
if (
|
394
|
+
Object.values<string>(QUERY_BUILDER_FILTER_DND_TYPE).includes(type)
|
395
|
+
) {
|
396
|
+
// const dropNode = (item as QueryBuilderFilterConditionDragSource).node;
|
397
|
+
// TODO: re-arrange
|
398
|
+
} else {
|
399
|
+
const dropNode = (item as QueryBuilderExplorerTreeDragSource).node;
|
400
|
+
let filterConditionState: FilterConditionState;
|
401
|
+
try {
|
402
|
+
filterConditionState = new FilterConditionState(
|
403
|
+
filterState,
|
404
|
+
buildPropertyExpressionFromExplorerTreeNodeData(
|
405
|
+
filterState.queryBuilderState.explorerState.nonNullableTreeData,
|
406
|
+
dropNode,
|
407
|
+
filterState.queryBuilderState.graphManagerState.graph,
|
408
|
+
filterState.queryBuilderState.explorerState.propertySearchState
|
409
|
+
.allMappedPropertyNodes,
|
410
|
+
),
|
411
|
+
);
|
412
|
+
} catch (error) {
|
413
|
+
assertErrorThrown(error);
|
414
|
+
applicationStore.notifyWarning(error.message);
|
415
|
+
return;
|
416
|
+
}
|
417
|
+
if (node instanceof QueryBuilderFilterTreeGroupNodeData) {
|
418
|
+
filterState.addNodeFromNode(
|
419
|
+
new QueryBuilderFilterTreeConditionNodeData(
|
420
|
+
undefined,
|
421
|
+
filterConditionState,
|
422
|
+
),
|
423
|
+
node,
|
424
|
+
);
|
425
|
+
} else if (node instanceof QueryBuilderFilterTreeConditionNodeData) {
|
426
|
+
filterState.newGroupWithConditionFromNode(
|
427
|
+
new QueryBuilderFilterTreeConditionNodeData(
|
428
|
+
undefined,
|
429
|
+
filterConditionState,
|
430
|
+
),
|
431
|
+
node,
|
432
|
+
);
|
433
|
+
} else if (
|
434
|
+
node instanceof QueryBuilderFilterTreeBlankConditionNodeData
|
435
|
+
) {
|
436
|
+
filterState.replaceBlankNodeWithNode(
|
437
|
+
new QueryBuilderFilterTreeConditionNodeData(
|
438
|
+
undefined,
|
439
|
+
filterConditionState,
|
440
|
+
),
|
441
|
+
node,
|
442
|
+
);
|
443
|
+
}
|
444
|
+
}
|
445
|
+
},
|
446
|
+
[applicationStore, filterState, node],
|
447
|
+
);
|
448
|
+
const [{ isDragOver }, dropConnector] = useDrop<
|
449
|
+
QueryBuilderFilterConditionDragSource,
|
450
|
+
void,
|
451
|
+
{ isDragOver: boolean }
|
452
|
+
>(
|
453
|
+
() => ({
|
454
|
+
accept: [
|
455
|
+
...Object.values(QUERY_BUILDER_FILTER_DND_TYPE),
|
456
|
+
QUERY_BUILDER_EXPLORER_TREE_DND_TYPE.ENUM_PROPERTY,
|
457
|
+
QUERY_BUILDER_EXPLORER_TREE_DND_TYPE.PRIMITIVE_PROPERTY,
|
458
|
+
],
|
459
|
+
drop: (item, monitor): void => {
|
460
|
+
if (!monitor.didDrop()) {
|
461
|
+
handleDrop(item, monitor.getItemType() as string);
|
462
|
+
} // prevent drop event propagation to accomondate for nested DnD
|
463
|
+
},
|
464
|
+
collect: (monitor) => ({
|
465
|
+
isDragOver: monitor.isOver({ shallow: true }),
|
466
|
+
}),
|
467
|
+
}),
|
468
|
+
[handleDrop],
|
469
|
+
);
|
470
|
+
const [, dragConnector, dragPreviewConnector] =
|
471
|
+
useDrag<QueryBuilderFilterConditionDragSource>(
|
472
|
+
() => ({
|
473
|
+
type:
|
474
|
+
node instanceof QueryBuilderFilterTreeGroupNodeData
|
475
|
+
? QUERY_BUILDER_FILTER_DND_TYPE.GROUP_CONDITION
|
476
|
+
: node instanceof QueryBuilderFilterTreeConditionNodeData
|
477
|
+
? QUERY_BUILDER_FILTER_DND_TYPE.CONDITION
|
478
|
+
: QUERY_BUILDER_FILTER_DND_TYPE.BLANK_CONDITION,
|
479
|
+
item: () => ({ node }),
|
480
|
+
end: (): void => filterState.setRearrangingConditions(false),
|
481
|
+
}),
|
482
|
+
[node, filterState],
|
483
|
+
);
|
484
|
+
dragConnector(dropConnector(ref));
|
485
|
+
useDragPreviewLayer(dragPreviewConnector);
|
486
|
+
|
487
|
+
// context menu
|
488
|
+
const onContextMenuOpen = (): void => setIsSelectedFromContextMenu(true);
|
489
|
+
const onContextMenuClose = (): void => setIsSelectedFromContextMenu(false);
|
490
|
+
|
491
|
+
return (
|
492
|
+
<ContextMenu
|
493
|
+
content={
|
494
|
+
<QueryBuilderFilterConditionContextMenu
|
495
|
+
queryBuilderState={queryBuilderState}
|
496
|
+
node={node}
|
497
|
+
/>
|
498
|
+
}
|
499
|
+
menuProps={{ elevation: 7 }}
|
500
|
+
onOpen={onContextMenuOpen}
|
501
|
+
onClose={onContextMenuClose}
|
502
|
+
>
|
503
|
+
<div
|
504
|
+
ref={ref}
|
505
|
+
className={clsx(
|
506
|
+
'tree-view__node__container query-builder-filter-tree__node__container',
|
507
|
+
{
|
508
|
+
'query-builder-filter-tree__node__container--no-hover':
|
509
|
+
filterState.isRearrangingConditions,
|
510
|
+
'query-builder-filter-tree__node__container--selected':
|
511
|
+
node === filterState.selectedNode,
|
512
|
+
'query-builder-filter-tree__node__container--selected-from-context-menu':
|
513
|
+
isSelectedFromContextMenu,
|
514
|
+
},
|
515
|
+
)}
|
516
|
+
>
|
517
|
+
<div
|
518
|
+
className="query-builder-filter-tree__node__content"
|
519
|
+
style={{
|
520
|
+
paddingLeft: `${(level - 1) * (stepPaddingInRem ?? 2) + 1.5}rem`,
|
521
|
+
display: 'flex',
|
522
|
+
}}
|
523
|
+
onClick={selectNode}
|
524
|
+
>
|
525
|
+
{isExpandable && (
|
526
|
+
<div
|
527
|
+
className="query-builder-filter-tree__expand-icon"
|
528
|
+
onClick={toggleExpandNode}
|
529
|
+
>
|
530
|
+
{node.isOpen ? <ChevronDownIcon /> : <ChevronRightIcon />}
|
531
|
+
</div>
|
532
|
+
)}
|
533
|
+
<div
|
534
|
+
className={clsx(
|
535
|
+
'tree-view__node__label query-builder-filter-tree__node__label',
|
536
|
+
{
|
537
|
+
'query-builder-filter-tree__node__label--expandable':
|
538
|
+
isExpandable,
|
539
|
+
},
|
540
|
+
)}
|
541
|
+
>
|
542
|
+
{node instanceof QueryBuilderFilterTreeGroupNodeData && (
|
543
|
+
<QueryBuilderFilterGroupConditionEditor
|
544
|
+
node={node}
|
545
|
+
isDragOver={isDragOver}
|
546
|
+
/>
|
547
|
+
)}
|
548
|
+
{node instanceof QueryBuilderFilterTreeConditionNodeData && (
|
549
|
+
<QueryBuilderFilterConditionEditor
|
550
|
+
node={node}
|
551
|
+
isDragOver={isDragOver}
|
552
|
+
/>
|
553
|
+
)}
|
554
|
+
{node instanceof QueryBuilderFilterTreeBlankConditionNodeData && (
|
555
|
+
<QueryBuilderFilterBlankConditionEditor
|
556
|
+
node={node}
|
557
|
+
isDragOver={isDragOver}
|
558
|
+
/>
|
559
|
+
)}
|
560
|
+
</div>
|
561
|
+
</div>
|
562
|
+
<div className="query-builder-filter-tree__node__actions">
|
563
|
+
<button
|
564
|
+
className="query-builder-filter-tree__node__action"
|
565
|
+
tabIndex={-1}
|
566
|
+
title="Remove"
|
567
|
+
onClick={removeNode}
|
568
|
+
>
|
569
|
+
<TimesIcon />
|
570
|
+
</button>
|
571
|
+
</div>
|
572
|
+
</div>
|
573
|
+
</ContextMenu>
|
574
|
+
);
|
575
|
+
},
|
576
|
+
);
|
577
|
+
|
578
|
+
const QueryBuilderFilterTreeNodeView = observer(
|
579
|
+
(
|
580
|
+
props: TreeNodeViewProps<
|
581
|
+
QueryBuilderFilterTreeNodeData,
|
582
|
+
{
|
583
|
+
queryBuilderState: QueryBuilderState;
|
584
|
+
}
|
585
|
+
>,
|
586
|
+
) => {
|
587
|
+
const {
|
588
|
+
node,
|
589
|
+
level,
|
590
|
+
onNodeSelect,
|
591
|
+
getChildNodes,
|
592
|
+
stepPaddingInRem,
|
593
|
+
innerProps,
|
594
|
+
} = props;
|
595
|
+
return (
|
596
|
+
<div className="tree-view__node__block">
|
597
|
+
<QueryBuilderFilterTreeNodeContainer
|
598
|
+
node={node}
|
599
|
+
level={level + 1}
|
600
|
+
stepPaddingInRem={stepPaddingInRem}
|
601
|
+
onNodeSelect={onNodeSelect}
|
602
|
+
innerProps={innerProps}
|
603
|
+
/>
|
604
|
+
{node.isOpen &&
|
605
|
+
getChildNodes(node).map((childNode) => (
|
606
|
+
<QueryBuilderFilterTreeNodeView
|
607
|
+
key={childNode.id}
|
608
|
+
node={childNode}
|
609
|
+
level={level + 1}
|
610
|
+
onNodeSelect={onNodeSelect}
|
611
|
+
getChildNodes={getChildNodes}
|
612
|
+
innerProps={innerProps}
|
613
|
+
/>
|
614
|
+
))}
|
615
|
+
</div>
|
616
|
+
);
|
617
|
+
},
|
618
|
+
);
|
619
|
+
|
620
|
+
const QueryBuilderFilterTree = observer(
|
621
|
+
(props: { queryBuilderState: QueryBuilderState }) => {
|
622
|
+
const { queryBuilderState } = props;
|
623
|
+
const filterState = queryBuilderState.filterState;
|
624
|
+
const rootNodes = filterState.rootIds.map((rootId) =>
|
625
|
+
filterState.getNode(rootId),
|
626
|
+
);
|
627
|
+
const onNodeSelect = (node: QueryBuilderFilterTreeNodeData): void =>
|
628
|
+
filterState.setSelectedNode(node);
|
629
|
+
const getChildNodes = (
|
630
|
+
node: QueryBuilderFilterTreeNodeData,
|
631
|
+
): QueryBuilderFilterTreeNodeData[] =>
|
632
|
+
node instanceof QueryBuilderFilterTreeGroupNodeData
|
633
|
+
? node.childrenIds.map((id) => filterState.getNode(id))
|
634
|
+
: [];
|
635
|
+
const onClickAway = (): void => filterState.handleClickaway();
|
636
|
+
return (
|
637
|
+
<ClickAwayListener onClickAway={onClickAway}>
|
638
|
+
<div className="tree-view__node__root query-builder-filter-tree__root">
|
639
|
+
{rootNodes.map((node) => (
|
640
|
+
<QueryBuilderFilterTreeNodeView
|
641
|
+
key={node.id}
|
642
|
+
level={0}
|
643
|
+
node={node}
|
644
|
+
getChildNodes={getChildNodes}
|
645
|
+
onNodeSelect={onNodeSelect}
|
646
|
+
innerProps={{
|
647
|
+
queryBuilderState,
|
648
|
+
}}
|
649
|
+
/>
|
650
|
+
))}
|
651
|
+
</div>
|
652
|
+
</ClickAwayListener>
|
653
|
+
);
|
654
|
+
},
|
655
|
+
);
|
656
|
+
|
657
|
+
export const QueryBuilderFilterPanel = observer(
|
658
|
+
(props: { queryBuilderState: QueryBuilderState }) => {
|
659
|
+
const { queryBuilderState } = props;
|
660
|
+
const applicationStore = useApplicationStore();
|
661
|
+
const filterState = queryBuilderState.filterState;
|
662
|
+
const rootNode = filterState.getRootNode();
|
663
|
+
const collapseTree = (): void => {
|
664
|
+
filterState.setSelectedNode(undefined);
|
665
|
+
filterState.collapseTree();
|
666
|
+
};
|
667
|
+
const expandTree = (): void => {
|
668
|
+
filterState.setSelectedNode(undefined);
|
669
|
+
filterState.expandTree();
|
670
|
+
};
|
671
|
+
const pruneTree = (): void => {
|
672
|
+
filterState.suppressClickawayEventListener();
|
673
|
+
filterState.pruneTree();
|
674
|
+
};
|
675
|
+
const simplifyTree = (): void => {
|
676
|
+
filterState.suppressClickawayEventListener();
|
677
|
+
filterState.simplifyTree();
|
678
|
+
};
|
679
|
+
const createCondition = (): void => {
|
680
|
+
filterState.suppressClickawayEventListener();
|
681
|
+
filterState.addNodeFromNode(
|
682
|
+
new QueryBuilderFilterTreeBlankConditionNodeData(undefined),
|
683
|
+
filterState.selectedNode,
|
684
|
+
);
|
685
|
+
};
|
686
|
+
const allowGroupCreation =
|
687
|
+
filterState.isEmpty || // either the tree is empty
|
688
|
+
(filterState.selectedNode && // or a node is currently selected which is...
|
689
|
+
(filterState.selectedNode !== rootNode || // either not a root node
|
690
|
+
rootNode instanceof QueryBuilderFilterTreeGroupNodeData)); // or if it is the root note, it has to be a group node
|
691
|
+
const createGroupCondition = (): void => {
|
692
|
+
filterState.suppressClickawayEventListener();
|
693
|
+
if (allowGroupCreation) {
|
694
|
+
filterState.addGroupConditionNodeFromNode(filterState.selectedNode);
|
695
|
+
}
|
696
|
+
};
|
697
|
+
const newGroupWithCondition = (): void => {
|
698
|
+
filterState.suppressClickawayEventListener();
|
699
|
+
if (
|
700
|
+
filterState.selectedNode instanceof
|
701
|
+
QueryBuilderFilterTreeConditionNodeData
|
702
|
+
) {
|
703
|
+
filterState.newGroupWithConditionFromNode(
|
704
|
+
undefined,
|
705
|
+
filterState.selectedNode,
|
706
|
+
);
|
707
|
+
}
|
708
|
+
};
|
709
|
+
// Drag and Drop
|
710
|
+
const handleDrop = useCallback(
|
711
|
+
(item: QueryBuilderFilterDropTarget, type: string): void => {
|
712
|
+
let filterConditionState: FilterConditionState;
|
713
|
+
try {
|
714
|
+
let propertyExpression;
|
715
|
+
if (type === QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE) {
|
716
|
+
if (
|
717
|
+
(item as QueryBuilderProjectionColumnDragSource)
|
718
|
+
.columnState instanceof QueryBuilderSimpleProjectionColumnState
|
719
|
+
) {
|
720
|
+
propertyExpression = (
|
721
|
+
(item as QueryBuilderProjectionColumnDragSource)
|
722
|
+
.columnState as QueryBuilderSimpleProjectionColumnState
|
723
|
+
).propertyExpressionState.propertyExpression;
|
724
|
+
} else {
|
725
|
+
throw new UnsupportedOperationError(
|
726
|
+
`Dragging and Dropping derivation projection column is not supported.`,
|
727
|
+
);
|
728
|
+
}
|
729
|
+
} else {
|
730
|
+
propertyExpression =
|
731
|
+
buildPropertyExpressionFromExplorerTreeNodeData(
|
732
|
+
filterState.queryBuilderState.explorerState.nonNullableTreeData,
|
733
|
+
(item as QueryBuilderExplorerTreeDragSource).node,
|
734
|
+
filterState.queryBuilderState.graphManagerState.graph,
|
735
|
+
filterState.queryBuilderState.explorerState.propertySearchState
|
736
|
+
.allMappedPropertyNodes,
|
737
|
+
);
|
738
|
+
}
|
739
|
+
filterConditionState = new FilterConditionState(
|
740
|
+
filterState,
|
741
|
+
propertyExpression,
|
742
|
+
);
|
743
|
+
} catch (error) {
|
744
|
+
assertErrorThrown(error);
|
745
|
+
applicationStore.notifyWarning(error.message);
|
746
|
+
return;
|
747
|
+
}
|
748
|
+
// NOTE: unfocus the current node when DnD a new node to the tree
|
749
|
+
filterState.setSelectedNode(undefined);
|
750
|
+
filterState.addNodeFromNode(
|
751
|
+
new QueryBuilderFilterTreeConditionNodeData(
|
752
|
+
undefined,
|
753
|
+
filterConditionState,
|
754
|
+
),
|
755
|
+
undefined,
|
756
|
+
);
|
757
|
+
},
|
758
|
+
[applicationStore, filterState],
|
759
|
+
);
|
760
|
+
const [{ isDragOver }, dropTargetConnector] = useDrop<
|
761
|
+
QueryBuilderExplorerTreeDragSource,
|
762
|
+
void,
|
763
|
+
{ isDragOver: boolean }
|
764
|
+
>(
|
765
|
+
() => ({
|
766
|
+
accept:
|
767
|
+
queryBuilderState.TEMPORARY__isDnDFetchStructureToFilterSupported
|
768
|
+
? [
|
769
|
+
QUERY_BUILDER_EXPLORER_TREE_DND_TYPE.ENUM_PROPERTY,
|
770
|
+
QUERY_BUILDER_EXPLORER_TREE_DND_TYPE.PRIMITIVE_PROPERTY,
|
771
|
+
QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE,
|
772
|
+
]
|
773
|
+
: [
|
774
|
+
QUERY_BUILDER_EXPLORER_TREE_DND_TYPE.ENUM_PROPERTY,
|
775
|
+
QUERY_BUILDER_EXPLORER_TREE_DND_TYPE.PRIMITIVE_PROPERTY,
|
776
|
+
],
|
777
|
+
drop: (item, monitor): void => {
|
778
|
+
if (!monitor.didDrop()) {
|
779
|
+
handleDrop(item, monitor.getItemType() as string);
|
780
|
+
} // prevent drop event propagation to accomondate for nested DnD
|
781
|
+
},
|
782
|
+
collect: (monitor) => ({
|
783
|
+
isDragOver: monitor.isOver({ shallow: true }),
|
784
|
+
}),
|
785
|
+
}),
|
786
|
+
[handleDrop],
|
787
|
+
);
|
788
|
+
|
789
|
+
return (
|
790
|
+
<div
|
791
|
+
data-testid={QUERY_BUILDER_TEST_ID.QUERY_BUILDER_FILTER}
|
792
|
+
className="panel"
|
793
|
+
>
|
794
|
+
<div className="panel__header">
|
795
|
+
<div className="panel__header__title">
|
796
|
+
<div className="panel__header__title__label">filter</div>
|
797
|
+
</div>
|
798
|
+
<div className="panel__header__actions">
|
799
|
+
<button
|
800
|
+
className="panel__header__action"
|
801
|
+
onClick={createCondition}
|
802
|
+
tabIndex={-1}
|
803
|
+
title="Create Condition"
|
804
|
+
>
|
805
|
+
<PlusIcon />
|
806
|
+
</button>
|
807
|
+
<button
|
808
|
+
className="panel__header__action"
|
809
|
+
disabled={
|
810
|
+
!(
|
811
|
+
filterState.selectedNode instanceof
|
812
|
+
QueryBuilderFilterTreeConditionNodeData
|
813
|
+
)
|
814
|
+
}
|
815
|
+
onClick={newGroupWithCondition}
|
816
|
+
tabIndex={-1}
|
817
|
+
title="Create Group From Condition"
|
818
|
+
>
|
819
|
+
<PlusCircleIcon />
|
820
|
+
</button>
|
821
|
+
<button
|
822
|
+
className="panel__header__action"
|
823
|
+
disabled={!allowGroupCreation}
|
824
|
+
onClick={createGroupCondition}
|
825
|
+
tabIndex={-1}
|
826
|
+
title="Create Logical Group"
|
827
|
+
>
|
828
|
+
<NewFolderIcon />
|
829
|
+
</button>
|
830
|
+
<button
|
831
|
+
className="panel__header__action"
|
832
|
+
onClick={pruneTree}
|
833
|
+
tabIndex={-1}
|
834
|
+
title="Cleanup Tree"
|
835
|
+
>
|
836
|
+
<BrushIcon />
|
837
|
+
</button>
|
838
|
+
<button
|
839
|
+
className="panel__header__action"
|
840
|
+
onClick={simplifyTree}
|
841
|
+
tabIndex={-1}
|
842
|
+
title="Simplify Tree"
|
843
|
+
>
|
844
|
+
<CircleIcon />
|
845
|
+
</button>
|
846
|
+
<button
|
847
|
+
className="panel__header__action"
|
848
|
+
onClick={collapseTree}
|
849
|
+
tabIndex={-1}
|
850
|
+
title="Collapse Tree"
|
851
|
+
>
|
852
|
+
<CompressIcon />
|
853
|
+
</button>
|
854
|
+
<button
|
855
|
+
className="panel__header__action"
|
856
|
+
onClick={expandTree}
|
857
|
+
tabIndex={-1}
|
858
|
+
title="Expand Tree"
|
859
|
+
>
|
860
|
+
<ExpandIcon />
|
861
|
+
</button>
|
862
|
+
</div>
|
863
|
+
</div>
|
864
|
+
<div className="panel__content">
|
865
|
+
<PanelDropZone
|
866
|
+
isDragOver={isDragOver}
|
867
|
+
dropTargetConnector={dropTargetConnector}
|
868
|
+
>
|
869
|
+
{filterState.isEmpty && (
|
870
|
+
<BlankPanelPlaceholder
|
871
|
+
text="Add a filter condition"
|
872
|
+
tooltipText="Drag and drop properties here"
|
873
|
+
/>
|
874
|
+
)}
|
875
|
+
{!filterState.isEmpty && (
|
876
|
+
<>
|
877
|
+
<DragPreviewLayer
|
878
|
+
labelGetter={(
|
879
|
+
item: QueryBuilderFilterConditionDragSource,
|
880
|
+
): string => item.node.dragPreviewLabel}
|
881
|
+
types={Object.values(QUERY_BUILDER_FILTER_DND_TYPE)}
|
882
|
+
/>
|
883
|
+
<QueryBuilderFilterTree queryBuilderState={queryBuilderState} />
|
884
|
+
</>
|
885
|
+
)}
|
886
|
+
</PanelDropZone>
|
887
|
+
</div>
|
888
|
+
</div>
|
889
|
+
);
|
890
|
+
},
|
891
|
+
);
|