@finos/legend-extension-dsl-data-quality 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +1 -0
  3. package/lib/components/DSL_DataQuality_ClassElementDriver.d.ts +46 -0
  4. package/lib/components/DSL_DataQuality_ClassElementDriver.d.ts.map +1 -0
  5. package/lib/components/DSL_DataQuality_ClassElementDriver.js +116 -0
  6. package/lib/components/DSL_DataQuality_ClassElementDriver.js.map +1 -0
  7. package/lib/components/DSL_DataQuality_LegendStudioApplicationPlugin.d.ts +30 -0
  8. package/lib/components/DSL_DataQuality_LegendStudioApplicationPlugin.d.ts.map +1 -0
  9. package/lib/components/DSL_DataQuality_LegendStudioApplicationPlugin.js +161 -0
  10. package/lib/components/DSL_DataQuality_LegendStudioApplicationPlugin.js.map +1 -0
  11. package/lib/components/DSL_DataQuality_LegendStudioPlugin_Extension.d.ts +25 -0
  12. package/lib/components/DSL_DataQuality_LegendStudioPlugin_Extension.d.ts.map +1 -0
  13. package/lib/components/DSL_DataQuality_LegendStudioPlugin_Extension.js +2 -0
  14. package/lib/components/DSL_DataQuality_LegendStudioPlugin_Extension.js.map +1 -0
  15. package/lib/components/DSL_DataQuality_ServiceElementDriver.d.ts +27 -0
  16. package/lib/components/DSL_DataQuality_ServiceElementDriver.d.ts.map +1 -0
  17. package/lib/components/DSL_DataQuality_ServiceElementDriver.js +41 -0
  18. package/lib/components/DSL_DataQuality_ServiceElementDriver.js.map +1 -0
  19. package/lib/components/DSL_NewDataQualityClassValidationElement.d.ts +19 -0
  20. package/lib/components/DSL_NewDataQualityClassValidationElement.d.ts.map +1 -0
  21. package/lib/components/DSL_NewDataQualityClassValidationElement.js +64 -0
  22. package/lib/components/DSL_NewDataQualityClassValidationElement.js.map +1 -0
  23. package/lib/components/DSL_NewDataQualityServiceValidationElement.d.ts +19 -0
  24. package/lib/components/DSL_NewDataQualityServiceValidationElement.d.ts.map +1 -0
  25. package/lib/components/DSL_NewDataQualityServiceValidationElement.js +41 -0
  26. package/lib/components/DSL_NewDataQualityServiceValidationElement.js.map +1 -0
  27. package/lib/components/DataQualityClassValidationEditor.d.ts +19 -0
  28. package/lib/components/DataQualityClassValidationEditor.d.ts.map +1 -0
  29. package/lib/components/DataQualityClassValidationEditor.js +29 -0
  30. package/lib/components/DataQualityClassValidationEditor.js.map +1 -0
  31. package/lib/components/DataQualityConstraintsSelection.d.ts +39 -0
  32. package/lib/components/DataQualityConstraintsSelection.d.ts.map +1 -0
  33. package/lib/components/DataQualityConstraintsSelection.js +133 -0
  34. package/lib/components/DataQualityConstraintsSelection.js.map +1 -0
  35. package/lib/components/DataQualityDataSpaceBuilder.d.ts +22 -0
  36. package/lib/components/DataQualityDataSpaceBuilder.d.ts.map +1 -0
  37. package/lib/components/DataQualityDataSpaceBuilder.js +101 -0
  38. package/lib/components/DataQualityDataSpaceBuilder.js.map +1 -0
  39. package/lib/components/DataQualityExplorerPanel.d.ts +29 -0
  40. package/lib/components/DataQualityExplorerPanel.d.ts.map +1 -0
  41. package/lib/components/DataQualityExplorerPanel.js +185 -0
  42. package/lib/components/DataQualityExplorerPanel.js.map +1 -0
  43. package/lib/components/DataQualityFilterPanel.d.ts +24 -0
  44. package/lib/components/DataQualityFilterPanel.d.ts.map +1 -0
  45. package/lib/components/DataQualityFilterPanel.js +32 -0
  46. package/lib/components/DataQualityFilterPanel.js.map +1 -0
  47. package/lib/components/DataQualityMappingAndRuntimeBuilder.d.ts +22 -0
  48. package/lib/components/DataQualityMappingAndRuntimeBuilder.d.ts.map +1 -0
  49. package/lib/components/DataQualityMappingAndRuntimeBuilder.js +98 -0
  50. package/lib/components/DataQualityMappingAndRuntimeBuilder.js.map +1 -0
  51. package/lib/components/DataQualityResultPanel.d.ts +22 -0
  52. package/lib/components/DataQualityResultPanel.d.ts.map +1 -0
  53. package/lib/components/DataQualityResultPanel.js +110 -0
  54. package/lib/components/DataQualityResultPanel.js.map +1 -0
  55. package/lib/components/DataQualityResultValues.d.ts +24 -0
  56. package/lib/components/DataQualityResultValues.d.ts.map +1 -0
  57. package/lib/components/DataQualityResultValues.js +31 -0
  58. package/lib/components/DataQualityResultValues.js.map +1 -0
  59. package/lib/components/DataQualityServiceValidationEditor.d.ts +19 -0
  60. package/lib/components/DataQualityServiceValidationEditor.d.ts.map +1 -0
  61. package/lib/components/DataQualityServiceValidationEditor.js +29 -0
  62. package/lib/components/DataQualityServiceValidationEditor.js.map +1 -0
  63. package/lib/components/DataQualitySideBar.d.ts +40 -0
  64. package/lib/components/DataQualitySideBar.d.ts.map +1 -0
  65. package/lib/components/DataQualitySideBar.js +78 -0
  66. package/lib/components/DataQualitySideBar.js.map +1 -0
  67. package/lib/components/DataQualityStructuralValidationsPanel.d.ts +22 -0
  68. package/lib/components/DataQualityStructuralValidationsPanel.d.ts.map +1 -0
  69. package/lib/components/DataQualityStructuralValidationsPanel.js +50 -0
  70. package/lib/components/DataQualityStructuralValidationsPanel.js.map +1 -0
  71. package/lib/components/DataQualityTabs.d.ts +22 -0
  72. package/lib/components/DataQualityTabs.d.ts.map +1 -0
  73. package/lib/components/DataQualityTabs.js +58 -0
  74. package/lib/components/DataQualityTabs.js.map +1 -0
  75. package/lib/components/DataQualityValidationEditor.d.ts +23 -0
  76. package/lib/components/DataQualityValidationEditor.d.ts.map +1 -0
  77. package/lib/components/DataQualityValidationEditor.js +24 -0
  78. package/lib/components/DataQualityValidationEditor.js.map +1 -0
  79. package/lib/components/constants/DataQualityConstants.d.ts +24 -0
  80. package/lib/components/constants/DataQualityConstants.d.ts.map +1 -0
  81. package/lib/components/constants/DataQualityConstants.js +25 -0
  82. package/lib/components/constants/DataQualityConstants.js.map +1 -0
  83. package/lib/components/index.d.ts +19 -0
  84. package/lib/components/index.d.ts.map +1 -0
  85. package/lib/components/index.js +19 -0
  86. package/lib/components/index.js.map +1 -0
  87. package/lib/components/states/ConstraintState.d.ts +30 -0
  88. package/lib/components/states/ConstraintState.d.ts.map +1 -0
  89. package/lib/components/states/ConstraintState.js +55 -0
  90. package/lib/components/states/ConstraintState.js.map +1 -0
  91. package/lib/components/states/DataQualityClassValidationState.d.ts +43 -0
  92. package/lib/components/states/DataQualityClassValidationState.d.ts.map +1 -0
  93. package/lib/components/states/DataQualityClassValidationState.js +162 -0
  94. package/lib/components/states/DataQualityClassValidationState.js.map +1 -0
  95. package/lib/components/states/DataQualityGraphFetchTreeState.d.ts +34 -0
  96. package/lib/components/states/DataQualityGraphFetchTreeState.d.ts.map +1 -0
  97. package/lib/components/states/DataQualityGraphFetchTreeState.js +70 -0
  98. package/lib/components/states/DataQualityGraphFetchTreeState.js.map +1 -0
  99. package/lib/components/states/DataQualityQueryBuilderState.d.ts +19 -0
  100. package/lib/components/states/DataQualityQueryBuilderState.d.ts.map +1 -0
  101. package/lib/components/states/DataQualityQueryBuilderState.js +19 -0
  102. package/lib/components/states/DataQualityQueryBuilderState.js.map +1 -0
  103. package/lib/components/states/DataQualityResultState.d.ts +44 -0
  104. package/lib/components/states/DataQualityResultState.d.ts.map +1 -0
  105. package/lib/components/states/DataQualityResultState.js +154 -0
  106. package/lib/components/states/DataQualityResultState.js.map +1 -0
  107. package/lib/components/states/DataQualityServiceValidationState.d.ts +25 -0
  108. package/lib/components/states/DataQualityServiceValidationState.d.ts.map +1 -0
  109. package/lib/components/states/DataQualityServiceValidationState.js +33 -0
  110. package/lib/components/states/DataQualityServiceValidationState.js.map +1 -0
  111. package/lib/components/states/DataQualityState.d.ts +67 -0
  112. package/lib/components/states/DataQualityState.d.ts.map +1 -0
  113. package/lib/components/states/DataQualityState.js +204 -0
  114. package/lib/components/states/DataQualityState.js.map +1 -0
  115. package/lib/components/utils/DataQualityGraphFetchTreeUtil.d.ts +51 -0
  116. package/lib/components/utils/DataQualityGraphFetchTreeUtil.d.ts.map +1 -0
  117. package/lib/components/utils/DataQualityGraphFetchTreeUtil.js +321 -0
  118. package/lib/components/utils/DataQualityGraphFetchTreeUtil.js.map +1 -0
  119. package/lib/graph/metamodel/DSL_DataQuality_HashUtils.d.ts +29 -0
  120. package/lib/graph/metamodel/DSL_DataQuality_HashUtils.d.ts.map +1 -0
  121. package/lib/graph/metamodel/DSL_DataQuality_HashUtils.js +30 -0
  122. package/lib/graph/metamodel/DSL_DataQuality_HashUtils.js.map +1 -0
  123. package/lib/graph/metamodel/DSL_DataQuality_PureGraphPlugin.d.ts +22 -0
  124. package/lib/graph/metamodel/DSL_DataQuality_PureGraphPlugin.d.ts.map +1 -0
  125. package/lib/graph/metamodel/DSL_DataQuality_PureGraphPlugin.js +31 -0
  126. package/lib/graph/metamodel/DSL_DataQuality_PureGraphPlugin.js.map +1 -0
  127. package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityGraphFetchTree.d.ts +26 -0
  128. package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityGraphFetchTree.d.ts.map +1 -0
  129. package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityGraphFetchTree.js +44 -0
  130. package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityGraphFetchTree.js.map +1 -0
  131. package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.d.ts +47 -0
  132. package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.d.ts.map +1 -0
  133. package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js +75 -0
  134. package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js.map +1 -0
  135. package/lib/graph-manager/DSL_DataQuality_GraphManagerHelper.d.ts +20 -0
  136. package/lib/graph-manager/DSL_DataQuality_GraphManagerHelper.d.ts.map +1 -0
  137. package/lib/graph-manager/DSL_DataQuality_GraphManagerHelper.js +20 -0
  138. package/lib/graph-manager/DSL_DataQuality_GraphManagerHelper.js.map +1 -0
  139. package/lib/graph-manager/DSL_DataQuality_GraphManagerPreset.d.ts +20 -0
  140. package/lib/graph-manager/DSL_DataQuality_GraphManagerPreset.d.ts.map +1 -0
  141. package/lib/graph-manager/DSL_DataQuality_GraphManagerPreset.js +30 -0
  142. package/lib/graph-manager/DSL_DataQuality_GraphManagerPreset.js.map +1 -0
  143. package/lib/graph-manager/DSL_DataQuality_GraphModifierHelper.d.ts +26 -0
  144. package/lib/graph-manager/DSL_DataQuality_GraphModifierHelper.d.ts.map +1 -0
  145. package/lib/graph-manager/DSL_DataQuality_GraphModifierHelper.js +57 -0
  146. package/lib/graph-manager/DSL_DataQuality_GraphModifierHelper.js.map +1 -0
  147. package/lib/graph-manager/DSL_DataQuality_PureGraphManagerPlugin.d.ts +7 -0
  148. package/lib/graph-manager/DSL_DataQuality_PureGraphManagerPlugin.d.ts.map +1 -0
  149. package/lib/graph-manager/DSL_DataQuality_PureGraphManagerPlugin.js +42 -0
  150. package/lib/graph-manager/DSL_DataQuality_PureGraphManagerPlugin.js.map +1 -0
  151. package/lib/graph-manager/action/changeDetection/DSL_DataQuality_ObserverHelper.d.ts +24 -0
  152. package/lib/graph-manager/action/changeDetection/DSL_DataQuality_ObserverHelper.d.ts.map +1 -0
  153. package/lib/graph-manager/action/changeDetection/DSL_DataQuality_ObserverHelper.js +98 -0
  154. package/lib/graph-manager/action/changeDetection/DSL_DataQuality_ObserverHelper.js.map +1 -0
  155. package/lib/graph-manager/index.d.ts +19 -0
  156. package/lib/graph-manager/index.d.ts.map +1 -0
  157. package/lib/graph-manager/index.js +19 -0
  158. package/lib/graph-manager/index.js.map +1 -0
  159. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.d.ts +27 -0
  160. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.d.ts.map +1 -0
  161. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.js +21 -0
  162. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.js.map +1 -0
  163. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.d.ts +25 -0
  164. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.d.ts.map +1 -0
  165. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.js +140 -0
  166. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.js.map +1 -0
  167. package/lib/graph-manager/protocol/pure/DSL_DataQuality_buildGraphManagerExtension.d.ts +18 -0
  168. package/lib/graph-manager/protocol/pure/DSL_DataQuality_buildGraphManagerExtension.d.ts.map +1 -0
  169. package/lib/graph-manager/protocol/pure/DSL_DataQuality_buildGraphManagerExtension.js +20 -0
  170. package/lib/graph-manager/protocol/pure/DSL_DataQuality_buildGraphManagerExtension.js.map +1 -0
  171. package/lib/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.d.ts +41 -0
  172. package/lib/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.d.ts.map +1 -0
  173. package/lib/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.js +95 -0
  174. package/lib/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.js.map +1 -0
  175. package/lib/graph-manager/protocol/pure/v1/V1_DataQualityConstraintsConfiguration.d.ts +46 -0
  176. package/lib/graph-manager/protocol/pure/v1/V1_DataQualityConstraintsConfiguration.d.ts.map +1 -0
  177. package/lib/graph-manager/protocol/pure/v1/V1_DataQualityConstraintsConfiguration.js +76 -0
  178. package/lib/graph-manager/protocol/pure/v1/V1_DataQualityConstraintsConfiguration.js.map +1 -0
  179. package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityPropertyGraphFetchTree.d.ts +22 -0
  180. package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityPropertyGraphFetchTree.d.ts.map +1 -0
  181. package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityPropertyGraphFetchTree.js +32 -0
  182. package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityPropertyGraphFetchTree.js.map +1 -0
  183. package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityRootGraphFetchTree.d.ts +22 -0
  184. package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityRootGraphFetchTree.d.ts.map +1 -0
  185. package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityRootGraphFetchTree.js +31 -0
  186. package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityRootGraphFetchTree.js.map +1 -0
  187. package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationBuilderHelper.d.ts +24 -0
  188. package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationBuilderHelper.d.ts.map +1 -0
  189. package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationBuilderHelper.js +92 -0
  190. package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationBuilderHelper.js.map +1 -0
  191. package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationSerializer.d.ts +20 -0
  192. package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationSerializer.d.ts.map +1 -0
  193. package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationSerializer.js +56 -0
  194. package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationSerializer.js.map +1 -0
  195. package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationTransformer.d.ts +22 -0
  196. package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationTransformer.d.ts.map +1 -0
  197. package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationTransformer.js +70 -0
  198. package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationTransformer.js.map +1 -0
  199. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.d.ts +29 -0
  200. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.d.ts.map +1 -0
  201. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.js +80 -0
  202. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.js.map +1 -0
  203. package/lib/index.css +17 -0
  204. package/lib/index.css.map +1 -0
  205. package/lib/package.json +87 -0
  206. package/package.json +87 -0
  207. package/src/components/DSL_DataQuality_ClassElementDriver.tsx +175 -0
  208. package/src/components/DSL_DataQuality_LegendStudioApplicationPlugin.tsx +220 -0
  209. package/src/components/DSL_DataQuality_LegendStudioPlugin_Extension.ts +39 -0
  210. package/src/components/DSL_DataQuality_ServiceElementDriver.tsx +57 -0
  211. package/src/components/DSL_NewDataQualityClassValidationElement.tsx +156 -0
  212. package/src/components/DSL_NewDataQualityServiceValidationElement.tsx +74 -0
  213. package/src/components/DataQualityClassValidationEditor.tsx +49 -0
  214. package/src/components/DataQualityConstraintsSelection.tsx +376 -0
  215. package/src/components/DataQualityDataSpaceBuilder.tsx +274 -0
  216. package/src/components/DataQualityExplorerPanel.tsx +584 -0
  217. package/src/components/DataQualityFilterPanel.tsx +50 -0
  218. package/src/components/DataQualityMappingAndRuntimeBuilder.tsx +224 -0
  219. package/src/components/DataQualityResultPanel.tsx +335 -0
  220. package/src/components/DataQualityResultValues.tsx +61 -0
  221. package/src/components/DataQualityServiceValidationEditor.tsx +49 -0
  222. package/src/components/DataQualitySideBar.tsx +216 -0
  223. package/src/components/DataQualityStructuralValidationsPanel.tsx +105 -0
  224. package/src/components/DataQualityTabs.tsx +104 -0
  225. package/src/components/DataQualityValidationEditor.tsx +52 -0
  226. package/src/components/constants/DataQualityConstants.ts +24 -0
  227. package/src/components/index.ts +19 -0
  228. package/src/components/states/ConstraintState.ts +70 -0
  229. package/src/components/states/DataQualityClassValidationState.ts +308 -0
  230. package/src/components/states/DataQualityGraphFetchTreeState.ts +125 -0
  231. package/src/components/states/DataQualityQueryBuilderState.ts +19 -0
  232. package/src/components/states/DataQualityResultState.ts +217 -0
  233. package/src/components/states/DataQualityServiceValidationState.ts +56 -0
  234. package/src/components/states/DataQualityState.ts +354 -0
  235. package/src/components/utils/DataQualityGraphFetchTreeUtil.ts +592 -0
  236. package/src/graph/metamodel/DSL_DataQuality_HashUtils.ts +29 -0
  237. package/src/graph/metamodel/DSL_DataQuality_PureGraphPlugin.ts +36 -0
  238. package/src/graph/metamodel/pure/packageableElements/data-quality/DataQualityGraphFetchTree.ts +55 -0
  239. package/src/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.ts +107 -0
  240. package/src/graph-manager/DSL_DataQuality_GraphManagerHelper.ts +46 -0
  241. package/src/graph-manager/DSL_DataQuality_GraphManagerPreset.ts +31 -0
  242. package/src/graph-manager/DSL_DataQuality_GraphModifierHelper.ts +113 -0
  243. package/src/graph-manager/DSL_DataQuality_PureGraphManagerPlugin.ts +59 -0
  244. package/src/graph-manager/action/changeDetection/DSL_DataQuality_ObserverHelper.ts +153 -0
  245. package/src/graph-manager/index.ts +19 -0
  246. package/src/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.ts +59 -0
  247. package/src/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.ts +283 -0
  248. package/src/graph-manager/protocol/pure/DSL_DataQuality_buildGraphManagerExtension.ts +27 -0
  249. package/src/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.ts +246 -0
  250. package/src/graph-manager/protocol/pure/v1/V1_DataQualityConstraintsConfiguration.ts +103 -0
  251. package/src/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityPropertyGraphFetchTree.ts +37 -0
  252. package/src/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityRootGraphFetchTree.ts +36 -0
  253. package/src/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationBuilderHelper.ts +241 -0
  254. package/src/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationSerializer.ts +113 -0
  255. package/src/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationTransformer.ts +139 -0
  256. package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.ts +186 -0
  257. package/style/_data-quality-validation-builder.scss +1660 -0
  258. package/style/index.scss +67 -0
  259. package/tsconfig.json +137 -0
  260. package/tsconfig.package.json +9 -0
@@ -0,0 +1,24 @@
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 { ResizablePanel, ResizablePanelGroup, ResizablePanelSplitter, } from '@finos/legend-art';
19
+ import { DataQualityTabs } from './DataQualityTabs.js';
20
+ export const DataQualityValidationEditor = observer((props) => {
21
+ const { SideBarBasisComponent, dataQualityState } = props;
22
+ return (_jsx("div", { className: "data-quality-validation", children: _jsx("div", { className: "data-quality-validation__body", children: _jsx("div", { className: "data-quality-validation__content", children: _jsx("div", { className: "data-quality-validation__main", children: _jsxs(ResizablePanelGroup, { orientation: "vertical", children: [_jsx(ResizablePanel, { size: 300, minSize: 120, children: SideBarBasisComponent }), _jsx(ResizablePanelSplitter, {}), _jsx(ResizablePanel, { minSize: 120, children: _jsx(DataQualityTabs, { dataQualityState: dataQualityState }) })] }) }) }) }) }));
23
+ });
24
+ //# sourceMappingURL=DataQualityValidationEditor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataQualityValidationEditor.js","sourceRoot":"","sources":["../../src/components/DataQualityValidationEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAGvD,MAAM,CAAC,MAAM,2BAA2B,GAAG,QAAQ,CACjD,CAAC,KAGA,EAAE,EAAE;IACH,MAAM,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,GAAG,KAAK,CAAC;IAC1D,OAAO,CACL,cAAK,SAAS,EAAC,yBAAyB,YACtC,cAAK,SAAS,EAAC,+BAA+B,YAC5C,cAAK,SAAS,EAAC,kCAAkC,YAC/C,cAAK,SAAS,EAAC,+BAA+B,YAC5C,MAAC,mBAAmB,IAAC,WAAW,EAAC,UAAU,aACzC,KAAC,cAAc,IAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,YACpC,qBAAqB,GACP,EACjB,KAAC,sBAAsB,KAAG,EAC1B,KAAC,cAAc,IAAC,OAAO,EAAE,GAAG,YAC1B,KAAC,eAAe,IAAC,gBAAgB,EAAE,gBAAgB,GAAI,GACxC,IACG,GAClB,GACF,GACF,GACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export declare enum DATA_QUALITY_VALIDATION_TEST_ID {
17
+ DATA_QUALITY_VALIDATION_EXPLORER = "data-quality-validation__explorer",
18
+ DATA_QUALITY_VALIDATION_TOOLTIP_ICON = "data-quality-validation__tooltip__icon",
19
+ DATA_QUALITY_VALIDATION_SETUP = "data-quality-validation__setup",
20
+ DATA_QUALITY_VALIDATION_TREE = "data-quality-validation-tree",
21
+ DATA_QUALITY_VALIDATION_RESULT_PANEL = "data-quality-result-panel",
22
+ DATA_QUALITY_VALIDATION_RESULT_ANALYTICS = "data-quality-result-analytics"
23
+ }
24
+ //# sourceMappingURL=DataQualityConstants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataQualityConstants.d.ts","sourceRoot":"","sources":["../../../src/components/constants/DataQualityConstants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,+BAA+B;IACzC,gCAAgC,sCAAsC;IACtE,oCAAoC,2CAA2C;IAC/E,6BAA6B,mCAAmC;IAChE,4BAA4B,iCAAiC;IAC7D,oCAAoC,8BAA8B;IAClE,wCAAwC,kCAAkC;CAC3E"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export var DATA_QUALITY_VALIDATION_TEST_ID;
17
+ (function (DATA_QUALITY_VALIDATION_TEST_ID) {
18
+ DATA_QUALITY_VALIDATION_TEST_ID["DATA_QUALITY_VALIDATION_EXPLORER"] = "data-quality-validation__explorer";
19
+ DATA_QUALITY_VALIDATION_TEST_ID["DATA_QUALITY_VALIDATION_TOOLTIP_ICON"] = "data-quality-validation__tooltip__icon";
20
+ DATA_QUALITY_VALIDATION_TEST_ID["DATA_QUALITY_VALIDATION_SETUP"] = "data-quality-validation__setup";
21
+ DATA_QUALITY_VALIDATION_TEST_ID["DATA_QUALITY_VALIDATION_TREE"] = "data-quality-validation-tree";
22
+ DATA_QUALITY_VALIDATION_TEST_ID["DATA_QUALITY_VALIDATION_RESULT_PANEL"] = "data-quality-result-panel";
23
+ DATA_QUALITY_VALIDATION_TEST_ID["DATA_QUALITY_VALIDATION_RESULT_ANALYTICS"] = "data-quality-result-analytics";
24
+ })(DATA_QUALITY_VALIDATION_TEST_ID || (DATA_QUALITY_VALIDATION_TEST_ID = {}));
25
+ //# sourceMappingURL=DataQualityConstants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataQualityConstants.js","sourceRoot":"","sources":["../../../src/components/constants/DataQualityConstants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,+BAOX;AAPD,WAAY,+BAA+B;IACzC,yGAAsE,CAAA;IACtE,kHAA+E,CAAA;IAC/E,mGAAgE,CAAA;IAChE,gGAA6D,CAAA;IAC7D,qGAAkE,CAAA;IAClE,6GAA0E,CAAA;AAC5E,CAAC,EAPW,+BAA+B,KAA/B,+BAA+B,QAO1C"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export * from './DSL_DataQuality_LegendStudioApplicationPlugin.js';
17
+ export * from '../components/states/DataQualityState.js';
18
+ export * from '../components/DSL_DataQuality_LegendStudioPlugin_Extension.js';
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,oDAAoD,CAAC;AACnE,cAAc,0CAA0C,CAAC;AACzD,cAAc,+DAA+D,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export * from './DSL_DataQuality_LegendStudioApplicationPlugin.js';
17
+ export * from '../components/states/DataQualityState.js';
18
+ export * from '../components/DSL_DataQuality_LegendStudioPlugin_Extension.js';
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,oDAAoD,CAAC;AACnE,cAAc,0CAA0C,CAAC;AACzD,cAAc,+DAA+D,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 Constraint } from '@finos/legend-graph';
17
+ export declare const CONSTRAINT_SOURCE_ID_LABEL = "constraint";
18
+ export declare class ConstraintState {
19
+ readonly uuid: string;
20
+ constraint: Constraint;
21
+ lambdaString: string;
22
+ isSelected: boolean;
23
+ lambdaPrefix: string;
24
+ constructor(constraint: Constraint);
25
+ setLambdaString(val: string): void;
26
+ setIsSelected(val: boolean): void;
27
+ extractLambdaString(fullLambdaString: string): string;
28
+ get lambdaId(): string;
29
+ }
30
+ //# sourceMappingURL=ConstraintState.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,55 @@
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 { buildSourceInformationSourceId, LAMBDA_PIPE, } from '@finos/legend-graph';
17
+ import { action, makeObservable, observable } from 'mobx';
18
+ import { uuid } from '@finos/legend-shared';
19
+ export const CONSTRAINT_SOURCE_ID_LABEL = 'constraint';
20
+ export class ConstraintState {
21
+ uuid = uuid();
22
+ constraint;
23
+ lambdaString;
24
+ isSelected = false;
25
+ lambdaPrefix = LAMBDA_PIPE;
26
+ constructor(constraint) {
27
+ makeObservable(this, {
28
+ constraint: observable,
29
+ isSelected: observable,
30
+ lambdaString: observable,
31
+ setLambdaString: action,
32
+ setIsSelected: action,
33
+ });
34
+ this.constraint = constraint;
35
+ this.lambdaString = '';
36
+ }
37
+ setLambdaString(val) {
38
+ this.lambdaString = val;
39
+ }
40
+ setIsSelected(val) {
41
+ this.isSelected = val;
42
+ }
43
+ extractLambdaString(fullLambdaString) {
44
+ return fullLambdaString.substring(fullLambdaString.indexOf(this.lambdaPrefix) + this.lambdaPrefix.length, fullLambdaString.length);
45
+ }
46
+ get lambdaId() {
47
+ return buildSourceInformationSourceId([
48
+ this.constraint._OWNER.path,
49
+ CONSTRAINT_SOURCE_ID_LABEL,
50
+ this.constraint.name,
51
+ this.uuid, // in case of duplications
52
+ ]);
53
+ }
54
+ }
55
+ //# sourceMappingURL=ConstraintState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConstraintState.js","sourceRoot":"","sources":["../../../src/components/states/ConstraintState.ts"],"names":[],"mappings":"AAAA;;;;;;;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AAE,0BAA0B;SACtC,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,43 @@
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 Mapping, type PackageableElement, type Runtime } from '@finos/legend-graph';
17
+ import type { EditorStore, ElementEditorState } from '@finos/legend-application-studio';
18
+ import { DataQualityClassValidationsConfiguration } from '../../graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js';
19
+ import { DataQualityState } from './DataQualityState.js';
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';
22
+ import { type GeneratorFn } from '@finos/legend-shared';
23
+ export declare class DataQualityClassValidationState extends DataQualityState {
24
+ dataSpace?: DataSpace | undefined;
25
+ dataSpaces: DataSpaceInfo[];
26
+ validationElementCreationBasis: ELEMENT_CREATION_BASIS;
27
+ constructor(editorStore: EditorStore, element: DataQualityClassValidationsConfiguration);
28
+ reprocess(newElement: PackageableElement, editorStore: EditorStore): ElementEditorState;
29
+ get constraintsConfigurationElement(): DataQualityClassValidationsConfiguration;
30
+ initializeState(): void;
31
+ changeMapping(val: Mapping, options?: {
32
+ keepQueryContent?: boolean;
33
+ }): void;
34
+ changeRuntime(val: Runtime): void;
35
+ updateElementOnMappingChange(): void;
36
+ updateElementOnRuntimeChange(runtime: Runtime): void;
37
+ updateElementOnExecutionContextChange(context: string): void;
38
+ propagateExecutionContextChange(executionContext: DataSpaceExecutionContext): void;
39
+ onDataSpaceChange(dataSpaceInfo: DataSpaceInfo): void;
40
+ updateElementOnDataSpaceChange(): void;
41
+ loadDataSpaces(): GeneratorFn<void>;
42
+ }
43
+ //# sourceMappingURL=DataQualityClassValidationState.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,162 @@
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 { action, flow, makeObservable, observable } from 'mobx';
17
+ import { getMappingCompatibleClasses, PackageableElementExplicitReference, RuntimePointer, } from '@finos/legend-graph';
18
+ import { DataQualityClassValidationsConfiguration, DataSpaceDataQualityExecutionContext, MappingAndRuntimeDataQualityExecutionContext, } from '../../graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js';
19
+ import { DataQualityState } from './DataQualityState.js';
20
+ import { DataSpace, resolveUsableDataSpaceClasses, } from '@finos/legend-extension-dsl-data-space/graph';
21
+ import { ELEMENT_CREATION_BASIS } from '../DSL_DataQuality_ClassElementDriver.js';
22
+ import { assertType, filterByType, getNullableFirstEntry, guaranteeNonNullable, guaranteeType, } from '@finos/legend-shared';
23
+ import { dataQualityClassValidation_setContextDataQualityContext, dataQualityClassValidation_setDataQualityContext, dataQualityClassValidation_setDataQualityGraphFetchTree, dataQualityClassValidation_setFilter, dataQualityClassValidation_setRuntimeDataQualityContext, } from '../../graph-manager/DSL_DataQuality_GraphModifierHelper.js';
24
+ import { DataQualityGraphFetchTreeState } from './DataQualityGraphFetchTreeState.js';
25
+ import { DataQualityResultState } from './DataQualityResultState.js';
26
+ export class DataQualityClassValidationState extends DataQualityState {
27
+ dataSpace;
28
+ dataSpaces = [];
29
+ validationElementCreationBasis = ELEMENT_CREATION_BASIS.MAPPING_RUNTIME_BASED;
30
+ constructor(editorStore, element) {
31
+ super(editorStore, element);
32
+ makeObservable(this, {
33
+ dataSpaces: observable,
34
+ dataSpace: observable,
35
+ onDataSpaceChange: action,
36
+ initializeState: action,
37
+ updateElementOnMappingChange: action,
38
+ updateElementOnRuntimeChange: action,
39
+ updateElementOnExecutionContextChange: action,
40
+ updateElementOnDataSpaceChange: action,
41
+ loadDataSpaces: flow,
42
+ });
43
+ this.initializeState();
44
+ }
45
+ reprocess(newElement, editorStore) {
46
+ const element = guaranteeType(newElement, DataQualityClassValidationsConfiguration, 'Element inside data quality class validation editor state must be a class validation element');
47
+ return new DataQualityClassValidationState(editorStore, element);
48
+ }
49
+ get constraintsConfigurationElement() {
50
+ return guaranteeType(this.element, DataQualityClassValidationsConfiguration, 'Element inside data quality class validation state must be a data quality class validation configuration element');
51
+ }
52
+ initializeState() {
53
+ let classOptions = [];
54
+ if (this.constraintsConfigurationElement.context instanceof
55
+ MappingAndRuntimeDataQualityExecutionContext) {
56
+ this.validationElementCreationBasis =
57
+ ELEMENT_CREATION_BASIS.MAPPING_RUNTIME_BASED;
58
+ this.dataQualityQueryBuilderState.executionContextState.setMapping(this.constraintsConfigurationElement.context.mapping.value);
59
+ this.dataQualityQueryBuilderState.executionContextState.setRuntimeValue(new RuntimePointer(this.constraintsConfigurationElement.context.runtime));
60
+ classOptions = getMappingCompatibleClasses(this.dataQualityQueryBuilderState.executionContextState.mapping, this.graphManagerState.usableClasses);
61
+ }
62
+ else if (this.constraintsConfigurationElement.context instanceof
63
+ DataSpaceDataQualityExecutionContext) {
64
+ this.validationElementCreationBasis =
65
+ ELEMENT_CREATION_BASIS.DATASPACE_BASED;
66
+ this.dataSpace =
67
+ this.constraintsConfigurationElement.context.dataSpace.value;
68
+ this.executionContext = this.dataSpace.defaultExecutionContext;
69
+ this.dataQualityQueryBuilderState.executionContextState.setMapping(this.dataSpace.defaultExecutionContext.mapping.value);
70
+ this.dataQualityQueryBuilderState.executionContextState.setRuntimeValue(new RuntimePointer(this.dataSpace.defaultExecutionContext.defaultRuntime));
71
+ classOptions = resolveUsableDataSpaceClasses(this.dataSpace, this.dataQualityQueryBuilderState.executionContextState.mapping, this.graphManagerState);
72
+ }
73
+ this.initializeGraphFetchTreeState(this.constraintsConfigurationElement.dataQualityRootGraphFetchTree);
74
+ this.initializeFilterState(this.constraintsConfigurationElement.filter);
75
+ if (this.constraintsConfigurationElement.dataQualityRootGraphFetchTree) {
76
+ this.dataQualityQueryBuilderState.setClass(this.constraintsConfigurationElement.dataQualityRootGraphFetchTree.class
77
+ .value);
78
+ }
79
+ else {
80
+ this.dataQualityQueryBuilderState.setClass(getNullableFirstEntry(classOptions));
81
+ this.dataQualityGraphFetchTreeState = new DataQualityGraphFetchTreeState(this);
82
+ dataQualityClassValidation_setDataQualityGraphFetchTree(this.constraintsConfigurationElement, this.dataQualityGraphFetchTreeState.treeData
83
+ ? this.dataQualityGraphFetchTreeState.treeData.tree
84
+ : undefined);
85
+ }
86
+ }
87
+ changeMapping(val, options) {
88
+ //reset result
89
+ this.dataQualityQueryBuilderState.executionContextState.setMapping(val);
90
+ this.dataQualityQueryBuilderState.executionContextState.setRuntimeValue(undefined);
91
+ this.dataQualityQueryBuilderState.explorerState.setTreeData(undefined);
92
+ this.dataQualityQueryBuilderState.setClass(undefined);
93
+ this.dataQualityGraphFetchTreeState = new DataQualityGraphFetchTreeState(this);
94
+ this.structuralValidationsGraphFetchTreeState =
95
+ new DataQualityGraphFetchTreeState(this);
96
+ this.resultState = new DataQualityResultState(this);
97
+ }
98
+ changeRuntime(val) {
99
+ this.dataQualityQueryBuilderState.changeRuntime(val);
100
+ this.resultState = new DataQualityResultState(this);
101
+ }
102
+ updateElementOnMappingChange() {
103
+ const mappingAndRuntimeExecutionContext = new MappingAndRuntimeDataQualityExecutionContext();
104
+ mappingAndRuntimeExecutionContext.mapping =
105
+ PackageableElementExplicitReference.create(this.dataQualityQueryBuilderState.executionContextState.mapping);
106
+ guaranteeNonNullable(this.dataQualityQueryBuilderState.executionContextState.runtimeValue);
107
+ mappingAndRuntimeExecutionContext.runtime = this.dataQualityQueryBuilderState.executionContextState
108
+ .runtimeValue.packageableRuntime;
109
+ dataQualityClassValidation_setDataQualityContext(this.constraintsConfigurationElement, mappingAndRuntimeExecutionContext);
110
+ dataQualityClassValidation_setDataQualityGraphFetchTree(this.constraintsConfigurationElement, undefined);
111
+ dataQualityClassValidation_setFilter(this.constraintsConfigurationElement, undefined);
112
+ }
113
+ updateElementOnRuntimeChange(runtime) {
114
+ assertType(runtime, RuntimePointer);
115
+ dataQualityClassValidation_setRuntimeDataQualityContext(this.constraintsConfigurationElement, runtime.packageableRuntime, this.editorStore.changeDetectionState.observerContext);
116
+ }
117
+ updateElementOnExecutionContextChange(context) {
118
+ dataQualityClassValidation_setContextDataQualityContext(this.constraintsConfigurationElement, context);
119
+ }
120
+ propagateExecutionContextChange(executionContext) {
121
+ const mapping = executionContext.mapping.value;
122
+ this.changeMapping(mapping);
123
+ this.dataQualityQueryBuilderState.changeRuntime(new RuntimePointer(executionContext.defaultRuntime));
124
+ const compatibleClasses = resolveUsableDataSpaceClasses(this.dataSpace, mapping, this.graphManagerState);
125
+ // if there is no chosen class or the chosen one is not compatible
126
+ // with the mapping then pick a compatible class if possible
127
+ if (!this.dataQualityQueryBuilderState.class ||
128
+ !compatibleClasses.includes(this.dataQualityQueryBuilderState.class)) {
129
+ const possibleNewClass = getNullableFirstEntry(compatibleClasses);
130
+ if (possibleNewClass) {
131
+ this.changeClass(possibleNewClass);
132
+ }
133
+ }
134
+ }
135
+ onDataSpaceChange(dataSpaceInfo) {
136
+ this.dataSpace = guaranteeType(this.graphManagerState.graph.getElement(dataSpaceInfo.path), DataSpace);
137
+ this.setExecutionContext(this.dataSpace.defaultExecutionContext);
138
+ this.propagateExecutionContextChange(this.dataSpace.defaultExecutionContext);
139
+ }
140
+ updateElementOnDataSpaceChange() {
141
+ const dataSpaceExecutionContext = new DataSpaceDataQualityExecutionContext();
142
+ dataSpaceExecutionContext.context = this.executionContext.name;
143
+ dataSpaceExecutionContext.dataSpace =
144
+ PackageableElementExplicitReference.create(this.dataSpace);
145
+ dataQualityClassValidation_setDataQualityContext(this.constraintsConfigurationElement, dataSpaceExecutionContext);
146
+ this.updateElementOnClassChange();
147
+ }
148
+ *loadDataSpaces() {
149
+ this.dataSpaces = this.graphManagerState.graph.allOwnElements
150
+ .filter(filterByType(DataSpace))
151
+ .map((e) => ({
152
+ groupId: undefined,
153
+ artifactId: undefined,
154
+ versionId: undefined,
155
+ path: e.path,
156
+ name: e.name,
157
+ title: e.title,
158
+ defaultExecutionContext: e.defaultExecutionContext.name,
159
+ }));
160
+ }
161
+ }
162
+ //# sourceMappingURL=DataQualityClassValidationState.js.map
@@ -0,0 +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,SAAS,EACT,6BAA6B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9D,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"}
@@ -0,0 +1,34 @@
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 Hashable } from '@finos/legend-shared';
17
+ import { type DataQualityGraphFetchTreeData, type DataQualityGraphFetchTreeNodeData } from '../utils/DataQualityGraphFetchTreeUtil.js';
18
+ import type { DataQualityState } from './DataQualityState.js';
19
+ import { type Class, type Constraint } from '@finos/legend-graph';
20
+ import type { QueryBuilderExplorerTreePropertyNodeData, QueryBuilderExplorerTreeRootNodeData } from '@finos/legend-query-builder';
21
+ export declare class DataQualityGraphFetchTreeState implements Hashable {
22
+ readonly dataQualityState: DataQualityState;
23
+ treeData?: DataQualityGraphFetchTreeData | undefined;
24
+ constructor(dataQualityState: DataQualityState);
25
+ setGraphFetchTree(val: DataQualityGraphFetchTreeData | undefined): void;
26
+ private updateTreeData;
27
+ onClassChange(_class: Class | undefined): void;
28
+ updateNode(node: DataQualityGraphFetchTreeNodeData, constraint: Constraint, addConstraint: boolean): void;
29
+ addProperty(node: QueryBuilderExplorerTreePropertyNodeData | QueryBuilderExplorerTreeRootNodeData, options?: {
30
+ refreshTreeData?: boolean;
31
+ }): void;
32
+ get hashCode(): string;
33
+ }
34
+ //# sourceMappingURL=DataQualityGraphFetchTreeState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataQualityGraphFetchTreeState.d.ts","sourceRoot":"","sources":["../../../src/components/states/DataQualityGraphFetchTreeState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAChE,OAAO,EACL,KAAK,6BAA6B,EAClC,KAAK,iCAAiC,EAIvC,MAAM,2CAA2C,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,OAAO,EACL,KAAK,KAAK,EACV,KAAK,UAAU,EAEhB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,wCAAwC,EACxC,oCAAoC,EACrC,MAAM,6BAA6B,CAAC;AAIrC,qBAAa,8BAA+B,YAAW,QAAQ;IAC7D,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAC5C,QAAQ,CAAC,EAAE,6BAA6B,GAAG,SAAS,CAAC;gBAEzC,gBAAgB,EAAE,gBAAgB;IAW9C,iBAAiB,CAAC,GAAG,EAAE,6BAA6B,GAAG,SAAS,GAAG,IAAI;IAIvE,OAAO,CAAC,cAAc;IAgBtB,aAAa,CAAC,MAAM,EAAE,KAAK,GAAG,SAAS,GAAG,IAAI;IAI9C,UAAU,CACR,IAAI,EAAE,iCAAiC,EACvC,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,OAAO,GACrB,IAAI;IAWP,WAAW,CACT,IAAI,EACA,wCAAwC,GACxC,oCAAoC,EACxC,OAAO,CAAC,EAAE;QACR,eAAe,CAAC,EAAE,OAAO,CAAC;KAC3B,GACA,IAAI;IAmBP,IAAI,QAAQ,IAAI,MAAM,CAKrB;CACF"}
@@ -0,0 +1,70 @@
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 { hashArray } from '@finos/legend-shared';
17
+ import { updateNodeConstraints, addQueryBuilderPropertyNode, buildGraphFetchTreeData, } from '../utils/DataQualityGraphFetchTreeUtil.js';
18
+ import { action, makeObservable, observable } from 'mobx';
19
+ import { PackageableElementExplicitReference, } from '@finos/legend-graph';
20
+ import { DataQualityRootGraphFetchTree } from '../../graph/metamodel/pure/packageableElements/data-quality/DataQualityGraphFetchTree.js';
21
+ import { DATA_QUALITY_HASH_STRUCTURE } from '../../graph/metamodel/DSL_DataQuality_HashUtils.js';
22
+ export class DataQualityGraphFetchTreeState {
23
+ dataQualityState;
24
+ treeData;
25
+ constructor(dataQualityState) {
26
+ makeObservable(this, {
27
+ treeData: observable.ref,
28
+ setGraphFetchTree: action,
29
+ });
30
+ this.dataQualityState = dataQualityState;
31
+ this.updateTreeData(this.dataQualityState.dataQualityQueryBuilderState.class);
32
+ }
33
+ setGraphFetchTree(val) {
34
+ this.treeData = val;
35
+ }
36
+ updateTreeData(_class) {
37
+ this.setGraphFetchTree(_class
38
+ ? buildGraphFetchTreeData(this.dataQualityState.editorStore, new DataQualityRootGraphFetchTree(PackageableElementExplicitReference.create(_class)), false, false, false)
39
+ : undefined);
40
+ }
41
+ onClassChange(_class) {
42
+ this.updateTreeData(_class);
43
+ }
44
+ updateNode(node, constraint, addConstraint) {
45
+ if (!this.treeData) {
46
+ this.dataQualityState.applicationStore.notificationService.notifyWarning(`Can't add property: data quality graph-fetch tree has not been properly initialized`);
47
+ return;
48
+ }
49
+ updateNodeConstraints(this.treeData, node, constraint, addConstraint);
50
+ this.setGraphFetchTree({ ...this.treeData });
51
+ }
52
+ addProperty(node, options) {
53
+ if (!this.treeData) {
54
+ this.dataQualityState.applicationStore.notificationService.notifyWarning(`Can't add property: data quality graph-fetch tree has not been properly initialized`);
55
+ return;
56
+ }
57
+ addQueryBuilderPropertyNode(this.treeData, this.dataQualityState.dataQualityQueryBuilderState.explorerState
58
+ .nonNullableTreeData, node, this.dataQualityState);
59
+ if (options?.refreshTreeData) {
60
+ this.setGraphFetchTree({ ...this.treeData });
61
+ }
62
+ }
63
+ get hashCode() {
64
+ return hashArray([
65
+ DATA_QUALITY_HASH_STRUCTURE.DATA_QUALITY_GRAPH_FETCH_STATE,
66
+ this.treeData?.tree ?? '',
67
+ ]);
68
+ }
69
+ }
70
+ //# sourceMappingURL=DataQualityGraphFetchTreeState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataQualityGraphFetchTreeState.js","sourceRoot":"","sources":["../../../src/components/states/DataQualityGraphFetchTreeState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAiB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAGL,qBAAqB,EACrB,2BAA2B,EAC3B,uBAAuB,GACxB,MAAM,2CAA2C,CAAC;AAEnD,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MA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EAAE,IAAI,EAAE,UAAU,EAAE,aAAa,CAAC,CAAC;QACtE,IAAI,CAAC,iBAAiB,CAAC,EAAE,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC/C,CAAC;IAED,WAAW,CACT,IAEwC,EACxC,OAEC;QAED,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACnB,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,aAAa,CACtE,qFAAqF,CACtF,CAAC;YACF,OAAO;QACT,CAAC;QACD,2BAA2B,CACzB,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,gBAAgB,CAAC,4BAA4B,CAAC,aAAa;aAC7D,mBAAmB,EACtB,IAAI,EACJ,IAAI,CAAC,gBAAgB,CACtB,CAAC;QACF,IAAI,OAAO,EAAE,eAAe,EAAE,CAAC;YAC7B,IAAI,CAAC,iBAAiB,CAAC,EAAE,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC/C,CAAC;IACH,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,2BAA2B,CAAC,8BAA8B;YAC1D,IAAI,CAAC,QAAQ,EAAE,IAAI,IAAI,EAAE;SAC1B,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { QueryBuilderState } from '@finos/legend-query-builder';
17
+ export declare class DataQualityQueryBuilderState extends QueryBuilderState {
18
+ }
19
+ //# sourceMappingURL=DataQualityQueryBuilderState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataQualityQueryBuilderState.d.ts","sourceRoot":"","sources":["../../../src/components/states/DataQualityQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAEhE,qBAAa,4BAA6B,SAAQ,iBAAiB;CAAG"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { QueryBuilderState } from '@finos/legend-query-builder';
17
+ export class DataQualityQueryBuilderState extends QueryBuilderState {
18
+ }
19
+ //# sourceMappingURL=DataQualityQueryBuilderState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataQualityQueryBuilderState.js","sourceRoot":"","sources":["../../../src/components/states/DataQualityQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAEhE,MAAM,OAAO,4BAA6B,SAAQ,iBAAiB;CAAG"}