vi-grid-builder 2.3.1 → 2.3.2

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,5 +1,5 @@
1
- import { openBlock as b, createElementBlock as _, mergeProps as ne, toDisplayString as V, createElementVNode as A, defineComponent as de, computed as C, watch as $t, h as Pe, resolveComponent as W, withModifiers as si, createVNode as N, Fragment as _e, renderList as ze, createCommentVNode as z, reactive as et, toRaw as ae, nextTick as li, normalizeClass as Y, createBlock as B, renderSlot as j, isVNode as ci, createApp as Xo, onMounted as ka, onUnmounted as Sa, ref as $, watchEffect as Rt, cloneVNode as Qo, resolveDynamicComponent as lt, withCtx as $e, createTextVNode as Jo } from "vue";
2
- const X = (e, t) => {
1
+ import { openBlock as b, createElementBlock as _, mergeProps as ne, toDisplayString as V, createElementVNode as A, defineComponent as de, computed as C, watch as $t, h as Pe, resolveComponent as W, withModifiers as si, createVNode as N, Fragment as _e, renderList as ze, createCommentVNode as z, reactive as et, toRaw as ae, nextTick as li, normalizeClass as te, createBlock as B, renderSlot as j, isVNode as ci, createApp as Xo, onMounted as ka, onUnmounted as Sa, ref as Y, watchEffect as Rt, cloneVNode as Qo, resolveDynamicComponent as lt, withCtx as $e, createTextVNode as Jo } from "vue";
2
+ const K = (e, t) => {
3
3
  const n = e.__vccOpts || e;
4
4
  for (const [a, r] of t)
5
5
  n[a] = r;
@@ -13,7 +13,7 @@ const X = (e, t) => {
13
13
  function es(e, t, n, a, r, i) {
14
14
  return b(), _("div", ne({ class: "vi-grid-badge" }, e.$attrs, { class: n.value }), V(n.value), 17);
15
15
  }
16
- const ts = /* @__PURE__ */ X(Zo, [["render", es]]);
16
+ const ts = /* @__PURE__ */ K(Zo, [["render", es]]);
17
17
  const ns = {
18
18
  name: "ViGridImage",
19
19
  props: {
@@ -25,7 +25,7 @@ function is(e, t, n, a, r, i) {
25
25
  A("img", { src: n.value }, null, 8, rs)
26
26
  ]);
27
27
  }
28
- const os = /* @__PURE__ */ X(ns, [["render", is]]), ss = {
28
+ const os = /* @__PURE__ */ K(ns, [["render", is]]), ss = {
29
29
  name: "ViGridText",
30
30
  props: {
31
31
  value: {}
@@ -34,7 +34,7 @@ const os = /* @__PURE__ */ X(ns, [["render", is]]), ss = {
34
34
  function cs(e, t, n, a, r, i) {
35
35
  return b(), _("div", ls, V(n.value), 1);
36
36
  }
37
- const us = /* @__PURE__ */ X(ss, [["render", cs]]);
37
+ const us = /* @__PURE__ */ K(ss, [["render", cs]]);
38
38
  function qt(e) {
39
39
  "@babel/helpers - typeof";
40
40
  return qt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
@@ -49,17 +49,17 @@ function Ce(e) {
49
49
  var t = Number(e);
50
50
  return isNaN(t) ? t : t < 0 ? Math.ceil(t) : Math.floor(t);
51
51
  }
52
- function H(e, t) {
52
+ function G(e, t) {
53
53
  if (t.length < e)
54
54
  throw new TypeError(e + " argument" + (e > 1 ? "s" : "") + " required, but only " + t.length + " present");
55
55
  }
56
56
  function me(e) {
57
- H(1, arguments);
57
+ G(1, arguments);
58
58
  var t = Object.prototype.toString.call(e);
59
59
  return e instanceof Date || qt(e) === "object" && t === "[object Date]" ? new Date(e.getTime()) : typeof e == "number" || t === "[object Number]" ? new Date(e) : ((typeof e == "string" || t === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
60
60
  }
61
61
  function fs(e, t) {
62
- H(2, arguments);
62
+ G(2, arguments);
63
63
  var n = me(e).getTime(), a = Ce(t);
64
64
  return new Date(n + a);
65
65
  }
@@ -73,34 +73,34 @@ function ms(e) {
73
73
  }
74
74
  var ui = 6e4, fi = 36e5;
75
75
  function gs(e) {
76
- return H(1, arguments), e instanceof Date || qt(e) === "object" && Object.prototype.toString.call(e) === "[object Date]";
76
+ return G(1, arguments), e instanceof Date || qt(e) === "object" && Object.prototype.toString.call(e) === "[object Date]";
77
77
  }
78
78
  function ps(e) {
79
- if (H(1, arguments), !gs(e) && typeof e != "number")
79
+ if (G(1, arguments), !gs(e) && typeof e != "number")
80
80
  return !1;
81
81
  var t = me(e);
82
82
  return !isNaN(Number(t));
83
83
  }
84
84
  function hs(e, t) {
85
- H(2, arguments);
85
+ G(2, arguments);
86
86
  var n = Ce(t);
87
87
  return fs(e, -n);
88
88
  }
89
89
  var vs = 864e5;
90
90
  function ys(e) {
91
- H(1, arguments);
91
+ G(1, arguments);
92
92
  var t = me(e), n = t.getTime();
93
93
  t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
94
94
  var a = t.getTime(), r = n - a;
95
95
  return Math.floor(r / vs) + 1;
96
96
  }
97
97
  function Gt(e) {
98
- H(1, arguments);
98
+ G(1, arguments);
99
99
  var t = 1, n = me(e), a = n.getUTCDay(), r = (a < t ? 7 : 0) + a - t;
100
100
  return n.setUTCDate(n.getUTCDate() - r), n.setUTCHours(0, 0, 0, 0), n;
101
101
  }
102
102
  function di(e) {
103
- H(1, arguments);
103
+ G(1, arguments);
104
104
  var t = me(e), n = t.getUTCFullYear(), a = /* @__PURE__ */ new Date(0);
105
105
  a.setUTCFullYear(n + 1, 0, 4), a.setUTCHours(0, 0, 0, 0);
106
106
  var r = Gt(a), i = /* @__PURE__ */ new Date(0);
@@ -109,7 +109,7 @@ function di(e) {
109
109
  return t.getTime() >= r.getTime() ? n + 1 : t.getTime() >= o.getTime() ? n : n - 1;
110
110
  }
111
111
  function bs(e) {
112
- H(1, arguments);
112
+ G(1, arguments);
113
113
  var t = di(e), n = /* @__PURE__ */ new Date(0);
114
114
  n.setUTCFullYear(t, 0, 4), n.setUTCHours(0, 0, 0, 0);
115
115
  var a = Gt(n);
@@ -117,13 +117,13 @@ function bs(e) {
117
117
  }
118
118
  var ws = 6048e5;
119
119
  function xs(e) {
120
- H(1, arguments);
120
+ G(1, arguments);
121
121
  var t = me(e), n = Gt(t).getTime() - bs(t).getTime();
122
122
  return Math.round(n / ws) + 1;
123
123
  }
124
124
  function Ht(e, t) {
125
125
  var n, a, r, i, o, s, l, c;
126
- H(1, arguments);
126
+ G(1, arguments);
127
127
  var u = rn(), 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);
128
128
  if (!(m >= 0 && m <= 6))
129
129
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
@@ -132,7 +132,7 @@ function Ht(e, t) {
132
132
  }
133
133
  function mi(e, t) {
134
134
  var n, a, r, i, o, s, l, c;
135
- H(1, arguments);
135
+ G(1, arguments);
136
136
  var u = me(e), m = u.getUTCFullYear(), g = rn(), 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);
137
137
  if (!(y >= 1 && y <= 7))
138
138
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
@@ -145,7 +145,7 @@ function mi(e, t) {
145
145
  }
146
146
  function ks(e, t) {
147
147
  var n, a, r, i, o, s, l, c;
148
- H(1, arguments);
148
+ G(1, arguments);
149
149
  var u = rn(), 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 = mi(e, t), y = /* @__PURE__ */ new Date(0);
150
150
  y.setUTCFullYear(g, 0, m), y.setUTCHours(0, 0, 0, 0);
151
151
  var v = Ht(y, t);
@@ -153,7 +153,7 @@ function ks(e, t) {
153
153
  }
154
154
  var Ss = 6048e5;
155
155
  function Ps(e, t) {
156
- H(1, arguments);
156
+ G(1, arguments);
157
157
  var n = me(e), a = Ht(n, t).getTime() - ks(n, t).getTime();
158
158
  return Math.round(a / Ss) + 1;
159
159
  }
@@ -1264,7 +1264,7 @@ const bl = yl;
1264
1264
  var wl = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, xl = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, kl = /^'([^]*?)'?$/, Sl = /''/g, Pl = /[a-zA-Z]/;
1265
1265
  function _l(e, t, n) {
1266
1266
  var a, r, i, o, s, l, c, u, m, g, y, v, x, w, f, d, k, O;
1267
- H(2, arguments);
1267
+ G(2, arguments);
1268
1268
  var E = String(t), D = rn(), 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);
1269
1269
  if (!(De >= 1 && De <= 7))
1270
1270
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
@@ -1283,25 +1283,25 @@ function _l(e, t, n) {
1283
1283
  weekStartsOn: rt,
1284
1284
  locale: R,
1285
1285
  _originalDate: We
1286
- }, Ko = E.match(xl).map(function(Z) {
1287
- var we = Z[0];
1286
+ }, Ko = E.match(xl).map(function(J) {
1287
+ var we = J[0];
1288
1288
  if (we === "p" || we === "P") {
1289
1289
  var Tt = Ns[we];
1290
- return Tt(Z, R.formatLong);
1290
+ return Tt(J, R.formatLong);
1291
1291
  }
1292
- return Z;
1293
- }).join("").match(wl).map(function(Z) {
1294
- if (Z === "''")
1292
+ return J;
1293
+ }).join("").match(wl).map(function(J) {
1294
+ if (J === "''")
1295
1295
  return "'";
1296
- var we = Z[0];
1296
+ var we = J[0];
1297
1297
  if (we === "'")
1298
- return Cl(Z);
1298
+ return Cl(J);
1299
1299
  var Tt = Os[we];
1300
1300
  if (Tt)
1301
- return !(n != null && n.useAdditionalWeekYearTokens) && Ds(Z) && Za(Z, t, String(e)), !(n != null && n.useAdditionalDayOfYearTokens) && Is(Z) && Za(Z, t, String(e)), Tt(xn, Z, R.localize, Nt);
1301
+ return !(n != null && n.useAdditionalWeekYearTokens) && Ds(J) && Za(J, t, String(e)), !(n != null && n.useAdditionalDayOfYearTokens) && Is(J) && Za(J, t, String(e)), Tt(xn, J, R.localize, Nt);
1302
1302
  if (we.match(Pl))
1303
1303
  throw new RangeError("Format string contains an unescaped latin alphabet character `" + we + "`");
1304
- return Z;
1304
+ return J;
1305
1305
  }).join("");
1306
1306
  return Ko;
1307
1307
  }
@@ -1311,7 +1311,7 @@ function Cl(e) {
1311
1311
  }
1312
1312
  function Ol(e, t) {
1313
1313
  var n;
1314
- H(1, arguments);
1314
+ G(1, arguments);
1315
1315
  var a = Ce((n = t == null ? void 0 : t.additionalDigits) !== null && n !== void 0 ? n : 2);
1316
1316
  if (a !== 2 && a !== 1 && a !== 0)
1317
1317
  throw new RangeError("additionalDigits must be 0, 1 or 2");
@@ -1454,7 +1454,7 @@ const Wl = {
1454
1454
  function $l(e, t, n, a, r, i) {
1455
1455
  return b(), _("div", Yl, V(i.dateFormatted), 1);
1456
1456
  }
1457
- const ql = /* @__PURE__ */ X(Wl, [["render", $l]]);
1457
+ const ql = /* @__PURE__ */ K(Wl, [["render", $l]]);
1458
1458
  /*!
1459
1459
  * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
1460
1460
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
@@ -1573,7 +1573,7 @@ var Xl = /fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/, Ql
1573
1573
  SWAP_OPACITY: "swap-opacity",
1574
1574
  PRIMARY: "primary",
1575
1575
  SECONDARY: "secondary"
1576
- }, xi = ["fa-classic", "fa-duotone", "fa-sharp", "fa-sharp-duotone"], q = "classic", on = "duotone", Zl = "sharp", ec = "sharp-duotone", ki = [q, on, Zl, ec], tc = {
1576
+ }, xi = ["fa-classic", "fa-duotone", "fa-sharp", "fa-sharp-duotone"], $ = "classic", on = "duotone", Zl = "sharp", ec = "sharp-duotone", ki = [$, on, Zl, ec], tc = {
1577
1577
  classic: {
1578
1578
  900: "fas",
1579
1579
  400: "far",
@@ -1816,22 +1816,22 @@ const ge = "___FONT_AWESOME___", Rn = 16, Pi = "fa", _i = "svg-inline--fa", je =
1816
1816
  function St(e) {
1817
1817
  return new Proxy(e, {
1818
1818
  get(t, n) {
1819
- return n in t ? t[n] : t[q];
1819
+ return n in t ? t[n] : t[$];
1820
1820
  }
1821
1821
  });
1822
1822
  }
1823
1823
  const Oi = p({}, wi);
1824
- Oi[q] = p(p(p(p({}, {
1824
+ Oi[$] = p(p(p(p({}, {
1825
1825
  "fa-duotone": "duotone"
1826
- }), wi[q]), rr.kit), rr["kit-duotone"]);
1826
+ }), wi[$]), rr.kit), rr["kit-duotone"]);
1827
1827
  const Sc = St(Oi), jn = p({}, rc);
1828
- jn[q] = p(p(p(p({}, {
1828
+ jn[$] = p(p(p(p({}, {
1829
1829
  duotone: "fad"
1830
- }), jn[q]), ir.kit), ir["kit-duotone"]);
1830
+ }), jn[$]), ir.kit), ir["kit-duotone"]);
1831
1831
  const sr = St(jn), Bn = p({}, Ln);
1832
- Bn[q] = p(p({}, Bn[q]), cc.kit);
1832
+ Bn[$] = p(p({}, Bn[$]), cc.kit);
1833
1833
  const Oa = St(Bn), Un = p({}, mc);
1834
- Un[q] = p(p({}, Un[q]), sc.kit);
1834
+ Un[$] = p(p({}, Un[$]), sc.kit);
1835
1835
  St(Un);
1836
1836
  const Pc = Xl, Ai = "fa-layers-text", _c = Ql, Cc = p({}, tc);
1837
1837
  St(Cc);
@@ -1851,7 +1851,7 @@ L && typeof L.querySelector == "function" && [["data-family-prefix", "familyPref
1851
1851
  });
1852
1852
  const Ei = {
1853
1853
  styleDefault: "solid",
1854
- familyDefault: q,
1854
+ familyDefault: $,
1855
1855
  cssPrefix: Pi,
1856
1856
  replacementClass: _i,
1857
1857
  autoReplaceSvg: !0,
@@ -2718,7 +2718,7 @@ const Vi = () => ({
2718
2718
  rest: []
2719
2719
  });
2720
2720
  function Kc(e) {
2721
- let t = q;
2721
+ let t = $;
2722
2722
  const n = Di.reduce((a, r) => (a[r] = "".concat(S.cssPrefix, "-").concat(r), a), {});
2723
2723
  return ki.forEach((a) => {
2724
2724
  (e.includes(n[a]) || e.some((r) => Yc[a].includes(r))) && (t = a);
@@ -2727,7 +2727,7 @@ function Kc(e) {
2727
2727
  function ln(e) {
2728
2728
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2729
2729
  const {
2730
- family: n = q
2730
+ family: n = $
2731
2731
  } = t, a = Sc[n][e];
2732
2732
  if (n === on && !e)
2733
2733
  return "fad";
@@ -2783,7 +2783,7 @@ function Qc(e, t, n) {
2783
2783
  iconName: r
2784
2784
  };
2785
2785
  }
2786
- const Jc = ki.filter((e) => e !== q || e !== on), Zc = Object.keys(Ln).filter((e) => e !== q).map((e) => Object.keys(Ln[e])).flat();
2786
+ const Jc = ki.filter((e) => e !== $ || e !== on), Zc = Object.keys(Ln).filter((e) => e !== $).map((e) => Object.keys(Ln[e])).flat();
2787
2787
  function eu(e) {
2788
2788
  const {
2789
2789
  values: t,
@@ -2809,7 +2809,7 @@ class tu {
2809
2809
  const r = n.reduce(this._pullDefinitions, {});
2810
2810
  Object.keys(r).forEach((i) => {
2811
2811
  this.definitions[i] = p(p({}, this.definitions[i] || {}), r[i]), Wn(i, r[i]);
2812
- const o = Oa[q][i];
2812
+ const o = Oa[$][i];
2813
2813
  o && Wn(o, r[i]), Bi();
2814
2814
  });
2815
2815
  }
@@ -2933,7 +2933,7 @@ const Wi = new tu(), ru = () => {
2933
2933
  };
2934
2934
  }
2935
2935
  }
2936
- }, ee = {
2936
+ }, Z = {
2937
2937
  noAuto: ru,
2938
2938
  config: S,
2939
2939
  dom: iu,
@@ -2946,7 +2946,7 @@ const Wi = new tu(), ru = () => {
2946
2946
  const {
2947
2947
  autoReplaceSvgRoot: t = L
2948
2948
  } = e;
2949
- (Object.keys(se.styles).length > 0 || S.autoFetchSvg) && ye && S.autoReplaceSvg && ee.dom.i2svg({
2949
+ (Object.keys(se.styles).length > 0 || S.autoFetchSvg) && ye && S.autoReplaceSvg && Z.dom.i2svg({
2950
2950
  node: t
2951
2951
  });
2952
2952
  };
@@ -4116,18 +4116,18 @@ var Yu = {
4116
4116
  }
4117
4117
  }, Gu = [zc, Nu, Tu, Mu, Iu, Bu, Uu, Vu, Yu, $u, qu];
4118
4118
  au(Gu, {
4119
- mixoutsTo: ee
4119
+ mixoutsTo: Z
4120
4120
  });
4121
- ee.noAuto;
4122
- const Ki = ee.config, Xi = ee.library;
4123
- ee.dom;
4124
- const Qt = ee.parse;
4125
- ee.findIconDefinition;
4126
- ee.toHtml;
4127
- const Hu = ee.icon;
4128
- ee.layer;
4129
- const Ku = ee.text;
4130
- ee.counter;
4121
+ Z.noAuto;
4122
+ const Ki = Z.config, Xi = Z.library;
4123
+ Z.dom;
4124
+ const Qt = Z.parse;
4125
+ Z.findIconDefinition;
4126
+ Z.toHtml;
4127
+ const Hu = Z.icon;
4128
+ Z.layer;
4129
+ const Ku = Z.text;
4130
+ Z.counter;
4131
4131
  function Or(e, t) {
4132
4132
  var n = Object.keys(e);
4133
4133
  if (Object.getOwnPropertySymbols) {
@@ -4142,7 +4142,7 @@ function re(e) {
4142
4142
  for (var t = 1; t < arguments.length; t++) {
4143
4143
  var n = arguments[t] != null ? arguments[t] : {};
4144
4144
  t % 2 ? Or(Object(n), !0).forEach(function(a) {
4145
- Q(e, a, n[a]);
4145
+ X(e, a, n[a]);
4146
4146
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Or(Object(n)).forEach(function(a) {
4147
4147
  Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(n, a));
4148
4148
  });
@@ -4173,7 +4173,7 @@ function Jt(e) {
4173
4173
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
4174
4174
  }, Jt(e);
4175
4175
  }
4176
- function Q(e, t, n) {
4176
+ function X(e, t, n) {
4177
4177
  return t = Qu(t), t in e ? Object.defineProperty(e, t, {
4178
4178
  value: n,
4179
4179
  enumerable: !0,
@@ -4364,7 +4364,7 @@ function uf() {
4364
4364
  }
4365
4365
  }
4366
4366
  function mt(e, t) {
4367
- return Array.isArray(t) && t.length > 0 || !Array.isArray(t) && t ? Q({}, e, t) : {};
4367
+ return Array.isArray(t) && t.length > 0 || !Array.isArray(t) && t ? X({}, e, t) : {};
4368
4368
  }
4369
4369
  function ff(e) {
4370
4370
  var t, n = (t = {
@@ -4377,7 +4377,7 @@ function ff(e) {
4377
4377
  "fa-flip": e.flip === !0,
4378
4378
  "fa-flip-horizontal": e.flip === "horizontal" || e.flip === "both",
4379
4379
  "fa-flip-vertical": e.flip === "vertical" || e.flip === "both"
4380
- }, Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(t, "fa-".concat(e.size), e.size !== null), "fa-rotate-".concat(e.rotation), e.rotation !== null), "fa-pull-".concat(e.pull), e.pull !== null), "fa-swap-opacity", e.swapOpacity), "fa-bounce", e.bounce), "fa-shake", e.shake), "fa-beat", e.beat), "fa-fade", e.fade), "fa-beat-fade", e.beatFade), "fa-flash", e.flash), Q(Q(t, "fa-spin-pulse", e.spinPulse), "fa-spin-reverse", e.spinReverse));
4380
+ }, X(X(X(X(X(X(X(X(X(X(t, "fa-".concat(e.size), e.size !== null), "fa-rotate-".concat(e.rotation), e.rotation !== null), "fa-pull-".concat(e.pull), e.pull !== null), "fa-swap-opacity", e.swapOpacity), "fa-bounce", e.bounce), "fa-shake", e.shake), "fa-beat", e.beat), "fa-fade", e.fade), "fa-beat-fade", e.beatFade), "fa-flash", e.flash), X(X(t, "fa-spin-pulse", e.spinPulse), "fa-spin-reverse", e.spinReverse));
4381
4381
  return Object.keys(n).map(function(a) {
4382
4382
  return n[a] ? a : null;
4383
4383
  }).filter(function(a) {
@@ -4665,7 +4665,7 @@ function pf(e, t, n, a, r, i) {
4665
4665
  ])) : z("", !0)
4666
4666
  ], 512);
4667
4667
  }
4668
- const hf = /* @__PURE__ */ X(df, [["render", pf]]);
4668
+ const hf = /* @__PURE__ */ K(df, [["render", pf]]);
4669
4669
  /*!
4670
4670
  * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
4671
4671
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
@@ -4784,7 +4784,7 @@ var wf = /fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/, xf
4784
4784
  SWAP_OPACITY: "swap-opacity",
4785
4785
  PRIMARY: "primary",
4786
4786
  SECONDARY: "secondary"
4787
- }, ro = ["fa-classic", "fa-duotone", "fa-sharp", "fa-sharp-duotone"], G = "classic", fn = "duotone", Sf = "sharp", Pf = "sharp-duotone", io = [G, fn, Sf, Pf], _f = {
4787
+ }, ro = ["fa-classic", "fa-duotone", "fa-sharp", "fa-sharp-duotone"], q = "classic", fn = "duotone", Sf = "sharp", Pf = "sharp-duotone", io = [q, fn, Sf, Pf], _f = {
4788
4788
  classic: {
4789
4789
  900: "fas",
4790
4790
  400: "far",
@@ -5027,22 +5027,22 @@ const he = "___FONT_AWESOME___", ta = 16, so = "fa", lo = "svg-inline--fa", Ue =
5027
5027
  function _t(e) {
5028
5028
  return new Proxy(e, {
5029
5029
  get(t, n) {
5030
- return n in t ? t[n] : t[G];
5030
+ return n in t ? t[n] : t[q];
5031
5031
  }
5032
5032
  });
5033
5033
  }
5034
5034
  const uo = h({}, ao);
5035
- uo[G] = h(h(h(h({}, {
5035
+ uo[q] = h(h(h(h({}, {
5036
5036
  "fa-duotone": "duotone"
5037
- }), ao[G]), Ir.kit), Ir["kit-duotone"]);
5037
+ }), ao[q]), Ir.kit), Ir["kit-duotone"]);
5038
5038
  const Gf = _t(uo), aa = h({}, Af);
5039
- aa[G] = h(h(h(h({}, {
5039
+ aa[q] = h(h(h(h({}, {
5040
5040
  duotone: "fad"
5041
- }), aa[G]), Dr.kit), Dr["kit-duotone"]);
5041
+ }), aa[q]), Dr.kit), Dr["kit-duotone"]);
5042
5042
  const Fr = _t(aa), ra = h({}, Zn);
5043
- ra[G] = h(h({}, ra[G]), If.kit);
5043
+ ra[q] = h(h({}, ra[q]), If.kit);
5044
5044
  const ja = _t(ra), ia = h({}, Rf);
5045
- ia[G] = h(h({}, ia[G]), Tf.kit);
5045
+ ia[q] = h(h({}, ia[q]), Tf.kit);
5046
5046
  _t(ia);
5047
5047
  const Hf = wf, fo = "fa-layers-text", Kf = xf, Xf = h({}, _f);
5048
5048
  _t(Xf);
@@ -5062,7 +5062,7 @@ F && typeof F.querySelector == "function" && [["data-family-prefix", "familyPref
5062
5062
  });
5063
5063
  const mo = {
5064
5064
  styleDefault: "solid",
5065
- familyDefault: G,
5065
+ familyDefault: q,
5066
5066
  cssPrefix: so,
5067
5067
  replacementClass: lo,
5068
5068
  autoReplaceSvg: !0,
@@ -5925,7 +5925,7 @@ const Oo = () => ({
5925
5925
  rest: []
5926
5926
  });
5927
5927
  function yd(e) {
5928
- let t = G;
5928
+ let t = q;
5929
5929
  const n = bo.reduce((a, r) => (a[r] = "".concat(P.cssPrefix, "-").concat(r), a), {});
5930
5930
  return io.forEach((a) => {
5931
5931
  (e.includes(n[a]) || e.some((r) => md[a].includes(r))) && (t = a);
@@ -5934,7 +5934,7 @@ function yd(e) {
5934
5934
  function mn(e) {
5935
5935
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
5936
5936
  const {
5937
- family: n = G
5937
+ family: n = q
5938
5938
  } = t, a = Gf[n][e];
5939
5939
  if (n === fn && !e)
5940
5940
  return "fad";
@@ -5990,7 +5990,7 @@ function wd(e, t, n) {
5990
5990
  iconName: r
5991
5991
  };
5992
5992
  }
5993
- const xd = io.filter((e) => e !== G || e !== fn), kd = Object.keys(Zn).filter((e) => e !== G).map((e) => Object.keys(Zn[e])).flat();
5993
+ const xd = io.filter((e) => e !== q || e !== fn), kd = Object.keys(Zn).filter((e) => e !== q).map((e) => Object.keys(Zn[e])).flat();
5994
5994
  function Sd(e) {
5995
5995
  const {
5996
5996
  values: t,
@@ -6016,7 +6016,7 @@ class Pd {
6016
6016
  const r = n.reduce(this._pullDefinitions, {});
6017
6017
  Object.keys(r).forEach((i) => {
6018
6018
  this.definitions[i] = h(h({}, this.definitions[i] || {}), r[i]), oa(i, r[i]);
6019
- const o = ja[G][i];
6019
+ const o = ja[q][i];
6020
6020
  o && oa(o, r[i]), _o();
6021
6021
  });
6022
6022
  }
@@ -6140,7 +6140,7 @@ const Ao = new Pd(), Od = () => {
6140
6140
  };
6141
6141
  }
6142
6142
  }
6143
- }, te = {
6143
+ }, ee = {
6144
6144
  noAuto: Od,
6145
6145
  config: P,
6146
6146
  dom: Ad,
@@ -6153,7 +6153,7 @@ const Ao = new Pd(), Od = () => {
6153
6153
  const {
6154
6154
  autoReplaceSvgRoot: t = F
6155
6155
  } = e;
6156
- (Object.keys(ce.styles).length > 0 || P.autoFetchSvg) && be && P.autoReplaceSvg && te.dom.i2svg({
6156
+ (Object.keys(ce.styles).length > 0 || P.autoFetchSvg) && be && P.autoReplaceSvg && ee.dom.i2svg({
6157
6157
  node: t
6158
6158
  });
6159
6159
  };
@@ -7323,18 +7323,18 @@ var mm = {
7323
7323
  }
7324
7324
  }, hm = [ld, Zd, em, tm, nm, cm, um, fm, mm, gm, pm];
7325
7325
  Cd(hm, {
7326
- mixoutsTo: te
7326
+ mixoutsTo: ee
7327
7327
  });
7328
- te.noAuto;
7329
- const Do = te.config, vm = te.library;
7330
- te.dom;
7331
- const tn = te.parse;
7332
- te.findIconDefinition;
7333
- te.toHtml;
7334
- const ym = te.icon;
7335
- te.layer;
7336
- const bm = te.text;
7337
- te.counter;
7328
+ ee.noAuto;
7329
+ const Do = ee.config, vm = ee.library;
7330
+ ee.dom;
7331
+ const tn = ee.parse;
7332
+ ee.findIconDefinition;
7333
+ ee.toHtml;
7334
+ const ym = ee.icon;
7335
+ ee.layer;
7336
+ const bm = ee.text;
7337
+ ee.counter;
7338
7338
  function ni(e, t) {
7339
7339
  var n = Object.keys(e);
7340
7340
  if (Object.getOwnPropertySymbols) {
@@ -7349,7 +7349,7 @@ function ie(e) {
7349
7349
  for (var t = 1; t < arguments.length; t++) {
7350
7350
  var n = arguments[t] != null ? arguments[t] : {};
7351
7351
  t % 2 ? ni(Object(n), !0).forEach(function(a) {
7352
- J(e, a, n[a]);
7352
+ Q(e, a, n[a]);
7353
7353
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ni(Object(n)).forEach(function(a) {
7354
7354
  Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(n, a));
7355
7355
  });
@@ -7380,7 +7380,7 @@ function nn(e) {
7380
7380
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
7381
7381
  }, nn(e);
7382
7382
  }
7383
- function J(e, t, n) {
7383
+ function Q(e, t, n) {
7384
7384
  return t = xm(t), t in e ? Object.defineProperty(e, t, {
7385
7385
  value: n,
7386
7386
  enumerable: !0,
@@ -7571,7 +7571,7 @@ function Im() {
7571
7571
  }
7572
7572
  }
7573
7573
  function ht(e, t) {
7574
- return Array.isArray(t) && t.length > 0 || !Array.isArray(t) && t ? J({}, e, t) : {};
7574
+ return Array.isArray(t) && t.length > 0 || !Array.isArray(t) && t ? Q({}, e, t) : {};
7575
7575
  }
7576
7576
  function Dm(e) {
7577
7577
  var t, n = (t = {
@@ -7584,7 +7584,7 @@ function Dm(e) {
7584
7584
  "fa-flip": e.flip === !0,
7585
7585
  "fa-flip-horizontal": e.flip === "horizontal" || e.flip === "both",
7586
7586
  "fa-flip-vertical": e.flip === "vertical" || e.flip === "both"
7587
- }, J(J(J(J(J(J(J(J(J(J(t, "fa-".concat(e.size), e.size !== null), "fa-rotate-".concat(e.rotation), e.rotation !== null), "fa-pull-".concat(e.pull), e.pull !== null), "fa-swap-opacity", e.swapOpacity), "fa-bounce", e.bounce), "fa-shake", e.shake), "fa-beat", e.beat), "fa-fade", e.fade), "fa-beat-fade", e.beatFade), "fa-flash", e.flash), J(J(t, "fa-spin-pulse", e.spinPulse), "fa-spin-reverse", e.spinReverse));
7587
+ }, Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(t, "fa-".concat(e.size), e.size !== null), "fa-rotate-".concat(e.rotation), e.rotation !== null), "fa-pull-".concat(e.pull), e.pull !== null), "fa-swap-opacity", e.swapOpacity), "fa-bounce", e.bounce), "fa-shake", e.shake), "fa-beat", e.beat), "fa-fade", e.fade), "fa-beat-fade", e.beatFade), "fa-flash", e.flash), Q(Q(t, "fa-spin-pulse", e.spinPulse), "fa-spin-reverse", e.spinReverse));
7588
7588
  return Object.keys(n).map(function(a) {
7589
7589
  return n[a] ? a : null;
7590
7590
  }).filter(function(a) {
@@ -7901,7 +7901,7 @@ function Wm(e, t, n, a, r, i) {
7901
7901
  key: 0,
7902
7902
  href: n.link,
7903
7903
  target: "_blank",
7904
- class: Y(["vi-button", [{ "icon-right": n.iconRight }, { "is-disabled": n.isDisabled }, { "is-loading": n.isLoading }, i.buttonSize, i.buttonMode]])
7904
+ class: te(["vi-button", [{ "icon-right": n.iconRight }, { "is-disabled": n.isDisabled }, { "is-loading": n.isLoading }, i.buttonSize, i.buttonMode]])
7905
7905
  }, [
7906
7906
  i.icon ? (b(), B(o, {
7907
7907
  key: 0,
@@ -7918,7 +7918,7 @@ function Wm(e, t, n, a, r, i) {
7918
7918
  n.isLoading ? (b(), _("div", jm)) : z("", !0)
7919
7919
  ], 10, Fm)) : (b(), _("button", {
7920
7920
  key: 1,
7921
- class: Y(["vi-button", [{ "icon-right": n.iconRight }, { "is-disabled": n.isDisabled }, { "is-loading": n.isLoading }, i.buttonSize, i.buttonMode]]),
7921
+ class: te(["vi-button", [{ "icon-right": n.iconRight }, { "is-disabled": n.isDisabled }, { "is-loading": n.isLoading }, i.buttonSize, i.buttonMode]]),
7922
7922
  type: n.type,
7923
7923
  onClick: t[0] || (t[0] = (s) => e.$emit("click"))
7924
7924
  }, [
@@ -8062,7 +8062,7 @@ function og(e, t, n, a, r, i) {
8062
8062
  const o = W("vi-button");
8063
8063
  return n.modelValue ? (b(), _("div", ng, [
8064
8064
  A("div", {
8065
- class: Y(["dialog-container", [i.dialogEnterAnimationPosition, i.dialogSize]])
8065
+ class: te(["dialog-container", [i.dialogEnterAnimationPosition, i.dialogSize]])
8066
8066
  }, [
8067
8067
  A("div", ag, V(n.label), 1),
8068
8068
  A("div", rg, [
@@ -8130,7 +8130,7 @@ function mg(e, t, n, a, r, i) {
8130
8130
  const o = W("font-awesome-icon");
8131
8131
  return n.modelValue ? (b(), _("div", cg, [
8132
8132
  A("div", {
8133
- class: Y(["dialog-container", [i.dialogEnterAnimationPosition, i.dialogSize]])
8133
+ class: te(["dialog-container", [i.dialogEnterAnimationPosition, i.dialogSize]])
8134
8134
  }, [
8135
8135
  A("div", ug, [
8136
8136
  A("div", {
@@ -8162,7 +8162,7 @@ const gg = /* @__PURE__ */ Ot(lg, [["render", mg]]), At = {
8162
8162
  DARK: "dark",
8163
8163
  COLORED: "colored",
8164
8164
  AUTO: "auto"
8165
- }, K = {
8165
+ }, H = {
8166
8166
  INFO: "info",
8167
8167
  SUCCESS: "success",
8168
8168
  WARNING: "warning",
@@ -8200,7 +8200,7 @@ const gg = /* @__PURE__ */ Ot(lg, [["render", mg]]), At = {
8200
8200
  };
8201
8201
  ({
8202
8202
  ...zo,
8203
- type: K.DEFAULT
8203
+ type: H.DEFAULT
8204
8204
  });
8205
8205
  var T = /* @__PURE__ */ ((e) => (e[e.COLLAPSE_DURATION = 300] = "COLLAPSE_DURATION", e[e.DEBOUNCE_DURATION = 50] = "DEBOUNCE_DURATION", e.CSS_NAMESPACE = "Toastify", e))(T || {}), ha = /* @__PURE__ */ ((e) => (e.ENTRANCE_ANIMATION_END = "d", e))(ha || {});
8206
8206
  const vg = {
@@ -8597,7 +8597,7 @@ const Yo = {
8597
8597
  type: {
8598
8598
  type: String,
8599
8599
  required: !1,
8600
- default: K.DEFAULT
8600
+ default: H.DEFAULT
8601
8601
  },
8602
8602
  icon: {
8603
8603
  type: [Boolean, String, Number, Object, Function],
@@ -8657,7 +8657,7 @@ const Yo = {
8657
8657
  type: {
8658
8658
  type: String,
8659
8659
  required: !1,
8660
- default: K.DEFAULT
8660
+ default: H.DEFAULT
8661
8661
  },
8662
8662
  theme: {
8663
8663
  type: String,
@@ -8706,7 +8706,7 @@ const Yo = {
8706
8706
  setup(e, {
8707
8707
  attrs: t
8708
8708
  }) {
8709
- const n = $(), a = C(() => e.hide ? "true" : "false"), r = C(() => ({
8709
+ const n = Y(), a = C(() => e.hide ? "true" : "false"), r = C(() => ({
8710
8710
  ...t.style || {},
8711
8711
  animationDuration: "".concat(e.autoClose === !0 ? 5e3 : e.autoClose, "ms"),
8712
8712
  animationPlayState: e.isRunning ? "running" : "paused",
@@ -8838,7 +8838,7 @@ function Kg(e, t, n = T.COLLAPSE_DURATION) {
8838
8838
  });
8839
8839
  }
8840
8840
  function Xg(e) {
8841
- const t = $(!1), n = $(!1), a = $(!1), r = $(Yt.Enter), i = et({
8841
+ const t = Y(!1), n = Y(!1), a = Y(!1), r = Y(Yt.Enter), i = et({
8842
8842
  ...e,
8843
8843
  appendPosition: e.appendPosition || !1,
8844
8844
  collapse: typeof e.collapse > "u" ? !0 : e.collapse,
@@ -8913,7 +8913,7 @@ const Qg = /* @__PURE__ */ de({
8913
8913
  props: Yo,
8914
8914
  // @ts-ignore
8915
8915
  setup(e) {
8916
- const t = $(), n = C(() => !!e.isLoading), a = C(() => e.progress !== void 0 && e.progress !== null), r = C(() => Gg(e)), i = C(() => ["".concat(T.CSS_NAMESPACE, "__toast"), "".concat(T.CSS_NAMESPACE, "__toast-theme--").concat(e.theme), "".concat(T.CSS_NAMESPACE, "__toast--").concat(e.type), e.rtl ? "".concat(T.CSS_NAMESPACE, "__toast--rtl") : void 0, e.toastClassName || ""].filter(Boolean).join(" ")), {
8916
+ const t = Y(), n = C(() => !!e.isLoading), a = C(() => e.progress !== void 0 && e.progress !== null), r = C(() => Gg(e)), i = C(() => ["".concat(T.CSS_NAMESPACE, "__toast"), "".concat(T.CSS_NAMESPACE, "__toast-theme--").concat(e.theme), "".concat(T.CSS_NAMESPACE, "__toast--").concat(e.type), e.rtl ? "".concat(T.CSS_NAMESPACE, "__toast--rtl") : void 0, e.toastClassName || ""].filter(Boolean).join(" ")), {
8917
8917
  isRunning: o,
8918
8918
  isIn: s,
8919
8919
  hideToast: l,
@@ -9052,32 +9052,32 @@ function Ie(e, t, n = {}) {
9052
9052
  Dn = !1;
9053
9053
  }, 390)), n.toastId;
9054
9054
  }
9055
- const I = (e, t) => Ie(e, K.DEFAULT, t);
9056
- I.info = (e, t) => Ie(e, K.DEFAULT, {
9055
+ const I = (e, t) => Ie(e, H.DEFAULT, t);
9056
+ I.info = (e, t) => Ie(e, H.DEFAULT, {
9057
9057
  ...t,
9058
- type: K.INFO
9058
+ type: H.INFO
9059
9059
  });
9060
- I.error = (e, t) => Ie(e, K.DEFAULT, {
9060
+ I.error = (e, t) => Ie(e, H.DEFAULT, {
9061
9061
  ...t,
9062
- type: K.ERROR
9062
+ type: H.ERROR
9063
9063
  });
9064
- I.warning = (e, t) => Ie(e, K.DEFAULT, {
9064
+ I.warning = (e, t) => Ie(e, H.DEFAULT, {
9065
9065
  ...t,
9066
- type: K.WARNING
9066
+ type: H.WARNING
9067
9067
  });
9068
9068
  I.warn = I.warning;
9069
- I.success = (e, t) => Ie(e, K.DEFAULT, {
9069
+ I.success = (e, t) => Ie(e, H.DEFAULT, {
9070
9070
  ...t,
9071
- type: K.SUCCESS
9071
+ type: H.SUCCESS
9072
9072
  });
9073
- I.loading = (e, t) => Ie(e, K.DEFAULT, yn(t, {
9073
+ I.loading = (e, t) => Ie(e, H.DEFAULT, yn(t, {
9074
9074
  isLoading: !0,
9075
9075
  autoClose: !1,
9076
9076
  closeOnClick: !1,
9077
9077
  closeButton: !1,
9078
9078
  draggable: !1
9079
9079
  }));
9080
- I.dark = (e, t) => Ie(e, K.DEFAULT, yn(t, {
9080
+ I.dark = (e, t) => Ie(e, H.DEFAULT, yn(t, {
9081
9081
  theme: Ze.DARK
9082
9082
  }));
9083
9083
  I.remove = (e) => {
@@ -9166,7 +9166,7 @@ function t1(e, {
9166
9166
  }
9167
9167
  I.POSITION = At;
9168
9168
  I.THEME = Ze;
9169
- I.TYPE = K;
9169
+ I.TYPE = H;
9170
9170
  I.TRANSITIONS = pg;
9171
9171
  const Go = {
9172
9172
  install(e, t = {}) {
@@ -9241,7 +9241,7 @@ function m1(e, t, n, a, r, i) {
9241
9241
  }, null, 8, ["label", "mode", "action", "onClick"]))), 128))
9242
9242
  ]);
9243
9243
  }
9244
- const g1 = /* @__PURE__ */ X(f1, [["render", m1]]);
9244
+ const g1 = /* @__PURE__ */ K(f1, [["render", m1]]);
9245
9245
  function p1(e, t) {
9246
9246
  return {
9247
9247
  visibleActions: C(() => e.actions.filter((i) => i.isVisible === void 0 ? !0 : i.isVisible(e.row))),
@@ -9273,7 +9273,7 @@ const h1 = {
9273
9273
  },
9274
9274
  setup(e, { emit: t }) {
9275
9275
  const { visibleActions: n, onActionClicked: a, toggleRowMenu: r } = p1(e, t);
9276
- let i = $(null);
9276
+ let i = Y(null);
9277
9277
  return ka(() => {
9278
9278
  i.clickOutsideHandler = (o) => {
9279
9279
  e.rowMenuOpened && i.value && !(i.value === o.target || i.value.contains(o.target)) && t("update:rowMenuOpened", null);
@@ -9311,7 +9311,7 @@ function y1(e, t, n, a, r, i) {
9311
9311
  }, null, 8, ["actions", "row-key", "row", "onActionClicked"]))
9312
9312
  ], 512);
9313
9313
  }
9314
- const b1 = /* @__PURE__ */ X(h1, [["render", y1]]);
9314
+ const b1 = /* @__PURE__ */ K(h1, [["render", y1]]);
9315
9315
  const w1 = {
9316
9316
  name: "ViGridLink",
9317
9317
  props: {
@@ -9335,7 +9335,7 @@ function P1(e, t, n, a, r, i) {
9335
9335
  }, V(n.value), 9, k1)) : (b(), _("div", S1, V(n.value), 1))
9336
9336
  ]);
9337
9337
  }
9338
- const _1 = /* @__PURE__ */ X(w1, [["render", P1]]);
9338
+ const _1 = /* @__PURE__ */ K(w1, [["render", P1]]);
9339
9339
  const C1 = {
9340
9340
  name: "ViGridNumber",
9341
9341
  props: {
@@ -9353,7 +9353,7 @@ const C1 = {
9353
9353
  function A1(e, t, n, a, r, i) {
9354
9354
  return b(), _("div", O1, V(i.formattedNumber), 1);
9355
9355
  }
9356
- const E1 = /* @__PURE__ */ X(C1, [["render", A1]]);
9356
+ const E1 = /* @__PURE__ */ K(C1, [["render", A1]]);
9357
9357
  const N1 = (e) => e.toLowerCase().replace(
9358
9358
  /([-_][a-z])/g,
9359
9359
  (t) => t.toUpperCase().replace("-", "").replace("_", "")
@@ -9410,7 +9410,7 @@ function D1(e, t, n, a, r, i) {
9410
9410
  }))
9411
9411
  ]);
9412
9412
  }
9413
- const L1 = /* @__PURE__ */ X(M1, [["render", D1]]);
9413
+ const L1 = /* @__PURE__ */ K(M1, [["render", D1]]);
9414
9414
  const F1 = {
9415
9415
  name: "ViGridCheckbox",
9416
9416
  props: {
@@ -9436,7 +9436,7 @@ function j1(e, t, n, a, r, i) {
9436
9436
  }, null, 40, z1)
9437
9437
  ]);
9438
9438
  }
9439
- const B1 = /* @__PURE__ */ X(F1, [["render", j1]]);
9439
+ const B1 = /* @__PURE__ */ K(F1, [["render", j1]]);
9440
9440
  function U1(e) {
9441
9441
  const t = C(() => e.columns.filter((a) => a.isVisible === void 0 || a.isVisible)), n = C(() => e.selectable ? 1 + t.value.length : t.value.length);
9442
9442
  return {
@@ -9467,7 +9467,7 @@ const V1 = {
9467
9467
  }],
9468
9468
  rowsPerPage: 10,
9469
9469
  defaultSlots: {}
9470
- }, Ka = $({});
9470
+ }, Ka = Y({});
9471
9471
  function W1(e) {
9472
9472
  const t = ["align", "disablePagination", "defaultSlots", "noDataLabel", "noCellDataLabel", "stripped", "bordered", "compactPagination", "rowsPerPageOptions", "rowsPerPage"];
9473
9473
  return {
@@ -9504,7 +9504,7 @@ function Y1(e, t, n) {
9504
9504
  };
9505
9505
  }
9506
9506
  function $1(e) {
9507
- let t = $(!0), n = $(null), a = $(null), r = $(null);
9507
+ let t = Y(!0), n = Y(null), a = Y(null), r = Y(null);
9508
9508
  const i = function(v) {
9509
9509
  return r.value !== v ? "ascending" : n.value === "ascending" ? "descending" : null;
9510
9510
  }, o = function(v, x = "text", w = "auto") {
@@ -9596,15 +9596,15 @@ function K1(e, t, n, a, r, i) {
9596
9596
  colspan: n.colspan
9597
9597
  }, [
9598
9598
  A("div", {
9599
- class: Y(["vi-header-cell-content", n.align])
9599
+ class: te(["vi-header-cell-content", n.align])
9600
9600
  }, [
9601
9601
  j(e.$slots, "default")
9602
9602
  ], 2)
9603
9603
  ], 8, H1);
9604
9604
  }
9605
- const Ho = /* @__PURE__ */ X(G1, [["render", K1]]);
9605
+ const Ho = /* @__PURE__ */ K(G1, [["render", K1]]);
9606
9606
  function X1(e, t, n) {
9607
- let a = $([]);
9607
+ let a = Y([]);
9608
9608
  const r = (l, c) => {
9609
9609
  c ? a.value.push(l[e.rowKey]) : a.value = a.value.filter((u) => u !== l[e.rowKey]), t("selectedRowsUpdate", a.value);
9610
9610
  }, i = (l) => {
@@ -9652,7 +9652,7 @@ const Q1 = {
9652
9652
  function Z1(e, t, n, a, r, i) {
9653
9653
  const o = W("font-awesome-icon"), s = W("vi-grid-head-cell");
9654
9654
  return b(), B(s, {
9655
- class: Y([n.sortableState, "vi-grid-header-column-cell"]),
9655
+ class: te([n.sortableState, "vi-grid-header-column-cell"]),
9656
9656
  align: n.column.align ?? n.align
9657
9657
  }, {
9658
9658
  default: $e(() => [
@@ -9674,9 +9674,9 @@ function Z1(e, t, n, a, r, i) {
9674
9674
  _: 3
9675
9675
  }, 8, ["class", "align"]);
9676
9676
  }
9677
- const ep = /* @__PURE__ */ X(Q1, [["render", Z1], ["__scopeId", "data-v-025d85ee"]]);
9677
+ const ep = /* @__PURE__ */ K(Q1, [["render", Z1], ["__scopeId", "data-v-025d85ee"]]);
9678
9678
  function tp(e) {
9679
- let t = $(null), n = $(!1);
9679
+ let t = Y(null), n = Y(!1);
9680
9680
  const a = ({ pagination: o, filter: s, search: l } = {}) => {
9681
9681
  const c = o ?? e.pagination;
9682
9682
  return n.value = !0, e.fetchServerData({
@@ -9784,7 +9784,7 @@ const np = {
9784
9784
  }
9785
9785
  },
9786
9786
  setup(e, { emit: t }) {
9787
- let n = $(null);
9787
+ let n = Y(null);
9788
9788
  const { isFetchingData: a, fetchData: r, search: i, loadFirstPage: o, reloadData: s } = tp(e), { visibleColumns: l, totalColumns: c } = U1(e), {
9789
9789
  setSortFieldsFromPagination: u,
9790
9790
  getSortableState: m,
@@ -9796,8 +9796,10 @@ const np = {
9796
9796
  } = $1(e);
9797
9797
  u(e.pagination);
9798
9798
  const { localPagination: f, onPaginationChange: d } = q1(e, t, (Nt) => r({
9799
- ...Nt,
9800
- ...x()
9799
+ pagination: {
9800
+ ...Nt,
9801
+ ...x()
9802
+ }
9801
9803
  }));
9802
9804
  $t([y, v], (...Nt) => {
9803
9805
  e.serverMode ? r({
@@ -9901,10 +9903,10 @@ function bp(e, t, n, a, r, i) {
9901
9903
  j(e.$slots, "top")
9902
9904
  ])) : z("", !0),
9903
9905
  A("div", {
9904
- class: Y(["vi-table-container", { loading: a.isDataLoading }])
9906
+ class: te(["vi-table-container", { loading: a.isDataLoading }])
9905
9907
  }, [
9906
9908
  A("table", {
9907
- class: Y(["vi-table", { stripped: a.settings.stripped, bordered: a.settings.bordered }])
9909
+ class: te(["vi-table", { stripped: a.settings.stripped, bordered: a.settings.bordered }])
9908
9910
  }, [
9909
9911
  A("thead", ip, [
9910
9912
  n.title ? (b(), _("tr", op, [
@@ -9980,12 +9982,12 @@ function bp(e, t, n, a, r, i) {
9980
9982
  ])) : (b(), _("tbody", gp, [
9981
9983
  (b(!0), _(_e, null, ze(a.currentVisibleRows, (m) => (b(), _("tr", {
9982
9984
  key: m[n.rowKey],
9983
- class: Y([{ clickable: n.clickableRow, selected: a.isRowSelected(m) }, "vi-body-row vi-table-row"]),
9985
+ class: te([{ clickable: n.clickableRow, selected: a.isRowSelected(m) }, "vi-body-row vi-table-row"]),
9984
9986
  onClick: (g) => a.onRowClicked(m)
9985
9987
  }, [
9986
9988
  n.selectable ? (b(), _("td", hp, [
9987
9989
  A("div", {
9988
- class: Y(["vi-grid-field", a.settings.align])
9990
+ class: te(["vi-grid-field", a.settings.align])
9989
9991
  }, [
9990
9992
  N(s, {
9991
9993
  row: m,
@@ -10002,7 +10004,7 @@ function bp(e, t, n, a, r, i) {
10002
10004
  N(c, {
10003
10005
  "row-menu-opened": a.rowMenuOpened,
10004
10006
  "onUpdate:rowMenuOpened": t[1] || (t[1] = (y) => a.rowMenuOpened = y),
10005
- class: Y(g.align ?? a.settings.align),
10007
+ class: te(g.align ?? a.settings.align),
10006
10008
  field: g,
10007
10009
  "field-value": g.transform ? g.transform(m) : m[g.name],
10008
10010
  "row-value": m,
@@ -10048,7 +10050,7 @@ function bp(e, t, n, a, r, i) {
10048
10050
  j(e.$slots, "bottom")
10049
10051
  ]);
10050
10052
  }
10051
- const ii = /* @__PURE__ */ X(np, [["render", bp]]), oi = {
10053
+ const ii = /* @__PURE__ */ K(np, [["render", bp]]), oi = {
10052
10054
  format: {
10053
10055
  date: "yyyy-MM-dd",
10054
10056
  dateTime: "yyyy-MM-dd HH:mm:ss",
@@ -10195,24 +10197,24 @@ function Tp(e, t, n, a, r, i) {
10195
10197
  A("div", Op, [
10196
10198
  A("div", {
10197
10199
  onClick: t[1] || (t[1] = (s) => i.pageChange(1)),
10198
- class: Y(["vi-page-nav vi-page-first", { disabled: i.firsVisiblePage === 1 && !n.compact }])
10200
+ class: "vi-page-nav vi-page-first"
10199
10201
  }, [
10200
10202
  N(o, {
10201
10203
  icon: ["fas", "angles-left"],
10202
10204
  size: "lg"
10203
10205
  })
10204
- ], 2),
10206
+ ]),
10205
10207
  A("div", {
10206
- class: Y([{ disabled: n.currentPage === 1 }, "vi-page-nav vi-page-prev"]),
10207
- onClick: t[2] || (t[2] = (s) => i.pageChange(n.currentPage - 1))
10208
+ onClick: t[2] || (t[2] = (s) => i.pageChange(n.currentPage - 1)),
10209
+ class: "vi-page-nav vi-page-prev"
10208
10210
  }, [
10209
10211
  N(o, { icon: ["fas", "angle-left"] })
10210
- ], 2)
10212
+ ])
10211
10213
  ])
10212
10214
  ]),
10213
10215
  i.compactPagination ? z("", !0) : (b(), _("div", Ap, [
10214
10216
  (b(!0), _(_e, null, ze(i.visiblePages, (s) => (b(), _("div", {
10215
- class: Y(["vi-page-number", { active: s === n.currentPage }]),
10217
+ class: te(["vi-page-number", { active: s === n.currentPage }]),
10216
10218
  key: s,
10217
10219
  onClick: (l) => i.pageChange(s)
10218
10220
  }, V(s), 11, Ep))), 128))
@@ -10220,26 +10222,26 @@ function Tp(e, t, n, a, r, i) {
10220
10222
  j(e.$slots, "navigation-next", {}, () => [
10221
10223
  A("div", Np, [
10222
10224
  A("div", {
10223
- class: Y([{ disabled: n.currentPage === i.totalPages }, "vi-page-nav vi-page-next"]),
10224
- onClick: t[3] || (t[3] = (s) => i.pageChange(n.currentPage + 1))
10225
+ onClick: t[3] || (t[3] = (s) => i.pageChange(n.currentPage + 1)),
10226
+ class: "vi-page-nav vi-page-next"
10225
10227
  }, [
10226
10228
  N(o, { icon: ["fas", "angle-right"] })
10227
- ], 2),
10229
+ ]),
10228
10230
  A("div", {
10229
- class: Y([{ disabled: i.lastVisiblePage === i.totalPages && !n.compact }, "vi-page-nav vi-page-last"]),
10230
- onClick: t[4] || (t[4] = (s) => i.pageChange(i.totalPages))
10231
+ onClick: t[4] || (t[4] = (s) => i.pageChange(i.totalPages)),
10232
+ class: "vi-page-nav vi-page-last"
10231
10233
  }, [
10232
10234
  N(o, {
10233
10235
  icon: ["fas", "angles-right"],
10234
10236
  size: "lg"
10235
10237
  })
10236
- ], 2)
10238
+ ])
10237
10239
  ])
10238
10240
  ])
10239
10241
  ])
10240
10242
  ]);
10241
10243
  }
10242
- const Mp = /* @__PURE__ */ X(wp, [["render", Tp]]);
10244
+ const Mp = /* @__PURE__ */ K(wp, [["render", Tp]]);
10243
10245
  /*!
10244
10246
  * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
10245
10247
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
@@ -1122,7 +1122,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1122
1122
  * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
1123
1123
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
1124
1124
  * Copyright 2024 Fonticons, Inc.
1125
- */const Sg={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"]},Cg=Sg,Pg={prefix:"fas",iconName:"arrow-right",icon:[448,512,[8594],"f061","M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"]},_g={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-7.2-14.3C307.4 6.8 296.3 0 284.2 0L163.8 0c-12.1 0-23.2 6.8-28.6 17.7zM416 128L32 128 53.2 467c1.6 25.3 22.6 45 47.9 45l245.8 0c25.3 0 46.3-19.7 47.9-45L416 128z"]},Og={prefix:"fas",iconName:"arrow-left",icon:[448,512,[8592],"f060","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]},Ag={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]},Eg={prefix:"fas",iconName:"x",icon:[384,512,[120],"58","M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z"]},Ng={install(e,{style:t,toastify:n,registerComponentGlobally:a=!1}={}){Fd.add(Ag,_g,Cg,Pg,Og,Eg),a&&(e.component("ViPage",wm),e.component("ViMainHeader",gm),e.component("ViDialog",Im),e.component("ViConfirmationDialog",Om),e.component("ViButton",Ut)),e.use(vi,n??{}),e.config.globalProperties.$toast=E,e.mixin({mounted(){if(t)for(const[r,o]of Object.entries(t))document.documentElement.style.setProperty(`--vi-common-${r}`,o)}})}},p1="",Tg={name:"ViGridSimpleActions",components:{ViButton:Ut},emits:["action-clicked"],props:{actions:{type:Array}}},Mg={class:"vi-grid-builder-actions"};function Dg(e,t,n,a,r,o){const s=i.resolveComponent("vi-button");return i.openBlock(),i.createElementBlock("div",Mg,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.actions,(l,c)=>(i.openBlock(),i.createBlock(s,{key:c,label:l.name,mode:l.mode,action:l.action,size:"small",onClick:f=>e.$emit("action-clicked",l.action)},null,8,["label","mode","action","onClick"]))),128))])}const Ig=R(Tg,[["render",Dg]]);function Lg(e,t){return{visibleActions:i.computed(()=>e.actions.filter(o=>o.isVisible===void 0?!0:o.isVisible(e.row))),onActionClicked:o=>{t("action-clicked",{action:o,row:e.row})},toggleRowMenu:o=>{e.rowMenuOpened===o[e.rowKey]?t("update:rowMenuOpened",null):t("update:rowMenuOpened",o[e.rowKey])}}}const h1="",Bg={name:"ViGridActions",components:{ViGridSimpleActions:Ig,ViGridKebabMenu:Bf},props:{kebab:{type:Boolean,default:!1},row:{},rowKey:String,actions:{type:Array,default:function(){return[]}},rowMenuOpened:{}},setup(e,{emit:t}){const{visibleActions:n,onActionClicked:a,toggleRowMenu:r}=Lg(e,t);let o=i.ref(null);return i.onMounted(()=>{o.clickOutsideHandler=s=>{e.rowMenuOpened&&o.value&&!(o.value===s.target||o.value.contains(s.target))&&t("update:rowMenuOpened",null)},document.addEventListener("click",o.clickOutsideHandler)}),i.onUnmounted(()=>{document.removeEventListener("click",o.clickOutsideHandler)}),{visibleActions:n,onActionClicked:a,toggleRowMenu:r,gridActions:o}}},Fg={class:"vi-grid-actions",ref:"gridActions"};function Rg(e,t,n,a,r,o){const s=i.resolveComponent("vi-grid-kebab-menu"),l=i.resolveComponent("vi-grid-simple-actions");return i.openBlock(),i.createElementBlock("div",Fg,[n.kebab?(i.openBlock(),i.createBlock(s,{key:0,actions:a.visibleActions,"row-key":n.rowKey,row:n.row,"show-menu":n.row[n.rowKey]===n.rowMenuOpened,onActionClicked:a.onActionClicked,onToggleMenu:t[0]||(t[0]=c=>a.toggleRowMenu(n.row))},null,8,["actions","row-key","row","show-menu","onActionClicked"])):(i.openBlock(),i.createBlock(l,{key:1,actions:a.visibleActions,"row-key":n.rowKey,row:n.row,onActionClicked:a.onActionClicked},null,8,["actions","row-key","row","onActionClicked"]))],512)}const zg=R(Bg,[["render",Rg]]),y1="",Vg={name:"ViGridLink",props:{link:{type:String},row:{type:Object,required:!0},value:{}}},jg={class:"vi-grid-link"},Ug=["href"],Wg={key:1};function Yg(e,t,n,a,r,o){return i.openBlock(),i.createElementBlock("div",jg,[n.link&&n.row[n.link]||!n.link&&n.value?(i.openBlock(),i.createElementBlock("a",{key:0,href:n.row[n.link]??n.value,target:"_blank"},i.toDisplayString(n.value),9,Ug)):(i.openBlock(),i.createElementBlock("div",Wg,i.toDisplayString(n.value),1))])}const $g=R(Vg,[["render",Yg]]),b1="",qg={name:"ViGridNumber",props:{value:{},format:{type:Object}},computed:{formattedNumber(){return this.format?new Intl.NumberFormat(void 0,this.format).format(Number(this.value)):this.value}}},Gg={class:"vi-grid-number"};function Hg(e,t,n,a,r,o){return i.openBlock(),i.createElementBlock("div",Gg,i.toDisplayString(o.formattedNumber),1)}const Kg=R(qg,[["render",Hg]]),v1="",Xg=e=>e.toLowerCase().replace(/([-_][a-z])/g,t=>t.toUpperCase().replace("-","").replace("_","")),Qg=e=>e.charAt(0).toUpperCase()+e.slice(1),Jg={name:"ViGridField",components:{ViGridBadge:Pi,ViGridImage:Ni,ViGridText:Ii,ViGridDate:pl,ViGridActions:zg,ViGridLink:$g,ViGridNumber:Kg},props:{field:{type:Object,required:!0},fieldValue:{},rowValue:{},rowKey:String,rowMenuOpened:{},noDataLabel:{type:String,default:"/"}},computed:{filedValueFormatted(){return this.fieldValue??this.noDataLabel},fieldComponent(){let e=this.field.type?`vi-grid-${this.field.type}`:"vi-grid-text",t=Qg(Xg(e));return this.$options.components[t]?e:!1}}},Zg={class:"vi-grid-field"};function ep(e,t,n,a,r,o){return i.openBlock(),i.createElementBlock("div",Zg,[o.fieldComponent?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(o.fieldComponent),i.mergeProps({key:0},n.field,{value:o.filedValueFormatted,"original-value":n.fieldValue,row:n.rowValue,"row-key":n.rowKey,"row-menu-opened":n.rowMenuOpened,"onUpdate:rowMenuOpened":t[0]||(t[0]=s=>e.$emit("update:rowMenuOpened",s)),onActionClicked:t[1]||(t[1]=s=>e.$emit("action-clicked",s))}),null,16,["value","original-value","row","row-key","row-menu-opened"])):i.renderSlot(e.$slots,"custom-field",i.mergeProps({key:1},n.field,{value:n.fieldValue,originalValue:n.fieldValue,row:n.rowValue,rowKey:n.rowKey}))])}const tp=R(Jg,[["render",ep]]),w1="",np={name:"ViGridCheckbox",props:{value:{type:Boolean},name:{type:String},row:{type:Object}}},ap={class:"vi-grid-checkbox"},rp=["checked"];function op(e,t,n,a,r,o){return i.openBlock(),i.createElementBlock("div",ap,[i.createElementVNode("input",{type:"checkbox",checked:n.value,onChange:t[0]||(t[0]=s=>e.$emit("checkbox-clicked",{row:this.row,field:this.name,value:s.target.checked})),onClick:t[1]||(t[1]=i.withModifiers(()=>{},["stop"]))},null,40,rp)])}const ip=R(np,[["render",op]]);function sp(e){const t=i.computed(()=>e.columns.filter(a=>a.isVisible===void 0||a.isVisible)),n=i.computed(()=>e.selectable?1+t.value.length:t.value.length);return{visibleColumns:t,totalColumns:n}}const lp={align:"center",bordered:!1,stripped:!0,disablePagination:!1,noDataLabel:"No data",noCellDataLabel:"/",compactPagination:!0,rowsPerPageOptions:[{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:20,value:20}],rowsPerPage:10,defaultSlots:{}},Ca=i.ref({});function cp(e){const t=["align","disablePagination","defaultSlots","noDataLabel","noCellDataLabel","stripped","bordered","compactPagination","rowsPerPageOptions","rowsPerPage"];return{settings:i.computed(()=>{const a=t.reduce((r,o)=>(e[o]!==void 0&&(r[o]=e[o]),r),{});return{...lp,...Ca.value,...a}})}}function fp(e,t,n){const a=i.computed(()=>{var s;return e.serverMode?(s=e.pagination)==null?void 0:s.rowsNumber:e.rows.length}),r=i.computed(()=>{var f;if(e.serverMode||e.disablePagination)return n.value;let s=((f=e.pagination)==null?void 0:f.rowsPerPage)??Ca.value.rowsPerPage;if(s===0)return n.value;const l=(e.pagination.page-1)*s,c=l+s;return n.value.slice(l,c)});return{totalRows:a,currentVisibleRows:r,onRowClicked:s=>{e.clickableRow&&t("rowClicked",s)}}}function up(e){let t=i.ref(!0),n=i.ref(null),a=i.ref(null),r=i.ref(null);const o=function(b){return r.value!==b?"ascending":n.value==="ascending"?"descending":null},s=function(b,k="text",w="auto"){if(w!=="auto")r.value=b,a.value=k,n.value=w;else{const d=o(b);r.value=d===null?null:b,a.value=d===null?null:k,n.value=d}return{field:r.value,direction:n.value}},l=()=>n.value===null?{}:t.value?{sortBy:[{field:r.value,descending:n.value==="descending"}]}:{sortBy:r.value,descending:n.value==="descending"},c=(b,k,w)=>w==="ascending"?b.sort((d,m)=>Number(d[k])-Number(m[k])):w==="descending"?b.sort((d,m)=>Number(m[k])-Number(d[k])):b,f=(b,k,w)=>w==="ascending"?b.sort((d,m)=>d[k].toString().localeCompare(m[k].toString())):w==="descending"?b.sort((d,m)=>m[k].toString().localeCompare(d[k].toString())):b,u=function(b,k,w,d){return d?w==="number"?c(b,k,d):f(b,k,d):b},g=b=>{t.value=Array.isArray(b.sortBy);const k=b.sortBy?Array.isArray(b.sortBy)?b.sortBy[0].field:b.sortBy:null,w=k?Array.isArray(b.sortBy)?b.sortBy[0].descending:b.descending:null;if(!k)r.value=null,a.value=null,n.value=null;else{let d=e.columns.find(m=>m.name===k);d?s(d.name,d.type,w?"descending":"ascending"):s(k,"text",w?"descending":"ascending")}},p=b=>r.value!==b.name?"unsorted":n.value,v=i.computed(()=>e.serverMode?e.rows??[]:u([...e.rows??[]],r.value,a.value,n.value));return{setSortFieldsFromPagination:g,getSortableState:p,setSortFields:s,formatSortFields:l,clientSort:u,sortedRows:v,sortField:r,sortDirection:n,sortFieldType:a}}function dp(e,t,n){const a=i.computed({get(){var o,s;return{page:(o=e.pagination)==null?void 0:o.page,rowsPerPage:(s=e.pagination)==null?void 0:s.rowsPerPage}},set(o){t("update:pagination",{...e.pagination,...o})}});return{localPagination:a,onPaginationChange:({currentPage:o,rowsPerPage:s})=>{let l={...a.value,...o&&{page:o},...s!==void 0&&{rowsPerPage:s}};a.value=l,e.serverMode&&n({pagination:l})}}}const mp={components:{FontAwesomeIcon:Te},props:{align:{type:String,default:"left"},colspan:{type:Number}}},gp=["colspan"];function pp(e,t,n,a,r,o){return i.openBlock(),i.createElementBlock("th",{class:"vi-header-cell vi-cell",colspan:n.colspan},[i.createElementVNode("div",{class:i.normalizeClass(["vi-header-cell-content",n.align])},[i.renderSlot(e.$slots,"default")],2)],8,gp)}const wi=R(mp,[["render",pp]]);function hp(e,t,n){let a=i.ref([]);const r=(c,f)=>{f?a.value.push(c[e.rowKey]):a.value=a.value.filter(u=>u!==c[e.rowKey]),t("selectedRowsUpdate",a.value)},o=c=>{if(c)a.value=[...a.value,...n.value.filter(f=>!a.value.includes(f[e.rowKey])).map(f=>f[e.rowKey])];else{const f=n.value.map(u=>u[e.rowKey]);a.value=a.value.filter(u=>!f.includes(u))}t("selectedRowsUpdate",a.value)},s=c=>a.value.includes(c[e.rowKey]),l=i.computed(()=>{const c=n.value.filter(f=>a.value.includes(f[e.rowKey]));return c.length>0&&c.length===n.value.length});return{selectedRows:a,toggleRowSelect:r,toggleMasterSelect:o,isRowSelected:s,areAllRowsSelected:l}}const k1="",yp={components:{ViGridHeadCell:wi,FontAwesomeIcon:Te},props:{column:{type:Object,required:!0},align:{type:String},sortableState:{type:String,required:!0}}},bp={key:0,class:"sort-button"};function vp(e,t,n,a,r,o){const s=i.resolveComponent("font-awesome-icon"),l=i.resolveComponent("vi-grid-head-cell");return i.openBlock(),i.createBlock(l,{class:i.normalizeClass([n.sortableState,"vi-grid-header-column-cell"]),align:n.column.align??n.align},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(n.column.label),1)],!0),n.column.sortable?(i.openBlock(),i.createElementBlock("div",bp,[n.sortableState==="descending"?(i.openBlock(),i.createBlock(s,{key:0,icon:["fas","chevron-down"],onClick:t[0]||(t[0]=c=>e.$emit("sort",n.column))})):(i.openBlock(),i.createBlock(s,{key:1,icon:["fas","chevron-up"],onClick:t[1]||(t[1]=c=>e.$emit("sort",n.column))}))])):i.createCommentVNode("",!0)]),_:3},8,["class","align"])}const wp=R(yp,[["render",vp],["__scopeId","data-v-025d85ee"]]);function kp(e){let t=i.ref(null),n=i.ref(!1);const a=({pagination:s,filter:l,search:c}={})=>{const f=s??e.pagination;return n.value=!0,e.fetchServerData({...f&&{pagination:f},filter:l??e.filter,search:c??e.search}).finally(()=>n.value=!1)};return{isFetchingData:n,fetchData:a,reloadData:()=>a({pagination:e.pagination,filter:e.filter,search:t.value}),loadFirstPage:()=>a({pagination:{...e.pagination,page:1},filter:e.filter,search:t.value}),search:t}}const x1="",xp={name:"ViGridBuilder",components:{ViGridHeadColumnCell:wp,ViGridHeadCell:wi,ViGridCheckbox:ip,ViGridField:tp},props:{rows:{type:Array},rowKey:{type:String},columns:{type:Array,required:!0},title:{type:String},align:{type:String},pagination:{type:Object},disablePagination:{type:Boolean,default:void 0},fetchServerData:{type:Function},fetchOnInit:{type:Boolean,default:!0},filter:{type:Object},loading:{type:Boolean,default:!1},noDataLabel:{type:String},noCellDataLabel:{type:String},clickableRow:{type:Boolean,default:!1},selectable:{type:Boolean,default:!1},serverMode:{type:Boolean,default:!0},stripped:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},compactPagination:{type:Boolean,default:void 0},rowsPerPageOptions:{type:Array}},setup(e,{emit:t}){let n=i.ref(null);const{isFetchingData:a,fetchData:r,search:o,loadFirstPage:s,reloadData:l}=kp(e),{visibleColumns:c,totalColumns:f}=sp(e),{setSortFieldsFromPagination:u,getSortableState:g,setSortFields:p,sortField:v,sortDirection:b,formatSortFields:k,sortedRows:w}=up(e);u(e.pagination);const{localPagination:d,onPaginationChange:m}=dp(e,t,Xt=>r({...Xt,...k()}));i.watch([v,b],(...Xt)=>{e.serverMode?r({pagination:{...e.pagination,page:1,...k()}}):d.value={...d.value,page:1}}),i.watch(()=>e.filter,()=>{s()});const{currentVisibleRows:C,totalRows:P,onRowClicked:_}=fp(e,t,w),{selectedRows:M,toggleMasterSelect:D,toggleRowSelect:Pe,areAllRowsSelected:ct,isRowSelected:Re}=hp(e,t,C),Pa=i.computed(()=>e.loading||a.value);e.serverMode&&e.fetchOnInit&&r();const{settings:_a}=cp(e);return{search:o,isFetchingData:a,totalRows:P,currentVisibleRows:C,visibleColumns:c,totalColumns:f,selectedRows:M,toggleMasterSelect:D,areAllRowsSelected:ct,toggleRowSelect:Pe,setSortFields:p,fetchData:r,isDataLoading:Pa,onRowClicked:_,isRowSelected:Re,getSortableState:g,sortDirection:b,localPagination:d,onPaginationChange:m,rowMenuOpened:n,settings:_a,sortedRows:w,loadFirstPage:s,reloadData:l}}},Sp={class:"vi-grid-builder"},Cp={key:0,class:"top-container"},Pp={class:"vi-table-head"},_p={key:0,class:"vi-header-row vi-table-row vi-title-row"},Op={class:"vi-header-row vi-table-row"},Ap={key:1,class:"vi-body-row vi-table-row vi-loading-row"},Ep={key:1,class:"loading-bar-container"},Np={key:0,class:"vi-table-body"},Tp={class:"vi-body-row vi-table-row vi-no-data-row"},Mp=["colspan"],Dp={key:1},Ip={key:1,class:"vi-table-body"},Lp=["onClick"],Bp={key:0,class:"vi-cell vi-select-cell"},Fp={class:"vi-body-row vi-table-row vi-footer-row"},Rp=["colspan"];function zp(e,t,n,a,r,o){const s=i.resolveComponent("vi-grid-head-cell"),l=i.resolveComponent("vi-grid-checkbox"),c=i.resolveComponent("vi-grid-head-column-cell"),f=i.resolveComponent("vi-grid-field"),u=i.resolveComponent("vi-pagination");return i.openBlock(),i.createElementBlock("div",Sp,[e.$slots.top?(i.openBlock(),i.createElementBlock("div",Cp,[i.renderSlot(e.$slots,"top")])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["vi-table-container",{loading:a.isDataLoading}])},[i.createElementVNode("table",{class:i.normalizeClass(["vi-table",{stripped:a.settings.stripped,bordered:a.settings.bordered}])},[i.createElementVNode("thead",Pp,[n.title?(i.openBlock(),i.createElementBlock("tr",_p,[n.title?(i.openBlock(),i.createBlock(s,{key:0,colspan:a.visibleColumns.length,align:"left",class:"vi-title-cell"},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"title",{title:n.title},()=>[i.createElementVNode("span",null,i.toDisplayString(n.title),1)])]),_:3},8,["colspan"])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("tr",Op,[n.selectable?(i.openBlock(),i.createBlock(s,{key:0,class:"vi-select-cell",align:a.settings.align},{default:i.withCtx(()=>[i.createVNode(l,{name:"masterSelect",value:a.areAllRowsSelected,onCheckboxClicked:t[0]||(t[0]=g=>a.toggleMasterSelect(g.value))},null,8,["value"])]),_:1},8,["align"])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.visibleColumns,g=>(i.openBlock(),i.createBlock(c,{key:g.name,column:g,align:a.settings.align,"sortable-state":a.getSortableState(g),onSort:a.setSortFields},{default:i.withCtx(()=>[i.renderSlot(e.$slots,`vi-header-cell-${g.name}`,{column:g})]),_:2},1032,["column","align","sortable-state","onSort"]))),128))]),a.isDataLoading?(i.openBlock(),i.createElementBlock("tr",Ap,[i.createVNode(s,{colspan:a.totalColumns,class:"vi-loading-cell"},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"loading",{},()=>[a.settings.defaultSlots.loading?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.settings.defaultSlots.loading),{key:0})):(i.openBlock(),i.createElementBlock("div",Ep,t[2]||(t[2]=[i.createElementVNode("div",{class:"loading-bar"},null,-1)])))])]),_:3},8,["colspan"])])):i.createCommentVNode("",!0)]),!a.currentVisibleRows.length&&!a.isDataLoading?(i.openBlock(),i.createElementBlock("tbody",Np,[i.createElementVNode("tr",Tp,[i.createElementVNode("td",{class:"vi-body-cell vi-cell",colspan:a.totalColumns},[i.renderSlot(e.$slots,"empty-data",{},()=>[a.settings.defaultSlots.noRows?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.settings.defaultSlots.noRows),{key:0})):(i.openBlock(),i.createElementBlock("span",Dp,i.toDisplayString(a.settings.noDataLabel),1))])],8,Mp)])])):(i.openBlock(),i.createElementBlock("tbody",Ip,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.currentVisibleRows,g=>(i.openBlock(),i.createElementBlock("tr",{key:g[n.rowKey],class:i.normalizeClass([{clickable:n.clickableRow,selected:a.isRowSelected(g)},"vi-body-row vi-table-row"]),onClick:p=>a.onRowClicked(g)},[n.selectable?(i.openBlock(),i.createElementBlock("td",Bp,[i.createElementVNode("div",{class:i.normalizeClass(["vi-grid-field",a.settings.align])},[i.createVNode(l,{row:g,name:n.rowKey,value:a.selectedRows.includes(g[n.rowKey]),onCheckboxClicked:p=>a.toggleRowSelect(g,p.value)},null,8,["row","name","value","onCheckboxClicked"])],2)])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.visibleColumns,p=>(i.openBlock(),i.createElementBlock("td",{key:p.name,class:"vi-body-cell vi-cell"},[i.createVNode(f,{"row-menu-opened":a.rowMenuOpened,"onUpdate:rowMenuOpened":t[1]||(t[1]=v=>a.rowMenuOpened=v),class:i.normalizeClass(p.align??a.settings.align),field:p,"field-value":p.transform?p.transform(g):g[p.name],"row-value":g,"row-key":n.rowKey,onActionClicked:v=>e.$emit(v.action,v.row),onCheckboxClicked:v=>a.toggleRowSelect(g,v.value)},{"custom-field":i.withCtx(v=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(p.type),i.mergeProps({ref_for:!0},v),null,16))]),_:2},1032,["row-menu-opened","class","field","field-value","row-value","row-key","onActionClicked","onCheckboxClicked"])]))),128))],10,Lp))),128)),i.createElementVNode("tr",Fp,[i.createElementVNode("td",{colspan:a.totalColumns,class:"vi-body-cell vi-cell vi-footer-cell"},[i.renderSlot(e.$slots,"footer",{pagination:{...n.pagination,totalRows:a.totalRows}},()=>[a.settings.defaultSlots.footer?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.settings.defaultSlots.footer),{key:0,pagination:{...n.pagination,totalRows:a.totalRows}},null,8,["pagination"])):i.createCommentVNode("",!0),a.settings.disablePagination?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(u,{key:1,"rows-per-page":a.localPagination.rowsPerPage??a.settings.rowsPerPage,"current-page":a.localPagination.page,"total-rows":a.totalRows,"max-pages-displayed":3,compact:a.settings.compactPagination,"rows-per-page-options":a.settings.rowsPerPageOptions,onUpdate:a.onPaginationChange},null,8,["rows-per-page","current-page","total-rows","compact","rows-per-page-options","onUpdate"]))])],8,Rp)])]))],2)],2),i.renderSlot(e.$slots,"bottom")])}const ki=R(xp,[["render",zp]]),xi={format:{date:"yyyy-MM-dd",dateTime:"yyyy-MM-dd HH:mm:ss",time:"HH:mm:ss"},mode:"dateTime"},S1="",Vp={name:"ViPagination",components:{FontAwesomeIcon:Te},props:{rowsPerPage:{type:Number,required:!0},rowsPerPageOptions:{type:Array},totalRows:{type:Number,required:!0},currentPage:{type:Number,required:!0},maxPagesDisplayed:{type:Number,default:3},options:{type:Object,default:function(){return{rowsPerPageOptions:[{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:20,value:20}]}}},compact:{type:Boolean}},computed:{totalPages(){return Math.ceil(this.totalRows/this.rowsOnPage)},firsVisiblePage(){return this.visiblePages[0]},lastVisiblePage(){return this.visiblePages[this.visiblePages.length-1]},firstVisibleRow(){return this.currentPage===1?1:(this.currentPage-1)*this.rowsOnPage},lastVisibleRow(){return this.currentPage===this.totalPages?this.totalRows:this.currentPage*this.rowsOnPage},visiblePages(){let e,t;if(this.totalPages<=this.maxPagesDisplayed)e=1,t=this.totalPages;else{const n=Math.floor(this.maxPagesDisplayed/2);e=Math.max(this.currentPage-n,1),t=e+this.maxPagesDisplayed-1,t>this.totalPages&&(t=this.totalPages,e=t-this.maxPagesDisplayed+1)}return Array.from({length:t-e+1},(n,a)=>e+a)},rowsOnPage(){return this.rowsPerPage>0?this.rowsPerPage:this.totalRows},compactPagination(){var e;return this.compact!==void 0?this.compact:((e=this.ViPaginationSettings)==null?void 0:e.compact)??!1}},methods:{paginationChange({currentPage:e,rowsPerPage:t}){let n={currentPage:e!==void 0?parseInt(e):this.currentPage,rowsPerPage:t!==void 0?parseInt(t):this.rowsPerPage};this.$emit("update",n)},pageChange(e){if(e===this.currentPage||e>this.totalPages||e<1)return!1;this.$emit("update:currentPage",parseInt(e)),this.paginationChange({currentPage:e})},rowsPerPageChange(e){const t=e.target.value;if(t===this.rowsPerPage)return!1;this.$emit("update:rowsPerPage",parseInt(t)),this.paginationChange({rowsPerPage:t,currentPage:1})}}},jp={class:"vi-pagination"},Up={class:"vi-rows-per-page"},Wp=["value"],Yp=["value"],$p={key:0},qp={class:"vi-pages-navigator"},Gp={class:"page-actions"},Hp={key:0,class:"page-numbers-container"},Kp=["onClick"],Xp={class:"page-actions"};function Qp(e,t,n,a,r,o){const s=i.resolveComponent("font-awesome-icon");return i.openBlock(),i.createElementBlock("div",jp,[i.createElementVNode("div",Up,[i.renderSlot(e.$slots,"rows-per-page",{rowsPerPage:o.rowsOnPage,rowsPerPageUpdate:o.rowsPerPageChange},()=>[t[5]||(t[5]=i.createElementVNode("span",null,"Rows per page ",-1)),i.createElementVNode("select",{value:n.rowsPerPage,onChange:t[0]||(t[0]=(...l)=>o.rowsPerPageChange&&o.rowsPerPageChange(...l))},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.rowsPerPageOptions,l=>(i.openBlock(),i.createElementBlock("option",{key:l.value,value:l.value},i.toDisplayString(l.label),9,Yp))),128))],40,Wp)])]),i.renderSlot(e.$slots,"visible-rows-info",{totalRows:n.totalRows,firstVisibleRow:o.firstVisibleRow,lastVisibleRow:o.lastVisibleRow},()=>[n.totalRows>0?(i.openBlock(),i.createElementBlock("div",$p," Showing "+i.toDisplayString(o.firstVisibleRow)+" - "+i.toDisplayString(o.lastVisibleRow)+" of "+i.toDisplayString(n.totalRows),1)):i.createCommentVNode("",!0)]),i.createElementVNode("div",qp,[i.renderSlot(e.$slots,"navigation-prev",{},()=>[i.createElementVNode("div",Gp,[i.createElementVNode("div",{onClick:t[1]||(t[1]=l=>o.pageChange(1)),class:i.normalizeClass(["vi-page-nav vi-page-first",{disabled:o.firsVisiblePage===1&&!n.compact}])},[i.createVNode(s,{icon:["fas","angles-left"],size:"lg"})],2),i.createElementVNode("div",{class:i.normalizeClass([{disabled:n.currentPage===1},"vi-page-nav vi-page-prev"]),onClick:t[2]||(t[2]=l=>o.pageChange(n.currentPage-1))},[i.createVNode(s,{icon:["fas","angle-left"]})],2)])]),o.compactPagination?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",Hp,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.visiblePages,l=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vi-page-number",{active:l===n.currentPage}]),key:l,onClick:c=>o.pageChange(l)},i.toDisplayString(l),11,Kp))),128))])),i.renderSlot(e.$slots,"navigation-next",{},()=>[i.createElementVNode("div",Xp,[i.createElementVNode("div",{class:i.normalizeClass([{disabled:n.currentPage===o.totalPages},"vi-page-nav vi-page-next"]),onClick:t[3]||(t[3]=l=>o.pageChange(n.currentPage+1))},[i.createVNode(s,{icon:["fas","angle-right"]})],2),i.createElementVNode("div",{class:i.normalizeClass([{disabled:o.lastVisiblePage===o.totalPages&&!n.compact},"vi-page-nav vi-page-last"]),onClick:t[4]||(t[4]=l=>o.pageChange(o.totalPages))},[i.createVNode(s,{icon:["fas","angles-right"],size:"lg"})],2)])])])])}const Jp=R(Vp,[["render",Qp]]);/*!
1125
+ */const Sg={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"]},Cg=Sg,Pg={prefix:"fas",iconName:"arrow-right",icon:[448,512,[8594],"f061","M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"]},_g={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-7.2-14.3C307.4 6.8 296.3 0 284.2 0L163.8 0c-12.1 0-23.2 6.8-28.6 17.7zM416 128L32 128 53.2 467c1.6 25.3 22.6 45 47.9 45l245.8 0c25.3 0 46.3-19.7 47.9-45L416 128z"]},Og={prefix:"fas",iconName:"arrow-left",icon:[448,512,[8592],"f060","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]},Ag={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]},Eg={prefix:"fas",iconName:"x",icon:[384,512,[120],"58","M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z"]},Ng={install(e,{style:t,toastify:n,registerComponentGlobally:a=!1}={}){Fd.add(Ag,_g,Cg,Pg,Og,Eg),a&&(e.component("ViPage",wm),e.component("ViMainHeader",gm),e.component("ViDialog",Im),e.component("ViConfirmationDialog",Om),e.component("ViButton",Ut)),e.use(vi,n??{}),e.config.globalProperties.$toast=E,e.mixin({mounted(){if(t)for(const[r,o]of Object.entries(t))document.documentElement.style.setProperty(`--vi-common-${r}`,o)}})}},p1="",Tg={name:"ViGridSimpleActions",components:{ViButton:Ut},emits:["action-clicked"],props:{actions:{type:Array}}},Mg={class:"vi-grid-builder-actions"};function Dg(e,t,n,a,r,o){const s=i.resolveComponent("vi-button");return i.openBlock(),i.createElementBlock("div",Mg,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.actions,(l,c)=>(i.openBlock(),i.createBlock(s,{key:c,label:l.name,mode:l.mode,action:l.action,size:"small",onClick:f=>e.$emit("action-clicked",l.action)},null,8,["label","mode","action","onClick"]))),128))])}const Ig=R(Tg,[["render",Dg]]);function Lg(e,t){return{visibleActions:i.computed(()=>e.actions.filter(o=>o.isVisible===void 0?!0:o.isVisible(e.row))),onActionClicked:o=>{t("action-clicked",{action:o,row:e.row})},toggleRowMenu:o=>{e.rowMenuOpened===o[e.rowKey]?t("update:rowMenuOpened",null):t("update:rowMenuOpened",o[e.rowKey])}}}const h1="",Bg={name:"ViGridActions",components:{ViGridSimpleActions:Ig,ViGridKebabMenu:Bf},props:{kebab:{type:Boolean,default:!1},row:{},rowKey:String,actions:{type:Array,default:function(){return[]}},rowMenuOpened:{}},setup(e,{emit:t}){const{visibleActions:n,onActionClicked:a,toggleRowMenu:r}=Lg(e,t);let o=i.ref(null);return i.onMounted(()=>{o.clickOutsideHandler=s=>{e.rowMenuOpened&&o.value&&!(o.value===s.target||o.value.contains(s.target))&&t("update:rowMenuOpened",null)},document.addEventListener("click",o.clickOutsideHandler)}),i.onUnmounted(()=>{document.removeEventListener("click",o.clickOutsideHandler)}),{visibleActions:n,onActionClicked:a,toggleRowMenu:r,gridActions:o}}},Fg={class:"vi-grid-actions",ref:"gridActions"};function Rg(e,t,n,a,r,o){const s=i.resolveComponent("vi-grid-kebab-menu"),l=i.resolveComponent("vi-grid-simple-actions");return i.openBlock(),i.createElementBlock("div",Fg,[n.kebab?(i.openBlock(),i.createBlock(s,{key:0,actions:a.visibleActions,"row-key":n.rowKey,row:n.row,"show-menu":n.row[n.rowKey]===n.rowMenuOpened,onActionClicked:a.onActionClicked,onToggleMenu:t[0]||(t[0]=c=>a.toggleRowMenu(n.row))},null,8,["actions","row-key","row","show-menu","onActionClicked"])):(i.openBlock(),i.createBlock(l,{key:1,actions:a.visibleActions,"row-key":n.rowKey,row:n.row,onActionClicked:a.onActionClicked},null,8,["actions","row-key","row","onActionClicked"]))],512)}const zg=R(Bg,[["render",Rg]]),y1="",Vg={name:"ViGridLink",props:{link:{type:String},row:{type:Object,required:!0},value:{}}},jg={class:"vi-grid-link"},Ug=["href"],Wg={key:1};function Yg(e,t,n,a,r,o){return i.openBlock(),i.createElementBlock("div",jg,[n.link&&n.row[n.link]||!n.link&&n.value?(i.openBlock(),i.createElementBlock("a",{key:0,href:n.row[n.link]??n.value,target:"_blank"},i.toDisplayString(n.value),9,Ug)):(i.openBlock(),i.createElementBlock("div",Wg,i.toDisplayString(n.value),1))])}const $g=R(Vg,[["render",Yg]]),b1="",qg={name:"ViGridNumber",props:{value:{},format:{type:Object}},computed:{formattedNumber(){return this.format?new Intl.NumberFormat(void 0,this.format).format(Number(this.value)):this.value}}},Gg={class:"vi-grid-number"};function Hg(e,t,n,a,r,o){return i.openBlock(),i.createElementBlock("div",Gg,i.toDisplayString(o.formattedNumber),1)}const Kg=R(qg,[["render",Hg]]),v1="",Xg=e=>e.toLowerCase().replace(/([-_][a-z])/g,t=>t.toUpperCase().replace("-","").replace("_","")),Qg=e=>e.charAt(0).toUpperCase()+e.slice(1),Jg={name:"ViGridField",components:{ViGridBadge:Pi,ViGridImage:Ni,ViGridText:Ii,ViGridDate:pl,ViGridActions:zg,ViGridLink:$g,ViGridNumber:Kg},props:{field:{type:Object,required:!0},fieldValue:{},rowValue:{},rowKey:String,rowMenuOpened:{},noDataLabel:{type:String,default:"/"}},computed:{filedValueFormatted(){return this.fieldValue??this.noDataLabel},fieldComponent(){let e=this.field.type?`vi-grid-${this.field.type}`:"vi-grid-text",t=Qg(Xg(e));return this.$options.components[t]?e:!1}}},Zg={class:"vi-grid-field"};function ep(e,t,n,a,r,o){return i.openBlock(),i.createElementBlock("div",Zg,[o.fieldComponent?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(o.fieldComponent),i.mergeProps({key:0},n.field,{value:o.filedValueFormatted,"original-value":n.fieldValue,row:n.rowValue,"row-key":n.rowKey,"row-menu-opened":n.rowMenuOpened,"onUpdate:rowMenuOpened":t[0]||(t[0]=s=>e.$emit("update:rowMenuOpened",s)),onActionClicked:t[1]||(t[1]=s=>e.$emit("action-clicked",s))}),null,16,["value","original-value","row","row-key","row-menu-opened"])):i.renderSlot(e.$slots,"custom-field",i.mergeProps({key:1},n.field,{value:n.fieldValue,originalValue:n.fieldValue,row:n.rowValue,rowKey:n.rowKey}))])}const tp=R(Jg,[["render",ep]]),w1="",np={name:"ViGridCheckbox",props:{value:{type:Boolean},name:{type:String},row:{type:Object}}},ap={class:"vi-grid-checkbox"},rp=["checked"];function op(e,t,n,a,r,o){return i.openBlock(),i.createElementBlock("div",ap,[i.createElementVNode("input",{type:"checkbox",checked:n.value,onChange:t[0]||(t[0]=s=>e.$emit("checkbox-clicked",{row:this.row,field:this.name,value:s.target.checked})),onClick:t[1]||(t[1]=i.withModifiers(()=>{},["stop"]))},null,40,rp)])}const ip=R(np,[["render",op]]);function sp(e){const t=i.computed(()=>e.columns.filter(a=>a.isVisible===void 0||a.isVisible)),n=i.computed(()=>e.selectable?1+t.value.length:t.value.length);return{visibleColumns:t,totalColumns:n}}const lp={align:"center",bordered:!1,stripped:!0,disablePagination:!1,noDataLabel:"No data",noCellDataLabel:"/",compactPagination:!0,rowsPerPageOptions:[{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:20,value:20}],rowsPerPage:10,defaultSlots:{}},Ca=i.ref({});function cp(e){const t=["align","disablePagination","defaultSlots","noDataLabel","noCellDataLabel","stripped","bordered","compactPagination","rowsPerPageOptions","rowsPerPage"];return{settings:i.computed(()=>{const a=t.reduce((r,o)=>(e[o]!==void 0&&(r[o]=e[o]),r),{});return{...lp,...Ca.value,...a}})}}function fp(e,t,n){const a=i.computed(()=>{var s;return e.serverMode?(s=e.pagination)==null?void 0:s.rowsNumber:e.rows.length}),r=i.computed(()=>{var f;if(e.serverMode||e.disablePagination)return n.value;let s=((f=e.pagination)==null?void 0:f.rowsPerPage)??Ca.value.rowsPerPage;if(s===0)return n.value;const l=(e.pagination.page-1)*s,c=l+s;return n.value.slice(l,c)});return{totalRows:a,currentVisibleRows:r,onRowClicked:s=>{e.clickableRow&&t("rowClicked",s)}}}function up(e){let t=i.ref(!0),n=i.ref(null),a=i.ref(null),r=i.ref(null);const o=function(b){return r.value!==b?"ascending":n.value==="ascending"?"descending":null},s=function(b,k="text",w="auto"){if(w!=="auto")r.value=b,a.value=k,n.value=w;else{const d=o(b);r.value=d===null?null:b,a.value=d===null?null:k,n.value=d}return{field:r.value,direction:n.value}},l=()=>n.value===null?{}:t.value?{sortBy:[{field:r.value,descending:n.value==="descending"}]}:{sortBy:r.value,descending:n.value==="descending"},c=(b,k,w)=>w==="ascending"?b.sort((d,m)=>Number(d[k])-Number(m[k])):w==="descending"?b.sort((d,m)=>Number(m[k])-Number(d[k])):b,f=(b,k,w)=>w==="ascending"?b.sort((d,m)=>d[k].toString().localeCompare(m[k].toString())):w==="descending"?b.sort((d,m)=>m[k].toString().localeCompare(d[k].toString())):b,u=function(b,k,w,d){return d?w==="number"?c(b,k,d):f(b,k,d):b},g=b=>{t.value=Array.isArray(b.sortBy);const k=b.sortBy?Array.isArray(b.sortBy)?b.sortBy[0].field:b.sortBy:null,w=k?Array.isArray(b.sortBy)?b.sortBy[0].descending:b.descending:null;if(!k)r.value=null,a.value=null,n.value=null;else{let d=e.columns.find(m=>m.name===k);d?s(d.name,d.type,w?"descending":"ascending"):s(k,"text",w?"descending":"ascending")}},p=b=>r.value!==b.name?"unsorted":n.value,v=i.computed(()=>e.serverMode?e.rows??[]:u([...e.rows??[]],r.value,a.value,n.value));return{setSortFieldsFromPagination:g,getSortableState:p,setSortFields:s,formatSortFields:l,clientSort:u,sortedRows:v,sortField:r,sortDirection:n,sortFieldType:a}}function dp(e,t,n){const a=i.computed({get(){var o,s;return{page:(o=e.pagination)==null?void 0:o.page,rowsPerPage:(s=e.pagination)==null?void 0:s.rowsPerPage}},set(o){t("update:pagination",{...e.pagination,...o})}});return{localPagination:a,onPaginationChange:({currentPage:o,rowsPerPage:s})=>{let l={...a.value,...o&&{page:o},...s!==void 0&&{rowsPerPage:s}};a.value=l,e.serverMode&&n({pagination:l})}}}const mp={components:{FontAwesomeIcon:Te},props:{align:{type:String,default:"left"},colspan:{type:Number}}},gp=["colspan"];function pp(e,t,n,a,r,o){return i.openBlock(),i.createElementBlock("th",{class:"vi-header-cell vi-cell",colspan:n.colspan},[i.createElementVNode("div",{class:i.normalizeClass(["vi-header-cell-content",n.align])},[i.renderSlot(e.$slots,"default")],2)],8,gp)}const wi=R(mp,[["render",pp]]);function hp(e,t,n){let a=i.ref([]);const r=(c,f)=>{f?a.value.push(c[e.rowKey]):a.value=a.value.filter(u=>u!==c[e.rowKey]),t("selectedRowsUpdate",a.value)},o=c=>{if(c)a.value=[...a.value,...n.value.filter(f=>!a.value.includes(f[e.rowKey])).map(f=>f[e.rowKey])];else{const f=n.value.map(u=>u[e.rowKey]);a.value=a.value.filter(u=>!f.includes(u))}t("selectedRowsUpdate",a.value)},s=c=>a.value.includes(c[e.rowKey]),l=i.computed(()=>{const c=n.value.filter(f=>a.value.includes(f[e.rowKey]));return c.length>0&&c.length===n.value.length});return{selectedRows:a,toggleRowSelect:r,toggleMasterSelect:o,isRowSelected:s,areAllRowsSelected:l}}const k1="",yp={components:{ViGridHeadCell:wi,FontAwesomeIcon:Te},props:{column:{type:Object,required:!0},align:{type:String},sortableState:{type:String,required:!0}}},bp={key:0,class:"sort-button"};function vp(e,t,n,a,r,o){const s=i.resolveComponent("font-awesome-icon"),l=i.resolveComponent("vi-grid-head-cell");return i.openBlock(),i.createBlock(l,{class:i.normalizeClass([n.sortableState,"vi-grid-header-column-cell"]),align:n.column.align??n.align},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(n.column.label),1)],!0),n.column.sortable?(i.openBlock(),i.createElementBlock("div",bp,[n.sortableState==="descending"?(i.openBlock(),i.createBlock(s,{key:0,icon:["fas","chevron-down"],onClick:t[0]||(t[0]=c=>e.$emit("sort",n.column))})):(i.openBlock(),i.createBlock(s,{key:1,icon:["fas","chevron-up"],onClick:t[1]||(t[1]=c=>e.$emit("sort",n.column))}))])):i.createCommentVNode("",!0)]),_:3},8,["class","align"])}const wp=R(yp,[["render",vp],["__scopeId","data-v-025d85ee"]]);function kp(e){let t=i.ref(null),n=i.ref(!1);const a=({pagination:s,filter:l,search:c}={})=>{const f=s??e.pagination;return n.value=!0,e.fetchServerData({...f&&{pagination:f},filter:l??e.filter,search:c??e.search}).finally(()=>n.value=!1)};return{isFetchingData:n,fetchData:a,reloadData:()=>a({pagination:e.pagination,filter:e.filter,search:t.value}),loadFirstPage:()=>a({pagination:{...e.pagination,page:1},filter:e.filter,search:t.value}),search:t}}const x1="",xp={name:"ViGridBuilder",components:{ViGridHeadColumnCell:wp,ViGridHeadCell:wi,ViGridCheckbox:ip,ViGridField:tp},props:{rows:{type:Array},rowKey:{type:String},columns:{type:Array,required:!0},title:{type:String},align:{type:String},pagination:{type:Object},disablePagination:{type:Boolean,default:void 0},fetchServerData:{type:Function},fetchOnInit:{type:Boolean,default:!0},filter:{type:Object},loading:{type:Boolean,default:!1},noDataLabel:{type:String},noCellDataLabel:{type:String},clickableRow:{type:Boolean,default:!1},selectable:{type:Boolean,default:!1},serverMode:{type:Boolean,default:!0},stripped:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},compactPagination:{type:Boolean,default:void 0},rowsPerPageOptions:{type:Array}},setup(e,{emit:t}){let n=i.ref(null);const{isFetchingData:a,fetchData:r,search:o,loadFirstPage:s,reloadData:l}=kp(e),{visibleColumns:c,totalColumns:f}=sp(e),{setSortFieldsFromPagination:u,getSortableState:g,setSortFields:p,sortField:v,sortDirection:b,formatSortFields:k,sortedRows:w}=up(e);u(e.pagination);const{localPagination:d,onPaginationChange:m}=dp(e,t,Xt=>r({pagination:{...Xt,...k()}}));i.watch([v,b],(...Xt)=>{e.serverMode?r({pagination:{...e.pagination,page:1,...k()}}):d.value={...d.value,page:1}}),i.watch(()=>e.filter,()=>{s()});const{currentVisibleRows:C,totalRows:P,onRowClicked:_}=fp(e,t,w),{selectedRows:M,toggleMasterSelect:D,toggleRowSelect:Pe,areAllRowsSelected:ct,isRowSelected:Re}=hp(e,t,C),Pa=i.computed(()=>e.loading||a.value);e.serverMode&&e.fetchOnInit&&r();const{settings:_a}=cp(e);return{search:o,isFetchingData:a,totalRows:P,currentVisibleRows:C,visibleColumns:c,totalColumns:f,selectedRows:M,toggleMasterSelect:D,areAllRowsSelected:ct,toggleRowSelect:Pe,setSortFields:p,fetchData:r,isDataLoading:Pa,onRowClicked:_,isRowSelected:Re,getSortableState:g,sortDirection:b,localPagination:d,onPaginationChange:m,rowMenuOpened:n,settings:_a,sortedRows:w,loadFirstPage:s,reloadData:l}}},Sp={class:"vi-grid-builder"},Cp={key:0,class:"top-container"},Pp={class:"vi-table-head"},_p={key:0,class:"vi-header-row vi-table-row vi-title-row"},Op={class:"vi-header-row vi-table-row"},Ap={key:1,class:"vi-body-row vi-table-row vi-loading-row"},Ep={key:1,class:"loading-bar-container"},Np={key:0,class:"vi-table-body"},Tp={class:"vi-body-row vi-table-row vi-no-data-row"},Mp=["colspan"],Dp={key:1},Ip={key:1,class:"vi-table-body"},Lp=["onClick"],Bp={key:0,class:"vi-cell vi-select-cell"},Fp={class:"vi-body-row vi-table-row vi-footer-row"},Rp=["colspan"];function zp(e,t,n,a,r,o){const s=i.resolveComponent("vi-grid-head-cell"),l=i.resolveComponent("vi-grid-checkbox"),c=i.resolveComponent("vi-grid-head-column-cell"),f=i.resolveComponent("vi-grid-field"),u=i.resolveComponent("vi-pagination");return i.openBlock(),i.createElementBlock("div",Sp,[e.$slots.top?(i.openBlock(),i.createElementBlock("div",Cp,[i.renderSlot(e.$slots,"top")])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["vi-table-container",{loading:a.isDataLoading}])},[i.createElementVNode("table",{class:i.normalizeClass(["vi-table",{stripped:a.settings.stripped,bordered:a.settings.bordered}])},[i.createElementVNode("thead",Pp,[n.title?(i.openBlock(),i.createElementBlock("tr",_p,[n.title?(i.openBlock(),i.createBlock(s,{key:0,colspan:a.visibleColumns.length,align:"left",class:"vi-title-cell"},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"title",{title:n.title},()=>[i.createElementVNode("span",null,i.toDisplayString(n.title),1)])]),_:3},8,["colspan"])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("tr",Op,[n.selectable?(i.openBlock(),i.createBlock(s,{key:0,class:"vi-select-cell",align:a.settings.align},{default:i.withCtx(()=>[i.createVNode(l,{name:"masterSelect",value:a.areAllRowsSelected,onCheckboxClicked:t[0]||(t[0]=g=>a.toggleMasterSelect(g.value))},null,8,["value"])]),_:1},8,["align"])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.visibleColumns,g=>(i.openBlock(),i.createBlock(c,{key:g.name,column:g,align:a.settings.align,"sortable-state":a.getSortableState(g),onSort:a.setSortFields},{default:i.withCtx(()=>[i.renderSlot(e.$slots,`vi-header-cell-${g.name}`,{column:g})]),_:2},1032,["column","align","sortable-state","onSort"]))),128))]),a.isDataLoading?(i.openBlock(),i.createElementBlock("tr",Ap,[i.createVNode(s,{colspan:a.totalColumns,class:"vi-loading-cell"},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"loading",{},()=>[a.settings.defaultSlots.loading?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.settings.defaultSlots.loading),{key:0})):(i.openBlock(),i.createElementBlock("div",Ep,t[2]||(t[2]=[i.createElementVNode("div",{class:"loading-bar"},null,-1)])))])]),_:3},8,["colspan"])])):i.createCommentVNode("",!0)]),!a.currentVisibleRows.length&&!a.isDataLoading?(i.openBlock(),i.createElementBlock("tbody",Np,[i.createElementVNode("tr",Tp,[i.createElementVNode("td",{class:"vi-body-cell vi-cell",colspan:a.totalColumns},[i.renderSlot(e.$slots,"empty-data",{},()=>[a.settings.defaultSlots.noRows?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.settings.defaultSlots.noRows),{key:0})):(i.openBlock(),i.createElementBlock("span",Dp,i.toDisplayString(a.settings.noDataLabel),1))])],8,Mp)])])):(i.openBlock(),i.createElementBlock("tbody",Ip,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.currentVisibleRows,g=>(i.openBlock(),i.createElementBlock("tr",{key:g[n.rowKey],class:i.normalizeClass([{clickable:n.clickableRow,selected:a.isRowSelected(g)},"vi-body-row vi-table-row"]),onClick:p=>a.onRowClicked(g)},[n.selectable?(i.openBlock(),i.createElementBlock("td",Bp,[i.createElementVNode("div",{class:i.normalizeClass(["vi-grid-field",a.settings.align])},[i.createVNode(l,{row:g,name:n.rowKey,value:a.selectedRows.includes(g[n.rowKey]),onCheckboxClicked:p=>a.toggleRowSelect(g,p.value)},null,8,["row","name","value","onCheckboxClicked"])],2)])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.visibleColumns,p=>(i.openBlock(),i.createElementBlock("td",{key:p.name,class:"vi-body-cell vi-cell"},[i.createVNode(f,{"row-menu-opened":a.rowMenuOpened,"onUpdate:rowMenuOpened":t[1]||(t[1]=v=>a.rowMenuOpened=v),class:i.normalizeClass(p.align??a.settings.align),field:p,"field-value":p.transform?p.transform(g):g[p.name],"row-value":g,"row-key":n.rowKey,onActionClicked:v=>e.$emit(v.action,v.row),onCheckboxClicked:v=>a.toggleRowSelect(g,v.value)},{"custom-field":i.withCtx(v=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(p.type),i.mergeProps({ref_for:!0},v),null,16))]),_:2},1032,["row-menu-opened","class","field","field-value","row-value","row-key","onActionClicked","onCheckboxClicked"])]))),128))],10,Lp))),128)),i.createElementVNode("tr",Fp,[i.createElementVNode("td",{colspan:a.totalColumns,class:"vi-body-cell vi-cell vi-footer-cell"},[i.renderSlot(e.$slots,"footer",{pagination:{...n.pagination,totalRows:a.totalRows}},()=>[a.settings.defaultSlots.footer?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.settings.defaultSlots.footer),{key:0,pagination:{...n.pagination,totalRows:a.totalRows}},null,8,["pagination"])):i.createCommentVNode("",!0),a.settings.disablePagination?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(u,{key:1,"rows-per-page":a.localPagination.rowsPerPage??a.settings.rowsPerPage,"current-page":a.localPagination.page,"total-rows":a.totalRows,"max-pages-displayed":3,compact:a.settings.compactPagination,"rows-per-page-options":a.settings.rowsPerPageOptions,onUpdate:a.onPaginationChange},null,8,["rows-per-page","current-page","total-rows","compact","rows-per-page-options","onUpdate"]))])],8,Rp)])]))],2)],2),i.renderSlot(e.$slots,"bottom")])}const ki=R(xp,[["render",zp]]),xi={format:{date:"yyyy-MM-dd",dateTime:"yyyy-MM-dd HH:mm:ss",time:"HH:mm:ss"},mode:"dateTime"},S1="",Vp={name:"ViPagination",components:{FontAwesomeIcon:Te},props:{rowsPerPage:{type:Number,required:!0},rowsPerPageOptions:{type:Array},totalRows:{type:Number,required:!0},currentPage:{type:Number,required:!0},maxPagesDisplayed:{type:Number,default:3},options:{type:Object,default:function(){return{rowsPerPageOptions:[{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:20,value:20}]}}},compact:{type:Boolean}},computed:{totalPages(){return Math.ceil(this.totalRows/this.rowsOnPage)},firsVisiblePage(){return this.visiblePages[0]},lastVisiblePage(){return this.visiblePages[this.visiblePages.length-1]},firstVisibleRow(){return this.currentPage===1?1:(this.currentPage-1)*this.rowsOnPage},lastVisibleRow(){return this.currentPage===this.totalPages?this.totalRows:this.currentPage*this.rowsOnPage},visiblePages(){let e,t;if(this.totalPages<=this.maxPagesDisplayed)e=1,t=this.totalPages;else{const n=Math.floor(this.maxPagesDisplayed/2);e=Math.max(this.currentPage-n,1),t=e+this.maxPagesDisplayed-1,t>this.totalPages&&(t=this.totalPages,e=t-this.maxPagesDisplayed+1)}return Array.from({length:t-e+1},(n,a)=>e+a)},rowsOnPage(){return this.rowsPerPage>0?this.rowsPerPage:this.totalRows},compactPagination(){var e;return this.compact!==void 0?this.compact:((e=this.ViPaginationSettings)==null?void 0:e.compact)??!1}},methods:{paginationChange({currentPage:e,rowsPerPage:t}){let n={currentPage:e!==void 0?parseInt(e):this.currentPage,rowsPerPage:t!==void 0?parseInt(t):this.rowsPerPage};this.$emit("update",n)},pageChange(e){if(e===this.currentPage||e>this.totalPages||e<1)return!1;this.$emit("update:currentPage",parseInt(e)),this.paginationChange({currentPage:e})},rowsPerPageChange(e){const t=e.target.value;if(t===this.rowsPerPage)return!1;this.$emit("update:rowsPerPage",parseInt(t)),this.paginationChange({rowsPerPage:t,currentPage:1})}}},jp={class:"vi-pagination"},Up={class:"vi-rows-per-page"},Wp=["value"],Yp=["value"],$p={key:0},qp={class:"vi-pages-navigator"},Gp={class:"page-actions"},Hp={key:0,class:"page-numbers-container"},Kp=["onClick"],Xp={class:"page-actions"};function Qp(e,t,n,a,r,o){const s=i.resolveComponent("font-awesome-icon");return i.openBlock(),i.createElementBlock("div",jp,[i.createElementVNode("div",Up,[i.renderSlot(e.$slots,"rows-per-page",{rowsPerPage:o.rowsOnPage,rowsPerPageUpdate:o.rowsPerPageChange},()=>[t[5]||(t[5]=i.createElementVNode("span",null,"Rows per page ",-1)),i.createElementVNode("select",{value:n.rowsPerPage,onChange:t[0]||(t[0]=(...l)=>o.rowsPerPageChange&&o.rowsPerPageChange(...l))},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.rowsPerPageOptions,l=>(i.openBlock(),i.createElementBlock("option",{key:l.value,value:l.value},i.toDisplayString(l.label),9,Yp))),128))],40,Wp)])]),i.renderSlot(e.$slots,"visible-rows-info",{totalRows:n.totalRows,firstVisibleRow:o.firstVisibleRow,lastVisibleRow:o.lastVisibleRow},()=>[n.totalRows>0?(i.openBlock(),i.createElementBlock("div",$p," Showing "+i.toDisplayString(o.firstVisibleRow)+" - "+i.toDisplayString(o.lastVisibleRow)+" of "+i.toDisplayString(n.totalRows),1)):i.createCommentVNode("",!0)]),i.createElementVNode("div",qp,[i.renderSlot(e.$slots,"navigation-prev",{},()=>[i.createElementVNode("div",Gp,[i.createElementVNode("div",{onClick:t[1]||(t[1]=l=>o.pageChange(1)),class:"vi-page-nav vi-page-first"},[i.createVNode(s,{icon:["fas","angles-left"],size:"lg"})]),i.createElementVNode("div",{onClick:t[2]||(t[2]=l=>o.pageChange(n.currentPage-1)),class:"vi-page-nav vi-page-prev"},[i.createVNode(s,{icon:["fas","angle-left"]})])])]),o.compactPagination?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",Hp,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.visiblePages,l=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vi-page-number",{active:l===n.currentPage}]),key:l,onClick:c=>o.pageChange(l)},i.toDisplayString(l),11,Kp))),128))])),i.renderSlot(e.$slots,"navigation-next",{},()=>[i.createElementVNode("div",Xp,[i.createElementVNode("div",{onClick:t[3]||(t[3]=l=>o.pageChange(n.currentPage+1)),class:"vi-page-nav vi-page-next"},[i.createVNode(s,{icon:["fas","angle-right"]})]),i.createElementVNode("div",{onClick:t[4]||(t[4]=l=>o.pageChange(o.totalPages)),class:"vi-page-nav vi-page-last"},[i.createVNode(s,{icon:["fas","angles-right"],size:"lg"})])])])])])}const Jp=R(Vp,[["render",Qp]]);/*!
1126
1126
  * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
1127
1127
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
1128
1128
  * Copyright 2024 Fonticons, Inc.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vi-grid-builder",
3
3
  "main": "./dist/vi-grid-builder.umd.cjs",
4
- "version": "2.3.1",
4
+ "version": "2.3.2",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",
@@ -29,7 +29,7 @@
29
29
  "@fortawesome/vue-fontawesome": "^3.0.8",
30
30
  "date-fns": "^2.30.0",
31
31
  "vi-common": "^1.0.29",
32
- "vi-pagination": "^1.0.1"
32
+ "vi-pagination": "^1.0.2"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@vitejs/plugin-vue": "^4.2.3",