@finos/legend-application-query 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +3 -0
- package/lib/LegendQueryAppEvent.d.ts +19 -0
- package/lib/LegendQueryAppEvent.d.ts.map +1 -0
- package/lib/LegendQueryAppEvent.js +21 -0
- package/lib/LegendQueryAppEvent.js.map +1 -0
- package/lib/QueryBuilder_Const.d.ts +77 -0
- package/lib/QueryBuilder_Const.d.ts.map +1 -0
- package/lib/QueryBuilder_Const.js +85 -0
- package/lib/QueryBuilder_Const.js.map +1 -0
- package/lib/application/LegendQuery.d.ts +27 -0
- package/lib/application/LegendQuery.d.ts.map +1 -0
- package/lib/application/LegendQuery.js +58 -0
- package/lib/application/LegendQuery.js.map +1 -0
- package/lib/application/LegendQueryApplicationConfig.d.ts +46 -0
- package/lib/application/LegendQueryApplicationConfig.d.ts.map +1 -0
- package/lib/application/LegendQueryApplicationConfig.js +35 -0
- package/lib/application/LegendQueryApplicationConfig.js.map +1 -0
- package/lib/application/LegendQueryPluginManager.d.ts +32 -0
- package/lib/application/LegendQueryPluginManager.d.ts.map +1 -0
- package/lib/application/LegendQueryPluginManager.js +46 -0
- package/lib/application/LegendQueryPluginManager.js.map +1 -0
- package/lib/components/LegendQueryApplication.d.ts +25 -0
- package/lib/components/LegendQueryApplication.d.ts.map +1 -0
- package/lib/components/LegendQueryApplication.js +39 -0
- package/lib/components/LegendQueryApplication.js.map +1 -0
- package/lib/components/LegendQueryBaseStoreProvider.d.ts +28 -0
- package/lib/components/LegendQueryBaseStoreProvider.d.ts.map +1 -0
- package/lib/components/LegendQueryBaseStoreProvider.js +32 -0
- package/lib/components/LegendQueryBaseStoreProvider.js.map +1 -0
- package/lib/components/QueryBuilder.d.ts +23 -0
- package/lib/components/QueryBuilder.d.ts.map +1 -0
- package/lib/components/QueryBuilder.js +91 -0
- package/lib/components/QueryBuilder.js.map +1 -0
- package/lib/components/QueryBuilderExplorerPanel.d.ts +34 -0
- package/lib/components/QueryBuilderExplorerPanel.d.ts.map +1 -0
- package/lib/components/QueryBuilderExplorerPanel.js +379 -0
- package/lib/components/QueryBuilderExplorerPanel.js.map +1 -0
- package/lib/components/QueryBuilderFetchStructurePanel.d.ts +23 -0
- package/lib/components/QueryBuilderFetchStructurePanel.d.ts.map +1 -0
- package/lib/components/QueryBuilderFetchStructurePanel.js +89 -0
- package/lib/components/QueryBuilderFetchStructurePanel.js.map +1 -0
- package/lib/components/QueryBuilderFilterPanel.d.ts +23 -0
- package/lib/components/QueryBuilderFilterPanel.d.ts.map +1 -0
- package/lib/components/QueryBuilderFilterPanel.js +301 -0
- package/lib/components/QueryBuilderFilterPanel.js.map +1 -0
- package/lib/components/QueryBuilderFunctionsExplorerPanel.d.ts +23 -0
- package/lib/components/QueryBuilderFunctionsExplorerPanel.d.ts.map +1 -0
- package/lib/components/QueryBuilderFunctionsExplorerPanel.js +177 -0
- package/lib/components/QueryBuilderFunctionsExplorerPanel.js.map +1 -0
- package/lib/components/QueryBuilderGraphFetchTreePanel.d.ts +33 -0
- package/lib/components/QueryBuilderGraphFetchTreePanel.d.ts.map +1 -0
- package/lib/components/QueryBuilderGraphFetchTreePanel.js +96 -0
- package/lib/components/QueryBuilderGraphFetchTreePanel.js.map +1 -0
- package/lib/components/QueryBuilderLambdaEditor.d.ts +42 -0
- package/lib/components/QueryBuilderLambdaEditor.d.ts.map +1 -0
- package/lib/components/QueryBuilderLambdaEditor.js +47 -0
- package/lib/components/QueryBuilderLambdaEditor.js.map +1 -0
- package/lib/components/QueryBuilderMilestoneEditor.d.ts +24 -0
- package/lib/components/QueryBuilderMilestoneEditor.d.ts.map +1 -0
- package/lib/components/QueryBuilderMilestoneEditor.js +120 -0
- package/lib/components/QueryBuilderMilestoneEditor.js.map +1 -0
- package/lib/components/QueryBuilderParameterPanel.d.ts +30 -0
- package/lib/components/QueryBuilderParameterPanel.d.ts.map +1 -0
- package/lib/components/QueryBuilderParameterPanel.js +148 -0
- package/lib/components/QueryBuilderParameterPanel.js.map +1 -0
- package/lib/components/QueryBuilderPostFilterPanel.d.ts +31 -0
- package/lib/components/QueryBuilderPostFilterPanel.d.ts.map +1 -0
- package/lib/components/QueryBuilderPostFilterPanel.js +373 -0
- package/lib/components/QueryBuilderPostFilterPanel.js.map +1 -0
- package/lib/components/QueryBuilderProjectionPanel.d.ts +23 -0
- package/lib/components/QueryBuilderProjectionPanel.d.ts.map +1 -0
- package/lib/components/QueryBuilderProjectionPanel.js +229 -0
- package/lib/components/QueryBuilderProjectionPanel.js.map +1 -0
- package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts +30 -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/QueryBuilderPropertyInfoTooltip.d.ts +26 -0
- package/lib/components/QueryBuilderPropertyInfoTooltip.d.ts.map +1 -0
- package/lib/components/QueryBuilderPropertyInfoTooltip.js +32 -0
- package/lib/components/QueryBuilderPropertyInfoTooltip.js.map +1 -0
- package/lib/components/QueryBuilderPropertySearchPanel.d.ts +24 -0
- package/lib/components/QueryBuilderPropertySearchPanel.d.ts.map +1 -0
- package/lib/components/QueryBuilderPropertySearchPanel.js +202 -0
- package/lib/components/QueryBuilderPropertySearchPanel.js.map +1 -0
- package/lib/components/QueryBuilderResultModifierPanel.d.ts +23 -0
- package/lib/components/QueryBuilderResultModifierPanel.d.ts.map +1 -0
- package/lib/components/QueryBuilderResultModifierPanel.js +88 -0
- package/lib/components/QueryBuilderResultModifierPanel.js.map +1 -0
- package/lib/components/QueryBuilderResultPanel.d.ts +23 -0
- package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -0
- package/lib/components/QueryBuilderResultPanel.js +223 -0
- package/lib/components/QueryBuilderResultPanel.js.map +1 -0
- package/lib/components/QueryBuilderSetupPanel.d.ts +23 -0
- package/lib/components/QueryBuilderSetupPanel.d.ts.map +1 -0
- package/lib/components/QueryBuilderSetupPanel.js +148 -0
- package/lib/components/QueryBuilderSetupPanel.js.map +1 -0
- package/lib/components/QueryBuilderTextEditor.d.ts +23 -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 +23 -0
- package/lib/components/QueryBuilderUnsupportedQueryEditor.d.ts.map +1 -0
- package/lib/components/QueryBuilderUnsupportedQueryEditor.js +35 -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/QueryEditor.d.ts +29 -0
- package/lib/components/QueryEditor.d.ts.map +1 -0
- package/lib/components/QueryEditor.js +130 -0
- package/lib/components/QueryEditor.js.map +1 -0
- package/lib/components/QueryEditorComponentTestUtils.d.ts +35 -0
- package/lib/components/QueryEditorComponentTestUtils.d.ts.map +1 -0
- package/lib/components/QueryEditorComponentTestUtils.js +108 -0
- package/lib/components/QueryEditorComponentTestUtils.js.map +1 -0
- package/lib/components/QueryEditorStoreProvider.d.ts +37 -0
- package/lib/components/QueryEditorStoreProvider.d.ts.map +1 -0
- package/lib/components/QueryEditorStoreProvider.js +48 -0
- package/lib/components/QueryEditorStoreProvider.js.map +1 -0
- package/lib/components/QuerySetup.d.ts +18 -0
- package/lib/components/QuerySetup.d.ts.map +1 -0
- package/lib/components/QuerySetup.js +388 -0
- package/lib/components/QuerySetup.js.map +1 -0
- package/lib/components/QuerySetupStoreProvider.d.ts +23 -0
- package/lib/components/QuerySetupStoreProvider.d.ts.map +1 -0
- package/lib/components/QuerySetupStoreProvider.js +35 -0
- package/lib/components/QuerySetupStoreProvider.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/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 +68 -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 +36 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +36 -0
- package/lib/index.js.map +1 -0
- package/lib/package.json +99 -0
- package/lib/stores/LegendQueryApplicationPlugin.d.ts +47 -0
- package/lib/stores/LegendQueryApplicationPlugin.d.ts.map +1 -0
- package/lib/stores/LegendQueryApplicationPlugin.js +27 -0
- package/lib/stores/LegendQueryApplicationPlugin.js.map +1 -0
- package/lib/stores/LegendQueryBaseStore.d.ts +28 -0
- package/lib/stores/LegendQueryBaseStore.d.ts.map +1 -0
- package/lib/stores/LegendQueryBaseStore.js +28 -0
- package/lib/stores/LegendQueryBaseStore.js.map +1 -0
- package/lib/stores/LegendQueryEventService.d.ts +27 -0
- package/lib/stores/LegendQueryEventService.d.ts.map +1 -0
- package/lib/stores/LegendQueryEventService.js +29 -0
- package/lib/stores/LegendQueryEventService.js.map +1 -0
- package/lib/stores/LegendQueryRouter.d.ts +55 -0
- package/lib/stores/LegendQueryRouter.d.ts.map +1 -0
- package/lib/stores/LegendQueryRouter.js +50 -0
- package/lib/stores/LegendQueryRouter.js.map +1 -0
- package/lib/stores/QueryBuilderAggregationState.d.ts +53 -0
- package/lib/stores/QueryBuilderAggregationState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderAggregationState.js +122 -0
- package/lib/stores/QueryBuilderAggregationState.js.map +1 -0
- package/lib/stores/QueryBuilderExplorerState.d.ts +93 -0
- package/lib/stores/QueryBuilderExplorerState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderExplorerState.js +310 -0
- package/lib/stores/QueryBuilderExplorerState.js.map +1 -0
- package/lib/stores/QueryBuilderFetchStructureState.d.ts +33 -0
- package/lib/stores/QueryBuilderFetchStructureState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderFetchStructureState.js +50 -0
- package/lib/stores/QueryBuilderFetchStructureState.js.map +1 -0
- package/lib/stores/QueryBuilderFilterState.d.ts +127 -0
- package/lib/stores/QueryBuilderFilterState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderFilterState.js +566 -0
- package/lib/stores/QueryBuilderFilterState.js.map +1 -0
- package/lib/stores/QueryBuilderGraphFetchTreeState.d.ts +35 -0
- package/lib/stores/QueryBuilderGraphFetchTreeState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderGraphFetchTreeState.js +65 -0
- package/lib/stores/QueryBuilderGraphFetchTreeState.js.map +1 -0
- package/lib/stores/QueryBuilderGraphFetchTreeUtil.d.ts +41 -0
- package/lib/stores/QueryBuilderGraphFetchTreeUtil.d.ts.map +1 -0
- package/lib/stores/QueryBuilderGraphFetchTreeUtil.js +173 -0
- package/lib/stores/QueryBuilderGraphFetchTreeUtil.js.map +1 -0
- package/lib/stores/QueryBuilderLambdaBuilder.d.ts +30 -0
- package/lib/stores/QueryBuilderLambdaBuilder.d.ts.map +1 -0
- package/lib/stores/QueryBuilderLambdaBuilder.js +407 -0
- package/lib/stores/QueryBuilderLambdaBuilder.js.map +1 -0
- package/lib/stores/QueryBuilderLambdaProcessor.d.ts +56 -0
- package/lib/stores/QueryBuilderLambdaProcessor.d.ts.map +1 -0
- package/lib/stores/QueryBuilderLambdaProcessor.js +544 -0
- package/lib/stores/QueryBuilderLambdaProcessor.js.map +1 -0
- package/lib/stores/QueryBuilderOperatorsHelper.d.ts +28 -0
- package/lib/stores/QueryBuilderOperatorsHelper.d.ts.map +1 -0
- package/lib/stores/QueryBuilderOperatorsHelper.js +123 -0
- package/lib/stores/QueryBuilderOperatorsHelper.js.map +1 -0
- package/lib/stores/QueryBuilderPostFilterOperator.d.ts +29 -0
- package/lib/stores/QueryBuilderPostFilterOperator.d.ts.map +1 -0
- package/lib/stores/QueryBuilderPostFilterOperator.js +30 -0
- package/lib/stores/QueryBuilderPostFilterOperator.js.map +1 -0
- package/lib/stores/QueryBuilderPostFilterProcessor.d.ts +24 -0
- package/lib/stores/QueryBuilderPostFilterProcessor.d.ts.map +1 -0
- package/lib/stores/QueryBuilderPostFilterProcessor.js +111 -0
- package/lib/stores/QueryBuilderPostFilterProcessor.js.map +1 -0
- package/lib/stores/QueryBuilderPostFilterState.d.ts +132 -0
- package/lib/stores/QueryBuilderPostFilterState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderPostFilterState.js +559 -0
- package/lib/stores/QueryBuilderPostFilterState.js.map +1 -0
- package/lib/stores/QueryBuilderPreviewDataHelper.d.ts +25 -0
- package/lib/stores/QueryBuilderPreviewDataHelper.d.ts.map +1 -0
- package/lib/stores/QueryBuilderPreviewDataHelper.js +161 -0
- package/lib/stores/QueryBuilderPreviewDataHelper.js.map +1 -0
- package/lib/stores/QueryBuilderProjectionState.d.ts +104 -0
- package/lib/stores/QueryBuilderProjectionState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderProjectionState.js +432 -0
- package/lib/stores/QueryBuilderProjectionState.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 +384 -0
- package/lib/stores/QueryBuilderPropertyEditorState.js.map +1 -0
- package/lib/stores/QueryBuilderPropertySearchPanelState.d.ts +46 -0
- package/lib/stores/QueryBuilderPropertySearchPanelState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderPropertySearchPanelState.js +240 -0
- package/lib/stores/QueryBuilderPropertySearchPanelState.js.map +1 -0
- package/lib/stores/QueryBuilderResultState.d.ts +38 -0
- package/lib/stores/QueryBuilderResultState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderResultState.js +164 -0
- package/lib/stores/QueryBuilderResultState.js.map +1 -0
- package/lib/stores/QueryBuilderSetupState.d.ts +46 -0
- package/lib/stores/QueryBuilderSetupState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderSetupState.js +163 -0
- package/lib/stores/QueryBuilderSetupState.js.map +1 -0
- package/lib/stores/QueryBuilderState.d.ts +101 -0
- package/lib/stores/QueryBuilderState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderState.js +371 -0
- package/lib/stores/QueryBuilderState.js.map +1 -0
- package/lib/stores/QueryBuilderUnsupportedState.d.ts +26 -0
- package/lib/stores/QueryBuilderUnsupportedState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderUnsupportedState.js +36 -0
- package/lib/stores/QueryBuilderUnsupportedState.js.map +1 -0
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts +19 -0
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts.map +1 -0
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js +50 -0
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js.map +1 -0
- package/lib/stores/QueryEditorStore.d.ts +98 -0
- package/lib/stores/QueryEditorStore.d.ts.map +1 -0
- package/lib/stores/QueryEditorStore.js +370 -0
- package/lib/stores/QueryEditorStore.js.map +1 -0
- package/lib/stores/QueryEditorStoreTestUtils.d.ts +18 -0
- package/lib/stores/QueryEditorStoreTestUtils.d.ts.map +1 -0
- package/lib/stores/QueryEditorStoreTestUtils.js +42 -0
- package/lib/stores/QueryEditorStoreTestUtils.js.map +1 -0
- package/lib/stores/QueryFunctionsExplorerState.d.ts +63 -0
- package/lib/stores/QueryFunctionsExplorerState.d.ts.map +1 -0
- package/lib/stores/QueryFunctionsExplorerState.js +238 -0
- package/lib/stores/QueryFunctionsExplorerState.js.map +1 -0
- package/lib/stores/QueryParametersState.d.ts +30 -0
- package/lib/stores/QueryParametersState.d.ts.map +1 -0
- package/lib/stores/QueryParametersState.js +42 -0
- package/lib/stores/QueryParametersState.js.map +1 -0
- package/lib/stores/QueryResultSetModifierState.d.ts +52 -0
- package/lib/stores/QueryResultSetModifierState.d.ts.map +1 -0
- package/lib/stores/QueryResultSetModifierState.js +165 -0
- package/lib/stores/QueryResultSetModifierState.js.map +1 -0
- package/lib/stores/QuerySetupStore.d.ts +86 -0
- package/lib/stores/QuerySetupStore.d.ts.map +1 -0
- package/lib/stores/QuerySetupStore.js +297 -0
- package/lib/stores/QuerySetupStore.js.map +1 -0
- package/lib/stores/QueryTextEditorState.d.ts +49 -0
- package/lib/stores/QueryTextEditorState.d.ts.map +1 -0
- package/lib/stores/QueryTextEditorState.js +145 -0
- package/lib/stores/QueryTextEditorState.js.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperatorHelper.d.ts +21 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperatorHelper.d.ts.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperatorHelper.js +40 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperatorHelper.js.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Average.d.ts +26 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Average.d.ts.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Average.js +50 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Average.js.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Count.d.ts +26 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Count.d.ts.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Count.js +55 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Count.js.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Distinct.d.ts +25 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Distinct.d.ts.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Distinct.js +50 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Distinct.js.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_DistinctCount.d.ts +26 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_DistinctCount.d.ts.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_DistinctCount.js +77 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_DistinctCount.js.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_JoinString.d.ts +26 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_JoinString.d.ts.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_JoinString.js +66 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_JoinString.js.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Max.d.ts +25 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Max.d.ts.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Max.js +86 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Max.js.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Min.d.ts +25 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Min.d.ts.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Min.js +86 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Min.js.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Population.d.ts +26 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Population.d.ts.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Population.js +50 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Population.js.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts +26 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Sample.js +50 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Sample.js.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Sum.d.ts +25 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Sum.d.ts.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Sum.js +45 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Sum.js.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperatorHelper.d.ts +20 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperatorHelper.d.ts.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperatorHelper.js +257 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperatorHelper.js.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_Contain.d.ts +31 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_Contain.d.ts.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_Contain.js +72 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_Contain.js.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_EndWith.d.ts +31 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_EndWith.d.ts.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_EndWith.js +72 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_EndWith.js.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_Equal.d.ts +31 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_Equal.d.ts.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_Equal.js +139 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_Equal.js.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_GreaterThan.d.ts +26 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_GreaterThan.d.ts.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_GreaterThan.js +107 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_GreaterThan.js.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts +26 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_GreaterThanEqual.js +107 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_GreaterThanEqual.js.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_In.d.ts +31 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_In.d.ts.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_In.js +103 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_In.js.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_IsEmpty.d.ts +31 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_IsEmpty.d.ts.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_IsEmpty.js +65 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_IsEmpty.js.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_LessThan.d.ts +26 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_LessThan.d.ts.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_LessThan.js +108 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_LessThan.js.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_LessThanEqual.d.ts +26 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_LessThanEqual.d.ts.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_LessThanEqual.js +107 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_LessThanEqual.js.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_StartWith.d.ts +31 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_StartWith.d.ts.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_StartWith.js +72 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_StartWith.js.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperatorHelper.d.ts +23 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperatorHelper.d.ts.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperatorHelper.js +74 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperatorHelper.js.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_Contain.d.ts +32 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_Contain.d.ts.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_Contain.js +76 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_Contain.js.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_EndWith.d.ts +32 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_EndWith.d.ts.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_EndWith.js +76 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_EndWith.js.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_Equal.d.ts +32 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_Equal.d.ts.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_Equal.js +142 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_Equal.js.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThan.d.ts +27 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThan.d.ts.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThan.js +105 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThan.js.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts +24 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThanEqual.js +43 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThanEqual.js.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_In.d.ts +32 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_In.d.ts.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_In.js +104 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_In.js.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_IsEmpty.d.ts +33 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_IsEmpty.d.ts.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_IsEmpty.js +67 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_IsEmpty.js.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThan.d.ts +27 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThan.d.ts.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThan.js +105 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThan.js.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts +24 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThanEqual.js +43 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThanEqual.js.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_StartWith.d.ts +32 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_StartWith.d.ts.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_StartWith.js +76 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_StartWith.js.map +1 -0
- package/package.json +99 -0
- package/src/LegendQueryAppEvent.ts +20 -0
- package/src/QueryBuilder_Const.ts +88 -0
- package/src/application/LegendQuery.tsx +92 -0
- package/src/application/LegendQueryApplicationConfig.ts +77 -0
- package/src/application/LegendQueryPluginManager.ts +67 -0
- package/src/components/LegendQueryApplication.tsx +104 -0
- package/src/components/LegendQueryBaseStoreProvider.tsx +68 -0
- package/src/components/QueryBuilder.tsx +375 -0
- package/src/components/QueryBuilderExplorerPanel.tsx +998 -0
- package/src/components/QueryBuilderFetchStructurePanel.tsx +184 -0
- package/src/components/QueryBuilderFilterPanel.tsx +858 -0
- package/src/components/QueryBuilderFunctionsExplorerPanel.tsx +598 -0
- package/src/components/QueryBuilderGraphFetchTreePanel.tsx +270 -0
- package/src/components/QueryBuilderLambdaEditor.tsx +117 -0
- package/src/components/QueryBuilderMilestoneEditor.tsx +291 -0
- package/src/components/QueryBuilderParameterPanel.tsx +434 -0
- package/src/components/QueryBuilderPostFilterPanel.tsx +1061 -0
- package/src/components/QueryBuilderProjectionPanel.tsx +652 -0
- package/src/components/QueryBuilderPropertyExpressionEditor.tsx +370 -0
- package/src/components/QueryBuilderPropertyInfoTooltip.tsx +87 -0
- package/src/components/QueryBuilderPropertySearchPanel.tsx +617 -0
- package/src/components/QueryBuilderResultModifierPanel.tsx +252 -0
- package/src/components/QueryBuilderResultPanel.tsx +582 -0
- package/src/components/QueryBuilderSetupPanel.tsx +341 -0
- package/src/components/QueryBuilderTextEditor.tsx +127 -0
- package/src/components/QueryBuilderUnsupportedQueryEditor.tsx +110 -0
- package/src/components/QueryBuilder_TestID.ts +26 -0
- package/src/components/QueryEditor.tsx +345 -0
- package/src/components/QueryEditorComponentTestUtils.tsx +200 -0
- package/src/components/QueryEditorStoreProvider.tsx +128 -0
- package/src/components/QuerySetup.tsx +907 -0
- package/src/components/QuerySetupStoreProvider.tsx +65 -0
- package/src/components/shared/ElementIconUtils.tsx +47 -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 +170 -0
- package/src/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.ts +573 -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 +57 -0
- package/src/stores/LegendQueryApplicationPlugin.ts +61 -0
- package/src/stores/LegendQueryBaseStore.ts +47 -0
- package/src/stores/LegendQueryEventService.ts +38 -0
- package/src/stores/LegendQueryRouter.ts +114 -0
- package/src/stores/QueryBuilderAggregationState.ts +208 -0
- package/src/stores/QueryBuilderExplorerState.ts +590 -0
- package/src/stores/QueryBuilderFetchStructureState.ts +59 -0
- package/src/stores/QueryBuilderFilterState.ts +815 -0
- package/src/stores/QueryBuilderGraphFetchTreeState.ts +90 -0
- package/src/stores/QueryBuilderGraphFetchTreeUtil.ts +281 -0
- package/src/stores/QueryBuilderLambdaBuilder.ts +755 -0
- package/src/stores/QueryBuilderLambdaProcessor.ts +1239 -0
- package/src/stores/QueryBuilderOperatorsHelper.ts +191 -0
- package/src/stores/QueryBuilderPostFilterOperator.ts +66 -0
- package/src/stores/QueryBuilderPostFilterProcessor.ts +275 -0
- package/src/stores/QueryBuilderPostFilterState.ts +762 -0
- package/src/stores/QueryBuilderPreviewDataHelper.ts +300 -0
- package/src/stores/QueryBuilderProjectionState.ts +796 -0
- package/src/stores/QueryBuilderPropertyEditorState.ts +656 -0
- package/src/stores/QueryBuilderPropertySearchPanelState.ts +331 -0
- package/src/stores/QueryBuilderResultState.ts +263 -0
- package/src/stores/QueryBuilderSetupState.ts +236 -0
- package/src/stores/QueryBuilderState.ts +561 -0
- package/src/stores/QueryBuilderUnsupportedState.ts +42 -0
- package/src/stores/QueryBuilderValueSpecificationBuilderHelper.ts +76 -0
- package/src/stores/QueryEditorStore.ts +648 -0
- package/src/stores/QueryEditorStoreTestUtils.ts +46 -0
- package/src/stores/QueryFunctionsExplorerState.ts +386 -0
- package/src/stores/QueryParametersState.ts +54 -0
- package/src/stores/QueryResultSetModifierState.ts +307 -0
- package/src/stores/QuerySetupStore.ts +430 -0
- package/src/stores/QueryTextEditorState.ts +203 -0
- package/src/stores/aggregateOperators/QueryBuilderAggregateOperatorHelper.ts +111 -0
- package/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Average.ts +100 -0
- package/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Count.ts +108 -0
- package/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Distinct.ts +98 -0
- package/src/stores/aggregateOperators/QueryBuilderAggregateOperator_DistinctCount.ts +175 -0
- package/src/stores/aggregateOperators/QueryBuilderAggregateOperator_JoinString.ts +157 -0
- package/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Max.ts +176 -0
- package/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Min.ts +176 -0
- package/src/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Population.ts +100 -0
- package/src/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Sample.ts +100 -0
- package/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Sum.ts +90 -0
- package/src/stores/filterOperators/QueryBuilderFilterOperatorHelper.ts +524 -0
- package/src/stores/filterOperators/QueryBuilderFilterOperator_Contain.ts +134 -0
- package/src/stores/filterOperators/QueryBuilderFilterOperator_EndWith.ts +134 -0
- package/src/stores/filterOperators/QueryBuilderFilterOperator_Equal.ts +233 -0
- package/src/stores/filterOperators/QueryBuilderFilterOperator_GreaterThan.ts +164 -0
- package/src/stores/filterOperators/QueryBuilderFilterOperator_GreaterThanEqual.ts +164 -0
- package/src/stores/filterOperators/QueryBuilderFilterOperator_In.ts +181 -0
- package/src/stores/filterOperators/QueryBuilderFilterOperator_IsEmpty.ts +125 -0
- package/src/stores/filterOperators/QueryBuilderFilterOperator_LessThan.ts +165 -0
- package/src/stores/filterOperators/QueryBuilderFilterOperator_LessThanEqual.ts +164 -0
- package/src/stores/filterOperators/QueryBuilderFilterOperator_StartWith.ts +134 -0
- package/src/stores/postFilterOperators/QueryBuilderPostFilterOperatorHelper.ts +129 -0
- package/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_Contain.ts +140 -0
- package/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_EndWith.ts +135 -0
- package/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_Equal.ts +238 -0
- package/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThan.ts +161 -0
- package/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThanEqual.ts +70 -0
- package/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_In.ts +183 -0
- package/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_IsEmpty.ts +113 -0
- package/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThan.ts +161 -0
- package/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThanEqual.ts +70 -0
- package/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_StartWith.ts +135 -0
- package/tsconfig.json +155 -0
- package/tsconfig.package.json +38 -0
@@ -0,0 +1,384 @@
|
|
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 { action, makeAutoObservable } from 'mobx';
|
17
|
+
import { getNullableFirstElement, guaranteeNonNullable, guaranteeType, isCamelCase, prettyCamelCase, prettyCONSTName, } from '@finos/legend-shared';
|
18
|
+
import { Class, TYPICAL_MULTIPLICITY_TYPE, CollectionInstanceValue, AbstractPropertyExpression, DerivedProperty, Enumeration, EnumValueExplicitReference, EnumValueInstanceValue, InstanceValue, PrimitiveInstanceValue, PRIMITIVE_TYPE, VariableExpression, getMilestoneTemporalStereotype, MILESTONING_STEREOTYPE, SimpleFunctionExpression, matchFunctionName, TYPE_CAST_TOKEN, observe_AbstractPropertyExpression, GenericTypeExplicitReference, GenericType, DEFAULT_BUSINESS_DATE_MILESTONING_PARAMETER_NAME, DEFAULT_PROCESSING_DATE_MILESTONING_PARAMETER_NAME, INTERNAL__PropagatedValue, Association, } from '@finos/legend-graph';
|
19
|
+
import { generateDefaultValueForPrimitiveType } from './QueryBuilderValueSpecificationBuilderHelper.js';
|
20
|
+
import { functionExpression_setParametersValues } from '@finos/legend-application';
|
21
|
+
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../QueryBuilder_Const.js';
|
22
|
+
export const getDerivedPropertyMilestoningSteoreotype = (property, graph) => {
|
23
|
+
const owner = property._OWNER;
|
24
|
+
if (owner instanceof Class) {
|
25
|
+
return getMilestoneTemporalStereotype(owner, graph);
|
26
|
+
}
|
27
|
+
else if (owner instanceof Association) {
|
28
|
+
if (owner._generatedMilestonedProperties.length) {
|
29
|
+
const ownerClass = owner._generatedMilestonedProperties[0]?.genericType.value.rawType;
|
30
|
+
return getMilestoneTemporalStereotype(guaranteeType(ownerClass, Class), graph);
|
31
|
+
}
|
32
|
+
}
|
33
|
+
return undefined;
|
34
|
+
};
|
35
|
+
/**
|
36
|
+
* Check if the parameter value of the milestoned property is
|
37
|
+
* the same as those specified in global scope, so that we can
|
38
|
+
* potentially replace them with propgated value.
|
39
|
+
*/
|
40
|
+
const matchMilestoningParameterValue = (stereotype, idx, parameterValue, querySetupState) => {
|
41
|
+
const checkIfEquivalent = (param1, param2) => {
|
42
|
+
if (param1 instanceof VariableExpression &&
|
43
|
+
param2 instanceof VariableExpression) {
|
44
|
+
return param1.name === param2.name;
|
45
|
+
}
|
46
|
+
else if (param1 instanceof PrimitiveInstanceValue &&
|
47
|
+
param2 instanceof PrimitiveInstanceValue) {
|
48
|
+
if (param1.genericType.value.rawType.name === PRIMITIVE_TYPE.LATESTDATE &&
|
49
|
+
param2.genericType.value.rawType.name === PRIMITIVE_TYPE.LATESTDATE) {
|
50
|
+
return true;
|
51
|
+
}
|
52
|
+
return (param1.genericType.value.rawType.name ===
|
53
|
+
param2.genericType.value.rawType.name &&
|
54
|
+
param1.values[0] === param2.values[0]);
|
55
|
+
}
|
56
|
+
return false;
|
57
|
+
};
|
58
|
+
switch (stereotype) {
|
59
|
+
case MILESTONING_STEREOTYPE.BITEMPORAL:
|
60
|
+
return ((idx === 0 &&
|
61
|
+
checkIfEquivalent(parameterValue, querySetupState.processingDate)) ||
|
62
|
+
(idx === 1 &&
|
63
|
+
checkIfEquivalent(parameterValue, querySetupState.businessDate)));
|
64
|
+
case MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL:
|
65
|
+
return checkIfEquivalent(parameterValue, querySetupState.processingDate);
|
66
|
+
case MILESTONING_STEREOTYPE.BUSINESS_TEMPORAL:
|
67
|
+
return checkIfEquivalent(parameterValue, querySetupState.businessDate);
|
68
|
+
default:
|
69
|
+
}
|
70
|
+
return false;
|
71
|
+
};
|
72
|
+
export const prettyPropertyName = (value) => isCamelCase(value) ? prettyCamelCase(value) : prettyCONSTName(value);
|
73
|
+
/**
|
74
|
+
* Generate a parameter value for the derived property given the index if the property is milestoned.
|
75
|
+
*
|
76
|
+
* This method considers different scenarios for milestoning and take into account date propagation
|
77
|
+
* See https://github.com/finos/legend-studio/pull/891
|
78
|
+
*/
|
79
|
+
export const generateMilestonedPropertyParameterValue = (derivedPropertyExpressionState, idx) => {
|
80
|
+
// Milestoning transformations should not be done on actual derived properties.
|
81
|
+
if (derivedPropertyExpressionState.derivedProperty._OWNER.derivedProperties.includes(derivedPropertyExpressionState.derivedProperty)) {
|
82
|
+
return undefined;
|
83
|
+
}
|
84
|
+
const querySetupState = derivedPropertyExpressionState.queryBuilderState.querySetupState;
|
85
|
+
const temporalSource = getDerivedPropertyMilestoningSteoreotype(derivedPropertyExpressionState.derivedProperty, derivedPropertyExpressionState.queryBuilderState.graphManagerState.graph);
|
86
|
+
const temporalTarget = derivedPropertyExpressionState.propertyExpression.func.genericType.value
|
87
|
+
.rawType instanceof Class &&
|
88
|
+
derivedPropertyExpressionState.propertyExpression.func._OWNER
|
89
|
+
._generatedMilestonedProperties.length !== 0
|
90
|
+
? getMilestoneTemporalStereotype(derivedPropertyExpressionState.propertyExpression.func.genericType
|
91
|
+
.value.rawType, derivedPropertyExpressionState.queryBuilderState.graphManagerState
|
92
|
+
.graph)
|
93
|
+
: undefined;
|
94
|
+
const shouldReturnMilestoningParameter = temporalTarget &&
|
95
|
+
((idx < derivedPropertyExpressionState.parameterValues.length &&
|
96
|
+
(matchMilestoningParameterValue(temporalTarget, idx, guaranteeNonNullable(derivedPropertyExpressionState.parameterValues[idx]), derivedPropertyExpressionState.queryBuilderState.querySetupState) ||
|
97
|
+
/**
|
98
|
+
* Checks if the given milestoning needs to be overwritten or not.
|
99
|
+
* Specially, we would need to rewrite the query if the user passes a single parameter
|
100
|
+
* to the `bitemporal` property expression with `processing temporal` source.
|
101
|
+
*/
|
102
|
+
(getDerivedPropertyMilestoningSteoreotype(derivedPropertyExpressionState.derivedProperty, derivedPropertyExpressionState.queryBuilderState.graphManagerState
|
103
|
+
.graph) === MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL &&
|
104
|
+
temporalTarget === MILESTONING_STEREOTYPE.BITEMPORAL &&
|
105
|
+
derivedPropertyExpressionState.parameterValues.length === 1))) ||
|
106
|
+
idx >= derivedPropertyExpressionState.parameterValues.length);
|
107
|
+
if (!shouldReturnMilestoningParameter) {
|
108
|
+
return undefined;
|
109
|
+
}
|
110
|
+
switch (temporalTarget) {
|
111
|
+
case MILESTONING_STEREOTYPE.BUSINESS_TEMPORAL: {
|
112
|
+
if (!querySetupState.businessDate) {
|
113
|
+
querySetupState.setBusinessDate(derivedPropertyExpressionState.queryBuilderState.buildMilestoningParameter(DEFAULT_BUSINESS_DATE_MILESTONING_PARAMETER_NAME));
|
114
|
+
}
|
115
|
+
const parameter = new INTERNAL__PropagatedValue(derivedPropertyExpressionState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE));
|
116
|
+
parameter.getValue = () => guaranteeNonNullable(querySetupState.businessDate);
|
117
|
+
return parameter;
|
118
|
+
}
|
119
|
+
case MILESTONING_STEREOTYPE.BITEMPORAL: {
|
120
|
+
if (!querySetupState.processingDate) {
|
121
|
+
querySetupState.setProcessingDate(derivedPropertyExpressionState.queryBuilderState.buildMilestoningParameter(DEFAULT_PROCESSING_DATE_MILESTONING_PARAMETER_NAME));
|
122
|
+
}
|
123
|
+
if (!querySetupState.businessDate) {
|
124
|
+
querySetupState.setBusinessDate(derivedPropertyExpressionState.queryBuilderState.buildMilestoningParameter(DEFAULT_BUSINESS_DATE_MILESTONING_PARAMETER_NAME));
|
125
|
+
}
|
126
|
+
if (idx === 0) {
|
127
|
+
if (temporalSource === MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL &&
|
128
|
+
derivedPropertyExpressionState.parameterValues.length === 1) {
|
129
|
+
return guaranteeType(derivedPropertyExpressionState.propertyExpression
|
130
|
+
.parametersValues[0], AbstractPropertyExpression).parametersValues[1];
|
131
|
+
}
|
132
|
+
const parameter = new INTERNAL__PropagatedValue(derivedPropertyExpressionState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE));
|
133
|
+
parameter.getValue = () => guaranteeNonNullable(querySetupState.processingDate);
|
134
|
+
return parameter;
|
135
|
+
}
|
136
|
+
else {
|
137
|
+
if (temporalSource === MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL &&
|
138
|
+
derivedPropertyExpressionState.parameterValues.length === 1) {
|
139
|
+
return derivedPropertyExpressionState.parameterValues[0];
|
140
|
+
}
|
141
|
+
else if (temporalSource === MILESTONING_STEREOTYPE.BUSINESS_TEMPORAL &&
|
142
|
+
derivedPropertyExpressionState.parameterValues.length === 1) {
|
143
|
+
return guaranteeType(derivedPropertyExpressionState.propertyExpression
|
144
|
+
.parametersValues[0], AbstractPropertyExpression).parametersValues[1];
|
145
|
+
}
|
146
|
+
const parameter = new INTERNAL__PropagatedValue(derivedPropertyExpressionState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE));
|
147
|
+
parameter.getValue = () => guaranteeNonNullable(querySetupState.businessDate);
|
148
|
+
return parameter;
|
149
|
+
}
|
150
|
+
}
|
151
|
+
case MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL: {
|
152
|
+
if (!querySetupState.processingDate) {
|
153
|
+
querySetupState.setProcessingDate(derivedPropertyExpressionState.queryBuilderState.buildMilestoningParameter(DEFAULT_PROCESSING_DATE_MILESTONING_PARAMETER_NAME));
|
154
|
+
}
|
155
|
+
const parameter = new INTERNAL__PropagatedValue(derivedPropertyExpressionState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE));
|
156
|
+
parameter.getValue = () => guaranteeNonNullable(querySetupState.processingDate);
|
157
|
+
return parameter;
|
158
|
+
}
|
159
|
+
default:
|
160
|
+
return undefined;
|
161
|
+
}
|
162
|
+
};
|
163
|
+
export const getPropertyChainName = (propertyExpression, humanizePropertyName) => {
|
164
|
+
const propertyNameDecorator = humanizePropertyName
|
165
|
+
? prettyPropertyName
|
166
|
+
: (val) => val;
|
167
|
+
const propertyNameChain = [
|
168
|
+
propertyNameDecorator(propertyExpression.func.name),
|
169
|
+
];
|
170
|
+
let currentExpression = propertyExpression;
|
171
|
+
while (currentExpression instanceof AbstractPropertyExpression) {
|
172
|
+
currentExpression = getNullableFirstElement(currentExpression.parametersValues);
|
173
|
+
if (currentExpression instanceof AbstractPropertyExpression) {
|
174
|
+
propertyNameChain.unshift(propertyNameDecorator(currentExpression.func.name));
|
175
|
+
}
|
176
|
+
// Take care of chains of subtype (a pattern that is not useful, but we want to support and rectify)
|
177
|
+
// $x.employees->subType(@Person)->subType(@Staff)
|
178
|
+
while (currentExpression instanceof SimpleFunctionExpression &&
|
179
|
+
matchFunctionName(currentExpression.functionName, QUERY_BUILDER_SUPPORTED_FUNCTIONS.SUBTYPE)) {
|
180
|
+
const propertyWithSubtype = `(${TYPE_CAST_TOKEN}${propertyNameDecorator(currentExpression.parametersValues.filter((param) => param instanceof InstanceValue)[0]?.genericType?.value.rawType.name ?? '')})${propertyNameDecorator(currentExpression.parametersValues[0] instanceof
|
181
|
+
AbstractPropertyExpression
|
182
|
+
? currentExpression.parametersValues[0]?.func.name
|
183
|
+
: '')}`;
|
184
|
+
propertyNameChain.unshift(propertyWithSubtype);
|
185
|
+
currentExpression = getNullableFirstElement(currentExpression.parametersValues);
|
186
|
+
}
|
187
|
+
}
|
188
|
+
return propertyNameChain.join(humanizePropertyName ? '/' : '.');
|
189
|
+
};
|
190
|
+
export const getPropertyPath = (propertyExpression) => {
|
191
|
+
const propertyNameChain = [propertyExpression.func.name];
|
192
|
+
let currentExpression = propertyExpression;
|
193
|
+
while (currentExpression instanceof AbstractPropertyExpression) {
|
194
|
+
currentExpression = getNullableFirstElement(currentExpression.parametersValues);
|
195
|
+
if (currentExpression instanceof AbstractPropertyExpression) {
|
196
|
+
propertyNameChain.unshift(currentExpression.func.name);
|
197
|
+
}
|
198
|
+
}
|
199
|
+
return propertyNameChain.join('.');
|
200
|
+
};
|
201
|
+
export const generateValueSpecificationForParameter = (parameter, graph) => {
|
202
|
+
const genericType = parameter.genericType;
|
203
|
+
if (genericType) {
|
204
|
+
const type = genericType.value.rawType;
|
205
|
+
// Clone the generic type reference and avoid directly using the
|
206
|
+
// reference of the parameter so when we edit the value specification
|
207
|
+
// we don't accidentally modify the type of the parameter which is constant
|
208
|
+
// See https://github.com/finos/legend-studio/issues/1099
|
209
|
+
const genericTypeExplicitReference = GenericTypeExplicitReference.create(new GenericType(type));
|
210
|
+
if ([
|
211
|
+
PRIMITIVE_TYPE.STRING,
|
212
|
+
PRIMITIVE_TYPE.BOOLEAN,
|
213
|
+
PRIMITIVE_TYPE.NUMBER,
|
214
|
+
PRIMITIVE_TYPE.FLOAT,
|
215
|
+
PRIMITIVE_TYPE.DECIMAL,
|
216
|
+
PRIMITIVE_TYPE.INTEGER,
|
217
|
+
PRIMITIVE_TYPE.DATE,
|
218
|
+
PRIMITIVE_TYPE.STRICTDATE,
|
219
|
+
PRIMITIVE_TYPE.DATETIME,
|
220
|
+
PRIMITIVE_TYPE.LATESTDATE,
|
221
|
+
].includes(type.name)) {
|
222
|
+
const primitiveInstanceValue = new PrimitiveInstanceValue(genericTypeExplicitReference, parameter.multiplicity);
|
223
|
+
if (type.name !== PRIMITIVE_TYPE.LATESTDATE) {
|
224
|
+
primitiveInstanceValue.values = [
|
225
|
+
generateDefaultValueForPrimitiveType(type.name),
|
226
|
+
];
|
227
|
+
}
|
228
|
+
return primitiveInstanceValue;
|
229
|
+
}
|
230
|
+
else if (type instanceof Enumeration) {
|
231
|
+
const enumValueInstanceValue = new EnumValueInstanceValue(genericTypeExplicitReference, parameter.multiplicity);
|
232
|
+
if (type.values.length) {
|
233
|
+
const enumValueRef = EnumValueExplicitReference.create(type.values[0]);
|
234
|
+
enumValueInstanceValue.values = [enumValueRef];
|
235
|
+
}
|
236
|
+
return enumValueInstanceValue;
|
237
|
+
}
|
238
|
+
}
|
239
|
+
// for arguments of types we don't support, we will fill them with `[]`
|
240
|
+
// which in Pure is equivalent to `null` in other languages
|
241
|
+
return new CollectionInstanceValue(graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ZERO));
|
242
|
+
};
|
243
|
+
const fillDerivedPropertyParameterValues = (derivedPropertyExpressionState) => {
|
244
|
+
const parameterValues = derivedPropertyExpressionState.parameterValues;
|
245
|
+
derivedPropertyExpressionState.parameters.forEach((parameter, idx) => {
|
246
|
+
// Check if a value is already provided for a parameter
|
247
|
+
if (idx < derivedPropertyExpressionState.parameterValues.length) {
|
248
|
+
// Here we check if the parameter value matches with the corresponding `businessDate` or `processingDate`
|
249
|
+
// NOTE: This will rewrite provided query since if people explicitly specified the parameter values,
|
250
|
+
// we will overwrite them.
|
251
|
+
parameterValues[idx] =
|
252
|
+
generateMilestonedPropertyParameterValue(derivedPropertyExpressionState, idx) ?? guaranteeNonNullable(parameterValues[idx]);
|
253
|
+
// Otherwise, we will just skip this parameter as value is already provided
|
254
|
+
return;
|
255
|
+
}
|
256
|
+
parameterValues.push(generateMilestonedPropertyParameterValue(derivedPropertyExpressionState, idx) ??
|
257
|
+
generateValueSpecificationForParameter(parameter, derivedPropertyExpressionState.queryBuilderState.graphManagerState
|
258
|
+
.graph));
|
259
|
+
});
|
260
|
+
functionExpression_setParametersValues(derivedPropertyExpressionState.propertyExpression, [
|
261
|
+
guaranteeNonNullable(derivedPropertyExpressionState.propertyExpression.parametersValues[0]),
|
262
|
+
...parameterValues,
|
263
|
+
], derivedPropertyExpressionState.queryBuilderState.observableContext);
|
264
|
+
};
|
265
|
+
export class QueryBuilderDerivedPropertyExpressionState {
|
266
|
+
queryBuilderState;
|
267
|
+
path;
|
268
|
+
title;
|
269
|
+
propertyExpression;
|
270
|
+
derivedProperty;
|
271
|
+
parameters = [];
|
272
|
+
constructor(queryBuilderState, propertyExpression) {
|
273
|
+
this.path = getPropertyPath(propertyExpression);
|
274
|
+
this.title = getPropertyChainName(propertyExpression, true);
|
275
|
+
this.propertyExpression = observe_AbstractPropertyExpression(propertyExpression, queryBuilderState.observableContext);
|
276
|
+
this.queryBuilderState = queryBuilderState;
|
277
|
+
this.derivedProperty = guaranteeType(propertyExpression.func, DerivedProperty);
|
278
|
+
// build the parameters of the derived properties
|
279
|
+
if (Array.isArray(this.derivedProperty.parameters)) {
|
280
|
+
this.parameters = this.derivedProperty.parameters.map((parameter) => guaranteeType(this.queryBuilderState.graphManagerState.graphManager.buildValueSpecification(parameter, this.queryBuilderState.graphManagerState.graph), VariableExpression));
|
281
|
+
}
|
282
|
+
fillDerivedPropertyParameterValues(this);
|
283
|
+
}
|
284
|
+
get property() {
|
285
|
+
return this.propertyExpression.func;
|
286
|
+
}
|
287
|
+
get parameterValues() {
|
288
|
+
return this.propertyExpression.parametersValues.slice(1);
|
289
|
+
}
|
290
|
+
get isValid() {
|
291
|
+
// TODO: more type matching logic here (take into account multiplicity, type, etc.)
|
292
|
+
return this.parameterValues.every((paramValue) => {
|
293
|
+
if (paramValue instanceof InstanceValue) {
|
294
|
+
const isRequired = paramValue.multiplicity.lowerBound >= 1;
|
295
|
+
// required and no values provided. LatestDate doesn't have any values so we skip that check for it.
|
296
|
+
if (isRequired &&
|
297
|
+
paramValue.genericType?.value.rawType.name !==
|
298
|
+
PRIMITIVE_TYPE.LATESTDATE &&
|
299
|
+
!paramValue.values.length) {
|
300
|
+
return false;
|
301
|
+
}
|
302
|
+
// more values than allowed
|
303
|
+
if (paramValue.multiplicity.upperBound &&
|
304
|
+
paramValue.values.length > paramValue.multiplicity.upperBound) {
|
305
|
+
return false;
|
306
|
+
}
|
307
|
+
}
|
308
|
+
return true;
|
309
|
+
});
|
310
|
+
}
|
311
|
+
}
|
312
|
+
export class QueryBuilderPropertyExpressionState {
|
313
|
+
queryBuilderState;
|
314
|
+
path;
|
315
|
+
title;
|
316
|
+
propertyExpression;
|
317
|
+
isEditingDerivedPropertyExpression = false;
|
318
|
+
// Since this property is a chain expression, some link of the chain can be
|
319
|
+
// derived property, as such, we need to keep track of the derived properties state in an array
|
320
|
+
derivedPropertyExpressionStates = [];
|
321
|
+
/**
|
322
|
+
* If at least one property in the chain is of multiplicity greater than 1,
|
323
|
+
* the property might have multiple values and can cause row explosions.
|
324
|
+
*
|
325
|
+
* In other words, saying `$x.b == 1` is not quite accurate if `$x.b` is multi
|
326
|
+
* is multi. Instead, we should do something like `$x.b->exists($x1 | $x1 == 1)`
|
327
|
+
*/
|
328
|
+
requiresExistsHandling = false;
|
329
|
+
constructor(queryBuilderState, propertyExpression) {
|
330
|
+
makeAutoObservable(this, {
|
331
|
+
queryBuilderState: false,
|
332
|
+
setIsEditingDerivedProperty: action,
|
333
|
+
initDerivedPropertyExpressionStates: action,
|
334
|
+
});
|
335
|
+
this.queryBuilderState = queryBuilderState;
|
336
|
+
this.propertyExpression = observe_AbstractPropertyExpression(propertyExpression, queryBuilderState.observableContext);
|
337
|
+
this.path = getPropertyPath(propertyExpression);
|
338
|
+
this.title = getPropertyChainName(propertyExpression, true);
|
339
|
+
this.initDerivedPropertyExpressionStates();
|
340
|
+
}
|
341
|
+
get isValid() {
|
342
|
+
return this.derivedPropertyExpressionStates.every((e) => e.isValid);
|
343
|
+
}
|
344
|
+
setIsEditingDerivedProperty(val) {
|
345
|
+
this.isEditingDerivedPropertyExpression = val;
|
346
|
+
}
|
347
|
+
initDerivedPropertyExpressionStates() {
|
348
|
+
let requiresExistsHandling = false;
|
349
|
+
const result = [];
|
350
|
+
let currentExpression = this.propertyExpression;
|
351
|
+
while (currentExpression instanceof AbstractPropertyExpression) {
|
352
|
+
// Check if the property chain can results in column that have multiple values
|
353
|
+
if (currentExpression.func.multiplicity.upperBound === undefined ||
|
354
|
+
currentExpression.func.multiplicity.upperBound > 1) {
|
355
|
+
requiresExistsHandling = true;
|
356
|
+
}
|
357
|
+
// check if the property is milestoned
|
358
|
+
if (currentExpression.func.genericType.value.rawType instanceof Class &&
|
359
|
+
currentExpression.func._OWNER._generatedMilestonedProperties.length !==
|
360
|
+
0) {
|
361
|
+
const name = currentExpression.func.name;
|
362
|
+
const func = currentExpression.func._OWNER._generatedMilestonedProperties.find((e) => e.name === name);
|
363
|
+
if (func) {
|
364
|
+
currentExpression.func = func;
|
365
|
+
}
|
366
|
+
}
|
367
|
+
// Create states to hold derived properties' parameters and arguments for editing
|
368
|
+
if (currentExpression.func instanceof DerivedProperty) {
|
369
|
+
const derivedPropertyExpressionState = new QueryBuilderDerivedPropertyExpressionState(this.queryBuilderState, currentExpression);
|
370
|
+
result.push(derivedPropertyExpressionState);
|
371
|
+
}
|
372
|
+
currentExpression = getNullableFirstElement(currentExpression.parametersValues);
|
373
|
+
// Take care of chains of subtype (a pattern that is not useful, but we want to support and rectify)
|
374
|
+
// $x.employees->subType(@Person)->subType(@Staff)
|
375
|
+
while (currentExpression instanceof SimpleFunctionExpression &&
|
376
|
+
matchFunctionName(currentExpression.functionName, QUERY_BUILDER_SUPPORTED_FUNCTIONS.SUBTYPE)) {
|
377
|
+
currentExpression = getNullableFirstElement(currentExpression.parametersValues);
|
378
|
+
}
|
379
|
+
}
|
380
|
+
this.requiresExistsHandling = requiresExistsHandling;
|
381
|
+
this.derivedPropertyExpressionStates = result.slice().reverse();
|
382
|
+
}
|
383
|
+
}
|
384
|
+
//# sourceMappingURL=QueryBuilderPropertyEditorState.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderPropertyEditorState.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderPropertyEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAE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,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CACvB,CAAC;gBACJ,IAAI,IAAI,EAAE;oBACR,iBAAiB,CAAC,IAAI,GAAG,IAAI,CAAC;iBAC/B;aACF;YAED,iFAAiF;YACjF,IAAI,iBAAiB,CAAC,IAAI,YAAY,eAAe,EAAE;gBACrD,MAAM,8BAA8B,GAClC,IAAI,0CAA0C,CAC5C,IAAI,CAAC,iBAAiB,EACtB,iBAAiB,CAClB,CAAC;gBACJ,MAAM,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC;aAC7C;YACD,iBAAiB,GAAG,uBAAuB,CACzC,iBAAiB,CAAC,gBAAgB,CACnC,CAAC;YACF,oGAAoG;YACpG,kDAAkD;YAClD,OACE,iBAAiB,YAAY,wBAAwB;gBACrD,iBAAiB,CACf,iBAAiB,CAAC,YAAY,EAC9B,iCAAiC,CAAC,OAAO,CAC1C,EACD;gBACA,iBAAiB,GAAG,uBAAuB,CACzC,iBAAiB,CAAC,gBAAgB,CACnC,CAAC;aACH;SACF;QACD,IAAI,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;QACrD,IAAI,CAAC,+BAA+B,GAAG,MAAM,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,CAAC;IAClE,CAAC;CACF"}
|
@@ -0,0 +1,46 @@
|
|
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 { QUERY_BUILDER_PROPERTY_SEARCH_TYPE } from '../QueryBuilder_Const.js';
|
17
|
+
import { type QueryBuilderExplorerTreeNodeData } from './QueryBuilderExplorerState.js';
|
18
|
+
import type { QueryBuilderState } from './QueryBuilderState.js';
|
19
|
+
export declare class QueryBuilderPropertySearchPanelState {
|
20
|
+
queryBuilderState: QueryBuilderState;
|
21
|
+
allMappedPropertyNodes: QueryBuilderExplorerTreeNodeData[];
|
22
|
+
searchedMappedPropertyNodes: QueryBuilderExplorerTreeNodeData[];
|
23
|
+
isSearchPanelOpen: boolean;
|
24
|
+
isSearchPanelHidden: boolean;
|
25
|
+
searchText: string;
|
26
|
+
filterByMultiple: boolean;
|
27
|
+
typeFilters: QUERY_BUILDER_PROPERTY_SEARCH_TYPE[];
|
28
|
+
constructor(queryBuilderState: QueryBuilderState);
|
29
|
+
toggleTypeFilter(val: QUERY_BUILDER_PROPERTY_SEARCH_TYPE): void;
|
30
|
+
setFilterByMultiple(val: boolean): void;
|
31
|
+
getMultiplePropertyNodes(): QueryBuilderExplorerTreeNodeData[];
|
32
|
+
classPropertyNodes(): QueryBuilderExplorerTreeNodeData[];
|
33
|
+
stringPropertyNodes(): QueryBuilderExplorerTreeNodeData[];
|
34
|
+
numberPropertyNodes(): QueryBuilderExplorerTreeNodeData[];
|
35
|
+
datePropertyNodes(): QueryBuilderExplorerTreeNodeData[];
|
36
|
+
booleanPropertyNodes(): QueryBuilderExplorerTreeNodeData[];
|
37
|
+
get filteredPropertyNodes(): QueryBuilderExplorerTreeNodeData[];
|
38
|
+
fetchAllPropertyNodes(): void;
|
39
|
+
fetchMappedPropertyNodes(propName: string): void;
|
40
|
+
setIsSearchPanelOpen(val: boolean): void;
|
41
|
+
setIsSearchPanelHidden(val: boolean): void;
|
42
|
+
setSearchText(val: string): void;
|
43
|
+
setSearchedMappedPropertyNodes(val: QueryBuilderExplorerTreeNodeData[]): void;
|
44
|
+
refreshPropertyState(): void;
|
45
|
+
}
|
46
|
+
//# sourceMappingURL=QueryBuilderPropertySearchPanelState.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderPropertySearchPanelState.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderPropertySearchPanelState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAgBH,OAAO,EAGL,kCAAkC,EACnC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAGL,KAAK,gCAAgC,EAGtC,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,qBAAa,oCAAoC;IAC/C,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,sBAAsB,EAAE,gCAAgC,EAAE,CAAM;IAChE,2BAA2B,EAAE,gCAAgC,EAAE,CAAM;IACrE,iBAAiB,UAAS;IAC1B,mBAAmB,UAAS;IAC5B,UAAU,SAAM;IAChB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,WAAW,EAAE,kCAAkC,EAAE,CAAC;gBAEtC,iBAAiB,EAAE,iBAAiB;IA4BhD,gBAAgB,CAAC,GAAG,EAAE,kCAAkC,GAAG,IAAI;IAQ/D,mBAAmB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAIvC,wBAAwB,IAAI,gCAAgC,EAAE;IAwB9D,kBAAkB,IAAI,gCAAgC,EAAE;IASxD,mBAAmB,IAAI,gCAAgC,EAAE;IAYzD,mBAAmB,IAAI,gCAAgC,EAAE;IAezD,iBAAiB,IAAI,gCAAgC,EAAE;IAgBvD,oBAAoB,IAAI,gCAAgC,EAAE;IAY1D,IAAI,qBAAqB,IAAI,gCAAgC,EAAE,CA0C9D;IAED,qBAAqB,IAAI,IAAI;IAoE7B,wBAAwB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAehD,oBAAoB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAIxC,sBAAsB,CAAC,GAAG,EAAE,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