@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,96 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
/**
|
3
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
4
|
+
*
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
* you may not use this file except in compliance with the License.
|
7
|
+
* You may obtain a copy of the License at
|
8
|
+
*
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
*
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
* See the License for the specific language governing permissions and
|
15
|
+
* limitations under the License.
|
16
|
+
*/
|
17
|
+
import { useCallback } from 'react';
|
18
|
+
import { observer } from 'mobx-react-lite';
|
19
|
+
import { useDrop } from 'react-dnd';
|
20
|
+
import { clsx, TreeView, BlankPanelPlaceholder, ChevronDownIcon, ChevronRightIcon, TimesIcon, CheckSquareIcon, SquareIcon, } from '@finos/legend-art';
|
21
|
+
import { QUERY_BUILDER_TEST_ID } from './QueryBuilder_TestID.js';
|
22
|
+
import { isNonNullable } from '@finos/legend-shared';
|
23
|
+
import { removeNodeRecursively, isGraphFetchTreeDataEmpty, } from '../stores/QueryBuilderGraphFetchTreeUtil.js';
|
24
|
+
import { QUERY_BUILDER_EXPLORER_TREE_DND_TYPE, } from '../stores/QueryBuilderExplorerState.js';
|
25
|
+
import { getClassPropertyIcon } from './shared/ElementIconUtils.js';
|
26
|
+
const QueryBuilderGraphFetchTreeNodeContainer = (props) => {
|
27
|
+
const { node, level, stepPaddingInRem, onNodeSelect, innerProps } = props;
|
28
|
+
const { removeNode } = innerProps;
|
29
|
+
const property = node.tree.property.value;
|
30
|
+
const type = property.genericType.value.rawType;
|
31
|
+
const subType = node.tree.subType?.value;
|
32
|
+
const isExpandable = Boolean(node.childrenIds.length);
|
33
|
+
const nodeExpandIcon = isExpandable ? (node.isOpen ? (_jsx(ChevronDownIcon, {})) : (_jsx(ChevronRightIcon, {}))) : (_jsx("div", {}));
|
34
|
+
const nodeTypeIcon = getClassPropertyIcon(type);
|
35
|
+
const toggleExpandNode = () => onNodeSelect?.(node);
|
36
|
+
const deleteNode = () => removeNode(node);
|
37
|
+
return (_jsxs("div", { className: "tree-view__node__container query-builder-graph-fetch-tree__node__container", style: {
|
38
|
+
paddingLeft: `${(level - 1) * (stepPaddingInRem ?? 2)}rem`,
|
39
|
+
display: 'flex',
|
40
|
+
}, children: [_jsxs("div", { className: "query-builder-graph-fetch-tree__node__content", children: [_jsxs("div", { className: "tree-view__node__icon query-builder-graph-fetch-tree__node__icon", children: [_jsx("div", { className: "query-builder-graph-fetch-tree__expand-icon", onClick: toggleExpandNode, children: nodeExpandIcon }), _jsx("div", { className: "query-builder-graph-fetch-tree__type-icon", onClick: toggleExpandNode, children: nodeTypeIcon })] }), _jsxs("div", { className: "tree-view__node__label query-builder-graph-fetch-tree__node__label", onClick: toggleExpandNode, children: [node.label, subType && (_jsx("div", { className: "query-builder-graph-fetch-tree__node__sub-type", children: _jsx("div", { className: "query-builder-graph-fetch-tree__node__sub-type__label", children: subType.name }) })), _jsx("div", { className: "query-builder-graph-fetch-tree__node__type", children: _jsx("div", { className: "query-builder-graph-fetch-tree__node__type__label", children: type.name }) })] })] }), _jsx("div", { className: "query-builder-graph-fetch-tree__node__actions", children: _jsx("button", { className: "query-builder-graph-fetch-tree__node__action", title: "Remove", tabIndex: -1, onClick: deleteNode, children: _jsx(TimesIcon, {}) }) })] }));
|
41
|
+
};
|
42
|
+
export const QueryBuilderGraphFetchTreeExplorer = observer((props) => {
|
43
|
+
const { graphFetchState, treeData, updateTreeData, isReadOnly } = props;
|
44
|
+
const onNodeSelect = (node) => {
|
45
|
+
if (node.childrenIds.length) {
|
46
|
+
node.isOpen = !node.isOpen;
|
47
|
+
}
|
48
|
+
updateTreeData({ ...treeData });
|
49
|
+
};
|
50
|
+
const getChildNodes = (node) => node.childrenIds
|
51
|
+
.map((id) => treeData.nodes.get(id))
|
52
|
+
.filter(isNonNullable);
|
53
|
+
const removeNode = (node) => {
|
54
|
+
removeNodeRecursively(treeData, node);
|
55
|
+
updateTreeData({ ...treeData });
|
56
|
+
};
|
57
|
+
const toggleChecked = () => graphFetchState.setChecked(!graphFetchState.isChecked);
|
58
|
+
return (_jsxs("div", { className: "query-builder-graph-fetch-tree", children: [_jsx("div", { className: "query-builder-graph-fetch-tree__settings", children: _jsxs("div", { className: clsx('panel__content__form__section__toggler'), onClick: toggleChecked, children: [_jsx("button", { className: clsx('panel__content__form__section__toggler__btn', {
|
59
|
+
'panel__content__form__section__toggler__btn--toggled': graphFetchState.isChecked,
|
60
|
+
}), children: graphFetchState.isChecked ? _jsx(CheckSquareIcon, {}) : _jsx(SquareIcon, {}) }), _jsx("div", { className: "panel__content__form__section__toggler__prompt", children: "Check graph fetch" })] }) }), _jsx("div", { className: "query-builder-graph-fetch-tree__container", children: _jsx(TreeView, { components: {
|
61
|
+
TreeNodeContainer: QueryBuilderGraphFetchTreeNodeContainer,
|
62
|
+
}, treeData: treeData, onNodeSelect: onNodeSelect, getChildNodes: getChildNodes, innerProps: {
|
63
|
+
isReadOnly,
|
64
|
+
removeNode,
|
65
|
+
} }) })] }));
|
66
|
+
});
|
67
|
+
export const QueryBuilderGraphFetchTreePanel = observer((props) => {
|
68
|
+
const { queryBuilderState } = props;
|
69
|
+
const fetchStructureState = queryBuilderState.fetchStructureState;
|
70
|
+
const graphFetchState = fetchStructureState.graphFetchTreeState;
|
71
|
+
const treeData = graphFetchState.treeData;
|
72
|
+
// Deep/Graph Fetch Tree
|
73
|
+
const updateTreeData = (data) => {
|
74
|
+
graphFetchState.setGraphFetchTree(data);
|
75
|
+
};
|
76
|
+
// Drag and Drop
|
77
|
+
const handleDrop = useCallback((item) => {
|
78
|
+
graphFetchState.addProperty(item.node);
|
79
|
+
}, [graphFetchState]);
|
80
|
+
const [{ isPropertyDragOver }, dropConnector] = useDrop(() => ({
|
81
|
+
accept: [
|
82
|
+
QUERY_BUILDER_EXPLORER_TREE_DND_TYPE.ENUM_PROPERTY,
|
83
|
+
QUERY_BUILDER_EXPLORER_TREE_DND_TYPE.PRIMITIVE_PROPERTY,
|
84
|
+
],
|
85
|
+
drop: (item, monitor) => {
|
86
|
+
if (!monitor.didDrop()) {
|
87
|
+
handleDrop(item);
|
88
|
+
} // prevent drop event propagation to accomondate for nested DnD
|
89
|
+
},
|
90
|
+
collect: (monitor) => ({
|
91
|
+
isPropertyDragOver: monitor.isOver({ shallow: true }),
|
92
|
+
}),
|
93
|
+
}), [handleDrop]);
|
94
|
+
return (_jsxs("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_GRAPH_FETCH, className: "panel__content dnd__overlay__container", ref: dropConnector, children: [_jsx("div", { className: clsx({ dnd__overlay: isPropertyDragOver }) }), (!treeData || isGraphFetchTreeDataEmpty(treeData)) && (_jsx(BlankPanelPlaceholder, { placeholderText: "Add a graph fetch property", tooltipText: "Drag and drop properties here" })), treeData && !isGraphFetchTreeDataEmpty(treeData) && (_jsx(QueryBuilderGraphFetchTreeExplorer, { graphFetchState: graphFetchState, treeData: treeData, isReadOnly: false, updateTreeData: updateTreeData }))] }));
|
95
|
+
});
|
96
|
+
//# sourceMappingURL=QueryBuilderGraphFetchTreePanel.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderGraphFetchTreePanel.js","sourceRoot":"","sources":["../../src/components/QueryBuilderGraphFetchTreePanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAA0B,OAAO,EAAE,MAAM,WAAW,CAAC;AAC5D,OAAO,EAEL,IAAI,EACJ,QAAQ,EACR,qBAAqB,EACrB,eAAe,EACf,gBAAgB,EAChB,SAAS,EACT,eAAe,EACf,UAA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,yBAAyB,EAC5D,SAAS,EAAC,wCAAwC,EAClD,GAAG,EAAE,aAAa,aAElB,cAAK,SAAS,EAAE,IAAI,CAAC,EAAE,YAAY,EAAE,kBAAkB,EAAE,CAAC,GAAI,EAC7D,CAAC,CAAC,QAAQ,IAAI,yBAAyB,CAAC,QAAQ,CAAC,CAAC,IAAI,CACrD,KAAC,qBAAqB,IACpB,eAAe,EAAC,4BAA4B,EAC5C,WAAW,EAAC,+BAA+B,GAC3C,CACH,EACA,QAAQ,IAAI,CAAC,yBAAyB,CAAC,QAAQ,CAAC,IAAI,CACnD,KAAC,kCAAkC,IACjC,eAAe,EAAE,eAAe,EAChC,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,KAAK,EACjB,cAAc,EAAE,cAAc,GAC9B,CACH,IACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -0,0 +1,42 @@
|
|
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
|
+
/// <reference types="react" resolution-mode="require"/>
|
17
|
+
import type { QueryBuilderState } from '../stores/QueryBuilderState.js';
|
18
|
+
import type { Type } from '@finos/legend-graph';
|
19
|
+
import { type LambdaEditorState } from '@finos/legend-application';
|
20
|
+
export declare const QueryBuilderLambdaEditor: ((props: {
|
21
|
+
queryBuilderState: QueryBuilderState;
|
22
|
+
className?: string;
|
23
|
+
disabled: boolean;
|
24
|
+
lambdaEditorState: LambdaEditorState;
|
25
|
+
/**
|
26
|
+
* TODO: when we pass in these expected type we should match a type as expected type if it's covariance, i.e. it is a subtype of
|
27
|
+
* the expected type. Note that we also have to handle that relationship for Primitive type
|
28
|
+
* See https://dzone.com/articles/covariance-and-contravariance
|
29
|
+
*/
|
30
|
+
expectedType?: Type;
|
31
|
+
matchedExpectedType?: () => boolean;
|
32
|
+
onExpectedTypeLabelSelect?: () => void;
|
33
|
+
forceBackdrop: boolean;
|
34
|
+
disableExpansion?: boolean | undefined;
|
35
|
+
forceExpansion?: boolean | undefined;
|
36
|
+
disablePopUp?: boolean | undefined;
|
37
|
+
useBaseTextEditorSettings?: boolean | undefined;
|
38
|
+
hideErrorBar?: boolean | undefined;
|
39
|
+
}) => JSX.Element) & {
|
40
|
+
displayName: string;
|
41
|
+
};
|
42
|
+
//# sourceMappingURL=QueryBuilderLambdaEditor.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderLambdaEditor.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderLambdaEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAMH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAGL,KAAK,iBAAiB,EAEvB,MAAM,2BAA2B,CAAC;AAEnC,eAAO,MAAM,wBAAwB,WAC3B;IACN,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,iBAAiB,EAAE,iBAAiB,CAAC;IACrC;;;;OAIG;IACH,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB,mBAAmB,CAAC,EAAE,MAAM,OAAO,CAAC;IACpC,yBAAyB,CAAC,EAAE,MAAM,IAAI,CAAC;IACvC,aAAa,EAAE,OAAO,CAAC;IACvB,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACvC,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACrC,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACnC,yBAAyB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAChD,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACpC;;CAmEF,CAAC"}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
/**
|
3
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
4
|
+
*
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
* you may not use this file except in compliance with the License.
|
7
|
+
* You may obtain a copy of the License at
|
8
|
+
*
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
*
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
* See the License for the specific language governing permissions and
|
15
|
+
* limitations under the License.
|
16
|
+
*/
|
17
|
+
import { flowResult } from 'mobx';
|
18
|
+
import { observer } from 'mobx-react-lite';
|
19
|
+
import { KeyCode } from 'monaco-editor';
|
20
|
+
import { useCallback, useMemo } from 'react';
|
21
|
+
import { useApplicationStore, LambdaEditor, } from '@finos/legend-application';
|
22
|
+
export const QueryBuilderLambdaEditor = observer((props) => {
|
23
|
+
const { queryBuilderState, className, lambdaEditorState, disabled, forceBackdrop, expectedType, onExpectedTypeLabelSelect, matchedExpectedType, disableExpansion, forceExpansion, disablePopUp, useBaseTextEditorSettings, hideErrorBar, } = props;
|
24
|
+
const applicationStore = useApplicationStore();
|
25
|
+
const backdropSetter = useCallback((val) => queryBuilderState.setBackdrop(val), [queryBuilderState]);
|
26
|
+
const onKeyDownEventHandlers = useMemo(() => [
|
27
|
+
{
|
28
|
+
matcher: (event) => event.keyCode === KeyCode.F9,
|
29
|
+
action: (event) => {
|
30
|
+
const handler = async () => {
|
31
|
+
lambdaEditorState.clearErrors();
|
32
|
+
if (!disabled) {
|
33
|
+
await flowResult(lambdaEditorState.convertLambdaGrammarStringToObject());
|
34
|
+
// abort action if parser error occurred
|
35
|
+
if (lambdaEditorState.parserError) {
|
36
|
+
return;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
await flowResult(queryBuilderState.compileQuery());
|
40
|
+
};
|
41
|
+
handler().catch(applicationStore.alertUnhandledError);
|
42
|
+
},
|
43
|
+
},
|
44
|
+
], [disabled, lambdaEditorState, applicationStore, queryBuilderState]);
|
45
|
+
return (_jsx(LambdaEditor, { className: className, disabled: disabled, lambdaEditorState: lambdaEditorState, expectedType: expectedType, matchedExpectedType: matchedExpectedType, onExpectedTypeLabelSelect: onExpectedTypeLabelSelect, forceBackdrop: forceBackdrop, backdropSetter: backdropSetter, disableExpansion: disableExpansion, forceExpansion: forceExpansion, disablePopUp: disablePopUp, useBaseTextEditorSettings: useBaseTextEditorSettings, hideErrorBar: hideErrorBar, onKeyDownEventHandlers: onKeyDownEventHandlers }, lambdaEditorState.uuid));
|
46
|
+
});
|
47
|
+
//# sourceMappingURL=QueryBuilderLambdaEditor.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderLambdaEditor.js","sourceRoot":"","sources":["../../src/components/QueryBuilderLambdaEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAuB,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAG7C,OAAO,EACL,mBAAmB,EACnB,YAAY,GAGb,MAAM,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,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,EAClB,iBAAiB,EAAE,iBAAiB,EACpC,YAAY,EAAE,YAAY,EAC1B,mBAAmB,EAAE,mBAAmB,EACxC,yBAAyB,EAAE,yBAAyB,EACpD,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,cAAc,EAC9B,gBAAgB,EAAE,gBAAgB,EAClC,cAAc,EAAE,cAAc,EAC9B,YAAY,EAAE,YAAY,EAC1B,yBAAyB,EAAE,yBAAyB,EACpD,YAAY,EAAE,YAAY,EAC1B,sBAAsB,EAAE,sBAAsB,IAdzC,iBAAiB,CAAC,IAAI,CAe3B,CACH,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -0,0 +1,24 @@
|
|
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
|
+
/// <reference types="react" resolution-mode="require"/>
|
17
|
+
import type { QueryBuilderState } from '../stores/QueryBuilderState.js';
|
18
|
+
export declare const MilestoningParametersEditor: ((props: {
|
19
|
+
queryBuilderState: QueryBuilderState;
|
20
|
+
close: () => void;
|
21
|
+
}) => JSX.Element) & {
|
22
|
+
displayName: string;
|
23
|
+
};
|
24
|
+
//# sourceMappingURL=QueryBuilderMilestoneEditor.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderMilestoneEditor.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderMilestoneEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AA2NxE,eAAO,MAAM,2BAA2B,WAC9B;IAAE,iBAAiB,EAAE,iBAAiB,CAAC;IAAC,OAAO,MAAM,IAAI,CAAA;CAAE;;CAqDpE,CAAC"}
|
@@ -0,0 +1,120 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
2
|
+
/**
|
3
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
4
|
+
*
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
* you may not use this file except in compliance with the License.
|
7
|
+
* You may obtain a copy of the License at
|
8
|
+
*
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
*
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
* See the License for the specific language governing permissions and
|
15
|
+
* limitations under the License.
|
16
|
+
*/
|
17
|
+
import { observer } from 'mobx-react-lite';
|
18
|
+
import { QUERY_BUILDER_PARAMETER_TREE_DND_TYPE, } from '../stores/QueryParametersState.js';
|
19
|
+
import { useCallback } from 'react';
|
20
|
+
import { GenericType, GenericTypeExplicitReference, MILESTONING_STEREOTYPE, observe_PrimitiveInstanceValue, PrimitiveInstanceValue, PRIMITIVE_TYPE, TYPICAL_MULTIPLICITY_TYPE, } from '@finos/legend-graph';
|
21
|
+
import { guaranteeNonNullable } from '@finos/legend-shared';
|
22
|
+
import { useDrop } from 'react-dnd';
|
23
|
+
import { VariableExpressionViewer } from './QueryBuilderParameterPanel.js';
|
24
|
+
import { Dialog } from '@finos/legend-art';
|
25
|
+
import { generateDefaultValueForPrimitiveType } from '../stores/QueryBuilderValueSpecificationBuilderHelper.js';
|
26
|
+
import { BasicValueSpecificationEditor } from '@finos/legend-application';
|
27
|
+
const MilestoningParameterEditor = observer((props) => {
|
28
|
+
const { queryBuilderState, stereotype } = props;
|
29
|
+
const handleDrop = useCallback((item) => {
|
30
|
+
if (stereotype === MILESTONING_STEREOTYPE.BUSINESS_TEMPORAL) {
|
31
|
+
queryBuilderState.querySetupState.setBusinessDate(item.variable.parameter);
|
32
|
+
}
|
33
|
+
else {
|
34
|
+
queryBuilderState.querySetupState.setProcessingDate(item.variable.parameter);
|
35
|
+
}
|
36
|
+
}, [queryBuilderState, stereotype]);
|
37
|
+
const [{ isMilestoningParameterValueDragOver }, dropConnector] = useDrop(() => ({
|
38
|
+
accept: [QUERY_BUILDER_PARAMETER_TREE_DND_TYPE.VARIABLE],
|
39
|
+
drop: (item, monitor) => {
|
40
|
+
if (!monitor.didDrop()) {
|
41
|
+
handleDrop(item);
|
42
|
+
}
|
43
|
+
},
|
44
|
+
collect: (monitor) => ({
|
45
|
+
isMilestoningParameterValueDragOver: monitor.isOver({
|
46
|
+
shallow: true,
|
47
|
+
}),
|
48
|
+
}),
|
49
|
+
}), [handleDrop]);
|
50
|
+
let milestoningParameter;
|
51
|
+
if (stereotype === MILESTONING_STEREOTYPE.BUSINESS_TEMPORAL) {
|
52
|
+
milestoningParameter = guaranteeNonNullable(queryBuilderState.querySetupState.businessDate);
|
53
|
+
}
|
54
|
+
else {
|
55
|
+
milestoningParameter = guaranteeNonNullable(queryBuilderState.querySetupState.processingDate);
|
56
|
+
}
|
57
|
+
const resetMilestoningParameter = () => {
|
58
|
+
const parameter = observe_PrimitiveInstanceValue(new PrimitiveInstanceValue(GenericTypeExplicitReference.create(new GenericType(queryBuilderState.graphManagerState.graph.getPrimitiveType(PRIMITIVE_TYPE.STRICTDATE))), queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE)), queryBuilderState.observableContext);
|
59
|
+
parameter.values = [
|
60
|
+
generateDefaultValueForPrimitiveType(PRIMITIVE_TYPE.STRICTDATE),
|
61
|
+
];
|
62
|
+
if (stereotype === MILESTONING_STEREOTYPE.BUSINESS_TEMPORAL) {
|
63
|
+
queryBuilderState.querySetupState.setBusinessDate(parameter);
|
64
|
+
}
|
65
|
+
else {
|
66
|
+
queryBuilderState.querySetupState.setProcessingDate(parameter);
|
67
|
+
}
|
68
|
+
};
|
69
|
+
return (_jsxs("div", { ref: dropConnector, className: "query-builder__parameter-editor dnd__overlay__container", children: [isMilestoningParameterValueDragOver && (_jsx("div", { className: "query-builder__parameter-editor__node__dnd__overlay", children: "Change Milestoning Parameter Value" })), _jsx(BasicValueSpecificationEditor, { valueSpecification: milestoningParameter, graph: queryBuilderState.graphManagerState.graph, setValueSpecification: (val) => stereotype === MILESTONING_STEREOTYPE.BUSINESS_TEMPORAL
|
70
|
+
? queryBuilderState.querySetupState.setBusinessDate(val)
|
71
|
+
: queryBuilderState.querySetupState.setProcessingDate(val), typeCheckOption: {
|
72
|
+
expectedType: queryBuilderState.graphManagerState.graph.getPrimitiveType(PRIMITIVE_TYPE.DATE),
|
73
|
+
}, resetValue: resetMilestoningParameter })] }));
|
74
|
+
});
|
75
|
+
const BiTemporalMilestoneEditor = observer((props) => {
|
76
|
+
const { queryBuilderState } = props;
|
77
|
+
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Processing Date" }), _jsx(MilestoningParameterEditor, { queryBuilderState: queryBuilderState, stereotype: MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL })] }), _jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Business Date" }), _jsx(MilestoningParameterEditor, { queryBuilderState: queryBuilderState, stereotype: MILESTONING_STEREOTYPE.BUSINESS_TEMPORAL })] })] }));
|
78
|
+
});
|
79
|
+
const BusinessTemporalMilestoneEditor = observer((props) => {
|
80
|
+
const { queryBuilderState } = props;
|
81
|
+
return (_jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Business Date" }), _jsx(MilestoningParameterEditor, { queryBuilderState: queryBuilderState, stereotype: MILESTONING_STEREOTYPE.BUSINESS_TEMPORAL }, "BusinessDate")] }));
|
82
|
+
});
|
83
|
+
const ProcessingTemporalMilestoneEditor = observer((props) => {
|
84
|
+
const { queryBuilderState } = props;
|
85
|
+
return (_jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Processing Date" }), _jsx(MilestoningParameterEditor, { queryBuilderState: queryBuilderState, stereotype: MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL }, "BusinessDate")] }));
|
86
|
+
});
|
87
|
+
const TemporalMilestoneEditor = (props) => {
|
88
|
+
const { queryBuilderState } = props;
|
89
|
+
if (queryBuilderState.querySetupState.processingDate &&
|
90
|
+
queryBuilderState.querySetupState.businessDate) {
|
91
|
+
return _jsx(BiTemporalMilestoneEditor, { queryBuilderState: queryBuilderState });
|
92
|
+
}
|
93
|
+
else if (queryBuilderState.querySetupState.businessDate) {
|
94
|
+
return (_jsx(BusinessTemporalMilestoneEditor, { queryBuilderState: queryBuilderState }));
|
95
|
+
}
|
96
|
+
else if (queryBuilderState.querySetupState.processingDate) {
|
97
|
+
return (_jsx(ProcessingTemporalMilestoneEditor, { queryBuilderState: queryBuilderState }));
|
98
|
+
}
|
99
|
+
else {
|
100
|
+
return null;
|
101
|
+
}
|
102
|
+
};
|
103
|
+
export const MilestoningParametersEditor = observer((props) => {
|
104
|
+
const { queryBuilderState, close } = props;
|
105
|
+
return (_jsx(Dialog, { open: true, onClose: close, classes: {
|
106
|
+
root: 'editor-modal__root-container',
|
107
|
+
container: 'editor-modal__container',
|
108
|
+
paper: 'editor-modal__content',
|
109
|
+
}, children: _jsxs("div", { className: "modal modal--dark editor-modal query-builder__parameters__modal", children: [_jsx("div", { className: "modal__header", children: _jsx("div", { className: "modal__title", children: "Milestoning Parameters" }) }), _jsxs("div", { className: "modal__body query-builder__parameters__modal__body", children: [_jsx(TemporalMilestoneEditor, { queryBuilderState: queryBuilderState }), _jsx("div", { className: "panel__content__form__section__header__label", children: "List of compatible milestoning parameters" }), _jsx("div", { className: "panel__content__form__section__list__items", children: queryBuilderState.queryParametersState.parameterStates
|
110
|
+
.filter((parameter) => parameter.parameter.genericType?.value.rawType.name ===
|
111
|
+
PRIMITIVE_TYPE.STRICTDATE ||
|
112
|
+
parameter.parameter.genericType?.value.rawType.name ===
|
113
|
+
PRIMITIVE_TYPE.LATESTDATE ||
|
114
|
+
parameter.parameter.genericType?.value.rawType.name ===
|
115
|
+
PRIMITIVE_TYPE.DATE ||
|
116
|
+
parameter.parameter.genericType?.value.rawType.name ===
|
117
|
+
PRIMITIVE_TYPE.DATETIME)
|
118
|
+
.map((parameter) => (_jsx(VariableExpressionViewer, { queryBuilderState: queryBuilderState, variableExpressionState: parameter }, parameter.uuid))) })] }), _jsx("div", { className: "modal__footer", children: _jsx("button", { className: "btn modal__footer__close-btn", onClick: close, children: "Close" }) })] }) }));
|
119
|
+
});
|
120
|
+
//# sourceMappingURL=QueryBuilderMilestoneEditor.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderMilestoneEditor.js","sourceRoot":"","sources":["../../src/components/QueryBuilderMilestoneEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EAEL,qCAAqC,GACtC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAEL,WAAW,EACX,4BAA4B,EAC5B,sBAAsB,EACtB,8BAA8B,EAC9B,sBAAsB,EACtB,cAAc,EACd,yBAAyB,GAC1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,oBAAoB,EAAE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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
|
+
/// <reference types="react" resolution-mode="require"/>
|
17
|
+
import type { QueryBuilderState } from '../stores/QueryBuilderState.js';
|
18
|
+
import { LambdaParameterState } from '@finos/legend-application';
|
19
|
+
export declare const VariableExpressionViewer: ((props: {
|
20
|
+
queryBuilderState: QueryBuilderState;
|
21
|
+
variableExpressionState: LambdaParameterState;
|
22
|
+
}) => JSX.Element) & {
|
23
|
+
displayName: string;
|
24
|
+
};
|
25
|
+
export declare const QueryBuilderParameterPanel: ((props: {
|
26
|
+
queryBuilderState: QueryBuilderState;
|
27
|
+
}) => JSX.Element) & {
|
28
|
+
displayName: string;
|
29
|
+
};
|
30
|
+
//# sourceMappingURL=QueryBuilderParameterPanel.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderParameterPanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderParameterPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAyBxE,OAAO,EAIL,oBAAoB,EAGrB,MAAM,2BAA2B,CAAC;AA4OnC,eAAO,MAAM,wBAAwB,WAC3B;IACN,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,uBAAuB,EAAE,oBAAoB,CAAC;CAC/C;;CA6DF,CAAC;AAEF,eAAO,MAAM,0BAA0B,WAC7B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAgFjD,CAAC"}
|
@@ -0,0 +1,148 @@
|
|
1
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
/**
|
3
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
4
|
+
*
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
* you may not use this file except in compliance with the License.
|
7
|
+
* You may obtain a copy of the License at
|
8
|
+
*
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
*
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
* See the License for the specific language governing permissions and
|
15
|
+
* limitations under the License.
|
16
|
+
*/
|
17
|
+
import { observer } from 'mobx-react-lite';
|
18
|
+
import { Dialog, BlankPanelContent, CustomSelectorInput, PencilIcon, TimesIcon, DollarIcon, PlusIcon, InputWithInlineValidation, } from '@finos/legend-art';
|
19
|
+
import { QUERY_BUILDER_PARAMETER_TREE_DND_TYPE, } from '../stores/QueryParametersState.js';
|
20
|
+
import { useEffect, useState } from 'react';
|
21
|
+
import { MULTIPLICITY_INFINITE, PRIMITIVE_TYPE, VariableExpression, Multiplicity, GenericTypeExplicitReference, GenericType, } from '@finos/legend-graph';
|
22
|
+
import { buildElementOption, variableExpression_setName, LambdaParameterState, LambdaParameterValuesEditor, getPackageableElementOptionalFormatter, } from '@finos/legend-application';
|
23
|
+
import { useDrag, useDragLayer } from 'react-dnd';
|
24
|
+
import { getEmptyImage } from 'react-dnd-html5-backend';
|
25
|
+
import { generateEnumerableNameFromToken } from '@finos/legend-shared';
|
26
|
+
import { DEFAULT_VARIABLE_NAME } from '../QueryBuilder_Const.js';
|
27
|
+
const VariableExpressionEditor = observer((props) => {
|
28
|
+
// main state
|
29
|
+
const { queryBuilderState, lambdaParameterState } = props;
|
30
|
+
const queryParametersState = queryBuilderState.queryParametersState;
|
31
|
+
const isCreating = !queryParametersState.parameterStates.includes(lambdaParameterState);
|
32
|
+
const varState = lambdaParameterState.parameter;
|
33
|
+
const multiplity = varState.multiplicity;
|
34
|
+
const validationMessage = !varState.name
|
35
|
+
? `Parameter name can't be empty`
|
36
|
+
: (isCreating &&
|
37
|
+
queryParametersState.parameterStates.find((p) => p.parameter.name === varState.name)) ||
|
38
|
+
(!isCreating &&
|
39
|
+
queryParametersState.parameterStates.filter((p) => p.parameter.name === varState.name).length > 1)
|
40
|
+
? 'Parameter name already exists'
|
41
|
+
: undefined;
|
42
|
+
// variable
|
43
|
+
const changeVariableName = (event) => {
|
44
|
+
variableExpression_setName(varState, event.target.value);
|
45
|
+
};
|
46
|
+
// type
|
47
|
+
const stringType = queryBuilderState.graphManagerState.graph.getPrimitiveType(PRIMITIVE_TYPE.STRING);
|
48
|
+
const variableType = lambdaParameterState.variableType ?? stringType;
|
49
|
+
const selectedType = buildElementOption(variableType);
|
50
|
+
const typeOptions = queryBuilderState.graphManagerState.graph.primitiveTypes
|
51
|
+
.map(buildElementOption)
|
52
|
+
.concat(queryBuilderState.graphManagerState.graph.enumerations.map(buildElementOption));
|
53
|
+
const changeType = (val) => {
|
54
|
+
if (variableType !== val.value) {
|
55
|
+
lambdaParameterState.changeVariableType(val.value);
|
56
|
+
}
|
57
|
+
};
|
58
|
+
// multiplicity
|
59
|
+
const changeLowerBound = (event) => {
|
60
|
+
lambdaParameterState.changeMultiplicity(parseInt(event.target.value), multiplity.upperBound);
|
61
|
+
};
|
62
|
+
const [upperBound, setUppBound] = useState(multiplity.upperBound === undefined
|
63
|
+
? MULTIPLICITY_INFINITE
|
64
|
+
: multiplity.upperBound.toString());
|
65
|
+
const changeUpperBound = (event) => {
|
66
|
+
const value = event.target.value;
|
67
|
+
if (value === MULTIPLICITY_INFINITE ||
|
68
|
+
value === '' ||
|
69
|
+
!isNaN(parseInt(value))) {
|
70
|
+
lambdaParameterState.changeMultiplicity(multiplity.lowerBound, value === MULTIPLICITY_INFINITE || value === ''
|
71
|
+
? undefined
|
72
|
+
: parseInt(value));
|
73
|
+
setUppBound(value);
|
74
|
+
}
|
75
|
+
};
|
76
|
+
const close = () => {
|
77
|
+
queryParametersState.setSelectedParameter(undefined);
|
78
|
+
};
|
79
|
+
const onAction = () => {
|
80
|
+
if (isCreating) {
|
81
|
+
queryParametersState.addParameter(lambdaParameterState);
|
82
|
+
}
|
83
|
+
close();
|
84
|
+
};
|
85
|
+
return (_jsx(Dialog, { open: Boolean(lambdaParameterState), onClose: close, classes: {
|
86
|
+
root: 'editor-modal__root-container',
|
87
|
+
container: 'editor-modal__container',
|
88
|
+
paper: 'editor-modal__content',
|
89
|
+
}, children: _jsxs("div", { className: "modal modal--dark editor-modal query-builder__parameters__modal", children: [_jsx("div", { className: "modal__header", children: _jsxs("div", { className: "modal__title", children: [`${isCreating ? 'Create ' : 'Update '}`, "Parameter"] }) }), _jsxs("div", { className: "modal__body query-builder__parameters__modal__body", children: [_jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Parameter Name" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "Name of the parameter. Should be descriptive of its purpose." }), _jsx("div", { className: "query-builder__parameters__parameter__name", children: _jsx(InputWithInlineValidation, { className: "query-builder__parameters__parameter__name__input input-group__input", spellCheck: false, value: varState.name, onChange: changeVariableName, placeholder: `Parameter name`, validationErrorMessage: validationMessage }) })] }), _jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Type" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "Data type of the parameter." }), _jsx(CustomSelectorInput, { placeholder: "Choose a type...", options: typeOptions, onChange: changeType, value: selectedType, darkMode: true, formatOptionLabel: getPackageableElementOptionalFormatter({
|
90
|
+
darkMode: true,
|
91
|
+
}) })] }), _jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Multiplicity" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "The multiplity determines how many values a parameter can have. Default is set to mandatory single vlue." }), _jsx("input", { className: "panel__content__form__section__input panel__content__form__section__number-input", type: "number", spellCheck: false, value: multiplity.lowerBound, onChange: changeLowerBound }), "..", _jsx("input", { className: "panel__content__form__section__input panel__content__form__section__number-input", spellCheck: false, value: upperBound, onChange: changeUpperBound })] })] }), _jsxs("div", { className: "modal__footer", children: [isCreating && (_jsx("button", { className: "btn modal__footer__close-btn btn--dark", onClick: onAction, disabled: Boolean(validationMessage), children: "Create" })), _jsx("button", { className: "btn modal__footer__close-btn", onClick: close, children: "Close" })] })] }) }));
|
92
|
+
});
|
93
|
+
const QueryBuilderParameterDragLayer = observer((props) => {
|
94
|
+
const { itemType, item, isDragging, currentPosition } = useDragLayer((monitor) => ({
|
95
|
+
itemType: monitor.getItemType(),
|
96
|
+
item: monitor.getItem(),
|
97
|
+
isDragging: monitor.isDragging(),
|
98
|
+
initialOffset: monitor.getInitialSourceClientOffset(),
|
99
|
+
currentPosition: monitor.getClientOffset(),
|
100
|
+
}));
|
101
|
+
if (!isDragging ||
|
102
|
+
!item ||
|
103
|
+
!Object.values(QUERY_BUILDER_PARAMETER_TREE_DND_TYPE).includes(itemType)) {
|
104
|
+
return null;
|
105
|
+
}
|
106
|
+
return (_jsx("div", { className: "query-builder__parameters__drag-preview-layer", children: _jsx("div", { className: "query-builder__parameters__drag-preview", style: !currentPosition
|
107
|
+
? { display: 'none' }
|
108
|
+
: {
|
109
|
+
transform: `translate(${currentPosition.x + 20}px, ${currentPosition.y + 10}px)`,
|
110
|
+
}, children: item.variable.variableName }) }));
|
111
|
+
});
|
112
|
+
export const VariableExpressionViewer = observer((props) => {
|
113
|
+
const { queryBuilderState, variableExpressionState } = props;
|
114
|
+
const queryParameterState = queryBuilderState.queryParametersState;
|
115
|
+
const variable = variableExpressionState.parameter;
|
116
|
+
const name = variable.name;
|
117
|
+
const variableType = variable.genericType?.value.rawType;
|
118
|
+
const typeName = variableType?.name;
|
119
|
+
const editVariable = () => {
|
120
|
+
queryParameterState.setSelectedParameter(variableExpressionState);
|
121
|
+
};
|
122
|
+
const deleteVariable = () => queryParameterState.removeParameter(variableExpressionState);
|
123
|
+
const [, dragConnector, dragPreviewConnector] = useDrag(() => ({
|
124
|
+
type: QUERY_BUILDER_PARAMETER_TREE_DND_TYPE.VARIABLE,
|
125
|
+
item: { variable: variableExpressionState },
|
126
|
+
}), [variableExpressionState]);
|
127
|
+
// hide default HTML5 preview image
|
128
|
+
useEffect(() => {
|
129
|
+
dragPreviewConnector(getEmptyImage(), { captureDraggingState: true });
|
130
|
+
}, [dragPreviewConnector]);
|
131
|
+
return (_jsxs("div", { className: "query-builder__parameters__parameter", ref: dragConnector, children: [_jsx(QueryBuilderParameterDragLayer, { queryBuilderState: queryBuilderState }), _jsxs("div", { className: "query-builder__parameters__parameter__content", children: [_jsx("div", { className: "query-builder__parameters__parameter__icon", children: _jsx("div", { className: "query-builder__parameters__parameter-icon", children: _jsx(DollarIcon, {}) }) }), _jsxs("div", { className: "query-builder__parameters__parameter__label", children: [name, _jsx("div", { className: "query-builder__parameters__parameter__type", children: _jsx("div", { className: "query-builder__parameters__parameter__type__label", children: typeName }) })] })] }), _jsxs("div", { className: "query-builder__parameters__parameter__actions", children: [_jsx("button", { className: "query-builder__parameters__parameter__action", tabIndex: -1, onClick: editVariable, title: "Edit Parameter", children: _jsx(PencilIcon, {}) }), _jsx("button", { className: "query-builder__parameters__parameter__action", onClick: deleteVariable, title: "Remove", children: _jsx(TimesIcon, {}) })] })] }));
|
132
|
+
});
|
133
|
+
export const QueryBuilderParameterPanel = observer((props) => {
|
134
|
+
const { queryBuilderState } = props;
|
135
|
+
const queryParameterState = queryBuilderState.queryParametersState;
|
136
|
+
const parametersDisabled = Boolean(queryBuilderState.mode.isParametersDisabled);
|
137
|
+
const varNames = queryBuilderState.queryParametersState.parameterStates.map((e) => e.variableName);
|
138
|
+
const addParameter = () => {
|
139
|
+
if (!parametersDisabled) {
|
140
|
+
const parmaterState = new LambdaParameterState(new VariableExpression(generateEnumerableNameFromToken(varNames, DEFAULT_VARIABLE_NAME), new Multiplicity(1, 1), GenericTypeExplicitReference.create(new GenericType(queryParameterState.queryBuilderState.graphManagerState.graph.getPrimitiveType(PRIMITIVE_TYPE.STRING)))), queryBuilderState.observableContext);
|
141
|
+
queryParameterState.setSelectedParameter(parmaterState);
|
142
|
+
parmaterState.mockParameterValue();
|
143
|
+
}
|
144
|
+
};
|
145
|
+
return (_jsxs("div", { className: "panel query-builder__parameters", children: [_jsxs("div", { className: "panel__header", children: [_jsx("div", { className: "panel__header__title", children: _jsx("div", { className: "panel__header__title__label", children: "parameters" }) }), _jsx("div", { className: "panel__header__actions", children: _jsx("button", { className: "panel__header__action", tabIndex: -1, onClick: addParameter, disabled: parametersDisabled, title: "Add Parameter", children: _jsx(PlusIcon, {}) }) })] }), _jsxs("div", { className: "panel__content query-builder__parameters__content", children: [!parametersDisabled &&
|
146
|
+
queryParameterState.parameterStates.map((parameter) => (_jsx(VariableExpressionViewer, { queryBuilderState: queryBuilderState, variableExpressionState: parameter }, parameter.uuid))), parametersDisabled && (_jsx(BlankPanelContent, { children: "Parameters not supported in this mode" }))] }), queryParameterState.selectedParameter && (_jsx(VariableExpressionEditor, { queryBuilderState: queryBuilderState, lambdaParameterState: queryParameterState.selectedParameter })), queryParameterState.parameterValuesEditorState.showModal && (_jsx(LambdaParameterValuesEditor, { graph: queryParameterState.queryBuilderState.graphManagerState.graph, lambdaParametersState: queryParameterState }))] }));
|
147
|
+
});
|
148
|
+
//# sourceMappingURL=QueryBuilderParameterPanel.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderParameterPanel.js","sourceRoot":"","sources":["../../src/components/QueryBuilderParameterPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;A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/D,qBAAqB,EAAE,mBAAmB,GAC1C,CACH,IACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -0,0 +1,31 @@
|
|
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
|
+
/// <reference types="react" resolution-mode="require"/>
|
17
|
+
import { PostFilterConditionState } from '../stores/QueryBuilderPostFilterState.js';
|
18
|
+
import { type QueryBuilderProjectionColumnState } from '../stores/QueryBuilderProjectionState.js';
|
19
|
+
import type { QueryBuilderState } from '../stores/QueryBuilderState.js';
|
20
|
+
export declare const QueryBuilderColumnBadge: ((props: {
|
21
|
+
postFilterConditionState: PostFilterConditionState;
|
22
|
+
onColumnChange: (columnState: QueryBuilderProjectionColumnState) => Promise<void>;
|
23
|
+
}) => JSX.Element) & {
|
24
|
+
displayName: string;
|
25
|
+
};
|
26
|
+
export declare const QueryBuilderPostFilterPanel: ((props: {
|
27
|
+
queryBuilderState: QueryBuilderState;
|
28
|
+
}) => JSX.Element) & {
|
29
|
+
displayName: string;
|
30
|
+
};
|
31
|
+
//# sourceMappingURL=QueryBuilderPostFilterPanel.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderPostFilterPanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderPostFilterPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAgEH,OAAO,EAGL,wBAAwB,EAMzB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,KAAK,iCAAiC,EAIvC,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAmOxE,eAAO,MAAM,uBAAuB;8BAEN,wBAAwB;kCAEnC,iCAAiC,KAC3C,QAAQ,IAAI,CAAC;;;CAwErB,CAAC;AAubF,eAAO,MAAM,2BAA2B,WAC9B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CA8NjD,CAAC"}
|