@finos/legend-extension-dsl-data-space 10.0.11 → 10.0.13

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.
Files changed (126) hide show
  1. package/lib/__lib__/DSL_DataSpace_LegendApplicationCommand.d.ts +28 -0
  2. package/lib/__lib__/DSL_DataSpace_LegendApplicationCommand.d.ts.map +1 -0
  3. package/lib/__lib__/DSL_DataSpace_LegendApplicationCommand.js +70 -0
  4. package/lib/__lib__/DSL_DataSpace_LegendApplicationCommand.js.map +1 -0
  5. package/lib/__lib__/DSL_DataSpace_LegendApplicationNavigation.d.ts +20 -0
  6. package/lib/__lib__/DSL_DataSpace_LegendApplicationNavigation.d.ts.map +1 -0
  7. package/lib/__lib__/DSL_DataSpace_LegendApplicationNavigation.js +21 -0
  8. package/lib/__lib__/DSL_DataSpace_LegendApplicationNavigation.js.map +1 -0
  9. package/lib/components/DSL_DataSpace_LegendApplicationPlugin.d.ts +3 -1
  10. package/lib/components/DSL_DataSpace_LegendApplicationPlugin.d.ts.map +1 -1
  11. package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js +13 -1
  12. package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js.map +1 -1
  13. package/lib/components/DataSpaceDataAccess.d.ts.map +1 -1
  14. package/lib/components/DataSpaceDataAccess.js +5 -76
  15. package/lib/components/DataSpaceDataAccess.js.map +1 -1
  16. package/lib/components/DataSpaceDescription.d.ts.map +1 -1
  17. package/lib/components/DataSpaceDescription.js +2 -1
  18. package/lib/components/DataSpaceDescription.js.map +1 -1
  19. package/lib/components/DataSpaceDiagramViewer.d.ts.map +1 -1
  20. package/lib/components/DataSpaceDiagramViewer.js +110 -39
  21. package/lib/components/DataSpaceDiagramViewer.js.map +1 -1
  22. package/lib/components/DataSpaceExecutionContextViewer.d.ts.map +1 -1
  23. package/lib/components/DataSpaceExecutionContextViewer.js +3 -3
  24. package/lib/components/DataSpaceExecutionContextViewer.js.map +1 -1
  25. package/lib/components/DataSpaceInfoPanel.d.ts.map +1 -1
  26. package/lib/components/DataSpaceInfoPanel.js +6 -6
  27. package/lib/components/DataSpaceInfoPanel.js.map +1 -1
  28. package/lib/components/DataSpaceModelsDocumentation.d.ts.map +1 -1
  29. package/lib/components/DataSpaceModelsDocumentation.js +18 -8
  30. package/lib/components/DataSpaceModelsDocumentation.js.map +1 -1
  31. package/lib/components/DataSpacePlaceholder.d.ts +4 -0
  32. package/lib/components/DataSpacePlaceholder.d.ts.map +1 -1
  33. package/lib/components/DataSpacePlaceholder.js +6 -1
  34. package/lib/components/DataSpacePlaceholder.js.map +1 -1
  35. package/lib/components/DataSpaceQuickStart.d.ts.map +1 -1
  36. package/lib/components/DataSpaceQuickStart.js +24 -11
  37. package/lib/components/DataSpaceQuickStart.js.map +1 -1
  38. package/lib/components/DataSpaceSupportPanel.d.ts.map +1 -1
  39. package/lib/components/DataSpaceSupportPanel.js +17 -8
  40. package/lib/components/DataSpaceSupportPanel.js.map +1 -1
  41. package/lib/components/DataSpaceViewer.d.ts.map +1 -1
  42. package/lib/components/DataSpaceViewer.js +34 -13
  43. package/lib/components/DataSpaceViewer.js.map +1 -1
  44. package/lib/components/DataSpaceViewerActivityBar.d.ts.map +1 -1
  45. package/lib/components/DataSpaceViewerActivityBar.js +15 -12
  46. package/lib/components/DataSpaceViewerActivityBar.js.map +1 -1
  47. package/lib/components/index.d.ts +1 -0
  48. package/lib/components/index.d.ts.map +1 -1
  49. package/lib/components/index.js +1 -0
  50. package/lib/components/index.js.map +1 -1
  51. package/lib/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js +1 -1
  52. package/lib/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js.map +1 -1
  53. package/lib/index.css +2 -2
  54. package/lib/index.css.map +1 -1
  55. package/lib/package.json +2 -2
  56. package/lib/stores/DataSpaceLayoutState.d.ts +46 -0
  57. package/lib/stores/DataSpaceLayoutState.d.ts.map +1 -1
  58. package/lib/stores/DataSpaceLayoutState.js +184 -1
  59. package/lib/stores/DataSpaceLayoutState.js.map +1 -1
  60. package/lib/stores/DataSpaceModelsDocumentationState.d.ts +11 -2
  61. package/lib/stores/DataSpaceModelsDocumentationState.d.ts.map +1 -1
  62. package/lib/stores/DataSpaceModelsDocumentationState.js +41 -0
  63. package/lib/stores/DataSpaceModelsDocumentationState.js.map +1 -1
  64. package/lib/stores/DataSpaceQuickStartState.d.ts +24 -0
  65. package/lib/stores/DataSpaceQuickStartState.d.ts.map +1 -0
  66. package/lib/stores/DataSpaceQuickStartState.js +48 -0
  67. package/lib/stores/DataSpaceQuickStartState.js.map +1 -0
  68. package/lib/stores/DataSpaceViewerDiagramViewerState.d.ts +44 -0
  69. package/lib/stores/DataSpaceViewerDiagramViewerState.d.ts.map +1 -0
  70. package/lib/stores/DataSpaceViewerDiagramViewerState.js +194 -0
  71. package/lib/stores/DataSpaceViewerDiagramViewerState.js.map +1 -0
  72. package/lib/stores/DataSpaceViewerNavigation.d.ts +36 -0
  73. package/lib/stores/DataSpaceViewerNavigation.d.ts.map +1 -0
  74. package/lib/stores/DataSpaceViewerNavigation.js +47 -0
  75. package/lib/stores/DataSpaceViewerNavigation.js.map +1 -0
  76. package/lib/stores/DataSpaceViewerState.d.ts +22 -74
  77. package/lib/stores/DataSpaceViewerState.d.ts.map +1 -1
  78. package/lib/stores/DataSpaceViewerState.js +34 -259
  79. package/lib/stores/DataSpaceViewerState.js.map +1 -1
  80. package/lib/stores/query/DataSpaceAdvancedSearchState.d.ts.map +1 -1
  81. package/lib/stores/query/DataSpaceAdvancedSearchState.js +8 -5
  82. package/lib/stores/query/DataSpaceAdvancedSearchState.js.map +1 -1
  83. package/lib/stores/query/DataSpaceQueryCreatorStore.d.ts +8 -8
  84. package/lib/stores/query/DataSpaceQueryCreatorStore.d.ts.map +1 -1
  85. package/lib/stores/query/DataSpaceQueryCreatorStore.js +1 -1
  86. package/lib/stores/query/DataSpaceQueryCreatorStore.js.map +1 -1
  87. package/lib/stores/query/DataSpaceQuerySetupStore.d.ts +1 -1
  88. package/lib/stores/query/DataSpaceQuerySetupStore.d.ts.map +1 -1
  89. package/lib/stores/query/DataSpaceQuerySetupStore.js +1 -1
  90. package/lib/stores/query/DataSpaceQuerySetupStore.js.map +1 -1
  91. package/lib/stores/studio/DataSpacePreviewState.d.ts.map +1 -1
  92. package/lib/stores/studio/DataSpacePreviewState.js +15 -3
  93. package/lib/stores/studio/DataSpacePreviewState.js.map +1 -1
  94. package/package.json +14 -14
  95. package/src/__lib__/DSL_DataSpace_LegendApplicationCommand.ts +74 -0
  96. package/src/__lib__/DSL_DataSpace_LegendApplicationNavigation.ts +33 -0
  97. package/src/components/DSL_DataSpace_LegendApplicationPlugin.tsx +20 -1
  98. package/src/components/DataSpaceDataAccess.tsx +9 -122
  99. package/src/components/DataSpaceDescription.tsx +5 -5
  100. package/src/components/DataSpaceDiagramViewer.tsx +449 -69
  101. package/src/components/DataSpaceExecutionContextViewer.tsx +47 -40
  102. package/src/components/DataSpaceInfoPanel.tsx +107 -117
  103. package/src/components/DataSpaceModelsDocumentation.tsx +31 -12
  104. package/src/components/DataSpacePlaceholder.tsx +22 -0
  105. package/src/components/DataSpaceQuickStart.tsx +95 -15
  106. package/src/components/DataSpaceSupportPanel.tsx +146 -14
  107. package/src/components/DataSpaceViewer.tsx +153 -23
  108. package/src/components/DataSpaceViewerActivityBar.tsx +40 -20
  109. package/src/components/index.ts +1 -0
  110. package/src/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.ts +1 -1
  111. package/src/stores/DataSpaceLayoutState.ts +272 -0
  112. package/src/stores/DataSpaceModelsDocumentationState.ts +61 -2
  113. package/src/stores/DataSpaceQuickStartState.ts +91 -0
  114. package/src/stores/DataSpaceViewerDiagramViewerState.ts +245 -0
  115. package/src/stores/DataSpaceViewerNavigation.ts +64 -0
  116. package/src/stores/DataSpaceViewerState.ts +88 -401
  117. package/src/stores/query/DataSpaceAdvancedSearchState.ts +30 -6
  118. package/src/stores/query/DataSpaceQueryCreatorStore.ts +8 -8
  119. package/src/stores/query/DataSpaceQuerySetupStore.ts +1 -1
  120. package/src/stores/studio/DataSpacePreviewState.ts +27 -5
  121. package/tsconfig.json +5 -1
  122. package/lib/stores/DataSpaceViewerDataAccessState.d.ts +0 -35
  123. package/lib/stores/DataSpaceViewerDataAccessState.d.ts.map +0 -1
  124. package/lib/stores/DataSpaceViewerDataAccessState.js +0 -98
  125. package/lib/stores/DataSpaceViewerDataAccessState.js.map +0 -1
  126. package/src/stores/DataSpaceViewerDataAccessState.ts +0 -143
@@ -19,6 +19,7 @@ import { action, flow, makeObservable, observable } from 'mobx';
19
19
  import { DSL_DataSpace_getGraphManagerExtension } from '../../graph-manager/protocol/pure/DSL_DataSpace_PureGraphManagerExtension.js';
20
20
  import { DataSpaceViewerState } from '../DataSpaceViewerState.js';
21
21
  import { InMemoryGraphData } from '@finos/legend-graph';
22
+ import { EXTERNAL_APPLICATION_NAVIGATION__generateServiceQueryCreatorUrl } from '../../__lib__/DSL_DataSpace_LegendApplicationNavigation.js';
22
23
  export class DataSpacePreviewState extends EditorExtensionState {
23
24
  editorStore;
24
25
  loadDataSpaceState = ActionState.create();
@@ -58,15 +59,26 @@ export class DataSpacePreviewState extends EditorExtensionState {
58
59
  .map((element) => this.editorStore.graphManagerState.graphManager.elementToEntity(element))
59
60
  .concat(this.editorStore.graphManagerState.graph.dependencyManager.allOwnElements.map((element) => this.editorStore.graphManagerState.graphManager.elementToEntity(element))), undefined, this.loadDataSpaceState));
60
61
  this.dataSpaceViewerState = new DataSpaceViewerState(this.editorStore.applicationStore, this.editorStore.graphManagerState, groupId, artifactId, versionId, analysisResult, {
61
- retriveGraphData: () => new InMemoryGraphData(this.editorStore.graphManagerState.graph),
62
+ retrieveGraphData: () => new InMemoryGraphData(this.editorStore.graphManagerState.graph),
63
+ queryDataSpace: () => {
64
+ this.editorStore.applicationStore.notificationService.notifyWarning('This feature is not supported in preview mode');
65
+ },
62
66
  viewProject: () => {
63
67
  this.editorStore.applicationStore.notificationService.notifyWarning('This feature is not supported in preview mode');
64
68
  },
65
69
  viewSDLCProject: async () => {
66
70
  this.editorStore.applicationStore.notificationService.notifyWarning('This feature is not supported in preview mode');
67
71
  },
68
- onDiagramClassDoubleClick: (classView) => {
69
- queryClass(classView.class.value, this.editorStore).catch(this.editorStore.applicationStore.alertUnhandledError);
72
+ queryClass: (_class) => {
73
+ queryClass(_class, this.editorStore).catch(this.editorStore.applicationStore.alertUnhandledError);
74
+ },
75
+ openServiceQuery: (servicePath) => {
76
+ if (this.editorStore.applicationStore.config.queryApplicationUrl) {
77
+ this.editorStore.applicationStore.navigationService.navigator.visitAddress(EXTERNAL_APPLICATION_NAVIGATION__generateServiceQueryCreatorUrl(this.editorStore.applicationStore.config.queryApplicationUrl, groupId, artifactId, versionId, servicePath));
78
+ }
79
+ else {
80
+ this.editorStore.applicationStore.notificationService.notifyWarning('Query application URL is not configured');
81
+ }
70
82
  },
71
83
  });
72
84
  this.loadDataSpaceState.pass();
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpacePreviewState.js","sourceRoot":"","sources":["../../../src/stores/studio/DataSpacePreviewState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,oBAAoB,EACpB,UAAU,GAEX,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAEL,oBAAoB,EACpB,WAAW,EACX,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGhE,OAAO,EAAE,sCAAsC,EAAE,MAAM,8EAA8E,CAAC;AACtI,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,OAAO,qBAAsB,SAAQ,oBAAoB;IACpD,WAAW,C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AAW,CAAC,gBAAgB,CAAC,mBAAmB,CACtD,CAAC;gBACJ,CAAC;gBACD,gBAAgB,EAAE,CAAC,WAAmB,EAAQ,EAAE;oBAC9C,IAAI,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,MAAM,CAAC,mBAAmB,EAAE;wBAChE,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,SAAS,CAAC,YAAY,CACxE,+DAA+D,CAC7D,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,MAAM,CAAC,mBAAmB,EAC5D,OAAO,EACP,UAAU,EACV,SAAS,EACT,WAAW,CACZ,CACF,CAAC;qBACH;yBAAM;wBACL,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,aAAa,CACjE,yCAAyC,CAC1C,CAAC;qBACH;gBACH,CAAC;aACF,CACF,CAAC;YACF,IAAI,CAAC,kBAAkB,CAAC,IAAI,EAAE,CAAC;SAChC;QAAC,OAAO,KAAK,EAAE;YACd,iBAAiB,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,kBAAkB,CAAC,IAAI,EAAE,CAAC;YAC/B,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;SAC1E;gBAAS;YACR,IAAI,CAAC,kBAAkB,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;SAC/C;IACH,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-extension-dsl-data-space",
3
- "version": "10.0.11",
3
+ "version": "10.0.13",
4
4
  "description": "Legend extension for Data Space DSL",
5
5
  "keywords": [
6
6
  "legend",
@@ -44,18 +44,18 @@
44
44
  "test:watch": "jest --watch"
45
45
  },
46
46
  "dependencies": {
47
- "@finos/legend-application": "15.0.7",
48
- "@finos/legend-application-query": "13.0.0",
49
- "@finos/legend-application-studio": "24.2.0",
50
- "@finos/legend-art": "7.0.8",
51
- "@finos/legend-extension-dsl-diagram": "8.0.11",
52
- "@finos/legend-graph": "28.1.4",
53
- "@finos/legend-lego": "0.1.13",
54
- "@finos/legend-query-builder": "3.2.0",
55
- "@finos/legend-server-depot": "6.0.4",
56
- "@finos/legend-shared": "10.0.3",
57
- "@finos/legend-storage": "3.0.53",
58
- "@types/react": "18.2.0",
47
+ "@finos/legend-application": "15.0.9",
48
+ "@finos/legend-application-query": "13.0.2",
49
+ "@finos/legend-application-studio": "25.0.1",
50
+ "@finos/legend-art": "7.0.10",
51
+ "@finos/legend-extension-dsl-diagram": "8.0.13",
52
+ "@finos/legend-graph": "28.1.5",
53
+ "@finos/legend-lego": "1.0.1",
54
+ "@finos/legend-query-builder": "3.2.2",
55
+ "@finos/legend-server-depot": "6.0.5",
56
+ "@finos/legend-shared": "10.0.4",
57
+ "@finos/legend-storage": "3.0.54",
58
+ "@types/react": "18.2.1",
59
59
  "mobx": "6.9.0",
60
60
  "mobx-react-lite": "3.4.3",
61
61
  "react": "18.2.0",
@@ -63,7 +63,7 @@
63
63
  "serializr": "3.0.2"
64
64
  },
65
65
  "devDependencies": {
66
- "@finos/legend-dev-utils": "2.0.57",
66
+ "@finos/legend-dev-utils": "2.0.59",
67
67
  "@jest/globals": "29.5.0",
68
68
  "cross-env": "7.0.3",
69
69
  "eslint": "8.39.0",
@@ -0,0 +1,74 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import type { CommandConfigData } from '@finos/legend-application';
18
+
19
+ export enum DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY {
20
+ RECENTER_DIAGRAM = 'dsl-dataspace.diagram-viewer.recenter',
21
+ USE_ZOOM_TOOL = 'dsl-dataspace.diagram-viewer.use-zoom-tool',
22
+ USE_VIEW_TOOL = 'dsl-dataspace.diagram-viewer.use-view-tool',
23
+ USE_PAN_TOOL = 'dsl-dataspace.diagram-viewer.use-pan-tool',
24
+ GO_TO_NEXT_DIAGRAM = 'dsl-dataspace.diagram-viewer.go-to-next-diagram',
25
+ GO_TO_PREVIOUS_DIAGRAM = 'dsl-dataspace.diagram-viewer.go-to-previous-diagram',
26
+ TOGGLE_DIAGRAM_DESCRIPTION = 'dsl-dataspace.diagram-viewer.toggle-description',
27
+ SEARCH_DOCUMENTATION = 'dsl-dataspace.models-documentation.search',
28
+ }
29
+
30
+ export const DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_CONFIG: CommandConfigData =
31
+ {
32
+ [DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.RECENTER_DIAGRAM]: {
33
+ title: 'Data Space Diagram Viewer: Recenter',
34
+ defaultKeyboardShortcut: 'KeyR',
35
+ when: 'When diagram viewer is active',
36
+ },
37
+ [DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.USE_ZOOM_TOOL]: {
38
+ title: 'Data Space Diagram Viewer: Use zoom tool',
39
+ defaultKeyboardShortcut: 'KeyZ',
40
+ when: 'When diagram viewer is active',
41
+ },
42
+ [DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.USE_VIEW_TOOL]: {
43
+ title: 'Data Space Diagram Viewer: Use view tool',
44
+ defaultKeyboardShortcut: 'KeyV',
45
+ when: 'When diagram viewer is active',
46
+ },
47
+ [DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.USE_PAN_TOOL]: {
48
+ title: 'Data Space Diagram Viewer: Use pan tool',
49
+ defaultKeyboardShortcut: 'KeyM',
50
+ when: 'When diagram viewer is active',
51
+ },
52
+ [DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.GO_TO_NEXT_DIAGRAM]: {
53
+ title: 'Data Space Diagram Viewer: Next Diagram',
54
+ defaultKeyboardShortcut: 'ArrowRight',
55
+ when: 'When diagram viewer is active',
56
+ },
57
+ [DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.GO_TO_PREVIOUS_DIAGRAM]: {
58
+ title: 'Data Space Diagram Viewer: Previous Diagram',
59
+ defaultKeyboardShortcut: 'ArrowLeft',
60
+ when: 'When viewing diagram',
61
+ },
62
+ [DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.TOGGLE_DIAGRAM_DESCRIPTION]:
63
+ {
64
+ title: 'Data Space Diagram Viewer: Toggle Description',
65
+ defaultKeyboardShortcut: 'KeyD',
66
+ when: 'When diagram viewer is active',
67
+ },
68
+ [DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.SEARCH_DOCUMENTATION]: {
69
+ title: 'Data Space Models Documentation: Search',
70
+ defaultKeyboardShortcut: 'Control+Shift+KeyF',
71
+ additionalKeyboardShortcuts: ['Meta+Shift+KeyF'],
72
+ when: 'When models documnetation viewer is active',
73
+ },
74
+ };
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { generateGAVCoordinates } from '@finos/legend-storage';
18
+
19
+ /**
20
+ * @external_application_navigation This depends on Legend Query routing and is hardcoded so it's potentially brittle
21
+ */
22
+ export const EXTERNAL_APPLICATION_NAVIGATION__generateServiceQueryCreatorUrl = (
23
+ queryApplicationUrl: string,
24
+ groupId: string,
25
+ artifactId: string,
26
+ versionId: string,
27
+ servicePath: string,
28
+ ): string =>
29
+ `${queryApplicationUrl}/create-from-service/${generateGAVCoordinates(
30
+ groupId,
31
+ artifactId,
32
+ versionId,
33
+ )}/${servicePath}`;
@@ -16,7 +16,10 @@
16
16
 
17
17
  import {
18
18
  LegendApplicationPlugin,
19
+ type LegendApplicationSetup,
19
20
  type LegendApplicationPluginManager,
21
+ collectKeyedCommandConfigEntriesFromConfig,
22
+ type KeyedCommandConfigEntry,
20
23
  } from '@finos/legend-application';
21
24
  import packageJson from '../../package.json';
22
25
  import type {
@@ -24,11 +27,13 @@ import type {
24
27
  QueryBuilder_LegendApplicationPlugin_Extension,
25
28
  } from '@finos/legend-query-builder';
26
29
  import { DataSpaceQueryBuilderState } from '../stores/query/DataSpaceQueryBuilderState.js';
27
- import type { QuerySearchSpecification } from '@finos/legend-graph';
28
30
  import {
29
31
  createQueryClassTaggedValue,
30
32
  createQueryDataSpaceTaggedValue,
31
33
  } from '../stores/query/DataSpaceQueryCreatorStore.js';
34
+ import { DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_CONFIG } from '../__lib__/DSL_DataSpace_LegendApplicationCommand.js';
35
+ import type { QuerySearchSpecification } from '@finos/legend-graph';
36
+ import { configureDataGridComponent } from '@finos/legend-lego/data-grid';
32
37
 
33
38
  export class DSL_DataSpace_LegendApplicationPlugin
34
39
  extends LegendApplicationPlugin
@@ -46,6 +51,20 @@ export class DSL_DataSpace_LegendApplicationPlugin
46
51
  pluginManager.registerApplicationPlugin(this);
47
52
  }
48
53
 
54
+ override getExtraKeyedCommandConfigEntries(): KeyedCommandConfigEntry[] {
55
+ return collectKeyedCommandConfigEntriesFromConfig(
56
+ DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_CONFIG,
57
+ );
58
+ }
59
+
60
+ override getExtraApplicationSetups(): LegendApplicationSetup[] {
61
+ return [
62
+ async (applicationStore) => {
63
+ configureDataGridComponent();
64
+ },
65
+ ];
66
+ }
67
+
49
68
  getExtraLoadQueryFilterOptions(): LoadQueryFilterOption[] {
50
69
  return [
51
70
  {
@@ -15,125 +15,15 @@
15
15
  */
16
16
 
17
17
  import { observer } from 'mobx-react-lite';
18
- import {
19
- AnchorLinkIcon,
20
- PanelLoadingIndicator,
21
- QuestionCircleIcon,
22
- } from '@finos/legend-art';
23
- import {
24
- DATA_SPACE_VIEWER_ACTIVITY_MODE,
25
- generateAnchorForActivity,
26
- type DataSpaceViewerState,
27
- } from '../stores/DataSpaceViewerState.js';
18
+ import { AnchorLinkIcon, QuestionCircleIcon } from '@finos/legend-art';
19
+ import { type DataSpaceViewerState } from '../stores/DataSpaceViewerState.js';
28
20
  import { useApplicationStore } from '@finos/legend-application';
29
- import { DataSpaceWikiPlaceholder } from './DataSpacePlaceholder.js';
30
21
  import { useEffect, useRef } from 'react';
31
- import { flowResult } from 'mobx';
32
22
  import {
33
- DatasetEntitlementAccessApprovedReport,
34
- DatasetEntitlementAccessGrantedReport,
35
- DatasetEntitlementAccessNotGrantedReport,
36
- DatasetEntitlementAccessRequestedReport,
37
- DatasetEntitlementUnsupportedReport,
38
- } from '@finos/legend-graph';
39
- import { DataGrid } from '@finos/legend-lego/data-grid';
40
-
41
- const DataAccessOverview = observer(
42
- (props: { dataSpaceViewerState: DataSpaceViewerState }) => {
43
- const { dataSpaceViewerState } = props;
44
- const dataAccessState = dataSpaceViewerState.dataAccessState;
45
- const applicationStore = useApplicationStore();
46
-
47
- useEffect(() => {
48
- flowResult(dataAccessState.fetchDatasetSpecifications())
49
- .then(() => dataAccessState.fetchDatasetEntitlementReports())
50
- .catch(applicationStore.alertUnhandledError);
51
- }, [
52
- applicationStore,
53
- dataAccessState,
54
- dataSpaceViewerState.currentExecutionContext,
55
- ]);
56
-
57
- return (
58
- <div className="data-space__viewer__data-access__overview">
59
- <PanelLoadingIndicator
60
- isLoading={
61
- dataAccessState.fetchDatasetSpecificationsState.isInProgress ||
62
- dataAccessState.fetchDatasetEntitlementReportsState.isInProgress
63
- }
64
- />
65
- <div className="data-space__viewer__data-access__chart"></div>
66
- <div className="data-space__viewer__data-access__grid data-space__viewer__grid ag-theme-balham-dark">
67
- <DataGrid
68
- rowData={dataAccessState.datasets}
69
- gridOptions={{
70
- suppressScrollOnNewData: true,
71
- getRowId: (rowData) => rowData.data.uuid,
72
- }}
73
- suppressFieldDotNotation={true}
74
- columnDefs={[
75
- {
76
- minWidth: 50,
77
- sortable: true,
78
- resizable: true,
79
- valueGetter: (params) => params.data?.specification.name,
80
- headerName: 'Dataset',
81
- flex: 1,
82
- },
83
- {
84
- minWidth: 50,
85
- sortable: true,
86
- resizable: true,
87
- valueGetter: (params) => params.data?.specification.type,
88
- headerName: 'Type',
89
- flex: 1,
90
- },
91
- {
92
- minWidth: 50,
93
- sortable: true,
94
- resizable: true,
95
- headerName: 'Access Status',
96
- valueGetter: (params) => {
97
- const entitlementReport = params.data?.entitlementReport;
98
- if (
99
- entitlementReport instanceof
100
- DatasetEntitlementAccessGrantedReport
101
- ) {
102
- return 'Access Granted';
103
- } else if (
104
- entitlementReport instanceof
105
- DatasetEntitlementAccessApprovedReport
106
- ) {
107
- return 'Access Approved';
108
- } else if (
109
- entitlementReport instanceof
110
- DatasetEntitlementAccessRequestedReport
111
- ) {
112
- return 'Access Requested';
113
- } else if (
114
- entitlementReport instanceof
115
- DatasetEntitlementAccessNotGrantedReport
116
- ) {
117
- return '(x) Access Not Granted';
118
- } else if (
119
- entitlementReport instanceof
120
- DatasetEntitlementUnsupportedReport
121
- ) {
122
- return '(unsupported)';
123
- }
124
- return '';
125
- },
126
- flex: 1,
127
- wrapText: true,
128
- autoHeight: true,
129
- },
130
- ]}
131
- />
132
- </div>
133
- </div>
134
- );
135
- },
136
- );
23
+ DATA_SPACE_VIEWER_ACTIVITY_MODE,
24
+ generateAnchorForActivity,
25
+ } from '../stores/DataSpaceViewerNavigation.js';
26
+ import { DataAccessOverview } from '@finos/legend-query-builder';
137
27
 
138
28
  export const DataSpaceDataAccess = observer(
139
29
  (props: { dataSpaceViewerState: DataSpaceViewerState }) => {
@@ -190,12 +80,9 @@ export const DataSpaceDataAccess = observer(
190
80
  </div>
191
81
  <div className="data-space__viewer__wiki__section__content">
192
82
  <div className="data-space__viewer__data-access">
193
- {!dataSpaceViewerState.TEMPORARY__enableExperimentalFeatures && (
194
- <DataSpaceWikiPlaceholder message="View Data Access (Work in Progress)" />
195
- )}
196
- {dataSpaceViewerState.TEMPORARY__enableExperimentalFeatures && (
197
- <DataAccessOverview dataSpaceViewerState={dataSpaceViewerState} />
198
- )}
83
+ <DataAccessOverview
84
+ dataAccessState={dataSpaceViewerState.currentDataAccessState}
85
+ />
199
86
  </div>
200
87
  </div>
201
88
  </div>
@@ -15,15 +15,15 @@
15
15
  */
16
16
 
17
17
  import { AnchorLinkIcon } from '@finos/legend-art';
18
- import {
19
- DATA_SPACE_VIEWER_ACTIVITY_MODE,
20
- generateAnchorForActivity,
21
- type DataSpaceViewerState,
22
- } from '../stores/DataSpaceViewerState.js';
18
+ import { type DataSpaceViewerState } from '../stores/DataSpaceViewerState.js';
23
19
  import { observer } from 'mobx-react-lite';
24
20
  import { DataSpaceWikiPlaceholder } from './DataSpacePlaceholder.js';
25
21
  import { DataSpaceMarkdownTextViewer } from './DataSpaceMarkdownTextViewer.js';
26
22
  import { useEffect, useRef } from 'react';
23
+ import {
24
+ DATA_SPACE_VIEWER_ACTIVITY_MODE,
25
+ generateAnchorForActivity,
26
+ } from '../stores/DataSpaceViewerNavigation.js';
27
27
 
28
28
  export const DataSpaceDescription = observer(
29
29
  (props: { dataSpaceViewerState: DataSpaceViewerState }) => {