quasar-ui-danx 0.4.59 → 0.4.61

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/danx.es.js CHANGED
@@ -4574,27 +4574,35 @@ const oy = ["innerHTML"], ly = {
4574
4574
  fieldClass: r.fieldClass,
4575
4575
  savingClass: r.savingClass
4576
4576
  }, i = H({ ...r.target }), o = {};
4577
- fe(() => r.target, (a) => {
4578
- var u;
4579
- if (a)
4580
- for (let c of r.form.fields)
4581
- (u = o[c.name]) != null && u.isSaving || (i.value[c.name] = a[c.name]);
4577
+ fe(() => r.target, (u) => {
4578
+ var c;
4579
+ if (u)
4580
+ for (let d of r.form.fields)
4581
+ (c = o[d.name]) != null && c.isSaving || (i.value[d.name] = u[d.name]);
4582
+ });
4583
+ const l = P(() => {
4584
+ for (let u of r.form.fields) {
4585
+ const c = i.value[u.name];
4586
+ if (u.required && !c && c !== !1 && c !== 0)
4587
+ return !1;
4588
+ }
4589
+ return !0;
4582
4590
  });
4583
- async function l() {
4584
- await r.action.trigger(r.target, i.value), n("saved");
4591
+ async function a() {
4592
+ l.value && (await r.action.trigger(r.target, i.value), n("saved"));
4585
4593
  }
4586
- return (a, u) => (h(), E(Pd, Ge(s, {
4594
+ return (u, c) => (h(), E(Pd, Ge(s, {
4587
4595
  values: i.value,
4588
4596
  "onUpdate:values": [
4589
- u[0] || (u[0] = (c) => i.value = c),
4590
- l
4597
+ c[0] || (c[0] = (d) => i.value = d),
4598
+ a
4591
4599
  ],
4592
4600
  "empty-value": "",
4593
- "saved-at": a.hideSavedAt ? void 0 : a.target.updated_at,
4594
- saving: a.action.isApplying
4601
+ "saved-at": u.hideSavedAt ? void 0 : u.target.updated_at,
4602
+ saving: u.action.isApplying
4595
4603
  }), {
4596
4604
  default: N(() => [
4597
- R(a.$slots, "default")
4605
+ R(u.$slots, "default")
4598
4606
  ]),
4599
4607
  _: 3
4600
4608
  }, 16, ["values", "saved-at", "saving"]));
@@ -26633,7 +26641,7 @@ function W9(t, e = "") {
26633
26641
  function Sm(t, e = "") {
26634
26642
  return Object.entries(t).map(([n, r]) => typeof r == "object" ? Sm(r, `${e}${n}-`) : `--${e}${n}: ${r}`).join(";");
26635
26643
  }
26636
- const kE = "0.4.59", TE = {
26644
+ const kE = "0.4.61", TE = {
26637
26645
  version: kE
26638
26646
  }, { version: CE } = TE;
26639
26647
  function j9() {