@finos/legend-application-studio 28.16.2 → 28.16.5
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/index.css +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.d.ts +4 -4
- package/lib/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.js +11 -7
- package/lib/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.js.map +1 -1
- package/lib/stores/editor/utils/TestableUtils.d.ts.map +1 -1
- package/lib/stores/editor/utils/TestableUtils.js +4 -3
- package/lib/stores/editor/utils/TestableUtils.js.map +1 -1
- package/package.json +11 -11
- package/src/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.ts +15 -12
- package/src/stores/editor/utils/TestableUtils.ts +4 -1
package/lib/index.css
CHANGED
package/lib/package.json
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { type EmbeddedData, type ModelData,
|
16
|
+
import { type EmbeddedData, type ModelData, DataElement, RelationalCSVData, type Database, type RelationalCSVDataTable, DataElementReference, ExternalFormatData, ModelStoreData, ModelEmbeddedData } from '@finos/legend-graph';
|
17
17
|
import type { EditorStore } from '../../../EditorStore.js';
|
18
18
|
export declare const createEmbeddedData: (type: string, editorStore: EditorStore) => EmbeddedData;
|
19
19
|
export declare abstract class EmbeddedDataState {
|
@@ -80,6 +80,9 @@ export declare class RelationalCSVDataState extends EmbeddedDataState {
|
|
80
80
|
export interface EmbeddedDataStateOption {
|
81
81
|
hideSource?: boolean;
|
82
82
|
}
|
83
|
+
export declare class UnsupportedDataState extends EmbeddedDataState {
|
84
|
+
label(): string;
|
85
|
+
}
|
83
86
|
export declare class DataElementReferenceState extends EmbeddedDataState {
|
84
87
|
embeddedData: DataElementReference;
|
85
88
|
embeddedDataValueState: EmbeddedDataState;
|
@@ -89,8 +92,5 @@ export declare class DataElementReferenceState extends EmbeddedDataState {
|
|
89
92
|
setDataElement(dataElement: DataElement): void;
|
90
93
|
buildValueState(options?: EmbeddedDataStateOption): EmbeddedDataState;
|
91
94
|
}
|
92
|
-
export declare class UnsupportedDataState extends EmbeddedDataState {
|
93
|
-
label(): string;
|
94
|
-
}
|
95
95
|
export declare function buildEmbeddedDataEditorState(_embeddedData: EmbeddedData, editorStore: EditorStore, options?: EmbeddedDataStateOption): EmbeddedDataState;
|
96
96
|
//# sourceMappingURL=EmbeddedDataState.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EmbeddedDataState.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,
|
1
|
+
{"version":3,"file":"EmbeddedDataState.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,WAAW,EACX,iBAAiB,EACjB,KAAK,QAAQ,EACb,KAAK,sBAAsB,EAC3B,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,iBAAiB,EAClB,MAAM,qBAAqB,CAAC;AAU7B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAY3D,eAAO,MAAM,kBAAkB,SACvB,MAAM,eACC,WAAW,KACvB,YAsCF,CAAC;AAEF,8BAAsB,iBAAiB;IACrC,WAAW,EAAE,WAAW,CAAC;IACzB,YAAY,EAAE,YAAY,CAAC;gBAEf,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY;IAKhE,QAAQ,CAAC,KAAK,IAAI,MAAM;CACzB;AAED,qBAAa,uBAAwB,SA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,EAAE,WAAW,EACxB,OAAO,CAAC,EAAE,uBAAuB,GAChC,iBAAiB,CA+BnB"}
|
@@ -13,7 +13,7 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { RelationalCSVData, DataElementReference, ExternalFormatData, ModelStoreData, ModelEmbeddedData, } from '@finos/legend-graph';
|
16
|
+
import { DataElement, RelationalCSVData, DataElementReference, ExternalFormatData, ModelStoreData, ModelEmbeddedData, } from '@finos/legend-graph';
|
17
17
|
import { ContentType, guaranteeNonEmptyString, tryToFormatLosslessJSONString, UnsupportedOperationError, uuid, } from '@finos/legend-shared';
|
18
18
|
import { action, makeObservable, observable } from 'mobx';
|
19
19
|
import { dataElementReference_setDataElement, externalFormatData_setContentType, externalFormatData_setData, relationalData_addTable, relationalData_deleteData, relationalData_setTableValues, } from '../../../../graph-modifier/DSL_Data_GraphModifierHelper.js';
|
@@ -214,6 +214,11 @@ export class RelationalCSVDataState extends EmbeddedDataState {
|
|
214
214
|
return 'Relational Data';
|
215
215
|
}
|
216
216
|
}
|
217
|
+
export class UnsupportedDataState extends EmbeddedDataState {
|
218
|
+
label() {
|
219
|
+
return 'Unsupported embedded data';
|
220
|
+
}
|
221
|
+
}
|
217
222
|
export class DataElementReferenceState extends EmbeddedDataState {
|
218
223
|
embeddedData;
|
219
224
|
embeddedDataValueState;
|
@@ -232,12 +237,11 @@ export class DataElementReferenceState extends EmbeddedDataState {
|
|
232
237
|
this.embeddedDataValueState = this.buildValueState();
|
233
238
|
}
|
234
239
|
buildValueState(options) {
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
return 'Unsupported embedded data';
|
240
|
+
const packagableEl = this.embeddedData.dataElement.value;
|
241
|
+
if (packagableEl instanceof DataElement) {
|
242
|
+
return buildEmbeddedDataEditorState(packagableEl.data, this.editorStore, this.options);
|
243
|
+
}
|
244
|
+
return new UnsupportedDataState(this.editorStore, this.embeddedData);
|
241
245
|
}
|
242
246
|
}
|
243
247
|
export function buildEmbeddedDataEditorState(_embeddedData, editorStore, options) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EmbeddedDataState.js","sourceRoot":"","sources":["../../../../../../src/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,
|
1
|
+
{"version":3,"file":"EmbeddedDataState.js","sourceRoot":"","sources":["../../../../../../src/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAGL,WAAW,EACX,iBAAiB,EAGjB,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,WAAW,EACX,uBAAuB,EACvB,6BAA6B,EAC7B,yBAAyB,EACzB,IAAI,GACL,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAG1D,OAAO,EACL,mCAAmC,EACnC,iCAAiC,EACjC,0BAA0B,EAC1B,uBAAuB,EACvB,yBAAyB,EACzB,6BAA6B,GAC9B,MAAM,4DAA4D,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,sCAAsC,EAAE,MAAM,iCAAiC,CAAC;AAEzF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,IAAY,EACZ,WAAwB,EACV,EAAE;IAChB,IAAI,IAAI,KAAK,gBAAgB,CAAC,oBAAoB,EAAE;QAClD,MAAM,kBAAkB,GAAG,IAAI,kBAAkB,EAAE,CAAC;QACpD,0BAA0B,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;QACnD,iCAAiC,CAC/B,kBAAkB,EAClB,uBAAuB,CACrB,WAAW,CAAC,UAAU,CAAC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C1E;SAAM;QACL,MAAM,oCAAoC,GAAG,WAAW,CAAC,aAAa;aACnE,qBAAqB,EAAE;aACvB,OAAO,CACN,CAAC,MAAM,EAAE,EAAE,CAEP,MACD,CAAC,uCAAuC,EAAE,EAAE,IAAI,EAAE,CACtD,CAAC;QACJ,KAAK,MAAM,YAAY,IAAI,oCAAoC,EAAE;YAC/D,MAAM,KAAK,GAAG,YAAY,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC;YACtD,IAAI,KAAK,EAAE;gBACT,OAAO,KAAK,CAAC;aACd;SACF;QACD,OAAO,IAAI,oBAAoB,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC;KAC5D;AACH,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TestableUtils.d.ts","sourceRoot":"","sources":["../../../../src/stores/editor/utils/TestableUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,4BAA4B,EACjC,KAAK,kBAAkB,EACvB,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,KAAK,EACV,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,6BAA6B,EAClC,KAAK,UAAU,EACf,KAAK,kBAAkB,EAEvB,KAAK,SAAS,EACd,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,WAAW,EAIX,cAAc,
|
1
|
+
{"version":3,"file":"TestableUtils.d.ts","sourceRoot":"","sources":["../../../../src/stores/editor/utils/TestableUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACt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,4BAA4B,GACvC,MAAM;CAGV;AAED,eAAO,MAAM,mCAAmC,YACrC,OAAO,eACH,WAAW,KACvB,kBAAkB,EAmBpB,CAAC;AAEF,eAAO,MAAM,+BAA+B,SACpC,UAAU,KACf,aASF,CAAC;AAGF,eAAO,MAAM,sCAAsC,QAC5C,MAAM,KACV,iBAqBF,CAAC;AAGF,eAAO,MAAM,aAAa,eAAgB,UAAU,KAAG,OAEM,CAAC;AAG9D,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACf;AACD,eAAO,MAAM,kCAAkC,eACjC,kBAAkB,GAAG,SAAS,KACzC,oBAAoB,EA0EtB,CAAC;AAEF,eAAO,MAAM,gCAAgC,UACpC,SAAS,GAAG,SAAS,eACf,WAAW,KACvB,oBAAoB,EAmCtB,CAAC"}
|
@@ -13,8 +13,8 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { ExternalFormatData, RelationalCSVData, ConnectionTestData, EqualToJson, DEFAULT_TEST_ASSERTION_PREFIX, RelationalCSVDataTable, getAllIdentifiedConnectionsFromRuntime, ModelStoreData, ModelEmbeddedData, PackageableElementExplicitReference, TestExecuted, TestExecutionStatus, isStubbed_RawLambda, SimpleFunctionExpression, InstanceValue, CollectionInstanceValue, matchFunctionName, PackageableElementImplicitReference, VariableExpression, PrimitiveInstanceValue, PrimitiveType, LambdaFunctionInstanceValue, } from '@finos/legend-graph';
|
17
|
-
import { assertTrue, ContentType, generateEnumerableNameFromToken, getNullableFirstEntry, guaranteeNonEmptyString, isNonNullable, LogEvent, returnUndefOnError, UnsupportedOperationError, uuid, } from '@finos/legend-shared';
|
16
|
+
import { ExternalFormatData, RelationalCSVData, ConnectionTestData, EqualToJson, DEFAULT_TEST_ASSERTION_PREFIX, RelationalCSVDataTable, getAllIdentifiedConnectionsFromRuntime, ModelStoreData, ModelEmbeddedData, PackageableElementExplicitReference, TestExecuted, TestExecutionStatus, isStubbed_RawLambda, SimpleFunctionExpression, InstanceValue, CollectionInstanceValue, matchFunctionName, PackageableElementImplicitReference, VariableExpression, PrimitiveInstanceValue, PrimitiveType, LambdaFunctionInstanceValue, DataElement, } from '@finos/legend-graph';
|
17
|
+
import { assertTrue, ContentType, generateEnumerableNameFromToken, getNullableFirstEntry, guaranteeNonEmptyString, guaranteeType, isNonNullable, LogEvent, returnUndefOnError, UnsupportedOperationError, uuid, } from '@finos/legend-shared';
|
18
18
|
import { EmbeddedDataType } from '../editor-state/ExternalFormatState.js';
|
19
19
|
import { createMockDataForMappingElementSource } from './MockDataUtils.js';
|
20
20
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '@finos/legend-query-builder';
|
@@ -107,7 +107,8 @@ export class EmbeddedDataCreatorFromEmbeddedData {
|
|
107
107
|
return val;
|
108
108
|
}
|
109
109
|
visit_DataElementReference(data) {
|
110
|
-
|
110
|
+
const datElement = guaranteeType(data.dataElement.value, DataElement);
|
111
|
+
return datElement.data.accept_EmbeddedDataVisitor(new EmbeddedDataCreatorFromEmbeddedData(this.editorStore));
|
111
112
|
}
|
112
113
|
visit_RelationalCSVData(data) {
|
113
114
|
const val = new RelationalCSVData();
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TestableUtils.js","sourceRoot":"","sources":["../../../../src/stores/editor/utils/TestableUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAsBL,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,WAAW,EACX,6BAA6B,EAC7B,sBAAsB,EACtB,sCAAsC,EACtC,cAAc,EACd,iBAAiB,EACjB,mCAAmC,EACnC,YAAY,EACZ,mBAAmB,EACnB,mBAAmB,EACnB,wBAAwB,EACxB,aAAa,EACb,uBAAuB,EACvB,iBAAiB,EACjB,mCAAmC,EACnC,kBAAkB,EAClB,sBAAsB,EACtB,aAAa,EACb,2BAA2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,CACvE,KAAK,CACN,EACD,WAAW,CAAC,iBAAiB,CAAC,KAAK,CACpC,CAAC;YACJ,IAAI,SAAS,YAAY,2BAA2B,EAAE;gBACpD,OAAO,kCAAkC,CACvC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,kBAAkB,CAAC,IAAI,CAC1C,CAAC,GAAG,EAAE,EAAE,CACN,GAAG,YAAY,wBAAwB;oBACvC,CAAC,iBAAiB,CAChB,GAAG,CAAC,YAAY,EAChB,iCAAiC,CAAC,SAAS,CAC5C;wBACC,iBAAiB,CACf,GAAG,CAAC,YAAY,EAChB,iCAAiC,CAAC,WAAW,CAC9C,CAAC,CACP,CACF,CAAC;aACH;SACF;QAAC,OAAO,KAAK,EAAE;YACd,WAAW,CAAC,gBAAgB,CAAC,UAAU,CAAC,KAAK,CAC3C,QAAQ,CAAC,MAAM,CAAC,uBAAuB,CAAC,0BAA0B,CAAC,EACnE,KAAK,CACN,CAAC;SACH;KACF;IACD,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC"}
|
1
|
+
{"version":3,"file":"TestableUtils.js","sourceRoot":"","sources":["../../../../src/stores/editor/utils/TestableUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAsBL,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,WAAW,EACX,6BAA6B,EAC7B,sBAAsB,EACtB,sCAAsC,EACtC,cAAc,EACd,iBAAiB,EACjB,mCAAmC,EACnC,YAAY,EACZ,mBAAmB,EACnB,mBAAmB,EACnB,wBAAwB,EACxB,aAAa,EACb,uBAAuB,EACvB,iBAAiB,EACjB,mCAAmC,EACnC,kBAAkB,EAClB,sBAAsB,EACtB,aAAa,EACb,2BAA2B,EAC3B,WAAW,GACZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,UAAU,EACV,WAAW,EACX,+BAA+B,EAC/B,qBAAqB,EACrB,uBAAuB,EACvB,aAAa,EACb,aAAa,EACb,QAAQ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C;YACJ,IAAI,SAAS,YAAY,2BAA2B,EAAE;gBACpD,OAAO,kCAAkC,CACvC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,kBAAkB,CAAC,IAAI,CAC1C,CAAC,GAAG,EAAE,EAAE,CACN,GAAG,YAAY,wBAAwB;oBACvC,CAAC,iBAAiB,CAChB,GAAG,CAAC,YAAY,EAChB,iCAAiC,CAAC,SAAS,CAC5C;wBACC,iBAAiB,CACf,GAAG,CAAC,YAAY,EAChB,iCAAiC,CAAC,WAAW,CAC9C,CAAC,CACP,CACF,CAAC;aACH;SACF;QAAC,OAAO,KAAK,EAAE;YACd,WAAW,CAAC,gBAAgB,CAAC,UAAU,CAAC,KAAK,CAC3C,QAAQ,CAAC,MAAM,CAAC,uBAAuB,CAAC,0BAA0B,CAAC,EACnE,KAAK,CACN,CAAC;SACH;KACF;IACD,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-application-studio",
|
3
|
-
"version": "28.16.
|
3
|
+
"version": "28.16.5",
|
4
4
|
"description": "Legend Studio application core",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -45,16 +45,16 @@
|
|
45
45
|
"test:watch": "jest --watch"
|
46
46
|
},
|
47
47
|
"dependencies": {
|
48
|
-
"@finos/legend-application": "15.0.
|
49
|
-
"@finos/legend-art": "7.1.
|
50
|
-
"@finos/legend-graph": "31.9.
|
51
|
-
"@finos/legend-lego": "1.2.
|
52
|
-
"@finos/legend-query-builder": "4.14.
|
53
|
-
"@finos/legend-server-depot": "6.0.
|
54
|
-
"@finos/legend-server-sdlc": "5.3.
|
55
|
-
"@finos/legend-server-showcase": "0.2.
|
56
|
-
"@finos/legend-shared": "10.0.
|
57
|
-
"@finos/legend-storage": "3.0.
|
48
|
+
"@finos/legend-application": "15.0.72",
|
49
|
+
"@finos/legend-art": "7.1.24",
|
50
|
+
"@finos/legend-graph": "31.9.5",
|
51
|
+
"@finos/legend-lego": "1.2.18",
|
52
|
+
"@finos/legend-query-builder": "4.14.18",
|
53
|
+
"@finos/legend-server-depot": "6.0.37",
|
54
|
+
"@finos/legend-server-sdlc": "5.3.9",
|
55
|
+
"@finos/legend-server-showcase": "0.2.6",
|
56
|
+
"@finos/legend-shared": "10.0.33",
|
57
|
+
"@finos/legend-storage": "3.0.83",
|
58
58
|
"@testing-library/react": "14.0.0",
|
59
59
|
"@types/react": "18.2.31",
|
60
60
|
"@types/react-dom": "18.2.14",
|
@@ -16,7 +16,7 @@
|
|
16
16
|
import {
|
17
17
|
type EmbeddedData,
|
18
18
|
type ModelData,
|
19
|
-
|
19
|
+
DataElement,
|
20
20
|
RelationalCSVData,
|
21
21
|
type Database,
|
22
22
|
type RelationalCSVDataTable,
|
@@ -310,6 +310,11 @@ export class RelationalCSVDataState extends EmbeddedDataState {
|
|
310
310
|
export interface EmbeddedDataStateOption {
|
311
311
|
hideSource?: boolean;
|
312
312
|
}
|
313
|
+
export class UnsupportedDataState extends EmbeddedDataState {
|
314
|
+
label(): string {
|
315
|
+
return 'Unsupported embedded data';
|
316
|
+
}
|
317
|
+
}
|
313
318
|
|
314
319
|
export class DataElementReferenceState extends EmbeddedDataState {
|
315
320
|
override embeddedData: DataElementReference;
|
@@ -341,17 +346,15 @@ export class DataElementReferenceState extends EmbeddedDataState {
|
|
341
346
|
}
|
342
347
|
|
343
348
|
buildValueState(options?: EmbeddedDataStateOption): EmbeddedDataState {
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
label(): string {
|
354
|
-
return 'Unsupported embedded data';
|
349
|
+
const packagableEl = this.embeddedData.dataElement.value;
|
350
|
+
if (packagableEl instanceof DataElement) {
|
351
|
+
return buildEmbeddedDataEditorState(
|
352
|
+
packagableEl.data,
|
353
|
+
this.editorStore,
|
354
|
+
this.options,
|
355
|
+
);
|
356
|
+
}
|
357
|
+
return new UnsupportedDataState(this.editorStore, this.embeddedData);
|
355
358
|
}
|
356
359
|
}
|
357
360
|
|
@@ -58,6 +58,7 @@ import {
|
|
58
58
|
PrimitiveInstanceValue,
|
59
59
|
PrimitiveType,
|
60
60
|
LambdaFunctionInstanceValue,
|
61
|
+
DataElement,
|
61
62
|
} from '@finos/legend-graph';
|
62
63
|
import {
|
63
64
|
assertTrue,
|
@@ -65,6 +66,7 @@ import {
|
|
65
66
|
generateEnumerableNameFromToken,
|
66
67
|
getNullableFirstEntry,
|
67
68
|
guaranteeNonEmptyString,
|
69
|
+
guaranteeType,
|
68
70
|
isNonNullable,
|
69
71
|
LogEvent,
|
70
72
|
returnUndefOnError,
|
@@ -197,7 +199,8 @@ export class EmbeddedDataCreatorFromEmbeddedData
|
|
197
199
|
return val;
|
198
200
|
}
|
199
201
|
visit_DataElementReference(data: DataElementReference): EmbeddedData {
|
200
|
-
|
202
|
+
const datElement = guaranteeType(data.dataElement.value, DataElement);
|
203
|
+
return datElement.data.accept_EmbeddedDataVisitor(
|
201
204
|
new EmbeddedDataCreatorFromEmbeddedData(this.editorStore),
|
202
205
|
);
|
203
206
|
}
|