@skyfox2000/webui 1.5.14 → 1.5.16

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/webui.es.js CHANGED
@@ -1,25 +1,25 @@
1
- import { u as Be, i as ve, $ as y, a as Ae, L as $t, c as Dt, P as oe, o as Qe, b as Ft, d as Pt, e as Je, g as Xe, r as fe, f as Ze, h as et, j as tt, k as It, l as be, m as at, _ as lt, n as rt, O as ze, p as Et, q as ot, s as Lt, t as Ut, v as te, w as Mt, x as Nt, y as Rt, z as Bt, A as At, B as zt, C as se, D as Ot, E as ue, F as Kt, G as jt, H as st, M as Vt } from "./assets/modules/upload-template-BepTTCSN.js";
2
- import { ag as Vr, V as Yr, W as Gr, a0 as Wr, af as Hr, ad as qr, ae as Qr, ah as Jr, ar as Xr, a3 as Zr, Y as eo, as as to, ab as ao, a8 as lo, T as ro, aa as oo, ap as so, aq as no, Z as io, K as co, J as uo, a5 as po, a9 as fo, ac as vo, U as mo, X as go, ai as ho, I as bo, a7 as xo, aj as yo, a2 as wo, a4 as ko, at as _o, a1 as Co, ao as So, an as To, ak as $o, N as Do, Q as Fo, al as Po, S as Io, am as Eo, R as Lo, a6 as Uo } from "./assets/modules/upload-template-BepTTCSN.js";
3
- import { f as Yt, p as Ve } from "./assets/modules/file-upload-BlYrF7tq.js";
4
- import { A as No, U as Ro } from "./assets/modules/file-upload-BlYrF7tq.js";
1
+ import { u as Be, i as ve, $ as y, a as Ae, L as $t, c as Dt, P as oe, o as Qe, b as Ft, d as Pt, e as Je, g as Xe, r as fe, f as Ze, h as et, j as tt, k as It, l as be, m as at, _ as lt, n as rt, O as ze, p as Et, q as ot, s as Lt, t as Ut, v as te, w as Mt, x as Nt, y as Rt, z as Bt, A as At, B as zt, C as se, D as Ot, E as de, F as Kt, G as jt, H as st, M as Vt } from "./assets/modules/upload-template-CiWosjbL.js";
2
+ import { ag as Vr, V as Yr, W as Gr, a0 as Wr, af as Hr, ad as qr, ae as Qr, ah as Jr, ar as Xr, a3 as Zr, Y as eo, as as to, ab as ao, a8 as lo, T as ro, aa as oo, ap as so, aq as no, Z as io, K as co, J as uo, a5 as po, a9 as fo, ac as vo, U as mo, X as go, ai as ho, I as bo, a7 as xo, aj as yo, a2 as wo, a4 as ko, at as _o, a1 as Co, ao as So, an as To, ak as $o, N as Do, Q as Fo, al as Po, S as Io, am as Eo, R as Lo, a6 as Uo } from "./assets/modules/upload-template-CiWosjbL.js";
3
+ import { f as Yt, p as Ve } from "./assets/modules/file-upload-d6wJYD_r.js";
4
+ import { A as No, U as Ro } from "./assets/modules/file-upload-d6wJYD_r.js";
5
5
  import { EnvConfig as Ye, isMicroApp as Gt } from "@skyfox2000/microbase";
6
6
  import { FrontCache as he, httpPost as Oe, ResStatus as Ke, SERVER_HOST as Wt, fieldMapping as xe } from "@skyfox2000/fapi";
7
7
  import ae from "vue-m-message";
8
- import { defineComponent as L, createBlock as k, openBlock as c, withModifiers as ge, unref as l, useAttrs as de, withCtx as w, createElementVNode as I, createVNode as D, mergeProps as N, renderSlot as O, normalizeClass as R, toDisplayString as E, createCommentVNode as C, ref as T, provide as Ce, watch as M, onMounted as le, createTextVNode as G, inject as ye, resolveDirective as ne, withDirectives as Q, computed as j, createElementBlock as x, normalizeStyle as je, Fragment as U, renderList as V, resolveDynamicComponent as nt, onActivated as Se, createSlots as it, useSlots as Ht, vShow as Ee, shallowRef as qt, onUnmounted as Qt, withKeys as Ge } from "vue";
8
+ import { defineComponent as L, createBlock as k, openBlock as u, withModifiers as ge, unref as l, useAttrs as ne, withCtx as w, createElementVNode as I, createVNode as D, mergeProps as N, renderSlot as O, normalizeClass as R, toDisplayString as E, createCommentVNode as S, ref as T, provide as Ce, watch as M, onMounted as le, createTextVNode as G, inject as ye, resolveDirective as ie, withDirectives as Q, computed as j, createElementBlock as x, normalizeStyle as je, Fragment as U, renderList as V, resolveDynamicComponent as nt, onActivated as Se, createSlots as it, useSlots as Ht, vShow as Ee, shallowRef as qt, onUnmounted as Qt, withKeys as Ge } from "vue";
9
9
  import "async-validator";
10
10
  import Ne from "dayjs";
11
11
  import { Popover as Jt, theme as ct, Drawer as Xt, Space as pe, Form as ut, message as Zt, FormItem as dt, ConfigProvider as we, Popconfirm as pt, DropdownButton as ft, Menu as Te, MenuItem as $e, Dropdown as Re, Checkbox as ea, List as ta, ListItem as aa, Card as la, Button as vt, Table as mt, Tree as ra, Cascader as oa, DatePicker as sa, Input as me, InputPassword as na, InputNumber as ia, RangePicker as ca, Textarea as ua, TimePicker as da, Transfer as pa, TreeSelect as fa, Upload as va, Image as ma, LayoutContent as ga } from "ant-design-vue";
12
12
  import { VueDraggableNext as ha } from "vue-draggable-next";
13
- import { d as ba } from "./assets/modules/uploadList-DGdEHRgF.js";
14
- import { C as Ao, U as zo, a as Oo, p as Ko } from "./assets/modules/uploadList-DGdEHRgF.js";
15
- import { c as gt } from "./assets/modules/index-DWfUKv6h.js";
16
- import { _ as Vo, h as Yo, b as Go, a as Wo, d as Ho, e as qo, g as Qo, f as Jo, n as Xo, p as Zo, t as es, v as ts } from "./assets/modules/index-DWfUKv6h.js";
17
- import { _ as ee } from "./assets/modules/index-iyoc8G6M.js";
18
- import { _ as Y } from "./assets/modules/toolIcon-CNuVTW1z.js";
19
- import { a as ls } from "./assets/modules/toolIcon-CNuVTW1z.js";
20
- import { _ as os, b as ss, c as ns, d as is, e as cs, I as us, f as ds, g as ps, a as fs } from "./assets/modules/menuTabs-DoseEHrE.js";
21
- import { _ as ms } from "./assets/modules/index-DF1aIGJh.js";
22
- import { _ as ie } from "./assets/modules/_plugin-vue_export-helper-CHgC5LLL.js";
13
+ import { d as ba } from "./assets/modules/uploadList-DHmkR_yd.js";
14
+ import { C as Ao, U as zo, a as Oo, p as Ko } from "./assets/modules/uploadList-DHmkR_yd.js";
15
+ import { c as gt } from "./assets/modules/index-BsaUh4V0.js";
16
+ import { _ as Vo, h as Yo, b as Go, a as Wo, d as Ho, e as qo, g as Qo, f as Jo, n as Xo, p as Zo, t as es, v as ts } from "./assets/modules/index-BsaUh4V0.js";
17
+ import { _ as ee } from "./assets/modules/index-BhXS0TjD.js";
18
+ import { _ as Y } from "./assets/modules/toolIcon-B8bR-dPF.js";
19
+ import { a as ls } from "./assets/modules/toolIcon-B8bR-dPF.js";
20
+ import { _ as os, b as ss, c as ns, d as is, e as cs, I as us, f as ds, g as ps, a as fs } from "./assets/modules/menuTabs-DZNVE3eg.js";
21
+ import { _ as ms } from "./assets/modules/index-CxB0AuVY.js";
22
+ import { _ as ce } from "./assets/modules/_plugin-vue_export-helper-CHgC5LLL.js";
23
23
  const We = (r, a, e, t = "remove") => {
24
24
  if (!e)
25
25
  if (t === "disable") {
@@ -33,16 +33,16 @@ const We = (r, a, e, t = "remove") => {
33
33
  }
34
34
  }
35
35
  }, He = (r) => {
36
- var o, p;
36
+ var o, f;
37
37
  const a = Be(), { url: e, role: t, permit: s } = r;
38
38
  if (ve(t) && ve(s))
39
39
  return !0;
40
- const i = e ?? ((p = (o = window.location.hash) == null ? void 0 : o.split("#")) == null ? void 0 : p[1]) ?? window.location.pathname;
40
+ const i = e ?? ((f = (o = window.location.hash) == null ? void 0 : o.split("#")) == null ? void 0 : f[1]) ?? window.location.pathname;
41
41
  if (Ye.VITE_PERMISSION_MODE === "role")
42
42
  return ve(t) ? !0 : a.hasRole(t);
43
43
  if (Ye.VITE_PERMISSION_MODE === "permit") {
44
- let u = !1, d = !1;
45
- return ve(t) || (u = a.hasRole(t)), a.isAdmin() ? u : (ve(s) || (d = a.hasPermit(i, s)), u || d);
44
+ let c = !1, p = !1;
45
+ return ve(t) || (c = a.hasRole(t)), a.isAdmin() ? c : (ve(s) || (p = a.hasPermit(i, s)), c || p);
46
46
  }
47
47
  return !1;
48
48
  }, xa = {
@@ -69,32 +69,32 @@ const We = (r, a, e, t = "remove") => {
69
69
  submit: ya
70
70
  }, ir = (r, a) => ((a || Object.keys(Le)).forEach((t) => {
71
71
  t in Le && r.directive(t, Le[t]);
72
- }), r), ce = (r, a) => {
72
+ }), r), ue = (r, a) => {
73
73
  const e = r.find((t) => t.key === a);
74
74
  if (e)
75
75
  return e;
76
76
  for (const t of r)
77
77
  if (t.children) {
78
- const s = ce(t.children, a);
78
+ const s = ue(t.children, a);
79
79
  if (s)
80
80
  return s;
81
81
  }
82
82
  }, De = (r, a, e) => {
83
83
  const t = [], s = [];
84
84
  return e || (e = [...r]), e.length && e.forEach((i, o) => {
85
- let p;
85
+ let f;
86
86
  if (typeof i == "string") {
87
- const u = ce(r, i);
88
- p = u ? { ...u } : { key: i, label: i };
87
+ const c = ue(r, i);
88
+ f = c ? { ...c } : { key: i, label: i };
89
89
  } else {
90
- const u = ce(r, i.key);
91
- p = u ? { ...u, ...i } : { ...i };
90
+ const c = ue(r, i.key);
91
+ f = c ? { ...c, ...i } : { ...i };
92
92
  }
93
- p.click || (p.click = (u, d, f) => {
94
- d && (d.rowData.value = f), p.formVisible ? (p.formVisible.value = !1, setTimeout(() => {
95
- p.formVisible.value = !0;
93
+ f.click || (f.click = (c, p, v) => {
94
+ p && (p.rowData.value = v), f.formVisible ? (f.formVisible.value = !1, setTimeout(() => {
95
+ f.formVisible.value = !0;
96
96
  }, 1)) : ae.warning(y("webui.utils.tools.noClickHandler"));
97
- }), a === 0 || o < a ? t.push(p) : s.push(p);
97
+ }), a === 0 || o < a ? t.push(f) : s.push(f);
98
98
  }), { buttons: t, menus: s };
99
99
  }, W = (r, a) => r.disabled && typeof r.disabled == "function" ? r.disabled(a) : r.disabled, J = (r, a) => r.visible && typeof r.visible == "function" ? r.visible(a) : r.visible ?? !0, wa = (r, a) => {
100
100
  a.reload.value = !0;
@@ -286,12 +286,12 @@ async function ur() {
286
286
  const t = a[e];
287
287
  ["local", "session"].forEach((i) => {
288
288
  const o = i === "local" ? localStorage : sessionStorage;
289
- for (let p = 0; p < o.length; p++) {
290
- const u = o.key(p);
291
- if (u && u.endsWith(e))
289
+ for (let f = 0; f < o.length; f++) {
290
+ const c = o.key(f);
291
+ if (c && c.endsWith(e))
292
292
  try {
293
- const d = JSON.parse(o.getItem(u));
294
- d && typeof d == "object" && "lastTime" in d && typeof d.lastTime == "number" && d.lastTime !== t && o.removeItem(u);
293
+ const p = JSON.parse(o.getItem(c));
294
+ p && typeof p == "object" && "lastTime" in p && typeof p.lastTime == "number" && p.lastTime !== t && o.removeItem(c);
295
295
  } catch {
296
296
  continue;
297
297
  }
@@ -346,14 +346,14 @@ const dr = async (r, a) => {
346
346
  }), s;
347
347
  }), kt = async (r, a, e) => {
348
348
  try {
349
- const s = (await import("@json2csv/plainjs")).Parser, o = new s({ fields: a }).parse(e), p = new Blob([`\uFEFF${o}`], { type: "text/csv" });
350
- ba(p, r);
349
+ const s = (await import("@json2csv/plainjs")).Parser, o = new s({ fields: a }).parse(e), f = new Blob([`\uFEFF${o}`], { type: "text/csv" });
350
+ ba(f, r);
351
351
  } catch (t) {
352
352
  console.error(y("webui.utils.exportTable.exportFailed") + ":", t), ae.error(y("webui.utils.exportTable.fileExportFailed"));
353
353
  }
354
354
  }, fr = async (r, a, e) => {
355
355
  try {
356
- const t = _t(r), s = a.filter((p) => p.visible !== !1 && p.export !== !1), i = yt(s), o = wt(e, s);
356
+ const t = _t(r), s = a.filter((f) => f.visible !== !1 && f.export !== !1), i = yt(s), o = wt(e, s);
357
357
  await kt(t, i, o);
358
358
  } catch (t) {
359
359
  console.error(y("webui.utils.exportTable.exportFailed") + ":", t), ae.error(y("webui.utils.exportTable.fileExportFailed"));
@@ -363,16 +363,16 @@ const dr = async (r, a) => {
363
363
  return r.replace(a, (e, t) => Ne().format(t));
364
364
  }, vr = async (r, a, e, t) => {
365
365
  try {
366
- const s = _t(r), i = a.filter((d) => d.visible !== !1), o = yt(i);
367
- let p = e.page, u = e.gridQuery;
368
- return t.api || (t.api = p.api), t.authorize === void 0 && (t.authorize = p.authorize), e.isGridLoading.value = !0, Oe(t, u).then(async (d) => {
369
- if (e.isGridLoading.value = !1, (d == null ? void 0 : d.status) === Ke.SUCCESS) {
370
- if (d.data) {
371
- let f = d.data;
372
- const n = wt(f, i);
366
+ const s = _t(r), i = a.filter((p) => p.visible !== !1), o = yt(i);
367
+ let f = e.page, c = e.gridQuery;
368
+ return t.api || (t.api = f.api), t.authorize === void 0 && (t.authorize = f.authorize), e.isGridLoading.value = !0, Oe(t, c).then(async (p) => {
369
+ if (e.isGridLoading.value = !1, (p == null ? void 0 : p.status) === Ke.SUCCESS) {
370
+ if (p.data) {
371
+ let v = p.data;
372
+ const n = wt(v, i);
373
373
  await kt(s, o, n);
374
374
  }
375
- } else if ((d == null ? void 0 : d.errno) == $t) {
375
+ } else if ((p == null ? void 0 : p.errno) == $t) {
376
376
  Be().logout(!1);
377
377
  return;
378
378
  }
@@ -384,7 +384,7 @@ const dr = async (r, a) => {
384
384
  __name: "fullscreen",
385
385
  setup(r) {
386
386
  const a = Ae();
387
- return (e, t) => (c(), k(Y, {
387
+ return (e, t) => (u(), k(Y, {
388
388
  onClick: ge(l(ht), ["stop"]),
389
389
  icon: l(a).fullscreen ? "icon-exitscreen" : "icon-fullscreen",
390
390
  class: "w-[17px] h-[17px]"
@@ -400,8 +400,8 @@ const dr = async (r, a) => {
400
400
  placement: {}
401
401
  },
402
402
  setup(r) {
403
- const a = de();
404
- return (e, t) => (c(), k(l(Jt), {
403
+ const a = ne();
404
+ return (e, t) => (u(), k(l(Jt), {
405
405
  placement: r.placement ?? "topRight"
406
406
  }, {
407
407
  content: w(() => [
@@ -439,12 +439,12 @@ const dr = async (r, a) => {
439
439
  icon: a.icon,
440
440
  icons: a.icons
441
441
  });
442
- return (s, i) => r.icon || r.icons ? (c(), k(l(t), N({
442
+ return (s, i) => r.icon || r.icons ? (u(), k(l(t), N({
443
443
  key: 0,
444
444
  icon: r.icon,
445
445
  icons: r.icons,
446
446
  class: ["align-middle"]
447
- }, s.$attrs), null, 16, ["icon", "icons"])) : C("", !0);
447
+ }, s.$attrs), null, 16, ["icon", "icons"])) : S("", !0);
448
448
  }
449
449
  }), La = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, hr = /* @__PURE__ */ L({
450
450
  __name: "index",
@@ -460,22 +460,22 @@ const dr = async (r, a) => {
460
460
  const { useToken: a } = ct, { token: e } = a(), t = T(!1), s = r, i = s.editorCtrl;
461
461
  Ce(oe.EditorControl, i), M(
462
462
  () => i.visible.value,
463
- (d) => {
464
- t.value = d ?? !1;
463
+ (p) => {
464
+ t.value = p ?? !1;
465
465
  }
466
466
  ), le(() => {
467
467
  t.value = i.visible.value ?? !1;
468
468
  });
469
469
  const o = () => {
470
470
  s.drawerSave ? s.drawerSave() : i && Qe(i);
471
- }, p = () => {
471
+ }, f = () => {
472
472
  s.drawerSaveAs ? s.drawerSaveAs() : i && Ft(i);
473
- }, u = () => {
473
+ }, c = () => {
474
474
  Pt(i);
475
475
  };
476
- return (d, f) => (c(), k(l(Xt), {
476
+ return (p, v) => (u(), k(l(Xt), {
477
477
  open: t.value,
478
- "onUpdate:open": f[0] || (f[0] = (n) => t.value = n),
478
+ "onUpdate:open": v[0] || (v[0] = (n) => t.value = n),
479
479
  "get-container": !1,
480
480
  closable: !1,
481
481
  "header-style": {
@@ -494,10 +494,10 @@ const dr = async (r, a) => {
494
494
  boxShadow: "rgba(0, 0, 0, 0.3) -2px 0px 8px"
495
495
  },
496
496
  width: "420px",
497
- onClose: u
497
+ onClose: c
498
498
  }, {
499
499
  extra: w(() => [
500
- O(d.$slots, "extra", {}, () => [
500
+ O(p.$slots, "extra", {}, () => [
501
501
  I("div", La, [
502
502
  D(l(Y), {
503
503
  class: "top-[-2px] left-[2px] w-6 h-6",
@@ -507,30 +507,30 @@ const dr = async (r, a) => {
507
507
  clickable: "",
508
508
  color: "#666",
509
509
  position: [0, 0],
510
- onClick: u
510
+ onClick: c
511
511
  })
512
512
  ])
513
513
  ])
514
514
  ]),
515
515
  default: w(() => [
516
- O(d.$slots, "default")
516
+ O(p.$slots, "default")
517
517
  ]),
518
518
  footer: w(() => [
519
- O(d.$slots, "footer", {}, () => [
519
+ O(p.$slots, "footer", {}, () => [
520
520
  D(l(pe), null, {
521
521
  default: w(() => [
522
- r.cancelText !== "" ? (c(), k(l(ee), {
522
+ r.cancelText !== "" ? (u(), k(l(ee), {
523
523
  key: 0,
524
- onClick: u
524
+ onClick: c
525
525
  }, {
526
526
  default: w(() => [
527
527
  G(E(r.cancelText ?? l(y)("webui.common.cancel")), 1)
528
528
  ]),
529
529
  _: 1
530
- })) : C("", !0),
531
- r.saveAsText !== "" && l(i).saveAsBtnVisible !== !1 ? (c(), k(l(ee), {
530
+ })) : S("", !0),
531
+ r.saveAsText !== "" && l(i).saveAsBtnVisible !== !1 ? (u(), k(l(ee), {
532
532
  key: 1,
533
- onClick: p,
533
+ onClick: f,
534
534
  type: "primary",
535
535
  loading: l(i).isFormSaving.value
536
536
  }, {
@@ -538,8 +538,8 @@ const dr = async (r, a) => {
538
538
  G(E(r.saveAsText ?? l(y)("webui.common.saveAs")), 1)
539
539
  ]),
540
540
  _: 1
541
- }, 8, ["loading"])) : C("", !0),
542
- r.saveText !== "" && l(i).saveBtnVisible !== !1 ? (c(), k(l(ee), {
541
+ }, 8, ["loading"])) : S("", !0),
542
+ r.saveText !== "" && l(i).saveBtnVisible !== !1 ? (u(), k(l(ee), {
543
543
  key: 2,
544
544
  onClick: o,
545
545
  type: "primary",
@@ -549,7 +549,7 @@ const dr = async (r, a) => {
549
549
  G(E(r.saveText ?? l(y)("webui.common.save")), 1)
550
550
  ]),
551
551
  _: 1
552
- }, 8, ["loading"])) : C("", !0)
552
+ }, 8, ["loading"])) : S("", !0)
553
553
  ]),
554
554
  _: 1
555
555
  })
@@ -568,8 +568,8 @@ const dr = async (r, a) => {
568
568
  setup(r) {
569
569
  const a = r, e = a.editorCtrl ?? ye(oe.EditorControl, void 0);
570
570
  return Ce(oe.LabelWidth, a.labelWidth), (t, s) => {
571
- const i = ne("submit");
572
- return Q((c(), k(l(ut), {
571
+ const i = ie("submit");
572
+ return Q((u(), k(l(ut), {
573
573
  "label-col": { flex: a.labelWidth ?? "85px" },
574
574
  "wrapper-col": {
575
575
  flex: a.wrapperWidth ?? "1 0 280px"
@@ -608,23 +608,23 @@ const dr = async (r, a) => {
608
608
  bottomMargin: {}
609
609
  },
610
610
  setup(r) {
611
- const a = r, e = de(), t = ye(oe.EditorControl, void 0), s = ye(oe.LabelWidth, "85px") ?? "85px", i = Je(a, t), o = T(!1);
611
+ const a = r, e = ne(), t = ye(oe.EditorControl, void 0), s = ye(oe.LabelWidth, "85px") ?? "85px", i = Je(a, t), o = T(!1);
612
612
  setTimeout(() => {
613
613
  o.value = !0;
614
614
  }, 30);
615
- const p = j(() => {
616
- var d;
615
+ const f = j(() => {
616
+ var p;
617
617
  if (!a.rule)
618
618
  return !1;
619
- const u = Xe(a.rule.split("."), (d = t == null ? void 0 : t.formRules) == null ? void 0 : d.value);
620
- return u ? (u.required || (i.value.errClass = "", i.value.msg = ""), u.required ?? !0) : (Zt.error(y("webui.components.content.formItem.validationRuleNotFound", { label: a.label, rule: a.rule })), i.value.errClass = "text-[#ff4d4f]", i.value.msg = y("webui.components.content.formItem.validationRuleNotFound", { label: a.label, rule: a.rule }), !0);
619
+ const c = Xe(a.rule.split("."), (p = t == null ? void 0 : t.formRules) == null ? void 0 : p.value);
620
+ return c ? (c.required || (i.value.errClass = "", i.value.msg = ""), c.required ?? !0) : (Zt.error(y("webui.components.content.formItem.validationRuleNotFound", { label: a.label, rule: a.rule })), i.value.errClass = "text-[#ff4d4f]", i.value.msg = y("webui.components.content.formItem.validationRuleNotFound", { label: a.label, rule: a.rule }), !0);
621
621
  });
622
- return (u, d) => (c(), x("div", {
622
+ return (c, p) => (u(), x("div", {
623
623
  class: R(["relative", r.bottomMargin ? r.bottomMargin : "mb-1"])
624
624
  }, [
625
- o.value ? (c(), k(l(dt), N({
625
+ o.value ? (u(), k(l(dt), N({
626
626
  key: 0,
627
- required: p.value,
627
+ required: f.value,
628
628
  class: ["relative", [r.nextLine ? "mb-0" : r.rule ? "" : "mb-3"]]
629
629
  }, l(e)), {
630
630
  label: w(() => [
@@ -636,32 +636,32 @@ const dr = async (r, a) => {
636
636
  I("div", {
637
637
  class: R(["flex items-center", r.width ? r.width : "w-full"])
638
638
  }, [
639
- r.nextLine ? C("", !0) : (c(), x("div", Ua, [
640
- O(u.$slots, "default")
639
+ r.nextLine ? S("", !0) : (u(), x("div", Ua, [
640
+ O(c.$slots, "default")
641
641
  ])),
642
642
  I("div", Ma, [
643
- O(u.$slots, "helper", {}, () => [
644
- r.helper ? (c(), k(l(Ea), {
643
+ O(c.$slots, "helper", {}, () => [
644
+ r.helper ? (u(), k(l(Ea), {
645
645
  key: 0,
646
646
  text: r.helper
647
- }, null, 8, ["text"])) : C("", !0)
647
+ }, null, 8, ["text"])) : S("", !0)
648
648
  ])
649
649
  ])
650
650
  ], 2)
651
651
  ]),
652
652
  _: 3
653
- }, 16, ["required", "class"])) : C("", !0),
654
- r.nextLine ? (c(), x("div", {
653
+ }, 16, ["required", "class"])) : S("", !0),
654
+ r.nextLine ? (u(), x("div", {
655
655
  key: 1,
656
656
  class: R(["w-[95%] flex items-center relative", [r.nextLine ? r.rule ? "mb-7" : "mb-3" : ""]])
657
657
  }, [
658
- O(u.$slots, "default")
659
- ], 2)) : C("", !0),
660
- l(i).errClass ? (c(), x("span", {
658
+ O(c.$slots, "default")
659
+ ], 2)) : S("", !0),
660
+ l(i).errClass ? (u(), x("span", {
661
661
  key: 2,
662
662
  style: je({ left: r.nextLine ? "2px" : l(s) }),
663
663
  class: "absolute bottom-[3px] text-[12px] text-[#ff4d4fcc]"
664
- }, E(l(i).msg), 5)) : C("", !0)
664
+ }, E(l(i).msg), 5)) : S("", !0)
665
665
  ], 2));
666
666
  }
667
667
  }), Na = /* @__PURE__ */ L({
@@ -695,13 +695,13 @@ const dr = async (r, a) => {
695
695
  confirmText: y("webui.components.content.table.confirmDelete"),
696
696
  click: () => et(e, a.record)
697
697
  }
698
- ], { buttons: i, menus: o } = De(s, 0, e.operates), p = (u) => {
699
- if (typeof u.disabled == "boolean")
700
- return u.disabled;
701
- if (typeof u.disabled == "function")
702
- return W(u, a.record) ?? !1;
698
+ ], { buttons: i, menus: o } = De(s, 0, e.operates), f = (c) => {
699
+ if (typeof c.disabled == "boolean")
700
+ return c.disabled;
701
+ if (typeof c.disabled == "function")
702
+ return W(c, a.record) ?? !1;
703
703
  if (a.record.hasOwnProperty(e.statusKey))
704
- switch (u.key) {
704
+ switch (c.key) {
705
705
  case "Edit":
706
706
  return !a.record[e.statusKey];
707
707
  case "Delete":
@@ -709,9 +709,9 @@ const dr = async (r, a) => {
709
709
  }
710
710
  return !1;
711
711
  };
712
- return (u, d) => {
713
- const f = ne("auth");
714
- return c(), k(l(we), { theme: {
712
+ return (c, p) => {
713
+ const v = ie("auth");
714
+ return u(), k(l(we), { theme: {
715
715
  token: {
716
716
  fontSize: 13
717
717
  }
@@ -719,12 +719,12 @@ const dr = async (r, a) => {
719
719
  default: w(() => [
720
720
  D(l(pe), null, {
721
721
  default: w(() => [
722
- (c(!0), x(U, null, V(l(i), (n) => (c(), x(U, {
722
+ (u(!0), x(U, null, V(l(i), (n) => (u(), x(U, {
723
723
  key: n.key
724
724
  }, [
725
- l(J)(n, a.record) ? (c(), k(l(pt), {
725
+ l(J)(n, a.record) ? (u(), k(l(pt), {
726
726
  key: 0,
727
- disabled: p(n) || !n.confirm,
727
+ disabled: f(n) || !n.confirm,
728
728
  cancelText: l(y)("webui.common.no"),
729
729
  okText: l(y)("webui.common.yes"),
730
730
  title: n.confirmText,
@@ -733,43 +733,43 @@ const dr = async (r, a) => {
733
733
  onConfirm: (m) => l(X)(n, l(e).page, l(e), a.record, !0)
734
734
  }, {
735
735
  default: w(() => [
736
- l(J)(n, a.record) ? Q((c(), k(l(Y), {
736
+ l(J)(n, a.record) ? Q((u(), k(l(Y), {
737
737
  key: n.key,
738
738
  icon: n.icon,
739
739
  danger: n.danger,
740
- disabled: p(n),
741
- onClick: (m) => !p(n) && l(X)(n, l(e).page, l(e), a.record),
742
- clickable: !p(n),
740
+ disabled: f(n),
741
+ onClick: (m) => !f(n) && l(X)(n, l(e).page, l(e), a.record),
742
+ clickable: !f(n),
743
743
  class: R([
744
744
  "w-4 h-4",
745
745
  n.danger ? "text-red-500" : "text-gray-600",
746
- p(n) ? "opacity-30 cursor-not-allowed" : "hover:text-gray-800"
746
+ f(n) ? "opacity-30 cursor-not-allowed" : "hover:text-gray-800"
747
747
  ])
748
748
  }, null, 8, ["icon", "danger", "disabled", "onClick", "clickable", "class"])), [
749
- [f, { url: t.value, role: n.role, permit: n.permit }]
750
- ]) : C("", !0)
749
+ [v, { url: t.value, role: n.role, permit: n.permit }]
750
+ ]) : S("", !0)
751
751
  ]),
752
752
  _: 2
753
- }, 1032, ["disabled", "cancelText", "okText", "title", "onConfirm"])) : C("", !0)
753
+ }, 1032, ["disabled", "cancelText", "okText", "title", "onConfirm"])) : S("", !0)
754
754
  ], 64))), 128)),
755
- r.record[l(e).statusKey] == 1 ? (c(), k(l(we), {
755
+ r.record[l(e).statusKey] == 1 ? (u(), k(l(we), {
756
756
  key: 0,
757
757
  autoInsertSpaceInButton: !1
758
758
  }, {
759
759
  default: w(() => [
760
- l(o).length > 0 ? (c(), k(l(ft), {
760
+ l(o).length > 0 ? (u(), k(l(ft), {
761
761
  key: 0,
762
762
  size: "small"
763
763
  }, {
764
764
  overlay: w(() => [
765
765
  D(l(Te), null, {
766
766
  default: w(() => [
767
- (c(!0), x(U, null, V(l(o), (n) => (c(), x(U, {
767
+ (u(!0), x(U, null, V(l(o), (n) => (u(), x(U, {
768
768
  key: n.key
769
769
  }, [
770
- l(J)(n, a.record) ? Q((c(), k(l($e), {
770
+ l(J)(n, a.record) ? Q((u(), k(l($e), {
771
771
  key: 0,
772
- disabled: p(n),
772
+ disabled: f(n),
773
773
  onClick: (m) => l(X)(n, l(e).page, l(e), a.record)
774
774
  }, {
775
775
  default: w(() => [
@@ -777,8 +777,8 @@ const dr = async (r, a) => {
777
777
  ]),
778
778
  _: 2
779
779
  }, 1032, ["disabled", "onClick"])), [
780
- [f, { url: t.value, role: n.role, permit: n.permit }]
781
- ]) : C("", !0)
780
+ [v, { url: t.value, role: n.role, permit: n.permit }]
781
+ ]) : S("", !0)
782
782
  ], 64))), 128))
783
783
  ]),
784
784
  _: 1
@@ -788,10 +788,10 @@ const dr = async (r, a) => {
788
788
  G(E(l(y)("webui.components.content.table.more")) + " ", 1)
789
789
  ]),
790
790
  _: 1
791
- })) : C("", !0)
791
+ })) : S("", !0)
792
792
  ]),
793
793
  _: 1
794
- })) : C("", !0)
794
+ })) : S("", !0)
795
795
  ]),
796
796
  _: 1
797
797
  })
@@ -809,50 +809,50 @@ const dr = async (r, a) => {
809
809
  const a = r, e = a.gridCtrl, { tools: t } = Fa(a.gridCtrl), s = Ae();
810
810
  M(
811
811
  () => e.selectable.value,
812
- (p) => {
813
- ce(t, "tool.export.excel.selected") && (ce(t, "tool.export.excel.selected").disabled = !p), ce(t, "tool.export.pdf.selected") && (ce(t, "tool.export.pdf.selected").disabled = !p);
812
+ (f) => {
813
+ ue(t, "tool.export.excel.selected") && (ue(t, "tool.export.excel.selected").disabled = !f), ue(t, "tool.export.pdf.selected") && (ue(t, "tool.export.pdf.selected").disabled = !f);
814
814
  }
815
815
  );
816
816
  const i = T([]);
817
817
  M(
818
818
  () => e.columns.value,
819
- (p) => {
820
- i.value = tt(p, !0);
819
+ (f) => {
820
+ i.value = tt(f, !0);
821
821
  },
822
822
  { deep: !0, immediate: !0 }
823
823
  );
824
824
  const o = () => {
825
825
  e.columns.value.splice(0, e.columns.value.length, ...i.value), s.setTableColumns(fe.currentRoute.value.path, e.columns.value);
826
826
  };
827
- return (p, u) => (c(), x("div", Ra, [
828
- (c(!0), x(U, null, V(l(t), (d, f) => (c(), x(U, {
829
- key: d.key
827
+ return (f, c) => (u(), x("div", Ra, [
828
+ (u(!0), x(U, null, V(l(t), (p, v) => (u(), x(U, {
829
+ key: p.key
830
830
  }, [
831
- l(J)(d) && d.dropdown ? (c(), k(l(Re), {
831
+ l(J)(p) && p.dropdown ? (u(), k(l(Re), {
832
832
  key: 0,
833
833
  placement: "bottomRight",
834
834
  class: "p-0 rounded-none"
835
835
  }, {
836
836
  overlay: w(() => [
837
837
  I("div", {
838
- class: R(["min-w-[100px] bg-white rounded shadow-md p-4", d.dropdownClass])
838
+ class: R(["min-w-[100px] bg-white rounded shadow-md p-4", p.dropdownClass])
839
839
  }, [
840
- d.dropdown === "headset" ? (c(), k(l(ha), {
840
+ p.dropdown === "headset" ? (u(), k(l(ha), {
841
841
  key: 0,
842
842
  modelValue: i.value,
843
- "onUpdate:modelValue": u[1] || (u[1] = (n) => i.value = n),
843
+ "onUpdate:modelValue": c[1] || (c[1] = (n) => i.value = n),
844
844
  "item-key": "dataIndex",
845
845
  onEnd: o,
846
846
  handle: ".drag-handle"
847
847
  }, {
848
848
  default: w(() => [
849
- (c(!0), x(U, null, V(i.value, (n) => (c(), x("div", {
849
+ (u(!0), x(U, null, V(i.value, (n) => (u(), x("div", {
850
850
  key: n.name,
851
- onClick: u[0] || (u[0] = ge(() => {
851
+ onClick: c[0] || (c[0] = ge(() => {
852
852
  }, ["stop"])),
853
853
  class: "flex items-center mb-2 last:mb-0 select-none"
854
854
  }, [
855
- u[2] || (u[2] = I("span", { class: "drag-handle mr-2 text-gray-400 hover:text-gray-600 cursor-move" }, "⋮⋮", -1)),
855
+ c[2] || (c[2] = I("span", { class: "drag-handle mr-2 text-gray-400 hover:text-gray-600 cursor-move" }, "⋮⋮", -1)),
856
856
  D(l(ea), {
857
857
  checked: n.visible !== !1,
858
858
  onChange: ge(
@@ -871,23 +871,23 @@ const dr = async (r, a) => {
871
871
  ]))), 128))
872
872
  ]),
873
873
  _: 1
874
- }, 8, ["modelValue"])) : C("", !0)
874
+ }, 8, ["modelValue"])) : S("", !0)
875
875
  ], 2)
876
876
  ]),
877
877
  default: w(() => [
878
878
  D(l(ee), {
879
879
  class: R([
880
880
  "px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
881
- f === 0 ? "rounded-l-[5px]" : "",
882
- f === l(t).length - 1 ? "rounded-r-[5px]" : ""
881
+ v === 0 ? "rounded-l-[5px]" : "",
882
+ v === l(t).length - 1 ? "rounded-r-[5px]" : ""
883
883
  ]),
884
- disabled: l(W)(d),
885
- tiptext: d.label,
886
- onClick: (n) => l(X)(d, l(e).page, l(e))
884
+ disabled: l(W)(p),
885
+ tiptext: p.label,
886
+ onClick: (n) => l(X)(p, l(e).page, l(e))
887
887
  }, {
888
888
  default: w(() => [
889
889
  D(l(Y), {
890
- icon: d.icon,
890
+ icon: p.icon,
891
891
  class: "w-[18px] h-[18.5px]",
892
892
  clickable: ""
893
893
  }, null, 8, ["icon"])
@@ -896,26 +896,26 @@ const dr = async (r, a) => {
896
896
  }, 1032, ["class", "disabled", "tiptext", "onClick"])
897
897
  ]),
898
898
  _: 2
899
- }, 1024)) : !d.children && l(J)(d) ? (c(), k(l(ee), {
899
+ }, 1024)) : !p.children && l(J)(p) ? (u(), k(l(ee), {
900
900
  key: 1,
901
901
  class: R([
902
902
  "px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
903
- f === 0 ? "rounded-l-[5px]" : "",
904
- f === l(t).length - 1 ? "rounded-r-[5px]" : ""
903
+ v === 0 ? "rounded-l-[5px]" : "",
904
+ v === l(t).length - 1 ? "rounded-r-[5px]" : ""
905
905
  ]),
906
- disabled: l(W)(d),
907
- tiptext: d.label,
908
- onClick: (n) => l(X)(d, l(e).page, l(e))
906
+ disabled: l(W)(p),
907
+ tiptext: p.label,
908
+ onClick: (n) => l(X)(p, l(e).page, l(e))
909
909
  }, {
910
910
  default: w(() => [
911
911
  D(l(Y), {
912
- icon: d.icon,
912
+ icon: p.icon,
913
913
  class: "w-[18px] h-[18.5px]",
914
914
  clickable: ""
915
915
  }, null, 8, ["icon"])
916
916
  ]),
917
917
  _: 2
918
- }, 1032, ["class", "disabled", "tiptext", "onClick"])) : l(J)(d) ? (c(), k(l(Re), {
918
+ }, 1032, ["class", "disabled", "tiptext", "onClick"])) : l(J)(p) ? (u(), k(l(Re), {
919
919
  key: 2,
920
920
  placement: "bottomRight",
921
921
  class: "p-0 rounded-none"
@@ -923,7 +923,7 @@ const dr = async (r, a) => {
923
923
  overlay: w(() => [
924
924
  D(l(Te), null, {
925
925
  default: w(() => [
926
- (c(!0), x(U, null, V(d.children, (n) => (c(), k(l($e), {
926
+ (u(!0), x(U, null, V(p.children, (n) => (u(), k(l($e), {
927
927
  key: n.key,
928
928
  disabled: l(W)(n)
929
929
  }, {
@@ -940,13 +940,13 @@ const dr = async (r, a) => {
940
940
  D(l(ee), {
941
941
  class: R([
942
942
  "!w-[46px] px-[5px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
943
- f === 0 ? "rounded-l-[5px]" : ""
943
+ v === 0 ? "rounded-l-[5px]" : ""
944
944
  ]),
945
- disabled: l(W)(d),
946
- tiptext: d.label,
947
- icon: d.icon,
945
+ disabled: l(W)(p),
946
+ tiptext: p.label,
947
+ icon: p.icon,
948
948
  iconProps: { class: "w-[19px] h-[19px]" },
949
- onClick: (n) => l(X)(d, l(e).page, l(e))
949
+ onClick: (n) => l(X)(p, l(e).page, l(e))
950
950
  }, {
951
951
  default: w(() => [
952
952
  D(l(Y), {
@@ -958,7 +958,7 @@ const dr = async (r, a) => {
958
958
  }, 8, ["class", "disabled", "tiptext", "icon", "onClick"])
959
959
  ]),
960
960
  _: 2
961
- }, 1024)) : C("", !0)
961
+ }, 1024)) : S("", !0)
962
962
  ], 64))), 128))
963
963
  ]));
964
964
  }
@@ -981,37 +981,37 @@ const dr = async (r, a) => {
981
981
  // 默认仅受权限码控制
982
982
  click: () => It(s)
983
983
  }
984
- ], p = T([]), u = T([]);
984
+ ], f = T([]), c = T([]);
985
985
  return M(
986
986
  () => {
987
- var d;
988
- return (d = e.buttons) == null ? void 0 : d.value;
987
+ var p;
988
+ return (p = e.buttons) == null ? void 0 : p.value;
989
989
  },
990
990
  () => {
991
991
  var n;
992
- const { buttons: d, menus: f } = De(
992
+ const { buttons: p, menus: v } = De(
993
993
  o,
994
994
  e.flat !== void 0 ? e.flat : Oa,
995
995
  (n = e.buttons) == null ? void 0 : n.value
996
996
  );
997
- p.value.splice(0, p.value.length, ...d), u.value.splice(0, u.value.length, ...f);
997
+ f.value.splice(0, f.value.length, ...p), c.value.splice(0, c.value.length, ...v);
998
998
  },
999
999
  {
1000
1000
  deep: !0,
1001
1001
  immediate: !0
1002
1002
  }
1003
- ), (d, f) => {
1004
- const n = ne("auth");
1005
- return c(), x("div", Aa, [
1003
+ ), (p, v) => {
1004
+ const n = ie("auth");
1005
+ return u(), x("div", Aa, [
1006
1006
  D(l(pe), null, {
1007
1007
  default: w(() => [
1008
- (c(!0), x(U, null, V(p.value, (m) => Q((c(), k(l(ee), {
1008
+ (u(!0), x(U, null, V(f.value, (m) => Q((u(), k(l(ee), {
1009
1009
  key: m.key,
1010
1010
  type: m.type,
1011
1011
  danger: m.danger,
1012
1012
  disabled: l(W)(m),
1013
1013
  icon: m.icon,
1014
- onClick: (v) => l(X)(m, l(t), l(e))
1014
+ onClick: (d) => l(X)(m, l(t), l(e))
1015
1015
  }, {
1016
1016
  default: w(() => [
1017
1017
  G(E(m.label), 1)
@@ -1020,14 +1020,14 @@ const dr = async (r, a) => {
1020
1020
  }, 1032, ["type", "danger", "disabled", "icon", "onClick"])), [
1021
1021
  [n, { url: i.value, role: m.role, permit: m.permit }]
1022
1022
  ])), 128)),
1023
- u.value.length > 0 ? (c(), k(l(Re), { key: 0 }, {
1023
+ c.value.length > 0 ? (u(), k(l(Re), { key: 0 }, {
1024
1024
  overlay: w(() => [
1025
1025
  D(l(Te), null, {
1026
1026
  default: w(() => [
1027
- (c(!0), x(U, null, V(u.value, (m) => Q((c(), k(l($e), {
1027
+ (u(!0), x(U, null, V(c.value, (m) => Q((u(), k(l($e), {
1028
1028
  key: m.key,
1029
1029
  disabled: l(W)(m),
1030
- onClick: (v) => l(X)(m, l(t), l(e))
1030
+ onClick: (d) => l(X)(m, l(t), l(e))
1031
1031
  }, {
1032
1032
  default: w(() => [
1033
1033
  G(E(m.label), 1)
@@ -1049,14 +1049,14 @@ const dr = async (r, a) => {
1049
1049
  })
1050
1050
  ]),
1051
1051
  _: 1
1052
- })) : C("", !0),
1053
- p.value.length === 0 && u.value.length === 0 ? (c(), x("span", za)) : C("", !0)
1052
+ })) : S("", !0),
1053
+ f.value.length === 0 && c.value.length === 0 ? (u(), x("span", za)) : S("", !0)
1054
1054
  ]),
1055
1055
  _: 1
1056
1056
  }),
1057
1057
  D(l(pe), { class: "mr-1" }, {
1058
1058
  default: w(() => [
1059
- (c(), k(nt(Ba), { "grid-ctrl": l(e) }, null, 8, ["grid-ctrl"]))
1059
+ (u(), k(nt(Ba), { "grid-ctrl": l(e) }, null, 8, ["grid-ctrl"]))
1060
1060
  ]),
1061
1061
  _: 1
1062
1062
  })
@@ -1076,57 +1076,57 @@ const dr = async (r, a) => {
1076
1076
  statusDisabled: {}
1077
1077
  },
1078
1078
  setup(r) {
1079
- const a = r, e = de(), t = a.gridCtrl, s = j(() => fe.currentRoute.value.path);
1079
+ const a = r, e = ne(), t = a.gridCtrl, s = j(() => fe.currentRoute.value.path);
1080
1080
  t && (t.pageNo.value = 1, t.total.value = 0, t.pageSize.value = t.pageSize.value);
1081
- const i = T(t.pageSize.value), o = T(t.pageNo.value), p = T([]), u = T({
1081
+ const i = T(t.pageSize.value), o = T(t.pageNo.value), f = T([]), c = T({
1082
1082
  total: 0,
1083
1083
  current: 1,
1084
1084
  pageSize: i.value,
1085
- showTotal: (f) => y("webui.common.total", [f]),
1086
- onChange: (f, n) => {
1087
- u.value !== !1 && (u.value.current = f, u.value.pageSize = n), i.value = n, o.value = f, t && (t.pageNo.value = f, t.pageSize.value = n, t.remotePage && be(t));
1085
+ showTotal: (v) => y("webui.common.total", [v]),
1086
+ onChange: (v, n) => {
1087
+ c.value !== !1 && (c.value.current = v, c.value.pageSize = n), i.value = n, o.value = v, t && (t.pageNo.value = v, t.pageSize.value = n, t.remotePage && be(t));
1088
1088
  },
1089
1089
  ...a.pagination === !1 ? {} : a.pagination
1090
1090
  });
1091
- a.pagination === !1 && (u.value = !1), M(
1091
+ a.pagination === !1 && (c.value = !1), M(
1092
1092
  () => t.tableData.value,
1093
- (f) => {
1094
- f && (p.value = f, u.value !== !1 && (u.value.total = t.total.value ?? 0, u.value.current = t.pageNo.value ?? 1, u.value.pageSize = t.pageSize.value ?? 10));
1093
+ (v) => {
1094
+ v && (f.value = v, c.value !== !1 && (c.value.total = t.total.value ?? 0, c.value.current = t.pageNo.value ?? 1, c.value.pageSize = t.pageSize.value ?? 10));
1095
1095
  },
1096
1096
  { immediate: !0 }
1097
1097
  ), M(
1098
1098
  () => a.listData,
1099
- (f) => {
1100
- f && (p.value = f, u.value !== !1 && (u.value.total = f.length, u.value.current = t.pageNo.value ?? 1, u.value.pageSize = t.pageSize.value ?? 10));
1099
+ (v) => {
1100
+ v && (f.value = v, c.value !== !1 && (c.value.total = v.length, c.value.current = t.pageNo.value ?? 1, c.value.pageSize = t.pageSize.value ?? 10));
1101
1101
  },
1102
1102
  { immediate: !0 }
1103
1103
  );
1104
- const d = T(!1);
1104
+ const p = T(!1);
1105
1105
  return Se(() => {
1106
- d.value && t && t.autoload && (t.reload.value = !0);
1106
+ p.value && t && t.autoload && (t.reload.value = !0);
1107
1107
  }), Ce(oe.GridControl, t), le(async () => {
1108
- var f, n, m, v, b;
1109
- t.page && ((f = t.gridUrl) != null && f.url) && (((n = t.gridUrl) == null ? void 0 : n.url) === ((m = t.page.urls.list) == null ? void 0 : m.url) && (t.remotePage = !1), ((v = t.gridUrl) == null ? void 0 : v.url) === ((b = t.page.urls.find) == null ? void 0 : b.url) && (t.remotePage = !0)), t.tableData.value ? (p.value = t.tableData.value, t.total.value = p.value.length, u.value !== !1 && (u.value.total = t.total.value ?? 0)) : t.autoload !== !1 && (t.remotePage ? p.value = (await be(t)).rows : p.value = await at(t)), setTimeout(() => {
1110
- d.value = !0;
1108
+ var v, n, m, d, h;
1109
+ t.page && ((v = t.gridUrl) != null && v.url) && (((n = t.gridUrl) == null ? void 0 : n.url) === ((m = t.page.urls.list) == null ? void 0 : m.url) && (t.remotePage = !1), ((d = t.gridUrl) == null ? void 0 : d.url) === ((h = t.page.urls.find) == null ? void 0 : h.url) && (t.remotePage = !0)), t.tableData.value ? (f.value = t.tableData.value, t.total.value = f.value.length, c.value !== !1 && (c.value.total = t.total.value ?? 0)) : t.autoload !== !1 && (t.remotePage ? f.value = (await be(t)).rows : f.value = await at(t)), setTimeout(() => {
1110
+ p.value = !0;
1111
1111
  }, 50);
1112
- }), (f, n) => {
1113
- var v, b;
1114
- const m = ne("auth");
1115
- return c(), x(U, null, [
1116
- (v = l(t).buttons) != null && v.value.length || (b = l(t).tools) != null && b.length ? (c(), k(Ct, {
1112
+ }), (v, n) => {
1113
+ var d, h;
1114
+ const m = ie("auth");
1115
+ return u(), x(U, null, [
1116
+ (d = l(t).buttons) != null && d.value.length || (h = l(t).tools) != null && h.length ? (u(), k(Ct, {
1117
1117
  key: 0,
1118
1118
  "grid-ctrl": l(t),
1119
1119
  "editor-ctrl": l(t).editor
1120
- }, null, 8, ["grid-ctrl", "editor-ctrl"])) : C("", !0),
1121
- d.value ? (c(), k(l(ta), N({
1120
+ }, null, 8, ["grid-ctrl", "editor-ctrl"])) : S("", !0),
1121
+ p.value ? (u(), k(l(ta), N({
1122
1122
  key: 1,
1123
1123
  class: "w-full min-h-[480px]",
1124
1124
  grid: a.grid,
1125
- "data-source": p.value,
1125
+ "data-source": f.value,
1126
1126
  loading: l(t).isGridLoading.value,
1127
- pagination: u.value
1127
+ pagination: c.value
1128
1128
  }, l(e)), {
1129
- renderItem: w(({ item: S }) => [
1129
+ renderItem: w(({ item: C }) => [
1130
1130
  D(l(aa), { class: "!m-0 !p-0" }, {
1131
1131
  default: w(() => [
1132
1132
  D(l(la), {
@@ -1136,32 +1136,32 @@ const dr = async (r, a) => {
1136
1136
  }, {
1137
1137
  title: w(() => [
1138
1138
  I("div", Ka, [
1139
- I("span", null, E(S[a.titleField]), 1),
1139
+ I("span", null, E(C[a.titleField]), 1),
1140
1140
  I("div", ja, [
1141
1141
  Q(D(lt, {
1142
- checked: S[l(t).statusKey],
1143
- "onUpdate:checked": (_) => S[l(t).statusKey] = _,
1144
- disabled: r.statusDisabled ? r.statusDisabled(S) : !1,
1142
+ checked: C[l(t).statusKey],
1143
+ "onUpdate:checked": (_) => C[l(t).statusKey] = _,
1144
+ disabled: r.statusDisabled ? r.statusDisabled(C) : !1,
1145
1145
  data: l(ze).EnableDisable,
1146
- onClick: (_) => l(rt)(l(t), S),
1146
+ onClick: (_) => l(rt)(l(t), C),
1147
1147
  size: "small",
1148
1148
  class: R([
1149
1149
  "relative mt-[3px] transform scale-[1.1]",
1150
- r.statusDisabled && r.statusDisabled(S) ? "cursor-not-allowed disabled" : ""
1150
+ r.statusDisabled && r.statusDisabled(C) ? "cursor-not-allowed disabled" : ""
1151
1151
  ]),
1152
- loading: S.isLoading
1152
+ loading: C.isLoading
1153
1153
  }, null, 8, ["checked", "onUpdate:checked", "disabled", "data", "onClick", "class", "loading"]), [
1154
1154
  [m, { url: s.value, role: ["Super", "Admin"], permit: ":enabled" }, "disable"]
1155
1155
  ]),
1156
1156
  D(Na, {
1157
- record: S,
1157
+ record: C,
1158
1158
  "grid-ctrl": l(t)
1159
1159
  }, null, 8, ["record", "grid-ctrl"])
1160
1160
  ])
1161
1161
  ])
1162
1162
  ]),
1163
1163
  default: w(() => [
1164
- O(f.$slots, "cardContent", { record: S })
1164
+ O(v.$slots, "cardContent", { record: C })
1165
1165
  ]),
1166
1166
  _: 2
1167
1167
  }, 1024)
@@ -1170,7 +1170,7 @@ const dr = async (r, a) => {
1170
1170
  }, 1024)
1171
1171
  ]),
1172
1172
  _: 3
1173
- }, 16, ["grid", "data-source", "loading", "pagination"])) : C("", !0)
1173
+ }, 16, ["grid", "data-source", "loading", "pagination"])) : S("", !0)
1174
1174
  ], 64);
1175
1175
  };
1176
1176
  }
@@ -1186,14 +1186,14 @@ const dr = async (r, a) => {
1186
1186
  rule: {}
1187
1187
  },
1188
1188
  setup(r) {
1189
- const a = r, e = de(), t = ye(oe.EditorControl, void 0), s = Je(a, t), i = j(() => {
1190
- var p;
1189
+ const a = r, e = ne(), t = ye(oe.EditorControl, void 0), s = Je(a, t), i = j(() => {
1190
+ var f;
1191
1191
  if (!a.rule)
1192
1192
  return !1;
1193
- const o = Xe(a.rule.split("."), (p = t == null ? void 0 : t.formRules) == null ? void 0 : p.value);
1193
+ const o = Xe(a.rule.split("."), (f = t == null ? void 0 : t.formRules) == null ? void 0 : f.value);
1194
1194
  return o ? (o.required || (s.value.errClass = "", s.value.msg = ""), o.required ?? !0) : (ae.error(y("webui.components.content.searchItem.validationRuleNotFound", { label: a.label, rule: a.rule })), s.value.errClass = "text-[#ff4d4f]", s.value.msg = y("webui.components.content.searchItem.validationRuleNotFound", { label: a.label, rule: a.rule }), !0);
1195
1195
  });
1196
- return (o, p) => (c(), x("div", Va, [
1196
+ return (o, f) => (u(), x("div", Va, [
1197
1197
  D(l(dt), N({
1198
1198
  required: i.value,
1199
1199
  class: "w-[90%] relative"
@@ -1220,7 +1220,7 @@ const dr = async (r, a) => {
1220
1220
  key: "0"
1221
1221
  } : void 0
1222
1222
  ]), 1040, ["required", "class"]),
1223
- l(s).msg ? (c(), x("span", Wa, E(l(s).msg), 1)) : C("", !0)
1223
+ l(s).msg ? (u(), x("span", Wa, E(l(s).msg), 1)) : S("", !0)
1224
1224
  ]));
1225
1225
  }
1226
1226
  }), wr = /* @__PURE__ */ L({
@@ -1232,58 +1232,58 @@ const dr = async (r, a) => {
1232
1232
  },
1233
1233
  emits: ["update:search", "onsearch", "onreset"],
1234
1234
  setup(r, { emit: a }) {
1235
- const e = r, t = a, s = T(0), i = T(0), o = T(0), p = (v) => {
1236
- let b = 0;
1237
- for (let S = 0; S < v.length; S++)
1238
- typeof v[S].type == "object" && b++;
1239
- return b;
1240
- }, u = Ht(), d = () => {
1241
- i.value = 0, o.value = 0, u.default && (i.value = p(u.default({}))), e.gridCtrl && e.gridCtrl.searchBar && u.control && (o.value = p(u.control({}))), s.value = 2 - (i.value + o.value) % 3;
1235
+ const e = r, t = a, s = T(0), i = T(0), o = T(0), f = (d) => {
1236
+ let h = 0;
1237
+ for (let C = 0; C < d.length; C++)
1238
+ typeof d[C].type == "object" && h++;
1239
+ return h;
1240
+ }, c = Ht(), p = () => {
1241
+ i.value = 0, o.value = 0, c.default && (i.value = f(c.default({}))), e.gridCtrl && e.gridCtrl.searchBar && c.control && (o.value = f(c.control({}))), s.value = 2 - (i.value + o.value) % 3;
1242
1242
  };
1243
1243
  M(
1244
1244
  () => {
1245
- var v;
1246
- return (v = e.gridCtrl) == null ? void 0 : v.searchBar;
1245
+ var d;
1246
+ return (d = e.gridCtrl) == null ? void 0 : d.searchBar;
1247
1247
  },
1248
1248
  () => {
1249
- d();
1249
+ p();
1250
1250
  }
1251
1251
  );
1252
- const f = JSON.parse(JSON.stringify(e.search));
1252
+ const v = JSON.parse(JSON.stringify(e.search));
1253
1253
  le(() => {
1254
- var b;
1255
- d();
1256
- let v = { ...e.search };
1254
+ var h;
1255
+ p();
1256
+ let d = { ...e.search };
1257
1257
  e.gridCtrl && (e.gridCtrl.gridQuery = {
1258
1258
  ...e.gridCtrl.gridQuery,
1259
1259
  Query: {
1260
- ...(b = e.gridCtrl.gridQuery) == null ? void 0 : b.Query,
1261
- ...v
1260
+ ...(h = e.gridCtrl.gridQuery) == null ? void 0 : h.Query,
1261
+ ...d
1262
1262
  }
1263
1263
  });
1264
1264
  });
1265
1265
  const n = () => {
1266
- var b;
1267
- let v = { ...e.search };
1266
+ var h;
1267
+ let d = { ...e.search };
1268
1268
  if (e.likeFields)
1269
- for (const S of e.likeFields)
1270
- v[S] && (v[S] = { $like: "%" + v[S] + "%" });
1269
+ for (const C of e.likeFields)
1270
+ d[C] && (d[C] = { $like: "%" + d[C] + "%" });
1271
1271
  e.gridCtrl && (e.gridCtrl.gridQuery = {
1272
1272
  ...e.gridCtrl.gridQuery,
1273
1273
  Query: {
1274
- ...(b = e.gridCtrl.gridQuery) == null ? void 0 : b.Query,
1275
- ...v
1274
+ ...(h = e.gridCtrl.gridQuery) == null ? void 0 : h.Query,
1275
+ ...d
1276
1276
  }
1277
- }, e.gridCtrl.pageNo.value = 1, e.gridCtrl.reload.value = !0), t("onsearch", v);
1277
+ }, e.gridCtrl.pageNo.value = 1, e.gridCtrl.reload.value = !0), t("onsearch", d);
1278
1278
  }, m = () => {
1279
- const v = JSON.parse(JSON.stringify(f));
1280
- for (const b in e.search)
1281
- v[b] === void 0 && (v[b] = void 0);
1282
- t("update:search", v), t("onreset");
1279
+ const d = JSON.parse(JSON.stringify(v));
1280
+ for (const h in e.search)
1281
+ d[h] === void 0 && (d[h] = void 0);
1282
+ t("update:search", d), t("onreset");
1283
1283
  };
1284
- return (v, b) => {
1285
- const S = ne("submit");
1286
- return i.value + o.value > 0 ? Q((c(), k(l(ut), {
1284
+ return (d, h) => {
1285
+ const C = ie("submit");
1286
+ return i.value + o.value > 0 ? Q((u(), k(l(ut), {
1287
1287
  key: 0,
1288
1288
  "label-col": { flex: "60px" },
1289
1289
  style: {
@@ -1295,17 +1295,17 @@ const dr = async (r, a) => {
1295
1295
  default: w(() => {
1296
1296
  var _, $;
1297
1297
  return [
1298
- O(v.$slots, "default"),
1299
- (_ = r.gridCtrl) != null && _.searchBar ? O(v.$slots, "control", { key: 0 }) : C("", !0),
1300
- s.value >= 1 ? (c(), k(Ue, {
1298
+ O(d.$slots, "default"),
1299
+ (_ = r.gridCtrl) != null && _.searchBar ? O(d.$slots, "control", { key: 0 }) : S("", !0),
1300
+ s.value >= 1 ? (u(), k(Ue, {
1301
1301
  key: 1,
1302
1302
  class: "w-1/3"
1303
- })) : C("", !0),
1304
- s.value >= 2 ? (c(), k(Ue, {
1303
+ })) : S("", !0),
1304
+ s.value >= 2 ? (u(), k(Ue, {
1305
1305
  key: 2,
1306
1306
  class: "w-1/3"
1307
- })) : C("", !0),
1308
- i.value || ($ = r.gridCtrl) != null && $.searchBar ? (c(), k(Ue, {
1307
+ })) : S("", !0),
1308
+ i.value || ($ = r.gridCtrl) != null && $.searchBar ? (u(), k(Ue, {
1309
1309
  key: 3,
1310
1310
  class: "w-1/3 flex justify-end text-right pr-5",
1311
1311
  "wrapper-col": { flex: "auto" }
@@ -1337,13 +1337,13 @@ const dr = async (r, a) => {
1337
1337
  })
1338
1338
  ]),
1339
1339
  _: 1
1340
- })) : C("", !0)
1340
+ })) : S("", !0)
1341
1341
  ];
1342
1342
  }),
1343
1343
  _: 3
1344
1344
  })), [
1345
- [S, n]
1346
- ]) : C("", !0);
1345
+ [C, n]
1346
+ ]) : S("", !0);
1347
1347
  };
1348
1348
  }
1349
1349
  }), Ha = /* @__PURE__ */ L({
@@ -1375,13 +1375,13 @@ const dr = async (r, a) => {
1375
1375
  confirmText: y("webui.components.content.table.confirmDelete"),
1376
1376
  click: () => et(e, a.record)
1377
1377
  }
1378
- ], { buttons: i, menus: o } = De(s, 0, e.operates), p = (u) => {
1379
- if (typeof u.disabled == "boolean")
1380
- return u.disabled;
1381
- if (typeof u.disabled == "function")
1382
- return W(u, a.record) ?? !1;
1378
+ ], { buttons: i, menus: o } = De(s, 0, e.operates), f = (c) => {
1379
+ if (typeof c.disabled == "boolean")
1380
+ return c.disabled;
1381
+ if (typeof c.disabled == "function")
1382
+ return W(c, a.record) ?? !1;
1383
1383
  if (a.record.hasOwnProperty(e.statusKey))
1384
- switch (u.key) {
1384
+ switch (c.key) {
1385
1385
  case "Edit":
1386
1386
  return !a.record[e.statusKey];
1387
1387
  // 启用时可编辑,停用时不可编辑
@@ -1390,9 +1390,9 @@ const dr = async (r, a) => {
1390
1390
  }
1391
1391
  return !1;
1392
1392
  };
1393
- return (u, d) => {
1394
- const f = ne("auth");
1395
- return c(), k(l(we), { theme: {
1393
+ return (c, p) => {
1394
+ const v = ie("auth");
1395
+ return u(), k(l(we), { theme: {
1396
1396
  token: {
1397
1397
  fontSize: 13
1398
1398
  }
@@ -1400,12 +1400,12 @@ const dr = async (r, a) => {
1400
1400
  default: w(() => [
1401
1401
  D(l(pe), null, {
1402
1402
  default: w(() => [
1403
- (c(!0), x(U, null, V(l(i), (n) => (c(), x(U, {
1403
+ (u(!0), x(U, null, V(l(i), (n) => (u(), x(U, {
1404
1404
  key: n.key
1405
1405
  }, [
1406
- l(J)(n, a.record) ? (c(), k(l(pt), {
1406
+ l(J)(n, a.record) ? (u(), k(l(pt), {
1407
1407
  key: 0,
1408
- disabled: p(n) || !n.confirm,
1408
+ disabled: f(n) || !n.confirm,
1409
1409
  cancelText: l(y)("webui.common.no"),
1410
1410
  okText: l(y)("webui.common.yes"),
1411
1411
  title: n.confirmText,
@@ -1414,11 +1414,11 @@ const dr = async (r, a) => {
1414
1414
  onConfirm: (m) => l(X)(n, l(e).page, l(e), a.record, !0)
1415
1415
  }, {
1416
1416
  default: w(() => [
1417
- l(J)(n, a.record) ? Q((c(), k(l(vt), {
1417
+ l(J)(n, a.record) ? Q((u(), k(l(vt), {
1418
1418
  key: n.key,
1419
1419
  type: n.type ?? "text",
1420
1420
  danger: n.danger,
1421
- disabled: p(n),
1421
+ disabled: f(n),
1422
1422
  onClick: (m) => l(X)(n, l(e).page, l(e), a.record),
1423
1423
  size: "small",
1424
1424
  style: je({
@@ -1430,30 +1430,30 @@ const dr = async (r, a) => {
1430
1430
  ]),
1431
1431
  _: 2
1432
1432
  }, 1032, ["type", "danger", "disabled", "onClick", "style"])), [
1433
- [f, { url: t.value, role: n.role, permit: n.permit }]
1434
- ]) : C("", !0)
1433
+ [v, { url: t.value, role: n.role, permit: n.permit }]
1434
+ ]) : S("", !0)
1435
1435
  ]),
1436
1436
  _: 2
1437
- }, 1032, ["disabled", "cancelText", "okText", "title", "onConfirm"])) : C("", !0)
1437
+ }, 1032, ["disabled", "cancelText", "okText", "title", "onConfirm"])) : S("", !0)
1438
1438
  ], 64))), 128)),
1439
- r.record[l(e).statusKey] == 1 ? (c(), k(l(we), {
1439
+ r.record[l(e).statusKey] == 1 ? (u(), k(l(we), {
1440
1440
  key: 0,
1441
1441
  autoInsertSpaceInButton: !1
1442
1442
  }, {
1443
1443
  default: w(() => [
1444
- l(o).length > 0 ? (c(), k(l(ft), {
1444
+ l(o).length > 0 ? (u(), k(l(ft), {
1445
1445
  key: 0,
1446
1446
  size: "small"
1447
1447
  }, {
1448
1448
  overlay: w(() => [
1449
1449
  D(l(Te), null, {
1450
1450
  default: w(() => [
1451
- (c(!0), x(U, null, V(l(o), (n) => (c(), x(U, {
1451
+ (u(!0), x(U, null, V(l(o), (n) => (u(), x(U, {
1452
1452
  key: n.key
1453
1453
  }, [
1454
- l(J)(n, a.record) ? Q((c(), k(l($e), {
1454
+ l(J)(n, a.record) ? Q((u(), k(l($e), {
1455
1455
  key: 0,
1456
- disabled: p(n),
1456
+ disabled: f(n),
1457
1457
  onClick: (m) => l(X)(n, l(e).page, l(e), a.record)
1458
1458
  }, {
1459
1459
  default: w(() => [
@@ -1461,8 +1461,8 @@ const dr = async (r, a) => {
1461
1461
  ]),
1462
1462
  _: 2
1463
1463
  }, 1032, ["disabled", "onClick"])), [
1464
- [f, { url: t.value, role: n.role, permit: n.permit }]
1465
- ]) : C("", !0)
1464
+ [v, { url: t.value, role: n.role, permit: n.permit }]
1465
+ ]) : S("", !0)
1466
1466
  ], 64))), 128))
1467
1467
  ]),
1468
1468
  _: 1
@@ -1472,10 +1472,10 @@ const dr = async (r, a) => {
1472
1472
  G(E(l(y)("webui.components.content.table.more")) + " ", 1)
1473
1473
  ]),
1474
1474
  _: 1
1475
- })) : C("", !0)
1475
+ })) : S("", !0)
1476
1476
  ]),
1477
1477
  _: 1
1478
- })) : C("", !0)
1478
+ })) : S("", !0)
1479
1479
  ]),
1480
1480
  _: 1
1481
1481
  })
@@ -1497,51 +1497,51 @@ const dr = async (r, a) => {
1497
1497
  statusDisabled: {}
1498
1498
  },
1499
1499
  setup(r) {
1500
- const a = r, e = de(), t = a.gridCtrl, s = j(() => fe.currentRoute.value.path);
1500
+ const a = r, e = ne(), t = a.gridCtrl, s = j(() => fe.currentRoute.value.path);
1501
1501
  t && (t.pageNo.value = 1, t.total.value = 0, t.pageSize.value = t.pageSize.value);
1502
- const i = T(t.pageSize.value), o = T(t.pageNo.value), p = T([]), u = T({
1502
+ const i = T(t.pageSize.value), o = T(t.pageNo.value), f = T([]), c = T({
1503
1503
  total: 0,
1504
1504
  current: 1,
1505
1505
  pageSize: i.value,
1506
- showTotal: (v) => y("webui.common.total", [v]),
1507
- onChange: (v, b) => {
1508
- u.value !== !1 && (u.value.current = v, u.value.pageSize = b), i.value = b, o.value = v, t && (t.pageNo.value = v, t.pageSize.value = b, t.remotePage && be(t));
1506
+ showTotal: (d) => y("webui.common.total", [d]),
1507
+ onChange: (d, h) => {
1508
+ c.value !== !1 && (c.value.current = d, c.value.pageSize = h), i.value = h, o.value = d, t && (t.pageNo.value = d, t.pageSize.value = h, t.remotePage && be(t));
1509
1509
  },
1510
1510
  ...a.pagination === !1 ? {} : a.pagination
1511
1511
  });
1512
- a.pagination === !1 && (u.value = !1), M(
1512
+ a.pagination === !1 && (c.value = !1), M(
1513
1513
  () => t.tableData.value,
1514
- (v) => {
1515
- v && (p.value = v, u.value !== !1 && (u.value.total = t.total.value ?? 0, u.value.current = t.pageNo.value ?? 1, u.value.pageSize = t.pageSize.value ?? 10));
1514
+ (d) => {
1515
+ d && (f.value = d, c.value !== !1 && (c.value.total = t.total.value ?? 0, c.value.current = t.pageNo.value ?? 1, c.value.pageSize = t.pageSize.value ?? 10));
1516
1516
  },
1517
1517
  { immediate: !0 }
1518
1518
  ), M(
1519
1519
  () => a.tableData,
1520
- (v) => {
1521
- v && (p.value = v, u.value !== !1 && (u.value.total = v.length, u.value.current = t.pageNo.value ?? 1, u.value.pageSize = t.pageSize.value ?? 10));
1520
+ (d) => {
1521
+ d && (f.value = d, c.value !== !1 && (c.value.total = d.length, c.value.current = t.pageNo.value ?? 1, c.value.pageSize = t.pageSize.value ?? 10));
1522
1522
  },
1523
1523
  { immediate: !0 }
1524
1524
  );
1525
- const d = T(t.columns.value), f = {
1526
- onChange: (v, b) => {
1527
- t && (t.selectKeys.value = v, t.selectRows.value = b);
1525
+ const p = T(t.columns.value), v = {
1526
+ onChange: (d, h) => {
1527
+ t && (t.selectKeys.value = d, t.selectRows.value = h);
1528
1528
  },
1529
1529
  columnWidth: "30px",
1530
- getCheckboxProps: (v) => ({
1531
- disabled: v.Enabled === 0
1530
+ getCheckboxProps: (d) => ({
1531
+ disabled: d.Enabled === 0
1532
1532
  }),
1533
1533
  ...a.rowSelection
1534
- }, n = T(f);
1534
+ }, n = T(v);
1535
1535
  M(
1536
1536
  () => t.selectable.value,
1537
- (v) => {
1538
- t && (n.value = v ? f : void 0);
1537
+ (d) => {
1538
+ t && (n.value = d ? v : void 0);
1539
1539
  },
1540
1540
  { immediate: !0 }
1541
1541
  ), M(
1542
1542
  () => t.columns.value,
1543
1543
  () => {
1544
- d.value = tt(t.columns.value);
1544
+ p.value = tt(t.columns.value);
1545
1545
  },
1546
1546
  { deep: !0, immediate: !0 }
1547
1547
  );
@@ -1549,40 +1549,40 @@ const dr = async (r, a) => {
1549
1549
  return Se(() => {
1550
1550
  m.value && t && t.autoload && (t.reload.value = !0);
1551
1551
  }), Ce(oe.GridControl, t), le(async () => {
1552
- var v, b, S, _, $;
1553
- t.page && ((v = t.gridUrl) != null && v.url) && (((b = t.gridUrl) == null ? void 0 : b.url) === ((S = t.page.urls.list) == null ? void 0 : S.url) && (t.remotePage = !1), ((_ = t.gridUrl) == null ? void 0 : _.url) === (($ = t.page.urls.find) == null ? void 0 : $.url) && (t.remotePage = !0)), t.tableData.value ? (p.value = t.tableData.value, t.total.value = p.value.length, u.value !== !1 && (u.value.total = t.total.value ?? 0)) : t.autoload !== !1 && (t.remotePage ? p.value = (await be(t)).rows : p.value = await at(t)), setTimeout(() => {
1552
+ var d, h, C, _, $;
1553
+ t.page && ((d = t.gridUrl) != null && d.url) && (((h = t.gridUrl) == null ? void 0 : h.url) === ((C = t.page.urls.list) == null ? void 0 : C.url) && (t.remotePage = !1), ((_ = t.gridUrl) == null ? void 0 : _.url) === (($ = t.page.urls.find) == null ? void 0 : $.url) && (t.remotePage = !0)), t.tableData.value ? (f.value = t.tableData.value, t.total.value = f.value.length, c.value !== !1 && (c.value.total = t.total.value ?? 0)) : t.autoload !== !1 && (t.remotePage ? f.value = (await be(t)).rows : f.value = await at(t)), setTimeout(() => {
1554
1554
  m.value = !0;
1555
1555
  }, 50);
1556
- }), (v, b) => {
1556
+ }), (d, h) => {
1557
1557
  var _, $;
1558
- const S = ne("auth");
1559
- return c(), x(U, null, [
1560
- (_ = l(t).buttons) != null && _.value.length || ($ = l(t).tools) != null && $.length ? (c(), k(Ct, {
1558
+ const C = ie("auth");
1559
+ return u(), x(U, null, [
1560
+ (_ = l(t).buttons) != null && _.value.length || ($ = l(t).tools) != null && $.length ? (u(), k(Ct, {
1561
1561
  key: 0,
1562
1562
  "grid-ctrl": l(t),
1563
1563
  "editor-ctrl": l(t).editor
1564
- }, null, 8, ["grid-ctrl", "editor-ctrl"])) : C("", !0),
1565
- m.value ? (c(), k(l(mt), N({
1564
+ }, null, 8, ["grid-ctrl", "editor-ctrl"])) : S("", !0),
1565
+ m.value ? (u(), k(l(mt), N({
1566
1566
  key: 1,
1567
1567
  class: "w-full min-h-[480px]",
1568
1568
  "row-key": a.primaryKey ?? l(t).primaryKey ?? "Id",
1569
- "data-source": p.value,
1569
+ "data-source": f.value,
1570
1570
  loading: l(t).isGridLoading.value,
1571
- columns: d.value,
1572
- pagination: u.value,
1571
+ columns: p.value,
1572
+ pagination: c.value,
1573
1573
  "row-selection": n.value,
1574
1574
  scroll: a.scroll || { x: 700 },
1575
1575
  size: l(t).tableSize.value,
1576
1576
  bordered: ""
1577
1577
  }, l(e)), {
1578
1578
  bodyCell: w((g) => {
1579
- var h, B;
1579
+ var b, B;
1580
1580
  return [
1581
- O(v.$slots, "bodyCell", {
1581
+ O(d.$slots, "bodyCell", {
1582
1582
  column: g == null ? void 0 : g.column,
1583
1583
  record: g == null ? void 0 : g.record
1584
1584
  }),
1585
- l(t) && ((h = g == null ? void 0 : g.column) == null ? void 0 : h.dataIndex) === "enabled" ? Q((c(), k(lt, {
1585
+ l(t) && ((b = g == null ? void 0 : g.column) == null ? void 0 : b.dataIndex) === "enabled" ? Q((u(), k(lt, {
1586
1586
  key: 0,
1587
1587
  checked: g.record[l(t).statusKey],
1588
1588
  "onUpdate:checked": (K) => g.record[l(t).statusKey] = K,
@@ -1595,9 +1595,9 @@ const dr = async (r, a) => {
1595
1595
  ]),
1596
1596
  loading: g == null ? void 0 : g.record.isLoading
1597
1597
  }, null, 8, ["checked", "onUpdate:checked", "disabled", "data", "onClick", "class", "loading"])), [
1598
- [S, { url: s.value, role: ["Super", "Admin"], permit: ":enabled" }, "disable"]
1599
- ]) : C("", !0),
1600
- l(t) && ((B = g == null ? void 0 : g.column) == null ? void 0 : B.dataIndex) === "operation" ? O(v.$slots, "operate", {
1598
+ [C, { url: s.value, role: ["Super", "Admin"], permit: ":enabled" }, "disable"]
1599
+ ]) : S("", !0),
1600
+ l(t) && ((B = g == null ? void 0 : g.column) == null ? void 0 : B.dataIndex) === "operation" ? O(d.$slots, "operate", {
1601
1601
  key: 1,
1602
1602
  record: g == null ? void 0 : g.record
1603
1603
  }, () => [
@@ -1605,11 +1605,11 @@ const dr = async (r, a) => {
1605
1605
  record: g == null ? void 0 : g.record,
1606
1606
  "grid-ctrl": l(t)
1607
1607
  }, null, 8, ["record", "grid-ctrl"])
1608
- ]) : C("", !0)
1608
+ ]) : S("", !0)
1609
1609
  ];
1610
1610
  }),
1611
1611
  _: 3
1612
- }, 16, ["row-key", "data-source", "loading", "columns", "pagination", "row-selection", "scroll", "size"])) : C("", !0)
1612
+ }, 16, ["row-key", "data-source", "loading", "columns", "pagination", "row-selection", "scroll", "size"])) : S("", !0)
1613
1613
  ], 64);
1614
1614
  };
1615
1615
  }
@@ -1626,9 +1626,9 @@ const dr = async (r, a) => {
1626
1626
  const a = (e, t) => {
1627
1627
  t.mode === "toggle" && (t.selected = t.selected === e.key ? void 0 : e.key), X(e), e.click && typeof e.click == "function" && e.click(e);
1628
1628
  };
1629
- return (e, t) => (c(), x("div", qa, [
1630
- (c(!0), x(U, null, V(r.groupTools, (s, i) => (c(), x(U, { key: i }, [
1631
- s.type === "tools" ? (c(), x("div", {
1629
+ return (e, t) => (u(), x("div", qa, [
1630
+ (u(!0), x(U, null, V(r.groupTools, (s, i) => (u(), x(U, { key: i }, [
1631
+ s.type === "tools" ? (u(), x("div", {
1632
1632
  key: 0,
1633
1633
  class: R([
1634
1634
  "inline-flex",
@@ -1636,18 +1636,18 @@ const dr = async (r, a) => {
1636
1636
  s.class || ""
1637
1637
  ])
1638
1638
  }, [
1639
- (c(!0), x(U, null, V(s.tools, (o, p) => {
1640
- var u, d;
1641
- return c(), x(U, {
1639
+ (u(!0), x(U, null, V(s.tools, (o, f) => {
1640
+ var c, p;
1641
+ return u(), x(U, {
1642
1642
  key: o.key
1643
1643
  }, [
1644
- l(J)(o) && !o.children && !o.component ? (c(), k(l(ee), N({
1644
+ l(J)(o) && !o.children && !o.component ? (u(), k(l(ee), N({
1645
1645
  key: 0,
1646
1646
  class: [
1647
1647
  s.mode === "toggle" && s.selected === o.key ? "px-[8px] py-[2px] relative border-[#1890ff] bg-[#1890ff] text-white rounded-none" : "px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666]",
1648
1648
  "hover:z-10 hover:border-[#666]",
1649
- p === 0 ? "rounded-l-[5px] ml-0" : "-ml-[1px]",
1650
- p === (((u = s.tools) == null ? void 0 : u.length) || 0) - 1 ? "rounded-r-[5px]" : "",
1649
+ f === 0 ? "rounded-l-[5px] ml-0" : "-ml-[1px]",
1650
+ f === (((c = s.tools) == null ? void 0 : c.length) || 0) - 1 ? "rounded-r-[5px]" : "",
1651
1651
  o.class || "",
1652
1652
  o.display === "icon" ? "px-[6px]" : "",
1653
1653
  o.display === "text" ? "px-[8px]" : ""
@@ -1657,50 +1657,50 @@ const dr = async (r, a) => {
1657
1657
  disabled: l(W)(o),
1658
1658
  tiptext: o.label
1659
1659
  }, { ref_for: !0 }, o.props, {
1660
- onClick: (f) => a(o, s)
1660
+ onClick: (v) => a(o, s)
1661
1661
  }), {
1662
1662
  default: w(() => [
1663
- o.display === "icon" && o.icon ? (c(), k(l(Y), N({
1663
+ o.display === "icon" && o.icon ? (u(), k(l(Y), N({
1664
1664
  key: 0,
1665
1665
  icon: o.icon,
1666
1666
  class: ["w-[18px] h-[18.5px]", o.iconClass]
1667
- }, { ref_for: !0 }, o.iconProps, { clickable: "" }), null, 16, ["icon", "class"])) : o.display === "text" && o.label ? (c(), x(U, { key: 1 }, [
1667
+ }, { ref_for: !0 }, o.iconProps, { clickable: "" }), null, 16, ["icon", "class"])) : o.display === "text" && o.label ? (u(), x(U, { key: 1 }, [
1668
1668
  G(E(o.label), 1)
1669
- ], 64)) : (c(), x(U, { key: 2 }, [
1670
- o.icon ? (c(), k(l(Y), N({
1669
+ ], 64)) : (u(), x(U, { key: 2 }, [
1670
+ o.icon ? (u(), k(l(Y), N({
1671
1671
  key: 0,
1672
1672
  icon: o.icon,
1673
1673
  class: ["w-[18px] h-[18.5px] mr-[4px]", o.iconClass]
1674
- }, { ref_for: !0 }, o.iconProps, { clickable: "" }), null, 16, ["icon", "class"])) : C("", !0),
1675
- o.label ? (c(), x(U, { key: 1 }, [
1674
+ }, { ref_for: !0 }, o.iconProps, { clickable: "" }), null, 16, ["icon", "class"])) : S("", !0),
1675
+ o.label ? (u(), x(U, { key: 1 }, [
1676
1676
  G(E(o.label), 1)
1677
- ], 64)) : C("", !0)
1677
+ ], 64)) : S("", !0)
1678
1678
  ], 64))
1679
1679
  ]),
1680
1680
  _: 2
1681
- }, 1040, ["class", "type", "danger", "disabled", "tiptext", "onClick"])) : o.component ? (c(), x("div", {
1681
+ }, 1040, ["class", "type", "danger", "disabled", "tiptext", "onClick"])) : o.component ? (u(), x("div", {
1682
1682
  key: 1,
1683
1683
  class: R([
1684
1684
  s.mode === "toggle" && s.selected === o.key ? "p-0 relative border-[#1890ff] bg-[#1890ff] text-white rounded-none flex justify-center items-center" : "p-0 relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] flex justify-center items-center",
1685
1685
  "hover:z-10 hover:border-[#666]",
1686
- p === 0 ? "rounded-l-[5px] ml-0" : "-ml-[1px]",
1687
- p === (((d = s.tools) == null ? void 0 : d.length) || 0) - 1 ? "rounded-r-[5px]" : "",
1686
+ f === 0 ? "rounded-l-[5px] ml-0" : "-ml-[1px]",
1687
+ f === (((p = s.tools) == null ? void 0 : p.length) || 0) - 1 ? "rounded-r-[5px]" : "",
1688
1688
  o.class || "",
1689
1689
  l(W)(o) ? "opacity-50 cursor-not-allowed" : "cursor-pointer"
1690
1690
  ]),
1691
- onClick: (f) => !l(W)(o) && a(o, s)
1691
+ onClick: (v) => !l(W)(o) && a(o, s)
1692
1692
  }, [
1693
- (c(), k(nt(o.component), N({ ref_for: !0 }, {
1693
+ (u(), k(nt(o.component), N({ ref_for: !0 }, {
1694
1694
  ...o.props,
1695
1695
  disabled: l(W)(o)
1696
1696
  }), null, 16))
1697
- ], 10, Qa)) : C("", !0)
1697
+ ], 10, Qa)) : S("", !0)
1698
1698
  ], 64);
1699
1699
  }), 128))
1700
- ], 2)) : s.type === "split" ? (c(), x("div", Ja)) : s.type === "space" ? (c(), x("div", {
1700
+ ], 2)) : s.type === "split" ? (u(), x("div", Ja)) : s.type === "space" ? (u(), x("div", {
1701
1701
  key: 2,
1702
1702
  class: R(s.width ? s.width : "flex-1")
1703
- }, null, 2)) : C("", !0)
1703
+ }, null, 2)) : S("", !0)
1704
1704
  ], 64))), 128))
1705
1705
  ]));
1706
1706
  }
@@ -1713,13 +1713,13 @@ const dr = async (r, a) => {
1713
1713
  },
1714
1714
  emits: ["select", "update:selectedKeys"],
1715
1715
  setup(r, { emit: a }) {
1716
- const e = r, t = de(), s = e.treeCtrl, i = T([]);
1716
+ const e = r, t = ne(), s = e.treeCtrl, i = T([]);
1717
1717
  M(
1718
1718
  () => s.data.value,
1719
- (f) => {
1720
- if (f) {
1721
- i.value = s.fieldMap ? xe(s.fieldMap, f) : f;
1722
- const n = Et(i.value, p.value[0]);
1719
+ (v) => {
1720
+ if (v) {
1721
+ i.value = s.fieldMap ? xe(s.fieldMap, v) : v;
1722
+ const n = Et(i.value, f.value[0]);
1723
1723
  if (n) {
1724
1724
  const m = {
1725
1725
  event: "select",
@@ -1733,29 +1733,29 @@ const dr = async (r, a) => {
1733
1733
  selected: !0,
1734
1734
  selectedNodes: [n]
1735
1735
  };
1736
- d(p.value, m);
1736
+ p(f.value, m);
1737
1737
  }
1738
1738
  }
1739
1739
  }
1740
1740
  );
1741
- const o = a, p = T([]);
1741
+ const o = a, f = T([]);
1742
1742
  M(
1743
1743
  () => e.selectedKeys,
1744
- (f) => {
1745
- f && (p.value = f);
1744
+ (v) => {
1745
+ v && (f.value = v);
1746
1746
  },
1747
1747
  { immediate: !0 }
1748
1748
  );
1749
- const u = T(["-"]);
1749
+ const c = T(["-"]);
1750
1750
  M(
1751
1751
  () => e.expandedKeys,
1752
- (f) => {
1753
- f && (u.value = f);
1752
+ (v) => {
1753
+ v && (c.value = v);
1754
1754
  },
1755
1755
  { immediate: !0 }
1756
1756
  );
1757
- const d = (f, n) => {
1758
- f.length === 0 && f.push(...p.value), f.length > 0 && (s.node.value = n == null ? void 0 : n.node.dataRef), p.value = f, o("update:selectedKeys", f), o("select", f, n);
1757
+ const p = (v, n) => {
1758
+ v.length === 0 && v.push(...f.value), v.length > 0 && (s.node.value = n == null ? void 0 : n.node.dataRef), f.value = v, o("update:selectedKeys", v), o("select", v, n);
1759
1759
  };
1760
1760
  return le(() => {
1761
1761
  s.fieldMap || (s.fieldMap = {
@@ -1764,25 +1764,25 @@ const dr = async (r, a) => {
1764
1764
  value: "Id",
1765
1765
  icon: "Icon"
1766
1766
  }), s.data.value ? i.value = xe(s.fieldMap, s.data.value) : s.autoload && ot(s);
1767
- }), (f, n) => (c(), k(l(ra), N({
1767
+ }), (v, n) => (u(), k(l(ra), N({
1768
1768
  class: "w-full",
1769
1769
  "show-line": !0,
1770
1770
  "tree-data": i.value,
1771
- "expanded-keys": u.value,
1772
- "onUpdate:expandedKeys": n[0] || (n[0] = (m) => u.value = m),
1773
- "selected-keys": p.value,
1771
+ "expanded-keys": c.value,
1772
+ "onUpdate:expandedKeys": n[0] || (n[0] = (m) => c.value = m),
1773
+ "selected-keys": f.value,
1774
1774
  loading: l(s).isTreeLoading,
1775
- onSelect: d
1775
+ onSelect: p
1776
1776
  }, l(t)), {
1777
- title: w(({ key: m, label: v, icon: b }) => [
1778
- O(f.$slots, "title", {
1779
- label: v,
1777
+ title: w(({ key: m, label: d, icon: h }) => [
1778
+ O(v.$slots, "title", {
1779
+ label: d,
1780
1780
  key: m,
1781
- icon: b
1781
+ icon: h
1782
1782
  }, () => [
1783
1783
  I("div", Xa, [
1784
- D(l(Y), { icon: b }, null, 8, ["icon"]),
1785
- I("span", Za, E(v), 1)
1784
+ D(l(Y), { icon: h }, null, 8, ["icon"]),
1785
+ I("span", Za, E(d), 1)
1786
1786
  ])
1787
1787
  ])
1788
1788
  ]),
@@ -1847,14 +1847,14 @@ const dr = async (r, a) => {
1847
1847
  return i.value;
1848
1848
  const _ = e.value.toLowerCase(), $ = i.value.map((g) => ({
1849
1849
  ...g,
1850
- tools: g.tools.filter((h) => {
1850
+ tools: g.tools.filter((b) => {
1851
1851
  var A, z;
1852
- const B = (A = h.label) == null ? void 0 : A.toLowerCase().includes(_), K = (z = h.description) == null ? void 0 : z.toLowerCase().includes(_);
1852
+ const B = (A = b.label) == null ? void 0 : A.toLowerCase().includes(_), K = (z = b.description) == null ? void 0 : z.toLowerCase().includes(_);
1853
1853
  return B || K;
1854
1854
  })
1855
1855
  })).filter((g) => g.tools.length > 0);
1856
1856
  if (e.value.trim() && $.length > 0) {
1857
- const g = $.flatMap((h) => h.tools);
1857
+ const g = $.flatMap((b) => b.tools);
1858
1858
  return [{
1859
1859
  id: "search-results",
1860
1860
  name: y("webui.components.content.toolpanel.searchResult"),
@@ -1862,7 +1862,7 @@ const dr = async (r, a) => {
1862
1862
  }];
1863
1863
  }
1864
1864
  return $;
1865
- }), p = j(() => a.collapsed ? a.width.collapsed : a.width.expanded), u = j(() => a.showModeToggle ? [{
1865
+ }), f = j(() => a.collapsed ? a.width.collapsed : a.width.expanded), c = j(() => a.showModeToggle ? [{
1866
1866
  type: "tools",
1867
1867
  mode: "toggle",
1868
1868
  selected: a.mode,
@@ -1890,7 +1890,7 @@ const dr = async (r, a) => {
1890
1890
  }
1891
1891
  }
1892
1892
  ]
1893
- }] : []), d = j(() => [{
1893
+ }] : []), p = j(() => [{
1894
1894
  type: "tools",
1895
1895
  mode: "normal",
1896
1896
  tools: [
@@ -1907,7 +1907,7 @@ const dr = async (r, a) => {
1907
1907
  }
1908
1908
  }
1909
1909
  ]
1910
- }]), f = (_) => t.value[_] ?? !1, n = (_) => {
1910
+ }]), v = (_) => t.value[_] ?? !1, n = (_) => {
1911
1911
  if (!a.allowGroupCollapse) return;
1912
1912
  const $ = !t.value[_];
1913
1913
  t.value = {
@@ -1917,168 +1917,168 @@ const dr = async (r, a) => {
1917
1917
  }, m = (_, $) => {
1918
1918
  var g;
1919
1919
  W(_) || (X(_), (g = a.onToolClick) == null || g.call(a, _, $));
1920
- }, v = (_) => {
1920
+ }, d = (_) => {
1921
1921
  var $;
1922
1922
  e.value = _, ($ = a.onSearch) == null || $.call(a, _);
1923
- }, b = (_, $) => {
1924
- var g, h;
1925
- (h = (g = a.dragConfig) == null ? void 0 : g.onDragStart) == null || h.call(g, _, $);
1926
- }, S = (_) => {
1923
+ }, h = (_, $) => {
1924
+ var g, b;
1925
+ (b = (g = a.dragConfig) == null ? void 0 : g.onDragStart) == null || b.call(g, _, $);
1926
+ }, C = (_) => {
1927
1927
  var $, g;
1928
1928
  (g = ($ = a.dragConfig) == null ? void 0 : $.onDragEnd) == null || g.call($, _);
1929
1929
  };
1930
- return (_, $) => (c(), x("div", el, [
1930
+ return (_, $) => (u(), x("div", el, [
1931
1931
  I("div", {
1932
- class: R(["h-full bg-white border-r border-gray-200 transition-all duration-300 ease-in-out shadow-sm", p.value])
1932
+ class: R(["h-full bg-white border-r border-gray-200 transition-all duration-300 ease-in-out shadow-sm", f.value])
1933
1933
  }, [
1934
- a.collapsed ? (c(), x("div", gl, [
1934
+ a.collapsed ? (u(), x("div", gl, [
1935
1935
  I("div", hl, [
1936
1936
  D(Me, {
1937
- "group-tools": d.value
1937
+ "group-tools": p.value
1938
1938
  }, null, 8, ["group-tools"])
1939
1939
  ]),
1940
1940
  I("div", bl, [
1941
- (c(!0), x(U, null, V(o.value, (g) => (c(), x("div", {
1941
+ (u(!0), x(U, null, V(o.value, (g) => (u(), x("div", {
1942
1942
  key: g.id,
1943
1943
  class: "flex flex-col items-center gap-2"
1944
1944
  }, [
1945
- (c(!0), x(U, null, V(g.tools, (h) => {
1945
+ (u(!0), x(U, null, V(g.tools, (b) => {
1946
1946
  var B, K;
1947
- return Q((c(), x("div", N({
1948
- key: h.key,
1949
- title: `${h.label}${h.description ? ": " + h.description : ""}`,
1947
+ return Q((u(), x("div", N({
1948
+ key: b.key,
1949
+ title: `${b.label}${b.description ? ": " + b.description : ""}`,
1950
1950
  class: ["w-12 h-12 flex items-center justify-center bg-gray-50 border border-gray-400 rounded-lg shadow-sm hover:border-blue-500 hover:shadow-md hover:bg-blue-50 transition-all duration-200 cursor-move group", [
1951
- l(W)(h) ? "opacity-50 cursor-not-allowed bg-gray-200" : "hover:scale-110",
1952
- h.class || "",
1951
+ l(W)(b) ? "opacity-50 cursor-not-allowed bg-gray-200" : "hover:scale-110",
1952
+ b.class || "",
1953
1953
  (B = r.dragConfig) != null && B.draggable ? "cursor-move" : ""
1954
1954
  ]],
1955
1955
  draggable: (K = r.dragConfig) == null ? void 0 : K.draggable,
1956
- onClick: (A) => h.click ? h.click(h, A) : m(h, A),
1957
- onDragstart: (A) => b(A, h),
1958
- onDragend: $[5] || ($[5] = (A) => S(A))
1956
+ onClick: (A) => b.click ? b.click(b, A) : m(b, A),
1957
+ onDragstart: (A) => h(A, b),
1958
+ onDragend: $[5] || ($[5] = (A) => C(A))
1959
1959
  }, { ref_for: !0 }, r.dragConfig), [
1960
- h.icon ? (c(), k(l(Y), N({
1960
+ b.icon ? (u(), k(l(Y), N({
1961
1961
  key: 0,
1962
- icon: h.icon,
1963
- class: ["w-7 h-7 text-blue-600 group-hover:text-blue-700 transition-colors", h.iconClass]
1964
- }, { ref_for: !0 }, h.iconProps), null, 16, ["icon", "class"])) : C("", !0)
1962
+ icon: b.icon,
1963
+ class: ["w-7 h-7 text-blue-600 group-hover:text-blue-700 transition-colors", b.iconClass]
1964
+ }, { ref_for: !0 }, b.iconProps), null, 16, ["icon", "class"])) : S("", !0)
1965
1965
  ], 16, xl)), [
1966
- [Ee, l(J)(h)]
1966
+ [Ee, l(J)(b)]
1967
1967
  ]);
1968
1968
  }), 128))
1969
1969
  ]))), 128))
1970
1970
  ])
1971
- ])) : (c(), x("div", tl, [
1971
+ ])) : (u(), x("div", tl, [
1972
1972
  I("div", al, [
1973
- r.showModeToggle ? (c(), k(Me, {
1973
+ r.showModeToggle ? (u(), k(Me, {
1974
1974
  key: 0,
1975
- "group-tools": u.value
1976
- }, null, 8, ["group-tools"])) : C("", !0),
1975
+ "group-tools": c.value
1976
+ }, null, 8, ["group-tools"])) : S("", !0),
1977
1977
  D(Me, {
1978
- "group-tools": d.value
1978
+ "group-tools": p.value
1979
1979
  }, null, 8, ["group-tools"])
1980
1980
  ]),
1981
- r.showSearch ? (c(), x("div", ll, [
1981
+ r.showSearch ? (u(), x("div", ll, [
1982
1982
  D(l(St), {
1983
1983
  value: e.value,
1984
1984
  "onUpdate:value": [
1985
1985
  $[0] || ($[0] = (g) => e.value = g),
1986
- $[1] || ($[1] = (g) => v(g))
1986
+ $[1] || ($[1] = (g) => d(g))
1987
1987
  ],
1988
1988
  placeholder: l(y)("webui.components.content.toolpanel.searchPlaceholder"),
1989
1989
  "allow-clear": "",
1990
1990
  size: "small",
1991
1991
  class: "w-full",
1992
- onPressEnter: $[2] || ($[2] = (g) => v(g.target.value))
1992
+ onPressEnter: $[2] || ($[2] = (g) => d(g.target.value))
1993
1993
  }, null, 8, ["value", "placeholder"])
1994
- ])) : C("", !0),
1994
+ ])) : S("", !0),
1995
1995
  I("div", rl, [
1996
- (c(!0), x(U, null, V(o.value, (g) => (c(), x("div", {
1996
+ (u(!0), x(U, null, V(o.value, (g) => (u(), x("div", {
1997
1997
  key: g.id,
1998
1998
  class: "mb-4 last:mb-0"
1999
1999
  }, [
2000
- r.allowGroupCollapse && g.id !== "search-results" && g.id !== "default-group" ? (c(), x("div", {
2000
+ r.allowGroupCollapse && g.id !== "search-results" && g.id !== "default-group" ? (u(), x("div", {
2001
2001
  key: 0,
2002
2002
  class: "flex items-center justify-between text-xs font-semibold text-gray-700 mb-2 px-3 py-2 bg-gradient-to-r from-gray-50 to-gray-100 rounded-lg cursor-pointer hover:from-gray-100 hover:to-gray-200 transition-all",
2003
- onClick: (h) => n(g.id)
2003
+ onClick: (b) => n(g.id)
2004
2004
  }, [
2005
2005
  I("span", null, E(g.name), 1),
2006
2006
  D(l(Y), {
2007
- icon: f(g.id) ? "icon-chevron-right" : "icon-chevron-down",
2007
+ icon: v(g.id) ? "icon-chevron-right" : "icon-chevron-down",
2008
2008
  class: "w-3.5 h-3.5 transition-transform duration-200"
2009
2009
  }, null, 8, ["icon"])
2010
- ], 8, ol)) : g.id !== "search-results" && g.id !== "default-group" ? (c(), x("h3", sl, E(g.name), 1)) : C("", !0),
2011
- !f(g.id) || g.id === "search-results" || g.id === "default-group" ? (c(), x("div", nl, [
2012
- a.mode === "grid" ? (c(), x("div", il, [
2013
- (c(!0), x(U, null, V(g.tools, (h) => {
2010
+ ], 8, ol)) : g.id !== "search-results" && g.id !== "default-group" ? (u(), x("h3", sl, E(g.name), 1)) : S("", !0),
2011
+ !v(g.id) || g.id === "search-results" || g.id === "default-group" ? (u(), x("div", nl, [
2012
+ a.mode === "grid" ? (u(), x("div", il, [
2013
+ (u(!0), x(U, null, V(g.tools, (b) => {
2014
2014
  var B, K, A;
2015
- return Q((c(), x("div", N({
2016
- key: h.key,
2017
- title: `${h.label}${h.description ? ": " + h.description : ""}`,
2015
+ return Q((u(), x("div", N({
2016
+ key: b.key,
2017
+ title: `${b.label}${b.description ? ": " + b.description : ""}`,
2018
2018
  class: ["aspect-square flex flex-col items-center justify-center p-1.5 bg-gray-50 border border-solid border-gray-200 rounded-lg shadow-sm hover:border-blue-300 hover:shadow-lg hover:bg-blue-50 transition-all duration-200 cursor-move group", [
2019
- l(W)(h) ? "opacity-50 cursor-not-allowed bg-gray-200" : "hover:scale-105",
2020
- h.class || "",
2019
+ l(W)(b) ? "opacity-50 cursor-not-allowed bg-gray-200" : "hover:scale-105",
2020
+ b.class || "",
2021
2021
  (B = r.dragConfig) != null && B.draggable ? "cursor-move" : ""
2022
2022
  ]],
2023
2023
  draggable: (K = r.dragConfig) == null ? void 0 : K.draggable,
2024
- onClick: (z) => h.click ? h.click(h, z) : m(h, z),
2025
- onDragstart: (z) => b(z, h),
2026
- onDragend: $[3] || ($[3] = (z) => S(z))
2024
+ onClick: (z) => b.click ? b.click(b, z) : m(b, z),
2025
+ onDragstart: (z) => h(z, b),
2026
+ onDragend: $[3] || ($[3] = (z) => C(z))
2027
2027
  }, { ref_for: !0 }, r.dragConfig), [
2028
- h.icon ? (c(), k(l(Y), N({
2028
+ b.icon ? (u(), k(l(Y), N({
2029
2029
  key: 0,
2030
- icon: h.icon,
2030
+ icon: b.icon,
2031
2031
  class: ["w-9 h-9 mb-1 text-blue-600 group-hover:text-blue-700 transition-colors flex-shrink-0 !cursor-move", [
2032
- h.iconClass,
2032
+ b.iconClass,
2033
2033
  (A = r.dragConfig) != null && A.draggable ? "cursor-move" : ""
2034
2034
  ]]
2035
- }, { ref_for: !0 }, h.iconProps), null, 16, ["icon", "class"])) : C("", !0),
2036
- I("span", ul, E(h.label), 1)
2035
+ }, { ref_for: !0 }, b.iconProps), null, 16, ["icon", "class"])) : S("", !0),
2036
+ I("span", ul, E(b.label), 1)
2037
2037
  ], 16, cl)), [
2038
- [Ee, l(J)(h)]
2038
+ [Ee, l(J)(b)]
2039
2039
  ]);
2040
2040
  }), 128))
2041
- ])) : (c(), x("div", dl, [
2042
- (c(!0), x(U, null, V(g.tools, (h) => {
2041
+ ])) : (u(), x("div", dl, [
2042
+ (u(!0), x(U, null, V(g.tools, (b) => {
2043
2043
  var B, K, A;
2044
- return Q((c(), x("div", N({
2045
- key: h.key,
2046
- title: `${h.label}${h.description ? ": " + h.description : ""}`,
2044
+ return Q((u(), x("div", N({
2045
+ key: b.key,
2046
+ title: `${b.label}${b.description ? ": " + b.description : ""}`,
2047
2047
  class: ["flex items-center px-2.5 py-2 bg-gray-50 border border-gray-200 border-solid rounded-lg shadow-sm hover:border-blue-500 hover:shadow-md hover:bg-blue-50 transition-all duration-200 group", [
2048
- l(W)(h) ? "opacity-50 cursor-not-allowed bg-gray-200" : "hover:scale-[1.02]",
2049
- h.class || "",
2048
+ l(W)(b) ? "opacity-50 cursor-not-allowed bg-gray-200" : "hover:scale-[1.02]",
2049
+ b.class || "",
2050
2050
  (B = r.dragConfig) != null && B.draggable ? "cursor-move" : ""
2051
2051
  ]],
2052
2052
  draggable: (K = r.dragConfig) == null ? void 0 : K.draggable,
2053
- onClick: (z) => h.click ? h.click(h, z) : m(h, z),
2054
- onDragstart: (z) => b(z, h),
2055
- onDragend: $[4] || ($[4] = (z) => S(z))
2053
+ onClick: (z) => b.click ? b.click(b, z) : m(b, z),
2054
+ onDragstart: (z) => h(z, b),
2055
+ onDragend: $[4] || ($[4] = (z) => C(z))
2056
2056
  }, { ref_for: !0 }, r.dragConfig), [
2057
- h.icon ? (c(), k(l(Y), N({
2057
+ b.icon ? (u(), k(l(Y), N({
2058
2058
  key: 0,
2059
- icon: h.icon,
2059
+ icon: b.icon,
2060
2060
  class: ["w-7 h-7 mr-2.5 flex-shrink-0 text-blue-600 group-hover:text-blue-700 transition-colors", [
2061
- h.iconClass,
2061
+ b.iconClass,
2062
2062
  (A = r.dragConfig) != null && A.draggable ? "!cursor-move" : ""
2063
2063
  ]]
2064
- }, { ref_for: !0 }, h.iconProps), null, 16, ["icon", "class"])) : C("", !0),
2064
+ }, { ref_for: !0 }, b.iconProps), null, 16, ["icon", "class"])) : S("", !0),
2065
2065
  I("div", fl, [
2066
- I("div", vl, E(h.label), 1),
2067
- h.description ? (c(), x("div", ml, E(h.description), 1)) : C("", !0)
2066
+ I("div", vl, E(b.label), 1),
2067
+ b.description ? (u(), x("div", ml, E(b.description), 1)) : S("", !0)
2068
2068
  ])
2069
2069
  ], 16, pl)), [
2070
- [Ee, l(J)(h)]
2070
+ [Ee, l(J)(b)]
2071
2071
  ]);
2072
2072
  }), 128))
2073
2073
  ]))
2074
- ])) : C("", !0)
2074
+ ])) : S("", !0)
2075
2075
  ]))), 128))
2076
2076
  ])
2077
2077
  ]))
2078
2078
  ], 2)
2079
2079
  ]));
2080
2080
  }
2081
- }), Sr = /* @__PURE__ */ ie(Lt, [["__scopeId", "data-v-87722b44"]]), yl = { class: "relative w-[248px] max-w-[248px]" }, wl = {
2081
+ }), Sr = /* @__PURE__ */ ce(Lt, [["__scopeId", "data-v-87722b44"]]), yl = { class: "relative w-[248px] max-w-[248px]" }, wl = {
2082
2082
  key: 0,
2083
2083
  class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
2084
2084
  }, kl = /* @__PURE__ */ L({
@@ -2087,45 +2087,45 @@ const dr = async (r, a) => {
2087
2087
  props: Ut,
2088
2088
  emits: ["change", "update:labels", "update:value"],
2089
2089
  setup(r, { emit: a }) {
2090
- var S, _, $;
2091
- const e = r, t = de(), s = te(), i = Mt(e.url, e), o = e.optionCtrl ?? i.optionCtrl;
2090
+ var C, _, $;
2091
+ const e = r, t = ne(), s = te(), i = Mt(e.url, e), o = e.optionCtrl ?? i.optionCtrl;
2092
2092
  o.inputFactory = qt(s);
2093
- const p = T({
2093
+ const f = T({
2094
2094
  ...o == null ? void 0 : o.url,
2095
- url: ((S = o == null ? void 0 : o.url) == null ? void 0 : S.url) || "",
2095
+ url: ((C = o == null ? void 0 : o.url) == null ? void 0 : C.url) || "",
2096
2096
  fieldMap: (o == null ? void 0 : o.fieldMap) || ((_ = o == null ? void 0 : o.url) == null ? void 0 : _.fieldMap),
2097
2097
  params: (o == null ? void 0 : o.params) || (($ = o == null ? void 0 : o.url) == null ? void 0 : $.params),
2098
2098
  loadingText: !1
2099
- }), { editorCtrl: u, errInfo: d, labelText: f } = s, n = T(t.placeholder);
2099
+ }), { editorCtrl: c, errInfo: p, labelText: v } = s, n = T(t.placeholder);
2100
2100
  M(
2101
- () => p.value.loading,
2101
+ () => f.value.loading,
2102
2102
  (g) => {
2103
- g ? n.value = "" : n.value || (n.value = y("webui.components.form.cascader.pleaseSelect", [f.value]));
2103
+ g ? n.value = "" : n.value || (n.value = y("webui.components.form.cascader.pleaseSelect", [v.value]));
2104
2104
  },
2105
2105
  { immediate: !0 }
2106
2106
  );
2107
2107
  const m = a;
2108
2108
  s.inputEmit = m;
2109
- const v = T((o == null ? void 0 : o.options.value) || []);
2109
+ const d = T((o == null ? void 0 : o.options.value) || []);
2110
2110
  o && M(
2111
2111
  () => o.options.value,
2112
2112
  (g) => {
2113
- v.value = g || [];
2113
+ d.value = g || [];
2114
2114
  },
2115
2115
  { immediate: !0, deep: !0 }
2116
2116
  );
2117
- const b = (g, h) => {
2118
- if (!h || h.length === 0) {
2117
+ const h = (g, b) => {
2118
+ if (!b || b.length === 0) {
2119
2119
  m("update:labels", []), m("update:value", []);
2120
2120
  return;
2121
2121
  }
2122
- const B = h.map((z) => z.value), K = At(o, e, B), A = zt(K);
2123
- m("update:labels", A), m("update:value", B), d != null && d.value.errClass && u && se(u);
2122
+ const B = b.map((z) => z.value), K = At(o, e, B), A = zt(K);
2123
+ m("update:labels", A), m("update:value", B), p != null && p.value.errClass && c && se(c);
2124
2124
  };
2125
2125
  return Se(() => {
2126
2126
  o && o.autoload && (o.reload.value = !0);
2127
2127
  }), le(() => {
2128
- p.value && !p.value.fieldMap && (p.value.fieldMap = {
2128
+ f.value && !f.value.fieldMap && (f.value.fieldMap = {
2129
2129
  title: "Name",
2130
2130
  label: "Name",
2131
2131
  value: "Id",
@@ -2133,24 +2133,24 @@ const dr = async (r, a) => {
2133
2133
  }), o && Nt(o.autoload, o, e);
2134
2134
  }), Qt(() => {
2135
2135
  o && Rt(o, e);
2136
- }), (g, h) => {
2136
+ }), (g, b) => {
2137
2137
  var B;
2138
- return c(), x("div", yl, [
2139
- v.value.length ? C("", !0) : (c(), x("div", wl, [
2138
+ return u(), x("div", yl, [
2139
+ d.value.length ? S("", !0) : (u(), x("div", wl, [
2140
2140
  D(l(Bt), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
2141
2141
  I("span", null, E(l(y)("webui.components.form.cascader.loading")), 1)
2142
2142
  ])),
2143
2143
  D(l(oa), N({
2144
- options: v.value,
2145
- class: [(B = l(d)) == null ? void 0 : B.errClass],
2144
+ options: d.value,
2145
+ class: [(B = l(p)) == null ? void 0 : B.errClass],
2146
2146
  "allow-clear": !0,
2147
- placeholder: v.value.length > 0 ? l(y)("webui.components.form.cascader.pleaseSelect", [l(f)]) : "",
2148
- onChange: b
2147
+ placeholder: d.value.length > 0 ? l(y)("webui.components.form.cascader.pleaseSelect", [l(v)]) : "",
2148
+ onChange: h
2149
2149
  }, l(t)), null, 16, ["options", "class", "placeholder"])
2150
2150
  ]);
2151
2151
  };
2152
2152
  }
2153
- }), Tr = /* @__PURE__ */ ie(kl, [["__scopeId", "data-v-9293618e"]]), $r = /* @__PURE__ */ ie(Ot, [["__scopeId", "data-v-b16e9e97"]]);
2153
+ }), Tr = /* @__PURE__ */ ce(kl, [["__scopeId", "data-v-9293618e"]]), $r = /* @__PURE__ */ ce(Ot, [["__scopeId", "data-v-b16e9e97"]]);
2154
2154
  function _e() {
2155
2155
  return _e = Object.assign ? Object.assign.bind() : function(r) {
2156
2156
  for (var a = 1; a < arguments.length; a++) {
@@ -2215,10 +2215,10 @@ const Dr = /* @__PURE__ */ L({
2215
2215
  const a = r, { editorCtrl: e, labelText: t, errInfo: s } = te(), i = () => {
2216
2216
  s != null && s.value.errClass && e && se(e);
2217
2217
  }, o = T(a.valueFormat ?? "YYYY-MM-DD");
2218
- return (p, u) => {
2219
- var d;
2220
- return c(), k(l(sa), {
2221
- class: R(["w-full", [((d = l(s)) == null ? void 0 : d.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
2218
+ return (f, c) => {
2219
+ var p;
2220
+ return u(), k(l(sa), {
2221
+ class: R(["w-full", [((p = l(s)) == null ? void 0 : p.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
2222
2222
  placeholder: l(y)("webui.components.form.datePicker.pleaseSelect", [l(t)]),
2223
2223
  locale: l(Fe),
2224
2224
  valueFormat: o.value,
@@ -2232,57 +2232,60 @@ const Dr = /* @__PURE__ */ L({
2232
2232
  value: {},
2233
2233
  undefValue: { type: Boolean, default: !1 }
2234
2234
  },
2235
- emits: ["update:value"],
2235
+ emits: ["update:value", "blur", "change"],
2236
2236
  setup(r, { emit: a }) {
2237
- const { t: e } = ue(), { editorCtrl: t, labelText: s, errInfo: i } = te(), o = () => {
2238
- i != null && i.value.errClass && t && se(t);
2239
- }, p = r, u = p.value === void 0 ? !0 : p.undefValue, d = a, f = T(p.value);
2237
+ const { t: e } = de(), { editorCtrl: t, labelText: s, errInfo: i } = te(), o = r, f = o.value === void 0 ? !0 : o.undefValue, c = a, p = j(() => {
2238
+ const { onBlur: d, onChange: h, ...C } = ne();
2239
+ return C;
2240
+ }), v = (d) => {
2241
+ i != null && i.value.errClass && t && se(t), c("blur", d);
2242
+ }, n = T(o.value);
2240
2243
  M(
2241
- () => p.value,
2242
- (m) => {
2243
- f.value = m;
2244
+ () => o.value,
2245
+ (d) => {
2246
+ n.value = d;
2244
2247
  },
2245
2248
  { immediate: !0 }
2246
2249
  // 立即同步初始值
2247
2250
  ), M(
2248
- () => f.value,
2249
- (m) => {
2250
- if (f.value === "") {
2251
- d("update:value", void 0);
2251
+ () => n.value,
2252
+ (d) => {
2253
+ if (n.value === "") {
2254
+ c("update:value", void 0);
2252
2255
  return;
2253
2256
  }
2254
- d("update:value", m);
2257
+ c("update:value", d);
2255
2258
  }
2256
2259
  );
2257
- const n = () => {
2258
- f.value === "" && (f.value = u ? void 0 : null);
2260
+ const m = (d) => {
2261
+ n.value === "" && (n.value = f ? void 0 : null), c("change", d);
2259
2262
  };
2260
- return (m, v) => {
2261
- var b, S;
2262
- return c(), k(l(me), N({
2263
+ return (d, h) => {
2264
+ var C, _;
2265
+ return u(), k(l(me), N({
2263
2266
  class: [
2264
- (b = l(i)) == null ? void 0 : b.errClass,
2265
- ((S = l(i)) == null ? void 0 : S.errClass) === "error" && !m.$slots.addonBefore && !m.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
2267
+ (C = l(i)) == null ? void 0 : C.errClass,
2268
+ ((_ = l(i)) == null ? void 0 : _.errClass) === "error" && !d.$slots.addonBefore && !d.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
2266
2269
  ],
2267
- value: f.value,
2268
- "onUpdate:value": v[0] || (v[0] = (_) => f.value = _),
2270
+ value: n.value,
2271
+ "onUpdate:value": h[0] || (h[0] = ($) => n.value = $),
2269
2272
  autocomplete: "new-password",
2270
2273
  "allow-clear": !0,
2271
2274
  placeholder: l(e)("webui.common.placeholder", [l(s)]),
2272
- onBlur: o,
2273
- onChange: n
2274
- }, m.$attrs), it({ _: 2 }, [
2275
- m.$slots.addonBefore ? {
2275
+ onBlur: v,
2276
+ onChange: m
2277
+ }, p.value), it({ _: 2 }, [
2278
+ d.$slots.addonBefore ? {
2276
2279
  name: "addonBefore",
2277
2280
  fn: w(() => [
2278
- O(m.$slots, "addonBefore")
2281
+ O(d.$slots, "addonBefore")
2279
2282
  ]),
2280
2283
  key: "0"
2281
2284
  } : void 0,
2282
- m.$slots.addonAfter ? {
2285
+ d.$slots.addonAfter ? {
2283
2286
  name: "addonAfter",
2284
2287
  fn: w(() => [
2285
- O(m.$slots, "addonAfter")
2288
+ O(d.$slots, "addonAfter")
2286
2289
  ]),
2287
2290
  key: "1"
2288
2291
  } : void 0
@@ -2308,9 +2311,9 @@ const Dr = /* @__PURE__ */ L({
2308
2311
  (i) => {
2309
2312
  t("update:value", i);
2310
2313
  }
2311
- ), (i, o) => (c(), k(St, N({
2314
+ ), (i, o) => (u(), k(St, N({
2312
2315
  value: s.value,
2313
- "onUpdate:value": o[0] || (o[0] = (p) => s.value = p)
2316
+ "onUpdate:value": o[0] || (o[0] = (f) => s.value = f)
2314
2317
  }, i.$attrs), {
2315
2318
  addonBefore: w(() => [
2316
2319
  D(l(Y), {
@@ -2321,16 +2324,16 @@ const Dr = /* @__PURE__ */ L({
2321
2324
  _: 1
2322
2325
  }, 16, ["value"]));
2323
2326
  }
2324
- }), Fr = /* @__PURE__ */ ie(Sl, [["__scopeId", "data-v-358b82ef"]]), Pr = /* @__PURE__ */ L({
2327
+ }), Fr = /* @__PURE__ */ ce(Sl, [["__scopeId", "data-v-358b82ef"]]), Pr = /* @__PURE__ */ L({
2325
2328
  __name: "inputPassword",
2326
2329
  setup(r) {
2327
- const { editorCtrl: a, labelText: e, errInfo: t } = te(), { t: s } = ue(), i = () => {
2330
+ const { editorCtrl: a, labelText: e, errInfo: t } = te(), { t: s } = de(), i = () => {
2328
2331
  t != null && t.value.errClass && a && se(a);
2329
2332
  };
2330
- return (o, p) => {
2331
- var u;
2332
- return c(), k(l(na), N({
2333
- class: ((u = l(t)) == null ? void 0 : u.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
2333
+ return (o, f) => {
2334
+ var c;
2335
+ return u(), k(l(na), N({
2336
+ class: ((c = l(t)) == null ? void 0 : c.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
2334
2337
  "allow-clear": !0,
2335
2338
  autocomplete: "new-password",
2336
2339
  placeholder: l(s)("webui.common.placeholder", [l(e)]),
@@ -2341,13 +2344,13 @@ const Dr = /* @__PURE__ */ L({
2341
2344
  }), Ir = /* @__PURE__ */ L({
2342
2345
  __name: "inputNumber",
2343
2346
  setup(r) {
2344
- const { editorCtrl: a, labelText: e, errInfo: t } = te(), { t: s } = ue(), i = () => {
2347
+ const { editorCtrl: a, labelText: e, errInfo: t } = te(), { t: s } = de(), i = () => {
2345
2348
  t != null && t.value.errClass && a && se(a);
2346
2349
  };
2347
- return (o, p) => {
2348
- var u;
2349
- return c(), k(l(ia), N({
2350
- class: [[((u = l(t)) == null ? void 0 : u.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
2350
+ return (o, f) => {
2351
+ var c;
2352
+ return u(), k(l(ia), N({
2353
+ class: [[((c = l(t)) == null ? void 0 : c.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
2351
2354
  onBlur: i,
2352
2355
  "allow-clear": !1,
2353
2356
  placeholder: l(s)("webui.common.placeholder", [l(e)])
@@ -2368,104 +2371,104 @@ const Dr = /* @__PURE__ */ L({
2368
2371
  setup(r, { emit: a }) {
2369
2372
  const e = r, t = a, s = T(!(e.selectList && e.selectList.length > 0)), i = T([]);
2370
2373
  let o = !1;
2371
- const p = () => {
2374
+ const f = () => {
2372
2375
  e.selectList && e.selectList.length > 0 ? i.value = e.selectList.map((m) => ({
2373
2376
  id: Date.now() + Math.random(),
2374
2377
  text: m.text,
2375
2378
  field: m.field,
2376
2379
  // 如果value中有对应的field,使用value中的值,否则使用selectList中的默认值
2377
2380
  value: e.value[m.field] ?? m.value
2378
- })) : e.value && Object.keys(e.value).length > 0 ? i.value = Object.entries(e.value).filter(([m]) => !e.ignoreList || !e.ignoreList.includes(m)).map(([m, v]) => ({
2381
+ })) : e.value && Object.keys(e.value).length > 0 ? i.value = Object.entries(e.value).filter(([m]) => !e.ignoreList || !e.ignoreList.includes(m)).map(([m, d]) => ({
2379
2382
  id: Date.now() + Math.random(),
2380
2383
  field: m,
2381
- value: v
2384
+ value: d
2382
2385
  })) : i.value = [];
2383
2386
  };
2384
2387
  M(
2385
2388
  () => e.value,
2386
2389
  () => {
2387
- o || p(), o = !1;
2390
+ o || f(), o = !1;
2388
2391
  },
2389
2392
  { immediate: !0 }
2390
2393
  );
2391
- const { t: u } = ue(), d = () => {
2394
+ const { t: c } = de(), p = () => {
2392
2395
  let m;
2393
- e.selectList && e.selectList.length > 0 ? (m = { ...e.value }, i.value.forEach((v) => {
2394
- v.field && (m[v.field] = v.value);
2396
+ e.selectList && e.selectList.length > 0 ? (m = { ...e.value }, i.value.forEach((d) => {
2397
+ d.field && (m[d.field] = d.value);
2395
2398
  })) : (m = i.value.reduce(
2396
- (v, b) => (b.field && (v[b.field] = b.value), v),
2399
+ (d, h) => (h.field && (d[h.field] = h.value), d),
2397
2400
  {}
2398
- ), e.ignoreList && e.ignoreList.length > 0 && e.ignoreList.forEach((v) => {
2399
- e.value[v] !== void 0 && (m[v] = e.value[v]);
2401
+ ), e.ignoreList && e.ignoreList.length > 0 && e.ignoreList.forEach((d) => {
2402
+ e.value[d] !== void 0 && (m[d] = e.value[d]);
2400
2403
  })), o = !0, t("update:value", m);
2401
- }, f = () => {
2404
+ }, v = () => {
2402
2405
  i.value.push({
2403
2406
  id: Date.now() + Math.random(),
2404
2407
  field: "",
2405
2408
  value: ""
2406
2409
  });
2407
2410
  }, n = () => {
2408
- d();
2411
+ p();
2409
2412
  };
2410
- return (m, v) => (c(), x("div", Tl, [
2411
- (c(!0), x(U, null, V(i.value, (b) => (c(), x("div", {
2412
- key: b.id,
2413
+ return (m, d) => (u(), x("div", Tl, [
2414
+ (u(!0), x(U, null, V(i.value, (h) => (u(), x("div", {
2415
+ key: h.id,
2413
2416
  class: "flex items-center gap-2"
2414
2417
  }, [
2415
2418
  I("div", {
2416
2419
  class: R([r.fieldWidth ? `w-[${r.fieldWidth}%]` : "w-[33%]"])
2417
2420
  }, [
2418
- !r.selectList || r.selectList.length === 0 ? (c(), k(l(me), {
2421
+ !r.selectList || r.selectList.length === 0 ? (u(), k(l(me), {
2419
2422
  key: 0,
2420
- value: b.field,
2421
- "onUpdate:value": (S) => b.field = S,
2422
- title: b.text || b.field,
2423
+ value: h.field,
2424
+ "onUpdate:value": (C) => h.field = C,
2425
+ title: h.text || h.field,
2423
2426
  class: "w-full",
2424
- placeholder: b.text || r.labelHolder || l(u)("webui.components.form.propEditor.configName"),
2427
+ placeholder: h.text || r.labelHolder || l(c)("webui.components.form.propEditor.configName"),
2425
2428
  onInput: n,
2426
2429
  disabled: !s.value
2427
- }, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (c(), x("div", $l, [
2430
+ }, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (u(), x("div", $l, [
2428
2431
  D(l(me), {
2429
- value: b.text,
2430
- "onUpdate:value": (S) => b.text = S,
2431
- title: b.text,
2432
+ value: h.text,
2433
+ "onUpdate:value": (C) => h.text = C,
2434
+ title: h.text,
2432
2435
  disabled: !0,
2433
2436
  class: "w-[100%]"
2434
2437
  }, null, 8, ["value", "onUpdate:value", "title"]),
2435
2438
  D(l(me), {
2436
2439
  type: "hidden",
2437
- value: b.field,
2438
- "onUpdate:value": (S) => b.field = S
2440
+ value: h.field,
2441
+ "onUpdate:value": (C) => h.field = C
2439
2442
  }, null, 8, ["value", "onUpdate:value"])
2440
2443
  ]))
2441
2444
  ], 2),
2442
- v[0] || (v[0] = I("div", { class: "w-[3%]" }, "=", -1)),
2445
+ d[0] || (d[0] = I("div", { class: "w-[3%]" }, "=", -1)),
2443
2446
  I("div", {
2444
2447
  class: R([r.fieldWidth ? `w-[${97 - r.fieldWidth}%]` : "w-[64%]"])
2445
2448
  }, [
2446
2449
  D(l(me), {
2447
- value: b.value,
2448
- "onUpdate:value": (S) => b.value = S,
2449
- placeholder: r.valueHolder || l(u)("webui.common.placeholder", [b.text || l(u)("webui.components.form.propEditor.configValue")]),
2450
+ value: h.value,
2451
+ "onUpdate:value": (C) => h.value = C,
2452
+ placeholder: r.valueHolder || l(c)("webui.common.placeholder", [h.text || l(c)("webui.components.form.propEditor.configValue")]),
2450
2453
  onInput: n,
2451
- title: b.value
2454
+ title: h.value
2452
2455
  }, null, 8, ["value", "onUpdate:value", "placeholder", "title"])
2453
2456
  ], 2)
2454
2457
  ]))), 128)),
2455
- s.value ? (c(), k(l(vt), {
2458
+ s.value ? (u(), k(l(vt), {
2456
2459
  key: 0,
2457
- onClick: f,
2460
+ onClick: v,
2458
2461
  class: "mt-1 w-[80px] !text-[12px] text-[#666] bg-[#e6f7ff] border-[#b3e0ff] hover:bg-[#b3e0ff] hover:border-[#8abeff]",
2459
2462
  size: "small"
2460
2463
  }, {
2461
2464
  default: w(() => [
2462
- G(E(l(u)("webui.components.form.propEditor.addConfigRow")), 1)
2465
+ G(E(l(c)("webui.components.form.propEditor.addConfigRow")), 1)
2463
2466
  ]),
2464
2467
  _: 1
2465
- })) : C("", !0)
2468
+ })) : S("", !0)
2466
2469
  ]));
2467
2470
  }
2468
- }), Dl = /* @__PURE__ */ ie(Kt, [["__scopeId", "data-v-89ba1c83"]]), Lr = /* @__PURE__ */ L({
2471
+ }), Dl = /* @__PURE__ */ ce(Kt, [["__scopeId", "data-v-89ba1c83"]]), Lr = /* @__PURE__ */ L({
2469
2472
  __name: "radioStatus",
2470
2473
  props: {
2471
2474
  /**
@@ -2497,7 +2500,7 @@ const Dr = /* @__PURE__ */ L({
2497
2500
  return a.all === !0 && e.value.unshift({
2498
2501
  label: y("webui.components.form.radio.all"),
2499
2502
  value: a.allValue || [0, 1]
2500
- }), (t, s) => (c(), k(Dl, { data: e.value }, null, 8, ["data"]));
2503
+ }), (t, s) => (u(), k(Dl, { data: e.value }, null, 8, ["data"]));
2501
2504
  }
2502
2505
  }), Ur = /* @__PURE__ */ L({
2503
2506
  __name: "index",
@@ -2508,49 +2511,49 @@ const Dr = /* @__PURE__ */ L({
2508
2511
  },
2509
2512
  emits: ["update:startDate", "update:endDate"],
2510
2513
  setup(r, { emit: a }) {
2511
- const e = r, t = a, s = te(), { errInfo: i } = s, o = j(() => e.valueFormat), p = j(() => {
2512
- const d = e.startDate, f = e.endDate;
2513
- if (!(!d || !f))
2514
+ const e = r, t = a, s = te(), { errInfo: i } = s, o = j(() => e.valueFormat), f = j(() => {
2515
+ const p = e.startDate, v = e.endDate;
2516
+ if (!(!p || !v))
2514
2517
  try {
2515
- const n = Ne(d), m = Ne(f);
2518
+ const n = Ne(p), m = Ne(v);
2516
2519
  return !n.isValid() || !m.isValid() ? void 0 : [n, m];
2517
2520
  } catch {
2518
2521
  return;
2519
2522
  }
2520
- }), u = (d, f) => {
2521
- if (!d || !f || f.length !== 2) {
2523
+ }), c = (p, v) => {
2524
+ if (!p || !v || v.length !== 2) {
2522
2525
  t("update:startDate", null), t("update:endDate", null);
2523
2526
  return;
2524
2527
  }
2525
- t("update:startDate", f[0] || null), t("update:endDate", f[1] || null);
2528
+ t("update:startDate", v[0] || null), t("update:endDate", v[1] || null);
2526
2529
  };
2527
- return (d, f) => {
2530
+ return (p, v) => {
2528
2531
  var n;
2529
- return c(), k(l(ca), {
2532
+ return u(), k(l(ca), {
2530
2533
  class: R([((n = l(i)) == null ? void 0 : n.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
2531
2534
  locale: l(Fe),
2532
2535
  "value-format": o.value,
2533
- value: p.value,
2534
- onChange: u
2536
+ value: f.value,
2537
+ onChange: c
2535
2538
  }, null, 8, ["class", "locale", "value-format", "value"]);
2536
2539
  };
2537
2540
  }
2538
- }), Mr = /* @__PURE__ */ ie(jt, [["__scopeId", "data-v-3a33f630"]]), Nr = /* @__PURE__ */ L({
2541
+ }), Mr = /* @__PURE__ */ ce(jt, [["__scopeId", "data-v-3a33f630"]]), Nr = /* @__PURE__ */ L({
2539
2542
  __name: "index",
2540
2543
  setup(r) {
2541
- const { t: a } = ue(), { editorCtrl: e, labelText: t, errInfo: s } = te(), i = () => {
2544
+ const { t: a } = de(), { editorCtrl: e, labelText: t, errInfo: s } = te(), i = () => {
2542
2545
  s != null && s.value.errClass && e && se(e);
2543
2546
  };
2544
- return (o, p) => {
2545
- var u;
2546
- return c(), k(l(ua), N({
2547
- class: ((u = l(s)) == null ? void 0 : u.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
2547
+ return (o, f) => {
2548
+ var c;
2549
+ return u(), k(l(ua), N({
2550
+ class: ((c = l(s)) == null ? void 0 : c.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
2548
2551
  "allow-clear": !0,
2549
2552
  placeholder: l(a)("webui.common.placeholder", [l(t)]),
2550
2553
  onBlur: i,
2551
- onKeyup: p[0] || (p[0] = Ge(ge(() => {
2554
+ onKeyup: f[0] || (f[0] = Ge(ge(() => {
2552
2555
  }, ["stop"]), ["enter", "native"])),
2553
- onKeydown: p[1] || (p[1] = Ge(ge(() => {
2556
+ onKeydown: f[1] || (f[1] = Ge(ge(() => {
2554
2557
  }, ["stop"]), ["enter", "native"]))
2555
2558
  }, o.$attrs), null, 16, ["class", "placeholder"]);
2556
2559
  };
@@ -2561,16 +2564,16 @@ const Dr = /* @__PURE__ */ L({
2561
2564
  valueFormat: {}
2562
2565
  },
2563
2566
  setup(r) {
2564
- const a = r, { editorCtrl: e, labelText: t, errInfo: s } = te(), { t: i } = ue(), o = () => {
2567
+ const a = r, { editorCtrl: e, labelText: t, errInfo: s } = te(), { t: i } = de(), o = () => {
2565
2568
  s != null && s.value.errClass && e && se(e);
2566
- }, p = T(a.valueFormat ?? "HH:mm");
2567
- return (u, d) => {
2568
- var f;
2569
- return c(), k(l(da), {
2570
- class: R(["w-full", [((f = l(s)) == null ? void 0 : f.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
2569
+ }, f = T(a.valueFormat ?? "HH:mm");
2570
+ return (c, p) => {
2571
+ var v;
2572
+ return u(), k(l(da), {
2573
+ class: R(["w-full", [((v = l(s)) == null ? void 0 : v.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
2571
2574
  placeholder: l(i)("webui.common.pleaseSelect") + l(t),
2572
2575
  locale: l(Fe),
2573
- valueFormat: p.value,
2576
+ valueFormat: f.value,
2574
2577
  onBlur: o
2575
2578
  }, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
2576
2579
  };
@@ -2585,17 +2588,17 @@ const Dr = /* @__PURE__ */ L({
2585
2588
  },
2586
2589
  emits: ["change", "update:value"],
2587
2590
  setup(r, { emit: a }) {
2588
- const e = r, t = T({ ...e.url }), { editorCtrl: s, labelText: i, errInfo: o } = te(), p = a, u = T([]), d = T([]);
2591
+ const e = r, t = T({ ...e.url }), { editorCtrl: s, labelText: i, errInfo: o } = te(), f = a, c = T([]), p = T([]);
2589
2592
  e.value && e.value.every((n) => {
2590
- d.value.push(n.toString());
2593
+ p.value.push(n.toString());
2591
2594
  }), M(
2592
2595
  () => e.value,
2593
2596
  (n) => {
2594
- n && (d.value = n);
2597
+ n && (p.value = n);
2595
2598
  }
2596
2599
  );
2597
- const f = (n) => {
2598
- p("update:value", n), p("change", n), d.value = n, o != null && o.value.errClass && s && se(s);
2600
+ const v = (n) => {
2601
+ f("update:value", n), f("change", n), p.value = n, o != null && o.value.errClass && s && se(s);
2599
2602
  };
2600
2603
  return le(async () => {
2601
2604
  if (t.value) {
@@ -2607,25 +2610,25 @@ const Dr = /* @__PURE__ */ L({
2607
2610
  loadingText: !1,
2608
2611
  params: e.params
2609
2612
  });
2610
- u.value = (m == null ? void 0 : m.data) ?? [];
2613
+ c.value = (m == null ? void 0 : m.data) ?? [];
2611
2614
  }
2612
2615
  }
2613
2616
  }), (n, m) => {
2614
- var v;
2615
- return c(), k(l(pa), N({
2616
- class: ((v = l(o)) == null ? void 0 : v.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
2617
+ var d;
2618
+ return u(), k(l(pa), N({
2619
+ class: ((d = l(o)) == null ? void 0 : d.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
2617
2620
  placeholder: l(y)("webui.components.form.transfer.pleaseInput", [l(i)]),
2618
- targetKeys: d.value,
2619
- onChange: f
2621
+ targetKeys: p.value,
2622
+ onChange: v
2620
2623
  }, n.$attrs), {
2621
- children: w(({ direction: b, disabled: S, filteredItems: _, onItemSelectAll: $, onItemSelect: g, selectedKeys: h }) => [
2624
+ children: w(({ direction: h, disabled: C, filteredItems: _, onItemSelectAll: $, onItemSelect: g, selectedKeys: b }) => [
2622
2625
  O(n.$slots, "children", {
2623
- direction: b,
2624
- disabled: S,
2626
+ direction: h,
2627
+ disabled: C,
2625
2628
  filteredItems: _,
2626
2629
  onItemSelectAll: $,
2627
2630
  onItemSelect: g,
2628
- selectedKeys: h
2631
+ selectedKeys: b
2629
2632
  })
2630
2633
  ]),
2631
2634
  _: 3
@@ -2662,44 +2665,44 @@ const Dr = /* @__PURE__ */ L({
2662
2665
  const e = r, t = a, s = T(e.autoload), i = T(e.value), o = T(e.gridCtrl.primaryKey);
2663
2666
  M(
2664
2667
  () => i.value,
2665
- (d) => {
2666
- t("update:value", d);
2668
+ (p) => {
2669
+ t("update:value", p);
2667
2670
  }
2668
2671
  ), M(
2669
2672
  () => e.value,
2670
- (d) => {
2671
- d && (i.value = d);
2673
+ (p) => {
2674
+ p && (i.value = p);
2672
2675
  }
2673
2676
  ), e.gridCtrl.autoload = !1, e.gridCtrl.remotePage = !1, e.gridCtrl.selectable = T(!0), e.gridCtrl.buttons = T([]), e.gridCtrl.tools = [];
2674
- const p = ({ disabled: d, selectedKeys: f, onItemSelectAll: n, onItemSelect: m }) => ({
2675
- getCheckboxProps: (v) => ({
2677
+ const f = ({ disabled: p, selectedKeys: v, onItemSelectAll: n, onItemSelect: m }) => ({
2678
+ getCheckboxProps: (d) => ({
2676
2679
  // 控制是否禁止
2677
- disabled: d || v.disabled
2680
+ disabled: p || d.disabled
2678
2681
  }),
2679
- onSelectAll(v, b) {
2680
- const S = b.filter((_) => !_.disabled).map(({ [o.value]: _ }) => _);
2681
- n(S, v);
2682
+ onSelectAll(d, h) {
2683
+ const C = h.filter((_) => !_.disabled).map(({ [o.value]: _ }) => _);
2684
+ n(C, d);
2682
2685
  },
2683
- onSelect({ [o.value]: v }, b) {
2684
- m(v, b);
2686
+ onSelect({ [o.value]: d }, h) {
2687
+ m(d, h);
2685
2688
  },
2686
- selectedRowKeys: f
2687
- }), u = T([]);
2689
+ selectedRowKeys: v
2690
+ }), c = T([]);
2688
2691
  return le(async () => {
2689
2692
  if (s.value) {
2690
- const d = await st(e.gridCtrl, {
2693
+ const p = await st(e.gridCtrl, {
2691
2694
  urlKey: "list",
2692
2695
  url: { ...e.gridCtrl.gridUrl, url: e.gridCtrl.gridUrl.url },
2693
2696
  params: e.gridCtrl.gridQuery,
2694
2697
  loadingText: !1
2695
2698
  });
2696
- u.value = (d == null ? void 0 : d.data) ?? [];
2699
+ c.value = (p == null ? void 0 : p.data) ?? [];
2697
2700
  }
2698
- }), (d, f) => (c(), k(Fl, N({
2699
- "data-source": u.value,
2701
+ }), (p, v) => (u(), k(Fl, N({
2702
+ "data-source": c.value,
2700
2703
  "row-key": (n) => n[o.value],
2701
2704
  value: i.value,
2702
- "onUpdate:value": f[0] || (f[0] = (n) => i.value = n),
2705
+ "onUpdate:value": v[0] || (v[0] = (n) => i.value = n),
2703
2706
  "list-style": {
2704
2707
  width: "300px",
2705
2708
  height: "500px"
@@ -2707,30 +2710,30 @@ const Dr = /* @__PURE__ */ L({
2707
2710
  "show-select-all": !1,
2708
2711
  "show-search": !0,
2709
2712
  "filter-option": (n, m) => {
2710
- for (const v of e.gridCtrl.columns.value)
2711
- if (m[v.dataIndex].toString().indexOf(n) !== -1)
2713
+ for (const d of e.gridCtrl.columns.value)
2714
+ if (m[d.dataIndex].toString().indexOf(n) !== -1)
2712
2715
  return !0;
2713
2716
  return !1;
2714
2717
  }
2715
- }, d.$attrs), {
2716
- children: w(({ filteredItems: n, onItemSelectAll: m, onItemSelect: v, selectedKeys: b }) => [
2718
+ }, p.$attrs), {
2719
+ children: w(({ filteredItems: n, onItemSelectAll: m, onItemSelect: d, selectedKeys: h }) => [
2717
2720
  D(l(mt), {
2718
2721
  columns: r.gridCtrl.columns.value,
2719
2722
  "row-key": o.value,
2720
- "row-selection": p({
2723
+ "row-selection": f({
2721
2724
  disabled: !1,
2722
- selectedKeys: b,
2725
+ selectedKeys: h,
2723
2726
  onItemSelectAll: m,
2724
- onItemSelect: v
2727
+ onItemSelect: d
2725
2728
  }),
2726
2729
  bordered: !1,
2727
2730
  size: "small",
2728
2731
  "data-source": n,
2729
2732
  scroll: { x: 300 },
2730
- "custom-row": (S) => ({
2733
+ "custom-row": (C) => ({
2731
2734
  onClick: () => {
2732
- const _ = S[o.value];
2733
- v(_, !b.includes(_));
2735
+ const _ = C[o.value];
2736
+ d(_, !h.includes(_));
2734
2737
  }
2735
2738
  })
2736
2739
  }, null, 8, ["columns", "row-key", "row-selection", "data-source", "custom-row"])
@@ -2765,29 +2768,29 @@ const Dr = /* @__PURE__ */ L({
2765
2768
  },
2766
2769
  emits: ["change", "update:value"],
2767
2770
  setup(r, { emit: a }) {
2768
- const e = r, t = e.value === void 0 ? !0 : e.undefValue, s = e.treeCtrl, i = te(), { errInfo: o, labelText: p } = i, u = a;
2769
- i.inputEmit = u;
2770
- const d = T([]), f = T();
2771
+ const e = r, t = e.value === void 0 ? !0 : e.undefValue, s = e.treeCtrl, i = te(), { errInfo: o, labelText: f } = i, c = a;
2772
+ i.inputEmit = c;
2773
+ const p = T([]), v = T();
2771
2774
  M(
2772
2775
  () => e.value,
2773
- (v) => {
2774
- f.value = v;
2776
+ (d) => {
2777
+ v.value = d;
2775
2778
  },
2776
2779
  { immediate: !0 }
2777
2780
  ), M(
2778
- () => f.value,
2779
- (v) => {
2780
- u("update:value", v);
2781
+ () => v.value,
2782
+ (d) => {
2783
+ c("update:value", d);
2781
2784
  }
2782
2785
  ), M(
2783
2786
  () => s.data.value,
2784
- (v) => {
2785
- v && (d.value = s.fieldMap ? xe(s.fieldMap, v) : v);
2787
+ (d) => {
2788
+ d && (p.value = s.fieldMap ? xe(s.fieldMap, d) : d);
2786
2789
  },
2787
2790
  { immediate: !0 }
2788
2791
  );
2789
- const n = (v) => {
2790
- e.multiple ? f.value = v ?? [] : v == null ? f.value = t ? void 0 : null : f.value = v, u("change", f.value);
2792
+ const n = (d) => {
2793
+ e.multiple ? v.value = d ?? [] : d == null ? v.value = t ? void 0 : null : v.value = d, c("change", v.value);
2791
2794
  };
2792
2795
  Se(() => {
2793
2796
  e.treeCtrl && e.treeCtrl.autoload && (e.treeCtrl.reload.value = !0);
@@ -2796,28 +2799,28 @@ const Dr = /* @__PURE__ */ L({
2796
2799
  label: "Name",
2797
2800
  key: "Id",
2798
2801
  value: "Id"
2799
- }), s.data.value ? d.value = s.fieldMap ? xe(s.fieldMap, s.data.value) : s.data.value : e.treeCtrl.autoload && ot(e.treeCtrl);
2802
+ }), s.data.value ? p.value = s.fieldMap ? xe(s.fieldMap, s.data.value) : s.data.value : e.treeCtrl.autoload && ot(e.treeCtrl);
2800
2803
  });
2801
2804
  const m = () => {
2802
- f.value = t ? void 0 : null;
2805
+ v.value = t ? void 0 : null;
2803
2806
  };
2804
- return (v, b) => {
2805
- var S;
2806
- return c(), k(l(fa), N({
2807
- class: [[(S = l(o)) == null ? void 0 : S.errClass], "w-full"],
2807
+ return (d, h) => {
2808
+ var C;
2809
+ return u(), k(l(fa), N({
2810
+ class: [[(C = l(o)) == null ? void 0 : C.errClass], "w-full"],
2808
2811
  "tree-line": "",
2809
2812
  multiple: r.multiple,
2810
2813
  "tree-default-expanded-keys": ["-"],
2811
- value: f.value,
2812
- "onUpdate:value": b[0] || (b[0] = (_) => f.value = _),
2813
- "tree-data": d.value,
2814
- placeholder: l(y)("webui.components.form.treeSelect.pleaseSelect", [l(p)]),
2814
+ value: v.value,
2815
+ "onUpdate:value": h[0] || (h[0] = (_) => v.value = _),
2816
+ "tree-data": p.value,
2817
+ placeholder: l(y)("webui.components.form.treeSelect.pleaseSelect", [l(f)]),
2815
2818
  onChange: n,
2816
2819
  onClear: m
2817
- }, v.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
2820
+ }, d.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
2818
2821
  };
2819
2822
  }
2820
- }), Ar = /* @__PURE__ */ ie(Pl, [["__scopeId", "data-v-d88b9e8a"]]), Il = { class: "w-full mt-1" }, El = { class: "flex flex-wrap gap-2" }, Ll = ["onMouseenter"], Ul = { class: "w-16 h-16 border border-solid border-gray-200 rounded overflow-hidden" }, Ml = ["src"], Nl = {
2823
+ }), Ar = /* @__PURE__ */ ce(Pl, [["__scopeId", "data-v-d88b9e8a"]]), Il = { class: "w-full mt-1" }, El = { class: "flex flex-wrap gap-2" }, Ll = ["onMouseenter"], Ul = { class: "w-16 h-16 border border-solid border-gray-200 rounded overflow-hidden" }, Ml = ["src"], Nl = {
2821
2824
  key: 0,
2822
2825
  class: "absolute inset-0 bg-black bg-opacity-50 flex items-center justify-center gap-4 rounded"
2823
2826
  }, Rl = ["onClick"], Bl = { class: "text-sm ml-1" }, Al = ["onClick"], zl = { class: "text-sm ml-1" }, Ol = {
@@ -2843,10 +2846,10 @@ const Dr = /* @__PURE__ */ L({
2843
2846
  },
2844
2847
  emits: ["update:file-list"],
2845
2848
  setup(r, { emit: a }) {
2846
- const e = r, t = te(), { errInfo: s } = t, { t: i } = ue(), o = T(e.fileList), p = T([]), u = a, d = j(() => {
2849
+ const e = r, t = te(), { errInfo: s } = t, { t: i } = de(), o = T(e.fileList), f = T([]), c = a, p = j(() => {
2847
2850
  var F;
2848
2851
  return (F = e.fileExt) != null && F.length ? e.fileExt.map((P) => `.${P}`).join(",") : "";
2849
- }), f = (F) => {
2852
+ }), v = (F) => {
2850
2853
  var P;
2851
2854
  if (e.fileExt && e.fileExt.length > 0) {
2852
2855
  const H = ((P = F.name.split(".").pop()) == null ? void 0 : P.toLowerCase()) || "";
@@ -2857,12 +2860,12 @@ const Dr = /* @__PURE__ */ L({
2857
2860
  }, n = () => e.maxCount > 1 && o.value.length >= e.maxCount, m = (F) => {
2858
2861
  const P = F;
2859
2862
  return P.params || (P.params = {}), P.params.FileKey = P.name, e.parentPath && (P.params.FileKey = Ve.join("/", e.parentPath, P.name)), P;
2860
- }, v = (F) => f(F) && e.autoUpload, b = async (F) => {
2863
+ }, d = (F) => v(F) && e.autoUpload, h = async (F) => {
2861
2864
  if (F.length === 0) return;
2862
2865
  const P = [...o.value];
2863
2866
  let H = !1;
2864
2867
  for (const Z of F) {
2865
- if (!f(Z)) {
2868
+ if (!v(Z)) {
2866
2869
  H = !0;
2867
2870
  continue;
2868
2871
  }
@@ -2878,15 +2881,15 @@ const Dr = /* @__PURE__ */ L({
2878
2881
  const re = P.findIndex((Ie) => Ie.name === q.name);
2879
2882
  re > -1 ? P[re] = q : P.push(q);
2880
2883
  }
2881
- (!H || P.length > 0) && (o.value = P), p.value = [];
2882
- }, S = (F) => {
2883
- p.value = F, b(F);
2884
+ (!H || P.length > 0) && (o.value = P), f.value = [];
2885
+ }, C = (F) => {
2886
+ f.value = F, h(F);
2884
2887
  }, _ = j(() => ({
2885
- accept: d.value,
2888
+ accept: p.value,
2886
2889
  multiple: e.maxCount !== 1,
2887
- fileList: p.value,
2888
- "onUpdate:fileList": S,
2889
- beforeUpload: v,
2890
+ fileList: f.value,
2891
+ "onUpdate:fileList": C,
2892
+ beforeUpload: d,
2890
2893
  listType: "text",
2891
2894
  showUploadList: !1,
2892
2895
  customRequest: async () => {
@@ -2904,7 +2907,7 @@ const Dr = /* @__PURE__ */ L({
2904
2907
  ), M(
2905
2908
  () => o.value,
2906
2909
  (F) => {
2907
- u("update:file-list", F);
2910
+ c("update:file-list", F);
2908
2911
  },
2909
2912
  { deep: !0 }
2910
2913
  ), M(
@@ -2915,7 +2918,7 @@ const Dr = /* @__PURE__ */ L({
2915
2918
  });
2916
2919
  }
2917
2920
  );
2918
- const $ = T(!1), g = T(""), h = (F) => {
2921
+ const $ = T(!1), g = T(""), b = (F) => {
2919
2922
  const P = o.value[F];
2920
2923
  g.value = A(P), $.value = !0;
2921
2924
  }, B = (F) => {
@@ -2955,10 +2958,10 @@ const Dr = /* @__PURE__ */ L({
2955
2958
  }
2956
2959
  }, Tt = j(() => o.value.length < e.maxCount), Pe = T(-1);
2957
2960
  return (F, P) => {
2958
- const H = ne("auth");
2959
- return c(), x("div", Il, [
2961
+ const H = ie("auth");
2962
+ return u(), x("div", Il, [
2960
2963
  I("div", El, [
2961
- (c(!0), x(U, null, V(o.value, (Z, q) => (c(), x("div", {
2964
+ (u(!0), x(U, null, V(o.value, (Z, q) => (u(), x("div", {
2962
2965
  key: q,
2963
2966
  class: "relative image-item",
2964
2967
  onMouseenter: (re) => Pe.value = q,
@@ -2970,19 +2973,19 @@ const Dr = /* @__PURE__ */ L({
2970
2973
  class: "w-full h-full object-cover"
2971
2974
  }, null, 8, Ml)
2972
2975
  ]),
2973
- Pe.value === q ? (c(), x("div", Nl, [
2974
- r.previewUrl ? (c(), x("div", {
2976
+ Pe.value === q ? (u(), x("div", Nl, [
2977
+ r.previewUrl ? (u(), x("div", {
2975
2978
  key: 0,
2976
2979
  class: "flex items-center text-white cursor-pointer hover:text-blue-400",
2977
- onClick: (re) => h(q)
2980
+ onClick: (re) => b(q)
2978
2981
  }, [
2979
2982
  D(l(Y), {
2980
2983
  icon: "icon-eye",
2981
2984
  clickable: ""
2982
2985
  }),
2983
2986
  I("span", Bl, E(l(i)("webui.components.form.upload.preview")), 1)
2984
- ], 8, Rl)) : C("", !0),
2985
- r.showDelete !== !1 ? (c(), x("div", {
2987
+ ], 8, Rl)) : S("", !0),
2988
+ r.showDelete !== !1 ? (u(), x("div", {
2986
2989
  key: 1,
2987
2990
  class: "flex items-center text-white cursor-pointer hover:text-red-400",
2988
2991
  onClick: (re) => B(q)
@@ -2993,11 +2996,11 @@ const Dr = /* @__PURE__ */ L({
2993
2996
  clickable: ""
2994
2997
  }),
2995
2998
  I("span", zl, E(l(i)("webui.components.form.upload.delete")), 1)
2996
- ], 8, Al)) : C("", !0)
2997
- ])) : C("", !0)
2999
+ ], 8, Al)) : S("", !0)
3000
+ ])) : S("", !0)
2998
3001
  ], 40, Ll))), 128)),
2999
- Tt.value ? (c(), x("div", Ol, [
3000
- Q((c(), k(l(va), N({ ref: "fileUploader" }, _.value), {
3002
+ Tt.value ? (u(), x("div", Ol, [
3003
+ Q((u(), k(l(va), N({ ref: "fileUploader" }, _.value), {
3001
3004
  default: w(() => {
3002
3005
  var Z;
3003
3006
  return [
@@ -3015,7 +3018,7 @@ const Dr = /* @__PURE__ */ L({
3015
3018
  }, 16)), [
3016
3019
  [H, { role: ["Super", "Admin"], permit: ":imagelist:upload" }]
3017
3020
  ])
3018
- ])) : C("", !0)
3021
+ ])) : S("", !0)
3019
3022
  ]),
3020
3023
  D(l(ma), {
3021
3024
  preview: { visible: $.value, onVisibleChange: (Z) => $.value = Z },
@@ -3025,7 +3028,7 @@ const Dr = /* @__PURE__ */ L({
3025
3028
  ]);
3026
3029
  };
3027
3030
  }
3028
- }), zr = /* @__PURE__ */ ie(Kl, [["__scopeId", "data-v-76ab8068"]]), jl = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, Vl = { class: "flex w-full h-full min-h-full" }, Yl = {
3031
+ }), zr = /* @__PURE__ */ ce(Kl, [["__scopeId", "data-v-76ab8068"]]), jl = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, Vl = { class: "flex w-full h-full min-h-full" }, Yl = {
3029
3032
  key: 0,
3030
3033
  class: "w-1/4 pr-4 min-h-full min-w-[170px] max-w-[200px]"
3031
3034
  }, Gl = { class: "flex-1 h-full overflow-y-auto" }, Or = /* @__PURE__ */ L({
@@ -3035,7 +3038,7 @@ const Dr = /* @__PURE__ */ L({
3035
3038
  },
3036
3039
  setup(r) {
3037
3040
  const { useToken: a } = ct, { token: e } = a();
3038
- return (t, s) => (c(), x("div", jl, [
3041
+ return (t, s) => (u(), x("div", jl, [
3039
3042
  D(l(ga), {
3040
3043
  class: "m-[10px] p-[10px] h-[calc(100vh-100px)] !min-h-[calc(100vh-100px)]",
3041
3044
  style: je({
@@ -3044,9 +3047,9 @@ const Dr = /* @__PURE__ */ L({
3044
3047
  }, {
3045
3048
  default: w(() => [
3046
3049
  I("div", Vl, [
3047
- r.left ? (c(), x("div", Yl, [
3050
+ r.left ? (u(), x("div", Yl, [
3048
3051
  O(t.$slots, "left")
3049
- ])) : C("", !0),
3052
+ ])) : S("", !0),
3050
3053
  I("div", Gl, [
3051
3054
  O(t.$slots, "default")
3052
3055
  ])
@@ -3157,7 +3160,7 @@ export {
3157
3160
  lo as getRuleTexts,
3158
3161
  zt as getSelectedLabels,
3159
3162
  ro as getSelectedValues,
3160
- ce as getToolByKey,
3163
+ ue as getToolByKey,
3161
3164
  De as getToolGroup,
3162
3165
  W as getToolStatus,
3163
3166
  J as getToolVisible,