@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,27 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
import { type EditorStore, NewElementDriver } from '@finos/legend-application-studio';
|
17
|
+
import { DataQualityServiceValidationConfiguration } from '../graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js';
|
18
|
+
import type { Service } from '@finos/legend-graph';
|
19
|
+
import { type PackageableElementOption } from '@finos/legend-lego/graph-editor';
|
20
|
+
export declare class DataQuality_ServiceElementDriver extends NewElementDriver<DataQualityServiceValidationConfiguration> {
|
21
|
+
serviceSelected: PackageableElementOption<Service> | undefined;
|
22
|
+
constructor(editorStore: EditorStore);
|
23
|
+
setServiceSelected(serviceSelected: PackageableElementOption<Service> | undefined): void;
|
24
|
+
get isValid(): boolean;
|
25
|
+
createElement(name: string): DataQualityServiceValidationConfiguration;
|
26
|
+
}
|
27
|
+
//# sourceMappingURL=DSL_DataQuality_ServiceElementDriver.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DSL_DataQuality_ServiceElementDriver.d.ts","sourceRoot":"","sources":["../../src/components/DSL_DataQuality_ServiceElementDriver.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,WAAW,EAChB,gBAAgB,EACjB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,yCAAyC,EAAE,MAAM,gGAAgG,CAAC;AAE3J,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EACL,KAAK,wBAAwB,EAE9B,MAAM,iCAAiC,CAAC;AAEzC,qBAAa,gCAAiC,SAAQ,gBAAgB,CAAC,yCAAyC,CAAC;IAC/G,eAAe,EAAE,wBAAwB,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC;gBAEnD,WAAW,EAAE,WAAW;IAYpC,kBAAkB,CAChB,eAAe,EAAE,wBAAwB,CAAC,OAAO,CAAC,GAAG,SAAS,GAC7D,IAAI;IAIP,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,yCAAyC;CAGvE"}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
import { NewElementDriver, } from '@finos/legend-application-studio';
|
17
|
+
import { DataQualityServiceValidationConfiguration } from '../graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js';
|
18
|
+
import { action, makeObservable, observable } from 'mobx';
|
19
|
+
import { buildElementOption, } from '@finos/legend-lego/graph-editor';
|
20
|
+
export class DataQuality_ServiceElementDriver extends NewElementDriver {
|
21
|
+
serviceSelected;
|
22
|
+
constructor(editorStore) {
|
23
|
+
super(editorStore);
|
24
|
+
makeObservable(this, {
|
25
|
+
serviceSelected: observable,
|
26
|
+
setServiceSelected: action,
|
27
|
+
});
|
28
|
+
this.serviceSelected =
|
29
|
+
editorStore.graphManagerState.usableServices.map(buildElementOption)[0];
|
30
|
+
}
|
31
|
+
setServiceSelected(serviceSelected) {
|
32
|
+
this.serviceSelected = serviceSelected;
|
33
|
+
}
|
34
|
+
get isValid() {
|
35
|
+
return Boolean(this.serviceSelected);
|
36
|
+
}
|
37
|
+
createElement(name) {
|
38
|
+
return new DataQualityServiceValidationConfiguration(name);
|
39
|
+
}
|
40
|
+
}
|
41
|
+
//# sourceMappingURL=DSL_DataQuality_ServiceElementDriver.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DSL_DataQuality_ServiceElementDriver.js","sourceRoot":"","sources":["../../src/components/DSL_DataQuality_ServiceElementDriver.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,gBAAgB,GACjB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,yCAAyC,EAAE,MAAM,gGAAgG,CAAC;AAC3J,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE1D,OAAO,EAEL,kBAAkB,GACnB,MAAM,iCAAiC,CAAC;AAEzC,MAAM,OAAO,gCAAiC,SAAQ,gBAA2D;IAC/G,eAAe,CAAgD;IAE/D,YAAY,WAAwB;QAClC,KAAK,CAAC,WAAW,CAAC,CAAC;QAEnB,cAAc,CAAC,IAAI,EAAE;YACnB,eAAe,EAAE,UAAU;YAC3B,kBAAkB,EAAE,MAAM;SAC3B,CAAC,CAAC;QAEH,IAAI,CAAC,eAAe;YAClB,WAAW,CAAC,iBAAiB,CAAC,cAAc,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5E,CAAC;IAED,kBAAkB,CAChB,eAA8D;QAE9D,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;IACzC,CAAC;IAED,IAAI,OAAO;QACT,OAAO,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;IACvC,CAAC;IAED,aAAa,CAAC,IAAY;QACxB,OAAO,IAAI,yCAAyC,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC;CACF"}
|
@@ -0,0 +1,19 @@
|
|
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
|
+
export declare const NewDataQualityClassValidationElementEditor: (() => import("react/jsx-runtime").JSX.Element) & {
|
17
|
+
displayName: string;
|
18
|
+
};
|
19
|
+
//# sourceMappingURL=DSL_NewDataQualityClassValidationElement.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DSL_NewDataQualityClassValidationElement.d.ts","sourceRoot":"","sources":["../../src/components/DSL_NewDataQualityClassValidationElement.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAiBH,eAAO,MAAM,0CAA0C;;CA4HrD,CAAC"}
|
@@ -0,0 +1,64 @@
|
|
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 { observer } from 'mobx-react-lite';
|
18
|
+
import { useEditorStore } from '@finos/legend-application-studio';
|
19
|
+
import { BaseRadioGroup, CustomSelectorInput } from '@finos/legend-art';
|
20
|
+
import { buildElementOption, } from '@finos/legend-lego/graph-editor';
|
21
|
+
import { DataQuality_ClassElementDriver, ELEMENT_CREATION_BASIS, } from './DSL_DataQuality_ClassElementDriver.js';
|
22
|
+
export const NewDataQualityClassValidationElementEditor = observer(() => {
|
23
|
+
const editorStore = useEditorStore();
|
24
|
+
const applicationStore = editorStore.applicationStore;
|
25
|
+
const dataQualityDataSpaceDriver = editorStore.newElementState.getNewElementDriver(DataQuality_ClassElementDriver);
|
26
|
+
const dqElementCreationBasis = dataQualityDataSpaceDriver.dqElementCreationBasis;
|
27
|
+
const dataSpacesOptions = dataQualityDataSpaceDriver.dataSpaceOptions;
|
28
|
+
const mappingOptions = dataQualityDataSpaceDriver.mappingOptions;
|
29
|
+
const runtimeOptions = dataQualityDataSpaceDriver.compatibleMappingRuntimes.map(buildElementOption);
|
30
|
+
const onDataSpaceChange = (val) => {
|
31
|
+
if (val) {
|
32
|
+
dataQualityDataSpaceDriver.setDataSpaceSelected(val);
|
33
|
+
}
|
34
|
+
};
|
35
|
+
const onMappingChange = (val) => {
|
36
|
+
if (val) {
|
37
|
+
dataQualityDataSpaceDriver.setMappingSelected(val);
|
38
|
+
}
|
39
|
+
else {
|
40
|
+
dataQualityDataSpaceDriver.setMappingSelected(undefined);
|
41
|
+
}
|
42
|
+
dataQualityDataSpaceDriver.setRuntimeSelected(dataQualityDataSpaceDriver.runtimeOptions.length > 0
|
43
|
+
? dataQualityDataSpaceDriver.runtimeOptions[0]
|
44
|
+
: undefined);
|
45
|
+
};
|
46
|
+
const onRuntimeChange = (val) => {
|
47
|
+
if (val) {
|
48
|
+
dataQualityDataSpaceDriver.setRuntimeSelected(val);
|
49
|
+
}
|
50
|
+
};
|
51
|
+
const handleDQElementCreationBasisChange = (event) => {
|
52
|
+
const validationElementCreationBasis = event.target
|
53
|
+
.value;
|
54
|
+
dataQualityDataSpaceDriver.setDqElementCreationBasis(validationElementCreationBasis);
|
55
|
+
};
|
56
|
+
return (_jsxs("div", { children: [_jsx("div", { className: "element-creation-basis", children: _jsx(BaseRadioGroup, { value: dqElementCreationBasis, onChange: handleDQElementCreationBasisChange, row: false, options: [
|
57
|
+
ELEMENT_CREATION_BASIS.DATASPACE_BASED,
|
58
|
+
ELEMENT_CREATION_BASIS.MAPPING_RUNTIME_BASED,
|
59
|
+
], size: 2 }) }), dqElementCreationBasis === ELEMENT_CREATION_BASIS.DATASPACE_BASED ? (_jsxs("div", { children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "DataSpace" }), _jsx("div", { className: "data-quality-explorer__new-element-modal__driver", children: _jsx(CustomSelectorInput, { className: "data-quality-explorer__new-element-modal__driver__dropdown", options: dataSpacesOptions, onChange: onDataSpaceChange, value: dataQualityDataSpaceDriver.dataSpaceSelected, darkMode: !applicationStore.layoutService
|
60
|
+
.TEMPORARY__isLightColorThemeEnabled }) })] })) : (_jsxs("div", { children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Mapping" }), _jsx("div", { className: "data-quality-explorer__new-element-modal__driver", children: _jsx(CustomSelectorInput, { className: "data-quality-explorer__new-element-modal__driver__dropdown", options: mappingOptions, onChange: onMappingChange, value: dataQualityDataSpaceDriver.mappingSelected, darkMode: !applicationStore.layoutService
|
61
|
+
.TEMPORARY__isLightColorThemeEnabled }) }), _jsx("div", { className: "panel__content__form__section__header__label", children: "Runtime" }), _jsx("div", { className: "data-quality-explorer__new-element-modal__driver", children: _jsx(CustomSelectorInput, { className: "data-quality-explorer__new-element-modal__driver__dropdown", options: runtimeOptions, onChange: onRuntimeChange, value: dataQualityDataSpaceDriver.runtimeSelected, darkMode: !applicationStore.layoutService
|
62
|
+
.TEMPORARY__isLightColorThemeEnabled }) })] }))] }));
|
63
|
+
});
|
64
|
+
//# sourceMappingURL=DSL_NewDataQualityClassValidationElement.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DSL_NewDataQualityClassValidationElement.js","sourceRoot":"","sources":["../../src/components/DSL_NewDataQualityClassValidationElement.tsx"],"names":[],"mapp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AC/D,KAAC,mBAAmB,IAClB,SAAS,EAAC,4DAA4D,EACtE,OAAO,EAAE,cAAc,EACvB,QAAQ,EAAE,eAAe,EACzB,KAAK,EAAE,0BAA0B,CAAC,eAAe,EACjD,QAAQ,EACN,CAAC,gBAAgB,CAAC,aAAa;iCAC5B,mCAAmC,GAExC,GACE,EACN,cAAK,SAAS,EAAC,8CAA8C,wBAEvD,EACN,cAAK,SAAS,EAAC,kDAAkD,YAC/D,KAAC,mBAAmB,IAClB,SAAS,EAAC,4DAA4D,EACtE,OAAO,EAAE,cAAc,EACvB,QAAQ,EAAE,eAAe,EACzB,KAAK,EAAE,0BAA0B,CAAC,eAAe,EACjD,QAAQ,EACN,CAAC,gBAAgB,CAAC,aAAa;iCAC5B,mCAAmC,GAExC,GACE,IACF,CACP,IACG,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
@@ -0,0 +1,19 @@
|
|
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
|
+
export declare const NewDataQualityServiceValidationElementEditor: (() => import("react/jsx-runtime").JSX.Element) & {
|
17
|
+
displayName: string;
|
18
|
+
};
|
19
|
+
//# sourceMappingURL=DSL_NewDataQualityServiceValidationElement.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DSL_NewDataQualityServiceValidationElement.d.ts","sourceRoot":"","sources":["../../src/components/DSL_NewDataQualityServiceValidationElement.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAYH,eAAO,MAAM,4CAA4C;;CA+CvD,CAAC"}
|
@@ -0,0 +1,41 @@
|
|
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 { useEditorStore } from '@finos/legend-application-studio';
|
19
|
+
import { CustomSelectorInput } from '@finos/legend-art';
|
20
|
+
import { DataQuality_ServiceElementDriver } from './DSL_DataQuality_ServiceElementDriver.js';
|
21
|
+
import { buildElementOption, } from '@finos/legend-lego/graph-editor';
|
22
|
+
export const NewDataQualityServiceValidationElementEditor = observer(() => {
|
23
|
+
const editorStore = useEditorStore();
|
24
|
+
const applicationStore = editorStore.applicationStore;
|
25
|
+
const dataQualityServiceElementDriver = editorStore.newElementState.getNewElementDriver(DataQuality_ServiceElementDriver);
|
26
|
+
const serviceOptions = editorStore.graphManagerState.usableServices.map(buildElementOption);
|
27
|
+
const selectedServiceOption = dataQualityServiceElementDriver.serviceSelected
|
28
|
+
? {
|
29
|
+
label: dataQualityServiceElementDriver.serviceSelected.value.name,
|
30
|
+
value: dataQualityServiceElementDriver.serviceSelected,
|
31
|
+
}
|
32
|
+
: undefined;
|
33
|
+
const onServiceOptionChange = (val) => {
|
34
|
+
if (val) {
|
35
|
+
dataQualityServiceElementDriver.setServiceSelected(val);
|
36
|
+
}
|
37
|
+
};
|
38
|
+
return (_jsx(_Fragment, { children: _jsxs("div", { children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Service" }), _jsx("div", { className: "data-quality-explorer__new-element-modal__driver", children: _jsx(CustomSelectorInput, { className: "data-quality-explorer__new-element-modal__driver__dropdown", options: serviceOptions, onChange: onServiceOptionChange, value: selectedServiceOption, darkMode: !applicationStore.layoutService
|
39
|
+
.TEMPORARY__isLightColorThemeEnabled }) })] }) }));
|
40
|
+
});
|
41
|
+
//# sourceMappingURL=DSL_NewDataQualityServiceValidationElement.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DSL_NewDataQualityServiceValidationElement.js","sourceRoot":"","sources":["../../src/components/DSL_NewDataQualityServiceValidationElement.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAC;AAC7F,OAAO,EAEL,kBAAkB,GACnB,MAAM,iCAAiC,CAAC;AAGzC,MAAM,CAAC,MAAM,4CAA4C,GAAG,QAAQ,CAAC,GAAG,EAAE;IACxE,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,gBAAgB,GAAG,WAAW,CAAC,gBAAgB,CAAC;IACtD,MAAM,+BAA+B,GACnC,WAAW,CAAC,eAAe,CAAC,mBAAmB,CAC7C,gCAAgC,CACjC,CAAC;IAEJ,MAAM,cAAc,GAClB,WAAW,CAAC,iBAAiB,CAAC,cAAc,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;IAEvE,MAAM,qBAAqB,GAAG,+BAA+B,CAAC,eAAe;QAC3E,CAAC,CAAC;YACE,KAAK,EAAE,+BAA+B,CAAC,eAAe,CAAC,KAAK,CAAC,IAAI;YACjE,KAAK,EAAE,+BAA+B,CAAC,eAAe;SACvD;QACH,CAAC,CAAC,SAAS,CAAC;IAEd,MAAM,qBAAqB,GAAG,CAC5B,GAAkD,EAC5C,EAAE;QACR,IAAI,GAAG,EAAE,CAAC;YACR,+BAA+B,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC;QAC1D,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,CACL,4BACE,0BACE,cAAK,SAAS,EAAC,8CAA8C,wBAEvD,EACN,cAAK,SAAS,EAAC,kDAAkD,YAC/D,KAAC,mBAAmB,IAClB,SAAS,EAAC,4DAA4D,EACtE,OAAO,EAAE,cAAc,EACvB,QAAQ,EAAE,qBAAqB,EAC/B,KAAK,EAAE,qBAAqB,EAC5B,QAAQ,EACN,CAAC,gBAAgB,CAAC,aAAa;6BAC5B,mCAAmC,GAExC,GACE,IACF,GACL,CACJ,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
@@ -0,0 +1,19 @@
|
|
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
|
+
export declare const DataQualityClassValidationEditor: (() => import("react/jsx-runtime").JSX.Element) & {
|
17
|
+
displayName: string;
|
18
|
+
};
|
19
|
+
//# sourceMappingURL=DataQualityClassValidationEditor.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DataQualityClassValidationEditor.d.ts","sourceRoot":"","sources":["../../src/components/DataQualityClassValidationEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAUH,eAAO,MAAM,gCAAgC;;CAwB3C,CAAC"}
|
@@ -0,0 +1,29 @@
|
|
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 { observer } from 'mobx-react-lite';
|
18
|
+
import { useEditorStore } from '@finos/legend-application-studio';
|
19
|
+
import { DataQualityClassValidationState } from './states/DataQualityClassValidationState.js';
|
20
|
+
import { DataQualityClassValidationSideBar } from './DataQualitySideBar.js';
|
21
|
+
import { DataQualityValidationEditor } from './DataQualityValidationEditor.js';
|
22
|
+
import { DataQualityExplorerPanel } from './DataQualityExplorerPanel.js';
|
23
|
+
import { ResizablePanel, ResizablePanelGroup } from '@finos/legend-art';
|
24
|
+
export const DataQualityClassValidationEditor = observer(() => {
|
25
|
+
const editorStore = useEditorStore();
|
26
|
+
const dataQualityClassValidationState = editorStore.tabManagerState.getCurrentEditorState(DataQualityClassValidationState);
|
27
|
+
return (_jsx(DataQualityValidationEditor, { dataQualityState: dataQualityClassValidationState, SideBarBasisComponent: _jsx(DataQualityClassValidationSideBar, { dataQualityClassValidationState: dataQualityClassValidationState, children: _jsx(ResizablePanelGroup, { orientation: "horizontal", children: _jsx(ResizablePanel, { minSize: 40, direction: 1, children: _jsx(DataQualityExplorerPanel, { dataQualityState: dataQualityClassValidationState }) }) }) }) }));
|
28
|
+
});
|
29
|
+
//# sourceMappingURL=DataQualityClassValidationEditor.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DataQualityClassValidationEditor.js","sourceRoot":"","sources":["../../src/components/DataQualityClassValidationEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,+BAA+B,EAAE,MAAM,6CAA6C,CAAC;AAC9F,OAAO,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAC;AAC5E,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExE,MAAM,CAAC,MAAM,gCAAgC,GAAG,QAAQ,CAAC,GAAG,EAAE;IAC5D,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,+BAA+B,GACnC,WAAW,CAAC,eAAe,CAAC,qBAAqB,CAC/C,+BAA+B,CAChC,CAAC;IACJ,OAAO,CACL,KAAC,2BAA2B,IAC1B,gBAAgB,EAAE,+BAA+B,EACjD,qBAAqB,EACnB,KAAC,iCAAiC,IAChC,+BAA+B,EAAE,+BAA+B,YAEhE,KAAC,mBAAmB,IAAC,WAAW,EAAC,YAAY,YAC3C,KAAC,cAAc,IAAC,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,YACvC,KAAC,wBAAwB,IACvB,gBAAgB,EAAE,+BAA+B,GACjD,GACa,GACG,GACY,GAEtC,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
import type { DataQualityState } from './states/DataQualityState.js';
|
17
|
+
import { type DataQualityGraphFetchTreeData, DataQualityGraphFetchTreeNodeData } from './utils/DataQualityGraphFetchTreeUtil.js';
|
18
|
+
import { type TreeNodeContainerProps } from '@finos/legend-art';
|
19
|
+
export declare const getQueryBuilderExplorerTreeNodeSortRank: (node: DataQualityGraphFetchTreeNodeData) => number;
|
20
|
+
export declare const DataQualityConstraintsTreeNodeContainer: ((props: TreeNodeContainerProps<DataQualityGraphFetchTreeNodeData, {
|
21
|
+
dataQualityState: DataQualityState;
|
22
|
+
isReadOnly: boolean;
|
23
|
+
removeNode?: (node: DataQualityGraphFetchTreeNodeData) => void;
|
24
|
+
}>) => import("react/jsx-runtime").JSX.Element) & {
|
25
|
+
displayName: string;
|
26
|
+
};
|
27
|
+
export declare const ConstraintsSelectionExplorer: ((props: {
|
28
|
+
constraintsClasses: DataQualityGraphFetchTreeData;
|
29
|
+
dataQualityState: DataQualityState;
|
30
|
+
updateTreeData: (data: DataQualityGraphFetchTreeData) => void;
|
31
|
+
}) => import("react/jsx-runtime").JSX.Element) & {
|
32
|
+
displayName: string;
|
33
|
+
};
|
34
|
+
export declare const DataQualityConstraintsSelection: ((props: {
|
35
|
+
dataQualityState: DataQualityState;
|
36
|
+
}) => import("react/jsx-runtime").JSX.Element) & {
|
37
|
+
displayName: string;
|
38
|
+
};
|
39
|
+
//# sourceMappingURL=DataQualityConstraintsSelection.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DataQualityConstraintsSelection.d.ts","sourceRoot":"","sources":["../../src/components/DataQualityConstraintsSelection.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAIrE,OAAO,EACL,KAAK,6BAA6B,EAClC,iCAAiC,EAGlC,MAAM,0CAA0C,CAAC;AAElD,OAAO,EACL,KAAK,sBAAsB,EAW5B,MAAM,mBAAmB,CAAC;AAkB3B,eAAO,MAAM,uCAAuC,SAC5C,iCAAiC,KACtC,MAQF,CAAC;AAEF,eAAO,MAAM,uCAAuC,WAEzC,sBAAsB,CAC3B,iCAAiC,EACjC;IACE,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,iCAAiC,KAAK,IAAI,CAAC;CAChE,CACF;;CAwIJ,CAAC;AAEF,eAAO,MAAM,4BAA4B,WAC/B;IACN,kBAAkB,EAAE,6BAA6B,CAAC;IAClD,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,cAAc,EAAE,CAAC,IAAI,EAAE,6BAA6B,KAAK,IAAI,CAAC;CAC/D;;CAwEF,CAAC;AAEF,eAAO,MAAM,+BAA+B,WAClC;IAAE,gBAAgB,EAAE,gBAAgB,CAAA;CAAE;;CA8E/C,CAAC"}
|
@@ -0,0 +1,133 @@
|
|
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 { useDrop } from 'react-dnd';
|
19
|
+
import { useCallback } from 'react';
|
20
|
+
import { getClassPropertyIcon } from '@finos/legend-lego/graph-editor';
|
21
|
+
import { DataQualityGraphFetchTreeNodeData, isConstraintsClassesTreeEmpty, removeNodeRecursively, } from './utils/DataQualityGraphFetchTreeUtil.js';
|
22
|
+
import { BlankPanelPlaceholder, CheckSquareIcon, ChevronDownIcon, ChevronRightIcon, clsx, PanelDropZone, PURE_UnknownElementTypeIcon, SquareIcon, TimesIcon, TreeView, } from '@finos/legend-art';
|
23
|
+
import { dataQualityClassValidation_setDataQualityGraphFetchTree } from '../graph-manager/DSL_DataQuality_GraphModifierHelper.js';
|
24
|
+
import { Class, Enumeration, PropertyGraphFetchTree, RootGraphFetchTree, } from '@finos/legend-graph';
|
25
|
+
import { DATA_QUALITY_VALIDATION_TEST_ID } from './constants/DataQualityConstants.js';
|
26
|
+
import { flowResult } from 'mobx';
|
27
|
+
import { DataQualityStructuralValidationsPanel } from './DataQualityStructuralValidationsPanel.js';
|
28
|
+
import { QUERY_BUILDER_EXPLORER_TREE_DND_TYPE, } from '@finos/legend-query-builder';
|
29
|
+
export const getQueryBuilderExplorerTreeNodeSortRank = (node) => {
|
30
|
+
if (node.type instanceof Class) {
|
31
|
+
return 1;
|
32
|
+
}
|
33
|
+
else if (node.type instanceof Enumeration) {
|
34
|
+
return 2;
|
35
|
+
}
|
36
|
+
else {
|
37
|
+
return 3;
|
38
|
+
}
|
39
|
+
};
|
40
|
+
export const DataQualityConstraintsTreeNodeContainer = observer((props) => {
|
41
|
+
const { node, level, stepPaddingInRem, onNodeSelect, innerProps } = props;
|
42
|
+
const { dataQualityState, isReadOnly, removeNode } = innerProps;
|
43
|
+
const { dataQualityGraphFetchTreeState } = dataQualityState;
|
44
|
+
let property, type;
|
45
|
+
if (node.tree instanceof PropertyGraphFetchTree) {
|
46
|
+
property = node.tree.property.value;
|
47
|
+
type = property.genericType.value.rawType;
|
48
|
+
}
|
49
|
+
else if (node.tree instanceof RootGraphFetchTree) {
|
50
|
+
type = node.tree.class.value;
|
51
|
+
}
|
52
|
+
const isExpandable = Boolean(node.childrenIds.length);
|
53
|
+
const nodeExpandIcon = isExpandable ? (node.isOpen ? (_jsx(ChevronDownIcon, {})) : (_jsx(ChevronRightIcon, {}))) : (_jsx("div", {}));
|
54
|
+
const nodeTypeIcon = type ? (getClassPropertyIcon(type)) : (_jsx(PURE_UnknownElementTypeIcon, {}));
|
55
|
+
const toggleExpandNode = () => onNodeSelect?.(node);
|
56
|
+
const deleteNode = () => removeNode?.(node);
|
57
|
+
const toggleChecked = (constraint) => {
|
58
|
+
dataQualityGraphFetchTreeState.updateNode(node, constraint.constraint, !constraint.isSelected);
|
59
|
+
constraint.setIsSelected(!constraint.isSelected);
|
60
|
+
};
|
61
|
+
return (_jsxs("div", { className: "constraints-selection-node", children: [_jsxs("div", { className: "tree-view__node__container data-quality-validation-graph-fetch-tree__node__container", style: {
|
62
|
+
paddingLeft: `${(level - 1) * (stepPaddingInRem ?? 2)}rem`,
|
63
|
+
display: 'flex',
|
64
|
+
}, children: [_jsxs("div", { className: "data-quality-validation-graph-fetch-tree__node__content", children: [_jsxs("div", { className: "tree-view__node__icon data-quality-validation-graph-fetch-tree__node__icon", children: [_jsx("div", { className: "data-quality-validation-graph-fetch-tree__expand-icon", onClick: toggleExpandNode, children: nodeExpandIcon }), _jsx("div", { className: "data-quality-validation-graph-fetch-tree__type-icon", onClick: toggleExpandNode, children: nodeTypeIcon })] }), _jsxs("div", { className: "tree-view__node__label data-quality-validation-graph-fetch-tree__node__label", onClick: toggleExpandNode, children: [node.label, _jsx("div", { className: "data-quality-validation-graph-fetch-tree__node__type", children: _jsx("div", { className: "data-quality-validation-graph-fetch-tree__node__type__label", children: type ? type.name : '' }) })] })] }), !node.isReadOnly ? (_jsx("div", { className: "data-quality-validation-graph-fetch-tree__node__actions", children: _jsx("button", { className: "data-quality-validation-graph-fetch-tree__node__action", title: "Remove", tabIndex: -1, onClick: deleteNode, disabled: isReadOnly, children: _jsx(TimesIcon, {}) }) })) : (_jsx("div", {}))] }), node.constraints.length ? (_jsx("div", { style: {
|
65
|
+
paddingLeft: `${(level + 2) * (stepPaddingInRem ?? 2)}rem`,
|
66
|
+
display: 'flex',
|
67
|
+
flexDirection: 'column',
|
68
|
+
}, children: node.constraints.map((constraint) => (_jsxs("div", { className: "data-quality-validation-graph-fetch-tree__node__label data-quality-validation-graph-fetch-tree__node__constraint", onClick: () => {
|
69
|
+
toggleChecked(constraint);
|
70
|
+
}, children: [_jsx("button", { className: clsx('panel__content__form__section__toggler__btn', 'data-quality-validation-graph-fetch-tree__constraint__checkbox', {
|
71
|
+
'panel__content__form__section__toggler__btn--toggled': constraint.isSelected,
|
72
|
+
}), children: constraint.isSelected ? _jsx(CheckSquareIcon, {}) : _jsx(SquareIcon, {}) }), _jsx("div", { className: "data-quality-validation-graph-fetch-tree__constraint__name", children: constraint.constraint.name }), _jsx("div", { className: "data-quality-validation-graph-fetch-tree__constraint__value", children: constraint.lambdaString })] }, constraint.lambdaId))) })) : (_jsx(_Fragment, {}))] }));
|
73
|
+
});
|
74
|
+
export const ConstraintsSelectionExplorer = observer((props) => {
|
75
|
+
const { constraintsClasses, dataQualityState, updateTreeData } = props;
|
76
|
+
const { applicationStore } = dataQualityState;
|
77
|
+
const getChildNodes = (node) => node.childrenIds
|
78
|
+
.map((id) => constraintsClasses.nodes.get(id))
|
79
|
+
.filter((_node) => _node instanceof DataQualityGraphFetchTreeNodeData)
|
80
|
+
.sort((a, b) => a.label.localeCompare(b.label))
|
81
|
+
.sort((a, b) => getQueryBuilderExplorerTreeNodeSortRank(b) -
|
82
|
+
getQueryBuilderExplorerTreeNodeSortRank(a));
|
83
|
+
const removeNode = (node) => {
|
84
|
+
removeNodeRecursively(constraintsClasses, node);
|
85
|
+
updateTreeData({ ...constraintsClasses });
|
86
|
+
dataQualityClassValidation_setDataQualityGraphFetchTree(dataQualityState.constraintsConfigurationElement, constraintsClasses.tree);
|
87
|
+
};
|
88
|
+
const showStructuralValidations = () => {
|
89
|
+
dataQualityState.setShowStructuralValidations(true);
|
90
|
+
flowResult(dataQualityState.fetchStructuralValidations()).catch(applicationStore.alertUnhandledError);
|
91
|
+
};
|
92
|
+
const disableSyncToDQ = Boolean(!dataQualityState.dataQualityGraphFetchTreeState.treeData);
|
93
|
+
return (_jsxs("div", { className: "data-quality-validation-graph-fetch-constraints-selection__config-group__content", children: [_jsx("div", { className: "data-quality-validation-graph-fetch-constraints-selection__structural-attributes", children: _jsx("button", { className: "btn--dark structure-validations-btn", onClick: showStructuralValidations, disabled: Boolean(disableSyncToDQ), tabIndex: -1, title: "Show Structural Attributes to be validated during run", children: "Show Structural Attributes" }) }), _jsx("div", { className: "data-quality-validation-graph-fetch-constraints-selection__config-group__item", children: _jsx(TreeView, { components: {
|
94
|
+
TreeNodeContainer: DataQualityConstraintsTreeNodeContainer,
|
95
|
+
}, className: "data-quality-validation-graph-fetch-tree__container__tree", treeData: constraintsClasses, getChildNodes: getChildNodes, innerProps: {
|
96
|
+
dataQualityState,
|
97
|
+
isReadOnly: false,
|
98
|
+
removeNode,
|
99
|
+
} }) }), _jsx(DataQualityStructuralValidationsPanel, { dataQualityState: dataQualityState })] }));
|
100
|
+
});
|
101
|
+
export const DataQualityConstraintsSelection = observer((props) => {
|
102
|
+
const { dataQualityState } = props;
|
103
|
+
const constraintsConfiguration = dataQualityState.constraintsConfigurationElement;
|
104
|
+
const dataQualityGraphFetchTreeState = dataQualityState.dataQualityGraphFetchTreeState;
|
105
|
+
const treeData = dataQualityGraphFetchTreeState.treeData;
|
106
|
+
const updateTreeData = (data) => {
|
107
|
+
dataQualityGraphFetchTreeState.setGraphFetchTree(data);
|
108
|
+
};
|
109
|
+
const handleDrop = useCallback((item) => {
|
110
|
+
dataQualityGraphFetchTreeState.addProperty(item.node, {
|
111
|
+
refreshTreeData: true,
|
112
|
+
});
|
113
|
+
if (dataQualityGraphFetchTreeState.treeData) {
|
114
|
+
dataQualityClassValidation_setDataQualityGraphFetchTree(constraintsConfiguration, dataQualityGraphFetchTreeState.treeData.tree);
|
115
|
+
}
|
116
|
+
}, [dataQualityGraphFetchTreeState, constraintsConfiguration]);
|
117
|
+
const [{ isDragOver }, dropTargetConnector] = useDrop(() => ({
|
118
|
+
accept: [
|
119
|
+
QUERY_BUILDER_EXPLORER_TREE_DND_TYPE.CLASS_PROPERTY,
|
120
|
+
QUERY_BUILDER_EXPLORER_TREE_DND_TYPE.PRIMITIVE_PROPERTY,
|
121
|
+
],
|
122
|
+
drop: (item, monitor) => {
|
123
|
+
if (!monitor.didDrop()) {
|
124
|
+
handleDrop(item);
|
125
|
+
} // prevent drop event propagation to accomondate for nested DnD
|
126
|
+
},
|
127
|
+
collect: (monitor) => ({
|
128
|
+
isDragOver: monitor.isOver({ shallow: true }),
|
129
|
+
}),
|
130
|
+
}), [handleDrop]);
|
131
|
+
return (_jsx("div", { "data-testid": DATA_QUALITY_VALIDATION_TEST_ID.DATA_QUALITY_VALIDATION_TREE, className: "constraints-selection-tab", children: _jsxs(PanelDropZone, { isDragOver: isDragOver, dropTargetConnector: dropTargetConnector, contentClassName: "data-quality-validation-graph-fetch-panel", children: [(!treeData || isConstraintsClassesTreeEmpty(treeData)) && (_jsx(BlankPanelPlaceholder, { text: "Add a scope for constraints", tooltipText: "Drag and drop properties here" })), treeData && !isConstraintsClassesTreeEmpty(treeData) && (_jsx(ConstraintsSelectionExplorer, { constraintsClasses: treeData, dataQualityState: dataQualityState, updateTreeData: updateTreeData }))] }) }));
|
132
|
+
});
|
133
|
+
//# sourceMappingURL=DataQualityConstraintsSelection.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DataQualityConstraintsSelection.js","sourceRoot":"","sources":["../../src/components/DataQualityConstraintsSelection.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAEL,iCAAiC,EACjC,6BAA6B,EAC7B,qBAAqB,GACtB,MAAM,0CAA0C,CAAC;AAElD,OAAO,EAEL,qBAAqB,EACrB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,IAAI,EACJ,aAAa,EACb,2BAA2B,EAC3B,UAAU,EACV,SAAS,EACT,QAAQ,GACT,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,uDAAuD,EAAE,MAAM,yDAAyD,CAAC;AAElI,OAAO,EAEL,KAAK,EACL,WAAW,EACX,sBAAsB,EACtB,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,+BAA+B,EAAE,MAAM,qCAAqC,CAAC;AACtF,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,qCAAqC,EAAE,MAAM,4CAA4C,CAAC;AACnG,OAAO,EAEL,oCAAoC,GACrC,MAAM,6BAA6B,CAAC;AAErC,MAAM,CAAC,MAAM,uCAAuC,GAAG,CACrD,IAAuC,EAC/B,EAAE;IACV,IAAI,IAAI,CAAC,IAAI,YAAY,KA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0 +1,22 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
import type { DataQualityClassValidationState } from './states/DataQualityClassValidationState.js';
|
17
|
+
export declare const DataQualityDataSpaceBuilderSetupPanelContent: ((props: {
|
18
|
+
dataQualityState: DataQualityClassValidationState;
|
19
|
+
}) => import("react/jsx-runtime").JSX.Element | null) & {
|
20
|
+
displayName: string;
|
21
|
+
};
|
22
|
+
//# sourceMappingURL=DataQualityDataSpaceBuilder.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DataQualityDataSpaceBuilder.d.ts","sourceRoot":"","sources":["../../src/components/DataQualityDataSpaceBuilder.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA4BH,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,6CAA6C,CAAC;AAcnG,eAAO,MAAM,4CAA4C,WAC/C;IAAE,gBAAgB,EAAE,+BAA+B,CAAA;CAAE;;CAwN9D,CAAC"}
|