@finos/legend-extension-dsl-data-space 3.0.2 → 4.0.0
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/DataSpaceViewer.d.ts.map +1 -1
- package/lib/components/DataSpaceViewer.js +5 -6
- package/lib/components/DataSpaceViewer.js.map +1 -1
- package/lib/components/query/DataSpaceQuerySetup.js +3 -3
- package/lib/components/query/DataSpaceQuerySetup.js.map +1 -1
- package/lib/components/studio/DSLDataSpace_CodeSnippets.d.ts +1 -1
- package/lib/components/studio/DSLDataSpace_CodeSnippets.d.ts.map +1 -1
- package/lib/components/studio/DSLDataSpace_CodeSnippets.js +0 -3
- package/lib/components/studio/DSLDataSpace_CodeSnippets.js.map +1 -1
- package/lib/components/studio/DSLDataSpace_LegendStudioDocumentation.d.ts +0 -2
- package/lib/components/studio/DSLDataSpace_LegendStudioDocumentation.d.ts.map +1 -1
- package/lib/components/studio/DSLDataSpace_LegendStudioDocumentation.js +0 -14
- package/lib/components/studio/DSLDataSpace_LegendStudioDocumentation.js.map +1 -1
- package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.d.ts +1 -2
- package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.d.ts.map +1 -1
- package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.js +11 -13
- package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.d.ts +5 -7
- package/lib/models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.d.ts.map +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js +4 -10
- package/lib/models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js.map +1 -1
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.d.ts +1 -36
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.d.ts.map +1 -1
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js +9 -93
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.d.ts +0 -3
- package/lib/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.d.ts.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.js +0 -6
- package/lib/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.js.map +1 -1
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.d.ts.map +1 -1
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.js +2 -5
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.js.map +1 -1
- package/lib/package.json +5 -5
- package/lib/stores/DataSpaceViewerState.d.ts +8 -8
- package/lib/stores/DataSpaceViewerState.d.ts.map +1 -1
- package/lib/stores/DataSpaceViewerState.js +9 -9
- package/lib/stores/DataSpaceViewerState.js.map +1 -1
- package/lib/stores/query/DataSpaceQuerySetupState.d.ts +6 -12
- package/lib/stores/query/DataSpaceQuerySetupState.d.ts.map +1 -1
- package/lib/stores/query/DataSpaceQuerySetupState.js +10 -17
- package/lib/stores/query/DataSpaceQuerySetupState.js.map +1 -1
- package/package.json +15 -15
- package/src/components/DataSpaceViewer.tsx +18 -47
- package/src/components/query/DataSpaceQuerySetup.tsx +5 -5
- package/src/components/studio/DSLDataSpace_CodeSnippets.ts +0 -3
- package/src/components/studio/DSLDataSpace_LegendStudioDocumentation.ts +0 -20
- package/src/components/studio/DSLDataSpace_LegendStudioPlugin.tsx +19 -23
- package/src/index.ts +2 -1
- package/src/models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.ts +14 -12
- package/src/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.ts +15 -170
- package/src/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.ts +0 -6
- package/src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.ts +2 -4
- package/src/stores/DataSpaceViewerState.ts +18 -18
- package/src/stores/query/DataSpaceQuerySetupState.ts +30 -61
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceQuerySetupState.js","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQuerySetupState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAc,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"DataSpaceQuerySetupState.js","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQuerySetupState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAc,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAEL,oBAAoB,EACpB,eAAe,EACf,wBAAwB,GACzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,sBAAsB,EACtB,UAAU,EACV,WAAW,EACX,sBAAsB,GACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAGL,WAAW,EACX,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,uDAAuD,CAAC;AACrF,OAAO,EAAE,kCAAkC,EAAE,MAAM,yEAA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ACpC,IAAI,CAAC,oBAAoB,CAAC,SAAS,CACpC;aACF,CAAC;YACF,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC;YAClD,IAAI,CAAC,UAAU,CAAC,gBAAgB,CAAC,SAAS,CAAC,IAAI,CAC7C,wBAAwB,CACtB,IAAI,CAAC,oBAAoB,CAAC,OAAO,EACjC,IAAI,CAAC,oBAAoB,CAAC,UAAU,EACpC,IAAI,CAAC,oBAAoB,CAAC,SAAS,EACnC,IAAI,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,EACpE,IAAI,CAAC,oBAAoB,CAAC,cAAc,CAAC,IAAI,EAC7C,MAAM,EAAE,IAAI,CACb,CACF,CAAC;YACF,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;SAC1C;IACH,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos/legend-extension-dsl-data-space",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Legend extension for Data Space DSL",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -43,17 +43,17 @@
|
|
|
43
43
|
"test:watch": "jest --watch"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@finos/legend-application": "
|
|
47
|
-
"@finos/legend-art": "2.0.
|
|
48
|
-
"@finos/legend-extension-dsl-diagram": "4.
|
|
49
|
-
"@finos/legend-graph": "
|
|
50
|
-
"@finos/legend-model-storage": "2.0.
|
|
51
|
-
"@finos/legend-query": "3.0.
|
|
52
|
-
"@finos/legend-server-depot": "2.0.
|
|
53
|
-
"@finos/legend-shared": "
|
|
54
|
-
"@finos/legend-studio": "10.
|
|
46
|
+
"@finos/legend-application": "5.0.1",
|
|
47
|
+
"@finos/legend-art": "2.0.4",
|
|
48
|
+
"@finos/legend-extension-dsl-diagram": "4.1.1",
|
|
49
|
+
"@finos/legend-graph": "9.0.1",
|
|
50
|
+
"@finos/legend-model-storage": "2.0.4",
|
|
51
|
+
"@finos/legend-query": "3.0.5",
|
|
52
|
+
"@finos/legend-server-depot": "2.0.4",
|
|
53
|
+
"@finos/legend-shared": "4.0.1",
|
|
54
|
+
"@finos/legend-studio": "10.2.1",
|
|
55
55
|
"@types/react": "18.0.14",
|
|
56
|
-
"mobx": "6.6.
|
|
56
|
+
"mobx": "6.6.1",
|
|
57
57
|
"mobx-react-lite": "3.4.0",
|
|
58
58
|
"react": "18.2.0",
|
|
59
59
|
"react-dom": "18.2.0",
|
|
@@ -61,14 +61,14 @@
|
|
|
61
61
|
"serializr": "2.0.5"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@finos/legend-dev-utils": "2.0.
|
|
65
|
-
"@jest/globals": "28.1.
|
|
64
|
+
"@finos/legend-dev-utils": "2.0.3",
|
|
65
|
+
"@jest/globals": "28.1.2",
|
|
66
66
|
"cross-env": "7.0.3",
|
|
67
67
|
"eslint": "8.18.0",
|
|
68
|
-
"jest": "28.1.
|
|
68
|
+
"jest": "28.1.2",
|
|
69
69
|
"npm-run-all": "4.1.5",
|
|
70
70
|
"rimraf": "3.0.2",
|
|
71
|
-
"sass": "1.
|
|
71
|
+
"sass": "1.53.0",
|
|
72
72
|
"typescript": "4.7.4"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
@@ -31,7 +31,6 @@ import {
|
|
|
31
31
|
KeyIcon,
|
|
32
32
|
FlaskIcon,
|
|
33
33
|
ExternalLinkSquareIcon,
|
|
34
|
-
ExternalLinkIcon,
|
|
35
34
|
ShieldIcon,
|
|
36
35
|
TagsIcon,
|
|
37
36
|
LightBulbIcon,
|
|
@@ -42,9 +41,9 @@ import {
|
|
|
42
41
|
} from '@finos/legend-extension-dsl-diagram';
|
|
43
42
|
import {
|
|
44
43
|
DataSpaceSupportEmail,
|
|
44
|
+
type DataSpaceExecutionContext,
|
|
45
45
|
type DataSpaceSupportInfo,
|
|
46
46
|
} from '../models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js';
|
|
47
|
-
import type { ResolvedDataSpaceExecutionContext } from '../models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js';
|
|
48
47
|
import type { PackageableRuntime } from '@finos/legend-graph';
|
|
49
48
|
import {
|
|
50
49
|
type DataSpaceViewerState,
|
|
@@ -187,10 +186,10 @@ const DataSpaceModelsOverview = observer(
|
|
|
187
186
|
|
|
188
187
|
type ExecutionContextOption = {
|
|
189
188
|
label: string;
|
|
190
|
-
value:
|
|
189
|
+
value: DataSpaceExecutionContext;
|
|
191
190
|
};
|
|
192
191
|
const buildExecutionContextOption = (
|
|
193
|
-
value:
|
|
192
|
+
value: DataSpaceExecutionContext,
|
|
194
193
|
): ExecutionContextOption => ({
|
|
195
194
|
label: value.name,
|
|
196
195
|
value: value,
|
|
@@ -335,19 +334,19 @@ const DataSpaceTags = observer(
|
|
|
335
334
|
Tagged Values
|
|
336
335
|
</div>
|
|
337
336
|
{dataSpace.taggedValues.length !== 0 &&
|
|
338
|
-
dataSpace.taggedValues.map((
|
|
337
|
+
dataSpace.taggedValues.map((taggedValue) => (
|
|
339
338
|
<div
|
|
340
|
-
key={
|
|
339
|
+
key={taggedValue._UUID}
|
|
341
340
|
className="data-space__viewer__tags__section__entry"
|
|
342
341
|
>
|
|
343
342
|
<div
|
|
344
343
|
className="data-space__viewer__tags__tagged-value__tag"
|
|
345
|
-
title={`${
|
|
344
|
+
title={`${taggedValue.tag.ownerReference.value.name}.${taggedValue.tag.value.value}`}
|
|
346
345
|
>
|
|
347
|
-
{
|
|
346
|
+
{taggedValue.tag.value.value}
|
|
348
347
|
</div>
|
|
349
348
|
<div className="data-space__viewer__tags__tagged-value__value">
|
|
350
|
-
{
|
|
349
|
+
{taggedValue.value}
|
|
351
350
|
</div>
|
|
352
351
|
</div>
|
|
353
352
|
))}
|
|
@@ -362,14 +361,14 @@ const DataSpaceTags = observer(
|
|
|
362
361
|
Stereotypes
|
|
363
362
|
</div>
|
|
364
363
|
{dataSpace.stereotypes.length !== 0 &&
|
|
365
|
-
dataSpace.stereotypes.map((
|
|
364
|
+
dataSpace.stereotypes.map((stereotype) => (
|
|
366
365
|
<div
|
|
367
|
-
key={
|
|
366
|
+
key={stereotype.value._UUID}
|
|
368
367
|
className="data-space__viewer__tags__section__entry"
|
|
369
|
-
title={`${
|
|
368
|
+
title={`${stereotype.ownerReference.value.name}.${stereotype.value.value}`}
|
|
370
369
|
>
|
|
371
370
|
<div className="data-space__viewer__tags__steoreotype">
|
|
372
|
-
{
|
|
371
|
+
{stereotype.value.value}
|
|
373
372
|
</div>
|
|
374
373
|
</div>
|
|
375
374
|
))}
|
|
@@ -478,19 +477,12 @@ export const DataSpaceViewer = observer(
|
|
|
478
477
|
},
|
|
479
478
|
];
|
|
480
479
|
|
|
481
|
-
const viewDataSpaceProject = (): void =>
|
|
482
|
-
dataSpaceViewerState.viewProject?.(
|
|
483
|
-
dataSpaceViewerState.dataSpaceGroupId,
|
|
484
|
-
dataSpaceViewerState.dataSpaceArtifactId,
|
|
485
|
-
dataSpaceViewerState.dataSpaceVersionId,
|
|
486
|
-
dataSpace.path,
|
|
487
|
-
);
|
|
488
480
|
const viewProject = (): void =>
|
|
489
481
|
dataSpaceViewerState.viewProject?.(
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
482
|
+
dataSpaceViewerState.groupId,
|
|
483
|
+
dataSpaceViewerState.artifactId,
|
|
484
|
+
dataSpaceViewerState.versionId,
|
|
485
|
+
dataSpace.path,
|
|
494
486
|
);
|
|
495
487
|
|
|
496
488
|
return (
|
|
@@ -499,8 +491,8 @@ export const DataSpaceViewer = observer(
|
|
|
499
491
|
<button
|
|
500
492
|
className="data-space__viewer__path"
|
|
501
493
|
tabIndex={-1}
|
|
502
|
-
title="View
|
|
503
|
-
onClick={
|
|
494
|
+
title="View Project"
|
|
495
|
+
onClick={viewProject}
|
|
504
496
|
>
|
|
505
497
|
<div className="data-space__viewer__path__label">
|
|
506
498
|
{dataSpace.path}
|
|
@@ -509,27 +501,6 @@ export const DataSpaceViewer = observer(
|
|
|
509
501
|
<ExternalLinkSquareIcon />
|
|
510
502
|
</div>
|
|
511
503
|
</button>
|
|
512
|
-
<button
|
|
513
|
-
className="data-space__viewer__gav"
|
|
514
|
-
tabIndex={-1}
|
|
515
|
-
title="View Project"
|
|
516
|
-
onClick={viewProject}
|
|
517
|
-
>
|
|
518
|
-
<div className="data-space__viewer__gav__group-id">
|
|
519
|
-
{dataSpace.groupId}
|
|
520
|
-
</div>
|
|
521
|
-
<div className="data-space__viewer__gav__separator">:</div>
|
|
522
|
-
<div className="data-space__viewer__gav__artifact-id">
|
|
523
|
-
{dataSpace.artifactId}
|
|
524
|
-
</div>
|
|
525
|
-
<div className="data-space__viewer__gav__separator">:</div>
|
|
526
|
-
<div className="data-space__viewer__gav__version-id">
|
|
527
|
-
{dataSpace.versionId}
|
|
528
|
-
</div>
|
|
529
|
-
<div className="data-space__viewer__gav__link">
|
|
530
|
-
<ExternalLinkIcon />
|
|
531
|
-
</div>
|
|
532
|
-
</button>
|
|
533
504
|
<div
|
|
534
505
|
className={clsx('data-space__viewer__description', {
|
|
535
506
|
'data-space__viewer__description--empty': !dataSpace.description,
|
|
@@ -35,14 +35,14 @@ import { observer } from 'mobx-react-lite';
|
|
|
35
35
|
import { useEffect, useMemo, useRef, useState } from 'react';
|
|
36
36
|
import type {
|
|
37
37
|
DataSpaceQuerySetupState,
|
|
38
|
-
|
|
38
|
+
DataSpaceContext,
|
|
39
39
|
} from '../../stores/query/DataSpaceQuerySetupState.js';
|
|
40
40
|
import { DataSpaceViewer } from '../DataSpaceViewer.js';
|
|
41
41
|
|
|
42
|
-
type DataSpaceOption = { label: string; value:
|
|
43
|
-
const buildDataSpaceOption = (
|
|
44
|
-
label:
|
|
45
|
-
value:
|
|
42
|
+
type DataSpaceOption = { label: string; value: DataSpaceContext };
|
|
43
|
+
const buildDataSpaceOption = (value: DataSpaceContext): DataSpaceOption => ({
|
|
44
|
+
label: value.path,
|
|
45
|
+
value: value,
|
|
46
46
|
});
|
|
47
47
|
|
|
48
48
|
export const DataspaceQuerySetup = observer(
|
|
@@ -14,27 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import type { LegendApplicationDocumentationEntryConfig } from '@finos/legend-application';
|
|
18
|
-
|
|
19
17
|
export enum DSL_DATA_SPACE_LEGEND_STUDIO_DOCUMENTATION_KEY {
|
|
20
18
|
GRAMMAR_PARSER = 'dsl-dataspace.grammar.parser',
|
|
21
19
|
GRAMMAR_ELEMENT_DATA_SPACE = 'dsl-dataspace.grammar.element.data-space',
|
|
22
20
|
}
|
|
23
|
-
|
|
24
|
-
export const DSL_DATA_SPACE_DOCUMENTATION_ENTRIES: Record<
|
|
25
|
-
string,
|
|
26
|
-
LegendApplicationDocumentationEntryConfig
|
|
27
|
-
> = {
|
|
28
|
-
[DSL_DATA_SPACE_LEGEND_STUDIO_DOCUMENTATION_KEY.GRAMMAR_PARSER]: {
|
|
29
|
-
title: `What is DataSpace DSL about?`,
|
|
30
|
-
markdownText: {
|
|
31
|
-
value: `\`DataSpace DSL\` (corresponding to header \`###DataSpace\` section in \`Pure\`) concerns with providing information and documentation about the taxonomy of data models`,
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
[DSL_DATA_SPACE_LEGEND_STUDIO_DOCUMENTATION_KEY.GRAMMAR_ELEMENT_DATA_SPACE]: {
|
|
35
|
-
title: `What is a data-space element?`,
|
|
36
|
-
markdownText: {
|
|
37
|
-
value: `A \`Data-space\` element specifies a grouping of model diagrams, execution context (mapping, runtime), test data, and so on to help communicate about the _meaning_, _usage_, and relationships of data models and to help users quickly explore and understand the models`,
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
};
|
|
@@ -34,26 +34,23 @@ import {
|
|
|
34
34
|
LegendStudioPlugin,
|
|
35
35
|
} from '@finos/legend-studio';
|
|
36
36
|
import { SquareIcon } from '@finos/legend-art';
|
|
37
|
-
import
|
|
37
|
+
import {
|
|
38
|
+
PackageableElementExplicitReference,
|
|
39
|
+
stub_Mapping,
|
|
40
|
+
stub_PackageableRuntime,
|
|
41
|
+
type PackageableElement,
|
|
42
|
+
} from '@finos/legend-graph';
|
|
38
43
|
import {
|
|
39
44
|
DataSpace,
|
|
40
45
|
DataSpaceExecutionContext,
|
|
41
46
|
} from '../../models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js';
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
collectKeyedDocumnetationEntriesFromConfig,
|
|
45
|
-
type LegendApplicationDocumentationEntry,
|
|
46
|
-
type LegendApplicationKeyedDocumentationEntry,
|
|
47
|
-
} from '@finos/legend-application';
|
|
48
|
-
import {
|
|
49
|
-
DSL_DATA_SPACE_DOCUMENTATION_ENTRIES,
|
|
50
|
-
DSL_DATA_SPACE_LEGEND_STUDIO_DOCUMENTATION_KEY,
|
|
51
|
-
} from './DSLDataSpace_LegendStudioDocumentation.js';
|
|
47
|
+
import { DSL_DATA_SPACE_LEGEND_STUDIO_DOCUMENTATION_KEY } from './DSLDataSpace_LegendStudioDocumentation.js';
|
|
52
48
|
import {
|
|
53
49
|
PURE_GRAMMAR_DATA_SPACE_ELEMENT_TYPE_LABEL,
|
|
54
50
|
PURE_GRAMMAR_DATA_SPACE_PARSER_NAME,
|
|
55
51
|
} from '../../graphManager/DSLDataSpace_PureGraphManagerPlugin.js';
|
|
56
52
|
import { SIMPLE_DATA_SPACE_SNIPPET } from './DSLDataSpace_CodeSnippets.js';
|
|
53
|
+
import type { LegendApplicationDocumentationEntry } from '@finos/legend-application';
|
|
57
54
|
|
|
58
55
|
const DATA_SPACE_ELEMENT_TYPE = 'DATA SPACE';
|
|
59
56
|
const DATA_SPACE_ELEMENT_PROJECT_EXPLORER_DND_TYPE =
|
|
@@ -67,10 +64,11 @@ export class DSLDataSpace_LegendStudioPlugin
|
|
|
67
64
|
super(packageJson.extensions.studioPlugin, packageJson.version);
|
|
68
65
|
}
|
|
69
66
|
|
|
70
|
-
override
|
|
71
|
-
return
|
|
72
|
-
|
|
73
|
-
|
|
67
|
+
override getExtraRequiredDocumentationKeys(): string[] {
|
|
68
|
+
return [
|
|
69
|
+
DSL_DATA_SPACE_LEGEND_STUDIO_DOCUMENTATION_KEY.GRAMMAR_ELEMENT_DATA_SPACE,
|
|
70
|
+
DSL_DATA_SPACE_LEGEND_STUDIO_DOCUMENTATION_KEY.GRAMMAR_PARSER,
|
|
71
|
+
];
|
|
74
72
|
}
|
|
75
73
|
|
|
76
74
|
getExtraSupportedElementTypes(): string[] {
|
|
@@ -112,15 +110,14 @@ export class DSLDataSpace_LegendStudioPlugin
|
|
|
112
110
|
): PackageableElement | undefined => {
|
|
113
111
|
if (type === DATA_SPACE_ELEMENT_TYPE) {
|
|
114
112
|
const dataSpace = new DataSpace(name);
|
|
115
|
-
dataSpace.groupId =
|
|
116
|
-
state.editorStore.projectConfigurationEditorState.currentProjectConfiguration.groupId;
|
|
117
|
-
dataSpace.artifactId =
|
|
118
|
-
state.editorStore.projectConfigurationEditorState.currentProjectConfiguration.artifactId;
|
|
119
|
-
dataSpace.versionId = LATEST_VERSION_ALIAS;
|
|
120
113
|
const dataSpaceExecutionContext = new DataSpaceExecutionContext();
|
|
121
114
|
dataSpaceExecutionContext.name = 'dummyContext';
|
|
122
|
-
dataSpaceExecutionContext.mapping =
|
|
123
|
-
|
|
115
|
+
dataSpaceExecutionContext.mapping =
|
|
116
|
+
PackageableElementExplicitReference.create(stub_Mapping());
|
|
117
|
+
dataSpaceExecutionContext.defaultRuntime =
|
|
118
|
+
PackageableElementExplicitReference.create(
|
|
119
|
+
stub_PackageableRuntime(),
|
|
120
|
+
);
|
|
124
121
|
dataSpace.executionContexts = [dataSpaceExecutionContext];
|
|
125
122
|
dataSpace.defaultExecutionContext = dataSpaceExecutionContext;
|
|
126
123
|
return dataSpace;
|
|
@@ -220,7 +217,6 @@ export class DSLDataSpace_LegendStudioPlugin
|
|
|
220
217
|
? [
|
|
221
218
|
{
|
|
222
219
|
text: PURE_GRAMMAR_DATA_SPACE_ELEMENT_TYPE_LABEL,
|
|
223
|
-
description: 'simple',
|
|
224
220
|
insertText: SIMPLE_DATA_SPACE_SNIPPET,
|
|
225
221
|
},
|
|
226
222
|
]
|
package/src/index.ts
CHANGED
|
@@ -23,7 +23,8 @@ export { DataSpaceViewer } from './components/DataSpaceViewer.js';
|
|
|
23
23
|
export {
|
|
24
24
|
DATA_SPACE_ELEMENT_CLASSIFIER_PATH,
|
|
25
25
|
extractDataSpaceTaxonomyNodes,
|
|
26
|
-
getResolvedDataSpace,
|
|
27
26
|
} from './models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js';
|
|
28
27
|
|
|
29
28
|
export { DataSpaceViewerState } from './stores/DataSpaceViewerState.js';
|
|
29
|
+
|
|
30
|
+
export * from './graphManager/DSLDataSpace_GraphManagerHelper.js';
|
package/src/models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.ts
CHANGED
|
@@ -17,9 +17,13 @@
|
|
|
17
17
|
import { hashArray, type Hashable } from '@finos/legend-shared';
|
|
18
18
|
import {
|
|
19
19
|
PackageableElement,
|
|
20
|
+
type PackageableElementReference,
|
|
21
|
+
type Mapping,
|
|
22
|
+
type PackageableRuntime,
|
|
20
23
|
type PackageableElementVisitor,
|
|
21
24
|
} from '@finos/legend-graph';
|
|
22
25
|
import { DATA_SPACE_HASH_STRUCTURE } from '../../../../../DSLDataSpace_ModelUtils.js';
|
|
26
|
+
import type { Diagram } from '@finos/legend-extension-dsl-diagram';
|
|
23
27
|
|
|
24
28
|
export abstract class DataSpaceSupportInfo implements Hashable {
|
|
25
29
|
abstract get hashCode(): string;
|
|
@@ -42,27 +46,24 @@ export class DataSpaceSupportEmail
|
|
|
42
46
|
export class DataSpaceExecutionContext implements Hashable {
|
|
43
47
|
name!: string;
|
|
44
48
|
description?: string | undefined;
|
|
45
|
-
mapping!:
|
|
46
|
-
defaultRuntime!:
|
|
49
|
+
mapping!: PackageableElementReference<Mapping>;
|
|
50
|
+
defaultRuntime!: PackageableElementReference<PackageableRuntime>;
|
|
47
51
|
|
|
48
52
|
get hashCode(): string {
|
|
49
53
|
return hashArray([
|
|
50
54
|
DATA_SPACE_HASH_STRUCTURE.DATA_SPACE_EXECUTION_CONTEXT,
|
|
51
55
|
this.name,
|
|
52
56
|
this.description ?? '',
|
|
53
|
-
this.mapping,
|
|
54
|
-
this.defaultRuntime,
|
|
57
|
+
this.mapping.valueForSerialization ?? '',
|
|
58
|
+
this.defaultRuntime.valueForSerialization ?? '',
|
|
55
59
|
]);
|
|
56
60
|
}
|
|
57
61
|
}
|
|
58
62
|
|
|
59
63
|
export class DataSpace extends PackageableElement implements Hashable {
|
|
60
|
-
groupId!: string;
|
|
61
|
-
artifactId!: string;
|
|
62
|
-
versionId!: string;
|
|
63
64
|
executionContexts: DataSpaceExecutionContext[] = [];
|
|
64
65
|
defaultExecutionContext!: DataSpaceExecutionContext;
|
|
65
|
-
featuredDiagrams
|
|
66
|
+
featuredDiagrams?: PackageableElementReference<Diagram>[] | undefined;
|
|
66
67
|
description?: string | undefined;
|
|
67
68
|
supportInfo?: DataSpaceSupportInfo | undefined;
|
|
68
69
|
|
|
@@ -73,12 +74,13 @@ export class DataSpace extends PackageableElement implements Hashable {
|
|
|
73
74
|
this.stereotypes.map((stereotype) => stereotype.pointerHashCode),
|
|
74
75
|
),
|
|
75
76
|
hashArray(this.taggedValues),
|
|
76
|
-
this.groupId,
|
|
77
|
-
this.artifactId,
|
|
78
|
-
this.versionId,
|
|
79
77
|
hashArray(this.executionContexts),
|
|
80
78
|
this.defaultExecutionContext.name,
|
|
81
|
-
hashArray(
|
|
79
|
+
hashArray(
|
|
80
|
+
(this.featuredDiagrams ?? []).map(
|
|
81
|
+
(diagram) => diagram.valueForSerialization ?? '',
|
|
82
|
+
),
|
|
83
|
+
),
|
|
82
84
|
this.description ?? '',
|
|
83
85
|
this.supportInfo ?? '',
|
|
84
86
|
]);
|