@finos/legend-application-studio 25.0.7 → 26.0.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.
- package/lib/application/LegendStudio.d.ts.map +1 -1
- package/lib/application/LegendStudio.js +2 -0
- package/lib/application/LegendStudio.js.map +1 -1
- package/lib/components/editor/editor-group/GenerationSpecificationEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/GenerationSpecificationEditor.js +5 -5
- package/lib/components/editor/editor-group/GenerationSpecificationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/GrammarTextEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/GrammarTextEditor.js +1 -28
- package/lib/components/editor/editor-group/GrammarTextEditor.js.map +1 -1
- package/lib/components/editor/editor-group/ModelImporter.d.ts.map +1 -1
- package/lib/components/editor/editor-group/ModelImporter.js +4 -4
- package/lib/components/editor/editor-group/ModelImporter.js.map +1 -1
- package/lib/components/editor/editor-group/RuntimeEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/RuntimeEditor.js +2 -2
- package/lib/components/editor/editor-group/RuntimeEditor.js.map +1 -1
- package/lib/components/editor/editor-group/UnsupportedElementEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/UnsupportedElementEditor.js +3 -3
- package/lib/components/editor/editor-group/UnsupportedElementEditor.js.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/DatabaseBuilder.d.ts.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/DatabaseBuilder.js +1 -0
- package/lib/components/editor/editor-group/connection-editor/DatabaseBuilder.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 +13 -11
- package/lib/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.js.map +1 -1
- package/lib/components/editor/editor-group/element-generation-editor/FileGenerationEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/element-generation-editor/FileGenerationEditor.js +11 -22
- package/lib/components/editor/editor-group/element-generation-editor/FileGenerationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/ClassMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/ClassMappingEditor.js +7 -3
- package/lib/components/editor/editor-group/mapping-editor/ClassMappingEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/DEPRECATED__MappingTestEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/DEPRECATED__MappingTestEditor.js +1 -4
- package/lib/components/editor/editor-group/mapping-editor/DEPRECATED__MappingTestEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationEditor.js +2 -2
- package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.js +3 -3
- package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/BulkServiceRegistrationEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/service-editor/BulkServiceRegistrationEditor.js +5 -10
- package/lib/components/editor/editor-group/service-editor/BulkServiceRegistrationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.js +1 -4
- package/lib/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServicePostValidationEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServicePostValidationEditor.js +2 -2
- package/lib/components/editor/editor-group/service-editor/ServicePostValidationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceRegistrationEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceRegistrationEditor.js +2 -1
- package/lib/components/editor/editor-group/service-editor/ServiceRegistrationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/AssociationEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/AssociationEditor.js +2 -2
- package/lib/components/editor/editor-group/uml-editor/AssociationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/ClassQueryBuilder.js +2 -2
- package/lib/components/editor/editor-group/uml-editor/ClassQueryBuilder.js.map +1 -1
- package/lib/components/editor/side-bar/Explorer.d.ts.map +1 -1
- package/lib/components/editor/side-bar/Explorer.js +14 -5
- package/lib/components/editor/side-bar/Explorer.js.map +1 -1
- package/lib/components/editor/side-bar/ProjectOverview.d.ts.map +1 -1
- package/lib/components/editor/side-bar/ProjectOverview.js +0 -5
- package/lib/components/editor/side-bar/ProjectOverview.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 +2 -2
- package/lib/components/editor/side-bar/testable/GlobalTestRunner.js.map +1 -1
- package/lib/components/extensions/Core_LegendStudioApplicationPlugin.d.ts.map +1 -1
- package/lib/components/extensions/Core_LegendStudioApplicationPlugin.js +0 -3
- package/lib/components/extensions/Core_LegendStudioApplicationPlugin.js.map +1 -1
- package/lib/components/extensions/DSL_ExternalFormat_LegendStudioApplicationPlugin.d.ts +1 -3
- package/lib/components/extensions/DSL_ExternalFormat_LegendStudioApplicationPlugin.d.ts.map +1 -1
- package/lib/components/extensions/DSL_ExternalFormat_LegendStudioApplicationPlugin.js +0 -16
- package/lib/components/extensions/DSL_ExternalFormat_LegendStudioApplicationPlugin.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -1
- package/lib/index.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/LegendStudioApplicationPlugin.d.ts +0 -8
- package/lib/stores/LegendStudioApplicationPlugin.d.ts.map +1 -1
- package/lib/stores/LegendStudioBaseStore.d.ts +1 -0
- package/lib/stores/LegendStudioBaseStore.d.ts.map +1 -1
- package/lib/stores/LegendStudioBaseStore.js +7 -4
- package/lib/stores/LegendStudioBaseStore.js.map +1 -1
- package/lib/stores/editor/EditorGraphState.d.ts.map +1 -1
- package/lib/stores/editor/EditorGraphState.js +2 -2
- package/lib/stores/editor/EditorGraphState.js.map +1 -1
- package/lib/stores/editor/EditorSDLCState.d.ts +8 -5
- package/lib/stores/editor/EditorSDLCState.d.ts.map +1 -1
- package/lib/stores/editor/EditorSDLCState.js +25 -5
- package/lib/stores/editor/EditorSDLCState.js.map +1 -1
- package/lib/stores/editor/EditorStore.d.ts +0 -2
- package/lib/stores/editor/EditorStore.d.ts.map +1 -1
- package/lib/stores/editor/EditorStore.js +10 -15
- package/lib/stores/editor/EditorStore.js.map +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/ExplorerTreeState.d.ts +5 -1
- package/lib/stores/editor/ExplorerTreeState.d.ts.map +1 -1
- package/lib/stores/editor/ExplorerTreeState.js +13 -0
- package/lib/stores/editor/ExplorerTreeState.js.map +1 -1
- package/lib/stores/editor/GraphEditGrammarModeState.d.ts +0 -3
- package/lib/stores/editor/GraphEditGrammarModeState.d.ts.map +1 -1
- package/lib/stores/editor/GraphEditGrammarModeState.js +26 -21
- package/lib/stores/editor/GraphEditGrammarModeState.js.map +1 -1
- package/lib/stores/editor/editor-state/GrammarTextEditorState.d.ts +3 -4
- package/lib/stores/editor/editor-state/GrammarTextEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/GrammarTextEditorState.js +5 -111
- package/lib/stores/editor/editor-state/GrammarTextEditorState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/connection/ConnectionEditorState.d.ts +2 -4
- package/lib/stores/editor/editor-state/element-editor-state/connection/ConnectionEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/connection/ConnectionEditorState.js +6 -8
- package/lib/stores/editor/editor-state/element-editor-state/connection/ConnectionEditorState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.d.ts +4 -2
- package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.js +8 -4
- package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/data/DataEditorState.d.ts +4 -7
- package/lib/stores/editor/editor-state/element-editor-state/data/DataEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/data/DataEditorState.js +0 -3
- package/lib/stores/editor/editor-state/element-editor-state/data/DataEditorState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/DEPRECATED__MappingTestState.d.ts +1 -0
- package/lib/stores/editor/editor-state/element-editor-state/mapping/DEPRECATED__MappingTestState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/DEPRECATED__MappingTestState.js +19 -2
- package/lib/stores/editor/editor-state/element-editor-state/mapping/DEPRECATED__MappingTestState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/FlatDataInstanceSetImplementationState.js +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/FlatDataInstanceSetImplementationState.js.map +1 -1
- 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 +5 -2
- 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/MappingElementDecorator.d.ts +3 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingElementDecorator.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingElementDecorator.js +6 -0
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingElementDecorator.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/relational/RelationalInstanceSetImplementationState.js +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/relational/RelationalInstanceSetImplementationState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.d.ts +1 -0
- 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 +23 -3
- package/lib/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/ServiceRegistrationState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/ServiceRegistrationState.js +4 -3
- package/lib/stores/editor/editor-state/element-editor-state/service/ServiceRegistrationState.js.map +1 -1
- package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.d.ts +3 -4
- package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.js +2 -4
- package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.js.map +1 -1
- package/lib/stores/editor/sidebar-state/ProjectOverviewState.d.ts +0 -4
- package/lib/stores/editor/sidebar-state/ProjectOverviewState.d.ts.map +1 -1
- package/lib/stores/editor/sidebar-state/ProjectOverviewState.js +0 -48
- package/lib/stores/editor/sidebar-state/ProjectOverviewState.js.map +1 -1
- package/lib/stores/editor/sidebar-state/WorkspaceUpdateConflictResolutionState.d.ts +1 -1
- package/lib/stores/editor/sidebar-state/WorkspaceUpdateConflictResolutionState.d.ts.map +1 -1
- package/lib/stores/editor/sidebar-state/WorkspaceUpdateConflictResolutionState.js +1 -4
- package/lib/stores/editor/sidebar-state/WorkspaceUpdateConflictResolutionState.js.map +1 -1
- package/lib/stores/editor/utils/ModelClassifierUtils.d.ts +2 -1
- package/lib/stores/editor/utils/ModelClassifierUtils.d.ts.map +1 -1
- package/lib/stores/editor/utils/ModelClassifierUtils.js +2 -1
- package/lib/stores/editor/utils/ModelClassifierUtils.js.map +1 -1
- package/lib/stores/editor/utils/TestableUtils.d.ts +3 -1
- package/lib/stores/editor/utils/TestableUtils.d.ts.map +1 -1
- package/lib/stores/editor/utils/TestableUtils.js +6 -0
- package/lib/stores/editor/utils/TestableUtils.js.map +1 -1
- package/lib/stores/graph-modifier/STO_Relational_GraphModifierHelper.d.ts +2 -2
- package/lib/stores/graph-modifier/STO_Relational_GraphModifierHelper.d.ts.map +1 -1
- package/lib/stores/graph-modifier/STO_Relational_GraphModifierHelper.js.map +1 -1
- package/lib/stores/project-view/ProjectViewerStore.d.ts.map +1 -1
- package/lib/stores/project-view/ProjectViewerStore.js +8 -5
- package/lib/stores/project-view/ProjectViewerStore.js.map +1 -1
- package/package.json +11 -11
- package/src/application/LegendStudio.tsx +2 -0
- package/src/components/editor/editor-group/GenerationSpecificationEditor.tsx +21 -22
- package/src/components/editor/editor-group/GrammarTextEditor.tsx +1 -41
- package/src/components/editor/editor-group/ModelImporter.tsx +13 -10
- package/src/components/editor/editor-group/RuntimeEditor.tsx +2 -9
- package/src/components/editor/editor-group/UnsupportedElementEditor.tsx +16 -10
- package/src/components/editor/editor-group/connection-editor/DatabaseBuilder.tsx +3 -0
- package/src/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.tsx +22 -23
- package/src/components/editor/editor-group/element-generation-editor/FileGenerationEditor.tsx +51 -83
- package/src/components/editor/editor-group/mapping-editor/ClassMappingEditor.tsx +23 -8
- package/src/components/editor/editor-group/mapping-editor/DEPRECATED__MappingTestEditor.tsx +5 -4
- package/src/components/editor/editor-group/mapping-editor/InstanceSetImplementationEditor.tsx +39 -29
- package/src/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.tsx +21 -23
- package/src/components/editor/editor-group/service-editor/BulkServiceRegistrationEditor.tsx +24 -55
- package/src/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.tsx +3 -4
- package/src/components/editor/editor-group/service-editor/ServicePostValidationEditor.tsx +20 -24
- package/src/components/editor/editor-group/service-editor/ServiceRegistrationEditor.tsx +4 -1
- package/src/components/editor/editor-group/uml-editor/AssociationEditor.tsx +5 -4
- package/src/components/editor/editor-group/uml-editor/ClassQueryBuilder.tsx +3 -3
- package/src/components/editor/side-bar/Explorer.tsx +40 -2
- package/src/components/editor/side-bar/ProjectOverview.tsx +0 -5
- package/src/components/editor/side-bar/testable/GlobalTestRunner.tsx +2 -4
- package/src/components/extensions/Core_LegendStudioApplicationPlugin.tsx +0 -8
- package/src/components/extensions/DSL_ExternalFormat_LegendStudioApplicationPlugin.tsx +0 -18
- package/src/index.ts +0 -1
- package/src/stores/LegendStudioApplicationPlugin.ts +0 -10
- package/src/stores/LegendStudioBaseStore.ts +7 -4
- package/src/stores/editor/EditorGraphState.ts +2 -4
- package/src/stores/editor/EditorSDLCState.ts +33 -4
- package/src/stores/editor/EditorStore.ts +24 -19
- package/src/stores/editor/EditorTabManagerState.ts +1 -4
- package/src/stores/editor/ExplorerTreeState.ts +22 -0
- package/src/stores/editor/GraphEditGrammarModeState.ts +49 -39
- package/src/stores/editor/editor-state/GrammarTextEditorState.ts +6 -145
- package/src/stores/editor/editor-state/element-editor-state/connection/ConnectionEditorState.ts +8 -18
- package/src/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.ts +17 -4
- package/src/stores/editor/editor-state/element-editor-state/data/DataEditorState.ts +5 -7
- package/src/stores/editor/editor-state/element-editor-state/mapping/DEPRECATED__MappingTestState.ts +24 -2
- package/src/stores/editor/editor-state/element-editor-state/mapping/FlatDataInstanceSetImplementationState.ts +1 -1
- package/src/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.ts +4 -1
- package/src/stores/editor/editor-state/element-editor-state/mapping/MappingElementDecorator.ts +13 -0
- package/src/stores/editor/editor-state/element-editor-state/mapping/relational/RelationalInstanceSetImplementationState.ts +1 -1
- package/src/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.ts +30 -7
- package/src/stores/editor/editor-state/element-editor-state/service/ServiceRegistrationState.ts +7 -5
- package/src/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.ts +4 -5
- package/src/stores/editor/sidebar-state/ProjectOverviewState.ts +0 -87
- package/src/stores/editor/sidebar-state/WorkspaceUpdateConflictResolutionState.ts +3 -7
- package/src/stores/editor/utils/ModelClassifierUtils.ts +3 -1
- package/src/stores/editor/utils/TestableUtils.ts +13 -0
- package/src/stores/graph-modifier/STO_Relational_GraphModifierHelper.ts +1 -2
- package/src/stores/project-view/ProjectViewerStore.ts +10 -8
- package/tsconfig.json +0 -3
- package/lib/components/editor/side-bar/ProjectDependantsEditor.d.ts +0 -19
- package/lib/components/editor/side-bar/ProjectDependantsEditor.d.ts.map +0 -1
- package/lib/components/editor/side-bar/ProjectDependantsEditor.js +0 -76
- package/lib/components/editor/side-bar/ProjectDependantsEditor.js.map +0 -1
- package/lib/stores/editor/EditorDepotState.d.ts +0 -25
- package/lib/stores/editor/EditorDepotState.d.ts.map +0 -1
- package/lib/stores/editor/EditorDepotState.js +0 -49
- package/lib/stores/editor/EditorDepotState.js.map +0 -1
- package/lib/stores/editor/sidebar-state/ProjectDependantEditorState.d.ts +0 -31
- package/lib/stores/editor/sidebar-state/ProjectDependantEditorState.d.ts.map +0 -1
- package/lib/stores/editor/sidebar-state/ProjectDependantEditorState.js +0 -42
- package/lib/stores/editor/sidebar-state/ProjectDependantEditorState.js.map +0 -1
- package/src/components/editor/side-bar/ProjectDependantsEditor.tsx +0 -219
- package/src/stores/editor/EditorDepotState.ts +0 -70
- package/src/stores/editor/sidebar-state/ProjectDependantEditorState.ts +0 -50
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-application-studio",
|
3
|
-
"version": "
|
3
|
+
"version": "26.0.0",
|
4
4
|
"description": "Legend Studio application core",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -45,15 +45,15 @@
|
|
45
45
|
"test:watch": "jest --watch"
|
46
46
|
},
|
47
47
|
"dependencies": {
|
48
|
-
"@finos/legend-application": "15.0.
|
49
|
-
"@finos/legend-art": "7.0.
|
50
|
-
"@finos/legend-graph": "
|
51
|
-
"@finos/legend-lego": "1.0.
|
52
|
-
"@finos/legend-query-builder": "3.2.
|
53
|
-
"@finos/legend-server-depot": "6.0.
|
54
|
-
"@finos/legend-server-sdlc": "5.0.
|
55
|
-
"@finos/legend-shared": "10.0.
|
56
|
-
"@finos/legend-storage": "3.0.
|
48
|
+
"@finos/legend-application": "15.0.14",
|
49
|
+
"@finos/legend-art": "7.0.15",
|
50
|
+
"@finos/legend-graph": "29.0.0",
|
51
|
+
"@finos/legend-lego": "1.0.7",
|
52
|
+
"@finos/legend-query-builder": "3.2.9",
|
53
|
+
"@finos/legend-server-depot": "6.0.7",
|
54
|
+
"@finos/legend-server-sdlc": "5.0.8",
|
55
|
+
"@finos/legend-shared": "10.0.6",
|
56
|
+
"@finos/legend-storage": "3.0.56",
|
57
57
|
"@testing-library/react": "14.0.0",
|
58
58
|
"@types/react": "18.2.6",
|
59
59
|
"@types/react-dom": "18.2.4",
|
@@ -70,7 +70,7 @@
|
|
70
70
|
"yaml": "2.2.2"
|
71
71
|
},
|
72
72
|
"devDependencies": {
|
73
|
-
"@finos/legend-dev-utils": "2.0.
|
73
|
+
"@finos/legend-dev-utils": "2.0.61",
|
74
74
|
"@jest/globals": "29.5.0",
|
75
75
|
"cross-env": "7.0.3",
|
76
76
|
"eslint": "8.40.0",
|
@@ -36,6 +36,7 @@ import {
|
|
36
36
|
QueryBuilder_LegendApplicationPlugin,
|
37
37
|
} from '@finos/legend-query-builder';
|
38
38
|
import type { LegendStudioApplicationStore } from '../stores/LegendStudioBaseStore.js';
|
39
|
+
import { DSL_ExternalFormat_LegendStudioApplicationPlugin } from '../components/extensions/DSL_ExternalFormat_LegendStudioApplicationPlugin.js';
|
39
40
|
|
40
41
|
export class LegendStudio extends LegendApplication {
|
41
42
|
declare config: LegendStudioApplicationConfig;
|
@@ -51,6 +52,7 @@ export class LegendStudio extends LegendApplication {
|
|
51
52
|
new Core_LegendApplicationPlugin(),
|
52
53
|
new Core_LegendStudioApplicationPlugin(),
|
53
54
|
new QueryBuilder_LegendApplicationPlugin(),
|
55
|
+
new DSL_ExternalFormat_LegendStudioApplicationPlugin(),
|
54
56
|
]);
|
55
57
|
return application;
|
56
58
|
}
|
@@ -44,6 +44,9 @@ import {
|
|
44
44
|
Panel,
|
45
45
|
PanelContent,
|
46
46
|
PanelDnDEntry,
|
47
|
+
PanelHeader,
|
48
|
+
PanelHeaderActions,
|
49
|
+
PanelHeaderActionItem,
|
47
50
|
} from '@finos/legend-art';
|
48
51
|
import {
|
49
52
|
CORE_DND_TYPE,
|
@@ -455,23 +458,21 @@ const FileGenerationSpecifications = observer(
|
|
455
458
|
[handleDrop],
|
456
459
|
);
|
457
460
|
return (
|
458
|
-
<
|
459
|
-
<
|
461
|
+
<Panel className="generation-spec-file-generation-editor">
|
462
|
+
<PanelHeader>
|
460
463
|
<div className="panel__header__title">
|
461
464
|
<div className="panel__header__title__label">File Generations</div>
|
462
465
|
</div>
|
463
|
-
<
|
464
|
-
<
|
465
|
-
className="panel__header__action"
|
466
|
+
<PanelHeaderActions>
|
467
|
+
<PanelHeaderActionItem
|
466
468
|
onClick={addFileGeneration}
|
467
469
|
disabled={!fileGenerationsOptions.length}
|
468
|
-
tabIndex={-1}
|
469
470
|
title="Add File Generation"
|
470
471
|
>
|
471
472
|
<PlusIcon />
|
472
|
-
</
|
473
|
-
</
|
474
|
-
</
|
473
|
+
</PanelHeaderActionItem>
|
474
|
+
</PanelHeaderActions>
|
475
|
+
</PanelHeader>
|
475
476
|
<PanelContent>
|
476
477
|
<PanelDropZone
|
477
478
|
isDragOver={isDragOver}
|
@@ -499,7 +500,7 @@ const FileGenerationSpecifications = observer(
|
|
499
500
|
)}
|
500
501
|
</PanelDropZone>
|
501
502
|
</PanelContent>
|
502
|
-
</
|
503
|
+
</Panel>
|
503
504
|
);
|
504
505
|
},
|
505
506
|
);
|
@@ -523,7 +524,7 @@ export const GenerationSpecificationEditor = observer(() => {
|
|
523
524
|
return (
|
524
525
|
<div className="generation-spec-editor">
|
525
526
|
<Panel>
|
526
|
-
<
|
527
|
+
<PanelHeader>
|
527
528
|
<div className="panel__header__title">
|
528
529
|
<div className="panel__header__title__label">
|
529
530
|
Generation Specification
|
@@ -532,8 +533,8 @@ export const GenerationSpecificationEditor = observer(() => {
|
|
532
533
|
{generationSpec.name}
|
533
534
|
</div>
|
534
535
|
</div>
|
535
|
-
<
|
536
|
-
<
|
536
|
+
<PanelHeaderActions>
|
537
|
+
<PanelHeaderActionItem
|
537
538
|
className={clsx(
|
538
539
|
'editor__status-bar__action editor__status-bar__generate-btn',
|
539
540
|
{
|
@@ -541,13 +542,12 @@ export const GenerationSpecificationEditor = observer(() => {
|
|
541
542
|
modelGenerationState.isRunningGlobalGenerate,
|
542
543
|
},
|
543
544
|
)}
|
544
|
-
tabIndex={-1}
|
545
545
|
onClick={generate}
|
546
546
|
title="Generate"
|
547
547
|
>
|
548
548
|
<FireIcon />
|
549
|
-
</
|
550
|
-
<
|
549
|
+
</PanelHeaderActionItem>
|
550
|
+
<PanelHeaderActionItem
|
551
551
|
className={clsx(
|
552
552
|
'editor__status-bar__action editor__status-bar__generate-btn',
|
553
553
|
{
|
@@ -557,14 +557,13 @@ export const GenerationSpecificationEditor = observer(() => {
|
|
557
557
|
},
|
558
558
|
)}
|
559
559
|
onClick={emptyGenerationEntities}
|
560
|
-
tabIndex={-1}
|
561
560
|
title="Clear generation entities"
|
562
561
|
>
|
563
562
|
<RefreshIcon />
|
564
|
-
</
|
565
|
-
</
|
566
|
-
</
|
567
|
-
<
|
563
|
+
</PanelHeaderActionItem>
|
564
|
+
</PanelHeaderActions>
|
565
|
+
</PanelHeader>
|
566
|
+
<PanelContent className="generation-spec-editor__content">
|
568
567
|
<ResizablePanelGroup orientation="horizontal">
|
569
568
|
<ResizablePanel size={400} minSize={25}>
|
570
569
|
<ModelGenerationSpecifications
|
@@ -582,7 +581,7 @@ export const GenerationSpecificationEditor = observer(() => {
|
|
582
581
|
/>
|
583
582
|
</ResizablePanel>
|
584
583
|
</ResizablePanelGroup>
|
585
|
-
</
|
584
|
+
</PanelContent>
|
586
585
|
</Panel>
|
587
586
|
</div>
|
588
587
|
);
|
@@ -62,11 +62,7 @@ import { useDrop } from 'react-dnd';
|
|
62
62
|
import type { DSL_LegendStudioApplicationPlugin_Extension } from '../../../stores/LegendStudioApplicationPlugin.js';
|
63
63
|
import { flowResult } from 'mobx';
|
64
64
|
import { useEditorStore } from '../EditorStoreProvider.js';
|
65
|
-
import {
|
66
|
-
guaranteeNonNullable,
|
67
|
-
hasWhiteSpace,
|
68
|
-
isNonNullable,
|
69
|
-
} from '@finos/legend-shared';
|
65
|
+
import { hasWhiteSpace, isNonNullable } from '@finos/legend-shared';
|
70
66
|
import {
|
71
67
|
PARSER_SECTION_MARKER,
|
72
68
|
PURE_CONNECTION_NAME,
|
@@ -689,8 +685,6 @@ export const GrammarTextEditor = observer(() => {
|
|
689
685
|
const grammarTextEditorState = editorStore.getGraphEditorMode(
|
690
686
|
GraphEditGrammarModeState,
|
691
687
|
).grammarTextEditorState;
|
692
|
-
const currentElementLabelRegexString =
|
693
|
-
grammarTextEditorState.currentElementLabelRegexString;
|
694
688
|
const error = editorStore.graphState.error;
|
695
689
|
|
696
690
|
const forcedCursorPosition = grammarTextEditorState.forcedCursorPosition;
|
@@ -983,40 +977,6 @@ export const GrammarTextEditor = observer(() => {
|
|
983
977
|
}
|
984
978
|
}, [editor, forcedCursorPosition]);
|
985
979
|
|
986
|
-
/**
|
987
|
-
* This effect helps to navigate to the currently selected element in the explorer tree
|
988
|
-
* NOTE: this effect is placed after the effect to highlight and move cursor to error,
|
989
|
-
* as even when there are errors, the user should be able to click on the explorer tree
|
990
|
-
* to navigate to the element
|
991
|
-
*/
|
992
|
-
useEffect(() => {
|
993
|
-
if (editor && currentElementLabelRegexString) {
|
994
|
-
const editorModel = editor.getModel();
|
995
|
-
if (editorModel) {
|
996
|
-
const match = editorModel.findMatches(
|
997
|
-
currentElementLabelRegexString,
|
998
|
-
true,
|
999
|
-
true,
|
1000
|
-
true,
|
1001
|
-
null,
|
1002
|
-
true,
|
1003
|
-
);
|
1004
|
-
if (Array.isArray(match) && match.length) {
|
1005
|
-
const range = guaranteeNonNullable(match[0]).range;
|
1006
|
-
editor.focus();
|
1007
|
-
editor.revealPositionInCenter({
|
1008
|
-
lineNumber: range.startLineNumber,
|
1009
|
-
column: range.startColumn,
|
1010
|
-
});
|
1011
|
-
editor.setPosition({
|
1012
|
-
column: range.startColumn,
|
1013
|
-
lineNumber: range.startLineNumber,
|
1014
|
-
});
|
1015
|
-
}
|
1016
|
-
}
|
1017
|
-
}
|
1018
|
-
}, [editor, currentElementLabelRegexString]);
|
1019
|
-
|
1020
980
|
// NOTE: dispose the editor to prevent potential memory-leak
|
1021
981
|
useEffect(
|
1022
982
|
() => (): void => {
|
@@ -35,6 +35,7 @@ import {
|
|
35
35
|
BlankPanelContent,
|
36
36
|
PanelLoadingIndicator,
|
37
37
|
clsx,
|
38
|
+
Button,
|
38
39
|
} from '@finos/legend-art';
|
39
40
|
import { flowResult } from 'mobx';
|
40
41
|
import { useEditorStore } from '../EditorStoreProvider.js';
|
@@ -167,14 +168,18 @@ export const ModelImporter = observer(() => {
|
|
167
168
|
() => flowResult(modelImportEditorState.loadCurrentProjectEntities()),
|
168
169
|
);
|
169
170
|
return (
|
170
|
-
<
|
171
|
+
<div
|
171
172
|
className="model-loader__header__configs__load-project-entities-btn"
|
172
|
-
tabIndex={-1}
|
173
173
|
onClick={loadCurrentProjectEntities}
|
174
174
|
title="Load current project entities"
|
175
175
|
>
|
176
|
-
<
|
177
|
-
|
176
|
+
<div className="model-loader__header__configs__edit-mode__icon">
|
177
|
+
<TruckLoadingIcon />
|
178
|
+
</div>
|
179
|
+
<div className="model-loader__header__configs__edit-mode__label">
|
180
|
+
current entities
|
181
|
+
</div>
|
182
|
+
</div>
|
178
183
|
);
|
179
184
|
}
|
180
185
|
return null;
|
@@ -323,18 +328,16 @@ export const ModelImporter = observer(() => {
|
|
323
328
|
{renderExtraActions()}
|
324
329
|
</div>
|
325
330
|
<div className="model-loader__header__action">
|
326
|
-
<
|
327
|
-
className="
|
331
|
+
<Button
|
332
|
+
className="model-loader__header__load-btn"
|
328
333
|
onClick={loadModel}
|
329
334
|
disabled={
|
330
335
|
modelImportEditorState.loadModelActionState.isInProgress ||
|
331
336
|
modelImportEditorState.isLoadingDisabled
|
332
337
|
}
|
333
|
-
tabIndex={-1}
|
334
338
|
title="Load model"
|
335
|
-
|
336
|
-
|
337
|
-
</button>
|
339
|
+
text="Load"
|
340
|
+
/>
|
338
341
|
</div>
|
339
342
|
</div>
|
340
343
|
|
@@ -72,11 +72,7 @@ import {
|
|
72
72
|
ElementDragSource,
|
73
73
|
} from '../../../stores/editor/utils/DnDUtils.js';
|
74
74
|
import { useDrop } from 'react-dnd';
|
75
|
-
import {
|
76
|
-
assertErrorThrown,
|
77
|
-
guaranteeType,
|
78
|
-
UnsupportedOperationError,
|
79
|
-
} from '@finos/legend-shared';
|
75
|
+
import { assertErrorThrown, guaranteeType } from '@finos/legend-shared';
|
80
76
|
import type { ConnectionEditorState } from '../../../stores/editor/editor-state/element-editor-state/connection/ConnectionEditorState.js';
|
81
77
|
import { useEditorStore } from '../EditorStoreProvider.js';
|
82
78
|
import {
|
@@ -147,10 +143,7 @@ const getConnectionTooltipText = (
|
|
147
143
|
return tooltipText;
|
148
144
|
}
|
149
145
|
}
|
150
|
-
|
151
|
-
`Can't build tooltip text for connection: no compatible builder available from plugins`,
|
152
|
-
connection,
|
153
|
-
);
|
146
|
+
return `Unknown connection`;
|
154
147
|
};
|
155
148
|
|
156
149
|
const IdentifiedConnectionsPerStoreExplorerContextMenu = observer(
|
@@ -15,7 +15,14 @@
|
|
15
15
|
*/
|
16
16
|
|
17
17
|
import { observer } from 'mobx-react-lite';
|
18
|
-
import {
|
18
|
+
import {
|
19
|
+
BlankPanelContent,
|
20
|
+
Button,
|
21
|
+
LockIcon,
|
22
|
+
Panel,
|
23
|
+
PanelContent,
|
24
|
+
PanelHeader,
|
25
|
+
} from '@finos/legend-art';
|
19
26
|
import { UnsupportedElementEditorState } from '../../../stores/editor/editor-state/UnsupportedElementEditorState.js';
|
20
27
|
import { flowResult } from 'mobx';
|
21
28
|
import { useEditorStore } from '../EditorStoreProvider.js';
|
@@ -35,12 +42,11 @@ export const UnsupportedEditorPanel = observer(
|
|
35
42
|
<div className="unsupported-element-editor__main">
|
36
43
|
<div className="unsupported-element-editor__summary">{text}</div>
|
37
44
|
{!isReadOnly && (
|
38
|
-
<
|
39
|
-
className="
|
45
|
+
<Button
|
46
|
+
className="unsupported-element-editor__to-text-mode__btn"
|
40
47
|
onClick={handleTextModeClick}
|
41
|
-
|
42
|
-
|
43
|
-
</button>
|
48
|
+
text="Edit in text mode"
|
49
|
+
/>
|
44
50
|
)}
|
45
51
|
</div>
|
46
52
|
</BlankPanelContent>
|
@@ -61,7 +67,7 @@ export const UnsupportedElementEditor = observer(() => {
|
|
61
67
|
return (
|
62
68
|
<div className="unsupported-element-editor">
|
63
69
|
<Panel>
|
64
|
-
<
|
70
|
+
<PanelHeader>
|
65
71
|
<div className="panel__header__title">
|
66
72
|
{isReadOnly && (
|
67
73
|
<div className="uml-element-editor__header__lock">
|
@@ -71,13 +77,13 @@ export const UnsupportedElementEditor = observer(() => {
|
|
71
77
|
<div className="panel__header__title__label">element</div>
|
72
78
|
<div className="panel__header__title__content">{element.name}</div>
|
73
79
|
</div>
|
74
|
-
</
|
75
|
-
<
|
80
|
+
</PanelHeader>
|
81
|
+
<PanelContent className="unsupported-element-editor__content">
|
76
82
|
<UnsupportedEditorPanel
|
77
83
|
text="Can't display this element in form-mode"
|
78
84
|
isReadOnly={isReadOnly}
|
79
85
|
/>
|
80
|
-
</
|
86
|
+
</PanelContent>
|
81
87
|
</Panel>
|
82
88
|
</div>
|
83
89
|
);
|
@@ -230,6 +230,9 @@ export const DatabaseBuilder = observer(
|
|
230
230
|
);
|
231
231
|
const closeModal = (): void => {
|
232
232
|
databaseBuilderState.setShowModal(false);
|
233
|
+
databaseBuilderState.editorStore.explorerTreeState.setDatabaseBuilderState(
|
234
|
+
undefined,
|
235
|
+
);
|
233
236
|
};
|
234
237
|
const isExecutingAction =
|
235
238
|
databaseBuilderState.isBuildingDatabase ||
|
package/src/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.tsx
CHANGED
@@ -84,7 +84,6 @@ import {
|
|
84
84
|
} from '@finos/legend-graph';
|
85
85
|
import type { LegendStudioApplicationPlugin } from '../../../../stores/LegendStudioApplicationPlugin.js';
|
86
86
|
import type { STO_Relational_LegendStudioApplicationPlugin_Extension } from '../../../../stores/extensions/STO_Relational_LegendStudioApplicationPlugin_Extension.js';
|
87
|
-
import { DatabaseBuilder } from './DatabaseBuilder.js';
|
88
87
|
import { useEditorStore } from '../../EditorStoreProvider.js';
|
89
88
|
import {
|
90
89
|
CODE_EDITOR_LANGUAGE,
|
@@ -1064,7 +1063,6 @@ const RelationalConnectionStoreEditor = observer(
|
|
1064
1063
|
}) => {
|
1065
1064
|
const { connectionValueState, isReadOnly } = props;
|
1066
1065
|
const connection = connectionValueState.connection;
|
1067
|
-
const databaseBuilderState = connectionValueState.databaseBuilderState;
|
1068
1066
|
// store
|
1069
1067
|
const isStoreEmpty = connectionValueState.storeValidationResult;
|
1070
1068
|
const noStoreLabel = (
|
@@ -1098,7 +1096,10 @@ const RelationalConnectionStoreEditor = observer(
|
|
1098
1096
|
}
|
1099
1097
|
};
|
1100
1098
|
const openDatabaseBuilder = (): void =>
|
1101
|
-
|
1099
|
+
connectionValueState.editorStore.explorerTreeState.buildDbBuilderState(
|
1100
|
+
connection,
|
1101
|
+
isReadOnly,
|
1102
|
+
);
|
1102
1103
|
|
1103
1104
|
return (
|
1104
1105
|
<div className="relational-connection-editor">
|
@@ -1124,10 +1125,6 @@ const RelationalConnectionStoreEditor = observer(
|
|
1124
1125
|
</button>
|
1125
1126
|
</PanelFormSection>
|
1126
1127
|
</PanelContent>
|
1127
|
-
<DatabaseBuilder
|
1128
|
-
databaseBuilderState={databaseBuilderState}
|
1129
|
-
isReadOnly={isReadOnly}
|
1130
|
-
/>
|
1131
1128
|
</div>
|
1132
1129
|
);
|
1133
1130
|
},
|
@@ -1166,7 +1163,7 @@ const renderEditorPostProcessor = (
|
|
1166
1163
|
<UnsupportedEditorPanel
|
1167
1164
|
isReadOnly={true}
|
1168
1165
|
text="Can't display post-processor in form mode"
|
1169
|
-
|
1166
|
+
/>
|
1170
1167
|
);
|
1171
1168
|
}
|
1172
1169
|
};
|
@@ -1575,7 +1572,7 @@ const RelationalConnectionGeneralEditor = observer(
|
|
1575
1572
|
label: connection.type,
|
1576
1573
|
};
|
1577
1574
|
const onTypeChange = (
|
1578
|
-
val: { label: string; value:
|
1575
|
+
val: { label: string; value: string } | null,
|
1579
1576
|
): void => {
|
1580
1577
|
dBConnection_setType(connection, val?.value ?? DatabaseType.H2);
|
1581
1578
|
};
|
@@ -1597,15 +1594,16 @@ const RelationalConnectionGeneralEditor = observer(
|
|
1597
1594
|
label: type,
|
1598
1595
|
}));
|
1599
1596
|
const selectedSourceSpec = {
|
1600
|
-
|
1601
|
-
|
1597
|
+
label:
|
1598
|
+
connectionValueState.selectedDatasourceSpecificationType ?? 'Unknown',
|
1599
|
+
value: connectionValueState.selectedDatasourceSpecificationType,
|
1602
1600
|
};
|
1603
1601
|
const onSourceSpecChange = (
|
1604
|
-
val: { label: string; value: string } | null,
|
1602
|
+
val: { label: string; value: string | undefined } | null,
|
1605
1603
|
): void => {
|
1606
|
-
|
1607
|
-
val
|
1608
|
-
|
1604
|
+
if (val?.value) {
|
1605
|
+
connectionValueState.changeDatasourceSpec(val.value);
|
1606
|
+
}
|
1609
1607
|
};
|
1610
1608
|
|
1611
1609
|
// auth type
|
@@ -1625,15 +1623,16 @@ const RelationalConnectionGeneralEditor = observer(
|
|
1625
1623
|
label: type,
|
1626
1624
|
}));
|
1627
1625
|
const selectedAuth = {
|
1628
|
-
|
1629
|
-
|
1626
|
+
label:
|
1627
|
+
connectionValueState.selectedAuthenticationStrategyType ?? 'Unknown',
|
1628
|
+
value: connectionValueState.selectedAuthenticationStrategyType,
|
1630
1629
|
};
|
1631
1630
|
const onAuthStrategyChange = (
|
1632
|
-
val: { label: string; value: string } | null,
|
1631
|
+
val: { label: string; value: string | undefined } | null,
|
1633
1632
|
): void => {
|
1634
|
-
|
1635
|
-
val
|
1636
|
-
|
1633
|
+
if (val?.value) {
|
1634
|
+
connectionValueState.changeAuthenticationStrategy(val.value);
|
1635
|
+
}
|
1637
1636
|
};
|
1638
1637
|
|
1639
1638
|
return (
|
@@ -1672,7 +1671,7 @@ const RelationalConnectionGeneralEditor = observer(
|
|
1672
1671
|
<ResizablePanelGroup orientation="vertical">
|
1673
1672
|
<ResizablePanel size={450} minSize={50}>
|
1674
1673
|
<div className="relational-connection-editor__auth">
|
1675
|
-
<PanelHeader title="datasource
|
1674
|
+
<PanelHeader title="datasource specification"></PanelHeader>
|
1676
1675
|
<PanelContent className="relational-connection-editor__auth__content">
|
1677
1676
|
<PanelFormSection>
|
1678
1677
|
<div className="panel__content__form__section__header__label">
|
@@ -1699,7 +1698,7 @@ const RelationalConnectionGeneralEditor = observer(
|
|
1699
1698
|
<ResizablePanelSplitter />
|
1700
1699
|
<ResizablePanel>
|
1701
1700
|
<div className="relational-connection-editor__source">
|
1702
|
-
<PanelHeader title="authentication
|
1701
|
+
<PanelHeader title="authentication strategy"></PanelHeader>
|
1703
1702
|
<PanelContent className="relational-connection-editor__source__content">
|
1704
1703
|
<PanelFormSection>
|
1705
1704
|
<div className="panel__content__form__section__header__label">
|