@finos/legend-extension-dsl-data-space-studio 0.1.152 → 0.1.154
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_DataProduct_ElementDriver.d.ts +27 -0
- package/lib/components/DSL_DataProduct_ElementDriver.d.ts.map +1 -0
- package/lib/components/DSL_DataProduct_ElementDriver.js +60 -0
- package/lib/components/DSL_DataProduct_ElementDriver.js.map +1 -0
- package/lib/components/DSL_DataSpace_LegendStudioApplicationPlugin.d.ts +3 -1
- package/lib/components/DSL_DataSpace_LegendStudioApplicationPlugin.d.ts.map +1 -1
- package/lib/components/DSL_DataSpace_LegendStudioApplicationPlugin.js +30 -15
- package/lib/components/DSL_DataSpace_LegendStudioApplicationPlugin.js.map +1 -1
- package/lib/components/DSL_NewDataProductEditor.d.ts +19 -0
- package/lib/components/DSL_NewDataProductEditor.d.ts.map +1 -0
- package/lib/components/DSL_NewDataProductEditor.js +32 -0
- package/lib/components/DSL_NewDataProductEditor.js.map +1 -0
- package/lib/components/DataSpaceEditor.d.ts +1 -1
- package/lib/components/DataSpaceEditor.d.ts.map +1 -1
- package/lib/components/DataSpaceEditor.js +18 -9
- package/lib/components/DataSpaceEditor.js.map +1 -1
- package/lib/components/DataSpaceExecutionContextEditor.d.ts +37 -0
- package/lib/components/DataSpaceExecutionContextEditor.d.ts.map +1 -0
- package/lib/components/DataSpaceExecutionContextEditor.js +170 -0
- package/lib/components/DataSpaceExecutionContextEditor.js.map +1 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceDefaultExecutionContextSection.d.ts +19 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceDefaultExecutionContextSection.d.ts.map +1 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceDefaultExecutionContextSection.js +138 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceDefaultExecutionContextSection.js.map +1 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceDiagramsSection.d.ts +19 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceDiagramsSection.d.ts.map +1 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceDiagramsSection.js +63 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceDiagramsSection.js.map +1 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceElementsSection.d.ts +19 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceElementsSection.d.ts.map +1 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceElementsSection.js +58 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceElementsSection.js.map +1 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceExecutablesSection.d.ts +19 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceExecutablesSection.d.ts.map +1 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceExecutablesSection.js +56 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceExecutablesSection.js.map +1 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceGeneralEditor.d.ts +19 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceGeneralEditor.d.ts.map +1 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceGeneralEditor.js +40 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceGeneralEditor.js.map +1 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceSupportInfoSection.d.ts +19 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceSupportInfoSection.d.ts.map +1 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceSupportInfoSection.js +120 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceSupportInfoSection.js.map +1 -0
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +3 -2
- package/lib/stores/DataSpaceEditorState.d.ts +18 -2
- package/lib/stores/DataSpaceEditorState.d.ts.map +1 -1
- package/lib/stores/DataSpaceEditorState.js +55 -3
- package/lib/stores/DataSpaceEditorState.js.map +1 -1
- package/lib/stores/DataSpaceExecutionContextState.d.ts +37 -0
- package/lib/stores/DataSpaceExecutionContextState.d.ts.map +1 -0
- package/lib/stores/DataSpaceExecutionContextState.js +87 -0
- package/lib/stores/DataSpaceExecutionContextState.js.map +1 -0
- package/lib/stores/studio/DSL_DataSpace_GraphModifierHelper.d.ts +34 -3
- package/lib/stores/studio/DSL_DataSpace_GraphModifierHelper.d.ts.map +1 -1
- package/lib/stores/studio/DSL_DataSpace_GraphModifierHelper.js +128 -2
- package/lib/stores/studio/DSL_DataSpace_GraphModifierHelper.js.map +1 -1
- package/package.json +10 -9
- package/src/components/DSL_DataProduct_ElementDriver.tsx +82 -0
- package/src/components/DSL_DataSpace_LegendStudioApplicationPlugin.tsx +35 -19
- package/src/components/DSL_NewDataProductEditor.tsx +57 -0
- package/src/components/DataSpaceEditor.tsx +54 -33
- package/src/components/DataSpaceExecutionContextEditor.tsx +692 -0
- package/src/components/DataSpaceGeneralEditor/DataSpaceDefaultExecutionContextSection.tsx +393 -0
- package/src/components/DataSpaceGeneralEditor/DataSpaceDiagramsSection.tsx +144 -0
- package/src/components/DataSpaceGeneralEditor/DataSpaceElementsSection.tsx +128 -0
- package/src/components/DataSpaceGeneralEditor/DataSpaceExecutablesSection.tsx +108 -0
- package/src/components/DataSpaceGeneralEditor/DataSpaceGeneralEditor.tsx +76 -0
- package/src/components/DataSpaceGeneralEditor/DataSpaceSupportInfoSection.tsx +276 -0
- package/src/stores/DataSpaceEditorState.ts +92 -4
- package/src/stores/DataSpaceExecutionContextState.ts +135 -0
- package/src/stores/studio/DSL_DataSpace_GraphModifierHelper.ts +278 -3
- package/tsconfig.json +11 -1
@@ -0,0 +1,135 @@
|
|
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
|
+
|
17
|
+
import type { EditorStore } from '@finos/legend-application-studio';
|
18
|
+
import { action, makeObservable, observable } from 'mobx';
|
19
|
+
import type { DataSpaceEditorState } from './DataSpaceEditorState.js';
|
20
|
+
import {
|
21
|
+
DataSpaceExecutionContext,
|
22
|
+
type DataSpace,
|
23
|
+
} from '@finos/legend-extension-dsl-data-space/graph';
|
24
|
+
import {
|
25
|
+
dataSpace_addExecutionContext,
|
26
|
+
dataSpace_removeExecutionContext,
|
27
|
+
dataSpace_setExecutionContextDefaultRuntime,
|
28
|
+
dataSpace_setExecutionContextName,
|
29
|
+
} from './studio/DSL_DataSpace_GraphModifierHelper.js';
|
30
|
+
import {
|
31
|
+
PackageableElementExplicitReference,
|
32
|
+
stub_Mapping,
|
33
|
+
stub_PackageableRuntime,
|
34
|
+
type Mapping,
|
35
|
+
type PackageableRuntime,
|
36
|
+
} from '@finos/legend-graph';
|
37
|
+
|
38
|
+
export class DataSpaceExecutionContextState {
|
39
|
+
readonly dataSpaceEditorState: DataSpaceEditorState;
|
40
|
+
readonly editorStore: EditorStore;
|
41
|
+
executionContexts: DataSpaceExecutionContext[];
|
42
|
+
selectedExecutionContext: DataSpaceExecutionContext | undefined;
|
43
|
+
newExecutionContextModal = false;
|
44
|
+
executionContextToRename: DataSpaceExecutionContext | undefined;
|
45
|
+
|
46
|
+
constructor(dataSpaceEditorState: DataSpaceEditorState) {
|
47
|
+
makeObservable(this, {
|
48
|
+
executionContexts: observable,
|
49
|
+
selectedExecutionContext: observable,
|
50
|
+
executionContextToRename: observable,
|
51
|
+
newExecutionContextModal: observable,
|
52
|
+
addExecutionContext: action,
|
53
|
+
removeExecutionContext: action,
|
54
|
+
renameExecutionContext: action,
|
55
|
+
setSelectedExecutionContext: action,
|
56
|
+
setExecutionContextToRename: action,
|
57
|
+
setNewExecutionContextModal: action,
|
58
|
+
});
|
59
|
+
this.executionContexts = dataSpaceEditorState.dataSpace.executionContexts;
|
60
|
+
this.selectedExecutionContext =
|
61
|
+
dataSpaceEditorState.dataSpace.executionContexts[0];
|
62
|
+
this.dataSpaceEditorState = dataSpaceEditorState;
|
63
|
+
this.editorStore = dataSpaceEditorState.editorStore;
|
64
|
+
}
|
65
|
+
|
66
|
+
get dataSpace(): DataSpace {
|
67
|
+
return this.dataSpaceEditorState.dataSpace;
|
68
|
+
}
|
69
|
+
|
70
|
+
addExecutionContext(name: string): void {
|
71
|
+
const val = new DataSpaceExecutionContext();
|
72
|
+
val.name = name;
|
73
|
+
const mapping = this.editorStore.graphManagerState.usableMappings[0];
|
74
|
+
const runtime = mapping
|
75
|
+
? this.editorStore.graphManagerState.graph.ownRuntimes.filter(
|
76
|
+
(_runtime) =>
|
77
|
+
_runtime.runtimeValue.mappings
|
78
|
+
.map((m) => m.value)
|
79
|
+
.includes(mapping),
|
80
|
+
)[0]
|
81
|
+
: undefined;
|
82
|
+
val.mapping = PackageableElementExplicitReference.create(
|
83
|
+
mapping ?? stub_Mapping(),
|
84
|
+
);
|
85
|
+
val.defaultRuntime = PackageableElementExplicitReference.create(
|
86
|
+
runtime ?? stub_PackageableRuntime(),
|
87
|
+
);
|
88
|
+
dataSpace_addExecutionContext(this.dataSpace, val);
|
89
|
+
this.selectedExecutionContext = val;
|
90
|
+
}
|
91
|
+
|
92
|
+
removeExecutionContext(
|
93
|
+
dataSpaceExecutionContext: DataSpaceExecutionContext,
|
94
|
+
): void {
|
95
|
+
dataSpace_removeExecutionContext(this.dataSpace, dataSpaceExecutionContext);
|
96
|
+
}
|
97
|
+
|
98
|
+
renameExecutionContext(
|
99
|
+
dataSpaceExecutionContext: DataSpaceExecutionContext,
|
100
|
+
newName: string,
|
101
|
+
): void {
|
102
|
+
dataSpace_setExecutionContextName(dataSpaceExecutionContext, newName);
|
103
|
+
}
|
104
|
+
|
105
|
+
setSelectedExecutionContext(val: DataSpaceExecutionContext): void {
|
106
|
+
this.selectedExecutionContext = val;
|
107
|
+
}
|
108
|
+
|
109
|
+
setExecutionContextToRename(
|
110
|
+
val: DataSpaceExecutionContext | undefined,
|
111
|
+
): void {
|
112
|
+
this.executionContextToRename = val;
|
113
|
+
}
|
114
|
+
|
115
|
+
setNewExecutionContextModal(val: boolean): void {
|
116
|
+
this.newExecutionContextModal = val;
|
117
|
+
}
|
118
|
+
|
119
|
+
autoSelectRuntimeOnMappingChange(mapping: Mapping): void {
|
120
|
+
if (this.selectedExecutionContext) {
|
121
|
+
const runtimes =
|
122
|
+
this.editorStore.graphManagerState.graph.ownRuntimes.filter((runtime) =>
|
123
|
+
runtime.runtimeValue.mappings.map((m) => m.value).includes(mapping),
|
124
|
+
);
|
125
|
+
if (runtimes.length) {
|
126
|
+
dataSpace_setExecutionContextDefaultRuntime(
|
127
|
+
this.selectedExecutionContext,
|
128
|
+
PackageableElementExplicitReference.create(
|
129
|
+
runtimes[0] as PackageableRuntime,
|
130
|
+
),
|
131
|
+
);
|
132
|
+
}
|
133
|
+
}
|
134
|
+
}
|
135
|
+
}
|
@@ -15,16 +15,291 @@
|
|
15
15
|
*/
|
16
16
|
|
17
17
|
import { action } from 'mobx';
|
18
|
-
import
|
18
|
+
import {
|
19
|
+
type DataSpace,
|
20
|
+
type DataSpaceDiagram,
|
21
|
+
type DataSpaceElementPointer,
|
22
|
+
type DataSpaceExecutable,
|
23
|
+
type DataSpaceExecutionContext,
|
24
|
+
type DataSpaceSupportCombinedInfo,
|
25
|
+
type DataSpaceSupportEmail,
|
26
|
+
type DataSpaceSupportInfo,
|
27
|
+
observe_DataSpaceDiagram,
|
28
|
+
observe_DataSpaceElementPointer,
|
29
|
+
observe_DataSpaceExecutionContext,
|
30
|
+
observe_DataSpaceSupportInfo,
|
31
|
+
} from '@finos/legend-extension-dsl-data-space/graph';
|
32
|
+
import type {
|
33
|
+
PackageableElementReference,
|
34
|
+
Mapping,
|
35
|
+
PackageableRuntime,
|
36
|
+
DataElementReference,
|
37
|
+
} from '@finos/legend-graph';
|
38
|
+
import { addUniqueEntry } from '@finos/legend-shared';
|
19
39
|
|
20
|
-
|
40
|
+
// Basic properties
|
41
|
+
export const dataSpace_setTitle = action(
|
21
42
|
(dataSpace: DataSpace, type: string | undefined): void => {
|
22
43
|
dataSpace.title = type;
|
23
44
|
},
|
24
45
|
);
|
25
46
|
|
26
|
-
export const
|
47
|
+
export const dataSpace_setDescription = action(
|
27
48
|
(dataSpace: DataSpace, content: string | undefined): void => {
|
28
49
|
dataSpace.description = content;
|
29
50
|
},
|
30
51
|
);
|
52
|
+
|
53
|
+
// Array properties
|
54
|
+
export const dataSpace_setExecutionContexts = action(
|
55
|
+
(
|
56
|
+
dataSpace: DataSpace,
|
57
|
+
executionContexts: DataSpaceExecutionContext[],
|
58
|
+
): void => {
|
59
|
+
dataSpace.executionContexts = executionContexts;
|
60
|
+
},
|
61
|
+
);
|
62
|
+
|
63
|
+
export const dataSpace_setDefaultExecutionContext = action(
|
64
|
+
(
|
65
|
+
dataSpace: DataSpace,
|
66
|
+
defaultExecutionContext: DataSpaceExecutionContext,
|
67
|
+
): void => {
|
68
|
+
dataSpace.defaultExecutionContext = defaultExecutionContext;
|
69
|
+
},
|
70
|
+
);
|
71
|
+
|
72
|
+
export const dataSpace_setElements = action(
|
73
|
+
(
|
74
|
+
dataSpace: DataSpace,
|
75
|
+
elements: DataSpaceElementPointer[] | undefined,
|
76
|
+
): void => {
|
77
|
+
dataSpace.elements = elements;
|
78
|
+
},
|
79
|
+
);
|
80
|
+
|
81
|
+
export const dataSpace_setExecutables = action(
|
82
|
+
(
|
83
|
+
dataSpace: DataSpace,
|
84
|
+
executables: DataSpaceExecutable[] | undefined,
|
85
|
+
): void => {
|
86
|
+
dataSpace.executables = executables;
|
87
|
+
},
|
88
|
+
);
|
89
|
+
|
90
|
+
export const dataSpace_setDiagrams = action(
|
91
|
+
(dataSpace: DataSpace, diagrams: DataSpaceDiagram[] | undefined): void => {
|
92
|
+
dataSpace.diagrams = diagrams;
|
93
|
+
},
|
94
|
+
);
|
95
|
+
|
96
|
+
export const dataSpace_setSupportInfo = action(
|
97
|
+
(
|
98
|
+
dataSpace: DataSpace,
|
99
|
+
supportInfo: DataSpaceSupportInfo | undefined,
|
100
|
+
): void => {
|
101
|
+
dataSpace.supportInfo =
|
102
|
+
supportInfo !== undefined
|
103
|
+
? observe_DataSpaceSupportInfo(supportInfo)
|
104
|
+
: undefined;
|
105
|
+
},
|
106
|
+
);
|
107
|
+
|
108
|
+
// Array item management
|
109
|
+
export const dataSpace_addExecutionContext = action(
|
110
|
+
(dataSpace: DataSpace, executionContext: DataSpaceExecutionContext): void => {
|
111
|
+
addUniqueEntry(
|
112
|
+
dataSpace.executionContexts,
|
113
|
+
observe_DataSpaceExecutionContext(executionContext),
|
114
|
+
);
|
115
|
+
},
|
116
|
+
);
|
117
|
+
|
118
|
+
export const dataSpace_removeExecutionContext = action(
|
119
|
+
(
|
120
|
+
dataSpace: DataSpace,
|
121
|
+
dataSpaceExecutionContext: DataSpaceExecutionContext,
|
122
|
+
): void => {
|
123
|
+
const index = dataSpace.executionContexts.indexOf(
|
124
|
+
dataSpaceExecutionContext,
|
125
|
+
);
|
126
|
+
dataSpace.executionContexts.splice(index, 1);
|
127
|
+
},
|
128
|
+
);
|
129
|
+
|
130
|
+
export const dataSpace_addElement = action(
|
131
|
+
(dataSpace: DataSpace, element: DataSpaceElementPointer): void => {
|
132
|
+
if (!dataSpace.elements) {
|
133
|
+
dataSpace.elements = [];
|
134
|
+
}
|
135
|
+
addUniqueEntry(
|
136
|
+
dataSpace.elements,
|
137
|
+
observe_DataSpaceElementPointer(element),
|
138
|
+
);
|
139
|
+
},
|
140
|
+
);
|
141
|
+
|
142
|
+
export const dataSpace_removeElement = action(
|
143
|
+
(dataSpace: DataSpace, element: DataSpaceElementPointer): void => {
|
144
|
+
if (dataSpace.elements) {
|
145
|
+
const index = dataSpace.elements.indexOf(element);
|
146
|
+
dataSpace.elements.splice(index, 1);
|
147
|
+
}
|
148
|
+
},
|
149
|
+
);
|
150
|
+
|
151
|
+
export const dataSpace_setElementExclude = action(
|
152
|
+
(element: DataSpaceElementPointer, exclude: boolean): void => {
|
153
|
+
element.exclude = exclude;
|
154
|
+
},
|
155
|
+
);
|
156
|
+
|
157
|
+
export const dataSpace_addExecutable = action(
|
158
|
+
(dataSpace: DataSpace, executable: DataSpaceExecutable): void => {
|
159
|
+
if (!dataSpace.executables) {
|
160
|
+
dataSpace.executables = [];
|
161
|
+
}
|
162
|
+
dataSpace.executables.push(executable);
|
163
|
+
},
|
164
|
+
);
|
165
|
+
|
166
|
+
export const dataSpace_removeExecutable = action(
|
167
|
+
(dataSpace: DataSpace, executable: DataSpaceExecutable): void => {
|
168
|
+
if (dataSpace.executables) {
|
169
|
+
const index = dataSpace.executables.indexOf(executable);
|
170
|
+
dataSpace.executables.splice(index, 1);
|
171
|
+
}
|
172
|
+
},
|
173
|
+
);
|
174
|
+
|
175
|
+
export const dataSpace_addDiagram = action(
|
176
|
+
(dataSpace: DataSpace, diagram: DataSpaceDiagram): void => {
|
177
|
+
if (!dataSpace.diagrams) {
|
178
|
+
dataSpace.diagrams = [];
|
179
|
+
}
|
180
|
+
dataSpace.diagrams.push(observe_DataSpaceDiagram(diagram));
|
181
|
+
},
|
182
|
+
);
|
183
|
+
|
184
|
+
export const dataSpace_removeDiagram = action(
|
185
|
+
(dataSpace: DataSpace, diagram: DataSpaceDiagram): void => {
|
186
|
+
if (dataSpace.diagrams) {
|
187
|
+
const index = dataSpace.diagrams.indexOf(diagram);
|
188
|
+
if (index !== -1) {
|
189
|
+
dataSpace.diagrams.splice(index, 1);
|
190
|
+
}
|
191
|
+
}
|
192
|
+
},
|
193
|
+
);
|
194
|
+
|
195
|
+
export const dataSpace_setDiagramTitle = action(
|
196
|
+
(diagram: DataSpaceDiagram, title: string): void => {
|
197
|
+
diagram.title = title;
|
198
|
+
},
|
199
|
+
);
|
200
|
+
|
201
|
+
export const dataSpace_setDiagramDescription = action(
|
202
|
+
(diagram: DataSpaceDiagram, description: string | undefined): void => {
|
203
|
+
diagram.description = description;
|
204
|
+
},
|
205
|
+
);
|
206
|
+
|
207
|
+
// Nested object properties
|
208
|
+
export const dataSpace_setExecutionContextName = action(
|
209
|
+
(executionContext: DataSpaceExecutionContext, name: string): void => {
|
210
|
+
executionContext.name = name;
|
211
|
+
},
|
212
|
+
);
|
213
|
+
|
214
|
+
export const dataSpace_setExecutionContextTitle = action(
|
215
|
+
(
|
216
|
+
executionContext: DataSpaceExecutionContext,
|
217
|
+
title: string | undefined,
|
218
|
+
): void => {
|
219
|
+
executionContext.title = title;
|
220
|
+
},
|
221
|
+
);
|
222
|
+
|
223
|
+
export const dataSpace_setExecutionContextDescription = action(
|
224
|
+
(
|
225
|
+
executionContext: DataSpaceExecutionContext,
|
226
|
+
description: string | undefined,
|
227
|
+
): void => {
|
228
|
+
executionContext.description = description;
|
229
|
+
},
|
230
|
+
);
|
231
|
+
|
232
|
+
export const dataSpace_setExecutionContextMapping = action(
|
233
|
+
(
|
234
|
+
executionContext: DataSpaceExecutionContext,
|
235
|
+
mapping: PackageableElementReference<Mapping>,
|
236
|
+
): void => {
|
237
|
+
executionContext.mapping = mapping;
|
238
|
+
},
|
239
|
+
);
|
240
|
+
|
241
|
+
export const dataSpace_setExecutionContextDefaultRuntime = action(
|
242
|
+
(
|
243
|
+
executionContext: DataSpaceExecutionContext,
|
244
|
+
defaultRuntime: PackageableElementReference<PackageableRuntime>,
|
245
|
+
): void => {
|
246
|
+
executionContext.defaultRuntime = defaultRuntime;
|
247
|
+
},
|
248
|
+
);
|
249
|
+
|
250
|
+
export const dataSpace_setExecutionContextTestData = action(
|
251
|
+
(
|
252
|
+
executionContext: DataSpaceExecutionContext,
|
253
|
+
testData: DataElementReference | undefined,
|
254
|
+
): void => {
|
255
|
+
executionContext.testData = testData;
|
256
|
+
},
|
257
|
+
);
|
258
|
+
|
259
|
+
export const dataSpace_setDocumentationUrl = action(
|
260
|
+
(supportInfo: DataSpaceSupportInfo, url: string): void => {
|
261
|
+
supportInfo.documentationUrl = url;
|
262
|
+
},
|
263
|
+
);
|
264
|
+
|
265
|
+
export const dataSpace_email_setSupportInfoEmail = action(
|
266
|
+
(supportInfo: DataSpaceSupportEmail, email: string): void => {
|
267
|
+
supportInfo.address = email;
|
268
|
+
},
|
269
|
+
);
|
270
|
+
|
271
|
+
export const dataSpace_combined_addEmail = action(
|
272
|
+
(supportInfo: DataSpaceSupportCombinedInfo, email: string): void => {
|
273
|
+
if (supportInfo.emails === undefined) {
|
274
|
+
supportInfo.emails = [];
|
275
|
+
}
|
276
|
+
addUniqueEntry(supportInfo.emails, email);
|
277
|
+
},
|
278
|
+
);
|
279
|
+
|
280
|
+
export const dataSpace_combined_deleteEmail = action(
|
281
|
+
(supportInfo: DataSpaceSupportCombinedInfo, email: string): void => {
|
282
|
+
const index = supportInfo.emails?.indexOf(email);
|
283
|
+
if (index !== undefined && index !== -1) {
|
284
|
+
supportInfo.emails?.splice(index, 1);
|
285
|
+
}
|
286
|
+
},
|
287
|
+
);
|
288
|
+
|
289
|
+
export const dataSpace_combined_setWebsite = action(
|
290
|
+
(supportInfo: DataSpaceSupportCombinedInfo, website: string): void => {
|
291
|
+
supportInfo.website = website;
|
292
|
+
},
|
293
|
+
);
|
294
|
+
|
295
|
+
export const dataSpace_combined_setFaqUrl = action(
|
296
|
+
(supportInfo: DataSpaceSupportCombinedInfo, faqUrl: string): void => {
|
297
|
+
supportInfo.faqUrl = faqUrl;
|
298
|
+
},
|
299
|
+
);
|
300
|
+
|
301
|
+
export const dataSpace_combined_setSupportUrl = action(
|
302
|
+
(supportInfo: DataSpaceSupportCombinedInfo, supportUrl: string): void => {
|
303
|
+
supportInfo.supportUrl = supportUrl;
|
304
|
+
},
|
305
|
+
);
|
package/tsconfig.json
CHANGED
@@ -55,14 +55,24 @@
|
|
55
55
|
"./src/__lib__/DSL_DataSpace_LegendStudioCodeSnippet.ts",
|
56
56
|
"./src/__lib__/DSL_DataSpace_LegendStudioDocumentation.ts",
|
57
57
|
"./src/stores/DataSpaceEditorState.ts",
|
58
|
+
"./src/stores/DataSpaceExecutionContextState.ts",
|
58
59
|
"./src/stores/DataSpacePreviewState.ts",
|
59
60
|
"./src/stores/DataSpaceTemplateQueryPromotionReviewerStore.ts",
|
60
61
|
"./src/stores/studio/DSL_DataSpace_GraphModifierHelper.ts",
|
62
|
+
"./src/components/DSL_DataProduct_ElementDriver.tsx",
|
61
63
|
"./src/components/DSL_DataSpace_LegendStudioApplicationPlugin.tsx",
|
64
|
+
"./src/components/DSL_NewDataProductEditor.tsx",
|
62
65
|
"./src/components/DataSpaceEditor.tsx",
|
66
|
+
"./src/components/DataSpaceExecutionContextEditor.tsx",
|
63
67
|
"./src/components/DataSpacePreviewAction.tsx",
|
64
68
|
"./src/components/DataSpaceQueryAction.tsx",
|
65
|
-
"./src/components/DataSpaceTemplateQueryPromoteReview.tsx"
|
69
|
+
"./src/components/DataSpaceTemplateQueryPromoteReview.tsx",
|
70
|
+
"./src/components/DataSpaceGeneralEditor/DataSpaceDefaultExecutionContextSection.tsx",
|
71
|
+
"./src/components/DataSpaceGeneralEditor/DataSpaceDiagramsSection.tsx",
|
72
|
+
"./src/components/DataSpaceGeneralEditor/DataSpaceElementsSection.tsx",
|
73
|
+
"./src/components/DataSpaceGeneralEditor/DataSpaceExecutablesSection.tsx",
|
74
|
+
"./src/components/DataSpaceGeneralEditor/DataSpaceGeneralEditor.tsx",
|
75
|
+
"./src/components/DataSpaceGeneralEditor/DataSpaceSupportInfoSection.tsx"
|
66
76
|
],
|
67
77
|
"include": [
|
68
78
|
"src/**/*.ts",
|