vi-grid-builder 2.1.0 → 2.1.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.
- package/README.md +330 -171
- package/dist/vi-grid-builder.js +211 -200
- package/dist/vi-grid-builder.umd.cjs +3 -3
- package/package.json +1 -1
package/dist/vi-grid-builder.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as y, createElementBlock as w, mergeProps as At, toDisplayString as M, createElementVNode as C, defineComponent as Tt, computed as A, watch as Cn, h as On, resolveComponent as z, withModifiers as Mt, createVNode as q, Fragment as ce, renderList as ue, createCommentVNode as
|
|
1
|
+
import { openBlock as y, createElementBlock as w, mergeProps as At, toDisplayString as M, createElementVNode as C, defineComponent as Tt, computed as A, watch as Cn, h as On, resolveComponent as z, withModifiers as Mt, createVNode as q, Fragment as ce, renderList as ue, createCommentVNode as j, ref as K, onMounted as ya, onUnmounted as ba, createBlock as R, resolveDynamicComponent as Se, renderSlot as L, normalizeClass as Y, withCtx as he, createTextVNode as wa } from "vue";
|
|
2
2
|
const I = (e, t) => {
|
|
3
3
|
const n = e.__vccOpts || e;
|
|
4
4
|
for (const [a, r] of t)
|
|
@@ -36,13 +36,13 @@ function Da(e, t, n, a, r, i) {
|
|
|
36
36
|
return y(), w("div", Ma, M(n.value), 1);
|
|
37
37
|
}
|
|
38
38
|
const Na = /* @__PURE__ */ I(Ta, [["render", Da]]);
|
|
39
|
-
function
|
|
39
|
+
function je(e) {
|
|
40
40
|
"@babel/helpers - typeof";
|
|
41
|
-
return
|
|
41
|
+
return je = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
42
42
|
return typeof t;
|
|
43
43
|
} : function(t) {
|
|
44
44
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
45
|
-
},
|
|
45
|
+
}, je(e);
|
|
46
46
|
}
|
|
47
47
|
function ne(e) {
|
|
48
48
|
if (e === null || e === !0 || e === !1)
|
|
@@ -57,7 +57,7 @@ function N(e, t) {
|
|
|
57
57
|
function H(e) {
|
|
58
58
|
N(1, arguments);
|
|
59
59
|
var t = Object.prototype.toString.call(e);
|
|
60
|
-
return e instanceof Date ||
|
|
60
|
+
return e instanceof Date || je(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));
|
|
61
61
|
}
|
|
62
62
|
function Ea(e, t) {
|
|
63
63
|
N(2, arguments);
|
|
@@ -74,7 +74,7 @@ function Fa(e) {
|
|
|
74
74
|
}
|
|
75
75
|
var An = 6e4, Tn = 36e5;
|
|
76
76
|
function Ra(e) {
|
|
77
|
-
return N(1, arguments), e instanceof Date ||
|
|
77
|
+
return N(1, arguments), e instanceof Date || je(e) === "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
78
78
|
}
|
|
79
79
|
function La(e) {
|
|
80
80
|
if (N(1, arguments), !Ra(e) && typeof e != "number")
|
|
@@ -88,7 +88,7 @@ function Ua(e, t) {
|
|
|
88
88
|
return Ea(e, -n);
|
|
89
89
|
}
|
|
90
90
|
var Wa = 864e5;
|
|
91
|
-
function
|
|
91
|
+
function Va(e) {
|
|
92
92
|
N(1, arguments);
|
|
93
93
|
var t = H(e), n = t.getTime();
|
|
94
94
|
t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
|
|
@@ -109,20 +109,20 @@ function Mn(e) {
|
|
|
109
109
|
var o = ze(i);
|
|
110
110
|
return t.getTime() >= r.getTime() ? n + 1 : t.getTime() >= o.getTime() ? n : n - 1;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function Ya(e) {
|
|
113
113
|
N(1, arguments);
|
|
114
114
|
var t = Mn(e), n = /* @__PURE__ */ new Date(0);
|
|
115
115
|
n.setUTCFullYear(t, 0, 4), n.setUTCHours(0, 0, 0, 0);
|
|
116
116
|
var a = ze(n);
|
|
117
117
|
return a;
|
|
118
118
|
}
|
|
119
|
-
var
|
|
119
|
+
var ja = 6048e5;
|
|
120
120
|
function za(e) {
|
|
121
121
|
N(1, arguments);
|
|
122
|
-
var t = H(e), n = ze(t).getTime() -
|
|
123
|
-
return Math.round(n /
|
|
122
|
+
var t = H(e), n = ze(t).getTime() - Ya(t).getTime();
|
|
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);
|
|
@@ -139,24 +139,24 @@ function Dn(e, t) {
|
|
|
139
139
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
140
140
|
var b = /* @__PURE__ */ new Date(0);
|
|
141
141
|
b.setUTCFullYear(d + 1, 0, m), b.setUTCHours(0, 0, 0, 0);
|
|
142
|
-
var x =
|
|
142
|
+
var x = Be(b, t), _ = /* @__PURE__ */ new Date(0);
|
|
143
143
|
_.setUTCFullYear(d, 0, m), _.setUTCHours(0, 0, 0, 0);
|
|
144
|
-
var g =
|
|
144
|
+
var g = Be(_, t);
|
|
145
145
|
return f.getTime() >= x.getTime() ? d + 1 : f.getTime() >= g.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
150
|
var f = Ke(), d = ne((n = (a = (r = (i = t == null ? void 0 : t.firstWeekContainsDate) !== null && i !== void 0 ? i : t == null || (o = t.locale) === null || o === void 0 || (s = o.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && r !== void 0 ? r : f.firstWeekContainsDate) !== null && a !== void 0 ? a : (l = f.locale) === null || l === void 0 || (c = l.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && n !== void 0 ? n : 1), h = Dn(e, t), m = /* @__PURE__ */ new Date(0);
|
|
151
151
|
m.setUTCFullYear(h, 0, d), m.setUTCHours(0, 0, 0, 0);
|
|
152
|
-
var b =
|
|
152
|
+
var b = Be(m, 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; )
|
|
@@ -428,7 +428,7 @@ var ge = {
|
|
|
428
428
|
},
|
|
429
429
|
// Day of year
|
|
430
430
|
D: function(t, n, a) {
|
|
431
|
-
var r =
|
|
431
|
+
var r = Va(t);
|
|
432
432
|
return n === "Do" ? a.ordinalNumber(r, {
|
|
433
433
|
unit: "dayOfYear"
|
|
434
434
|
}) : k(r, n.length);
|
|
@@ -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);
|
|
@@ -1249,7 +1249,7 @@ var Cr = /^(\d+)(th|st|nd|rd)?/i, Or = /\d+/i, Ar = {
|
|
|
1249
1249
|
})
|
|
1250
1250
|
};
|
|
1251
1251
|
const Wr = Ur;
|
|
1252
|
-
var
|
|
1252
|
+
var Vr = {
|
|
1253
1253
|
code: "en-US",
|
|
1254
1254
|
formatDistance: ir,
|
|
1255
1255
|
formatLong: ur,
|
|
@@ -1261,15 +1261,15 @@ var Yr = {
|
|
|
1261
1261
|
firstWeekContainsDate: 1
|
|
1262
1262
|
}
|
|
1263
1263
|
};
|
|
1264
|
-
const
|
|
1265
|
-
var
|
|
1264
|
+
const Yr = Vr;
|
|
1265
|
+
var jr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, zr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Br = /^'([^]*?)'?$/, Gr = /''/g, $r = /[a-zA-Z]/;
|
|
1266
1266
|
function Hr(e, t, n) {
|
|
1267
1267
|
var a, r, i, o, s, l, c, f, d, h, m, b, x, _, g, 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((m = (b = (x = (_ = n == null ? void 0 : n.weekStartsOn) !== null && _ !== void 0 ? _ : n == null || (g = n.locale) === null || g === void 0 || (p = g.options) === null || p === void 0 ? void 0 : p.weekStartsOn) !== null && x !== void 0 ? x :
|
|
1272
|
+
var _e = ne((m = (b = (x = (_ = n == null ? void 0 : n.weekStartsOn) !== null && _ !== void 0 ? _ : n == null || (g = n.locale) === null || g === void 0 || (p = g.options) === null || p === void 0 ? void 0 : p.weekStartsOn) !== null && x !== void 0 ? x : V.weekStartsOn) !== null && b !== void 0 ? b : (P = V.locale) === null || P === void 0 || (O = P.options) === null || O === void 0 ? void 0 : O.weekStartsOn) !== null && m !== void 0 ? m : 0);
|
|
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(
|
|
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;
|
|
@@ -1433,8 +1433,7 @@ const fi = {
|
|
|
1433
1433
|
type: String,
|
|
1434
1434
|
validator: function(e) {
|
|
1435
1435
|
return ["date", "dateTime", "time"].includes(e);
|
|
1436
|
-
}
|
|
1437
|
-
default: "dateTime"
|
|
1436
|
+
}
|
|
1438
1437
|
},
|
|
1439
1438
|
format: {
|
|
1440
1439
|
type: String
|
|
@@ -1442,8 +1441,11 @@ const fi = {
|
|
|
1442
1441
|
},
|
|
1443
1442
|
computed: {
|
|
1444
1443
|
dateFormatted() {
|
|
1445
|
-
const e = this.format ?? this.ViDateSettings.format[this.
|
|
1444
|
+
const e = this.format ?? this.ViDateSettings.format[this.dateMode];
|
|
1446
1445
|
return Hr(Kr(this.value), e);
|
|
1446
|
+
},
|
|
1447
|
+
dateMode() {
|
|
1448
|
+
return this.mode ?? this.ViDateSettings.mode;
|
|
1447
1449
|
}
|
|
1448
1450
|
}
|
|
1449
1451
|
}, di = { class: "vi-grid-date" };
|
|
@@ -1569,7 +1571,7 @@ var yi = /fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/, bi
|
|
|
1569
1571
|
SWAP_OPACITY: "swap-opacity",
|
|
1570
1572
|
PRIMARY: "primary",
|
|
1571
1573
|
SECONDARY: "secondary"
|
|
1572
|
-
}, Wn = ["fa-classic", "fa-duotone", "fa-sharp", "fa-sharp-duotone"], D = "classic", Xe = "duotone", _i = "sharp", xi = "sharp-duotone",
|
|
1574
|
+
}, Wn = ["fa-classic", "fa-duotone", "fa-sharp", "fa-sharp-duotone"], D = "classic", Xe = "duotone", _i = "sharp", xi = "sharp-duotone", Vn = [D, Xe, _i, xi], Pi = {
|
|
1573
1575
|
classic: {
|
|
1574
1576
|
900: "fas",
|
|
1575
1577
|
400: "far",
|
|
@@ -1783,7 +1785,7 @@ var yi = /fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/, bi
|
|
|
1783
1785
|
fasdl: "fa-light",
|
|
1784
1786
|
fasdt: "fa-thin"
|
|
1785
1787
|
}
|
|
1786
|
-
}, Li = ["fa-solid", "fa-regular", "fa-light", "fa-thin", "fa-duotone", "fa-brands"], ft = ["fa", "fas", "far", "fal", "fat", "fad", "fadr", "fadl", "fadt", "fab", "fass", "fasr", "fasl", "fast", "fasds", "fasdr", "fasdl", "fasdt", ...Ni, ...Li], Ui = ["solid", "regular", "light", "thin", "duotone", "brands"],
|
|
1788
|
+
}, Li = ["fa-solid", "fa-regular", "fa-light", "fa-thin", "fa-duotone", "fa-brands"], ft = ["fa", "fas", "far", "fal", "fat", "fad", "fadr", "fadl", "fadt", "fab", "fass", "fasr", "fasl", "fast", "fasds", "fasdr", "fasdl", "fasdt", ...Ni, ...Li], Ui = ["solid", "regular", "light", "thin", "duotone", "brands"], Yn = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], Wi = Yn.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]), Vi = [...Object.keys(Ri), ...Ui, "2xs", "xs", "sm", "lg", "xl", "2xl", "beat", "border", "fade", "beat-fade", "bounce", "flip-both", "flip-horizontal", "flip-vertical", "flip", "fw", "inverse", "layers-counter", "layers-text", "layers", "li", "pull-left", "pull-right", "pulse", "rotate-180", "rotate-270", "rotate-90", "rotate-by", "shake", "spin-pulse", "spin-reverse", "spin", "stack-1x", "stack-2x", "stack", "ul", We.GROUP, We.SWAP_OPACITY, We.PRIMARY, We.SECONDARY].concat(Yn.map((e) => "".concat(e, "x"))).concat(Wi.map((e) => "w-".concat(e))), Yi = {
|
|
1787
1789
|
"Font Awesome 5 Free": {
|
|
1788
1790
|
900: "fas",
|
|
1789
1791
|
400: "far"
|
|
@@ -1802,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
|
|
|
1802
1804
|
900: "fad"
|
|
1803
1805
|
}
|
|
1804
1806
|
};
|
|
1805
|
-
const X = "___FONT_AWESOME___", dt = 16,
|
|
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 = (() => {
|
|
1806
1808
|
try {
|
|
1807
1809
|
return process.env.NODE_ENV === "production";
|
|
1808
1810
|
} catch {
|
|
@@ -1816,11 +1818,11 @@ function Ne(e) {
|
|
|
1816
1818
|
}
|
|
1817
1819
|
});
|
|
1818
1820
|
}
|
|
1819
|
-
const
|
|
1820
|
-
|
|
1821
|
+
const Gn = u({}, Un);
|
|
1822
|
+
Gn[D] = u(u(u(u({}, {
|
|
1821
1823
|
"fa-duotone": "duotone"
|
|
1822
1824
|
}), Un[D]), Jt.kit), Jt["kit-duotone"]);
|
|
1823
|
-
const
|
|
1825
|
+
const Gi = Ne(Gn), gt = u({}, Ci);
|
|
1824
1826
|
gt[D] = u(u(u(u({}, {
|
|
1825
1827
|
duotone: "fad"
|
|
1826
1828
|
}), gt[D]), Zt.kit), Zt["kit-duotone"]);
|
|
@@ -1831,7 +1833,7 @@ vt[D] = u(u({}, vt[D]), Ti.kit);
|
|
|
1831
1833
|
Ne(vt);
|
|
1832
1834
|
const $i = yi, $n = "fa-layers-text", Hi = bi, qi = u({}, Pi);
|
|
1833
1835
|
Ne(qi);
|
|
1834
|
-
const Ki = ["class", "data-prefix", "data-icon", "data-fa-transform", "data-fa-mask"], it = wi, Xi = [...Ai, ...
|
|
1836
|
+
const Ki = ["class", "data-prefix", "data-icon", "data-fa-transform", "data-fa-mask"], it = wi, Xi = [...Ai, ...Vi], Oe = ae.FontAwesomeConfig || {};
|
|
1835
1837
|
function Qi(e) {
|
|
1836
1838
|
var t = S.querySelector("script[" + e + "]");
|
|
1837
1839
|
if (t)
|
|
@@ -1848,7 +1850,7 @@ S && typeof S.querySelector == "function" && [["data-family-prefix", "familyPref
|
|
|
1848
1850
|
const Hn = {
|
|
1849
1851
|
styleDefault: "solid",
|
|
1850
1852
|
familyDefault: D,
|
|
1851
|
-
cssPrefix:
|
|
1853
|
+
cssPrefix: jn,
|
|
1852
1854
|
replacementClass: zn,
|
|
1853
1855
|
autoReplaceSvg: !0,
|
|
1854
1856
|
autoAddCss: !0,
|
|
@@ -1891,7 +1893,7 @@ function Zi(e) {
|
|
|
1891
1893
|
Ae.splice(Ae.indexOf(e), 1);
|
|
1892
1894
|
};
|
|
1893
1895
|
}
|
|
1894
|
-
const te = dt,
|
|
1896
|
+
const te = dt, G = {
|
|
1895
1897
|
size: 16,
|
|
1896
1898
|
x: 0,
|
|
1897
1899
|
y: 0,
|
|
@@ -1938,7 +1940,7 @@ function Qe(e) {
|
|
|
1938
1940
|
return Object.keys(e || {}).reduce((t, n) => t + "".concat(n, ": ").concat(e[n].trim(), ";"), "");
|
|
1939
1941
|
}
|
|
1940
1942
|
function Rt(e) {
|
|
1941
|
-
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;
|
|
1942
1944
|
}
|
|
1943
1945
|
function ao(e) {
|
|
1944
1946
|
let {
|
|
@@ -2523,7 +2525,7 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
|
|
2523
2525
|
fill: black;
|
|
2524
2526
|
}`;
|
|
2525
2527
|
function Kn() {
|
|
2526
|
-
const e =
|
|
2528
|
+
const e = jn, t = zn, n = v.cssPrefix, a = v.replacementClass;
|
|
2527
2529
|
let r = io;
|
|
2528
2530
|
if (n !== e || a !== t) {
|
|
2529
2531
|
const i = new RegExp("\\.".concat(e, "\\-"), "g"), o = new RegExp("\\--".concat(e, "\\-"), "g"), s = new RegExp("\\.".concat(t), "g");
|
|
@@ -2562,12 +2564,12 @@ Q[X].hooks || (Q[X].hooks = {});
|
|
|
2562
2564
|
Q[X].shims || (Q[X].shims = []);
|
|
2563
2565
|
var $ = Q[X];
|
|
2564
2566
|
const Xn = [], Qn = function() {
|
|
2565
|
-
S.removeEventListener("DOMContentLoaded", Qn),
|
|
2567
|
+
S.removeEventListener("DOMContentLoaded", Qn), Ge = 1, Xn.map((e) => e());
|
|
2566
2568
|
};
|
|
2567
|
-
let
|
|
2568
|
-
J && (
|
|
2569
|
+
let Ge = !1;
|
|
2570
|
+
J && (Ge = (S.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(S.readyState), Ge || S.addEventListener("DOMContentLoaded", Qn));
|
|
2569
2571
|
function so(e) {
|
|
2570
|
-
J && (
|
|
2572
|
+
J && (Ge ? setTimeout(e, 0) : Xn.push(e));
|
|
2571
2573
|
}
|
|
2572
2574
|
function Ee(e) {
|
|
2573
2575
|
const {
|
|
@@ -2716,7 +2718,7 @@ const oa = () => ({
|
|
|
2716
2718
|
function yo(e) {
|
|
2717
2719
|
let t = D;
|
|
2718
2720
|
const n = Jn.reduce((a, r) => (a[r] = "".concat(v.cssPrefix, "-").concat(r), a), {});
|
|
2719
|
-
return
|
|
2721
|
+
return Vn.forEach((a) => {
|
|
2720
2722
|
(e.includes(n[a]) || e.some((r) => mo[a].includes(r))) && (t = a);
|
|
2721
2723
|
}), t;
|
|
2722
2724
|
}
|
|
@@ -2724,7 +2726,7 @@ function Je(e) {
|
|
|
2724
2726
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2725
2727
|
const {
|
|
2726
2728
|
family: n = D
|
|
2727
|
-
} = t, a =
|
|
2729
|
+
} = t, a = Gi[n][e];
|
|
2728
2730
|
if (n === Xe && !e)
|
|
2729
2731
|
return "fad";
|
|
2730
2732
|
const r = tn[n][e] || tn[n][a], i = e in $.styles ? e : null;
|
|
@@ -2779,7 +2781,7 @@ function wo(e, t, n) {
|
|
|
2779
2781
|
iconName: r
|
|
2780
2782
|
};
|
|
2781
2783
|
}
|
|
2782
|
-
const _o =
|
|
2784
|
+
const _o = Vn.filter((e) => e !== D || e !== Xe), xo = Object.keys(ut).filter((e) => e !== D).map((e) => Object.keys(ut[e])).flat();
|
|
2783
2785
|
function Po(e) {
|
|
2784
2786
|
const {
|
|
2785
2787
|
values: t,
|
|
@@ -2929,7 +2931,7 @@ const sa = new ko(), Oo = () => {
|
|
|
2929
2931
|
};
|
|
2930
2932
|
}
|
|
2931
2933
|
}
|
|
2932
|
-
},
|
|
2934
|
+
}, W = {
|
|
2933
2935
|
noAuto: Oo,
|
|
2934
2936
|
config: v,
|
|
2935
2937
|
dom: Ao,
|
|
@@ -2942,7 +2944,7 @@ const sa = new ko(), Oo = () => {
|
|
|
2942
2944
|
const {
|
|
2943
2945
|
autoReplaceSvgRoot: t = S
|
|
2944
2946
|
} = e;
|
|
2945
|
-
(Object.keys($.styles).length > 0 || v.autoFetchSvg) && J && v.autoReplaceSvg &&
|
|
2947
|
+
(Object.keys($.styles).length > 0 || v.autoFetchSvg) && J && v.autoReplaceSvg && W.dom.i2svg({
|
|
2946
2948
|
node: t
|
|
2947
2949
|
});
|
|
2948
2950
|
};
|
|
@@ -3179,7 +3181,7 @@ const Io = {
|
|
|
3179
3181
|
height: 512
|
|
3180
3182
|
};
|
|
3181
3183
|
function Fo(e, t) {
|
|
3182
|
-
!
|
|
3184
|
+
!Bn && !v.showMissingIcons && e && console.error('Icon with name "'.concat(e, '" and prefix "').concat(t, '" is missing.'));
|
|
3183
3185
|
}
|
|
3184
3186
|
function xt(e, t) {
|
|
3185
3187
|
let n = t;
|
|
@@ -3204,11 +3206,11 @@ const cn = () => {
|
|
|
3204
3206
|
}, Ce = 'FA "6.7.1"', Ro = (e) => (Pt.mark("".concat(Ce, " ").concat(e, " begins")), () => la(e)), la = (e) => {
|
|
3205
3207
|
Pt.mark("".concat(Ce, " ").concat(e, " ends")), Pt.measure("".concat(Ce, " ").concat(e), "".concat(Ce, " ").concat(e, " begins"), "".concat(Ce, " ").concat(e, " ends"));
|
|
3206
3208
|
};
|
|
3207
|
-
var
|
|
3209
|
+
var Vt = {
|
|
3208
3210
|
begin: Ro,
|
|
3209
3211
|
end: la
|
|
3210
3212
|
};
|
|
3211
|
-
const
|
|
3213
|
+
const Ve = () => {
|
|
3212
3214
|
};
|
|
3213
3215
|
function un(e) {
|
|
3214
3216
|
return typeof (e.getAttribute ? e.getAttribute(fe) : null) == "string";
|
|
@@ -3221,18 +3223,18 @@ function Uo(e) {
|
|
|
3221
3223
|
return e && e.classList && e.classList.contains && e.classList.contains(v.replacementClass);
|
|
3222
3224
|
}
|
|
3223
3225
|
function Wo() {
|
|
3224
|
-
return v.autoReplaceSvg === !0 ?
|
|
3226
|
+
return v.autoReplaceSvg === !0 ? Ye.replace : Ye[v.autoReplaceSvg] || Ye.replace;
|
|
3225
3227
|
}
|
|
3226
|
-
function
|
|
3228
|
+
function Vo(e) {
|
|
3227
3229
|
return S.createElementNS("http://www.w3.org/2000/svg", e);
|
|
3228
3230
|
}
|
|
3229
|
-
function
|
|
3231
|
+
function Yo(e) {
|
|
3230
3232
|
return S.createElement(e);
|
|
3231
3233
|
}
|
|
3232
3234
|
function ca(e) {
|
|
3233
3235
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3234
3236
|
const {
|
|
3235
|
-
ceFn: n = e.tag === "svg" ?
|
|
3237
|
+
ceFn: n = e.tag === "svg" ? Vo : Yo
|
|
3236
3238
|
} = t;
|
|
3237
3239
|
if (typeof e == "string")
|
|
3238
3240
|
return S.createTextNode(e);
|
|
@@ -3245,18 +3247,18 @@ function ca(e) {
|
|
|
3245
3247
|
}));
|
|
3246
3248
|
}), a;
|
|
3247
3249
|
}
|
|
3248
|
-
function
|
|
3250
|
+
function jo(e) {
|
|
3249
3251
|
let t = " ".concat(e.outerHTML, " ");
|
|
3250
3252
|
return t = "".concat(t, "Font Awesome fontawesome.com "), t;
|
|
3251
3253
|
}
|
|
3252
|
-
const
|
|
3254
|
+
const Ye = {
|
|
3253
3255
|
replace: function(e) {
|
|
3254
3256
|
const t = e[0];
|
|
3255
3257
|
if (t.parentNode)
|
|
3256
3258
|
if (e[1].forEach((n) => {
|
|
3257
3259
|
t.parentNode.insertBefore(ca(n), t);
|
|
3258
3260
|
}), t.getAttribute(fe) === null && v.keepOriginalSource) {
|
|
3259
|
-
let n = S.createComment(
|
|
3261
|
+
let n = S.createComment(jo(t));
|
|
3260
3262
|
t.parentNode.replaceChild(n, t);
|
|
3261
3263
|
} else
|
|
3262
3264
|
t.remove();
|
|
@@ -3264,7 +3266,7 @@ const je = {
|
|
|
3264
3266
|
nest: function(e) {
|
|
3265
3267
|
const t = e[0], n = e[1];
|
|
3266
3268
|
if (~Ft(t).indexOf(v.replacementClass))
|
|
3267
|
-
return
|
|
3269
|
+
return Ye.replace(e);
|
|
3268
3270
|
const a = new RegExp("".concat(v.cssPrefix, "-.*"));
|
|
3269
3271
|
if (delete n[0].attributes.id, n[0].attributes.class) {
|
|
3270
3272
|
const i = n[0].attributes.class.split(" ").reduce((o, s) => (s === v.replacementClass || s.match(a) ? o.toSvg.push(s) : o.toNode.push(s), o), {
|
|
@@ -3282,36 +3284,36 @@ function fn(e) {
|
|
|
3282
3284
|
e();
|
|
3283
3285
|
}
|
|
3284
3286
|
function ua(e, t) {
|
|
3285
|
-
const n = typeof t == "function" ? t :
|
|
3287
|
+
const n = typeof t == "function" ? t : Ve;
|
|
3286
3288
|
if (e.length === 0)
|
|
3287
3289
|
n();
|
|
3288
3290
|
else {
|
|
3289
3291
|
let a = fn;
|
|
3290
3292
|
v.mutateApproach === zi && (a = ae.requestAnimationFrame || fn), a(() => {
|
|
3291
|
-
const r = Wo(), i =
|
|
3293
|
+
const r = Wo(), i = Vt.begin("mutate");
|
|
3292
3294
|
e.map(r), i(), n();
|
|
3293
3295
|
});
|
|
3294
3296
|
}
|
|
3295
3297
|
}
|
|
3296
|
-
let
|
|
3298
|
+
let Yt = !1;
|
|
3297
3299
|
function fa() {
|
|
3298
|
-
|
|
3300
|
+
Yt = !0;
|
|
3299
3301
|
}
|
|
3300
3302
|
function kt() {
|
|
3301
|
-
|
|
3303
|
+
Yt = !1;
|
|
3302
3304
|
}
|
|
3303
3305
|
let $e = null;
|
|
3304
3306
|
function dn(e) {
|
|
3305
3307
|
if (!Qt || !v.observeMutations)
|
|
3306
3308
|
return;
|
|
3307
3309
|
const {
|
|
3308
|
-
treeCallback: t =
|
|
3309
|
-
nodeCallback: n =
|
|
3310
|
-
pseudoElementsCallback: a =
|
|
3310
|
+
treeCallback: t = Ve,
|
|
3311
|
+
nodeCallback: n = Ve,
|
|
3312
|
+
pseudoElementsCallback: a = Ve,
|
|
3311
3313
|
observeMutationsRoot: r = S
|
|
3312
3314
|
} = e;
|
|
3313
3315
|
$e = new Qt((i) => {
|
|
3314
|
-
if (
|
|
3316
|
+
if (Yt)
|
|
3315
3317
|
return;
|
|
3316
3318
|
const o = re();
|
|
3317
3319
|
be(i).forEach((s) => {
|
|
@@ -3335,7 +3337,7 @@ function dn(e) {
|
|
|
3335
3337
|
function zo() {
|
|
3336
3338
|
$e && $e.disconnect();
|
|
3337
3339
|
}
|
|
3338
|
-
function
|
|
3340
|
+
function Bo(e) {
|
|
3339
3341
|
const t = e.getAttribute("style");
|
|
3340
3342
|
let n = [];
|
|
3341
3343
|
return t && (n = t.split(";").reduce((a, r) => {
|
|
@@ -3343,7 +3345,7 @@ function Go(e) {
|
|
|
3343
3345
|
return o && s.length > 0 && (a[o] = s.join(":").trim()), a;
|
|
3344
3346
|
}, {})), n;
|
|
3345
3347
|
}
|
|
3346
|
-
function
|
|
3348
|
+
function Go(e) {
|
|
3347
3349
|
const t = e.getAttribute("data-prefix"), n = e.getAttribute("data-icon"), a = e.innerText !== void 0 ? e.innerText.trim() : "";
|
|
3348
3350
|
let r = Ze(Ft(e));
|
|
3349
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;
|
|
@@ -3358,7 +3360,7 @@ function Ho() {
|
|
|
3358
3360
|
title: null,
|
|
3359
3361
|
titleId: null,
|
|
3360
3362
|
prefix: null,
|
|
3361
|
-
transform:
|
|
3363
|
+
transform: G,
|
|
3362
3364
|
symbol: !1,
|
|
3363
3365
|
mask: {
|
|
3364
3366
|
iconName: null,
|
|
@@ -3381,14 +3383,14 @@ function mn(e) {
|
|
|
3381
3383
|
iconName: n,
|
|
3382
3384
|
prefix: a,
|
|
3383
3385
|
rest: r
|
|
3384
|
-
} =
|
|
3385
|
-
let s = t.styleParser ?
|
|
3386
|
+
} = Go(e), i = $o(e), o = bt("parseNodeAttributes", {}, e);
|
|
3387
|
+
let s = t.styleParser ? Bo(e) : [];
|
|
3386
3388
|
return u({
|
|
3387
3389
|
iconName: n,
|
|
3388
3390
|
title: e.getAttribute("title"),
|
|
3389
3391
|
titleId: e.getAttribute("data-fa-title-id"),
|
|
3390
3392
|
prefix: a,
|
|
3391
|
-
transform:
|
|
3393
|
+
transform: G,
|
|
3392
3394
|
mask: {
|
|
3393
3395
|
iconName: null,
|
|
3394
3396
|
prefix: null,
|
|
@@ -3433,12 +3435,12 @@ function gn(e) {
|
|
|
3433
3435
|
a("pending"), r("complete");
|
|
3434
3436
|
else
|
|
3435
3437
|
return Promise.resolve();
|
|
3436
|
-
const l =
|
|
3438
|
+
const l = Vt.begin("onTree"), c = s.reduce((f, d) => {
|
|
3437
3439
|
try {
|
|
3438
3440
|
const h = da(d);
|
|
3439
3441
|
h && f.push(h);
|
|
3440
3442
|
} catch (h) {
|
|
3441
|
-
|
|
3443
|
+
Bn || h.name === "MissingIcon" && console.error(h);
|
|
3442
3444
|
}
|
|
3443
3445
|
return f;
|
|
3444
3446
|
}, []);
|
|
@@ -3473,7 +3475,7 @@ function Qo(e) {
|
|
|
3473
3475
|
const Jo = function(e) {
|
|
3474
3476
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3475
3477
|
const {
|
|
3476
|
-
transform: n =
|
|
3478
|
+
transform: n = G,
|
|
3477
3479
|
symbol: a = !1,
|
|
3478
3480
|
mask: r = null,
|
|
3479
3481
|
maskId: i = null,
|
|
@@ -3507,7 +3509,7 @@ const Jo = function(e) {
|
|
|
3507
3509
|
},
|
|
3508
3510
|
prefix: d,
|
|
3509
3511
|
iconName: h,
|
|
3510
|
-
transform: u(u({},
|
|
3512
|
+
transform: u(u({}, G), n),
|
|
3511
3513
|
symbol: a,
|
|
3512
3514
|
title: o,
|
|
3513
3515
|
maskId: i,
|
|
@@ -3665,7 +3667,7 @@ var Zo = {
|
|
|
3665
3667
|
text(e) {
|
|
3666
3668
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3667
3669
|
const {
|
|
3668
|
-
transform: n =
|
|
3670
|
+
transform: n = G,
|
|
3669
3671
|
title: a = null,
|
|
3670
3672
|
classes: r = [],
|
|
3671
3673
|
attributes: i = {},
|
|
@@ -3679,7 +3681,7 @@ var Zo = {
|
|
|
3679
3681
|
params: t
|
|
3680
3682
|
}), ln({
|
|
3681
3683
|
content: e,
|
|
3682
|
-
transform: u(u({},
|
|
3684
|
+
transform: u(u({}, G), n),
|
|
3683
3685
|
title: a,
|
|
3684
3686
|
extra: {
|
|
3685
3687
|
attributes: i,
|
|
@@ -3719,7 +3721,7 @@ const as = new RegExp('"', "ug"), hn = [1105920, 1112319], vn = u(u(u(u({}, {
|
|
|
3719
3721
|
normal: "fas",
|
|
3720
3722
|
400: "fas"
|
|
3721
3723
|
}
|
|
3722
|
-
}), ki),
|
|
3724
|
+
}), ki), Yi), Ii), St = Object.keys(vn).reduce((e, t) => (e[t.toLowerCase()] = vn[t], e), {}), rs = Object.keys(St).reduce((e, t) => {
|
|
3723
3725
|
const n = St[t];
|
|
3724
3726
|
return e[t] = n[900] || [...Object.entries(n)][0][1], e;
|
|
3725
3727
|
}, {});
|
|
@@ -3735,7 +3737,7 @@ function os(e, t) {
|
|
|
3735
3737
|
return (St[n] || {})[r] || rs[n];
|
|
3736
3738
|
}
|
|
3737
3739
|
function pn(e, t) {
|
|
3738
|
-
const n = "".concat(
|
|
3740
|
+
const n = "".concat(ji).concat(t.replace(":", "-"));
|
|
3739
3741
|
return new Promise((a, r) => {
|
|
3740
3742
|
if (e.getAttribute(n) !== null)
|
|
3741
3743
|
return a();
|
|
@@ -3760,7 +3762,7 @@ function pn(e, t) {
|
|
|
3760
3762
|
extra: O
|
|
3761
3763
|
} = P;
|
|
3762
3764
|
O.attributes[mt] = t, xt(g, m).then((T) => {
|
|
3763
|
-
const
|
|
3765
|
+
const V = Wt(u(u({}, P), {}, {
|
|
3764
3766
|
icons: {
|
|
3765
3767
|
main: T,
|
|
3766
3768
|
mask: oa()
|
|
@@ -3770,7 +3772,7 @@ function pn(e, t) {
|
|
|
3770
3772
|
extra: O,
|
|
3771
3773
|
watchable: !0
|
|
3772
3774
|
})), E = S.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
3773
|
-
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(`
|
|
3774
3776
|
`), e.removeAttribute(n), a();
|
|
3775
3777
|
}).catch(r);
|
|
3776
3778
|
} else
|
|
@@ -3783,12 +3785,12 @@ function ss(e) {
|
|
|
3783
3785
|
return Promise.all([pn(e, "::before"), pn(e, "::after")]);
|
|
3784
3786
|
}
|
|
3785
3787
|
function ls(e) {
|
|
3786
|
-
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");
|
|
3787
3789
|
}
|
|
3788
3790
|
function yn(e) {
|
|
3789
3791
|
if (J)
|
|
3790
3792
|
return new Promise((t, n) => {
|
|
3791
|
-
const a = be(e.querySelectorAll("*")).filter(ls).map(ss), r =
|
|
3793
|
+
const a = be(e.querySelectorAll("*")).filter(ls).map(ss), r = Vt.begin("searchPseudoElements");
|
|
3792
3794
|
fa(), Promise.all(a).then(() => {
|
|
3793
3795
|
r(), kt(), t();
|
|
3794
3796
|
}).catch(() => {
|
|
@@ -4112,18 +4114,18 @@ var ms = {
|
|
|
4112
4114
|
}
|
|
4113
4115
|
}, vs = [oo, Zo, es, ts, ns, cs, us, fs, ms, gs, hs];
|
|
4114
4116
|
Co(vs, {
|
|
4115
|
-
mixoutsTo:
|
|
4117
|
+
mixoutsTo: W
|
|
4116
4118
|
});
|
|
4117
|
-
|
|
4118
|
-
const ma =
|
|
4119
|
-
|
|
4120
|
-
const He =
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
const ps =
|
|
4124
|
-
|
|
4125
|
-
const ys =
|
|
4126
|
-
|
|
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;
|
|
4127
4129
|
function xn(e, t) {
|
|
4128
4130
|
var n = Object.keys(e);
|
|
4129
4131
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -4134,7 +4136,7 @@ function xn(e, t) {
|
|
|
4134
4136
|
}
|
|
4135
4137
|
return n;
|
|
4136
4138
|
}
|
|
4137
|
-
function
|
|
4139
|
+
function B(e) {
|
|
4138
4140
|
for (var t = 1; t < arguments.length; t++) {
|
|
4139
4141
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
4140
4142
|
t % 2 ? xn(Object(n), !0).forEach(function(a) {
|
|
@@ -4238,9 +4240,9 @@ var Os = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
4238
4240
|
var n = function(g, p, P) {
|
|
4239
4241
|
if (!c(p) || d(p) || h(p) || m(p) || l(p))
|
|
4240
4242
|
return p;
|
|
4241
|
-
var O, T = 0,
|
|
4243
|
+
var O, T = 0, V = 0;
|
|
4242
4244
|
if (f(p))
|
|
4243
|
-
for (O = [],
|
|
4245
|
+
for (O = [], V = p.length; T < V; T++)
|
|
4244
4246
|
O.push(n(g, p[T], P));
|
|
4245
4247
|
else {
|
|
4246
4248
|
O = {};
|
|
@@ -4317,12 +4319,12 @@ function Ds(e) {
|
|
|
4317
4319
|
return t[n] = !0, t;
|
|
4318
4320
|
}, {});
|
|
4319
4321
|
}
|
|
4320
|
-
function
|
|
4322
|
+
function jt(e) {
|
|
4321
4323
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
4322
4324
|
if (typeof e == "string")
|
|
4323
4325
|
return e;
|
|
4324
4326
|
var a = (e.children || []).map(function(l) {
|
|
4325
|
-
return
|
|
4327
|
+
return jt(l);
|
|
4326
4328
|
}), r = Object.keys(e.attributes || {}).reduce(function(l, c) {
|
|
4327
4329
|
var f = e.attributes[c];
|
|
4328
4330
|
switch (c) {
|
|
@@ -4343,9 +4345,9 @@ function Vt(e) {
|
|
|
4343
4345
|
});
|
|
4344
4346
|
n.class;
|
|
4345
4347
|
var i = n.style, o = i === void 0 ? {} : i, s = xs(n, Ts);
|
|
4346
|
-
return On(e.tag,
|
|
4348
|
+
return On(e.tag, B(B(B({}, t), {}, {
|
|
4347
4349
|
class: r.class,
|
|
4348
|
-
style:
|
|
4350
|
+
style: B(B({}, r.style), o)
|
|
4349
4351
|
}, r.attrs), s), a);
|
|
4350
4352
|
}
|
|
4351
4353
|
var va = !1;
|
|
@@ -4530,7 +4532,7 @@ var we = Tt({
|
|
|
4530
4532
|
}), s = A(function() {
|
|
4531
4533
|
return Te("mask", Pn(t.mask));
|
|
4532
4534
|
}), l = A(function() {
|
|
4533
|
-
return ps(r.value,
|
|
4535
|
+
return ps(r.value, B(B(B(B({}, i.value), o.value), s.value), {}, {
|
|
4534
4536
|
symbol: t.symbol,
|
|
4535
4537
|
title: t.title,
|
|
4536
4538
|
titleId: t.titleId,
|
|
@@ -4544,7 +4546,7 @@ var we = Tt({
|
|
|
4544
4546
|
immediate: !0
|
|
4545
4547
|
});
|
|
4546
4548
|
var c = A(function() {
|
|
4547
|
-
return l.value ?
|
|
4549
|
+
return l.value ? jt(l.value.abstract[0], {}, a) : null;
|
|
4548
4550
|
});
|
|
4549
4551
|
return function() {
|
|
4550
4552
|
return c.value;
|
|
@@ -4599,10 +4601,10 @@ Tt({
|
|
|
4599
4601
|
}), o = A(function() {
|
|
4600
4602
|
return Te("transform", typeof t.transform == "string" ? He.transform(t.transform) : t.transform);
|
|
4601
4603
|
}), s = A(function() {
|
|
4602
|
-
var c = ys(t.value.toString(),
|
|
4604
|
+
var c = ys(t.value.toString(), B(B({}, o.value), i.value)), f = c.abstract;
|
|
4603
4605
|
return t.counter && (f[0].attributes.class = f[0].attributes.class.replace("fa-layers-text", "")), f[0];
|
|
4604
4606
|
}), l = A(function() {
|
|
4605
|
-
return
|
|
4607
|
+
return jt(s.value, {}, a);
|
|
4606
4608
|
});
|
|
4607
4609
|
return function() {
|
|
4608
4610
|
return l.value;
|
|
@@ -4658,7 +4660,7 @@ function Ls(e, t, n, a, r, i) {
|
|
|
4658
4660
|
onClick: (l) => e.$emit("action-clicked", s.action),
|
|
4659
4661
|
class: "actions-menu-item"
|
|
4660
4662
|
}, M(s.name), 9, Rs))), 128))
|
|
4661
|
-
])) :
|
|
4663
|
+
])) : j("", !0)
|
|
4662
4664
|
], 512);
|
|
4663
4665
|
}
|
|
4664
4666
|
const Us = /* @__PURE__ */ I(Is, [["render", Ls]]);
|
|
@@ -4669,18 +4671,18 @@ const Ws = {
|
|
|
4669
4671
|
type: Array
|
|
4670
4672
|
}
|
|
4671
4673
|
}
|
|
4672
|
-
},
|
|
4673
|
-
function
|
|
4674
|
-
return y(), w("div",
|
|
4674
|
+
}, Vs = { class: "vi-grid-builder-actions" }, Ys = ["onClick"];
|
|
4675
|
+
function js(e, t, n, a, r, i) {
|
|
4676
|
+
return y(), w("div", Vs, [
|
|
4675
4677
|
(y(!0), w(ce, null, ue(n.actions, (o, s) => (y(), w("div", { key: s }, [
|
|
4676
4678
|
C("button", {
|
|
4677
4679
|
onClick: Mt((l) => e.$emit("action-clicked", o.action), ["stop"])
|
|
4678
|
-
}, M(o.name), 9,
|
|
4680
|
+
}, M(o.name), 9, Ys)
|
|
4679
4681
|
]))), 128))
|
|
4680
4682
|
]);
|
|
4681
4683
|
}
|
|
4682
|
-
const zs = /* @__PURE__ */ I(Ws, [["render",
|
|
4683
|
-
function
|
|
4684
|
+
const zs = /* @__PURE__ */ I(Ws, [["render", js]]);
|
|
4685
|
+
function Bs(e, t) {
|
|
4684
4686
|
return {
|
|
4685
4687
|
visibleActions: A(() => e.actions.filter((i) => i.isVisible === void 0 ? !0 : i.isVisible(e.row))),
|
|
4686
4688
|
onActionClicked: (i) => {
|
|
@@ -4691,7 +4693,7 @@ function Gs(e, t) {
|
|
|
4691
4693
|
}
|
|
4692
4694
|
};
|
|
4693
4695
|
}
|
|
4694
|
-
const
|
|
4696
|
+
const Gs = {
|
|
4695
4697
|
name: "ViGridActions",
|
|
4696
4698
|
components: { ViGridSimpleActions: zs, ViGridKebabMenu: Us },
|
|
4697
4699
|
props: {
|
|
@@ -4710,7 +4712,7 @@ const Bs = {
|
|
|
4710
4712
|
rowMenuOpened: {}
|
|
4711
4713
|
},
|
|
4712
4714
|
setup(e, { emit: t }) {
|
|
4713
|
-
const { visibleActions: n, onActionClicked: a, toggleRowMenu: r } =
|
|
4715
|
+
const { visibleActions: n, onActionClicked: a, toggleRowMenu: r } = Bs(e, t);
|
|
4714
4716
|
let i = K(null);
|
|
4715
4717
|
return ya(() => {
|
|
4716
4718
|
i.clickOutsideHandler = (o) => {
|
|
@@ -4749,7 +4751,7 @@ function Hs(e, t, n, a, r, i) {
|
|
|
4749
4751
|
}, null, 8, ["actions", "row-key", "row", "onActionClicked"]))
|
|
4750
4752
|
], 512);
|
|
4751
4753
|
}
|
|
4752
|
-
const qs = /* @__PURE__ */ I(
|
|
4754
|
+
const qs = /* @__PURE__ */ I(Gs, [["render", Hs]]);
|
|
4753
4755
|
const Ks = {
|
|
4754
4756
|
name: "ViGridLink",
|
|
4755
4757
|
props: {
|
|
@@ -4840,7 +4842,7 @@ function cl(e, t, n, a, r, i) {
|
|
|
4840
4842
|
"row-menu-opened": n.rowMenuOpened,
|
|
4841
4843
|
"onUpdate:rowMenuOpened": t[0] || (t[0] = (o) => e.$emit("update:rowMenuOpened", o)),
|
|
4842
4844
|
onActionClicked: t[1] || (t[1] = (o) => e.$emit("action-clicked", o))
|
|
4843
|
-
}), 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", {
|
|
4844
4846
|
key: 1,
|
|
4845
4847
|
field: n.field,
|
|
4846
4848
|
value: n.fieldValue,
|
|
@@ -4909,13 +4911,16 @@ const pl = {
|
|
|
4909
4911
|
defaultSlots: {}
|
|
4910
4912
|
}, zt = K({});
|
|
4911
4913
|
function yl(e) {
|
|
4912
|
-
const
|
|
4914
|
+
const t = ["align", "disablePagination", "defaultSlots", "noDataLabel", "noCellDataLabel", "stripped", "bordered", "compactPagination", "rowsPerPageOptions", "rowsPerPage"];
|
|
4913
4915
|
return {
|
|
4914
|
-
settings: A(() =>
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4916
|
+
settings: A(() => {
|
|
4917
|
+
const a = t.reduce((r, i) => (e[i] !== void 0 && (r[i] = e[i]), r), {});
|
|
4918
|
+
return {
|
|
4919
|
+
...pl,
|
|
4920
|
+
...zt.value,
|
|
4921
|
+
...a
|
|
4922
|
+
};
|
|
4923
|
+
})
|
|
4919
4924
|
};
|
|
4920
4925
|
}
|
|
4921
4926
|
function bl(e, t, n) {
|
|
@@ -4961,12 +4966,12 @@ function wl(e) {
|
|
|
4961
4966
|
}], s = (m, b, x) => x === "ascending" ? m.sort((_, g) => Number(_[b]) - Number(g[b])) : x === "descending" ? m.sort((_, g) => Number(g[b]) - Number(_[b])) : m, l = (m, b, x) => x === "ascending" ? m.sort((_, g) => _[b].toString().localeCompare(g[b].toString())) : x === "descending" ? m.sort((_, g) => g[b].toString().localeCompare(_[b].toString())) : m, c = function(m, b, x, _) {
|
|
4962
4967
|
return _ ? x === "number" ? s(m, b, _) : l(m, b, _) : m;
|
|
4963
4968
|
}, f = (m) => {
|
|
4964
|
-
|
|
4965
|
-
if (!
|
|
4969
|
+
const b = m.sortBy ? Array.isArray(m.sortBy) ? m.sortBy[0].field : m.sortBy : null, x = b ? Array.isArray(m.sortBy) ? m.sortBy[0].descending : m.descending : null;
|
|
4970
|
+
if (!b)
|
|
4966
4971
|
a.value = null, n.value = null, t.value = null;
|
|
4967
4972
|
else {
|
|
4968
|
-
let
|
|
4969
|
-
i(
|
|
4973
|
+
let _ = e.columns.find((g) => g.name === b);
|
|
4974
|
+
i(_, x ? "descending" : "ascending");
|
|
4970
4975
|
}
|
|
4971
4976
|
}, d = (m) => a.value !== m.name ? "unsorted" : t.value, h = A(() => e.serverMode ? e.rows ?? [] : c([...e.rows ?? []], a.value, n.value, t.value));
|
|
4972
4977
|
return {
|
|
@@ -5027,9 +5032,9 @@ function kl(e, t, n, a, r, i) {
|
|
|
5027
5032
|
colspan: n.colspan
|
|
5028
5033
|
}, [
|
|
5029
5034
|
C("div", {
|
|
5030
|
-
class:
|
|
5035
|
+
class: Y(["vi-header-cell-content", n.align])
|
|
5031
5036
|
}, [
|
|
5032
|
-
|
|
5037
|
+
L(e.$slots, "default")
|
|
5033
5038
|
], 2)
|
|
5034
5039
|
], 8, Pl);
|
|
5035
5040
|
}
|
|
@@ -5083,7 +5088,7 @@ const Cl = {
|
|
|
5083
5088
|
function Al(e, t, n, a, r, i) {
|
|
5084
5089
|
const o = z("font-awesome-icon"), s = z("vi-grid-head-cell");
|
|
5085
5090
|
return y(), R(s, {
|
|
5086
|
-
class:
|
|
5091
|
+
class: Y(n.sortableState),
|
|
5087
5092
|
align: n.column.align ?? n.align
|
|
5088
5093
|
}, {
|
|
5089
5094
|
default: he(() => [
|
|
@@ -5097,8 +5102,8 @@ function Al(e, t, n, a, r, i) {
|
|
|
5097
5102
|
icon: ["fas", "chevron-up"],
|
|
5098
5103
|
onClick: t[1] || (t[1] = (l) => e.$emit("sort", n.column))
|
|
5099
5104
|
}))
|
|
5100
|
-
])) :
|
|
5101
|
-
|
|
5105
|
+
])) : j("", !0),
|
|
5106
|
+
L(e.$slots, "default", {}, () => [
|
|
5102
5107
|
wa(M(n.column.label), 1)
|
|
5103
5108
|
])
|
|
5104
5109
|
]),
|
|
@@ -5231,7 +5236,7 @@ const Ml = {
|
|
|
5231
5236
|
const { currentVisibleRows: g, totalRows: p, onRowClicked: P } = bl(e, t, b), {
|
|
5232
5237
|
selectedRows: O,
|
|
5233
5238
|
toggleMasterSelect: T,
|
|
5234
|
-
toggleRowSelect:
|
|
5239
|
+
toggleRowSelect: V,
|
|
5235
5240
|
areAllRowsSelected: E,
|
|
5236
5241
|
isRowSelected: oe
|
|
5237
5242
|
} = Sl(e, t, g), _e = A(() => e.loading || r.value);
|
|
@@ -5247,7 +5252,7 @@ const Ml = {
|
|
|
5247
5252
|
selectedRows: O,
|
|
5248
5253
|
toggleMasterSelect: T,
|
|
5249
5254
|
areAllRowsSelected: E,
|
|
5250
|
-
toggleRowSelect:
|
|
5255
|
+
toggleRowSelect: V,
|
|
5251
5256
|
setSortFields: f,
|
|
5252
5257
|
fetchData: i,
|
|
5253
5258
|
isDataLoading: _e,
|
|
@@ -5297,21 +5302,22 @@ const Ml = {
|
|
|
5297
5302
|
}, Ll = {
|
|
5298
5303
|
key: 0,
|
|
5299
5304
|
class: "vi-table-body"
|
|
5300
|
-
}, Ul = { class: "vi-body-row vi-table-row vi-no-data-row" }, Wl = ["colspan"],
|
|
5305
|
+
}, Ul = { class: "vi-body-row vi-table-row vi-no-data-row" }, Wl = ["colspan"], Vl = {
|
|
5301
5306
|
key: 1,
|
|
5302
5307
|
class: "vi-table-body"
|
|
5303
|
-
},
|
|
5308
|
+
}, Yl = ["onClick"], jl = {
|
|
5304
5309
|
key: 0,
|
|
5305
5310
|
class: "vi-cell vi-select-cell"
|
|
5306
|
-
}, zl = { class: "vi-body-row vi-table-row vi-footer-row" },
|
|
5307
|
-
function
|
|
5311
|
+
}, zl = { class: "vi-body-row vi-table-row vi-footer-row" }, Bl = ["colspan"];
|
|
5312
|
+
function Gl(e, t, n, a, r, i) {
|
|
5308
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");
|
|
5309
5314
|
return y(), w("div", Dl, [
|
|
5315
|
+
L(e.$slots, "top"),
|
|
5310
5316
|
C("div", {
|
|
5311
|
-
class:
|
|
5317
|
+
class: Y(["vi-table-container", { loading: a.isDataLoading }])
|
|
5312
5318
|
}, [
|
|
5313
5319
|
C("table", {
|
|
5314
|
-
class:
|
|
5320
|
+
class: Y(["vi-table", { stripped: a.settings.stripped, bordered: a.settings.bordered }])
|
|
5315
5321
|
}, [
|
|
5316
5322
|
C("thead", Nl, [
|
|
5317
5323
|
n.title ? (y(), w("tr", El, [
|
|
@@ -5322,13 +5328,13 @@ function Bl(e, t, n, a, r, i) {
|
|
|
5322
5328
|
class: "vi-title-cell"
|
|
5323
5329
|
}, {
|
|
5324
5330
|
default: he(() => [
|
|
5325
|
-
|
|
5331
|
+
L(e.$slots, "title", { title: n.title }, () => [
|
|
5326
5332
|
C("span", null, M(n.title) + "}", 1)
|
|
5327
5333
|
])
|
|
5328
5334
|
]),
|
|
5329
5335
|
_: 3
|
|
5330
|
-
}, 8, ["colspan", "align"])) :
|
|
5331
|
-
])) :
|
|
5336
|
+
}, 8, ["colspan", "align"])) : j("", !0)
|
|
5337
|
+
])) : j("", !0),
|
|
5332
5338
|
C("tr", Il, [
|
|
5333
5339
|
n.selectable ? (y(), R(o, {
|
|
5334
5340
|
key: 0,
|
|
@@ -5343,7 +5349,7 @@ function Bl(e, t, n, a, r, i) {
|
|
|
5343
5349
|
}, null, 8, ["value"])
|
|
5344
5350
|
]),
|
|
5345
5351
|
_: 1
|
|
5346
|
-
}, 8, ["align"])) :
|
|
5352
|
+
}, 8, ["align"])) : j("", !0),
|
|
5347
5353
|
(y(!0), w(ce, null, ue(a.visibleColumns, (d) => (y(), R(l, {
|
|
5348
5354
|
key: d.name,
|
|
5349
5355
|
column: d,
|
|
@@ -5352,7 +5358,7 @@ function Bl(e, t, n, a, r, i) {
|
|
|
5352
5358
|
onSort: a.setSortFields
|
|
5353
5359
|
}, {
|
|
5354
5360
|
default: he(() => [
|
|
5355
|
-
|
|
5361
|
+
L(e.$slots, `vi-header-cell-${d.name}`, { column: d })
|
|
5356
5362
|
]),
|
|
5357
5363
|
_: 2
|
|
5358
5364
|
}, 1032, ["column", "align", "sortable-state", "onSort"]))), 128))
|
|
@@ -5363,7 +5369,7 @@ function Bl(e, t, n, a, r, i) {
|
|
|
5363
5369
|
class: "vi-loading-cell"
|
|
5364
5370
|
}, {
|
|
5365
5371
|
default: he(() => [
|
|
5366
|
-
|
|
5372
|
+
L(e.$slots, "loading", {}, () => [
|
|
5367
5373
|
a.settings.defaultSlots.loading ? (y(), R(Se(a.settings.defaultSlots.loading), { key: 0 })) : (y(), w("div", Rl, t[2] || (t[2] = [
|
|
5368
5374
|
C("div", { class: "loading-bar" }, null, -1)
|
|
5369
5375
|
])))
|
|
@@ -5371,11 +5377,11 @@ function Bl(e, t, n, a, r, i) {
|
|
|
5371
5377
|
]),
|
|
5372
5378
|
_: 3
|
|
5373
5379
|
}, 8, ["colspan"])
|
|
5374
|
-
])) :
|
|
5380
|
+
])) : j("", !0)
|
|
5375
5381
|
]),
|
|
5376
5382
|
!a.currentVisibleRows.length && !a.isDataLoading ? (y(), w("tbody", Ll, [
|
|
5377
5383
|
C("tr", Ul, [
|
|
5378
|
-
|
|
5384
|
+
L(e.$slots, "empty-data", {}, () => [
|
|
5379
5385
|
a.settings.defaultSlots.noRows ? (y(), R(Se(a.settings.defaultSlots.noRows), { key: 0 })) : (y(), w("td", {
|
|
5380
5386
|
key: 1,
|
|
5381
5387
|
colspan: a.totalColumns,
|
|
@@ -5383,15 +5389,15 @@ function Bl(e, t, n, a, r, i) {
|
|
|
5383
5389
|
}, M(a.settings.noDataLabel), 9, Wl))
|
|
5384
5390
|
])
|
|
5385
5391
|
])
|
|
5386
|
-
])) : (y(), w("tbody",
|
|
5392
|
+
])) : (y(), w("tbody", Vl, [
|
|
5387
5393
|
(y(!0), w(ce, null, ue(a.currentVisibleRows, (d) => (y(), w("tr", {
|
|
5388
5394
|
key: d[n.rowKey],
|
|
5389
5395
|
onClick: (h) => a.onRowClicked(d),
|
|
5390
|
-
class:
|
|
5396
|
+
class: Y([{ clickable: n.clickableRow, selected: a.isRowSelected(d) }, "vi-body-row vi-table-row"])
|
|
5391
5397
|
}, [
|
|
5392
|
-
n.selectable ? (y(), w("td",
|
|
5398
|
+
n.selectable ? (y(), w("td", jl, [
|
|
5393
5399
|
C("div", {
|
|
5394
|
-
class:
|
|
5400
|
+
class: Y(["vi-grid-field", a.settings.align])
|
|
5395
5401
|
}, [
|
|
5396
5402
|
q(s, {
|
|
5397
5403
|
row: d,
|
|
@@ -5400,13 +5406,13 @@ function Bl(e, t, n, a, r, i) {
|
|
|
5400
5406
|
onCheckboxClicked: (h) => a.toggleRowSelect(d, h.value)
|
|
5401
5407
|
}, null, 8, ["row", "name", "value", "onCheckboxClicked"])
|
|
5402
5408
|
], 2)
|
|
5403
|
-
])) :
|
|
5409
|
+
])) : j("", !0),
|
|
5404
5410
|
(y(!0), w(ce, null, ue(a.visibleColumns, (h) => (y(), w("td", {
|
|
5405
5411
|
key: h.name,
|
|
5406
5412
|
class: "vi-body-cell vi-cell"
|
|
5407
5413
|
}, [
|
|
5408
5414
|
q(c, {
|
|
5409
|
-
class:
|
|
5415
|
+
class: Y(h.align ?? a.settings.align),
|
|
5410
5416
|
field: h,
|
|
5411
5417
|
"field-value": h.render ? h.render(d) : d[h.name],
|
|
5412
5418
|
"row-value": d,
|
|
@@ -5422,20 +5428,20 @@ function Bl(e, t, n, a, r, i) {
|
|
|
5422
5428
|
_: 2
|
|
5423
5429
|
}, 1032, ["class", "field", "field-value", "row-value", "row-key", "row-menu-opened", "onActionClicked", "onCheckboxClicked"])
|
|
5424
5430
|
]))), 128))
|
|
5425
|
-
], 10,
|
|
5431
|
+
], 10, Yl))), 128)),
|
|
5426
5432
|
C("tr", zl, [
|
|
5427
5433
|
C("td", {
|
|
5428
5434
|
colspan: a.totalColumns,
|
|
5429
5435
|
class: "vi-body-cell vi-cell vi-footer-cell"
|
|
5430
5436
|
}, [
|
|
5431
|
-
|
|
5437
|
+
L(e.$slots, "footer", {
|
|
5432
5438
|
pagination: { ...n.pagination, totalRows: a.totalRows }
|
|
5433
5439
|
}, () => [
|
|
5434
5440
|
a.settings.defaultSlots.footer ? (y(), R(Se(a.settings.defaultSlots.footer), {
|
|
5435
5441
|
key: 0,
|
|
5436
5442
|
pagination: { ...n.pagination, totalRows: a.totalRows }
|
|
5437
|
-
}, null, 8, ["pagination"])) :
|
|
5438
|
-
a.settings.disablePagination ?
|
|
5443
|
+
}, null, 8, ["pagination"])) : j("", !0),
|
|
5444
|
+
a.settings.disablePagination ? j("", !0) : (y(), R(f, {
|
|
5439
5445
|
key: 1,
|
|
5440
5446
|
"rows-per-page": a.localPagination.rowsPerPage ?? a.settings.rowsPerPage,
|
|
5441
5447
|
"current-page": a.localPagination.page,
|
|
@@ -5446,19 +5452,21 @@ function Bl(e, t, n, a, r, i) {
|
|
|
5446
5452
|
onUpdate: a.onPaginationChange
|
|
5447
5453
|
}, null, 8, ["rows-per-page", "current-page", "total-rows", "compact", "rows-per-page-options", "onUpdate"]))
|
|
5448
5454
|
])
|
|
5449
|
-
], 8,
|
|
5455
|
+
], 8, Bl)
|
|
5450
5456
|
])
|
|
5451
5457
|
]))
|
|
5452
5458
|
], 2)
|
|
5453
|
-
], 2)
|
|
5459
|
+
], 2),
|
|
5460
|
+
L(e.$slots, "bottom")
|
|
5454
5461
|
]);
|
|
5455
5462
|
}
|
|
5456
|
-
const kn = /* @__PURE__ */ I(Ml, [["render",
|
|
5463
|
+
const kn = /* @__PURE__ */ I(Ml, [["render", Gl]]), Sn = {
|
|
5457
5464
|
format: {
|
|
5458
5465
|
date: "yyyy-MM-dd",
|
|
5459
5466
|
dateTime: "yyyy-MM-dd HH:mm:ss",
|
|
5460
5467
|
time: "HH:mm:ss"
|
|
5461
|
-
}
|
|
5468
|
+
},
|
|
5469
|
+
mode: "dateTime"
|
|
5462
5470
|
};
|
|
5463
5471
|
const $l = {
|
|
5464
5472
|
name: "ViPagination",
|
|
@@ -5571,7 +5579,7 @@ function ac(e, t, n, a, r, i) {
|
|
|
5571
5579
|
const o = z("font-awesome-icon");
|
|
5572
5580
|
return y(), w("div", Hl, [
|
|
5573
5581
|
C("div", ql, [
|
|
5574
|
-
|
|
5582
|
+
L(e.$slots, "rows-per-page", {
|
|
5575
5583
|
rowsPerPage: i.rowsOnPage,
|
|
5576
5584
|
rowsPerPageUpdate: i.rowsPerPageChange
|
|
5577
5585
|
}, () => [
|
|
@@ -5587,19 +5595,19 @@ function ac(e, t, n, a, r, i) {
|
|
|
5587
5595
|
], 40, Kl)
|
|
5588
5596
|
])
|
|
5589
5597
|
]),
|
|
5590
|
-
|
|
5598
|
+
L(e.$slots, "visible-rows-info", {
|
|
5591
5599
|
totalRows: n.totalRows,
|
|
5592
5600
|
firstVisibleRow: i.firstVisibleRow,
|
|
5593
5601
|
lastVisibleRow: i.lastVisibleRow
|
|
5594
5602
|
}, () => [
|
|
5595
|
-
n.totalRows > 0 ? (y(), w("div", Ql, " Showing " + M(i.firstVisibleRow) + " - " + M(i.lastVisibleRow) + " of " + M(n.totalRows), 1)) :
|
|
5603
|
+
n.totalRows > 0 ? (y(), w("div", Ql, " Showing " + M(i.firstVisibleRow) + " - " + M(i.lastVisibleRow) + " of " + M(n.totalRows), 1)) : j("", !0)
|
|
5596
5604
|
]),
|
|
5597
5605
|
C("div", Jl, [
|
|
5598
|
-
|
|
5606
|
+
L(e.$slots, "navigation-prev", {}, () => [
|
|
5599
5607
|
C("div", Zl, [
|
|
5600
5608
|
C("div", {
|
|
5601
5609
|
onClick: t[1] || (t[1] = (s) => i.pageChange(1)),
|
|
5602
|
-
class:
|
|
5610
|
+
class: Y(["vi-page-nav vi-page-first", { disabled: i.firsVisiblePage === 1 && !n.compact }])
|
|
5603
5611
|
}, [
|
|
5604
5612
|
q(o, {
|
|
5605
5613
|
icon: ["fas", "angles-left"],
|
|
@@ -5607,30 +5615,30 @@ function ac(e, t, n, a, r, i) {
|
|
|
5607
5615
|
})
|
|
5608
5616
|
], 2),
|
|
5609
5617
|
C("div", {
|
|
5610
|
-
class:
|
|
5618
|
+
class: Y([{ disabled: n.currentPage === 1 }, "vi-page-nav vi-page-prev"]),
|
|
5611
5619
|
onClick: t[2] || (t[2] = (s) => i.pageChange(n.currentPage - 1))
|
|
5612
5620
|
}, [
|
|
5613
5621
|
q(o, { icon: ["fas", "angle-left"] })
|
|
5614
5622
|
], 2)
|
|
5615
5623
|
])
|
|
5616
5624
|
]),
|
|
5617
|
-
i.compactPagination ?
|
|
5625
|
+
i.compactPagination ? j("", !0) : (y(), w("div", ec, [
|
|
5618
5626
|
(y(!0), w(ce, null, ue(i.visiblePages, (s) => (y(), w("div", {
|
|
5619
|
-
class:
|
|
5627
|
+
class: Y(["vi-page-number", { active: s === n.currentPage }]),
|
|
5620
5628
|
key: s,
|
|
5621
5629
|
onClick: (l) => i.pageChange(s)
|
|
5622
5630
|
}, M(s), 11, tc))), 128))
|
|
5623
5631
|
])),
|
|
5624
|
-
|
|
5632
|
+
L(e.$slots, "navigation-next", {}, () => [
|
|
5625
5633
|
C("div", nc, [
|
|
5626
5634
|
C("div", {
|
|
5627
|
-
class:
|
|
5635
|
+
class: Y([{ disabled: n.currentPage === i.totalPages }, "vi-page-nav vi-page-next"]),
|
|
5628
5636
|
onClick: t[3] || (t[3] = (s) => i.pageChange(n.currentPage + 1))
|
|
5629
5637
|
}, [
|
|
5630
5638
|
q(o, { icon: ["fas", "angle-right"] })
|
|
5631
5639
|
], 2),
|
|
5632
5640
|
C("div", {
|
|
5633
|
-
class:
|
|
5641
|
+
class: Y([{ disabled: i.lastVisiblePage === i.totalPages && !n.compact }, "vi-page-nav vi-page-last"]),
|
|
5634
5642
|
onClick: t[4] || (t[4] = (s) => i.pageChange(i.totalPages))
|
|
5635
5643
|
}, [
|
|
5636
5644
|
q(o, {
|
|
@@ -5687,25 +5695,28 @@ const ic = {
|
|
|
5687
5695
|
}, hc = {
|
|
5688
5696
|
install(e, t = {}) {
|
|
5689
5697
|
ga.add(uc, ic, cc);
|
|
5690
|
-
const { fieldComponents: n, dateFormats: a,
|
|
5698
|
+
const { fieldComponents: n, dateFormats: a, dateMode: r, style: i, ...o } = t;
|
|
5691
5699
|
if (e.provide("ViDateSettings", {
|
|
5692
5700
|
...Sn,
|
|
5693
5701
|
format: {
|
|
5694
5702
|
...Sn.format,
|
|
5695
5703
|
...a
|
|
5704
|
+
},
|
|
5705
|
+
...r && {
|
|
5706
|
+
mode: r
|
|
5696
5707
|
}
|
|
5697
|
-
}),
|
|
5698
|
-
for (const [
|
|
5699
|
-
document.documentElement.style.setProperty(`--vi-grid-${
|
|
5700
|
-
e.use(mc, {},
|
|
5701
|
-
const
|
|
5708
|
+
}), i)
|
|
5709
|
+
for (const [l, c] of Object.entries(i))
|
|
5710
|
+
document.documentElement.style.setProperty(`--vi-grid-${l}`, c);
|
|
5711
|
+
e.use(mc, {}, i), e.component("FontAwesomeIcon", we), zt.value = o;
|
|
5712
|
+
const s = {
|
|
5702
5713
|
...kn,
|
|
5703
5714
|
components: {
|
|
5704
5715
|
...kn.components,
|
|
5705
5716
|
...t.fieldComponents ?? {}
|
|
5706
5717
|
}
|
|
5707
5718
|
};
|
|
5708
|
-
e.component("ViGridBuilder",
|
|
5719
|
+
e.component("ViGridBuilder", s);
|
|
5709
5720
|
}
|
|
5710
5721
|
};
|
|
5711
5722
|
export {
|