@elyx-code/project-logic-tree 0.0.6951 → 0.0.6952
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/dist/index.cjs +2 -2
- package/dist/index.js +849 -310
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -182894,7 +182894,9 @@ const Ti = class Ti extends nn {
|
|
|
182894
182894
|
});
|
|
182895
182895
|
let m = null;
|
|
182896
182896
|
if (i.extends) {
|
|
182897
|
-
const A = te(
|
|
182897
|
+
const A = te(
|
|
182898
|
+
i.extends
|
|
182899
|
+
);
|
|
182898
182900
|
m = r.get(
|
|
182899
182901
|
A
|
|
182900
182902
|
);
|
|
@@ -182938,7 +182940,10 @@ const Ti = class Ti extends nn {
|
|
|
182938
182940
|
let a = JSON.parse(
|
|
182939
182941
|
JSON.stringify(i)
|
|
182940
182942
|
);
|
|
182941
|
-
const c = [], e = [], f = $Ri(
|
|
182943
|
+
const c = [], e = [], f = $Ri(
|
|
182944
|
+
a,
|
|
182945
|
+
r
|
|
182946
|
+
), h = ZF(a, r), m = an(
|
|
182942
182947
|
a
|
|
182943
182948
|
);
|
|
182944
182949
|
return e.push(
|
|
@@ -182967,9 +182972,11 @@ const Ti = class Ti extends nn {
|
|
|
182967
182972
|
return !!i && i.id !== this.id && !i.abstract;
|
|
182968
182973
|
}
|
|
182969
182974
|
get codeNativeValueValidation() {
|
|
182970
|
-
const i = [...this.implements].filter(
|
|
182971
|
-
(
|
|
182972
|
-
|
|
182975
|
+
const i = [...this.implements].filter(
|
|
182976
|
+
(a) => !this.implements.filter(
|
|
182977
|
+
(f) => f.id !== a.id
|
|
182978
|
+
).some((f) => !!f.implements.find((h) => h.id === a.id))
|
|
182979
|
+
);
|
|
182973
182980
|
return this._codeNativeValueValidation || (i == null ? void 0 : i.some(
|
|
182974
182981
|
(a) => a.codeNativeValueValidation
|
|
182975
182982
|
)) ? (a, c) => {
|
|
@@ -183059,9 +183066,15 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
183059
183066
|
const h = f.entity.afterAllChildrenInitialized(i);
|
|
183060
183067
|
r.push(...h.updated), a.push(...h.added), c.push(...h.removed), e.push(...h.affected);
|
|
183061
183068
|
}), i == null || i.attemptAutoclose("sync-dependents", this.id), {
|
|
183062
|
-
updated: C(
|
|
183063
|
-
|
|
183064
|
-
|
|
183069
|
+
updated: C(
|
|
183070
|
+
r
|
|
183071
|
+
),
|
|
183072
|
+
added: C(
|
|
183073
|
+
a
|
|
183074
|
+
),
|
|
183075
|
+
removed: C(
|
|
183076
|
+
c
|
|
183077
|
+
),
|
|
183065
183078
|
affected: C(
|
|
183066
183079
|
e
|
|
183067
183080
|
),
|
|
@@ -183082,9 +183095,15 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
183082
183095
|
c.push(...m), e.push(...b), f.push(...E), h.push(...A);
|
|
183083
183096
|
}
|
|
183084
183097
|
return {
|
|
183085
|
-
updated: C(
|
|
183086
|
-
|
|
183087
|
-
|
|
183098
|
+
updated: C(
|
|
183099
|
+
c
|
|
183100
|
+
),
|
|
183101
|
+
added: C(
|
|
183102
|
+
e
|
|
183103
|
+
),
|
|
183104
|
+
removed: C(
|
|
183105
|
+
f
|
|
183106
|
+
),
|
|
183088
183107
|
affected: C(
|
|
183089
183108
|
h
|
|
183090
183109
|
),
|
|
@@ -183105,9 +183124,15 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
183105
183124
|
c.push(...m), e.push(...b), f.push(...E), h.push(...A);
|
|
183106
183125
|
}
|
|
183107
183126
|
return {
|
|
183108
|
-
updated: C(
|
|
183109
|
-
|
|
183110
|
-
|
|
183127
|
+
updated: C(
|
|
183128
|
+
c
|
|
183129
|
+
),
|
|
183130
|
+
added: C(
|
|
183131
|
+
e
|
|
183132
|
+
),
|
|
183133
|
+
removed: C(
|
|
183134
|
+
f
|
|
183135
|
+
),
|
|
183111
183136
|
affected: C(
|
|
183112
183137
|
h
|
|
183113
183138
|
),
|
|
@@ -183219,7 +183244,10 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
183219
183244
|
return this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, i) : (/* @__PURE__ */ new Map()).set(this.version, i), this.apply(i), this;
|
|
183220
183245
|
}
|
|
183221
183246
|
snapshot() {
|
|
183222
|
-
const i = new Ti(
|
|
183247
|
+
const i = new Ti(
|
|
183248
|
+
this,
|
|
183249
|
+
this.project
|
|
183250
|
+
);
|
|
183223
183251
|
return this.apply(i);
|
|
183224
183252
|
}
|
|
183225
183253
|
/**
|
|
@@ -183242,9 +183270,15 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
183242
183270
|
r.push(this.parent, ...f.updated), a.push(...f.added), c.push(...f.removed);
|
|
183243
183271
|
}
|
|
183244
183272
|
return {
|
|
183245
|
-
updated: C(
|
|
183246
|
-
|
|
183247
|
-
|
|
183273
|
+
updated: C(
|
|
183274
|
+
r
|
|
183275
|
+
),
|
|
183276
|
+
added: C(
|
|
183277
|
+
a
|
|
183278
|
+
),
|
|
183279
|
+
removed: C(
|
|
183280
|
+
c
|
|
183281
|
+
),
|
|
183248
183282
|
affected: C(
|
|
183249
183283
|
e
|
|
183250
183284
|
),
|
|
@@ -183267,7 +183301,9 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
183267
183301
|
updated: C(
|
|
183268
183302
|
a
|
|
183269
183303
|
),
|
|
183270
|
-
added: C(
|
|
183304
|
+
added: C(
|
|
183305
|
+
c
|
|
183306
|
+
),
|
|
183271
183307
|
removed: C(
|
|
183272
183308
|
e
|
|
183273
183309
|
),
|
|
@@ -183303,9 +183339,15 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
183303
183339
|
);
|
|
183304
183340
|
}
|
|
183305
183341
|
return this.metaSync(h.toShallowJSON(), null), this.previousVersion = h.previousVersion, this.version = h.version, this.createdAt = h.createdAt, this.author = h.author, this.deleted = h.deleted, this.defaultValue = h.defaultValue, this.dataType = h.dataType, this.implements = [...h.implements], this.parent = h.parent, {
|
|
183306
|
-
updated: C(
|
|
183307
|
-
|
|
183308
|
-
|
|
183342
|
+
updated: C(
|
|
183343
|
+
a
|
|
183344
|
+
),
|
|
183345
|
+
added: C(
|
|
183346
|
+
c
|
|
183347
|
+
),
|
|
183348
|
+
removed: C(
|
|
183349
|
+
e
|
|
183350
|
+
),
|
|
183309
183351
|
affected: C(
|
|
183310
183352
|
f
|
|
183311
183353
|
),
|
|
@@ -183346,24 +183388,34 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
183346
183388
|
throw r == null || r.attemptAutoclose(
|
|
183347
183389
|
D.UpdateWithShallowTransfer,
|
|
183348
183390
|
this.id
|
|
183349
|
-
), new Error(
|
|
183391
|
+
), new Error(
|
|
183392
|
+
`${this.type} with id '${this.id}' must have a 'parent'`
|
|
183393
|
+
);
|
|
183350
183394
|
if (i.implements.forEach((c) => {
|
|
183351
|
-
const e = te(c), f = this.project.get(
|
|
183395
|
+
const e = te(c), f = this.project.get(
|
|
183396
|
+
e
|
|
183397
|
+
);
|
|
183352
183398
|
if (f)
|
|
183353
183399
|
this.addImplementation(f, r);
|
|
183354
183400
|
else
|
|
183355
183401
|
throw new Error(
|
|
183356
183402
|
`${Tr(this.type)} with id '${this.id}' has a 'implements' reference "${e}" which is missing in the project`
|
|
183357
183403
|
);
|
|
183358
|
-
}), this.implements.filter(
|
|
183359
|
-
|
|
183360
|
-
|
|
183361
|
-
|
|
183362
|
-
|
|
183363
|
-
|
|
183404
|
+
}), this.implements.filter(
|
|
183405
|
+
(c) => {
|
|
183406
|
+
const e = te(
|
|
183407
|
+
c
|
|
183408
|
+
);
|
|
183409
|
+
return !i.implements.find((f) => te(f) === e);
|
|
183410
|
+
}
|
|
183411
|
+
).forEach((c) => {
|
|
183364
183412
|
this.removeImplementation(c, r);
|
|
183365
183413
|
}), i.extends) {
|
|
183366
|
-
const c = te(
|
|
183414
|
+
const c = te(
|
|
183415
|
+
i.extends
|
|
183416
|
+
), e = this.project.get(
|
|
183417
|
+
c
|
|
183418
|
+
);
|
|
183367
183419
|
if (e)
|
|
183368
183420
|
this.setExtends(e, r);
|
|
183369
183421
|
else if (c)
|
|
@@ -183373,7 +183425,9 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
183373
183425
|
} else
|
|
183374
183426
|
this.setExtends(null, r);
|
|
183375
183427
|
if (i.dataType) {
|
|
183376
|
-
const c = te(
|
|
183428
|
+
const c = te(
|
|
183429
|
+
i.dataType
|
|
183430
|
+
), e = this.project.get(c);
|
|
183377
183431
|
e && this.setDataType(e, r);
|
|
183378
183432
|
} else
|
|
183379
183433
|
this.setDataType(null, r);
|
|
@@ -183424,7 +183478,9 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
183424
183478
|
);
|
|
183425
183479
|
}
|
|
183426
183480
|
if ((a = i.implements) == null || a.forEach((c) => {
|
|
183427
|
-
const e = te(c), f = this.project.get(
|
|
183481
|
+
const e = te(c), f = this.project.get(
|
|
183482
|
+
e
|
|
183483
|
+
);
|
|
183428
183484
|
if (f)
|
|
183429
183485
|
this.addImplementation(f, r);
|
|
183430
183486
|
else
|
|
@@ -183436,12 +183492,18 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
183436
183492
|
const f = te(
|
|
183437
183493
|
e
|
|
183438
183494
|
);
|
|
183439
|
-
return !(i.implements || []).find((h) => te(
|
|
183495
|
+
return !(i.implements || []).find((h) => te(
|
|
183496
|
+
h
|
|
183497
|
+
) === f);
|
|
183440
183498
|
}
|
|
183441
183499
|
).forEach((e) => {
|
|
183442
183500
|
this.removeImplementation(e, r);
|
|
183443
183501
|
}), i.extends) {
|
|
183444
|
-
const c = te(
|
|
183502
|
+
const c = te(
|
|
183503
|
+
i.extends
|
|
183504
|
+
), e = this.project.get(
|
|
183505
|
+
c
|
|
183506
|
+
);
|
|
183445
183507
|
if (e)
|
|
183446
183508
|
this.setExtends(e, r);
|
|
183447
183509
|
else if (c)
|
|
@@ -183470,9 +183532,13 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
183470
183532
|
`${this.type} with id '${this.id}' has a 'parent' reference '${e}' that isn't found in the project`
|
|
183471
183533
|
);
|
|
183472
183534
|
} else
|
|
183473
|
-
throw new Error(
|
|
183535
|
+
throw new Error(
|
|
183536
|
+
`${this.type} with id '${this.id}' must have a 'parent'`
|
|
183537
|
+
);
|
|
183474
183538
|
if ((this.initialData.implements || []).forEach((e) => {
|
|
183475
|
-
const f = te(e), h = this.project.get(
|
|
183539
|
+
const f = te(e), h = this.project.get(
|
|
183540
|
+
f
|
|
183541
|
+
);
|
|
183476
183542
|
if (h)
|
|
183477
183543
|
this.addImplementation(h, null), i.push(h);
|
|
183478
183544
|
else
|
|
@@ -183482,7 +183548,9 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
183482
183548
|
}), this.initialData.extends) {
|
|
183483
183549
|
const e = te(
|
|
183484
183550
|
this.initialData.extends
|
|
183485
|
-
), f = this.project.get(
|
|
183551
|
+
), f = this.project.get(
|
|
183552
|
+
e
|
|
183553
|
+
);
|
|
183486
183554
|
if (f)
|
|
183487
183555
|
this.setExtends(f, null), i.push(f);
|
|
183488
183556
|
else if (e)
|
|
@@ -183491,9 +183559,15 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
183491
183559
|
);
|
|
183492
183560
|
}
|
|
183493
183561
|
return {
|
|
183494
|
-
updated: C(
|
|
183495
|
-
|
|
183496
|
-
|
|
183562
|
+
updated: C(
|
|
183563
|
+
i
|
|
183564
|
+
),
|
|
183565
|
+
added: C(
|
|
183566
|
+
r
|
|
183567
|
+
),
|
|
183568
|
+
removed: C(
|
|
183569
|
+
a
|
|
183570
|
+
),
|
|
183497
183571
|
affected: C(
|
|
183498
183572
|
c
|
|
183499
183573
|
),
|
|
@@ -183535,7 +183609,13 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
183535
183609
|
) && J.filter(
|
|
183536
183610
|
(ee) => (ee.index || 0) >= re && !ee.deleted
|
|
183537
183611
|
).forEach((ee) => {
|
|
183538
|
-
ee.metaSync(
|
|
183612
|
+
ee.metaSync(
|
|
183613
|
+
{ index: (ee.index || 0) + 1 },
|
|
183614
|
+
i
|
|
183615
|
+
), i == null || i.add(
|
|
183616
|
+
ee,
|
|
183617
|
+
H.Updated
|
|
183618
|
+
), r.push(ee);
|
|
183539
183619
|
}), this.metaSync(
|
|
183540
183620
|
{
|
|
183541
183621
|
index: re
|
|
@@ -183543,7 +183623,9 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
183543
183623
|
i
|
|
183544
183624
|
);
|
|
183545
183625
|
}
|
|
183546
|
-
if (this.defaultValue && !this.project.diggestedBuiltInBaseEntitiesIds.has(this.id) && this.project.diggestedBuiltInBaseEntitiesIds.has(
|
|
183626
|
+
if (this.defaultValue && !this.project.diggestedBuiltInBaseEntitiesIds.has(this.id) && this.project.diggestedBuiltInBaseEntitiesIds.has(
|
|
183627
|
+
this.defaultValue.id
|
|
183628
|
+
)) {
|
|
183547
183629
|
const re = this.defaultValue.clone(i, this);
|
|
183548
183630
|
this.setDefaultValue(re, i);
|
|
183549
183631
|
}
|
|
@@ -183569,13 +183651,19 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
183569
183651
|
} = this.syncWithExtension(i);
|
|
183570
183652
|
return r.push(...V), a.push(...B), c.push(...M), e.push(...k), !this.project.diggestedBuiltInBaseEntitiesIds.has(this.id) && this.project.initialized && (this.extends && ((q = this.extends) == null ? void 0 : q.interactive) === !0 && (this.interactive || (this.metaSync({ interactive: !0 }, i), r.push(this))), this.implements.every(
|
|
183571
183653
|
(re) => re.interactive === !0
|
|
183572
|
-
) && (this.interactive || (this.metaSync({ interactive: !0 }, i), r.push(this)))), i == null || i.attemptAutoclose(
|
|
183654
|
+
) && (this.interactive || (this.metaSync({ interactive: !0 }, i), r.push(this)))), this.parent.static && !this.static && this.metaSync({ static: !0 }, i), i == null || i.attemptAutoclose(
|
|
183573
183655
|
D.AfterAllChildrenInitialized,
|
|
183574
183656
|
this.id
|
|
183575
183657
|
), {
|
|
183576
|
-
updated: C(
|
|
183577
|
-
|
|
183578
|
-
|
|
183658
|
+
updated: C(
|
|
183659
|
+
r
|
|
183660
|
+
),
|
|
183661
|
+
added: C(
|
|
183662
|
+
a
|
|
183663
|
+
),
|
|
183664
|
+
removed: C(
|
|
183665
|
+
c
|
|
183666
|
+
),
|
|
183579
183667
|
affected: C(
|
|
183580
183668
|
e
|
|
183581
183669
|
),
|
|
@@ -183598,9 +183686,15 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
183598
183686
|
this,
|
|
183599
183687
|
i
|
|
183600
183688
|
) : this.parent.addProperty(this, i), r.push(this.parent), this.subscribe(), this.subscribeToDependencies(), i == null || i.attemptAutoclose("add-self-to-project", this.id), {
|
|
183601
|
-
updated: C(
|
|
183602
|
-
|
|
183603
|
-
|
|
183689
|
+
updated: C(
|
|
183690
|
+
r
|
|
183691
|
+
),
|
|
183692
|
+
added: C(
|
|
183693
|
+
a
|
|
183694
|
+
),
|
|
183695
|
+
removed: C(
|
|
183696
|
+
c
|
|
183697
|
+
),
|
|
183604
183698
|
affected: C(
|
|
183605
183699
|
e
|
|
183606
183700
|
),
|
|
@@ -183635,7 +183729,10 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
183635
183729
|
D.AddImplementation
|
|
183636
183730
|
)
|
|
183637
183731
|
)) {
|
|
183638
|
-
return this.checkCanEdit(this, r) ? (this.implements.includes(i) || (this.implements.push(i), r == null || r.add(this, H.Updated)), r == null || r.attemptAutoclose(
|
|
183732
|
+
return this.checkCanEdit(this, r) ? (this.implements.includes(i) || (this.implements.push(i), r == null || r.add(this, H.Updated)), r == null || r.attemptAutoclose(
|
|
183733
|
+
D.AddImplementation,
|
|
183734
|
+
this.id
|
|
183735
|
+
), this) : (ce.warn(
|
|
183639
183736
|
`[addImplementation] User is not allowed to edit this ${this.type} entity with id: ${this.id}`
|
|
183640
183737
|
), r == null || r.attemptAutoclose(
|
|
183641
183738
|
D.AddImplementation,
|
|
@@ -183675,7 +183772,10 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
183675
183772
|
var a;
|
|
183676
183773
|
return this.checkCanEdit(this, r) ? (((a = this.extends) == null ? void 0 : a.id) !== (i == null ? void 0 : i.id) && (this.extends = i, this.subscribeToDependencies(), r && (r == null || r.add(this, H.Updated))), r == null || r.attemptAutoclose(D.SetExtends, this.id), this) : (ce.warn(
|
|
183677
183774
|
`[setExtends] User is not allowed to edit this ${this.type} entity with id: ${this.id}`
|
|
183678
|
-
), r == null || r.attemptAutoclose(
|
|
183775
|
+
), r == null || r.attemptAutoclose(
|
|
183776
|
+
D.SetExtends,
|
|
183777
|
+
this.id
|
|
183778
|
+
), this);
|
|
183679
183779
|
}
|
|
183680
183780
|
initChildren(i = this.project.addChangeSet(
|
|
183681
183781
|
new Z(
|
|
@@ -183792,10 +183892,19 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
183792
183892
|
self: this
|
|
183793
183893
|
};
|
|
183794
183894
|
const r = [], a = [], c = [], e = [];
|
|
183795
|
-
return this.parent.type === d.DefinitionEntity && (this.parentRelationType === Hu.AllPropertiesImplementationTarget ? this.parent.removeAllPropertiesImplement(i) : this.parent.removeProperty(this, i), e.push(this.parent)), i == null || i.attemptAutoclose(
|
|
183796
|
-
|
|
183797
|
-
|
|
183798
|
-
|
|
183895
|
+
return this.parent.type === d.DefinitionEntity && (this.parentRelationType === Hu.AllPropertiesImplementationTarget ? this.parent.removeAllPropertiesImplement(i) : this.parent.removeProperty(this, i), e.push(this.parent)), i == null || i.attemptAutoclose(
|
|
183896
|
+
D.RemoveFromParent,
|
|
183897
|
+
this.id
|
|
183898
|
+
), {
|
|
183899
|
+
added: C(
|
|
183900
|
+
c
|
|
183901
|
+
),
|
|
183902
|
+
updated: C(
|
|
183903
|
+
r
|
|
183904
|
+
),
|
|
183905
|
+
removed: C(
|
|
183906
|
+
a
|
|
183907
|
+
),
|
|
183799
183908
|
affected: C(
|
|
183800
183909
|
e
|
|
183801
183910
|
),
|
|
@@ -183829,7 +183938,10 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
183829
183938
|
owner: this,
|
|
183830
183939
|
errorReason: Be.ActionOwnerEntityNonDeletable,
|
|
183831
183940
|
rootAction: ((h = r == null ? void 0 : r.self) == null ? void 0 : h.id) === this.id && (r == null ? void 0 : r.actionName) === D.RemoveEntity
|
|
183832
|
-
}), r == null || r.attemptAutoclose(
|
|
183941
|
+
}), r == null || r.attemptAutoclose(
|
|
183942
|
+
D.RemoveEntity,
|
|
183943
|
+
this.id
|
|
183944
|
+
), {
|
|
183833
183945
|
added: [],
|
|
183834
183946
|
updated: [],
|
|
183835
183947
|
removed: [],
|
|
@@ -183838,7 +183950,10 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
183838
183950
|
};
|
|
183839
183951
|
const a = [], c = [], e = [], f = [];
|
|
183840
183952
|
if (r != null && r.hasRemoved(this.id))
|
|
183841
|
-
return r == null || r.attemptAutoclose(
|
|
183953
|
+
return r == null || r.attemptAutoclose(
|
|
183954
|
+
D.RemoveEntity,
|
|
183955
|
+
this.id
|
|
183956
|
+
), {
|
|
183842
183957
|
added: [],
|
|
183843
183958
|
updated: [],
|
|
183844
183959
|
removed: [],
|
|
@@ -183879,9 +183994,15 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
183879
183994
|
e.push(...m.added), a.push(...m.updated), c.push(...m.removed), f.push(...m.affected);
|
|
183880
183995
|
}
|
|
183881
183996
|
return r == null || r.attemptAutoclose(D.RemoveEntity, this.id), {
|
|
183882
|
-
added: C(
|
|
183883
|
-
|
|
183884
|
-
|
|
183997
|
+
added: C(
|
|
183998
|
+
e
|
|
183999
|
+
),
|
|
184000
|
+
updated: C(
|
|
184001
|
+
a
|
|
184002
|
+
),
|
|
184003
|
+
removed: C(
|
|
184004
|
+
c
|
|
184005
|
+
),
|
|
183885
184006
|
affected: C(
|
|
183886
184007
|
f
|
|
183887
184008
|
),
|
|
@@ -183904,10 +184025,28 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
183904
184025
|
if (!this.checkCanEdit(this, i))
|
|
183905
184026
|
return ce.warn(
|
|
183906
184027
|
`[restore] User is not allowed to edit this ${this.type} entity with id: ${this.id}`
|
|
183907
|
-
), i == null || i.attemptAutoclose(
|
|
184028
|
+
), i == null || i.attemptAutoclose(
|
|
184029
|
+
D.RestoreEntity,
|
|
184030
|
+
this.id
|
|
184031
|
+
), {
|
|
184032
|
+
added: [],
|
|
184033
|
+
updated: [],
|
|
184034
|
+
removed: [],
|
|
184035
|
+
affected: [],
|
|
184036
|
+
self: this
|
|
184037
|
+
};
|
|
183908
184038
|
const r = [], a = [], c = [], e = [];
|
|
183909
184039
|
if (i != null && i.hasAdded(this.id))
|
|
183910
|
-
return i == null || i.attemptAutoclose(
|
|
184040
|
+
return i == null || i.attemptAutoclose(
|
|
184041
|
+
D.RestoreEntity,
|
|
184042
|
+
this.id
|
|
184043
|
+
), {
|
|
184044
|
+
added: [],
|
|
184045
|
+
updated: [],
|
|
184046
|
+
removed: [],
|
|
184047
|
+
affected: [],
|
|
184048
|
+
self: this
|
|
184049
|
+
};
|
|
183911
184050
|
if (this.subscribe(), this.project.unsubscribeDeletedInstance(this), this.metaSync({ deleted: !1 }, i), Object.values(this.detachedDependents).forEach((f) => {
|
|
183912
184051
|
const {
|
|
183913
184052
|
updated: h,
|
|
@@ -183934,9 +184073,15 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
183934
184073
|
a.push(...f);
|
|
183935
184074
|
}
|
|
183936
184075
|
return this.parent.type === d.DefinitionEntity && (this.parentRelationType === Hu.AllPropertiesImplementationTarget ? this.parent.removeAllPropertiesImplement(i) : this.parent.addProperty(this, i), e.push(this.parent)), i == null || i.attemptAutoclose(D.RestoreEntity, this.id), {
|
|
183937
|
-
added: C(
|
|
183938
|
-
|
|
183939
|
-
|
|
184076
|
+
added: C(
|
|
184077
|
+
r
|
|
184078
|
+
),
|
|
184079
|
+
updated: C(
|
|
184080
|
+
a
|
|
184081
|
+
),
|
|
184082
|
+
removed: C(
|
|
184083
|
+
c
|
|
184084
|
+
),
|
|
183940
184085
|
affected: C(
|
|
183941
184086
|
e
|
|
183942
184087
|
),
|
|
@@ -184017,7 +184162,9 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
184017
184162
|
abstract: this.abstract,
|
|
184018
184163
|
hidden: this.hidden,
|
|
184019
184164
|
parentRelationType: this.parentRelationType,
|
|
184020
|
-
defaultValue: ((r = this.defaultValue) == null ? void 0 : r.toJSON(
|
|
184165
|
+
defaultValue: ((r = this.defaultValue) == null ? void 0 : r.toJSON(
|
|
184166
|
+
i
|
|
184167
|
+
)) || null,
|
|
184021
184168
|
dataType: ((a = this.dataType) == null ? void 0 : a.toJSON(i)) || null,
|
|
184022
184169
|
implements: this.implements.map(
|
|
184023
184170
|
(e) => e.toJSON(i)
|
|
@@ -184029,7 +184176,11 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
184029
184176
|
toJSONClone(i = lt) {
|
|
184030
184177
|
var a, c, e, f, h, m, b;
|
|
184031
184178
|
let r;
|
|
184032
|
-
return (a = i.seenEntityMaps) != null && a.has(this.id) ? r = i.seenEntityMaps.get(this.id) : (r = i.newId || cn(
|
|
184179
|
+
return (a = i.seenEntityMaps) != null && a.has(this.id) ? r = i.seenEntityMaps.get(this.id) : (r = i.newId || cn(
|
|
184180
|
+
this,
|
|
184181
|
+
this.project,
|
|
184182
|
+
i.uuidStrategy
|
|
184183
|
+
), i.seenEntityMaps && i.seenEntityMaps.set(this.id, r)), (c = i.seenEntities) != null && c.has(r) || (e = i.seenEntities) != null && e.has(this.id) ? this.toReference({ seenEntityMaps: i.seenEntityMaps }) : ((f = i.seenEntities) == null || f.add(r), (h = i.seenEntities) == null || h.add(this.id), {
|
|
184033
184184
|
id: r,
|
|
184034
184185
|
version: x.UUID.uuid(),
|
|
184035
184186
|
createdAt: i.timestamp || G().toISOString(),
|
|
@@ -184060,7 +184211,9 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
184060
184211
|
...i,
|
|
184061
184212
|
newId: null
|
|
184062
184213
|
})) || null,
|
|
184063
|
-
implements: this.implements.map((E) => this.project.getBuiltIn(E.id) ? E.toJSON(
|
|
184214
|
+
implements: this.implements.map((E) => this.project.getBuiltIn(E.id) ? E.toJSON(
|
|
184215
|
+
i.seenEntities
|
|
184216
|
+
) : E.toJSONClone({
|
|
184064
184217
|
...i,
|
|
184065
184218
|
newId: null
|
|
184066
184219
|
})),
|
|
@@ -184115,7 +184268,9 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
184115
184268
|
parentRelationType: this.parentRelationType,
|
|
184116
184269
|
defaultValue: ((c = this.defaultValue) == null ? void 0 : c.toReference(i)) || null,
|
|
184117
184270
|
dataType: ((e = this.dataType) == null ? void 0 : e.toReference(i)) || null,
|
|
184118
|
-
implements: this.implements.map(
|
|
184271
|
+
implements: this.implements.map(
|
|
184272
|
+
(h) => h.toReference(i)
|
|
184273
|
+
),
|
|
184119
184274
|
extends: ((f = this.extends) == null ? void 0 : f.toReference(i)) || null,
|
|
184120
184275
|
parent: this.parent.toReference(i)
|
|
184121
184276
|
};
|
|
@@ -184126,7 +184281,9 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
184126
184281
|
this.toShallowJSON(),
|
|
184127
184282
|
...((a = this.defaultValue) == null ? void 0 : a.toFlatJSON(i)) || [],
|
|
184128
184283
|
...((c = this.dataType) == null ? void 0 : c.toFlatJSON(i)) || [],
|
|
184129
|
-
...this.implements.flatMap(
|
|
184284
|
+
...this.implements.flatMap(
|
|
184285
|
+
(e) => e.toFlatJSON(i)
|
|
184286
|
+
),
|
|
184130
184287
|
...this.parent.toFlatJSON(i)
|
|
184131
184288
|
]);
|
|
184132
184289
|
}
|
|
@@ -184191,7 +184348,9 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
184191
184348
|
a.push(...c);
|
|
184192
184349
|
}
|
|
184193
184350
|
if (this.dataType) {
|
|
184194
|
-
const c = await this.dataType.getErrorsAsync({
|
|
184351
|
+
const c = await this.dataType.getErrorsAsync({
|
|
184352
|
+
tracker: r
|
|
184353
|
+
});
|
|
184195
184354
|
a.push(...c);
|
|
184196
184355
|
}
|
|
184197
184356
|
return a;
|
|
@@ -184333,9 +184492,15 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
184333
184492
|
if (!this.checkCanEdit(this, r))
|
|
184334
184493
|
return ce.warn(
|
|
184335
184494
|
`[setDataType] User is not allowed to edit this ${this.type} entity with id: ${this.id}`
|
|
184336
|
-
), r == null || r.attemptAutoclose(
|
|
184495
|
+
), r == null || r.attemptAutoclose(
|
|
184496
|
+
D.SetDataType,
|
|
184497
|
+
this.id
|
|
184498
|
+
), this;
|
|
184337
184499
|
const a = this.dataType;
|
|
184338
|
-
return (a == null ? void 0 : a.id) !== (i == null ? void 0 : i.id) && (a == null || a.remove(
|
|
184500
|
+
return (a == null ? void 0 : a.id) !== (i == null ? void 0 : i.id) && (a == null || a.remove(
|
|
184501
|
+
{ ignoreUpstream: !0 },
|
|
184502
|
+
r
|
|
184503
|
+
), this.dataType = i, this.subscribeToDependencies(), r == null || r.add(this, H.Affected)), r == null || r.attemptAutoclose(D.SetDataType, this.id), this;
|
|
184339
184504
|
}
|
|
184340
184505
|
removeDataType(i = this.project.addChangeSet(
|
|
184341
184506
|
new Z(
|
|
@@ -184347,9 +184512,15 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
184347
184512
|
D.RemoveDataType
|
|
184348
184513
|
)
|
|
184349
184514
|
)) {
|
|
184350
|
-
return this.checkCanEdit(this, i) ? (this.dataType && (this.dataType.remove({ ignoreUpstream: !0 }, i), i == null || i.add(this, H.Affected), this.dataType = null), i == null || i.attemptAutoclose(
|
|
184515
|
+
return this.checkCanEdit(this, i) ? (this.dataType && (this.dataType.remove({ ignoreUpstream: !0 }, i), i == null || i.add(this, H.Affected), this.dataType = null), i == null || i.attemptAutoclose(
|
|
184516
|
+
D.RemoveDataType,
|
|
184517
|
+
this.id
|
|
184518
|
+
), this) : (ce.warn(
|
|
184351
184519
|
`[removeDataType] User is not allowed to edit this ${this.type} entity with id: ${this.id}`
|
|
184352
|
-
), i == null || i.attemptAutoclose(
|
|
184520
|
+
), i == null || i.attemptAutoclose(
|
|
184521
|
+
D.RemoveDataType,
|
|
184522
|
+
this.id
|
|
184523
|
+
), this);
|
|
184353
184524
|
}
|
|
184354
184525
|
getDataType(i = this.project.addChangeSet(
|
|
184355
184526
|
new Z(
|
|
@@ -184389,7 +184560,10 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
184389
184560
|
`[setDefaultValue] User is not allowed to edit this ${this.type} entity with id: ${this.id}`
|
|
184390
184561
|
), r == null || r.attemptAutoclose("set-default-value", this.id), this;
|
|
184391
184562
|
const a = this.defaultValue;
|
|
184392
|
-
return (a == null ? void 0 : a.id) !== (i == null ? void 0 : i.id) && (a == null || a.remove(
|
|
184563
|
+
return (a == null ? void 0 : a.id) !== (i == null ? void 0 : i.id) && (a == null || a.remove(
|
|
184564
|
+
{ ignoreUpstream: !0 },
|
|
184565
|
+
r
|
|
184566
|
+
), this.defaultValue = i, r == null || r.add(this, H.Affected)), r == null || r.attemptAutoclose("set-default-value", this.id), this;
|
|
184393
184567
|
}
|
|
184394
184568
|
// The implemented entity's data-type constrains what kind of data-type this property can have
|
|
184395
184569
|
// If this property doesn't already have a data-type, it clone the implemented entity's data-type
|
|
@@ -184422,7 +184596,9 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
184422
184596
|
var J;
|
|
184423
184597
|
if (!M.dataType || !((J = M.dataType) != null && J.isResolved))
|
|
184424
184598
|
return !1;
|
|
184425
|
-
const k = this.implements.filter(
|
|
184599
|
+
const k = this.implements.filter(
|
|
184600
|
+
(ae) => ae.id !== M.id
|
|
184601
|
+
);
|
|
184426
184602
|
if (!k.length)
|
|
184427
184603
|
return !0;
|
|
184428
184604
|
const q = eo(
|
|
@@ -184479,7 +184655,10 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
184479
184655
|
k,
|
|
184480
184656
|
this.project
|
|
184481
184657
|
);
|
|
184482
|
-
q.hydrateAncestors(), q.addSelfToProject(i), q.initChildren(i), i == null || i.add(
|
|
184658
|
+
q.hydrateAncestors(), q.addSelfToProject(i), q.initChildren(i), i == null || i.add(
|
|
184659
|
+
q,
|
|
184660
|
+
H.Added
|
|
184661
|
+
), i || q.captureVersion(), this.setDefaultValue(q, i), a.push(q);
|
|
184483
184662
|
}
|
|
184484
184663
|
}
|
|
184485
184664
|
let m = !1, b = !1, E = !1, A = !1;
|
|
@@ -184494,9 +184673,15 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
184494
184673
|
},
|
|
184495
184674
|
i
|
|
184496
184675
|
), i == null || i.attemptAutoclose("sync-with-implementation", this.id), {
|
|
184497
|
-
updated: C(
|
|
184498
|
-
|
|
184499
|
-
|
|
184676
|
+
updated: C(
|
|
184677
|
+
r
|
|
184678
|
+
),
|
|
184679
|
+
added: C(
|
|
184680
|
+
a
|
|
184681
|
+
),
|
|
184682
|
+
removed: C(
|
|
184683
|
+
c
|
|
184684
|
+
),
|
|
184500
184685
|
affected: C(
|
|
184501
184686
|
e
|
|
184502
184687
|
),
|
|
@@ -184550,7 +184735,10 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
184550
184735
|
_,
|
|
184551
184736
|
this.project
|
|
184552
184737
|
);
|
|
184553
|
-
N.hydrateAncestors(), N.addSelfToProject(i), i == null || i.add(
|
|
184738
|
+
N.hydrateAncestors(), N.addSelfToProject(i), i == null || i.add(
|
|
184739
|
+
N,
|
|
184740
|
+
H.Added
|
|
184741
|
+
), N.afterAllChildrenInitialized(i), h = !0;
|
|
184554
184742
|
}
|
|
184555
184743
|
const m = si(
|
|
184556
184744
|
this.dataType,
|
|
@@ -184567,9 +184755,15 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
184567
184755
|
} else
|
|
184568
184756
|
this.extends.defaultValue ? this.extends.defaultValue && this.defaultValue && !gDi(this.defaultValue, this.extends.defaultValue) && (this.defaultValue.merge(this.extends.defaultValue, i), r.push(this.defaultValue)) : ((A = this.defaultValue) == null || A.remove({ ignoreUpstream: !0 }, i), this.defaultValue = null, e.push(this));
|
|
184569
184757
|
return i == null || i.attemptAutoclose("sync-with-extension", this.id), {
|
|
184570
|
-
updated: C(
|
|
184571
|
-
|
|
184572
|
-
|
|
184758
|
+
updated: C(
|
|
184759
|
+
r
|
|
184760
|
+
),
|
|
184761
|
+
added: C(
|
|
184762
|
+
a
|
|
184763
|
+
),
|
|
184764
|
+
removed: C(
|
|
184765
|
+
c
|
|
184766
|
+
),
|
|
184573
184767
|
affected: C(
|
|
184574
184768
|
e
|
|
184575
184769
|
),
|
|
@@ -184593,10 +184787,18 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
184593
184787
|
this.project
|
|
184594
184788
|
);
|
|
184595
184789
|
if (e.hydrateAncestors(), e.addSelfToProject(i), i == null || i.add(e, H.Added), e.initChildren(i), this.dataType)
|
|
184596
|
-
if (this.project.diggestedBuiltInBaseEntitiesIds.has(
|
|
184597
|
-
|
|
184790
|
+
if (this.project.diggestedBuiltInBaseEntitiesIds.has(
|
|
184791
|
+
this.dataType.id
|
|
184792
|
+
))
|
|
184793
|
+
e.setDataType(this.dataType, i), i == null || i.add(
|
|
184794
|
+
e,
|
|
184795
|
+
H.Affected
|
|
184796
|
+
);
|
|
184598
184797
|
else {
|
|
184599
|
-
const f = this.dataType.clone(
|
|
184798
|
+
const f = this.dataType.clone(
|
|
184799
|
+
i,
|
|
184800
|
+
e
|
|
184801
|
+
);
|
|
184600
184802
|
e.setDataType(f, i);
|
|
184601
184803
|
}
|
|
184602
184804
|
if (this.defaultValue) {
|
|
@@ -185629,11 +185831,17 @@ const Pi = class Pi extends nn {
|
|
|
185629
185831
|
const f = [];
|
|
185630
185832
|
i.implements && i.implements.forEach((E) => {
|
|
185631
185833
|
f.push(
|
|
185632
|
-
r.get(E) || r.getBuiltIn(
|
|
185834
|
+
r.get(E) || r.getBuiltIn(
|
|
185835
|
+
E
|
|
185836
|
+
)
|
|
185633
185837
|
);
|
|
185634
185838
|
});
|
|
185635
185839
|
let h = null;
|
|
185636
|
-
i.extends && (h = r.get(
|
|
185840
|
+
i.extends && (h = r.get(
|
|
185841
|
+
i.extends
|
|
185842
|
+
) || r.getBuiltIn(
|
|
185843
|
+
i.extends
|
|
185844
|
+
));
|
|
185637
185845
|
const m = {
|
|
185638
185846
|
id: i.id,
|
|
185639
185847
|
version: x.UUID.uuid(),
|
|
@@ -185672,7 +185880,10 @@ const Pi = class Pi extends nn {
|
|
|
185672
185880
|
let a = JSON.parse(
|
|
185673
185881
|
JSON.stringify(i)
|
|
185674
185882
|
);
|
|
185675
|
-
const c = [], e = [], f = KRi(
|
|
185883
|
+
const c = [], e = [], f = KRi(
|
|
185884
|
+
a,
|
|
185885
|
+
r
|
|
185886
|
+
), h = FF(a, r), m = an(
|
|
185676
185887
|
a
|
|
185677
185888
|
);
|
|
185678
185889
|
e.push(
|
|
@@ -185725,12 +185936,14 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
185725
185936
|
}
|
|
185726
185937
|
get allBaseMethodsFromOriginalParents() {
|
|
185727
185938
|
var a;
|
|
185728
|
-
const i = ((a = this.extends) == null ? void 0 : a.type) === d.DefinitionEntity ? this.extends.allMethods : [], r = [...i].filter(
|
|
185729
|
-
(
|
|
185730
|
-
|
|
185731
|
-
|
|
185732
|
-
|
|
185733
|
-
|
|
185939
|
+
const i = ((a = this.extends) == null ? void 0 : a.type) === d.DefinitionEntity ? this.extends.allMethods : [], r = [...i].filter(
|
|
185940
|
+
(c) => !i.some(
|
|
185941
|
+
(e) => {
|
|
185942
|
+
var f, h;
|
|
185943
|
+
return e.id !== c.id && (((f = e.implements) == null ? void 0 : f.id) === c.id || ((h = e.extends) == null ? void 0 : h.id) === c.id);
|
|
185944
|
+
}
|
|
185945
|
+
)
|
|
185946
|
+
);
|
|
185734
185947
|
return C([
|
|
185735
185948
|
...r,
|
|
185736
185949
|
...this.implements.flatMap((c) => {
|
|
@@ -185749,7 +185962,9 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
185749
185962
|
const i = ((c = this.extends) == null ? void 0 : c.allProperties) || [], r = [...i].filter((e) => !i.some(
|
|
185750
185963
|
(f) => {
|
|
185751
185964
|
var h;
|
|
185752
|
-
return f.id !== e.id && (!!f.implements.find(
|
|
185965
|
+
return f.id !== e.id && (!!f.implements.find(
|
|
185966
|
+
(m) => m.id === e.id
|
|
185967
|
+
) || ((h = f.extends) == null ? void 0 : h.id) === e.id);
|
|
185753
185968
|
}
|
|
185754
185969
|
));
|
|
185755
185970
|
return C([
|
|
@@ -185759,7 +185974,9 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
185759
185974
|
return [...f].filter((m) => !f.some(
|
|
185760
185975
|
(b) => {
|
|
185761
185976
|
var E;
|
|
185762
|
-
return b.id !== m.id && (!!b.implements.find(
|
|
185977
|
+
return b.id !== m.id && (!!b.implements.find(
|
|
185978
|
+
(A) => A.id === m.id
|
|
185979
|
+
) || ((E = b.extends) == null ? void 0 : E.id) === m.id);
|
|
185763
185980
|
}
|
|
185764
185981
|
));
|
|
185765
185982
|
})
|
|
@@ -185775,23 +185992,34 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
185775
185992
|
(f) => !i.some(
|
|
185776
185993
|
(h) => {
|
|
185777
185994
|
var m;
|
|
185778
|
-
return h.id !== f.id && (!!h.implements.find(
|
|
185995
|
+
return h.id !== f.id && (!!h.implements.find(
|
|
185996
|
+
(b) => b.id === f.id
|
|
185997
|
+
) || ((m = h.extends) == null ? void 0 : m.id) === f.id);
|
|
185779
185998
|
}
|
|
185780
185999
|
)
|
|
185781
|
-
), a = this.implements.reduce(
|
|
185782
|
-
|
|
185783
|
-
|
|
185784
|
-
|
|
185785
|
-
|
|
185786
|
-
|
|
185787
|
-
|
|
185788
|
-
|
|
185789
|
-
|
|
185790
|
-
|
|
185791
|
-
|
|
185792
|
-
|
|
185793
|
-
|
|
185794
|
-
|
|
186000
|
+
), a = this.implements.reduce(
|
|
186001
|
+
(f, h) => {
|
|
186002
|
+
const m = h.implementedPropertiesFromOriginalParents, b = [
|
|
186003
|
+
...h.ownDeclaredProperties
|
|
186004
|
+
].filter((_) => !_.abstract), E = [
|
|
186005
|
+
...m,
|
|
186006
|
+
...b,
|
|
186007
|
+
...f
|
|
186008
|
+
];
|
|
186009
|
+
return [...E].filter(
|
|
186010
|
+
// Filter out properties which are implemented in the current entity
|
|
186011
|
+
(_) => !!!E.find(
|
|
186012
|
+
(V) => {
|
|
186013
|
+
var B;
|
|
186014
|
+
return !!V.implements.find(
|
|
186015
|
+
(M) => M.id === _.id
|
|
186016
|
+
) || ((B = V.extends) == null ? void 0 : B.id) === _.id;
|
|
186017
|
+
}
|
|
186018
|
+
)
|
|
186019
|
+
);
|
|
186020
|
+
},
|
|
186021
|
+
[]
|
|
186022
|
+
);
|
|
185795
186023
|
return C([
|
|
185796
186024
|
...r,
|
|
185797
186025
|
...a
|
|
@@ -185804,14 +186032,18 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
185804
186032
|
(i, r) => r.type !== d.DefinitionEntity ? [] : [...[
|
|
185805
186033
|
...r.ownDeclaredMethods,
|
|
185806
186034
|
...r.allBaseMethodsFromExtendedAndImplementedEntities
|
|
185807
|
-
].filter(
|
|
186035
|
+
].filter(
|
|
186036
|
+
(c) => c.type !== d.ActionDescriptor
|
|
186037
|
+
), ...i],
|
|
185808
186038
|
[]
|
|
185809
186039
|
),
|
|
185810
186040
|
...this.implements.reduce(
|
|
185811
186041
|
(i, r) => r.type !== d.DefinitionEntity ? r.abstractMethods : [...[
|
|
185812
186042
|
...r.ownDeclaredMethods,
|
|
185813
186043
|
...r.allBaseMethodsFromExtendedAndImplementedEntities
|
|
185814
|
-
].filter(
|
|
186044
|
+
].filter(
|
|
186045
|
+
(c) => c.type !== d.ActionDescriptor
|
|
186046
|
+
), ...i],
|
|
185815
186047
|
[]
|
|
185816
186048
|
)
|
|
185817
186049
|
]);
|
|
@@ -185824,7 +186056,9 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
185824
186056
|
].filter((e) => !e.abstract), r = [...i].filter((e) => !i.some(
|
|
185825
186057
|
(f) => {
|
|
185826
186058
|
var h;
|
|
185827
|
-
return f.id !== e.id && (!!f.implements.find(
|
|
186059
|
+
return f.id !== e.id && (!!f.implements.find(
|
|
186060
|
+
(m) => m.id === e.id
|
|
186061
|
+
) || ((h = f.extends) == null ? void 0 : h.id) === e.id);
|
|
185828
186062
|
}
|
|
185829
186063
|
));
|
|
185830
186064
|
return C(r);
|
|
@@ -185832,30 +186066,45 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
185832
186066
|
get implementedPropertiesFromOriginalParents() {
|
|
185833
186067
|
return C(
|
|
185834
186068
|
[
|
|
185835
|
-
...(this.extends ? [this.extends] : []).reduce(
|
|
185836
|
-
|
|
185837
|
-
|
|
185838
|
-
|
|
185839
|
-
|
|
185840
|
-
|
|
185841
|
-
|
|
185842
|
-
|
|
185843
|
-
|
|
185844
|
-
|
|
185845
|
-
|
|
185846
|
-
|
|
185847
|
-
|
|
185848
|
-
|
|
186069
|
+
...(this.extends ? [this.extends] : []).reduce(
|
|
186070
|
+
(i, r) => {
|
|
186071
|
+
const a = r.implementedPropertiesFromOriginalParents, c = [
|
|
186072
|
+
...r.ownDeclaredProperties
|
|
186073
|
+
].filter((h) => !!h.abstract), e = [
|
|
186074
|
+
...a,
|
|
186075
|
+
...c,
|
|
186076
|
+
...i
|
|
186077
|
+
];
|
|
186078
|
+
return [...e].filter(
|
|
186079
|
+
// Filter out properties which are extended in the current entity
|
|
186080
|
+
(h) => !!!e.find(
|
|
186081
|
+
(b) => {
|
|
186082
|
+
var E;
|
|
186083
|
+
return ((E = b.extends) == null ? void 0 : E.id) === h.id || !!b.implements.find(
|
|
186084
|
+
(A) => A.id === h.id
|
|
186085
|
+
);
|
|
186086
|
+
}
|
|
186087
|
+
)
|
|
186088
|
+
);
|
|
186089
|
+
},
|
|
186090
|
+
[]
|
|
186091
|
+
),
|
|
185849
186092
|
...this.implements.reduce((i, r) => {
|
|
185850
|
-
const a = r.implementedPropertiesFromOriginalParents, c = [
|
|
185851
|
-
|
|
185852
|
-
), e = [
|
|
186093
|
+
const a = r.implementedPropertiesFromOriginalParents, c = [
|
|
186094
|
+
...r.ownDeclaredProperties
|
|
186095
|
+
].filter((h) => !!h.abstract), e = [
|
|
186096
|
+
...a,
|
|
186097
|
+
...c,
|
|
186098
|
+
...i
|
|
186099
|
+
];
|
|
185853
186100
|
return [...e].filter(
|
|
185854
186101
|
// Filter out properties which are implemented in the current entity
|
|
185855
186102
|
(h) => !!!e.find(
|
|
185856
186103
|
(b) => {
|
|
185857
186104
|
var E;
|
|
185858
|
-
return !!b.implements.find(
|
|
186105
|
+
return !!b.implements.find(
|
|
186106
|
+
(A) => A.id === h.id
|
|
186107
|
+
) || ((E = b.extends) == null ? void 0 : E.id) === h.id;
|
|
185859
186108
|
}
|
|
185860
186109
|
)
|
|
185861
186110
|
);
|
|
@@ -185872,7 +186121,9 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
185872
186121
|
const a = [
|
|
185873
186122
|
...r.ownDeclaredMethods,
|
|
185874
186123
|
...r.extendedMethodsFromOriginalParents
|
|
185875
|
-
].filter(
|
|
186124
|
+
].filter(
|
|
186125
|
+
(c) => c.type !== d.ActionDescriptor
|
|
186126
|
+
);
|
|
185876
186127
|
return [...i, ...a];
|
|
185877
186128
|
},
|
|
185878
186129
|
[]
|
|
@@ -185884,8 +186135,12 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
185884
186135
|
[
|
|
185885
186136
|
...(this.extends ? [this.extends] : []).reduce(
|
|
185886
186137
|
(i, r) => {
|
|
185887
|
-
const a = r.type === d.DefinitionEntity ? r.methods : [], c = [
|
|
185888
|
-
|
|
186138
|
+
const a = r.type === d.DefinitionEntity ? r.methods : [], c = [
|
|
186139
|
+
...r.abstractMethods
|
|
186140
|
+
].filter(
|
|
186141
|
+
(e) => !a.find(
|
|
186142
|
+
(f) => f.name === e.name
|
|
186143
|
+
)
|
|
185889
186144
|
);
|
|
185890
186145
|
return [...a, ...c, ...i];
|
|
185891
186146
|
},
|
|
@@ -185899,7 +186154,9 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
185899
186154
|
);
|
|
185900
186155
|
}
|
|
185901
186156
|
get extendedProperties() {
|
|
185902
|
-
return this.properties.filter(
|
|
186157
|
+
return this.properties.filter(
|
|
186158
|
+
(i) => i.isExtendedProperty
|
|
186159
|
+
);
|
|
185903
186160
|
}
|
|
185904
186161
|
get ownDeclaredProperties() {
|
|
185905
186162
|
return this.properties.filter(
|
|
@@ -185951,9 +186208,15 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
185951
186208
|
const h = f.entity.afterAllChildrenInitialized(i);
|
|
185952
186209
|
r.push(...h.updated), a.push(...h.added), c.push(...h.removed), e.push(...h.affected);
|
|
185953
186210
|
}), i == null || i.attemptAutoclose("sync-dependents", this.id), {
|
|
185954
|
-
updated: C(
|
|
185955
|
-
|
|
185956
|
-
|
|
186211
|
+
updated: C(
|
|
186212
|
+
r
|
|
186213
|
+
),
|
|
186214
|
+
added: C(
|
|
186215
|
+
a
|
|
186216
|
+
),
|
|
186217
|
+
removed: C(
|
|
186218
|
+
c
|
|
186219
|
+
),
|
|
185957
186220
|
affected: C(
|
|
185958
186221
|
e
|
|
185959
186222
|
),
|
|
@@ -185964,10 +186227,19 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
185964
186227
|
// The field indicates which field of the current entity is the dependency
|
|
185965
186228
|
onDetachedDependencyRemoved(i, r, a) {
|
|
185966
186229
|
const c = [], e = [], f = [], h = [];
|
|
185967
|
-
return r === "implements" && (this.removeImplementation(
|
|
185968
|
-
|
|
185969
|
-
|
|
185970
|
-
|
|
186230
|
+
return r === "implements" && (this.removeImplementation(
|
|
186231
|
+
i,
|
|
186232
|
+
a
|
|
186233
|
+
), c.push(this)), r === "extends" && (this.setExtension(null, a), c.push(this)), {
|
|
186234
|
+
updated: C(
|
|
186235
|
+
c
|
|
186236
|
+
),
|
|
186237
|
+
added: C(
|
|
186238
|
+
e
|
|
186239
|
+
),
|
|
186240
|
+
removed: C(
|
|
186241
|
+
f
|
|
186242
|
+
),
|
|
185971
186243
|
affected: C(
|
|
185972
186244
|
h
|
|
185973
186245
|
),
|
|
@@ -185978,10 +186250,19 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
185978
186250
|
// The field indicates which field of the current entity is the dependency
|
|
185979
186251
|
onDetachedDependencyRestored(i, r, a) {
|
|
185980
186252
|
const c = [], e = [], f = [], h = [];
|
|
185981
|
-
return r === "implements" && (this.addImplementation(
|
|
185982
|
-
|
|
185983
|
-
|
|
185984
|
-
|
|
186253
|
+
return r === "implements" && (this.addImplementation(
|
|
186254
|
+
i,
|
|
186255
|
+
a
|
|
186256
|
+
), c.push(this)), r === "extends" && (this.setExtension(i, a), c.push(this)), {
|
|
186257
|
+
updated: C(
|
|
186258
|
+
c
|
|
186259
|
+
),
|
|
186260
|
+
added: C(
|
|
186261
|
+
e
|
|
186262
|
+
),
|
|
186263
|
+
removed: C(
|
|
186264
|
+
f
|
|
186265
|
+
),
|
|
185985
186266
|
affected: C(
|
|
185986
186267
|
h
|
|
185987
186268
|
),
|
|
@@ -186087,9 +186368,15 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
186087
186368
|
r.push(this.parent, ...f.updated), a.push(...f.added), c.push(...f.removed);
|
|
186088
186369
|
}
|
|
186089
186370
|
return {
|
|
186090
|
-
updated: C(
|
|
186091
|
-
|
|
186092
|
-
|
|
186371
|
+
updated: C(
|
|
186372
|
+
r
|
|
186373
|
+
),
|
|
186374
|
+
added: C(
|
|
186375
|
+
a
|
|
186376
|
+
),
|
|
186377
|
+
removed: C(
|
|
186378
|
+
c
|
|
186379
|
+
),
|
|
186093
186380
|
affected: C(
|
|
186094
186381
|
e
|
|
186095
186382
|
),
|
|
@@ -186112,7 +186399,9 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
186112
186399
|
updated: C(
|
|
186113
186400
|
a
|
|
186114
186401
|
),
|
|
186115
|
-
added: C(
|
|
186402
|
+
added: C(
|
|
186403
|
+
c
|
|
186404
|
+
),
|
|
186116
186405
|
removed: C(
|
|
186117
186406
|
e
|
|
186118
186407
|
),
|
|
@@ -186148,9 +186437,15 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
186148
186437
|
);
|
|
186149
186438
|
}
|
|
186150
186439
|
return this.metaSync(h.toShallowJSON(), null), this.previousVersion = h.previousVersion, this.version = h.version, this.createdAt = h.createdAt, this.author = h.author, this.deleted = h.deleted, this.properties = [...h.properties], this.methods = [...h.methods], this.abstractMethods = [...h.abstractMethods], this.extends = h.extends, this.implements = [...h.implements], this.allPropertiesImplement = h.allPropertiesImplement, this.additionalPropertiesDataType = h.additionalPropertiesDataType, this.parent = h.parent, {
|
|
186151
|
-
updated: C(
|
|
186152
|
-
|
|
186153
|
-
|
|
186440
|
+
updated: C(
|
|
186441
|
+
a
|
|
186442
|
+
),
|
|
186443
|
+
added: C(
|
|
186444
|
+
c
|
|
186445
|
+
),
|
|
186446
|
+
removed: C(
|
|
186447
|
+
e
|
|
186448
|
+
),
|
|
186154
186449
|
affected: C(
|
|
186155
186450
|
f
|
|
186156
186451
|
),
|
|
@@ -186189,9 +186484,13 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
186189
186484
|
throw r == null || r.attemptAutoclose(
|
|
186190
186485
|
D.UpdateWithShallowTransfer,
|
|
186191
186486
|
this.id
|
|
186192
|
-
), new Error(
|
|
186487
|
+
), new Error(
|
|
186488
|
+
`${this.type} with id '${this.id}' must have a 'parent'`
|
|
186489
|
+
);
|
|
186193
186490
|
if (i.extends) {
|
|
186194
|
-
const f = te(
|
|
186491
|
+
const f = te(
|
|
186492
|
+
i.extends
|
|
186493
|
+
), h = this.project.get(f);
|
|
186195
186494
|
h && this.setExtension(h, r);
|
|
186196
186495
|
} else
|
|
186197
186496
|
this.setExtension(null, r);
|
|
@@ -186203,12 +186502,14 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
186203
186502
|
throw new Error(
|
|
186204
186503
|
`${Tr(this.type)} with id '${this.id}' has a 'implements' reference "${h}" which is missing in the project`
|
|
186205
186504
|
);
|
|
186206
|
-
}), this.implements.filter(
|
|
186207
|
-
|
|
186208
|
-
|
|
186209
|
-
|
|
186210
|
-
|
|
186211
|
-
|
|
186505
|
+
}), this.implements.filter(
|
|
186506
|
+
(f) => {
|
|
186507
|
+
const h = te(
|
|
186508
|
+
f
|
|
186509
|
+
);
|
|
186510
|
+
return !i.implements.find((m) => te(m) === h);
|
|
186511
|
+
}
|
|
186512
|
+
).forEach((f) => {
|
|
186212
186513
|
this.removeImplementation(f, r);
|
|
186213
186514
|
}), i.methods.forEach((f) => {
|
|
186214
186515
|
const h = te(f), m = this.project.get(
|
|
@@ -186221,7 +186522,9 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
186221
186522
|
}).forEach((f) => {
|
|
186222
186523
|
this.removeMethod(f, r);
|
|
186223
186524
|
}), i.properties.forEach((f) => {
|
|
186224
|
-
const h = te(f), m = this.project.get(
|
|
186525
|
+
const h = te(f), m = this.project.get(
|
|
186526
|
+
h
|
|
186527
|
+
);
|
|
186225
186528
|
m && this.addProperty(m, r);
|
|
186226
186529
|
}), this.properties.filter((f) => {
|
|
186227
186530
|
const h = te(f);
|
|
@@ -186231,14 +186534,18 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
186231
186534
|
}), i.allPropertiesImplement) {
|
|
186232
186535
|
const f = te(
|
|
186233
186536
|
i.allPropertiesImplement
|
|
186234
|
-
), h = this.project.get(
|
|
186537
|
+
), h = this.project.get(
|
|
186538
|
+
f
|
|
186539
|
+
);
|
|
186235
186540
|
h && this.setAllPropertiesImplement(h, r);
|
|
186236
186541
|
} else
|
|
186237
186542
|
this.setAllPropertiesImplement(null, r);
|
|
186238
186543
|
if (i.additionalPropertiesDataType) {
|
|
186239
186544
|
const f = te(
|
|
186240
186545
|
i.additionalPropertiesDataType
|
|
186241
|
-
), h = this.project.get(
|
|
186546
|
+
), h = this.project.get(
|
|
186547
|
+
f
|
|
186548
|
+
);
|
|
186242
186549
|
h && this.setAdditionalPropertiesDataType(h, r);
|
|
186243
186550
|
} else
|
|
186244
186551
|
this.setAdditionalPropertiesDataType(null, r);
|
|
@@ -186278,7 +186585,9 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
186278
186585
|
);
|
|
186279
186586
|
}
|
|
186280
186587
|
if (i.extends) {
|
|
186281
|
-
const c = te(
|
|
186588
|
+
const c = te(
|
|
186589
|
+
i.extends
|
|
186590
|
+
), e = this.project.get(c);
|
|
186282
186591
|
if (e)
|
|
186283
186592
|
this.setExtension(e, r);
|
|
186284
186593
|
else
|
|
@@ -186300,7 +186609,9 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
186300
186609
|
const f = te(
|
|
186301
186610
|
e
|
|
186302
186611
|
);
|
|
186303
|
-
return !(i.implements || []).find((h) => te(
|
|
186612
|
+
return !(i.implements || []).find((h) => te(
|
|
186613
|
+
h
|
|
186614
|
+
) === f);
|
|
186304
186615
|
}
|
|
186305
186616
|
).forEach((e) => {
|
|
186306
186617
|
this.removeImplementation(e, r);
|
|
@@ -186322,7 +186633,9 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
186322
186633
|
`${this.type} with id '${this.id}' has a 'parent' reference '${e}' that isn't found in the project`
|
|
186323
186634
|
);
|
|
186324
186635
|
} else
|
|
186325
|
-
throw new Error(
|
|
186636
|
+
throw new Error(
|
|
186637
|
+
`${this.type} with id '${this.id}' must have a 'parent'`
|
|
186638
|
+
);
|
|
186326
186639
|
if (this.initialData.extends) {
|
|
186327
186640
|
const e = te(
|
|
186328
186641
|
this.initialData.extends
|
|
@@ -186338,9 +186651,15 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
186338
186651
|
`${Tr(this.type)} with id '${this.id}' has a 'implements' reference "${f}" which is missing in the project`
|
|
186339
186652
|
);
|
|
186340
186653
|
}), {
|
|
186341
|
-
updated: C(
|
|
186342
|
-
|
|
186343
|
-
|
|
186654
|
+
updated: C(
|
|
186655
|
+
i
|
|
186656
|
+
),
|
|
186657
|
+
added: C(
|
|
186658
|
+
r
|
|
186659
|
+
),
|
|
186660
|
+
removed: C(
|
|
186661
|
+
a
|
|
186662
|
+
),
|
|
186344
186663
|
affected: C(
|
|
186345
186664
|
c
|
|
186346
186665
|
),
|
|
@@ -186411,7 +186730,9 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
186411
186730
|
added: Y,
|
|
186412
186731
|
removed: oe
|
|
186413
186732
|
} = this.removeUnrecognizedMethods(i);
|
|
186414
|
-
r.push(...z), a.push(...Y), c.push(...oe), this.addSuggestions(), this.properties.
|
|
186733
|
+
r.push(...z), a.push(...Y), c.push(...oe), this.addSuggestions(), this.properties.forEach((fe) => {
|
|
186734
|
+
this.static && !fe.static && fe.metaSync({ static: !0 }, i);
|
|
186735
|
+
}), this.properties.sort((fe, Ee) => fe.index - Ee.index);
|
|
186415
186736
|
let he = this.project.getDefinitionEntities(
|
|
186416
186737
|
/* @__PURE__ */ new Set([this.id])
|
|
186417
186738
|
).filter(
|
|
@@ -186424,16 +186745,25 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
186424
186745
|
}), he = he.filter(
|
|
186425
186746
|
(Ee) => Ee.name.toLowerCase() === this.name.toLowerCase()
|
|
186426
186747
|
)), he.length)) {
|
|
186427
|
-
const fe = rp(
|
|
186748
|
+
const fe = rp(
|
|
186749
|
+
this.name,
|
|
186750
|
+
he
|
|
186751
|
+
);
|
|
186428
186752
|
this.metaSync({ name: fe }, i);
|
|
186429
186753
|
}
|
|
186430
186754
|
return i == null || i.attemptAutoclose(
|
|
186431
186755
|
D.AfterAllChildrenInitialized,
|
|
186432
186756
|
this.id
|
|
186433
186757
|
), {
|
|
186434
|
-
updated: C(
|
|
186435
|
-
|
|
186436
|
-
|
|
186758
|
+
updated: C(
|
|
186759
|
+
r
|
|
186760
|
+
),
|
|
186761
|
+
added: C(
|
|
186762
|
+
a
|
|
186763
|
+
),
|
|
186764
|
+
removed: C(
|
|
186765
|
+
c
|
|
186766
|
+
),
|
|
186437
186767
|
affected: C(
|
|
186438
186768
|
e
|
|
186439
186769
|
),
|
|
@@ -186458,13 +186788,19 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
186458
186788
|
} else
|
|
186459
186789
|
this.project.addDefinitionEntity(this);
|
|
186460
186790
|
return this.subscribe(), this.subscribeToDependencies(), i == null || i.attemptAutoclose("add-self-to-project", this.id), {
|
|
186461
|
-
updated: C(
|
|
186462
|
-
|
|
186463
|
-
removed: C(c),
|
|
186464
|
-
affected: C(
|
|
186465
|
-
e
|
|
186791
|
+
updated: C(
|
|
186792
|
+
r
|
|
186466
186793
|
),
|
|
186467
|
-
|
|
186794
|
+
added: C(
|
|
186795
|
+
a
|
|
186796
|
+
),
|
|
186797
|
+
removed: C(
|
|
186798
|
+
c
|
|
186799
|
+
),
|
|
186800
|
+
affected: C(
|
|
186801
|
+
e
|
|
186802
|
+
),
|
|
186803
|
+
self: this
|
|
186468
186804
|
};
|
|
186469
186805
|
}
|
|
186470
186806
|
setParent(i, r = this.project.addChangeSet(
|
|
@@ -186498,7 +186834,10 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
186498
186834
|
var a;
|
|
186499
186835
|
return this.checkCanEdit(this, r) ? (((a = this.extends) == null ? void 0 : a.id) !== (i == null ? void 0 : i.id) && (this.extends = i, this.subscribeToDependencies(), r && (r == null || r.add(this, H.Updated))), r == null || r.attemptAutoclose(D.SetExtension, this.id), this) : (ce.warn(
|
|
186500
186836
|
`[setExtension] User is not allowed to edit this ${this.type} entity with id: ${this.id}`
|
|
186501
|
-
), r == null || r.attemptAutoclose(
|
|
186837
|
+
), r == null || r.attemptAutoclose(
|
|
186838
|
+
D.SetExtension,
|
|
186839
|
+
this.id
|
|
186840
|
+
), this);
|
|
186502
186841
|
}
|
|
186503
186842
|
addImplementation(i, r = this.project.addChangeSet(
|
|
186504
186843
|
new Z(
|
|
@@ -186510,7 +186849,10 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
186510
186849
|
D.AddImplementation
|
|
186511
186850
|
)
|
|
186512
186851
|
)) {
|
|
186513
|
-
return this.checkCanEdit(this, r) ? (this.implements.includes(i) || (this.implements.push(i), this.subscribeToDependencies(), r == null || r.add(this, H.Updated)), r == null || r.attemptAutoclose(
|
|
186852
|
+
return this.checkCanEdit(this, r) ? (this.implements.includes(i) || (this.implements.push(i), this.subscribeToDependencies(), r == null || r.add(this, H.Updated)), r == null || r.attemptAutoclose(
|
|
186853
|
+
D.AddImplementation,
|
|
186854
|
+
this.id
|
|
186855
|
+
), this) : (ce.warn(
|
|
186514
186856
|
`[addImplementation] User is not allowed to edit this ${this.type} entity with id: ${this.id}`
|
|
186515
186857
|
), r == null || r.attemptAutoclose(
|
|
186516
186858
|
D.AddImplementation,
|
|
@@ -186547,9 +186889,17 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
186547
186889
|
D.RemoveProperty
|
|
186548
186890
|
)
|
|
186549
186891
|
)) {
|
|
186550
|
-
return this.checkCanEdit(this, r) ? (this.properties.includes(i) && (this.properties = this.properties.filter(
|
|
186892
|
+
return this.checkCanEdit(this, r) ? (this.properties.includes(i) && (this.properties = this.properties.filter(
|
|
186893
|
+
(a) => a.id !== i.id
|
|
186894
|
+
), r == null || r.add(this, H.Updated)), r == null || r.attemptAutoclose(
|
|
186895
|
+
D.RemoveProperty,
|
|
186896
|
+
this.id
|
|
186897
|
+
), this) : (ce.warn(
|
|
186551
186898
|
`[removeProperty] User is not allowed to edit this ${this.type} entity with id: ${this.id}`
|
|
186552
|
-
), r == null || r.attemptAutoclose(
|
|
186899
|
+
), r == null || r.attemptAutoclose(
|
|
186900
|
+
D.RemoveProperty,
|
|
186901
|
+
this.id
|
|
186902
|
+
), this);
|
|
186553
186903
|
}
|
|
186554
186904
|
addMethod(i, r = this.project.addChangeSet(
|
|
186555
186905
|
new Z(
|
|
@@ -186579,7 +186929,10 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
186579
186929
|
)) {
|
|
186580
186930
|
return this.checkCanEdit(this, r) ? (this.methods.includes(i) && (this.methods = this.methods.filter((a) => a.id !== i.id), r == null || r.add(this, H.Updated)), r == null || r.attemptAutoclose(D.RemoveMethod, this.id), this) : (ce.warn(
|
|
186581
186931
|
`[removeMethod] User is not allowed to edit this ${this.type} entity with id: ${this.id}`
|
|
186582
|
-
), r == null || r.attemptAutoclose(
|
|
186932
|
+
), r == null || r.attemptAutoclose(
|
|
186933
|
+
D.RemoveMethod,
|
|
186934
|
+
this.id
|
|
186935
|
+
), this);
|
|
186583
186936
|
}
|
|
186584
186937
|
addProperty(i, r = this.project.addChangeSet(
|
|
186585
186938
|
new Z(
|
|
@@ -186595,7 +186948,10 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
186595
186948
|
(a) => a.name !== i.name
|
|
186596
186949
|
), r == null || r.add(this, H.Updated)), r == null || r.attemptAutoclose(D.AddProperty, this.id), this) : (ce.warn(
|
|
186597
186950
|
`[addProperty] User is not allowed to edit this ${this.type} entity with id: ${this.id}`
|
|
186598
|
-
), r == null || r.attemptAutoclose(
|
|
186951
|
+
), r == null || r.attemptAutoclose(
|
|
186952
|
+
D.AddProperty,
|
|
186953
|
+
this.id
|
|
186954
|
+
), this);
|
|
186599
186955
|
}
|
|
186600
186956
|
addSuggestedProperty(i) {
|
|
186601
186957
|
return this.suggestedProperties.includes(i) || this.suggestedProperties.push(i), this;
|
|
@@ -186623,7 +186979,10 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
186623
186979
|
D.AddAbstractMethod
|
|
186624
186980
|
)
|
|
186625
186981
|
)) {
|
|
186626
|
-
return this.checkCanEdit(this, r) ? (this.abstractMethods.includes(i) || (this.abstractMethods.push(i), r == null || r.add(this, H.Updated)), r == null || r.attemptAutoclose(
|
|
186982
|
+
return this.checkCanEdit(this, r) ? (this.abstractMethods.includes(i) || (this.abstractMethods.push(i), r == null || r.add(this, H.Updated)), r == null || r.attemptAutoclose(
|
|
186983
|
+
D.AddAbstractMethod,
|
|
186984
|
+
this.id
|
|
186985
|
+
), this) : (ce.warn(
|
|
186627
186986
|
`[addAbstractMethod] User is not allowed to edit this ${this.type} entity with id: ${this.id}`
|
|
186628
186987
|
), r == null || r.attemptAutoclose(
|
|
186629
186988
|
D.AddAbstractMethod,
|
|
@@ -186723,14 +187082,27 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
186723
187082
|
), f = f.filter((E) => !E.isExtendedProperty);
|
|
186724
187083
|
const h = this.implementedPropertiesFromOriginalParents, m = this.getAllPropertiesImplements();
|
|
186725
187084
|
return f.filter((E) => this.interactive && !E.implements.length ? !1 : !E.implements.find(
|
|
186726
|
-
(_) => !!h.find(
|
|
187085
|
+
(_) => !!h.find(
|
|
187086
|
+
(N) => N.id === _.id
|
|
187087
|
+
) || !!m.find(
|
|
187088
|
+
(N) => N.id === _.id
|
|
187089
|
+
)
|
|
186727
187090
|
)).forEach((E) => {
|
|
186728
|
-
const A = E.remove(
|
|
187091
|
+
const A = E.remove(
|
|
187092
|
+
{ ignoreUpstream: !1 },
|
|
187093
|
+
i
|
|
187094
|
+
);
|
|
186729
187095
|
c.push(...A.removed), r.push(...A.updated);
|
|
186730
187096
|
}), i == null || i.attemptAutoclose("remove-unrecognized-properties", this.id), {
|
|
186731
|
-
updated: C(
|
|
186732
|
-
|
|
186733
|
-
|
|
187097
|
+
updated: C(
|
|
187098
|
+
r
|
|
187099
|
+
),
|
|
187100
|
+
added: C(
|
|
187101
|
+
a
|
|
187102
|
+
),
|
|
187103
|
+
removed: C(
|
|
187104
|
+
c
|
|
187105
|
+
),
|
|
186734
187106
|
affected: C(
|
|
186735
187107
|
e
|
|
186736
187108
|
),
|
|
@@ -186749,7 +187121,9 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
186749
187121
|
)) {
|
|
186750
187122
|
const r = [], a = [], c = [], e = [];
|
|
186751
187123
|
let f = [...this.methods];
|
|
186752
|
-
f = f.filter(
|
|
187124
|
+
f = f.filter(
|
|
187125
|
+
(m) => m.parent.id === this.id
|
|
187126
|
+
), f = f.filter((m) => !m.isExtendedMethod);
|
|
186753
187127
|
const h = this.implementedMethodsFromOriginalParents;
|
|
186754
187128
|
return f = f.filter((m) => this.interactive && !m.implements ? !1 : !h.find(
|
|
186755
187129
|
(b) => {
|
|
@@ -186760,9 +187134,15 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
186760
187134
|
const b = m.remove({ ignoreUpstream: !1 }, i);
|
|
186761
187135
|
c.push(...b.removed), r.push(...b.updated);
|
|
186762
187136
|
}), i == null || i.attemptAutoclose("remove-unrecognized-methods", this.id), {
|
|
186763
|
-
updated: C(
|
|
186764
|
-
|
|
186765
|
-
|
|
187137
|
+
updated: C(
|
|
187138
|
+
r
|
|
187139
|
+
),
|
|
187140
|
+
added: C(
|
|
187141
|
+
a
|
|
187142
|
+
),
|
|
187143
|
+
removed: C(
|
|
187144
|
+
c
|
|
187145
|
+
),
|
|
186766
187146
|
affected: C(
|
|
186767
187147
|
e
|
|
186768
187148
|
),
|
|
@@ -186784,52 +187164,62 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
186784
187164
|
...this.allBaseMethodsFromExtendedAndImplementedEntities,
|
|
186785
187165
|
...f
|
|
186786
187166
|
];
|
|
186787
|
-
return h.filter(
|
|
186788
|
-
(
|
|
186789
|
-
|
|
186790
|
-
|
|
186791
|
-
|
|
186792
|
-
)).forEach((E) => {
|
|
186793
|
-
if (this.methods.find(
|
|
186794
|
-
(V) => {
|
|
186795
|
-
var B;
|
|
186796
|
-
return ((B = V.implements) == null ? void 0 : B.id) === E.id;
|
|
187167
|
+
return h.filter(
|
|
187168
|
+
(E) => !m.find(
|
|
187169
|
+
(_) => {
|
|
187170
|
+
var N;
|
|
187171
|
+
return ((N = _.implements) == null ? void 0 : N.id) === E.id;
|
|
186797
187172
|
}
|
|
186798
|
-
)
|
|
186799
|
-
|
|
186800
|
-
|
|
186801
|
-
|
|
186802
|
-
|
|
186803
|
-
|
|
186804
|
-
|
|
186805
|
-
|
|
186806
|
-
|
|
186807
|
-
|
|
186808
|
-
|
|
186809
|
-
|
|
186810
|
-
|
|
186811
|
-
|
|
186812
|
-
|
|
186813
|
-
|
|
186814
|
-
|
|
186815
|
-
|
|
186816
|
-
|
|
186817
|
-
|
|
186818
|
-
|
|
186819
|
-
|
|
186820
|
-
|
|
186821
|
-
|
|
186822
|
-
|
|
186823
|
-
|
|
187173
|
+
)
|
|
187174
|
+
).forEach(
|
|
187175
|
+
(E) => {
|
|
187176
|
+
if (this.methods.find(
|
|
187177
|
+
(V) => {
|
|
187178
|
+
var B;
|
|
187179
|
+
return ((B = V.implements) == null ? void 0 : B.id) === E.id;
|
|
187180
|
+
}
|
|
187181
|
+
))
|
|
187182
|
+
return;
|
|
187183
|
+
const _ = this.methods.find((V) => {
|
|
187184
|
+
var re, J;
|
|
187185
|
+
if (V.name === E.name && !V.implements)
|
|
187186
|
+
return !0;
|
|
187187
|
+
const B = pi(
|
|
187188
|
+
this,
|
|
187189
|
+
Ie.CRON_JOB
|
|
187190
|
+
), M = pi(
|
|
187191
|
+
this,
|
|
187192
|
+
Ie.HTTP_ENDPOINT
|
|
187193
|
+
), k = ((re = V.implements) == null ? void 0 : re.id) === ie["built-in-base-entity"].BUILT_IN_HTTP_ENDPOINT_ENTITY.methods.handler.id, q = ((J = V.implements) == null ? void 0 : J.id) === ie["built-in-base-entity"].BUILT_IN_CRON_JOB_ENTITY.methods.handler.id;
|
|
187194
|
+
return !!(B && !q && !M && k || M && !k && !B && q);
|
|
187195
|
+
});
|
|
187196
|
+
if (_ && _.type === d.FunctionDeclaration) {
|
|
187197
|
+
_.setImplements(E, i), _.metaSync(
|
|
187198
|
+
{
|
|
187199
|
+
name: E.name
|
|
187200
|
+
},
|
|
187201
|
+
i
|
|
187202
|
+
), i == null || i.add(
|
|
187203
|
+
_,
|
|
187204
|
+
H.Updated
|
|
187205
|
+
), i == null || i.add(this, H.Updated);
|
|
187206
|
+
return;
|
|
187207
|
+
}
|
|
187208
|
+
const N = E.implementAsFunctionDeclaration(i, this);
|
|
187209
|
+
a.push(N), i == null || i.add(N, H.Added), this.addMethod(N, i);
|
|
186824
187210
|
}
|
|
186825
|
-
|
|
186826
|
-
a.push(N), i == null || i.add(N, H.Added), this.addMethod(N, i);
|
|
186827
|
-
}), this.methods.sort((E, A) => E.index - A.index).forEach((E) => {
|
|
187211
|
+
), this.methods.sort((E, A) => E.index - A.index).forEach((E) => {
|
|
186828
187212
|
E.afterAllChildrenInitialized(i);
|
|
186829
187213
|
}), i == null || i.attemptAutoclose("sync-implementation-methods", this.id), {
|
|
186830
|
-
updated: C(
|
|
186831
|
-
|
|
186832
|
-
|
|
187214
|
+
updated: C(
|
|
187215
|
+
r
|
|
187216
|
+
),
|
|
187217
|
+
added: C(
|
|
187218
|
+
a
|
|
187219
|
+
),
|
|
187220
|
+
removed: C(
|
|
187221
|
+
c
|
|
187222
|
+
),
|
|
186833
187223
|
affected: C(
|
|
186834
187224
|
e
|
|
186835
187225
|
),
|
|
@@ -186866,7 +187256,9 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
186866
187256
|
added: B,
|
|
186867
187257
|
removed: M,
|
|
186868
187258
|
affected: k
|
|
186869
|
-
} = E.syncWithImplementation(
|
|
187259
|
+
} = E.syncWithImplementation(
|
|
187260
|
+
i
|
|
187261
|
+
);
|
|
186870
187262
|
r.push(...V), a.push(...B), c.push(...M), e.push(...k);
|
|
186871
187263
|
return;
|
|
186872
187264
|
}
|
|
@@ -186878,7 +187270,10 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
186878
187270
|
(V) => V.name === b.name && !!V.abstract && !V.implements
|
|
186879
187271
|
);
|
|
186880
187272
|
if (_) {
|
|
186881
|
-
_.addImplementation(b, i), _.metaSync(
|
|
187273
|
+
_.addImplementation(b, i), _.metaSync(
|
|
187274
|
+
{ abstract: !1 },
|
|
187275
|
+
i
|
|
187276
|
+
), _.afterAllChildrenInitialized(i);
|
|
186882
187277
|
return;
|
|
186883
187278
|
}
|
|
186884
187279
|
const N = b.implement(
|
|
@@ -186887,13 +187282,21 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
186887
187282
|
x.UUID.uuid()
|
|
186888
187283
|
);
|
|
186889
187284
|
a.push(N), i == null || i.add(N, H.Added);
|
|
186890
|
-
}), this.properties.find(
|
|
186891
|
-
|
|
186892
|
-
|
|
186893
|
-
|
|
186894
|
-
|
|
186895
|
-
|
|
186896
|
-
|
|
187285
|
+
}), this.properties.find(
|
|
187286
|
+
(b) => {
|
|
187287
|
+
var E;
|
|
187288
|
+
return b.id === ((E = this.allPropertiesImplement) == null ? void 0 : E.id);
|
|
187289
|
+
}
|
|
187290
|
+
) && this.removeAllPropertiesImplement(i), i == null || i.attemptAutoclose("sync-implementation-properties", this.id), {
|
|
187291
|
+
updated: C(
|
|
187292
|
+
r
|
|
187293
|
+
),
|
|
187294
|
+
added: C(
|
|
187295
|
+
a
|
|
187296
|
+
),
|
|
187297
|
+
removed: C(
|
|
187298
|
+
c
|
|
187299
|
+
),
|
|
186897
187300
|
affected: C(
|
|
186898
187301
|
e
|
|
186899
187302
|
),
|
|
@@ -186928,9 +187331,15 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
186928
187331
|
);
|
|
186929
187332
|
A.setExtends(E, i), A.initChildren(i), a.push(A), i == null || i.add(A, H.Added), this.addMethod(A, i);
|
|
186930
187333
|
}), i == null || i.attemptAutoclose("add-extended-methods", this.id), {
|
|
186931
|
-
updated: C(
|
|
186932
|
-
|
|
186933
|
-
|
|
187334
|
+
updated: C(
|
|
187335
|
+
r
|
|
187336
|
+
),
|
|
187337
|
+
added: C(
|
|
187338
|
+
a
|
|
187339
|
+
),
|
|
187340
|
+
removed: C(
|
|
187341
|
+
c
|
|
187342
|
+
),
|
|
186934
187343
|
affected: C(
|
|
186935
187344
|
e
|
|
186936
187345
|
),
|
|
@@ -186976,16 +187385,25 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
186976
187385
|
(N) => !!E.implements.find((V) => V.id === N.id)
|
|
186977
187386
|
)
|
|
186978
187387
|
)) {
|
|
186979
|
-
const _ = E.remove(
|
|
187388
|
+
const _ = E.remove(
|
|
187389
|
+
{ ignoreUpstream: !1 },
|
|
187390
|
+
i
|
|
187391
|
+
);
|
|
186980
187392
|
c.push(..._.removed), r.push(..._.updated);
|
|
186981
187393
|
}
|
|
186982
187394
|
}), this.properties.forEach((E) => {
|
|
186983
187395
|
const A = E.afterAllChildrenInitialized(i);
|
|
186984
187396
|
r.push(...A.updated), e.push(...A.affected), a.push(...A.added), c.push(...A.removed);
|
|
186985
187397
|
}), i == null || i.attemptAutoclose("add-extended-properties", this.id), {
|
|
186986
|
-
updated: C(
|
|
186987
|
-
|
|
186988
|
-
|
|
187398
|
+
updated: C(
|
|
187399
|
+
r
|
|
187400
|
+
),
|
|
187401
|
+
added: C(
|
|
187402
|
+
a
|
|
187403
|
+
),
|
|
187404
|
+
removed: C(
|
|
187405
|
+
c
|
|
187406
|
+
),
|
|
186989
187407
|
affected: C(
|
|
186990
187408
|
e
|
|
186991
187409
|
),
|
|
@@ -186996,10 +187414,7 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
186996
187414
|
// are references by a property or method (respectively) declared in this entity
|
|
186997
187415
|
addSuggestions() {
|
|
186998
187416
|
return this.implements.forEach((i) => {
|
|
186999
|
-
n5(
|
|
187000
|
-
this,
|
|
187001
|
-
i
|
|
187002
|
-
).forEach((c) => {
|
|
187417
|
+
n5(this, i).forEach((c) => {
|
|
187003
187418
|
const e = c.toJSON();
|
|
187004
187419
|
e.id = `_suggestion--parent--${this.id}--${c.id}`;
|
|
187005
187420
|
const f = Re(
|
|
@@ -187120,10 +187535,19 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
187120
187535
|
const f = this.parent.setEntity(null, i);
|
|
187121
187536
|
r.push(f);
|
|
187122
187537
|
}
|
|
187123
|
-
return i == null || i.attemptAutoclose(
|
|
187124
|
-
|
|
187125
|
-
|
|
187126
|
-
|
|
187538
|
+
return i == null || i.attemptAutoclose(
|
|
187539
|
+
D.RemoveFromParent,
|
|
187540
|
+
this.id
|
|
187541
|
+
), {
|
|
187542
|
+
added: C(
|
|
187543
|
+
c
|
|
187544
|
+
),
|
|
187545
|
+
updated: C(
|
|
187546
|
+
r
|
|
187547
|
+
),
|
|
187548
|
+
removed: C(
|
|
187549
|
+
a
|
|
187550
|
+
),
|
|
187127
187551
|
affected: C(
|
|
187128
187552
|
e
|
|
187129
187553
|
),
|
|
@@ -187157,7 +187581,10 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
187157
187581
|
owner: this,
|
|
187158
187582
|
errorReason: Be.ActionOwnerEntityNonDeletable,
|
|
187159
187583
|
rootAction: ((h = r == null ? void 0 : r.self) == null ? void 0 : h.id) === this.id && (r == null ? void 0 : r.actionName) === D.RemoveEntity
|
|
187160
|
-
}), r == null || r.attemptAutoclose(
|
|
187584
|
+
}), r == null || r.attemptAutoclose(
|
|
187585
|
+
D.RemoveEntity,
|
|
187586
|
+
this.id
|
|
187587
|
+
), {
|
|
187161
187588
|
added: [],
|
|
187162
187589
|
updated: [],
|
|
187163
187590
|
removed: [],
|
|
@@ -187166,7 +187593,10 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
187166
187593
|
};
|
|
187167
187594
|
const a = [], c = [], e = [], f = [];
|
|
187168
187595
|
if (r != null && r.hasRemoved(this.id))
|
|
187169
|
-
return r == null || r.attemptAutoclose(
|
|
187596
|
+
return r == null || r.attemptAutoclose(
|
|
187597
|
+
D.RemoveEntity,
|
|
187598
|
+
this.id
|
|
187599
|
+
), {
|
|
187170
187600
|
added: [],
|
|
187171
187601
|
updated: [],
|
|
187172
187602
|
removed: [],
|
|
@@ -187229,9 +187659,15 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
187229
187659
|
e.push(...m.added), a.push(...m.updated), c.push(...m.removed), f.push(...m.affected);
|
|
187230
187660
|
}
|
|
187231
187661
|
return r == null || r.attemptAutoclose(D.RemoveEntity, this.id), {
|
|
187232
|
-
added: C(
|
|
187233
|
-
|
|
187234
|
-
|
|
187662
|
+
added: C(
|
|
187663
|
+
e
|
|
187664
|
+
),
|
|
187665
|
+
updated: C(
|
|
187666
|
+
a
|
|
187667
|
+
),
|
|
187668
|
+
removed: C(
|
|
187669
|
+
c
|
|
187670
|
+
),
|
|
187235
187671
|
affected: C(
|
|
187236
187672
|
f
|
|
187237
187673
|
),
|
|
@@ -187254,9 +187690,27 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
187254
187690
|
if (!this.checkCanEdit(this, i))
|
|
187255
187691
|
return ce.warn(
|
|
187256
187692
|
`[restore] User is not allowed to edit this ${this.type} entity with id: ${this.id}`
|
|
187257
|
-
), i == null || i.attemptAutoclose(
|
|
187693
|
+
), i == null || i.attemptAutoclose(
|
|
187694
|
+
D.RestoreEntity,
|
|
187695
|
+
this.id
|
|
187696
|
+
), {
|
|
187697
|
+
added: [],
|
|
187698
|
+
updated: [],
|
|
187699
|
+
removed: [],
|
|
187700
|
+
affected: [],
|
|
187701
|
+
self: this
|
|
187702
|
+
};
|
|
187258
187703
|
const r = [], a = [], c = [], e = [];
|
|
187259
|
-
return i != null && i.hasAdded(this.id) ? (i == null || i.attemptAutoclose(
|
|
187704
|
+
return i != null && i.hasAdded(this.id) ? (i == null || i.attemptAutoclose(
|
|
187705
|
+
D.RestoreEntity,
|
|
187706
|
+
this.id
|
|
187707
|
+
), {
|
|
187708
|
+
added: [],
|
|
187709
|
+
updated: [],
|
|
187710
|
+
removed: [],
|
|
187711
|
+
affected: [],
|
|
187712
|
+
self: this
|
|
187713
|
+
}) : (this.subscribe(), this.project.unsubscribeDeletedInstance(this), this.metaSync({ deleted: !1 }, i), Object.values(this.detachedDependents).forEach((f) => {
|
|
187260
187714
|
const {
|
|
187261
187715
|
updated: h,
|
|
187262
187716
|
removed: m,
|
|
@@ -187268,7 +187722,10 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
187268
187722
|
);
|
|
187269
187723
|
a.push(...h), c.push(...m), r.push(...b);
|
|
187270
187724
|
}), this.properties.forEach((f) => {
|
|
187271
|
-
const { updated: h } = f.restore(
|
|
187725
|
+
const { updated: h } = f.restore(
|
|
187726
|
+
{},
|
|
187727
|
+
i
|
|
187728
|
+
);
|
|
187272
187729
|
a.push(...h);
|
|
187273
187730
|
}), this.methods.forEach((f) => {
|
|
187274
187731
|
const { updated: h } = f.restore({}, i);
|
|
@@ -187280,15 +187737,24 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
187280
187737
|
);
|
|
187281
187738
|
a.push(...h);
|
|
187282
187739
|
}), this.suggestedProperties.forEach((f) => {
|
|
187283
|
-
const { updated: h } = f.restore(
|
|
187740
|
+
const { updated: h } = f.restore(
|
|
187741
|
+
{},
|
|
187742
|
+
i
|
|
187743
|
+
);
|
|
187284
187744
|
a.push(...h);
|
|
187285
187745
|
}), this.suggestedMethods.forEach((f) => {
|
|
187286
187746
|
const { updated: h } = f.restore({}, i);
|
|
187287
187747
|
a.push(...h);
|
|
187288
187748
|
}), i == null || i.attemptAutoclose(D.RestoreEntity, this.id), {
|
|
187289
|
-
added: C(
|
|
187290
|
-
|
|
187291
|
-
|
|
187749
|
+
added: C(
|
|
187750
|
+
r
|
|
187751
|
+
),
|
|
187752
|
+
updated: C(
|
|
187753
|
+
a
|
|
187754
|
+
),
|
|
187755
|
+
removed: C(
|
|
187756
|
+
c
|
|
187757
|
+
),
|
|
187292
187758
|
affected: C(
|
|
187293
187759
|
e
|
|
187294
187760
|
),
|
|
@@ -187301,9 +187767,13 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
187301
187767
|
this,
|
|
187302
187768
|
...((a = this.extends) == null ? void 0 : a.toFlat(i)) || [],
|
|
187303
187769
|
...this.implements.flatMap((c) => c.toFlat(i)),
|
|
187304
|
-
...this.properties.flatMap(
|
|
187770
|
+
...this.properties.flatMap(
|
|
187771
|
+
(c) => c.toFlat(i)
|
|
187772
|
+
),
|
|
187305
187773
|
...this.methods.flatMap((c) => c.toFlat(i)),
|
|
187306
|
-
...this.abstractMethods.flatMap(
|
|
187774
|
+
...this.abstractMethods.flatMap(
|
|
187775
|
+
(c) => c.toFlat(i)
|
|
187776
|
+
),
|
|
187307
187777
|
...this.parent.toFlat(i)
|
|
187308
187778
|
]);
|
|
187309
187779
|
}
|
|
@@ -187312,7 +187782,9 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
187312
187782
|
return i.has(this.id) ? [] : (i.add(this.id), [
|
|
187313
187783
|
this.id,
|
|
187314
187784
|
...((a = this.extends) == null ? void 0 : a.toFlatIds(i)) || [],
|
|
187315
|
-
...this.implements.flatMap(
|
|
187785
|
+
...this.implements.flatMap(
|
|
187786
|
+
(c) => c.toFlatIds(i)
|
|
187787
|
+
),
|
|
187316
187788
|
...this.properties.flatMap(
|
|
187317
187789
|
(c) => c.toFlatIds(i)
|
|
187318
187790
|
),
|
|
@@ -187382,14 +187854,20 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
187382
187854
|
implements: this.implements.map(
|
|
187383
187855
|
(e) => e.toJSON(i)
|
|
187384
187856
|
),
|
|
187385
|
-
extends: ((c = this.extends) == null ? void 0 : c.toJSON(
|
|
187857
|
+
extends: ((c = this.extends) == null ? void 0 : c.toJSON(
|
|
187858
|
+
i
|
|
187859
|
+
)) || null,
|
|
187386
187860
|
parent: this.parent.toReference()
|
|
187387
187861
|
});
|
|
187388
187862
|
}
|
|
187389
187863
|
toJSONClone(i = lt) {
|
|
187390
187864
|
var a, c, e, f, h, m, b, E, A, _;
|
|
187391
187865
|
let r;
|
|
187392
|
-
return (a = i.seenEntityMaps) != null && a.has(this.id) ? r = i.seenEntityMaps.get(this.id) : (r = i.newId || cn(
|
|
187866
|
+
return (a = i.seenEntityMaps) != null && a.has(this.id) ? r = i.seenEntityMaps.get(this.id) : (r = i.newId || cn(
|
|
187867
|
+
this,
|
|
187868
|
+
this.project,
|
|
187869
|
+
i.uuidStrategy
|
|
187870
|
+
), i.seenEntityMaps && i.seenEntityMaps.set(this.id, r)), (c = i.seenEntities) != null && c.has(r) || (e = i.seenEntities) != null && e.has(this.id) ? this.toReference({ seenEntityMaps: i.seenEntityMaps }) : ((f = i.seenEntities) == null || f.add(r), (h = i.seenEntities) == null || h.add(this.id), {
|
|
187393
187871
|
id: r,
|
|
187394
187872
|
version: x.UUID.uuid(),
|
|
187395
187873
|
createdAt: i.timestamp || G().toISOString(),
|
|
@@ -187489,7 +187967,9 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
187489
187967
|
abstractMethods: this.abstractMethods.map(
|
|
187490
187968
|
(h) => h.toReference(i)
|
|
187491
187969
|
),
|
|
187492
|
-
implements: this.implements.map(
|
|
187970
|
+
implements: this.implements.map(
|
|
187971
|
+
(h) => h.toReference(i)
|
|
187972
|
+
),
|
|
187493
187973
|
extends: ((f = this.extends) == null ? void 0 : f.toReference(i)) || null,
|
|
187494
187974
|
parent: this.parent.toReference(i)
|
|
187495
187975
|
};
|
|
@@ -187501,11 +187981,15 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
187501
187981
|
...this.properties.flatMap(
|
|
187502
187982
|
(f) => f.toFlatJSON(i)
|
|
187503
187983
|
),
|
|
187504
|
-
...this.methods.flatMap(
|
|
187984
|
+
...this.methods.flatMap(
|
|
187985
|
+
(f) => f.toFlatJSON(i)
|
|
187986
|
+
),
|
|
187505
187987
|
...this.abstractMethods.flatMap(
|
|
187506
187988
|
(f) => f.toFlatJSON(i)
|
|
187507
187989
|
),
|
|
187508
|
-
...this.implements.flatMap(
|
|
187990
|
+
...this.implements.flatMap(
|
|
187991
|
+
(f) => f.toFlatJSON(i)
|
|
187992
|
+
),
|
|
187509
187993
|
...((a = this.extends) == null ? void 0 : a.toFlatJSON(i)) || [],
|
|
187510
187994
|
...this.parent.toFlatJSON(i),
|
|
187511
187995
|
...((c = this.additionalPropertiesDataType) == null ? void 0 : c.toFlatJSON(i)) || [],
|
|
@@ -187552,7 +188036,9 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
187552
188036
|
...((c = this.additionalPropertiesDataType) == null ? void 0 : c.toFlatGenerationTarget(
|
|
187553
188037
|
i
|
|
187554
188038
|
)) || [],
|
|
187555
|
-
...((e = this.allPropertiesImplement) == null ? void 0 : e.toFlatGenerationTarget(
|
|
188039
|
+
...((e = this.allPropertiesImplement) == null ? void 0 : e.toFlatGenerationTarget(
|
|
188040
|
+
i
|
|
188041
|
+
)) || []
|
|
187556
188042
|
]);
|
|
187557
188043
|
}
|
|
187558
188044
|
// Clear the errors of this entity and all its nested entities recursively
|
|
@@ -187595,7 +188081,9 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
187595
188081
|
tracker: r
|
|
187596
188082
|
})
|
|
187597
188083
|
), this.allPropertiesImplement && a.push(
|
|
187598
|
-
...await this.allPropertiesImplement.getErrorsAsync({
|
|
188084
|
+
...await this.allPropertiesImplement.getErrorsAsync({
|
|
188085
|
+
tracker: r
|
|
188086
|
+
})
|
|
187599
188087
|
), a;
|
|
187600
188088
|
}
|
|
187601
188089
|
getShallowErrors() {
|
|
@@ -187635,12 +188123,14 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
187635
188123
|
c
|
|
187636
188124
|
));
|
|
187637
188125
|
A.methods = N;
|
|
187638
|
-
const V = (k = this.abstractMethods) == null ? void 0 : k.map(
|
|
187639
|
-
|
|
187640
|
-
|
|
187641
|
-
|
|
187642
|
-
|
|
187643
|
-
|
|
188126
|
+
const V = (k = this.abstractMethods) == null ? void 0 : k.map(
|
|
188127
|
+
(q, re) => this.project.diggestedBuiltInBaseEntitiesIds.has(q.id) ? q : q.clone(
|
|
188128
|
+
i,
|
|
188129
|
+
A,
|
|
188130
|
+
E + "-abstract-method-" + re + "-id",
|
|
188131
|
+
c
|
|
188132
|
+
)
|
|
188133
|
+
);
|
|
187644
188134
|
if (A.abstractMethods = V, this.additionalPropertiesDataType)
|
|
187645
188135
|
if (this.project.diggestedBuiltInBaseEntitiesIds.has(
|
|
187646
188136
|
this.additionalPropertiesDataType.id
|
|
@@ -187697,7 +188187,12 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
187697
188187
|
"implement-definition-entity"
|
|
187698
188188
|
)
|
|
187699
188189
|
), a) {
|
|
187700
|
-
const c = Y_(
|
|
188190
|
+
const c = Y_(
|
|
188191
|
+
this,
|
|
188192
|
+
i,
|
|
188193
|
+
r,
|
|
188194
|
+
a
|
|
188195
|
+
);
|
|
187701
188196
|
return r == null || r.attemptAutoclose("implement-definition-entity", this.id), c;
|
|
187702
188197
|
}
|
|
187703
188198
|
getAllPropertiesImplements() {
|
|
@@ -187716,7 +188211,9 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
187716
188211
|
var e;
|
|
187717
188212
|
const i = this.implements.filter(
|
|
187718
188213
|
(f) => f.type === d.DefinitionEntity || f.type === d.BuiltInBaseEntity && f.interactive
|
|
187719
|
-
), r = ((e = this.extends) == null ? void 0 : e.getAllInteractiveMethods()) || [], a = i.flatMap(
|
|
188214
|
+
), r = ((e = this.extends) == null ? void 0 : e.getAllInteractiveMethods()) || [], a = i.flatMap(
|
|
188215
|
+
(f) => f.getAllInteractiveMethods()
|
|
188216
|
+
);
|
|
187720
188217
|
return C([
|
|
187721
188218
|
...this.methods,
|
|
187722
188219
|
...r,
|
|
@@ -187774,7 +188271,13 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
187774
188271
|
x.UUID.uuid(),
|
|
187775
188272
|
!0
|
|
187776
188273
|
);
|
|
187777
|
-
B && ((k = A.dataType) == null || k.merge(
|
|
188274
|
+
B && ((k = A.dataType) == null || k.merge(
|
|
188275
|
+
B,
|
|
188276
|
+
r
|
|
188277
|
+
), B.id !== ((q = A.dataType) == null ? void 0 : q.id) && B.remove(
|
|
188278
|
+
{ ignoreUpstream: !1 },
|
|
188279
|
+
r
|
|
188280
|
+
), A.dataType && (A.dataType.metaSync(
|
|
187778
188281
|
{
|
|
187779
188282
|
inferred: !0,
|
|
187780
188283
|
like: !0
|
|
@@ -187789,7 +188292,10 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
187789
188292
|
)));
|
|
187790
188293
|
let M = null;
|
|
187791
188294
|
if (E.declaration && A.id !== ((re = E.declaration) == null ? void 0 : re.id) && (M = E.declaration), E.setDeclaration(A, r), r == null || r.add(E, H.Updated), M) {
|
|
187792
|
-
const { updated: J, removed: ae } = M.remove(
|
|
188295
|
+
const { updated: J, removed: ae } = M.remove(
|
|
188296
|
+
{ ignoreUpstream: !1 },
|
|
188297
|
+
r
|
|
188298
|
+
);
|
|
187793
188299
|
c.push(...J), e.push(...ae);
|
|
187794
188300
|
}
|
|
187795
188301
|
});
|
|
@@ -187827,7 +188333,13 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
187827
188333
|
x.UUID.uuid(),
|
|
187828
188334
|
!0
|
|
187829
188335
|
);
|
|
187830
|
-
oe && ((re = A.dataType) == null || re.merge(
|
|
188336
|
+
oe && ((re = A.dataType) == null || re.merge(
|
|
188337
|
+
oe,
|
|
188338
|
+
r
|
|
188339
|
+
), oe.id !== ((J = A.dataType) == null ? void 0 : J.id) && oe.remove(
|
|
188340
|
+
{ ignoreUpstream: !1 },
|
|
188341
|
+
r
|
|
188342
|
+
), A.dataType && (A.dataType.metaSync(
|
|
187831
188343
|
{
|
|
187832
188344
|
inferred: !0,
|
|
187833
188345
|
like: !0
|
|
@@ -187864,22 +188376,40 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
187864
188376
|
x.UUID.uuid(),
|
|
187865
188377
|
!0
|
|
187866
188378
|
);
|
|
187867
|
-
de && ((ee = B.dataType) == null || ee.merge(
|
|
188379
|
+
de && ((ee = B.dataType) == null || ee.merge(
|
|
188380
|
+
de,
|
|
188381
|
+
r
|
|
188382
|
+
), de.id !== ((se = B.dataType) == null ? void 0 : se.id) && de.remove(
|
|
188383
|
+
{ ignoreUpstream: !1 },
|
|
188384
|
+
r
|
|
188385
|
+
), B.dataType && (B.dataType.metaSync(
|
|
187868
188386
|
{
|
|
187869
188387
|
inferred: !0,
|
|
187870
188388
|
like: !0
|
|
187871
188389
|
},
|
|
187872
188390
|
r
|
|
187873
|
-
), B.setDataType(
|
|
188391
|
+
), B.setDataType(
|
|
188392
|
+
B.dataType,
|
|
188393
|
+
r
|
|
188394
|
+
), r == null || r.add(
|
|
187874
188395
|
B,
|
|
187875
188396
|
H.Affected
|
|
187876
188397
|
)));
|
|
187877
188398
|
}
|
|
187878
188399
|
return this.addProperty(B, r), E.setDeclaration(B, r), r == null || r.add(E, H.Updated), B;
|
|
187879
|
-
}), r == null || r.attemptAutoclose(
|
|
187880
|
-
|
|
187881
|
-
|
|
187882
|
-
|
|
188400
|
+
}), r == null || r.attemptAutoclose(
|
|
188401
|
+
"infer-definition-entity-from-inputs",
|
|
188402
|
+
this.id
|
|
188403
|
+
), {
|
|
188404
|
+
added: C(
|
|
188405
|
+
a
|
|
188406
|
+
),
|
|
188407
|
+
updated: C(
|
|
188408
|
+
c
|
|
188409
|
+
),
|
|
188410
|
+
removed: C(
|
|
188411
|
+
e
|
|
188412
|
+
),
|
|
187883
188413
|
affected: C(
|
|
187884
188414
|
f
|
|
187885
188415
|
),
|
|
@@ -187928,7 +188458,10 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
187928
188458
|
this.id
|
|
187929
188459
|
), this;
|
|
187930
188460
|
const a = this.additionalPropertiesDataType;
|
|
187931
|
-
return (a == null ? void 0 : a.id) !== (i == null ? void 0 : i.id) && (a == null || a.remove(
|
|
188461
|
+
return (a == null ? void 0 : a.id) !== (i == null ? void 0 : i.id) && (a == null || a.remove(
|
|
188462
|
+
{ ignoreUpstream: !0 },
|
|
188463
|
+
r
|
|
188464
|
+
), this.additionalPropertiesDataType = i, this.subscribeToDependencies(), r == null || r.add(this, H.Affected)), r == null || r.attemptAutoclose(
|
|
187932
188465
|
D.SetAdditionalPropertiesDataType,
|
|
187933
188466
|
this.id
|
|
187934
188467
|
), this;
|
|
@@ -187974,7 +188507,10 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
187974
188507
|
this.id
|
|
187975
188508
|
), this;
|
|
187976
188509
|
const a = this.allPropertiesImplement;
|
|
187977
|
-
return (a == null ? void 0 : a.id) !== (i == null ? void 0 : i.id) && (a == null || a.remove(
|
|
188510
|
+
return (a == null ? void 0 : a.id) !== (i == null ? void 0 : i.id) && (a == null || a.remove(
|
|
188511
|
+
{ ignoreUpstream: !0 },
|
|
188512
|
+
r
|
|
188513
|
+
), this.allPropertiesImplement = i, this.subscribeToDependencies(), r == null || r.add(this, H.Affected)), r == null || r.attemptAutoclose(
|
|
187978
188514
|
D.SetAllPropertiesImplement,
|
|
187979
188515
|
this.id
|
|
187980
188516
|
), this;
|
|
@@ -187994,7 +188530,10 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
187994
188530
|
var a;
|
|
187995
188531
|
return r.id === ((a = this.allPropertiesImplement) == null ? void 0 : a.id);
|
|
187996
188532
|
}
|
|
187997
|
-
) || this.allPropertiesImplement.remove(
|
|
188533
|
+
) || this.allPropertiesImplement.remove(
|
|
188534
|
+
{ ignoreUpstream: !0 },
|
|
188535
|
+
i
|
|
188536
|
+
), i == null || i.add(this, H.Affected), this.allPropertiesImplement = null), i == null || i.attemptAutoclose(
|
|
187998
188537
|
D.RemoveAllPropertiesImplement,
|
|
187999
188538
|
this.id
|
|
188000
188539
|
), this) : (ce.warn(
|