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

Sign up to get free protection for your applications and to get access to all the features.
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
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "{}"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright (c) 2020-present, Goldman Sachs
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # legend-extension-dsl-data-quality
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { type EditorStore, NewElementDriver } from '@finos/legend-application-studio';
17
+ import { DataQualityClassValidationsConfiguration } from '../graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js';
18
+ import { type Mapping, type PackageableRuntime } from '@finos/legend-graph';
19
+ import { type PackageableElementOption } from '@finos/legend-lego/graph-editor';
20
+ import { DataSpace } from '@finos/legend-extension-dsl-data-space/graph';
21
+ export type RuntimeOption = {
22
+ label: string;
23
+ value: PackageableRuntime | undefined;
24
+ };
25
+ export declare enum ELEMENT_CREATION_BASIS {
26
+ MAPPING_RUNTIME_BASED = "Mapping/Runtime",
27
+ DATASPACE_BASED = "DataSpace"
28
+ }
29
+ export declare class DataQuality_ClassElementDriver extends NewElementDriver<DataQualityClassValidationsConfiguration> {
30
+ dqElementCreationBasis: ELEMENT_CREATION_BASIS;
31
+ dataSpaceSelected: PackageableElementOption<DataSpace> | undefined;
32
+ mappingSelected: PackageableElementOption<Mapping> | undefined;
33
+ runtimeSelected: RuntimeOption | undefined;
34
+ constructor(editorStore: EditorStore);
35
+ get dataSpaceOptions(): PackageableElementOption<DataSpace>[];
36
+ get mappingOptions(): PackageableElementOption<Mapping>[];
37
+ get compatibleMappingRuntimes(): PackageableRuntime[];
38
+ get runtimeOptions(): RuntimeOption[];
39
+ setDataSpaceSelected(dataSpace: PackageableElementOption<DataSpace> | undefined): void;
40
+ setMappingSelected(mappingSelected: PackageableElementOption<Mapping> | undefined): void;
41
+ setRuntimeSelected(runtimeSelected: RuntimeOption | undefined): void;
42
+ setDqElementCreationBasis(dqElementCreationBasis: ELEMENT_CREATION_BASIS): void;
43
+ get isValid(): boolean;
44
+ createElement(name: string): DataQualityClassValidationsConfiguration;
45
+ }
46
+ //# sourceMappingURL=DSL_DataQuality_ClassElementDriver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DSL_DataQuality_ClassElementDriver.d.ts","sourceRoot":"","sources":["../../src/components/DSL_DataQuality_ClassElementDriver.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,WAAW,EAChB,gBAAgB,EACjB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,wCAAwC,EAGzC,MAAM,gGAAgG,CAAC;AAOxG,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,kBAAkB,EAGxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,wBAAwB,EAE9B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,8CAA8C,CAAC;AAEzE,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,kBAAkB,GAAG,SAAS,CAAC;CACvC,CAAC;AAEF,oBAAY,sBAAsB;IAChC,qBAAqB,oBAAoB;IACzC,eAAe,cAAc;CAC9B;AAED,qBAAa,8BAA+B,SAAQ,gBAAgB,CAAC,wCAAwC,CAAC;IAC5G,sBAAsB,EAAE,sBAAsB,CAAC;IAC/C,iBAAiB,EAAE,wBAAwB,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;IACnE,eAAe,EAAE,wBAAwB,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC;IAC/D,eAAe,EAAE,aAAa,GAAG,SAAS,CAAC;gBAE/B,WAAW,EAAE,WAAW;IAoBpC,IAAI,gBAAgB,IAAI,wBAAwB,CAAC,SAAS,CAAC,EAAE,CAI5D;IAED,IAAI,cAAc,IAAI,wBAAwB,CAAC,OAAO,CAAC,EAAE,CAIxD;IAED,IAAI,yBAAyB,IAAI,kBAAkB,EAAE,CAOpD;IAED,IAAI,cAAc,IAAI,aAAa,EAAE,CAIpC;IAED,oBAAoB,CAClB,SAAS,EAAE,wBAAwB,CAAC,SAAS,CAAC,GAAG,SAAS,GACzD,IAAI;IAIP,kBAAkB,CAChB,eAAe,EAAE,wBAAwB,CAAC,OAAO,CAAC,GAAG,SAAS,GAC7D,IAAI;IAIP,kBAAkB,CAAC,eAAe,EAAE,aAAa,GAAG,SAAS,GAAG,IAAI;IAIpE,yBAAyB,CACvB,sBAAsB,EAAE,sBAAsB,GAC7C,IAAI;IAIP,IAAI,OAAO,IAAI,OAAO,CAOrB;IAED,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,wCAAwC;CAqCtE"}
@@ -0,0 +1,116 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { NewElementDriver, } from '@finos/legend-application-studio';
17
+ import { DataQualityClassValidationsConfiguration, DataSpaceDataQualityExecutionContext, MappingAndRuntimeDataQualityExecutionContext, } from '../graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js';
18
+ import { action, computed, makeObservable, observable } from 'mobx';
19
+ import { filterByType, getNullableFirstEntry, guaranteeNonNullable, } from '@finos/legend-shared';
20
+ import { getMappingCompatibleRuntimes, PackageableElementExplicitReference, } from '@finos/legend-graph';
21
+ import { buildElementOption, } from '@finos/legend-lego/graph-editor';
22
+ import { DataSpace } from '@finos/legend-extension-dsl-data-space/graph';
23
+ export var ELEMENT_CREATION_BASIS;
24
+ (function (ELEMENT_CREATION_BASIS) {
25
+ ELEMENT_CREATION_BASIS["MAPPING_RUNTIME_BASED"] = "Mapping/Runtime";
26
+ ELEMENT_CREATION_BASIS["DATASPACE_BASED"] = "DataSpace";
27
+ })(ELEMENT_CREATION_BASIS || (ELEMENT_CREATION_BASIS = {}));
28
+ export class DataQuality_ClassElementDriver extends NewElementDriver {
29
+ dqElementCreationBasis;
30
+ dataSpaceSelected;
31
+ mappingSelected;
32
+ runtimeSelected;
33
+ constructor(editorStore) {
34
+ super(editorStore);
35
+ makeObservable(this, {
36
+ dataSpaceSelected: observable,
37
+ mappingSelected: observable,
38
+ runtimeSelected: observable,
39
+ dqElementCreationBasis: observable,
40
+ setDataSpaceSelected: action,
41
+ setMappingSelected: action,
42
+ setRuntimeSelected: action,
43
+ setDqElementCreationBasis: action,
44
+ runtimeOptions: computed,
45
+ });
46
+ this.dqElementCreationBasis = ELEMENT_CREATION_BASIS.DATASPACE_BASED;
47
+ this.dataSpaceSelected = getNullableFirstEntry(this.dataSpaceOptions);
48
+ this.mappingSelected = getNullableFirstEntry(this.mappingOptions);
49
+ this.runtimeSelected = getNullableFirstEntry(this.runtimeOptions);
50
+ }
51
+ get dataSpaceOptions() {
52
+ return this.editorStore.graphManagerState.graph.allOwnElements
53
+ .filter(filterByType(DataSpace))
54
+ .map(buildElementOption);
55
+ }
56
+ get mappingOptions() {
57
+ return this.editorStore.graphManagerState.usableMappings.map(buildElementOption);
58
+ }
59
+ get compatibleMappingRuntimes() {
60
+ return this.mappingSelected?.value
61
+ ? getMappingCompatibleRuntimes(this.mappingSelected.value, this.editorStore.graphManagerState.usableRuntimes)
62
+ : [];
63
+ }
64
+ get runtimeOptions() {
65
+ return this.compatibleMappingRuntimes.map((runtime) => buildElementOption(runtime));
66
+ }
67
+ setDataSpaceSelected(dataSpace) {
68
+ this.dataSpaceSelected = dataSpace;
69
+ }
70
+ setMappingSelected(mappingSelected) {
71
+ this.mappingSelected = mappingSelected;
72
+ }
73
+ setRuntimeSelected(runtimeSelected) {
74
+ this.runtimeSelected = runtimeSelected;
75
+ }
76
+ setDqElementCreationBasis(dqElementCreationBasis) {
77
+ this.dqElementCreationBasis = dqElementCreationBasis;
78
+ }
79
+ get isValid() {
80
+ if (this.dqElementCreationBasis === ELEMENT_CREATION_BASIS.DATASPACE_BASED) {
81
+ return Boolean(this.dataSpaceSelected);
82
+ }
83
+ return Boolean(this.mappingSelected && this.runtimeSelected);
84
+ }
85
+ createElement(name) {
86
+ const dataQualityConstraintsConfiguration = new DataQualityClassValidationsConfiguration(name);
87
+ if (this.dqElementCreationBasis === ELEMENT_CREATION_BASIS.DATASPACE_BASED) {
88
+ const dataSpaceToSet = PackageableElementExplicitReference.create(this.dataSpaceSelected.value);
89
+ const dataSpaceExecutionContext = new DataSpaceDataQualityExecutionContext();
90
+ dataSpaceExecutionContext.context =
91
+ dataSpaceToSet.value.defaultExecutionContext.name;
92
+ dataSpaceExecutionContext.dataSpace = dataSpaceToSet;
93
+ dataQualityConstraintsConfiguration.context = dataSpaceExecutionContext;
94
+ dataQualityConstraintsConfiguration.dataQualityRootGraphFetchTree =
95
+ undefined;
96
+ }
97
+ else {
98
+ if (this.mappingSelected && this.runtimeSelected) {
99
+ const mappingOption = guaranteeNonNullable(this.mappingSelected);
100
+ const _mapping = mappingOption.value;
101
+ const mapping = PackageableElementExplicitReference.create(_mapping);
102
+ const runtimeOption = guaranteeNonNullable(this.runtimeSelected.value);
103
+ const runtimeValue = PackageableElementExplicitReference.create(runtimeOption);
104
+ const mappingAndRuntimeExecutionContext = new MappingAndRuntimeDataQualityExecutionContext();
105
+ mappingAndRuntimeExecutionContext.mapping = mapping;
106
+ mappingAndRuntimeExecutionContext.runtime = runtimeValue;
107
+ dataQualityConstraintsConfiguration.context =
108
+ mappingAndRuntimeExecutionContext;
109
+ }
110
+ dataQualityConstraintsConfiguration.dataQualityRootGraphFetchTree =
111
+ undefined;
112
+ }
113
+ return dataQualityConstraintsConfiguration;
114
+ }
115
+ }
116
+ //# sourceMappingURL=DSL_DataQuality_ClassElementDriver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DSL_DataQuality_ClassElementDriver.js","sourceRoot":"","sources":["../../src/components/DSL_DataQuality_ClassElementDriver.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,gBAAgB,GACjB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,wCAAwC,EACxC,oCAAoC,EACpC,4CAA4C,GAC7C,MAAM,gGAAgG,CAAC;AACxG,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EACL,YAAY,EACZ,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAGL,4BAA4B,EAC5B,mCAAmC,GACpC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,kBAAkB,GACnB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,8CAA8C,CAAC;AAOzE,MAAM,CAAN,IAAY,sBAGX;AA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AyB,CAAC,OAAO;gBAC/B,cAAc,CAAC,KAAK,CAAC,uBAAuB,CAAC,IAAI,CAAC;YACpD,yBAAyB,CAAC,SAAS,GAAG,cAAc,CAAC;YACrD,mCAAmC,CAAC,OAAO,GAAG,yBAAyB,CAAC;YACxE,mCAAmC,CAAC,6BAA6B;gBAC/D,SAAS,CAAC;QACd,CAAC;aAAM,CAAC;YACN,IAAI,IAAI,CAAC,eAAe,IAAI,IAAI,CAAC,eAAe,EAAE,CAAC;gBACjD,MAAM,aAAa,GAAG,oBAAoB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;gBACjE,MAAM,QAAQ,GAAG,aAAa,CAAC,KAAK,CAAC;gBACrC,MAAM,OAAO,GAAG,mCAAmC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBACrE,MAAM,aAAa,GAAG,oBAAoB,CAAC,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;gBACvE,MAAM,YAAY,GAChB,mCAAmC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;gBAC5D,MAAM,iCAAiC,GACrC,IAAI,4CAA4C,EAAE,CAAC;gBACrD,iCAAiC,CAAC,OAAO,GAAG,OAAO,CAAC;gBACpD,iCAAiC,CAAC,OAAO,GAAG,YAAY,CAAC;gBACzD,mCAAmC,CAAC,OAAO;oBACzC,iCAAiC,CAAC;YACtC,CAAC;YACD,mCAAmC,CAAC,6BAA6B;gBAC/D,SAAS,CAAC;QACd,CAAC;QACD,OAAO,mCAAmC,CAAC;IAC7C,CAAC;CACF"}
@@ -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 DSL_LegendStudioApplicationPlugin_Extension, type ElementClassifier, type ElementEditorRenderer, type ElementEditorStateCreator, type ElementIconGetter, type ElementTypeLabelGetter, type NewElementDriverCreator, type NewElementDriverEditorRenderer, type NewElementFromStateCreator, LegendStudioApplicationPlugin } from '@finos/legend-application-studio';
17
+ export declare class DSL_DataQuality_LegendStudioApplicationPlugin extends LegendStudioApplicationPlugin implements DSL_LegendStudioApplicationPlugin_Extension {
18
+ constructor();
19
+ getExtraSupportedElementTypes(): string[];
20
+ getExtraSupportedElementTypesWithCategory(): Map<string, string[]>;
21
+ getExtraElementClassifiers(): ElementClassifier[];
22
+ getExtraElementIconGetters(): ElementIconGetter[];
23
+ getExtraElementTypeLabelGetters(): ElementTypeLabelGetter[];
24
+ getExtraNewElementFromStateCreators(): NewElementFromStateCreator[];
25
+ getExtraElementEditorRenderers(): ElementEditorRenderer[];
26
+ getExtraElementEditorStateCreators(): ElementEditorStateCreator[];
27
+ getExtraNewElementDriverEditorRenderers(): NewElementDriverEditorRenderer[];
28
+ getExtraNewElementDriverCreators(): NewElementDriverCreator[];
29
+ }
30
+ //# sourceMappingURL=DSL_DataQuality_LegendStudioApplicationPlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DSL_DataQuality_LegendStudioApplicationPlugin.d.ts","sourceRoot":"","sources":["../../src/components/DSL_DataQuality_LegendStudioApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,2CAA2C,EAChD,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAK/B,6BAA6B,EAE9B,MAAM,kCAAkC,CAAC;AAyB1C,qBAAa,6CACX,SAAQ,6BACR,YAAW,2CAA2C;;IAMtD,6BAA6B,IAAI,MAAM,EAAE;IAOzC,yCAAyC,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;IASlE,0BAA0B,IAAI,iBAAiB,EAAE;IAcjD,0BAA0B,IAAI,iBAAiB,EAAE;IAsBjD,+BAA+B,IAAI,sBAAsB,EAAE;IAc3D,mCAAmC,IAAI,0BAA0B,EAAE;IAsBnE,8BAA8B,IAAI,qBAAqB,EAAE;IAkBzD,kCAAkC,IAAI,yBAAyB,EAAE;IAiBjE,uCAAuC,IAAI,8BAA8B,EAAE;IAc3E,gCAAgC,IAAI,uBAAuB,EAAE;CAgB9D"}
@@ -0,0 +1,161 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * Copyright (c) 2020-present, Goldman Sachs
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import packageJson from '../../package.json';
18
+ import { LegendStudioApplicationPlugin, PACKAGEABLE_ELEMENT_GROUP_BY_CATEGORY, } from '@finos/legend-application-studio';
19
+ import { DataQualityClassValidationsConfiguration, DataQualityServiceValidationConfiguration, } from '../graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js';
20
+ import { EyeIcon } from '@finos/legend-art';
21
+ import { DataQualityClassValidationEditor } from './DataQualityClassValidationEditor.js';
22
+ import { DataQuality_ClassElementDriver } from './DSL_DataQuality_ClassElementDriver.js';
23
+ import { NewDataQualityServiceValidationElementEditor } from './DSL_NewDataQualityServiceValidationElement.js';
24
+ import { DataQuality_ServiceElementDriver } from './DSL_DataQuality_ServiceElementDriver.js';
25
+ import { DataQualityServiceValidationEditor } from './DataQualityServiceValidationEditor.js';
26
+ import { DataQualityClassValidationState } from './states/DataQualityClassValidationState.js';
27
+ import { NewDataQualityClassValidationElementEditor } from './DSL_NewDataQualityClassValidationElement.js';
28
+ import {} from 'react';
29
+ import { DataQualityServiceValidationState } from './states/DataQualityServiceValidationState.js';
30
+ const DATA_QUALITY_ELEMENT_TYPE = 'DATAQUALITY';
31
+ const DATA_QUALITY_SERVICE_VALIDATION_ELEMENT_TYPE = 'DATAQUALITYSERVICEVALIDATION';
32
+ const DATA_QUALITY_ELEMENT_TYPE_LABEL = 'Data Quality Class Validation';
33
+ const DATA_QUALITY_SERVICE_VALIDATION_TYPE_LABEL = 'Data Quality Service Validation';
34
+ export class DSL_DataQuality_LegendStudioApplicationPlugin extends LegendStudioApplicationPlugin {
35
+ constructor() {
36
+ super(packageJson.extensions.applicationStudioPlugin, packageJson.version);
37
+ }
38
+ getExtraSupportedElementTypes() {
39
+ return [
40
+ DATA_QUALITY_ELEMENT_TYPE,
41
+ DATA_QUALITY_SERVICE_VALIDATION_ELEMENT_TYPE,
42
+ ];
43
+ }
44
+ getExtraSupportedElementTypesWithCategory() {
45
+ const elementTypeswithCategory = new Map();
46
+ elementTypeswithCategory.set(PACKAGEABLE_ELEMENT_GROUP_BY_CATEGORY.OTHER, [
47
+ DATA_QUALITY_ELEMENT_TYPE,
48
+ // DATA_QUALITY_SERVICE_VALIDATION_ELEMENT_TYPE,
49
+ ]);
50
+ return elementTypeswithCategory;
51
+ }
52
+ getExtraElementClassifiers() {
53
+ return [
54
+ (element) => {
55
+ if (element instanceof DataQualityClassValidationsConfiguration) {
56
+ return DATA_QUALITY_ELEMENT_TYPE;
57
+ }
58
+ if (element instanceof DataQualityServiceValidationConfiguration) {
59
+ return DATA_QUALITY_SERVICE_VALIDATION_ELEMENT_TYPE;
60
+ }
61
+ return undefined;
62
+ },
63
+ ];
64
+ }
65
+ getExtraElementIconGetters() {
66
+ return [
67
+ (type) => {
68
+ if (type === DATA_QUALITY_ELEMENT_TYPE) {
69
+ return (_jsx("div", { className: "icon icon--dataQuality", children: _jsx(EyeIcon, {}) }));
70
+ }
71
+ if (type === DATA_QUALITY_SERVICE_VALIDATION_ELEMENT_TYPE) {
72
+ return (_jsx("div", { className: "icon icon--dataQuality", children: _jsx(EyeIcon, {}) }));
73
+ }
74
+ return undefined;
75
+ },
76
+ ];
77
+ }
78
+ getExtraElementTypeLabelGetters() {
79
+ return [
80
+ (type) => {
81
+ if (type === DATA_QUALITY_ELEMENT_TYPE) {
82
+ return DATA_QUALITY_ELEMENT_TYPE_LABEL;
83
+ }
84
+ if (type === DATA_QUALITY_SERVICE_VALIDATION_ELEMENT_TYPE) {
85
+ return DATA_QUALITY_SERVICE_VALIDATION_TYPE_LABEL;
86
+ }
87
+ return undefined;
88
+ },
89
+ ];
90
+ }
91
+ getExtraNewElementFromStateCreators() {
92
+ return [
93
+ (type, name, state) => {
94
+ if (type === DATA_QUALITY_ELEMENT_TYPE) {
95
+ return state
96
+ .getNewElementDriver(DataQuality_ClassElementDriver)
97
+ .createElement(name);
98
+ }
99
+ if (type === DATA_QUALITY_SERVICE_VALIDATION_ELEMENT_TYPE) {
100
+ return state
101
+ .getNewElementDriver(DataQuality_ServiceElementDriver)
102
+ .createElement(name);
103
+ }
104
+ return undefined;
105
+ },
106
+ ];
107
+ }
108
+ getExtraElementEditorRenderers() {
109
+ return [
110
+ (elementEditorState) => {
111
+ if (elementEditorState instanceof DataQualityServiceValidationState) {
112
+ return (_jsx(DataQualityServiceValidationEditor, {}, elementEditorState.uuid));
113
+ }
114
+ if (elementEditorState instanceof DataQualityClassValidationState) {
115
+ return (_jsx(DataQualityClassValidationEditor, {}, elementEditorState.uuid));
116
+ }
117
+ return undefined;
118
+ },
119
+ ];
120
+ }
121
+ getExtraElementEditorStateCreators() {
122
+ return [
123
+ (editorStore, element) => {
124
+ if (element instanceof DataQualityClassValidationsConfiguration) {
125
+ return new DataQualityClassValidationState(editorStore, element);
126
+ }
127
+ if (element instanceof DataQualityServiceValidationConfiguration) {
128
+ return new DataQualityServiceValidationState(editorStore, element);
129
+ }
130
+ return undefined;
131
+ },
132
+ ];
133
+ }
134
+ getExtraNewElementDriverEditorRenderers() {
135
+ return [
136
+ (type) => {
137
+ if (type === DATA_QUALITY_ELEMENT_TYPE) {
138
+ return _jsx(NewDataQualityClassValidationElementEditor, {});
139
+ }
140
+ if (type === DATA_QUALITY_SERVICE_VALIDATION_ELEMENT_TYPE) {
141
+ return _jsx(NewDataQualityServiceValidationElementEditor, {});
142
+ }
143
+ return undefined;
144
+ },
145
+ ];
146
+ }
147
+ getExtraNewElementDriverCreators() {
148
+ return [
149
+ (editorStore, type) => {
150
+ if (type === DATA_QUALITY_ELEMENT_TYPE) {
151
+ return new DataQuality_ClassElementDriver(editorStore);
152
+ }
153
+ if (type === DATA_QUALITY_SERVICE_VALIDATION_ELEMENT_TYPE) {
154
+ return new DataQuality_ServiceElementDriver(editorStore);
155
+ }
156
+ return undefined;
157
+ },
158
+ ];
159
+ }
160
+ }
161
+ //# sourceMappingURL=DSL_DataQuality_LegendStudioApplicationPlugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DSL_DataQuality_LegendStudioApplicationPlugin.js","sourceRoot":"","sources":["../../src/components/DSL_DataQuality_LegendStudioApplicationPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAcL,6BAA6B,EAC7B,qCAAqC,GACtC,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EACL,wCAAwC,EACxC,yCAAyC,GAC1C,MAAM,gGAAgG,CAAC;AACxG,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,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AI,IAAI,KAAK,4CAA4C,EAAE,CAAC;oBAC1D,OAAO,IAAI,gCAAgC,CAAC,WAAW,CAAC,CAAC;gBAC3D,CAAC;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;CACF"}
@@ -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
+ import type { DataQualityState } from './states/DataQualityState.js';
17
+ import type { EditorExtensionState, EditorStore, ElementEditorState, LegendStudioApplicationPlugin } from '@finos/legend-application-studio';
18
+ export type ExtensionStateBuilder = (editorStore: EditorStore, dataQualityState: DataQualityState) => EditorExtensionState | undefined;
19
+ export type ComponentRenderer = (tabName: string, elementEditorState: ElementEditorState) => React.ReactNode | undefined;
20
+ export interface DSL_DataQuality_LegendStudioPlugin_Extension extends LegendStudioApplicationPlugin {
21
+ getExtensionStates?(): ExtensionStateBuilder[];
22
+ getComponentRenderers?(): ComponentRenderer[];
23
+ getAllTabs?(): (() => string[])[];
24
+ }
25
+ //# sourceMappingURL=DSL_DataQuality_LegendStudioPlugin_Extension.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DSL_DataQuality_LegendStudioPlugin_Extension.d.ts","sourceRoot":"","sources":["../../src/components/DSL_DataQuality_LegendStudioPlugin_Extension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,KAAK,EACV,oBAAoB,EACpB,WAAW,EACX,kBAAkB,EAClB,6BAA6B,EAC9B,MAAM,kCAAkC,CAAC;AAE1C,MAAM,MAAM,qBAAqB,GAAG,CAClC,WAAW,EAAE,WAAW,EACxB,gBAAgB,EAAE,gBAAgB,KAC/B,oBAAoB,GAAG,SAAS,CAAC;AAEtC,MAAM,MAAM,iBAAiB,GAAG,CAC9B,OAAO,EAAE,MAAM,EACf,kBAAkB,EAAE,kBAAkB,KACnC,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;AAEjC,MAAM,WAAW,4CACf,SAAQ,6BAA6B;IACrC,kBAAkB,CAAC,IAAI,qBAAqB,EAAE,CAAC;IAC/C,qBAAqB,CAAC,IAAI,iBAAiB,EAAE,CAAC;IAC9C,UAAU,CAAC,IAAI,CAAC,MAAM,MAAM,EAAE,CAAC,EAAE,CAAC;CACnC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DSL_DataQuality_LegendStudioPlugin_Extension.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DSL_DataQuality_LegendStudioPlugin_Extension.js","sourceRoot":"","sources":["../../src/components/DSL_DataQuality_LegendStudioPlugin_Extension.ts"],"names":[],"mappings":""}