@finos/legend-application-studio 26.1.8 → 26.1.10
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.
- package/lib/components/editor/StatusBar.d.ts.map +1 -1
- package/lib/components/editor/StatusBar.js +1 -4
- package/lib/components/editor/StatusBar.js.map +1 -1
- package/lib/components/editor/editor-group/{FileGenerationViewer.d.ts → ArtifactGenerationViewer.d.ts} +2 -2
- package/lib/components/editor/editor-group/ArtifactGenerationViewer.d.ts.map +1 -0
- package/lib/components/editor/editor-group/ArtifactGenerationViewer.js +32 -0
- package/lib/components/editor/editor-group/ArtifactGenerationViewer.js.map +1 -0
- package/lib/components/editor/editor-group/EditorGroup.js +6 -6
- package/lib/components/editor/editor-group/EditorGroup.js.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.js +2 -2
- package/lib/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.js.map +1 -1
- package/lib/components/editor/editor-group/data-editor/DataElementEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/data-editor/DataElementEditor.js +1 -1
- package/lib/components/editor/editor-group/data-editor/DataElementEditor.js.map +1 -1
- package/lib/components/editor/editor-group/data-editor/EmbeddedDataEditor.d.ts +15 -2
- package/lib/components/editor/editor-group/data-editor/EmbeddedDataEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/data-editor/EmbeddedDataEditor.js +47 -6
- package/lib/components/editor/editor-group/data-editor/EmbeddedDataEditor.js.map +1 -1
- package/lib/components/editor/editor-group/data-editor/RelationalCSVDataEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/data-editor/RelationalCSVDataEditor.js +18 -3
- package/lib/components/editor/editor-group/data-editor/RelationalCSVDataEditor.js.map +1 -1
- package/lib/components/editor/editor-group/element-generation-editor/FileGenerationEditor.js +1 -1
- package/lib/components/editor/editor-group/element-generation-editor/FileGenerationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/element-generation-editor/FileSystemViewer.d.ts.map +1 -1
- package/lib/components/editor/editor-group/element-generation-editor/FileSystemViewer.js +1 -1
- package/lib/components/editor/editor-group/element-generation-editor/FileSystemViewer.js.map +1 -1
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_NewSchemaSetDriver.d.ts.map +1 -1
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_NewSchemaSetDriver.js +2 -2
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_NewSchemaSetDriver.js.map +1 -1
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js +1 -1
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingEditor.js +0 -3
- package/lib/components/editor/editor-group/mapping-editor/MappingEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingTestableEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingTestableEditor.js +36 -72
- package/lib/components/editor/editor-group/mapping-editor/MappingTestableEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestDataEditor.d.ts +5 -0
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestDataEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestDataEditor.js +53 -8
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestDataEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestableEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestableEditor.js +3 -1
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestableEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestsEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestsEditor.js +7 -3
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestsEditor.js.map +1 -1
- package/lib/components/editor/editor-group/testable/TestableSharedComponents.js +1 -1
- package/lib/components/editor/editor-group/testable/TestableSharedComponents.js.map +1 -1
- package/lib/components/editor/panel-group/DevToolPanel.d.ts.map +1 -1
- package/lib/components/editor/panel-group/DevToolPanel.js +4 -1
- package/lib/components/editor/panel-group/DevToolPanel.js.map +1 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.d.ts.map +1 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.js +1 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.js.map +1 -1
- package/lib/components/editor/side-bar/Explorer.js +1 -1
- package/lib/components/editor/side-bar/Explorer.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +4 -4
- package/lib/stores/editor/EditorGraphState.d.ts.map +1 -1
- package/lib/stores/editor/EditorGraphState.js +7 -6
- package/lib/stores/editor/EditorGraphState.js.map +1 -1
- package/lib/stores/editor/EditorStore.js +2 -2
- package/lib/stores/editor/EditorStore.js.map +1 -1
- package/lib/stores/editor/ExplorerTreeState.d.ts +3 -3
- package/lib/stores/editor/ExplorerTreeState.d.ts.map +1 -1
- package/lib/stores/editor/ExplorerTreeState.js +10 -10
- package/lib/stores/editor/ExplorerTreeState.js.map +1 -1
- package/lib/stores/editor/NewElementState.d.ts +3 -3
- package/lib/stores/editor/NewElementState.d.ts.map +1 -1
- package/lib/stores/editor/NewElementState.js +2 -2
- package/lib/stores/editor/NewElementState.js.map +1 -1
- package/lib/stores/editor/editor-state/{FileGenerationViewerState.d.ts → ArtifactGenerationViewerState.d.ts} +4 -4
- package/lib/stores/editor/editor-state/ArtifactGenerationViewerState.d.ts.map +1 -0
- package/lib/stores/editor/editor-state/{FileGenerationViewerState.js → ArtifactGenerationViewerState.js} +10 -9
- package/lib/stores/editor/editor-state/ArtifactGenerationViewerState.js.map +1 -0
- package/lib/stores/editor/editor-state/FileGenerationState.js +1 -1
- package/lib/stores/editor/editor-state/FileGenerationState.js.map +1 -1
- package/lib/stores/editor/editor-state/GraphGenerationState.d.ts +32 -19
- package/lib/stores/editor/editor-state/GraphGenerationState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/GraphGenerationState.js +173 -113
- package/lib/stores/editor/editor-state/GraphGenerationState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/ElementEditorState.js +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/ElementEditorState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.d.ts +22 -1
- package/lib/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.js +56 -5
- package/lib/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.d.ts +12 -12
- package/lib/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.js +113 -61
- package/lib/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/ServiceEditorState.d.ts +4 -2
- package/lib/stores/editor/editor-state/element-editor-state/service/ServiceEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/ServiceEditorState.js +23 -9
- package/lib/stores/editor/editor-state/element-editor-state/service/ServiceEditorState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestDataState.d.ts +5 -2
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestDataState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestDataState.js +23 -16
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestDataState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestEditorState.d.ts +3 -2
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestEditorState.js +11 -7
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestEditorState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestableState.d.ts +3 -2
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestableState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestableState.js +29 -8
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestableState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/testable/TestAssertionState.d.ts +2 -2
- package/lib/stores/editor/editor-state/element-editor-state/testable/TestAssertionState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/testable/TestAssertionState.js +8 -6
- package/lib/stores/editor/editor-state/element-editor-state/testable/TestAssertionState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/testable/TestableEditorState.d.ts +14 -2
- package/lib/stores/editor/editor-state/element-editor-state/testable/TestableEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/testable/TestableEditorState.js +75 -5
- package/lib/stores/editor/editor-state/element-editor-state/testable/TestableEditorState.js.map +1 -1
- package/lib/stores/editor/utils/MockDataUtils.d.ts +4 -1
- package/lib/stores/editor/utils/MockDataUtils.d.ts.map +1 -1
- package/lib/stores/editor/utils/MockDataUtils.js +70 -2
- package/lib/stores/editor/utils/MockDataUtils.js.map +1 -1
- package/lib/stores/editor/utils/TestableUtils.d.ts +1 -2
- package/lib/stores/editor/utils/TestableUtils.d.ts.map +1 -1
- package/lib/stores/editor/utils/TestableUtils.js +4 -13
- package/lib/stores/editor/utils/TestableUtils.js.map +1 -1
- package/lib/stores/graph-modifier/DSL_Data_GraphModifierHelper.d.ts +6 -2
- package/lib/stores/graph-modifier/DSL_Data_GraphModifierHelper.d.ts.map +1 -1
- package/lib/stores/graph-modifier/DSL_Data_GraphModifierHelper.js +23 -4
- package/lib/stores/graph-modifier/DSL_Data_GraphModifierHelper.js.map +1 -1
- package/lib/stores/graph-modifier/DSL_Mapping_GraphModifierHelper.js +1 -1
- package/lib/stores/graph-modifier/DSL_Mapping_GraphModifierHelper.js.map +1 -1
- package/lib/stores/graph-modifier/STO_Relational_GraphModifierHelper.d.ts +1 -0
- package/lib/stores/graph-modifier/STO_Relational_GraphModifierHelper.d.ts.map +1 -1
- package/lib/stores/graph-modifier/STO_Relational_GraphModifierHelper.js +3 -0
- package/lib/stores/graph-modifier/STO_Relational_GraphModifierHelper.js.map +1 -1
- package/lib/stores/project-view/ProjectViewerStore.js +1 -1
- package/lib/stores/project-view/ProjectViewerStore.js.map +1 -1
- package/package.json +14 -14
- package/src/components/editor/StatusBar.tsx +1 -4
- package/src/components/editor/editor-group/{FileGenerationViewer.tsx → ArtifactGenerationViewer.tsx} +28 -25
- package/src/components/editor/editor-group/EditorGroup.tsx +6 -6
- package/src/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.tsx +13 -0
- package/src/components/editor/editor-group/data-editor/DataElementEditor.tsx +1 -1
- package/src/components/editor/editor-group/data-editor/EmbeddedDataEditor.tsx +130 -4
- package/src/components/editor/editor-group/data-editor/RelationalCSVDataEditor.tsx +65 -0
- package/src/components/editor/editor-group/element-generation-editor/FileGenerationEditor.tsx +1 -1
- package/src/components/editor/editor-group/element-generation-editor/FileSystemViewer.tsx +4 -4
- package/src/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_NewSchemaSetDriver.tsx +6 -3
- package/src/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.tsx +1 -1
- package/src/components/editor/editor-group/mapping-editor/MappingEditor.tsx +0 -6
- package/src/components/editor/editor-group/mapping-editor/MappingTestableEditor.tsx +159 -366
- package/src/components/editor/editor-group/service-editor/testable/ServiceTestDataEditor.tsx +187 -61
- package/src/components/editor/editor-group/service-editor/testable/ServiceTestableEditor.tsx +26 -18
- package/src/components/editor/editor-group/service-editor/testable/ServiceTestsEditor.tsx +85 -83
- package/src/components/editor/editor-group/testable/TestableSharedComponents.tsx +2 -2
- package/src/components/editor/panel-group/DevToolPanel.tsx +14 -0
- package/src/components/editor/side-bar/CreateNewElementModal.tsx +3 -5
- package/src/components/editor/side-bar/Explorer.tsx +1 -1
- package/src/stores/editor/EditorGraphState.ts +7 -6
- package/src/stores/editor/EditorStore.ts +2 -2
- package/src/stores/editor/ExplorerTreeState.ts +10 -10
- package/src/stores/editor/NewElementState.ts +5 -5
- package/src/stores/editor/editor-state/{FileGenerationViewerState.ts → ArtifactGenerationViewerState.ts} +12 -9
- package/src/stores/editor/editor-state/FileGenerationState.ts +1 -1
- package/src/stores/editor/editor-state/GraphGenerationState.ts +258 -170
- package/src/stores/editor/editor-state/element-editor-state/ElementEditorState.ts +1 -1
- package/src/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.ts +75 -4
- package/src/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.ts +157 -69
- package/src/stores/editor/editor-state/element-editor-state/service/ServiceEditorState.ts +45 -10
- package/src/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestDataState.ts +37 -15
- package/src/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestEditorState.ts +15 -8
- package/src/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestableState.ts +57 -6
- package/src/stores/editor/editor-state/element-editor-state/testable/TestAssertionState.ts +10 -6
- package/src/stores/editor/editor-state/element-editor-state/testable/TestableEditorState.ts +92 -3
- package/src/stores/editor/utils/MockDataUtils.ts +109 -1
- package/src/stores/editor/utils/TestableUtils.ts +4 -19
- package/src/stores/graph-modifier/DSL_Data_GraphModifierHelper.ts +45 -6
- package/src/stores/graph-modifier/DSL_Mapping_GraphModifierHelper.ts +1 -1
- package/src/stores/graph-modifier/STO_Relational_GraphModifierHelper.ts +6 -0
- package/src/stores/project-view/ProjectViewerStore.ts +1 -1
- package/tsconfig.json +2 -2
- package/lib/components/editor/editor-group/FileGenerationViewer.d.ts.map +0 -1
- package/lib/components/editor/editor-group/FileGenerationViewer.js +0 -32
- package/lib/components/editor/editor-group/FileGenerationViewer.js.map +0 -1
- package/lib/stores/editor/editor-state/FileGenerationViewerState.d.ts.map +0 -1
- package/lib/stores/editor/editor-state/FileGenerationViewerState.js.map +0 -1
@@ -25,19 +25,17 @@ import {
|
|
25
25
|
type RelationalDatabaseConnection,
|
26
26
|
type XmlModelConnection,
|
27
27
|
type Runtime,
|
28
|
-
type IdentifiedConnection,
|
29
28
|
type TestAssertion,
|
30
29
|
type AtomicTest,
|
31
30
|
type Class,
|
32
31
|
ExternalFormatData,
|
33
32
|
RelationalCSVData,
|
34
33
|
ConnectionTestData,
|
35
|
-
EngineRuntime,
|
36
|
-
RuntimePointer,
|
37
34
|
EqualToJson,
|
38
35
|
DEFAULT_TEST_ASSERTION_PREFIX,
|
39
36
|
RelationalCSVDataTable,
|
40
37
|
type INTERNAL__UnknownConnection,
|
38
|
+
getAllIdentifiedConnectionsFromRuntime,
|
41
39
|
} from '@finos/legend-graph';
|
42
40
|
import {
|
43
41
|
assertTrue,
|
@@ -60,6 +58,9 @@ export const validateTestableId = (
|
|
60
58
|
id: string | undefined,
|
61
59
|
possibleIds: string[] | undefined,
|
62
60
|
): string | undefined => {
|
61
|
+
if (id === undefined) {
|
62
|
+
return undefined;
|
63
|
+
}
|
63
64
|
if (!id) {
|
64
65
|
return 'ID is required';
|
65
66
|
} else if (id.includes(' ')) {
|
@@ -90,22 +91,6 @@ export const createDefaultEqualToJSONTestAssertion = (
|
|
90
91
|
return assertion;
|
91
92
|
};
|
92
93
|
|
93
|
-
export const getAllIdentifiedConnectionsFromRuntime = (
|
94
|
-
runtime: Runtime,
|
95
|
-
): IdentifiedConnection[] => {
|
96
|
-
const resolvedRuntimes: EngineRuntime[] = [];
|
97
|
-
if (runtime instanceof RuntimePointer) {
|
98
|
-
resolvedRuntimes.push(runtime.packageableRuntime.value.runtimeValue);
|
99
|
-
} else if (runtime instanceof EngineRuntime) {
|
100
|
-
resolvedRuntimes.push(runtime);
|
101
|
-
}
|
102
|
-
return resolvedRuntimes
|
103
|
-
.flatMap((e) =>
|
104
|
-
e.connections.map((connection) => connection.storeConnections),
|
105
|
-
)
|
106
|
-
.flat();
|
107
|
-
};
|
108
|
-
|
109
94
|
export const createEmbeddedDataFromClass = (
|
110
95
|
_class: Class,
|
111
96
|
editorStore: EditorStore,
|
@@ -24,10 +24,14 @@ import {
|
|
24
24
|
type DataElementReference,
|
25
25
|
type RelationalCSVDataTable,
|
26
26
|
type RelationalCSVData,
|
27
|
+
type ModelData,
|
28
|
+
type PackageableElementReference,
|
29
|
+
type ModelEmbeddedData,
|
27
30
|
observe_EmbeddedData,
|
28
31
|
observe_DataElement,
|
29
32
|
observe_RelationalDataTable,
|
30
33
|
PackageableElementExplicitReference,
|
34
|
+
observe_ModelData,
|
31
35
|
} from '@finos/legend-graph';
|
32
36
|
import { addUniqueEntry, deleteEntry } from '@finos/legend-shared';
|
33
37
|
import { action } from 'mobx';
|
@@ -54,12 +58,6 @@ export const externalFormatData_setData = action(
|
|
54
58
|
},
|
55
59
|
);
|
56
60
|
|
57
|
-
export const modelStoreData_setInstance = action(
|
58
|
-
(modelStoreData: ModelStoreData, value: Map<Class, object>): void => {
|
59
|
-
modelStoreData.instances = value;
|
60
|
-
},
|
61
|
-
);
|
62
|
-
|
63
61
|
export const relationalData_setTableValues = action(
|
64
62
|
(data: RelationalCSVDataTable, values: string): void => {
|
65
63
|
data.values = values;
|
@@ -102,3 +100,44 @@ export const dataElementReference_setDataElement = action(
|
|
102
100
|
);
|
103
101
|
},
|
104
102
|
);
|
103
|
+
|
104
|
+
// Model Store
|
105
|
+
export const modelStoreData_addModelData = action(
|
106
|
+
(
|
107
|
+
modelStoreData: ModelStoreData,
|
108
|
+
value: ModelData,
|
109
|
+
context: ObserverContext,
|
110
|
+
): void => {
|
111
|
+
const entries = modelStoreData.modelData ?? [];
|
112
|
+
if (!modelStoreData.modelData) {
|
113
|
+
modelStoreData.modelData = entries;
|
114
|
+
}
|
115
|
+
addUniqueEntry(entries, observe_ModelData(value, context));
|
116
|
+
},
|
117
|
+
);
|
118
|
+
|
119
|
+
export const modelStoreData_setDataModelModel = action(
|
120
|
+
(modelData: ModelData, val: PackageableElementReference<Class>): void => {
|
121
|
+
modelData.model = val;
|
122
|
+
},
|
123
|
+
);
|
124
|
+
|
125
|
+
export const modelStoreData_deleteModelData = action(
|
126
|
+
(modelStoreData: ModelStoreData, value: ModelData): void => {
|
127
|
+
if (modelStoreData.modelData) {
|
128
|
+
deleteEntry(modelStoreData.modelData, value);
|
129
|
+
}
|
130
|
+
},
|
131
|
+
);
|
132
|
+
|
133
|
+
export const modelStoreData_setModelDataClass = action(
|
134
|
+
(modelData: ModelData, val: PackageableElementReference<Class>): void => {
|
135
|
+
modelData.model = val;
|
136
|
+
},
|
137
|
+
);
|
138
|
+
|
139
|
+
export const modelStoreData_setModelDataData = action(
|
140
|
+
(modelData: ModelEmbeddedData, val: EmbeddedData): void => {
|
141
|
+
modelData.data = val;
|
142
|
+
},
|
143
|
+
);
|
@@ -204,7 +204,7 @@ export const mapping_deleteTestSuite = action(
|
|
204
204
|
|
205
205
|
export const mappingTestable_setQuery = action(
|
206
206
|
(test: MappingQueryTest | MappingQueryTestSuite, value: RawLambda): void => {
|
207
|
-
test.
|
207
|
+
test.func = observe_RawLambda(value);
|
208
208
|
},
|
209
209
|
);
|
210
210
|
|
@@ -309,6 +309,12 @@ export const snowflakeDatasourceSpec_setQuotedIdentifiersIgnoreCase = action(
|
|
309
309
|
},
|
310
310
|
);
|
311
311
|
|
312
|
+
export const snowflakeDatasourceSpec_setEnableQueryTags = action(
|
313
|
+
(spec: SnowflakeDatasourceSpecification, val: boolean | undefined): void => {
|
314
|
+
spec.enableQueryTags = val;
|
315
|
+
},
|
316
|
+
);
|
317
|
+
|
312
318
|
export const snowflakeDatasourceSpec_setProxyHost = action(
|
313
319
|
(spec: SnowflakeDatasourceSpecification, val: string | undefined): void => {
|
314
320
|
spec.proxyHost = val;
|
@@ -439,7 +439,7 @@ export class ProjectViewerStore {
|
|
439
439
|
|
440
440
|
// fetch available editor configurations
|
441
441
|
yield Promise.all([
|
442
|
-
this.editorStore.graphState.graphGenerationState.fetchAvailableFileGenerationDescriptions(),
|
442
|
+
this.editorStore.graphState.graphGenerationState.globalFileGenerationState.fetchAvailableFileGenerationDescriptions(),
|
443
443
|
this.editorStore.graphState.graphGenerationState.externalFormatState.fetchExternalFormatDescriptions(),
|
444
444
|
this.editorStore.graphState.graphGenerationState.externalFormatState.fetchExternalFormatDescriptions(),
|
445
445
|
this.editorStore.graphState.fetchAvailableFunctionActivatorConfigurations(),
|
package/tsconfig.json
CHANGED
@@ -71,10 +71,10 @@
|
|
71
71
|
"./src/stores/editor/QuickInputState.ts",
|
72
72
|
"./src/stores/editor/StandardEditorMode.ts",
|
73
73
|
"./src/stores/editor/__test-utils__/EditorStoreTestUtils.ts",
|
74
|
+
"./src/stores/editor/editor-state/ArtifactGenerationViewerState.ts",
|
74
75
|
"./src/stores/editor/editor-state/EditorState.ts",
|
75
76
|
"./src/stores/editor/editor-state/ExternalFormatState.ts",
|
76
77
|
"./src/stores/editor/editor-state/FileGenerationState.ts",
|
77
|
-
"./src/stores/editor/editor-state/FileGenerationViewerState.ts",
|
78
78
|
"./src/stores/editor/editor-state/FileSystemState.ts",
|
79
79
|
"./src/stores/editor/editor-state/GenerationSpecificationEditorState.ts",
|
80
80
|
"./src/stores/editor/editor-state/GrammarTextEditorState.ts",
|
@@ -180,8 +180,8 @@
|
|
180
180
|
"./src/components/editor/StatusBar.tsx",
|
181
181
|
"./src/components/editor/__test-utils__/EditorComponentTestUtils.tsx",
|
182
182
|
"./src/components/editor/command-center/ProjectSearchCommand.tsx",
|
183
|
+
"./src/components/editor/editor-group/ArtifactGenerationViewer.tsx",
|
183
184
|
"./src/components/editor/editor-group/EditorGroup.tsx",
|
184
|
-
"./src/components/editor/editor-group/FileGenerationViewer.tsx",
|
185
185
|
"./src/components/editor/editor-group/FunctionEditor.tsx",
|
186
186
|
"./src/components/editor/editor-group/GenerationSpecificationEditor.tsx",
|
187
187
|
"./src/components/editor/editor-group/GrammarTextEditor.tsx",
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"FileGenerationViewer.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/editor-group/FileGenerationViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAmBH,eAAO,MAAM,oBAAoB;;CAwE/B,CAAC"}
|
@@ -1,32 +0,0 @@
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
-
/**
|
3
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
4
|
-
*
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
* you may not use this file except in compliance with the License.
|
7
|
-
* You may obtain a copy of the License at
|
8
|
-
*
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
*
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
* See the License for the specific language governing permissions and
|
15
|
-
* limitations under the License.
|
16
|
-
*/
|
17
|
-
import { observer } from 'mobx-react-lite';
|
18
|
-
import { FileGenerationViewerState, getTextContent, getEditorLanguageForFormat, } from '../../../stores/editor/editor-state/FileGenerationViewerState.js';
|
19
|
-
import { LockIcon, FireIcon, StickArrowCircleRightIcon, Panel, PanelContent, } from '@finos/legend-art';
|
20
|
-
import { useEditorStore } from '../EditorStoreProvider.js';
|
21
|
-
import { CodeEditor } from '@finos/legend-lego/code-editor';
|
22
|
-
export const FileGenerationViewer = observer(() => {
|
23
|
-
const editorStore = useEditorStore();
|
24
|
-
const generatedFileState = editorStore.tabManagerState.getCurrentEditorState(FileGenerationViewerState);
|
25
|
-
const generatedFile = generatedFileState.file;
|
26
|
-
const fileGeneration = generatedFile.parentId
|
27
|
-
? editorStore.graphManagerState.graph.getNullableFileGeneration(generatedFile.parentId)
|
28
|
-
: undefined;
|
29
|
-
const visitFileGeneration = (fg) => editorStore.graphEditorMode.openElement(fg);
|
30
|
-
return (_jsx("div", { className: "file-generation-viewer", children: _jsxs(Panel, { children: [_jsx("div", { className: "panel__header", children: _jsxs("div", { className: "panel__header__title", children: [_jsx("div", { className: "uml-element-editor__header__lock", children: _jsx(LockIcon, {}) }), _jsx("div", { className: "panel__header__title__label", children: "generated-file" }), _jsx("div", { className: "panel__header__title__content", children: generatedFile.name })] }) }), _jsxs("div", { className: "panel file-generation-viewer__content", children: [_jsxs("div", { className: "panel__header", children: [_jsx("div", { className: "panel__header__title", children: _jsx("div", { className: "panel__header__title__label", children: fileGeneration?.type }) }), _jsx("div", { className: "panel__header__actions", children: fileGeneration && (_jsxs("button", { className: "uml-element-editor__header__generation-origin", onClick: () => visitFileGeneration(fileGeneration), tabIndex: -1, title: `Visit generation parent '${fileGeneration.path}'`, children: [_jsx("div", { className: "uml-element-editor__header__generation-origin__label", children: _jsx(FireIcon, {}) }), _jsx("div", { className: "uml-element-editor__header__generation-origin__parent-name", children: fileGeneration.name }), _jsx("div", { className: "uml-element-editor__header__generation-origin__visit-btn", children: _jsx(StickArrowCircleRightIcon, {}) })] })) })] }), _jsx(PanelContent, { children: _jsx(CodeEditor, { inputValue: getTextContent(generatedFile.content, generatedFile.format), isReadOnly: true, language: getEditorLanguageForFormat(generatedFile.format) }) })] })] }) }));
|
31
|
-
});
|
32
|
-
//# sourceMappingURL=FileGenerationViewer.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"FileGenerationViewer.js","sourceRoot":"","sources":["../../../../src/components/editor/editor-group/FileGenerationViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,yBAAyB,EACzB,cAAc,EACd,0BAA0B,GAC3B,MAAM,kEAAkE,CAAC;AAC1E,OAAO,EACL,QAAQ,EACR,QAAQ,EACR,yBAAyB,EACzB,KAAK,EACL,YAAY,GACb,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAE5D,MAAM,CAAC,MAAM,oBAAoB,GAAG,QAAQ,CAAC,GAAG,EAAE;IAChD,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,kBAAkB,GAAG,WAAW,CAAC,eAAe,CAAC,qBAAqB,CAC1E,yBAAyB,CAC1B,CAAC;IACF,MAAM,aAAa,GAAG,kBAAkB,CAAC,IAAI,CAAC;IAC9C,MAAM,cAAc,GAAG,aAAa,CAAC,QAAQ;QAC3C,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,KAAK,CAAC,yBAAyB,CAC3D,aAAa,CAAC,QAAQ,CACvB;QACH,CAAC,CAAC,SAAS,CAAC;IACd,MAAM,mBAAmB,GAAG,CAAC,EAA+B,EAAQ,EAAE,CACpE,WAAW,CAAC,eAAe,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;IAE9C,OAAO,CACL,cAAK,SAAS,EAAC,wBAAwB,YACrC,MAAC,KAAK,eACJ,cAAK,SAAS,EAAC,eAAe,YAC5B,eAAK,SAAS,EAAC,sBAAsB,aAEjC,cAAK,SAAS,EAAC,kCAAkC,YAC/C,KAAC,QAAQ,KAAG,GACR,EAER,cAAK,SAAS,EAAC,6BAA6B,+BAAqB,EACjE,cAAK,SAAS,EAAC,+BAA+B,YAC3C,aAAa,CAAC,IAAI,GACf,IACF,GACF,EACN,eAAK,SAAS,EAAC,uCAAuC,aACpD,eAAK,SAAS,EAAC,eAAe,aAC5B,cAAK,SAAS,EAAC,sBAAsB,YACnC,cAAK,SAAS,EAAC,6BAA6B,YACzC,cAAc,EAAE,IAAI,GACjB,GACF,EACN,cAAK,SAAS,EAAC,wBAAwB,YACpC,cAAc,IAAI,CACjB,kBACE,SAAS,EAAC,+CAA+C,EACzD,OAAO,EAAE,GAAS,EAAE,CAAC,mBAAmB,CAAC,cAAc,CAAC,EACxD,QAAQ,EAAE,CAAC,CAAC,EACZ,KAAK,EAAE,4BAA4B,cAAc,CAAC,IAAI,GAAG,aAEzD,cAAK,SAAS,EAAC,sDAAsD,YACnE,KAAC,QAAQ,KAAG,GACR,EACN,cAAK,SAAS,EAAC,4DAA4D,YACxE,cAAc,CAAC,IAAI,GAChB,EACN,cAAK,SAAS,EAAC,0DAA0D,YACvE,KAAC,yBAAyB,KAAG,GACzB,IACC,CACV,GACG,IACF,EACN,KAAC,YAAY,cACX,KAAC,UAAU,IACT,UAAU,EAAE,cAAc,CACxB,aAAa,CAAC,OAAO,EACrB,aAAa,CAAC,MAAM,CACrB,EACD,UAAU,EAAE,IAAI,EAChB,QAAQ,EAAE,0BAA0B,CAAC,aAAa,CAAC,MAAM,CAAC,GAC1D,GACW,IACX,IACA,GACJ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"FileGenerationViewerState.d.ts","sourceRoot":"","sources":["../../../../src/stores/editor/editor-state/FileGenerationViewerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAGvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAEtE,eAAO,MAAM,cAAc,YAChB,MAAM,UACP,MAAM,GAAG,SAAS,KACzB,MAWF,CAAC;AAEF,eAAO,MAAM,0BAA0B,YAC5B,MAAM,KACd,oBASF,CAAC;AAEF,qBAAa,yBAA0B,SAAQ,WAAW;IACxD,IAAI,EAAE,eAAe,CAAC;gBAEV,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,eAAe;IAY3D,IAAI,KAAK,IAAI,MAAM,CAElB;IAEQ,KAAK,CAAC,GAAG,EAAE,WAAW,GAAG,OAAO;IAIzC,IAAI,iBAAiB,IAAI,MAAM,CAE9B;CACF"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"FileGenerationViewerState.js","sourceRoot":"","sources":["../../../../src/stores/editor/editor-state/FileGenerationViewerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAE5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAEtE,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,OAAe,EACf,MAA0B,EAClB,EAAE;IACV,QAAQ,MAAM,EAAE,WAAW,EAAE,EAAE;QAC7B,KAAK,oBAAoB,CAAC,IAAI;YAC5B,OAAO,CACL,kBAAkB,CAAC,GAAG,EAAE,CACtB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,gBAAgB,CAAC,CACjE,IAAI,OAAO,CACb,CAAC;QACJ;YACE,OAAO,OAAO,CAAC;KAClB;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,CACxC,MAAe,EACO,EAAE;IACxB,QAAQ,MAAM,EAAE,WAAW,EAAE,EAAE;QAC7B,KAAK,oBAAoB,CAAC,IAAI;YAC5B,OAAO,oBAAoB,CAAC,IAAI,CAAC;QACnC,KAAK,oBAAoB,CAAC,IAAI;YAC5B,OAAO,oBAAoB,CAAC,IAAI,CAAC;QACnC;YACE,OAAO,oBAAoB,CAAC,IAAI,CAAC;KACpC;AACH,CAAC,CAAC;AAEF,MAAM,OAAO,yBAA0B,SAAQ,WAAW;IACxD,IAAI,CAAkB;IAEtB,YAAY,WAAwB,EAAE,IAAqB;QACzD,KAAK,CAAC,WAAW,CAAC,CAAC;QAEnB,cAAc,CAAC,IAAI,EAAE;YACnB,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,QAAQ;YACf,iBAAiB,EAAE,QAAQ;SAC5B,CAAC,CAAC;QAEH,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;IACxB,CAAC;IAEQ,KAAK,CAAC,GAAgB;QAC7B,OAAO,GAAG,YAAY,yBAAyB,IAAI,GAAG,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC;IAC5E,CAAC;IAED,IAAI,iBAAiB;QACnB,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;IACxB,CAAC;CACF"}
|