@fewangsit/wangsvue-fats 1.0.1-alpha.31 → 1.0.1-alpha.32

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.
@@ -48320,15 +48320,15 @@ const R0 = [
48320
48320
  }), p = oe(QA), h = K(() => {
48321
48321
  var y;
48322
48322
  return (y = d.value) == null ? void 0 : y.locale;
48323
- }), m = K(() => n.inputnNumberId ? n.inputnNumberId : (n.label ?? n.fieldName ?? "input-number").toLowerCase().trim().replaceAll(" ", "-") + "-inputnumber"), v = K(() => n.invalid || !!f.errorMessage), w = ({ currency: y }, C) => {
48324
- const M = { currency: y, value: C };
48325
- i("update:modelValue", M), f.value = M;
48326
- }, A = () => {
48323
+ }), m = K(() => n.inputnNumberId ? n.inputnNumberId : (n.label ?? n.fieldName ?? "input-number").toLowerCase().trim().replaceAll(" ", "-") + "-inputnumber"), v = K(() => n.invalid || !!f.errorMessage), w = ({ currency: y }, C, M = !1) => {
48324
+ const R = { currency: y, value: C };
48325
+ i("update:modelValue", R), n.useValidator ? f.setValue(R, !M) : f.value = R;
48326
+ }, A = (y) => {
48327
48327
  $t(() => {
48328
- const y = document.getElementById(
48329
- m.value
48328
+ const C = y.querySelector(
48329
+ `#${m.value}`
48330
48330
  );
48331
- y && y.focus();
48331
+ C && C.focus();
48332
48332
  });
48333
48333
  }, k = (y) => {
48334
48334
  y.currency != d.value.currency && (d.value = y != null && y.currency ? gh(y == null ? void 0 : y.currency) : d.value);
@@ -48336,8 +48336,7 @@ const R0 = [
48336
48336
  return Be(
48337
48337
  () => n.modelValue,
48338
48338
  (y) => {
48339
- var C;
48340
- k(y), f.value = n.modelValue, u.value = (C = n.modelValue) == null ? void 0 : C.value;
48339
+ k(y), f.value = y, u.value = y == null ? void 0 : y.value;
48341
48340
  }
48342
48341
  ), Be(
48343
48342
  () => f.value,
@@ -48365,7 +48364,7 @@ const R0 = [
48365
48364
  modelValue: d.value,
48366
48365
  "onUpdate:modelValue": [
48367
48366
  C[0] || (C[0] = (M) => d.value = M),
48368
- C[3] || (C[3] = (M) => w(M, u.value))
48367
+ C[3] || (C[3] = (M) => w(M, u.value, !0))
48369
48368
  ],
48370
48369
  "filter-fields": ["label", "currency"],
48371
48370
  "filter-placeholder": x(o).filterPlaceholder,
@@ -48387,7 +48386,7 @@ const R0 = [
48387
48386
  ]
48388
48387
  }
48389
48388
  },
48390
- onHide: C[1] || (C[1] = (M) => (l.value = !1, A())),
48389
+ onHide: C[1] || (C[1] = (M) => (l.value = !1, A(y.$el))),
48391
48390
  onShow: C[2] || (C[2] = (M) => l.value = !0),
48392
48391
  "data-key": "currency",
48393
48392
  filter: "",