@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.
- 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 +3 -1
- package/lib/components/DSL_DataSpace_LegendApplicationPlugin.d.ts.map +1 -1
- package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js +13 -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/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 +2 -2
- package/lib/stores/DataSpaceLayoutState.d.ts +46 -0
- package/lib/stores/DataSpaceLayoutState.d.ts.map +1 -1
- package/lib/stores/DataSpaceLayoutState.js +184 -1
- package/lib/stores/DataSpaceLayoutState.js.map +1 -1
- 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 +14 -14
- 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 +20 -1
- 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/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 +5 -1
- 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/stores/DataSpaceViewerDataAccessState.ts +0 -143
|
@@ -0,0 +1,194 @@
|
|
|
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 { getNullableFirstEntry, guaranteeNonNullable, } from '@finos/legend-shared';
|
|
17
|
+
import { action, computed, makeObservable, observable } from 'mobx';
|
|
18
|
+
import {} from './DataSpaceViewerState.js';
|
|
19
|
+
import { DIAGRAM_INTERACTION_MODE, } from '@finos/legend-extension-dsl-diagram/application';
|
|
20
|
+
import { DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY } from '../__lib__/DSL_DataSpace_LegendApplicationCommand.js';
|
|
21
|
+
import { DATA_SPACE_VIEWER_ACTIVITY_MODE } from './DataSpaceViewerNavigation.js';
|
|
22
|
+
export class DataSpaceViewerDiagramViewerState {
|
|
23
|
+
dataSpaceViewerState;
|
|
24
|
+
_renderer;
|
|
25
|
+
currentDiagram;
|
|
26
|
+
contextMenuClassView;
|
|
27
|
+
showDescription = true;
|
|
28
|
+
expandDescription = false;
|
|
29
|
+
constructor(dataSpaceViewerState) {
|
|
30
|
+
makeObservable(this, {
|
|
31
|
+
_renderer: observable,
|
|
32
|
+
currentDiagram: observable,
|
|
33
|
+
contextMenuClassView: observable,
|
|
34
|
+
showDescription: observable,
|
|
35
|
+
expandDescription: observable,
|
|
36
|
+
previousDiagram: computed,
|
|
37
|
+
nextDiagram: computed,
|
|
38
|
+
currentDiagramIndex: computed,
|
|
39
|
+
diagramRenderer: computed,
|
|
40
|
+
setDiagramRenderer: action,
|
|
41
|
+
setCurrentDiagram: action,
|
|
42
|
+
setContextMenuClassView: action,
|
|
43
|
+
setShowDescription: action,
|
|
44
|
+
setExpandDescription: action,
|
|
45
|
+
});
|
|
46
|
+
this.dataSpaceViewerState = dataSpaceViewerState;
|
|
47
|
+
this.currentDiagram = getNullableFirstEntry(this.dataSpaceViewerState.dataSpaceAnalysisResult.diagrams);
|
|
48
|
+
}
|
|
49
|
+
get diagramRenderer() {
|
|
50
|
+
return guaranteeNonNullable(this._renderer, `Diagram renderer must be initialized (this is likely caused by calling this method at the wrong place)`);
|
|
51
|
+
}
|
|
52
|
+
get isDiagramRendererInitialized() {
|
|
53
|
+
return Boolean(this._renderer);
|
|
54
|
+
}
|
|
55
|
+
// NOTE: we have tried to use React to control the cursor and
|
|
56
|
+
// could not overcome the jank/lag problem, so we settle with CSS-based approach
|
|
57
|
+
// See https://css-tricks.com/using-css-cursors/
|
|
58
|
+
// See https://developer.mozilla.org/en-US/docs/Web/CSS/cursor
|
|
59
|
+
get diagramCursorClass() {
|
|
60
|
+
if (!this.isDiagramRendererInitialized) {
|
|
61
|
+
return '';
|
|
62
|
+
}
|
|
63
|
+
switch (this.diagramRenderer.interactionMode) {
|
|
64
|
+
case DIAGRAM_INTERACTION_MODE.PAN: {
|
|
65
|
+
return this.diagramRenderer.leftClick
|
|
66
|
+
? 'data-space__viewer__diagram-viewer__cursor--grabbing'
|
|
67
|
+
: 'data-space__viewer__diagram-viewer__cursor--grab';
|
|
68
|
+
}
|
|
69
|
+
case DIAGRAM_INTERACTION_MODE.ZOOM_IN: {
|
|
70
|
+
return 'data-space__viewer__diagram-viewer__cursor--zoom-in';
|
|
71
|
+
}
|
|
72
|
+
case DIAGRAM_INTERACTION_MODE.ZOOM_OUT: {
|
|
73
|
+
return 'data-space__viewer__diagram-viewer__cursor--zoom-out';
|
|
74
|
+
}
|
|
75
|
+
case DIAGRAM_INTERACTION_MODE.LAYOUT: {
|
|
76
|
+
if (this.diagramRenderer.mouseOverClassView) {
|
|
77
|
+
return 'data-space__viewer__diagram-viewer__cursor--pointer';
|
|
78
|
+
}
|
|
79
|
+
return '';
|
|
80
|
+
}
|
|
81
|
+
default:
|
|
82
|
+
return '';
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
get previousDiagram() {
|
|
86
|
+
if (!this.currentDiagram) {
|
|
87
|
+
return undefined;
|
|
88
|
+
}
|
|
89
|
+
const idx = this.dataSpaceViewerState.dataSpaceAnalysisResult.diagrams.indexOf(this.currentDiagram);
|
|
90
|
+
if (idx === 0 || idx === -1) {
|
|
91
|
+
return undefined;
|
|
92
|
+
}
|
|
93
|
+
return this.dataSpaceViewerState.dataSpaceAnalysisResult.diagrams[idx - 1];
|
|
94
|
+
}
|
|
95
|
+
get nextDiagram() {
|
|
96
|
+
if (!this.currentDiagram) {
|
|
97
|
+
return undefined;
|
|
98
|
+
}
|
|
99
|
+
const idx = this.dataSpaceViewerState.dataSpaceAnalysisResult.diagrams.indexOf(this.currentDiagram);
|
|
100
|
+
if (idx ===
|
|
101
|
+
this.dataSpaceViewerState.dataSpaceAnalysisResult.diagrams.length - 1 ||
|
|
102
|
+
idx === -1) {
|
|
103
|
+
return undefined;
|
|
104
|
+
}
|
|
105
|
+
return this.dataSpaceViewerState.dataSpaceAnalysisResult.diagrams[idx + 1];
|
|
106
|
+
}
|
|
107
|
+
get currentDiagramIndex() {
|
|
108
|
+
return this.currentDiagram
|
|
109
|
+
? this.dataSpaceViewerState.dataSpaceAnalysisResult.diagrams.indexOf(this.currentDiagram) + 1
|
|
110
|
+
: 0;
|
|
111
|
+
}
|
|
112
|
+
setDiagramRenderer(val) {
|
|
113
|
+
this._renderer = val;
|
|
114
|
+
}
|
|
115
|
+
setCurrentDiagram(val) {
|
|
116
|
+
this.currentDiagram = val;
|
|
117
|
+
}
|
|
118
|
+
setContextMenuClassView(val) {
|
|
119
|
+
this.contextMenuClassView = val;
|
|
120
|
+
}
|
|
121
|
+
setupDiagramRenderer() {
|
|
122
|
+
this.diagramRenderer.setIsReadOnly(true);
|
|
123
|
+
this.diagramRenderer.setEnableLayoutAutoAdjustment(true);
|
|
124
|
+
this.diagramRenderer.onClassViewDoubleClick = (classView) => this.dataSpaceViewerState.queryClass(classView.class.value);
|
|
125
|
+
this.diagramRenderer.onClassViewRightClick = (classView) => {
|
|
126
|
+
this.setContextMenuClassView(classView);
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
setShowDescription(val) {
|
|
130
|
+
this.showDescription = val;
|
|
131
|
+
this.setExpandDescription(false);
|
|
132
|
+
}
|
|
133
|
+
setExpandDescription(val) {
|
|
134
|
+
this.expandDescription = val;
|
|
135
|
+
}
|
|
136
|
+
registerCommands() {
|
|
137
|
+
const DEFAULT_TRIGGER = () => this.dataSpaceViewerState.currentActivity ===
|
|
138
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE.DIAGRAM_VIEWER;
|
|
139
|
+
this.dataSpaceViewerState.applicationStore.commandService.registerCommand({
|
|
140
|
+
key: DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.RECENTER_DIAGRAM,
|
|
141
|
+
trigger: DEFAULT_TRIGGER,
|
|
142
|
+
action: () => this.diagramRenderer.recenter(),
|
|
143
|
+
});
|
|
144
|
+
this.dataSpaceViewerState.applicationStore.commandService.registerCommand({
|
|
145
|
+
key: DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.USE_ZOOM_TOOL,
|
|
146
|
+
trigger: DEFAULT_TRIGGER,
|
|
147
|
+
action: () => this.diagramRenderer.switchToZoomMode(),
|
|
148
|
+
});
|
|
149
|
+
this.dataSpaceViewerState.applicationStore.commandService.registerCommand({
|
|
150
|
+
key: DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.USE_VIEW_TOOL,
|
|
151
|
+
trigger: DEFAULT_TRIGGER,
|
|
152
|
+
action: () => this.diagramRenderer.switchToViewMode(),
|
|
153
|
+
});
|
|
154
|
+
this.dataSpaceViewerState.applicationStore.commandService.registerCommand({
|
|
155
|
+
key: DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.USE_PAN_TOOL,
|
|
156
|
+
trigger: DEFAULT_TRIGGER,
|
|
157
|
+
action: () => this.diagramRenderer.switchToPanMode(),
|
|
158
|
+
});
|
|
159
|
+
this.dataSpaceViewerState.applicationStore.commandService.registerCommand({
|
|
160
|
+
key: DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.GO_TO_NEXT_DIAGRAM,
|
|
161
|
+
trigger: DEFAULT_TRIGGER,
|
|
162
|
+
action: () => {
|
|
163
|
+
if (this.nextDiagram) {
|
|
164
|
+
this.setCurrentDiagram(this.nextDiagram);
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
});
|
|
168
|
+
this.dataSpaceViewerState.applicationStore.commandService.registerCommand({
|
|
169
|
+
key: DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.GO_TO_PREVIOUS_DIAGRAM,
|
|
170
|
+
trigger: DEFAULT_TRIGGER,
|
|
171
|
+
action: () => {
|
|
172
|
+
if (this.previousDiagram) {
|
|
173
|
+
this.setCurrentDiagram(this.previousDiagram);
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
});
|
|
177
|
+
this.dataSpaceViewerState.applicationStore.commandService.registerCommand({
|
|
178
|
+
key: DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.TOGGLE_DIAGRAM_DESCRIPTION,
|
|
179
|
+
trigger: DEFAULT_TRIGGER,
|
|
180
|
+
action: () => this.setShowDescription(!this.showDescription),
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
deregisterCommands() {
|
|
184
|
+
[
|
|
185
|
+
DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.RECENTER_DIAGRAM,
|
|
186
|
+
DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.USE_ZOOM_TOOL,
|
|
187
|
+
DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.USE_VIEW_TOOL,
|
|
188
|
+
DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.USE_PAN_TOOL,
|
|
189
|
+
DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.GO_TO_NEXT_DIAGRAM,
|
|
190
|
+
DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.GO_TO_PREVIOUS_DIAGRAM,
|
|
191
|
+
].forEach((commandKey) => this.dataSpaceViewerState.applicationStore.commandService.deregisterCommand(commandKey));
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
//# sourceMappingURL=DataSpaceViewerDiagramViewerState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceViewerDiagramViewerState.js","sourceRoot":"","sources":["../../src/stores/DataSpaceViewerDiagramViewerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAA6B,MAAM,2BAA2B,CAAC;AAGtE,OAAO,EACL,wBAAwB,GAEzB,MAAM,iDAAiD,CAAC;AAEzD,OAAO,EAAE,6CAA6C,EAAE,MAAM,sDAAsD,CAAC;AACrH,OAAO,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AAEjF,MAAM,OAAO,iCAAiC;IACnC,oBAAoB,CAAuB;IAEpD,SAAS,CAA+B;IACxC,cAAc,CAA8C;IAC5D,oBAAoB,CAAyB;IAC7C,eAAe,GAAG,IAAI,CAAC;IACvB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;YACxE,GAAG,EAAE,6CAA6C,CAAC,sBAAsB;YACzE,OAAO,EAAE,eAAe;YACxB,MAAM,EAAE,GAAG,EAAE;gBACX,IAAI,IAAI,CAAC,eAAe,EAAE;oBACxB,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;iBAC9C;YACH,CAAC;SACF,CAAC,CAAC;QACH,IAAI,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,cAAc,CAAC,eAAe,CAAC;YACxE,GAAG,EAAE,6CAA6C,CAAC,0BAA0B;YAC7E,OAAO,EAAE,eAAe;YACxB,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED,kBAAkB;QAChB;YACE,6CAA6C,CAAC,gBAAgB;YAC9D,6CAA6C,CAAC,aAAa;YAC3D,6CAA6C,CAAC,aAAa;YAC3D,6CAA6C,CAAC,YAAY;YAC1D,6CAA6C,CAAC,kBAAkB;YAChE,6CAA6C,CAAC,sBAAsB;SACrE,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE,CACvB,IAAI,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,cAAc,CAAC,iBAAiB,CACzE,UAAU,CACX,CACF,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,36 @@
|
|
|
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 type { DataSpaceDiagramAnalysisResult, DataSpaceExecutableAnalysisResult } from '../graph-manager/action/analytics/DataSpaceAnalysis.js';
|
|
17
|
+
export declare enum DATA_SPACE_VIEWER_ACTIVITY_MODE {
|
|
18
|
+
DESCRIPTION = "description",
|
|
19
|
+
DIAGRAM_VIEWER = "diagram-viewer",
|
|
20
|
+
MODELS_DOCUMENTATION = "models-documentation",
|
|
21
|
+
QUICK_START = "quick-start",
|
|
22
|
+
EXECUTION_CONTEXT = "execution-context",
|
|
23
|
+
DATA_ACCESS = "data-access",
|
|
24
|
+
DATA_STORES = "data-stores",
|
|
25
|
+
DATA_AVAILABILITY = "data-availability",
|
|
26
|
+
DATA_READINESS = "data-readiness",
|
|
27
|
+
DATA_COST = "data-cost",
|
|
28
|
+
DATA_GOVERNANCE = "data-governance",
|
|
29
|
+
INFO = "info",
|
|
30
|
+
SUPPORT = "support"
|
|
31
|
+
}
|
|
32
|
+
export declare const generateAnchorForActivity: (activity: string) => string;
|
|
33
|
+
export declare const extractActivityFromAnchor: (anchor: string) => string;
|
|
34
|
+
export declare const generateAnchorForQuickStart: (quickStart: DataSpaceExecutableAnalysisResult) => string;
|
|
35
|
+
export declare const generateAnchorForDiagram: (diagram: DataSpaceDiagramAnalysisResult) => string;
|
|
36
|
+
//# sourceMappingURL=DataSpaceViewerNavigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceViewerNavigation.d.ts","sourceRoot":"","sources":["../../src/stores/DataSpaceViewerNavigation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EACV,8BAA8B,EAC9B,iCAAiC,EAClC,MAAM,wDAAwD,CAAC;AAEhE,oBAAY,+BAA+B;IACzC,WAAW,gBAAgB;IAC3B,cAAc,mBAAmB;IACjC,oBAAoB,yBAAyB;IAC7C,WAAW,gBAAgB;IAC3B,iBAAiB,sBAAsB;IACvC,WAAW,gBAAgB;IAE3B,WAAW,gBAAgB;IAC3B,iBAAiB,sBAAsB;IACvC,cAAc,mBAAmB;IACjC,SAAS,cAAc;IACvB,eAAe,oBAAoB;IACnC,IAAI,SAAS;IACb,OAAO,YAAY;CACpB;AASD,eAAO,MAAM,yBAAyB,aAAc,MAAM,KAAG,MAC9B,CAAC;AAChC,eAAO,MAAM,yBAAyB,WAAY,MAAM,KAAG,MAC/B,CAAC;AAC7B,eAAO,MAAM,2BAA2B,eAC1B,iCAAiC,KAC5C,MAIgC,CAAC;AACpC,eAAO,MAAM,wBAAwB,YAC1B,8BAA8B,KACtC,MAIgC,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { NAVIGATION_ZONE_SEPARATOR } from '@finos/legend-application';
|
|
17
|
+
export var DATA_SPACE_VIEWER_ACTIVITY_MODE;
|
|
18
|
+
(function (DATA_SPACE_VIEWER_ACTIVITY_MODE) {
|
|
19
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE["DESCRIPTION"] = "description";
|
|
20
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE["DIAGRAM_VIEWER"] = "diagram-viewer";
|
|
21
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE["MODELS_DOCUMENTATION"] = "models-documentation";
|
|
22
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE["QUICK_START"] = "quick-start";
|
|
23
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE["EXECUTION_CONTEXT"] = "execution-context";
|
|
24
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE["DATA_ACCESS"] = "data-access";
|
|
25
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE["DATA_STORES"] = "data-stores";
|
|
26
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE["DATA_AVAILABILITY"] = "data-availability";
|
|
27
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE["DATA_READINESS"] = "data-readiness";
|
|
28
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE["DATA_COST"] = "data-cost";
|
|
29
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE["DATA_GOVERNANCE"] = "data-governance";
|
|
30
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE["INFO"] = "info";
|
|
31
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE["SUPPORT"] = "support";
|
|
32
|
+
})(DATA_SPACE_VIEWER_ACTIVITY_MODE = DATA_SPACE_VIEWER_ACTIVITY_MODE || (DATA_SPACE_VIEWER_ACTIVITY_MODE = {}));
|
|
33
|
+
const generateAnchorChunk = (text) => encodeURIComponent(text
|
|
34
|
+
.trim()
|
|
35
|
+
.toLowerCase() // anchor is case-insensitive
|
|
36
|
+
.replace(/\s+/gu, '-'));
|
|
37
|
+
export const generateAnchorForActivity = (activity) => generateAnchorChunk(activity);
|
|
38
|
+
export const extractActivityFromAnchor = (anchor) => decodeURIComponent(anchor);
|
|
39
|
+
export const generateAnchorForQuickStart = (quickStart) => [
|
|
40
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE.QUICK_START,
|
|
41
|
+
generateAnchorChunk(quickStart.title),
|
|
42
|
+
].join(NAVIGATION_ZONE_SEPARATOR);
|
|
43
|
+
export const generateAnchorForDiagram = (diagram) => [
|
|
44
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE.DIAGRAM_VIEWER,
|
|
45
|
+
generateAnchorChunk(diagram.title),
|
|
46
|
+
].join(NAVIGATION_ZONE_SEPARATOR);
|
|
47
|
+
//# sourceMappingURL=DataSpaceViewerNavigation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceViewerNavigation.js","sourceRoot":"","sources":["../../src/stores/DataSpaceViewerNavigation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAMtE,MAAM,CAAN,IAAY,+BAeX;AAfD,WAAY,+BAA+B;IACzC,8DAA2B,CAAA;IAC3B,oEAAiC,CAAA;IACjC,gFAA6C,CAAA;IAC7C,8DAA2B,CAAA;IAC3B,0EAAuC,CAAA;IACvC,8DAA2B,CAAA;IAE3B,8DAA2B,CAAA;IAC3B,0EAAuC,CAAA;IACvC,oEAAiC,CAAA;IACjC,0DAAuB,CAAA;IACvB,sEAAmC,CAAA;IACnC,gDAAa,CAAA;IACb,sDAAmB,CAAA;AACrB,CAAC,EAfW,+BAA+B,GAA/B,+BAA+B,KAA/B,+BAA+B,QAe1C;AAED,MAAM,mBAAmB,GAAG,CAAC,IAAY,EAAU,EAAE,CACnD,kBAAkB,CAChB,IAAI;KACD,IAAI,EAAE;KACN,WAAW,EAAE,CAAC,6BAA6B;KAC3C,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,CACzB,CAAC;AACJ,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,QAAgB,EAAU,EAAE,CACpE,mBAAmB,CAAC,QAAQ,CAAC,CAAC;AAChC,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,MAAc,EAAU,EAAE,CAClE,kBAAkB,CAAC,MAAM,CAAC,CAAC;AAC7B,MAAM,CAAC,MAAM,2BAA2B,GAAG,CACzC,UAA6C,EACrC,EAAE,CACV;IACE,+BAA+B,CAAC,WAAW;IAC3C,mBAAmB,CAAC,UAAU,CAAC,KAAK,CAAC;CACtC,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;AACpC,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACtC,OAAuC,EAC/B,EAAE,CACV;IACE,+BAA+B,CAAC,cAAc;IAC9C,mBAAmB,CAAC,OAAO,CAAC,KAAK,CAAC;CACnC,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC"}
|
|
@@ -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,OAA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