@finos/legend-extension-dsl-data-space 9.1.5 → 9.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/DSL_DataSpace_LegendApplicationPlugin.d.ts +0 -4
- package/lib/components/DSL_DataSpace_LegendApplicationPlugin.d.ts.map +1 -1
- package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js +0 -3
- package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js.map +1 -1
- package/lib/components/DataSpaceDataAccess.d.ts +23 -0
- package/lib/components/DataSpaceDataAccess.d.ts.map +1 -0
- package/lib/components/DataSpaceDataAccess.js +34 -0
- package/lib/components/DataSpaceDataAccess.js.map +1 -0
- package/lib/components/DataSpaceDescription.d.ts +23 -0
- package/lib/components/DataSpaceDescription.d.ts.map +1 -0
- package/lib/components/DataSpaceDescription.js +26 -0
- package/lib/components/DataSpaceDescription.js.map +1 -0
- package/lib/components/DataSpaceDiagramViewer.d.ts.map +1 -1
- package/lib/components/DataSpaceDiagramViewer.js +7 -9
- package/lib/components/DataSpaceDiagramViewer.js.map +1 -1
- package/lib/components/DataSpaceExecutionContextViewer.d.ts.map +1 -1
- package/lib/components/DataSpaceExecutionContextViewer.js +6 -6
- package/lib/components/DataSpaceExecutionContextViewer.js.map +1 -1
- package/lib/components/DataSpaceMarkdownTextViewer.d.ts +20 -0
- package/lib/components/DataSpaceMarkdownTextViewer.d.ts.map +1 -0
- package/lib/components/DataSpaceMarkdownTextViewer.js +25 -0
- package/lib/components/DataSpaceMarkdownTextViewer.js.map +1 -0
- package/lib/components/DataSpaceModelsDocumentation.d.ts.map +1 -1
- package/lib/components/DataSpaceModelsDocumentation.js +33 -35
- package/lib/components/DataSpaceModelsDocumentation.js.map +1 -1
- package/lib/components/DataSpacePlaceholder.d.ts +20 -0
- package/lib/components/DataSpacePlaceholder.d.ts.map +1 -0
- package/lib/components/DataSpacePlaceholder.js +18 -0
- package/lib/components/DataSpacePlaceholder.js.map +1 -0
- package/lib/components/DataSpaceQuickStart.d.ts +7 -1
- package/lib/components/DataSpaceQuickStart.d.ts.map +1 -1
- package/lib/components/DataSpaceQuickStart.js +92 -1
- package/lib/components/DataSpaceQuickStart.js.map +1 -1
- package/lib/components/DataSpaceSupportPanel.js +1 -1
- package/lib/components/DataSpaceSupportPanel.js.map +1 -1
- package/lib/components/DataSpaceViewer.d.ts.map +1 -1
- package/lib/components/DataSpaceViewer.js +21 -8
- package/lib/components/DataSpaceViewer.js.map +1 -1
- package/lib/components/DataSpaceWiki.d.ts.map +1 -1
- package/lib/components/DataSpaceWiki.js +4 -28
- package/lib/components/DataSpaceWiki.js.map +1 -1
- package/lib/graphManager/DSL_DataSpace_PureGraphManagerPlugin.d.ts +5 -0
- package/lib/graphManager/DSL_DataSpace_PureGraphManagerPlugin.d.ts.map +1 -1
- package/lib/graphManager/DSL_DataSpace_PureGraphManagerPlugin.js +7 -0
- package/lib/graphManager/DSL_DataSpace_PureGraphManagerPlugin.js.map +1 -1
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.d.ts +3 -0
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.d.ts.map +1 -1
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.js +5 -0
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js +14 -2
- package/lib/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.js +1 -1
- package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -1
- package/lib/package.json +3 -3
- package/lib/stores/DSL_DataSpace_LegendApplicationPlugin_Extension.d.ts +32 -0
- package/lib/stores/DSL_DataSpace_LegendApplicationPlugin_Extension.d.ts.map +1 -0
- package/lib/stores/DSL_DataSpace_LegendApplicationPlugin_Extension.js +17 -0
- package/lib/stores/DSL_DataSpace_LegendApplicationPlugin_Extension.js.map +1 -0
- package/lib/stores/DataSpaceViewerState.d.ts +1 -0
- package/lib/stores/DataSpaceViewerState.d.ts.map +1 -1
- package/lib/stores/DataSpaceViewerState.js +6 -0
- package/lib/stores/DataSpaceViewerState.js.map +1 -1
- package/package.json +12 -12
- package/src/components/DSL_DataSpace_LegendApplicationPlugin.ts +0 -9
- package/src/components/DataSpaceDataAccess.tsx +66 -0
- package/src/components/DataSpaceDescription.tsx +55 -0
- package/src/components/DataSpaceDiagramViewer.tsx +69 -61
- package/src/components/DataSpaceExecutionContextViewer.tsx +12 -18
- package/src/components/DataSpaceMarkdownTextViewer.tsx +33 -0
- package/src/components/DataSpaceModelsDocumentation.tsx +59 -52
- package/src/components/DataSpacePlaceholder.tsx +21 -0
- package/src/components/DataSpaceQuickStart.tsx +366 -0
- package/src/components/DataSpaceSupportPanel.tsx +4 -4
- package/src/components/DataSpaceViewer.tsx +58 -32
- package/src/components/DataSpaceWiki.tsx +5 -40
- package/src/graphManager/DSL_DataSpace_PureGraphManagerPlugin.ts +9 -0
- package/src/graphManager/action/analytics/DataSpaceAnalysis.ts +8 -0
- package/src/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.ts +21 -2
- package/src/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.ts +1 -1
- package/src/index.ts +2 -4
- package/src/stores/DSL_DataSpace_LegendApplicationPlugin_Extension.ts +41 -0
- package/src/stores/DataSpaceViewerState.ts +15 -0
- package/tsconfig.json +5 -0
package/src/index.ts
CHANGED
|
@@ -17,10 +17,8 @@
|
|
|
17
17
|
export * from './DSL_DataSpace_Extension.js';
|
|
18
18
|
export { DSL_DataSpace_LegendStudioApplicationPlugin } from './components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.js';
|
|
19
19
|
export { DSL_DataSpace_LegendQueryApplicationPlugin } from './components/query/DSL_DataSpace_LegendQueryApplicationPlugin.js';
|
|
20
|
-
export {
|
|
21
|
-
|
|
22
|
-
DSL_DataSpace_LegendApplicationPlugin,
|
|
23
|
-
} from './components/DSL_DataSpace_LegendApplicationPlugin.js';
|
|
20
|
+
export { DSL_DataSpace_LegendApplicationPlugin } from './components/DSL_DataSpace_LegendApplicationPlugin.js';
|
|
21
|
+
export * from './stores/DSL_DataSpace_LegendApplicationPlugin_Extension.js';
|
|
24
22
|
export { DataSpaceViewer } from './components/DataSpaceViewer.js';
|
|
25
23
|
|
|
26
24
|
export {
|
|
@@ -0,0 +1,41 @@
|
|
|
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 { LegendApplicationPlugin } from '@finos/legend-application';
|
|
18
|
+
import type { DataSpaceViewerState } from './DataSpaceViewerState.js';
|
|
19
|
+
import type {
|
|
20
|
+
DataSpaceExecutableAnalysisResult,
|
|
21
|
+
DataSpaceExecutableTDSResult,
|
|
22
|
+
} from '../graphManager/action/analytics/DataSpaceAnalysis.js';
|
|
23
|
+
|
|
24
|
+
export type TDSExecutableActionConfiguration = {
|
|
25
|
+
key: string;
|
|
26
|
+
title: string;
|
|
27
|
+
icon?: React.ReactNode | undefined;
|
|
28
|
+
renderer: (
|
|
29
|
+
dataSpaceViewerState: DataSpaceViewerState,
|
|
30
|
+
executableAnalysisResult: DataSpaceExecutableAnalysisResult,
|
|
31
|
+
tdsResult: DataSpaceExecutableTDSResult,
|
|
32
|
+
) => React.ReactNode | undefined;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export interface DSL_DataSpace_LegendApplicationPlugin_Extension
|
|
36
|
+
extends LegendApplicationPlugin {
|
|
37
|
+
/**
|
|
38
|
+
* Get the list of configurations of actions for TDS executable
|
|
39
|
+
*/
|
|
40
|
+
getExtraDataSpaceTDSExecutableActionConfigurations?(): TDSExecutableActionConfiguration[];
|
|
41
|
+
}
|
|
@@ -34,6 +34,10 @@ import type {
|
|
|
34
34
|
DataSpaceDiagramAnalysisResult,
|
|
35
35
|
DataSpaceExecutionContextAnalysisResult,
|
|
36
36
|
} from '../graphManager/action/analytics/DataSpaceAnalysis.js';
|
|
37
|
+
import {
|
|
38
|
+
PURE_DATA_SPACE_INFO_PROFILE_PATH,
|
|
39
|
+
PURE_DATA_SPACE_INFO_PROFILE_VERIFIED_STEREOTYPE,
|
|
40
|
+
} from '../graphManager/DSL_DataSpace_PureGraphManagerPlugin.js';
|
|
37
41
|
|
|
38
42
|
export enum DATA_SPACE_VIEWER_ACTIVITY_MODE {
|
|
39
43
|
DESCRIPTION = 'DESCRIPTION',
|
|
@@ -109,6 +113,7 @@ export class DataSpaceViewerState {
|
|
|
109
113
|
currentExecutionContext: observable,
|
|
110
114
|
currentRuntime: observable,
|
|
111
115
|
isExpandedModeEnabled: observable,
|
|
116
|
+
isVerified: computed,
|
|
112
117
|
renderer: computed,
|
|
113
118
|
setRenderer: action,
|
|
114
119
|
setCurrentDiagram: action,
|
|
@@ -169,6 +174,16 @@ export class DataSpaceViewerState {
|
|
|
169
174
|
}
|
|
170
175
|
}
|
|
171
176
|
|
|
177
|
+
get isVerified(): boolean {
|
|
178
|
+
return Boolean(
|
|
179
|
+
this.dataSpaceAnalysisResult.stereotypes.find(
|
|
180
|
+
(stereotype) =>
|
|
181
|
+
stereotype.profile === PURE_DATA_SPACE_INFO_PROFILE_PATH &&
|
|
182
|
+
stereotype.value === PURE_DATA_SPACE_INFO_PROFILE_VERIFIED_STEREOTYPE,
|
|
183
|
+
),
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
|
|
172
187
|
setRenderer(val: DiagramRenderer): void {
|
|
173
188
|
this._renderer = val;
|
|
174
189
|
}
|
package/tsconfig.json
CHANGED
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"./src/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSL_DataSpace_DataSpace.ts",
|
|
57
57
|
"./src/graphManager/protocol/pure/v1/transformation/pureGraph/V1_DSL_DataSpace_GraphBuilderHelper.ts",
|
|
58
58
|
"./src/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataSpace_ProtocolHelper.ts",
|
|
59
|
+
"./src/stores/DSL_DataSpace_LegendApplicationPlugin_Extension.ts",
|
|
59
60
|
"./src/stores/DataSpaceViewerState.ts",
|
|
60
61
|
"./src/stores/query/DataSpaceAdvancedSearchState.ts",
|
|
61
62
|
"./src/stores/query/DataSpaceInfo.ts",
|
|
@@ -64,10 +65,14 @@
|
|
|
64
65
|
"./src/stores/query/DataSpaceQuerySetupStore.ts",
|
|
65
66
|
"./src/stores/studio/DataSpacePreviewState.ts",
|
|
66
67
|
"./src/components/DSL_DataSpace_Icon.tsx",
|
|
68
|
+
"./src/components/DataSpaceDataAccess.tsx",
|
|
69
|
+
"./src/components/DataSpaceDescription.tsx",
|
|
67
70
|
"./src/components/DataSpaceDiagramViewer.tsx",
|
|
68
71
|
"./src/components/DataSpaceExecutionContextViewer.tsx",
|
|
69
72
|
"./src/components/DataSpaceInfoPanel.tsx",
|
|
73
|
+
"./src/components/DataSpaceMarkdownTextViewer.tsx",
|
|
70
74
|
"./src/components/DataSpaceModelsDocumentation.tsx",
|
|
75
|
+
"./src/components/DataSpacePlaceholder.tsx",
|
|
71
76
|
"./src/components/DataSpaceQuickStart.tsx",
|
|
72
77
|
"./src/components/DataSpaceSupportPanel.tsx",
|
|
73
78
|
"./src/components/DataSpaceViewer.tsx",
|