@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
|
@@ -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"}
|
|
@@ -13,14 +13,10 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
/// <reference types="react" resolution-mode="require"/>
|
|
17
16
|
import { LegendApplicationPlugin, type LegendApplicationPluginManager } from '@finos/legend-application';
|
|
18
|
-
import type { DataSpaceViewerState } from '../stores/DataSpaceViewerState.js';
|
|
19
|
-
export type CheckEntitlementEditorRender = (dataSpaceViewerState: DataSpaceViewerState) => React.ReactNode | undefined;
|
|
20
17
|
export declare class DSL_DataSpace_LegendApplicationPlugin extends LegendApplicationPlugin {
|
|
21
18
|
static NAME: string;
|
|
22
19
|
constructor();
|
|
23
20
|
install(pluginManager: LegendApplicationPluginManager<LegendApplicationPlugin>): void;
|
|
24
|
-
getCheckEntitlementsEditorRender(): CheckEntitlementEditorRender | undefined;
|
|
25
21
|
}
|
|
26
22
|
//# sourceMappingURL=DSL_DataSpace_LegendApplicationPlugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSL_DataSpace_LegendApplicationPlugin.d.ts","sourceRoot":"","sources":["../../src/components/DSL_DataSpace_LegendApplicationPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG
|
|
1
|
+
{"version":3,"file":"DSL_DataSpace_LegendApplicationPlugin.d.ts","sourceRoot":"","sources":["../../src/components/DSL_DataSpace_LegendApplicationPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,uBAAuB,EACvB,KAAK,8BAA8B,EACpC,MAAM,2BAA2B,CAAC;AAGnC,qBAAa,qCAAsC,SAAQ,uBAAuB;IAChF,MAAM,CAAC,IAAI,SAA4C;;IAMvD,OAAO,CACL,aAAa,EAAE,8BAA8B,CAAC,uBAAuB,CAAC,GACrE,IAAI;CAGR"}
|
|
@@ -23,9 +23,6 @@ class DSL_DataSpace_LegendApplicationPlugin extends LegendApplicationPlugin {
|
|
|
23
23
|
install(pluginManager) {
|
|
24
24
|
pluginManager.registerApplicationPlugin(this);
|
|
25
25
|
}
|
|
26
|
-
getCheckEntitlementsEditorRender() {
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
26
|
}
|
|
30
27
|
export { DSL_DataSpace_LegendApplicationPlugin };
|
|
31
28
|
//# sourceMappingURL=DSL_DataSpace_LegendApplicationPlugin.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSL_DataSpace_LegendApplicationPlugin.js","sourceRoot":"","sources":["../../src/components/DSL_DataSpace_LegendApplicationPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,uBAAuB,GAExB,MAAM,2BAA2B,CAAC;AACnC,OAAO,WAAW,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"DSL_DataSpace_LegendApplicationPlugin.js","sourceRoot":"","sources":["../../src/components/DSL_DataSpace_LegendApplicationPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,uBAAuB,GAExB,MAAM,2BAA2B,CAAC;AACnC,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAE7C,MAAa,qCAAsC,SAAQ,uBAAuB;IAChF,MAAM,CAAC,IAAI,GAAG,WAAW,CAAC,UAAU,CAAC,iBAAiB,CAAC;IAEvD;QACE,KAAK,CAAC,qCAAqC,CAAC,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACzE,CAAC;IAED,OAAO,CACL,aAAsE;QAEtE,aAAa,CAAC,yBAAyB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;;SAXU,qCAAqC"}
|
|
@@ -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 DataSpaceDataAccess: ((props: {
|
|
19
|
+
dataSpaceViewerState: DataSpaceViewerState;
|
|
20
|
+
}) => JSX.Element) & {
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=DataSpaceDataAccess.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceDataAccess.d.ts","sourceRoot":"","sources":["../../src/components/DataSpaceDataAccess.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAIH,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAI9E,eAAO,MAAM,mBAAmB,WACtB;IAAE,oBAAoB,EAAE,oBAAoB,CAAA;CAAE;;CA0CvD,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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 { AnchorLinkIcon, QuestionCircleIcon } from '@finos/legend-art';
|
|
19
|
+
import {} from '../stores/DataSpaceViewerState.js';
|
|
20
|
+
import { useApplicationStore } from '@finos/legend-application';
|
|
21
|
+
import { DataSpaceWikiPlaceholder } from './DataSpacePlaceholder.js';
|
|
22
|
+
export const DataSpaceDataAccess = observer((props) => {
|
|
23
|
+
const { dataSpaceViewerState } = props;
|
|
24
|
+
const applicationStore = useApplicationStore();
|
|
25
|
+
const analysisResult = dataSpaceViewerState.dataSpaceAnalysisResult;
|
|
26
|
+
const documentationUrl = analysisResult.supportInfo?.documentationUrl;
|
|
27
|
+
const seeDocumentation = () => {
|
|
28
|
+
if (documentationUrl) {
|
|
29
|
+
applicationStore.navigationService.navigator.visitAddress(documentationUrl);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
return (_jsxs("div", { className: "data-space__viewer__wiki__section", children: [_jsxs("div", { className: "data-space__viewer__wiki__section__header", children: [_jsxs("div", { className: "data-space__viewer__wiki__section__header__label", children: ["Data Access", _jsx("div", { className: "data-space__viewer__wiki__section__header__anchor", children: _jsx(AnchorLinkIcon, {}) })] }), Boolean(documentationUrl) && (_jsx("button", { className: "data-space__viewer__wiki__section__header__documentation", tabIndex: -1, onClick: seeDocumentation, title: "See Documentation", children: _jsx(QuestionCircleIcon, {}) }))] }), _jsx("div", { className: "data-space__viewer__wiki__section__content", children: _jsx("div", { className: "data-space__viewer__data-access", children: _jsx(DataSpaceWikiPlaceholder, { message: "View Data Access (Work in Progress)" }) }) })] }));
|
|
33
|
+
});
|
|
34
|
+
//# sourceMappingURL=DataSpaceDataAccess.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceDataAccess.js","sourceRoot":"","sources":["../../src/components/DataSpaceDataAccess.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAA6B,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAErE,MAAM,CAAC,MAAM,mBAAmB,GAAG,QAAQ,CACzC,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;IACpE,MAAM,gBAAgB,GAAG,cAAc,CAAC,WAAW,EAAE,gBAAgB,CAAC;IAEtE,MAAM,gBAAgB,GAAG,GAAS,EAAE;QAClC,IAAI,gBAAgB,EAAE;YACpB,gBAAgB,CAAC,iBAAiB,CAAC,SAAS,CAAC,YAAY,CACvD,gBAAgB,CACjB,CAAC;SACH;IACH,CAAC,CAAC;IAEF,OAAO,CACL,eAAK,SAAS,EAAC,mCAAmC,aAChD,eAAK,SAAS,EAAC,2CAA2C,aACxD,eAAK,SAAS,EAAC,kDAAkD,4BAE/D,cAAK,SAAS,EAAC,mDAAmD,YAChE,KAAC,cAAc,KAAG,GACd,IACF,EACL,OAAO,CAAC,gBAAgB,CAAC,IAAI,CAC5B,iBACE,SAAS,EAAC,0DAA0D,EACpE,QAAQ,EAAE,CAAC,CAAC,EACZ,OAAO,EAAE,gBAAgB,EACzB,KAAK,EAAC,mBAAmB,YAEzB,KAAC,kBAAkB,KAAG,GACf,CACV,IACG,EACN,cAAK,SAAS,EAAC,4CAA4C,YACzD,cAAK,SAAS,EAAC,iCAAiC,YAC9C,KAAC,wBAAwB,IAAC,OAAO,EAAC,qCAAqC,GAAG,GACtE,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 DataSpaceDescription: ((props: {
|
|
19
|
+
dataSpaceViewerState: DataSpaceViewerState;
|
|
20
|
+
}) => JSX.Element) & {
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=DataSpaceDescription.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceDescription.d.ts","sourceRoot":"","sources":["../../src/components/DataSpaceDescription.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAGH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAK9E,eAAO,MAAM,oBAAoB,WACvB;IAAE,oBAAoB,EAAE,oBAAoB,CAAA;CAAE;;CA+BvD,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 { AnchorLinkIcon } from '@finos/legend-art';
|
|
18
|
+
import { observer } from 'mobx-react-lite';
|
|
19
|
+
import { DataSpaceWikiPlaceholder } from './DataSpacePlaceholder.js';
|
|
20
|
+
import { DataSpaceMarkdownTextViewer } from './DataSpaceMarkdownTextViewer.js';
|
|
21
|
+
export const DataSpaceDescription = observer((props) => {
|
|
22
|
+
const { dataSpaceViewerState } = props;
|
|
23
|
+
const analysisResult = dataSpaceViewerState.dataSpaceAnalysisResult;
|
|
24
|
+
return (_jsxs("div", { className: "data-space__viewer__wiki__section", children: [_jsx("div", { className: "data-space__viewer__wiki__section__header", children: _jsxs("div", { className: "data-space__viewer__wiki__section__header__label", children: ["Description", _jsx("div", { className: "data-space__viewer__wiki__section__header__anchor", children: _jsx(AnchorLinkIcon, {}) })] }) }), _jsxs("div", { className: "data-space__viewer__wiki__section__content", children: [analysisResult.description !== undefined && (_jsx("div", { className: "data-space__viewer__description", children: _jsx("div", { className: "data-space__viewer__description__content", children: _jsx(DataSpaceMarkdownTextViewer, { value: analysisResult.description }) }) })), analysisResult.description === undefined && (_jsx(DataSpaceWikiPlaceholder, { message: "No description provided" }))] })] }));
|
|
25
|
+
});
|
|
26
|
+
//# sourceMappingURL=DataSpaceDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceDescription.js","sourceRoot":"","sources":["../../src/components/DataSpaceDescription.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAE/E,MAAM,CAAC,MAAM,oBAAoB,GAAG,QAAQ,CAC1C,CAAC,KAAqD,EAAE,EAAE;IACxD,MAAM,EAAE,oBAAoB,EAAE,GAAG,KAAK,CAAC;IACvC,MAAM,cAAc,GAAG,oBAAoB,CAAC,uBAAuB,CAAC;IAEpE,OAAO,CACL,eAAK,SAAS,EAAC,mCAAmC,aAChD,cAAK,SAAS,EAAC,2CAA2C,YACxD,eAAK,SAAS,EAAC,kDAAkD,4BAE/D,cAAK,SAAS,EAAC,mDAAmD,YAChE,KAAC,cAAc,KAAG,GACd,IACF,GACF,EACN,eAAK,SAAS,EAAC,4CAA4C,aACxD,cAAc,CAAC,WAAW,KAAK,SAAS,IAAI,CAC3C,cAAK,SAAS,EAAC,iCAAiC,YAC9C,cAAK,SAAS,EAAC,0CAA0C,YACvD,KAAC,2BAA2B,IAC1B,KAAK,EAAE,cAAc,CAAC,WAAW,GACjC,GACE,GACF,CACP,EACA,cAAc,CAAC,WAAW,KAAK,SAAS,IAAI,CAC3C,KAAC,wBAAwB,IAAC,OAAO,EAAC,yBAAyB,GAAG,CAC/D,IACG,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 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;AAyD9E,eAAO,MAAM,sBAAsB,WACzB;IAAE,oBAAoB,EAAE,oBAAoB,CAAA;CAAE;;CAoHvD,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
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 { AnchorLinkIcon, 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
|
+
import { DataSpaceWikiPlaceholder } from './DataSpacePlaceholder.js';
|
|
23
|
+
const DataSpaceDiagramCanvas = observer(forwardRef(function DataSpaceDiagramCanvas(props, ref) {
|
|
24
|
+
const { dataSpaceViewerState, diagram } = props;
|
|
25
|
+
const diagramCanvasRef = ref;
|
|
26
|
+
const { width, height } = useResizeDetector({
|
|
27
|
+
refreshMode: 'debounce',
|
|
28
|
+
refreshRate: 50,
|
|
29
|
+
targetRef: diagramCanvasRef,
|
|
30
|
+
});
|
|
31
|
+
useEffect(() => {
|
|
32
|
+
const renderer = new DiagramRenderer(diagramCanvasRef.current, diagram);
|
|
33
|
+
dataSpaceViewerState.setRenderer(renderer);
|
|
34
|
+
dataSpaceViewerState.setupRenderer();
|
|
35
|
+
renderer.render({ initial: true });
|
|
36
|
+
}, [diagramCanvasRef, dataSpaceViewerState, diagram]);
|
|
37
|
+
useEffect(() => {
|
|
38
|
+
if (dataSpaceViewerState.isDiagramRendererInitialized) {
|
|
39
|
+
dataSpaceViewerState.renderer.refresh();
|
|
40
|
+
}
|
|
41
|
+
}, [dataSpaceViewerState, width, height]);
|
|
42
|
+
return (_jsx("div", { ref: diagramCanvasRef, className: clsx('diagram-canvas ', dataSpaceViewerState.diagramCursorClass), tabIndex: 0 }));
|
|
43
|
+
}));
|
|
44
|
+
export const DataSpaceDiagramViewer = observer((props) => {
|
|
45
|
+
const { dataSpaceViewerState } = props;
|
|
46
|
+
const analysisResult = dataSpaceViewerState.dataSpaceAnalysisResult;
|
|
47
|
+
// diagram selector
|
|
48
|
+
const diagramCanvasRef = useRef(null);
|
|
49
|
+
const showPreviousDiagram = () => {
|
|
50
|
+
if (!dataSpaceViewerState.currentDiagram) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
const idx = analysisResult.diagrams.indexOf(dataSpaceViewerState.currentDiagram);
|
|
54
|
+
if (idx === 0 || idx === -1) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
dataSpaceViewerState.setCurrentDiagram(guaranteeNonNullable(analysisResult.diagrams[idx - 1]));
|
|
58
|
+
};
|
|
59
|
+
const showNextDiagram = () => {
|
|
60
|
+
if (!dataSpaceViewerState.currentDiagram) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
const idx = analysisResult.diagrams.indexOf(dataSpaceViewerState.currentDiagram);
|
|
64
|
+
if (idx === analysisResult.diagrams.length - 1 || idx === -1) {
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
dataSpaceViewerState.setCurrentDiagram(guaranteeNonNullable(analysisResult.diagrams[idx + 1]));
|
|
68
|
+
};
|
|
69
|
+
return (_jsxs("div", { className: "data-space__viewer__wiki__section", children: [_jsx("div", { className: "data-space__viewer__wiki__section__header", children: _jsxs("div", { className: "data-space__viewer__wiki__section__header__label", children: ["Diagrams", _jsx("div", { className: "data-space__viewer__wiki__section__header__anchor", children: _jsx(AnchorLinkIcon, {}) })] }) }), _jsxs("div", { className: "data-space__viewer__wiki__section__content", children: [analysisResult.diagrams.length > 0 && (_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) ===
|
|
70
|
+
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) ===
|
|
71
|
+
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', {
|
|
72
|
+
'data-space__viewer__diagram-viewer__carousel__frame__indicator--active': dataSpaceViewerState.currentDiagram === diagram,
|
|
73
|
+
}), onClick: () => dataSpaceViewerState.setCurrentDiagram(diagram), children: _jsx(CircleIcon, {}) }, diagram.diagram.path))) }) })] }) }) })), analysisResult.diagrams.length <= 0 && (_jsx(DataSpaceWikiPlaceholder, { message: "No diagrams provided" }))] })] }));
|
|
74
|
+
});
|
|
75
|
+
//# sourceMappingURL=DataSpaceDiagramViewer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceDiagramViewer.js","sourceRoot":"","sources":["../../src/components/DataSpaceDiagramViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,cAAc,EACd,UAAU,EACV,mBAAmB,EACnB,oBAAoB,EACpB,IAAI,EACJ,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,EACL,eAAe,GAEhB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAErE,MAAM,sBAAsB,GAAG,QAAQ,CACrC,UAAU,CAMR,SAAS,sBAAsB,CAAC,KAAK,EAAE,GAAG;IAC1C,MAAM,EAAE,oBAAoB,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAChD,MAAM,gBAAgB,GAAG,GAA6C,CAAC;IAEvE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,iBAAi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
|
+
* 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;;AAUH,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAwB9E,eAAO,MAAM,+BAA+B,WAClC;IAAE,oBAAoB,EAAE,oBAAoB,CAAA;CAAE;;CAqHvD,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 { CustomSelectorInput, PURE_MappingIcon, PURE_RuntimeIcon, PlayIcon, } from '@finos/legend-art';
|
|
19
|
+
import {} from '@finos/legend-graph';
|
|
20
|
+
import {} from '../stores/DataSpaceViewerState.js';
|
|
21
|
+
import { useApplicationStore } from '@finos/legend-application';
|
|
22
|
+
const buildExecutionContextOption = (value) => ({
|
|
23
|
+
label: value.name,
|
|
24
|
+
value: value,
|
|
25
|
+
});
|
|
26
|
+
const buildRuntimeOption = (value) => ({
|
|
27
|
+
label: value.name,
|
|
28
|
+
value: value,
|
|
29
|
+
});
|
|
30
|
+
export const DataSpaceExecutionContextViewer = observer((props) => {
|
|
31
|
+
const { dataSpaceViewerState } = props;
|
|
32
|
+
const applicationStore = useApplicationStore();
|
|
33
|
+
const analysisResult = dataSpaceViewerState.dataSpaceAnalysisResult;
|
|
34
|
+
const executionContexts = Array.from(dataSpaceViewerState.dataSpaceAnalysisResult.executionContextsIndex.values());
|
|
35
|
+
// execution
|
|
36
|
+
const executionContextOptions = executionContexts.map(buildExecutionContextOption);
|
|
37
|
+
const selectedExecutionContextOption = buildExecutionContextOption(dataSpaceViewerState.currentExecutionContext);
|
|
38
|
+
const onExecutionContextOptionChange = (option) => {
|
|
39
|
+
if (option.value !== dataSpaceViewerState.currentExecutionContext) {
|
|
40
|
+
dataSpaceViewerState.setCurrentExecutionContext(option.value);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
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" }))] }));
|
|
44
|
+
// runtime
|
|
45
|
+
const runtimeOptions = dataSpaceViewerState.currentExecutionContext.compatibleRuntimes.map(buildRuntimeOption);
|
|
46
|
+
const selectedRuntimeOption = buildRuntimeOption(dataSpaceViewerState.currentRuntime);
|
|
47
|
+
const onRuntimeOptionChange = (option) => {
|
|
48
|
+
if (option.value !== dataSpaceViewerState.currentRuntime) {
|
|
49
|
+
dataSpaceViewerState.setCurrentRuntime(option.value);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
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 ===
|
|
53
|
+
dataSpaceViewerState.currentExecutionContext.defaultRuntime && (_jsx("div", { className: "data-space__viewer__execution-context__entry__content__dropdown__option__tag", children: "default" }))] }));
|
|
54
|
+
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(PlayIcon, { 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: !applicationStore.layoutService
|
|
55
|
+
.TEMPORARY__isLightColorThemeEnabled, formatOptionLabel: formatExecutionContextOptionLabel }) })] }), _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: !applicationStore.layoutService
|
|
56
|
+
.TEMPORARY__isLightColorThemeEnabled, 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,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,QAAQ,GACT,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAA2B,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAA6B,MAAM,mCAAmC,CAAC;AAE9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAMhE,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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,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,EACN,CAAC,gBAAgB,CAAC,aAAa;qCAC5B,mCAAmC,EAExC,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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EzD,CACP,IACG,EACN,eAAK,SAAS,EAAC,mCAAmC,aAChD,cAAK,SAAS,EAAC,0CAA0C,4BAEnD,EACL,cAAc,CAAC,WAAW,CAAC,MAAM,KAAK,CAAC;4BACtC,cAAc,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,CAC7C,cAEE,SAAS,EAAC,0CAA0C,EACpD,KAAK,EAAE,GAAG,UAAU,CAAC,OAAO,IAAI,UAAU,CAAC,KAAK,EAAE,YAElD,cAAK,SAAS,EAAC,uCAAuC,YACnD,GAAG,0BAA0B,CAAC,UAAU,CAAC,OAAO,CAAC,IAChD,UAAU,CAAC,KACb,EAAE,GACE,IARD,UAAU,CAAC,KAAK,CASjB,CACP,CAAC,EACH,cAAc,CAAC,WAAW,CAAC,MAAM,KAAK,CAAC,IAAI,CAC1C,cAAK,SAAS,EAAC,gDAAgD,wBAEzD,CACP,IACG,IACF,GACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
export declare const DataSpaceMarkdownTextViewer: React.FC<{
|
|
18
|
+
value: string;
|
|
19
|
+
}>;
|
|
20
|
+
//# sourceMappingURL=DataSpaceMarkdownTextViewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceMarkdownTextViewer.d.ts","sourceRoot":"","sources":["../../src/components/DataSpaceMarkdownTextViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAIH,eAAO,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAcnE,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as _jsx } 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 { MarkdownTextViewer } from '@finos/legend-art';
|
|
18
|
+
export const DataSpaceMarkdownTextViewer = (props) => (_jsx(MarkdownTextViewer, { className: "data-space__viewer__markdown-text-viewer", value: {
|
|
19
|
+
value: props.value,
|
|
20
|
+
}, components: {
|
|
21
|
+
h1: 'h2',
|
|
22
|
+
h2: 'h3',
|
|
23
|
+
h3: 'h4',
|
|
24
|
+
} }));
|
|
25
|
+
//# sourceMappingURL=DataSpaceMarkdownTextViewer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceMarkdownTextViewer.js","sourceRoot":"","sources":["../../src/components/DataSpaceMarkdownTextViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD,MAAM,CAAC,MAAM,2BAA2B,GAAgC,CACtE,KAAK,EACL,EAAE,CAAC,CACH,KAAC,kBAAkB,IACjB,SAAS,EAAC,0CAA0C,EACpD,KAAK,EAAE;QACL,KAAK,EAAE,KAAK,CAAC,KAAK;KACnB,EACD,UAAU,EAAE;QACV,EAAE,EAAE,IAAI;QACR,EAAE,EAAE,IAAI;QACR,EAAE,EAAE,IAAI;KACT,GACD,CACH,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;AAK9E,eAAO,MAAM,4BAA4B,WAC/B;IAAE,oBAAoB,EAAE,oBAAoB,CAAA;CAAE;;CA0EvD,CAAC"}
|