@finos/legend-extension-dsl-data-space 9.1.3 → 9.1.5
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/studio/DSL_DataSpace_LegendStudioCodeSnippet.d.ts +1 -1
- package/lib/application/studio/DSL_DataSpace_LegendStudioCodeSnippet.d.ts.map +1 -1
- package/lib/application/studio/DSL_DataSpace_LegendStudioCodeSnippet.js +15 -2
- package/lib/application/studio/DSL_DataSpace_LegendStudioCodeSnippet.js.map +1 -1
- package/lib/components/DataSpaceDiagramViewer.d.ts +23 -0
- package/lib/components/DataSpaceDiagramViewer.d.ts.map +1 -0
- package/lib/components/DataSpaceDiagramViewer.js +77 -0
- package/lib/components/DataSpaceDiagramViewer.js.map +1 -0
- package/lib/components/DataSpaceExecutionContextViewer.d.ts +23 -0
- package/lib/components/DataSpaceExecutionContextViewer.d.ts.map +1 -0
- package/lib/components/DataSpaceExecutionContextViewer.js +58 -0
- package/lib/components/DataSpaceExecutionContextViewer.js.map +1 -0
- package/lib/components/DataSpaceInfoPanel.d.ts +23 -0
- package/lib/components/DataSpaceInfoPanel.d.ts.map +1 -0
- package/lib/components/DataSpaceInfoPanel.js +38 -0
- package/lib/components/DataSpaceInfoPanel.js.map +1 -0
- package/lib/components/DataSpaceModelsDocumentation.d.ts +23 -0
- package/lib/components/DataSpaceModelsDocumentation.d.ts.map +1 -0
- package/lib/components/DataSpaceModelsDocumentation.js +60 -0
- package/lib/components/DataSpaceModelsDocumentation.js.map +1 -0
- package/lib/components/{studio/DataSpacePreview.d.ts → DataSpaceQuickStart.d.ts} +2 -5
- package/lib/components/DataSpaceQuickStart.d.ts.map +1 -0
- package/lib/components/DataSpaceQuickStart.js +17 -0
- package/lib/components/DataSpaceQuickStart.js.map +1 -0
- package/lib/components/DataSpaceSupportPanel.d.ts +23 -0
- package/lib/components/DataSpaceSupportPanel.d.ts.map +1 -0
- package/lib/components/DataSpaceSupportPanel.js +40 -0
- package/lib/components/DataSpaceSupportPanel.js.map +1 -0
- package/lib/components/DataSpaceViewer.d.ts.map +1 -1
- package/lib/components/DataSpaceViewer.js +29 -278
- package/lib/components/DataSpaceViewer.js.map +1 -1
- package/lib/components/DataSpaceViewerActivityBar.d.ts +23 -0
- package/lib/components/DataSpaceViewerActivityBar.d.ts.map +1 -0
- package/lib/components/DataSpaceViewerActivityBar.js +105 -0
- package/lib/components/DataSpaceViewerActivityBar.js.map +1 -0
- package/lib/components/DataSpaceWiki.d.ts +23 -0
- package/lib/components/DataSpaceWiki.d.ts.map +1 -0
- package/lib/components/DataSpaceWiki.js +36 -0
- package/lib/components/DataSpaceWiki.js.map +1 -0
- package/lib/components/query/DataSpaceAdvancedSearchModal.js +1 -1
- package/lib/components/query/DataSpaceAdvancedSearchModal.js.map +1 -1
- package/lib/components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.d.ts +1 -2
- package/lib/components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.d.ts.map +1 -1
- package/lib/components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.js +0 -13
- package/lib/components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.js.map +1 -1
- package/lib/components/studio/DataSpacePreviewAction.js +1 -1
- package/lib/components/studio/DataSpacePreviewAction.js.map +1 -1
- package/lib/graph/DSL_DataSpace_HashUtils.d.ts +3 -2
- package/lib/graph/DSL_DataSpace_HashUtils.d.ts.map +1 -1
- package/lib/graph/DSL_DataSpace_HashUtils.js +3 -2
- package/lib/graph/DSL_DataSpace_HashUtils.js.map +1 -1
- package/lib/graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.d.ts +23 -0
- package/lib/graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.d.ts.map +1 -1
- package/lib/graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js +50 -0
- package/lib/graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js.map +1 -1
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.d.ts +36 -5
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.d.ts.map +1 -1
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.js +35 -8
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.js.map +1 -1
- package/lib/graphManager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.js +70 -11
- package/lib/graphManager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.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 +48 -8
- package/lib/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/V1_DSL_DataSpace_SystemModels.json +7 -0
- package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.d.ts +39 -0
- package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.js +92 -3
- package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSL_DataSpace_DataSpace.d.ts +23 -0
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSL_DataSpace_DataSpace.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSL_DataSpace_DataSpace.js +50 -0
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSL_DataSpace_DataSpace.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataSpace_ProtocolHelper.d.ts +0 -1
- package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataSpace_ProtocolHelper.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataSpace_ProtocolHelper.js +33 -5
- package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataSpace_ProtocolHelper.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +9 -5
- package/lib/stores/DataSpaceViewerState.d.ts +16 -14
- package/lib/stores/DataSpaceViewerState.d.ts.map +1 -1
- package/lib/stores/DataSpaceViewerState.js +19 -12
- package/lib/stores/DataSpaceViewerState.js.map +1 -1
- package/lib/stores/studio/DataSpacePreviewState.d.ts.map +1 -1
- package/lib/stores/studio/DataSpacePreviewState.js +0 -3
- package/lib/stores/studio/DataSpacePreviewState.js.map +1 -1
- package/package.json +20 -16
- package/src/application/studio/DSL_DataSpace_LegendStudioCodeSnippet.ts +15 -2
- package/src/components/DataSpaceDiagramViewer.tsx +191 -0
- package/src/components/DataSpaceExecutionContextViewer.tsx +173 -0
- package/src/components/DataSpaceInfoPanel.tsx +170 -0
- package/src/components/DataSpaceModelsDocumentation.tsx +92 -0
- package/src/components/DataSpaceQuickStart.tsx +15 -0
- package/src/components/DataSpaceSupportPanel.tsx +80 -0
- package/src/components/DataSpaceViewer.tsx +73 -1063
- package/src/components/DataSpaceViewerActivityBar.tsx +215 -0
- package/src/components/DataSpaceWiki.tsx +76 -0
- package/src/components/query/DataSpaceAdvancedSearchModal.tsx +1 -1
- package/src/components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.tsx +0 -15
- package/src/components/studio/DataSpacePreviewAction.tsx +1 -1
- package/src/graph/DSL_DataSpace_HashUtils.ts +3 -2
- package/src/graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.ts +60 -0
- package/src/graphManager/action/analytics/DataSpaceAnalysis.ts +46 -15
- package/src/graphManager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.ts +99 -14
- package/src/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.ts +65 -15
- package/src/graphManager/protocol/pure/v1/V1_DSL_DataSpace_SystemModels.json +7 -0
- package/src/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.ts +140 -2
- package/src/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSL_DataSpace_DataSpace.ts +60 -0
- package/src/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataSpace_ProtocolHelper.ts +51 -7
- package/src/stores/DataSpaceViewerState.ts +24 -20
- package/src/stores/studio/DataSpacePreviewState.ts +0 -5
- package/tsconfig.json +8 -3
- package/lib/application/studio/DSL_DataSpace_LegendStudioNavigation.d.ts +0 -28
- package/lib/application/studio/DSL_DataSpace_LegendStudioNavigation.d.ts.map +0 -1
- package/lib/application/studio/DSL_DataSpace_LegendStudioNavigation.js +0 -30
- package/lib/application/studio/DSL_DataSpace_LegendStudioNavigation.js.map +0 -1
- package/lib/components/studio/DataSpacePreview.d.ts.map +0 -1
- package/lib/components/studio/DataSpacePreview.js +0 -52
- package/lib/components/studio/DataSpacePreview.js.map +0 -1
- package/lib/stores/studio/DataSpacePreviewStore.d.ts +0 -34
- package/lib/stores/studio/DataSpacePreviewStore.d.ts.map +0 -1
- package/lib/stores/studio/DataSpacePreviewStore.js +0 -98
- package/lib/stores/studio/DataSpacePreviewStore.js.map +0 -1
- package/src/application/studio/DSL_DataSpace_LegendStudioNavigation.ts +0 -53
- package/src/components/studio/DataSpacePreview.tsx +0 -129
- package/src/stores/studio/DataSpacePreviewStore.ts +0 -172
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
export declare const SIMPLE_DATA_SPACE_SNIPPET = "DataSpace ${1:model::NewDataSpace}\n{\n executionContexts:\n [\n {\n name: '${5:Some Context}';\n description: 'some information about the execution context';\n mapping: ${6:model::SomeMapping};\n defaultRuntime: ${7:model::SomeRuntime};\n }\n ];\n defaultExecutionContext: '${5:Some Context}';\n // description: 'description of the data models';\n //
|
|
16
|
+
export declare const SIMPLE_DATA_SPACE_SNIPPET = "DataSpace ${1:model::NewDataSpace}\n{\n executionContexts:\n [\n {\n name: '${5:Some Context}';\n title: 'New Execution Context';\n description: 'some information about the execution context';\n mapping: ${6:model::SomeMapping};\n defaultRuntime: ${7:model::SomeRuntime};\n }\n ];\n defaultExecutionContext: '${5:Some Context}';\n // description: 'description of the data models';\n // diagrams:\n // [\n // {\n // title: 'Some Diagram';\n // description: 'some diagram';\n // diagram: model::SomeDiagram;\n // }\n // ];\n // elements:\n // [\n // model::SomeClass,\n // ];\n // executables:\n // [\n // {\n // title: 'Some Executable';\n // description: 'some executable';\n // executable: model::SomeExecutable;\n // }\n // ];\n // supportInfo: Email {\n // address: 'someEmail@test.org';\n // };\n}";
|
|
17
17
|
//# sourceMappingURL=DSL_DataSpace_LegendStudioCodeSnippet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSL_DataSpace_LegendStudioCodeSnippet.d.ts","sourceRoot":"","sources":["../../../src/application/studio/DSL_DataSpace_LegendStudioCodeSnippet.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,eAAO,MAAM,yBAAyB,
|
|
1
|
+
{"version":3,"file":"DSL_DataSpace_LegendStudioCodeSnippet.d.ts","sourceRoot":"","sources":["../../../src/application/studio/DSL_DataSpace_LegendStudioCodeSnippet.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,eAAO,MAAM,yBAAyB,q4BAqCpC,CAAC"}
|
|
@@ -19,6 +19,7 @@ export const SIMPLE_DATA_SPACE_SNIPPET = `DataSpace \${1:model::NewDataSpace}
|
|
|
19
19
|
[
|
|
20
20
|
{
|
|
21
21
|
name: '\${5:Some Context}';
|
|
22
|
+
title: 'New Execution Context';
|
|
22
23
|
description: 'some information about the execution context';
|
|
23
24
|
mapping: \${6:model::SomeMapping};
|
|
24
25
|
defaultRuntime: \${7:model::SomeRuntime};
|
|
@@ -26,14 +27,26 @@ export const SIMPLE_DATA_SPACE_SNIPPET = `DataSpace \${1:model::NewDataSpace}
|
|
|
26
27
|
];
|
|
27
28
|
defaultExecutionContext: '\${5:Some Context}';
|
|
28
29
|
// description: 'description of the data models';
|
|
29
|
-
//
|
|
30
|
+
// diagrams:
|
|
30
31
|
// [
|
|
31
|
-
//
|
|
32
|
+
// {
|
|
33
|
+
// title: 'Some Diagram';
|
|
34
|
+
// description: 'some diagram';
|
|
35
|
+
// diagram: model::SomeDiagram;
|
|
36
|
+
// }
|
|
32
37
|
// ];
|
|
33
38
|
// elements:
|
|
34
39
|
// [
|
|
35
40
|
// model::SomeClass,
|
|
36
41
|
// ];
|
|
42
|
+
// executables:
|
|
43
|
+
// [
|
|
44
|
+
// {
|
|
45
|
+
// title: 'Some Executable';
|
|
46
|
+
// description: 'some executable';
|
|
47
|
+
// executable: model::SomeExecutable;
|
|
48
|
+
// }
|
|
49
|
+
// ];
|
|
37
50
|
// supportInfo: Email {
|
|
38
51
|
// address: 'someEmail@test.org';
|
|
39
52
|
// };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSL_DataSpace_LegendStudioCodeSnippet.js","sourceRoot":"","sources":["../../../src/application/studio/DSL_DataSpace_LegendStudioCodeSnippet.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAC,MAAM,yBAAyB,GAAG
|
|
1
|
+
{"version":3,"file":"DSL_DataSpace_LegendStudioCodeSnippet.js","sourceRoot":"","sources":["../../../src/application/studio/DSL_DataSpace_LegendStudioCodeSnippet.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAC,MAAM,yBAAyB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqCvC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
/// <reference types="react" resolution-mode="require"/>
|
|
17
|
+
import type { DataSpaceViewerState } from '../stores/DataSpaceViewerState.js';
|
|
18
|
+
export declare const DataSpaceDiagramViewer: ((props: {
|
|
19
|
+
dataSpaceViewerState: DataSpaceViewerState;
|
|
20
|
+
}) => JSX.Element) & {
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=DataSpaceDiagramViewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceDiagramViewer.d.ts","sourceRoot":"","sources":["../../src/components/DataSpaceDiagramViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAUH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAwD9E,eAAO,MAAM,sBAAsB,WACzB;IAAE,oBAAoB,EAAE,oBAAoB,CAAA;CAAE;;CA6GvD,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { BlankPanelContent, CircleIcon, ThinChevronLeftIcon, ThinChevronRightIcon, clsx, useResizeDetector, } from '@finos/legend-art';
|
|
18
|
+
import { observer } from 'mobx-react-lite';
|
|
19
|
+
import { forwardRef, useEffect, useRef } from 'react';
|
|
20
|
+
import { DiagramRenderer, } from '@finos/legend-extension-dsl-diagram';
|
|
21
|
+
import { getNullableFirstElement, getNullableLastElement, guaranteeNonNullable, } from '@finos/legend-shared';
|
|
22
|
+
const DataSpaceDiagramCanvas = observer(forwardRef(function DataSpaceDiagramCanvas(props, ref) {
|
|
23
|
+
const { dataSpaceViewerState, diagram } = props;
|
|
24
|
+
const diagramCanvasRef = ref;
|
|
25
|
+
const { width, height } = useResizeDetector({
|
|
26
|
+
refreshMode: 'debounce',
|
|
27
|
+
refreshRate: 50,
|
|
28
|
+
targetRef: diagramCanvasRef,
|
|
29
|
+
});
|
|
30
|
+
useEffect(() => {
|
|
31
|
+
const renderer = new DiagramRenderer(diagramCanvasRef.current, diagram);
|
|
32
|
+
dataSpaceViewerState.setRenderer(renderer);
|
|
33
|
+
dataSpaceViewerState.setupRenderer();
|
|
34
|
+
renderer.render({ initial: true });
|
|
35
|
+
}, [diagramCanvasRef, dataSpaceViewerState, diagram]);
|
|
36
|
+
useEffect(() => {
|
|
37
|
+
if (dataSpaceViewerState.isDiagramRendererInitialized) {
|
|
38
|
+
dataSpaceViewerState.renderer.refresh();
|
|
39
|
+
}
|
|
40
|
+
}, [dataSpaceViewerState, width, height]);
|
|
41
|
+
return (_jsx("div", { ref: diagramCanvasRef, className: clsx('diagram-canvas ', dataSpaceViewerState.diagramCursorClass), tabIndex: 0 }));
|
|
42
|
+
}));
|
|
43
|
+
export const DataSpaceDiagramViewer = observer((props) => {
|
|
44
|
+
const { dataSpaceViewerState } = props;
|
|
45
|
+
const analysisResult = dataSpaceViewerState.dataSpaceAnalysisResult;
|
|
46
|
+
// diagram selector
|
|
47
|
+
const diagramCanvasRef = useRef(null);
|
|
48
|
+
const showPreviousDiagram = () => {
|
|
49
|
+
if (!dataSpaceViewerState.currentDiagram) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
const idx = analysisResult.diagrams.indexOf(dataSpaceViewerState.currentDiagram);
|
|
53
|
+
if (idx === 0 || idx === -1) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
dataSpaceViewerState.setCurrentDiagram(guaranteeNonNullable(analysisResult.diagrams[idx - 1]));
|
|
57
|
+
};
|
|
58
|
+
const showNextDiagram = () => {
|
|
59
|
+
if (!dataSpaceViewerState.currentDiagram) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
const idx = analysisResult.diagrams.indexOf(dataSpaceViewerState.currentDiagram);
|
|
63
|
+
if (idx === analysisResult.diagrams.length - 1 || idx === -1) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
dataSpaceViewerState.setCurrentDiagram(guaranteeNonNullable(analysisResult.diagrams[idx + 1]));
|
|
67
|
+
};
|
|
68
|
+
if (analysisResult.diagrams.length === 0) {
|
|
69
|
+
return _jsx(BlankPanelContent, { children: "No diagrams available" });
|
|
70
|
+
}
|
|
71
|
+
return (_jsxs("div", { className: "data-space__viewer__wiki__section", children: [_jsx("div", { className: "data-space__viewer__wiki__section__header", children: "Diagrams" }), _jsx("div", { className: "data-space__viewer__wiki__section__content", children: _jsx("div", { className: "data-space__viewer__diagram-viewer", children: _jsx("div", { className: "data-space__viewer__diagram-viewer__carousel", children: _jsxs("div", { className: "data-space__viewer__diagram-viewer__carousel__frame", children: [_jsx("div", { className: "data-space__viewer__diagram-viewer__carousel__frame__display", children: dataSpaceViewerState.currentDiagram && (_jsx(DataSpaceDiagramCanvas, { dataSpaceViewerState: dataSpaceViewerState, diagram: dataSpaceViewerState.currentDiagram.diagram, ref: diagramCanvasRef })) }), _jsx("button", { className: "data-space__viewer__diagram-viewer__carousel__frame__navigator data-space__viewer__diagram-viewer__carousel__frame__navigator--back", tabIndex: -1, title: "Previous", disabled: getNullableFirstElement(analysisResult.diagrams) ===
|
|
72
|
+
dataSpaceViewerState.currentDiagram, onClick: showPreviousDiagram, children: _jsx(ThinChevronLeftIcon, {}) }), _jsx("button", { className: "data-space__viewer__diagram-viewer__carousel__frame__navigator data-space__viewer__diagram-viewer__carousel__frame__navigator--next", tabIndex: -1, title: "Next", disabled: getNullableLastElement(analysisResult.diagrams) ===
|
|
73
|
+
dataSpaceViewerState.currentDiagram, onClick: showNextDiagram, children: _jsx(ThinChevronRightIcon, {}) }), _jsx("div", { className: "data-space__viewer__diagram-viewer__carousel__frame__indicators", children: _jsx("div", { className: "data-space__viewer__diagram-viewer__carousel__frame__indicators__notch", children: analysisResult.diagrams.map((diagram) => (_jsx("button", { className: clsx('data-space__viewer__diagram-viewer__carousel__frame__indicator', {
|
|
74
|
+
'data-space__viewer__diagram-viewer__carousel__frame__indicator--active': dataSpaceViewerState.currentDiagram === diagram,
|
|
75
|
+
}), onClick: () => dataSpaceViewerState.setCurrentDiagram(diagram), children: _jsx(CircleIcon, {}) }, diagram.diagram.path))) }) })] }) }) }) })] }));
|
|
76
|
+
});
|
|
77
|
+
//# sourceMappingURL=DataSpaceDiagramViewer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceDiag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iEAAiE,YAC9E,cAAK,SAAS,EAAC,wEAAwE,YACpF,cAAc,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CACxC,iBAEE,SAAS,EAAE,IAAI,CACb,gEAAgE,EAChE;gDACE,wEAAwE,EACtE,oBAAoB,CAAC,cAAc,KAAK,OAAO;6CAClD,CACF,EACD,OAAO,EAAE,GAAG,EAAE,CACZ,oBAAoB,CAAC,iBAAiB,CAAC,OAAO,CAAC,YAGjD,KAAC,UAAU,KAAG,IAZT,OAAO,CAAC,OAAO,CAAC,IAAI,CAalB,CACV,CAAC,GACE,GACF,IACF,GACF,GACF,GACF,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
/// <reference types="react" resolution-mode="require"/>
|
|
17
|
+
import { type DataSpaceViewerState } from '../stores/DataSpaceViewerState.js';
|
|
18
|
+
export declare const DataSpaceExecutionContextViewer: ((props: {
|
|
19
|
+
dataSpaceViewerState: DataSpaceViewerState;
|
|
20
|
+
}) => JSX.Element) & {
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=DataSpaceExecutionContextViewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceExecutionContextViewer.d.ts","sourceRoot":"","sources":["../../src/components/DataSpaceExecutionContextViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAWH,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAuB9E,eAAO,MAAM,+BAA+B,WAClC;IAAE,oBAAoB,EAAE,oBAAoB,CAAA;CAAE;;CA2HvD,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { observer } from 'mobx-react-lite';
|
|
18
|
+
import { clsx, CustomSelectorInput, PURE_MappingIcon, PURE_RuntimeIcon, CogIcon, } from '@finos/legend-art';
|
|
19
|
+
import {} from '@finos/legend-graph';
|
|
20
|
+
import {} from '../stores/DataSpaceViewerState.js';
|
|
21
|
+
const buildExecutionContextOption = (value) => ({
|
|
22
|
+
label: value.name,
|
|
23
|
+
value: value,
|
|
24
|
+
});
|
|
25
|
+
const buildRuntimeOption = (value) => ({
|
|
26
|
+
label: value.name,
|
|
27
|
+
value: value,
|
|
28
|
+
});
|
|
29
|
+
export const DataSpaceExecutionContextViewer = observer((props) => {
|
|
30
|
+
const { dataSpaceViewerState } = props;
|
|
31
|
+
const analysisResult = dataSpaceViewerState.dataSpaceAnalysisResult;
|
|
32
|
+
const executionContexts = Array.from(dataSpaceViewerState.dataSpaceAnalysisResult.executionContextsIndex.values());
|
|
33
|
+
// execution
|
|
34
|
+
const executionContextOptions = executionContexts.map(buildExecutionContextOption);
|
|
35
|
+
const selectedExecutionContextOption = buildExecutionContextOption(dataSpaceViewerState.currentExecutionContext);
|
|
36
|
+
const onExecutionContextOptionChange = (option) => {
|
|
37
|
+
if (option.value !== dataSpaceViewerState.currentExecutionContext) {
|
|
38
|
+
dataSpaceViewerState.setCurrentExecutionContext(option.value);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
const formatExecutionContextOptionLabel = (option) => (_jsxs("div", { className: "data-space__viewer__execution-context__entry__content__dropdown__option", children: [_jsx("div", { className: "data-space__viewer__execution-context__entry__content__dropdown__option__label", children: option.label }), option.value === analysisResult.defaultExecutionContext && (_jsx("div", { className: "data-space__viewer__execution-context__entry__content__dropdown__option__tag", children: "default" }))] }));
|
|
42
|
+
// runtime
|
|
43
|
+
const runtimeOptions = dataSpaceViewerState.currentExecutionContext.compatibleRuntimes.map(buildRuntimeOption);
|
|
44
|
+
const selectedRuntimeOption = buildRuntimeOption(dataSpaceViewerState.currentRuntime);
|
|
45
|
+
const onRuntimeOptionChange = (option) => {
|
|
46
|
+
if (option.value !== dataSpaceViewerState.currentRuntime) {
|
|
47
|
+
dataSpaceViewerState.setCurrentRuntime(option.value);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
const formatRuntimeOptionLabel = (option) => (_jsxs("div", { className: "data-space__viewer__execution-context__entry__content__dropdown__option", children: [_jsx("div", { className: "data-space__viewer__execution-context__entry__content__dropdown__option__label", children: option.label }), option.value ===
|
|
51
|
+
dataSpaceViewerState.currentExecutionContext.defaultRuntime && (_jsx("div", { className: "data-space__viewer__execution-context__entry__content__dropdown__option__tag", children: "default" }))] }));
|
|
52
|
+
return (_jsx("div", { className: "data-space__viewer__panel", children: _jsxs("div", { className: "data-space__viewer__execution-context", children: [_jsxs("div", { className: "data-space__viewer__execution-context__entry", children: [_jsx("div", { className: "data-space__viewer__execution-context__entry__icon", children: _jsx(CogIcon, { className: "data-space__viewer__execution-context__context-icon" }) }), _jsx("div", { className: "data-space__viewer__execution-context__entry__content data-space__viewer__execution-context__entry__content__dropdown__container", children: _jsx(CustomSelectorInput, { className: "data-space__viewer__execution-context__entry__content__dropdown", options: executionContextOptions, onChange: onExecutionContextOptionChange, value: selectedExecutionContextOption, darkMode: true, formatOptionLabel: formatExecutionContextOptionLabel }) })] }), _jsx("div", { className: clsx('data-space__viewer__execution-context__description', {
|
|
53
|
+
'data-space__viewer__execution-context__description--empty': !dataSpaceViewerState.currentExecutionContext.description,
|
|
54
|
+
}), children: dataSpaceViewerState.currentExecutionContext.description
|
|
55
|
+
? dataSpaceViewerState.currentExecutionContext.description
|
|
56
|
+
: 'No description' }), _jsxs("div", { className: "data-space__viewer__execution-context__entry data-space__viewer__execution-context__mapping", children: [_jsx("div", { className: "data-space__viewer__execution-context__entry__icon", children: _jsx(PURE_MappingIcon, {}) }), _jsx("div", { className: "data-space__viewer__execution-context__entry__content data-space__viewer__execution-context__entry__content__text", children: dataSpaceViewerState.currentExecutionContext.mapping.path })] }), _jsxs("div", { className: "data-space__viewer__execution-context__entry", children: [_jsx("div", { className: "data-space__viewer__execution-context__entry__icon", children: _jsx(PURE_RuntimeIcon, {}) }), _jsx("div", { className: "data-space__viewer__execution-context__entry__content data-space__viewer__execution-context__entry__content__dropdown__container", children: _jsx(CustomSelectorInput, { className: "data-space__viewer__execution-context__entry__content__dropdown", options: runtimeOptions, onChange: onRuntimeOptionChange, value: selectedRuntimeOption, darkMode: true, formatOptionLabel: formatRuntimeOptionLabel }) })] })] }) }));
|
|
57
|
+
});
|
|
58
|
+
//# sourceMappingURL=DataSpaceExecutionContextViewer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceExecutionContextViewer.js","sourceRoot":"","sources":["../../src/components/DataSpaceExecutionContextViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,IAAI,EACJ,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,OAAO,GACR,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAA2B,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAA6B,MAAM,mCAAmC,CAAC;AAO9E,MAAM,2BAA2B,GAAG,CAClC,KAA8C,EACtB,EAAE,CAAC,CAAC;IAC5B,KAAK,EAAE,KAAK,CAAC,IAAI;IACjB,KAAK,EAAE,KAAK;CACb,CAAC,CAAC;AAMH,MAAM,kBAAkB,GAAG,CAAC,KAAyB,EAAiB,EAAE,CAAC,CAAC;IACxE,KAAK,EAAE,KAAK,CAAC,IAAI;IACjB,KAAK,EAAE,KAAK;CACb,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,+BAA+B,GAAG,QAAQ,CACrD,CAAC,KAAqD,EAAE,EAAE;IACxD,MAAM,EAAE,oBAAoB,EAAE,GAAG,KAAK,CAAC;IACvC,MAAM,cAAc,GAAG,oBAAoB,CAAC,uBAAuB,CAAC;IACpE,MAAM,iBAAiB,GAAG,KAAK,CAAC,IAAI,CAClC,oBAAoB,CAAC,uBAAuB,CAAC,sBAAsB,CAAC,MAAM,EAAE,CAC7E,CAAC;IAEF,YAAY;IACZ,MAAM,uBAAuB,GAAG,iBAAiB,CAAC,GAAG,CACnD,2BAA2B,CAC5B,CAAC;IACF,MAAM,8BAA8B,GAAG,2BAA2B,CAChE,oBAAoB,CAAC,uBAAuB,CAC7C,CAAC;IACF,MAAM,8BAA8B,GAAG,CACrC,MAA8B,EACxB,EAAE;QACR,IAAI,MAAM,CAAC,KAAK,KAAK,oBAAoB,CAAC,uBAAuB,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vE,EACN,cAAK,SAAS,EAAC,kIAAkI,YAC/I,KAAC,mBAAmB,IAClB,SAAS,EAAC,iEAAiE,EAC3E,OAAO,EAAE,uBAAuB,EAChC,QAAQ,EAAE,8BAA8B,EACxC,KAAK,EAAE,8BAA8B,EACrC,QAAQ,EAAE,IAAI,EACd,iBAAiB,EAAE,iCAAiC,GACpD,GACE,IACF,EACN,cACE,SAAS,EAAE,IAAI,CACb,oDAAoD,EACpD;wBACE,2DAA2D,EACzD,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,WAAW;qBAC5D,CACF,YAEA,oBAAoB,CAAC,uBAAuB,CAAC,WAAW;wBACvD,CAAC,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,WAAW;wBAC1D,CAAC,CAAC,gBAAgB,GAChB,EACN,eAAK,SAAS,EAAC,6FAA6F,aAC1G,cAAK,SAAS,EAAC,oDAAoD,YACjE,KAAC,gBAAgB,KAAG,GAChB,EACN,cAAK,SAAS,EAAC,mHAAmH,YAC/H,oBAAoB,CAAC,uBAAuB,CAAC,OAAO,CAAC,IAAI,GACtD,IACF,EACN,eAAK,SAAS,EAAC,8CAA8C,aAC3D,cAAK,SAAS,EAAC,oDAAoD,YACjE,KAAC,gBAAgB,KAAG,GAChB,EACN,cAAK,SAAS,EAAC,kIAAkI,YAC/I,KAAC,mBAAmB,IAClB,SAAS,EAAC,iEAAiE,EAC3E,OAAO,EAAE,cAAc,EACvB,QAAQ,EAAE,qBAAqB,EAC/B,KAAK,EAAE,qBAAqB,EAC5B,QAAQ,EAAE,IAAI,EACd,iBAAiB,EAAE,wBAAwB,GAC3C,GACE,IACF,IACF,GACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
/// <reference types="react" resolution-mode="require"/>
|
|
17
|
+
import { type DataSpaceViewerState } from '../stores/DataSpaceViewerState.js';
|
|
18
|
+
export declare const DataSpaceInfoPanel: ((props: {
|
|
19
|
+
dataSpaceViewerState: DataSpaceViewerState;
|
|
20
|
+
}) => JSX.Element) & {
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=DataSpaceInfoPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceInfoPanel.d.ts","sourceRoot":"","sources":["../../src/components/DataSpaceInfoPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAKH,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAI9E,eAAO,MAAM,kBAAkB,WACrB;IAAE,oBAAoB,EAAE,oBAAoB,CAAA;CAAE;;CAiJvD,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { observer } from 'mobx-react-lite';
|
|
18
|
+
import { ExternalLinkIcon, PencilIcon } from '@finos/legend-art';
|
|
19
|
+
import { extractElementNameFromPath } from '@finos/legend-graph';
|
|
20
|
+
import {} from '../stores/DataSpaceViewerState.js';
|
|
21
|
+
import { generateGAVCoordinates } from '@finos/legend-storage';
|
|
22
|
+
import { useApplicationStore } from '@finos/legend-application';
|
|
23
|
+
export const DataSpaceInfoPanel = observer((props) => {
|
|
24
|
+
const { dataSpaceViewerState } = props;
|
|
25
|
+
const applicationStore = useApplicationStore();
|
|
26
|
+
const analysisResult = dataSpaceViewerState.dataSpaceAnalysisResult;
|
|
27
|
+
const viewProject = () => dataSpaceViewerState.viewProject(dataSpaceViewerState.groupId, dataSpaceViewerState.artifactId, dataSpaceViewerState.versionId, undefined);
|
|
28
|
+
const viewDataSpaceInProject = () => dataSpaceViewerState.viewProject(dataSpaceViewerState.groupId, dataSpaceViewerState.artifactId, dataSpaceViewerState.versionId, analysisResult.path);
|
|
29
|
+
const viewDataSpaceInSDLCProject = () => {
|
|
30
|
+
dataSpaceViewerState
|
|
31
|
+
.viewSDLCProject(dataSpaceViewerState.groupId, dataSpaceViewerState.artifactId, analysisResult.path)
|
|
32
|
+
.catch(applicationStore.alertUnhandledError);
|
|
33
|
+
};
|
|
34
|
+
return (_jsx("div", { className: "data-space__viewer__panel", children: _jsxs("div", { className: "data-space__viewer__info", children: [_jsxs("div", { className: "data-space__viewer__info__section", children: [_jsxs("div", { className: "data-space__viewer__info__section__entry", children: [_jsx("div", { className: "data-space__viewer__info__project-info__label", children: "Project" }), _jsx("button", { className: "data-space__viewer__info__project-info__value", tabIndex: -1, title: "Click to View Project", onClick: viewProject, children: generateGAVCoordinates(dataSpaceViewerState.groupId, dataSpaceViewerState.artifactId, dataSpaceViewerState.versionId) }), _jsx("button", { className: "data-space__viewer__info__project-info__link", tabIndex: -1, title: "View Project", onClick: viewProject, children: _jsx(ExternalLinkIcon, {}) })] }), _jsxs("div", { className: "data-space__viewer__info__section__entry", children: [_jsx("div", { className: "data-space__viewer__info__project-info__label", children: "Data Space" }), _jsx("button", { className: "data-space__viewer__info__project-info__value", tabIndex: -1, title: "Click to View Data Space", onClick: viewDataSpaceInProject, children: analysisResult.path }), _jsx("button", { className: "data-space__viewer__info__project-info__link", tabIndex: -1, title: "Edit Data Space", onClick: viewDataSpaceInSDLCProject, children: _jsx(PencilIcon, {}) }), _jsx("button", { className: "data-space__viewer__info__project-info__link", tabIndex: -1, title: "View Data Space", onClick: viewDataSpaceInProject, children: _jsx(ExternalLinkIcon, {}) })] })] }), _jsxs("div", { className: "data-space__viewer__info__section", children: [_jsx("div", { className: "data-space__viewer__info__section__title", children: "Tagged Values" }), analysisResult.taggedValues.length !== 0 &&
|
|
35
|
+
analysisResult.taggedValues.map((taggedValue) => (_jsxs("div", { className: "data-space__viewer__info__section__entry", children: [_jsx("div", { className: "data-space__viewer__info__tagged-value__tag", title: `${taggedValue.profile}.${taggedValue.tag}`, children: `${extractElementNameFromPath(taggedValue.profile)}.${taggedValue.tag}` }), _jsx("div", { className: "data-space__viewer__info__tagged-value__value", children: taggedValue.value })] }, taggedValue._UUID))), analysisResult.taggedValues.length === 0 && (_jsx("div", { className: "data-space__viewer__info__section__placeholder", children: "(empty)" }))] }), _jsxs("div", { className: "data-space__viewer__info__section", children: [_jsx("div", { className: "data-space__viewer__info__section__title", children: "Stereotypes" }), analysisResult.stereotypes.length !== 0 &&
|
|
36
|
+
analysisResult.stereotypes.map((stereotype) => (_jsx("div", { className: "data-space__viewer__info__section__entry", title: `${stereotype.profile}.${stereotype.value}`, children: _jsx("div", { className: "data-space__viewer__info__steoreotype", children: `${extractElementNameFromPath(stereotype.profile)}.${stereotype.value}` }) }, stereotype._UUID))), analysisResult.stereotypes.length === 0 && (_jsx("div", { className: "data-space__viewer__info__section__placeholder", children: "(empty)" }))] })] }) }));
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=DataSpaceInfoPanel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceInfoPanel.js","sourceRoot":"","sources":["../../src/components/DataSpaceInfoPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAA6B,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,MAAM,CAAC,MAAM,kBAAkB,GAAG,QAAQ,CACxC,CAAC,KAAqD,EAAE,EAAE;IACxD,MAAM,EAAE,oBAAoB,EAAE,GAAG,KAAK,CAAC;IACvC,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAC/C,MAAM,cAAc,GAAG,oBAAoB,CAAC,uBAAuB,CAAC;IAEpE,MAAM,WAAW,GAAG,GAAS,EAAE,CAC7B,oBAAoB,CAAC,WAAW,CAC9B,oBAAoB,CAAC,OAAO,EAC5B,oBAAoB,CAAC,UAAU,EAC/B,oBAAoB,CAAC,SAAS,EAC9B,SAAS,CACV,CAAC;IACJ,MAAM,sBAAsB,GAAG,GAAS,EAAE,CACxC,oBAAoB,CAAC,WAAW,CAC9B,oBAAoB,CAAC,OAAO,EAC5B,oBAAoB,CAAC,UAAU,EAC/B,oBAAoB,CAAC,SAAS,EAC9B,cAAc,CAAC,IAAI,CAC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D,wBAEzD,CACP,IACG,IACF,GACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
/// <reference types="react" resolution-mode="require"/>
|
|
17
|
+
import { type DataSpaceViewerState } from '../stores/DataSpaceViewerState.js';
|
|
18
|
+
export declare const DataSpaceModelsDocumentation: ((props: {
|
|
19
|
+
dataSpaceViewerState: DataSpaceViewerState;
|
|
20
|
+
}) => JSX.Element) & {
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=DataSpaceModelsDocumentation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceModelsDocumentation.d.ts","sourceRoot":"","sources":["../../src/components/DataSpaceModelsDocumentation.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAIH,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAI9E,eAAO,MAAM,4BAA4B,WAC/B;IAAE,oBAAoB,EAAE,oBAAoB,CAAA;CAAE;;CAoEvD,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { observer } from 'mobx-react-lite';
|
|
18
|
+
import { BlankPanelContent, SearchIcon } from '@finos/legend-art';
|
|
19
|
+
import {} from '../stores/DataSpaceViewerState.js';
|
|
20
|
+
import { AgGridReact } from '@ag-grid-community/react';
|
|
21
|
+
import { ClientSideRowModelModule } from '@ag-grid-community/client-side-row-model';
|
|
22
|
+
export const DataSpaceModelsDocumentation = observer((props) => {
|
|
23
|
+
const { dataSpaceViewerState } = props;
|
|
24
|
+
const documentationEntries = dataSpaceViewerState.dataSpaceAnalysisResult.elementDocs;
|
|
25
|
+
if (documentationEntries.length === 0) {
|
|
26
|
+
return _jsx(BlankPanelContent, { children: "No documentation available" });
|
|
27
|
+
}
|
|
28
|
+
return (_jsxs("div", { className: "data-space__viewer__wiki__section", children: [_jsx("div", { className: "data-space__viewer__wiki__section__header", children: "Models Documentation" }), _jsx("div", { className: "data-space__viewer__wiki__section__content", children: _jsxs("div", { className: "data-space__viewer__models-documentation", children: [_jsx("div", { className: "data-space__viewer__models-documentation__search", children: _jsxs("div", { className: "data-space__viewer__models-documentation__search__input-group", children: [_jsx("input", { className: "data-space__viewer__models-documentation__search__input-group__input" }), _jsx("div", { className: "data-space__viewer__models-documentation__search-box__input-group__icon", children: _jsx(SearchIcon, {}) })] }) }), _jsx("div", { className: "data-space__viewer__models-documentation__grid ag-theme-balham-dark", children: _jsx(AgGridReact, { rowData: documentationEntries, gridOptions: {
|
|
29
|
+
suppressScrollOnNewData: true,
|
|
30
|
+
getRowId: (rowData) => rowData.data.uuid,
|
|
31
|
+
}, modules: [ClientSideRowModelModule], suppressFieldDotNotation: true, columnDefs: [
|
|
32
|
+
{
|
|
33
|
+
minWidth: 50,
|
|
34
|
+
sortable: true,
|
|
35
|
+
resizable: true,
|
|
36
|
+
field: 'elementPath',
|
|
37
|
+
headerName: 'Model',
|
|
38
|
+
flex: 1,
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
minWidth: 50,
|
|
42
|
+
sortable: false,
|
|
43
|
+
resizable: true,
|
|
44
|
+
field: 'subElementText',
|
|
45
|
+
headerName: '',
|
|
46
|
+
flex: 1,
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
minWidth: 50,
|
|
50
|
+
sortable: false,
|
|
51
|
+
resizable: true,
|
|
52
|
+
field: 'doc',
|
|
53
|
+
headerName: 'Documentation',
|
|
54
|
+
flex: 1,
|
|
55
|
+
wrapText: true,
|
|
56
|
+
autoHeight: true,
|
|
57
|
+
},
|
|
58
|
+
] }) })] }) })] }));
|
|
59
|
+
});
|
|
60
|
+
//# sourceMappingURL=DataSpaceModelsDocumentation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceModelsDocumentation.js","sourceRoot":"","sources":["../../src/components/DataSpaceModelsDocumentation.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAA6B,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,wBAAwB,EA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E;wCACd,IAAI,EAAE,CAAC;qCACR;oCACD;wCACE,QAAQ,EAAE,EAAE;wCACZ,QAAQ,EAAE,KAAK;wCACf,SAAS,EAAE,IAAI;wCACf,KAAK,EAAE,KAAK;wCACZ,UAAU,EAAE,eAAe;wCAC3B,IAAI,EAAE,CAAC;wCACP,QAAQ,EAAE,IAAI;wCACd,UAAU,EAAE,IAAI;qCACjB;iCACF,GACD,GACE,IACF,GACF,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export {};
|
|
1
2
|
/**
|
|
2
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
4
|
*
|
|
@@ -13,8 +14,4 @@
|
|
|
13
14
|
* See the License for the specific language governing permissions and
|
|
14
15
|
* limitations under the License.
|
|
15
16
|
*/
|
|
16
|
-
|
|
17
|
-
export declare const DataSpacePreview: (() => JSX.Element) & {
|
|
18
|
-
displayName: string;
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=DataSpacePreview.d.ts.map
|
|
17
|
+
//# sourceMappingURL=DataSpaceQuickStart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceQuickStart.d.ts","sourceRoot":"","sources":["../../src/components/DataSpaceQuickStart.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
//# sourceMappingURL=DataSpaceQuickStart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceQuickStart.js","sourceRoot":"","sources":["../../src/components/DataSpaceQuickStart.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
/// <reference types="react" resolution-mode="require"/>
|
|
17
|
+
import { type DataSpaceViewerState } from '../stores/DataSpaceViewerState.js';
|
|
18
|
+
export declare const DataSpaceSupportPanel: ((props: {
|
|
19
|
+
dataSpaceViewerState: DataSpaceViewerState;
|
|
20
|
+
}) => JSX.Element) & {
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=DataSpaceSupportPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceSupportPanel.d.ts","sourceRoot":"","sources":["../../src/components/DataSpaceSupportPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAKH,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAiD9E,eAAO,MAAM,qBAAqB,WACxB;IAAE,oBAAoB,EAAE,oBAAoB,CAAA;CAAE;;CAUvD,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { observer } from 'mobx-react-lite';
|
|
18
|
+
import { BlankPanelContent, EnvelopIcon } from '@finos/legend-art';
|
|
19
|
+
import { DataSpaceSupportEmail } from '../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
|
|
20
|
+
import {} from '../stores/DataSpaceViewerState.js';
|
|
21
|
+
const DataSpaceSupportEmailViewer = observer((props) => {
|
|
22
|
+
const { dataSpaceSupportEmail } = props;
|
|
23
|
+
return (_jsx("div", { className: "data-space__viewer__support-email", children: _jsxs("div", { className: "data-space__viewer__support-email__entry", children: [_jsx("div", { className: "data-space__viewer__support-email__entry__icon", children: _jsx(EnvelopIcon, {}) }), _jsx("a", { href: `mailto:${dataSpaceSupportEmail.address}`, className: "data-space__viewer__support-email__entry__content", children: dataSpaceSupportEmail.address })] }) }));
|
|
24
|
+
});
|
|
25
|
+
const DataSpaceSupport = observer((props) => {
|
|
26
|
+
const { dataSpaceViewerState } = props;
|
|
27
|
+
const supportInfo = dataSpaceViewerState.dataSpaceAnalysisResult.supportInfo;
|
|
28
|
+
if (supportInfo === undefined) {
|
|
29
|
+
return _jsx(BlankPanelContent, { children: "No support info available" });
|
|
30
|
+
}
|
|
31
|
+
else if (supportInfo instanceof DataSpaceSupportEmail) {
|
|
32
|
+
return (_jsx(DataSpaceSupportEmailViewer, { dataSpaceViewerState: dataSpaceViewerState, dataSpaceSupportEmail: supportInfo }));
|
|
33
|
+
}
|
|
34
|
+
return (_jsx(BlankPanelContent, { children: `Can't display support info` }));
|
|
35
|
+
});
|
|
36
|
+
export const DataSpaceSupportPanel = observer((props) => {
|
|
37
|
+
const { dataSpaceViewerState } = props;
|
|
38
|
+
return (_jsx("div", { className: "data-space__viewer__panel", children: _jsx("div", { className: "data-space__viewer__support-info", children: _jsx(DataSpaceSupport, { dataSpaceViewerState: dataSpaceViewerState }) }) }));
|
|
39
|
+
});
|
|
40
|
+
//# sourceMappingURL=DataSpaceSupportPanel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceSupportPanel.js","sourceRoot":"","sources":["../../src/components/DataSpaceSupportPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wFAAwF,CAAC;AAC/H,OAAO,EAA6B,MAAM,mCAAmC,CAAC;AAE9E,MAAM,2BAA2B,GAAG,QAAQ,CAC1C,CAAC,KAGA,EAAE,EAAE;IACH,MAAM,EAAE,qBAAqB,EAAE,GAAG,KAAK,CAAC;IAExC,OAAO,CACL,cAAK,SAAS,EAAC,mCAAmC,YAChD,eAAK,SAAS,EAAC,0CAA0C,aACvD,cAAK,SAAS,EAAC,gDAAgD,YAC7D,KAAC,WAAW,KAAG,GACX,EACN,YACE,IAAI,EAAE,UAAU,qBAAqB,CAAC,OAAO,EAAE,EAC/C,SAAS,EAAC,mDAAmD,YAE5D,qBAAqB,CAAC,OAAO,GAC5B,IACA,GACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,gBAAgB,GAAG,QAAQ,CAC/B,CAAC,KAAqD,EAAE,EAAE;IACxD,MAAM,EAAE,oBAAoB,EAAE,GAAG,KAAK,CAAC;IACvC,MAAM,WAAW,GACf,oBAAoB,CAAC,uBAAuB,CAAC,WAAW,CAAC;IAE3D,IAAI,WAAW,KAAK,SAAS,EAAE;QAC7B,OAAO,KAAC,iBAAiB,4CAA8C,CAAC;KACzE;SAAM,IAAI,WAAW,YAAY,qBAAqB,EAAE;QACvD,OAAO,CACL,KAAC,2BAA2B,IAC1B,oBAAoB,EAAE,oBAAoB,EAC1C,qBAAqB,EAAE,WAAW,GAClC,CACH,CAAC;KACH;IACD,OAAO,CACL,KAAC,iBAAiB,cAAE,4BAA4B,GAAqB,CACtE,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,QAAQ,CAC3C,CAAC,KAAqD,EAAE,EAAE;IACxD,MAAM,EAAE,oBAAoB,EAAE,GAAG,KAAK,CAAC;IACvC,OAAO,CACL,cAAK,SAAS,EAAC,2BAA2B,YACxC,cAAK,SAAS,EAAC,kCAAkC,YAC/C,KAAC,gBAAgB,IAAC,oBAAoB,EAAE,oBAAoB,GAAI,GAC5D,GACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceViewer.d.ts","sourceRoot":"","sources":["../../src/components/DataSpaceViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;
|
|
1
|
+
{"version":3,"file":"DataSpaceViewer.d.ts","sourceRoot":"","sources":["../../src/components/DataSpaceViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAIH,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,mCAAmC,CAAC;AAkD3C,eAAO,MAAM,eAAe,WAClB;IAAE,oBAAoB,EAAE,oBAAoB,CAAA;CAAE;;CAkEvD,CAAC"}
|