vi-grid-builder 2.1.2 → 2.1.4

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.
@@ -1,4 +1,4 @@
1
- import { openBlock as y, createElementBlock as w, mergeProps as At, toDisplayString as M, createElementVNode as C, defineComponent as Tt, computed as A, watch as Cn, h as On, resolveComponent as z, withModifiers as Mt, createVNode as q, Fragment as ce, renderList as ue, createCommentVNode as j, ref as K, onMounted as ya, onUnmounted as ba, createBlock as R, resolveDynamicComponent as Se, renderSlot as L, normalizeClass as Y, withCtx as he, createTextVNode as wa } from "vue";
1
+ import { openBlock as y, createElementBlock as _, mergeProps as At, toDisplayString as M, createElementVNode as C, defineComponent as Tt, computed as A, watch as Cn, h as On, resolveComponent as z, withModifiers as Mt, createVNode as q, Fragment as ce, renderList as ue, createCommentVNode as j, ref as K, onMounted as ya, onUnmounted as ba, createBlock as R, resolveDynamicComponent as Se, renderSlot as L, normalizeClass as Y, withCtx as he, createTextVNode as wa } from "vue";
2
2
  const I = (e, t) => {
3
3
  const n = e.__vccOpts || e;
4
4
  for (const [a, r] of t)
@@ -11,7 +11,7 @@ const I = (e, t) => {
11
11
  }
12
12
  };
13
13
  function xa(e, t, n, a, r, i) {
14
- return y(), w("div", At({ class: "vi-grid-badge" }, e.$attrs, { class: n.value }), M(n.value), 17);
14
+ return y(), _("div", At({ class: "vi-grid-badge" }, e.$attrs, { class: n.value }), M(n.value), 17);
15
15
  }
16
16
  const Pa = /* @__PURE__ */ I(_a, [["render", xa]]);
17
17
  const ka = {
@@ -21,7 +21,7 @@ const ka = {
21
21
  }
22
22
  }, Sa = { class: "vi-grid-image" }, Ca = ["src"];
23
23
  function Oa(e, t, n, a, r, i) {
24
- return y(), w("div", Sa, [
24
+ return y(), _("div", Sa, [
25
25
  C("img", { src: n.value }, null, 8, Ca)
26
26
  ]);
27
27
  }
@@ -33,7 +33,7 @@ const Ta = {
33
33
  }
34
34
  }, Ma = { class: "vi-grid-text" };
35
35
  function Da(e, t, n, a, r, i) {
36
- return y(), w("div", Ma, M(n.value), 1);
36
+ return y(), _("div", Ma, M(n.value), 1);
37
37
  }
38
38
  const Na = /* @__PURE__ */ I(Ta, [["render", Da]]);
39
39
  function je(e) {
@@ -122,41 +122,41 @@ function za(e) {
122
122
  var t = H(e), n = ze(t).getTime() - Ya(t).getTime();
123
123
  return Math.round(n / ja) + 1;
124
124
  }
125
- function Be(e, t) {
125
+ function Ge(e, t) {
126
126
  var n, a, r, i, o, s, l, c;
127
127
  N(1, arguments);
128
128
  var f = Ke(), d = ne((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 : f.weekStartsOn) !== null && a !== void 0 ? a : (l = f.locale) === null || l === void 0 || (c = l.options) === null || c === void 0 ? void 0 : c.weekStartsOn) !== null && n !== void 0 ? n : 0);
129
129
  if (!(d >= 0 && d <= 6))
130
130
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
131
- var h = H(e), m = h.getUTCDay(), b = (m < d ? 7 : 0) + m - d;
131
+ var h = H(e), g = h.getUTCDay(), b = (g < d ? 7 : 0) + g - d;
132
132
  return h.setUTCDate(h.getUTCDate() - b), h.setUTCHours(0, 0, 0, 0), h;
133
133
  }
134
134
  function Dn(e, t) {
135
135
  var n, a, r, i, o, s, l, c;
136
136
  N(1, arguments);
137
- var f = H(e), d = f.getUTCFullYear(), h = Ke(), m = ne((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 : h.firstWeekContainsDate) !== null && a !== void 0 ? a : (l = h.locale) === null || l === void 0 || (c = l.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && n !== void 0 ? n : 1);
138
- if (!(m >= 1 && m <= 7))
137
+ var f = H(e), d = f.getUTCFullYear(), h = Ke(), g = ne((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 : h.firstWeekContainsDate) !== null && a !== void 0 ? a : (l = h.locale) === null || l === void 0 || (c = l.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && n !== void 0 ? n : 1);
138
+ if (!(g >= 1 && g <= 7))
139
139
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
140
140
  var b = /* @__PURE__ */ new Date(0);
141
- b.setUTCFullYear(d + 1, 0, m), b.setUTCHours(0, 0, 0, 0);
142
- var x = Be(b, t), _ = /* @__PURE__ */ new Date(0);
143
- _.setUTCFullYear(d, 0, m), _.setUTCHours(0, 0, 0, 0);
144
- var g = Be(_, t);
145
- return f.getTime() >= x.getTime() ? d + 1 : f.getTime() >= g.getTime() ? d : d - 1;
141
+ b.setUTCFullYear(d + 1, 0, g), b.setUTCHours(0, 0, 0, 0);
142
+ var x = Ge(b, t), w = /* @__PURE__ */ new Date(0);
143
+ w.setUTCFullYear(d, 0, g), w.setUTCHours(0, 0, 0, 0);
144
+ var m = Ge(w, t);
145
+ return f.getTime() >= x.getTime() ? d + 1 : f.getTime() >= m.getTime() ? d : d - 1;
146
146
  }
147
- function Ba(e, t) {
147
+ function Ga(e, t) {
148
148
  var n, a, r, i, o, s, l, c;
149
149
  N(1, arguments);
150
- var f = Ke(), d = ne((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 : f.firstWeekContainsDate) !== null && a !== void 0 ? a : (l = f.locale) === null || l === void 0 || (c = l.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && n !== void 0 ? n : 1), h = Dn(e, t), m = /* @__PURE__ */ new Date(0);
151
- m.setUTCFullYear(h, 0, d), m.setUTCHours(0, 0, 0, 0);
152
- var b = Be(m, t);
150
+ var f = Ke(), d = ne((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 : f.firstWeekContainsDate) !== null && a !== void 0 ? a : (l = f.locale) === null || l === void 0 || (c = l.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && n !== void 0 ? n : 1), h = Dn(e, t), g = /* @__PURE__ */ new Date(0);
151
+ g.setUTCFullYear(h, 0, d), g.setUTCHours(0, 0, 0, 0);
152
+ var b = Ge(g, t);
153
153
  return b;
154
154
  }
155
- var Ga = 6048e5;
155
+ var Ba = 6048e5;
156
156
  function $a(e, t) {
157
157
  N(1, arguments);
158
- var n = H(e), a = Be(n, t).getTime() - Ba(n, t).getTime();
159
- return Math.round(a / Ga) + 1;
158
+ var n = H(e), a = Ge(n, t).getTime() - Ga(n, t).getTime();
159
+ return Math.round(a / Ba) + 1;
160
160
  }
161
161
  function k(e, t) {
162
162
  for (var n = e < 0 ? "-" : "", a = Math.abs(e).toString(); a.length < t; )
@@ -700,7 +700,7 @@ var ge = {
700
700
  return "Z";
701
701
  switch (n) {
702
702
  case "X":
703
- return Gt(o);
703
+ return Bt(o);
704
704
  case "XXXX":
705
705
  case "XX":
706
706
  return se(o);
@@ -715,7 +715,7 @@ var ge = {
715
715
  var i = r._originalDate || t, o = i.getTimezoneOffset();
716
716
  switch (n) {
717
717
  case "x":
718
- return Gt(o);
718
+ return Bt(o);
719
719
  case "xxxx":
720
720
  case "xx":
721
721
  return se(o);
@@ -732,7 +732,7 @@ var ge = {
732
732
  case "O":
733
733
  case "OO":
734
734
  case "OOO":
735
- return "GMT" + Bt(o, ":");
735
+ return "GMT" + Gt(o, ":");
736
736
  case "OOOO":
737
737
  default:
738
738
  return "GMT" + se(o, ":");
@@ -745,7 +745,7 @@ var ge = {
745
745
  case "z":
746
746
  case "zz":
747
747
  case "zzz":
748
- return "GMT" + Bt(o, ":");
748
+ return "GMT" + Gt(o, ":");
749
749
  case "zzzz":
750
750
  default:
751
751
  return "GMT" + se(o, ":");
@@ -762,14 +762,14 @@ var ge = {
762
762
  return k(o, n.length);
763
763
  }
764
764
  };
765
- function Bt(e, t) {
765
+ function Gt(e, t) {
766
766
  var n = e > 0 ? "-" : "+", a = Math.abs(e), r = Math.floor(a / 60), i = a % 60;
767
767
  if (i === 0)
768
768
  return n + String(r);
769
769
  var o = t || "";
770
770
  return n + String(r) + o + k(i, 2);
771
771
  }
772
- function Gt(e, t) {
772
+ function Bt(e, t) {
773
773
  if (e % 60 === 0) {
774
774
  var n = e > 0 ? "-" : "+";
775
775
  return n + k(Math.abs(e) / 60, 2);
@@ -1262,14 +1262,14 @@ var Vr = {
1262
1262
  }
1263
1263
  };
1264
1264
  const Yr = Vr;
1265
- var jr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, zr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Br = /^'([^]*?)'?$/, Gr = /''/g, $r = /[a-zA-Z]/;
1265
+ var jr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, zr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Gr = /^'([^]*?)'?$/, Br = /''/g, $r = /[a-zA-Z]/;
1266
1266
  function Hr(e, t, n) {
1267
- var a, r, i, o, s, l, c, f, d, h, m, b, x, _, g, p, P, O;
1267
+ var a, r, i, o, s, l, c, f, d, h, g, b, x, w, m, p, P, O;
1268
1268
  N(2, arguments);
1269
1269
  var T = String(t), V = Ke(), E = (a = (r = n == null ? void 0 : n.locale) !== null && r !== void 0 ? r : V.locale) !== null && a !== void 0 ? a : Yr, oe = ne((i = (o = (s = (l = n == null ? void 0 : n.firstWeekContainsDate) !== null && l !== void 0 ? l : n == null || (c = n.locale) === null || c === void 0 || (f = c.options) === null || f === void 0 ? void 0 : f.firstWeekContainsDate) !== null && s !== void 0 ? s : V.firstWeekContainsDate) !== null && o !== void 0 ? o : (d = V.locale) === null || d === void 0 || (h = d.options) === null || h === void 0 ? void 0 : h.firstWeekContainsDate) !== null && i !== void 0 ? i : 1);
1270
1270
  if (!(oe >= 1 && oe <= 7))
1271
1271
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
1272
- var _e = ne((m = (b = (x = (_ = n == null ? void 0 : n.weekStartsOn) !== null && _ !== void 0 ? _ : n == null || (g = n.locale) === null || g === void 0 || (p = g.options) === null || p === void 0 ? void 0 : p.weekStartsOn) !== null && x !== void 0 ? x : V.weekStartsOn) !== null && b !== void 0 ? b : (P = V.locale) === null || P === void 0 || (O = P.options) === null || O === void 0 ? void 0 : O.weekStartsOn) !== null && m !== void 0 ? m : 0);
1272
+ var _e = ne((g = (b = (x = (w = n == null ? void 0 : n.weekStartsOn) !== null && w !== void 0 ? w : n == null || (m = n.locale) === null || m === void 0 || (p = m.options) === null || p === void 0 ? void 0 : p.weekStartsOn) !== null && x !== void 0 ? x : V.weekStartsOn) !== null && b !== void 0 ? b : (P = V.locale) === null || P === void 0 || (O = P.options) === null || O === void 0 ? void 0 : O.weekStartsOn) !== null && g !== void 0 ? g : 0);
1273
1273
  if (!(_e >= 0 && _e <= 6))
1274
1274
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
1275
1275
  if (!E.localize)
@@ -1307,8 +1307,8 @@ function Hr(e, t, n) {
1307
1307
  return Fe;
1308
1308
  }
1309
1309
  function qr(e) {
1310
- var t = e.match(Br);
1311
- return t ? t[1].replace(Gr, "'") : e;
1310
+ var t = e.match(Gr);
1311
+ return t ? t[1].replace(Br, "'") : e;
1312
1312
  }
1313
1313
  function Kr(e, t) {
1314
1314
  var n;
@@ -1426,7 +1426,7 @@ function ui(e, t) {
1426
1426
  }
1427
1427
  const fi = {
1428
1428
  name: "ViGridDate",
1429
- inject: ["ViDateSettings"],
1429
+ inject: ["ViGirdDateSettings"],
1430
1430
  props: {
1431
1431
  value: {},
1432
1432
  mode: {
@@ -1441,16 +1441,16 @@ const fi = {
1441
1441
  },
1442
1442
  computed: {
1443
1443
  dateFormatted() {
1444
- const e = this.format ?? this.ViDateSettings.format[this.dateMode];
1444
+ const e = this.format ?? this.ViGirdDateSettings.format[this.dateMode];
1445
1445
  return Hr(Kr(this.value), e);
1446
1446
  },
1447
1447
  dateMode() {
1448
- return this.mode ?? this.ViDateSettings.mode;
1448
+ return this.mode ?? this.ViGirdDateSettings.mode;
1449
1449
  }
1450
1450
  }
1451
1451
  }, di = { class: "vi-grid-date" };
1452
1452
  function mi(e, t, n, a, r, i) {
1453
- return y(), w("div", di, M(i.dateFormatted), 1);
1453
+ return y(), _("div", di, M(i.dateFormatted), 1);
1454
1454
  }
1455
1455
  const gi = /* @__PURE__ */ I(fi, [["render", mi]]);
1456
1456
  /*!
@@ -1804,7 +1804,7 @@ var yi = /fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/, bi
1804
1804
  900: "fad"
1805
1805
  }
1806
1806
  };
1807
- const X = "___FONT_AWESOME___", dt = 16, jn = "fa", zn = "svg-inline--fa", fe = "data-fa-i2svg", mt = "data-fa-pseudo-element", ji = "data-fa-pseudo-element-pending", Nt = "data-prefix", Et = "data-icon", en = "fontawesome-i2svg", zi = "async", Bi = ["HTML", "HEAD", "STYLE", "SCRIPT"], Bn = (() => {
1807
+ const X = "___FONT_AWESOME___", dt = 16, jn = "fa", zn = "svg-inline--fa", fe = "data-fa-i2svg", mt = "data-fa-pseudo-element", ji = "data-fa-pseudo-element-pending", Nt = "data-prefix", Et = "data-icon", en = "fontawesome-i2svg", zi = "async", Gi = ["HTML", "HEAD", "STYLE", "SCRIPT"], Gn = (() => {
1808
1808
  try {
1809
1809
  return process.env.NODE_ENV === "production";
1810
1810
  } catch {
@@ -1818,11 +1818,11 @@ function Ne(e) {
1818
1818
  }
1819
1819
  });
1820
1820
  }
1821
- const Gn = u({}, Un);
1822
- Gn[D] = u(u(u(u({}, {
1821
+ const Bn = u({}, Un);
1822
+ Bn[D] = u(u(u(u({}, {
1823
1823
  "fa-duotone": "duotone"
1824
1824
  }), Un[D]), Jt.kit), Jt["kit-duotone"]);
1825
- const Gi = Ne(Gn), gt = u({}, Ci);
1825
+ const Bi = Ne(Bn), gt = u({}, Ci);
1826
1826
  gt[D] = u(u(u(u({}, {
1827
1827
  duotone: "fad"
1828
1828
  }), gt[D]), Zt.kit), Zt["kit-duotone"]);
@@ -1893,7 +1893,7 @@ function Zi(e) {
1893
1893
  Ae.splice(Ae.indexOf(e), 1);
1894
1894
  };
1895
1895
  }
1896
- const te = dt, G = {
1896
+ const te = dt, B = {
1897
1897
  size: 16,
1898
1898
  x: 0,
1899
1899
  y: 0,
@@ -1940,7 +1940,7 @@ function Qe(e) {
1940
1940
  return Object.keys(e || {}).reduce((t, n) => t + "".concat(n, ": ").concat(e[n].trim(), ";"), "");
1941
1941
  }
1942
1942
  function Rt(e) {
1943
- return e.size !== G.size || e.x !== G.x || e.y !== G.y || e.rotate !== G.rotate || e.flipX || e.flipY;
1943
+ return e.size !== B.size || e.x !== B.x || e.y !== B.y || e.rotate !== B.rotate || e.flipX || e.flipY;
1944
1944
  }
1945
1945
  function ao(e) {
1946
1946
  let {
@@ -2564,12 +2564,12 @@ Q[X].hooks || (Q[X].hooks = {});
2564
2564
  Q[X].shims || (Q[X].shims = []);
2565
2565
  var $ = Q[X];
2566
2566
  const Xn = [], Qn = function() {
2567
- S.removeEventListener("DOMContentLoaded", Qn), Ge = 1, Xn.map((e) => e());
2567
+ S.removeEventListener("DOMContentLoaded", Qn), Be = 1, Xn.map((e) => e());
2568
2568
  };
2569
- let Ge = !1;
2570
- J && (Ge = (S.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(S.readyState), Ge || S.addEventListener("DOMContentLoaded", Qn));
2569
+ let Be = !1;
2570
+ J && (Be = (S.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(S.readyState), Be || S.addEventListener("DOMContentLoaded", Qn));
2571
2571
  function so(e) {
2572
- J && (Ge ? setTimeout(e, 0) : Xn.push(e));
2572
+ J && (Be ? setTimeout(e, 0) : Xn.push(e));
2573
2573
  }
2574
2574
  function Ee(e) {
2575
2575
  const {
@@ -2726,7 +2726,7 @@ function Je(e) {
2726
2726
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2727
2727
  const {
2728
2728
  family: n = D
2729
- } = t, a = Gi[n][e];
2729
+ } = t, a = Bi[n][e];
2730
2730
  if (n === Xe && !e)
2731
2731
  return "fad";
2732
2732
  const r = tn[n][e] || tn[n][a], i = e in $.styles ? e : null;
@@ -3031,9 +3031,9 @@ function Wt(e) {
3031
3031
  watchable: d = !1
3032
3032
  } = e, {
3033
3033
  width: h,
3034
- height: m
3034
+ height: g
3035
3035
  } = n.found ? n : t, b = Mi.includes(a), x = [v.replacementClass, r ? "".concat(v.cssPrefix, "-").concat(r) : ""].filter((T) => f.classes.indexOf(T) === -1).filter((T) => T !== "" || !!T).concat(f.classes).join(" ");
3036
- let _ = {
3036
+ let w = {
3037
3037
  children: [],
3038
3038
  attributes: u(u({}, f.attributes), {}, {
3039
3039
  "data-prefix": a,
@@ -3041,20 +3041,20 @@ function Wt(e) {
3041
3041
  class: x,
3042
3042
  role: f.attributes.role || "img",
3043
3043
  xmlns: "http://www.w3.org/2000/svg",
3044
- viewBox: "0 0 ".concat(h, " ").concat(m)
3044
+ viewBox: "0 0 ".concat(h, " ").concat(g)
3045
3045
  })
3046
3046
  };
3047
- const g = b && !~f.classes.indexOf("fa-fw") ? {
3048
- width: "".concat(h / m * 16 * 0.0625, "em")
3047
+ const m = b && !~f.classes.indexOf("fa-fw") ? {
3048
+ width: "".concat(h / g * 16 * 0.0625, "em")
3049
3049
  } : {};
3050
- d && (_.attributes[fe] = ""), s && (_.children.push({
3050
+ d && (w.attributes[fe] = ""), s && (w.children.push({
3051
3051
  tag: "title",
3052
3052
  attributes: {
3053
- id: _.attributes["aria-labelledby"] || "title-".concat(c || Me())
3053
+ id: w.attributes["aria-labelledby"] || "title-".concat(c || Me())
3054
3054
  },
3055
3055
  children: [s]
3056
- }), delete _.attributes.title);
3057
- const p = u(u({}, _), {}, {
3056
+ }), delete w.attributes.title);
3057
+ const p = u(u({}, w), {}, {
3058
3058
  prefix: a,
3059
3059
  iconName: r,
3060
3060
  main: t,
@@ -3062,7 +3062,7 @@ function Wt(e) {
3062
3062
  maskId: l,
3063
3063
  transform: i,
3064
3064
  symbol: o,
3065
- styles: u(u({}, g), f.styles)
3065
+ styles: u(u({}, m), f.styles)
3066
3066
  }), {
3067
3067
  children: P,
3068
3068
  attributes: O
@@ -3181,7 +3181,7 @@ const Io = {
3181
3181
  height: 512
3182
3182
  };
3183
3183
  function Fo(e, t) {
3184
- !Bn && !v.showMissingIcons && e && console.error('Icon with name "'.concat(e, '" and prefix "').concat(t, '" is missing.'));
3184
+ !Gn && !v.showMissingIcons && e && console.error('Icon with name "'.concat(e, '" and prefix "').concat(t, '" is missing.'));
3185
3185
  }
3186
3186
  function xt(e, t) {
3187
3187
  let n = t;
@@ -3337,7 +3337,7 @@ function dn(e) {
3337
3337
  function zo() {
3338
3338
  $e && $e.disconnect();
3339
3339
  }
3340
- function Bo(e) {
3340
+ function Go(e) {
3341
3341
  const t = e.getAttribute("style");
3342
3342
  let n = [];
3343
3343
  return t && (n = t.split(";").reduce((a, r) => {
@@ -3345,7 +3345,7 @@ function Bo(e) {
3345
3345
  return o && s.length > 0 && (a[o] = s.join(":").trim()), a;
3346
3346
  }, {})), n;
3347
3347
  }
3348
- function Go(e) {
3348
+ function Bo(e) {
3349
3349
  const t = e.getAttribute("data-prefix"), n = e.getAttribute("data-icon"), a = e.innerText !== void 0 ? e.innerText.trim() : "";
3350
3350
  let r = Ze(Ft(e));
3351
3351
  return r.prefix || (r.prefix = re()), t && n && (r.prefix = t, r.iconName = n), r.iconName && r.prefix || (r.prefix && a.length > 0 && (r.iconName = vo(r.prefix, e.innerText) || Ut(r.prefix, pt(e.innerText))), !r.iconName && v.autoFetchSvg && e.firstChild && e.firstChild.nodeType === Node.TEXT_NODE && (r.iconName = e.firstChild.data)), r;
@@ -3360,7 +3360,7 @@ function Ho() {
3360
3360
  title: null,
3361
3361
  titleId: null,
3362
3362
  prefix: null,
3363
- transform: G,
3363
+ transform: B,
3364
3364
  symbol: !1,
3365
3365
  mask: {
3366
3366
  iconName: null,
@@ -3383,14 +3383,14 @@ function mn(e) {
3383
3383
  iconName: n,
3384
3384
  prefix: a,
3385
3385
  rest: r
3386
- } = Go(e), i = $o(e), o = bt("parseNodeAttributes", {}, e);
3387
- let s = t.styleParser ? Bo(e) : [];
3386
+ } = Bo(e), i = $o(e), o = bt("parseNodeAttributes", {}, e);
3387
+ let s = t.styleParser ? Go(e) : [];
3388
3388
  return u({
3389
3389
  iconName: n,
3390
3390
  title: e.getAttribute("title"),
3391
3391
  titleId: e.getAttribute("data-fa-title-id"),
3392
3392
  prefix: a,
3393
- transform: G,
3393
+ transform: B,
3394
3394
  mask: {
3395
3395
  iconName: null,
3396
3396
  prefix: null,
@@ -3440,7 +3440,7 @@ function gn(e) {
3440
3440
  const h = da(d);
3441
3441
  h && f.push(h);
3442
3442
  } catch (h) {
3443
- Bn || h.name === "MissingIcon" && console.error(h);
3443
+ Gn || h.name === "MissingIcon" && console.error(h);
3444
3444
  }
3445
3445
  return f;
3446
3446
  }, []);
@@ -3475,7 +3475,7 @@ function Qo(e) {
3475
3475
  const Jo = function(e) {
3476
3476
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3477
3477
  const {
3478
- transform: n = G,
3478
+ transform: n = B,
3479
3479
  symbol: a = !1,
3480
3480
  mask: r = null,
3481
3481
  maskId: i = null,
@@ -3490,7 +3490,7 @@ const Jo = function(e) {
3490
3490
  const {
3491
3491
  prefix: d,
3492
3492
  iconName: h,
3493
- icon: m
3493
+ icon: g
3494
3494
  } = e;
3495
3495
  return et(u({
3496
3496
  type: "icon"
@@ -3499,7 +3499,7 @@ const Jo = function(e) {
3499
3499
  params: t
3500
3500
  }), v.autoA11y && (o ? c["aria-labelledby"] = "".concat(v.replacementClass, "-title-").concat(s || Me()) : (c["aria-hidden"] = "true", c.focusable = "false")), Wt({
3501
3501
  icons: {
3502
- main: _t(m),
3502
+ main: _t(g),
3503
3503
  mask: r ? _t(r.icon) : {
3504
3504
  found: !1,
3505
3505
  width: null,
@@ -3509,7 +3509,7 @@ const Jo = function(e) {
3509
3509
  },
3510
3510
  prefix: d,
3511
3511
  iconName: h,
3512
- transform: u(u({}, G), n),
3512
+ transform: u(u({}, B), n),
3513
3513
  symbol: a,
3514
3514
  title: o,
3515
3515
  maskId: i,
@@ -3554,18 +3554,18 @@ var Zo = {
3554
3554
  maskId: f,
3555
3555
  extra: d
3556
3556
  } = n;
3557
- return new Promise((h, m) => {
3557
+ return new Promise((h, g) => {
3558
3558
  Promise.all([xt(a, o), c.iconName ? xt(c.iconName, c.prefix) : Promise.resolve({
3559
3559
  found: !1,
3560
3560
  width: 512,
3561
3561
  height: 512,
3562
3562
  icon: {}
3563
3563
  })]).then((b) => {
3564
- let [x, _] = b;
3564
+ let [x, w] = b;
3565
3565
  h([t, Wt({
3566
3566
  icons: {
3567
3567
  main: x,
3568
- mask: _
3568
+ mask: w
3569
3569
  },
3570
3570
  prefix: o,
3571
3571
  iconName: a,
@@ -3577,7 +3577,7 @@ var Zo = {
3577
3577
  extra: d,
3578
3578
  watchable: !0
3579
3579
  })]);
3580
- }).catch(m);
3580
+ }).catch(g);
3581
3581
  });
3582
3582
  }, e.generateAbstractIcon = function(t) {
3583
3583
  let {
@@ -3667,7 +3667,7 @@ var Zo = {
3667
3667
  text(e) {
3668
3668
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3669
3669
  const {
3670
- transform: n = G,
3670
+ transform: n = B,
3671
3671
  title: a = null,
3672
3672
  classes: r = [],
3673
3673
  attributes: i = {},
@@ -3681,7 +3681,7 @@ var Zo = {
3681
3681
  params: t
3682
3682
  }), ln({
3683
3683
  content: e,
3684
- transform: u(u({}, G), n),
3684
+ transform: u(u({}, B), n),
3685
3685
  title: a,
3686
3686
  extra: {
3687
3687
  attributes: i,
@@ -3746,28 +3746,28 @@ function pn(e, t) {
3746
3746
  return e.removeChild(o), a();
3747
3747
  if (c && d !== "none" && d !== "") {
3748
3748
  const h = s.getPropertyValue("content");
3749
- let m = os(l, f);
3749
+ let g = os(l, f);
3750
3750
  const {
3751
3751
  value: b,
3752
3752
  isSecondary: x
3753
- } = is(h), _ = c[0].startsWith("FontAwesome");
3754
- let g = Ut(m, b), p = g;
3755
- if (_) {
3753
+ } = is(h), w = c[0].startsWith("FontAwesome");
3754
+ let m = Ut(g, b), p = m;
3755
+ if (w) {
3756
3756
  const P = po(b);
3757
- P.iconName && P.prefix && (g = P.iconName, m = P.prefix);
3757
+ P.iconName && P.prefix && (m = P.iconName, g = P.prefix);
3758
3758
  }
3759
- if (g && !x && (!o || o.getAttribute(Nt) !== m || o.getAttribute(Et) !== p)) {
3759
+ if (m && !x && (!o || o.getAttribute(Nt) !== g || o.getAttribute(Et) !== p)) {
3760
3760
  e.setAttribute(n, p), o && e.removeChild(o);
3761
3761
  const P = Ho(), {
3762
3762
  extra: O
3763
3763
  } = P;
3764
- O.attributes[mt] = t, xt(g, m).then((T) => {
3764
+ O.attributes[mt] = t, xt(m, g).then((T) => {
3765
3765
  const V = Wt(u(u({}, P), {}, {
3766
3766
  icons: {
3767
3767
  main: T,
3768
3768
  mask: oa()
3769
3769
  },
3770
- prefix: m,
3770
+ prefix: g,
3771
3771
  iconName: p,
3772
3772
  extra: O,
3773
3773
  watchable: !0
@@ -3785,7 +3785,7 @@ function ss(e) {
3785
3785
  return Promise.all([pn(e, "::before"), pn(e, "::after")]);
3786
3786
  }
3787
3787
  function ls(e) {
3788
- return e.parentNode !== document.head && !~Bi.indexOf(e.tagName.toUpperCase()) && !e.getAttribute(mt) && (!e.parentNode || e.parentNode.tagName !== "svg");
3788
+ return e.parentNode !== document.head && !~Gi.indexOf(e.tagName.toUpperCase()) && !e.getAttribute(mt) && (!e.parentNode || e.parentNode.tagName !== "svg");
3789
3789
  }
3790
3790
  function yn(e) {
3791
3791
  if (J)
@@ -3982,7 +3982,7 @@ var ms = {
3982
3982
  transform: s,
3983
3983
  containerWidth: f,
3984
3984
  iconWidth: l
3985
- }), m = {
3985
+ }), g = {
3986
3986
  tag: "rect",
3987
3987
  attributes: u(u({}, ct), {}, {
3988
3988
  fill: "white"
@@ -3996,18 +3996,18 @@ var ms = {
3996
3996
  tag: c.tag,
3997
3997
  attributes: u(u({}, c.attributes), h.path)
3998
3998
  }, b))]
3999
- }, _ = {
3999
+ }, w = {
4000
4000
  tag: "g",
4001
4001
  attributes: u({}, h.outer),
4002
4002
  children: [x]
4003
- }, g = "mask-".concat(o || Me()), p = "clip-".concat(o || Me()), P = {
4003
+ }, m = "mask-".concat(o || Me()), p = "clip-".concat(o || Me()), P = {
4004
4004
  tag: "mask",
4005
4005
  attributes: u(u({}, ct), {}, {
4006
- id: g,
4006
+ id: m,
4007
4007
  maskUnits: "userSpaceOnUse",
4008
4008
  maskContentUnits: "userSpaceOnUse"
4009
4009
  }),
4010
- children: [m, _]
4010
+ children: [g, w]
4011
4011
  }, O = {
4012
4012
  tag: "defs",
4013
4013
  children: [{
@@ -4023,7 +4023,7 @@ var ms = {
4023
4023
  attributes: u({
4024
4024
  fill: "currentColor",
4025
4025
  "clip-path": "url(#".concat(p, ")"),
4026
- mask: "url(#".concat(g, ")")
4026
+ mask: "url(#".concat(m, ")")
4027
4027
  }, ct)
4028
4028
  }), {
4029
4029
  children: n,
@@ -4136,7 +4136,7 @@ function xn(e, t) {
4136
4136
  }
4137
4137
  return n;
4138
4138
  }
4139
- function B(e) {
4139
+ function G(e) {
4140
4140
  for (var t = 1; t < arguments.length; t++) {
4141
4141
  var n = arguments[t] != null ? arguments[t] : {};
4142
4142
  t % 2 ? xn(Object(n), !0).forEach(function(a) {
@@ -4237,70 +4237,70 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4237
4237
  var Os = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ha = { exports: {} };
4238
4238
  (function(e) {
4239
4239
  (function(t) {
4240
- var n = function(g, p, P) {
4241
- if (!c(p) || d(p) || h(p) || m(p) || l(p))
4240
+ var n = function(m, p, P) {
4241
+ if (!c(p) || d(p) || h(p) || g(p) || l(p))
4242
4242
  return p;
4243
4243
  var O, T = 0, V = 0;
4244
4244
  if (f(p))
4245
4245
  for (O = [], V = p.length; T < V; T++)
4246
- O.push(n(g, p[T], P));
4246
+ O.push(n(m, p[T], P));
4247
4247
  else {
4248
4248
  O = {};
4249
4249
  for (var E in p)
4250
- Object.prototype.hasOwnProperty.call(p, E) && (O[g(E, P)] = n(g, p[E], P));
4250
+ Object.prototype.hasOwnProperty.call(p, E) && (O[m(E, P)] = n(m, p[E], P));
4251
4251
  }
4252
4252
  return O;
4253
- }, a = function(g, p) {
4253
+ }, a = function(m, p) {
4254
4254
  p = p || {};
4255
4255
  var P = p.separator || "_", O = p.split || /(?=[A-Z])/;
4256
- return g.split(O).join(P);
4257
- }, r = function(g) {
4258
- return b(g) ? g : (g = g.replace(/[\-_\s]+(.)?/g, function(p, P) {
4256
+ return m.split(O).join(P);
4257
+ }, r = function(m) {
4258
+ return b(m) ? m : (m = m.replace(/[\-_\s]+(.)?/g, function(p, P) {
4259
4259
  return P ? P.toUpperCase() : "";
4260
- }), g.substr(0, 1).toLowerCase() + g.substr(1));
4261
- }, i = function(g) {
4262
- var p = r(g);
4260
+ }), m.substr(0, 1).toLowerCase() + m.substr(1));
4261
+ }, i = function(m) {
4262
+ var p = r(m);
4263
4263
  return p.substr(0, 1).toUpperCase() + p.substr(1);
4264
- }, o = function(g, p) {
4265
- return a(g, p).toLowerCase();
4266
- }, s = Object.prototype.toString, l = function(g) {
4267
- return typeof g == "function";
4268
- }, c = function(g) {
4269
- return g === Object(g);
4270
- }, f = function(g) {
4271
- return s.call(g) == "[object Array]";
4272
- }, d = function(g) {
4273
- return s.call(g) == "[object Date]";
4274
- }, h = function(g) {
4275
- return s.call(g) == "[object RegExp]";
4276
- }, m = function(g) {
4277
- return s.call(g) == "[object Boolean]";
4278
- }, b = function(g) {
4279
- return g = g - 0, g === g;
4280
- }, x = function(g, p) {
4264
+ }, o = function(m, p) {
4265
+ return a(m, p).toLowerCase();
4266
+ }, s = Object.prototype.toString, l = function(m) {
4267
+ return typeof m == "function";
4268
+ }, c = function(m) {
4269
+ return m === Object(m);
4270
+ }, f = function(m) {
4271
+ return s.call(m) == "[object Array]";
4272
+ }, d = function(m) {
4273
+ return s.call(m) == "[object Date]";
4274
+ }, h = function(m) {
4275
+ return s.call(m) == "[object RegExp]";
4276
+ }, g = function(m) {
4277
+ return s.call(m) == "[object Boolean]";
4278
+ }, b = function(m) {
4279
+ return m = m - 0, m === m;
4280
+ }, x = function(m, p) {
4281
4281
  var P = p && "process" in p ? p.process : p;
4282
- return typeof P != "function" ? g : function(O, T) {
4283
- return P(O, g, T);
4282
+ return typeof P != "function" ? m : function(O, T) {
4283
+ return P(O, m, T);
4284
4284
  };
4285
- }, _ = {
4285
+ }, w = {
4286
4286
  camelize: r,
4287
4287
  decamelize: o,
4288
4288
  pascalize: i,
4289
4289
  depascalize: o,
4290
- camelizeKeys: function(g, p) {
4291
- return n(x(r, p), g);
4290
+ camelizeKeys: function(m, p) {
4291
+ return n(x(r, p), m);
4292
4292
  },
4293
- decamelizeKeys: function(g, p) {
4294
- return n(x(o, p), g, p);
4293
+ decamelizeKeys: function(m, p) {
4294
+ return n(x(o, p), m, p);
4295
4295
  },
4296
- pascalizeKeys: function(g, p) {
4297
- return n(x(i, p), g);
4296
+ pascalizeKeys: function(m, p) {
4297
+ return n(x(i, p), m);
4298
4298
  },
4299
4299
  depascalizeKeys: function() {
4300
4300
  return this.decamelizeKeys.apply(this, arguments);
4301
4301
  }
4302
4302
  };
4303
- e.exports ? e.exports = _ : t.humps = _;
4303
+ e.exports ? e.exports = w : t.humps = w;
4304
4304
  })(Os);
4305
4305
  })(ha);
4306
4306
  var As = ha.exports, Ts = ["class", "style"];
@@ -4345,9 +4345,9 @@ function jt(e) {
4345
4345
  });
4346
4346
  n.class;
4347
4347
  var i = n.style, o = i === void 0 ? {} : i, s = xs(n, Ts);
4348
- return On(e.tag, B(B(B({}, t), {}, {
4348
+ return On(e.tag, G(G(G({}, t), {}, {
4349
4349
  class: r.class,
4350
- style: B(B({}, r.style), o)
4350
+ style: G(G({}, r.style), o)
4351
4351
  }, r.attrs), s), a);
4352
4352
  }
4353
4353
  var va = !1;
@@ -4532,7 +4532,7 @@ var we = Tt({
4532
4532
  }), s = A(function() {
4533
4533
  return Te("mask", Pn(t.mask));
4534
4534
  }), l = A(function() {
4535
- return ps(r.value, B(B(B(B({}, i.value), o.value), s.value), {}, {
4535
+ return ps(r.value, G(G(G(G({}, i.value), o.value), s.value), {}, {
4536
4536
  symbol: t.symbol,
4537
4537
  title: t.title,
4538
4538
  titleId: t.titleId,
@@ -4601,7 +4601,7 @@ Tt({
4601
4601
  }), o = A(function() {
4602
4602
  return Te("transform", typeof t.transform == "string" ? He.transform(t.transform) : t.transform);
4603
4603
  }), s = A(function() {
4604
- var c = ys(t.value.toString(), B(B({}, o.value), i.value)), f = c.abstract;
4604
+ var c = ys(t.value.toString(), G(G({}, o.value), i.value)), f = c.abstract;
4605
4605
  return t.counter && (f[0].attributes.class = f[0].attributes.class.replace("fa-layers-text", "")), f[0];
4606
4606
  }), l = A(function() {
4607
4607
  return jt(s.value, {}, a);
@@ -4648,14 +4648,14 @@ const Is = {
4648
4648
  }, Rs = ["onClick"];
4649
4649
  function Ls(e, t, n, a, r, i) {
4650
4650
  const o = z("font-awesome-icon");
4651
- return y(), w("div", {
4651
+ return y(), _("div", {
4652
4652
  class: "vi-grid-kebab-menu",
4653
4653
  ref: "kebabMenu",
4654
4654
  onClick: t[0] || (t[0] = Mt((s) => e.$emit("toggleMenu"), ["stop"]))
4655
4655
  }, [
4656
4656
  q(o, { icon: ["fas", "ellipsis"] }),
4657
- n.showMenu ? (y(), w("div", Fs, [
4658
- (y(!0), w(ce, null, ue(n.actions, (s) => (y(), w("div", {
4657
+ n.showMenu ? (y(), _("div", Fs, [
4658
+ (y(!0), _(ce, null, ue(n.actions, (s) => (y(), _("div", {
4659
4659
  key: s.action,
4660
4660
  onClick: (l) => e.$emit("action-clicked", s.action),
4661
4661
  class: "actions-menu-item"
@@ -4673,8 +4673,8 @@ const Ws = {
4673
4673
  }
4674
4674
  }, Vs = { class: "vi-grid-builder-actions" }, Ys = ["onClick"];
4675
4675
  function js(e, t, n, a, r, i) {
4676
- return y(), w("div", Vs, [
4677
- (y(!0), w(ce, null, ue(n.actions, (o, s) => (y(), w("div", { key: s }, [
4676
+ return y(), _("div", Vs, [
4677
+ (y(!0), _(ce, null, ue(n.actions, (o, s) => (y(), _("div", { key: s }, [
4678
4678
  C("button", {
4679
4679
  onClick: Mt((l) => e.$emit("action-clicked", o.action), ["stop"])
4680
4680
  }, M(o.name), 9, Ys)
@@ -4682,7 +4682,7 @@ function js(e, t, n, a, r, i) {
4682
4682
  ]);
4683
4683
  }
4684
4684
  const zs = /* @__PURE__ */ I(Ws, [["render", js]]);
4685
- function Bs(e, t) {
4685
+ function Gs(e, t) {
4686
4686
  return {
4687
4687
  visibleActions: A(() => e.actions.filter((i) => i.isVisible === void 0 ? !0 : i.isVisible(e.row))),
4688
4688
  onActionClicked: (i) => {
@@ -4693,7 +4693,7 @@ function Bs(e, t) {
4693
4693
  }
4694
4694
  };
4695
4695
  }
4696
- const Gs = {
4696
+ const Bs = {
4697
4697
  name: "ViGridActions",
4698
4698
  components: { ViGridSimpleActions: zs, ViGridKebabMenu: Us },
4699
4699
  props: {
@@ -4712,7 +4712,7 @@ const Gs = {
4712
4712
  rowMenuOpened: {}
4713
4713
  },
4714
4714
  setup(e, { emit: t }) {
4715
- const { visibleActions: n, onActionClicked: a, toggleRowMenu: r } = Bs(e, t);
4715
+ const { visibleActions: n, onActionClicked: a, toggleRowMenu: r } = Gs(e, t);
4716
4716
  let i = K(null);
4717
4717
  return ya(() => {
4718
4718
  i.clickOutsideHandler = (o) => {
@@ -4733,7 +4733,7 @@ const Gs = {
4733
4733
  };
4734
4734
  function Hs(e, t, n, a, r, i) {
4735
4735
  const o = z("vi-grid-kebab-menu"), s = z("vi-grid-simple-actions");
4736
- return y(), w("div", $s, [
4736
+ return y(), _("div", $s, [
4737
4737
  n.kebab ? (y(), R(o, {
4738
4738
  key: 0,
4739
4739
  actions: a.visibleActions,
@@ -4751,7 +4751,7 @@ function Hs(e, t, n, a, r, i) {
4751
4751
  }, null, 8, ["actions", "row-key", "row", "onActionClicked"]))
4752
4752
  ], 512);
4753
4753
  }
4754
- const qs = /* @__PURE__ */ I(Gs, [["render", Hs]]);
4754
+ const qs = /* @__PURE__ */ I(Bs, [["render", Hs]]);
4755
4755
  const Ks = {
4756
4756
  name: "ViGridLink",
4757
4757
  props: {
@@ -4767,12 +4767,12 @@ const Ks = {
4767
4767
  }
4768
4768
  }, Xs = { class: "vi-grid-link" }, Qs = ["href"], Js = { key: 1 };
4769
4769
  function Zs(e, t, n, a, r, i) {
4770
- return y(), w("div", Xs, [
4771
- n.link && n.row[n.link] || !n.link && n.value ? (y(), w("a", {
4770
+ return y(), _("div", Xs, [
4771
+ n.link && n.row[n.link] || !n.link && n.value ? (y(), _("a", {
4772
4772
  key: 0,
4773
4773
  href: n.row[n.link] ?? n.value,
4774
4774
  target: "_blank"
4775
- }, M(n.value), 9, Qs)) : (y(), w("div", Js, M(n.value), 1))
4775
+ }, M(n.value), 9, Qs)) : (y(), _("div", Js, M(n.value), 1))
4776
4776
  ]);
4777
4777
  }
4778
4778
  const el = /* @__PURE__ */ I(Ks, [["render", Zs]]);
@@ -4791,7 +4791,7 @@ const tl = {
4791
4791
  }
4792
4792
  }, nl = { class: "vi-grid-number" };
4793
4793
  function al(e, t, n, a, r, i) {
4794
- return y(), w("div", nl, M(i.formattedNumber), 1);
4794
+ return y(), _("div", nl, M(i.formattedNumber), 1);
4795
4795
  }
4796
4796
  const rl = /* @__PURE__ */ I(tl, [["render", al]]);
4797
4797
  const il = (e) => e.toLowerCase().replace(
@@ -4833,7 +4833,7 @@ const il = (e) => e.toLowerCase().replace(
4833
4833
  }
4834
4834
  }, ll = { class: "vi-grid-field" };
4835
4835
  function cl(e, t, n, a, r, i) {
4836
- return y(), w("div", ll, [
4836
+ return y(), _("div", ll, [
4837
4837
  i.fieldComponent ? (y(), R(Se(i.fieldComponent), At({ key: 0 }, n.field, {
4838
4838
  value: i.filedValueFormatted,
4839
4839
  "original-value": n.fieldValue,
@@ -4868,7 +4868,7 @@ const fl = {
4868
4868
  }
4869
4869
  }, dl = { class: "vi-grid-checkbox" }, ml = ["checked"];
4870
4870
  function gl(e, t, n, a, r, i) {
4871
- return y(), w("div", dl, [
4871
+ return y(), _("div", dl, [
4872
4872
  C("input", {
4873
4873
  type: "checkbox",
4874
4874
  checked: n.value,
@@ -4947,14 +4947,14 @@ function bl(e, t, n) {
4947
4947
  }
4948
4948
  function wl(e) {
4949
4949
  let t = K(null), n = K(null), a = K(null);
4950
- const r = function(m) {
4951
- return a.value !== m ? "ascending" : t.value === "ascending" ? "descending" : null;
4952
- }, i = function(m, b = "auto") {
4953
- if (b !== "auto")
4954
- a.value = m.name, n.value = m.type, t.value = b;
4950
+ const r = function(g) {
4951
+ return a.value !== g ? "ascending" : t.value === "ascending" ? "descending" : null;
4952
+ }, i = function(g, b = "text", x = "auto") {
4953
+ if (x !== "auto")
4954
+ a.value = g, n.value = b, t.value = x;
4955
4955
  else {
4956
- const x = r(m.name);
4957
- a.value = x === null ? null : m.name, n.value = x === null ? null : m.type, t.value = x;
4956
+ const w = r(g);
4957
+ a.value = w === null ? null : g, n.value = w === null ? null : b, t.value = w;
4958
4958
  }
4959
4959
  return {
4960
4960
  field: a.value,
@@ -4963,17 +4963,17 @@ function wl(e) {
4963
4963
  }, o = () => t.value === null ? null : [{
4964
4964
  field: a.value,
4965
4965
  descending: t.value === "descending"
4966
- }], s = (m, b, x) => x === "ascending" ? m.sort((_, g) => Number(_[b]) - Number(g[b])) : x === "descending" ? m.sort((_, g) => Number(g[b]) - Number(_[b])) : m, l = (m, b, x) => x === "ascending" ? m.sort((_, g) => _[b].toString().localeCompare(g[b].toString())) : x === "descending" ? m.sort((_, g) => g[b].toString().localeCompare(_[b].toString())) : m, c = function(m, b, x, _) {
4967
- return _ ? x === "number" ? s(m, b, _) : l(m, b, _) : m;
4968
- }, f = (m) => {
4969
- const b = m.sortBy ? Array.isArray(m.sortBy) ? m.sortBy[0].field : m.sortBy : null, x = b ? Array.isArray(m.sortBy) ? m.sortBy[0].descending : m.descending : null;
4966
+ }], s = (g, b, x) => x === "ascending" ? g.sort((w, m) => Number(w[b]) - Number(m[b])) : x === "descending" ? g.sort((w, m) => Number(m[b]) - Number(w[b])) : g, l = (g, b, x) => x === "ascending" ? g.sort((w, m) => w[b].toString().localeCompare(m[b].toString())) : x === "descending" ? g.sort((w, m) => m[b].toString().localeCompare(w[b].toString())) : g, c = function(g, b, x, w) {
4967
+ return w ? x === "number" ? s(g, b, w) : l(g, b, w) : g;
4968
+ }, f = (g) => {
4969
+ const b = g.sortBy ? Array.isArray(g.sortBy) ? g.sortBy[0].field : g.sortBy : null, x = b ? Array.isArray(g.sortBy) ? g.sortBy[0].descending : g.descending : null;
4970
4970
  if (!b)
4971
4971
  a.value = null, n.value = null, t.value = null;
4972
4972
  else {
4973
- let _ = e.columns.find((g) => g.name === b);
4974
- i(_, x ? "descending" : "ascending");
4973
+ let w = e.columns.find((m) => m.name === b);
4974
+ w ? i(w.name, w.type, x ? "descending" : "ascending") : i(b, "text", x ? "descending" : "ascending");
4975
4975
  }
4976
- }, d = (m) => a.value !== m.name ? "unsorted" : t.value, h = A(() => e.serverMode ? e.rows ?? [] : c([...e.rows ?? []], a.value, n.value, t.value));
4976
+ }, d = (g) => a.value !== g.name ? "unsorted" : t.value, h = A(() => e.serverMode ? e.rows ?? [] : c([...e.rows ?? []], a.value, n.value, t.value));
4977
4977
  return {
4978
4978
  setSortFieldsFromPagination: f,
4979
4979
  getSortableState: d,
@@ -5027,7 +5027,7 @@ const xl = {
5027
5027
  }
5028
5028
  }, Pl = ["colspan"];
5029
5029
  function kl(e, t, n, a, r, i) {
5030
- return y(), w("th", {
5030
+ return y(), _("th", {
5031
5031
  class: "vi-header-cell vi-cell",
5032
5032
  colspan: n.colspan
5033
5033
  }, [
@@ -5092,7 +5092,7 @@ function Al(e, t, n, a, r, i) {
5092
5092
  align: n.column.align ?? n.align
5093
5093
  }, {
5094
5094
  default: he(() => [
5095
- n.column.sortable ? (y(), w("div", Ol, [
5095
+ n.column.sortable ? (y(), _("div", Ol, [
5096
5096
  n.sortableState === "descending" ? (y(), R(o, {
5097
5097
  key: 0,
5098
5098
  icon: ["fas", "chevron-down"],
@@ -5216,37 +5216,37 @@ const Ml = {
5216
5216
  setSortFields: f,
5217
5217
  sortField: d,
5218
5218
  sortDirection: h,
5219
- formatSortFields: m,
5219
+ formatSortFields: g,
5220
5220
  sortedRows: b
5221
5221
  } = wl(e);
5222
5222
  l(e.pagination);
5223
- const { localPagination: x, onPaginationChange: _ } = _l(e, t, i);
5223
+ const { localPagination: x, onPaginationChange: w } = _l(e, t, i);
5224
5224
  Cn([d, h], (...Ie) => {
5225
5225
  e.serverMode ? i({
5226
5226
  pagination: {
5227
5227
  ...e.pagination,
5228
5228
  page: 1,
5229
- sortBy: m()
5229
+ sortBy: g()
5230
5230
  }
5231
5231
  }) : x.value = {
5232
5232
  ...x.value,
5233
5233
  page: 1
5234
5234
  };
5235
5235
  });
5236
- const { currentVisibleRows: g, totalRows: p, onRowClicked: P } = bl(e, t, b), {
5236
+ const { currentVisibleRows: m, totalRows: p, onRowClicked: P } = bl(e, t, b), {
5237
5237
  selectedRows: O,
5238
5238
  toggleMasterSelect: T,
5239
5239
  toggleRowSelect: V,
5240
5240
  areAllRowsSelected: E,
5241
5241
  isRowSelected: oe
5242
- } = Sl(e, t, g), _e = A(() => e.loading || r.value);
5242
+ } = Sl(e, t, m), _e = A(() => e.loading || r.value);
5243
5243
  e.serverMode && e.fetchOnInit && i();
5244
5244
  const { settings: me } = yl(e);
5245
5245
  return {
5246
5246
  search: n,
5247
5247
  isFetchingData: r,
5248
5248
  totalRows: p,
5249
- currentVisibleRows: g,
5249
+ currentVisibleRows: m,
5250
5250
  visibleColumns: o,
5251
5251
  totalColumns: s,
5252
5252
  selectedRows: O,
@@ -5261,7 +5261,7 @@ const Ml = {
5261
5261
  getSortableState: c,
5262
5262
  sortDirection: h,
5263
5263
  localPagination: x,
5264
- onPaginationChange: _,
5264
+ onPaginationChange: w,
5265
5265
  rowMenuOpened: a,
5266
5266
  settings: me,
5267
5267
  sortedRows: b
@@ -5308,10 +5308,10 @@ const Ml = {
5308
5308
  }, Yl = ["onClick"], jl = {
5309
5309
  key: 0,
5310
5310
  class: "vi-cell vi-select-cell"
5311
- }, zl = { class: "vi-body-row vi-table-row vi-footer-row" }, Bl = ["colspan"];
5312
- function Gl(e, t, n, a, r, i) {
5311
+ }, zl = { class: "vi-body-row vi-table-row vi-footer-row" }, Gl = ["colspan"];
5312
+ function Bl(e, t, n, a, r, i) {
5313
5313
  const o = z("vi-grid-head-cell"), s = z("vi-grid-checkbox"), l = z("vi-grid-head-column-cell"), c = z("vi-grid-field"), f = z("vi-pagination");
5314
- return y(), w("div", Dl, [
5314
+ return y(), _("div", Dl, [
5315
5315
  L(e.$slots, "top"),
5316
5316
  C("div", {
5317
5317
  class: Y(["vi-table-container", { loading: a.isDataLoading }])
@@ -5320,7 +5320,7 @@ function Gl(e, t, n, a, r, i) {
5320
5320
  class: Y(["vi-table", { stripped: a.settings.stripped, bordered: a.settings.bordered }])
5321
5321
  }, [
5322
5322
  C("thead", Nl, [
5323
- n.title ? (y(), w("tr", El, [
5323
+ n.title ? (y(), _("tr", El, [
5324
5324
  n.title ? (y(), R(o, {
5325
5325
  key: 0,
5326
5326
  colspan: a.visibleColumns.length,
@@ -5350,7 +5350,7 @@ function Gl(e, t, n, a, r, i) {
5350
5350
  ]),
5351
5351
  _: 1
5352
5352
  }, 8, ["align"])) : j("", !0),
5353
- (y(!0), w(ce, null, ue(a.visibleColumns, (d) => (y(), R(l, {
5353
+ (y(!0), _(ce, null, ue(a.visibleColumns, (d) => (y(), R(l, {
5354
5354
  key: d.name,
5355
5355
  column: d,
5356
5356
  align: a.settings.align,
@@ -5363,14 +5363,14 @@ function Gl(e, t, n, a, r, i) {
5363
5363
  _: 2
5364
5364
  }, 1032, ["column", "align", "sortable-state", "onSort"]))), 128))
5365
5365
  ]),
5366
- a.isDataLoading ? (y(), w("tr", Fl, [
5366
+ a.isDataLoading ? (y(), _("tr", Fl, [
5367
5367
  q(o, {
5368
5368
  colspan: a.totalColumns,
5369
5369
  class: "vi-loading-cell"
5370
5370
  }, {
5371
5371
  default: he(() => [
5372
5372
  L(e.$slots, "loading", {}, () => [
5373
- a.settings.defaultSlots.loading ? (y(), R(Se(a.settings.defaultSlots.loading), { key: 0 })) : (y(), w("div", Rl, t[2] || (t[2] = [
5373
+ a.settings.defaultSlots.loading ? (y(), R(Se(a.settings.defaultSlots.loading), { key: 0 })) : (y(), _("div", Rl, t[2] || (t[2] = [
5374
5374
  C("div", { class: "loading-bar" }, null, -1)
5375
5375
  ])))
5376
5376
  ])
@@ -5379,23 +5379,23 @@ function Gl(e, t, n, a, r, i) {
5379
5379
  }, 8, ["colspan"])
5380
5380
  ])) : j("", !0)
5381
5381
  ]),
5382
- !a.currentVisibleRows.length && !a.isDataLoading ? (y(), w("tbody", Ll, [
5382
+ !a.currentVisibleRows.length && !a.isDataLoading ? (y(), _("tbody", Ll, [
5383
5383
  C("tr", Ul, [
5384
5384
  L(e.$slots, "empty-data", {}, () => [
5385
- a.settings.defaultSlots.noRows ? (y(), R(Se(a.settings.defaultSlots.noRows), { key: 0 })) : (y(), w("td", {
5385
+ a.settings.defaultSlots.noRows ? (y(), R(Se(a.settings.defaultSlots.noRows), { key: 0 })) : (y(), _("td", {
5386
5386
  key: 1,
5387
5387
  colspan: a.totalColumns,
5388
5388
  class: "vi-body-cell vi-cell"
5389
5389
  }, M(a.settings.noDataLabel), 9, Wl))
5390
5390
  ])
5391
5391
  ])
5392
- ])) : (y(), w("tbody", Vl, [
5393
- (y(!0), w(ce, null, ue(a.currentVisibleRows, (d) => (y(), w("tr", {
5392
+ ])) : (y(), _("tbody", Vl, [
5393
+ (y(!0), _(ce, null, ue(a.currentVisibleRows, (d) => (y(), _("tr", {
5394
5394
  key: d[n.rowKey],
5395
5395
  onClick: (h) => a.onRowClicked(d),
5396
5396
  class: Y([{ clickable: n.clickableRow, selected: a.isRowSelected(d) }, "vi-body-row vi-table-row"])
5397
5397
  }, [
5398
- n.selectable ? (y(), w("td", jl, [
5398
+ n.selectable ? (y(), _("td", jl, [
5399
5399
  C("div", {
5400
5400
  class: Y(["vi-grid-field", a.settings.align])
5401
5401
  }, [
@@ -5407,7 +5407,7 @@ function Gl(e, t, n, a, r, i) {
5407
5407
  }, null, 8, ["row", "name", "value", "onCheckboxClicked"])
5408
5408
  ], 2)
5409
5409
  ])) : j("", !0),
5410
- (y(!0), w(ce, null, ue(a.visibleColumns, (h) => (y(), w("td", {
5410
+ (y(!0), _(ce, null, ue(a.visibleColumns, (h) => (y(), _("td", {
5411
5411
  key: h.name,
5412
5412
  class: "vi-body-cell vi-cell"
5413
5413
  }, [
@@ -5418,12 +5418,12 @@ function Gl(e, t, n, a, r, i) {
5418
5418
  "row-value": d,
5419
5419
  "row-key": n.rowKey,
5420
5420
  "row-menu-opened": a.rowMenuOpened,
5421
- "onUpdate:rowMenuOpened": t[1] || (t[1] = (m) => a.rowMenuOpened = m),
5422
- onActionClicked: (m) => e.$emit(m.action, m.row),
5423
- onCheckboxClicked: (m) => a.toggleRowSelect(d, m.value)
5421
+ "onUpdate:rowMenuOpened": t[1] || (t[1] = (g) => a.rowMenuOpened = g),
5422
+ onActionClicked: (g) => e.$emit(g.action, g.row),
5423
+ onCheckboxClicked: (g) => a.toggleRowSelect(d, g.value)
5424
5424
  }, {
5425
- "custom-field": he((m) => [
5426
- (y(), R(Se(h.type), At({ ref_for: !0 }, m), null, 16))
5425
+ "custom-field": he((g) => [
5426
+ (y(), R(Se(h.type), At({ ref_for: !0 }, g), null, 16))
5427
5427
  ]),
5428
5428
  _: 2
5429
5429
  }, 1032, ["class", "field", "field-value", "row-value", "row-key", "row-menu-opened", "onActionClicked", "onCheckboxClicked"])
@@ -5452,7 +5452,7 @@ function Gl(e, t, n, a, r, i) {
5452
5452
  onUpdate: a.onPaginationChange
5453
5453
  }, null, 8, ["rows-per-page", "current-page", "total-rows", "compact", "rows-per-page-options", "onUpdate"]))
5454
5454
  ])
5455
- ], 8, Bl)
5455
+ ], 8, Gl)
5456
5456
  ])
5457
5457
  ]))
5458
5458
  ], 2)
@@ -5460,7 +5460,7 @@ function Gl(e, t, n, a, r, i) {
5460
5460
  L(e.$slots, "bottom")
5461
5461
  ]);
5462
5462
  }
5463
- const kn = /* @__PURE__ */ I(Ml, [["render", Gl]]), Sn = {
5463
+ const kn = /* @__PURE__ */ I(Ml, [["render", Bl]]), Sn = {
5464
5464
  format: {
5465
5465
  date: "yyyy-MM-dd",
5466
5466
  dateTime: "yyyy-MM-dd HH:mm:ss",
@@ -5577,7 +5577,7 @@ const $l = {
5577
5577
  }, tc = ["onClick"], nc = { class: "page-actions" };
5578
5578
  function ac(e, t, n, a, r, i) {
5579
5579
  const o = z("font-awesome-icon");
5580
- return y(), w("div", Hl, [
5580
+ return y(), _("div", Hl, [
5581
5581
  C("div", ql, [
5582
5582
  L(e.$slots, "rows-per-page", {
5583
5583
  rowsPerPage: i.rowsOnPage,
@@ -5588,7 +5588,7 @@ function ac(e, t, n, a, r, i) {
5588
5588
  value: n.rowsPerPage,
5589
5589
  onChange: t[0] || (t[0] = (...s) => i.rowsPerPageChange && i.rowsPerPageChange(...s))
5590
5590
  }, [
5591
- (y(!0), w(ce, null, ue(n.rowsPerPageOptions, (s) => (y(), w("option", {
5591
+ (y(!0), _(ce, null, ue(n.rowsPerPageOptions, (s) => (y(), _("option", {
5592
5592
  key: s.value,
5593
5593
  value: s.value
5594
5594
  }, M(s.label), 9, Xl))), 128))
@@ -5600,7 +5600,7 @@ function ac(e, t, n, a, r, i) {
5600
5600
  firstVisibleRow: i.firstVisibleRow,
5601
5601
  lastVisibleRow: i.lastVisibleRow
5602
5602
  }, () => [
5603
- n.totalRows > 0 ? (y(), w("div", Ql, " Showing " + M(i.firstVisibleRow) + " - " + M(i.lastVisibleRow) + " of " + M(n.totalRows), 1)) : j("", !0)
5603
+ n.totalRows > 0 ? (y(), _("div", Ql, " Showing " + M(i.firstVisibleRow) + " - " + M(i.lastVisibleRow) + " of " + M(n.totalRows), 1)) : j("", !0)
5604
5604
  ]),
5605
5605
  C("div", Jl, [
5606
5606
  L(e.$slots, "navigation-prev", {}, () => [
@@ -5622,8 +5622,8 @@ function ac(e, t, n, a, r, i) {
5622
5622
  ], 2)
5623
5623
  ])
5624
5624
  ]),
5625
- i.compactPagination ? j("", !0) : (y(), w("div", ec, [
5626
- (y(!0), w(ce, null, ue(i.visiblePages, (s) => (y(), w("div", {
5625
+ i.compactPagination ? j("", !0) : (y(), _("div", ec, [
5626
+ (y(!0), _(ce, null, ue(i.visiblePages, (s) => (y(), _("div", {
5627
5627
  class: Y(["vi-page-number", { active: s === n.currentPage }]),
5628
5628
  key: s,
5629
5629
  onClick: (l) => i.pageChange(s)
@@ -5696,7 +5696,7 @@ const ic = {
5696
5696
  install(e, t = {}) {
5697
5697
  ga.add(uc, ic, cc);
5698
5698
  const { fieldComponents: n, dateFormats: a, dateMode: r, style: i, ...o } = t;
5699
- if (e.provide("ViDateSettings", {
5699
+ if (e.provide("ViGirdDateSettings", {
5700
5700
  ...Sn,
5701
5701
  format: {
5702
5702
  ...Sn.format,