jedison 1.11.1 → 1.11.2
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/esm/jedison.js
CHANGED
|
@@ -3053,7 +3053,9 @@ class InstanceObject extends Instance {
|
|
|
3053
3053
|
this.value = value;
|
|
3054
3054
|
this.jedison.emit("instance-change", this, initiator);
|
|
3055
3055
|
this.emit("change", initiator);
|
|
3056
|
-
this.
|
|
3056
|
+
if (!this.refreshingInstances) {
|
|
3057
|
+
this.emit("notifyParent", initiator);
|
|
3058
|
+
}
|
|
3057
3059
|
}
|
|
3058
3060
|
/**
|
|
3059
3061
|
* Sorts the children of the current instance based on their `propertyOrder` value in ascending order.
|
|
@@ -3083,8 +3085,11 @@ class InstanceObject extends Instance {
|
|
|
3083
3085
|
});
|
|
3084
3086
|
}
|
|
3085
3087
|
refreshInstances(initiator) {
|
|
3088
|
+
const wasRefreshing = this.refreshingInstances;
|
|
3089
|
+
this.refreshingInstances = true;
|
|
3086
3090
|
const value = this.getValue();
|
|
3087
3091
|
if (!isObject(value)) {
|
|
3092
|
+
this.refreshingInstances = wasRefreshing;
|
|
3088
3093
|
return;
|
|
3089
3094
|
}
|
|
3090
3095
|
const childMap = /* @__PURE__ */ new Map();
|
|
@@ -3119,6 +3124,7 @@ class InstanceObject extends Instance {
|
|
|
3119
3124
|
}
|
|
3120
3125
|
this.sortChildrenByPropertyOrder();
|
|
3121
3126
|
this.value = value;
|
|
3127
|
+
this.refreshingInstances = wasRefreshing;
|
|
3122
3128
|
}
|
|
3123
3129
|
}
|
|
3124
3130
|
class InstanceArray extends Instance {
|
|
@@ -5430,7 +5436,8 @@ class EditorMultiple extends Editor {
|
|
|
5430
5436
|
if (this.embedSwitcher) {
|
|
5431
5437
|
this.control.header.style.display = "none";
|
|
5432
5438
|
}
|
|
5433
|
-
this.instance.on("change", () => {
|
|
5439
|
+
this.instance.on("change", (initiator) => {
|
|
5440
|
+
if (initiator === "api") return;
|
|
5434
5441
|
const jedison = this.instance.jedison;
|
|
5435
5442
|
const errors = jedison.getErrors(["error", "warning"]);
|
|
5436
5443
|
const prefix = this.instance.path + "/";
|