@finos/legend-application-studio 25.0.7 → 26.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (239) hide show
  1. package/lib/application/LegendStudio.d.ts.map +1 -1
  2. package/lib/application/LegendStudio.js +2 -0
  3. package/lib/application/LegendStudio.js.map +1 -1
  4. package/lib/components/editor/editor-group/GenerationSpecificationEditor.d.ts.map +1 -1
  5. package/lib/components/editor/editor-group/GenerationSpecificationEditor.js +5 -5
  6. package/lib/components/editor/editor-group/GenerationSpecificationEditor.js.map +1 -1
  7. package/lib/components/editor/editor-group/GrammarTextEditor.d.ts.map +1 -1
  8. package/lib/components/editor/editor-group/GrammarTextEditor.js +1 -28
  9. package/lib/components/editor/editor-group/GrammarTextEditor.js.map +1 -1
  10. package/lib/components/editor/editor-group/ModelImporter.d.ts.map +1 -1
  11. package/lib/components/editor/editor-group/ModelImporter.js +4 -4
  12. package/lib/components/editor/editor-group/ModelImporter.js.map +1 -1
  13. package/lib/components/editor/editor-group/RuntimeEditor.d.ts.map +1 -1
  14. package/lib/components/editor/editor-group/RuntimeEditor.js +2 -2
  15. package/lib/components/editor/editor-group/RuntimeEditor.js.map +1 -1
  16. package/lib/components/editor/editor-group/UnsupportedElementEditor.d.ts.map +1 -1
  17. package/lib/components/editor/editor-group/UnsupportedElementEditor.js +3 -3
  18. package/lib/components/editor/editor-group/UnsupportedElementEditor.js.map +1 -1
  19. package/lib/components/editor/editor-group/connection-editor/DatabaseBuilder.d.ts.map +1 -1
  20. package/lib/components/editor/editor-group/connection-editor/DatabaseBuilder.js +1 -0
  21. package/lib/components/editor/editor-group/connection-editor/DatabaseBuilder.js.map +1 -1
  22. package/lib/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.d.ts.map +1 -1
  23. package/lib/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.js +13 -11
  24. package/lib/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.js.map +1 -1
  25. package/lib/components/editor/editor-group/element-generation-editor/FileGenerationEditor.d.ts.map +1 -1
  26. package/lib/components/editor/editor-group/element-generation-editor/FileGenerationEditor.js +11 -22
  27. package/lib/components/editor/editor-group/element-generation-editor/FileGenerationEditor.js.map +1 -1
  28. package/lib/components/editor/editor-group/mapping-editor/ClassMappingEditor.d.ts.map +1 -1
  29. package/lib/components/editor/editor-group/mapping-editor/ClassMappingEditor.js +7 -3
  30. package/lib/components/editor/editor-group/mapping-editor/ClassMappingEditor.js.map +1 -1
  31. package/lib/components/editor/editor-group/mapping-editor/DEPRECATED__MappingTestEditor.d.ts.map +1 -1
  32. package/lib/components/editor/editor-group/mapping-editor/DEPRECATED__MappingTestEditor.js +1 -4
  33. package/lib/components/editor/editor-group/mapping-editor/DEPRECATED__MappingTestEditor.js.map +1 -1
  34. package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationEditor.d.ts.map +1 -1
  35. package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationEditor.js +2 -2
  36. package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationEditor.js.map +1 -1
  37. package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.d.ts.map +1 -1
  38. package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.js +3 -3
  39. package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.js.map +1 -1
  40. package/lib/components/editor/editor-group/service-editor/BulkServiceRegistrationEditor.d.ts.map +1 -1
  41. package/lib/components/editor/editor-group/service-editor/BulkServiceRegistrationEditor.js +5 -10
  42. package/lib/components/editor/editor-group/service-editor/BulkServiceRegistrationEditor.js.map +1 -1
  43. package/lib/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.d.ts.map +1 -1
  44. package/lib/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.js +1 -4
  45. package/lib/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.js.map +1 -1
  46. package/lib/components/editor/editor-group/service-editor/ServicePostValidationEditor.d.ts.map +1 -1
  47. package/lib/components/editor/editor-group/service-editor/ServicePostValidationEditor.js +2 -2
  48. package/lib/components/editor/editor-group/service-editor/ServicePostValidationEditor.js.map +1 -1
  49. package/lib/components/editor/editor-group/service-editor/ServiceRegistrationEditor.d.ts.map +1 -1
  50. package/lib/components/editor/editor-group/service-editor/ServiceRegistrationEditor.js +2 -1
  51. package/lib/components/editor/editor-group/service-editor/ServiceRegistrationEditor.js.map +1 -1
  52. package/lib/components/editor/editor-group/uml-editor/AssociationEditor.d.ts.map +1 -1
  53. package/lib/components/editor/editor-group/uml-editor/AssociationEditor.js +2 -2
  54. package/lib/components/editor/editor-group/uml-editor/AssociationEditor.js.map +1 -1
  55. package/lib/components/editor/editor-group/uml-editor/ClassQueryBuilder.js +2 -2
  56. package/lib/components/editor/editor-group/uml-editor/ClassQueryBuilder.js.map +1 -1
  57. package/lib/components/editor/side-bar/Explorer.d.ts.map +1 -1
  58. package/lib/components/editor/side-bar/Explorer.js +14 -5
  59. package/lib/components/editor/side-bar/Explorer.js.map +1 -1
  60. package/lib/components/editor/side-bar/ProjectOverview.d.ts.map +1 -1
  61. package/lib/components/editor/side-bar/ProjectOverview.js +0 -5
  62. package/lib/components/editor/side-bar/ProjectOverview.js.map +1 -1
  63. package/lib/components/editor/side-bar/testable/GlobalTestRunner.d.ts.map +1 -1
  64. package/lib/components/editor/side-bar/testable/GlobalTestRunner.js +2 -2
  65. package/lib/components/editor/side-bar/testable/GlobalTestRunner.js.map +1 -1
  66. package/lib/components/extensions/Core_LegendStudioApplicationPlugin.d.ts.map +1 -1
  67. package/lib/components/extensions/Core_LegendStudioApplicationPlugin.js +0 -3
  68. package/lib/components/extensions/Core_LegendStudioApplicationPlugin.js.map +1 -1
  69. package/lib/components/extensions/DSL_ExternalFormat_LegendStudioApplicationPlugin.d.ts +1 -3
  70. package/lib/components/extensions/DSL_ExternalFormat_LegendStudioApplicationPlugin.d.ts.map +1 -1
  71. package/lib/components/extensions/DSL_ExternalFormat_LegendStudioApplicationPlugin.js +0 -16
  72. package/lib/components/extensions/DSL_ExternalFormat_LegendStudioApplicationPlugin.js.map +1 -1
  73. package/lib/index.css +2 -2
  74. package/lib/index.css.map +1 -1
  75. package/lib/index.d.ts +0 -1
  76. package/lib/index.d.ts.map +1 -1
  77. package/lib/index.js +0 -1
  78. package/lib/index.js.map +1 -1
  79. package/lib/package.json +1 -1
  80. package/lib/stores/LegendStudioApplicationPlugin.d.ts +0 -8
  81. package/lib/stores/LegendStudioApplicationPlugin.d.ts.map +1 -1
  82. package/lib/stores/LegendStudioBaseStore.d.ts +1 -0
  83. package/lib/stores/LegendStudioBaseStore.d.ts.map +1 -1
  84. package/lib/stores/LegendStudioBaseStore.js +7 -4
  85. package/lib/stores/LegendStudioBaseStore.js.map +1 -1
  86. package/lib/stores/editor/EditorGraphState.d.ts.map +1 -1
  87. package/lib/stores/editor/EditorGraphState.js +2 -2
  88. package/lib/stores/editor/EditorGraphState.js.map +1 -1
  89. package/lib/stores/editor/EditorSDLCState.d.ts +8 -5
  90. package/lib/stores/editor/EditorSDLCState.d.ts.map +1 -1
  91. package/lib/stores/editor/EditorSDLCState.js +25 -5
  92. package/lib/stores/editor/EditorSDLCState.js.map +1 -1
  93. package/lib/stores/editor/EditorStore.d.ts +0 -2
  94. package/lib/stores/editor/EditorStore.d.ts.map +1 -1
  95. package/lib/stores/editor/EditorStore.js +10 -15
  96. package/lib/stores/editor/EditorStore.js.map +1 -1
  97. package/lib/stores/editor/EditorTabManagerState.d.ts.map +1 -1
  98. package/lib/stores/editor/EditorTabManagerState.js +1 -1
  99. package/lib/stores/editor/EditorTabManagerState.js.map +1 -1
  100. package/lib/stores/editor/ExplorerTreeState.d.ts +5 -1
  101. package/lib/stores/editor/ExplorerTreeState.d.ts.map +1 -1
  102. package/lib/stores/editor/ExplorerTreeState.js +13 -0
  103. package/lib/stores/editor/ExplorerTreeState.js.map +1 -1
  104. package/lib/stores/editor/GraphEditGrammarModeState.d.ts +0 -3
  105. package/lib/stores/editor/GraphEditGrammarModeState.d.ts.map +1 -1
  106. package/lib/stores/editor/GraphEditGrammarModeState.js +26 -21
  107. package/lib/stores/editor/GraphEditGrammarModeState.js.map +1 -1
  108. package/lib/stores/editor/editor-state/GrammarTextEditorState.d.ts +3 -4
  109. package/lib/stores/editor/editor-state/GrammarTextEditorState.d.ts.map +1 -1
  110. package/lib/stores/editor/editor-state/GrammarTextEditorState.js +5 -111
  111. package/lib/stores/editor/editor-state/GrammarTextEditorState.js.map +1 -1
  112. package/lib/stores/editor/editor-state/element-editor-state/connection/ConnectionEditorState.d.ts +2 -4
  113. package/lib/stores/editor/editor-state/element-editor-state/connection/ConnectionEditorState.d.ts.map +1 -1
  114. package/lib/stores/editor/editor-state/element-editor-state/connection/ConnectionEditorState.js +6 -8
  115. package/lib/stores/editor/editor-state/element-editor-state/connection/ConnectionEditorState.js.map +1 -1
  116. package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.d.ts +4 -2
  117. package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.d.ts.map +1 -1
  118. package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.js +8 -4
  119. package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.js.map +1 -1
  120. package/lib/stores/editor/editor-state/element-editor-state/data/DataEditorState.d.ts +4 -7
  121. package/lib/stores/editor/editor-state/element-editor-state/data/DataEditorState.d.ts.map +1 -1
  122. package/lib/stores/editor/editor-state/element-editor-state/data/DataEditorState.js +0 -3
  123. package/lib/stores/editor/editor-state/element-editor-state/data/DataEditorState.js.map +1 -1
  124. package/lib/stores/editor/editor-state/element-editor-state/mapping/DEPRECATED__MappingTestState.d.ts +1 -0
  125. package/lib/stores/editor/editor-state/element-editor-state/mapping/DEPRECATED__MappingTestState.d.ts.map +1 -1
  126. package/lib/stores/editor/editor-state/element-editor-state/mapping/DEPRECATED__MappingTestState.js +19 -2
  127. package/lib/stores/editor/editor-state/element-editor-state/mapping/DEPRECATED__MappingTestState.js.map +1 -1
  128. package/lib/stores/editor/editor-state/element-editor-state/mapping/FlatDataInstanceSetImplementationState.js +1 -1
  129. package/lib/stores/editor/editor-state/element-editor-state/mapping/FlatDataInstanceSetImplementationState.js.map +1 -1
  130. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.d.ts.map +1 -1
  131. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.js +5 -2
  132. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.js.map +1 -1
  133. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingElementDecorator.d.ts +3 -1
  134. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingElementDecorator.d.ts.map +1 -1
  135. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingElementDecorator.js +6 -0
  136. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingElementDecorator.js.map +1 -1
  137. package/lib/stores/editor/editor-state/element-editor-state/mapping/relational/RelationalInstanceSetImplementationState.js +1 -1
  138. package/lib/stores/editor/editor-state/element-editor-state/mapping/relational/RelationalInstanceSetImplementationState.js.map +1 -1
  139. package/lib/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.d.ts +1 -0
  140. package/lib/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.d.ts.map +1 -1
  141. package/lib/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.js +23 -3
  142. package/lib/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.js.map +1 -1
  143. package/lib/stores/editor/editor-state/element-editor-state/service/ServiceRegistrationState.d.ts.map +1 -1
  144. package/lib/stores/editor/editor-state/element-editor-state/service/ServiceRegistrationState.js +4 -3
  145. package/lib/stores/editor/editor-state/element-editor-state/service/ServiceRegistrationState.js.map +1 -1
  146. package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.d.ts +3 -4
  147. package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.d.ts.map +1 -1
  148. package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.js +2 -4
  149. package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.js.map +1 -1
  150. package/lib/stores/editor/sidebar-state/ProjectOverviewState.d.ts +0 -4
  151. package/lib/stores/editor/sidebar-state/ProjectOverviewState.d.ts.map +1 -1
  152. package/lib/stores/editor/sidebar-state/ProjectOverviewState.js +0 -48
  153. package/lib/stores/editor/sidebar-state/ProjectOverviewState.js.map +1 -1
  154. package/lib/stores/editor/sidebar-state/WorkspaceUpdateConflictResolutionState.d.ts +1 -1
  155. package/lib/stores/editor/sidebar-state/WorkspaceUpdateConflictResolutionState.d.ts.map +1 -1
  156. package/lib/stores/editor/sidebar-state/WorkspaceUpdateConflictResolutionState.js +1 -4
  157. package/lib/stores/editor/sidebar-state/WorkspaceUpdateConflictResolutionState.js.map +1 -1
  158. package/lib/stores/editor/utils/ModelClassifierUtils.d.ts +2 -1
  159. package/lib/stores/editor/utils/ModelClassifierUtils.d.ts.map +1 -1
  160. package/lib/stores/editor/utils/ModelClassifierUtils.js +2 -1
  161. package/lib/stores/editor/utils/ModelClassifierUtils.js.map +1 -1
  162. package/lib/stores/editor/utils/TestableUtils.d.ts +3 -1
  163. package/lib/stores/editor/utils/TestableUtils.d.ts.map +1 -1
  164. package/lib/stores/editor/utils/TestableUtils.js +6 -0
  165. package/lib/stores/editor/utils/TestableUtils.js.map +1 -1
  166. package/lib/stores/graph-modifier/STO_Relational_GraphModifierHelper.d.ts +2 -2
  167. package/lib/stores/graph-modifier/STO_Relational_GraphModifierHelper.d.ts.map +1 -1
  168. package/lib/stores/graph-modifier/STO_Relational_GraphModifierHelper.js.map +1 -1
  169. package/lib/stores/project-view/ProjectViewerStore.d.ts.map +1 -1
  170. package/lib/stores/project-view/ProjectViewerStore.js +8 -5
  171. package/lib/stores/project-view/ProjectViewerStore.js.map +1 -1
  172. package/package.json +11 -11
  173. package/src/application/LegendStudio.tsx +2 -0
  174. package/src/components/editor/editor-group/GenerationSpecificationEditor.tsx +21 -22
  175. package/src/components/editor/editor-group/GrammarTextEditor.tsx +1 -41
  176. package/src/components/editor/editor-group/ModelImporter.tsx +13 -10
  177. package/src/components/editor/editor-group/RuntimeEditor.tsx +2 -9
  178. package/src/components/editor/editor-group/UnsupportedElementEditor.tsx +16 -10
  179. package/src/components/editor/editor-group/connection-editor/DatabaseBuilder.tsx +3 -0
  180. package/src/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.tsx +22 -23
  181. package/src/components/editor/editor-group/element-generation-editor/FileGenerationEditor.tsx +51 -83
  182. package/src/components/editor/editor-group/mapping-editor/ClassMappingEditor.tsx +23 -8
  183. package/src/components/editor/editor-group/mapping-editor/DEPRECATED__MappingTestEditor.tsx +5 -4
  184. package/src/components/editor/editor-group/mapping-editor/InstanceSetImplementationEditor.tsx +39 -29
  185. package/src/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.tsx +21 -23
  186. package/src/components/editor/editor-group/service-editor/BulkServiceRegistrationEditor.tsx +24 -55
  187. package/src/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.tsx +3 -4
  188. package/src/components/editor/editor-group/service-editor/ServicePostValidationEditor.tsx +20 -24
  189. package/src/components/editor/editor-group/service-editor/ServiceRegistrationEditor.tsx +4 -1
  190. package/src/components/editor/editor-group/uml-editor/AssociationEditor.tsx +5 -4
  191. package/src/components/editor/editor-group/uml-editor/ClassQueryBuilder.tsx +3 -3
  192. package/src/components/editor/side-bar/Explorer.tsx +40 -2
  193. package/src/components/editor/side-bar/ProjectOverview.tsx +0 -5
  194. package/src/components/editor/side-bar/testable/GlobalTestRunner.tsx +2 -4
  195. package/src/components/extensions/Core_LegendStudioApplicationPlugin.tsx +0 -8
  196. package/src/components/extensions/DSL_ExternalFormat_LegendStudioApplicationPlugin.tsx +0 -18
  197. package/src/index.ts +0 -1
  198. package/src/stores/LegendStudioApplicationPlugin.ts +0 -10
  199. package/src/stores/LegendStudioBaseStore.ts +7 -4
  200. package/src/stores/editor/EditorGraphState.ts +2 -4
  201. package/src/stores/editor/EditorSDLCState.ts +33 -4
  202. package/src/stores/editor/EditorStore.ts +24 -19
  203. package/src/stores/editor/EditorTabManagerState.ts +1 -4
  204. package/src/stores/editor/ExplorerTreeState.ts +22 -0
  205. package/src/stores/editor/GraphEditGrammarModeState.ts +49 -39
  206. package/src/stores/editor/editor-state/GrammarTextEditorState.ts +6 -145
  207. package/src/stores/editor/editor-state/element-editor-state/connection/ConnectionEditorState.ts +8 -18
  208. package/src/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.ts +17 -4
  209. package/src/stores/editor/editor-state/element-editor-state/data/DataEditorState.ts +5 -7
  210. package/src/stores/editor/editor-state/element-editor-state/mapping/DEPRECATED__MappingTestState.ts +24 -2
  211. package/src/stores/editor/editor-state/element-editor-state/mapping/FlatDataInstanceSetImplementationState.ts +1 -1
  212. package/src/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.ts +4 -1
  213. package/src/stores/editor/editor-state/element-editor-state/mapping/MappingElementDecorator.ts +13 -0
  214. package/src/stores/editor/editor-state/element-editor-state/mapping/relational/RelationalInstanceSetImplementationState.ts +1 -1
  215. package/src/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.ts +30 -7
  216. package/src/stores/editor/editor-state/element-editor-state/service/ServiceRegistrationState.ts +7 -5
  217. package/src/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.ts +4 -5
  218. package/src/stores/editor/sidebar-state/ProjectOverviewState.ts +0 -87
  219. package/src/stores/editor/sidebar-state/WorkspaceUpdateConflictResolutionState.ts +3 -7
  220. package/src/stores/editor/utils/ModelClassifierUtils.ts +3 -1
  221. package/src/stores/editor/utils/TestableUtils.ts +13 -0
  222. package/src/stores/graph-modifier/STO_Relational_GraphModifierHelper.ts +1 -2
  223. package/src/stores/project-view/ProjectViewerStore.ts +10 -8
  224. package/tsconfig.json +0 -3
  225. package/lib/components/editor/side-bar/ProjectDependantsEditor.d.ts +0 -19
  226. package/lib/components/editor/side-bar/ProjectDependantsEditor.d.ts.map +0 -1
  227. package/lib/components/editor/side-bar/ProjectDependantsEditor.js +0 -76
  228. package/lib/components/editor/side-bar/ProjectDependantsEditor.js.map +0 -1
  229. package/lib/stores/editor/EditorDepotState.d.ts +0 -25
  230. package/lib/stores/editor/EditorDepotState.d.ts.map +0 -1
  231. package/lib/stores/editor/EditorDepotState.js +0 -49
  232. package/lib/stores/editor/EditorDepotState.js.map +0 -1
  233. package/lib/stores/editor/sidebar-state/ProjectDependantEditorState.d.ts +0 -31
  234. package/lib/stores/editor/sidebar-state/ProjectDependantEditorState.d.ts.map +0 -1
  235. package/lib/stores/editor/sidebar-state/ProjectDependantEditorState.js +0 -42
  236. package/lib/stores/editor/sidebar-state/ProjectDependantEditorState.js.map +0 -1
  237. package/src/components/editor/side-bar/ProjectDependantsEditor.tsx +0 -219
  238. package/src/stores/editor/EditorDepotState.ts +0 -70
  239. package/src/stores/editor/sidebar-state/ProjectDependantEditorState.ts +0 -50
@@ -1,31 +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 } from '../EditorStore.js';
17
- import { ActionState } from '@finos/legend-shared';
18
- import type { ProjectVersionPlatformDependency } from '@finos/legend-server-depot';
19
- import type { ProjectConfiguration } from '@finos/legend-server-sdlc';
20
- import type { ProjectOverviewState } from './ProjectOverviewState.js';
21
- export declare class ProjectDependantEditorState {
22
- configState: ProjectOverviewState;
23
- editorStore: EditorStore;
24
- isReadOnly: boolean;
25
- dependants: ProjectVersionPlatformDependency[] | undefined;
26
- fetchingDependantInfoState: ActionState;
27
- constructor(configState: ProjectOverviewState, editorStore: EditorStore);
28
- get projectConfiguration(): ProjectConfiguration | undefined;
29
- setDependants(value: ProjectVersionPlatformDependency[] | undefined): void;
30
- }
31
- //# sourceMappingURL=ProjectDependantEditorState.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProjectDependantEditorState.d.ts","sourceRoot":"","sources":["../../../../src/stores/editor/sidebar-state/ProjectDependantEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,4BAA4B,CAAC;AACnF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEtE,qBAAa,2BAA2B;IACtC,WAAW,EAAE,oBAAoB,CAAC;IAClC,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,gCAAgC,EAAE,GAAG,SAAS,CAAC;IAC3D,0BAA0B,cAAwB;gBAEtC,WAAW,EAAE,oBAAoB,EAAE,WAAW,EAAE,WAAW;IAWvE,IAAI,oBAAoB,IAAI,oBAAoB,GAAG,SAAS,CAG3D;IAED,aAAa,CAAC,KAAK,EAAE,gCAAgC,EAAE,GAAG,SAAS,GAAG,IAAI;CAG3E"}
@@ -1,42 +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 { observable, makeObservable, action } from 'mobx';
17
- import { ActionState } from '@finos/legend-shared';
18
- export class ProjectDependantEditorState {
19
- configState;
20
- editorStore;
21
- isReadOnly;
22
- dependants;
23
- fetchingDependantInfoState = ActionState.create();
24
- constructor(configState, editorStore) {
25
- makeObservable(this, {
26
- dependants: observable,
27
- fetchingDependantInfoState: observable,
28
- setDependants: action,
29
- });
30
- this.configState = configState;
31
- this.editorStore = editorStore;
32
- this.isReadOnly = editorStore.isInViewerMode;
33
- }
34
- get projectConfiguration() {
35
- return this.editorStore.projectConfigurationEditorState
36
- .projectConfiguration;
37
- }
38
- setDependants(value) {
39
- this.dependants = value;
40
- }
41
- }
42
- //# sourceMappingURL=ProjectDependantEditorState.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProjectDependantEditorState.js","sourceRoot":"","sources":["../../../../src/stores/editor/sidebar-state/ProjectDependantEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAKnD,MAAM,OAAO,2BAA2B;IACtC,WAAW,CAAuB;IAClC,WAAW,CAAc;IACzB,UAAU,CAAU;IACpB,UAAU,CAAiD;IAC3D,0BAA0B,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC;IAElD,YAAY,WAAiC,EAAE,WAAwB;QACrE,cAAc,CAAC,IAAI,EAAE;YACnB,UAAU,EAAE,UAAU;YACtB,0BAA0B,EAAE,UAAU;YACtC,aAAa,EAAE,MAAM;SACtB,CAAC,CAAC;QACH,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,UAAU,GAAG,WAAW,CAAC,cAAc,CAAC;IAC/C,CAAC;IAED,IAAI,oBAAoB;QACtB,OAAO,IAAI,CAAC,WAAW,CAAC,+BAA+B;aACpD,oBAAoB,CAAC;IAC1B,CAAC;IAED,aAAa,CAAC,KAAqD;QACjE,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;IAC1B,CAAC;CACF"}
@@ -1,219 +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 { useEffect } from 'react';
18
- import { useApplicationStore } from '@finos/legend-application';
19
- import {
20
- PanelListItem,
21
- Badge,
22
- DropdownMenu,
23
- MenuContent,
24
- MenuContentItem,
25
- CaretDownIcon,
26
- PanelLoadingIndicator,
27
- PanelDivider,
28
- PanelFormSection,
29
- Panel,
30
- InfoCircleIcon,
31
- } from '@finos/legend-art';
32
- import {
33
- MASTER_SNAPSHOT_ALIAS,
34
- SNAPSHOT_VERSION_ALIAS,
35
- type ProjectVersionPlatformDependency,
36
- } from '@finos/legend-server-depot';
37
- import { generateGAVCoordinates } from '@finos/legend-storage';
38
- import { flowResult } from 'mobx';
39
- import { observer } from 'mobx-react-lite';
40
- import { PROJECT_OVERVIEW_ACTIVITY_MODE } from '../../../stores/editor/sidebar-state/ProjectOverviewState.js';
41
- import { useEditorStore } from '../EditorStoreProvider.js';
42
- import {
43
- generateViewProjectByGAVRoute,
44
- generateViewProjectRoute,
45
- generateViewVersionRoute,
46
- } from '../../../__lib__/LegendStudioNavigation.js';
47
-
48
- const ProjectDependantEditor = observer(
49
- (props: { dependant: ProjectVersionPlatformDependency }) => {
50
- const { dependant } = props;
51
- const editorStore = useEditorStore();
52
- const applicationStore = useApplicationStore();
53
- const configState = editorStore.projectConfigurationEditorState;
54
-
55
- const viewProject = (
56
- dependency: ProjectVersionPlatformDependency,
57
- ): void => {
58
- applicationStore.navigationService.navigator.visitAddress(
59
- applicationStore.navigationService.navigator.generateAddress(
60
- generateViewProjectByGAVRoute(
61
- dependency.groupId,
62
- dependency.artifactId,
63
- dependency.versionId === MASTER_SNAPSHOT_ALIAS
64
- ? SNAPSHOT_VERSION_ALIAS
65
- : dependency.versionId,
66
- ),
67
- ),
68
- );
69
- };
70
- // NOTE: This assumes that the dependant project is in the same studio instance as the current project
71
- // In the future, the studio instance may be part of the project data
72
- const viewSDLCProject = (
73
- dependency: ProjectVersionPlatformDependency,
74
- ): void => {
75
- if (dependency.projectId && dependency.versionId) {
76
- applicationStore.navigationService.navigator.visitAddress(
77
- applicationStore.navigationService.navigator.generateAddress(
78
- dependency.versionId === MASTER_SNAPSHOT_ALIAS
79
- ? generateViewProjectRoute(dependency.projectId)
80
- : generateViewVersionRoute(
81
- dependency.projectId,
82
- dependency.versionId,
83
- ),
84
- ),
85
- );
86
- }
87
- };
88
-
89
- return (
90
- <div
91
- className="project-dependency-editor"
92
- key={dependant.artifactId + dependant.groupId}
93
- >
94
- <PanelListItem className="panel__content__form__list__item--expand-width">
95
- <div className="project-dependency-editor">
96
- <div className="project-overview__dependants__label">
97
- <div className="project-overview__dependants__label__tag">
98
- {dependant.projectId ?? 'UAT-52849100'}
99
- </div>
100
- <div className="project-overview__dependants__label__name">
101
- {generateGAVCoordinates(
102
- dependant.groupId,
103
- dependant.artifactId,
104
- undefined,
105
- )}
106
- <Badge
107
- className="badge--right"
108
- tooltip={`Depends on parent project ${configState.currentProjectConfiguration.projectId} version ${dependant.dependency.versionId}`}
109
- title={dependant.dependency.versionId}
110
- />
111
- </div>
112
- </div>
113
- </div>
114
- <DropdownMenu
115
- className="project-dependency-editor__visit-project-btn__dropdown-trigger btn--medium"
116
- content={
117
- <MenuContent>
118
- <MenuContentItem
119
- onClick={() => viewProject(dependant)}
120
- title="View project"
121
- >
122
- Project
123
- </MenuContentItem>
124
-
125
- <MenuContentItem
126
- title="View SDLC project"
127
- disabled={!dependant.projectId || !dependant.versionId}
128
- onClick={() => viewSDLCProject(dependant)}
129
- >
130
- SDLC project
131
- </MenuContentItem>
132
- </MenuContent>
133
- }
134
- >
135
- Go to...
136
- <CaretDownIcon title="Show more options..." />
137
- </DropdownMenu>
138
- </PanelListItem>
139
- </div>
140
- );
141
- },
142
- );
143
-
144
- export const ProjectDependantsEditor = observer(() => {
145
- const editorStore = useEditorStore();
146
- const applicationStore = useApplicationStore();
147
- const projectOverviewState = editorStore.projectOverviewState;
148
- const dependantEditorState = projectOverviewState.projectDependantEditorState;
149
- const dependants = dependantEditorState.dependants;
150
- const isLoading =
151
- dependantEditorState.fetchingDependantInfoState.isInProgress;
152
-
153
- useEffect(() => {
154
- flowResult(projectOverviewState.fetchDependants()).catch(
155
- applicationStore.alertUnhandledError,
156
- );
157
- }, [applicationStore, projectOverviewState]);
158
-
159
- return (
160
- <Panel className="side-bar__panel project-overview__panel">
161
- <div className="panel__header">
162
- <div className="panel__header__title">
163
- <div className="panel__header__title__content">
164
- {PROJECT_OVERVIEW_ACTIVITY_MODE.DEPENDANTS}
165
- </div>
166
- <div
167
- className="side-bar__panel__title__info"
168
- title={`List of projects that depend on current project (${projectOverviewState.sdlcState.currentProject?.projectId})`}
169
- >
170
- <InfoCircleIcon />
171
- </div>
172
- </div>
173
- <div className="side-bar__panel__header__changes-count">
174
- {projectOverviewState.projectDependantEditorState.dependants
175
- ?.length ?? 0}
176
- </div>
177
- </div>
178
-
179
- <PanelFormSection>
180
- <div className="panel__content__lists">
181
- <PanelLoadingIndicator isLoading={isLoading} />
182
- {isLoading && (
183
- <div className="project-dependency-editor__progress-msg">
184
- Fetching dependant versions
185
- </div>
186
- )}
187
- {dependants?.map((dependant: ProjectVersionPlatformDependency) => (
188
- <ProjectDependantEditor
189
- key={dependant.groupId + dependant.artifactId}
190
- dependant={dependant}
191
- />
192
- ))}
193
- <PanelDivider />
194
- <button
195
- className="btn btn--dark"
196
- tabIndex={-1}
197
- // FIXME: @xannem we must modularize this instead of depending on an extension-specific logic like this
198
- // onClick={() => {
199
- // applicationStore.navigationService.navigator.visitAddress(
200
- // generateExtensionUrlPattern(
201
- // generateDependencyDashboardRoute(
202
- // configState.currentProjectConfiguration.projectId,
203
- // configState.currentProjectConfiguration.groupId,
204
- // configState.currentProjectConfiguration.artifactId,
205
- // undefined,
206
- // undefined,
207
- // ),
208
- // ),
209
- // );
210
- // }}
211
- title="Open dependants dashboard"
212
- >
213
- Open Dependants Dashboard
214
- </button>
215
- </div>
216
- </PanelFormSection>
217
- </Panel>
218
- );
219
- });
@@ -1,70 +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 { flow, makeObservable, observable } from 'mobx';
18
- import type { EditorStore } from './EditorStore.js';
19
- import {
20
- guaranteeNonNullable,
21
- type GeneratorFn,
22
- LogEvent,
23
- assertErrorThrown,
24
- type PlainObject,
25
- } from '@finos/legend-shared';
26
- import { StoreProjectData } from '@finos/legend-server-depot';
27
- import { LEGEND_STUDIO_APP_EVENT } from '../../__lib__/LegendStudioEvent.js';
28
-
29
- export class EditorDepotState {
30
- readonly editorStore: EditorStore;
31
-
32
- projectVersions: string[] = [];
33
- isFetchingProjectVersions = false;
34
-
35
- constructor(editorStore: EditorStore) {
36
- makeObservable(this, {
37
- projectVersions: observable,
38
- isFetchingProjectVersions: observable,
39
- fetchProjectVersions: flow,
40
- });
41
-
42
- this.editorStore = editorStore;
43
- }
44
-
45
- *fetchProjectVersions(): GeneratorFn<void> {
46
- try {
47
- this.isFetchingProjectVersions = true;
48
- // NOTE: this is not necessary. groupId and artifactId could be gotten from this.editorStore.projectConfigurationEditorState
49
- const currentProject = (
50
- (yield this.editorStore.depotServerClient.getProjectById(
51
- this.editorStore.sdlcState.activeProject.projectId,
52
- )) as PlainObject<StoreProjectData>[]
53
- ).map((v) => StoreProjectData.serialization.fromJson(v))[0];
54
- this.projectVersions =
55
- (yield this.editorStore.depotServerClient.getVersions(
56
- guaranteeNonNullable(currentProject).groupId,
57
- guaranteeNonNullable(currentProject).artifactId,
58
- true,
59
- )) as string[];
60
- } catch (error) {
61
- assertErrorThrown(error);
62
- this.editorStore.applicationStore.logService.error(
63
- LogEvent.create(LEGEND_STUDIO_APP_EVENT.DEPOT_MANAGER_FAILURE),
64
- error,
65
- );
66
- } finally {
67
- this.isFetchingProjectVersions = false;
68
- }
69
- }
70
- }
@@ -1,50 +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 type { EditorStore } from '../EditorStore.js';
18
- import { observable, makeObservable, action } from 'mobx';
19
- import { ActionState } from '@finos/legend-shared';
20
- import type { ProjectVersionPlatformDependency } from '@finos/legend-server-depot';
21
- import type { ProjectConfiguration } from '@finos/legend-server-sdlc';
22
- import type { ProjectOverviewState } from './ProjectOverviewState.js';
23
-
24
- export class ProjectDependantEditorState {
25
- configState: ProjectOverviewState;
26
- editorStore: EditorStore;
27
- isReadOnly: boolean;
28
- dependants: ProjectVersionPlatformDependency[] | undefined;
29
- fetchingDependantInfoState = ActionState.create();
30
-
31
- constructor(configState: ProjectOverviewState, editorStore: EditorStore) {
32
- makeObservable(this, {
33
- dependants: observable,
34
- fetchingDependantInfoState: observable,
35
- setDependants: action,
36
- });
37
- this.configState = configState;
38
- this.editorStore = editorStore;
39
- this.isReadOnly = editorStore.isInViewerMode;
40
- }
41
-
42
- get projectConfiguration(): ProjectConfiguration | undefined {
43
- return this.editorStore.projectConfigurationEditorState
44
- .projectConfiguration;
45
- }
46
-
47
- setDependants(value: ProjectVersionPlatformDependency[] | undefined): void {
48
- this.dependants = value;
49
- }
50
- }