@unizhen/ui 0.0.78 → 0.0.80

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,5 +1,5 @@
1
- import { defineComponent as re, openBlock as s, createElementBlock as f, createStaticVNode as O, createElementVNode as o, ref as C, watch as ie, nextTick as ye, h as Z, reactive as Vt, resolveComponent as x, createBlock as V, withCtx as h, toDisplayString as H, createVNode as b, computed as ze, normalizeStyle as ve, inject as Ne, normalizeClass as se, createSlots as Me, createTextVNode as E, Fragment as le, renderList as ke, provide as Mt, resolveDirective as Sn, withDirectives as Le, createCommentVNode as W, onMounted as Re, mergeProps as zt, withModifiers as et, watchEffect as Dn, onBeforeUnmount as Ut, withKeys as Ua, renderSlot as ge, markRaw as ja, defineAsyncComponent as Oa, onUnmounted as Tn, vShow as Nt, resolveDynamicComponent as hn } from "vue";
2
- import { createDiscreteApi as Aa, NPopover as Pe, NFlex as Bn, NButton as we, NPopconfirm as jt, NTooltip as Fn, NIcon as me, NDropdown as Ra, NCascader as In, NCheckboxGroup as Vn, NCheckbox as Ot, NColorPicker as Pa, NSwitch as Ha, NTimePicker as Ea, NDatePicker as qa, NInputNumber as La, NSelect as Un, NInput as Ka, NDivider as At, NFormItem as Rt, NForm as Pt, NSpin as rt, NInputGroup as Ht, NUploadDragger as Wa, NImage as jn, NUpload as Ga, useNotification as Et, NImageGroup as Qa, NModal as Ja, NInputGroupLabel as On, NGridItem as An, NGrid as Rn, NButtonGroup as Xa, NDrawerContent as Pn, NDrawer as Hn, NTag as Ya, NEllipsis as Za, NSkeleton as En, NDataTable as qt, NRadioGroup as es, NPagination as ts, NRadio as ns, NTabPane as os, NTabs as rs, darkTheme as fe, NConfigProvider as as, dateZhCN as ss, zhCN as ls } from "naive-ui";
1
+ import { defineComponent as re, openBlock as s, createElementBlock as f, createStaticVNode as O, createElementVNode as o, ref as C, watch as ie, nextTick as ye, h as Z, reactive as Vt, resolveComponent as x, createBlock as V, withCtx as h, toDisplayString as H, createVNode as b, computed as ze, normalizeStyle as ve, inject as Ne, normalizeClass as se, createSlots as Me, createTextVNode as E, Fragment as le, renderList as ke, provide as Mt, resolveDirective as Sn, withDirectives as qe, createCommentVNode as W, onMounted as Re, mergeProps as zt, withModifiers as et, watchEffect as Dn, onBeforeUnmount as Ut, withKeys as Ua, renderSlot as ge, markRaw as ja, defineAsyncComponent as Oa, onUnmounted as Tn, vShow as Nt, resolveDynamicComponent as hn } from "vue";
2
+ import { createDiscreteApi as Aa, NPopover as Ge, NFlex as Bn, NButton as we, NPopconfirm as jt, NTooltip as Fn, NIcon as me, NDropdown as Ra, NCascader as In, NCheckboxGroup as Vn, NCheckbox as Ot, NColorPicker as Pa, NSwitch as Ha, NTimePicker as Ea, NDatePicker as qa, NInputNumber as La, NSelect as Un, NInput as Ka, NDivider as At, NFormItem as Rt, NForm as Pt, NSpin as rt, NInputGroup as Ht, NUploadDragger as Wa, NImage as jn, NUpload as Ga, useNotification as Et, NImageGroup as Qa, NModal as Ja, NInputGroupLabel as On, NGridItem as An, NGrid as Rn, NButtonGroup as Xa, NDrawerContent as Pn, NDrawer as Hn, NTag as Ya, NEllipsis as Za, NSkeleton as En, NDataTable as qt, NRadioGroup as es, NPagination as ts, NRadio as ns, NTabPane as os, NTabs as rs, darkTheme as fe, NConfigProvider as as, dateZhCN as ss, zhCN as ls } from "naive-ui";
3
3
  import Lt from "axios";
4
4
  import { createRouter as is, createWebHistory as cs, useRouter as us, useRoute as at } from "vue-router";
5
5
  import { createI18n as ds, useI18n as Kt } from "vue-i18n";
@@ -1372,7 +1372,7 @@ function Iu(e, t) {
1372
1372
  O('<g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="5" cy="5" r="1"></circle><circle cx="12" cy="5" r="1"></circle><circle cx="19" cy="5" r="1"></circle><circle cx="5" cy="12" r="1"></circle><circle cx="12" cy="12" r="1"></circle><circle cx="19" cy="12" r="1"></circle><circle cx="5" cy="19" r="1"></circle><circle cx="12" cy="19" r="1"></circle><circle cx="19" cy="19" r="1"></circle></g>', 1)
1373
1373
  ])]);
1374
1374
  }
1375
- const Ke = /* @__PURE__ */ m(Bu, [["render", Iu]]), Vu = {}, Uu = {
1375
+ const Le = /* @__PURE__ */ m(Bu, [["render", Iu]]), Vu = {}, Uu = {
1376
1376
  xmlns: "http://www.w3.org/2000/svg",
1377
1377
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
1378
1378
  viewBox: "0 0 24 24"
@@ -1638,7 +1638,7 @@ function Nd(e, t) {
1638
1638
  O('<g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="4" width="6" height="6" rx="1"></rect><rect x="14" y="4" width="6" height="6" rx="1"></rect><rect x="4" y="14" width="6" height="6" rx="1"></rect><path d="M14 17h6m-3-3v6"></path></g>', 1)
1639
1639
  ])]);
1640
1640
  }
1641
- const He = /* @__PURE__ */ m(Md, [["render", Nd]]), Sd = {}, Dd = {
1641
+ const Pe = /* @__PURE__ */ m(Md, [["render", Nd]]), Sd = {}, Dd = {
1642
1642
  xmlns: "http://www.w3.org/2000/svg",
1643
1643
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
1644
1644
  viewBox: "0 0 24 24"
@@ -2265,7 +2265,7 @@ const Xr = /* @__PURE__ */ m(mf, [["render", gf]]), Yr = /* @__PURE__ */ Object.
2265
2265
  Filter: lt,
2266
2266
  GitCompare: ir,
2267
2267
  GitPullRequest: cr,
2268
- GridDots: Ke,
2268
+ GridDots: Le,
2269
2269
  Home: ur,
2270
2270
  Id: dr,
2271
2271
  LayoutSidebarLeftCollapse: pr,
@@ -2284,7 +2284,7 @@ const Xr = /* @__PURE__ */ m(mf, [["render", gf]]), Yr = /* @__PURE__ */ Object.
2284
2284
  Paperclip: xr,
2285
2285
  Photo: _r,
2286
2286
  PhotoOff: it,
2287
- Plus: He,
2287
+ Plus: Pe,
2288
2288
  Presentation: $r,
2289
2289
  PresentationAnalytics: Cr,
2290
2290
  Printer: Mr,
@@ -2851,7 +2851,7 @@ const dt = "/apiserver/", vn = () => {
2851
2851
  );
2852
2852
  }), c.push(
2853
2853
  Z(
2854
- Pe,
2854
+ Ge,
2855
2855
  {
2856
2856
  trigger: "click"
2857
2857
  },
@@ -3028,6 +3028,10 @@ const dt = "/apiserver/", vn = () => {
3028
3028
  to: {
3029
3029
  type: String,
3030
3030
  default: ""
3031
+ },
3032
+ text: {
3033
+ type: String,
3034
+ default: ""
3031
3035
  }
3032
3036
  },
3033
3037
  setup(e) {
@@ -3054,7 +3058,7 @@ function Qf(e, t, n, u, l, c) {
3054
3058
  })
3055
3059
  ]),
3056
3060
  default: h(() => [
3057
- o("span", null, H(e.$t("Common.back")), 1)
3061
+ o("span", null, H(e.text || e.$t("Common.back")), 1)
3058
3062
  ]),
3059
3063
  _: 1
3060
3064
  }, 8, ["onClick"]);
@@ -3078,9 +3082,6 @@ const Jf = /* @__PURE__ */ m(Gf, [["render", Qf]]), ia = 120, Xf = 10, tt = ia /
3078
3082
  return "0,0,0";
3079
3083
  }, eh = re({
3080
3084
  name: "UzCircle",
3081
- components: {
3082
- NPopover: Pe
3083
- },
3084
3085
  props: {
3085
3086
  circle: {
3086
3087
  required: !0,
@@ -3102,31 +3103,25 @@ const Jf = /* @__PURE__ */ m(Gf, [["render", Qf]]), ia = 120, Xf = 10, tt = ia /
3102
3103
  }
3103
3104
  },
3104
3105
  setup(e) {
3105
- const t = C({
3106
- show: !1,
3107
- text: "",
3108
- x: 0,
3109
- y: 0
3110
- }), n = C(), u = C(), l = C(), c = ze(() => `rgba(${yt(e.color)},0.1)`), r = ze(() => `rgba(${yt(e.color).split(",").map((i) => {
3111
- let a = Number(i) - 50;
3112
- return a < 0 && (a = 0), a;
3113
- })},1)`), p = ze(() => `rgba(${yt(e.color)},1)`);
3106
+ const t = C(), n = C(), u = C(), l = ze(() => `rgba(${yt(e.color)},0.1)`), c = ze(() => `rgba(${yt(e.color).split(",").map((k) => {
3107
+ let i = Number(k) - 50;
3108
+ return i < 0 && (i = 0), i;
3109
+ })},1)`), r = ze(() => `rgba(${yt(e.color)},1)`);
3114
3110
  return {
3115
- popover: t,
3116
- backgroundBg: c,
3117
- strokeDasharray: n,
3118
- centerTransform: u,
3119
- centerTransformUnit: l,
3120
- colorA: r,
3121
- colorB: p,
3111
+ backgroundBg: l,
3112
+ strokeDasharray: t,
3113
+ centerTransform: n,
3114
+ centerTransformUnit: u,
3115
+ colorA: c,
3116
+ colorB: r,
3122
3117
  calculateCircle: () => {
3123
- let z = 314 - Number(e.circle) * Math.PI;
3124
- return z <= 0 && (z = 0), `stroke-dashoffset: ${z}`;
3118
+ let D = 314 - Number(e.circle) * Math.PI;
3119
+ return D <= 0 && (D = 0), `stroke-dashoffset: ${D}`;
3125
3120
  },
3126
- calculateSemicircle: (z) => {
3127
- n.value = `${_n} ${Zf}`, u.value = `translate(${tt}, ${tt + 9})`, l.value = `translate(${tt}, ${tt + 24})`;
3128
- let v = z || Number(e.circle);
3129
- return v > 100 && (v = 100), v <= 0 && (v = 1e-4), _n * (1 - v / 100);
3121
+ calculateSemicircle: (D) => {
3122
+ t.value = `${_n} ${Zf}`, n.value = `translate(${tt}, ${tt + 9})`, u.value = `translate(${tt}, ${tt + 24})`;
3123
+ let N = D || Number(e.circle);
3124
+ return N > 100 && (N = 100), N <= 0 && (N = 1e-4), _n * (1 - N / 100);
3130
3125
  },
3131
3126
  calculatePoint: () => `rotate(${-90 + Number(e.circle) * 3.6} 100 80) translate(50, 0)`
3132
3127
  };
@@ -3360,7 +3355,7 @@ const yh = /* @__PURE__ */ m(eh, [["render", kh]]), bh = re({
3360
3355
  showDropdown: n,
3361
3356
  dropdownOptions: u,
3362
3357
  dayjs: Te,
3363
- updateValue: async (g, N, w) => {
3358
+ updateValue: async (g, z, w) => {
3364
3359
  if (g.form.updateValue) {
3365
3360
  const T = { ...e.formValue };
3366
3361
  if (typeof g.form.updateValue == "string")
@@ -3376,7 +3371,7 @@ const yh = /* @__PURE__ */ m(eh, [["render", kh]]), bh = re({
3376
3371
  );
3377
3372
  try {
3378
3373
  const te = await J(
3379
- N,
3374
+ z,
3380
3375
  T,
3381
3376
  t,
3382
3377
  e.itemIndex,
@@ -3393,7 +3388,7 @@ const yh = /* @__PURE__ */ m(eh, [["render", kh]]), bh = re({
3393
3388
  oe(q);
3394
3389
  }
3395
3390
  else
3396
- g.form.updateValue(N, T, w, ce);
3391
+ g.form.updateValue(z, T, w, ce);
3397
3392
  }
3398
3393
  },
3399
3394
  selectFallback: (g) => g ? {
@@ -3448,17 +3443,17 @@ const yh = /* @__PURE__ */ m(eh, [["render", kh]]), bh = re({
3448
3443
  }
3449
3444
  },
3450
3445
  handleFocus: (g) => {
3451
- const N = G(e.item.params.options);
3446
+ const z = G(e.item.params.options);
3452
3447
  if (e.formValue && e.formValue[g]) {
3453
3448
  const T = e.formValue[g].toLocaleLowerCase();
3454
- N.forEach((q) => {
3449
+ z.forEach((q) => {
3455
3450
  q.label && q.label.toLocaleLowerCase().indexOf(T) > -1 ? q.show = !0 : q.show = !1;
3456
3451
  });
3457
3452
  } else
3458
- N.forEach((T) => {
3453
+ z.forEach((T) => {
3459
3454
  T.show = !0;
3460
3455
  });
3461
- N.find((T) => T.show === !0) ? n.value = !0 : n.value = !1, u.value = N;
3456
+ z.find((T) => T.show === !0) ? n.value = !0 : n.value = !1, u.value = z;
3462
3457
  },
3463
3458
  renderDropdown: (g) => Z(
3464
3459
  "div",
@@ -3482,7 +3477,7 @@ const yh = /* @__PURE__ */ m(eh, [["render", kh]]), bh = re({
3482
3477
  }
3483
3478
  }), xh = { class: "uz-flex uz-flex-wrap uz-gap-2" };
3484
3479
  function _h(e, t, n, u, l, c) {
3485
- const r = x("NInput"), p = x("NDropdown"), $ = x("NInputNumber"), M = x("NDatePicker"), D = x("NSelect"), z = x("NCascader"), v = x("NColorPicker"), i = x("NCheckbox"), a = x("NCheckboxGroup"), k = x("NTimePicker"), d = x("UzFormItemTimesPicker"), g = x("NSwitch"), N = x("UzFormItemUpload");
3480
+ const r = x("NInput"), p = x("NDropdown"), $ = x("NInputNumber"), M = x("NDatePicker"), D = x("NSelect"), N = x("NCascader"), k = x("NColorPicker"), i = x("NCheckbox"), a = x("NCheckboxGroup"), v = x("NTimePicker"), d = x("UzFormItemTimesPicker"), g = x("NSwitch"), z = x("UzFormItemUpload");
3486
3481
  return e.item.input === "input" ? (s(), V(r, {
3487
3482
  key: 0,
3488
3483
  value: e.formValue[e.item.key],
@@ -3672,7 +3667,7 @@ function _h(e, t, n, u, l, c) {
3672
3667
  "onUpdate:value": t[6] || (t[6] = (w, T) => {
3673
3668
  e.formValue[e.item.key] = w, e.item.params.multiple ? e.formValue[`${e.item.key}Str`] = T.map((q) => q.label).join(",") : e.formValue[`${e.item.key}Str`] = T.label, e.updateValue(e.item, w, T);
3674
3669
  })
3675
- }, null, 8, ["value", "placeholder", "options", "disabled", "show", "clearable", "filterable", "tag", "multiple", "fallback-option", "render-label", "render-tag", "on-create", "class"])) : e.item.input === "cascader" ? (s(), V(z, {
3670
+ }, null, 8, ["value", "placeholder", "options", "disabled", "show", "clearable", "filterable", "tag", "multiple", "fallback-option", "render-label", "render-tag", "on-create", "class"])) : e.item.input === "cascader" ? (s(), V(N, {
3676
3671
  key: 7,
3677
3672
  value: e.formValue[e.item.key],
3678
3673
  placeholder: e.showPlaceholder(e.item),
@@ -3694,7 +3689,7 @@ function _h(e, t, n, u, l, c) {
3694
3689
  }
3695
3690
  e.formValue[e.item.key] = te, q && (e.formValue[`${e.item.key}Str`] = q.map((_) => _.label).join("/")), e.updateValue(e.item, B);
3696
3691
  })
3697
- }, null, 8, ["value", "placeholder", "options", "disabled", "show", "clearable", "filterable", "multiple", "class"])) : e.item.input === "color" ? (s(), V(v, {
3692
+ }, null, 8, ["value", "placeholder", "options", "disabled", "show", "clearable", "filterable", "multiple", "class"])) : e.item.input === "color" ? (s(), V(k, {
3698
3693
  key: 8,
3699
3694
  value: e.formValue[e.item.key],
3700
3695
  disabled: e.checkDisabled(),
@@ -3724,7 +3719,7 @@ function _h(e, t, n, u, l, c) {
3724
3719
  ])
3725
3720
  ]),
3726
3721
  _: 1
3727
- }, 8, ["value", "disabled"])) : e.item.input === "time" ? (s(), V(k, {
3722
+ }, 8, ["value", "disabled"])) : e.item.input === "time" ? (s(), V(v, {
3728
3723
  key: 10,
3729
3724
  value: e.formValue[e.item.key],
3730
3725
  placeholder: e.showPlaceholder(e.item),
@@ -3770,7 +3765,7 @@ function _h(e, t, n, u, l, c) {
3770
3765
  ]),
3771
3766
  key: "1"
3772
3767
  } : void 0
3773
- ]), 1032, ["value", "disabled"])) : e.item.input === "upload" ? (s(), V(N, {
3768
+ ]), 1032, ["value", "disabled"])) : e.item.input === "upload" ? (s(), V(z, {
3774
3769
  key: 13,
3775
3770
  value: e.formValue[e.item.key],
3776
3771
  "onUpdate:value": t[11] || (t[11] = (w) => e.formValue[e.item.key] = w),
@@ -3778,7 +3773,7 @@ function _h(e, t, n, u, l, c) {
3778
3773
  status: e.status
3779
3774
  }, null, 8, ["value", "item", "status"])) : (s(), f(le, { key: 14 }, [], 64));
3780
3775
  }
3781
- const Ee = /* @__PURE__ */ m(bh, [["render", _h]]), $h = re({
3776
+ const He = /* @__PURE__ */ m(bh, [["render", _h]]), $h = re({
3782
3777
  name: "UzForm",
3783
3778
  components: {
3784
3779
  NForm: Pt,
@@ -3786,8 +3781,8 @@ const Ee = /* @__PURE__ */ m(bh, [["render", _h]]), $h = re({
3786
3781
  NDivider: At,
3787
3782
  NButton: we,
3788
3783
  NIcon: me,
3789
- UzFormItem: Ee,
3790
- Plus: He
3784
+ UzFormItem: He,
3785
+ Plus: Pe
3791
3786
  },
3792
3787
  props: {
3793
3788
  items: {
@@ -3846,7 +3841,7 @@ const Ee = /* @__PURE__ */ m(bh, [["render", _h]]), $h = re({
3846
3841
  r.value = B;
3847
3842
  }
3848
3843
  });
3849
- const z = (B) => {
3844
+ const N = (B) => {
3850
3845
  const _ = B.form.display;
3851
3846
  if (!_)
3852
3847
  switch (e.status) {
@@ -3870,7 +3865,7 @@ const Ee = /* @__PURE__ */ m(bh, [["render", _h]]), $h = re({
3870
3865
  return !0;
3871
3866
  }
3872
3867
  }
3873
- }, v = (B, _) => {
3868
+ }, k = (B, _) => {
3874
3869
  switch (B) {
3875
3870
  case "datetime":
3876
3871
  case "datetimerange":
@@ -3903,10 +3898,10 @@ const Ee = /* @__PURE__ */ m(bh, [["render", _h]]), $h = re({
3903
3898
  case "now":
3904
3899
  {
3905
3900
  const F = Te().startOf("day").valueOf(), U = Te().endOf("day").valueOf();
3906
- r.value[_.key] = [F, U], r.value[`${_.key}StartStr`] = v(
3901
+ r.value[_.key] = [F, U], r.value[`${_.key}StartStr`] = k(
3907
3902
  _.params.type,
3908
3903
  F
3909
- ), r.value[`${_.key}EndStr`] = v(
3904
+ ), r.value[`${_.key}EndStr`] = k(
3910
3905
  _.params.type,
3911
3906
  U
3912
3907
  );
@@ -3914,23 +3909,23 @@ const Ee = /* @__PURE__ */ m(bh, [["render", _h]]), $h = re({
3914
3909
  break;
3915
3910
  default:
3916
3911
  const I = Number(_.form.defaultValue);
3917
- r.value[_.key] = Number.isNaN(I) ? null : [I, I], r.value[`${_.key}StartStr`] = v(
3912
+ r.value[_.key] = Number.isNaN(I) ? null : [I, I], r.value[`${_.key}StartStr`] = k(
3918
3913
  _.params.type,
3919
3914
  I
3920
- ), r.value[`${_.key}EndStr`] = v(
3915
+ ), r.value[`${_.key}EndStr`] = k(
3921
3916
  _.params.type,
3922
3917
  I
3923
3918
  );
3924
3919
  break;
3925
3920
  }
3926
3921
  else if (_.form.defaultValue === "now")
3927
- r.value[_.key] = Date.now(), r.value[`${_.key}Str`] = v(
3922
+ r.value[_.key] = Date.now(), r.value[`${_.key}Str`] = k(
3928
3923
  _.params.type,
3929
3924
  Date.now()
3930
3925
  );
3931
3926
  else {
3932
3927
  const I = Number(_.form.defaultValue);
3933
- r.value[_.key] = Number.isNaN(I) ? null : I, r.value[`${_.key}Str`] = v(
3928
+ r.value[_.key] = Number.isNaN(I) ? null : I, r.value[`${_.key}Str`] = k(
3934
3929
  _.params.type,
3935
3930
  I
3936
3931
  );
@@ -3949,7 +3944,7 @@ const Ee = /* @__PURE__ */ m(bh, [["render", _h]]), $h = re({
3949
3944
  } catch {
3950
3945
  r.value[_.key] = [];
3951
3946
  }
3952
- }), B), k = (B) => {
3947
+ }), B), v = (B) => {
3953
3948
  B || (B = G(e.items)), B && Array.isArray(B) && B.length > 0 ? p.value = a(B) : p.value = [];
3954
3949
  }, d = () => new Promise(async (B) => {
3955
3950
  let _ = 0;
@@ -3985,7 +3980,7 @@ const Ee = /* @__PURE__ */ m(bh, [["render", _h]]), $h = re({
3985
3980
  _();
3986
3981
  }
3987
3982
  );
3988
- }), N = () => {
3983
+ }), z = () => {
3989
3984
  c.value?.restoreValidation();
3990
3985
  }, w = (B = 6) => ({
3991
3986
  1: "md:col-span-1 lg:col-span-1 xl:col-span-1 2xl:col-span-1",
@@ -4005,12 +4000,12 @@ const Ee = /* @__PURE__ */ m(bh, [["render", _h]]), $h = re({
4005
4000
  }, q = (B) => {
4006
4001
  D.value && (p.value[D.value].params.options = B);
4007
4002
  };
4008
- return t({ validate: g, restoreValidation: N, getValues: () => r.value, manual: () => {
4009
- r.value = e.value, k(e.items);
4003
+ return t({ validate: g, restoreValidation: z, getValues: () => r.value, manual: () => {
4004
+ r.value = e.value, v(e.items);
4010
4005
  } }), ie(
4011
4006
  () => e.value,
4012
4007
  (B, _) => {
4013
- JSON.stringify(B) !== JSON.stringify(_) && (r.value = B, p.value.length === 0 && k(e.items));
4008
+ JSON.stringify(B) !== JSON.stringify(_) && (r.value = B, p.value.length === 0 && v(e.items));
4014
4009
  },
4015
4010
  {
4016
4011
  deep: !0,
@@ -4025,14 +4020,14 @@ const Ee = /* @__PURE__ */ m(bh, [["render", _h]]), $h = re({
4025
4020
  isMobile: u,
4026
4021
  diffDay: i,
4027
4022
  sourceAdd: T,
4028
- itemShow: z,
4023
+ itemShow: N,
4029
4024
  setSpan: w,
4030
4025
  refreshOption: q
4031
4026
  };
4032
4027
  }
4033
4028
  }), Ch = ["onClick"];
4034
4029
  function Mh(e, t, n, u, l, c) {
4035
- const r = x("Plus"), p = x("NIcon"), $ = x("UzTableChild"), M = x("UzTableQuestChild"), D = x("NDivider"), z = x("UzFormItem"), v = x("NFormItem"), i = x("NForm"), a = x("UzTableDrawer"), k = Sn("media");
4030
+ const r = x("Plus"), p = x("NIcon"), $ = x("UzTableChild"), M = x("UzTableQuestChild"), D = x("NDivider"), N = x("UzFormItem"), k = x("NFormItem"), i = x("NForm"), a = x("UzTableDrawer"), v = Sn("media");
4036
4031
  return s(), f(le, null, [
4037
4032
  b(i, {
4038
4033
  ref: "formRef",
@@ -4044,11 +4039,11 @@ function Mh(e, t, n, u, l, c) {
4044
4039
  labelPlacement: e.labelPlacement
4045
4040
  }, {
4046
4041
  default: h(() => [
4047
- Le((s(), f("div", {
4042
+ qe((s(), f("div", {
4048
4043
  class: se(e.isMobile ? "" : "uz-form-grid")
4049
4044
  }, [
4050
4045
  (s(!0), f(le, null, ke(e.formItems, (d, g) => (s(), f(le, { key: g }, [
4051
- e.itemShow(d) ? (s(), V(v, {
4046
+ e.itemShow(d) ? (s(), V(k, {
4052
4047
  key: 0,
4053
4048
  path: d.key,
4054
4049
  rule: d.input === "subTable" ? void 0 : d.form.rule?.required ? d.form.rule : void 0,
@@ -4061,7 +4056,7 @@ function Mh(e, t, n, u, l, c) {
4061
4056
  e.status !== 2 && d.source && d.form.createButton ? (s(), f("a", {
4062
4057
  key: 0,
4063
4058
  class: "uz-flex uz-items-center uz-gap-1 uz-form-item-add",
4064
- onClick: (N) => e.sourceAdd(d, g)
4059
+ onClick: (z) => e.sourceAdd(d, g)
4065
4060
  }, [
4066
4061
  b(p, null, {
4067
4062
  default: h(() => [
@@ -4082,7 +4077,7 @@ function Mh(e, t, n, u, l, c) {
4082
4077
  ref_for: !0,
4083
4078
  ref: "childRef",
4084
4079
  value: e.formValue[`sub_${d.key}`],
4085
- "onUpdate:value": (N) => e.formValue[`sub_${d.key}`] = N,
4080
+ "onUpdate:value": (z) => e.formValue[`sub_${d.key}`] = z,
4086
4081
  formValue: e.formValue,
4087
4082
  item: d,
4088
4083
  status: e.status
@@ -4098,7 +4093,7 @@ function Mh(e, t, n, u, l, c) {
4098
4093
  E(H(typeof d.label == "function" ? d.label() : d.label), 1)
4099
4094
  ]),
4100
4095
  _: 2
4101
- }, 1032, ["title-placement"])) : (s(), V(z, {
4096
+ }, 1032, ["title-placement"])) : (s(), V(N, {
4102
4097
  key: 3,
4103
4098
  item: d,
4104
4099
  formValue: e.formValue,
@@ -4109,7 +4104,7 @@ function Mh(e, t, n, u, l, c) {
4109
4104
  }, 1032, ["path", "rule", "style", "show-label", "show-feedback"])) : W("", !0)
4110
4105
  ], 64))), 128))
4111
4106
  ], 2)), [
4112
- [k]
4107
+ [v]
4113
4108
  ])
4114
4109
  ]),
4115
4110
  _: 1
@@ -4128,9 +4123,9 @@ const zh = /* @__PURE__ */ m($h, [["render", Mh]]), Nh = re({
4128
4123
  NButton: we,
4129
4124
  NIcon: me,
4130
4125
  NDivider: At,
4131
- UzFormItem: Ee,
4126
+ UzFormItem: He,
4132
4127
  Trash: Qe,
4133
- Plus: He,
4128
+ Plus: Pe,
4134
4129
  Draggable: Ln
4135
4130
  },
4136
4131
  props: {
@@ -4172,18 +4167,18 @@ const zh = /* @__PURE__ */ m($h, [["render", Mh]]), Nh = re({
4172
4167
  },
4173
4168
  emits: ["update:value", "on-select", "on-change"],
4174
4169
  setup(e, { expose: t, emit: n }) {
4175
- const u = Ne("userStore"), l = C(), c = C({}), r = C([]), p = C([-1, -1]), $ = (k, d, g) => {
4176
- p.value = [d, g ?? -1], n("on-select", k);
4177
- }, M = (k) => {
4178
- k && (p.value[1] === -1 ? r.value.splice(p.value[0], 1, k) : r.value[p.value[0]].params.children.splice(p.value[1], 1, k), v()), i();
4179
- }, D = (k) => (k.forEach((d) => {
4170
+ const u = Ne("userStore"), l = C(), c = C({}), r = C([]), p = C([-1, -1]), $ = (v, d, g) => {
4171
+ p.value = [d, g ?? -1], n("on-select", v);
4172
+ }, M = (v) => {
4173
+ v && (p.value[1] === -1 ? r.value.splice(p.value[0], 1, v) : r.value[p.value[0]].params.children.splice(p.value[1], 1, v), k()), i();
4174
+ }, D = (v) => (v.forEach((d) => {
4180
4175
  if (d.form.defaultValue && !c.value[d.key])
4181
4176
  if (d.input === "number")
4182
4177
  c.value[d.key] = Number(d.form.defaultValue);
4183
4178
  else if (d.input === "select" && d.params.options?.length > 0) {
4184
4179
  d.form.defaultValue === "userId" ? c.value[d.key] = u.userId : c.value[d.key] = d.form.defaultValue;
4185
4180
  const g = d.params.options.find(
4186
- (N) => N.value === c.value[d.key]
4181
+ (z) => z.value === c.value[d.key]
4187
4182
  );
4188
4183
  g && (c.value[`${d.key}Str`] = g.label);
4189
4184
  } else if (d.input === "date")
@@ -4195,32 +4190,32 @@ const zh = /* @__PURE__ */ m($h, [["render", Mh]]), Nh = re({
4195
4190
  }
4196
4191
  else
4197
4192
  c.value[d.key] = d.form.defaultValue;
4198
- }), k), z = () => {
4193
+ }), v), N = () => {
4199
4194
  if (e.items && Array.isArray(e.items)) {
4200
- const k = G(e.items);
4201
- r.value = D(k);
4195
+ const v = G(e.items);
4196
+ r.value = D(v);
4202
4197
  }
4203
- }, v = () => {
4198
+ }, k = () => {
4204
4199
  n("on-change", G(r.value));
4205
4200
  }, i = () => {
4206
4201
  p.value = [-1, -1], n("on-select", void 0);
4207
4202
  }, a = () => {
4208
- p.value[1] === -1 ? r.value.splice(p.value[0], 1) : r.value[p.value[0]].params.children.splice(p.value[1], 1), v(), i();
4203
+ p.value[1] === -1 ? r.value.splice(p.value[0], 1) : r.value[p.value[0]].params.children.splice(p.value[1], 1), k(), i();
4209
4204
  };
4210
4205
  return Re(() => {
4211
- c.value = e.value, z();
4206
+ c.value = e.value, N();
4212
4207
  }), t({ changeItem: M }), ie(
4213
4208
  () => e.items,
4214
4209
  () => {
4215
- z();
4210
+ N();
4216
4211
  },
4217
4212
  {
4218
4213
  deep: !0
4219
4214
  }
4220
4215
  ), ie(
4221
4216
  () => e.value,
4222
- (k) => {
4223
- c.value = k;
4217
+ (v) => {
4218
+ c.value = v;
4224
4219
  },
4225
4220
  {
4226
4221
  deep: !0
@@ -4230,7 +4225,7 @@ const zh = /* @__PURE__ */ m($h, [["render", Mh]]), Nh = re({
4230
4225
  formValue: c,
4231
4226
  formItems: r,
4232
4227
  formItemIndex: p,
4233
- onDragChange: v,
4228
+ onDragChange: k,
4234
4229
  onModeClick: $,
4235
4230
  onCancel: i,
4236
4231
  onDelete: a
@@ -4244,8 +4239,8 @@ const zh = /* @__PURE__ */ m($h, [["render", Mh]]), Nh = re({
4244
4239
  class: "uz-form-item-add"
4245
4240
  };
4246
4241
  function Th(e, t, n, u, l, c) {
4247
- const r = x("Plus"), p = x("NIcon"), $ = x("Trash"), M = x("NButton"), D = x("UzTableChild"), z = x("UzFormItem"), v = x("NFormItem"), i = x("Draggable", !0), a = x("NDivider"), k = x("NForm");
4248
- return s(), V(k, {
4242
+ const r = x("Plus"), p = x("NIcon"), $ = x("Trash"), M = x("NButton"), D = x("UzTableChild"), N = x("UzFormItem"), k = x("NFormItem"), i = x("Draggable", !0), a = x("NDivider"), v = x("NForm");
4243
+ return s(), V(v, {
4249
4244
  ref: "formRef",
4250
4245
  class: "uz-w-full uz-h-full",
4251
4246
  model: e.formValue,
@@ -4271,14 +4266,14 @@ function Th(e, t, n, u, l, c) {
4271
4266
  onChange: e.onDragChange
4272
4267
  }), {
4273
4268
  item: h(({ element: d, index: g }) => [
4274
- (s(), V(v, {
4269
+ (s(), V(k, {
4275
4270
  path: d.key,
4276
4271
  rule: d.rule?.required ? d.rule : void 0,
4277
4272
  class: se([
4278
4273
  "uz-form-grid-item uz-form-mode",
4279
4274
  e.formItemIndex[0] === g && e.formItemIndex[1] === -1 ? "select" : d.input === "group" ? "group" : ""
4280
4275
  ]),
4281
- onClick: et((N) => e.onModeClick(d, g), ["stop"]),
4276
+ onClick: et((z) => e.onModeClick(d, g), ["stop"]),
4282
4277
  key: g,
4283
4278
  style: ve(`grid-column: span ${d.form.span || 6} / span ${d.form.span || 6};`),
4284
4279
  "show-label": d.input !== "divider" && d.input !== "subTable",
@@ -4323,7 +4318,7 @@ function Th(e, t, n, u, l, c) {
4323
4318
  }, null, 8, ["formValue", "item", "status"])) : d.input === "group" ? (s(), V(i, zt({
4324
4319
  key: 2,
4325
4320
  modelValue: d.params.children,
4326
- "onUpdate:modelValue": (N) => d.params.children = N
4321
+ "onUpdate:modelValue": (z) => d.params.children = z
4327
4322
  }, {
4328
4323
  animation: 200
4329
4324
  }, {
@@ -4334,20 +4329,20 @@ function Th(e, t, n, u, l, c) {
4334
4329
  onEnd: e.onCancel,
4335
4330
  onChange: e.onDragChange
4336
4331
  }), {
4337
- item: h(({ element: N, index: w }) => [
4338
- (s(), V(v, {
4339
- label: N.input !== "divider" ? typeof N.label == "function" ? N.label() : N.label : "",
4340
- path: N.key,
4341
- rule: N.rule?.required ? N.rule : void 0,
4332
+ item: h(({ element: z, index: w }) => [
4333
+ (s(), V(k, {
4334
+ label: z.input !== "divider" ? typeof z.label == "function" ? z.label() : z.label : "",
4335
+ path: z.key,
4336
+ rule: z.rule?.required ? z.rule : void 0,
4342
4337
  class: se([
4343
4338
  "uz-form-grid-item uz-form-mode",
4344
4339
  e.formItemIndex[0] === g && e.formItemIndex[1] === w ? "select" : ""
4345
4340
  ]),
4346
- onClick: et((T) => e.onModeClick(N, g, w), ["stop"]),
4341
+ onClick: et((T) => e.onModeClick(z, g, w), ["stop"]),
4347
4342
  key: w,
4348
- style: ve(`grid-column: span ${N.form.span || 6} / span ${N.form.span || 6};`),
4349
- "show-label": N.input !== "divider" && N.input !== "subTable",
4350
- "show-feedback": e.showFeedback && N.input !== "divider"
4343
+ style: ve(`grid-column: span ${z.form.span || 6} / span ${z.form.span || 6};`),
4344
+ "show-label": z.input !== "divider" && z.input !== "subTable",
4345
+ "show-feedback": e.showFeedback && z.input !== "divider"
4351
4346
  }, {
4352
4347
  default: h(() => [
4353
4348
  e.formItemIndex[0] === g && e.formItemIndex[1] === w ? (s(), V(M, {
@@ -4367,8 +4362,8 @@ function Th(e, t, n, u, l, c) {
4367
4362
  ]),
4368
4363
  _: 1
4369
4364
  }, 8, ["onClick"])) : W("", !0),
4370
- b(z, {
4371
- item: N,
4365
+ b(N, {
4366
+ item: z,
4372
4367
  formValue: e.formValue,
4373
4368
  status: e.status
4374
4369
  }, null, 8, ["item", "formValue", "status"])
@@ -4385,7 +4380,7 @@ function Th(e, t, n, u, l, c) {
4385
4380
  E(H(typeof d.label == "function" ? d.label() : d.label), 1)
4386
4381
  ]),
4387
4382
  _: 2
4388
- }, 1032, ["title-placement"])) : (s(), V(z, {
4383
+ }, 1032, ["title-placement"])) : (s(), V(N, {
4389
4384
  key: 4,
4390
4385
  item: d,
4391
4386
  formValue: e.formValue,
@@ -4408,7 +4403,7 @@ const Bh = /* @__PURE__ */ m(Nh, [["render", Th]]), Fh = re({
4408
4403
  NButton: we,
4409
4404
  NIcon: me,
4410
4405
  NImage: jn,
4411
- NPopover: Pe,
4406
+ NPopover: Ge,
4412
4407
  NPopconfirm: jt,
4413
4408
  NUploadDragger: Wa,
4414
4409
  NInputGroup: Ht,
@@ -4441,43 +4436,43 @@ const Bh = /* @__PURE__ */ m(Nh, [["render", Th]]), Fh = re({
4441
4436
  const n = Et(), u = C(!1), l = C([]), c = () => {
4442
4437
  t(
4443
4438
  "update:value",
4444
- Ve.stringify(l.value.map((z) => z.url))
4439
+ Ve.stringify(l.value.map((N) => N.url))
4445
4440
  );
4446
- }, r = (z) => new Promise((v, i) => {
4447
- if (z.file.file)
4448
- if (u.value = !0, z.file.file.size > 10485760)
4441
+ }, r = (N) => new Promise((k, i) => {
4442
+ if (N.file.file)
4443
+ if (u.value = !0, N.file.file.size > 10485760)
4449
4444
  n.error({ content: "请上传小于10MB的文件", duration: 3e3 }), i();
4450
4445
  else {
4451
4446
  const a = new FormData();
4452
- a.append("file", z.file.file), a.append("name", z.file.name), Af("file/cos/upload", a).then((k) => {
4447
+ a.append("file", N.file.file), a.append("name", N.file.name), Af("file/cos/upload", a).then((v) => {
4453
4448
  l.value.push({
4454
- id: z.file.id,
4455
- name: z.file.name,
4449
+ id: N.file.id,
4450
+ name: N.file.name,
4456
4451
  status: "finished",
4457
- url: k
4458
- }), n.success({ content: "上传成功", duration: 3e3 }), u.value = !1, c(), v();
4452
+ url: v
4453
+ }), n.success({ content: "上传成功", duration: 3e3 }), u.value = !1, c(), k();
4459
4454
  }).catch(() => {
4460
4455
  u.value = !1, i(), n.error({ content: "上传失败", duration: 3e3 });
4461
4456
  });
4462
4457
  }
4463
- }), p = (z) => {
4464
- const v = z.lastIndexOf("."), i = z.substring(v + 1);
4458
+ }), p = (N) => {
4459
+ const k = N.lastIndexOf("."), i = N.substring(k + 1);
4465
4460
  return ["png", "jpg", "jpeg", "bmp", "gif", "webp", "svg"].indexOf(
4466
4461
  i.toLowerCase()
4467
4462
  ) !== -1;
4468
- }, $ = (z) => {
4469
- l.value.splice(z, 1), c();
4463
+ }, $ = (N) => {
4464
+ l.value.splice(N, 1), c();
4470
4465
  }, M = () => {
4471
- let z = G(e.value);
4472
- if (!z) {
4466
+ let N = G(e.value);
4467
+ if (!N) {
4473
4468
  l.value = [];
4474
4469
  return;
4475
4470
  }
4476
- if (typeof z == "string")
4471
+ if (typeof N == "string")
4477
4472
  try {
4478
- z = Ve.parse(z), l.value = z.map(
4479
- (v, i) => {
4480
- const a = decodeURIComponent(v), k = a.lastIndexOf("/"), d = a.substring(k + 1);
4473
+ N = Ve.parse(N), l.value = N.map(
4474
+ (k, i) => {
4475
+ const a = decodeURIComponent(k), v = a.lastIndexOf("/"), d = a.substring(v + 1);
4481
4476
  return {
4482
4477
  id: String(i + 1),
4483
4478
  name: d,
@@ -4491,8 +4486,8 @@ const Bh = /* @__PURE__ */ m(Nh, [["render", Th]]), Fh = re({
4491
4486
  }
4492
4487
  else
4493
4488
  l.value = [];
4494
- }, D = (z) => {
4495
- window.open(z);
4489
+ }, D = (N) => {
4490
+ window.open(N);
4496
4491
  };
4497
4492
  return Re(() => {
4498
4493
  M();
@@ -4512,7 +4507,7 @@ const Bh = /* @__PURE__ */ m(Nh, [["render", Th]]), Fh = re({
4512
4507
  }
4513
4508
  }), Ih = { class: "uz-form-upload-item-inner" }, Vh = ["title"], Uh = { key: 0 };
4514
4509
  function jh(e, t, n, u, l, c) {
4515
- const r = x("CloudUpload"), p = x("NIcon"), $ = x("NUploadDragger"), M = x("NUpload"), D = x("PhotoOff"), z = x("NImage"), v = x("FileText"), i = x("Trash"), a = x("NButton"), k = x("NPopconfirm"), d = x("CloudDownload"), g = x("NSpin");
4510
+ const r = x("CloudUpload"), p = x("NIcon"), $ = x("NUploadDragger"), M = x("NUpload"), D = x("PhotoOff"), N = x("NImage"), k = x("FileText"), i = x("Trash"), a = x("NButton"), v = x("NPopconfirm"), d = x("CloudDownload"), g = x("NSpin");
4516
4511
  return s(), V(g, {
4517
4512
  "content-class": "uz-form-upload uz-flex uz-flex-wrap uz-gap-2 uz-items-center",
4518
4513
  show: e.show
@@ -4523,8 +4518,8 @@ function jh(e, t, n, u, l, c) {
4523
4518
  accept: e.item.params.accept,
4524
4519
  max: e.item.params.max,
4525
4520
  "show-file-list": !1,
4526
- "on-before-upload": (N) => {
4527
- e.beforeUpload(N);
4521
+ "on-before-upload": (z) => {
4522
+ e.beforeUpload(z);
4528
4523
  },
4529
4524
  class: "!uz-w-20",
4530
4525
  "directory-dnd": ""
@@ -4544,14 +4539,14 @@ function jh(e, t, n, u, l, c) {
4544
4539
  ]),
4545
4540
  _: 1
4546
4541
  }, 8, ["accept", "max", "on-before-upload"])) : W("", !0),
4547
- (s(!0), f(le, null, ke(e.formValue, (N, w) => (s(), f("div", {
4542
+ (s(!0), f(le, null, ke(e.formValue, (z, w) => (s(), f("div", {
4548
4543
  key: w,
4549
4544
  class: "uz-form-upload-item uz-w-20 uz-h-20"
4550
4545
  }, [
4551
- e.isAssetTypeAnImage(N.url) ? (s(), V(z, {
4546
+ e.isAssetTypeAnImage(z.url) ? (s(), V(N, {
4552
4547
  key: 0,
4553
4548
  width: "80",
4554
- src: N.url
4549
+ src: z.url
4555
4550
  }, {
4556
4551
  error: h(() => [
4557
4552
  b(p, {
@@ -4570,20 +4565,20 @@ function jh(e, t, n, u, l, c) {
4570
4565
  size: "60",
4571
4566
  color: "lightGrey",
4572
4567
  class: "uz-cursor-pointer",
4573
- onClick: (T) => e.openFile(N.url)
4568
+ onClick: (T) => e.openFile(z.url)
4574
4569
  }, {
4575
4570
  default: h(() => [
4576
- b(v)
4571
+ b(k)
4577
4572
  ]),
4578
4573
  _: 1
4579
4574
  }, 8, ["onClick"])),
4580
4575
  o("div", Ih, [
4581
4576
  o("div", {
4582
4577
  class: "uz-form-upload-title uz-truncate",
4583
- title: N.name
4584
- }, H(N.name), 9, Vh),
4578
+ title: z.name
4579
+ }, H(z.name), 9, Vh),
4585
4580
  e.status !== 2 ? (s(), f("div", Uh, [
4586
- b(k, {
4581
+ b(v, {
4587
4582
  onPositiveClick: (T) => e.doDelete(w)
4588
4583
  }, {
4589
4584
  trigger: h(() => [
@@ -4609,7 +4604,7 @@ function jh(e, t, n, u, l, c) {
4609
4604
  }, 8, ["onPositiveClick"]),
4610
4605
  b(a, {
4611
4606
  tag: "a",
4612
- href: N.url,
4607
+ href: z.url,
4613
4608
  download: "",
4614
4609
  size: "small",
4615
4610
  tertiary: ""
@@ -4633,7 +4628,7 @@ function jh(e, t, n, u, l, c) {
4633
4628
  }
4634
4629
  const Oh = /* @__PURE__ */ m(Fh, [["render", jh], ["__scopeId", "data-v-d4bd872d"]]), Ah = re({
4635
4630
  name: "UzFormItemImage",
4636
- components: { NImageGroup: Qa, NImage: jn, NIcon: me, NPopover: Pe, PhotoOff: it, FileText: st },
4631
+ components: { NImageGroup: Qa, NImage: jn, NIcon: me, NPopover: Ge, PhotoOff: it, FileText: st },
4637
4632
  props: {
4638
4633
  value: {
4639
4634
  required: !0,
@@ -4668,15 +4663,15 @@ const Oh = /* @__PURE__ */ m(Fh, [["render", jh], ["__scopeId", "data-v-d4bd872d
4668
4663
  }
4669
4664
  }), Rh = { class: "uz-flex uz-gap-2 uz-max-w-sm uz-overflow-y-hidden uz-overflow-x-auto uz-items-center" };
4670
4665
  function Ph(e, t, n, u, l, c) {
4671
- const r = x("PhotoOff"), p = x("NIcon"), $ = x("NImage"), M = x("FileText"), D = x("NPopover"), z = x("NImageGroup");
4672
- return s(), V(z, null, {
4666
+ const r = x("PhotoOff"), p = x("NIcon"), $ = x("NImage"), M = x("FileText"), D = x("NPopover"), N = x("NImageGroup");
4667
+ return s(), V(N, null, {
4673
4668
  default: h(() => [
4674
4669
  o("div", Rh, [
4675
- (s(!0), f(le, null, ke(e.imgs, (v) => (s(), f(le, null, [
4676
- e.isAssetTypeAnImage(v) ? (s(), V($, {
4670
+ (s(!0), f(le, null, ke(e.imgs, (k) => (s(), f(le, null, [
4671
+ e.isAssetTypeAnImage(k) ? (s(), V($, {
4677
4672
  key: 0,
4678
4673
  width: "40",
4679
- src: v
4674
+ src: k
4680
4675
  }, {
4681
4676
  error: h(() => [
4682
4677
  b(p, {
@@ -4698,7 +4693,7 @@ function Ph(e, t, n, u, l, c) {
4698
4693
  b(p, {
4699
4694
  size: "40",
4700
4695
  color: "lightGrey",
4701
- onClick: (i) => e.openFile(v),
4696
+ onClick: (i) => e.openFile(k),
4702
4697
  class: "uz-cursor-pointer"
4703
4698
  }, {
4704
4699
  default: h(() => [
@@ -4708,7 +4703,7 @@ function Ph(e, t, n, u, l, c) {
4708
4703
  }, 8, ["onClick"])
4709
4704
  ]),
4710
4705
  default: h(() => [
4711
- E(H(e.getFileName(v)), 1)
4706
+ E(H(e.getFileName(k)), 1)
4712
4707
  ]),
4713
4708
  _: 2
4714
4709
  }, 1024))
@@ -4750,9 +4745,9 @@ const ua = /* @__PURE__ */ m(Ah, [["render", Ph]]), Hh = re({
4750
4745
  t("update:value", `${l.value}:${c.value}:${r.value}`);
4751
4746
  }, D = (i) => {
4752
4747
  l.value = i, M();
4753
- }, z = (i) => {
4748
+ }, N = (i) => {
4754
4749
  c.value = i, M();
4755
- }, v = (i) => {
4750
+ }, k = (i) => {
4756
4751
  r.value = i, M();
4757
4752
  };
4758
4753
  return n({ clearAll: p }), ie(
@@ -4773,8 +4768,8 @@ const ua = /* @__PURE__ */ m(Ah, [["render", Ph]]), Hh = re({
4773
4768
  m: c,
4774
4769
  s: r,
4775
4770
  changeH: D,
4776
- changeM: z,
4777
- changeS: v
4771
+ changeM: N,
4772
+ changeS: k
4778
4773
  };
4779
4774
  }
4780
4775
  }), Eh = { class: "times-picker" };
@@ -4847,19 +4842,19 @@ const Lh = /* @__PURE__ */ m(Hh, [["render", qh], ["__scopeId", "data-v-c90165b1
4847
4842
  setup(e, { emit: t }) {
4848
4843
  const n = C(), u = C(!1), l = C(!1), c = Et();
4849
4844
  let r = null, p = null;
4850
- const $ = (k, d) => {
4851
- r.beginPath(), r.moveTo(k.x, k.y), r.lineTo(d.x, d.y), r.lineWidth = 2, r.strokeStyle = "green", r.stroke();
4845
+ const $ = (v, d) => {
4846
+ r.beginPath(), r.moveTo(v.x, v.y), r.lineTo(d.x, d.y), r.lineWidth = 2, r.strokeStyle = "green", r.stroke();
4852
4847
  }, M = () => {
4853
4848
  l.value && requestAnimationFrame(D);
4854
4849
  }, D = () => {
4855
- const k = parseInt(String(e.width)), d = parseInt(String(e.height));
4850
+ const v = parseInt(String(e.width)), d = parseInt(String(e.height));
4856
4851
  if (p && p.readyState === p.HAVE_ENOUGH_DATA) {
4857
- p.width = k, p.height = d, r.drawImage(n.value, 0, 0, k, d);
4858
- const g = r.getImageData(0, 0, k, d);
4852
+ p.width = v, p.height = d, r.drawImage(n.value, 0, 0, v, d);
4853
+ const g = r.getImageData(0, 0, v, d);
4859
4854
  try {
4860
- const N = hs(g.data, k, d);
4861
- if (N) {
4862
- const { location: w, data: T } = N;
4855
+ const z = hs(g.data, v, d);
4856
+ if (z) {
4857
+ const { location: w, data: T } = z;
4863
4858
  T && ($(w.topLeftCorner, w.topRightCorner), $(w.topRightCorner, w.bottomRightCorner), $(w.bottomRightCorner, w.bottomLeftCorner), $(w.bottomLeftCorner, w.topLeftCorner), t("on-update:value", T));
4864
4859
  }
4865
4860
  } catch {
@@ -4870,15 +4865,15 @@ const Lh = /* @__PURE__ */ m(Hh, [["render", qh], ["__scopeId", "data-v-c90165b1
4870
4865
  }
4871
4866
  }
4872
4867
  M();
4873
- }, z = () => {
4874
- n.value && n.value.srcObject && (n.value.srcObject.getTracks().forEach((k) => k.stop()), r = null, p = null, n.value.srcObject = null, n.value.src = null), l.value = !1, u.value = !1;
4875
- }, v = async (k) => {
4876
- n.value.srcObject !== void 0 ? n.value.srcObject = k : window.videoEl.mozSrcObject !== void 0 ? n.value.mozSrcObject = k : window.URL.createObjectURL ? n.value.src = window.URL.createObjectURL(k) : window.webkitURL ? n.value.src = window.webkitURL.createObjectURL(k) : n.value.src = k, n.value.play().then(M);
4877
- const g = k.getVideoTracks()[0];
4868
+ }, N = () => {
4869
+ n.value && n.value.srcObject && (n.value.srcObject.getTracks().forEach((v) => v.stop()), r = null, p = null, n.value.srcObject = null, n.value.src = null), l.value = !1, u.value = !1;
4870
+ }, k = async (v) => {
4871
+ n.value.srcObject !== void 0 ? n.value.srcObject = v : window.videoEl.mozSrcObject !== void 0 ? n.value.mozSrcObject = v : window.URL.createObjectURL ? n.value.src = window.URL.createObjectURL(v) : window.webkitURL ? n.value.src = window.webkitURL.createObjectURL(v) : n.value.src = v, n.value.play().then(M);
4872
+ const g = v.getVideoTracks()[0];
4878
4873
  await i(g);
4879
- }, i = async (k) => {
4874
+ }, i = async (v) => {
4880
4875
  try {
4881
- k.getCapabilities().focusDistance && await k.applyConstraints({
4876
+ v.getCapabilities().focusDistance && await v.applyConstraints({
4882
4877
  advanced: [{ autoFocus: "continuous" }]
4883
4878
  });
4884
4879
  } catch (d) {
@@ -4892,7 +4887,7 @@ const Lh = /* @__PURE__ */ m(Hh, [["render", qh], ["__scopeId", "data-v-c90165b1
4892
4887
  height: parseInt(String(e.height)),
4893
4888
  facingMode: e.facingMode
4894
4889
  }
4895
- }).then(v).catch(() => {
4890
+ }).then(k).catch(() => {
4896
4891
  l.value = !1, c.error({
4897
4892
  content: "未获取到摄像头权限,请确认赋予相关权限",
4898
4893
  duration: 3e3
@@ -4906,15 +4901,15 @@ const Lh = /* @__PURE__ */ m(Hh, [["render", qh], ["__scopeId", "data-v-c90165b1
4906
4901
  return Re(() => {
4907
4902
  e.mode === "video" && a();
4908
4903
  }), Ut(() => {
4909
- z();
4904
+ N();
4910
4905
  }), ie([() => e.width, () => e.width], () => {
4911
- e.mode === "video" && (z(), a());
4906
+ e.mode === "video" && (N(), a());
4912
4907
  }), {
4913
4908
  videoRef: n,
4914
4909
  modal: u,
4915
4910
  loading: l,
4916
4911
  doScan: a,
4917
- closeAll: z
4912
+ closeAll: N
4918
4913
  };
4919
4914
  }
4920
4915
  }), Wh = ["width", "height"], Gh = ["width", "height"], Qh = { class: "uz-scan-video" }, Jh = {
@@ -4991,8 +4986,8 @@ const Yh = /* @__PURE__ */ m(Kh, [["render", Xh]]), Zh = re({
4991
4986
  NGridItem: An,
4992
4987
  NInputGroup: Ht,
4993
4988
  NInputGroupLabel: On,
4994
- NPopover: Pe,
4995
- UzFormItem: Ee,
4989
+ NPopover: Ge,
4990
+ UzFormItem: He,
4996
4991
  CaretDown: Gt,
4997
4992
  Refresh: ct,
4998
4993
  Search: ut,
@@ -5040,7 +5035,7 @@ const Yh = /* @__PURE__ */ m(Kh, [["render", Xh]]), Zh = re({
5040
5035
  },
5041
5036
  emits: ["update:loading", "on-update:value"],
5042
5037
  setup(e, { emit: t }) {
5043
- const n = at(), u = C(), l = C([]), c = C(), r = C(!0), p = C(!1), $ = C(!1), M = C(0), D = C(0), z = C(0), v = C(1), i = C(""), a = C([]), k = C(!1), d = (B) => Array.isArray(B) && B.length > 0 || B ? B : !1, g = (B = !1) => {
5038
+ const n = at(), u = C(), l = C([]), c = C(), r = C(!0), p = C(!1), $ = C(!1), M = C(0), D = C(0), N = C(0), k = C(1), i = C(""), a = C([]), v = C(!1), d = (B) => Array.isArray(B) && B.length > 0 || B ? B : !1, g = (B = !1) => {
5044
5039
  if (e.loading)
5045
5040
  return;
5046
5041
  const _ = G(u.value);
@@ -5060,11 +5055,11 @@ const Yh = /* @__PURE__ */ m(Kh, [["render", Xh]]), Zh = re({
5060
5055
  }
5061
5056
  }
5062
5057
  }), t("update:loading", !0), t("on-update:value", I);
5063
- }, N = () => {
5058
+ }, z = () => {
5064
5059
  e.loading || (u.value = G(c.value), g());
5065
5060
  }, w = () => {
5066
5061
  r.value = !r.value;
5067
- }, T = (B) => k.value ? u.value && Array.isArray(u.value[i.value]) && u.value[i.value].includes(B.value) ? "primary" : "default" : u.value[i.value] === B.value ? "primary" : "default", q = (B) => {
5062
+ }, T = (B) => v.value ? u.value && Array.isArray(u.value[i.value]) && u.value[i.value].includes(B.value) ? "primary" : "default" : u.value[i.value] === B.value ? "primary" : "default", q = (B) => {
5068
5063
  const _ = {};
5069
5064
  let I = 0;
5070
5065
  const F = e.cols ? e.cols : 4;
@@ -5072,9 +5067,9 @@ const Yh = /* @__PURE__ */ m(Kh, [["render", Xh]]), Zh = re({
5072
5067
  for (let S = 0; S <= F; S++)
5073
5068
  B[S]?.search.show && (I = I + 1);
5074
5069
  const U = F - I >= 0 ? F - I - 1 : -1;
5075
- D.value = U, z.value = U, M.value = I, I > F ? (p.value = !0, $.value = !0) : (p.value = !1, $.value = !1);
5070
+ D.value = U, N.value = U, M.value = I, I > F ? (p.value = !0, $.value = !0) : (p.value = !1, $.value = !1);
5076
5071
  for (const S of B)
5077
- if (S.search.tab && (a.value = S.params.options, k.value = S.params.multiple, i.value = S.key, S.search.show = !1), S.input === "input" && S.params.type === "textarea" && (S.params.type = "text"), S.search.show = S.search.show ?? !0, S.defaultValue)
5072
+ if (S.search.tab && (a.value = S.params.options, v.value = S.params.multiple, i.value = S.key, S.search.show = !1), S.input === "input" && S.params.type === "textarea" && (S.params.type = "text"), S.search.show = S.search.show ?? !0, S.defaultValue)
5078
5073
  if (S.input === "date")
5079
5074
  if (S.params.type.indexOf("range") > -1)
5080
5075
  switch (S.search.defaultValue) {
@@ -5113,7 +5108,7 @@ const Yh = /* @__PURE__ */ m(Kh, [["render", Xh]]), Zh = re({
5113
5108
  }
5114
5109
  g(!0);
5115
5110
  }, te = (B) => {
5116
- if (k.value) {
5111
+ if (v.value) {
5117
5112
  const _ = u.value[i.value];
5118
5113
  if (_.includes(B)) {
5119
5114
  const I = _.findIndex((F) => F === B);
@@ -5137,13 +5132,13 @@ const Yh = /* @__PURE__ */ m(Kh, [["render", Xh]]), Zh = re({
5137
5132
  moreCache: $,
5138
5133
  moreIndex: M,
5139
5134
  offset: D,
5140
- offsetCache: z,
5135
+ offsetCache: N,
5141
5136
  collapsed: r,
5142
- gridSpan: v,
5137
+ gridSpan: k,
5143
5138
  tabKey: i,
5144
5139
  tabList: a,
5145
5140
  doSearch: g,
5146
- clearAll: N,
5141
+ clearAll: z,
5147
5142
  showMore: w,
5148
5143
  tabItemChange: te,
5149
5144
  tabButtonType: T
@@ -5157,14 +5152,14 @@ const Yh = /* @__PURE__ */ m(Kh, [["render", Xh]]), Zh = re({
5157
5152
  class: "uz-flex uz-gap-2 uz-flex-1"
5158
5153
  };
5159
5154
  function o1(e, t, n, u, l, c) {
5160
- const r = x("NButton"), p = x("NButtonGroup"), $ = x("NGridItem"), M = x("NInputGroupLabel"), D = x("NPopover"), z = x("UzFormItem"), v = x("NInputGroup"), i = x("NGrid"), a = x("CaretDown"), k = x("NIcon"), d = x("Search"), g = x("Refresh"), N = Sn("media");
5155
+ const r = x("NButton"), p = x("NButtonGroup"), $ = x("NGridItem"), M = x("NInputGroupLabel"), D = x("NPopover"), N = x("UzFormItem"), k = x("NInputGroup"), i = x("NGrid"), a = x("CaretDown"), v = x("NIcon"), d = x("Search"), g = x("Refresh"), z = Sn("media");
5161
5156
  return s(), f("div", {
5162
5157
  class: "uz-search-bar uz-flex uz-justify-between uz-gap-2 uz-w-full",
5163
5158
  onKeyup: t[1] || (t[1] = Ua((w) => e.doSearch(!1), ["enter"]))
5164
5159
  }, [
5165
5160
  e.enableHeader ? (s(), f("div", e1, [
5166
5161
  ge(e.$slots, "header"),
5167
- Le((s(), f("div", t1, [
5162
+ qe((s(), f("div", t1, [
5168
5163
  b(i, {
5169
5164
  "x-gap": "8",
5170
5165
  "y-gap": "8",
@@ -5206,7 +5201,7 @@ function o1(e, t, n, u, l, c) {
5206
5201
  span: w.search.show ? e.gridSpan : 0
5207
5202
  }, {
5208
5203
  default: h(() => [
5209
- b(v, null, {
5204
+ b(k, null, {
5210
5205
  default: h(() => [
5211
5206
  b(D, {
5212
5207
  trigger: "hover",
@@ -5226,7 +5221,7 @@ function o1(e, t, n, u, l, c) {
5226
5221
  ]),
5227
5222
  _: 2
5228
5223
  }, 1024),
5229
- b(z, {
5224
+ b(N, {
5230
5225
  item: w,
5231
5226
  formValue: e.itemValue,
5232
5227
  clearable: !0
@@ -5241,7 +5236,7 @@ function o1(e, t, n, u, l, c) {
5241
5236
  _: 1
5242
5237
  }, 8, ["cols", "collapsed"])
5243
5238
  ])), [
5244
- [N]
5239
+ [z]
5245
5240
  ])
5246
5241
  ])) : W("", !0),
5247
5242
  e.enableHeader ? (s(), f("div", n1, [
@@ -5251,7 +5246,7 @@ function o1(e, t, n, u, l, c) {
5251
5246
  onClick: e.showMore
5252
5247
  }, {
5253
5248
  icon: h(() => [
5254
- b(k, {
5249
+ b(v, {
5255
5250
  class: se(["uz-search-more", e.collapsed ? void 0 : "uz-search-rotate"])
5256
5251
  }, {
5257
5252
  default: h(() => [
@@ -5269,7 +5264,7 @@ function o1(e, t, n, u, l, c) {
5269
5264
  onClick: t[0] || (t[0] = (w) => e.doSearch(!1))
5270
5265
  }, {
5271
5266
  icon: h(() => [
5272
- b(k, {
5267
+ b(v, {
5273
5268
  size: "18",
5274
5269
  color: "#0086ff"
5275
5270
  }, {
@@ -5291,7 +5286,7 @@ function o1(e, t, n, u, l, c) {
5291
5286
  onClick: e.clearAll
5292
5287
  }, {
5293
5288
  icon: h(() => [
5294
- b(k, null, {
5289
+ b(v, null, {
5295
5290
  default: h(() => [
5296
5291
  b(g)
5297
5292
  ]),
@@ -5320,7 +5315,7 @@ const r1 = /* @__PURE__ */ m(Zh, [["render", o1]]), a1 = re({
5320
5315
  NInputGroupLabel: On,
5321
5316
  Refresh: ct,
5322
5317
  Search: ut,
5323
- UzFormItem: Ee
5318
+ UzFormItem: He
5324
5319
  },
5325
5320
  props: {
5326
5321
  data: {
@@ -5343,50 +5338,50 @@ const r1 = /* @__PURE__ */ m(Zh, [["render", o1]]), a1 = re({
5343
5338
  },
5344
5339
  emits: ["update:loading", "on-update:value"],
5345
5340
  setup(e, { emit: t }) {
5346
- const n = at(), u = C([]), l = C(!1), c = C(), r = C(), p = (v) => Array.isArray(v) && v.length > 0 || v ? v : !1, $ = (v = !1) => {
5341
+ const n = at(), u = C([]), l = C(!1), c = C(), r = C(), p = (k) => Array.isArray(k) && k.length > 0 || k ? k : !1, $ = (k = !1) => {
5347
5342
  if (e.loading)
5348
5343
  return;
5349
5344
  const i = G(c.value);
5350
- !v && i.query && (i.query.page = 1);
5345
+ !k && i.query && (i.query.page = 1);
5351
5346
  const a = [];
5352
- u.value.forEach((k) => {
5353
- if (i[k.key]) {
5354
- const d = p(i[k.key]);
5347
+ u.value.forEach((v) => {
5348
+ if (i[v.key]) {
5349
+ const d = p(i[v.key]);
5355
5350
  if (d) {
5356
5351
  const g = {
5357
- key: k.key,
5352
+ key: v.key,
5358
5353
  value: d,
5359
5354
  range: !1,
5360
- fuzzy: k.search.fuzzy
5355
+ fuzzy: v.search.fuzzy
5361
5356
  };
5362
- (k.input === "cascader" || k.input === "select") && k.params.multiple && (g.range = !0), k.input === "date" && k.params.type.indexOf("range") > -1 && (g.range = !0, g.time = !0), a.push(g);
5357
+ (v.input === "cascader" || v.input === "select") && v.params.multiple && (g.range = !0), v.input === "date" && v.params.type.indexOf("range") > -1 && (g.range = !0, g.time = !0), a.push(g);
5363
5358
  }
5364
5359
  }
5365
5360
  }), l.value = !1, t("update:loading", !0), t("on-update:value", a);
5366
5361
  }, M = () => {
5367
5362
  e.loading || (c.value = G(r.value), $());
5368
- }, D = (v) => {
5363
+ }, D = (k) => {
5369
5364
  const i = {};
5370
- for (const a of v)
5365
+ for (const a of k)
5371
5366
  a.input === "input" && a.params.type === "textarea" && (a.params.type = "text"), a.search.show = a.search.show ?? !0, a.defaultValue ? i[a.key] = a.defaultValue : (i[a.key] = "", (a.input === "number" || a.input === "date" || a.input === "time") && (i[a.key] = null), a.input === "cascader" && (a.params.multiple ? i[a.key] = [] : i[a.key] = null), a.input === "select" && (a.params.multiple ? i[a.key] = [] : i[a.key] = null));
5372
- return { data: v, values: i };
5373
- }, z = (v) => {
5374
- if (v && v.length > 0) {
5375
- const { data: i, values: a } = D(G(v)), k = {}, d = e.id || n.params.id;
5367
+ return { data: k, values: i };
5368
+ }, N = (k) => {
5369
+ if (k && k.length > 0) {
5370
+ const { data: i, values: a } = D(G(k)), v = {}, d = e.id || n.params.id;
5376
5371
  if (e.cache && d) {
5377
5372
  const g = _e(`tables_${d}`, !1);
5378
- g && g.params.forEach((N) => {
5379
- k[N.key] = N.value;
5373
+ g && g.params.forEach((z) => {
5374
+ v[z.key] = z.value;
5380
5375
  });
5381
5376
  }
5382
- u.value = i, c.value = G({ ...a, ...k }), r.value = G(a);
5377
+ u.value = i, c.value = G({ ...a, ...v }), r.value = G(a);
5383
5378
  }
5384
5379
  $(!0);
5385
5380
  };
5386
5381
  return ie(
5387
5382
  () => e.data,
5388
- (v) => {
5389
- z(v);
5383
+ (k) => {
5384
+ N(k);
5390
5385
  }
5391
5386
  ), {
5392
5387
  drawer: l,
@@ -5398,7 +5393,7 @@ const r1 = /* @__PURE__ */ m(Zh, [["render", o1]]), a1 = re({
5398
5393
  }
5399
5394
  }), s1 = { class: "uz-flex uz-items-start uz-justify-between uz-gap-8 uz-pb-2" }, l1 = { class: "uz-flex uz-gap-2" }, i1 = { class: "uz-flex uz-items-center uz-gap-2 uz-w-full" };
5400
5395
  function c1(e, t, n, u, l, c) {
5401
- const r = x("Search"), p = x("NIcon"), $ = x("NButton"), M = x("NInputGroupLabel"), D = x("UzFormItem"), z = x("NInputGroup"), v = x("NGridItem"), i = x("NGrid"), a = x("Refresh"), k = x("NDrawerContent"), d = x("NDrawer");
5396
+ const r = x("Search"), p = x("NIcon"), $ = x("NButton"), M = x("NInputGroupLabel"), D = x("UzFormItem"), N = x("NInputGroup"), k = x("NGridItem"), i = x("NGrid"), a = x("Refresh"), v = x("NDrawerContent"), d = x("NDrawer");
5402
5397
  return s(), f(le, null, [
5403
5398
  o("div", s1, [
5404
5399
  ge(e.$slots, "header"),
@@ -5434,7 +5429,7 @@ function c1(e, t, n, u, l, c) {
5434
5429
  "close-on-esc": !1
5435
5430
  }, {
5436
5431
  default: h(() => [
5437
- b(k, {
5432
+ b(v, {
5438
5433
  title: "查询",
5439
5434
  closable: ""
5440
5435
  }, {
@@ -5488,12 +5483,12 @@ function c1(e, t, n, u, l, c) {
5488
5483
  cols: "1"
5489
5484
  }, {
5490
5485
  default: h(() => [
5491
- (s(!0), f(le, null, ke(e.itemData, (g, N) => (s(), V(v, {
5492
- key: `${N}_${Date.now()}`,
5486
+ (s(!0), f(le, null, ke(e.itemData, (g, z) => (s(), V(k, {
5487
+ key: `${z}_${Date.now()}`,
5493
5488
  span: g.search.show ? 1 : 0
5494
5489
  }, {
5495
5490
  default: h(() => [
5496
- b(z, null, {
5491
+ b(N, null, {
5497
5492
  default: h(() => [
5498
5493
  b(M, { class: "uz-group-label" }, {
5499
5494
  default: h(() => [
@@ -5623,7 +5618,7 @@ async function Bt(e) {
5623
5618
  let n = !1;
5624
5619
  return t.length > 1 && (Ie.has(t[0]) ? n = G(Ie.get(t[0])) : (n = await Fe({ tableId: t[0] }), Ie.set(t[0], n))), { sourceData: n, n: t };
5625
5620
  }
5626
- async function We(e) {
5621
+ async function Ke(e) {
5627
5622
  return new Promise((t, n) => {
5628
5623
  const u = _e(`dynamicTable_${e}`, !1);
5629
5624
  u && Ie.has(`dynamicTable_${e}`) ? t(u) : Pf(e).then((l) => {
@@ -5717,7 +5712,7 @@ const m1 = (e) => e.map((t) => {
5717
5712
  }
5718
5713
  }
5719
5714
  };
5720
- }), Ge = (e) => !e[0] || e[0] && e[0].input ? e : e.map((t) => {
5715
+ }), We = (e) => !e[0] || e[0] && e[0].input ? e : e.map((t) => {
5721
5716
  const n = {};
5722
5717
  return n.placeholder = t.p.z, t.i === "group" ? n.children = t.p.n : n.clearable = !!t.p.c, t.i === "input" && (t.p.t && (n.type = t.p.t), t.p.i && (n.minlength = t.p.i), t.p.a && (n.maxlength = t.p.a), t.p.r && (n.rows = t.p.r), t.p.e && (n.prefix = t.p.e), t.p.s && (n.suffix = t.p.s)), t.i === "auto" && (n.options = t.p.o, t.p.e && (n.prefix = t.p.e), t.p.s && (n.suffix = t.p.s)), t.i === "number" && (n.showButton = !!t.p.b, t.p.i && (n.min = t.p.i), t.p.a && (n.max = t.p.a), t.p.x && (n.minKey = t.p.x), t.p.y && (n.maxKey = t.p.y), t.p.t && (n.step = t.p.t), t.p.p && (n.precision = t.p.p), t.p.e && (n.prefix = t.p.e), t.p.s && (n.suffix = t.p.s)), t.i === "date" && (n.type = t.p.y, t.p.f && (n.format = t.p.f), t.p.d && (n.isDateDisabled = t.p.d), t.p.t && (n.timePickerProps = t.p.t)), t.i === "select" && (n.options = t.p.o, n.filterable = !!t.p.f, n.multiple = !!t.p.m, n.tag = !!t.p.t, n.labelKeys = t.p.l, n.valueKey = t.p.v, n.renderLabel = t.p.r, n.renderTag = t.p.g), t.i === "cascader" && (n.options = t.p.o, n.filterable = !!t.p.f, n.multiple = !!t.p.m), t.i === "checkbox" && (n.options = t.p.o), t.i === "time" && (n.format = t.p.f), t.i === "upload" && (n.small = !!t.p.s, n.accept = t.p.a, n.max = t.p.m), t.i === "switch" && (n.checked = t.p.h, n.unchecked = t.p.u), t.i === "divider" && (n.placement = t.p.p), t.i === "filling" && (n.parentKey = t.p.k), t.i === "subTable" && (n.init = !!t.p.i, n.quest = !!t.p.q, n.searchKey = t.p.k, n.link = t.p.l, n.columns = t.p.c, n.actions = t.p.a, n.addButton = !!t.p.b, n.draggable = !!t.p.g, n.childActions = !!t.p.h, n.showActions = !!t.p.n, n.showDelete = !!(t.p.d ?? !0), t.p.t && (n.optionsType = t.p.t), t.p.u && (n.optionsSource = t.p.u), t.p.o && (n.options = t.p.o), t.p.s && (n.summary = t.p.s), t.p.m && (n.merge = t.p.m), t.p.f && (n.deleteFn = t.p.f)), {
5723
5718
  input: t.i,
@@ -5832,50 +5827,50 @@ const m1 = (e) => e.map((t) => {
5832
5827
  };
5833
5828
  function pt(e, t, n) {
5834
5829
  return new Promise(async (u, l) => {
5835
- const c = [], r = {}, p = {}, $ = {}, M = [], D = [], z = G(e), v = [];
5836
- for (const i of z)
5837
- i.input === "group" ? v.push(...i.params.children) : v.push(i);
5838
- for await (const i of v) {
5830
+ const c = [], r = {}, p = {}, $ = {}, M = [], D = [], N = G(e), k = [];
5831
+ for (const i of N)
5832
+ i.input === "group" ? k.push(...i.params.children) : k.push(i);
5833
+ for await (const i of k) {
5839
5834
  if (i.source) {
5840
- const { sourceData: a, n: k } = await Bt(i.source);
5835
+ const { sourceData: a, n: v } = await Bt(i.source);
5841
5836
  if (a && Array.isArray(a)) {
5842
5837
  let d = [];
5843
5838
  if (i.sourceFn) {
5844
5839
  const g = i.sourceFn;
5845
5840
  d = new Function("sourceData", g)(a);
5846
5841
  } else
5847
- d = Tt(i, a, k);
5842
+ d = Tt(i, a, v);
5848
5843
  if (i.params.options = d, i.form.backfill && t)
5849
5844
  if (Array.isArray(t))
5850
- t.forEach((g, N) => {
5845
+ t.forEach((g, z) => {
5851
5846
  const w = d.find((T) => T.value === g[i.key]);
5852
- w && (M[N] || (M[N] = {}), M[N][i.key] = w.params);
5847
+ w && (M[z] || (M[z] = {}), M[z][i.key] = w.params);
5853
5848
  });
5854
5849
  else {
5855
- const g = d.find((N) => N.value === t[i.key]);
5850
+ const g = d.find((z) => z.value === t[i.key]);
5856
5851
  g && (p[i.key] = g.params);
5857
5852
  }
5858
5853
  }
5859
5854
  }
5860
5855
  if (i.input === "filling")
5861
5856
  try {
5862
- Array.isArray(t) ? t.forEach((a, k) => {
5863
- D[k] || (D[k] = {}), M[k] && M[k][i.params.parentKey] && M[k][i.params.parentKey][i.key] ? (D[k][i.key] = M[k][i.params.parentKey][i.key], M[k][i.params.parentKey][`${i.key}Str`] && (D[k][`${i.key}Str`] = M[k][i.params.parentKey][`${i.key}Str`])) : (D[k][i.key] = null, D[k][`${i.key}Str`] = null);
5857
+ Array.isArray(t) ? t.forEach((a, v) => {
5858
+ D[v] || (D[v] = {}), M[v] && M[v][i.params.parentKey] && M[v][i.params.parentKey][i.key] ? (D[v][i.key] = M[v][i.params.parentKey][i.key], M[v][i.params.parentKey][`${i.key}Str`] && (D[v][`${i.key}Str`] = M[v][i.params.parentKey][`${i.key}Str`])) : (D[v][i.key] = null, D[v][`${i.key}Str`] = null);
5864
5859
  }) : p[i.params.parentKey] && p[i.params.parentKey][i.key] ? ($[i.key] = p[i.params.parentKey][i.key], p[i.params.parentKey][`${i.key}Str`] && ($[`${i.key}Str`] = p[i.params.parentKey][`${i.key}Str`])) : ($[i.key] = null, $[`${i.key}Str`] = null);
5865
5860
  } catch (a) {
5866
5861
  oe(a);
5867
5862
  }
5868
5863
  if (i.input !== "divider" && i.form.rule && i.form.rule.validator && typeof i.form.rule.validator == "string")
5869
5864
  try {
5870
- const a = i.form.rule.validator, k = new Function("rule", "value", "index", "formValues", a);
5871
- i.form.rule.validator = (d, g) => k(d, g, null, n);
5865
+ const a = i.form.rule.validator, v = new Function("rule", "value", "index", "formValues", a);
5866
+ i.form.rule.validator = (d, g) => v(d, g, null, n);
5872
5867
  } catch (a) {
5873
5868
  oe(a);
5874
5869
  }
5875
5870
  if (i.input === "date" && i.params.isDateDisabled && typeof i.params.isDateDisabled == "string")
5876
5871
  try {
5877
- const a = i.params.isDateDisabled, k = new Function("ts", "detail", a);
5878
- i.params.isDateDisabled = (d, g) => k(d, g);
5872
+ const a = i.params.isDateDisabled, v = new Function("ts", "detail", a);
5873
+ i.params.isDateDisabled = (d, g) => v(d, g);
5879
5874
  } catch (a) {
5880
5875
  oe(a);
5881
5876
  }
@@ -5884,39 +5879,39 @@ function pt(e, t, n) {
5884
5879
  i.params.options = a;
5885
5880
  }
5886
5881
  if (i.input === "subTable" && i.params.link) {
5887
- const a = await We(i.params.link).catch(() => {
5882
+ const a = await Ke(i.params.link).catch(() => {
5888
5883
  l();
5889
5884
  });
5890
5885
  if (a)
5891
5886
  try {
5892
- const k = Ve.parse(a.viewJson), d = Ge(k.table);
5893
- d.forEach((N) => {
5894
- N.table.sorter = !1;
5887
+ const v = Ve.parse(a.viewJson), d = We(v.table);
5888
+ d.forEach((z) => {
5889
+ z.table.sorter = !1;
5895
5890
  });
5896
5891
  const g = d.filter(
5897
- (N) => N.input === "subTable"
5892
+ (z) => z.input === "subTable"
5898
5893
  );
5899
5894
  if (g)
5900
- for await (const N of g) {
5901
- const w = await We(
5902
- N.params.link
5895
+ for await (const z of g) {
5896
+ const w = await Ke(
5897
+ z.params.link
5903
5898
  ).catch(() => {
5904
5899
  l();
5905
5900
  });
5906
5901
  if (w)
5907
5902
  try {
5908
- const T = Ve.parse(w.viewJson), q = Ge(T.table);
5903
+ const T = Ve.parse(w.viewJson), q = We(T.table);
5909
5904
  q.forEach((J) => {
5910
5905
  J.table.sorter = !1;
5911
- }), N.params.columns = q, N.params.actions = T.action;
5906
+ }), z.params.columns = q, z.params.actions = T.action;
5912
5907
  } catch (T) {
5913
5908
  l(T);
5914
5909
  return;
5915
5910
  }
5916
5911
  }
5917
- i.params.columns = d, i.params.actions = k.action;
5918
- } catch (k) {
5919
- l(k);
5912
+ i.params.columns = d, i.params.actions = v.action;
5913
+ } catch (v) {
5914
+ l(v);
5920
5915
  return;
5921
5916
  }
5922
5917
  }
@@ -5943,26 +5938,26 @@ async function ft(e, t = !1, n = 0, u = () => {
5943
5938
  let c = 0;
5944
5939
  const r = [], p = [];
5945
5940
  let $ = [];
5946
- const M = G(e), D = [], z = [];
5941
+ const M = G(e), D = [], N = [];
5947
5942
  for (const a of M)
5948
- a.input === "group" ? (D.push(...a.params.children), z.push({
5943
+ a.input === "group" ? (D.push(...a.params.children), N.push({
5949
5944
  title: a.label,
5950
5945
  key: a.key,
5951
5946
  ...a.table,
5952
- children: a.params.children.map((k) => k.key)
5953
- })) : (D.push(a), z.push(a.key));
5954
- const v = [];
5947
+ children: a.params.children.map((v) => v.key)
5948
+ })) : (D.push(a), N.push(a.key));
5949
+ const k = [];
5955
5950
  e.forEach((a) => {
5956
- (a.input === "cascader" || a.input === "select") && a.params.multiple && v.push(a.key);
5951
+ (a.input === "cascader" || a.input === "select") && a.params.multiple && k.push(a.key);
5957
5952
  });
5958
5953
  for await (const a of D) {
5959
5954
  if (a.source && !a.table.render && a.input !== "auto") {
5960
5955
  const { sourceData: d, n: g } = await Bt(a.source);
5961
5956
  if (d && Array.isArray(d))
5962
- if (a.table.render = (N) => {
5957
+ if (a.table.render = (z) => {
5963
5958
  if (d && d.length > 0)
5964
- if (v.includes(a.key) && N[a.key]) {
5965
- const w = [], T = JSON.parse(N[a.key]);
5959
+ if (k.includes(a.key) && z[a.key]) {
5960
+ const w = [], T = JSON.parse(z[a.key]);
5966
5961
  if (T)
5967
5962
  for (const q of T) {
5968
5963
  const J = d.find(
@@ -5988,21 +5983,21 @@ async function ft(e, t = !1, n = 0, u = () => {
5988
5983
  (a.params?.valueKey ? (
5989
5984
  // @ts-ignore
5990
5985
  T[a.params?.valueKey]
5991
- ) : String(T.id)) === N[a.key]
5986
+ ) : String(T.id)) === z[a.key]
5992
5987
  )
5993
5988
  );
5994
5989
  if (w)
5995
5990
  return w[g[1]];
5996
5991
  }
5997
5992
  }, a.sourceFn) {
5998
- const N = a.sourceFn, w = new Function("sourceData", N);
5993
+ const z = a.sourceFn, w = new Function("sourceData", z);
5999
5994
  a.params.options = w(d);
6000
5995
  } else
6001
5996
  a.params.options = Tt(a, d, g);
6002
5997
  }
6003
5998
  if (!a.table.render && !a.source && a.input === "select" && typeof a.params.options != "function" && a.params.options.length > 0 && (a.table.render = (d) => {
6004
5999
  const g = a.params.options.find(
6005
- (N) => N.value === d[a.key]
6000
+ (z) => z.value === d[a.key]
6006
6001
  );
6007
6002
  if (g)
6008
6003
  return g.label;
@@ -6021,7 +6016,7 @@ async function ft(e, t = !1, n = 0, u = () => {
6021
6016
  }
6022
6017
  );
6023
6018
  }), c = c + Number(a.table.width || 140);
6024
- let k = {
6019
+ let v = {
6025
6020
  input: a.input,
6026
6021
  title: a.label,
6027
6022
  key: a.key,
@@ -6037,15 +6032,15 @@ async function ft(e, t = !1, n = 0, u = () => {
6037
6032
  fixTemp: a.table.fixed
6038
6033
  };
6039
6034
  if (t)
6040
- if (!k.form.edit.show)
6041
- k = null;
6035
+ if (!v.form.edit.show)
6036
+ v = null;
6042
6037
  else {
6043
- if (k.ellipsis = !1, k.resizable = !0, pe.isMobile && (k.show = a.table.mobile), a.table.show && (n === 0 && (k.show = a.form.create.show), n === 1 && (k.show = a.form.edit.show), n === 2 && (k.show = a.form.show)), a.form.rule?.required && typeof a.form.rule.validator == "string") {
6038
+ if (v.ellipsis = !1, v.resizable = !0, pe.isMobile && (v.show = a.table.mobile), a.table.show && (n === 0 && (v.show = a.form.create.show), n === 1 && (v.show = a.form.edit.show), n === 2 && (v.show = a.form.show)), a.form.rule?.required && typeof a.form.rule.validator == "string") {
6044
6039
  delete a.form.rule.message;
6045
6040
  const d = a.form.rule.validator, g = new Function("rule", "value", "index", "formValues", d);
6046
- a.form.rule.validator !== "" ? a.form.rule.validator = (N, w) => u()[N.index].delete ? !0 : g(N, w, N.index, () => u()) : a.form.rule.validator = (N, w) => u()[N.index].delete || w ? !0 : new Error(a.form.rule.message);
6041
+ a.form.rule.validator !== "" ? a.form.rule.validator = (z, w) => u()[z.index].delete ? !0 : g(z, w, z.index, () => u()) : a.form.rule.validator = (z, w) => u()[z.index].delete || w ? !0 : new Error(a.form.rule.message);
6047
6042
  }
6048
- k.render = function(d, g) {
6043
+ v.render = function(d, g) {
6049
6044
  return Z(
6050
6045
  Rt,
6051
6046
  {
@@ -6059,7 +6054,7 @@ async function ft(e, t = !1, n = 0, u = () => {
6059
6054
  } : void 0
6060
6055
  },
6061
6056
  {
6062
- default: () => Z(Ee, {
6057
+ default: () => Z(He, {
6063
6058
  item: a,
6064
6059
  formValue: d,
6065
6060
  status: n,
@@ -6069,7 +6064,7 @@ async function ft(e, t = !1, n = 0, u = () => {
6069
6064
  );
6070
6065
  };
6071
6066
  }
6072
- if (k && a.input !== "divider" && a.input !== "subTable" && $.push(k), a.input !== "divider" && a.input !== "switch" && a.input !== "subTable" && a.input !== "upload" && a.search.show) {
6067
+ if (v && a.input !== "divider" && a.input !== "subTable" && $.push(v), a.input !== "divider" && a.input !== "switch" && a.input !== "subTable" && a.input !== "upload" && a.search.show) {
6073
6068
  if (a.search.source)
6074
6069
  if (a.input = "select", a.params.type = a.search.type, a.params.valueKey = a.search.valueKey, a.params.valueKey = a.search.valueKey, a.search.source === "from-up")
6075
6070
  a.params.options = a.params.options;
@@ -6077,7 +6072,7 @@ async function ft(e, t = !1, n = 0, u = () => {
6077
6072
  const { sourceData: d, n: g } = await Bt(a.search.source);
6078
6073
  if (d && Array.isArray(d))
6079
6074
  if (a.sourceFn) {
6080
- const N = a.sourceFn, w = new Function("sourceData", N);
6075
+ const z = a.sourceFn, w = new Function("sourceData", z);
6081
6076
  a.params.options = w(d);
6082
6077
  } else
6083
6078
  a.params.options = Tt(a, d, g);
@@ -6101,17 +6096,17 @@ async function ft(e, t = !1, n = 0, u = () => {
6101
6096
  a.input === "subTable" && a.params.link && !a.params.quest && p.push(a.params.link);
6102
6097
  }
6103
6098
  const i = [];
6104
- if (z.length > 0) {
6105
- for (const a of z) {
6099
+ if (N.length > 0) {
6100
+ for (const a of N) {
6106
6101
  if (typeof a == "string") {
6107
- const k = $.find((d) => d.key === a);
6108
- k && i.push(k);
6102
+ const v = $.find((d) => d.key === a);
6103
+ v && i.push(v);
6109
6104
  }
6110
6105
  if (typeof a == "object") {
6111
- const k = a.children, d = [];
6112
- for (const g of k) {
6113
- const N = $.find((w) => w.key === g);
6114
- N && d.push(N);
6106
+ const v = a.children, d = [];
6107
+ for (const g of v) {
6108
+ const z = $.find((w) => w.key === g);
6109
+ z && d.push(z);
6115
6110
  }
6116
6111
  a.children = d, i.push(a);
6117
6112
  }
@@ -6188,7 +6183,7 @@ function k1(e, t, n, u, l, c) {
6188
6183
  _: 1
6189
6184
  }),
6190
6185
  t[0] || (t[0] = o("div", { class: "uz-br" }, null, -1)),
6191
- Le(b(p, {
6186
+ qe(b(p, {
6192
6187
  type: "warning",
6193
6188
  block: "",
6194
6189
  secondary: "",
@@ -6213,15 +6208,15 @@ const fa = /* @__PURE__ */ m(v1, [["render", k1]]), y1 = re({
6213
6208
  name: "UzTable",
6214
6209
  components: {
6215
6210
  NDataTable: qt,
6216
- NPopover: Pe,
6211
+ NPopover: Ge,
6217
6212
  NButton: we,
6218
6213
  NIcon: me,
6219
6214
  NSkeleton: En,
6220
6215
  NCheckbox: Ot,
6221
6216
  NSpin: rt,
6222
6217
  Filter: lt,
6223
- GridDots: Ke,
6224
- Plus: He,
6218
+ GridDots: Le,
6219
+ Plus: Pe,
6225
6220
  Draggable: Ln,
6226
6221
  UzSpin: fa,
6227
6222
  UzIcon: Yt
@@ -6356,7 +6351,7 @@ const fa = /* @__PURE__ */ m(v1, [["render", k1]]), y1 = re({
6356
6351
  value: () => null,
6357
6352
  setValue: () => null
6358
6353
  });
6359
- const l = at(), { t: c } = Kt(), r = Et(), p = ze(() => pe.isMobile), $ = C(), M = C(), D = C(), z = C(!!u.header), v = C(!1), i = C(!1), a = C(""), k = C(), d = C([]), g = C([]), N = C([]), w = C(void 0), T = C({
6354
+ const l = at(), { t: c } = Kt(), r = Et(), p = ze(() => pe.isMobile), $ = C(), M = C(), D = C(), N = C(!!u.header), k = C(!1), i = C(!1), a = C(""), v = C(), d = C([]), g = C([]), z = C([]), w = C(void 0), T = C({
6360
6355
  params: [],
6361
6356
  query: {
6362
6357
  page: 1,
@@ -6367,7 +6362,7 @@ const fa = /* @__PURE__ */ m(v1, [["render", k1]]), y1 = re({
6367
6362
  fetch: null,
6368
6363
  when_drawer_open: "",
6369
6364
  when_before_save: ""
6370
- }), S = C(Ae()), A = C(""), R = C(!1), L = C([]), ne = C([]), ht = Ne("modules"), qe = (y) => y.id, mt = (y, j) => {
6365
+ }), S = C(Ae()), A = C(""), R = C(!1), L = C([]), ne = C([]), ht = Ne("modules"), Ee = (y) => y.id, mt = (y, j) => {
6371
6366
  t("update:rowKeys", {
6372
6367
  keys: y,
6373
6368
  rows: G(j)
@@ -6390,14 +6385,14 @@ const fa = /* @__PURE__ */ m(v1, [["render", k1]]), y1 = re({
6390
6385
  return j && typeof j == "string" ? new Function("pageData", "h", j)(y, "h", Z) : j && typeof j == "function" ? j(y) : [];
6391
6386
  }, ue = (y = !1) => {
6392
6387
  const j = e.id || l.params.id;
6393
- e.enableLoading && (v.value = !0, t("update:loading", !0));
6388
+ e.enableLoading && (k.value = !0, t("update:loading", !0));
6394
6389
  const K = G(T.value);
6395
6390
  if (y && delete K.orderby, U.value.fetch)
6396
6391
  kn([U.value.fetch], "", K).then((Y) => {
6397
6392
  const P = gn(Y);
6398
- T.value.query = P.query, N.value = P.records, v.value = !1, i.value = !0, t("on-update:value", K), t("update:loading", !1), S.value.cache && j && be(`tables_${j}`, T.value);
6393
+ T.value.query = P.query, z.value = P.records, k.value = !1, i.value = !0, t("on-update:value", K), t("update:loading", !1), S.value.cache && j && be(`tables_${j}`, T.value);
6399
6394
  }).catch(() => {
6400
- v.value = !1, i.value = !0, t("update:loading", !1);
6395
+ k.value = !1, i.value = !0, t("update:loading", !1);
6401
6396
  });
6402
6397
  else {
6403
6398
  let Y;
@@ -6406,9 +6401,9 @@ const fa = /* @__PURE__ */ m(v1, [["render", k1]]), y1 = re({
6406
6401
  tableId: j
6407
6402
  }), Y.then((P) => {
6408
6403
  const X = gn(P);
6409
- T.value.query = X.query, N.value = X.records, v.value = !1, i.value = !0, t("on-update:value", K), t("update:loading", !1), S.value.cache && j && be(`tables_${j}`, T.value);
6404
+ T.value.query = X.query, z.value = X.records, k.value = !1, i.value = !0, t("on-update:value", K), t("update:loading", !1), S.value.cache && j && be(`tables_${j}`, T.value);
6410
6405
  }).catch(() => {
6411
- v.value = !1, i.value = !0, t("update:loading", !1);
6406
+ k.value = !1, i.value = !0, t("update:loading", !1);
6412
6407
  });
6413
6408
  }
6414
6409
  }, $a = (y) => {
@@ -6499,7 +6494,7 @@ const fa = /* @__PURE__ */ m(v1, [["render", k1]]), y1 = re({
6499
6494
  y,
6500
6495
  () => D.value?.getFormValues()
6501
6496
  );
6502
- return k.value = j, { form: j, fillingDefaultValue: K, formDefaultValue: Y };
6497
+ return v.value = j, { form: j, fillingDefaultValue: K, formDefaultValue: Y };
6503
6498
  }, an = async (y) => new Promise((j, K) => {
6504
6499
  const Y = e.id || l.params.id;
6505
6500
  let P;
@@ -6551,7 +6546,7 @@ const fa = /* @__PURE__ */ m(v1, [["render", k1]]), y1 = re({
6551
6546
  }
6552
6547
  } else
6553
6548
  y.disabled = () => Ye(y.key);
6554
- if (y.loading = v.value, y.type !== "group" && y.optionsType)
6549
+ if (y.loading = k.value, y.type !== "group" && y.optionsType)
6555
6550
  y.onClick = async (P) => {
6556
6551
  an(P).then((X) => {
6557
6552
  if (y.optionsType === "drawer:insider") {
@@ -6788,7 +6783,7 @@ const fa = /* @__PURE__ */ m(v1, [["render", k1]]), y1 = re({
6788
6783
  }, S.value = Ae();
6789
6784
  }, Ia = (y) => {
6790
6785
  const j = Ve.parse(y.viewJson);
6791
- a.value = y.tableTitle, _.value = Ge(j.table), I.value = ot(e.actions || j.action);
6786
+ a.value = y.tableTitle, _.value = We(j.table), I.value = ot(e.actions || j.action);
6792
6787
  const K = ot(j.suffix || []);
6793
6788
  F.value = K.map((P) => (Va(P), P)), U.value = pa(j.trigger);
6794
6789
  const Y = Ae(e.options ?? j.option);
@@ -6803,14 +6798,14 @@ const fa = /* @__PURE__ */ m(v1, [["render", k1]]), y1 = re({
6803
6798
  pageMax: 1,
6804
6799
  pageSize: e.pageSize || 30
6805
6800
  }
6806
- }, N.value = [], e.ruleFetch)
6801
+ }, z.value = [], e.ruleFetch)
6807
6802
  try {
6808
6803
  B.value = await e.ruleFetch(y);
6809
6804
  } catch {
6810
6805
  A.value = c("Notice.network"), R.value = !0;
6811
6806
  return;
6812
6807
  }
6813
- dn(), e.columns ? (_.value = e.columns || [], I.value = e.actions || [], F.value = e.suffixes || [], S.value = Ae(e.options), await cn()) : await We(y).then(async (j) => {
6808
+ dn(), e.columns ? (_.value = e.columns || [], I.value = e.actions || [], F.value = e.suffixes || [], S.value = Ae(e.options), await cn()) : await Ke(y).then(async (j) => {
6814
6809
  Ia(j), await cn();
6815
6810
  }).catch((j) => {
6816
6811
  A.value = j.message, R.value = !0;
@@ -6875,17 +6870,17 @@ const fa = /* @__PURE__ */ m(v1, [["render", k1]]), y1 = re({
6875
6870
  deep: !0
6876
6871
  }
6877
6872
  ), {
6878
- loading: v,
6873
+ loading: k,
6879
6874
  minH: J,
6880
6875
  maxH: te,
6881
6876
  drawerRef: D,
6882
6877
  tableOption: S,
6883
6878
  tableColumns: d,
6884
- tableData: N,
6879
+ tableData: z,
6885
6880
  tableQueries: T,
6886
6881
  searchData: q,
6887
6882
  baseColumns: g,
6888
- isSlotHeader: z,
6883
+ isSlotHeader: N,
6889
6884
  title: a,
6890
6885
  dynamicLoading: i,
6891
6886
  spinMsg: A,
@@ -6896,7 +6891,7 @@ const fa = /* @__PURE__ */ m(v1, [["render", k1]]), y1 = re({
6896
6891
  mRef: $,
6897
6892
  checkRowKeys: L,
6898
6893
  route: l,
6899
- rowKey: qe,
6894
+ rowKey: Ee,
6900
6895
  pageChange: $a,
6901
6896
  pageSizeChange: Ma,
6902
6897
  pageSorter: za,
@@ -6920,14 +6915,14 @@ const fa = /* @__PURE__ */ m(v1, [["render", k1]]), y1 = re({
6920
6915
  class: "uz-transform-fade-in"
6921
6916
  }, z1 = { class: "uz-com-title" };
6922
6917
  function N1(e, t, n, u, l, c) {
6923
- const r = x("NSkeleton"), p = x("NButton"), $ = x("Plus"), M = x("NIcon"), D = x("UzActionButton"), z = x("UzSearchMobileBar"), v = x("UzTableMobile"), i = x("Filter"), a = x("NCheckbox"), k = x("GridDots"), d = x("Draggable"), g = x("NPopover"), N = x("UzSearchBar"), w = x("NDataTable"), T = x("NSpin"), q = x("UzTableDrawer");
6918
+ const r = x("NSkeleton"), p = x("NButton"), $ = x("Plus"), M = x("NIcon"), D = x("UzActionButton"), N = x("UzSearchMobileBar"), k = x("UzTableMobile"), i = x("Filter"), a = x("NCheckbox"), v = x("GridDots"), d = x("Draggable"), g = x("NPopover"), z = x("UzSearchBar"), w = x("NDataTable"), T = x("NSpin"), q = x("UzTableDrawer");
6924
6919
  return s(), f("div", {
6925
6920
  class: "uz-table",
6926
6921
  style: ve({
6927
6922
  width: e.isTypeofNumber(e.width)
6928
6923
  })
6929
6924
  }, [
6930
- Le(o("div", b1, [
6925
+ qe(o("div", b1, [
6931
6926
  o("div", x1, [
6932
6927
  b(r, {
6933
6928
  width: 120,
@@ -6968,7 +6963,7 @@ function N1(e, t, n, u, l, c) {
6968
6963
  ], 512), [
6969
6964
  [Nt, !e.dynamicLoading]
6970
6965
  ]),
6971
- Le(b(T, {
6966
+ qe(b(T, {
6972
6967
  show: e.spinError,
6973
6968
  class: "uz-table-n-spin"
6974
6969
  }, {
@@ -6991,7 +6986,7 @@ function N1(e, t, n, u, l, c) {
6991
6986
  key: 0,
6992
6987
  class: se([e.enableTransform ? "uz-transform-fade-in" : "", "uz-table-m-main"])
6993
6988
  }, [
6994
- b(z, {
6989
+ b(N, {
6995
6990
  data: e.searchData,
6996
6991
  id: e.id || e.route.params.id,
6997
6992
  cache: e.tableOption.cache,
@@ -7046,7 +7041,7 @@ function N1(e, t, n, u, l, c) {
7046
7041
  }
7047
7042
  ]), 1032, ["data", "id", "cache", "loading", "onOnUpdate:value"]),
7048
7043
  o("div", C1, [
7049
- b(v, {
7044
+ b(k, {
7050
7045
  tableColumns: e.tableColumns,
7051
7046
  tableData: e.tableData,
7052
7047
  tableQueries: e.tableQueries,
@@ -7058,7 +7053,7 @@ function N1(e, t, n, u, l, c) {
7058
7053
  }, null, 8, ["tableColumns", "tableData", "tableQueries", "pageChange", "selection", "minH", "maxH", "onUpdate:rowKeys"])
7059
7054
  ], 512)
7060
7055
  ], 2)) : (s(), f("div", M1, [
7061
- b(N, {
7056
+ b(z, {
7062
7057
  data: e.searchData,
7063
7058
  id: e.id || e.route.params.id,
7064
7059
  cache: e.tableOption.cache,
@@ -7124,7 +7119,7 @@ function N1(e, t, n, u, l, c) {
7124
7119
  icon: h(() => [
7125
7120
  b(M, { size: "18" }, {
7126
7121
  default: h(() => [
7127
- b(k)
7122
+ b(v)
7128
7123
  ]),
7129
7124
  _: 1
7130
7125
  })
@@ -7220,7 +7215,7 @@ function N1(e, t, n, u, l, c) {
7220
7215
  }
7221
7216
  const S1 = /* @__PURE__ */ m(y1, [["render", N1]]), D1 = re({
7222
7217
  name: "UzTableChild",
7223
- components: { NButton: we, NIcon: me, NDataTable: qt, NForm: Pt, NDivider: At, Plus: He, GridDots: Ke },
7218
+ components: { NButton: we, NIcon: me, NDataTable: qt, NForm: Pt, NDivider: At, Plus: Pe, GridDots: Le },
7224
7219
  props: {
7225
7220
  value: { type: Array, default: () => [] },
7226
7221
  item: {
@@ -7236,13 +7231,13 @@ const S1 = /* @__PURE__ */ m(y1, [["render", N1]]), D1 = re({
7236
7231
  },
7237
7232
  emits: ["update:value"],
7238
7233
  setup(e, { emit: t, expose: n }) {
7239
- const u = Ne("emitSuffix"), l = Ne("modules"), c = Ne("mainFormValue"), { t: r } = Kt(), p = C(), $ = C(), M = C(), D = C(!1), z = C(!0), v = C([]), i = C({ child: [] }), a = C(""), k = C({}), d = C(void 0), g = async (F) => {
7234
+ const u = Ne("emitSuffix"), l = Ne("modules"), c = Ne("mainFormValue"), { t: r } = Kt(), p = C(), $ = C(), M = C(), D = C(!1), N = C(!0), k = C([]), i = C({ child: [] }), a = C(""), v = C({}), d = C(void 0), g = async (F) => {
7240
7235
  const { formDefaultValue: U, fillingDefaultArray: S } = await pt(
7241
7236
  e.item.params.columns,
7242
7237
  F
7243
7238
  );
7244
- return k.value = U, S;
7245
- }, N = async (F) => {
7239
+ return v.value = U, S;
7240
+ }, z = async (F) => {
7246
7241
  if (D.value)
7247
7242
  return;
7248
7243
  D.value = !0;
@@ -7259,7 +7254,7 @@ const S1 = /* @__PURE__ */ m(y1, [["render", N1]]), D1 = re({
7259
7254
  A.forEach((L) => {
7260
7255
  R[L] && typeof R[L] == "string" && (R[L] = JSON.parse(R[L]));
7261
7256
  });
7262
- }), e.item.params.init && S.length === 0 && e.status === 0 && (S = [k.value]), e.item.params.merge && typeof e.item.params.merge == "string")
7257
+ }), e.item.params.init && S.length === 0 && e.status === 0 && (S = [v.value]), e.item.params.merge && typeof e.item.params.merge == "string")
7263
7258
  try {
7264
7259
  const R = e.item.params.merge;
7265
7260
  S = await new Function("formValue", "mainFormValue", "POST", R)(S, c, ce);
@@ -7310,7 +7305,7 @@ const S1 = /* @__PURE__ */ m(y1, [["render", N1]]), D1 = re({
7310
7305
  {
7311
7306
  class: "flex justify-center"
7312
7307
  },
7313
- Z(me, {}, { default: () => Z(Ke) })
7308
+ Z(me, {}, { default: () => Z(Le) })
7314
7309
  );
7315
7310
  }
7316
7311
  }), A = A + 40), e.status !== 2 && e.item.params.showActions) {
@@ -7325,7 +7320,7 @@ const S1 = /* @__PURE__ */ m(y1, [["render", N1]]), D1 = re({
7325
7320
  hide: !0,
7326
7321
  width: 60,
7327
7322
  render(ne, ht) {
7328
- const qe = [], mt = {
7323
+ const Ee = [], mt = {
7329
7324
  type: "normal",
7330
7325
  color: "error",
7331
7326
  key: "delete",
@@ -7341,9 +7336,9 @@ const S1 = /* @__PURE__ */ m(y1, [["render", N1]]), D1 = re({
7341
7336
  const ue = new Function("rowData", "rowIndex", $e.disabled);
7342
7337
  $e.disabled = ue(ne, ht);
7343
7338
  }
7344
- qe.push($e);
7345
- }), e.item.params.showDelete && (e.status !== 2 && (i.value.child.length > 1 && e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) && qe.push(mt), Xe({
7346
- buttons: qe,
7339
+ Ee.push($e);
7340
+ }), e.item.params.showDelete && (e.status !== 2 && (i.value.child.length > 1 && e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) && Ee.push(mt), Xe({
7341
+ buttons: Ee,
7347
7342
  rowData: ne
7348
7343
  });
7349
7344
  }
@@ -7353,7 +7348,7 @@ const S1 = /* @__PURE__ */ m(y1, [["render", N1]]), D1 = re({
7353
7348
  const R = [];
7354
7349
  U.forEach((L) => {
7355
7350
  L.show && R.push(L);
7356
- }), v.value = R, A = A + 180, d.value = A;
7351
+ }), k.value = R, A = A + 180, d.value = A;
7357
7352
  }, q = (F) => {
7358
7353
  if (e.item.params.summary) {
7359
7354
  if (typeof e.item.params.summary == "function")
@@ -7367,7 +7362,7 @@ const S1 = /* @__PURE__ */ m(y1, [["render", N1]]), D1 = re({
7367
7362
  }
7368
7363
  return [];
7369
7364
  }, J = async () => {
7370
- a.value = "", i.value.child.push(G(k.value)), ye(() => {
7365
+ a.value = "", i.value.child.push(G(v.value)), ye(() => {
7371
7366
  I();
7372
7367
  });
7373
7368
  }, te = async () => {
@@ -7423,14 +7418,14 @@ const S1 = /* @__PURE__ */ m(y1, [["render", N1]]), D1 = re({
7423
7418
  // dataTransfer.setData('Text', '')
7424
7419
  // },
7425
7420
  onEnd: ({ oldIndex: U, newIndex: S }) => {
7426
- $.value?.destroy(), $.value = null, z.value = !1;
7421
+ $.value?.destroy(), $.value = null, N.value = !1;
7427
7422
  let A = G(i.value.child);
7428
7423
  const R = A.splice(U, 1)[0];
7429
7424
  A.splice(S, 0, R), A = A.map((L, ne) => ({
7430
7425
  ...L,
7431
7426
  sort_index: ne
7432
7427
  })), i.value.child = A, ye(() => {
7433
- z.value = !0, setTimeout(() => {
7428
+ N.value = !0, setTimeout(() => {
7434
7429
  I();
7435
7430
  }, 0);
7436
7431
  });
@@ -7449,7 +7444,7 @@ const S1 = /* @__PURE__ */ m(y1, [["render", N1]]), D1 = re({
7449
7444
  ), ie(
7450
7445
  () => e.value,
7451
7446
  (F) => {
7452
- JSON.stringify(F) !== JSON.stringify(i.value.child) && N(F);
7447
+ JSON.stringify(F) !== JSON.stringify(i.value.child) && z(F);
7453
7448
  },
7454
7449
  { deep: !0, immediate: !0 }
7455
7450
  ), ie(
@@ -7462,12 +7457,12 @@ const S1 = /* @__PURE__ */ m(y1, [["render", N1]]), D1 = re({
7462
7457
  loading: D,
7463
7458
  formRef: M,
7464
7459
  tableRef: p,
7465
- columns: v,
7460
+ columns: k,
7466
7461
  tableData: i,
7467
7462
  summaryData: q,
7468
7463
  message: a,
7469
7464
  tableScrollX: d,
7470
- tableShow: z,
7465
+ tableShow: N,
7471
7466
  onAdd: J,
7472
7467
  onAddFormData: te,
7473
7468
  rowClassName: w
@@ -7608,19 +7603,19 @@ const O1 = /* @__PURE__ */ m(D1, [["render", j1]]), A1 = re({
7608
7603
  },
7609
7604
  emits: ["update:value"],
7610
7605
  setup(e) {
7611
- const t = Ne("modules"), { t: n } = Kt(), u = C(), l = C(!1), c = C([]), r = C([]), p = C(void 0), $ = (z) => {
7606
+ const t = Ne("modules"), { t: n } = Kt(), u = C(), l = C(!1), c = C([]), r = C([]), p = C(void 0), $ = (N) => {
7612
7607
  if (l.value = !0, e.item.params.link) {
7613
- const v = [];
7608
+ const k = [];
7614
7609
  e.item.params.columns.forEach((i) => {
7615
- (i.input === "cascader" || i.input === "select") && i.params.multiple && v.push(i.key);
7616
- }), z && z.forEach((i) => {
7617
- v.forEach((a) => {
7610
+ (i.input === "cascader" || i.input === "select") && i.params.multiple && k.push(i.key);
7611
+ }), N && N.forEach((i) => {
7612
+ k.forEach((a) => {
7618
7613
  i[a] && typeof i[a] == "string" && (i[a] = JSON.parse(i[a]));
7619
7614
  });
7620
- }), r.value = z, l.value = !1;
7615
+ }), r.value = N, l.value = !1;
7621
7616
  }
7622
- }, M = async (z) => {
7623
- const { tableColumns: v, tableWidth: i } = await ft(
7617
+ }, M = async (N) => {
7618
+ const { tableColumns: k, tableWidth: i } = await ft(
7624
7619
  G(e.item.params.columns),
7625
7620
  !0,
7626
7621
  2,
@@ -7628,7 +7623,7 @@ const O1 = /* @__PURE__ */ m(D1, [["render", j1]]), A1 = re({
7628
7623
  t
7629
7624
  );
7630
7625
  let a = i;
7631
- v.unshift({
7626
+ k.unshift({
7632
7627
  title: " ",
7633
7628
  key: "index",
7634
7629
  align: "center",
@@ -7640,7 +7635,7 @@ const O1 = /* @__PURE__ */ m(D1, [["render", j1]]), A1 = re({
7640
7635
  // return h('span', {}, { default: () => rowIndex + 1 })
7641
7636
  // }
7642
7637
  }), a = a + 60;
7643
- const k = {
7638
+ const v = {
7644
7639
  title: () => n("Common.action"),
7645
7640
  key: "action",
7646
7641
  align: "center",
@@ -7671,20 +7666,20 @@ const O1 = /* @__PURE__ */ m(D1, [["render", j1]]), A1 = re({
7671
7666
  });
7672
7667
  }
7673
7668
  };
7674
- v.push(k);
7669
+ k.push(v);
7675
7670
  const d = [];
7676
- v.forEach((g) => {
7671
+ k.forEach((g) => {
7677
7672
  g.show && d.push(g);
7678
7673
  }), c.value = d, a = a + 180, p.value = a;
7679
- }, D = (z) => {
7674
+ }, D = (N) => {
7680
7675
  if (e.item.params.summary) {
7681
7676
  if (typeof e.item.params.summary == "function")
7682
- return e.item.params.summary(z);
7677
+ return e.item.params.summary(N);
7683
7678
  try {
7684
- const v = e.item.params.summary;
7685
- return new Function("pageData", "h", v)(z, Z);
7686
- } catch (v) {
7687
- oe(v);
7679
+ const k = e.item.params.summary;
7680
+ return new Function("pageData", "h", k)(N, Z);
7681
+ } catch (k) {
7682
+ oe(k);
7688
7683
  }
7689
7684
  }
7690
7685
  return [];
@@ -7694,7 +7689,7 @@ const O1 = /* @__PURE__ */ m(D1, [["render", j1]]), A1 = re({
7694
7689
  }), Dn(async () => {
7695
7690
  try {
7696
7691
  if (e.formValue && e.formValue.id && e.item.params.searchKey) {
7697
- const z = await Fe({
7692
+ const N = await Fe({
7698
7693
  tableId: e.item.params.link,
7699
7694
  params: [
7700
7695
  {
@@ -7705,7 +7700,7 @@ const O1 = /* @__PURE__ */ m(D1, [["render", j1]]), A1 = re({
7705
7700
  }
7706
7701
  ]
7707
7702
  });
7708
- $(z);
7703
+ $(N);
7709
7704
  }
7710
7705
  } catch {
7711
7706
  $([]);
@@ -7772,12 +7767,12 @@ const q1 = /* @__PURE__ */ m(A1, [["render", E1]]), L1 = re({
7772
7767
  drawerHeight: "96vh",
7773
7768
  placement: "right",
7774
7769
  summary: ""
7775
- }), D = C(!1), z = C(!1), v = C(!1), i = C(""), a = C(0), k = C(), d = C({
7770
+ }), D = C(!1), N = C(!1), k = C(!1), i = C(""), a = C(0), v = C(), d = C({
7776
7771
  fetch: null,
7777
7772
  when_drawer_open: "",
7778
7773
  when_before_save: ""
7779
- }), g = C(!1), N = C(), w = () => {
7780
- l.value?.restoreValidation(), r.value = {}, z.value = !1, D.value = !1, $.value = !1, t("update:show", !1);
7774
+ }), g = C(!1), z = C(), w = () => {
7775
+ l.value?.restoreValidation(), r.value = {}, N.value = !1, D.value = !1, $.value = !1, t("update:show", !1);
7781
7776
  }, T = () => {
7782
7777
  c.value !== 2 ? _f.info({
7783
7778
  title: "提示",
@@ -7804,31 +7799,31 @@ const q1 = /* @__PURE__ */ m(A1, [["render", E1]]), L1 = re({
7804
7799
  else
7805
7800
  r.value = I;
7806
7801
  }, J = async (I, F, U, S = 0, A) => {
7807
- v.value = !0, c.value = S, M.value = F, d.value = U, $.value = !0, I().then(({ form: R, data: L }) => {
7808
- k.value = R, r.value = L, N.value = A, v.value = !1;
7802
+ k.value = !0, c.value = S, M.value = F, d.value = U, $.value = !0, I().then(({ form: R, data: L }) => {
7803
+ v.value = R, r.value = L, z.value = A, k.value = !1;
7809
7804
  }).catch(() => null);
7810
7805
  }, te = (I, F, U, S = 0) => {
7811
- if (c.value = S, N.value = null, v.value = !0, $.value = !0, I) {
7806
+ if (c.value = S, z.value = null, k.value = !0, $.value = !0, I) {
7812
7807
  p.value = {
7813
7808
  link: I,
7814
7809
  linkFn: F
7815
7810
  };
7816
7811
  const A = I.split(".")[0];
7817
- We(A).then((R) => {
7812
+ Ke(A).then((R) => {
7818
7813
  ye(async () => {
7819
7814
  const L = Ve.parse(R.viewJson), { form: ne } = await pt(
7820
- Ge(L.table)
7815
+ We(L.table)
7821
7816
  );
7822
7817
  d.value = L.trigger, U && q(U), ye(() => {
7823
- k.value = ne, M.value = Ae(L.option), v.value = !1;
7818
+ v.value = ne, M.value = Ae(L.option), k.value = !1;
7824
7819
  });
7825
7820
  });
7826
7821
  }).catch(() => {
7827
- g.value = !0, v.value = !1;
7822
+ g.value = !0, k.value = !1;
7828
7823
  });
7829
7824
  }
7830
7825
  }, B = () => {
7831
- a.value = 0, z.value = !0, l.value?.validate().then(async (I) => {
7826
+ a.value = 0, N.value = !0, l.value?.validate().then(async (I) => {
7832
7827
  if (d.value.when_before_save) {
7833
7828
  const F = d.value.when_before_save, U = new Function("data", "POST", F);
7834
7829
  try {
@@ -7840,8 +7835,8 @@ const q1 = /* @__PURE__ */ m(A1, [["render", E1]]), L1 = re({
7840
7835
  return;
7841
7836
  }
7842
7837
  }
7843
- if (N.value) {
7844
- N.value(
7838
+ if (z.value) {
7839
+ z.value(
7845
7840
  I,
7846
7841
  () => {
7847
7842
  w();
@@ -7872,14 +7867,14 @@ const q1 = /* @__PURE__ */ m(A1, [["render", E1]]), L1 = re({
7872
7867
  disabled: R?.status === "0",
7873
7868
  params: R
7874
7869
  }));
7875
- z.value = !1, t("on-submit", A), w();
7870
+ N.value = !1, t("on-submit", A), w();
7876
7871
  });
7877
7872
  }).catch((U) => {
7878
7873
  a.value = 1, i.value = U;
7879
7874
  });
7880
7875
  }
7881
7876
  }).catch(() => {
7882
- z.value = !1;
7877
+ N.value = !1;
7883
7878
  });
7884
7879
  };
7885
7880
  return n({ link: te, addAndEdit: J, getFormValues: () => l.value?.getValues() }), {
@@ -7887,11 +7882,11 @@ const q1 = /* @__PURE__ */ m(A1, [["render", E1]]), L1 = re({
7887
7882
  formRef: l,
7888
7883
  tableOption: M,
7889
7884
  ocrShow: D,
7890
- spinShow: z,
7885
+ spinShow: N,
7891
7886
  spinMsg: i,
7892
- skeletonShow: v,
7887
+ skeletonShow: k,
7893
7888
  spinStatus: a,
7894
- formData: k,
7889
+ formData: v,
7895
7890
  formValues: r,
7896
7891
  spinError: g,
7897
7892
  isMobile: u,
@@ -7906,8 +7901,8 @@ const q1 = /* @__PURE__ */ m(A1, [["render", E1]]), L1 = re({
7906
7901
  class: "uz-grid uz-grid-cols-2 uz-gap-2"
7907
7902
  }, G1 = { class: "uz-flex uz-gap-2" };
7908
7903
  function Q1(e, t, n, u, l, c) {
7909
- const r = x("NSkeleton"), p = x("UzForm"), $ = x("UzSpin"), M = x("NSpin"), D = x("NButton"), z = x("NDrawerContent"), v = x("NDrawer");
7910
- return s(), V(v, {
7904
+ const r = x("NSkeleton"), p = x("UzForm"), $ = x("UzSpin"), M = x("NSpin"), D = x("NButton"), N = x("NDrawerContent"), k = x("NDrawer");
7905
+ return s(), V(k, {
7911
7906
  show: e.drawer,
7912
7907
  "onUpdate:show": t[1] || (t[1] = (i) => e.drawer = i),
7913
7908
  width: e.isMobile ? "96%" : e.tableOption.drawerWidth,
@@ -7920,7 +7915,7 @@ function Q1(e, t, n, u, l, c) {
7920
7915
  "mask-closable": !1
7921
7916
  }, {
7922
7917
  default: h(() => [
7923
- b(z, {
7918
+ b(N, {
7924
7919
  title: e.formStatus === 1 ? e.$t("Common.edit") : e.formStatus === 2 ? e.$t("Common.detail") : e.$t("Common.add"),
7925
7920
  closable: ""
7926
7921
  }, Me({
@@ -8128,12 +8123,12 @@ const t0 = /* @__PURE__ */ m(X1, [["render", e0], ["__scopeId", "data-v-01b68b92
8128
8123
  class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
8129
8124
  };
8130
8125
  function s0(e, t, n, u, l, c) {
8131
- const r = x("UzTableMobileList"), p = x("NCheckbox"), $ = x("NPagination"), M = x("NCheckboxGroup"), D = x("NRadio"), z = x("NRadioGroup");
8126
+ const r = x("UzTableMobileList"), p = x("NCheckbox"), $ = x("NPagination"), M = x("NCheckboxGroup"), D = x("NRadio"), N = x("NRadioGroup");
8132
8127
  return e.selection === 2 ? (s(), V(M, {
8133
8128
  key: 0,
8134
8129
  value: e.rowKeys,
8135
8130
  "onUpdate:value": [
8136
- t[1] || (t[1] = (v) => e.rowKeys = v),
8131
+ t[1] || (t[1] = (k) => e.rowKeys = k),
8137
8132
  e.checkChange
8138
8133
  ],
8139
8134
  class: "uz-flex uz-flex-col uz-gap-2 uz-table-mobile-group",
@@ -8143,14 +8138,14 @@ function s0(e, t, n, u, l, c) {
8143
8138
  })
8144
8139
  }, {
8145
8140
  default: h(() => [
8146
- (s(!0), f(le, null, ke(e.tableData, (v, i) => (s(), V(p, {
8147
- key: v.id,
8141
+ (s(!0), f(le, null, ke(e.tableData, (k, i) => (s(), V(p, {
8142
+ key: k.id,
8148
8143
  class: "uz-com-card uz-flex uz-gap-2",
8149
- value: v.id
8144
+ value: k.id
8150
8145
  }, {
8151
8146
  default: h(() => [
8152
8147
  b(r, {
8153
- tableData: v,
8148
+ tableData: k,
8154
8149
  tableIndex: i,
8155
8150
  tableColumns: e.tableColumns
8156
8151
  }, null, 8, ["tableData", "tableIndex", "tableColumns"])
@@ -8161,7 +8156,7 @@ function s0(e, t, n, u, l, c) {
8161
8156
  b($, {
8162
8157
  page: e.tableQueries.query.page,
8163
8158
  "onUpdate:page": [
8164
- t[0] || (t[0] = (v) => e.tableQueries.query.page = v),
8159
+ t[0] || (t[0] = (k) => e.tableQueries.query.page = k),
8165
8160
  e.pageChange
8166
8161
  ],
8167
8162
  "item-count": e.tableQueries.query.itemCount,
@@ -8171,11 +8166,11 @@ function s0(e, t, n, u, l, c) {
8171
8166
  ])) : W("", !0)
8172
8167
  ]),
8173
8168
  _: 1
8174
- }, 8, ["value", "style", "onUpdate:value"])) : e.selection === 1 ? (s(), V(z, {
8169
+ }, 8, ["value", "style", "onUpdate:value"])) : e.selection === 1 ? (s(), V(N, {
8175
8170
  key: 1,
8176
8171
  value: e.rowKeys[0],
8177
8172
  "onUpdate:value": [
8178
- t[3] || (t[3] = (v) => e.rowKeys[0] = v),
8173
+ t[3] || (t[3] = (k) => e.rowKeys[0] = k),
8179
8174
  e.radioChange
8180
8175
  ],
8181
8176
  class: "uz-flex! uz-flex-col uz-gap-2 uz-table-mobile-group",
@@ -8185,14 +8180,14 @@ function s0(e, t, n, u, l, c) {
8185
8180
  })
8186
8181
  }, {
8187
8182
  default: h(() => [
8188
- (s(!0), f(le, null, ke(e.tableData, (v, i) => (s(), V(D, {
8189
- key: v.id,
8183
+ (s(!0), f(le, null, ke(e.tableData, (k, i) => (s(), V(D, {
8184
+ key: k.id,
8190
8185
  class: "uz-com-card uz-flex uz-gap-2",
8191
- value: v.id
8186
+ value: k.id
8192
8187
  }, {
8193
8188
  default: h(() => [
8194
8189
  b(r, {
8195
- tableData: v,
8190
+ tableData: k,
8196
8191
  tableIndex: i,
8197
8192
  tableColumns: e.tableColumns
8198
8193
  }, null, 8, ["tableData", "tableIndex", "tableColumns"])
@@ -8203,7 +8198,7 @@ function s0(e, t, n, u, l, c) {
8203
8198
  b($, {
8204
8199
  page: e.tableQueries.query.page,
8205
8200
  "onUpdate:page": [
8206
- t[2] || (t[2] = (v) => e.tableQueries.query.page = v),
8201
+ t[2] || (t[2] = (k) => e.tableQueries.query.page = k),
8207
8202
  e.pageChange
8208
8203
  ],
8209
8204
  "item-count": e.tableQueries.query.itemCount,
@@ -8221,12 +8216,12 @@ function s0(e, t, n, u, l, c) {
8221
8216
  maxHeight: e.maxH
8222
8217
  })
8223
8218
  }, [
8224
- (s(!0), f(le, null, ke(e.tableData, (v, i) => (s(), f("div", {
8225
- key: v.id,
8219
+ (s(!0), f(le, null, ke(e.tableData, (k, i) => (s(), f("div", {
8220
+ key: k.id,
8226
8221
  class: "uz-com-card uz-flex uz-flex-col uz-gap-2"
8227
8222
  }, [
8228
8223
  b(r, {
8229
- tableData: v,
8224
+ tableData: k,
8230
8225
  tableIndex: i,
8231
8226
  tableColumns: e.tableColumns
8232
8227
  }, null, 8, ["tableData", "tableIndex", "tableColumns"])
@@ -8235,7 +8230,7 @@ function s0(e, t, n, u, l, c) {
8235
8230
  b($, {
8236
8231
  page: e.tableQueries.query.page,
8237
8232
  "onUpdate:page": [
8238
- t[4] || (t[4] = (v) => e.tableQueries.query.page = v),
8233
+ t[4] || (t[4] = (k) => e.tableQueries.query.page = k),
8239
8234
  e.pageChange
8240
8235
  ],
8241
8236
  "item-count": e.tableQueries.query.itemCount,
@@ -8352,8 +8347,8 @@ const c0 = re({
8352
8347
  }
8353
8348
  });
8354
8349
  function u0(e, t, n, u, l, c) {
8355
- const r = x("NTabPane"), p = x("Trash"), $ = x("NIcon"), M = x("NButton"), D = x("NPopconfirm"), z = x("NFlex"), v = x("NTabs");
8356
- return s(), V(v, {
8350
+ const r = x("NTabPane"), p = x("Trash"), $ = x("NIcon"), M = x("NButton"), D = x("NPopconfirm"), N = x("NFlex"), k = x("NTabs");
8351
+ return s(), V(k, {
8357
8352
  value: e.thumbnailStore.active,
8358
8353
  type: "card",
8359
8354
  closable: "",
@@ -8363,7 +8358,7 @@ function u0(e, t, n, u, l, c) {
8363
8358
  class: "uz-thumbnail"
8364
8359
  }, Me({
8365
8360
  suffix: h(() => [
8366
- b(z, null, {
8361
+ b(N, null, {
8367
8362
  default: h(() => [
8368
8363
  b(D, { onPositiveClick: e.handleClear }, {
8369
8364
  trigger: h(() => [
@@ -8585,7 +8580,7 @@ const w0 = /* @__PURE__ */ m(h0, [["render", m0]]), Mn = /* @__PURE__ */ Object.
8585
8580
  Filter: lt,
8586
8581
  GitCompare: ir,
8587
8582
  GitPullRequest: cr,
8588
- GridDots: Ke,
8583
+ GridDots: Le,
8589
8584
  Home: ur,
8590
8585
  IconList: vf,
8591
8586
  Id: dr,
@@ -8605,7 +8600,7 @@ const w0 = /* @__PURE__ */ m(h0, [["render", m0]]), Mn = /* @__PURE__ */ Object.
8605
8600
  Paperclip: xr,
8606
8601
  Photo: _r,
8607
8602
  PhotoOff: it,
8608
- Plus: He,
8603
+ Plus: Pe,
8609
8604
  Presentation: $r,
8610
8605
  PresentationAnalytics: Cr,
8611
8606
  Printer: Mr,
@@ -8633,7 +8628,7 @@ const w0 = /* @__PURE__ */ m(h0, [["render", m0]]), Mn = /* @__PURE__ */ Object.
8633
8628
  UzCircle: yh,
8634
8629
  UzDraggableForm: Bh,
8635
8630
  UzForm: zh,
8636
- UzFormItem: Ee,
8631
+ UzFormItem: He,
8637
8632
  UzFormItemImage: ua,
8638
8633
  UzFormItemTimesPicker: Lh,
8639
8634
  UzFormItemUpload: Oh,
@@ -8655,7 +8650,7 @@ const w0 = /* @__PURE__ */ m(h0, [["render", m0]]), Mn = /* @__PURE__ */ Object.
8655
8650
  fnAddThumbnail: i0,
8656
8651
  fnClearAllThumbnail: wa,
8657
8652
  fnDeleteThumbnail: ma,
8658
- fnGetTableData: We,
8653
+ fnGetTableData: Ke,
8659
8654
  fnOptionReduction: Ae,
8660
8655
  fnOptionSimplify: g1,
8661
8656
  fnPrepareFormData: pt,
@@ -8664,7 +8659,7 @@ const w0 = /* @__PURE__ */ m(h0, [["render", m0]]), Mn = /* @__PURE__ */ Object.
8664
8659
  fnSetLang: ea,
8665
8660
  fnSetTheme: ta,
8666
8661
  fnSetThumbnail: ha,
8667
- fnTableReduction: Ge,
8662
+ fnTableReduction: We,
8668
8663
  fnTableSimplify: m1,
8669
8664
  fnTriggersReduction: pa,
8670
8665
  fnTriggersSimplify: w1,
@@ -8739,11 +8734,11 @@ function X0(e, t) {
8739
8734
  }];
8740
8735
  }
8741
8736
  function Y0(e, t, n) {
8742
- const u = `useQuery-${e}`, l = C(), c = C(), r = C(), p = C(!1), $ = C("idle"), M = C(), D = C(0), z = C(0), v = () => {
8737
+ const u = `useQuery-${e}`, l = C(), c = C(), r = C(), p = C(!1), $ = C("idle"), M = C(), D = C(0), N = C(0), k = () => {
8743
8738
  vn(), clearInterval(r.value), r.value = null;
8744
8739
  }, i = async () => {
8745
8740
  if (!p.value) {
8746
- k(!0, "loading");
8741
+ v(!0, "loading");
8747
8742
  try {
8748
8743
  let w;
8749
8744
  if (Array.isArray(t))
@@ -8760,11 +8755,11 @@ function Y0(e, t, n) {
8760
8755
  });
8761
8756
  w = await Promise.race([T, t()]);
8762
8757
  }
8763
- k(!1, "success"), a(w), be(u, w, 0);
8758
+ v(!1, "success"), a(w), be(u, w, 0);
8764
8759
  } catch (w) {
8765
- d(w), k(!1, "error"), D.value > 0 && (D.value = D.value - 1, setTimeout(() => {
8760
+ d(w), v(!1, "error"), D.value > 0 && (D.value = D.value - 1, setTimeout(() => {
8766
8761
  i();
8767
- }, z.value));
8762
+ }, N.value));
8768
8763
  }
8769
8764
  }
8770
8765
  }, a = (w) => {
@@ -8772,18 +8767,18 @@ function Y0(e, t, n) {
8772
8767
  let T = w;
8773
8768
  n?.formatResult && (T = n.formatResult(w)), c.value = T;
8774
8769
  }
8775
- }, k = (w, T) => {
8770
+ }, v = (w, T) => {
8776
8771
  p.value = w, T && ($.value = T);
8777
8772
  }, d = (w) => {
8778
8773
  M.value = w;
8779
8774
  }, g = () => {
8780
8775
  vn(), l.value && l.value();
8781
- }, N = () => {
8782
- g(), i(), n?.pollingInterval && (v(), r.value = setInterval(() => {
8776
+ }, z = () => {
8777
+ g(), i(), n?.pollingInterval && (k(), r.value = setInterval(() => {
8783
8778
  i();
8784
8779
  }, n?.pollingInterval));
8785
8780
  };
8786
- if (n?.retry && n.pollingInterval === void 0 && (D.value = n.retry.retryCount || 3, z.value = n.retry.retryInterval || 1e3 * 2 ** 3), n?.initialData && a(n.initialData()), n === void 0 || n.initialData === void 0 || n.cache === void 0 || n.cache === !0)
8781
+ if (n?.retry && n.pollingInterval === void 0 && (D.value = n.retry.retryCount || 3, N.value = n.retry.retryInterval || 1e3 * 2 ** 3), n?.initialData && a(n.initialData()), n === void 0 || n.initialData === void 0 || n.cache === void 0 || n.cache === !0)
8787
8782
  try {
8788
8783
  const w = _e(u, !1);
8789
8784
  w && a(w);
@@ -8793,18 +8788,18 @@ function Y0(e, t, n) {
8793
8788
  return n?.pollingInterval ? (i(), r.value = setInterval(() => {
8794
8789
  i();
8795
8790
  }, n?.pollingInterval)) : (n === void 0 || n.manual === void 0 || n.manual === !1) && i(), Ut(() => {
8796
- v();
8791
+ k();
8797
8792
  }), {
8798
8793
  status: $,
8799
8794
  data: c,
8800
8795
  loading: p,
8801
8796
  error: M,
8802
- stopPollingInterval: v,
8797
+ stopPollingInterval: k,
8803
8798
  cancel: g,
8804
- refetch: N
8799
+ refetch: z
8805
8800
  };
8806
8801
  }
8807
- const k0 = "0.0.78";
8802
+ const k0 = "0.0.80";
8808
8803
  let xa;
8809
8804
  async function _a() {
8810
8805
  const e = await fetch(
@@ -8963,8 +8958,8 @@ function M0({ components: e = [] } = {}) {
8963
8958
  version: $ = !0,
8964
8959
  language: M = !1,
8965
8960
  local: D = "zh-CN"
8966
- } = c, z = _e("theme", !1), v = _e("lang", D);
8967
- Vf(M), ea(v), ta(z), Ce.global.locale.value = v, $ && b0(), r && C0(l, r, p);
8961
+ } = c, N = _e("theme", !1), k = _e("lang", D);
8962
+ Vf(M), ea(k), ta(N), Ce.global.locale.value = k, $ && b0(), r && C0(l, r, p);
8968
8963
  }
8969
8964
  }
8970
8965
  return {
@@ -9066,7 +9061,7 @@ export {
9066
9061
  q0 as GET,
9067
9062
  ir as GitCompare,
9068
9063
  cr as GitPullRequest,
9069
- Ke as GridDots,
9064
+ Le as GridDots,
9070
9065
  ur as Home,
9071
9066
  vf as IconList,
9072
9067
  dr as Id,
@@ -9087,7 +9082,7 @@ export {
9087
9082
  xr as Paperclip,
9088
9083
  _r as Photo,
9089
9084
  it as PhotoOff,
9090
- He as Plus,
9085
+ Pe as Plus,
9091
9086
  $r as Presentation,
9092
9087
  Cr as PresentationAnalytics,
9093
9088
  Mr as Printer,
@@ -9115,7 +9110,7 @@ export {
9115
9110
  yh as UzCircle,
9116
9111
  Bh as UzDraggableForm,
9117
9112
  zh as UzForm,
9118
- Ee as UzFormItem,
9113
+ He as UzFormItem,
9119
9114
  ua as UzFormItemImage,
9120
9115
  Lh as UzFormItemTimesPicker,
9121
9116
  Oh as UzFormItemUpload,
@@ -9152,7 +9147,7 @@ export {
9152
9147
  E0 as fnFormatUnits,
9153
9148
  H0 as fnFullScreen,
9154
9149
  _e as fnGetStorage,
9155
- We as fnGetTableData,
9150
+ Ke as fnGetTableData,
9156
9151
  G0 as fnListenerScale,
9157
9152
  Oe as fnNotification,
9158
9153
  Ae as fnOptionReduction,
@@ -9167,7 +9162,7 @@ export {
9167
9162
  be as fnSetStorage,
9168
9163
  ta as fnSetTheme,
9169
9164
  ha as fnSetThumbnail,
9170
- Ge as fnTableReduction,
9165
+ We as fnTableReduction,
9171
9166
  m1 as fnTableSimplify,
9172
9167
  P0 as fnThrottle,
9173
9168
  Cf as fnTitle,