@elyx-code/project-logic-tree 0.0.6543 → 0.0.6544
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 +41 -10
- package/dist/index.umd.cjs +32 -32
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -123664,11 +123664,27 @@ function Ci(d, u = /* @__PURE__ */ new Set()) {
|
|
|
123664
123664
|
return [];
|
|
123665
123665
|
}
|
|
123666
123666
|
function Qs(d, u = /* @__PURE__ */ new Set()) {
|
|
123667
|
-
|
|
123667
|
+
if (u.has(d.id))
|
|
123668
|
+
return [];
|
|
123669
|
+
u.add(d.id), H.log(
|
|
123670
|
+
"[flattenDerivedCanvasEntities]",
|
|
123671
|
+
d.type,
|
|
123672
|
+
X(d, d.project),
|
|
123673
|
+
d.id
|
|
123674
|
+
);
|
|
123675
|
+
const i = Aa(d);
|
|
123676
|
+
return i.forEach((l) => {
|
|
123677
|
+
u.add(l.id);
|
|
123678
|
+
}), [...i.reduce((l, f) => (H.log(
|
|
123679
|
+
"[Recursive -- flattenDerivedCanvasEntities]",
|
|
123680
|
+
f.type,
|
|
123681
|
+
X(f, f.project),
|
|
123682
|
+
f.id
|
|
123683
|
+
), [
|
|
123668
123684
|
...l,
|
|
123669
123685
|
f,
|
|
123670
123686
|
...Qs(f, u)
|
|
123671
|
-
], [])]
|
|
123687
|
+
]), [])];
|
|
123672
123688
|
}
|
|
123673
123689
|
function mr(d) {
|
|
123674
123690
|
return d.reduce(
|
|
@@ -124070,7 +124086,11 @@ function Uxt(d, u = /* @__PURE__ */ new Set(), i = {
|
|
|
124070
124086
|
...(d.methods || []).flatMap((a) => ve(a, u, i)),
|
|
124071
124087
|
...(d.abstractMethods || []).flatMap((a) => ve(a, u, i)),
|
|
124072
124088
|
...d.allPropertiesImplement ? ve(d.allPropertiesImplement, u, i) : [],
|
|
124073
|
-
...d.additionalPropertiesDataType ? ve(
|
|
124089
|
+
...d.additionalPropertiesDataType ? ve(
|
|
124090
|
+
d.additionalPropertiesDataType,
|
|
124091
|
+
u,
|
|
124092
|
+
i
|
|
124093
|
+
) : [],
|
|
124074
124094
|
...d.parent ? ve(d.parent, u, i) : []
|
|
124075
124095
|
];
|
|
124076
124096
|
}
|
|
@@ -124583,6 +124603,12 @@ function oLt(d) {
|
|
|
124583
124603
|
) : null;
|
|
124584
124604
|
}
|
|
124585
124605
|
function Aa(d, u = !1) {
|
|
124606
|
+
H.log(
|
|
124607
|
+
"[getRelatedCanvasElementsOnTheRight]",
|
|
124608
|
+
d.type,
|
|
124609
|
+
X(d, d.project),
|
|
124610
|
+
d.id
|
|
124611
|
+
);
|
|
124586
124612
|
const i = [];
|
|
124587
124613
|
if (d.type === p.Project && i.push(
|
|
124588
124614
|
...(d == null ? void 0 : d.entities) || [],
|
|
@@ -124602,7 +124628,12 @@ function Aa(d, u = !1) {
|
|
|
124602
124628
|
const a = [
|
|
124603
124629
|
...d.suggestedMethods,
|
|
124604
124630
|
...d.methods
|
|
124605
|
-
].flatMap((l) => l.collapsed && u ? [] :
|
|
124631
|
+
].flatMap((l) => l.collapsed && u ? [] : (H.log(
|
|
124632
|
+
"[Recursive -- getRelatedCanvasElementsOnTheRight]",
|
|
124633
|
+
l.type,
|
|
124634
|
+
X(l, l.project),
|
|
124635
|
+
l.id
|
|
124636
|
+
), Aa(l, u)));
|
|
124606
124637
|
i.push(...a);
|
|
124607
124638
|
}
|
|
124608
124639
|
if (d.type === p.Condition) {
|
|
@@ -128092,7 +128123,7 @@ ${ZA}`
|
|
|
128092
128123
|
O.CloneEntity
|
|
128093
128124
|
)
|
|
128094
128125
|
), a = null, l = null, f = !0) {
|
|
128095
|
-
var N, L
|
|
128126
|
+
var N, L;
|
|
128096
128127
|
let e = dr(a, this);
|
|
128097
128128
|
const h = l || V.UUID.uuid();
|
|
128098
128129
|
let v = a || this.parent;
|
|
@@ -128121,7 +128152,7 @@ ${ZA}`
|
|
|
128121
128152
|
defaultValue: null,
|
|
128122
128153
|
dataType: null,
|
|
128123
128154
|
implements: this.implements.map(
|
|
128124
|
-
(
|
|
128155
|
+
(U) => U.toJSON()
|
|
128125
128156
|
),
|
|
128126
128157
|
extends: this.extends,
|
|
128127
128158
|
parent: v.toReference()
|
|
@@ -128129,22 +128160,22 @@ ${ZA}`
|
|
|
128129
128160
|
T,
|
|
128130
128161
|
e
|
|
128131
128162
|
);
|
|
128132
|
-
f && I.subscribe(), I.hydrateAncestors(), I.setParent(v, null),
|
|
128133
|
-
const E = ((
|
|
128163
|
+
f && I.subscribe(), I.hydrateAncestors(), I.setParent(v, null), f && I.addSelfToProject(i), I.initChildren(i), i == null || i.add(I, F.Added);
|
|
128164
|
+
const E = ((N = this.dataType) == null ? void 0 : N.clone(
|
|
128134
128165
|
i,
|
|
128135
128166
|
I,
|
|
128136
128167
|
V.UUID.uuid(),
|
|
128137
128168
|
f
|
|
128138
128169
|
)) || null;
|
|
128139
128170
|
E && I.setDataType(E, i);
|
|
128140
|
-
const D = (
|
|
128171
|
+
const D = (L = this.defaultValue) == null ? void 0 : L.clone(
|
|
128141
128172
|
i,
|
|
128142
128173
|
I,
|
|
128143
128174
|
V.UUID.uuid(),
|
|
128144
128175
|
f
|
|
128145
128176
|
);
|
|
128146
128177
|
return I.setDefaultValue(D || null, i), this.implements.length && this.implements.forEach(
|
|
128147
|
-
(
|
|
128178
|
+
(U) => I.addImplementation(U, i)
|
|
128148
128179
|
), I.addSelfToProject(null), i == null || i.attemptAutoclose(O.CloneEntity, this.id), I;
|
|
128149
128180
|
}
|
|
128150
128181
|
setDataType(i, a = this.project.addChangeSet(
|