@finos/legend-application-pure-ide 6.2.14

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 (269) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +3 -0
  3. package/lib/application/LegendPureIDE.d.ts +26 -0
  4. package/lib/application/LegendPureIDE.d.ts.map +1 -0
  5. package/lib/application/LegendPureIDE.js +43 -0
  6. package/lib/application/LegendPureIDE.js.map +1 -0
  7. package/lib/application/LegendPureIDEApplicationConfig.d.ts +28 -0
  8. package/lib/application/LegendPureIDEApplicationConfig.d.ts.map +1 -0
  9. package/lib/application/LegendPureIDEApplicationConfig.js +30 -0
  10. package/lib/application/LegendPureIDEApplicationConfig.js.map +1 -0
  11. package/lib/application/LegendPureIDEPluginManager.d.ts +32 -0
  12. package/lib/application/LegendPureIDEPluginManager.d.ts.map +1 -0
  13. package/lib/application/LegendPureIDEPluginManager.js +46 -0
  14. package/lib/application/LegendPureIDEPluginManager.js.map +1 -0
  15. package/lib/components/Core_LegendPureIDEApplicationPlugin.d.ts +23 -0
  16. package/lib/components/Core_LegendPureIDEApplicationPlugin.d.ts.map +1 -0
  17. package/lib/components/Core_LegendPureIDEApplicationPlugin.js +29 -0
  18. package/lib/components/Core_LegendPureIDEApplicationPlugin.js.map +1 -0
  19. package/lib/components/LegendPureIDEApplication.d.ts +18 -0
  20. package/lib/components/LegendPureIDEApplication.d.ts.map +1 -0
  21. package/lib/components/LegendPureIDEApplication.js +21 -0
  22. package/lib/components/LegendPureIDEApplication.js.map +1 -0
  23. package/lib/components/LegendPureIDEBaseStoreProvider.d.ts +23 -0
  24. package/lib/components/LegendPureIDEBaseStoreProvider.d.ts.map +1 -0
  25. package/lib/components/LegendPureIDEBaseStoreProvider.js +30 -0
  26. package/lib/components/LegendPureIDEBaseStoreProvider.js.map +1 -0
  27. package/lib/components/editor/ActivityBar.d.ts +20 -0
  28. package/lib/components/editor/ActivityBar.d.ts.map +1 -0
  29. package/lib/components/editor/ActivityBar.js +41 -0
  30. package/lib/components/editor/ActivityBar.js.map +1 -0
  31. package/lib/components/editor/Editor.d.ts +18 -0
  32. package/lib/components/editor/Editor.d.ts.map +1 -0
  33. package/lib/components/editor/Editor.js +80 -0
  34. package/lib/components/editor/Editor.js.map +1 -0
  35. package/lib/components/editor/EditorStoreProvider.d.ts +22 -0
  36. package/lib/components/editor/EditorStoreProvider.d.ts.map +1 -0
  37. package/lib/components/editor/EditorStoreProvider.js +32 -0
  38. package/lib/components/editor/EditorStoreProvider.js.map +1 -0
  39. package/lib/components/editor/StatusBar.d.ts +22 -0
  40. package/lib/components/editor/StatusBar.d.ts.map +1 -0
  41. package/lib/components/editor/StatusBar.js +39 -0
  42. package/lib/components/editor/StatusBar.js.map +1 -0
  43. package/lib/components/editor/aux-panel/AuxiliaryPanel.d.ts +20 -0
  44. package/lib/components/editor/aux-panel/AuxiliaryPanel.d.ts.map +1 -0
  45. package/lib/components/editor/aux-panel/AuxiliaryPanel.js +65 -0
  46. package/lib/components/editor/aux-panel/AuxiliaryPanel.js.map +1 -0
  47. package/lib/components/editor/aux-panel/ConsolePanel.d.ts +20 -0
  48. package/lib/components/editor/aux-panel/ConsolePanel.d.ts.map +1 -0
  49. package/lib/components/editor/aux-panel/ConsolePanel.js +24 -0
  50. package/lib/components/editor/aux-panel/ConsolePanel.js.map +1 -0
  51. package/lib/components/editor/aux-panel/SearchPanel.d.ts +20 -0
  52. package/lib/components/editor/aux-panel/SearchPanel.d.ts.map +1 -0
  53. package/lib/components/editor/aux-panel/SearchPanel.js +90 -0
  54. package/lib/components/editor/aux-panel/SearchPanel.js.map +1 -0
  55. package/lib/components/editor/aux-panel/TestRunnerPanel.d.ts +20 -0
  56. package/lib/components/editor/aux-panel/TestRunnerPanel.d.ts.map +1 -0
  57. package/lib/components/editor/aux-panel/TestRunnerPanel.js +151 -0
  58. package/lib/components/editor/aux-panel/TestRunnerPanel.js.map +1 -0
  59. package/lib/components/editor/command-center/CreateNewDirectoryCommand.d.ts +20 -0
  60. package/lib/components/editor/command-center/CreateNewDirectoryCommand.d.ts.map +1 -0
  61. package/lib/components/editor/command-center/CreateNewDirectoryCommand.js +48 -0
  62. package/lib/components/editor/command-center/CreateNewDirectoryCommand.js.map +1 -0
  63. package/lib/components/editor/command-center/CreateNewFileCommand.d.ts +20 -0
  64. package/lib/components/editor/command-center/CreateNewFileCommand.d.ts.map +1 -0
  65. package/lib/components/editor/command-center/CreateNewFileCommand.js +48 -0
  66. package/lib/components/editor/command-center/CreateNewFileCommand.js.map +1 -0
  67. package/lib/components/editor/command-center/FileSearchCommand.d.ts +20 -0
  68. package/lib/components/editor/command-center/FileSearchCommand.d.ts.map +1 -0
  69. package/lib/components/editor/command-center/FileSearchCommand.js +60 -0
  70. package/lib/components/editor/command-center/FileSearchCommand.js.map +1 -0
  71. package/lib/components/editor/command-center/TextSearchCommand.d.ts +20 -0
  72. package/lib/components/editor/command-center/TextSearchCommand.d.ts.map +1 -0
  73. package/lib/components/editor/command-center/TextSearchCommand.js +50 -0
  74. package/lib/components/editor/command-center/TextSearchCommand.js.map +1 -0
  75. package/lib/components/editor/edit-panel/DiagramEditor.d.ts +23 -0
  76. package/lib/components/editor/edit-panel/DiagramEditor.d.ts.map +1 -0
  77. package/lib/components/editor/edit-panel/DiagramEditor.js +71 -0
  78. package/lib/components/editor/edit-panel/DiagramEditor.js.map +1 -0
  79. package/lib/components/editor/edit-panel/EditPanel.d.ts +21 -0
  80. package/lib/components/editor/edit-panel/EditPanel.d.ts.map +1 -0
  81. package/lib/components/editor/edit-panel/EditPanel.js +55 -0
  82. package/lib/components/editor/edit-panel/EditPanel.js.map +1 -0
  83. package/lib/components/editor/edit-panel/FileEditor.d.ts +23 -0
  84. package/lib/components/editor/edit-panel/FileEditor.d.ts.map +1 -0
  85. package/lib/components/editor/edit-panel/FileEditor.js +114 -0
  86. package/lib/components/editor/edit-panel/FileEditor.js.map +1 -0
  87. package/lib/components/editor/shared/ConceptIconUtils.d.ts +17 -0
  88. package/lib/components/editor/shared/ConceptIconUtils.d.ts.map +1 -0
  89. package/lib/components/editor/shared/ConceptIconUtils.js +50 -0
  90. package/lib/components/editor/shared/ConceptIconUtils.js.map +1 -0
  91. package/lib/components/editor/side-bar/ConceptTreeExplorer.d.ts +24 -0
  92. package/lib/components/editor/side-bar/ConceptTreeExplorer.d.ts.map +1 -0
  93. package/lib/components/editor/side-bar/ConceptTreeExplorer.js +165 -0
  94. package/lib/components/editor/side-bar/ConceptTreeExplorer.js.map +1 -0
  95. package/lib/components/editor/side-bar/DirectoryTreeExplorer.d.ts +20 -0
  96. package/lib/components/editor/side-bar/DirectoryTreeExplorer.d.ts.map +1 -0
  97. package/lib/components/editor/side-bar/DirectoryTreeExplorer.js +142 -0
  98. package/lib/components/editor/side-bar/DirectoryTreeExplorer.js.map +1 -0
  99. package/lib/components/editor/side-bar/SideBar.d.ts +23 -0
  100. package/lib/components/editor/side-bar/SideBar.d.ts.map +1 -0
  101. package/lib/components/editor/side-bar/SideBar.js +40 -0
  102. package/lib/components/editor/side-bar/SideBar.js.map +1 -0
  103. package/lib/extensions.css +17 -0
  104. package/lib/extensions.css.map +1 -0
  105. package/lib/index.css +17 -0
  106. package/lib/index.css.map +1 -0
  107. package/lib/index.d.ts +22 -0
  108. package/lib/index.d.ts.map +1 -0
  109. package/lib/index.js +39 -0
  110. package/lib/index.js.map +1 -0
  111. package/lib/package.json +85 -0
  112. package/lib/server/PureServerClient.d.ts +55 -0
  113. package/lib/server/PureServerClient.d.ts.map +1 -0
  114. package/lib/server/PureServerClient.js +120 -0
  115. package/lib/server/PureServerClient.js.map +1 -0
  116. package/lib/server/models/Command.d.ts +24 -0
  117. package/lib/server/models/Command.d.ts.map +1 -0
  118. package/lib/server/models/Command.js +35 -0
  119. package/lib/server/models/Command.js.map +1 -0
  120. package/lib/server/models/ConceptTree.d.ts +76 -0
  121. package/lib/server/models/ConceptTree.d.ts.map +1 -0
  122. package/lib/server/models/ConceptTree.js +116 -0
  123. package/lib/server/models/ConceptTree.js.map +1 -0
  124. package/lib/server/models/DiagramInfo.d.ts +144 -0
  125. package/lib/server/models/DiagramInfo.d.ts.map +1 -0
  126. package/lib/server/models/DiagramInfo.js +478 -0
  127. package/lib/server/models/DiagramInfo.js.map +1 -0
  128. package/lib/server/models/DirectoryTree.d.ts +37 -0
  129. package/lib/server/models/DirectoryTree.d.ts.map +1 -0
  130. package/lib/server/models/DirectoryTree.js +70 -0
  131. package/lib/server/models/DirectoryTree.js.map +1 -0
  132. package/lib/server/models/Execution.d.ts +100 -0
  133. package/lib/server/models/Execution.d.ts.map +1 -0
  134. package/lib/server/models/Execution.js +183 -0
  135. package/lib/server/models/Execution.js.map +1 -0
  136. package/lib/server/models/Initialization.d.ts +49 -0
  137. package/lib/server/models/Initialization.d.ts.map +1 -0
  138. package/lib/server/models/Initialization.js +64 -0
  139. package/lib/server/models/Initialization.js.map +1 -0
  140. package/lib/server/models/PureFile.d.ts +34 -0
  141. package/lib/server/models/PureFile.d.ts.map +1 -0
  142. package/lib/server/models/PureFile.js +56 -0
  143. package/lib/server/models/PureFile.js.map +1 -0
  144. package/lib/server/models/SearchEntry.d.ts +36 -0
  145. package/lib/server/models/SearchEntry.d.ts.map +1 -0
  146. package/lib/server/models/SearchEntry.js +63 -0
  147. package/lib/server/models/SearchEntry.js.map +1 -0
  148. package/lib/server/models/SourceInformation.d.ts +25 -0
  149. package/lib/server/models/SourceInformation.d.ts.map +1 -0
  150. package/lib/server/models/SourceInformation.js +35 -0
  151. package/lib/server/models/SourceInformation.js.map +1 -0
  152. package/lib/server/models/Test.d.ts +57 -0
  153. package/lib/server/models/Test.d.ts.map +1 -0
  154. package/lib/server/models/Test.js +92 -0
  155. package/lib/server/models/Test.js.map +1 -0
  156. package/lib/server/models/Usage.d.ts +31 -0
  157. package/lib/server/models/Usage.d.ts.map +1 -0
  158. package/lib/server/models/Usage.js +36 -0
  159. package/lib/server/models/Usage.js.map +1 -0
  160. package/lib/stores/ConceptTreeState.d.ts +34 -0
  161. package/lib/stores/ConceptTreeState.d.ts.map +1 -0
  162. package/lib/stores/ConceptTreeState.js +117 -0
  163. package/lib/stores/ConceptTreeState.js.map +1 -0
  164. package/lib/stores/DiagramEditorState.d.ts +40 -0
  165. package/lib/stores/DiagramEditorState.d.ts.map +1 -0
  166. package/lib/stores/DiagramEditorState.js +90 -0
  167. package/lib/stores/DiagramEditorState.js.map +1 -0
  168. package/lib/stores/DirectoryTreeState.d.ts +35 -0
  169. package/lib/stores/DirectoryTreeState.d.ts.map +1 -0
  170. package/lib/stores/DirectoryTreeState.js +119 -0
  171. package/lib/stores/DirectoryTreeState.js.map +1 -0
  172. package/lib/stores/EditorConfig.d.ts +25 -0
  173. package/lib/stores/EditorConfig.d.ts.map +1 -0
  174. package/lib/stores/EditorConfig.js +27 -0
  175. package/lib/stores/EditorConfig.js.map +1 -0
  176. package/lib/stores/EditorStore.d.ts +102 -0
  177. package/lib/stores/EditorStore.d.ts.map +1 -0
  178. package/lib/stores/EditorStore.js +761 -0
  179. package/lib/stores/EditorStore.js.map +1 -0
  180. package/lib/stores/EditorTabManagerState.d.ts +31 -0
  181. package/lib/stores/EditorTabManagerState.d.ts.map +1 -0
  182. package/lib/stores/EditorTabManagerState.js +62 -0
  183. package/lib/stores/EditorTabManagerState.js.map +1 -0
  184. package/lib/stores/FileEditorState.d.ts +37 -0
  185. package/lib/stores/FileEditorState.d.ts.map +1 -0
  186. package/lib/stores/FileEditorState.js +99 -0
  187. package/lib/stores/FileEditorState.js.map +1 -0
  188. package/lib/stores/LegendPureIDEApplicationPlugin.d.ts +26 -0
  189. package/lib/stores/LegendPureIDEApplicationPlugin.d.ts.map +1 -0
  190. package/lib/stores/LegendPureIDEApplicationPlugin.js +27 -0
  191. package/lib/stores/LegendPureIDEApplicationPlugin.js.map +1 -0
  192. package/lib/stores/LegendPureIDEBaseStore.d.ts +25 -0
  193. package/lib/stores/LegendPureIDEBaseStore.d.ts.map +1 -0
  194. package/lib/stores/LegendPureIDEBaseStore.js +25 -0
  195. package/lib/stores/LegendPureIDEBaseStore.js.map +1 -0
  196. package/lib/stores/LegendPureIDECommand.d.ts +32 -0
  197. package/lib/stores/LegendPureIDECommand.d.ts.map +1 -0
  198. package/lib/stores/LegendPureIDECommand.js +82 -0
  199. package/lib/stores/LegendPureIDECommand.js.map +1 -0
  200. package/lib/stores/SearchCommandState.d.ts +28 -0
  201. package/lib/stores/SearchCommandState.d.ts.map +1 -0
  202. package/lib/stores/SearchCommandState.js +53 -0
  203. package/lib/stores/SearchCommandState.js.map +1 -0
  204. package/lib/stores/SearchResultState.d.ts +43 -0
  205. package/lib/stores/SearchResultState.d.ts.map +1 -0
  206. package/lib/stores/SearchResultState.js +92 -0
  207. package/lib/stores/SearchResultState.js.map +1 -0
  208. package/lib/stores/TestRunnerState.d.ts +87 -0
  209. package/lib/stores/TestRunnerState.d.ts.map +1 -0
  210. package/lib/stores/TestRunnerState.js +336 -0
  211. package/lib/stores/TestRunnerState.js.map +1 -0
  212. package/lib/stores/TreeState.d.ts +42 -0
  213. package/lib/stores/TreeState.d.ts.map +1 -0
  214. package/lib/stores/TreeState.js +139 -0
  215. package/lib/stores/TreeState.js.map +1 -0
  216. package/package.json +85 -0
  217. package/src/application/LegendPureIDE.tsx +73 -0
  218. package/src/application/LegendPureIDEApplicationConfig.ts +58 -0
  219. package/src/application/LegendPureIDEPluginManager.ts +67 -0
  220. package/src/components/Core_LegendPureIDEApplicationPlugin.tsx +37 -0
  221. package/src/components/LegendPureIDEApplication.tsx +27 -0
  222. package/src/components/LegendPureIDEBaseStoreProvider.tsx +57 -0
  223. package/src/components/editor/ActivityBar.tsx +74 -0
  224. package/src/components/editor/Editor.tsx +180 -0
  225. package/src/components/editor/EditorStoreProvider.tsx +57 -0
  226. package/src/components/editor/StatusBar.tsx +95 -0
  227. package/src/components/editor/aux-panel/AuxiliaryPanel.tsx +155 -0
  228. package/src/components/editor/aux-panel/ConsolePanel.tsx +49 -0
  229. package/src/components/editor/aux-panel/SearchPanel.tsx +421 -0
  230. package/src/components/editor/aux-panel/TestRunnerPanel.tsx +455 -0
  231. package/src/components/editor/command-center/CreateNewDirectoryCommand.tsx +86 -0
  232. package/src/components/editor/command-center/CreateNewFileCommand.tsx +84 -0
  233. package/src/components/editor/command-center/FileSearchCommand.tsx +112 -0
  234. package/src/components/editor/command-center/TextSearchCommand.tsx +103 -0
  235. package/src/components/editor/edit-panel/DiagramEditor.tsx +108 -0
  236. package/src/components/editor/edit-panel/EditPanel.tsx +114 -0
  237. package/src/components/editor/edit-panel/FileEditor.tsx +156 -0
  238. package/src/components/editor/shared/ConceptIconUtils.tsx +78 -0
  239. package/src/components/editor/side-bar/ConceptTreeExplorer.tsx +401 -0
  240. package/src/components/editor/side-bar/DirectoryTreeExplorer.tsx +366 -0
  241. package/src/components/editor/side-bar/SideBar.tsx +51 -0
  242. package/src/index.tsx +46 -0
  243. package/src/server/PureServerClient.ts +299 -0
  244. package/src/server/models/Command.ts +40 -0
  245. package/src/server/models/ConceptTree.ts +152 -0
  246. package/src/server/models/DiagramInfo.ts +793 -0
  247. package/src/server/models/DirectoryTree.ts +100 -0
  248. package/src/server/models/Execution.ts +223 -0
  249. package/src/server/models/Initialization.ts +92 -0
  250. package/src/server/models/PureFile.ts +76 -0
  251. package/src/server/models/SearchEntry.ts +85 -0
  252. package/src/server/models/SourceInformation.ts +37 -0
  253. package/src/server/models/Test.ts +125 -0
  254. package/src/server/models/Usage.ts +49 -0
  255. package/src/stores/ConceptTreeState.ts +156 -0
  256. package/src/stores/DiagramEditorState.ts +150 -0
  257. package/src/stores/DirectoryTreeState.ts +168 -0
  258. package/src/stores/EditorConfig.ts +26 -0
  259. package/src/stores/EditorStore.ts +1087 -0
  260. package/src/stores/EditorTabManagerState.ts +74 -0
  261. package/src/stores/FileEditorState.ts +148 -0
  262. package/src/stores/LegendPureIDEApplicationPlugin.ts +30 -0
  263. package/src/stores/LegendPureIDEBaseStore.ts +36 -0
  264. package/src/stores/LegendPureIDECommand.ts +84 -0
  265. package/src/stores/SearchCommandState.ts +61 -0
  266. package/src/stores/SearchResultState.ts +131 -0
  267. package/src/stores/TestRunnerState.ts +470 -0
  268. package/src/stores/TreeState.ts +179 -0
  269. package/tsconfig.json +98 -0
@@ -0,0 +1,35 @@
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 { createModelSchema, primitive } from 'serializr';
17
+ export class SourceInformation {
18
+ source;
19
+ line;
20
+ column;
21
+ startLine;
22
+ startColumn;
23
+ endLine;
24
+ endColumn;
25
+ }
26
+ createModelSchema(SourceInformation, {
27
+ column: primitive(),
28
+ endLine: primitive(),
29
+ endColumn: primitive(),
30
+ line: primitive(),
31
+ source: primitive(),
32
+ startLine: primitive(),
33
+ startColumn: primitive(),
34
+ });
35
+ //# sourceMappingURL=SourceInformation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SourceInformation.js","sourceRoot":"","sources":["../../../src/server/models/SourceInformation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEzD,MAAM,OAAO,iBAAiB;IAC5B,MAAM,CAAU;IAChB,IAAI,CAAU;IACd,MAAM,CAAU;IAChB,SAAS,CAAU;IACnB,WAAW,CAAU;IACrB,OAAO,CAAU;IACjB,SAAS,CAAU;CACpB;AAED,iBAAiB,CAAC,iBAAiB,EAAE;IACnC,MAAM,EAAE,SAAS,EAAE;IACnB,OAAO,EAAE,SAAS,EAAE;IACpB,SAAS,EAAE,SAAS,EAAE;IACtB,IAAI,EAAE,SAAS,EAAE;IACjB,MAAM,EAAE,SAAS,EAAE;IACnB,SAAS,EAAE,SAAS,EAAE;IACtB,WAAW,EAAE,SAAS,EAAE;CACzB,CAAC,CAAC"}
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export declare enum TestResultStatus {
17
+ PASSED = "Success",
18
+ FAILED = "AssertFail",
19
+ ERROR = "Error",
20
+ NOT_RUN = "notRan"
21
+ }
22
+ export declare abstract class TestResult {
23
+ status: string;
24
+ test: string[];
25
+ }
26
+ export declare class TestSuccessResult extends TestResult {
27
+ status: string;
28
+ test: string[];
29
+ }
30
+ export declare class TestFailureResultError {
31
+ text: string;
32
+ RO: boolean;
33
+ line: number;
34
+ column: number;
35
+ source: string;
36
+ error: boolean;
37
+ }
38
+ export declare class TestFailureResult extends TestResult {
39
+ status: string;
40
+ test: string[];
41
+ error: TestFailureResultError;
42
+ }
43
+ export declare class AbstractTestRunnerCheckResult {
44
+ }
45
+ export declare class TestRunnerCheckResult extends AbstractTestRunnerCheckResult {
46
+ finished: boolean;
47
+ tests: TestResult[];
48
+ }
49
+ export declare class TestRunnerCheckError extends AbstractTestRunnerCheckResult {
50
+ error: boolean;
51
+ text: string;
52
+ }
53
+ export declare const deserializeTestRunnerCheckResult: (value: Record<PropertyKey, unknown>) => AbstractTestRunnerCheckResult;
54
+ export interface TestRunnerCancelResult {
55
+ text: string;
56
+ }
57
+ //# sourceMappingURL=Test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Test.d.ts","sourceRoot":"","sources":["../../../src/server/models/Test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAYH,oBAAY,gBAAgB;IAE1B,MAAM,YAAY;IAClB,MAAM,eAAe;IACrB,KAAK,UAAU;IACf,OAAO,WAAW;CACnB;AAED,8BAAsB,UAAU;IAG9B,MAAM,EAAG,MAAM,CAAC;IAChB,IAAI,EAAG,MAAM,EAAE,CAAC;CACjB;AAED,qBAAa,iBAAkB,SAAQ,UAAU;IACvC,MAAM,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,EAAE,CAAM;CAC9B;AAOD,qBAAa,sBAAsB;IACjC,IAAI,EAAG,MAAM,CAAC;IACd,EAAE,EAAG,OAAO,CAAC;IACb,IAAI,EAAG,MAAM,CAAC;IACd,MAAM,EAAG,MAAM,CAAC;IAChB,MAAM,EAAG,MAAM,CAAC;IAChB,KAAK,EAAG,OAAO,CAAC;CACjB;AAWD,qBAAa,iBAAkB,SAAQ,UAAU;IACvC,MAAM,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,EAAE,CAAM;IAC7B,KAAK,EAAG,sBAAsB,CAAC;CAChC;AAQD,qBAAa,6BAA6B;CAAG;AAE7C,qBAAa,qBAAsB,SAAQ,6BAA6B;IACtE,QAAQ,EAAG,OAAO,CAAC;IACnB,KAAK,EAAE,UAAU,EAAE,CAAM;CAC1B;AAiBD,qBAAa,oBAAqB,SAAQ,6BAA6B;IACrE,KAAK,EAAG,OAAO,CAAC;IAChB,IAAI,EAAG,MAAM,CAAC;CACf;AAOD,eAAO,MAAM,gCAAgC,UACpC,OAAO,WAAW,EAAE,OAAO,CAAC,KAClC,6BAKF,CAAC;AAEF,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -0,0 +1,92 @@
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 { createModelSchema, custom, deserialize, list, object, primitive, SKIP, } from 'serializr';
17
+ export var TestResultStatus;
18
+ (function (TestResultStatus) {
19
+ // PASSED = 'passed',
20
+ TestResultStatus["PASSED"] = "Success";
21
+ TestResultStatus["FAILED"] = "AssertFail";
22
+ TestResultStatus["ERROR"] = "Error";
23
+ TestResultStatus["NOT_RUN"] = "notRan";
24
+ })(TestResultStatus = TestResultStatus || (TestResultStatus = {}));
25
+ export class TestResult {
26
+ // console!: string;
27
+ // compiler!: string;
28
+ status;
29
+ test;
30
+ }
31
+ export class TestSuccessResult extends TestResult {
32
+ test = [];
33
+ }
34
+ createModelSchema(TestSuccessResult, {
35
+ status: primitive(),
36
+ test: list(primitive()),
37
+ });
38
+ export class TestFailureResultError {
39
+ text;
40
+ RO;
41
+ line;
42
+ column;
43
+ source;
44
+ error;
45
+ }
46
+ createModelSchema(TestFailureResultError, {
47
+ text: primitive(),
48
+ RO: primitive(),
49
+ line: primitive(),
50
+ column: primitive(),
51
+ source: primitive(),
52
+ error: primitive(),
53
+ });
54
+ export class TestFailureResult extends TestResult {
55
+ test = [];
56
+ error;
57
+ }
58
+ createModelSchema(TestFailureResult, {
59
+ status: primitive(),
60
+ test: list(primitive()),
61
+ error: object(TestFailureResultError),
62
+ });
63
+ export class AbstractTestRunnerCheckResult {
64
+ }
65
+ export class TestRunnerCheckResult extends AbstractTestRunnerCheckResult {
66
+ finished;
67
+ tests = [];
68
+ }
69
+ createModelSchema(TestRunnerCheckResult, {
70
+ finished: primitive(),
71
+ tests: list(custom(() => SKIP, (value) => {
72
+ if (value.error) {
73
+ return deserialize(TestFailureResult, value);
74
+ }
75
+ return deserialize(TestSuccessResult, value);
76
+ })),
77
+ });
78
+ export class TestRunnerCheckError extends AbstractTestRunnerCheckResult {
79
+ error;
80
+ text;
81
+ }
82
+ createModelSchema(TestRunnerCheckError, {
83
+ error: primitive(),
84
+ text: primitive(),
85
+ });
86
+ export const deserializeTestRunnerCheckResult = (value) => {
87
+ if (value.error) {
88
+ return deserialize(TestRunnerCheckError, value);
89
+ }
90
+ return deserialize(TestRunnerCheckResult, value);
91
+ };
92
+ //# sourceMappingURL=Test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Test.js","sourceRoot":"","sources":["../../../src/server/models/Test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,MAAM,EACN,WAAW,EACX,IAAI,EACJ,MAAM,EACN,SAAS,EACT,IAAI,GACL,MAAM,WAAW,CAAC;AAEnB,MAAM,CAAN,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC1B,qBAAqB;IACrB,sCAAkB,CAAA;IAClB,yCAAqB,CAAA;IACrB,mCAAe,CAAA;IACf,sCAAkB,CAAA;AACpB,CAAC,EANW,gBAAgB,GAAhB,gBAAgB,KAAhB,gBAAgB,QAM3B;AAED,MAAM,OAAgB,UAAU;IAC9B,oBAAoB;IACpB,qBAAqB;IACrB,MAAM,CAAU;IAChB,IAAI,CAAY;CACjB;AAED,MAAM,OAAO,iBAAkB,SAAQ,UAAU;IAEtC,IAAI,GAAa,EAAE,CAAC;CAC9B;AAED,iBAAiB,CAAC,iBAAiB,EAAE;IACnC,MAAM,EAAE,SAAS,EAAE;IACnB,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC;CACxB,CAAC,CAAC;AAEH,MAAM,OAAO,sBAAsB;IACjC,IAAI,C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IAClB,IAAI,EAAE,SAAS,EAAE;CAClB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAC9C,KAAmC,EACJ,EAAE;IACjC,IAAI,KAAK,CAAC,KAAK,EAAE;QACf,OAAO,WAAW,CAAC,oBAAoB,EAAE,KAAK,CAAC,CAAC;KACjD;IACD,OAAO,WAAW,CAAC,qBAAqB,EAAE,KAAK,CAAC,CAAC;AACnD,CAAC,CAAC"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export interface UsageConcept {
17
+ path: string;
18
+ owner?: string;
19
+ type?: string;
20
+ }
21
+ export declare const getUsageConceptLabel: (usageConcept: UsageConcept) => string;
22
+ export declare class Usage {
23
+ source: string;
24
+ line: number;
25
+ column: number;
26
+ startLine: number;
27
+ startColumn: number;
28
+ endLine: number;
29
+ endColumn: number;
30
+ }
31
+ //# sourceMappingURL=Usage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Usage.d.ts","sourceRoot":"","sources":["../../../src/server/models/Usage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,oBAAoB,iBAAkB,YAAY,KAAG,MAG9D,CAAC;AAEL,qBAAa,KAAK;IAChB,MAAM,EAAG,MAAM,CAAC;IAChB,IAAI,EAAG,MAAM,CAAC;IACd,MAAM,EAAG,MAAM,CAAC;IAChB,SAAS,EAAG,MAAM,CAAC;IACnB,WAAW,EAAG,MAAM,CAAC;IACrB,OAAO,EAAG,MAAM,CAAC;IACjB,SAAS,EAAG,MAAM,CAAC;CAEpB"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { createModelSchema, primitive } from 'serializr';
17
+ export const getUsageConceptLabel = (usageConcept) => `'${usageConcept.path}'${usageConcept.owner ? ` of '${usageConcept.owner}'` : ''}`;
18
+ export class Usage {
19
+ source;
20
+ line;
21
+ column;
22
+ startLine;
23
+ startColumn;
24
+ endLine;
25
+ endColumn;
26
+ }
27
+ createModelSchema(Usage, {
28
+ source: primitive(),
29
+ line: primitive(),
30
+ column: primitive(),
31
+ startLine: primitive(),
32
+ startColumn: primitive(),
33
+ endLine: primitive(),
34
+ endColumn: primitive(),
35
+ });
36
+ //# sourceMappingURL=Usage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Usage.js","sourceRoot":"","sources":["../../../src/server/models/Usage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAQzD,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,YAA0B,EAAU,EAAE,CACzE,IAAI,YAAY,CAAC,IAAI,IACnB,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,YAAY,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,EACvD,EAAE,CAAC;AAEL,MAAM,OAAO,KAAK;IAChB,MAAM,CAAU;IAChB,IAAI,CAAU;IACd,MAAM,CAAU;IAChB,SAAS,CAAU;IACnB,WAAW,CAAU;IACrB,OAAO,CAAU;IACjB,SAAS,CAAU;CAEpB;AAED,iBAAiB,CAAC,KAAK,EAAE;IACvB,MAAM,EAAE,SAAS,EAAE;IACnB,IAAI,EAAE,SAAS,EAAE;IACjB,MAAM,EAAE,SAAS,EAAE;IACnB,SAAS,EAAE,SAAS,EAAE;IACtB,WAAW,EAAE,SAAS,EAAE;IACxB,OAAO,EAAE,SAAS,EAAE;IACpB,SAAS,EAAE,SAAS,EAAE;CACvB,CAAC,CAAC"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { TreeState } from './TreeState.js';
17
+ import { type ConceptTreeNode, ConceptNode } from '../server/models/ConceptTree.js';
18
+ import type { EditorStore } from './EditorStore.js';
19
+ import { ActionState, type GeneratorFn } from '@finos/legend-shared';
20
+ import type { TreeData } from '@finos/legend-art';
21
+ export declare class ConceptTreeState extends TreeState<ConceptTreeNode, ConceptNode> {
22
+ readonly loadConceptActivity: ActionState;
23
+ statusText?: string | undefined;
24
+ constructor(editorStore: EditorStore);
25
+ setStatusText(value: string | undefined): void;
26
+ getRootNodes(): Promise<ConceptNode[]>;
27
+ buildTreeData(rootNodes: ConceptNode[]): TreeData<ConceptTreeNode>;
28
+ getChildNodes(node: ConceptTreeNode): Promise<ConceptNode[]>;
29
+ processChildNodes(node: ConceptTreeNode, childNodes: ConceptNode[]): void;
30
+ openNode(node: ConceptTreeNode): GeneratorFn<void>;
31
+ pollConceptsActivity(): GeneratorFn<void>;
32
+ pullConceptsActivity(): Promise<void>;
33
+ }
34
+ //# sourceMappingURL=ConceptTreeState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConceptTreeState.d.ts","sourceRoot":"","sources":["../../src/stores/ConceptTreeState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EACL,KAAK,eAAe,EAGpB,WAAW,EACZ,MAAM,iCAAiC,CAAC;AAEzC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAGpD,OAAO,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,qBAAa,gBAAiB,SAAQ,SAAS,CAAC,eAAe,EAAE,WAAW,CAAC;IAC3E,QAAQ,CAAC,mBAAmB,cAAwB;IACpD,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;gBAEpB,WAAW,EAAE,WAAW;IAWpC,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAIxC,YAAY,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;IAO5C,aAAa,CAAC,SAAS,EAAE,WAAW,EAAE,GAAG,QAAQ,CAAC,eAAe,CAAC;IAgB5D,aAAa,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAMlE,iBAAiB,CAAC,IAAI,EAAE,eAAe,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,IAAI;IAgBxE,QAAQ,CAAC,IAAI,EAAE,eAAe,GAAG,WAAW,CAAC,IAAI,CAAC;IA2BlD,oBAAoB,IAAI,WAAW,CAAC,IAAI,CAAC;IAcpC,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC;CAmB5C"}
@@ -0,0 +1,117 @@
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 { deserialize } from 'serializr';
17
+ import { TreeState } from './TreeState.js';
18
+ import { ElementConceptAttribute, PropertyConceptAttribute, ConceptNode, } from '../server/models/ConceptTree.js';
19
+ import { action, flow, flowResult, makeObservable, observable } from 'mobx';
20
+ import { FileCoordinate } from '../server/models/PureFile.js';
21
+ import { ActionState } from '@finos/legend-shared';
22
+ export class ConceptTreeState extends TreeState {
23
+ loadConceptActivity = ActionState.create();
24
+ statusText;
25
+ constructor(editorStore) {
26
+ super(editorStore);
27
+ makeObservable(this, {
28
+ statusText: observable,
29
+ setStatusText: action,
30
+ pullConceptsActivity: action,
31
+ pollConceptsActivity: flow,
32
+ });
33
+ }
34
+ setStatusText(value) {
35
+ this.statusText = value;
36
+ }
37
+ async getRootNodes() {
38
+ await flowResult(this.pollConceptsActivity());
39
+ return (await this.editorStore.client.getConceptChildren()).map((node) => deserialize(ConceptNode, node));
40
+ }
41
+ buildTreeData(rootNodes) {
42
+ const rootIds = [];
43
+ const nodes = new Map();
44
+ rootNodes.forEach((node) => {
45
+ const id = node.li_attr.id;
46
+ rootIds.push(id);
47
+ nodes.set(id, {
48
+ data: node,
49
+ id,
50
+ label: node.text,
51
+ isLoading: false,
52
+ });
53
+ });
54
+ return { rootIds, nodes };
55
+ }
56
+ async getChildNodes(node) {
57
+ return (await this.editorStore.client.getConceptChildren(node.data.li_attr.pureId)).map((child) => deserialize(ConceptNode, child));
58
+ }
59
+ processChildNodes(node, childNodes) {
60
+ const treeData = this.getTreeData();
61
+ const childrenIds = [];
62
+ childNodes.forEach((childNode) => {
63
+ const id = childNode.li_attr.id;
64
+ childrenIds.push(id);
65
+ treeData.nodes.set(id, {
66
+ data: childNode,
67
+ id,
68
+ label: childNode.text,
69
+ isLoading: false,
70
+ });
71
+ });
72
+ node.childrenIds = childrenIds;
73
+ }
74
+ *openNode(node) {
75
+ if (node.data.li_attr instanceof PropertyConceptAttribute ||
76
+ node.data.li_attr instanceof ElementConceptAttribute) {
77
+ if (node.data.li_attr.pureType === 'Diagram') {
78
+ yield flowResult(this.editorStore.loadDiagram(node.data.li_attr.file, node.data.li_attr.pureId));
79
+ }
80
+ else {
81
+ yield flowResult(this.editorStore.loadFile(node.data.li_attr.file, new FileCoordinate(node.data.li_attr.file, Number.parseInt(node.data.li_attr.line, 10), Number.parseInt(node.data.li_attr.column, 10))));
82
+ }
83
+ }
84
+ }
85
+ *pollConceptsActivity() {
86
+ if (!this.loadConceptActivity.isInInitialState) {
87
+ return;
88
+ }
89
+ this.loadConceptActivity.inProgress();
90
+ this.setStatusText('Loading concepts activity...');
91
+ try {
92
+ yield this.pullConceptsActivity();
93
+ }
94
+ finally {
95
+ this.setStatusText(undefined);
96
+ this.loadConceptActivity.reset();
97
+ }
98
+ }
99
+ async pullConceptsActivity() {
100
+ const result = (await this.editorStore.client.getConceptActivity());
101
+ if (result.text) {
102
+ this.setStatusText(`Preparing - ${result.text}`);
103
+ }
104
+ if (result.initializing) {
105
+ return new Promise((resolve, reject) => setTimeout(() => {
106
+ try {
107
+ resolve(this.pullConceptsActivity());
108
+ }
109
+ catch (error) {
110
+ reject(error);
111
+ }
112
+ }, 1000));
113
+ }
114
+ return Promise.resolve();
115
+ }
116
+ }
117
+ //# sourceMappingURL=ConceptTreeState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConceptTreeState.js","sourceRoot":"","sources":["../../src/stores/ConceptTreeState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAEL,uBAAuB,EACvB,wBAAwB,EACxB,WAAW,GACZ,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE5E,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,OAAO,EAAE,WAAW,EAAoB,MAAM,sBAAsB,CAAC;AAGrE,MAAM,OAAO,gBAAiB,SAAQ,SAAuC;IAClE,mBAAmB,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC;IACpD,UAAU,CAAsB;IAEhC,YAAY,WAAwB;QAClC,KAAK,CAAC,WAAW,CAAC,CAAC;QAEnB,cAAc,CAAC,IAAI,EAAE;YACnB,UAAU,EAAE,UAAU;YACtB,aAAa,EAAE,MAAM;YACrB,oBAAoB,EAAE,MAAM;YAC5B,oBAAoB,EAAE,IAAI;SAC3B,CAAC,CAAC;IACL,CAAC;IAED,aAAa,CAAC,KAAyB;QACrC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;IAC1B,CAAC;IAED,KAAK,CAAC,YAAY;QAChB,MAAM,UAAU,CAAC,IAAI,CAAC,oBAAoB,EAAE,CAAC,CAAC;QAC9C,OAAO,CAAC,MAAM,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,kBAAkB,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CACvE,WAAW,CAAC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CAAC,SAAS,CAAC,CAAC;YAC9B,IAAI,CAAC,mBAAmB,CAAC,KAAK,EAAE,CAAC;SAClC;IACH,CAAC;IAED,KAAK,CAAC,oBAAoB;QACxB,MAAM,MAAM,GACV,CAAC,MAAM,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,kBAAkB,EAAE,CAA+B,CAAC;QACrF,IAAI,MAAM,CAAC,IAAI,EAAE;YACf,IAAI,CAAC,aAAa,CAAC,eAAe,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;SAClD;QACD,IAAI,MAAM,CAAC,YAAY,EAAE;YACvB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CACrC,UAAU,CAAC,GAAG,EAAE;gBACd,IAAI;oBACF,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,CAAC,CAAC;iBACtC;gBAAC,OAAO,KAAK,EAAE;oBACd,MAAM,CAAC,KAAK,CAAC,CAAC;iBACf;YACH,CAAC,EAAE,IAAI,CAAC,CACT,CAAC;SACH;QACD,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;CACF"}
@@ -0,0 +1,40 @@
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 { Diagram, DiagramRenderer, Point } from '@finos/legend-extension-dsl-diagram';
17
+ import type { PureModel } from '@finos/legend-graph';
18
+ import { type GeneratorFn } from '@finos/legend-shared';
19
+ import { type DiagramInfo, type DiagramClassMetadata } from '../server/models/DiagramInfo.js';
20
+ import type { EditorStore } from './EditorStore.js';
21
+ import { EditorTabState } from './EditorTabManagerState.js';
22
+ export declare class DiagramEditorState extends EditorTabState {
23
+ diagramInfo: DiagramInfo;
24
+ _renderer?: DiagramRenderer | undefined;
25
+ diagram: Diagram;
26
+ diagramClasses: Map<string, DiagramClassMetadata>;
27
+ graph: PureModel;
28
+ diagramPath: string;
29
+ filePath: string;
30
+ constructor(editorStore: EditorStore, diagramInfo: DiagramInfo, diagramPath: string, filePath: string);
31
+ get label(): string;
32
+ get description(): string | undefined;
33
+ get renderer(): DiagramRenderer;
34
+ get isDiagramRendererInitialized(): boolean;
35
+ rebuild(value: DiagramInfo): void;
36
+ setupRenderer(): void;
37
+ setRenderer(val: DiagramRenderer): void;
38
+ addClassView(path: string, position: Point | undefined): GeneratorFn<void>;
39
+ }
40
+ //# sourceMappingURL=DiagramEditorState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DiagramEditorState.d.ts","sourceRoot":"","sources":["../../src/stores/DiagramEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAEV,OAAO,EACP,eAAe,EACf,KAAK,EACN,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EACL,KAAK,WAAW,EAGjB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,oBAAoB,EAI1B,MAAM,iCAAiC,CAAC;AAKzC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,qBAAa,kBAAmB,SAAQ,cAAc;IACpD,WAAW,EAAE,WAAW,CAAC;IACzB,SAAS,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IACxC,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;IAClD,KAAK,EAAE,SAAS,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;gBAGf,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM;IAuBlB,IAAI,KAAK,IAAI,MAAM,CAElB;IAED,IAAa,WAAW,IAAI,MAAM,GAAG,SAAS,CAE7C;IAED,IAAI,QAAQ,IAAI,eAAe,CAK9B;IAED,IAAI,4BAA4B,IAAI,OAAO,CAE1C;IAED,OAAO,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;IAQjC,aAAa,IAAI,IAAI;IAkBrB,WAAW,CAAC,GAAG,EAAE,eAAe,GAAG,IAAI;IAItC,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,GAAG,SAAS,GAAG,WAAW,CAAC,IAAI,CAAC;CAoB5E"}
@@ -0,0 +1,90 @@
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 { generateEnumerableNameFromToken, guaranteeNonNullable, } from '@finos/legend-shared';
17
+ import { action, flow, flowResult, makeObservable, observable } from 'mobx';
18
+ import { deserialize } from 'serializr';
19
+ import { DiagramClassInfo, addClassToGraph, buildGraphFromDiagramInfo, } from '../server/models/DiagramInfo.js';
20
+ import { FileCoordinate, trimPathLeadingSlash, } from '../server/models/PureFile.js';
21
+ import { EditorTabState } from './EditorTabManagerState.js';
22
+ export class DiagramEditorState extends EditorTabState {
23
+ diagramInfo;
24
+ _renderer;
25
+ diagram;
26
+ diagramClasses;
27
+ graph;
28
+ diagramPath;
29
+ filePath;
30
+ constructor(editorStore, diagramInfo, diagramPath, filePath) {
31
+ super(editorStore);
32
+ makeObservable(this, {
33
+ _renderer: observable,
34
+ diagram: observable,
35
+ diagramInfo: observable,
36
+ addClassView: flow,
37
+ rebuild: action,
38
+ setRenderer: action,
39
+ });
40
+ this.diagramPath = diagramPath;
41
+ this.filePath = filePath;
42
+ this.diagramInfo = diagramInfo;
43
+ const [diagram, graph, diagramClasses] = buildGraphFromDiagramInfo(diagramInfo);
44
+ this.diagram = diagram;
45
+ this.graph = graph;
46
+ this.diagramClasses = diagramClasses;
47
+ }
48
+ get label() {
49
+ return trimPathLeadingSlash(this.diagramPath);
50
+ }
51
+ get description() {
52
+ return trimPathLeadingSlash(this.diagramPath);
53
+ }
54
+ get renderer() {
55
+ return guaranteeNonNullable(this._renderer, `Diagram renderer must be initialized (this is likely caused by calling this method at the wrong place)`);
56
+ }
57
+ get isDiagramRendererInitialized() {
58
+ return Boolean(this._renderer);
59
+ }
60
+ rebuild(value) {
61
+ this.diagramInfo = value;
62
+ const [diagram, graph, diagramClasses] = buildGraphFromDiagramInfo(value);
63
+ this.diagram = diagram;
64
+ this.graph = graph;
65
+ this.diagramClasses = diagramClasses;
66
+ }
67
+ setupRenderer() {
68
+ this.renderer.onClassViewDoubleClick = (classView) => {
69
+ const sourceInformation = this.diagramClasses.get(classView.class.value.path)?.sourceInformation;
70
+ if (sourceInformation) {
71
+ const coordinate = new FileCoordinate(sourceInformation.source, sourceInformation.startLine, sourceInformation.startColumn);
72
+ flowResult(this.editorStore.executeNavigation(coordinate)).catch(this.editorStore.applicationStore.alertUnhandledError);
73
+ }
74
+ };
75
+ }
76
+ setRenderer(val) {
77
+ this._renderer = val;
78
+ }
79
+ *addClassView(path, position) {
80
+ const diagramClassInfo = deserialize(DiagramClassInfo, yield this.editorStore.client.getDiagramClassInfo(path));
81
+ const _class = addClassToGraph(diagramClassInfo, this.graph, this.diagramClasses);
82
+ const classView = this.renderer.addClassView(_class, position);
83
+ // NOTE: The auto-generated ID by diagram renderer will cause a parser error in Pure
84
+ // so we need to rewrite it accordingly
85
+ if (classView) {
86
+ classView.id = generateEnumerableNameFromToken(this.diagram.classViews.map((cv) => cv.id), 'cview');
87
+ }
88
+ }
89
+ }
90
+ //# sourceMappingURL=DiagramEditorState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DiagramEditorState.js","sourceRoot":"","sources":["../../src/stores/DiagramEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AASH,OAAO,EAEL,+BAA+B,EAC/B,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAGL,gBAAgB,EAChB,eAAe,EACf,yBAAyB,GAC1B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,cAAc,EACd,oBAAoB,GACrB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,MAAM,OAAO,kBAAmB,SAAQ,cAAc;IACpD,WAAW,CAAc;IACzB,SAAS,CAA+B;IACxC,OAAO,CAAU;IACjB,cAAc,CAAoC;IAClD,KAAK,CAAY;IACjB,WAAW,CAAS;IACpB,QAAQ,CAAS;IAEjB,YACE,WAAwB,EACxB,WAAwB,EACxB,WAAmB,EACnB,QAAgB;QAEhB,KAAK,CAAC,WAAW,CAAC,CAAC;QAEnB,cAAc,CAAC,IAAI,EAAE;YACnB,SAAS,EAAE,UAAU;YACrB,OAAO,EAAE,UAAU;YACnB,WAAW,EAAE,UAAU;YACv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 * 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 { TreeState } from './TreeState.js';
17
+ import { type DirectoryTreeNode, DirectoryNode } from '../server/models/DirectoryTree.js';
18
+ import type { EditorStore } from './EditorStore.js';
19
+ import type { FileCoordinate } from '../server/models/PureFile.js';
20
+ import { type GeneratorFn } from '@finos/legend-shared';
21
+ import type { TreeData } from '@finos/legend-art';
22
+ export declare class DirectoryTreeState extends TreeState<DirectoryTreeNode, DirectoryNode> {
23
+ nodeForCreateNewFile?: DirectoryTreeNode | undefined;
24
+ nodeForCreateNewDirectory?: DirectoryTreeNode | undefined;
25
+ constructor(editorStore: EditorStore);
26
+ setNodeForCreateNewFile: (value: DirectoryTreeNode | undefined) => void;
27
+ setNodeForCreateNewDirectory: (value: DirectoryTreeNode | undefined) => void;
28
+ getRootNodes(): Promise<DirectoryNode[]>;
29
+ buildTreeData(rootNodes: DirectoryNode[]): TreeData<DirectoryTreeNode>;
30
+ getChildNodes(node: DirectoryTreeNode): Promise<DirectoryNode[]>;
31
+ processChildNodes(node: DirectoryTreeNode, childNodes: DirectoryNode[]): void;
32
+ openNode(node: DirectoryTreeNode): GeneratorFn<void>;
33
+ revealPath(path: string, forceOpenDirectoryTreePanel: boolean, coordinate?: FileCoordinate): GeneratorFn<void>;
34
+ }
35
+ //# sourceMappingURL=DirectoryTreeState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DirectoryTreeState.d.ts","sourceRoot":"","sources":["../../src/stores/DirectoryTreeState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,gB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