fast-crud-ui3 1.5.12-beta → 1.5.12-beta1

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.
@@ -593,44 +593,44 @@ function qf() {
593
593
  }
594
594
  });
595
595
  var h = f(279), y = /* @__PURE__ */ f.n(h), p = f(370), g = /* @__PURE__ */ f.n(p), v = f(817), b = /* @__PURE__ */ f.n(v);
596
- function C(N) {
596
+ function C(Y) {
597
597
  try {
598
- return document.execCommand(N);
598
+ return document.execCommand(Y);
599
599
  } catch {
600
600
  return !1;
601
601
  }
602
602
  }
603
- var O = function(N) {
604
- var I = b()(N);
603
+ var O = function(Y) {
604
+ var I = b()(Y);
605
605
  return C("cut"), I;
606
606
  }, w = O;
607
- function M(N) {
607
+ function M(Y) {
608
608
  var I = document.documentElement.getAttribute("dir") === "rtl", U = document.createElement("textarea");
609
609
  U.style.fontSize = "12pt", U.style.border = "0", U.style.padding = "0", U.style.margin = "0", U.style.position = "absolute", U.style[I ? "right" : "left"] = "-9999px";
610
610
  var F = window.pageYOffset || document.documentElement.scrollTop;
611
- return U.style.top = "".concat(F, "px"), U.setAttribute("readonly", ""), U.value = N, U;
611
+ return U.style.top = "".concat(F, "px"), U.setAttribute("readonly", ""), U.value = Y, U;
612
612
  }
613
- var Z = function(N, I) {
614
- var U = M(N);
613
+ var Z = function(Y, I) {
614
+ var U = M(Y);
615
615
  I.container.appendChild(U);
616
616
  var F = b()(U);
617
617
  return C("copy"), U.remove(), F;
618
- }, R = function(N) {
618
+ }, R = function(Y) {
619
619
  var I = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
620
620
  container: document.body
621
621
  }, U = "";
622
- return typeof N == "string" ? U = Z(N, I) : N instanceof HTMLInputElement && !["text", "search", "url", "tel", "password"].includes(N == null ? void 0 : N.type) ? U = Z(N.value, I) : (U = b()(N), C("copy")), U;
622
+ return typeof Y == "string" ? U = Z(Y, I) : Y instanceof HTMLInputElement && !["text", "search", "url", "tel", "password"].includes(Y == null ? void 0 : Y.type) ? U = Z(Y.value, I) : (U = b()(Y), C("copy")), U;
623
623
  }, B = R;
624
- function Q(N) {
624
+ function Q(Y) {
625
625
  "@babel/helpers - typeof";
626
626
  return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Q = function(I) {
627
627
  return typeof I;
628
628
  } : Q = function(I) {
629
629
  return I && typeof Symbol == "function" && I.constructor === Symbol && I !== Symbol.prototype ? "symbol" : typeof I;
630
- }, Q(N);
630
+ }, Q(Y);
631
631
  }
632
632
  var X = function() {
633
- var N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, I = N.action, U = I === void 0 ? "copy" : I, F = N.container, re = N.target, Fe = N.text;
633
+ var Y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, I = Y.action, U = I === void 0 ? "copy" : I, F = Y.container, re = Y.target, Fe = Y.text;
634
634
  if (U !== "copy" && U !== "cut")
635
635
  throw new Error('Invalid "action" value, use either "copy" or "cut"');
636
636
  if (re !== void 0)
@@ -650,41 +650,41 @@ function qf() {
650
650
  container: F
651
651
  });
652
652
  }, Se = X;
653
- function oe(N) {
653
+ function oe(Y) {
654
654
  "@babel/helpers - typeof";
655
655
  return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? oe = function(I) {
656
656
  return typeof I;
657
657
  } : oe = function(I) {
658
658
  return I && typeof Symbol == "function" && I.constructor === Symbol && I !== Symbol.prototype ? "symbol" : typeof I;
659
- }, oe(N);
659
+ }, oe(Y);
660
660
  }
661
- function je(N, I) {
662
- if (!(N instanceof I))
661
+ function je(Y, I) {
662
+ if (!(Y instanceof I))
663
663
  throw new TypeError("Cannot call a class as a function");
664
664
  }
665
- function de(N, I) {
665
+ function de(Y, I) {
666
666
  for (var U = 0; U < I.length; U++) {
667
667
  var F = I[U];
668
- F.enumerable = F.enumerable || !1, F.configurable = !0, "value" in F && (F.writable = !0), Object.defineProperty(N, F.key, F);
668
+ F.enumerable = F.enumerable || !1, F.configurable = !0, "value" in F && (F.writable = !0), Object.defineProperty(Y, F.key, F);
669
669
  }
670
670
  }
671
- function ze(N, I, U) {
672
- return I && de(N.prototype, I), U && de(N, U), N;
671
+ function ze(Y, I, U) {
672
+ return I && de(Y.prototype, I), U && de(Y, U), Y;
673
673
  }
674
- function Ee(N, I) {
674
+ function Ee(Y, I) {
675
675
  if (typeof I != "function" && I !== null)
676
676
  throw new TypeError("Super expression must either be null or a function");
677
- N.prototype = Object.create(I && I.prototype, { constructor: { value: N, writable: !0, configurable: !0 } }), I && fe(N, I);
677
+ Y.prototype = Object.create(I && I.prototype, { constructor: { value: Y, writable: !0, configurable: !0 } }), I && fe(Y, I);
678
678
  }
679
- function fe(N, I) {
679
+ function fe(Y, I) {
680
680
  return fe = Object.setPrototypeOf || function(U, F) {
681
681
  return U.__proto__ = F, U;
682
- }, fe(N, I);
682
+ }, fe(Y, I);
683
683
  }
684
- function St(N) {
684
+ function St(Y) {
685
685
  var I = Ot();
686
686
  return function() {
687
- var U = Et(N), F;
687
+ var U = Et(Y), F;
688
688
  if (I) {
689
689
  var re = Et(this).constructor;
690
690
  F = Reflect.construct(U, arguments, re);
@@ -693,13 +693,13 @@ function qf() {
693
693
  return Tt(this, F);
694
694
  };
695
695
  }
696
- function Tt(N, I) {
697
- return I && (oe(I) === "object" || typeof I == "function") ? I : Ft(N);
696
+ function Tt(Y, I) {
697
+ return I && (oe(I) === "object" || typeof I == "function") ? I : Ft(Y);
698
698
  }
699
- function Ft(N) {
700
- if (N === void 0)
699
+ function Ft(Y) {
700
+ if (Y === void 0)
701
701
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
702
- return N;
702
+ return Y;
703
703
  }
704
704
  function Ot() {
705
705
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
@@ -713,18 +713,18 @@ function qf() {
713
713
  return !1;
714
714
  }
715
715
  }
716
- function Et(N) {
716
+ function Et(Y) {
717
717
  return Et = Object.setPrototypeOf ? Object.getPrototypeOf : function(I) {
718
718
  return I.__proto__ || Object.getPrototypeOf(I);
719
- }, Et(N);
719
+ }, Et(Y);
720
720
  }
721
- function Mt(N, I) {
722
- var U = "data-clipboard-".concat(N);
721
+ function Mt(Y, I) {
722
+ var U = "data-clipboard-".concat(Y);
723
723
  if (I.hasAttribute(U))
724
724
  return I.getAttribute(U);
725
725
  }
726
- var We = /* @__PURE__ */ function(N) {
727
- Ee(U, N);
726
+ var We = /* @__PURE__ */ function(Y) {
727
+ Ee(U, Y);
728
728
  var I = St(U);
729
729
  function U(F, re) {
730
730
  var Fe;
@@ -2411,7 +2411,7 @@ Arguments: ` + Array.prototype.slice.call(u).join("") + `
2411
2411
  var u = "" + Math.abs(n), m = s - u.length, _ = n >= 0;
2412
2412
  return (_ ? l ? "+" : "" : "-") + Math.pow(10, Math.max(0, m)).toString().substr(1) + u;
2413
2413
  }
2414
- var Dt = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, N = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, I = {}, U = {};
2414
+ var Dt = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, Y = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, I = {}, U = {};
2415
2415
  function F(n, s, l, u) {
2416
2416
  var m = u;
2417
2417
  typeof u == "string" && (m = function() {
@@ -2447,11 +2447,11 @@ Arguments: ` + Array.prototype.slice.call(u).join("") + `
2447
2447
  function u(m) {
2448
2448
  return s.longDateFormat(m) || m;
2449
2449
  }
2450
- for (N.lastIndex = 0; l >= 0 && N.test(n); )
2450
+ for (Y.lastIndex = 0; l >= 0 && Y.test(n); )
2451
2451
  n = n.replace(
2452
- N,
2452
+ Y,
2453
2453
  u
2454
- ), N.lastIndex = 0, l -= 1;
2454
+ ), Y.lastIndex = 0, l -= 1;
2455
2455
  return n;
2456
2456
  }
2457
2457
  var Hn = {
@@ -4511,7 +4511,7 @@ function Pe(e, t, r) {
4511
4511
  return e ? t : r;
4512
4512
  }
4513
4513
  function cn(e, t) {
4514
- return Y(e) ? t : e;
4514
+ return N(e) ? t : e;
4515
4515
  }
4516
4516
  function mv(e, t = "_") {
4517
4517
  return /[A-Z]/.test(e) ? e.replace(/([A-Z])/g, `${t}$1`).toLowerCase() : e;
@@ -4597,7 +4597,7 @@ function vv(e, t = "14px Arial") {
4597
4597
  function _v(e) {
4598
4598
  return Object.prototype.toString.call(e);
4599
4599
  }
4600
- function Y(e) {
4600
+ function N(e) {
4601
4601
  if (e && typeof e == "object" && e.$ && e.$.vnode)
4602
4602
  throw new Error("组件实例不要用isEmpty判空!");
4603
4603
  switch (_v(e)) {
@@ -4725,24 +4725,24 @@ function rl(e, t, r = "end") {
4725
4725
  }), o;
4726
4726
  }
4727
4727
  const Sv = function(e, t) {
4728
- return Y(e) || !Le(e) ? "" : dn(t) ? e.length > t ? e.slice(0, t) + "..." : e : (console.warn('The "ellipsis" filter requires a numeric second argument as the maxLength.'), e);
4728
+ return N(e) || !Le(e) ? "" : dn(t) ? e.length > t ? e.slice(0, t) + "..." : e : (console.warn('The "ellipsis" filter requires a numeric second argument as the maxLength.'), e);
4729
4729
  }, Tv = function(e, t) {
4730
4730
  const r = new Date(e), o = t.replace(/yyyy/g, "YYYY").replace(/dd/g, "DD");
4731
4731
  return pv(r).format(o);
4732
4732
  }, Fv = function(e) {
4733
4733
  let t;
4734
- return Y(e) ? t = /* @__PURE__ */ new Date() : t = Yn(e), t.setHours(0, 0, 0, 0), t;
4734
+ return N(e) ? t = /* @__PURE__ */ new Date() : t = Yn(e), t.setHours(0, 0, 0, 0), t;
4735
4735
  }, Ov = function(e) {
4736
4736
  let t;
4737
- Y(e) ? t = /* @__PURE__ */ new Date() : t = Yn(e);
4737
+ N(e) ? t = /* @__PURE__ */ new Date() : t = Yn(e);
4738
4738
  const r = t.getDay(), o = t.getDate() - r + (r === 0 ? -6 : 1);
4739
4739
  return t.setDate(o), t.setHours(0, 0, 0, 0), t;
4740
4740
  }, Ev = function(e) {
4741
4741
  let t;
4742
- return Y(e) ? t = /* @__PURE__ */ new Date() : t = Yn(e), t.setDate(1), t.setHours(0, 0, 0, 0), t;
4742
+ return N(e) ? t = /* @__PURE__ */ new Date() : t = Yn(e), t.setDate(1), t.setHours(0, 0, 0, 0), t;
4743
4743
  };
4744
4744
  function Mv(e) {
4745
- if (Y(e) || !e.startsWith("on"))
4745
+ if (N(e) || !e.startsWith("on"))
4746
4746
  return null;
4747
4747
  const t = e.slice(2);
4748
4748
  return t.charAt(0).toLowerCase() + t.slice(1);
@@ -4787,7 +4787,7 @@ function Av(e, t) {
4787
4787
  }
4788
4788
  function $v(e) {
4789
4789
  const t = { path: e, query: {} };
4790
- if (Y(e))
4790
+ if (N(e))
4791
4791
  return t;
4792
4792
  const r = e.startsWith("/");
4793
4793
  try {
@@ -4803,9 +4803,9 @@ function $v(e) {
4803
4803
  }
4804
4804
  }
4805
4805
  function jv(e, t) {
4806
- if (Y(t))
4806
+ if (N(t))
4807
4807
  return !0;
4808
- if (Y(e))
4808
+ if (N(e))
4809
4809
  return !1;
4810
4810
  const r = (a) => a.split(".").map((d) => {
4811
4811
  try {
@@ -5303,7 +5303,7 @@ class qe {
5303
5303
  D(this, "col");
5304
5304
  D(this, "opt");
5305
5305
  D(this, "val");
5306
- z(Le(t) && !Y(t), "col必须为有效字符串"), z(Object.values(x).indexOf(r) > -1, `opt无效:${r}`), this.col = t, this.opt = r, this.val = o;
5306
+ z(Le(t) && !N(t), "col必须为有效字符串"), z(Object.values(x).indexOf(r) > -1, `opt无效:${r}`), this.col = t, this.opt = r, this.val = o;
5307
5307
  }
5308
5308
  setOpt(t) {
5309
5309
  return this.opt = t, this;
@@ -5316,7 +5316,7 @@ class qe {
5316
5316
  return t;
5317
5317
  z(te(t), "cond不是json格式!");
5318
5318
  const { col: r, opt: o = x.EQ, val: i } = t;
5319
- return z(!Y(r), "cond格式不正确: 无col属性或其值为空!"), new qe(r, Te(o, x.EQ), i);
5319
+ return z(!N(r), "cond格式不正确: 无col属性或其值为空!"), new qe(r, Te(o, x.EQ), i);
5320
5320
  }
5321
5321
  }
5322
5322
  class Ni {
@@ -5362,7 +5362,7 @@ class cl {
5362
5362
  return this.distinct = !0, this;
5363
5363
  }
5364
5364
  addOrder(t, r) {
5365
- if (!(Y(t) || !Re(r)))
5365
+ if (!(N(t) || !Re(r)))
5366
5366
  return this.removeOrder(t), this.orders.push(new Ni(t, r)), this;
5367
5367
  }
5368
5368
  removeOrder(t) {
@@ -5501,7 +5501,7 @@ class k_ {
5501
5501
  return console.error("无法进行唯一性校验:无法获取当前记录完整数据"), Promise.resolve();
5502
5502
  const Q = R()[v];
5503
5503
  if (f === "inline") {
5504
- if (Y((Se = y.ref) == null ? void 0 : Se.editRows))
5504
+ if (N((Se = y.ref) == null ? void 0 : Se.editRows))
5505
5505
  return Promise.resolve();
5506
5506
  if (y.ref.editRows.map((de) => de.editRow).filter((de) => de[C.field] === O && de[v] !== Q).length > 0)
5507
5507
  return Promise.reject(`【${o}】${O}已存在于其它编辑行`);
@@ -5564,7 +5564,7 @@ const $n = class $n {
5564
5564
  render: Mt = () => [],
5565
5565
  conds: We = [],
5566
5566
  condGroups: Dt = [],
5567
- condExtra: N = {},
5567
+ condExtra: Y = {},
5568
5568
  beforeReset: I = ({ query: we }) => Promise.resolve(),
5569
5569
  beforeLoad: U = ({ query: we }) => Promise.resolve(),
5570
5570
  loadSuccess: F = ({ query: we, res: Me }) => Promise.resolve(Me),
@@ -5712,7 +5712,7 @@ const $n = class $n {
5712
5712
  D(this, "exportSuccess");
5713
5713
  // 导出成功后
5714
5714
  D(this, "exportFail");
5715
- z(Le(o), "title必须为字符串"), z(Re(i), "showTitle必须为布尔值"), z(Le(r), "id必须为字符串"), z(Le(a), "module必须为字符串"), z(Le(d), "baseUrl必须是字符串"), z(Re(Z) || q(Z), "enableDblClickEdit必须为布尔值或返回布尔值的函数"), z(Re(R) || q(R), "enableMulti必须为布尔值或返回布尔值的函数"), z(Re(B) || q(B), "enableIndex必须为布尔值或返回布尔值的函数"), z(Re(Q) || q(Q), "enableColumnFilter必须为布尔值或返回布尔值的函数"), z(Re(X), "lazyLoad必须为布尔值"), z(["inline", "form"].includes(Se), "editType必须为inline或form"), z(Re(oe) || q(oe), "insertable必须为布尔值或返回布尔值的函数"), z(Re(je) || q(je), "updatable必须为布尔值或返回布尔值的函数"), z(Re(de) || q(de), "deletable必须为布尔值或返回布尔值的函数"), z(Re(ze) || q(ze), "exportable必须为布尔值或返回布尔值的函数"), z(Le(Ee), "idField必须为字符串"), z(Le(fe), "createTimeField必须为字符串"), z(Le(St), "sortField必须为字符串"), z(Re(Tt), "sortDesc必须为布尔值"), z(Ne(Ft), "moreButtons必须是数组"), z(te(Ot), "pagination必须是对象"), z(q(I), "beforeReset必须为函数"), z(q(U), "beforeLoad必须为函数"), z(q(F), "loadSuccess必须为函数"), z(q(re), "loadFail必须为函数"), z(q(Fe), "beforeToInsert必须为函数"), z(q(Je), "beforeInsert必须为函数"), z(q(mn), "insertSuccess必须为函数"), z(q(Hn), "insertFail必须为函数"), z(q(Gn), "beforeToUpdate必须为函数"), z(q(Kn), "beforeUpdate必须为函数"), z(q(Qn), "updateSuccess必须为函数"), z(q(Zn), "updateFail必须为函数"), z(q(Jn), "beforeDeleteTip必须为函数"), z(q(Xn), "beforeDelete必须为函数"), z(q(er), "deleteSuccess必须为函数"), z(q(tr), "deleteFail必须为函数"), z(q(nr), "beforeCancel必须为函数"), z(q(Mt), "render必须是一个函数"), z(q(yn), "beforeExport必须是一个函数"), z(q(Be), "exportSuccess必须是一个函数"), z(q(Gt), "exportFail必须是一个函数"), z(Ne(We), "conds必须是Cond对象(或可转换为Cond对象的json)组成的数组"), z(Ne(Dt), "condGroups必须是数组"), z(te(N), "condExtra必须是对象"), this.context = t, this.title = o, this.baseUrl = Te(d, a), this.id = Te(r, this.baseUrl), this.pageUrl = Te(f, this.baseUrl + "/page"), this.listUrl = Te(h, this.baseUrl + "/list"), this.insertUrl = Te(y, this.baseUrl + "/insert"), this.batchInsertUrl = Te(p, this.baseUrl + "/insert/batch"), this.updateUrl = Te(g, this.baseUrl + "/update"), this.batchUpdateUrl = Te(v, this.baseUrl + "/update/batch"), this.deleteUrl = Te(b, this.baseUrl + "/delete"), this.batchDeleteUrl = Te(C, this.baseUrl + "/delete/batch"), this.uploadUrl = Te(O, this.baseUrl + "/upload"), this.exportUrl = Te(w, this.baseUrl + "/export"), this.existsUrl = Te(M, this.baseUrl + "/exists"), this.enableDblClickEdit = Z, this.enableMulti = R, this.enableIndex = B, this.enableColumnFilter = Q, this.lazyLoad = X, this.editType = Se, this.insertable = oe, this.updatable = je, this.deletable = de, this.exportable = ze, this.idField = Ee, this.createTimeField = fe, this.sortField = Te(St, Te(fe, Ee)), this.sortDesc = Tt, this.moreButtons = Ft, Li(this.pagination, Ot, !0, !0), Li(this.style, Et, !0, !0), this.conds = We.map((we) => qe.build(we)), this.condGroups = Dt, this.condExtra = N, this.beforeReset = I, this.beforeLoad = U, this.loadSuccess = F, this.loadFail = re, this.beforeToInsert = Fe, this.beforeInsert = Je, this.insertSuccess = mn, this.insertFail = Hn, this.beforeToUpdate = Gn, this.beforeUpdate = Kn, this.updateSuccess = Qn, this.updateFail = Zn, this.beforeDeleteTip = Jn, this.beforeDelete = Xn, this.deleteSuccess = er, this.deleteFail = tr, this.beforeCancel = nr, this.render = Mt, this.beforeExport = yn, this.exportSuccess = Be, this.exportFail = Gt;
5715
+ z(Le(o), "title必须为字符串"), z(Re(i), "showTitle必须为布尔值"), z(Le(r), "id必须为字符串"), z(Le(a), "module必须为字符串"), z(Le(d), "baseUrl必须是字符串"), z(Re(Z) || q(Z), "enableDblClickEdit必须为布尔值或返回布尔值的函数"), z(Re(R) || q(R), "enableMulti必须为布尔值或返回布尔值的函数"), z(Re(B) || q(B), "enableIndex必须为布尔值或返回布尔值的函数"), z(Re(Q) || q(Q), "enableColumnFilter必须为布尔值或返回布尔值的函数"), z(Re(X), "lazyLoad必须为布尔值"), z(["inline", "form"].includes(Se), "editType必须为inline或form"), z(Re(oe) || q(oe), "insertable必须为布尔值或返回布尔值的函数"), z(Re(je) || q(je), "updatable必须为布尔值或返回布尔值的函数"), z(Re(de) || q(de), "deletable必须为布尔值或返回布尔值的函数"), z(Re(ze) || q(ze), "exportable必须为布尔值或返回布尔值的函数"), z(Le(Ee), "idField必须为字符串"), z(Le(fe), "createTimeField必须为字符串"), z(Le(St), "sortField必须为字符串"), z(Re(Tt), "sortDesc必须为布尔值"), z(Ne(Ft), "moreButtons必须是数组"), z(te(Ot), "pagination必须是对象"), z(q(I), "beforeReset必须为函数"), z(q(U), "beforeLoad必须为函数"), z(q(F), "loadSuccess必须为函数"), z(q(re), "loadFail必须为函数"), z(q(Fe), "beforeToInsert必须为函数"), z(q(Je), "beforeInsert必须为函数"), z(q(mn), "insertSuccess必须为函数"), z(q(Hn), "insertFail必须为函数"), z(q(Gn), "beforeToUpdate必须为函数"), z(q(Kn), "beforeUpdate必须为函数"), z(q(Qn), "updateSuccess必须为函数"), z(q(Zn), "updateFail必须为函数"), z(q(Jn), "beforeDeleteTip必须为函数"), z(q(Xn), "beforeDelete必须为函数"), z(q(er), "deleteSuccess必须为函数"), z(q(tr), "deleteFail必须为函数"), z(q(nr), "beforeCancel必须为函数"), z(q(Mt), "render必须是一个函数"), z(q(yn), "beforeExport必须是一个函数"), z(q(Be), "exportSuccess必须是一个函数"), z(q(Gt), "exportFail必须是一个函数"), z(Ne(We), "conds必须是Cond对象(或可转换为Cond对象的json)组成的数组"), z(Ne(Dt), "condGroups必须是数组"), z(te(Y), "condExtra必须是对象"), this.context = t, this.title = o, this.baseUrl = Te(d, a), this.id = Te(r, this.baseUrl), this.pageUrl = Te(f, this.baseUrl + "/page"), this.listUrl = Te(h, this.baseUrl + "/list"), this.insertUrl = Te(y, this.baseUrl + "/insert"), this.batchInsertUrl = Te(p, this.baseUrl + "/insert/batch"), this.updateUrl = Te(g, this.baseUrl + "/update"), this.batchUpdateUrl = Te(v, this.baseUrl + "/update/batch"), this.deleteUrl = Te(b, this.baseUrl + "/delete"), this.batchDeleteUrl = Te(C, this.baseUrl + "/delete/batch"), this.uploadUrl = Te(O, this.baseUrl + "/upload"), this.exportUrl = Te(w, this.baseUrl + "/export"), this.existsUrl = Te(M, this.baseUrl + "/exists"), this.enableDblClickEdit = Z, this.enableMulti = R, this.enableIndex = B, this.enableColumnFilter = Q, this.lazyLoad = X, this.editType = Se, this.insertable = oe, this.updatable = je, this.deletable = de, this.exportable = ze, this.idField = Ee, this.createTimeField = fe, this.sortField = Te(St, Te(fe, Ee)), this.sortDesc = Tt, this.moreButtons = Ft, Li(this.pagination, Ot, !0, !0), Li(this.style, Et, !0, !0), this.conds = We.map((we) => qe.build(we)), this.condGroups = Dt, this.condExtra = Y, this.beforeReset = I, this.beforeLoad = U, this.loadSuccess = F, this.loadFail = re, this.beforeToInsert = Fe, this.beforeInsert = Je, this.insertSuccess = mn, this.insertFail = Hn, this.beforeToUpdate = Gn, this.beforeUpdate = Kn, this.updateSuccess = Qn, this.updateFail = Zn, this.beforeDeleteTip = Jn, this.beforeDelete = Xn, this.deleteSuccess = er, this.deleteFail = tr, this.beforeCancel = nr, this.render = Mt, this.beforeExport = yn, this.exportSuccess = Be, this.exportFail = Gt;
5716
5716
  }
5717
5717
  /**
5718
5718
  * 向内置条件组中增加条件
@@ -5774,7 +5774,7 @@ const $n = class $n {
5774
5774
  * 批量删除: 删除当前勾选的行记录
5775
5775
  */
5776
5776
  _deleteRows(t) {
5777
- return this.deletable === !1 ? Promise.reject("当前表格不允许删除") : Y(t) ? (De.warning("请先选中一条记录"), Promise.reject("请先选中一条记录")) : new Promise((r, o) => {
5777
+ return this.deletable === !1 ? Promise.reject("当前表格不允许删除") : N(t) ? (De.warning("请先选中一条记录"), Promise.reject("请先选中一条记录")) : new Promise((r, o) => {
5778
5778
  const i = t.map((f) => f.row), { context: a, beforeDeleteTip: d } = this;
5779
5779
  d.call(a, {
5780
5780
  fatRows: t,
@@ -5909,7 +5909,7 @@ const $n = class $n {
5909
5909
  * @private
5910
5910
  */
5911
5911
  _exist(t = []) {
5912
- if (Y(t))
5912
+ if (N(t))
5913
5913
  return Promise.resolve();
5914
5914
  const { existsUrl: r } = this;
5915
5915
  return new Promise((o, i) => {
@@ -5947,14 +5947,14 @@ const C_ = {
5947
5947
  },
5948
5948
  // 是否展示为链接
5949
5949
  showAsLink() {
5950
- return this.linkTo === !0 || Le(this.linkTo) && !Y(this.linkTo);
5950
+ return this.linkTo === !0 || Le(this.linkTo) && !N(this.linkTo);
5951
5951
  },
5952
5952
  // 链接地址
5953
5953
  linkUrl() {
5954
5954
  return this.showAsLink ? this.linkTo === !0 ? this.value : this.linkTo : null;
5955
5955
  },
5956
5956
  needEllipsis() {
5957
- return Y(this.value) ? !1 : Sr(this.value).length > this.showLength;
5957
+ return N(this.value) ? !1 : Sr(this.value).length > this.showLength;
5958
5958
  },
5959
5959
  row() {
5960
5960
  return this.fatRow.row;
@@ -5975,7 +5975,7 @@ const C_ = {
5975
5975
  // 跳转到目标地址(支持路由名、路由地址、http绝对地址)
5976
5976
  jumpToLink() {
5977
5977
  const { linkUrl: e } = this;
5978
- if (Y(e))
5978
+ if (N(e))
5979
5979
  return;
5980
5980
  const t = Av(e, this.row);
5981
5981
  if (ao(t)) {
@@ -6149,10 +6149,10 @@ const E_ = {
6149
6149
  const e = this.modelValue;
6150
6150
  let t = [];
6151
6151
  if (this.multiple)
6152
- Ne(e) ? t = e : Y(e) || t.push({ name: $i(e), url: e });
6152
+ Ne(e) ? t = e : N(e) || t.push({ name: $i(e), url: e });
6153
6153
  else {
6154
6154
  const r = Ne(e) ? kv(e) : e;
6155
- Y(r) || t.push({ name: $i(e), url: r });
6155
+ N(r) || t.push({ name: $i(e), url: r });
6156
6156
  }
6157
6157
  return t.map((r) => ({ name: r.name, url: this.disposeUrl(r.url, !0) }));
6158
6158
  },
@@ -6163,7 +6163,7 @@ const E_ = {
6163
6163
  return this.listType === "picture-card";
6164
6164
  },
6165
6165
  hideUploadButton() {
6166
- return this.disabled || !Y(this.files) && this.files.length >= this.limit;
6166
+ return this.disabled || !N(this.files) && this.files.length >= this.limit;
6167
6167
  }
6168
6168
  },
6169
6169
  data() {
@@ -6177,7 +6177,7 @@ const E_ = {
6177
6177
  * @param fileList
6178
6178
  */
6179
6179
  emitValue(e) {
6180
- if (Y(e)) {
6180
+ if (N(e)) {
6181
6181
  this.$emit("update:modelValue", null);
6182
6182
  return;
6183
6183
  }
@@ -6232,7 +6232,7 @@ const E_ = {
6232
6232
  * @return {*}
6233
6233
  */
6234
6234
  disposeUrl(e, t) {
6235
- return !Le(e) || Y(e) || ao(e) ? e : t ? this.apiPrefix + e : Xa(e, this.apiPrefix);
6235
+ return !Le(e) || N(e) || ao(e) ? e : t ? this.apiPrefix + e : Xa(e, this.apiPrefix);
6236
6236
  }
6237
6237
  }
6238
6238
  }, M_ = ["src"], D_ = { class: "el-upload-list__item-actions" }, P_ = ["onClick"], x_ = ["onClick"], R_ = {
@@ -6465,7 +6465,7 @@ const I_ = {
6465
6465
  return uo;
6466
6466
  },
6467
6467
  activeFilter() {
6468
- if (this.filters.length === 0 || Y(this.activeFilterCol))
6468
+ if (this.filters.length === 0 || N(this.activeFilterCol))
6469
6469
  return null;
6470
6470
  const e = this.filters.find((t) => t.col === this.activeFilterCol);
6471
6471
  return e.disabled = !1, e;
@@ -6493,7 +6493,7 @@ const I_ = {
6493
6493
  },
6494
6494
  methods: {
6495
6495
  initActiveFilterCol() {
6496
- if (!Y(this.filters)) {
6496
+ if (!N(this.filters)) {
6497
6497
  const e = this.filters.find((t) => t.disabled === !1);
6498
6498
  this.activeFilterCol = ae(e) ? this.filters[0].col : e.col;
6499
6499
  }
@@ -7827,14 +7827,14 @@ Bn.validators = Rn;
7827
7827
  function yl(e, t) {
7828
7828
  const { col: r, props: o } = t, i = e[r];
7829
7829
  return new Promise((a, d) => {
7830
- if (Y(o == null ? void 0 : o.rules)) {
7830
+ if (N(o == null ? void 0 : o.rules)) {
7831
7831
  a();
7832
7832
  return;
7833
7833
  }
7834
7834
  o.rules.forEach((h) => h.getRow = () => e), new Bn({
7835
7835
  [r]: cn(o.rules, [])
7836
7836
  }).validate({ [r]: i }, async (h, y) => {
7837
- Y(h) ? (o.class = Te(o.class, "").replaceAll("fc-valid-error", ""), a()) : (o.class = Te(o.class, "") + " fc-valid-error", d(h));
7837
+ N(h) ? (o.class = Te(o.class, "").replaceAll("fc-valid-error", ""), a()) : (o.class = Te(o.class, "") + " fc-valid-error", d(h));
7838
7838
  });
7839
7839
  });
7840
7840
  }
@@ -7879,7 +7879,7 @@ function ks(e, t, r = "normal", o) {
7879
7879
  }
7880
7880
  function ya(e) {
7881
7881
  const t = {};
7882
- if (!Y(e)) {
7882
+ if (!N(e)) {
7883
7883
  for (const r in e)
7884
7884
  if (e[r].hasOwnProperty("default")) {
7885
7885
  const o = e[r].default;
@@ -7909,7 +7909,7 @@ function P0(e, t, r) {
7909
7909
  ...ya(h),
7910
7910
  ...p
7911
7911
  }, ...g }, C = {}, { showOverflowTooltip: O, minWidth: w, ...M } = b, { label: Z, prop: R, filter: B, quickFilter: Q, dynamicFilter: X, unique: Se, firstFilter: oe, hidden: je } = M;
7912
- if (Y(R))
7912
+ if (N(R))
7913
7913
  continue;
7914
7914
  const de = {
7915
7915
  label: Z,
@@ -8097,7 +8097,7 @@ function j0(e, t) {
8097
8097
  function I0(e, t) {
8098
8098
  try {
8099
8099
  const r = Pv(`STORED_CONDS:${e.id}`);
8100
- if (Y(r))
8100
+ if (N(r))
8101
8101
  return [];
8102
8102
  const o = JSON.parse(r);
8103
8103
  return bl(e, t, o, !1);
@@ -8107,15 +8107,15 @@ function I0(e, t) {
8107
8107
  }
8108
8108
  function bl(e, t, r, o) {
8109
8109
  const i = [];
8110
- if (Y(r))
8110
+ if (N(r))
8111
8111
  return i;
8112
8112
  for (let a = 0; a < r.length; a++) {
8113
8113
  const { label: d, conds: f = [] } = r[a];
8114
- if (Y(d)) {
8114
+ if (N(d)) {
8115
8115
  console.error("label can not be empty in storeFilters of tableOption");
8116
8116
  continue;
8117
8117
  }
8118
- if (Y(f)) {
8118
+ if (N(f)) {
8119
8119
  console.error("conds can not be empty in storeFilters of tableOption");
8120
8120
  continue;
8121
8121
  }
@@ -8191,7 +8191,7 @@ const V0 = {
8191
8191
  label: _l,
8192
8192
  handleAddCond(e, t) {
8193
8193
  const r = ho(e, this.columnConfig, this.tableOption);
8194
- Y(r) || t.filters.push(r);
8194
+ N(r) || t.filters.push(r);
8195
8195
  },
8196
8196
  delConfig(e, t) {
8197
8197
  t.splice(e, 1);
@@ -8215,10 +8215,10 @@ const V0 = {
8215
8215
  */
8216
8216
  saveStoreGroup() {
8217
8217
  const e = this.groups.filter((o) => o.buildIn === !1), t = this.groups.map((o) => o.label), r = t.filter((o, i) => t.indexOf(o) !== i);
8218
- On(Y(r), "组合名重复,请修改:" + [...new Set(r)]);
8218
+ On(N(r), "组合名重复,请修改:" + [...new Set(r)]);
8219
8219
  for (let o = 0; o < e.length; o++) {
8220
8220
  const { label: i, filters: a } = e[o];
8221
- On(!Y(i), "请填写组合名"), On(i.length <= 10, `组合名长度不得超过10:${i}`), On(!Y(a), `请为“${i}”配置筛选项`), On(a.every((d) => d.isEffective()), `“${i}”存在无效筛选项`);
8221
+ On(!N(i), "请填写组合名"), On(i.length <= 10, `组合名长度不得超过10:${i}`), On(!N(a), `请为“${i}”配置筛选项`), On(a.every((d) => d.isEffective()), `“${i}”存在无效筛选项`);
8222
8222
  }
8223
8223
  j0(this.tableOption, e), De.success("保存成功"), this.$emit("ok");
8224
8224
  }
@@ -8396,7 +8396,7 @@ const H0 = /* @__PURE__ */ ye(V0, [["render", B0], ["__scopeId", "data-v-76f9cf6
8396
8396
  },
8397
8397
  computed: {
8398
8398
  showLabel() {
8399
- return Y(this.groupLabels) ? "" : this.groupLabels[0] + (this.groupLabels.length > 1 ? `+${this.groupLabels.length - 1}` : "");
8399
+ return N(this.groupLabels) ? "" : this.groupLabels[0] + (this.groupLabels.length > 1 ? `+${this.groupLabels.length - 1}` : "");
8400
8400
  }
8401
8401
  },
8402
8402
  mounted() {
@@ -8408,7 +8408,7 @@ const H0 = /* @__PURE__ */ ye(V0, [["render", B0], ["__scopeId", "data-v-76f9cf6
8408
8408
  },
8409
8409
  initCreateTimeFilter() {
8410
8410
  const { createTimeField: e } = this.tableOption;
8411
- if (Y(e))
8411
+ if (N(e))
8412
8412
  return;
8413
8413
  const t = (r) => {
8414
8414
  const o = ho(e, this.columnConfig, this.tableOption);
@@ -8472,7 +8472,7 @@ const H0 = /* @__PURE__ */ ye(V0, [["render", B0], ["__scopeId", "data-v-76f9cf6
8472
8472
  */
8473
8473
  getStoreFilters() {
8474
8474
  const e = [];
8475
- Y(this.storeGroups) && this.init();
8475
+ N(this.storeGroups) && this.init();
8476
8476
  for (const t of this.storeGroups) {
8477
8477
  if (this.groupLabels.indexOf(t.label) === -1)
8478
8478
  continue;
@@ -8575,7 +8575,7 @@ const X0 = {
8575
8575
  },
8576
8576
  distinctFilteredOptions() {
8577
8577
  const { distinctOptionFilterKeyword: e, distinctOptionAsc: t } = this;
8578
- return this.distinctOptions.filter((r) => Y(e) || Sr(r.label).indexOf(e) !== -1).sort((r, o) => {
8578
+ return this.distinctOptions.filter((r) => N(e) || Sr(r.label).indexOf(e) !== -1).sort((r, o) => {
8579
8579
  const i = Sr(r.label), a = Sr(o.label);
8580
8580
  return t ? i.localeCompare(a) : a.localeCompare(i);
8581
8581
  });
@@ -8992,7 +8992,7 @@ const gb = {
8992
8992
  const e = this.row.editRow, t = {};
8993
8993
  for (const r in this.config) {
8994
8994
  const { component: o, props: { rules: i = [] } } = this.config[r];
8995
- Y(i) || (i.forEach((a) => a.getRow = () => e), t[r] = i), o === "fast-object-picker" && (this.config[r].props.pickObject = e);
8995
+ N(i) || (i.forEach((a) => a.getRow = () => e), t[r] = i), o === "fast-object-picker" && (this.config[r].props.pickObject = e);
8996
8996
  }
8997
8997
  return {
8998
8998
  rules: t,
@@ -9003,7 +9003,7 @@ const gb = {
9003
9003
  localLayout() {
9004
9004
  let { layout: e, config: t } = this;
9005
9005
  const r = Object.keys(t);
9006
- return Y(e) && (e = r.join(",")), e.split(",").map((o) => {
9006
+ return N(e) && (e = r.join(",")), e.split(",").map((o) => {
9007
9007
  const i = {}, a = o.split("|"), d = Math.floor(24 / a.length);
9008
9008
  for (let f = 0; f < a.length; f++) {
9009
9009
  const h = a[f].trim();
@@ -9304,9 +9304,9 @@ const kb = {
9304
9304
  * @param asc
9305
9305
  */
9306
9306
  buildOrder(e, t) {
9307
- if (!Y(e)) {
9307
+ if (!N(e)) {
9308
9308
  if (Re(t)) {
9309
- !Y(this.option.sortField) && this.pageQuery.orders.length === 1 && this.pageQuery.orders[0].col === this.option.sortField && this.pageQuery.removeOrder(this.option.sortField), this.pageQuery.addOrder(e, t);
9309
+ !N(this.option.sortField) && this.pageQuery.orders.length === 1 && this.pageQuery.orders[0].col === this.option.sortField && this.pageQuery.removeOrder(this.option.sortField), this.pageQuery.addOrder(e, t);
9310
9310
  return;
9311
9311
  }
9312
9312
  this.pageQuery.removeOrder(e), this.pageQuery.orders.length === 0 && this.pageQuery.addOrder(this.option.sortField, !this.option.sortDesc);
@@ -9333,7 +9333,7 @@ const kb = {
9333
9333
  r.push(...this.option.conds), this.pageQuery.setConds(r);
9334
9334
  const d = this.option.context, f = this.option.beforeLoad;
9335
9335
  return new Promise((h, y) => {
9336
- !Y(e) && dn(e) && (this.pageQuery.current = e), f.call(d, { query: this.pageQuery }).then(() => {
9336
+ !N(e) && dn(e) && (this.pageQuery.current = e), f.call(d, { query: this.pageQuery }).then(() => {
9337
9337
  this.loading = !0, this.option.enableFilterCache && this.stashFilter(), at(this.option.pageUrl, this.pageQuery.toJson()).then((p) => {
9338
9338
  this.exitEditStatus(), this.option.loadSuccess.call(d, { query: this.pageQuery, res: p }).then(({ records: v = [], total: b = 0 }) => {
9339
9339
  this.list = v.map((C) => ks(C, this.columnConfig, "normal", "inline")), this.total = b, Yt(() => {
@@ -9443,7 +9443,7 @@ const kb = {
9443
9443
  if (this.option.deletable === !1)
9444
9444
  return;
9445
9445
  const { choseRow: e } = this, t = [];
9446
- Y(e) || t.push(e), this.option._deleteRows(t).then(() => this.pageLoad());
9446
+ N(e) || t.push(e), this.option._deleteRows(t).then(() => this.pageLoad());
9447
9447
  },
9448
9448
  deleteRows() {
9449
9449
  this.option.deletable !== !1 && this.option._deleteRows(this.checkedRows).then(() => this.pageLoad());
@@ -9600,7 +9600,7 @@ const kb = {
9600
9600
  if (this.status !== "insert" || this.editRows.length === 0)
9601
9601
  return;
9602
9602
  const e = cn(this.checkedRows, this.choseRow === null ? [] : [this.choseRow]);
9603
- if (Y(e)) {
9603
+ if (N(e)) {
9604
9604
  De.warning("请选择要移除的新建行");
9605
9605
  return;
9606
9606
  }
@@ -9680,7 +9680,7 @@ const kb = {
9680
9680
  popStashFilter() {
9681
9681
  try {
9682
9682
  const e = Rv(`CACHE_FILTER:${this.option.id}`);
9683
- if (Y(e))
9683
+ if (N(e))
9684
9684
  return;
9685
9685
  const t = JSON.parse(e), r = this.pageQuery.extra;
9686
9686
  t.forEach(({ type: o, ...i }) => {
@@ -9693,7 +9693,7 @@ const kb = {
9693
9693
  const { value: p } = i;
9694
9694
  Object.entries(r).forEach(([g, v]) => {
9695
9695
  const b = p[g];
9696
- Y(b) || (r[g] = b);
9696
+ N(b) || (r[g] = b);
9697
9697
  });
9698
9698
  return;
9699
9699
  }
@@ -9733,7 +9733,13 @@ const kb = {
9733
9733
  };
9734
9734
  this.quickFilters.filter((o) => o.isEffective() && !o.isDefaultVal()).forEach(t), this.easyFilters.filter((o) => o.isEffective() && !o.isDefaultVal()).forEach(t), this.dynamicFilters.filter((o) => o.isEffective()).forEach(t), this.storedLabels.length > 0 && e.push({ type: "stored", value: this.storedLabels });
9735
9735
  const r = this.pageQuery.extra;
9736
- !Y(r) && Object.keys(r).some((o) => !Y(r[o])) && e.push({ type: "extra", value: r }), e.length > 0 ? xv(`CACHE_FILTER:${this.option.id}`, JSON.stringify(e)) : ji(`CACHE_FILTER:${this.option.id}`);
9736
+ if (!N(r) && Object.keys(r).some((o) => !N(r[o]))) {
9737
+ const o = Object.fromEntries(
9738
+ Object.entries(r).filter(([i, a]) => !N(a))
9739
+ );
9740
+ e.push({ type: "extra", value: o });
9741
+ }
9742
+ e.length > 0 ? xv(`CACHE_FILTER:${this.option.id}`, JSON.stringify(e)) : ji(`CACHE_FILTER:${this.option.id}`);
9737
9743
  } catch (e) {
9738
9744
  console.error(`缓存筛选条件时出现错误: ${e}`);
9739
9745
  }
@@ -10044,13 +10050,13 @@ function Pb(e, t, r, o, i, a) {
10044
10050
  ], 512)
10045
10051
  ]);
10046
10052
  }
10047
- const Ln = /* @__PURE__ */ ye(kb, [["render", Pb], ["__scopeId", "data-v-a2282c10"]]);
10053
+ const Ln = /* @__PURE__ */ ye(kb, [["render", Pb], ["__scopeId", "data-v-874f5ee4"]]);
10048
10054
  Ln.install = (e) => {
10049
10055
  e.component(Ln.name, Ln);
10050
10056
  };
10051
10057
  function wl({ option: e, multiple: t = !1, dialog: r = { width: "70%" } }) {
10052
10058
  const o = this;
10053
- if (Y(e))
10059
+ if (N(e))
10054
10060
  throw new Error("option 不能为空!");
10055
10061
  if (!(e instanceof Ye))
10056
10062
  throw new Error("option 必须是 FastTableOption实例");
@@ -10092,7 +10098,7 @@ function wl({ option: e, multiple: t = !1, dialog: r = { width: "70%" } }) {
10092
10098
  size: e.style.size,
10093
10099
  onClick: (f) => {
10094
10100
  const h = f.getTableRef(), y = t ? h.getCheckedRows() : h.getChoseRow();
10095
- if (Y(y)) {
10101
+ if (N(y)) {
10096
10102
  De.warning("请选择数据");
10097
10103
  return;
10098
10104
  }
@@ -10180,7 +10186,7 @@ const xb = {
10180
10186
  }
10181
10187
  },
10182
10188
  mounted() {
10183
- Y(this.options) && !Y(this.modelValue) && (this.options.length = 0, this.options.push([{ label: this.modelValue, value: this.modelValue }]));
10189
+ N(this.options) && !N(this.modelValue) && (this.options.length = 0, this.options.push([{ label: this.modelValue, value: this.modelValue }]));
10184
10190
  },
10185
10191
  computed: {
10186
10192
  value: {
@@ -10194,7 +10200,7 @@ const xb = {
10194
10200
  },
10195
10201
  methods: {
10196
10202
  handleClear(e) {
10197
- this.$emit("clear", e), !Y(this.pickMap) && !Y(this.pickObject) && Object.entries(this.pickMap).forEach(([t, r]) => {
10203
+ this.$emit("clear", e), !N(this.pickMap) && !N(this.pickObject) && Object.entries(this.pickMap).forEach(([t, r]) => {
10198
10204
  this.pickObject[r] = null;
10199
10205
  });
10200
10206
  },
@@ -11378,7 +11384,7 @@ const pw = function(e, t = {}) {
11378
11384
  e.use(r);
11379
11385
  });
11380
11386
  }, Qw = {
11381
- isEmpty: Y,
11387
+ isEmpty: N,
11382
11388
  isString: Le,
11383
11389
  isNumber: dn,
11384
11390
  isArray: Ne,