@elyx-code/project-logic-tree 0.0.6542 → 0.0.6543
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 +26 -22
- package/dist/index.umd.cjs +20 -20
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -46717,6 +46717,7 @@ class j extends Uu {
|
|
|
46717
46717
|
return Object.keys(this.affected);
|
|
46718
46718
|
}
|
|
46719
46719
|
event(i) {
|
|
46720
|
+
H.log(`ChangeSet Event: ${i.action} (${i.id})`);
|
|
46720
46721
|
const a = new xgt(i, this);
|
|
46721
46722
|
this.events.set(i.id, a), this.emit("change-set-event", a);
|
|
46722
46723
|
}
|
|
@@ -48493,7 +48494,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
48493
48494
|
var D, N;
|
|
48494
48495
|
let e = dr(a, this);
|
|
48495
48496
|
const h = this.toJSON(), v = l || V.UUID.uuid();
|
|
48496
|
-
h.dataType = null, h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1;
|
|
48497
|
+
h.dataType = null, h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1, h.deletable = !0, h.editable = !0;
|
|
48497
48498
|
const T = Ei(
|
|
48498
48499
|
h,
|
|
48499
48500
|
e
|
|
@@ -49997,7 +49998,7 @@ Please consider than any updates might affect the overlap with the signature of
|
|
|
49997
49998
|
var N;
|
|
49998
49999
|
let h = dr(a, this);
|
|
49999
50000
|
const v = this.toJSON(), T = l || V.UUID.uuid();
|
|
50000
|
-
v.inputs = [], v.calls = [], v.id = T, v.version = V.UUID.uuid(), v.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), v.author = (i == null ? void 0 : i.author) || "1", v.previousVersion = null, v.deleted = !1;
|
|
50001
|
+
v.inputs = [], v.calls = [], v.id = T, v.version = V.UUID.uuid(), v.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), v.author = (i == null ? void 0 : i.author) || "1", v.previousVersion = null, v.deleted = !1, v.deletable = !0, v.editable = !0;
|
|
50001
50002
|
const I = Ei(
|
|
50002
50003
|
v,
|
|
50003
50004
|
h
|
|
@@ -53476,7 +53477,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
53476
53477
|
const h = this.toJSON(), v = l || V.UUID.uuid();
|
|
53477
53478
|
h.inputs = [];
|
|
53478
53479
|
const T = v.split("-id"), I = T[T.length - 1 || 0] || v;
|
|
53479
|
-
h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1;
|
|
53480
|
+
h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1, h.deletable = !0, h.editable = !0;
|
|
53480
53481
|
const E = Ei(
|
|
53481
53482
|
h,
|
|
53482
53483
|
e
|
|
@@ -55224,7 +55225,7 @@ Specifically for return statements the parent needs to always be the 'function-d
|
|
|
55224
55225
|
const h = this.toJSON(), v = l || V.UUID.uuid();
|
|
55225
55226
|
h.outputs = [];
|
|
55226
55227
|
const T = v.split("-id"), I = T[T.length - 1 || 0] || v;
|
|
55227
|
-
h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1;
|
|
55228
|
+
h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1, h.deletable = !0, h.editable = !0;
|
|
55228
55229
|
const E = Ei(
|
|
55229
55230
|
h,
|
|
55230
55231
|
e
|
|
@@ -56520,7 +56521,7 @@ You can attach new logic to the existing 'global-event' but creating a new calla
|
|
|
56520
56521
|
const v = this.toJSON(), T = l || V.UUID.uuid();
|
|
56521
56522
|
v.inputs = [];
|
|
56522
56523
|
const I = T.split("-id"), E = I[I.length - 1 || 0] || T;
|
|
56523
|
-
v.id = T, v.version = V.UUID.uuid(), v.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), v.author = (i == null ? void 0 : i.author) || "1", v.previousVersion = null, v.deleted = !1;
|
|
56524
|
+
v.id = T, v.version = V.UUID.uuid(), v.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), v.author = (i == null ? void 0 : i.author) || "1", v.previousVersion = null, v.deleted = !1, v.deletable = !0, v.editable = !0;
|
|
56524
56525
|
const D = Ei(
|
|
56525
56526
|
v,
|
|
56526
56527
|
h
|
|
@@ -58167,7 +58168,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
58167
58168
|
const v = this.toJSON(), T = l || V.UUID.uuid();
|
|
58168
58169
|
v.inputs = [], v.dataType = null, v.error = null;
|
|
58169
58170
|
const I = T.split("-id"), E = I[I.length - 1 || 0] || T;
|
|
58170
|
-
v.id = T, v.version = V.UUID.uuid(), v.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), v.author = (i == null ? void 0 : i.author) || "1", v.previousVersion = null, v.deleted = !1;
|
|
58171
|
+
v.id = T, v.version = V.UUID.uuid(), v.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), v.author = (i == null ? void 0 : i.author) || "1", v.previousVersion = null, v.deleted = !1, v.deletable = !0, v.editable = !0;
|
|
58171
58172
|
const D = Ei(
|
|
58172
58173
|
v,
|
|
58173
58174
|
h
|
|
@@ -59906,7 +59907,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
59906
59907
|
const h = this.toJSON(), v = l || V.UUID.uuid();
|
|
59907
59908
|
h.inputs = [];
|
|
59908
59909
|
const T = v.split("-id"), I = T[T.length - 1 || 0] || v;
|
|
59909
|
-
h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1;
|
|
59910
|
+
h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1, h.deletable = !0, h.editable = !0;
|
|
59910
59911
|
const E = Ei(
|
|
59911
59912
|
h,
|
|
59912
59913
|
e
|
|
@@ -63113,7 +63114,7 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
63113
63114
|
const h = this.toJSON(), v = l || V.UUID.uuid();
|
|
63114
63115
|
h.inputs = [];
|
|
63115
63116
|
const T = v.split("-id"), I = T[T.length - 1 || 0] || v;
|
|
63116
|
-
h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1;
|
|
63117
|
+
h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1, h.deletable = !0, h.editable = !0;
|
|
63117
63118
|
const E = Ei(
|
|
63118
63119
|
h,
|
|
63119
63120
|
e
|
|
@@ -77303,7 +77304,10 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
77303
77304
|
if (!this.checkCanEdit(this))
|
|
77304
77305
|
return H.warn(
|
|
77305
77306
|
`[removeFromParent] User is not allowed to edit this ${this.type} entity with id: ${this.id}`
|
|
77306
|
-
), i == null || i.attemptAutoclose(
|
|
77307
|
+
), i == null || i.attemptAutoclose(
|
|
77308
|
+
O.RemoveFromParent,
|
|
77309
|
+
this.id
|
|
77310
|
+
), {
|
|
77307
77311
|
added: [],
|
|
77308
77312
|
updated: [],
|
|
77309
77313
|
removed: [],
|
|
@@ -77830,7 +77834,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
77830
77834
|
var L, U, K, q;
|
|
77831
77835
|
let e = dr(a, this);
|
|
77832
77836
|
const h = this.toJSON(), v = l || V.UUID.uuid();
|
|
77833
|
-
h.inputs = [], h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1;
|
|
77837
|
+
h.inputs = [], h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1, h.deletable = !0, h.editable = !0;
|
|
77834
77838
|
const T = Ei(
|
|
77835
77839
|
h,
|
|
77836
77840
|
e
|
|
@@ -80290,7 +80294,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
80290
80294
|
var U, K, q, W, z;
|
|
80291
80295
|
let e = dr(a, this);
|
|
80292
80296
|
const h = this.toJSON(), v = l || V.UUID.uuid();
|
|
80293
|
-
h.inputs = [], h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1;
|
|
80297
|
+
h.inputs = [], h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1, h.deletable = !0, h.editable = !0;
|
|
80294
80298
|
const T = Ei(
|
|
80295
80299
|
h,
|
|
80296
80300
|
e
|
|
@@ -103959,7 +103963,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
103959
103963
|
const h = this.toJSON(), v = l || V.UUID.uuid();
|
|
103960
103964
|
h.inputs = [];
|
|
103961
103965
|
const T = v.split("-id"), I = T[T.length - 1 || 0] || v;
|
|
103962
|
-
h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1;
|
|
103966
|
+
h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1, h.deletable = !0, h.editable = !0;
|
|
103963
103967
|
const E = Ei(
|
|
103964
103968
|
h,
|
|
103965
103969
|
e
|
|
@@ -105083,7 +105087,7 @@ const tBt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
105083
105087
|
const h = this.toJSON(), v = l || V.UUID.uuid();
|
|
105084
105088
|
h.functions = [], h.events = [];
|
|
105085
105089
|
const T = v.split("-id"), I = T[T.length - 1 || 0] || v;
|
|
105086
|
-
h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1;
|
|
105090
|
+
h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1, h.deletable = !0, h.editable = !0;
|
|
105087
105091
|
const E = Ei(
|
|
105088
105092
|
h,
|
|
105089
105093
|
e
|
|
@@ -106997,7 +107001,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
106997
107001
|
const h = this.toJSON(), v = l || V.UUID.uuid();
|
|
106998
107002
|
h.inputs = [];
|
|
106999
107003
|
const T = v.split("-id"), I = T[T.length - 1 || 0] || v;
|
|
107000
|
-
h.id = v, h.version = V.UUID.uuid();
|
|
107004
|
+
h.id = v, h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.version = V.UUID.uuid(), h.deletable = !0, h.editable = !0;
|
|
107001
107005
|
const E = Ei(
|
|
107002
107006
|
h,
|
|
107003
107007
|
e
|
|
@@ -108683,7 +108687,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
108683
108687
|
var E;
|
|
108684
108688
|
let e = dr(a, this);
|
|
108685
108689
|
const h = this.toJSON(), v = l || V.UUID.uuid();
|
|
108686
|
-
h.defaultValue = null, h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1;
|
|
108690
|
+
h.defaultValue = null, h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1, h.deletable = !0, h.editable = !0;
|
|
108687
108691
|
const T = Ei(
|
|
108688
108692
|
h,
|
|
108689
108693
|
e
|
|
@@ -109914,7 +109918,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
109914
109918
|
var E;
|
|
109915
109919
|
let e = dr(a, this);
|
|
109916
109920
|
const h = this.toJSON(), v = l || V.UUID.uuid();
|
|
109917
|
-
h.id = v;
|
|
109921
|
+
h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1, h.deletable = !0, h.editable = !0;
|
|
109918
109922
|
const T = Ei(
|
|
109919
109923
|
h,
|
|
109920
109924
|
e
|
|
@@ -112635,7 +112639,7 @@ Specifically for break statements the parent needs to always be the 'loop' entit
|
|
|
112635
112639
|
const h = this.toJSON(), v = l || V.UUID.uuid();
|
|
112636
112640
|
h.outputs = [];
|
|
112637
112641
|
const T = v.split("-id"), I = T[T.length - 1 || 0] || v;
|
|
112638
|
-
h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1;
|
|
112642
|
+
h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1, h.deletable = !0, h.editable = !0;
|
|
112639
112643
|
const E = Ei(
|
|
112640
112644
|
h,
|
|
112641
112645
|
e
|
|
@@ -114095,7 +114099,7 @@ Specifically for continue statements the parent needs to always be the 'loop' en
|
|
|
114095
114099
|
const h = this.toJSON(), v = l || V.UUID.uuid();
|
|
114096
114100
|
h.outputs = [];
|
|
114097
114101
|
const T = v.split("-id"), I = T[T.length - 1 || 0] || v;
|
|
114098
|
-
h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1;
|
|
114102
|
+
h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1, h.deletable = !0, h.editable = !0;
|
|
114099
114103
|
const E = Ei(
|
|
114100
114104
|
h,
|
|
114101
114105
|
e
|
|
@@ -115123,7 +115127,7 @@ ${Ka(
|
|
|
115123
115127
|
return this;
|
|
115124
115128
|
let h = dr(a, this);
|
|
115125
115129
|
const v = l || V.UUID.uuid(), T = this.toJSON();
|
|
115126
|
-
T.id = v, T.version = V.UUID.uuid(), T.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), T.author = (i == null ? void 0 : i.author) || "1", T.previousVersion = null, T.deleted = !1;
|
|
115130
|
+
T.id = v, T.version = V.UUID.uuid(), T.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), T.author = (i == null ? void 0 : i.author) || "1", T.previousVersion = null, T.deleted = !1, T.deletable = !0, T.editable = !0;
|
|
115127
115131
|
const I = Ei(
|
|
115128
115132
|
T,
|
|
115129
115133
|
h
|
|
@@ -120914,7 +120918,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
120914
120918
|
const h = this.toJSON(), v = l || V.UUID.uuid();
|
|
120915
120919
|
h.inputs = [];
|
|
120916
120920
|
const T = v.split("-id"), I = T[T.length - 1 || 0] || v;
|
|
120917
|
-
h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1;
|
|
120921
|
+
h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1, h.deletable = !0, h.editable = !0;
|
|
120918
120922
|
const E = Ei(
|
|
120919
120923
|
h,
|
|
120920
120924
|
e
|
|
@@ -131054,7 +131058,7 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
131054
131058
|
const h = this.toJSON(), v = l || V.UUID.uuid();
|
|
131055
131059
|
h.properties = [], h.methods = [], h.abstractMethods = [];
|
|
131056
131060
|
const T = v.split("-id"), I = T[T.length - 1 || 0] || v;
|
|
131057
|
-
h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1;
|
|
131061
|
+
h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1, h.editable = !0, h.deletable = !0;
|
|
131058
131062
|
const E = Ei(
|
|
131059
131063
|
h,
|
|
131060
131064
|
e
|
|
@@ -132634,7 +132638,7 @@ const fG = {
|
|
|
132634
132638
|
discardChangeSet(i) {
|
|
132635
132639
|
var l;
|
|
132636
132640
|
const a = this.history.findIndex((f) => f.id === (i == null ? void 0 : i.id));
|
|
132637
|
-
return a !== -1 && (this.history.splice(a, 1), this.undoableStackValueIndex = this.undoableStackValueIndex - 1, (l = this.onDiscardChangeSetCallback) == null || l.call(this, i)), this;
|
|
132641
|
+
return a !== -1 && (this.history.splice(a, 1), this.undoableStackValueIndex = this.undoableStackValueIndex - 1, (l = this.onDiscardChangeSetCallback) == null || l.call(this, i), i == null || i.teardown()), this;
|
|
132638
132642
|
}
|
|
132639
132643
|
validateGeneratedUpdate(i) {
|
|
132640
132644
|
return { errors: [], modifiedData: i };
|