@elyx-code/project-logic-tree 0.0.6181 → 0.0.6182
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 +7 -0
- package/dist/index.umd.cjs +37 -37
- package/dist/tree/state/change-set.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -29121,6 +29121,13 @@ class A {
|
|
|
29121
29121
|
this.remove(d);
|
|
29122
29122
|
});
|
|
29123
29123
|
}
|
|
29124
|
+
async attemptAutocloseAsync(s, e) {
|
|
29125
|
+
var t;
|
|
29126
|
+
return this.autoclose && this.autoCloseActionName && this.autoCloseActionName === s && (this.self && e === ((t = this.self) == null ? void 0 : t.id) || !this.self) && await this.closeAsync(), this;
|
|
29127
|
+
}
|
|
29128
|
+
async closeAsync() {
|
|
29129
|
+
return this.open = !1, !this.isValid && this.self && !this.added[this.self.id] && !this.updated[this.self.id] && this.removed[this.self.id], this.isEmpty ? (this.project.discardChangeSet(this), this) : (this.discardOrphans(), await this.project.closeChangeSet(this), this);
|
|
29130
|
+
}
|
|
29124
29131
|
attemptAutoclose(s, e) {
|
|
29125
29132
|
var t;
|
|
29126
29133
|
return this.autoclose && this.autoCloseActionName && this.autoCloseActionName === s && (this.self && e === ((t = this.self) == null ? void 0 : t.id) || !this.self) && this.close(), this;
|