@finos/legend-extension-dsl-data-space 10.0.10 → 10.0.12
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/__lib__/DSL_DataSpace_LegendApplicationCommand.d.ts +28 -0
- package/lib/__lib__/DSL_DataSpace_LegendApplicationCommand.d.ts.map +1 -0
- package/lib/__lib__/DSL_DataSpace_LegendApplicationCommand.js +70 -0
- package/lib/__lib__/DSL_DataSpace_LegendApplicationCommand.js.map +1 -0
- package/lib/__lib__/DSL_DataSpace_LegendApplicationNavigation.d.ts +20 -0
- package/lib/__lib__/DSL_DataSpace_LegendApplicationNavigation.d.ts.map +1 -0
- package/lib/__lib__/DSL_DataSpace_LegendApplicationNavigation.js +21 -0
- package/lib/__lib__/DSL_DataSpace_LegendApplicationNavigation.js.map +1 -0
- package/lib/components/DSL_DataSpace_LegendApplicationPlugin.d.ts +5 -2
- package/lib/components/DSL_DataSpace_LegendApplicationPlugin.d.ts.map +1 -1
- package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js +47 -1
- package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js.map +1 -1
- package/lib/components/DataSpaceDataAccess.d.ts.map +1 -1
- package/lib/components/DataSpaceDataAccess.js +5 -76
- package/lib/components/DataSpaceDataAccess.js.map +1 -1
- package/lib/components/DataSpaceDescription.d.ts.map +1 -1
- package/lib/components/DataSpaceDescription.js +2 -1
- package/lib/components/DataSpaceDescription.js.map +1 -1
- package/lib/components/DataSpaceDiagramViewer.d.ts.map +1 -1
- package/lib/components/DataSpaceDiagramViewer.js +110 -39
- package/lib/components/DataSpaceDiagramViewer.js.map +1 -1
- package/lib/components/DataSpaceExecutionContextViewer.d.ts.map +1 -1
- package/lib/components/DataSpaceExecutionContextViewer.js +3 -3
- package/lib/components/DataSpaceExecutionContextViewer.js.map +1 -1
- package/lib/components/DataSpaceInfoPanel.d.ts.map +1 -1
- package/lib/components/DataSpaceInfoPanel.js +6 -6
- package/lib/components/DataSpaceInfoPanel.js.map +1 -1
- package/lib/components/DataSpaceModelsDocumentation.d.ts.map +1 -1
- package/lib/components/DataSpaceModelsDocumentation.js +18 -8
- package/lib/components/DataSpaceModelsDocumentation.js.map +1 -1
- package/lib/components/DataSpacePlaceholder.d.ts +4 -0
- package/lib/components/DataSpacePlaceholder.d.ts.map +1 -1
- package/lib/components/DataSpacePlaceholder.js +6 -1
- package/lib/components/DataSpacePlaceholder.js.map +1 -1
- package/lib/components/DataSpaceQuickStart.d.ts.map +1 -1
- package/lib/components/DataSpaceQuickStart.js +24 -11
- package/lib/components/DataSpaceQuickStart.js.map +1 -1
- package/lib/components/DataSpaceSupportPanel.d.ts.map +1 -1
- package/lib/components/DataSpaceSupportPanel.js +17 -8
- package/lib/components/DataSpaceSupportPanel.js.map +1 -1
- package/lib/components/DataSpaceViewer.d.ts.map +1 -1
- package/lib/components/DataSpaceViewer.js +34 -13
- package/lib/components/DataSpaceViewer.js.map +1 -1
- package/lib/components/DataSpaceViewerActivityBar.d.ts.map +1 -1
- package/lib/components/DataSpaceViewerActivityBar.js +15 -12
- package/lib/components/DataSpaceViewerActivityBar.js.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +1 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.d.ts.map +1 -1
- package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.js +1 -0
- package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js +1 -1
- 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 +48 -0
- package/lib/stores/DataSpaceLayoutState.d.ts.map +1 -0
- package/lib/stores/DataSpaceLayoutState.js +185 -0
- package/lib/stores/DataSpaceLayoutState.js.map +1 -0
- package/lib/stores/DataSpaceModelsDocumentationState.d.ts +11 -2
- package/lib/stores/DataSpaceModelsDocumentationState.d.ts.map +1 -1
- package/lib/stores/DataSpaceModelsDocumentationState.js +41 -0
- package/lib/stores/DataSpaceModelsDocumentationState.js.map +1 -1
- package/lib/stores/DataSpaceQuickStartState.d.ts +24 -0
- package/lib/stores/DataSpaceQuickStartState.d.ts.map +1 -0
- package/lib/stores/DataSpaceQuickStartState.js +48 -0
- package/lib/stores/DataSpaceQuickStartState.js.map +1 -0
- package/lib/stores/DataSpaceViewerDiagramViewerState.d.ts +44 -0
- package/lib/stores/DataSpaceViewerDiagramViewerState.d.ts.map +1 -0
- package/lib/stores/DataSpaceViewerDiagramViewerState.js +194 -0
- package/lib/stores/DataSpaceViewerDiagramViewerState.js.map +1 -0
- package/lib/stores/DataSpaceViewerNavigation.d.ts +36 -0
- package/lib/stores/DataSpaceViewerNavigation.d.ts.map +1 -0
- package/lib/stores/DataSpaceViewerNavigation.js +47 -0
- package/lib/stores/DataSpaceViewerNavigation.js.map +1 -0
- package/lib/stores/DataSpaceViewerState.d.ts +22 -74
- package/lib/stores/DataSpaceViewerState.d.ts.map +1 -1
- package/lib/stores/DataSpaceViewerState.js +34 -259
- package/lib/stores/DataSpaceViewerState.js.map +1 -1
- package/lib/stores/query/DataSpaceAdvancedSearchState.d.ts.map +1 -1
- package/lib/stores/query/DataSpaceAdvancedSearchState.js +8 -5
- package/lib/stores/query/DataSpaceAdvancedSearchState.js.map +1 -1
- package/lib/stores/query/DataSpaceQueryCreatorStore.d.ts +8 -8
- package/lib/stores/query/DataSpaceQueryCreatorStore.d.ts.map +1 -1
- package/lib/stores/query/DataSpaceQueryCreatorStore.js +1 -1
- package/lib/stores/query/DataSpaceQueryCreatorStore.js.map +1 -1
- package/lib/stores/query/DataSpaceQuerySetupStore.d.ts +1 -1
- package/lib/stores/query/DataSpaceQuerySetupStore.d.ts.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.map +1 -1
- package/lib/stores/studio/DataSpacePreviewState.js +15 -3
- package/lib/stores/studio/DataSpacePreviewState.js.map +1 -1
- package/package.json +13 -13
- package/src/__lib__/DSL_DataSpace_LegendApplicationCommand.ts +74 -0
- package/src/__lib__/DSL_DataSpace_LegendApplicationNavigation.ts +33 -0
- package/src/components/DSL_DataSpace_LegendApplicationPlugin.tsx +116 -0
- package/src/components/DataSpaceDataAccess.tsx +9 -122
- package/src/components/DataSpaceDescription.tsx +5 -5
- package/src/components/DataSpaceDiagramViewer.tsx +449 -69
- package/src/components/DataSpaceExecutionContextViewer.tsx +47 -40
- package/src/components/DataSpaceInfoPanel.tsx +107 -117
- package/src/components/DataSpaceModelsDocumentation.tsx +31 -12
- package/src/components/DataSpacePlaceholder.tsx +22 -0
- package/src/components/DataSpaceQuickStart.tsx +95 -15
- package/src/components/DataSpaceSupportPanel.tsx +146 -14
- package/src/components/DataSpaceViewer.tsx +153 -23
- package/src/components/DataSpaceViewerActivityBar.tsx +40 -20
- package/src/components/index.ts +1 -0
- package/src/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.tsx +1 -0
- package/src/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.ts +1 -1
- package/src/stores/DataSpaceLayoutState.ts +272 -0
- package/src/stores/DataSpaceModelsDocumentationState.ts +61 -2
- package/src/stores/DataSpaceQuickStartState.ts +91 -0
- package/src/stores/DataSpaceViewerDiagramViewerState.ts +245 -0
- package/src/stores/DataSpaceViewerNavigation.ts +64 -0
- package/src/stores/DataSpaceViewerState.ts +88 -401
- package/src/stores/query/DataSpaceAdvancedSearchState.ts +30 -6
- package/src/stores/query/DataSpaceQueryCreatorStore.ts +8 -8
- package/src/stores/query/DataSpaceQuerySetupStore.ts +1 -1
- package/src/stores/studio/DataSpacePreviewState.ts +27 -5
- package/tsconfig.json +7 -2
- package/lib/stores/DataSpaceViewerDataAccessState.d.ts +0 -35
- package/lib/stores/DataSpaceViewerDataAccessState.d.ts.map +0 -1
- package/lib/stores/DataSpaceViewerDataAccessState.js +0 -98
- package/lib/stores/DataSpaceViewerDataAccessState.js.map +0 -1
- package/src/components/DSL_DataSpace_LegendApplicationPlugin.ts +0 -45
- package/src/stores/DataSpaceViewerDataAccessState.ts +0 -143
|
@@ -14,60 +14,14 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { type GenericLegendApplicationStore, type NavigationZone } from '@finos/legend-application';
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import type { BasicGraphManagerState, GraphData, PackageableRuntime } from '@finos/legend-graph';
|
|
20
|
-
import type { DataSpaceAnalysisResult, DataSpaceDiagramAnalysisResult, DataSpaceExecutableAnalysisResult, DataSpaceExecutionContextAnalysisResult } from '../graph-manager/action/analytics/DataSpaceAnalysis.js';
|
|
21
|
-
import { DataSpaceViewerDataAccessState } from './DataSpaceViewerDataAccessState.js';
|
|
17
|
+
import type { BasicGraphManagerState, Class, GraphData, PackageableRuntime } from '@finos/legend-graph';
|
|
18
|
+
import type { DataSpaceAnalysisResult, DataSpaceExecutionContextAnalysisResult } from '../graph-manager/action/analytics/DataSpaceAnalysis.js';
|
|
22
19
|
import { DataSpaceViewerModelsDocumentationState } from './DataSpaceModelsDocumentationState.js';
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
EXECUTION_CONTEXT = "execution-context",
|
|
29
|
-
DATA_ACCESS = "data-access",
|
|
30
|
-
DATA_STORES = "data-stores",
|
|
31
|
-
DATA_AVAILABILITY = "data-availability",
|
|
32
|
-
DATA_READINESS = "data-readiness",
|
|
33
|
-
DATA_COST = "data-cost",
|
|
34
|
-
DATA_GOVERNANCE = "data-governance",
|
|
35
|
-
INFO = "info",
|
|
36
|
-
SUPPORT = "support"
|
|
37
|
-
}
|
|
38
|
-
export declare const generateAnchorForActivity: (activity: string) => string;
|
|
39
|
-
export declare const extractActivityFromAnchor: (anchor: string) => string;
|
|
40
|
-
export declare const generateAnchorForQuickStart: (quickStart: DataSpaceExecutableAnalysisResult) => string;
|
|
41
|
-
export declare const generateAnchorForDiagram: (diagram: DataSpaceDiagramAnalysisResult) => string;
|
|
42
|
-
export declare const DATA_SPACE_WIKI_PAGE_SECTIONS: DATA_SPACE_VIEWER_ACTIVITY_MODE[];
|
|
43
|
-
type DataSpacePageNavigationCommand = {
|
|
44
|
-
anchor: string;
|
|
45
|
-
};
|
|
46
|
-
declare class DataSpaceLayoutState {
|
|
47
|
-
readonly dataSpaceViewerState: DataSpaceViewerState;
|
|
48
|
-
currentNavigationZone: string;
|
|
49
|
-
isExpandedModeEnabled: boolean;
|
|
50
|
-
frame?: HTMLElement | undefined;
|
|
51
|
-
header?: HTMLElement | undefined;
|
|
52
|
-
isTopScrollerVisible: boolean;
|
|
53
|
-
private wikiPageAnchorIndex;
|
|
54
|
-
wikiPageNavigationCommand?: DataSpacePageNavigationCommand | undefined;
|
|
55
|
-
private wikiPageVisibleAnchors;
|
|
56
|
-
private wikiPageScrollIntersectionObserver?;
|
|
57
|
-
constructor(dataSpaceViewerState: DataSpaceViewerState);
|
|
58
|
-
setCurrentNavigationZone(val: string): void;
|
|
59
|
-
get isWikiPageFullyRendered(): boolean;
|
|
60
|
-
registerWikiPageScrollObserver(): void;
|
|
61
|
-
unregisterWikiPageScrollObserver(): void;
|
|
62
|
-
private updatePageVisibleAnchors;
|
|
63
|
-
enableExpandedMode(val: boolean): void;
|
|
64
|
-
setFrame(val: HTMLElement | undefined): void;
|
|
65
|
-
setTopScrollerVisible(val: boolean): void;
|
|
66
|
-
setWikiPageAnchor(anchorKey: string, element: HTMLElement): void;
|
|
67
|
-
unsetWikiPageAnchor(anchorKey: string): void;
|
|
68
|
-
setWikiPageAnchorToNavigate(val: DataSpacePageNavigationCommand | undefined): void;
|
|
69
|
-
navigateWikiPageAnchor(): void;
|
|
70
|
-
}
|
|
20
|
+
import { DataSpaceViewerDiagramViewerState } from './DataSpaceViewerDiagramViewerState.js';
|
|
21
|
+
import { DataSpaceLayoutState } from './DataSpaceLayoutState.js';
|
|
22
|
+
import { DATA_SPACE_VIEWER_ACTIVITY_MODE } from './DataSpaceViewerNavigation.js';
|
|
23
|
+
import { DataAccessState } from '@finos/legend-query-builder';
|
|
24
|
+
import { DataSpaceQuickStartState } from './DataSpaceQuickStartState.js';
|
|
71
25
|
export declare class DataSpaceViewerState {
|
|
72
26
|
readonly applicationStore: GenericLegendApplicationStore;
|
|
73
27
|
readonly graphManagerState: BasicGraphManagerState;
|
|
@@ -76,40 +30,34 @@ export declare class DataSpaceViewerState {
|
|
|
76
30
|
readonly groupId: string;
|
|
77
31
|
readonly artifactId: string;
|
|
78
32
|
readonly versionId: string;
|
|
79
|
-
readonly
|
|
80
|
-
readonly
|
|
81
|
-
readonly
|
|
82
|
-
readonly
|
|
33
|
+
readonly retrieveGraphData: () => GraphData;
|
|
34
|
+
readonly queryDataSpace: (executionContextKey: string) => void;
|
|
35
|
+
readonly viewProject: (path: string | undefined) => void;
|
|
36
|
+
readonly viewSDLCProject: (path: string | undefined) => Promise<void>;
|
|
83
37
|
readonly onZoneChange?: ((zone: NavigationZone | undefined) => void) | undefined;
|
|
38
|
+
readonly queryClass: (_class: Class) => void;
|
|
39
|
+
readonly openServiceQuery: (servicePath: string) => void;
|
|
40
|
+
readonly diagramViewerState: DataSpaceViewerDiagramViewerState;
|
|
84
41
|
readonly modelsDocumentationState: DataSpaceViewerModelsDocumentationState;
|
|
85
|
-
readonly
|
|
86
|
-
_renderer?: DiagramRenderer | undefined;
|
|
42
|
+
readonly quickStartState: DataSpaceQuickStartState;
|
|
87
43
|
currentActivity: DATA_SPACE_VIEWER_ACTIVITY_MODE;
|
|
88
|
-
|
|
44
|
+
currentDataAccessState: DataAccessState;
|
|
89
45
|
currentExecutionContext: DataSpaceExecutionContextAnalysisResult;
|
|
90
46
|
currentRuntime: PackageableRuntime;
|
|
91
|
-
TEMPORARY__enableExperimentalFeatures: boolean;
|
|
92
47
|
constructor(applicationStore: GenericLegendApplicationStore, graphManagerState: BasicGraphManagerState, groupId: string, artifactId: string, versionId: string, dataSpaceAnalysisResult: DataSpaceAnalysisResult, actions: {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
48
|
+
retrieveGraphData: () => GraphData;
|
|
49
|
+
queryDataSpace: (executionContextKey: string) => void;
|
|
50
|
+
viewProject: (path: string | undefined) => void;
|
|
51
|
+
viewSDLCProject: (path: string | undefined) => Promise<void>;
|
|
52
|
+
queryClass: (_class: Class) => void;
|
|
53
|
+
openServiceQuery: (servicePath: string) => void;
|
|
97
54
|
onZoneChange?: ((zone: NavigationZone | undefined) => void) | undefined;
|
|
98
|
-
}, options?: {
|
|
99
|
-
TEMPORARY__enableExperimentalFeatures?: boolean | undefined;
|
|
100
55
|
});
|
|
101
|
-
get diagramRenderer(): DiagramRenderer;
|
|
102
|
-
get isDiagramRendererInitialized(): boolean;
|
|
103
|
-
get diagramCursorClass(): string;
|
|
104
56
|
get isVerified(): boolean;
|
|
105
|
-
setDiagramRenderer(val: DiagramRenderer): void;
|
|
106
|
-
setCurrentDiagram(val: DataSpaceDiagramAnalysisResult): void;
|
|
107
57
|
setCurrentActivity(val: DATA_SPACE_VIEWER_ACTIVITY_MODE): void;
|
|
108
58
|
setCurrentExecutionContext(val: DataSpaceExecutionContextAnalysisResult): void;
|
|
109
59
|
setCurrentRuntime(val: PackageableRuntime): void;
|
|
110
|
-
setupDiagramRenderer(): void;
|
|
111
60
|
syncZoneWithNavigation(zone: NavigationZone): void;
|
|
112
61
|
changeZone(zone: NavigationZone, force?: boolean): void;
|
|
113
62
|
}
|
|
114
|
-
export {};
|
|
115
63
|
//# sourceMappingURL=DataSpaceViewerState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceViewerState.d.ts","sourceRoot":"","sources":["../../src/stores/DataSpaceViewerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,6BAA6B,EAClC,KAAK,cAAc,EACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,
|
|
1
|
+
{"version":3,"file":"DataSpaceViewerState.d.ts","sourceRoot":"","sources":["../../src/stores/DataSpaceViewerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,6BAA6B,EAClC,KAAK,cAAc,EACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EACV,sBAAsB,EACtB,KAAK,EAGL,SAAS,EACT,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,EACV,uBAAuB,EACvB,uCAAuC,EACxC,MAAM,wDAAwD,CAAC;AAKhE,OAAO,EAAE,uCAAuC,EAAE,MAAM,wCAAwC,CAAC;AACjG,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAEL,oBAAoB,EACrB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,+BAA+B,EAEhC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,qBAAa,oBAAoB;IAC/B,QAAQ,CAAC,gBAAgB,EAAE,6BAA6B,CAAC;IACzD,QAAQ,CAAC,iBAAiB,EAAE,sBAAsB,CAAC;IACnD,QAAQ,CAAC,WAAW,EAAE,oBAAoB,CAAC;IAE3C,QAAQ,CAAC,uBAAuB,EAAE,uBAAuB,CAAC;IAC1D,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,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SAAS,KAAK,IAAI,CAAC;QAChD,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;QAC7D,UAAU,EAAE,CAAC,MAAM,EAAE,KAAK,KAAK,IAAI,CAAC;QACpC,gBAAgB,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;QAChD,YAAY,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;KACzE;IAgEH,IAAI,UAAU,IAAI,OAAO,CAQxB;IAED,kBAAkB,CAAC,GAAG,EAAE,+BAA+B,GAAG,IAAI;IAI9D,0BAA0B,CACxB,GAAG,EAAE,uCAAuC,GAC3C,IAAI;IA6BP,iBAAiB,CAAC,GAAG,EAAE,kBAAkB,GAAG,IAAI;IAIhD,sBAAsB,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI;IAKlD,UAAU,CAAC,IAAI,EAAE,cAAc,EAAE,KAAK,UAAQ,GAAG,IAAI;CA2BtD"}
|
|
@@ -14,207 +14,15 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { NAVIGATION_ZONE_SEPARATOR, } from '@finos/legend-application';
|
|
17
|
-
import {} from '@finos/legend-
|
|
18
|
-
import { DIAGRAM_INTERACTION_MODE, } from '@finos/legend-extension-dsl-diagram/application';
|
|
19
|
-
import { getNonNullableEnry, getNullableEntry, getNullableFirstEntry, guaranteeNonNullable, isNonNullable, } from '@finos/legend-shared';
|
|
17
|
+
import { getNullableEntry } from '@finos/legend-shared';
|
|
20
18
|
import { action, computed, makeObservable, observable } from 'mobx';
|
|
21
19
|
import { PURE_DATA_SPACE_INFO_PROFILE_PATH, PURE_DATA_SPACE_INFO_PROFILE_VERIFIED_STEREOTYPE, } from '../graph-manager/DSL_DataSpace_PureGraphManagerPlugin.js';
|
|
22
|
-
import { DataSpaceViewerDataAccessState } from './DataSpaceViewerDataAccessState.js';
|
|
23
20
|
import { DataSpaceViewerModelsDocumentationState } from './DataSpaceModelsDocumentationState.js';
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
DATA_SPACE_VIEWER_ACTIVITY_MODE["QUICK_START"] = "quick-start";
|
|
30
|
-
DATA_SPACE_VIEWER_ACTIVITY_MODE["EXECUTION_CONTEXT"] = "execution-context";
|
|
31
|
-
DATA_SPACE_VIEWER_ACTIVITY_MODE["DATA_ACCESS"] = "data-access";
|
|
32
|
-
DATA_SPACE_VIEWER_ACTIVITY_MODE["DATA_STORES"] = "data-stores";
|
|
33
|
-
DATA_SPACE_VIEWER_ACTIVITY_MODE["DATA_AVAILABILITY"] = "data-availability";
|
|
34
|
-
DATA_SPACE_VIEWER_ACTIVITY_MODE["DATA_READINESS"] = "data-readiness";
|
|
35
|
-
DATA_SPACE_VIEWER_ACTIVITY_MODE["DATA_COST"] = "data-cost";
|
|
36
|
-
DATA_SPACE_VIEWER_ACTIVITY_MODE["DATA_GOVERNANCE"] = "data-governance";
|
|
37
|
-
DATA_SPACE_VIEWER_ACTIVITY_MODE["INFO"] = "info";
|
|
38
|
-
DATA_SPACE_VIEWER_ACTIVITY_MODE["SUPPORT"] = "support";
|
|
39
|
-
})(DATA_SPACE_VIEWER_ACTIVITY_MODE = DATA_SPACE_VIEWER_ACTIVITY_MODE || (DATA_SPACE_VIEWER_ACTIVITY_MODE = {}));
|
|
40
|
-
const generateAnchorChunk = (text) => encodeURIComponent(text
|
|
41
|
-
.trim()
|
|
42
|
-
.toLowerCase() // anchor is case-insensitive
|
|
43
|
-
.replace(/\s+/gu, '-'));
|
|
44
|
-
export const generateAnchorForActivity = (activity) => generateAnchorChunk(activity);
|
|
45
|
-
export const extractActivityFromAnchor = (anchor) => decodeURIComponent(anchor);
|
|
46
|
-
export const generateAnchorForQuickStart = (quickStart) => [
|
|
47
|
-
DATA_SPACE_VIEWER_ACTIVITY_MODE.QUICK_START,
|
|
48
|
-
generateAnchorChunk(quickStart.title),
|
|
49
|
-
].join(NAVIGATION_ZONE_SEPARATOR);
|
|
50
|
-
export const generateAnchorForDiagram = (diagram) => [
|
|
51
|
-
DATA_SPACE_VIEWER_ACTIVITY_MODE.DIAGRAM_VIEWER,
|
|
52
|
-
generateAnchorChunk(diagram.title),
|
|
53
|
-
].join(NAVIGATION_ZONE_SEPARATOR);
|
|
54
|
-
export const DATA_SPACE_WIKI_PAGE_SECTIONS = [
|
|
55
|
-
DATA_SPACE_VIEWER_ACTIVITY_MODE.DESCRIPTION,
|
|
56
|
-
DATA_SPACE_VIEWER_ACTIVITY_MODE.DIAGRAM_VIEWER,
|
|
57
|
-
DATA_SPACE_VIEWER_ACTIVITY_MODE.MODELS_DOCUMENTATION,
|
|
58
|
-
DATA_SPACE_VIEWER_ACTIVITY_MODE.QUICK_START,
|
|
59
|
-
DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_ACCESS,
|
|
60
|
-
];
|
|
61
|
-
const DATA_SPACE_WIKI_PAGE_ANCHORS = DATA_SPACE_WIKI_PAGE_SECTIONS.map((activity) => generateAnchorForActivity(activity));
|
|
62
|
-
class DataSpaceLayoutState {
|
|
63
|
-
dataSpaceViewerState;
|
|
64
|
-
currentNavigationZone = '';
|
|
65
|
-
isExpandedModeEnabled = false;
|
|
66
|
-
frame;
|
|
67
|
-
header;
|
|
68
|
-
isTopScrollerVisible = false;
|
|
69
|
-
wikiPageAnchorIndex = new Map();
|
|
70
|
-
wikiPageNavigationCommand;
|
|
71
|
-
wikiPageVisibleAnchors = [];
|
|
72
|
-
wikiPageScrollIntersectionObserver;
|
|
73
|
-
constructor(dataSpaceViewerState) {
|
|
74
|
-
makeObservable(this, {
|
|
75
|
-
currentNavigationZone: observable,
|
|
76
|
-
isExpandedModeEnabled: observable,
|
|
77
|
-
isTopScrollerVisible: observable,
|
|
78
|
-
wikiPageAnchorIndex: observable,
|
|
79
|
-
wikiPageVisibleAnchors: observable,
|
|
80
|
-
frame: observable.ref,
|
|
81
|
-
wikiPageNavigationCommand: observable.ref,
|
|
82
|
-
isWikiPageFullyRendered: computed,
|
|
83
|
-
registerWikiPageScrollObserver: action,
|
|
84
|
-
setCurrentNavigationZone: action,
|
|
85
|
-
enableExpandedMode: action,
|
|
86
|
-
setFrame: action,
|
|
87
|
-
setTopScrollerVisible: action,
|
|
88
|
-
setWikiPageAnchor: action,
|
|
89
|
-
unsetWikiPageAnchor: action,
|
|
90
|
-
setWikiPageAnchorToNavigate: action,
|
|
91
|
-
updatePageVisibleAnchors: action,
|
|
92
|
-
});
|
|
93
|
-
this.dataSpaceViewerState = dataSpaceViewerState;
|
|
94
|
-
}
|
|
95
|
-
setCurrentNavigationZone(val) {
|
|
96
|
-
this.currentNavigationZone = val;
|
|
97
|
-
}
|
|
98
|
-
get isWikiPageFullyRendered() {
|
|
99
|
-
return (Boolean(this.frame) &&
|
|
100
|
-
DATA_SPACE_WIKI_PAGE_SECTIONS.includes(this.dataSpaceViewerState.currentActivity) &&
|
|
101
|
-
DATA_SPACE_WIKI_PAGE_ANCHORS.every((anchor) => this.wikiPageAnchorIndex.has(anchor)) &&
|
|
102
|
-
Array.from(this.wikiPageAnchorIndex.values()).every(isNonNullable));
|
|
103
|
-
}
|
|
104
|
-
registerWikiPageScrollObserver() {
|
|
105
|
-
if (this.frame && this.isWikiPageFullyRendered) {
|
|
106
|
-
const wikiPageIntersectionObserver = new IntersectionObserver((entries, observer) => {
|
|
107
|
-
const anchorsWithVisibilityChanged = entries
|
|
108
|
-
.map((entry) => {
|
|
109
|
-
for (const [key, element] of this.wikiPageAnchorIndex.entries()) {
|
|
110
|
-
if (element === entry.target) {
|
|
111
|
-
return { key, isIntersecting: entry.isIntersecting };
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
return undefined;
|
|
115
|
-
})
|
|
116
|
-
.filter(isNonNullable);
|
|
117
|
-
anchorsWithVisibilityChanged.forEach((entry) => {
|
|
118
|
-
this.updatePageVisibleAnchors(entry.key, entry.isIntersecting);
|
|
119
|
-
});
|
|
120
|
-
// NOTE: sync scroll with menu/address is quite a delicate piece of work
|
|
121
|
-
// as it interferes with programatic scroll operations we do elsewhere.
|
|
122
|
-
// This is particularly bad when we do a programatic `smooth` scroll, which
|
|
123
|
-
// mimic user scrolling behavior and would tangle up with this observer
|
|
124
|
-
// Since currently, there's no good mechanism to detect scroll end event, and as such,
|
|
125
|
-
// there is no good way to temporarily disable this logic while doing the programmatic
|
|
126
|
-
// smooth scroll as such, we avoid supporting programatic smooth scrolling for now
|
|
127
|
-
// See https://github.com/w3c/csswg-drafts/issues/3744
|
|
128
|
-
// See https://developer.mozilla.org/en-US/docs/Web/API/Document/scrollend_event
|
|
129
|
-
if (
|
|
130
|
-
// if current navigation zone is not set, do not update zone
|
|
131
|
-
this.currentNavigationZone === '' ||
|
|
132
|
-
// if there is no visible anchors, do not update zone
|
|
133
|
-
!this.wikiPageVisibleAnchors.length ||
|
|
134
|
-
// if some of the current visible anchors match or is parent section of the current
|
|
135
|
-
// navigation zone, do not update zone
|
|
136
|
-
this.wikiPageVisibleAnchors.some((visibleAnchor) => this.currentNavigationZone === visibleAnchor ||
|
|
137
|
-
this.currentNavigationZone.startsWith(`${visibleAnchor}${NAVIGATION_ZONE_SEPARATOR}`))) {
|
|
138
|
-
return;
|
|
139
|
-
}
|
|
140
|
-
const anchor = getNonNullableEnry(this.wikiPageVisibleAnchors, 0);
|
|
141
|
-
this.dataSpaceViewerState.syncZoneWithNavigation(anchor);
|
|
142
|
-
const anchorChunks = anchor.split(NAVIGATION_ZONE_SEPARATOR);
|
|
143
|
-
const activity = getNullableFirstEntry(anchorChunks);
|
|
144
|
-
if (activity) {
|
|
145
|
-
this.dataSpaceViewerState.setCurrentActivity(extractActivityFromAnchor(activity));
|
|
146
|
-
}
|
|
147
|
-
}, {
|
|
148
|
-
root: this.frame,
|
|
149
|
-
threshold: 0.5,
|
|
150
|
-
});
|
|
151
|
-
Array.from(this.wikiPageAnchorIndex.values()).forEach((el) => wikiPageIntersectionObserver.observe(el));
|
|
152
|
-
this.wikiPageScrollIntersectionObserver = wikiPageIntersectionObserver;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
unregisterWikiPageScrollObserver() {
|
|
156
|
-
this.wikiPageScrollIntersectionObserver?.disconnect();
|
|
157
|
-
this.wikiPageScrollIntersectionObserver = undefined;
|
|
158
|
-
this.wikiPageVisibleAnchors = [];
|
|
159
|
-
}
|
|
160
|
-
updatePageVisibleAnchors(changedAnchor, isIntersecting) {
|
|
161
|
-
if (isIntersecting) {
|
|
162
|
-
const anchors = this.wikiPageVisibleAnchors.filter((anchor) => changedAnchor !== anchor);
|
|
163
|
-
// NOTE: the newly visible anchors should be the furthest one in
|
|
164
|
-
// the direction of scroll
|
|
165
|
-
anchors.push(changedAnchor);
|
|
166
|
-
this.wikiPageVisibleAnchors = anchors;
|
|
167
|
-
}
|
|
168
|
-
else {
|
|
169
|
-
this.wikiPageVisibleAnchors = this.wikiPageVisibleAnchors.filter((anchor) => changedAnchor !== anchor);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
enableExpandedMode(val) {
|
|
173
|
-
this.isExpandedModeEnabled = val;
|
|
174
|
-
}
|
|
175
|
-
setFrame(val) {
|
|
176
|
-
this.frame = val;
|
|
177
|
-
}
|
|
178
|
-
setTopScrollerVisible(val) {
|
|
179
|
-
this.isTopScrollerVisible = val;
|
|
180
|
-
}
|
|
181
|
-
setWikiPageAnchor(anchorKey, element) {
|
|
182
|
-
// do not allow overriding existing anchor
|
|
183
|
-
if (!this.wikiPageAnchorIndex.has(anchorKey)) {
|
|
184
|
-
this.wikiPageAnchorIndex.set(anchorKey, element);
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
unsetWikiPageAnchor(anchorKey) {
|
|
188
|
-
this.wikiPageAnchorIndex.delete(anchorKey);
|
|
189
|
-
}
|
|
190
|
-
setWikiPageAnchorToNavigate(val) {
|
|
191
|
-
this.wikiPageNavigationCommand = val;
|
|
192
|
-
}
|
|
193
|
-
navigateWikiPageAnchor() {
|
|
194
|
-
if (this.frame &&
|
|
195
|
-
this.wikiPageNavigationCommand &&
|
|
196
|
-
this.isWikiPageFullyRendered) {
|
|
197
|
-
const anchor = this.wikiPageNavigationCommand.anchor;
|
|
198
|
-
const matchingWikiPageSection = this.wikiPageAnchorIndex.get(anchor);
|
|
199
|
-
const anchorChunks = anchor.split(NAVIGATION_ZONE_SEPARATOR);
|
|
200
|
-
if (matchingWikiPageSection) {
|
|
201
|
-
this.frame.scrollTop =
|
|
202
|
-
matchingWikiPageSection.offsetTop -
|
|
203
|
-
(this.header?.getBoundingClientRect().height ?? 0);
|
|
204
|
-
}
|
|
205
|
-
else if (getNullableFirstEntry(anchorChunks) ===
|
|
206
|
-
generateAnchorForActivity(DATA_SPACE_VIEWER_ACTIVITY_MODE.DIAGRAM_VIEWER)) {
|
|
207
|
-
this.frame.scrollTop =
|
|
208
|
-
guaranteeNonNullable(this.wikiPageAnchorIndex.get(generateAnchorForActivity(DATA_SPACE_VIEWER_ACTIVITY_MODE.DIAGRAM_VIEWER))).offsetTop - (this.header?.getBoundingClientRect().height ?? 0);
|
|
209
|
-
const matchingDiagram = this.dataSpaceViewerState.dataSpaceAnalysisResult.diagrams.find((diagram) => generateAnchorForDiagram(diagram) === anchor);
|
|
210
|
-
if (matchingDiagram) {
|
|
211
|
-
this.dataSpaceViewerState.setCurrentDiagram(matchingDiagram);
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
this.setWikiPageAnchorToNavigate(undefined);
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
}
|
|
21
|
+
import { DataSpaceViewerDiagramViewerState } from './DataSpaceViewerDiagramViewerState.js';
|
|
22
|
+
import { DATA_SPACE_WIKI_PAGE_SECTIONS, DataSpaceLayoutState, } from './DataSpaceLayoutState.js';
|
|
23
|
+
import { DATA_SPACE_VIEWER_ACTIVITY_MODE, generateAnchorForActivity, } from './DataSpaceViewerNavigation.js';
|
|
24
|
+
import { DataAccessState } from '@finos/legend-query-builder';
|
|
25
|
+
import { DataSpaceQuickStartState } from './DataSpaceQuickStartState.js';
|
|
218
26
|
export class DataSpaceViewerState {
|
|
219
27
|
applicationStore;
|
|
220
28
|
graphManagerState;
|
|
@@ -223,32 +31,27 @@ export class DataSpaceViewerState {
|
|
|
223
31
|
groupId;
|
|
224
32
|
artifactId;
|
|
225
33
|
versionId;
|
|
226
|
-
|
|
34
|
+
retrieveGraphData;
|
|
35
|
+
queryDataSpace;
|
|
227
36
|
viewProject;
|
|
228
37
|
viewSDLCProject;
|
|
229
|
-
onDiagramClassDoubleClick;
|
|
230
38
|
onZoneChange;
|
|
39
|
+
queryClass;
|
|
40
|
+
openServiceQuery;
|
|
41
|
+
diagramViewerState;
|
|
231
42
|
modelsDocumentationState;
|
|
232
|
-
|
|
233
|
-
dataAccessState;
|
|
234
|
-
// TODO: have a state similar to dataAccessState for each executables
|
|
235
|
-
_renderer;
|
|
43
|
+
quickStartState;
|
|
236
44
|
currentActivity = DATA_SPACE_VIEWER_ACTIVITY_MODE.DESCRIPTION;
|
|
237
|
-
|
|
45
|
+
currentDataAccessState;
|
|
238
46
|
currentExecutionContext;
|
|
239
47
|
currentRuntime;
|
|
240
|
-
|
|
241
|
-
constructor(applicationStore, graphManagerState, groupId, artifactId, versionId, dataSpaceAnalysisResult, actions, options) {
|
|
48
|
+
constructor(applicationStore, graphManagerState, groupId, artifactId, versionId, dataSpaceAnalysisResult, actions) {
|
|
242
49
|
makeObservable(this, {
|
|
243
|
-
_renderer: observable,
|
|
244
|
-
currentDiagram: observable,
|
|
245
50
|
currentActivity: observable,
|
|
246
51
|
currentExecutionContext: observable,
|
|
247
52
|
currentRuntime: observable,
|
|
53
|
+
currentDataAccessState: observable,
|
|
248
54
|
isVerified: computed,
|
|
249
|
-
diagramRenderer: computed,
|
|
250
|
-
setDiagramRenderer: action,
|
|
251
|
-
setCurrentDiagram: action,
|
|
252
55
|
setCurrentActivity: action,
|
|
253
56
|
setCurrentExecutionContext: action,
|
|
254
57
|
setCurrentRuntime: action,
|
|
@@ -260,72 +63,44 @@ export class DataSpaceViewerState {
|
|
|
260
63
|
this.groupId = groupId;
|
|
261
64
|
this.artifactId = artifactId;
|
|
262
65
|
this.versionId = versionId;
|
|
263
|
-
this.
|
|
264
|
-
|
|
265
|
-
this.currentRuntime = this.currentExecutionContext.defaultRuntime;
|
|
266
|
-
this.currentDiagram = getNullableFirstEntry(this.dataSpaceAnalysisResult.diagrams);
|
|
267
|
-
this.retriveGraphData = actions.retriveGraphData;
|
|
66
|
+
this.retrieveGraphData = actions.retrieveGraphData;
|
|
67
|
+
this.queryDataSpace = actions.queryDataSpace;
|
|
268
68
|
this.viewProject = actions.viewProject;
|
|
269
69
|
this.viewSDLCProject = actions.viewSDLCProject;
|
|
270
|
-
this.onDiagramClassDoubleClick = actions.onDiagramClassDoubleClick;
|
|
271
70
|
this.onZoneChange = actions.onZoneChange;
|
|
272
|
-
this.
|
|
71
|
+
this.queryClass = actions.queryClass;
|
|
72
|
+
this.openServiceQuery = actions.openServiceQuery;
|
|
73
|
+
this.currentExecutionContext =
|
|
74
|
+
dataSpaceAnalysisResult.defaultExecutionContext;
|
|
75
|
+
this.currentRuntime = this.currentExecutionContext.defaultRuntime;
|
|
76
|
+
this.currentDataAccessState = new DataAccessState(this.applicationStore, this.graphManagerState, {
|
|
77
|
+
initialDatasets: this.currentExecutionContext.datasets,
|
|
78
|
+
surveyDatasets: async () => this.graphManagerState.graphManager.surveyDatasets(this.currentExecutionContext.mapping.path, this.currentExecutionContext.defaultRuntime.path, undefined, this.retrieveGraphData()),
|
|
79
|
+
checkDatasetEntitlements: async (datasets) => this.graphManagerState.graphManager.checkDatasetEntitlements(datasets, this.currentExecutionContext.mapping.path, this.currentExecutionContext.defaultRuntime.path, undefined, this.retrieveGraphData()),
|
|
80
|
+
});
|
|
273
81
|
this.modelsDocumentationState = new DataSpaceViewerModelsDocumentationState(this);
|
|
274
|
-
this.
|
|
275
|
-
|
|
276
|
-
get diagramRenderer() {
|
|
277
|
-
return guaranteeNonNullable(this._renderer, `Diagram renderer must be initialized (this is likely caused by calling this method at the wrong place)`);
|
|
278
|
-
}
|
|
279
|
-
get isDiagramRendererInitialized() {
|
|
280
|
-
return Boolean(this._renderer);
|
|
281
|
-
}
|
|
282
|
-
// NOTE: we have tried to use React to control the cursor and
|
|
283
|
-
// could not overcome the jank/lag problem, so we settle with CSS-based approach
|
|
284
|
-
// See https://css-tricks.com/using-css-cursors/
|
|
285
|
-
// See https://developer.mozilla.org/en-US/docs/Web/CSS/cursor
|
|
286
|
-
get diagramCursorClass() {
|
|
287
|
-
if (!this.isDiagramRendererInitialized) {
|
|
288
|
-
return '';
|
|
289
|
-
}
|
|
290
|
-
if (this.diagramRenderer.middleClick || this.diagramRenderer.rightClick) {
|
|
291
|
-
return 'diagram-editor__cursor--grabbing';
|
|
292
|
-
}
|
|
293
|
-
switch (this.diagramRenderer.interactionMode) {
|
|
294
|
-
case DIAGRAM_INTERACTION_MODE.LAYOUT: {
|
|
295
|
-
if (this.diagramRenderer.mouseOverClassView) {
|
|
296
|
-
return 'diagram-editor__cursor--pointer';
|
|
297
|
-
}
|
|
298
|
-
return '';
|
|
299
|
-
}
|
|
300
|
-
default:
|
|
301
|
-
return '';
|
|
302
|
-
}
|
|
82
|
+
this.diagramViewerState = new DataSpaceViewerDiagramViewerState(this);
|
|
83
|
+
this.quickStartState = new DataSpaceQuickStartState(this);
|
|
303
84
|
}
|
|
304
85
|
get isVerified() {
|
|
305
86
|
return Boolean(this.dataSpaceAnalysisResult.stereotypes.find((stereotype) => stereotype.profile === PURE_DATA_SPACE_INFO_PROFILE_PATH &&
|
|
306
87
|
stereotype.value === PURE_DATA_SPACE_INFO_PROFILE_VERIFIED_STEREOTYPE));
|
|
307
88
|
}
|
|
308
|
-
setDiagramRenderer(val) {
|
|
309
|
-
this._renderer = val;
|
|
310
|
-
}
|
|
311
|
-
setCurrentDiagram(val) {
|
|
312
|
-
this.currentDiagram = val;
|
|
313
|
-
}
|
|
314
89
|
setCurrentActivity(val) {
|
|
315
90
|
this.currentActivity = val;
|
|
316
91
|
}
|
|
317
92
|
setCurrentExecutionContext(val) {
|
|
318
93
|
this.currentExecutionContext = val;
|
|
319
94
|
this.currentRuntime = val.defaultRuntime;
|
|
95
|
+
this.currentDataAccessState = new DataAccessState(this.applicationStore, this.graphManagerState, {
|
|
96
|
+
initialDatasets: val.datasets,
|
|
97
|
+
surveyDatasets: async () => this.graphManagerState.graphManager.surveyDatasets(val.mapping.path, val.defaultRuntime.path, undefined, this.retrieveGraphData()),
|
|
98
|
+
checkDatasetEntitlements: async (datasets) => this.graphManagerState.graphManager.checkDatasetEntitlements(datasets, val.mapping.path, val.defaultRuntime.path, undefined, this.retrieveGraphData()),
|
|
99
|
+
});
|
|
320
100
|
}
|
|
321
101
|
setCurrentRuntime(val) {
|
|
322
102
|
this.currentRuntime = val;
|
|
323
103
|
}
|
|
324
|
-
setupDiagramRenderer() {
|
|
325
|
-
this.diagramRenderer.setIsReadOnly(true);
|
|
326
|
-
this.diagramRenderer.setEnableLayoutAutoAdjustment(true);
|
|
327
|
-
this.diagramRenderer.onClassViewDoubleClick = (classView) => this.onDiagramClassDoubleClick(classView);
|
|
328
|
-
}
|
|
329
104
|
syncZoneWithNavigation(zone) {
|
|
330
105
|
this.layoutState.setCurrentNavigationZone(zone);
|
|
331
106
|
this.onZoneChange?.(zone);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceViewerState.js","sourceRoot":"","sources":["../../src/stores/DataSpaceViewerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,yBAAyB,GAG1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAkB,MAAM,2CAA2C,CAAC;AAC3E,OAAO,EAEL,wBAAwB,GACzB,MAAM,iDAAiD,CAAC;AAMzD,OAAO,E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,EAAE;YACT,IAAI,CAAC,WAAW,CAAC,wBAAwB,CAAC,EAAE,CAAC,CAAC;SAC/C;QACD,IAAI,IAAI,KAAK,IAAI,CAAC,WAAW,CAAC,qBAAqB,EAAE;YACnD,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC;YACzD,MAAM,aAAa,GAAG,gBAAgB,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;YACtD,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CACpC,+BAA+B,CAChC,CAAC,IAAI,CACJ,CAAC,QAAQ,EAAE,EAAE,CAAC,yBAAyB,CAAC,QAAQ,CAAC,KAAK,aAAa,CACpE,CAAC;YACF,IAAI,aAAa,IAAI,gBAAgB,EAAE;gBACrC,IAAI,6BAA6B,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAAE;oBAC5D,IAAI,CAAC,WAAW,CAAC,2BAA2B,CAAC;wBAC3C,MAAM,EAAE,IAAI;qBACb,CAAC,CAAC;iBACJ;gBACD,IAAI,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;gBAC1C,IAAI,CAAC,YAAY,EAAE,CAAC,IAAI,CAAC,CAAC;gBAC1B,IAAI,CAAC,WAAW,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;aACjD;iBAAM;gBACL,IAAI,CAAC,kBAAkB,CAAC,+BAA+B,CAAC,WAAW,CAAC,CAAC;gBACrE,IAAI,CAAC,WAAW,CAAC,wBAAwB,CAAC,EAAE,CAAC,CAAC;aAC/C;SACF;IACH,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceAdvancedSearchState.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceAdvancedSearchState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"DataSpaceAdvancedSearchState.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DataSpa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AiB,EACpC,OAAO,EAAE;QACP,WAAW,EAAE,CACX,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,GAAG,SAAS,KAC3B,IAAI,CAAC;QACV,eAAe,EAAE,CACf,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,GAAG,SAAS,KAC3B,OAAO,CAAC,IAAI,CAAC,CAAC;KACpB,EACD,gBAAgB,CAAC,EAAE,aAAa,GAAG,SAAS,EAC5C,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS;IA0BrC,mBAAmB,CAAC,GAAG,EAAE,aAAa,GAAG,SAAS,GAAG,IAAI;IAIzD,uBAAuB,CAAC,GAAG,EAAE,oBAAoB,GAAG,SAAS,GAAG,IAAI;IAIpE,gBAAgB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAInC,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,WAAW,CAAC,IAAI,CAAC;IA2BrD,aAAa,CAAC,SAAS,EAAE,aAAa,GAAG,WAAW,CAAC,IAAI,CAAC;IA4F1D,oBAAoB,CAAC,MAAM,CAAC,EAAE,KAAK,GAAG,WAAW,CAAC,IAAI,CAAC;CAkBzD"}
|
|
@@ -24,6 +24,7 @@ import { generateDataSpaceQueryCreatorRoute } from '../../__lib__/query/DSL_Data
|
|
|
24
24
|
import { extractDataSpaceInfo } from './DataSpaceInfo.js';
|
|
25
25
|
import { DEFAULT_TYPEAHEAD_SEARCH_LIMIT, DEFAULT_TYPEAHEAD_SEARCH_MINIMUM_SEARCH_LENGTH, } from '@finos/legend-application';
|
|
26
26
|
import { retrieveAnalyticsResultCache } from '../../graph-manager/action/analytics/DataSpaceAnalysisHelper.js';
|
|
27
|
+
import { generateServiceQueryCreatorRoute } from '@finos/legend-application-query';
|
|
27
28
|
export class DataSpaceAdvancedSearchState {
|
|
28
29
|
applicationStore;
|
|
29
30
|
graphManagerState;
|
|
@@ -97,12 +98,14 @@ export class DataSpaceAdvancedSearchState {
|
|
|
97
98
|
// analyze data space
|
|
98
99
|
const analysisResult = (yield DSL_DataSpace_getGraphManagerExtension(this.graphManagerState.graphManager).analyzeDataSpace(dataSpace.path, () => retrieveProjectEntitiesWithDependencies(project, dataSpace.versionId, this.depotServerClient), () => retrieveAnalyticsResultCache(project, dataSpace.versionId, dataSpace.path, this.depotServerClient), this.loadDataSpaceState));
|
|
99
100
|
this.dataSpaceViewerState = new DataSpaceViewerState(this.applicationStore, this.graphManagerState, dataSpace.groupId, dataSpace.artifactId, dataSpace.versionId, analysisResult, {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
101
|
+
retrieveGraphData: () => new GraphDataWithOrigin(new LegendSDLC(dataSpace.groupId, dataSpace.artifactId, dataSpace.versionId)),
|
|
102
|
+
queryDataSpace: (executionContextKey) => generateDataSpaceQueryCreatorRoute(dataSpace.groupId, dataSpace.artifactId, dataSpace.versionId, analysisResult.path, executionContextKey),
|
|
103
|
+
viewProject: (path) => this.viewProject(dataSpace.groupId, dataSpace.artifactId, dataSpace.versionId, path),
|
|
104
|
+
viewSDLCProject: (path) => this.viewSDLCProject(dataSpace.groupId, dataSpace.artifactId, path),
|
|
105
|
+
queryClass: (_class) => {
|
|
106
|
+
this.proceedToCreateQuery(_class);
|
|
105
107
|
},
|
|
108
|
+
openServiceQuery: (servicePath) => this.applicationStore.navigationService.navigator.visitAddress(generateServiceQueryCreatorRoute(dataSpace.groupId, dataSpace.artifactId, dataSpace.versionId, servicePath)),
|
|
106
109
|
});
|
|
107
110
|
this.loadDataSpaceState.pass();
|
|
108
111
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceAdvancedSearchState.js","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceAdvancedSearchState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":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QueryDataSpaceTaggedValue: (dataSpacePath: string) => QueryTaggedValue;
|
|
22
22
|
export declare const createQueryClassTaggedValue: (classPath: string) => QueryTaggedValue;
|
|
23
23
|
export declare class DataSpaceQueryCreatorStore extends QueryEditorStore {
|
|
24
|
-
groupId: string;
|
|
25
|
-
artifactId: string;
|
|
26
|
-
versionId: string;
|
|
27
|
-
dataSpacePath: string;
|
|
28
|
-
executionContext: string;
|
|
29
|
-
runtimePath: string | undefined;
|
|
30
|
-
classPath: string | undefined;
|
|
24
|
+
readonly groupId: string;
|
|
25
|
+
readonly artifactId: string;
|
|
26
|
+
readonly versionId: string;
|
|
27
|
+
readonly dataSpacePath: string;
|
|
28
|
+
readonly executionContext: string;
|
|
29
|
+
readonly runtimePath: string | undefined;
|
|
30
|
+
readonly classPath: string | undefined;
|
|
31
31
|
constructor(applicationStore: LegendQueryApplicationStore, depotServerClient: DepotServerClient, groupId: string, artifactId: string, versionId: string, dataSpacePath: string, executionContext: string, runtimePath: string | undefined, executionKey: string | undefined);
|
|
32
32
|
getProjectInfo(): ProjectGAVCoordinates;
|
|
33
33
|
initializeQueryBuilderState(): Promise<QueryBuilderState>;
|
|
34
|
-
|
|
34
|
+
getPersistConfiguration(lambda: RawLambda, options?: {
|
|
35
35
|
update?: boolean | undefined;
|
|
36
36
|
}): Promise<QueryPersistConfiguration>;
|
|
37
37
|
}
|