@finos/legend-extension-dsl-data-quality 1.0.60 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (178) hide show
  1. package/lib/components/{DSL_DataQuality_ClassElementDriver.d.ts → DSL_DataQuality_ElementDriver.d.ts} +17 -7
  2. package/lib/components/DSL_DataQuality_ElementDriver.d.ts.map +1 -0
  3. package/lib/components/{DSL_DataQuality_ClassElementDriver.js → DSL_DataQuality_ElementDriver.js} +70 -23
  4. package/lib/components/DSL_DataQuality_ElementDriver.js.map +1 -0
  5. package/lib/components/DSL_DataQuality_LegendStudioApplicationPlugin.d.ts.map +1 -1
  6. package/lib/components/DSL_DataQuality_LegendStudioApplicationPlugin.js +20 -39
  7. package/lib/components/DSL_DataQuality_LegendStudioApplicationPlugin.js.map +1 -1
  8. package/lib/components/{DSL_NewDataQualityClassValidationElement.d.ts → DSL_NewDataQualityValidationElement.d.ts} +2 -2
  9. package/lib/components/DSL_NewDataQualityValidationElement.d.ts.map +1 -0
  10. package/lib/components/DSL_NewDataQualityValidationElement.js +80 -0
  11. package/lib/components/DSL_NewDataQualityValidationElement.js.map +1 -0
  12. package/lib/components/DataQualityRelationTrialRuns.d.ts +22 -0
  13. package/lib/components/DataQualityRelationTrialRuns.d.ts.map +1 -0
  14. package/lib/components/DataQualityRelationTrialRuns.js +87 -0
  15. package/lib/components/DataQualityRelationTrialRuns.js.map +1 -0
  16. package/lib/components/{DSL_NewDataQualityServiceValidationElement.d.ts → DataQualityRelationValidationConfigurationEditor.d.ts} +2 -2
  17. package/lib/components/DataQualityRelationValidationConfigurationEditor.d.ts.map +1 -0
  18. package/lib/components/DataQualityRelationValidationConfigurationEditor.js +99 -0
  19. package/lib/components/DataQualityRelationValidationConfigurationEditor.js.map +1 -0
  20. package/lib/components/DataQualityRelationValidationEditor.d.ts +30 -0
  21. package/lib/components/DataQualityRelationValidationEditor.d.ts.map +1 -0
  22. package/lib/components/DataQualityRelationValidationEditor.js +89 -0
  23. package/lib/components/DataQualityRelationValidationEditor.js.map +1 -0
  24. package/lib/components/DataQualityResultPanel.d.ts.map +1 -1
  25. package/lib/components/DataQualityResultPanel.js +1 -1
  26. package/lib/components/DataQualityResultPanel.js.map +1 -1
  27. package/lib/components/DataQualityResultValues.d.ts +0 -2
  28. package/lib/components/DataQualityResultValues.d.ts.map +1 -1
  29. package/lib/components/DataQualityResultValues.js.map +1 -1
  30. package/lib/components/DataQualitySideBar.js +2 -2
  31. package/lib/components/DataQualitySideBar.js.map +1 -1
  32. package/lib/components/DataQualityValidationDetailPanel.d.ts +36 -0
  33. package/lib/components/DataQualityValidationDetailPanel.d.ts.map +1 -0
  34. package/lib/components/DataQualityValidationDetailPanel.js +39 -0
  35. package/lib/components/DataQualityValidationDetailPanel.js.map +1 -0
  36. package/lib/components/DataQualityValidationParametersEditor.d.ts +15 -0
  37. package/lib/components/DataQualityValidationParametersEditor.d.ts.map +1 -0
  38. package/lib/components/DataQualityValidationParametersEditor.js +129 -0
  39. package/lib/components/DataQualityValidationParametersEditor.js.map +1 -0
  40. package/lib/components/states/ConstraintState.d.ts +2 -0
  41. package/lib/components/states/ConstraintState.d.ts.map +1 -1
  42. package/lib/components/states/ConstraintState.js +2 -0
  43. package/lib/components/states/ConstraintState.js.map +1 -1
  44. package/lib/components/states/DataQualityClassValidationState.d.ts +2 -2
  45. package/lib/components/states/DataQualityClassValidationState.d.ts.map +1 -1
  46. package/lib/components/states/DataQualityClassValidationState.js +4 -4
  47. package/lib/components/states/DataQualityClassValidationState.js.map +1 -1
  48. package/lib/components/states/DataQualityRelationResultState.d.ts +46 -0
  49. package/lib/components/states/DataQualityRelationResultState.d.ts.map +1 -0
  50. package/lib/components/states/DataQualityRelationResultState.js +194 -0
  51. package/lib/components/states/DataQualityRelationResultState.js.map +1 -0
  52. package/lib/components/states/DataQualityRelationValidationConfigurationState.d.ts +73 -0
  53. package/lib/components/states/DataQualityRelationValidationConfigurationState.d.ts.map +1 -0
  54. package/lib/components/states/DataQualityRelationValidationConfigurationState.js +255 -0
  55. package/lib/components/states/DataQualityRelationValidationConfigurationState.js.map +1 -0
  56. package/lib/components/states/DataQualityRelationValidationLambdaEditorState.d.ts +32 -0
  57. package/lib/components/states/DataQualityRelationValidationLambdaEditorState.d.ts.map +1 -0
  58. package/lib/components/states/DataQualityRelationValidationLambdaEditorState.js +79 -0
  59. package/lib/components/states/DataQualityRelationValidationLambdaEditorState.js.map +1 -0
  60. package/lib/components/states/DataQualityRelationValidationState.d.ts +38 -0
  61. package/lib/components/states/DataQualityRelationValidationState.d.ts.map +1 -0
  62. package/lib/components/states/DataQualityRelationValidationState.js +119 -0
  63. package/lib/components/states/DataQualityRelationValidationState.js.map +1 -0
  64. package/lib/components/states/DataQualityResultState.d.ts.map +1 -1
  65. package/lib/components/states/DataQualityResultState.js +6 -3
  66. package/lib/components/states/DataQualityResultState.js.map +1 -1
  67. package/lib/components/states/DataQualityState.js +1 -1
  68. package/lib/components/states/DataQualityState.js.map +1 -1
  69. package/lib/graph/metamodel/DSL_DataQuality_HashUtils.d.ts +5 -1
  70. package/lib/graph/metamodel/DSL_DataQuality_HashUtils.d.ts.map +1 -1
  71. package/lib/graph/metamodel/DSL_DataQuality_HashUtils.js +4 -0
  72. package/lib/graph/metamodel/DSL_DataQuality_HashUtils.js.map +1 -1
  73. package/lib/graph/metamodel/DSL_DataQuality_PureGraphPlugin.d.ts.map +1 -1
  74. package/lib/graph/metamodel/DSL_DataQuality_PureGraphPlugin.js +2 -1
  75. package/lib/graph/metamodel/DSL_DataQuality_PureGraphPlugin.js.map +1 -1
  76. package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.d.ts +36 -3
  77. package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.d.ts.map +1 -1
  78. package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js +58 -4
  79. package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js.map +1 -1
  80. package/lib/graph-manager/DSL_DataQuality_GraphManagerHelper.d.ts +2 -1
  81. package/lib/graph-manager/DSL_DataQuality_GraphManagerHelper.d.ts.map +1 -1
  82. package/lib/graph-manager/DSL_DataQuality_GraphManagerHelper.js +2 -1
  83. package/lib/graph-manager/DSL_DataQuality_GraphManagerHelper.js.map +1 -1
  84. package/lib/graph-manager/DSL_DataQuality_GraphModifierHelper.d.ts +13 -2
  85. package/lib/graph-manager/DSL_DataQuality_GraphModifierHelper.d.ts.map +1 -1
  86. package/lib/graph-manager/DSL_DataQuality_GraphModifierHelper.js +36 -2
  87. package/lib/graph-manager/DSL_DataQuality_GraphModifierHelper.js.map +1 -1
  88. package/lib/graph-manager/DSL_DataQuality_PureGraphManagerPlugin.d.ts.map +1 -1
  89. package/lib/graph-manager/DSL_DataQuality_PureGraphManagerPlugin.js +5 -2
  90. package/lib/graph-manager/DSL_DataQuality_PureGraphManagerPlugin.js.map +1 -1
  91. package/lib/graph-manager/action/changeDetection/DSL_DataQuality_ObserverHelper.d.ts +5 -1
  92. package/lib/graph-manager/action/changeDetection/DSL_DataQuality_ObserverHelper.d.ts.map +1 -1
  93. package/lib/graph-manager/action/changeDetection/DSL_DataQuality_ObserverHelper.js +29 -2
  94. package/lib/graph-manager/action/changeDetection/DSL_DataQuality_ObserverHelper.js.map +1 -1
  95. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.d.ts +6 -5
  96. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.d.ts.map +1 -1
  97. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.js.map +1 -1
  98. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.d.ts +1 -1
  99. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.d.ts.map +1 -1
  100. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.js +34 -40
  101. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.js.map +1 -1
  102. package/lib/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.d.ts +8 -6
  103. package/lib/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.d.ts.map +1 -1
  104. package/lib/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.js +19 -12
  105. package/lib/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.js.map +1 -1
  106. package/lib/graph-manager/protocol/pure/v1/{V1_DataQualityConstraintsConfiguration.d.ts → V1_DataQualityValidationConfiguration.d.ts} +26 -4
  107. package/lib/graph-manager/protocol/pure/v1/V1_DataQualityValidationConfiguration.d.ts.map +1 -0
  108. package/lib/graph-manager/protocol/pure/v1/{V1_DataQualityConstraintsConfiguration.js → V1_DataQualityValidationConfiguration.js} +49 -4
  109. package/lib/graph-manager/protocol/pure/v1/V1_DataQualityValidationConfiguration.js.map +1 -0
  110. package/lib/graph-manager/protocol/pure/v1/transformation/V1_DSL_DataQuality_ValueSpecificationBuilderHelper.d.ts +7 -3
  111. package/lib/graph-manager/protocol/pure/v1/transformation/V1_DSL_DataQuality_ValueSpecificationBuilderHelper.d.ts.map +1 -1
  112. package/lib/graph-manager/protocol/pure/v1/transformation/V1_DSL_DataQuality_ValueSpecificationBuilderHelper.js +43 -3
  113. package/lib/graph-manager/protocol/pure/v1/transformation/V1_DSL_DataQuality_ValueSpecificationBuilderHelper.js.map +1 -1
  114. package/lib/graph-manager/protocol/pure/v1/transformation/V1_DSL_DataQuality_ValueSpecificationTransformer.d.ts +6 -3
  115. package/lib/graph-manager/protocol/pure/v1/transformation/V1_DSL_DataQuality_ValueSpecificationTransformer.d.ts.map +1 -1
  116. package/lib/graph-manager/protocol/pure/v1/transformation/V1_DSL_DataQuality_ValueSpecificationTransformer.js +39 -2
  117. package/lib/graph-manager/protocol/pure/v1/transformation/V1_DSL_DataQuality_ValueSpecificationTransformer.js.map +1 -1
  118. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.d.ts +5 -2
  119. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.d.ts.map +1 -1
  120. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.js +27 -9
  121. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.js.map +1 -1
  122. package/lib/index.css +2 -2
  123. package/lib/index.css.map +1 -1
  124. package/lib/package.json +1 -1
  125. package/package.json +7 -7
  126. package/src/components/{DSL_DataQuality_ClassElementDriver.tsx → DSL_DataQuality_ElementDriver.tsx} +87 -18
  127. package/src/components/DSL_DataQuality_LegendStudioApplicationPlugin.tsx +33 -48
  128. package/src/components/DSL_NewDataQualityValidationElement.tsx +208 -0
  129. package/src/components/DataQualityRelationTrialRuns.tsx +288 -0
  130. package/src/components/DataQualityRelationValidationConfigurationEditor.tsx +364 -0
  131. package/src/components/DataQualityRelationValidationEditor.tsx +290 -0
  132. package/src/components/DataQualityResultPanel.tsx +1 -4
  133. package/src/components/DataQualityResultValues.tsx +1 -5
  134. package/src/components/DataQualitySideBar.tsx +2 -2
  135. package/src/components/DataQualityValidationDetailPanel.tsx +182 -0
  136. package/src/components/DataQualityValidationParametersEditor.tsx +355 -0
  137. package/src/components/states/ConstraintState.ts +2 -0
  138. package/src/components/states/DataQualityClassValidationState.ts +5 -5
  139. package/src/components/states/DataQualityRelationResultState.ts +274 -0
  140. package/src/components/states/DataQualityRelationValidationConfigurationState.ts +429 -0
  141. package/src/components/states/DataQualityRelationValidationLambdaEditorState.ts +138 -0
  142. package/src/components/states/DataQualityRelationValidationState.ts +180 -0
  143. package/src/components/states/DataQualityResultState.ts +6 -8
  144. package/src/components/states/DataQualityState.ts +1 -1
  145. package/src/graph/metamodel/DSL_DataQuality_HashUtils.ts +4 -0
  146. package/src/graph/metamodel/DSL_DataQuality_PureGraphPlugin.ts +2 -0
  147. package/src/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.ts +79 -3
  148. package/src/graph-manager/DSL_DataQuality_GraphManagerHelper.ts +13 -0
  149. package/src/graph-manager/DSL_DataQuality_GraphModifierHelper.ts +107 -0
  150. package/src/graph-manager/DSL_DataQuality_PureGraphManagerPlugin.ts +8 -0
  151. package/src/graph-manager/action/changeDetection/DSL_DataQuality_ObserverHelper.ts +54 -1
  152. package/src/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.ts +5 -3
  153. package/src/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.ts +72 -81
  154. package/src/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.ts +20 -23
  155. package/src/graph-manager/protocol/pure/v1/{V1_DataQualityConstraintsConfiguration.ts → V1_DataQualityValidationConfiguration.ts} +63 -4
  156. package/src/graph-manager/protocol/pure/v1/transformation/V1_DSL_DataQuality_ValueSpecificationBuilderHelper.ts +116 -2
  157. package/src/graph-manager/protocol/pure/v1/transformation/V1_DSL_DataQuality_ValueSpecificationTransformer.ts +78 -1
  158. package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.ts +55 -8
  159. package/style/_data-quality-relation-validation-builder.scss +454 -0
  160. package/style/index.scss +6 -0
  161. package/tsconfig.json +13 -6
  162. package/lib/components/DSL_DataQuality_ClassElementDriver.d.ts.map +0 -1
  163. package/lib/components/DSL_DataQuality_ClassElementDriver.js.map +0 -1
  164. package/lib/components/DSL_DataQuality_ServiceElementDriver.d.ts +0 -27
  165. package/lib/components/DSL_DataQuality_ServiceElementDriver.d.ts.map +0 -1
  166. package/lib/components/DSL_DataQuality_ServiceElementDriver.js +0 -41
  167. package/lib/components/DSL_DataQuality_ServiceElementDriver.js.map +0 -1
  168. package/lib/components/DSL_NewDataQualityClassValidationElement.d.ts.map +0 -1
  169. package/lib/components/DSL_NewDataQualityClassValidationElement.js +0 -64
  170. package/lib/components/DSL_NewDataQualityClassValidationElement.js.map +0 -1
  171. package/lib/components/DSL_NewDataQualityServiceValidationElement.d.ts.map +0 -1
  172. package/lib/components/DSL_NewDataQualityServiceValidationElement.js +0 -41
  173. package/lib/components/DSL_NewDataQualityServiceValidationElement.js.map +0 -1
  174. package/lib/graph-manager/protocol/pure/v1/V1_DataQualityConstraintsConfiguration.d.ts.map +0 -1
  175. package/lib/graph-manager/protocol/pure/v1/V1_DataQualityConstraintsConfiguration.js.map +0 -1
  176. package/src/components/DSL_DataQuality_ServiceElementDriver.tsx +0 -57
  177. package/src/components/DSL_NewDataQualityClassValidationElement.tsx +0 -156
  178. package/src/components/DSL_NewDataQualityServiceValidationElement.tsx +0 -74
@@ -0,0 +1,129 @@
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 { Class, Enumeration, MULTIPLICITY_INFINITE, PrimitiveType, Unit, } from '@finos/legend-graph';
19
+ import { useCallback, useRef, useState } from 'react';
20
+ import { useEditorStore, rawVariableExpression_setName, rawVariableExpression_setType, rawVariableExpression_setMultiplicity, getElementIcon, LEGEND_STUDIO_TEST_ID, } from '@finos/legend-application-studio';
21
+ import { useApplicationStore } from '@finos/legend-application';
22
+ import { buildElementOption, } from '@finos/legend-lego/graph-editor';
23
+ import { UnsupportedOperationError } from '@finos/legend-shared';
24
+ import { ArrowCircleRightIcon, clsx, createFilter, CustomSelectorInput, LockIcon, PanelDnDEntry, PanelEntryDragHandle, TimesIcon, useDragPreviewLayer, } from '@finos/legend-art';
25
+ import { useDrag, useDrop } from 'react-dnd';
26
+ import { dataQualityRelationValidation_swapParameters } from '../graph-manager/DSL_DataQuality_GraphModifierHelper.js';
27
+ var FUNCTION_PARAMETER_TYPE;
28
+ (function (FUNCTION_PARAMETER_TYPE) {
29
+ FUNCTION_PARAMETER_TYPE["CLASS"] = "CLASS";
30
+ FUNCTION_PARAMETER_TYPE["ENUMERATION"] = "ENUMERATION";
31
+ FUNCTION_PARAMETER_TYPE["PRIMITIVE"] = "PRIMITIVE";
32
+ })(FUNCTION_PARAMETER_TYPE || (FUNCTION_PARAMETER_TYPE = {}));
33
+ const getFunctionParameterType = (type) => {
34
+ if (type instanceof PrimitiveType) {
35
+ return FUNCTION_PARAMETER_TYPE.PRIMITIVE;
36
+ }
37
+ else if (type instanceof Enumeration) {
38
+ return FUNCTION_PARAMETER_TYPE.ENUMERATION;
39
+ }
40
+ else if (type instanceof Class) {
41
+ return FUNCTION_PARAMETER_TYPE.CLASS;
42
+ }
43
+ throw new UnsupportedOperationError(`Can't classify function parameter`, type);
44
+ };
45
+ export const FUNCTION_PARAMETER_DND_TYPE = 'FUNCTION_PARAMETER';
46
+ export const DataQualityValidationParametersEditor = observer((props) => {
47
+ const ref = useRef(null);
48
+ const handleRef = useRef(null);
49
+ const { parameter, _validationConfig, deleteParameter, isReadOnly } = props;
50
+ const editorStore = useEditorStore();
51
+ const applicationStore = useApplicationStore();
52
+ // Name
53
+ const changeValue = (event) => rawVariableExpression_setName(parameter, event.target.value);
54
+ // Type
55
+ const [isEditingType, setIsEditingType] = useState(false);
56
+ const typeOptions = editorStore.graphManagerState.usableClassPropertyTypes.map(buildElementOption);
57
+ const paramType = parameter.type.value;
58
+ const typeName = getFunctionParameterType(paramType);
59
+ const filterOption = createFilter({
60
+ ignoreCase: true,
61
+ ignoreAccents: false,
62
+ stringify: (option) => option.data.value.path,
63
+ });
64
+ const selectedType = { value: paramType, label: paramType.name };
65
+ const changeType = (val) => {
66
+ if (val.value !== parameter.type.value) {
67
+ rawVariableExpression_setType(parameter, val.value);
68
+ // updateFunctionName(editorStore, applicationStore, _func);
69
+ }
70
+ setIsEditingType(false);
71
+ };
72
+ const openElement = () => {
73
+ if (!(paramType instanceof PrimitiveType)) {
74
+ editorStore.graphEditorMode.openElement(paramType instanceof Unit ? paramType.measure : paramType);
75
+ }
76
+ };
77
+ // Multiplicity
78
+ const [lowerBound, setLowerBound] = useState(parameter.multiplicity.lowerBound);
79
+ const [upperBound, setUpperBound] = useState(parameter.multiplicity.upperBound ?? MULTIPLICITY_INFINITE);
80
+ const updateMultiplicity = (lower, upper) => {
81
+ const lBound = typeof lower === 'number' ? lower : parseInt(lower, 10);
82
+ const uBound = upper === MULTIPLICITY_INFINITE
83
+ ? undefined
84
+ : typeof upper === 'number'
85
+ ? upper
86
+ : parseInt(upper, 10);
87
+ if (!isNaN(lBound) && (uBound === undefined || !isNaN(uBound))) {
88
+ rawVariableExpression_setMultiplicity(parameter, editorStore.graphManagerState.graph.getMultiplicity(lBound, uBound));
89
+ }
90
+ };
91
+ const changeLowerBound = (event) => {
92
+ setLowerBound(event.target.value);
93
+ updateMultiplicity(event.target.value, upperBound);
94
+ };
95
+ const changeUpperBound = (event) => {
96
+ setUpperBound(event.target.value);
97
+ updateMultiplicity(lowerBound, event.target.value);
98
+ };
99
+ // Drag and Drop
100
+ const handleHover = useCallback((item) => {
101
+ const draggingParameter = item.parameter;
102
+ const hoveredParameter = parameter;
103
+ dataQualityRelationValidation_swapParameters(_validationConfig.query.parameters, draggingParameter, hoveredParameter);
104
+ }, [_validationConfig.query.parameters, parameter]);
105
+ const [{ isBeingDraggedParameter }, dropConnector] = useDrop(() => ({
106
+ accept: [FUNCTION_PARAMETER_DND_TYPE],
107
+ hover: (item) => handleHover(item),
108
+ collect: (monitor) => ({
109
+ isBeingDraggedParameter: monitor.getItem()?.parameter,
110
+ }),
111
+ }), [handleHover]);
112
+ const isBeingDragged = parameter === isBeingDraggedParameter;
113
+ const [, dragConnector, dragPreviewConnector] = useDrag(() => ({
114
+ type: FUNCTION_PARAMETER_DND_TYPE,
115
+ item: () => ({
116
+ parameter: parameter,
117
+ }),
118
+ }), [parameter]);
119
+ dragConnector(handleRef);
120
+ dropConnector(ref);
121
+ useDragPreviewLayer(dragPreviewConnector);
122
+ return (_jsxs(PanelDnDEntry, { ref: ref, placeholder: _jsx("div", { className: "dnd__placeholder--light" }), className: "property-basic-editor__container", showPlaceholder: isBeingDragged, children: [_jsx(PanelEntryDragHandle, { dragSourceConnector: handleRef, isDragging: isBeingDragged }), _jsxs("div", { className: "property-basic-editor", children: [isReadOnly && (_jsx("div", { className: "property-basic-editor__lock", children: _jsx(LockIcon, {}) })), _jsx("input", { className: "property-basic-editor__name input--dark", disabled: isReadOnly, value: parameter.name, spellCheck: false, onChange: changeValue, placeholder: "Parameter name" }), !isReadOnly && isEditingType && (_jsx(CustomSelectorInput, { className: "property-basic-editor__type", options: typeOptions, onChange: changeType, value: selectedType, placeholder: "Choose a type...", filterOption: filterOption, darkMode: !applicationStore.layoutService
123
+ .TEMPORARY__isLightColorThemeEnabled })), !isReadOnly && !isEditingType && (_jsxs("div", { className: clsx('property-basic-editor__type', 'property-basic-editor__type--show-click-hint', `background--${typeName.toLowerCase()}`, {
124
+ 'property-basic-editor__type--has-visit-btn': typeName !== FUNCTION_PARAMETER_TYPE.PRIMITIVE,
125
+ }), children: [typeName !== FUNCTION_PARAMETER_TYPE.PRIMITIVE && (_jsx("div", { className: "property-basic-editor__type__abbr", children: getElementIcon(paramType, editorStore) })), _jsx("div", { className: "property-basic-editor__type__label", children: paramType.name }), _jsx("div", { className: "property-basic-editor__type__label property-basic-editor__type__label--hover", onClick: () => setIsEditingType(true), children: "Click to edit" }), typeName !== FUNCTION_PARAMETER_TYPE.PRIMITIVE && (_jsx("button", { "data-testid": LEGEND_STUDIO_TEST_ID.TYPE_VISIT, className: "property-basic-editor__type__visit-btn", onClick: openElement, tabIndex: -1, title: "Visit element", children: _jsx(ArrowCircleRightIcon, {}) }))] })), isReadOnly && (_jsxs("div", { className: clsx('property-basic-editor__type', `background--${typeName.toLowerCase()}`, {
126
+ 'property-basic-editor__type--has-visit-btn': typeName !== FUNCTION_PARAMETER_TYPE.PRIMITIVE,
127
+ }), children: [typeName !== FUNCTION_PARAMETER_TYPE.PRIMITIVE && (_jsx("div", { className: "property-basic-editor__type__abbr", children: getElementIcon(paramType, editorStore) })), _jsx("div", { className: "property-basic-editor__type__label", children: paramType.name }), typeName !== FUNCTION_PARAMETER_TYPE.PRIMITIVE && (_jsx("button", { "data-testid": LEGEND_STUDIO_TEST_ID.TYPE_VISIT, className: "property-basic-editor__type__visit-btn", onClick: openElement, tabIndex: -1, title: "Visit element", children: _jsx(ArrowCircleRightIcon, {}) }))] })), _jsxs("div", { className: "property-basic-editor__multiplicity", children: [_jsx("input", { className: "property-basic-editor__multiplicity-bound", disabled: isReadOnly, spellCheck: false, value: lowerBound, onChange: changeLowerBound }), _jsx("div", { className: "property-basic-editor__multiplicity__range", children: ".." }), _jsx("input", { className: "property-basic-editor__multiplicity-bound", disabled: isReadOnly, spellCheck: false, value: upperBound, onChange: changeUpperBound })] }), !isReadOnly && (_jsx("button", { className: "uml-element-editor__remove-btn btn--dark btn--caution", disabled: isReadOnly, onClick: deleteParameter, tabIndex: -1, title: "Remove", children: _jsx(TimesIcon, {}) }))] })] }));
128
+ });
129
+ //# sourceMappingURL=DataQualityValidationParametersEditor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataQualityValidationParametersEditor.js","sourceRoot":"","sources":["../../src/components/DataQualityValidationParametersEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAGL,KAAK,E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EAAC,wCAAwC,EAClD,OAAO,EAAE,WAAW,EACpB,QAAQ,EAAE,CAAC,CAAC,EACZ,KAAK,EAAC,eAAe,YAErB,KAAC,oBAAoB,KAAG,GACjB,CACV,IACG,CACP,EACD,eAAK,SAAS,EAAC,qCAAqC,aAClD,gBACE,SAAS,EAAC,2CAA2C,EACrD,QAAQ,EAAE,UAAU,EACpB,UAAU,EAAE,KAAK,EACjB,KAAK,EAAE,UAAU,EACjB,QAAQ,EAAE,gBAAgB,GAC1B,EACF,cAAK,SAAS,EAAC,4CAA4C,mBAAS,EACpE,gBACE,SAAS,EAAC,2CAA2C,EACrD,QAAQ,EAAE,UAAU,EACpB,UAAU,EAAE,KAAK,EACjB,KAAK,EAAE,UAAU,EACjB,QAAQ,EAAE,gBAAgB,GAC1B,IACE,EACL,CAAC,UAAU,IAAI,CACd,iBACE,SAAS,EAAC,uDAAuD,EACjE,QAAQ,EAAE,UAAU,EACpB,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,CAAC,CAAC,EACZ,KAAK,EAAC,QAAQ,YAEd,KAAC,SAAS,KAAG,GACN,CACV,IACG,IACQ,CACjB,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -15,6 +15,8 @@
15
15
  */
16
16
  import { type Constraint } from '@finos/legend-graph';
17
17
  export declare const CONSTRAINT_SOURCE_ID_LABEL = "constraint";
18
+ export declare const VALIDATION_SOURCE_ID_LABEL = "validation";
19
+ export declare const VALIDATION_ROW_MAP_ID_LABEL = "validation_row_map";
18
20
  export declare class ConstraintState {
19
21
  readonly uuid: string;
20
22
  constraint: Constraint;
@@ -1 +1 @@
1
- {"version":3,"file":"ConstraintState.d.ts","sourceRoot":"","sources":["../../../src/components/states/ConstraintState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,UAAU,EAGhB,MAAM,qBAAqB,CAAC;AAI7B,eAAO,MAAM,0BAA0B,eAAe,CAAC;AAEvD,qBAAa,eAAe;IAC1B,QAAQ,CAAC,IAAI,SAAU;IACvB,UAAU,EAAE,UAAU,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,UAAS;IACnB,YAAY,EAAE,MAAM,CAAe;gBAEvB,UAAU,EAAE,UAAU;IAalC,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAIlC,aAAa,CAAC,GAAG,EAAE,OAAO;IAI1B,mBAAmB,CAAC,gBAAgB,EAAE,MAAM,GAAG,MAAM;IAOrD,IAAI,QAAQ,IAAI,MAAM,CAOrB;CACF"}
1
+ {"version":3,"file":"ConstraintState.d.ts","sourceRoot":"","sources":["../../../src/components/states/ConstraintState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,UAAU,EAGhB,MAAM,qBAAqB,CAAC;AAI7B,eAAO,MAAM,0BAA0B,eAAe,CAAC;AACvD,eAAO,MAAM,0BAA0B,eAAe,CAAC;AACvD,eAAO,MAAM,2BAA2B,uBAAuB,CAAC;AAEhE,qBAAa,eAAe;IAC1B,QAAQ,CAAC,IAAI,SAAU;IACvB,UAAU,EAAE,UAAU,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,UAAS;IACnB,YAAY,EAAE,MAAM,CAAe;gBAEvB,UAAU,EAAE,UAAU;IAalC,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAIlC,aAAa,CAAC,GAAG,EAAE,OAAO;IAI1B,mBAAmB,CAAC,gBAAgB,EAAE,MAAM,GAAG,MAAM;IAOrD,IAAI,QAAQ,IAAI,MAAM,CAOrB;CACF"}
@@ -17,6 +17,8 @@ import { buildSourceInformationSourceId, LAMBDA_PIPE, } from '@finos/legend-grap
17
17
  import { action, makeObservable, observable } from 'mobx';
18
18
  import { uuid } from '@finos/legend-shared';
19
19
  export const CONSTRAINT_SOURCE_ID_LABEL = 'constraint';
20
+ export const VALIDATION_SOURCE_ID_LABEL = 'validation';
21
+ export const VALIDATION_ROW_MAP_ID_LABEL = 'validation_row_map';
20
22
  export class ConstraintState {
21
23
  uuid = uuid();
22
24
  constraint;
@@ -1 +1 @@
1
- {"version":3,"file":"ConstraintState.js","sourceRoot":"","sources":["../../../src/components/states/ConstraintState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,8BAA8B,EAC9B,WAAW,GACZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAE5C,MAAM,CAAC,MAAM,0BAA0B,GAAG,YAAY,CAAC;AAEvD,MAAM,OAAO,eAAe;IACjB,IAAI,GAAG,IAAI,EAAE,CAAC;IACvB,UAAU,CAAa;IACvB,YAAY,CAAS;IACrB,UAAU,GAAG,KAAK,CAAC;IACnB,YAAY,GAAW,WAAW,CAAC;IAEnC,YAAY,UAAsB;QAChC,cAAc,CAAC,IAAI,EAAE;YACnB,UAAU,EAAE,UAAU;YACtB,UAAU,EAAE,UAAU;YACtB,YAAY,EAAE,UAAU;YACxB,eAAe,EAAE,MAAM;YACvB,aAAa,EAAE,MAAM;SACtB,CAAC,CAAC;QAEH,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;IACzB,CAAC;IAED,eAAe,CAAC,GAAW;QACzB,IAAI,CAAC,YAAY,GAAG,GAAG,CAAC;IAC1B,CAAC;IAED,aAAa,CAAC,GAAY;QACxB,IAAI,CAAC,UAAU,GAAG,GAAG,CAAC;IACxB,CAAC;IAED,mBAAmB,CAAC,gBAAwB;QAC1C,OAAO,gBAAgB,CAAC,SAAS,CAC/B,gBAAgB,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC,MAAM,EACtE,gBAAgB,CAAC,MAAM,CACxB,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,8BAA8B,CAAC;YACpC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI;YAC3B,0BAA0B;YAC1B,IAAI,CAAC,UAAU,CAAC,IAAI;YACpB,IAAI,CAAC,IAAI,EAAE,0BAA0B;SACtC,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"ConstraintState.js","sourceRoot":"","sources":["../../../src/components/states/ConstraintState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,8BAA8B,EAC9B,WAAW,GACZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAE5C,MAAM,CAAC,MAAM,0BAA0B,GAAG,YAAY,CAAC;AACvD,MAAM,CAAC,MAAM,0BAA0B,GAAG,YAAY,CAAC;AACvD,MAAM,CAAC,MAAM,2BAA2B,GAAG,oBAAoB,CAAC;AAEhE,MAAM,OAAO,eAAe;IACjB,IAAI,GAAG,IAAI,EAAE,CAAC;IACvB,UAAU,CAAa;IACvB,YAAY,CAAS;IACrB,UAAU,GAAG,KAAK,CAAC;IACnB,YAAY,GAAW,WAAW,CAAC;IAEnC,YAAY,UAAsB;QAChC,cAAc,CAAC,IAAI,EAAE;YACnB,UAAU,EAAE,UAAU;YACtB,UAAU,EAAE,UAAU;YACtB,YAAY,EAAE,UAAU;YACxB,eAAe,EAAE,MAAM;YACvB,aAAa,EAAE,MAAM;SACtB,CAAC,CAAC;QAEH,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;IACzB,CAAC;IAED,eAAe,CAAC,GAAW;QACzB,IAAI,CAAC,YAAY,GAAG,GAAG,CAAC;IAC1B,CAAC;IAED,aAAa,CAAC,GAAY;QACxB,IAAI,CAAC,UAAU,GAAG,GAAG,CAAC;IACxB,CAAC;IAED,mBAAmB,CAAC,gBAAwB;QAC1C,OAAO,gBAAgB,CAAC,SAAS,CAC/B,gBAAgB,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC,MAAM,EACtE,gBAAgB,CAAC,MAAM,CACxB,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,8BAA8B,CAAC;YACpC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI;YAC3B,0BAA0B;YAC1B,IAAI,CAAC,UAAU,CAAC,IAAI;YACpB,IAAI,CAAC,IAAI,EAAE,0BAA0B;SACtC,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -18,12 +18,12 @@ import type { EditorStore, ElementEditorState } from '@finos/legend-application-
18
18
  import { DataQualityClassValidationsConfiguration } from '../../graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js';
19
19
  import { DataQualityState } from './DataQualityState.js';
20
20
  import { type DataSpaceInfo, type DataSpaceExecutionContext, DataSpace } from '@finos/legend-extension-dsl-data-space/graph';
21
- import { ELEMENT_CREATION_BASIS } from '../DSL_DataQuality_ClassElementDriver.js';
21
+ import { CLASS_ELEMENT_CREATION_BASIS } from '../DSL_DataQuality_ElementDriver.js';
22
22
  import { type GeneratorFn } from '@finos/legend-shared';
23
23
  export declare class DataQualityClassValidationState extends DataQualityState {
24
24
  dataSpace?: DataSpace | undefined;
25
25
  dataSpaces: DataSpaceInfo[];
26
- validationElementCreationBasis: ELEMENT_CREATION_BASIS;
26
+ validationElementCreationBasis: CLASS_ELEMENT_CREATION_BASIS;
27
27
  constructor(editorStore: EditorStore, element: DataQualityClassValidationsConfiguration);
28
28
  reprocess(newElement: PackageableElement, editorStore: EditorStore): ElementEditorState;
29
29
  get constraintsConfigurationElement(): DataQualityClassValidationsConfiguration;
@@ -1 +1 @@
1
- {"version":3,"file":"DataQualityClassValidationState.d.ts","sourceRoot":"","sources":["../../../src/components/states/DataQualityClassValidationState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAEL,KAAK,OAAO,EACZ,KAAK,kBAAkB,EACvB,KAAK,OAAO,EAIb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,WAAW,EACX,kBAAkB,EACnB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,wCAAwC,EAGzC,MAAM,mGAAmG,CAAC;AAC3G,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,yBAAyB,EAC9B,SAAS,EAEV,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAClF,OAAO,EACL,KAAK,WAAW,EAMjB,MAAM,sBAAsB,CAAC;AAW9B,qBAAa,+BAAgC,SAAQ,gBAAgB;IACnE,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAClC,UAAU,EAAE,aAAa,EAAE,CAAM;IACjC,8BAA8B,EAAE,sBAAsB,CACP;gBAG7C,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,wCAAwC;IAiBnD,SAAS,CACP,UAAU,EAAE,kBAAkB,EAC9B,WAAW,EAAE,WAAW,GACvB,kBAAkB;IAUrB,IAAa,+BAA+B,IAAI,wCAAwC,CAMvF;IAED,eAAe;IAqEf,aAAa,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE;QAAE,gBAAgB,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI;IAgB3E,aAAa,CAAC,GAAG,EAAE,OAAO;IAK1B,4BAA4B;IA4B5B,4BAA4B,CAAC,OAAO,EAAE,OAAO;IAS7C,qCAAqC,CAAC,OAAO,EAAE,MAAM;IAOrD,+BAA+B,CAC7B,gBAAgB,EAAE,yBAAyB,GAC1C,IAAI;IAwBP,iBAAiB,CAAC,aAAa,EAAE,aAAa;IAW9C,8BAA8B;IAa7B,cAAc,IAAI,WAAW,CAAC,IAAI,CAAC;CAgBrC"}
1
+ {"version":3,"file":"DataQualityClassValidationState.d.ts","sourceRoot":"","sources":["../../../src/components/states/DataQualityClassValidationState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAEL,KAAK,OAAO,EACZ,KAAK,kBAAkB,EACvB,KAAK,OAAO,EAIb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,WAAW,EACX,kBAAkB,EACnB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,wCAAwC,EAGzC,MAAM,mGAAmG,CAAC;AAC3G,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,yBAAyB,EAC9B,SAAS,EAEV,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AACnF,OAAO,EACL,KAAK,WAAW,EAMjB,MAAM,sBAAsB,CAAC;AAW9B,qBAAa,+BAAgC,SAAQ,gBAAgB;IACnE,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAClC,UAAU,EAAE,aAAa,EAAE,CAAM;IACjC,8BAA8B,EAAE,4BAA4B,CACP;gBAGnD,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,wCAAwC;IAiBnD,SAAS,CACP,UAAU,EAAE,kBAAkB,EAC9B,WAAW,EAAE,WAAW,GACvB,kBAAkB;IAUrB,IAAa,+BAA+B,IAAI,wCAAwC,CAMvF;IAED,eAAe;IAqEf,aAAa,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE;QAAE,gBAAgB,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI;IAgB3E,aAAa,CAAC,GAAG,EAAE,OAAO;IAK1B,4BAA4B;IA4B5B,4BAA4B,CAAC,OAAO,EAAE,OAAO;IAS7C,qCAAqC,CAAC,OAAO,EAAE,MAAM;IAOrD,+BAA+B,CAC7B,gBAAgB,EAAE,yBAAyB,GAC1C,IAAI;IAwBP,iBAAiB,CAAC,aAAa,EAAE,aAAa;IAW9C,8BAA8B;IAa7B,cAAc,IAAI,WAAW,CAAC,IAAI,CAAC;CAgBrC"}
@@ -18,7 +18,7 @@ import { getMappingCompatibleClasses, PackageableElementExplicitReference, Runti
18
18
  import { DataQualityClassValidationsConfiguration, DataSpaceDataQualityExecutionContext, MappingAndRuntimeDataQualityExecutionContext, } from '../../graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js';
19
19
  import { DataQualityState } from './DataQualityState.js';
20
20
  import { DataSpace, resolveUsableDataSpaceClasses, } from '@finos/legend-extension-dsl-data-space/graph';
21
- import { ELEMENT_CREATION_BASIS } from '../DSL_DataQuality_ClassElementDriver.js';
21
+ import { CLASS_ELEMENT_CREATION_BASIS } from '../DSL_DataQuality_ElementDriver.js';
22
22
  import { assertType, filterByType, getNullableFirstEntry, guaranteeNonNullable, guaranteeType, } from '@finos/legend-shared';
23
23
  import { dataQualityClassValidation_setContextDataQualityContext, dataQualityClassValidation_setDataQualityContext, dataQualityClassValidation_setDataQualityGraphFetchTree, dataQualityClassValidation_setFilter, dataQualityClassValidation_setRuntimeDataQualityContext, } from '../../graph-manager/DSL_DataQuality_GraphModifierHelper.js';
24
24
  import { DataQualityGraphFetchTreeState } from './DataQualityGraphFetchTreeState.js';
@@ -26,7 +26,7 @@ import { DataQualityResultState } from './DataQualityResultState.js';
26
26
  export class DataQualityClassValidationState extends DataQualityState {
27
27
  dataSpace;
28
28
  dataSpaces = [];
29
- validationElementCreationBasis = ELEMENT_CREATION_BASIS.MAPPING_RUNTIME_BASED;
29
+ validationElementCreationBasis = CLASS_ELEMENT_CREATION_BASIS.MAPPING_RUNTIME_BASED;
30
30
  constructor(editorStore, element) {
31
31
  super(editorStore, element);
32
32
  makeObservable(this, {
@@ -54,7 +54,7 @@ export class DataQualityClassValidationState extends DataQualityState {
54
54
  if (this.constraintsConfigurationElement.context instanceof
55
55
  MappingAndRuntimeDataQualityExecutionContext) {
56
56
  this.validationElementCreationBasis =
57
- ELEMENT_CREATION_BASIS.MAPPING_RUNTIME_BASED;
57
+ CLASS_ELEMENT_CREATION_BASIS.MAPPING_RUNTIME_BASED;
58
58
  this.dataQualityQueryBuilderState.executionContextState.setMapping(this.constraintsConfigurationElement.context.mapping.value);
59
59
  this.dataQualityQueryBuilderState.executionContextState.setRuntimeValue(new RuntimePointer(this.constraintsConfigurationElement.context.runtime));
60
60
  classOptions = getMappingCompatibleClasses(this.dataQualityQueryBuilderState.executionContextState.mapping, this.graphManagerState.usableClasses);
@@ -62,7 +62,7 @@ export class DataQualityClassValidationState extends DataQualityState {
62
62
  else if (this.constraintsConfigurationElement.context instanceof
63
63
  DataSpaceDataQualityExecutionContext) {
64
64
  this.validationElementCreationBasis =
65
- ELEMENT_CREATION_BASIS.DATASPACE_BASED;
65
+ CLASS_ELEMENT_CREATION_BASIS.DATASPACE_BASED;
66
66
  this.dataSpace =
67
67
  this.constraintsConfigurationElement.context.dataSpace.value;
68
68
  this.executionContext = this.dataSpace.defaultExecutionContext;
@@ -1 +1 @@
1
- {"version":3,"file":"DataQualityClassValidationState.js","sourceRoot":"","sources":["../../../src/components/states/DataQualityClassValidationState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAChE,OAAO,EAKL,2BAA2B,EAC3B,mCAAmC,EACnC,cAAc,GACf,MAAM,qBAAqB,CAAC;AAK7B,OAAO,EACL,wCAAwC,EACxC,oCAAoC,EACpC,4CAA4C,GAC7C,MAAM,mGAAmG,CAAC;AAC3G,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAGL,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U,CAAC,CAAC;QAC9D,gDAAgD,CAC9C,IAAI,CAAC,+BAA+B,EACpC,yBAAyB,CAC1B,CAAC;QACF,IAAI,CAAC,0BAA0B,EAAE,CAAC;IACpC,CAAC;IAED,CAAC,cAAc;QACb,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,cAAc;aAC1D,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;aAC/B,GAAG,CACF,CAAC,CAAC,EAAE,EAAE,CACJ,CAAC;YACC,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,SAAS;YACrB,SAAS,EAAE,SAAS;YACpB,IAAI,EAAE,CAAC,CAAC,IAAI;YACZ,IAAI,EAAE,CAAC,CAAC,IAAI;YACZ,KAAK,EAAE,CAAC,CAAC,KAAK;YACd,uBAAuB,EAAE,CAAC,CAAC,uBAAuB,CAAC,IAAI;SACxD,CAAkB,CACtB,CAAC;IACN,CAAC;CACF"}
1
+ {"version":3,"file":"DataQualityClassValidationState.js","sourceRoot":"","sources":["../../../src/components/states/DataQualityClassValidationState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAChE,OAAO,EAKL,2BAA2B,EAC3B,mCAAmC,EACnC,cAAc,GACf,MAAM,qBAAqB,CAAC;AAK7B,OAAO,EACL,wCAAwC,EACxC,oCAAoC,EACpC,4CAA4C,GAC7C,MAAM,mGAAmG,CAAC;AAC3G,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAGL,SAAS,EACT,6BAA6B,GAC9B,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AACnF,OAAO,EAEL,UAAU,EACV,YAAY,EACZ,qBAAqB,EACrB,oBAAoB,EACpB,aAAa,GACd,MAAM,sBA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,iBAAiB,CAAC,KAAK,CAAC,cAAc;aAC1D,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;aAC/B,GAAG,CACF,CAAC,CAAC,EAAE,EAAE,CACJ,CAAC;YACC,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,SAAS;YACrB,SAAS,EAAE,SAAS;YACpB,IAAI,EAAE,CAAC,CAAC,IAAI;YACZ,IAAI,EAAE,CAAC,CAAC,IAAI;YACZ,KAAK,EAAE,CAAC,CAAC,KAAK;YACd,uBAAuB,EAAE,CAAC,CAAC,uBAAuB,CAAC,IAAI;SACxD,CAAkB,CACtB,CAAC;IACN,CAAC;CACF"}
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { ExecutionPlanState } from '@finos/legend-query-builder';
17
+ import { type GeneratorFn } from '@finos/legend-shared';
18
+ import { type ExecutionResult } from '@finos/legend-graph';
19
+ import type { DataQualityRelationValidationConfigurationState } from './DataQualityRelationValidationConfigurationState.js';
20
+ import type { DataQualityRelationValidation } from '../../graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js';
21
+ export declare const DEFAULT_LIMIT = 1000;
22
+ export declare class DataQualityRelationResultState {
23
+ readonly dataQualityRelationValidationConfigurationState: DataQualityRelationValidationConfigurationState;
24
+ readonly executionPlanState: ExecutionPlanState;
25
+ previewLimit: number;
26
+ isRunningValidation: boolean;
27
+ isGeneratingPlan: boolean;
28
+ executionResult?: ExecutionResult | undefined;
29
+ executionDuration?: number | undefined;
30
+ latestRunHashCode?: string | undefined;
31
+ validationRunPromise: Promise<ExecutionResult> | undefined;
32
+ validationToRun: DataQualityRelationValidation | undefined;
33
+ constructor(dataQualityRelationValidationState: DataQualityRelationValidationConfigurationState);
34
+ setIsRunningValidation(val: boolean): void;
35
+ setExecutionResult(val: ExecutionResult | undefined): void;
36
+ setExecutionDuration(val: number | undefined): void;
37
+ setPreviewLimit(val: number): void;
38
+ setValidationRunPromise(promise: Promise<ExecutionResult> | undefined): void;
39
+ setValidationToRun(validation: DataQualityRelationValidation): void;
40
+ get checkForStaleResults(): boolean;
41
+ handleRunValidation(): void;
42
+ runValidation(): GeneratorFn<void>;
43
+ cancelValidation(): GeneratorFn<void>;
44
+ generatePlan(debug: boolean): GeneratorFn<void>;
45
+ }
46
+ //# sourceMappingURL=DataQualityRelationResultState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataQualityRelationResultState.d.ts","sourceRoot":"","sources":["../../../src/components/states/DataQualityRelationResultState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,kBAAkB,EAGnB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EACL,KAAK,WAAW,EAIjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,eAAe,EAGrB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,+CAA+C,EAAE,MAAM,sDAAsD,CAAC;AAC5H,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mGAAmG,CAAC;AAEvJ,eAAO,MAAM,aAAa,OAAO,CAAC;AAClC,qBAAa,8BAA8B;IACzC,QAAQ,CAAC,+CAA+C,EAAE,+CAA+C,CAAC;IAC1G,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IAEhD,YAAY,SAAiB;IAC7B,mBAAmB,UAAS;IAC5B,gBAAgB,UAAS;IACzB,eAAe,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IAC9C,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,oBAAoB,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,SAAS,CAAa;IACvE,eAAe,EAAE,6BAA6B,GAAG,SAAS,CAAC;gBAGzD,kCAAkC,EAAE,+CAA+C;IA+BrF,sBAAsB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAI1C,kBAAkB,CAAC,GAAG,EAAE,eAAe,GAAG,SAAS,GAAG,IAAI;IAI1D,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAInD,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAIlC,uBAAuB,CAAC,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,SAAS,GAAG,IAAI;IAI5E,kBAAkB,CAAC,UAAU,EAAE,6BAA6B,GAAG,IAAI;IAInE,IAAI,oBAAoB,IAAI,OAAO,CAQlC;IAED,mBAAmB;IAoBlB,aAAa,IAAI,WAAW,CAAC,IAAI,CAAC;IAsDlC,gBAAgB,IAAI,WAAW,CAAC,IAAI,CAAC;IAgBrC,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,WAAW,CAAC,IAAI,CAAC;CAiEjD"}
@@ -0,0 +1,194 @@
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 { buildExecutionParameterValues, ExecutionPlanState, QUERY_BUILDER_EVENT, QueryBuilderTelemetryHelper, } from '@finos/legend-query-builder';
17
+ import { action, flow, flowResult, makeObservable, observable } from 'mobx';
18
+ import { assertErrorThrown, LogEvent, StopWatch, } from '@finos/legend-shared';
19
+ import { GRAPH_MANAGER_EVENT, } from '@finos/legend-graph';
20
+ import { getDataQualityPureGraphManagerExtension } from '../../graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.js';
21
+ export const DEFAULT_LIMIT = 1000;
22
+ export class DataQualityRelationResultState {
23
+ dataQualityRelationValidationConfigurationState;
24
+ executionPlanState;
25
+ previewLimit = DEFAULT_LIMIT;
26
+ isRunningValidation = false;
27
+ isGeneratingPlan = false;
28
+ executionResult;
29
+ executionDuration;
30
+ latestRunHashCode;
31
+ validationRunPromise = undefined;
32
+ validationToRun;
33
+ constructor(dataQualityRelationValidationState) {
34
+ makeObservable(this, {
35
+ executionResult: observable,
36
+ previewLimit: observable,
37
+ executionDuration: observable,
38
+ latestRunHashCode: observable,
39
+ validationRunPromise: observable,
40
+ isGeneratingPlan: observable,
41
+ isRunningValidation: observable,
42
+ validationToRun: observable,
43
+ setIsRunningValidation: action,
44
+ setExecutionResult: action,
45
+ setExecutionDuration: action,
46
+ setPreviewLimit: action,
47
+ setValidationRunPromise: action,
48
+ setValidationToRun: action,
49
+ handleRunValidation: action,
50
+ runValidation: flow,
51
+ cancelValidation: flow,
52
+ generatePlan: flow,
53
+ });
54
+ this.dataQualityRelationValidationConfigurationState =
55
+ dataQualityRelationValidationState;
56
+ this.executionPlanState = new ExecutionPlanState(this.dataQualityRelationValidationConfigurationState.editorStore.applicationStore, this.dataQualityRelationValidationConfigurationState.editorStore.graphManagerState);
57
+ }
58
+ setIsRunningValidation(val) {
59
+ this.isRunningValidation = val;
60
+ }
61
+ setExecutionResult(val) {
62
+ this.executionResult = val;
63
+ }
64
+ setExecutionDuration(val) {
65
+ this.executionDuration = val;
66
+ }
67
+ setPreviewLimit(val) {
68
+ this.previewLimit = Math.max(1, val);
69
+ }
70
+ setValidationRunPromise(promise) {
71
+ this.validationRunPromise = promise;
72
+ }
73
+ setValidationToRun(validation) {
74
+ this.validationToRun = validation;
75
+ }
76
+ get checkForStaleResults() {
77
+ if (this.latestRunHashCode !==
78
+ this.dataQualityRelationValidationConfigurationState.hashCode) {
79
+ return true;
80
+ }
81
+ return false;
82
+ }
83
+ handleRunValidation() {
84
+ if (this.isRunningValidation) {
85
+ return;
86
+ }
87
+ const queryLambda = this.dataQualityRelationValidationConfigurationState
88
+ .bodyExpressionSequence;
89
+ const parameters = (queryLambda.parameters ?? []);
90
+ if (parameters.length) {
91
+ this.dataQualityRelationValidationConfigurationState.parametersState.openModal(queryLambda);
92
+ }
93
+ else {
94
+ flowResult(this.runValidation()).catch(this.dataQualityRelationValidationConfigurationState.editorStore
95
+ .applicationStore.alertUnhandledError);
96
+ }
97
+ }
98
+ *runValidation() {
99
+ let promise;
100
+ try {
101
+ this.setIsRunningValidation(true);
102
+ const currentHashCode = this.dataQualityRelationValidationConfigurationState.hashCode;
103
+ const packagePath = this.dataQualityRelationValidationConfigurationState.validationElement
104
+ .path;
105
+ const model = this.dataQualityRelationValidationConfigurationState.editorStore
106
+ .graphManagerState.graph;
107
+ const stopWatch = new StopWatch();
108
+ promise = getDataQualityPureGraphManagerExtension(this.dataQualityRelationValidationConfigurationState.editorStore
109
+ .graphManagerState.graphManager).execute(model, packagePath, {
110
+ previewLimit: this.previewLimit,
111
+ validationName: this.validationToRun?.name,
112
+ lambdaParameterValues: buildExecutionParameterValues(this.dataQualityRelationValidationConfigurationState.parametersState
113
+ .parameterStates, this.dataQualityRelationValidationConfigurationState.editorStore
114
+ .graphManagerState),
115
+ });
116
+ this.setValidationRunPromise(promise);
117
+ const result = (yield promise);
118
+ if (this.validationRunPromise === promise) {
119
+ this.setExecutionResult(result);
120
+ this.latestRunHashCode = currentHashCode;
121
+ this.setExecutionDuration(stopWatch.elapsed);
122
+ }
123
+ }
124
+ catch (error) {
125
+ if (this.validationRunPromise === promise) {
126
+ assertErrorThrown(error);
127
+ this.setExecutionResult(undefined);
128
+ this.dataQualityRelationValidationConfigurationState.editorStore.applicationStore.logService.error(LogEvent.create(GRAPH_MANAGER_EVENT.EXECUTION_FAILURE), error);
129
+ this.dataQualityRelationValidationConfigurationState.editorStore.applicationStore.notificationService.notifyError(error);
130
+ }
131
+ }
132
+ finally {
133
+ this.setIsRunningValidation(false);
134
+ }
135
+ }
136
+ *cancelValidation() {
137
+ this.setIsRunningValidation(false);
138
+ this.setValidationRunPromise(undefined);
139
+ try {
140
+ yield this.dataQualityRelationValidationConfigurationState.editorStore.graphManagerState.graphManager.cancelUserExecutions(true);
141
+ }
142
+ catch (error) {
143
+ // Don't notify users about success or failure
144
+ this.dataQualityRelationValidationConfigurationState.editorStore.applicationStore.logService.error(LogEvent.create(GRAPH_MANAGER_EVENT.EXECUTION_FAILURE), error);
145
+ }
146
+ }
147
+ *generatePlan(debug) {
148
+ const packagePath = this.dataQualityRelationValidationConfigurationState.validationElement
149
+ .path;
150
+ const model = this.dataQualityRelationValidationConfigurationState.editorStore
151
+ .graphManagerState.graph;
152
+ try {
153
+ this.isGeneratingPlan = true;
154
+ let rawPlan;
155
+ const stopWatch = new StopWatch();
156
+ if (debug) {
157
+ const debugResult = (yield getDataQualityPureGraphManagerExtension(this.dataQualityRelationValidationConfigurationState.editorStore
158
+ .graphManagerState.graphManager).debugExecutionPlanGeneration(model, packagePath, {
159
+ validationName: this.validationToRun?.name,
160
+ }));
161
+ rawPlan = debugResult.plan;
162
+ this.executionPlanState.setDebugText(debugResult.debug);
163
+ }
164
+ else {
165
+ QueryBuilderTelemetryHelper.logEvent_ExecutionPlanGenerationLaunched(this.dataQualityRelationValidationConfigurationState.editorStore
166
+ .applicationStore.telemetryService);
167
+ rawPlan = (yield getDataQualityPureGraphManagerExtension(this.dataQualityRelationValidationConfigurationState.editorStore
168
+ .graphManagerState.graphManager).generatePlan(model, packagePath, {
169
+ validationName: this.validationToRun?.name,
170
+ }));
171
+ }
172
+ stopWatch.record();
173
+ try {
174
+ this.executionPlanState.setRawPlan(rawPlan);
175
+ const plan = this.dataQualityRelationValidationConfigurationState.editorStore.graphManagerState.graphManager.buildExecutionPlan(rawPlan, this.dataQualityRelationValidationConfigurationState.editorStore
176
+ .graphManagerState.graph);
177
+ this.executionPlanState.initialize(plan);
178
+ }
179
+ catch {
180
+ //do nothing
181
+ }
182
+ stopWatch.record(QUERY_BUILDER_EVENT.BUILD_EXECUTION_PLAN__SUCCESS);
183
+ }
184
+ catch (error) {
185
+ assertErrorThrown(error);
186
+ this.dataQualityRelationValidationConfigurationState.editorStore.applicationStore.logService.error(LogEvent.create(GRAPH_MANAGER_EVENT.EXECUTION_FAILURE), error);
187
+ this.dataQualityRelationValidationConfigurationState.editorStore.applicationStore.notificationService.notifyError(error);
188
+ }
189
+ finally {
190
+ this.isGeneratingPlan = false;
191
+ }
192
+ }
193
+ }
194
+ //# sourceMappingURL=DataQualityRelationResultState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataQualityRelationResultState.js","sourceRoot":"","sources":["../../../src/components/states/DataQualityRelationResultState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,6BAA6B,EAC7B,kBAAkB,EAClB,mBAAmB,EACnB,2BAA2B,GAC5B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC5E,OAAO,EAEL,iBAAiB,EACjB,QAAQ,EACR,SAAS,GACV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAGL,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,uCAAuC,EAAE,MAAM,gFAAgF,CAAC;AAIzI,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC;AAClC,MAAM,OAAO,8BAA8B;IAChC,+CAA+C,CAAkD;IAC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C,MAAM,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,EACtD,KAAK,CACN,CAAC;YACF,IAAI,CAAC,+CAA+C,CAAC,WAAW,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,WAAW,CAC/G,KAAK,CACN,CAAC;QACJ,CAAC;gBAAS,CAAC;YACT,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC;QAChC,CAAC;IACH,CAAC;CACF"}
@@ -0,0 +1,73 @@
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, ElementEditorState } from '@finos/legend-application-studio';
17
+ import { type DataQualityRelationValidation, DataQualityRelationValidationConfiguration } from '../../graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js';
18
+ import { type GeneratorFn } from '@finos/legend-shared';
19
+ import { type ExecutionResult, type ExecutionResultWithMetadata, RawLambda } from '@finos/legend-graph';
20
+ import { LambdaEditorState, LambdaParametersState, LambdaParameterState } from '@finos/legend-query-builder';
21
+ import { DataQualityRelationValidationState } from './DataQualityRelationValidationState.js';
22
+ import { DataQualityRelationResultState } from './DataQualityRelationResultState.js';
23
+ import type { SelectOption } from '@finos/legend-art';
24
+ export declare enum DATA_QUALITY_RELATION_VALIDATION_EDITOR_TAB {
25
+ DEFINITION = "Definition",
26
+ TRIAL_RUN = "Trial Run"
27
+ }
28
+ export declare class RelationFunctionDefinitionEditorState extends LambdaEditorState {
29
+ readonly editorStore: EditorStore;
30
+ readonly relationValidationElement: DataQualityRelationValidationConfiguration;
31
+ isConvertingFunctionBodyToString: boolean;
32
+ constructor(relationValidationElement: DataQualityRelationValidationConfiguration, editorStore: EditorStore);
33
+ get lambdaId(): string;
34
+ convertLambdaGrammarStringToObject(): GeneratorFn<void>;
35
+ convertLambdaObjectToGrammarString(options?: {
36
+ pretty?: boolean | undefined;
37
+ preserveCompilationError?: boolean | undefined;
38
+ firstLoad?: boolean | undefined;
39
+ }): GeneratorFn<void>;
40
+ get hashCode(): string;
41
+ }
42
+ export declare class RelationDefinitionParameterState extends LambdaParametersState {
43
+ readonly relationValidationConfigurationState: DataQualityRelationValidationConfigurationState;
44
+ constructor(relationValidationConfigurationState: DataQualityRelationValidationConfigurationState);
45
+ openModal(lambda: RawLambda): void;
46
+ build(lambda: RawLambda): LambdaParameterState[];
47
+ }
48
+ export declare class DataQualityRelationValidationConfigurationState extends ElementEditorState {
49
+ readonly relationFunctionDefinitionEditorState: RelationFunctionDefinitionEditorState;
50
+ selectedTab: DATA_QUALITY_RELATION_VALIDATION_EDITOR_TAB;
51
+ isRunningFunc: boolean;
52
+ funcRunPromise: Promise<ExecutionResultWithMetadata> | undefined;
53
+ executionResult?: ExecutionResult | undefined;
54
+ validationStates: DataQualityRelationValidationState[];
55
+ parametersState: RelationDefinitionParameterState;
56
+ isConvertingValidationLambdaObjects: boolean;
57
+ resultState: DataQualityRelationResultState;
58
+ constructor(editorStore: EditorStore, element: DataQualityRelationValidationConfiguration);
59
+ reprocess(newElement: DataQualityRelationValidationConfiguration, editorStore: EditorStore): DataQualityRelationValidationConfigurationState;
60
+ get validationElement(): DataQualityRelationValidationConfiguration;
61
+ getNullableValidationState: (relationValidation: DataQualityRelationValidation) => DataQualityRelationValidationState | undefined;
62
+ getValidationState: (validation: DataQualityRelationValidation) => DataQualityRelationValidationState;
63
+ get relationValidationOptions(): SelectOption[];
64
+ addValidationState(validation: DataQualityRelationValidation): void;
65
+ deleteValidationState(validation: DataQualityRelationValidation): void;
66
+ setFuncRunPromise: (promise: Promise<ExecutionResultWithMetadata> | undefined) => void;
67
+ setSelectedTab(tab: DATA_QUALITY_RELATION_VALIDATION_EDITOR_TAB): void;
68
+ setExecutionResult: (executionResult: ExecutionResult | undefined) => void;
69
+ convertValidationLambdaObjects(): GeneratorFn<void>;
70
+ get bodyExpressionSequence(): RawLambda;
71
+ get hashCode(): string;
72
+ }
73
+ //# sourceMappingURL=DataQualityRelationValidationConfigurationState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataQualityRelationValidationConfigurationState.d.ts","sourceRoot":"","sources":["../../../src/components/states/DataQualityRelationValidationConfigurationState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,WAAW,EAChB,kBAAkB,EACnB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EACL,KAAK,6BAA6B,EAClC,0CAA0C,EAE3C,MAAM,mGAAmG,CAAC;AAC3G,OAAO,EACL,KAAK,WAAW,EAQjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,2BAA2B,EAMhC,SAAS,EAIV,MAAM,qBAAqB,CAAC;AAS7B,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EAErB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAC7F,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAErF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,oBAAY,2CAA2C;IACrD,UAAU,eAAe;IACzB,SAAS,cAAc;CACxB;AAED,qBAAa,qCAAsC,SAAQ,iBAAiB;IAC1E,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,QAAQ,CAAC,yBAAyB,EAAE,0CAA0C,CAAC;IAE/E,gCAAgC,UAAS;gBAGvC,yBAAyB,EAAE,0CAA0C,EACrE,WAAW,EAAE,WAAW;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