@finos/legend-extension-dsl-data-quality 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +201 -0
- package/README.md +1 -0
- package/lib/components/DSL_DataQuality_ClassElementDriver.d.ts +46 -0
- package/lib/components/DSL_DataQuality_ClassElementDriver.d.ts.map +1 -0
- package/lib/components/DSL_DataQuality_ClassElementDriver.js +116 -0
- package/lib/components/DSL_DataQuality_ClassElementDriver.js.map +1 -0
- package/lib/components/DSL_DataQuality_LegendStudioApplicationPlugin.d.ts +30 -0
- package/lib/components/DSL_DataQuality_LegendStudioApplicationPlugin.d.ts.map +1 -0
- package/lib/components/DSL_DataQuality_LegendStudioApplicationPlugin.js +161 -0
- package/lib/components/DSL_DataQuality_LegendStudioApplicationPlugin.js.map +1 -0
- package/lib/components/DSL_DataQuality_LegendStudioPlugin_Extension.d.ts +25 -0
- package/lib/components/DSL_DataQuality_LegendStudioPlugin_Extension.d.ts.map +1 -0
- package/lib/components/DSL_DataQuality_LegendStudioPlugin_Extension.js +2 -0
- package/lib/components/DSL_DataQuality_LegendStudioPlugin_Extension.js.map +1 -0
- package/lib/components/DSL_DataQuality_ServiceElementDriver.d.ts +27 -0
- package/lib/components/DSL_DataQuality_ServiceElementDriver.d.ts.map +1 -0
- package/lib/components/DSL_DataQuality_ServiceElementDriver.js +41 -0
- package/lib/components/DSL_DataQuality_ServiceElementDriver.js.map +1 -0
- package/lib/components/DSL_NewDataQualityClassValidationElement.d.ts +19 -0
- package/lib/components/DSL_NewDataQualityClassValidationElement.d.ts.map +1 -0
- package/lib/components/DSL_NewDataQualityClassValidationElement.js +64 -0
- package/lib/components/DSL_NewDataQualityClassValidationElement.js.map +1 -0
- package/lib/components/DSL_NewDataQualityServiceValidationElement.d.ts +19 -0
- package/lib/components/DSL_NewDataQualityServiceValidationElement.d.ts.map +1 -0
- package/lib/components/DSL_NewDataQualityServiceValidationElement.js +41 -0
- package/lib/components/DSL_NewDataQualityServiceValidationElement.js.map +1 -0
- package/lib/components/DataQualityClassValidationEditor.d.ts +19 -0
- package/lib/components/DataQualityClassValidationEditor.d.ts.map +1 -0
- package/lib/components/DataQualityClassValidationEditor.js +29 -0
- package/lib/components/DataQualityClassValidationEditor.js.map +1 -0
- package/lib/components/DataQualityConstraintsSelection.d.ts +39 -0
- package/lib/components/DataQualityConstraintsSelection.d.ts.map +1 -0
- package/lib/components/DataQualityConstraintsSelection.js +133 -0
- package/lib/components/DataQualityConstraintsSelection.js.map +1 -0
- package/lib/components/DataQualityDataSpaceBuilder.d.ts +22 -0
- package/lib/components/DataQualityDataSpaceBuilder.d.ts.map +1 -0
- package/lib/components/DataQualityDataSpaceBuilder.js +101 -0
- package/lib/components/DataQualityDataSpaceBuilder.js.map +1 -0
- package/lib/components/DataQualityExplorerPanel.d.ts +29 -0
- package/lib/components/DataQualityExplorerPanel.d.ts.map +1 -0
- package/lib/components/DataQualityExplorerPanel.js +185 -0
- package/lib/components/DataQualityExplorerPanel.js.map +1 -0
- package/lib/components/DataQualityFilterPanel.d.ts +24 -0
- package/lib/components/DataQualityFilterPanel.d.ts.map +1 -0
- package/lib/components/DataQualityFilterPanel.js +32 -0
- package/lib/components/DataQualityFilterPanel.js.map +1 -0
- package/lib/components/DataQualityMappingAndRuntimeBuilder.d.ts +22 -0
- package/lib/components/DataQualityMappingAndRuntimeBuilder.d.ts.map +1 -0
- package/lib/components/DataQualityMappingAndRuntimeBuilder.js +98 -0
- package/lib/components/DataQualityMappingAndRuntimeBuilder.js.map +1 -0
- package/lib/components/DataQualityResultPanel.d.ts +22 -0
- package/lib/components/DataQualityResultPanel.d.ts.map +1 -0
- package/lib/components/DataQualityResultPanel.js +110 -0
- package/lib/components/DataQualityResultPanel.js.map +1 -0
- package/lib/components/DataQualityResultValues.d.ts +24 -0
- package/lib/components/DataQualityResultValues.d.ts.map +1 -0
- package/lib/components/DataQualityResultValues.js +31 -0
- package/lib/components/DataQualityResultValues.js.map +1 -0
- package/lib/components/DataQualityServiceValidationEditor.d.ts +19 -0
- package/lib/components/DataQualityServiceValidationEditor.d.ts.map +1 -0
- package/lib/components/DataQualityServiceValidationEditor.js +29 -0
- package/lib/components/DataQualityServiceValidationEditor.js.map +1 -0
- package/lib/components/DataQualitySideBar.d.ts +40 -0
- package/lib/components/DataQualitySideBar.d.ts.map +1 -0
- package/lib/components/DataQualitySideBar.js +78 -0
- package/lib/components/DataQualitySideBar.js.map +1 -0
- package/lib/components/DataQualityStructuralValidationsPanel.d.ts +22 -0
- package/lib/components/DataQualityStructuralValidationsPanel.d.ts.map +1 -0
- package/lib/components/DataQualityStructuralValidationsPanel.js +50 -0
- package/lib/components/DataQualityStructuralValidationsPanel.js.map +1 -0
- package/lib/components/DataQualityTabs.d.ts +22 -0
- package/lib/components/DataQualityTabs.d.ts.map +1 -0
- package/lib/components/DataQualityTabs.js +58 -0
- package/lib/components/DataQualityTabs.js.map +1 -0
- package/lib/components/DataQualityValidationEditor.d.ts +23 -0
- package/lib/components/DataQualityValidationEditor.d.ts.map +1 -0
- package/lib/components/DataQualityValidationEditor.js +24 -0
- package/lib/components/DataQualityValidationEditor.js.map +1 -0
- package/lib/components/constants/DataQualityConstants.d.ts +24 -0
- package/lib/components/constants/DataQualityConstants.d.ts.map +1 -0
- package/lib/components/constants/DataQualityConstants.js +25 -0
- package/lib/components/constants/DataQualityConstants.js.map +1 -0
- package/lib/components/index.d.ts +19 -0
- package/lib/components/index.d.ts.map +1 -0
- package/lib/components/index.js +19 -0
- package/lib/components/index.js.map +1 -0
- package/lib/components/states/ConstraintState.d.ts +30 -0
- package/lib/components/states/ConstraintState.d.ts.map +1 -0
- package/lib/components/states/ConstraintState.js +55 -0
- package/lib/components/states/ConstraintState.js.map +1 -0
- package/lib/components/states/DataQualityClassValidationState.d.ts +43 -0
- package/lib/components/states/DataQualityClassValidationState.d.ts.map +1 -0
- package/lib/components/states/DataQualityClassValidationState.js +162 -0
- package/lib/components/states/DataQualityClassValidationState.js.map +1 -0
- package/lib/components/states/DataQualityGraphFetchTreeState.d.ts +34 -0
- package/lib/components/states/DataQualityGraphFetchTreeState.d.ts.map +1 -0
- package/lib/components/states/DataQualityGraphFetchTreeState.js +70 -0
- package/lib/components/states/DataQualityGraphFetchTreeState.js.map +1 -0
- package/lib/components/states/DataQualityQueryBuilderState.d.ts +19 -0
- package/lib/components/states/DataQualityQueryBuilderState.d.ts.map +1 -0
- package/lib/components/states/DataQualityQueryBuilderState.js +19 -0
- package/lib/components/states/DataQualityQueryBuilderState.js.map +1 -0
- package/lib/components/states/DataQualityResultState.d.ts +44 -0
- package/lib/components/states/DataQualityResultState.d.ts.map +1 -0
- package/lib/components/states/DataQualityResultState.js +154 -0
- package/lib/components/states/DataQualityResultState.js.map +1 -0
- package/lib/components/states/DataQualityServiceValidationState.d.ts +25 -0
- package/lib/components/states/DataQualityServiceValidationState.d.ts.map +1 -0
- package/lib/components/states/DataQualityServiceValidationState.js +33 -0
- package/lib/components/states/DataQualityServiceValidationState.js.map +1 -0
- package/lib/components/states/DataQualityState.d.ts +67 -0
- package/lib/components/states/DataQualityState.d.ts.map +1 -0
- package/lib/components/states/DataQualityState.js +204 -0
- package/lib/components/states/DataQualityState.js.map +1 -0
- package/lib/components/utils/DataQualityGraphFetchTreeUtil.d.ts +51 -0
- package/lib/components/utils/DataQualityGraphFetchTreeUtil.d.ts.map +1 -0
- package/lib/components/utils/DataQualityGraphFetchTreeUtil.js +321 -0
- package/lib/components/utils/DataQualityGraphFetchTreeUtil.js.map +1 -0
- package/lib/graph/metamodel/DSL_DataQuality_HashUtils.d.ts +29 -0
- package/lib/graph/metamodel/DSL_DataQuality_HashUtils.d.ts.map +1 -0
- package/lib/graph/metamodel/DSL_DataQuality_HashUtils.js +30 -0
- package/lib/graph/metamodel/DSL_DataQuality_HashUtils.js.map +1 -0
- package/lib/graph/metamodel/DSL_DataQuality_PureGraphPlugin.d.ts +22 -0
- package/lib/graph/metamodel/DSL_DataQuality_PureGraphPlugin.d.ts.map +1 -0
- package/lib/graph/metamodel/DSL_DataQuality_PureGraphPlugin.js +31 -0
- package/lib/graph/metamodel/DSL_DataQuality_PureGraphPlugin.js.map +1 -0
- package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityGraphFetchTree.d.ts +26 -0
- package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityGraphFetchTree.d.ts.map +1 -0
- package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityGraphFetchTree.js +44 -0
- package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityGraphFetchTree.js.map +1 -0
- package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.d.ts +47 -0
- package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.d.ts.map +1 -0
- package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js +75 -0
- package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js.map +1 -0
- package/lib/graph-manager/DSL_DataQuality_GraphManagerHelper.d.ts +20 -0
- package/lib/graph-manager/DSL_DataQuality_GraphManagerHelper.d.ts.map +1 -0
- package/lib/graph-manager/DSL_DataQuality_GraphManagerHelper.js +20 -0
- package/lib/graph-manager/DSL_DataQuality_GraphManagerHelper.js.map +1 -0
- package/lib/graph-manager/DSL_DataQuality_GraphManagerPreset.d.ts +20 -0
- package/lib/graph-manager/DSL_DataQuality_GraphManagerPreset.d.ts.map +1 -0
- package/lib/graph-manager/DSL_DataQuality_GraphManagerPreset.js +30 -0
- package/lib/graph-manager/DSL_DataQuality_GraphManagerPreset.js.map +1 -0
- package/lib/graph-manager/DSL_DataQuality_GraphModifierHelper.d.ts +26 -0
- package/lib/graph-manager/DSL_DataQuality_GraphModifierHelper.d.ts.map +1 -0
- package/lib/graph-manager/DSL_DataQuality_GraphModifierHelper.js +57 -0
- package/lib/graph-manager/DSL_DataQuality_GraphModifierHelper.js.map +1 -0
- package/lib/graph-manager/DSL_DataQuality_PureGraphManagerPlugin.d.ts +7 -0
- package/lib/graph-manager/DSL_DataQuality_PureGraphManagerPlugin.d.ts.map +1 -0
- package/lib/graph-manager/DSL_DataQuality_PureGraphManagerPlugin.js +42 -0
- package/lib/graph-manager/DSL_DataQuality_PureGraphManagerPlugin.js.map +1 -0
- package/lib/graph-manager/action/changeDetection/DSL_DataQuality_ObserverHelper.d.ts +24 -0
- package/lib/graph-manager/action/changeDetection/DSL_DataQuality_ObserverHelper.d.ts.map +1 -0
- package/lib/graph-manager/action/changeDetection/DSL_DataQuality_ObserverHelper.js +98 -0
- package/lib/graph-manager/action/changeDetection/DSL_DataQuality_ObserverHelper.js.map +1 -0
- package/lib/graph-manager/index.d.ts +19 -0
- package/lib/graph-manager/index.d.ts.map +1 -0
- package/lib/graph-manager/index.js +19 -0
- package/lib/graph-manager/index.js.map +1 -0
- package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.d.ts +27 -0
- package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.js +21 -0
- package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.js.map +1 -0
- package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.d.ts +25 -0
- package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.js +140 -0
- package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.js.map +1 -0
- package/lib/graph-manager/protocol/pure/DSL_DataQuality_buildGraphManagerExtension.d.ts +18 -0
- package/lib/graph-manager/protocol/pure/DSL_DataQuality_buildGraphManagerExtension.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/DSL_DataQuality_buildGraphManagerExtension.js +20 -0
- package/lib/graph-manager/protocol/pure/DSL_DataQuality_buildGraphManagerExtension.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.d.ts +41 -0
- package/lib/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.js +95 -0
- package/lib/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_DataQualityConstraintsConfiguration.d.ts +46 -0
- package/lib/graph-manager/protocol/pure/v1/V1_DataQualityConstraintsConfiguration.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_DataQualityConstraintsConfiguration.js +76 -0
- package/lib/graph-manager/protocol/pure/v1/V1_DataQualityConstraintsConfiguration.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityPropertyGraphFetchTree.d.ts +22 -0
- package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityPropertyGraphFetchTree.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityPropertyGraphFetchTree.js +32 -0
- package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityPropertyGraphFetchTree.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityRootGraphFetchTree.d.ts +22 -0
- package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityRootGraphFetchTree.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityRootGraphFetchTree.js +31 -0
- package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityRootGraphFetchTree.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationBuilderHelper.d.ts +24 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationBuilderHelper.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationBuilderHelper.js +92 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationBuilderHelper.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationSerializer.d.ts +20 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationSerializer.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationSerializer.js +56 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationSerializer.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationTransformer.d.ts +22 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationTransformer.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationTransformer.js +70 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationTransformer.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.d.ts +29 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.js +80 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.js.map +1 -0
- package/lib/index.css +17 -0
- package/lib/index.css.map +1 -0
- package/lib/package.json +87 -0
- package/package.json +87 -0
- package/src/components/DSL_DataQuality_ClassElementDriver.tsx +175 -0
- package/src/components/DSL_DataQuality_LegendStudioApplicationPlugin.tsx +220 -0
- package/src/components/DSL_DataQuality_LegendStudioPlugin_Extension.ts +39 -0
- package/src/components/DSL_DataQuality_ServiceElementDriver.tsx +57 -0
- package/src/components/DSL_NewDataQualityClassValidationElement.tsx +156 -0
- package/src/components/DSL_NewDataQualityServiceValidationElement.tsx +74 -0
- package/src/components/DataQualityClassValidationEditor.tsx +49 -0
- package/src/components/DataQualityConstraintsSelection.tsx +376 -0
- package/src/components/DataQualityDataSpaceBuilder.tsx +274 -0
- package/src/components/DataQualityExplorerPanel.tsx +584 -0
- package/src/components/DataQualityFilterPanel.tsx +50 -0
- package/src/components/DataQualityMappingAndRuntimeBuilder.tsx +224 -0
- package/src/components/DataQualityResultPanel.tsx +335 -0
- package/src/components/DataQualityResultValues.tsx +61 -0
- package/src/components/DataQualityServiceValidationEditor.tsx +49 -0
- package/src/components/DataQualitySideBar.tsx +216 -0
- package/src/components/DataQualityStructuralValidationsPanel.tsx +105 -0
- package/src/components/DataQualityTabs.tsx +104 -0
- package/src/components/DataQualityValidationEditor.tsx +52 -0
- package/src/components/constants/DataQualityConstants.ts +24 -0
- package/src/components/index.ts +19 -0
- package/src/components/states/ConstraintState.ts +70 -0
- package/src/components/states/DataQualityClassValidationState.ts +308 -0
- package/src/components/states/DataQualityGraphFetchTreeState.ts +125 -0
- package/src/components/states/DataQualityQueryBuilderState.ts +19 -0
- package/src/components/states/DataQualityResultState.ts +217 -0
- package/src/components/states/DataQualityServiceValidationState.ts +56 -0
- package/src/components/states/DataQualityState.ts +354 -0
- package/src/components/utils/DataQualityGraphFetchTreeUtil.ts +592 -0
- package/src/graph/metamodel/DSL_DataQuality_HashUtils.ts +29 -0
- package/src/graph/metamodel/DSL_DataQuality_PureGraphPlugin.ts +36 -0
- package/src/graph/metamodel/pure/packageableElements/data-quality/DataQualityGraphFetchTree.ts +55 -0
- package/src/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.ts +107 -0
- package/src/graph-manager/DSL_DataQuality_GraphManagerHelper.ts +46 -0
- package/src/graph-manager/DSL_DataQuality_GraphManagerPreset.ts +31 -0
- package/src/graph-manager/DSL_DataQuality_GraphModifierHelper.ts +113 -0
- package/src/graph-manager/DSL_DataQuality_PureGraphManagerPlugin.ts +59 -0
- package/src/graph-manager/action/changeDetection/DSL_DataQuality_ObserverHelper.ts +153 -0
- package/src/graph-manager/index.ts +19 -0
- package/src/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.ts +59 -0
- package/src/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.ts +283 -0
- package/src/graph-manager/protocol/pure/DSL_DataQuality_buildGraphManagerExtension.ts +27 -0
- package/src/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.ts +246 -0
- package/src/graph-manager/protocol/pure/v1/V1_DataQualityConstraintsConfiguration.ts +103 -0
- package/src/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityPropertyGraphFetchTree.ts +37 -0
- package/src/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityRootGraphFetchTree.ts +36 -0
- package/src/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationBuilderHelper.ts +241 -0
- package/src/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationSerializer.ts +113 -0
- package/src/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationTransformer.ts +139 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.ts +186 -0
- package/style/_data-quality-validation-builder.scss +1660 -0
- package/style/index.scss +67 -0
- package/tsconfig.json +137 -0
- package/tsconfig.package.json +9 -0
@@ -0,0 +1,274 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
import { observer } from 'mobx-react-lite';
|
18
|
+
import { useApplicationStore } from '@finos/legend-application';
|
19
|
+
import { useEffect } from 'react';
|
20
|
+
import { guaranteeType } from '@finos/legend-shared';
|
21
|
+
import { flowResult } from 'mobx';
|
22
|
+
import {
|
23
|
+
type Runtime,
|
24
|
+
getMappingCompatibleRuntimes,
|
25
|
+
PackageableElementExplicitReference,
|
26
|
+
RuntimePointer,
|
27
|
+
} from '@finos/legend-graph';
|
28
|
+
import { DataQualityClassSelector } from './DataQualitySideBar.js';
|
29
|
+
import {
|
30
|
+
CheckIcon,
|
31
|
+
createFilter,
|
32
|
+
MenuContentItemIcon,
|
33
|
+
MenuContentItemLabel,
|
34
|
+
MoreHorizontalIcon,
|
35
|
+
PlayIcon,
|
36
|
+
CustomSelectorInput,
|
37
|
+
ControlledDropdownMenu,
|
38
|
+
MenuContent,
|
39
|
+
MenuContentItem,
|
40
|
+
PURE_RuntimeIcon,
|
41
|
+
} from '@finos/legend-art';
|
42
|
+
import { resolveUsableDataSpaceClasses } from '@finos/legend-extension-dsl-data-space/graph';
|
43
|
+
import type { DataQualityClassValidationState } from './states/DataQualityClassValidationState.js';
|
44
|
+
import { DataSpaceIcon } from '@finos/legend-extension-dsl-data-space/application';
|
45
|
+
import {
|
46
|
+
type DataSpaceOption,
|
47
|
+
type ExecutionContextOption,
|
48
|
+
buildDataSpaceOption,
|
49
|
+
buildExecutionContextOption,
|
50
|
+
formatDataSpaceOptionLabel,
|
51
|
+
} from '@finos/legend-extension-dsl-data-space/application-query';
|
52
|
+
import {
|
53
|
+
buildRuntimeValueOption,
|
54
|
+
getRuntimeOptionFormatter,
|
55
|
+
} from '@finos/legend-query-builder';
|
56
|
+
|
57
|
+
export const DataQualityDataSpaceBuilderSetupPanelContent = observer(
|
58
|
+
(props: { dataQualityState: DataQualityClassValidationState }) => {
|
59
|
+
const { dataQualityState } = props;
|
60
|
+
const { dataQualityQueryBuilderState } = dataQualityState;
|
61
|
+
const dataSpace = dataQualityState.dataSpace;
|
62
|
+
if (!dataSpace) {
|
63
|
+
return null;
|
64
|
+
}
|
65
|
+
const applicationStore = useApplicationStore();
|
66
|
+
|
67
|
+
// data space
|
68
|
+
const dataSpaceOptions =
|
69
|
+
dataQualityState.dataSpaces.map(buildDataSpaceOption);
|
70
|
+
|
71
|
+
const selectedDataSpaceOption = {
|
72
|
+
label: dataSpace.title ?? dataSpace.name,
|
73
|
+
value: {
|
74
|
+
title: dataSpace.title,
|
75
|
+
name: dataSpace.name,
|
76
|
+
path: dataSpace.path,
|
77
|
+
defaultExecutionContext: dataSpace.defaultExecutionContext.name,
|
78
|
+
},
|
79
|
+
};
|
80
|
+
const executionContextOptions = dataSpace.executionContexts.map(
|
81
|
+
buildExecutionContextOption,
|
82
|
+
);
|
83
|
+
const runtimeOptions = getMappingCompatibleRuntimes(
|
84
|
+
dataQualityQueryBuilderState.executionContextState.mapping!,
|
85
|
+
dataQualityState.graphManagerState.usableRuntimes,
|
86
|
+
)
|
87
|
+
.map(
|
88
|
+
(rt) =>
|
89
|
+
new RuntimePointer(PackageableElementExplicitReference.create(rt)),
|
90
|
+
)
|
91
|
+
.map(buildRuntimeValueOption);
|
92
|
+
|
93
|
+
const selectedRuntimeOption = dataQualityQueryBuilderState
|
94
|
+
.executionContextState.runtimeValue
|
95
|
+
? buildRuntimeValueOption(
|
96
|
+
dataQualityQueryBuilderState.executionContextState.runtimeValue,
|
97
|
+
)
|
98
|
+
: null;
|
99
|
+
const classes = resolveUsableDataSpaceClasses(
|
100
|
+
dataSpace,
|
101
|
+
dataQualityQueryBuilderState.executionContextState.mapping!,
|
102
|
+
dataQualityState.graphManagerState,
|
103
|
+
);
|
104
|
+
|
105
|
+
const onDataSpaceOptionChange = (option: DataSpaceOption): void => {
|
106
|
+
dataQualityState.onDataSpaceChange(option.value);
|
107
|
+
dataQualityState.updateElementOnDataSpaceChange();
|
108
|
+
};
|
109
|
+
|
110
|
+
const selectedExecutionContextOption = buildExecutionContextOption(
|
111
|
+
dataQualityState.executionContext,
|
112
|
+
);
|
113
|
+
const onExecutionContextOptionChange = (
|
114
|
+
option: ExecutionContextOption,
|
115
|
+
): void => {
|
116
|
+
if (option.value === dataQualityState.executionContext) {
|
117
|
+
return;
|
118
|
+
}
|
119
|
+
dataQualityState.setExecutionContext(option.value);
|
120
|
+
dataQualityState.propagateExecutionContextChange(option.value);
|
121
|
+
dataQualityState.updateElementOnExecutionContextChange(option.value.name);
|
122
|
+
dataQualityState.onExecutionContextChange?.(option.value);
|
123
|
+
};
|
124
|
+
|
125
|
+
const changeRuntime = (option: { value: Runtime }): void => {
|
126
|
+
if (
|
127
|
+
option.value ===
|
128
|
+
dataQualityQueryBuilderState.executionContextState.runtimeValue
|
129
|
+
) {
|
130
|
+
return;
|
131
|
+
}
|
132
|
+
dataQualityQueryBuilderState.changeRuntime(option.value);
|
133
|
+
dataQualityState.onRuntimeChange?.(option.value);
|
134
|
+
};
|
135
|
+
|
136
|
+
const runtimeFilterOption = createFilter({
|
137
|
+
ignoreCase: true,
|
138
|
+
ignoreAccents: false,
|
139
|
+
stringify: (option: { value: Runtime }): string =>
|
140
|
+
guaranteeType(option.value, RuntimePointer).packageableRuntime.value
|
141
|
+
.path,
|
142
|
+
});
|
143
|
+
|
144
|
+
useEffect(() => {
|
145
|
+
flowResult(dataQualityState.loadDataSpaces()).catch(
|
146
|
+
applicationStore.alertUnhandledError,
|
147
|
+
);
|
148
|
+
}, [dataQualityState, applicationStore]);
|
149
|
+
|
150
|
+
return (
|
151
|
+
<>
|
152
|
+
<div className="data-quality-validation__setup__config-group">
|
153
|
+
<div className="data-quality-validation__setup__config-group__header">
|
154
|
+
<div className="data-quality-validation__setup__config-group__header__title">
|
155
|
+
data space execution context
|
156
|
+
</div>
|
157
|
+
<ControlledDropdownMenu
|
158
|
+
className="data-quality-validation__setup__config-group__header__dropdown-trigger"
|
159
|
+
title="Show Settings..."
|
160
|
+
content={
|
161
|
+
<MenuContent>
|
162
|
+
<MenuContentItem
|
163
|
+
onClick={(): void =>
|
164
|
+
dataQualityState.setShowRuntimeSelector(
|
165
|
+
!dataQualityState.showRuntimeSelector,
|
166
|
+
)
|
167
|
+
}
|
168
|
+
>
|
169
|
+
<MenuContentItemIcon>
|
170
|
+
{dataQualityState.showRuntimeSelector ? (
|
171
|
+
<CheckIcon />
|
172
|
+
) : null}
|
173
|
+
</MenuContentItemIcon>
|
174
|
+
<MenuContentItemLabel>
|
175
|
+
Show Runtime Selector
|
176
|
+
</MenuContentItemLabel>
|
177
|
+
</MenuContentItem>
|
178
|
+
</MenuContent>
|
179
|
+
}
|
180
|
+
menuProps={{
|
181
|
+
anchorOrigin: { vertical: 'bottom', horizontal: 'right' },
|
182
|
+
transformOrigin: { vertical: 'top', horizontal: 'right' },
|
183
|
+
}}
|
184
|
+
>
|
185
|
+
<MoreHorizontalIcon />
|
186
|
+
</ControlledDropdownMenu>
|
187
|
+
</div>
|
188
|
+
<div className="data-quality-validation__setup__config-group__content">
|
189
|
+
<div className="data-quality-validation__setup__config-group__item">
|
190
|
+
<div
|
191
|
+
className="btn--sm data-quality-validation__setup__config-group__item__label"
|
192
|
+
title="data space"
|
193
|
+
>
|
194
|
+
<DataSpaceIcon />
|
195
|
+
</div>
|
196
|
+
<CustomSelectorInput
|
197
|
+
className="panel__content__form__section__dropdown data-quality-validation__setup__config-group__item__selector"
|
198
|
+
options={dataSpaceOptions}
|
199
|
+
isLoading={dataQualityState.loadDataSpacesState.isInProgress}
|
200
|
+
onChange={onDataSpaceOptionChange}
|
201
|
+
value={selectedDataSpaceOption}
|
202
|
+
placeholder="Search for data space..."
|
203
|
+
escapeClearsValue={true}
|
204
|
+
darkMode={
|
205
|
+
!applicationStore.layoutService
|
206
|
+
.TEMPORARY__isLightColorThemeEnabled
|
207
|
+
}
|
208
|
+
formatOptionLabel={formatDataSpaceOptionLabel}
|
209
|
+
/>
|
210
|
+
</div>
|
211
|
+
<div className="data-quality-validation__setup__config-group__item">
|
212
|
+
<div
|
213
|
+
className="btn--sm data-quality-validation__setup__config-group__item__label"
|
214
|
+
title="execution context"
|
215
|
+
>
|
216
|
+
<PlayIcon className="data-quality-validation__setup__data-space__icon__execution-context" />
|
217
|
+
</div>
|
218
|
+
<CustomSelectorInput
|
219
|
+
className="panel__content__form__section__dropdown data-quality-validation__setup__config-group__item__selector"
|
220
|
+
placeholder="Choose an execution context..."
|
221
|
+
options={executionContextOptions}
|
222
|
+
disabled={
|
223
|
+
executionContextOptions.length < 1 ||
|
224
|
+
(executionContextOptions.length === 1 &&
|
225
|
+
Boolean(selectedExecutionContextOption))
|
226
|
+
}
|
227
|
+
onChange={onExecutionContextOptionChange}
|
228
|
+
value={selectedExecutionContextOption}
|
229
|
+
darkMode={
|
230
|
+
!applicationStore.layoutService
|
231
|
+
.TEMPORARY__isLightColorThemeEnabled
|
232
|
+
}
|
233
|
+
/>
|
234
|
+
</div>
|
235
|
+
{dataQualityState.showRuntimeSelector && (
|
236
|
+
<div className="data-quality-validation__setup__config-group__item">
|
237
|
+
<div
|
238
|
+
className="btn--sm data-quality-validation__setup__config-group__item__label"
|
239
|
+
title="runtime"
|
240
|
+
>
|
241
|
+
<PURE_RuntimeIcon />
|
242
|
+
</div>
|
243
|
+
<CustomSelectorInput
|
244
|
+
className="panel__content__form__section__dropdown data-quality-validation__setup__config-group__item__selector"
|
245
|
+
placeholder="Choose a runtime..."
|
246
|
+
noMatchMessage="No compatible runtime found for specified execution context"
|
247
|
+
options={runtimeOptions}
|
248
|
+
onChange={changeRuntime}
|
249
|
+
value={selectedRuntimeOption}
|
250
|
+
darkMode={
|
251
|
+
!applicationStore.layoutService
|
252
|
+
.TEMPORARY__isLightColorThemeEnabled
|
253
|
+
}
|
254
|
+
filterOption={runtimeFilterOption}
|
255
|
+
formatOptionLabel={getRuntimeOptionFormatter({
|
256
|
+
darkMode:
|
257
|
+
!applicationStore.layoutService
|
258
|
+
.TEMPORARY__isLightColorThemeEnabled,
|
259
|
+
})}
|
260
|
+
disabled={true}
|
261
|
+
/>
|
262
|
+
</div>
|
263
|
+
)}
|
264
|
+
</div>
|
265
|
+
</div>
|
266
|
+
<DataQualityClassSelector
|
267
|
+
dataQualityState={dataQualityState}
|
268
|
+
classes={classes}
|
269
|
+
noMatchMessage="No compatible class found for specified execution context"
|
270
|
+
/>
|
271
|
+
</>
|
272
|
+
);
|
273
|
+
},
|
274
|
+
);
|