@witlink/components 1.0.25 → 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 T, openBlock as E, createElementVNode as $, defineComponent as F, mergeModels as j, useModel as G, useSlots as ke, useAttrs as Ue, createBlock as z, mergeProps as I, createSlots as re, renderList as V, withCtx as M, unref as k, renderSlot as K, normalizeProps as le, guardReactiveProps as we, createVNode as P, ref as S, getCurrentInstance as J, render as Z, h as W, computed as D, onMounted as Ee, onUnmounted as We, normalizeClass as ze, normalizeStyle as de, resolveDirective as qe, isRef as Q, withKeys as Ve, withModifiers as pe, Fragment as H, createTextVNode as ee, toDisplayString as oe, withDirectives as Ke, nextTick as fe, useCssVars as Xe, watch as ie, createCommentVNode as me, shallowRef as X, shallowReadonly as He, toValue as q, 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 En, isDate as $n, isDef as Mn, isElement as Nn, isFunction as Pn, isImageDom as Tn, isNull as An, 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 qn, setMenuInfo as Vn, setToken as Kn, 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 A, App as Je, Modal as et, Button as tt, ConfigProvider as nt, Textarea as ot, Form as $e, message as at } from "ant-design-vue";
7
- import { ElScrollbar as st, ElTooltip as rt } from "element-plus";
8
- const lt = {
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 E(), T("svg", lt, n[0] || (n[0] = [
16
- $("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
- $("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 E(), T("svg", ct, n[0] || (n[0] = [
34
- $("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, l = n, i = ke(), u = Ue();
61
+ const t = Q(e, "value"), s = e, i = n, r = $e(), u = Ke();
62
62
  function o(a) {
63
63
  if (B(a))
64
- t.value = null, l("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, l("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
77
  if (u.disabled) return;
78
78
  const a = Number(t.value);
79
79
  !B(u.min) && a <= Number(u.min) || o(a - 1);
80
80
  }
81
- function s() {
81
+ function l() {
82
82
  if (u.disabled) return;
83
83
  const a = Number(t.value);
84
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 E(), 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
93
  onChange: o,
94
94
  onBlur: c
95
- }, a.$attrs), re({ _: 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
- K(a.$slots, x, le(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
- $("div", {
105
+ N("div", {
106
106
  class: "btn-control",
107
107
  onClick: p
108
108
  }, [
109
- P(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
- $("div", {
117
+ N("div", {
118
118
  class: "btn-control",
119
- onClick: s
119
+ onClick: l
120
120
  }, [
121
- P(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, l = S(), i = S(), u = (s) => {
160
- const a = ve().add(t.max, t.maxUnit), d = ve().subtract(t.min, t.minUnit), y = t.interval;
161
- if (!l.value || l.value.length === 0)
162
- return s.isAfter(a) || s.isBefore(d);
163
- const h = l.value[0] && (s.diff(l.value[0], "days") > y || s.isAfter(a));
164
- return l.value[1] && (l.value[1].diff(s, "days") > y || s.isBefore(d)) || h;
165
- }, o = (s) => {
166
- s ? (l.value = [], i.value = []) : i.value = void 0;
167
- }, c = (s) => {
168
- r("update:value", s), r("change", s);
169
- }, p = (s) => {
170
- l.value = s;
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
+ return l.isAfter(a) || l.isBefore(d);
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
+ }, c = (l) => {
168
+ s("update:value", l), s("change", l);
169
+ }, p = (l) => {
170
+ i.value = l;
171
171
  };
172
- return (s, a) => {
173
- const d = De;
174
- return E(), z(d, I({
175
- value: k(i) || e.value,
172
+ return (l, a) => {
173
+ const d = Re;
174
+ return w(), j(d, O({
175
+ value: k(r) || e.value,
176
176
  "disabled-date": u,
177
177
  onChange: c,
178
178
  onOpenChange: o,
179
179
  onCalendarChange: p
180
- }, s.$attrs), re({ _: 2 }, [
181
- V(Object.keys(s.$slots), (y) => ({
182
- name: y,
183
- fn: M((h) => [
184
- K(s.$slots, y, le(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, u]) => [i, k(u)])
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,29 +270,29 @@ function sn(e) {
216
270
  }
217
271
  return null;
218
272
  }
219
- let O, ge, R, he;
220
- A.destroy = function() {
221
- const e = A.instanceArr || [], n = e.pop();
222
- if (n && Z(null, n.container), e.length > 0) {
273
+ let U, ge, R, ye;
274
+ T.destroy = function() {
275
+ const e = T.instanceArr || [], n = e.pop();
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 }
226
280
  }), t.component.update();
227
281
  }
228
282
  };
229
- A.destroyAll = function() {
230
- (A.instanceArr || []).forEach((n) => {
231
- Z(null, n.container);
232
- }), A.instanceArr = [];
283
+ T.destroyAll = function() {
284
+ (T.instanceArr || []).forEach((n) => {
285
+ G(null, n.container);
286
+ }), T.instanceArr = [];
233
287
  };
234
- function rn() {
235
- var s, a;
236
- const e = J();
288
+ function pn() {
289
+ var l, a;
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 rn() {
247
301
  zh: "请输入",
248
302
  en: "Please Enter",
249
303
  fr: "Veuillez entrer"
250
- }, r = ue(), l = ((a = (s = r == null ? void 0 : r.locale) == null ? void 0 : s.locale) == null ? void 0 : a.slice(0, 2)) || "en";
251
- function i({ title: d, ...y }) {
252
- const h = S();
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();
253
307
  return u({
254
308
  title: d,
255
- ...y,
256
- comp: ot,
309
+ ...h,
310
+ comp: it,
257
311
  props: {
258
- placeholder: t[l],
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 u({ 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,107 +334,107 @@ function rn() {
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
355
  function o() {
302
- O == null || O.destroy();
356
+ U == null || U.destroy();
303
357
  }
304
- function c({ title: d, comp: y, props: h, ...v }) {
305
- const x = v.getContainer || document.createDocumentFragment();
306
- A.instanceArr || (A.instanceArr = []);
307
- const f = A.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();
358
+ function c({ title: d, comp: h, props: v, ...g }) {
359
+ const x = g.getContainer || document.createDocumentFragment();
360
+ T.instanceArr || (T.instanceArr = []);
361
+ const f = T.instanceArr, m = f[f.length - 1];
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
- A.destroy();
386
+ T.destroy();
333
387
  }
334
388
  },
335
- n[l]
389
+ n[i]
336
390
  )
337
391
  });
338
- const _ = v.width || 992;
339
- delete v.width;
340
- const C = W(
341
- A,
392
+ const b = g.width || 992;
393
+ delete g.width;
394
+ const C = z(
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(), A.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
  }
369
423
  function p() {
370
- A.destroy();
424
+ T.destroy();
371
425
  }
372
426
  return {
373
427
  message: ge,
374
428
  modal: R,
375
- notification: he,
376
- modalInput: i,
429
+ notification: ye,
430
+ modalInput: r,
377
431
  modalComp: u,
378
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(), l = S([]), i = S(!1), u = S(0), o = S(1), c = S(10), p = S(), s = 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(() => ({
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(() => ({
409
463
  total: u.value,
410
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: o.value, size: c.value } : _ = { pageNo: o.value, pageSize: c.value }, t.formatSortParams && ((b = s.value) != null && b.orderMap) && (_[s.value.field + "SortField"] = s.value.orderMap), t.loadData(_, p.value, s.value).then((C) => {
422
- if (i.value = !1, (C == null ? void 0 : C.code) === 0) {
423
- const w = C.result || {};
424
- t.newFieldName ? (u.value = w.total, l.value = w.records) : (u.value = w.totalCount, l.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 (o.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
- s.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
- o.value = 1, v();
497
+ o.value = 1, g();
444
498
  }
445
- function g() {
446
- o.value = 1, u.value = 0, l.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 E(), 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(l),
510
+ loading: k(r),
511
+ pagination: k(v),
512
+ dataSource: k(i),
459
513
  onChange: x,
460
514
  onResizeColumn: f
461
- }, b.$attrs), re({ _: 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" ? K(b.$slots, w, le(I({ key: 0 }, L))) : K(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(), l = S({}), i = S({}), u = S(0.2);
542
+ const n = e, t = S(), s = S(), i = S({}), r = S({}), u = S(0.2);
489
543
  function o(p) {
490
- l.value = { width: `calc(${p * 100}% - 5px)` }, i.value = { width: `calc(${(1 - p) * 100}% - 5px)` };
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
- const s = 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) / s;
550
+ const l = p.clientWidth, a = p.getBoundingClientRect(), d = a.left;
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;
500
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 Ee(() => {
508
- o(u.value), r.value && r.value.addEventListener("mousedown", c, !1);
509
- }), We(() => {
510
- r.value && r.value.removeEventListener("mousedown", c);
511
- }), (p, s) => (E(), T("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
- $("div", {
570
+ N("div", {
517
571
  class: "my-left",
518
- style: de(k(l))
572
+ style: pe(k(i))
519
573
  }, [
520
- K(p.$slots, "left")
574
+ V(p.$slots, "left")
521
575
  ], 4),
522
- $("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
- $("div", {
582
+ N("div", {
529
583
  class: "my-right",
530
- style: de(k(i))
584
+ style: pe(k(r))
531
585
  }, [
532
- K(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 E(), T("svg", yt, n[0] || (n[0] = [
546
- $("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
- $("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
- $("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,97 +641,97 @@ 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, l = S(), i = S(), u = S(["7", "8", "9", "4", "5", "6", "1", "2", "3", "0", "00", "."]), o = 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
  }
596
- function s() {
650
+ function l() {
597
651
  x();
598
652
  }
599
653
  function a(f) {
600
- i.value.focus(), o.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(o.value) || o.value === "") {
657
+ if (r.value.focus(), B(o.value) || o.value === "") {
604
658
  if (["00", "."].includes(f))
605
659
  return;
606
660
  o.value = f;
607
661
  } else {
608
- const m = String(o.value), g = l.value.getElementsByTagName("input")[0], b = g.selectionStart || 0, _ = g.selectionEnd || 0;
609
- o.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(o.value))
670
+ function h() {
671
+ if (r.value.focus(), B(o.value))
618
672
  return;
619
673
  const f = String(o.value);
620
674
  if (f != null && f.length) {
621
- const m = l.value.getElementsByTagName("input")[0], g = m.selectionStart || 0, b = m.selectionEnd || 0, _ = g > 0 ? g - 1 : 0;
622
- g === b ? o.value = f.slice(0, _) + f.slice(b) : o.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(), o.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(o.value || "0");
636
- B(f) || (g = g > f ? g : f), B(m) || (g = g > m ? m : g), o.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 = qe("longpress");
640
- return E(), T("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: l
697
+ ref: i
644
698
  }, [
645
- P(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] = (N) => Q(c) ? c.value = N : null)
705
+ "onUpdate:open": m[2] || (m[2] = (P) => Z(c) ? c.value = P : null)
652
706
  }, {
653
707
  content: M(() => [
654
- $("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
- P(C, { gutter: "8" }, {
713
+ E(C, { gutter: "8" }, {
660
714
  default: M(() => [
661
- P(b, { span: 18 }, {
715
+ E(_, { span: 18 }, {
662
716
  default: M(() => [
663
- $("div", xt, [
664
- (E(!0), T(H, null, V(e.quickNums, (N) => (E(), 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
- key: N,
667
- onClick: (Ae) => a(N)
720
+ key: P,
721
+ onClick: (Be) => a(P)
668
722
  }, {
669
723
  default: M(() => [
670
- ee(oe(N), 1)
724
+ te(se(P), 1)
671
725
  ]),
672
726
  _: 2
673
727
  }, 1032, ["onClick"]))), 128)),
674
- (E(!0), T(H, null, V(k(u), (N) => (E(), z(g, {
728
+ (w(!0), A(H, null, K(k(u), (P) => (w(), j(y, {
675
729
  class: "btn-num",
676
- key: N,
677
- onClick: (Ae) => d(N)
730
+ key: P,
731
+ onClick: (Be) => d(P)
678
732
  }, {
679
733
  default: M(() => [
680
- ee(oe(N), 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
- P(b, { span: 6 }, {
742
+ E(_, { span: 6 }, {
689
743
  default: M(() => [
690
- $("div", Ct, [
691
- Ke((E(), 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
- P(_, { 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
- P(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
- P(w, I({
776
+ E($, O({
723
777
  ref_key: "inputRef",
724
- ref: i,
778
+ ref: r,
725
779
  value: o.value,
726
- "onUpdate:value": m[1] || (m[1] = (N) => o.value = N)
780
+ "onUpdate:value": m[1] || (m[1] = (P) => o.value = P)
727
781
  }, f.$attrs, {
728
782
  onFocus: p,
729
- onBlur: s,
730
- onKeyup: Ve(v, ["enter"])
783
+ onBlur: l,
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((s) => ({
821
+ Qe((l) => ({
768
822
  "6ffd511e": k(u),
769
823
  "1201d0a5": k(o),
770
824
  "1201d466": k(c)
771
825
  }));
772
- const t = e, r = G(e, "value"), l = n, i = D(() => {
773
- const s = {}, 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 (s[x] = x, v > 0) {
777
- const f = a.shift(), m = h[v - 1], g = m + (x - m) / 2;
778
- s[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
- return s;
835
+ return l;
782
836
  }), u = D(() => {
783
- const s = r.value, a = t.min || 0, d = t.max || 100, y = Math.floor((s[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%)`;
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%)`;
785
839
  }), o = D(() => t.colorStops[1]), c = D(() => t.colorStops[2]);
786
- function p(s) {
840
+ function p(l) {
787
841
  const a = t.min || 0, d = t.max || 100;
788
- s[0] <= a ? s[0] = a + 1 : s.at(-1) >= d && (s[s.length - 1] = d - 1), s.length === new Set(s).size && (r.value = s, l("change", s));
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
- return (s, a) => {
791
- const d = Fe;
792
- return E(), z(d, I({
844
+ return (l, a) => {
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
- }, s.$attrs), null, 16, ["value", "min", "max", "marks"]);
854
+ }, l.$attrs), null, 16, ["value", "min", "max", "marks"]);
801
855
  };
802
856
  }
803
- }), wt = { class: "ip-input" }, Et = { class: "ip-wrapper" }, $t = {
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,80 +870,80 @@ 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 = $e.useInjectFormItemContext(), t = e, r = G(e, "value"), l = S(["", "", "", ""]), i = S(), u = S(""), o = S(), c = (a) => {
820
- var y, h;
821
- const d = l.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
- l.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 = o.value) == null || h.focus())), r.value = `${l.value.join(".")}${t.hasPort ? ":" + u.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" && l.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
- function s() {
832
- r.value = `${l.value.join(".")}${t.hasPort ? ":" + (u.value || "") : ""}`, n.clearValidate();
885
+ function l() {
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
- u.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 && (l.value = y);
897
+ const h = d.split(".");
898
+ h.length === 4 && (i.value = h);
845
899
  } else
846
- l.value = ["", "", "", ""], u.value = "";
900
+ i.value = ["", "", "", ""], u.value = "";
847
901
  },
848
902
  { immediate: !0 }
849
903
  ), (a, d) => {
850
- const y = ae;
851
- return E(), T("div", wt, [
852
- $("div", Et, [
853
- (E(!0), T(H, null, V(k(l), (h, v) => (E(), T(H, { key: v }, [
854
- P(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(l)[v],
860
- "onUpdate:value": (x) => k(l)[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 ? (E(), T("span", $t, ".")) : me("", !0)
922
+ g < 3 ? (w(), A("span", Tt, ".")) : me("", !0)
869
923
  ], 64))), 128))
870
924
  ]),
871
- e.hasPort ? (E(), T(H, { key: 0 }, [
872
- d[1] || (d[1] = $("span", { class: "ip-port-separator" }, ":", -1)),
873
- P(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
929
  ref: o,
876
930
  class: "ip-port",
877
931
  value: k(u),
878
- "onUpdate:value": d[0] || (d[0] = (h) => Q(u) ? u.value = h : null),
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,
882
936
  controls: !1,
883
- onChange: s
937
+ onChange: l
884
938
  }, null, 8, ["value"])
885
939
  ], 64)) : me("", !0)
886
940
  ]);
887
941
  };
888
942
  }
889
- }), Nt = { class: "number-range" }, Pt = { class: "separator" }, Tt = /* @__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"), l = n, i = $e.useInjectFormItemContext(), u = 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
973
  }), o = D(() => {
920
- const a = r.value[0];
974
+ const a = s.value[0];
921
975
  return B(a) ? t.min : a;
922
976
  }), c = S(), p = S();
923
- function s() {
977
+ function l() {
924
978
  const a = [c.value, p.value];
925
- r.value = a, i.onFieldChange(), l("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 E(), T("div", Nt, [
936
- P(y, I({
988
+ const h = le;
989
+ return w(), A("div", Lt, [
990
+ E(h, O({
937
991
  min: t.min,
938
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
- }, a.$attrs, { onChange: s }), null, 16, ["min", "max", "value", "placeholder"]),
943
- $("span", Pt, oe(e.separator), 1),
944
- P(y, I({
996
+ }, a.$attrs, { onChange: l }), null, 16, ["min", "max", "value", "placeholder"]),
997
+ N("span", Bt, se(e.separator), 1),
998
+ E(h, O({
945
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
- }, a.$attrs, { onChange: s }), null, 16, ["min", "max", "value", "placeholder"])
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: Tt,
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 At = Object.prototype.toString, Dt = (e) => At.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: l = !1
988
- } = t, i = X(!1);
1041
+ immediate: s = !0,
1042
+ immediateCallback: i = !1
1043
+ } = t, r = X(!1);
989
1044
  let u = null;
990
1045
  function o() {
991
1046
  u && (clearTimeout(u), u = null);
992
1047
  }
993
1048
  function c() {
994
- i.value = !1, o();
1049
+ r.value = !1, o();
995
1050
  }
996
- function p(...s) {
997
- l && e(), o(), i.value = !0, u = setTimeout(() => {
998
- i.value = !1, u = null, e(...s);
1051
+ function p(...l) {
1052
+ i && e(), o(), r.value = !0, u = setTimeout(() => {
1053
+ r.value = !1, u = null, e(...l);
999
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,8 +1069,8 @@ function Rt(e, n, t) {
1014
1069
  }
1015
1070
  );
1016
1071
  }
1017
- const jt = ce ? window : void 0, Ne = ce ? window.navigator : void 0;
1018
- function Pe(e) {
1072
+ const Wt = de ? window : void 0, Te = de ? window.navigator : void 0;
1073
+ function De(e) {
1019
1074
  var n;
1020
1075
  const t = q(e);
1021
1076
  return (n = t == null ? void 0 : t.$el) != null ? n : t;
@@ -1023,199 +1078,199 @@ function Pe(e) {
1023
1078
  function Y(...e) {
1024
1079
  const n = [], t = () => {
1025
1080
  n.forEach((o) => o()), n.length = 0;
1026
- }, r = (o, c, p, s) => (o.addEventListener(c, p, s), () => o.removeEventListener(c, p, s)), l = D(() => {
1027
- const o = te(q(e[0])).filter((c) => c != null);
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);
1028
1083
  return o.every((c) => typeof c != "string") ? o : void 0;
1029
- }), i = Rt(
1084
+ }), r = Ut(
1030
1085
  () => {
1031
1086
  var o, c;
1032
1087
  return [
1033
- (c = (o = l.value) == null ? void 0 : o.map((p) => Pe(p))) != null ? c : [jt].filter((p) => p != null),
1034
- te(q(l.value ? e[1] : e[0])),
1035
- te(k(l.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
- q(l.value ? e[3] : e[2])
1092
+ q(i.value ? e[3] : e[2])
1038
1093
  ];
1039
1094
  },
1040
- ([o, c, p, s]) => {
1095
+ ([o, c, p, l]) => {
1041
1096
  if (t(), !(o != null && o.length) || !(c != null && c.length) || !(p != null && p.length))
1042
1097
  return;
1043
- const a = Dt(s) ? { ...s } : s;
1098
+ const a = It(l) ? { ...l } : l;
1044
1099
  n.push(
1045
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
1108
  ), u = () => {
1054
- i(), t();
1109
+ r(), t();
1055
1110
  };
1056
- return Me(t), u;
1111
+ return Ae(t), u;
1057
1112
  }
1058
- function Ot() {
1059
- const e = X(!1), n = J();
1060
- return n && Ee(() => {
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 Te(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, l;
1071
- const i = D(() => Pe(e));
1123
+ const qt = 500, Kt = 10;
1124
+ function Vt(e, n, t) {
1125
+ var s, i;
1126
+ const r = D(() => De(e));
1072
1127
  let u, o, c, p = !1;
1073
- function s() {
1128
+ function l() {
1074
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, o, p];
1079
- if (s(), !(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, N = Math.sqrt(L * L + U * U);
1083
- t.onMouseUp(f.timeStamp - _, N, 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 || (s(), (g = t == null ? void 0 : t.modifiers) != null && g.prevent && f.preventDefault(), (b = t == null ? void 0 : t.modifiers) != null && b.stop && f.stopPropagation(), o = {
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
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 || !o || (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 - o.x, w = f.y - o.y;
1103
- Math.sqrt(C * C + w * w) >= ((_ = t == null ? void 0 : t.distanceThreshold) != null ? _ : Ft) && s();
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: (l = t == null ? void 0 : t.modifiers) == null ? void 0 : l.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 = Ne
1119
- } = n, l = Te(() => r && "permissions" in r), i = X(), u = typeof e == "string" ? { name: e } : e, o = X(), c = () => {
1120
- var s, a;
1121
- o.value = (a = (s = i.value) == null ? void 0 : s.state) != null ? a : "prompt";
1173
+ navigator: s = Te
1174
+ } = n, i = Le(() => s && "permissions" in s), r = X(), u = typeof e == "string" ? { name: e } : e, o = X(), c = () => {
1175
+ var l, a;
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 (l.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(u);
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
1194
  state: o,
1140
- isSupported: l,
1195
+ isSupported: i,
1141
1196
  query: p
1142
1197
  } : o;
1143
1198
  }
1144
- function Wt(e = {}) {
1199
+ function Xt(e = {}) {
1145
1200
  const {
1146
- navigator: n = Ne,
1201
+ navigator: n = Te,
1147
1202
  read: t = !1,
1148
- source: r,
1149
- copiedDuring: l = 1500,
1150
- legacy: i = !1
1151
- } = e, u = Te(() => n && "clipboard" in n), o = be("clipboard-read"), c = be("clipboard-write"), p = D(() => u.value || i), s = X(""), a = X(!1), d = Bt(() => a.value = !1, l, { immediate: !1 });
1152
- async function y() {
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() {
1153
1208
  let m = !(u.value && f(o.value));
1154
1209
  if (!m)
1155
1210
  try {
1156
- s.value = await n.clipboard.readText();
1211
+ l.value = await n.clipboard.readText();
1157
1212
  } catch {
1158
1213
  m = !0;
1159
1214
  }
1160
- m && (s.value = x());
1215
+ m && (l.value = x());
1161
1216
  }
1162
- p.value && t && Y(["copy", "cut"], y, { passive: !0 });
1163
- async function h(m = q(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 = !(u.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), s.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";
1185
1240
  }
1186
1241
  return {
1187
1242
  isSupported: p,
1188
- text: s,
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 qt = {
1248
+ const Ht = Xt();
1249
+ let oe;
1250
+ const Yt = {
1196
1251
  mounted(e, n, t) {
1197
1252
  var u, o;
1198
- const r = ue(t.ctx), l = ((o = (u = r == null ? void 0 : r.locale) == null ? void 0 : u.locale) == null ? void 0 : o.slice(0, 2)) || "en", i = {
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[l]);
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 = e.tagName === "INPUT" ? e : e.querySelector("input");
1216
- if (!r)
1270
+ const s = e.tagName === "INPUT" ? e : e.querySelector("input");
1271
+ if (!s)
1217
1272
  return;
1218
- const l = n.value, i = {
1273
+ const i = n.value, r = {
1219
1274
  letterNumber: /^\w*$/,
1220
1275
  // 字母和数字
1221
1276
  price: /^(\d*|(\d+\.\d{0,2}))$/,
@@ -1227,7 +1282,7 @@ const qt = {
1227
1282
  verify: /^\d{0,6}$/,
1228
1283
  idCard: /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/
1229
1284
  //身份证号(15位、18位数字),最后一位是校验位,可能为数字或字符X
1230
- }, u = l instanceof RegExp ? l : n.arg && i[n.arg] ? i[n.arg] : null;
1285
+ }, u = i instanceof RegExp ? i : n.arg && r[n.arg] ? r[n.arg] : null;
1231
1286
  e._handleInput = (o) => {
1232
1287
  if (o.isTrusted && !(!o.isComposing && o.inputType === "insertCompositionText" && o.data)) {
1233
1288
  const c = u == null ? void 0 : u.test(o.target.value);
@@ -1248,9 +1303,9 @@ const qt = {
1248
1303
  case "insertFromPaste":
1249
1304
  //粘贴
1250
1305
  case "insertFromDrop":
1251
- const s = o.dataTransfer || o.clipboardData || null;
1252
- if (s) {
1253
- const a = s.getData("text") || "";
1306
+ const l = o.dataTransfer || o.clipboardData || null;
1307
+ if (l) {
1308
+ const a = l.getData("text") || "";
1254
1309
  o.target.selectionStart = e._start + a.length, o.target.selectionEnd = e._start + a.length;
1255
1310
  }
1256
1311
  break;
@@ -1270,79 +1325,79 @@ const qt = {
1270
1325
  e._input = c ? o.target.value : "", e._start = o.target.selectionStart, e._end = o.target.selectionEnd;
1271
1326
  }, e._handleDrop = (o) => {
1272
1327
  o.stopPropagation();
1273
- }, r.addEventListener("input", e._handleInput), r.addEventListener("keydown", e._handleKeydown), r.addEventListener("drop", e._handleDrop);
1328
+ }, s.addEventListener("input", e._handleInput), s.addEventListener("keydown", e._handleKeydown), s.addEventListener("drop", e._handleDrop);
1274
1329
  },
1275
1330
  unmounted(e) {
1276
1331
  const n = e.tagName === "INPUT" ? e : e.querySelector("input");
1277
1332
  n && (n.removeEventListener("input", e._handleInput), n.removeEventListener("keydown", e._handleKeydown), n.removeEventListener("drop", e._handleDrop));
1278
1333
  }
1279
1334
  };
1280
- function _e(e, n, t) {
1281
- const r = n.value;
1282
- if (r) {
1283
- const l = r / 2;
1284
- e.style.marginLeft = `-${l}px`, e.style.marginRight = `-${l}px`;
1285
- const i = t.children;
1286
- i != null && i.length && i[0].children.forEach((u) => {
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) => {
1287
1342
  if (u.component) {
1288
1343
  const o = u.el;
1289
- o != null && o.style && (o.style.paddingLeft = l + "px", o.style.paddingRight = l + "px");
1344
+ o != null && o.style && (o.style.paddingLeft = i + "px", o.style.paddingRight = i + "px");
1290
1345
  } else Array.isArray(u.children) && u.children.forEach((o) => {
1291
1346
  const c = o.el;
1292
- c != null && c.style && (c.style.paddingLeft = l + "px", c.style.paddingRight = l + "px");
1347
+ c != null && c.style && (c.style.paddingLeft = i + "px", c.style.paddingRight = i + "px");
1293
1348
  });
1294
1349
  });
1295
1350
  }
1296
1351
  }
1297
- const Kt = {
1352
+ const Gt = {
1298
1353
  beforeMount(e) {
1299
1354
  e.classList.add("ant-row"), e.style.display = "flex", e.style.flexWrap = "wrap", e.style.flexDirection = "row", e.style.minWidth = 0;
1300
1355
  },
1301
1356
  mounted(e, n, t) {
1302
- _e(e, n, t);
1357
+ be(e, n, t);
1303
1358
  },
1304
- updated(e, n, t, r) {
1305
- _e(e, n, t);
1359
+ updated(e, n, t, s) {
1360
+ be(e, n, t);
1306
1361
  }
1307
- }, Xt = {
1362
+ }, Qt = {
1308
1363
  beforeMount(e, n) {
1309
1364
  e.classList.add("ant-col", `ant-col-${n.value}`);
1310
1365
  const t = n.value / 24 * 100;
1311
1366
  e.style.position = "relative", e.style.flex = `0 0 ${t}%`, e.style.maxWidth = `${t}%`;
1312
1367
  }
1313
- }, Ht = {
1368
+ }, Jt = {
1314
1369
  mounted(e, n, t) {
1315
- const { value: r } = n, {
1316
- content: l = "",
1317
- placement: i = "top",
1370
+ const { value: s } = n, {
1371
+ content: i = "",
1372
+ placement: r = "top",
1318
1373
  enabled: u = !0,
1319
1374
  padding: o = 8,
1320
1375
  // 默认左右间距8px,用来判断文本的测量宽度是否超出元素宽度
1321
1376
  ...c
1322
- } = typeof r == "string" ? { content: r } : r;
1377
+ } = typeof s == "string" ? { content: s } : s;
1323
1378
  if (e.tooltipDisabled = !1, !u)
1324
1379
  e.tooltipDisabled = !0;
1325
1380
  else if (n.modifiers.exceed) {
1326
- const y = e.clientWidth, h = xe(l);
1327
- e.tooltipDisabled = y ? h < y - o * 2 : !0;
1381
+ const h = e.clientWidth, v = xe(i);
1382
+ e.tooltipDisabled = h ? v < h - o * 2 : !0;
1328
1383
  }
1329
1384
  const p = S({
1330
1385
  top: 0,
1331
1386
  left: 0,
1332
1387
  bottom: 0,
1333
1388
  right: 0
1334
- }), s = S({
1389
+ }), l = S({
1335
1390
  getBoundingClientRect: () => p.value
1336
- }), a = W(rt, {
1391
+ }), a = z(dt, {
1337
1392
  visible: !1,
1338
- content: l,
1339
- placement: i,
1393
+ content: i,
1394
+ placement: r,
1340
1395
  virtualTriggering: !0,
1341
- virtualRef: s.value,
1396
+ virtualRef: l.value,
1342
1397
  popperClass: "vtooltip",
1343
1398
  ...c
1344
1399
  }), d = document.createDocumentFragment();
1345
- 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", () => {
1346
1401
  p.value = e.getBoundingClientRect(), a.component && !e.tooltipDisabled && (Object.assign(a.component.props, { visible: !0 }), a.component.update());
1347
1402
  }), e.addEventListener("mouseleave", () => {
1348
1403
  a.component && (Object.assign(a.component.props, { visible: !1 }), a.component.update());
@@ -1351,37 +1406,37 @@ const Kt = {
1351
1406
  updated(e, n) {
1352
1407
  if (e.tooltipVm) {
1353
1408
  const { value: t } = n, {
1354
- content: r = "",
1355
- placement: l = "top",
1356
- enabled: i = !0,
1409
+ content: s = "",
1410
+ placement: i = "top",
1411
+ enabled: r = !0,
1357
1412
  padding: u = 8,
1358
1413
  // 默认左右间距8px,用来判断文本的测量宽度是否超出元素宽度
1359
1414
  ...o
1360
1415
  } = typeof t == "string" ? { content: t } : t;
1361
- if (e.tooltipDisabled = !1, !i)
1416
+ if (e.tooltipDisabled = !1, !r)
1362
1417
  e.tooltipDisabled = !0;
1363
1418
  else if (n.modifiers.exceed) {
1364
- const p = e.clientWidth, s = xe(r);
1365
- e.tooltipDisabled = p ? s < p - u * 2 : !0;
1419
+ const p = e.clientWidth, l = xe(s);
1420
+ e.tooltipDisabled = p ? l < p - u * 2 : !0;
1366
1421
  }
1367
1422
  const c = e.tooltipVm;
1368
- c.component && (Object.assign(c.component.props, { content: r, placement: l, ...o }), c.component.update());
1423
+ c.component && (Object.assign(c.component.props, { content: s, placement: i, ...o }), c.component.update());
1369
1424
  }
1370
1425
  },
1371
1426
  unmounted(e) {
1372
- e.tooltipContainer && Z(null, e.tooltipContainer);
1427
+ e.tooltipContainer && G(null, e.tooltipContainer);
1373
1428
  }
1374
1429
  };
1375
1430
  function xe(e, n) {
1376
- const r = document.createElement("canvas").getContext("2d");
1377
- 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;
1378
1433
  }
1379
- const Yt = {
1434
+ const en = {
1380
1435
  beforeMount(e, n) {
1381
1436
  const { value: t } = n;
1382
- t && (Qe(t) || setTimeout(() => {
1383
- var l;
1384
- (l = e.parentNode) == null || l.removeChild(e);
1437
+ t && (ot(t) || setTimeout(() => {
1438
+ var i;
1439
+ (i = e.parentNode) == null || i.removeChild(e);
1385
1440
  }, 50));
1386
1441
  }
1387
1442
  };
@@ -1389,98 +1444,99 @@ function Ce(e, n = 4) {
1389
1444
  const t = new RegExp(`(.{${n}})`, "g");
1390
1445
  return e.replace(t, "$1 ").trim();
1391
1446
  }
1392
- const Zt = {
1447
+ const tn = {
1393
1448
  mounted(e, n) {
1394
- const { value: t } = n, { content: r = "", spaceNum: l = 4 } = typeof t == "object" ? t || {} : { content: t + "" }, i = r.replace(/\s+/g, "");
1395
- e.textContent = Ce(i, l) || "-";
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) || "-";
1396
1451
  },
1397
1452
  updated(e, n) {
1398
- const { value: t } = n, { content: r = "", spaceNum: l = 4 } = typeof t == "object" ? t || {} : { content: t + "" }, i = r.replace(/\s+/g, "");
1399
- e.textContent = Ce(i, l) || "-";
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) || "-";
1400
1455
  }
1401
- }, Gt = {
1456
+ }, nn = {
1402
1457
  mounted(e, n) {
1403
- typeof n.value == "function" && Ut(e, n.value, { modifiers: n.modifiers });
1458
+ typeof n.value == "function" && Vt(e, n.value, { modifiers: n.modifiers });
1404
1459
  }
1405
1460
  }, Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1406
1461
  __proto__: null,
1407
- col: Xt,
1408
- copy: qt,
1409
- inputlimit: Vt,
1410
- longpress: Gt,
1411
- permission: Yt,
1412
- row: Kt,
1413
- space: Zt,
1414
- 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
1415
1470
  }, Symbol.toStringTag, { value: "Module" }));
1416
- function Qt(e) {
1417
- Object.keys(ye).forEach((n) => {
1418
- e.component(n, ye[n]);
1471
+ function on(e) {
1472
+ Object.keys(he).forEach((n) => {
1473
+ e.component(n, he[n]);
1419
1474
  }), Object.keys(Se).forEach((n) => {
1420
1475
  e.directive(n, Se[n]);
1421
1476
  });
1422
1477
  }
1423
- const ln = { install: Qt };
1478
+ const fn = { install: on };
1424
1479
  export {
1425
- ft as AInputNumberEx,
1426
- mt as ARangePickerEx,
1427
- gt as ATableEx,
1428
- dn as UserCenterKey,
1429
- Tt as WlInputNumberRange,
1430
- Mt as WlIpInput,
1431
- St as WlNumberKeyboard,
1432
- kt as WlRateSlider,
1433
- ht as WlSplitter,
1434
- pn as buildTree,
1435
- Xt as col,
1436
- qt as copy,
1437
- ln as default,
1438
- fn as exportFile,
1439
- mn as forEachTree,
1440
- vn as getButtonPermissions,
1441
- gn as getLocale,
1442
- hn as getMenuInfo,
1443
- yn as getToken,
1444
- bn as getUserCenterParams,
1445
- _n as getUserCenterParamsByUrl,
1446
- xn as getUserInfo,
1447
- Qe as hasPermission,
1448
- Vt as inputlimit,
1449
- Cn as is,
1450
- Sn as isArray,
1451
- kn as isAsyncFunction,
1452
- wn as isBoolean,
1453
- En as isClient,
1454
- $n as isDate,
1455
- Mn as isDef,
1456
- Nn as isElement,
1457
- Pn as isFunction,
1458
- Tn as isImageDom,
1459
- An 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,
1460
1516
  B as isNullOrUndef,
1461
- Dn as isNumber,
1462
- Ln as isObject,
1463
- Bn as isPromise,
1464
- Rn as isServer,
1465
- jn as isString,
1466
- On as isUndef,
1467
- In as isWindow,
1468
- Fn as logoutToUserCenter,
1469
- Gt as longpress,
1470
- Yt as permission,
1471
- Un as removeAll,
1472
- Wn as removeLocale,
1473
- zn as removeToken,
1474
- Kt as row,
1475
- qn as setLocale,
1476
- Vn as setMenuInfo,
1477
- Kn as setToken,
1478
- Xn as setUserCenterParams,
1479
- Hn as setUserInfo,
1480
- Zt as space,
1481
- Yn as toUserCenterConsole,
1482
- Ht as tooltip,
1483
- ue as useConfigProvider,
1484
- sn as useFindParent,
1485
- rn 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
1486
1542
  };