@finos/legend-application-studio 28.8.0 → 28.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/lib/__lib__/LegendStudioCommand.d.ts +1 -0
  2. package/lib/__lib__/LegendStudioCommand.d.ts.map +1 -1
  3. package/lib/__lib__/LegendStudioCommand.js +5 -0
  4. package/lib/__lib__/LegendStudioCommand.js.map +1 -1
  5. package/lib/__lib__/LegendStudioNavigation.d.ts +6 -0
  6. package/lib/__lib__/LegendStudioNavigation.d.ts.map +1 -1
  7. package/lib/__lib__/LegendStudioNavigation.js +5 -0
  8. package/lib/__lib__/LegendStudioNavigation.js.map +1 -1
  9. package/lib/components/LegendStudioWebApplication.d.ts.map +1 -1
  10. package/lib/components/LegendStudioWebApplication.js +4 -1
  11. package/lib/components/LegendStudioWebApplication.js.map +1 -1
  12. package/lib/components/ShowcaseManager.d.ts.map +1 -1
  13. package/lib/components/ShowcaseManager.js +10 -2
  14. package/lib/components/ShowcaseManager.js.map +1 -1
  15. package/lib/components/editor/ActivityBar.d.ts.map +1 -1
  16. package/lib/components/editor/ActivityBar.js +20 -17
  17. package/lib/components/editor/ActivityBar.js.map +1 -1
  18. package/lib/components/editor/editor-group/EditorGroup.d.ts.map +1 -1
  19. package/lib/components/editor/editor-group/EditorGroup.js +7 -1
  20. package/lib/components/editor/editor-group/EditorGroup.js.map +1 -1
  21. package/lib/components/editor/editor-group/GrammarTextEditor.js +1 -1
  22. package/lib/components/editor/editor-group/GrammarTextEditor.js.map +1 -1
  23. package/lib/components/editor/editor-group/connection-editor/DatabaseBuilderWizard.d.ts +5 -0
  24. package/lib/components/editor/editor-group/connection-editor/DatabaseBuilderWizard.d.ts.map +1 -1
  25. package/lib/components/editor/editor-group/connection-editor/DatabaseBuilderWizard.js +28 -10
  26. package/lib/components/editor/editor-group/connection-editor/DatabaseBuilderWizard.js.map +1 -1
  27. package/lib/components/editor/editor-group/connection-editor/DatabaseModelBuilder.d.ts +11 -0
  28. package/lib/components/editor/editor-group/connection-editor/DatabaseModelBuilder.d.ts.map +1 -1
  29. package/lib/components/editor/editor-group/connection-editor/DatabaseModelBuilder.js +22 -10
  30. package/lib/components/editor/editor-group/connection-editor/DatabaseModelBuilder.js.map +1 -1
  31. package/lib/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.d.ts +7 -0
  32. package/lib/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.d.ts.map +1 -1
  33. package/lib/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.js +3 -3
  34. package/lib/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.js.map +1 -1
  35. package/lib/components/editor/editor-group/end-to-end-flow-editor/QueryConnectionWorkflowEditor.d.ts +59 -0
  36. package/lib/components/editor/editor-group/end-to-end-flow-editor/QueryConnectionWorkflowEditor.d.ts.map +1 -0
  37. package/lib/components/editor/editor-group/end-to-end-flow-editor/QueryConnectionWorkflowEditor.js +145 -0
  38. package/lib/components/editor/editor-group/end-to-end-flow-editor/QueryConnectionWorkflowEditor.js.map +1 -0
  39. package/lib/components/editor/side-bar/Explorer.d.ts.map +1 -1
  40. package/lib/components/editor/side-bar/Explorer.js +3 -2
  41. package/lib/components/editor/side-bar/Explorer.js.map +1 -1
  42. package/lib/components/editor/side-bar/SideBar.d.ts.map +1 -1
  43. package/lib/components/editor/side-bar/SideBar.js +4 -1
  44. package/lib/components/editor/side-bar/SideBar.js.map +1 -1
  45. package/lib/components/editor/side-bar/end-to-end-workflow/EndToEndWorkflows.d.ts +23 -0
  46. package/lib/components/editor/side-bar/end-to-end-workflow/EndToEndWorkflows.d.ts.map +1 -0
  47. package/lib/components/editor/side-bar/end-to-end-workflow/EndToEndWorkflows.js +41 -0
  48. package/lib/components/editor/side-bar/end-to-end-workflow/EndToEndWorkflows.js.map +1 -0
  49. package/lib/components/project-view/ProjectViewer.d.ts.map +1 -1
  50. package/lib/components/project-view/ProjectViewer.js +37 -5
  51. package/lib/components/project-view/ProjectViewer.js.map +1 -1
  52. package/lib/components/showcase/ShowcaseViewer.d.ts +18 -0
  53. package/lib/components/showcase/ShowcaseViewer.d.ts.map +1 -0
  54. package/lib/components/showcase/ShowcaseViewer.js +147 -0
  55. package/lib/components/showcase/ShowcaseViewer.js.map +1 -0
  56. package/lib/components/showcase/ShowcaseViewerStoreProvider.d.ts +23 -0
  57. package/lib/components/showcase/ShowcaseViewerStoreProvider.d.ts.map +1 -0
  58. package/lib/components/showcase/ShowcaseViewerStoreProvider.js +36 -0
  59. package/lib/components/showcase/ShowcaseViewerStoreProvider.js.map +1 -0
  60. package/lib/index.css +2 -2
  61. package/lib/index.css.map +1 -1
  62. package/lib/package.json +1 -1
  63. package/lib/stores/LegendStudioBaseStore.d.ts.map +1 -1
  64. package/lib/stores/LegendStudioBaseStore.js +1 -0
  65. package/lib/stores/LegendStudioBaseStore.js.map +1 -1
  66. package/lib/stores/ShowcaseManagerState.d.ts +1 -0
  67. package/lib/stores/ShowcaseManagerState.d.ts.map +1 -1
  68. package/lib/stores/ShowcaseManagerState.js +11 -1
  69. package/lib/stores/ShowcaseManagerState.js.map +1 -1
  70. package/lib/stores/editor/EditorConfig.d.ts +3 -1
  71. package/lib/stores/editor/EditorConfig.d.ts.map +1 -1
  72. package/lib/stores/editor/EditorConfig.js +4 -1
  73. package/lib/stores/editor/EditorConfig.js.map +1 -1
  74. package/lib/stores/editor/EditorMode.d.ts +4 -0
  75. package/lib/stores/editor/EditorMode.d.ts.map +1 -1
  76. package/lib/stores/editor/EditorMode.js +9 -0
  77. package/lib/stores/editor/EditorMode.js.map +1 -1
  78. package/lib/stores/editor/EditorStore.d.ts +2 -0
  79. package/lib/stores/editor/EditorStore.d.ts.map +1 -1
  80. package/lib/stores/editor/EditorStore.js +14 -3
  81. package/lib/stores/editor/EditorStore.js.map +1 -1
  82. package/lib/stores/editor/ExplorerTreeState.d.ts.map +1 -1
  83. package/lib/stores/editor/ExplorerTreeState.js +1 -1
  84. package/lib/stores/editor/ExplorerTreeState.js.map +1 -1
  85. package/lib/stores/editor/GraphEditGrammarModeState.d.ts.map +1 -1
  86. package/lib/stores/editor/GraphEditGrammarModeState.js.map +1 -1
  87. package/lib/stores/editor/NewElementState.d.ts +1 -0
  88. package/lib/stores/editor/NewElementState.d.ts.map +1 -1
  89. package/lib/stores/editor/NewElementState.js +1 -1
  90. package/lib/stores/editor/NewElementState.js.map +1 -1
  91. package/lib/stores/editor/StandardEditorMode.d.ts +1 -0
  92. package/lib/stores/editor/StandardEditorMode.d.ts.map +1 -1
  93. package/lib/stores/editor/StandardEditorMode.js +4 -0
  94. package/lib/stores/editor/StandardEditorMode.js.map +1 -1
  95. package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.d.ts +6 -2
  96. package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.d.ts.map +1 -1
  97. package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.js +53 -34
  98. package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.js.map +1 -1
  99. package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderWizardState.d.ts.map +1 -1
  100. package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderWizardState.js +1 -1
  101. package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderWizardState.js.map +1 -1
  102. package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseModelBuilderState.d.ts +3 -2
  103. package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseModelBuilderState.d.ts.map +1 -1
  104. package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseModelBuilderState.js +8 -5
  105. package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseModelBuilderState.js.map +1 -1
  106. package/lib/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.d.ts.map +1 -1
  107. package/lib/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.js +20 -4
  108. package/lib/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.js.map +1 -1
  109. package/lib/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestingHelper.d.ts +3 -0
  110. package/lib/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestingHelper.d.ts.map +1 -1
  111. package/lib/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestingHelper.js +17 -2
  112. package/lib/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestingHelper.js.map +1 -1
  113. package/lib/stores/editor/editor-state/end-to-end-workflow-state/EndToEndWorkflowEditorState.d.ts +22 -0
  114. package/lib/stores/editor/editor-state/end-to-end-workflow-state/EndToEndWorkflowEditorState.d.ts.map +1 -0
  115. package/lib/stores/editor/editor-state/end-to-end-workflow-state/EndToEndWorkflowEditorState.js +25 -0
  116. package/lib/stores/editor/editor-state/end-to-end-workflow-state/EndToEndWorkflowEditorState.js.map +1 -0
  117. package/lib/stores/editor/sidebar-state/end-to-end-workflow/GlobalEndToEndFlowState.d.ts +113 -0
  118. package/lib/stores/editor/sidebar-state/end-to-end-workflow/GlobalEndToEndFlowState.d.ts.map +1 -0
  119. package/lib/stores/editor/sidebar-state/end-to-end-workflow/GlobalEndToEndFlowState.js +494 -0
  120. package/lib/stores/editor/sidebar-state/end-to-end-workflow/GlobalEndToEndFlowState.js.map +1 -0
  121. package/lib/stores/project-view/ProjectViewerEditorMode.d.ts +3 -0
  122. package/lib/stores/project-view/ProjectViewerEditorMode.d.ts.map +1 -1
  123. package/lib/stores/project-view/ProjectViewerEditorMode.js +10 -0
  124. package/lib/stores/project-view/ProjectViewerEditorMode.js.map +1 -1
  125. package/lib/stores/showcase/ShowcaseViewerEditorMode.d.ts +28 -0
  126. package/lib/stores/showcase/ShowcaseViewerEditorMode.d.ts.map +1 -0
  127. package/lib/stores/showcase/ShowcaseViewerEditorMode.js +40 -0
  128. package/lib/stores/showcase/ShowcaseViewerEditorMode.js.map +1 -0
  129. package/lib/stores/showcase/ShowcaseViewerStore.d.ts +32 -0
  130. package/lib/stores/showcase/ShowcaseViewerStore.d.ts.map +1 -0
  131. package/lib/stores/showcase/ShowcaseViewerStore.js +193 -0
  132. package/lib/stores/showcase/ShowcaseViewerStore.js.map +1 -0
  133. package/package.json +7 -7
  134. package/src/__lib__/LegendStudioCommand.ts +5 -0
  135. package/src/__lib__/LegendStudioNavigation.ts +11 -0
  136. package/src/components/LegendStudioWebApplication.tsx +11 -1
  137. package/src/components/ShowcaseManager.tsx +44 -2
  138. package/src/components/editor/ActivityBar.tsx +56 -15
  139. package/src/components/editor/editor-group/EditorGroup.tsx +21 -1
  140. package/src/components/editor/editor-group/GrammarTextEditor.tsx +1 -1
  141. package/src/components/editor/editor-group/connection-editor/DatabaseBuilderWizard.tsx +135 -103
  142. package/src/components/editor/editor-group/connection-editor/DatabaseModelBuilder.tsx +97 -53
  143. package/src/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.tsx +4 -3
  144. package/src/components/editor/editor-group/end-to-end-flow-editor/QueryConnectionWorkflowEditor.tsx +478 -0
  145. package/src/components/editor/side-bar/Explorer.tsx +20 -12
  146. package/src/components/editor/side-bar/SideBar.tsx +13 -1
  147. package/src/components/editor/side-bar/end-to-end-workflow/EndToEndWorkflows.tsx +101 -0
  148. package/src/components/project-view/ProjectViewer.tsx +139 -4
  149. package/src/components/showcase/ShowcaseViewer.tsx +418 -0
  150. package/src/components/showcase/ShowcaseViewerStoreProvider.tsx +56 -0
  151. package/src/stores/LegendStudioBaseStore.ts +1 -0
  152. package/src/stores/ShowcaseManagerState.ts +19 -1
  153. package/src/stores/editor/EditorConfig.ts +3 -0
  154. package/src/stores/editor/EditorMode.ts +14 -0
  155. package/src/stores/editor/EditorStore.ts +17 -8
  156. package/src/stores/editor/ExplorerTreeState.ts +1 -0
  157. package/src/stores/editor/GraphEditGrammarModeState.ts +3 -3
  158. package/src/stores/editor/NewElementState.ts +1 -1
  159. package/src/stores/editor/StandardEditorMode.ts +7 -0
  160. package/src/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.ts +77 -49
  161. package/src/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderWizardState.ts +1 -2
  162. package/src/stores/editor/editor-state/element-editor-state/connection/DatabaseModelBuilderState.ts +12 -8
  163. package/src/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.ts +31 -9
  164. package/src/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestingHelper.ts +23 -0
  165. package/src/stores/editor/editor-state/end-to-end-workflow-state/EndToEndWorkflowEditorState.ts +25 -0
  166. package/src/stores/editor/sidebar-state/end-to-end-workflow/GlobalEndToEndFlowState.tsx +884 -0
  167. package/src/stores/project-view/ProjectViewerEditorMode.ts +17 -0
  168. package/src/stores/showcase/ShowcaseViewerEditorMode.ts +51 -0
  169. package/src/stores/showcase/ShowcaseViewerStore.ts +289 -0
  170. package/tsconfig.json +9 -1
@@ -0,0 +1,494 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * Copyright (c) 2020-present, Goldman Sachs
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { action, flow, flowResult, makeObservable, observable } from 'mobx';
18
+ import { QueryConnectionEndToEndWorkflowEditorState } from '../../editor-state/end-to-end-workflow-state/EndToEndWorkflowEditorState.js';
19
+ import { RelationalDatabaseConnectionValueState } from '../../editor-state/element-editor-state/connection/ConnectionEditorState.js';
20
+ import { RelationalDatabaseConnection, LocalH2DatasourceSpecification, PackageableElementExplicitReference, stub_Database, DatabaseType, DefaultH2AuthenticationStrategy, PackageableConnection, EngineRuntime, IdentifiedConnection, generateIdentifiedConnectionId, PackageableRuntime, extractElementNameFromPath, getOrCreatePackage, extractPackagePathFromPath, getMappingCompatibleClasses, RuntimePointer, ParserError, CompilationError, observe_RelationalDatabaseConnection, } from '@finos/legend-graph';
21
+ import { DEFAULT_H2_SQL } from '../../NewElementState.js';
22
+ import { guaranteeNonNullable, LogEvent, assertErrorThrown, ActionState, getNonNullableEntry, } from '@finos/legend-shared';
23
+ import { DatabaseBuilderWizardState } from '../../editor-state/element-editor-state/connection/DatabaseBuilderWizardState.js';
24
+ import { LEGEND_STUDIO_APP_EVENT } from '../../../../__lib__/LegendStudioEvent.js';
25
+ import { DatabaseModelBuilderState } from '../../editor-state/element-editor-state/connection/DatabaseModelBuilderState.js';
26
+ import { EntityChangeType } from '@finos/legend-server-sdlc';
27
+ import { packageableConnection_setConnectionValue, runtime_addIdentifiedConnection, runtime_addMapping, runtime_setMappings, } from '../../../graph-modifier/DSL_Mapping_GraphModifierHelper.js';
28
+ import { ClassQueryBuilderState, QueryBuilderConfig, } from '@finos/legend-query-builder';
29
+ import { BaseStepperState } from '@finos/legend-art';
30
+ import { QUERY_CONNECTION_WORKFLOW_STEPS, QueryConnectionConfirmationAndGrammarEditor, QueryConnectionDatabaseBuilderEditor, QueryConnectionDatabaseGrammarEditor, QueryConnectionModelsEditor, QueryConnectionRelationalConnectionEditor, } from '../../../../components/editor/editor-group/end-to-end-flow-editor/QueryConnectionWorkflowEditor.js';
31
+ export var SupportedEndToEndWorkflow;
32
+ (function (SupportedEndToEndWorkflow) {
33
+ SupportedEndToEndWorkflow["CREATE_QUERY_FROM_CONNECTION"] = "Create Query From Connection";
34
+ })(SupportedEndToEndWorkflow || (SupportedEndToEndWorkflow = {}));
35
+ const DEFAULT_CONNECTION_PATH = 'store::MyConnection';
36
+ const DEFAULT_RUNTIME_PATH = 'store::MyRuntime';
37
+ const JOIN_CODE_SYNTAX = '// Please refer to pure code syntax below for how to create join' +
38
+ '\n' +
39
+ '// Join join_name(Table1.column1 = Table2.column2);' +
40
+ '\n';
41
+ // step5 - confirm/update final grammar and query
42
+ export class QueryConnectionConfirmationAndGrammarEditorStepperState extends BaseStepperState {
43
+ queryConnectionEndToEndWorkflowState;
44
+ isCompilingCode = ActionState.create();
45
+ editorStore;
46
+ constructor(queryConnectionEndToEndWorkflowState, stepLabel) {
47
+ super(stepLabel);
48
+ makeObservable(this, {
49
+ queryConnectionEndToEndWorkflowState: false,
50
+ stepLabel: observable,
51
+ isCompilingCode: observable,
52
+ handleNext: flow,
53
+ query: flow,
54
+ compile: flow,
55
+ });
56
+ this.queryConnectionEndToEndWorkflowState =
57
+ queryConnectionEndToEndWorkflowState;
58
+ this.editorStore =
59
+ this.queryConnectionEndToEndWorkflowState.globalEndToEndWorkflowState.editorStore;
60
+ }
61
+ *compile() {
62
+ try {
63
+ this.isCompilingCode.inProgress();
64
+ const compilationResult = (yield flowResult(yield this.editorStore.graphManagerState.graphManager.compileText(this.queryConnectionEndToEndWorkflowState.finalGrammarCode, this.queryConnectionEndToEndWorkflowState.graph)));
65
+ this.editorStore.applicationStore.notificationService.notifySuccess('Compiled successfully');
66
+ const entities = compilationResult.entities;
67
+ const newGraph = this.editorStore.graphManagerState.createNewGraph();
68
+ yield flowResult(this.editorStore.graphManagerState.graphManager.buildGraph(newGraph, entities, ActionState.create()));
69
+ this.queryConnectionEndToEndWorkflowState.graph = newGraph;
70
+ this.queryConnectionEndToEndWorkflowState.setCompileError(undefined);
71
+ }
72
+ catch (error) {
73
+ if (error instanceof ParserError || error instanceof CompilationError) {
74
+ this.queryConnectionEndToEndWorkflowState.setCompileError(error);
75
+ }
76
+ assertErrorThrown(error);
77
+ this.editorStore.applicationStore.logService.error(LogEvent.create(LEGEND_STUDIO_APP_EVENT.DATABASE_MODEL_BUILDER_FAILURE), error);
78
+ this.editorStore.applicationStore.notificationService.notifyError(error);
79
+ this.isCompilingCode.fail();
80
+ }
81
+ finally {
82
+ this.isCompilingCode.complete();
83
+ }
84
+ }
85
+ *query() {
86
+ const entities = (yield this.editorStore.graphManagerState.graphManager.pureCodeToEntities(this.queryConnectionEndToEndWorkflowState.finalGrammarCode));
87
+ const newEntities = [];
88
+ for (const entity of entities) {
89
+ newEntities.push({
90
+ type: EntityChangeType.CREATE,
91
+ entityPath: entity.path,
92
+ content: entity.content,
93
+ });
94
+ }
95
+ yield flowResult(this.editorStore.graphState.loadEntityChangesToGraph(newEntities, undefined));
96
+ this.editorStore.tabManagerState.openTab(this.queryConnectionEndToEndWorkflowState
97
+ .queryConnectionEndToEndWorkflowEditorState);
98
+ this.editorStore.tabManagerState.closeTab(this.queryConnectionEndToEndWorkflowState
99
+ .queryConnectionEndToEndWorkflowEditorState);
100
+ const theClass = getMappingCompatibleClasses(getNonNullableEntry(this.queryConnectionEndToEndWorkflowState.graph.mappings, 0), this.queryConnectionEndToEndWorkflowState.graph.classes)[0];
101
+ if (theClass) {
102
+ const config = new QueryBuilderConfig();
103
+ const queryBuilderState = new ClassQueryBuilderState(this.editorStore.applicationStore, this.editorStore.graphManagerState, config);
104
+ queryBuilderState.class = theClass;
105
+ queryBuilderState.executionContextState.mapping = getNonNullableEntry(this.queryConnectionEndToEndWorkflowState.graph.mappings, 0);
106
+ queryBuilderState.executionContextState.runtimeValue = new RuntimePointer(PackageableElementExplicitReference.create(getNonNullableEntry(this.queryConnectionEndToEndWorkflowState.graph.runtimes, 0)));
107
+ yield flowResult(this.editorStore.embeddedQueryBuilderState.setEmbeddedQueryBuilderConfiguration({
108
+ setupQueryBuilderState: () => queryBuilderState,
109
+ actionConfigs: [],
110
+ }));
111
+ }
112
+ }
113
+ *handleNext() {
114
+ yield flowResult(this.query()).then(() => {
115
+ this.queryConnectionEndToEndWorkflowState.reset();
116
+ });
117
+ }
118
+ renderStepContent() {
119
+ return (_jsx(QueryConnectionConfirmationAndGrammarEditor, { queryConnectionEndToEndWorkflowState: this.queryConnectionEndToEndWorkflowState, queryConnectionConfirmationAndGrammarEditorStepperState: this }));
120
+ }
121
+ }
122
+ // step 4 - build class/mapping/runtime from database
123
+ export class DatabaseModelBuilderStepperState extends BaseStepperState {
124
+ queryConnectionEndToEndWorkflowState;
125
+ databaseModelBuilderState;
126
+ editorStore;
127
+ constructor(queryConnectionEndToEndWorkflowState, stepLabel, databaseModelBuilderState) {
128
+ super(stepLabel);
129
+ makeObservable(this, {
130
+ queryConnectionEndToEndWorkflowState: false,
131
+ stepLabel: observable,
132
+ updateGraphWithModels: flow,
133
+ handleNext: flow,
134
+ });
135
+ this.queryConnectionEndToEndWorkflowState =
136
+ queryConnectionEndToEndWorkflowState;
137
+ this.databaseModelBuilderState = databaseModelBuilderState;
138
+ this.editorStore =
139
+ this.queryConnectionEndToEndWorkflowState.globalEndToEndWorkflowState.editorStore;
140
+ }
141
+ *updateGraphWithModels(entities) {
142
+ try {
143
+ const newGraph = this.editorStore.graphManagerState.createNewGraph();
144
+ newGraph.addElement(guaranteeNonNullable(this.queryConnectionEndToEndWorkflowState.packageableConnection), this.queryConnectionEndToEndWorkflowState.packageableConnection?.package
145
+ ?.path);
146
+ const databaseBuilderStepperState = this.queryConnectionEndToEndWorkflowState.activeStepToBaseStepperState.get(QUERY_CONNECTION_WORKFLOW_STEPS.CREATE_DATABASE);
147
+ newGraph.addElement(databaseBuilderStepperState.databaseBuilderWizardState
148
+ .schemaExplorerState.database, databaseBuilderStepperState.databaseBuilderWizardState
149
+ .schemaExplorerState.database.package?.path);
150
+ yield flowResult(this.editorStore.graphManagerState.graphManager.buildGraph(newGraph, entities, ActionState.create()));
151
+ // create a runtime
152
+ if (this.queryConnectionEndToEndWorkflowState.packageableRuntime) {
153
+ runtime_setMappings(this.queryConnectionEndToEndWorkflowState.packageableRuntime
154
+ .runtimeValue, [
155
+ PackageableElementExplicitReference.create(getNonNullableEntry(newGraph.mappings, 0)),
156
+ ]);
157
+ }
158
+ else {
159
+ const runtime = new PackageableRuntime(extractElementNameFromPath(this.queryConnectionEndToEndWorkflowState.targetRuntimePath));
160
+ runtime.runtimeValue = new EngineRuntime();
161
+ runtime_addMapping(runtime.runtimeValue, PackageableElementExplicitReference.create(getNonNullableEntry(newGraph.mappings, 0)));
162
+ runtime_addIdentifiedConnection(runtime.runtimeValue, new IdentifiedConnection(generateIdentifiedConnectionId(runtime.runtimeValue), guaranteeNonNullable(this.queryConnectionEndToEndWorkflowState.packageableConnection).connectionValue), this.queryConnectionEndToEndWorkflowState.globalEndToEndWorkflowState
163
+ .editorStore.changeDetectionState.observerContext);
164
+ this.queryConnectionEndToEndWorkflowState.packageableRuntime = runtime;
165
+ }
166
+ newGraph.addElement(this.queryConnectionEndToEndWorkflowState.packageableRuntime, extractPackagePathFromPath(this.queryConnectionEndToEndWorkflowState.targetRuntimePath));
167
+ this.queryConnectionEndToEndWorkflowState.graph = newGraph;
168
+ this.queryConnectionEndToEndWorkflowState.setRuntimeGrammarCode((yield this.editorStore.graphManagerState.graphManager.entitiesToPureCode([
169
+ this.editorStore.graphManagerState.graphManager.elementToEntity(this.queryConnectionEndToEndWorkflowState.packageableRuntime),
170
+ ], { pretty: true })));
171
+ const connectionGrammarCode = (yield this.editorStore.graphManagerState.graphManager.entitiesToPureCode([
172
+ this.editorStore.graphManagerState.graphManager.elementToEntity(guaranteeNonNullable(this.queryConnectionEndToEndWorkflowState.packageableConnection)),
173
+ ], { pretty: true }));
174
+ this.queryConnectionEndToEndWorkflowState.connectionGrammarCode =
175
+ connectionGrammarCode;
176
+ }
177
+ catch (error) {
178
+ assertErrorThrown(error);
179
+ this.editorStore.applicationStore.logService.error(LogEvent.create(LEGEND_STUDIO_APP_EVENT.DATABASE_MODEL_BUILDER_FAILURE), error);
180
+ this.editorStore.applicationStore.notificationService.notifyError(error);
181
+ }
182
+ }
183
+ *handleNext() {
184
+ this.queryConnectionEndToEndWorkflowState.setFinalGrammarCode(this.databaseModelBuilderState.generatedGrammarCode
185
+ .concat(this.queryConnectionEndToEndWorkflowState.runtimeGrammarCode)
186
+ .concat(this.queryConnectionEndToEndWorkflowState.databaseGrammarCode)
187
+ .concat(this.queryConnectionEndToEndWorkflowState.connectionGrammarCode));
188
+ this.queryConnectionEndToEndWorkflowState.activeStepToBaseStepperState.set(QUERY_CONNECTION_WORKFLOW_STEPS.CONFIRMATION, new QueryConnectionConfirmationAndGrammarEditorStepperState(this.queryConnectionEndToEndWorkflowState, QUERY_CONNECTION_WORKFLOW_STEPS.CONFIRMATION));
189
+ }
190
+ renderStepContent() {
191
+ return (_jsx(QueryConnectionModelsEditor, { databaseModelBuilderStepperState: this, queryConnectionEndToEndWorkflowState: this.queryConnectionEndToEndWorkflowState }));
192
+ }
193
+ }
194
+ // step 3 - database grammar editor
195
+ export class DatabaseGrammarEditorStepperState extends BaseStepperState {
196
+ queryConnectionEndToEndWorkflowState;
197
+ isCompilingGrammarCode = ActionState.create();
198
+ editorStore;
199
+ constructor(queryConnectionEndToEndWorkflowState, stepLabel) {
200
+ super(stepLabel);
201
+ makeObservable(this, {
202
+ queryConnectionEndToEndWorkflowState: false,
203
+ stepLabel: observable,
204
+ isCompilingGrammarCode: observable,
205
+ buildDatabaseModelBuilderState: action,
206
+ compileDatabaseGrammarCode: flow,
207
+ handleNext: flow,
208
+ });
209
+ this.queryConnectionEndToEndWorkflowState =
210
+ queryConnectionEndToEndWorkflowState;
211
+ this.editorStore =
212
+ this.queryConnectionEndToEndWorkflowState.globalEndToEndWorkflowState.editorStore;
213
+ }
214
+ *compileDatabaseGrammarCode() {
215
+ try {
216
+ this.isCompilingGrammarCode.inProgress();
217
+ const databaseBuilderStepperState = this.queryConnectionEndToEndWorkflowState.activeStepToBaseStepperState.get(QUERY_CONNECTION_WORKFLOW_STEPS.CREATE_DATABASE);
218
+ const connectionValueStepperState = this.queryConnectionEndToEndWorkflowState.activeStepToBaseStepperState.get(QUERY_CONNECTION_WORKFLOW_STEPS.CREATE_CONNECTION);
219
+ const compilationResult = (yield flowResult(yield this.editorStore.graphManagerState.graphManager.compileText(this.queryConnectionEndToEndWorkflowState.databaseGrammarCode, this.queryConnectionEndToEndWorkflowState.graph)));
220
+ this.editorStore.applicationStore.notificationService.notifySuccess('Compiled successfully');
221
+ const entities = compilationResult.entities;
222
+ const newGraph = this.editorStore.graphManagerState.createNewGraph();
223
+ yield flowResult(this.editorStore.graphManagerState.graphManager.buildGraph(newGraph, entities, ActionState.create()));
224
+ if (newGraph.databases.length > 1) {
225
+ this.queryConnectionEndToEndWorkflowState.isValid = false;
226
+ this.editorStore.applicationStore.notificationService.notifyError('Please make sure there is only one databse');
227
+ }
228
+ else {
229
+ this.queryConnectionEndToEndWorkflowState.isValid = true;
230
+ }
231
+ // databaseBuilderWizardState.schemaExplorerState.database needs to be updated
232
+ databaseBuilderStepperState.databaseBuilderWizardState.schemaExplorerState.database =
233
+ getNonNullableEntry(newGraph.databases, 0);
234
+ this.queryConnectionEndToEndWorkflowState.graph = newGraph;
235
+ // start building packageableConnection based on database and adding it to current graph
236
+ const packageableConnection = new PackageableConnection(extractElementNameFromPath(connectionValueStepperState.targetConnectionPath));
237
+ connectionValueStepperState.connectionValueState.connection.store =
238
+ PackageableElementExplicitReference.create(databaseBuilderStepperState.databaseBuilderWizardState
239
+ .schemaExplorerState.database);
240
+ packageableConnection.package = getOrCreatePackage(this.queryConnectionEndToEndWorkflowState.graph.root, connectionValueStepperState.targetConnectionPath, true, new Map());
241
+ packageableConnection_setConnectionValue(packageableConnection, connectionValueStepperState.connectionValueState.connection, this.queryConnectionEndToEndWorkflowState.globalEndToEndWorkflowState
242
+ .editorStore.changeDetectionState.observerContext);
243
+ this.queryConnectionEndToEndWorkflowState.packageableConnection =
244
+ packageableConnection;
245
+ this.queryConnectionEndToEndWorkflowState.graph.addElement(packageableConnection, extractPackagePathFromPath(connectionValueStepperState.targetConnectionPath));
246
+ this.queryConnectionEndToEndWorkflowState.setCompileError(undefined);
247
+ this.isCompilingGrammarCode.pass();
248
+ }
249
+ catch (error) {
250
+ if (error instanceof ParserError || error instanceof CompilationError) {
251
+ this.queryConnectionEndToEndWorkflowState.setCompileError(error);
252
+ }
253
+ this.queryConnectionEndToEndWorkflowState.isValid = false;
254
+ assertErrorThrown(error);
255
+ this.editorStore.applicationStore.logService.error(LogEvent.create(LEGEND_STUDIO_APP_EVENT.DATABASE_MODEL_BUILDER_FAILURE), error);
256
+ this.editorStore.applicationStore.notificationService.notifyError(error);
257
+ this.isCompilingGrammarCode.fail();
258
+ }
259
+ finally {
260
+ this.isCompilingGrammarCode.complete();
261
+ }
262
+ }
263
+ buildDatabaseModelBuilderState() {
264
+ const databaseBuilderStepperState = this.queryConnectionEndToEndWorkflowState.activeStepToBaseStepperState.get(QUERY_CONNECTION_WORKFLOW_STEPS.CREATE_DATABASE);
265
+ const databaseModelBuilderState = new DatabaseModelBuilderState(this.editorStore, databaseBuilderStepperState.databaseBuilderWizardState.schemaExplorerState.database, false, this.queryConnectionEndToEndWorkflowState.graph);
266
+ this.queryConnectionEndToEndWorkflowState.activeStepToBaseStepperState.set(QUERY_CONNECTION_WORKFLOW_STEPS.CREATE_CLASS_MAPPING_RUNTIME, new DatabaseModelBuilderStepperState(this.queryConnectionEndToEndWorkflowState, QUERY_CONNECTION_WORKFLOW_STEPS.CREATE_CLASS_MAPPING_RUNTIME, databaseModelBuilderState));
267
+ }
268
+ *handleNext() {
269
+ yield flowResult(this.compileDatabaseGrammarCode()).then(() => {
270
+ this.buildDatabaseModelBuilderState();
271
+ });
272
+ }
273
+ renderStepContent() {
274
+ return (_jsx(QueryConnectionDatabaseGrammarEditor, { queryConnectionEndToEndWorkflowState: this.queryConnectionEndToEndWorkflowState, databaseGrammarEditorStepperState: this }));
275
+ }
276
+ }
277
+ // step 2 - build database
278
+ export class DatabaseBuilderStepperState extends BaseStepperState {
279
+ queryConnectionEndToEndWorkflowState;
280
+ databaseBuilderWizardState;
281
+ isGeneratingDatabaseGrammarCode = ActionState.create();
282
+ editorStore;
283
+ constructor(queryConnectionEndToEndWorkflowState, stepLabel, databaseBuilderWizardState) {
284
+ super(stepLabel);
285
+ makeObservable(this, {
286
+ queryConnectionEndToEndWorkflowState: false,
287
+ stepLabel: observable,
288
+ databaseBuilderWizardState: observable,
289
+ isGeneratingDatabaseGrammarCode: observable,
290
+ handleNext: flow,
291
+ generateDatabaseGrammarCode: flow,
292
+ buildDatabase: flow,
293
+ });
294
+ this.queryConnectionEndToEndWorkflowState =
295
+ queryConnectionEndToEndWorkflowState;
296
+ this.databaseBuilderWizardState = databaseBuilderWizardState;
297
+ this.editorStore =
298
+ this.queryConnectionEndToEndWorkflowState.globalEndToEndWorkflowState.editorStore;
299
+ }
300
+ *buildDatabase() {
301
+ try {
302
+ if (!this.databaseBuilderWizardState.schemaExplorerState.treeData) {
303
+ return;
304
+ }
305
+ yield flowResult(this.databaseBuilderWizardState.schemaExplorerState.updateDatabase());
306
+ }
307
+ catch (error) {
308
+ assertErrorThrown(error);
309
+ this.editorStore.applicationStore.logService.error(LogEvent.create(LEGEND_STUDIO_APP_EVENT.DATABASE_BUILDER_FAILURE), error);
310
+ this.editorStore.applicationStore.notificationService.notifyError(error);
311
+ this.isGeneratingDatabaseGrammarCode.fail();
312
+ }
313
+ }
314
+ *generateDatabaseGrammarCode() {
315
+ try {
316
+ this.isGeneratingDatabaseGrammarCode.inProgress();
317
+ // can't use this.databaseBuilderState.databaseGrammarCode as databaseGrammarCode might not be up to date
318
+ this.queryConnectionEndToEndWorkflowState.setDatabaseGrammarCode(JOIN_CODE_SYNTAX +
319
+ (yield this.editorStore.graphManagerState.graphManager.entitiesToPureCode([
320
+ this.editorStore.graphManagerState.graphManager.elementToEntity(this.databaseBuilderWizardState.schemaExplorerState.database),
321
+ ], { pretty: true })));
322
+ this.isGeneratingDatabaseGrammarCode.pass();
323
+ }
324
+ catch (error) {
325
+ assertErrorThrown(error);
326
+ this.editorStore.applicationStore.logService.error(LogEvent.create(LEGEND_STUDIO_APP_EVENT.DATABASE_MODEL_BUILDER_FAILURE), error);
327
+ this.editorStore.applicationStore.notificationService.notifyError(error);
328
+ this.isGeneratingDatabaseGrammarCode.fail();
329
+ }
330
+ }
331
+ *handleNext() {
332
+ yield flowResult(this.buildDatabase());
333
+ yield flowResult(this.generateDatabaseGrammarCode());
334
+ this.queryConnectionEndToEndWorkflowState.activeStepToBaseStepperState.set(QUERY_CONNECTION_WORKFLOW_STEPS.EDIT_DATABASE, new DatabaseGrammarEditorStepperState(this.queryConnectionEndToEndWorkflowState, QUERY_CONNECTION_WORKFLOW_STEPS.EDIT_DATABASE));
335
+ }
336
+ renderStepContent() {
337
+ return (_jsx(QueryConnectionDatabaseBuilderEditor, { databaseBuilderState: this.databaseBuilderWizardState }));
338
+ }
339
+ }
340
+ // step 1 - build connection
341
+ export class ConnectionValueStepperState extends BaseStepperState {
342
+ queryConnectionEndToEndWorkflowState;
343
+ targetConnectionPath = DEFAULT_CONNECTION_PATH;
344
+ connectionValueState;
345
+ constructor(queryConnectionEndToEndWorkflowState, stepLabel) {
346
+ super(stepLabel);
347
+ makeObservable(this, {
348
+ queryConnectionEndToEndWorkflowState: false,
349
+ stepLabel: observable,
350
+ targetConnectionPath: observable,
351
+ connectionValueState: observable,
352
+ setTargetConnectionPath: action,
353
+ handleNext: flow,
354
+ });
355
+ this.queryConnectionEndToEndWorkflowState =
356
+ queryConnectionEndToEndWorkflowState;
357
+ this.connectionValueState = new RelationalDatabaseConnectionValueState(this.queryConnectionEndToEndWorkflowState.globalEndToEndWorkflowState.editorStore, observe_RelationalDatabaseConnection(this.createConnection, this.queryConnectionEndToEndWorkflowState.globalEndToEndWorkflowState
358
+ .editorStore.changeDetectionState.observerContext));
359
+ }
360
+ get createConnection() {
361
+ const spec = new LocalH2DatasourceSpecification();
362
+ spec.testDataSetupSqls = [DEFAULT_H2_SQL];
363
+ const connection = new RelationalDatabaseConnection(PackageableElementExplicitReference.create(stub_Database()), DatabaseType.H2, spec, new DefaultH2AuthenticationStrategy());
364
+ return connection;
365
+ }
366
+ setTargetConnectionPath(val) {
367
+ this.targetConnectionPath = val;
368
+ }
369
+ *handleNext() {
370
+ const databaseBuilderWizardState = new DatabaseBuilderWizardState(this.queryConnectionEndToEndWorkflowState.globalEndToEndWorkflowState.editorStore, this.connectionValueState.connection, false);
371
+ databaseBuilderWizardState.schemaExplorerState.setMakeTargetDatabasePathEditable(true);
372
+ this.queryConnectionEndToEndWorkflowState.activeStepToBaseStepperState.set(QUERY_CONNECTION_WORKFLOW_STEPS.CREATE_DATABASE, new DatabaseBuilderStepperState(this.queryConnectionEndToEndWorkflowState, QUERY_CONNECTION_WORKFLOW_STEPS.CREATE_DATABASE, databaseBuilderWizardState));
373
+ }
374
+ renderStepContent() {
375
+ return (_jsx(QueryConnectionRelationalConnectionEditor, { queryConnectionEndToEndWorkflowState: this.queryConnectionEndToEndWorkflowState, connectionValueStepperState: this }));
376
+ }
377
+ }
378
+ export class QueryConnectionEndToEndWorkflowState {
379
+ activeStep;
380
+ activeStepToBaseStepperState = new Map();
381
+ activeStepToStepLabel = new Map();
382
+ globalEndToEndWorkflowState;
383
+ queryConnectionEndToEndWorkflowEditorState;
384
+ targetRuntimePath = DEFAULT_RUNTIME_PATH;
385
+ packageableConnection;
386
+ packageableRuntime;
387
+ databaseGrammarCode = '';
388
+ runtimeGrammarCode = '';
389
+ connectionGrammarCode = '';
390
+ finalGrammarCode = '';
391
+ graph;
392
+ isValid;
393
+ compileError;
394
+ constructor(globalEndToEndWorkflowState) {
395
+ makeObservable(this, {
396
+ globalEndToEndWorkflowState: false,
397
+ activeStep: observable,
398
+ activeStepToBaseStepperState: observable,
399
+ compileError: observable,
400
+ packageableRuntime: observable,
401
+ runtimeGrammarCode: observable,
402
+ connectionGrammarCode: observable,
403
+ finalGrammarCode: observable,
404
+ targetRuntimePath: observable,
405
+ isValid: observable,
406
+ queryConnectionEndToEndWorkflowEditorState: observable,
407
+ packageableConnection: observable,
408
+ setActiveStep: action,
409
+ setDatabaseGrammarCode: action,
410
+ setRuntimeGrammarCode: action,
411
+ setTargetRuntimePath: action,
412
+ setFinalGrammarCode: action,
413
+ setCompileError: action,
414
+ reset: action,
415
+ updateRuntime: flow,
416
+ });
417
+ this.activeStep = 0;
418
+ this.isValid = true;
419
+ this.globalEndToEndWorkflowState = globalEndToEndWorkflowState;
420
+ this.activeStepToBaseStepperState.set(QUERY_CONNECTION_WORKFLOW_STEPS.CREATE_CONNECTION, new ConnectionValueStepperState(this, QUERY_CONNECTION_WORKFLOW_STEPS.CREATE_CONNECTION));
421
+ this.queryConnectionEndToEndWorkflowEditorState =
422
+ new QueryConnectionEndToEndWorkflowEditorState(this.globalEndToEndWorkflowState.editorStore);
423
+ this.graph =
424
+ this.globalEndToEndWorkflowState.editorStore.graphManagerState.createNewGraph();
425
+ this.initactiveStepToStepLabel();
426
+ }
427
+ initactiveStepToStepLabel() {
428
+ Object.values(QUERY_CONNECTION_WORKFLOW_STEPS).forEach((val, index) => this.activeStepToStepLabel.set(index, val));
429
+ }
430
+ setActiveStep(step) {
431
+ this.activeStep = step;
432
+ }
433
+ setTargetRuntimePath(val) {
434
+ this.targetRuntimePath = val;
435
+ }
436
+ setRuntimeGrammarCode(val) {
437
+ this.runtimeGrammarCode = val;
438
+ }
439
+ setDatabaseGrammarCode(code) {
440
+ this.databaseGrammarCode = code;
441
+ }
442
+ setFinalGrammarCode(val) {
443
+ this.finalGrammarCode = val;
444
+ }
445
+ setCompileError(err) {
446
+ this.compileError = err;
447
+ }
448
+ *updateRuntime(newPath) {
449
+ if (this.packageableRuntime) {
450
+ this.packageableRuntime.package = getOrCreatePackage(this.graph.root, extractPackagePathFromPath(newPath) ?? newPath, true, new Map());
451
+ if (newPath.includes('::')) {
452
+ this.packageableRuntime.name = extractElementNameFromPath(newPath);
453
+ }
454
+ else {
455
+ this.packageableRuntime.name = newPath;
456
+ }
457
+ this.packageableRuntime.name = extractElementNameFromPath(newPath);
458
+ this.setRuntimeGrammarCode((yield this.globalEndToEndWorkflowState.editorStore.graphManagerState.graphManager.entitiesToPureCode([
459
+ this.globalEndToEndWorkflowState.editorStore.graphManagerState.graphManager.elementToEntity(this.packageableRuntime),
460
+ ], { pretty: true })));
461
+ }
462
+ }
463
+ reset() {
464
+ this.activeStep = -1;
465
+ this.graph =
466
+ this.globalEndToEndWorkflowState.editorStore.graphManagerState.createNewGraph();
467
+ this.packageableConnection = undefined;
468
+ this.packageableRuntime = undefined;
469
+ this.activeStepToBaseStepperState.set(QUERY_CONNECTION_WORKFLOW_STEPS.CREATE_CONNECTION, new ConnectionValueStepperState(this, QUERY_CONNECTION_WORKFLOW_STEPS.CREATE_CONNECTION));
470
+ }
471
+ }
472
+ export class GlobalEndToEndWorkflowState {
473
+ editorStore;
474
+ queryConnectionEndToEndWorkflowState;
475
+ queryConnectionEndToEndWorkflowEditorState;
476
+ constructor(editorStore) {
477
+ makeObservable(this, {
478
+ editorStore: false,
479
+ queryConnectionEndToEndWorkflowState: observable,
480
+ queryConnectionEndToEndWorkflowEditorState: observable,
481
+ });
482
+ this.editorStore = editorStore;
483
+ this.queryConnectionEndToEndWorkflowState =
484
+ new QueryConnectionEndToEndWorkflowState(this);
485
+ this.queryConnectionEndToEndWorkflowEditorState =
486
+ new QueryConnectionEndToEndWorkflowEditorState(this.editorStore);
487
+ }
488
+ visitWorkflow(workflow) {
489
+ if (workflow === SupportedEndToEndWorkflow.CREATE_QUERY_FROM_CONNECTION) {
490
+ this.editorStore.tabManagerState.openTab(this.queryConnectionEndToEndWorkflowEditorState);
491
+ }
492
+ }
493
+ }
494
+ //# sourceMappingURL=GlobalEndToEndFlowState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GlobalEndToEndFlowState.js","sourceRoot":"","sources":["../../../../../src/stores/editor/sidebar-state/end-to-end-workflow/GlobalEndToEndFlowState.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE5E,OAAO,EAAE,0CAA0C,EAAE,MAAM,6EAA6E,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H,CAAC;IAED,KAAK;QACH,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC;QACrB,IAAI,CAAC,KAAK;YACR,IAAI,CAAC,2BAA2B,CAAC,WAAW,CAAC,iBAAiB,CAAC,cAAc,EAAE,CAAC;QAClF,IAAI,CAAC,qBAAqB,GAAG,SAAS,CAAC;QACvC,IAAI,CAAC,kBAAkB,GAAG,SAAS,CAAC;QACpC,IAAI,CAAC,4BAA4B,CAAC,GAAG,CACnC,+BAA+B,CAAC,iBAAiB,EACjD,IAAI,2BAA2B,CAC7B,IAAI,EACJ,+BAA+B,CAAC,iBAAiB,CAClD,CACF,CAAC;IACJ,CAAC;CACF;AAED,MAAM,OAAO,2BAA2B;IACtC,WAAW,CAAc;IACzB,oCAAoC,CAAuC;IAC3E,0CAA0C,CAA6C;IAEvF,YAAY,WAAwB;QAClC,cAAc,CAAC,IAAI,EAAE;YACnB,WAAW,EAAE,KAAK;YAClB,oCAAoC,EAAE,UAAU;YAChD,0CAA0C,EAAE,UAAU;SACvD,CAAC,CAAC;QACH,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,oCAAoC;YACvC,IAAI,oCAAoC,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,0CAA0C;YAC7C,IAAI,0CAA0C,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACrE,CAAC;IAED,aAAa,CAAC,QAAgB;QAC5B,IAAI,QAAQ,KAAK,yBAAyB,CAAC,4BAA4B,EAAE;YACvE,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,OAAO,CACtC,IAAI,CAAC,0CAA0C,CAChD,CAAC;SACH;IACH,CAAC;CACF"}
@@ -21,5 +21,8 @@ export declare class ProjectViewerEditorMode extends EditorMode {
21
21
  constructor(viewerStore: ProjectViewerStore);
22
22
  generateElementLink(elementPath: string): string;
23
23
  generateDependencyElementLink(elementPath: string, dependencyProject: ProjectDependency): string;
24
+ get isInitialized(): boolean;
25
+ get disableEditing(): boolean;
26
+ get supportSdlcOperations(): boolean;
24
27
  }
25
28
  //# sourceMappingURL=ProjectViewerEditorMode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProjectViewerEditorMode.d.ts","sourceRoot":"","sources":["../../../src/stores/project-view/ProjectViewerEditorMode.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAQH,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAOnE,qBAAa,uBAAwB,SAAQ,UAAU;IACrD,WAAW,EAAE,kBAAkB,CAAC;gBAEpB,WAAW,EAAE,kBAAkB;IAK3C,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM;IA0BhD,6BAA6B,CAC3B,WAAW,EAAE,MAAM,EACnB,iBAAiB,EAAE,iBAAiB,GACnC,MAAM;CAUV"}
1
+ {"version":3,"file":"ProjectViewerEditorMode.d.ts","sourceRoot":"","sources":["../../../src/stores/project-view/ProjectViewerEditorMode.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAQH,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAOnE,qBAAa,uBAAwB,SAAQ,UAAU;IACrD,WAAW,EAAE,kBAAkB,CAAC;gBAEpB,WAAW,EAAE,kBAAkB;IAK3C,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM;IA0BhD,6BAA6B,CAC3B,WAAW,EAAE,MAAM,EACnB,iBAAiB,EAAE,iBAAiB,GACnC,MAAM;IAWT,IAAa,aAAa,IAAI,OAAO,CAOpC;IAED,IAAa,cAAc,IAAI,OAAO,CAErC;IAED,IAAa,qBAAqB,IAAI,OAAO,CAE5C;CACF"}
@@ -37,5 +37,15 @@ export class ProjectViewerEditorMode extends EditorMode {
37
37
  ? SNAPSHOT_VERSION_ALIAS
38
38
  : dependencyProject.versionId, elementPath);
39
39
  }
40
+ get isInitialized() {
41
+ return (Boolean(this.viewerStore.editorStore.sdlcState.currentProject &&
42
+ this.viewerStore.editorStore.sdlcState.currentWorkspace) || Boolean(this.viewerStore.projectGAVCoordinates));
43
+ }
44
+ get disableEditing() {
45
+ return true;
46
+ }
47
+ get supportSdlcOperations() {
48
+ return !this.viewerStore.projectGAVCoordinates;
49
+ }
40
50
  }
41
51
  //# sourceMappingURL=ProjectViewerEditorMode.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProjectViewerEditorMode.js","sourceRoot":"","sources":["../../../src/stores/project-view/ProjectViewerEditorMode.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,uBAAuB,EACvB,6BAA6B,EAC7B,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAGrD,OAAO,EACL,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D,MAAM,OAAO,uBAAwB,SAAQ,UAAU;IACrD,WAAW,CAAqB;IAEhC,YAAY,WAA+B;QACzC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAED,mBAAmB,CAAC,WAAmB;QACrC,OAAO,IAAI,CAAC,WAAW,CAAC,qBAAqB;YAC3C,CAAC,CAAC,6BAA6B,CAC3B,IAAI,CAAC,WAAW,CAAC,qBAAqB,CAAC,OAAO,EAC9C,IAAI,CAAC,WAAW,CAAC,qBAAqB,CAAC,UAAU,EACjD,IAAI,C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EAC/C,oBAAoB,CAAC,iBAAiB,CAAC,UAAU,CAAC,EAClD,iBAAiB,CAAC,SAAS,KAAK,qBAAqB;YACnD,CAAC,CAAC,sBAAsB;YACxB,CAAC,CAAC,iBAAiB,CAAC,SAAS,EAC/B,WAAW,CACZ,CAAC;IACJ,CAAC;IAED,IAAa,aAAa;QACxB,OAAO,CACL,OAAO,CACL,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,SAAS,CAAC,cAAc;YACnD,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,SAAS,CAAC,gBAAgB,CAC1D,IAAI,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,qBAAqB,CAAC,CACrD,CAAC;IACJ,CAAC;IAED,IAAa,cAAc;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAa,qBAAqB;QAChC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,qBAAqB,CAAC;IACjD,CAAC;CACF"}
@@ -0,0 +1,28 @@
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 { ProjectDependency } from '@finos/legend-server-sdlc';
17
+ import { EditorMode } from '../editor/EditorMode.js';
18
+ import type { ShowcaseViewerStore } from './ShowcaseViewerStore.js';
19
+ export declare class ShowcaseViewerEditorMode extends EditorMode {
20
+ readonly showcaseViewerStore: ShowcaseViewerStore;
21
+ constructor(showcaseViewerStore: ShowcaseViewerStore);
22
+ generateElementLink(elementPath: string): string;
23
+ generateDependencyElementLink(elementPath: string, dependencyProject: ProjectDependency): string;
24
+ get isInitialized(): boolean;
25
+ get supportSdlcOperations(): boolean;
26
+ get label(): string;
27
+ }
28
+ //# sourceMappingURL=ShowcaseViewerEditorMode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShowcaseViewerEditorMode.d.ts","sourceRoot":"","sources":["../../../src/stores/showcase/ShowcaseViewerEditorMode.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAGpE,qBAAa,wBAAyB,SAAQ,UAAU;IACtD,QAAQ,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;gBAEtC,mBAAmB,EAAE,mBAAmB;IAK3C,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM;IAGhD,6BAA6B,CACpC,WAAW,EAAE,MAAM,EACnB,iBAAiB,EAAE,iBAAiB,GACnC,MAAM;IAIT,IAAa,aAAa,IAAI,OAAO,CAEpC;IAED,IAAa,qBAAqB,IAAI,OAAO,CAE5C;IAED,IAAa,KAAK,IAAI,MAAM,CAE3B;CACF"}