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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (178) hide show
  1. package/lib/components/{DSL_DataQuality_ClassElementDriver.d.ts → DSL_DataQuality_ElementDriver.d.ts} +17 -7
  2. package/lib/components/DSL_DataQuality_ElementDriver.d.ts.map +1 -0
  3. package/lib/components/{DSL_DataQuality_ClassElementDriver.js → DSL_DataQuality_ElementDriver.js} +70 -23
  4. package/lib/components/DSL_DataQuality_ElementDriver.js.map +1 -0
  5. package/lib/components/DSL_DataQuality_LegendStudioApplicationPlugin.d.ts.map +1 -1
  6. package/lib/components/DSL_DataQuality_LegendStudioApplicationPlugin.js +20 -39
  7. package/lib/components/DSL_DataQuality_LegendStudioApplicationPlugin.js.map +1 -1
  8. package/lib/components/{DSL_NewDataQualityClassValidationElement.d.ts → DSL_NewDataQualityValidationElement.d.ts} +2 -2
  9. package/lib/components/DSL_NewDataQualityValidationElement.d.ts.map +1 -0
  10. package/lib/components/DSL_NewDataQualityValidationElement.js +80 -0
  11. package/lib/components/DSL_NewDataQualityValidationElement.js.map +1 -0
  12. package/lib/components/DataQualityRelationTrialRuns.d.ts +22 -0
  13. package/lib/components/DataQualityRelationTrialRuns.d.ts.map +1 -0
  14. package/lib/components/DataQualityRelationTrialRuns.js +87 -0
  15. package/lib/components/DataQualityRelationTrialRuns.js.map +1 -0
  16. package/lib/components/{DSL_NewDataQualityServiceValidationElement.d.ts → DataQualityRelationValidationConfigurationEditor.d.ts} +2 -2
  17. package/lib/components/DataQualityRelationValidationConfigurationEditor.d.ts.map +1 -0
  18. package/lib/components/DataQualityRelationValidationConfigurationEditor.js +99 -0
  19. package/lib/components/DataQualityRelationValidationConfigurationEditor.js.map +1 -0
  20. package/lib/components/DataQualityRelationValidationEditor.d.ts +30 -0
  21. package/lib/components/DataQualityRelationValidationEditor.d.ts.map +1 -0
  22. package/lib/components/DataQualityRelationValidationEditor.js +89 -0
  23. package/lib/components/DataQualityRelationValidationEditor.js.map +1 -0
  24. package/lib/components/DataQualityResultPanel.d.ts.map +1 -1
  25. package/lib/components/DataQualityResultPanel.js +1 -1
  26. package/lib/components/DataQualityResultPanel.js.map +1 -1
  27. package/lib/components/DataQualityResultValues.d.ts +0 -2
  28. package/lib/components/DataQualityResultValues.d.ts.map +1 -1
  29. package/lib/components/DataQualityResultValues.js.map +1 -1
  30. package/lib/components/DataQualitySideBar.js +2 -2
  31. package/lib/components/DataQualitySideBar.js.map +1 -1
  32. package/lib/components/DataQualityValidationDetailPanel.d.ts +36 -0
  33. package/lib/components/DataQualityValidationDetailPanel.d.ts.map +1 -0
  34. package/lib/components/DataQualityValidationDetailPanel.js +39 -0
  35. package/lib/components/DataQualityValidationDetailPanel.js.map +1 -0
  36. package/lib/components/DataQualityValidationParametersEditor.d.ts +15 -0
  37. package/lib/components/DataQualityValidationParametersEditor.d.ts.map +1 -0
  38. package/lib/components/DataQualityValidationParametersEditor.js +129 -0
  39. package/lib/components/DataQualityValidationParametersEditor.js.map +1 -0
  40. package/lib/components/states/ConstraintState.d.ts +2 -0
  41. package/lib/components/states/ConstraintState.d.ts.map +1 -1
  42. package/lib/components/states/ConstraintState.js +2 -0
  43. package/lib/components/states/ConstraintState.js.map +1 -1
  44. package/lib/components/states/DataQualityClassValidationState.d.ts +2 -2
  45. package/lib/components/states/DataQualityClassValidationState.d.ts.map +1 -1
  46. package/lib/components/states/DataQualityClassValidationState.js +4 -4
  47. package/lib/components/states/DataQualityClassValidationState.js.map +1 -1
  48. package/lib/components/states/DataQualityRelationResultState.d.ts +46 -0
  49. package/lib/components/states/DataQualityRelationResultState.d.ts.map +1 -0
  50. package/lib/components/states/DataQualityRelationResultState.js +194 -0
  51. package/lib/components/states/DataQualityRelationResultState.js.map +1 -0
  52. package/lib/components/states/DataQualityRelationValidationConfigurationState.d.ts +73 -0
  53. package/lib/components/states/DataQualityRelationValidationConfigurationState.d.ts.map +1 -0
  54. package/lib/components/states/DataQualityRelationValidationConfigurationState.js +255 -0
  55. package/lib/components/states/DataQualityRelationValidationConfigurationState.js.map +1 -0
  56. package/lib/components/states/DataQualityRelationValidationLambdaEditorState.d.ts +32 -0
  57. package/lib/components/states/DataQualityRelationValidationLambdaEditorState.d.ts.map +1 -0
  58. package/lib/components/states/DataQualityRelationValidationLambdaEditorState.js +79 -0
  59. package/lib/components/states/DataQualityRelationValidationLambdaEditorState.js.map +1 -0
  60. package/lib/components/states/DataQualityRelationValidationState.d.ts +38 -0
  61. package/lib/components/states/DataQualityRelationValidationState.d.ts.map +1 -0
  62. package/lib/components/states/DataQualityRelationValidationState.js +119 -0
  63. package/lib/components/states/DataQualityRelationValidationState.js.map +1 -0
  64. package/lib/components/states/DataQualityResultState.d.ts.map +1 -1
  65. package/lib/components/states/DataQualityResultState.js +6 -3
  66. package/lib/components/states/DataQualityResultState.js.map +1 -1
  67. package/lib/components/states/DataQualityState.js +1 -1
  68. package/lib/components/states/DataQualityState.js.map +1 -1
  69. package/lib/graph/metamodel/DSL_DataQuality_HashUtils.d.ts +5 -1
  70. package/lib/graph/metamodel/DSL_DataQuality_HashUtils.d.ts.map +1 -1
  71. package/lib/graph/metamodel/DSL_DataQuality_HashUtils.js +4 -0
  72. package/lib/graph/metamodel/DSL_DataQuality_HashUtils.js.map +1 -1
  73. package/lib/graph/metamodel/DSL_DataQuality_PureGraphPlugin.d.ts.map +1 -1
  74. package/lib/graph/metamodel/DSL_DataQuality_PureGraphPlugin.js +2 -1
  75. package/lib/graph/metamodel/DSL_DataQuality_PureGraphPlugin.js.map +1 -1
  76. package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.d.ts +36 -3
  77. package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.d.ts.map +1 -1
  78. package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js +58 -4
  79. package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js.map +1 -1
  80. package/lib/graph-manager/DSL_DataQuality_GraphManagerHelper.d.ts +2 -1
  81. package/lib/graph-manager/DSL_DataQuality_GraphManagerHelper.d.ts.map +1 -1
  82. package/lib/graph-manager/DSL_DataQuality_GraphManagerHelper.js +2 -1
  83. package/lib/graph-manager/DSL_DataQuality_GraphManagerHelper.js.map +1 -1
  84. package/lib/graph-manager/DSL_DataQuality_GraphModifierHelper.d.ts +13 -2
  85. package/lib/graph-manager/DSL_DataQuality_GraphModifierHelper.d.ts.map +1 -1
  86. package/lib/graph-manager/DSL_DataQuality_GraphModifierHelper.js +36 -2
  87. package/lib/graph-manager/DSL_DataQuality_GraphModifierHelper.js.map +1 -1
  88. package/lib/graph-manager/DSL_DataQuality_PureGraphManagerPlugin.d.ts.map +1 -1
  89. package/lib/graph-manager/DSL_DataQuality_PureGraphManagerPlugin.js +5 -2
  90. package/lib/graph-manager/DSL_DataQuality_PureGraphManagerPlugin.js.map +1 -1
  91. package/lib/graph-manager/action/changeDetection/DSL_DataQuality_ObserverHelper.d.ts +5 -1
  92. package/lib/graph-manager/action/changeDetection/DSL_DataQuality_ObserverHelper.d.ts.map +1 -1
  93. package/lib/graph-manager/action/changeDetection/DSL_DataQuality_ObserverHelper.js +29 -2
  94. package/lib/graph-manager/action/changeDetection/DSL_DataQuality_ObserverHelper.js.map +1 -1
  95. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.d.ts +6 -5
  96. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.d.ts.map +1 -1
  97. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.js.map +1 -1
  98. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.d.ts +1 -1
  99. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.d.ts.map +1 -1
  100. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.js +34 -40
  101. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.js.map +1 -1
  102. package/lib/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.d.ts +8 -6
  103. package/lib/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.d.ts.map +1 -1
  104. package/lib/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.js +19 -12
  105. package/lib/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.js.map +1 -1
  106. package/lib/graph-manager/protocol/pure/v1/{V1_DataQualityConstraintsConfiguration.d.ts → V1_DataQualityValidationConfiguration.d.ts} +26 -4
  107. package/lib/graph-manager/protocol/pure/v1/V1_DataQualityValidationConfiguration.d.ts.map +1 -0
  108. package/lib/graph-manager/protocol/pure/v1/{V1_DataQualityConstraintsConfiguration.js → V1_DataQualityValidationConfiguration.js} +49 -4
  109. package/lib/graph-manager/protocol/pure/v1/V1_DataQualityValidationConfiguration.js.map +1 -0
  110. package/lib/graph-manager/protocol/pure/v1/transformation/V1_DSL_DataQuality_ValueSpecificationBuilderHelper.d.ts +7 -3
  111. package/lib/graph-manager/protocol/pure/v1/transformation/V1_DSL_DataQuality_ValueSpecificationBuilderHelper.d.ts.map +1 -1
  112. package/lib/graph-manager/protocol/pure/v1/transformation/V1_DSL_DataQuality_ValueSpecificationBuilderHelper.js +43 -3
  113. package/lib/graph-manager/protocol/pure/v1/transformation/V1_DSL_DataQuality_ValueSpecificationBuilderHelper.js.map +1 -1
  114. package/lib/graph-manager/protocol/pure/v1/transformation/V1_DSL_DataQuality_ValueSpecificationTransformer.d.ts +6 -3
  115. package/lib/graph-manager/protocol/pure/v1/transformation/V1_DSL_DataQuality_ValueSpecificationTransformer.d.ts.map +1 -1
  116. package/lib/graph-manager/protocol/pure/v1/transformation/V1_DSL_DataQuality_ValueSpecificationTransformer.js +39 -2
  117. package/lib/graph-manager/protocol/pure/v1/transformation/V1_DSL_DataQuality_ValueSpecificationTransformer.js.map +1 -1
  118. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.d.ts +5 -2
  119. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.d.ts.map +1 -1
  120. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.js +27 -9
  121. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.js.map +1 -1
  122. package/lib/index.css +2 -2
  123. package/lib/index.css.map +1 -1
  124. package/lib/package.json +1 -1
  125. package/package.json +7 -7
  126. package/src/components/{DSL_DataQuality_ClassElementDriver.tsx → DSL_DataQuality_ElementDriver.tsx} +87 -18
  127. package/src/components/DSL_DataQuality_LegendStudioApplicationPlugin.tsx +33 -48
  128. package/src/components/DSL_NewDataQualityValidationElement.tsx +208 -0
  129. package/src/components/DataQualityRelationTrialRuns.tsx +288 -0
  130. package/src/components/DataQualityRelationValidationConfigurationEditor.tsx +364 -0
  131. package/src/components/DataQualityRelationValidationEditor.tsx +290 -0
  132. package/src/components/DataQualityResultPanel.tsx +1 -4
  133. package/src/components/DataQualityResultValues.tsx +1 -5
  134. package/src/components/DataQualitySideBar.tsx +2 -2
  135. package/src/components/DataQualityValidationDetailPanel.tsx +182 -0
  136. package/src/components/DataQualityValidationParametersEditor.tsx +355 -0
  137. package/src/components/states/ConstraintState.ts +2 -0
  138. package/src/components/states/DataQualityClassValidationState.ts +5 -5
  139. package/src/components/states/DataQualityRelationResultState.ts +274 -0
  140. package/src/components/states/DataQualityRelationValidationConfigurationState.ts +429 -0
  141. package/src/components/states/DataQualityRelationValidationLambdaEditorState.ts +138 -0
  142. package/src/components/states/DataQualityRelationValidationState.ts +180 -0
  143. package/src/components/states/DataQualityResultState.ts +6 -8
  144. package/src/components/states/DataQualityState.ts +1 -1
  145. package/src/graph/metamodel/DSL_DataQuality_HashUtils.ts +4 -0
  146. package/src/graph/metamodel/DSL_DataQuality_PureGraphPlugin.ts +2 -0
  147. package/src/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.ts +79 -3
  148. package/src/graph-manager/DSL_DataQuality_GraphManagerHelper.ts +13 -0
  149. package/src/graph-manager/DSL_DataQuality_GraphModifierHelper.ts +107 -0
  150. package/src/graph-manager/DSL_DataQuality_PureGraphManagerPlugin.ts +8 -0
  151. package/src/graph-manager/action/changeDetection/DSL_DataQuality_ObserverHelper.ts +54 -1
  152. package/src/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.ts +5 -3
  153. package/src/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.ts +72 -81
  154. package/src/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.ts +20 -23
  155. package/src/graph-manager/protocol/pure/v1/{V1_DataQualityConstraintsConfiguration.ts → V1_DataQualityValidationConfiguration.ts} +63 -4
  156. package/src/graph-manager/protocol/pure/v1/transformation/V1_DSL_DataQuality_ValueSpecificationBuilderHelper.ts +116 -2
  157. package/src/graph-manager/protocol/pure/v1/transformation/V1_DSL_DataQuality_ValueSpecificationTransformer.ts +78 -1
  158. package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.ts +55 -8
  159. package/style/_data-quality-relation-validation-builder.scss +454 -0
  160. package/style/index.scss +6 -0
  161. package/tsconfig.json +13 -6
  162. package/lib/components/DSL_DataQuality_ClassElementDriver.d.ts.map +0 -1
  163. package/lib/components/DSL_DataQuality_ClassElementDriver.js.map +0 -1
  164. package/lib/components/DSL_DataQuality_ServiceElementDriver.d.ts +0 -27
  165. package/lib/components/DSL_DataQuality_ServiceElementDriver.d.ts.map +0 -1
  166. package/lib/components/DSL_DataQuality_ServiceElementDriver.js +0 -41
  167. package/lib/components/DSL_DataQuality_ServiceElementDriver.js.map +0 -1
  168. package/lib/components/DSL_NewDataQualityClassValidationElement.d.ts.map +0 -1
  169. package/lib/components/DSL_NewDataQualityClassValidationElement.js +0 -64
  170. package/lib/components/DSL_NewDataQualityClassValidationElement.js.map +0 -1
  171. package/lib/components/DSL_NewDataQualityServiceValidationElement.d.ts.map +0 -1
  172. package/lib/components/DSL_NewDataQualityServiceValidationElement.js +0 -41
  173. package/lib/components/DSL_NewDataQualityServiceValidationElement.js.map +0 -1
  174. package/lib/graph-manager/protocol/pure/v1/V1_DataQualityConstraintsConfiguration.d.ts.map +0 -1
  175. package/lib/graph-manager/protocol/pure/v1/V1_DataQualityConstraintsConfiguration.js.map +0 -1
  176. package/src/components/DSL_DataQuality_ServiceElementDriver.tsx +0 -57
  177. package/src/components/DSL_NewDataQualityClassValidationElement.tsx +0 -156
  178. package/src/components/DSL_NewDataQualityServiceValidationElement.tsx +0 -74
package/tsconfig.json CHANGED
@@ -86,6 +86,10 @@
86
86
  "./src/components/states/DataQualityClassValidationState.ts",
87
87
  "./src/components/states/DataQualityGraphFetchTreeState.ts",
88
88
  "./src/components/states/DataQualityQueryBuilderState.ts",
89
+ "./src/components/states/DataQualityRelationResultState.ts",
90
+ "./src/components/states/DataQualityRelationValidationConfigurationState.ts",
91
+ "./src/components/states/DataQualityRelationValidationLambdaEditorState.ts",
92
+ "./src/components/states/DataQualityRelationValidationState.ts",
89
93
  "./src/components/states/DataQualityResultState.ts",
90
94
  "./src/components/states/DataQualityServiceValidationState.ts",
91
95
  "./src/components/states/DataQualityState.ts",
@@ -104,18 +108,16 @@
104
108
  "./src/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.ts",
105
109
  "./src/graph-manager/protocol/pure/DSL_DataQuality_buildGraphManagerExtension.ts",
106
110
  "./src/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.ts",
107
- "./src/graph-manager/protocol/pure/v1/V1_DataQualityConstraintsConfiguration.ts",
111
+ "./src/graph-manager/protocol/pure/v1/V1_DataQualityValidationConfiguration.ts",
108
112
  "./src/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityPropertyGraphFetchTree.ts",
109
113
  "./src/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityRootGraphFetchTree.ts",
110
114
  "./src/graph-manager/protocol/pure/v1/transformation/V1_DSL_DataQuality_ValueSpecificationBuilderHelper.ts",
111
115
  "./src/graph-manager/protocol/pure/v1/transformation/V1_DSL_DataQuality_ValueSpecificationSerializer.ts",
112
116
  "./src/graph-manager/protocol/pure/v1/transformation/V1_DSL_DataQuality_ValueSpecificationTransformer.ts",
113
117
  "./src/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.ts",
114
- "./src/components/DSL_DataQuality_ClassElementDriver.tsx",
118
+ "./src/components/DSL_DataQuality_ElementDriver.tsx",
115
119
  "./src/components/DSL_DataQuality_LegendStudioApplicationPlugin.tsx",
116
- "./src/components/DSL_DataQuality_ServiceElementDriver.tsx",
117
- "./src/components/DSL_NewDataQualityClassValidationElement.tsx",
118
- "./src/components/DSL_NewDataQualityServiceValidationElement.tsx",
120
+ "./src/components/DSL_NewDataQualityValidationElement.tsx",
119
121
  "./src/components/DataQualityClassValidationEditor.tsx",
120
122
  "./src/components/DataQualityConstraintsSelection.tsx",
121
123
  "./src/components/DataQualityDataSpaceBuilder.tsx",
@@ -123,13 +125,18 @@
123
125
  "./src/components/DataQualityExplorerPanel.tsx",
124
126
  "./src/components/DataQualityFilterPanel.tsx",
125
127
  "./src/components/DataQualityMappingAndRuntimeBuilder.tsx",
128
+ "./src/components/DataQualityRelationTrialRuns.tsx",
129
+ "./src/components/DataQualityRelationValidationConfigurationEditor.tsx",
130
+ "./src/components/DataQualityRelationValidationEditor.tsx",
126
131
  "./src/components/DataQualityResultPanel.tsx",
127
132
  "./src/components/DataQualityResultValues.tsx",
128
133
  "./src/components/DataQualityServiceValidationEditor.tsx",
129
134
  "./src/components/DataQualitySideBar.tsx",
130
135
  "./src/components/DataQualityStructuralValidationsPanel.tsx",
131
136
  "./src/components/DataQualityTabs.tsx",
132
- "./src/components/DataQualityValidationEditor.tsx"
137
+ "./src/components/DataQualityValidationDetailPanel.tsx",
138
+ "./src/components/DataQualityValidationEditor.tsx",
139
+ "./src/components/DataQualityValidationParametersEditor.tsx"
133
140
  ],
134
141
  "include": [
135
142
  "src/**/*.ts",
@@ -1 +0,0 @@
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;AAQxG,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,kBAAkB,EAKxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,wBAAwB,EAE9B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,SAAS,EAEV,MAAM,8CAA8C,CAAC;AAGtD,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;CAoDtE"}
@@ -1 +0,0 @@
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,EACpB,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAIL,4BAA4B,EAC5B,mCAAmC,EACnC,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,kBAAkB,GACnB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,SAAS,EACT,6BAA6B,GAC9B,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,yCAAyC,EAAE,MAAM,0CAA0C,CAA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AAa,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC/B,MAAM,IAAI,yBAAyB,CACjC,wDAAwD,CACzD,CAAC;QACJ,CAAC;QACD,mCAAmC,CAAC,6BAA6B;YAC/D,yCAAyC,CAAC,aAAa,CAAC,CAAC,CAAE,CAAC,CAAC;QAC/D,OAAO,mCAAmC,CAAC;IAC7C,CAAC;CACF"}
@@ -1,27 +0,0 @@
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 { DataQualityServiceValidationConfiguration } from '../graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js';
18
- import type { Service } from '@finos/legend-graph';
19
- import { type PackageableElementOption } from '@finos/legend-lego/graph-editor';
20
- export declare class DataQuality_ServiceElementDriver extends NewElementDriver<DataQualityServiceValidationConfiguration> {
21
- serviceSelected: PackageableElementOption<Service> | undefined;
22
- constructor(editorStore: EditorStore);
23
- setServiceSelected(serviceSelected: PackageableElementOption<Service> | undefined): void;
24
- get isValid(): boolean;
25
- createElement(name: string): DataQualityServiceValidationConfiguration;
26
- }
27
- //# sourceMappingURL=DSL_DataQuality_ServiceElementDriver.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DSL_DataQuality_ServiceElementDriver.d.ts","sourceRoot":"","sources":["../../src/components/DSL_DataQuality_ServiceElementDriver.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,WAAW,EAChB,gBAAgB,EACjB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,yCAAyC,EAAE,MAAM,gGAAgG,CAAC;AAE3J,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EACL,KAAK,wBAAwB,EAE9B,MAAM,iCAAiC,CAAC;AAEzC,qBAAa,gCAAiC,SAAQ,gBAAgB,CAAC,yCAAyC,CAAC;IAC/G,eAAe,EAAE,wBAAwB,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC;gBAEnD,WAAW,EAAE,WAAW;IAYpC,kBAAkB,CAChB,eAAe,EAAE,wBAAwB,CAAC,OAAO,CAAC,GAAG,SAAS,GAC7D,IAAI;IAIP,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,yCAAyC;CAGvE"}
@@ -1,41 +0,0 @@
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 { DataQualityServiceValidationConfiguration } from '../graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js';
18
- import { action, makeObservable, observable } from 'mobx';
19
- import { buildElementOption, } from '@finos/legend-lego/graph-editor';
20
- export class DataQuality_ServiceElementDriver extends NewElementDriver {
21
- serviceSelected;
22
- constructor(editorStore) {
23
- super(editorStore);
24
- makeObservable(this, {
25
- serviceSelected: observable,
26
- setServiceSelected: action,
27
- });
28
- this.serviceSelected =
29
- editorStore.graphManagerState.usableServices.map(buildElementOption)[0];
30
- }
31
- setServiceSelected(serviceSelected) {
32
- this.serviceSelected = serviceSelected;
33
- }
34
- get isValid() {
35
- return Boolean(this.serviceSelected);
36
- }
37
- createElement(name) {
38
- return new DataQualityServiceValidationConfiguration(name);
39
- }
40
- }
41
- //# sourceMappingURL=DSL_DataQuality_ServiceElementDriver.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DSL_DataQuality_ServiceElementDriver.js","sourceRoot":"","sources":["../../src/components/DSL_DataQuality_ServiceElementDriver.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,gBAAgB,GACjB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,yCAAyC,EAAE,MAAM,gGAAgG,CAAC;AAC3J,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE1D,OAAO,EAEL,kBAAkB,GACnB,MAAM,iCAAiC,CAAC;AAEzC,MAAM,OAAO,gCAAiC,SAAQ,gBAA2D;IAC/G,eAAe,CAAgD;IAE/D,YAAY,WAAwB;QAClC,KAAK,CAAC,WAAW,CAAC,CAAC;QAEnB,cAAc,CAAC,IAAI,EAAE;YACnB,eAAe,EAAE,UAAU;YAC3B,kBAAkB,EAAE,MAAM;SAC3B,CAAC,CAAC;QAEH,IAAI,CAAC,eAAe;YAClB,WAAW,CAAC,iBAAiB,CAAC,cAAc,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5E,CAAC;IAED,kBAAkB,CAChB,eAA8D;QAE9D,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;IACzC,CAAC;IAED,IAAI,OAAO;QACT,OAAO,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;IACvC,CAAC;IAED,aAAa,CAAC,IAAY;QACxB,OAAO,IAAI,yCAAyC,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC;CACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DSL_NewDataQualityClassValidationElement.d.ts","sourceRoot":"","sources":["../../src/components/DSL_NewDataQualityClassValidationElement.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAiBH,eAAO,MAAM,0CAA0C;;CA4HrD,CAAC"}
@@ -1,64 +0,0 @@
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 { useEditorStore } from '@finos/legend-application-studio';
19
- import { BaseRadioGroup, CustomSelectorInput } from '@finos/legend-art';
20
- import { buildElementOption, } from '@finos/legend-lego/graph-editor';
21
- import { DataQuality_ClassElementDriver, ELEMENT_CREATION_BASIS, } from './DSL_DataQuality_ClassElementDriver.js';
22
- export const NewDataQualityClassValidationElementEditor = observer(() => {
23
- const editorStore = useEditorStore();
24
- const applicationStore = editorStore.applicationStore;
25
- const dataQualityDataSpaceDriver = editorStore.newElementState.getNewElementDriver(DataQuality_ClassElementDriver);
26
- const dqElementCreationBasis = dataQualityDataSpaceDriver.dqElementCreationBasis;
27
- const dataSpacesOptions = dataQualityDataSpaceDriver.dataSpaceOptions;
28
- const mappingOptions = dataQualityDataSpaceDriver.mappingOptions;
29
- const runtimeOptions = dataQualityDataSpaceDriver.compatibleMappingRuntimes.map(buildElementOption);
30
- const onDataSpaceChange = (val) => {
31
- if (val) {
32
- dataQualityDataSpaceDriver.setDataSpaceSelected(val);
33
- }
34
- };
35
- const onMappingChange = (val) => {
36
- if (val) {
37
- dataQualityDataSpaceDriver.setMappingSelected(val);
38
- }
39
- else {
40
- dataQualityDataSpaceDriver.setMappingSelected(undefined);
41
- }
42
- dataQualityDataSpaceDriver.setRuntimeSelected(dataQualityDataSpaceDriver.runtimeOptions.length > 0
43
- ? dataQualityDataSpaceDriver.runtimeOptions[0]
44
- : undefined);
45
- };
46
- const onRuntimeChange = (val) => {
47
- if (val) {
48
- dataQualityDataSpaceDriver.setRuntimeSelected(val);
49
- }
50
- };
51
- const handleDQElementCreationBasisChange = (event) => {
52
- const validationElementCreationBasis = event.target
53
- .value;
54
- dataQualityDataSpaceDriver.setDqElementCreationBasis(validationElementCreationBasis);
55
- };
56
- return (_jsxs("div", { children: [_jsx("div", { className: "element-creation-basis", children: _jsx(BaseRadioGroup, { value: dqElementCreationBasis, onChange: handleDQElementCreationBasisChange, row: false, options: [
57
- ELEMENT_CREATION_BASIS.DATASPACE_BASED,
58
- ELEMENT_CREATION_BASIS.MAPPING_RUNTIME_BASED,
59
- ], size: 2 }) }), dqElementCreationBasis === ELEMENT_CREATION_BASIS.DATASPACE_BASED ? (_jsxs("div", { children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "DataSpace" }), _jsx("div", { className: "data-quality-explorer__new-element-modal__driver", children: _jsx(CustomSelectorInput, { className: "data-quality-explorer__new-element-modal__driver__dropdown", options: dataSpacesOptions, onChange: onDataSpaceChange, value: dataQualityDataSpaceDriver.dataSpaceSelected, darkMode: !applicationStore.layoutService
60
- .TEMPORARY__isLightColorThemeEnabled }) })] })) : (_jsxs("div", { children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Mapping" }), _jsx("div", { className: "data-quality-explorer__new-element-modal__driver", children: _jsx(CustomSelectorInput, { className: "data-quality-explorer__new-element-modal__driver__dropdown", options: mappingOptions, onChange: onMappingChange, value: dataQualityDataSpaceDriver.mappingSelected, darkMode: !applicationStore.layoutService
61
- .TEMPORARY__isLightColorThemeEnabled }) }), _jsx("div", { className: "panel__content__form__section__header__label", children: "Runtime" }), _jsx("div", { className: "data-quality-explorer__new-element-modal__driver", children: _jsx(CustomSelectorInput, { className: "data-quality-explorer__new-element-modal__driver__dropdown", options: runtimeOptions, onChange: onRuntimeChange, value: dataQualityDataSpaceDriver.runtimeSelected, darkMode: !applicationStore.layoutService
62
- .TEMPORARY__isLightColorThemeEnabled }) })] }))] }));
63
- });
64
- //# sourceMappingURL=DSL_NewDataQualityClassValidationElement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DSL_NewDataQualityClassValidationElement.js","sourceRoot":"","sources":["../../src/components/DSL_NewDataQualityClassValidationElement.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExE,OAAO,EAEL,kBAAkB,GACnB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAEL,8BAA8B,EAC9B,sBAAsB,GACvB,MAAM,yCAAyC,CAAC;AAGjD,MAAM,CAAC,MAAM,0CAA0C,GAAG,QAAQ,CAAC,GAAG,EAAE;IACtE,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,gBAAgB,GAAG,WAAW,CAAC,gBAAgB,CAAC;IAEtD,MAAM,0BAA0B,GAC9B,WAAW,CAAC,eAAe,CAAC,mBAAmB,CAC7C,8BAA8B,CAC/B,CAAC;IACJ,MAAM,sBAAsB,GAC1B,0BAA0B,CAAC,sBAAsB,CAAC;IACpD,MAAM,iBAAiB,GAAG,0BAA0B,CAAC,gBAAgB,CAAC;IACtE,MAAM,cAAc,GAAG,0BAA0B,CAAC,cAAc,CAAC;IACjE,MAAM,cAAc,GAClB,0BAA0B,CAAC,yBAAyB,CAAC,GAAG,CACtD,kBAAkB,CACnB,CAAC;IA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C,CAAC,CACnE,0BACE,cAAK,SAAS,EAAC,8CAA8C,0BAEvD,EACN,cAAK,SAAS,EAAC,kDAAkD,YAC/D,KAAC,mBAAmB,IAClB,SAAS,EAAC,4DAA4D,EACtE,OAAO,EAAE,iBAAiB,EAC1B,QAAQ,EAAE,iBAAiB,EAC3B,KAAK,EAAE,0BAA0B,CAAC,iBAAiB,EACnD,QAAQ,EACN,CAAC,gBAAgB,CAAC,aAAa;iCAC5B,mCAAmC,GAExC,GACE,IACF,CACP,CAAC,CAAC,CAAC,CACF,0BACE,cAAK,SAAS,EAAC,8CAA8C,wBAEvD,EACN,cAAK,SAAS,EAAC,kDAAkD,YAC/D,KAAC,mBAAmB,IAClB,SAAS,EAAC,4DAA4D,EACtE,OAAO,EAAE,cAAc,EACvB,QAAQ,EAAE,eAAe,EACzB,KAAK,EAAE,0BAA0B,CAAC,eAAe,EACjD,QAAQ,EACN,CAAC,gBAAgB,CAAC,aAAa;iCAC5B,mCAAmC,GAExC,GACE,EACN,cAAK,SAAS,EAAC,8CAA8C,wBAEvD,EACN,cAAK,SAAS,EAAC,kDAAkD,YAC/D,KAAC,mBAAmB,IAClB,SAAS,EAAC,4DAA4D,EACtE,OAAO,EAAE,cAAc,EACvB,QAAQ,EAAE,eAAe,EACzB,KAAK,EAAE,0BAA0B,CAAC,eAAe,EACjD,QAAQ,EACN,CAAC,gBAAgB,CAAC,aAAa;iCAC5B,mCAAmC,GAExC,GACE,IACF,CACP,IACG,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DSL_NewDataQualityServiceValidationElement.d.ts","sourceRoot":"","sources":["../../src/components/DSL_NewDataQualityServiceValidationElement.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAYH,eAAO,MAAM,4CAA4C;;CA+CvD,CAAC"}
@@ -1,41 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- /**
3
- * Copyright (c) 2020-present, Goldman Sachs
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { observer } from 'mobx-react-lite';
18
- import { useEditorStore } from '@finos/legend-application-studio';
19
- import { CustomSelectorInput } from '@finos/legend-art';
20
- import { DataQuality_ServiceElementDriver } from './DSL_DataQuality_ServiceElementDriver.js';
21
- import { buildElementOption, } from '@finos/legend-lego/graph-editor';
22
- export const NewDataQualityServiceValidationElementEditor = observer(() => {
23
- const editorStore = useEditorStore();
24
- const applicationStore = editorStore.applicationStore;
25
- const dataQualityServiceElementDriver = editorStore.newElementState.getNewElementDriver(DataQuality_ServiceElementDriver);
26
- const serviceOptions = editorStore.graphManagerState.usableServices.map(buildElementOption);
27
- const selectedServiceOption = dataQualityServiceElementDriver.serviceSelected
28
- ? {
29
- label: dataQualityServiceElementDriver.serviceSelected.value.name,
30
- value: dataQualityServiceElementDriver.serviceSelected.value,
31
- }
32
- : undefined;
33
- const onServiceOptionChange = (val) => {
34
- if (val) {
35
- dataQualityServiceElementDriver.setServiceSelected(val);
36
- }
37
- };
38
- return (_jsx(_Fragment, { children: _jsxs("div", { children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Service" }), _jsx("div", { className: "data-quality-explorer__new-element-modal__driver", children: _jsx(CustomSelectorInput, { className: "data-quality-explorer__new-element-modal__driver__dropdown", options: serviceOptions, onChange: onServiceOptionChange, value: selectedServiceOption, darkMode: !applicationStore.layoutService
39
- .TEMPORARY__isLightColorThemeEnabled }) })] }) }));
40
- });
41
- //# sourceMappingURL=DSL_NewDataQualityServiceValidationElement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DSL_NewDataQualityServiceValidationElement.js","sourceRoot":"","sources":["../../src/components/DSL_NewDataQualityServiceValidationElement.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAC;AAC7F,OAAO,EAEL,kBAAkB,GACnB,MAAM,iCAAiC,CAAC;AAGzC,MAAM,CAAC,MAAM,4CAA4C,GAAG,QAAQ,CAAC,GAAG,EAAE;IACxE,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,gBAAgB,GAAG,WAAW,CAAC,gBAAgB,CAAC;IACtD,MAAM,+BAA+B,GACnC,WAAW,CAAC,eAAe,CAAC,mBAAmB,CAC7C,gCAAgC,CACjC,CAAC;IAEJ,MAAM,cAAc,GAClB,WAAW,CAAC,iBAAiB,CAAC,cAAc,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;IAEvE,MAAM,qBAAqB,GAAG,+BAA+B,CAAC,eAAe;QAC3E,CAAC,CAAC;YACE,KAAK,EAAE,+BAA+B,CAAC,eAAe,CAAC,KAAK,CAAC,IAAI;YACjE,KAAK,EAAE,+BAA+B,CAAC,eAAe,CAAC,KAAK;SAC7D;QACH,CAAC,CAAC,SAAS,CAAC;IAEd,MAAM,qBAAqB,GAAG,CAC5B,GAAkD,EAC5C,EAAE;QACR,IAAI,GAAG,EAAE,CAAC;YACR,+BAA+B,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC;QAC1D,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,CACL,4BACE,0BACE,cAAK,SAAS,EAAC,8CAA8C,wBAEvD,EACN,cAAK,SAAS,EAAC,kDAAkD,YAC/D,KAAC,mBAAmB,IAClB,SAAS,EAAC,4DAA4D,EACtE,OAAO,EAAE,cAAc,EACvB,QAAQ,EAAE,qBAAqB,EAC/B,KAAK,EAAE,qBAAqB,EAC5B,QAAQ,EACN,CAAC,gBAAgB,CAAC,aAAa;6BAC5B,mCAAmC,GAExC,GACE,IACF,GACL,CACJ,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"V1_DataQualityConstraintsConfiguration.d.ts","sourceRoot":"","sources":["../../../../../src/graph-manager/protocol/pure/v1/V1_DataQualityConstraintsConfiguration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAEhE,OAAO,EAAE,KAAK,gCAAgC,EAAE,MAAM,wDAAwD,CAAC;AAE/G,8BAAsB,8BAA+B,YAAW,QAAQ;IACtE,QAAQ,KAAK,QAAQ,IAAI,MAAM,CAAC;CACjC;AAED,qBAAa,uCAAwC,SAAQ,8BAA8B;IACzF,OAAO,EAAG,MAAM,CAAC;IACjB,SAAS,EAAG,4BAA4B,CAAC;IAEzC,IAAa,QAAQ,IAAI,MAAM,CAM9B;CACF;AAED,qBAAa,+CAAgD,SAAQ,8BAA8B;IACjG,OAAO,EAAG,4BAA4B,CAAC;IACvC,OAAO,EAAG,4BAA4B,CAAC;IAEvC,IAAa,QAAQ,IAAI,MAAM,CAM9B;CACF;AAED,qBAAa,2CACX,SAAQ,qBACR,YAAW,QAAQ;IAEnB,OAAO,EAAG,8BAA8B,CAAC;IACzC,6BAA6B,EAAE,gCAAgC,GAAG,SAAS,CAAC;IAC5E,MAAM,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IAClC,YAAY,EAAE,cAAc,EAAE,CAAM;IACpC,WAAW,EAAE,gBAAgB,EAAE,CAAM;IAErC,IAAa,QAAQ,IAAI,MAAM,CAO9B;IAED,gCAAgC,CAAC,CAAC,EAChC,OAAO,EAAE,4BAA4B,CAAC,CAAC,CAAC,GACvC,CAAC;CAGL;AAED,qBAAa,6CACX,SAAQ,qBACR,YAAW,QAAQ;IAEnB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,6BAA6B,CAAC,EAAE,gCAAgC,GAAG,SAAS,CAAC;IAE7E,IAAa,QAAQ,IAAI,MAAM,CAO9B;IAED,gCAAgC,CAAC,CAAC,EAChC,OAAO,EAAE,4BAA4B,CAAC,CAAC,CAAC,GACvC,CAAC;CAGL"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"V1_DataQualityConstraintsConfiguration.js","sourceRoot":"","sources":["../../../../../src/graph-manager/protocol/pure/v1/V1_DataQualityConstraintsConfiguration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAML,qBAAqB,GACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAiB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,2BAA2B,EAAE,MAAM,0DAA0D,CAAC;AACvG,OAAO,EAAyC,MAAM,wDAAwD,CAAC;AAE/G,MAAM,OAAgB,8BAA8B;CAEnD;AAED,MAAM,OAAO,uCAAwC,SAAQ,8BAA8B;IACzF,OAAO,CAAU;IACjB,SAAS,CAAgC;IAEzC,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,2BAA2B,CAAC,wCAAwC;YACpE,IAAI,CAAC,OAAO;YACZ,IAAI,CAAC,SAAS,CAAC,IAAI;SACpB,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,+CAAgD,SAAQ,8BAA8B;IACjG,OAAO,CAAgC;IACvC,OAAO,CAAgC;IAEvC,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,2BAA2B,CAAC,kDAAkD;YAC9E,IAAI,CAAC,OAAO,CAAC,IAAI;YACjB,IAAI,CAAC,OAAO,CAAC,IAAI;SAClB,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,2CACX,SAAQ,qBAAqB;IAG7B,OAAO,CAAkC;IACzC,6BAA6B,CAA+C;IAC5E,MAAM,CAA4B;IAClC,YAAY,GAAqB,EAAE,CAAC;IACpC,WAAW,GAAuB,EAAE,CAAC;IAErC,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,2BAA2B,CAAC,sCAAsC;YAClE,IAAI,CAAC,OAAO;YACZ,IAAI,CAAC,MAAM,IAAI,EAAE;YACjB,IAAI,CAAC,6BAA6B,IAAI,EAAE;SACzC,CAAC,CAAC;IACL,CAAC;IAED,gCAAgC,CAC9B,OAAwC;QAExC,OAAO,OAAO,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;CACF;AAED,MAAM,OAAO,6CACX,SAAQ,qBAAqB;IAG7B,WAAW,CAAsB;IACjC,WAAW,CAAsB;IACjC,6BAA6B,CAAgD;IAE7E,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,2BAA2B,CAAC,6CAA6C;YACzE,IAAI,CAAC,WAAW,IAAI,EAAE;YACtB,IAAI,CAAC,WAAW,IAAI,EAAE;YACtB,IAAI,CAAC,6BAA6B,IAAI,EAAE;SACzC,CAAC,CAAC;IACL,CAAC;IAED,gCAAgC,CAC9B,OAAwC;QAExC,OAAO,OAAO,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;CACF"}
@@ -1,57 +0,0 @@
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
-
17
- import {
18
- type EditorStore,
19
- NewElementDriver,
20
- } from '@finos/legend-application-studio';
21
- import { DataQualityServiceValidationConfiguration } from '../graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js';
22
- import { action, makeObservable, observable } from 'mobx';
23
- import type { Service } from '@finos/legend-graph';
24
- import {
25
- type PackageableElementOption,
26
- buildElementOption,
27
- } from '@finos/legend-lego/graph-editor';
28
-
29
- export class DataQuality_ServiceElementDriver extends NewElementDriver<DataQualityServiceValidationConfiguration> {
30
- serviceSelected: PackageableElementOption<Service> | undefined;
31
-
32
- constructor(editorStore: EditorStore) {
33
- super(editorStore);
34
-
35
- makeObservable(this, {
36
- serviceSelected: observable,
37
- setServiceSelected: action,
38
- });
39
-
40
- this.serviceSelected =
41
- editorStore.graphManagerState.usableServices.map(buildElementOption)[0];
42
- }
43
-
44
- setServiceSelected(
45
- serviceSelected: PackageableElementOption<Service> | undefined,
46
- ): void {
47
- this.serviceSelected = serviceSelected;
48
- }
49
-
50
- get isValid(): boolean {
51
- return Boolean(this.serviceSelected);
52
- }
53
-
54
- createElement(name: string): DataQualityServiceValidationConfiguration {
55
- return new DataQualityServiceValidationConfiguration(name);
56
- }
57
- }
@@ -1,156 +0,0 @@
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
-
17
- import { observer } from 'mobx-react-lite';
18
- import { useEditorStore } from '@finos/legend-application-studio';
19
- import { BaseRadioGroup, CustomSelectorInput } from '@finos/legend-art';
20
- import type { Mapping } from '@finos/legend-graph';
21
- import {
22
- type PackageableElementOption,
23
- buildElementOption,
24
- } from '@finos/legend-lego/graph-editor';
25
- import {
26
- type RuntimeOption,
27
- DataQuality_ClassElementDriver,
28
- ELEMENT_CREATION_BASIS,
29
- } from './DSL_DataQuality_ClassElementDriver.js';
30
- import type { DataSpace } from '@finos/legend-extension-dsl-data-space/graph';
31
-
32
- export const NewDataQualityClassValidationElementEditor = observer(() => {
33
- const editorStore = useEditorStore();
34
- const applicationStore = editorStore.applicationStore;
35
-
36
- const dataQualityDataSpaceDriver =
37
- editorStore.newElementState.getNewElementDriver(
38
- DataQuality_ClassElementDriver,
39
- );
40
- const dqElementCreationBasis =
41
- dataQualityDataSpaceDriver.dqElementCreationBasis;
42
- const dataSpacesOptions = dataQualityDataSpaceDriver.dataSpaceOptions;
43
- const mappingOptions = dataQualityDataSpaceDriver.mappingOptions;
44
- const runtimeOptions =
45
- dataQualityDataSpaceDriver.compatibleMappingRuntimes.map(
46
- buildElementOption,
47
- );
48
-
49
- const onDataSpaceChange = (
50
- val: PackageableElementOption<DataSpace> | null,
51
- ): void => {
52
- if (val) {
53
- dataQualityDataSpaceDriver.setDataSpaceSelected(val);
54
- }
55
- };
56
-
57
- const onMappingChange = (
58
- val: PackageableElementOption<Mapping> | null,
59
- ): void => {
60
- if (val) {
61
- dataQualityDataSpaceDriver.setMappingSelected(val);
62
- } else {
63
- dataQualityDataSpaceDriver.setMappingSelected(undefined);
64
- }
65
- dataQualityDataSpaceDriver.setRuntimeSelected(
66
- dataQualityDataSpaceDriver.runtimeOptions.length > 0
67
- ? dataQualityDataSpaceDriver.runtimeOptions[0]
68
- : undefined,
69
- );
70
- };
71
-
72
- const onRuntimeChange = (val: RuntimeOption | null): void => {
73
- if (val) {
74
- dataQualityDataSpaceDriver.setRuntimeSelected(val);
75
- }
76
- };
77
-
78
- const handleDQElementCreationBasisChange = (
79
- event: React.ChangeEvent<HTMLInputElement>,
80
- ): void => {
81
- const validationElementCreationBasis = (event.target as HTMLInputElement)
82
- .value as ELEMENT_CREATION_BASIS;
83
- dataQualityDataSpaceDriver.setDqElementCreationBasis(
84
- validationElementCreationBasis,
85
- );
86
- };
87
-
88
- return (
89
- <div>
90
- <div className="element-creation-basis">
91
- <BaseRadioGroup
92
- value={dqElementCreationBasis}
93
- onChange={handleDQElementCreationBasisChange}
94
- row={false}
95
- options={[
96
- ELEMENT_CREATION_BASIS.DATASPACE_BASED,
97
- ELEMENT_CREATION_BASIS.MAPPING_RUNTIME_BASED,
98
- ]}
99
- size={2}
100
- />
101
- </div>
102
- {dqElementCreationBasis === ELEMENT_CREATION_BASIS.DATASPACE_BASED ? (
103
- <div>
104
- <div className="panel__content__form__section__header__label">
105
- DataSpace
106
- </div>
107
- <div className="data-quality-explorer__new-element-modal__driver">
108
- <CustomSelectorInput
109
- className="data-quality-explorer__new-element-modal__driver__dropdown"
110
- options={dataSpacesOptions}
111
- onChange={onDataSpaceChange}
112
- value={dataQualityDataSpaceDriver.dataSpaceSelected}
113
- darkMode={
114
- !applicationStore.layoutService
115
- .TEMPORARY__isLightColorThemeEnabled
116
- }
117
- />
118
- </div>
119
- </div>
120
- ) : (
121
- <div>
122
- <div className="panel__content__form__section__header__label">
123
- Mapping
124
- </div>
125
- <div className="data-quality-explorer__new-element-modal__driver">
126
- <CustomSelectorInput
127
- className="data-quality-explorer__new-element-modal__driver__dropdown"
128
- options={mappingOptions}
129
- onChange={onMappingChange}
130
- value={dataQualityDataSpaceDriver.mappingSelected}
131
- darkMode={
132
- !applicationStore.layoutService
133
- .TEMPORARY__isLightColorThemeEnabled
134
- }
135
- />
136
- </div>
137
- <div className="panel__content__form__section__header__label">
138
- Runtime
139
- </div>
140
- <div className="data-quality-explorer__new-element-modal__driver">
141
- <CustomSelectorInput
142
- className="data-quality-explorer__new-element-modal__driver__dropdown"
143
- options={runtimeOptions}
144
- onChange={onRuntimeChange}
145
- value={dataQualityDataSpaceDriver.runtimeSelected}
146
- darkMode={
147
- !applicationStore.layoutService
148
- .TEMPORARY__isLightColorThemeEnabled
149
- }
150
- />
151
- </div>
152
- </div>
153
- )}
154
- </div>
155
- );
156
- });
@@ -1,74 +0,0 @@
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
-
17
- import { observer } from 'mobx-react-lite';
18
- import { useEditorStore } from '@finos/legend-application-studio';
19
- import { CustomSelectorInput } from '@finos/legend-art';
20
- import { DataQuality_ServiceElementDriver } from './DSL_DataQuality_ServiceElementDriver.js';
21
- import {
22
- type PackageableElementOption,
23
- buildElementOption,
24
- } from '@finos/legend-lego/graph-editor';
25
- import type { Service } from '@finos/legend-graph';
26
-
27
- export const NewDataQualityServiceValidationElementEditor = observer(() => {
28
- const editorStore = useEditorStore();
29
- const applicationStore = editorStore.applicationStore;
30
- const dataQualityServiceElementDriver =
31
- editorStore.newElementState.getNewElementDriver(
32
- DataQuality_ServiceElementDriver,
33
- );
34
-
35
- const serviceOptions =
36
- editorStore.graphManagerState.usableServices.map(buildElementOption);
37
-
38
- const selectedServiceOption = dataQualityServiceElementDriver.serviceSelected
39
- ? {
40
- label: dataQualityServiceElementDriver.serviceSelected.value.name,
41
- value: dataQualityServiceElementDriver.serviceSelected.value,
42
- }
43
- : undefined;
44
-
45
- const onServiceOptionChange = (
46
- val: PackageableElementOption<Service> | undefined,
47
- ): void => {
48
- if (val) {
49
- dataQualityServiceElementDriver.setServiceSelected(val);
50
- }
51
- };
52
-
53
- return (
54
- <>
55
- <div>
56
- <div className="panel__content__form__section__header__label">
57
- Service
58
- </div>
59
- <div className="data-quality-explorer__new-element-modal__driver">
60
- <CustomSelectorInput
61
- className="data-quality-explorer__new-element-modal__driver__dropdown"
62
- options={serviceOptions}
63
- onChange={onServiceOptionChange}
64
- value={selectedServiceOption}
65
- darkMode={
66
- !applicationStore.layoutService
67
- .TEMPORARY__isLightColorThemeEnabled
68
- }
69
- />
70
- </div>
71
- </div>
72
- </>
73
- );
74
- });