monobill-mintui 0.6.683 → 0.6.684

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 CHANGED
@@ -9193,15 +9193,20 @@ var Vn = class extends HTMLElement {
9193
9193
  if (!this._formData || !this._form) return;
9194
9194
  let e = this._getObjectValue(this._formData);
9195
9195
  if (!e || typeof e != "object" || Array.isArray(e)) return;
9196
- let t = this._extractReactiveData(e), n = this._createDataSnapshot(t), r = this._lastAppliedDataSnapshot, i = /* @__PURE__ */ new Set();
9197
- if (r ? (Object.keys(n).forEach((e) => {
9198
- let t = r[e], a = n[e];
9199
- JSON.stringify(t) !== JSON.stringify(a) && i.add(e);
9200
- }), Object.keys(r).forEach((e) => {
9201
- e in n || i.add(e);
9202
- })) : Object.keys(n).forEach((e) => i.add(e)), i.size === 0) return;
9203
- let a = () => {
9204
- i.forEach((e) => {
9196
+ let t = (e, t) => {
9197
+ let n = /* @__PURE__ */ new Set();
9198
+ return t ? (Object.keys(e).forEach((r) => {
9199
+ JSON.stringify(t[r]) !== JSON.stringify(e[r]) && n.add(r);
9200
+ }), Object.keys(t).forEach((t) => {
9201
+ t in e || n.add(t);
9202
+ }), n) : (Object.keys(e).forEach((e) => n.add(e)), n);
9203
+ };
9204
+ if (t(this._createDataSnapshot(this._extractReactiveData(e)), this._lastAppliedDataSnapshot).size === 0) return;
9205
+ let n = () => {
9206
+ let e = this._formData ? this._getObjectValue(this._formData) : null;
9207
+ if (!e || typeof e != "object" || Array.isArray(e)) return;
9208
+ let n = this._createDataSnapshot(this._extractReactiveData(e)), r = t(n, this._lastAppliedDataSnapshot);
9209
+ r.size !== 0 && (r.forEach((e) => {
9205
9210
  let t = n[e], r = this._getFieldElements(e);
9206
9211
  if (r.length === 0) {
9207
9212
  setTimeout(() => {
@@ -9209,17 +9214,17 @@ var Vn = class extends HTMLElement {
9209
9214
  if (t.length === 0) return;
9210
9215
  let n = this._formData ? this._getObjectValue(this._formData) : null;
9211
9216
  if (!n || typeof n != "object" || Array.isArray(n)) return;
9212
- let r = n[e];
9217
+ let r = this._extractReactiveData(n)[e];
9213
9218
  this._applyValueToField(t, e, r);
9214
9219
  }, 300);
9215
9220
  return;
9216
9221
  }
9217
9222
  this._applyValueToField(r, e, t);
9218
- }), this._lastAppliedDataSnapshot = n;
9223
+ }), this._lastAppliedDataSnapshot = n);
9219
9224
  };
9220
9225
  requestAnimationFrame(() => {
9221
9226
  requestAnimationFrame(() => {
9222
- a();
9227
+ n();
9223
9228
  });
9224
9229
  });
9225
9230
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monobill-mintui",
3
- "version": "0.6.683",
3
+ "version": "0.6.684",
4
4
  "description": "Framework-independent HTML custom elements with component-scoped CSS.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",