@finos/legend-extension-dsl-data-space 9.0.48 → 9.1.1
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/DSL_DataSpace_Const.d.ts +1 -0
- package/lib/DSL_DataSpace_Const.d.ts.map +1 -1
- package/lib/DSL_DataSpace_Const.js +2 -1
- package/lib/DSL_DataSpace_Const.js.map +1 -1
- package/lib/{stores/query/DSL_DataSpace_LegendQueryRouter.d.ts → application/query/DSL_DataSpace_LegendQueryNavigation.d.ts} +12 -11
- package/lib/application/query/DSL_DataSpace_LegendQueryNavigation.d.ts.map +1 -0
- package/lib/{stores/query/DSL_DataSpace_LegendQueryRouter.js → application/query/DSL_DataSpace_LegendQueryNavigation.js} +13 -12
- package/lib/application/query/DSL_DataSpace_LegendQueryNavigation.js.map +1 -0
- package/lib/{components/studio/DSL_DataSpace_CodeSnippets.d.ts → application/studio/DSL_DataSpace_LegendStudioCodeSnippet.d.ts} +2 -2
- package/lib/application/studio/DSL_DataSpace_LegendStudioCodeSnippet.d.ts.map +1 -0
- package/lib/{components/studio/DSL_DataSpace_CodeSnippets.js → application/studio/DSL_DataSpace_LegendStudioCodeSnippet.js} +5 -1
- package/lib/application/studio/DSL_DataSpace_LegendStudioCodeSnippet.js.map +1 -0
- package/lib/application/studio/DSL_DataSpace_LegendStudioDocumentation.d.ts.map +1 -0
- package/lib/application/studio/DSL_DataSpace_LegendStudioDocumentation.js.map +1 -0
- package/lib/application/studio/DSL_DataSpace_LegendStudioNavigation.d.ts +28 -0
- package/lib/application/studio/DSL_DataSpace_LegendStudioNavigation.d.ts.map +1 -0
- package/lib/application/studio/DSL_DataSpace_LegendStudioNavigation.js +30 -0
- package/lib/application/studio/DSL_DataSpace_LegendStudioNavigation.js.map +1 -0
- package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js +2 -1
- package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js.map +1 -1
- package/lib/components/DataSpaceViewer.d.ts.map +1 -1
- package/lib/components/DataSpaceViewer.js +126 -34
- package/lib/components/DataSpaceViewer.js.map +1 -1
- package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.d.ts.map +1 -1
- package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.js +3 -3
- package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.js.map +1 -1
- package/lib/components/query/DataSpaceQueryBuilder.d.ts.map +1 -1
- package/lib/components/query/DataSpaceQueryBuilder.js +6 -4
- package/lib/components/query/DataSpaceQueryBuilder.js.map +1 -1
- package/lib/components/query/DataSpaceQueryCreator.d.ts.map +1 -1
- package/lib/components/query/DataSpaceQueryCreator.js +8 -9
- package/lib/components/query/DataSpaceQueryCreator.js.map +1 -1
- package/lib/components/query/DataSpaceQuerySetup.d.ts.map +1 -1
- package/lib/components/query/DataSpaceQuerySetup.js +2 -1
- package/lib/components/query/DataSpaceQuerySetup.js.map +1 -1
- package/lib/components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.d.ts +5 -1
- package/lib/components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.d.ts.map +1 -1
- package/lib/components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.js +41 -2
- package/lib/components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.js.map +1 -1
- package/lib/components/studio/DataSpacePreview.d.ts +20 -0
- package/lib/components/studio/DataSpacePreview.d.ts.map +1 -0
- package/lib/components/studio/DataSpacePreview.js +52 -0
- package/lib/components/studio/DataSpacePreview.js.map +1 -0
- package/lib/components/studio/DataSpacePreviewAction.d.ts +26 -0
- package/lib/components/studio/DataSpacePreviewAction.d.ts.map +1 -0
- package/lib/components/studio/DataSpacePreviewAction.js +46 -0
- package/lib/components/studio/DataSpacePreviewAction.js.map +1 -0
- package/lib/graph/DSL_DataSpace_HashUtils.d.ts +2 -0
- package/lib/graph/DSL_DataSpace_HashUtils.d.ts.map +1 -1
- package/lib/graph/DSL_DataSpace_HashUtils.js +2 -0
- package/lib/graph/DSL_DataSpace_HashUtils.js.map +1 -1
- package/lib/graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.d.ts +5 -3
- 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 +6 -4
- package/lib/graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js.map +1 -1
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.d.ts +10 -0
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.d.ts.map +1 -1
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.js +18 -0
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.js.map +1 -1
- package/lib/graphManager/action/analytics/HACKY__DataSpaceUsageShowcase.d.ts +57 -0
- package/lib/graphManager/action/analytics/HACKY__DataSpaceUsageShowcase.d.ts.map +1 -0
- package/lib/graphManager/action/analytics/HACKY__DataSpaceUsageShowcase.js +209 -0
- package/lib/graphManager/action/analytics/HACKY__DataSpaceUsageShowcase.js.map +1 -0
- package/lib/graphManager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.js +13 -1
- 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 +28 -4
- package/lib/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.d.ts +24 -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 +79 -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 +3 -2
- 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 +6 -4
- 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.map +1 -1
- package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataSpace_ProtocolHelper.js +7 -17
- package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataSpace_ProtocolHelper.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +4 -4
- package/lib/stores/DataSpaceViewerState.d.ts +13 -8
- package/lib/stores/DataSpaceViewerState.d.ts.map +1 -1
- package/lib/stores/DataSpaceViewerState.js +11 -6
- package/lib/stores/DataSpaceViewerState.js.map +1 -1
- package/lib/stores/query/DataSpaceAdvancedSearchState.js +1 -1
- package/lib/stores/query/DataSpaceAdvancedSearchState.js.map +1 -1
- package/lib/stores/query/DataSpaceQueryCreatorStore.d.ts +1 -0
- package/lib/stores/query/DataSpaceQueryCreatorStore.d.ts.map +1 -1
- package/lib/stores/query/DataSpaceQueryCreatorStore.js +10 -2
- package/lib/stores/query/DataSpaceQueryCreatorStore.js.map +1 -1
- package/lib/stores/query/DataSpaceQuerySetupStore.js +1 -1
- package/lib/stores/query/DataSpaceQuerySetupStore.js.map +1 -1
- package/lib/stores/studio/DataSpacePreviewState.d.ts +30 -0
- package/lib/stores/studio/DataSpacePreviewState.d.ts.map +1 -0
- package/lib/stores/studio/DataSpacePreviewState.js +85 -0
- package/lib/stores/studio/DataSpacePreviewState.js.map +1 -0
- package/lib/stores/studio/DataSpacePreviewStore.d.ts +34 -0
- package/lib/stores/studio/DataSpacePreviewStore.d.ts.map +1 -0
- package/lib/stores/studio/DataSpacePreviewStore.js +98 -0
- package/lib/stores/studio/DataSpacePreviewStore.js.map +1 -0
- package/package.json +15 -15
- package/src/DSL_DataSpace_Const.ts +2 -1
- package/src/{stores/query/DSL_DataSpace_LegendQueryRouter.ts → application/query/DSL_DataSpace_LegendQueryNavigation.ts} +17 -18
- package/src/{components/studio/DSL_DataSpace_CodeSnippets.ts → application/studio/DSL_DataSpace_LegendStudioCodeSnippet.ts} +4 -0
- package/src/application/studio/DSL_DataSpace_LegendStudioNavigation.ts +53 -0
- package/src/components/DataSpaceViewer.tsx +541 -98
- package/src/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.tsx +5 -4
- package/src/components/query/DataSpaceQueryBuilder.tsx +6 -4
- package/src/components/query/DataSpaceQueryCreator.tsx +12 -23
- package/src/components/query/DataSpaceQuerySetup.tsx +2 -1
- package/src/components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.tsx +52 -2
- package/src/components/studio/DataSpacePreview.tsx +129 -0
- package/src/components/studio/DataSpacePreviewAction.tsx +127 -0
- package/src/graph/DSL_DataSpace_HashUtils.ts +2 -0
- package/src/graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.ts +15 -4
- package/src/graphManager/action/analytics/DataSpaceAnalysis.ts +31 -0
- package/src/graphManager/action/analytics/HACKY__DataSpaceUsageShowcase.ts +313 -0
- package/src/graphManager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.ts +25 -0
- package/src/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.ts +66 -3
- package/src/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.ts +110 -1
- package/src/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSL_DataSpace_DataSpace.ts +6 -4
- package/src/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataSpace_ProtocolHelper.ts +13 -53
- package/src/stores/DataSpaceViewerState.ts +25 -14
- package/src/stores/query/DataSpaceAdvancedSearchState.ts +1 -1
- package/src/stores/query/DataSpaceQueryCreatorStore.ts +13 -1
- package/src/stores/query/DataSpaceQuerySetupStore.ts +1 -1
- package/src/stores/studio/DataSpacePreviewState.ts +150 -0
- package/src/stores/studio/DataSpacePreviewStore.ts +172 -0
- package/tsconfig.json +10 -5
- package/tsconfig.package.json +1 -2
- package/lib/components/studio/DSL_DataSpace_CodeSnippets.d.ts.map +0 -1
- package/lib/components/studio/DSL_DataSpace_CodeSnippets.js.map +0 -1
- package/lib/components/studio/DSL_DataSpace_LegendStudioDocumentation.d.ts.map +0 -1
- package/lib/components/studio/DSL_DataSpace_LegendStudioDocumentation.js.map +0 -1
- package/lib/stores/query/DSL_DataSpace_LegendQueryRouter.d.ts.map +0 -1
- package/lib/stores/query/DSL_DataSpace_LegendQueryRouter.js.map +0 -1
- /package/lib/{components → application}/studio/DSL_DataSpace_LegendStudioDocumentation.d.ts +0 -0
- /package/lib/{components → application}/studio/DSL_DataSpace_LegendStudioDocumentation.js +0 -0
- /package/src/{components → application}/studio/DSL_DataSpace_LegendStudioDocumentation.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSL_DataSpace_Const.d.ts","sourceRoot":"","sources":["../src/DSL_DataSpace_Const.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,eAAO,MAAM,kBAAkB,gCAAgC,CAAC;AAChE,eAAO,MAAM,4BAA4B,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"DSL_DataSpace_Const.d.ts","sourceRoot":"","sources":["../src/DSL_DataSpace_Const.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,eAAO,MAAM,kBAAkB,gCAAgC,CAAC;AAChE,eAAO,MAAM,4BAA4B,cAAc,CAAC;AACxD,eAAO,MAAM,uBAAuB,UAAU,CAAC"}
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
// NOTE: these are non-compilable profile and tag that we come up with for query
|
|
17
|
-
//
|
|
17
|
+
// to store extra metadata
|
|
18
18
|
export const QUERY_PROFILE_PATH = 'meta::pure::profiles::query';
|
|
19
19
|
export const QUERY_PROFILE_TAG_DATA_SPACE = 'dataSpace';
|
|
20
|
+
export const QUERY_PROFILE_TAG_CLASS = 'class';
|
|
20
21
|
//# sourceMappingURL=DSL_DataSpace_Const.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSL_DataSpace_Const.js","sourceRoot":"","sources":["../src/DSL_DataSpace_Const.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,gFAAgF;AAChF,
|
|
1
|
+
{"version":3,"file":"DSL_DataSpace_Const.js","sourceRoot":"","sources":["../src/DSL_DataSpace_Const.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,gFAAgF;AAChF,0BAA0B;AAC1B,MAAM,CAAC,MAAM,kBAAkB,GAAG,6BAA6B,CAAC;AAChE,MAAM,CAAC,MAAM,4BAA4B,GAAG,WAAW,CAAC;AACxD,MAAM,CAAC,MAAM,uBAAuB,GAAG,OAAO,CAAC"}
|
|
@@ -13,22 +13,23 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
export declare enum DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN {
|
|
17
|
+
GAV = "gav",
|
|
18
18
|
DATA_SPACE_PATH = "dataSpacePath",
|
|
19
|
-
EXECUTION_CONTEXT = "executionContext"
|
|
19
|
+
EXECUTION_CONTEXT = "executionContext",
|
|
20
|
+
RUNTIME_PATH = "runtimePath"
|
|
20
21
|
}
|
|
21
22
|
export declare enum DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN {
|
|
22
23
|
CLASS_PATH = "class"
|
|
23
24
|
}
|
|
24
|
-
export
|
|
25
|
-
[
|
|
26
|
-
[
|
|
27
|
-
[
|
|
28
|
-
[
|
|
29
|
-
}
|
|
25
|
+
export type DataSpaceQueryCreatorPathParams = {
|
|
26
|
+
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.GAV]: string;
|
|
27
|
+
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH]: string;
|
|
28
|
+
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.EXECUTION_CONTEXT]: string;
|
|
29
|
+
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.RUNTIME_PATH]?: string;
|
|
30
|
+
};
|
|
30
31
|
export type DataSpaceQueryEditorQueryParams = {
|
|
31
|
-
[DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN.CLASS_PATH]?: string;
|
|
32
|
+
[DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN.CLASS_PATH]?: string | undefined;
|
|
32
33
|
};
|
|
33
34
|
export declare const DATA_SPACE_QUERY_ROUTE_PATTERN: Readonly<{
|
|
34
35
|
SETUP: "/dataspace";
|
|
@@ -36,4 +37,4 @@ export declare const DATA_SPACE_QUERY_ROUTE_PATTERN: Readonly<{
|
|
|
36
37
|
}>;
|
|
37
38
|
export declare const generateDataSpaceQuerySetupRoute: () => string;
|
|
38
39
|
export declare const generateDataSpaceQueryCreatorRoute: (groupId: string, artifactId: string, versionId: string, dataSpacePath: string, executionContextKey: string, runtimePath?: string | undefined, classPath?: string | undefined) => string;
|
|
39
|
-
//# sourceMappingURL=
|
|
40
|
+
//# sourceMappingURL=DSL_DataSpace_LegendQueryNavigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DSL_DataSpace_LegendQueryNavigation.d.ts","sourceRoot":"","sources":["../../../src/application/query/DSL_DataSpace_LegendQueryNavigation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAYH,oBAAY,4CAA4C;IACtD,GAAG,QAAQ;IACX,eAAe,kBAAkB;IACjC,iBAAiB,qBAAqB;IACtC,YAAY,gBAAgB;CAC7B;AAED,oBAAY,0CAA0C;IACpD,UAAU,UAAU;CACrB;AAED,MAAM,MAAM,+BAA+B,GAAG;IAC5C,CAAC,4CAA4C,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAC3D,CAAC,4CAA4C,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IACvE,CAAC,4CAA4C,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IACzE,CAAC,4CAA4C,CAAC,YAAY,CAAC,CAAC,EAAE,MAAM,CAAC;CACtE,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC5C,CAAC,0CAA0C,CAAC,UAAU,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9E,CAAC;AAEF,eAAO,MAAM,8BAA8B;;;EAGzC,CAAC;AAEH,eAAO,MAAM,gCAAgC,QAAO,MAIjD,CAAC;AAEJ,eAAO,MAAM,kCAAkC,YACpC,MAAM,cACH,MAAM,aACP,MAAM,iBACF,MAAM,uBACA,MAAM,gBACb,MAAM,GAAG,SAAS,cACpB,MAAM,GAAG,SAAS,KAC7B,MAoBA,CAAC"}
|
|
@@ -14,31 +14,32 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { generateExtensionUrlPattern, generatePath, } from '@finos/legend-application';
|
|
17
|
-
import { LEGEND_QUERY_PATH_PARAM_TOKEN } from '@finos/legend-application-query';
|
|
18
17
|
import { addQueryParamsStringToUrl, stringifyQueryParams, } from '@finos/legend-shared';
|
|
19
18
|
import { generateGAVCoordinates } from '@finos/legend-storage';
|
|
20
|
-
export var
|
|
21
|
-
(function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
export var DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN;
|
|
20
|
+
(function (DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN) {
|
|
21
|
+
DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN["GAV"] = "gav";
|
|
22
|
+
DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN["DATA_SPACE_PATH"] = "dataSpacePath";
|
|
23
|
+
DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN["EXECUTION_CONTEXT"] = "executionContext";
|
|
24
|
+
DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN["RUNTIME_PATH"] = "runtimePath";
|
|
25
|
+
})(DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN = DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN || (DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN = {}));
|
|
25
26
|
export var DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN;
|
|
26
27
|
(function (DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN) {
|
|
27
28
|
DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN["CLASS_PATH"] = "class";
|
|
28
29
|
})(DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN = DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN || (DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN = {}));
|
|
29
30
|
export const DATA_SPACE_QUERY_ROUTE_PATTERN = Object.freeze({
|
|
30
31
|
SETUP: `/dataspace`,
|
|
31
|
-
CREATE: `/dataspace/:${
|
|
32
|
+
CREATE: `/dataspace/:${DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.GAV}/:${DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH}/:${DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.EXECUTION_CONTEXT}/:${DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.RUNTIME_PATH}?`,
|
|
32
33
|
});
|
|
33
34
|
export const generateDataSpaceQuerySetupRoute = () => generatePath(generateExtensionUrlPattern(DATA_SPACE_QUERY_ROUTE_PATTERN.SETUP), {});
|
|
34
35
|
export const generateDataSpaceQueryCreatorRoute = (groupId, artifactId, versionId, dataSpacePath, executionContextKey, runtimePath, classPath) => addQueryParamsStringToUrl(generatePath(generateExtensionUrlPattern(DATA_SPACE_QUERY_ROUTE_PATTERN.CREATE), {
|
|
35
|
-
[
|
|
36
|
-
[
|
|
37
|
-
[
|
|
38
|
-
[
|
|
36
|
+
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.GAV]: generateGAVCoordinates(groupId, artifactId, versionId),
|
|
37
|
+
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH]: dataSpacePath,
|
|
38
|
+
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.EXECUTION_CONTEXT]: executionContextKey,
|
|
39
|
+
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.RUNTIME_PATH]: runtimePath,
|
|
39
40
|
}), stringifyQueryParams({
|
|
40
41
|
[DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN.CLASS_PATH]: classPath
|
|
41
42
|
? encodeURIComponent(classPath)
|
|
42
43
|
: undefined,
|
|
43
44
|
}));
|
|
44
|
-
//# sourceMappingURL=
|
|
45
|
+
//# sourceMappingURL=DSL_DataSpace_LegendQueryNavigation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DSL_DataSpace_LegendQueryNavigation.js","sourceRoot":"","sources":["../../../src/application/query/DSL_DataSpace_LegendQueryNavigation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,2BAA2B,EAC3B,YAAY,GACb,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,yBAAyB,EACzB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,MAAM,CAAN,IAAY,4CAKX;AALD,WAAY,4CAA4C;IACtD,2DAAW,CAAA;IACX,iFAAiC,CAAA;IACjC,sFAAsC,CAAA;IACtC,4EAA4B,CAAA;AAC9B,CAAC,EALW,4CAA4C,GAA5C,4CAA4C,KAA5C,4CAA4C,QAKvD;AAED,MAAM,CAAN,IAAY,0CAEX;AAFD,WAAY,0CAA0C;IACpD,kEAAoB,CAAA;AACtB,CAAC,EAFW,0CAA0C,GAA1C,0CAA0C,KAA1C,0CAA0C,QAErD;AAaD,MAAM,CAAC,MAAM,8BAA8B,GAAG,MAAM,CAAC,MAAM,CAAC;IAC1D,KAAK,EAAE,YAAY;IACnB,MAAM,EAAE,eAAe,4CAA4C,CAAC,GAAG,KAAK,4CAA4C,CAAC,eAAe,KAAK,4CAA4C,CAAC,iBAAiB,KAAK,4CAA4C,CAAC,YAAY,GAAG;CAC7Q,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gCAAgC,GAAG,GAAW,EAAE,CAC3D,YAAY,CACV,2BAA2B,CAAC,8BAA8B,CAAC,KAAK,CAAC,EACjE,EAAE,CACH,CAAC;AAEJ,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAChD,OAAe,EACf,UAAkB,EAClB,SAAiB,EACjB,aAAqB,EACrB,mBAA2B,EAC3B,WAAgC,EAChC,SAA8B,EACtB,EAAE,CACV,yBAAyB,CACvB,YAAY,CACV,2BAA2B,CAAC,8BAA8B,CAAC,MAAM,CAAC,EAClE;IACE,CAAC,4CAA4C,CAAC,GAAG,CAAC,EAChD,sBAAsB,CAAC,OAAO,EAAE,UAAU,EAAE,SAAS,CAAC;IACxD,CAAC,4CAA4C,CAAC,eAAe,CAAC,EAC5D,aAAa;IACf,CAAC,4CAA4C,CAAC,iBAAiB,CAAC,EAC9D,mBAAmB;IACrB,CAAC,4CAA4C,CAAC,YAAY,CAAC,EACzD,WAAW;CACd,CACF,EACD,oBAAoB,CAAC;IACnB,CAAC,0CAA0C,CAAC,UAAU,CAAC,EAAE,SAAS;QAChE,CAAC,CAAC,kBAAkB,CAAC,SAAS,CAAC;QAC/B,CAAC,CAAC,SAAS;CACd,CAAC,CACH,CAAC"}
|
|
@@ -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 // featuredDiagrams:\n // [\n // model::SomeDiagram\n // ];\n // supportInfo: Email {\n // address: 'someEmail@test.org';\n // };\n}";
|
|
17
|
-
//# sourceMappingURL=
|
|
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 // featuredDiagrams:\n // [\n // model::SomeDiagram\n // ];\n // elements:\n // [\n // model::SomeClass,\n // ];\n // supportInfo: Email {\n // address: 'someEmail@test.org';\n // };\n}";
|
|
17
|
+
//# sourceMappingURL=DSL_DataSpace_LegendStudioCodeSnippet.d.ts.map
|
|
@@ -0,0 +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,2kBAwBpC,CAAC"}
|
|
@@ -30,8 +30,12 @@ export const SIMPLE_DATA_SPACE_SNIPPET = `DataSpace \${1:model::NewDataSpace}
|
|
|
30
30
|
// [
|
|
31
31
|
// model::SomeDiagram
|
|
32
32
|
// ];
|
|
33
|
+
// elements:
|
|
34
|
+
// [
|
|
35
|
+
// model::SomeClass,
|
|
36
|
+
// ];
|
|
33
37
|
// supportInfo: Email {
|
|
34
38
|
// address: 'someEmail@test.org';
|
|
35
39
|
// };
|
|
36
40
|
}`;
|
|
37
|
-
//# sourceMappingURL=
|
|
41
|
+
//# sourceMappingURL=DSL_DataSpace_LegendStudioCodeSnippet.js.map
|
|
@@ -0,0 +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;;;;;;;;;;;;;;;;;;;;;;;;EAwBvC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DSL_DataSpace_LegendStudioDocumentation.d.ts","sourceRoot":"","sources":["../../../src/application/studio/DSL_DataSpace_LegendStudioDocumentation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,8CAA8C;IACxD,cAAc,iCAAiC;IAC/C,0BAA0B,6CAA6C;CACxE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DSL_DataSpace_LegendStudioDocumentation.js","sourceRoot":"","sources":["../../../src/application/studio/DSL_DataSpace_LegendStudioDocumentation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,8CAGX;AAHD,WAAY,8CAA8C;IACxD,iGAA+C,CAAA;IAC/C,yHAAuE,CAAA;AACzE,CAAC,EAHW,8CAA8C,GAA9C,8CAA8C,KAA9C,8CAA8C,QAGzD"}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
export declare enum DATA_SPACE_STUDIO_ROUTE_PATTERN_TOKEN {
|
|
17
|
+
GAV = "gav",
|
|
18
|
+
DATA_SPACE_PATH = "dataSpacePath"
|
|
19
|
+
}
|
|
20
|
+
export type DataSpacePreviewPathParams = {
|
|
21
|
+
[DATA_SPACE_STUDIO_ROUTE_PATTERN_TOKEN.GAV]: string;
|
|
22
|
+
[DATA_SPACE_STUDIO_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH]: string;
|
|
23
|
+
};
|
|
24
|
+
export declare const DATA_SPACE_STUDIO_ROUTE_PATTERN: Readonly<{
|
|
25
|
+
PREVIEW: "/dataspace/preview/:gav/:dataSpacePath";
|
|
26
|
+
}>;
|
|
27
|
+
export declare const generateDataSpacePreviewRoute: (groupId: string, artifactId: string, versionId: string, dataSpacePath: string) => string;
|
|
28
|
+
//# sourceMappingURL=DSL_DataSpace_LegendStudioNavigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DSL_DataSpace_LegendStudioNavigation.d.ts","sourceRoot":"","sources":["../../../src/application/studio/DSL_DataSpace_LegendStudioNavigation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAQH,oBAAY,qCAAqC;IAC/C,GAAG,QAAQ;IACX,eAAe,kBAAkB;CAClC;AAED,MAAM,MAAM,0BAA0B,GAAG;IACvC,CAAC,qCAAqC,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACpD,CAAC,qCAAqC,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;CACjE,CAAC;AAEF,eAAO,MAAM,+BAA+B;;EAE1C,CAAC;AAEH,eAAO,MAAM,6BAA6B,YAC/B,MAAM,cACH,MAAM,aACP,MAAM,iBACF,MAAM,KACpB,MAWA,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
import { generateExtensionUrlPattern, generatePath, } from '@finos/legend-application';
|
|
17
|
+
import { generateGAVCoordinates } from '@finos/legend-storage';
|
|
18
|
+
export var DATA_SPACE_STUDIO_ROUTE_PATTERN_TOKEN;
|
|
19
|
+
(function (DATA_SPACE_STUDIO_ROUTE_PATTERN_TOKEN) {
|
|
20
|
+
DATA_SPACE_STUDIO_ROUTE_PATTERN_TOKEN["GAV"] = "gav";
|
|
21
|
+
DATA_SPACE_STUDIO_ROUTE_PATTERN_TOKEN["DATA_SPACE_PATH"] = "dataSpacePath";
|
|
22
|
+
})(DATA_SPACE_STUDIO_ROUTE_PATTERN_TOKEN = DATA_SPACE_STUDIO_ROUTE_PATTERN_TOKEN || (DATA_SPACE_STUDIO_ROUTE_PATTERN_TOKEN = {}));
|
|
23
|
+
export const DATA_SPACE_STUDIO_ROUTE_PATTERN = Object.freeze({
|
|
24
|
+
PREVIEW: `/dataspace/preview/:${DATA_SPACE_STUDIO_ROUTE_PATTERN_TOKEN.GAV}/:${DATA_SPACE_STUDIO_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH}`,
|
|
25
|
+
});
|
|
26
|
+
export const generateDataSpacePreviewRoute = (groupId, artifactId, versionId, dataSpacePath) => generatePath(generateExtensionUrlPattern(DATA_SPACE_STUDIO_ROUTE_PATTERN.PREVIEW), {
|
|
27
|
+
[DATA_SPACE_STUDIO_ROUTE_PATTERN_TOKEN.GAV]: generateGAVCoordinates(groupId, artifactId, versionId),
|
|
28
|
+
[DATA_SPACE_STUDIO_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH]: dataSpacePath,
|
|
29
|
+
});
|
|
30
|
+
//# sourceMappingURL=DSL_DataSpace_LegendStudioNavigation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DSL_DataSpace_LegendStudioNavigation.js","sourceRoot":"","sources":["../../../src/application/studio/DSL_DataSpace_LegendStudioNavigation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,2BAA2B,EAC3B,YAAY,GACb,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,MAAM,CAAN,IAAY,qCAGX;AAHD,WAAY,qCAAqC;IAC/C,oDAAW,CAAA;IACX,0EAAiC,CAAA;AACnC,CAAC,EAHW,qCAAqC,GAArC,qCAAqC,KAArC,qCAAqC,QAGhD;AAOD,MAAM,CAAC,MAAM,+BAA+B,GAAG,MAAM,CAAC,MAAM,CAAC;IAC3D,OAAO,EAAE,uBAAuB,qCAAqC,CAAC,GAAG,KAAK,qCAAqC,CAAC,eAAe,EAAE;CACtI,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAC3C,OAAe,EACf,UAAkB,EAClB,SAAiB,EACjB,aAAqB,EACb,EAAE,CACV,YAAY,CACV,2BAA2B,CAAC,+BAA+B,CAAC,OAAO,CAAC,EACpE;IACE,CAAC,qCAAqC,CAAC,GAAG,CAAC,EAAE,sBAAsB,CACjE,OAAO,EACP,UAAU,EACV,SAAS,CACV;IACD,CAAC,qCAAqC,CAAC,eAAe,CAAC,EAAE,aAAa;CACvE,CACF,CAAC"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { LegendApplicationPlugin, } from '@finos/legend-application';
|
|
17
17
|
import packageJson from '../../package.json';
|
|
18
|
-
|
|
18
|
+
class DSL_DataSpace_LegendApplicationPlugin extends LegendApplicationPlugin {
|
|
19
19
|
static NAME = packageJson.extensions.applicationPlugin;
|
|
20
20
|
constructor() {
|
|
21
21
|
super(DSL_DataSpace_LegendApplicationPlugin.NAME, packageJson.version);
|
|
@@ -27,4 +27,5 @@ export class DSL_DataSpace_LegendApplicationPlugin extends LegendApplicationPlug
|
|
|
27
27
|
return undefined;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
+
export { DSL_DataSpace_LegendApplicationPlugin };
|
|
30
31
|
//# 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;AAO7C,
|
|
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;AAO7C,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;IAED,gCAAgC;QAC9B,OAAO,SAAS,CAAC;IACnB,CAAC;;SAfU,qCAAqC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceViewer.d.ts","sourceRoot":"","sources":["../../src/components/DataSpaceViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;
|
|
1
|
+
{"version":3,"file":"DataSpaceViewer.d.ts","sourceRoot":"","sources":["../../src/components/DataSpaceViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AA8CH,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,mCAAmC,CAAC;AAq3B3C,eAAO,MAAM,eAAe,WAClB;IAAE,oBAAoB,EAAE,oBAAoB,CAAA;CAAE;;CAmLvD,CAAC"}
|
|
@@ -16,14 +16,16 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
16
16
|
*/
|
|
17
17
|
import { useRef, useEffect, forwardRef } from 'react';
|
|
18
18
|
import { observer } from 'mobx-react-lite';
|
|
19
|
-
import { BlankPanelContent, ShapesIcon, PlayIcon, QuestionCircleIcon, EnvelopIcon, clsx, CustomSelectorInput, PURE_MappingIcon, PURE_RuntimeIcon, CogIcon,
|
|
19
|
+
import { BlankPanelContent, ShapesIcon, PlayIcon, QuestionCircleIcon, EnvelopIcon, clsx, CustomSelectorInput, PURE_MappingIcon, PURE_RuntimeIcon, CogIcon, InfoCircleIcon, ExternalLinkIcon, useResizeDetector, ExternalLinkSquareIcon, DocumentationIcon, ResizablePanelGroup, ResizablePanel, ResizablePanelSplitter, MarkdownTextViewer, PencilIcon, DisplayIcon, ChevronRightIcon, ChevronLeftIcon, CircleIcon, CaretDownIcon, CaretRightIcon, CopyIcon, MoreHorizontalIcon, FlaskIcon, KeyIcon, ShieldIcon, } from '@finos/legend-art';
|
|
20
20
|
import { DiagramRenderer, } from '@finos/legend-extension-dsl-diagram';
|
|
21
21
|
import { DataSpaceSupportEmail } from '../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
|
|
22
22
|
import { extractElementNameFromPath, } from '@finos/legend-graph';
|
|
23
23
|
import { DATA_SPACE_VIEWER_ACTIVITY_MODE, } from '../stores/DataSpaceViewerState.js';
|
|
24
24
|
import { generateGAVCoordinates } from '@finos/legend-storage';
|
|
25
|
-
import { useApplicationStore } from '@finos/legend-application';
|
|
25
|
+
import { EDITOR_LANGUAGE, TextInputEditor, useApplicationStore, } from '@finos/legend-application';
|
|
26
26
|
import { DSL_DataSpace_LegendApplicationPlugin } from './DSL_DataSpace_LegendApplicationPlugin.js';
|
|
27
|
+
import { getNullableFirstElement, getNullableLastElement, guaranteeNonNullable, } from '@finos/legend-shared';
|
|
28
|
+
import { HACKY__DataSpaceUsageShowcaseTDSOutputDescription, HACKY__DataSpaceUsageShowcaseTDSSampleOutput, } from '../graphManager/action/analytics/HACKY__DataSpaceUsageShowcase.js';
|
|
27
29
|
const DataSpaceDiagramCanvas = observer(forwardRef(function DataSpaceDiagramCanvas(props, ref) {
|
|
28
30
|
const { dataSpaceViewerState, diagram } = props;
|
|
29
31
|
const diagramCanvasRef = ref;
|
|
@@ -46,28 +48,49 @@ const DataSpaceDiagramCanvas = observer(forwardRef(function DataSpaceDiagramCanv
|
|
|
46
48
|
}, [dataSpaceViewerState, width, height]);
|
|
47
49
|
return (_jsx("div", { ref: diagramCanvasRef, className: clsx('diagram-canvas ', dataSpaceViewerState.diagramCursorClass), tabIndex: 0 }));
|
|
48
50
|
}));
|
|
49
|
-
const
|
|
50
|
-
label: diagram.name,
|
|
51
|
-
value: diagram,
|
|
52
|
-
});
|
|
53
|
-
const DataSpaceModelsOverview = observer((props) => {
|
|
51
|
+
const DataSpaceOverview = observer((props) => {
|
|
54
52
|
const { dataSpaceViewerState } = props;
|
|
55
53
|
const analysisResult = dataSpaceViewerState.dataSpaceAnalysisResult;
|
|
56
54
|
// diagram selector
|
|
57
55
|
const diagramCanvasRef = useRef(null);
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
if (
|
|
64
|
-
|
|
56
|
+
const showPreviousDiagram = () => {
|
|
57
|
+
if (!dataSpaceViewerState.currentDiagram) {
|
|
58
|
+
return;
|
|
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;
|
|
65
73
|
}
|
|
74
|
+
dataSpaceViewerState.setCurrentDiagram(guaranteeNonNullable(analysisResult.featuredDiagrams[idx + 1]));
|
|
66
75
|
};
|
|
67
76
|
if (analysisResult.featuredDiagrams.length === 0) {
|
|
68
77
|
return _jsx(BlankPanelContent, { children: "No diagrams available" });
|
|
69
78
|
}
|
|
70
|
-
return (
|
|
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))) })] }) }));
|
|
71
94
|
});
|
|
72
95
|
const buildExecutionContextOption = (value) => ({
|
|
73
96
|
label: value.name,
|
|
@@ -108,10 +131,16 @@ const DataSpaceExecutionViewer = observer((props) => {
|
|
|
108
131
|
});
|
|
109
132
|
const DataSpaceInfo = observer((props) => {
|
|
110
133
|
const { dataSpaceViewerState } = props;
|
|
134
|
+
const applicationStore = useApplicationStore();
|
|
111
135
|
const analysisResult = dataSpaceViewerState.dataSpaceAnalysisResult;
|
|
112
136
|
const viewProject = () => dataSpaceViewerState.viewProject(dataSpaceViewerState.groupId, dataSpaceViewerState.artifactId, dataSpaceViewerState.versionId, undefined);
|
|
113
137
|
const viewDataSpaceInProject = () => dataSpaceViewerState.viewProject(dataSpaceViewerState.groupId, dataSpaceViewerState.artifactId, dataSpaceViewerState.versionId, analysisResult.path);
|
|
114
|
-
|
|
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 &&
|
|
115
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 &&
|
|
116
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)" }))] })] }));
|
|
117
146
|
});
|
|
@@ -140,6 +169,66 @@ const renderDataSpaceCheckEntitlementsEditor = (dataSpaceViewerState, plugins) =
|
|
|
140
169
|
}
|
|
141
170
|
return (_jsx(BlankPanelContent, { children: "Check entitlement(s) (Work in Progress)" }));
|
|
142
171
|
};
|
|
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
|
+
});
|
|
143
232
|
export const DataSpaceViewer = observer((props) => {
|
|
144
233
|
const { dataSpaceViewerState } = props;
|
|
145
234
|
const applicationStore = useApplicationStore();
|
|
@@ -147,25 +236,35 @@ export const DataSpaceViewer = observer((props) => {
|
|
|
147
236
|
const changeActivity = (activity) => () => dataSpaceViewerState.setCurrentActivity(activity);
|
|
148
237
|
const activities = [
|
|
149
238
|
{
|
|
150
|
-
mode: DATA_SPACE_VIEWER_ACTIVITY_MODE.
|
|
151
|
-
title: '
|
|
239
|
+
mode: DATA_SPACE_VIEWER_ACTIVITY_MODE.OVERVIEW,
|
|
240
|
+
title: 'Overview',
|
|
152
241
|
icon: _jsx(ShapesIcon, {}),
|
|
153
242
|
},
|
|
243
|
+
{
|
|
244
|
+
mode: DATA_SPACE_VIEWER_ACTIVITY_MODE.DOCUMENTATION,
|
|
245
|
+
title: 'Documentation',
|
|
246
|
+
icon: _jsx(DocumentationIcon, {}),
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
mode: DATA_SPACE_VIEWER_ACTIVITY_MODE.USAGE_SHOWCASE,
|
|
250
|
+
title: 'Usage Showcase',
|
|
251
|
+
icon: _jsx(DisplayIcon, {}),
|
|
252
|
+
},
|
|
154
253
|
{
|
|
155
254
|
mode: DATA_SPACE_VIEWER_ACTIVITY_MODE.EXECUTION,
|
|
156
255
|
title: 'Execution Context',
|
|
157
256
|
icon: _jsx(PlayIcon, {}),
|
|
158
257
|
},
|
|
159
|
-
{
|
|
160
|
-
mode: DATA_SPACE_VIEWER_ACTIVITY_MODE.ENTITLEMENT,
|
|
161
|
-
title: 'Entitlement',
|
|
162
|
-
icon: _jsx(KeyIcon, {}),
|
|
163
|
-
},
|
|
164
258
|
{
|
|
165
259
|
mode: DATA_SPACE_VIEWER_ACTIVITY_MODE.TEST_DATA,
|
|
166
260
|
title: 'Test Data',
|
|
167
261
|
icon: _jsx(FlaskIcon, {}),
|
|
168
262
|
},
|
|
263
|
+
{
|
|
264
|
+
mode: DATA_SPACE_VIEWER_ACTIVITY_MODE.ENTITLEMENT,
|
|
265
|
+
title: 'Entitlement',
|
|
266
|
+
icon: _jsx(KeyIcon, {}),
|
|
267
|
+
},
|
|
169
268
|
{
|
|
170
269
|
mode: DATA_SPACE_VIEWER_ACTIVITY_MODE.TEST_COVERAGE,
|
|
171
270
|
title: 'Test Coverage',
|
|
@@ -183,20 +282,13 @@ export const DataSpaceViewer = observer((props) => {
|
|
|
183
282
|
},
|
|
184
283
|
];
|
|
185
284
|
const viewProject = () => dataSpaceViewerState.viewProject(dataSpaceViewerState.groupId, dataSpaceViewerState.artifactId, dataSpaceViewerState.versionId, analysisResult.path);
|
|
186
|
-
|
|
187
|
-
dataSpaceViewerState
|
|
188
|
-
.viewSDLCProject(dataSpaceViewerState.groupId, dataSpaceViewerState.artifactId, analysisResult.path)
|
|
189
|
-
.catch(applicationStore.alertUnhandledError);
|
|
190
|
-
};
|
|
191
|
-
return (_jsxs("div", { className: "data-space__viewer", children: [_jsxs("div", { className: "data-space__viewer__header", children: [_jsxs("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(DropdownMenu, { className: "data-space__viewer__title__dropdown-trigger", content: _jsx(MenuContent, { children: _jsx(MenuContentItem, { onClick: viewSDLCProject, children: "View SDLC project" }) }), children: _jsx(CaretDownIcon, { title: "Show more options..." }) })] }), _jsx("div", { className: clsx('data-space__viewer__description', {
|
|
192
|
-
'data-space__viewer__description--empty': !analysisResult.description,
|
|
193
|
-
}), children: analysisResult.description
|
|
194
|
-
? analysisResult.description
|
|
195
|
-
: 'No description' })] }), _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', {
|
|
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', {
|
|
196
286
|
'data-space__viewer__activity-bar__item--active': dataSpaceViewerState.currentActivity === activity.mode,
|
|
197
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 ===
|
|
198
|
-
DATA_SPACE_VIEWER_ACTIVITY_MODE.
|
|
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 ===
|
|
199
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 ===
|
|
200
292
|
DATA_SPACE_VIEWER_ACTIVITY_MODE.ENTITLEMENT &&
|
|
201
293
|
renderDataSpaceCheckEntitlementsEditor(dataSpaceViewerState, applicationStore.pluginManager
|
|
202
294
|
.getApplicationPlugins()
|