@unizhen/ui 0.0.16 → 0.0.18

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/lib/ui.js CHANGED
@@ -1,8 +1,8 @@
1
1
  var Bc = Object.defineProperty;
2
2
  var Fc = (e, t, r) => t in e ? Bc(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var Dt = (e, t, r) => Fc(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { defineComponent as se, createElementBlock as w, openBlock as c, createStaticVNode as L, createElementVNode as i, ref as S, watch as ce, nextTick as Pe, h as Z, reactive as Ia, resolveComponent as $, createBlock as O, withCtx as y, toDisplayString as H, createVNode as N, normalizeStyle as Se, inject as Le, computed as _t, Fragment as oe, createCommentVNode as W, normalizeClass as ue, createSlots as ze, createTextVNode as K, renderList as be, provide as ka, onMounted as Ae, resolveDirective as Ol, withDirectives as gt, mergeProps as ba, withModifiers as jt, watchEffect as Rl, onBeforeUnmount as Da, withKeys as Vc, renderSlot as $e, markRaw as Uc, defineAsyncComponent as Pc, onUnmounted as Bl, vShow as _a, resolveDynamicComponent as mo } from "vue";
5
- import { createDiscreteApi as Ec, NPopover as dt, NFlex as Fl, NButton as ye, NPopconfirm as ja, NTooltip as Vl, NIcon as ge, NDropdown as Lc, NCascader as Ul, NCheckboxGroup as za, NCheckbox as qa, NColorPicker as Hc, NSwitch as Kc, NTimePicker as Gc, NDatePicker as Wc, NInputNumber as Jc, NSelect as Pl, NInput as Qc, NDivider as Aa, NFormItem as Oa, NForm as Ra, NInputGroup as Ba, NUploadDragger as Xc, NImage as El, NUpload as Ll, useNotification as Ot, NImageGroup as Yc, NModal as Zc, NInputGroupLabel as Hl, NGridItem as Kl, NGrid as Gl, NButtonGroup as ed, NDrawerContent as Fa, NDrawer as Va, NTag as td, NEllipsis as rd, NSpin as Ua, NRadioGroup as Wl, NSkeleton as Jl, NDataTable as Pa, NPagination as nd, NRadio as ad, NTabPane as od, NTabs as sd, darkTheme as Ke, NConfigProvider as ld, dateZhCN as id, zhCN as ud } from "naive-ui";
4
+ import { defineComponent as oe, createElementBlock as w, openBlock as c, createStaticVNode as L, createElementVNode as i, ref as T, watch as ce, nextTick as Pe, h as Z, reactive as Ia, resolveComponent as $, createBlock as R, withCtx as y, toDisplayString as H, createVNode as N, normalizeStyle as Se, inject as Le, computed as _t, normalizeClass as ue, createSlots as ze, createTextVNode as K, Fragment as le, renderList as _e, provide as ka, onMounted as Ae, resolveDirective as Ol, withDirectives as gt, createCommentVNode as W, mergeProps as ba, withModifiers as jt, watchEffect as Rl, onBeforeUnmount as Da, withKeys as Vc, renderSlot as $e, markRaw as Uc, defineAsyncComponent as Pc, onUnmounted as Bl, vShow as _a, resolveDynamicComponent as mo } from "vue";
5
+ import { createDiscreteApi as Ec, NPopover as dt, NFlex as Fl, NButton as ke, NPopconfirm as ja, NTooltip as Vl, NIcon as ye, NDropdown as Lc, NCascader as Ul, NCheckboxGroup as za, NCheckbox as qa, NColorPicker as Hc, NSwitch as Kc, NTimePicker as Gc, NDatePicker as Wc, NInputNumber as Jc, NSelect as Pl, NInput as Qc, NDivider as Aa, NFormItem as Oa, NForm as Ra, NInputGroup as Ba, NUploadDragger as Xc, NImage as El, NUpload as Ll, useNotification as Ot, NImageGroup as Yc, NModal as Zc, NInputGroupLabel as Hl, NGridItem as Kl, NGrid as Gl, NButtonGroup as ed, NDrawerContent as Fa, NDrawer as Va, NTag as td, NEllipsis as rd, NSpin as Ua, NRadioGroup as Wl, NSkeleton as Jl, NDataTable as Pa, NPagination as nd, NRadio as ad, NTabPane as od, NTabs as sd, darkTheme as Ke, NConfigProvider as ld, dateZhCN as id, zhCN as ud } from "naive-ui";
6
6
  import Ea from "axios";
7
7
  import { createRouter as cd, createWebHistory as dd, useRouter as fd, useRoute as Rt } from "vue-router";
8
8
  import { createI18n as pd, useI18n as Bt } from "vue-i18n";
@@ -13,7 +13,7 @@ import hd from "jsqr";
13
13
  import wd from "vue-clipboard3";
14
14
  import { createWorker as md } from "tesseract.js";
15
15
  import vd from "sortablejs";
16
- const gd = se({
16
+ const gd = oe({
17
17
  name: "UzActionButton",
18
18
  props: {
19
19
  data: {
@@ -2311,7 +2311,7 @@ const ec = /* @__PURE__ */ _(vm, [["render", ym]]), tc = /* @__PURE__ */ Object.
2311
2311
  UserPlus: Pu,
2312
2312
  Users: Eu,
2313
2313
  X: Ja
2314
- }, Symbol.toStringTag, { value: "Module" })), Qa = se({
2314
+ }, Symbol.toStringTag, { value: "Module" })), Qa = oe({
2315
2315
  name: "UzIcon",
2316
2316
  props: {
2317
2317
  icon: {
@@ -2321,7 +2321,7 @@ const ec = /* @__PURE__ */ _(vm, [["render", ym]]), tc = /* @__PURE__ */ Object.
2321
2321
  }
2322
2322
  },
2323
2323
  setup(e) {
2324
- const t = S(!0), r = S(), n = (a) => {
2324
+ const t = T(!0), r = T(), n = (a) => {
2325
2325
  if (t.value = !1, a && typeof a == "string") {
2326
2326
  r.value = tc[a], Pe(() => {
2327
2327
  t.value = !0;
@@ -2613,7 +2613,7 @@ const Sm = {
2613
2613
  "zh-CN": { ...Sm },
2614
2614
  "fr-FR": {}
2615
2615
  }
2616
- }), Ee = Nm, we = Ia({
2616
+ }), Ee = Nm, ve = Ia({
2617
2617
  needUpdate: !1,
2618
2618
  theme: !1,
2619
2619
  isMobile: !1,
@@ -2621,11 +2621,11 @@ const Sm = {
2621
2621
  lang: "zh-CN"
2622
2622
  });
2623
2623
  function Im(e) {
2624
- we.language = e;
2624
+ ve.language = e;
2625
2625
  }
2626
2626
  function rc(e) {
2627
2627
  let t;
2628
- e ? t = e : we.lang === "zh-CN" ? t = "en-US" : t = "zh-CN", Te("lang", t, 0), we.lang = t;
2628
+ e ? t = e : ve.lang === "zh-CN" ? t = "en-US" : t = "zh-CN", Te("lang", t, 0), ve.lang = t;
2629
2629
  const r = document.body;
2630
2630
  r.dataset.lang = t, Ee.global.locale.value = t;
2631
2631
  }
@@ -2633,15 +2633,15 @@ function nc(e) {
2633
2633
  const t = document.body;
2634
2634
  t.classList.add("remove-all-transition");
2635
2635
  const r = document.querySelector("meta[name=theme-color]");
2636
- e ? t.dataset.theme = "dark" : t.dataset.theme = "", r && (e ? r.setAttribute("content", "#2b2b2d") : r.setAttribute("content", "#ffffff")), we.theme = e, setTimeout(() => {
2636
+ e ? t.dataset.theme = "dark" : t.dataset.theme = "", r && (e ? r.setAttribute("content", "#2b2b2d") : r.setAttribute("content", "#ffffff")), ve.theme = e, setTimeout(() => {
2637
2637
  t.classList.remove("remove-all-transition");
2638
2638
  }, 0);
2639
2639
  }
2640
2640
  function Dm(e) {
2641
- we.needUpdate = e;
2641
+ ve.needUpdate = e;
2642
2642
  }
2643
2643
  const ac = () => {
2644
- we.isMobile = window.screen.availWidth < 769;
2644
+ ve.isMobile = window.screen.availWidth < 769;
2645
2645
  };
2646
2646
  window.addEventListener("resize", ac);
2647
2647
  ac();
@@ -2679,7 +2679,7 @@ let Ca = Ea.CancelToken.source();
2679
2679
  Ge.interceptors.request.use(
2680
2680
  (e) => {
2681
2681
  var r, n;
2682
- e.cancelToken = Ca.token, e.headers.Language = we.lang;
2682
+ e.cancelToken = Ca.token, e.headers.Language = ve.lang;
2683
2683
  const t = qe(
2684
2684
  "token",
2685
2685
  !1
@@ -2833,7 +2833,7 @@ const Lt = "/apiserver/", ko = () => {
2833
2833
  e.onClick && typeof e.onClick == "function" && (o.onClick = e.onClick.bind(void 0, t, r, n));
2834
2834
  }
2835
2835
  return e.icon && (s.icon = () => Z(
2836
- ge,
2836
+ ye,
2837
2837
  {},
2838
2838
  {
2839
2839
  default: () => Z(
@@ -2846,7 +2846,7 @@ const Lt = "/apiserver/", ko = () => {
2846
2846
  }
2847
2847
  )
2848
2848
  }
2849
- )), Z(ye, o, s);
2849
+ )), Z(ke, o, s);
2850
2850
  }, Bm = (e, t, r, n, a) => {
2851
2851
  const o = {
2852
2852
  placement: "left"
@@ -3067,12 +3067,12 @@ const Lt = "/apiserver/", ko = () => {
3067
3067
  children: r.c.map((n) => xo(n))
3068
3068
  });
3069
3069
  return t;
3070
- }, Pm = se({
3070
+ }, Pm = oe({
3071
3071
  name: "UzBack",
3072
3072
  components: {
3073
3073
  ArrowNarrowLeft: La,
3074
- NButton: ye,
3075
- NIcon: ge
3074
+ NButton: ke,
3075
+ NIcon: ye
3076
3076
  },
3077
3077
  props: {
3078
3078
  to: {
@@ -3091,7 +3091,7 @@ const Lt = "/apiserver/", ko = () => {
3091
3091
  });
3092
3092
  function Em(e, t, r, n, a, o) {
3093
3093
  const s = $("ArrowNarrowLeft"), u = $("NIcon"), p = $("NButton");
3094
- return c(), O(p, {
3094
+ return c(), R(p, {
3095
3095
  quaternary: "",
3096
3096
  onClick: e.back
3097
3097
  }, {
@@ -3109,7 +3109,7 @@ function Em(e, t, r, n, a, o) {
3109
3109
  _: 1
3110
3110
  }, 8, ["onClick"]);
3111
3111
  }
3112
- const Lm = /* @__PURE__ */ _(Pm, [["render", Em]]), Hm = se({
3112
+ const Lm = /* @__PURE__ */ _(Pm, [["render", Em]]), Hm = oe({
3113
3113
  name: "UzCircle",
3114
3114
  components: {
3115
3115
  NPopover: dt
@@ -3139,7 +3139,7 @@ const Lm = /* @__PURE__ */ _(Pm, [["render", Em]]), Hm = se({
3139
3139
  },
3140
3140
  setup(e) {
3141
3141
  return {
3142
- popover: S({
3142
+ popover: T({
3143
3143
  show: !1,
3144
3144
  text: "",
3145
3145
  x: 0,
@@ -3867,12 +3867,12 @@ var hn, Ts;
3867
3867
  function Ov() {
3868
3868
  if (Ts) return hn;
3869
3869
  Ts = 1;
3870
- var e = Mt(), t = gc(), r = pt(), n = "[object Arguments]", a = "[object Array]", o = "[object Boolean]", s = "[object Date]", u = "[object Error]", p = "[object Function]", h = "[object Map]", b = "[object Number]", D = "[object Object]", g = "[object RegExp]", d = "[object Set]", k = "[object String]", l = "[object WeakMap]", v = "[object ArrayBuffer]", m = "[object DataView]", f = "[object Float32Array]", x = "[object Float64Array]", I = "[object Int8Array]", V = "[object Int16Array]", U = "[object Int32Array]", F = "[object Uint8Array]", z = "[object Uint8ClampedArray]", j = "[object Uint16Array]", C = "[object Uint32Array]", T = {};
3871
- T[f] = T[x] = T[I] = T[V] = T[U] = T[F] = T[z] = T[j] = T[C] = !0, T[n] = T[a] = T[v] = T[o] = T[m] = T[s] = T[u] = T[p] = T[h] = T[b] = T[D] = T[g] = T[d] = T[k] = T[l] = !1;
3872
- function R(A) {
3873
- return r(A) && t(A.length) && !!T[e(A)];
3870
+ var e = Mt(), t = gc(), r = pt(), n = "[object Arguments]", a = "[object Array]", o = "[object Boolean]", s = "[object Date]", u = "[object Error]", p = "[object Function]", h = "[object Map]", b = "[object Number]", D = "[object Object]", g = "[object RegExp]", d = "[object Set]", k = "[object String]", l = "[object WeakMap]", v = "[object ArrayBuffer]", m = "[object DataView]", f = "[object Float32Array]", x = "[object Float64Array]", I = "[object Int8Array]", V = "[object Int16Array]", U = "[object Int32Array]", F = "[object Uint8Array]", z = "[object Uint8ClampedArray]", j = "[object Uint16Array]", C = "[object Uint32Array]", S = {};
3871
+ S[f] = S[x] = S[I] = S[V] = S[U] = S[F] = S[z] = S[j] = S[C] = !0, S[n] = S[a] = S[v] = S[o] = S[m] = S[s] = S[u] = S[p] = S[h] = S[b] = S[D] = S[g] = S[d] = S[k] = S[l] = !1;
3872
+ function O(A) {
3873
+ return r(A) && t(A.length) && !!S[e(A)];
3874
3874
  }
3875
- return hn = R, hn;
3875
+ return hn = O, hn;
3876
3876
  }
3877
3877
  var wn, Ns;
3878
3878
  function no() {
@@ -4314,16 +4314,16 @@ function lg() {
4314
4314
  if (wl) return Zn;
4315
4315
  wl = 1;
4316
4316
  var e = co(), t = ng(), r = ag(), n = og(), a = sg(), o = "[object Boolean]", s = "[object Date]", u = "[object Map]", p = "[object Number]", h = "[object RegExp]", b = "[object Set]", D = "[object String]", g = "[object Symbol]", d = "[object ArrayBuffer]", k = "[object DataView]", l = "[object Float32Array]", v = "[object Float64Array]", m = "[object Int8Array]", f = "[object Int16Array]", x = "[object Int32Array]", I = "[object Uint8Array]", V = "[object Uint8ClampedArray]", U = "[object Uint16Array]", F = "[object Uint32Array]";
4317
- function z(j, C, T) {
4318
- var R = j.constructor;
4317
+ function z(j, C, S) {
4318
+ var O = j.constructor;
4319
4319
  switch (C) {
4320
4320
  case d:
4321
4321
  return e(j);
4322
4322
  case o:
4323
4323
  case s:
4324
- return new R(+j);
4324
+ return new O(+j);
4325
4325
  case k:
4326
- return t(j, T);
4326
+ return t(j, S);
4327
4327
  case l:
4328
4328
  case v:
4329
4329
  case m:
@@ -4333,16 +4333,16 @@ function lg() {
4333
4333
  case V:
4334
4334
  case U:
4335
4335
  case F:
4336
- return a(j, T);
4336
+ return a(j, S);
4337
4337
  case u:
4338
- return new R();
4338
+ return new O();
4339
4339
  case p:
4340
4340
  case D:
4341
- return new R(j);
4341
+ return new O(j);
4342
4342
  case h:
4343
4343
  return r(j);
4344
4344
  case b:
4345
- return new R();
4345
+ return new O();
4346
4346
  case g:
4347
4347
  return n(j);
4348
4348
  }
@@ -4416,11 +4416,11 @@ var sa, _l;
4416
4416
  function hg() {
4417
4417
  if (_l) return sa;
4418
4418
  _l = 1;
4419
- var e = Tv(), t = Nv(), r = mc(), n = Vv(), a = Ev(), o = Lv(), s = Hv(), u = Gv(), p = Wv(), h = Jv(), b = Qv(), D = uo(), g = tg(), d = lg(), k = ug(), l = ro(), v = vc(), m = dg(), f = We(), x = pg(), I = so(), V = lo(), U = 1, F = 2, z = 4, j = "[object Arguments]", C = "[object Array]", T = "[object Boolean]", R = "[object Date]", A = "[object Error]", q = "[object Function]", P = "[object GeneratorFunction]", J = "[object Map]", ie = "[object Number]", le = "[object Object]", de = "[object RegExp]", Oe = "[object Set]", Me = "[object String]", me = "[object Symbol]", nt = "[object WeakMap]", St = "[object ArrayBuffer]", Tt = "[object DataView]", Yt = "[object Float32Array]", Zt = "[object Float64Array]", er = "[object Int8Array]", tr = "[object Int16Array]", Je = "[object Int32Array]", rr = "[object Uint8Array]", ve = "[object Uint8ClampedArray]", nr = "[object Uint16Array]", ar = "[object Uint32Array]", re = {};
4420
- re[j] = re[C] = re[St] = re[Tt] = re[T] = re[R] = re[Yt] = re[Zt] = re[er] = re[tr] = re[Je] = re[J] = re[ie] = re[le] = re[de] = re[Oe] = re[Me] = re[me] = re[rr] = re[ve] = re[nr] = re[ar] = !0, re[A] = re[q] = re[nt] = !1;
4421
- function at(ee, Re, Be, or, ot, ke) {
4419
+ var e = Tv(), t = Nv(), r = mc(), n = Vv(), a = Ev(), o = Lv(), s = Hv(), u = Gv(), p = Wv(), h = Jv(), b = Qv(), D = uo(), g = tg(), d = lg(), k = ug(), l = ro(), v = vc(), m = dg(), f = We(), x = pg(), I = so(), V = lo(), U = 1, F = 2, z = 4, j = "[object Arguments]", C = "[object Array]", S = "[object Boolean]", O = "[object Date]", A = "[object Error]", q = "[object Function]", P = "[object GeneratorFunction]", J = "[object Map]", ie = "[object Number]", se = "[object Object]", de = "[object RegExp]", Oe = "[object Set]", Me = "[object String]", we = "[object Symbol]", nt = "[object WeakMap]", St = "[object ArrayBuffer]", Tt = "[object DataView]", Yt = "[object Float32Array]", Zt = "[object Float64Array]", er = "[object Int8Array]", tr = "[object Int16Array]", Je = "[object Int32Array]", rr = "[object Uint8Array]", me = "[object Uint8ClampedArray]", nr = "[object Uint16Array]", ar = "[object Uint32Array]", re = {};
4420
+ re[j] = re[C] = re[St] = re[Tt] = re[S] = re[O] = re[Yt] = re[Zt] = re[er] = re[tr] = re[Je] = re[J] = re[ie] = re[se] = re[de] = re[Oe] = re[Me] = re[we] = re[rr] = re[me] = re[nr] = re[ar] = !0, re[A] = re[q] = re[nt] = !1;
4421
+ function at(ee, Re, Be, or, ot, be) {
4422
4422
  var fe, Fe = Re & U, Qe = Re & F, Nt = Re & z;
4423
- if (Be && (fe = ot ? Be(ee, or, ot, ke) : Be(ee)), fe !== void 0)
4423
+ if (Be && (fe = ot ? Be(ee, or, ot, be) : Be(ee)), fe !== void 0)
4424
4424
  return fe;
4425
4425
  if (!f(ee))
4426
4426
  return ee;
@@ -4432,7 +4432,7 @@ function hg() {
4432
4432
  var Ve = D(ee), lt = Ve == q || Ve == P;
4433
4433
  if (v(ee))
4434
4434
  return o(ee, Fe);
4435
- if (Ve == le || Ve == j || lt && !ot) {
4435
+ if (Ve == se || Ve == j || lt && !ot) {
4436
4436
  if (fe = Qe || lt ? {} : k(ee), !Fe)
4437
4437
  return Qe ? p(ee, a(fe, ee)) : u(ee, n(fe, ee));
4438
4438
  } else {
@@ -4441,18 +4441,18 @@ function hg() {
4441
4441
  fe = d(ee, Ve, Fe);
4442
4442
  }
4443
4443
  }
4444
- ke || (ke = new e());
4445
- var Xe = ke.get(ee);
4444
+ be || (be = new e());
4445
+ var Xe = be.get(ee);
4446
4446
  if (Xe)
4447
4447
  return Xe;
4448
- ke.set(ee, fe), x(ee) ? ee.forEach(function(Ie) {
4449
- fe.add(at(Ie, Re, Be, Ie, ee, ke));
4450
- }) : m(ee) && ee.forEach(function(Ie, _e) {
4451
- fe.set(_e, at(Ie, Re, Be, _e, ee, ke));
4448
+ be.set(ee, fe), x(ee) ? ee.forEach(function(Ie) {
4449
+ fe.add(at(Ie, Re, Be, Ie, ee, be));
4450
+ }) : m(ee) && ee.forEach(function(Ie, xe) {
4451
+ fe.set(xe, at(Ie, Re, Be, xe, ee, be));
4452
4452
  });
4453
4453
  var sr = Nt ? Qe ? b : h : Qe ? V : I, It = st ? void 0 : sr(ee);
4454
- return t(It || ee, function(Ie, _e) {
4455
- It && (_e = Ie, Ie = ee[_e]), r(fe, _e, at(Ie, Re, Be, _e, ee, ke));
4454
+ return t(It || ee, function(Ie, xe) {
4455
+ It && (xe = Ie, Ie = ee[xe]), r(fe, xe, at(Ie, Re, Be, xe, ee, be));
4456
4456
  }), fe;
4457
4457
  }
4458
4458
  return sa = at, sa;
@@ -4468,10 +4468,10 @@ function wg() {
4468
4468
  return la = n, la;
4469
4469
  }
4470
4470
  var mg = wg();
4471
- const X = /* @__PURE__ */ Za(mg), vg = se({
4471
+ const X = /* @__PURE__ */ Za(mg), vg = oe({
4472
4472
  name: "UzFormItem",
4473
4473
  components: {
4474
- NIcon: ge,
4474
+ NIcon: ye,
4475
4475
  NInput: Qc,
4476
4476
  NSelect: Pl,
4477
4477
  NInputNumber: Jc,
@@ -4515,9 +4515,9 @@ const X = /* @__PURE__ */ Za(mg), vg = se({
4515
4515
  }
4516
4516
  },
4517
4517
  setup(e) {
4518
- const t = Le("mainFormValue"), r = S(!1), n = S([]);
4518
+ const t = Le("mainFormValue"), r = T(!1), n = T([]);
4519
4519
  return {
4520
- isMobile: _t(() => we.isMobile),
4520
+ isMobile: _t(() => ve.isMobile),
4521
4521
  showDropdown: r,
4522
4522
  dropdownOptions: n,
4523
4523
  updateValue: async (l, v, m) => {
@@ -4642,323 +4642,320 @@ const X = /* @__PURE__ */ Za(mg), vg = se({
4642
4642
  }), gg = { class: "flex flex-wrap gap-2" };
4643
4643
  function yg(e, t, r, n, a, o) {
4644
4644
  const s = $("NInput"), u = $("NDropdown"), p = $("NInputNumber"), h = $("NDatePicker"), b = $("NSelect"), D = $("NCascader"), g = $("NColorPicker"), d = $("NCheckbox"), k = $("NCheckboxGroup"), l = $("NTimePicker"), v = $("NSwitch"), m = $("UzFormItemUpload");
4645
- return c(), w(oe, null, [
4646
- e.item.input === "input" ? (c(), O(s, {
4647
- key: 0,
4648
- value: e.formValue[e.item.key],
4649
- "onUpdate:value": [
4650
- t[0] || (t[0] = (f) => e.formValue[e.item.key] = f),
4651
- t[1] || (t[1] = (f) => {
4652
- e.formValue[e.item.key] = f.trim(), e.updateValue(e.item, f.trim());
4653
- })
4654
- ],
4655
- "show-password-on": "click",
4656
- type: e.item.params.type,
4657
- placeholder: e.showPlaceholder(e.item),
4658
- disabled: e.checkDisabled(),
4659
- readonly: e.checkReadonly(),
4660
- clearable: e.checkClearable(),
4661
- minlength: e.item.params.minlength,
4662
- maxlength: e.item.params.maxlength,
4663
- rows: e.item.params.rows,
4664
- "show-count": !!e.item.params.maxlength,
4665
- class: ue(e.checkClassReadonly())
4666
- }, ze({ _: 2 }, [
4667
- e.item.params.prefix ? {
4668
- name: "prefix",
4669
- fn: y(() => [
4670
- K(H(e.item.params.prefix), 1)
4671
- ]),
4672
- key: "0"
4673
- } : void 0,
4674
- e.item.params.suffix ? {
4675
- name: "suffix",
4676
- fn: y(() => [
4677
- K(H(e.item.params.suffix), 1)
4678
- ]),
4679
- key: "1"
4680
- } : void 0
4681
- ]), 1032, ["value", "type", "placeholder", "disabled", "readonly", "clearable", "minlength", "maxlength", "rows", "show-count", "class"])) : e.item.input === "filling" ? (c(), O(s, {
4682
- key: 1,
4683
- value: String(e.formValue[e.item.key] ?? ""),
4684
- placeholder: e.showPlaceholder(e.item),
4685
- class: "uz-input-readonly",
4686
- readonly: ""
4687
- }, null, 8, ["value", "placeholder"])) : W("", !0),
4688
- e.item.input === "auto" ? (c(), O(u, {
4689
- key: 2,
4690
- width: "trigger",
4691
- show: e.showDropdown,
4692
- options: e.dropdownOptions,
4693
- "render-label": e.renderDropdown,
4694
- placement: "bottom-start",
4695
- class: "uz-form-item-dropdown",
4696
- onClickoutside: t[4] || (t[4] = () => {
4697
- e.showDropdown = !1;
4645
+ return e.item.input === "input" ? (c(), R(s, {
4646
+ key: 0,
4647
+ value: e.formValue[e.item.key],
4648
+ "onUpdate:value": [
4649
+ t[0] || (t[0] = (f) => e.formValue[e.item.key] = f),
4650
+ t[1] || (t[1] = (f) => {
4651
+ e.formValue[e.item.key] = f.trim(), e.updateValue(e.item, f.trim());
4698
4652
  })
4699
- }, {
4700
- default: y(() => [
4701
- N(s, {
4702
- value: e.formValue[e.item.key],
4703
- "onUpdate:value": [
4704
- t[2] || (t[2] = (f) => e.formValue[e.item.key] = f),
4705
- t[3] || (t[3] = (f) => {
4706
- e.formValue[e.item.key] = f.trim(), e.updateValue(e.item, f.trim()), e.handleFocus(e.item.key);
4707
- })
4708
- ],
4709
- "show-password-on": "click",
4710
- type: e.item.params.type,
4711
- placeholder: e.showPlaceholder(e.item),
4712
- disabled: e.checkDisabled(),
4713
- readonly: e.checkReadonly(),
4714
- clearable: e.checkClearable(),
4715
- minlength: e.item.params.minlength,
4716
- maxlength: e.item.params.maxlength,
4717
- rows: e.item.params.rows,
4718
- "show-count": !!e.item.params.maxlength,
4719
- class: ue(e.checkClassReadonly())
4720
- }, ze({ _: 2 }, [
4721
- e.item.params.prefix ? {
4722
- name: "prefix",
4723
- fn: y(() => [
4724
- K(H(e.item.params.prefix), 1)
4725
- ]),
4726
- key: "0"
4727
- } : void 0,
4728
- e.item.params.suffix ? {
4729
- name: "suffix",
4730
- fn: y(() => [
4731
- K(H(e.item.params.suffix), 1)
4732
- ]),
4733
- key: "1"
4734
- } : void 0
4735
- ]), 1032, ["value", "type", "placeholder", "disabled", "readonly", "clearable", "minlength", "maxlength", "rows", "show-count", "class"])
4653
+ ],
4654
+ "show-password-on": "click",
4655
+ type: e.item.params.type,
4656
+ placeholder: e.showPlaceholder(e.item),
4657
+ disabled: e.checkDisabled(),
4658
+ readonly: e.checkReadonly(),
4659
+ clearable: e.checkClearable(),
4660
+ minlength: e.item.params.minlength,
4661
+ maxlength: e.item.params.maxlength,
4662
+ rows: e.item.params.rows,
4663
+ "show-count": !!e.item.params.maxlength,
4664
+ class: ue(e.checkClassReadonly())
4665
+ }, ze({ _: 2 }, [
4666
+ e.item.params.prefix ? {
4667
+ name: "prefix",
4668
+ fn: y(() => [
4669
+ K(H(e.item.params.prefix), 1)
4736
4670
  ]),
4737
- _: 1
4738
- }, 8, ["show", "options", "render-label"])) : e.item.input === "number" ? (c(), O(p, {
4739
- key: 3,
4740
- value: e.formValue[e.item.key],
4741
- "onUpdate:value": [
4742
- t[5] || (t[5] = (f) => e.formValue[e.item.key] = f),
4743
- t[6] || (t[6] = (f) => {
4744
- e.formValue[e.item.key] = f, e.updateValue(e.item, f);
4745
- })
4746
- ],
4747
- placeholder: e.showPlaceholder(e.item),
4748
- disabled: e.checkDisabled(),
4749
- readonly: e.checkReadonly(),
4750
- clearable: e.checkClearable(),
4751
- min: e.item.params.minKey ? Number(e.formValue[e.item.params.minKey]) : e.item.params.min,
4752
- max: e.item.params.maxKey ? Number(e.formValue[e.item.params.maxKey]) : e.item.params.max,
4753
- step: e.item.params.step,
4754
- showButton: e.item.params.showButton,
4755
- precision: e.item.params.precision,
4756
- class: ue(e.checkClassReadonly())
4757
- }, ze({ _: 2 }, [
4758
- e.item.params.prefix ? {
4759
- name: "prefix",
4760
- fn: y(() => [
4761
- K(H(e.item.params.prefix), 1)
4762
- ]),
4763
- key: "0"
4764
- } : void 0,
4765
- e.item.params.suffix ? {
4766
- name: "suffix",
4767
- fn: y(() => [
4768
- K(H(e.item.params.suffix), 1)
4769
- ]),
4770
- key: "1"
4771
- } : void 0
4772
- ]), 1032, ["value", "placeholder", "disabled", "readonly", "clearable", "min", "max", "step", "showButton", "precision", "class"])) : e.item.input === "date" && !e.item.params.format ? (c(), O(h, {
4773
- key: 4,
4774
- value: e.formValue[e.item.key],
4775
- "onUpdate:value": [
4776
- t[7] || (t[7] = (f) => e.formValue[e.item.key] = f),
4777
- t[8] || (t[8] = (f, x) => {
4778
- e.formValue[e.item.key] = f, x && (e.item.params.type.indexOf("range") > -1 ? (e.formValue[`${e.item.key}StartStr`] = x[0], e.formValue[`${e.item.key}EndStr`] = x[1]) : e.formValue[`${e.item.key}Str`] = x), e.updateValue(e.item, f);
4779
- })
4780
- ],
4781
- type: e.item.params.type,
4782
- placeholder: e.showPlaceholder(e.item),
4783
- disabled: e.checkDisabled(),
4784
- show: e.checkReadonlyShow(),
4785
- clearable: e.checkClearable(),
4786
- "time-picker-props": e.item.params.timePickerProps,
4787
- "input-readonly": !0,
4788
- "is-date-disabled": (f, x) => {
4789
- const I = e.item;
4790
- return I.params.isDateDisabled ? I.params.isDateDisabled(f, x) : !1;
4791
- },
4792
- "close-on-select": !0,
4793
- class: ue(e.checkClassReadonly())
4794
- }, null, 8, ["value", "type", "placeholder", "disabled", "show", "clearable", "time-picker-props", "is-date-disabled", "class"])) : e.item.input === "date" && e.item.params.format ? (c(), O(h, {
4795
- key: 5,
4796
- "formatted-value": e.formValue[e.item.key],
4797
- "onUpdate:formattedValue": [
4798
- t[9] || (t[9] = (f) => e.formValue[e.item.key] = f),
4799
- t[10] || (t[10] = (f) => {
4800
- e.formValue[e.item.key] = f, e.item.params.type.indexOf("range") > -1 ? (e.formValue[`${e.item.key}StartStr`] = f[0], e.formValue[`${e.item.key}EndStr`] = f[1]) : e.formValue[`${e.item.key}Str`] = f, e.updateValue(e.item, f);
4801
- })
4802
- ],
4803
- type: e.item.params.type,
4804
- placeholder: e.showPlaceholder(e.item),
4805
- disabled: e.checkDisabled(),
4806
- show: e.checkReadonlyShow(),
4807
- clearable: e.checkClearable(),
4808
- "input-readonly": !0,
4809
- format: e.item.params.format,
4810
- "time-picker-props": e.item.params.timePickerProps,
4811
- "is-date-disabled": (f, x) => {
4812
- const I = e.item;
4813
- return I.params.isDateDisabled ? I.params.isDateDisabled(f, x) : !1;
4814
- },
4815
- "close-on-select": !0,
4816
- class: ue(e.checkClassReadonly())
4817
- }, null, 8, ["formatted-value", "type", "placeholder", "disabled", "show", "clearable", "format", "time-picker-props", "is-date-disabled", "class"])) : e.item.input === "select" ? (c(), O(b, {
4818
- key: 6,
4819
- value: e.formValue[e.item.key],
4820
- "onUpdate:value": [
4821
- t[11] || (t[11] = (f) => e.formValue[e.item.key] = f),
4822
- t[12] || (t[12] = (f, x) => {
4823
- e.formValue[e.item.key] = f, e.item.params.multiple ? e.formValue[`${e.item.key}Str`] = x.map((I) => I.label).join(",") : e.formValue[`${e.item.key}Str`] = x.label, e.updateValue(e.item, f, x);
4824
- })
4825
- ],
4826
- placeholder: e.showPlaceholder(e.item),
4827
- options: e.item.params.options,
4828
- "consistent-menu-width": !1,
4829
- disabled: e.checkDisabled(),
4830
- show: e.checkReadonlyShow(),
4831
- clearable: e.checkClearable(),
4832
- filterable: e.isMobile ? !1 : e.item.params.filterable,
4833
- tag: e.item.params.tag,
4834
- multiple: e.item.params.multiple,
4835
- "fallback-option": e.selectFallback,
4836
- maxTagCount: "responsive",
4837
- "render-label": e.item.params.renderLabel,
4838
- "render-tag": e.item.params.renderTag,
4839
- "on-create": e.item.params.tag ? (f) => ({
4840
- label: f,
4841
- value: `op${Date.now()}-#create#-${f}`
4842
- }) : void 0,
4843
- class: ue(e.checkClassReadonly())
4844
- }, null, 8, ["value", "placeholder", "options", "disabled", "show", "clearable", "filterable", "tag", "multiple", "fallback-option", "render-label", "render-tag", "on-create", "class"])) : e.item.input === "cascader" ? (c(), O(D, {
4845
- key: 7,
4846
- value: e.formValue[e.item.key],
4847
- "onUpdate:value": [
4848
- t[13] || (t[13] = (f) => e.formValue[e.item.key] = f),
4849
- t[14] || (t[14] = (f, x, I) => {
4850
- const V = e.item;
4851
- let U = f, F = f;
4852
- if (V.params.multiple) {
4853
- let z = f.filter((j) => j);
4854
- z.length === 0 ? (U = [], F = []) : (U = z, F = z);
4855
- }
4856
- e.formValue[e.item.key] = U, I && (e.formValue[`${e.item.key}Str`] = I.map((z) => z.label).join("/")), e.updateValue(e.item, F);
4857
- })
4858
- ],
4859
- placeholder: e.showPlaceholder(e.item),
4860
- options: e.item.params.options,
4861
- disabled: e.checkDisabled(),
4862
- show: e.checkReadonlyShow(),
4863
- clearable: e.checkClearable(),
4864
- filterable: e.item.params.filterable,
4865
- multiple: e.item.params.multiple,
4866
- class: ue(e.checkClassReadonly()),
4867
- "check-strategy": "all",
4868
- maxTagCount: "responsive"
4869
- }, null, 8, ["value", "placeholder", "options", "disabled", "show", "clearable", "filterable", "multiple", "class"])) : e.item.input === "color" ? (c(), O(g, {
4870
- key: 8,
4871
- value: e.formValue[e.item.key],
4872
- "onUpdate:value": t[15] || (t[15] = (f) => e.formValue[e.item.key] = f),
4873
- disabled: e.checkDisabled(),
4874
- show: e.checkReadonlyShow(),
4875
- "show-alpha": !0,
4876
- "show-preview": !0,
4877
- swatches: [
4878
- "#FFFFFF",
4879
- "#18A058",
4880
- "#2080F0",
4881
- "#F0A020",
4882
- "rgba(208, 48, 80, 1)"
4883
- ],
4884
- class: ue(e.checkClassReadonly())
4885
- }, null, 8, ["value", "disabled", "show", "class"])) : e.item.input === "checkbox" ? (c(), O(k, {
4886
- key: 9,
4887
- value: e.formValue[e.item.key],
4888
- "onUpdate:value": t[16] || (t[16] = (f) => e.formValue[e.item.key] = f),
4889
- disabled: e.checkDisabled()
4890
- }, {
4891
- default: y(() => [
4892
- i("div", gg, [
4893
- (c(!0), w(oe, null, be(e.item.params.options, (f) => (c(), O(d, {
4894
- key: f.value,
4895
- label: f.label,
4896
- value: f.value
4897
- }, null, 8, ["label", "value"]))), 128))
4898
- ])
4671
+ key: "0"
4672
+ } : void 0,
4673
+ e.item.params.suffix ? {
4674
+ name: "suffix",
4675
+ fn: y(() => [
4676
+ K(H(e.item.params.suffix), 1)
4899
4677
  ]),
4900
- _: 1
4901
- }, 8, ["value", "disabled"])) : e.item.input === "time" ? (c(), O(l, {
4902
- key: 10,
4903
- value: e.formValue[e.item.key],
4904
- "onUpdate:value": [
4905
- t[17] || (t[17] = (f) => e.formValue[e.item.key] = f),
4906
- t[18] || (t[18] = (f) => {
4907
- e.formValue[e.item.key] = f, e.updateValue(e.item, f);
4908
- })
4909
- ],
4910
- placeholder: e.showPlaceholder(e.item),
4911
- format: e.item.params.format,
4912
- "input-readonly": !0,
4913
- disabled: e.checkDisabled(),
4914
- show: e.checkReadonlyShow(),
4915
- clearable: e.checkClearable(),
4916
- class: ue(e.checkClassReadonly())
4917
- }, null, 8, ["value", "placeholder", "format", "disabled", "show", "clearable", "class"])) : e.item.input === "switch" ? (c(), O(v, {
4918
- key: 11,
4919
- "checked-value": 1,
4920
- "unchecked-value": 0,
4921
- value: e.formValue[e.item.key],
4922
- "onUpdate:value": [
4923
- t[19] || (t[19] = (f) => e.formValue[e.item.key] = f),
4924
- t[20] || (t[20] = (f) => {
4925
- e.formValue[e.item.key] = f, e.updateValue(e.item, f);
4926
- })
4927
- ],
4928
- disabled: e.checkDisabled(),
4929
- size: "large"
4930
- }, ze({ _: 2 }, [
4931
- e.item.params.checked ? {
4932
- name: "checked",
4933
- fn: y(() => [
4934
- K(H(e.item.params.checked), 1)
4935
- ]),
4936
- key: "0"
4937
- } : void 0,
4938
- e.item.params.unchecked ? {
4939
- name: "unchecked",
4940
- fn: y(() => [
4941
- K(H(e.item.params.unchecked), 1)
4942
- ]),
4943
- key: "1"
4944
- } : void 0
4945
- ]), 1032, ["value", "disabled"])) : e.item.input === "upload" ? (c(), O(m, {
4946
- key: 12,
4947
- value: e.formValue[e.item.key],
4948
- "onUpdate:value": t[21] || (t[21] = (f) => e.formValue[e.item.key] = f),
4949
- item: e.item,
4950
- status: e.status
4951
- }, null, 8, ["value", "item", "status"])) : (c(), w(oe, { key: 13 }, [], 64))
4952
- ], 64);
4953
- }
4954
- const ht = /* @__PURE__ */ _(vg, [["render", yg]]), kg = se({
4678
+ key: "1"
4679
+ } : void 0
4680
+ ]), 1032, ["value", "type", "placeholder", "disabled", "readonly", "clearable", "minlength", "maxlength", "rows", "show-count", "class"])) : e.item.input === "filling" ? (c(), R(s, {
4681
+ key: 1,
4682
+ value: String(e.formValue[e.item.key] ?? ""),
4683
+ placeholder: e.showPlaceholder(e.item),
4684
+ class: "uz-input-readonly",
4685
+ readonly: ""
4686
+ }, null, 8, ["value", "placeholder"])) : e.item.input === "auto" ? (c(), R(u, {
4687
+ key: 2,
4688
+ width: "trigger",
4689
+ show: e.showDropdown,
4690
+ options: e.dropdownOptions,
4691
+ "render-label": e.renderDropdown,
4692
+ placement: "bottom-start",
4693
+ class: "uz-form-item-dropdown",
4694
+ onClickoutside: t[4] || (t[4] = () => {
4695
+ e.showDropdown = !1;
4696
+ })
4697
+ }, {
4698
+ default: y(() => [
4699
+ N(s, {
4700
+ value: e.formValue[e.item.key],
4701
+ "onUpdate:value": [
4702
+ t[2] || (t[2] = (f) => e.formValue[e.item.key] = f),
4703
+ t[3] || (t[3] = (f) => {
4704
+ e.formValue[e.item.key] = f.trim(), e.updateValue(e.item, f.trim()), e.handleFocus(e.item.key);
4705
+ })
4706
+ ],
4707
+ "show-password-on": "click",
4708
+ type: e.item.params.type,
4709
+ placeholder: e.showPlaceholder(e.item),
4710
+ disabled: e.checkDisabled(),
4711
+ readonly: e.checkReadonly(),
4712
+ clearable: e.checkClearable(),
4713
+ minlength: e.item.params.minlength,
4714
+ maxlength: e.item.params.maxlength,
4715
+ rows: e.item.params.rows,
4716
+ "show-count": !!e.item.params.maxlength,
4717
+ class: ue(e.checkClassReadonly())
4718
+ }, ze({ _: 2 }, [
4719
+ e.item.params.prefix ? {
4720
+ name: "prefix",
4721
+ fn: y(() => [
4722
+ K(H(e.item.params.prefix), 1)
4723
+ ]),
4724
+ key: "0"
4725
+ } : void 0,
4726
+ e.item.params.suffix ? {
4727
+ name: "suffix",
4728
+ fn: y(() => [
4729
+ K(H(e.item.params.suffix), 1)
4730
+ ]),
4731
+ key: "1"
4732
+ } : void 0
4733
+ ]), 1032, ["value", "type", "placeholder", "disabled", "readonly", "clearable", "minlength", "maxlength", "rows", "show-count", "class"])
4734
+ ]),
4735
+ _: 1
4736
+ }, 8, ["show", "options", "render-label"])) : e.item.input === "number" ? (c(), R(p, {
4737
+ key: 3,
4738
+ value: e.formValue[e.item.key],
4739
+ "onUpdate:value": [
4740
+ t[5] || (t[5] = (f) => e.formValue[e.item.key] = f),
4741
+ t[6] || (t[6] = (f) => {
4742
+ e.formValue[e.item.key] = f, e.updateValue(e.item, f);
4743
+ })
4744
+ ],
4745
+ placeholder: e.showPlaceholder(e.item),
4746
+ disabled: e.checkDisabled(),
4747
+ readonly: e.checkReadonly(),
4748
+ clearable: e.checkClearable(),
4749
+ min: e.item.params.minKey ? Number(e.formValue[e.item.params.minKey]) : e.item.params.min,
4750
+ max: e.item.params.maxKey ? Number(e.formValue[e.item.params.maxKey]) : e.item.params.max,
4751
+ step: e.item.params.step,
4752
+ showButton: e.item.params.showButton,
4753
+ precision: e.item.params.precision,
4754
+ class: ue(e.checkClassReadonly())
4755
+ }, ze({ _: 2 }, [
4756
+ e.item.params.prefix ? {
4757
+ name: "prefix",
4758
+ fn: y(() => [
4759
+ K(H(e.item.params.prefix), 1)
4760
+ ]),
4761
+ key: "0"
4762
+ } : void 0,
4763
+ e.item.params.suffix ? {
4764
+ name: "suffix",
4765
+ fn: y(() => [
4766
+ K(H(e.item.params.suffix), 1)
4767
+ ]),
4768
+ key: "1"
4769
+ } : void 0
4770
+ ]), 1032, ["value", "placeholder", "disabled", "readonly", "clearable", "min", "max", "step", "showButton", "precision", "class"])) : e.item.input === "date" && !e.item.params.format ? (c(), R(h, {
4771
+ key: 4,
4772
+ value: e.formValue[e.item.key],
4773
+ "onUpdate:value": [
4774
+ t[7] || (t[7] = (f) => e.formValue[e.item.key] = f),
4775
+ t[8] || (t[8] = (f, x) => {
4776
+ e.formValue[e.item.key] = f, x && (e.item.params.type.indexOf("range") > -1 ? (e.formValue[`${e.item.key}StartStr`] = x[0], e.formValue[`${e.item.key}EndStr`] = x[1]) : e.formValue[`${e.item.key}Str`] = x), e.updateValue(e.item, f);
4777
+ })
4778
+ ],
4779
+ type: e.item.params.type,
4780
+ placeholder: e.showPlaceholder(e.item),
4781
+ disabled: e.checkDisabled(),
4782
+ show: e.checkReadonlyShow(),
4783
+ clearable: e.checkClearable(),
4784
+ "time-picker-props": e.item.params.timePickerProps,
4785
+ "input-readonly": !0,
4786
+ "is-date-disabled": (f, x) => {
4787
+ const I = e.item;
4788
+ return I.params.isDateDisabled ? I.params.isDateDisabled(f, x) : !1;
4789
+ },
4790
+ "close-on-select": !0,
4791
+ class: ue(e.checkClassReadonly())
4792
+ }, null, 8, ["value", "type", "placeholder", "disabled", "show", "clearable", "time-picker-props", "is-date-disabled", "class"])) : e.item.input === "date" && e.item.params.format ? (c(), R(h, {
4793
+ key: 5,
4794
+ "formatted-value": e.formValue[e.item.key],
4795
+ "onUpdate:formattedValue": [
4796
+ t[9] || (t[9] = (f) => e.formValue[e.item.key] = f),
4797
+ t[10] || (t[10] = (f) => {
4798
+ e.formValue[e.item.key] = f, e.item.params.type.indexOf("range") > -1 ? (e.formValue[`${e.item.key}StartStr`] = f[0], e.formValue[`${e.item.key}EndStr`] = f[1]) : e.formValue[`${e.item.key}Str`] = f, e.updateValue(e.item, f);
4799
+ })
4800
+ ],
4801
+ type: e.item.params.type,
4802
+ placeholder: e.showPlaceholder(e.item),
4803
+ disabled: e.checkDisabled(),
4804
+ show: e.checkReadonlyShow(),
4805
+ clearable: e.checkClearable(),
4806
+ "input-readonly": !0,
4807
+ format: e.item.params.format,
4808
+ "time-picker-props": e.item.params.timePickerProps,
4809
+ "is-date-disabled": (f, x) => {
4810
+ const I = e.item;
4811
+ return I.params.isDateDisabled ? I.params.isDateDisabled(f, x) : !1;
4812
+ },
4813
+ "close-on-select": !0,
4814
+ class: ue(e.checkClassReadonly())
4815
+ }, null, 8, ["formatted-value", "type", "placeholder", "disabled", "show", "clearable", "format", "time-picker-props", "is-date-disabled", "class"])) : e.item.input === "select" ? (c(), R(b, {
4816
+ key: 6,
4817
+ value: e.formValue[e.item.key],
4818
+ "onUpdate:value": [
4819
+ t[11] || (t[11] = (f) => e.formValue[e.item.key] = f),
4820
+ t[12] || (t[12] = (f, x) => {
4821
+ e.formValue[e.item.key] = f, e.item.params.multiple ? e.formValue[`${e.item.key}Str`] = x.map((I) => I.label).join(",") : e.formValue[`${e.item.key}Str`] = x.label, e.updateValue(e.item, f, x);
4822
+ })
4823
+ ],
4824
+ placeholder: e.showPlaceholder(e.item),
4825
+ options: e.item.params.options,
4826
+ "consistent-menu-width": !1,
4827
+ disabled: e.checkDisabled(),
4828
+ show: e.checkReadonlyShow(),
4829
+ clearable: e.checkClearable(),
4830
+ filterable: e.isMobile ? !1 : e.item.params.filterable,
4831
+ tag: e.item.params.tag,
4832
+ multiple: e.item.params.multiple,
4833
+ "fallback-option": e.selectFallback,
4834
+ maxTagCount: "responsive",
4835
+ "render-label": e.item.params.renderLabel,
4836
+ "render-tag": e.item.params.renderTag,
4837
+ "on-create": e.item.params.tag ? (f) => ({
4838
+ label: f,
4839
+ value: `op${Date.now()}-#create#-${f}`
4840
+ }) : void 0,
4841
+ class: ue(e.checkClassReadonly())
4842
+ }, null, 8, ["value", "placeholder", "options", "disabled", "show", "clearable", "filterable", "tag", "multiple", "fallback-option", "render-label", "render-tag", "on-create", "class"])) : e.item.input === "cascader" ? (c(), R(D, {
4843
+ key: 7,
4844
+ value: e.formValue[e.item.key],
4845
+ "onUpdate:value": [
4846
+ t[13] || (t[13] = (f) => e.formValue[e.item.key] = f),
4847
+ t[14] || (t[14] = (f, x, I) => {
4848
+ const V = e.item;
4849
+ let U = f, F = f;
4850
+ if (V.params.multiple) {
4851
+ let z = f.filter((j) => j);
4852
+ z.length === 0 ? (U = [], F = []) : (U = z, F = z);
4853
+ }
4854
+ e.formValue[e.item.key] = U, I && (e.formValue[`${e.item.key}Str`] = I.map((z) => z.label).join("/")), e.updateValue(e.item, F);
4855
+ })
4856
+ ],
4857
+ placeholder: e.showPlaceholder(e.item),
4858
+ options: e.item.params.options,
4859
+ disabled: e.checkDisabled(),
4860
+ show: e.checkReadonlyShow(),
4861
+ clearable: e.checkClearable(),
4862
+ filterable: e.item.params.filterable,
4863
+ multiple: e.item.params.multiple,
4864
+ class: ue(e.checkClassReadonly()),
4865
+ "check-strategy": "all",
4866
+ maxTagCount: "responsive"
4867
+ }, null, 8, ["value", "placeholder", "options", "disabled", "show", "clearable", "filterable", "multiple", "class"])) : e.item.input === "color" ? (c(), R(g, {
4868
+ key: 8,
4869
+ value: e.formValue[e.item.key],
4870
+ "onUpdate:value": t[15] || (t[15] = (f) => e.formValue[e.item.key] = f),
4871
+ disabled: e.checkDisabled(),
4872
+ show: e.checkReadonlyShow(),
4873
+ "show-alpha": !0,
4874
+ "show-preview": !0,
4875
+ swatches: [
4876
+ "#FFFFFF",
4877
+ "#18A058",
4878
+ "#2080F0",
4879
+ "#F0A020",
4880
+ "rgba(208, 48, 80, 1)"
4881
+ ],
4882
+ class: ue(e.checkClassReadonly())
4883
+ }, null, 8, ["value", "disabled", "show", "class"])) : e.item.input === "checkbox" ? (c(), R(k, {
4884
+ key: 9,
4885
+ value: e.formValue[e.item.key],
4886
+ "onUpdate:value": t[16] || (t[16] = (f) => e.formValue[e.item.key] = f),
4887
+ disabled: e.checkDisabled()
4888
+ }, {
4889
+ default: y(() => [
4890
+ i("div", gg, [
4891
+ (c(!0), w(le, null, _e(e.item.params.options, (f) => (c(), R(d, {
4892
+ key: f.value,
4893
+ label: f.label,
4894
+ value: f.value
4895
+ }, null, 8, ["label", "value"]))), 128))
4896
+ ])
4897
+ ]),
4898
+ _: 1
4899
+ }, 8, ["value", "disabled"])) : e.item.input === "time" ? (c(), R(l, {
4900
+ key: 10,
4901
+ value: e.formValue[e.item.key],
4902
+ "onUpdate:value": [
4903
+ t[17] || (t[17] = (f) => e.formValue[e.item.key] = f),
4904
+ t[18] || (t[18] = (f) => {
4905
+ e.formValue[e.item.key] = f, e.updateValue(e.item, f);
4906
+ })
4907
+ ],
4908
+ placeholder: e.showPlaceholder(e.item),
4909
+ format: e.item.params.format,
4910
+ "input-readonly": !0,
4911
+ disabled: e.checkDisabled(),
4912
+ show: e.checkReadonlyShow(),
4913
+ clearable: e.checkClearable(),
4914
+ class: ue(e.checkClassReadonly())
4915
+ }, null, 8, ["value", "placeholder", "format", "disabled", "show", "clearable", "class"])) : e.item.input === "switch" ? (c(), R(v, {
4916
+ key: 11,
4917
+ "checked-value": 1,
4918
+ "unchecked-value": 0,
4919
+ value: e.formValue[e.item.key],
4920
+ "onUpdate:value": [
4921
+ t[19] || (t[19] = (f) => e.formValue[e.item.key] = f),
4922
+ t[20] || (t[20] = (f) => {
4923
+ e.formValue[e.item.key] = f, e.updateValue(e.item, f);
4924
+ })
4925
+ ],
4926
+ disabled: e.checkDisabled(),
4927
+ size: "large"
4928
+ }, ze({ _: 2 }, [
4929
+ e.item.params.checked ? {
4930
+ name: "checked",
4931
+ fn: y(() => [
4932
+ K(H(e.item.params.checked), 1)
4933
+ ]),
4934
+ key: "0"
4935
+ } : void 0,
4936
+ e.item.params.unchecked ? {
4937
+ name: "unchecked",
4938
+ fn: y(() => [
4939
+ K(H(e.item.params.unchecked), 1)
4940
+ ]),
4941
+ key: "1"
4942
+ } : void 0
4943
+ ]), 1032, ["value", "disabled"])) : e.item.input === "upload" ? (c(), R(m, {
4944
+ key: 12,
4945
+ value: e.formValue[e.item.key],
4946
+ "onUpdate:value": t[21] || (t[21] = (f) => e.formValue[e.item.key] = f),
4947
+ item: e.item,
4948
+ status: e.status
4949
+ }, null, 8, ["value", "item", "status"])) : (c(), w(le, { key: 13 }, [], 64));
4950
+ }
4951
+ const ht = /* @__PURE__ */ _(vg, [["render", yg]]), kg = oe({
4955
4952
  name: "UzForm",
4956
4953
  components: {
4957
4954
  NForm: Ra,
4958
4955
  NFormItem: Oa,
4959
4956
  NDivider: Aa,
4960
- NButton: ye,
4961
- NIcon: ge,
4957
+ NButton: ke,
4958
+ NIcon: ye,
4962
4959
  UzFormItem: ht,
4963
4960
  Plus: ft
4964
4961
  },
@@ -5012,7 +5009,7 @@ const ht = /* @__PURE__ */ _(vg, [["render", yg]]), kg = se({
5012
5009
  }
5013
5010
  },
5014
5011
  setup(e, { expose: t }) {
5015
- const r = Le("userStore"), n = _t(() => we.isMobile), a = S(), o = S({}), s = S([]), u = S([]), p = S([]), h = S(), b = S(!1), D = S(""), g = S("");
5012
+ const r = Le("userStore"), n = _t(() => ve.isMobile), a = T(), o = T({}), s = T([]), u = T([]), p = T([]), h = T(), b = T(!1), D = T(""), g = T("");
5016
5013
  ka("mainFormValue", {
5017
5014
  value: () => o.value,
5018
5015
  setValue: (j) => {
@@ -5020,13 +5017,28 @@ const ht = /* @__PURE__ */ _(vg, [["render", yg]]), kg = se({
5020
5017
  }
5021
5018
  });
5022
5019
  const d = (j) => {
5023
- switch (e.status) {
5024
- case 0:
5025
- return j.form.create && j.form.create.show;
5026
- case 1:
5027
- return j.form.edit && j.form.edit.show;
5028
- case 2:
5029
- return j.form.show;
5020
+ const C = j.form.display;
5021
+ if (!C)
5022
+ switch (e.status) {
5023
+ case 0:
5024
+ return j.form.create && j.form.create.show;
5025
+ case 1:
5026
+ return j.form.edit && j.form.edit.show;
5027
+ case 2:
5028
+ return j.form.show;
5029
+ }
5030
+ if (C && typeof C == "string") {
5031
+ const S = new Function("mainFormValue", C);
5032
+ try {
5033
+ return S({
5034
+ value: () => o.value,
5035
+ setValue: (O) => {
5036
+ o.value = O;
5037
+ }
5038
+ });
5039
+ } catch {
5040
+ return !0;
5041
+ }
5030
5042
  }
5031
5043
  }, k = (j, C) => {
5032
5044
  switch (j) {
@@ -5043,19 +5055,19 @@ const ht = /* @__PURE__ */ _(vg, [["render", yg]]), kg = se({
5043
5055
  return Ye(C);
5044
5056
  }
5045
5057
  }, l = (j, C = !1) => {
5046
- const T = Ce(j).startOf("day").diff(Ce().startOf("day"), "day");
5047
- return T >= 0 ? C ? "success" : `剩余${T}天` : C ? "error" : `逾期${Math.abs(T)}天`;
5058
+ const S = Ce(j).startOf("day").diff(Ce().startOf("day"), "day");
5059
+ return S >= 0 ? C ? "success" : `剩余${S}天` : C ? "error" : `逾期${Math.abs(S)}天`;
5048
5060
  }, v = (j) => (p.value = [], j.forEach((C) => {
5049
- var T;
5061
+ var S;
5050
5062
  if (C.form.defaultValue && !o.value[C.key])
5051
5063
  if (C.input === "number")
5052
5064
  o.value[C.key] = Number(C.form.defaultValue);
5053
- else if (C.input === "select" && ((T = C.params.options) == null ? void 0 : T.length) > 0) {
5065
+ else if (C.input === "select" && ((S = C.params.options) == null ? void 0 : S.length) > 0) {
5054
5066
  C.form.defaultValue === "userId" ? o.value[C.key] = r.userId : o.value[C.key] = C.form.defaultValue;
5055
- const R = C.params.options.find(
5067
+ const O = C.params.options.find(
5056
5068
  (A) => A.value === o.value[C.key]
5057
5069
  );
5058
- R && (o.value[`${C.key}Str`] = R.label);
5070
+ O && (o.value[`${C.key}Str`] = O.label);
5059
5071
  } else if (C.input === "date")
5060
5072
  if (C.params.type.indexOf("range") > -1)
5061
5073
  switch (C.form.defaultValue) {
@@ -5069,13 +5081,13 @@ const ht = /* @__PURE__ */ _(vg, [["render", yg]]), kg = se({
5069
5081
  );
5070
5082
  break;
5071
5083
  case "start-now":
5072
- const R = Ce().startOf("day").valueOf();
5073
- o.value[C.key] = [R, R], o.value[`${C.key}StartStr`] = k(
5084
+ const O = Ce().startOf("day").valueOf();
5085
+ o.value[C.key] = [O, O], o.value[`${C.key}StartStr`] = k(
5074
5086
  C.params.type,
5075
- R
5087
+ O
5076
5088
  ), o.value[`${C.key}EndStr`] = k(
5077
5089
  C.params.type,
5078
- R
5090
+ O
5079
5091
  );
5080
5092
  break;
5081
5093
  case "end-now":
@@ -5108,10 +5120,10 @@ const ht = /* @__PURE__ */ _(vg, [["render", yg]]), kg = se({
5108
5120
  );
5109
5121
  break;
5110
5122
  case "start-now":
5111
- const R = Ce().startOf("day").valueOf();
5123
+ const O = Ce().startOf("day").valueOf();
5112
5124
  o.value[C.key] = Ce().startOf("day").valueOf(), o.value[`${C.key}StartStr`] = k(
5113
5125
  C.params.type,
5114
- R
5126
+ O
5115
5127
  );
5116
5128
  break;
5117
5129
  case "end-now":
@@ -5147,33 +5159,33 @@ const ht = /* @__PURE__ */ _(vg, [["render", yg]]), kg = se({
5147
5159
  j || (j = X(e.items)), j && Array.isArray(j) && j.length > 0 ? s.value = v(j) : s.value = [];
5148
5160
  }, f = () => new Promise(async (j) => {
5149
5161
  let C = 0;
5150
- for await (const T of u.value)
5151
- await T.validate().catch(() => {
5162
+ for await (const S of u.value)
5163
+ await S.validate().catch(() => {
5152
5164
  C = C + 1;
5153
5165
  });
5154
5166
  j(C);
5155
5167
  }), x = () => new Promise((j, C) => {
5156
- var T;
5157
- u.value.forEach((R) => {
5158
- R.validate().catch(() => null);
5159
- }), (T = a.value) == null || T.validate(
5160
- async (R) => {
5161
- if (R)
5168
+ var S;
5169
+ u.value.forEach((O) => {
5170
+ O.validate().catch(() => null);
5171
+ }), (S = a.value) == null || S.validate(
5172
+ async (O) => {
5173
+ if (O)
5162
5174
  C();
5163
5175
  else if (await f() === 0) {
5164
5176
  const q = X(o.value);
5165
5177
  p.value.forEach((ie) => {
5166
5178
  q[ie] = JSON.stringify(q[ie]);
5167
5179
  }), Object.keys(q).forEach((ie) => {
5168
- ie.includes("sub_") && q[ie].forEach((le) => {
5169
- Object.keys(le).forEach((de) => {
5170
- Array.isArray(le[de]) && (le[de] = JSON.stringify(le[de]));
5180
+ ie.includes("sub_") && q[ie].forEach((se) => {
5181
+ Object.keys(se).forEach((de) => {
5182
+ Array.isArray(se[de]) && (se[de] = JSON.stringify(se[de]));
5171
5183
  });
5172
5184
  });
5173
5185
  });
5174
5186
  const P = JSON.stringify(
5175
5187
  q,
5176
- (ie, le) => le === void 0 ? null : Array.isArray(le) ? le.filter((de) => de !== "") : le
5188
+ (ie, se) => se === void 0 ? null : Array.isArray(se) ? se.filter((de) => de !== "") : se
5177
5189
  ), J = JSON.parse(P);
5178
5190
  j(J);
5179
5191
  } else
@@ -5238,7 +5250,7 @@ const ht = /* @__PURE__ */ _(vg, [["render", yg]]), kg = se({
5238
5250
  }), bg = ["onClick"];
5239
5251
  function _g(e, t, r, n, a, o) {
5240
5252
  const s = $("Plus"), u = $("NIcon"), p = $("UzTableChild"), h = $("UzTableQuestChild"), b = $("NDivider"), D = $("UzFormItem"), g = $("NFormItem"), d = $("NForm"), k = $("UzTableDrawer"), l = Ol("media");
5241
- return c(), w(oe, null, [
5253
+ return c(), w(le, null, [
5242
5254
  N(d, {
5243
5255
  ref: "formRef",
5244
5256
  class: "w-full h-full",
@@ -5252,10 +5264,10 @@ function _g(e, t, r, n, a, o) {
5252
5264
  gt((c(), w("div", {
5253
5265
  class: ue(e.isMobile ? "" : "uz-form-grid")
5254
5266
  }, [
5255
- (c(!0), w(oe, null, be(e.formItems, (v, m) => {
5267
+ (c(!0), w(le, null, _e(e.formItems, (v, m) => {
5256
5268
  var f;
5257
- return c(), w(oe, { key: m }, [
5258
- e.itemShow(v) ? (c(), O(g, {
5269
+ return c(), w(le, { key: m }, [
5270
+ e.itemShow(v) ? (c(), R(g, {
5259
5271
  key: 0,
5260
5272
  path: v.key,
5261
5273
  rule: v.input === "subTable" ? void 0 : (f = v.form.rule) != null && f.required ? v.form.rule : void 0,
@@ -5284,7 +5296,7 @@ function _g(e, t, r, n, a, o) {
5284
5296
  }, H(e.diffDay(e.formValue[v.key])), 3)) : W("", !0)
5285
5297
  ]),
5286
5298
  default: y(() => [
5287
- v.input === "subTable" && !v.params.quest ? (c(), O(p, {
5299
+ v.input === "subTable" && !v.params.quest ? (c(), R(p, {
5288
5300
  key: 0,
5289
5301
  ref_for: !0,
5290
5302
  ref: "childRef",
@@ -5293,11 +5305,11 @@ function _g(e, t, r, n, a, o) {
5293
5305
  formValue: e.formValue,
5294
5306
  item: v,
5295
5307
  status: e.status
5296
- }, null, 8, ["value", "onUpdate:value", "formValue", "item", "status"])) : v.input === "subTable" && v.params.quest ? (c(), O(h, {
5308
+ }, null, 8, ["value", "onUpdate:value", "formValue", "item", "status"])) : v.input === "subTable" && v.params.quest ? (c(), R(h, {
5297
5309
  key: 1,
5298
5310
  formValue: e.formValue,
5299
5311
  item: v
5300
- }, null, 8, ["formValue", "item"])) : v.input === "divider" ? (c(), O(b, {
5312
+ }, null, 8, ["formValue", "item"])) : v.input === "divider" ? (c(), R(b, {
5301
5313
  key: 2,
5302
5314
  "title-placement": v.params.placement
5303
5315
  }, {
@@ -5305,7 +5317,7 @@ function _g(e, t, r, n, a, o) {
5305
5317
  K(H(typeof v.label == "function" ? v.label() : v.label), 1)
5306
5318
  ]),
5307
5319
  _: 2
5308
- }, 1032, ["title-placement"])) : (c(), O(D, {
5320
+ }, 1032, ["title-placement"])) : (c(), R(D, {
5309
5321
  key: 3,
5310
5322
  item: v,
5311
5323
  formValue: e.formValue,
@@ -5331,13 +5343,13 @@ function _g(e, t, r, n, a, o) {
5331
5343
  }, null, 8, ["show", "link", "linkFn", "onOnSubmit"])
5332
5344
  ], 64);
5333
5345
  }
5334
- const xg = /* @__PURE__ */ _(kg, [["render", _g]]), Cg = se({
5346
+ const xg = /* @__PURE__ */ _(kg, [["render", _g]]), Cg = oe({
5335
5347
  name: "UzDraggableForm",
5336
5348
  components: {
5337
5349
  NForm: Ra,
5338
5350
  NFormItem: Oa,
5339
- NButton: ye,
5340
- NIcon: ge,
5351
+ NButton: ke,
5352
+ NIcon: ye,
5341
5353
  NDivider: Aa,
5342
5354
  UzFormItem: ht,
5343
5355
  Trash: xt,
@@ -5383,7 +5395,7 @@ const xg = /* @__PURE__ */ _(kg, [["render", _g]]), Cg = se({
5383
5395
  },
5384
5396
  emits: ["update:value", "on-select", "on-change"],
5385
5397
  setup(e, { expose: t, emit: r }) {
5386
- const n = Le("userStore"), a = S(), o = S({}), s = S([]), u = S([]), p = S(), h = S(!1), b = S(""), D = S(""), g = S([-1, -1]), d = (F, z, j) => {
5398
+ const n = Le("userStore"), a = T(), o = T({}), s = T([]), u = T([]), p = T(), h = T(!1), b = T(""), D = T(""), g = T([-1, -1]), d = (F, z, j) => {
5387
5399
  g.value = [z, j ?? -1], r("on-select", F);
5388
5400
  }, k = (F) => {
5389
5401
  F && (g.value[1] === -1 ? s.value.splice(g.value[0], 1, F) : s.value[g.value[0]].params.children.splice(g.value[1], 1, F), f()), x();
@@ -5398,7 +5410,7 @@ const xg = /* @__PURE__ */ _(kg, [["render", _g]]), Cg = se({
5398
5410
  else if (z.input === "select" && ((j = z.params.options) == null ? void 0 : j.length) > 0) {
5399
5411
  z.form.defaultValue === "userId" ? o.value[z.key] = n.userId : o.value[z.key] = z.form.defaultValue;
5400
5412
  const C = z.params.options.find(
5401
- (T) => T.value === o.value[z.key]
5413
+ (S) => S.value === o.value[z.key]
5402
5414
  );
5403
5415
  C && (o.value[`${z.key}Str`] = C.label);
5404
5416
  } else if (z.input === "date")
@@ -5474,7 +5486,7 @@ const xg = /* @__PURE__ */ _(kg, [["render", _g]]), Cg = se({
5474
5486
  }), $g = ["onClick"];
5475
5487
  function Mg(e, t, r, n, a, o) {
5476
5488
  const s = $("Plus"), u = $("NIcon"), p = $("Trash"), h = $("NButton"), b = $("UzTableChild"), D = $("UzFormItem"), g = $("NFormItem"), d = $("Draggable", !0), k = $("NDivider"), l = $("NForm"), v = $("UzTableDrawer");
5477
- return c(), w(oe, null, [
5489
+ return c(), w(le, null, [
5478
5490
  N(l, {
5479
5491
  ref: "formRef",
5480
5492
  class: "w-full h-full",
@@ -5503,7 +5515,7 @@ function Mg(e, t, r, n, a, o) {
5503
5515
  item: y(({ element: m, index: f }) => {
5504
5516
  var x;
5505
5517
  return [
5506
- (c(), O(g, {
5518
+ (c(), R(g, {
5507
5519
  path: m.key,
5508
5520
  rule: (x = m.rule) != null && x.required ? m.rule : void 0,
5509
5521
  class: ue([
@@ -5537,7 +5549,7 @@ function Mg(e, t, r, n, a, o) {
5537
5549
  }, H(e.diffDay(e.formValue[m.key])), 3)) : W("", !0)
5538
5550
  ]),
5539
5551
  default: y(() => [
5540
- e.formItemIndex[0] === f && e.formItemIndex[1] === -1 ? (c(), O(h, {
5552
+ e.formItemIndex[0] === f && e.formItemIndex[1] === -1 ? (c(), R(h, {
5541
5553
  key: 0,
5542
5554
  size: "small",
5543
5555
  type: "error",
@@ -5554,12 +5566,12 @@ function Mg(e, t, r, n, a, o) {
5554
5566
  ]),
5555
5567
  _: 1
5556
5568
  }, 8, ["onClick"])) : W("", !0),
5557
- m.input === "subTable" ? (c(), O(b, {
5569
+ m.input === "subTable" ? (c(), R(b, {
5558
5570
  key: 1,
5559
5571
  formValue: e.formValue,
5560
5572
  item: m,
5561
5573
  status: e.status
5562
- }, null, 8, ["formValue", "item", "status"])) : m.input === "group" ? (c(), O(d, ba({
5574
+ }, null, 8, ["formValue", "item", "status"])) : m.input === "group" ? (c(), R(d, ba({
5563
5575
  key: 2,
5564
5576
  modelValue: m.params.children,
5565
5577
  "onUpdate:modelValue": (I) => m.params.children = I
@@ -5576,7 +5588,7 @@ function Mg(e, t, r, n, a, o) {
5576
5588
  item: y(({ element: I, index: V }) => {
5577
5589
  var U;
5578
5590
  return [
5579
- (c(), O(g, {
5591
+ (c(), R(g, {
5580
5592
  label: I.input !== "divider" ? typeof I.label == "function" ? I.label() : I.label : "",
5581
5593
  path: I.key,
5582
5594
  rule: (U = I.rule) != null && U.required ? I.rule : void 0,
@@ -5591,7 +5603,7 @@ function Mg(e, t, r, n, a, o) {
5591
5603
  "show-feedback": e.showFeedback && I.input !== "divider"
5592
5604
  }, {
5593
5605
  default: y(() => [
5594
- e.formItemIndex[0] === f && e.formItemIndex[1] === V ? (c(), O(h, {
5606
+ e.formItemIndex[0] === f && e.formItemIndex[1] === V ? (c(), R(h, {
5595
5607
  key: 0,
5596
5608
  size: "small",
5597
5609
  type: "error",
@@ -5619,7 +5631,7 @@ function Mg(e, t, r, n, a, o) {
5619
5631
  ];
5620
5632
  }),
5621
5633
  _: 2
5622
- }, 1040, ["modelValue", "onUpdate:modelValue", "onEnd", "onChange"])) : m.input === "divider" ? (c(), O(k, {
5634
+ }, 1040, ["modelValue", "onUpdate:modelValue", "onEnd", "onChange"])) : m.input === "divider" ? (c(), R(k, {
5623
5635
  key: 3,
5624
5636
  "title-placement": m.params.placement
5625
5637
  }, {
@@ -5627,7 +5639,7 @@ function Mg(e, t, r, n, a, o) {
5627
5639
  K(H(typeof m.label == "function" ? m.label() : m.label), 1)
5628
5640
  ]),
5629
5641
  _: 2
5630
- }, 1032, ["title-placement"])) : (c(), O(D, {
5642
+ }, 1032, ["title-placement"])) : (c(), R(D, {
5631
5643
  key: 4,
5632
5644
  item: m,
5633
5645
  formValue: e.formValue,
@@ -5652,12 +5664,12 @@ function Mg(e, t, r, n, a, o) {
5652
5664
  }, null, 8, ["show", "link", "linkFn", "onOnSubmit"])
5653
5665
  ], 64);
5654
5666
  }
5655
- const Sg = /* @__PURE__ */ _(Cg, [["render", Mg]]), Tg = se({
5667
+ const Sg = /* @__PURE__ */ _(Cg, [["render", Mg]]), Tg = oe({
5656
5668
  name: "UzFormItemUpload",
5657
5669
  components: {
5658
5670
  NUpload: Ll,
5659
- NButton: ye,
5660
- NIcon: ge,
5671
+ NButton: ke,
5672
+ NIcon: ye,
5661
5673
  NImage: El,
5662
5674
  NPopover: dt,
5663
5675
  NPopconfirm: ja,
@@ -5688,7 +5700,7 @@ const Sg = /* @__PURE__ */ _(Cg, [["render", Mg]]), Tg = se({
5688
5700
  },
5689
5701
  emits: ["update:value"],
5690
5702
  setup(e, { emit: t }) {
5691
- const r = Ot(), n = S([]), a = () => {
5703
+ const r = Ot(), n = T([]), a = () => {
5692
5704
  t(
5693
5705
  "update:value",
5694
5706
  tt.stringify(n.value.map((b) => b.url))
@@ -5763,7 +5775,7 @@ const Sg = /* @__PURE__ */ _(Cg, [["render", Mg]]), Tg = se({
5763
5775
  function zg(e, t, r, n, a, o) {
5764
5776
  const s = $("CloudUpload"), u = $("NIcon"), p = $("NUploadDragger"), h = $("NUpload"), b = $("PhotoOff"), D = $("NImage"), g = $("FileText"), d = $("Trash"), k = $("NButton"), l = $("NPopconfirm"), v = $("CloudDownload");
5765
5777
  return c(), w("div", Ng, [
5766
- e.status !== 2 ? (c(), O(h, {
5778
+ e.status !== 2 ? (c(), R(h, {
5767
5779
  key: 0,
5768
5780
  accept: e.item.params.accept,
5769
5781
  max: e.item.params.max,
@@ -5789,11 +5801,11 @@ function zg(e, t, r, n, a, o) {
5789
5801
  ]),
5790
5802
  _: 1
5791
5803
  }, 8, ["accept", "max", "on-before-upload"])) : W("", !0),
5792
- (c(!0), w(oe, null, be(e.formValue, (m, f) => (c(), w("div", {
5804
+ (c(!0), w(le, null, _e(e.formValue, (m, f) => (c(), w("div", {
5793
5805
  key: f,
5794
5806
  class: "uz-form-upload-item w-20 h-20"
5795
5807
  }, [
5796
- e.isAssetTypeAnImage(m.url) ? (c(), O(D, {
5808
+ e.isAssetTypeAnImage(m.url) ? (c(), R(D, {
5797
5809
  key: 0,
5798
5810
  width: "80",
5799
5811
  src: m.url
@@ -5810,7 +5822,7 @@ function zg(e, t, r, n, a, o) {
5810
5822
  })
5811
5823
  ]),
5812
5824
  _: 2
5813
- }, 1032, ["src"])) : (c(), O(u, {
5825
+ }, 1032, ["src"])) : (c(), R(u, {
5814
5826
  key: 1,
5815
5827
  size: "60",
5816
5828
  color: "lightGrey",
@@ -5875,9 +5887,9 @@ function zg(e, t, r, n, a, o) {
5875
5887
  ]))), 128))
5876
5888
  ]);
5877
5889
  }
5878
- const qg = /* @__PURE__ */ _(Tg, [["render", zg], ["__scopeId", "data-v-b11a603c"]]), Ag = se({
5890
+ const qg = /* @__PURE__ */ _(Tg, [["render", zg], ["__scopeId", "data-v-b11a603c"]]), Ag = oe({
5879
5891
  name: "UzFormItemImage",
5880
- components: { NImageGroup: Yc, NImage: El, NIcon: ge, NPopover: dt, PhotoOff: Ut, FileText: Ft },
5892
+ components: { NImageGroup: Yc, NImage: El, NIcon: ye, NPopover: dt, PhotoOff: Ut, FileText: Ft },
5881
5893
  props: {
5882
5894
  value: {
5883
5895
  required: !0,
@@ -5886,7 +5898,7 @@ const qg = /* @__PURE__ */ _(Tg, [["render", zg], ["__scopeId", "data-v-b11a603c
5886
5898
  }
5887
5899
  },
5888
5900
  setup(e) {
5889
- const t = S([]), r = (o) => {
5901
+ const t = T([]), r = (o) => {
5890
5902
  const s = o.lastIndexOf("."), u = o.substring(s + 1);
5891
5903
  return ["png", "jpg", "jpeg", "bmp", "gif", "webp", "svg"].indexOf(
5892
5904
  u.toLowerCase()
@@ -5913,11 +5925,11 @@ const qg = /* @__PURE__ */ _(Tg, [["render", zg], ["__scopeId", "data-v-b11a603c
5913
5925
  }), Og = { class: "flex gap-2 max-w-sm overflow-y-hidden overflow-x-auto items-center" };
5914
5926
  function Rg(e, t, r, n, a, o) {
5915
5927
  const s = $("PhotoOff"), u = $("NIcon"), p = $("NImage"), h = $("FileText"), b = $("NPopover"), D = $("NImageGroup");
5916
- return c(), O(D, null, {
5928
+ return c(), R(D, null, {
5917
5929
  default: y(() => [
5918
5930
  i("div", Og, [
5919
- (c(!0), w(oe, null, be(e.imgs, (g) => (c(), w(oe, null, [
5920
- e.isAssetTypeAnImage(g) ? (c(), O(p, {
5931
+ (c(!0), w(le, null, _e(e.imgs, (g) => (c(), w(le, null, [
5932
+ e.isAssetTypeAnImage(g) ? (c(), R(p, {
5921
5933
  key: 0,
5922
5934
  width: "40",
5923
5935
  src: g
@@ -5934,7 +5946,7 @@ function Rg(e, t, r, n, a, o) {
5934
5946
  })
5935
5947
  ]),
5936
5948
  _: 2
5937
- }, 1032, ["src"])) : (c(), O(b, {
5949
+ }, 1032, ["src"])) : (c(), R(b, {
5938
5950
  key: 1,
5939
5951
  trigger: "hover"
5940
5952
  }, {
@@ -5962,7 +5974,7 @@ function Rg(e, t, r, n, a, o) {
5962
5974
  _: 1
5963
5975
  });
5964
5976
  }
5965
- const Sc = /* @__PURE__ */ _(Ag, [["render", Rg]]), Bg = se({
5977
+ const Sc = /* @__PURE__ */ _(Ag, [["render", Rg]]), Bg = oe({
5966
5978
  name: "UzNumberRoll",
5967
5979
  props: {
5968
5980
  value: {
@@ -5984,7 +5996,7 @@ const Sc = /* @__PURE__ */ _(Ag, [["render", Rg]]), Bg = se({
5984
5996
  }
5985
5997
  },
5986
5998
  setup(e) {
5987
- const t = S(!1), r = S(0), n = (u) => 1 - Math.pow(1 - u, 5), a = (u) => e.format ? e.format(u) : u;
5999
+ const t = T(!1), r = T(0), n = (u) => 1 - Math.pow(1 - u, 5), a = (u) => e.format ? e.format(u) : u;
5988
6000
  function o(u, p, h = e.duration) {
5989
6001
  const b = () => {
5990
6002
  const g = performance.now(), d = Math.min(g - D, h), k = u + (p - u) * n(d / h);
@@ -6015,10 +6027,10 @@ const Sc = /* @__PURE__ */ _(Ag, [["render", Rg]]), Bg = se({
6015
6027
  function Fg(e, t, r, n, a, o) {
6016
6028
  return H(e.displayedValueRef);
6017
6029
  }
6018
- const Vg = /* @__PURE__ */ _(Bg, [["render", Fg]]), Ug = se({
6030
+ const Vg = /* @__PURE__ */ _(Bg, [["render", Fg]]), Ug = oe({
6019
6031
  name: "UzCamera",
6020
6032
  components: {
6021
- NButton: ye,
6033
+ NButton: ke,
6022
6034
  NModal: Zc
6023
6035
  },
6024
6036
  props: {
@@ -6041,7 +6053,7 @@ const Vg = /* @__PURE__ */ _(Bg, [["render", Fg]]), Ug = se({
6041
6053
  },
6042
6054
  emits: ["on-update:value"],
6043
6055
  setup(e, { emit: t }) {
6044
- const r = S(), n = S(!1), a = S(!1), o = Ot();
6056
+ const r = T(), n = T(!1), a = T(!1), o = Ot();
6045
6057
  let s = null, u = null;
6046
6058
  const p = (l, v) => {
6047
6059
  s.beginPath(), s.moveTo(l.x, l.y), s.lineTo(v.x, v.y), s.lineWidth = 2, s.strokeStyle = "green", s.stroke();
@@ -6119,8 +6131,8 @@ const Vg = /* @__PURE__ */ _(Bg, [["render", Fg]]), Ug = se({
6119
6131
  };
6120
6132
  function Kg(e, t, r, n, a, o) {
6121
6133
  const s = $("NButton"), u = $("NModal");
6122
- return c(), w(oe, null, [
6123
- e.mode === "button" ? (c(), O(s, {
6134
+ return c(), w(le, null, [
6135
+ e.mode === "button" ? (c(), R(s, {
6124
6136
  key: 0,
6125
6137
  type: "primary",
6126
6138
  loading: e.loading,
@@ -6131,7 +6143,7 @@ function Kg(e, t, r, n, a, o) {
6131
6143
  ]),
6132
6144
  _: 1
6133
6145
  }, 8, ["loading", "onClick"])) : W("", !0),
6134
- e.mode === "button" ? (c(), O(u, {
6146
+ e.mode === "button" ? (c(), R(u, {
6135
6147
  key: 1,
6136
6148
  show: e.modal,
6137
6149
  "onUpdate:show": t[0] || (t[0] = (p) => e.modal = p),
@@ -6177,11 +6189,11 @@ function Kg(e, t, r, n, a, o) {
6177
6189
  ])
6178
6190
  ], 64);
6179
6191
  }
6180
- const Gg = /* @__PURE__ */ _(Ug, [["render", Kg]]), Wg = se({
6192
+ const Gg = /* @__PURE__ */ _(Ug, [["render", Kg]]), Wg = oe({
6181
6193
  name: "UzSearchBar",
6182
6194
  components: {
6183
- NIcon: ge,
6184
- NButton: ye,
6195
+ NIcon: ye,
6196
+ NButton: ke,
6185
6197
  NButtonGroup: ed,
6186
6198
  NGrid: Gl,
6187
6199
  NGridItem: Kl,
@@ -6232,23 +6244,23 @@ const Gg = /* @__PURE__ */ _(Ug, [["render", Kg]]), Wg = se({
6232
6244
  },
6233
6245
  emits: ["update:loading", "on-update:value"],
6234
6246
  setup(e, { emit: t }) {
6235
- const r = Rt(), n = S(), a = S([]), o = S(), s = S(!0), u = S(!1), p = S(!1), h = S(0), b = S(0), D = S(0), g = S(1), d = S(""), k = S([]), l = S(!1), v = (z) => Array.isArray(z) && z.length > 0 || z ? z : !1, m = (z = !1) => {
6247
+ const r = Rt(), n = T(), a = T([]), o = T(), s = T(!0), u = T(!1), p = T(!1), h = T(0), b = T(0), D = T(0), g = T(1), d = T(""), k = T([]), l = T(!1), v = (z) => Array.isArray(z) && z.length > 0 || z ? z : !1, m = (z = !1) => {
6236
6248
  if (e.loading)
6237
6249
  return;
6238
6250
  const j = X(n.value);
6239
6251
  !z && j.query && (j.query.page = 1);
6240
6252
  const C = [];
6241
- a.value.forEach((T) => {
6242
- if (j[T.key]) {
6243
- const R = v(j[T.key]);
6244
- if (R) {
6253
+ a.value.forEach((S) => {
6254
+ if (j[S.key]) {
6255
+ const O = v(j[S.key]);
6256
+ if (O) {
6245
6257
  const A = {
6246
- key: T.key,
6247
- value: R,
6258
+ key: S.key,
6259
+ value: O,
6248
6260
  range: !1,
6249
- fuzzy: T.search.fuzzy
6261
+ fuzzy: S.search.fuzzy
6250
6262
  };
6251
- (T.input === "cascader" || T.input === "select") && T.params.multiple && (A.range = !0), T.input === "date" && T.params.type.indexOf("range") > -1 && (A.range = !0, A.time = !0), C.push(A);
6263
+ (S.input === "cascader" || S.input === "select") && S.params.multiple && (A.range = !0), S.input === "date" && S.params.type.indexOf("range") > -1 && (A.range = !0, A.time = !0), C.push(A);
6252
6264
  }
6253
6265
  }
6254
6266
  }), t("update:loading", !0), t("on-update:value", C);
@@ -6260,32 +6272,32 @@ const Gg = /* @__PURE__ */ _(Ug, [["render", Kg]]), Wg = se({
6260
6272
  var A;
6261
6273
  const j = {};
6262
6274
  let C = 0;
6263
- const T = e.cols ? e.cols : 4;
6275
+ const S = e.cols ? e.cols : 4;
6264
6276
  if (z.length > 0)
6265
- for (let q = 0; q <= T; q++)
6277
+ for (let q = 0; q <= S; q++)
6266
6278
  (A = z[q]) != null && A.search.show && (C = C + 1);
6267
- const R = T - C >= 0 ? T - C - 1 : -1;
6268
- b.value = R, D.value = R, h.value = C, C > T ? (u.value = !0, p.value = !0) : (u.value = !1, p.value = !1);
6279
+ const O = S - C >= 0 ? S - C - 1 : -1;
6280
+ b.value = O, D.value = O, h.value = C, C > S ? (u.value = !0, p.value = !0) : (u.value = !1, p.value = !1);
6269
6281
  for (const q of z)
6270
6282
  q.search.tab && (k.value = q.params.options, l.value = q.params.multiple, d.value = q.key, q.search.show = !1), q.input === "input" && q.params.type === "textarea" && (q.params.type = "text"), q.search.show = q.search.show ?? !0, q.defaultValue ? j[q.key] = q.defaultValue : (j[q.key] = "", (q.input === "number" || q.input === "date" || q.input === "time") && (j[q.key] = null), (q.input === "cascader" || q.input === "select") && (q.params.multiple ? j[q.key] = [] : j[q.key] = null));
6271
6283
  return { data: z, values: j };
6272
6284
  }, U = (z) => {
6273
6285
  if (k.value = [], z && z.length > 0) {
6274
- const { data: j, values: C } = V(X(z)), T = {}, R = e.id || r.params.id;
6275
- if (e.cache && R) {
6276
- const A = qe(`tables_${R}`, !1);
6286
+ const { data: j, values: C } = V(X(z)), S = {}, O = e.id || r.params.id;
6287
+ if (e.cache && O) {
6288
+ const A = qe(`tables_${O}`, !1);
6277
6289
  A && A.params.forEach((q) => {
6278
- T[q.key] = q.value;
6290
+ S[q.key] = q.value;
6279
6291
  });
6280
6292
  }
6281
- a.value = j, n.value = X({ ...C, ...T }), o.value = X(C);
6293
+ a.value = j, n.value = X({ ...C, ...S }), o.value = X(C);
6282
6294
  }
6283
6295
  m(!0);
6284
6296
  }, F = (z) => {
6285
6297
  if (l.value) {
6286
6298
  const j = n.value[d.value];
6287
6299
  if (j.includes(z)) {
6288
- const C = j.findIndex((T) => T === z);
6300
+ const C = j.findIndex((S) => S === z);
6289
6301
  n.value[d.value].splice(C, 1);
6290
6302
  } else
6291
6303
  j.push(z);
@@ -6336,14 +6348,14 @@ function Yg(e, t, r, n, a, o) {
6336
6348
  collapsed: e.collapsed
6337
6349
  }, {
6338
6350
  default: y(() => [
6339
- e.tabList && e.tabList.length > 0 ? (c(), O(p, {
6351
+ e.tabList && e.tabList.length > 0 ? (c(), R(p, {
6340
6352
  key: 0,
6341
6353
  span: e.gridSpan
6342
6354
  }, {
6343
6355
  default: y(() => [
6344
6356
  N(u, null, {
6345
6357
  default: y(() => [
6346
- (c(!0), w(oe, null, be(e.tabList, (x) => (c(), O(s, {
6358
+ (c(!0), w(le, null, _e(e.tabList, (x) => (c(), R(s, {
6347
6359
  key: x.value,
6348
6360
  type: e.tabButtonType(x),
6349
6361
  secondary: "",
@@ -6360,11 +6372,11 @@ function Yg(e, t, r, n, a, o) {
6360
6372
  ]),
6361
6373
  _: 1
6362
6374
  }, 8, ["span"])) : W("", !0),
6363
- e.offset > -1 ? (c(), O(p, {
6375
+ e.offset > -1 ? (c(), R(p, {
6364
6376
  key: 1,
6365
6377
  offset: e.offset
6366
6378
  }, null, 8, ["offset"])) : W("", !0),
6367
- (c(!0), w(oe, null, be(e.itemData, (x, I) => (c(), O(p, {
6379
+ (c(!0), w(le, null, _e(e.itemData, (x, I) => (c(), R(p, {
6368
6380
  key: `${I}_${Date.now()}`,
6369
6381
  span: x.search.show ? e.gridSpan : 0
6370
6382
  }, {
@@ -6408,7 +6420,7 @@ function Yg(e, t, r, n, a, o) {
6408
6420
  ])
6409
6421
  ]),
6410
6422
  i("div", Xg, [
6411
- e.more ? (c(), O(s, {
6423
+ e.more ? (c(), R(s, {
6412
6424
  key: 0,
6413
6425
  quaternary: "",
6414
6426
  onClick: e.showMore
@@ -6425,7 +6437,7 @@ function Yg(e, t, r, n, a, o) {
6425
6437
  ]),
6426
6438
  _: 1
6427
6439
  }, 8, ["onClick"])) : W("", !0),
6428
- e.itemData && Object.keys(e.itemData).length > 0 ? (c(), O(s, {
6440
+ e.itemData && Object.keys(e.itemData).length > 0 ? (c(), R(s, {
6429
6441
  key: 1,
6430
6442
  loading: e.loading,
6431
6443
  secondary: "",
@@ -6447,7 +6459,7 @@ function Yg(e, t, r, n, a, o) {
6447
6459
  ]),
6448
6460
  _: 1
6449
6461
  }, 8, ["loading"])) : W("", !0),
6450
- e.defaultValue && Object.keys(e.defaultValue).length > 0 ? (c(), O(s, {
6462
+ e.defaultValue && Object.keys(e.defaultValue).length > 0 ? (c(), R(s, {
6451
6463
  key: 2,
6452
6464
  loading: e.loading,
6453
6465
  secondary: "",
@@ -6470,11 +6482,11 @@ function Yg(e, t, r, n, a, o) {
6470
6482
  ])
6471
6483
  ], 32);
6472
6484
  }
6473
- const Zg = /* @__PURE__ */ _(Wg, [["render", Yg]]), e2 = se({
6485
+ const Zg = /* @__PURE__ */ _(Wg, [["render", Yg]]), e2 = oe({
6474
6486
  name: "UzSearchMobileBar",
6475
6487
  components: {
6476
- NIcon: ge,
6477
- NButton: ye,
6488
+ NIcon: ye,
6489
+ NButton: ke,
6478
6490
  NDrawer: Va,
6479
6491
  NDrawerContent: Fa,
6480
6492
  NGrid: Gl,
@@ -6506,7 +6518,7 @@ const Zg = /* @__PURE__ */ _(Wg, [["render", Yg]]), e2 = se({
6506
6518
  },
6507
6519
  emits: ["update:loading", "on-update:value"],
6508
6520
  setup(e, { emit: t }) {
6509
- const r = Rt(), n = S([]), a = S(!1), o = S(), s = S(), u = (g) => Array.isArray(g) && g.length > 0 || g ? g : !1, p = (g = !1) => {
6521
+ const r = Rt(), n = T([]), a = T(!1), o = T(), s = T(), u = (g) => Array.isArray(g) && g.length > 0 || g ? g : !1, p = (g = !1) => {
6510
6522
  if (e.loading)
6511
6523
  return;
6512
6524
  const d = X(o.value);
@@ -6562,7 +6574,7 @@ const Zg = /* @__PURE__ */ _(Wg, [["render", Yg]]), e2 = se({
6562
6574
  }), t2 = { class: "flex items-start justify-between gap-8 pb-2" }, r2 = { class: "flex gap-2" }, n2 = { class: "flex items-center gap-2 w-full" };
6563
6575
  function a2(e, t, r, n, a, o) {
6564
6576
  const s = $("Search"), u = $("NIcon"), p = $("NButton"), h = $("NInputGroupLabel"), b = $("UzFormItem"), D = $("NInputGroup"), g = $("NGridItem"), d = $("NGrid"), k = $("Refresh"), l = $("NDrawerContent"), v = $("NDrawer");
6565
- return c(), w(oe, null, [
6577
+ return c(), w(le, null, [
6566
6578
  i("div", t2, [
6567
6579
  $e(e.$slots, "header"),
6568
6580
  i("div", r2, [
@@ -6619,7 +6631,7 @@ function a2(e, t, r, n, a, o) {
6619
6631
  ]),
6620
6632
  _: 1
6621
6633
  }, 8, ["loading", "onClick"]),
6622
- e.itemData && Object.keys(e.itemData).length > 0 ? (c(), O(p, {
6634
+ e.itemData && Object.keys(e.itemData).length > 0 ? (c(), R(p, {
6623
6635
  key: 0,
6624
6636
  loading: e.loading,
6625
6637
  type: "primary",
@@ -6648,7 +6660,7 @@ function a2(e, t, r, n, a, o) {
6648
6660
  cols: "1"
6649
6661
  }, {
6650
6662
  default: y(() => [
6651
- (c(!0), w(oe, null, be(e.itemData, (m, f) => (c(), O(g, {
6663
+ (c(!0), w(le, null, _e(e.itemData, (m, f) => (c(), R(g, {
6652
6664
  key: `${f}_${Date.now()}`,
6653
6665
  span: m.search.show ? 1 : 0
6654
6666
  }, {
@@ -6854,6 +6866,7 @@ const c2 = (e) => e.map((t) => {
6854
6866
  d: t.form.disabled ? 1 : 0,
6855
6867
  r: t.form.readonly ? 1 : 0,
6856
6868
  u: t.form.updateValue,
6869
+ i: t.form.display,
6857
6870
  y: t.form.createButton ? 1 : 0,
6858
6871
  h: t.form.showDays ? 1 : 0,
6859
6872
  f: t.form.backfill ? 1 : 0,
@@ -6922,6 +6935,7 @@ const c2 = (e) => e.map((t) => {
6922
6935
  disabled: !!t.f.d,
6923
6936
  readonly: !!t.f.r,
6924
6937
  updateValue: t.f.u,
6938
+ display: t.f.i,
6925
6939
  createButton: !!t.f.y,
6926
6940
  showDays: !!t.f.h,
6927
6941
  backfill: !!t.f.f,
@@ -7191,7 +7205,7 @@ async function Xt(e, t = !1, r = 0, n = () => {
7191
7205
  default: () => null
7192
7206
  }
7193
7207
  );
7194
- }), (we.isMobile ? l.table.mobile : l.table.show) && (o = o + (Number(l.table.width) || (we.isMobile ? 80 : 160)));
7208
+ }), o = o + Number(l.table.width || 140);
7195
7209
  let v = {
7196
7210
  input: l.input,
7197
7211
  title: l.label,
@@ -7203,7 +7217,7 @@ async function Xt(e, t = !1, r = 0, n = () => {
7203
7217
  width: Number(l.table.width || 140),
7204
7218
  ellipsis: l.table.ellipsis ? { tooltip: !0, "line-clamp": l.table.clamp ?? 0 } : !1,
7205
7219
  render: l.table.render ? await u2(l.key, l.table.render, a) : void 0,
7206
- show: we.isMobile ? l.table.mobile ?? !1 : l.table.show ?? !0,
7220
+ show: ve.isMobile ? l.table.mobile ?? !1 : l.table.show ?? !0,
7207
7221
  pin: !!l.table.fixed,
7208
7222
  fixTemp: l.table.fixed
7209
7223
  };
@@ -7211,7 +7225,7 @@ async function Xt(e, t = !1, r = 0, n = () => {
7211
7225
  if (!v.form.edit.show)
7212
7226
  v = null;
7213
7227
  else {
7214
- if (v.ellipsis = !1, v.resizable = !1, we.isMobile && (v.show = l.table.mobile), l.table.show && (r === 0 && (v.show = l.form.create.show), r === 1 && (v.show = l.form.edit.show), r === 2 && (v.show = l.form.show)), (k = l.form.rule) != null && k.required && typeof l.form.rule.validator == "string") {
7228
+ if (v.ellipsis = !1, v.resizable = !1, ve.isMobile && (v.show = l.table.mobile), l.table.show && (r === 0 && (v.show = l.form.create.show), r === 1 && (v.show = l.form.edit.show), r === 2 && (v.show = l.form.show)), (k = l.form.rule) != null && k.required && typeof l.form.rule.validator == "string") {
7215
7229
  delete l.form.rule.message;
7216
7230
  const m = l.form.rule.validator, f = new Function("rule", "value", "index", "formValues", m);
7217
7231
  l.form.rule.validator !== "" ? l.form.rule.validator = (x, I) => n()[x.index].delete ? !0 : f(x, I, x.index, () => n()) : l.form.rule.validator = (x, I) => n()[x.index].delete || I ? !0 : new Error(l.form.rule.message);
@@ -7297,10 +7311,10 @@ async function Xt(e, t = !1, r = 0, n = () => {
7297
7311
  tableWidth: o
7298
7312
  };
7299
7313
  }
7300
- const p2 = se({
7314
+ const p2 = oe({
7301
7315
  name: "UzSpin",
7302
7316
  components: {
7303
- NButton: ye,
7317
+ NButton: ke,
7304
7318
  NSpin: Ua,
7305
7319
  NEllipsis: rd
7306
7320
  },
@@ -7321,7 +7335,7 @@ const p2 = se({
7321
7335
  }
7322
7336
  },
7323
7337
  setup(e, { emit: t }) {
7324
- const r = S(), n = S(5), a = () => {
7338
+ const r = T(), n = T(5), a = () => {
7325
7339
  t("update:value", !1);
7326
7340
  }, o = () => {
7327
7341
  clearInterval(r.value);
@@ -7347,7 +7361,7 @@ const p2 = se({
7347
7361
  });
7348
7362
  function h2(e, t, r, n, a, o) {
7349
7363
  const s = $("NEllipsis"), u = $("NButton"), p = $("NSpin");
7350
- return c(), O(p, { show: e.value }, {
7364
+ return c(), R(p, { show: e.value }, {
7351
7365
  description: y(() => [
7352
7366
  N(s, {
7353
7367
  "expand-trigger": "click",
@@ -7381,16 +7395,16 @@ function h2(e, t, r, n, a, o) {
7381
7395
  _: 3
7382
7396
  }, 8, ["show"]);
7383
7397
  }
7384
- const Nc = /* @__PURE__ */ _(p2, [["render", h2]]), w2 = se({
7398
+ const Nc = /* @__PURE__ */ _(p2, [["render", h2]]), w2 = oe({
7385
7399
  name: "UzOcr",
7386
7400
  components: {
7387
- NButton: ye,
7401
+ NButton: ke,
7388
7402
  NUpload: Ll,
7389
- NIcon: ge,
7403
+ NIcon: ye,
7390
7404
  Copy: Wa
7391
7405
  },
7392
7406
  setup() {
7393
- const e = Ot(), { toClipboard: t } = wd(), { t: r } = Bt(), n = S(), a = S(!1), o = S(r("OCR.scan")), s = S([]), u = S(null), p = async (g) => {
7407
+ const e = Ot(), { toClipboard: t } = wd(), { t: r } = Bt(), n = T(), a = T(!1), o = T(r("OCR.scan")), s = T([]), u = T(null), p = async (g) => {
7394
7408
  u.value || (u.value = await md(["chi_sim"], void 0, {
7395
7409
  workerPath: "https://www.skcloud.com.cn/static/worker.min.js",
7396
7410
  langPath: "https://www.skcloud.com.cn/static/chi_sim_vert.traineddata",
@@ -7475,7 +7489,7 @@ function g2(e, t, r, n, a, o) {
7475
7489
  }, 8, ["on-before-upload"]),
7476
7490
  t[0] || (t[0] = i("div", { class: "uz-br" }, null, -1)),
7477
7491
  i("div", v2, [
7478
- (c(!0), w(oe, null, be(e.text, (b) => (c(), w("div", {
7492
+ (c(!0), w(le, null, _e(e.text, (b) => (c(), w("div", {
7479
7493
  key: b,
7480
7494
  class: "uz-ocr-text flex items-center"
7481
7495
  }, [
@@ -7493,13 +7507,13 @@ function g2(e, t, r, n, a, o) {
7493
7507
  ], 512)
7494
7508
  ]);
7495
7509
  }
7496
- const Ic = /* @__PURE__ */ _(w2, [["render", g2], ["__scopeId", "data-v-e91e9583"]]), y2 = se({
7510
+ const Ic = /* @__PURE__ */ _(w2, [["render", g2], ["__scopeId", "data-v-e91e9583"]]), y2 = oe({
7497
7511
  name: "UzTable",
7498
7512
  components: {
7499
7513
  NDataTable: Pa,
7500
7514
  NPopover: dt,
7501
- NButton: ye,
7502
- NIcon: ge,
7515
+ NButton: ke,
7516
+ NIcon: ye,
7503
7517
  NDrawer: Va,
7504
7518
  NDrawerContent: Fa,
7505
7519
  NSkeleton: Jl,
@@ -7645,38 +7659,38 @@ const Ic = /* @__PURE__ */ _(w2, [["render", g2], ["__scopeId", "data-v-e91e9583
7645
7659
  value: () => null,
7646
7660
  setValue: () => null
7647
7661
  });
7648
- const a = Rt(), { t: o } = Bt(), s = Ot(), u = _t(() => we.isMobile), p = S(), h = S(!!n.header), b = S(), D = S(!1), g = S(!1), d = S(!1), k = S(""), l = S(), v = S([]), m = S([]), f = S([]), x = S(void 0), I = S({
7662
+ const a = Rt(), { t: o } = Bt(), s = Ot(), u = _t(() => ve.isMobile), p = T(), h = T(!!n.header), b = T(), D = T(!1), g = T(!1), d = T(!1), k = T(""), l = T(), v = T([]), m = T([]), f = T([]), x = T(void 0), I = T({
7649
7663
  params: [],
7650
7664
  query: {
7651
7665
  page: 1
7652
7666
  }
7653
- }), V = S([]), U = S(void 0), F = S(void 0), z = S(!1), j = S(0), C = S({}), T = S([]), R = S([]), A = S([]), q = S([]), P = S({
7667
+ }), V = T([]), U = T(void 0), F = T(void 0), z = T(!1), j = T(0), C = T({}), S = T([]), O = T([]), A = T([]), q = T([]), P = T({
7654
7668
  fetch: null,
7655
7669
  when_open: null,
7656
7670
  when_create: null,
7657
7671
  when_edit: null,
7658
7672
  when_delete: null,
7659
7673
  when_before_save: ""
7660
- }), J = S(ct()), ie = S(!1), le = S(0), de = S(""), Oe = S(!1), Me = S([]), me = S([]), nt = S(!1), St = S(""), Tt = S({}), Yt = Le("modules"), Zt = (M) => M.id, er = (M, B) => {
7674
+ }), J = T(ct()), ie = T(!1), se = T(0), de = T(""), Oe = T(!1), Me = T([]), we = T([]), nt = T(!1), St = T(""), Tt = T({}), Yt = Le("modules"), Zt = (M) => M.id, er = (M, B) => {
7661
7675
  t("update:rowKeys", {
7662
7676
  keys: M,
7663
7677
  rows: X(B)
7664
7678
  });
7665
7679
  }, tr = (M, B, G) => {
7666
- if (Me.value = M, G.action === "check" && me.value.push(G.row), G.action === "uncheck") {
7667
- const ne = me.value.findIndex(
7680
+ if (Me.value = M, G.action === "check" && we.value.push(G.row), G.action === "uncheck") {
7681
+ const ne = we.value.findIndex(
7668
7682
  (E) => {
7669
7683
  var Q;
7670
7684
  return E.id === ((Q = G.row) == null ? void 0 : Q.id);
7671
7685
  }
7672
7686
  );
7673
- me.value.splice(ne, 1);
7687
+ we.value.splice(ne, 1);
7674
7688
  }
7675
7689
  G.action === "checkAll" && B.forEach((ne) => {
7676
- ne && me.value.push(ne);
7677
- }), G.action === "uncheckAll" && (me.value = [], Me.value = []), t("update:rowKeys", {
7690
+ ne && we.value.push(ne);
7691
+ }), G.action === "uncheckAll" && (we.value = [], Me.value = []), t("update:rowKeys", {
7678
7692
  keys: X(Me.value),
7679
- rows: X(me.value)
7693
+ rows: X(we.value)
7680
7694
  });
7681
7695
  }, Je = (M) => {
7682
7696
  const B = M.filter((G) => G !== null && typeof G < "u" && G !== "");
@@ -7684,7 +7698,7 @@ const Ic = /* @__PURE__ */ _(w2, [["render", g2], ["__scopeId", "data-v-e91e9583
7684
7698
  }, rr = (M) => {
7685
7699
  const B = e.summary || J.value.summary;
7686
7700
  return B && typeof B == "string" ? new Function("pageData", "h", B)(M, "h", Z) : B && typeof B == "function" ? B(M) : [];
7687
- }, ve = (M = !1) => {
7701
+ }, me = (M = !1) => {
7688
7702
  const B = e.id || a.params.id;
7689
7703
  e.enableLoading && (D.value = !0, t("update:loading", !0));
7690
7704
  const G = X(I.value);
@@ -7708,11 +7722,11 @@ const Ic = /* @__PURE__ */ _(w2, [["render", g2], ["__scopeId", "data-v-e91e9583
7708
7722
  });
7709
7723
  }
7710
7724
  }, nr = (M) => {
7711
- I.value.query.page = M, p.value && (p.value.scrollTop = 0), ur(), ve();
7725
+ I.value.query.page = M, p.value && (p.value.scrollTop = 0), ur(), me();
7712
7726
  }, ar = (M) => {
7713
- I.value.query.pageSize = M, I.value.query.page = 1, ur(), ve();
7727
+ I.value.query.pageSize = M, I.value.query.page = 1, ur(), me();
7714
7728
  }, re = (M) => {
7715
- M && M.order ? I.value.orderby = `${M.columnKey} ${M.order.replace("end", "")}` : delete I.value.orderby, ve();
7729
+ M && M.order ? I.value.orderby = `${M.columnKey} ${M.order.replace("end", "")}` : delete I.value.orderby, me();
7716
7730
  }, at = () => {
7717
7731
  fe(), typeof e.addFetch == "function" ? e.addFetch() : (j.value = 0, z.value = !0);
7718
7732
  }, ee = (M) => {
@@ -7725,7 +7739,7 @@ const Ic = /* @__PURE__ */ _(w2, [["render", g2], ["__scopeId", "data-v-e91e9583
7725
7739
  B.show && M.push(B);
7726
7740
  }), v.value = M;
7727
7741
  }, or = (M) => {
7728
- I.value.params = M, ve();
7742
+ I.value.params = M, me();
7729
7743
  }, ot = () => [
7730
7744
  {
7731
7745
  title: "创建人/时间",
@@ -7777,12 +7791,12 @@ const Ic = /* @__PURE__ */ _(w2, [["render", g2], ["__scopeId", "data-v-e91e9583
7777
7791
  )
7778
7792
  ]
7779
7793
  }
7780
- ], ke = (M) => {
7794
+ ], be = (M) => {
7781
7795
  var B;
7782
- return !e.ruleFetch || !T.value || T.value && T.value[0] === "*" ? !1 : !((B = T.value) != null && B.includes(M));
7796
+ return !e.ruleFetch || !S.value || S.value && S.value[0] === "*" ? !1 : !((B = S.value) != null && B.includes(M));
7783
7797
  }, fe = async (M) => {
7784
7798
  const { form: B, fillingDefaultValue: G } = await Qt(
7785
- R.value,
7799
+ O.value,
7786
7800
  M,
7787
7801
  () => b.value.getValues()
7788
7802
  );
@@ -7806,13 +7820,13 @@ const Ic = /* @__PURE__ */ _(w2, [["render", g2], ["__scopeId", "data-v-e91e9583
7806
7820
  if (M.disabled) {
7807
7821
  if (typeof M.disabled == "string") {
7808
7822
  const E = new Function("rowData", "rowIndex", M.disabled);
7809
- M.disabled = (Q, ae) => E(Q, ae) || ke(M.key);
7823
+ M.disabled = (Q, ae) => E(Q, ae) || be(M.key);
7810
7824
  } else if (typeof M.disabled == "function") {
7811
7825
  const E = X(M);
7812
- M.disabled = (Q, ae) => E.disabled(Q, ae) || ke(M.key);
7826
+ M.disabled = (Q, ae) => E.disabled(Q, ae) || be(M.key);
7813
7827
  }
7814
7828
  } else
7815
- M.disabled = () => ke(M.key);
7829
+ M.disabled = () => be(M.key);
7816
7830
  if (M.loading = D.value, M.type !== "group" && M.optionsType)
7817
7831
  M.onClick = async (E) => {
7818
7832
  Fe(E).then((Q) => {
@@ -7824,9 +7838,11 @@ const Ic = /* @__PURE__ */ _(w2, [["render", g2], ["__scopeId", "data-v-e91e9583
7824
7838
  "POST",
7825
7839
  "fnNotification",
7826
7840
  G
7827
- )(Q, he, s).then((xe) => {
7828
- Tt.value = xe;
7829
- }).catch(() => null);
7841
+ )(Q, he, s).then((ge) => {
7842
+ Tt.value = ge;
7843
+ }).catch((ge) => {
7844
+ console.log(ge);
7845
+ });
7830
7846
  } catch {
7831
7847
  }
7832
7848
  St.value = M.optionsSource || "", nt.value = !0;
@@ -7846,7 +7862,7 @@ const Ic = /* @__PURE__ */ _(w2, [["render", g2], ["__scopeId", "data-v-e91e9583
7846
7862
  const E = X(M.onClick);
7847
7863
  M.onClick = (Q) => {
7848
7864
  z.value = !0, j.value = 2, Fe(Q).then(async (ae) => {
7849
- const xe = await fe(ae), pe = { ...ae, ...xe };
7865
+ const ge = await fe(ae), pe = { ...ae, ...ge };
7850
7866
  if (E && typeof E == "string")
7851
7867
  try {
7852
7868
  new Function(
@@ -7869,7 +7885,7 @@ const Ic = /* @__PURE__ */ _(w2, [["render", g2], ["__scopeId", "data-v-e91e9583
7869
7885
  const E = X(M.onClick);
7870
7886
  M.onClick = (Q) => {
7871
7887
  z.value = !0, j.value = 1, Fe(Q).then(async (ae) => {
7872
- const xe = await fe(ae), pe = { ...ae, ...xe };
7888
+ const ge = await fe(ae), pe = { ...ae, ...ge };
7873
7889
  if (E && typeof E == "string")
7874
7890
  try {
7875
7891
  new Function(
@@ -7900,7 +7916,7 @@ const Ic = /* @__PURE__ */ _(w2, [["render", g2], ["__scopeId", "data-v-e91e9583
7900
7916
  tableId: ne,
7901
7917
  sub_table_ids: B
7902
7918
  }), Q.then(() => {
7903
- if (ve(), P.value.when_delete) {
7919
+ if (me(), P.value.when_delete) {
7904
7920
  const ae = Je(P.value.when_delete);
7905
7921
  ae && Ue(ae, E.id);
7906
7922
  }
@@ -7917,8 +7933,8 @@ const Ic = /* @__PURE__ */ _(w2, [["render", g2], ["__scopeId", "data-v-e91e9583
7917
7933
  }) : ae = Ze({
7918
7934
  id: Q.id,
7919
7935
  tableId: ne
7920
- }), ae.then((xe) => {
7921
- const pe = xe && xe[0];
7936
+ }), ae.then((ge) => {
7937
+ const pe = ge && ge[0];
7922
7938
  Ue(
7923
7939
  [M.action],
7924
7940
  pe.id,
@@ -7930,7 +7946,7 @@ const Ic = /* @__PURE__ */ _(w2, [["render", g2], ["__scopeId", "data-v-e91e9583
7930
7946
  s.success({
7931
7947
  content: lr,
7932
7948
  duration: 3e3
7933
- }), ve();
7949
+ }), me();
7934
7950
  }).catch((lr) => {
7935
7951
  s.error({
7936
7952
  content: lr,
@@ -7947,19 +7963,19 @@ const Ic = /* @__PURE__ */ _(w2, [["render", g2], ["__scopeId", "data-v-e91e9583
7947
7963
  s.success({
7948
7964
  content: () => o("Notice.success"),
7949
7965
  duration: 3e3
7950
- }), ve();
7966
+ }), me();
7951
7967
  });
7952
7968
  return;
7953
7969
  }
7954
7970
  s.success({
7955
7971
  content: () => o("Notice.success"),
7956
7972
  duration: 3e3
7957
- }), ve();
7973
+ }), me();
7958
7974
  }).catch(() => {
7959
7975
  s.error({
7960
7976
  content: () => o("Notice.failed"),
7961
7977
  duration: 3e3
7962
- }), ve();
7978
+ }), me();
7963
7979
  });
7964
7980
  }).catch(() => {
7965
7981
  });
@@ -7968,7 +7984,7 @@ const Ic = /* @__PURE__ */ _(w2, [["render", g2], ["__scopeId", "data-v-e91e9583
7968
7984
  }, Nt = async () => {
7969
7985
  Oe.value = !1, Ma();
7970
7986
  const { tableColumns: M, search: B, subTableIds: G, tableWidth: ne } = await Xt(
7971
- R.value,
7987
+ O.value,
7972
7988
  e.child,
7973
7989
  j.value,
7974
7990
  () => C.value,
@@ -7984,14 +8000,14 @@ const Ic = /* @__PURE__ */ _(w2, [["render", g2], ["__scopeId", "data-v-e91e9583
7984
8000
  width: 60,
7985
8001
  hide: !0,
7986
8002
  show: !0,
7987
- render(ae, xe) {
8003
+ render(ae, ge) {
7988
8004
  return Z(
7989
8005
  "span",
7990
8006
  {},
7991
8007
  {
7992
8008
  default: () => {
7993
8009
  const pe = I.value.query.page || 1, De = I.value.query.pageSize || 30;
7994
- return (pe - 1) * De + (xe + 1);
8010
+ return (pe - 1) * De + (ge + 1);
7995
8011
  }
7996
8012
  }
7997
8013
  );
@@ -8012,7 +8028,7 @@ const Ic = /* @__PURE__ */ _(w2, [["render", g2], ["__scopeId", "data-v-e91e9583
8012
8028
  pe.type === "group" ? pe.children.forEach((De) => {
8013
8029
  Qe(De, G);
8014
8030
  }) : Qe(pe, G);
8015
- const xe = {
8031
+ const ge = {
8016
8032
  title: () => o("Common.action"),
8017
8033
  key: "action",
8018
8034
  align: "center",
@@ -8026,14 +8042,14 @@ const Ic = /* @__PURE__ */ _(w2, [["render", g2], ["__scopeId", "data-v-e91e9583
8026
8042
  return $t({
8027
8043
  buttons: ae,
8028
8044
  rowData: pe,
8029
- callback: ve,
8045
+ callback: me,
8030
8046
  tableId: Q
8031
8047
  });
8032
8048
  }
8033
8049
  };
8034
8050
  E = E + Number(
8035
8051
  typeof J.value.actionWidth == "string" ? J.value.actionWidth.replace("px", "") : J.value.actionWidth
8036
- ), M.push(xe);
8052
+ ), M.push(ge);
8037
8053
  }
8038
8054
  m.value = M, V.value = B, x.value = E;
8039
8055
  }, st = (M) => typeof M == "number" ? `${M}px` : M, Ve = () => {
@@ -8058,15 +8074,15 @@ const Ic = /* @__PURE__ */ _(w2, [["render", g2], ["__scopeId", "data-v-e91e9583
8058
8074
  (M = b.value) == null || M.restoreValidation(), C.value = {}, d.value = !1, z.value = !1;
8059
8075
  }, sr = () => {
8060
8076
  var M;
8061
- le.value = 0, ie.value = !0, (M = b.value) == null || M.validate().then(async (B) => {
8077
+ se.value = 0, ie.value = !0, (M = b.value) == null || M.validate().then(async (B) => {
8062
8078
  if (P.value.when_before_save) {
8063
8079
  const E = P.value.when_before_save, Q = new Function("data", "POST", E);
8064
8080
  try {
8065
8081
  B = await Q(B, he).catch((ae) => {
8066
- le.value = 1, de.value = ae.message;
8082
+ se.value = 1, de.value = ae.message;
8067
8083
  });
8068
8084
  } catch (ae) {
8069
- le.value = 1, de.value = ae.message;
8085
+ se.value = 1, de.value = ae.message;
8070
8086
  return;
8071
8087
  }
8072
8088
  }
@@ -8079,7 +8095,7 @@ const Ic = /* @__PURE__ */ _(w2, [["render", g2], ["__scopeId", "data-v-e91e9583
8079
8095
  tableId: ne,
8080
8096
  ...B
8081
8097
  }), G.then((E) => {
8082
- if (Ma(), ie.value = !1, ve(), Xe(), !j.value && P.value.when_create) {
8098
+ if (Ma(), ie.value = !1, me(), Xe(), !j.value && P.value.when_create) {
8083
8099
  const Q = Je(P.value.when_create);
8084
8100
  Q && Ue(Q, E.id);
8085
8101
  }
@@ -8088,13 +8104,13 @@ const Ic = /* @__PURE__ */ _(w2, [["render", g2], ["__scopeId", "data-v-e91e9583
8088
8104
  Q && Ue(Q, B.id);
8089
8105
  }
8090
8106
  }).catch((E) => {
8091
- le.value = 1, de.value = E;
8107
+ se.value = 1, de.value = E;
8092
8108
  });
8093
8109
  }).catch(() => {
8094
8110
  ie.value = !1;
8095
8111
  });
8096
8112
  }, It = () => {
8097
- k.value = "", R.value = [], A.value = [], q.value = [], P.value = {
8113
+ k.value = "", O.value = [], A.value = [], q.value = [], P.value = {
8098
8114
  fetch: null,
8099
8115
  when_open: null,
8100
8116
  when_create: null,
@@ -8104,12 +8120,12 @@ const Ic = /* @__PURE__ */ _(w2, [["render", g2], ["__scopeId", "data-v-e91e9583
8104
8120
  }, J.value = ct();
8105
8121
  }, Ie = (M) => {
8106
8122
  const B = tt.parse(M.viewJson);
8107
- k.value = M.tableTitle, R.value = bt(B.table), A.value = At(e.actions || B.action);
8123
+ k.value = M.tableTitle, O.value = bt(B.table), A.value = At(e.actions || B.action);
8108
8124
  const G = At(B.suffix || []);
8109
8125
  q.value = G.map((E) => (wo(E), E)), P.value = Tc(B.trigger);
8110
8126
  const ne = ct(e.options ?? B.option);
8111
8127
  M.tableTitle && ne.title && Mm(M.tableTitle), J.value = ne;
8112
- }, _e = async () => {
8128
+ }, xe = async () => {
8113
8129
  g.value = !1, It();
8114
8130
  const M = e.id || a.params.id;
8115
8131
  if (I.value = {
@@ -8119,12 +8135,12 @@ const Ic = /* @__PURE__ */ _(w2, [["render", g2], ["__scopeId", "data-v-e91e9583
8119
8135
  }
8120
8136
  }, f.value = [], e.ruleFetch)
8121
8137
  try {
8122
- T.value = await e.ruleFetch(M);
8138
+ S.value = await e.ruleFetch(M);
8123
8139
  } catch {
8124
8140
  de.value = o("Notice.network"), Oe.value = !0;
8125
8141
  return;
8126
8142
  }
8127
- if (Ve(), e.columns ? (R.value = e.columns || [], A.value = e.actions || [], q.value = e.suffixes || [], J.value = ct(e.options), await Nt()) : await kt(M).then(async (B) => {
8143
+ if (Ve(), e.columns ? (O.value = e.columns || [], A.value = e.actions || [], q.value = e.suffixes || [], J.value = ct(e.options), await Nt()) : await kt(M).then(async (B) => {
8128
8144
  if (Ie(B), await Nt(), P.value.when_open) {
8129
8145
  const G = Je(P.value.when_open);
8130
8146
  G && await Ue(G);
@@ -8154,7 +8170,7 @@ const Ic = /* @__PURE__ */ _(w2, [["render", g2], ["__scopeId", "data-v-e91e9583
8154
8170
  if (B && typeof B == "string") {
8155
8171
  try {
8156
8172
  const G = new Function("POST", "fnNotification", B);
8157
- await G(he, s, G), ve();
8173
+ await G(he, s, G), me();
8158
8174
  } catch (G) {
8159
8175
  throw new Error(G);
8160
8176
  }
@@ -8163,8 +8179,8 @@ const Ic = /* @__PURE__ */ _(w2, [["render", g2], ["__scopeId", "data-v-e91e9583
8163
8179
  };
8164
8180
  }
8165
8181
  };
8166
- return r({ rebuild: _e, init: ve }), Ae(async () => {
8167
- await _e();
8182
+ return r({ rebuild: xe, init: me }), Ae(async () => {
8183
+ await xe();
8168
8184
  }), ce(
8169
8185
  () => m.value,
8170
8186
  () => {
@@ -8172,7 +8188,7 @@ const Ic = /* @__PURE__ */ _(w2, [["render", g2], ["__scopeId", "data-v-e91e9583
8172
8188
  },
8173
8189
  { deep: !0 }
8174
8190
  ), ce([() => a.params.id, () => e.id], async () => {
8175
- ur(), await _e();
8191
+ ur(), await xe();
8176
8192
  }), {
8177
8193
  loading: D,
8178
8194
  minH: U,
@@ -8193,7 +8209,7 @@ const Ic = /* @__PURE__ */ _(w2, [["render", g2], ["__scopeId", "data-v-e91e9583
8193
8209
  dynamicLoading: g,
8194
8210
  spinShow: ie,
8195
8211
  spinMsg: de,
8196
- spinStatus: le,
8212
+ spinStatus: se,
8197
8213
  tableScrollX: x,
8198
8214
  ocrShow: d,
8199
8215
  suffixes: q,
@@ -8217,9 +8233,9 @@ const Ic = /* @__PURE__ */ _(w2, [["render", g2], ["__scopeId", "data-v-e91e9583
8217
8233
  handleCheckRowKeys: tr,
8218
8234
  drawerCancel: Xe,
8219
8235
  drawerSubmit: sr,
8220
- checkRole: ke,
8236
+ checkRole: be,
8221
8237
  handleSuffixClick: wo,
8222
- rebuild: _e,
8238
+ rebuild: xe,
8223
8239
  summaryFn: rr,
8224
8240
  handleMobileCheckRowKeys: er
8225
8241
  };
@@ -8307,7 +8323,7 @@ function D2(e, t, r, n, a, o) {
8307
8323
  "onOnUpdate:value": e.submit
8308
8324
  }, ze({
8309
8325
  action: y(() => [
8310
- e.addFetch && e.tableOption.addButton ? (c(), O(u, {
8326
+ e.addFetch && e.tableOption.addButton ? (c(), R(u, {
8311
8327
  key: 0,
8312
8328
  secondary: "",
8313
8329
  disabled: e.checkRole("add"),
@@ -8326,7 +8342,7 @@ function D2(e, t, r, n, a, o) {
8326
8342
  ]),
8327
8343
  _: 1
8328
8344
  }, 8, ["disabled", "onClick"])) : W("", !0),
8329
- e.suffixes && e.suffixes.length > 0 ? (c(), O(b, {
8345
+ e.suffixes && e.suffixes.length > 0 ? (c(), R(b, {
8330
8346
  key: 1,
8331
8347
  data: e.suffixes,
8332
8348
  hProps: {
@@ -8366,7 +8382,7 @@ function D2(e, t, r, n, a, o) {
8366
8382
  }, null, 8, ["tableColumns", "tableData", "tableQueries", "pageChange", "selection", "minH", "maxH", "onUpdate:rowKeys"])
8367
8383
  ], 512)
8368
8384
  ], 2)) : (c(), w("div", M2, [
8369
- e.enableHeader ? (c(), O(f, {
8385
+ e.enableHeader ? (c(), R(f, {
8370
8386
  key: 0,
8371
8387
  data: e.searchData,
8372
8388
  id: e.id || e.route.params.id,
@@ -8376,7 +8392,7 @@ function D2(e, t, r, n, a, o) {
8376
8392
  "onOnUpdate:value": e.submit
8377
8393
  }, ze({
8378
8394
  action: y(() => [
8379
- e.tableOption.filterButton && e.baseColumns.length > 0 ? (c(), O(m, {
8395
+ e.tableOption.filterButton && e.baseColumns.length > 0 ? (c(), R(m, {
8380
8396
  key: 0,
8381
8397
  placement: "bottom-end",
8382
8398
  trigger: "click",
@@ -8401,7 +8417,7 @@ function D2(e, t, r, n, a, o) {
8401
8417
  default: y(() => [
8402
8418
  N(v, ba({
8403
8419
  modelValue: e.baseColumns,
8404
- "onUpdate:modelValue": t[0] || (t[0] = (T) => e.baseColumns = T)
8420
+ "onUpdate:modelValue": t[0] || (t[0] = (S) => e.baseColumns = S)
8405
8421
  }, {
8406
8422
  animation: 200
8407
8423
  }, {
@@ -8410,18 +8426,18 @@ function D2(e, t, r, n, a, o) {
8410
8426
  handle: ".uz-drag-handle",
8411
8427
  onEnd: e.handleColumnChange
8412
8428
  }), {
8413
- item: y(({ element: T }) => [
8414
- T.hide ? W("", !0) : (c(), w("div", {
8415
- key: T.key,
8429
+ item: y(({ element: S }) => [
8430
+ S.hide ? W("", !0) : (c(), w("div", {
8431
+ key: S.key,
8416
8432
  class: "uz-table-sort"
8417
8433
  }, [
8418
8434
  N(k, {
8419
- checked: T.show,
8420
- "on-update:checked": () => e.showChange(T),
8435
+ checked: S.show,
8436
+ "on-update:checked": () => e.showChange(S),
8421
8437
  size: "large"
8422
8438
  }, {
8423
8439
  default: y(() => [
8424
- K(H(typeof T.title == "string" ? T.title : T.title && T.title()), 1)
8440
+ K(H(typeof S.title == "string" ? S.title : S.title && S.title()), 1)
8425
8441
  ]),
8426
8442
  _: 2
8427
8443
  }, 1032, ["checked", "on-update:checked"]),
@@ -8446,7 +8462,7 @@ function D2(e, t, r, n, a, o) {
8446
8462
  ]),
8447
8463
  _: 1
8448
8464
  })) : W("", !0),
8449
- e.addFetch && e.tableOption.addButton ? (c(), O(u, {
8465
+ e.addFetch && e.tableOption.addButton ? (c(), R(u, {
8450
8466
  key: 1,
8451
8467
  secondary: "",
8452
8468
  disabled: e.checkRole("add"),
@@ -8465,7 +8481,7 @@ function D2(e, t, r, n, a, o) {
8465
8481
  ]),
8466
8482
  _: 1
8467
8483
  }, 8, ["disabled", "onClick"])) : W("", !0),
8468
- e.suffixes && e.suffixes.length > 0 ? (c(), O(b, {
8484
+ e.suffixes && e.suffixes.length > 0 ? (c(), R(b, {
8469
8485
  key: 2,
8470
8486
  data: e.suffixes,
8471
8487
  hProps: {
@@ -8524,7 +8540,7 @@ function D2(e, t, r, n, a, o) {
8524
8540
  ]),
8525
8541
  N(j, {
8526
8542
  show: e.drawer,
8527
- "onUpdate:show": t[3] || (t[3] = (T) => e.drawer = T),
8543
+ "onUpdate:show": t[3] || (t[3] = (S) => e.drawer = S),
8528
8544
  width: e.isMobile ? "96%" : e.tableOption.drawerWidth,
8529
8545
  height: e.isMobile ? "96%" : e.tableOption.drawerHeight,
8530
8546
  placement: e.isMobile ? "bottom" : e.tableOption.placement,
@@ -8540,10 +8556,10 @@ function D2(e, t, r, n, a, o) {
8540
8556
  }, ze({
8541
8557
  default: y(() => [
8542
8558
  i("div", T2, [
8543
- e.ocrShow ? (c(), O(V, { key: 0 })) : W("", !0),
8559
+ e.ocrShow ? (c(), R(V, { key: 0 })) : W("", !0),
8544
8560
  N(F, {
8545
8561
  value: e.spinShow,
8546
- "onUpdate:value": t[1] || (t[1] = (T) => e.spinShow = T),
8562
+ "onUpdate:value": t[1] || (t[1] = (S) => e.spinShow = S),
8547
8563
  message: e.spinMsg,
8548
8564
  status: e.spinStatus,
8549
8565
  class: "flex-1"
@@ -8567,10 +8583,10 @@ function D2(e, t, r, n, a, o) {
8567
8583
  fn: y(() => [
8568
8584
  i("div", N2, [
8569
8585
  i("div", null, [
8570
- e.isMobile ? W("", !0) : (c(), O(u, {
8586
+ e.isMobile ? W("", !0) : (c(), R(u, {
8571
8587
  key: 0,
8572
8588
  type: "primary",
8573
- onClick: t[2] || (t[2] = (T) => e.ocrShow = !e.ocrShow),
8589
+ onClick: t[2] || (t[2] = (S) => e.ocrShow = !e.ocrShow),
8574
8590
  tertiary: ""
8575
8591
  }, {
8576
8592
  default: y(() => [
@@ -8611,15 +8627,15 @@ function D2(e, t, r, n, a, o) {
8611
8627
  }, 8, ["show", "width", "height", "placement", "on-after-leave"]),
8612
8628
  N(C, {
8613
8629
  show: e.insiderShow,
8614
- "onUpdate:show": t[4] || (t[4] = (T) => e.insiderShow = T),
8630
+ "onUpdate:show": t[4] || (t[4] = (S) => e.insiderShow = S),
8615
8631
  link: e.insiderLink,
8616
8632
  mainData: e.insiderData
8617
8633
  }, null, 8, ["show", "link", "mainData"])
8618
8634
  ]);
8619
8635
  }
8620
- const j2 = /* @__PURE__ */ _(y2, [["render", D2]]), z2 = se({
8636
+ const j2 = /* @__PURE__ */ _(y2, [["render", D2]]), z2 = oe({
8621
8637
  name: "UzTableChild",
8622
- components: { NButton: ye, NIcon: ge, NDataTable: Pa, NForm: Ra, NDivider: Aa, Plus: ft, GridDots: yt },
8638
+ components: { NButton: ke, NIcon: ye, NDataTable: Pa, NForm: Ra, NDivider: Aa, Plus: ft, GridDots: yt },
8623
8639
  props: {
8624
8640
  value: { type: Array, default: () => [] },
8625
8641
  item: {
@@ -8635,20 +8651,20 @@ const j2 = /* @__PURE__ */ _(y2, [["render", D2]]), z2 = se({
8635
8651
  },
8636
8652
  emits: ["update:value"],
8637
8653
  setup(e, { emit: t, expose: r }) {
8638
- const n = Le("emitSuffix"), a = Le("modules"), o = Le("mainFormValue"), { t: s } = Bt(), u = S(), p = S(), h = S(), b = S(!1), D = S(!0), g = S([]), d = S({ child: [] }), k = S(""), l = S({}), v = S(void 0), m = async (T) => {
8639
- const { formDefaultValue: R, fillingDefaultArray: A } = await Qt(
8654
+ const n = Le("emitSuffix"), a = Le("modules"), o = Le("mainFormValue"), { t: s } = Bt(), u = T(), p = T(), h = T(), b = T(!1), D = T(!0), g = T([]), d = T({ child: [] }), k = T(""), l = T({}), v = T(void 0), m = async (S) => {
8655
+ const { formDefaultValue: O, fillingDefaultArray: A } = await Qt(
8640
8656
  e.item.params.columns,
8641
- T
8657
+ S
8642
8658
  );
8643
- return l.value = R, A;
8644
- }, f = async (T) => {
8659
+ return l.value = O, A;
8660
+ }, f = async (S) => {
8645
8661
  if (b.value)
8646
8662
  return;
8647
8663
  b.value = !0;
8648
- const R = await m(T);
8649
- let A = X(T).map((q, P) => ({
8664
+ const O = await m(S);
8665
+ let A = X(S).map((q, P) => ({
8650
8666
  ...q,
8651
- ...R[P]
8667
+ ...O[P]
8652
8668
  }));
8653
8669
  if (e.item.params.link) {
8654
8670
  const q = [];
@@ -8672,17 +8688,17 @@ const j2 = /* @__PURE__ */ _(y2, [["render", D2]]), z2 = se({
8672
8688
  Pe(() => {
8673
8689
  C();
8674
8690
  });
8675
- }, x = (T) => T.delete ? "uz-table-child-delete" : "", I = async (T) => {
8676
- await m(T);
8677
- const { tableColumns: R, tableWidth: A } = await Xt(
8678
- X(T ?? e.item.params.columns),
8691
+ }, x = (S) => S.delete ? "uz-table-child-delete" : "", I = async (S) => {
8692
+ await m(S);
8693
+ const { tableColumns: O, tableWidth: A } = await Xt(
8694
+ X(S ?? e.item.params.columns),
8679
8695
  !0,
8680
8696
  e.status,
8681
8697
  () => d.value.child,
8682
8698
  a
8683
8699
  );
8684
8700
  let q = A;
8685
- if (R.unshift({
8701
+ if (O.unshift({
8686
8702
  title: " ",
8687
8703
  key: "index",
8688
8704
  align: "center",
@@ -8693,7 +8709,7 @@ const j2 = /* @__PURE__ */ _(y2, [["render", D2]]), z2 = se({
8693
8709
  // render(_: ObjectKey, rowIndex: number) {
8694
8710
  // return h('span', {}, { default: () => rowIndex + 1 })
8695
8711
  // }
8696
- }), q = q + 60, e.item.params.draggable && e.status !== 2 && (R.unshift({
8712
+ }), q = q + 60, e.item.params.draggable && e.status !== 2 && (O.unshift({
8697
8713
  title: " ",
8698
8714
  key: "draggable",
8699
8715
  align: "center",
@@ -8709,7 +8725,7 @@ const j2 = /* @__PURE__ */ _(y2, [["render", D2]]), z2 = se({
8709
8725
  {
8710
8726
  class: "flex justify-center"
8711
8727
  },
8712
- Z(ge, {}, { default: () => Z(yt) })
8728
+ Z(ye, {}, { default: () => Z(yt) })
8713
8729
  );
8714
8730
  }
8715
8731
  }), q = q + 40), e.status !== 2) {
@@ -8723,7 +8739,7 @@ const j2 = /* @__PURE__ */ _(y2, [["render", D2]]), z2 = se({
8723
8739
  show: !0,
8724
8740
  hide: !0,
8725
8741
  width: 60,
8726
- render(ie, le) {
8742
+ render(ie, se) {
8727
8743
  const de = [], Oe = {
8728
8744
  type: "normal",
8729
8745
  color: "error",
@@ -8735,33 +8751,33 @@ const j2 = /* @__PURE__ */ _(y2, [["render", D2]]), z2 = se({
8735
8751
  Me && typeof Me == "string" ? ie = new Function("rowData", "mainFormValue", Me)(ie, o) : ie.delete = !0;
8736
8752
  }
8737
8753
  };
8738
- return e.item.params.childActions && e.item.params.actions && At(e.item.params.actions).forEach((me) => {
8739
- if (me.disabled && typeof me.disabled == "string") {
8740
- const nt = new Function("rowData", "rowIndex", me.disabled);
8741
- me.disabled = nt(ie, le);
8754
+ return e.item.params.childActions && e.item.params.actions && At(e.item.params.actions).forEach((we) => {
8755
+ if (we.disabled && typeof we.disabled == "string") {
8756
+ const nt = new Function("rowData", "rowIndex", we.disabled);
8757
+ we.disabled = nt(ie, se);
8742
8758
  }
8743
- de.push(me);
8759
+ de.push(we);
8744
8760
  }), e.item.params.showDelete && (e.status !== 2 && (d.value.child.length > 1 && e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) && de.push(Oe), $t({
8745
8761
  buttons: de,
8746
8762
  rowData: ie
8747
8763
  });
8748
8764
  }
8749
8765
  };
8750
- R.push(J);
8766
+ O.push(J);
8751
8767
  }
8752
8768
  const P = [];
8753
- R.forEach((J) => {
8769
+ O.forEach((J) => {
8754
8770
  J.show && P.push(J);
8755
8771
  }), g.value = P, q = q + 180, v.value = q;
8756
- }, V = (T) => {
8772
+ }, V = (S) => {
8757
8773
  if (e.item.params.summary) {
8758
8774
  if (typeof e.item.params.summary == "function")
8759
- return e.item.params.summary(T);
8775
+ return e.item.params.summary(S);
8760
8776
  try {
8761
- const R = e.item.params.summary;
8762
- return new Function("pageData", "h", R)(T, Z);
8763
- } catch (R) {
8764
- throw new Error(R);
8777
+ const O = e.item.params.summary;
8778
+ return new Function("pageData", "h", O)(S, Z);
8779
+ } catch (O) {
8780
+ throw new Error(O);
8765
8781
  }
8766
8782
  }
8767
8783
  return [];
@@ -8772,15 +8788,15 @@ const j2 = /* @__PURE__ */ _(y2, [["render", D2]]), z2 = se({
8772
8788
  }, F = async () => {
8773
8789
  k.value = "";
8774
8790
  try {
8775
- const T = e.item.params.options;
8776
- if (T) {
8777
- const R = new Function("formValue", "mainFormValue", "POST", T);
8791
+ const S = e.item.params.options;
8792
+ if (S) {
8793
+ const O = new Function("formValue", "mainFormValue", "POST", S);
8778
8794
  e.item.params.optionsType && n({
8779
8795
  open: e.item.params.optionsType,
8780
8796
  mainFormValue: o,
8781
8797
  children: () => d.value.child,
8782
8798
  callback: async (A) => {
8783
- const q = await R(A, o, he);
8799
+ const q = await O(A, o, he);
8784
8800
  d.value.child = [...d.value.child, ...q], Pe(() => {
8785
8801
  C();
8786
8802
  });
@@ -8791,46 +8807,46 @@ const j2 = /* @__PURE__ */ _(y2, [["render", D2]]), z2 = se({
8791
8807
  open: e.item.params.optionsType,
8792
8808
  mainFormValue: o,
8793
8809
  children: () => d.value.child,
8794
- callback: async (R) => {
8795
- d.value.child = [...d.value.child, ...R], Pe(() => {
8810
+ callback: async (O) => {
8811
+ d.value.child = [...d.value.child, ...O], Pe(() => {
8796
8812
  C();
8797
8813
  });
8798
8814
  }
8799
8815
  });
8800
- } catch (T) {
8801
- throw new Error(T);
8816
+ } catch (S) {
8817
+ throw new Error(S);
8802
8818
  }
8803
8819
  }, z = () => {
8804
- var T;
8805
- (T = h.value) == null || T.restoreValidation();
8806
- }, j = () => (k.value = "", new Promise((T, R) => {
8820
+ var S;
8821
+ (S = h.value) == null || S.restoreValidation();
8822
+ }, j = () => (k.value = "", new Promise((S, O) => {
8807
8823
  var q;
8808
8824
  const A = d.value.child.filter(
8809
8825
  (P) => !P.delete
8810
8826
  ).length;
8811
8827
  if (e.item.form.rule.required && A === 0) {
8812
- k.value = e.item.form.rule.message, R();
8828
+ k.value = e.item.form.rule.message, O();
8813
8829
  return;
8814
8830
  }
8815
8831
  (q = h.value) == null || q.validate((P) => {
8816
- P ? R() : T();
8832
+ P ? O() : S();
8817
8833
  });
8818
8834
  })), C = () => {
8819
8835
  if (e.item.params.draggable && e.status !== 2 && u.value && !p.value) {
8820
- const T = u.value.$el.querySelector(".n-data-table-tbody");
8821
- T && (p.value = vd.create(T, {
8836
+ const S = u.value.$el.querySelector(".n-data-table-tbody");
8837
+ S && (p.value = vd.create(S, {
8822
8838
  handle: ".uz-drag-handle",
8823
8839
  // setData(dataTransfer: any) {
8824
8840
  // dataTransfer.setData('Text', '')
8825
8841
  // },
8826
- onEnd: ({ oldIndex: R, newIndex: A }) => {
8842
+ onEnd: ({ oldIndex: O, newIndex: A }) => {
8827
8843
  var J;
8828
8844
  (J = p.value) == null || J.destroy(), p.value = null, D.value = !1;
8829
8845
  let q = X(d.value.child);
8830
- const P = q.splice(R, 1)[0];
8831
- q.splice(A, 0, P), q = q.map((ie, le) => ({
8846
+ const P = q.splice(O, 1)[0];
8847
+ q.splice(A, 0, P), q = q.map((ie, se) => ({
8832
8848
  ...ie,
8833
- sort_index: le
8849
+ sort_index: se
8834
8850
  })), d.value.child = q, Pe(() => {
8835
8851
  D.value = !0, setTimeout(() => {
8836
8852
  C();
@@ -8843,24 +8859,24 @@ const j2 = /* @__PURE__ */ _(y2, [["render", D2]]), z2 = se({
8843
8859
  return Ae(() => {
8844
8860
  I(), e.value && e.value.length > 0 ? f(e.value) : m(e.value);
8845
8861
  }), Da(() => {
8846
- var T;
8847
- (T = p.value) == null || T.destroy(), p.value = null;
8862
+ var S;
8863
+ (S = p.value) == null || S.destroy(), p.value = null;
8848
8864
  }), r({ validate: j, restoreValidation: z }), ce(
8849
8865
  () => e.item.params.columns,
8850
- (T, R) => {
8851
- JSON.stringify(T) !== JSON.stringify(R) && I(T);
8866
+ (S, O) => {
8867
+ JSON.stringify(S) !== JSON.stringify(O) && I(S);
8852
8868
  },
8853
8869
  { deep: !0 }
8854
8870
  ), ce(
8855
8871
  () => e.value,
8856
- (T, R) => {
8857
- JSON.stringify(T) !== JSON.stringify(R) && f(T);
8872
+ (S, O) => {
8873
+ JSON.stringify(S) !== JSON.stringify(O) && f(S);
8858
8874
  },
8859
8875
  { deep: !0 }
8860
8876
  ), ce(
8861
8877
  () => d.value.child,
8862
- (T) => {
8863
- t("update:value", T);
8878
+ (S) => {
8879
+ t("update:value", S);
8864
8880
  },
8865
8881
  { deep: !0 }
8866
8882
  ), {
@@ -8891,7 +8907,7 @@ function V2(e, t, r, n, a, o) {
8891
8907
  e.item.form.rule.required ? (c(), w("span", R2, "  * ")) : W("", !0)
8892
8908
  ]),
8893
8909
  i("div", B2, [
8894
- e.item.params.optionsType && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (c(), O(p, {
8910
+ e.item.params.optionsType && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (c(), R(p, {
8895
8911
  key: 0,
8896
8912
  type: "success",
8897
8913
  secondary: "",
@@ -8911,7 +8927,7 @@ function V2(e, t, r, n, a, o) {
8911
8927
  _: 1,
8912
8928
  __: [0]
8913
8929
  }, 8, ["onClick"])) : W("", !0),
8914
- e.item.params.addButton && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (c(), O(p, {
8930
+ e.item.params.addButton && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (c(), R(p, {
8915
8931
  key: 1,
8916
8932
  type: "success",
8917
8933
  secondary: "",
@@ -8941,7 +8957,7 @@ function V2(e, t, r, n, a, o) {
8941
8957
  class: "flex flex-col gap-2"
8942
8958
  }, {
8943
8959
  default: y(() => [
8944
- e.tableShow ? (c(), O(h, {
8960
+ e.tableShow ? (c(), R(h, {
8945
8961
  key: 0,
8946
8962
  ref: "tableRef",
8947
8963
  columns: e.columns,
@@ -8957,7 +8973,7 @@ function V2(e, t, r, n, a, o) {
8957
8973
  remote: ""
8958
8974
  }, null, 8, ["columns", "data", "loading", "summary", "scroll-x", "class", "row-class-name"])) : W("", !0),
8959
8975
  i("div", F2, [
8960
- e.item.params.optionsType && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (c(), O(p, {
8976
+ e.item.params.optionsType && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (c(), R(p, {
8961
8977
  key: 0,
8962
8978
  type: "success",
8963
8979
  secondary: "",
@@ -8977,7 +8993,7 @@ function V2(e, t, r, n, a, o) {
8977
8993
  _: 1,
8978
8994
  __: [2]
8979
8995
  }, 8, ["onClick"])) : W("", !0),
8980
- e.item.params.addButton && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (c(), O(p, {
8996
+ e.item.params.addButton && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (c(), R(p, {
8981
8997
  key: 1,
8982
8998
  type: "success",
8983
8999
  secondary: "",
@@ -9003,7 +9019,7 @@ function V2(e, t, r, n, a, o) {
9003
9019
  }, 8, ["model"])
9004
9020
  ]);
9005
9021
  }
9006
- const U2 = /* @__PURE__ */ _(z2, [["render", V2]]), P2 = se({
9022
+ const U2 = /* @__PURE__ */ _(z2, [["render", V2]]), P2 = oe({
9007
9023
  name: "UzTableQuestChild",
9008
9024
  components: { NDataTable: Pa },
9009
9025
  props: {
@@ -9016,7 +9032,7 @@ const U2 = /* @__PURE__ */ _(z2, [["render", V2]]), P2 = se({
9016
9032
  },
9017
9033
  emits: ["update:value"],
9018
9034
  setup(e) {
9019
- const t = Le("modules"), { t: r } = Bt(), n = S(!1), a = S(!1), o = S(""), s = S({}), u = S([]), p = S([]), h = S(void 0), b = (d) => {
9035
+ const t = Le("modules"), { t: r } = Bt(), n = T(!1), a = T(!1), o = T(""), s = T({}), u = T([]), p = T([]), h = T(void 0), b = (d) => {
9020
9036
  if (n.value = !0, e.item.params.link) {
9021
9037
  const k = [];
9022
9038
  e.item.params.columns.forEach((l) => {
@@ -9153,10 +9169,10 @@ function K2(e, t, r, n, a, o) {
9153
9169
  }, null, 8, ["show", "link", "mainData"])
9154
9170
  ]);
9155
9171
  }
9156
- const G2 = /* @__PURE__ */ _(P2, [["render", K2]]), W2 = se({
9172
+ const G2 = /* @__PURE__ */ _(P2, [["render", K2]]), W2 = oe({
9157
9173
  name: "UzTableDrawer",
9158
9174
  components: {
9159
- NButton: ye,
9175
+ NButton: ke,
9160
9176
  NDrawerContent: Fa,
9161
9177
  NDrawer: Va,
9162
9178
  NSkeleton: Jl,
@@ -9192,7 +9208,7 @@ const G2 = /* @__PURE__ */ _(P2, [["render", K2]]), W2 = se({
9192
9208
  },
9193
9209
  emits: ["update:show", "on-submit"],
9194
9210
  setup(e, { emit: t }) {
9195
- const r = _t(() => we.isMobile), n = S(), a = S({}), o = S(!1), s = S({
9211
+ const r = _t(() => ve.isMobile), n = T(), a = T({}), o = T(!1), s = T({
9196
9212
  index: 1,
9197
9213
  selection: 0,
9198
9214
  // 0:false | 1:multiple:true | 2:multiple:false
@@ -9208,14 +9224,14 @@ const G2 = /* @__PURE__ */ _(P2, [["render", K2]]), W2 = se({
9208
9224
  drawerHeight: "96vh",
9209
9225
  placement: "right",
9210
9226
  summary: ""
9211
- }), u = S(!1), p = S(!1), h = S(""), b = S(0), D = S(), g = S({
9227
+ }), u = T(!1), p = T(!1), h = T(""), b = T(0), D = T(), g = T({
9212
9228
  fetch: null,
9213
9229
  when_open: null,
9214
9230
  when_create: null,
9215
9231
  when_edit: null,
9216
9232
  when_delete: null,
9217
9233
  when_before_save: ""
9218
- }), d = S(!1), k = () => {
9234
+ }), d = T(!1), k = () => {
9219
9235
  var f;
9220
9236
  (f = n.value) == null || f.restoreValidation(), a.value = {}, u.value = !1, o.value = !1, t("update:show", !1);
9221
9237
  }, l = async () => {
@@ -9306,7 +9322,7 @@ const G2 = /* @__PURE__ */ _(P2, [["render", K2]]), W2 = se({
9306
9322
  }), J2 = { class: "flex gap-2 h-full" }, Q2 = { class: "flex justify-between w-full" }, X2 = { class: "flex gap-2" };
9307
9323
  function Y2(e, t, r, n, a, o) {
9308
9324
  const s = $("NButton"), u = $("UzOcr"), p = $("UzForm"), h = $("UzSpin"), b = $("NSpin"), D = $("NDrawerContent"), g = $("NDrawer");
9309
- return c(), O(g, {
9325
+ return c(), R(g, {
9310
9326
  show: e.drawer,
9311
9327
  "onUpdate:show": t[2] || (t[2] = (d) => e.drawer = d),
9312
9328
  width: e.isMobile ? "96%" : e.tableOption.drawerWidth,
@@ -9341,7 +9357,7 @@ function Y2(e, t, r, n, a, o) {
9341
9357
  ]),
9342
9358
  default: y(() => [
9343
9359
  i("div", J2, [
9344
- e.ocrShow ? (c(), O(u, { key: 0 })) : W("", !0),
9360
+ e.ocrShow ? (c(), R(u, { key: 0 })) : W("", !0),
9345
9361
  N(h, {
9346
9362
  class: "flex-1",
9347
9363
  value: e.spinShow,
@@ -9371,7 +9387,7 @@ function Y2(e, t, r, n, a, o) {
9371
9387
  fn: y(() => [
9372
9388
  i("div", Q2, [
9373
9389
  i("div", null, [
9374
- e.isMobile ? W("", !0) : (c(), O(s, {
9390
+ e.isMobile ? W("", !0) : (c(), R(s, {
9375
9391
  key: 0,
9376
9392
  type: "primary",
9377
9393
  onClick: t[1] || (t[1] = (d) => e.ocrShow = !e.ocrShow),
@@ -9414,7 +9430,7 @@ function Y2(e, t, r, n, a, o) {
9414
9430
  _: 1
9415
9431
  }, 8, ["show", "width", "height", "placement", "on-after-leave"]);
9416
9432
  }
9417
- const Z2 = /* @__PURE__ */ _(W2, [["render", Y2]]), ey = se({
9433
+ const Z2 = /* @__PURE__ */ _(W2, [["render", Y2]]), ey = oe({
9418
9434
  name: "UzTableMobileList",
9419
9435
  props: {
9420
9436
  tableData: { type: Object, default: () => {
@@ -9431,13 +9447,13 @@ const Z2 = /* @__PURE__ */ _(W2, [["render", Y2]]), ey = se({
9431
9447
  };
9432
9448
  function ny(e, t, r, n, a, o) {
9433
9449
  return c(), w("div", ty, [
9434
- (c(!0), w(oe, null, be(e.tableColumns, (s) => (c(), w("div", {
9450
+ (c(!0), w(le, null, _e(e.tableColumns, (s) => (c(), w("div", {
9435
9451
  key: s.key,
9436
9452
  class: ue(["flex overflow-hidden", s.lineBreak ? "flex-col" : ""]),
9437
9453
  style: Se(`grid-column: span ${s.lineCol || 2} / span ${s.lineCol || 2}`)
9438
9454
  }, [
9439
- s.key === "action" ? (c(), w(oe, { key: 0 }, [
9440
- s.render ? (c(), O(mo(
9455
+ s.key === "action" ? (c(), w(le, { key: 0 }, [
9456
+ s.render ? (c(), R(mo(
9441
9457
  () => {
9442
9458
  if (e.tableData)
9443
9459
  return s.render(e.tableData, e.tableIndex);
@@ -9446,7 +9462,7 @@ function ny(e, t, r, n, a, o) {
9446
9462
  key: 0,
9447
9463
  class: "mobile"
9448
9464
  })) : W("", !0)
9449
- ], 64)) : (c(), w(oe, { key: 1 }, [
9465
+ ], 64)) : (c(), w(le, { key: 1 }, [
9450
9466
  i("div", {
9451
9467
  class: ue(["uz-table-mobile-group-title", s.lineBreak ? "line-break" : ""])
9452
9468
  }, [
@@ -9455,7 +9471,7 @@ function ny(e, t, r, n, a, o) {
9455
9471
  i("div", {
9456
9472
  class: ue(["uz-table-mobile-group-content", s.lineBreak ? "line-break" : ""])
9457
9473
  }, [
9458
- s.render ? (c(), O(mo(
9474
+ s.render ? (c(), R(mo(
9459
9475
  () => {
9460
9476
  if (e.tableData)
9461
9477
  return s.render(e.tableData, e.tableIndex);
@@ -9466,7 +9482,7 @@ function ny(e, t, r, n, a, o) {
9466
9482
  ], 6))), 128))
9467
9483
  ]);
9468
9484
  }
9469
- const ay = /* @__PURE__ */ _(ey, [["render", ny], ["__scopeId", "data-v-1e15c935"]]), oy = se({
9485
+ const ay = /* @__PURE__ */ _(ey, [["render", ny], ["__scopeId", "data-v-36ebf171"]]), oy = oe({
9470
9486
  name: "UzTableMobile",
9471
9487
  components: {
9472
9488
  NCheckbox: qa,
@@ -9487,7 +9503,7 @@ const ay = /* @__PURE__ */ _(ey, [["render", ny], ["__scopeId", "data-v-1e15c935
9487
9503
  },
9488
9504
  emits: ["update:row-keys"],
9489
9505
  setup(e, { emit: t }) {
9490
- const r = S([]);
9506
+ const r = T([]);
9491
9507
  return {
9492
9508
  rowKeys: r,
9493
9509
  checkChange: (o) => {
@@ -9514,7 +9530,7 @@ const ay = /* @__PURE__ */ _(ey, [["render", ny], ["__scopeId", "data-v-1e15c935
9514
9530
  };
9515
9531
  function uy(e, t, r, n, a, o) {
9516
9532
  const s = $("UzTableMobileList"), u = $("NCheckbox"), p = $("NPagination"), h = $("NCheckboxGroup"), b = $("NRadio"), D = $("NRadioGroup");
9517
- return e.selection === 2 ? (c(), O(h, {
9533
+ return e.selection === 2 ? (c(), R(h, {
9518
9534
  key: 0,
9519
9535
  value: e.rowKeys,
9520
9536
  "onUpdate:value": t[1] || (t[1] = (g) => e.rowKeys = g),
@@ -9526,7 +9542,7 @@ function uy(e, t, r, n, a, o) {
9526
9542
  "on-update:value": e.checkChange
9527
9543
  }, {
9528
9544
  default: y(() => [
9529
- (c(!0), w(oe, null, be(e.tableData, (g, d) => (c(), O(u, {
9545
+ (c(!0), w(le, null, _e(e.tableData, (g, d) => (c(), R(u, {
9530
9546
  key: g.id,
9531
9547
  class: "uz-com-card flex gap-2",
9532
9548
  value: g.id
@@ -9552,7 +9568,7 @@ function uy(e, t, r, n, a, o) {
9552
9568
  ])) : W("", !0)
9553
9569
  ]),
9554
9570
  _: 1
9555
- }, 8, ["value", "style", "on-update:value"])) : e.selection === 1 ? (c(), O(D, {
9571
+ }, 8, ["value", "style", "on-update:value"])) : e.selection === 1 ? (c(), R(D, {
9556
9572
  key: 1,
9557
9573
  value: e.rowKeys[0],
9558
9574
  "onUpdate:value": t[3] || (t[3] = (g) => e.rowKeys[0] = g),
@@ -9564,7 +9580,7 @@ function uy(e, t, r, n, a, o) {
9564
9580
  "on-update:value": e.radioChange
9565
9581
  }, {
9566
9582
  default: y(() => [
9567
- (c(!0), w(oe, null, be(e.tableData, (g, d) => (c(), O(b, {
9583
+ (c(!0), w(le, null, _e(e.tableData, (g, d) => (c(), R(b, {
9568
9584
  key: g.id,
9569
9585
  class: "uz-com-card flex gap-2",
9570
9586
  value: g.id
@@ -9598,7 +9614,7 @@ function uy(e, t, r, n, a, o) {
9598
9614
  maxHeight: e.maxH
9599
9615
  })
9600
9616
  }, [
9601
- (c(!0), w(oe, null, be(e.tableData, (g, d) => (c(), w("div", {
9617
+ (c(!0), w(le, null, _e(e.tableData, (g, d) => (c(), w("div", {
9602
9618
  key: g.id,
9603
9619
  class: "uz-com-card flex flex-col gap-2"
9604
9620
  }, [
@@ -9671,13 +9687,13 @@ function jc(e) {
9671
9687
  function zc() {
9672
9688
  Y.active = Y.page.path, Y.thumbnail = [Y.page], He.push(Y.page.path), Te(Y.cache, Y, 0);
9673
9689
  }
9674
- const fy = se({
9690
+ const fy = oe({
9675
9691
  name: "UzThumbnail",
9676
9692
  components: {
9677
9693
  NTabs: sd,
9678
9694
  NTabPane: od,
9679
- NButton: ye,
9680
- NIcon: ge,
9695
+ NButton: ke,
9696
+ NIcon: ye,
9681
9697
  NPopconfirm: ja,
9682
9698
  NFlex: Fl,
9683
9699
  Trash: xt
@@ -9693,7 +9709,7 @@ const fy = se({
9693
9709
  }
9694
9710
  },
9695
9711
  setup(e, { slots: t }) {
9696
- const r = S(!!t.prefix), n = Rt(), a = (u) => {
9712
+ const r = T(!!t.prefix), n = Rt(), a = (u) => {
9697
9713
  jc(u);
9698
9714
  }, o = (u) => {
9699
9715
  Dc(u);
@@ -9729,7 +9745,7 @@ const fy = se({
9729
9745
  });
9730
9746
  function py(e, t, r, n, a, o) {
9731
9747
  const s = $("NTabPane"), u = $("Trash"), p = $("NIcon"), h = $("NButton"), b = $("NPopconfirm"), D = $("NFlex"), g = $("NTabs");
9732
- return c(), O(g, {
9748
+ return c(), R(g, {
9733
9749
  value: e.thumbnailStore.active,
9734
9750
  type: "card",
9735
9751
  closable: "",
@@ -9767,7 +9783,7 @@ function py(e, t, r, n, a, o) {
9767
9783
  })
9768
9784
  ]),
9769
9785
  default: y(() => [
9770
- (c(!0), w(oe, null, be(e.thumbnailStore.thumbnail, (d) => (c(), O(s, {
9786
+ (c(!0), w(le, null, _e(e.thumbnailStore.thumbnail, (d) => (c(), R(s, {
9771
9787
  key: d.key,
9772
9788
  name: d.key,
9773
9789
  tab: d.label,
@@ -9835,7 +9851,7 @@ const ky = {
9835
9851
  Radio: {
9836
9852
  boxShadow: "inset 0 0 0 1px rgb(var(--primary))"
9837
9853
  }
9838
- }, by = Ke, _y = se({
9854
+ }, by = Ke, _y = oe({
9839
9855
  name: "UzWrap",
9840
9856
  components: {
9841
9857
  NConfigProvider: ld
@@ -9844,7 +9860,7 @@ const ky = {
9844
9860
  return {
9845
9861
  zhCN: ud,
9846
9862
  dateZhCN: id,
9847
- commonStore: we,
9863
+ commonStore: ve,
9848
9864
  lightTheme: ky,
9849
9865
  darkTheme: by
9850
9866
  };
@@ -9852,7 +9868,7 @@ const ky = {
9852
9868
  });
9853
9869
  function xy(e, t, r, n, a, o) {
9854
9870
  const s = $("NConfigProvider");
9855
- return c(), O(s, {
9871
+ return c(), R(s, {
9856
9872
  theme: e.commonStore.theme ? {
9857
9873
  name: "darkTheme"
9858
9874
  } : null,
@@ -10018,7 +10034,7 @@ const Cy = /* @__PURE__ */ _(_y, [["render", xy]]), Ml = /* @__PURE__ */ Object.
10018
10034
  UzThumbnail: hy,
10019
10035
  UzWrap: Cy,
10020
10036
  X: Ja,
10021
- commonStore: we,
10037
+ commonStore: ve,
10022
10038
  fnActionReduction: At,
10023
10039
  fnActionSimplify: Um,
10024
10040
  fnAddThumbnail: dy,
@@ -10139,10 +10155,10 @@ function qc() {
10139
10155
  function C() {
10140
10156
  k !== void 0 && clearTimeout(k), v = 0, b = l = D = k = void 0;
10141
10157
  }
10142
- function T() {
10158
+ function S() {
10143
10159
  return k === void 0 ? d : j(t());
10144
10160
  }
10145
- function R() {
10161
+ function O() {
10146
10162
  var A = t(), q = F(A);
10147
10163
  if (b = arguments, D = this, l = A, q) {
10148
10164
  if (k === void 0)
@@ -10152,7 +10168,7 @@ function qc() {
10152
10168
  }
10153
10169
  return k === void 0 && (k = setTimeout(z, p)), d;
10154
10170
  }
10155
- return R.cancel = C, R.flush = T, R;
10171
+ return O.cancel = C, O.flush = S, O;
10156
10172
  }
10157
10173
  return ga = s, ga;
10158
10174
  }
@@ -10229,7 +10245,7 @@ function zy() {
10229
10245
  var qy = zy();
10230
10246
  const Ay = /* @__PURE__ */ Za(qy);
10231
10247
  function wk(e, t = 1e3) {
10232
- const r = S(e), n = _t(
10248
+ const r = T(e), n = _t(
10233
10249
  () => Ay((...a) => r.value([...a]), t)
10234
10250
  );
10235
10251
  return Bl(() => {
@@ -10241,12 +10257,12 @@ function wk(e, t = 1e3) {
10241
10257
  };
10242
10258
  }
10243
10259
  function mk(e, t) {
10244
- return [S(qe(e, t == null ? void 0 : t.defaultValue)), (o) => {
10260
+ return [T(qe(e, t == null ? void 0 : t.defaultValue)), (o) => {
10245
10261
  typeof o > "u" ? xa(e) : Te(e, o, (t == null ? void 0 : t.expired) || "1 Day");
10246
10262
  }];
10247
10263
  }
10248
10264
  function vk(e, t, r) {
10249
- const n = `useQuery-${e}`, a = S(), o = S(), s = S(), u = S(!1), p = S("idle"), h = S(), b = S(0), D = S(0), g = () => {
10265
+ const n = `useQuery-${e}`, a = T(), o = T(), s = T(), u = T(!1), p = T("idle"), h = T(), b = T(0), D = T(0), g = () => {
10250
10266
  ko(), clearInterval(s.value), s.value = null;
10251
10267
  }, d = async () => {
10252
10268
  if (!u.value) {
@@ -10311,7 +10327,7 @@ function vk(e, t, r) {
10311
10327
  refetch: f
10312
10328
  };
10313
10329
  }
10314
- const Oy = "0.0.16";
10330
+ const Oy = "0.0.18";
10315
10331
  let Oc;
10316
10332
  async function Rc() {
10317
10333
  const e = await fetch(
@@ -10638,7 +10654,7 @@ export {
10638
10654
  hy as UzThumbnail,
10639
10655
  Cy as UzWrap,
10640
10656
  Ja as X,
10641
- we as commonStore,
10657
+ ve as commonStore,
10642
10658
  Ey as create,
10643
10659
  by as darkTheme,
10644
10660
  Ly as default,