@witlink/components 1.0.22 → 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,18 +1,18 @@
1
- import { InputNumber as ne, RangePicker as Ne, Table as Pe, Popover as Ae, Input as Be, Row as Te, Col as je, Button as De, Slider as Re } from "ant-design-vue/es";
2
- import { markRaw as oe, createElementBlock as P, openBlock as S, createElementVNode as $, defineComponent as O, mergeModels as R, useModel as H, useSlots as Ce, useAttrs as Le, createBlock as U, mergeProps as I, createSlots as ae, renderList as z, withCtx as M, unref as x, renderSlot as K, normalizeProps as xe, guardReactiveProps as Ie, createVNode as N, ref as C, getCurrentInstance as Y, render as X, h as W, computed as B, onMounted as ke, onUnmounted as Oe, normalizeClass as We, normalizeStyle as ie, isRef as G, withKeys as Fe, withModifiers as ce, Fragment as q, createTextVNode as Q, toDisplayString as te, nextTick as ue, useCssVars as Ue, watch as se, createCommentVNode as de, shallowRef as V, shallowReadonly as ze, toValue as F, getCurrentScope as Ke, onScopeDispose as Ve, toRaw as qe } from "vue";
3
- import { isNullOrUndef as j, hasPermission as Xe } from "./utils.js";
4
- import { UserCenterKey as nn, buildTree as on, exportFile as an, forEachTree as sn, getButtonPermissions as rn, getLocale as ln, getMenuInfo as cn, getToken as un, getUserCenterParams as dn, getUserCenterParamsByUrl as pn, getUserInfo as fn, is as mn, isArray as vn, isAsyncFunction as gn, isBoolean as hn, isClient as yn, isDate as bn, isDef as _n, isElement as Cn, isFunction as xn, isImageDom as kn, isNull as Sn, isNumber as wn, isObject as $n, isPromise as En, isServer as Mn, isString as Nn, isUndef as Pn, isWindow as An, logoutToUserCenter as Bn, removeAll as Tn, removeLocale as jn, removeToken as Dn, setLocale as Rn, setMenuInfo as Ln, setToken as In, setUserCenterParams as On, setUserInfo as Wn, toUserCenterConsole as Fn } from "./utils.js";
5
- import pe from "dayjs";
6
- import { Drawer as A, App as He, Modal as Ze, Button as Ge, ConfigProvider as Ye, Textarea as Qe, Form as Se, message as Je } from "ant-design-vue";
7
- import { ElScrollbar as et, ElTooltip as tt } from "element-plus";
8
- const nt = {
1
+ import { InputNumber as ae, RangePicker as Ne, Table as De, Popover as Le, Input as Be, Row as Re, Col as je, Button as Oe, Slider as Ie } from "ant-design-vue/es";
2
+ import { markRaw as se, createElementBlock as A, openBlock as w, createElementVNode as $, defineComponent as F, mergeModels as j, useModel as G, useSlots as Se, useAttrs as Fe, createBlock as z, mergeProps as I, createSlots as re, renderList as V, withCtx as M, unref as k, renderSlot as q, normalizeProps as ke, guardReactiveProps as Ue, createVNode as T, ref as S, getCurrentInstance as J, render as Z, h as W, computed as D, onMounted as we, onUnmounted as We, normalizeClass as ze, normalizeStyle as ce, resolveDirective as Ke, isRef as Q, withKeys as Ve, withModifiers as de, Fragment as H, createTextVNode as ee, toDisplayString as oe, withDirectives as qe, nextTick as pe, useCssVars as Xe, watch as le, createCommentVNode as fe, shallowRef as X, shallowReadonly as He, toValue as K, getCurrentScope as Ye, onScopeDispose as Ze, toRaw as Ge } from "vue";
3
+ import { isNullOrUndef as B, hasPermission as Qe } from "./utils.js";
4
+ import { UserCenterKey as dn, buildTree as pn, exportFile as fn, forEachTree as mn, getButtonPermissions as vn, getLocale as gn, getMenuInfo as hn, getToken as yn, getUserCenterParams as bn, getUserCenterParamsByUrl as _n, getUserInfo as xn, is as Cn, isArray as Sn, isAsyncFunction as kn, isBoolean as wn, isClient as $n, isDate as En, isDef as Mn, isElement as Pn, isFunction as Tn, isImageDom as An, isNull as Nn, isNumber as Dn, isObject as Ln, isPromise as Bn, isServer as Rn, isString as jn, isUndef as On, isWindow as In, logoutToUserCenter as Fn, removeAll as Un, removeLocale as Wn, removeToken as zn, setLocale as Kn, setMenuInfo as Vn, setToken as qn, setUserCenterParams as Xn, setUserInfo as Hn, toUserCenterConsole as Yn } from "./utils.js";
5
+ import me from "dayjs";
6
+ import { Drawer as N, App as Je, Modal as et, Button as tt, ConfigProvider as nt, Textarea as ot, Form as $e, message as at } from "ant-design-vue";
7
+ import { ElScrollbar as st, ElTooltip as rt } from "element-plus";
8
+ const lt = {
9
9
  class: "icon",
10
10
  viewBox: "0 0 1024 1024",
11
11
  width: "1.2em",
12
12
  height: "1.2em"
13
13
  };
14
- function ot(e, t) {
15
- return S(), P("svg", nt, t[0] || (t[0] = [
14
+ function it(e, n) {
15
+ return w(), A("svg", lt, n[0] || (n[0] = [
16
16
  $("path", {
17
17
  fill: "currentColor",
18
18
  d: "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8"
@@ -23,24 +23,24 @@ function ot(e, t) {
23
23
  }, null, -1)
24
24
  ]));
25
25
  }
26
- const at = oe({ name: "ant-design-plus", render: ot }), st = {
26
+ const ut = se({ name: "ant-design-plus", render: it }), ct = {
27
27
  class: "icon",
28
28
  viewBox: "0 0 1024 1024",
29
29
  width: "1.2em",
30
30
  height: "1.2em"
31
31
  };
32
- function rt(e, t) {
33
- return S(), P("svg", st, t[0] || (t[0] = [
32
+ function dt(e, n) {
33
+ return w(), A("svg", ct, n[0] || (n[0] = [
34
34
  $("path", {
35
35
  fill: "currentColor",
36
36
  d: "M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8"
37
37
  }, null, -1)
38
38
  ]));
39
39
  }
40
- const lt = oe({ name: "ant-design-minus", render: rt }), it = /* @__PURE__ */ O({
40
+ const pt = se({ name: "ant-design-minus", render: dt }), ft = /* @__PURE__ */ F({
41
41
  inheritAttrs: !1,
42
42
  __name: "index",
43
- props: /* @__PURE__ */ R({
43
+ props: /* @__PURE__ */ j({
44
44
  precision: {
45
45
  type: Number
46
46
  },
@@ -56,47 +56,47 @@ const lt = oe({ name: "ant-design-minus", render: rt }), it = /* @__PURE__ */ O(
56
56
  value: {},
57
57
  valueModifiers: {}
58
58
  }),
59
- emits: /* @__PURE__ */ R(["change"], ["update:value"]),
60
- setup(e, { emit: t }) {
61
- const n = H(e, "value"), r = e, i = t, c = Ce(), a = Le();
62
- function l(o) {
63
- if (j(o))
64
- n.value = null, i("change", null);
59
+ emits: /* @__PURE__ */ j(["change"], ["update:value"]),
60
+ setup(e, { emit: n }) {
61
+ const t = G(e, "value"), l = e, u = n, i = Se(), o = Fe();
62
+ function s(a) {
63
+ if (B(a))
64
+ t.value = null, u("change", null);
65
65
  else {
66
- let u = o;
67
- r.stringMode && (u = Number(u).toFixed(r.precision)), n.value !== u && (n.value = u, i("change", u));
66
+ let c = a;
67
+ l.stringMode && (c = Number(c).toFixed(l.precision)), t.value !== c && (t.value = c, u("change", c));
68
68
  }
69
69
  }
70
70
  function d() {
71
- if (j(n.value))
71
+ if (B(t.value))
72
72
  return;
73
- let o = n.value;
74
- r.stringMode && (o = Number(o).toFixed(r.precision)), n.value = o;
73
+ let a = t.value;
74
+ l.stringMode && (a = Number(a).toFixed(l.precision)), t.value = a;
75
75
  }
76
76
  function p() {
77
- if (a.disabled) return;
78
- const o = Number(n.value);
79
- !j(a.min) && o <= Number(a.min) || l(o - 1);
77
+ if (o.disabled) return;
78
+ const a = Number(t.value);
79
+ !B(o.min) && a <= Number(o.min) || s(a - 1);
80
80
  }
81
- function s() {
82
- if (a.disabled) return;
83
- const o = Number(n.value);
84
- !j(a.max) && o >= Number(a.max) || l(o + 1);
81
+ function r() {
82
+ if (o.disabled) return;
83
+ const a = Number(t.value);
84
+ !B(o.max) && a >= Number(o.max) || s(a + 1);
85
85
  }
86
- return (o, u) => {
87
- const v = lt, g = at, m = ne;
88
- return S(), U(m, I({
89
- value: n.value,
86
+ return (a, c) => {
87
+ const y = pt, h = ut, v = ae;
88
+ return w(), z(v, I({
89
+ value: t.value,
90
90
  precision: e.precision,
91
91
  stringMode: e.stringMode,
92
92
  controls: !e.customControls,
93
- onChange: l,
93
+ onChange: s,
94
94
  onBlur: d
95
- }, o.$attrs), ae({ _: 2 }, [
96
- z(Object.keys(x(c)), (h) => ({
97
- name: h,
98
- fn: M((y) => [
99
- K(o.$slots, h, xe(Ie(y)))
95
+ }, a.$attrs), re({ _: 2 }, [
96
+ V(Object.keys(k(i)), (x) => ({
97
+ name: x,
98
+ fn: M((f) => [
99
+ q(a.$slots, x, ke(Ue(f)))
100
100
  ])
101
101
  })),
102
102
  e.customControls ? {
@@ -106,7 +106,7 @@ const lt = oe({ name: "ant-design-minus", render: rt }), it = /* @__PURE__ */ O(
106
106
  class: "btn-control",
107
107
  onClick: p
108
108
  }, [
109
- N(v, { class: "btn-icon" })
109
+ T(y, { class: "btn-icon" })
110
110
  ])
111
111
  ]),
112
112
  key: "0"
@@ -116,9 +116,9 @@ const lt = oe({ name: "ant-design-minus", render: rt }), it = /* @__PURE__ */ O(
116
116
  fn: M(() => [
117
117
  $("div", {
118
118
  class: "btn-control",
119
- onClick: s
119
+ onClick: r
120
120
  }, [
121
- N(g, { class: "btn-icon" })
121
+ T(h, { class: "btn-icon" })
122
122
  ])
123
123
  ]),
124
124
  key: "1"
@@ -126,7 +126,7 @@ const lt = oe({ name: "ant-design-minus", render: rt }), it = /* @__PURE__ */ O(
126
126
  ]), 1040, ["value", "precision", "stringMode", "controls"]);
127
127
  };
128
128
  }
129
- }), ct = /* @__PURE__ */ O({
129
+ }), mt = /* @__PURE__ */ F({
130
130
  __name: "index",
131
131
  props: {
132
132
  value: {},
@@ -155,232 +155,232 @@ const lt = oe({ name: "ant-design-minus", render: rt }), it = /* @__PURE__ */ O(
155
155
  }
156
156
  },
157
157
  emits: ["update:value", "change"],
158
- setup(e, { emit: t }) {
159
- const n = e, r = t, i = C(), c = C(), a = (s) => {
160
- const o = pe().add(n.max, n.maxUnit), u = pe().subtract(n.min, n.minUnit), v = n.interval;
161
- if (!i.value || i.value.length === 0)
162
- return s.isAfter(o) || s.isBefore(u);
163
- const g = i.value[0] && (s.diff(i.value[0], "days") > v || s.isAfter(o));
164
- return i.value[1] && (i.value[1].diff(s, "days") > v || s.isBefore(u)) || g;
165
- }, l = (s) => {
166
- s ? (i.value = [], c.value = []) : c.value = void 0;
167
- }, d = (s) => {
168
- r("update:value", s), r("change", s);
169
- }, p = (s) => {
170
- i.value = s;
158
+ setup(e, { emit: n }) {
159
+ const t = e, l = n, u = S(), i = S(), o = (r) => {
160
+ const a = me().add(t.max, t.maxUnit), c = me().subtract(t.min, t.minUnit), y = t.interval;
161
+ if (!u.value || u.value.length === 0)
162
+ return r.isAfter(a) || r.isBefore(c);
163
+ const h = u.value[0] && (r.diff(u.value[0], "days") > y || r.isAfter(a));
164
+ return u.value[1] && (u.value[1].diff(r, "days") > y || r.isBefore(c)) || h;
165
+ }, s = (r) => {
166
+ r ? (u.value = [], i.value = []) : i.value = void 0;
167
+ }, d = (r) => {
168
+ l("update:value", r), l("change", r);
169
+ }, p = (r) => {
170
+ u.value = r;
171
171
  };
172
- return (s, o) => {
173
- const u = Ne;
174
- return S(), U(u, I({
175
- value: x(c) || e.value,
176
- "disabled-date": a,
172
+ return (r, a) => {
173
+ const c = Ne;
174
+ return w(), z(c, I({
175
+ value: k(i) || e.value,
176
+ "disabled-date": o,
177
177
  onChange: d,
178
- onOpenChange: l,
178
+ onOpenChange: s,
179
179
  onCalendarChange: p
180
- }, s.$attrs), ae({ _: 2 }, [
181
- z(Object.keys(s.$slots), (v) => ({
182
- name: v,
183
- fn: M((g) => [
184
- K(s.$slots, v)
180
+ }, r.$attrs), re({ _: 2 }, [
181
+ V(Object.keys(r.$slots), (y) => ({
182
+ name: y,
183
+ fn: M((h) => [
184
+ q(r.$slots, y)
185
185
  ])
186
186
  }))
187
187
  ]), 1040, ["value"]);
188
188
  };
189
189
  }
190
190
  });
191
- function re(e) {
192
- e || (e = Y());
193
- const t = (e == null ? void 0 : e.provides) || {}, n = ut(t, "configProvider"), r = t[n];
191
+ function ie(e) {
192
+ e || (e = J());
193
+ const n = (e == null ? void 0 : e.provides) || {}, t = vt(n, "configProvider"), l = n[t];
194
194
  return Object.fromEntries(
195
- Object.entries(r).map(([c, a]) => [c, x(a)])
195
+ Object.entries(l).map(([i, o]) => [i, k(o)])
196
196
  );
197
197
  }
198
- function ut(e, t) {
198
+ function vt(e, n) {
199
199
  for (; e; ) {
200
- const n = Reflect.ownKeys(e).find(
201
- (r) => r === t || typeof r == "symbol" && r.description === t
200
+ const t = Reflect.ownKeys(e).find(
201
+ (l) => l === n || typeof l == "symbol" && l.description === n
202
202
  );
203
- if (n)
204
- return n;
203
+ if (t)
204
+ return t;
205
205
  e = Object.getPrototypeOf(e);
206
206
  }
207
207
  return null;
208
208
  }
209
- function Yt(e) {
210
- var n;
211
- let t = (n = Y()) == null ? void 0 : n.parent;
212
- for (; t; ) {
213
- if (t.type.name === e)
214
- return t;
215
- t = t.parent;
209
+ function sn(e) {
210
+ var t;
211
+ let n = (t = J()) == null ? void 0 : t.parent;
212
+ for (; n; ) {
213
+ if (n.type.name === e)
214
+ return n;
215
+ n = n.parent;
216
216
  }
217
217
  return null;
218
218
  }
219
- let L, fe, D, me;
220
- A.destroy = function() {
221
- const e = A.instanceArr || [], t = e.pop();
222
- if (t && X(null, t.container), e.length > 0) {
223
- const n = e[e.length - 1].instance;
224
- Object.assign(n.component.props, {
219
+ let O, ve, R, ge;
220
+ N.destroy = function() {
221
+ const e = N.instanceArr || [], n = e.pop();
222
+ if (n && Z(null, n.container), e.length > 0) {
223
+ const t = e[e.length - 1].instance;
224
+ Object.assign(t.component.props, {
225
225
  contentWrapperStyle: { transform: null }
226
- }), n.component.update();
226
+ }), t.component.update();
227
227
  }
228
228
  };
229
- A.destroyAll = function() {
230
- (A.instanceArr || []).forEach((t) => {
231
- X(null, t.container);
232
- }), A.instanceArr = [];
229
+ N.destroyAll = function() {
230
+ (N.instanceArr || []).forEach((n) => {
231
+ Z(null, n.container);
232
+ }), N.instanceArr = [];
233
233
  };
234
- function Qt() {
235
- var s, o;
236
- const e = Y();
237
- if (!D) {
238
- const u = He.useApp();
239
- D = u.modal, fe = u.message, me = u.notification;
234
+ function rn() {
235
+ var r, a;
236
+ const e = J();
237
+ if (!R) {
238
+ const c = Je.useApp();
239
+ R = c.modal, ve = c.message, ge = c.notification;
240
240
  }
241
- D.info || (D = Ze);
242
- const t = {
241
+ R.info || (R = et);
242
+ const n = {
243
243
  zh: "关闭",
244
244
  en: "Close",
245
245
  fr: "fermeture"
246
- }, n = {
246
+ }, t = {
247
247
  zh: "请输入",
248
248
  en: "Please Enter",
249
249
  fr: "Veuillez entrer"
250
- }, r = re(), i = ((o = (s = r == null ? void 0 : r.locale) == null ? void 0 : s.locale) == null ? void 0 : o.slice(0, 2)) || "en";
251
- function c({ title: u, ...v }) {
252
- const g = C();
253
- return a({
254
- title: u,
255
- ...v,
256
- comp: Qe,
250
+ }, l = ie(), u = ((a = (r = l == null ? void 0 : l.locale) == null ? void 0 : r.locale) == null ? void 0 : a.slice(0, 2)) || "en";
251
+ function i({ title: c, ...y }) {
252
+ const h = S();
253
+ return o({
254
+ title: c,
255
+ ...y,
256
+ comp: ot,
257
257
  props: {
258
- placeholder: n[i],
258
+ placeholder: t[u],
259
259
  autoSize: { minRows: 6 },
260
- value: g,
261
- "onUpdate:value": (m) => {
262
- g.value = m;
260
+ value: h,
261
+ "onUpdate:value": (v) => {
262
+ h.value = v;
263
263
  },
264
- ...v.props
264
+ ...y.props
265
265
  },
266
266
  class: "modal-comp modal-comp-input",
267
267
  type: "confirm",
268
- onOk: () => new Promise((m, h) => {
269
- v.onOk && (v.onOk(g.value) ? m(1) : h()), m(1);
268
+ onOk: () => new Promise((v, x) => {
269
+ y.onOk && (y.onOk(h.value) ? v(1) : x()), v(1);
270
270
  })
271
271
  });
272
272
  }
273
- function a({ title: u, comp: v, props: g, ...m }) {
274
- const h = W(v, g), y = (m == null ? void 0 : m.type) ?? "info", f = {
275
- title: u,
276
- content: h,
273
+ function o({ title: c, comp: y, props: h, ...v }) {
274
+ const x = W(y, h), f = (v == null ? void 0 : v.type) ?? "info", m = {
275
+ title: c,
276
+ content: x,
277
277
  width: "auto",
278
278
  icon: null,
279
279
  closable: !0,
280
280
  maskClosable: !0,
281
281
  centered: !0,
282
282
  class: "modal-comp",
283
- ...m
283
+ ...v
284
284
  };
285
- switch (y) {
285
+ switch (f) {
286
286
  case "info":
287
- L = D.info(f);
287
+ O = R.info(m);
288
288
  break;
289
289
  case "warning":
290
- L = D.warning(f);
290
+ O = R.warning(m);
291
291
  break;
292
292
  case "success":
293
- L = D.success(f);
293
+ O = R.success(m);
294
294
  break;
295
295
  case "confirm":
296
- L = D.confirm(f);
296
+ O = R.confirm(m);
297
297
  break;
298
298
  }
299
- return L;
299
+ return O;
300
300
  }
301
- function l() {
302
- L == null || L.destroy();
301
+ function s() {
302
+ O == null || O.destroy();
303
303
  }
304
- function d({ title: u, comp: v, props: g, ...m }) {
305
- const h = m.getContainer || document.createDocumentFragment();
306
- A.instanceArr || (A.instanceArr = []);
307
- const y = A.instanceArr, f = y[y.length - 1];
308
- let b;
309
- if ((f == null ? void 0 : f.comp) === v) {
310
- const _ = f.instance;
311
- Object.assign(_.component.props, { title: u, ...m }), _.component.update(), b = f.compInstance, Object.assign(b.component.props, { ...g }), b.component.update();
304
+ function d({ title: c, comp: y, props: h, ...v }) {
305
+ const x = v.getContainer || document.createDocumentFragment();
306
+ N.instanceArr || (N.instanceArr = []);
307
+ const f = N.instanceArr, m = f[f.length - 1];
308
+ let g;
309
+ if ((m == null ? void 0 : m.comp) === y) {
310
+ const b = m.instance;
311
+ Object.assign(b.component.props, { title: c, ...v }), b.component.update(), g = m.compInstance, Object.assign(g.component.props, { ...h }), g.component.update();
312
312
  } else {
313
- if (f) {
314
- const Z = f.instance;
315
- Object.assign(Z.component.props, {
313
+ if (m) {
314
+ const U = m.instance;
315
+ Object.assign(U.component.props, {
316
316
  contentWrapperStyle: { transform: "translateX(-180px)" }
317
- }), Z.component.update();
317
+ }), U.component.update();
318
318
  }
319
- b = W(v, g);
320
- const _ = {
319
+ g = W(y, h);
320
+ const b = {
321
321
  default: () => W(
322
- et,
322
+ st,
323
323
  { style: { height: "100%" }, wrapStyle: { overflowX: "hidden" } },
324
- b
324
+ g
325
325
  )
326
326
  };
327
- m.footer === void 0 && Object.assign(_, {
327
+ v.footer === void 0 && Object.assign(b, {
328
328
  footer: () => W(
329
- Ge,
329
+ tt,
330
330
  {
331
331
  onClick: () => {
332
- A.destroy();
332
+ N.destroy();
333
333
  }
334
334
  },
335
- t[i]
335
+ n[u]
336
336
  )
337
337
  });
338
- const w = m.width || 992;
339
- delete m.width;
340
- const k = W(
341
- A,
338
+ const C = v.width || 992;
339
+ delete v.width;
340
+ const _ = W(
341
+ N,
342
342
  {
343
- title: u,
344
- width: w,
343
+ title: c,
344
+ width: C,
345
345
  open: !0,
346
346
  class: "drawer-comp",
347
347
  footerStyle: {
348
348
  textAlign: "right"
349
349
  },
350
350
  onClose: () => {
351
- m != null && m.afterClose && m.afterClose(), A.destroy();
351
+ v != null && v.afterClose && v.afterClose(), N.destroy();
352
352
  },
353
- ...m
353
+ ...v
354
354
  },
355
- _
356
- ), T = r.getPrefixCls(), E = W(
357
- Ye,
358
- { ...r, prefixCls: T },
359
- { default: () => k }
355
+ b
356
+ ), E = l.getPrefixCls(), L = W(
357
+ nt,
358
+ { ...l, prefixCls: E },
359
+ { default: () => _ }
360
360
  );
361
- E.appContext = e.appContext, X(E, h), y.push({ instance: k, comp: v, compInstance: b, container: h });
361
+ L.appContext = e.appContext, Z(L, x), f.push({ instance: _, comp: y, compInstance: g, container: x });
362
362
  }
363
363
  return {
364
- updateProps: (_) => {
365
- Object.assign(b.component.props, { ..._ }), b.component.update();
364
+ updateProps: (b) => {
365
+ Object.assign(g.component.props, { ...b }), g.component.update();
366
366
  }
367
367
  };
368
368
  }
369
369
  function p() {
370
- A.destroy();
370
+ N.destroy();
371
371
  }
372
372
  return {
373
- message: fe,
374
- modal: D,
375
- notification: me,
376
- modalInput: c,
377
- modalComp: a,
378
- modalDestroy: l,
373
+ message: ve,
374
+ modal: R,
375
+ notification: ge,
376
+ modalInput: i,
377
+ modalComp: o,
378
+ modalDestroy: s,
379
379
  drawerComp: d,
380
380
  drawerDestroy: p
381
381
  };
382
382
  }
383
- const dt = /* @__PURE__ */ O({
383
+ const gt = /* @__PURE__ */ F({
384
384
  inheritAttrs: !1,
385
385
  __name: "index",
386
386
  props: {
@@ -393,75 +393,75 @@ const dt = /* @__PURE__ */ O({
393
393
  default: !0
394
394
  }
395
395
  },
396
- setup(e, { expose: t }) {
397
- const n = e, r = Ce(), i = C([]), c = C(!1), a = C(0), l = C(1), d = C(10), p = C(), s = C(), o = {
396
+ setup(e, { expose: n }) {
397
+ const t = e, l = Se(), u = S([]), i = S(!1), o = S(0), s = S(1), d = S(10), p = S(), r = S(), a = {
398
398
  zh: "共 {num} 条",
399
399
  en: "Total {num} items",
400
400
  fr: "Total de {num}"
401
- }, u = re(), v = B(() => {
402
- var w, k;
403
- return ((k = (w = u == null ? void 0 : u.locale) == null ? void 0 : w.locale) == null ? void 0 : k.slice(0, 2)) || "en";
404
- }), g = B(() => ({
405
- total: a.value,
406
- current: l.value,
401
+ }, c = ie(), y = D(() => {
402
+ var C, _;
403
+ return ((_ = (C = c == null ? void 0 : c.locale) == null ? void 0 : C.locale) == null ? void 0 : _.slice(0, 2)) || "en";
404
+ }), h = D(() => ({
405
+ total: o.value,
406
+ current: s.value,
407
407
  pageSize: d.value,
408
408
  showSizeChanger: !0,
409
409
  size: "small",
410
- showTotal: (_) => o[v.value].replace("{num}", _)
410
+ showTotal: (b) => a[y.value].replace("{num}", b)
411
411
  }));
412
- function m() {
413
- var _;
414
- if (typeof n.loadData == "function") {
415
- c.value = !0;
416
- const w = { pageNo: l.value, pageSize: d.value };
417
- n.formatSortParams && ((_ = s.value) != null && _.orderMap) && (w[s.value.field + "SortField"] = s.value.orderMap), n.loadData(w, p.value, s.value).then((k) => {
418
- c.value = !1, (k == null ? void 0 : k.code) === 0 && (a.value = k.result.totalCount, i.value = k.result.data);
412
+ function v() {
413
+ var b;
414
+ if (typeof t.loadData == "function") {
415
+ i.value = !0;
416
+ const C = { pageNo: s.value, pageSize: d.value };
417
+ t.formatSortParams && ((b = r.value) != null && b.orderMap) && (C[r.value.field + "SortField"] = r.value.orderMap), t.loadData(C, p.value, r.value).then((_) => {
418
+ i.value = !1, (_ == null ? void 0 : _.code) === 0 && (o.value = _.result.totalCount, u.value = _.result.data);
419
419
  });
420
420
  }
421
421
  }
422
- function h(_, w, k) {
423
- if (l.value = _.current, d.value = _.pageSize, p.value = w, k) {
424
- const T = {
422
+ function x(b, C, _) {
423
+ if (s.value = b.current, d.value = b.pageSize, p.value = C, _) {
424
+ const E = {
425
425
  ascend: "asc",
426
426
  descend: "desc"
427
427
  };
428
- k.orderMap = T[k.order] || "";
428
+ _.orderMap = E[_.order] || "";
429
429
  }
430
- s.value = k, m();
430
+ r.value = _, v();
431
431
  }
432
- function y(_, w) {
433
- w.width = _;
432
+ function f(b, C) {
433
+ C.width = b;
434
434
  }
435
- function f() {
436
- l.value = 1, m();
435
+ function m() {
436
+ s.value = 1, v();
437
437
  }
438
- function b() {
439
- l.value = 1, a.value = 0, i.value = [];
438
+ function g() {
439
+ s.value = 1, o.value = 0, u.value = [];
440
440
  }
441
- return t({
442
- loadData: m,
443
- refresh: f,
444
- reset: b
445
- }), (_, w) => {
446
- const k = Pe;
447
- return S(), U(k, I({
441
+ return n({
442
+ loadData: v,
443
+ refresh: m,
444
+ reset: g
445
+ }), (b, C) => {
446
+ const _ = De;
447
+ return w(), z(_, I({
448
448
  class: "table-ex",
449
- loading: x(c),
450
- pagination: x(g),
451
- dataSource: x(i),
452
- onChange: h,
453
- onResizeColumn: y
454
- }, _.$attrs), ae({ _: 2 }, [
455
- z(Object.keys(x(r)), (T) => ({
456
- name: T,
457
- fn: M((E) => [
458
- T !== "emptyText" ? K(_.$slots, T, xe(I({ key: 0 }, E))) : K(_.$slots, T, { key: 1 })
449
+ loading: k(i),
450
+ pagination: k(h),
451
+ dataSource: k(u),
452
+ onChange: x,
453
+ onResizeColumn: f
454
+ }, b.$attrs), re({ _: 2 }, [
455
+ V(Object.keys(k(l)), (E) => ({
456
+ name: E,
457
+ fn: M((L) => [
458
+ E !== "emptyText" ? q(b.$slots, E, ke(I({ key: 0 }, L))) : q(b.$slots, E, { key: 1 })
459
459
  ])
460
460
  }))
461
461
  ]), 1040, ["loading", "pagination", "dataSource"]);
462
462
  };
463
463
  }
464
- }), pt = /* @__PURE__ */ O({
464
+ }), ht = /* @__PURE__ */ F({
465
465
  __name: "index",
466
466
  props: {
467
467
  leftMin: {
@@ -478,55 +478,55 @@ const dt = /* @__PURE__ */ O({
478
478
  }
479
479
  },
480
480
  setup(e) {
481
- const t = e, n = C(), r = C(), i = C({}), c = C({}), a = C(0.2);
482
- function l(p) {
483
- i.value = { width: `calc(${p * 100}% - 5px)` }, c.value = { width: `calc(${(1 - p) * 100}% - 5px)` };
481
+ const n = e, t = S(), l = S(), u = S({}), i = S({}), o = S(0.2);
482
+ function s(p) {
483
+ u.value = { width: `calc(${p * 100}% - 5px)` }, i.value = { width: `calc(${(1 - p) * 100}% - 5px)` };
484
484
  }
485
485
  function d() {
486
- const p = n.value;
486
+ const p = t.value;
487
487
  if (!p)
488
488
  return;
489
- const s = p.clientWidth, o = p.getBoundingClientRect(), u = o.left;
490
- function v(m) {
491
- m.preventDefault(), (m.clientX < o.left || m.clientX > o.right || m.clientY < o.top || m.clientY > o.bottom) && g();
492
- const y = (m.clientX - u) / s;
493
- y > t.leftMin && y < t.leftMax && (a.value = y, l(y));
489
+ const r = p.clientWidth, a = p.getBoundingClientRect(), c = a.left;
490
+ function y(v) {
491
+ v.preventDefault(), (v.clientX < a.left || v.clientX > a.right || v.clientY < a.top || v.clientY > a.bottom) && h();
492
+ const f = (v.clientX - c) / r;
493
+ f > n.leftMin && f < n.leftMax && (o.value = f, s(f));
494
494
  }
495
- function g() {
496
- document.removeEventListener("mousemove", v), document.removeEventListener("mouseup", g);
495
+ function h() {
496
+ document.removeEventListener("mousemove", y), document.removeEventListener("mouseup", h);
497
497
  }
498
- document.addEventListener("mousemove", v), document.addEventListener("mouseup", g);
498
+ document.addEventListener("mousemove", y), document.addEventListener("mouseup", h);
499
499
  }
500
- return ke(() => {
501
- l(a.value), r.value && r.value.addEventListener("mousedown", d, !1);
502
- }), Oe(() => {
503
- r.value && r.value.removeEventListener("mousedown", d);
504
- }), (p, s) => (S(), P("div", {
500
+ return we(() => {
501
+ s(o.value), l.value && l.value.addEventListener("mousedown", d, !1);
502
+ }), We(() => {
503
+ l.value && l.value.removeEventListener("mousedown", d);
504
+ }), (p, r) => (w(), A("div", {
505
505
  ref_key: "container",
506
- ref: n,
507
- class: We(["wl-splitter", { bordered: e.bordered }])
506
+ ref: t,
507
+ class: ze(["wl-splitter", { bordered: e.bordered }])
508
508
  }, [
509
509
  $("div", {
510
510
  class: "my-left",
511
- style: ie(x(i))
511
+ style: ce(k(u))
512
512
  }, [
513
- K(p.$slots, "left")
513
+ q(p.$slots, "left")
514
514
  ], 4),
515
515
  $("div", {
516
516
  ref_key: "spliter",
517
- ref: r,
517
+ ref: l,
518
518
  style: { height: "100%", width: "10px" },
519
519
  class: "my-spliter"
520
520
  }, null, 512),
521
521
  $("div", {
522
522
  class: "my-right",
523
- style: ie(x(c))
523
+ style: ce(k(i))
524
524
  }, [
525
- K(p.$slots, "right")
525
+ q(p.$slots, "right")
526
526
  ], 4)
527
527
  ], 2));
528
528
  }
529
- }), ft = {
529
+ }), yt = {
530
530
  class: "icon",
531
531
  width: "25",
532
532
  height: "24",
@@ -534,8 +534,8 @@ const dt = /* @__PURE__ */ O({
534
534
  fill: "none",
535
535
  xmlns: "http://www.w3.org/2000/svg"
536
536
  };
537
- function mt(e, t) {
538
- return S(), P("svg", ft, t[0] || (t[0] = [
537
+ function bt(e, n) {
538
+ return w(), A("svg", yt, n[0] || (n[0] = [
539
539
  $("path", {
540
540
  d: "M7.3125 5.5L2.3125 12L7.3125 18.5H22.3125V5.5H7.3125Z",
541
541
  stroke: "#272E3B",
@@ -556,10 +556,10 @@ function mt(e, t) {
556
556
  }, null, -1)
557
557
  ]));
558
558
  }
559
- const vt = oe({ name: "local-clear", render: mt }), gt = { class: "nums-box" }, ht = { class: "btn-box" }, yt = /* @__PURE__ */ O({
559
+ const _t = se({ name: "local-clear", render: bt }), xt = { class: "nums-box" }, Ct = { class: "btn-box" }, St = /* @__PURE__ */ F({
560
560
  inheritAttrs: !1,
561
561
  __name: "index",
562
- props: /* @__PURE__ */ R({
562
+ props: /* @__PURE__ */ j({
563
563
  quickNums: {
564
564
  type: Array,
565
565
  default: () => [100, 500, 1e3, 1500, 2e3, 2500]
@@ -580,94 +580,97 @@ const vt = oe({ name: "local-clear", render: mt }), gt = { class: "nums-box" },
580
580
  value: { type: String },
581
581
  valueModifiers: {}
582
582
  }),
583
- emits: /* @__PURE__ */ R(["enter"], ["update:value"]),
584
- setup(e, { emit: t }) {
585
- const n = e, r = t, i = C(), c = C(), a = C(["7", "8", "9", "4", "5", "6", "1", "2", "3", "0", "00", "."]), l = H(e, "value"), d = C(!1);
583
+ emits: /* @__PURE__ */ j(["enter"], ["update:value"]),
584
+ setup(e, { emit: n }) {
585
+ const t = e, l = n, u = S(), i = S(), o = S(["7", "8", "9", "4", "5", "6", "1", "2", "3", "0", "00", "."]), s = G(e, "value"), d = S(!1);
586
586
  function p() {
587
587
  d.value = !0;
588
588
  }
589
- function s() {
590
- m();
589
+ function r() {
590
+ x();
591
591
  }
592
- function o(h) {
593
- c.value.focus(), l.value = Number(h).toFixed(n.precision);
592
+ function a(f) {
593
+ i.value.focus(), s.value = Number(f).toFixed(t.precision);
594
594
  }
595
- function u(h) {
596
- if (c.value.focus(), j(l.value) || l.value === "") {
597
- if (["00", "."].includes(h))
595
+ function c(f) {
596
+ if (i.value.focus(), B(s.value) || s.value === "") {
597
+ if (["00", "."].includes(f))
598
598
  return;
599
- l.value = h;
599
+ s.value = f;
600
600
  } else {
601
- const y = String(l.value), f = i.value.getElementsByTagName("input")[0], b = f.selectionStart || 0, _ = f.selectionEnd || 0;
602
- l.value = `${y.slice(0, b)}${h}${y.slice(_)}`;
603
- const w = b + h.length;
604
- ue(() => {
605
- c.value.setSelectionRange(w, w);
601
+ const m = String(s.value), g = u.value.getElementsByTagName("input")[0], b = g.selectionStart || 0, C = g.selectionEnd || 0;
602
+ s.value = `${m.slice(0, b)}${f}${m.slice(C)}`;
603
+ const _ = b + f.length;
604
+ pe(() => {
605
+ i.value.setSelectionRange(_, _);
606
606
  });
607
607
  }
608
608
  }
609
- function v() {
610
- if (c.value.focus(), j(l.value))
609
+ function y() {
610
+ if (i.value.focus(), B(s.value))
611
611
  return;
612
- const h = String(l.value);
613
- if (h != null && h.length) {
614
- const y = i.value.getElementsByTagName("input")[0], f = y.selectionStart || 0, b = y.selectionEnd || 0, _ = f > 0 ? f - 1 : 0;
615
- f === b ? l.value = h.slice(0, _) + h.slice(b) : l.value = h.slice(0, f) + h.slice(b), ue(() => {
616
- c.value.setSelectionRange(_, _);
612
+ const f = String(s.value);
613
+ if (f != null && f.length) {
614
+ const m = u.value.getElementsByTagName("input")[0], g = m.selectionStart || 0, b = m.selectionEnd || 0, C = g > 0 ? g - 1 : 0;
615
+ g === b ? s.value = f.slice(0, C) + f.slice(b) : s.value = f.slice(0, g) + f.slice(b), pe(() => {
616
+ i.value.setSelectionRange(C, C);
617
617
  });
618
618
  }
619
619
  }
620
- function g() {
621
- c.value.blur();
620
+ function h() {
621
+ i.value.focus(), s.value = "";
622
622
  }
623
- function m() {
624
- const h = n.min, y = n.max;
625
- let f = parseFloat(l.value || "0");
626
- j(h) || (f = f > h ? f : h), j(y) || (f = f > y ? y : f), l.value = Number(f).toFixed(n.precision), d.value = !1, r("enter");
623
+ function v() {
624
+ i.value.blur();
625
+ }
626
+ function x() {
627
+ const f = t.min, m = t.max;
628
+ let g = parseFloat(s.value || "0");
629
+ B(f) || (g = g > f ? g : f), B(m) || (g = g > m ? m : g), s.value = Number(g).toFixed(t.precision), d.value = !1, l("enter");
627
630
  }
628
- return (h, y) => {
629
- const f = De, b = je, _ = vt, w = Te, k = Be, T = Ae;
630
- return S(), P("div", {
631
+ return (f, m) => {
632
+ const g = Oe, b = je, C = _t, _ = Re, E = Be, L = Le, U = Ke("longpress");
633
+ return w(), A("div", {
631
634
  class: "number-keyboard",
632
635
  ref_key: "numberKeyboard",
633
- ref: i
636
+ ref: u
634
637
  }, [
635
- N(T, {
638
+ T(L, {
636
639
  overlayClassName: "popover-keyboard",
637
640
  trigger: "manual",
638
641
  placement: "bottomLeft",
639
642
  align: { offset: [0, -9] },
640
- open: x(d),
641
- "onUpdate:open": y[2] || (y[2] = (E) => G(d) ? d.value = E : null)
643
+ open: k(d),
644
+ "onUpdate:open": m[2] || (m[2] = (P) => Q(d) ? d.value = P : null)
642
645
  }, {
643
646
  content: M(() => [
644
647
  $("div", {
645
648
  class: "keyboard-panel",
646
- onMousedownCapture: y[0] || (y[0] = ce(() => {
649
+ onMousedownCapture: m[0] || (m[0] = de(() => {
647
650
  }, ["prevent", "stop"]))
648
651
  }, [
649
- N(w, { gutter: "8" }, {
652
+ T(_, { gutter: "8" }, {
650
653
  default: M(() => [
651
- N(b, { span: 18 }, {
654
+ T(b, { span: 18 }, {
652
655
  default: M(() => [
653
- $("div", gt, [
654
- (S(!0), P(q, null, z(e.quickNums, (E) => (S(), U(f, {
656
+ $("div", xt, [
657
+ (w(!0), A(H, null, V(e.quickNums, (P) => (w(), z(g, {
655
658
  class: "btn-num",
656
- key: E,
657
- onClick: (Z) => o(E)
659
+ key: P,
660
+ onClick: (Ae) => a(P)
658
661
  }, {
659
662
  default: M(() => [
660
- Q(te(E), 1)
663
+ ee(oe(P), 1)
661
664
  ]),
662
665
  _: 2
663
666
  }, 1032, ["onClick"]))), 128)),
664
- (S(!0), P(q, null, z(x(a), (E) => (S(), U(f, {
667
+ (w(!0), A(H, null, V(k(o), (P) => (w(), z(g, {
665
668
  class: "btn-num",
666
- key: E,
667
- onClick: (Z) => u(E)
669
+ key: P,
670
+ onClick: (Ae) => c(P)
668
671
  }, {
669
672
  default: M(() => [
670
- Q(te(E), 1)
673
+ ee(oe(P), 1)
671
674
  ]),
672
675
  _: 2
673
676
  }, 1032, ["onClick"]))), 128))
@@ -675,25 +678,27 @@ const vt = oe({ name: "local-clear", render: mt }), gt = { class: "nums-box" },
675
678
  ]),
676
679
  _: 1
677
680
  }),
678
- N(b, { span: 6 }, {
681
+ T(b, { span: 6 }, {
679
682
  default: M(() => [
680
- $("div", ht, [
681
- N(f, {
683
+ $("div", Ct, [
684
+ qe((w(), z(g, {
682
685
  class: "btn-clear",
683
- onClick: v
686
+ onClick: y
684
687
  }, {
685
688
  default: M(() => [
686
- N(_, { style: { width: "24px", height: "24px" } })
689
+ T(C, { style: { width: "24px", height: "24px" } })
687
690
  ]),
688
691
  _: 1
689
- }),
690
- N(f, {
692
+ })), [
693
+ [U, h]
694
+ ]),
695
+ T(g, {
691
696
  class: "btn-enter",
692
697
  type: "primary",
693
- onClick: ce(g, ["stop"])
698
+ onClick: de(v, ["stop"])
694
699
  }, {
695
- default: M(() => y[3] || (y[3] = [
696
- Q("Enter ")
700
+ default: M(() => m[3] || (m[3] = [
701
+ ee("Enter ")
697
702
  ])),
698
703
  _: 1
699
704
  })
@@ -707,15 +712,15 @@ const vt = oe({ name: "local-clear", render: mt }), gt = { class: "nums-box" },
707
712
  ], 32)
708
713
  ]),
709
714
  default: M(() => [
710
- N(k, I({
715
+ T(E, I({
711
716
  ref_key: "inputRef",
712
- ref: c,
713
- value: l.value,
714
- "onUpdate:value": y[1] || (y[1] = (E) => l.value = E)
715
- }, h.$attrs, {
717
+ ref: i,
718
+ value: s.value,
719
+ "onUpdate:value": m[1] || (m[1] = (P) => s.value = P)
720
+ }, f.$attrs, {
716
721
  onFocus: p,
717
- onBlur: s,
718
- onKeyup: Fe(g, ["enter"])
722
+ onBlur: r,
723
+ onKeyup: Ve(v, ["enter"])
719
724
  }), null, 16, ["value"])
720
725
  ]),
721
726
  _: 1
@@ -723,10 +728,10 @@ const vt = oe({ name: "local-clear", render: mt }), gt = { class: "nums-box" },
723
728
  ], 512);
724
729
  };
725
730
  }
726
- }), bt = /* @__PURE__ */ O({
731
+ }), kt = /* @__PURE__ */ F({
727
732
  inheritAttrs: !1,
728
733
  __name: "index",
729
- props: /* @__PURE__ */ R({
734
+ props: /* @__PURE__ */ j({
730
735
  min: {
731
736
  type: Number,
732
737
  default: 0
@@ -750,50 +755,50 @@ const vt = oe({ name: "local-clear", render: mt }), gt = { class: "nums-box" },
750
755
  },
751
756
  valueModifiers: {}
752
757
  }),
753
- emits: /* @__PURE__ */ R(["change"], ["update:value"]),
754
- setup(e, { emit: t }) {
755
- Ue((s) => ({
756
- "6aa59d12": x(a),
757
- "191f412b": x(l),
758
- "191f44ec": x(d)
758
+ emits: /* @__PURE__ */ j(["change"], ["update:value"]),
759
+ setup(e, { emit: n }) {
760
+ Xe((r) => ({
761
+ "61acebdc": k(o),
762
+ "21cc1360": k(s),
763
+ "21cc0bde": k(d)
759
764
  }));
760
- const n = e, r = H(e, "value"), i = t, c = B(() => {
761
- const s = {}, o = Array.from(n.flagStops), u = n.min || 0, v = n.max || 100, g = [u, ...r.value, v];
762
- for (let m = 0; m < g.length; m++) {
763
- const h = g[m];
764
- if (s[h] = h, m > 0) {
765
- const y = o.shift(), f = g[m - 1], b = f + (h - f) / 2;
766
- s[b] = { style: { top: "-28px" }, label: y };
765
+ const t = e, l = G(e, "value"), u = n, i = D(() => {
766
+ const r = {}, a = Array.from(t.flagStops), c = t.min || 0, y = t.max || 100, h = [c, ...l.value, y];
767
+ for (let v = 0; v < h.length; v++) {
768
+ const x = h[v];
769
+ if (r[x] = x, v > 0) {
770
+ const f = a.shift(), m = h[v - 1], g = m + (x - m) / 2;
771
+ r[g] = { style: { top: "-28px" }, label: f };
767
772
  }
768
773
  }
769
- return s;
770
- }), a = B(() => {
771
- const s = r.value, o = n.min || 0, u = n.max || 100, v = Math.floor((s[0] - o) / (u - o) * 100), g = n.colorStops, m = g[0], h = g[g.length - 1];
772
- return `linear-gradient(90deg, ${m} 0%, ${m} ${v}%, ${h} ${v}%, ${h} 100%)`;
773
- }), l = B(() => n.colorStops[1]), d = B(() => n.colorStops[2]);
774
- function p(s) {
775
- const o = n.min || 0, u = n.max || 100;
776
- s[0] <= o ? s[0] = o + 1 : s.at(-1) >= u && (s[s.length - 1] = u - 1), s.length === new Set(s).size && (r.value = s, i("change", s));
774
+ return r;
775
+ }), o = D(() => {
776
+ const r = l.value, a = t.min || 0, c = t.max || 100, y = Math.floor((r[0] - a) / (c - a) * 100), h = t.colorStops, v = h[0], x = h[h.length - 1];
777
+ return `linear-gradient(90deg, ${v} 0%, ${v} ${y}%, ${x} ${y}%, ${x} 100%)`;
778
+ }), s = D(() => t.colorStops[1]), d = D(() => t.colorStops[2]);
779
+ function p(r) {
780
+ const a = t.min || 0, c = t.max || 100;
781
+ r[0] <= a ? r[0] = a + 1 : r.at(-1) >= c && (r[r.length - 1] = c - 1), r.length === new Set(r).size && (l.value = r, u("change", r));
777
782
  }
778
- return (s, o) => {
779
- const u = Re;
780
- return S(), U(u, I({
783
+ return (r, a) => {
784
+ const c = Ie;
785
+ return w(), z(c, I({
781
786
  class: "rate-slider",
782
- value: r.value,
787
+ value: l.value,
783
788
  min: e.min,
784
789
  max: e.max,
785
790
  range: "",
786
- marks: x(c),
791
+ marks: k(i),
787
792
  onChange: p
788
- }, s.$attrs), null, 16, ["value", "min", "max", "marks"]);
793
+ }, r.$attrs), null, 16, ["value", "min", "max", "marks"]);
789
794
  };
790
795
  }
791
- }), _t = { class: "ip-input" }, Ct = { class: "ip-wrapper" }, xt = {
796
+ }), wt = { class: "ip-input" }, $t = { class: "ip-wrapper" }, Et = {
792
797
  key: 0,
793
798
  class: "ip-separator"
794
- }, kt = /* @__PURE__ */ O({
799
+ }, Mt = /* @__PURE__ */ F({
795
800
  __name: "index",
796
- props: /* @__PURE__ */ R({
801
+ props: /* @__PURE__ */ j({
797
802
  hasPort: {
798
803
  type: Boolean,
799
804
  default: !1
@@ -804,80 +809,80 @@ const vt = oe({ name: "local-clear", render: mt }), gt = { class: "nums-box" },
804
809
  }),
805
810
  emits: ["update:value"],
806
811
  setup(e) {
807
- const t = Se.useInjectFormItemContext(), n = e, r = H(e, "value"), i = C(["", "", "", ""]), c = C(), a = C(""), l = C(), d = (o) => {
808
- var v, g;
809
- const u = i.value[o];
810
- if (u && (!/^\d+$/.test(u) || parseInt(u) > 255)) {
811
- i.value[o] = "";
812
+ const n = $e.useInjectFormItemContext(), t = e, l = G(e, "value"), u = S(["", "", "", ""]), i = S(), o = S(""), s = S(), d = (a) => {
813
+ var y, h;
814
+ const c = u.value[a];
815
+ if (c && (!/^\d+$/.test(c) || parseInt(c) > 255)) {
816
+ u.value[a] = "";
812
817
  return;
813
818
  }
814
- parseInt(u) >= 100 && (o < 3 ? (v = c.value) != null && v.length && c.value[o + 1].focus() : n.hasPort && ((g = l.value) == null || g.focus())), r.value = `${i.value.join(".")}${n.hasPort ? ":" + a.value : ""}`, t.clearValidate();
815
- }, p = (o, u) => {
816
- var v, g;
817
- u.key === " " && o < 3 && (u.preventDefault(), (v = c.value) != null && v.length && c.value[o + 1].focus()), u.key === "Backspace" && i.value[o] === "" && o > 0 && (g = c.value) != null && g.length && c.value[o - 1].focus();
819
+ parseInt(c) >= 100 && (a < 3 ? (y = i.value) != null && y.length && i.value[a + 1].focus() : t.hasPort && ((h = s.value) == null || h.focus())), l.value = `${u.value.join(".")}${t.hasPort ? ":" + o.value : ""}`, n.clearValidate();
820
+ }, p = (a, c) => {
821
+ var y, h;
822
+ c.key === " " && a < 3 && (c.preventDefault(), (y = i.value) != null && y.length && i.value[a + 1].focus()), c.key === "Backspace" && u.value[a] === "" && a > 0 && (h = i.value) != null && h.length && i.value[a - 1].focus();
818
823
  };
819
- function s() {
820
- r.value = `${i.value.join(".")}${n.hasPort ? ":" + (a.value || "") : ""}`, t.clearValidate();
824
+ function r() {
825
+ l.value = `${u.value.join(".")}${t.hasPort ? ":" + (o.value || "") : ""}`, n.clearValidate();
821
826
  }
822
- return se(
823
- () => r.value,
824
- (o) => {
825
- if (o) {
826
- let u = o;
827
- if (n.hasPort) {
828
- const g = o.split(":");
829
- a.value = g[1] || "", u = g[0];
827
+ return le(
828
+ () => l.value,
829
+ (a) => {
830
+ if (a) {
831
+ let c = a;
832
+ if (t.hasPort) {
833
+ const h = a.split(":");
834
+ o.value = h[1] || "", c = h[0];
830
835
  }
831
- const v = u.split(".");
832
- v.length === 4 && (i.value = v);
836
+ const y = c.split(".");
837
+ y.length === 4 && (u.value = y);
833
838
  } else
834
- i.value = ["", "", "", ""], a.value = "";
839
+ u.value = ["", "", "", ""], o.value = "";
835
840
  },
836
841
  { immediate: !0 }
837
- ), (o, u) => {
838
- const v = ne;
839
- return S(), P("div", _t, [
840
- $("div", Ct, [
841
- (S(!0), P(q, null, z(x(i), (g, m) => (S(), P(q, { key: m }, [
842
- N(v, {
842
+ ), (a, c) => {
843
+ const y = ae;
844
+ return w(), A("div", wt, [
845
+ $("div", $t, [
846
+ (w(!0), A(H, null, V(k(u), (h, v) => (w(), A(H, { key: v }, [
847
+ T(y, {
843
848
  ref_for: !0,
844
849
  ref_key: "ipPartArr",
845
- ref: c,
850
+ ref: i,
846
851
  class: "ip-part",
847
- value: x(i)[m],
848
- "onUpdate:value": (h) => x(i)[m] = h,
852
+ value: k(u)[v],
853
+ "onUpdate:value": (x) => k(u)[v] = x,
849
854
  min: 0,
850
855
  max: 255,
851
856
  precision: 0,
852
857
  controls: !1,
853
- onChange: (h) => d(m),
854
- onKeydown: (h) => p(m, h)
858
+ onChange: (x) => d(v),
859
+ onKeydown: (x) => p(v, x)
855
860
  }, null, 8, ["value", "onUpdate:value", "onChange", "onKeydown"]),
856
- m < 3 ? (S(), P("span", xt, ".")) : de("", !0)
861
+ v < 3 ? (w(), A("span", Et, ".")) : fe("", !0)
857
862
  ], 64))), 128))
858
863
  ]),
859
- e.hasPort ? (S(), P(q, { key: 0 }, [
860
- u[1] || (u[1] = $("span", { class: "ip-port-separator" }, ":", -1)),
861
- N(v, {
864
+ e.hasPort ? (w(), A(H, { key: 0 }, [
865
+ c[1] || (c[1] = $("span", { class: "ip-port-separator" }, ":", -1)),
866
+ T(y, {
862
867
  ref_key: "portRef",
863
- ref: l,
868
+ ref: s,
864
869
  class: "ip-port",
865
- value: x(a),
866
- "onUpdate:value": u[0] || (u[0] = (g) => G(a) ? a.value = g : null),
870
+ value: k(o),
871
+ "onUpdate:value": c[0] || (c[0] = (h) => Q(o) ? o.value = h : null),
867
872
  min: 0,
868
873
  max: 65535,
869
874
  precision: 0,
870
875
  controls: !1,
871
- onChange: s
876
+ onChange: r
872
877
  }, null, 8, ["value"])
873
- ], 64)) : de("", !0)
878
+ ], 64)) : fe("", !0)
874
879
  ]);
875
880
  };
876
881
  }
877
- }), St = { class: "number-range" }, wt = { class: "separator" }, $t = /* @__PURE__ */ O({
882
+ }), Pt = { class: "number-range" }, Tt = { class: "separator" }, At = /* @__PURE__ */ F({
878
883
  inheritAttrs: !1,
879
884
  __name: "index",
880
- props: /* @__PURE__ */ R({
885
+ props: /* @__PURE__ */ j({
881
886
  min: {
882
887
  type: Number
883
888
  },
@@ -899,261 +904,308 @@ const vt = oe({ name: "local-clear", render: mt }), gt = { class: "nums-box" },
899
904
  },
900
905
  valueModifiers: {}
901
906
  }),
902
- emits: /* @__PURE__ */ R(["change"], ["update:value"]),
903
- setup(e, { emit: t }) {
904
- const n = e, r = H(e, "value"), i = t, c = Se.useInjectFormItemContext(), a = B(() => {
905
- const o = r.value[1];
906
- return j(o) ? n.max : o;
907
- }), l = B(() => {
908
- const o = r.value[0];
909
- return j(o) ? n.min : o;
910
- }), d = C(), p = C();
911
- function s() {
912
- const o = [d.value, p.value];
913
- r.value = o, c.onFieldChange(), i("change", o);
907
+ emits: /* @__PURE__ */ j(["change"], ["update:value"]),
908
+ setup(e, { emit: n }) {
909
+ const t = e, l = G(e, "value"), u = n, i = $e.useInjectFormItemContext(), o = D(() => {
910
+ const a = l.value[1];
911
+ return B(a) ? t.max : a;
912
+ }), s = D(() => {
913
+ const a = l.value[0];
914
+ return B(a) ? t.min : a;
915
+ }), d = S(), p = S();
916
+ function r() {
917
+ const a = [d.value, p.value];
918
+ l.value = a, i.onFieldChange(), u("change", a);
914
919
  }
915
- return se(
916
- () => r.value,
917
- (o) => {
918
- o != null && o.length ? (d.value = o[0], p.value = o[1]) : (d.value = void 0, p.value = void 0);
920
+ return le(
921
+ () => l.value,
922
+ (a) => {
923
+ a != null && a.length ? (d.value = a[0], p.value = a[1]) : (d.value = void 0, p.value = void 0);
919
924
  },
920
925
  { immediate: !0 }
921
- ), (o, u) => {
922
- const v = ne;
923
- return S(), P("div", St, [
924
- N(v, I({
925
- min: n.min,
926
- max: x(a),
927
- value: x(d),
928
- "onUpdate:value": u[0] || (u[0] = (g) => G(d) ? d.value = g : null),
926
+ ), (a, c) => {
927
+ const y = ae;
928
+ return w(), A("div", Pt, [
929
+ T(y, I({
930
+ min: t.min,
931
+ max: k(o),
932
+ value: k(d),
933
+ "onUpdate:value": c[0] || (c[0] = (h) => Q(d) ? d.value = h : null),
929
934
  placeholder: e.placeholder[0] || ""
930
- }, o.$attrs, { onChange: s }), null, 16, ["min", "max", "value", "placeholder"]),
931
- $("span", wt, te(e.separator), 1),
932
- N(v, I({
933
- min: x(l),
934
- max: n.max,
935
- value: x(p),
936
- "onUpdate:value": u[1] || (u[1] = (g) => G(p) ? p.value = g : null),
935
+ }, a.$attrs, { onChange: r }), null, 16, ["min", "max", "value", "placeholder"]),
936
+ $("span", Tt, oe(e.separator), 1),
937
+ T(y, I({
938
+ min: k(s),
939
+ max: t.max,
940
+ value: k(p),
941
+ "onUpdate:value": c[1] || (c[1] = (h) => Q(p) ? p.value = h : null),
937
942
  placeholder: e.placeholder[1] || ""
938
- }, o.$attrs, { onChange: s }), null, 16, ["min", "max", "value", "placeholder"])
943
+ }, a.$attrs, { onChange: r }), null, 16, ["min", "max", "value", "placeholder"])
939
944
  ]);
940
945
  };
941
946
  }
942
- }), ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
947
+ }), he = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
943
948
  __proto__: null,
944
- AInputNumberEx: it,
945
- ARangePickerEx: ct,
946
- ATableEx: dt,
947
- WlInputNumberRange: $t,
948
- WlIpInput: kt,
949
- WlNumberKeyboard: yt,
950
- WlRateSlider: bt,
951
- WlSplitter: pt
949
+ AInputNumberEx: ft,
950
+ ARangePickerEx: mt,
951
+ ATableEx: gt,
952
+ WlInputNumberRange: At,
953
+ WlIpInput: Mt,
954
+ WlNumberKeyboard: St,
955
+ WlRateSlider: kt,
956
+ WlSplitter: ht
952
957
  }, Symbol.toStringTag, { value: "Module" }));
953
- function we(e) {
954
- return Ke() ? (Ve(e), !0) : !1;
958
+ function Ee(e) {
959
+ return Ye() ? (Ze(e), !0) : !1;
955
960
  }
956
- const le = typeof window < "u" && typeof document < "u";
961
+ const ue = typeof window < "u" && typeof document < "u";
957
962
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
958
- const Et = Object.prototype.toString, Mt = (e) => Et.call(e) === "[object Object]";
959
- function Nt(e) {
960
- let t;
961
- function n() {
962
- return t || (t = e()), t;
963
+ const Nt = Object.prototype.toString, Dt = (e) => Nt.call(e) === "[object Object]";
964
+ function Lt(e) {
965
+ let n;
966
+ function t() {
967
+ return n || (n = e()), n;
963
968
  }
964
- return n.reset = async () => {
965
- const r = t;
966
- t = void 0, r && await r;
967
- }, n;
969
+ return t.reset = async () => {
970
+ const l = n;
971
+ n = void 0, l && await l;
972
+ }, t;
968
973
  }
969
- function J(e) {
974
+ function te(e) {
970
975
  return Array.isArray(e) ? e : [e];
971
976
  }
972
- function Pt(e, t, n = {}) {
977
+ function Bt(e, n, t = {}) {
973
978
  const {
974
- immediate: r = !0,
975
- immediateCallback: i = !1
976
- } = n, c = V(!1);
977
- let a = null;
978
- function l() {
979
- a && (clearTimeout(a), a = null);
979
+ immediate: l = !0,
980
+ immediateCallback: u = !1
981
+ } = t, i = X(!1);
982
+ let o = null;
983
+ function s() {
984
+ o && (clearTimeout(o), o = null);
980
985
  }
981
986
  function d() {
982
- c.value = !1, l();
987
+ i.value = !1, s();
983
988
  }
984
- function p(...s) {
985
- i && e(), l(), c.value = !0, a = setTimeout(() => {
986
- c.value = !1, a = null, e(...s);
987
- }, F(t));
989
+ function p(...r) {
990
+ u && e(), s(), i.value = !0, o = setTimeout(() => {
991
+ i.value = !1, o = null, e(...r);
992
+ }, K(n));
988
993
  }
989
- return r && (c.value = !0, le && p()), we(d), {
990
- isPending: ze(c),
994
+ return l && (i.value = !0, ue && p()), Ee(d), {
995
+ isPending: He(i),
991
996
  start: p,
992
997
  stop: d
993
998
  };
994
999
  }
995
- function At(e, t, n) {
996
- return se(
1000
+ function Rt(e, n, t) {
1001
+ return le(
997
1002
  e,
998
- t,
1003
+ n,
999
1004
  {
1000
- ...n,
1005
+ ...t,
1001
1006
  immediate: !0
1002
1007
  }
1003
1008
  );
1004
1009
  }
1005
- const Bt = le ? window : void 0, $e = le ? window.navigator : void 0;
1006
- function Tt(e) {
1007
- var t;
1008
- const n = F(e);
1009
- return (t = n == null ? void 0 : n.$el) != null ? t : n;
1010
+ const jt = ue ? window : void 0, Me = ue ? window.navigator : void 0;
1011
+ function Pe(e) {
1012
+ var n;
1013
+ const t = K(e);
1014
+ return (n = t == null ? void 0 : t.$el) != null ? n : t;
1010
1015
  }
1011
- function Ee(...e) {
1012
- const t = [], n = () => {
1013
- t.forEach((l) => l()), t.length = 0;
1014
- }, r = (l, d, p, s) => (l.addEventListener(d, p, s), () => l.removeEventListener(d, p, s)), i = B(() => {
1015
- const l = J(F(e[0])).filter((d) => d != null);
1016
- return l.every((d) => typeof d != "string") ? l : void 0;
1017
- }), c = At(
1016
+ function Y(...e) {
1017
+ const n = [], t = () => {
1018
+ n.forEach((s) => s()), n.length = 0;
1019
+ }, l = (s, d, p, r) => (s.addEventListener(d, p, r), () => s.removeEventListener(d, p, r)), u = D(() => {
1020
+ const s = te(K(e[0])).filter((d) => d != null);
1021
+ return s.every((d) => typeof d != "string") ? s : void 0;
1022
+ }), i = Rt(
1018
1023
  () => {
1019
- var l, d;
1024
+ var s, d;
1020
1025
  return [
1021
- (d = (l = i.value) == null ? void 0 : l.map((p) => Tt(p))) != null ? d : [Bt].filter((p) => p != null),
1022
- J(F(i.value ? e[1] : e[0])),
1023
- J(x(i.value ? e[2] : e[1])),
1026
+ (d = (s = u.value) == null ? void 0 : s.map((p) => Pe(p))) != null ? d : [jt].filter((p) => p != null),
1027
+ te(K(u.value ? e[1] : e[0])),
1028
+ te(k(u.value ? e[2] : e[1])),
1024
1029
  // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
1025
- F(i.value ? e[3] : e[2])
1030
+ K(u.value ? e[3] : e[2])
1026
1031
  ];
1027
1032
  },
1028
- ([l, d, p, s]) => {
1029
- if (n(), !(l != null && l.length) || !(d != null && d.length) || !(p != null && p.length))
1033
+ ([s, d, p, r]) => {
1034
+ if (t(), !(s != null && s.length) || !(d != null && d.length) || !(p != null && p.length))
1030
1035
  return;
1031
- const o = Mt(s) ? { ...s } : s;
1032
- t.push(
1033
- ...l.flatMap(
1034
- (u) => d.flatMap(
1035
- (v) => p.map((g) => r(u, v, g, o))
1036
+ const a = Dt(r) ? { ...r } : r;
1037
+ n.push(
1038
+ ...s.flatMap(
1039
+ (c) => d.flatMap(
1040
+ (y) => p.map((h) => l(c, y, h, a))
1036
1041
  )
1037
1042
  )
1038
1043
  );
1039
1044
  },
1040
1045
  { flush: "post" }
1041
- ), a = () => {
1042
- c(), n();
1046
+ ), o = () => {
1047
+ i(), t();
1043
1048
  };
1044
- return we(n), a;
1049
+ return Ee(t), o;
1045
1050
  }
1046
- function jt() {
1047
- const e = V(!1), t = Y();
1048
- return t && ke(() => {
1051
+ function Ot() {
1052
+ const e = X(!1), n = J();
1053
+ return n && we(() => {
1049
1054
  e.value = !0;
1050
- }, t), e;
1055
+ }, n), e;
1051
1056
  }
1052
- function Me(e) {
1053
- const t = jt();
1054
- return B(() => (t.value, !!e()));
1057
+ function Te(e) {
1058
+ const n = Ot();
1059
+ return D(() => (n.value, !!e()));
1055
1060
  }
1056
- function ge(e, t = {}) {
1061
+ const It = 500, Ft = 10;
1062
+ function Ut(e, n, t) {
1063
+ var l, u;
1064
+ const i = D(() => Pe(e));
1065
+ let o, s, d, p = !1;
1066
+ function r() {
1067
+ o && (clearTimeout(o), o = void 0), s = void 0, d = void 0, p = !1;
1068
+ }
1069
+ function a(f) {
1070
+ var m, g, b;
1071
+ const [C, _, E] = [d, s, p];
1072
+ if (r(), !(t != null && t.onMouseUp) || !_ || !C || (m = t == null ? void 0 : t.modifiers) != null && m.self && f.target !== i.value)
1073
+ return;
1074
+ (g = t == null ? void 0 : t.modifiers) != null && g.prevent && f.preventDefault(), (b = t == null ? void 0 : t.modifiers) != null && b.stop && f.stopPropagation();
1075
+ const L = f.x - _.x, U = f.y - _.y, P = Math.sqrt(L * L + U * U);
1076
+ t.onMouseUp(f.timeStamp - C, P, E);
1077
+ }
1078
+ function c(f) {
1079
+ var m, g, b, C;
1080
+ (m = t == null ? void 0 : t.modifiers) != null && m.self && f.target !== i.value || (r(), (g = t == null ? void 0 : t.modifiers) != null && g.prevent && f.preventDefault(), (b = t == null ? void 0 : t.modifiers) != null && b.stop && f.stopPropagation(), s = {
1081
+ x: f.x,
1082
+ y: f.y
1083
+ }, d = f.timeStamp, o = setTimeout(
1084
+ () => {
1085
+ p = !0, n(f);
1086
+ },
1087
+ (C = t == null ? void 0 : t.delay) != null ? C : It
1088
+ ));
1089
+ }
1090
+ function y(f) {
1091
+ var m, g, b, C;
1092
+ if ((m = t == null ? void 0 : t.modifiers) != null && m.self && f.target !== i.value || !s || (t == null ? void 0 : t.distanceThreshold) === !1)
1093
+ return;
1094
+ (g = t == null ? void 0 : t.modifiers) != null && g.prevent && f.preventDefault(), (b = t == null ? void 0 : t.modifiers) != null && b.stop && f.stopPropagation();
1095
+ const _ = f.x - s.x, E = f.y - s.y;
1096
+ Math.sqrt(_ * _ + E * E) >= ((C = t == null ? void 0 : t.distanceThreshold) != null ? C : Ft) && r();
1097
+ }
1098
+ const h = {
1099
+ capture: (l = t == null ? void 0 : t.modifiers) == null ? void 0 : l.capture,
1100
+ once: (u = t == null ? void 0 : t.modifiers) == null ? void 0 : u.once
1101
+ }, v = [
1102
+ Y(i, "pointerdown", c, h),
1103
+ Y(i, "pointermove", y, h),
1104
+ Y(i, ["pointerup", "pointerleave"], a, h)
1105
+ ];
1106
+ return () => v.forEach((f) => f());
1107
+ }
1108
+ function ye(e, n = {}) {
1057
1109
  const {
1058
- controls: n = !1,
1059
- navigator: r = $e
1060
- } = t, i = Me(() => r && "permissions" in r), c = V(), a = typeof e == "string" ? { name: e } : e, l = V(), d = () => {
1061
- var s, o;
1062
- l.value = (o = (s = c.value) == null ? void 0 : s.state) != null ? o : "prompt";
1110
+ controls: t = !1,
1111
+ navigator: l = Me
1112
+ } = n, u = Te(() => l && "permissions" in l), i = X(), o = typeof e == "string" ? { name: e } : e, s = X(), d = () => {
1113
+ var r, a;
1114
+ s.value = (a = (r = i.value) == null ? void 0 : r.state) != null ? a : "prompt";
1063
1115
  };
1064
- Ee(c, "change", d, { passive: !0 });
1065
- const p = Nt(async () => {
1066
- if (i.value) {
1067
- if (!c.value)
1116
+ Y(i, "change", d, { passive: !0 });
1117
+ const p = Lt(async () => {
1118
+ if (u.value) {
1119
+ if (!i.value)
1068
1120
  try {
1069
- c.value = await r.permissions.query(a);
1121
+ i.value = await l.permissions.query(o);
1070
1122
  } catch {
1071
- c.value = void 0;
1123
+ i.value = void 0;
1072
1124
  } finally {
1073
1125
  d();
1074
1126
  }
1075
- if (n)
1076
- return qe(c.value);
1127
+ if (t)
1128
+ return Ge(i.value);
1077
1129
  }
1078
1130
  });
1079
- return p(), n ? {
1080
- state: l,
1081
- isSupported: i,
1131
+ return p(), t ? {
1132
+ state: s,
1133
+ isSupported: u,
1082
1134
  query: p
1083
- } : l;
1135
+ } : s;
1084
1136
  }
1085
- function Dt(e = {}) {
1137
+ function Wt(e = {}) {
1086
1138
  const {
1087
- navigator: t = $e,
1088
- read: n = !1,
1089
- source: r,
1090
- copiedDuring: i = 1500,
1091
- legacy: c = !1
1092
- } = e, a = Me(() => t && "clipboard" in t), l = ge("clipboard-read"), d = ge("clipboard-write"), p = B(() => a.value || c), s = V(""), o = V(!1), u = Pt(() => o.value = !1, i, { immediate: !1 });
1093
- async function v() {
1094
- let f = !(a.value && y(l.value));
1095
- if (!f)
1139
+ navigator: n = Me,
1140
+ read: t = !1,
1141
+ source: l,
1142
+ copiedDuring: u = 1500,
1143
+ legacy: i = !1
1144
+ } = e, o = Te(() => n && "clipboard" in n), s = ye("clipboard-read"), d = ye("clipboard-write"), p = D(() => o.value || i), r = X(""), a = X(!1), c = Bt(() => a.value = !1, u, { immediate: !1 });
1145
+ async function y() {
1146
+ let m = !(o.value && f(s.value));
1147
+ if (!m)
1096
1148
  try {
1097
- s.value = await t.clipboard.readText();
1149
+ r.value = await n.clipboard.readText();
1098
1150
  } catch {
1099
- f = !0;
1151
+ m = !0;
1100
1152
  }
1101
- f && (s.value = h());
1153
+ m && (r.value = x());
1102
1154
  }
1103
- p.value && n && Ee(["copy", "cut"], v, { passive: !0 });
1104
- async function g(f = F(r)) {
1105
- if (p.value && f != null) {
1106
- let b = !(a.value && y(d.value));
1107
- if (!b)
1155
+ p.value && t && Y(["copy", "cut"], y, { passive: !0 });
1156
+ async function h(m = K(l)) {
1157
+ if (p.value && m != null) {
1158
+ let g = !(o.value && f(d.value));
1159
+ if (!g)
1108
1160
  try {
1109
- await t.clipboard.writeText(f);
1161
+ await n.clipboard.writeText(m);
1110
1162
  } catch {
1111
- b = !0;
1163
+ g = !0;
1112
1164
  }
1113
- b && m(f), s.value = f, o.value = !0, u.start();
1165
+ g && v(m), r.value = m, a.value = !0, c.start();
1114
1166
  }
1115
1167
  }
1116
- function m(f) {
1117
- const b = document.createElement("textarea");
1118
- b.value = f ?? "", b.style.position = "absolute", b.style.opacity = "0", document.body.appendChild(b), b.select(), document.execCommand("copy"), b.remove();
1168
+ function v(m) {
1169
+ const g = document.createElement("textarea");
1170
+ g.value = m ?? "", g.style.position = "absolute", g.style.opacity = "0", document.body.appendChild(g), g.select(), document.execCommand("copy"), g.remove();
1119
1171
  }
1120
- function h() {
1121
- var f, b, _;
1122
- return (_ = (b = (f = document == null ? void 0 : document.getSelection) == null ? void 0 : f.call(document)) == null ? void 0 : b.toString()) != null ? _ : "";
1172
+ function x() {
1173
+ var m, g, b;
1174
+ return (b = (g = (m = document == null ? void 0 : document.getSelection) == null ? void 0 : m.call(document)) == null ? void 0 : g.toString()) != null ? b : "";
1123
1175
  }
1124
- function y(f) {
1125
- return f === "granted" || f === "prompt";
1176
+ function f(m) {
1177
+ return m === "granted" || m === "prompt";
1126
1178
  }
1127
1179
  return {
1128
1180
  isSupported: p,
1129
- text: s,
1130
- copied: o,
1131
- copy: g
1181
+ text: r,
1182
+ copied: a,
1183
+ copy: h
1132
1184
  };
1133
1185
  }
1134
- const Rt = Dt();
1135
- let ee;
1136
- const Lt = {
1137
- mounted(e, t, n) {
1138
- var a, l;
1139
- const r = re(n.ctx), i = ((l = (a = r == null ? void 0 : r.locale) == null ? void 0 : a.locale) == null ? void 0 : l.slice(0, 2)) || "en", c = {
1186
+ const zt = Wt();
1187
+ let ne;
1188
+ const Kt = {
1189
+ mounted(e, n, t) {
1190
+ var o, s;
1191
+ const l = ie(t.ctx), u = ((s = (o = l == null ? void 0 : l.locale) == null ? void 0 : o.locale) == null ? void 0 : s.slice(0, 2)) || "en", i = {
1140
1192
  zh: "复制成功",
1141
1193
  en: "Copy successfully",
1142
1194
  fr: "Copie réussie"
1143
1195
  };
1144
- e.copyValue = t.value, ee = () => {
1145
- Rt.copy(e.copyValue), Je.success(c[i]);
1146
- }, e.addEventListener("click", ee);
1196
+ e.copyValue = n.value, ne = () => {
1197
+ zt.copy(e.copyValue), at.success(i[u]);
1198
+ }, e.addEventListener("click", ne);
1147
1199
  },
1148
- updated(e, t) {
1149
- e.copyValue = t.value;
1200
+ updated(e, n) {
1201
+ e.copyValue = n.value;
1150
1202
  },
1151
1203
  unmounted(e) {
1152
- e.removeEventListener("click", ee);
1204
+ e.removeEventListener("click", ne);
1153
1205
  }
1154
- }, It = {
1155
- beforeMount(e, t, n) {
1156
- const r = t.value, i = {
1206
+ }, Vt = {
1207
+ beforeMount(e, n, t) {
1208
+ const l = n.value, u = {
1157
1209
  letterNumber: /^\w*$/,
1158
1210
  // 字母和数字
1159
1211
  price: /^(\d*|(\d+\.\d{0,2}))$/,
@@ -1165,253 +1217,259 @@ const Lt = {
1165
1217
  verify: /^\d{0,6}$/,
1166
1218
  idCard: /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/
1167
1219
  //身份证号(15位、18位数字),最后一位是校验位,可能为数字或字符X
1168
- }, c = r instanceof RegExp ? r : t.arg && i[t.arg] ? i[t.arg] : null;
1169
- e._handleInput = (a) => {
1170
- if (a.isTrusted && !(!a.isComposing && a.inputType === "insertCompositionText" && a.data)) {
1171
- const l = c == null ? void 0 : c.test(a.target.value);
1172
- if (e._input = l ? a.target.value : e._input, a.target.value = "", a.target.value = e._input, !l)
1173
- a.target.selectionStart = e._start, a.target.selectionEnd = e._end;
1220
+ }, i = l instanceof RegExp ? l : n.arg && u[n.arg] ? u[n.arg] : null;
1221
+ e._handleInput = (o) => {
1222
+ if (o.isTrusted && !(!o.isComposing && o.inputType === "insertCompositionText" && o.data)) {
1223
+ const s = i == null ? void 0 : i.test(o.target.value);
1224
+ if (e._input = s ? o.target.value : e._input, o.target.value = "", o.target.value = e._input, !s)
1225
+ o.target.selectionStart = e._start, o.target.selectionEnd = e._end;
1174
1226
  else
1175
- switch (a.inputType) {
1227
+ switch (o.inputType) {
1176
1228
  case "deleteContentForward":
1177
1229
  //delete
1178
1230
  case "deleteByDrag":
1179
1231
  //dropout
1180
1232
  case "deleteByCut":
1181
- a.target.selectionStart = e._start, a.target.selectionEnd = e._start;
1233
+ o.target.selectionStart = e._start, o.target.selectionEnd = e._start;
1182
1234
  break;
1183
1235
  case "deleteContentBackward":
1184
- a.target.selectionStart = e._start === e._end ? e._start - 1 : e._start, a.target.selectionEnd = e._start === e._end ? e._start - 1 : e._start;
1236
+ o.target.selectionStart = e._start === e._end ? e._start - 1 : e._start, o.target.selectionEnd = e._start === e._end ? e._start - 1 : e._start;
1185
1237
  break;
1186
1238
  case "insertFromPaste":
1187
1239
  //粘贴
1188
1240
  case "insertFromDrop":
1189
- const p = a.dataTransfer || a.clipboardData || null;
1241
+ const p = o.dataTransfer || o.clipboardData || null;
1190
1242
  if (p) {
1191
- const s = p.getData("text") || "";
1192
- a.target.selectionStart = e._start + s.length, a.target.selectionEnd = e._start + s.length;
1243
+ const r = p.getData("text") || "";
1244
+ o.target.selectionStart = e._start + r.length, o.target.selectionEnd = e._start + r.length;
1193
1245
  }
1194
1246
  break;
1195
1247
  case "insertText":
1196
1248
  //insert
1197
1249
  case "insertCompositionText":
1198
- a.target.selectionStart = e._start + 1, a.target.selectionEnd = e._start + 1;
1250
+ o.target.selectionStart = e._start + 1, o.target.selectionEnd = e._start + 1;
1199
1251
  break;
1200
1252
  }
1201
1253
  const d = new InputEvent("input", {
1202
1254
  isComposing: !1
1203
1255
  });
1204
- a.target.dispatchEvent(d);
1256
+ o.target.dispatchEvent(d);
1205
1257
  }
1206
- }, e._handleKeydown = (a) => {
1207
- const l = c == null ? void 0 : c.test(a.target.value);
1208
- e._input = l ? a.target.value : "", e._start = a.target.selectionStart, e._end = a.target.selectionEnd;
1209
- }, e._handleDrop = (a) => {
1210
- a.stopPropagation();
1211
- }, n.type === "input" && (e.addEventListener("input", e._handleInput), e.addEventListener("keydown", e._handleKeydown), e.addEventListener("drop", e._handleDrop));
1258
+ }, e._handleKeydown = (o) => {
1259
+ const s = i == null ? void 0 : i.test(o.target.value);
1260
+ e._input = s ? o.target.value : "", e._start = o.target.selectionStart, e._end = o.target.selectionEnd;
1261
+ }, e._handleDrop = (o) => {
1262
+ o.stopPropagation();
1263
+ }, t.type === "input" && (e.addEventListener("input", e._handleInput), e.addEventListener("keydown", e._handleKeydown), e.addEventListener("drop", e._handleDrop));
1212
1264
  },
1213
1265
  unmounted(e) {
1214
1266
  e._handleInput && e.removeEventListener("input", e._handleInput), e._handleKeydown && e.removeEventListener("keydown", e._handleKeydown), e._handleDrop && e.removeEventListener("drop", e._handleDrop);
1215
1267
  }
1216
1268
  };
1217
- function he(e, t, n) {
1218
- const r = t.value;
1219
- if (r) {
1220
- const i = r / 2;
1221
- e.style.marginLeft = `-${i}px`, e.style.marginRight = `-${i}px`;
1222
- const c = n.children;
1223
- c != null && c.length && c[0].children.forEach((a) => {
1224
- if (a.component) {
1225
- const l = a.el;
1226
- l != null && l.style && (l.style.paddingLeft = i + "px", l.style.paddingRight = i + "px");
1227
- } else Array.isArray(a.children) && a.children.forEach((l) => {
1228
- const d = l.el;
1229
- d != null && d.style && (d.style.paddingLeft = i + "px", d.style.paddingRight = i + "px");
1269
+ function be(e, n, t) {
1270
+ const l = n.value;
1271
+ if (l) {
1272
+ const u = l / 2;
1273
+ e.style.marginLeft = `-${u}px`, e.style.marginRight = `-${u}px`;
1274
+ const i = t.children;
1275
+ i != null && i.length && i[0].children.forEach((o) => {
1276
+ if (o.component) {
1277
+ const s = o.el;
1278
+ s != null && s.style && (s.style.paddingLeft = u + "px", s.style.paddingRight = u + "px");
1279
+ } else Array.isArray(o.children) && o.children.forEach((s) => {
1280
+ const d = s.el;
1281
+ d != null && d.style && (d.style.paddingLeft = u + "px", d.style.paddingRight = u + "px");
1230
1282
  });
1231
1283
  });
1232
1284
  }
1233
1285
  }
1234
- const Ot = {
1286
+ const qt = {
1235
1287
  beforeMount(e) {
1236
1288
  e.classList.add("ant-row"), e.style.display = "flex", e.style.flexWrap = "wrap", e.style.flexDirection = "row", e.style.minWidth = 0;
1237
1289
  },
1238
- mounted(e, t, n) {
1239
- he(e, t, n);
1290
+ mounted(e, n, t) {
1291
+ be(e, n, t);
1240
1292
  },
1241
- updated(e, t, n, r) {
1242
- he(e, t, n);
1293
+ updated(e, n, t, l) {
1294
+ be(e, n, t);
1243
1295
  }
1244
- }, Wt = {
1245
- beforeMount(e, t) {
1246
- e.classList.add("ant-col", `ant-col-${t.value}`);
1247
- const n = t.value / 24 * 100;
1248
- e.style.position = "relative", e.style.flex = `0 0 ${n}%`, e.style.maxWidth = `${n}%`;
1296
+ }, Xt = {
1297
+ beforeMount(e, n) {
1298
+ e.classList.add("ant-col", `ant-col-${n.value}`);
1299
+ const t = n.value / 24 * 100;
1300
+ e.style.position = "relative", e.style.flex = `0 0 ${t}%`, e.style.maxWidth = `${t}%`;
1249
1301
  }
1250
- }, Ft = {
1251
- mounted(e, t, n) {
1252
- const { value: r } = t, {
1253
- content: i = "",
1254
- placement: c = "top",
1255
- enabled: a = !0,
1256
- padding: l = 8,
1302
+ }, Ht = {
1303
+ mounted(e, n, t) {
1304
+ const { value: l } = n, {
1305
+ content: u = "",
1306
+ placement: i = "top",
1307
+ enabled: o = !0,
1308
+ padding: s = 8,
1257
1309
  // 默认左右间距8px,用来判断文本的测量宽度是否超出元素宽度
1258
1310
  ...d
1259
- } = typeof r == "string" ? { content: r } : r;
1260
- if (e.tooltipDisabled = !1, !a)
1311
+ } = typeof l == "string" ? { content: l } : l;
1312
+ if (e.tooltipDisabled = !1, !o)
1261
1313
  e.tooltipDisabled = !0;
1262
- else if (t.modifiers.exceed) {
1263
- const v = e.clientWidth, g = ye(i);
1264
- e.tooltipDisabled = v ? g < v - l * 2 : !0;
1314
+ else if (n.modifiers.exceed) {
1315
+ const y = e.clientWidth, h = _e(u);
1316
+ e.tooltipDisabled = y ? h < y - s * 2 : !0;
1265
1317
  }
1266
- const p = C({
1318
+ const p = S({
1267
1319
  top: 0,
1268
1320
  left: 0,
1269
1321
  bottom: 0,
1270
1322
  right: 0
1271
- }), s = C({
1323
+ }), r = S({
1272
1324
  getBoundingClientRect: () => p.value
1273
- }), o = W(tt, {
1325
+ }), a = W(rt, {
1274
1326
  visible: !1,
1275
- content: i,
1276
- placement: c,
1327
+ content: u,
1328
+ placement: i,
1277
1329
  virtualTriggering: !0,
1278
- virtualRef: s.value,
1330
+ virtualRef: r.value,
1279
1331
  popperClass: "vtooltip",
1280
1332
  ...d
1281
- }), u = document.createDocumentFragment();
1282
- X(o, u), e.tooltipVm = o, e.tooltipContainer = u, e.addEventListener("mouseenter", () => {
1283
- p.value = e.getBoundingClientRect(), o.component && !e.tooltipDisabled && (Object.assign(o.component.props, { visible: !0 }), o.component.update());
1333
+ }), c = document.createDocumentFragment();
1334
+ Z(a, c), e.tooltipVm = a, e.tooltipContainer = c, e.addEventListener("mouseenter", () => {
1335
+ p.value = e.getBoundingClientRect(), a.component && !e.tooltipDisabled && (Object.assign(a.component.props, { visible: !0 }), a.component.update());
1284
1336
  }), e.addEventListener("mouseleave", () => {
1285
- o.component && (Object.assign(o.component.props, { visible: !1 }), o.component.update());
1337
+ a.component && (Object.assign(a.component.props, { visible: !1 }), a.component.update());
1286
1338
  });
1287
1339
  },
1288
- updated(e, t) {
1340
+ updated(e, n) {
1289
1341
  if (e.tooltipVm) {
1290
- const { value: n } = t, {
1291
- content: r = "",
1292
- placement: i = "top",
1293
- enabled: c = !0,
1294
- padding: a = 8,
1342
+ const { value: t } = n, {
1343
+ content: l = "",
1344
+ placement: u = "top",
1345
+ enabled: i = !0,
1346
+ padding: o = 8,
1295
1347
  // 默认左右间距8px,用来判断文本的测量宽度是否超出元素宽度
1296
- ...l
1297
- } = typeof n == "string" ? { content: n } : n;
1298
- if (e.tooltipDisabled = !1, !c)
1348
+ ...s
1349
+ } = typeof t == "string" ? { content: t } : t;
1350
+ if (e.tooltipDisabled = !1, !i)
1299
1351
  e.tooltipDisabled = !0;
1300
- else if (t.modifiers.exceed) {
1301
- const p = e.clientWidth, s = ye(r);
1302
- e.tooltipDisabled = p ? s < p - a * 2 : !0;
1352
+ else if (n.modifiers.exceed) {
1353
+ const p = e.clientWidth, r = _e(l);
1354
+ e.tooltipDisabled = p ? r < p - o * 2 : !0;
1303
1355
  }
1304
1356
  const d = e.tooltipVm;
1305
- d.component && (Object.assign(d.component.props, { content: r, placement: i, ...l }), d.component.update());
1357
+ d.component && (Object.assign(d.component.props, { content: l, placement: u, ...s }), d.component.update());
1306
1358
  }
1307
1359
  },
1308
1360
  unmounted(e) {
1309
- e.tooltipContainer && X(null, e.tooltipContainer);
1361
+ e.tooltipContainer && Z(null, e.tooltipContainer);
1310
1362
  }
1311
1363
  };
1312
- function ye(e, t) {
1313
- const r = document.createElement("canvas").getContext("2d");
1314
- return r.font = "14px Arial", r.measureText(e).width;
1364
+ function _e(e, n) {
1365
+ const l = document.createElement("canvas").getContext("2d");
1366
+ return l.font = "14px Arial", l.measureText(e).width;
1315
1367
  }
1316
- const Ut = {
1317
- beforeMount(e, t) {
1318
- const { value: n } = t;
1319
- n && (Xe(n) || setTimeout(() => {
1320
- var i;
1321
- (i = e.parentNode) == null || i.removeChild(e);
1368
+ const Yt = {
1369
+ beforeMount(e, n) {
1370
+ const { value: t } = n;
1371
+ t && (Qe(t) || setTimeout(() => {
1372
+ var u;
1373
+ (u = e.parentNode) == null || u.removeChild(e);
1322
1374
  }, 50));
1323
1375
  }
1324
1376
  };
1325
- function be(e, t = 4) {
1326
- const n = new RegExp(`(.{${t}})`, "g");
1327
- return e.replace(n, "$1 ").trim();
1377
+ function xe(e, n = 4) {
1378
+ const t = new RegExp(`(.{${n}})`, "g");
1379
+ return e.replace(t, "$1 ").trim();
1328
1380
  }
1329
- const zt = {
1330
- mounted(e, t) {
1331
- const { value: n } = t, { content: r = "", spaceNum: i = 4 } = typeof n == "object" ? n || {} : { content: n + "" }, c = r.replace(/\s+/g, "");
1332
- e.textContent = be(c, i) || "-";
1381
+ const Zt = {
1382
+ mounted(e, n) {
1383
+ const { value: t } = n, { content: l = "", spaceNum: u = 4 } = typeof t == "object" ? t || {} : { content: t + "" }, i = l.replace(/\s+/g, "");
1384
+ e.textContent = xe(i, u) || "-";
1333
1385
  },
1334
- updated(e, t) {
1335
- const { value: n } = t, { content: r = "", spaceNum: i = 4 } = typeof n == "object" ? n || {} : { content: n + "" }, c = r.replace(/\s+/g, "");
1336
- e.textContent = be(c, i) || "-";
1386
+ updated(e, n) {
1387
+ const { value: t } = n, { content: l = "", spaceNum: u = 4 } = typeof t == "object" ? t || {} : { content: t + "" }, i = l.replace(/\s+/g, "");
1388
+ e.textContent = xe(i, u) || "-";
1389
+ }
1390
+ }, Gt = {
1391
+ mounted(e, n) {
1392
+ typeof n.value == "function" && Ut(e, n.value, { modifiers: n.modifiers });
1337
1393
  }
1338
- }, _e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1394
+ }, Ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1339
1395
  __proto__: null,
1340
- col: Wt,
1341
- copy: Lt,
1342
- inputlimit: It,
1343
- permission: Ut,
1344
- row: Ot,
1345
- space: zt,
1346
- tooltip: Ft
1396
+ col: Xt,
1397
+ copy: Kt,
1398
+ inputlimit: Vt,
1399
+ longpress: Gt,
1400
+ permission: Yt,
1401
+ row: qt,
1402
+ space: Zt,
1403
+ tooltip: Ht
1347
1404
  }, Symbol.toStringTag, { value: "Module" }));
1348
- function Kt(e) {
1349
- Object.keys(ve).forEach((t) => {
1350
- e.component(t, ve[t]);
1351
- }), Object.keys(_e).forEach((t) => {
1352
- e.directive(t, _e[t]);
1405
+ function Qt(e) {
1406
+ Object.keys(he).forEach((n) => {
1407
+ e.component(n, he[n]);
1408
+ }), Object.keys(Ce).forEach((n) => {
1409
+ e.directive(n, Ce[n]);
1353
1410
  });
1354
1411
  }
1355
- const Jt = { install: Kt };
1412
+ const ln = { install: Qt };
1356
1413
  export {
1357
- it as AInputNumberEx,
1358
- ct as ARangePickerEx,
1359
- dt as ATableEx,
1360
- nn as UserCenterKey,
1361
- $t as WlInputNumberRange,
1362
- kt as WlIpInput,
1363
- yt as WlNumberKeyboard,
1364
- bt as WlRateSlider,
1365
- pt as WlSplitter,
1366
- on as buildTree,
1367
- Wt as col,
1368
- Lt as copy,
1369
- Jt as default,
1370
- an as exportFile,
1371
- sn as forEachTree,
1372
- rn as getButtonPermissions,
1373
- ln as getLocale,
1374
- cn as getMenuInfo,
1375
- un as getToken,
1376
- dn as getUserCenterParams,
1377
- pn as getUserCenterParamsByUrl,
1378
- fn as getUserInfo,
1379
- Xe as hasPermission,
1380
- It as inputlimit,
1381
- mn as is,
1382
- vn as isArray,
1383
- gn as isAsyncFunction,
1384
- hn as isBoolean,
1385
- yn as isClient,
1386
- bn as isDate,
1387
- _n as isDef,
1388
- Cn as isElement,
1389
- xn as isFunction,
1390
- kn as isImageDom,
1391
- Sn as isNull,
1392
- j as isNullOrUndef,
1393
- wn as isNumber,
1394
- $n as isObject,
1395
- En as isPromise,
1396
- Mn as isServer,
1397
- Nn as isString,
1398
- Pn as isUndef,
1399
- An as isWindow,
1400
- Bn as logoutToUserCenter,
1401
- Ut as permission,
1402
- Tn as removeAll,
1403
- jn as removeLocale,
1404
- Dn as removeToken,
1405
- Ot as row,
1406
- Rn as setLocale,
1407
- Ln as setMenuInfo,
1408
- In as setToken,
1409
- On as setUserCenterParams,
1410
- Wn as setUserInfo,
1411
- zt as space,
1412
- Fn as toUserCenterConsole,
1413
- Ft as tooltip,
1414
- re as useConfigProvider,
1415
- Yt as useFindParent,
1416
- Qt as useModal
1414
+ ft as AInputNumberEx,
1415
+ mt as ARangePickerEx,
1416
+ gt as ATableEx,
1417
+ dn as UserCenterKey,
1418
+ At as WlInputNumberRange,
1419
+ Mt as WlIpInput,
1420
+ St as WlNumberKeyboard,
1421
+ kt as WlRateSlider,
1422
+ ht as WlSplitter,
1423
+ pn as buildTree,
1424
+ Xt as col,
1425
+ Kt as copy,
1426
+ ln as default,
1427
+ fn as exportFile,
1428
+ mn as forEachTree,
1429
+ vn as getButtonPermissions,
1430
+ gn as getLocale,
1431
+ hn as getMenuInfo,
1432
+ yn as getToken,
1433
+ bn as getUserCenterParams,
1434
+ _n as getUserCenterParamsByUrl,
1435
+ xn as getUserInfo,
1436
+ Qe as hasPermission,
1437
+ Vt as inputlimit,
1438
+ Cn as is,
1439
+ Sn as isArray,
1440
+ kn as isAsyncFunction,
1441
+ wn as isBoolean,
1442
+ $n as isClient,
1443
+ En as isDate,
1444
+ Mn as isDef,
1445
+ Pn as isElement,
1446
+ Tn as isFunction,
1447
+ An as isImageDom,
1448
+ Nn as isNull,
1449
+ B as isNullOrUndef,
1450
+ Dn as isNumber,
1451
+ Ln as isObject,
1452
+ Bn as isPromise,
1453
+ Rn as isServer,
1454
+ jn as isString,
1455
+ On as isUndef,
1456
+ In as isWindow,
1457
+ Fn as logoutToUserCenter,
1458
+ Gt as longpress,
1459
+ Yt as permission,
1460
+ Un as removeAll,
1461
+ Wn as removeLocale,
1462
+ zn as removeToken,
1463
+ qt as row,
1464
+ Kn as setLocale,
1465
+ Vn as setMenuInfo,
1466
+ qn as setToken,
1467
+ Xn as setUserCenterParams,
1468
+ Hn as setUserInfo,
1469
+ Zt as space,
1470
+ Yn as toUserCenterConsole,
1471
+ Ht as tooltip,
1472
+ ie as useConfigProvider,
1473
+ sn as useFindParent,
1474
+ rn as useModal
1417
1475
  };