@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,1103 @@
|
|
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
|
+
useApplicationStore,
|
19
|
+
BasicValueSpecificationEditor,
|
20
|
+
} from '@finos/legend-application';
|
21
|
+
import {
|
22
|
+
type TreeNodeContainerProps,
|
23
|
+
type TreeNodeViewProps,
|
24
|
+
type TooltipPlacement,
|
25
|
+
BlankPanelPlaceholder,
|
26
|
+
CaretDownIcon,
|
27
|
+
ChevronDownIcon,
|
28
|
+
ChevronRightIcon,
|
29
|
+
ClickAwayListener,
|
30
|
+
clsx,
|
31
|
+
ContextMenu,
|
32
|
+
DropdownMenu,
|
33
|
+
FilledTriangleIcon,
|
34
|
+
MenuContent,
|
35
|
+
MenuContentItem,
|
36
|
+
TimesIcon,
|
37
|
+
PlusIcon,
|
38
|
+
ExpandIcon,
|
39
|
+
CompressIcon,
|
40
|
+
CircleIcon,
|
41
|
+
BrushIcon,
|
42
|
+
NewFolderIcon,
|
43
|
+
PlusCircleIcon,
|
44
|
+
InfoCircleIcon,
|
45
|
+
Tooltip,
|
46
|
+
StringTypeIcon,
|
47
|
+
ToggleIcon,
|
48
|
+
HashtagIcon,
|
49
|
+
ClockIcon,
|
50
|
+
PanelDropZone,
|
51
|
+
DragPreviewLayer,
|
52
|
+
PanelEntryDropZonePlaceholder,
|
53
|
+
useDragPreviewLayer,
|
54
|
+
BlankPanelContent,
|
55
|
+
} from '@finos/legend-art';
|
56
|
+
import {
|
57
|
+
type Type,
|
58
|
+
type ValueSpecification,
|
59
|
+
Class,
|
60
|
+
Enumeration,
|
61
|
+
PrimitiveType,
|
62
|
+
PRIMITIVE_TYPE,
|
63
|
+
getMultiplicityDescription,
|
64
|
+
} from '@finos/legend-graph';
|
65
|
+
import {
|
66
|
+
assertErrorThrown,
|
67
|
+
guaranteeNonNullable,
|
68
|
+
returnUndefOnError,
|
69
|
+
debounce,
|
70
|
+
} from '@finos/legend-shared';
|
71
|
+
import { flowResult } from 'mobx';
|
72
|
+
import { observer } from 'mobx-react-lite';
|
73
|
+
import { forwardRef, useCallback, useMemo, useRef, useState } from 'react';
|
74
|
+
import { useDrop, useDrag } from 'react-dnd';
|
75
|
+
import { getColumnMultiplicity } from '../../stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js';
|
76
|
+
import { QueryBuilderAggregateColumnState } from '../../stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.js';
|
77
|
+
import type { QueryBuilderPostFilterOperator } from '../../stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.js';
|
78
|
+
import {
|
79
|
+
type QueryBuilderPostFilterTreeNodeData,
|
80
|
+
type QueryBuilderPostFilterDropTarget,
|
81
|
+
PostFilterConditionState,
|
82
|
+
type QueryBuilderPostFilterConditionDragSource,
|
83
|
+
QueryBuilderPostFilterTreeConditionNodeData,
|
84
|
+
QueryBuilderPostFilterTreeGroupNodeData,
|
85
|
+
QUERY_BUILDER_POST_FILTER_DND_TYPE,
|
86
|
+
QueryBuilderPostFilterTreeBlankConditionNodeData,
|
87
|
+
} from '../../stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.js';
|
88
|
+
import {
|
89
|
+
type QueryBuilderProjectionColumnState,
|
90
|
+
type QueryBuilderProjectionColumnDragSource,
|
91
|
+
QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE,
|
92
|
+
QueryBuilderDerivationProjectionColumnState,
|
93
|
+
} from '../../stores/fetch-structure/projection/QueryBuilderProjectionColumnState.js';
|
94
|
+
import type { QueryBuilderState } from '../../stores/QueryBuilderState.js';
|
95
|
+
import {
|
96
|
+
type QueryBuilderParameterDragSource,
|
97
|
+
QUERY_BUILDER_PARAMETER_DND_TYPE,
|
98
|
+
} from '../../stores/QueryBuilderParametersState.js';
|
99
|
+
import { QUERY_BUILDER_TEST_ID } from '../QueryBuilder_TestID.js';
|
100
|
+
import { isTypeCompatibleForAssignment } from '../../stores/QueryBuilderValueSpecificationHelper.js';
|
101
|
+
import { QUERY_BUILDER_GROUP_OPERATION } from '../../stores/QueryBuilderGroupOperationHelper.js';
|
102
|
+
import { QueryBuilderProjectionState } from '../../stores/fetch-structure/projection/QueryBuilderProjectionState.js';
|
103
|
+
|
104
|
+
const QueryBuilderPostFilterConditionContextMenu = observer(
|
105
|
+
forwardRef<
|
106
|
+
HTMLDivElement,
|
107
|
+
{
|
108
|
+
projectionState: QueryBuilderProjectionState;
|
109
|
+
node: QueryBuilderPostFilterTreeNodeData;
|
110
|
+
}
|
111
|
+
>(function QueryBuilderPostFilterConditionContextMenu(props, ref) {
|
112
|
+
const { projectionState, node } = props;
|
113
|
+
const postFilterState = projectionState.postFilterState;
|
114
|
+
const removeNode = (): void =>
|
115
|
+
postFilterState.removeNodeAndPruneBranch(node);
|
116
|
+
const createCondition = (): void => {
|
117
|
+
postFilterState.suppressClickawayEventListener();
|
118
|
+
postFilterState.addNodeFromNode(
|
119
|
+
new QueryBuilderPostFilterTreeBlankConditionNodeData(undefined),
|
120
|
+
node,
|
121
|
+
);
|
122
|
+
};
|
123
|
+
const createGroupCondition = (): void => {
|
124
|
+
postFilterState.suppressClickawayEventListener();
|
125
|
+
postFilterState.addGroupConditionNodeFromNode(node);
|
126
|
+
};
|
127
|
+
const newGroupWithCondition = (): void => {
|
128
|
+
postFilterState.suppressClickawayEventListener();
|
129
|
+
postFilterState.newGroupWithConditionFromNode(undefined, node);
|
130
|
+
};
|
131
|
+
|
132
|
+
return (
|
133
|
+
<MenuContent ref={ref}>
|
134
|
+
{node instanceof QueryBuilderPostFilterTreeGroupNodeData && (
|
135
|
+
<MenuContentItem onClick={createCondition}>
|
136
|
+
Add New Condition
|
137
|
+
</MenuContentItem>
|
138
|
+
)}
|
139
|
+
{node instanceof QueryBuilderPostFilterTreeGroupNodeData && (
|
140
|
+
<MenuContentItem onClick={createGroupCondition}>
|
141
|
+
Add New Logical Group
|
142
|
+
</MenuContentItem>
|
143
|
+
)}
|
144
|
+
{node instanceof QueryBuilderPostFilterTreeConditionNodeData && (
|
145
|
+
<MenuContentItem onClick={newGroupWithCondition}>
|
146
|
+
Form a New Logical Group
|
147
|
+
</MenuContentItem>
|
148
|
+
)}
|
149
|
+
<MenuContentItem onClick={removeNode}>Remove</MenuContentItem>
|
150
|
+
</MenuContent>
|
151
|
+
);
|
152
|
+
}),
|
153
|
+
);
|
154
|
+
|
155
|
+
const QueryBuilderPostFilterGroupConditionEditor = observer(
|
156
|
+
(props: {
|
157
|
+
node: QueryBuilderPostFilterTreeGroupNodeData;
|
158
|
+
isDragOver: boolean;
|
159
|
+
}) => {
|
160
|
+
const { node, isDragOver } = props;
|
161
|
+
const switchOperation: React.MouseEventHandler<HTMLDivElement> = (
|
162
|
+
event,
|
163
|
+
): void => {
|
164
|
+
event.stopPropagation(); // prevent triggering selecting the node
|
165
|
+
node.setGroupOperation(
|
166
|
+
node.groupOperation === QUERY_BUILDER_GROUP_OPERATION.AND
|
167
|
+
? QUERY_BUILDER_GROUP_OPERATION.OR
|
168
|
+
: QUERY_BUILDER_GROUP_OPERATION.AND,
|
169
|
+
);
|
170
|
+
};
|
171
|
+
return (
|
172
|
+
<div className="query-builder-post-filter-tree__node__label__content">
|
173
|
+
<PanelEntryDropZonePlaceholder
|
174
|
+
showPlaceholder={isDragOver}
|
175
|
+
label="Add to Logical Group"
|
176
|
+
className="query-builder__dnd__placeholder"
|
177
|
+
>
|
178
|
+
<div
|
179
|
+
className={clsx('query-builder-post-filter-tree__group-node', {
|
180
|
+
'query-builder-post-filter-tree__group-node--and':
|
181
|
+
node.groupOperation === QUERY_BUILDER_GROUP_OPERATION.AND,
|
182
|
+
'query-builder-post-filter-tree__group-node--or':
|
183
|
+
node.groupOperation === QUERY_BUILDER_GROUP_OPERATION.OR,
|
184
|
+
})}
|
185
|
+
title="Switch Operation"
|
186
|
+
onClick={switchOperation}
|
187
|
+
>
|
188
|
+
<div className="query-builder-post-filter-tree__group-node__label">
|
189
|
+
{node.groupOperation}
|
190
|
+
</div>
|
191
|
+
<button className="query-builder-post-filter-tree__group-node__action">
|
192
|
+
<FilledTriangleIcon />
|
193
|
+
</button>
|
194
|
+
</div>
|
195
|
+
</PanelEntryDropZonePlaceholder>
|
196
|
+
</div>
|
197
|
+
);
|
198
|
+
},
|
199
|
+
);
|
200
|
+
|
201
|
+
const renderPropertyTypeIcon = (type: Type): React.ReactNode => {
|
202
|
+
if (type instanceof PrimitiveType) {
|
203
|
+
if (type.name === PRIMITIVE_TYPE.STRING) {
|
204
|
+
return <StringTypeIcon className="query-builder-column-badge__icon" />;
|
205
|
+
} else if (type.name === PRIMITIVE_TYPE.BOOLEAN) {
|
206
|
+
return <ToggleIcon className="query-builder-column-badge__icon" />;
|
207
|
+
} else if (
|
208
|
+
type.name === PRIMITIVE_TYPE.NUMBER ||
|
209
|
+
type.name === PRIMITIVE_TYPE.INTEGER ||
|
210
|
+
type.name === PRIMITIVE_TYPE.FLOAT ||
|
211
|
+
type.name === PRIMITIVE_TYPE.DECIMAL
|
212
|
+
) {
|
213
|
+
return <HashtagIcon className="query-builder-column-badge__icon" />;
|
214
|
+
} else if (
|
215
|
+
type.name === PRIMITIVE_TYPE.DATE ||
|
216
|
+
type.name === PRIMITIVE_TYPE.DATETIME ||
|
217
|
+
type.name === PRIMITIVE_TYPE.STRICTDATE
|
218
|
+
) {
|
219
|
+
return <ClockIcon className="query-builder-column-badge__icon" />;
|
220
|
+
}
|
221
|
+
} else if (type instanceof Enumeration) {
|
222
|
+
return <div className="icon query-builder-column-badge__icon">E</div>;
|
223
|
+
}
|
224
|
+
return null;
|
225
|
+
};
|
226
|
+
|
227
|
+
const QueryBuilderColumnInfoTooltip: React.FC<{
|
228
|
+
columnState:
|
229
|
+
| QueryBuilderProjectionColumnState
|
230
|
+
| QueryBuilderAggregateColumnState;
|
231
|
+
children: React.ReactElement;
|
232
|
+
placement?: TooltipPlacement | undefined;
|
233
|
+
}> = (props) => {
|
234
|
+
const { columnState, placement, children } = props;
|
235
|
+
const type = columnState.getReturnType();
|
236
|
+
const multiplicity = returnUndefOnError(() =>
|
237
|
+
getColumnMultiplicity(columnState),
|
238
|
+
);
|
239
|
+
return (
|
240
|
+
<Tooltip
|
241
|
+
arrow={true}
|
242
|
+
{...(placement !== undefined ? { placement } : {})}
|
243
|
+
classes={{
|
244
|
+
tooltip: 'query-builder__tooltip',
|
245
|
+
arrow: 'query-builder__tooltip__arrow',
|
246
|
+
tooltipPlacementRight: 'query-builder__tooltip--right',
|
247
|
+
}}
|
248
|
+
TransitionProps={{
|
249
|
+
// disable transition
|
250
|
+
// NOTE: somehow, this is the only workaround we have, if for example
|
251
|
+
// we set `appear = true`, the tooltip will jump out of position
|
252
|
+
timeout: 0,
|
253
|
+
}}
|
254
|
+
title={
|
255
|
+
<div className="query-builder__tooltip__content">
|
256
|
+
<div className="query-builder__tooltip__item">
|
257
|
+
<div className="query-builder__tooltip__item__label">Name</div>
|
258
|
+
<div className="query-builder__tooltip__item__value">
|
259
|
+
{columnState.columnName}
|
260
|
+
</div>
|
261
|
+
</div>
|
262
|
+
<div className="query-builder__tooltip__item">
|
263
|
+
<div className="query-builder__tooltip__item__label">Type</div>
|
264
|
+
<div className="query-builder__tooltip__item__value">
|
265
|
+
{type?.path}
|
266
|
+
</div>
|
267
|
+
</div>
|
268
|
+
{multiplicity && (
|
269
|
+
<div className="query-builder__tooltip__item">
|
270
|
+
<div className="query-builder__tooltip__item__label">
|
271
|
+
Multiplicity
|
272
|
+
</div>
|
273
|
+
<div className="query-builder__tooltip__item__value">
|
274
|
+
{getMultiplicityDescription(multiplicity)}
|
275
|
+
</div>
|
276
|
+
</div>
|
277
|
+
)}
|
278
|
+
</div>
|
279
|
+
}
|
280
|
+
>
|
281
|
+
{children}
|
282
|
+
</Tooltip>
|
283
|
+
);
|
284
|
+
};
|
285
|
+
|
286
|
+
export const QueryBuilderColumnBadge = observer(
|
287
|
+
(props: {
|
288
|
+
postFilterConditionState: PostFilterConditionState;
|
289
|
+
onColumnChange: (
|
290
|
+
columnState: QueryBuilderProjectionColumnState,
|
291
|
+
) => Promise<void>;
|
292
|
+
}) => {
|
293
|
+
const { postFilterConditionState, onColumnChange } = props;
|
294
|
+
const applicationStore = useApplicationStore();
|
295
|
+
const type = postFilterConditionState.columnState.getReturnType();
|
296
|
+
const handleDrop = useCallback(
|
297
|
+
(item: QueryBuilderProjectionColumnDragSource): Promise<void> =>
|
298
|
+
onColumnChange(item.columnState),
|
299
|
+
[onColumnChange],
|
300
|
+
);
|
301
|
+
const [{ isDragOver }, dropConnector] = useDrop<
|
302
|
+
QueryBuilderProjectionColumnDragSource,
|
303
|
+
void,
|
304
|
+
{ isDragOver: boolean }
|
305
|
+
>(
|
306
|
+
() => ({
|
307
|
+
accept: [QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE],
|
308
|
+
drop: (item, monitor): void => {
|
309
|
+
if (!monitor.didDrop()) {
|
310
|
+
handleDrop(item).catch(applicationStore.alertUnhandledError);
|
311
|
+
} // prevent drop event propagation to accomondate for nested DnD
|
312
|
+
},
|
313
|
+
collect: (monitor) => ({
|
314
|
+
isDragOver: monitor.isOver({ shallow: true }),
|
315
|
+
}),
|
316
|
+
}),
|
317
|
+
[applicationStore, handleDrop],
|
318
|
+
);
|
319
|
+
|
320
|
+
return (
|
321
|
+
<div ref={dropConnector} className="query-builder-column-badge">
|
322
|
+
<PanelEntryDropZonePlaceholder
|
323
|
+
showPlaceholder={isDragOver}
|
324
|
+
label="Change Property"
|
325
|
+
className="query-builder__dnd__placeholder"
|
326
|
+
>
|
327
|
+
<div className="query-builder-column-badge__content">
|
328
|
+
{type && (
|
329
|
+
<div
|
330
|
+
className={clsx('query-builder-column-badge__type', {
|
331
|
+
'query-builder-column-badge__type--class':
|
332
|
+
type instanceof Class,
|
333
|
+
'query-builder-column-badge__type--enumeration':
|
334
|
+
type instanceof Enumeration,
|
335
|
+
'query-builder-column-badge__type--primitive':
|
336
|
+
type instanceof PrimitiveType,
|
337
|
+
})}
|
338
|
+
>
|
339
|
+
{renderPropertyTypeIcon(type)}
|
340
|
+
</div>
|
341
|
+
)}
|
342
|
+
<div
|
343
|
+
className="query-builder-column-badge__property"
|
344
|
+
title={`${postFilterConditionState.columnName}`}
|
345
|
+
>
|
346
|
+
{postFilterConditionState.columnName}
|
347
|
+
</div>
|
348
|
+
<QueryBuilderColumnInfoTooltip
|
349
|
+
columnState={postFilterConditionState.columnState}
|
350
|
+
placement="bottom-end"
|
351
|
+
>
|
352
|
+
<div className="query-builder-column-badge__property__info">
|
353
|
+
<InfoCircleIcon />
|
354
|
+
</div>
|
355
|
+
</QueryBuilderColumnInfoTooltip>
|
356
|
+
</div>
|
357
|
+
</PanelEntryDropZonePlaceholder>
|
358
|
+
</div>
|
359
|
+
);
|
360
|
+
},
|
361
|
+
);
|
362
|
+
const QueryBuilderPostFilterConditionEditor = observer(
|
363
|
+
(props: {
|
364
|
+
node: QueryBuilderPostFilterTreeConditionNodeData;
|
365
|
+
isDragOver: boolean;
|
366
|
+
}) => {
|
367
|
+
const { node, isDragOver } = props;
|
368
|
+
const graph =
|
369
|
+
node.condition.postFilterState.projectionState.queryBuilderState
|
370
|
+
.graphManagerState.graph;
|
371
|
+
const applicationStore = useApplicationStore();
|
372
|
+
const changeOperator = (val: QueryBuilderPostFilterOperator) => (): void =>
|
373
|
+
node.condition.changeOperator(val);
|
374
|
+
const changeColumn = async (
|
375
|
+
columnState: QueryBuilderProjectionColumnState,
|
376
|
+
): Promise<void> => {
|
377
|
+
const currentColState =
|
378
|
+
node.condition.columnState instanceof QueryBuilderAggregateColumnState
|
379
|
+
? node.condition.columnState.projectionColumnState
|
380
|
+
: node.condition.columnState;
|
381
|
+
if (currentColState !== columnState) {
|
382
|
+
await flowResult(node.condition.changeColumn(columnState));
|
383
|
+
}
|
384
|
+
};
|
385
|
+
// Drag and Drop on filter condition value
|
386
|
+
const handleDrop = useCallback(
|
387
|
+
(item: QueryBuilderParameterDragSource): void => {
|
388
|
+
const parameterType =
|
389
|
+
item.variable.parameter.genericType?.value.rawType;
|
390
|
+
const conditionValueType = node.condition.columnState.getReturnType();
|
391
|
+
if (
|
392
|
+
conditionValueType &&
|
393
|
+
isTypeCompatibleForAssignment(parameterType, conditionValueType)
|
394
|
+
) {
|
395
|
+
node.condition.setValue(item.variable.parameter);
|
396
|
+
} else {
|
397
|
+
applicationStore.notifyWarning(
|
398
|
+
`Incompatible parameter type ${parameterType?.name}. ${parameterType?.name} is not compatible with type ${conditionValueType?.name}.`,
|
399
|
+
);
|
400
|
+
}
|
401
|
+
},
|
402
|
+
[applicationStore, node.condition],
|
403
|
+
);
|
404
|
+
const [{ isFilterValueDragOver }, dropConnector] = useDrop<
|
405
|
+
QueryBuilderParameterDragSource,
|
406
|
+
void,
|
407
|
+
{ isFilterValueDragOver: boolean }
|
408
|
+
>(
|
409
|
+
() => ({
|
410
|
+
accept: [QUERY_BUILDER_PARAMETER_DND_TYPE],
|
411
|
+
drop: (item, monitor): void => {
|
412
|
+
if (!monitor.didDrop()) {
|
413
|
+
handleDrop(item);
|
414
|
+
} // prevent drop event propagation to accomondate for nested DnD
|
415
|
+
},
|
416
|
+
collect: (monitor) => ({
|
417
|
+
isFilterValueDragOver: monitor.isOver({ shallow: true }),
|
418
|
+
}),
|
419
|
+
}),
|
420
|
+
[handleDrop],
|
421
|
+
);
|
422
|
+
const resetNode = (): void => {
|
423
|
+
node.condition.setValue(
|
424
|
+
node.condition.operator.getDefaultFilterConditionValue(node.condition),
|
425
|
+
);
|
426
|
+
};
|
427
|
+
const debouncedTypeaheadSearch = useMemo(
|
428
|
+
() =>
|
429
|
+
debounce(
|
430
|
+
(inputVal: string) => node.condition.handleTypeaheadSearch(),
|
431
|
+
1000,
|
432
|
+
),
|
433
|
+
[node],
|
434
|
+
);
|
435
|
+
const cleanUpReloadValues = (): void => {
|
436
|
+
node.condition.typeaheadSearchState.complete();
|
437
|
+
};
|
438
|
+
const changeValueSpecification = (val: ValueSpecification): void => {
|
439
|
+
node.condition.setValue(val);
|
440
|
+
};
|
441
|
+
const selectorConfig = {
|
442
|
+
values: node.condition.typeaheadSearchResults,
|
443
|
+
isLoading: node.condition.typeaheadSearchState.isInProgress,
|
444
|
+
reloadValues: debouncedTypeaheadSearch,
|
445
|
+
cleanUpReloadValues,
|
446
|
+
};
|
447
|
+
|
448
|
+
return (
|
449
|
+
<div className="query-builder-post-filter-tree__node__label__content">
|
450
|
+
<PanelEntryDropZonePlaceholder
|
451
|
+
showPlaceholder={isDragOver}
|
452
|
+
label="Add New Logical Group"
|
453
|
+
className="query-builder__dnd__placeholder"
|
454
|
+
>
|
455
|
+
<div className="query-builder-post-filter-tree__condition-node">
|
456
|
+
<div className="query-builder-post-filter-tree__condition-node__property">
|
457
|
+
<QueryBuilderColumnBadge
|
458
|
+
postFilterConditionState={node.condition}
|
459
|
+
onColumnChange={changeColumn}
|
460
|
+
/>
|
461
|
+
</div>
|
462
|
+
<DropdownMenu
|
463
|
+
className="query-builder-post-filter-tree__condition-node__operator"
|
464
|
+
content={
|
465
|
+
<MenuContent>
|
466
|
+
{node.condition.operators.map((op) => (
|
467
|
+
<MenuContentItem
|
468
|
+
key={op.uuid}
|
469
|
+
className="query-builder-post-filter-tree__condition-node__operator__dropdown__option"
|
470
|
+
onClick={changeOperator(op)}
|
471
|
+
>
|
472
|
+
{op.getLabel()}
|
473
|
+
</MenuContentItem>
|
474
|
+
))}
|
475
|
+
</MenuContent>
|
476
|
+
}
|
477
|
+
menuProps={{
|
478
|
+
anchorOrigin: { vertical: 'bottom', horizontal: 'left' },
|
479
|
+
transformOrigin: { vertical: 'top', horizontal: 'left' },
|
480
|
+
elevation: 7,
|
481
|
+
}}
|
482
|
+
>
|
483
|
+
<div className="query-builder-post-filter-tree__condition-node__operator__label">
|
484
|
+
{node.condition.operator.getLabel()}
|
485
|
+
</div>
|
486
|
+
<button
|
487
|
+
className="query-builder-post-filter-tree__condition-node__operator__dropdown__trigger"
|
488
|
+
tabIndex={-1}
|
489
|
+
title="Choose Operator..."
|
490
|
+
>
|
491
|
+
<CaretDownIcon />
|
492
|
+
</button>
|
493
|
+
</DropdownMenu>
|
494
|
+
{node.condition.value && (
|
495
|
+
<div
|
496
|
+
ref={dropConnector}
|
497
|
+
className="query-builder-post-filter-tree__condition-node__value"
|
498
|
+
>
|
499
|
+
<PanelEntryDropZonePlaceholder
|
500
|
+
showPlaceholder={isFilterValueDragOver}
|
501
|
+
label="Change Filter Value"
|
502
|
+
className="query-builder__dnd__placeholder"
|
503
|
+
>
|
504
|
+
<BasicValueSpecificationEditor
|
505
|
+
valueSpecification={node.condition.value}
|
506
|
+
setValueSpecification={changeValueSpecification}
|
507
|
+
graph={graph}
|
508
|
+
typeCheckOption={{
|
509
|
+
expectedType: guaranteeNonNullable(
|
510
|
+
node.condition.columnState.getReturnType(),
|
511
|
+
),
|
512
|
+
}}
|
513
|
+
resetValue={resetNode}
|
514
|
+
selectorConfig={selectorConfig}
|
515
|
+
/>
|
516
|
+
</PanelEntryDropZonePlaceholder>
|
517
|
+
</div>
|
518
|
+
)}
|
519
|
+
</div>
|
520
|
+
</PanelEntryDropZonePlaceholder>
|
521
|
+
</div>
|
522
|
+
);
|
523
|
+
},
|
524
|
+
);
|
525
|
+
|
526
|
+
const QueryBuilderPostFilterBlankConditionEditor = observer(
|
527
|
+
(props: {
|
528
|
+
node: QueryBuilderPostFilterTreeBlankConditionNodeData;
|
529
|
+
isDragOver: boolean;
|
530
|
+
}) => {
|
531
|
+
const { isDragOver } = props;
|
532
|
+
return (
|
533
|
+
<div className="query-builder-post-filter-tree__node__label__content">
|
534
|
+
<PanelEntryDropZonePlaceholder
|
535
|
+
showPlaceholder={isDragOver}
|
536
|
+
label="Create Condition"
|
537
|
+
className="query-builder__dnd__placeholder"
|
538
|
+
>
|
539
|
+
<div className="query-builder-post-filter-tree__blank-node">
|
540
|
+
blank
|
541
|
+
</div>
|
542
|
+
</PanelEntryDropZonePlaceholder>
|
543
|
+
</div>
|
544
|
+
);
|
545
|
+
},
|
546
|
+
);
|
547
|
+
|
548
|
+
const QueryBuilderPostFilterTreeNodeContainer = observer(
|
549
|
+
(
|
550
|
+
props: TreeNodeContainerProps<
|
551
|
+
QueryBuilderPostFilterTreeNodeData,
|
552
|
+
{
|
553
|
+
projectionState: QueryBuilderProjectionState;
|
554
|
+
}
|
555
|
+
>,
|
556
|
+
) => {
|
557
|
+
const { node, level, stepPaddingInRem, onNodeSelect, innerProps } = props;
|
558
|
+
const { projectionState: projectionState } = innerProps;
|
559
|
+
const ref = useRef<HTMLDivElement>(null);
|
560
|
+
const [isSelectedFromContextMenu, setIsSelectedFromContextMenu] =
|
561
|
+
useState(false);
|
562
|
+
const applicationStore = useApplicationStore();
|
563
|
+
const postFilterState = projectionState.postFilterState;
|
564
|
+
const isExpandable =
|
565
|
+
node instanceof QueryBuilderPostFilterTreeGroupNodeData;
|
566
|
+
const selectNode = (): void => onNodeSelect?.(node);
|
567
|
+
const toggleExpandNode = (): void => node.setIsOpen(!node.isOpen);
|
568
|
+
const removeNode = (): void =>
|
569
|
+
postFilterState.removeNodeAndPruneBranch(node);
|
570
|
+
const handleDrop = useCallback(
|
571
|
+
(item: QueryBuilderPostFilterDropTarget, type: string): void => {
|
572
|
+
if (type === QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE) {
|
573
|
+
const columnState = (item as QueryBuilderProjectionColumnDragSource)
|
574
|
+
.columnState;
|
575
|
+
let conditionState: PostFilterConditionState;
|
576
|
+
try {
|
577
|
+
conditionState = new PostFilterConditionState(
|
578
|
+
postFilterState,
|
579
|
+
columnState,
|
580
|
+
undefined,
|
581
|
+
undefined,
|
582
|
+
);
|
583
|
+
conditionState.setValue(
|
584
|
+
conditionState.operator.getDefaultFilterConditionValue(
|
585
|
+
conditionState,
|
586
|
+
),
|
587
|
+
);
|
588
|
+
} catch (error) {
|
589
|
+
assertErrorThrown(error);
|
590
|
+
applicationStore.notifyWarning(error.message);
|
591
|
+
return;
|
592
|
+
}
|
593
|
+
|
594
|
+
if (node instanceof QueryBuilderPostFilterTreeGroupNodeData) {
|
595
|
+
postFilterState.addNodeFromNode(
|
596
|
+
new QueryBuilderPostFilterTreeConditionNodeData(
|
597
|
+
undefined,
|
598
|
+
conditionState,
|
599
|
+
),
|
600
|
+
node,
|
601
|
+
);
|
602
|
+
} else if (
|
603
|
+
node instanceof QueryBuilderPostFilterTreeConditionNodeData
|
604
|
+
) {
|
605
|
+
postFilterState.newGroupWithConditionFromNode(
|
606
|
+
new QueryBuilderPostFilterTreeConditionNodeData(
|
607
|
+
undefined,
|
608
|
+
conditionState,
|
609
|
+
),
|
610
|
+
node,
|
611
|
+
);
|
612
|
+
} else if (
|
613
|
+
node instanceof QueryBuilderPostFilterTreeBlankConditionNodeData
|
614
|
+
) {
|
615
|
+
postFilterState.replaceBlankNodeWithNode(
|
616
|
+
new QueryBuilderPostFilterTreeConditionNodeData(
|
617
|
+
undefined,
|
618
|
+
conditionState,
|
619
|
+
),
|
620
|
+
node,
|
621
|
+
);
|
622
|
+
}
|
623
|
+
}
|
624
|
+
},
|
625
|
+
[applicationStore, postFilterState, node],
|
626
|
+
);
|
627
|
+
const [{ isDragOver }, dropConnector] = useDrop<
|
628
|
+
QueryBuilderPostFilterConditionDragSource,
|
629
|
+
void,
|
630
|
+
{ isDragOver: boolean }
|
631
|
+
>(
|
632
|
+
() => ({
|
633
|
+
accept: [
|
634
|
+
...Object.values(QUERY_BUILDER_POST_FILTER_DND_TYPE),
|
635
|
+
QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE,
|
636
|
+
],
|
637
|
+
drop: (item, monitor): void => {
|
638
|
+
if (!monitor.didDrop()) {
|
639
|
+
handleDrop(item, monitor.getItemType() as string);
|
640
|
+
} // prevent drop event propagation to accomondate for nested DnD
|
641
|
+
},
|
642
|
+
collect: (monitor) => ({
|
643
|
+
isDragOver: monitor.isOver({ shallow: true }),
|
644
|
+
}),
|
645
|
+
}),
|
646
|
+
[handleDrop],
|
647
|
+
);
|
648
|
+
|
649
|
+
const [, dragConnector, dragPreviewConnector] =
|
650
|
+
useDrag<QueryBuilderPostFilterConditionDragSource>(
|
651
|
+
() => ({
|
652
|
+
type:
|
653
|
+
node instanceof QueryBuilderPostFilterTreeGroupNodeData
|
654
|
+
? QUERY_BUILDER_POST_FILTER_DND_TYPE.GROUP_CONDITION
|
655
|
+
: node instanceof QueryBuilderPostFilterTreeConditionNodeData
|
656
|
+
? QUERY_BUILDER_POST_FILTER_DND_TYPE.CONDITION
|
657
|
+
: QUERY_BUILDER_POST_FILTER_DND_TYPE.BLANK_CONDITION,
|
658
|
+
item: () => ({ node }),
|
659
|
+
end: (): void => postFilterState.setRearrangingConditions(false),
|
660
|
+
}),
|
661
|
+
[node, postFilterState],
|
662
|
+
);
|
663
|
+
dragConnector(dropConnector(ref));
|
664
|
+
useDragPreviewLayer(dragPreviewConnector);
|
665
|
+
|
666
|
+
// context menu
|
667
|
+
const onContextMenuOpen = (): void => setIsSelectedFromContextMenu(true);
|
668
|
+
const onContextMenuClose = (): void => setIsSelectedFromContextMenu(false);
|
669
|
+
|
670
|
+
return (
|
671
|
+
<ContextMenu
|
672
|
+
content={
|
673
|
+
<QueryBuilderPostFilterConditionContextMenu
|
674
|
+
projectionState={projectionState}
|
675
|
+
node={node}
|
676
|
+
/>
|
677
|
+
}
|
678
|
+
menuProps={{ elevation: 7 }}
|
679
|
+
onOpen={onContextMenuOpen}
|
680
|
+
onClose={onContextMenuClose}
|
681
|
+
>
|
682
|
+
<div
|
683
|
+
ref={ref}
|
684
|
+
className={clsx(
|
685
|
+
'tree-view__node__container query-builder-post-filter-tree__node__container',
|
686
|
+
{
|
687
|
+
'query-builder-post-filter-tree__node__container--no-hover':
|
688
|
+
postFilterState.isRearrangingConditions,
|
689
|
+
'query-builder-post-filter-tree__node__container--selected':
|
690
|
+
node === postFilterState.selectedNode,
|
691
|
+
'query-builder-post-filter-tree__node__container--selected-from-context-menu':
|
692
|
+
isSelectedFromContextMenu,
|
693
|
+
},
|
694
|
+
)}
|
695
|
+
>
|
696
|
+
<div
|
697
|
+
className="query-builder-post-filter-tree__node__content"
|
698
|
+
style={{
|
699
|
+
paddingLeft: `${(level - 1) * (stepPaddingInRem ?? 2) + 1.5}rem`,
|
700
|
+
display: 'flex',
|
701
|
+
}}
|
702
|
+
onClick={selectNode}
|
703
|
+
>
|
704
|
+
{isExpandable && (
|
705
|
+
<div
|
706
|
+
className="query-builder-post-filter-tree__expand-icon"
|
707
|
+
onClick={toggleExpandNode}
|
708
|
+
>
|
709
|
+
{node.isOpen ? <ChevronDownIcon /> : <ChevronRightIcon />}
|
710
|
+
</div>
|
711
|
+
)}
|
712
|
+
<div
|
713
|
+
className={clsx(
|
714
|
+
'tree-view__node__label query-builder-post-filter-tree__node__label',
|
715
|
+
{
|
716
|
+
'query-builder-post-filter-tree__node__label--expandable':
|
717
|
+
isExpandable,
|
718
|
+
},
|
719
|
+
)}
|
720
|
+
>
|
721
|
+
{node instanceof QueryBuilderPostFilterTreeGroupNodeData && (
|
722
|
+
<QueryBuilderPostFilterGroupConditionEditor
|
723
|
+
node={node}
|
724
|
+
isDragOver={isDragOver}
|
725
|
+
/>
|
726
|
+
)}
|
727
|
+
{node instanceof QueryBuilderPostFilterTreeConditionNodeData && (
|
728
|
+
<QueryBuilderPostFilterConditionEditor
|
729
|
+
node={node}
|
730
|
+
isDragOver={isDragOver}
|
731
|
+
/>
|
732
|
+
)}
|
733
|
+
{node instanceof
|
734
|
+
QueryBuilderPostFilterTreeBlankConditionNodeData && (
|
735
|
+
<QueryBuilderPostFilterBlankConditionEditor
|
736
|
+
node={node}
|
737
|
+
isDragOver={isDragOver}
|
738
|
+
/>
|
739
|
+
)}
|
740
|
+
</div>
|
741
|
+
</div>
|
742
|
+
<div className="query-builder-post-filter-tree__node__actions">
|
743
|
+
<button
|
744
|
+
className="query-builder-post-filter-tree__node__action"
|
745
|
+
tabIndex={-1}
|
746
|
+
title="Remove"
|
747
|
+
onClick={removeNode}
|
748
|
+
>
|
749
|
+
<TimesIcon />
|
750
|
+
</button>
|
751
|
+
</div>
|
752
|
+
</div>
|
753
|
+
</ContextMenu>
|
754
|
+
);
|
755
|
+
},
|
756
|
+
);
|
757
|
+
|
758
|
+
const QueryBuilderPostFilterTreeNodeView = observer(
|
759
|
+
(
|
760
|
+
props: TreeNodeViewProps<
|
761
|
+
QueryBuilderPostFilterTreeNodeData,
|
762
|
+
{
|
763
|
+
projectionState: QueryBuilderProjectionState;
|
764
|
+
}
|
765
|
+
>,
|
766
|
+
) => {
|
767
|
+
const {
|
768
|
+
node,
|
769
|
+
level,
|
770
|
+
onNodeSelect,
|
771
|
+
getChildNodes,
|
772
|
+
stepPaddingInRem,
|
773
|
+
innerProps,
|
774
|
+
} = props;
|
775
|
+
return (
|
776
|
+
<div className="tree-view__node__block">
|
777
|
+
<QueryBuilderPostFilterTreeNodeContainer
|
778
|
+
node={node}
|
779
|
+
level={level + 1}
|
780
|
+
stepPaddingInRem={stepPaddingInRem}
|
781
|
+
onNodeSelect={onNodeSelect}
|
782
|
+
innerProps={innerProps}
|
783
|
+
/>
|
784
|
+
{node.isOpen &&
|
785
|
+
getChildNodes(node).map((childNode) => (
|
786
|
+
<QueryBuilderPostFilterTreeNodeView
|
787
|
+
key={childNode.id}
|
788
|
+
node={childNode}
|
789
|
+
level={level + 1}
|
790
|
+
onNodeSelect={onNodeSelect}
|
791
|
+
getChildNodes={getChildNodes}
|
792
|
+
innerProps={innerProps}
|
793
|
+
/>
|
794
|
+
))}
|
795
|
+
</div>
|
796
|
+
);
|
797
|
+
},
|
798
|
+
);
|
799
|
+
|
800
|
+
const QueryBuilderPostFilterTree = observer(
|
801
|
+
(props: { projectionState: QueryBuilderProjectionState }) => {
|
802
|
+
const { projectionState } = props;
|
803
|
+
const postFilterState = projectionState.postFilterState;
|
804
|
+
const rootNodes = postFilterState.rootIds.map((rootId) =>
|
805
|
+
postFilterState.getNode(rootId),
|
806
|
+
);
|
807
|
+
const onNodeSelect = (node: QueryBuilderPostFilterTreeNodeData): void =>
|
808
|
+
postFilterState.setSelectedNode(node);
|
809
|
+
const getChildNodes = (
|
810
|
+
node: QueryBuilderPostFilterTreeNodeData,
|
811
|
+
): QueryBuilderPostFilterTreeNodeData[] =>
|
812
|
+
node instanceof QueryBuilderPostFilterTreeGroupNodeData
|
813
|
+
? node.childrenIds.map((id) => postFilterState.getNode(id))
|
814
|
+
: [];
|
815
|
+
const onClickAway = (): void => {
|
816
|
+
postFilterState.handleClickaway();
|
817
|
+
};
|
818
|
+
return (
|
819
|
+
<ClickAwayListener onClickAway={onClickAway}>
|
820
|
+
<div className="tree-view__node__root query-builder-post-filter-tree__root">
|
821
|
+
{rootNodes.map((node) => (
|
822
|
+
<QueryBuilderPostFilterTreeNodeView
|
823
|
+
key={node.id}
|
824
|
+
level={0}
|
825
|
+
node={node}
|
826
|
+
getChildNodes={getChildNodes}
|
827
|
+
onNodeSelect={onNodeSelect}
|
828
|
+
innerProps={{
|
829
|
+
projectionState: projectionState,
|
830
|
+
}}
|
831
|
+
/>
|
832
|
+
))}
|
833
|
+
</div>
|
834
|
+
</ClickAwayListener>
|
835
|
+
);
|
836
|
+
},
|
837
|
+
);
|
838
|
+
|
839
|
+
const QueryBuilderPostFilterPanelContent = observer(
|
840
|
+
(props: { projectionState: QueryBuilderProjectionState }) => {
|
841
|
+
const { projectionState } = props;
|
842
|
+
const applicationStore = useApplicationStore();
|
843
|
+
const postFilterState = projectionState.postFilterState;
|
844
|
+
const rootNode = postFilterState.getRootNode();
|
845
|
+
// actions
|
846
|
+
const collapseTree = (): void => {
|
847
|
+
postFilterState.setSelectedNode(undefined);
|
848
|
+
postFilterState.collapseTree();
|
849
|
+
};
|
850
|
+
const expandTree = (): void => {
|
851
|
+
postFilterState.setSelectedNode(undefined);
|
852
|
+
postFilterState.expandTree();
|
853
|
+
};
|
854
|
+
const pruneTree = (): void => {
|
855
|
+
postFilterState.suppressClickawayEventListener();
|
856
|
+
postFilterState.pruneTree();
|
857
|
+
};
|
858
|
+
const simplifyTree = (): void => {
|
859
|
+
postFilterState.suppressClickawayEventListener();
|
860
|
+
postFilterState.simplifyTree();
|
861
|
+
};
|
862
|
+
const createCondition = (): void => {
|
863
|
+
postFilterState.suppressClickawayEventListener();
|
864
|
+
postFilterState.addNodeFromNode(
|
865
|
+
new QueryBuilderPostFilterTreeBlankConditionNodeData(undefined),
|
866
|
+
postFilterState.selectedNode,
|
867
|
+
);
|
868
|
+
};
|
869
|
+
const allowGroupCreation =
|
870
|
+
postFilterState.isEmpty || // either the tree is empty
|
871
|
+
(postFilterState.selectedNode && // or a node is currently selected which is...
|
872
|
+
(postFilterState.selectedNode !== rootNode || // either not a root node
|
873
|
+
rootNode instanceof QueryBuilderPostFilterTreeGroupNodeData)); // or if it is the root note, it has to be a group node
|
874
|
+
|
875
|
+
const createGroupCondition = (): void => {
|
876
|
+
postFilterState.suppressClickawayEventListener();
|
877
|
+
if (allowGroupCreation) {
|
878
|
+
postFilterState.addGroupConditionNodeFromNode(
|
879
|
+
postFilterState.selectedNode,
|
880
|
+
);
|
881
|
+
}
|
882
|
+
};
|
883
|
+
const newGroupWithCondition = (): void => {
|
884
|
+
postFilterState.suppressClickawayEventListener();
|
885
|
+
if (
|
886
|
+
postFilterState.selectedNode instanceof
|
887
|
+
QueryBuilderPostFilterTreeConditionNodeData
|
888
|
+
) {
|
889
|
+
postFilterState.newGroupWithConditionFromNode(
|
890
|
+
undefined,
|
891
|
+
postFilterState.selectedNode,
|
892
|
+
);
|
893
|
+
}
|
894
|
+
};
|
895
|
+
// Drag and Drop
|
896
|
+
const handleDrop = useCallback(
|
897
|
+
async (item: QueryBuilderPostFilterDropTarget): Promise<void> => {
|
898
|
+
let postFilterConditionState: PostFilterConditionState;
|
899
|
+
try {
|
900
|
+
const columnState = (item as QueryBuilderProjectionColumnDragSource)
|
901
|
+
.columnState;
|
902
|
+
const aggregateColumnState =
|
903
|
+
projectionState.aggregationState.columns.find(
|
904
|
+
(column) => column.projectionColumnState === columnState,
|
905
|
+
);
|
906
|
+
if (
|
907
|
+
!aggregateColumnState &&
|
908
|
+
columnState instanceof QueryBuilderDerivationProjectionColumnState
|
909
|
+
) {
|
910
|
+
await flowResult(columnState.fetchDerivationLambdaReturnType());
|
911
|
+
}
|
912
|
+
postFilterConditionState = new PostFilterConditionState(
|
913
|
+
postFilterState,
|
914
|
+
aggregateColumnState ?? columnState,
|
915
|
+
undefined,
|
916
|
+
undefined,
|
917
|
+
);
|
918
|
+
postFilterConditionState.setValue(
|
919
|
+
postFilterConditionState.operator.getDefaultFilterConditionValue(
|
920
|
+
postFilterConditionState,
|
921
|
+
),
|
922
|
+
);
|
923
|
+
} catch (error) {
|
924
|
+
assertErrorThrown(error);
|
925
|
+
applicationStore.notifyError(error.message);
|
926
|
+
return;
|
927
|
+
}
|
928
|
+
// NOTE: unfocus the current node when DnD a new node to the tree
|
929
|
+
postFilterState.setSelectedNode(undefined);
|
930
|
+
postFilterState.addNodeFromNode(
|
931
|
+
new QueryBuilderPostFilterTreeConditionNodeData(
|
932
|
+
undefined,
|
933
|
+
postFilterConditionState,
|
934
|
+
),
|
935
|
+
undefined,
|
936
|
+
);
|
937
|
+
},
|
938
|
+
[
|
939
|
+
applicationStore,
|
940
|
+
postFilterState,
|
941
|
+
projectionState.aggregationState.columns,
|
942
|
+
],
|
943
|
+
);
|
944
|
+
const [{ isDragOver }, dropTargetConnector] = useDrop<
|
945
|
+
QueryBuilderProjectionColumnDragSource,
|
946
|
+
void,
|
947
|
+
{ isDragOver: boolean }
|
948
|
+
>(
|
949
|
+
() => ({
|
950
|
+
accept: [QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE],
|
951
|
+
drop: (item, monitor): void => {
|
952
|
+
if (!monitor.didDrop()) {
|
953
|
+
handleDrop(item).catch(applicationStore.alertUnhandledError);
|
954
|
+
} // prevent drop event propagation to accomondate for nested DnD
|
955
|
+
},
|
956
|
+
collect: (monitor) => ({
|
957
|
+
isDragOver: monitor.isOver({ shallow: true }),
|
958
|
+
}),
|
959
|
+
}),
|
960
|
+
[applicationStore, handleDrop],
|
961
|
+
);
|
962
|
+
|
963
|
+
return (
|
964
|
+
<div
|
965
|
+
data-testid={QUERY_BUILDER_TEST_ID.QUERY_BUILDER_POST_FILTER}
|
966
|
+
className="panel"
|
967
|
+
>
|
968
|
+
<div className="panel__header">
|
969
|
+
<div className="panel__header__title">
|
970
|
+
<div className="panel__header__title__label">post-filter</div>
|
971
|
+
</div>
|
972
|
+
<div className="panel__header__actions">
|
973
|
+
<button
|
974
|
+
className="panel__header__action"
|
975
|
+
onClick={createCondition}
|
976
|
+
tabIndex={-1}
|
977
|
+
title="Create Condition"
|
978
|
+
>
|
979
|
+
<PlusIcon />
|
980
|
+
</button>
|
981
|
+
<button
|
982
|
+
className="panel__header__action"
|
983
|
+
disabled={
|
984
|
+
!(
|
985
|
+
postFilterState.selectedNode instanceof
|
986
|
+
QueryBuilderPostFilterTreeConditionNodeData
|
987
|
+
)
|
988
|
+
}
|
989
|
+
onClick={newGroupWithCondition}
|
990
|
+
tabIndex={-1}
|
991
|
+
title="Create Group From Condition"
|
992
|
+
>
|
993
|
+
<PlusCircleIcon />
|
994
|
+
</button>
|
995
|
+
<button
|
996
|
+
className="panel__header__action"
|
997
|
+
disabled={!allowGroupCreation}
|
998
|
+
onClick={createGroupCondition}
|
999
|
+
tabIndex={-1}
|
1000
|
+
title="Create Logical Group"
|
1001
|
+
>
|
1002
|
+
<NewFolderIcon />
|
1003
|
+
</button>
|
1004
|
+
<button
|
1005
|
+
className="panel__header__action"
|
1006
|
+
onClick={pruneTree}
|
1007
|
+
tabIndex={-1}
|
1008
|
+
title="Cleanup Tree"
|
1009
|
+
>
|
1010
|
+
<BrushIcon />
|
1011
|
+
</button>
|
1012
|
+
<button
|
1013
|
+
className="panel__header__action"
|
1014
|
+
onClick={simplifyTree}
|
1015
|
+
tabIndex={-1}
|
1016
|
+
title="Simplify Tree"
|
1017
|
+
>
|
1018
|
+
<CircleIcon />
|
1019
|
+
</button>
|
1020
|
+
<button
|
1021
|
+
className="panel__header__action"
|
1022
|
+
onClick={collapseTree}
|
1023
|
+
tabIndex={-1}
|
1024
|
+
title="Collapse Tree"
|
1025
|
+
>
|
1026
|
+
<CompressIcon />
|
1027
|
+
</button>
|
1028
|
+
<button
|
1029
|
+
className="panel__header__action"
|
1030
|
+
onClick={expandTree}
|
1031
|
+
tabIndex={-1}
|
1032
|
+
title="Expand Tree"
|
1033
|
+
>
|
1034
|
+
<ExpandIcon />
|
1035
|
+
</button>
|
1036
|
+
</div>
|
1037
|
+
</div>
|
1038
|
+
<div className="panel__content">
|
1039
|
+
<PanelDropZone
|
1040
|
+
isDragOver={isDragOver}
|
1041
|
+
dropTargetConnector={dropTargetConnector}
|
1042
|
+
>
|
1043
|
+
{postFilterState.isEmpty && (
|
1044
|
+
<BlankPanelPlaceholder
|
1045
|
+
text="Add a post-filter condition"
|
1046
|
+
tooltipText="Drag and drop properties here"
|
1047
|
+
/>
|
1048
|
+
)}
|
1049
|
+
{!postFilterState.isEmpty && (
|
1050
|
+
<>
|
1051
|
+
<DragPreviewLayer
|
1052
|
+
labelGetter={(
|
1053
|
+
item: QueryBuilderPostFilterConditionDragSource,
|
1054
|
+
): string => item.node.dragPreviewLabel}
|
1055
|
+
types={Object.values(QUERY_BUILDER_POST_FILTER_DND_TYPE)}
|
1056
|
+
/>
|
1057
|
+
<QueryBuilderPostFilterTree projectionState={projectionState} />
|
1058
|
+
</>
|
1059
|
+
)}
|
1060
|
+
</PanelDropZone>
|
1061
|
+
</div>
|
1062
|
+
</div>
|
1063
|
+
);
|
1064
|
+
},
|
1065
|
+
);
|
1066
|
+
|
1067
|
+
export const QueryBuilderPostFilterPanel = observer(
|
1068
|
+
(props: { queryBuilderState: QueryBuilderState }) => {
|
1069
|
+
const { queryBuilderState } = props;
|
1070
|
+
const fetchStructureImplementation =
|
1071
|
+
queryBuilderState.fetchStructureState.implementation;
|
1072
|
+
|
1073
|
+
return (
|
1074
|
+
<div
|
1075
|
+
data-testid={QUERY_BUILDER_TEST_ID.QUERY_BUILDER_POST_FILTER}
|
1076
|
+
className="panel"
|
1077
|
+
>
|
1078
|
+
{fetchStructureImplementation instanceof
|
1079
|
+
QueryBuilderProjectionState && (
|
1080
|
+
<QueryBuilderPostFilterPanelContent
|
1081
|
+
projectionState={fetchStructureImplementation}
|
1082
|
+
/>
|
1083
|
+
)}
|
1084
|
+
{!(
|
1085
|
+
fetchStructureImplementation instanceof QueryBuilderProjectionState
|
1086
|
+
) && (
|
1087
|
+
<>
|
1088
|
+
<div className="panel__header">
|
1089
|
+
<div className="panel__header__title">
|
1090
|
+
<div className="panel__header__title__label">post-filter</div>
|
1091
|
+
</div>
|
1092
|
+
</div>
|
1093
|
+
<div className="panel__content">
|
1094
|
+
<BlankPanelContent>
|
1095
|
+
Post-filter is not supported for the current fetch-structure
|
1096
|
+
</BlankPanelContent>
|
1097
|
+
</div>
|
1098
|
+
</>
|
1099
|
+
)}
|
1100
|
+
</div>
|
1101
|
+
);
|
1102
|
+
},
|
1103
|
+
);
|