@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,242 @@
|
|
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
|
+
import { Class, getAllOwnClassProperties, getAllClassProperties, getAllClassDerivedProperties, PrimitiveType, PRIMITIVE_TYPE, } from '@finos/legend-graph';
|
17
|
+
import { addUniqueEntry, deleteEntry, guaranteeNonNullable, } from '@finos/legend-shared';
|
18
|
+
import { makeAutoObservable, observable, computed, action } from 'mobx';
|
19
|
+
import { QUERY_BUILDER_PROPERTY_SEARCH_MAX_DEPTH, QUERY_BUILDER_PROPERTY_SEARCH_RESULTS_LIMIT, QUERY_BUILDER_PROPERTY_SEARCH_TYPE, } from '../QueryBuilderConfig.js';
|
20
|
+
import { getQueryBuilderPropertyNodeData, getQueryBuilderSubTypeNodeData, QueryBuilderExplorerTreePropertyNodeData, QueryBuilderExplorerTreeSubTypeNodeData, } from './QueryBuilderExplorerState.js';
|
21
|
+
export class QueryBuilderPropertySearchState {
|
22
|
+
queryBuilderState;
|
23
|
+
// TODO: Check if we could clean this up as this seems quite complicated and its purpose is not clear to me
|
24
|
+
// See https://github.com/finos/legend-studio/pull/1212
|
25
|
+
allMappedPropertyNodes = [];
|
26
|
+
searchedMappedPropertyNodes = [];
|
27
|
+
isSearchPanelOpen = false;
|
28
|
+
isSearchPanelHidden = false;
|
29
|
+
searchText = '';
|
30
|
+
filterByMultiple;
|
31
|
+
typeFilters;
|
32
|
+
constructor(queryBuilderState) {
|
33
|
+
makeAutoObservable(this, {
|
34
|
+
queryBuilderState: false,
|
35
|
+
searchedMappedPropertyNodes: observable,
|
36
|
+
isSearchPanelOpen: observable,
|
37
|
+
isSearchPanelHidden: observable,
|
38
|
+
searchText: observable,
|
39
|
+
filteredPropertyNodes: computed,
|
40
|
+
setSearchText: action,
|
41
|
+
setSearchedMappedPropertyNodes: action,
|
42
|
+
setIsSearchPanelOpen: action,
|
43
|
+
setIsSearchPanelHidden: action,
|
44
|
+
refreshPropertyState: action,
|
45
|
+
setFilterByMultiple: action,
|
46
|
+
toggleTypeFilter: action,
|
47
|
+
});
|
48
|
+
this.queryBuilderState = queryBuilderState;
|
49
|
+
this.filterByMultiple = true;
|
50
|
+
this.typeFilters = [
|
51
|
+
QUERY_BUILDER_PROPERTY_SEARCH_TYPE.CLASS,
|
52
|
+
QUERY_BUILDER_PROPERTY_SEARCH_TYPE.STRING,
|
53
|
+
QUERY_BUILDER_PROPERTY_SEARCH_TYPE.BOOLEAN,
|
54
|
+
QUERY_BUILDER_PROPERTY_SEARCH_TYPE.NUMBER,
|
55
|
+
QUERY_BUILDER_PROPERTY_SEARCH_TYPE.DATE,
|
56
|
+
];
|
57
|
+
}
|
58
|
+
toggleTypeFilter(val) {
|
59
|
+
if (this.typeFilters.includes(val)) {
|
60
|
+
deleteEntry(this.typeFilters, val);
|
61
|
+
}
|
62
|
+
else {
|
63
|
+
addUniqueEntry(this.typeFilters, val);
|
64
|
+
}
|
65
|
+
}
|
66
|
+
setFilterByMultiple(val) {
|
67
|
+
this.filterByMultiple = val;
|
68
|
+
}
|
69
|
+
getMultiplePropertyNodes() {
|
70
|
+
return this.searchedMappedPropertyNodes.filter((node) => {
|
71
|
+
if (node instanceof QueryBuilderExplorerTreePropertyNodeData) {
|
72
|
+
if (node.property.multiplicity.upperBound === undefined ||
|
73
|
+
node.property.multiplicity.upperBound > 1) {
|
74
|
+
return true;
|
75
|
+
}
|
76
|
+
const parentNode = this.allMappedPropertyNodes.find((pn) => pn.id === node.parentId);
|
77
|
+
if (parentNode instanceof QueryBuilderExplorerTreePropertyNodeData &&
|
78
|
+
(parentNode.property.multiplicity.upperBound === undefined ||
|
79
|
+
parentNode.property.multiplicity.upperBound > 1)) {
|
80
|
+
return true;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
return false;
|
84
|
+
});
|
85
|
+
}
|
86
|
+
classPropertyNodes() {
|
87
|
+
return this.searchedMappedPropertyNodes.filter((node) => {
|
88
|
+
if (node.type instanceof Class) {
|
89
|
+
return true;
|
90
|
+
}
|
91
|
+
return false;
|
92
|
+
});
|
93
|
+
}
|
94
|
+
stringPropertyNodes() {
|
95
|
+
return this.searchedMappedPropertyNodes.filter((node) => {
|
96
|
+
if (node.type instanceof PrimitiveType &&
|
97
|
+
node.type.name === PRIMITIVE_TYPE.STRING) {
|
98
|
+
return true;
|
99
|
+
}
|
100
|
+
return false;
|
101
|
+
});
|
102
|
+
}
|
103
|
+
numberPropertyNodes() {
|
104
|
+
return this.searchedMappedPropertyNodes.filter((node) => {
|
105
|
+
if (node.type instanceof PrimitiveType &&
|
106
|
+
(node.type.name === PRIMITIVE_TYPE.DECIMAL ||
|
107
|
+
node.type.name === PRIMITIVE_TYPE.NUMBER ||
|
108
|
+
node.type.name === PRIMITIVE_TYPE.INTEGER ||
|
109
|
+
node.type.name === PRIMITIVE_TYPE.FLOAT)) {
|
110
|
+
return true;
|
111
|
+
}
|
112
|
+
return false;
|
113
|
+
});
|
114
|
+
}
|
115
|
+
datePropertyNodes() {
|
116
|
+
return this.searchedMappedPropertyNodes.filter((node) => {
|
117
|
+
if (node.type instanceof PrimitiveType &&
|
118
|
+
(node.type.name === PRIMITIVE_TYPE.DATE ||
|
119
|
+
node.type.name === PRIMITIVE_TYPE.DATETIME ||
|
120
|
+
node.type.name === PRIMITIVE_TYPE.STRICTDATE ||
|
121
|
+
node.type.name === PRIMITIVE_TYPE.STRICTTIME ||
|
122
|
+
node.type.name === PRIMITIVE_TYPE.LATESTDATE)) {
|
123
|
+
return true;
|
124
|
+
}
|
125
|
+
return false;
|
126
|
+
});
|
127
|
+
}
|
128
|
+
booleanPropertyNodes() {
|
129
|
+
return this.searchedMappedPropertyNodes.filter((node) => {
|
130
|
+
if (node.type instanceof PrimitiveType &&
|
131
|
+
node.type.name === PRIMITIVE_TYPE.BOOLEAN) {
|
132
|
+
return true;
|
133
|
+
}
|
134
|
+
return false;
|
135
|
+
});
|
136
|
+
}
|
137
|
+
get filteredPropertyNodes() {
|
138
|
+
return this.searchedMappedPropertyNodes.filter((p) => {
|
139
|
+
if (!this.filterByMultiple &&
|
140
|
+
this.getMultiplePropertyNodes().includes(p)) {
|
141
|
+
return false;
|
142
|
+
}
|
143
|
+
if (!this.typeFilters.includes(QUERY_BUILDER_PROPERTY_SEARCH_TYPE.CLASS) &&
|
144
|
+
this.classPropertyNodes().includes(p)) {
|
145
|
+
return false;
|
146
|
+
}
|
147
|
+
if (!this.typeFilters.includes(QUERY_BUILDER_PROPERTY_SEARCH_TYPE.STRING) &&
|
148
|
+
this.stringPropertyNodes().includes(p)) {
|
149
|
+
return false;
|
150
|
+
}
|
151
|
+
if (!this.typeFilters.includes(QUERY_BUILDER_PROPERTY_SEARCH_TYPE.NUMBER) &&
|
152
|
+
this.numberPropertyNodes().includes(p)) {
|
153
|
+
return false;
|
154
|
+
}
|
155
|
+
if (!this.typeFilters.includes(QUERY_BUILDER_PROPERTY_SEARCH_TYPE.BOOLEAN) &&
|
156
|
+
this.booleanPropertyNodes().includes(p)) {
|
157
|
+
return false;
|
158
|
+
}
|
159
|
+
if (!this.typeFilters.includes(QUERY_BUILDER_PROPERTY_SEARCH_TYPE.DATE) &&
|
160
|
+
this.datePropertyNodes().includes(p)) {
|
161
|
+
return false;
|
162
|
+
}
|
163
|
+
return true;
|
164
|
+
});
|
165
|
+
}
|
166
|
+
fetchAllPropertyNodes() {
|
167
|
+
const treeData = this.queryBuilderState.explorerState.nonNullableTreeData;
|
168
|
+
let currentLevelPropertyNodes = [];
|
169
|
+
let nextLevelPropertyNodes = [];
|
170
|
+
Array.from(treeData.nodes.values())
|
171
|
+
.slice(1)
|
172
|
+
.forEach((node) => {
|
173
|
+
if (node.mappingData.mapped && !node.isPartOfDerivedPropertyBranch) {
|
174
|
+
currentLevelPropertyNodes.push(node);
|
175
|
+
this.allMappedPropertyNodes.push(node);
|
176
|
+
}
|
177
|
+
});
|
178
|
+
let currentDepth = 1;
|
179
|
+
const maxDepth = QUERY_BUILDER_PROPERTY_SEARCH_MAX_DEPTH;
|
180
|
+
while (currentLevelPropertyNodes.length && currentDepth <= maxDepth) {
|
181
|
+
const node = currentLevelPropertyNodes.shift();
|
182
|
+
if (node) {
|
183
|
+
if (node.childrenIds.length) {
|
184
|
+
if ((node instanceof QueryBuilderExplorerTreePropertyNodeData ||
|
185
|
+
node instanceof QueryBuilderExplorerTreeSubTypeNodeData) &&
|
186
|
+
node.type instanceof Class) {
|
187
|
+
(node instanceof QueryBuilderExplorerTreeSubTypeNodeData
|
188
|
+
? getAllOwnClassProperties(node.type)
|
189
|
+
: getAllClassProperties(node.type).concat(getAllClassDerivedProperties(node.type))).forEach((property) => {
|
190
|
+
const propertyTreeNodeData = getQueryBuilderPropertyNodeData(property, node, guaranteeNonNullable(this.queryBuilderState.explorerState
|
191
|
+
.mappingModelCoverageAnalysisResult));
|
192
|
+
if (propertyTreeNodeData?.mappingData.mapped &&
|
193
|
+
!propertyTreeNodeData.isPartOfDerivedPropertyBranch) {
|
194
|
+
nextLevelPropertyNodes.push(propertyTreeNodeData);
|
195
|
+
this.allMappedPropertyNodes.push(propertyTreeNodeData);
|
196
|
+
}
|
197
|
+
});
|
198
|
+
node.type._subclasses.forEach((subclass) => {
|
199
|
+
const subTypeTreeNodeData = getQueryBuilderSubTypeNodeData(subclass, node, guaranteeNonNullable(this.queryBuilderState.explorerState
|
200
|
+
.mappingModelCoverageAnalysisResult));
|
201
|
+
nextLevelPropertyNodes.push(subTypeTreeNodeData);
|
202
|
+
this.allMappedPropertyNodes.push(subTypeTreeNodeData);
|
203
|
+
});
|
204
|
+
}
|
205
|
+
}
|
206
|
+
}
|
207
|
+
if (!currentLevelPropertyNodes.length) {
|
208
|
+
currentLevelPropertyNodes = nextLevelPropertyNodes;
|
209
|
+
nextLevelPropertyNodes = [];
|
210
|
+
currentDepth++;
|
211
|
+
}
|
212
|
+
}
|
213
|
+
}
|
214
|
+
fetchMappedPropertyNodes(propName) {
|
215
|
+
const propertyName = propName.toLowerCase();
|
216
|
+
for (const node of this.allMappedPropertyNodes) {
|
217
|
+
if (node.label.toLowerCase().includes(propertyName)) {
|
218
|
+
this.searchedMappedPropertyNodes.push(node);
|
219
|
+
if (this.searchedMappedPropertyNodes.length >
|
220
|
+
QUERY_BUILDER_PROPERTY_SEARCH_RESULTS_LIMIT) {
|
221
|
+
break;
|
222
|
+
}
|
223
|
+
}
|
224
|
+
}
|
225
|
+
}
|
226
|
+
setIsSearchPanelOpen(val) {
|
227
|
+
this.isSearchPanelOpen = val;
|
228
|
+
}
|
229
|
+
setIsSearchPanelHidden(val) {
|
230
|
+
this.isSearchPanelHidden = val;
|
231
|
+
}
|
232
|
+
setSearchText(val) {
|
233
|
+
this.searchText = val;
|
234
|
+
}
|
235
|
+
setSearchedMappedPropertyNodes(val) {
|
236
|
+
this.searchedMappedPropertyNodes = val;
|
237
|
+
}
|
238
|
+
refreshPropertyState() {
|
239
|
+
this.setSearchedMappedPropertyNodes([]);
|
240
|
+
}
|
241
|
+
}
|
242
|
+
//# sourceMappingURL=QueryBuilderPropertySearchState.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderPropertySearchState.js","sourceRoot":"","sources":["../../../src/stores/explorer/QueryBuilderPropertySearchState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,EACL,wBAAwB,EACxB,qBAAqB,EACrB,4BAA4B,EAC5B,aAAa,EACb,cAAc,GACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,cAAc,EACd,WAAW,EACX,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AACxE,OAAO,EACL,uCAAuC,EACvC,2CAA2C,EAC3C,kCAAkC,GACnC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,+BAA+B,EAC/B,8BAA8B,EAE9B,wCAAwC,EACxC,uCAAuC,GACxC,MAAM,gCAAgC,CAAC;AAGxC,MAAM,OAAO,+BAA+B;IAC1C,iBAAiB,CAAoB;IACrC,2GAA2G;IAC3G,uDAAuD;IACvD,sBAAsB,GAAuC,EAAE,CAAC;IAChE,2BAA2B,GAAuC,EAAE,CAAC;IACrE,iBAAiB,GAAG,KAAK,CAAC;IAC1B,mBAAmB,GAAG,KAAK,CAAC;IAC5B,UAAU,GAAG,EAAE,CAAC;IAChB,gBAAgB,CAAU;IAC1B,WAAW,CAAuC;IAElD,YAAY,iBAAoC;QAC9C,kBAAkB,CAAC,IAAI,EAAE;YACvB,iBAAiB,EAAE,KAAK;YACxB,2BAA2B,EAAE,UAAU;YACvC,iBAAiB,EAAE,UAAU;YAC7B,mBAAmB,EAAE,UAAU;YAC/B,UAAU,EAAE,UAAU;YACtB,qBAAqB,EAAE,QAAQ;YAC/B,aAAa,EAAE,MAAM;YAC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,CAAC;IAC1C,CAAC;CACF"}
|
@@ -0,0 +1,59 @@
|
|
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
|
+
import { type PackageableElement, ConcreteFunctionDefinition, Package, ROOT_PACKAGE_NAME } from '@finos/legend-graph';
|
17
|
+
import type { QueryBuilderState } from '../QueryBuilderState.js';
|
18
|
+
import type { TreeNodeData, TreeData } from '@finos/legend-art';
|
19
|
+
export declare const QUERY_BUILDER_FUNCTION_DND_TYPE = "QUERY_BUILDER_FUNCTION";
|
20
|
+
export interface QueryBuilderFunctionsExplorerDragSource {
|
21
|
+
node: QueryBuilderFunctionsExplorerTreeNodeData;
|
22
|
+
}
|
23
|
+
export declare class QueryBuilderFunctionsExplorerTreeNodeData implements TreeNodeData {
|
24
|
+
id: string;
|
25
|
+
label: string;
|
26
|
+
childrenIds: string[];
|
27
|
+
isOpen?: boolean | undefined;
|
28
|
+
packageableElement: PackageableElement;
|
29
|
+
constructor(id: string, label: string, packageableElement: PackageableElement);
|
30
|
+
}
|
31
|
+
export declare const generateFunctionsExplorerTreeNodeData: (queryBuilderState: QueryBuilderState, element: PackageableElement, rootPackageName: ROOT_PACKAGE_NAME) => QueryBuilderFunctionsExplorerTreeNodeData;
|
32
|
+
export declare const getFunctionsExplorerTreeData: (root: Package, queryBuilderState: QueryBuilderState, rootPackageName?: ROOT_PACKAGE_NAME) => TreeData<QueryBuilderFunctionsExplorerTreeNodeData>;
|
33
|
+
export declare const getFunctionsExplorerTreeNodeChildren: (queryBuilderState: QueryBuilderState, node: QueryBuilderFunctionsExplorerTreeNodeData, data: TreeData<QueryBuilderFunctionsExplorerTreeNodeData>, rootPackageName?: ROOT_PACKAGE_NAME) => QueryBuilderFunctionsExplorerTreeNodeData[];
|
34
|
+
export declare class QueryFunctionExplorerState {
|
35
|
+
readonly uuid: string;
|
36
|
+
queryFunctionsState: QueryFunctionsExplorerState;
|
37
|
+
concreteFunctionDefinition: ConcreteFunctionDefinition;
|
38
|
+
constructor(queryFunctionsState: QueryFunctionsExplorerState, concreteFunctionDefinition: ConcreteFunctionDefinition);
|
39
|
+
}
|
40
|
+
export declare class QueryFunctionsExplorerState {
|
41
|
+
queryBuilderState: QueryBuilderState;
|
42
|
+
treeData?: TreeData<QueryBuilderFunctionsExplorerTreeNodeData> | undefined;
|
43
|
+
dependencyTreeData?: TreeData<QueryBuilderFunctionsExplorerTreeNodeData> | undefined;
|
44
|
+
functionExplorerStates: QueryFunctionExplorerState[];
|
45
|
+
dependencyFunctionExplorerStates: QueryFunctionExplorerState[];
|
46
|
+
displayablePackagesSet: Set<Package>;
|
47
|
+
dependencyDisplayablePackagesSet: Set<Package>;
|
48
|
+
constructor(queryBuilderState: QueryBuilderState);
|
49
|
+
getTreeData(rootPackageName?: ROOT_PACKAGE_NAME): TreeData<QueryBuilderFunctionsExplorerTreeNodeData> | undefined;
|
50
|
+
initializeDisplayablePackagesSet(): Promise<void>;
|
51
|
+
initializeDependencyDisplayablePackagesSet(): Promise<void>;
|
52
|
+
setTreeData(val: TreeData<QueryBuilderFunctionsExplorerTreeNodeData> | undefined): void;
|
53
|
+
setDependencyTreeData(val: TreeData<QueryBuilderFunctionsExplorerTreeNodeData> | undefined): void;
|
54
|
+
refreshTree(): void;
|
55
|
+
get nonNullableTreeData(): TreeData<QueryBuilderFunctionsExplorerTreeNodeData>;
|
56
|
+
onTreeNodeSelect: (queryBuilderState: QueryBuilderState, node: QueryBuilderFunctionsExplorerTreeNodeData, data: TreeData<QueryBuilderFunctionsExplorerTreeNodeData>, rootPackageName?: ROOT_PACKAGE_NAME) => void;
|
57
|
+
initializeTreeData(): void;
|
58
|
+
}
|
59
|
+
//# sourceMappingURL=QueryFunctionsExplorerState.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryFunctionsExplorerState.d.ts","sourceRoot":"","sources":["../../../src/stores/explorer/QueryFunctionsExplorerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,kBAAkB,EACvB,0BAA0B,EAC1B,OAAO,EAEP,iBAAiB,EAClB,MAAM,qBAAqB,CAAC;AAQ7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAEhE,eAAO,MAAM,+BAA+B,2BAA2B,CAAC;AAExE,MAAM,WAAW,uCAAuC;IACtD,IAAI,EAAE,yCAAyC,CAAC;CACjD;AAED,qBAAa,yCAA0C,YAAW,YAAY;IAC5E,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,EAAE,CAAM;IAC3B,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,kBAAkB,EAAE,kBAAkB,CAAC;gBAGrC,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,EACb,kBAAkB,EAAE,kBAAkB;CAMzC;AAeD,eAAO,MAAM,qCAAqC,sBAC7B,iBAAiB,WAC3B,kBAAkB,mBACV,iBAAiB,KACjC,yCAmBD,CAAC;AA+CH,eAAO,MAAM,4BAA4B,SACjC,OAAO,qBACM,iBAAiB,0CAEnC,SAAS,yCAAyC,CA2CpD,CAAC;AAEF,eAAO,MAAM,oCAAoC,sBAC5B,iBAAiB,QAC9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1,228 @@
|
|
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
|
+
import { ConcreteFunctionDefinition, Package, Unit, ROOT_PACKAGE_NAME, } from '@finos/legend-graph';
|
17
|
+
import { addUniqueEntry, guaranteeNonNullable, isNonNullable, uuid, } from '@finos/legend-shared';
|
18
|
+
import { action, makeObservable, observable } from 'mobx';
|
19
|
+
export const QUERY_BUILDER_FUNCTION_DND_TYPE = 'QUERY_BUILDER_FUNCTION';
|
20
|
+
export class QueryBuilderFunctionsExplorerTreeNodeData {
|
21
|
+
id;
|
22
|
+
label;
|
23
|
+
childrenIds = [];
|
24
|
+
isOpen;
|
25
|
+
packageableElement;
|
26
|
+
constructor(id, label, packageableElement) {
|
27
|
+
this.id = id;
|
28
|
+
this.label = label;
|
29
|
+
this.packageableElement = packageableElement;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
const getValidDisplayablePackageSet = (queryBuilderState, rootPackageName) => {
|
33
|
+
switch (rootPackageName) {
|
34
|
+
case ROOT_PACKAGE_NAME.PROJECT_DEPENDENCY_ROOT:
|
35
|
+
return queryBuilderState.functionsExplorerState
|
36
|
+
.dependencyDisplayablePackagesSet;
|
37
|
+
default:
|
38
|
+
return queryBuilderState.functionsExplorerState.displayablePackagesSet;
|
39
|
+
}
|
40
|
+
};
|
41
|
+
export const generateFunctionsExplorerTreeNodeData = (queryBuilderState, element, rootPackageName) => ({
|
42
|
+
id: element.path,
|
43
|
+
label: element.name,
|
44
|
+
childrenIds: element instanceof Package
|
45
|
+
? element.children
|
46
|
+
.filter((child) => !(child instanceof Unit))
|
47
|
+
.filter((child) => (child instanceof Package &&
|
48
|
+
getValidDisplayablePackageSet(queryBuilderState, rootPackageName).has(child)) ||
|
49
|
+
child instanceof ConcreteFunctionDefinition)
|
50
|
+
.map((child) => child.path)
|
51
|
+
: [],
|
52
|
+
packageableElement: element,
|
53
|
+
});
|
54
|
+
const generateFunctionsExplorerTreeNodeChilrdren = (queryBuilderState, node, data, rootPackageName = ROOT_PACKAGE_NAME.MAIN) => {
|
55
|
+
const validDisplayablePackageSet = getValidDisplayablePackageSet(queryBuilderState, rootPackageName);
|
56
|
+
node.childrenIds = node.packageableElement.children
|
57
|
+
.filter((child) => !(child instanceof Unit))
|
58
|
+
.filter((child) =>
|
59
|
+
// avoid displaying empty packages
|
60
|
+
(child instanceof Package && validDisplayablePackageSet.has(child)) ||
|
61
|
+
child instanceof ConcreteFunctionDefinition)
|
62
|
+
.map((child) => child.path);
|
63
|
+
node.packageableElement.children
|
64
|
+
.filter((child) => !(child instanceof Unit))
|
65
|
+
.filter((child) =>
|
66
|
+
// avoid displaying empty packages
|
67
|
+
(child instanceof Package && validDisplayablePackageSet.has(child)) ||
|
68
|
+
child instanceof ConcreteFunctionDefinition)
|
69
|
+
.map((child) => generateFunctionsExplorerTreeNodeData(queryBuilderState, child, rootPackageName))
|
70
|
+
.forEach((childNode) => {
|
71
|
+
const currentNode = data.nodes.get(childNode.id);
|
72
|
+
if (currentNode) {
|
73
|
+
currentNode.childrenIds = childNode.childrenIds;
|
74
|
+
currentNode.label = childNode.label;
|
75
|
+
}
|
76
|
+
else {
|
77
|
+
data.nodes.set(childNode.id, childNode);
|
78
|
+
}
|
79
|
+
});
|
80
|
+
};
|
81
|
+
export const getFunctionsExplorerTreeData = (root, queryBuilderState, rootPackageName = ROOT_PACKAGE_NAME.MAIN) => {
|
82
|
+
const rootIds = [];
|
83
|
+
const nodes = new Map();
|
84
|
+
const validDisplayablePackageSet = getValidDisplayablePackageSet(queryBuilderState, rootPackageName);
|
85
|
+
switch (rootPackageName) {
|
86
|
+
case ROOT_PACKAGE_NAME.PROJECT_DEPENDENCY_ROOT:
|
87
|
+
if (queryBuilderState.graphManagerState.graph.dependencyManager.functions
|
88
|
+
.length === 0) {
|
89
|
+
return { rootIds, nodes };
|
90
|
+
}
|
91
|
+
break;
|
92
|
+
default:
|
93
|
+
if (queryBuilderState.graphManagerState.graph.ownFunctions.length === 0) {
|
94
|
+
return { rootIds, nodes };
|
95
|
+
}
|
96
|
+
}
|
97
|
+
root.children
|
98
|
+
.slice()
|
99
|
+
.filter((child) => !(child instanceof Unit))
|
100
|
+
.filter((child) => child instanceof Package && validDisplayablePackageSet.has(child))
|
101
|
+
.sort((a, b) => a.name.localeCompare(b.name))
|
102
|
+
.sort((a, b) => (b instanceof Package ? 1 : 0) - (a instanceof Package ? 1 : 0))
|
103
|
+
.forEach((childPackage) => {
|
104
|
+
const childTreeNodeData = generateFunctionsExplorerTreeNodeData(queryBuilderState, childPackage, rootPackageName);
|
105
|
+
addUniqueEntry(rootIds, childTreeNodeData.id);
|
106
|
+
nodes.set(childTreeNodeData.id, childTreeNodeData);
|
107
|
+
});
|
108
|
+
return { rootIds, nodes };
|
109
|
+
};
|
110
|
+
export const getFunctionsExplorerTreeNodeChildren = (queryBuilderState, node, data, rootPackageName = ROOT_PACKAGE_NAME.MAIN) => {
|
111
|
+
generateFunctionsExplorerTreeNodeChilrdren(queryBuilderState, node, data, rootPackageName);
|
112
|
+
return node.childrenIds
|
113
|
+
.map((id) => data.nodes.get(id))
|
114
|
+
.filter(isNonNullable)
|
115
|
+
.sort((a, b) => a.label.localeCompare(b.label))
|
116
|
+
.sort((a, b) => (b.packageableElement instanceof Package ? 1 : 0) -
|
117
|
+
(a.packageableElement instanceof Package ? 1 : 0));
|
118
|
+
};
|
119
|
+
const getAllPackagesFromElement = (element) => {
|
120
|
+
if (element.package) {
|
121
|
+
return [element.package].concat(getAllPackagesFromElement(element.package));
|
122
|
+
}
|
123
|
+
return [];
|
124
|
+
};
|
125
|
+
export class QueryFunctionExplorerState {
|
126
|
+
uuid = uuid();
|
127
|
+
queryFunctionsState;
|
128
|
+
concreteFunctionDefinition;
|
129
|
+
constructor(queryFunctionsState, concreteFunctionDefinition) {
|
130
|
+
makeObservable(this, {
|
131
|
+
concreteFunctionDefinition: observable,
|
132
|
+
});
|
133
|
+
this.queryFunctionsState = queryFunctionsState;
|
134
|
+
this.concreteFunctionDefinition = concreteFunctionDefinition;
|
135
|
+
}
|
136
|
+
}
|
137
|
+
export class QueryFunctionsExplorerState {
|
138
|
+
queryBuilderState;
|
139
|
+
treeData;
|
140
|
+
dependencyTreeData;
|
141
|
+
functionExplorerStates = [];
|
142
|
+
dependencyFunctionExplorerStates = [];
|
143
|
+
displayablePackagesSet = new Set();
|
144
|
+
dependencyDisplayablePackagesSet = new Set();
|
145
|
+
constructor(queryBuilderState) {
|
146
|
+
makeObservable(this, {
|
147
|
+
functionExplorerStates: observable.ref,
|
148
|
+
dependencyFunctionExplorerStates: observable.ref,
|
149
|
+
treeData: observable.ref,
|
150
|
+
dependencyTreeData: observable.ref,
|
151
|
+
setTreeData: action,
|
152
|
+
setDependencyTreeData: action,
|
153
|
+
refreshTree: action,
|
154
|
+
onTreeNodeSelect: action,
|
155
|
+
});
|
156
|
+
this.queryBuilderState = queryBuilderState;
|
157
|
+
this.initializeTreeData();
|
158
|
+
}
|
159
|
+
getTreeData(rootPackageName = ROOT_PACKAGE_NAME.MAIN) {
|
160
|
+
switch (rootPackageName) {
|
161
|
+
case ROOT_PACKAGE_NAME.PROJECT_DEPENDENCY_ROOT:
|
162
|
+
return this.dependencyTreeData;
|
163
|
+
default:
|
164
|
+
return this.treeData;
|
165
|
+
}
|
166
|
+
}
|
167
|
+
async initializeDisplayablePackagesSet() {
|
168
|
+
this.queryBuilderState.graphManagerState.graph.ownFunctions
|
169
|
+
.map((f) => getAllPackagesFromElement(f))
|
170
|
+
.flat()
|
171
|
+
.forEach((pkg) => this.displayablePackagesSet.add(pkg));
|
172
|
+
}
|
173
|
+
async initializeDependencyDisplayablePackagesSet() {
|
174
|
+
this.queryBuilderState.graphManagerState.graph.dependencyManager.functions
|
175
|
+
.map((f) => getAllPackagesFromElement(f))
|
176
|
+
.flat()
|
177
|
+
.forEach((pkg) => this.dependencyDisplayablePackagesSet.add(pkg));
|
178
|
+
}
|
179
|
+
setTreeData(val) {
|
180
|
+
this.treeData = val;
|
181
|
+
}
|
182
|
+
setDependencyTreeData(val) {
|
183
|
+
this.dependencyTreeData = val;
|
184
|
+
}
|
185
|
+
refreshTree() {
|
186
|
+
if (this.treeData) {
|
187
|
+
this.treeData = { ...this.treeData };
|
188
|
+
}
|
189
|
+
if (this.dependencyTreeData) {
|
190
|
+
this.dependencyTreeData = { ...this.dependencyTreeData };
|
191
|
+
}
|
192
|
+
}
|
193
|
+
get nonNullableTreeData() {
|
194
|
+
return guaranteeNonNullable(this.treeData, 'Query builder functions explorer tree data has not been initialized');
|
195
|
+
}
|
196
|
+
onTreeNodeSelect = (queryBuilderState, node, data, rootPackageName = ROOT_PACKAGE_NAME.MAIN) => {
|
197
|
+
if (node.packageableElement instanceof Package) {
|
198
|
+
if (node.childrenIds.length) {
|
199
|
+
node.isOpen = !node.isOpen;
|
200
|
+
generateFunctionsExplorerTreeNodeChilrdren(queryBuilderState, node, data, rootPackageName);
|
201
|
+
}
|
202
|
+
switch (rootPackageName) {
|
203
|
+
case ROOT_PACKAGE_NAME.PROJECT_DEPENDENCY_ROOT:
|
204
|
+
this.setDependencyTreeData({ ...data });
|
205
|
+
break;
|
206
|
+
default:
|
207
|
+
this.setTreeData({ ...data });
|
208
|
+
}
|
209
|
+
}
|
210
|
+
};
|
211
|
+
initializeTreeData() {
|
212
|
+
this.initializeDisplayablePackagesSet().finally(() => {
|
213
|
+
this.setTreeData(getFunctionsExplorerTreeData(this.queryBuilderState.graphManagerState.graph.root, this.queryBuilderState));
|
214
|
+
this.functionExplorerStates =
|
215
|
+
this.queryBuilderState.graphManagerState.graph.ownFunctions.map((f) => new QueryFunctionExplorerState(this, f));
|
216
|
+
});
|
217
|
+
if (this.queryBuilderState.graphManagerState.graph.dependencyManager
|
218
|
+
.hasDependencies) {
|
219
|
+
this.initializeDependencyDisplayablePackagesSet().finally(() => {
|
220
|
+
this.setDependencyTreeData(getFunctionsExplorerTreeData(this.queryBuilderState.graphManagerState.graph.dependencyManager
|
221
|
+
.root, this.queryBuilderState, ROOT_PACKAGE_NAME.PROJECT_DEPENDENCY_ROOT));
|
222
|
+
this.dependencyFunctionExplorerStates =
|
223
|
+
this.queryBuilderState.graphManagerState.graph.dependencyManager.functions.map((f) => new QueryFunctionExplorerState(this, f));
|
224
|
+
});
|
225
|
+
}
|
226
|
+
}
|
227
|
+
}
|
228
|
+
//# sourceMappingURL=QueryFunctionsExplorerState.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryFunctionsExplorerState.js","sourceRoot":"","sources":["../../../src/stores/explorer/QueryFunctionsExplorerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,0BAA0B,EAC1B,OAAO,EACP,IAAI,EACJ,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,aAAa,EACb,IAAI,GACL,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAI1D,MAAM,CAAC,MAAM,+BAA+B,GAAG,wBAAwB,CAAC;AAMxE,MAAM,OAAO,yCAAyC;IACpD,EAAE,CAAS;IACX,KAAK,CAAS;IACd,WAAW,GAAa,EAAE,CAAC;IAC3B,MAAM,CAAuB;IAC7B,kBAAkB,CAAqB;IAEvC,YACE,EAAU,EACV,KAAa,EACb,kB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AiB;aAC7D,eAAe,EAClB;YACA,IAAI,CAAC,0CAA0C,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE;gBAC7D,IAAI,CAAC,qBAAqB,CACxB,4BAA4B,CAC1B,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAAC,iBAAiB;qBAC7D,IAAI,EACP,IAAI,CAAC,iBAAiB,EACtB,iBAAiB,CAAC,uBAAuB,CAC1C,CACF,CAAC;gBACF,IAAI,CAAC,gCAAgC;oBACnC,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAAC,iBAAiB,CAAC,SAAS,CAAC,GAAG,CAC5E,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,0BAA0B,CAAC,IAAI,EAAE,CAAC,CAAC,CAC/C,CAAC;YACN,CAAC,CAAC,CAAC;SACJ;IACH,CAAC;CACF"}
|
@@ -0,0 +1,40 @@
|
|
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
|
+
import type { Class, CompilationError, LambdaFunction } from '@finos/legend-graph';
|
17
|
+
import type { QueryBuilderExplorerTreePropertyNodeData } from '../explorer/QueryBuilderExplorerState.js';
|
18
|
+
import type { QueryBuilderState } from '../QueryBuilderState.js';
|
19
|
+
import type { LambdaFunctionBuilderOption } from '../QueryBuilderValueSpecificationBuilderHelper.js';
|
20
|
+
import type { QueryBuilderFetchStructureState } from './QueryBuilderFetchStructureState.js';
|
21
|
+
export declare enum FETCH_STRUCTURE_IMPLEMENTATION {
|
22
|
+
PROJECTION = "PROJECTION",
|
23
|
+
GRAPH_FETCH = "GRAPH_FETCH"
|
24
|
+
}
|
25
|
+
export declare abstract class QueryBuilderFetchStructureImplementationState {
|
26
|
+
queryBuilderState: QueryBuilderState;
|
27
|
+
fetchStructureState: QueryBuilderFetchStructureState;
|
28
|
+
constructor(queryBuilderState: QueryBuilderState, fetchStructureState: QueryBuilderFetchStructureState);
|
29
|
+
abstract get type(): string;
|
30
|
+
abstract get usedExplorerTreePropertyNodeIDs(): string[];
|
31
|
+
abstract get validationIssues(): string[] | undefined;
|
32
|
+
abstract onClassChange(_class: Class | undefined): void;
|
33
|
+
abstract revealCompilationError(compilationError: CompilationError): boolean;
|
34
|
+
abstract clearCompilationError(): void;
|
35
|
+
abstract fetchProperty(node: QueryBuilderExplorerTreePropertyNodeData): void;
|
36
|
+
abstract fetchProperties(nodes: QueryBuilderExplorerTreePropertyNodeData[]): void;
|
37
|
+
abstract checkBeforeChangingImplementation(onChange: () => void): void;
|
38
|
+
abstract appendFetchStructure(lambdaFunction: LambdaFunction, options?: LambdaFunctionBuilderOption): void;
|
39
|
+
}
|
40
|
+
//# sourceMappingURL=QueryBuilderFetchStructureImplementationState.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderFetchStructureImplementationState.d.ts","sourceRoot":"","sources":["../../../src/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EACV,KAAK,EACL,gBAAgB,EAChB,cAAc,EACf,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,0CAA0C,CAAC;AACzG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,mDAAmD,CAAC;AACrG,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAE5F,oBAAY,8BAA8B;IACxC,UAAU,eAAe;IACzB,WAAW,gBAAgB;CAC5B;AAED,8BAAsB,6CAA6C;IACjE,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,mBAAmB,EAAE,+BAA+B,CAAC;gBAGnD,iBAAiB,EAAE,iBAAiB,EACpC,mBAAmB,EAAE,+BAA+B;IAWtD,QAAQ,KAAK,IAAI,IAAI,MAAM,CAAC;IAC5B,QAAQ,KAAK,+BAA+B,IAAI,MAAM,EAAE,CAAC;IACzD,QAAQ,KAAK,gBAAgB,IAAI,MAAM,EAAE,GAAG,SAAS,CAAC;IACtD,QAAQ,CAAC,aAAa,CAAC,MAAM,EAAE,KAAK,GAAG,SAAS,GAAG,IAAI;IACvD,QAAQ,CAAC,sBAAsB,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,OAAO;IAC5E,QAAQ,CAAC,qBAAqB,IAAI,IAAI;IACtC,QAAQ,CAAC,aAAa,CAAC,IAAI,EAAE,wCAAwC,GAAG,IAAI;IAC5E,QAAQ,CAAC,eAAe,CACtB,KAAK,EAAE,wCAAwC,EAAE,GAChD,IAAI;IACP,QAAQ,CAAC,iCAAiC,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI;IACtE,QAAQ,CAAC,oBAAoB,CAC3B,cAAc,EAAE,cAAc,EAC9B,OAAO,CAAC,EAAE,2BAA2B,GACpC,IAAI;CACR"}
|
@@ -0,0 +1,34 @@
|
|
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
|
+
import { computed, makeObservable } from 'mobx';
|
17
|
+
export var FETCH_STRUCTURE_IMPLEMENTATION;
|
18
|
+
(function (FETCH_STRUCTURE_IMPLEMENTATION) {
|
19
|
+
FETCH_STRUCTURE_IMPLEMENTATION["PROJECTION"] = "PROJECTION";
|
20
|
+
FETCH_STRUCTURE_IMPLEMENTATION["GRAPH_FETCH"] = "GRAPH_FETCH";
|
21
|
+
})(FETCH_STRUCTURE_IMPLEMENTATION = FETCH_STRUCTURE_IMPLEMENTATION || (FETCH_STRUCTURE_IMPLEMENTATION = {}));
|
22
|
+
export class QueryBuilderFetchStructureImplementationState {
|
23
|
+
queryBuilderState;
|
24
|
+
fetchStructureState;
|
25
|
+
constructor(queryBuilderState, fetchStructureState) {
|
26
|
+
makeObservable(this, {
|
27
|
+
usedExplorerTreePropertyNodeIDs: computed,
|
28
|
+
validationIssues: computed,
|
29
|
+
});
|
30
|
+
this.queryBuilderState = queryBuilderState;
|
31
|
+
this.fetchStructureState = fetchStructureState;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
//# sourceMappingURL=QueryBuilderFetchStructureImplementationState.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderFetchStructureImplementationState.js","sourceRoot":"","sources":["../../../src/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAMhD,MAAM,CAAN,IAAY,8BAGX;AAHD,WAAY,8BAA8B;IACxC,2DAAyB,CAAA;IACzB,6DAA2B,CAAA;AAC7B,CAAC,EAHW,8BAA8B,GAA9B,8BAA8B,KAA9B,8BAA8B,QAGzC;AAED,MAAM,OAAgB,6CAA6C;IACjE,iBAAiB,CAAoB;IACrC,mBAAmB,CAAkC;IAErD,YACE,iBAAoC,EACpC,mBAAoD;QAEpD,cAAc,CAAC,IAAI,EAAE;YACnB,+BAA+B,EAAE,QAAQ;YACzC,gBAAgB,EAAE,QAAQ;SAC3B,CAAC,CAAC;QAEH,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;IACjD,CAAC;CAiBF"}
|