@finos/legend-extension-dsl-data-space 9.1.4 → 9.1.6
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/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 +23 -0
- package/lib/components/DataSpaceDiagramViewer.d.ts.map +1 -0
- package/lib/components/DataSpaceDiagramViewer.js +75 -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/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 +23 -0
- package/lib/components/DataSpaceModelsDocumentation.d.ts.map +1 -0
- package/lib/components/DataSpaceModelsDocumentation.js +58 -0
- package/lib/components/DataSpaceModelsDocumentation.js.map +1 -0
- package/lib/components/{studio/DataSpacePreview.d.ts → DataSpacePlaceholder.d.ts} +4 -4
- 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 +23 -0
- package/lib/components/DataSpaceQuickStart.d.ts.map +1 -0
- package/lib/components/DataSpaceQuickStart.js +108 -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 +40 -276
- 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 +12 -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/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 +39 -5
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.d.ts.map +1 -1
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.js +40 -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 +62 -10
- 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/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 +10 -6
- 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 +17 -14
- package/lib/stores/DataSpaceViewerState.d.ts.map +1 -1
- package/lib/stores/DataSpaceViewerState.js +25 -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 +21 -17
- package/src/application/studio/DSL_DataSpace_LegendStudioCodeSnippet.ts +15 -2
- 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 +199 -0
- package/src/components/DataSpaceExecutionContextViewer.tsx +167 -0
- package/src/components/DataSpaceInfoPanel.tsx +170 -0
- package/src/components/DataSpaceMarkdownTextViewer.tsx +33 -0
- package/src/components/DataSpaceModelsDocumentation.tsx +99 -0
- package/src/components/DataSpacePlaceholder.tsx +21 -0
- package/src/components/DataSpaceQuickStart.tsx +381 -0
- package/src/components/DataSpaceSupportPanel.tsx +80 -0
- package/src/components/DataSpaceViewer.tsx +88 -1052
- package/src/components/DataSpaceViewerActivityBar.tsx +215 -0
- package/src/components/DataSpaceWiki.tsx +41 -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/DSL_DataSpace_PureGraphManagerPlugin.ts +9 -0
- package/src/graphManager/action/analytics/DataSpaceAnalysis.ts +54 -15
- package/src/graphManager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.ts +99 -14
- package/src/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.ts +86 -17
- 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/index.ts +2 -4
- package/src/stores/DSL_DataSpace_LegendApplicationPlugin_Extension.ts +41 -0
- package/src/stores/DataSpaceViewerState.ts +39 -20
- package/src/stores/studio/DataSpacePreviewState.ts +0 -5
- package/tsconfig.json +13 -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
|
@@ -14,288 +14,52 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
import { useRef, useEffect, forwardRef } from 'react';
|
|
18
17
|
import { observer } from 'mobx-react-lite';
|
|
19
|
-
import { BlankPanelContent,
|
|
20
|
-
import { DiagramRenderer, } from '@finos/legend-extension-dsl-diagram';
|
|
21
|
-
import { DataSpaceSupportEmail } from '../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
|
|
22
|
-
import { extractElementNameFromPath, } from '@finos/legend-graph';
|
|
18
|
+
import { BlankPanelContent, VerifiedIcon, clsx } from '@finos/legend-art';
|
|
23
19
|
import { DATA_SPACE_VIEWER_ACTIVITY_MODE, } from '../stores/DataSpaceViewerState.js';
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
const
|
|
32
|
-
const { width, height } = useResizeDetector({
|
|
33
|
-
refreshMode: 'debounce',
|
|
34
|
-
refreshRate: 50,
|
|
35
|
-
targetRef: diagramCanvasRef,
|
|
36
|
-
});
|
|
37
|
-
useEffect(() => {
|
|
38
|
-
const renderer = new DiagramRenderer(diagramCanvasRef.current, diagram);
|
|
39
|
-
dataSpaceViewerState.setRenderer(renderer);
|
|
40
|
-
dataSpaceViewerState.setupRenderer();
|
|
41
|
-
renderer.render();
|
|
42
|
-
renderer.autoRecenter();
|
|
43
|
-
}, [diagramCanvasRef, dataSpaceViewerState, diagram]);
|
|
44
|
-
useEffect(() => {
|
|
45
|
-
if (dataSpaceViewerState.isDiagramRendererInitialized) {
|
|
46
|
-
dataSpaceViewerState.renderer.refresh();
|
|
47
|
-
}
|
|
48
|
-
}, [dataSpaceViewerState, width, height]);
|
|
49
|
-
return (_jsx("div", { ref: diagramCanvasRef, className: clsx('diagram-canvas ', dataSpaceViewerState.diagramCursorClass), tabIndex: 0 }));
|
|
50
|
-
}));
|
|
51
|
-
const DataSpaceOverview = observer((props) => {
|
|
52
|
-
const { dataSpaceViewerState } = props;
|
|
20
|
+
import { DataSpaceExecutionContextViewer } from './DataSpaceExecutionContextViewer.js';
|
|
21
|
+
import { DataSpaceInfoPanel } from './DataSpaceInfoPanel.js';
|
|
22
|
+
import { DataSpaceSupportPanel } from './DataSpaceSupportPanel.js';
|
|
23
|
+
import { DataSpaceWiki } from './DataSpaceWiki.js';
|
|
24
|
+
import { DataSpaceViewerActivityBar } from './DataSpaceViewerActivityBar.js';
|
|
25
|
+
import { useRef, useState } from 'react';
|
|
26
|
+
const DataSpaceHeader = observer((props) => {
|
|
27
|
+
const { dataSpaceViewerState, showFullHeader } = props;
|
|
53
28
|
const analysisResult = dataSpaceViewerState.dataSpaceAnalysisResult;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
const idx = analysisResult.featuredDiagrams.indexOf(dataSpaceViewerState.currentDiagram);
|
|
61
|
-
if (idx === 0 || idx === -1) {
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
dataSpaceViewerState.setCurrentDiagram(guaranteeNonNullable(analysisResult.featuredDiagrams[idx - 1]));
|
|
65
|
-
};
|
|
66
|
-
const showNextDiagram = () => {
|
|
67
|
-
if (!dataSpaceViewerState.currentDiagram) {
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
const idx = analysisResult.featuredDiagrams.indexOf(dataSpaceViewerState.currentDiagram);
|
|
71
|
-
if (idx === analysisResult.featuredDiagrams.length - 1 || idx === -1) {
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
dataSpaceViewerState.setCurrentDiagram(guaranteeNonNullable(analysisResult.featuredDiagrams[idx + 1]));
|
|
75
|
-
};
|
|
76
|
-
if (analysisResult.featuredDiagrams.length === 0) {
|
|
77
|
-
return _jsx(BlankPanelContent, { children: "No diagrams available" });
|
|
78
|
-
}
|
|
79
|
-
return (_jsx("div", { className: "data-space__viewer__main-panel__content data-space__viewer__overview", children: _jsxs(ResizablePanelGroup, { orientation: "horizontal", children: [_jsx(ResizablePanel, { size: 250, minSize: 100, children: _jsxs("div", { className: "data-space__viewer__overview__description", children: [analysisResult.description !== undefined && (_jsx("div", { className: "data-space__viewer__overview__description__content", children: _jsx(MarkdownTextViewer, { className: "data-space__viewer__overview__description__content__markdown-content", value: {
|
|
80
|
-
value: analysisResult.description,
|
|
81
|
-
} }) })), analysisResult.description === undefined && (_jsx("div", { className: "data-space__viewer__overview__description--empty", children: "No description" }))] }) }), _jsx(ResizablePanelSplitter, {}), _jsx(ResizablePanel, { minSize: 100, children: _jsx("div", { className: "data-space__viewer__overview__diagrams__carousel", children: _jsxs("div", { className: "data-space__viewer__overview__diagrams__carousel__frame", children: [_jsx("div", { className: "data-space__viewer__overview__diagrams__carousel__frame__display", children: dataSpaceViewerState.currentDiagram && (_jsx(DataSpaceDiagramCanvas, { dataSpaceViewerState: dataSpaceViewerState, diagram: dataSpaceViewerState.currentDiagram, ref: diagramCanvasRef })) }), _jsx("button", { className: "data-space__viewer__overview__diagrams__carousel__frame__navigator data-space__viewer__overview__diagrams__carousel__frame__navigator--back", tabIndex: -1, title: "Previous", disabled: getNullableFirstElement(analysisResult.featuredDiagrams) ===
|
|
82
|
-
dataSpaceViewerState.currentDiagram, onClick: showPreviousDiagram, children: _jsx(ChevronLeftIcon, {}) }), _jsx("button", { className: "data-space__viewer__overview__diagrams__carousel__frame__navigator data-space__viewer__overview__diagrams__carousel__frame__navigator--next", tabIndex: -1, title: "Previous", disabled: getNullableLastElement(analysisResult.featuredDiagrams) ===
|
|
83
|
-
dataSpaceViewerState.currentDiagram, onClick: showNextDiagram, children: _jsx(ChevronRightIcon, {}) }), _jsx("div", { className: "data-space__viewer__overview__diagrams__carousel__frame__indicators", children: _jsx("div", { className: "data-space__viewer__overview__diagrams__carousel__frame__indicators__notch", children: analysisResult.featuredDiagrams.map((diagram) => (_jsx("button", { className: clsx('data-space__viewer__overview__diagrams__carousel__frame__indicator', {
|
|
84
|
-
'data-space__viewer__overview__diagrams__carousel__frame__indicator--active': dataSpaceViewerState.currentDiagram === diagram,
|
|
85
|
-
}), onClick: () => dataSpaceViewerState.setCurrentDiagram(diagram), children: _jsx(CircleIcon, {}) }, diagram.path))) }) })] }) }) })] }) }));
|
|
86
|
-
});
|
|
87
|
-
const DataSpaceDocumentation = observer((props) => {
|
|
88
|
-
const { dataSpaceViewerState } = props;
|
|
89
|
-
const documentationEntries = dataSpaceViewerState.dataSpaceAnalysisResult.elementDocs;
|
|
90
|
-
if (documentationEntries.length === 0) {
|
|
91
|
-
return _jsx(BlankPanelContent, { children: "No documentation available" });
|
|
92
|
-
}
|
|
93
|
-
return (_jsx("div", { className: "data-space__viewer__main-panel__content data-space__viewer__overview", children: _jsxs("table", { className: "table", children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { className: "table__cell--left", children: "Element" }), _jsx("th", { className: "table__cell--left" }), _jsx("th", { className: "table__cell--left", children: "Documentation" })] }) }), _jsx("tbody", { children: documentationEntries.map((entry) => (_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: entry.elementPath }), _jsx("td", { className: "table__cell--left", children: entry.subElementText ?? '' }), _jsx("td", { className: "table__cell--left", children: entry.doc })] }, entry.uuid))) })] }) }));
|
|
94
|
-
});
|
|
95
|
-
const buildExecutionContextOption = (value) => ({
|
|
96
|
-
label: value.name,
|
|
97
|
-
value: value,
|
|
29
|
+
return (_jsx("div", { className: clsx('data-space__viewer__header', {
|
|
30
|
+
'data-space__viewer__header--floating': showFullHeader,
|
|
31
|
+
}), children: _jsx("div", { className: clsx('data-space__viewer__header__content', {
|
|
32
|
+
'data-space__viewer__header__content--expanded': dataSpaceViewerState.isExpandedModeEnabled,
|
|
33
|
+
}), children: _jsxs("div", { className: "data-space__viewer__header__title", title: `${analysisResult.title ?? analysisResult.name} - ${analysisResult.path}`, children: [_jsx("div", { className: "data-space__viewer__header__title__label", children: analysisResult.title ?? analysisResult.name }), dataSpaceViewerState.isVerified && (_jsx(VerifiedIcon, { className: "data-space__viewer__header__title__verified-badge", title: "Verified Data Space" }))] }) }) }));
|
|
98
34
|
});
|
|
99
|
-
const
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
});
|
|
103
|
-
const DataSpaceExecutionViewer = observer((props) => {
|
|
104
|
-
const { dataSpaceViewerState } = props;
|
|
105
|
-
const analysisResult = dataSpaceViewerState.dataSpaceAnalysisResult;
|
|
106
|
-
const executionContexts = Array.from(dataSpaceViewerState.dataSpaceAnalysisResult.executionContextsIndex.values());
|
|
107
|
-
// execution
|
|
108
|
-
const executionContextOptions = executionContexts.map(buildExecutionContextOption);
|
|
109
|
-
const selectedExecutionContextOption = buildExecutionContextOption(dataSpaceViewerState.currentExecutionContext);
|
|
110
|
-
const onExecutionContextOptionChange = (option) => {
|
|
111
|
-
if (option.value !== dataSpaceViewerState.currentExecutionContext) {
|
|
112
|
-
dataSpaceViewerState.setCurrentExecutionContext(option.value);
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
const formatExecutionContextOptionLabel = (option) => (_jsxs("div", { className: "data-space__viewer__execution__entry__content__dropdown__option", children: [_jsx("div", { className: "data-space__viewer__execution__entry__content__dropdown__option__label", children: option.label }), option.value === analysisResult.defaultExecutionContext && (_jsx("div", { className: "data-space__viewer__execution__entry__content__dropdown__option__tag", children: "default" }))] }));
|
|
116
|
-
// runtime
|
|
117
|
-
const runtimeOptions = dataSpaceViewerState.currentExecutionContext.compatibleRuntimes.map(buildRuntimeOption);
|
|
118
|
-
const selectedRuntimeOption = buildRuntimeOption(dataSpaceViewerState.currentRuntime);
|
|
119
|
-
const onRuntimeOptionChange = (option) => {
|
|
120
|
-
if (option.value !== dataSpaceViewerState.currentRuntime) {
|
|
121
|
-
dataSpaceViewerState.setCurrentRuntime(option.value);
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
const formatRuntimeOptionLabel = (option) => (_jsxs("div", { className: "data-space__viewer__execution__entry__content__dropdown__option", children: [_jsx("div", { className: "data-space__viewer__execution__entry__content__dropdown__option__label", children: option.label }), option.value ===
|
|
125
|
-
dataSpaceViewerState.currentExecutionContext.defaultRuntime && (_jsx("div", { className: "data-space__viewer__execution__entry__content__dropdown__option__tag", children: "default" }))] }));
|
|
126
|
-
return (_jsxs("div", { className: "data-space__viewer__main-panel__content data-space__viewer__execution", children: [_jsxs("div", { className: "data-space__viewer__execution__entry", children: [_jsx("div", { className: "data-space__viewer__execution__entry__icon", children: _jsx(CogIcon, { className: "data-space__viewer__execution__context-icon" }) }), _jsx("div", { className: "data-space__viewer__execution__entry__content data-space__viewer__execution__entry__content__dropdown__container", children: _jsx(CustomSelectorInput, { className: "data-space__viewer__execution__entry__content__dropdown", options: executionContextOptions, onChange: onExecutionContextOptionChange, value: selectedExecutionContextOption, darkMode: true, formatOptionLabel: formatExecutionContextOptionLabel }) })] }), _jsx("div", { className: clsx('data-space__viewer__execution__description', {
|
|
127
|
-
'data-space__viewer__execution__description--empty': !dataSpaceViewerState.currentExecutionContext.description,
|
|
128
|
-
}), children: dataSpaceViewerState.currentExecutionContext.description
|
|
129
|
-
? dataSpaceViewerState.currentExecutionContext.description
|
|
130
|
-
: 'No description' }), _jsxs("div", { className: "data-space__viewer__execution__entry data-space__viewer__execution__mapping", children: [_jsx("div", { className: "data-space__viewer__execution__entry__icon", children: _jsx(PURE_MappingIcon, {}) }), _jsx("div", { className: "data-space__viewer__execution__entry__content data-space__viewer__execution__entry__content__text", children: dataSpaceViewerState.currentExecutionContext.mapping.path })] }), _jsxs("div", { className: "data-space__viewer__execution__entry", children: [_jsx("div", { className: "data-space__viewer__execution__entry__icon", children: _jsx(PURE_RuntimeIcon, {}) }), _jsx("div", { className: "data-space__viewer__execution__entry__content data-space__viewer__execution__entry__content__dropdown__container", children: _jsx(CustomSelectorInput, { className: "data-space__viewer__execution__entry__content__dropdown", options: runtimeOptions, onChange: onRuntimeOptionChange, value: selectedRuntimeOption, darkMode: true, formatOptionLabel: formatRuntimeOptionLabel }) })] })] }));
|
|
131
|
-
});
|
|
132
|
-
const DataSpaceInfo = observer((props) => {
|
|
133
|
-
const { dataSpaceViewerState } = props;
|
|
134
|
-
const applicationStore = useApplicationStore();
|
|
135
|
-
const analysisResult = dataSpaceViewerState.dataSpaceAnalysisResult;
|
|
136
|
-
const viewProject = () => dataSpaceViewerState.viewProject(dataSpaceViewerState.groupId, dataSpaceViewerState.artifactId, dataSpaceViewerState.versionId, undefined);
|
|
137
|
-
const viewDataSpaceInProject = () => dataSpaceViewerState.viewProject(dataSpaceViewerState.groupId, dataSpaceViewerState.artifactId, dataSpaceViewerState.versionId, analysisResult.path);
|
|
138
|
-
const viewDataSpaceInSDLCProject = () => {
|
|
139
|
-
dataSpaceViewerState
|
|
140
|
-
.viewSDLCProject(dataSpaceViewerState.groupId, dataSpaceViewerState.artifactId, analysisResult.path)
|
|
141
|
-
.catch(applicationStore.alertUnhandledError);
|
|
142
|
-
};
|
|
143
|
-
return (_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 &&
|
|
144
|
-
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 &&
|
|
145
|
-
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)" }))] })] }));
|
|
146
|
-
});
|
|
147
|
-
const DataSpaceSupportEmailViewer = observer((props) => {
|
|
148
|
-
const { dataSpaceSupportEmail } = props;
|
|
149
|
-
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 })] }) }));
|
|
150
|
-
});
|
|
151
|
-
const DataSpaceSupportInfoViewerInner = observer((props) => {
|
|
152
|
-
const { dataSpaceViewerState } = props;
|
|
153
|
-
const supportInfo = dataSpaceViewerState.dataSpaceAnalysisResult.supportInfo;
|
|
154
|
-
if (supportInfo === undefined) {
|
|
155
|
-
return _jsx(BlankPanelContent, { children: "No support info available" });
|
|
156
|
-
}
|
|
157
|
-
else if (supportInfo instanceof DataSpaceSupportEmail) {
|
|
158
|
-
return (_jsx(DataSpaceSupportEmailViewer, { dataSpaceViewerState: dataSpaceViewerState, dataSpaceSupportEmail: supportInfo }));
|
|
159
|
-
}
|
|
160
|
-
return (_jsx(BlankPanelContent, { children: "Can't display support info" }));
|
|
161
|
-
});
|
|
162
|
-
const renderDataSpaceCheckEntitlementsEditor = (dataSpaceViewerState, plugins) => {
|
|
163
|
-
const checkEntitlementsEditorRenderers = plugins.flatMap((plugin) => plugin.getCheckEntitlementsEditorRender() ?? []);
|
|
164
|
-
for (const editorRenderer of checkEntitlementsEditorRenderers) {
|
|
165
|
-
const editor = editorRenderer(dataSpaceViewerState);
|
|
166
|
-
if (editor) {
|
|
167
|
-
return editor;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
return (_jsx(BlankPanelContent, { children: "Check entitlement(s) (Work in Progress)" }));
|
|
35
|
+
const DataSpacePlaceholderPanel = (props) => {
|
|
36
|
+
const { message } = props;
|
|
37
|
+
return (_jsx("div", { className: "data-space__viewer__panel", children: _jsx(BlankPanelContent, { children: message }) }));
|
|
171
38
|
};
|
|
172
|
-
const DataSpaceUsageShowcaseTDSSampleOutputViewer = observer((props) => {
|
|
173
|
-
const { showcase, sampleOutput: sampleOutput } = props;
|
|
174
|
-
const toggleShowSampleOutput = () => showcase.setShowSampleOutput(!showcase.showSampleOutput);
|
|
175
|
-
return (_jsxs("div", { className: clsx('data-space__viewer__usage__block', {
|
|
176
|
-
'data-space__viewer__usage__block--collapsed': !showcase.showSampleOutput,
|
|
177
|
-
}), children: [_jsxs("div", { className: "data-space__viewer__usage__block__header", onClick: toggleShowSampleOutput, children: [_jsx("div", { className: "data-space__viewer__usage__block__header__toggler", children: showcase.showSampleOutput ? _jsx(CaretDownIcon, {}) : _jsx(CaretRightIcon, {}) }), _jsx("div", { className: "data-space__viewer__usage__block__header__title", children: "Sample Output" })] }), showcase.showSampleOutput && (_jsx("div", { className: "data-space__viewer__usage__block__content", children: _jsxs("table", { className: "table data-space__viewer__usage__block__content__table", children: [_jsx("thead", { children: _jsx("tr", { children: sampleOutput.headers.map((header, idx) => (
|
|
178
|
-
// eslint-disable-next-line react/no-array-index-key
|
|
179
|
-
_jsx("th", { className: "table__cell--left", children: header }, idx))) }) }), _jsx("tbody", { children: sampleOutput.rows.map((row, idx) => (
|
|
180
|
-
// eslint-disable-next-line react/no-array-index-key
|
|
181
|
-
_jsx("tr", { children: row.map((cell, rowIdx) => (
|
|
182
|
-
// eslint-disable-next-line react/no-array-index-key
|
|
183
|
-
_jsx("td", { className: "table__cell--left", children: cell }, rowIdx))) }, idx))) })] }) }))] }));
|
|
184
|
-
});
|
|
185
|
-
const DataSpaceUsageShowcaseSampleOutputViewer = observer((props) => {
|
|
186
|
-
const { dataSpaceViewerState, showcase } = props;
|
|
187
|
-
if (showcase.outputDescription.sampleOutput instanceof
|
|
188
|
-
HACKY__DataSpaceUsageShowcaseTDSSampleOutput) {
|
|
189
|
-
return (_jsx(DataSpaceUsageShowcaseTDSSampleOutputViewer, { dataSpaceViewerState: dataSpaceViewerState, showcase: showcase, sampleOutput: showcase.outputDescription.sampleOutput }));
|
|
190
|
-
}
|
|
191
|
-
return (_jsx(BlankPanelContent, { children: "Can't display sample output" }));
|
|
192
|
-
});
|
|
193
|
-
const DataSpaceUsageShowcaseTDSOutputDescriptionViewer = observer((props) => {
|
|
194
|
-
const { showcase, description: description } = props;
|
|
195
|
-
const toggleShowOutputDescription = () => showcase.setShowOutputDescription(!showcase.showOutputDescription);
|
|
196
|
-
return (_jsxs("div", { className: clsx('data-space__viewer__usage__block', {
|
|
197
|
-
'data-space__viewer__usage__block--collapsed': !showcase.showOutputDescription,
|
|
198
|
-
}), children: [_jsxs("div", { className: "data-space__viewer__usage__block__header", onClick: toggleShowOutputDescription, children: [_jsx("div", { className: "data-space__viewer__usage__block__header__toggler", children: showcase.showOutputDescription ? (_jsx(CaretDownIcon, {})) : (_jsx(CaretRightIcon, {})) }), _jsx("div", { className: "data-space__viewer__usage__block__header__title", children: "Output Description" })] }), showcase.showOutputDescription && (_jsx("div", { className: "data-space__viewer__usage__block__content", children: _jsxs("table", { className: "table data-space__viewer__usage__block__content__table", children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { className: "table__cell--left", children: "Column Name" }), _jsx("th", { className: "table__cell--left", children: "Description" }), _jsx("th", { className: "table__cell--left", children: "Sample Values" })] }) }), _jsx("tbody", { children: description.columns.map((column) => (_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: column.name }), _jsx("td", { className: "table__cell--left", children: column.description }), _jsx("td", { className: "table__cell--left", children: column.sampleValues.join(', ') })] }, column.uuid))) })] }) }))] }));
|
|
199
|
-
});
|
|
200
|
-
const DataSpaceUsageShowcaseOutputDescriptionViewer = observer((props) => {
|
|
201
|
-
const { dataSpaceViewerState, showcase } = props;
|
|
202
|
-
if (showcase.outputDescription instanceof
|
|
203
|
-
HACKY__DataSpaceUsageShowcaseTDSOutputDescription) {
|
|
204
|
-
return (_jsx(DataSpaceUsageShowcaseTDSOutputDescriptionViewer, { dataSpaceViewerState: dataSpaceViewerState, showcase: showcase, description: showcase.outputDescription }));
|
|
205
|
-
}
|
|
206
|
-
return (_jsx(BlankPanelContent, { children: "Can't display output description" }));
|
|
207
|
-
});
|
|
208
|
-
const DataSpaceUsageShowcaseViewer = observer((props) => {
|
|
209
|
-
const { dataSpaceViewerState, showcase } = props;
|
|
210
|
-
const applicationStore = useApplicationStore();
|
|
211
|
-
const toggleShowQuery = () => showcase.setShowQuery(!showcase.showQuery);
|
|
212
|
-
const copyQuery = (event) => {
|
|
213
|
-
event.preventDefault();
|
|
214
|
-
event.stopPropagation();
|
|
215
|
-
applicationStore.clipboardService
|
|
216
|
-
.copyTextToClipboard(showcase.query)
|
|
217
|
-
.catch(applicationStore.alertUnhandledError);
|
|
218
|
-
};
|
|
219
|
-
return (_jsxs("div", { className: "data-space__viewer__usage", children: [_jsx("div", { className: "data-space__viewer__usage__title", children: showcase.title }), showcase.description !== undefined && (_jsx("div", { className: "data-data-space__viewer__usage__description", children: _jsx(MarkdownTextViewer, { className: "data-space__viewer__usage__description__markdown-content", value: {
|
|
220
|
-
value: showcase.description,
|
|
221
|
-
} }) })), _jsxs("div", { className: clsx('data-space__viewer__usage__block data-space__viewer__usage__query', {
|
|
222
|
-
'data-space__viewer__usage__block--collapsed': !showcase.showQuery,
|
|
223
|
-
}), children: [_jsxs("div", { className: "data-space__viewer__usage__block__header", onClick: toggleShowQuery, children: [_jsx("div", { className: "data-space__viewer__usage__block__header__toggler", children: showcase.showQuery ? _jsx(CaretDownIcon, {}) : _jsx(CaretRightIcon, {}) }), _jsx("div", { className: "data-space__viewer__usage__block__header__title", children: "Query" }), _jsxs("div", { className: "data-space__viewer__usage__block__header__actions", children: [_jsx("button", { className: "data-space__viewer__usage__block__header__action", tabIndex: -1, onClick: copyQuery, children: _jsx(CopyIcon, {}) }), _jsx("button", { className: "data-space__viewer__usage__block__header__action", tabIndex: -1, children: _jsx(MoreHorizontalIcon, {}) })] })] }), showcase.showQuery && (_jsx("div", { className: "data-space__viewer__usage__block__content", children: _jsx(TextInputEditor, { inputValue: showcase.query, isReadOnly: true, language: EDITOR_LANGUAGE.PURE, hideGutter: true, showMiniMap: false }) }))] }), _jsx(DataSpaceUsageShowcaseOutputDescriptionViewer, { dataSpaceViewerState: dataSpaceViewerState, showcase: showcase }), _jsx(DataSpaceUsageShowcaseSampleOutputViewer, { dataSpaceViewerState: dataSpaceViewerState, showcase: showcase })] }));
|
|
224
|
-
});
|
|
225
|
-
const DataSpaceUsageShowcasesPanel = observer((props) => {
|
|
226
|
-
const { dataSpaceViewerState } = props;
|
|
227
|
-
if (!dataSpaceViewerState.HACKY__previewExperimentalFeatures) {
|
|
228
|
-
return (_jsx(BlankPanelContent, { children: "Usage Showcases (Work in Progress)" }));
|
|
229
|
-
}
|
|
230
|
-
return (_jsx("div", { className: "data-space__viewer__main-panel__content data-space__viewer__usages", children: dataSpaceViewerState.dataSpaceAnalysisResult.HACKY__usageShowcases.map((showcase) => (_jsx(DataSpaceUsageShowcaseViewer, { dataSpaceViewerState: dataSpaceViewerState, showcase: showcase }, showcase.uuid))) }));
|
|
231
|
-
});
|
|
232
39
|
export const DataSpaceViewer = observer((props) => {
|
|
233
40
|
const { dataSpaceViewerState } = props;
|
|
234
|
-
const
|
|
235
|
-
const
|
|
236
|
-
const
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
mode: DATA_SPACE_VIEWER_ACTIVITY_MODE.TEST_DATA,
|
|
260
|
-
title: 'Test Data',
|
|
261
|
-
icon: _jsx(FlaskIcon, {}),
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
mode: DATA_SPACE_VIEWER_ACTIVITY_MODE.ENTITLEMENT,
|
|
265
|
-
title: 'Entitlement',
|
|
266
|
-
icon: _jsx(KeyIcon, {}),
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
mode: DATA_SPACE_VIEWER_ACTIVITY_MODE.TEST_COVERAGE,
|
|
270
|
-
title: 'Test Coverage',
|
|
271
|
-
icon: _jsx(ShieldIcon, {}),
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
mode: DATA_SPACE_VIEWER_ACTIVITY_MODE.INFO,
|
|
275
|
-
title: 'Info',
|
|
276
|
-
icon: _jsx(InfoCircleIcon, {}),
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
mode: DATA_SPACE_VIEWER_ACTIVITY_MODE.SUPPORT,
|
|
280
|
-
title: 'Support',
|
|
281
|
-
icon: _jsx(QuestionCircleIcon, {}),
|
|
282
|
-
},
|
|
283
|
-
];
|
|
284
|
-
const viewProject = () => dataSpaceViewerState.viewProject(dataSpaceViewerState.groupId, dataSpaceViewerState.artifactId, dataSpaceViewerState.versionId, analysisResult.path);
|
|
285
|
-
return (_jsxs("div", { className: "data-space__viewer", children: [_jsx("div", { className: "data-space__viewer__header", children: _jsx("div", { className: "data-space__viewer__title", children: _jsxs("button", { className: "data-space__viewer__title__btn", tabIndex: -1, title: `View Project (${generateGAVCoordinates(dataSpaceViewerState.groupId, dataSpaceViewerState.artifactId, dataSpaceViewerState.versionId)})`, onClick: viewProject, children: [_jsx("div", { className: "data-space__viewer__title__label", title: `${analysisResult.title ?? analysisResult.name} - ${analysisResult.path}`, children: analysisResult.title ?? analysisResult.name }), _jsx("div", { className: "data-space__viewer__title__link", children: _jsx(ExternalLinkSquareIcon, {}) })] }) }) }), _jsx("div", { className: "data-space__viewer__content", children: _jsxs("div", { className: "data-space__viewer__body", children: [_jsx("div", { className: "data-space__viewer__activity-bar", children: _jsx("div", { className: "data-space__viewer__activity-bar__items", children: activities.map((activity) => (_jsx("button", { className: clsx('data-space__viewer__activity-bar__item', {
|
|
286
|
-
'data-space__viewer__activity-bar__item--active': dataSpaceViewerState.currentActivity === activity.mode,
|
|
287
|
-
}), onClick: changeActivity(activity.mode), tabIndex: -1, title: activity.title, children: activity.icon }, activity.mode))) }) }), _jsxs("div", { className: "data-space__viewer__main-panel", children: [dataSpaceViewerState.currentActivity ===
|
|
288
|
-
DATA_SPACE_VIEWER_ACTIVITY_MODE.OVERVIEW && (_jsx(DataSpaceOverview, { dataSpaceViewerState: dataSpaceViewerState })), dataSpaceViewerState.currentActivity ===
|
|
289
|
-
DATA_SPACE_VIEWER_ACTIVITY_MODE.DOCUMENTATION && (_jsx(DataSpaceDocumentation, { dataSpaceViewerState: dataSpaceViewerState })), dataSpaceViewerState.currentActivity ===
|
|
290
|
-
DATA_SPACE_VIEWER_ACTIVITY_MODE.EXECUTION && (_jsx(DataSpaceExecutionViewer, { dataSpaceViewerState: dataSpaceViewerState })), dataSpaceViewerState.currentActivity ===
|
|
291
|
-
DATA_SPACE_VIEWER_ACTIVITY_MODE.USAGE_SHOWCASE && (_jsx(DataSpaceUsageShowcasesPanel, { dataSpaceViewerState: dataSpaceViewerState })), dataSpaceViewerState.currentActivity ===
|
|
292
|
-
DATA_SPACE_VIEWER_ACTIVITY_MODE.ENTITLEMENT &&
|
|
293
|
-
renderDataSpaceCheckEntitlementsEditor(dataSpaceViewerState, applicationStore.pluginManager
|
|
294
|
-
.getApplicationPlugins()
|
|
295
|
-
.filter((plugin) => plugin instanceof DSL_DataSpace_LegendApplicationPlugin)), dataSpaceViewerState.currentActivity ===
|
|
296
|
-
DATA_SPACE_VIEWER_ACTIVITY_MODE.TEST_DATA && (_jsx(BlankPanelContent, { children: "View test data (Work in Progress)" })), dataSpaceViewerState.currentActivity ===
|
|
297
|
-
DATA_SPACE_VIEWER_ACTIVITY_MODE.TEST_COVERAGE && (_jsx(BlankPanelContent, { children: "View test coverage (Work in Progress)" })), dataSpaceViewerState.currentActivity ===
|
|
298
|
-
DATA_SPACE_VIEWER_ACTIVITY_MODE.INFO && (_jsx(DataSpaceInfo, { dataSpaceViewerState: dataSpaceViewerState })), dataSpaceViewerState.currentActivity ===
|
|
299
|
-
DATA_SPACE_VIEWER_ACTIVITY_MODE.SUPPORT && (_jsx("div", { className: "data-space__viewer__main-panel__content data-space__viewer__support-info", children: _jsx(DataSpaceSupportInfoViewerInner, { dataSpaceViewerState: dataSpaceViewerState }) }))] })] }) })] }));
|
|
41
|
+
const bodyElement = useRef(null);
|
|
42
|
+
const [showFullHeader, setShowFullHeader] = useState(false);
|
|
43
|
+
const onScroll = (event) => {
|
|
44
|
+
setShowFullHeader(event.currentTarget.scrollTop > 0);
|
|
45
|
+
};
|
|
46
|
+
const isShowingWiki = [
|
|
47
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE.DESCRIPTION,
|
|
48
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE.DIAGRAM_VIEWER,
|
|
49
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE.MODELS_DOCUMENTATION,
|
|
50
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE.QUICK_START,
|
|
51
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_ACCESS,
|
|
52
|
+
].includes(dataSpaceViewerState.currentActivity);
|
|
53
|
+
return (_jsxs("div", { className: "data-space__viewer", children: [_jsx(DataSpaceViewerActivityBar, { dataSpaceViewerState: dataSpaceViewerState }), _jsxs("div", { ref: bodyElement, className: "data-space__viewer__body", onScroll: onScroll, children: [_jsx(DataSpaceHeader, { dataSpaceViewerState: dataSpaceViewerState, showFullHeader: showFullHeader }), _jsx("div", { className: clsx('data-space__viewer__frame', {
|
|
54
|
+
'data-space__viewer__frame--boundless': isShowingWiki,
|
|
55
|
+
'data-space__viewer__frame--expanded': dataSpaceViewerState.isExpandedModeEnabled,
|
|
56
|
+
}), children: _jsxs("div", { className: "data-space__viewer__content", children: [isShowingWiki && (_jsx(DataSpaceWiki, { dataSpaceViewerState: dataSpaceViewerState })), dataSpaceViewerState.currentActivity ===
|
|
57
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE.EXECUTION_CONTEXT && (_jsx(DataSpaceExecutionContextViewer, { dataSpaceViewerState: dataSpaceViewerState })), dataSpaceViewerState.currentActivity ===
|
|
58
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_STORES && (_jsx(DataSpacePlaceholderPanel, { message: "View all data stores (Work in Progress)" })), dataSpaceViewerState.currentActivity ===
|
|
59
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_AVAILABILITY && (_jsx(DataSpacePlaceholderPanel, { message: "View data availability (Work in Progress)" })), dataSpaceViewerState.currentActivity ===
|
|
60
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_COST && (_jsx(DataSpacePlaceholderPanel, { message: "View data cost (Work in Progress)" })), dataSpaceViewerState.currentActivity ===
|
|
61
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_GOVERNANCE && (_jsx(DataSpacePlaceholderPanel, { message: "View data ownership and governance (Work in Progress)" })), dataSpaceViewerState.currentActivity ===
|
|
62
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE.INFO && (_jsx(DataSpaceInfoPanel, { dataSpaceViewerState: dataSpaceViewerState })), dataSpaceViewerState.currentActivity ===
|
|
63
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE.SUPPORT && (_jsx(DataSpaceSupportPanel, { dataSpaceViewerState: dataSpaceViewerState }))] }) })] })] }));
|
|
300
64
|
});
|
|
301
65
|
//# sourceMappingURL=DataSpaceViewer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceViewer.js","sourceRoot":"","sources":["../../src/components/DataSpaceViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,EAAE,QAAQ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B,CAAC,eAAe;oCACnC,+BAA+B,CAAC,SAAS,IAAI,CAC7C,KAAC,wBAAwB,IACvB,oBAAoB,EAAE,oBAAoB,GAC1C,CACH,EACA,oBAAoB,CAAC,eAAe;oCACnC,+BAA+B,CAAC,cAAc,IAAI,CAClD,KAAC,4BAA4B,IAC3B,oBAAoB,EAAE,oBAAoB,GAC1C,CACH,EACA,oBAAoB,CAAC,eAAe;oCACnC,+BAA+B,CAAC,WAAW;oCAC3C,sCAAsC,CACpC,oBAAoB,EACpB,gBAAgB,CAAC,aAAa;yCAC3B,qBAAqB,EAAE;yCACvB,MAAM,CACL,CAAC,MAAM,EAAE,EAAE,CACT,MAAM,YAAY,qCAAqC,CACf,CAC/C,EACF,oBAAoB,CAAC,eAAe;oCACnC,+BAA+B,CAAC,SAAS,IAAI,CAC7C,KAAC,iBAAiB,oDAEE,CACrB,EACA,oBAAoB,CAAC,eAAe;oCACnC,+BAA+B,CAAC,aAAa,IAAI,CACjD,KAAC,iBAAiB,wDAEE,CACrB,EACA,oBAAoB,CAAC,eAAe;oCACnC,+BAA+B,CAAC,IAAI,IAAI,CACxC,KAAC,aAAa,IAAC,oBAAoB,EAAE,oBAAoB,GAAI,CAC9D,EACA,oBAAoB,CAAC,eAAe;oCACnC,+BAA+B,CAAC,OAAO,IAAI,CAC3C,cAAK,SAAS,EAAC,0EAA0E,YACvF,KAAC,+BAA+B,IAC9B,oBAAoB,EAAE,oBAAoB,GAC1C,GACE,CACP,IACG,IACF,GACF,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"DataSpaceViewer.js","sourceRoot":"","sources":["../../src/components/DataSpaceViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EA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,oBAAoB,GAAI,CAC9D,EACA,oBAAoB,CAAC,eAAe;oCACnC,+BAA+B,CAAC,iBAAiB,IAAI,CACrD,KAAC,+BAA+B,IAC9B,oBAAoB,EAAE,oBAAoB,GAC1C,CACH,EACA,oBAAoB,CAAC,eAAe;oCACnC,+BAA+B,CAAC,WAAW,IAAI,CAC/C,KAAC,yBAAyB,IAAC,OAAO,EAAC,yCAAyC,GAAG,CAChF,EACA,oBAAoB,CAAC,eAAe;oCACnC,+BAA+B,CAAC,iBAAiB,IAAI,CACrD,KAAC,yBAAyB,IAAC,OAAO,EAAC,2CAA2C,GAAG,CAClF,EACA,oBAAoB,CAAC,eAAe;oCACnC,+BAA+B,CAAC,SAAS,IAAI,CAC7C,KAAC,yBAAyB,IAAC,OAAO,EAAC,mCAAmC,GAAG,CAC1E,EACA,oBAAoB,CAAC,eAAe;oCACnC,+BAA+B,CAAC,eAAe,IAAI,CACnD,KAAC,yBAAyB,IAAC,OAAO,EAAC,uDAAuD,GAAG,CAC9F,EACA,oBAAoB,CAAC,eAAe;oCACnC,+BAA+B,CAAC,IAAI,IAAI,CACxC,KAAC,kBAAkB,IACjB,oBAAoB,EAAE,oBAAoB,GAC1C,CACH,EACA,oBAAoB,CAAC,eAAe;oCACnC,+BAA+B,CAAC,OAAO,IAAI,CAC3C,KAAC,qBAAqB,IACpB,oBAAoB,EAAE,oBAAoB,GAC1C,CACH,IACG,GACF,IACF,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 DataSpaceViewerActivityBar: ((props: {
|
|
19
|
+
dataSpaceViewerState: DataSpaceViewerState;
|
|
20
|
+
}) => JSX.Element) & {
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=DataSpaceViewerActivityBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceViewerActivityBar.d.ts","sourceRoot":"","sources":["../../src/components/DataSpaceViewerActivityBar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAsBH,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,mCAAmC,CAAC;AA8C3C,eAAO,MAAM,0BAA0B,WAC7B;IAAE,oBAAoB,EAAE,oBAAoB,CAAA;CAAE;;CAgIvD,CAAC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } 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 { ShapesIcon, PlayIcon, QuestionCircleIcon, clsx, InfoCircleIcon, DocumentationIcon, LaunchIcon, DataAccessIcon, GovernanceIcon, CostCircleIcon, DatasetIcon, AvailabilityIcon, HomeIcon, MenuContent, MenuContentItem, MenuIcon, DropdownMenu, } from '@finos/legend-art';
|
|
19
|
+
import { DATA_SPACE_VIEWER_ACTIVITY_MODE, } from '../stores/DataSpaceViewerState.js';
|
|
20
|
+
const ActivityBarMenu = observer((props) => {
|
|
21
|
+
const { dataSpaceViewerState } = props;
|
|
22
|
+
// actions
|
|
23
|
+
const toggleExpandedMode = () => dataSpaceViewerState.enableExpandedMode(!dataSpaceViewerState.isExpandedModeEnabled);
|
|
24
|
+
return (_jsx(_Fragment, { children: _jsx("div", { className: "data-space__viewer__activity-bar__menu", children: _jsx(DropdownMenu, { className: "data-space__viewer__activity-bar__menu-item", menuProps: {
|
|
25
|
+
anchorOrigin: { vertical: 'top', horizontal: 'right' },
|
|
26
|
+
transformOrigin: { vertical: 'top', horizontal: 'left' },
|
|
27
|
+
elevation: 7,
|
|
28
|
+
}, content: _jsx(MenuContent, { children: _jsxs(MenuContentItem, { onClick: toggleExpandedMode, children: [dataSpaceViewerState.isExpandedModeEnabled
|
|
29
|
+
? 'Disable Expanded Mode'
|
|
30
|
+
: 'Enable Expanded Mode', ' '] }) }), children: _jsx(MenuIcon, {}) }) }) }));
|
|
31
|
+
});
|
|
32
|
+
export const DataSpaceViewerActivityBar = observer((props) => {
|
|
33
|
+
const { dataSpaceViewerState } = props;
|
|
34
|
+
const changeActivity = (activity) => () => dataSpaceViewerState.setCurrentActivity(activity);
|
|
35
|
+
const wikiActivities = [
|
|
36
|
+
{
|
|
37
|
+
mode: DATA_SPACE_VIEWER_ACTIVITY_MODE.DESCRIPTION,
|
|
38
|
+
title: 'Description',
|
|
39
|
+
icon: (_jsx(HomeIcon, { className: "data-space__viewer__activity-bar__icon--home" })),
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
mode: DATA_SPACE_VIEWER_ACTIVITY_MODE.DIAGRAM_VIEWER,
|
|
43
|
+
title: 'Diagrams',
|
|
44
|
+
icon: _jsx(ShapesIcon, {}),
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
mode: DATA_SPACE_VIEWER_ACTIVITY_MODE.MODELS_DOCUMENTATION,
|
|
48
|
+
title: 'Models Documentation',
|
|
49
|
+
icon: _jsx(DocumentationIcon, {}),
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
mode: DATA_SPACE_VIEWER_ACTIVITY_MODE.QUICK_START,
|
|
53
|
+
title: 'Quick Start',
|
|
54
|
+
icon: (_jsx(LaunchIcon, { className: "data-space__viewer__activity-bar__icon--launch" })),
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
mode: DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_ACCESS,
|
|
58
|
+
title: 'Data Access',
|
|
59
|
+
icon: (_jsx(DataAccessIcon, { className: "data-space__viewer__activity-bar__icon--access" })),
|
|
60
|
+
},
|
|
61
|
+
];
|
|
62
|
+
const activities = [
|
|
63
|
+
{
|
|
64
|
+
mode: DATA_SPACE_VIEWER_ACTIVITY_MODE.EXECUTION_CONTEXT,
|
|
65
|
+
title: 'Execution Context',
|
|
66
|
+
icon: _jsx(PlayIcon, {}),
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
mode: DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_STORES,
|
|
70
|
+
title: 'Data Stores',
|
|
71
|
+
icon: (_jsx(DatasetIcon, { className: "data-space__viewer__activity-bar__icon--dataset" })),
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
mode: DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_AVAILABILITY,
|
|
75
|
+
title: 'Data Availability',
|
|
76
|
+
icon: (_jsx(AvailabilityIcon, { className: "data-space__viewer__activity-bar__icon--availability" })),
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
mode: DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_COST,
|
|
80
|
+
title: 'Data Cost',
|
|
81
|
+
icon: (_jsx(CostCircleIcon, { className: "data-space__viewer__activity-bar__icon--cost" })),
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
mode: DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_GOVERNANCE,
|
|
85
|
+
title: 'Governance',
|
|
86
|
+
icon: (_jsx(GovernanceIcon, { className: "data-space__viewer__activity-bar__icon--governance" })),
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
mode: DATA_SPACE_VIEWER_ACTIVITY_MODE.INFO,
|
|
90
|
+
title: 'Info',
|
|
91
|
+
icon: (_jsx(InfoCircleIcon, { className: "data-space__viewer__activity-bar__icon--info" })),
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
mode: DATA_SPACE_VIEWER_ACTIVITY_MODE.SUPPORT,
|
|
95
|
+
title: 'Support',
|
|
96
|
+
icon: (_jsx(QuestionCircleIcon, { className: "data-space__viewer__activity-bar__icon--support" })),
|
|
97
|
+
},
|
|
98
|
+
];
|
|
99
|
+
return (_jsxs("div", { className: "data-space__viewer__activity-bar", children: [_jsx(ActivityBarMenu, { dataSpaceViewerState: dataSpaceViewerState }), _jsxs("div", { className: "data-space__viewer__activity-bar__items", children: [wikiActivities.map((activity) => (_jsx("button", { className: clsx('data-space__viewer__activity-bar__item', {
|
|
100
|
+
'data-space__viewer__activity-bar__item--active': dataSpaceViewerState.currentActivity === activity.mode,
|
|
101
|
+
}), onClick: changeActivity(activity.mode), tabIndex: -1, title: activity.title, children: activity.icon }, activity.mode))), _jsx("div", { className: "data-space__viewer__activity-bar__divider" }), activities.map((activity) => (_jsx("button", { className: clsx('data-space__viewer__activity-bar__item', {
|
|
102
|
+
'data-space__viewer__activity-bar__item--active': dataSpaceViewerState.currentActivity === activity.mode,
|
|
103
|
+
}), onClick: changeActivity(activity.mode), tabIndex: -1, title: activity.title, children: activity.icon }, activity.mode)))] })] }));
|
|
104
|
+
});
|
|
105
|
+
//# sourceMappingURL=DataSpaceViewerActivityBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceViewerActivityBar.js","sourceRoot":"","sources":["../../src/components/DataSpaceViewerActivityBar.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,UAAU,EACV,QAAQ,EACR,kBAAkB,EAClB,IAAI,EACJ,cAAc,EACd,iBAAiB,EACjB,UAAU,EACV,cAAc,EACd,cAAc,EACd,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,QAAQ,EACR,WAAW,EACX,eAAe,EACf,QAAQ,EACR,YAAY,GACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,+BAA+B,GAChC,MAAM,mCAAmC,CAAC;AAE3C,MAAM,eAAe,GAAG,QAAQ,CAC9B,CAAC,KAAqD,EAAE,EAAE;IACxD,MAAM,EAAE,oBAAoB,EAAE,GAAG,KAAK,CAAC;IAEvC,UAAU;IACV,MAAM,kBAAkB,GAAG,GAAS,EAAE,CACpC,oBAAoB,CAAC,kBAAkB,CACrC,CAAC,oBAAoB,CAAC,qBAAqB,CAC5C,CAAC;IAEJ,OAAO,CACL,4BACE,cAAK,SAAS,EAAC,wCAAwC,YACrD,KAAC,YAAY,IACX,SAAS,EAAC,6CAA6C,EACvD,SAAS,EAAE;oBACT,YAAY,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE;oBACtD,eAAe,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE;oBACxD,SAAS,EAAE,CAAC;iBACb,EAC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AE,IAAI,CAAC,wCAAwC,EAAE;4BACxD,gDAAgD,EAC9C,oBAAoB,CAAC,eAAe,KAAK,QAAQ,CAAC,IAAI;yBACzD,CAAC,EACF,OAAO,EAAE,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,EACtC,QAAQ,EAAE,CAAC,CAAC,EACZ,KAAK,EAAE,QAAQ,CAAC,KAAK,YAEpB,QAAQ,CAAC,IAAI,IATT,QAAQ,CAAC,IAAI,CAUX,CACV,CAAC,EACF,cAAK,SAAS,EAAC,2CAA2C,GAAG,EAC5D,UAAU,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAC5B,iBAEE,SAAS,EAAE,IAAI,CAAC,wCAAwC,EAAE;4BACxD,gDAAgD,EAC9C,oBAAoB,CAAC,eAAe,KAAK,QAAQ,CAAC,IAAI;yBACzD,CAAC,EACF,OAAO,EAAE,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,EACtC,QAAQ,EAAE,CAAC,CAAC,EACZ,KAAK,EAAE,QAAQ,CAAC,KAAK,YAEpB,QAAQ,CAAC,IAAI,IATT,QAAQ,CAAC,IAAI,CAUX,CACV,CAAC,IACE,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 DataSpaceWiki: ((props: {
|
|
19
|
+
dataSpaceViewerState: DataSpaceViewerState;
|
|
20
|
+
}) => JSX.Element) & {
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=DataSpaceWiki.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceWiki.d.ts","sourceRoot":"","sources":["../../src/components/DataSpaceWiki.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAQ9E,eAAO,MAAM,aAAa,WAChB;IAAE,oBAAoB,EAAE,oBAAoB,CAAA;CAAE;;CAevD,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { observer } from 'mobx-react-lite';
|
|
3
|
+
import { DataSpaceDiagramViewer } from './DataSpaceDiagramViewer.js';
|
|
4
|
+
import { DataSpaceModelsDocumentation } from './DataSpaceModelsDocumentation.js';
|
|
5
|
+
import { DataSpaceQuickStart } from './DataSpaceQuickStart.js';
|
|
6
|
+
import { DataSpaceDataAccess } from './DataSpaceDataAccess.js';
|
|
7
|
+
import { DataSpaceDescription } from './DataSpaceDescription.js';
|
|
8
|
+
export const DataSpaceWiki = observer((props) => {
|
|
9
|
+
const { dataSpaceViewerState } = props;
|
|
10
|
+
return (_jsxs("div", { className: "data-space__viewer__wiki", children: [_jsx(DataSpaceDescription, { dataSpaceViewerState: dataSpaceViewerState }), _jsx(DataSpaceDiagramViewer, { dataSpaceViewerState: dataSpaceViewerState }), _jsx(DataSpaceModelsDocumentation, { dataSpaceViewerState: dataSpaceViewerState }), _jsx(DataSpaceQuickStart, { dataSpaceViewerState: dataSpaceViewerState }), _jsx(DataSpaceDataAccess, { dataSpaceViewerState: dataSpaceViewerState })] }));
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=DataSpaceWiki.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceWiki.js","sourceRoot":"","sources":["../../src/components/DataSpaceWiki.tsx"],"names":[],"mappings":";AAiBA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,MAAM,CAAC,MAAM,aAAa,GAAG,QAAQ,CACnC,CAAC,KAAqD,EAAE,EAAE;IACxD,MAAM,EAAE,oBAAoB,EAAE,GAAG,KAAK,CAAC;IAEvC,OAAO,CACL,eAAK,SAAS,EAAC,0BAA0B,aACvC,KAAC,oBAAoB,IAAC,oBAAoB,EAAE,oBAAoB,GAAI,EACpE,KAAC,sBAAsB,IAAC,oBAAoB,EAAE,oBAAoB,GAAI,EACtE,KAAC,4BAA4B,IAC3B,oBAAoB,EAAE,oBAAoB,GAC1C,EACF,KAAC,mBAAmB,IAAC,oBAAoB,EAAE,oBAAoB,GAAI,EACnE,KAAC,mBAAmB,IAAC,oBAAoB,EAAE,oBAAoB,GAAI,IAC/D,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|