@finos/legend-application-studio 28.18.39 → 28.18.41
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/__lib__/LegendStudioNavigation.d.ts +3 -3
- package/lib/__lib__/LegendStudioNavigation.d.ts.map +1 -1
- package/lib/__lib__/LegendStudioNavigation.js +3 -3
- package/lib/__lib__/LegendStudioNavigation.js.map +1 -1
- package/lib/components/LegendStudioWebApplication.d.ts.map +1 -1
- package/lib/components/LegendStudioWebApplication.js +12 -51
- package/lib/components/LegendStudioWebApplication.js.map +1 -1
- package/lib/components/editor/Editor.d.ts.map +1 -1
- package/lib/components/editor/Editor.js +1 -1
- package/lib/components/editor/Editor.js.map +1 -1
- package/lib/components/editor/QuickInput.d.ts.map +1 -1
- package/lib/components/editor/QuickInput.js +2 -2
- package/lib/components/editor/QuickInput.js.map +1 -1
- package/lib/components/editor/__test-utils__/EditorComponentTestUtils.d.ts.map +1 -1
- package/lib/components/editor/__test-utils__/EditorComponentTestUtils.js +7 -10
- package/lib/components/editor/__test-utils__/EditorComponentTestUtils.js.map +1 -1
- package/lib/components/editor/command-center/ProjectSearchCommand.d.ts.map +1 -1
- package/lib/components/editor/command-center/ProjectSearchCommand.js +2 -2
- package/lib/components/editor/command-center/ProjectSearchCommand.js.map +1 -1
- package/lib/components/editor/editor-group/GenerationSpecificationEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/GenerationSpecificationEditor.js +4 -1
- package/lib/components/editor/editor-group/GenerationSpecificationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/RuntimeEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/RuntimeEditor.js +12 -10
- package/lib/components/editor/editor-group/RuntimeEditor.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 +3 -4
- package/lib/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.js.map +1 -1
- package/lib/components/editor/editor-group/data-editor/EmbeddedDataEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/data-editor/EmbeddedDataEditor.js +3 -3
- package/lib/components/editor/editor-group/data-editor/EmbeddedDataEditor.js.map +1 -1
- package/lib/components/editor/editor-group/database/IsolatedQueryDatabase.d.ts.map +1 -1
- package/lib/components/editor/editor-group/database/IsolatedQueryDatabase.js +3 -1
- package/lib/components/editor/editor-group/database/IsolatedQueryDatabase.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/external-format-editor/DSL_ExternalFormat_BindingElementEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_BindingElementEditor.js +19 -13
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_BindingElementEditor.js.map +1 -1
- package/lib/components/editor/editor-group/function-activator/FunctionEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/function-activator/FunctionEditor.js +9 -6
- package/lib/components/editor/editor-group/function-activator/FunctionEditor.js.map +1 -1
- package/lib/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.js +1 -1
- package/lib/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.js.map +1 -1
- package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.js +8 -6
- package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.js.map +1 -1
- package/lib/components/editor/editor-group/function-activator/testable/FunctionTestableEditor.js +1 -1
- package/lib/components/editor/editor-group/function-activator/testable/FunctionTestableEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/EnumerationMappingEditor.js +2 -2
- package/lib/components/editor/editor-group/mapping-editor/EnumerationMappingEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/FlatDataPropertyMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/FlatDataPropertyMappingEditor.js +6 -2
- package/lib/components/editor/editor-group/mapping-editor/FlatDataPropertyMappingEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationSourceSelectorModal.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationSourceSelectorModal.js +10 -6
- package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationSourceSelectorModal.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingExecutionBuilder.js +2 -2
- package/lib/components/editor/editor-group/mapping-editor/MappingExecutionBuilder.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingExecutionQueryBuilder.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingExecutionQueryBuilder.js +3 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingExecutionQueryBuilder.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingTestableEditor.js +2 -2
- package/lib/components/editor/editor-group/mapping-editor/MappingTestableEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/NewMappingElementModal.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/NewMappingElementModal.js +7 -4
- package/lib/components/editor/editor-group/mapping-editor/NewMappingElementModal.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/OperationSetImplementationEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/OperationSetImplementationEditor.js +2 -2
- package/lib/components/editor/editor-group/mapping-editor/OperationSetImplementationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/PurePropertyMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/PurePropertyMappingEditor.js +6 -2
- package/lib/components/editor/editor-group/mapping-editor/PurePropertyMappingEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/relational/RelationalPropertyMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/relational/RelationalPropertyMappingEditor.js +6 -2
- package/lib/components/editor/editor-group/mapping-editor/relational/RelationalPropertyMappingEditor.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 -1
- package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/BulkServiceRegistrationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceEditor.js +2 -2
- package/lib/components/editor/editor-group/service-editor/ServiceEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceExecutionEditor.js +2 -2
- package/lib/components/editor/editor-group/service-editor/ServiceExecutionEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServicePostValidationEditor.js +1 -1
- package/lib/components/editor/editor-group/service-editor/ServicePostValidationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceRegistrationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestsEditor.js +3 -3
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestsEditor.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/AssociationEditor.js +1 -1
- package/lib/components/editor/editor-group/uml-editor/AssociationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/ClassEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/ClassEditor.js +7 -4
- package/lib/components/editor/editor-group/uml-editor/ClassEditor.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/PropertyEditor.js +1 -1
- package/lib/components/editor/editor-group/uml-editor/PropertyEditor.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/StereotypeSelector.d.ts.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/StereotypeSelector.js +2 -2
- package/lib/components/editor/editor-group/uml-editor/StereotypeSelector.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/TaggedValueEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/TaggedValueEditor.js +2 -2
- package/lib/components/editor/editor-group/uml-editor/TaggedValueEditor.js.map +1 -1
- package/lib/components/editor/panel-group/SQLPlaygroundPanel.js +3 -3
- package/lib/components/editor/panel-group/SQLPlaygroundPanel.js.map +1 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.d.ts.map +1 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.js +8 -2
- package/lib/components/editor/side-bar/CreateNewElementModal.js.map +1 -1
- package/lib/components/editor/side-bar/Explorer.js +2 -2
- 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 +3 -1
- package/lib/components/editor/side-bar/ProjectOverview.js.map +1 -1
- package/lib/components/lazy-text-editor/LazyTextEditor.d.ts.map +1 -1
- package/lib/components/lazy-text-editor/LazyTextEditor.js +1 -1
- package/lib/components/lazy-text-editor/LazyTextEditor.js.map +1 -1
- package/lib/components/project-reviewer/ProjectReviewer.d.ts.map +1 -1
- package/lib/components/project-reviewer/ProjectReviewer.js +3 -2
- package/lib/components/project-reviewer/ProjectReviewer.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +6 -6
- package/lib/stores/LegendStudioBaseStore.d.ts.map +1 -1
- package/lib/stores/LegendStudioBaseStore.js +12 -7
- package/lib/stores/LegendStudioBaseStore.js.map +1 -1
- package/lib/stores/editor/EditorStore.d.ts +1 -1
- package/lib/stores/editor/EditorStore.d.ts.map +1 -1
- package/lib/stores/editor/EditorStore.js +1 -1
- package/lib/stores/editor/EditorStore.js.map +1 -1
- package/lib/stores/showcase/ShowcaseViewerStore.js +1 -1
- package/lib/stores/showcase/ShowcaseViewerStore.js.map +1 -1
- package/package.json +18 -18
- package/src/__lib__/LegendStudioNavigation.ts +5 -5
- package/src/components/LegendStudioWebApplication.tsx +127 -106
- package/src/components/editor/Editor.tsx +2 -1
- package/src/components/editor/QuickInput.tsx +3 -2
- package/src/components/editor/__test-utils__/EditorComponentTestUtils.tsx +29 -30
- package/src/components/editor/command-center/ProjectSearchCommand.tsx +4 -3
- package/src/components/editor/editor-group/GenerationSpecificationEditor.tsx +7 -2
- package/src/components/editor/editor-group/RuntimeEditor.tsx +16 -12
- package/src/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.tsx +7 -13
- package/src/components/editor/editor-group/data-editor/EmbeddedDataEditor.tsx +10 -9
- package/src/components/editor/editor-group/database/IsolatedQueryDatabase.tsx +5 -1
- package/src/components/editor/editor-group/element-generation-editor/FileGenerationEditor.tsx +1 -1
- package/src/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_BindingElementEditor.tsx +20 -14
- package/src/components/editor/editor-group/function-activator/FunctionEditor.tsx +11 -8
- package/src/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.tsx +0 -1
- package/src/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.tsx +11 -7
- package/src/components/editor/editor-group/function-activator/testable/FunctionTestableEditor.tsx +1 -1
- package/src/components/editor/editor-group/mapping-editor/EnumerationMappingEditor.tsx +4 -4
- package/src/components/editor/editor-group/mapping-editor/FlatDataPropertyMappingEditor.tsx +9 -2
- package/src/components/editor/editor-group/mapping-editor/InstanceSetImplementationSourceSelectorModal.tsx +7 -6
- package/src/components/editor/editor-group/mapping-editor/MappingExecutionBuilder.tsx +3 -3
- package/src/components/editor/editor-group/mapping-editor/MappingExecutionQueryBuilder.tsx +3 -0
- package/src/components/editor/editor-group/mapping-editor/MappingTestableEditor.tsx +2 -2
- package/src/components/editor/editor-group/mapping-editor/NewMappingElementModal.tsx +9 -5
- package/src/components/editor/editor-group/mapping-editor/OperationSetImplementationEditor.tsx +3 -2
- package/src/components/editor/editor-group/mapping-editor/PurePropertyMappingEditor.tsx +9 -2
- package/src/components/editor/editor-group/mapping-editor/relational/RelationalPropertyMappingEditor.tsx +9 -2
- package/src/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.tsx +7 -3
- package/src/components/editor/editor-group/service-editor/BulkServiceRegistrationEditor.tsx +1 -1
- package/src/components/editor/editor-group/service-editor/ServiceEditor.tsx +0 -2
- package/src/components/editor/editor-group/service-editor/ServiceExecutionEditor.tsx +5 -5
- package/src/components/editor/editor-group/service-editor/ServicePostValidationEditor.tsx +2 -2
- package/src/components/editor/editor-group/service-editor/ServiceRegistrationEditor.tsx +1 -1
- package/src/components/editor/editor-group/service-editor/testable/ServiceTestsEditor.tsx +3 -3
- package/src/components/editor/editor-group/uml-editor/AssociationEditor.tsx +3 -3
- package/src/components/editor/editor-group/uml-editor/ClassEditor.tsx +10 -7
- package/src/components/editor/editor-group/uml-editor/PropertyEditor.tsx +1 -1
- package/src/components/editor/editor-group/uml-editor/StereotypeSelector.tsx +5 -3
- package/src/components/editor/editor-group/uml-editor/TaggedValueEditor.tsx +4 -3
- package/src/components/editor/panel-group/SQLPlaygroundPanel.tsx +4 -4
- package/src/components/editor/side-bar/CreateNewElementModal.tsx +12 -4
- package/src/components/editor/side-bar/Explorer.tsx +3 -3
- package/src/components/editor/side-bar/ProjectOverview.tsx +5 -1
- package/src/components/lazy-text-editor/LazyTextEditor.tsx +2 -1
- package/src/components/project-reviewer/ProjectReviewer.tsx +3 -2
- package/src/stores/LegendStudioBaseStore.ts +12 -7
- package/src/stores/editor/EditorStore.ts +2 -2
- package/src/stores/showcase/ShowcaseViewerStore.ts +1 -1
@@ -52,7 +52,7 @@ export class ShowcaseViewerStore {
|
|
52
52
|
if (!this.editorStore.initState.isInInitialState) {
|
53
53
|
return;
|
54
54
|
}
|
55
|
-
const showcasePath = params
|
55
|
+
const showcasePath = params.showcasePath;
|
56
56
|
this.editorStore.initState.inProgress();
|
57
57
|
const onLeave = (hasBuildSucceeded) => {
|
58
58
|
this.editorStore.initState.complete(hasBuildSucceeded);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ShowcaseViewerStore.js","sourceRoot":"","sources":["../../../src/stores/showcase/ShowcaseViewerStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,oBAAoB,EAEpB,iBAAiB,EACjB,SAAS,EACT,QAAQ,EACR,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EACL,4BAA4B,GAE7B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,2BAA2B,EAC3B,mBAAmB,EACnB,iBAAiB,EACjB,6BAA6B,EAC7B,wBAAwB,GACzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAC7E,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAG9D,MAAM,OAAO,mBAAmB;IACrB,WAAW,CAAc;IACjB,oBAAoB,CAAgC;IACrE,SAAS,CAAuB;IAEhC,YAAY,WAAwB;QAClC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,cAAc,CAAC,IAAI,EAAE;YACnB,SAAS,EAAE,UAAU;YACrB,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,IAAI;SACjB,CAAC,CAAC;QACH,IAAI,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC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D,OAAO,EAAE,2CAA2C;wBACpD,MAAM,EAAE,kDAAkD;qBAC3D,CAAC,CAAC;oBACH,OAAO,KAAK,CAAC;gBACf,CAAC;YACH,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,WAAW,CAC/D,KAAK,CACN,CAAC;YACJ,CAAC;YACD,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;CACF"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-application-studio",
|
3
|
-
"version": "28.18.
|
3
|
+
"version": "28.18.41",
|
4
4
|
"description": "Legend Studio application core",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -45,25 +45,25 @@
|
|
45
45
|
"test:watch": "jest --watch"
|
46
46
|
},
|
47
47
|
"dependencies": {
|
48
|
-
"@finos/legend-application": "16.0.
|
49
|
-
"@finos/legend-art": "7.1.
|
50
|
-
"@finos/legend-code-editor": "2.0.
|
51
|
-
"@finos/legend-graph": "31.10.
|
52
|
-
"@finos/legend-lego": "2.0.
|
53
|
-
"@finos/legend-query-builder": "4.
|
54
|
-
"@finos/legend-server-depot": "6.0.
|
55
|
-
"@finos/legend-server-sdlc": "5.3.
|
56
|
-
"@finos/legend-server-showcase": "0.2.
|
57
|
-
"@finos/legend-shared": "10.0.
|
58
|
-
"@finos/legend-storage": "3.0.
|
48
|
+
"@finos/legend-application": "16.0.2",
|
49
|
+
"@finos/legend-art": "7.1.61",
|
50
|
+
"@finos/legend-code-editor": "2.0.3",
|
51
|
+
"@finos/legend-graph": "31.10.37",
|
52
|
+
"@finos/legend-lego": "2.0.4",
|
53
|
+
"@finos/legend-query-builder": "4.15.1",
|
54
|
+
"@finos/legend-server-depot": "6.0.62",
|
55
|
+
"@finos/legend-server-sdlc": "5.3.33",
|
56
|
+
"@finos/legend-server-showcase": "0.2.30",
|
57
|
+
"@finos/legend-shared": "10.0.57",
|
58
|
+
"@finos/legend-storage": "3.0.107",
|
59
59
|
"@testing-library/dom": "10.4.0",
|
60
60
|
"@testing-library/react": "16.0.1",
|
61
|
-
"@types/react": "18.3.
|
61
|
+
"@types/react": "18.3.11",
|
62
62
|
"@types/react-dom": "18.3.0",
|
63
63
|
"fast-xml-parser": "4.5.0",
|
64
64
|
"mobx": "6.13.3",
|
65
65
|
"mobx-react-lite": "4.0.7",
|
66
|
-
"mobx-utils": "6.0
|
66
|
+
"mobx-utils": "6.1.0",
|
67
67
|
"monaco-editor": "0.52.0",
|
68
68
|
"node-diff3": "3.1.2",
|
69
69
|
"react": "18.3.1",
|
@@ -73,15 +73,15 @@
|
|
73
73
|
"yaml": "2.5.1"
|
74
74
|
},
|
75
75
|
"devDependencies": {
|
76
|
-
"@finos/legend-dev-utils": "2.1.
|
76
|
+
"@finos/legend-dev-utils": "2.1.24",
|
77
77
|
"@jest/globals": "29.7.0",
|
78
78
|
"cross-env": "7.0.3",
|
79
|
-
"eslint": "
|
79
|
+
"eslint": "9.12.0",
|
80
80
|
"jest": "29.7.0",
|
81
81
|
"npm-run-all": "4.1.5",
|
82
82
|
"rimraf": "6.0.1",
|
83
|
-
"sass": "1.79.
|
84
|
-
"typescript": "5.6.
|
83
|
+
"sass": "1.79.4",
|
84
|
+
"typescript": "5.6.3"
|
85
85
|
},
|
86
86
|
"peerDependencies": {
|
87
87
|
"react": "^18.0.0"
|
@@ -61,7 +61,7 @@ export const LEGEND_STUDIO_SDLC_BYPASSED_ROUTE_PATTERN = Object.freeze({
|
|
61
61
|
VIEW_BY_GAV: `/view/archive/:${LEGEND_STUDIO_ROUTE_PATTERN_TOKEN.GAV}`,
|
62
62
|
VIEW_BY_GAV_ENTITY: `/view/archive/:${LEGEND_STUDIO_ROUTE_PATTERN_TOKEN.GAV}/entity/:${LEGEND_STUDIO_ROUTE_PATTERN_TOKEN.ENTITY_PATH}`,
|
63
63
|
PREVIEW_BY_GAV_ENTITY: `/view/archive/:${LEGEND_STUDIO_ROUTE_PATTERN_TOKEN.GAV}/entity/:${LEGEND_STUDIO_ROUTE_PATTERN_TOKEN.ENTITY_PATH}/preview`,
|
64
|
-
|
64
|
+
SHOWCASE: `/showcase/:${LEGEND_STUDIO_ROUTE_PATTERN_TOKEN.SHOWCASE_PATH}`,
|
65
65
|
PCT_REPORT: '/pct',
|
66
66
|
});
|
67
67
|
|
@@ -79,7 +79,7 @@ export type ProjectViewerPathParams = {
|
|
79
79
|
};
|
80
80
|
|
81
81
|
export type ShowcaseViewerPathParams = {
|
82
|
-
[
|
82
|
+
[LEGEND_STUDIO_ROUTE_PATTERN_TOKEN.SHOWCASE_PATH]?: string;
|
83
83
|
};
|
84
84
|
|
85
85
|
export type WorkspaceEditorPathParams = {
|
@@ -363,7 +363,7 @@ export const EXTERNAL_APPLICATION_NAVIGATION__generateServiceQueryCreatorUrl = (
|
|
363
363
|
versionId,
|
364
364
|
)}/${servicePath}`;
|
365
365
|
|
366
|
-
export const generateShowcasePath = (
|
367
|
-
generatePath(LEGEND_STUDIO_SDLC_BYPASSED_ROUTE_PATTERN.
|
368
|
-
|
366
|
+
export const generateShowcasePath = (showcasePath: string): string =>
|
367
|
+
generatePath(LEGEND_STUDIO_SDLC_BYPASSED_ROUTE_PATTERN.SHOWCASE, {
|
368
|
+
showcasePath: encodeURIComponent(showcasePath),
|
369
369
|
});
|
@@ -36,8 +36,7 @@ import {
|
|
36
36
|
BrowserEnvironmentProvider,
|
37
37
|
generateExtensionUrlPattern,
|
38
38
|
Route,
|
39
|
-
|
40
|
-
type TEMPORARY__ReactRouterComponentType,
|
39
|
+
Routes,
|
41
40
|
} from '@finos/legend-application/browser';
|
42
41
|
import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../__lib__/LegendStudioDocumentation.js';
|
43
42
|
import { LazyTextEditor } from './lazy-text-editor/LazyTextEditor.js';
|
@@ -122,138 +121,160 @@ export const LegendStudioWebApplicationRouter = observer(() => {
|
|
122
121
|
<>
|
123
122
|
{baseStore.isSDLCAuthorized === undefined && (
|
124
123
|
<>
|
125
|
-
<
|
124
|
+
<Routes>
|
126
125
|
<Route
|
127
|
-
|
128
|
-
|
129
|
-
LEGEND_STUDIO_SDLC_BYPASSED_ROUTE_PATTERN.VIEW_BY_GAV,
|
130
|
-
LEGEND_STUDIO_SDLC_BYPASSED_ROUTE_PATTERN.VIEW_BY_GAV_ENTITY,
|
131
|
-
]}
|
132
|
-
component={
|
133
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
134
|
-
ProjectViewer as TEMPORARY__ReactRouterComponentType
|
135
|
-
}
|
126
|
+
path={LEGEND_STUDIO_SDLC_BYPASSED_ROUTE_PATTERN.VIEW_BY_GAV}
|
127
|
+
element={<ProjectViewer />}
|
136
128
|
/>
|
137
129
|
<Route
|
138
|
-
exact={true}
|
139
130
|
path={
|
140
|
-
LEGEND_STUDIO_SDLC_BYPASSED_ROUTE_PATTERN.
|
141
|
-
}
|
142
|
-
component={
|
143
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
144
|
-
ShowcaseViewer as TEMPORARY__ReactRouterComponentType
|
131
|
+
LEGEND_STUDIO_SDLC_BYPASSED_ROUTE_PATTERN.VIEW_BY_GAV_ENTITY
|
145
132
|
}
|
133
|
+
element={<ProjectViewer />}
|
134
|
+
/>
|
135
|
+
|
136
|
+
<Route
|
137
|
+
path={LEGEND_STUDIO_SDLC_BYPASSED_ROUTE_PATTERN.SHOWCASE}
|
138
|
+
element={<ShowcaseViewer />}
|
146
139
|
/>
|
140
|
+
|
147
141
|
<Route
|
148
|
-
exact={true}
|
149
142
|
path={LEGEND_STUDIO_SDLC_BYPASSED_ROUTE_PATTERN.PCT_REPORT}
|
150
|
-
|
151
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
152
|
-
PureCompatibilityTestManager as TEMPORARY__ReactRouterComponentType
|
153
|
-
}
|
143
|
+
element={<PureCompatibilityTestManager />}
|
154
144
|
/>
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
</Switch>
|
145
|
+
|
146
|
+
<Route path="*" element={<NotFoundPage />} />
|
147
|
+
</Routes>
|
159
148
|
</>
|
160
149
|
)}
|
161
150
|
{baseStore.isSDLCAuthorized && (
|
162
151
|
<>
|
163
|
-
<
|
152
|
+
<Routes>
|
164
153
|
<Route
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
}
|
154
|
+
path={LEGEND_STUDIO_ROUTE_PATTERN.VIEW}
|
155
|
+
element={<ProjectViewer />}
|
156
|
+
/>
|
157
|
+
<Route
|
158
|
+
path={LEGEND_STUDIO_ROUTE_PATTERN.VIEW_BY_ENTITY}
|
159
|
+
element={<ProjectViewer />}
|
160
|
+
/>
|
161
|
+
<Route
|
162
|
+
path={LEGEND_STUDIO_ROUTE_PATTERN.VIEW_BY_REVISION}
|
163
|
+
element={<ProjectViewer />}
|
164
|
+
/>
|
165
|
+
<Route
|
166
|
+
path={LEGEND_STUDIO_ROUTE_PATTERN.VIEW_BY_VERSION}
|
167
|
+
element={<ProjectViewer />}
|
178
168
|
/>
|
179
169
|
<Route
|
180
|
-
|
170
|
+
path={LEGEND_STUDIO_ROUTE_PATTERN.VIEW_BY_REVISION_ENTITY}
|
171
|
+
element={<ProjectViewer />}
|
172
|
+
/>
|
173
|
+
<Route
|
174
|
+
path={LEGEND_STUDIO_ROUTE_PATTERN.VIEW_BY_VERSION_ENTITY}
|
175
|
+
element={<ProjectViewer />}
|
176
|
+
/>
|
177
|
+
|
178
|
+
<Route
|
181
179
|
path={LEGEND_STUDIO_ROUTE_PATTERN.REVIEW}
|
182
|
-
|
183
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
184
|
-
ProjectReviewer as TEMPORARY__ReactRouterComponentType
|
185
|
-
}
|
180
|
+
element={<ProjectReviewer />}
|
186
181
|
/>
|
182
|
+
|
187
183
|
<Route
|
188
|
-
|
189
|
-
|
190
|
-
path={[
|
191
|
-
LEGEND_STUDIO_ROUTE_PATTERN.EDIT_GROUP_WORKSPACE,
|
192
|
-
LEGEND_STUDIO_ROUTE_PATTERN.EDIT_PATCH_GROUP_WORKSPACE,
|
193
|
-
LEGEND_STUDIO_ROUTE_PATTERN.EDIT_GROUP_WORKSPACE_ENTITY,
|
194
|
-
LEGEND_STUDIO_ROUTE_PATTERN.EDIT_PATCH_GROUP_WORKSPACE_ENTITY,
|
195
|
-
LEGEND_STUDIO_ROUTE_PATTERN.EDIT_WORKSPACE,
|
196
|
-
LEGEND_STUDIO_ROUTE_PATTERN.EDIT_PATCH_WORKSPACE,
|
197
|
-
LEGEND_STUDIO_ROUTE_PATTERN.EDIT_WORKSPACE_ENTITY,
|
198
|
-
LEGEND_STUDIO_ROUTE_PATTERN.EDIT_PATCH_WORKSPACE_ENTITY,
|
199
|
-
]}
|
200
|
-
component={
|
201
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
202
|
-
Editor as TEMPORARY__ReactRouterComponentType
|
203
|
-
}
|
184
|
+
path={LEGEND_STUDIO_ROUTE_PATTERN.EDIT_GROUP_WORKSPACE}
|
185
|
+
element={<Editor />}
|
204
186
|
/>
|
205
187
|
<Route
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
component={
|
213
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
214
|
-
LazyTextEditor as TEMPORARY__ReactRouterComponentType
|
215
|
-
}
|
188
|
+
path={LEGEND_STUDIO_ROUTE_PATTERN.EDIT_PATCH_GROUP_WORKSPACE}
|
189
|
+
element={<Editor />}
|
190
|
+
/>
|
191
|
+
<Route
|
192
|
+
path={LEGEND_STUDIO_ROUTE_PATTERN.EDIT_GROUP_WORKSPACE_ENTITY}
|
193
|
+
element={<Editor />}
|
216
194
|
/>
|
217
195
|
<Route
|
218
|
-
|
219
|
-
|
220
|
-
// root path will lead to setup page (home page)
|
221
|
-
'/',
|
222
|
-
LEGEND_STUDIO_ROUTE_PATTERN.SETUP_WORKSPACE,
|
223
|
-
LEGEND_STUDIO_ROUTE_PATTERN.SETUP_PATCH_WORKSPACE,
|
224
|
-
LEGEND_STUDIO_ROUTE_PATTERN.SETUP_GROUP_WORKSPACE,
|
225
|
-
LEGEND_STUDIO_ROUTE_PATTERN.SETUP_PATCH_GROUP_WORKSPACE,
|
226
|
-
]}
|
227
|
-
component={
|
228
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
229
|
-
WorkspaceSetup as TEMPORARY__ReactRouterComponentType
|
196
|
+
path={
|
197
|
+
LEGEND_STUDIO_ROUTE_PATTERN.EDIT_PATCH_GROUP_WORKSPACE_ENTITY
|
230
198
|
}
|
199
|
+
element={<Editor />}
|
200
|
+
/>
|
201
|
+
<Route
|
202
|
+
path={LEGEND_STUDIO_ROUTE_PATTERN.EDIT_WORKSPACE}
|
203
|
+
element={<Editor />}
|
204
|
+
/>
|
205
|
+
<Route
|
206
|
+
path={LEGEND_STUDIO_ROUTE_PATTERN.EDIT_PATCH_WORKSPACE}
|
207
|
+
element={<Editor />}
|
208
|
+
/>
|
209
|
+
<Route
|
210
|
+
path={LEGEND_STUDIO_ROUTE_PATTERN.EDIT_WORKSPACE_ENTITY}
|
211
|
+
element={<Editor />}
|
212
|
+
/>
|
213
|
+
<Route
|
214
|
+
path={LEGEND_STUDIO_ROUTE_PATTERN.EDIT_PATCH_WORKSPACE_ENTITY}
|
215
|
+
element={<Editor />}
|
216
|
+
/>
|
217
|
+
|
218
|
+
<Route
|
219
|
+
path={LEGEND_STUDIO_ROUTE_PATTERN.TEXT_GROUP_WORKSPACE}
|
220
|
+
element={<LazyTextEditor />}
|
221
|
+
/>
|
222
|
+
<Route
|
223
|
+
path={LEGEND_STUDIO_ROUTE_PATTERN.TEXT_WORKSPACE}
|
224
|
+
element={<LazyTextEditor />}
|
225
|
+
/>
|
226
|
+
|
227
|
+
<Route
|
228
|
+
// root path will lead to setup page (home page)
|
229
|
+
path=""
|
230
|
+
element={<WorkspaceSetup />}
|
231
|
+
/>
|
232
|
+
<Route
|
233
|
+
// root path will lead to setup page (home page)
|
234
|
+
path="/"
|
235
|
+
element={<WorkspaceSetup />}
|
231
236
|
/>
|
232
237
|
<Route
|
233
|
-
|
238
|
+
path={LEGEND_STUDIO_ROUTE_PATTERN.SETUP_WORKSPACE}
|
239
|
+
element={<WorkspaceSetup />}
|
240
|
+
/>
|
241
|
+
<Route
|
242
|
+
path={LEGEND_STUDIO_ROUTE_PATTERN.SETUP_PATCH_WORKSPACE}
|
243
|
+
element={<WorkspaceSetup />}
|
244
|
+
/>
|
245
|
+
<Route
|
246
|
+
path={LEGEND_STUDIO_ROUTE_PATTERN.SETUP_GROUP_WORKSPACE}
|
247
|
+
element={<WorkspaceSetup />}
|
248
|
+
/>
|
249
|
+
<Route
|
250
|
+
path={LEGEND_STUDIO_ROUTE_PATTERN.SETUP_PATCH_GROUP_WORKSPACE}
|
251
|
+
element={<WorkspaceSetup />}
|
252
|
+
/>
|
253
|
+
|
254
|
+
<Route
|
255
|
+
path={LEGEND_STUDIO_SDLC_BYPASSED_ROUTE_PATTERN.SHOWCASE}
|
256
|
+
element={<ShowcaseViewer />}
|
257
|
+
/>
|
258
|
+
|
259
|
+
<Route
|
234
260
|
path={LEGEND_STUDIO_SDLC_BYPASSED_ROUTE_PATTERN.PCT_REPORT}
|
235
|
-
|
236
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
237
|
-
PureCompatibilityTestManager as TEMPORARY__ReactRouterComponentType
|
238
|
-
}
|
261
|
+
element={<PureCompatibilityTestManager />}
|
239
262
|
/>
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
<Route
|
254
|
-
|
255
|
-
</Route>
|
256
|
-
</Switch>
|
263
|
+
|
264
|
+
{extraApplicationPageEntries.flatMap((entry) =>
|
265
|
+
entry.addressPatterns
|
266
|
+
.map(generateExtensionUrlPattern)
|
267
|
+
.map((path) => (
|
268
|
+
<Route
|
269
|
+
key={entry.key}
|
270
|
+
path={path}
|
271
|
+
element={entry.renderer()}
|
272
|
+
/>
|
273
|
+
)),
|
274
|
+
)}
|
275
|
+
|
276
|
+
<Route path="*" element={<NotFoundPage />} />
|
277
|
+
</Routes>
|
257
278
|
</>
|
258
279
|
)}
|
259
280
|
</>
|
@@ -59,7 +59,7 @@ import { ShowcaseManager } from '../ShowcaseManager.js';
|
|
59
59
|
export const Editor = withEditorStore(
|
60
60
|
observer(() => {
|
61
61
|
const params = useParams<WorkspaceEditorPathParams>();
|
62
|
-
const projectId = params.projectId;
|
62
|
+
const projectId = guaranteeNonNullable(params.projectId);
|
63
63
|
const patchReleaseVersionId = params.patchReleaseVersionId;
|
64
64
|
const workspaceType = params.groupWorkspaceId
|
65
65
|
? WorkspaceType.GROUP
|
@@ -147,6 +147,7 @@ export const Editor = withEditorStore(
|
|
147
147
|
useEffect(() => {
|
148
148
|
editorStore.internalizeEntityPath(params);
|
149
149
|
}, [editorStore, params]);
|
150
|
+
|
150
151
|
useEffect(() => {
|
151
152
|
flowResult(
|
152
153
|
editorStore.initialize(
|
@@ -43,7 +43,8 @@ function QuickInputDialog<T>(props: {
|
|
43
43
|
const filterOption = createFilter({
|
44
44
|
ignoreCase: true,
|
45
45
|
ignoreAccents: false,
|
46
|
-
stringify: (option) =>
|
46
|
+
stringify: (option: { label: string; data: QuickInputOption<T> }) =>
|
47
|
+
getSearchValue({ label: option.label, value: option.data.value }),
|
47
48
|
});
|
48
49
|
const onChange = (value: QuickInputOption<T>): void => {
|
49
50
|
onSelect(value);
|
@@ -73,7 +74,7 @@ function QuickInputDialog<T>(props: {
|
|
73
74
|
>
|
74
75
|
<div className="quick-input">
|
75
76
|
<CustomSelectorInput
|
76
|
-
|
77
|
+
inputRef={inputRef}
|
77
78
|
className="quick-input__input"
|
78
79
|
options={options}
|
79
80
|
onChange={onChange}
|
@@ -62,13 +62,10 @@ import {
|
|
62
62
|
ApplicationStoreProvider,
|
63
63
|
ApplicationStore,
|
64
64
|
} from '@finos/legend-application';
|
65
|
-
import {
|
66
|
-
createMemoryHistory,
|
67
|
-
TEST__BrowserEnvironmentProvider,
|
68
|
-
} from '@finos/legend-application/test';
|
65
|
+
import { TEST__BrowserEnvironmentProvider } from '@finos/legend-application/test';
|
69
66
|
import { type LegendStudioApplicationStore } from '../../../stores/LegendStudioBaseStore.js';
|
70
67
|
import { TEST__getLegendStudioApplicationConfig } from '../../../stores/__test-utils__/LegendStudioApplicationTestUtils.js';
|
71
|
-
import { Route } from '@finos/legend-application/browser';
|
68
|
+
import { Route, Routes } from '@finos/legend-application/browser';
|
72
69
|
import { ProjectViewer } from '../../project-view/ProjectViewer.js';
|
73
70
|
|
74
71
|
export const TEST_DATA__DefaultSDLCInfo = {
|
@@ -345,34 +342,36 @@ export const TEST__setUpEditor = async (
|
|
345
342
|
);
|
346
343
|
}
|
347
344
|
|
348
|
-
const history = createMemoryHistory({
|
349
|
-
initialEntries: [
|
350
|
-
viewerMode
|
351
|
-
? generateViewProjectRoute(
|
352
|
-
(workspace as unknown as Workspace).projectId,
|
353
|
-
)
|
354
|
-
: generateEditorRoute(
|
355
|
-
(workspace as unknown as Workspace).projectId,
|
356
|
-
undefined,
|
357
|
-
(workspace as unknown as Workspace).workspaceId,
|
358
|
-
WorkspaceType.USER,
|
359
|
-
),
|
360
|
-
],
|
361
|
-
});
|
362
|
-
|
363
345
|
const renderResult = render(
|
364
346
|
<ApplicationStoreProvider store={MOCK__editorStore.applicationStore}>
|
365
|
-
<TEST__BrowserEnvironmentProvider
|
347
|
+
<TEST__BrowserEnvironmentProvider
|
348
|
+
initialEntries={[
|
349
|
+
viewerMode
|
350
|
+
? generateViewProjectRoute(
|
351
|
+
(workspace as unknown as Workspace).projectId,
|
352
|
+
)
|
353
|
+
: generateEditorRoute(
|
354
|
+
(workspace as unknown as Workspace).projectId,
|
355
|
+
undefined,
|
356
|
+
(workspace as unknown as Workspace).workspaceId,
|
357
|
+
WorkspaceType.USER,
|
358
|
+
),
|
359
|
+
]}
|
360
|
+
>
|
366
361
|
<LegendStudioFrameworkProvider>
|
367
|
-
|
368
|
-
|
369
|
-
<
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
362
|
+
<Routes>
|
363
|
+
{viewerMode ? (
|
364
|
+
<Route
|
365
|
+
path={LEGEND_STUDIO_ROUTE_PATTERN.VIEW}
|
366
|
+
element={<ProjectViewer />}
|
367
|
+
/>
|
368
|
+
) : (
|
369
|
+
<Route
|
370
|
+
path={LEGEND_STUDIO_ROUTE_PATTERN.EDIT_WORKSPACE}
|
371
|
+
element={<Editor />}
|
372
|
+
/>
|
373
|
+
)}
|
374
|
+
</Routes>
|
376
375
|
</LegendStudioFrameworkProvider>
|
377
376
|
</TEST__BrowserEnvironmentProvider>
|
378
377
|
</ApplicationStoreProvider>,
|
@@ -67,8 +67,9 @@ export const ProjectSearchCommand = observer(() => {
|
|
67
67
|
const filterOption = createFilter({
|
68
68
|
ignoreCase: true,
|
69
69
|
ignoreAccents: false,
|
70
|
-
stringify: (option:
|
71
|
-
|
70
|
+
stringify: (option: {
|
71
|
+
data: PackageableElementOption<PackageableElement>;
|
72
|
+
}): string => option.data.value.path,
|
72
73
|
});
|
73
74
|
const openElement = (
|
74
75
|
val: PackageableElementOption<PackageableElement> | null,
|
@@ -141,7 +142,7 @@ export const ProjectSearchCommand = observer(() => {
|
|
141
142
|
</div>
|
142
143
|
</ControlledDropdownMenu>
|
143
144
|
<CustomSelectorInput
|
144
|
-
|
145
|
+
inputRef={selectorRef}
|
145
146
|
className="project-search-command__input"
|
146
147
|
options={options}
|
147
148
|
onChange={openElement}
|
@@ -92,7 +92,10 @@ const ModelGenerationItem = observer(
|
|
92
92
|
const applicationStore = editorStore.applicationStore;
|
93
93
|
const modelGenerationRef = generationTreeNode.generationElement;
|
94
94
|
const modelGeneration = modelGenerationRef.value;
|
95
|
-
const value = {
|
95
|
+
const value = {
|
96
|
+
label: modelGeneration.name,
|
97
|
+
value: modelGeneration,
|
98
|
+
} as PackageableElementOption<FileGenerationSpecification>;
|
96
99
|
const onChange = (
|
97
100
|
val: PackageableElementOption<FileGenerationSpecification> | null,
|
98
101
|
): void => {
|
@@ -202,7 +205,9 @@ const ModelGenerationItem = observer(
|
|
202
205
|
/>
|
203
206
|
<CustomSelectorInput
|
204
207
|
className="generation-spec-model-generation-editor__item__dropdown"
|
205
|
-
options={
|
208
|
+
options={
|
209
|
+
options as PackageableElementOption<FileGenerationSpecification>[]
|
210
|
+
}
|
206
211
|
onChange={onChange}
|
207
212
|
value={value}
|
208
213
|
darkMode={
|
@@ -74,7 +74,7 @@ import {
|
|
74
74
|
ElementDragSource,
|
75
75
|
} from '../../../stores/editor/utils/DnDUtils.js';
|
76
76
|
import { useDrop } from 'react-dnd';
|
77
|
-
import { assertErrorThrown
|
77
|
+
import { assertErrorThrown } from '@finos/legend-shared';
|
78
78
|
import type { ConnectionEditorState } from '../../../stores/editor/editor-state/element-editor-state/connection/ConnectionEditorState.js';
|
79
79
|
import { useEditorStore } from '../EditorStoreProvider.js';
|
80
80
|
import {
|
@@ -504,7 +504,7 @@ const IdentifiedConnectionEditor = observer(
|
|
504
504
|
? []
|
505
505
|
: ([{ label: embeddedConnectionLabel }] as {
|
506
506
|
label: string | React.ReactNode;
|
507
|
-
value
|
507
|
+
value: PackageableConnection;
|
508
508
|
}[]);
|
509
509
|
connectionOptions = connectionOptions.concat(
|
510
510
|
currentRuntimeEditorTabState.packageableConnections.map(
|
@@ -514,13 +514,16 @@ const IdentifiedConnectionEditor = observer(
|
|
514
514
|
}),
|
515
515
|
),
|
516
516
|
);
|
517
|
-
const selectedConnectionOption =
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
517
|
+
const selectedConnectionOption =
|
518
|
+
identifiedConnection.connection instanceof ConnectionPointer
|
519
|
+
? {
|
520
|
+
value: identifiedConnection.connection.packageableConnection.value,
|
521
|
+
label: isEmbeddedConnection
|
522
|
+
? embeddedConnectionLabel
|
523
|
+
: identifiedConnection.connection.packageableConnection.value
|
524
|
+
.path,
|
525
|
+
}
|
526
|
+
: null;
|
524
527
|
const editorStore = useEditorStore();
|
525
528
|
const onConnectionSelectionChange = (val: {
|
526
529
|
label: string | React.ReactNode;
|
@@ -823,11 +826,12 @@ const RuntimeMappingEditor = observer(
|
|
823
826
|
const filterOption = createFilter({
|
824
827
|
ignoreCase: true,
|
825
828
|
ignoreAccents: false,
|
826
|
-
stringify: (option:
|
827
|
-
|
829
|
+
stringify: (option: {
|
830
|
+
data: PackageableElementOption<Mapping>;
|
831
|
+
}): string => option.data.value.path,
|
828
832
|
});
|
829
833
|
const selectedMappingOption = {
|
830
|
-
value: mappingRef,
|
834
|
+
value: mappingRef.value,
|
831
835
|
label: mappingRef.value.name,
|
832
836
|
};
|
833
837
|
const changeMapping = (val: PackageableElementOption<Mapping>): void =>
|