@finos/legend-extension-dsl-data-space 9.2.3 → 9.2.5
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/DSL_DataSpace_LegendApplicationPlugin.d.ts +2 -1
- package/lib/components/DSL_DataSpace_LegendApplicationPlugin.d.ts.map +1 -1
- package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js +8 -0
- package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js.map +1 -1
- package/lib/components/DataSpaceDataAccess.d.ts.map +1 -1
- package/lib/components/DataSpaceDataAccess.js +70 -66
- package/lib/components/DataSpaceDataAccess.js.map +1 -1
- package/lib/components/DataSpaceDiagramViewer.js +1 -1
- package/lib/components/DataSpaceDiagramViewer.js.map +1 -1
- package/lib/components/DataSpaceModelsDocumentation.d.ts.map +1 -1
- package/lib/components/DataSpaceModelsDocumentation.js +337 -34
- package/lib/components/DataSpaceModelsDocumentation.js.map +1 -1
- package/lib/components/DataSpaceQuickStart.d.ts.map +1 -1
- package/lib/components/DataSpaceQuickStart.js +33 -12
- package/lib/components/DataSpaceQuickStart.js.map +1 -1
- package/lib/components/DataSpaceViewer.d.ts.map +1 -1
- package/lib/components/DataSpaceViewer.js +1 -1
- package/lib/components/DataSpaceViewer.js.map +1 -1
- package/lib/components/DataSpaceWiki.d.ts.map +1 -1
- package/lib/components/DataSpaceWiki.js +0 -1
- package/lib/components/DataSpaceWiki.js.map +1 -1
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.d.ts +45 -9
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.d.ts.map +1 -1
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.js +55 -12
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js +51 -8
- package/lib/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.d.ts +15 -3
- package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.js +16 -2
- package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +7 -10
- package/lib/stores/DataSpaceModelsDocumentationState.d.ts +93 -0
- package/lib/stores/DataSpaceModelsDocumentationState.d.ts.map +1 -0
- package/lib/stores/DataSpaceModelsDocumentationState.js +396 -0
- package/lib/stores/DataSpaceModelsDocumentationState.js.map +1 -0
- package/lib/stores/DataSpaceViewerState.d.ts +5 -0
- package/lib/stores/DataSpaceViewerState.d.ts.map +1 -1
- package/lib/stores/DataSpaceViewerState.js +6 -1
- package/lib/stores/DataSpaceViewerState.js.map +1 -1
- package/package.json +18 -21
- package/src/components/DSL_DataSpace_LegendApplicationPlugin.ts +10 -0
- package/src/components/DataSpaceDataAccess.tsx +101 -96
- package/src/components/DataSpaceDiagramViewer.tsx +1 -1
- package/src/components/DataSpaceModelsDocumentation.tsx +1043 -46
- package/src/components/DataSpaceQuickStart.tsx +69 -15
- package/src/components/DataSpaceViewer.tsx +2 -4
- package/src/components/DataSpaceWiki.tsx +0 -2
- package/src/graphManager/action/analytics/DataSpaceAnalysis.ts +71 -19
- package/src/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.ts +97 -29
- package/src/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.ts +22 -3
- package/src/stores/DataSpaceModelsDocumentationState.ts +588 -0
- package/src/stores/DataSpaceViewerState.ts +14 -0
- package/tsconfig.json +1 -1
- package/lib/graphManager/action/analytics/HACKY__DataSpaceUsageShowcase.d.ts +0 -57
- package/lib/graphManager/action/analytics/HACKY__DataSpaceUsageShowcase.d.ts.map +0 -1
- package/lib/graphManager/action/analytics/HACKY__DataSpaceUsageShowcase.js +0 -209
- package/lib/graphManager/action/analytics/HACKY__DataSpaceUsageShowcase.js.map +0 -1
- package/src/graphManager/action/analytics/HACKY__DataSpaceUsageShowcase.ts +0 -313
|
@@ -0,0 +1,396 @@
|
|
|
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 { action, computed, makeObservable, observable } from 'mobx';
|
|
17
|
+
import { FuzzySearchAdvancedConfigState } from '@finos/legend-application/components';
|
|
18
|
+
import {} from '@finos/legend-art';
|
|
19
|
+
import { ActionState, filterByType, guaranteeNonNullable, FuzzySearchEngine, } from '@finos/legend-shared';
|
|
20
|
+
import { DataSpaceAssociationDocumentationEntry, DataSpaceClassDocumentationEntry, DataSpaceEnumerationDocumentationEntry, DataSpaceModelDocumentationEntry, } from '../graphManager/action/analytics/DataSpaceAnalysis.js';
|
|
21
|
+
import { CORE_PURE_PATH, ELEMENT_PATH_DELIMITER } from '@finos/legend-graph';
|
|
22
|
+
export var ModelsDocumentationFilterTreeNodeCheckType;
|
|
23
|
+
(function (ModelsDocumentationFilterTreeNodeCheckType) {
|
|
24
|
+
ModelsDocumentationFilterTreeNodeCheckType[ModelsDocumentationFilterTreeNodeCheckType["CHECKED"] = 0] = "CHECKED";
|
|
25
|
+
ModelsDocumentationFilterTreeNodeCheckType[ModelsDocumentationFilterTreeNodeCheckType["UNCHECKED"] = 1] = "UNCHECKED";
|
|
26
|
+
ModelsDocumentationFilterTreeNodeCheckType[ModelsDocumentationFilterTreeNodeCheckType["PARTIALLY_CHECKED"] = 2] = "PARTIALLY_CHECKED";
|
|
27
|
+
})(ModelsDocumentationFilterTreeNodeCheckType = ModelsDocumentationFilterTreeNodeCheckType || (ModelsDocumentationFilterTreeNodeCheckType = {}));
|
|
28
|
+
export class ModelsDocumentationFilterTreeNodeData {
|
|
29
|
+
id;
|
|
30
|
+
label;
|
|
31
|
+
parentNode;
|
|
32
|
+
isOpen = false;
|
|
33
|
+
childrenIds = [];
|
|
34
|
+
childrenNodes = [];
|
|
35
|
+
// By default all nodes are checked
|
|
36
|
+
checkType = ModelsDocumentationFilterTreeNodeCheckType.CHECKED;
|
|
37
|
+
constructor(id, label, parentNode) {
|
|
38
|
+
makeObservable(this, {
|
|
39
|
+
isOpen: observable,
|
|
40
|
+
checkType: observable,
|
|
41
|
+
setIsOpen: action,
|
|
42
|
+
setCheckType: action,
|
|
43
|
+
});
|
|
44
|
+
this.id = id;
|
|
45
|
+
this.label = label;
|
|
46
|
+
this.parentNode = parentNode;
|
|
47
|
+
}
|
|
48
|
+
setIsOpen(val) {
|
|
49
|
+
this.isOpen = val;
|
|
50
|
+
}
|
|
51
|
+
setCheckType(val) {
|
|
52
|
+
this.checkType = val;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
export class ModelsDocumentationFilterTreeRootNodeData extends ModelsDocumentationFilterTreeNodeData {
|
|
56
|
+
}
|
|
57
|
+
export class ModelsDocumentationFilterTreePackageNodeData extends ModelsDocumentationFilterTreeNodeData {
|
|
58
|
+
packagePath;
|
|
59
|
+
constructor(id, label, parentNode, packagePath) {
|
|
60
|
+
super(id, label, parentNode);
|
|
61
|
+
this.packagePath = packagePath;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
export class ModelsDocumentationFilterTreeElementNodeData extends ModelsDocumentationFilterTreeNodeData {
|
|
65
|
+
elementPath;
|
|
66
|
+
typePath;
|
|
67
|
+
constructor(id, label, parentNode, elementPath, typePath) {
|
|
68
|
+
super(id, label, parentNode);
|
|
69
|
+
this.elementPath = elementPath;
|
|
70
|
+
this.typePath = typePath;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
export class ModelsDocumentationFilterTreeTypeNodeData extends ModelsDocumentationFilterTreeNodeData {
|
|
74
|
+
typePath;
|
|
75
|
+
constructor(id, label, parentNode, typePath) {
|
|
76
|
+
super(id, label, parentNode);
|
|
77
|
+
this.typePath = typePath;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
const trickleDownUncheckNodeChildren = (node) => {
|
|
81
|
+
node.setCheckType(ModelsDocumentationFilterTreeNodeCheckType.UNCHECKED);
|
|
82
|
+
node.childrenNodes.forEach((childNode) => trickleDownUncheckNodeChildren(childNode));
|
|
83
|
+
};
|
|
84
|
+
const trickleUpUncheckNode = (node) => {
|
|
85
|
+
const parentNode = node.parentNode;
|
|
86
|
+
if (!parentNode) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
if (parentNode.childrenNodes.some((childNode) => childNode.checkType ===
|
|
90
|
+
ModelsDocumentationFilterTreeNodeCheckType.CHECKED)) {
|
|
91
|
+
parentNode.setCheckType(ModelsDocumentationFilterTreeNodeCheckType.PARTIALLY_CHECKED);
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
parentNode.setCheckType(ModelsDocumentationFilterTreeNodeCheckType.UNCHECKED);
|
|
95
|
+
}
|
|
96
|
+
trickleUpUncheckNode(parentNode);
|
|
97
|
+
};
|
|
98
|
+
export const uncheckFilterTreeNode = (node) => {
|
|
99
|
+
trickleDownUncheckNodeChildren(node);
|
|
100
|
+
trickleUpUncheckNode(node);
|
|
101
|
+
};
|
|
102
|
+
const trickleDownCheckNode = (node) => {
|
|
103
|
+
node.setCheckType(ModelsDocumentationFilterTreeNodeCheckType.CHECKED);
|
|
104
|
+
node.childrenNodes.forEach((childNode) => trickleDownCheckNode(childNode));
|
|
105
|
+
};
|
|
106
|
+
const trickleUpCheckNode = (node) => {
|
|
107
|
+
const parentNode = node.parentNode;
|
|
108
|
+
if (!parentNode) {
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
if (parentNode.childrenNodes.every((childNode) => childNode.checkType ===
|
|
112
|
+
ModelsDocumentationFilterTreeNodeCheckType.CHECKED)) {
|
|
113
|
+
parentNode.setCheckType(ModelsDocumentationFilterTreeNodeCheckType.CHECKED);
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
parentNode.setCheckType(ModelsDocumentationFilterTreeNodeCheckType.PARTIALLY_CHECKED);
|
|
117
|
+
}
|
|
118
|
+
trickleUpCheckNode(parentNode);
|
|
119
|
+
};
|
|
120
|
+
export const checkFilterTreeNode = (node) => {
|
|
121
|
+
trickleDownCheckNode(node);
|
|
122
|
+
trickleUpCheckNode(node);
|
|
123
|
+
};
|
|
124
|
+
export const uncheckAllFilterTree = (treeData) => {
|
|
125
|
+
treeData.nodes.forEach((node) => node.setCheckType(ModelsDocumentationFilterTreeNodeCheckType.UNCHECKED));
|
|
126
|
+
};
|
|
127
|
+
const buildTypeFilterTreeData = () => {
|
|
128
|
+
const rootIds = [];
|
|
129
|
+
const nodes = new Map();
|
|
130
|
+
// all node
|
|
131
|
+
const allNode = new ModelsDocumentationFilterTreeRootNodeData('all', 'All Types', undefined);
|
|
132
|
+
rootIds.push(allNode.id);
|
|
133
|
+
allNode.setIsOpen(true); // open the root node by default
|
|
134
|
+
nodes.set(allNode.id, allNode);
|
|
135
|
+
// type nodes
|
|
136
|
+
const classNode = new ModelsDocumentationFilterTreeTypeNodeData('class', 'Class', allNode, CORE_PURE_PATH.CLASS);
|
|
137
|
+
allNode.childrenIds.push(classNode.id);
|
|
138
|
+
nodes.set(classNode.id, classNode);
|
|
139
|
+
const enumerationNode = new ModelsDocumentationFilterTreeTypeNodeData('enumeration', 'Enumeration', allNode, CORE_PURE_PATH.ENUMERATION);
|
|
140
|
+
allNode.childrenIds.push(enumerationNode.id);
|
|
141
|
+
nodes.set(enumerationNode.id, enumerationNode);
|
|
142
|
+
const associationNode = new ModelsDocumentationFilterTreeTypeNodeData('association', 'Association', allNode, CORE_PURE_PATH.ASSOCIATION);
|
|
143
|
+
allNode.childrenIds.push(associationNode.id);
|
|
144
|
+
nodes.set(associationNode.id, associationNode);
|
|
145
|
+
allNode.childrenNodes = [classNode, enumerationNode, associationNode];
|
|
146
|
+
return {
|
|
147
|
+
rootIds,
|
|
148
|
+
nodes,
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
const buildPackageFilterTreeData = (modelDocEntries) => {
|
|
152
|
+
const rootIds = [];
|
|
153
|
+
const nodes = new Map();
|
|
154
|
+
// all node
|
|
155
|
+
const allNode = new ModelsDocumentationFilterTreeRootNodeData('all', 'All Packages', undefined);
|
|
156
|
+
rootIds.push(allNode.id);
|
|
157
|
+
allNode.setIsOpen(true); // open the root node by default
|
|
158
|
+
nodes.set(allNode.id, allNode);
|
|
159
|
+
modelDocEntries.forEach((entry) => {
|
|
160
|
+
const path = entry.path;
|
|
161
|
+
const chunks = path.split(ELEMENT_PATH_DELIMITER);
|
|
162
|
+
let currentParentNode = allNode;
|
|
163
|
+
for (let i = 0; i < chunks.length; i++) {
|
|
164
|
+
const chunk = guaranteeNonNullable(chunks[i]);
|
|
165
|
+
const elementPath = `${currentParentNode === allNode
|
|
166
|
+
? ''
|
|
167
|
+
: `${currentParentNode.id}${ELEMENT_PATH_DELIMITER}`}${chunk}`;
|
|
168
|
+
const nodeId = elementPath;
|
|
169
|
+
let node = nodes.get(nodeId);
|
|
170
|
+
if (!node) {
|
|
171
|
+
if (i === chunks.length - 1) {
|
|
172
|
+
node = new ModelsDocumentationFilterTreeElementNodeData(nodeId, chunk, currentParentNode, elementPath, entry instanceof DataSpaceClassDocumentationEntry
|
|
173
|
+
? CORE_PURE_PATH.CLASS
|
|
174
|
+
: entry instanceof DataSpaceEnumerationDocumentationEntry
|
|
175
|
+
? CORE_PURE_PATH.ENUMERATION
|
|
176
|
+
: entry instanceof DataSpaceAssociationDocumentationEntry
|
|
177
|
+
? CORE_PURE_PATH.ASSOCIATION
|
|
178
|
+
: undefined);
|
|
179
|
+
}
|
|
180
|
+
else {
|
|
181
|
+
node = new ModelsDocumentationFilterTreePackageNodeData(nodeId, chunk, currentParentNode, elementPath);
|
|
182
|
+
}
|
|
183
|
+
nodes.set(nodeId, node);
|
|
184
|
+
currentParentNode.childrenIds.push(nodeId);
|
|
185
|
+
currentParentNode.childrenNodes.push(node);
|
|
186
|
+
}
|
|
187
|
+
currentParentNode = node;
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
return {
|
|
191
|
+
rootIds,
|
|
192
|
+
nodes,
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
export class DataSpaceViewerModelsDocumentationState {
|
|
196
|
+
dataSpaceViewerState;
|
|
197
|
+
showHumanizedForm = true;
|
|
198
|
+
// search text
|
|
199
|
+
searchEngine;
|
|
200
|
+
searchConfigurationState;
|
|
201
|
+
searchState = ActionState.create();
|
|
202
|
+
searchText;
|
|
203
|
+
searchResults = [];
|
|
204
|
+
showSearchConfigurationMenu = false;
|
|
205
|
+
// filter
|
|
206
|
+
showFilterPanel = false;
|
|
207
|
+
typeFilterTreeData;
|
|
208
|
+
packageFilterTreeData;
|
|
209
|
+
filterTypes = [];
|
|
210
|
+
filterPaths = [];
|
|
211
|
+
constructor(dataSpaceViewerState) {
|
|
212
|
+
makeObservable(this, {
|
|
213
|
+
showHumanizedForm: observable,
|
|
214
|
+
searchText: observable,
|
|
215
|
+
// NOTE: we use `observable.struct` for these to avoid unnecessary re-rendering of the grid
|
|
216
|
+
searchResults: observable.struct,
|
|
217
|
+
filterTypes: observable.struct,
|
|
218
|
+
filterPaths: observable.struct,
|
|
219
|
+
showSearchConfigurationMenu: observable,
|
|
220
|
+
showFilterPanel: observable,
|
|
221
|
+
typeFilterTreeData: observable.ref,
|
|
222
|
+
packageFilterTreeData: observable.ref,
|
|
223
|
+
filteredSearchResults: computed,
|
|
224
|
+
isTypeFilterCustomized: computed,
|
|
225
|
+
isPackageFilterCustomized: computed,
|
|
226
|
+
isFilterCustomized: computed,
|
|
227
|
+
setShowHumanizedForm: action,
|
|
228
|
+
setSearchText: action,
|
|
229
|
+
resetSearch: action,
|
|
230
|
+
search: action,
|
|
231
|
+
setShowSearchConfigurationMenu: action,
|
|
232
|
+
setShowFilterPanel: action,
|
|
233
|
+
resetTypeFilterTreeData: action,
|
|
234
|
+
resetPackageFilterTreeData: action,
|
|
235
|
+
updateTypeFilter: action,
|
|
236
|
+
updatePackageFilter: action,
|
|
237
|
+
resetTypeFilter: action,
|
|
238
|
+
resetPackageFilter: action,
|
|
239
|
+
resetAllFilters: action,
|
|
240
|
+
});
|
|
241
|
+
this.dataSpaceViewerState = dataSpaceViewerState;
|
|
242
|
+
this.searchEngine = new FuzzySearchEngine(this.dataSpaceViewerState.dataSpaceAnalysisResult.elementDocs, {
|
|
243
|
+
includeScore: true,
|
|
244
|
+
// NOTE: we must not sort/change the order in the grid since
|
|
245
|
+
// we want to ensure the element row is on top
|
|
246
|
+
shouldSort: false,
|
|
247
|
+
// Ignore location when computing the search score
|
|
248
|
+
// See https://fusejs.io/concepts/scoring-theory.html
|
|
249
|
+
ignoreLocation: true,
|
|
250
|
+
// This specifies the point the search gives up
|
|
251
|
+
// `0.0` means exact match where `1.0` would match anything
|
|
252
|
+
// We set a relatively low threshold to filter out irrelevant results
|
|
253
|
+
threshold: 0.2,
|
|
254
|
+
keys: [
|
|
255
|
+
{
|
|
256
|
+
name: 'text',
|
|
257
|
+
weight: 3,
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
name: 'humanizedText',
|
|
261
|
+
weight: 3,
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
name: 'elementEntry.name',
|
|
265
|
+
weight: 3,
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
name: 'elementEntry.humanizedName',
|
|
269
|
+
weight: 3,
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
name: 'entry.name',
|
|
273
|
+
weight: 2,
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
name: 'entry.humanizedName',
|
|
277
|
+
weight: 2,
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
name: 'documentation',
|
|
281
|
+
weight: 4,
|
|
282
|
+
},
|
|
283
|
+
],
|
|
284
|
+
// extended search allows for exact word match through single quote
|
|
285
|
+
// See https://fusejs.io/examples.html#extended-search
|
|
286
|
+
useExtendedSearch: true,
|
|
287
|
+
});
|
|
288
|
+
this.searchConfigurationState = new FuzzySearchAdvancedConfigState(() => this.search());
|
|
289
|
+
this.searchText = '';
|
|
290
|
+
this.searchResults =
|
|
291
|
+
this.dataSpaceViewerState.dataSpaceAnalysisResult.elementDocs;
|
|
292
|
+
this.typeFilterTreeData = buildTypeFilterTreeData();
|
|
293
|
+
this.packageFilterTreeData = buildPackageFilterTreeData(this.dataSpaceViewerState.dataSpaceAnalysisResult.elementDocs
|
|
294
|
+
.map((entry) => entry.entry)
|
|
295
|
+
.filter(filterByType(DataSpaceModelDocumentationEntry)));
|
|
296
|
+
this.updateTypeFilter();
|
|
297
|
+
this.updatePackageFilter();
|
|
298
|
+
}
|
|
299
|
+
get filteredSearchResults() {
|
|
300
|
+
return (this.searchResults
|
|
301
|
+
// filter by types
|
|
302
|
+
.filter((result) => (this.filterTypes.includes(CORE_PURE_PATH.CLASS) &&
|
|
303
|
+
result.elementEntry instanceof
|
|
304
|
+
DataSpaceClassDocumentationEntry) ||
|
|
305
|
+
(this.filterTypes.includes(CORE_PURE_PATH.ENUMERATION) &&
|
|
306
|
+
result.elementEntry instanceof
|
|
307
|
+
DataSpaceEnumerationDocumentationEntry) ||
|
|
308
|
+
(this.filterTypes.includes(CORE_PURE_PATH.ASSOCIATION) &&
|
|
309
|
+
result.elementEntry instanceof
|
|
310
|
+
DataSpaceAssociationDocumentationEntry))
|
|
311
|
+
// filter by paths
|
|
312
|
+
.filter((result) => this.filterPaths.includes(result.elementEntry.path)));
|
|
313
|
+
}
|
|
314
|
+
get isTypeFilterCustomized() {
|
|
315
|
+
return Array.from(this.typeFilterTreeData.nodes.values()).some((node) => node.checkType === ModelsDocumentationFilterTreeNodeCheckType.UNCHECKED);
|
|
316
|
+
}
|
|
317
|
+
get isPackageFilterCustomized() {
|
|
318
|
+
return Array.from(this.packageFilterTreeData.nodes.values()).some((node) => node.checkType === ModelsDocumentationFilterTreeNodeCheckType.UNCHECKED);
|
|
319
|
+
}
|
|
320
|
+
get isFilterCustomized() {
|
|
321
|
+
return this.isTypeFilterCustomized || this.isPackageFilterCustomized;
|
|
322
|
+
}
|
|
323
|
+
setShowHumanizedForm(val) {
|
|
324
|
+
this.showHumanizedForm = val;
|
|
325
|
+
}
|
|
326
|
+
setSearchText(val) {
|
|
327
|
+
this.searchText = val;
|
|
328
|
+
}
|
|
329
|
+
resetSearch() {
|
|
330
|
+
this.searchText = '';
|
|
331
|
+
this.searchResults =
|
|
332
|
+
this.dataSpaceViewerState.dataSpaceAnalysisResult.elementDocs;
|
|
333
|
+
this.searchState.complete();
|
|
334
|
+
}
|
|
335
|
+
search() {
|
|
336
|
+
if (!this.searchText) {
|
|
337
|
+
this.searchResults =
|
|
338
|
+
this.dataSpaceViewerState.dataSpaceAnalysisResult.elementDocs;
|
|
339
|
+
return;
|
|
340
|
+
}
|
|
341
|
+
this.searchState.inProgress();
|
|
342
|
+
this.searchResults = Array.from(this.searchEngine
|
|
343
|
+
.search(this.searchConfigurationState.generateSearchText(this.searchText))
|
|
344
|
+
.values()).map((result) => result.item);
|
|
345
|
+
this.searchState.complete();
|
|
346
|
+
}
|
|
347
|
+
setShowSearchConfigurationMenu(val) {
|
|
348
|
+
this.showSearchConfigurationMenu = val;
|
|
349
|
+
}
|
|
350
|
+
setShowFilterPanel(val) {
|
|
351
|
+
this.showFilterPanel = val;
|
|
352
|
+
}
|
|
353
|
+
resetTypeFilterTreeData() {
|
|
354
|
+
this.typeFilterTreeData = { ...this.typeFilterTreeData };
|
|
355
|
+
}
|
|
356
|
+
resetPackageFilterTreeData() {
|
|
357
|
+
this.packageFilterTreeData = { ...this.packageFilterTreeData };
|
|
358
|
+
}
|
|
359
|
+
updateTypeFilter() {
|
|
360
|
+
const types = [];
|
|
361
|
+
this.typeFilterTreeData.nodes.forEach((node) => {
|
|
362
|
+
if (node instanceof ModelsDocumentationFilterTreeTypeNodeData &&
|
|
363
|
+
node.checkType === ModelsDocumentationFilterTreeNodeCheckType.CHECKED) {
|
|
364
|
+
types.push(node.typePath);
|
|
365
|
+
}
|
|
366
|
+
});
|
|
367
|
+
// NOTE: sort to avoid unnecessary re-computation of filtered search results
|
|
368
|
+
this.filterTypes = types.sort((a, b) => a.localeCompare(b));
|
|
369
|
+
}
|
|
370
|
+
updatePackageFilter() {
|
|
371
|
+
const elementPaths = [];
|
|
372
|
+
this.packageFilterTreeData.nodes.forEach((node) => {
|
|
373
|
+
if (node instanceof ModelsDocumentationFilterTreeElementNodeData &&
|
|
374
|
+
node.checkType === ModelsDocumentationFilterTreeNodeCheckType.CHECKED) {
|
|
375
|
+
elementPaths.push(node.elementPath);
|
|
376
|
+
}
|
|
377
|
+
});
|
|
378
|
+
// NOTE: sort to avoid unnecessary re-computation of filtered search results
|
|
379
|
+
this.filterPaths = elementPaths.sort((a, b) => a.localeCompare(b));
|
|
380
|
+
}
|
|
381
|
+
resetTypeFilter() {
|
|
382
|
+
this.typeFilterTreeData.nodes.forEach((node) => node.setCheckType(ModelsDocumentationFilterTreeNodeCheckType.CHECKED));
|
|
383
|
+
this.updateTypeFilter();
|
|
384
|
+
this.resetTypeFilterTreeData();
|
|
385
|
+
}
|
|
386
|
+
resetPackageFilter() {
|
|
387
|
+
this.packageFilterTreeData.nodes.forEach((node) => node.setCheckType(ModelsDocumentationFilterTreeNodeCheckType.CHECKED));
|
|
388
|
+
this.updatePackageFilter();
|
|
389
|
+
this.resetPackageFilterTreeData();
|
|
390
|
+
}
|
|
391
|
+
resetAllFilters() {
|
|
392
|
+
this.resetTypeFilter();
|
|
393
|
+
this.resetPackageFilter();
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
//# sourceMappingURL=DataSpaceModelsDocumentationState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceModelsDocumentationState.js","sourceRoot":"","sources":["../../src/stores/DataSpaceModelsDocumentationState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEpE,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,EAAoC,MAAM,mBAAmB,CAAC;AACrE,OAAO,EACL,WAAW,EACX,YAAY,EACZ,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,sCAAsC,EACtC,gCAAgC,EAChC,sCAAsC,EACtC,gCAAgC,GAEjC,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE7E,MAAM,CAAN,IAAY,0CAIX;AAJD,WAAY,0CAA0C;IACpD,iHAAO,CAAA;IACP,qHAAS,CAAA;IACT,qIAAiB,CAAA;AACnB,CAAC,EAJW,0CAA0C,GAA1C,0CAA0C,KAA1C,0CAA0C,QAIrD;AAED,MAAM,OAAgB,qCAAqC;IAGhD,EAAE,CAAS;IACX,KAAK,CAAS;IACd,UAAU,CAAoD;IACvE,MAAM,GAAG,KAAK,CAAC;IACf,WAAW,GAAa,EAAE,CAAC;I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;IAC9D,CAAC;IAED,mBAAmB;QACjB,MAAM,YAAY,GAAa,EAAE,CAAC;QAClC,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;YAChD,IACE,IAAI,YAAY,4CAA4C;gBAC5D,IAAI,CAAC,SAAS,KAAK,0CAA0C,CAAC,OAAO,EACrE;gBACA,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;aACrC;QACH,CAAC,CAAC,CAAC;QACH,4EAA4E;QAC5E,IAAI,CAAC,WAAW,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;IACrE,CAAC;IAED,eAAe;QACb,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAC7C,IAAI,CAAC,YAAY,CAAC,0CAA0C,CAAC,OAAO,CAAC,CACtE,CAAC;QACF,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACxB,IAAI,CAAC,uBAAuB,EAAE,CAAC;IACjC,CAAC;IAED,kBAAkB;QAChB,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAChD,IAAI,CAAC,YAAY,CAAC,0CAA0C,CAAC,OAAO,CAAC,CACtE,CAAC;QACF,IAAI,CAAC,mBAAmB,EAAE,CAAC;QAC3B,IAAI,CAAC,0BAA0B,EAAE,CAAC;IACpC,CAAC;IAED,eAAe;QACb,IAAI,CAAC,eAAe,EAAE,CAAC;QACvB,IAAI,CAAC,kBAAkB,EAAE,CAAC;IAC5B,CAAC;CACF"}
|
|
@@ -18,6 +18,7 @@ import { type ClassView, type DiagramRenderer } from '@finos/legend-extension-ds
|
|
|
18
18
|
import type { BasicGraphManagerState, GraphData, PackageableRuntime } from '@finos/legend-graph';
|
|
19
19
|
import type { DataSpaceAnalysisResult, DataSpaceDiagramAnalysisResult, DataSpaceExecutionContextAnalysisResult } from '../graphManager/action/analytics/DataSpaceAnalysis.js';
|
|
20
20
|
import { DataSpaceViewerDataAccessState } from './DataSpaceViewerDataAccessState.js';
|
|
21
|
+
import { DataSpaceViewerModelsDocumentationState } from './DataSpaceModelsDocumentationState.js';
|
|
21
22
|
export declare enum DATA_SPACE_VIEWER_ACTIVITY_MODE {
|
|
22
23
|
DESCRIPTION = "description",
|
|
23
24
|
DIAGRAM_VIEWER = "diagram_viewer",
|
|
@@ -53,17 +54,21 @@ export declare class DataSpaceViewerState {
|
|
|
53
54
|
readonly onDiagramClassDoubleClick: (classView: ClassView) => void;
|
|
54
55
|
readonly onZoneChange?: ((zone: NavigationZone | undefined) => void) | undefined;
|
|
55
56
|
readonly dataAccessState: DataSpaceViewerDataAccessState;
|
|
57
|
+
readonly modelsDocumentationState: DataSpaceViewerModelsDocumentationState;
|
|
56
58
|
_renderer?: DiagramRenderer | undefined;
|
|
57
59
|
currentDiagram?: DataSpaceDiagramAnalysisResult | undefined;
|
|
58
60
|
currentActivity: DATA_SPACE_VIEWER_ACTIVITY_MODE;
|
|
59
61
|
currentExecutionContext: DataSpaceExecutionContextAnalysisResult;
|
|
60
62
|
currentRuntime: PackageableRuntime;
|
|
63
|
+
TEMPORARY__enableExperimentalFeatures: boolean;
|
|
61
64
|
constructor(applicationStore: GenericLegendApplicationStore, graphManagerState: BasicGraphManagerState, groupId: string, artifactId: string, versionId: string, dataSpaceAnalysisResult: DataSpaceAnalysisResult, actions: {
|
|
62
65
|
retriveGraphData: () => GraphData;
|
|
63
66
|
viewProject: (groupId: string, artifactId: string, versionId: string, entityPath: string | undefined) => void;
|
|
64
67
|
viewSDLCProject: (groupId: string, artifactId: string, entityPath: string | undefined) => Promise<void>;
|
|
65
68
|
onDiagramClassDoubleClick: (classView: ClassView) => void;
|
|
66
69
|
onZoneChange?: ((zone: NavigationZone | undefined) => void) | undefined;
|
|
70
|
+
}, options?: {
|
|
71
|
+
TEMPORARY__enableExperimentalFeatures?: boolean | undefined;
|
|
67
72
|
});
|
|
68
73
|
get diagramRenderer(): DiagramRenderer;
|
|
69
74
|
get isDiagramRendererInitialized(): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceViewerState.d.ts","sourceRoot":"","sources":["../../src/stores/DataSpaceViewerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EACV,6BAA6B,EAC7B,cAAc,EACf,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,KAAK,SAAS,EACd,KAAK,eAAe,EAErB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EACV,sBAAsB,EACtB,SAAS,EACT,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAM7B,OAAO,KAAK,EACV,uBAAuB,EACvB,8BAA8B,EAC9B,uCAAuC,EACxC,MAAM,uDAAuD,CAAC;AAK/D,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"DataSpaceViewerState.d.ts","sourceRoot":"","sources":["../../src/stores/DataSpaceViewerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EACV,6BAA6B,EAC7B,cAAc,EACf,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,KAAK,SAAS,EACd,KAAK,eAAe,EAErB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EACV,sBAAsB,EACtB,SAAS,EACT,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAM7B,OAAO,KAAK,EACV,uBAAuB,EACvB,8BAA8B,EAC9B,uCAAuC,EACxC,MAAM,uDAAuD,CAAC;AAK/D,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,uCAAuC,EAAE,MAAM,wCAAwC,CAAC;AAEjG,oBA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AI,4BAA4B,IAAI,OAAO,CAE1C;IAMD,IAAI,kBAAkB,IAAI,MAAM,CAiB/B;IAED,IAAI,UAAU,IAAI,OAAO,CAQxB;IAED,kBAAkB,CAAC,GAAG,EAAE,eAAe,GAAG,IAAI;IAI9C,iBAAiB,CAAC,GAAG,EAAE,8BAA8B,GAAG,IAAI;IAI5D,kBAAkB,CAAC,GAAG,EAAE,+BAA+B,GAAG,IAAI;IAI9D,0BAA0B,CACxB,GAAG,EAAE,uCAAuC,GAC3C,IAAI;IAKP,iBAAiB,CAAC,GAAG,EAAE,kBAAkB,GAAG,IAAI;IAIhD,oBAAoB,IAAI,IAAI;IAQ5B,UAAU,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI;CA2DvC"}
|
|
@@ -18,6 +18,7 @@ import { getNullableFirstElement, guaranteeNonNullable, } from '@finos/legend-sh
|
|
|
18
18
|
import { action, computed, makeObservable, observable } from 'mobx';
|
|
19
19
|
import { PURE_DATA_SPACE_INFO_PROFILE_PATH, PURE_DATA_SPACE_INFO_PROFILE_VERIFIED_STEREOTYPE, } from '../graphManager/DSL_DataSpace_PureGraphManagerPlugin.js';
|
|
20
20
|
import { DataSpaceViewerDataAccessState } from './DataSpaceViewerDataAccessState.js';
|
|
21
|
+
import { DataSpaceViewerModelsDocumentationState } from './DataSpaceModelsDocumentationState.js';
|
|
21
22
|
export var DATA_SPACE_VIEWER_ACTIVITY_MODE;
|
|
22
23
|
(function (DATA_SPACE_VIEWER_ACTIVITY_MODE) {
|
|
23
24
|
DATA_SPACE_VIEWER_ACTIVITY_MODE["DESCRIPTION"] = "description";
|
|
@@ -62,12 +63,14 @@ export class DataSpaceViewerState {
|
|
|
62
63
|
onDiagramClassDoubleClick;
|
|
63
64
|
onZoneChange;
|
|
64
65
|
dataAccessState;
|
|
66
|
+
modelsDocumentationState;
|
|
65
67
|
_renderer;
|
|
66
68
|
currentDiagram;
|
|
67
69
|
currentActivity = DATA_SPACE_VIEWER_ACTIVITY_MODE.DESCRIPTION;
|
|
68
70
|
currentExecutionContext;
|
|
69
71
|
currentRuntime;
|
|
70
|
-
|
|
72
|
+
TEMPORARY__enableExperimentalFeatures = false;
|
|
73
|
+
constructor(applicationStore, graphManagerState, groupId, artifactId, versionId, dataSpaceAnalysisResult, actions, options) {
|
|
71
74
|
makeObservable(this, {
|
|
72
75
|
_renderer: observable,
|
|
73
76
|
currentDiagram: observable,
|
|
@@ -99,6 +102,8 @@ export class DataSpaceViewerState {
|
|
|
99
102
|
this.onDiagramClassDoubleClick = actions.onDiagramClassDoubleClick;
|
|
100
103
|
this.onZoneChange = actions.onZoneChange;
|
|
101
104
|
this.dataAccessState = new DataSpaceViewerDataAccessState(this);
|
|
105
|
+
this.modelsDocumentationState = new DataSpaceViewerModelsDocumentationState(this);
|
|
106
|
+
this.TEMPORARY__enableExperimentalFeatures = Boolean(options?.TEMPORARY__enableExperimentalFeatures);
|
|
102
107
|
}
|
|
103
108
|
get diagramRenderer() {
|
|
104
109
|
return guaranteeNonNullable(this._renderer, `Diagram renderer must be initialized (this is likely caused by calling this method at the wrong place)`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceViewerState.js","sourceRoot":"","sources":["../../src/stores/DataSpaceViewerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,EAGL,wBAAwB,GACzB,MAAM,qCAAqC,CAAC;AAM7C,OAAO,EACL,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAMpE,OAAO,EACL,iCAAiC,EACjC,gDAAgD,GACjD,MAAM,yDAAyD,CAAC;AACjE,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"DataSpaceViewerState.js","sourceRoot":"","sources":["../../src/stores/DataSpaceViewerState.ts"],"names":[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AA+B,CAAC,OAAO,CAAC,CAAC;gBAC5C,IAAI,CAAC,kBAAkB,CAAC,+BAA+B,CAAC,OAAO,CAAC,CAAC;gBACjE,MAAM;aACP;YACD,OAAO,CAAC,CAAC;gBACP,UAAU;gBACV,IAAI,CAAC,kBAAkB,CAAC,+BAA+B,CAAC,WAAW,CAAC,CAAC;gBACrE,IAAI,CAAC,YAAY,EAAE,CAAC,SAAS,CAAC,CAAC;gBAC/B,MAAM;aACP;SACF;IACH,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos/legend-extension-dsl-data-space",
|
|
3
|
-
"version": "9.2.
|
|
3
|
+
"version": "9.2.5",
|
|
4
4
|
"description": "Legend extension for Data Space DSL",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -43,21 +43,18 @@
|
|
|
43
43
|
"test:watch": "jest --watch"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
48
|
-
"@
|
|
49
|
-
"@
|
|
50
|
-
"@finos/legend-
|
|
51
|
-
"@finos/legend-
|
|
52
|
-
"@finos/legend-
|
|
53
|
-
"@finos/legend-
|
|
54
|
-
"@finos/legend-
|
|
55
|
-
"@finos/legend-
|
|
56
|
-
"@finos/legend-
|
|
57
|
-
"@
|
|
58
|
-
"@finos/legend-shared": "8.0.5",
|
|
59
|
-
"@finos/legend-storage": "3.0.46",
|
|
60
|
-
"@types/react": "18.0.33",
|
|
46
|
+
"@finos/legend-application": "14.0.0",
|
|
47
|
+
"@finos/legend-application-query": "11.0.12",
|
|
48
|
+
"@finos/legend-application-studio": "23.1.8",
|
|
49
|
+
"@finos/legend-art": "6.0.0",
|
|
50
|
+
"@finos/legend-extension-dsl-diagram": "7.1.52",
|
|
51
|
+
"@finos/legend-graph": "26.0.5",
|
|
52
|
+
"@finos/legend-lego": "0.1.0",
|
|
53
|
+
"@finos/legend-query-builder": "2.1.3",
|
|
54
|
+
"@finos/legend-server-depot": "4.4.13",
|
|
55
|
+
"@finos/legend-shared": "8.1.0",
|
|
56
|
+
"@finos/legend-storage": "3.0.47",
|
|
57
|
+
"@types/react": "18.0.34",
|
|
61
58
|
"mobx": "6.9.0",
|
|
62
59
|
"mobx-react-lite": "3.4.3",
|
|
63
60
|
"react": "18.2.0",
|
|
@@ -65,15 +62,15 @@
|
|
|
65
62
|
"serializr": "3.0.2"
|
|
66
63
|
},
|
|
67
64
|
"devDependencies": {
|
|
68
|
-
"@finos/legend-dev-utils": "2.0.
|
|
65
|
+
"@finos/legend-dev-utils": "2.0.52",
|
|
69
66
|
"@jest/globals": "29.5.0",
|
|
70
67
|
"cross-env": "7.0.3",
|
|
71
|
-
"eslint": "8.
|
|
68
|
+
"eslint": "8.38.0",
|
|
72
69
|
"jest": "29.5.0",
|
|
73
70
|
"npm-run-all": "4.1.5",
|
|
74
|
-
"rimraf": "
|
|
75
|
-
"sass": "1.
|
|
76
|
-
"typescript": "5.0.
|
|
71
|
+
"rimraf": "5.0.0",
|
|
72
|
+
"sass": "1.62.0",
|
|
73
|
+
"typescript": "5.0.4"
|
|
77
74
|
},
|
|
78
75
|
"peerDependencies": {
|
|
79
76
|
"react": "^18.0.0"
|
|
@@ -17,8 +17,10 @@
|
|
|
17
17
|
import {
|
|
18
18
|
LegendApplicationPlugin,
|
|
19
19
|
type LegendApplicationPluginManager,
|
|
20
|
+
type LegendApplicationSetup,
|
|
20
21
|
} from '@finos/legend-application';
|
|
21
22
|
import packageJson from '../../package.json';
|
|
23
|
+
import { configureDataGridComponent } from '@finos/legend-lego/data-grid';
|
|
22
24
|
|
|
23
25
|
export class DSL_DataSpace_LegendApplicationPlugin extends LegendApplicationPlugin {
|
|
24
26
|
static NAME = packageJson.extensions.applicationPlugin;
|
|
@@ -32,4 +34,12 @@ export class DSL_DataSpace_LegendApplicationPlugin extends LegendApplicationPlug
|
|
|
32
34
|
): void {
|
|
33
35
|
pluginManager.registerApplicationPlugin(this);
|
|
34
36
|
}
|
|
37
|
+
|
|
38
|
+
override getExtraApplicationSetups(): LegendApplicationSetup[] {
|
|
39
|
+
return [
|
|
40
|
+
async (applicationStore) => {
|
|
41
|
+
configureDataGridComponent();
|
|
42
|
+
},
|
|
43
|
+
];
|
|
44
|
+
}
|
|
35
45
|
}
|