@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,934 @@
|
|
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 { forwardRef, useEffect, useRef, useState } from 'react';
|
18
|
+
import { observer } from 'mobx-react-lite';
|
19
|
+
import {
|
20
|
+
type TreeNodeContainerProps,
|
21
|
+
type TreeNodeViewProps,
|
22
|
+
type TooltipPlacement,
|
23
|
+
type TreeData,
|
24
|
+
Tooltip,
|
25
|
+
clsx,
|
26
|
+
Dialog,
|
27
|
+
TreeView,
|
28
|
+
BlankPanelContent,
|
29
|
+
DropdownMenu,
|
30
|
+
ContextMenu,
|
31
|
+
MenuContent,
|
32
|
+
MenuContentItem,
|
33
|
+
MenuContentItemIcon,
|
34
|
+
MenuContentItemLabel,
|
35
|
+
StringTypeIcon,
|
36
|
+
ToggleIcon,
|
37
|
+
HashtagIcon,
|
38
|
+
ClockIcon,
|
39
|
+
ChevronDownIcon,
|
40
|
+
ChevronRightIcon,
|
41
|
+
MoreVerticalIcon,
|
42
|
+
CompressIcon,
|
43
|
+
EyeIcon,
|
44
|
+
InfoCircleIcon,
|
45
|
+
PURE_ClassIcon,
|
46
|
+
CheckIcon,
|
47
|
+
SearchIcon,
|
48
|
+
PanelLoadingIndicator,
|
49
|
+
DragPreviewLayer,
|
50
|
+
useDragPreviewLayer,
|
51
|
+
} from '@finos/legend-art';
|
52
|
+
import {
|
53
|
+
type QueryBuilderExplorerTreeDragSource,
|
54
|
+
type QueryBuilderExplorerTreeNodeData,
|
55
|
+
QUERY_BUILDER_EXPLORER_TREE_DND_TYPE,
|
56
|
+
QueryBuilderExplorerTreeRootNodeData,
|
57
|
+
QueryBuilderExplorerTreePropertyNodeData,
|
58
|
+
QueryBuilderExplorerTreeSubTypeNodeData,
|
59
|
+
getQueryBuilderPropertyNodeData,
|
60
|
+
getQueryBuilderSubTypeNodeData,
|
61
|
+
} from '../../stores/explorer/QueryBuilderExplorerState.js';
|
62
|
+
import { useDrag } from 'react-dnd';
|
63
|
+
import { QueryBuilderPropertyInfoTooltip } from '../shared/QueryBuilderPropertyInfoTooltip.js';
|
64
|
+
import type { QueryBuilderState } from '../../stores/QueryBuilderState.js';
|
65
|
+
import { flowResult } from 'mobx';
|
66
|
+
import { prettyPropertyName } from '../../stores/QueryBuilderPropertyEditorState.js';
|
67
|
+
import {
|
68
|
+
type Type,
|
69
|
+
type Multiplicity,
|
70
|
+
type PureModel,
|
71
|
+
Class,
|
72
|
+
DerivedProperty,
|
73
|
+
PrimitiveType,
|
74
|
+
PRIMITIVE_TYPE,
|
75
|
+
Enumeration,
|
76
|
+
TYPE_CAST_TOKEN,
|
77
|
+
getAllClassDerivedProperties,
|
78
|
+
getMultiplicityDescription,
|
79
|
+
getAllClassProperties,
|
80
|
+
getAllOwnClassProperties,
|
81
|
+
isElementDeprecated,
|
82
|
+
} from '@finos/legend-graph';
|
83
|
+
import { useApplicationStore } from '@finos/legend-application';
|
84
|
+
import { getClassPropertyIcon } from '../shared/ElementIconUtils.js';
|
85
|
+
import { QUERY_BUILDER_TEST_ID } from '../QueryBuilder_TestID.js';
|
86
|
+
import { filterByType, guaranteeNonNullable } from '@finos/legend-shared';
|
87
|
+
import { QueryBuilderPropertySearchPanel } from './QueryBuilderPropertySearchPanel.js';
|
88
|
+
|
89
|
+
const checkForDeprecatedNode = (
|
90
|
+
node: QueryBuilderExplorerTreeNodeData,
|
91
|
+
graph: PureModel,
|
92
|
+
treeData: TreeData<QueryBuilderExplorerTreeNodeData>,
|
93
|
+
): boolean => {
|
94
|
+
if (node.type instanceof Class && isElementDeprecated(node.type, graph)) {
|
95
|
+
return true;
|
96
|
+
}
|
97
|
+
if (node instanceof QueryBuilderExplorerTreePropertyNodeData) {
|
98
|
+
if (isElementDeprecated(node.property, graph)) {
|
99
|
+
return true;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
if (node instanceof QueryBuilderExplorerTreeSubTypeNodeData) {
|
103
|
+
const parentNode = treeData.nodes.get(node.parentId);
|
104
|
+
if (
|
105
|
+
parentNode?.type instanceof Class &&
|
106
|
+
isElementDeprecated(parentNode.type, graph)
|
107
|
+
) {
|
108
|
+
return true;
|
109
|
+
}
|
110
|
+
}
|
111
|
+
return false;
|
112
|
+
};
|
113
|
+
|
114
|
+
export const isExplorerTreeNodeAlreadyUsed = (
|
115
|
+
node: QueryBuilderExplorerTreeNodeData,
|
116
|
+
queryBuilderState: QueryBuilderState,
|
117
|
+
): boolean => {
|
118
|
+
// if the fetch-structure is non-empty, it means we can mark the root node as used
|
119
|
+
if (
|
120
|
+
node instanceof QueryBuilderExplorerTreeRootNodeData &&
|
121
|
+
queryBuilderState.fetchStructureState.implementation
|
122
|
+
.usedExplorerTreePropertyNodeIDs.length > 0
|
123
|
+
) {
|
124
|
+
return true;
|
125
|
+
}
|
126
|
+
// in the explorer tree, we represent subtype as a subtree, we want to flatten this to only
|
127
|
+
// the subtype that actually being used to make comparison simpler
|
128
|
+
const simplifiedNodeID = node.id.replaceAll(/(?:@[^.]+)+/g, (val) => {
|
129
|
+
const chunks = val.split(TYPE_CAST_TOKEN);
|
130
|
+
return `${TYPE_CAST_TOKEN}${chunks[chunks.length - 1]}`;
|
131
|
+
});
|
132
|
+
return queryBuilderState.fetchStructureState.implementation.usedExplorerTreePropertyNodeIDs.includes(
|
133
|
+
simplifiedNodeID,
|
134
|
+
);
|
135
|
+
};
|
136
|
+
|
137
|
+
export const QueryBuilderSubclassInfoTooltip: React.FC<{
|
138
|
+
subclass: Class;
|
139
|
+
path: string;
|
140
|
+
isMapped: boolean;
|
141
|
+
children: React.ReactElement;
|
142
|
+
placement?: TooltipPlacement | undefined;
|
143
|
+
multiplicity: Multiplicity;
|
144
|
+
}> = (props) => {
|
145
|
+
const { subclass, path, isMapped, children, placement, multiplicity } = props;
|
146
|
+
return (
|
147
|
+
<Tooltip
|
148
|
+
arrow={true}
|
149
|
+
{...(placement !== undefined ? { placement } : {})}
|
150
|
+
classes={{
|
151
|
+
tooltip: 'query-builder__tooltip',
|
152
|
+
arrow: 'query-builder__tooltip__arrow',
|
153
|
+
tooltipPlacementRight: 'query-builder__tooltip--right',
|
154
|
+
}}
|
155
|
+
TransitionProps={{
|
156
|
+
// disable transition
|
157
|
+
// NOTE: somehow, this is the only workaround we have, if for example
|
158
|
+
// we set `appear = true`, the tooltip will jump out of position
|
159
|
+
timeout: 0,
|
160
|
+
}}
|
161
|
+
title={
|
162
|
+
<div className="query-builder__tooltip__content">
|
163
|
+
<div className="query-builder__tooltip__item">
|
164
|
+
<div className="query-builder__tooltip__item__label">Type</div>
|
165
|
+
<div className="query-builder__tooltip__item__value">
|
166
|
+
{subclass.path}
|
167
|
+
</div>
|
168
|
+
</div>
|
169
|
+
<div className="query-builder__tooltip__item">
|
170
|
+
<div className="query-builder__tooltip__item__label">Path</div>
|
171
|
+
<div className="query-builder__tooltip__item__value">{path}</div>
|
172
|
+
</div>
|
173
|
+
<div className="query-builder__tooltip__item">
|
174
|
+
<div className="query-builder__tooltip__item__label">
|
175
|
+
Multiplicity
|
176
|
+
</div>
|
177
|
+
<div className="query-builder__tooltip__item__value">
|
178
|
+
{getMultiplicityDescription(multiplicity)}
|
179
|
+
</div>
|
180
|
+
</div>
|
181
|
+
<div className="query-builder__tooltip__item">
|
182
|
+
<div className="query-builder__tooltip__item__label">Mapped</div>
|
183
|
+
<div className="query-builder__tooltip__item__value">
|
184
|
+
{isMapped ? 'Yes' : 'No'}
|
185
|
+
</div>
|
186
|
+
</div>
|
187
|
+
</div>
|
188
|
+
}
|
189
|
+
>
|
190
|
+
{children}
|
191
|
+
</Tooltip>
|
192
|
+
);
|
193
|
+
};
|
194
|
+
|
195
|
+
const QueryBuilderExplorerPreviewDataModal = observer(
|
196
|
+
(props: { queryBuilderState: QueryBuilderState }) => {
|
197
|
+
const { queryBuilderState } = props;
|
198
|
+
const previewDataState = queryBuilderState.explorerState.previewDataState;
|
199
|
+
const close = (): void => previewDataState.setPreviewData(undefined);
|
200
|
+
|
201
|
+
return (
|
202
|
+
<Dialog
|
203
|
+
open={Boolean(previewDataState.previewData)}
|
204
|
+
onClose={close}
|
205
|
+
classes={{
|
206
|
+
root: 'editor-modal__root-container',
|
207
|
+
container: 'editor-modal__container',
|
208
|
+
paper: 'editor-modal__content',
|
209
|
+
}}
|
210
|
+
>
|
211
|
+
<div className="modal modal--dark editor-modal query-builder__explorer__preview-data-modal">
|
212
|
+
<div className="modal__header">
|
213
|
+
<div className="modal__title">
|
214
|
+
{prettyPropertyName(previewDataState.propertyName)}
|
215
|
+
</div>
|
216
|
+
</div>
|
217
|
+
<div className="modal__body query-builder__explorer__preview-data-modal__body">
|
218
|
+
{previewDataState.previewData && (
|
219
|
+
<table className="table">
|
220
|
+
<thead>
|
221
|
+
<tr>
|
222
|
+
{previewDataState.previewData.columns.map((column, idx) => (
|
223
|
+
// eslint-disable-next-line react/no-array-index-key
|
224
|
+
<th key={idx} className="table__cell--left">
|
225
|
+
{column}
|
226
|
+
</th>
|
227
|
+
))}
|
228
|
+
</tr>
|
229
|
+
</thead>
|
230
|
+
<tbody>
|
231
|
+
{previewDataState.previewData.rows.map((row, rowIdx) => (
|
232
|
+
// eslint-disable-next-line react/no-array-index-key
|
233
|
+
<tr key={rowIdx}>
|
234
|
+
{row.values.map((value, idx) => (
|
235
|
+
// eslint-disable-next-line react/no-array-index-key
|
236
|
+
<td key={idx} className="table__cell--left">
|
237
|
+
{value}
|
238
|
+
</td>
|
239
|
+
))}
|
240
|
+
</tr>
|
241
|
+
))}
|
242
|
+
</tbody>
|
243
|
+
</table>
|
244
|
+
)}
|
245
|
+
</div>
|
246
|
+
<div className="modal__footer">
|
247
|
+
<button className="btn modal__footer__close-btn" onClick={close}>
|
248
|
+
Close
|
249
|
+
</button>
|
250
|
+
</div>
|
251
|
+
</div>
|
252
|
+
</Dialog>
|
253
|
+
);
|
254
|
+
},
|
255
|
+
);
|
256
|
+
|
257
|
+
const QueryBuilderExplorerContextMenu = observer(
|
258
|
+
forwardRef<
|
259
|
+
HTMLDivElement,
|
260
|
+
{
|
261
|
+
queryBuilderState: QueryBuilderState;
|
262
|
+
openNode: () => void;
|
263
|
+
node: QueryBuilderExplorerTreeNodeData;
|
264
|
+
}
|
265
|
+
>(function QueryBuilderExplorerContextMenu(props, ref) {
|
266
|
+
const { queryBuilderState, openNode, node } = props;
|
267
|
+
const applicationStore = useApplicationStore();
|
268
|
+
const viewType = (): void =>
|
269
|
+
applicationStore.notifyUnsupportedFeature('View Type');
|
270
|
+
const addNodeToFetchStructure = (): void =>
|
271
|
+
queryBuilderState.fetchStructureState.fetchProperty(node);
|
272
|
+
const addNodeChildrenToFetchStructure = (): void => {
|
273
|
+
openNode();
|
274
|
+
if (node.type instanceof Class) {
|
275
|
+
// NOTE: here we require the node to already been expanded so the child nodes are generated
|
276
|
+
// we don't allow adding unopened node. Maybe if it helps, we can show a warning.
|
277
|
+
const nodesToAdd = node.childrenIds
|
278
|
+
.map((childId) =>
|
279
|
+
queryBuilderState.explorerState.nonNullableTreeData.nodes.get(
|
280
|
+
childId,
|
281
|
+
),
|
282
|
+
)
|
283
|
+
.filter(filterByType(QueryBuilderExplorerTreePropertyNodeData))
|
284
|
+
.filter(
|
285
|
+
(childNode) =>
|
286
|
+
!(childNode.type instanceof Class) &&
|
287
|
+
childNode.mappingData.mapped,
|
288
|
+
);
|
289
|
+
nodesToAdd.forEach((nodeToAdd) =>
|
290
|
+
queryBuilderState.fetchStructureState.fetchProperty(nodeToAdd),
|
291
|
+
);
|
292
|
+
}
|
293
|
+
};
|
294
|
+
|
295
|
+
return (
|
296
|
+
<MenuContent ref={ref}>
|
297
|
+
{node instanceof QueryBuilderExplorerTreePropertyNodeData &&
|
298
|
+
!(node.type instanceof Class) && (
|
299
|
+
<MenuContentItem onClick={addNodeToFetchStructure}>
|
300
|
+
Add Property to Fetch Structure
|
301
|
+
</MenuContentItem>
|
302
|
+
)}
|
303
|
+
{node.type instanceof Class && (
|
304
|
+
<MenuContentItem onClick={addNodeChildrenToFetchStructure}>
|
305
|
+
Add Properties to Fetch Structure
|
306
|
+
</MenuContentItem>
|
307
|
+
)}
|
308
|
+
<MenuContentItem onClick={viewType}>View Type</MenuContentItem>
|
309
|
+
</MenuContent>
|
310
|
+
);
|
311
|
+
}),
|
312
|
+
);
|
313
|
+
|
314
|
+
export const renderPropertyTypeIcon = (type: Type): React.ReactNode => {
|
315
|
+
if (type instanceof PrimitiveType) {
|
316
|
+
if (type.name === PRIMITIVE_TYPE.STRING) {
|
317
|
+
return (
|
318
|
+
<StringTypeIcon className="query-builder-explorer-tree__icon query-builder-explorer-tree__icon__string" />
|
319
|
+
);
|
320
|
+
} else if (type.name === PRIMITIVE_TYPE.BOOLEAN) {
|
321
|
+
return (
|
322
|
+
<ToggleIcon className="query-builder-explorer-tree__icon query-builder-explorer-tree__icon__boolean" />
|
323
|
+
);
|
324
|
+
} else if (
|
325
|
+
type.name === PRIMITIVE_TYPE.NUMBER ||
|
326
|
+
type.name === PRIMITIVE_TYPE.INTEGER ||
|
327
|
+
type.name === PRIMITIVE_TYPE.FLOAT ||
|
328
|
+
type.name === PRIMITIVE_TYPE.DECIMAL
|
329
|
+
) {
|
330
|
+
return (
|
331
|
+
<HashtagIcon className="query-builder-explorer-tree__icon query-builder-explorer-tree__icon__number" />
|
332
|
+
);
|
333
|
+
} else if (
|
334
|
+
type.name === PRIMITIVE_TYPE.DATE ||
|
335
|
+
type.name === PRIMITIVE_TYPE.DATETIME ||
|
336
|
+
type.name === PRIMITIVE_TYPE.STRICTDATE
|
337
|
+
) {
|
338
|
+
return (
|
339
|
+
<ClockIcon className="query-builder-explorer-tree__icon query-builder-explorer-tree__icon__time" />
|
340
|
+
);
|
341
|
+
}
|
342
|
+
}
|
343
|
+
return getClassPropertyIcon(type);
|
344
|
+
};
|
345
|
+
|
346
|
+
const QueryBuilderExplorerTreeNodeContainer = observer(
|
347
|
+
(
|
348
|
+
props: TreeNodeContainerProps<
|
349
|
+
QueryBuilderExplorerTreeNodeData,
|
350
|
+
{
|
351
|
+
queryBuilderState: QueryBuilderState;
|
352
|
+
}
|
353
|
+
>,
|
354
|
+
) => {
|
355
|
+
const { node, level, stepPaddingInRem, onNodeSelect, innerProps } = props;
|
356
|
+
const { queryBuilderState } = innerProps;
|
357
|
+
const [isSelectedFromContextMenu, setIsSelectedFromContextMenu] =
|
358
|
+
useState(false);
|
359
|
+
const applicationStore = useApplicationStore();
|
360
|
+
const explorerState = queryBuilderState.explorerState;
|
361
|
+
const [, dragConnector, dragPreviewConnector] = useDrag<{
|
362
|
+
node?: QueryBuilderExplorerTreePropertyNodeData;
|
363
|
+
}>(
|
364
|
+
() => ({
|
365
|
+
type:
|
366
|
+
node instanceof QueryBuilderExplorerTreePropertyNodeData
|
367
|
+
? node.type instanceof Enumeration
|
368
|
+
? QUERY_BUILDER_EXPLORER_TREE_DND_TYPE.ENUM_PROPERTY
|
369
|
+
: node.type instanceof Class
|
370
|
+
? QUERY_BUILDER_EXPLORER_TREE_DND_TYPE.CLASS_PROPERTY
|
371
|
+
: QUERY_BUILDER_EXPLORER_TREE_DND_TYPE.PRIMITIVE_PROPERTY
|
372
|
+
: QUERY_BUILDER_EXPLORER_TREE_DND_TYPE.ROOT,
|
373
|
+
item: () =>
|
374
|
+
node instanceof QueryBuilderExplorerTreePropertyNodeData
|
375
|
+
? { node }
|
376
|
+
: {},
|
377
|
+
}),
|
378
|
+
[node],
|
379
|
+
);
|
380
|
+
useDragPreviewLayer(dragPreviewConnector);
|
381
|
+
|
382
|
+
const isExpandable = Boolean(node.childrenIds.length);
|
383
|
+
const isDerivedProperty =
|
384
|
+
node instanceof QueryBuilderExplorerTreePropertyNodeData &&
|
385
|
+
node.property instanceof DerivedProperty;
|
386
|
+
const isMultiple =
|
387
|
+
(node instanceof QueryBuilderExplorerTreePropertyNodeData &&
|
388
|
+
(node.property.multiplicity.upperBound === undefined ||
|
389
|
+
node.property.multiplicity.upperBound > 1)) ||
|
390
|
+
(node instanceof QueryBuilderExplorerTreeSubTypeNodeData &&
|
391
|
+
(node.multiplicity.upperBound === undefined ||
|
392
|
+
node.multiplicity.upperBound > 1));
|
393
|
+
const allowPreview =
|
394
|
+
node.mappingData.mapped &&
|
395
|
+
node instanceof QueryBuilderExplorerTreePropertyNodeData &&
|
396
|
+
node.type instanceof PrimitiveType &&
|
397
|
+
!node.isPartOfDerivedPropertyBranch;
|
398
|
+
const nodeExpandIcon = isExpandable ? (
|
399
|
+
node.isOpen ? (
|
400
|
+
<ChevronDownIcon />
|
401
|
+
) : (
|
402
|
+
<ChevronRightIcon />
|
403
|
+
)
|
404
|
+
) : (
|
405
|
+
<div />
|
406
|
+
);
|
407
|
+
const selectNode = (): void => onNodeSelect?.(node);
|
408
|
+
const openNode = (): void => {
|
409
|
+
if (!node.isOpen) {
|
410
|
+
onNodeSelect?.(node);
|
411
|
+
}
|
412
|
+
};
|
413
|
+
// context menu
|
414
|
+
const showContextMenu =
|
415
|
+
node instanceof QueryBuilderExplorerTreeRootNodeData ||
|
416
|
+
(node instanceof QueryBuilderExplorerTreePropertyNodeData &&
|
417
|
+
!(node.type instanceof PrimitiveType));
|
418
|
+
const onContextMenuOpen = (): void => setIsSelectedFromContextMenu(true);
|
419
|
+
const onContextMenuClose = (): void => setIsSelectedFromContextMenu(false);
|
420
|
+
const previewData = (): void => {
|
421
|
+
if (node instanceof QueryBuilderExplorerTreePropertyNodeData) {
|
422
|
+
flowResult(explorerState.previewData(node)).catch(
|
423
|
+
applicationStore.alertUnhandledError,
|
424
|
+
);
|
425
|
+
}
|
426
|
+
};
|
427
|
+
|
428
|
+
if (
|
429
|
+
!node.mappingData.mapped &&
|
430
|
+
// NOTE: we always want to show at least the root node
|
431
|
+
!(node instanceof QueryBuilderExplorerTreeRootNodeData) &&
|
432
|
+
!explorerState.showUnmappedProperties
|
433
|
+
) {
|
434
|
+
return null;
|
435
|
+
}
|
436
|
+
return (
|
437
|
+
<ContextMenu
|
438
|
+
content={
|
439
|
+
<QueryBuilderExplorerContextMenu
|
440
|
+
queryBuilderState={queryBuilderState}
|
441
|
+
openNode={openNode}
|
442
|
+
node={node}
|
443
|
+
/>
|
444
|
+
}
|
445
|
+
disabled={!showContextMenu || queryBuilderState.backdrop}
|
446
|
+
menuProps={{ elevation: 7 }}
|
447
|
+
onOpen={onContextMenuOpen}
|
448
|
+
onClose={onContextMenuClose}
|
449
|
+
>
|
450
|
+
<div
|
451
|
+
className={clsx(
|
452
|
+
'tree-view__node__container query-builder-explorer-tree__node__container',
|
453
|
+
{
|
454
|
+
'query-builder-explorer-tree__node__container--selected-from-context-menu':
|
455
|
+
isSelectedFromContextMenu,
|
456
|
+
'query-builder-explorer-tree__node__container--unmapped':
|
457
|
+
!node.mappingData.mapped,
|
458
|
+
'query-builder-explorer-tree__node__container--selected':
|
459
|
+
node.isSelected,
|
460
|
+
|
461
|
+
'query-builder-explorer-tree__node__container--highlighted':
|
462
|
+
explorerState.highlightUsedProperties &&
|
463
|
+
isExplorerTreeNodeAlreadyUsed(node, queryBuilderState),
|
464
|
+
},
|
465
|
+
)}
|
466
|
+
title={
|
467
|
+
!node.mappingData.mapped
|
468
|
+
? node instanceof QueryBuilderExplorerTreeRootNodeData
|
469
|
+
? 'Root class is not mapped'
|
470
|
+
: 'Property is not mapped'
|
471
|
+
: undefined
|
472
|
+
}
|
473
|
+
onClick={selectNode}
|
474
|
+
ref={
|
475
|
+
node.mappingData.mapped && !isExpandable ? dragConnector : undefined
|
476
|
+
}
|
477
|
+
style={{
|
478
|
+
paddingLeft: `${(level - 1) * (stepPaddingInRem ?? 1) + 0.5}rem`,
|
479
|
+
display: 'flex',
|
480
|
+
}}
|
481
|
+
>
|
482
|
+
{node instanceof QueryBuilderExplorerTreeRootNodeData && (
|
483
|
+
<>
|
484
|
+
<div className="tree-view__node__icon query-builder-explorer-tree__node__icon">
|
485
|
+
<div className="query-builder-explorer-tree__expand-icon">
|
486
|
+
{nodeExpandIcon}
|
487
|
+
</div>
|
488
|
+
<div className="query-builder-explorer-tree__type-icon">
|
489
|
+
<PURE_ClassIcon />
|
490
|
+
</div>
|
491
|
+
</div>
|
492
|
+
<div className="tree-view__node__label query-builder-explorer-tree__node__label">
|
493
|
+
{node.label}
|
494
|
+
</div>
|
495
|
+
</>
|
496
|
+
)}
|
497
|
+
{(node instanceof QueryBuilderExplorerTreePropertyNodeData ||
|
498
|
+
node instanceof QueryBuilderExplorerTreeSubTypeNodeData) && (
|
499
|
+
<>
|
500
|
+
<div className="tree-view__node__icon query-builder-explorer-tree__node__icon">
|
501
|
+
<div className="query-builder-explorer-tree__expand-icon">
|
502
|
+
{nodeExpandIcon}
|
503
|
+
</div>
|
504
|
+
<div className="query-builder-explorer-tree__type-icon">
|
505
|
+
{renderPropertyTypeIcon(node.type)}
|
506
|
+
</div>
|
507
|
+
</div>
|
508
|
+
<div
|
509
|
+
className={clsx(
|
510
|
+
'tree-view__node__label query-builder-explorer-tree__node__label query-builder-explorer-tree__node__label--with-action',
|
511
|
+
{
|
512
|
+
'query-builder-explorer-tree__node__label--with-preview':
|
513
|
+
allowPreview,
|
514
|
+
},
|
515
|
+
)}
|
516
|
+
>
|
517
|
+
<div
|
518
|
+
className={clsx(
|
519
|
+
'query-builder-explorer-tree__node__label--property__name',
|
520
|
+
{
|
521
|
+
'query-builder-explorer-tree__node__label--deprecated':
|
522
|
+
checkForDeprecatedNode(
|
523
|
+
node,
|
524
|
+
explorerState.queryBuilderState.graphManagerState
|
525
|
+
.graph,
|
526
|
+
explorerState.nonNullableTreeData,
|
527
|
+
),
|
528
|
+
},
|
529
|
+
)}
|
530
|
+
>
|
531
|
+
{explorerState.humanizePropertyName
|
532
|
+
? node instanceof QueryBuilderExplorerTreeSubTypeNodeData
|
533
|
+
? TYPE_CAST_TOKEN + prettyPropertyName(node.label)
|
534
|
+
: prettyPropertyName(node.label)
|
535
|
+
: node instanceof QueryBuilderExplorerTreeSubTypeNodeData
|
536
|
+
? TYPE_CAST_TOKEN + node.label
|
537
|
+
: node.label}
|
538
|
+
</div>
|
539
|
+
{isDerivedProperty && (
|
540
|
+
<div
|
541
|
+
className="query-builder-explorer-tree__node__label__derived-property"
|
542
|
+
title="Property is derived and may require user to specify parameter values"
|
543
|
+
>
|
544
|
+
(...)
|
545
|
+
</div>
|
546
|
+
)}
|
547
|
+
{isMultiple && (
|
548
|
+
<div
|
549
|
+
className="query-builder-explorer-tree__node__label__multiple"
|
550
|
+
title="Multiple values of this property can cause row explosion"
|
551
|
+
>
|
552
|
+
*
|
553
|
+
</div>
|
554
|
+
)}
|
555
|
+
</div>
|
556
|
+
<div className="query-builder-explorer-tree__node__actions">
|
557
|
+
{allowPreview && (
|
558
|
+
<button
|
559
|
+
className="query-builder-explorer-tree__node__action"
|
560
|
+
disabled={
|
561
|
+
explorerState.previewDataState.isGeneratingPreviewData
|
562
|
+
}
|
563
|
+
tabIndex={-1}
|
564
|
+
title="Preview Data"
|
565
|
+
onClick={previewData}
|
566
|
+
>
|
567
|
+
<EyeIcon />
|
568
|
+
</button>
|
569
|
+
)}
|
570
|
+
{node instanceof QueryBuilderExplorerTreePropertyNodeData && (
|
571
|
+
<QueryBuilderPropertyInfoTooltip
|
572
|
+
property={node.property}
|
573
|
+
path={node.id}
|
574
|
+
isMapped={node.mappingData.mapped}
|
575
|
+
>
|
576
|
+
<div className="query-builder-explorer-tree__node__action query-builder-explorer-tree__node__info">
|
577
|
+
<InfoCircleIcon />
|
578
|
+
</div>
|
579
|
+
</QueryBuilderPropertyInfoTooltip>
|
580
|
+
)}
|
581
|
+
{node instanceof QueryBuilderExplorerTreeSubTypeNodeData && (
|
582
|
+
<QueryBuilderSubclassInfoTooltip
|
583
|
+
subclass={node.subclass}
|
584
|
+
path={node.id}
|
585
|
+
isMapped={node.mappingData.mapped}
|
586
|
+
multiplicity={node.multiplicity}
|
587
|
+
>
|
588
|
+
<div className="query-builder-explorer-tree__node__action query-builder-explorer-tree__node__info">
|
589
|
+
<InfoCircleIcon />
|
590
|
+
</div>
|
591
|
+
</QueryBuilderSubclassInfoTooltip>
|
592
|
+
)}
|
593
|
+
</div>
|
594
|
+
</>
|
595
|
+
)}
|
596
|
+
</div>
|
597
|
+
</ContextMenu>
|
598
|
+
);
|
599
|
+
},
|
600
|
+
);
|
601
|
+
|
602
|
+
const QueryBuilderExplorerTreeNodeView = observer(
|
603
|
+
(
|
604
|
+
props: TreeNodeViewProps<
|
605
|
+
QueryBuilderExplorerTreeNodeData,
|
606
|
+
{
|
607
|
+
queryBuilderState: QueryBuilderState;
|
608
|
+
}
|
609
|
+
>,
|
610
|
+
) => {
|
611
|
+
const {
|
612
|
+
node,
|
613
|
+
level,
|
614
|
+
onNodeSelect,
|
615
|
+
getChildNodes,
|
616
|
+
stepPaddingInRem,
|
617
|
+
innerProps,
|
618
|
+
} = props;
|
619
|
+
const { queryBuilderState } = innerProps;
|
620
|
+
|
621
|
+
if (
|
622
|
+
!node.mappingData.mapped &&
|
623
|
+
// NOTE: we always want to show at least the root node
|
624
|
+
!(node instanceof QueryBuilderExplorerTreeRootNodeData) &&
|
625
|
+
!queryBuilderState.explorerState.showUnmappedProperties
|
626
|
+
) {
|
627
|
+
return null;
|
628
|
+
}
|
629
|
+
return (
|
630
|
+
<div className="tree-view__node__block">
|
631
|
+
<QueryBuilderExplorerTreeNodeContainer
|
632
|
+
node={node}
|
633
|
+
level={level + 1}
|
634
|
+
stepPaddingInRem={stepPaddingInRem}
|
635
|
+
onNodeSelect={onNodeSelect}
|
636
|
+
innerProps={innerProps}
|
637
|
+
/>
|
638
|
+
{node.isOpen &&
|
639
|
+
getChildNodes(node).map((childNode) => (
|
640
|
+
<QueryBuilderExplorerTreeNodeView
|
641
|
+
key={childNode.id}
|
642
|
+
node={childNode}
|
643
|
+
level={level + 1}
|
644
|
+
onNodeSelect={onNodeSelect}
|
645
|
+
getChildNodes={getChildNodes}
|
646
|
+
innerProps={innerProps}
|
647
|
+
/>
|
648
|
+
))}
|
649
|
+
</div>
|
650
|
+
);
|
651
|
+
},
|
652
|
+
);
|
653
|
+
|
654
|
+
/**
|
655
|
+
* Sort order for Query Builder tree nodes will be ranked by return type as followed:
|
656
|
+
* 1. Primitive
|
657
|
+
* 2. Enumeration
|
658
|
+
* 3. Class
|
659
|
+
* 4. Class Subtypes
|
660
|
+
* Note: Derived property nodes will be ranked lower for each relevant return type
|
661
|
+
*/
|
662
|
+
const getQueryBuilderExplorerTreeNodeSortRank = (
|
663
|
+
node: QueryBuilderExplorerTreeNodeData,
|
664
|
+
): number => {
|
665
|
+
if (node instanceof QueryBuilderExplorerTreeSubTypeNodeData) {
|
666
|
+
return 0;
|
667
|
+
} else if (node.type instanceof Class) {
|
668
|
+
return node.isPartOfDerivedPropertyBranch ? 1 : 2;
|
669
|
+
} else if (node.type instanceof Enumeration) {
|
670
|
+
return node.isPartOfDerivedPropertyBranch ? 3 : 4;
|
671
|
+
} else {
|
672
|
+
return node.isPartOfDerivedPropertyBranch ? 5 : 6;
|
673
|
+
}
|
674
|
+
};
|
675
|
+
|
676
|
+
const QueryBuilderExplorerTree = observer(
|
677
|
+
(props: { queryBuilderState: QueryBuilderState }) => {
|
678
|
+
const { queryBuilderState } = props;
|
679
|
+
const explorerState = queryBuilderState.explorerState;
|
680
|
+
const treeData = explorerState.nonNullableTreeData;
|
681
|
+
const onNodeSelect = (node: QueryBuilderExplorerTreeNodeData): void => {
|
682
|
+
if (node.childrenIds.length) {
|
683
|
+
node.isOpen = !node.isOpen;
|
684
|
+
if (
|
685
|
+
node.isOpen &&
|
686
|
+
(node instanceof QueryBuilderExplorerTreePropertyNodeData ||
|
687
|
+
node instanceof QueryBuilderExplorerTreeSubTypeNodeData) &&
|
688
|
+
node.type instanceof Class
|
689
|
+
) {
|
690
|
+
(node instanceof QueryBuilderExplorerTreeSubTypeNodeData
|
691
|
+
? getAllOwnClassProperties(node.type)
|
692
|
+
: getAllClassProperties(node.type).concat(
|
693
|
+
getAllClassDerivedProperties(node.type),
|
694
|
+
)
|
695
|
+
).forEach((property) => {
|
696
|
+
const propertyTreeNodeData = getQueryBuilderPropertyNodeData(
|
697
|
+
property,
|
698
|
+
node,
|
699
|
+
guaranteeNonNullable(
|
700
|
+
explorerState.mappingModelCoverageAnalysisResult,
|
701
|
+
),
|
702
|
+
);
|
703
|
+
if (propertyTreeNodeData) {
|
704
|
+
treeData.nodes.set(propertyTreeNodeData.id, propertyTreeNodeData);
|
705
|
+
}
|
706
|
+
});
|
707
|
+
node.type._subclasses.forEach((subclass) => {
|
708
|
+
const subTypeTreeNodeData = getQueryBuilderSubTypeNodeData(
|
709
|
+
subclass,
|
710
|
+
node,
|
711
|
+
guaranteeNonNullable(
|
712
|
+
explorerState.mappingModelCoverageAnalysisResult,
|
713
|
+
),
|
714
|
+
);
|
715
|
+
treeData.nodes.set(subTypeTreeNodeData.id, subTypeTreeNodeData);
|
716
|
+
});
|
717
|
+
}
|
718
|
+
}
|
719
|
+
explorerState.refreshTree();
|
720
|
+
};
|
721
|
+
const getChildNodes = (
|
722
|
+
node: QueryBuilderExplorerTreeNodeData,
|
723
|
+
): QueryBuilderExplorerTreeNodeData[] =>
|
724
|
+
node.childrenIds
|
725
|
+
.map((id) => treeData.nodes.get(id))
|
726
|
+
.filter(
|
727
|
+
(
|
728
|
+
childNode,
|
729
|
+
): childNode is
|
730
|
+
| QueryBuilderExplorerTreePropertyNodeData
|
731
|
+
| QueryBuilderExplorerTreeSubTypeNodeData =>
|
732
|
+
childNode instanceof QueryBuilderExplorerTreeSubTypeNodeData ||
|
733
|
+
childNode instanceof QueryBuilderExplorerTreePropertyNodeData,
|
734
|
+
)
|
735
|
+
// simple properties come first
|
736
|
+
.sort((a, b) => a.label.localeCompare(b.label))
|
737
|
+
.sort(
|
738
|
+
(a, b) =>
|
739
|
+
getQueryBuilderExplorerTreeNodeSortRank(b) -
|
740
|
+
getQueryBuilderExplorerTreeNodeSortRank(a),
|
741
|
+
);
|
742
|
+
|
743
|
+
return (
|
744
|
+
<TreeView
|
745
|
+
components={{
|
746
|
+
TreeNodeContainer: QueryBuilderExplorerTreeNodeContainer,
|
747
|
+
TreeNodeView: QueryBuilderExplorerTreeNodeView,
|
748
|
+
}}
|
749
|
+
className="query-builder-explorer-tree__root"
|
750
|
+
treeData={treeData}
|
751
|
+
onNodeSelect={onNodeSelect}
|
752
|
+
getChildNodes={getChildNodes}
|
753
|
+
innerProps={{
|
754
|
+
queryBuilderState,
|
755
|
+
}}
|
756
|
+
/>
|
757
|
+
);
|
758
|
+
},
|
759
|
+
);
|
760
|
+
|
761
|
+
export const QueryBuilderExplorerPanel = observer(
|
762
|
+
(props: { queryBuilderState: QueryBuilderState }) => {
|
763
|
+
const { queryBuilderState } = props;
|
764
|
+
const searchButtonRef = useRef<HTMLButtonElement>(null);
|
765
|
+
const explorerState = queryBuilderState.explorerState;
|
766
|
+
const propertySearchPanelState = explorerState.propertySearchState;
|
767
|
+
const applicationStore = useApplicationStore();
|
768
|
+
const collapseTree = (): void => {
|
769
|
+
if (explorerState.treeData) {
|
770
|
+
Array.from(explorerState.treeData.nodes.values()).forEach((node) => {
|
771
|
+
node.isOpen = false;
|
772
|
+
});
|
773
|
+
explorerState.refreshTree();
|
774
|
+
}
|
775
|
+
};
|
776
|
+
const toggleShowUnmappedProperties = (): void =>
|
777
|
+
explorerState.setShowUnmappedProperties(
|
778
|
+
!explorerState.showUnmappedProperties,
|
779
|
+
);
|
780
|
+
const toggleHumanizePropertyName = (): void =>
|
781
|
+
explorerState.setHumanizePropertyName(
|
782
|
+
!explorerState.humanizePropertyName,
|
783
|
+
);
|
784
|
+
const toggleHighlightUsedProperties = (): void =>
|
785
|
+
explorerState.setHighlightUsedProperties(
|
786
|
+
!explorerState.highlightUsedProperties,
|
787
|
+
);
|
788
|
+
const togglePropertySearch = (): void => {
|
789
|
+
if (explorerState.treeData) {
|
790
|
+
if (!propertySearchPanelState.isSearchPanelOpen) {
|
791
|
+
propertySearchPanelState.setIsSearchPanelOpen(true);
|
792
|
+
if (!propertySearchPanelState.allMappedPropertyNodes.length) {
|
793
|
+
propertySearchPanelState.fetchAllPropertyNodes();
|
794
|
+
}
|
795
|
+
} else {
|
796
|
+
propertySearchPanelState.setIsSearchPanelOpen(false);
|
797
|
+
}
|
798
|
+
}
|
799
|
+
};
|
800
|
+
|
801
|
+
useEffect(() => {
|
802
|
+
flowResult(explorerState.analyzeMappingModelCoverage()).catch(
|
803
|
+
applicationStore.alertUnhandledError,
|
804
|
+
);
|
805
|
+
}, [applicationStore, explorerState, queryBuilderState.mapping]);
|
806
|
+
|
807
|
+
return (
|
808
|
+
<div
|
809
|
+
data-testid={QUERY_BUILDER_TEST_ID.QUERY_BUILDER_EXPLORER}
|
810
|
+
className={clsx('panel query-builder__explorer', {
|
811
|
+
backdrop__element: queryBuilderState.backdrop,
|
812
|
+
})}
|
813
|
+
>
|
814
|
+
<div className="panel__header">
|
815
|
+
<div className="panel__header__title">
|
816
|
+
<div className="panel__header__title__label">explorer</div>
|
817
|
+
</div>
|
818
|
+
<div className="panel__header__actions">
|
819
|
+
<button
|
820
|
+
ref={searchButtonRef}
|
821
|
+
className={clsx('panel__header__action', {
|
822
|
+
'query-builder__explorer__header__action--active':
|
823
|
+
propertySearchPanelState.isSearchPanelOpen,
|
824
|
+
})}
|
825
|
+
onClick={togglePropertySearch}
|
826
|
+
tabIndex={-1}
|
827
|
+
title="Toggle property search"
|
828
|
+
>
|
829
|
+
<SearchIcon />
|
830
|
+
</button>
|
831
|
+
<button
|
832
|
+
className="panel__header__action"
|
833
|
+
onClick={collapseTree}
|
834
|
+
tabIndex={-1}
|
835
|
+
title="Collapse Tree"
|
836
|
+
>
|
837
|
+
<CompressIcon />
|
838
|
+
</button>
|
839
|
+
<DropdownMenu
|
840
|
+
className="panel__header__action"
|
841
|
+
content={
|
842
|
+
<MenuContent>
|
843
|
+
<MenuContentItem onClick={toggleShowUnmappedProperties}>
|
844
|
+
<MenuContentItemIcon>
|
845
|
+
{explorerState.showUnmappedProperties ? (
|
846
|
+
<CheckIcon />
|
847
|
+
) : null}
|
848
|
+
</MenuContentItemIcon>
|
849
|
+
<MenuContentItemLabel>
|
850
|
+
Show Unmapped Properties
|
851
|
+
</MenuContentItemLabel>
|
852
|
+
</MenuContentItem>
|
853
|
+
<MenuContentItem onClick={toggleHumanizePropertyName}>
|
854
|
+
<MenuContentItemIcon>
|
855
|
+
{explorerState.humanizePropertyName ? (
|
856
|
+
<CheckIcon />
|
857
|
+
) : null}
|
858
|
+
</MenuContentItemIcon>
|
859
|
+
<MenuContentItemLabel>
|
860
|
+
Humanize Property Name
|
861
|
+
</MenuContentItemLabel>
|
862
|
+
</MenuContentItem>
|
863
|
+
<MenuContentItem onClick={toggleHighlightUsedProperties}>
|
864
|
+
<MenuContentItemIcon>
|
865
|
+
{explorerState.highlightUsedProperties ? (
|
866
|
+
<CheckIcon />
|
867
|
+
) : null}
|
868
|
+
</MenuContentItemIcon>
|
869
|
+
<MenuContentItemLabel>
|
870
|
+
Highlight already used properties
|
871
|
+
</MenuContentItemLabel>
|
872
|
+
</MenuContentItem>
|
873
|
+
</MenuContent>
|
874
|
+
}
|
875
|
+
menuProps={{
|
876
|
+
anchorOrigin: { vertical: 'bottom', horizontal: 'left' },
|
877
|
+
transformOrigin: { vertical: 'top', horizontal: 'left' },
|
878
|
+
elevation: 7,
|
879
|
+
}}
|
880
|
+
>
|
881
|
+
<MoreVerticalIcon
|
882
|
+
title="Show Options Menu..."
|
883
|
+
className="query-builder__icon__more-options"
|
884
|
+
/>
|
885
|
+
</DropdownMenu>
|
886
|
+
</div>
|
887
|
+
{propertySearchPanelState.isSearchPanelOpen && (
|
888
|
+
<QueryBuilderPropertySearchPanel
|
889
|
+
queryBuilderState={queryBuilderState}
|
890
|
+
triggerElement={searchButtonRef.current}
|
891
|
+
/>
|
892
|
+
)}
|
893
|
+
</div>
|
894
|
+
<div className="panel__content query-builder-explorer-tree__content">
|
895
|
+
<PanelLoadingIndicator
|
896
|
+
isLoading={
|
897
|
+
explorerState.mappingModelCoverageAnalysisState.isInProgress
|
898
|
+
}
|
899
|
+
/>
|
900
|
+
<DragPreviewLayer
|
901
|
+
labelGetter={(item: QueryBuilderExplorerTreeDragSource): string =>
|
902
|
+
explorerState.humanizePropertyName
|
903
|
+
? prettyPropertyName(item.node.label)
|
904
|
+
: item.node.label
|
905
|
+
}
|
906
|
+
types={Object.values(QUERY_BUILDER_EXPLORER_TREE_DND_TYPE)}
|
907
|
+
/>
|
908
|
+
{explorerState.mappingModelCoverageAnalysisState.isInProgress ? (
|
909
|
+
<BlankPanelContent>
|
910
|
+
{explorerState.mappingModelCoverageAnalysisState.message}
|
911
|
+
</BlankPanelContent>
|
912
|
+
) : (
|
913
|
+
<>
|
914
|
+
{!explorerState.treeData && (
|
915
|
+
<BlankPanelContent>
|
916
|
+
Specify the class, mapping, and runtime to start building
|
917
|
+
query
|
918
|
+
</BlankPanelContent>
|
919
|
+
)}
|
920
|
+
{explorerState.treeData && (
|
921
|
+
<QueryBuilderExplorerTree
|
922
|
+
queryBuilderState={queryBuilderState}
|
923
|
+
/>
|
924
|
+
)}
|
925
|
+
</>
|
926
|
+
)}
|
927
|
+
<QueryBuilderExplorerPreviewDataModal
|
928
|
+
queryBuilderState={queryBuilderState}
|
929
|
+
/>
|
930
|
+
</div>
|
931
|
+
</div>
|
932
|
+
);
|
933
|
+
},
|
934
|
+
);
|