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