@elyx-code/project-logic-tree 0.0.6099 → 0.0.6101
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.js +43 -36
- package/dist/index.umd.cjs +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12411,7 +12411,7 @@ const yS = {
|
|
|
12411
12411
|
version: 1,
|
|
12412
12412
|
type: n.Property,
|
|
12413
12413
|
private: !1,
|
|
12414
|
-
abstract: !
|
|
12414
|
+
abstract: !1,
|
|
12415
12415
|
implements: ia,
|
|
12416
12416
|
static: !1,
|
|
12417
12417
|
index: 4,
|
|
@@ -13386,7 +13386,7 @@ const pM = {
|
|
|
13386
13386
|
version: 1,
|
|
13387
13387
|
type: n.Property,
|
|
13388
13388
|
private: !1,
|
|
13389
|
-
abstract: !
|
|
13389
|
+
abstract: !1,
|
|
13390
13390
|
implements: null,
|
|
13391
13391
|
static: !1,
|
|
13392
13392
|
index: 0,
|
|
@@ -36274,8 +36274,8 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
36274
36274
|
name: this.name,
|
|
36275
36275
|
autogeneration: this.autogeneration,
|
|
36276
36276
|
value: this.value,
|
|
36277
|
-
|
|
36278
|
-
valueAsType: this.valueAsType ? Array.isArray(this.valueAsType) ? this.valueAsType.map((t) => t.
|
|
36277
|
+
parentRelationType: this.parentRelationType,
|
|
36278
|
+
valueAsType: this.valueAsType ? Array.isArray(this.valueAsType) ? this.valueAsType.map((t) => t.toJSON()) : this.valueAsType.toJSON() : null,
|
|
36279
36279
|
parent: (e = this.parent) == null ? void 0 : e.toReference()
|
|
36280
36280
|
};
|
|
36281
36281
|
}
|
|
@@ -36353,7 +36353,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
36353
36353
|
a,
|
|
36354
36354
|
this.project
|
|
36355
36355
|
);
|
|
36356
|
-
return e && o.setParent(e), i && o.subscribe(), o;
|
|
36356
|
+
return o.initChildren(), e && o.setParent(e), i && o.subscribe(), o;
|
|
36357
36357
|
}
|
|
36358
36358
|
// This function merges a given source entity with the current one
|
|
36359
36359
|
// The goal is to keep the current instance with the current id
|
|
@@ -43630,19 +43630,16 @@ function Pq(r) {
|
|
|
43630
43630
|
return e.push(...t), e;
|
|
43631
43631
|
}
|
|
43632
43632
|
function Aq(r) {
|
|
43633
|
-
var
|
|
43633
|
+
var t;
|
|
43634
43634
|
if (!r || r.type !== n.CustomEntity || !_a(r, x.PERSISTED_ENTITY))
|
|
43635
43635
|
return null;
|
|
43636
|
-
const
|
|
43637
|
-
|
|
43638
|
-
|
|
43639
|
-
|
|
43640
|
-
(a) => {
|
|
43641
|
-
var s;
|
|
43642
|
-
return ((s = a.implements) == null ? void 0 : s.id) === C[n.BuiltInBaseEntity][x.PERSISTED_ENTITY].properties.database.id;
|
|
43636
|
+
const e = r.properties.find(
|
|
43637
|
+
(i) => {
|
|
43638
|
+
var a;
|
|
43639
|
+
return ((a = i.implements) == null ? void 0 : a.id) === C[n.BuiltInBaseEntity][x.PERSISTED_ENTITY].properties.database.id;
|
|
43643
43640
|
}
|
|
43644
43641
|
);
|
|
43645
|
-
return (
|
|
43642
|
+
return (t = e == null ? void 0 : e.getDefaultValue()) == null ? void 0 : t.valueAsType;
|
|
43646
43643
|
}
|
|
43647
43644
|
function f2(r, e) {
|
|
43648
43645
|
const t = [];
|
|
@@ -43896,20 +43893,22 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
43896
43893
|
);
|
|
43897
43894
|
}
|
|
43898
43895
|
get implementedPropertiesFromOriginalParents() {
|
|
43899
|
-
return T(
|
|
43900
|
-
|
|
43901
|
-
|
|
43902
|
-
|
|
43903
|
-
|
|
43904
|
-
|
|
43905
|
-
|
|
43906
|
-
|
|
43907
|
-
|
|
43908
|
-
|
|
43909
|
-
|
|
43910
|
-
|
|
43911
|
-
|
|
43912
|
-
|
|
43896
|
+
return T(
|
|
43897
|
+
[
|
|
43898
|
+
...this.extends.reduce((e, t) => {
|
|
43899
|
+
const i = t.implementedPropertiesFromOriginalParents, a = [...t.ownDeclaredProperties].filter(
|
|
43900
|
+
(s) => !!s.abstract && !i.find((o) => o.name === s.name)
|
|
43901
|
+
);
|
|
43902
|
+
return [...i, ...a, ...e];
|
|
43903
|
+
}, []),
|
|
43904
|
+
...this.implements.reduce((e, t) => {
|
|
43905
|
+
const i = t.implementedPropertiesFromOriginalParents, a = [...t.ownDeclaredProperties].filter(
|
|
43906
|
+
(s) => !!s.abstract && !i.find((o) => o.name === s.name)
|
|
43907
|
+
);
|
|
43908
|
+
return [...i, ...a, ...e];
|
|
43909
|
+
}, [])
|
|
43910
|
+
].filter((e) => !!e.abstract)
|
|
43911
|
+
);
|
|
43913
43912
|
}
|
|
43914
43913
|
get extendedProperties() {
|
|
43915
43914
|
return this.properties.filter((e) => e.isExtendedProperty);
|
|
@@ -44018,10 +44017,14 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
44018
44017
|
}
|
|
44019
44018
|
// If this custom entity implements a base entity, it creates a new property for each property implemented that doesn't yet have one
|
|
44020
44019
|
syncImplementationProperties() {
|
|
44021
|
-
return this.implementedPropertiesFromOriginalParents.filter(
|
|
44022
|
-
|
|
44023
|
-
|
|
44024
|
-
|
|
44020
|
+
return this.implementedPropertiesFromOriginalParents.filter(
|
|
44021
|
+
(i) => !!!this.allBasePropertiesFromExtendedAndImplementedEntities.find(
|
|
44022
|
+
(o) => {
|
|
44023
|
+
var l;
|
|
44024
|
+
return ((l = o.implements) == null ? void 0 : l.id) === i.id;
|
|
44025
|
+
}
|
|
44026
|
+
)
|
|
44027
|
+
).forEach((i) => {
|
|
44025
44028
|
if (this.properties.find(
|
|
44026
44029
|
(l) => {
|
|
44027
44030
|
var u;
|
|
@@ -44036,7 +44039,10 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
44036
44039
|
s.implements = i, s.abstract = !1;
|
|
44037
44040
|
return;
|
|
44038
44041
|
}
|
|
44039
|
-
const o = i.clone(
|
|
44042
|
+
const o = i.clone(
|
|
44043
|
+
this,
|
|
44044
|
+
B.UUID.uuid()
|
|
44045
|
+
);
|
|
44040
44046
|
o.initChildren(), o.implements = i, o.abstract = !1, this.addProperty(o);
|
|
44041
44047
|
}), this;
|
|
44042
44048
|
}
|
|
@@ -44049,10 +44055,11 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
44049
44055
|
}
|
|
44050
44056
|
) : !0), a = new Set(e.map((s) => s.name));
|
|
44051
44057
|
return i.forEach((s) => {
|
|
44052
|
-
if (a.has(s.name))
|
|
44053
|
-
return;
|
|
44054
44058
|
a.add(s.name);
|
|
44055
|
-
const o = s.clone(
|
|
44059
|
+
const o = s.clone(
|
|
44060
|
+
this,
|
|
44061
|
+
B.UUID.uuid()
|
|
44062
|
+
);
|
|
44056
44063
|
o.initChildren(), this.addProperty(o);
|
|
44057
44064
|
}), this;
|
|
44058
44065
|
}
|