@skyfox2000/webui 1.5.7 → 1.5.10

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.
Files changed (59) hide show
  1. package/lib/assets/modules/{baseLayout-DfTxHOFc.js → baseLayout-BuQjrozB.js} +9 -9
  2. package/lib/assets/modules/{file-upload-DTOdV5vM.js → file-upload-DcusqXDb.js} +5 -5
  3. package/lib/assets/modules/{index-M1qERbea.js → index-BlQB5KSU.js} +2 -2
  4. package/lib/assets/modules/{index-BwMaOrJT.js → index-CW_ZCHWs.js} +1 -1
  5. package/lib/assets/modules/index-CekzHbWp.js +114 -0
  6. package/lib/assets/modules/{menuTabs-DWaBSRNr.js → menuTabs-BYSjomB7.js} +44 -36
  7. package/lib/assets/modules/{toolIcon-BYnHhAy-.js → toolIcon-D4vAp0qA.js} +1 -1
  8. package/lib/assets/modules/{upload-template-BKm9mFq8.js → upload-template-NU0Bpg4N.js} +2056 -2176
  9. package/lib/assets/modules/uploadList-ENSsTfpD.js +472 -0
  10. package/lib/const/options.d.ts +6 -20
  11. package/lib/const/stores.d.ts +11 -0
  12. package/lib/es/AceEditor/index.js +70 -70
  13. package/lib/es/BasicLayout/index.js +6 -6
  14. package/lib/es/Error403/index.js +1 -1
  15. package/lib/es/Error404/index.js +1 -1
  16. package/lib/es/ExcelForm/index.js +16 -16
  17. package/lib/es/MenuLayout/index.js +6 -6
  18. package/lib/es/TemplateFile/index.js +5 -5
  19. package/lib/es/UploadForm/index.js +5 -5
  20. package/lib/index.d.ts +2 -1
  21. package/lib/locales/default.d.ts +137 -115
  22. package/lib/utils/tools.d.ts +1 -0
  23. package/lib/webui.css +1 -1
  24. package/lib/webui.es.js +1692 -1547
  25. package/package.json +1 -1
  26. package/src/components/content/dialog/index.vue +1 -0
  27. package/src/components/content/form/formItem.vue +3 -2
  28. package/src/components/content/search/index.vue +1 -0
  29. package/src/components/content/search/searchItem.vue +3 -2
  30. package/src/components/form/aceEditor/index.vue +5 -3
  31. package/src/components/form/cascader/index.vue +5 -3
  32. package/src/components/form/checkbox/index.vue +1 -1
  33. package/src/components/form/datePicker/index.vue +2 -1
  34. package/src/components/form/input/index.vue +1 -1
  35. package/src/components/form/input/inputNumber.vue +3 -1
  36. package/src/components/form/input/inputPassword.vue +3 -1
  37. package/src/components/form/propEditor/index.vue +8 -3
  38. package/src/components/form/radio/index.vue +2 -1
  39. package/src/components/form/radio/radioStatus.vue +2 -1
  40. package/src/components/form/switch/index.vue +3 -1
  41. package/src/components/form/textarea/index.vue +1 -1
  42. package/src/components/form/timePicker/index.vue +4 -1
  43. package/src/components/form/treeSelect/index.vue +3 -1
  44. package/src/components/form/upload/imageList.vue +8 -6
  45. package/src/components/form/upload/uploadList.vue +6 -5
  46. package/src/components/layout/datetime/index.vue +15 -4
  47. package/src/components/layout/header/language.vue +2 -0
  48. package/src/const/options.ts +76 -52
  49. package/src/const/stores.ts +58 -0
  50. package/src/index.ts +2 -0
  51. package/src/locales/default.ts +145 -123
  52. package/src/locales/en-US.json +320 -0
  53. package/src/locales/index.ts +109 -39
  54. package/src/stores/hostInfo.ts +2 -19
  55. package/src/stores/userInfo.ts +2 -30
  56. package/src/utils/options.ts +2 -2
  57. package/src/utils/tools.ts +88 -83
  58. package/lib/assets/modules/index-BDoBUrYA.js +0 -114
  59. package/lib/assets/modules/uploadList-CHvr6Hp1.js +0 -472
package/lib/webui.es.js CHANGED
@@ -1,134 +1,278 @@
1
- import { u as Me, i as pe, $ as F, L as Ct, a as Ge, o as St, c as $t, P as se, b as We, d as Tt, e as Dt, f as qe, g as He, r as de, h as Qe, j as Je, k as Ae, l as J, m as X, n as W, p as Pt, q as me, s as Xe, t as Ft, v as It, w as he, x as Ze, _ as et, y as tt, O as Be, z as Et, A as at, B as Lt, C as Ut, D as te, E as Mt, F as At, G as Bt, H as Nt, I as zt, J as Ot, K as oe, M as Rt, N as lt, Q as Kt, R as jt, S as rt, T as Yt } from "./assets/modules/upload-template-BKm9mFq8.js";
2
- import { ap as Er, a4 as Lr, a5 as Ur, a9 as Mr, W as Ar, ao as Br, am as Nr, an as zr, aq as Or, aA as Rr, ac as Kr, a7 as jr, aB as Yr, ak as Vr, ah as Gr, a2 as Wr, aj as qr, ay as Hr, az as Qr, a8 as Jr, X as Xr, ae as Zr, ai as es, al as ts, V as as, a3 as ls, a6 as rs, ar as ss, U as os, ag as ns, as as is, ab as us, ad as cs, aC as ds, aa as ps, ax as fs, aw as vs, at as ms, Y as gs, Z as hs, au as bs, a1 as ys, av as xs, a0 as _s, af as ws } from "./assets/modules/upload-template-BKm9mFq8.js";
3
- import { f as Vt, p as Re } from "./assets/modules/file-upload-DTOdV5vM.js";
4
- import { A as Cs, U as Ss } from "./assets/modules/file-upload-DTOdV5vM.js";
5
- import { EnvConfig as Ke, isMicroApp as Gt } from "@skyfox2000/microbase";
6
- import { FrontCache as ge, httpPost as Ne, ResStatus as ze, SERVER_HOST as Wt, fieldMapping as be } from "@skyfox2000/fapi";
7
- import re from "vue-m-message";
8
- import { defineComponent as E, createBlock as _, openBlock as i, withModifiers as ve, unref as a, useAttrs as ue, withCtx as x, createElementVNode as I, createVNode as D, mergeProps as A, renderSlot as R, normalizeClass as B, toDisplayString as M, createCommentVNode as k, ref as C, provide as we, watch as U, onMounted as ae, createTextVNode as G, inject as ye, resolveDirective as ne, withDirectives as Q, computed as j, createElementBlock as y, normalizeStyle as Oe, Fragment as L, renderList as Y, resolveDynamicComponent as st, onActivated as ke, createSlots as ot, useSlots as qt, vShow as Pe, shallowRef as Ht, onUnmounted as Qt, withKeys as je } from "vue";
1
+ import { u as Be, i as ve, a as Ae, $ as w, L as Dt, c as Ft, P as oe, o as Qe, b as Pt, d as It, e as Je, g as Xe, r as fe, f as Ze, h as et, j as tt, k as Et, l as be, m as at, _ as lt, n as rt, O as ze, p as Lt, q as ot, s as Ut, t as Mt, v as te, w as Nt, x as Rt, y as Bt, z as At, A as zt, B as Ot, C as se, D as Kt, E as ue, F as jt, G as Vt, H as st, M as Yt } from "./assets/modules/upload-template-NU0Bpg4N.js";
2
+ import { ag as Yr, V as Gr, W as Wr, a0 as qr, af as Hr, ad as Qr, ae as Jr, ah as Xr, ar as Zr, a3 as eo, Y as to, as as ao, ab as lo, a8 as ro, T as oo, aa as so, ap as no, aq as io, Z as co, K as uo, J as po, a5 as fo, a9 as vo, ac as mo, U as go, X as ho, ai as bo, I as yo, a7 as xo, aj as wo, a2 as _o, a4 as ko, at as Co, a1 as So, ao as To, an as $o, ak as Do, N as Fo, Q as Po, al as Io, S as Eo, am as Lo, R as Uo, a6 as Mo } from "./assets/modules/upload-template-NU0Bpg4N.js";
3
+ import { f as Gt, p as Ve } from "./assets/modules/file-upload-DcusqXDb.js";
4
+ import { A as Ro, U as Bo } from "./assets/modules/file-upload-DcusqXDb.js";
5
+ import { EnvConfig as Ye, isMicroApp as Wt } from "@skyfox2000/microbase";
6
+ import { FrontCache as he, httpPost as Oe, ResStatus as Ke, SERVER_HOST as qt, fieldMapping as ye } from "@skyfox2000/fapi";
7
+ import ae from "vue-m-message";
8
+ import { defineComponent as L, createBlock as k, openBlock as u, withModifiers as ge, unref as l, useAttrs as de, withCtx as _, createElementVNode as I, createVNode as F, 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 Y, inject as xe, resolveDirective as ne, withDirectives as Q, computed as K, createElementBlock as x, normalizeStyle as je, Fragment as U, renderList as j, resolveDynamicComponent as nt, onActivated as Se, createSlots as it, useSlots as Ht, vShow as Ee, shallowRef as Qt, onUnmounted as Jt, withKeys as Ge } from "vue";
9
9
  import "async-validator";
10
- import Le from "dayjs";
11
- import { Popover as Jt, theme as nt, Drawer as Xt, Space as ce, Form as it, message as Zt, FormItem as ut, ConfigProvider as xe, Popconfirm as ct, DropdownButton as dt, Menu as Ce, MenuItem as Se, Dropdown as Ue, Checkbox as ea, List as ta, ListItem as aa, Card as la, Button as pt, Table as ft, Tree as ra, Cascader as sa, DatePicker as oa, Input as fe, InputPassword as na, InputNumber as ia, RangePicker as ua, Textarea as ca, TimePicker as da, Transfer as pa, TreeSelect as fa, Upload as va, Image as ma, LayoutContent as ga } from "ant-design-vue";
12
- import { VueDraggableNext as ha } from "vue-draggable-next";
13
- import { d as ba } from "./assets/modules/uploadList-CHvr6Hp1.js";
14
- import { C as Ts, U as Ds, a as Ps, p as Fs } from "./assets/modules/uploadList-CHvr6Hp1.js";
15
- import { c as vt } from "./assets/modules/index-M1qERbea.js";
16
- import { _ as Es, h as Ls, b as Us, a as Ms, d as As, e as Bs, g as Ns, f as zs, n as Os, p as Rs, t as Ks, v as js } from "./assets/modules/index-M1qERbea.js";
17
- import { _ as ee } from "./assets/modules/index-BwMaOrJT.js";
18
- import { _ as V } from "./assets/modules/toolIcon-BYnHhAy-.js";
19
- import { a as Vs } from "./assets/modules/toolIcon-BYnHhAy-.js";
20
- import { _ as Ws, b as qs, c as Hs, d as Qs, e as Js, I as Xs, f as Zs, g as eo, a as to } from "./assets/modules/menuTabs-DWaBSRNr.js";
21
- import { _ as lo } from "./assets/modules/index-BDoBUrYA.js";
10
+ import Ne from "dayjs";
11
+ import { Popover as Xt, theme as ct, Drawer as Zt, Space as pe, Form as ut, message as ea, FormItem as dt, ConfigProvider as we, Popconfirm as pt, DropdownButton as ft, Menu as Te, MenuItem as $e, Dropdown as Re, Checkbox as ta, List as aa, ListItem as la, Card as ra, Button as vt, Table as mt, Tree as oa, Cascader as sa, DatePicker as na, Input as me, InputPassword as ia, InputNumber as ca, RangePicker as ua, Textarea as da, TimePicker as pa, Transfer as fa, TreeSelect as va, Upload as ma, Image as ga, LayoutContent as ha } from "ant-design-vue";
12
+ import { VueDraggableNext as ba } from "vue-draggable-next";
13
+ import { d as ya } from "./assets/modules/uploadList-ENSsTfpD.js";
14
+ import { C as zo, U as Oo, a as Ko, p as jo } from "./assets/modules/uploadList-ENSsTfpD.js";
15
+ import { c as gt } from "./assets/modules/index-BlQB5KSU.js";
16
+ import { _ as Yo, h as Go, b as Wo, a as qo, d as Ho, e as Qo, g as Jo, f as Xo, n as Zo, p as es, t as ts, v as as } from "./assets/modules/index-BlQB5KSU.js";
17
+ import { _ as ee } from "./assets/modules/index-CW_ZCHWs.js";
18
+ import { _ as V } from "./assets/modules/toolIcon-D4vAp0qA.js";
19
+ import { a as rs } from "./assets/modules/toolIcon-D4vAp0qA.js";
20
+ import { _ as ss, b as ns, c as is, d as cs, e as us, I as ds, f as ps, g as fs, a as vs } from "./assets/modules/menuTabs-BYSjomB7.js";
21
+ import { _ as gs } from "./assets/modules/index-CekzHbWp.js";
22
22
  import { _ as ie } from "./assets/modules/_plugin-vue_export-helper-CHgC5LLL.js";
23
- const Ye = (d, l, e, t = "remove") => {
23
+ const We = (o, a, e, t = "remove") => {
24
24
  if (!e)
25
25
  if (t === "disable") {
26
- const o = l.component;
27
- o ? o.props.disabled = !0 : (l.el, d.setAttribute("disabled", "disabled"), d.disabled = !0), d.classList.add("disabled");
26
+ const s = a.component;
27
+ s ? s.props.disabled = !0 : (a.el, o.setAttribute("disabled", "disabled"), o.disabled = !0), o.classList.add("disabled");
28
28
  } else {
29
- const o = document.createComment("No Permission"), n = d.parentNode;
30
- if (n) {
31
- const s = l.component;
32
- s ? s.props.style = { display: "none" } : n.replaceChild(o, d);
29
+ const s = document.createComment("No Permission"), c = o.parentNode;
30
+ if (c) {
31
+ const r = a.component;
32
+ r ? r.props.style = { display: "none" } : c.replaceChild(s, o);
33
33
  }
34
34
  }
35
- }, Ve = (d) => {
36
- var s, f;
37
- const l = Me(), { url: e, role: t, permit: o } = d;
38
- if (pe(t) && pe(o))
35
+ }, qe = (o) => {
36
+ var r, p;
37
+ const a = Be(), { url: e, role: t, permit: s } = o;
38
+ if (ve(t) && ve(s))
39
39
  return !0;
40
- const n = e ?? ((f = (s = window.location.hash) == null ? void 0 : s.split("#")) == null ? void 0 : f[1]) ?? window.location.pathname;
41
- if (Ke.VITE_PERMISSION_MODE === "role")
42
- return pe(t) ? !0 : l.hasRole(t);
43
- if (Ke.VITE_PERMISSION_MODE === "permit") {
44
- let u = !1, c = !1;
45
- return pe(t) || (u = l.hasRole(t)), l.isAdmin() ? u : (pe(o) || (c = l.hasPermit(n, o)), u || c);
40
+ const c = e ?? ((p = (r = window.location.hash) == null ? void 0 : r.split("#")) == null ? void 0 : p[1]) ?? window.location.pathname;
41
+ if (Ye.VITE_PERMISSION_MODE === "role")
42
+ return ve(t) ? !0 : a.hasRole(t);
43
+ if (Ye.VITE_PERMISSION_MODE === "permit") {
44
+ let i = !1, d = !1;
45
+ return ve(t) || (i = a.hasRole(t)), a.isAdmin() ? i : (ve(s) || (d = a.hasPermit(c, s)), i || d);
46
46
  }
47
47
  return !1;
48
- }, ya = {
49
- mounted(d, l, e) {
50
- const t = l.value || {}, o = l.arg || "remove", n = t.behavior || o, s = Ve(t);
51
- Ye(d, e, s, n);
48
+ }, xa = {
49
+ mounted(o, a, e) {
50
+ const t = a.value || {}, s = a.arg || "remove", c = t.behavior || s, r = qe(t);
51
+ We(o, e, r, c);
52
52
  },
53
- updated(d, l, e) {
54
- const t = l.value || {}, o = l.arg || "remove", n = t.behavior || o, s = Ve(t);
55
- Ye(d, e, s, n);
53
+ updated(o, a, e) {
54
+ const t = a.value || {}, s = a.arg || "remove", c = t.behavior || s, r = qe(t);
55
+ We(o, e, r, c);
56
56
  }
57
- }, xa = {
58
- mounted: (d, l) => {
59
- d.addEventListener("keydown", (e) => {
60
- e.key === "Enter" && l.value();
57
+ }, wa = {
58
+ mounted: (o, a) => {
59
+ o.addEventListener("keydown", (e) => {
60
+ e.key === "Enter" && a.value();
61
61
  });
62
62
  },
63
- unmounted: (d) => {
64
- d.removeEventListener("keydown", () => {
63
+ unmounted: (o) => {
64
+ o.removeEventListener("keydown", () => {
65
65
  });
66
66
  }
67
- }, Fe = {
68
- auth: ya,
69
- submit: xa
70
- }, Jl = (d, l) => ((l || Object.keys(Fe)).forEach((t) => {
71
- t in Fe && d.directive(t, Fe[t]);
72
- }), d);
73
- var _a = /* @__PURE__ */ ((d) => (d.SYS_CONFIG = "SYS_CONFIG_", d.APP_MENU = "APP_MENU_", d.DICT_TYPE = "DICT_TYPE_", d.HOST_INFO = "HOST_INFO_", d.APP_PERMITS = "APP_PERMITS_", d.USER_SETTINGS = "USER_SETTINGS_", d.DICT_DATA = "DICT_DATA_", d.COMMON_OPTIONS = "COMMON_OPTIONS_", d))(_a || {});
74
- class mt {
67
+ }, Le = {
68
+ auth: xa,
69
+ submit: wa
70
+ }, cr = (o, a) => ((a || Object.keys(Le)).forEach((t) => {
71
+ t in Le && o.directive(t, Le[t]);
72
+ }), o), ce = (o, a) => {
73
+ const e = o.find((t) => t.key === a);
74
+ if (e)
75
+ return e;
76
+ for (const t of o)
77
+ if (t.children) {
78
+ const s = ce(t.children, a);
79
+ if (s)
80
+ return s;
81
+ }
82
+ }, De = (o, a, e) => {
83
+ const t = [], s = [];
84
+ return e || (e = [...o]), e.length && e.forEach((c, r) => {
85
+ let p;
86
+ if (typeof c == "string") {
87
+ const i = ce(o, c);
88
+ p = i ? { ...i } : { key: c, label: c };
89
+ } else {
90
+ const i = ce(o, c.key);
91
+ p = i ? { ...i, ...c } : { ...c };
92
+ }
93
+ p.click || (p.click = (i, d, v) => {
94
+ d && (d.rowData.value = v), p.formVisible ? (p.formVisible.value = !1, setTimeout(() => {
95
+ p.formVisible.value = !0;
96
+ }, 1)) : ae.warning("未配置点击处理事件!");
97
+ }), a === 0 || r < a ? t.push(p) : s.push(p);
98
+ }), { buttons: t, menus: s };
99
+ }, W = (o, a) => o.disabled && typeof o.disabled == "function" ? o.disabled(a) : o.disabled, J = (o, a) => o.visible && typeof o.visible == "function" ? o.visible(a) : o.visible ?? !0, _a = (o, a) => {
100
+ a.reload.value = !0;
101
+ }, ka = (o, a) => {
102
+ a.searchBar.value = !a.searchBar.value;
103
+ }, Ca = (o, a) => {
104
+ switch (a.tableSize.value) {
105
+ case "large":
106
+ a.tableSize.value = "middle";
107
+ break;
108
+ case "middle":
109
+ a.tableSize.value = "small";
110
+ break;
111
+ case "small":
112
+ a.tableSize.value = "large";
113
+ break;
114
+ }
115
+ }, Sa = (o, a) => {
116
+ a.selectable.value = !a.selectable.value, a.selectable.value || (a.selectKeys.value = [], a.selectRows.value = []);
117
+ }, Ta = (o, a) => {
118
+ a.rowExpand.value = !a.rowExpand.value;
119
+ }, He = (o, a) => {
120
+ a.selectable.value = !a.selectable.value;
121
+ }, X = (o, a, e, t, s) => {
122
+ (!o.confirm || s) && o.click && (a ? o.click(a, e, t) : o.click(null, e, t)), Da(o);
123
+ }, $a = (o, a) => {
124
+ a.selectable.value = !a.selectable.value;
125
+ }, ht = () => {
126
+ const o = Ae();
127
+ o.setFullscreen(!o.fullscreen);
128
+ }, Da = (o, a) => {
129
+ (o.icons || o.labels) && (o.iconStatus = o.iconStatus || 0, o.iconStatus += 1, o.labels && o.labels.length && (o.label = o.labels[o.iconStatus % o.labels.length]), o.icons && o.icons.length && (o.icon = o.icons[o.iconStatus % o.icons.length]));
130
+ }, Fa = (o, a) => {
131
+ a ? delete o.visible : o.visible = !1;
132
+ }, _e = [], ur = () => {
133
+ _e.length > 0 || _e.push({
134
+ key: "Reload",
135
+ label: w("webui.utils.tools.refreshTable"),
136
+ icon: "icon-reload",
137
+ click: _a
138
+ }, {
139
+ key: "Query",
140
+ label: w("webui.utils.tools.expandSearch"),
141
+ labels: [w("webui.utils.tools.expandSearch"), w("webui.utils.tools.collapseSearch")],
142
+ icon: "icon-search",
143
+ iconStatus: 0,
144
+ click: ka
145
+ }, {
146
+ key: "RowHeight",
147
+ label: w("webui.utils.tools.rowHeight"),
148
+ icon: "icon-row-height",
149
+ click: Ca
150
+ }, {
151
+ key: "tool.multiple.checkbox",
152
+ label: w("webui.utils.tools.showCheckbox"),
153
+ labels: [w("webui.utils.tools.showCheckbox"), w("webui.utils.tools.hideCheckbox")],
154
+ icon: "icon-checkbox",
155
+ click: Sa
156
+ }, {
157
+ key: "tool.expand.rows",
158
+ label: w("webui.utils.tools.expandRows"),
159
+ labels: [w("webui.utils.tools.expandRows"), w("webui.utils.tools.collapseRows")],
160
+ icon: "icon-row-collapse",
161
+ iconStatus: 0,
162
+ icons: ["icon-row-collapse", "icon-row-expand"],
163
+ click: Ta
164
+ }, {
165
+ key: "tool.export.excel",
166
+ label: w("webui.utils.tools.exportExcel"),
167
+ icon: "icon-export-excel",
168
+ children: [
169
+ {
170
+ key: "tool.export.excel.all",
171
+ label: w("webui.utils.tools.exportAllRecords"),
172
+ click: He
173
+ },
174
+ {
175
+ key: "tool.export.excel.selected",
176
+ label: w("webui.utils.tools.exportSelectedRecords"),
177
+ click: He
178
+ }
179
+ ]
180
+ }, {
181
+ key: "tool.export.pdf",
182
+ label: w("webui.utils.tools.exportPDF"),
183
+ icon: "icon-export-pdf",
184
+ children: [
185
+ {
186
+ key: "tool.export.pdf.selected",
187
+ label: w("webui.utils.tools.exportSelectedRecords"),
188
+ click: $a
189
+ }
190
+ ]
191
+ }, {
192
+ key: "TableHeadset",
193
+ label: w("webui.utils.tools.tableHeaderSettings"),
194
+ icon: "icon-headset",
195
+ dropdown: "headset",
196
+ click: () => {
197
+ }
198
+ // 不设置点击事件
199
+ }, {
200
+ key: "Fullscreen",
201
+ label: w("webui.utils.tools.setFullscreen"),
202
+ labels: [w("webui.utils.tools.setFullscreen"), w("webui.utils.tools.exitFullscreen")],
203
+ icon: "icon-fullscreen",
204
+ iconStatus: 0,
205
+ icons: ["icon-fullscreen", "icon-exitscreen"],
206
+ click: ht
207
+ });
208
+ }, Pa = (o) => {
209
+ if (!o.tools || o.tools.length > 0) {
210
+ const a = [];
211
+ return o.tools ? a.push(...o.tools) : a.push(..._e), { tools: De(_e, 0, a).buttons };
212
+ }
213
+ return {
214
+ tools: []
215
+ };
216
+ };
217
+ var Ia = /* @__PURE__ */ ((o) => (o.SYS_CONFIG = "SYS_CONFIG_", o.APP_MENU = "APP_MENU_", o.DICT_TYPE = "DICT_TYPE_", o.HOST_INFO = "HOST_INFO_", o.APP_PERMITS = "APP_PERMITS_", o.USER_SETTINGS = "USER_SETTINGS_", o.DICT_DATA = "DICT_DATA_", o.COMMON_OPTIONS = "COMMON_OPTIONS_", o))(Ia || {});
218
+ class bt {
75
219
  /**
76
220
  * 设置缓存数据(带服务器时间)
77
221
  */
78
- static setWithServerTime(l, e, t) {
79
- const o = {
222
+ static setWithServerTime(a, e, t) {
223
+ const s = {
80
224
  data: e,
81
225
  lastTime: t
82
226
  };
83
- ge.set({ key: l, storage: "local" }, o);
227
+ he.set({ key: a, storage: "local" }, s);
84
228
  }
85
229
  /**
86
230
  * 设置缓存数据
87
231
  */
88
- static setData(l, e) {
89
- ge.set({ key: l, storage: "local" }, e);
232
+ static setData(a, e) {
233
+ he.set({ key: a, storage: "local" }, e);
90
234
  }
91
235
  /**
92
236
  * 获取缓存数据
93
237
  */
94
- static getData(l) {
95
- const e = ge.get({ key: l, storage: "local" });
96
- return e && mt.isTimedData(e) ? e.data : e ?? null;
238
+ static getData(a) {
239
+ const e = he.get({ key: a, storage: "local" });
240
+ return e && bt.isTimedData(e) ? e.data : e ?? null;
97
241
  }
98
242
  /**
99
243
  * 清除缓存
100
244
  */
101
- static remove(l) {
102
- ge.remove({ key: l, storage: "local" });
245
+ static remove(a) {
246
+ he.remove({ key: a, storage: "local" });
103
247
  }
104
248
  /**
105
249
  * 清理指定前缀的缓存 (基于 localStorage 实现,因为 FrontCache 未提供此方法)
106
250
  */
107
- static clearByPrefix(l) {
251
+ static clearByPrefix(a) {
108
252
  for (let e = 0; e < localStorage.length; e++) {
109
253
  const t = localStorage.key(e);
110
- t && t.startsWith("frontCache::" + l) && localStorage.removeItem(t);
254
+ t && t.startsWith("frontCache::" + a) && localStorage.removeItem(t);
111
255
  }
112
256
  }
113
257
  /**
114
258
  * 清理所有缓存
115
259
  */
116
260
  static clearAll() {
117
- for (let l = localStorage.length - 1; l >= 0; l--) {
118
- const e = localStorage.key(l);
261
+ for (let a = localStorage.length - 1; a >= 0; a--) {
262
+ const e = localStorage.key(a);
119
263
  e && e.startsWith("frontCache::") && localStorage.removeItem(e);
120
264
  }
121
265
  }
122
266
  /**
123
267
  * 判断是否是带时间戳的数据
124
268
  */
125
- static isTimedData(l) {
126
- return l && typeof l == "object" && "data" in l && "lastTime" in l && typeof l.lastTime == "number";
269
+ static isTimedData(a) {
270
+ return a && typeof a == "object" && "data" in a && "lastTime" in a && typeof a.lastTime == "number";
127
271
  }
128
272
  }
129
- async function Xl() {
273
+ async function dr() {
130
274
  try {
131
- const d = await Ne(
275
+ const o = await Oe(
132
276
  {
133
277
  api: "PLATFORM_API",
134
278
  url: "/api/SysCacheSvr/getLastTime",
@@ -136,18 +280,18 @@ async function Xl() {
136
280
  },
137
281
  {}
138
282
  );
139
- if ((d == null ? void 0 : d.status) === ze.SUCCESS) {
140
- const l = d.data;
141
- Object.keys(l).forEach((e) => {
142
- const t = l[e];
143
- ["local", "session"].forEach((n) => {
144
- const s = n === "local" ? localStorage : sessionStorage;
145
- for (let f = 0; f < s.length; f++) {
146
- const u = s.key(f);
147
- if (u && u.endsWith(e))
283
+ if ((o == null ? void 0 : o.status) === Ke.SUCCESS) {
284
+ const a = o.data;
285
+ Object.keys(a).forEach((e) => {
286
+ const t = a[e];
287
+ ["local", "session"].forEach((c) => {
288
+ const r = c === "local" ? localStorage : sessionStorage;
289
+ for (let p = 0; p < r.length; p++) {
290
+ const i = r.key(p);
291
+ if (i && i.endsWith(e))
148
292
  try {
149
- const c = JSON.parse(s.getItem(u));
150
- c && typeof c == "object" && "lastTime" in c && typeof c.lastTime == "number" && c.lastTime !== t && s.removeItem(u);
293
+ const d = JSON.parse(r.getItem(i));
294
+ d && typeof d == "object" && "lastTime" in d && typeof d.lastTime == "number" && d.lastTime !== t && r.removeItem(i);
151
295
  } catch {
152
296
  continue;
153
297
  }
@@ -155,12 +299,12 @@ async function Xl() {
155
299
  });
156
300
  });
157
301
  }
158
- } catch (d) {
159
- console.error("检查缓存更新失败", d);
302
+ } catch (o) {
303
+ console.error("检查缓存更新失败", o);
160
304
  }
161
305
  }
162
- const Zl = async (d, l) => {
163
- const e = await vt(d, l);
306
+ const pr = async (o, a) => {
307
+ const e = await gt(o, a);
164
308
  if (e.success)
165
309
  return {
166
310
  blobUrl: e.blobUrl,
@@ -168,85 +312,85 @@ const Zl = async (d, l) => {
168
312
  blob: null
169
313
  // 不再返回blob对象,使用URL即可
170
314
  };
171
- throw new Error(e.error || F("webui.utils.formCsv.csvToExcelFailed"));
172
- }, er = async (d, l) => {
315
+ throw new Error(e.error || w("webui.utils.formCsv.csvToExcelFailed"));
316
+ }, fr = async (o, a) => {
173
317
  try {
174
- const t = new TextDecoder("utf-8").decode(d), o = await vt(t, l);
318
+ const t = new TextDecoder("utf-8").decode(o), s = await gt(t, a);
175
319
  return {
176
- success: o.success,
177
- blobUrl: o.blobUrl,
178
- fileName: o.fileName,
179
- error: o.error,
320
+ success: s.success,
321
+ blobUrl: s.blobUrl,
322
+ fileName: s.fileName,
323
+ error: s.error,
180
324
  csvContent: t
181
325
  // 保留原始CSV内容
182
326
  };
183
327
  } catch (e) {
184
- return console.error(F("webui.utils.formCsv.csvProcessFailed") + ":", e), {
328
+ return console.error(w("webui.utils.formCsv.csvProcessFailed") + ":", e), {
185
329
  success: !1,
186
- error: e instanceof Error ? e.message : F("webui.utils.formCsv.unknownError")
330
+ error: e instanceof Error ? e.message : w("webui.utils.formCsv.unknownError")
187
331
  };
188
332
  }
189
- }, gt = (d) => d ? Array.isArray(d) ? d.join(".") : d : "", ht = (d) => d.map((l) => ({
190
- label: l.title,
191
- value: gt(l.dataIndex) || l.key || ""
192
- })), bt = (d, l) => d.map((e, t) => {
193
- const o = { ...e };
194
- return l.forEach((n) => {
195
- const s = gt(n.dataIndex) || n.key;
196
- s && n.customRender && (o[s] = n.customRender({
197
- text: e[s],
333
+ }, yt = (o) => o ? Array.isArray(o) ? o.join(".") : o : "", xt = (o) => o.map((a) => ({
334
+ label: a.title,
335
+ value: yt(a.dataIndex) || a.key || ""
336
+ })), wt = (o, a) => o.map((e, t) => {
337
+ const s = { ...e };
338
+ return a.forEach((c) => {
339
+ const r = yt(c.dataIndex) || c.key;
340
+ r && c.customRender && (s[r] = c.customRender({
341
+ text: e[r],
198
342
  record: e,
199
343
  index: t,
200
- column: n
344
+ column: c
201
345
  }));
202
- }), o;
203
- }), yt = async (d, l, e) => {
346
+ }), s;
347
+ }), _t = async (o, a, e) => {
204
348
  try {
205
- const o = (await import("@json2csv/plainjs")).Parser, s = new o({ fields: l }).parse(e), f = new Blob([`\uFEFF${s}`], { type: "text/csv" });
206
- ba(f, d);
349
+ const s = (await import("@json2csv/plainjs")).Parser, r = new s({ fields: a }).parse(e), p = new Blob([`\uFEFF${r}`], { type: "text/csv" });
350
+ ya(p, o);
207
351
  } catch (t) {
208
- console.error(F("webui.utils.exportTable.exportFailed") + ":", t), re.error(F("webui.utils.exportTable.fileExportFailed"));
352
+ console.error(w("webui.utils.exportTable.exportFailed") + ":", t), ae.error(w("webui.utils.exportTable.fileExportFailed"));
209
353
  }
210
- }, tr = async (d, l, e) => {
354
+ }, vr = async (o, a, e) => {
211
355
  try {
212
- const t = xt(d), o = l.filter((f) => f.visible !== !1 && f.export !== !1), n = ht(o), s = bt(e, o);
213
- await yt(t, n, s);
356
+ const t = kt(o), s = a.filter((p) => p.visible !== !1 && p.export !== !1), c = xt(s), r = wt(e, s);
357
+ await _t(t, c, r);
214
358
  } catch (t) {
215
- console.error(F("webui.utils.exportTable.exportFailed") + ":", t), re.error(F("webui.utils.exportTable.fileExportFailed"));
359
+ console.error(w("webui.utils.exportTable.exportFailed") + ":", t), ae.error(w("webui.utils.exportTable.fileExportFailed"));
216
360
  }
217
- }, xt = (d) => {
218
- const l = /\{([^}]+)\}/g;
219
- return d.replace(l, (e, t) => Le().format(t));
220
- }, ar = async (d, l, e, t) => {
361
+ }, kt = (o) => {
362
+ const a = /\{([^}]+)\}/g;
363
+ return o.replace(a, (e, t) => Ne().format(t));
364
+ }, mr = async (o, a, e, t) => {
221
365
  try {
222
- const o = xt(d), n = l.filter((c) => c.visible !== !1), s = ht(n);
223
- let f = e.page, u = e.gridQuery;
224
- return t.api || (t.api = f.api), t.authorize === void 0 && (t.authorize = f.authorize), e.isGridLoading.value = !0, Ne(t, u).then(async (c) => {
225
- if (e.isGridLoading.value = !1, (c == null ? void 0 : c.status) === ze.SUCCESS) {
226
- if (c.data) {
227
- let v = c.data;
228
- const r = bt(v, n);
229
- await yt(o, s, r);
366
+ const s = kt(o), c = a.filter((d) => d.visible !== !1), r = xt(c);
367
+ let p = e.page, i = e.gridQuery;
368
+ return t.api || (t.api = p.api), t.authorize === void 0 && (t.authorize = p.authorize), e.isGridLoading.value = !0, Oe(t, i).then(async (d) => {
369
+ if (e.isGridLoading.value = !1, (d == null ? void 0 : d.status) === Ke.SUCCESS) {
370
+ if (d.data) {
371
+ let v = d.data;
372
+ const n = wt(v, c);
373
+ await _t(s, r, n);
230
374
  }
231
- } else if ((c == null ? void 0 : c.errno) == Ct) {
232
- Me().logout(!1);
375
+ } else if ((d == null ? void 0 : d.errno) == Dt) {
376
+ Be().logout(!1);
233
377
  return;
234
378
  }
235
379
  });
236
- } catch (o) {
237
- console.error(F("webui.utils.exportTable.exportFailed") + ":", o), re.error(F("webui.utils.exportTable.fileExportFailed"));
380
+ } catch (s) {
381
+ console.error(w("webui.utils.exportTable.exportFailed") + ":", s), ae.error(w("webui.utils.exportTable.fileExportFailed"));
238
382
  }
239
- }, lr = /* @__PURE__ */ E({
383
+ }, gr = /* @__PURE__ */ L({
240
384
  __name: "fullscreen",
241
- setup(d) {
242
- const l = Ge();
243
- return (e, t) => (i(), _(V, {
244
- onClick: ve(a(St), ["stop"]),
245
- icon: a(l).fullscreen ? "icon-exitscreen" : "icon-fullscreen",
385
+ setup(o) {
386
+ const a = Ae();
387
+ return (e, t) => (u(), k(V, {
388
+ onClick: ge(l(ht), ["stop"]),
389
+ icon: l(a).fullscreen ? "icon-exitscreen" : "icon-fullscreen",
246
390
  class: "w-[17px] h-[17px]"
247
391
  }, null, 8, ["onClick", "icon"]));
248
392
  }
249
- }), wa = { class: "ml-2" }, ka = /* @__PURE__ */ E({
393
+ }), Ea = { class: "ml-2" }, La = /* @__PURE__ */ L({
250
394
  inheritAttrs: !1,
251
395
  __name: "helper",
252
396
  props: {
@@ -255,30 +399,30 @@ const Zl = async (d, l) => {
255
399
  size: {},
256
400
  placement: {}
257
401
  },
258
- setup(d) {
259
- const l = ue();
260
- return (e, t) => (i(), _(a(Jt), {
402
+ setup(o) {
403
+ const a = de();
404
+ return (e, t) => (u(), k(l(Xt), {
261
405
  placement: e.placement ?? "topRight"
262
406
  }, {
263
- content: x(() => [
264
- R(e.$slots, "default", {}, () => [
407
+ content: _(() => [
408
+ O(e.$slots, "default", {}, () => [
265
409
  I("div", {
266
- class: B(["text-[14px]", [e.maxWidth]])
267
- }, M(e.text), 3)
410
+ class: R(["text-[14px]", [e.maxWidth]])
411
+ }, E(e.text), 3)
268
412
  ])
269
413
  ]),
270
- default: x(() => [
271
- I("span", wa, [
272
- D(V, A({
414
+ default: _(() => [
415
+ I("span", Ea, [
416
+ F(V, N({
273
417
  icon: "icon-question-circle",
274
418
  class: ["text-[#888]", [e.size ? "w-" + e.size + " h-" + e.size : "w-5 h-5"]]
275
- }, a(l)), null, 16, ["class"])
419
+ }, l(a)), null, 16, ["class"])
276
420
  ])
277
421
  ]),
278
422
  _: 3
279
423
  }, 8, ["placement"]));
280
424
  }
281
- }), rr = /* @__PURE__ */ E({
425
+ }), hr = /* @__PURE__ */ L({
282
426
  __name: "layoutIcon",
283
427
  props: {
284
428
  icon: {
@@ -288,21 +432,21 @@ const Zl = async (d, l) => {
288
432
  type: Array
289
433
  }
290
434
  },
291
- setup(d) {
292
- const l = d, t = $t({
293
- iconUrl: `${Wt.MICROLAYOUT_ICONS}`,
435
+ setup(o) {
436
+ const a = o, t = Ft({
437
+ iconUrl: `${qt.MICROLAYOUT_ICONS}`,
294
438
  monoColor: !0,
295
- icon: l.icon,
296
- icons: l.icons
439
+ icon: a.icon,
440
+ icons: a.icons
297
441
  });
298
- return (o, n) => d.icon || d.icons ? (i(), _(a(t), A({
442
+ return (s, c) => o.icon || o.icons ? (u(), k(l(t), N({
299
443
  key: 0,
300
- icon: d.icon,
301
- icons: d.icons,
444
+ icon: o.icon,
445
+ icons: o.icons,
302
446
  class: ["align-middle"]
303
- }, o.$attrs), null, 16, ["icon", "icons"])) : k("", !0);
447
+ }, s.$attrs), null, 16, ["icon", "icons"])) : C("", !0);
304
448
  }
305
- }), Ca = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, sr = /* @__PURE__ */ E({
449
+ }), Ua = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, br = /* @__PURE__ */ L({
306
450
  __name: "index",
307
451
  props: {
308
452
  saveText: {},
@@ -312,32 +456,32 @@ const Zl = async (d, l) => {
312
456
  drawerSave: { type: Function },
313
457
  drawerSaveAs: { type: Function }
314
458
  },
315
- setup(d) {
316
- const { useToken: l } = nt, { token: e } = l(), t = C(!1), o = d, n = o.editorCtrl;
317
- we(se.EditorControl, n), U(
318
- () => n.visible.value,
319
- (c) => {
320
- t.value = c ?? !1;
459
+ setup(o) {
460
+ const { useToken: a } = ct, { token: e } = a(), t = T(!1), s = o, c = s.editorCtrl;
461
+ Ce(oe.EditorControl, c), M(
462
+ () => c.visible.value,
463
+ (d) => {
464
+ t.value = d ?? !1;
321
465
  }
322
- ), ae(() => {
323
- t.value = n.visible.value ?? !1;
466
+ ), le(() => {
467
+ t.value = c.visible.value ?? !1;
324
468
  });
325
- const s = () => {
326
- o.drawerSave ? o.drawerSave() : n && We(n);
327
- }, f = () => {
328
- o.drawerSaveAs ? o.drawerSaveAs() : n && Tt(n);
329
- }, u = () => {
330
- Dt(n);
469
+ const r = () => {
470
+ s.drawerSave ? s.drawerSave() : c && Qe(c);
471
+ }, p = () => {
472
+ s.drawerSaveAs ? s.drawerSaveAs() : c && Pt(c);
473
+ }, i = () => {
474
+ It(c);
331
475
  };
332
- return (c, v) => (i(), _(a(Xt), {
476
+ return (d, v) => (u(), k(l(Zt), {
333
477
  open: t.value,
334
- "onUpdate:open": v[0] || (v[0] = (r) => t.value = r),
478
+ "onUpdate:open": v[0] || (v[0] = (n) => t.value = n),
335
479
  "get-container": !1,
336
480
  closable: !1,
337
481
  "header-style": {
338
482
  height: "40px",
339
483
  padding: "10px 6px 10px 16px",
340
- backgroundColor: a(e).colorBgLayout
484
+ backgroundColor: l(e).colorBgLayout
341
485
  },
342
486
  "body-style": {
343
487
  padding: "10px 16px"
@@ -350,12 +494,12 @@ const Zl = async (d, l) => {
350
494
  boxShadow: "rgba(0, 0, 0, 0.3) -2px 0px 8px"
351
495
  },
352
496
  width: "420px",
353
- onClose: u
497
+ onClose: i
354
498
  }, {
355
- extra: x(() => [
356
- R(c.$slots, "extra", {}, () => [
357
- I("div", Ca, [
358
- D(a(V), {
499
+ extra: _(() => [
500
+ O(d.$slots, "extra", {}, () => [
501
+ I("div", Ua, [
502
+ F(l(V), {
359
503
  class: "top-[-2px] left-[2px] w-6 h-6",
360
504
  icon: "icon-new",
361
505
  angle: 45,
@@ -363,49 +507,49 @@ const Zl = async (d, l) => {
363
507
  clickable: "",
364
508
  color: "#666",
365
509
  position: [0, 0],
366
- onClick: u
510
+ onClick: i
367
511
  })
368
512
  ])
369
513
  ])
370
514
  ]),
371
- default: x(() => [
372
- R(c.$slots, "default")
515
+ default: _(() => [
516
+ O(d.$slots, "default")
373
517
  ]),
374
- footer: x(() => [
375
- R(c.$slots, "footer", {}, () => [
376
- D(a(ce), null, {
377
- default: x(() => [
378
- c.cancelText !== "" ? (i(), _(a(ee), {
518
+ footer: _(() => [
519
+ O(d.$slots, "footer", {}, () => [
520
+ F(l(pe), null, {
521
+ default: _(() => [
522
+ d.cancelText !== "" ? (u(), k(l(ee), {
379
523
  key: 0,
380
- onClick: u
524
+ onClick: i
381
525
  }, {
382
- default: x(() => [
383
- G(M(c.cancelText ?? a(F)("webui.common.cancel")), 1)
526
+ default: _(() => [
527
+ Y(E(d.cancelText ?? l(w)("webui.common.cancel")), 1)
384
528
  ]),
385
529
  _: 1
386
- })) : k("", !0),
387
- c.saveAsText !== "" && a(n).saveAsBtnVisible !== !1 ? (i(), _(a(ee), {
530
+ })) : C("", !0),
531
+ d.saveAsText !== "" && l(c).saveAsBtnVisible !== !1 ? (u(), k(l(ee), {
388
532
  key: 1,
389
- onClick: f,
533
+ onClick: p,
390
534
  type: "primary",
391
- loading: a(n).isFormSaving.value
535
+ loading: l(c).isFormSaving.value
392
536
  }, {
393
- default: x(() => [
394
- G(M(c.saveAsText ?? a(F)("webui.common.saveAs")), 1)
537
+ default: _(() => [
538
+ Y(E(d.saveAsText ?? l(w)("webui.common.saveAs")), 1)
395
539
  ]),
396
540
  _: 1
397
- }, 8, ["loading"])) : k("", !0),
398
- c.saveText !== "" && a(n).saveBtnVisible !== !1 ? (i(), _(a(ee), {
541
+ }, 8, ["loading"])) : C("", !0),
542
+ d.saveText !== "" && l(c).saveBtnVisible !== !1 ? (u(), k(l(ee), {
399
543
  key: 2,
400
- onClick: s,
544
+ onClick: r,
401
545
  type: "primary",
402
- loading: a(n).isFormSaving.value
546
+ loading: l(c).isFormSaving.value
403
547
  }, {
404
- default: x(() => [
405
- G(M(c.saveText ?? a(F)("webui.common.save")), 1)
548
+ default: _(() => [
549
+ Y(E(d.saveText ?? l(w)("webui.common.save")), 1)
406
550
  ]),
407
551
  _: 1
408
- }, 8, ["loading"])) : k("", !0)
552
+ }, 8, ["loading"])) : C("", !0)
409
553
  ]),
410
554
  _: 1
411
555
  })
@@ -414,45 +558,45 @@ const Zl = async (d, l) => {
414
558
  _: 3
415
559
  }, 8, ["open", "header-style"]));
416
560
  }
417
- }), or = /* @__PURE__ */ E({
561
+ }), yr = /* @__PURE__ */ L({
418
562
  __name: "index",
419
563
  props: {
420
564
  labelWidth: {},
421
565
  wrapperWidth: {},
422
566
  editorCtrl: {}
423
567
  },
424
- setup(d) {
425
- const l = d, e = l.editorCtrl ?? ye(se.EditorControl, void 0);
426
- return we(se.LabelWidth, l.labelWidth), (t, o) => {
427
- const n = ne("submit");
428
- return Q((i(), _(a(it), {
429
- "label-col": { flex: l.labelWidth ?? "85px" },
568
+ setup(o) {
569
+ const a = o, e = a.editorCtrl ?? xe(oe.EditorControl, void 0);
570
+ return Ce(oe.LabelWidth, a.labelWidth), (t, s) => {
571
+ const c = ne("submit");
572
+ return Q((u(), k(l(ut), {
573
+ "label-col": { flex: a.labelWidth ?? "85px" },
430
574
  "wrapper-col": {
431
- flex: l.wrapperWidth ?? "1 0 280px"
575
+ flex: a.wrapperWidth ?? "1 0 280px"
432
576
  },
433
577
  style: {
434
578
  display: "flex",
435
579
  flexWrap: "wrap"
436
580
  }
437
581
  }, {
438
- default: x(() => [
439
- R(t.$slots, "default")
582
+ default: _(() => [
583
+ O(t.$slots, "default")
440
584
  ]),
441
585
  _: 3
442
586
  }, 8, ["label-col", "wrapper-col"])), [
443
587
  [
444
- n,
588
+ c,
445
589
  () => {
446
- a(e) && a(We)(a(e));
590
+ l(e) && l(Qe)(l(e));
447
591
  }
448
592
  ]
449
593
  ]);
450
594
  };
451
595
  }
452
- }), Sa = {
596
+ }), Ma = {
453
597
  key: 0,
454
598
  class: "flex-grow"
455
- }, $a = { class: "w-8 mt-[-2px]" }, nr = /* @__PURE__ */ E({
599
+ }, Na = { class: "w-8 mt-[-2px]" }, xr = /* @__PURE__ */ L({
456
600
  inheritAttrs: !1,
457
601
  __name: "formItem",
458
602
  props: {
@@ -463,71 +607,71 @@ const Zl = async (d, l) => {
463
607
  nextLine: { type: Boolean },
464
608
  bottomMargin: {}
465
609
  },
466
- setup(d) {
467
- const l = d, e = ue(), t = ye(se.EditorControl, void 0), o = ye(se.LabelWidth, "85px") ?? "85px", n = qe(l, t), s = C(!1);
610
+ setup(o) {
611
+ const a = o, e = de(), t = xe(oe.EditorControl, void 0), s = xe(oe.LabelWidth, "85px") ?? "85px", c = Je(a, t), r = T(!1);
468
612
  setTimeout(() => {
469
- s.value = !0;
613
+ r.value = !0;
470
614
  }, 30);
471
- const f = j(() => {
472
- var c;
473
- if (!l.rule)
615
+ const p = K(() => {
616
+ var d;
617
+ if (!a.rule)
474
618
  return !1;
475
- const u = He(l.rule.split("."), (c = t == null ? void 0 : t.formRules) == null ? void 0 : c.value);
476
- return u ? (u.required || (n.value.errClass = "", n.value.msg = ""), u.required ?? !0) : (Zt.error(`"${l.label}" 的验证规则 \`${l.rule}\` 不存在`), n.value.errClass = "text-[#ff4d4f]", n.value.msg = `规则 \`${l.rule}\` 不存在,请检查代码!`, !0);
619
+ const i = Xe(a.rule.split("."), (d = t == null ? void 0 : t.formRules) == null ? void 0 : d.value);
620
+ return i ? (i.required || (c.value.errClass = "", c.value.msg = ""), i.required ?? !0) : (ea.error(w("webui.components.content.formItem.validationRuleNotFound", { label: a.label, rule: a.rule })), c.value.errClass = "text-[#ff4d4f]", c.value.msg = w("webui.components.content.formItem.validationRuleNotFound", { label: a.label, rule: a.rule }), !0);
477
621
  });
478
- return (u, c) => (i(), y("div", {
479
- class: B(["relative", u.bottomMargin ? u.bottomMargin : "mb-1"])
622
+ return (i, d) => (u(), x("div", {
623
+ class: R(["relative", i.bottomMargin ? i.bottomMargin : "mb-1"])
480
624
  }, [
481
- s.value ? (i(), _(a(ut), A({
625
+ r.value ? (u(), k(l(dt), N({
482
626
  key: 0,
483
- required: f.value,
484
- class: ["relative", [u.nextLine ? "mb-0" : u.rule ? "" : "mb-3"]]
485
- }, a(e)), {
486
- label: x(() => [
627
+ required: p.value,
628
+ class: ["relative", [i.nextLine ? "mb-0" : i.rule ? "" : "mb-3"]]
629
+ }, l(e)), {
630
+ label: _(() => [
487
631
  I("span", {
488
- class: B([a(n).errClass ? "text-[#ff4d4f]" : "", "w-full"])
489
- }, M(u.label), 3)
632
+ class: R([l(c).errClass ? "text-[#ff4d4f]" : "", "w-full"])
633
+ }, E(i.label), 3)
490
634
  ]),
491
- default: x(() => [
635
+ default: _(() => [
492
636
  I("div", {
493
- class: B(["flex items-center", u.width ? u.width : "w-full"])
637
+ class: R(["flex items-center", i.width ? i.width : "w-full"])
494
638
  }, [
495
- u.nextLine ? k("", !0) : (i(), y("div", Sa, [
496
- R(u.$slots, "default")
639
+ i.nextLine ? C("", !0) : (u(), x("div", Ma, [
640
+ O(i.$slots, "default")
497
641
  ])),
498
- I("div", $a, [
499
- R(u.$slots, "helper", {}, () => [
500
- u.helper ? (i(), _(a(ka), {
642
+ I("div", Na, [
643
+ O(i.$slots, "helper", {}, () => [
644
+ i.helper ? (u(), k(l(La), {
501
645
  key: 0,
502
- text: u.helper
503
- }, null, 8, ["text"])) : k("", !0)
646
+ text: i.helper
647
+ }, null, 8, ["text"])) : C("", !0)
504
648
  ])
505
649
  ])
506
650
  ], 2)
507
651
  ]),
508
652
  _: 3
509
- }, 16, ["required", "class"])) : k("", !0),
510
- u.nextLine ? (i(), y("div", {
653
+ }, 16, ["required", "class"])) : C("", !0),
654
+ i.nextLine ? (u(), x("div", {
511
655
  key: 1,
512
- class: B(["w-[95%] flex items-center relative", [u.nextLine ? u.rule ? "mb-7" : "mb-3" : ""]])
656
+ class: R(["w-[95%] flex items-center relative", [i.nextLine ? i.rule ? "mb-7" : "mb-3" : ""]])
513
657
  }, [
514
- R(u.$slots, "default")
515
- ], 2)) : k("", !0),
516
- a(n).errClass ? (i(), y("span", {
658
+ O(i.$slots, "default")
659
+ ], 2)) : C("", !0),
660
+ l(c).errClass ? (u(), x("span", {
517
661
  key: 2,
518
- style: Oe({ left: u.nextLine ? "2px" : a(o) }),
662
+ style: je({ left: i.nextLine ? "2px" : l(s) }),
519
663
  class: "absolute bottom-[3px] text-[12px] text-[#ff4d4fcc]"
520
- }, M(a(n).msg), 5)) : k("", !0)
664
+ }, E(l(c).msg), 5)) : C("", !0)
521
665
  ], 2));
522
666
  }
523
- }), Ta = /* @__PURE__ */ E({
667
+ }), Ra = /* @__PURE__ */ L({
524
668
  __name: "listOperate",
525
669
  props: {
526
670
  record: {},
527
671
  gridCtrl: {}
528
672
  },
529
- setup(d) {
530
- const l = d, e = l.gridCtrl, t = j(() => de.currentRoute.value.path), o = [
673
+ setup(o) {
674
+ const a = o, e = a.gridCtrl, t = K(() => fe.currentRoute.value.path), s = [
531
675
  {
532
676
  key: "Edit",
533
677
  label: "",
@@ -536,7 +680,7 @@ const Zl = async (d, l) => {
536
680
  visible: !0,
537
681
  role: ["Super", "Admin"],
538
682
  permit: ":edit",
539
- click: () => Qe(e, l.record)
683
+ click: () => Ze(e, a.record)
540
684
  },
541
685
  {
542
686
  key: "Delete",
@@ -548,106 +692,106 @@ const Zl = async (d, l) => {
548
692
  role: ["Super", "Admin"],
549
693
  permit: ":delete",
550
694
  confirm: !0,
551
- confirmText: F("webui.components.content.table.confirmDelete"),
552
- click: () => Je(e, l.record)
695
+ confirmText: w("webui.components.content.table.confirmDelete"),
696
+ click: () => et(e, a.record)
553
697
  }
554
- ], { buttons: n, menus: s } = Ae(o, 0, e.operates), f = (u) => {
555
- if (typeof u.disabled == "boolean")
556
- return u.disabled;
557
- if (typeof u.disabled == "function")
558
- return W(u, l.record) ?? !1;
559
- if (l.record.hasOwnProperty(e.statusKey))
560
- switch (u.key) {
698
+ ], { buttons: c, menus: r } = De(s, 0, e.operates), p = (i) => {
699
+ if (typeof i.disabled == "boolean")
700
+ return i.disabled;
701
+ if (typeof i.disabled == "function")
702
+ return W(i, a.record) ?? !1;
703
+ if (a.record.hasOwnProperty(e.statusKey))
704
+ switch (i.key) {
561
705
  case "Edit":
562
- return !l.record[e.statusKey];
706
+ return !a.record[e.statusKey];
563
707
  case "Delete":
564
- return !!l.record[e.statusKey];
708
+ return !!a.record[e.statusKey];
565
709
  }
566
710
  return !1;
567
711
  };
568
- return (u, c) => {
712
+ return (i, d) => {
569
713
  const v = ne("auth");
570
- return i(), _(a(xe), { theme: {
714
+ return u(), k(l(we), { theme: {
571
715
  token: {
572
716
  fontSize: 13
573
717
  }
574
718
  } }, {
575
- default: x(() => [
576
- D(a(ce), null, {
577
- default: x(() => [
578
- (i(!0), y(L, null, Y(a(n), (r) => (i(), y(L, {
579
- key: r.key
719
+ default: _(() => [
720
+ F(l(pe), null, {
721
+ default: _(() => [
722
+ (u(!0), x(U, null, j(l(c), (n) => (u(), x(U, {
723
+ key: n.key
580
724
  }, [
581
- a(J)(r, l.record) ? (i(), _(a(ct), {
725
+ l(J)(n, a.record) ? (u(), k(l(pt), {
582
726
  key: 0,
583
- disabled: f(r) || !r.confirm,
584
- cancelText: a(F)("webui.common.no"),
585
- okText: a(F)("webui.common.yes"),
586
- title: r.confirmText,
727
+ disabled: p(n) || !n.confirm,
728
+ cancelText: l(w)("webui.common.no"),
729
+ okText: l(w)("webui.common.yes"),
730
+ title: n.confirmText,
587
731
  okButtonProps: { size: "small" },
588
732
  cancelButtonProps: { size: "small" },
589
- onConfirm: (m) => a(X)(r, a(e).page, a(e), l.record, !0)
733
+ onConfirm: (m) => l(X)(n, l(e).page, l(e), a.record, !0)
590
734
  }, {
591
- default: x(() => [
592
- a(J)(r, l.record) ? Q((i(), _(a(V), {
593
- key: r.key,
594
- icon: r.icon,
595
- danger: r.danger,
596
- disabled: f(r),
597
- onClick: (m) => !f(r) && a(X)(r, a(e).page, a(e), l.record),
598
- clickable: !f(r),
599
- class: B([
735
+ default: _(() => [
736
+ l(J)(n, a.record) ? Q((u(), k(l(V), {
737
+ key: n.key,
738
+ icon: n.icon,
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),
743
+ class: R([
600
744
  "w-4 h-4",
601
- r.danger ? "text-red-500" : "text-gray-600",
602
- f(r) ? "opacity-30 cursor-not-allowed" : "hover:text-gray-800"
745
+ n.danger ? "text-red-500" : "text-gray-600",
746
+ p(n) ? "opacity-30 cursor-not-allowed" : "hover:text-gray-800"
603
747
  ])
604
748
  }, null, 8, ["icon", "danger", "disabled", "onClick", "clickable", "class"])), [
605
- [v, { url: t.value, role: r.role, permit: r.permit }]
606
- ]) : k("", !0)
749
+ [v, { url: t.value, role: n.role, permit: n.permit }]
750
+ ]) : C("", !0)
607
751
  ]),
608
752
  _: 2
609
- }, 1032, ["disabled", "cancelText", "okText", "title", "onConfirm"])) : k("", !0)
753
+ }, 1032, ["disabled", "cancelText", "okText", "title", "onConfirm"])) : C("", !0)
610
754
  ], 64))), 128)),
611
- u.record[a(e).statusKey] == 1 ? (i(), _(a(xe), {
755
+ i.record[l(e).statusKey] == 1 ? (u(), k(l(we), {
612
756
  key: 0,
613
757
  autoInsertSpaceInButton: !1
614
758
  }, {
615
- default: x(() => [
616
- a(s).length > 0 ? (i(), _(a(dt), {
759
+ default: _(() => [
760
+ l(r).length > 0 ? (u(), k(l(ft), {
617
761
  key: 0,
618
762
  size: "small"
619
763
  }, {
620
- overlay: x(() => [
621
- D(a(Ce), null, {
622
- default: x(() => [
623
- (i(!0), y(L, null, Y(a(s), (r) => (i(), y(L, {
624
- key: r.key
764
+ overlay: _(() => [
765
+ F(l(Te), null, {
766
+ default: _(() => [
767
+ (u(!0), x(U, null, j(l(r), (n) => (u(), x(U, {
768
+ key: n.key
625
769
  }, [
626
- a(J)(r, l.record) ? Q((i(), _(a(Se), {
770
+ l(J)(n, a.record) ? Q((u(), k(l($e), {
627
771
  key: 0,
628
- disabled: f(r),
629
- onClick: (m) => a(X)(r, a(e).page, a(e), l.record)
772
+ disabled: p(n),
773
+ onClick: (m) => l(X)(n, l(e).page, l(e), a.record)
630
774
  }, {
631
- default: x(() => [
632
- G(M(r.label), 1)
775
+ default: _(() => [
776
+ Y(E(n.label), 1)
633
777
  ]),
634
778
  _: 2
635
779
  }, 1032, ["disabled", "onClick"])), [
636
- [v, { url: t.value, role: r.role, permit: r.permit }]
637
- ]) : k("", !0)
780
+ [v, { url: t.value, role: n.role, permit: n.permit }]
781
+ ]) : C("", !0)
638
782
  ], 64))), 128))
639
783
  ]),
640
784
  _: 1
641
785
  })
642
786
  ]),
643
- default: x(() => [
644
- G(M(a(F)("webui.components.content.table.more")) + " ", 1)
787
+ default: _(() => [
788
+ Y(E(l(w)("webui.components.content.table.more")) + " ", 1)
645
789
  ]),
646
790
  _: 1
647
- })) : k("", !0)
791
+ })) : C("", !0)
648
792
  ]),
649
793
  _: 1
650
- })) : k("", !0)
794
+ })) : C("", !0)
651
795
  ]),
652
796
  _: 1
653
797
  })
@@ -656,94 +800,94 @@ const Zl = async (d, l) => {
656
800
  });
657
801
  };
658
802
  }
659
- }), Da = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, Pa = /* @__PURE__ */ E({
803
+ }), Ba = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, Aa = /* @__PURE__ */ L({
660
804
  __name: "icontool",
661
805
  props: {
662
806
  gridCtrl: {}
663
807
  },
664
- setup(d) {
665
- const l = d, e = l.gridCtrl, { tools: t } = Pt(l.gridCtrl), o = Ge();
666
- U(
808
+ setup(o) {
809
+ const a = o, e = a.gridCtrl, { tools: t } = Pa(a.gridCtrl), s = Ae();
810
+ M(
667
811
  () => e.selectable.value,
668
- (f) => {
669
- me(t, "tool.export.excel.selected") && (me(t, "tool.export.excel.selected").disabled = !f), me(t, "tool.export.pdf.selected") && (me(t, "tool.export.pdf.selected").disabled = !f);
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);
670
814
  }
671
815
  );
672
- const n = C([]);
673
- U(
816
+ const c = T([]);
817
+ M(
674
818
  () => e.columns.value,
675
- (f) => {
676
- n.value = Xe(f, !0);
819
+ (p) => {
820
+ c.value = tt(p, !0);
677
821
  },
678
822
  { deep: !0, immediate: !0 }
679
823
  );
680
- const s = () => {
681
- e.columns.value.splice(0, e.columns.value.length, ...n.value), o.setTableColumns(de.currentRoute.value.path, e.columns.value);
824
+ const r = () => {
825
+ e.columns.value.splice(0, e.columns.value.length, ...c.value), s.setTableColumns(fe.currentRoute.value.path, e.columns.value);
682
826
  };
683
- return (f, u) => (i(), y("div", Da, [
684
- (i(!0), y(L, null, Y(a(t), (c, v) => (i(), y(L, {
685
- key: c.key
827
+ return (p, i) => (u(), x("div", Ba, [
828
+ (u(!0), x(U, null, j(l(t), (d, v) => (u(), x(U, {
829
+ key: d.key
686
830
  }, [
687
- a(J)(c) && c.dropdown ? (i(), _(a(Ue), {
831
+ l(J)(d) && d.dropdown ? (u(), k(l(Re), {
688
832
  key: 0,
689
833
  placement: "bottomRight",
690
834
  class: "p-0 rounded-none"
691
835
  }, {
692
- overlay: x(() => [
836
+ overlay: _(() => [
693
837
  I("div", {
694
- class: B(["min-w-[100px] bg-white rounded shadow-md p-4", c.dropdownClass])
838
+ class: R(["min-w-[100px] bg-white rounded shadow-md p-4", d.dropdownClass])
695
839
  }, [
696
- c.dropdown === "headset" ? (i(), _(a(ha), {
840
+ d.dropdown === "headset" ? (u(), k(l(ba), {
697
841
  key: 0,
698
- modelValue: n.value,
699
- "onUpdate:modelValue": u[1] || (u[1] = (r) => n.value = r),
842
+ modelValue: c.value,
843
+ "onUpdate:modelValue": i[1] || (i[1] = (n) => c.value = n),
700
844
  "item-key": "dataIndex",
701
- onEnd: s,
845
+ onEnd: r,
702
846
  handle: ".drag-handle"
703
847
  }, {
704
- default: x(() => [
705
- (i(!0), y(L, null, Y(n.value, (r) => (i(), y("div", {
706
- key: r.name,
707
- onClick: u[0] || (u[0] = ve(() => {
848
+ default: _(() => [
849
+ (u(!0), x(U, null, j(c.value, (n) => (u(), x("div", {
850
+ key: n.name,
851
+ onClick: i[0] || (i[0] = ge(() => {
708
852
  }, ["stop"])),
709
853
  class: "flex items-center mb-2 last:mb-0 select-none"
710
854
  }, [
711
- u[2] || (u[2] = I("span", { class: "drag-handle mr-2 text-gray-400 hover:text-gray-600 cursor-move" }, "⋮⋮", -1)),
712
- D(a(ea), {
713
- checked: r.visible !== !1,
714
- onChange: ve(
855
+ i[2] || (i[2] = I("span", { class: "drag-handle mr-2 text-gray-400 hover:text-gray-600 cursor-move" }, "⋮⋮", -1)),
856
+ F(l(ta), {
857
+ checked: n.visible !== !1,
858
+ onChange: ge(
715
859
  (m) => {
716
- a(Ft)(r, m.target.checked);
860
+ l(Fa)(n, m.target.checked);
717
861
  },
718
862
  ["stop", "prevent"]
719
863
  ),
720
864
  class: "text-gray-700 hover:text-gray-900 select-none"
721
865
  }, {
722
- default: x(() => [
723
- G(M(r.title), 1)
866
+ default: _(() => [
867
+ Y(E(n.title), 1)
724
868
  ]),
725
869
  _: 2
726
870
  }, 1032, ["checked", "onChange"])
727
871
  ]))), 128))
728
872
  ]),
729
873
  _: 1
730
- }, 8, ["modelValue"])) : k("", !0)
874
+ }, 8, ["modelValue"])) : C("", !0)
731
875
  ], 2)
732
876
  ]),
733
- default: x(() => [
734
- D(a(ee), {
735
- class: B([
877
+ default: _(() => [
878
+ F(l(ee), {
879
+ class: R([
736
880
  "px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
737
881
  v === 0 ? "rounded-l-[5px]" : "",
738
- v === a(t).length - 1 ? "rounded-r-[5px]" : ""
882
+ v === l(t).length - 1 ? "rounded-r-[5px]" : ""
739
883
  ]),
740
- disabled: a(W)(c),
741
- tiptext: c.label,
742
- onClick: (r) => a(X)(c, a(e).page, a(e))
884
+ disabled: l(W)(d),
885
+ tiptext: d.label,
886
+ onClick: (n) => l(X)(d, l(e).page, l(e))
743
887
  }, {
744
- default: x(() => [
745
- D(a(V), {
746
- icon: c.icon,
888
+ default: _(() => [
889
+ F(l(V), {
890
+ icon: d.icon,
747
891
  class: "w-[18px] h-[18.5px]",
748
892
  clickable: ""
749
893
  }, null, 8, ["icon"])
@@ -752,39 +896,39 @@ const Zl = async (d, l) => {
752
896
  }, 1032, ["class", "disabled", "tiptext", "onClick"])
753
897
  ]),
754
898
  _: 2
755
- }, 1024)) : !c.children && a(J)(c) ? (i(), _(a(ee), {
899
+ }, 1024)) : !d.children && l(J)(d) ? (u(), k(l(ee), {
756
900
  key: 1,
757
- class: B([
901
+ class: R([
758
902
  "px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
759
903
  v === 0 ? "rounded-l-[5px]" : "",
760
- v === a(t).length - 1 ? "rounded-r-[5px]" : ""
904
+ v === l(t).length - 1 ? "rounded-r-[5px]" : ""
761
905
  ]),
762
- disabled: a(W)(c),
763
- tiptext: c.label,
764
- onClick: (r) => a(X)(c, a(e).page, a(e))
906
+ disabled: l(W)(d),
907
+ tiptext: d.label,
908
+ onClick: (n) => l(X)(d, l(e).page, l(e))
765
909
  }, {
766
- default: x(() => [
767
- D(a(V), {
768
- icon: c.icon,
910
+ default: _(() => [
911
+ F(l(V), {
912
+ icon: d.icon,
769
913
  class: "w-[18px] h-[18.5px]",
770
914
  clickable: ""
771
915
  }, null, 8, ["icon"])
772
916
  ]),
773
917
  _: 2
774
- }, 1032, ["class", "disabled", "tiptext", "onClick"])) : a(J)(c) ? (i(), _(a(Ue), {
918
+ }, 1032, ["class", "disabled", "tiptext", "onClick"])) : l(J)(d) ? (u(), k(l(Re), {
775
919
  key: 2,
776
920
  placement: "bottomRight",
777
921
  class: "p-0 rounded-none"
778
922
  }, {
779
- overlay: x(() => [
780
- D(a(Ce), null, {
781
- default: x(() => [
782
- (i(!0), y(L, null, Y(c.children, (r) => (i(), _(a(Se), {
783
- key: r.key,
784
- disabled: a(W)(r)
923
+ overlay: _(() => [
924
+ F(l(Te), null, {
925
+ default: _(() => [
926
+ (u(!0), x(U, null, j(d.children, (n) => (u(), k(l($e), {
927
+ key: n.key,
928
+ disabled: l(W)(n)
785
929
  }, {
786
- default: x(() => [
787
- G(M(r.label), 1)
930
+ default: _(() => [
931
+ Y(E(n.label), 1)
788
932
  ]),
789
933
  _: 2
790
934
  }, 1032, ["disabled"]))), 128))
@@ -792,20 +936,20 @@ const Zl = async (d, l) => {
792
936
  _: 2
793
937
  }, 1024)
794
938
  ]),
795
- default: x(() => [
796
- D(a(ee), {
797
- class: B([
939
+ default: _(() => [
940
+ F(l(ee), {
941
+ class: R([
798
942
  "!w-[46px] px-[5px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
799
943
  v === 0 ? "rounded-l-[5px]" : ""
800
944
  ]),
801
- disabled: a(W)(c),
802
- tiptext: c.label,
803
- icon: c.icon,
945
+ disabled: l(W)(d),
946
+ tiptext: d.label,
947
+ icon: d.icon,
804
948
  iconProps: { class: "w-[19px] h-[19px]" },
805
- onClick: (r) => a(X)(c, a(e).page, a(e))
949
+ onClick: (n) => l(X)(d, l(e).page, l(e))
806
950
  }, {
807
- default: x(() => [
808
- D(a(V), {
951
+ default: _(() => [
952
+ F(l(V), {
809
953
  icon: "icon-down-arrow",
810
954
  class: "w-[12px] h-[12px]"
811
955
  })
@@ -814,112 +958,112 @@ const Zl = async (d, l) => {
814
958
  }, 1032, ["class", "disabled", "tiptext", "icon", "onClick"])
815
959
  ]),
816
960
  _: 2
817
- }, 1024)) : k("", !0)
961
+ }, 1024)) : C("", !0)
818
962
  ], 64))), 128))
819
963
  ]));
820
964
  }
821
- }), Fa = { class: "flex justify-between mb-[10px]" }, Ia = { key: 1 }, Ea = 3, _t = /* @__PURE__ */ E({
965
+ }), za = { class: "flex justify-between mb-[10px]" }, Oa = { key: 1 }, Ka = 3, Ct = /* @__PURE__ */ L({
822
966
  __name: "index",
823
967
  props: {
824
968
  gridCtrl: {},
825
969
  editorCtrl: {}
826
970
  },
827
- setup(d) {
828
- const l = d, e = l.gridCtrl, t = e.page, o = l.editorCtrl, n = j(() => de.currentRoute.value.path), s = [
971
+ setup(o) {
972
+ const a = o, e = a.gridCtrl, t = e.page, s = a.editorCtrl, c = K(() => fe.currentRoute.value.path), r = [
829
973
  {
830
974
  key: "New",
831
- label: F("webui.common.add"),
975
+ label: w("webui.common.add"),
832
976
  type: "primary",
833
977
  icon: "icon-new",
834
978
  danger: !0,
835
979
  role: ["Super", "Admin"],
836
980
  permit: ":new",
837
981
  // 默认仅受权限码控制
838
- click: () => It(o)
982
+ click: () => Et(s)
839
983
  }
840
- ], f = C([]), u = C([]);
841
- return U(
984
+ ], p = T([]), i = T([]);
985
+ return M(
842
986
  () => {
843
- var c;
844
- return (c = e.buttons) == null ? void 0 : c.value;
987
+ var d;
988
+ return (d = e.buttons) == null ? void 0 : d.value;
845
989
  },
846
990
  () => {
847
- var r;
848
- const { buttons: c, menus: v } = Ae(
849
- s,
850
- e.flat !== void 0 ? e.flat : Ea,
851
- (r = e.buttons) == null ? void 0 : r.value
991
+ var n;
992
+ const { buttons: d, menus: v } = De(
993
+ r,
994
+ e.flat !== void 0 ? e.flat : Ka,
995
+ (n = e.buttons) == null ? void 0 : n.value
852
996
  );
853
- f.value.splice(0, f.value.length, ...c), u.value.splice(0, u.value.length, ...v);
997
+ p.value.splice(0, p.value.length, ...d), i.value.splice(0, i.value.length, ...v);
854
998
  },
855
999
  {
856
1000
  deep: !0,
857
1001
  immediate: !0
858
1002
  }
859
- ), (c, v) => {
860
- const r = ne("auth");
861
- return i(), y("div", Fa, [
862
- D(a(ce), null, {
863
- default: x(() => [
864
- (i(!0), y(L, null, Y(f.value, (m) => Q((i(), _(a(ee), {
1003
+ ), (d, v) => {
1004
+ const n = ne("auth");
1005
+ return u(), x("div", za, [
1006
+ F(l(pe), null, {
1007
+ default: _(() => [
1008
+ (u(!0), x(U, null, j(p.value, (m) => Q((u(), k(l(ee), {
865
1009
  key: m.key,
866
1010
  type: m.type,
867
1011
  danger: m.danger,
868
- disabled: a(W)(m),
1012
+ disabled: l(W)(m),
869
1013
  icon: m.icon,
870
- onClick: (p) => a(X)(m, a(t), a(e))
1014
+ onClick: (f) => l(X)(m, l(t), l(e))
871
1015
  }, {
872
- default: x(() => [
873
- G(M(m.label), 1)
1016
+ default: _(() => [
1017
+ Y(E(m.label), 1)
874
1018
  ]),
875
1019
  _: 2
876
1020
  }, 1032, ["type", "danger", "disabled", "icon", "onClick"])), [
877
- [r, { url: n.value, role: m.role, permit: m.permit }]
1021
+ [n, { url: c.value, role: m.role, permit: m.permit }]
878
1022
  ])), 128)),
879
- u.value.length > 0 ? (i(), _(a(Ue), { key: 0 }, {
880
- overlay: x(() => [
881
- D(a(Ce), null, {
882
- default: x(() => [
883
- (i(!0), y(L, null, Y(u.value, (m) => Q((i(), _(a(Se), {
1023
+ i.value.length > 0 ? (u(), k(l(Re), { key: 0 }, {
1024
+ overlay: _(() => [
1025
+ F(l(Te), null, {
1026
+ default: _(() => [
1027
+ (u(!0), x(U, null, j(i.value, (m) => Q((u(), k(l($e), {
884
1028
  key: m.key,
885
- disabled: a(W)(m),
886
- onClick: (p) => a(X)(m, a(t), a(e))
1029
+ disabled: l(W)(m),
1030
+ onClick: (f) => l(X)(m, l(t), l(e))
887
1031
  }, {
888
- default: x(() => [
889
- G(M(m.label), 1)
1032
+ default: _(() => [
1033
+ Y(E(m.label), 1)
890
1034
  ]),
891
1035
  _: 2
892
1036
  }, 1032, ["disabled", "onClick"])), [
893
- [r, { url: n.value, role: m.role, permit: m.permit }]
1037
+ [n, { url: c.value, role: m.role, permit: m.permit }]
894
1038
  ])), 128))
895
1039
  ]),
896
1040
  _: 1
897
1041
  })
898
1042
  ]),
899
- default: x(() => [
900
- D(a(ee), null, {
901
- default: x(() => [
902
- G(M(a(F)("webui.common.moreActions")), 1)
1043
+ default: _(() => [
1044
+ F(l(ee), null, {
1045
+ default: _(() => [
1046
+ Y(E(l(w)("webui.common.moreActions")), 1)
903
1047
  ]),
904
1048
  _: 1
905
1049
  })
906
1050
  ]),
907
1051
  _: 1
908
- })) : k("", !0),
909
- f.value.length === 0 && u.value.length === 0 ? (i(), y("span", Ia)) : k("", !0)
1052
+ })) : C("", !0),
1053
+ p.value.length === 0 && i.value.length === 0 ? (u(), x("span", Oa)) : C("", !0)
910
1054
  ]),
911
1055
  _: 1
912
1056
  }),
913
- D(a(ce), { class: "mr-1" }, {
914
- default: x(() => [
915
- (i(), _(st(Pa), { "grid-ctrl": a(e) }, null, 8, ["grid-ctrl"]))
1057
+ F(l(pe), { class: "mr-1" }, {
1058
+ default: _(() => [
1059
+ (u(), k(nt(Aa), { "grid-ctrl": l(e) }, null, 8, ["grid-ctrl"]))
916
1060
  ]),
917
1061
  _: 1
918
1062
  })
919
1063
  ]);
920
1064
  };
921
1065
  }
922
- }), La = { class: "flex items-center justify-between" }, Ua = { class: "flex items-center space-x-2" }, ir = /* @__PURE__ */ E({
1066
+ }), ja = { class: "flex items-center justify-between" }, Va = { class: "flex items-center space-x-2" }, wr = /* @__PURE__ */ L({
923
1067
  inheritAttrs: !1,
924
1068
  __name: "index",
925
1069
  props: {
@@ -931,93 +1075,93 @@ const Zl = async (d, l) => {
931
1075
  titleField: { default: "Title" },
932
1076
  statusDisabled: {}
933
1077
  },
934
- setup(d) {
935
- const l = d, e = ue(), t = l.gridCtrl, o = j(() => de.currentRoute.value.path);
1078
+ setup(o) {
1079
+ const a = o, e = de(), t = a.gridCtrl, s = K(() => fe.currentRoute.value.path);
936
1080
  t && (t.pageNo.value = 1, t.total.value = 0, t.pageSize.value = t.pageSize.value);
937
- const n = C(t.pageSize.value), s = C(t.pageNo.value), f = C([]), u = C({
1081
+ const c = T(t.pageSize.value), r = T(t.pageNo.value), p = T([]), i = T({
938
1082
  total: 0,
939
1083
  current: 1,
940
- pageSize: n.value,
941
- showTotal: (v) => F("webui.common.total", [v]),
942
- onChange: (v, r) => {
943
- u.value !== !1 && (u.value.current = v, u.value.pageSize = r), n.value = r, s.value = v, t && (t.pageNo.value = v, t.pageSize.value = r, t.remotePage && he(t));
1084
+ pageSize: c.value,
1085
+ showTotal: (v) => w("webui.common.total", [v]),
1086
+ onChange: (v, n) => {
1087
+ i.value !== !1 && (i.value.current = v, i.value.pageSize = n), c.value = n, r.value = v, t && (t.pageNo.value = v, t.pageSize.value = n, t.remotePage && be(t));
944
1088
  },
945
- ...l.pagination === !1 ? {} : l.pagination
1089
+ ...a.pagination === !1 ? {} : a.pagination
946
1090
  });
947
- l.pagination === !1 && (u.value = !1), U(
1091
+ a.pagination === !1 && (i.value = !1), M(
948
1092
  () => t.tableData.value,
949
1093
  (v) => {
950
- v && (f.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));
1094
+ v && (p.value = v, i.value !== !1 && (i.value.total = t.total.value ?? 0, i.value.current = t.pageNo.value ?? 1, i.value.pageSize = t.pageSize.value ?? 10));
951
1095
  },
952
1096
  { immediate: !0 }
953
- ), U(
954
- () => l.listData,
1097
+ ), M(
1098
+ () => a.listData,
955
1099
  (v) => {
956
- v && (f.value = v, u.value !== !1 && (u.value.total = v.length, u.value.current = t.pageNo.value ?? 1, u.value.pageSize = t.pageSize.value ?? 10));
1100
+ v && (p.value = v, i.value !== !1 && (i.value.total = v.length, i.value.current = t.pageNo.value ?? 1, i.value.pageSize = t.pageSize.value ?? 10));
957
1101
  },
958
1102
  { immediate: !0 }
959
1103
  );
960
- const c = C(!1);
961
- return ke(() => {
962
- c.value && t && t.autoload && (t.reload.value = !0);
963
- }), we(se.GridControl, t), ae(async () => {
964
- var v, r, m, p, w;
965
- t.page && ((v = t.gridUrl) != null && v.url) && (((r = t.gridUrl) == null ? void 0 : r.url) === ((m = t.page.urls.list) == null ? void 0 : m.url) && (t.remotePage = !1), ((p = t.gridUrl) == null ? void 0 : p.url) === ((w = t.page.urls.find) == null ? void 0 : w.url) && (t.remotePage = !0)), t.tableData.value ? (f.value = t.tableData.value, t.total.value = f.value.length, u.value !== !1 && (u.value.total = t.total.value ?? 0)) : t.autoload !== !1 && (t.remotePage ? f.value = (await he(t)).rows : f.value = await Ze(t)), setTimeout(() => {
966
- c.value = !0;
1104
+ const d = T(!1);
1105
+ return Se(() => {
1106
+ d.value && t && t.autoload && (t.reload.value = !0);
1107
+ }), Ce(oe.GridControl, t), le(async () => {
1108
+ var v, n, m, f, y;
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), ((f = t.gridUrl) == null ? void 0 : f.url) === ((y = t.page.urls.find) == null ? void 0 : y.url) && (t.remotePage = !0)), t.tableData.value ? (p.value = t.tableData.value, t.total.value = p.value.length, i.value !== !1 && (i.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;
967
1111
  }, 50);
968
- }), (v, r) => {
969
- var p, w;
1112
+ }), (v, n) => {
1113
+ var f, y;
970
1114
  const m = ne("auth");
971
- return i(), y(L, null, [
972
- (p = a(t).buttons) != null && p.value.length || (w = a(t).tools) != null && w.length ? (i(), _(_t, {
1115
+ return u(), x(U, null, [
1116
+ (f = l(t).buttons) != null && f.value.length || (y = l(t).tools) != null && y.length ? (u(), k(Ct, {
973
1117
  key: 0,
974
- "grid-ctrl": a(t),
975
- "editor-ctrl": a(t).editor
976
- }, null, 8, ["grid-ctrl", "editor-ctrl"])) : k("", !0),
977
- c.value ? (i(), _(a(ta), A({
1118
+ "grid-ctrl": l(t),
1119
+ "editor-ctrl": l(t).editor
1120
+ }, null, 8, ["grid-ctrl", "editor-ctrl"])) : C("", !0),
1121
+ d.value ? (u(), k(l(aa), N({
978
1122
  key: 1,
979
1123
  class: "w-full min-h-[480px]",
980
- grid: l.grid,
981
- "data-source": f.value,
982
- loading: a(t).isGridLoading.value,
983
- pagination: u.value
984
- }, a(e)), {
985
- renderItem: x(({ item: $ }) => [
986
- D(a(aa), { class: "!m-0 !p-0" }, {
987
- default: x(() => [
988
- D(a(la), {
1124
+ grid: a.grid,
1125
+ "data-source": p.value,
1126
+ loading: l(t).isGridLoading.value,
1127
+ pagination: i.value
1128
+ }, l(e)), {
1129
+ renderItem: _(({ item: S }) => [
1130
+ F(l(la), { class: "!m-0 !p-0" }, {
1131
+ default: _(() => [
1132
+ F(l(ra), {
989
1133
  class: "!m-0",
990
1134
  "head-style": { fontSize: "14px", padding: "8px", minHeight: "36px", height: "36px" },
991
1135
  "body-style": { padding: "4px" }
992
1136
  }, {
993
- title: x(() => [
994
- I("div", La, [
995
- I("span", null, M($[l.titleField]), 1),
996
- I("div", Ua, [
997
- Q(D(et, {
998
- checked: $[a(t).statusKey],
999
- "onUpdate:checked": (b) => $[a(t).statusKey] = b,
1000
- disabled: v.statusDisabled ? v.statusDisabled($) : !1,
1001
- data: a(Be).EnableDisable,
1002
- onClick: (b) => a(tt)(a(t), $),
1137
+ title: _(() => [
1138
+ I("div", ja, [
1139
+ I("span", null, E(S[a.titleField]), 1),
1140
+ I("div", Va, [
1141
+ Q(F(lt, {
1142
+ checked: S[l(t).statusKey],
1143
+ "onUpdate:checked": (b) => S[l(t).statusKey] = b,
1144
+ disabled: v.statusDisabled ? v.statusDisabled(S) : !1,
1145
+ data: l(ze).EnableDisable,
1146
+ onClick: (b) => l(rt)(l(t), S),
1003
1147
  size: "small",
1004
- class: B([
1148
+ class: R([
1005
1149
  "relative mt-[3px] transform scale-[1.1]",
1006
- v.statusDisabled && v.statusDisabled($) ? "cursor-not-allowed disabled" : ""
1150
+ v.statusDisabled && v.statusDisabled(S) ? "cursor-not-allowed disabled" : ""
1007
1151
  ]),
1008
- loading: $.isLoading
1152
+ loading: S.isLoading
1009
1153
  }, null, 8, ["checked", "onUpdate:checked", "disabled", "data", "onClick", "class", "loading"]), [
1010
- [m, { url: o.value, role: ["Super", "Admin"], permit: ":enabled" }, "disable"]
1154
+ [m, { url: s.value, role: ["Super", "Admin"], permit: ":enabled" }, "disable"]
1011
1155
  ]),
1012
- D(Ta, {
1013
- record: $,
1014
- "grid-ctrl": a(t)
1156
+ F(Ra, {
1157
+ record: S,
1158
+ "grid-ctrl": l(t)
1015
1159
  }, null, 8, ["record", "grid-ctrl"])
1016
1160
  ])
1017
1161
  ])
1018
1162
  ]),
1019
- default: x(() => [
1020
- R(v.$slots, "cardContent", { record: $ })
1163
+ default: _(() => [
1164
+ O(v.$slots, "cardContent", { record: S })
1021
1165
  ]),
1022
1166
  _: 2
1023
1167
  }, 1024)
@@ -1026,14 +1170,14 @@ const Zl = async (d, l) => {
1026
1170
  }, 1024)
1027
1171
  ]),
1028
1172
  _: 3
1029
- }, 16, ["grid", "data-source", "loading", "pagination"])) : k("", !0)
1173
+ }, 16, ["grid", "data-source", "loading", "pagination"])) : C("", !0)
1030
1174
  ], 64);
1031
1175
  };
1032
1176
  }
1033
- }), Ma = { class: "w-1/3 relative mb-1" }, Aa = { class: "flex items-center w-[90%]" }, Ba = { class: "flex-grow pl-1" }, Na = {
1177
+ }), Ya = { class: "w-1/3 relative mb-1" }, Ga = { class: "flex items-center w-[90%]" }, Wa = { class: "flex-grow pl-1" }, qa = {
1034
1178
  key: 0,
1035
1179
  class: "absolute bottom-[3px] left-[85px] text-[12px] text-[#ff4d4fcc] block"
1036
- }, Ie = /* @__PURE__ */ E({
1180
+ }, Ue = /* @__PURE__ */ L({
1037
1181
  inheritAttrs: !1,
1038
1182
  __name: "searchItem",
1039
1183
  props: {
@@ -1041,45 +1185,45 @@ const Zl = async (d, l) => {
1041
1185
  width: {},
1042
1186
  rule: {}
1043
1187
  },
1044
- setup(d) {
1045
- const l = d, e = ue(), t = ye(se.EditorControl, void 0), o = qe(l, t), n = j(() => {
1046
- var f;
1047
- if (!l.rule)
1188
+ setup(o) {
1189
+ const a = o, e = de(), t = xe(oe.EditorControl, void 0), s = Je(a, t), c = K(() => {
1190
+ var p;
1191
+ if (!a.rule)
1048
1192
  return !1;
1049
- const s = He(l.rule.split("."), (f = t == null ? void 0 : t.formRules) == null ? void 0 : f.value);
1050
- return s ? (s.required || (o.value.errClass = "", o.value.msg = ""), s.required ?? !0) : (re.error(`"${l.label}" 的验证规则 \`${l.rule}\` 不存在`), o.value.errClass = "text-[#ff4d4f]", o.value.msg = `规则 \`${l.rule}\` 不存在,请检查代码!`, !0);
1193
+ const r = Xe(a.rule.split("."), (p = t == null ? void 0 : t.formRules) == null ? void 0 : p.value);
1194
+ return r ? (r.required || (s.value.errClass = "", s.value.msg = ""), r.required ?? !0) : (ae.error(w("webui.components.content.searchItem.validationRuleNotFound", { label: a.label, rule: a.rule })), s.value.errClass = "text-[#ff4d4f]", s.value.msg = w("webui.components.content.searchItem.validationRuleNotFound", { label: a.label, rule: a.rule }), !0);
1051
1195
  });
1052
- return (s, f) => (i(), y("div", Ma, [
1053
- D(a(ut), A({
1054
- required: n.value,
1196
+ return (r, p) => (u(), x("div", Ya, [
1197
+ F(l(dt), N({
1198
+ required: c.value,
1055
1199
  class: "w-[90%] relative"
1056
- }, a(e), {
1057
- class: [s.rule ? "" : "mb-3", s.width],
1200
+ }, l(e), {
1201
+ class: [r.rule ? "" : "mb-3", r.width],
1058
1202
  labelCol: { span: 6 }
1059
- }), ot({
1060
- default: x(() => [
1061
- I("div", Aa, [
1062
- I("div", Ba, [
1063
- R(s.$slots, "default")
1203
+ }), it({
1204
+ default: _(() => [
1205
+ I("div", Ga, [
1206
+ I("div", Wa, [
1207
+ O(r.$slots, "default")
1064
1208
  ])
1065
1209
  ])
1066
1210
  ]),
1067
1211
  _: 2
1068
1212
  }, [
1069
- s.label ? {
1213
+ r.label ? {
1070
1214
  name: "label",
1071
- fn: x(() => [
1215
+ fn: _(() => [
1072
1216
  I("span", {
1073
- class: B([a(o).errClass ? "text-[#ff4d4f]" : "", "w-full"])
1074
- }, M(s.label), 3)
1217
+ class: R([l(s).errClass ? "text-[#ff4d4f]" : "", "w-full"])
1218
+ }, E(r.label), 3)
1075
1219
  ]),
1076
1220
  key: "0"
1077
1221
  } : void 0
1078
1222
  ]), 1040, ["required", "class"]),
1079
- a(o).msg ? (i(), y("span", Na, M(a(o).msg), 1)) : k("", !0)
1223
+ l(s).msg ? (u(), x("span", qa, E(l(s).msg), 1)) : C("", !0)
1080
1224
  ]));
1081
1225
  }
1082
- }), ur = /* @__PURE__ */ E({
1226
+ }), _r = /* @__PURE__ */ L({
1083
1227
  __name: "index",
1084
1228
  props: {
1085
1229
  search: {},
@@ -1087,59 +1231,59 @@ const Zl = async (d, l) => {
1087
1231
  likeFields: {}
1088
1232
  },
1089
1233
  emits: ["update:search", "onsearch", "onreset"],
1090
- setup(d, { emit: l }) {
1091
- const e = d, t = l, o = C(0), n = C(0), s = C(0), f = (p) => {
1092
- let w = 0;
1093
- for (let $ = 0; $ < p.length; $++)
1094
- typeof p[$].type == "object" && w++;
1095
- return w;
1096
- }, u = qt(), c = () => {
1097
- n.value = 0, s.value = 0, u.default && (n.value = f(u.default({}))), e.gridCtrl && e.gridCtrl.searchBar && u.control && (s.value = f(u.control({}))), o.value = 2 - (n.value + s.value) % 3;
1234
+ setup(o, { emit: a }) {
1235
+ const e = o, t = a, s = T(0), c = T(0), r = T(0), p = (f) => {
1236
+ let y = 0;
1237
+ for (let S = 0; S < f.length; S++)
1238
+ typeof f[S].type == "object" && y++;
1239
+ return y;
1240
+ }, i = Ht(), d = () => {
1241
+ c.value = 0, r.value = 0, i.default && (c.value = p(i.default({}))), e.gridCtrl && e.gridCtrl.searchBar && i.control && (r.value = p(i.control({}))), s.value = 2 - (c.value + r.value) % 3;
1098
1242
  };
1099
- U(
1243
+ M(
1100
1244
  () => {
1101
- var p;
1102
- return (p = e.gridCtrl) == null ? void 0 : p.searchBar;
1245
+ var f;
1246
+ return (f = e.gridCtrl) == null ? void 0 : f.searchBar;
1103
1247
  },
1104
1248
  () => {
1105
- c();
1249
+ d();
1106
1250
  }
1107
1251
  );
1108
1252
  const v = JSON.parse(JSON.stringify(e.search));
1109
- ae(() => {
1110
- var w;
1111
- c();
1112
- let p = { ...e.search };
1253
+ le(() => {
1254
+ var y;
1255
+ d();
1256
+ let f = { ...e.search };
1113
1257
  e.gridCtrl && (e.gridCtrl.gridQuery = {
1114
1258
  ...e.gridCtrl.gridQuery,
1115
1259
  Query: {
1116
- ...(w = e.gridCtrl.gridQuery) == null ? void 0 : w.Query,
1117
- ...p
1260
+ ...(y = e.gridCtrl.gridQuery) == null ? void 0 : y.Query,
1261
+ ...f
1118
1262
  }
1119
1263
  });
1120
1264
  });
1121
- const r = () => {
1122
- var w;
1123
- let p = { ...e.search };
1265
+ const n = () => {
1266
+ var y;
1267
+ let f = { ...e.search };
1124
1268
  if (e.likeFields)
1125
- for (const $ of e.likeFields)
1126
- p[$] && (p[$] = { $like: "%" + p[$] + "%" });
1269
+ for (const S of e.likeFields)
1270
+ f[S] && (f[S] = { $like: "%" + f[S] + "%" });
1127
1271
  e.gridCtrl && (e.gridCtrl.gridQuery = {
1128
1272
  ...e.gridCtrl.gridQuery,
1129
1273
  Query: {
1130
- ...(w = e.gridCtrl.gridQuery) == null ? void 0 : w.Query,
1131
- ...p
1274
+ ...(y = e.gridCtrl.gridQuery) == null ? void 0 : y.Query,
1275
+ ...f
1132
1276
  }
1133
- }, e.gridCtrl.pageNo.value = 1, e.gridCtrl.reload.value = !0), t("onsearch", p);
1277
+ }, e.gridCtrl.pageNo.value = 1, e.gridCtrl.reload.value = !0), t("onsearch", f);
1134
1278
  }, m = () => {
1135
- const p = JSON.parse(JSON.stringify(v));
1136
- for (const w in e.search)
1137
- p[w] === void 0 && (p[w] = void 0);
1138
- t("update:search", p), t("onreset");
1279
+ const f = JSON.parse(JSON.stringify(v));
1280
+ for (const y in e.search)
1281
+ f[y] === void 0 && (f[y] = void 0);
1282
+ t("update:search", f), t("onreset");
1139
1283
  };
1140
- return (p, w) => {
1141
- const $ = ne("submit");
1142
- return n.value + s.value > 0 ? Q((i(), _(a(it), {
1284
+ return (f, y) => {
1285
+ const S = ne("submit");
1286
+ return c.value + r.value > 0 ? Q((u(), k(l(ut), {
1143
1287
  key: 0,
1144
1288
  "label-col": { flex: "60px" },
1145
1289
  style: {
@@ -1148,43 +1292,43 @@ const Zl = async (d, l) => {
1148
1292
  },
1149
1293
  class: "flex mb-[10px]"
1150
1294
  }, {
1151
- default: x(() => {
1152
- var b, S;
1295
+ default: _(() => {
1296
+ var b, $;
1153
1297
  return [
1154
- R(p.$slots, "default"),
1155
- (b = p.gridCtrl) != null && b.searchBar ? R(p.$slots, "control", { key: 0 }) : k("", !0),
1156
- o.value >= 1 ? (i(), _(Ie, {
1298
+ O(f.$slots, "default"),
1299
+ (b = f.gridCtrl) != null && b.searchBar ? O(f.$slots, "control", { key: 0 }) : C("", !0),
1300
+ s.value >= 1 ? (u(), k(Ue, {
1157
1301
  key: 1,
1158
1302
  class: "w-1/3"
1159
- })) : k("", !0),
1160
- o.value >= 2 ? (i(), _(Ie, {
1303
+ })) : C("", !0),
1304
+ s.value >= 2 ? (u(), k(Ue, {
1161
1305
  key: 2,
1162
1306
  class: "w-1/3"
1163
- })) : k("", !0),
1164
- n.value || (S = p.gridCtrl) != null && S.searchBar ? (i(), _(Ie, {
1307
+ })) : C("", !0),
1308
+ c.value || ($ = f.gridCtrl) != null && $.searchBar ? (u(), k(Ue, {
1165
1309
  key: 3,
1166
1310
  class: "w-1/3 flex justify-end text-right pr-5",
1167
1311
  "wrapper-col": { flex: "auto" }
1168
1312
  }, {
1169
- default: x(() => [
1170
- D(a(ce), null, {
1171
- default: x(() => [
1172
- D(a(ee), {
1313
+ default: _(() => [
1314
+ F(l(pe), null, {
1315
+ default: _(() => [
1316
+ F(l(ee), {
1173
1317
  type: "primary",
1174
- onClick: r,
1318
+ onClick: n,
1175
1319
  icon: "icon-search"
1176
1320
  }, {
1177
- default: x(() => [
1178
- G(M(p.$t("webui.common.search")), 1)
1321
+ default: _(() => [
1322
+ Y(E(l(w)("webui.common.search")), 1)
1179
1323
  ]),
1180
1324
  _: 1
1181
1325
  }),
1182
- D(a(ee), {
1326
+ F(l(ee), {
1183
1327
  onClick: m,
1184
1328
  icon: "icon-reset"
1185
1329
  }, {
1186
- default: x(() => [
1187
- G(M(p.$t("webui.common.reset")), 1)
1330
+ default: _(() => [
1331
+ Y(E(l(w)("webui.common.reset")), 1)
1188
1332
  ]),
1189
1333
  _: 1
1190
1334
  })
@@ -1193,145 +1337,145 @@ const Zl = async (d, l) => {
1193
1337
  })
1194
1338
  ]),
1195
1339
  _: 1
1196
- })) : k("", !0)
1340
+ })) : C("", !0)
1197
1341
  ];
1198
1342
  }),
1199
1343
  _: 3
1200
1344
  })), [
1201
- [$, r]
1202
- ]) : k("", !0);
1345
+ [S, n]
1346
+ ]) : C("", !0);
1203
1347
  };
1204
1348
  }
1205
- }), za = /* @__PURE__ */ E({
1349
+ }), Ha = /* @__PURE__ */ L({
1206
1350
  __name: "tableOperate",
1207
1351
  props: {
1208
1352
  record: {},
1209
1353
  gridCtrl: {}
1210
1354
  },
1211
- setup(d) {
1212
- const l = d, e = l.gridCtrl, t = j(() => de.currentRoute.value.path), o = [
1355
+ setup(o) {
1356
+ const a = o, e = a.gridCtrl, t = K(() => fe.currentRoute.value.path), s = [
1213
1357
  {
1214
1358
  key: "Edit",
1215
- label: F("webui.common.edit"),
1359
+ label: w("webui.common.edit"),
1216
1360
  type: "primary",
1217
1361
  visible: !0,
1218
1362
  role: ["Super", "Admin"],
1219
1363
  permit: ":edit",
1220
- click: () => Qe(e, l.record)
1364
+ click: () => Ze(e, a.record)
1221
1365
  },
1222
1366
  {
1223
1367
  key: "Delete",
1224
- label: F("webui.common.delete"),
1368
+ label: w("webui.common.delete"),
1225
1369
  type: "primary",
1226
1370
  visible: !0,
1227
1371
  danger: !0,
1228
1372
  role: ["Super", "Admin"],
1229
1373
  permit: ":delete",
1230
1374
  confirm: !0,
1231
- confirmText: F("webui.components.content.table.confirmDelete"),
1232
- click: () => Je(e, l.record)
1375
+ confirmText: w("webui.components.content.table.confirmDelete"),
1376
+ click: () => et(e, a.record)
1233
1377
  }
1234
- ], { buttons: n, menus: s } = Ae(o, 0, e.operates), f = (u) => {
1235
- if (typeof u.disabled == "boolean")
1236
- return u.disabled;
1237
- if (typeof u.disabled == "function")
1238
- return W(u, l.record) ?? !1;
1239
- if (l.record.hasOwnProperty(e.statusKey))
1240
- switch (u.key) {
1378
+ ], { buttons: c, menus: r } = De(s, 0, e.operates), p = (i) => {
1379
+ if (typeof i.disabled == "boolean")
1380
+ return i.disabled;
1381
+ if (typeof i.disabled == "function")
1382
+ return W(i, a.record) ?? !1;
1383
+ if (a.record.hasOwnProperty(e.statusKey))
1384
+ switch (i.key) {
1241
1385
  case "Edit":
1242
- return !l.record[e.statusKey];
1386
+ return !a.record[e.statusKey];
1243
1387
  // 启用时可编辑,停用时不可编辑
1244
1388
  case "Delete":
1245
- return !!l.record[e.statusKey];
1389
+ return !!a.record[e.statusKey];
1246
1390
  }
1247
1391
  return !1;
1248
1392
  };
1249
- return (u, c) => {
1393
+ return (i, d) => {
1250
1394
  const v = ne("auth");
1251
- return i(), _(a(xe), { theme: {
1395
+ return u(), k(l(we), { theme: {
1252
1396
  token: {
1253
1397
  fontSize: 13
1254
1398
  }
1255
1399
  } }, {
1256
- default: x(() => [
1257
- D(a(ce), null, {
1258
- default: x(() => [
1259
- (i(!0), y(L, null, Y(a(n), (r) => (i(), y(L, {
1260
- key: r.key
1400
+ default: _(() => [
1401
+ F(l(pe), null, {
1402
+ default: _(() => [
1403
+ (u(!0), x(U, null, j(l(c), (n) => (u(), x(U, {
1404
+ key: n.key
1261
1405
  }, [
1262
- a(J)(r, l.record) ? (i(), _(a(ct), {
1406
+ l(J)(n, a.record) ? (u(), k(l(pt), {
1263
1407
  key: 0,
1264
- disabled: f(r) || !r.confirm,
1265
- cancelText: a(F)("webui.common.no"),
1266
- okText: a(F)("webui.common.yes"),
1267
- title: r.confirmText,
1408
+ disabled: p(n) || !n.confirm,
1409
+ cancelText: l(w)("webui.common.no"),
1410
+ okText: l(w)("webui.common.yes"),
1411
+ title: n.confirmText,
1268
1412
  okButtonProps: { size: "small" },
1269
1413
  cancelButtonProps: { size: "small" },
1270
- onConfirm: (m) => a(X)(r, a(e).page, a(e), l.record, !0)
1414
+ onConfirm: (m) => l(X)(n, l(e).page, l(e), a.record, !0)
1271
1415
  }, {
1272
- default: x(() => [
1273
- a(J)(r, l.record) ? Q((i(), _(a(pt), {
1274
- key: r.key,
1275
- type: r.type ?? "text",
1276
- danger: r.danger,
1277
- disabled: f(r),
1278
- onClick: (m) => a(X)(r, a(e).page, a(e), l.record),
1416
+ default: _(() => [
1417
+ l(J)(n, a.record) ? Q((u(), k(l(vt), {
1418
+ key: n.key,
1419
+ type: n.type ?? "text",
1420
+ danger: n.danger,
1421
+ disabled: p(n),
1422
+ onClick: (m) => l(X)(n, l(e).page, l(e), a.record),
1279
1423
  size: "small",
1280
- style: Oe({
1281
- padding: r.type ?? "0px 4px"
1424
+ style: je({
1425
+ padding: n.type ?? "0px 4px"
1282
1426
  })
1283
1427
  }, {
1284
- default: x(() => [
1285
- G(M(r.label), 1)
1428
+ default: _(() => [
1429
+ Y(E(n.label), 1)
1286
1430
  ]),
1287
1431
  _: 2
1288
1432
  }, 1032, ["type", "danger", "disabled", "onClick", "style"])), [
1289
- [v, { url: t.value, role: r.role, permit: r.permit }]
1290
- ]) : k("", !0)
1433
+ [v, { url: t.value, role: n.role, permit: n.permit }]
1434
+ ]) : C("", !0)
1291
1435
  ]),
1292
1436
  _: 2
1293
- }, 1032, ["disabled", "cancelText", "okText", "title", "onConfirm"])) : k("", !0)
1437
+ }, 1032, ["disabled", "cancelText", "okText", "title", "onConfirm"])) : C("", !0)
1294
1438
  ], 64))), 128)),
1295
- u.record[a(e).statusKey] == 1 ? (i(), _(a(xe), {
1439
+ i.record[l(e).statusKey] == 1 ? (u(), k(l(we), {
1296
1440
  key: 0,
1297
1441
  autoInsertSpaceInButton: !1
1298
1442
  }, {
1299
- default: x(() => [
1300
- a(s).length > 0 ? (i(), _(a(dt), {
1443
+ default: _(() => [
1444
+ l(r).length > 0 ? (u(), k(l(ft), {
1301
1445
  key: 0,
1302
1446
  size: "small"
1303
1447
  }, {
1304
- overlay: x(() => [
1305
- D(a(Ce), null, {
1306
- default: x(() => [
1307
- (i(!0), y(L, null, Y(a(s), (r) => (i(), y(L, {
1308
- key: r.key
1448
+ overlay: _(() => [
1449
+ F(l(Te), null, {
1450
+ default: _(() => [
1451
+ (u(!0), x(U, null, j(l(r), (n) => (u(), x(U, {
1452
+ key: n.key
1309
1453
  }, [
1310
- a(J)(r, l.record) ? Q((i(), _(a(Se), {
1454
+ l(J)(n, a.record) ? Q((u(), k(l($e), {
1311
1455
  key: 0,
1312
- disabled: f(r),
1313
- onClick: (m) => a(X)(r, a(e).page, a(e), l.record)
1456
+ disabled: p(n),
1457
+ onClick: (m) => l(X)(n, l(e).page, l(e), a.record)
1314
1458
  }, {
1315
- default: x(() => [
1316
- G(M(r.label), 1)
1459
+ default: _(() => [
1460
+ Y(E(n.label), 1)
1317
1461
  ]),
1318
1462
  _: 2
1319
1463
  }, 1032, ["disabled", "onClick"])), [
1320
- [v, { url: t.value, role: r.role, permit: r.permit }]
1321
- ]) : k("", !0)
1464
+ [v, { url: t.value, role: n.role, permit: n.permit }]
1465
+ ]) : C("", !0)
1322
1466
  ], 64))), 128))
1323
1467
  ]),
1324
1468
  _: 1
1325
1469
  })
1326
1470
  ]),
1327
- default: x(() => [
1328
- G(M(a(F)("webui.components.content.table.more")) + " ", 1)
1471
+ default: _(() => [
1472
+ Y(E(l(w)("webui.components.content.table.more")) + " ", 1)
1329
1473
  ]),
1330
1474
  _: 1
1331
- })) : k("", !0)
1475
+ })) : C("", !0)
1332
1476
  ]),
1333
1477
  _: 1
1334
- })) : k("", !0)
1478
+ })) : C("", !0)
1335
1479
  ]),
1336
1480
  _: 1
1337
1481
  })
@@ -1340,7 +1484,7 @@ const Zl = async (d, l) => {
1340
1484
  });
1341
1485
  };
1342
1486
  }
1343
- }), cr = /* @__PURE__ */ E({
1487
+ }), kr = /* @__PURE__ */ L({
1344
1488
  inheritAttrs: !1,
1345
1489
  __name: "index",
1346
1490
  props: {
@@ -1352,215 +1496,215 @@ const Zl = async (d, l) => {
1352
1496
  scroll: {},
1353
1497
  statusDisabled: {}
1354
1498
  },
1355
- setup(d) {
1356
- const l = d, e = ue(), t = l.gridCtrl, o = j(() => de.currentRoute.value.path);
1499
+ setup(o) {
1500
+ const a = o, e = de(), t = a.gridCtrl, s = K(() => fe.currentRoute.value.path);
1357
1501
  t && (t.pageNo.value = 1, t.total.value = 0, t.pageSize.value = t.pageSize.value);
1358
- const n = C(t.pageSize.value), s = C(t.pageNo.value), f = C([]), u = C({
1502
+ const c = T(t.pageSize.value), r = T(t.pageNo.value), p = T([]), i = T({
1359
1503
  total: 0,
1360
1504
  current: 1,
1361
- pageSize: n.value,
1362
- showTotal: (p) => F("webui.common.total", [p]),
1363
- onChange: (p, w) => {
1364
- u.value !== !1 && (u.value.current = p, u.value.pageSize = w), n.value = w, s.value = p, t && (t.pageNo.value = p, t.pageSize.value = w, t.remotePage && he(t));
1505
+ pageSize: c.value,
1506
+ showTotal: (f) => w("webui.common.total", [f]),
1507
+ onChange: (f, y) => {
1508
+ i.value !== !1 && (i.value.current = f, i.value.pageSize = y), c.value = y, r.value = f, t && (t.pageNo.value = f, t.pageSize.value = y, t.remotePage && be(t));
1365
1509
  },
1366
- ...l.pagination === !1 ? {} : l.pagination
1510
+ ...a.pagination === !1 ? {} : a.pagination
1367
1511
  });
1368
- l.pagination === !1 && (u.value = !1), U(
1512
+ a.pagination === !1 && (i.value = !1), M(
1369
1513
  () => t.tableData.value,
1370
- (p) => {
1371
- p && (f.value = p, 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
+ (f) => {
1515
+ f && (p.value = f, i.value !== !1 && (i.value.total = t.total.value ?? 0, i.value.current = t.pageNo.value ?? 1, i.value.pageSize = t.pageSize.value ?? 10));
1372
1516
  },
1373
1517
  { immediate: !0 }
1374
- ), U(
1375
- () => l.tableData,
1376
- (p) => {
1377
- p && (f.value = p, u.value !== !1 && (u.value.total = p.length, u.value.current = t.pageNo.value ?? 1, u.value.pageSize = t.pageSize.value ?? 10));
1518
+ ), M(
1519
+ () => a.tableData,
1520
+ (f) => {
1521
+ f && (p.value = f, i.value !== !1 && (i.value.total = f.length, i.value.current = t.pageNo.value ?? 1, i.value.pageSize = t.pageSize.value ?? 10));
1378
1522
  },
1379
1523
  { immediate: !0 }
1380
1524
  );
1381
- const c = C(t.columns.value), v = {
1382
- onChange: (p, w) => {
1383
- t && (t.selectKeys.value = p, t.selectRows.value = w);
1525
+ const d = T(t.columns.value), v = {
1526
+ onChange: (f, y) => {
1527
+ t && (t.selectKeys.value = f, t.selectRows.value = y);
1384
1528
  },
1385
1529
  columnWidth: "30px",
1386
- getCheckboxProps: (p) => ({
1387
- disabled: p.Enabled === 0
1530
+ getCheckboxProps: (f) => ({
1531
+ disabled: f.Enabled === 0
1388
1532
  }),
1389
- ...l.rowSelection
1390
- }, r = C(v);
1391
- U(
1533
+ ...a.rowSelection
1534
+ }, n = T(v);
1535
+ M(
1392
1536
  () => t.selectable.value,
1393
- (p) => {
1394
- t && (r.value = p ? v : void 0);
1537
+ (f) => {
1538
+ t && (n.value = f ? v : void 0);
1395
1539
  },
1396
1540
  { immediate: !0 }
1397
- ), U(
1541
+ ), M(
1398
1542
  () => t.columns.value,
1399
1543
  () => {
1400
- c.value = Xe(t.columns.value);
1544
+ d.value = tt(t.columns.value);
1401
1545
  },
1402
1546
  { deep: !0, immediate: !0 }
1403
1547
  );
1404
- const m = C(!1);
1405
- return ke(() => {
1548
+ const m = T(!1);
1549
+ return Se(() => {
1406
1550
  m.value && t && t.autoload && (t.reload.value = !0);
1407
- }), we(se.GridControl, t), ae(async () => {
1408
- var p, w, $, b, S;
1409
- t.page && ((p = t.gridUrl) != null && p.url) && (((w = t.gridUrl) == null ? void 0 : w.url) === (($ = t.page.urls.list) == null ? void 0 : $.url) && (t.remotePage = !1), ((b = t.gridUrl) == null ? void 0 : b.url) === ((S = t.page.urls.find) == null ? void 0 : S.url) && (t.remotePage = !0)), t.tableData.value ? (f.value = t.tableData.value, t.total.value = f.value.length, u.value !== !1 && (u.value.total = t.total.value ?? 0)) : t.autoload !== !1 && (t.remotePage ? f.value = (await he(t)).rows : f.value = await Ze(t)), setTimeout(() => {
1551
+ }), Ce(oe.GridControl, t), le(async () => {
1552
+ var f, y, S, b, $;
1553
+ t.page && ((f = t.gridUrl) != null && f.url) && (((y = t.gridUrl) == null ? void 0 : y.url) === ((S = t.page.urls.list) == null ? void 0 : S.url) && (t.remotePage = !1), ((b = t.gridUrl) == null ? void 0 : b.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, i.value !== !1 && (i.value.total = t.total.value ?? 0)) : t.autoload !== !1 && (t.remotePage ? p.value = (await be(t)).rows : p.value = await at(t)), setTimeout(() => {
1410
1554
  m.value = !0;
1411
1555
  }, 50);
1412
- }), (p, w) => {
1413
- var b, S;
1414
- const $ = ne("auth");
1415
- return i(), y(L, null, [
1416
- (b = a(t).buttons) != null && b.value.length || (S = a(t).tools) != null && S.length ? (i(), _(_t, {
1556
+ }), (f, y) => {
1557
+ var b, $;
1558
+ const S = ne("auth");
1559
+ return u(), x(U, null, [
1560
+ (b = l(t).buttons) != null && b.value.length || ($ = l(t).tools) != null && $.length ? (u(), k(Ct, {
1417
1561
  key: 0,
1418
- "grid-ctrl": a(t),
1419
- "editor-ctrl": a(t).editor
1420
- }, null, 8, ["grid-ctrl", "editor-ctrl"])) : k("", !0),
1421
- m.value ? (i(), _(a(ft), A({
1562
+ "grid-ctrl": l(t),
1563
+ "editor-ctrl": l(t).editor
1564
+ }, null, 8, ["grid-ctrl", "editor-ctrl"])) : C("", !0),
1565
+ m.value ? (u(), k(l(mt), N({
1422
1566
  key: 1,
1423
1567
  class: "w-full min-h-[480px]",
1424
- "row-key": l.primaryKey ?? a(t).primaryKey ?? "Id",
1425
- "data-source": f.value,
1426
- loading: a(t).isGridLoading.value,
1427
- columns: c.value,
1428
- pagination: u.value,
1429
- "row-selection": r.value,
1430
- scroll: l.scroll || { x: 700 },
1431
- size: a(t).tableSize.value,
1568
+ "row-key": a.primaryKey ?? l(t).primaryKey ?? "Id",
1569
+ "data-source": p.value,
1570
+ loading: l(t).isGridLoading.value,
1571
+ columns: d.value,
1572
+ pagination: i.value,
1573
+ "row-selection": n.value,
1574
+ scroll: a.scroll || { x: 700 },
1575
+ size: l(t).tableSize.value,
1432
1576
  bordered: ""
1433
- }, a(e)), {
1434
- bodyCell: x((g) => {
1435
- var h, N;
1577
+ }, l(e)), {
1578
+ bodyCell: _((g) => {
1579
+ var h, B;
1436
1580
  return [
1437
- R(p.$slots, "bodyCell", {
1581
+ O(f.$slots, "bodyCell", {
1438
1582
  column: g == null ? void 0 : g.column,
1439
1583
  record: g == null ? void 0 : g.record
1440
1584
  }),
1441
- a(t) && ((h = g == null ? void 0 : g.column) == null ? void 0 : h.dataIndex) === "enabled" ? Q((i(), _(et, {
1585
+ l(t) && ((h = g == null ? void 0 : g.column) == null ? void 0 : h.dataIndex) === "enabled" ? Q((u(), k(lt, {
1442
1586
  key: 0,
1443
- checked: g.record[a(t).statusKey],
1444
- "onUpdate:checked": (K) => g.record[a(t).statusKey] = K,
1445
- disabled: p.statusDisabled ? p.statusDisabled(g.record) : !1,
1446
- data: a(Be).EnableDisable,
1447
- onClick: (K) => a(tt)(a(t), g.record),
1448
- class: B([
1587
+ checked: g.record[l(t).statusKey],
1588
+ "onUpdate:checked": (G) => g.record[l(t).statusKey] = G,
1589
+ disabled: f.statusDisabled ? f.statusDisabled(g.record) : !1,
1590
+ data: l(ze).EnableDisable,
1591
+ onClick: (G) => l(rt)(l(t), g.record),
1592
+ class: R([
1449
1593
  "w-[58px]",
1450
- p.statusDisabled && p.statusDisabled(g.record) ? "cursor-not-allowed disabled" : ""
1594
+ f.statusDisabled && f.statusDisabled(g.record) ? "cursor-not-allowed disabled" : ""
1451
1595
  ]),
1452
1596
  loading: g == null ? void 0 : g.record.isLoading
1453
1597
  }, null, 8, ["checked", "onUpdate:checked", "disabled", "data", "onClick", "class", "loading"])), [
1454
- [$, { url: o.value, role: ["Super", "Admin"], permit: ":enabled" }, "disable"]
1455
- ]) : k("", !0),
1456
- a(t) && ((N = g == null ? void 0 : g.column) == null ? void 0 : N.dataIndex) === "operation" ? R(p.$slots, "operate", {
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(f.$slots, "operate", {
1457
1601
  key: 1,
1458
1602
  record: g == null ? void 0 : g.record
1459
1603
  }, () => [
1460
- D(za, {
1604
+ F(Ha, {
1461
1605
  record: g == null ? void 0 : g.record,
1462
- "grid-ctrl": a(t)
1606
+ "grid-ctrl": l(t)
1463
1607
  }, null, 8, ["record", "grid-ctrl"])
1464
- ]) : k("", !0)
1608
+ ]) : C("", !0)
1465
1609
  ];
1466
1610
  }),
1467
1611
  _: 3
1468
- }, 16, ["row-key", "data-source", "loading", "columns", "pagination", "row-selection", "scroll", "size"])) : k("", !0)
1612
+ }, 16, ["row-key", "data-source", "loading", "columns", "pagination", "row-selection", "scroll", "size"])) : C("", !0)
1469
1613
  ], 64);
1470
1614
  };
1471
1615
  }
1472
- }), Oa = { class: "flex items-center" }, Ra = ["onClick"], Ka = {
1616
+ }), Qa = { class: "flex items-center" }, Ja = ["onClick"], Xa = {
1473
1617
  key: 1,
1474
1618
  class: "w-[1px] h-[16px] bg-[#d9d9d9] mx-[8px]"
1475
- }, Ee = /* @__PURE__ */ E({
1619
+ }, Me = /* @__PURE__ */ L({
1476
1620
  __name: "groupTools",
1477
1621
  props: {
1478
1622
  groupTools: {},
1479
1623
  groupClass: {}
1480
1624
  },
1481
- setup(d) {
1482
- const l = (e, t) => {
1625
+ setup(o) {
1626
+ const a = (e, t) => {
1483
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);
1484
1628
  };
1485
- return (e, t) => (i(), y("div", Oa, [
1486
- (i(!0), y(L, null, Y(e.groupTools, (o, n) => (i(), y(L, { key: n }, [
1487
- o.type === "tools" ? (i(), y("div", {
1629
+ return (e, t) => (u(), x("div", Qa, [
1630
+ (u(!0), x(U, null, j(e.groupTools, (s, c) => (u(), x(U, { key: c }, [
1631
+ s.type === "tools" ? (u(), x("div", {
1488
1632
  key: 0,
1489
- class: B([
1633
+ class: R([
1490
1634
  "inline-flex",
1491
1635
  e.groupClass || "",
1492
- o.class || ""
1636
+ s.class || ""
1493
1637
  ])
1494
1638
  }, [
1495
- (i(!0), y(L, null, Y(o.tools, (s, f) => {
1496
- var u, c;
1497
- return i(), y(L, {
1498
- key: s.key
1639
+ (u(!0), x(U, null, j(s.tools, (r, p) => {
1640
+ var i, d;
1641
+ return u(), x(U, {
1642
+ key: r.key
1499
1643
  }, [
1500
- a(J)(s) && !s.children && !s.component ? (i(), _(a(ee), A({
1644
+ l(J)(r) && !r.children && !r.component ? (u(), k(l(ee), N({
1501
1645
  key: 0,
1502
1646
  class: [
1503
- o.mode === "toggle" && o.selected === s.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]",
1647
+ s.mode === "toggle" && s.selected === r.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]",
1504
1648
  "hover:z-10 hover:border-[#666]",
1505
- f === 0 ? "rounded-l-[5px] ml-0" : "-ml-[1px]",
1506
- f === (((u = o.tools) == null ? void 0 : u.length) || 0) - 1 ? "rounded-r-[5px]" : "",
1507
- s.class || "",
1508
- s.display === "icon" ? "px-[6px]" : "",
1509
- s.display === "text" ? "px-[8px]" : ""
1649
+ p === 0 ? "rounded-l-[5px] ml-0" : "-ml-[1px]",
1650
+ p === (((i = s.tools) == null ? void 0 : i.length) || 0) - 1 ? "rounded-r-[5px]" : "",
1651
+ r.class || "",
1652
+ r.display === "icon" ? "px-[6px]" : "",
1653
+ r.display === "text" ? "px-[8px]" : ""
1510
1654
  ],
1511
- type: s.type,
1512
- danger: s.danger,
1513
- disabled: a(W)(s),
1514
- tiptext: s.label
1515
- }, { ref_for: !0 }, s.props, {
1516
- onClick: (v) => l(s, o)
1655
+ type: r.type,
1656
+ danger: r.danger,
1657
+ disabled: l(W)(r),
1658
+ tiptext: r.label
1659
+ }, { ref_for: !0 }, r.props, {
1660
+ onClick: (v) => a(r, s)
1517
1661
  }), {
1518
- default: x(() => [
1519
- s.display === "icon" && s.icon ? (i(), _(a(V), A({
1662
+ default: _(() => [
1663
+ r.display === "icon" && r.icon ? (u(), k(l(V), N({
1520
1664
  key: 0,
1521
- icon: s.icon,
1522
- class: ["w-[18px] h-[18.5px]", s.iconClass]
1523
- }, { ref_for: !0 }, s.iconProps, { clickable: "" }), null, 16, ["icon", "class"])) : s.display === "text" && s.label ? (i(), y(L, { key: 1 }, [
1524
- G(M(s.label), 1)
1525
- ], 64)) : (i(), y(L, { key: 2 }, [
1526
- s.icon ? (i(), _(a(V), A({
1665
+ icon: r.icon,
1666
+ class: ["w-[18px] h-[18.5px]", r.iconClass]
1667
+ }, { ref_for: !0 }, r.iconProps, { clickable: "" }), null, 16, ["icon", "class"])) : r.display === "text" && r.label ? (u(), x(U, { key: 1 }, [
1668
+ Y(E(r.label), 1)
1669
+ ], 64)) : (u(), x(U, { key: 2 }, [
1670
+ r.icon ? (u(), k(l(V), N({
1527
1671
  key: 0,
1528
- icon: s.icon,
1529
- class: ["w-[18px] h-[18.5px] mr-[4px]", s.iconClass]
1530
- }, { ref_for: !0 }, s.iconProps, { clickable: "" }), null, 16, ["icon", "class"])) : k("", !0),
1531
- s.label ? (i(), y(L, { key: 1 }, [
1532
- G(M(s.label), 1)
1533
- ], 64)) : k("", !0)
1672
+ icon: r.icon,
1673
+ class: ["w-[18px] h-[18.5px] mr-[4px]", r.iconClass]
1674
+ }, { ref_for: !0 }, r.iconProps, { clickable: "" }), null, 16, ["icon", "class"])) : C("", !0),
1675
+ r.label ? (u(), x(U, { key: 1 }, [
1676
+ Y(E(r.label), 1)
1677
+ ], 64)) : C("", !0)
1534
1678
  ], 64))
1535
1679
  ]),
1536
1680
  _: 2
1537
- }, 1040, ["class", "type", "danger", "disabled", "tiptext", "onClick"])) : s.component ? (i(), y("div", {
1681
+ }, 1040, ["class", "type", "danger", "disabled", "tiptext", "onClick"])) : r.component ? (u(), x("div", {
1538
1682
  key: 1,
1539
- class: B([
1540
- o.mode === "toggle" && o.selected === s.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",
1683
+ class: R([
1684
+ s.mode === "toggle" && s.selected === r.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",
1541
1685
  "hover:z-10 hover:border-[#666]",
1542
- f === 0 ? "rounded-l-[5px] ml-0" : "-ml-[1px]",
1543
- f === (((c = o.tools) == null ? void 0 : c.length) || 0) - 1 ? "rounded-r-[5px]" : "",
1544
- s.class || "",
1545
- a(W)(s) ? "opacity-50 cursor-not-allowed" : "cursor-pointer"
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]" : "",
1688
+ r.class || "",
1689
+ l(W)(r) ? "opacity-50 cursor-not-allowed" : "cursor-pointer"
1546
1690
  ]),
1547
- onClick: (v) => !a(W)(s) && l(s, o)
1691
+ onClick: (v) => !l(W)(r) && a(r, s)
1548
1692
  }, [
1549
- (i(), _(st(s.component), A({ ref_for: !0 }, {
1550
- ...s.props,
1551
- disabled: a(W)(s)
1693
+ (u(), k(nt(r.component), N({ ref_for: !0 }, {
1694
+ ...r.props,
1695
+ disabled: l(W)(r)
1552
1696
  }), null, 16))
1553
- ], 10, Ra)) : k("", !0)
1697
+ ], 10, Ja)) : C("", !0)
1554
1698
  ], 64);
1555
1699
  }), 128))
1556
- ], 2)) : o.type === "split" ? (i(), y("div", Ka)) : o.type === "space" ? (i(), y("div", {
1700
+ ], 2)) : s.type === "split" ? (u(), x("div", Xa)) : s.type === "space" ? (u(), x("div", {
1557
1701
  key: 2,
1558
- class: B(o.width ? o.width : "flex-1")
1559
- }, null, 2)) : k("", !0)
1702
+ class: R(s.width ? s.width : "flex-1")
1703
+ }, null, 2)) : C("", !0)
1560
1704
  ], 64))), 128))
1561
1705
  ]));
1562
1706
  }
1563
- }), ja = { class: "flex items-center gap-1" }, Ya = { class: "text-nowrap" }, dr = /* @__PURE__ */ E({
1707
+ }), Za = { class: "flex items-center gap-1" }, el = { class: "text-nowrap" }, Cr = /* @__PURE__ */ L({
1564
1708
  __name: "index",
1565
1709
  props: {
1566
1710
  treeCtrl: {},
@@ -1568,105 +1712,105 @@ const Zl = async (d, l) => {
1568
1712
  expandedKeys: {}
1569
1713
  },
1570
1714
  emits: ["select", "update:selectedKeys"],
1571
- setup(d, { emit: l }) {
1572
- const e = d, t = ue(), o = e.treeCtrl, n = C([]);
1573
- U(
1574
- () => o.data.value,
1715
+ setup(o, { emit: a }) {
1716
+ const e = o, t = de(), s = e.treeCtrl, c = T([]);
1717
+ M(
1718
+ () => s.data.value,
1575
1719
  (v) => {
1576
1720
  if (v) {
1577
- n.value = o.fieldMap ? be(o.fieldMap, v) : v;
1578
- const r = Et(n.value, f.value[0]);
1579
- if (r) {
1721
+ c.value = s.fieldMap ? ye(s.fieldMap, v) : v;
1722
+ const n = Lt(c.value, p.value[0]);
1723
+ if (n) {
1580
1724
  const m = {
1581
1725
  event: "select",
1582
1726
  node: {
1583
1727
  // 根据你的TreeNode结构构建node对象
1584
- key: r.key,
1585
- title: r.title,
1728
+ key: n.key,
1729
+ title: n.title,
1586
1730
  checked: !0,
1587
- dataRef: r
1731
+ dataRef: n
1588
1732
  },
1589
1733
  selected: !0,
1590
- selectedNodes: [r]
1734
+ selectedNodes: [n]
1591
1735
  };
1592
- c(f.value, m);
1736
+ d(p.value, m);
1593
1737
  }
1594
1738
  }
1595
1739
  }
1596
1740
  );
1597
- const s = l, f = C([]);
1598
- U(
1741
+ const r = a, p = T([]);
1742
+ M(
1599
1743
  () => e.selectedKeys,
1600
1744
  (v) => {
1601
- v && (f.value = v);
1745
+ v && (p.value = v);
1602
1746
  },
1603
1747
  { immediate: !0 }
1604
1748
  );
1605
- const u = C(["-"]);
1606
- U(
1749
+ const i = T(["-"]);
1750
+ M(
1607
1751
  () => e.expandedKeys,
1608
1752
  (v) => {
1609
- v && (u.value = v);
1753
+ v && (i.value = v);
1610
1754
  },
1611
1755
  { immediate: !0 }
1612
1756
  );
1613
- const c = (v, r) => {
1614
- v.length === 0 && v.push(...f.value), v.length > 0 && (o.node.value = r == null ? void 0 : r.node.dataRef), f.value = v, s("update:selectedKeys", v), s("select", v, r);
1757
+ const d = (v, n) => {
1758
+ v.length === 0 && v.push(...p.value), v.length > 0 && (s.node.value = n == null ? void 0 : n.node.dataRef), p.value = v, r("update:selectedKeys", v), r("select", v, n);
1615
1759
  };
1616
- return ae(() => {
1617
- o.fieldMap || (o.fieldMap = {
1760
+ return le(() => {
1761
+ s.fieldMap || (s.fieldMap = {
1618
1762
  label: "Name",
1619
1763
  key: "Id",
1620
1764
  value: "Id",
1621
1765
  icon: "Icon"
1622
- }), o.data.value ? n.value = be(o.fieldMap, o.data.value) : o.autoload && at(o);
1623
- }), (v, r) => (i(), _(a(ra), A({
1766
+ }), s.data.value ? c.value = ye(s.fieldMap, s.data.value) : s.autoload && ot(s);
1767
+ }), (v, n) => (u(), k(l(oa), N({
1624
1768
  class: "w-full",
1625
1769
  "show-line": !0,
1626
- "tree-data": n.value,
1627
- "expanded-keys": u.value,
1628
- "onUpdate:expandedKeys": r[0] || (r[0] = (m) => u.value = m),
1629
- "selected-keys": f.value,
1630
- loading: a(o).isTreeLoading,
1631
- onSelect: c
1632
- }, a(t)), {
1633
- title: x(({ key: m, label: p, icon: w }) => [
1634
- R(v.$slots, "title", {
1635
- label: p,
1770
+ "tree-data": c.value,
1771
+ "expanded-keys": i.value,
1772
+ "onUpdate:expandedKeys": n[0] || (n[0] = (m) => i.value = m),
1773
+ "selected-keys": p.value,
1774
+ loading: l(s).isTreeLoading,
1775
+ onSelect: d
1776
+ }, l(t)), {
1777
+ title: _(({ key: m, label: f, icon: y }) => [
1778
+ O(v.$slots, "title", {
1779
+ label: f,
1636
1780
  key: m,
1637
- icon: w
1781
+ icon: y
1638
1782
  }, () => [
1639
- I("div", ja, [
1640
- D(a(V), { icon: w }, null, 8, ["icon"]),
1641
- I("span", Ya, M(p), 1)
1783
+ I("div", Za, [
1784
+ F(l(V), { icon: y }, null, 8, ["icon"]),
1785
+ I("span", el, E(f), 1)
1642
1786
  ])
1643
1787
  ])
1644
1788
  ]),
1645
1789
  _: 3
1646
1790
  }, 16, ["tree-data", "expanded-keys", "selected-keys", "loading"]));
1647
1791
  }
1648
- }), Va = { class: "relative h-full" }, Ga = {
1792
+ }), tl = { class: "relative h-full" }, al = {
1649
1793
  key: 0,
1650
1794
  class: "h-full flex flex-col"
1651
- }, Wa = { class: "px-3 pt-3 pb-2 flex items-center justify-end gap-2" }, qa = {
1795
+ }, ll = { class: "px-3 pt-3 pb-2 flex items-center justify-end gap-2" }, rl = {
1652
1796
  key: 0,
1653
1797
  class: "px-3 pt-3 pb-2"
1654
- }, Ha = { class: "flex-1 overflow-y-auto px-4 pb-4" }, Qa = ["onClick"], Ja = {
1798
+ }, ol = { class: "flex-1 overflow-y-auto px-4 pb-4" }, sl = ["onClick"], nl = {
1655
1799
  key: 1,
1656
1800
  class: "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"
1657
- }, Xa = { key: 2 }, Za = {
1801
+ }, il = { key: 2 }, cl = {
1658
1802
  key: 0,
1659
1803
  class: "grid grid-cols-3 gap-1.5 px-1"
1660
- }, el = ["title", "draggable", "onClick", "onDragstart"], tl = { class: "text-xs text-gray-700 font-medium text-center leading-tight truncate w-full group-hover:text-gray-900" }, al = {
1804
+ }, ul = ["title", "draggable", "onClick", "onDragstart"], dl = { class: "text-xs text-gray-700 font-medium text-center leading-tight truncate w-full group-hover:text-gray-900" }, pl = {
1661
1805
  key: 1,
1662
1806
  class: "space-y-1.5"
1663
- }, ll = ["title", "draggable", "onClick", "onDragstart"], rl = { class: "flex-1 min-w-0" }, sl = { class: "font-medium text-gray-900 text-sm group-hover:text-gray-950 text-center" }, ol = {
1807
+ }, fl = ["title", "draggable", "onClick", "onDragstart"], vl = { class: "flex-1 min-w-0" }, ml = { class: "font-medium text-gray-900 text-sm group-hover:text-gray-950 text-center" }, gl = {
1664
1808
  key: 0,
1665
1809
  class: "text-xs text-gray-600 mt-0.5 truncate group-hover:text-gray-700 text-center"
1666
- }, nl = {
1810
+ }, hl = {
1667
1811
  key: 1,
1668
1812
  class: "relative h-full"
1669
- }, il = { class: "pt-4 pb-2 flex justify-center" }, ul = { class: "overflow-y-auto flex flex-col items-center gap-3 pb-4" }, cl = ["title", "draggable", "onClick", "onDragstart"], pr = /* @__PURE__ */ E({
1813
+ }, bl = { class: "pt-4 pb-2 flex justify-center" }, yl = { class: "overflow-y-auto flex flex-col items-center gap-3 pb-4" }, xl = ["title", "draggable", "onClick", "onDragstart"], Sr = /* @__PURE__ */ L({
1670
1814
  __name: "index",
1671
1815
  props: {
1672
1816
  tools: {},
@@ -1686,337 +1830,337 @@ const Zl = async (d, l) => {
1686
1830
  onCollapseChange: {},
1687
1831
  dragConfig: {}
1688
1832
  },
1689
- setup(d) {
1690
- const l = d, e = C(""), t = C({}), o = j(() => Array.isArray(l.tools) && l.tools.length > 0 && "tools" in l.tools[0]), n = j(() => {
1691
- if (!l.tools || !Array.isArray(l.tools))
1833
+ setup(o) {
1834
+ const a = o, e = T(""), t = T({}), s = K(() => Array.isArray(a.tools) && a.tools.length > 0 && "tools" in a.tools[0]), c = K(() => {
1835
+ if (!a.tools || !Array.isArray(a.tools))
1692
1836
  return [];
1693
- if (o.value)
1694
- return l.tools;
1695
- const b = l.tools;
1837
+ if (s.value)
1838
+ return a.tools;
1839
+ const b = a.tools;
1696
1840
  return [{
1697
1841
  id: "default-group",
1698
- name: F("webui.components.content.toolpanel.tool"),
1842
+ name: w("webui.components.content.toolpanel.tool"),
1699
1843
  tools: b
1700
1844
  }];
1701
- }), s = j(() => {
1845
+ }), r = K(() => {
1702
1846
  if (!e.value.trim())
1703
- return n.value;
1704
- const b = e.value.toLowerCase(), S = n.value.map((g) => ({
1847
+ return c.value;
1848
+ const b = e.value.toLowerCase(), $ = c.value.map((g) => ({
1705
1849
  ...g,
1706
1850
  tools: g.tools.filter((h) => {
1707
- var z, O;
1708
- const N = (z = h.label) == null ? void 0 : z.toLowerCase().includes(b), K = (O = h.description) == null ? void 0 : O.toLowerCase().includes(b);
1709
- return N || K;
1851
+ var A, z;
1852
+ const B = (A = h.label) == null ? void 0 : A.toLowerCase().includes(b), G = (z = h.description) == null ? void 0 : z.toLowerCase().includes(b);
1853
+ return B || G;
1710
1854
  })
1711
1855
  })).filter((g) => g.tools.length > 0);
1712
- if (e.value.trim() && S.length > 0) {
1713
- const g = S.flatMap((h) => h.tools);
1856
+ if (e.value.trim() && $.length > 0) {
1857
+ const g = $.flatMap((h) => h.tools);
1714
1858
  return [{
1715
1859
  id: "search-results",
1716
- name: F("webui.components.content.toolpanel.searchResult"),
1860
+ name: w("webui.components.content.toolpanel.searchResult"),
1717
1861
  tools: g
1718
1862
  }];
1719
1863
  }
1720
- return S;
1721
- }), f = j(() => l.collapsed ? l.width.collapsed : l.width.expanded), u = j(() => l.showModeToggle ? [{
1864
+ return $;
1865
+ }), p = K(() => a.collapsed ? a.width.collapsed : a.width.expanded), i = K(() => a.showModeToggle ? [{
1722
1866
  type: "tools",
1723
1867
  mode: "toggle",
1724
- selected: l.mode,
1868
+ selected: a.mode,
1725
1869
  tools: [
1726
1870
  {
1727
1871
  key: "list",
1728
- label: F("webui.components.content.toolpanel.list"),
1872
+ label: w("webui.components.content.toolpanel.list"),
1729
1873
  icon: "icon-datalist",
1730
1874
  display: "icon",
1731
- tiptext: F("webui.components.content.toolpanel.listView"),
1875
+ tiptext: w("webui.components.content.toolpanel.listView"),
1732
1876
  click: () => {
1733
1877
  var b;
1734
- (b = l.onModeChange) == null || b.call(l, "list");
1878
+ (b = a.onModeChange) == null || b.call(a, "list");
1735
1879
  }
1736
1880
  },
1737
1881
  {
1738
1882
  key: "grid",
1739
- label: F("webui.components.content.toolpanel.grid"),
1883
+ label: w("webui.components.content.toolpanel.grid"),
1740
1884
  icon: "icon-icon-list",
1741
1885
  display: "icon",
1742
- tiptext: F("webui.components.content.toolpanel.gridView"),
1886
+ tiptext: w("webui.components.content.toolpanel.gridView"),
1743
1887
  click: () => {
1744
1888
  var b;
1745
- (b = l.onModeChange) == null || b.call(l, "grid");
1889
+ (b = a.onModeChange) == null || b.call(a, "grid");
1746
1890
  }
1747
1891
  }
1748
1892
  ]
1749
- }] : []), c = j(() => [{
1893
+ }] : []), d = K(() => [{
1750
1894
  type: "tools",
1751
1895
  mode: "normal",
1752
1896
  tools: [
1753
1897
  {
1754
1898
  key: "collapse",
1755
- label: l.collapsed ? F("webui.components.content.toolpanel.expand") : F("webui.components.content.toolpanel.collapse"),
1899
+ label: a.collapsed ? w("webui.components.content.toolpanel.expand") : w("webui.components.content.toolpanel.collapse"),
1756
1900
  icon: "icon-menu",
1757
1901
  display: "icon",
1758
- tiptext: l.collapsed ? F("webui.components.content.toolpanel.expandPanel") : F("webui.components.content.toolpanel.collapsePanel"),
1902
+ tiptext: a.collapsed ? w("webui.components.content.toolpanel.expandPanel") : w("webui.components.content.toolpanel.collapsePanel"),
1759
1903
  // 添加特殊的点击处理
1760
1904
  click: () => {
1761
1905
  var b;
1762
- (b = l.onCollapseChange) == null || b.call(l, !l.collapsed);
1906
+ (b = a.onCollapseChange) == null || b.call(a, !a.collapsed);
1763
1907
  }
1764
1908
  }
1765
1909
  ]
1766
- }]), v = (b) => t.value[b] ?? !1, r = (b) => {
1767
- if (!l.allowGroupCollapse) return;
1768
- const S = !t.value[b];
1910
+ }]), v = (b) => t.value[b] ?? !1, n = (b) => {
1911
+ if (!a.allowGroupCollapse) return;
1912
+ const $ = !t.value[b];
1769
1913
  t.value = {
1770
1914
  ...t.value,
1771
- [b]: S
1772
- }, console.log("切换分组折叠状态:", b, S);
1773
- }, m = (b, S) => {
1915
+ [b]: $
1916
+ }, console.log("切换分组折叠状态:", b, $);
1917
+ }, m = (b, $) => {
1774
1918
  var g;
1775
- W(b) || (X(b), (g = l.onToolClick) == null || g.call(l, b, S));
1776
- }, p = (b) => {
1777
- var S;
1778
- e.value = b, (S = l.onSearch) == null || S.call(l, b);
1779
- }, w = (b, S) => {
1919
+ W(b) || (X(b), (g = a.onToolClick) == null || g.call(a, b, $));
1920
+ }, f = (b) => {
1921
+ var $;
1922
+ e.value = b, ($ = a.onSearch) == null || $.call(a, b);
1923
+ }, y = (b, $) => {
1780
1924
  var g, h;
1781
- (h = (g = l.dragConfig) == null ? void 0 : g.onDragStart) == null || h.call(g, b, S);
1782
- }, $ = (b) => {
1783
- var S, g;
1784
- (g = (S = l.dragConfig) == null ? void 0 : S.onDragEnd) == null || g.call(S, b);
1925
+ (h = (g = a.dragConfig) == null ? void 0 : g.onDragStart) == null || h.call(g, b, $);
1926
+ }, S = (b) => {
1927
+ var $, g;
1928
+ (g = ($ = a.dragConfig) == null ? void 0 : $.onDragEnd) == null || g.call($, b);
1785
1929
  };
1786
- return (b, S) => (i(), y("div", Va, [
1930
+ return (b, $) => (u(), x("div", tl, [
1787
1931
  I("div", {
1788
- class: B(["h-full bg-white border-r border-gray-200 transition-all duration-300 ease-in-out shadow-sm", f.value])
1932
+ class: R(["h-full bg-white border-r border-gray-200 transition-all duration-300 ease-in-out shadow-sm", p.value])
1789
1933
  }, [
1790
- l.collapsed ? (i(), y("div", nl, [
1791
- I("div", il, [
1792
- D(Ee, {
1793
- "group-tools": c.value
1934
+ a.collapsed ? (u(), x("div", hl, [
1935
+ I("div", bl, [
1936
+ F(Me, {
1937
+ "group-tools": d.value
1794
1938
  }, null, 8, ["group-tools"])
1795
1939
  ]),
1796
- I("div", ul, [
1797
- (i(!0), y(L, null, Y(s.value, (g) => (i(), y("div", {
1940
+ I("div", yl, [
1941
+ (u(!0), x(U, null, j(r.value, (g) => (u(), x("div", {
1798
1942
  key: g.id,
1799
1943
  class: "flex flex-col items-center gap-2"
1800
1944
  }, [
1801
- (i(!0), y(L, null, Y(g.tools, (h) => {
1802
- var N, K;
1803
- return Q((i(), y("div", A({
1945
+ (u(!0), x(U, null, j(g.tools, (h) => {
1946
+ var B, G;
1947
+ return Q((u(), x("div", N({
1804
1948
  key: h.key,
1805
1949
  title: `${h.label}${h.description ? ": " + h.description : ""}`,
1806
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", [
1807
- a(W)(h) ? "opacity-50 cursor-not-allowed bg-gray-200" : "hover:scale-110",
1951
+ l(W)(h) ? "opacity-50 cursor-not-allowed bg-gray-200" : "hover:scale-110",
1808
1952
  h.class || "",
1809
- (N = b.dragConfig) != null && N.draggable ? "cursor-move" : ""
1953
+ (B = b.dragConfig) != null && B.draggable ? "cursor-move" : ""
1810
1954
  ]],
1811
- draggable: (K = b.dragConfig) == null ? void 0 : K.draggable,
1812
- onClick: (z) => h.click ? h.click(h, z) : m(h, z),
1813
- onDragstart: (z) => w(z, h),
1814
- onDragend: S[5] || (S[5] = (z) => $(z))
1955
+ draggable: (G = b.dragConfig) == null ? void 0 : G.draggable,
1956
+ onClick: (A) => h.click ? h.click(h, A) : m(h, A),
1957
+ onDragstart: (A) => y(A, h),
1958
+ onDragend: $[5] || ($[5] = (A) => S(A))
1815
1959
  }, { ref_for: !0 }, b.dragConfig), [
1816
- h.icon ? (i(), _(a(V), A({
1960
+ h.icon ? (u(), k(l(V), N({
1817
1961
  key: 0,
1818
1962
  icon: h.icon,
1819
1963
  class: ["w-7 h-7 text-blue-600 group-hover:text-blue-700 transition-colors", h.iconClass]
1820
- }, { ref_for: !0 }, h.iconProps), null, 16, ["icon", "class"])) : k("", !0)
1821
- ], 16, cl)), [
1822
- [Pe, a(J)(h)]
1964
+ }, { ref_for: !0 }, h.iconProps), null, 16, ["icon", "class"])) : C("", !0)
1965
+ ], 16, xl)), [
1966
+ [Ee, l(J)(h)]
1823
1967
  ]);
1824
1968
  }), 128))
1825
1969
  ]))), 128))
1826
1970
  ])
1827
- ])) : (i(), y("div", Ga, [
1828
- I("div", Wa, [
1829
- b.showModeToggle ? (i(), _(Ee, {
1971
+ ])) : (u(), x("div", al, [
1972
+ I("div", ll, [
1973
+ b.showModeToggle ? (u(), k(Me, {
1830
1974
  key: 0,
1831
- "group-tools": u.value
1832
- }, null, 8, ["group-tools"])) : k("", !0),
1833
- D(Ee, {
1834
- "group-tools": c.value
1975
+ "group-tools": i.value
1976
+ }, null, 8, ["group-tools"])) : C("", !0),
1977
+ F(Me, {
1978
+ "group-tools": d.value
1835
1979
  }, null, 8, ["group-tools"])
1836
1980
  ]),
1837
- b.showSearch ? (i(), y("div", qa, [
1838
- D(a(wt), {
1981
+ b.showSearch ? (u(), x("div", rl, [
1982
+ F(l(St), {
1839
1983
  value: e.value,
1840
1984
  "onUpdate:value": [
1841
- S[0] || (S[0] = (g) => e.value = g),
1842
- S[1] || (S[1] = (g) => p(g))
1985
+ $[0] || ($[0] = (g) => e.value = g),
1986
+ $[1] || ($[1] = (g) => f(g))
1843
1987
  ],
1844
- placeholder: a(F)("webui.components.content.toolpanel.searchPlaceholder"),
1988
+ placeholder: l(w)("webui.components.content.toolpanel.searchPlaceholder"),
1845
1989
  "allow-clear": "",
1846
1990
  size: "small",
1847
1991
  class: "w-full",
1848
- onPressEnter: S[2] || (S[2] = (g) => p(g.target.value))
1992
+ onPressEnter: $[2] || ($[2] = (g) => f(g.target.value))
1849
1993
  }, null, 8, ["value", "placeholder"])
1850
- ])) : k("", !0),
1851
- I("div", Ha, [
1852
- (i(!0), y(L, null, Y(s.value, (g) => (i(), y("div", {
1994
+ ])) : C("", !0),
1995
+ I("div", ol, [
1996
+ (u(!0), x(U, null, j(r.value, (g) => (u(), x("div", {
1853
1997
  key: g.id,
1854
1998
  class: "mb-4 last:mb-0"
1855
1999
  }, [
1856
- b.allowGroupCollapse && g.id !== "search-results" && g.id !== "default-group" ? (i(), y("div", {
2000
+ b.allowGroupCollapse && g.id !== "search-results" && g.id !== "default-group" ? (u(), x("div", {
1857
2001
  key: 0,
1858
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",
1859
- onClick: (h) => r(g.id)
2003
+ onClick: (h) => n(g.id)
1860
2004
  }, [
1861
- I("span", null, M(g.name), 1),
1862
- D(a(V), {
2005
+ I("span", null, E(g.name), 1),
2006
+ F(l(V), {
1863
2007
  icon: v(g.id) ? "icon-chevron-right" : "icon-chevron-down",
1864
2008
  class: "w-3.5 h-3.5 transition-transform duration-200"
1865
2009
  }, null, 8, ["icon"])
1866
- ], 8, Qa)) : g.id !== "search-results" && g.id !== "default-group" ? (i(), y("h3", Ja, M(g.name), 1)) : k("", !0),
1867
- !v(g.id) || g.id === "search-results" || g.id === "default-group" ? (i(), y("div", Xa, [
1868
- l.mode === "grid" ? (i(), y("div", Za, [
1869
- (i(!0), y(L, null, Y(g.tools, (h) => {
1870
- var N, K, z;
1871
- return Q((i(), y("div", A({
2010
+ ], 8, sl)) : g.id !== "search-results" && g.id !== "default-group" ? (u(), x("h3", nl, E(g.name), 1)) : C("", !0),
2011
+ !v(g.id) || g.id === "search-results" || g.id === "default-group" ? (u(), x("div", il, [
2012
+ a.mode === "grid" ? (u(), x("div", cl, [
2013
+ (u(!0), x(U, null, j(g.tools, (h) => {
2014
+ var B, G, A;
2015
+ return Q((u(), x("div", N({
1872
2016
  key: h.key,
1873
2017
  title: `${h.label}${h.description ? ": " + h.description : ""}`,
1874
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", [
1875
- a(W)(h) ? "opacity-50 cursor-not-allowed bg-gray-200" : "hover:scale-105",
2019
+ l(W)(h) ? "opacity-50 cursor-not-allowed bg-gray-200" : "hover:scale-105",
1876
2020
  h.class || "",
1877
- (N = b.dragConfig) != null && N.draggable ? "cursor-move" : ""
2021
+ (B = b.dragConfig) != null && B.draggable ? "cursor-move" : ""
1878
2022
  ]],
1879
- draggable: (K = b.dragConfig) == null ? void 0 : K.draggable,
1880
- onClick: (O) => h.click ? h.click(h, O) : m(h, O),
1881
- onDragstart: (O) => w(O, h),
1882
- onDragend: S[3] || (S[3] = (O) => $(O))
2023
+ draggable: (G = b.dragConfig) == null ? void 0 : G.draggable,
2024
+ onClick: (z) => h.click ? h.click(h, z) : m(h, z),
2025
+ onDragstart: (z) => y(z, h),
2026
+ onDragend: $[3] || ($[3] = (z) => S(z))
1883
2027
  }, { ref_for: !0 }, b.dragConfig), [
1884
- h.icon ? (i(), _(a(V), A({
2028
+ h.icon ? (u(), k(l(V), N({
1885
2029
  key: 0,
1886
2030
  icon: h.icon,
1887
2031
  class: ["w-9 h-9 mb-1 text-blue-600 group-hover:text-blue-700 transition-colors flex-shrink-0 !cursor-move", [
1888
2032
  h.iconClass,
1889
- (z = b.dragConfig) != null && z.draggable ? "cursor-move" : ""
2033
+ (A = b.dragConfig) != null && A.draggable ? "cursor-move" : ""
1890
2034
  ]]
1891
- }, { ref_for: !0 }, h.iconProps), null, 16, ["icon", "class"])) : k("", !0),
1892
- I("span", tl, M(h.label), 1)
1893
- ], 16, el)), [
1894
- [Pe, a(J)(h)]
2035
+ }, { ref_for: !0 }, h.iconProps), null, 16, ["icon", "class"])) : C("", !0),
2036
+ I("span", dl, E(h.label), 1)
2037
+ ], 16, ul)), [
2038
+ [Ee, l(J)(h)]
1895
2039
  ]);
1896
2040
  }), 128))
1897
- ])) : (i(), y("div", al, [
1898
- (i(!0), y(L, null, Y(g.tools, (h) => {
1899
- var N, K, z;
1900
- return Q((i(), y("div", A({
2041
+ ])) : (u(), x("div", pl, [
2042
+ (u(!0), x(U, null, j(g.tools, (h) => {
2043
+ var B, G, A;
2044
+ return Q((u(), x("div", N({
1901
2045
  key: h.key,
1902
2046
  title: `${h.label}${h.description ? ": " + h.description : ""}`,
1903
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", [
1904
- a(W)(h) ? "opacity-50 cursor-not-allowed bg-gray-200" : "hover:scale-[1.02]",
2048
+ l(W)(h) ? "opacity-50 cursor-not-allowed bg-gray-200" : "hover:scale-[1.02]",
1905
2049
  h.class || "",
1906
- (N = b.dragConfig) != null && N.draggable ? "cursor-move" : ""
2050
+ (B = b.dragConfig) != null && B.draggable ? "cursor-move" : ""
1907
2051
  ]],
1908
- draggable: (K = b.dragConfig) == null ? void 0 : K.draggable,
1909
- onClick: (O) => h.click ? h.click(h, O) : m(h, O),
1910
- onDragstart: (O) => w(O, h),
1911
- onDragend: S[4] || (S[4] = (O) => $(O))
2052
+ draggable: (G = b.dragConfig) == null ? void 0 : G.draggable,
2053
+ onClick: (z) => h.click ? h.click(h, z) : m(h, z),
2054
+ onDragstart: (z) => y(z, h),
2055
+ onDragend: $[4] || ($[4] = (z) => S(z))
1912
2056
  }, { ref_for: !0 }, b.dragConfig), [
1913
- h.icon ? (i(), _(a(V), A({
2057
+ h.icon ? (u(), k(l(V), N({
1914
2058
  key: 0,
1915
2059
  icon: h.icon,
1916
2060
  class: ["w-7 h-7 mr-2.5 flex-shrink-0 text-blue-600 group-hover:text-blue-700 transition-colors", [
1917
2061
  h.iconClass,
1918
- (z = b.dragConfig) != null && z.draggable ? "!cursor-move" : ""
2062
+ (A = b.dragConfig) != null && A.draggable ? "!cursor-move" : ""
1919
2063
  ]]
1920
- }, { ref_for: !0 }, h.iconProps), null, 16, ["icon", "class"])) : k("", !0),
1921
- I("div", rl, [
1922
- I("div", sl, M(h.label), 1),
1923
- h.description ? (i(), y("div", ol, M(h.description), 1)) : k("", !0)
2064
+ }, { ref_for: !0 }, h.iconProps), null, 16, ["icon", "class"])) : C("", !0),
2065
+ I("div", vl, [
2066
+ I("div", ml, E(h.label), 1),
2067
+ h.description ? (u(), x("div", gl, E(h.description), 1)) : C("", !0)
1924
2068
  ])
1925
- ], 16, ll)), [
1926
- [Pe, a(J)(h)]
2069
+ ], 16, fl)), [
2070
+ [Ee, l(J)(h)]
1927
2071
  ]);
1928
2072
  }), 128))
1929
2073
  ]))
1930
- ])) : k("", !0)
2074
+ ])) : C("", !0)
1931
2075
  ]))), 128))
1932
2076
  ])
1933
2077
  ]))
1934
2078
  ], 2)
1935
2079
  ]));
1936
2080
  }
1937
- }), fr = /* @__PURE__ */ ie(Lt, [["__scopeId", "data-v-87722b44"]]), dl = { class: "relative w-[248px] max-w-[248px]" }, pl = {
2081
+ }), Tr = /* @__PURE__ */ ie(Ut, [["__scopeId", "data-v-87722b44"]]), wl = { class: "relative w-[248px] max-w-[248px]" }, _l = {
1938
2082
  key: 0,
1939
2083
  class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
1940
- }, fl = /* @__PURE__ */ E({
2084
+ }, kl = /* @__PURE__ */ L({
1941
2085
  inheritAttrs: !1,
1942
2086
  __name: "index",
1943
- props: Ut,
2087
+ props: Mt,
1944
2088
  emits: ["change", "update:labels", "update:value"],
1945
- setup(d, { emit: l }) {
1946
- var $, b, S;
1947
- const e = d, t = ue(), o = te(), n = Mt(e.url, e), s = e.optionCtrl ?? n.optionCtrl;
1948
- s.inputFactory = Ht(o);
1949
- const f = C({
1950
- ...s == null ? void 0 : s.url,
1951
- url: (($ = s == null ? void 0 : s.url) == null ? void 0 : $.url) || "",
1952
- fieldMap: (s == null ? void 0 : s.fieldMap) || ((b = s == null ? void 0 : s.url) == null ? void 0 : b.fieldMap),
1953
- params: (s == null ? void 0 : s.params) || ((S = s == null ? void 0 : s.url) == null ? void 0 : S.params),
2089
+ setup(o, { emit: a }) {
2090
+ var S, b, $;
2091
+ const e = o, t = de(), s = te(), c = Nt(e.url, e), r = e.optionCtrl ?? c.optionCtrl;
2092
+ r.inputFactory = Qt(s);
2093
+ const p = T({
2094
+ ...r == null ? void 0 : r.url,
2095
+ url: ((S = r == null ? void 0 : r.url) == null ? void 0 : S.url) || "",
2096
+ fieldMap: (r == null ? void 0 : r.fieldMap) || ((b = r == null ? void 0 : r.url) == null ? void 0 : b.fieldMap),
2097
+ params: (r == null ? void 0 : r.params) || (($ = r == null ? void 0 : r.url) == null ? void 0 : $.params),
1954
2098
  loadingText: !1
1955
- }), { editorCtrl: u, errInfo: c, labelText: v } = o, r = C(t.placeholder);
1956
- U(
1957
- () => f.value.loading,
2099
+ }), { editorCtrl: i, errInfo: d, labelText: v } = s, n = T(t.placeholder);
2100
+ M(
2101
+ () => p.value.loading,
1958
2102
  (g) => {
1959
- g ? r.value = "" : r.value || (r.value = "请选择" + v.value);
2103
+ g ? n.value = "" : n.value || (n.value = w("webui.components.form.cascader.pleaseSelect", [v.value]));
1960
2104
  },
1961
2105
  { immediate: !0 }
1962
2106
  );
1963
- const m = l;
1964
- o.inputEmit = m;
1965
- const p = C((s == null ? void 0 : s.options.value) || []);
1966
- s && U(
1967
- () => s.options.value,
2107
+ const m = a;
2108
+ s.inputEmit = m;
2109
+ const f = T((r == null ? void 0 : r.options.value) || []);
2110
+ r && M(
2111
+ () => r.options.value,
1968
2112
  (g) => {
1969
- p.value = g || [];
2113
+ f.value = g || [];
1970
2114
  },
1971
2115
  { immediate: !0, deep: !0 }
1972
2116
  );
1973
- const w = (g, h) => {
2117
+ const y = (g, h) => {
1974
2118
  if (!h || h.length === 0) {
1975
2119
  m("update:labels", []), m("update:value", []);
1976
2120
  return;
1977
2121
  }
1978
- const N = h.map((O) => O.value), K = zt(s, e, N), z = Ot(K);
1979
- m("update:labels", z), m("update:value", N), c != null && c.value.errClass && u && oe(u);
2122
+ const B = h.map((z) => z.value), G = zt(r, e, B), A = Ot(G);
2123
+ m("update:labels", A), m("update:value", B), d != null && d.value.errClass && i && se(i);
1980
2124
  };
1981
- return ke(() => {
1982
- s && s.autoload && (s.reload.value = !0);
1983
- }), ae(() => {
1984
- f.value && !f.value.fieldMap && (f.value.fieldMap = {
2125
+ return Se(() => {
2126
+ r && r.autoload && (r.reload.value = !0);
2127
+ }), le(() => {
2128
+ p.value && !p.value.fieldMap && (p.value.fieldMap = {
1985
2129
  title: "Name",
1986
2130
  label: "Name",
1987
2131
  value: "Id",
1988
2132
  key: "Id"
1989
- }), s && At(s.autoload, s, e);
1990
- }), Qt(() => {
1991
- s && Bt(s, e);
2133
+ }), r && Rt(r.autoload, r, e);
2134
+ }), Jt(() => {
2135
+ r && Bt(r, e);
1992
2136
  }), (g, h) => {
1993
- var N;
1994
- return i(), y("div", dl, [
1995
- p.value.length ? k("", !0) : (i(), y("div", pl, [
1996
- D(a(Nt), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
1997
- h[0] || (h[0] = I("span", null, "数据加载中...", -1))
2137
+ var B;
2138
+ return u(), x("div", wl, [
2139
+ f.value.length ? C("", !0) : (u(), x("div", _l, [
2140
+ F(l(At), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
2141
+ I("span", null, E(l(w)("webui.components.form.cascader.loading")), 1)
1998
2142
  ])),
1999
- D(a(sa), A({
2000
- options: p.value,
2001
- class: [(N = a(c)) == null ? void 0 : N.errClass],
2143
+ F(l(sa), N({
2144
+ options: f.value,
2145
+ class: [(B = l(d)) == null ? void 0 : B.errClass],
2002
2146
  "allow-clear": !0,
2003
- placeholder: p.value.length > 0 ? "请选择" + a(v) : "",
2004
- onChange: w
2005
- }, a(t)), null, 16, ["options", "class", "placeholder"])
2147
+ placeholder: f.value.length > 0 ? l(w)("webui.components.form.cascader.pleaseSelect", [l(v)]) : "",
2148
+ onChange: y
2149
+ }, l(t)), null, 16, ["options", "class", "placeholder"])
2006
2150
  ]);
2007
2151
  };
2008
2152
  }
2009
- }), vr = /* @__PURE__ */ ie(fl, [["__scopeId", "data-v-51ddfce3"]]), mr = /* @__PURE__ */ ie(Rt, [["__scopeId", "data-v-249ea772"]]);
2010
- function _e() {
2011
- return _e = Object.assign ? Object.assign.bind() : function(d) {
2012
- for (var l = 1; l < arguments.length; l++) {
2013
- var e = arguments[l];
2014
- for (var t in e) ({}).hasOwnProperty.call(e, t) && (d[t] = e[t]);
2153
+ }), $r = /* @__PURE__ */ ie(kl, [["__scopeId", "data-v-9293618e"]]), Dr = /* @__PURE__ */ ie(Kt, [["__scopeId", "data-v-b16e9e97"]]);
2154
+ function ke() {
2155
+ return ke = Object.assign ? Object.assign.bind() : function(o) {
2156
+ for (var a = 1; a < arguments.length; a++) {
2157
+ var e = arguments[a];
2158
+ for (var t in e) ({}).hasOwnProperty.call(e, t) && (o[t] = e[t]);
2015
2159
  }
2016
- return d;
2017
- }, _e.apply(null, arguments);
2160
+ return o;
2161
+ }, ke.apply(null, arguments);
2018
2162
  }
2019
- const vl = {
2163
+ const Cl = {
2020
2164
  locale: "zh_CN",
2021
2165
  today: "今天",
2022
2166
  now: "此刻",
@@ -2043,11 +2187,11 @@ const vl = {
2043
2187
  nextDecade: "下一年代",
2044
2188
  previousCentury: "上一世纪",
2045
2189
  nextCentury: "下一世纪"
2046
- }, ml = {
2190
+ }, Sl = {
2047
2191
  placeholder: "请选择时间",
2048
2192
  rangePlaceholder: ["开始时间", "结束时间"]
2049
- }, $e = {
2050
- lang: _e({
2193
+ }, Fe = {
2194
+ lang: ke({
2051
2195
  placeholder: "请选择日期",
2052
2196
  yearPlaceholder: "请选择年份",
2053
2197
  quarterPlaceholder: "请选择季度",
@@ -2058,159 +2202,159 @@ const vl = {
2058
2202
  rangeMonthPlaceholder: ["开始月份", "结束月份"],
2059
2203
  rangeQuarterPlaceholder: ["开始季度", "结束季度"],
2060
2204
  rangeWeekPlaceholder: ["开始周", "结束周"]
2061
- }, vl),
2062
- timePickerLocale: _e({}, ml)
2205
+ }, Cl),
2206
+ timePickerLocale: ke({}, Sl)
2063
2207
  };
2064
- $e.lang.ok = "确定";
2065
- const gr = /* @__PURE__ */ E({
2208
+ Fe.lang.ok = "确定";
2209
+ const Fr = /* @__PURE__ */ L({
2066
2210
  __name: "index",
2067
2211
  props: {
2068
2212
  valueFormat: {}
2069
2213
  },
2070
- setup(d) {
2071
- const l = d, { editorCtrl: e, labelText: t, errInfo: o } = te(), n = () => {
2072
- o != null && o.value.errClass && e && oe(e);
2073
- }, s = C(l.valueFormat ?? "YYYY-MM-DD");
2074
- return (f, u) => {
2075
- var c;
2076
- return i(), _(a(oa), {
2077
- class: B(["w-full", [((c = a(o)) == null ? void 0 : c.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
2078
- placeholder: "请选择" + a(t),
2079
- locale: a($e),
2080
- valueFormat: s.value,
2081
- onBlur: n
2214
+ setup(o) {
2215
+ const a = o, { editorCtrl: e, labelText: t, errInfo: s } = te(), c = () => {
2216
+ s != null && s.value.errClass && e && se(e);
2217
+ }, r = T(a.valueFormat ?? "YYYY-MM-DD");
2218
+ return (p, i) => {
2219
+ var d;
2220
+ return u(), k(l(na), {
2221
+ class: R(["w-full", [((d = l(s)) == null ? void 0 : d.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
2222
+ placeholder: l(w)("webui.components.form.datePicker.pleaseSelect", [l(t)]),
2223
+ locale: l(Fe),
2224
+ valueFormat: r.value,
2225
+ onBlur: c
2082
2226
  }, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
2083
2227
  };
2084
2228
  }
2085
- }), wt = /* @__PURE__ */ E({
2229
+ }), St = /* @__PURE__ */ L({
2086
2230
  __name: "index",
2087
2231
  props: {
2088
2232
  value: {},
2089
2233
  undefValue: { type: Boolean, default: !1 }
2090
2234
  },
2091
2235
  emits: ["update:value"],
2092
- setup(d, { emit: l }) {
2093
- const { t: e } = lt(), { editorCtrl: t, labelText: o, errInfo: n } = te(), s = () => {
2094
- n != null && n.value.errClass && t && oe(t);
2095
- }, f = d, u = f.value === void 0 ? !0 : f.undefValue, c = l, v = C(f.value);
2096
- U(
2097
- () => f.value,
2236
+ setup(o, { emit: a }) {
2237
+ const { t: e } = ue(), { editorCtrl: t, labelText: s, errInfo: c } = te(), r = () => {
2238
+ c != null && c.value.errClass && t && se(t);
2239
+ }, p = o, i = p.value === void 0 ? !0 : p.undefValue, d = a, v = T(p.value);
2240
+ M(
2241
+ () => p.value,
2098
2242
  (m) => {
2099
2243
  v.value = m;
2100
2244
  },
2101
2245
  { immediate: !0 }
2102
2246
  // 立即同步初始值
2103
- ), U(
2247
+ ), M(
2104
2248
  () => v.value,
2105
2249
  (m) => {
2106
2250
  if (v.value === "") {
2107
- c("update:value", void 0);
2251
+ d("update:value", void 0);
2108
2252
  return;
2109
2253
  }
2110
- c("update:value", m);
2254
+ d("update:value", m);
2111
2255
  }
2112
2256
  );
2113
- const r = () => {
2114
- v.value === "" && (v.value = u ? void 0 : null);
2257
+ const n = () => {
2258
+ v.value === "" && (v.value = i ? void 0 : null);
2115
2259
  };
2116
- return (m, p) => {
2117
- var w, $;
2118
- return i(), _(a(fe), A({
2260
+ return (m, f) => {
2261
+ var y, S;
2262
+ return u(), k(l(me), N({
2119
2263
  class: [
2120
- (w = a(n)) == null ? void 0 : w.errClass,
2121
- (($ = a(n)) == null ? void 0 : $.errClass) === "error" && !m.$slots.addonBefore && !m.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
2264
+ (y = l(c)) == null ? void 0 : y.errClass,
2265
+ ((S = l(c)) == null ? void 0 : S.errClass) === "error" && !m.$slots.addonBefore && !m.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
2122
2266
  ],
2123
2267
  value: v.value,
2124
- "onUpdate:value": p[0] || (p[0] = (b) => v.value = b),
2268
+ "onUpdate:value": f[0] || (f[0] = (b) => v.value = b),
2125
2269
  autocomplete: "new-password",
2126
2270
  "allow-clear": !0,
2127
- placeholder: a(e)("webui.form.inputPlaceholder", [a(o)]),
2128
- onBlur: s,
2129
- onChange: r
2130
- }, m.$attrs), ot({ _: 2 }, [
2271
+ placeholder: l(e)("webui.common.placeholder", [l(s)]),
2272
+ onBlur: r,
2273
+ onChange: n
2274
+ }, m.$attrs), it({ _: 2 }, [
2131
2275
  m.$slots.addonBefore ? {
2132
2276
  name: "addonBefore",
2133
- fn: x(() => [
2134
- R(m.$slots, "addonBefore")
2277
+ fn: _(() => [
2278
+ O(m.$slots, "addonBefore")
2135
2279
  ]),
2136
2280
  key: "0"
2137
2281
  } : void 0,
2138
2282
  m.$slots.addonAfter ? {
2139
2283
  name: "addonAfter",
2140
- fn: x(() => [
2141
- R(m.$slots, "addonAfter")
2284
+ fn: _(() => [
2285
+ O(m.$slots, "addonAfter")
2142
2286
  ]),
2143
2287
  key: "1"
2144
2288
  } : void 0
2145
2289
  ]), 1040, ["class", "value", "placeholder"]);
2146
2290
  };
2147
2291
  }
2148
- }), gl = /* @__PURE__ */ E({
2292
+ }), Tl = /* @__PURE__ */ L({
2149
2293
  __name: "inputIcon",
2150
2294
  props: {
2151
2295
  value: {}
2152
2296
  },
2153
2297
  emits: ["update:value"],
2154
- setup(d, { emit: l }) {
2155
- const e = d, t = l, o = C(void 0);
2156
- return U(
2298
+ setup(o, { emit: a }) {
2299
+ const e = o, t = a, s = T(void 0);
2300
+ return M(
2157
2301
  () => e.value,
2158
- (n) => {
2159
- o.value = n ?? void 0;
2302
+ (c) => {
2303
+ s.value = c ?? void 0;
2160
2304
  },
2161
2305
  { immediate: !0 }
2162
- ), U(
2163
- () => o.value,
2164
- (n) => {
2165
- t("update:value", n);
2306
+ ), M(
2307
+ () => s.value,
2308
+ (c) => {
2309
+ t("update:value", c);
2166
2310
  }
2167
- ), (n, s) => (i(), _(wt, A({
2168
- value: o.value,
2169
- "onUpdate:value": s[0] || (s[0] = (f) => o.value = f)
2170
- }, n.$attrs), {
2171
- addonBefore: x(() => [
2172
- D(a(V), {
2311
+ ), (c, r) => (u(), k(St, N({
2312
+ value: s.value,
2313
+ "onUpdate:value": r[0] || (r[0] = (p) => s.value = p)
2314
+ }, c.$attrs), {
2315
+ addonBefore: _(() => [
2316
+ F(l(V), {
2173
2317
  class: "!w-4 !h-4",
2174
- icon: o.value
2318
+ icon: s.value
2175
2319
  }, null, 8, ["icon"])
2176
2320
  ]),
2177
2321
  _: 1
2178
2322
  }, 16, ["value"]));
2179
2323
  }
2180
- }), hr = /* @__PURE__ */ ie(gl, [["__scopeId", "data-v-358b82ef"]]), br = /* @__PURE__ */ E({
2324
+ }), Pr = /* @__PURE__ */ ie(Tl, [["__scopeId", "data-v-358b82ef"]]), Ir = /* @__PURE__ */ L({
2181
2325
  __name: "inputPassword",
2182
- setup(d) {
2183
- const { editorCtrl: l, labelText: e, errInfo: t } = te(), o = () => {
2184
- t != null && t.value.errClass && l && oe(l);
2326
+ setup(o) {
2327
+ const { editorCtrl: a, labelText: e, errInfo: t } = te(), { t: s } = ue(), c = () => {
2328
+ t != null && t.value.errClass && a && se(a);
2185
2329
  };
2186
- return (n, s) => {
2187
- var f;
2188
- return i(), _(a(na), A({
2189
- class: ((f = a(t)) == null ? void 0 : f.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
2330
+ return (r, p) => {
2331
+ var i;
2332
+ return u(), k(l(ia), N({
2333
+ class: ((i = l(t)) == null ? void 0 : i.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
2190
2334
  "allow-clear": !0,
2191
2335
  autocomplete: "new-password",
2192
- placeholder: "请输入" + a(e),
2193
- onBlur: o
2194
- }, n.$attrs), null, 16, ["class", "placeholder"]);
2336
+ placeholder: l(s)("webui.common.placeholder", [l(e)]),
2337
+ onBlur: c
2338
+ }, r.$attrs), null, 16, ["class", "placeholder"]);
2195
2339
  };
2196
2340
  }
2197
- }), yr = /* @__PURE__ */ E({
2341
+ }), Er = /* @__PURE__ */ L({
2198
2342
  __name: "inputNumber",
2199
- setup(d) {
2200
- const { editorCtrl: l, labelText: e, errInfo: t } = te(), o = () => {
2201
- t != null && t.value.errClass && l && oe(l);
2343
+ setup(o) {
2344
+ const { editorCtrl: a, labelText: e, errInfo: t } = te(), { t: s } = ue(), c = () => {
2345
+ t != null && t.value.errClass && a && se(a);
2202
2346
  };
2203
- return (n, s) => {
2204
- var f;
2205
- return i(), _(a(ia), A({
2206
- class: [[((f = a(t)) == null ? void 0 : f.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
2207
- onBlur: o,
2347
+ return (r, p) => {
2348
+ var i;
2349
+ return u(), k(l(ca), N({
2350
+ class: [[((i = l(t)) == null ? void 0 : i.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
2351
+ onBlur: c,
2208
2352
  "allow-clear": !1,
2209
- placeholder: "请输入" + a(e)
2210
- }, n.$attrs), null, 16, ["class", "placeholder"]);
2353
+ placeholder: l(s)("webui.common.placeholder", [l(e)])
2354
+ }, r.$attrs), null, 16, ["class", "placeholder"]);
2211
2355
  };
2212
2356
  }
2213
- }), hl = { class: "flex flex-col gap-2" }, bl = { key: 1 }, xr = /* @__PURE__ */ E({
2357
+ }), $l = { class: "flex flex-col gap-2" }, Dl = { key: 1 }, Lr = /* @__PURE__ */ L({
2214
2358
  __name: "index",
2215
2359
  props: {
2216
2360
  value: {},
@@ -2221,108 +2365,107 @@ const gr = /* @__PURE__ */ E({
2221
2365
  valueHolder: {}
2222
2366
  },
2223
2367
  emits: ["update:value"],
2224
- setup(d, { emit: l }) {
2225
- const e = d, t = l, o = C(!(e.selectList && e.selectList.length > 0)), n = C([]);
2226
- let s = !1;
2227
- const f = () => {
2228
- e.selectList && e.selectList.length > 0 ? n.value = e.selectList.map((r) => ({
2368
+ setup(o, { emit: a }) {
2369
+ const e = o, t = a, s = T(!(e.selectList && e.selectList.length > 0)), c = T([]);
2370
+ let r = !1;
2371
+ const p = () => {
2372
+ e.selectList && e.selectList.length > 0 ? c.value = e.selectList.map((m) => ({
2229
2373
  id: Date.now() + Math.random(),
2230
- text: r.text,
2231
- field: r.field,
2374
+ text: m.text,
2375
+ field: m.field,
2232
2376
  // 如果value中有对应的field,使用value中的值,否则使用selectList中的默认值
2233
- value: e.value[r.field] ?? r.value
2234
- })) : e.value && Object.keys(e.value).length > 0 ? n.value = Object.entries(e.value).filter(([r]) => !e.ignoreList || !e.ignoreList.includes(r)).map(([r, m]) => ({
2377
+ value: e.value[m.field] ?? m.value
2378
+ })) : e.value && Object.keys(e.value).length > 0 ? c.value = Object.entries(e.value).filter(([m]) => !e.ignoreList || !e.ignoreList.includes(m)).map(([m, f]) => ({
2235
2379
  id: Date.now() + Math.random(),
2236
- field: r,
2237
- value: m
2238
- })) : n.value = [];
2380
+ field: m,
2381
+ value: f
2382
+ })) : c.value = [];
2239
2383
  };
2240
- U(
2384
+ M(
2241
2385
  () => e.value,
2242
2386
  () => {
2243
- s || f(), s = !1;
2387
+ r || p(), r = !1;
2244
2388
  },
2245
2389
  { immediate: !0 }
2246
2390
  );
2247
- const u = () => {
2248
- let r;
2249
- e.selectList && e.selectList.length > 0 ? (r = { ...e.value }, n.value.forEach((m) => {
2250
- m.field && (r[m.field] = m.value);
2251
- })) : (r = n.value.reduce(
2252
- (m, p) => (p.field && (m[p.field] = p.value), m),
2391
+ const { t: i } = ue(), d = () => {
2392
+ let m;
2393
+ e.selectList && e.selectList.length > 0 ? (m = { ...e.value }, c.value.forEach((f) => {
2394
+ f.field && (m[f.field] = f.value);
2395
+ })) : (m = c.value.reduce(
2396
+ (f, y) => (y.field && (f[y.field] = y.value), f),
2253
2397
  {}
2254
- ), e.ignoreList && e.ignoreList.length > 0 && e.ignoreList.forEach((m) => {
2255
- e.value[m] !== void 0 && (r[m] = e.value[m]);
2256
- })), s = !0, t("update:value", r);
2257
- }, c = () => {
2258
- n.value.push({
2398
+ ), e.ignoreList && e.ignoreList.length > 0 && e.ignoreList.forEach((f) => {
2399
+ e.value[f] !== void 0 && (m[f] = e.value[f]);
2400
+ })), r = !0, t("update:value", m);
2401
+ }, v = () => {
2402
+ c.value.push({
2259
2403
  id: Date.now() + Math.random(),
2260
2404
  field: "",
2261
2405
  value: ""
2262
2406
  });
2263
- }, v = () => {
2264
- u();
2407
+ }, n = () => {
2408
+ d();
2265
2409
  };
2266
- return (r, m) => (i(), y("div", hl, [
2267
- (i(!0), y(L, null, Y(n.value, (p) => (i(), y("div", {
2268
- key: p.id,
2410
+ return (m, f) => (u(), x("div", $l, [
2411
+ (u(!0), x(U, null, j(c.value, (y) => (u(), x("div", {
2412
+ key: y.id,
2269
2413
  class: "flex items-center gap-2"
2270
2414
  }, [
2271
2415
  I("div", {
2272
- class: B([r.fieldWidth ? `w-[${r.fieldWidth}%]` : "w-[33%]"])
2416
+ class: R([m.fieldWidth ? `w-[${m.fieldWidth}%]` : "w-[33%]"])
2273
2417
  }, [
2274
- !r.selectList || r.selectList.length === 0 ? (i(), _(a(fe), {
2418
+ !m.selectList || m.selectList.length === 0 ? (u(), k(l(me), {
2275
2419
  key: 0,
2276
- value: p.field,
2277
- "onUpdate:value": (w) => p.field = w,
2278
- title: p.text || p.field,
2420
+ value: y.field,
2421
+ "onUpdate:value": (S) => y.field = S,
2422
+ title: y.text || y.field,
2279
2423
  class: "w-full",
2280
- placeholder: p.text || r.labelHolder || "配置名",
2281
- onInput: v,
2282
- disabled: !o.value
2283
- }, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (i(), y("div", bl, [
2284
- D(a(fe), {
2285
- value: p.text,
2286
- "onUpdate:value": (w) => p.text = w,
2287
- title: p.text,
2424
+ placeholder: y.text || m.labelHolder || l(i)("webui.components.form.propEditor.configName"),
2425
+ onInput: n,
2426
+ disabled: !s.value
2427
+ }, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (u(), x("div", Dl, [
2428
+ F(l(me), {
2429
+ value: y.text,
2430
+ "onUpdate:value": (S) => y.text = S,
2431
+ title: y.text,
2288
2432
  disabled: !0,
2289
2433
  class: "w-[100%]"
2290
2434
  }, null, 8, ["value", "onUpdate:value", "title"]),
2291
- D(a(fe), {
2435
+ F(l(me), {
2292
2436
  type: "hidden",
2293
- value: p.field,
2294
- "onUpdate:value": (w) => p.field = w
2437
+ value: y.field,
2438
+ "onUpdate:value": (S) => y.field = S
2295
2439
  }, null, 8, ["value", "onUpdate:value"])
2296
2440
  ]))
2297
2441
  ], 2),
2298
- m[0] || (m[0] = I("div", { class: "w-[3%]" }, "=", -1)),
2442
+ f[0] || (f[0] = I("div", { class: "w-[3%]" }, "=", -1)),
2299
2443
  I("div", {
2300
- class: B([r.fieldWidth ? `w-[${97 - r.fieldWidth}%]` : "w-[64%]"])
2444
+ class: R([m.fieldWidth ? `w-[${97 - m.fieldWidth}%]` : "w-[64%]"])
2301
2445
  }, [
2302
- D(a(fe), {
2303
- value: p.value,
2304
- "onUpdate:value": (w) => p.value = w,
2305
- placeholder: r.valueHolder || "请输入" + p.text || "请输入配置值",
2306
- onInput: v,
2307
- title: p.value
2446
+ F(l(me), {
2447
+ value: y.value,
2448
+ "onUpdate:value": (S) => y.value = S,
2449
+ placeholder: m.valueHolder || l(i)("webui.common.placeholder", [y.text || l(i)("webui.components.form.propEditor.configValue")]),
2450
+ onInput: n,
2451
+ title: y.value
2308
2452
  }, null, 8, ["value", "onUpdate:value", "placeholder", "title"])
2309
2453
  ], 2)
2310
2454
  ]))), 128)),
2311
- o.value ? (i(), _(a(pt), {
2455
+ s.value ? (u(), k(l(vt), {
2312
2456
  key: 0,
2313
- onClick: c,
2457
+ onClick: v,
2314
2458
  class: "mt-1 w-[80px] !text-[12px] text-[#666] bg-[#e6f7ff] border-[#b3e0ff] hover:bg-[#b3e0ff] hover:border-[#8abeff]",
2315
2459
  size: "small"
2316
2460
  }, {
2317
- default: x(() => m[1] || (m[1] = [
2318
- G(" 新增配置行 ")
2319
- ])),
2320
- _: 1,
2321
- __: [1]
2322
- })) : k("", !0)
2461
+ default: _(() => [
2462
+ Y(E(l(i)("webui.components.form.propEditor.addConfigRow")), 1)
2463
+ ]),
2464
+ _: 1
2465
+ })) : C("", !0)
2323
2466
  ]));
2324
2467
  }
2325
- }), yl = /* @__PURE__ */ ie(Kt, [["__scopeId", "data-v-aa237552"]]), _r = /* @__PURE__ */ E({
2468
+ }), Fl = /* @__PURE__ */ ie(jt, [["__scopeId", "data-v-89ba1c83"]]), Ur = /* @__PURE__ */ L({
2326
2469
  __name: "radioStatus",
2327
2470
  props: {
2328
2471
  /**
@@ -2349,14 +2492,14 @@ const gr = /* @__PURE__ */ E({
2349
2492
  required: !1
2350
2493
  }
2351
2494
  },
2352
- setup(d) {
2353
- const l = d, e = C(JSON.parse(JSON.stringify(Be.getOptions(l.dataKey))));
2354
- return l.all === !0 && e.value.unshift({
2355
- label: "全部",
2356
- value: l.allValue || [0, 1]
2357
- }), (t, o) => (i(), _(yl, { data: e.value }, null, 8, ["data"]));
2495
+ setup(o) {
2496
+ const a = o, e = T(JSON.parse(JSON.stringify(ze.getOptions(a.dataKey))));
2497
+ return a.all === !0 && e.value.unshift({
2498
+ label: w("webui.components.form.radio.all"),
2499
+ value: a.allValue || [0, 1]
2500
+ }), (t, s) => (u(), k(Fl, { data: e.value }, null, 8, ["data"]));
2358
2501
  }
2359
- }), wr = /* @__PURE__ */ E({
2502
+ }), Mr = /* @__PURE__ */ L({
2360
2503
  __name: "index",
2361
2504
  props: {
2362
2505
  startDate: {},
@@ -2364,75 +2507,75 @@ const gr = /* @__PURE__ */ E({
2364
2507
  valueFormat: { default: "YYYY-MM-DD" }
2365
2508
  },
2366
2509
  emits: ["update:startDate", "update:endDate"],
2367
- setup(d, { emit: l }) {
2368
- const e = d, t = l, o = te(), { errInfo: n } = o, s = j(() => e.valueFormat), f = j(() => {
2369
- const c = e.startDate, v = e.endDate;
2370
- if (!(!c || !v))
2510
+ setup(o, { emit: a }) {
2511
+ const e = o, t = a, s = te(), { errInfo: c } = s, r = K(() => e.valueFormat), p = K(() => {
2512
+ const d = e.startDate, v = e.endDate;
2513
+ if (!(!d || !v))
2371
2514
  try {
2372
- const r = Le(c), m = Le(v);
2373
- return !r.isValid() || !m.isValid() ? void 0 : [r, m];
2515
+ const n = Ne(d), m = Ne(v);
2516
+ return !n.isValid() || !m.isValid() ? void 0 : [n, m];
2374
2517
  } catch {
2375
2518
  return;
2376
2519
  }
2377
- }), u = (c, v) => {
2378
- if (!c || !v || v.length !== 2) {
2520
+ }), i = (d, v) => {
2521
+ if (!d || !v || v.length !== 2) {
2379
2522
  t("update:startDate", null), t("update:endDate", null);
2380
2523
  return;
2381
2524
  }
2382
2525
  t("update:startDate", v[0] || null), t("update:endDate", v[1] || null);
2383
2526
  };
2384
- return (c, v) => {
2385
- var r;
2386
- return i(), _(a(ua), {
2387
- class: B([((r = a(n)) == null ? void 0 : r.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
2388
- locale: a($e),
2389
- "value-format": s.value,
2390
- value: f.value,
2391
- onChange: u
2527
+ return (d, v) => {
2528
+ var n;
2529
+ return u(), k(l(ua), {
2530
+ class: R([((n = l(c)) == null ? void 0 : n.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
2531
+ locale: l(Fe),
2532
+ "value-format": r.value,
2533
+ value: p.value,
2534
+ onChange: i
2392
2535
  }, null, 8, ["class", "locale", "value-format", "value"]);
2393
2536
  };
2394
2537
  }
2395
- }), kr = /* @__PURE__ */ ie(jt, [["__scopeId", "data-v-f95d8895"]]), Cr = /* @__PURE__ */ E({
2538
+ }), Nr = /* @__PURE__ */ ie(Vt, [["__scopeId", "data-v-f95d8895"]]), Rr = /* @__PURE__ */ L({
2396
2539
  __name: "index",
2397
- setup(d) {
2398
- const { t: l } = lt(), { editorCtrl: e, labelText: t, errInfo: o } = te(), n = () => {
2399
- o != null && o.value.errClass && e && oe(e);
2540
+ setup(o) {
2541
+ const { t: a } = ue(), { editorCtrl: e, labelText: t, errInfo: s } = te(), c = () => {
2542
+ s != null && s.value.errClass && e && se(e);
2400
2543
  };
2401
- return (s, f) => {
2402
- var u;
2403
- return i(), _(a(ca), A({
2404
- class: ((u = a(o)) == null ? void 0 : u.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
2544
+ return (r, p) => {
2545
+ var i;
2546
+ return u(), k(l(da), N({
2547
+ class: ((i = l(s)) == null ? void 0 : i.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
2405
2548
  "allow-clear": !0,
2406
- placeholder: a(l)("webui.form.inputPlaceholder", [a(t)]),
2407
- onBlur: n,
2408
- onKeyup: f[0] || (f[0] = je(ve(() => {
2549
+ placeholder: l(a)("webui.common.placeholder", [l(t)]),
2550
+ onBlur: c,
2551
+ onKeyup: p[0] || (p[0] = Ge(ge(() => {
2409
2552
  }, ["stop"]), ["enter", "native"])),
2410
- onKeydown: f[1] || (f[1] = je(ve(() => {
2553
+ onKeydown: p[1] || (p[1] = Ge(ge(() => {
2411
2554
  }, ["stop"]), ["enter", "native"]))
2412
- }, s.$attrs), null, 16, ["class", "placeholder"]);
2555
+ }, r.$attrs), null, 16, ["class", "placeholder"]);
2413
2556
  };
2414
2557
  }
2415
- }), Sr = /* @__PURE__ */ E({
2558
+ }), Br = /* @__PURE__ */ L({
2416
2559
  __name: "index",
2417
2560
  props: {
2418
2561
  valueFormat: {}
2419
2562
  },
2420
- setup(d) {
2421
- const l = d, { editorCtrl: e, labelText: t, errInfo: o } = te(), n = () => {
2422
- o != null && o.value.errClass && e && oe(e);
2423
- }, s = C(l.valueFormat ?? "HH:mm");
2424
- return (f, u) => {
2425
- var c;
2426
- return i(), _(a(da), {
2427
- class: B(["w-full", [((c = a(o)) == null ? void 0 : c.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
2428
- placeholder: "请选择" + a(t),
2429
- locale: a($e),
2430
- valueFormat: s.value,
2431
- onBlur: n
2563
+ setup(o) {
2564
+ const a = o, { editorCtrl: e, labelText: t, errInfo: s } = te(), { t: c } = ue(), r = () => {
2565
+ s != null && s.value.errClass && e && se(e);
2566
+ }, p = T(a.valueFormat ?? "HH:mm");
2567
+ return (i, d) => {
2568
+ var v;
2569
+ return u(), k(l(pa), {
2570
+ class: R(["w-full", [((v = l(s)) == null ? void 0 : v.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
2571
+ placeholder: l(c)("webui.common.pleaseSelect") + l(t),
2572
+ locale: l(Fe),
2573
+ valueFormat: p.value,
2574
+ onBlur: r
2432
2575
  }, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
2433
2576
  };
2434
2577
  }
2435
- }), xl = /* @__PURE__ */ E({
2578
+ }), Pl = /* @__PURE__ */ L({
2436
2579
  __name: "index",
2437
2580
  props: {
2438
2581
  autoload: { type: Boolean },
@@ -2441,46 +2584,46 @@ const gr = /* @__PURE__ */ E({
2441
2584
  value: {}
2442
2585
  },
2443
2586
  emits: ["change", "update:value"],
2444
- setup(d, { emit: l }) {
2445
- const e = d, t = C({ ...e.url }), { editorCtrl: o, labelText: n, errInfo: s } = te(), f = l, u = C([]), c = C([]);
2446
- e.value && e.value.every((r) => {
2447
- c.value.push(r.toString());
2448
- }), U(
2587
+ setup(o, { emit: a }) {
2588
+ const e = o, t = T({ ...e.url }), { editorCtrl: s, labelText: c, errInfo: r } = te(), p = a, i = T([]), d = T([]);
2589
+ e.value && e.value.every((n) => {
2590
+ d.value.push(n.toString());
2591
+ }), M(
2449
2592
  () => e.value,
2450
- (r) => {
2451
- r && (c.value = r);
2593
+ (n) => {
2594
+ n && (d.value = n);
2452
2595
  }
2453
2596
  );
2454
- const v = (r) => {
2455
- f("update:value", r), f("change", r), c.value = r, s != null && s.value.errClass && o && oe(o);
2597
+ const v = (n) => {
2598
+ p("update:value", n), p("change", n), d.value = n, r != null && r.value.errClass && s && se(s);
2456
2599
  };
2457
- return ae(async () => {
2600
+ return le(async () => {
2458
2601
  if (t.value) {
2459
- const r = o == null ? void 0 : o.page;
2460
- if (t.value.api || (t.value.api = r == null ? void 0 : r.api), t.value.authorize === void 0 && (t.value.authorize = r == null ? void 0 : r.authorize), e.autoload) {
2461
- const m = await rt(o, {
2602
+ const n = s == null ? void 0 : s.page;
2603
+ if (t.value.api || (t.value.api = n == null ? void 0 : n.api), t.value.authorize === void 0 && (t.value.authorize = n == null ? void 0 : n.authorize), e.autoload) {
2604
+ const m = await st(s, {
2462
2605
  urlKey: "list",
2463
2606
  url: { ...t.value, url: t.value.url },
2464
2607
  loadingText: !1,
2465
2608
  params: e.params
2466
2609
  });
2467
- u.value = (m == null ? void 0 : m.data) ?? [];
2610
+ i.value = (m == null ? void 0 : m.data) ?? [];
2468
2611
  }
2469
2612
  }
2470
- }), (r, m) => {
2471
- var p;
2472
- return i(), _(a(pa), A({
2473
- class: ((p = a(s)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
2474
- placeholder: a(F)("webui.components.form.transfer.pleaseInput", [a(n)]),
2475
- targetKeys: c.value,
2613
+ }), (n, m) => {
2614
+ var f;
2615
+ return u(), k(l(fa), N({
2616
+ class: ((f = l(r)) == null ? void 0 : f.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
2617
+ placeholder: l(w)("webui.components.form.transfer.pleaseInput", [l(c)]),
2618
+ targetKeys: d.value,
2476
2619
  onChange: v
2477
- }, r.$attrs), {
2478
- children: x(({ direction: w, disabled: $, filteredItems: b, onItemSelectAll: S, onItemSelect: g, selectedKeys: h }) => [
2479
- R(r.$slots, "children", {
2480
- direction: w,
2481
- disabled: $,
2620
+ }, n.$attrs), {
2621
+ children: _(({ direction: y, disabled: S, filteredItems: b, onItemSelectAll: $, onItemSelect: g, selectedKeys: h }) => [
2622
+ O(n.$slots, "children", {
2623
+ direction: y,
2624
+ disabled: S,
2482
2625
  filteredItems: b,
2483
- onItemSelectAll: S,
2626
+ onItemSelectAll: $,
2484
2627
  onItemSelect: g,
2485
2628
  selectedKeys: h
2486
2629
  })
@@ -2489,7 +2632,7 @@ const gr = /* @__PURE__ */ E({
2489
2632
  }, 16, ["class", "placeholder", "targetKeys"]);
2490
2633
  };
2491
2634
  }
2492
- }), $r = /* @__PURE__ */ E({
2635
+ }), Ar = /* @__PURE__ */ L({
2493
2636
  __name: "transferTable",
2494
2637
  props: {
2495
2638
  /**
@@ -2515,79 +2658,79 @@ const gr = /* @__PURE__ */ E({
2515
2658
  }
2516
2659
  },
2517
2660
  emits: ["update:value"],
2518
- setup(d, { emit: l }) {
2519
- const e = d, t = l, o = C(e.autoload), n = C(e.value), s = C(e.gridCtrl.primaryKey);
2520
- U(
2521
- () => n.value,
2522
- (c) => {
2523
- t("update:value", c);
2661
+ setup(o, { emit: a }) {
2662
+ const e = o, t = a, s = T(e.autoload), c = T(e.value), r = T(e.gridCtrl.primaryKey);
2663
+ M(
2664
+ () => c.value,
2665
+ (d) => {
2666
+ t("update:value", d);
2524
2667
  }
2525
- ), U(
2668
+ ), M(
2526
2669
  () => e.value,
2527
- (c) => {
2528
- c && (n.value = c);
2670
+ (d) => {
2671
+ d && (c.value = d);
2529
2672
  }
2530
- ), e.gridCtrl.autoload = !1, e.gridCtrl.remotePage = !1, e.gridCtrl.selectable = C(!0), e.gridCtrl.buttons = C([]), e.gridCtrl.tools = [];
2531
- const f = ({ disabled: c, selectedKeys: v, onItemSelectAll: r, onItemSelect: m }) => ({
2532
- getCheckboxProps: (p) => ({
2673
+ ), 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: v, onItemSelectAll: n, onItemSelect: m }) => ({
2675
+ getCheckboxProps: (f) => ({
2533
2676
  // 控制是否禁止
2534
- disabled: c || p.disabled
2677
+ disabled: d || f.disabled
2535
2678
  }),
2536
- onSelectAll(p, w) {
2537
- const $ = w.filter((b) => !b.disabled).map(({ [s.value]: b }) => b);
2538
- r($, p);
2679
+ onSelectAll(f, y) {
2680
+ const S = y.filter((b) => !b.disabled).map(({ [r.value]: b }) => b);
2681
+ n(S, f);
2539
2682
  },
2540
- onSelect({ [s.value]: p }, w) {
2541
- m(p, w);
2683
+ onSelect({ [r.value]: f }, y) {
2684
+ m(f, y);
2542
2685
  },
2543
2686
  selectedRowKeys: v
2544
- }), u = C([]);
2545
- return ae(async () => {
2546
- if (o.value) {
2547
- const c = await rt(e.gridCtrl, {
2687
+ }), i = T([]);
2688
+ return le(async () => {
2689
+ if (s.value) {
2690
+ const d = await st(e.gridCtrl, {
2548
2691
  urlKey: "list",
2549
2692
  url: { ...e.gridCtrl.gridUrl, url: e.gridCtrl.gridUrl.url },
2550
2693
  params: e.gridCtrl.gridQuery,
2551
2694
  loadingText: !1
2552
2695
  });
2553
- u.value = (c == null ? void 0 : c.data) ?? [];
2696
+ i.value = (d == null ? void 0 : d.data) ?? [];
2554
2697
  }
2555
- }), (c, v) => (i(), _(xl, A({
2556
- "data-source": u.value,
2557
- "row-key": (r) => r[s.value],
2558
- value: n.value,
2559
- "onUpdate:value": v[0] || (v[0] = (r) => n.value = r),
2698
+ }), (d, v) => (u(), k(Pl, N({
2699
+ "data-source": i.value,
2700
+ "row-key": (n) => n[r.value],
2701
+ value: c.value,
2702
+ "onUpdate:value": v[0] || (v[0] = (n) => c.value = n),
2560
2703
  "list-style": {
2561
2704
  width: "300px",
2562
2705
  height: "500px"
2563
2706
  },
2564
2707
  "show-select-all": !1,
2565
2708
  "show-search": !0,
2566
- "filter-option": (r, m) => {
2567
- for (const p of e.gridCtrl.columns.value)
2568
- if (m[p.dataIndex].toString().indexOf(r) !== -1)
2709
+ "filter-option": (n, m) => {
2710
+ for (const f of e.gridCtrl.columns.value)
2711
+ if (m[f.dataIndex].toString().indexOf(n) !== -1)
2569
2712
  return !0;
2570
2713
  return !1;
2571
2714
  }
2572
- }, c.$attrs), {
2573
- children: x(({ filteredItems: r, onItemSelectAll: m, onItemSelect: p, selectedKeys: w }) => [
2574
- D(a(ft), {
2575
- columns: d.gridCtrl.columns.value,
2576
- "row-key": s.value,
2577
- "row-selection": f({
2715
+ }, d.$attrs), {
2716
+ children: _(({ filteredItems: n, onItemSelectAll: m, onItemSelect: f, selectedKeys: y }) => [
2717
+ F(l(mt), {
2718
+ columns: o.gridCtrl.columns.value,
2719
+ "row-key": r.value,
2720
+ "row-selection": p({
2578
2721
  disabled: !1,
2579
- selectedKeys: w,
2722
+ selectedKeys: y,
2580
2723
  onItemSelectAll: m,
2581
- onItemSelect: p
2724
+ onItemSelect: f
2582
2725
  }),
2583
2726
  bordered: !1,
2584
2727
  size: "small",
2585
- "data-source": r,
2728
+ "data-source": n,
2586
2729
  scroll: { x: 300 },
2587
- "custom-row": ($) => ({
2730
+ "custom-row": (S) => ({
2588
2731
  onClick: () => {
2589
- const b = $[s.value];
2590
- p(b, !w.includes(b));
2732
+ const b = S[r.value];
2733
+ f(b, !y.includes(b));
2591
2734
  }
2592
2735
  })
2593
2736
  }, null, 8, ["columns", "row-key", "row-selection", "data-source", "custom-row"])
@@ -2595,7 +2738,7 @@ const gr = /* @__PURE__ */ E({
2595
2738
  _: 1
2596
2739
  }, 16, ["data-source", "row-key", "value", "filter-option"]));
2597
2740
  }
2598
- }), _l = /* @__PURE__ */ E({
2741
+ }), Il = /* @__PURE__ */ L({
2599
2742
  __name: "index",
2600
2743
  props: {
2601
2744
  multiple: {
@@ -2621,66 +2764,66 @@ const gr = /* @__PURE__ */ E({
2621
2764
  }
2622
2765
  },
2623
2766
  emits: ["change", "update:value"],
2624
- setup(d, { emit: l }) {
2625
- const e = d, t = e.value === void 0 ? !0 : e.undefValue, o = e.treeCtrl, n = te(), { errInfo: s, labelText: f } = n, u = l;
2626
- n.inputEmit = u;
2627
- const c = C([]), v = C();
2628
- U(
2767
+ setup(o, { emit: a }) {
2768
+ const e = o, t = e.value === void 0 ? !0 : e.undefValue, s = e.treeCtrl, c = te(), { errInfo: r, labelText: p } = c, i = a;
2769
+ c.inputEmit = i;
2770
+ const d = T([]), v = T();
2771
+ M(
2629
2772
  () => e.value,
2630
- (p) => {
2631
- v.value = p;
2773
+ (f) => {
2774
+ v.value = f;
2632
2775
  },
2633
2776
  { immediate: !0 }
2634
- ), U(
2777
+ ), M(
2635
2778
  () => v.value,
2636
- (p) => {
2637
- u("update:value", p);
2779
+ (f) => {
2780
+ i("update:value", f);
2638
2781
  }
2639
- ), U(
2640
- () => o.data.value,
2641
- (p) => {
2642
- p && (c.value = o.fieldMap ? be(o.fieldMap, p) : p);
2782
+ ), M(
2783
+ () => s.data.value,
2784
+ (f) => {
2785
+ f && (d.value = s.fieldMap ? ye(s.fieldMap, f) : f);
2643
2786
  },
2644
2787
  { immediate: !0 }
2645
2788
  );
2646
- const r = (p) => {
2647
- e.multiple ? v.value = p ?? [] : p == null ? v.value = t ? void 0 : null : v.value = p, u("change", v.value);
2789
+ const n = (f) => {
2790
+ e.multiple ? v.value = f ?? [] : f == null ? v.value = t ? void 0 : null : v.value = f, i("change", v.value);
2648
2791
  };
2649
- ke(() => {
2792
+ Se(() => {
2650
2793
  e.treeCtrl && e.treeCtrl.autoload && (e.treeCtrl.reload.value = !0);
2651
- }), ae(() => {
2652
- o.fieldMap || (o.fieldMap = {
2794
+ }), le(() => {
2795
+ s.fieldMap || (s.fieldMap = {
2653
2796
  label: "Name",
2654
2797
  key: "Id",
2655
2798
  value: "Id"
2656
- }), o.data.value ? c.value = o.fieldMap ? be(o.fieldMap, o.data.value) : o.data.value : e.treeCtrl.autoload && at(e.treeCtrl);
2799
+ }), s.data.value ? d.value = s.fieldMap ? ye(s.fieldMap, s.data.value) : s.data.value : e.treeCtrl.autoload && ot(e.treeCtrl);
2657
2800
  });
2658
2801
  const m = () => {
2659
2802
  v.value = t ? void 0 : null;
2660
2803
  };
2661
- return (p, w) => {
2662
- var $;
2663
- return i(), _(a(fa), A({
2664
- class: [[($ = a(s)) == null ? void 0 : $.errClass], "w-full"],
2804
+ return (f, y) => {
2805
+ var S;
2806
+ return u(), k(l(va), N({
2807
+ class: [[(S = l(r)) == null ? void 0 : S.errClass], "w-full"],
2665
2808
  "tree-line": "",
2666
- multiple: d.multiple,
2809
+ multiple: o.multiple,
2667
2810
  "tree-default-expanded-keys": ["-"],
2668
2811
  value: v.value,
2669
- "onUpdate:value": w[0] || (w[0] = (b) => v.value = b),
2670
- "tree-data": c.value,
2671
- placeholder: "请选择" + a(f),
2672
- onChange: r,
2812
+ "onUpdate:value": y[0] || (y[0] = (b) => v.value = b),
2813
+ "tree-data": d.value,
2814
+ placeholder: l(w)("webui.components.form.treeSelect.pleaseSelect", [l(p)]),
2815
+ onChange: n,
2673
2816
  onClear: m
2674
- }, p.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
2817
+ }, f.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
2675
2818
  };
2676
2819
  }
2677
- }), Tr = /* @__PURE__ */ ie(_l, [["__scopeId", "data-v-71d50074"]]), wl = { class: "w-full mt-1" }, kl = { class: "flex flex-wrap gap-2" }, Cl = ["onMouseenter"], Sl = { class: "w-16 h-16 border border-solid border-gray-200 rounded overflow-hidden" }, $l = ["src"], Tl = {
2820
+ }), zr = /* @__PURE__ */ ie(Il, [["__scopeId", "data-v-d88b9e8a"]]), El = { class: "w-full mt-1" }, Ll = { class: "flex flex-wrap gap-2" }, Ul = ["onMouseenter"], Ml = { class: "w-16 h-16 border border-solid border-gray-200 rounded overflow-hidden" }, Nl = ["src"], Rl = {
2678
2821
  key: 0,
2679
2822
  class: "absolute inset-0 bg-black bg-opacity-50 flex items-center justify-center gap-4 rounded"
2680
- }, Dl = ["onClick"], Pl = ["onClick"], Fl = {
2823
+ }, Bl = ["onClick"], Al = { class: "text-sm ml-1" }, zl = ["onClick"], Ol = { class: "text-sm ml-1" }, Kl = {
2681
2824
  key: 0,
2682
2825
  class: "w-16 h-16"
2683
- }, Il = /* @__PURE__ */ E({
2826
+ }, jl = /* @__PURE__ */ L({
2684
2827
  __name: "imageList",
2685
2828
  props: {
2686
2829
  autoUpload: { type: Boolean, default: !1 },
@@ -2699,172 +2842,172 @@ const gr = /* @__PURE__ */ E({
2699
2842
  showDelete: { type: Boolean, default: !0 }
2700
2843
  },
2701
2844
  emits: ["update:file-list"],
2702
- setup(d, { emit: l }) {
2703
- const e = d, t = te(), { errInfo: o } = t, n = C(e.fileList), s = C([]), f = C(), u = l, c = j(() => {
2704
- var T;
2705
- return (T = e.fileExt) != null && T.length ? e.fileExt.map((P) => `.${P}`).join(",") : "";
2706
- }), v = (T) => {
2845
+ setup(o, { emit: a }) {
2846
+ const e = o, t = te(), { errInfo: s } = t, { t: c } = ue(), r = T(e.fileList), p = T([]), i = T(), d = a, v = K(() => {
2847
+ var D;
2848
+ return (D = e.fileExt) != null && D.length ? e.fileExt.map((P) => `.${P}`).join(",") : "";
2849
+ }), n = (D) => {
2707
2850
  var P;
2708
2851
  if (e.fileExt && e.fileExt.length > 0) {
2709
- const q = ((P = T.name.split(".").pop()) == null ? void 0 : P.toLowerCase()) || "";
2852
+ const q = ((P = D.name.split(".").pop()) == null ? void 0 : P.toLowerCase()) || "";
2710
2853
  if (!e.fileExt.includes(q))
2711
- return re.error("文件类型不支持"), !1;
2854
+ return ae.error(c("webui.components.form.upload.unsupportedFileType")), !1;
2712
2855
  }
2713
- return T.size / 1024 / 1024 > e.maxFileSize ? (re.error(`文件大小超过 ${e.maxFileSize}MB 限制`), !1) : !0;
2714
- }, r = () => e.maxCount > 1 && n.value.length >= e.maxCount, m = (T) => {
2715
- const P = T;
2716
- return P.params || (P.params = {}), P.params.FileKey = P.name, e.parentPath && (P.params.FileKey = Re.join("/", e.parentPath, P.name)), P;
2717
- }, p = (T) => v(T) && e.autoUpload, w = async (T) => {
2718
- if (T.length === 0) return;
2719
- const P = [...n.value];
2856
+ return D.size / 1024 / 1024 > e.maxFileSize ? (ae.error(c("webui.components.form.upload.fileSizeExceeded", [e.maxFileSize])), !1) : !0;
2857
+ }, m = () => e.maxCount > 1 && r.value.length >= e.maxCount, f = (D) => {
2858
+ const P = D;
2859
+ return P.params || (P.params = {}), P.params.FileKey = P.name, e.parentPath && (P.params.FileKey = Ve.join("/", e.parentPath, P.name)), P;
2860
+ }, y = (D) => n(D) && e.autoUpload, S = async (D) => {
2861
+ if (D.length === 0) return;
2862
+ const P = [...r.value];
2720
2863
  let q = !1;
2721
- for (const Z of T) {
2722
- if (!v(Z)) {
2864
+ for (const Z of D) {
2865
+ if (!n(Z)) {
2723
2866
  q = !0;
2724
2867
  continue;
2725
2868
  }
2726
- const H = m(Z);
2869
+ const H = f(Z);
2727
2870
  if (e.maxCount === 1) {
2728
2871
  P.length = 0, P.push(H);
2729
2872
  break;
2730
2873
  }
2731
- if (r()) {
2732
- re.error(`最多上传 ${e.maxCount} 个文件`), q = !0;
2874
+ if (m()) {
2875
+ ae.error(c("webui.components.form.upload.maxFileCount", [e.maxCount])), q = !0;
2733
2876
  break;
2734
2877
  }
2735
- const le = P.findIndex((De) => De.name === H.name);
2736
- le > -1 ? P[le] = H : P.push(H);
2878
+ const re = P.findIndex((Ie) => Ie.name === H.name);
2879
+ re > -1 ? P[re] = H : P.push(H);
2737
2880
  }
2738
- (!q || P.length > 0) && (n.value = P), s.value = [];
2739
- }, $ = (T) => {
2740
- s.value = T, w(T);
2741
- }, b = j(() => ({
2742
- accept: c.value,
2881
+ (!q || P.length > 0) && (r.value = P), p.value = [];
2882
+ }, b = (D) => {
2883
+ p.value = D, S(D);
2884
+ }, $ = K(() => ({
2885
+ accept: v.value,
2743
2886
  multiple: e.maxCount !== 1,
2744
- fileList: s.value,
2745
- "onUpdate:fileList": $,
2746
- beforeUpload: p,
2887
+ fileList: p.value,
2888
+ "onUpdate:fileList": b,
2889
+ beforeUpload: y,
2747
2890
  listType: "text",
2748
2891
  showUploadList: !1,
2749
2892
  customRequest: async () => {
2750
2893
  if (e.autoUpload && e.uploadUrl)
2751
- for (const T of n.value)
2752
- T.percent === 0 && await Vt(e.uploadUrl, T);
2894
+ for (const D of r.value)
2895
+ D.percent === 0 && await Gt(e.uploadUrl, D);
2753
2896
  }
2754
2897
  }));
2755
- U(
2898
+ M(
2756
2899
  () => e.fileList,
2757
- (T) => {
2758
- n.value = T;
2900
+ (D) => {
2901
+ r.value = D;
2759
2902
  },
2760
2903
  { deep: !0, immediate: !0 }
2761
- ), U(
2762
- () => n.value,
2763
- (T) => {
2764
- u("update:file-list", T);
2904
+ ), M(
2905
+ () => r.value,
2906
+ (D) => {
2907
+ d("update:file-list", D);
2765
2908
  },
2766
2909
  { deep: !0 }
2767
- ), U(
2910
+ ), M(
2768
2911
  () => e.parentPath,
2769
- (T) => {
2770
- T && n.value.forEach((P) => {
2771
- P.params.FileKey = Re.join("/", T, P.fileName);
2912
+ (D) => {
2913
+ D && r.value.forEach((P) => {
2914
+ P.params.FileKey = Ve.join("/", D, P.fileName);
2772
2915
  });
2773
2916
  }
2774
2917
  );
2775
- const S = C(!1), g = C(""), h = (T) => {
2776
- const P = n.value[T];
2777
- g.value = z(P), S.value = !0;
2778
- }, N = (T) => {
2779
- const P = n.value[T];
2780
- e.deleteUrl && P.minioFile && P.minioFile.Key ? Ne(e.deleteUrl, {
2918
+ const g = T(!1), h = T(""), B = (D) => {
2919
+ const P = r.value[D];
2920
+ h.value = z(P), g.value = !0;
2921
+ }, G = (D) => {
2922
+ const P = r.value[D];
2923
+ e.deleteUrl && P.minioFile && P.minioFile.Key ? Oe(e.deleteUrl, {
2781
2924
  Query: {
2782
2925
  FileKey: P.minioFile.Key
2783
2926
  }
2784
2927
  }).then((q) => {
2785
- q && q.status === ze.SUCCESS && (re.success("删除文件成功!"), n.value.splice(T, 1));
2786
- }) : n.value.splice(T, 1);
2787
- }, K = C(/* @__PURE__ */ new Map()), z = (T) => {
2788
- if (T.originFileObj)
2789
- return URL.createObjectURL(T.originFileObj);
2790
- if (T.minioFile) {
2791
- const P = T.minioFile.Key;
2792
- return K.value.has(P) ? K.value.get(P) : (O(T), "");
2928
+ q && q.status === Ke.SUCCESS && (ae.success(c("webui.common.success")), r.value.splice(D, 1));
2929
+ }) : r.value.splice(D, 1);
2930
+ }, A = T(/* @__PURE__ */ new Map()), z = (D) => {
2931
+ if (D.originFileObj)
2932
+ return URL.createObjectURL(D.originFileObj);
2933
+ if (D.minioFile) {
2934
+ const P = D.minioFile.Key;
2935
+ return A.value.has(P) ? A.value.get(P) : (Tt(D), "");
2793
2936
  }
2794
2937
  return "";
2795
- }, O = async (T) => {
2796
- if (!T.minioFile || !e.previewUrl) return;
2797
- const P = T.minioFile.Key;
2938
+ }, Tt = async (D) => {
2939
+ if (!D.minioFile || !e.previewUrl) return;
2940
+ const P = D.minioFile.Key;
2798
2941
  try {
2799
- const q = `${e.previewUrl.url}?FileKey=${encodeURIComponent(T.minioFile.Key)}`, Z = Gt() ? await Yt.getToken() : Me().getToken(), H = await fetch(q, {
2942
+ const q = `${e.previewUrl.url}?FileKey=${encodeURIComponent(D.minioFile.Key)}`, Z = Wt() ? await Yt.getToken() : Be().getToken(), H = await fetch(q, {
2800
2943
  method: "GET",
2801
2944
  headers: {
2802
2945
  Authorization: `Bearer ${Z}`
2803
2946
  }
2804
2947
  });
2805
2948
  if (H.ok) {
2806
- const le = await H.blob(), De = URL.createObjectURL(le);
2807
- K.value.set(P, De);
2949
+ const re = await H.blob(), Ie = URL.createObjectURL(re);
2950
+ A.value.set(P, Ie);
2808
2951
  } else
2809
2952
  console.error("加载图片失败:", H.status);
2810
2953
  } catch (q) {
2811
2954
  console.error("加载图片失败:", q);
2812
2955
  }
2813
- }, kt = j(() => n.value.length < e.maxCount), Te = C(-1);
2814
- return (T, P) => {
2956
+ }, $t = K(() => r.value.length < e.maxCount), Pe = T(-1);
2957
+ return (D, P) => {
2815
2958
  const q = ne("auth");
2816
- return i(), y("div", wl, [
2817
- I("div", kl, [
2818
- (i(!0), y(L, null, Y(n.value, (Z, H) => (i(), y("div", {
2959
+ return u(), x("div", El, [
2960
+ I("div", Ll, [
2961
+ (u(!0), x(U, null, j(r.value, (Z, H) => (u(), x("div", {
2819
2962
  key: H,
2820
2963
  class: "relative image-item",
2821
- onMouseenter: (le) => Te.value = H,
2822
- onMouseleave: P[0] || (P[0] = (le) => Te.value = -1)
2964
+ onMouseenter: (re) => Pe.value = H,
2965
+ onMouseleave: P[0] || (P[0] = (re) => Pe.value = -1)
2823
2966
  }, [
2824
- I("div", Sl, [
2967
+ I("div", Ml, [
2825
2968
  I("img", {
2826
2969
  src: z(Z),
2827
2970
  class: "w-full h-full object-cover"
2828
- }, null, 8, $l)
2971
+ }, null, 8, Nl)
2829
2972
  ]),
2830
- Te.value === H ? (i(), y("div", Tl, [
2831
- T.previewUrl ? (i(), y("div", {
2973
+ Pe.value === H ? (u(), x("div", Rl, [
2974
+ D.previewUrl ? (u(), x("div", {
2832
2975
  key: 0,
2833
2976
  class: "flex items-center text-white cursor-pointer hover:text-blue-400",
2834
- onClick: (le) => h(H)
2977
+ onClick: (re) => B(H)
2835
2978
  }, [
2836
- D(a(V), {
2979
+ F(l(V), {
2837
2980
  icon: "icon-eye",
2838
2981
  clickable: ""
2839
2982
  }),
2840
- P[1] || (P[1] = I("span", { class: "text-sm ml-1" }, "预览", -1))
2841
- ], 8, Dl)) : k("", !0),
2842
- T.showDelete !== !1 ? (i(), y("div", {
2983
+ I("span", Al, E(l(c)("webui.components.form.upload.preview")), 1)
2984
+ ], 8, Bl)) : C("", !0),
2985
+ D.showDelete !== !1 ? (u(), x("div", {
2843
2986
  key: 1,
2844
2987
  class: "flex items-center text-white cursor-pointer hover:text-red-400",
2845
- onClick: (le) => N(H)
2988
+ onClick: (re) => G(H)
2846
2989
  }, [
2847
- D(a(V), {
2990
+ F(l(V), {
2848
2991
  icon: "icon-new",
2849
2992
  angle: 45,
2850
2993
  clickable: ""
2851
2994
  }),
2852
- P[2] || (P[2] = I("span", { class: "text-sm ml-1" }, "删除", -1))
2853
- ], 8, Pl)) : k("", !0)
2854
- ])) : k("", !0)
2855
- ], 40, Cl))), 128)),
2856
- kt.value ? (i(), y("div", Fl, [
2857
- Q((i(), _(a(va), A({
2995
+ I("span", Ol, E(l(c)("webui.components.form.upload.delete")), 1)
2996
+ ], 8, zl)) : C("", !0)
2997
+ ])) : C("", !0)
2998
+ ], 40, Ul))), 128)),
2999
+ $t.value ? (u(), x("div", Kl, [
3000
+ Q((u(), k(l(ma), N({
2858
3001
  ref_key: "fileUploader",
2859
- ref: f
2860
- }, b.value), {
2861
- default: x(() => {
3002
+ ref: i
3003
+ }, $.value), {
3004
+ default: _(() => {
2862
3005
  var Z;
2863
3006
  return [
2864
3007
  I("div", {
2865
- class: B(["w-16 h-16 border border-dashed border-gray-300 rounded flex items-center justify-center cursor-pointer hover:border-blue-500 transition-colors", [(Z = a(o)) == null ? void 0 : Z.errClass]])
3008
+ class: R(["w-16 h-16 border border-dashed border-gray-300 rounded flex items-center justify-center cursor-pointer hover:border-blue-500 transition-colors", [(Z = l(s)) == null ? void 0 : Z.errClass]])
2866
3009
  }, [
2867
- D(a(V), {
3010
+ F(l(V), {
2868
3011
  icon: "icon-new",
2869
3012
  class: "text-gray-400 w-10 h-10"
2870
3013
  })
@@ -2875,40 +3018,40 @@ const gr = /* @__PURE__ */ E({
2875
3018
  }, 16)), [
2876
3019
  [q, { role: ["Super", "Admin"], permit: ":imagelist:upload" }]
2877
3020
  ])
2878
- ])) : k("", !0)
3021
+ ])) : C("", !0)
2879
3022
  ]),
2880
- D(a(ma), {
2881
- preview: { visible: S.value, onVisibleChange: (Z) => S.value = Z },
2882
- src: g.value,
3023
+ F(l(ga), {
3024
+ preview: { visible: g.value, onVisibleChange: (Z) => g.value = Z },
3025
+ src: h.value,
2883
3026
  style: { display: "none" }
2884
3027
  }, null, 8, ["preview", "src"])
2885
3028
  ]);
2886
3029
  };
2887
3030
  }
2888
- }), Dr = /* @__PURE__ */ ie(Il, [["__scopeId", "data-v-26d707cc"]]), El = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, Ll = { class: "flex w-full h-full min-h-full" }, Ul = {
3031
+ }), Or = /* @__PURE__ */ ie(jl, [["__scopeId", "data-v-af93a59c"]]), Vl = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, Yl = { class: "flex w-full h-full min-h-full" }, Gl = {
2889
3032
  key: 0,
2890
3033
  class: "w-1/4 pr-4 min-h-full min-w-[170px] max-w-[200px]"
2891
- }, Ml = { class: "flex-1 h-full overflow-y-auto" }, Pr = /* @__PURE__ */ E({
3034
+ }, Wl = { class: "flex-1 h-full overflow-y-auto" }, Kr = /* @__PURE__ */ L({
2892
3035
  __name: "index",
2893
3036
  props: {
2894
3037
  left: { type: Boolean }
2895
3038
  },
2896
- setup(d) {
2897
- const { useToken: l } = nt, { token: e } = l();
2898
- return (t, o) => (i(), y("div", El, [
2899
- D(a(ga), {
3039
+ setup(o) {
3040
+ const { useToken: a } = ct, { token: e } = a();
3041
+ return (t, s) => (u(), x("div", Vl, [
3042
+ F(l(ha), {
2900
3043
  class: "m-[10px] p-[10px] h-[calc(100vh-100px)] !min-h-[calc(100vh-100px)]",
2901
- style: Oe({
2902
- backgroundColor: a(e).colorBgContainer
3044
+ style: je({
3045
+ backgroundColor: l(e).colorBgContainer
2903
3046
  })
2904
3047
  }, {
2905
- default: x(() => [
2906
- I("div", Ll, [
2907
- t.left ? (i(), y("div", Ul, [
2908
- R(t.$slots, "left")
2909
- ])) : k("", !0),
2910
- I("div", Ml, [
2911
- R(t.$slots, "default")
3048
+ default: _(() => [
3049
+ I("div", Yl, [
3050
+ t.left ? (u(), x("div", Gl, [
3051
+ O(t.$slots, "left")
3052
+ ])) : C("", !0),
3053
+ I("div", Wl, [
3054
+ O(t.$slots, "default")
2912
3055
  ])
2913
3056
  ])
2914
3057
  ]),
@@ -2918,168 +3061,170 @@ const gr = /* @__PURE__ */ E({
2918
3061
  }
2919
3062
  });
2920
3063
  export {
2921
- F as $t,
2922
- Es as Alert,
2923
- Ws as AppIcon,
2924
- de as AppRouter,
2925
- Cs as AsyncUploader,
2926
- fr as AutoComplete,
2927
- qs as Breadcrumb,
3064
+ w as $t,
3065
+ Yo as Alert,
3066
+ ss as AppIcon,
3067
+ fe as AppRouter,
3068
+ Ro as AsyncUploader,
3069
+ Tr as AutoComplete,
3070
+ ns as Breadcrumb,
2928
3071
  ee as Button,
2929
- mt as Cache,
2930
- _a as CacheKeys,
2931
- Ts as CanPreviewFileExt,
2932
- vr as Cascader,
2933
- mr as Checkbox,
2934
- Pr as Content,
2935
- gr as DatePicker,
2936
- Hs as Datetime,
2937
- lo as Dialog,
2938
- sr as Drawer,
2939
- Er as EventPrefix,
2940
- or as Form,
2941
- nr as FormItem,
2942
- lr as Fullscreen,
2943
- Ee as GroupTools,
2944
- Qs as Header,
2945
- Js as HeaderExits,
2946
- ka as Helper,
2947
- Lr as ICONS_LIB,
2948
- Xs as Icon,
2949
- Pa as Icontool,
2950
- Dr as ImageList,
2951
- wt as Input,
2952
- hr as InputIcon,
2953
- yr as InputNumber,
2954
- br as InputPassword,
2955
- rr as LayoutIcon,
2956
- ir as List,
2957
- Ta as ListOperate,
2958
- Ls as Loading,
2959
- Zs as Menu,
2960
- eo as MenuTabs,
3072
+ bt as Cache,
3073
+ Ia as CacheKeys,
3074
+ zo as CanPreviewFileExt,
3075
+ $r as Cascader,
3076
+ Dr as Checkbox,
3077
+ Kr as Content,
3078
+ Fr as DatePicker,
3079
+ is as Datetime,
3080
+ gs as Dialog,
3081
+ br as Drawer,
3082
+ Yr as EventPrefix,
3083
+ yr as Form,
3084
+ xr as FormItem,
3085
+ gr as Fullscreen,
3086
+ Me as GroupTools,
3087
+ cs as Header,
3088
+ us as HeaderExits,
3089
+ La as Helper,
3090
+ Gr as ICONS_LIB,
3091
+ ds as Icon,
3092
+ Aa as Icontool,
3093
+ Or as ImageList,
3094
+ St as Input,
3095
+ Pr as InputIcon,
3096
+ Er as InputNumber,
3097
+ Ir as InputPassword,
3098
+ hr as LayoutIcon,
3099
+ wr as List,
3100
+ Ra as ListOperate,
3101
+ Go as Loading,
3102
+ ps as Menu,
3103
+ fs as MenuTabs,
2961
3104
  Yt as MicroOpenApis,
2962
- Be as OPTIONS,
2963
- Ut as OptionCommProps,
2964
- to as ProjectIcon,
2965
- xr as PropEditor,
2966
- se as ProviderKeys,
2967
- yl as Radio,
2968
- _r as RadioStatus,
2969
- wr as RangePicker,
2970
- ur as Search,
2971
- Ie as SearchItem,
2972
- kr as Select,
2973
- et as Switch,
2974
- cr as Table,
2975
- za as TableOperate,
2976
- Cr as Textarea,
2977
- Sr as TimePicker,
3105
+ ze as OPTIONS,
3106
+ Mt as OptionCommProps,
3107
+ vs as ProjectIcon,
3108
+ Lr as PropEditor,
3109
+ oe as ProviderKeys,
3110
+ Fl as Radio,
3111
+ Ur as RadioStatus,
3112
+ Mr as RangePicker,
3113
+ _r as Search,
3114
+ Ue as SearchItem,
3115
+ Nr as Select,
3116
+ lt as Switch,
3117
+ kr as Table,
3118
+ Ha as TableOperate,
3119
+ Rr as Textarea,
3120
+ Br as TimePicker,
2978
3121
  V as ToolIcon,
2979
- pr as ToolPanel,
2980
- _t as Toolbar,
2981
- Vs as Tooltip,
2982
- xl as Transfer,
2983
- $r as TransferTable,
2984
- dr as Tree,
2985
- Tr as TreeSelect,
2986
- Ds as UploadList,
2987
- Ss as UploadStatus,
2988
- Us as appendExcelData,
2989
- Ms as checkExcelDuplicates,
2990
- Ur as checkIconsExpired,
2991
- Nt as circleLoading,
2992
- $t as createFromIconfont,
2993
- As as createMarkedExcelView,
2994
- Mr as crumbs,
2995
- Zl as csvToExcelBlob,
2996
- vt as csvToExcelView,
2997
- Bs as csvToNormalized,
2998
- Ar as defaultTools,
2999
- Br as doDelete,
3000
- Nr as doExecute,
3001
- rt as doQuery,
3002
- zr as doSave,
3003
- Ps as donwloadFromMinio,
3004
- ba as downloadBlob,
3005
- Or as eventBus,
3006
- Ns as excelToExcelView,
3007
- zs as excelToNormalized,
3008
- ar as exportResults,
3009
- tr as exportSelectedRows,
3010
- Xe as filterColumns,
3011
- oe as formValidate,
3012
- Rr as getAvailableLanguages,
3013
- Kr as getFormDetail,
3014
- jr as getIconTransform,
3015
- Yr as getLang,
3016
- Vr as getRecordDetail,
3017
- Gr as getRuleTexts,
3122
+ Sr as ToolPanel,
3123
+ Ct as Toolbar,
3124
+ rs as Tooltip,
3125
+ Pl as Transfer,
3126
+ Ar as TransferTable,
3127
+ Cr as Tree,
3128
+ zr as TreeSelect,
3129
+ Oo as UploadList,
3130
+ Bo as UploadStatus,
3131
+ Wo as appendExcelData,
3132
+ qo as checkExcelDuplicates,
3133
+ Wr as checkIconsExpired,
3134
+ At as circleLoading,
3135
+ Ft as createFromIconfont,
3136
+ Ho as createMarkedExcelView,
3137
+ qr as crumbs,
3138
+ pr as csvToExcelBlob,
3139
+ gt as csvToExcelView,
3140
+ Qo as csvToNormalized,
3141
+ _e as defaultTools,
3142
+ Hr as doDelete,
3143
+ Qr as doExecute,
3144
+ st as doQuery,
3145
+ Jr as doSave,
3146
+ Ko as donwloadFromMinio,
3147
+ ya as downloadBlob,
3148
+ Xr as eventBus,
3149
+ Jo as excelToExcelView,
3150
+ Xo as excelToNormalized,
3151
+ mr as exportResults,
3152
+ vr as exportSelectedRows,
3153
+ tt as filterColumns,
3154
+ se as formValidate,
3155
+ Zr as getAvailableLanguages,
3156
+ eo as getFormDetail,
3157
+ to as getIconTransform,
3158
+ ao as getLang,
3159
+ lo as getRecordDetail,
3160
+ ro as getRuleTexts,
3018
3161
  Ot as getSelectedLabels,
3019
- Wr as getSelectedValues,
3020
- me as getToolByKey,
3021
- Ae as getToolGroup,
3162
+ oo as getSelectedValues,
3163
+ ce as getToolByKey,
3164
+ De as getToolGroup,
3022
3165
  W as getToolStatus,
3023
3166
  J as getToolVisible,
3024
- he as gridQueryFind,
3025
- Ze as gridQueryList,
3026
- qr as gridRowUpdate,
3027
- tt as gridStatusUpdate,
3028
- Hr as i18n,
3029
- Xl as initCacheCheck,
3030
- Jl as initDirective,
3031
- Qr as initLang,
3032
- Jr as initMenu,
3033
- Xr as initPageFactory,
3034
- Zr as initValidate,
3035
- pe as isEmpty,
3036
- At as loadOption,
3037
- es as mergeColumns,
3038
- Os as normalizedToExcelView,
3039
- Ft as onColumnVisibleChanged,
3040
- Dt as onFormClose,
3041
- We as onFormSave,
3042
- Tt as onFormSaveAs,
3043
- St as onFullscreenClick,
3044
- Je as onGridRowDelete,
3045
- Qe as onGridRowEdit,
3046
- ts as onGridRowExpand,
3167
+ be as gridQueryFind,
3168
+ at as gridQueryList,
3169
+ so as gridRowUpdate,
3170
+ rt as gridStatusUpdate,
3171
+ no as i18n,
3172
+ dr as initCacheCheck,
3173
+ cr as initDirective,
3174
+ io as initLang,
3175
+ co as initMenu,
3176
+ uo as initPageFactory,
3177
+ po as initStores,
3178
+ ur as initTools,
3179
+ fo as initValidate,
3180
+ ve as isEmpty,
3181
+ Rt as loadOption,
3182
+ vo as mergeColumns,
3183
+ Zo as normalizedToExcelView,
3184
+ Fa as onColumnVisibleChanged,
3185
+ It as onFormClose,
3186
+ Qe as onFormSave,
3187
+ Pt as onFormSaveAs,
3188
+ ht as onFullscreenClick,
3189
+ et as onGridRowDelete,
3190
+ Ze as onGridRowEdit,
3191
+ mo as onGridRowExpand,
3047
3192
  zt as onOptionChanged,
3048
- as as onReloadClick,
3193
+ _a as onReloadClick,
3049
3194
  X as onToolClicked,
3050
- It as openNewForm,
3051
- ls as outFormDataFields,
3052
- rs as parseIcons,
3053
- Re as path,
3054
- ss as pendingNavigation,
3055
- os as pinia,
3056
- Fs as previewFromMinio,
3057
- er as processCsvFile,
3058
- Rs as processExcelFile,
3059
- at as queryTree,
3060
- ns as resetRules,
3061
- is as routes,
3062
- us as saveForm,
3063
- cs as setFormData,
3064
- ds as setLang,
3065
- ps as showBreadcrumb,
3066
- Ks as toExcel,
3195
+ Et as openNewForm,
3196
+ go as outFormDataFields,
3197
+ ho as parseIcons,
3198
+ Ve as path,
3199
+ bo as pendingNavigation,
3200
+ yo as pinia,
3201
+ jo as previewFromMinio,
3202
+ fr as processCsvFile,
3203
+ es as processExcelFile,
3204
+ ot as queryTree,
3205
+ xo as resetRules,
3206
+ wo as routes,
3207
+ _o as saveForm,
3208
+ ko as setFormData,
3209
+ Co as setLang,
3210
+ So as showBreadcrumb,
3211
+ ts as toExcel,
3067
3212
  Bt as unloadOption,
3068
- fs as uploadTempBtn,
3069
- vs as uploadTempOpener,
3070
- ms as useAppInfo,
3071
- gs as useEditorFactory,
3072
- qe as useFormItemFactory,
3073
- hs as useGridFactory,
3074
- bs as useHostInfo,
3213
+ To as uploadTempBtn,
3214
+ $o as uploadTempOpener,
3215
+ Do as useAppInfo,
3216
+ Fo as useEditorFactory,
3217
+ Je as useFormItemFactory,
3218
+ Po as useGridFactory,
3219
+ Io as useHostInfo,
3075
3220
  te as useInputFactory,
3076
- Mt as useOptionFactory,
3077
- ys as usePageFactory,
3078
- xs as usePageInfo,
3079
- Ge as useSettingInfo,
3080
- Pt as useToolFactory,
3081
- _s as useTreeFactory,
3082
- Me as useUserInfo,
3083
- ws as validateData,
3084
- js as validateExcel
3221
+ Nt as useOptionFactory,
3222
+ Eo as usePageFactory,
3223
+ Lo as usePageInfo,
3224
+ Ae as useSettingInfo,
3225
+ Pa as useToolFactory,
3226
+ Uo as useTreeFactory,
3227
+ Be as useUserInfo,
3228
+ Mo as validateData,
3229
+ as as validateExcel
3085
3230
  };