@witlink/components 1.0.25 → 1.0.27

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