@finos/legend-application-studio 23.1.6 → 23.1.8
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/application/LegendStudio.d.ts.map +1 -1
- package/lib/application/LegendStudio.js +3 -14
- package/lib/application/LegendStudio.js.map +1 -1
- package/lib/application/LegendStudioDocumentation.d.ts +5 -0
- package/lib/application/LegendStudioDocumentation.d.ts.map +1 -1
- package/lib/application/LegendStudioDocumentation.js +5 -0
- package/lib/application/LegendStudioDocumentation.js.map +1 -1
- package/lib/components/editor/edit-panel/EditPanel.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/EditPanel.js +1 -1
- package/lib/components/editor/edit-panel/EditPanel.js.map +1 -1
- package/lib/components/editor/edit-panel/FileGenerationViewer.js +2 -2
- package/lib/components/editor/edit-panel/FileGenerationViewer.js.map +1 -1
- package/lib/components/editor/edit-panel/GrammarTextEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/GrammarTextEditor.js +12 -11
- package/lib/components/editor/edit-panel/GrammarTextEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/ModelImporter.js +5 -4
- package/lib/components/editor/edit-panel/ModelImporter.js.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.js +3 -2
- package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.js.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.js +3 -2
- package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/data-editor/DataElementEditor.js +5 -3
- package/lib/components/editor/edit-panel/data-editor/DataElementEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.js +3 -2
- package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.js +3 -2
- package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.js +12 -11
- package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/diff-editor/EntityDiffView.js +2 -2
- package/lib/components/editor/edit-panel/diff-editor/EntityDiffView.js.map +1 -1
- package/lib/components/editor/edit-panel/element-generation-editor/ElementNativeView.js +5 -4
- package/lib/components/editor/edit-panel/element-generation-editor/ElementNativeView.js.map +1 -1
- package/lib/components/editor/edit-panel/element-generation-editor/FileSystemViewer.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/element-generation-editor/FileSystemViewer.js +3 -2
- package/lib/components/editor/edit-panel/element-generation-editor/FileSystemViewer.js.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js +4 -3
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.js +3 -2
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingEditor.js +3 -3
- package/lib/components/editor/edit-panel/mapping-editor/MappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.d.ts +2 -2
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.js +10 -8
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.d.ts +6 -6
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.js +8 -7
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestsExplorer.d.ts +4 -4
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestsExplorer.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestsExplorer.js.map +1 -1
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js +3 -2
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceEditor.js +3 -2
- package/lib/components/editor/edit-panel/service-editor/ServiceEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js +6 -5
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.js +3 -2
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/testable/TestAssertionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/testable/TestAssertionEditor.js +3 -2
- package/lib/components/editor/edit-panel/testable/TestAssertionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js +3 -2
- package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js.map +1 -1
- package/lib/components/editor/side-bar/Explorer.js +7 -6
- package/lib/components/editor/side-bar/Explorer.js.map +1 -1
- package/lib/components/editor/side-bar/WorkflowManager.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkflowManager.js +3 -2
- package/lib/components/editor/side-bar/WorkflowManager.js.map +1 -1
- package/lib/components/editor/side-bar/testable/GlobalTestRunner.d.ts.map +1 -1
- package/lib/components/editor/side-bar/testable/GlobalTestRunner.js +4 -3
- package/lib/components/editor/side-bar/testable/GlobalTestRunner.js.map +1 -1
- package/lib/components/extensions/Core_LegendStudioApplicationPlugin.d.ts +2 -1
- package/lib/components/extensions/Core_LegendStudioApplicationPlugin.d.ts.map +1 -1
- package/lib/components/extensions/Core_LegendStudioApplicationPlugin.js +14 -1
- package/lib/components/extensions/Core_LegendStudioApplicationPlugin.js.map +1 -1
- package/lib/components/shared/DiffView.d.ts +2 -2
- package/lib/components/shared/DiffView.d.ts.map +1 -1
- package/lib/components/shared/DiffView.js +8 -7
- package/lib/components/shared/DiffView.js.map +1 -1
- package/lib/components/workspace-setup/CreateProjectModal.d.ts.map +1 -1
- package/lib/components/workspace-setup/CreateProjectModal.js +2 -1
- package/lib/components/workspace-setup/CreateProjectModal.js.map +1 -1
- package/lib/components/workspace-setup/CreateWorkspaceModal.d.ts.map +1 -1
- package/lib/components/workspace-setup/CreateWorkspaceModal.js +2 -1
- package/lib/components/workspace-setup/CreateWorkspaceModal.js.map +1 -1
- package/lib/components/workspace-setup/WorkspaceSetup.d.ts.map +1 -1
- package/lib/components/workspace-setup/WorkspaceSetup.js +2 -1
- package/lib/components/workspace-setup/WorkspaceSetup.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/package.json +8 -11
- package/lib/stores/editor/EditorGraphState.d.ts.map +1 -1
- package/lib/stores/editor/EditorGraphState.js +1 -1
- package/lib/stores/editor/EditorGraphState.js.map +1 -1
- package/lib/stores/editor/EditorTabManagerState.d.ts +1 -1
- package/lib/stores/editor/EditorTabManagerState.d.ts.map +1 -1
- package/lib/stores/editor/EditorTabManagerState.js +1 -1
- package/lib/stores/editor/EditorTabManagerState.js.map +1 -1
- package/lib/stores/editor/GraphEditFormModeState.d.ts.map +1 -1
- package/lib/stores/editor/GraphEditFormModeState.js.map +1 -1
- package/lib/stores/editor/editor-state/EditorState.d.ts +1 -1
- package/lib/stores/editor/editor-state/EditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/EditorState.js +1 -1
- package/lib/stores/editor/editor-state/EditorState.js.map +1 -1
- package/lib/stores/editor/editor-state/FileGenerationViewerState.d.ts +2 -2
- package/lib/stores/editor/editor-state/FileGenerationViewerState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/FileGenerationViewerState.js +7 -7
- package/lib/stores/editor/editor-state/FileGenerationViewerState.js.map +1 -1
- package/lib/stores/editor/editor-state/GrammarTextEditorState.d.ts +3 -3
- package/lib/stores/editor/editor-state/GrammarTextEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/GrammarTextEditorState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.d.ts +2 -2
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.js +50 -26
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingExecutionState.d.ts +1 -2
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingExecutionState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingExecutionState.js +2 -2
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingExecutionState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingTabManagerState.d.ts +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingTabManagerState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingTabManagerState.js +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingTabManagerState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingTestState.d.ts +8 -3
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingTestState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingTestState.js +38 -20
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingTestState.js.map +1 -1
- 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 +8 -2
- 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/ServiceExecutionState.d.ts +1 -2
- package/lib/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.js +2 -2
- package/lib/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.js.map +1 -1
- package/package.json +17 -20
- package/src/application/LegendStudio.tsx +0 -18
- package/src/application/LegendStudioDocumentation.ts +5 -0
- package/src/components/editor/edit-panel/EditPanel.tsx +4 -1
- package/src/components/editor/edit-panel/FileGenerationViewer.tsx +2 -2
- package/src/components/editor/edit-panel/GrammarTextEditor.tsx +55 -50
- package/src/components/editor/edit-panel/ModelImporter.tsx +5 -5
- package/src/components/editor/edit-panel/connection-editor/DatabaseBuilder.tsx +4 -4
- package/src/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.tsx +6 -6
- package/src/components/editor/edit-panel/data-editor/DataElementEditor.tsx +4 -4
- package/src/components/editor/edit-panel/data-editor/EmbeddedDataEditor.tsx +3 -2
- package/src/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.tsx +4 -3
- package/src/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.tsx +22 -20
- package/src/components/editor/edit-panel/diff-editor/EntityDiffView.tsx +2 -2
- package/src/components/editor/edit-panel/element-generation-editor/ElementNativeView.tsx +5 -5
- package/src/components/editor/edit-panel/element-generation-editor/FileSystemViewer.tsx +3 -5
- package/src/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.tsx +5 -4
- package/src/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.tsx +4 -3
- package/src/components/editor/edit-panel/mapping-editor/MappingEditor.tsx +3 -3
- package/src/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.tsx +18 -16
- package/src/components/editor/edit-panel/mapping-editor/MappingTestEditor.tsx +19 -19
- package/src/components/editor/edit-panel/mapping-editor/MappingTestsExplorer.tsx +4 -4
- package/src/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.tsx +5 -4
- package/src/components/editor/edit-panel/service-editor/ServiceEditor.tsx +2 -2
- package/src/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.tsx +9 -9
- package/src/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.tsx +2 -2
- package/src/components/editor/edit-panel/testable/TestAssertionEditor.tsx +4 -3
- package/src/components/editor/edit-panel/uml-editor/AssociationEditor.tsx +2 -2
- package/src/components/editor/side-bar/Explorer.tsx +8 -8
- package/src/components/editor/side-bar/WorkflowManager.tsx +4 -4
- package/src/components/editor/side-bar/testable/GlobalTestRunner.tsx +7 -6
- package/src/components/extensions/Core_LegendStudioApplicationPlugin.tsx +21 -0
- package/src/components/shared/DiffView.tsx +14 -14
- package/src/components/workspace-setup/CreateProjectModal.tsx +2 -4
- package/src/components/workspace-setup/CreateWorkspaceModal.tsx +2 -4
- package/src/components/workspace-setup/WorkspaceSetup.tsx +1 -1
- package/src/index.ts +1 -1
- package/src/stores/editor/EditorGraphState.ts +2 -4
- package/src/stores/editor/EditorTabManagerState.ts +1 -1
- package/src/stores/editor/GraphEditFormModeState.ts +1 -1
- package/src/stores/editor/editor-state/EditorState.ts +1 -1
- package/src/stores/editor/editor-state/FileGenerationViewerState.ts +8 -8
- package/src/stores/editor/editor-state/GrammarTextEditorState.ts +3 -3
- package/src/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.ts +63 -31
- package/src/stores/editor/editor-state/element-editor-state/mapping/MappingExecutionState.ts +1 -1
- package/src/stores/editor/editor-state/element-editor-state/mapping/MappingTabManagerState.ts +1 -1
- package/src/stores/editor/editor-state/element-editor-state/mapping/MappingTestState.ts +54 -30
- package/src/stores/editor/editor-state/element-editor-state/service/ServiceEditorState.ts +8 -1
- package/src/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.ts +1 -1
|
@@ -28,7 +28,7 @@ import { type EntityDiff, EntityChangeType } from '@finos/legend-server-sdlc';
|
|
|
28
28
|
import { useEditorStore } from '../../EditorStoreProvider.js';
|
|
29
29
|
import {
|
|
30
30
|
useApplicationStore,
|
|
31
|
-
|
|
31
|
+
CODE_EDITOR_LANGUAGE,
|
|
32
32
|
} from '@finos/legend-application';
|
|
33
33
|
import { sortObjectKeys } from '@finos/legend-shared';
|
|
34
34
|
|
|
@@ -153,7 +153,7 @@ export const EntityDiffView = observer(
|
|
|
153
153
|
<div className="entity-diff-view__content">
|
|
154
154
|
{diffEditorState.diffMode === DIFF_VIEW_MODE.GRAMMAR && (
|
|
155
155
|
<TextDiffView
|
|
156
|
-
language={
|
|
156
|
+
language={CODE_EDITOR_LANGUAGE.PURE}
|
|
157
157
|
from={fromGrammarText}
|
|
158
158
|
to={toGrammarText}
|
|
159
159
|
/>
|
|
@@ -21,9 +21,9 @@ import { ELEMENT_NATIVE_VIEW_MODE } from '../../../../stores/editor/EditorConfig
|
|
|
21
21
|
import { flowResult } from 'mobx';
|
|
22
22
|
import {
|
|
23
23
|
useApplicationStore,
|
|
24
|
-
|
|
25
|
-
TextInputEditor,
|
|
24
|
+
CODE_EDITOR_LANGUAGE,
|
|
26
25
|
} from '@finos/legend-application';
|
|
26
|
+
import { CodeEditor } from '@finos/legend-lego/code-editor';
|
|
27
27
|
|
|
28
28
|
export const ElementNativeView = observer(
|
|
29
29
|
(props: { currentElementState: ElementEditorState }) => {
|
|
@@ -32,8 +32,8 @@ export const ElementNativeView = observer(
|
|
|
32
32
|
const generatedText = currentElementState.textContent;
|
|
33
33
|
const editorLanguage =
|
|
34
34
|
currentElementState.editMode === ELEMENT_NATIVE_VIEW_MODE.GRAMMAR
|
|
35
|
-
?
|
|
36
|
-
:
|
|
35
|
+
? CODE_EDITOR_LANGUAGE.PURE
|
|
36
|
+
: CODE_EDITOR_LANGUAGE.JSON;
|
|
37
37
|
|
|
38
38
|
useEffect(() => {
|
|
39
39
|
switch (currentElementState.editMode) {
|
|
@@ -51,7 +51,7 @@ export const ElementNativeView = observer(
|
|
|
51
51
|
}, [applicationStore, currentElementState, currentElementState.editMode]);
|
|
52
52
|
|
|
53
53
|
return (
|
|
54
|
-
<
|
|
54
|
+
<CodeEditor
|
|
55
55
|
inputValue={generatedText}
|
|
56
56
|
language={editorLanguage}
|
|
57
57
|
isReadOnly={true}
|
|
@@ -49,11 +49,9 @@ import {
|
|
|
49
49
|
FileSystem_File,
|
|
50
50
|
getFileSystemChildNodes,
|
|
51
51
|
} from '../../../../stores/editor/shared/FileSystemTreeUtils.js';
|
|
52
|
-
import {
|
|
53
|
-
TextInputEditor,
|
|
54
|
-
useApplicationStore,
|
|
55
|
-
} from '@finos/legend-application';
|
|
52
|
+
import { useApplicationStore } from '@finos/legend-application';
|
|
56
53
|
import type { DSL_Generation_LegendStudioApplicationPlugin_Extension } from '../../../../stores/extensions/DSL_Generation_LegendStudioApplicationPlugin_Extension.js';
|
|
54
|
+
import { CodeEditor } from '@finos/legend-lego/code-editor';
|
|
57
55
|
|
|
58
56
|
export const FileSystemTreeNodeContainer: React.FC<
|
|
59
57
|
TreeNodeContainerProps<
|
|
@@ -278,7 +276,7 @@ export const FileSystemViewer = observer(
|
|
|
278
276
|
</div>
|
|
279
277
|
<PanelContent>
|
|
280
278
|
{fileNode instanceof FileSystem_File && (
|
|
281
|
-
<
|
|
279
|
+
<CodeEditor
|
|
282
280
|
inputValue={getTextContent(fileNode.content, fileNode.format)}
|
|
283
281
|
isReadOnly={true}
|
|
284
282
|
language={getEditorLanguageForFormat(fileNode.format)}
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
type InnerSchemaSetEditorState,
|
|
45
45
|
SCHEMA_SET_TAB_TYPE,
|
|
46
46
|
} from '../../../../stores/editor/editor-state/element-editor-state/external-format/DSL_ExternalFormat_SchemaSetEditorState.js';
|
|
47
|
-
import {
|
|
47
|
+
import { CODE_EDITOR_LANGUAGE } from '@finos/legend-application';
|
|
48
48
|
import { getEditorLanguageForFormat } from '../../../../stores/editor/editor-state/FileGenerationViewerState.js';
|
|
49
49
|
import { guaranteeNonNullable, prettyCONSTName } from '@finos/legend-shared';
|
|
50
50
|
import { useEditorStore } from '../../EditorStoreProvider.js';
|
|
@@ -56,6 +56,7 @@ import {
|
|
|
56
56
|
externalFormat_schema_setLocation,
|
|
57
57
|
} from '../../../../stores/editor/shared/modifier/DSL_ExternalFormat_GraphModifierHelper.js';
|
|
58
58
|
import { SchemaSetModelGenerationEditor } from './DSL_ExternalFormat_SchemaSetModelGenerationEditor.js';
|
|
59
|
+
import { CodeEditor } from '@finos/legend-lego/code-editor';
|
|
59
60
|
|
|
60
61
|
const SchemaLoader = observer(
|
|
61
62
|
(props: {
|
|
@@ -147,7 +148,7 @@ const SchemaLoader = observer(
|
|
|
147
148
|
const SchemaBasicEditor = observer(
|
|
148
149
|
(props: {
|
|
149
150
|
schema: Schema;
|
|
150
|
-
language:
|
|
151
|
+
language: CODE_EDITOR_LANGUAGE;
|
|
151
152
|
isReadOnly: boolean;
|
|
152
153
|
}) => {
|
|
153
154
|
const { schema, isReadOnly, language } = props;
|
|
@@ -176,7 +177,7 @@ const SchemaBasicEditor = observer(
|
|
|
176
177
|
/>
|
|
177
178
|
<div className={clsx('schema-editor__content')}>
|
|
178
179
|
<div className="schema-editor__content__input">
|
|
179
|
-
<
|
|
180
|
+
<CodeEditor
|
|
180
181
|
inputValue={schema.content}
|
|
181
182
|
language={language}
|
|
182
183
|
updateInput={(val: string): void => {
|
|
@@ -207,7 +208,7 @@ export const SchemaSetGeneralEditor = observer(
|
|
|
207
208
|
// TEMPROARY engine api should return `fileformat`.
|
|
208
209
|
const language = description
|
|
209
210
|
? getEditorLanguageForFormat(description.name)
|
|
210
|
-
:
|
|
211
|
+
: CODE_EDITOR_LANGUAGE.TEXT;
|
|
211
212
|
const changeState =
|
|
212
213
|
(schema: Schema): (() => void) =>
|
|
213
214
|
(): void => {
|
|
@@ -31,7 +31,8 @@ import {
|
|
|
31
31
|
ResizablePanelSplitterLine,
|
|
32
32
|
} from '@finos/legend-art';
|
|
33
33
|
import { GenerationPropertyEditor } from '../element-generation-editor/FileGenerationEditor.js';
|
|
34
|
-
import {
|
|
34
|
+
import { CODE_EDITOR_LANGUAGE } from '@finos/legend-application';
|
|
35
|
+
import { CodeEditor } from '@finos/legend-lego/code-editor';
|
|
35
36
|
|
|
36
37
|
enum HIDDEN_CONFIGURATION_PROPERTIES {
|
|
37
38
|
FORMAT = 'format',
|
|
@@ -212,10 +213,10 @@ export const SchemaSetModelGenerationEditor = observer(
|
|
|
212
213
|
.isInProgress
|
|
213
214
|
}
|
|
214
215
|
/>
|
|
215
|
-
<
|
|
216
|
+
<CodeEditor
|
|
216
217
|
inputValue={modelGenerationState.generationValue}
|
|
217
218
|
isReadOnly={true}
|
|
218
|
-
language={
|
|
219
|
+
language={CODE_EDITOR_LANGUAGE.PURE}
|
|
219
220
|
/>
|
|
220
221
|
</PanelContent>
|
|
221
222
|
</div>
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
import { MappingElementState } from '../../../../stores/editor/editor-state/element-editor-state/mapping/MappingElementState.js';
|
|
51
51
|
import { MappingExplorer } from './MappingExplorer.js';
|
|
52
52
|
import { MappingTestEditor } from './MappingTestEditor.js';
|
|
53
|
-
import {
|
|
53
|
+
import { DEPRECATED__MappingTestState } from '../../../../stores/editor/editor-state/element-editor-state/mapping/MappingTestState.js';
|
|
54
54
|
import { MappingTestsExplorer } from './MappingTestsExplorer.js';
|
|
55
55
|
import { LEGEND_STUDIO_TEST_ID } from '../../../../application/LegendStudioTesting.js';
|
|
56
56
|
import { MappingExecutionState } from '../../../../stores/editor/editor-state/element-editor-state/mapping/MappingExecutionState.js';
|
|
@@ -151,7 +151,7 @@ export const MappingEditor = observer(() => {
|
|
|
151
151
|
const isReadOnly = mappingEditorState.isReadOnly;
|
|
152
152
|
const currentTabState = mappingEditorState.currentTabState;
|
|
153
153
|
const renderActiveMappingElementTab = (): React.ReactNode => {
|
|
154
|
-
if (currentTabState instanceof
|
|
154
|
+
if (currentTabState instanceof DEPRECATED__MappingTestState) {
|
|
155
155
|
return (
|
|
156
156
|
<MappingTestEditor
|
|
157
157
|
key={currentTabState.uuid}
|
|
@@ -256,7 +256,7 @@ export const MappingEditor = observer(() => {
|
|
|
256
256
|
/>
|
|
257
257
|
}
|
|
258
258
|
>
|
|
259
|
-
{tabState instanceof
|
|
259
|
+
{tabState instanceof DEPRECATED__MappingTestState && (
|
|
260
260
|
<>
|
|
261
261
|
<FlaskIcon className="mapping-editor__header__tab__icon--test" />
|
|
262
262
|
<button
|
|
@@ -65,12 +65,10 @@ import {
|
|
|
65
65
|
MappingExecutionRelationalInputDataState,
|
|
66
66
|
} from '../../../../stores/editor/editor-state/element-editor-state/mapping/MappingExecutionState.js';
|
|
67
67
|
import {
|
|
68
|
-
|
|
68
|
+
CODE_EDITOR_LANGUAGE,
|
|
69
69
|
ActionAlertActionType,
|
|
70
70
|
ActionAlertType,
|
|
71
71
|
useApplicationStore,
|
|
72
|
-
ExecutionPlanViewer,
|
|
73
|
-
TextInputEditor,
|
|
74
72
|
} from '@finos/legend-application';
|
|
75
73
|
import { useEditorStore } from '../../EditorStoreProvider.js';
|
|
76
74
|
import {
|
|
@@ -89,7 +87,11 @@ import {
|
|
|
89
87
|
relationalInputData_setInputType,
|
|
90
88
|
} from '../../../../stores/editor/shared/modifier/STO_Relational_GraphModifierHelper.js';
|
|
91
89
|
import { MappingExecutionQueryBuilderState } from '../../../../stores/editor/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.js';
|
|
92
|
-
import
|
|
90
|
+
import {
|
|
91
|
+
ExecutionPlanViewer,
|
|
92
|
+
type QueryBuilderState,
|
|
93
|
+
} from '@finos/legend-query-builder';
|
|
94
|
+
import { CodeEditor } from '@finos/legend-lego/code-editor';
|
|
93
95
|
|
|
94
96
|
interface ClassMappingSelectOption {
|
|
95
97
|
label: string;
|
|
@@ -167,12 +169,12 @@ export const ClassMappingSelectorModal = observer(
|
|
|
167
169
|
|
|
168
170
|
export const getRelationalInputTestDataEditorLanguage = (
|
|
169
171
|
type: RelationalInputType,
|
|
170
|
-
):
|
|
172
|
+
): CODE_EDITOR_LANGUAGE => {
|
|
171
173
|
switch (type) {
|
|
172
174
|
case RelationalInputType.SQL:
|
|
173
|
-
return
|
|
175
|
+
return CODE_EDITOR_LANGUAGE.SQL;
|
|
174
176
|
default:
|
|
175
|
-
return
|
|
177
|
+
return CODE_EDITOR_LANGUAGE.TEXT;
|
|
176
178
|
}
|
|
177
179
|
};
|
|
178
180
|
|
|
@@ -385,10 +387,10 @@ const MappingExecutionQueryEditor = observer(
|
|
|
385
387
|
{!isStubbed_RawLambda(queryState.query) && (
|
|
386
388
|
<PanelContent>
|
|
387
389
|
<div className="mapping-execution-builder__query-panel__query">
|
|
388
|
-
<
|
|
390
|
+
<CodeEditor
|
|
389
391
|
inputValue={queryState.lambdaString}
|
|
390
392
|
isReadOnly={true}
|
|
391
|
-
language={
|
|
393
|
+
language={CODE_EDITOR_LANGUAGE.PURE}
|
|
392
394
|
showMiniMap={false}
|
|
393
395
|
/>
|
|
394
396
|
</div>
|
|
@@ -434,8 +436,8 @@ export const MappingExecutionObjectInputDataBuilder = observer(
|
|
|
434
436
|
|
|
435
437
|
return (
|
|
436
438
|
<div className="panel__content mapping-execution-builder__input-data-panel__content">
|
|
437
|
-
<
|
|
438
|
-
language={
|
|
439
|
+
<CodeEditor
|
|
440
|
+
language={CODE_EDITOR_LANGUAGE.JSON}
|
|
439
441
|
inputValue={inputDataState.inputData.data}
|
|
440
442
|
updateInput={updateInput}
|
|
441
443
|
/>
|
|
@@ -454,8 +456,8 @@ export const MappingExecutionFlatDataInputDataBuilder = observer(
|
|
|
454
456
|
|
|
455
457
|
return (
|
|
456
458
|
<div className="panel__content mapping-execution-builder__input-data-panel__content">
|
|
457
|
-
<
|
|
458
|
-
language={
|
|
459
|
+
<CodeEditor
|
|
460
|
+
language={CODE_EDITOR_LANGUAGE.TEXT}
|
|
459
461
|
inputValue={inputDataState.inputData.data}
|
|
460
462
|
updateInput={updateInput}
|
|
461
463
|
/>
|
|
@@ -477,7 +479,7 @@ export const MappingExecutionRelationalInputDataBuilder = observer(
|
|
|
477
479
|
|
|
478
480
|
return (
|
|
479
481
|
<div className="panel__content mapping-execution-builder__input-data-panel__content">
|
|
480
|
-
<
|
|
482
|
+
<CodeEditor
|
|
481
483
|
language={getRelationalInputTestDataEditorLanguage(
|
|
482
484
|
inputDataState.inputData.inputType,
|
|
483
485
|
)}
|
|
@@ -853,10 +855,10 @@ export const MappingExecutionBuilder = observer(
|
|
|
853
855
|
</div>
|
|
854
856
|
</div>
|
|
855
857
|
<div className="panel__content mapping-execution-builder__result-panel__content">
|
|
856
|
-
<
|
|
858
|
+
<CodeEditor
|
|
857
859
|
inputValue={executionResultText ?? ''}
|
|
858
860
|
isReadOnly={true}
|
|
859
|
-
language={
|
|
861
|
+
language={CODE_EDITOR_LANGUAGE.JSON}
|
|
860
862
|
/>
|
|
861
863
|
</div>
|
|
862
864
|
</div>
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import { useState, useEffect, useCallback } from 'react';
|
|
18
18
|
import { observer } from 'mobx-react-lite';
|
|
19
19
|
import {
|
|
20
|
-
type
|
|
20
|
+
type DEPRECATED__MappingTestState as DEPRECATED__MappingTestState,
|
|
21
21
|
MAPPING_TEST_EDITOR_TAB_TYPE,
|
|
22
22
|
TEST_RESULT,
|
|
23
23
|
MappingTestObjectInputDataState,
|
|
@@ -59,12 +59,10 @@ import {
|
|
|
59
59
|
assertErrorThrown,
|
|
60
60
|
} from '@finos/legend-shared';
|
|
61
61
|
import {
|
|
62
|
-
|
|
62
|
+
CODE_EDITOR_LANGUAGE,
|
|
63
63
|
useApplicationStore,
|
|
64
64
|
ActionAlertActionType,
|
|
65
65
|
ActionAlertType,
|
|
66
|
-
ExecutionPlanViewer,
|
|
67
|
-
TextInputEditor,
|
|
68
66
|
} from '@finos/legend-application';
|
|
69
67
|
import {
|
|
70
68
|
ClassMappingSelectorModal,
|
|
@@ -94,11 +92,13 @@ import {
|
|
|
94
92
|
import {
|
|
95
93
|
type QueryBuilderState,
|
|
96
94
|
QueryBuilderTextEditorMode,
|
|
95
|
+
ExecutionPlanViewer,
|
|
97
96
|
} from '@finos/legend-query-builder';
|
|
98
97
|
import { MappingExecutionQueryBuilderState } from '../../../../stores/editor/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.js';
|
|
98
|
+
import { CodeEditor } from '@finos/legend-lego/code-editor';
|
|
99
99
|
|
|
100
100
|
const MappingTestQueryEditor = observer(
|
|
101
|
-
(props: { testState:
|
|
101
|
+
(props: { testState: DEPRECATED__MappingTestState; isReadOnly: boolean }) => {
|
|
102
102
|
const { testState, isReadOnly } = props;
|
|
103
103
|
const queryState = testState.queryState;
|
|
104
104
|
const editorStore = useEditorStore();
|
|
@@ -309,10 +309,10 @@ const MappingTestQueryEditor = observer(
|
|
|
309
309
|
editWithQueryBuilder()();
|
|
310
310
|
}}
|
|
311
311
|
>
|
|
312
|
-
<
|
|
312
|
+
<CodeEditor
|
|
313
313
|
inputValue={queryState.lambdaString}
|
|
314
314
|
isReadOnly={true}
|
|
315
|
-
language={
|
|
315
|
+
language={CODE_EDITOR_LANGUAGE.PURE}
|
|
316
316
|
showMiniMap={false}
|
|
317
317
|
/>
|
|
318
318
|
</div>
|
|
@@ -361,8 +361,8 @@ export const MappingTestObjectInputDataBuilder = observer(
|
|
|
361
361
|
|
|
362
362
|
return (
|
|
363
363
|
<div className="panel__content mapping-test-editor__input-data-panel__content">
|
|
364
|
-
<
|
|
365
|
-
language={
|
|
364
|
+
<CodeEditor
|
|
365
|
+
language={CODE_EDITOR_LANGUAGE.JSON}
|
|
366
366
|
inputValue={inputDataState.data}
|
|
367
367
|
isReadOnly={isReadOnly}
|
|
368
368
|
updateInput={updateInput}
|
|
@@ -385,8 +385,8 @@ export const MappingTestFlatDataInputDataBuilder = observer(
|
|
|
385
385
|
|
|
386
386
|
return (
|
|
387
387
|
<div className="panel__content mapping-test-editor__input-data-panel__content">
|
|
388
|
-
<
|
|
389
|
-
language={
|
|
388
|
+
<CodeEditor
|
|
389
|
+
language={CODE_EDITOR_LANGUAGE.TEXT}
|
|
390
390
|
inputValue={inputDataState.inputData.data}
|
|
391
391
|
isReadOnly={isReadOnly}
|
|
392
392
|
updateInput={updateInput}
|
|
@@ -412,7 +412,7 @@ export const MappingTestRelationalInputDataBuilder = observer(
|
|
|
412
412
|
|
|
413
413
|
return (
|
|
414
414
|
<div className="panel__content mapping-test-editor__input-data-panel__content">
|
|
415
|
-
<
|
|
415
|
+
<CodeEditor
|
|
416
416
|
language={getRelationalInputTestDataEditorLanguage(
|
|
417
417
|
inputDataState.inputData.inputType,
|
|
418
418
|
)}
|
|
@@ -468,7 +468,7 @@ const RelationalMappingTestInputDataTypeSelector = observer(
|
|
|
468
468
|
);
|
|
469
469
|
|
|
470
470
|
export const MappingTestInputDataBuilder = observer(
|
|
471
|
-
(props: { testState:
|
|
471
|
+
(props: { testState: DEPRECATED__MappingTestState; isReadOnly: boolean }) => {
|
|
472
472
|
const { testState, isReadOnly } = props;
|
|
473
473
|
const inputDataState = testState.inputDataState;
|
|
474
474
|
const editorStore = useEditorStore();
|
|
@@ -573,7 +573,7 @@ export const MappingTestInputDataBuilder = observer(
|
|
|
573
573
|
|
|
574
574
|
export const MappingTestExpectedOutputAssertionBuilder = observer(
|
|
575
575
|
(props: {
|
|
576
|
-
testState:
|
|
576
|
+
testState: DEPRECATED__MappingTestState;
|
|
577
577
|
assertionState: MappingTestExpectedOutputAssertionState;
|
|
578
578
|
isReadOnly: boolean;
|
|
579
579
|
}) => {
|
|
@@ -638,11 +638,11 @@ export const MappingTestExpectedOutputAssertionBuilder = observer(
|
|
|
638
638
|
<ErrorIcon />
|
|
639
639
|
</div>
|
|
640
640
|
)}
|
|
641
|
-
<
|
|
641
|
+
<CodeEditor
|
|
642
642
|
inputValue={assertionState.expectedResult}
|
|
643
643
|
updateInput={updateExpectedResult}
|
|
644
644
|
isReadOnly={isReadOnly}
|
|
645
|
-
language={
|
|
645
|
+
language={CODE_EDITOR_LANGUAGE.JSON}
|
|
646
646
|
/>
|
|
647
647
|
</div>
|
|
648
648
|
</div>
|
|
@@ -651,7 +651,7 @@ export const MappingTestExpectedOutputAssertionBuilder = observer(
|
|
|
651
651
|
);
|
|
652
652
|
|
|
653
653
|
export const MappingTestAssertionBuilder = observer(
|
|
654
|
-
(props: { testState:
|
|
654
|
+
(props: { testState: DEPRECATED__MappingTestState; isReadOnly: boolean }) => {
|
|
655
655
|
const { testState, isReadOnly } = props;
|
|
656
656
|
const assertionState = testState.assertionState;
|
|
657
657
|
|
|
@@ -669,7 +669,7 @@ export const MappingTestAssertionBuilder = observer(
|
|
|
669
669
|
);
|
|
670
670
|
|
|
671
671
|
export const MappingTestBuilder = observer(
|
|
672
|
-
(props: { testState:
|
|
672
|
+
(props: { testState: DEPRECATED__MappingTestState; isReadOnly: boolean }) => {
|
|
673
673
|
const { testState, isReadOnly } = props;
|
|
674
674
|
const applicationStore = useApplicationStore();
|
|
675
675
|
|
|
@@ -720,7 +720,7 @@ export const MappingTestBuilder = observer(
|
|
|
720
720
|
);
|
|
721
721
|
|
|
722
722
|
export const MappingTestEditor = observer(
|
|
723
|
-
(props: { testState:
|
|
723
|
+
(props: { testState: DEPRECATED__MappingTestState; isReadOnly: boolean }) => {
|
|
724
724
|
const { testState, isReadOnly } = props;
|
|
725
725
|
const applicationStore = useApplicationStore();
|
|
726
726
|
const selectedTab = testState.selectedTab;
|
|
@@ -18,7 +18,7 @@ import { useState, useCallback, forwardRef } from 'react';
|
|
|
18
18
|
import { observer } from 'mobx-react-lite';
|
|
19
19
|
import { useDrop } from 'react-dnd';
|
|
20
20
|
import {
|
|
21
|
-
type
|
|
21
|
+
type DEPRECATED__MappingTestState,
|
|
22
22
|
MAPPING_TEST_EDITOR_TAB_TYPE,
|
|
23
23
|
TEST_RESULT,
|
|
24
24
|
} from '../../../../stores/editor/editor-state/element-editor-state/mapping/MappingTestState.js';
|
|
@@ -61,7 +61,7 @@ export const MappingTestExplorerContextMenu = observer(
|
|
|
61
61
|
forwardRef<
|
|
62
62
|
HTMLDivElement,
|
|
63
63
|
{
|
|
64
|
-
mappingTestState?:
|
|
64
|
+
mappingTestState?: DEPRECATED__MappingTestState;
|
|
65
65
|
showCreateNewTestModal?: () => void;
|
|
66
66
|
isReadOnly: boolean;
|
|
67
67
|
}
|
|
@@ -132,7 +132,7 @@ export const MappingTestExplorerContextMenu = observer(
|
|
|
132
132
|
);
|
|
133
133
|
|
|
134
134
|
export const MappingTestStatusIndicator: React.FC<{
|
|
135
|
-
testState:
|
|
135
|
+
testState: DEPRECATED__MappingTestState;
|
|
136
136
|
}> = (props) => {
|
|
137
137
|
const { testState } = props;
|
|
138
138
|
if (testState.isSkipped) {
|
|
@@ -194,7 +194,7 @@ export const MappingTestStatusIndicator: React.FC<{
|
|
|
194
194
|
};
|
|
195
195
|
|
|
196
196
|
export const MappingTestExplorer = observer(
|
|
197
|
-
(props: { testState:
|
|
197
|
+
(props: { testState: DEPRECATED__MappingTestState; isReadOnly: boolean }) => {
|
|
198
198
|
const { isReadOnly, testState } = props;
|
|
199
199
|
const editorStore = useEditorStore();
|
|
200
200
|
const applicationStore = useApplicationStore();
|
package/src/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.tsx
CHANGED
|
@@ -45,15 +45,16 @@ import { useEditorStore } from '../../EditorStoreProvider.js';
|
|
|
45
45
|
import {
|
|
46
46
|
ActionAlertActionType,
|
|
47
47
|
ActionAlertType,
|
|
48
|
-
DocumentationLink,
|
|
49
|
-
DocumentationPreview,
|
|
50
|
-
LEGEND_APPLICATION_DOCUMENTATION_KEY,
|
|
51
48
|
shouldDisplayVirtualAssistantDocumentationEntry,
|
|
52
49
|
useApplicationStore,
|
|
53
50
|
} from '@finos/legend-application';
|
|
54
51
|
import { ProjectDependencyEditor } from './ProjectDependencyEditor.js';
|
|
55
52
|
import type { ProjectData } from '@finos/legend-server-depot';
|
|
56
53
|
import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../../../application/LegendStudioDocumentation.js';
|
|
54
|
+
import {
|
|
55
|
+
DocumentationLink,
|
|
56
|
+
DocumentationPreview,
|
|
57
|
+
} from '@finos/legend-application/components';
|
|
57
58
|
|
|
58
59
|
const ProjectStructureEditor = observer(
|
|
59
60
|
(props: { projectConfig: ProjectConfiguration; isReadOnly: boolean }) => {
|
|
@@ -309,7 +310,7 @@ const ProjectPlatformVersionEditor = observer(
|
|
|
309
310
|
artifacts; in this case, you can freeze the platform dependencies'
|
|
310
311
|
versions"
|
|
311
312
|
documentationKey={
|
|
312
|
-
|
|
313
|
+
LEGEND_STUDIO_DOCUMENTATION_KEY.QUESTION_WHEN_TO_CONFIGURE_PLATFORM_VERSIONS
|
|
313
314
|
}
|
|
314
315
|
/>
|
|
315
316
|
<div className="platform-configurations-editor__dependencies">
|
|
@@ -48,7 +48,6 @@ import {
|
|
|
48
48
|
service_updateOwner,
|
|
49
49
|
} from '../../../../stores/editor/shared/modifier/DSL_Service_GraphModifierHelper.js';
|
|
50
50
|
import {
|
|
51
|
-
LEGEND_APPLICATION_DOCUMENTATION_KEY,
|
|
52
51
|
useApplicationNavigationContext,
|
|
53
52
|
useApplicationStore,
|
|
54
53
|
} from '@finos/legend-application';
|
|
@@ -56,6 +55,7 @@ import { validate_ServicePattern } from '@finos/legend-graph';
|
|
|
56
55
|
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../application/LegendStudioApplicationNavigationContext.js';
|
|
57
56
|
import { ServiceTestableEditor } from './testable/ServiceTestableEditor.js';
|
|
58
57
|
import { flowResult } from 'mobx';
|
|
58
|
+
import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../../../application/LegendStudioDocumentation.js';
|
|
59
59
|
|
|
60
60
|
type UserOption = { label: string; value: string };
|
|
61
61
|
|
|
@@ -481,7 +481,7 @@ export const ServiceEditor = observer(() => {
|
|
|
481
481
|
);
|
|
482
482
|
const seeDocumentation = (): void =>
|
|
483
483
|
applicationStore.assistantService.openDocumentationEntry(
|
|
484
|
-
|
|
484
|
+
LEGEND_STUDIO_DOCUMENTATION_KEY.QUESTION_HOW_TO_WRITE_A_SERVICE_TEST,
|
|
485
485
|
);
|
|
486
486
|
|
|
487
487
|
useApplicationNavigationContext(
|
|
@@ -49,9 +49,7 @@ import {
|
|
|
49
49
|
import { flowResult } from 'mobx';
|
|
50
50
|
import { useEditorStore } from '../../EditorStoreProvider.js';
|
|
51
51
|
import {
|
|
52
|
-
|
|
53
|
-
ExecutionPlanViewer,
|
|
54
|
-
TextInputEditor,
|
|
52
|
+
CODE_EDITOR_LANGUAGE,
|
|
55
53
|
useApplicationStore,
|
|
56
54
|
} from '@finos/legend-application';
|
|
57
55
|
import {
|
|
@@ -65,12 +63,14 @@ import {
|
|
|
65
63
|
ServiceQueryBuilderState,
|
|
66
64
|
LambdaParameterValuesEditor,
|
|
67
65
|
QueryBuilderTextEditorMode,
|
|
66
|
+
ExecutionPlanViewer,
|
|
68
67
|
} from '@finos/legend-query-builder';
|
|
69
68
|
import { ProjectViewerEditorMode } from '../../../../stores/project-view/ProjectViewerEditorMode.js';
|
|
70
69
|
import { useLegendStudioApplicationStore } from '../../../LegendStudioBaseStoreProvider.js';
|
|
71
70
|
import { WorkspaceType } from '@finos/legend-server-sdlc';
|
|
72
71
|
import { SNAPSHOT_VERSION_ALIAS } from '@finos/legend-server-depot';
|
|
73
72
|
import type { ProjectGAVCoordinates } from '@finos/legend-storage';
|
|
73
|
+
import { CodeEditor } from '@finos/legend-lego/code-editor';
|
|
74
74
|
|
|
75
75
|
const ServiceExecutionResultViewer = observer(
|
|
76
76
|
(props: { executionState: ServicePureExecutionState }) => {
|
|
@@ -93,10 +93,10 @@ const ServiceExecutionResultViewer = observer(
|
|
|
93
93
|
<Modal darkMode={true} className="editor-modal">
|
|
94
94
|
<ModalHeader title="Execution Result" />
|
|
95
95
|
<ModalBody>
|
|
96
|
-
<
|
|
96
|
+
<CodeEditor
|
|
97
97
|
inputValue={executionResultText ?? ''}
|
|
98
98
|
isReadOnly={true}
|
|
99
|
-
language={
|
|
99
|
+
language={CODE_EDITOR_LANGUAGE.JSON}
|
|
100
100
|
showMiniMap={true}
|
|
101
101
|
/>
|
|
102
102
|
</ModalBody>
|
|
@@ -222,10 +222,10 @@ const ServiceExecutionQueryImporter = observer(
|
|
|
222
222
|
isLoading={queryState.loadQueryInfoState.isInProgress}
|
|
223
223
|
/>
|
|
224
224
|
{queryState.selectedQueryInfo && (
|
|
225
|
-
<
|
|
225
|
+
<CodeEditor
|
|
226
226
|
inputValue={queryState.selectedQueryInfo.content}
|
|
227
227
|
isReadOnly={true}
|
|
228
|
-
language={
|
|
228
|
+
language={CODE_EDITOR_LANGUAGE.PURE}
|
|
229
229
|
showMiniMap={false}
|
|
230
230
|
hideGutter={true}
|
|
231
231
|
/>
|
|
@@ -601,10 +601,10 @@ export const ServiceExecutionQueryEditor = observer(
|
|
|
601
601
|
editWithQueryBuilder()();
|
|
602
602
|
}}
|
|
603
603
|
>
|
|
604
|
-
<
|
|
604
|
+
<CodeEditor
|
|
605
605
|
inputValue={queryState.lambdaString}
|
|
606
606
|
isReadOnly={true}
|
|
607
|
-
language={
|
|
607
|
+
language={CODE_EDITOR_LANGUAGE.PURE}
|
|
608
608
|
showMiniMap={true}
|
|
609
609
|
/>
|
|
610
610
|
</div>
|
|
@@ -55,12 +55,12 @@ import {
|
|
|
55
55
|
ActionAlertActionType,
|
|
56
56
|
ActionAlertType,
|
|
57
57
|
buildElementOption,
|
|
58
|
-
LEGEND_APPLICATION_DOCUMENTATION_KEY,
|
|
59
58
|
useApplicationStore,
|
|
60
59
|
} from '@finos/legend-application';
|
|
61
60
|
import { prettyCONSTName } from '@finos/legend-shared';
|
|
62
61
|
import type { DSL_Data_LegendStudioApplicationPlugin_Extension } from '../../../../../stores/extensions/DSL_Data_LegendStudioApplicationPlugin_Extension.js';
|
|
63
62
|
import { useEditorStore } from '../../../EditorStoreProvider.js';
|
|
63
|
+
import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../../../../application/LegendStudioDocumentation.js';
|
|
64
64
|
|
|
65
65
|
export const ConnectionTestDataEditor = observer(
|
|
66
66
|
(props: { connectionTestDataState: ConnectionTestDataState }) => {
|
|
@@ -431,7 +431,7 @@ export const ServiceTestDataEditor = observer(
|
|
|
431
431
|
};
|
|
432
432
|
const seeDocumentation = (): void =>
|
|
433
433
|
applicationStore.assistantService.openDocumentationEntry(
|
|
434
|
-
|
|
434
|
+
LEGEND_STUDIO_DOCUMENTATION_KEY.QUESTION_HOW_TO_WRITE_SERVICE_CONNECTION_TEST_DATA,
|
|
435
435
|
);
|
|
436
436
|
return (
|
|
437
437
|
<div className="service-test-data-editor panel">
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { CODE_EDITOR_LANGUAGE } from '@finos/legend-application';
|
|
18
18
|
import {
|
|
19
19
|
clsx,
|
|
20
20
|
CompareIcon,
|
|
@@ -49,6 +49,7 @@ import { externalFormatData_setData } from '../../../../stores/editor/shared/mod
|
|
|
49
49
|
import { TESTABLE_RESULT } from '../../../../stores/editor/sidebar-state/testable/GlobalTestRunnerState.js';
|
|
50
50
|
import { JsonDiffView } from '../../../shared/DiffView.js';
|
|
51
51
|
import { UnsupportedEditorPanel } from '../UnsupportedElementEditor.js';
|
|
52
|
+
import { CodeEditor } from '@finos/legend-lego/code-editor';
|
|
52
53
|
|
|
53
54
|
const EqualToJsonAsssertionEditor = observer(
|
|
54
55
|
(props: {
|
|
@@ -84,9 +85,9 @@ const EqualToJsonAsssertionEditor = observer(
|
|
|
84
85
|
</div>
|
|
85
86
|
<div className="equal-to-json-editor__content panel__content">
|
|
86
87
|
<div className="equal-to-json-editor__content__data">
|
|
87
|
-
<
|
|
88
|
+
<CodeEditor
|
|
88
89
|
inputValue={assertion.expected.data}
|
|
89
|
-
language={
|
|
90
|
+
language={CODE_EDITOR_LANGUAGE.JSON}
|
|
90
91
|
updateInput={(val: string): void => {
|
|
91
92
|
equalToJsonAssertionState.setExpectedValue(val);
|
|
92
93
|
}}
|
|
@@ -93,9 +93,9 @@ import {
|
|
|
93
93
|
buildElementOption,
|
|
94
94
|
useApplicationNavigationContext,
|
|
95
95
|
type PackageableElementOption,
|
|
96
|
-
LEGEND_APPLICATION_DOCUMENTATION_KEY,
|
|
97
96
|
} from '@finos/legend-application';
|
|
98
97
|
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../application/LegendStudioApplicationNavigationContext.js';
|
|
98
|
+
import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../../../application/LegendStudioDocumentation.js';
|
|
99
99
|
|
|
100
100
|
const AssociationPropertyBasicEditor = observer(
|
|
101
101
|
(props: {
|
|
@@ -212,7 +212,7 @@ const AssociationPropertyBasicEditor = observer(
|
|
|
212
212
|
};
|
|
213
213
|
const seeErrorDocumentation = (): void =>
|
|
214
214
|
editorStore.applicationStore.assistantService.openDocumentationEntry(
|
|
215
|
-
|
|
215
|
+
LEGEND_STUDIO_DOCUMENTATION_KEY.QUESTION_WHY_DO_I_SEE_ERROR_WITH_ASSOCIATION_PROPERTY_TYPE,
|
|
216
216
|
);
|
|
217
217
|
|
|
218
218
|
return (
|