@witlink/components 1.0.24 → 1.0.26

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