@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,110 @@
|
|
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 { useApplicationStore } from '@finos/legend-application';
|
19
|
+
import { flowResult } from 'mobx';
|
20
|
+
import { buildFilterConditionExpression, ExecutionPlanViewer, } from '@finos/legend-query-builder';
|
21
|
+
import { buildRawLambdaFromLambdaFunction, CORE_PURE_PATH, FunctionType, GenericType, GenericTypeExplicitReference, LambdaFunction, Multiplicity, PackageableElementExplicitReference, VariableExpression, } from '@finos/legend-graph';
|
22
|
+
import { guaranteeNonNullable, isNonNullable, prettyDuration, } from '@finos/legend-shared';
|
23
|
+
import { useRef, useState } from 'react';
|
24
|
+
import { DATA_QUALITY_VALIDATION_TEST_ID } from './constants/DataQualityConstants.js';
|
25
|
+
import { BlankPanelContent, CubesLoadingIndicator, CubesLoadingIndicatorIcon, MenuContent, MenuContentItem, PanelContent, ExclamationTriangleIcon, DebugIcon, CaretDownIcon, MenuContentItemIcon, MenuContentItemLabel, PauseCircleIcon, PlayIcon, ReportIcon, ControlledDropdownMenu, } from '@finos/legend-art';
|
26
|
+
import { DataQualityResultValues } from './DataQualityResultValues.js';
|
27
|
+
import { dataQualityClassValidation_setFilter } from '../graph-manager/DSL_DataQuality_GraphModifierHelper.js';
|
28
|
+
export const DataQualityResultPanel = observer((props) => {
|
29
|
+
const { dataQualityState } = props;
|
30
|
+
const applicationStore = useApplicationStore();
|
31
|
+
const resultState = dataQualityState.resultState;
|
32
|
+
const executionResult = resultState.executionResult;
|
33
|
+
const buildFilterExpression = (queryBuilderState) => {
|
34
|
+
const { filterState } = queryBuilderState;
|
35
|
+
const filterConditionExpressions = filterState.rootIds
|
36
|
+
.map((e) => guaranteeNonNullable(filterState.nodes.get(e)))
|
37
|
+
.map((e) => buildFilterConditionExpression(filterState, e))
|
38
|
+
.filter(isNonNullable);
|
39
|
+
if (!filterConditionExpressions.length) {
|
40
|
+
dataQualityClassValidation_setFilter(dataQualityState.constraintsConfigurationElement, undefined);
|
41
|
+
return;
|
42
|
+
}
|
43
|
+
const genericType = new GenericType(queryBuilderState.class);
|
44
|
+
const genericTypeReference = GenericTypeExplicitReference.create(genericType);
|
45
|
+
const functionType = new FunctionType(PackageableElementExplicitReference.create(queryBuilderState.graphManagerState.graph.getType(CORE_PURE_PATH.ANY)), Multiplicity.ONE);
|
46
|
+
functionType.parameters.push(new VariableExpression(filterState.lambdaParameterName, Multiplicity.ONE, genericTypeReference));
|
47
|
+
const lambdaFunction = new LambdaFunction(functionType);
|
48
|
+
lambdaFunction.expressionSequence = filterConditionExpressions;
|
49
|
+
dataQualityClassValidation_setFilter(dataQualityState.constraintsConfigurationElement, buildRawLambdaFromLambdaFunction(lambdaFunction, queryBuilderState.graphManagerState));
|
50
|
+
};
|
51
|
+
const runQuery = () => {
|
52
|
+
resultState.pressedRunQuery.inProgress();
|
53
|
+
flowResult(resultState.runQuery()).catch(applicationStore.alertUnhandledError);
|
54
|
+
resultState.pressedRunQuery.complete();
|
55
|
+
};
|
56
|
+
const cancelQuery = applicationStore.guardUnhandledError(() => flowResult(resultState.cancelQuery()));
|
57
|
+
const generatePlan = applicationStore.guardUnhandledError(() => {
|
58
|
+
buildFilterExpression(dataQualityState.dataQualityQueryBuilderState);
|
59
|
+
return flowResult(resultState.generatePlan(false));
|
60
|
+
});
|
61
|
+
const debugPlanGeneration = applicationStore.guardUnhandledError(() => flowResult(resultState.generatePlan(true)));
|
62
|
+
const allowSettingPreviewLimit = dataQualityState.isQuerySupported;
|
63
|
+
const isRunQueryDisabled = resultState.isGeneratingPlan ||
|
64
|
+
resultState.pressedRunQuery.isInProgress ||
|
65
|
+
dataQualityState.dataQualityQueryBuilderState.filterState
|
66
|
+
.allValidationIssues.length !== 0;
|
67
|
+
const getResultSetDescription = (_executionResult) => {
|
68
|
+
const queryDuration = resultState.executionDuration
|
69
|
+
? prettyDuration(resultState.executionDuration, {
|
70
|
+
ms: true,
|
71
|
+
})
|
72
|
+
: undefined;
|
73
|
+
if (!queryDuration) {
|
74
|
+
return undefined;
|
75
|
+
}
|
76
|
+
return `query ran in ${queryDuration}`;
|
77
|
+
};
|
78
|
+
const resultDescription = executionResult
|
79
|
+
? getResultSetDescription(executionResult)
|
80
|
+
: undefined;
|
81
|
+
const [previewLimitValue, setPreviewLimitValue] = useState(resultState.previewLimit);
|
82
|
+
const changePreviewLimit = (event) => {
|
83
|
+
setPreviewLimitValue(parseInt(event.target.value, 10));
|
84
|
+
};
|
85
|
+
const inputRef = useRef(null);
|
86
|
+
const getPreviewLimit = () => {
|
87
|
+
if (isNaN(previewLimitValue) || previewLimitValue === 0) {
|
88
|
+
setPreviewLimitValue(1);
|
89
|
+
dataQualityState.resultState.setPreviewLimit(1);
|
90
|
+
}
|
91
|
+
else {
|
92
|
+
dataQualityState.resultState.setPreviewLimit(previewLimitValue);
|
93
|
+
}
|
94
|
+
};
|
95
|
+
const onKeyDown = (event) => {
|
96
|
+
if (event.code === 'Enter') {
|
97
|
+
getPreviewLimit();
|
98
|
+
inputRef.current?.focus();
|
99
|
+
}
|
100
|
+
else if (event.code === 'Escape') {
|
101
|
+
inputRef.current?.select();
|
102
|
+
}
|
103
|
+
};
|
104
|
+
const isLoading = resultState.isRunningQuery || resultState.isGeneratingPlan;
|
105
|
+
return (_jsxs("div", { "data-testid": DATA_QUALITY_VALIDATION_TEST_ID.DATA_QUALITY_VALIDATION_RESULT_PANEL, className: "panel data-quality-validation__result", children: [_jsxs("div", { className: "panel__header", children: [_jsxs("div", { className: "panel__header__title", children: [_jsx("div", { className: "panel__header__title__label", children: "results" }), resultState.pressedRunQuery.isInProgress && (_jsx("div", { className: "panel__header__title__label__status", children: "Running Query..." })), _jsx("div", { "data-testid": DATA_QUALITY_VALIDATION_TEST_ID.DATA_QUALITY_VALIDATION_RESULT_ANALYTICS, className: "data-quality-validation__result__analytics", children: resultDescription ?? '' }), executionResult && resultState.checkForStaleResults && (_jsxs("div", { className: "data-quality-validation__result__stale-status", children: [_jsx("div", { className: "data-quality-validation__result__stale-status__icon", children: _jsx(ExclamationTriangleIcon, {}) }), _jsx("div", { className: "data-quality-validation__result__stale-status__label", children: "Preview data might be stale" })] }))] }), _jsxs("div", { className: "panel__header__actions data-quality-validation__result__header__actions", children: [allowSettingPreviewLimit && (_jsxs("div", { className: "data-quality-validation__result__limit", children: [_jsx("div", { className: "data-quality-validation__result__limit__label", children: "preview row limit" }), _jsx("input", { ref: inputRef, className: "input--dark data-quality-validation__result__limit__input", spellCheck: false, type: "number", value: previewLimitValue, onChange: changePreviewLimit, onBlur: getPreviewLimit, onKeyDown: onKeyDown })] })), _jsx("div", { className: "data-quality-validation__result__execute-btn btn__dropdown-combo btn__dropdown-combo--primary", children: resultState.isRunningQuery ? (_jsx("button", { className: "btn__dropdown-combo__canceler data-quality-validation__result__execute-btn__btn", onClick: cancelQuery, tabIndex: -1, children: _jsxs("div", { className: "btn--dark btn--caution btn__dropdown-combo__canceler__label data-quality-validation__result__execute-btn__btn", children: [_jsx(PauseCircleIcon, {}), "Stop"] }) })) : (_jsxs(_Fragment, { children: [_jsxs("button", { className: "btn__dropdown-combo__label data-quality-validation__result__execute-btn__btn data-quality-validation__result__execute-btn__btn--green", onClick: runQuery, tabIndex: -1, disabled: isRunQueryDisabled, children: [_jsx(PlayIcon, {}), "Run Query"] }), _jsx(ControlledDropdownMenu, { className: "btn__dropdown-combo__dropdown-btn data-quality-validation__result__execute-btn__btn data-quality-validation__result__execute-btn__btn--green", disabled: isRunQueryDisabled, content: _jsxs(MenuContent, { children: [_jsxs(MenuContentItem, { className: "btn__dropdown-combo__option", onClick: generatePlan, disabled: isRunQueryDisabled, children: [_jsx(MenuContentItemIcon, { children: _jsx(ReportIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Generate Plan" })] }), _jsxs(MenuContentItem, { className: "btn__dropdown-combo__option", onClick: debugPlanGeneration, disabled: isRunQueryDisabled, children: [_jsx(MenuContentItemIcon, { children: _jsx(DebugIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Debug" })] })] }), menuProps: {
|
106
|
+
anchorOrigin: { vertical: 'bottom', horizontal: 'right' },
|
107
|
+
transformOrigin: { vertical: 'top', horizontal: 'right' },
|
108
|
+
}, children: _jsx(CaretDownIcon, {}) })] })) })] })] }), _jsxs(PanelContent, { className: "data-quality-validation__result__content", children: [_jsx(CubesLoadingIndicator, { isLoading: isLoading, children: _jsx(CubesLoadingIndicatorIcon, {}) }), !executionResult && !isLoading && (_jsx(BlankPanelContent, { children: "Build or load a valid query first" })), executionResult && !isLoading && (_jsx("div", { className: "data-quality-validation__result__values", children: _jsx(DataQualityResultValues, { executionResult: executionResult, dataQualityState: dataQualityState }) }))] }), _jsx(ExecutionPlanViewer, { executionPlanState: resultState.executionPlanState })] }));
|
109
|
+
});
|
110
|
+
//# sourceMappingURL=DataQualityResultPanel.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DataQualityResultPanel.js","sourceRoot":"","sources":["../../src/components/DataQualityResultPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAEL,8BAA8B,EAC9B,mBAAmB,GACpB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAEL,gCAAgC,EAChC,cAAc,EACd,YAAY,EACZ,WAAW,EACX,4BAA4B,EAC5B,cAAc,EACd,YAAY,EACZ,mCAAmC,EACnC,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,cAAc,GACf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,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,EACtB,KAAC,oBAAoB,wBAA6B,IAClC,IACN,EAEhB,SAAS,EAAE;gDACT,YAAY,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE;gDACzD,eAAe,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE;6CAC1D,YAED,KAAC,aAAa,KAAG,GACM,IACxB,CACJ,GACG,IACF,IACF,EACN,MAAC,YAAY,IAAC,SAAS,EAAC,0CAA0C,aAChE,KAAC,qBAAqB,IAAC,SAAS,EAAE,SAAS,YACzC,KAAC,yBAAyB,KAAG,GACP,EACvB,CAAC,eAAe,IAAI,CAAC,SAAS,IAAI,CACjC,KAAC,iBAAiB,oDAEE,CACrB,EACA,eAAe,IAAI,CAAC,SAAS,IAAI,CAChC,cAAK,SAAS,EAAC,yCAAyC,YACtD,KAAC,uBAAuB,IACtB,eAAe,EAAE,eAAe,EAChC,gBAAgB,EAAE,gBAAgB,GAClC,GACE,CACP,IACY,EACf,KAAC,mBAAmB,IAClB,kBAAkB,EAAE,WAAW,CAAC,kBAAkB,GAClD,IACE,CACP,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
|
+
import type { DataQualityState } from './states/DataQualityState.js';
|
17
|
+
import { type ExecutionResult } from '@finos/legend-graph';
|
18
|
+
export declare const DataQualityResultValues: ((props: {
|
19
|
+
executionResult: ExecutionResult;
|
20
|
+
dataQualityState: DataQualityState;
|
21
|
+
}) => import("react/jsx-runtime").JSX.Element) & {
|
22
|
+
displayName: string;
|
23
|
+
};
|
24
|
+
//# sourceMappingURL=DataQualityResultValues.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DataQualityResultValues.d.ts","sourceRoot":"","sources":["../../src/components/DataQualityResultValues.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EACL,KAAK,eAAe,EAGrB,MAAM,qBAAqB,CAAC;AAO7B,eAAO,MAAM,uBAAuB,WAC1B;IACN,eAAe,EAAE,eAAe,CAAC;IACjC,gBAAgB,EAAE,gBAAgB,CAAC;CACpC;;CA2BF,CAAC"}
|
@@ -0,0 +1,31 @@
|
|
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 { extractExecutionResultValues, RawExecutionResult, } from '@finos/legend-graph';
|
19
|
+
import { CODE_EDITOR_LANGUAGE, CodeEditor, } from '@finos/legend-lego/code-editor';
|
20
|
+
import { DEFAULT_TAB_SIZE } from '@finos/legend-application';
|
21
|
+
export const DataQualityResultValues = observer((props) => {
|
22
|
+
const { executionResult } = props;
|
23
|
+
if (executionResult instanceof RawExecutionResult) {
|
24
|
+
const inputValue = executionResult.value === null
|
25
|
+
? 'null'
|
26
|
+
: executionResult.value.toString();
|
27
|
+
return (_jsx(CodeEditor, { language: CODE_EDITOR_LANGUAGE.TEXT, inputValue: inputValue, isReadOnly: true }));
|
28
|
+
}
|
29
|
+
return (_jsx(CodeEditor, { language: CODE_EDITOR_LANGUAGE.JSON, inputValue: JSON.stringify(extractExecutionResultValues(executionResult), null, DEFAULT_TAB_SIZE), isReadOnly: true }));
|
30
|
+
});
|
31
|
+
//# sourceMappingURL=DataQualityResultValues.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DataQualityResultValues.js","sourceRoot":"","sources":["../../src/components/DataQualityResultValues.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EAEL,4BAA4B,EAC5B,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,oBAAoB,EACpB,UAAU,GACX,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAE7D,MAAM,CAAC,MAAM,uBAAuB,GAAG,QAAQ,CAC7C,CAAC,KAGA,EAAE,EAAE;IACH,MAAM,EAAE,eAAe,EAAE,GAAG,KAAK,CAAC;IAClC,IAAI,eAAe,YAAY,kBAAkB,EAAE,CAAC;QAClD,MAAM,UAAU,GACd,eAAe,CAAC,KAAK,KAAK,IAAI;YAC5B,CAAC,CAAC,MAAM;YACR,CAAC,CAAC,eAAe,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;QACvC,OAAO,CACL,KAAC,UAAU,IACT,QAAQ,EAAE,oBAAoB,CAAC,IAAI,EACnC,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,IAAI,GAChB,CACH,CAAC;IACJ,CAAC;IACD,OAAO,CACL,KAAC,UAAU,IACT,QAAQ,EAAE,oBAAoB,CAAC,IAAI,EACnC,UAAU,EAAE,IAAI,CAAC,SAAS,CACxB,4BAA4B,CAAC,eAAe,CAAC,EAC7C,IAAI,EACJ,gBAAgB,CACjB,EACD,UAAU,EAAE,IAAI,GAChB,CACH,CAAC;AACJ,CAAC,CACF,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 DataQualityServiceValidationEditor: (() => import("react/jsx-runtime").JSX.Element) & {
|
17
|
+
displayName: string;
|
18
|
+
};
|
19
|
+
//# sourceMappingURL=DataQualityServiceValidationEditor.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DataQualityServiceValidationEditor.d.ts","sourceRoot":"","sources":["../../src/components/DataQualityServiceValidationEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAUH,eAAO,MAAM,kCAAkC;;CAwB7C,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 { DataQualityServiceValidationSideBar } from './DataQualitySideBar.js';
|
19
|
+
import { useEditorStore } from '@finos/legend-application-studio';
|
20
|
+
import { DataQualityServiceValidationState } from './states/DataQualityServiceValidationState.js';
|
21
|
+
import { DataQualityValidationEditor } from './DataQualityValidationEditor.js';
|
22
|
+
import { ResizablePanel, ResizablePanelGroup } from '@finos/legend-art';
|
23
|
+
import { DataQualityExplorerPanel } from './DataQualityExplorerPanel.js';
|
24
|
+
export const DataQualityServiceValidationEditor = observer(() => {
|
25
|
+
const editorStore = useEditorStore();
|
26
|
+
const dataQualityServiceValidationState = editorStore.tabManagerState.getCurrentEditorState(DataQualityServiceValidationState);
|
27
|
+
return (_jsx(DataQualityValidationEditor, { dataQualityState: dataQualityServiceValidationState, SideBarBasisComponent: _jsx(DataQualityServiceValidationSideBar, { dataQualityState: dataQualityServiceValidationState, children: _jsx(ResizablePanelGroup, { orientation: "horizontal", children: _jsx(ResizablePanel, { minSize: 40, direction: 1, children: _jsx(DataQualityExplorerPanel, { dataQualityState: dataQualityServiceValidationState }) }) }) }) }));
|
28
|
+
});
|
29
|
+
//# sourceMappingURL=DataQualityServiceValidationEditor.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DataQualityServiceValidationEditor.js","sourceRoot":"","sources":["../../src/components/DataQualityServiceValidationEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,iCAAiC,EAAE,MAAM,+CAA+C,CAAC;AAClG,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxE,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,MAAM,CAAC,MAAM,kCAAkC,GAAG,QAAQ,CAAC,GAAG,EAAE;IAC9D,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,iCAAiC,GACrC,WAAW,CAAC,eAAe,CAAC,qBAAqB,CAC/C,iCAAiC,CAClC,CAAC;IACJ,OAAO,CACL,KAAC,2BAA2B,IAC1B,gBAAgB,EAAE,iCAAiC,EACnD,qBAAqB,EACnB,KAAC,mCAAmC,IAClC,gBAAgB,EAAE,iCAAiC,YAEnD,KAAC,mBAAmB,IAAC,WAAW,EAAC,YAAY,YAC3C,KAAC,cAAc,IAAC,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,YACvC,KAAC,wBAAwB,IACvB,gBAAgB,EAAE,iCAAiC,GACnD,GACa,GACG,GACc,GAExC,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
import type { DataQualityState } from './states/DataQualityState.js';
|
17
|
+
import { type Class } from '@finos/legend-graph';
|
18
|
+
import type { DataQualityClassValidationState } from './states/DataQualityClassValidationState.js';
|
19
|
+
import type { DataQualityServiceValidationState } from './states/DataQualityServiceValidationState.js';
|
20
|
+
export declare const DataQualityClassSelector: ((props: {
|
21
|
+
dataQualityState: DataQualityState;
|
22
|
+
classes: Class[];
|
23
|
+
onClassChange?: ((val: Class) => void) | undefined;
|
24
|
+
noMatchMessage?: string | undefined;
|
25
|
+
}) => import("react/jsx-runtime").JSX.Element) & {
|
26
|
+
displayName: string;
|
27
|
+
};
|
28
|
+
export declare const DataQualityServiceValidationSideBar: ((props: {
|
29
|
+
dataQualityState: DataQualityServiceValidationState;
|
30
|
+
children: React.ReactNode;
|
31
|
+
}) => import("react/jsx-runtime").JSX.Element) & {
|
32
|
+
displayName: string;
|
33
|
+
};
|
34
|
+
export declare const DataQualityClassValidationSideBar: ((props: {
|
35
|
+
dataQualityClassValidationState: DataQualityClassValidationState;
|
36
|
+
children: React.ReactNode;
|
37
|
+
}) => import("react/jsx-runtime").JSX.Element) & {
|
38
|
+
displayName: string;
|
39
|
+
};
|
40
|
+
//# sourceMappingURL=DataQualitySideBar.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DataQualitySideBar.d.ts","sourceRoot":"","sources":["../../src/components/DataQualitySideBar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAUH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAIrE,OAAO,EAAE,KAAK,KAAK,EAAuB,MAAM,qBAAqB,CAAC;AAKtE,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,6CAA6C,CAAC;AACnG,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,+CAA+C,CAAC;AA0BvG,eAAO,MAAM,wBAAwB,WAC3B;IACN,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,OAAO,EAAE,KAAK,EAAE,CAAC;IACjB,aAAa,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IACnD,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC;;CA2EF,CAAC;AACF,eAAO,MAAM,mCAAmC,WACtC;IACN,gBAAgB,EAAE,iCAAiC,CAAC;IACpD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;;CA0BF,CAAC;AAEF,eAAO,MAAM,iCAAiC,WACpC;IACN,+BAA+B,EAAE,+BAA+B,CAAC;IACjE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;;CAqCF,CAAC"}
|
@@ -0,0 +1,78 @@
|
|
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 { clsx, createFilter, CustomSelectorInput, PURE_ClassIcon, } from '@finos/legend-art';
|
18
|
+
import { observer } from 'mobx-react-lite';
|
19
|
+
import { useApplicationStore } from '@finos/legend-application';
|
20
|
+
import { DataQualityDataSpaceBuilderSetupPanelContent } from './DataQualityDataSpaceBuilder.js';
|
21
|
+
import { DataQualityMappingAndRuntimeBuilder } from './DataQualityMappingAndRuntimeBuilder.js';
|
22
|
+
import { ELEMENT_CREATION_BASIS } from './DSL_DataQuality_ClassElementDriver.js';
|
23
|
+
import { isElementDeprecated } from '@finos/legend-graph';
|
24
|
+
import { getPackageableElementOptionFormatter, } from '@finos/legend-lego/graph-editor';
|
25
|
+
import { DATA_QUALITY_VALIDATION_TEST_ID } from './constants/DataQualityConstants.js';
|
26
|
+
const generateClassLabel = (val, dataQualityState) => {
|
27
|
+
const isDeprecatedClass = isElementDeprecated(val, dataQualityState.graphManagerState.graph);
|
28
|
+
return (_jsx("div", { className: clsx('data-quality-validation__setup__class-option-label', {
|
29
|
+
'data-quality-validation__setup__class-option-label--deprecated': isDeprecatedClass,
|
30
|
+
}), children: _jsx("div", { className: "data-quality-validation__setup__class-option-label__name", children: val.name }) }));
|
31
|
+
};
|
32
|
+
export const DataQualityClassSelector = observer((props) => {
|
33
|
+
const { dataQualityState, classes, onClassChange, noMatchMessage } = props;
|
34
|
+
const { dataQualityQueryBuilderState } = dataQualityState;
|
35
|
+
const applicationStore = useApplicationStore();
|
36
|
+
const elementFilterOption = createFilter({
|
37
|
+
ignoreCase: true,
|
38
|
+
ignoreAccents: false,
|
39
|
+
stringify: (option) => option.value.path,
|
40
|
+
});
|
41
|
+
const classOptions = classes.map((_class) => ({
|
42
|
+
value: _class,
|
43
|
+
label: generateClassLabel(_class, dataQualityState),
|
44
|
+
}));
|
45
|
+
const selectedClassOption = dataQualityQueryBuilderState.class
|
46
|
+
? {
|
47
|
+
value: dataQualityQueryBuilderState.class,
|
48
|
+
label: generateClassLabel(dataQualityQueryBuilderState.class, dataQualityState),
|
49
|
+
}
|
50
|
+
: null;
|
51
|
+
const changeClass = (val) => {
|
52
|
+
if (val.value === dataQualityQueryBuilderState.class) {
|
53
|
+
return;
|
54
|
+
}
|
55
|
+
dataQualityState.changeClass(val.value);
|
56
|
+
dataQualityState.updateElementOnClassChange();
|
57
|
+
onClassChange?.(val.value);
|
58
|
+
};
|
59
|
+
return (_jsx("div", { className: "data-quality-validation__setup__config-group data-quality-validation__setup__config-group--class", children: _jsx("div", { className: "data-quality-validation__setup__config-group__content", children: _jsxs("div", { className: "data-quality-validation__setup__config-group__item", children: [_jsx("div", { className: "btn--sm data-quality-validation__setup__config-group__item__label", title: "class", children: _jsx(PURE_ClassIcon, {}) }), _jsx(CustomSelectorInput, { className: "panel__content__form__section__dropdown data-quality-validation__setup__config-group__item__selector data-quality-validation__setup__config-group__item__selector__milestoned", placeholder: classOptions.length
|
60
|
+
? 'Choose a class...'
|
61
|
+
: noMatchMessage ?? 'No class found', disabled: classOptions.length < 1 ||
|
62
|
+
(classOptions.length === 1 && Boolean(selectedClassOption)), noMatchMessage: noMatchMessage, options: classOptions, onChange: changeClass, value: selectedClassOption, darkMode: !applicationStore.layoutService
|
63
|
+
.TEMPORARY__isLightColorThemeEnabled, filterOption: elementFilterOption, formatOptionLabel: getPackageableElementOptionFormatter({
|
64
|
+
darkMode: !applicationStore.layoutService
|
65
|
+
.TEMPORARY__isLightColorThemeEnabled,
|
66
|
+
}) })] }) }) }));
|
67
|
+
});
|
68
|
+
export const DataQualityServiceValidationSideBar = observer((props) => {
|
69
|
+
const { dataQualityState, children } = props;
|
70
|
+
return (_jsxs("div", { className: clsx('data-quality-validation__side-bar', dataQualityState.sideBarClassName), children: [_jsx("div", { "data-testid": DATA_QUALITY_VALIDATION_TEST_ID.DATA_QUALITY_VALIDATION_SETUP, className: "panel data-quality-validation__setup", children: _jsx("div", { className: "panel__content data-quality-validation__setup__content", children: "service selection to be show" }) }), _jsx("div", { className: "data-quality-validation__side-bar__content", children: children })] }));
|
71
|
+
});
|
72
|
+
export const DataQualityClassValidationSideBar = observer((props) => {
|
73
|
+
const { dataQualityClassValidationState, children } = props;
|
74
|
+
const validationElementCreationBasis = dataQualityClassValidationState.validationElementCreationBasis;
|
75
|
+
return (_jsxs("div", { className: clsx('data-quality-validation__side-bar', dataQualityClassValidationState.sideBarClassName), children: [_jsx("div", { "data-testid": DATA_QUALITY_VALIDATION_TEST_ID.DATA_QUALITY_VALIDATION_SETUP, className: "panel data-quality-validation__setup", children: _jsx("div", { className: "panel__content data-quality-validation__setup__content", children: validationElementCreationBasis ===
|
76
|
+
ELEMENT_CREATION_BASIS.DATASPACE_BASED ? (_jsx(DataQualityDataSpaceBuilderSetupPanelContent, { dataQualityState: dataQualityClassValidationState })) : (_jsx(DataQualityMappingAndRuntimeBuilder, { dataQualityState: dataQualityClassValidationState })) }) }), _jsx("div", { className: "data-quality-validation__side-bar__content", children: children })] }));
|
77
|
+
});
|
78
|
+
//# sourceMappingURL=DataQualitySideBar.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DataQualitySideBar.js","sourceRoot":"","sources":["../../src/components/DataQualitySideBar.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,IAAI,EACJ,YAAY,EACZ,mBAAmB,EACnB,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,EAAE,4CAA4C,EAAE,MAAM,kCAAkC,CAAC;AAChG,OAAO,EAAE,mCAAmC,EAAE,MAAM,0CAA0C,CAAC;AAC/F,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AACjF,OAAO,EAAc,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EACL,oCAAoC,GAErC,MAAM,iCAAiC,CAAC;AAGzC,OAAO,EAAE,+BAA+B,EAAE,MAAM,qCAAqC,CAAC;AAEtF,MAAM,kBAAkB,GAAG,CACzB,GAAU,EACV,gBAAkC,EACR,EAAE;IAC5B,MAAM,iBAAiB,GAAG,mBA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BAAgB,CAAC,gBAAgB,CAClC,aAED,6BAEI,+BAA+B,CAAC,6BAA6B,EAE/D,SAAS,EAAC,sCAAsC,YAEhD,cAAK,SAAS,EAAC,wDAAwD,6CAEjE,GACF,EACN,cAAK,SAAS,EAAC,4CAA4C,YACxD,QAAQ,GACL,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,iCAAiC,GAAG,QAAQ,CACvD,CAAC,KAGA,EAAE,EAAE;IACH,MAAM,EAAE,+BAA+B,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC5D,MAAM,8BAA8B,GAClC,+BAA+B,CAAC,8BAA8B,CAAC;IAEjE,OAAO,CACL,eACE,SAAS,EAAE,IAAI,CACb,mCAAmC,EACnC,+BAA+B,CAAC,gBAAgB,CACjD,aAED,6BAEI,+BAA+B,CAAC,6BAA6B,EAE/D,SAAS,EAAC,sCAAsC,YAEhD,cAAK,SAAS,EAAC,wDAAwD,YACpE,8BAA8B;wBAC/B,sBAAsB,CAAC,eAAe,CAAC,CAAC,CAAC,CACvC,KAAC,4CAA4C,IAC3C,gBAAgB,EAAE,+BAA+B,GACjD,CACH,CAAC,CAAC,CAAC,CACF,KAAC,mCAAmC,IAClC,gBAAgB,EAAE,+BAA+B,GACjD,CACH,GACG,GACF,EACN,cAAK,SAAS,EAAC,4CAA4C,YACxD,QAAQ,GACL,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -0,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 { DataQualityState } from './states/DataQualityState.js';
|
17
|
+
export declare const DataQualityStructuralValidationsPanel: ((props: {
|
18
|
+
dataQualityState: DataQualityState;
|
19
|
+
}) => import("react/jsx-runtime").JSX.Element | null) & {
|
20
|
+
displayName: string;
|
21
|
+
};
|
22
|
+
//# sourceMappingURL=DataQualityStructuralValidationsPanel.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DataQualityStructuralValidationsPanel.d.ts","sourceRoot":"","sources":["../../src/components/DataQualityStructuralValidationsPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAYH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAOrE,eAAO,MAAM,qCAAqC,WACxC;IAAE,gBAAgB,EAAE,gBAAgB,CAAA;CAAE;;CAsE/C,CAAC"}
|
@@ -0,0 +1,50 @@
|
|
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 { Dialog, ModalBody, ModalFooter, Modal, ModalFooterButton, ModalHeader, TreeView, } from '@finos/legend-art';
|
19
|
+
import { DataQualityConstraintsTreeNodeContainer, getQueryBuilderExplorerTreeNodeSortRank, } from './DataQualityConstraintsSelection.js';
|
20
|
+
import { DataQualityGraphFetchTreeNodeData } from './utils/DataQualityGraphFetchTreeUtil.js';
|
21
|
+
export const DataQualityStructuralValidationsPanel = observer((props) => {
|
22
|
+
const { dataQualityState } = props;
|
23
|
+
const { structuralValidationsGraphFetchTreeState } = dataQualityState;
|
24
|
+
const structureValidationsTree = structuralValidationsGraphFetchTreeState.treeData;
|
25
|
+
if (!structureValidationsTree) {
|
26
|
+
return null;
|
27
|
+
}
|
28
|
+
const closePlanViewer = () => {
|
29
|
+
dataQualityState.setShowStructuralValidations(false);
|
30
|
+
};
|
31
|
+
const isDarkMode = !dataQualityState.applicationStore.layoutService
|
32
|
+
.TEMPORARY__isLightColorThemeEnabled;
|
33
|
+
const getChildNodes = (node) => node.childrenIds
|
34
|
+
.map((id) => structureValidationsTree.nodes.get(id))
|
35
|
+
.filter((_node) => _node instanceof DataQualityGraphFetchTreeNodeData)
|
36
|
+
.sort((a, b) => a.label.localeCompare(b.label))
|
37
|
+
.sort((a, b) => getQueryBuilderExplorerTreeNodeSortRank(b) -
|
38
|
+
getQueryBuilderExplorerTreeNodeSortRank(a));
|
39
|
+
return (_jsx(Dialog, { open: dataQualityState.showStructuralValidations, onClose: closePlanViewer, classes: {
|
40
|
+
root: 'data-quality-editor-modal__root-container',
|
41
|
+
container: 'data-quality-editor-modal__container',
|
42
|
+
paper: 'data-quality-editor-modal__content',
|
43
|
+
}, children: _jsxs(Modal, { className: "data-quality-editor-modal", darkMode: isDarkMode, children: [_jsx(ModalHeader, { title: "Structural Attributes" }), _jsx(ModalBody, { children: _jsx("div", { className: "data-quality-validation-graph-fetch-constraints-selection__config-group__item", children: _jsx(TreeView, { components: {
|
44
|
+
TreeNodeContainer: DataQualityConstraintsTreeNodeContainer,
|
45
|
+
}, className: "data-quality-validation-graph-fetch-tree__container__tree", treeData: structureValidationsTree, getChildNodes: getChildNodes, innerProps: {
|
46
|
+
dataQualityState,
|
47
|
+
isReadOnly: true,
|
48
|
+
} }) }) }), _jsx(ModalFooter, { children: _jsx(ModalFooterButton, { onClick: closePlanViewer, text: "Close", type: "secondary" }) })] }) }));
|
49
|
+
});
|
50
|
+
//# sourceMappingURL=DataQualityStructuralValidationsPanel.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DataQualityStructuralValidationsPanel.js","sourceRoot":"","sources":["../../src/components/DataQualityStructuralValidationsPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,MAAM,EACN,SAAS,EACT,WAAW,EACX,KAAK,EACL,iBAAiB,EACjB,WAAW,EACX,QAAQ,GACT,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,uCAAuC,EACvC,uCAAuC,GACxC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,iCAAiC,EAAE,MAAM,0CAA0C,CAAC;AAE7F,MAAM,CAAC,MAAM,qCAAqC,GAAG,QAAQ,CAC3D,CAAC,KAA6C,EAAE,EAAE;IAChD,MAAM,EAAE,gBAAgB,EAAE,GAAG,KAAK,CAAC;IACnC,MAAM,EAAE,wCAAwC,EAAE,GAAG,gBAAgB,CAAC;IACtE,MAAM,wBAAwB,GAC5B,wCAAwC,CAAC,QAAQ,CAAC;IACpD,IAAI,CAAC,wBAAwB,EAAE,CAAC;QAC9B,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,eAAe,GAAG,GAAS,EAAE;QACjC,gBAAgB,CAAC,4BAA4B,CAAC,KAAK,CAAC,CAAC;IACvD,CAAC,CAAC;IACF,MAAM,UAAU,GACd,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,aAAa;SAC7C,mCAAmC,CAAC;IAEzC,MAAM,aAAa,GAAG,CACpB,IAAuC,EACF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|
@@ -0,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 DataQualityState } from './states/DataQualityState.js';
|
17
|
+
export declare const DataQualityTabs: ((props: {
|
18
|
+
dataQualityState: DataQualityState;
|
19
|
+
}) => import("react/jsx-runtime").JSX.Element) & {
|
20
|
+
displayName: string;
|
21
|
+
};
|
22
|
+
//# sourceMappingURL=DataQualityTabs.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DataQualityTabs.d.ts","sourceRoot":"","sources":["../../src/components/DataQualityTabs.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,gBAAgB,EAEtB,MAAM,8BAA8B,CAAC;AAStC,eAAO,MAAM,eAAe,WAClB;IAAE,gBAAgB,EAAE,gBAAgB,CAAA;CAAE;;CA0E/C,CAAC"}
|
@@ -0,0 +1,58 @@
|
|
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 { DATA_QUALITY_TAB, } from './states/DataQualityState.js';
|
18
|
+
import { observer } from 'mobx-react-lite';
|
19
|
+
import { clsx } from '@finos/legend-art';
|
20
|
+
import { prettyCONSTName } from '@finos/legend-shared';
|
21
|
+
import { DataQualityConstraintsSelection } from './DataQualityConstraintsSelection.js';
|
22
|
+
import { DataQualityResultPanel } from './DataQualityResultPanel.js';
|
23
|
+
import { DataQualityFilterPanel } from './DataQualityFilterPanel.js';
|
24
|
+
import {} from './DSL_DataQuality_LegendStudioPlugin_Extension.js';
|
25
|
+
export const DataQualityTabs = observer((props) => {
|
26
|
+
const { dataQualityState } = props;
|
27
|
+
const { selectedTab } = dataQualityState;
|
28
|
+
const changeTab = (tab) => () => dataQualityState.setSelectedTab(tab);
|
29
|
+
const tabsToRender = dataQualityState.tabsToShow;
|
30
|
+
const renderTabs = () => {
|
31
|
+
switch (selectedTab) {
|
32
|
+
case DATA_QUALITY_TAB.CONSTRAINTS_SELECTION:
|
33
|
+
return (_jsx(DataQualityConstraintsSelection, { dataQualityState: dataQualityState }));
|
34
|
+
case DATA_QUALITY_TAB.FILTER:
|
35
|
+
return (_jsx(DataQualityFilterPanel, { filterState: dataQualityState.dataQualityQueryBuilderState.filterState, dataQualityState: dataQualityState }));
|
36
|
+
case DATA_QUALITY_TAB.TRIAL_RUNS:
|
37
|
+
return _jsx(DataQualityResultPanel, { dataQualityState: dataQualityState });
|
38
|
+
default: {
|
39
|
+
if (selectedTab) {
|
40
|
+
const extraTabRenderers = dataQualityState.editorStore.pluginManager
|
41
|
+
.getApplicationPlugins()
|
42
|
+
.flatMap((plugin) => plugin.getComponentRenderers?.() ?? []);
|
43
|
+
for (const extraTabRenderer of extraTabRenderers) {
|
44
|
+
const componentToRender = extraTabRenderer(selectedTab, dataQualityState);
|
45
|
+
if (componentToRender) {
|
46
|
+
return componentToRender;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
return undefined;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
};
|
54
|
+
return (_jsxs("div", { className: "panel", children: [_jsx("div", { className: "panel__header", children: _jsx("div", { className: "uml-element-editor__tabs", children: tabsToRender.map((tab) => (_jsx("div", { onClick: changeTab(tab), className: clsx('data-quality__tab', {
|
55
|
+
'data-quality__tab--active': tab === selectedTab,
|
56
|
+
}), children: prettyCONSTName(tab) }, tab))) }) }), _jsx("div", { className: "panel__content", children: renderTabs() })] }));
|
57
|
+
});
|
58
|
+
//# sourceMappingURL=DataQualityTabs.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DataQualityTabs.js","sourceRoot":"","sources":["../../src/components/DataQualityTabs.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,gBAAgB,GACjB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAqD,MAAM,mDAAmD,CAAC;AAEtH,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CACrC,CAAC,KAA6C,EAAE,EAAE;IAChD,MAAM,EAAE,gBAAgB,EAAE,GAAG,KAAK,CAAC;IACnC,MAAM,EAAE,WAAW,EAAE,GAAG,gBAAgB,CAAC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,cAAK,SAAS,EAAC,0BAA0B,YACtC,YAAY,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACzB,cAEE,OAAO,EAAE,SAAS,CAAC,GAAG,CAAC,EACvB,SAAS,EAAE,IAAI,CAAC,mBAAmB,EAAE;4BACnC,2BAA2B,EAAE,GAAG,KAAK,WAAW;yBACjD,CAAC,YAED,eAAe,CAAC,GAAG,CAAC,IANhB,GAAG,CAOJ,CACP,CAAC,GACE,GACF,EACN,cAAK,SAAS,EAAC,gBAAgB,YAAE,UAAU,EAAE,GAAO,IAChD,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -0,0 +1,23 @@
|
|
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
|
+
export declare const DataQualityValidationEditor: ((props: {
|
18
|
+
dataQualityState: DataQualityState;
|
19
|
+
SideBarBasisComponent: React.ReactNode;
|
20
|
+
}) => import("react/jsx-runtime").JSX.Element) & {
|
21
|
+
displayName: string;
|
22
|
+
};
|
23
|
+
//# sourceMappingURL=DataQualityValidationEditor.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DataQualityValidationEditor.d.ts","sourceRoot":"","sources":["../../src/components/DataQualityValidationEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AASH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAErE,eAAO,MAAM,2BAA2B,WAC9B;IACN,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,qBAAqB,EAAE,KAAK,CAAC,SAAS,CAAC;CACxC;;CAsBF,CAAC"}
|