@finos/legend-extension-dsl-data-space 10.0.11 → 10.0.12
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/__lib__/DSL_DataSpace_LegendApplicationCommand.d.ts +28 -0
- package/lib/__lib__/DSL_DataSpace_LegendApplicationCommand.d.ts.map +1 -0
- package/lib/__lib__/DSL_DataSpace_LegendApplicationCommand.js +70 -0
- package/lib/__lib__/DSL_DataSpace_LegendApplicationCommand.js.map +1 -0
- package/lib/__lib__/DSL_DataSpace_LegendApplicationNavigation.d.ts +20 -0
- package/lib/__lib__/DSL_DataSpace_LegendApplicationNavigation.d.ts.map +1 -0
- package/lib/__lib__/DSL_DataSpace_LegendApplicationNavigation.js +21 -0
- package/lib/__lib__/DSL_DataSpace_LegendApplicationNavigation.js.map +1 -0
- package/lib/components/DSL_DataSpace_LegendApplicationPlugin.d.ts +3 -1
- package/lib/components/DSL_DataSpace_LegendApplicationPlugin.d.ts.map +1 -1
- package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js +13 -1
- package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js.map +1 -1
- package/lib/components/DataSpaceDataAccess.d.ts.map +1 -1
- package/lib/components/DataSpaceDataAccess.js +5 -76
- package/lib/components/DataSpaceDataAccess.js.map +1 -1
- package/lib/components/DataSpaceDescription.d.ts.map +1 -1
- package/lib/components/DataSpaceDescription.js +2 -1
- package/lib/components/DataSpaceDescription.js.map +1 -1
- package/lib/components/DataSpaceDiagramViewer.d.ts.map +1 -1
- package/lib/components/DataSpaceDiagramViewer.js +110 -39
- package/lib/components/DataSpaceDiagramViewer.js.map +1 -1
- package/lib/components/DataSpaceExecutionContextViewer.d.ts.map +1 -1
- package/lib/components/DataSpaceExecutionContextViewer.js +3 -3
- package/lib/components/DataSpaceExecutionContextViewer.js.map +1 -1
- package/lib/components/DataSpaceInfoPanel.d.ts.map +1 -1
- package/lib/components/DataSpaceInfoPanel.js +6 -6
- package/lib/components/DataSpaceInfoPanel.js.map +1 -1
- package/lib/components/DataSpaceModelsDocumentation.d.ts.map +1 -1
- package/lib/components/DataSpaceModelsDocumentation.js +18 -8
- package/lib/components/DataSpaceModelsDocumentation.js.map +1 -1
- package/lib/components/DataSpacePlaceholder.d.ts +4 -0
- package/lib/components/DataSpacePlaceholder.d.ts.map +1 -1
- package/lib/components/DataSpacePlaceholder.js +6 -1
- package/lib/components/DataSpacePlaceholder.js.map +1 -1
- package/lib/components/DataSpaceQuickStart.d.ts.map +1 -1
- package/lib/components/DataSpaceQuickStart.js +24 -11
- package/lib/components/DataSpaceQuickStart.js.map +1 -1
- package/lib/components/DataSpaceSupportPanel.d.ts.map +1 -1
- package/lib/components/DataSpaceSupportPanel.js +17 -8
- package/lib/components/DataSpaceSupportPanel.js.map +1 -1
- package/lib/components/DataSpaceViewer.d.ts.map +1 -1
- package/lib/components/DataSpaceViewer.js +34 -13
- package/lib/components/DataSpaceViewer.js.map +1 -1
- package/lib/components/DataSpaceViewerActivityBar.d.ts.map +1 -1
- package/lib/components/DataSpaceViewerActivityBar.js +15 -12
- package/lib/components/DataSpaceViewerActivityBar.js.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +1 -0
- package/lib/components/index.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/DataSpaceLayoutState.d.ts +46 -0
- package/lib/stores/DataSpaceLayoutState.d.ts.map +1 -1
- package/lib/stores/DataSpaceLayoutState.js +184 -1
- package/lib/stores/DataSpaceLayoutState.js.map +1 -1
- package/lib/stores/DataSpaceModelsDocumentationState.d.ts +11 -2
- package/lib/stores/DataSpaceModelsDocumentationState.d.ts.map +1 -1
- package/lib/stores/DataSpaceModelsDocumentationState.js +41 -0
- package/lib/stores/DataSpaceModelsDocumentationState.js.map +1 -1
- package/lib/stores/DataSpaceQuickStartState.d.ts +24 -0
- package/lib/stores/DataSpaceQuickStartState.d.ts.map +1 -0
- package/lib/stores/DataSpaceQuickStartState.js +48 -0
- package/lib/stores/DataSpaceQuickStartState.js.map +1 -0
- package/lib/stores/DataSpaceViewerDiagramViewerState.d.ts +44 -0
- package/lib/stores/DataSpaceViewerDiagramViewerState.d.ts.map +1 -0
- package/lib/stores/DataSpaceViewerDiagramViewerState.js +194 -0
- package/lib/stores/DataSpaceViewerDiagramViewerState.js.map +1 -0
- package/lib/stores/DataSpaceViewerNavigation.d.ts +36 -0
- package/lib/stores/DataSpaceViewerNavigation.d.ts.map +1 -0
- package/lib/stores/DataSpaceViewerNavigation.js +47 -0
- package/lib/stores/DataSpaceViewerNavigation.js.map +1 -0
- package/lib/stores/DataSpaceViewerState.d.ts +22 -74
- package/lib/stores/DataSpaceViewerState.d.ts.map +1 -1
- package/lib/stores/DataSpaceViewerState.js +34 -259
- package/lib/stores/DataSpaceViewerState.js.map +1 -1
- package/lib/stores/query/DataSpaceAdvancedSearchState.d.ts.map +1 -1
- package/lib/stores/query/DataSpaceAdvancedSearchState.js +8 -5
- package/lib/stores/query/DataSpaceAdvancedSearchState.js.map +1 -1
- package/lib/stores/query/DataSpaceQueryCreatorStore.d.ts +8 -8
- package/lib/stores/query/DataSpaceQueryCreatorStore.d.ts.map +1 -1
- package/lib/stores/query/DataSpaceQueryCreatorStore.js +1 -1
- package/lib/stores/query/DataSpaceQueryCreatorStore.js.map +1 -1
- package/lib/stores/query/DataSpaceQuerySetupStore.d.ts +1 -1
- package/lib/stores/query/DataSpaceQuerySetupStore.d.ts.map +1 -1
- package/lib/stores/query/DataSpaceQuerySetupStore.js +1 -1
- package/lib/stores/query/DataSpaceQuerySetupStore.js.map +1 -1
- package/lib/stores/studio/DataSpacePreviewState.d.ts.map +1 -1
- package/lib/stores/studio/DataSpacePreviewState.js +15 -3
- package/lib/stores/studio/DataSpacePreviewState.js.map +1 -1
- package/package.json +13 -13
- package/src/__lib__/DSL_DataSpace_LegendApplicationCommand.ts +74 -0
- package/src/__lib__/DSL_DataSpace_LegendApplicationNavigation.ts +33 -0
- package/src/components/DSL_DataSpace_LegendApplicationPlugin.tsx +20 -1
- package/src/components/DataSpaceDataAccess.tsx +9 -122
- package/src/components/DataSpaceDescription.tsx +5 -5
- package/src/components/DataSpaceDiagramViewer.tsx +449 -69
- package/src/components/DataSpaceExecutionContextViewer.tsx +47 -40
- package/src/components/DataSpaceInfoPanel.tsx +107 -117
- package/src/components/DataSpaceModelsDocumentation.tsx +31 -12
- package/src/components/DataSpacePlaceholder.tsx +22 -0
- package/src/components/DataSpaceQuickStart.tsx +95 -15
- package/src/components/DataSpaceSupportPanel.tsx +146 -14
- package/src/components/DataSpaceViewer.tsx +153 -23
- package/src/components/DataSpaceViewerActivityBar.tsx +40 -20
- package/src/components/index.ts +1 -0
- package/src/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.ts +1 -1
- package/src/stores/DataSpaceLayoutState.ts +272 -0
- package/src/stores/DataSpaceModelsDocumentationState.ts +61 -2
- package/src/stores/DataSpaceQuickStartState.ts +91 -0
- package/src/stores/DataSpaceViewerDiagramViewerState.ts +245 -0
- package/src/stores/DataSpaceViewerNavigation.ts +64 -0
- package/src/stores/DataSpaceViewerState.ts +88 -401
- package/src/stores/query/DataSpaceAdvancedSearchState.ts +30 -6
- package/src/stores/query/DataSpaceQueryCreatorStore.ts +8 -8
- package/src/stores/query/DataSpaceQuerySetupStore.ts +1 -1
- package/src/stores/studio/DataSpacePreviewState.ts +27 -5
- package/tsconfig.json +5 -1
- package/lib/stores/DataSpaceViewerDataAccessState.d.ts +0 -35
- package/lib/stores/DataSpaceViewerDataAccessState.d.ts.map +0 -1
- package/lib/stores/DataSpaceViewerDataAccessState.js +0 -98
- package/lib/stores/DataSpaceViewerDataAccessState.js.map +0 -1
- package/src/stores/DataSpaceViewerDataAccessState.ts +0 -143
|
@@ -19,6 +19,7 @@ import { action, flow, makeObservable, observable } from 'mobx';
|
|
|
19
19
|
import { DSL_DataSpace_getGraphManagerExtension } from '../../graph-manager/protocol/pure/DSL_DataSpace_PureGraphManagerExtension.js';
|
|
20
20
|
import { DataSpaceViewerState } from '../DataSpaceViewerState.js';
|
|
21
21
|
import { InMemoryGraphData } from '@finos/legend-graph';
|
|
22
|
+
import { EXTERNAL_APPLICATION_NAVIGATION__generateServiceQueryCreatorUrl } from '../../__lib__/DSL_DataSpace_LegendApplicationNavigation.js';
|
|
22
23
|
export class DataSpacePreviewState extends EditorExtensionState {
|
|
23
24
|
editorStore;
|
|
24
25
|
loadDataSpaceState = ActionState.create();
|
|
@@ -58,15 +59,26 @@ export class DataSpacePreviewState extends EditorExtensionState {
|
|
|
58
59
|
.map((element) => this.editorStore.graphManagerState.graphManager.elementToEntity(element))
|
|
59
60
|
.concat(this.editorStore.graphManagerState.graph.dependencyManager.allOwnElements.map((element) => this.editorStore.graphManagerState.graphManager.elementToEntity(element))), undefined, this.loadDataSpaceState));
|
|
60
61
|
this.dataSpaceViewerState = new DataSpaceViewerState(this.editorStore.applicationStore, this.editorStore.graphManagerState, groupId, artifactId, versionId, analysisResult, {
|
|
61
|
-
|
|
62
|
+
retrieveGraphData: () => new InMemoryGraphData(this.editorStore.graphManagerState.graph),
|
|
63
|
+
queryDataSpace: () => {
|
|
64
|
+
this.editorStore.applicationStore.notificationService.notifyWarning('This feature is not supported in preview mode');
|
|
65
|
+
},
|
|
62
66
|
viewProject: () => {
|
|
63
67
|
this.editorStore.applicationStore.notificationService.notifyWarning('This feature is not supported in preview mode');
|
|
64
68
|
},
|
|
65
69
|
viewSDLCProject: async () => {
|
|
66
70
|
this.editorStore.applicationStore.notificationService.notifyWarning('This feature is not supported in preview mode');
|
|
67
71
|
},
|
|
68
|
-
|
|
69
|
-
queryClass(
|
|
72
|
+
queryClass: (_class) => {
|
|
73
|
+
queryClass(_class, this.editorStore).catch(this.editorStore.applicationStore.alertUnhandledError);
|
|
74
|
+
},
|
|
75
|
+
openServiceQuery: (servicePath) => {
|
|
76
|
+
if (this.editorStore.applicationStore.config.queryApplicationUrl) {
|
|
77
|
+
this.editorStore.applicationStore.navigationService.navigator.visitAddress(EXTERNAL_APPLICATION_NAVIGATION__generateServiceQueryCreatorUrl(this.editorStore.applicationStore.config.queryApplicationUrl, groupId, artifactId, versionId, servicePath));
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
this.editorStore.applicationStore.notificationService.notifyWarning('Query application URL is not configured');
|
|
81
|
+
}
|
|
70
82
|
},
|
|
71
83
|
});
|
|
72
84
|
this.loadDataSpaceState.pass();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpacePreviewState.js","sourceRoot":"","sources":["../../../src/stores/studio/DataSpacePreviewState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,oBAAoB,EACpB,UAAU,GAEX,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"DataSpacePreviewState.js","sourceRoot":"","sources":["../../../src/stores/studio/DataSpacePreviewState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,oBAAoB,EACpB,UAAU,GAEX,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAEL,oBAAoB,EACpB,WAAW,EACX,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGhE,OAAO,EAAE,sCAAsC,EAAE,MAAM,8EAA8E,CAAC;AACtI,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAc,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,EAAE,+DAA+D,EA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|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.12",
|
|
4
4
|
"description": "Legend extension for Data Space DSL",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -44,17 +44,17 @@
|
|
|
44
44
|
"test:watch": "jest --watch"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@finos/legend-application": "15.0.
|
|
48
|
-
"@finos/legend-application-query": "13.0.
|
|
49
|
-
"@finos/legend-application-studio": "
|
|
50
|
-
"@finos/legend-art": "7.0.
|
|
51
|
-
"@finos/legend-extension-dsl-diagram": "8.0.
|
|
52
|
-
"@finos/legend-graph": "28.1.
|
|
53
|
-
"@finos/legend-lego": "0.
|
|
54
|
-
"@finos/legend-query-builder": "3.2.
|
|
55
|
-
"@finos/legend-server-depot": "6.0.
|
|
56
|
-
"@finos/legend-shared": "10.0.
|
|
57
|
-
"@finos/legend-storage": "3.0.
|
|
47
|
+
"@finos/legend-application": "15.0.8",
|
|
48
|
+
"@finos/legend-application-query": "13.0.1",
|
|
49
|
+
"@finos/legend-application-studio": "25.0.0",
|
|
50
|
+
"@finos/legend-art": "7.0.9",
|
|
51
|
+
"@finos/legend-extension-dsl-diagram": "8.0.12",
|
|
52
|
+
"@finos/legend-graph": "28.1.5",
|
|
53
|
+
"@finos/legend-lego": "1.0.0",
|
|
54
|
+
"@finos/legend-query-builder": "3.2.1",
|
|
55
|
+
"@finos/legend-server-depot": "6.0.5",
|
|
56
|
+
"@finos/legend-shared": "10.0.4",
|
|
57
|
+
"@finos/legend-storage": "3.0.54",
|
|
58
58
|
"@types/react": "18.2.0",
|
|
59
59
|
"mobx": "6.9.0",
|
|
60
60
|
"mobx-react-lite": "3.4.3",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"serializr": "3.0.2"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@finos/legend-dev-utils": "2.0.
|
|
66
|
+
"@finos/legend-dev-utils": "2.0.58",
|
|
67
67
|
"@jest/globals": "29.5.0",
|
|
68
68
|
"cross-env": "7.0.3",
|
|
69
69
|
"eslint": "8.39.0",
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import type { CommandConfigData } from '@finos/legend-application';
|
|
18
|
+
|
|
19
|
+
export enum DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY {
|
|
20
|
+
RECENTER_DIAGRAM = 'dsl-dataspace.diagram-viewer.recenter',
|
|
21
|
+
USE_ZOOM_TOOL = 'dsl-dataspace.diagram-viewer.use-zoom-tool',
|
|
22
|
+
USE_VIEW_TOOL = 'dsl-dataspace.diagram-viewer.use-view-tool',
|
|
23
|
+
USE_PAN_TOOL = 'dsl-dataspace.diagram-viewer.use-pan-tool',
|
|
24
|
+
GO_TO_NEXT_DIAGRAM = 'dsl-dataspace.diagram-viewer.go-to-next-diagram',
|
|
25
|
+
GO_TO_PREVIOUS_DIAGRAM = 'dsl-dataspace.diagram-viewer.go-to-previous-diagram',
|
|
26
|
+
TOGGLE_DIAGRAM_DESCRIPTION = 'dsl-dataspace.diagram-viewer.toggle-description',
|
|
27
|
+
SEARCH_DOCUMENTATION = 'dsl-dataspace.models-documentation.search',
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export const DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_CONFIG: CommandConfigData =
|
|
31
|
+
{
|
|
32
|
+
[DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.RECENTER_DIAGRAM]: {
|
|
33
|
+
title: 'Data Space Diagram Viewer: Recenter',
|
|
34
|
+
defaultKeyboardShortcut: 'KeyR',
|
|
35
|
+
when: 'When diagram viewer is active',
|
|
36
|
+
},
|
|
37
|
+
[DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.USE_ZOOM_TOOL]: {
|
|
38
|
+
title: 'Data Space Diagram Viewer: Use zoom tool',
|
|
39
|
+
defaultKeyboardShortcut: 'KeyZ',
|
|
40
|
+
when: 'When diagram viewer is active',
|
|
41
|
+
},
|
|
42
|
+
[DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.USE_VIEW_TOOL]: {
|
|
43
|
+
title: 'Data Space Diagram Viewer: Use view tool',
|
|
44
|
+
defaultKeyboardShortcut: 'KeyV',
|
|
45
|
+
when: 'When diagram viewer is active',
|
|
46
|
+
},
|
|
47
|
+
[DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.USE_PAN_TOOL]: {
|
|
48
|
+
title: 'Data Space Diagram Viewer: Use pan tool',
|
|
49
|
+
defaultKeyboardShortcut: 'KeyM',
|
|
50
|
+
when: 'When diagram viewer is active',
|
|
51
|
+
},
|
|
52
|
+
[DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.GO_TO_NEXT_DIAGRAM]: {
|
|
53
|
+
title: 'Data Space Diagram Viewer: Next Diagram',
|
|
54
|
+
defaultKeyboardShortcut: 'ArrowRight',
|
|
55
|
+
when: 'When diagram viewer is active',
|
|
56
|
+
},
|
|
57
|
+
[DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.GO_TO_PREVIOUS_DIAGRAM]: {
|
|
58
|
+
title: 'Data Space Diagram Viewer: Previous Diagram',
|
|
59
|
+
defaultKeyboardShortcut: 'ArrowLeft',
|
|
60
|
+
when: 'When viewing diagram',
|
|
61
|
+
},
|
|
62
|
+
[DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.TOGGLE_DIAGRAM_DESCRIPTION]:
|
|
63
|
+
{
|
|
64
|
+
title: 'Data Space Diagram Viewer: Toggle Description',
|
|
65
|
+
defaultKeyboardShortcut: 'KeyD',
|
|
66
|
+
when: 'When diagram viewer is active',
|
|
67
|
+
},
|
|
68
|
+
[DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.SEARCH_DOCUMENTATION]: {
|
|
69
|
+
title: 'Data Space Models Documentation: Search',
|
|
70
|
+
defaultKeyboardShortcut: 'Control+Shift+KeyF',
|
|
71
|
+
additionalKeyboardShortcuts: ['Meta+Shift+KeyF'],
|
|
72
|
+
when: 'When models documnetation viewer is active',
|
|
73
|
+
},
|
|
74
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import { generateGAVCoordinates } from '@finos/legend-storage';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @external_application_navigation This depends on Legend Query routing and is hardcoded so it's potentially brittle
|
|
21
|
+
*/
|
|
22
|
+
export const EXTERNAL_APPLICATION_NAVIGATION__generateServiceQueryCreatorUrl = (
|
|
23
|
+
queryApplicationUrl: string,
|
|
24
|
+
groupId: string,
|
|
25
|
+
artifactId: string,
|
|
26
|
+
versionId: string,
|
|
27
|
+
servicePath: string,
|
|
28
|
+
): string =>
|
|
29
|
+
`${queryApplicationUrl}/create-from-service/${generateGAVCoordinates(
|
|
30
|
+
groupId,
|
|
31
|
+
artifactId,
|
|
32
|
+
versionId,
|
|
33
|
+
)}/${servicePath}`;
|
|
@@ -16,7 +16,10 @@
|
|
|
16
16
|
|
|
17
17
|
import {
|
|
18
18
|
LegendApplicationPlugin,
|
|
19
|
+
type LegendApplicationSetup,
|
|
19
20
|
type LegendApplicationPluginManager,
|
|
21
|
+
collectKeyedCommandConfigEntriesFromConfig,
|
|
22
|
+
type KeyedCommandConfigEntry,
|
|
20
23
|
} from '@finos/legend-application';
|
|
21
24
|
import packageJson from '../../package.json';
|
|
22
25
|
import type {
|
|
@@ -24,11 +27,13 @@ import type {
|
|
|
24
27
|
QueryBuilder_LegendApplicationPlugin_Extension,
|
|
25
28
|
} from '@finos/legend-query-builder';
|
|
26
29
|
import { DataSpaceQueryBuilderState } from '../stores/query/DataSpaceQueryBuilderState.js';
|
|
27
|
-
import type { QuerySearchSpecification } from '@finos/legend-graph';
|
|
28
30
|
import {
|
|
29
31
|
createQueryClassTaggedValue,
|
|
30
32
|
createQueryDataSpaceTaggedValue,
|
|
31
33
|
} from '../stores/query/DataSpaceQueryCreatorStore.js';
|
|
34
|
+
import { DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_CONFIG } from '../__lib__/DSL_DataSpace_LegendApplicationCommand.js';
|
|
35
|
+
import type { QuerySearchSpecification } from '@finos/legend-graph';
|
|
36
|
+
import { configureDataGridComponent } from '@finos/legend-lego/data-grid';
|
|
32
37
|
|
|
33
38
|
export class DSL_DataSpace_LegendApplicationPlugin
|
|
34
39
|
extends LegendApplicationPlugin
|
|
@@ -46,6 +51,20 @@ export class DSL_DataSpace_LegendApplicationPlugin
|
|
|
46
51
|
pluginManager.registerApplicationPlugin(this);
|
|
47
52
|
}
|
|
48
53
|
|
|
54
|
+
override getExtraKeyedCommandConfigEntries(): KeyedCommandConfigEntry[] {
|
|
55
|
+
return collectKeyedCommandConfigEntriesFromConfig(
|
|
56
|
+
DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_CONFIG,
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
override getExtraApplicationSetups(): LegendApplicationSetup[] {
|
|
61
|
+
return [
|
|
62
|
+
async (applicationStore) => {
|
|
63
|
+
configureDataGridComponent();
|
|
64
|
+
},
|
|
65
|
+
];
|
|
66
|
+
}
|
|
67
|
+
|
|
49
68
|
getExtraLoadQueryFilterOptions(): LoadQueryFilterOption[] {
|
|
50
69
|
return [
|
|
51
70
|
{
|
|
@@ -15,125 +15,15 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { observer } from 'mobx-react-lite';
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
PanelLoadingIndicator,
|
|
21
|
-
QuestionCircleIcon,
|
|
22
|
-
} from '@finos/legend-art';
|
|
23
|
-
import {
|
|
24
|
-
DATA_SPACE_VIEWER_ACTIVITY_MODE,
|
|
25
|
-
generateAnchorForActivity,
|
|
26
|
-
type DataSpaceViewerState,
|
|
27
|
-
} from '../stores/DataSpaceViewerState.js';
|
|
18
|
+
import { AnchorLinkIcon, QuestionCircleIcon } from '@finos/legend-art';
|
|
19
|
+
import { type DataSpaceViewerState } from '../stores/DataSpaceViewerState.js';
|
|
28
20
|
import { useApplicationStore } from '@finos/legend-application';
|
|
29
|
-
import { DataSpaceWikiPlaceholder } from './DataSpacePlaceholder.js';
|
|
30
21
|
import { useEffect, useRef } from 'react';
|
|
31
|
-
import { flowResult } from 'mobx';
|
|
32
22
|
import {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
DatasetEntitlementUnsupportedReport,
|
|
38
|
-
} from '@finos/legend-graph';
|
|
39
|
-
import { DataGrid } from '@finos/legend-lego/data-grid';
|
|
40
|
-
|
|
41
|
-
const DataAccessOverview = observer(
|
|
42
|
-
(props: { dataSpaceViewerState: DataSpaceViewerState }) => {
|
|
43
|
-
const { dataSpaceViewerState } = props;
|
|
44
|
-
const dataAccessState = dataSpaceViewerState.dataAccessState;
|
|
45
|
-
const applicationStore = useApplicationStore();
|
|
46
|
-
|
|
47
|
-
useEffect(() => {
|
|
48
|
-
flowResult(dataAccessState.fetchDatasetSpecifications())
|
|
49
|
-
.then(() => dataAccessState.fetchDatasetEntitlementReports())
|
|
50
|
-
.catch(applicationStore.alertUnhandledError);
|
|
51
|
-
}, [
|
|
52
|
-
applicationStore,
|
|
53
|
-
dataAccessState,
|
|
54
|
-
dataSpaceViewerState.currentExecutionContext,
|
|
55
|
-
]);
|
|
56
|
-
|
|
57
|
-
return (
|
|
58
|
-
<div className="data-space__viewer__data-access__overview">
|
|
59
|
-
<PanelLoadingIndicator
|
|
60
|
-
isLoading={
|
|
61
|
-
dataAccessState.fetchDatasetSpecificationsState.isInProgress ||
|
|
62
|
-
dataAccessState.fetchDatasetEntitlementReportsState.isInProgress
|
|
63
|
-
}
|
|
64
|
-
/>
|
|
65
|
-
<div className="data-space__viewer__data-access__chart"></div>
|
|
66
|
-
<div className="data-space__viewer__data-access__grid data-space__viewer__grid ag-theme-balham-dark">
|
|
67
|
-
<DataGrid
|
|
68
|
-
rowData={dataAccessState.datasets}
|
|
69
|
-
gridOptions={{
|
|
70
|
-
suppressScrollOnNewData: true,
|
|
71
|
-
getRowId: (rowData) => rowData.data.uuid,
|
|
72
|
-
}}
|
|
73
|
-
suppressFieldDotNotation={true}
|
|
74
|
-
columnDefs={[
|
|
75
|
-
{
|
|
76
|
-
minWidth: 50,
|
|
77
|
-
sortable: true,
|
|
78
|
-
resizable: true,
|
|
79
|
-
valueGetter: (params) => params.data?.specification.name,
|
|
80
|
-
headerName: 'Dataset',
|
|
81
|
-
flex: 1,
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
minWidth: 50,
|
|
85
|
-
sortable: true,
|
|
86
|
-
resizable: true,
|
|
87
|
-
valueGetter: (params) => params.data?.specification.type,
|
|
88
|
-
headerName: 'Type',
|
|
89
|
-
flex: 1,
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
minWidth: 50,
|
|
93
|
-
sortable: true,
|
|
94
|
-
resizable: true,
|
|
95
|
-
headerName: 'Access Status',
|
|
96
|
-
valueGetter: (params) => {
|
|
97
|
-
const entitlementReport = params.data?.entitlementReport;
|
|
98
|
-
if (
|
|
99
|
-
entitlementReport instanceof
|
|
100
|
-
DatasetEntitlementAccessGrantedReport
|
|
101
|
-
) {
|
|
102
|
-
return 'Access Granted';
|
|
103
|
-
} else if (
|
|
104
|
-
entitlementReport instanceof
|
|
105
|
-
DatasetEntitlementAccessApprovedReport
|
|
106
|
-
) {
|
|
107
|
-
return 'Access Approved';
|
|
108
|
-
} else if (
|
|
109
|
-
entitlementReport instanceof
|
|
110
|
-
DatasetEntitlementAccessRequestedReport
|
|
111
|
-
) {
|
|
112
|
-
return 'Access Requested';
|
|
113
|
-
} else if (
|
|
114
|
-
entitlementReport instanceof
|
|
115
|
-
DatasetEntitlementAccessNotGrantedReport
|
|
116
|
-
) {
|
|
117
|
-
return '(x) Access Not Granted';
|
|
118
|
-
} else if (
|
|
119
|
-
entitlementReport instanceof
|
|
120
|
-
DatasetEntitlementUnsupportedReport
|
|
121
|
-
) {
|
|
122
|
-
return '(unsupported)';
|
|
123
|
-
}
|
|
124
|
-
return '';
|
|
125
|
-
},
|
|
126
|
-
flex: 1,
|
|
127
|
-
wrapText: true,
|
|
128
|
-
autoHeight: true,
|
|
129
|
-
},
|
|
130
|
-
]}
|
|
131
|
-
/>
|
|
132
|
-
</div>
|
|
133
|
-
</div>
|
|
134
|
-
);
|
|
135
|
-
},
|
|
136
|
-
);
|
|
23
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE,
|
|
24
|
+
generateAnchorForActivity,
|
|
25
|
+
} from '../stores/DataSpaceViewerNavigation.js';
|
|
26
|
+
import { DataAccessOverview } from '@finos/legend-query-builder';
|
|
137
27
|
|
|
138
28
|
export const DataSpaceDataAccess = observer(
|
|
139
29
|
(props: { dataSpaceViewerState: DataSpaceViewerState }) => {
|
|
@@ -190,12 +80,9 @@ export const DataSpaceDataAccess = observer(
|
|
|
190
80
|
</div>
|
|
191
81
|
<div className="data-space__viewer__wiki__section__content">
|
|
192
82
|
<div className="data-space__viewer__data-access">
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
{dataSpaceViewerState.TEMPORARY__enableExperimentalFeatures && (
|
|
197
|
-
<DataAccessOverview dataSpaceViewerState={dataSpaceViewerState} />
|
|
198
|
-
)}
|
|
83
|
+
<DataAccessOverview
|
|
84
|
+
dataAccessState={dataSpaceViewerState.currentDataAccessState}
|
|
85
|
+
/>
|
|
199
86
|
</div>
|
|
200
87
|
</div>
|
|
201
88
|
</div>
|
|
@@ -15,15 +15,15 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { AnchorLinkIcon } from '@finos/legend-art';
|
|
18
|
-
import {
|
|
19
|
-
DATA_SPACE_VIEWER_ACTIVITY_MODE,
|
|
20
|
-
generateAnchorForActivity,
|
|
21
|
-
type DataSpaceViewerState,
|
|
22
|
-
} from '../stores/DataSpaceViewerState.js';
|
|
18
|
+
import { type DataSpaceViewerState } from '../stores/DataSpaceViewerState.js';
|
|
23
19
|
import { observer } from 'mobx-react-lite';
|
|
24
20
|
import { DataSpaceWikiPlaceholder } from './DataSpacePlaceholder.js';
|
|
25
21
|
import { DataSpaceMarkdownTextViewer } from './DataSpaceMarkdownTextViewer.js';
|
|
26
22
|
import { useEffect, useRef } from 'react';
|
|
23
|
+
import {
|
|
24
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE,
|
|
25
|
+
generateAnchorForActivity,
|
|
26
|
+
} from '../stores/DataSpaceViewerNavigation.js';
|
|
27
27
|
|
|
28
28
|
export const DataSpaceDescription = observer(
|
|
29
29
|
(props: { dataSpaceViewerState: DataSpaceViewerState }) => {
|