@finos/legend-application-studio 28.18.127 → 28.18.128
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/editor-group/ArtifactGenerationViewer.d.ts +9 -0
- package/lib/components/editor/editor-group/ArtifactGenerationViewer.d.ts.map +1 -1
- package/lib/components/editor/editor-group/ArtifactGenerationViewer.js +5 -1
- package/lib/components/editor/editor-group/ArtifactGenerationViewer.js.map +1 -1
- package/lib/components/editor/editor-group/GrammarTextEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/GrammarTextEditor.js +13 -2
- package/lib/components/editor/editor-group/GrammarTextEditor.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/editor/GraphEditFormModeState.d.ts +2 -0
- package/lib/stores/editor/GraphEditFormModeState.d.ts.map +1 -1
- package/lib/stores/editor/GraphEditFormModeState.js +4 -0
- package/lib/stores/editor/GraphEditFormModeState.js.map +1 -1
- package/lib/stores/editor/GraphEditGrammarModeState.d.ts +6 -1
- package/lib/stores/editor/GraphEditGrammarModeState.d.ts.map +1 -1
- package/lib/stores/editor/GraphEditGrammarModeState.js +18 -2
- package/lib/stores/editor/GraphEditGrammarModeState.js.map +1 -1
- package/lib/stores/editor/GraphEditorMode.d.ts +4 -1
- package/lib/stores/editor/GraphEditorMode.d.ts.map +1 -1
- package/lib/stores/editor/GraphEditorMode.js +4 -0
- package/lib/stores/editor/GraphEditorMode.js.map +1 -1
- package/lib/stores/editor/editor-state/GraphGenerationState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/GraphGenerationState.js +4 -4
- package/lib/stores/editor/editor-state/GraphGenerationState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/ingest/IngestDefinitionEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/ingest/IngestDefinitionEditorState.js +5 -2
- package/lib/stores/editor/editor-state/element-editor-state/ingest/IngestDefinitionEditorState.js.map +1 -1
- package/package.json +13 -13
- package/src/components/editor/editor-group/ArtifactGenerationViewer.tsx +76 -58
- package/src/components/editor/editor-group/GrammarTextEditor.tsx +64 -0
- package/src/stores/editor/GraphEditFormModeState.ts +8 -0
- package/src/stores/editor/GraphEditGrammarModeState.ts +26 -1
- package/src/stores/editor/GraphEditorMode.ts +12 -1
- package/src/stores/editor/editor-state/GraphGenerationState.ts +4 -3
- package/src/stores/editor/editor-state/element-editor-state/ingest/IngestDefinitionEditorState.ts +5 -1
@@ -178,6 +178,7 @@ export class DEPREACTED_GlobalFileGenerationState {
|
|
178
178
|
fileGeneration.value,
|
179
179
|
mode,
|
180
180
|
this.editorStore.graphManagerState.graph,
|
181
|
+
this.editorStore.graphEditorMode.getGraphTextInputOption(),
|
181
182
|
)) as GenerationOutput[];
|
182
183
|
} catch (error) {
|
183
184
|
assertErrorThrown(error);
|
@@ -348,6 +349,7 @@ export class GraphGenerationState {
|
|
348
349
|
(yield this.editorStore.graphManagerState.graphManager.generateModel(
|
349
350
|
node.generationElement.value,
|
350
351
|
this.editorStore.graphManagerState.graph,
|
352
|
+
this.editorStore.graphEditorMode.getGraphTextInputOption(),
|
351
353
|
)) as Entity[];
|
352
354
|
} catch (error) {
|
353
355
|
assertErrorThrown(error);
|
@@ -398,6 +400,7 @@ export class GraphGenerationState {
|
|
398
400
|
artifacts =
|
399
401
|
(yield this.editorStore.graphManagerState.graphManager.generateArtifacts(
|
400
402
|
this.editorStore.graphManagerState.graph,
|
403
|
+
this.editorStore.graphEditorMode.getGraphTextInputOption(),
|
401
404
|
)) as ArtifactGenerationExtensionResult;
|
402
405
|
}
|
403
406
|
|
@@ -559,9 +562,7 @@ export class GraphGenerationState {
|
|
559
562
|
}
|
560
563
|
}
|
561
564
|
if (!reprocess && node.fileNode instanceof FileSystem_File) {
|
562
|
-
this.editorStore.
|
563
|
-
new ArtifactGenerationViewerState(this.editorStore, node.fileNode),
|
564
|
-
);
|
565
|
+
this.editorStore.graphEditorMode.openFileSystem_File(node.fileNode);
|
565
566
|
}
|
566
567
|
this.setSelectedNode(node);
|
567
568
|
this.editorStore.graphState.editorStore.explorerTreeState.setArtifactsGenerationTreeData(
|
package/src/stores/editor/editor-state/element-editor-state/ingest/IngestDefinitionEditorState.ts
CHANGED
@@ -23,6 +23,7 @@ import {
|
|
23
23
|
assertTrue,
|
24
24
|
guaranteeNonNullable,
|
25
25
|
guaranteeType,
|
26
|
+
removePrefix,
|
26
27
|
type GeneratorFn,
|
27
28
|
} from '@finos/legend-shared';
|
28
29
|
import type { IngestionManager } from '../../../../ingestion/IngestionManager.js';
|
@@ -59,6 +60,8 @@ export const generateUrlToDeployOnOpen = (
|
|
59
60
|
),
|
60
61
|
);
|
61
62
|
};
|
63
|
+
|
64
|
+
const PARSER_SECTION = `###Lakehouse`;
|
62
65
|
export class IngestDefinitionEditorState extends ElementEditorState {
|
63
66
|
validationError: IngestDefinitionValidationResponse | undefined;
|
64
67
|
deploymentState = ActionState.create();
|
@@ -127,7 +130,8 @@ export class IngestDefinitionEditorState extends ElementEditorState {
|
|
127
130
|
const response = (yield guaranteeNonNullable(
|
128
131
|
this.ingestionManager,
|
129
132
|
).deploy(
|
130
|
-
|
133
|
+
// remove parser prefix for now since api already expects it to be under lakehouse parser
|
134
|
+
guaranteeNonNullable(removePrefix(this.textContent, PARSER_SECTION)),
|
131
135
|
guaranteeNonNullable(this.ingest.appDirDeployment),
|
132
136
|
this.deploymentState,
|
133
137
|
token,
|