@gopowerteam/form-render 0.0.73 → 0.0.75

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/es/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { getCurrentInstance as q, inject as ye, defineComponent as z, computed as O, openBlock as $, createElementBlock as T, normalizeClass as le, normalizeStyle as R, createElementVNode as x, shallowRef as A, ref as _, provide as he, onMounted as W, Fragment as re, renderSlot as Qe, createBlock as ne, Teleport as Ze, createVNode as d, TransitionGroup as et, withCtx as tt, renderList as rt, mergeProps as ge, createCommentVNode as U, defineAsyncComponent as nt, triggerRef as Q, useCssVars as lt, onUnmounted as at, withModifiers as ut, toDisplayString as N, resolveDynamicComponent as De, normalizeProps as ot, guardReactiveProps as ct, watch as Z, unref as it, isRef as ae, toRefs as st, customRef as dt, nextTick as Ie, getCurrentScope as ft, onScopeDispose as mt, pushScopeId as ze, popScopeId as Ee, isVNode as be, createTextVNode as D, h as Ye, onUpdated as ht } from "vue";
2
- import { DatePicker as vt, YearPicker as pt, QuarterPicker as yt, MonthPicker as gt, WeekPicker as bt, Input as kt, InputNumber as Re, Select as wt, Option as xt, Switch as Ct, RangePicker as St, Textarea as _t, TreeSelect as $t, Cascader as Ot, FormItem as ve, Divider as Fe, Button as I, Tabs as Yt, TabPane as Ft, Form as Mt, Grid as Tt, GridItem as ce, Space as Me, Tag as Lt } from "@arco-design/web-vue";
1
+ import { getCurrentInstance as q, inject as ye, defineComponent as z, computed as F, openBlock as $, createElementBlock as T, normalizeClass as le, normalizeStyle as R, createElementVNode as x, shallowRef as N, ref as _, provide as he, onMounted as W, Fragment as re, renderSlot as Qe, createBlock as ne, Teleport as Ze, createVNode as d, TransitionGroup as et, withCtx as tt, renderList as rt, mergeProps as ge, createCommentVNode as U, defineAsyncComponent as nt, triggerRef as Q, useCssVars as lt, onUnmounted as at, withModifiers as ut, toDisplayString as A, resolveDynamicComponent as De, normalizeProps as ot, guardReactiveProps as ct, watch as Z, unref as it, isRef as ae, toRefs as st, customRef as dt, nextTick as Ie, getCurrentScope as ft, onScopeDispose as mt, pushScopeId as ze, popScopeId as Ee, isVNode as be, createTextVNode as D, h as Oe, onUpdated as ht } from "vue";
2
+ import { DatePicker as vt, YearPicker as pt, QuarterPicker as yt, MonthPicker as gt, WeekPicker as bt, Input as kt, InputNumber as Re, Select as wt, Option as xt, Switch as Ct, RangePicker as St, Textarea as _t, TreeSelect as $t, Cascader as Ft, FormItem as ve, Divider as Ye, Button as I, Tabs as Ot, TabPane as Yt, Form as Mt, Grid as Tt, GridItem as ce, Space as Me, Tag as Lt } from "@arco-design/web-vue";
3
3
  import S from "dayjs";
4
4
  import { FormRenderResolver as yn } from "./resolver.mjs";
5
5
  const jt = Symbol("ArcoConfigProvider"), Pt = "arco", Dt = "$arco", ke = (e) => {
@@ -44,9 +44,9 @@ const zt = z({
44
44
  setup(e, {
45
45
  emit: n
46
46
  }) {
47
- const r = ke("icon"), t = O(() => [r, `${r}-down`, {
47
+ const r = ke("icon"), t = F(() => [r, `${r}-down`, {
48
48
  [`${r}-spin`]: e.spin
49
- }]), a = O(() => {
49
+ }]), a = F(() => {
50
50
  const l = {};
51
51
  return e.size && (l.fontSize = we(e.size) ? `${e.size}px` : e.size), e.rotate && (l.transform = `rotate(${e.rotate}deg)`), l;
52
52
  });
@@ -60,8 +60,8 @@ const zt = z({
60
60
  }
61
61
  }), Et = ["stroke-width", "stroke-linecap", "stroke-linejoin"], Rt = /* @__PURE__ */ x("path", {
62
62
  d: "M39.6 17.443 24.043 33 8.487 17.443"
63
- }, null, -1), Nt = [Rt];
64
- function At(e, n, r, t, a, u) {
63
+ }, null, -1), At = [Rt];
64
+ function Nt(e, n, r, t, a, u) {
65
65
  return $(), T("svg", {
66
66
  viewBox: "0 0 48 48",
67
67
  fill: "none",
@@ -73,9 +73,9 @@ function At(e, n, r, t, a, u) {
73
73
  "stroke-linecap": e.strokeLinecap,
74
74
  "stroke-linejoin": e.strokeLinejoin,
75
75
  onClick: n[0] || (n[0] = (...l) => e.onClick && e.onClick(...l))
76
- }, Nt, 14, Et);
76
+ }, At, 14, Et);
77
77
  }
78
- var ie = /* @__PURE__ */ xe(zt, [["render", At]]);
78
+ var ie = /* @__PURE__ */ xe(zt, [["render", Nt]]);
79
79
  const Bt = Object.assign(ie, {
80
80
  install: (e, n) => {
81
81
  var r;
@@ -111,9 +111,9 @@ const Bt = Object.assign(ie, {
111
111
  setup(e, {
112
112
  emit: n
113
113
  }) {
114
- const r = ke("icon"), t = O(() => [r, `${r}-up`, {
114
+ const r = ke("icon"), t = F(() => [r, `${r}-up`, {
115
115
  [`${r}-spin`]: e.spin
116
- }]), a = O(() => {
116
+ }]), a = F(() => {
117
117
  const l = {};
118
118
  return e.size && (l.fontSize = we(e.size) ? `${e.size}px` : e.size), e.rotate && (l.transform = `rotate(${e.rotate}deg)`), l;
119
119
  });
@@ -178,9 +178,9 @@ const Gt = Object.assign(se, {
178
178
  setup(e, {
179
179
  emit: n
180
180
  }) {
181
- const r = ke("icon"), t = O(() => [r, `${r}-search`, {
181
+ const r = ke("icon"), t = F(() => [r, `${r}-search`, {
182
182
  [`${r}-spin`]: e.spin
183
- }]), a = O(() => {
183
+ }]), a = F(() => {
184
184
  const l = {};
185
185
  return e.size && (l.fontSize = we(e.size) ? `${e.size}px` : e.size), e.rotate && (l.transform = `rotate(${e.rotate}deg)`), l;
186
186
  });
@@ -217,13 +217,13 @@ const er = Object.assign(de, {
217
217
  e.component(t + de.name, de);
218
218
  }
219
219
  }), Ce = Symbol("__MODAL__");
220
- function Ne(e) {
220
+ function Ae(e) {
221
221
  return ft() ? (mt(e), !0) : !1;
222
222
  }
223
223
  function M(e) {
224
224
  return typeof e == "function" ? e() : it(e);
225
225
  }
226
- const Ae = typeof window < "u" && typeof document < "u";
226
+ const Ne = typeof window < "u" && typeof document < "u";
227
227
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
228
228
  const tr = Object.prototype.toString, rr = (e) => tr.call(e) === "[object Object]", nr = () => {
229
229
  };
@@ -263,7 +263,7 @@ function B(e) {
263
263
  const r = M(e);
264
264
  return (n = r == null ? void 0 : r.$el) != null ? n : r;
265
265
  }
266
- const ue = Ae ? window : void 0;
266
+ const ue = Ne ? window : void 0;
267
267
  function fe(...e) {
268
268
  let n, r, t, a;
269
269
  if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([r, t, a] = e, n = ue) : [n, r, t, a] = e, !n)
@@ -285,7 +285,7 @@ function fe(...e) {
285
285
  ), c = () => {
286
286
  v(), l();
287
287
  };
288
- return Ne(c), c;
288
+ return Ae(c), c;
289
289
  }
290
290
  function or() {
291
291
  const e = _(!1), n = q();
@@ -295,7 +295,7 @@ function or() {
295
295
  }
296
296
  function cr(e) {
297
297
  const n = or();
298
- return O(() => (n.value, !!e()));
298
+ return F(() => (n.value, !!e()));
299
299
  }
300
300
  function ir(e, n = {}) {
301
301
  var r, t;
@@ -320,32 +320,32 @@ function ir(e, n = {}) {
320
320
  var g;
321
321
  if (M(n.disabled) || !j(w) || M(h) && w.target !== M(e))
322
322
  return;
323
- const b = M(m), Y = (g = b == null ? void 0 : b.getBoundingClientRect) == null ? void 0 : g.call(b), F = M(e).getBoundingClientRect(), ee = {
324
- x: w.clientX - (b ? F.left - Y.left + b.scrollLeft : F.left),
325
- y: w.clientY - (b ? F.top - Y.top + b.scrollTop : F.top)
323
+ const b = M(m), O = (g = b == null ? void 0 : b.getBoundingClientRect) == null ? void 0 : g.call(b), Y = M(e).getBoundingClientRect(), ee = {
324
+ x: w.clientX - (b ? Y.left - O.left + b.scrollLeft : Y.left),
325
+ y: w.clientY - (b ? Y.top - O.top + b.scrollTop : Y.top)
326
326
  };
327
327
  (o == null ? void 0 : o(ee, w)) !== !1 && (C.value = ee, L(w));
328
328
  }, H = (w) => {
329
329
  if (M(n.disabled) || !j(w) || !C.value)
330
330
  return;
331
331
  const g = M(m), b = M(e).getBoundingClientRect();
332
- let { x: Y, y: F } = y.value;
333
- (s === "x" || s === "both") && (Y = w.clientX - C.value.x, g && (Y = Math.min(Math.max(0, Y), g.scrollWidth - b.width))), (s === "y" || s === "both") && (F = w.clientY - C.value.y, g && (F = Math.min(Math.max(0, F), g.scrollHeight - b.height))), y.value = {
334
- x: Y,
335
- y: F
332
+ let { x: O, y: Y } = y.value;
333
+ (s === "x" || s === "both") && (O = w.clientX - C.value.x, g && (O = Math.min(Math.max(0, O), g.scrollWidth - b.width))), (s === "y" || s === "both") && (Y = w.clientY - C.value.y, g && (Y = Math.min(Math.max(0, Y), g.scrollHeight - b.height))), y.value = {
334
+ x: O,
335
+ y: Y
336
336
  }, v == null || v(y.value, w), L(w);
337
337
  }, V = (w) => {
338
338
  M(n.disabled) || !j(w) || C.value && (C.value = void 0, c == null || c(y.value, w), L(w));
339
339
  };
340
- if (Ae) {
340
+ if (Ne) {
341
341
  const w = { capture: (t = n.capture) != null ? t : !0 };
342
342
  fe(k, "pointerdown", E, w), fe(f, "pointermove", H, w), fe(f, "pointerup", V, w);
343
343
  }
344
344
  return {
345
345
  ...ar(y),
346
346
  position: y,
347
- isDragging: O(() => !!C.value),
348
- style: O(
347
+ isDragging: F(() => !!C.value),
348
+ style: F(
349
349
  () => `left:${y.value.x}px;top:${y.value.y}px;`
350
350
  )
351
351
  };
@@ -355,7 +355,7 @@ function sr(e, n, r = {}) {
355
355
  let u;
356
356
  const l = cr(() => t && "ResizeObserver" in t), h = () => {
357
357
  u && (u.disconnect(), u = void 0);
358
- }, v = O(() => Array.isArray(e) ? e.map((i) => B(i)) : [B(e)]), c = Z(
358
+ }, v = F(() => Array.isArray(e) ? e.map((i) => B(i)) : [B(e)]), c = Z(
359
359
  v,
360
360
  (i) => {
361
361
  if (h(), l.value && t) {
@@ -368,13 +368,13 @@ function sr(e, n, r = {}) {
368
368
  ), o = () => {
369
369
  h(), c();
370
370
  };
371
- return Ne(o), {
371
+ return Ae(o), {
372
372
  isSupported: l,
373
373
  stop: o
374
374
  };
375
375
  }
376
376
  function G(e, n = { width: 0, height: 0 }, r = {}) {
377
- const { window: t = ue, box: a = "content-box" } = r, u = O(() => {
377
+ const { window: t = ue, box: a = "content-box" } = r, u = F(() => {
378
378
  var i, s;
379
379
  return (s = (i = B(e)) == null ? void 0 : i.namespaceURI) == null ? void 0 : s.includes("svg");
380
380
  }), l = _(n.width), h = _(n.height), { stop: v } = sr(
@@ -465,7 +465,7 @@ const dr = (e) => (ze("data-v-9a7af353"), e = e(), Ee(), e), fr = { class: "titl
465
465
  }));
466
466
  const t = e, a = r, u = ye(Ce), l = _(!1);
467
467
  let h = 0, v = 0;
468
- const c = A(), o = A(), i = A(), s = A(), f = A(), m = A(), { height: k } = G(c), { height: y } = G(i, void 0, { box: "border-box" }), { height: C } = G(s, void 0, { box: "border-box" }), { height: j } = G(f), { height: L } = G(m), { x: E, y: H } = ir(i, {
468
+ const c = N(), o = N(), i = N(), s = N(), f = N(), m = N(), { height: k } = G(c), { height: y } = G(i, void 0, { box: "border-box" }), { height: C } = G(s, void 0, { box: "border-box" }), { height: j } = G(f), { height: L } = G(m), { x: E, y: H } = ir(i, {
469
469
  initialValue: { x: 0, y: 0 }
470
470
  });
471
471
  function V() {
@@ -474,7 +474,7 @@ const dr = (e) => (ze("data-v-9a7af353"), e = e(), Ee(), e), fr = { class: "titl
474
474
  function w(p) {
475
475
  return typeof p == "number" ? `${p}px` : p;
476
476
  }
477
- const g = O(() => {
477
+ const g = F(() => {
478
478
  const p = {};
479
479
  return t.mode === "dialog" && (p.justifyContent = "center"), t.mode === "drawer" && (p.justifyContent = {
480
480
  left: "flex-start",
@@ -487,15 +487,15 @@ const dr = (e) => (ze("data-v-9a7af353"), e = e(), Ee(), e), fr = { class: "titl
487
487
  top: "column",
488
488
  bottom: "column"
489
489
  }[t.position]), p;
490
- }), b = O(() => {
490
+ }), b = F(() => {
491
491
  const p = {};
492
492
  return t.mode === "drawer" && ["top", "bottom"].includes(t.position) ? p.maxHeight = w(t.maxHeight) : (p.width = w(t.sizes[t.size]), p.maxWidth = w(t.maxWidth)), t.width && (p.width = w(t.width)), t.height && (p.height = w(t.height)), t.fullscreen && (p.maxWidth = "unset", p.width = "100%", p.position = "fixed", p.top = 0, p.left = 0, p.bottom = 0, p.right = 0, p.borderRadius = 0), t.draggable && !t.fullscreen && t.mode === "dialog" && (p.transform = `translate3d(${E.value - h}px, ${H.value - v}px, 0px)`), t.mode === "drawer" && (p.borderRadius = 0, ["left", "right"].includes(t.position) ? p.height = "100%" : p.width = "100%"), t.offset && t.mode === "dialog" && (p.marginLeft = `${t.offset.x || 0}px`, p.marginTop = `${t.offset.y || 0}px`), t.backgroundColor && (p.backgroundColor = t.backgroundColor), p;
493
- }), Y = O(() => {
493
+ }), O = F(() => {
494
494
  const p = {};
495
495
  return t.draggable && !t.fullscreen && t.mode === "dialog" && (p.cursor = "move"), p;
496
- }), F = O(() => {
497
- const p = {}, P = j.value + L.value + y.value + C.value, Oe = Math.floor(k.value * (Number(w(t.maxHeight).replace("%", "")) / 100));
498
- return t.maxHeight && (p.maxHeight = `${Oe - P}px`), t.mode === "drawer" && (p.maxHeight = "unset", ["left", "right"].includes(t.position) && (p.height = `${k.value - P}px`)), t.fullscreen && (p.maxHeight = "unset", p.height = `calc(100% - ${P}px)`), t.type !== "component" && (p.padding = "0"), t.bodyStyle && Object.assign(p, t.bodyStyle), p;
496
+ }), Y = F(() => {
497
+ const p = {}, P = j.value + L.value + y.value + C.value, Fe = Math.floor(k.value * (Number(w(t.maxHeight).replace("%", "")) / 100));
498
+ return t.maxHeight && (p.maxHeight = `${Fe - P}px`), t.mode === "drawer" && (p.maxHeight = "unset", ["left", "right"].includes(t.position) && (p.height = `${k.value - P}px`)), t.fullscreen && (p.maxHeight = "unset", p.height = `calc(100% - ${P}px)`), t.type !== "component" && (p.padding = "0"), t.bodyStyle && Object.assign(p, t.bodyStyle), p;
499
499
  });
500
500
  function ee() {
501
501
  const p = o.value;
@@ -542,7 +542,7 @@ const dr = (e) => (ze("data-v-9a7af353"), e = e(), Ee(), e), fr = { class: "titl
542
542
  ref: c,
543
543
  class: "modal-wrapper",
544
544
  style: R(g.value),
545
- onClick: P[0] || (P[0] = ut((Oe) => p.maskClosable && V(), ["self"]))
545
+ onClick: P[0] || (P[0] = ut((Fe) => p.maskClosable && V(), ["self"]))
546
546
  }, [
547
547
  x("div", {
548
548
  ref_key: "contentRef",
@@ -555,10 +555,10 @@ const dr = (e) => (ze("data-v-9a7af353"), e = e(), Ee(), e), fr = { class: "titl
555
555
  ref_key: "headerRef",
556
556
  ref: i,
557
557
  class: "modal-header",
558
- style: R(Y.value),
558
+ style: R(O.value),
559
559
  onMousedown: Xe
560
560
  }, [
561
- x("div", fr, N(p.title), 1),
561
+ x("div", fr, A(p.title), 1),
562
562
  x("div", mr, [
563
563
  p.closeable ? ($(), T("div", {
564
564
  key: 0,
@@ -574,7 +574,7 @@ const dr = (e) => (ze("data-v-9a7af353"), e = e(), Ee(), e), fr = { class: "titl
574
574
  }, null, 512),
575
575
  x("div", {
576
576
  class: "modal-body",
577
- style: R(F.value)
577
+ style: R(Y.value)
578
578
  }, [
579
579
  ($(), ne(De(p.component), ot(ct(p.componentProps)), null, 16))
580
580
  ], 4),
@@ -593,13 +593,13 @@ const dr = (e) => (ze("data-v-9a7af353"), e = e(), Ee(), e), fr = { class: "titl
593
593
  class: "cancel-button",
594
594
  type: "button",
595
595
  onClick: He
596
- }, N(p.cancelText), 1),
596
+ }, A(p.cancelText), 1),
597
597
  x("button", {
598
598
  class: "submit-button",
599
599
  form: p.form,
600
600
  type: "submit",
601
601
  onClick: ee
602
- }, N(p.submitText), 9, hr)
602
+ }, A(p.submitText), 9, hr)
603
603
  ], 512)) : U("", !0),
604
604
  l.value ? ($(), T("div", vr, yr)) : U("", !0)
605
605
  ], 6)
@@ -623,7 +623,7 @@ const dr = (e) => (ze("data-v-9a7af353"), e = e(), Ee(), e), fr = { class: "titl
623
623
  footer: {}
624
624
  },
625
625
  setup(e) {
626
- const n = e, r = Be(), t = O(() => n.title ? n.title : {
626
+ const n = e, r = Be(), t = F(() => n.title ? n.title : {
627
627
  confirm: "提示",
628
628
  info: "提示",
629
629
  warning: "警告",
@@ -638,8 +638,8 @@ const dr = (e) => (ze("data-v-9a7af353"), e = e(), Ee(), e), fr = { class: "titl
638
638
  }
639
639
  return (l, h) => ($(), T("section", wr, [
640
640
  x("div", xr, [
641
- x("div", Cr, N(t.value), 1),
642
- x("div", Sr, N(l.content), 1)
641
+ x("div", Cr, A(t.value), 1),
642
+ x("div", Sr, A(l.content), 1)
643
643
  ]),
644
644
  x("div", {
645
645
  class: "dialog-footer space-x-2",
@@ -650,18 +650,18 @@ const dr = (e) => (ze("data-v-9a7af353"), e = e(), Ee(), e), fr = { class: "titl
650
650
  class: "submit-button",
651
651
  type: "submit",
652
652
  onClick: a
653
- }, N(l.okText), 1),
653
+ }, A(l.okText), 1),
654
654
  l.type === "confirm" ? ($(), T("button", {
655
655
  key: 0,
656
656
  class: "cancel-button",
657
657
  type: "button",
658
658
  onClick: u
659
- }, N(l.cancelText), 1)) : U("", !0)
659
+ }, A(l.cancelText), 1)) : U("", !0)
660
660
  ], 64))
661
661
  ], 4)
662
662
  ]));
663
663
  }
664
- }), $r = /* @__PURE__ */ oe(_r, [["__scopeId", "data-v-0c6b8db2"]]), Or = (e) => (ze("data-v-559bdf2e"), e = e(), Ee(), e), Yr = { class: "flex-center" }, Fr = /* @__PURE__ */ Or(() => /* @__PURE__ */ x("div", { class: "modal-loading" }, [
664
+ }), $r = /* @__PURE__ */ oe(_r, [["__scopeId", "data-v-0c6b8db2"]]), Fr = (e) => (ze("data-v-559bdf2e"), e = e(), Ee(), e), Or = { class: "flex-center" }, Yr = /* @__PURE__ */ Fr(() => /* @__PURE__ */ x("div", { class: "modal-loading" }, [
665
665
  /* @__PURE__ */ x("div", { class: "lds-ring" }, [
666
666
  /* @__PURE__ */ x("div"),
667
667
  /* @__PURE__ */ x("div"),
@@ -674,9 +674,9 @@ const dr = (e) => (ze("data-v-9a7af353"), e = e(), Ee(), e), fr = { class: "titl
674
674
  text: { default: "加载中" }
675
675
  },
676
676
  setup(e) {
677
- return (n, r) => ($(), T("section", Yr, [
678
- Fr,
679
- x("div", Mr, N(n.text), 1)
677
+ return (n, r) => ($(), T("section", Or, [
678
+ Yr,
679
+ x("div", Mr, A(n.text), 1)
680
680
  ]));
681
681
  }
682
682
  }), Lr = /* @__PURE__ */ oe(Tr, [["__scopeId", "data-v-559bdf2e"]]), jr = {
@@ -699,7 +699,7 @@ const dr = (e) => (ze("data-v-9a7af353"), e = e(), Ee(), e), fr = { class: "titl
699
699
  offset: { default: () => ({ x: 0, y: 0 }) }
700
700
  },
701
701
  setup(e, { expose: n }) {
702
- const r = A([]), t = _(!1), a = q();
702
+ const r = N([]), t = _(!1), a = q();
703
703
  function u(s, f = {}, m = {}) {
704
704
  const k = nt(
705
705
  () => Promise.resolve(typeof s == "string" ? $r : s)
@@ -999,7 +999,7 @@ var Ue = { exports: {} };
999
999
  });
1000
1000
  })(Ue);
1001
1001
  var Rr = Ue.exports;
1002
- const Nr = /* @__PURE__ */ Ve(Rr);
1002
+ const Ar = /* @__PURE__ */ Ve(Rr);
1003
1003
  var qe = { exports: {} };
1004
1004
  (function(e, n) {
1005
1005
  (function(r, t) {
@@ -1027,9 +1027,9 @@ var qe = { exports: {} };
1027
1027
  };
1028
1028
  });
1029
1029
  })(qe);
1030
- var Ar = qe.exports;
1031
- const Br = /* @__PURE__ */ Ve(Ar);
1032
- S.extend(Nr);
1030
+ var Nr = qe.exports;
1031
+ const Br = /* @__PURE__ */ Ve(Nr);
1032
+ S.extend(Ar);
1033
1033
  S.extend(Br);
1034
1034
  S.locale("zh-cn", {
1035
1035
  weekStart: 1
@@ -1581,7 +1581,7 @@ function tn(e) {
1581
1581
  }
1582
1582
  }
1583
1583
  function s() {
1584
- return d(Ot, {
1584
+ return d(Ft, {
1585
1585
  pathMode: e.pathMode,
1586
1586
  ref: (f) => n = f,
1587
1587
  multiple: e.multiple,
@@ -1627,14 +1627,14 @@ function ln(e) {
1627
1627
  if ((e == null ? void 0 : e.inputUnit) === (e == null ? void 0 : e.outputUnit))
1628
1628
  return l;
1629
1629
  const h = te[e.outputUnit] / te[e.inputUnit];
1630
- return l * h;
1630
+ return parseFloat((l * h).toFixed(10));
1631
1631
  }, r = (l) => {
1632
1632
  if (l == null)
1633
1633
  return;
1634
1634
  if ((e == null ? void 0 : e.inputUnit) === (e == null ? void 0 : e.outputUnit))
1635
1635
  return l;
1636
1636
  const h = te[e.inputUnit] / te[e.outputUnit];
1637
- return l * h;
1637
+ return parseFloat((l * h).toFixed(10));
1638
1638
  }, t = (l) => {
1639
1639
  const h = l.split(".");
1640
1640
  return h[0] = h[0].replace(/\B(?=(\d{3})+(?!\d))/g, ","), h.join(".");
@@ -1702,10 +1702,10 @@ function Le(e, n) {
1702
1702
  function je(e, n) {
1703
1703
  switch (n.mode) {
1704
1704
  case "text":
1705
- return Ye(Le(e, n).default);
1705
+ return Oe(Le(e, n).default);
1706
1706
  case "component":
1707
1707
  default:
1708
- return Ye(ve, {
1708
+ return Oe(ve, {
1709
1709
  field: n.key,
1710
1710
  label: n.title,
1711
1711
  hideLabel: n.hideLabel,
@@ -1763,10 +1763,10 @@ const on = /* @__PURE__ */ z({
1763
1763
  const e = this.groupForms.find((n) => n.group === this.activeTab);
1764
1764
  if (this.groups.length) {
1765
1765
  let n;
1766
- return d(Yt, {
1766
+ return d(Ot, {
1767
1767
  "active-key": this.activeTab,
1768
1768
  "onUpdate:active-key": (r) => this.activeTab = r
1769
- }, un(n = this.groupForms.map((r) => d(Ft, {
1769
+ }, un(n = this.groupForms.map((r) => d(Yt, {
1770
1770
  title: r.group,
1771
1771
  key: r.group
1772
1772
  }, {
@@ -1774,7 +1774,7 @@ const on = /* @__PURE__ */ z({
1774
1774
  form: r.form,
1775
1775
  value: this.value,
1776
1776
  ref: (t) => r.instance = t
1777
- }, null), d(Fe, null, null), d("div", {
1777
+ }, null), d(Ye, null, null), d("div", {
1778
1778
  class: "flex items-center justify-between space-x-2"
1779
1779
  }, [d(I, {
1780
1780
  type: "secondary",
@@ -1798,7 +1798,7 @@ const on = /* @__PURE__ */ z({
1798
1798
  form: this.formItems,
1799
1799
  value: this.value,
1800
1800
  ref: (n) => e.instance = n
1801
- }, null), d(Fe, null, null), d("div", {
1801
+ }, null), d(Ye, null, null), d("div", {
1802
1802
  class: "flex items-center justify-between space-x-2"
1803
1803
  }, [d(I, {
1804
1804
  type: "secondary",
@@ -1890,7 +1890,7 @@ const pe = /* @__PURE__ */ z({
1890
1890
  he(Te.id, c), he(Te.source, t);
1891
1891
  const i = () => {
1892
1892
  n("submit", t.value), n("update:model-value", t.value);
1893
- }, s = O(() => e.form.filter((g) => l.value ? !g.collapsed : !0).filter((g) => {
1893
+ }, s = F(() => e.form.filter((g) => l.value ? !g.collapsed : !0).filter((g) => {
1894
1894
  switch (!0) {
1895
1895
  case typeof g.visiable == "boolean":
1896
1896
  return g.visiable;
@@ -1899,19 +1899,19 @@ const pe = /* @__PURE__ */ z({
1899
1899
  default:
1900
1900
  return !0;
1901
1901
  }
1902
- })), f = O(() => {
1902
+ })), f = F(() => {
1903
1903
  if (!u.value)
1904
1904
  return 1;
1905
- const g = s.value.reduce((b, Y) => b + ((Y == null ? void 0 : Y.span) || 1), 0);
1905
+ const g = s.value.reduce((b, O) => b + ((O == null ? void 0 : O.span) || 1), 0);
1906
1906
  return u.value - g % u.value;
1907
1907
  }), m = (g) => g != null && g.validator ? {
1908
1908
  ...g,
1909
- validator: (b, Y) => {
1910
- const F = g.validator(b, Y);
1911
- if (typeof F == "function")
1912
- return F(t.value);
1909
+ validator: (b, O) => {
1910
+ const Y = g.validator(b, O);
1911
+ if (typeof Y == "function")
1912
+ return Y(t.value);
1913
1913
  }
1914
- } : g, k = O(() => e.form.reduce((g, b) => (b.rule && (Array.isArray(b.rule) ? g[b.key] = b.rule.map(m) : g[b.key] = m(b.rule)), g), {}));
1914
+ } : g, k = F(() => e.form.reduce((g, b) => (b.rule && (Array.isArray(b.rule) ? g[b.key] = b.rule.map(m) : g[b.key] = m(b.rule)), g), {}));
1915
1915
  function y() {
1916
1916
  var b;
1917
1917
  if (e.columns)
@@ -1952,8 +1952,8 @@ const pe = /* @__PURE__ */ z({
1952
1952
  });
1953
1953
  }
1954
1954
  function H(g) {
1955
- const b = e.form.find((F) => F.key === g), Y = (typeof b.default == "function" ? b.default() : b.default) || null;
1956
- E(g, Y);
1955
+ const b = e.form.find((Y) => Y.key === g), O = (typeof b.default == "function" ? b.default() : b.default) || null;
1956
+ E(g, O);
1957
1957
  }
1958
1958
  function V() {
1959
1959
  var g;
@@ -1990,7 +1990,14 @@ const pe = /* @__PURE__ */ z({
1990
1990
  return;
1991
1991
  const r = this.form.filter((a) => {
1992
1992
  const u = this.formSource[a.key];
1993
- return u != null && u !== "";
1993
+ switch (!0) {
1994
+ case typeof u == "string":
1995
+ return u !== "";
1996
+ case Array.isArray(u):
1997
+ return u.length !== 0;
1998
+ default:
1999
+ return u != null;
2000
+ }
1994
2001
  }), t = (a) => {
1995
2002
  var l;
1996
2003
  const u = this.formItems.find((h) => h.key === a);