@witlink/components 1.0.28 → 2.0.0

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