@finos/legend-extension-dsl-data-space 10.4.258 → 10.4.260
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/components/DataSpaceDescription.d.ts +5 -0
- package/lib/components/DataSpaceDescription.d.ts.map +1 -1
- package/lib/components/DataSpaceDescription.js +39 -0
- package/lib/components/DataSpaceDescription.js.map +1 -1
- package/lib/components/DataSpaceExecutionContextViewer.d.ts +1 -6
- package/lib/components/DataSpaceExecutionContextViewer.d.ts.map +1 -1
- package/lib/components/DataSpaceExecutionContextViewer.js +12 -16
- package/lib/components/DataSpaceExecutionContextViewer.js.map +1 -1
- package/lib/components/DataSpaceLakehouseAccess.d.ts +22 -0
- package/lib/components/DataSpaceLakehouseAccess.d.ts.map +1 -0
- package/lib/components/DataSpaceLakehouseAccess.js +127 -0
- package/lib/components/DataSpaceLakehouseAccess.js.map +1 -0
- package/lib/components/DataSpaceQuickStart.d.ts.map +1 -1
- package/lib/components/DataSpaceQuickStart.js +3 -2
- package/lib/components/DataSpaceQuickStart.js.map +1 -1
- package/lib/components/DataSpaceViewer.d.ts.map +1 -1
- package/lib/components/DataSpaceViewer.js +7 -13
- package/lib/components/DataSpaceViewer.js.map +1 -1
- package/lib/components/DataSpaceWiki.d.ts.map +1 -1
- package/lib/components/DataSpaceWiki.js +3 -2
- package/lib/components/DataSpaceWiki.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js +2 -2
- package/lib/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/DataSpaceLayoutState.d.ts.map +1 -1
- package/lib/stores/DataSpaceLayoutState.js +3 -3
- package/lib/stores/DataSpaceLayoutState.js.map +1 -1
- package/lib/stores/DataSpaceViewerNavigation.d.ts +1 -0
- package/lib/stores/DataSpaceViewerNavigation.d.ts.map +1 -1
- package/lib/stores/DataSpaceViewerNavigation.js +1 -0
- package/lib/stores/DataSpaceViewerNavigation.js.map +1 -1
- package/lib/stores/DataSpaceViewerState.d.ts +3 -0
- package/lib/stores/DataSpaceViewerState.d.ts.map +1 -1
- package/lib/stores/DataSpaceViewerState.js +28 -2
- package/lib/stores/DataSpaceViewerState.js.map +1 -1
- package/package.json +8 -8
- package/src/components/DataSpaceDescription.tsx +86 -0
- package/src/components/DataSpaceExecutionContextViewer.tsx +41 -44
- package/src/components/DataSpaceLakehouseAccess.tsx +449 -0
- package/src/components/DataSpaceQuickStart.tsx +22 -11
- package/src/components/DataSpaceViewer.tsx +2 -55
- package/src/components/DataSpaceWiki.tsx +7 -1
- package/src/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.ts +2 -2
- package/src/stores/DataSpaceLayoutState.ts +5 -6
- package/src/stores/DataSpaceViewerNavigation.ts +1 -0
- package/src/stores/DataSpaceViewerState.ts +36 -2
- package/tsconfig.json +1 -0
|
@@ -164,6 +164,7 @@ export class DataSpaceViewerState extends BaseViewerState<
|
|
|
164
164
|
legendAIConfig: observable,
|
|
165
165
|
isVerified: computed,
|
|
166
166
|
isDataAccessAvailable: computed,
|
|
167
|
+
referencedDataProductPaths: computed,
|
|
167
168
|
setCurrentActivity: action,
|
|
168
169
|
setCurrentExecutionContext: action,
|
|
169
170
|
setCurrentRuntime: action,
|
|
@@ -217,6 +218,7 @@ export class DataSpaceViewerState extends BaseViewerState<
|
|
|
217
218
|
this.legendAIConfig = DEFAULT_LEGEND_AI_CONFIG;
|
|
218
219
|
this.initMappingProviderAccessState();
|
|
219
220
|
this.initExecutableAccessStates();
|
|
221
|
+
this.initReferencedDataProductAccessStates();
|
|
220
222
|
}
|
|
221
223
|
|
|
222
224
|
get dataSpaceAnalysisResult(): DataSpaceAnalysisResult {
|
|
@@ -224,11 +226,21 @@ export class DataSpaceViewerState extends BaseViewerState<
|
|
|
224
226
|
}
|
|
225
227
|
|
|
226
228
|
protected getValidSections(): string[] {
|
|
227
|
-
return
|
|
229
|
+
return this.wikiPageSectionsToRender.map((activity) =>
|
|
228
230
|
generateAnchorForActivity(activity),
|
|
229
231
|
);
|
|
230
232
|
}
|
|
231
233
|
|
|
234
|
+
get wikiPageSectionsToRender(): DATA_SPACE_VIEWER_ACTIVITY_MODE[] {
|
|
235
|
+
if (this.referencedDataProductPaths.length > 0) {
|
|
236
|
+
return DATA_SPACE_WIKI_PAGE_SECTIONS;
|
|
237
|
+
}
|
|
238
|
+
return DATA_SPACE_WIKI_PAGE_SECTIONS.filter(
|
|
239
|
+
(section) =>
|
|
240
|
+
section !== DATA_SPACE_VIEWER_ACTIVITY_MODE.DATASPACE_LAKEHOUSE_ACCESS,
|
|
241
|
+
);
|
|
242
|
+
}
|
|
243
|
+
|
|
232
244
|
get isVerified(): boolean {
|
|
233
245
|
return Boolean(
|
|
234
246
|
this.dataSpaceAnalysisResult.stereotypes.find(
|
|
@@ -356,6 +368,28 @@ export class DataSpaceViewerState extends BaseViewerState<
|
|
|
356
368
|
}
|
|
357
369
|
}
|
|
358
370
|
|
|
371
|
+
private initReferencedDataProductAccessStates(): void {
|
|
372
|
+
for (const path of this.referencedDataProductPaths) {
|
|
373
|
+
this.buildDataProductAccessState(path);
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
get referencedDataProductPaths(): string[] {
|
|
378
|
+
const paths: string[] = [];
|
|
379
|
+
const seen = new Set<string>();
|
|
380
|
+
for (const metadata of this.dataSpaceAnalysisResult
|
|
381
|
+
.dataSpaceReferencesMetadataInfo) {
|
|
382
|
+
if (
|
|
383
|
+
metadata instanceof DataproductReferenceMetadata &&
|
|
384
|
+
!seen.has(metadata.dataproductPath)
|
|
385
|
+
) {
|
|
386
|
+
seen.add(metadata.dataproductPath);
|
|
387
|
+
paths.push(metadata.dataproductPath);
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
return paths;
|
|
391
|
+
}
|
|
392
|
+
|
|
359
393
|
/**
|
|
360
394
|
* Looks up the initialized access state for a Data Product path (may still
|
|
361
395
|
* be initializing). Used by executable renderers to grab the state for a
|
|
@@ -436,7 +470,7 @@ export class DataSpaceViewerState extends BaseViewerState<
|
|
|
436
470
|
(activity) => generateAnchorForActivity(activity) === activityChunk,
|
|
437
471
|
);
|
|
438
472
|
if (activityChunk && matchingActivity) {
|
|
439
|
-
if (
|
|
473
|
+
if (this.wikiPageSectionsToRender.includes(matchingActivity)) {
|
|
440
474
|
this.layoutState.setWikiPageAnchorToNavigate({
|
|
441
475
|
anchor: zone,
|
|
442
476
|
});
|
package/tsconfig.json
CHANGED
|
@@ -103,6 +103,7 @@
|
|
|
103
103
|
"./src/components/DataSpaceDescription.tsx",
|
|
104
104
|
"./src/components/DataSpaceExecutionContextViewer.tsx",
|
|
105
105
|
"./src/components/DataSpaceInfoPanel.tsx",
|
|
106
|
+
"./src/components/DataSpaceLakehouseAccess.tsx",
|
|
106
107
|
"./src/components/DataSpaceLegendAIIntegration.tsx",
|
|
107
108
|
"./src/components/DataSpaceMarkdownTextViewer.tsx",
|
|
108
109
|
"./src/components/DataSpacePlaceholder.tsx",
|