@witlink/components 1.0.27 → 2.0.0

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