@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 @@
1
+ {"version":3,"file":"DataQualityRelationTrialRuns.js","sourceRoot":"","sources":["../../src/components/DataQualityRelationTrialRuns.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EACL,mBAAmB,EACnB,2BAA2B,GAC5B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAwB,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,+BAA+B,EAAE,MAAM,qCAAqC,CAAC;AACtF,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,sBAAsB,EACtB,qBAAqB,EACrB,yBAAyB,EACzB,SAAS,EACT,uBAAuB,EACvB,WAAW,EACX,eAAe,EACf,mBAAmB,EACnB,oBAAoB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AC,eAAe,EAAE,eAAe,GAAI,GACzD,CACP,IACY,EACf,KAAC,mBAAmB,IAClB,kBAAkB,EAAE,WAAW,CAAC,kBAAkB,GAClD,EACD,+CAA+C,CAAC,eAAe;iBAC7D,0BAA0B,CAAC,SAAS,IAAI,CACzC,KAAC,2BAA2B,IAC1B,KAAK,EACH,+CAA+C,CAAC,WAAW;qBACxD,iBAAiB,CAAC,KAAK,EAE5B,eAAe,EACb,+CAA+C,CAAC,WAAW;qBACxD,oBAAoB,CAAC,eAAe,EAEzC,qBAAqB,EACnB,+CAA+C,CAAC,eAAe,GAEjE,CACH,IACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export declare const NewDataQualityServiceValidationElementEditor: (() => import("react/jsx-runtime").JSX.Element) & {
16
+ export declare const DataQualityRelationValidationConfigurationEditor: (() => import("react/jsx-runtime").JSX.Element) & {
17
17
  displayName: string;
18
18
  };
19
- //# sourceMappingURL=DSL_NewDataQualityServiceValidationElement.d.ts.map
19
+ //# sourceMappingURL=DataQualityRelationValidationConfigurationEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataQualityRelationValidationConfigurationEditor.d.ts","sourceRoot":"","sources":["../../src/components/DataQualityRelationValidationConfigurationEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAwQH,eAAO,MAAM,gDAAgD;;CAqF3D,CAAC"}
@@ -0,0 +1,99 @@
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 { CORE_DND_TYPE, useEditorStore, } from '@finos/legend-application-studio';
19
+ import { DATA_QUALITY_RELATION_VALIDATION_EDITOR_TAB, DataQualityRelationValidationConfigurationState, } from './states/DataQualityRelationValidationConfigurationState.js';
20
+ import React, { useCallback, useEffect } from 'react';
21
+ import { clsx, DragPreviewLayer, Panel, PanelContent, PanelLoadingIndicator, PlusIcon, } from '@finos/legend-art';
22
+ import { prettyCONSTName } from '@finos/legend-shared';
23
+ import { LambdaEditor } from '@finos/legend-query-builder';
24
+ import { PrimitiveType, stub_RawLambda, stub_RawVariableExpression, Type, } from '@finos/legend-graph';
25
+ import { useApplicationNavigationContext, useApplicationStore, } from '@finos/legend-application';
26
+ import { dataQualityRelationValidation_addParameter, dataQualityRelationValidation_addValidation, dataQualityRelationValidation_deleteParameter, dataQualityRelationValidation_deleteValidation, } from '../graph-manager/DSL_DataQuality_GraphModifierHelper.js';
27
+ import { flowResult } from 'mobx';
28
+ import { DataQualityRelationValidationEditor, RELATION_VALIDATION_DND_TYPE, } from './DataQualityRelationValidationEditor.js';
29
+ import { DataQualityRelationValidation } from '../graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js';
30
+ import { DataQualityRelationTrialRuns } from './DataQualityRelationTrialRuns.js';
31
+ import { DataQualityValidationParametersEditor, FUNCTION_PARAMETER_DND_TYPE, } from './DataQualityValidationParametersEditor.js';
32
+ import { useDrop } from 'react-dnd';
33
+ const RelationDefinitionEditor = observer((props) => {
34
+ const { dataQualityRelationValidationState } = props;
35
+ const { relationFunctionDefinitionEditorState, resultState } = dataQualityRelationValidationState;
36
+ const validationElement = dataQualityRelationValidationState.validationElement;
37
+ const isReadOnly = dataQualityRelationValidationState.isReadOnly;
38
+ const addRelationValidation = () => {
39
+ const relationValidation = new DataQualityRelationValidation('', stub_RawLambda());
40
+ dataQualityRelationValidation_addValidation(validationElement, relationValidation);
41
+ dataQualityRelationValidationState.addValidationState(relationValidation);
42
+ };
43
+ const deleteRelationValidation = (validation) => () => {
44
+ dataQualityRelationValidation_deleteValidation(validationElement, validation);
45
+ dataQualityRelationValidationState.deleteValidationState(validation);
46
+ };
47
+ const addParameter = () => {
48
+ dataQualityRelationValidation_addParameter(validationElement.query.parameters, stub_RawVariableExpression(PrimitiveType.STRING));
49
+ };
50
+ const deleteParameter = (val) => () => {
51
+ dataQualityRelationValidation_deleteParameter(validationElement.query.parameters, val);
52
+ };
53
+ const handleDropParameter = useCallback((item) => {
54
+ if (!isReadOnly && item.data.packageableElement instanceof Type) {
55
+ dataQualityRelationValidation_addParameter(validationElement.query.parameters, stub_RawVariableExpression(item.data.packageableElement));
56
+ }
57
+ }, [validationElement, isReadOnly]);
58
+ const [{ isParameterDragOver }, dropParameterRef] = useDrop(() => ({
59
+ accept: [
60
+ CORE_DND_TYPE.PROJECT_EXPLORER_CLASS,
61
+ CORE_DND_TYPE.PROJECT_EXPLORER_ENUMERATION,
62
+ ],
63
+ drop: (item) => handleDropParameter(item),
64
+ collect: (monitor) => ({
65
+ isParameterDragOver: monitor.isOver({ shallow: true }),
66
+ }),
67
+ }), [handleDropParameter]);
68
+ return (_jsxs(_Fragment, { children: [_jsx(PanelLoadingIndicator, { isLoading: resultState.isGeneratingPlan ||
69
+ dataQualityRelationValidationState.isRunningFunc }), _jsxs("div", { className: "relation-validation-config-editor__definition", children: [_jsxs("div", { className: "relation-validation-config-editor__definition__item", children: [_jsxs("div", { className: "relation-validation-config-editor__definition__item__header", children: [_jsx("div", { className: "relation-validation-config-editor__definition__item__header__title", children: "PARAMETERS" }), _jsx("button", { className: "relation-validation-config-editor__definition__item__header__add-btn btn--dark", disabled: isReadOnly, onClick: addParameter, tabIndex: -1, title: "Add Parameter", children: _jsx(PlusIcon, {}) })] }), _jsx(DragPreviewLayer, { labelGetter: (item) => item.parameter.name === '' ? '(unknown)' : item.parameter.name, types: [FUNCTION_PARAMETER_DND_TYPE] }), _jsxs("div", { ref: dropParameterRef, className: clsx('relation-validation-config-editor__definition__item__content', {
70
+ 'panel__content__lists--dnd-over': isParameterDragOver && !isReadOnly,
71
+ }), children: [validationElement.query.parameters.map((param) => (_jsx(DataQualityValidationParametersEditor, { parameter: param, _validationConfig: validationElement, deleteParameter: deleteParameter(param), isReadOnly: isReadOnly }, param._UUID))), validationElement.query.parameters.length === 0 && (_jsx("div", { className: "relation-validation-config-editor__definition__item__content--empty", children: "No parameters" }))] })] }), _jsxs("div", { className: "relation-validation-config-editor__definition__item", children: [_jsx("div", { className: "relation-validation-config-editor__definition__item__header", children: _jsx("div", { className: "relation-validation-config-editor__definition__item__header__title", children: "LAMBDA" }) }), _jsx("div", { className: clsx('relation-validation-config-editor__definition__item__content', {
72
+ backdrop__element: Boolean(relationFunctionDefinitionEditorState.parserError),
73
+ }), children: _jsx(LambdaEditor, { className: "relation-validation-config-editor__definition__lambda-editor lambda-editor--dark", disabled: relationFunctionDefinitionEditorState.isConvertingFunctionBodyToString ||
74
+ false, lambdaEditorState: relationFunctionDefinitionEditorState, forceBackdrop: false, autoFocus: true }) })] }), _jsxs("div", { className: "relation-validation-config-editor__definition__item", children: [_jsxs("div", { className: "relation-validation-config-editor__definition__item__header", children: [_jsx("div", { className: "relation-validation-config-editor__definition__item__header__title", children: "VALIDATIONS" }), _jsx("button", { className: "relation-validation-config-editor__definition__item__header__add-btn btn--dark", disabled: isReadOnly, onClick: addRelationValidation, tabIndex: -1, title: "Add Relation Validation", children: _jsx(PlusIcon, {}) })] }), _jsxs("div", { className: "relation-config-validations", children: [_jsx(DragPreviewLayer, { labelGetter: (item) => item.validation.name === ''
75
+ ? '(unknown)'
76
+ : item.validation.name, types: [RELATION_VALIDATION_DND_TYPE] }), validationElement.validations.map((relationValidation) => (_jsx(DataQualityRelationValidationEditor, { validation: relationValidation, relationValidationConfigurationState: dataQualityRelationValidationState, deleteValidation: deleteRelationValidation(relationValidation), isReadOnly: isReadOnly }, relationValidation._UUID)))] })] })] })] }));
77
+ });
78
+ export const DataQualityRelationValidationConfigurationEditor = observer(() => {
79
+ const editorStore = useEditorStore();
80
+ const applicationStore = useApplicationStore();
81
+ const dataQualityRelationValidationConfigurationState = editorStore.tabManagerState.getCurrentEditorState(DataQualityRelationValidationConfigurationState);
82
+ const dataQualityRelationValidationElement = dataQualityRelationValidationConfigurationState.validationElement;
83
+ const selectedTab = dataQualityRelationValidationConfigurationState.selectedTab;
84
+ const changeTab = (tab) => () => dataQualityRelationValidationConfigurationState.setSelectedTab(tab);
85
+ useEffect(() => {
86
+ flowResult(dataQualityRelationValidationConfigurationState.relationFunctionDefinitionEditorState.convertLambdaObjectToGrammarString({
87
+ pretty: true,
88
+ firstLoad: true,
89
+ })).catch(applicationStore.alertUnhandledError);
90
+ flowResult(dataQualityRelationValidationConfigurationState.convertValidationLambdaObjects()).catch(applicationStore.alertUnhandledError);
91
+ }, [applicationStore, dataQualityRelationValidationConfigurationState]);
92
+ useApplicationNavigationContext('studio.editor.dq-relation-editor');
93
+ return (_jsx("div", { className: "relation-validation-config-editor uml-editor uml-editor--dark", children: _jsxs(Panel, { children: [_jsx("div", { className: "panel__header", children: _jsxs("div", { className: "panel__header__title", children: [_jsx("div", { className: "panel__header__title__label", children: "dataQualityRelationValidation" }), _jsx("div", { className: "panel__header__title__content", children: dataQualityRelationValidationElement.name })] }) }), _jsx("div", { className: "panel__header relation-validation-config-editor__tabs__header", children: _jsx("div", { className: "relation-validation-config-editor__tabs", children: Object.values(DATA_QUALITY_RELATION_VALIDATION_EDITOR_TAB).map((tab) => (_jsx("div", { onClick: changeTab(tab), className: clsx('relation-validation-config-editor__tab', {
94
+ 'relation-validation-config-editor__tab--active': tab === selectedTab,
95
+ }), children: prettyCONSTName(tab) }, tab))) }) }), _jsxs(PanelContent, { children: [selectedTab ===
96
+ DATA_QUALITY_RELATION_VALIDATION_EDITOR_TAB.DEFINITION && (_jsx(RelationDefinitionEditor, { dataQualityRelationValidationState: dataQualityRelationValidationConfigurationState })), selectedTab ===
97
+ DATA_QUALITY_RELATION_VALIDATION_EDITOR_TAB.TRIAL_RUN && (_jsx(DataQualityRelationTrialRuns, { dataQualityRelationValidationConfigurationState: dataQualityRelationValidationConfigurationState }))] })] }) }));
98
+ });
99
+ //# sourceMappingURL=DataQualityRelationValidationConfigurationEditor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataQualityRelationValidationConfigurationEditor.js","sourceRoot":"","sources":["../../src/components/DataQualityRelationValidationConfigurationEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAGL,aAAa,EACb,cAAc,GACf,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,2CAA2C,EAC3C,+CAA+C,GAChD,MAAM,6DAA6D,CAAC;AACrE,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,EACL,IAAI,EACJ,gBAAgB,EAChB,KAAK,EACL,YAAY,EACZ,qBAAqB,EACrB,QAAQ,GACT,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAEL,aAAa,EACb,cAAc,EACd,0BAA0B,EAC1B,IAAI,GACL,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,+BAA+B,EAC/B,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,0CAA0C,EAC1C,2CAA2C,EAC3C,6CAA6C,EAC7C,8CAA8C,GAC/C,MAAM,yDAAyD,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAA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AAI,CAC1D,KAAC,wBAAwB,IACvB,kCAAkC,EAChC,+CAA+C,GAEjD,CACH,EACA,WAAW;4BACV,2CAA2C,CAAC,SAAS,IAAI,CACzD,KAAC,4BAA4B,IAC3B,+CAA+C,EAC7C,+CAA+C,GAEjD,CACH,IACY,IACT,GACJ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1,30 @@
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 DataQualityRelationValidationConfigurationState } from './states/DataQualityRelationValidationConfigurationState.js';
17
+ import type { DataQualityRelationValidation } from '../graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js';
18
+ export type RelationValidationDragSource = {
19
+ validation: DataQualityRelationValidation;
20
+ };
21
+ export declare const RELATION_VALIDATION_DND_TYPE = "RELATION_VALIDATION";
22
+ export declare const DataQualityRelationValidationEditor: ((props: {
23
+ relationValidationConfigurationState: DataQualityRelationValidationConfigurationState;
24
+ validation: DataQualityRelationValidation;
25
+ deleteValidation: () => void;
26
+ isReadOnly: boolean;
27
+ }) => import("react/jsx-runtime").JSX.Element) & {
28
+ displayName: string;
29
+ };
30
+ //# sourceMappingURL=DataQualityRelationValidationEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataQualityRelationValidationEditor.d.ts","sourceRoot":"","sources":["../../src/components/DataQualityRelationValidationEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAuBH,OAAO,EACL,KAAK,+CAA+C,EAErD,MAAM,6DAA6D,CAAC;AACrE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,gGAAgG,CAAC;AASpJ,MAAM,MAAM,4BAA4B,GAAG;IACzC,UAAU,EAAE,6BAA6B,CAAC;CAC3C,CAAC;AACF,eAAO,MAAM,4BAA4B,wBAAwB,CAAC;AAElE,eAAO,MAAM,mCAAmC,WACtC;IACN,oCAAoC,EAAE,+CAA+C,CAAC;IACtF,UAAU,EAAE,6BAA6B,CAAC;IAC1C,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,UAAU,EAAE,OAAO,CAAC;CACrB;;CAoOF,CAAC"}
@@ -0,0 +1,89 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ * Copyright (c) 2020-present, Goldman Sachs
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { useCallback, useRef } from 'react';
18
+ import { observer } from 'mobx-react-lite';
19
+ import { clsx, CustomSelectorInput, FilledWindowMaximizeIcon, PanelDnDEntry, PanelEntryDragHandle, RocketIcon, TimesIcon, useDragPreviewLayer, } from '@finos/legend-art';
20
+ import { flowResult } from 'mobx';
21
+ import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '@finos/legend-application-studio';
22
+ import { PrimitiveType } from '@finos/legend-graph';
23
+ import { ApplicationNavigationContextData, useApplicationStore, } from '@finos/legend-application';
24
+ import { InlineLambdaEditor } from '@finos/legend-query-builder';
25
+ import { DATA_QUALITY_RELATION_VALIDATION_EDITOR_TAB, } from './states/DataQualityRelationValidationConfigurationState.js';
26
+ import { dataQualityRelationValidation_setDescription, dataQualityRelationValidation_setName, dataQualityRelationValidation_swapValidations, } from '../graph-manager/DSL_DataQuality_GraphModifierHelper.js';
27
+ import { DataQualityValidationDetailPanel } from './DataQualityValidationDetailPanel.js';
28
+ import { useDrag, useDrop } from 'react-dnd';
29
+ export const RELATION_VALIDATION_DND_TYPE = 'RELATION_VALIDATION';
30
+ export const DataQualityRelationValidationEditor = observer((props) => {
31
+ const ref = useRef(null);
32
+ const handleRef = useRef(null);
33
+ const { validation, deleteValidation, relationValidationConfigurationState, isReadOnly, } = props;
34
+ const applicationStore = useApplicationStore();
35
+ const hasParserError = relationValidationConfigurationState.validationStates.some((state) => state.parserError);
36
+ const validationState = relationValidationConfigurationState.getValidationState(validation);
37
+ const changeName = (event) => dataQualityRelationValidation_setName(validation, event.target.value);
38
+ const changeDescription = (event) => dataQualityRelationValidation_setDescription(validation, event.target.value);
39
+ const handleHover = useCallback((item) => {
40
+ const draggingProperty = item.validation;
41
+ const hoveredProperty = validation;
42
+ dataQualityRelationValidation_swapValidations(relationValidationConfigurationState.validationElement, draggingProperty, hoveredProperty);
43
+ }, [relationValidationConfigurationState.validationElement, validation]);
44
+ const [{ isBeingDraggedValidation }, dropConnector] = useDrop(() => ({
45
+ accept: [RELATION_VALIDATION_DND_TYPE],
46
+ hover: (item) => handleHover(item),
47
+ collect: (monitor) => ({
48
+ isBeingDraggedValidation: monitor.getItem()?.validation,
49
+ }),
50
+ }), [handleHover]);
51
+ const isBeingDragged = validation === isBeingDraggedValidation;
52
+ const [, dragConnector, dragPreviewConnector] = useDrag(() => ({
53
+ type: RELATION_VALIDATION_DND_TYPE,
54
+ item: () => ({
55
+ validation: validation,
56
+ }),
57
+ }), [validation]);
58
+ dragConnector(handleRef);
59
+ dropConnector(ref);
60
+ useDragPreviewLayer(dragPreviewConnector);
61
+ // Actions
62
+ const onLambdaEditorFocus = () => applicationStore.navigationContextService.push(ApplicationNavigationContextData.createTransient(LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY.CLASS_CONTRAINT_LAMBDA_EDITOR));
63
+ const remove = applicationStore.guardUnhandledError(async () => {
64
+ await flowResult(validationState.convertLambdaObjectToGrammarString({ pretty: false }));
65
+ deleteValidation();
66
+ });
67
+ const runQuery = () => {
68
+ relationValidationConfigurationState.setSelectedTab(DATA_QUALITY_RELATION_VALIDATION_EDITOR_TAB.TRIAL_RUN);
69
+ relationValidationConfigurationState.resultState.setValidationToRun(validation);
70
+ relationValidationConfigurationState.resultState.handleRunValidation();
71
+ };
72
+ const onValidationTypeChange = (val) => {
73
+ validationState.onValidationTypeChange(val);
74
+ };
75
+ const selectedValidationType = {
76
+ label: validation.type,
77
+ value: validation.type,
78
+ };
79
+ const openValidationDialog = () => {
80
+ validationState.setIsValidationDialogOpen(true);
81
+ };
82
+ return (_jsxs(PanelDnDEntry, { ref: ref, placeholder: _jsx("div", { className: "uml-element-editor__dnd__placeholder" }), className: "relation-validation__container", showPlaceholder: isBeingDragged, children: [_jsxs("div", { className: clsx('relation-validation', {
83
+ backdrop__element: validationState.parserError,
84
+ }), children: [_jsxs("div", { className: "relation-validation__content", children: [_jsx(PanelEntryDragHandle, { dragSourceConnector: handleRef, isDragging: isBeingDragged }), _jsx("input", { className: "relation-validation__content__name", spellCheck: false, disabled: isReadOnly, value: validation.name, onChange: changeName, placeholder: "Validation name" }), _jsx(CustomSelectorInput, { options: relationValidationConfigurationState.relationValidationOptions, onChange: onValidationTypeChange, value: selectedValidationType, darkMode: !applicationStore.layoutService
85
+ .TEMPORARY__isLightColorThemeEnabled, placeholder: 'Type of validation to be added' }), !isReadOnly && (_jsx("button", { className: "uml-element-editor__remove-btn", onClick: remove, tabIndex: -1, title: "Remove", children: _jsx(TimesIcon, {}) })), _jsx("button", { className: "uml-element-editor__remove-btn", onClick: runQuery, tabIndex: -1, title: "Run Validation", children: _jsx(RocketIcon, {}) }), _jsx("button", { className: "uml-element-editor__remove-btn", onClick: openValidationDialog, tabIndex: -1, title: "Open Validation Details dialog", children: _jsx(FilledWindowMaximizeIcon, {}) })] }), validationState.rowMapFunctionLambdaEditorState && (_jsxs("div", { className: "uml-element-editor__row-map", children: [_jsx("div", { className: "uml-element-editor__row-map__label", children: "Row Map Function" }), _jsx(InlineLambdaEditor, { disabled: relationValidationConfigurationState.isConvertingValidationLambdaObjects ||
86
+ isReadOnly, lambdaEditorState: validationState.rowMapFunctionLambdaEditorState, forceBackdrop: hasParserError, expectedType: PrimitiveType.BOOLEAN, onEditorFocus: onLambdaEditorFocus, disablePopUp: true })] })), _jsx(InlineLambdaEditor, { disabled: relationValidationConfigurationState.isConvertingValidationLambdaObjects ||
87
+ isReadOnly, lambdaEditorState: validationState, forceBackdrop: hasParserError, expectedType: PrimitiveType.BOOLEAN, onEditorFocus: onLambdaEditorFocus, disablePopUp: true })] }), validationState.isValidationDialogOpen && (_jsx(DataQualityValidationDetailPanel, { dataQualityRelationValidationState: relationValidationConfigurationState, isReadOnly: isReadOnly, relationValidationState: validationState, changeName: changeName, changeDescription: changeDescription, onLambdaEditorFocus: onLambdaEditorFocus, forceBackdrop: hasParserError, onValidationTypeChange: onValidationTypeChange, selectedValidationType: selectedValidationType }))] }));
88
+ });
89
+ //# sourceMappingURL=DataQualityRelationValidationEditor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataQualityRelationValidationEditor.js","sourceRoot":"","sources":["../../src/components/DataQualityRelationValidationEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAEL,IAAI,EACJ,mBAAmB,EACnB,wBAAwB,EACxB,aAAa,EACb,oBAAoB,EACpB,UAAU,EACV,SAAS,EACT,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAC3B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B,EAClC,YAAY,EAAE,IAAI,GAClB,IACE,CACP,EACD,KAAC,kBAAkB,IACjB,QAAQ,EACN,oCAAoC,CAAC,mCAAmC;4BACxE,UAAU,EAEZ,iBAAiB,EAAE,eAAe,EAClC,aAAa,EAAE,cAAc,EAC7B,YAAY,EAAE,aAAa,CAAC,OAAO,EACnC,aAAa,EAAE,mBAAmB,EAClC,YAAY,EAAE,IAAI,GAClB,IACE,EACL,eAAe,CAAC,sBAAsB,IAAI,CACzC,KAAC,gCAAgC,IAC/B,kCAAkC,EAChC,oCAAoC,EAEtC,UAAU,EAAE,UAAU,EACtB,uBAAuB,EAAE,eAAe,EACxC,UAAU,EAAE,UAAU,EACtB,iBAAiB,EAAE,iBAAiB,EACpC,mBAAmB,EAAE,mBAAmB,EACxC,aAAa,EAAE,cAAc,EAC7B,sBAAsB,EAAE,sBAAsB,EAC9C,sBAAsB,EAAE,sBAAsB,GAC9C,CACH,IACa,CACjB,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DataQualityResultPanel.d.ts","sourceRoot":"","sources":["../../src/components/DataQualityResultPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAkDrE,eAAO,MAAM,sBAAsB,WACzB;IAAE,gBAAgB,EAAE,gBAAgB,CAAA;CAAE;;CAsT/C,CAAC"}
1
+ {"version":3,"file":"DataQualityResultPanel.d.ts","sourceRoot":"","sources":["../../src/components/DataQualityResultPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAkDrE,eAAO,MAAM,sBAAsB,WACzB;IAAE,gBAAgB,EAAE,gBAAgB,CAAA;CAAE;;CAmT/C,CAAC"}
@@ -113,6 +113,6 @@ export const DataQualityResultPanel = observer((props) => {
113
113
  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 Validation..." })), _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: [showProcessingDate && (_jsxs("div", { className: "trial-runs-result-modifier-prompt__group", children: [_jsx("div", { className: "trial-runs-result-modifier-prompt__group__label", children: "Processing Date" }), _jsx("button", { className: "trial-runs-result-modifier-prompt__header__label editable-value", onClick: () => dataQualityState.setShowDateSelection(true), children: _jsx("div", { className: "trial-runs-result-modifier-prompt__header__label__title", children: dataQualityState.processingDate }) })] })), showBusinessDate && (_jsxs("div", { className: "trial-runs-result-modifier-prompt__group", children: [_jsx("div", { className: "trial-runs-result-modifier-prompt__group__label", children: "Business Date" }), _jsx("button", { className: "trial-runs-result-modifier-prompt__header__label editable-value", onClick: () => dataQualityState.setShowDateSelection(true), children: _jsx("div", { className: "trial-runs-result-modifier-prompt__header__label__title", children: dataQualityState.businessDate }) })] })), 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__validation 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 Validation"] }), _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: {
114
114
  anchorOrigin: { vertical: 'bottom', horizontal: 'right' },
115
115
  transformOrigin: { vertical: 'top', horizontal: 'right' },
116
- }, children: _jsx(CaretDownIcon, {}) })] })) })] })] }), _jsxs(PanelContent, { className: "data-quality-validation__result__content", children: [_jsx(CubesLoadingIndicator, { isLoading: isLoading, children: _jsx(CubesLoadingIndicatorIcon, {}) }), !executionResult && !isLoading && (_jsx(BlankPanelContent, { children: "Click on run validation to see the constraints validation results" })), executionResult && !isLoading && (_jsx("div", { className: "data-quality-validation__result__values", children: _jsx(DataQualityResultValues, { executionResult: executionResult, dataQualityState: dataQualityState }) }))] }), _jsx(ExecutionPlanViewer, { executionPlanState: resultState.executionPlanState }), _jsx(DataQualityDateSelectionPanel, { dataQualityState: dataQualityState })] }));
116
+ }, children: _jsx(CaretDownIcon, {}) })] })) })] })] }), _jsxs(PanelContent, { className: "data-quality-validation__result__content", children: [_jsx(CubesLoadingIndicator, { isLoading: isLoading, children: _jsx(CubesLoadingIndicatorIcon, {}) }), !executionResult && !isLoading && (_jsx(BlankPanelContent, { children: "Click on run validation to see the constraints validation results" })), executionResult && !isLoading && (_jsx("div", { className: "data-quality-validation__result__values", children: _jsx(DataQualityResultValues, { executionResult: executionResult }) }))] }), _jsx(ExecutionPlanViewer, { executionPlanState: resultState.executionPlanState }), _jsx(DataQualityDateSelectionPanel, { dataQualityState: dataQualityState })] }));
117
117
  });
118
118
  //# sourceMappingURL=DataQualityResultPanel.js.map
@@ -1 +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,sBAAsB,EACtB,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,O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AAC,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,oFAEE,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,EACF,KAAC,6BAA6B,IAAC,gBAAgB,EAAE,gBAAgB,GAAI,IACjE,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
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,sBAAsB,EACtB,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,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,+BAA+B,EAAE,MAAM,qCAAqC,CAAC;AACtF,OAAO,EACL,iBAAiB,EACjB,qBA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,CACjC,KAAC,iBAAiB,oFAEE,CACrB,EACA,eAAe,IAAI,CAAC,SAAS,IAAI,CAChC,cAAK,SAAS,EAAC,yCAAyC,YACtD,KAAC,uBAAuB,IAAC,eAAe,EAAE,eAAe,GAAI,GACzD,CACP,IACY,EACf,KAAC,mBAAmB,IAClB,kBAAkB,EAAE,WAAW,CAAC,kBAAkB,GAClD,EACF,KAAC,6BAA6B,IAAC,gBAAgB,EAAE,gBAAgB,GAAI,IACjE,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -13,11 +13,9 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import type { DataQualityState } from './states/DataQualityState.js';
17
16
  import { type ExecutionResult } from '@finos/legend-graph';
18
17
  export declare const DataQualityResultValues: ((props: {
19
18
  executionResult: ExecutionResult;
20
- dataQualityState: DataQualityState;
21
19
  }) => import("react/jsx-runtime").JSX.Element) & {
22
20
  displayName: string;
23
21
  };
@@ -1 +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;AAK7B,eAAO,MAAM,uBAAuB,WAC1B;IACN,eAAe,EAAE,eAAe,CAAC;IACjC,gBAAgB,EAAE,gBAAgB,CAAC;CACpC;;CA2BF,CAAC"}
1
+ {"version":3,"file":"DataQualityResultValues.d.ts","sourceRoot":"","sources":["../../src/components/DataQualityResultValues.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,eAAe,EAGrB,MAAM,qBAAqB,CAAC;AAK7B,eAAO,MAAM,uBAAuB,WAC1B;IAAE,eAAe,EAAE,eAAe,CAAA;CAAE;;CA2B7C,CAAC"}
@@ -1 +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,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,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"}
1
+ {"version":3,"file":"DataQualityResultValues.js","sourceRoot":"","sources":["../../src/components/DataQualityResultValues.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAEL,4BAA4B,EAC5B,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAE7D,MAAM,CAAC,MAAM,uBAAuB,GAAG,QAAQ,CAC7C,CAAC,KAA2C,EAAE,EAAE;IAC9C,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"}
@@ -19,7 +19,7 @@ import { observer } from 'mobx-react-lite';
19
19
  import { useApplicationStore } from '@finos/legend-application';
20
20
  import { DataQualityDataSpaceBuilderSetupPanelContent } from './DataQualityDataSpaceBuilder.js';
21
21
  import { DataQualityMappingAndRuntimeBuilder } from './DataQualityMappingAndRuntimeBuilder.js';
22
- import { ELEMENT_CREATION_BASIS } from './DSL_DataQuality_ClassElementDriver.js';
22
+ import { CLASS_ELEMENT_CREATION_BASIS } from './DSL_DataQuality_ElementDriver.js';
23
23
  import { isElementDeprecated } from '@finos/legend-graph';
24
24
  import { DATA_QUALITY_VALIDATION_TEST_ID } from './constants/DataQualityConstants.js';
25
25
  const generateClassLabel = (val, dataQualityState) => {
@@ -69,6 +69,6 @@ export const DataQualityClassValidationSideBar = observer((props) => {
69
69
  const { dataQualityClassValidationState, children } = props;
70
70
  const validationElementCreationBasis = dataQualityClassValidationState.validationElementCreationBasis;
71
71
  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 ===
72
- ELEMENT_CREATION_BASIS.DATASPACE_BASED ? (_jsx(DataQualityDataSpaceBuilderSetupPanelContent, { dataQualityState: dataQualityClassValidationState })) : (_jsx(DataQualityMappingAndRuntimeBuilder, { dataQualityState: dataQualityClassValidationState })) }) }), _jsx("div", { className: "data-quality-validation__side-bar__content", children: children })] }));
72
+ CLASS_ELEMENT_CREATION_BASIS.DATASPACE_BASED ? (_jsx(DataQualityDataSpaceBuilderSetupPanelContent, { dataQualityState: dataQualityClassValidationState })) : (_jsx(DataQualityMappingAndRuntimeBuilder, { dataQualityState: dataQualityClassValidationState })) }) }), _jsx("div", { className: "data-quality-validation__side-bar__content", children: children })] }));
73
73
  });
74
74
  //# sourceMappingURL=DataQualitySideBar.js.map
@@ -1 +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,E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AAC,CAC7C,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,36 @@
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 SelectOption } from '@finos/legend-art';
17
+ import type { DataQualityRelationValidationConfigurationState } from './states/DataQualityRelationValidationConfigurationState.js';
18
+ import type { DataQualityRelationValidationState } from './states/DataQualityRelationValidationState.js';
19
+ import type { RelationValidationType } from '../graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js';
20
+ export declare const DataQualityValidationDetailPanel: ((props: {
21
+ dataQualityRelationValidationState: DataQualityRelationValidationConfigurationState;
22
+ isReadOnly: boolean;
23
+ relationValidationState: DataQualityRelationValidationState;
24
+ changeName: React.ChangeEventHandler<HTMLInputElement>;
25
+ changeDescription: React.ChangeEventHandler<HTMLInputElement>;
26
+ onLambdaEditorFocus: (() => void) | undefined;
27
+ onValidationTypeChange: (val: SelectOption) => void;
28
+ selectedValidationType: {
29
+ label: RelationValidationType;
30
+ value: RelationValidationType;
31
+ };
32
+ forceBackdrop: boolean;
33
+ }) => import("react/jsx-runtime").JSX.Element) & {
34
+ displayName: string;
35
+ };
36
+ //# sourceMappingURL=DataQualityValidationDetailPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataQualityValidationDetailPanel.d.ts","sourceRoot":"","sources":["../../src/components/DataQualityValidationDetailPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,YAAY,EASlB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,KAAK,EAAE,+CAA+C,EAAE,MAAM,6DAA6D,CAAC;AACnI,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,gDAAgD,CAAC;AAEzG,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gGAAgG,CAAC;AAE7I,eAAO,MAAM,gCAAgC,WACnC;IACN,kCAAkC,EAAE,+CAA+C,CAAC;IACpF,UAAU,EAAE,OAAO,CAAC;IACpB,uBAAuB,EAAE,kCAAkC,CAAC;IAC5D,UAAU,EAAE,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;IACvD,iBAAiB,EAAE,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;IAC9D,mBAAmB,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IAC9C,sBAAsB,EAAE,CAAC,GAAG,EAAE,YAAY,KAAK,IAAI,CAAC;IACpD,sBAAsB,EAAE;QACtB,KAAK,EAAE,sBAAsB,CAAC;QAC9B,KAAK,EAAE,sBAAsB,CAAC;KAC/B,CAAC;IACF,aAAa,EAAE,OAAO,CAAC;CACxB;;CAqIF,CAAC"}
@@ -0,0 +1,39 @@
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, CustomSelectorInput, Dialog, Modal, ModalBody, ModalFooter, ModalFooterButton, ModalHeader, } from '@finos/legend-art';
18
+ import { observer } from 'mobx-react-lite';
19
+ import { PrimitiveType } from '@finos/legend-graph';
20
+ import { InlineLambdaEditor } from '@finos/legend-query-builder';
21
+ export const DataQualityValidationDetailPanel = observer((props) => {
22
+ const { dataQualityRelationValidationState, isReadOnly, relationValidationState, changeName, onLambdaEditorFocus, forceBackdrop, onValidationTypeChange, selectedValidationType, changeDescription, } = props;
23
+ const { editorStore: { applicationStore }, } = dataQualityRelationValidationState;
24
+ const { relationValidation, rowMapFunctionLambdaEditorState } = relationValidationState;
25
+ const closePlanViewer = () => {
26
+ relationValidationState.setIsValidationDialogOpen(false);
27
+ };
28
+ return (_jsx(Dialog, { open: true, classes: {
29
+ root: 'relation-validation-dialog-modal__root-container',
30
+ container: 'relation-validation-dialog-modal__container',
31
+ paper: 'relation-validation-dialog-modal__content',
32
+ }, children: _jsxs(Modal, { className: "relation-validation-dialog-modal", darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, children: [_jsx(ModalHeader, { title: "Validation Details" }), _jsx(ModalBody, { className: "relation-validation-dialog-modal__body", children: _jsxs("div", { className: clsx('relation-validation-editor', {
33
+ backdrop__element: relationValidationState.parserError,
34
+ }), children: [_jsxs("div", { className: "relation-validation-editor__content", children: [_jsx("div", { className: "relation-validation-editor__label", children: "Name" }), _jsx("input", { className: "relation-validation-editor__content__name", spellCheck: false, disabled: isReadOnly, value: relationValidation.name, onChange: changeName, placeholder: "Validation name" })] }), _jsxs("div", { className: "relation-validation-editor__content", children: [_jsx("div", { className: "relation-validation-editor__label", children: "Type" }), _jsx("div", { className: "relation-validation-editor__content__select", children: _jsx(CustomSelectorInput, { className: "relation-validation-editor__select", options: dataQualityRelationValidationState.relationValidationOptions, onChange: onValidationTypeChange, value: selectedValidationType, darkMode: !applicationStore.layoutService
35
+ .TEMPORARY__isLightColorThemeEnabled, placeholder: 'Type of validation to be added' }) })] }), rowMapFunctionLambdaEditorState && (_jsxs("div", { className: "relation-validation-editor__content", children: [_jsx("div", { className: "relation-validation-editor__label", children: "Row map function" }), _jsx(InlineLambdaEditor, { disabled: dataQualityRelationValidationState.isConvertingValidationLambdaObjects ||
36
+ isReadOnly, lambdaEditorState: rowMapFunctionLambdaEditorState, forceBackdrop: forceBackdrop, expectedType: PrimitiveType.BOOLEAN, onEditorFocus: onLambdaEditorFocus, disablePopUp: true })] })), _jsxs("div", { className: "relation-validation-editor__content", children: [_jsx("div", { className: "relation-validation-editor__label", children: "Validation Grammar" }), _jsx(InlineLambdaEditor, { disabled: dataQualityRelationValidationState.isConvertingValidationLambdaObjects ||
37
+ isReadOnly, lambdaEditorState: relationValidationState, forceBackdrop: forceBackdrop, expectedType: PrimitiveType.BOOLEAN, onEditorFocus: onLambdaEditorFocus, disablePopUp: true, forceExpansion: true })] }), _jsxs("div", { className: "relation-validation-editor__content", children: [_jsx("div", { className: "relation-validation-editor__label", children: "Description" }), _jsx("input", { className: "relation-validation-editor__content__name", spellCheck: false, disabled: isReadOnly, value: relationValidation.description, onChange: changeDescription, placeholder: "Enter the description" })] })] }) }), _jsx(ModalFooter, { children: _jsx(ModalFooterButton, { onClick: closePlanViewer, text: "Close", type: "secondary" }) })] }) }));
38
+ });
39
+ //# sourceMappingURL=DataQualityValidationDetailPanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataQualityValidationDetailPanel.js","sourceRoot":"","sources":["../../src/components/DataQualityValidationDetailPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,IAAI,EACJ,mBAAmB,EACnB,MAAM,EACN,KAAK,EACL,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,WAA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5C,EACN,gBACE,SAAS,EAAC,2CAA2C,EACrD,UAAU,EAAE,KAAK,EACjB,QAAQ,EAAE,UAAU,EACpB,KAAK,EAAE,kBAAkB,CAAC,WAAW,EACrC,QAAQ,EAAE,iBAAiB,EAC3B,WAAW,EAAC,uBAAuB,GACnC,IACE,IACF,GACI,EACZ,KAAC,WAAW,cACV,KAAC,iBAAiB,IAChB,OAAO,EAAE,eAAe,EACxB,IAAI,EAAC,OAAO,EACZ,IAAI,EAAC,WAAW,GAChB,GACU,IACR,GACD,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { type RawVariableExpression } from '@finos/legend-graph';
2
+ import type { DataQualityRelationValidationConfiguration } from '../graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js';
3
+ export type FunctionParameterDragSource = {
4
+ parameter: RawVariableExpression;
5
+ };
6
+ export declare const FUNCTION_PARAMETER_DND_TYPE = "FUNCTION_PARAMETER";
7
+ export declare const DataQualityValidationParametersEditor: ((props: {
8
+ parameter: RawVariableExpression;
9
+ _validationConfig: DataQualityRelationValidationConfiguration;
10
+ deleteParameter: () => void;
11
+ isReadOnly: boolean;
12
+ }) => import("react/jsx-runtime").JSX.Element) & {
13
+ displayName: string;
14
+ };
15
+ //# sourceMappingURL=DataQualityValidationParametersEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataQualityValidationParametersEditor.d.ts","sourceRoot":"","sources":["../../src/components/DataQualityValidationParametersEditor.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAEL,KAAK,qBAAqB,EAM3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,0CAA0C,EAAE,MAAM,gGAAgG,CAAC;AAiDjK,MAAM,MAAM,2BAA2B,GAAG;IACxC,SAAS,EAAE,qBAAqB,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,2BAA2B,uBAAuB,CAAC;AAEhE,eAAO,MAAM,qCAAqC,WACxC;IACN,SAAS,EAAE,qBAAqB,CAAC;IACjC,iBAAiB,EAAE,0CAA0C,CAAC;IAC9D,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,UAAU,EAAE,OAAO,CAAC;CACrB;;CA4QF,CAAC"}