@morghulis/core 1.0.18 → 1.0.20

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.
@@ -256,23 +256,23 @@ function Nt(e = {}) {
256
256
  u.value && n && Tt(["copy", "cut"], g, { passive: !0 });
257
257
  async function p(T = Ae(o)) {
258
258
  if (u.value && T != null) {
259
- let A = !(a.value && E(i.value));
260
- if (!A)
259
+ let $ = !(a.value && E(i.value));
260
+ if (!$)
261
261
  try {
262
262
  await t.clipboard.writeText(T);
263
263
  } catch {
264
- A = !0;
264
+ $ = !0;
265
265
  }
266
- A && _(T), c.value = T, d.value = !0, h.start();
266
+ $ && _(T), c.value = T, d.value = !0, h.start();
267
267
  }
268
268
  }
269
269
  function _(T) {
270
- const A = document.createElement("textarea");
271
- A.value = T ?? "", A.style.position = "absolute", A.style.opacity = "0", document.body.appendChild(A), A.select(), document.execCommand("copy"), A.remove();
270
+ const $ = document.createElement("textarea");
271
+ $.value = T ?? "", $.style.position = "absolute", $.style.opacity = "0", document.body.appendChild($), $.select(), document.execCommand("copy"), $.remove();
272
272
  }
273
273
  function b() {
274
- var T, A, C;
275
- return (C = (A = (T = document?.getSelection) == null ? void 0 : T.call(document)) == null ? void 0 : A.toString()) != null ? C : "";
274
+ var T, $, C;
275
+ return (C = ($ = (T = document?.getSelection) == null ? void 0 : T.call(document)) == null ? void 0 : $.toString()) != null ? C : "";
276
276
  }
277
277
  function E(T) {
278
278
  return T === "granted" || T === "prompt";
@@ -366,25 +366,25 @@ function hc(e, t = {}) {
366
366
  autoClose: i = !0,
367
367
  protocols: u = []
368
368
  } = t, c = x(null), d = he("CLOSED"), h = x(), g = rc(e);
369
- let p, _, b = !1, E = 0, T = [], A, C;
370
- const $ = () => {
369
+ let p, _, b = !1, E = 0, T = [], $, C;
370
+ const A = () => {
371
371
  if (T.length && h.value && d.value === "OPEN") {
372
372
  for (const B of T)
373
373
  h.value.send(B);
374
374
  T = [];
375
375
  }
376
376
  }, R = () => {
377
- A != null && (clearTimeout(A), A = void 0);
377
+ $ != null && (clearTimeout($), $ = void 0);
378
378
  }, S = () => {
379
379
  clearTimeout(C), C = void 0;
380
380
  }, N = (B = 1e3, z) => {
381
381
  R(), !(!Qe && !fl || !h.value) && (b = !0, S(), p?.(), h.value.close(B, z), h.value = void 0);
382
- }, U = (B, z = !0) => !h.value || d.value !== "OPEN" ? (z && T.push(B), !1) : ($(), h.value.send(B), !0), I = () => {
382
+ }, U = (B, z = !0) => !h.value || d.value !== "OPEN" ? (z && T.push(B), !1) : (A(), h.value.send(B), !0), I = () => {
383
383
  if (b || typeof g.value > "u")
384
384
  return;
385
385
  const B = new WebSocket(g.value, u);
386
386
  h.value = B, d.value = "CONNECTING", B.onopen = () => {
387
- d.value = "OPEN", E = 0, n?.(B), _?.(), $();
387
+ d.value = "OPEN", E = 0, n?.(B), _?.(), A();
388
388
  }, B.onclose = (z) => {
389
389
  if (d.value = "CLOSED", S(), p?.(), o?.(B, z), !b && t.autoReconnect && (h.value == null || B === h.value)) {
390
390
  const {
@@ -392,7 +392,7 @@ function hc(e, t = {}) {
392
392
  delay: ie = 1e3,
393
393
  onFailed: ne
394
394
  } = oo(t.autoReconnect);
395
- (typeof J == "function" ? J : () => typeof J == "number" && (J < 0 || E < J))(E) ? (E += 1, A = setTimeout(I, ie)) : ne?.();
395
+ (typeof J == "function" ? J : () => typeof J == "number" && (J < 0 || E < J))(E) ? (E += 1, $ = setTimeout(I, ie)) : ne?.();
396
396
  }
397
397
  }, B.onerror = (z) => {
398
398
  l?.(B, z);
@@ -1605,7 +1605,7 @@ const xr = (e) => {
1605
1605
  return;
1606
1606
  const T = Oe.from(
1607
1607
  "getAllResponseHeaders" in _ && _.getAllResponseHeaders()
1608
- ), A = {
1608
+ ), $ = {
1609
1609
  data: !a || a === "text" || a === "json" ? _.responseText : _.response,
1610
1610
  status: _.status,
1611
1611
  statusText: _.statusText,
@@ -1617,26 +1617,26 @@ const xr = (e) => {
1617
1617
  t(C), p();
1618
1618
  }, function(C) {
1619
1619
  n(C), p();
1620
- }, A), _ = null;
1620
+ }, $), _ = null;
1621
1621
  }
1622
1622
  "onloadend" in _ ? _.onloadend = b : _.onreadystatechange = function() {
1623
1623
  !_ || _.readyState !== 4 || _.status === 0 && !(_.responseURL && _.responseURL.indexOf("file:") === 0) || setTimeout(b);
1624
1624
  }, _.onabort = function() {
1625
1625
  _ && (n(new ee("Request aborted", ee.ECONNABORTED, e, _)), _ = null);
1626
1626
  }, _.onerror = function(T) {
1627
- const A = T && T.message ? T.message : "Network Error", C = new ee(A, ee.ERR_NETWORK, e, _);
1627
+ const $ = T && T.message ? T.message : "Network Error", C = new ee($, ee.ERR_NETWORK, e, _);
1628
1628
  C.event = T || null, n(C), _ = null;
1629
1629
  }, _.ontimeout = function() {
1630
1630
  let T = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1631
- const A = o.transitional || yr;
1631
+ const $ = o.transitional || yr;
1632
1632
  o.timeoutErrorMessage && (T = o.timeoutErrorMessage), n(new ee(
1633
1633
  T,
1634
- A.clarifyTimeoutError ? ee.ETIMEDOUT : ee.ECONNABORTED,
1634
+ $.clarifyTimeoutError ? ee.ETIMEDOUT : ee.ECONNABORTED,
1635
1635
  e,
1636
1636
  _
1637
1637
  )), _ = null;
1638
- }, l === void 0 && r.setContentType(null), "setRequestHeader" in _ && P.forEach(r.toJSON(), function(T, A) {
1639
- _.setRequestHeader(A, T);
1638
+ }, l === void 0 && r.setContentType(null), "setRequestHeader" in _ && P.forEach(r.toJSON(), function(T, $) {
1639
+ _.setRequestHeader($, T);
1640
1640
  }), P.isUndefined(o.withCredentials) || (_.withCredentials = !!o.withCredentials), a && a !== "json" && (_.responseType = o.responseType), i && ([d, g] = An(i, !0), _.addEventListener("progress", d)), s && _.upload && ([c, h] = An(s), _.upload.addEventListener("progress", c), _.upload.addEventListener("loadend", h)), (o.cancelToken || o.signal) && (u = (T) => {
1641
1641
  _ && (n(!T || T.type ? new Ut(null, e, _) : T), _.abort(), _ = null);
1642
1642
  }, o.cancelToken && o.cancelToken.subscribe(u), o.signal && (o.signal.aborted ? u() : o.signal.addEventListener("abort", u)));
@@ -1788,9 +1788,9 @@ const xr = (e) => {
1788
1788
  method: b,
1789
1789
  data: E,
1790
1790
  signal: T,
1791
- cancelToken: A,
1791
+ cancelToken: $,
1792
1792
  timeout: C,
1793
- onDownloadProgress: $,
1793
+ onDownloadProgress: A,
1794
1794
  onUploadProgress: R,
1795
1795
  responseType: S,
1796
1796
  headers: N,
@@ -1798,7 +1798,7 @@ const xr = (e) => {
1798
1798
  fetchOptions: I
1799
1799
  } = xr(p), F = t || fetch;
1800
1800
  S = S ? (S + "").toLowerCase() : "text";
1801
- let B = Ud([T, A && A.toAbortSignal()], C), z = null;
1801
+ let B = Ud([T, $ && $.toAbortSignal()], C), z = null;
1802
1802
  const J = B && B.unsubscribe && (() => {
1803
1803
  B.unsubscribe();
1804
1804
  });
@@ -1831,14 +1831,14 @@ const xr = (e) => {
1831
1831
  z = r && new n(_, G);
1832
1832
  let ae = await (r ? F(z, I) : F(_, G));
1833
1833
  const le = c && (S === "stream" || S === "response");
1834
- if (c && ($ || le && J)) {
1834
+ if (c && (A || le && J)) {
1835
1835
  const pe = {};
1836
1836
  ["status", "statusText", "headers"].forEach((kt) => {
1837
1837
  pe[kt] = ae[kt];
1838
1838
  });
1839
- const me = P.toFiniteNumber(ae.headers.get("content-length")), [He, it] = $ && kl(
1839
+ const me = P.toFiniteNumber(ae.headers.get("content-length")), [He, it] = A && kl(
1840
1840
  me,
1841
- An(El($), !0)
1841
+ An(El(A), !0)
1842
1842
  ) || [];
1843
1843
  ae = new o(
1844
1844
  Cl(ae.body, Ol, He, () => {
@@ -2352,9 +2352,9 @@ function Zd() {
2352
2352
  }, n.status = null, n.set = function(p) {
2353
2353
  var _ = n.isStarted();
2354
2354
  p = l(p, o.minimum, 1), n.status = p === 1 ? null : p;
2355
- var b = n.render(!_), E = b.querySelector(o.barSelector), T = o.speed, A = o.easing;
2355
+ var b = n.render(!_), E = b.querySelector(o.barSelector), T = o.speed, $ = o.easing;
2356
2356
  return b.offsetWidth, s(function(C) {
2357
- o.positionUsing === "" && (o.positionUsing = n.getPositioningCSS()), i(E, a(p, T, A)), p === 1 ? (i(b, {
2357
+ o.positionUsing === "" && (o.positionUsing = n.getPositioningCSS()), i(E, a(p, T, $)), p === 1 ? (i(b, {
2358
2358
  transition: "none",
2359
2359
  opacity: 1
2360
2360
  }), b.offsetWidth, setTimeout(function() {
@@ -2395,11 +2395,11 @@ function Zd() {
2395
2395
  c(document.documentElement, "nprogress-busy");
2396
2396
  var _ = document.createElement("div");
2397
2397
  _.id = "nprogress", _.innerHTML = o.template;
2398
- var b = _.querySelector(o.barSelector), E = p ? "-100" : r(n.status || 0), T = document.querySelector(o.parent), A;
2398
+ var b = _.querySelector(o.barSelector), E = p ? "-100" : r(n.status || 0), T = document.querySelector(o.parent), $;
2399
2399
  return i(b, {
2400
2400
  transition: "all 0 linear",
2401
2401
  transform: "translate3d(" + E + "%,0,0)"
2402
- }), o.showSpinner || (A = _.querySelector(o.spinnerSelector), A && g(A)), T != document.body && c(T, "nprogress-custom-parent"), T.appendChild(_), _;
2402
+ }), o.showSpinner || ($ = _.querySelector(o.spinnerSelector), $ && g($)), T != document.body && c(T, "nprogress-custom-parent"), T.appendChild(_), _;
2403
2403
  }, n.remove = function() {
2404
2404
  d(document.documentElement, "nprogress-busy"), d(document.querySelector(o.parent), "nprogress-custom-parent");
2405
2405
  var p = document.getElementById("nprogress");
@@ -2432,30 +2432,30 @@ function Zd() {
2432
2432
  })(), i = /* @__PURE__ */ (function() {
2433
2433
  var p = ["Webkit", "O", "Moz", "ms"], _ = {};
2434
2434
  function b(C) {
2435
- return C.replace(/^-ms-/, "ms-").replace(/-([\da-z])/gi, function($, R) {
2435
+ return C.replace(/^-ms-/, "ms-").replace(/-([\da-z])/gi, function(A, R) {
2436
2436
  return R.toUpperCase();
2437
2437
  });
2438
2438
  }
2439
2439
  function E(C) {
2440
- var $ = document.body.style;
2441
- if (C in $) return C;
2440
+ var A = document.body.style;
2441
+ if (C in A) return C;
2442
2442
  for (var R = p.length, S = C.charAt(0).toUpperCase() + C.slice(1), N; R--; )
2443
- if (N = p[R] + S, N in $) return N;
2443
+ if (N = p[R] + S, N in A) return N;
2444
2444
  return C;
2445
2445
  }
2446
2446
  function T(C) {
2447
2447
  return C = b(C), _[C] || (_[C] = E(C));
2448
2448
  }
2449
- function A(C, $, R) {
2450
- $ = T($), C.style[$] = R;
2449
+ function $(C, A, R) {
2450
+ A = T(A), C.style[A] = R;
2451
2451
  }
2452
- return function(C, $) {
2452
+ return function(C, A) {
2453
2453
  var R = arguments, S, N;
2454
2454
  if (R.length == 2)
2455
- for (S in $)
2456
- N = $[S], N !== void 0 && $.hasOwnProperty(S) && A(C, S, N);
2455
+ for (S in A)
2456
+ N = A[S], N !== void 0 && A.hasOwnProperty(S) && $(C, S, N);
2457
2457
  else
2458
- A(C, R[1], R[2]);
2458
+ $(C, R[1], R[2]);
2459
2459
  };
2460
2460
  })();
2461
2461
  function u(p, _) {
@@ -2968,11 +2968,11 @@ function Ne(e) {
2968
2968
  const p = u.map((_) => h.map((b) => {
2969
2969
  const E = d[b] || {}, T = E.domain;
2970
2970
  if (ve.DOMAINS.multiple.includes(T)) {
2971
- const A = `${b}_set`, C = _[A], { label: $ } = E.refer;
2972
- return C.map((R) => R[$]).join(";");
2971
+ const $ = `${b}_set`, C = _[$], { label: A } = E.refer;
2972
+ return C.map((R) => R[A]).join(";");
2973
2973
  } else if (ve.DOMAINS.referred.includes(T)) {
2974
- const A = b.replace("_id", ""), C = _[A], { label: $ } = E.refer;
2975
- return C ? C[$] : null;
2974
+ const $ = b.replace("_id", ""), C = _[$], { label: A } = E.refer;
2975
+ return C ? C[A] : null;
2976
2976
  } else return T === "JSONField" ? JSON.stringify(_[b]) : _[b];
2977
2977
  }));
2978
2978
  return [g, ...p];
@@ -3012,14 +3012,14 @@ function Ne(e) {
3012
3012
  const {
3013
3013
  tool: E,
3014
3014
  column_width: T,
3015
- align: A
3015
+ align: $
3016
3016
  } = b || Pl[h], C = {
3017
3017
  id: qn(),
3018
3018
  prop: c,
3019
3019
  label: d,
3020
3020
  domain: h,
3021
3021
  tool: E,
3022
- align: A,
3022
+ align: $,
3023
3023
  column_width: T,
3024
3024
  not_null: _,
3025
3025
  allow_edit: !0,
@@ -3182,8 +3182,8 @@ function cp(e) {
3182
3182
  }), r = O(() => l.value.length), a = O(() => l.value.length), s = x(0), i = (d) => {
3183
3183
  const h = [], g = {};
3184
3184
  d.forEach((E, T) => {
3185
- const A = E.id, C = n.value[A];
3186
- C ? g[A] = { ...C, ...E } : h.push(E);
3185
+ const $ = E.id, C = n.value[$];
3186
+ C ? g[$] = { ...C, ...E } : h.push(E);
3187
3187
  });
3188
3188
  const p = s.value + 1;
3189
3189
  h.map((E, T) => c(E, T + p)), s.value += h.length;
@@ -3383,7 +3383,7 @@ function Fr(e, t, n) {
3383
3383
  payload: b,
3384
3384
  loading: E
3385
3385
  } = _e(a, !0), { setEnable: T } = Ne(o);
3386
- function A() {
3386
+ function $() {
3387
3387
  _.meta_view().then((S) => {
3388
3388
  S.$$validator = e.value.validator, e.value.beforeInit && e.value.beforeInit(S), o.value = S, T(!e.value.disabled), C();
3389
3389
  }).catch((S) => r.value = S);
@@ -3404,7 +3404,7 @@ function Fr(e, t, n) {
3404
3404
  code: a.value.code
3405
3405
  }), (S, N) => {
3406
3406
  const U = ye(S, ["db", "entity"]), I = ye(N, ["db", "entity"]);
3407
- N?.entity != null && !Ie(U, I) && (u.value.includes = {}, u.value.excludes = {}), A();
3407
+ N?.entity != null && !Ie(U, I) && (u.value.includes = {}, u.value.excludes = {}), $();
3408
3408
  }, { deep: !0, immediate: !0 }), X(() => ({
3409
3409
  conditions: p.value,
3410
3410
  orders: t.value.orders,
@@ -3413,7 +3413,7 @@ function Fr(e, t, n) {
3413
3413
  }), (S, N) => {
3414
3414
  Ie(S, N) || (!Ie(S.conditions, N.conditions) && S.page != 1 ? t.value.page = 1 : C());
3415
3415
  }, { deep: !0 });
3416
- function $(S) {
3416
+ function A(S) {
3417
3417
  const N = S?.length ? [new Pe({ id__in: S })] : p.value;
3418
3418
  _.delete_many(N);
3419
3419
  }
@@ -3434,9 +3434,9 @@ function Fr(e, t, n) {
3434
3434
  conditions: p,
3435
3435
  view: o,
3436
3436
  error: r,
3437
- init: A,
3437
+ init: $,
3438
3438
  reload: C,
3439
- delete_many: $,
3439
+ delete_many: A,
3440
3440
  save_many: R,
3441
3441
  switching: i
3442
3442
  };
@@ -3541,7 +3541,7 @@ function dn() {
3541
3541
  async function a(u) {
3542
3542
  const { utils: c, read: d } = await import("xlsx"), h = d(u, { type: "binary", cellDates: !0 }), g = {};
3543
3543
  return h.SheetNames.forEach((p) => {
3544
- const _ = h.Sheets[p], b = r(_), E = b.map((A) => A.key), T = c.sheet_to_json(_, { header: E, raw: !0 });
3544
+ const _ = h.Sheets[p], b = r(_), E = b.map(($) => $.key), T = c.sheet_to_json(_, { header: E, raw: !0 });
3545
3545
  g[p] = { columns: b, data: T };
3546
3546
  }), g;
3547
3547
  }
@@ -3779,16 +3779,16 @@ var vp = Object.create, Br = Object.defineProperty, _p = Object.getOwnPropertyDe
3779
3779
  function c(g, p) {
3780
3780
  const _ = Object.keys(g), b = new Array(_.length);
3781
3781
  for (let E = 0; E < _.length; E++) {
3782
- const T = _[E], A = g[T];
3783
- if (typeof A != "object" || A === null)
3784
- b[T] = A;
3785
- else if (A.constructor !== Object && (u = i.get(A.constructor)))
3786
- b[T] = u(A, p);
3787
- else if (ArrayBuffer.isView(A))
3788
- b[T] = n(A);
3782
+ const T = _[E], $ = g[T];
3783
+ if (typeof $ != "object" || $ === null)
3784
+ b[T] = $;
3785
+ else if ($.constructor !== Object && (u = i.get($.constructor)))
3786
+ b[T] = u($, p);
3787
+ else if (ArrayBuffer.isView($))
3788
+ b[T] = n($);
3789
3789
  else {
3790
- const C = a.indexOf(A);
3791
- C !== -1 ? b[T] = s[C] : b[T] = p(A);
3790
+ const C = a.indexOf($);
3791
+ C !== -1 ? b[T] = s[C] : b[T] = p($);
3792
3792
  }
3793
3793
  }
3794
3794
  return b;
@@ -5380,11 +5380,11 @@ var Up = Object.create, jr = Object.defineProperty, Bp = Object.getOwnPropertyDe
5380
5380
  "¤": "tien te"
5381
5381
  }
5382
5382
  }, i = [";", "?", ":", "@", "&", "=", "+", "$", ",", "/"].join(""), u = [";", "?", ":", "@", "&", "=", "+", "$", ","].join(""), c = [".", "!", "~", "*", "'", "(", ")"].join(""), d = function(b, E) {
5383
- var T = "-", A = "", C = "", $ = !0, R = {}, S, N, U, I, F, B, z, J, ie, ne, G, ae, le, Ue, pe = "";
5383
+ var T = "-", $ = "", C = "", A = !0, R = {}, S, N, U, I, F, B, z, J, ie, ne, G, ae, le, Ue, pe = "";
5384
5384
  if (typeof b != "string")
5385
5385
  return "";
5386
5386
  if (typeof E == "string" && (T = E), z = s.en, J = a.en, typeof E == "object") {
5387
- S = E.maintainCase || !1, R = E.custom && typeof E.custom == "object" ? E.custom : R, U = +E.truncate > 1 && E.truncate || !1, I = E.uric || !1, F = E.uricNoSlash || !1, B = E.mark || !1, $ = !(E.symbols === !1 || E.lang === !1), T = E.separator || T, I && (pe += i), F && (pe += u), B && (pe += c), z = E.lang && s[E.lang] && $ ? s[E.lang] : $ ? s.en : {}, J = E.lang && a[E.lang] ? a[E.lang] : E.lang === !1 || E.lang === !0 ? {} : a.en, E.titleCase && typeof E.titleCase.length == "number" && Array.prototype.toString.call(E.titleCase) ? (E.titleCase.forEach(function(me) {
5387
+ S = E.maintainCase || !1, R = E.custom && typeof E.custom == "object" ? E.custom : R, U = +E.truncate > 1 && E.truncate || !1, I = E.uric || !1, F = E.uricNoSlash || !1, B = E.mark || !1, A = !(E.symbols === !1 || E.lang === !1), T = E.separator || T, I && (pe += i), F && (pe += u), B && (pe += c), z = E.lang && s[E.lang] && A ? s[E.lang] : A ? s.en : {}, J = E.lang && a[E.lang] ? a[E.lang] : E.lang === !1 || E.lang === !0 ? {} : a.en, E.titleCase && typeof E.titleCase.length == "number" && Array.prototype.toString.call(E.titleCase) ? (E.titleCase.forEach(function(me) {
5388
5388
  R[me + ""] = me + "";
5389
5389
  }), N = !0) : N = !!E.titleCase, E.custom && typeof E.custom.length == "number" && Array.prototype.toString.call(E.custom) && E.custom.forEach(function(me) {
5390
5390
  R[me + ""] = me + "";
@@ -5396,11 +5396,11 @@ var Up = Object.create, jr = Object.defineProperty, Bp = Object.getOwnPropertyDe
5396
5396
  pe += G;
5397
5397
  }
5398
5398
  for (pe += T, pe = g(pe), b = b.replace(/(^\s+|\s+$)/g, ""), le = !1, Ue = !1, ne = 0, ae = b.length; ne < ae; ne++)
5399
- G = b[ne], p(G, R) ? le = !1 : J[G] ? (G = le && J[G].match(/[A-Za-z0-9]/) ? " " + J[G] : J[G], le = !1) : G in o ? (ne + 1 < ae && l.indexOf(b[ne + 1]) >= 0 ? (C += G, G = "") : Ue === !0 ? (G = r[C] + o[G], C = "") : G = le && o[G].match(/[A-Za-z0-9]/) ? " " + o[G] : o[G], le = !1, Ue = !1) : G in r ? (C += G, G = "", ne === ae - 1 && (G = r[C]), Ue = !0) : /* process symbol chars */ z[G] && !(I && i.indexOf(G) !== -1) && !(F && u.indexOf(G) !== -1) ? (G = le || A.substr(-1).match(/[A-Za-z0-9]/) ? T + z[G] : z[G], G += b[ne + 1] !== void 0 && b[ne + 1].match(/[A-Za-z0-9]/) ? T : "", le = !0) : (Ue === !0 ? (G = r[C] + G, C = "", Ue = !1) : le && (/[A-Za-z0-9]/.test(G) || A.substr(-1).match(/A-Za-z0-9]/)) && (G = " " + G), le = !1), A += G.replace(new RegExp("[^\\w\\s" + pe + "_-]", "g"), T);
5400
- return N && (A = A.replace(/(\w)(\S*)/g, function(me, He, it) {
5399
+ G = b[ne], p(G, R) ? le = !1 : J[G] ? (G = le && J[G].match(/[A-Za-z0-9]/) ? " " + J[G] : J[G], le = !1) : G in o ? (ne + 1 < ae && l.indexOf(b[ne + 1]) >= 0 ? (C += G, G = "") : Ue === !0 ? (G = r[C] + o[G], C = "") : G = le && o[G].match(/[A-Za-z0-9]/) ? " " + o[G] : o[G], le = !1, Ue = !1) : G in r ? (C += G, G = "", ne === ae - 1 && (G = r[C]), Ue = !0) : /* process symbol chars */ z[G] && !(I && i.indexOf(G) !== -1) && !(F && u.indexOf(G) !== -1) ? (G = le || $.substr(-1).match(/[A-Za-z0-9]/) ? T + z[G] : z[G], G += b[ne + 1] !== void 0 && b[ne + 1].match(/[A-Za-z0-9]/) ? T : "", le = !0) : (Ue === !0 ? (G = r[C] + G, C = "", Ue = !1) : le && (/[A-Za-z0-9]/.test(G) || $.substr(-1).match(/A-Za-z0-9]/)) && (G = " " + G), le = !1), $ += G.replace(new RegExp("[^\\w\\s" + pe + "_-]", "g"), T);
5400
+ return N && ($ = $.replace(/(\w)(\S*)/g, function(me, He, it) {
5401
5401
  var kt = He.toUpperCase() + (it !== null ? it : "");
5402
5402
  return Object.keys(R).indexOf(kt.toLowerCase()) < 0 ? kt : kt.toLowerCase();
5403
- })), A = A.replace(/\s+/g, T).replace(new RegExp("\\" + T + "+", "g"), T).replace(new RegExp("(^\\" + T + "+|\\" + T + "+$)", "g"), ""), U && A.length > U && (ie = A.charAt(U) === T, A = A.slice(0, U), ie || (A = A.slice(0, A.lastIndexOf(T)))), !S && !N && (A = A.toLowerCase()), A;
5403
+ })), $ = $.replace(/\s+/g, T).replace(new RegExp("\\" + T + "+", "g"), T).replace(new RegExp("(^\\" + T + "+|\\" + T + "+$)", "g"), ""), U && $.length > U && (ie = $.charAt(U) === T, $ = $.slice(0, U), ie || ($ = $.slice(0, $.lastIndexOf(T)))), !S && !N && ($ = $.toLowerCase()), $;
5404
5404
  }, h = function(b) {
5405
5405
  return function(T) {
5406
5406
  return d(T, b);
@@ -7820,7 +7820,7 @@ function Do(e, t, n = {}, o, l, r) {
7820
7820
  throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
7821
7821
  } : $s
7822
7822
  );
7823
- function A() {
7823
+ function $() {
7824
7824
  a.stop(), d = [], h = [], o._s.delete(e);
7825
7825
  }
7826
7826
  const C = (I, F = "") => {
@@ -7851,7 +7851,7 @@ function Do(e, t, n = {}, o, l, r) {
7851
7851
  return ae instanceof Promise ? ae.then((le) => (Et(J, le), le)).catch((le) => (Et(ie, le), Promise.reject(le))) : (Et(J, ae), ae);
7852
7852
  };
7853
7853
  return B[za] = !0, B[po] = F, B;
7854
- }, $ = /* @__PURE__ */ dt({
7854
+ }, A = /* @__PURE__ */ dt({
7855
7855
  actions: {},
7856
7856
  getters: {},
7857
7857
  state: [],
@@ -7873,10 +7873,10 @@ function Do(e, t, n = {}, o, l, r) {
7873
7873
  }, $e({}, i, F)));
7874
7874
  return B;
7875
7875
  },
7876
- $dispose: A
7876
+ $dispose: $
7877
7877
  }, S = Gt(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Xe ? $e(
7878
7878
  {
7879
- _hmrPayload: $,
7879
+ _hmrPayload: A,
7880
7880
  _customProperties: dt(/* @__PURE__ */ new Set())
7881
7881
  // devtools custom properties
7882
7882
  },
@@ -7889,11 +7889,11 @@ function Do(e, t, n = {}, o, l, r) {
7889
7889
  for (const I in U) {
7890
7890
  const F = U[I];
7891
7891
  if (ue(F) && !ja(F) || Io(F))
7892
- process.env.NODE_ENV !== "production" && l ? _.value[I] = _n(U, I) : r || (p && zm(F) && (ue(F) ? F.value = p[I] : Ao(F, p[I])), o.state.value[e][I] = F), process.env.NODE_ENV !== "production" && $.state.push(I);
7892
+ process.env.NODE_ENV !== "production" && l ? _.value[I] = _n(U, I) : r || (p && zm(F) && (ue(F) ? F.value = p[I] : Ao(F, p[I])), o.state.value[e][I] = F), process.env.NODE_ENV !== "production" && A.state.push(I);
7893
7893
  else if (typeof F == "function") {
7894
7894
  const B = process.env.NODE_ENV !== "production" && l ? F : C(F, I);
7895
- U[I] = B, process.env.NODE_ENV !== "production" && ($.actions[I] = F), s.actions[I] = F;
7896
- } else process.env.NODE_ENV !== "production" && ja(F) && ($.getters[I] = r ? (
7895
+ U[I] = B, process.env.NODE_ENV !== "production" && (A.actions[I] = F), s.actions[I] = F;
7896
+ } else process.env.NODE_ENV !== "production" && ja(F) && (A.getters[I] = r ? (
7897
7897
  // @ts-expect-error
7898
7898
  n.getters[I]
7899
7899
  ) : F, Xe && (U._getters || // @ts-expect-error: same
@@ -10446,15 +10446,15 @@ const zt = /* @__PURE__ */ As("user", {
10446
10446
  loading: !1,
10447
10447
  fullscreen: !1
10448
10448
  }), u = x(), c = x({ title: "", info: "", data: {} });
10449
- function d($) {
10450
- c.value.data = $;
10449
+ function d(A) {
10450
+ c.value.data = A;
10451
10451
  }
10452
- function h($, R) {
10452
+ function h(A, R) {
10453
10453
  c.value = {
10454
10454
  title: R?.title || l.title || "对话框",
10455
10455
  info: R?.info || l.info,
10456
- data: et($ || {}),
10457
- raw: $,
10456
+ data: et(A || {}),
10457
+ raw: A,
10458
10458
  width: R?.width || l.width
10459
10459
  }, i.visible = !0;
10460
10460
  }
@@ -10462,7 +10462,7 @@ const zt = /* @__PURE__ */ As("user", {
10462
10462
  r.value = !1, i.loading = !1, i.visible = !1;
10463
10463
  }
10464
10464
  function p() {
10465
- i.loading = !0, l.confirm && l.confirm(c.value.data, ($ = !0) => $ ? g() : _());
10465
+ i.loading = !0, l.confirm && l.confirm(c.value.data, (A = !0) => A ? g() : _());
10466
10466
  }
10467
10467
  function _() {
10468
10468
  i.loading = !1;
@@ -10476,11 +10476,11 @@ const zt = /* @__PURE__ */ As("user", {
10476
10476
  function T() {
10477
10477
  return c.value.data;
10478
10478
  }
10479
- function A() {
10479
+ function $() {
10480
10480
  i.fullscreen = !i.fullscreen;
10481
10481
  }
10482
- const C = { open: h, close: g, confirm: p, cancel: E, getData: T, expand: A, unload: _ };
10483
- return t({ open: h, close: g, confirm: p, cancel: E, getData: T, expand: A, load: b }), ($, R) => {
10482
+ const C = { open: h, close: g, confirm: p, cancel: E, getData: T, expand: $, unload: _ };
10483
+ return t({ open: h, close: g, confirm: p, cancel: E, getData: T, expand: $, load: b }), (A, R) => {
10484
10484
  const S = w("el-text"), N = w("el-space"), U = w("el-dialog"), I = Pt("loading");
10485
10485
  return y(), k(U, {
10486
10486
  ref_key: "dialog",
@@ -10517,7 +10517,7 @@ const zt = /* @__PURE__ */ As("user", {
10517
10517
  show: s.value
10518
10518
  }, {
10519
10519
  tool: f(() => [
10520
- Z($.$slots, "tool", {
10520
+ Z(A.$slots, "tool", {
10521
10521
  raw: c.value.raw,
10522
10522
  data: c.value.data,
10523
10523
  controller: C,
@@ -10525,7 +10525,7 @@ const zt = /* @__PURE__ */ As("user", {
10525
10525
  })
10526
10526
  ]),
10527
10527
  default: f(() => [
10528
- Z($.$slots, "header", {
10528
+ Z(A.$slots, "header", {
10529
10529
  data: c.value.data,
10530
10530
  raw: c.value.raw,
10531
10531
  controller: C,
@@ -10571,7 +10571,7 @@ const zt = /* @__PURE__ */ As("user", {
10571
10571
  "element-loading-background": "rgba(255,255,255,0.6)",
10572
10572
  style: { "min-height": "80px" }
10573
10573
  }, [
10574
- Z($.$slots, "default", {
10574
+ Z(A.$slots, "default", {
10575
10575
  raw: c.value.raw,
10576
10576
  data: c.value.data,
10577
10577
  controller: C,
@@ -11957,11 +11957,11 @@ const Bs = /* @__PURE__ */ D({
11957
11957
  setup(e, { emit: t }) {
11958
11958
  const n = e, o = t, l = O({
11959
11959
  get: () => n.modelValue,
11960
- set: (A) => o("update:modelValue", A)
11960
+ set: ($) => o("update:modelValue", $)
11961
11961
  }), r = x(), a = O(() => `/api/valar/${n.field.$db}/${n.field.$entity}/save_file`), s = O(() => n.field.format || {}), i = O(() => ({ id: n.row.id, prop: n.field.prop, field: s.value.file_name_field })), u = O(() => s.value.accept.length ? s.value.accept.join(",") : "*"), c = O(() => l.value ? l.value.split("/").pop().split("-").slice(2).join("-") : null), { post: d } = st(), h = () => r.value?.$el.querySelector("input").click();
11962
11962
  function g() {
11963
- const A = `/valar/${n.field.$db}/${n.field.$entity}/remove_file`;
11964
- De.warning(`是否删除文件:${l.value}`).then(() => d(A, i.value)).then(() => {
11963
+ const $ = `/valar/${n.field.$db}/${n.field.$entity}/remove_file`;
11964
+ De.warning(`是否删除文件:${l.value}`).then(() => d($, i.value)).then(() => {
11965
11965
  l.value = null, o("reload");
11966
11966
  }).catch(() => Q.info("取消删除文件"));
11967
11967
  }
@@ -11969,20 +11969,20 @@ const Bs = /* @__PURE__ */ D({
11969
11969
  function _() {
11970
11970
  window.open(`${p}/${l.value}`, "_blank");
11971
11971
  }
11972
- function b(A) {
11973
- const { name: C, size: $ } = A, R = C.indexOf(".") !== -1 ? `.${C.split(".").pop()}` : "", S = [];
11974
- return (u.value === "*" ? !0 : s.value.accept.includes(R)) || S.push(`文件类型不符合:${u.value}`), $ / 1e6 <= s.value.maximum || S.push(`文件大小不超过${s.value.maximum}Mb`), S.length > 0 ? (Q.error(S.join(";")), !1) : !0;
11972
+ function b($) {
11973
+ const { name: C, size: A } = $, R = C.indexOf(".") !== -1 ? `.${C.split(".").pop()}` : "", S = [];
11974
+ return (u.value === "*" ? !0 : s.value.accept.includes(R)) || S.push(`文件类型不符合:${u.value}`), A / 1e6 <= s.value.maximum || S.push(`文件大小不超过${s.value.maximum}Mb`), S.length > 0 ? (Q.error(S.join(";")), !1) : !0;
11975
11975
  }
11976
- function E(A) {
11977
- A.payload ? (l.value = A.payload, o("reload"), Q.success("上传成功!")) : T(), r.value?.clearFiles();
11976
+ function E($) {
11977
+ $.payload ? (l.value = $.payload, o("reload"), Q.success("上传成功!")) : T(), r.value?.clearFiles();
11978
11978
  }
11979
11979
  function T() {
11980
11980
  Q.error("上传失败");
11981
11981
  }
11982
- return (A, C) => {
11983
- const $ = w("el-upload"), R = w("el-text"), S = w("el-tooltip"), N = w("el-divider"), U = w("el-space"), I = w("el-input");
11982
+ return ($, C) => {
11983
+ const A = w("el-upload"), R = w("el-text"), S = w("el-tooltip"), N = w("el-divider"), U = w("el-space"), I = w("el-input");
11984
11984
  return y(), M(K, null, [
11985
- Ye(m($, {
11985
+ Ye(m(A, {
11986
11986
  ref_key: "upload",
11987
11987
  ref: r,
11988
11988
  action: a.value,
@@ -12390,35 +12390,35 @@ const Nn = /* @__PURE__ */ D({
12390
12390
  return !l.insert && lt(_) ? [] : (l.keys || [l.item.id]).map((E) => ({ id: E, saved: !0, ..._ }));
12391
12391
  }
12392
12392
  return t({ getData: p }), (_, b) => {
12393
- const E = w("el-form-item"), T = w("el-col"), A = w("el-row"), C = w("el-form");
12393
+ const E = w("el-form-item"), T = w("el-col"), $ = w("el-row"), C = w("el-form");
12394
12394
  return y(), k(C, {
12395
12395
  ref_key: "form",
12396
12396
  ref: r,
12397
12397
  "label-position": "top"
12398
12398
  }, {
12399
12399
  default: f(() => [
12400
- m(A, { gutter: 10 }, {
12400
+ m($, { gutter: 10 }, {
12401
12401
  default: f(() => [
12402
- (y(!0), M(K, null, se(v(a).filter(($) => $.domain !== "FileField"), ($) => (y(), k(T, {
12403
- span: $.span || 12
12402
+ (y(!0), M(K, null, se(v(a).filter((A) => A.domain !== "FileField"), (A) => (y(), k(T, {
12403
+ span: A.span || 12
12404
12404
  }, {
12405
12405
  default: f(() => [
12406
12406
  m(E, {
12407
- prop: $.prop,
12407
+ prop: A.prop,
12408
12408
  size: "default"
12409
12409
  }, {
12410
12410
  label: f(() => [
12411
12411
  m(Wa, {
12412
- field: $,
12412
+ field: A,
12413
12413
  mapping: v(d),
12414
12414
  onReset: v(h)
12415
12415
  }, null, 8, ["field", "mapping", "onReset"])
12416
12416
  ]),
12417
12417
  default: f(() => [
12418
12418
  m(v(Nn), {
12419
- field: $,
12419
+ field: A,
12420
12420
  row: e.item,
12421
- disabled: v(i)($),
12421
+ disabled: v(i)(A),
12422
12422
  bean: v(s)
12423
12423
  }, null, 8, ["field", "row", "disabled", "bean"])
12424
12424
  ]),
@@ -12427,15 +12427,15 @@ const Nn = /* @__PURE__ */ D({
12427
12427
  ]),
12428
12428
  _: 2
12429
12429
  }, 1032, ["span"]))), 256)),
12430
- v(u) ? (y(!0), M(K, { key: 0 }, se(v(a).filter(($) => $.domain === "FileField"), ($) => (y(), k(T, null, {
12430
+ v(u) ? (y(!0), M(K, { key: 0 }, se(v(a).filter((A) => A.domain === "FileField"), (A) => (y(), k(T, null, {
12431
12431
  default: f(() => [
12432
12432
  m(E, {
12433
- prop: $.prop,
12433
+ prop: A.prop,
12434
12434
  size: "default"
12435
12435
  }, {
12436
12436
  label: f(() => [
12437
12437
  m(Wa, {
12438
- field: $,
12438
+ field: A,
12439
12439
  mapping: v(d),
12440
12440
  disabled: "",
12441
12441
  onReset: v(h)
@@ -12443,8 +12443,8 @@ const Nn = /* @__PURE__ */ D({
12443
12443
  ]),
12444
12444
  default: f(() => [
12445
12445
  m(v(Nn), {
12446
- field: $,
12447
- disabled: v(i)($),
12446
+ field: A,
12447
+ disabled: v(i)(A),
12448
12448
  bean: v(s),
12449
12449
  row: v(u)
12450
12450
  }, null, 8, ["field", "disabled", "bean", "row"])
@@ -12601,7 +12601,7 @@ const zg = {
12601
12601
  customClass: "m-dialog-loading"
12602
12602
  }), p?.setText(g?.value)) : p?.close();
12603
12603
  }, { immediate: !0, deep: !0 }), X(() => t.ticker, () => p?.setText(g.value)), (_, b) => {
12604
- const E = w("el-col"), T = w("el-space"), A = w("el-row");
12604
+ const E = w("el-col"), T = w("el-space"), $ = w("el-row");
12605
12605
  return y(), M("div", {
12606
12606
  ref_key: "wrap",
12607
12607
  ref: n,
@@ -12610,7 +12610,7 @@ const zg = {
12610
12610
  }),
12611
12611
  class: "m-wrap"
12612
12612
  }, [
12613
- m(A, {
12613
+ m($, {
12614
12614
  class: "m-wrap-header",
12615
12615
  align: "middle"
12616
12616
  }, {
@@ -12655,7 +12655,7 @@ const zg = {
12655
12655
  }, [
12656
12656
  Z(_.$slots, "default", { width: v(s) })
12657
12657
  ], 4),
12658
- m(A, {
12658
+ m($, {
12659
12659
  class: "m-wrap-footer",
12660
12660
  align: "middle"
12661
12661
  }, {
@@ -12873,68 +12873,68 @@ const Ms = /* @__PURE__ */ D({
12873
12873
  },
12874
12874
  emits: ["upload"],
12875
12875
  setup(e, { expose: t, emit: n }) {
12876
- const o = n, l = e, r = x(), a = x(), s = O(() => l.selection.map((A) => A.id));
12877
- function i(A, C) {
12878
- const $ = a.value?.getData();
12879
- $ == null ? (Q.warning("请注意非空值"), C(!1)) : $.length ? (l.rest.save_many($), C()) : (Q.warning("数据无变化,是否关闭?"), C(!1));
12876
+ const o = n, l = e, r = x(), a = x(), s = O(() => l.selection.map(($) => $.id));
12877
+ function i($, C) {
12878
+ const A = a.value?.getData();
12879
+ A == null ? (Q.warning("请注意非空值"), C(!1)) : A.length ? (l.rest.save_many(A), C()) : (Q.warning("数据无变化,是否关闭?"), C(!1));
12880
12880
  }
12881
- function u(A, C) {
12882
- const { keys: $, insert: R } = A;
12883
- R && l.rest.delete_one($[0]), C();
12881
+ function u($, C) {
12882
+ const { keys: A, insert: R } = $;
12883
+ R && l.rest.delete_one(A[0]), C();
12884
12884
  }
12885
- function c(A) {
12886
- const C = A.map((N) => N.id), $ = [];
12885
+ function c($) {
12886
+ const C = $.map((N) => N.id), A = [];
12887
12887
  Object.keys(l.view.$fields).forEach((N) => {
12888
- const U = A.map((B) => B[N]), I = [.../* @__PURE__ */ new Set([...U])], F = I.length === 1 ? I[0] : null;
12889
- F != null && $.push([N, F]);
12888
+ const U = $.map((B) => B[N]), I = [.../* @__PURE__ */ new Set([...U])], F = I.length === 1 ? I[0] : null;
12889
+ F != null && A.push([N, F]);
12890
12890
  });
12891
- const S = Object.fromEntries($);
12891
+ const S = Object.fromEntries(A);
12892
12892
  return { keys: C, item: S };
12893
12893
  }
12894
- function d(A) {
12894
+ function d($) {
12895
12895
  return new Promise((C) => {
12896
- if (A) {
12897
- const $ = No({ saved: !1 }, l.core);
12898
- l.rest.insert_one($).then((R) => C([R])).finally(l.collector.clear);
12896
+ if ($) {
12897
+ const A = No({ saved: !1 }, l.core);
12898
+ l.rest.insert_one(A).then((R) => C([R])).finally(l.collector.clear);
12899
12899
  } else
12900
- l.rest.find(s.value).then(($) => C($));
12900
+ l.rest.find(s.value).then((A) => C(A));
12901
12901
  });
12902
12902
  }
12903
- function h(A, C) {
12904
- d(A).then(($) => {
12905
- const { keys: R, item: S } = c($);
12903
+ function h($, C) {
12904
+ d($).then((A) => {
12905
+ const { keys: R, item: S } = c(A);
12906
12906
  if (C) {
12907
12907
  const N = Object.keys(l.core);
12908
12908
  Object.assign(S, ye(C, N));
12909
12909
  }
12910
- r.value?.open({ insert: A, keys: R, item: S });
12910
+ r.value?.open({ insert: $, keys: R, item: S });
12911
12911
  });
12912
12912
  }
12913
12913
  function g() {
12914
12914
  l.rest.delete_many(s.value);
12915
12915
  }
12916
12916
  function p() {
12917
- const A = l.selection.map((C) => zn(C, ["id", "sort"]));
12918
- l.rest.save_many(A), Q.info(`已复制 ${A.length} 条数据`);
12917
+ const $ = l.selection.map((C) => zn(C, ["id", "sort"]));
12918
+ l.rest.save_many($), Q.info(`已复制 ${$.length} 条数据`);
12919
12919
  }
12920
12920
  const { toAoa: _ } = Ne(l.view), { copy: b } = Nt();
12921
12921
  function E() {
12922
- const [A, C] = _(l.selection), $ = [];
12923
- A.map((S, N) => {
12922
+ const [$, C] = _(l.selection), A = [];
12923
+ $.map((S, N) => {
12924
12924
  const U = C[N];
12925
- U != null && $.push([S, U]);
12925
+ U != null && A.push([S, U]);
12926
12926
  });
12927
- const R = JSON.stringify(Object.fromEntries($));
12927
+ const R = JSON.stringify(Object.fromEntries(A));
12928
12928
  b(R).then(() => Q.success("所选数据已存入剪切板"));
12929
12929
  }
12930
12930
  return t({ controller: {
12931
- insert: (A) => h(!0, A),
12931
+ insert: ($) => h(!0, $),
12932
12932
  edit: () => l.selection.length ? h(!1) : Q.warning("请选择数据"),
12933
12933
  remove: () => l.selection.length ? g() : Q.warning("请选择数据"),
12934
12934
  clone: () => l.selection.length ? p() : Q.warning("请选择数据"),
12935
12935
  paste: () => l.selection.length ? E() : Q.warning("请选择数据")
12936
- } }), (A, C) => {
12937
- const $ = w("el-text"), R = w("el-tag"), S = w("el-space");
12936
+ } }), ($, C) => {
12937
+ const A = w("el-text"), R = w("el-tag"), S = w("el-space");
12938
12938
  return y(), M(K, null, [
12939
12939
  e.error ? H("", !0) : (y(), k(Ms, {
12940
12940
  key: 0,
@@ -12955,7 +12955,7 @@ const Ms = /* @__PURE__ */ D({
12955
12955
  cancel: u
12956
12956
  }, {
12957
12957
  header: f(({ data: { insert: N, keys: U } }) => [
12958
- N ? (y(), k($, {
12958
+ N ? (y(), k(A, {
12959
12959
  key: 0,
12960
12960
  type: "success",
12961
12961
  tag: "b"
@@ -12966,7 +12966,7 @@ const Ms = /* @__PURE__ */ D({
12966
12966
  _: 1
12967
12967
  })) : (y(), k(S, { key: 1 }, {
12968
12968
  default: f(() => [
12969
- m($, {
12969
+ m(A, {
12970
12970
  type: "warning",
12971
12971
  tag: "b"
12972
12972
  }, {
@@ -12986,7 +12986,7 @@ const Ms = /* @__PURE__ */ D({
12986
12986
  ]),
12987
12987
  _: 2
12988
12988
  }, 1024),
12989
- m($, {
12989
+ m(A, {
12990
12990
  type: "warning",
12991
12991
  tag: "b"
12992
12992
  }, {
@@ -13272,7 +13272,7 @@ const Ms = /* @__PURE__ */ D({
13272
13272
  }
13273
13273
  const h = () => o("confirm");
13274
13274
  return t({ getData: d }), (g, p) => {
13275
- const _ = w("el-segmented"), b = w("el-text"), E = w("el-option"), T = w("el-select"), A = w("el-space"), C = w("el-checkbox"), $ = w("el-input-tag"), R = w("el-input"), S = w("el-col"), N = w("el-row"), U = w("el-divider");
13275
+ const _ = w("el-segmented"), b = w("el-text"), E = w("el-option"), T = w("el-select"), $ = w("el-space"), C = w("el-checkbox"), A = w("el-input-tag"), R = w("el-input"), S = w("el-col"), N = w("el-row"), U = w("el-divider");
13276
13276
  return y(), M(K, null, [
13277
13277
  te("div", Zg, [
13278
13278
  m(_, {
@@ -13281,7 +13281,7 @@ const Ms = /* @__PURE__ */ D({
13281
13281
  modelValue: i.value.type,
13282
13282
  "onUpdate:modelValue": p[0] || (p[0] = (I) => i.value.type = I)
13283
13283
  }, null, 8, ["modelValue"]),
13284
- m(A, null, {
13284
+ m($, null, {
13285
13285
  default: f(() => [
13286
13286
  m(T, {
13287
13287
  modelValue: i.value.lookup,
@@ -13328,7 +13328,7 @@ const Ms = /* @__PURE__ */ D({
13328
13328
  V("  " + j(i.value.value ? "仅空值" : "仅非空值"), 1)
13329
13329
  ]),
13330
13330
  _: 1
13331
- }, 8, ["modelValue"])) : i.value.lookup === "in" ? (y(), k($, {
13331
+ }, 8, ["modelValue"])) : i.value.lookup === "in" ? (y(), k(A, {
13332
13332
  key: 1,
13333
13333
  size: "large",
13334
13334
  modelValue: i.value.value,
@@ -13734,10 +13734,10 @@ const Ms = /* @__PURE__ */ D({
13734
13734
  u.value = !1, i.value = !1;
13735
13735
  }
13736
13736
  return (g, p) => {
13737
- const _ = w("el-checkbox"), b = w("el-space"), E = w("el-radio"), T = w("el-radio-group"), A = w("el-col"), C = w("el-text"), $ = w("el-table-column"), R = w("el-table"), S = w("el-pagination"), N = w("el-row");
13737
+ const _ = w("el-checkbox"), b = w("el-space"), E = w("el-radio"), T = w("el-radio-group"), $ = w("el-col"), C = w("el-text"), A = w("el-table-column"), R = w("el-table"), S = w("el-pagination"), N = w("el-row");
13738
13738
  return y(), k(N, null, {
13739
13739
  default: f(() => [
13740
- e.rows.length ? (y(), k(A, {
13740
+ e.rows.length ? (y(), k($, {
13741
13741
  key: 0,
13742
13742
  class: "justified upload-table-header"
13743
13743
  }, {
@@ -13801,7 +13801,7 @@ const Ms = /* @__PURE__ */ D({
13801
13801
  ]),
13802
13802
  _: 1
13803
13803
  })) : H("", !0),
13804
- m(A, null, {
13804
+ m($, null, {
13805
13805
  default: f(() => [
13806
13806
  m(R, {
13807
13807
  data: v(s),
@@ -13831,7 +13831,7 @@ const Ms = /* @__PURE__ */ D({
13831
13831
  }))
13832
13832
  ]),
13833
13833
  default: f(() => [
13834
- m($, {
13834
+ m(A, {
13835
13835
  prop: "$index",
13836
13836
  label: "序号",
13837
13837
  width: "80",
@@ -13852,7 +13852,7 @@ const Ms = /* @__PURE__ */ D({
13852
13852
  ]),
13853
13853
  _: 1
13854
13854
  }),
13855
- (y(!0), M(K, null, se(e.fields, (U) => (y(), k($, {
13855
+ (y(!0), M(K, null, se(e.fields, (U) => (y(), k(A, {
13856
13856
  prop: U.prop,
13857
13857
  label: U.label,
13858
13858
  align: U.align,
@@ -13879,7 +13879,7 @@ const Ms = /* @__PURE__ */ D({
13879
13879
  ]),
13880
13880
  _: 2
13881
13881
  }, 1032, ["prop", "label", "align"]))), 256)),
13882
- m($, {
13882
+ m(A, {
13883
13883
  prop: "$index",
13884
13884
  width: "50",
13885
13885
  align: "center",
@@ -13891,7 +13891,7 @@ const Ms = /* @__PURE__ */ D({
13891
13891
  ]),
13892
13892
  _: 1
13893
13893
  }),
13894
- m($, {
13894
+ m(A, {
13895
13895
  prop: "$index",
13896
13896
  width: "100",
13897
13897
  label: "操作",
@@ -13936,7 +13936,7 @@ const Ms = /* @__PURE__ */ D({
13936
13936
  ]),
13937
13937
  _: 1
13938
13938
  }),
13939
- v(s).length ? (y(), k(A, {
13939
+ v(s).length ? (y(), k($, {
13940
13940
  key: 1,
13941
13941
  style: { padding: "5px", background: "#eeeeee" }
13942
13942
  }, {
@@ -13974,17 +13974,17 @@ function uh(e) {
13974
13974
  }, { deep: !0, immediate: !0 });
13975
13975
  const { fromMode: r } = Ne(t.value.view), a = O(() => {
13976
13976
  const { $modes: b, $fields: E } = t.value.view, T = [];
13977
- return (u.value.hasId || u.value.isUpdate) && T.push(r(b.id)), u.value.hasSort && T.push(r(b.sort)), Object.values(E).filter((A) => {
13978
- const { prop: C, allow_update: $, allow_upload: R } = A, S = !["id", "sort"].includes(C), N = u.value.isUpdate ? $ : R;
13977
+ return (u.value.hasId || u.value.isUpdate) && T.push(r(b.id)), u.value.hasSort && T.push(r(b.sort)), Object.values(E).filter(($) => {
13978
+ const { prop: C, allow_update: A, allow_upload: R } = $, S = !["id", "sort"].includes(C), N = u.value.isUpdate ? A : R;
13979
13979
  return S && N;
13980
- }).forEach((A) => {
13981
- let { domain: C, prop: $, label: R, not_null: S, format: N } = A;
13980
+ }).forEach(($) => {
13981
+ let { domain: C, prop: A, label: R, not_null: S, format: N } = $;
13982
13982
  if (ve.DOMAINS.referred) {
13983
- const U = ve.DOMAINS.multiple.includes(C), I = u.value.useKey ? "value" : "label", F = (l.value[$] || []).map((z) => [z.value, z[I]]), B = Object.fromEntries(F);
13984
- T.push(r({ prop: $, label: R, domain: C, not_null: S, multiple: U, set: B }));
13983
+ const U = ve.DOMAINS.multiple.includes(C), I = u.value.useKey ? "value" : "label", F = (l.value[A] || []).map((z) => [z.value, z[I]]), B = Object.fromEntries(F);
13984
+ T.push(r({ prop: A, label: R, domain: C, not_null: S, multiple: U, set: B }));
13985
13985
  } else {
13986
13986
  const { set: U, multiple: I } = N;
13987
- T.push(r({ prop: $, label: R, domain: C, not_null: S, multiple: I, set: U }));
13987
+ T.push(r({ prop: A, label: R, domain: C, not_null: S, multiple: I, set: U }));
13988
13988
  }
13989
13989
  }), T;
13990
13990
  }), s = O(() => {
@@ -14000,12 +14000,12 @@ function uh(e) {
14000
14000
  c.value = b, d.value = c.value.map((E, T) => i(E, T));
14001
14001
  }
14002
14002
  const p = O(() => d.value.filter((b) => b.valid && !b.payload).map(({ cells: b }) => {
14003
- const E = Object.entries(b).map(([T, A]) => [T, A.value]);
14003
+ const E = Object.entries(b).map(([T, $]) => [T, $.value]);
14004
14004
  return Object.fromEntries(E);
14005
14005
  }));
14006
14006
  function _(b, E) {
14007
- const T = c.value[E], A = No(T, b || {});
14008
- c.value[E] = A, d.value[E] = i(A, E);
14007
+ const T = c.value[E], $ = No(T, b || {});
14008
+ c.value[E] = $, d.value[E] = i($, E);
14009
14009
  }
14010
14010
  return {
14011
14011
  loading: o,
@@ -14279,13 +14279,13 @@ const ch = /* @__PURE__ */ D({
14279
14279
  emits: ["confirm"],
14280
14280
  setup(e, { emit: t }) {
14281
14281
  const n = t, o = e, l = x(), r = x(), a = x(), s = x(), { loading: i, setArray: u, notEmpty: c, param: d, fields: h, rows: g, results: p, frame: _, array: b, save: E, $view: T } = uh(o);
14282
- function A(I) {
14282
+ function $(I) {
14283
14283
  r.value?.close(), u(I);
14284
14284
  }
14285
14285
  function C() {
14286
14286
  De.info("是否清空数据").then(() => u([]));
14287
14287
  }
14288
- function $(I) {
14288
+ function A(I) {
14289
14289
  a.value?.open(I);
14290
14290
  }
14291
14291
  function R(I, F) {
@@ -14339,7 +14339,7 @@ const ch = /* @__PURE__ */ D({
14339
14339
  m(v(ih), {
14340
14340
  fields: v(h),
14341
14341
  rows: v(g),
14342
- onEdit: $,
14342
+ onEdit: A,
14343
14343
  onRemove: S,
14344
14344
  onRestore: N
14345
14345
  }, null, 8, ["fields", "rows"])
@@ -14362,7 +14362,7 @@ const ch = /* @__PURE__ */ D({
14362
14362
  fields: v(h),
14363
14363
  param: v(d),
14364
14364
  frame: v(_),
14365
- onComplete: A
14365
+ onComplete: $
14366
14366
  }, null, 8, ["fields", "param", "frame"])
14367
14367
  ]),
14368
14368
  _: 1
@@ -15270,8 +15270,8 @@ const ch = /* @__PURE__ */ D({
15270
15270
  tooltipOptions: b,
15271
15271
  tooltipFormatter: E,
15272
15272
  tableCellClassName: T,
15273
- tableRowClassName: A
15274
- } = Yg(l, r), C = O(() => a.value?.controller), $ = O(() => {
15273
+ tableRowClassName: $
15274
+ } = Yg(l, r), C = O(() => a.value?.controller), A = O(() => {
15275
15275
  const { parse: N } = Ne(l.view);
15276
15276
  return N(l.results);
15277
15277
  });
@@ -15293,7 +15293,7 @@ const ch = /* @__PURE__ */ D({
15293
15293
  }
15294
15294
  }
15295
15295
  return t({
15296
- controller: C,
15296
+ controller: () => C.value,
15297
15297
  getSelection: () => g.value,
15298
15298
  get: () => h.value,
15299
15299
  set: (N) => Te().then(() => p.set(N))
@@ -15383,20 +15383,20 @@ const ch = /* @__PURE__ */ D({
15383
15383
  size: e.size || "small",
15384
15384
  onCellClick: R,
15385
15385
  onCellContextmenu: S,
15386
- "row-class-name": v(A),
15386
+ "row-class-name": v($),
15387
15387
  "cell-class-name": v(T),
15388
15388
  "tooltip-formatter": v(E)
15389
15389
  }, {
15390
15390
  default: f(() => [
15391
15391
  m(Ih, Ee(N.$props, {
15392
- frame: $.value,
15392
+ frame: A.value,
15393
15393
  collector: v(p),
15394
15394
  collection: v(h),
15395
15395
  onMeta: U[4] || (U[4] = (z) => o("meta", z))
15396
15396
  }), null, 16, ["frame", "collector", "collection"]),
15397
15397
  m(Dh, Ee(N.$props, {
15398
15398
  collector: v(p),
15399
- frame: $.value,
15399
+ frame: A.value,
15400
15400
  collection: v(h),
15401
15401
  onField: U[5] || (U[5] = (z) => o("field", e.view.$fields[z.prop])),
15402
15402
  onLookup: U[6] || (U[6] = (z, J) => c.value?.open(z, J)),
@@ -15634,16 +15634,16 @@ function Uh(e, t) {
15634
15634
  }, { deep: !0 }), X(n, () => {
15635
15635
  Te().then(() => {
15636
15636
  o.value.forEach((C) => {
15637
- const $ = t.value?.getNode(C);
15638
- $ && ($.expanded = n.value.includes(C));
15637
+ const A = t.value?.getNode(C);
15638
+ A && (A.expanded = n.value.includes(C));
15639
15639
  });
15640
15640
  });
15641
15641
  }, { deep: !0 });
15642
15642
  function l(C) {
15643
- const $ = [];
15643
+ const A = [];
15644
15644
  for (; C; )
15645
- C = e.value.mapping[C].pid, C && $.push(C);
15646
- return $;
15645
+ C = e.value.mapping[C].pid, C && A.push(C);
15646
+ return A;
15647
15647
  }
15648
15648
  function r(C) {
15649
15649
  const R = e.value.mapping[C].children;
@@ -15654,32 +15654,32 @@ function Uh(e, t) {
15654
15654
  return [];
15655
15655
  }
15656
15656
  function a(C) {
15657
- n.value = n.value.filter(($) => !C.includes($));
15657
+ n.value = n.value.filter((A) => !C.includes(A));
15658
15658
  }
15659
15659
  function s(C) {
15660
- const $ = C.filter((R) => !n.value.includes(R) && o.value.includes(R));
15661
- n.value.push(...$);
15660
+ const A = C.filter((R) => !n.value.includes(R) && o.value.includes(R));
15661
+ n.value.push(...A);
15662
15662
  }
15663
15663
  function i(C) {
15664
15664
  e.value.expandAll || (n.value.includes(C) ? u(C) : o.value.includes(C) && s([C]));
15665
15665
  }
15666
15666
  function u(C) {
15667
15667
  if (e.value.expandAll) return;
15668
- const $ = r(C);
15669
- a($);
15668
+ const A = r(C);
15669
+ a(A);
15670
15670
  }
15671
15671
  function c(C) {
15672
15672
  if (e.value.expandAll) return;
15673
- const $ = [...r(C), ...l(C)];
15674
- s($);
15673
+ const A = [...r(C), ...l(C)];
15674
+ s(A);
15675
15675
  }
15676
15676
  function d(C) {
15677
15677
  e.value.expandAll || (C ? n.value = o.value : n.value = []);
15678
15678
  }
15679
15679
  function h(C) {
15680
15680
  if (e.value.expandAll) return;
15681
- const $ = C.map((R) => l(R)).reduce((R, S) => [...R, ...S], []);
15682
- C = [...new Set($)], s(C);
15681
+ const A = C.map((R) => l(R)).reduce((R, S) => [...R, ...S], []);
15682
+ C = [...new Set(A)], s(C);
15683
15683
  }
15684
15684
  const g = {
15685
15685
  toggle: i,
@@ -15689,20 +15689,20 @@ function Uh(e, t) {
15689
15689
  function p(C) {
15690
15690
  return !!C.data.id;
15691
15691
  }
15692
- function _(C, $, R) {
15693
- const S = C.data, N = $.data, U = N.isLeaf, I = !!N.children?.length, F = S.id, B = N.id;
15694
- return !U && B !== F && ($.expanded = !0), R === "inner" ? !U && !I : B != 0;
15692
+ function _(C, A, R) {
15693
+ const S = C.data, N = A.data, U = N.isLeaf, I = !!N.children?.length, F = S.id, B = N.id;
15694
+ return !U && B !== F && (A.expanded = !0), R === "inner" ? !U && !I : B != 0;
15695
15695
  }
15696
15696
  function b(C) {
15697
- const $ = C.id;
15698
- u($);
15697
+ const A = C.id;
15698
+ u(A);
15699
15699
  }
15700
15700
  function E(C) {
15701
- const $ = C.id;
15702
- c($);
15701
+ const A = C.id;
15702
+ c(A);
15703
15703
  }
15704
- function T(C, $, R, S) {
15705
- const N = C.data, U = $.data, I = N.id, F = U.id;
15704
+ function T(C, A, R, S) {
15705
+ const N = C.data, U = A.data, I = N.id, F = U.id;
15706
15706
  if (R === "inner") {
15707
15707
  const B = {
15708
15708
  id: I,
@@ -15710,7 +15710,7 @@ function Uh(e, t) {
15710
15710
  };
15711
15711
  e.value.rest.save_many([B]);
15712
15712
  } else {
15713
- const B = ui(e.value.mapping, (G) => G.sort), z = $.parent.childNodes.map((G) => G.data), J = z.map((G) => G.sort).sort((G, ae) => ae - G), ie = U.pid, ne = z.map((G, ae) => {
15713
+ const B = ui(e.value.mapping, (G) => G.sort), z = A.parent.childNodes.map((G) => G.data), J = z.map((G) => G.sort).sort((G, ae) => ae - G), ie = U.pid, ne = z.map((G, ae) => {
15714
15714
  const le = G.id, Ue = J[ae], pe = {
15715
15715
  id: le,
15716
15716
  sort: Ue
@@ -16138,7 +16138,7 @@ const Bh = /* @__PURE__ */ D({
16138
16138
  expansion: E,
16139
16139
  ui: T
16140
16140
  } = Uh(u, r);
16141
- function A(R, S, N) {
16141
+ function $(R, S, N) {
16142
16142
  return (S[c.value] || "").includes(R);
16143
16143
  }
16144
16144
  function C(R, S, N, U) {
@@ -16146,7 +16146,7 @@ const Bh = /* @__PURE__ */ D({
16146
16146
  const I = R.id;
16147
16147
  R.children.length ? b.toggle(I) : l.single ? _.set(I) : _.toggle(I);
16148
16148
  }
16149
- function $(R, S) {
16149
+ function A(R, S) {
16150
16150
  R.preventDefault(), R.stopPropagation();
16151
16151
  const N = S.id;
16152
16152
  _.set(N), s.value?.open(R, S);
@@ -16209,14 +16209,14 @@ const Bh = /* @__PURE__ */ D({
16209
16209
  "default-expanded-keys": [e.root],
16210
16210
  "show-checkbox": !1,
16211
16211
  "check-strictly": !1,
16212
- "filter-node-method": A,
16212
+ "filter-node-method": $,
16213
16213
  accordion: !1,
16214
16214
  indent: 23,
16215
16215
  draggable: e.view.allow_edit,
16216
16216
  "allow-drag": v(T).allow_drag,
16217
16217
  "allow-drop": v(T).allow_drop,
16218
16218
  onNodeClick: C,
16219
- onNodeContextmenu: $,
16219
+ onNodeContextmenu: A,
16220
16220
  onNodeCollapse: v(T).handleCollapse,
16221
16221
  onNodeExpand: v(T).handleExpand,
16222
16222
  onNodeDrop: v(T).handleDrop
@@ -16314,9 +16314,9 @@ function Yh(e, t) {
16314
16314
  save_many: E,
16315
16315
  switching: T
16316
16316
  } = Fr(e, n, t), {
16317
- options: A,
16317
+ options: $,
16318
16318
  mapping: C,
16319
- total: $
16319
+ total: A
16320
16320
  } = up(o), { toAoa: R } = Ne(g), { toText: S } = Bt(), { copy: N } = Nt(), { write: U } = dn();
16321
16321
  return {
16322
16322
  view: g,
@@ -16327,9 +16327,9 @@ function Yh(e, t) {
16327
16327
  error: a,
16328
16328
  core: u,
16329
16329
  finder: c,
16330
- total: $,
16330
+ total: A,
16331
16331
  mapping: C,
16332
- options: A,
16332
+ options: $,
16333
16333
  dao: i,
16334
16334
  rest: {
16335
16335
  reload: _,
@@ -16337,7 +16337,7 @@ function Yh(e, t) {
16337
16337
  delete_many: b,
16338
16338
  save_many: E,
16339
16339
  order: (F) => n.value.orders = F || { sort: -1 },
16340
- delete_one: (F) => l.delete_one(F).then(),
16340
+ delete_one: (F) => l.delete_one(F).then(() => _()),
16341
16341
  save_one: (F) => l.save_one({ ...F, ...u.value }),
16342
16342
  insert_one: (F) => l.insert_one({ ...F, ...u.value }),
16343
16343
  find: (F) => l.find(new Pe({ id__in: F })),
@@ -17278,8 +17278,8 @@ const Wh = /* @__PURE__ */ D({
17278
17278
  const { db: _, entity: b, isTree: E } = o.value;
17279
17279
  _ && b ? i.meta_view().then((T) => {
17280
17280
  if (l.value = T, E) {
17281
- const A = Object.assign({ isLeaf: !1 }, r.value.includes), C = [new Pe(A)];
17282
- i.search({ type: "tree", root: 0 }, C).then(($) => a.value = $);
17281
+ const $ = Object.assign({ isLeaf: !1 }, r.value.includes), C = [new Pe($)];
17282
+ i.search({ type: "tree", root: 0 }, C).then((A) => a.value = A);
17283
17283
  }
17284
17284
  }) : l.value = new We();
17285
17285
  }, { immediate: !0, deep: !0 }), t({ getData: () => ({
@@ -17300,7 +17300,7 @@ const Wh = /* @__PURE__ */ D({
17300
17300
  () => Object.values(l.value?.$modes || {}).filter(({ domain: g }) => !ve.DOMAINS.referred.includes(g || "")).map(({ prop: g, label: p }) => ({ value: g, label: p, display: g }))
17301
17301
  );
17302
17302
  return (g, p) => {
17303
- const _ = w("el-form-item"), b = w("el-col"), E = w("el-checkbox"), T = w("el-option"), A = w("el-select"), C = w("el-row");
17303
+ const _ = w("el-form-item"), b = w("el-col"), E = w("el-checkbox"), T = w("el-option"), $ = w("el-select"), C = w("el-row");
17304
17304
  return y(), k(C, { gutter: 10 }, {
17305
17305
  default: f(() => [
17306
17306
  m(b, { span: 12 }, {
@@ -17312,7 +17312,7 @@ const Wh = /* @__PURE__ */ D({
17312
17312
  default: f(() => [
17313
17313
  m(v(Ks), {
17314
17314
  modelValue: o.value,
17315
- "onUpdate:modelValue": p[0] || (p[0] = ($) => o.value = $)
17315
+ "onUpdate:modelValue": p[0] || (p[0] = (A) => o.value = A)
17316
17316
  }, null, 8, ["modelValue"])
17317
17317
  ]),
17318
17318
  _: 1
@@ -17332,7 +17332,7 @@ const Wh = /* @__PURE__ */ D({
17332
17332
  style: { width: "100%" },
17333
17333
  disabled: "",
17334
17334
  modelValue: o.value.multiple,
17335
- "onUpdate:modelValue": p[1] || (p[1] = ($) => o.value.multiple = $)
17335
+ "onUpdate:modelValue": p[1] || (p[1] = (A) => o.value.multiple = A)
17336
17336
  }, {
17337
17337
  default: f(() => [
17338
17338
  V(j(o.value.multiple ? "是" : "否"), 1)
@@ -17345,14 +17345,14 @@ const Wh = /* @__PURE__ */ D({
17345
17345
  ]),
17346
17346
  _: 1
17347
17347
  }),
17348
- (y(), M(K, null, se(c, ($, R) => m(b, { span: 8 }, {
17348
+ (y(), M(K, null, se(c, (A, R) => m(b, { span: 8 }, {
17349
17349
  default: f(() => [
17350
17350
  m(_, {
17351
- label: $,
17351
+ label: A,
17352
17352
  "label-position": "top"
17353
17353
  }, {
17354
17354
  default: f(() => [
17355
- m(A, {
17355
+ m($, {
17356
17356
  disabled: R === "value" && d.value.value || d.value.all,
17357
17357
  filterable: "",
17358
17358
  clearable: "",
@@ -17391,7 +17391,7 @@ const Wh = /* @__PURE__ */ D({
17391
17391
  default: f(() => [
17392
17392
  m(v(nn), {
17393
17393
  modelValue: o.value.includes,
17394
- "onUpdate:modelValue": p[2] || (p[2] = ($) => o.value.includes = $),
17394
+ "onUpdate:modelValue": p[2] || (p[2] = (A) => o.value.includes = A),
17395
17395
  disabled: d.value.all
17396
17396
  }, null, 8, ["modelValue", "disabled"])
17397
17397
  ]),
@@ -17409,7 +17409,7 @@ const Wh = /* @__PURE__ */ D({
17409
17409
  default: f(() => [
17410
17410
  m(v(nn), {
17411
17411
  modelValue: o.value.excludes,
17412
- "onUpdate:modelValue": p[3] || (p[3] = ($) => o.value.excludes = $),
17412
+ "onUpdate:modelValue": p[3] || (p[3] = (A) => o.value.excludes = A),
17413
17413
  disabled: d.value.all
17414
17414
  }, null, 8, ["modelValue", "disabled"])
17415
17415
  ]),
@@ -17428,7 +17428,7 @@ const Wh = /* @__PURE__ */ D({
17428
17428
  default: f(() => [
17429
17429
  m(nv, {
17430
17430
  modelValue: o.value.root,
17431
- "onUpdate:modelValue": p[4] || (p[4] = ($) => o.value.root = $),
17431
+ "onUpdate:modelValue": p[4] || (p[4] = (A) => o.value.root = A),
17432
17432
  options: v(s)
17433
17433
  }, null, 8, ["modelValue", "options"])
17434
17434
  ]),
@@ -17448,7 +17448,7 @@ const Wh = /* @__PURE__ */ D({
17448
17448
  border: "",
17449
17449
  style: { width: "100%" },
17450
17450
  modelValue: o.value.strict,
17451
- "onUpdate:modelValue": p[5] || (p[5] = ($) => o.value.strict = $)
17451
+ "onUpdate:modelValue": p[5] || (p[5] = (A) => o.value.strict = A)
17452
17452
  }, {
17453
17453
  default: f(() => [
17454
17454
  V(j(o.value.strict ? "是" : "否"), 1)
@@ -17632,17 +17632,17 @@ const Wh = /* @__PURE__ */ D({
17632
17632
  multiple: !0,
17633
17633
  expandTrigger: "hover",
17634
17634
  lazyLoad(c, d) {
17635
- const { level: h, data: g } = c, { $db: p, $entity: _ } = n.view, b = h ? g : { db: p, entity: _ }, E = h ? c.pathNodes.map(($) => {
17636
- const { db: R, entity: S } = $.data;
17635
+ const { level: h, data: g } = c, { $db: p, $entity: _ } = n.view, b = h ? g : { db: p, entity: _ }, E = h ? c.pathNodes.map((A) => {
17636
+ const { db: R, entity: S } = A.data;
17637
17637
  return `${R}.${S}`;
17638
17638
  }) : [], T = h ? c.pathValues : [];
17639
17639
  E.push(`${p}.${_}`);
17640
- const { db: A, entity: C } = b;
17641
- o("valar/get_fields", { db: A, entity: C, route: E }).then(($) => {
17642
- $.forEach((R) => {
17640
+ const { db: $, entity: C } = b;
17641
+ o("valar/get_fields", { db: $, entity: C, route: E }).then((A) => {
17642
+ A.forEach((R) => {
17643
17643
  const S = [...T, R.value].join("__");
17644
17644
  R.disabled = r.value.includes(S);
17645
- }), d($);
17645
+ }), d(A);
17646
17646
  });
17647
17647
  }
17648
17648
  };
@@ -18439,41 +18439,41 @@ const Wh = /* @__PURE__ */ D({
18439
18439
  size: {}
18440
18440
  },
18441
18441
  setup(e, { expose: t }) {
18442
- const n = e, o = x(), l = x(), r = x(), a = O(() => n), s = O(() => n.admin || !0), {
18443
- view: i,
18444
- search: u,
18445
- ticker: c,
18446
- loading: d,
18447
- error: h,
18448
- core: g,
18449
- finder: p,
18450
- total: _,
18451
- mapping: b,
18452
- options: E,
18453
- rest: T,
18454
- switching: A
18455
- } = Yh(a, ($) => {
18456
- o.value?.set($);
18457
- }), C = {
18458
- rest: T,
18459
- controller: o.value?.controller,
18442
+ const n = e, o = x(), l = x(), r = x(), a = O(() => n), s = O(() => n.admin || !0), i = O(() => o.value?.controller()), {
18443
+ view: u,
18444
+ search: c,
18445
+ ticker: d,
18446
+ loading: h,
18447
+ error: g,
18448
+ core: p,
18449
+ finder: _,
18450
+ total: b,
18451
+ mapping: E,
18452
+ options: T,
18453
+ rest: $,
18454
+ switching: C
18455
+ } = Yh(a, (R) => {
18456
+ o.value?.set(R);
18457
+ });
18458
+ return t({
18459
+ rest: $,
18460
+ controller: i,
18460
18461
  getSelection: () => o.value?.getSelection() || []
18461
- };
18462
- return t(C), ($, R) => (y(), M(K, null, [
18462
+ }), (R, S) => (y(), M(K, null, [
18463
18463
  m(v(qs), {
18464
18464
  ref_key: "table",
18465
18465
  ref: o,
18466
- view: v(i),
18467
- rest: v(T),
18468
- results: v(E),
18469
- mapping: v(b),
18470
- total: v(_),
18471
- search: v(u),
18472
- finder: v(p),
18473
- core: v(g),
18474
- loading: v(d),
18475
- ticker: v(c),
18476
- error: v(h),
18466
+ view: v(u),
18467
+ rest: v($),
18468
+ results: v(T),
18469
+ mapping: v(E),
18470
+ total: v(b),
18471
+ search: v(c),
18472
+ finder: v(_),
18473
+ core: v(p),
18474
+ loading: v(h),
18475
+ ticker: v(d),
18476
+ error: v(g),
18477
18477
  size: "small",
18478
18478
  admin: s.value,
18479
18479
  title: e.title,
@@ -18484,23 +18484,23 @@ const Wh = /* @__PURE__ */ D({
18484
18484
  onMeta: l.value?.open,
18485
18485
  onField: r.value?.open
18486
18486
  }, {
18487
- header: f(({ width: S }) => [
18488
- Z($.$slots, "header", { width: S })
18487
+ header: f(({ width: N }) => [
18488
+ Z(R.$slots, "header", { width: N })
18489
18489
  ]),
18490
18490
  _: 3
18491
18491
  }, 8, ["view", "rest", "results", "mapping", "total", "search", "finder", "core", "loading", "ticker", "error", "admin", "title", "single", "height", "buttons", "columns", "onMeta", "onField"]),
18492
18492
  m(v(ul), {
18493
18493
  ref_key: "meta",
18494
18494
  ref: l,
18495
- view: v(i),
18496
- onReload: R[0] || (R[0] = (S) => v(T).init()),
18497
- switching: v(A)
18495
+ view: v(u),
18496
+ onReload: S[0] || (S[0] = (N) => v($).init()),
18497
+ switching: v(C)
18498
18498
  }, null, 8, ["view", "switching"]),
18499
18499
  m(ov, {
18500
18500
  ref_key: "field",
18501
18501
  ref: r,
18502
- view: v(i),
18503
- onReload: R[1] || (R[1] = (S) => v(T).init())
18502
+ view: v(u),
18503
+ onReload: S[1] || (S[1] = (N) => v($).init())
18504
18504
  }, null, 8, ["view"])
18505
18505
  ], 64));
18506
18506
  }
@@ -18569,7 +18569,7 @@ function yv(e, t) {
18569
18569
  d.value,
18570
18570
  l.value
18571
18571
  ], _, { deep: !0 });
18572
- const { results: b, total: E } = Ur(p, i), { toAoa: T } = Ne(u), { toText: A } = Bt(), { copy: C } = Nt(), { write: $ } = dn();
18572
+ const { results: b, total: E } = Ur(p, i), { toAoa: T } = Ne(u), { toText: $ } = Bt(), { copy: C } = Nt(), { write: A } = dn();
18573
18573
  return {
18574
18574
  results: b,
18575
18575
  mapping: r,
@@ -18615,7 +18615,7 @@ function yv(e, t) {
18615
18615
  },
18616
18616
  download: () => {
18617
18617
  const S = T(b.value), N = { confirmButtonText: "复制到剪切板", cancelButtonText: "下载为文件" }, U = n.value.title;
18618
- De.info("请选择数据下载方式:", N).then(() => C(A(S))).then(() => Q.success("数据已存至剪切板")).catch(() => $(U || nl(), { data: S, name: U }));
18618
+ De.info("请选择数据下载方式:", N).then(() => C($(S))).then(() => Q.success("数据已存至剪切板")).catch(() => A(U || nl(), { data: S, name: U }));
18619
18619
  }
18620
18620
  },
18621
18621
  orders: s
@@ -18732,7 +18732,7 @@ const qt = /* @__PURE__ */ D({
18732
18732
  default: f(() => [
18733
18733
  m(_, {
18734
18734
  modelValue: r.value,
18735
- "onUpdate:modelValue": p[0] || (p[0] = (A) => r.value = A),
18735
+ "onUpdate:modelValue": p[0] || (p[0] = ($) => r.value = $),
18736
18736
  options: e.codes,
18737
18737
  size: "small"
18738
18738
  }, null, 8, ["modelValue", "options"]),
@@ -18768,16 +18768,16 @@ function bv(e, t) {
18768
18768
  save_many: b,
18769
18769
  delete_many: E,
18770
18770
  switching: T
18771
- } = Fr(e, n, t), { options: A, mapping: C, root: $ } = cn(o);
18771
+ } = Fr(e, n, t), { options: $, mapping: C, root: A } = cn(o);
18772
18772
  return {
18773
18773
  manager: l,
18774
18774
  ticker: r,
18775
18775
  loading: s,
18776
18776
  view: g,
18777
18777
  model: o,
18778
- options: A,
18778
+ options: $,
18779
18779
  mapping: C,
18780
- $root: $,
18780
+ $root: A,
18781
18781
  core: u,
18782
18782
  error: a,
18783
18783
  rest: {
@@ -18841,7 +18841,7 @@ const cl = /* @__PURE__ */ D({
18841
18841
  getSelection: () => l.value?.selection,
18842
18842
  getOptions: () => h.value,
18843
18843
  getMapping: () => g.value
18844
- }), (C, $) => (y(), M(K, null, [
18844
+ }), (C, A) => (y(), M(K, null, [
18845
18845
  m(v(Kh), {
18846
18846
  ref_key: "tree",
18847
18847
  ref: l,
@@ -18864,7 +18864,7 @@ const cl = /* @__PURE__ */ D({
18864
18864
  height: e.height,
18865
18865
  single: e.single,
18866
18866
  onMeta: r.value?.open,
18867
- onTable: $[0] || ($[0] = () => {
18867
+ onTable: A[0] || (A[0] = () => {
18868
18868
  })
18869
18869
  }, {
18870
18870
  header: f(({ width: R }) => [
@@ -18913,7 +18913,7 @@ const cl = /* @__PURE__ */ D({
18913
18913
  ref_key: "meta",
18914
18914
  ref: r,
18915
18915
  view: v(d),
18916
- onReload: $[1] || ($[1] = (R) => v(E).init()),
18916
+ onReload: A[1] || (A[1] = (R) => v(E).init()),
18917
18917
  switching: v(T)
18918
18918
  }, null, 8, ["view", "switching"])
18919
18919
  ], 64));
@@ -21031,7 +21031,7 @@ const o_ = /* @__PURE__ */ D({
21031
21031
  });
21032
21032
  }
21033
21033
  return t({ open: g }), (p, _) => {
21034
- const b = w("el-checkbox"), E = w("el-space"), T = w("el-option"), A = w("el-select");
21034
+ const b = w("el-checkbox"), E = w("el-space"), T = w("el-option"), $ = w("el-select");
21035
21035
  return y(), k(v(oe), {
21036
21036
  ref_key: "dialog",
21037
21037
  ref: n,
@@ -21067,7 +21067,7 @@ const o_ = /* @__PURE__ */ D({
21067
21067
  })
21068
21068
  ]),
21069
21069
  tool: f(() => [
21070
- a.value ? (y(), k(A, {
21070
+ a.value ? (y(), k($, {
21071
21071
  key: 0,
21072
21072
  disabled: r.value,
21073
21073
  modelValue: s.value,