vi-grid-builder 2.1.0 → 2.1.1
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 +275 -163
- package/dist/vi-grid-builder.js +123 -114
- 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 V, 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,18 +109,18 @@ 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
125
|
function Ge(e, t) {
|
|
126
126
|
var n, a, r, i, o, s, l, c;
|
|
@@ -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);
|
|
@@ -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,12 +1261,12 @@ 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, Gr = /^'([^]*?)'?$/, Br = /''/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), W = Ke(), E = (a = (r = n == null ? void 0 : n.locale) !== null && r !== void 0 ? r : W.locale) !== null && a !== void 0 ? a :
|
|
1269
|
+
var T = String(t), W = Ke(), E = (a = (r = n == null ? void 0 : n.locale) !== null && r !== void 0 ? r : W.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 : W.firstWeekContainsDate) !== null && o !== void 0 ? o : (d = W.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
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 : W.weekStartsOn) !== null && b !== void 0 ? b : (P = W.locale) === null || P === void 0 || (O = P.options) === null || O === void 0 ? void 0 : O.weekStartsOn) !== null && m !== void 0 ? m : 0);
|
|
@@ -1291,7 +1291,7 @@ function Hr(e, t, n) {
|
|
|
1291
1291
|
return Re(L, E.formatLong);
|
|
1292
1292
|
}
|
|
1293
1293
|
return L;
|
|
1294
|
-
}).join("").match(
|
|
1294
|
+
}).join("").match(jr).map(function(L) {
|
|
1295
1295
|
if (L === "''")
|
|
1296
1296
|
return "'";
|
|
1297
1297
|
var Z = L[0];
|
|
@@ -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", Gi = ["HTML", "HEAD", "STYLE", "SCRIPT"], Gn = (() => {
|
|
1806
1808
|
try {
|
|
1807
1809
|
return process.env.NODE_ENV === "production";
|
|
1808
1810
|
} catch {
|
|
@@ -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,
|
|
@@ -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");
|
|
@@ -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
|
}
|
|
@@ -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,
|
|
@@ -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) => {
|
|
@@ -3433,7 +3435,7 @@ 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);
|
|
@@ -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();
|
|
@@ -3788,7 +3790,7 @@ function ls(e) {
|
|
|
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(() => {
|
|
@@ -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) {
|
|
@@ -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;
|
|
@@ -4602,7 +4604,7 @@ Tt({
|
|
|
4602
4604
|
var c = ys(t.value.toString(), G(G({}, 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,17 +4671,17 @@ 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",
|
|
4684
|
+
const zs = /* @__PURE__ */ I(Ws, [["render", js]]);
|
|
4683
4685
|
function Gs(e, t) {
|
|
4684
4686
|
return {
|
|
4685
4687
|
visibleActions: A(() => e.actions.filter((i) => i.isVisible === void 0 ? !0 : i.isVisible(e.row))),
|
|
@@ -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"])) : V(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) {
|
|
@@ -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
|
+
V(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
|
+
V(e.$slots, "default", {}, () => [
|
|
5102
5107
|
wa(M(n.column.label), 1)
|
|
5103
5108
|
])
|
|
5104
5109
|
]),
|
|
@@ -5297,10 +5302,10 @@ 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
5311
|
}, zl = { class: "vi-body-row vi-table-row vi-footer-row" }, Gl = ["colspan"];
|
|
@@ -5308,10 +5313,10 @@ function Bl(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, [
|
|
5310
5315
|
C("div", {
|
|
5311
|
-
class:
|
|
5316
|
+
class: Y(["vi-table-container", { loading: a.isDataLoading }])
|
|
5312
5317
|
}, [
|
|
5313
5318
|
C("table", {
|
|
5314
|
-
class:
|
|
5319
|
+
class: Y(["vi-table", { stripped: a.settings.stripped, bordered: a.settings.bordered }])
|
|
5315
5320
|
}, [
|
|
5316
5321
|
C("thead", Nl, [
|
|
5317
5322
|
n.title ? (y(), w("tr", El, [
|
|
@@ -5322,13 +5327,13 @@ function Bl(e, t, n, a, r, i) {
|
|
|
5322
5327
|
class: "vi-title-cell"
|
|
5323
5328
|
}, {
|
|
5324
5329
|
default: he(() => [
|
|
5325
|
-
|
|
5330
|
+
V(e.$slots, "title", { title: n.title }, () => [
|
|
5326
5331
|
C("span", null, M(n.title) + "}", 1)
|
|
5327
5332
|
])
|
|
5328
5333
|
]),
|
|
5329
5334
|
_: 3
|
|
5330
|
-
}, 8, ["colspan", "align"])) :
|
|
5331
|
-
])) :
|
|
5335
|
+
}, 8, ["colspan", "align"])) : j("", !0)
|
|
5336
|
+
])) : j("", !0),
|
|
5332
5337
|
C("tr", Il, [
|
|
5333
5338
|
n.selectable ? (y(), R(o, {
|
|
5334
5339
|
key: 0,
|
|
@@ -5343,7 +5348,7 @@ function Bl(e, t, n, a, r, i) {
|
|
|
5343
5348
|
}, null, 8, ["value"])
|
|
5344
5349
|
]),
|
|
5345
5350
|
_: 1
|
|
5346
|
-
}, 8, ["align"])) :
|
|
5351
|
+
}, 8, ["align"])) : j("", !0),
|
|
5347
5352
|
(y(!0), w(ce, null, ue(a.visibleColumns, (d) => (y(), R(l, {
|
|
5348
5353
|
key: d.name,
|
|
5349
5354
|
column: d,
|
|
@@ -5352,7 +5357,7 @@ function Bl(e, t, n, a, r, i) {
|
|
|
5352
5357
|
onSort: a.setSortFields
|
|
5353
5358
|
}, {
|
|
5354
5359
|
default: he(() => [
|
|
5355
|
-
|
|
5360
|
+
V(e.$slots, `vi-header-cell-${d.name}`, { column: d })
|
|
5356
5361
|
]),
|
|
5357
5362
|
_: 2
|
|
5358
5363
|
}, 1032, ["column", "align", "sortable-state", "onSort"]))), 128))
|
|
@@ -5363,7 +5368,7 @@ function Bl(e, t, n, a, r, i) {
|
|
|
5363
5368
|
class: "vi-loading-cell"
|
|
5364
5369
|
}, {
|
|
5365
5370
|
default: he(() => [
|
|
5366
|
-
|
|
5371
|
+
V(e.$slots, "loading", {}, () => [
|
|
5367
5372
|
a.settings.defaultSlots.loading ? (y(), R(Se(a.settings.defaultSlots.loading), { key: 0 })) : (y(), w("div", Rl, t[2] || (t[2] = [
|
|
5368
5373
|
C("div", { class: "loading-bar" }, null, -1)
|
|
5369
5374
|
])))
|
|
@@ -5371,11 +5376,11 @@ function Bl(e, t, n, a, r, i) {
|
|
|
5371
5376
|
]),
|
|
5372
5377
|
_: 3
|
|
5373
5378
|
}, 8, ["colspan"])
|
|
5374
|
-
])) :
|
|
5379
|
+
])) : j("", !0)
|
|
5375
5380
|
]),
|
|
5376
5381
|
!a.currentVisibleRows.length && !a.isDataLoading ? (y(), w("tbody", Ll, [
|
|
5377
5382
|
C("tr", Ul, [
|
|
5378
|
-
|
|
5383
|
+
V(e.$slots, "empty-data", {}, () => [
|
|
5379
5384
|
a.settings.defaultSlots.noRows ? (y(), R(Se(a.settings.defaultSlots.noRows), { key: 0 })) : (y(), w("td", {
|
|
5380
5385
|
key: 1,
|
|
5381
5386
|
colspan: a.totalColumns,
|
|
@@ -5383,15 +5388,15 @@ function Bl(e, t, n, a, r, i) {
|
|
|
5383
5388
|
}, M(a.settings.noDataLabel), 9, Wl))
|
|
5384
5389
|
])
|
|
5385
5390
|
])
|
|
5386
|
-
])) : (y(), w("tbody",
|
|
5391
|
+
])) : (y(), w("tbody", Vl, [
|
|
5387
5392
|
(y(!0), w(ce, null, ue(a.currentVisibleRows, (d) => (y(), w("tr", {
|
|
5388
5393
|
key: d[n.rowKey],
|
|
5389
5394
|
onClick: (h) => a.onRowClicked(d),
|
|
5390
|
-
class:
|
|
5395
|
+
class: Y([{ clickable: n.clickableRow, selected: a.isRowSelected(d) }, "vi-body-row vi-table-row"])
|
|
5391
5396
|
}, [
|
|
5392
|
-
n.selectable ? (y(), w("td",
|
|
5397
|
+
n.selectable ? (y(), w("td", jl, [
|
|
5393
5398
|
C("div", {
|
|
5394
|
-
class:
|
|
5399
|
+
class: Y(["vi-grid-field", a.settings.align])
|
|
5395
5400
|
}, [
|
|
5396
5401
|
q(s, {
|
|
5397
5402
|
row: d,
|
|
@@ -5400,13 +5405,13 @@ function Bl(e, t, n, a, r, i) {
|
|
|
5400
5405
|
onCheckboxClicked: (h) => a.toggleRowSelect(d, h.value)
|
|
5401
5406
|
}, null, 8, ["row", "name", "value", "onCheckboxClicked"])
|
|
5402
5407
|
], 2)
|
|
5403
|
-
])) :
|
|
5408
|
+
])) : j("", !0),
|
|
5404
5409
|
(y(!0), w(ce, null, ue(a.visibleColumns, (h) => (y(), w("td", {
|
|
5405
5410
|
key: h.name,
|
|
5406
5411
|
class: "vi-body-cell vi-cell"
|
|
5407
5412
|
}, [
|
|
5408
5413
|
q(c, {
|
|
5409
|
-
class:
|
|
5414
|
+
class: Y(h.align ?? a.settings.align),
|
|
5410
5415
|
field: h,
|
|
5411
5416
|
"field-value": h.render ? h.render(d) : d[h.name],
|
|
5412
5417
|
"row-value": d,
|
|
@@ -5422,20 +5427,20 @@ function Bl(e, t, n, a, r, i) {
|
|
|
5422
5427
|
_: 2
|
|
5423
5428
|
}, 1032, ["class", "field", "field-value", "row-value", "row-key", "row-menu-opened", "onActionClicked", "onCheckboxClicked"])
|
|
5424
5429
|
]))), 128))
|
|
5425
|
-
], 10,
|
|
5430
|
+
], 10, Yl))), 128)),
|
|
5426
5431
|
C("tr", zl, [
|
|
5427
5432
|
C("td", {
|
|
5428
5433
|
colspan: a.totalColumns,
|
|
5429
5434
|
class: "vi-body-cell vi-cell vi-footer-cell"
|
|
5430
5435
|
}, [
|
|
5431
|
-
|
|
5436
|
+
V(e.$slots, "footer", {
|
|
5432
5437
|
pagination: { ...n.pagination, totalRows: a.totalRows }
|
|
5433
5438
|
}, () => [
|
|
5434
5439
|
a.settings.defaultSlots.footer ? (y(), R(Se(a.settings.defaultSlots.footer), {
|
|
5435
5440
|
key: 0,
|
|
5436
5441
|
pagination: { ...n.pagination, totalRows: a.totalRows }
|
|
5437
|
-
}, null, 8, ["pagination"])) :
|
|
5438
|
-
a.settings.disablePagination ?
|
|
5442
|
+
}, null, 8, ["pagination"])) : j("", !0),
|
|
5443
|
+
a.settings.disablePagination ? j("", !0) : (y(), R(f, {
|
|
5439
5444
|
key: 1,
|
|
5440
5445
|
"rows-per-page": a.localPagination.rowsPerPage ?? a.settings.rowsPerPage,
|
|
5441
5446
|
"current-page": a.localPagination.page,
|
|
@@ -5458,7 +5463,8 @@ const kn = /* @__PURE__ */ I(Ml, [["render", Bl]]), Sn = {
|
|
|
5458
5463
|
date: "yyyy-MM-dd",
|
|
5459
5464
|
dateTime: "yyyy-MM-dd HH:mm:ss",
|
|
5460
5465
|
time: "HH:mm:ss"
|
|
5461
|
-
}
|
|
5466
|
+
},
|
|
5467
|
+
mode: "dateTime"
|
|
5462
5468
|
};
|
|
5463
5469
|
const $l = {
|
|
5464
5470
|
name: "ViPagination",
|
|
@@ -5571,7 +5577,7 @@ function ac(e, t, n, a, r, i) {
|
|
|
5571
5577
|
const o = z("font-awesome-icon");
|
|
5572
5578
|
return y(), w("div", Hl, [
|
|
5573
5579
|
C("div", ql, [
|
|
5574
|
-
|
|
5580
|
+
V(e.$slots, "rows-per-page", {
|
|
5575
5581
|
rowsPerPage: i.rowsOnPage,
|
|
5576
5582
|
rowsPerPageUpdate: i.rowsPerPageChange
|
|
5577
5583
|
}, () => [
|
|
@@ -5587,19 +5593,19 @@ function ac(e, t, n, a, r, i) {
|
|
|
5587
5593
|
], 40, Kl)
|
|
5588
5594
|
])
|
|
5589
5595
|
]),
|
|
5590
|
-
|
|
5596
|
+
V(e.$slots, "visible-rows-info", {
|
|
5591
5597
|
totalRows: n.totalRows,
|
|
5592
5598
|
firstVisibleRow: i.firstVisibleRow,
|
|
5593
5599
|
lastVisibleRow: i.lastVisibleRow
|
|
5594
5600
|
}, () => [
|
|
5595
|
-
n.totalRows > 0 ? (y(), w("div", Ql, " Showing " + M(i.firstVisibleRow) + " - " + M(i.lastVisibleRow) + " of " + M(n.totalRows), 1)) :
|
|
5601
|
+
n.totalRows > 0 ? (y(), w("div", Ql, " Showing " + M(i.firstVisibleRow) + " - " + M(i.lastVisibleRow) + " of " + M(n.totalRows), 1)) : j("", !0)
|
|
5596
5602
|
]),
|
|
5597
5603
|
C("div", Jl, [
|
|
5598
|
-
|
|
5604
|
+
V(e.$slots, "navigation-prev", {}, () => [
|
|
5599
5605
|
C("div", Zl, [
|
|
5600
5606
|
C("div", {
|
|
5601
5607
|
onClick: t[1] || (t[1] = (s) => i.pageChange(1)),
|
|
5602
|
-
class:
|
|
5608
|
+
class: Y(["vi-page-nav vi-page-first", { disabled: i.firsVisiblePage === 1 && !n.compact }])
|
|
5603
5609
|
}, [
|
|
5604
5610
|
q(o, {
|
|
5605
5611
|
icon: ["fas", "angles-left"],
|
|
@@ -5607,30 +5613,30 @@ function ac(e, t, n, a, r, i) {
|
|
|
5607
5613
|
})
|
|
5608
5614
|
], 2),
|
|
5609
5615
|
C("div", {
|
|
5610
|
-
class:
|
|
5616
|
+
class: Y([{ disabled: n.currentPage === 1 }, "vi-page-nav vi-page-prev"]),
|
|
5611
5617
|
onClick: t[2] || (t[2] = (s) => i.pageChange(n.currentPage - 1))
|
|
5612
5618
|
}, [
|
|
5613
5619
|
q(o, { icon: ["fas", "angle-left"] })
|
|
5614
5620
|
], 2)
|
|
5615
5621
|
])
|
|
5616
5622
|
]),
|
|
5617
|
-
i.compactPagination ?
|
|
5623
|
+
i.compactPagination ? j("", !0) : (y(), w("div", ec, [
|
|
5618
5624
|
(y(!0), w(ce, null, ue(i.visiblePages, (s) => (y(), w("div", {
|
|
5619
|
-
class:
|
|
5625
|
+
class: Y(["vi-page-number", { active: s === n.currentPage }]),
|
|
5620
5626
|
key: s,
|
|
5621
5627
|
onClick: (l) => i.pageChange(s)
|
|
5622
5628
|
}, M(s), 11, tc))), 128))
|
|
5623
5629
|
])),
|
|
5624
|
-
|
|
5630
|
+
V(e.$slots, "navigation-next", {}, () => [
|
|
5625
5631
|
C("div", nc, [
|
|
5626
5632
|
C("div", {
|
|
5627
|
-
class:
|
|
5633
|
+
class: Y([{ disabled: n.currentPage === i.totalPages }, "vi-page-nav vi-page-next"]),
|
|
5628
5634
|
onClick: t[3] || (t[3] = (s) => i.pageChange(n.currentPage + 1))
|
|
5629
5635
|
}, [
|
|
5630
5636
|
q(o, { icon: ["fas", "angle-right"] })
|
|
5631
5637
|
], 2),
|
|
5632
5638
|
C("div", {
|
|
5633
|
-
class:
|
|
5639
|
+
class: Y([{ disabled: i.lastVisiblePage === i.totalPages && !n.compact }, "vi-page-nav vi-page-last"]),
|
|
5634
5640
|
onClick: t[4] || (t[4] = (s) => i.pageChange(i.totalPages))
|
|
5635
5641
|
}, [
|
|
5636
5642
|
q(o, {
|
|
@@ -5687,25 +5693,28 @@ const ic = {
|
|
|
5687
5693
|
}, hc = {
|
|
5688
5694
|
install(e, t = {}) {
|
|
5689
5695
|
ga.add(uc, ic, cc);
|
|
5690
|
-
const { fieldComponents: n, dateFormats: a,
|
|
5696
|
+
const { fieldComponents: n, dateFormats: a, dateMode: r, style: i, ...o } = t;
|
|
5691
5697
|
if (e.provide("ViDateSettings", {
|
|
5692
5698
|
...Sn,
|
|
5693
5699
|
format: {
|
|
5694
5700
|
...Sn.format,
|
|
5695
5701
|
...a
|
|
5702
|
+
},
|
|
5703
|
+
...r && {
|
|
5704
|
+
mode: r
|
|
5696
5705
|
}
|
|
5697
|
-
}),
|
|
5698
|
-
for (const [
|
|
5699
|
-
document.documentElement.style.setProperty(`--vi-grid-${
|
|
5700
|
-
e.use(mc, {},
|
|
5701
|
-
const
|
|
5706
|
+
}), i)
|
|
5707
|
+
for (const [l, c] of Object.entries(i))
|
|
5708
|
+
document.documentElement.style.setProperty(`--vi-grid-${l}`, c);
|
|
5709
|
+
e.use(mc, {}, i), e.component("FontAwesomeIcon", we), zt.value = o;
|
|
5710
|
+
const s = {
|
|
5702
5711
|
...kn,
|
|
5703
5712
|
components: {
|
|
5704
5713
|
...kn.components,
|
|
5705
5714
|
...t.fieldComponents ?? {}
|
|
5706
5715
|
}
|
|
5707
5716
|
};
|
|
5708
|
-
e.component("ViGridBuilder",
|
|
5717
|
+
e.component("ViGridBuilder", s);
|
|
5709
5718
|
}
|
|
5710
5719
|
};
|
|
5711
5720
|
export {
|