vi-grid-builder 2.3.18 → 2.3.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.
@@ -176,29 +176,29 @@ function Ht(e, t) {
176
176
  var u = on(), m = Ce((n = (a = (r = (i = t == null ? void 0 : t.weekStartsOn) !== null && i !== void 0 ? i : t == null || (o = t.locale) === null || o === void 0 || (s = o.options) === null || s === void 0 ? void 0 : s.weekStartsOn) !== null && r !== void 0 ? r : u.weekStartsOn) !== null && a !== void 0 ? a : (l = u.locale) === null || l === void 0 || (c = l.options) === null || c === void 0 ? void 0 : c.weekStartsOn) !== null && n !== void 0 ? n : 0);
177
177
  if (!(m >= 0 && m <= 6))
178
178
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
179
- var g = me(e), v = g.getUTCDay(), y = (v < m ? 7 : 0) + v - m;
180
- return g.setUTCDate(g.getUTCDate() - y), g.setUTCHours(0, 0, 0, 0), g;
179
+ var g = me(e), y = g.getUTCDay(), v = (y < m ? 7 : 0) + y - m;
180
+ return g.setUTCDate(g.getUTCDate() - v), g.setUTCHours(0, 0, 0, 0), g;
181
181
  }
182
182
  function di(e, t) {
183
183
  var n, a, r, i, o, s, l, c;
184
184
  G(1, arguments);
185
- var u = me(e), m = u.getUTCFullYear(), g = on(), v = Ce((n = (a = (r = (i = t == null ? void 0 : t.firstWeekContainsDate) !== null && i !== void 0 ? i : t == null || (o = t.locale) === null || o === void 0 || (s = o.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && r !== void 0 ? r : g.firstWeekContainsDate) !== null && a !== void 0 ? a : (l = g.locale) === null || l === void 0 || (c = l.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && n !== void 0 ? n : 1);
186
- if (!(v >= 1 && v <= 7))
185
+ var u = me(e), m = u.getUTCFullYear(), g = on(), y = Ce((n = (a = (r = (i = t == null ? void 0 : t.firstWeekContainsDate) !== null && i !== void 0 ? i : t == null || (o = t.locale) === null || o === void 0 || (s = o.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && r !== void 0 ? r : g.firstWeekContainsDate) !== null && a !== void 0 ? a : (l = g.locale) === null || l === void 0 || (c = l.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && n !== void 0 ? n : 1);
186
+ if (!(y >= 1 && y <= 7))
187
187
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
188
- var y = /* @__PURE__ */ new Date(0);
189
- y.setUTCFullYear(m + 1, 0, v), y.setUTCHours(0, 0, 0, 0);
190
- var x = Ht(y, t), w = /* @__PURE__ */ new Date(0);
191
- w.setUTCFullYear(m, 0, v), w.setUTCHours(0, 0, 0, 0);
188
+ var v = /* @__PURE__ */ new Date(0);
189
+ v.setUTCFullYear(m + 1, 0, y), v.setUTCHours(0, 0, 0, 0);
190
+ var x = Ht(v, t), w = /* @__PURE__ */ new Date(0);
191
+ w.setUTCFullYear(m, 0, y), w.setUTCHours(0, 0, 0, 0);
192
192
  var f = Ht(w, t);
193
193
  return u.getTime() >= x.getTime() ? m + 1 : u.getTime() >= f.getTime() ? m : m - 1;
194
194
  }
195
195
  function ks(e, t) {
196
196
  var n, a, r, i, o, s, l, c;
197
197
  G(1, arguments);
198
- var u = on(), m = Ce((n = (a = (r = (i = t == null ? void 0 : t.firstWeekContainsDate) !== null && i !== void 0 ? i : t == null || (o = t.locale) === null || o === void 0 || (s = o.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && r !== void 0 ? r : u.firstWeekContainsDate) !== null && a !== void 0 ? a : (l = u.locale) === null || l === void 0 || (c = l.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && n !== void 0 ? n : 1), g = di(e, t), v = /* @__PURE__ */ new Date(0);
199
- v.setUTCFullYear(g, 0, m), v.setUTCHours(0, 0, 0, 0);
200
- var y = Ht(v, t);
201
- return y;
198
+ var u = on(), m = Ce((n = (a = (r = (i = t == null ? void 0 : t.firstWeekContainsDate) !== null && i !== void 0 ? i : t == null || (o = t.locale) === null || o === void 0 || (s = o.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && r !== void 0 ? r : u.firstWeekContainsDate) !== null && a !== void 0 ? a : (l = u.locale) === null || l === void 0 || (c = l.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && n !== void 0 ? n : 1), g = di(e, t), y = /* @__PURE__ */ new Date(0);
199
+ y.setUTCFullYear(g, 0, m), y.setUTCHours(0, 0, 0, 0);
200
+ var v = Ht(y, t);
201
+ return v;
202
202
  }
203
203
  var Ss = 6048e5;
204
204
  function Ps(e, t) {
@@ -1312,12 +1312,12 @@ var yl = {
1312
1312
  const bl = yl;
1313
1313
  var wl = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, xl = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, kl = /^'([^]*?)'?$/, Sl = /''/g, Pl = /[a-zA-Z]/;
1314
1314
  function _l(e, t, n) {
1315
- var a, r, i, o, s, l, c, u, m, g, v, y, x, w, f, d, k, O;
1315
+ var a, r, i, o, s, l, c, u, m, g, y, v, x, w, f, d, k, O;
1316
1316
  G(2, arguments);
1317
1317
  var E = String(t), D = on(), R = (a = (r = n == null ? void 0 : n.locale) !== null && r !== void 0 ? r : D.locale) !== null && a !== void 0 ? a : bl, De = Ce((i = (o = (s = (l = n == null ? void 0 : n.firstWeekContainsDate) !== null && l !== void 0 ? l : n == null || (c = n.locale) === null || c === void 0 || (u = c.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && s !== void 0 ? s : D.firstWeekContainsDate) !== null && o !== void 0 ? o : (m = D.locale) === null || m === void 0 || (g = m.options) === null || g === void 0 ? void 0 : g.firstWeekContainsDate) !== null && i !== void 0 ? i : 1);
1318
1318
  if (!(De >= 1 && De <= 7))
1319
1319
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
1320
- var at = Ce((v = (y = (x = (w = n == null ? void 0 : n.weekStartsOn) !== null && w !== void 0 ? w : n == null || (f = n.locale) === null || f === void 0 || (d = f.options) === null || d === void 0 ? void 0 : d.weekStartsOn) !== null && x !== void 0 ? x : D.weekStartsOn) !== null && y !== void 0 ? y : (k = D.locale) === null || k === void 0 || (O = k.options) === null || O === void 0 ? void 0 : O.weekStartsOn) !== null && v !== void 0 ? v : 0);
1320
+ var at = Ce((y = (v = (x = (w = n == null ? void 0 : n.weekStartsOn) !== null && w !== void 0 ? w : n == null || (f = n.locale) === null || f === void 0 || (d = f.options) === null || d === void 0 ? void 0 : d.weekStartsOn) !== null && x !== void 0 ? x : D.weekStartsOn) !== null && v !== void 0 ? v : (k = D.locale) === null || k === void 0 || (O = k.options) === null || O === void 0 ? void 0 : O.weekStartsOn) !== null && y !== void 0 ? y : 0);
1321
1321
  if (!(at >= 0 && at <= 6))
1322
1322
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
1323
1323
  if (!R.localize)
@@ -3082,8 +3082,8 @@ function Ia(e) {
3082
3082
  watchable: m = !1
3083
3083
  } = e, {
3084
3084
  width: g,
3085
- height: v
3086
- } = n.found ? n : t, y = lc.includes(a), x = [S.replacementClass, r ? "".concat(S.cssPrefix, "-").concat(r) : ""].filter((E) => u.classes.indexOf(E) === -1).filter((E) => E !== "" || !!E).concat(u.classes).join(" ");
3085
+ height: y
3086
+ } = n.found ? n : t, v = lc.includes(a), x = [S.replacementClass, r ? "".concat(S.cssPrefix, "-").concat(r) : ""].filter((E) => u.classes.indexOf(E) === -1).filter((E) => E !== "" || !!E).concat(u.classes).join(" ");
3087
3087
  let w = {
3088
3088
  children: [],
3089
3089
  attributes: p(p({}, u.attributes), {}, {
@@ -3092,11 +3092,11 @@ function Ia(e) {
3092
3092
  class: x,
3093
3093
  role: u.attributes.role || "img",
3094
3094
  xmlns: "http://www.w3.org/2000/svg",
3095
- viewBox: "0 0 ".concat(g, " ").concat(v)
3095
+ viewBox: "0 0 ".concat(g, " ").concat(y)
3096
3096
  })
3097
3097
  };
3098
- const f = y && !~u.classes.indexOf("fa-fw") ? {
3099
- width: "".concat(g / v * 16 * 0.0625, "em")
3098
+ const f = v && !~u.classes.indexOf("fa-fw") ? {
3099
+ width: "".concat(g / y * 16 * 0.0625, "em")
3100
3100
  } : {};
3101
3101
  m && (w.attributes[ze] = ""), s && (w.children.push({
3102
3102
  tag: "title",
@@ -3541,7 +3541,7 @@ const Eu = function(e) {
3541
3541
  const {
3542
3542
  prefix: m,
3543
3543
  iconName: g,
3544
- icon: v
3544
+ icon: y
3545
3545
  } = e;
3546
3546
  return fn(p({
3547
3547
  type: "icon"
@@ -3550,7 +3550,7 @@ const Eu = function(e) {
3550
3550
  params: t
3551
3551
  }), S.autoA11y && (o ? c["aria-labelledby"] = "".concat(S.replacementClass, "-title-").concat(s || vt()) : (c["aria-hidden"] = "true", c.focusable = "false")), Ia({
3552
3552
  icons: {
3553
- main: Gn(v),
3553
+ main: Gn(y),
3554
3554
  mask: r ? Gn(r.icon) : {
3555
3555
  found: !1,
3556
3556
  width: null,
@@ -3605,14 +3605,14 @@ var Nu = {
3605
3605
  maskId: u,
3606
3606
  extra: m
3607
3607
  } = n;
3608
- return new Promise((g, v) => {
3608
+ return new Promise((g, y) => {
3609
3609
  Promise.all([Hn(a, o), c.iconName ? Hn(c.iconName, c.prefix) : Promise.resolve({
3610
3610
  found: !1,
3611
3611
  width: 512,
3612
3612
  height: 512,
3613
3613
  icon: {}
3614
- })]).then((y) => {
3615
- let [x, w] = y;
3614
+ })]).then((v) => {
3615
+ let [x, w] = v;
3616
3616
  g([t, Ia({
3617
3617
  icons: {
3618
3618
  main: x,
@@ -3628,7 +3628,7 @@ var Nu = {
3628
3628
  extra: m,
3629
3629
  watchable: !0
3630
3630
  })]);
3631
- }).catch(v);
3631
+ }).catch(y);
3632
3632
  });
3633
3633
  }, e.generateAbstractIcon = function(t) {
3634
3634
  let {
@@ -3797,28 +3797,28 @@ function Sr(e, t) {
3797
3797
  return e.removeChild(o), a();
3798
3798
  if (c && m !== "none" && m !== "") {
3799
3799
  const g = s.getPropertyValue("content");
3800
- let v = Ru(l, u);
3800
+ let y = Ru(l, u);
3801
3801
  const {
3802
- value: y,
3802
+ value: v,
3803
3803
  isSecondary: x
3804
3804
  } = Fu(g), w = c[0].startsWith("FontAwesome");
3805
- let f = Ma(v, y), d = f;
3805
+ let f = Ma(y, v), d = f;
3806
3806
  if (w) {
3807
- const k = Hc(y);
3808
- k.iconName && k.prefix && (f = k.iconName, v = k.prefix);
3807
+ const k = Hc(v);
3808
+ k.iconName && k.prefix && (f = k.iconName, y = k.prefix);
3809
3809
  }
3810
- if (f && !x && (!o || o.getAttribute(Ca) !== v || o.getAttribute(Oa) !== d)) {
3810
+ if (f && !x && (!o || o.getAttribute(Ca) !== y || o.getAttribute(Oa) !== d)) {
3811
3811
  e.setAttribute(n, d), o && e.removeChild(o);
3812
3812
  const k = Pu(), {
3813
3813
  extra: O
3814
3814
  } = k;
3815
- O.attributes[zn] = t, Hn(f, v).then((E) => {
3815
+ O.attributes[zn] = t, Hn(f, y).then((E) => {
3816
3816
  const D = Ia(p(p({}, k), {}, {
3817
3817
  icons: {
3818
3818
  main: E,
3819
3819
  mask: Ui()
3820
3820
  },
3821
- prefix: v,
3821
+ prefix: y,
3822
3822
  iconName: d,
3823
3823
  extra: O,
3824
3824
  watchable: !0
@@ -4033,12 +4033,12 @@ var Yu = {
4033
4033
  transform: s,
4034
4034
  containerWidth: u,
4035
4035
  iconWidth: l
4036
- }), v = {
4036
+ }), y = {
4037
4037
  tag: "rect",
4038
4038
  attributes: p(p({}, En), {}, {
4039
4039
  fill: "white"
4040
4040
  })
4041
- }, y = c.children ? {
4041
+ }, v = c.children ? {
4042
4042
  children: c.children.map(Or)
4043
4043
  } : {}, x = {
4044
4044
  tag: "g",
@@ -4046,7 +4046,7 @@ var Yu = {
4046
4046
  children: [Or(p({
4047
4047
  tag: c.tag,
4048
4048
  attributes: p(p({}, c.attributes), g.path)
4049
- }, y))]
4049
+ }, v))]
4050
4050
  }, w = {
4051
4051
  tag: "g",
4052
4052
  attributes: p({}, g.outer),
@@ -4058,7 +4058,7 @@ var Yu = {
4058
4058
  maskUnits: "userSpaceOnUse",
4059
4059
  maskContentUnits: "userSpaceOnUse"
4060
4060
  }),
4061
- children: [v, w]
4061
+ children: [y, w]
4062
4062
  }, O = {
4063
4063
  tag: "defs",
4064
4064
  children: [{
@@ -4289,7 +4289,7 @@ var rf = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4289
4289
  (function(e) {
4290
4290
  (function(t) {
4291
4291
  var n = function(f, d, k) {
4292
- if (!c(d) || m(d) || g(d) || v(d) || l(d))
4292
+ if (!c(d) || m(d) || g(d) || y(d) || l(d))
4293
4293
  return d;
4294
4294
  var O, E = 0, D = 0;
4295
4295
  if (u(d))
@@ -4306,7 +4306,7 @@ var rf = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4306
4306
  var k = d.separator || "_", O = d.split || /(?=[A-Z])/;
4307
4307
  return f.split(O).join(k);
4308
4308
  }, r = function(f) {
4309
- return y(f) ? f : (f = f.replace(/[\-_\s]+(.)?/g, function(d, k) {
4309
+ return v(f) ? f : (f = f.replace(/[\-_\s]+(.)?/g, function(d, k) {
4310
4310
  return k ? k.toUpperCase() : "";
4311
4311
  }), f.substr(0, 1).toLowerCase() + f.substr(1));
4312
4312
  }, i = function(f) {
@@ -4324,9 +4324,9 @@ var rf = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4324
4324
  return s.call(f) == "[object Date]";
4325
4325
  }, g = function(f) {
4326
4326
  return s.call(f) == "[object RegExp]";
4327
- }, v = function(f) {
4328
- return s.call(f) == "[object Boolean]";
4329
4327
  }, y = function(f) {
4328
+ return s.call(f) == "[object Boolean]";
4329
+ }, v = function(f) {
4330
4330
  return f = f - 0, f === f;
4331
4331
  }, x = function(f, d) {
4332
4332
  var k = d && "process" in d ? d.process : d;
@@ -6289,8 +6289,8 @@ function $a(e) {
6289
6289
  watchable: m = !1
6290
6290
  } = e, {
6291
6291
  width: g,
6292
- height: v
6293
- } = n.found ? n : t, y = Mf.includes(a), x = [P.replacementClass, r ? "".concat(P.cssPrefix, "-").concat(r) : ""].filter((E) => u.classes.indexOf(E) === -1).filter((E) => E !== "" || !!E).concat(u.classes).join(" ");
6292
+ height: y
6293
+ } = n.found ? n : t, v = Mf.includes(a), x = [P.replacementClass, r ? "".concat(P.cssPrefix, "-").concat(r) : ""].filter((E) => u.classes.indexOf(E) === -1).filter((E) => E !== "" || !!E).concat(u.classes).join(" ");
6294
6294
  let w = {
6295
6295
  children: [],
6296
6296
  attributes: h(h({}, u.attributes), {}, {
@@ -6299,11 +6299,11 @@ function $a(e) {
6299
6299
  class: x,
6300
6300
  role: u.attributes.role || "img",
6301
6301
  xmlns: "http://www.w3.org/2000/svg",
6302
- viewBox: "0 0 ".concat(g, " ").concat(v)
6302
+ viewBox: "0 0 ".concat(g, " ").concat(y)
6303
6303
  })
6304
6304
  };
6305
- const f = y && !~u.classes.indexOf("fa-fw") ? {
6306
- width: "".concat(g / v * 16 * 0.0625, "em")
6305
+ const f = v && !~u.classes.indexOf("fa-fw") ? {
6306
+ width: "".concat(g / y * 16 * 0.0625, "em")
6307
6307
  } : {};
6308
6308
  m && (w.attributes[Ue] = ""), s && (w.children.push({
6309
6309
  tag: "title",
@@ -6748,7 +6748,7 @@ const Jd = function(e) {
6748
6748
  const {
6749
6749
  prefix: m,
6750
6750
  iconName: g,
6751
- icon: v
6751
+ icon: y
6752
6752
  } = e;
6753
6753
  return hn(h({
6754
6754
  type: "icon"
@@ -6757,7 +6757,7 @@ const Jd = function(e) {
6757
6757
  params: t
6758
6758
  }), P.autoA11y && (o ? c["aria-labelledby"] = "".concat(P.replacementClass, "-title-").concat(s || bt()) : (c["aria-hidden"] = "true", c.focusable = "false")), $a({
6759
6759
  icons: {
6760
- main: ua(v),
6760
+ main: ua(y),
6761
6761
  mask: r ? ua(r.icon) : {
6762
6762
  found: !1,
6763
6763
  width: null,
@@ -6812,14 +6812,14 @@ var Zd = {
6812
6812
  maskId: u,
6813
6813
  extra: m
6814
6814
  } = n;
6815
- return new Promise((g, v) => {
6815
+ return new Promise((g, y) => {
6816
6816
  Promise.all([fa(a, o), c.iconName ? fa(c.iconName, c.prefix) : Promise.resolve({
6817
6817
  found: !1,
6818
6818
  width: 512,
6819
6819
  height: 512,
6820
6820
  icon: {}
6821
- })]).then((y) => {
6822
- let [x, w] = y;
6821
+ })]).then((v) => {
6822
+ let [x, w] = v;
6823
6823
  g([t, $a({
6824
6824
  icons: {
6825
6825
  main: x,
@@ -6835,7 +6835,7 @@ var Zd = {
6835
6835
  extra: m,
6836
6836
  watchable: !0
6837
6837
  })]);
6838
- }).catch(v);
6838
+ }).catch(y);
6839
6839
  });
6840
6840
  }, e.generateAbstractIcon = function(t) {
6841
6841
  let {
@@ -7006,15 +7006,15 @@ function Jr(e, t) {
7006
7006
  const m = o.getPropertyValue("content");
7007
7007
  let g = om(s, c);
7008
7008
  const {
7009
- value: v,
7010
- isSecondary: y
7009
+ value: y,
7010
+ isSecondary: v
7011
7011
  } = im(m), x = l[0].startsWith("FontAwesome");
7012
- let w = Ya(g, v), f = w;
7012
+ let w = Ya(g, y), f = w;
7013
7013
  if (x) {
7014
- const d = vd(v);
7014
+ const d = vd(y);
7015
7015
  d.iconName && d.prefix && (w = d.iconName, g = d.prefix);
7016
7016
  }
7017
- if (w && !y && (!i || i.getAttribute(ja) !== g || i.getAttribute(za) !== f)) {
7017
+ if (w && !v && (!i || i.getAttribute(ja) !== g || i.getAttribute(za) !== f)) {
7018
7018
  e.setAttribute(n, f), i && e.removeChild(i);
7019
7019
  const d = Gd(), {
7020
7020
  extra: k
@@ -7240,12 +7240,12 @@ var mm = {
7240
7240
  transform: s,
7241
7241
  containerWidth: u,
7242
7242
  iconWidth: l
7243
- }), v = {
7243
+ }), y = {
7244
7244
  tag: "rect",
7245
7245
  attributes: h(h({}, Dn), {}, {
7246
7246
  fill: "white"
7247
7247
  })
7248
- }, y = c.children ? {
7248
+ }, v = c.children ? {
7249
7249
  children: c.children.map(ni)
7250
7250
  } : {}, x = {
7251
7251
  tag: "g",
@@ -7253,7 +7253,7 @@ var mm = {
7253
7253
  children: [ni(h({
7254
7254
  tag: c.tag,
7255
7255
  attributes: h(h({}, c.attributes), g.path)
7256
- }, y))]
7256
+ }, v))]
7257
7257
  }, w = {
7258
7258
  tag: "g",
7259
7259
  attributes: h({}, g.outer),
@@ -7265,7 +7265,7 @@ var mm = {
7265
7265
  maskUnits: "userSpaceOnUse",
7266
7266
  maskContentUnits: "userSpaceOnUse"
7267
7267
  }),
7268
- children: [v, w]
7268
+ children: [y, w]
7269
7269
  }, O = {
7270
7270
  tag: "defs",
7271
7271
  children: [{
@@ -7496,7 +7496,7 @@ var Am = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
7496
7496
  (function(e) {
7497
7497
  (function(t) {
7498
7498
  var n = function(f, d, k) {
7499
- if (!c(d) || m(d) || g(d) || v(d) || l(d))
7499
+ if (!c(d) || m(d) || g(d) || y(d) || l(d))
7500
7500
  return d;
7501
7501
  var O, E = 0, D = 0;
7502
7502
  if (u(d))
@@ -7513,7 +7513,7 @@ var Am = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
7513
7513
  var k = d.separator || "_", O = d.split || /(?=[A-Z])/;
7514
7514
  return f.split(O).join(k);
7515
7515
  }, r = function(f) {
7516
- return y(f) ? f : (f = f.replace(/[\-_\s]+(.)?/g, function(d, k) {
7516
+ return v(f) ? f : (f = f.replace(/[\-_\s]+(.)?/g, function(d, k) {
7517
7517
  return k ? k.toUpperCase() : "";
7518
7518
  }), f.substr(0, 1).toLowerCase() + f.substr(1));
7519
7519
  }, i = function(f) {
@@ -7531,9 +7531,9 @@ var Am = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
7531
7531
  return s.call(f) == "[object Date]";
7532
7532
  }, g = function(f) {
7533
7533
  return s.call(f) == "[object RegExp]";
7534
- }, v = function(f) {
7535
- return s.call(f) == "[object Boolean]";
7536
7534
  }, y = function(f) {
7535
+ return s.call(f) == "[object Boolean]";
7536
+ }, v = function(f) {
7537
7537
  return f = f - 0, f === f;
7538
7538
  }, x = function(f, d) {
7539
7539
  var k = d && "process" in d ? d.process : d;
@@ -8314,10 +8314,10 @@ function _g(e) {
8314
8314
  a,
8315
8315
  r
8316
8316
  ), g.dataset.testid = "".concat(T.CSS_NAMESPACE, "__toast-container--").concat(n), g.id = xg(e);
8317
- for (const v in i)
8318
- if (Object.prototype.hasOwnProperty.call(i, v)) {
8319
- const y = i[v];
8320
- g.style[v] = y;
8317
+ for (const y in i)
8318
+ if (Object.prototype.hasOwnProperty.call(i, y)) {
8319
+ const v = i[y];
8320
+ g.style[y] = v;
8321
8321
  }
8322
8322
  return l || (m.className = T.CSS_NAMESPACE, document.body.appendChild(m)), u || m.appendChild(g), g;
8323
8323
  }
@@ -8909,7 +8909,7 @@ function Xg(e) {
8909
8909
  const E = g();
8910
8910
  E.classList.add(...d), E.addEventListener("animationend", k), E.addEventListener("animationcancel", k);
8911
8911
  };
8912
- e.pauseOnFocusLoss && v(), O();
8912
+ e.pauseOnFocusLoss && y(), O();
8913
8913
  }
8914
8914
  function m() {
8915
8915
  if (!g())
@@ -8926,10 +8926,10 @@ function Xg(e) {
8926
8926
  function g() {
8927
8927
  return e.toastRef.value;
8928
8928
  }
8929
- function v() {
8929
+ function y() {
8930
8930
  document.hasFocus() || w(), window.addEventListener("focus", x), window.addEventListener("blur", w);
8931
8931
  }
8932
- function y() {
8932
+ function v() {
8933
8933
  window.removeEventListener("focus", x), window.removeEventListener("blur", w);
8934
8934
  }
8935
8935
  function x() {
@@ -8947,7 +8947,7 @@ function Xg(e) {
8947
8947
  }), Ft(() => {
8948
8948
  e.isLoading !== void 0 && (e.loading.value ? w() : x());
8949
8949
  }), Sa(u), Pa(() => {
8950
- e.pauseOnFocusLoss && y();
8950
+ e.pauseOnFocusLoss && v();
8951
8951
  }), {
8952
8952
  isIn: n,
8953
8953
  isRunning: t,
@@ -9183,19 +9183,19 @@ function t1(e, {
9183
9183
  isLoading: void 0,
9184
9184
  draggable: null,
9185
9185
  delay: 100
9186
- }, m = (v, y, x) => {
9187
- if (y == null) {
9186
+ }, m = (y, v, x) => {
9187
+ if (v == null) {
9188
9188
  I.remove(l);
9189
9189
  return;
9190
9190
  }
9191
9191
  const w = {
9192
- type: v,
9192
+ type: y,
9193
9193
  ...u,
9194
9194
  ...r,
9195
9195
  data: x
9196
- }, f = xa(y) ? {
9197
- render: y
9198
- } : y;
9196
+ }, f = xa(v) ? {
9197
+ render: v
9198
+ } : v;
9199
9199
  return l ? I.update(l, {
9200
9200
  ...w,
9201
9201
  ...f,
@@ -9206,10 +9206,10 @@ function t1(e, {
9206
9206
  isLoading: !1
9207
9207
  }), x;
9208
9208
  }, g = Ke(e) ? e() : e;
9209
- return g.then((v) => {
9210
- m("success", a, v);
9211
- }).catch((v) => {
9212
- m("error", n, v);
9209
+ return g.then((y) => {
9210
+ m("success", a, y);
9211
+ }).catch((y) => {
9212
+ m("error", n, y);
9213
9213
  }), g;
9214
9214
  }
9215
9215
  I.POSITION = Ot;
@@ -9547,14 +9547,14 @@ function V1(e, t, n) {
9547
9547
  }
9548
9548
  function W1(e) {
9549
9549
  let t = Y(!0), n = Y(null), a = Y(null), r = Y(null);
9550
- const i = function(y) {
9551
- return r.value !== y ? "ascending" : n.value === "ascending" ? "descending" : null;
9552
- }, o = function(y, x = "text", w = "auto") {
9550
+ const i = function(v) {
9551
+ return r.value !== v ? "ascending" : n.value === "ascending" ? "descending" : null;
9552
+ }, o = function(v, x = "text", w = "auto") {
9553
9553
  if (w !== "auto")
9554
- r.value = y, a.value = x, n.value = w;
9554
+ r.value = v, a.value = x, n.value = w;
9555
9555
  else {
9556
- const f = i(y);
9557
- r.value = f === null ? null : y, a.value = f === null ? null : x, n.value = f;
9556
+ const f = i(v);
9557
+ r.value = f === null ? null : v, a.value = f === null ? null : x, n.value = f;
9558
9558
  }
9559
9559
  return {
9560
9560
  field: r.value,
@@ -9568,25 +9568,25 @@ function W1(e) {
9568
9568
  } : {
9569
9569
  sortBy: r.value,
9570
9570
  descending: n.value === "descending"
9571
- }, l = (y, x, w) => w === "ascending" ? y.sort((f, d) => Number(f[x]) - Number(d[x])) : w === "descending" ? y.sort((f, d) => Number(d[x]) - Number(f[x])) : y, c = (y, x, w) => w === "ascending" ? y.sort((f, d) => f[x].toString().localeCompare(d[x].toString())) : w === "descending" ? y.sort((f, d) => d[x].toString().localeCompare(f[x].toString())) : y, u = function(y, x, w, f) {
9572
- return f ? w === "number" ? l(y, x, f) : c(y, x, f) : y;
9573
- }, m = (y) => {
9574
- t.value = Array.isArray(y.sortBy);
9575
- const x = y.sortBy ? Array.isArray(y.sortBy) ? y.sortBy[0].field : y.sortBy : null, w = x ? Array.isArray(y.sortBy) ? y.sortBy[0].descending : y.descending : null;
9571
+ }, l = (v, x, w) => w === "ascending" ? v.sort((f, d) => Number(f[x]) - Number(d[x])) : w === "descending" ? v.sort((f, d) => Number(d[x]) - Number(f[x])) : v, c = (v, x, w) => w === "ascending" ? v.sort((f, d) => f[x].toString().localeCompare(d[x].toString())) : w === "descending" ? v.sort((f, d) => d[x].toString().localeCompare(f[x].toString())) : v, u = function(v, x, w, f) {
9572
+ return f ? w === "number" ? l(v, x, f) : c(v, x, f) : v;
9573
+ }, m = (v) => {
9574
+ t.value = Array.isArray(v.sortBy);
9575
+ const x = v.sortBy ? Array.isArray(v.sortBy) ? v.sortBy[0].field : v.sortBy : null, w = x ? Array.isArray(v.sortBy) ? v.sortBy[0].descending : v.descending : null;
9576
9576
  if (!x)
9577
9577
  r.value = null, a.value = null, n.value = null;
9578
9578
  else {
9579
9579
  let f = e.columns.find((d) => d.name === x);
9580
9580
  f ? o(f.name, f.type, w ? "descending" : "ascending") : o(x, "text", w ? "descending" : "ascending");
9581
9581
  }
9582
- }, g = (y) => r.value !== y.name ? "unsorted" : n.value, v = C(() => e.serverMode ? e.rows ?? [] : u([...e.rows ?? []], r.value, a.value, n.value));
9582
+ }, g = (v) => r.value !== v.name ? "unsorted" : n.value, y = C(() => e.serverMode ? e.rows ?? [] : u([...e.rows ?? []], r.value, a.value, n.value));
9583
9583
  return {
9584
9584
  setSortFieldsFromPagination: m,
9585
9585
  getSortableState: g,
9586
9586
  setSortFields: o,
9587
9587
  formatSortFields: s,
9588
9588
  clientSort: u,
9589
- sortedRows: v,
9589
+ sortedRows: y,
9590
9590
  sortField: r,
9591
9591
  sortDirection: n,
9592
9592
  sortFieldType: a
@@ -9719,23 +9719,30 @@ function Q1(e, t, n, a, r, i) {
9719
9719
  const J1 = /* @__PURE__ */ K(K1, [["render", Q1], ["__scopeId", "data-v-025d85ee"]]);
9720
9720
  function Z1(e) {
9721
9721
  let t = Y(null), n = Y(!1);
9722
+ const a = ({ pagination: o, filter: s, search: l } = {}) => {
9723
+ const c = o ?? e.pagination;
9724
+ return n.value = !0, console.log("fetchData", {
9725
+ page: c.page,
9726
+ rowsPerPage: c.rowsPerPage,
9727
+ sortBy: c.sortBy
9728
+ }), e.fetchServerData({
9729
+ ...c && {
9730
+ // pagination: this.formatPagination(paginationData)
9731
+ pagination: {
9732
+ page: c.page,
9733
+ rowsPerPage: c.rowsPerPage,
9734
+ sortBy: c.sortBy
9735
+ }
9736
+ },
9737
+ filter: s ?? e.filter,
9738
+ search: l ?? e.search
9739
+ }).finally(() => n.value = !1);
9740
+ };
9722
9741
  return {
9723
9742
  isFetchingData: n,
9724
- fetchData: ({ pagination: r, filter: i, search: o } = {}) => {
9725
- const s = r ?? e.pagination;
9726
- return n.value = !0, e.fetchServerData({
9727
- ...s && {
9728
- // pagination: this.formatPagination(paginationData)
9729
- pagination: {
9730
- page: s.page,
9731
- rowsPerPage: s.rowsPerPage,
9732
- sortBy: s.sortBy
9733
- }
9734
- },
9735
- filter: i ?? e.filter,
9736
- search: o ?? e.search
9737
- }).finally(() => n.value = !1);
9738
- },
9743
+ fetchData: a,
9744
+ reloadData: () => a({ pagination: e.pagination, filter: e.filter, search: t.value }),
9745
+ loadFirstPage: () => a({ pagination: { ...e.pagination, page: 1 }, filter: e.filter, search: t.value }),
9739
9746
  search: t
9740
9747
  };
9741
9748
  }
@@ -9829,57 +9836,37 @@ const ep = {
9829
9836
  },
9830
9837
  setup(e, { emit: t }) {
9831
9838
  let n = Y(null);
9832
- const { isFetchingData: a, fetchData: r, search: i } = Z1(e), { visibleColumns: o, totalColumns: s } = z1(e), {
9833
- setSortFieldsFromPagination: l,
9834
- getSortableState: c,
9835
- setSortFields: u,
9836
- sortField: m,
9837
- sortDirection: g,
9838
- formatSortFields: v,
9839
- sortedRows: y
9839
+ const { isFetchingData: a, fetchData: r, search: i, loadFirstPage: o, reloadData: s } = Z1(e), { visibleColumns: l, totalColumns: c } = z1(e), {
9840
+ setSortFieldsFromPagination: u,
9841
+ getSortableState: m,
9842
+ setSortFields: g,
9843
+ sortField: y,
9844
+ sortDirection: v,
9845
+ formatSortFields: x,
9846
+ sortedRows: w
9840
9847
  } = W1(e);
9841
- l(e.pagination);
9842
- const x = () => r({
9843
- pagination: {
9844
- ...e.pagination,
9845
- page: 1,
9846
- ...v()
9847
- },
9848
- filter: e.filter,
9849
- search: i.value
9850
- }), w = () => r(
9851
- {
9852
- pagination: {
9853
- ...e.pagination,
9854
- page: 1,
9855
- ...v()
9856
- }
9857
- }
9858
- ), { localPagination: f, onPaginationChange: d } = Y1(e, t, ({ pagination: Et }) => r({
9848
+ u(e.pagination);
9849
+ const { localPagination: f, onPaginationChange: d } = Y1(e, t, ({ pagination: Et }) => r({
9859
9850
  pagination: {
9860
9851
  ...Et,
9861
- ...v()
9852
+ ...x()
9862
9853
  }
9863
9854
  }));
9864
- $t([m, g], (...Et) => {
9855
+ $t([y, v], (...Et) => {
9865
9856
  e.serverMode ? r({
9866
9857
  pagination: {
9867
9858
  ...e.pagination,
9868
9859
  page: 1,
9869
- ...v()
9860
+ ...x()
9870
9861
  }
9871
9862
  }) : f.value = {
9872
9863
  ...f.value,
9873
9864
  page: 1
9874
9865
  };
9875
- }), $t(
9876
- () => e.filter,
9877
- () => {
9878
- w();
9879
- },
9880
- { deep: !0 }
9881
- );
9882
- const { currentVisibleRows: k, totalRows: O, onRowClicked: E } = V1(e, t, y), {
9866
+ }), $t(() => e.filter, () => {
9867
+ o();
9868
+ });
9869
+ const { currentVisibleRows: k, totalRows: O, onRowClicked: E } = V1(e, t, w), {
9883
9870
  selectedRows: D,
9884
9871
  toggleMasterSelect: R,
9885
9872
  toggleRowSelect: De,
@@ -9893,26 +9880,26 @@ const ep = {
9893
9880
  isFetchingData: a,
9894
9881
  totalRows: O,
9895
9882
  currentVisibleRows: k,
9896
- visibleColumns: o,
9897
- totalColumns: s,
9883
+ visibleColumns: l,
9884
+ totalColumns: c,
9898
9885
  selectedRows: D,
9899
9886
  toggleMasterSelect: R,
9900
9887
  areAllRowsSelected: at,
9901
9888
  toggleRowSelect: De,
9902
- setSortFields: u,
9889
+ setSortFields: g,
9903
9890
  fetchData: r,
9904
9891
  isDataLoading: xn,
9905
9892
  onRowClicked: E,
9906
9893
  isRowSelected: We,
9907
- getSortableState: c,
9908
- sortDirection: g,
9894
+ getSortableState: m,
9895
+ sortDirection: v,
9909
9896
  localPagination: f,
9910
9897
  onPaginationChange: d,
9911
9898
  rowMenuOpened: n,
9912
9899
  settings: kn,
9913
- sortedRows: y,
9914
- loadFirstPage: w,
9915
- reloadData: x
9900
+ sortedRows: w,
9901
+ loadFirstPage: o,
9902
+ reloadData: s
9916
9903
  };
9917
9904
  }
9918
9905
  // methods: {
@@ -10067,7 +10054,7 @@ function vp(e, t, n, a, r, i) {
10067
10054
  }, [
10068
10055
  N(c, Z({
10069
10056
  "row-menu-opened": a.rowMenuOpened,
10070
- "onUpdate:rowMenuOpened": t[1] || (t[1] = (v) => a.rowMenuOpened = v),
10057
+ "onUpdate:rowMenuOpened": t[1] || (t[1] = (y) => a.rowMenuOpened = y),
10071
10058
  class: g.align ?? a.settings.align,
10072
10059
  field: g,
10073
10060
  "field-value": g.transform ? g.transform(m) : m[g.name],
@@ -10075,9 +10062,9 @@ function vp(e, t, n, a, r, i) {
10075
10062
  "row-key": n.rowKey,
10076
10063
  ref_for: !0
10077
10064
  }, e.$attrs, {
10078
- onActionClicked: (v) => e.$emit(v.action, v.row),
10079
- onCheckboxClicked: (v) => a.toggleRowSelect(m, v.value),
10080
- onRowValueUpdated: t[2] || (t[2] = (...v) => e.$emit("rowValueUpdated", ...v))
10065
+ onActionClicked: (y) => e.$emit(y.action, y.row),
10066
+ onCheckboxClicked: (y) => a.toggleRowSelect(m, y.value),
10067
+ onRowValueUpdated: t[2] || (t[2] = (...y) => e.$emit("rowValueUpdated", ...y))
10081
10068
  }), null, 16, ["row-menu-opened", "class", "field", "field-value", "row-value", "row-key", "onActionClicked", "onCheckboxClicked"])
10082
10069
  ]))), 128))
10083
10070
  ], 10, mp))), 128)),