vi-grid-builder 2.3.27 → 2.3.29
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/dist/style.css +1 -1
- package/dist/vi-grid-builder.js +211 -209
- package/dist/vi-grid-builder.umd.cjs +5 -5
- package/package.json +2 -2
package/dist/vi-grid-builder.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as
|
|
1
|
+
import { openBlock as x, createElementBlock as A, mergeProps as oe, toDisplayString as G, createElementVNode as T, defineComponent as ke, computed as k, watch as Ze, h as je, reactive as xt, createVNode as N, toRaw as ce, nextTick as Xo, resolveComponent as W, normalizeClass as le, createBlock as U, createCommentVNode as z, renderSlot as V, ref as j, Fragment as ge, createTextVNode as Ks, normalizeStyle as Xs, isVNode as Qo, createApp as Qs, onMounted as Za, onUnmounted as er, shallowRef as Js, getCurrentScope as Zs, onScopeDispose as el, shallowReadonly as st, unref as tl, watchEffect as on, cloneVNode as nl, withModifiers as En, renderList as ze, withCtx as ct, resolveDynamicComponent as sn } from "vue";
|
|
2
2
|
const Q = (e, t) => {
|
|
3
3
|
const n = e.__vccOpts || e;
|
|
4
4
|
for (const [a, r] of t)
|
|
@@ -11,7 +11,7 @@ const Q = (e, t) => {
|
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
function rl(e, t, n, a, r, o) {
|
|
14
|
-
return
|
|
14
|
+
return x(), A("div", oe({ class: "vi-grid-badge" }, e.$attrs, { class: n.value }), G(n.value), 17);
|
|
15
15
|
}
|
|
16
16
|
const ol = /* @__PURE__ */ Q(al, [["render", rl]]);
|
|
17
17
|
const il = {
|
|
@@ -21,7 +21,7 @@ const il = {
|
|
|
21
21
|
}
|
|
22
22
|
}, sl = { class: "vi-grid-image" }, ll = ["src"];
|
|
23
23
|
function cl(e, t, n, a, r, o) {
|
|
24
|
-
return
|
|
24
|
+
return x(), A("div", sl, [
|
|
25
25
|
T("img", { src: n.value }, null, 8, ll)
|
|
26
26
|
]);
|
|
27
27
|
}
|
|
@@ -1640,7 +1640,7 @@ function cr(e) {
|
|
|
1640
1640
|
symbol: i,
|
|
1641
1641
|
styles: v(v({}, d), u.styles)
|
|
1642
1642
|
}), {
|
|
1643
|
-
children:
|
|
1643
|
+
children: S,
|
|
1644
1644
|
attributes: C
|
|
1645
1645
|
} = n.found && t.found ? Ue("generateAbstractMask", m) || {
|
|
1646
1646
|
children: [],
|
|
@@ -1649,7 +1649,7 @@ function cr(e) {
|
|
|
1649
1649
|
children: [],
|
|
1650
1650
|
attributes: {}
|
|
1651
1651
|
};
|
|
1652
|
-
return m.children =
|
|
1652
|
+
return m.children = S, m.attributes = C, i ? Ac(m) : _c(m);
|
|
1653
1653
|
}
|
|
1654
1654
|
function $r(e) {
|
|
1655
1655
|
const {
|
|
@@ -2335,9 +2335,9 @@ function eo(e, t) {
|
|
|
2335
2335
|
if (b && !h && (!o || o.getAttribute(nr) !== g || o.getAttribute(ar) !== d)) {
|
|
2336
2336
|
e.setAttribute(n, d), o && e.removeChild(o);
|
|
2337
2337
|
const m = Uc(), {
|
|
2338
|
-
extra:
|
|
2338
|
+
extra: S
|
|
2339
2339
|
} = m;
|
|
2340
|
-
|
|
2340
|
+
S.attributes[ma] = t, xa(b, g).then((C) => {
|
|
2341
2341
|
const O = cr(v(v({}, m), {}, {
|
|
2342
2342
|
icons: {
|
|
2343
2343
|
main: C,
|
|
@@ -2345,7 +2345,7 @@ function eo(e, t) {
|
|
|
2345
2345
|
},
|
|
2346
2346
|
prefix: g,
|
|
2347
2347
|
iconName: d,
|
|
2348
|
-
extra:
|
|
2348
|
+
extra: S,
|
|
2349
2349
|
watchable: !0
|
|
2350
2350
|
})), M = F.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
2351
2351
|
t === "::before" ? e.insertBefore(M, e.firstChild) : e.appendChild(M), M.outerHTML = O.map((E) => Ht(E)).join(`
|
|
@@ -2576,7 +2576,7 @@ var lu = {
|
|
|
2576
2576
|
tag: "g",
|
|
2577
2577
|
attributes: v({}, g.outer),
|
|
2578
2578
|
children: [w]
|
|
2579
|
-
}, d = "mask-".concat(i || Bt()), m = "clip-".concat(i || Bt()),
|
|
2579
|
+
}, d = "mask-".concat(i || Bt()), m = "clip-".concat(i || Bt()), S = {
|
|
2580
2580
|
tag: "mask",
|
|
2581
2581
|
attributes: v(v({}, ea), {}, {
|
|
2582
2582
|
id: d,
|
|
@@ -2592,7 +2592,7 @@ var lu = {
|
|
|
2592
2592
|
id: m
|
|
2593
2593
|
},
|
|
2594
2594
|
children: su(f)
|
|
2595
|
-
},
|
|
2595
|
+
}, S]
|
|
2596
2596
|
};
|
|
2597
2597
|
return n.push(C, {
|
|
2598
2598
|
tag: "rect",
|
|
@@ -2813,26 +2813,26 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2813
2813
|
var ku = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Di = { exports: {} };
|
|
2814
2814
|
(function(e) {
|
|
2815
2815
|
(function(t) {
|
|
2816
|
-
var n = function(d, m,
|
|
2816
|
+
var n = function(d, m, S) {
|
|
2817
2817
|
if (!c(m) || f(m) || g(m) || p(m) || l(m))
|
|
2818
2818
|
return m;
|
|
2819
2819
|
var C, O = 0, M = 0;
|
|
2820
2820
|
if (u(m))
|
|
2821
2821
|
for (C = [], M = m.length; O < M; O++)
|
|
2822
|
-
C.push(n(d, m[O],
|
|
2822
|
+
C.push(n(d, m[O], S));
|
|
2823
2823
|
else {
|
|
2824
2824
|
C = {};
|
|
2825
2825
|
for (var E in m)
|
|
2826
|
-
Object.prototype.hasOwnProperty.call(m, E) && (C[d(E,
|
|
2826
|
+
Object.prototype.hasOwnProperty.call(m, E) && (C[d(E, S)] = n(d, m[E], S));
|
|
2827
2827
|
}
|
|
2828
2828
|
return C;
|
|
2829
2829
|
}, a = function(d, m) {
|
|
2830
2830
|
m = m || {};
|
|
2831
|
-
var
|
|
2832
|
-
return d.split(C).join(
|
|
2831
|
+
var S = m.separator || "_", C = m.split || /(?=[A-Z])/;
|
|
2832
|
+
return d.split(C).join(S);
|
|
2833
2833
|
}, r = function(d) {
|
|
2834
|
-
return h(d) ? d : (d = d.replace(/[\-_\s]+(.)?/g, function(m,
|
|
2835
|
-
return
|
|
2834
|
+
return h(d) ? d : (d = d.replace(/[\-_\s]+(.)?/g, function(m, S) {
|
|
2835
|
+
return S ? S.toUpperCase() : "";
|
|
2836
2836
|
}), d.substr(0, 1).toLowerCase() + d.substr(1));
|
|
2837
2837
|
}, o = function(d) {
|
|
2838
2838
|
var m = r(d);
|
|
@@ -2854,9 +2854,9 @@ var ku = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2854
2854
|
}, h = function(d) {
|
|
2855
2855
|
return d = d - 0, d === d;
|
|
2856
2856
|
}, w = function(d, m) {
|
|
2857
|
-
var
|
|
2858
|
-
return typeof
|
|
2859
|
-
return
|
|
2857
|
+
var S = m && "process" in m ? m.process : m;
|
|
2858
|
+
return typeof S != "function" ? d : function(C, O) {
|
|
2859
|
+
return S(C, d, O);
|
|
2860
2860
|
};
|
|
2861
2861
|
}, b = {
|
|
2862
2862
|
camelize: r,
|
|
@@ -3255,50 +3255,48 @@ const kt = (e, t) => {
|
|
|
3255
3255
|
return this.mode ? `type-${this.mode}` : "";
|
|
3256
3256
|
}
|
|
3257
3257
|
}
|
|
3258
|
-
}, Nu = ["href"], Mu = {
|
|
3259
|
-
key:
|
|
3258
|
+
}, Nu = ["href"], Mu = {
|
|
3259
|
+
key: 0,
|
|
3260
3260
|
class: "loader"
|
|
3261
|
-
},
|
|
3262
|
-
key:
|
|
3261
|
+
}, Du = { class: "vi-button-icon" }, Iu = ["innerHTML"], Lu = ["type"], Fu = {
|
|
3262
|
+
key: 0,
|
|
3263
3263
|
class: "loader"
|
|
3264
|
-
};
|
|
3264
|
+
}, Ru = ["innerHTML"];
|
|
3265
3265
|
function ju(e, t, n, a, r, o) {
|
|
3266
3266
|
const i = W("font-awesome-icon");
|
|
3267
|
-
return n.link ? (
|
|
3267
|
+
return n.link ? (x(), A("a", {
|
|
3268
3268
|
key: 0,
|
|
3269
3269
|
href: n.link,
|
|
3270
3270
|
target: "_blank",
|
|
3271
3271
|
class: le(["vi-button", [{ "icon-right": n.iconRight }, { "is-disabled": n.isDisabled }, { "is-loading": n.isLoading }, o.buttonSize, o.buttonMode]])
|
|
3272
3272
|
}, [
|
|
3273
|
-
o.icon ? (
|
|
3274
|
-
key:
|
|
3273
|
+
n.isLoading ? (x(), A("div", Mu)) : o.icon ? (x(), U(i, {
|
|
3274
|
+
key: 1,
|
|
3275
3275
|
icon: ["fas", o.icon],
|
|
3276
3276
|
class: "vi-button-icon"
|
|
3277
|
-
}, null, 8, ["icon"])) :
|
|
3278
|
-
T("div",
|
|
3279
|
-
o.icon ?
|
|
3277
|
+
}, null, 8, ["icon"])) : z("", !0),
|
|
3278
|
+
T("div", Du, [
|
|
3279
|
+
!n.isLoading && !o.icon ? V(e.$slots, "icon", { key: 0 }) : z("", !0)
|
|
3280
3280
|
]),
|
|
3281
3281
|
T("span", {
|
|
3282
3282
|
class: "typestyle-b1 m-typestyle-b2",
|
|
3283
3283
|
innerHTML: n.label
|
|
3284
|
-
}, null, 8,
|
|
3285
|
-
|
|
3286
|
-
], 10, Nu)) : (S(), A("button", {
|
|
3284
|
+
}, null, 8, Iu)
|
|
3285
|
+
], 10, Nu)) : (x(), A("button", {
|
|
3287
3286
|
key: 1,
|
|
3288
3287
|
class: le(["vi-button", [{ "icon-right": n.iconRight }, { "is-disabled": n.isDisabled }, { "is-loading": n.isLoading }, o.buttonSize, o.buttonMode]]),
|
|
3289
3288
|
type: n.type,
|
|
3290
3289
|
onClick: t[0] || (t[0] = (s) => e.$emit("click", s))
|
|
3291
3290
|
}, [
|
|
3292
|
-
o.icon ? (
|
|
3293
|
-
key:
|
|
3291
|
+
n.isLoading ? (x(), A("span", Fu)) : o.icon ? (x(), U(i, {
|
|
3292
|
+
key: 1,
|
|
3294
3293
|
icon: ["fas", o.icon],
|
|
3295
3294
|
class: "vi-button-icon"
|
|
3296
|
-
}, null, 8, ["icon"])) :
|
|
3295
|
+
}, null, 8, ["icon"])) : z("", !0),
|
|
3297
3296
|
T("span", {
|
|
3298
3297
|
class: "typestyle-b1 m-typestyle-b2",
|
|
3299
3298
|
innerHTML: n.label
|
|
3300
|
-
}, null, 8,
|
|
3301
|
-
n.isLoading ? (S(), A("span", Ru)) : j("", !0)
|
|
3299
|
+
}, null, 8, Ru)
|
|
3302
3300
|
], 10, Lu));
|
|
3303
3301
|
}
|
|
3304
3302
|
const Fn = /* @__PURE__ */ kt(Eu, [["render", ju]]), zu = {
|
|
@@ -3320,13 +3318,13 @@ const Fn = /* @__PURE__ */ kt(Eu, [["render", ju]]), zu = {
|
|
|
3320
3318
|
}, Bu = { class: "vi-main-header" }, Vu = { class: "header-title" };
|
|
3321
3319
|
function Uu(e, t, n, a, r, o) {
|
|
3322
3320
|
const i = W("vi-button");
|
|
3323
|
-
return
|
|
3321
|
+
return x(), A("div", Bu, [
|
|
3324
3322
|
T("h3", Vu, G(n.headerTitle), 1),
|
|
3325
|
-
n.buttonLabel && n.showButton ? (
|
|
3323
|
+
n.buttonLabel && n.showButton ? (x(), U(i, {
|
|
3326
3324
|
key: 0,
|
|
3327
3325
|
"button-label": n.buttonLabel,
|
|
3328
3326
|
onClick: t[0] || (t[0] = (s) => e.$emit("buttonClick"))
|
|
3329
|
-
}, null, 8, ["button-label"])) :
|
|
3327
|
+
}, null, 8, ["button-label"])) : z("", !0)
|
|
3330
3328
|
]);
|
|
3331
3329
|
}
|
|
3332
3330
|
const Wu = /* @__PURE__ */ kt(zu, [["render", Uu]]), Yu = {
|
|
@@ -3346,8 +3344,8 @@ const Wu = /* @__PURE__ */ kt(zu, [["render", Uu]]), Yu = {
|
|
|
3346
3344
|
class: "header-container"
|
|
3347
3345
|
}, qu = { class: "content-container" };
|
|
3348
3346
|
function Hu(e, t, n, a, r, o) {
|
|
3349
|
-
return
|
|
3350
|
-
n.hideHeader ?
|
|
3347
|
+
return x(), A("div", $u, [
|
|
3348
|
+
n.hideHeader ? z("", !0) : (x(), A("div", Gu, [
|
|
3351
3349
|
V(e.$slots, "header")
|
|
3352
3350
|
])),
|
|
3353
3351
|
T("div", qu, [
|
|
@@ -3434,7 +3432,7 @@ const Ku = /* @__PURE__ */ kt(Yu, [["render", Hu]]), Xu = {
|
|
|
3434
3432
|
}, Ju = { class: "dialog-label" }, Zu = { class: "extra-content" }, ef = { class: "dialog-actions" };
|
|
3435
3433
|
function tf(e, t, n, a, r, o) {
|
|
3436
3434
|
const i = W("vi-button");
|
|
3437
|
-
return n.modelValue ? (
|
|
3435
|
+
return n.modelValue ? (x(), A("div", Qu, [
|
|
3438
3436
|
T("div", {
|
|
3439
3437
|
class: le(["dialog-container", [o.dialogEnterAnimationPosition, o.dialogSize]])
|
|
3440
3438
|
}, [
|
|
@@ -3443,14 +3441,14 @@ function tf(e, t, n, a, r, o) {
|
|
|
3443
3441
|
V(e.$slots, "default")
|
|
3444
3442
|
]),
|
|
3445
3443
|
T("div", ef, [
|
|
3446
|
-
n.hideConfirmButton ?
|
|
3444
|
+
n.hideConfirmButton ? z("", !0) : (x(), U(i, {
|
|
3447
3445
|
key: 0,
|
|
3448
3446
|
label: n.confirmButtonLabel,
|
|
3449
3447
|
"is-loading": e.isLoading,
|
|
3450
3448
|
"is-disabled": e.isLoading,
|
|
3451
3449
|
onClick: o.confirm
|
|
3452
3450
|
}, null, 8, ["label", "is-loading", "is-disabled", "onClick"])),
|
|
3453
|
-
n.hideCancelButton ?
|
|
3451
|
+
n.hideCancelButton ? z("", !0) : (x(), U(i, {
|
|
3454
3452
|
key: 1,
|
|
3455
3453
|
label: n.cancelButtonLabel,
|
|
3456
3454
|
"is-outlined": !0,
|
|
@@ -3459,7 +3457,7 @@ function tf(e, t, n, a, r, o) {
|
|
|
3459
3457
|
}, null, 8, ["label", "onClick"]))
|
|
3460
3458
|
])
|
|
3461
3459
|
], 2)
|
|
3462
|
-
])) :
|
|
3460
|
+
])) : z("", !0);
|
|
3463
3461
|
}
|
|
3464
3462
|
const nf = /* @__PURE__ */ kt(Xu, [["render", tf]]), af = {
|
|
3465
3463
|
name: "ViDialog",
|
|
@@ -3503,7 +3501,7 @@ const nf = /* @__PURE__ */ kt(Xu, [["render", tf]]), af = {
|
|
|
3503
3501
|
}, of = { class: "dialog-header-container" }, sf = ["innerHTML"], lf = { class: "dialog-content" };
|
|
3504
3502
|
function cf(e, t, n, a, r, o) {
|
|
3505
3503
|
const i = W("font-awesome-icon");
|
|
3506
|
-
return n.modelValue ? (
|
|
3504
|
+
return n.modelValue ? (x(), A("div", rf, [
|
|
3507
3505
|
T("div", {
|
|
3508
3506
|
class: le(["dialog-container", [o.dialogEnterAnimationPosition, o.dialogSize]])
|
|
3509
3507
|
}, [
|
|
@@ -3523,7 +3521,7 @@ function cf(e, t, n, a, r, o) {
|
|
|
3523
3521
|
V(e.$slots, "default")
|
|
3524
3522
|
])
|
|
3525
3523
|
], 2)
|
|
3526
|
-
])) :
|
|
3524
|
+
])) : z("", !0);
|
|
3527
3525
|
}
|
|
3528
3526
|
const uf = /* @__PURE__ */ kt(af, [["render", cf]]), so = Math.min, Lt = Math.max, bn = Math.round, be = (e) => ({
|
|
3529
3527
|
x: e,
|
|
@@ -3696,7 +3694,7 @@ const wf = async (e, t, n) => {
|
|
|
3696
3694
|
fn: d
|
|
3697
3695
|
} = s[w], {
|
|
3698
3696
|
x: m,
|
|
3699
|
-
y:
|
|
3697
|
+
y: S,
|
|
3700
3698
|
data: C,
|
|
3701
3699
|
reset: O
|
|
3702
3700
|
} = await d({
|
|
@@ -3713,7 +3711,7 @@ const wf = async (e, t, n) => {
|
|
|
3713
3711
|
floating: t
|
|
3714
3712
|
}
|
|
3715
3713
|
});
|
|
3716
|
-
u = m ?? u, f =
|
|
3714
|
+
u = m ?? u, f = S ?? f, p = {
|
|
3717
3715
|
...p,
|
|
3718
3716
|
[b]: {
|
|
3719
3717
|
...p[b],
|
|
@@ -3762,7 +3760,7 @@ async function xf(e, t) {
|
|
|
3762
3760
|
y: r,
|
|
3763
3761
|
width: i.floating.width,
|
|
3764
3762
|
height: i.floating.height
|
|
3765
|
-
} : i.reference, m = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(s.floating)),
|
|
3763
|
+
} : i.reference, m = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(s.floating)), S = await (o.isElement == null ? void 0 : o.isElement(m)) ? await (o.getScale == null ? void 0 : o.getScale(m)) || {
|
|
3766
3764
|
x: 1,
|
|
3767
3765
|
y: 1
|
|
3768
3766
|
} : {
|
|
@@ -3775,10 +3773,10 @@ async function xf(e, t) {
|
|
|
3775
3773
|
strategy: l
|
|
3776
3774
|
}) : d);
|
|
3777
3775
|
return {
|
|
3778
|
-
top: (b.top - C.top + h.top) /
|
|
3779
|
-
bottom: (C.bottom - b.bottom + h.bottom) /
|
|
3780
|
-
left: (b.left - C.left + h.left) /
|
|
3781
|
-
right: (C.right - b.right + h.right) /
|
|
3776
|
+
top: (b.top - C.top + h.top) / S.y,
|
|
3777
|
+
bottom: (C.bottom - b.bottom + h.bottom) / S.y,
|
|
3778
|
+
left: (b.left - C.left + h.left) / S.x,
|
|
3779
|
+
right: (C.right - b.right + h.right) / S.x
|
|
3782
3780
|
};
|
|
3783
3781
|
}
|
|
3784
3782
|
const Sf = function(e) {
|
|
@@ -3805,7 +3803,7 @@ const Sf = function(e) {
|
|
|
3805
3803
|
} = Fi(e, t);
|
|
3806
3804
|
if ((n = o.arrow) != null && n.alignmentOffset)
|
|
3807
3805
|
return {};
|
|
3808
|
-
const d = Ut(r), m = ft(s),
|
|
3806
|
+
const d = Ut(r), m = ft(s), S = Ut(s) === s, C = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), O = g || (S || !w ? [wn(s)] : pf(s)), M = h !== "none";
|
|
3809
3807
|
!g && M && O.push(...vf(s, w, h, C));
|
|
3810
3808
|
const E = [s, ...O], B = await xf(t, b), ne = [];
|
|
3811
3809
|
let ae = ((a = o.flip) == null ? void 0 : a.overflows) || [];
|
|
@@ -4018,8 +4016,8 @@ function Wt(e, t, n, a) {
|
|
|
4018
4016
|
const g = re(o), p = a && de(a) ? re(a) : a;
|
|
4019
4017
|
let h = g, w = Oa(h);
|
|
4020
4018
|
for (; w && a && p !== h; ) {
|
|
4021
|
-
const b = gt(w), d = w.getBoundingClientRect(), m = me(w),
|
|
4022
|
-
l *= b.x, c *= b.y, u *= b.x, f *= b.y, l +=
|
|
4019
|
+
const b = gt(w), d = w.getBoundingClientRect(), m = me(w), S = d.left + (w.clientLeft + parseFloat(m.paddingLeft)) * b.x, C = d.top + (w.clientTop + parseFloat(m.paddingTop)) * b.y;
|
|
4020
|
+
l *= b.x, c *= b.y, u *= b.x, f *= b.y, l += S, c += C, h = re(w), w = Oa(h);
|
|
4023
4021
|
}
|
|
4024
4022
|
}
|
|
4025
4023
|
return xn({
|
|
@@ -4300,7 +4298,7 @@ function Uf(e, t, n) {
|
|
|
4300
4298
|
}), l = k(() => {
|
|
4301
4299
|
var E;
|
|
4302
4300
|
return (E = _t(n.transform)) != null ? E : !0;
|
|
4303
|
-
}), c = k(() => mo(e.value)), u = k(() => mo(t.value)), f =
|
|
4301
|
+
}), c = k(() => mo(e.value)), u = k(() => mo(t.value)), f = j(0), g = j(0), p = j(s.value), h = j(i.value), w = Js({}), b = j(!1), d = k(() => {
|
|
4304
4302
|
const E = {
|
|
4305
4303
|
position: p.value,
|
|
4306
4304
|
left: "0",
|
|
@@ -4322,7 +4320,7 @@ function Uf(e, t, n) {
|
|
|
4322
4320
|
};
|
|
4323
4321
|
});
|
|
4324
4322
|
let m;
|
|
4325
|
-
function
|
|
4323
|
+
function S() {
|
|
4326
4324
|
if (c.value == null || u.value == null)
|
|
4327
4325
|
return;
|
|
4328
4326
|
const E = r.value;
|
|
@@ -4339,18 +4337,18 @@ function Uf(e, t, n) {
|
|
|
4339
4337
|
}
|
|
4340
4338
|
function O() {
|
|
4341
4339
|
if (C(), a === void 0) {
|
|
4342
|
-
|
|
4340
|
+
S();
|
|
4343
4341
|
return;
|
|
4344
4342
|
}
|
|
4345
4343
|
if (c.value != null && u.value != null) {
|
|
4346
|
-
m = a(c.value, u.value,
|
|
4344
|
+
m = a(c.value, u.value, S);
|
|
4347
4345
|
return;
|
|
4348
4346
|
}
|
|
4349
4347
|
}
|
|
4350
4348
|
function M() {
|
|
4351
4349
|
r.value || (b.value = !1);
|
|
4352
4350
|
}
|
|
4353
|
-
return Ze([o, i, s, r],
|
|
4351
|
+
return Ze([o, i, s, r], S, {
|
|
4354
4352
|
flush: "sync"
|
|
4355
4353
|
}), Ze([c, u], O, {
|
|
4356
4354
|
flush: "sync"
|
|
@@ -4364,7 +4362,7 @@ function Uf(e, t, n) {
|
|
|
4364
4362
|
middlewareData: st(w),
|
|
4365
4363
|
isPositioned: st(b),
|
|
4366
4364
|
floatingStyles: d,
|
|
4367
|
-
update:
|
|
4365
|
+
update: S
|
|
4368
4366
|
};
|
|
4369
4367
|
}
|
|
4370
4368
|
const Wf = {
|
|
@@ -4426,12 +4424,12 @@ const Wf = {
|
|
|
4426
4424
|
}
|
|
4427
4425
|
},
|
|
4428
4426
|
setup(e, { emit: t }) {
|
|
4429
|
-
const n =
|
|
4427
|
+
const n = j(null), a = j(null), r = k(() => e.position !== "auto" ? e.position : "bottom");
|
|
4430
4428
|
e.position;
|
|
4431
4429
|
const { floatingStyles: o, isPositioned: i } = Uf(n, a, {
|
|
4432
4430
|
placement: r,
|
|
4433
4431
|
middleware: [zf({ fallbackPlacements: ["bottom-start", "top-start", "bottom-end", "top-end"] })]
|
|
4434
|
-
}), s =
|
|
4432
|
+
}), s = j(!1), l = k(() => {
|
|
4435
4433
|
var h;
|
|
4436
4434
|
return !e.truncate || !c.value || e.truncate >= ((h = e.text) == null ? void 0 : h.trim().length) ? e.text : e.text.trim().slice(0, e.truncate) + "…";
|
|
4437
4435
|
}), c = k(() => e.text && typeof e.text == "string" && e.text.length > 0), u = k(() => !c.value || !e.truncate ? !1 : e.text.trim().length > e.truncate), f = k(() => e.showOnlyIfOverflowed ? !u.value : !1), g = k(() => e.customColor ? e.customColor : {
|
|
@@ -4455,7 +4453,7 @@ const Wf = {
|
|
|
4455
4453
|
}
|
|
4456
4454
|
}, Yf = { key: 0 };
|
|
4457
4455
|
function $f(e, t, n, a, r, o) {
|
|
4458
|
-
return
|
|
4456
|
+
return x(), A(ge, null, [
|
|
4459
4457
|
T("div", {
|
|
4460
4458
|
class: "vi-tooltip-content",
|
|
4461
4459
|
ref: "reference",
|
|
@@ -4469,14 +4467,14 @@ function $f(e, t, n, a, r, o) {
|
|
|
4469
4467
|
Ks(G(a.truncatedText), 1)
|
|
4470
4468
|
], !0)
|
|
4471
4469
|
], 544),
|
|
4472
|
-
a.open && !a.hideAlwaysTooltip ? (
|
|
4470
|
+
a.open && !a.hideAlwaysTooltip ? (x(), A("div", {
|
|
4473
4471
|
key: 0,
|
|
4474
4472
|
class: "vi-tooltip",
|
|
4475
4473
|
ref: "floating",
|
|
4476
4474
|
style: Xs({ ...a.floatingStyles, "background-color": a.backgroundColor, color: a.textColor })
|
|
4477
4475
|
}, [
|
|
4478
|
-
n.text ? (
|
|
4479
|
-
], 4)) :
|
|
4476
|
+
n.text ? (x(), A("span", Yf, G(n.text), 1)) : V(e.$slots, "content", { key: 1 }, void 0, !0)
|
|
4477
|
+
], 4)) : z("", !0)
|
|
4480
4478
|
], 64);
|
|
4481
4479
|
}
|
|
4482
4480
|
const Bn = /* @__PURE__ */ kt(Wf, [["render", $f], ["__scopeId", "data-v-33022d05"]]), Xt = {
|
|
@@ -5035,7 +5033,7 @@ const es = {
|
|
|
5035
5033
|
setup(e, {
|
|
5036
5034
|
attrs: t
|
|
5037
5035
|
}) {
|
|
5038
|
-
const n =
|
|
5036
|
+
const n = j(), a = k(() => e.hide ? "true" : "false"), r = k(() => ({
|
|
5039
5037
|
...t.style || {},
|
|
5040
5038
|
animationDuration: "".concat(e.autoClose === !0 ? 5e3 : e.autoClose, "ms"),
|
|
5041
5039
|
animationPlayState: e.isRunning ? "running" : "paused",
|
|
@@ -5167,7 +5165,7 @@ function _d(e, t, n = D.COLLAPSE_DURATION) {
|
|
|
5167
5165
|
});
|
|
5168
5166
|
}
|
|
5169
5167
|
function Ad(e) {
|
|
5170
|
-
const t =
|
|
5168
|
+
const t = j(!1), n = j(!1), a = j(!1), r = j(dn.Enter), o = xt({
|
|
5171
5169
|
...e,
|
|
5172
5170
|
appendPosition: e.appendPosition || !1,
|
|
5173
5171
|
collapse: typeof e.collapse > "u" ? !0 : e.collapse,
|
|
@@ -5183,12 +5181,12 @@ function Ad(e) {
|
|
|
5183
5181
|
w,
|
|
5184
5182
|
{ once: !0 }
|
|
5185
5183
|
);
|
|
5186
|
-
const
|
|
5184
|
+
const S = (O) => {
|
|
5187
5185
|
const M = g();
|
|
5188
|
-
O.target === M && (M.dispatchEvent(new Event(Ta.ENTRANCE_ANIMATION_END)), M.removeEventListener("animationend",
|
|
5186
|
+
O.target === M && (M.dispatchEvent(new Event(Ta.ENTRANCE_ANIMATION_END)), M.removeEventListener("animationend", S), M.removeEventListener("animationcancel", S), r.value === dn.Enter && O.type !== "animationcancel" && M.classList.remove(...m));
|
|
5189
5187
|
}, C = () => {
|
|
5190
5188
|
const O = g();
|
|
5191
|
-
O.classList.add(...m), O.addEventListener("animationend",
|
|
5189
|
+
O.classList.add(...m), O.addEventListener("animationend", S), O.addEventListener("animationcancel", S);
|
|
5192
5190
|
};
|
|
5193
5191
|
e.pauseOnFocusLoss && p(), C();
|
|
5194
5192
|
}
|
|
@@ -5198,11 +5196,11 @@ function Ad(e) {
|
|
|
5198
5196
|
const m = () => {
|
|
5199
5197
|
const C = g();
|
|
5200
5198
|
C.removeEventListener("animationend", m), o.collapse ? _d(C, i, o.collapseDuration) : i();
|
|
5201
|
-
},
|
|
5199
|
+
}, S = () => {
|
|
5202
5200
|
const C = g();
|
|
5203
5201
|
r.value = dn.Exit, C && (C.className += " ".concat(l.value), C.addEventListener("animationend", m));
|
|
5204
5202
|
};
|
|
5205
|
-
n.value || (a.value ? m() : setTimeout(
|
|
5203
|
+
n.value || (a.value ? m() : setTimeout(S));
|
|
5206
5204
|
}
|
|
5207
5205
|
function g() {
|
|
5208
5206
|
return e.toastRef.value;
|
|
@@ -5224,7 +5222,7 @@ function Ad(e) {
|
|
|
5224
5222
|
}
|
|
5225
5223
|
return on(f), on(() => {
|
|
5226
5224
|
const m = Qt();
|
|
5227
|
-
n.value = m.findIndex((
|
|
5225
|
+
n.value = m.findIndex((S) => S.toastId === o.toastId) > -1;
|
|
5228
5226
|
}), on(() => {
|
|
5229
5227
|
e.isLoading !== void 0 && (e.loading.value ? b() : w());
|
|
5230
5228
|
}), Za(u), er(() => {
|
|
@@ -5242,7 +5240,7 @@ const Od = /* @__PURE__ */ ke({
|
|
|
5242
5240
|
props: es,
|
|
5243
5241
|
// @ts-ignore
|
|
5244
5242
|
setup(e) {
|
|
5245
|
-
const t =
|
|
5243
|
+
const t = j(), n = k(() => !!e.isLoading), a = k(() => e.progress !== void 0 && e.progress !== null), r = k(() => Cd(e)), o = k(() => ["".concat(D.CSS_NAMESPACE, "__toast"), "".concat(D.CSS_NAMESPACE, "__toast-theme--").concat(e.theme), "".concat(D.CSS_NAMESPACE, "__toast--").concat(e.type), e.rtl ? "".concat(D.CSS_NAMESPACE, "__toast--rtl") : void 0, e.toastClassName || ""].filter(Boolean).join(" ")), {
|
|
5246
5244
|
isRunning: i,
|
|
5247
5245
|
isIn: s,
|
|
5248
5246
|
hideToast: l,
|
|
@@ -5590,7 +5588,7 @@ const Ud = {
|
|
|
5590
5588
|
}, Wd = ["value", "placeholder"];
|
|
5591
5589
|
function Yd(e, t, n, a, r, o) {
|
|
5592
5590
|
const i = W("vi-tooltip");
|
|
5593
|
-
return o.isEditable ? (
|
|
5591
|
+
return o.isEditable ? (x(), A("div", oe({
|
|
5594
5592
|
key: 1,
|
|
5595
5593
|
class: "vi-grid-text editable"
|
|
5596
5594
|
}, e.$attrs), [
|
|
@@ -5601,7 +5599,7 @@ function Yd(e, t, n, a, r, o) {
|
|
|
5601
5599
|
onClick: t[0] || (t[0] = En((s) => s.stopPropagation(), ["stop"])),
|
|
5602
5600
|
onInput: t[1] || (t[1] = (...s) => o.emitValue && o.emitValue(...s))
|
|
5603
5601
|
}, null, 40, Wd)
|
|
5604
|
-
], 16)) : (
|
|
5602
|
+
], 16)) : (x(), A("div", oe({
|
|
5605
5603
|
key: 0,
|
|
5606
5604
|
class: "vi-grid-text"
|
|
5607
5605
|
}, e.$attrs), [
|
|
@@ -6845,12 +6843,12 @@ var Zm = {
|
|
|
6845
6843
|
const eg = Zm;
|
|
6846
6844
|
var tg = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ng = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ag = /^'([^]*?)'?$/, rg = /''/g, og = /[a-zA-Z]/;
|
|
6847
6845
|
function ig(e, t, n) {
|
|
6848
|
-
var a, r, o, i, s, l, c, u, f, g, p, h, w, b, d, m,
|
|
6846
|
+
var a, r, o, i, s, l, c, u, f, g, p, h, w, b, d, m, S, C;
|
|
6849
6847
|
K(2, arguments);
|
|
6850
6848
|
var O = String(t), M = Yn(), E = (a = (r = n == null ? void 0 : n.locale) !== null && r !== void 0 ? r : M.locale) !== null && a !== void 0 ? a : eg, B = Ye((o = (i = (s = (l = n == null ? void 0 : n.firstWeekContainsDate) !== null && l !== void 0 ? l : n == null || (c = n.locale) === null || c === void 0 || (u = c.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && s !== void 0 ? s : M.firstWeekContainsDate) !== null && i !== void 0 ? i : (f = M.locale) === null || f === void 0 || (g = f.options) === null || g === void 0 ? void 0 : g.firstWeekContainsDate) !== null && o !== void 0 ? o : 1);
|
|
6851
6849
|
if (!(B >= 1 && B <= 7))
|
|
6852
6850
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
6853
|
-
var ne = Ye((p = (h = (w = (b = n == null ? void 0 : n.weekStartsOn) !== null && b !== void 0 ? b : n == null || (d = n.locale) === null || d === void 0 || (m = d.options) === null || m === void 0 ? void 0 : m.weekStartsOn) !== null && w !== void 0 ? w : M.weekStartsOn) !== null && h !== void 0 ? h : (
|
|
6851
|
+
var ne = Ye((p = (h = (w = (b = n == null ? void 0 : n.weekStartsOn) !== null && b !== void 0 ? b : n == null || (d = n.locale) === null || d === void 0 || (m = d.options) === null || m === void 0 ? void 0 : m.weekStartsOn) !== null && w !== void 0 ? w : M.weekStartsOn) !== null && h !== void 0 ? h : (S = M.locale) === null || S === void 0 || (C = S.options) === null || C === void 0 ? void 0 : C.weekStartsOn) !== null && p !== void 0 ? p : 0);
|
|
6854
6852
|
if (!(ne >= 0 && ne <= 6))
|
|
6855
6853
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
6856
6854
|
if (!E.localize)
|
|
@@ -7034,7 +7032,7 @@ const Cg = {
|
|
|
7034
7032
|
}
|
|
7035
7033
|
}, Pg = { class: "vi-grid-date" };
|
|
7036
7034
|
function _g(e, t, n, a, r, o) {
|
|
7037
|
-
return
|
|
7035
|
+
return x(), A("div", Pg, G(o.dateFormatted), 1);
|
|
7038
7036
|
}
|
|
7039
7037
|
const Ag = /* @__PURE__ */ Q(Cg, [["render", _g]]);
|
|
7040
7038
|
/*!
|
|
@@ -8648,7 +8646,7 @@ function Ar(e) {
|
|
|
8648
8646
|
symbol: i,
|
|
8649
8647
|
styles: y(y({}, d), u.styles)
|
|
8650
8648
|
}), {
|
|
8651
|
-
children:
|
|
8649
|
+
children: S,
|
|
8652
8650
|
attributes: C
|
|
8653
8651
|
} = n.found && t.found ? qe("generateAbstractMask", m) || {
|
|
8654
8652
|
children: [],
|
|
@@ -8657,7 +8655,7 @@ function Ar(e) {
|
|
|
8657
8655
|
children: [],
|
|
8658
8656
|
attributes: {}
|
|
8659
8657
|
};
|
|
8660
|
-
return m.children =
|
|
8658
|
+
return m.children = S, m.attributes = C, i ? Yp(m) : Wp(m);
|
|
8661
8659
|
}
|
|
8662
8660
|
function Do(e) {
|
|
8663
8661
|
const {
|
|
@@ -9337,16 +9335,16 @@ function Uo(e, t) {
|
|
|
9337
9335
|
} = vh(g), b = c[0].startsWith("FontAwesome");
|
|
9338
9336
|
let d = _r(p, h), m = d;
|
|
9339
9337
|
if (b) {
|
|
9340
|
-
const
|
|
9341
|
-
|
|
9338
|
+
const S = Tp(h);
|
|
9339
|
+
S.iconName && S.prefix && (d = S.iconName, p = S.prefix);
|
|
9342
9340
|
}
|
|
9343
9341
|
if (d && !w && (!i || i.getAttribute(wr) !== p || i.getAttribute(xr) !== m)) {
|
|
9344
9342
|
e.setAttribute(n, m), i && e.removeChild(i);
|
|
9345
|
-
const
|
|
9343
|
+
const S = oh(), {
|
|
9346
9344
|
extra: C
|
|
9347
|
-
} =
|
|
9345
|
+
} = S;
|
|
9348
9346
|
C.attributes[ja] = t, qa(d, p).then((O) => {
|
|
9349
|
-
const M = Ar(y(y({},
|
|
9347
|
+
const M = Ar(y(y({}, S), {}, {
|
|
9350
9348
|
icons: {
|
|
9351
9349
|
main: O,
|
|
9352
9350
|
mask: Fs()
|
|
@@ -9584,7 +9582,7 @@ var Ph = {
|
|
|
9584
9582
|
tag: "g",
|
|
9585
9583
|
attributes: y({}, g.outer),
|
|
9586
9584
|
children: [w]
|
|
9587
|
-
}, d = "mask-".concat(i || $t()), m = "clip-".concat(i || $t()),
|
|
9585
|
+
}, d = "mask-".concat(i || $t()), m = "clip-".concat(i || $t()), S = {
|
|
9588
9586
|
tag: "mask",
|
|
9589
9587
|
attributes: y(y({}, ca), {}, {
|
|
9590
9588
|
id: d,
|
|
@@ -9600,7 +9598,7 @@ var Ph = {
|
|
|
9600
9598
|
id: m
|
|
9601
9599
|
},
|
|
9602
9600
|
children: Ch(f)
|
|
9603
|
-
},
|
|
9601
|
+
}, S]
|
|
9604
9602
|
};
|
|
9605
9603
|
return n.push(C, {
|
|
9606
9604
|
tag: "rect",
|
|
@@ -9821,26 +9819,26 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9821
9819
|
var zh = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, $s = { exports: {} };
|
|
9822
9820
|
(function(e) {
|
|
9823
9821
|
(function(t) {
|
|
9824
|
-
var n = function(d, m,
|
|
9822
|
+
var n = function(d, m, S) {
|
|
9825
9823
|
if (!c(m) || f(m) || g(m) || p(m) || l(m))
|
|
9826
9824
|
return m;
|
|
9827
9825
|
var C, O = 0, M = 0;
|
|
9828
9826
|
if (u(m))
|
|
9829
9827
|
for (C = [], M = m.length; O < M; O++)
|
|
9830
|
-
C.push(n(d, m[O],
|
|
9828
|
+
C.push(n(d, m[O], S));
|
|
9831
9829
|
else {
|
|
9832
9830
|
C = {};
|
|
9833
9831
|
for (var E in m)
|
|
9834
|
-
Object.prototype.hasOwnProperty.call(m, E) && (C[d(E,
|
|
9832
|
+
Object.prototype.hasOwnProperty.call(m, E) && (C[d(E, S)] = n(d, m[E], S));
|
|
9835
9833
|
}
|
|
9836
9834
|
return C;
|
|
9837
9835
|
}, a = function(d, m) {
|
|
9838
9836
|
m = m || {};
|
|
9839
|
-
var
|
|
9840
|
-
return d.split(C).join(
|
|
9837
|
+
var S = m.separator || "_", C = m.split || /(?=[A-Z])/;
|
|
9838
|
+
return d.split(C).join(S);
|
|
9841
9839
|
}, r = function(d) {
|
|
9842
|
-
return h(d) ? d : (d = d.replace(/[\-_\s]+(.)?/g, function(m,
|
|
9843
|
-
return
|
|
9840
|
+
return h(d) ? d : (d = d.replace(/[\-_\s]+(.)?/g, function(m, S) {
|
|
9841
|
+
return S ? S.toUpperCase() : "";
|
|
9844
9842
|
}), d.substr(0, 1).toLowerCase() + d.substr(1));
|
|
9845
9843
|
}, o = function(d) {
|
|
9846
9844
|
var m = r(d);
|
|
@@ -9862,9 +9860,9 @@ var zh = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
9862
9860
|
}, h = function(d) {
|
|
9863
9861
|
return d = d - 0, d === d;
|
|
9864
9862
|
}, w = function(d, m) {
|
|
9865
|
-
var
|
|
9866
|
-
return typeof
|
|
9867
|
-
return
|
|
9863
|
+
var S = m && "process" in m ? m.process : m;
|
|
9864
|
+
return typeof S != "function" ? d : function(C, O) {
|
|
9865
|
+
return S(C, d, O);
|
|
9868
9866
|
};
|
|
9869
9867
|
}, b = {
|
|
9870
9868
|
camelize: r,
|
|
@@ -10232,19 +10230,19 @@ const Gh = {
|
|
|
10232
10230
|
}, Hh = ["onClick"];
|
|
10233
10231
|
function Kh(e, t, n, a, r, o) {
|
|
10234
10232
|
const i = W("font-awesome-icon");
|
|
10235
|
-
return
|
|
10233
|
+
return x(), A("div", {
|
|
10236
10234
|
class: "vi-grid-kebab-menu",
|
|
10237
10235
|
ref: "kebabMenu",
|
|
10238
10236
|
onClick: t[0] || (t[0] = En((s) => e.$emit("toggleMenu"), ["stop"]))
|
|
10239
10237
|
}, [
|
|
10240
10238
|
N(i, { icon: ["fas", "ellipsis"] }),
|
|
10241
|
-
n.showMenu ? (
|
|
10242
|
-
(
|
|
10239
|
+
n.showMenu ? (x(), A("div", qh, [
|
|
10240
|
+
(x(!0), A(ge, null, ze(n.actions, (s) => (x(), A("div", {
|
|
10243
10241
|
key: s.action,
|
|
10244
10242
|
onClick: (l) => e.$emit("action-clicked", s.action),
|
|
10245
10243
|
class: "actions-menu-item"
|
|
10246
10244
|
}, G(s.name), 9, Hh))), 128))
|
|
10247
|
-
])) :
|
|
10245
|
+
])) : z("", !0)
|
|
10248
10246
|
], 512);
|
|
10249
10247
|
}
|
|
10250
10248
|
const Xh = /* @__PURE__ */ Q(Gh, [["render", Kh]]);
|
|
@@ -10260,8 +10258,8 @@ const Qh = {
|
|
|
10260
10258
|
}, Jh = { class: "vi-grid-builder-actions" };
|
|
10261
10259
|
function Zh(e, t, n, a, r, o) {
|
|
10262
10260
|
const i = W("vi-button");
|
|
10263
|
-
return
|
|
10264
|
-
(
|
|
10261
|
+
return x(), A("div", Jh, [
|
|
10262
|
+
(x(!0), A(ge, null, ze(n.actions, (s, l) => (x(), U(i, {
|
|
10265
10263
|
key: l,
|
|
10266
10264
|
label: s.name,
|
|
10267
10265
|
mode: s.mode,
|
|
@@ -10303,7 +10301,7 @@ const n1 = {
|
|
|
10303
10301
|
},
|
|
10304
10302
|
setup(e, { emit: t }) {
|
|
10305
10303
|
const { visibleActions: n, onActionClicked: a, toggleRowMenu: r } = t1(e, t);
|
|
10306
|
-
let o =
|
|
10304
|
+
let o = j(null);
|
|
10307
10305
|
return Za(() => {
|
|
10308
10306
|
o.clickOutsideHandler = (i) => {
|
|
10309
10307
|
e.rowMenuOpened && o.value && !(o.value === i.target || o.value.contains(i.target)) && t("update:rowMenuOpened", null);
|
|
@@ -10323,8 +10321,8 @@ const n1 = {
|
|
|
10323
10321
|
};
|
|
10324
10322
|
function r1(e, t, n, a, r, o) {
|
|
10325
10323
|
const i = W("vi-grid-kebab-menu"), s = W("vi-grid-simple-actions");
|
|
10326
|
-
return
|
|
10327
|
-
n.kebab ? (
|
|
10324
|
+
return x(), A("div", a1, [
|
|
10325
|
+
n.kebab ? (x(), U(i, {
|
|
10328
10326
|
key: 0,
|
|
10329
10327
|
actions: a.visibleActions,
|
|
10330
10328
|
"row-key": n.rowKey,
|
|
@@ -10332,7 +10330,7 @@ function r1(e, t, n, a, r, o) {
|
|
|
10332
10330
|
"show-menu": n.row[n.rowKey] === n.rowMenuOpened,
|
|
10333
10331
|
onActionClicked: a.onActionClicked,
|
|
10334
10332
|
onToggleMenu: t[0] || (t[0] = (l) => a.toggleRowMenu(n.row))
|
|
10335
|
-
}, null, 8, ["actions", "row-key", "row", "show-menu", "onActionClicked"])) : (
|
|
10333
|
+
}, null, 8, ["actions", "row-key", "row", "show-menu", "onActionClicked"])) : (x(), U(s, {
|
|
10336
10334
|
key: 1,
|
|
10337
10335
|
actions: a.visibleActions,
|
|
10338
10336
|
"row-key": n.rowKey,
|
|
@@ -10366,7 +10364,7 @@ const i1 = {
|
|
|
10366
10364
|
}, s1 = { class: "vi-grid-link" }, l1 = ["href"], c1 = { key: 1 };
|
|
10367
10365
|
function u1(e, t, n, a, r, o) {
|
|
10368
10366
|
const i = W("vi-tooltip");
|
|
10369
|
-
return
|
|
10367
|
+
return x(), A("div", s1, [
|
|
10370
10368
|
N(i, {
|
|
10371
10369
|
text: n.value,
|
|
10372
10370
|
color: o.ViGridTooltipSettings.color,
|
|
@@ -10377,12 +10375,12 @@ function u1(e, t, n, a, r, o) {
|
|
|
10377
10375
|
"show-only-if-overflowed": ""
|
|
10378
10376
|
}, {
|
|
10379
10377
|
text: ct(({ text: s }) => [
|
|
10380
|
-
n.link && n.row[n.link] || !n.link && n.value ? (
|
|
10378
|
+
n.link && n.row[n.link] || !n.link && n.value ? (x(), A("a", {
|
|
10381
10379
|
key: 0,
|
|
10382
10380
|
href: n.row[n.link] ?? n.value,
|
|
10383
10381
|
target: "_blank",
|
|
10384
10382
|
onClick: t[0] || (t[0] = (l) => l.stopPropagation())
|
|
10385
|
-
}, G(s), 9, l1)) : (
|
|
10383
|
+
}, G(s), 9, l1)) : (x(), A("div", c1, G(s), 1))
|
|
10386
10384
|
]),
|
|
10387
10385
|
_: 1
|
|
10388
10386
|
}, 8, ["text", "color", "custom-color", "text-custom-color", "truncate"])
|
|
@@ -10404,7 +10402,7 @@ const d1 = {
|
|
|
10404
10402
|
}
|
|
10405
10403
|
}, m1 = { class: "vi-grid-number" };
|
|
10406
10404
|
function g1(e, t, n, a, r, o) {
|
|
10407
|
-
return
|
|
10405
|
+
return x(), A("div", m1, G(o.formattedNumber), 1);
|
|
10408
10406
|
}
|
|
10409
10407
|
const p1 = /* @__PURE__ */ Q(d1, [["render", g1]]);
|
|
10410
10408
|
const h1 = {
|
|
@@ -10443,8 +10441,8 @@ const h1 = {
|
|
|
10443
10441
|
}
|
|
10444
10442
|
}, v1 = { class: "vi-grid-field" };
|
|
10445
10443
|
function y1(e, t, n, a, r, o) {
|
|
10446
|
-
return
|
|
10447
|
-
(
|
|
10444
|
+
return x(), A("div", v1, [
|
|
10445
|
+
(x(), U(sn(o.fieldComponent), oe({
|
|
10448
10446
|
...n.field,
|
|
10449
10447
|
...e.$attrs
|
|
10450
10448
|
}, {
|
|
@@ -10472,7 +10470,7 @@ const w1 = {
|
|
|
10472
10470
|
}
|
|
10473
10471
|
}, x1 = { class: "vi-grid-checkbox" }, S1 = ["checked"];
|
|
10474
10472
|
function k1(e, t, n, a, r, o) {
|
|
10475
|
-
return
|
|
10473
|
+
return x(), A("div", x1, [
|
|
10476
10474
|
T("input", {
|
|
10477
10475
|
type: "checkbox",
|
|
10478
10476
|
checked: n.value,
|
|
@@ -10513,7 +10511,7 @@ const _1 = {
|
|
|
10513
10511
|
}],
|
|
10514
10512
|
rowsPerPage: 10,
|
|
10515
10513
|
defaultSlots: {}
|
|
10516
|
-
}, Nr =
|
|
10514
|
+
}, Nr = j({});
|
|
10517
10515
|
function A1(e) {
|
|
10518
10516
|
const t = ["align", "disablePagination", "defaultSlots", "noDataLabel", "noCellDataLabel", "stripped", "bordered", "compactPagination", "rowsPerPageOptions", "rowsPerPage"];
|
|
10519
10517
|
return {
|
|
@@ -10550,7 +10548,7 @@ function O1(e, t, n) {
|
|
|
10550
10548
|
};
|
|
10551
10549
|
}
|
|
10552
10550
|
function T1(e) {
|
|
10553
|
-
let t =
|
|
10551
|
+
let t = j(!0), n = j(null), a = j(null), r = j(null);
|
|
10554
10552
|
const o = function(h) {
|
|
10555
10553
|
return r.value !== h ? "ascending" : n.value === "ascending" ? "descending" : null;
|
|
10556
10554
|
}, i = function(h, w = "text", b = "auto") {
|
|
@@ -10637,7 +10635,7 @@ const N1 = {
|
|
|
10637
10635
|
}
|
|
10638
10636
|
}, M1 = ["colspan"];
|
|
10639
10637
|
function D1(e, t, n, a, r, o) {
|
|
10640
|
-
return
|
|
10638
|
+
return x(), A("th", {
|
|
10641
10639
|
class: "vi-header-cell vi-cell",
|
|
10642
10640
|
colspan: n.colspan
|
|
10643
10641
|
}, [
|
|
@@ -10650,7 +10648,7 @@ function D1(e, t, n, a, r, o) {
|
|
|
10650
10648
|
}
|
|
10651
10649
|
const qs = /* @__PURE__ */ Q(N1, [["render", D1]]);
|
|
10652
10650
|
function I1(e, t, n) {
|
|
10653
|
-
let a =
|
|
10651
|
+
let a = j([]);
|
|
10654
10652
|
const r = (l, c) => {
|
|
10655
10653
|
c ? a.value.push(l[e.rowKey]) : a.value = a.value.filter((u) => u !== l[e.rowKey]), t("selectedRowsUpdate", a.value);
|
|
10656
10654
|
}, o = (l) => {
|
|
@@ -10703,7 +10701,7 @@ const L1 = {
|
|
|
10703
10701
|
};
|
|
10704
10702
|
function R1(e, t, n, a, r, o) {
|
|
10705
10703
|
const i = W("vi-tooltip"), s = W("font-awesome-icon"), l = W("vi-grid-head-cell");
|
|
10706
|
-
return
|
|
10704
|
+
return x(), U(l, {
|
|
10707
10705
|
class: le([n.sortableState, "vi-grid-header-column-cell"]),
|
|
10708
10706
|
align: n.column.align ?? n.align
|
|
10709
10707
|
}, {
|
|
@@ -10718,24 +10716,24 @@ function R1(e, t, n, a, r, o) {
|
|
|
10718
10716
|
"text-custom-color": o.ViGridTooltipSettings.textCustomColor
|
|
10719
10717
|
}, null, 8, ["text", "truncate", "color", "custom-color", "text-custom-color"])
|
|
10720
10718
|
], !0),
|
|
10721
|
-
n.column.sortable ? (
|
|
10722
|
-
n.sortableState === "descending" ? (
|
|
10719
|
+
n.column.sortable ? (x(), A("div", F1, [
|
|
10720
|
+
n.sortableState === "descending" ? (x(), U(s, {
|
|
10723
10721
|
key: 0,
|
|
10724
10722
|
icon: ["fas", "chevron-down"],
|
|
10725
10723
|
onClick: t[0] || (t[0] = (c) => e.$emit("sort", n.column))
|
|
10726
|
-
})) : (
|
|
10724
|
+
})) : (x(), U(s, {
|
|
10727
10725
|
key: 1,
|
|
10728
10726
|
icon: ["fas", "chevron-up"],
|
|
10729
10727
|
onClick: t[1] || (t[1] = (c) => e.$emit("sort", n.column))
|
|
10730
10728
|
}))
|
|
10731
|
-
])) :
|
|
10729
|
+
])) : z("", !0)
|
|
10732
10730
|
]),
|
|
10733
10731
|
_: 3
|
|
10734
10732
|
}, 8, ["class", "align"]);
|
|
10735
10733
|
}
|
|
10736
10734
|
const j1 = /* @__PURE__ */ Q(L1, [["render", R1], ["__scopeId", "data-v-506beebe"]]);
|
|
10737
10735
|
function z1(e) {
|
|
10738
|
-
let t =
|
|
10736
|
+
let t = j(null), n = j(!1);
|
|
10739
10737
|
return {
|
|
10740
10738
|
isFetchingData: n,
|
|
10741
10739
|
fetchData: ({ pagination: r, filter: o, search: i } = {}) => {
|
|
@@ -10845,7 +10843,7 @@ const B1 = {
|
|
|
10845
10843
|
}
|
|
10846
10844
|
},
|
|
10847
10845
|
setup(e, { emit: t }) {
|
|
10848
|
-
let n =
|
|
10846
|
+
let n = j(null);
|
|
10849
10847
|
const { isFetchingData: a, fetchData: r, search: o } = z1(e), { visibleColumns: i, totalColumns: s } = P1(e), {
|
|
10850
10848
|
setSortFieldsFromPagination: l,
|
|
10851
10849
|
getSortableState: c,
|
|
@@ -10893,20 +10891,20 @@ const B1 = {
|
|
|
10893
10891
|
},
|
|
10894
10892
|
{ deep: !0 }
|
|
10895
10893
|
);
|
|
10896
|
-
const { currentVisibleRows:
|
|
10894
|
+
const { currentVisibleRows: S, totalRows: C, onRowClicked: O } = O1(e, t, h), {
|
|
10897
10895
|
selectedRows: M,
|
|
10898
10896
|
toggleMasterSelect: E,
|
|
10899
10897
|
toggleRowSelect: B,
|
|
10900
10898
|
areAllRowsSelected: ne,
|
|
10901
10899
|
isRowSelected: ae
|
|
10902
|
-
} = I1(e, t,
|
|
10900
|
+
} = I1(e, t, S), ot = k(() => e.loading || a.value);
|
|
10903
10901
|
e.serverMode && e.fetchOnInit && w();
|
|
10904
10902
|
const { settings: it } = A1(e);
|
|
10905
10903
|
return {
|
|
10906
10904
|
search: o,
|
|
10907
10905
|
isFetchingData: a,
|
|
10908
10906
|
totalRows: C,
|
|
10909
|
-
currentVisibleRows:
|
|
10907
|
+
currentVisibleRows: S,
|
|
10910
10908
|
visibleColumns: i,
|
|
10911
10909
|
totalColumns: s,
|
|
10912
10910
|
selectedRows: M,
|
|
@@ -10955,31 +10953,34 @@ const B1 = {
|
|
|
10955
10953
|
}, V1 = { class: "vi-grid-builder" }, U1 = {
|
|
10956
10954
|
key: 0,
|
|
10957
10955
|
class: "top-container"
|
|
10958
|
-
}, W1 = {
|
|
10956
|
+
}, W1 = {
|
|
10957
|
+
key: 0,
|
|
10958
|
+
class: "selectable-column"
|
|
10959
|
+
}, Y1 = { class: "vi-table-head" }, $1 = {
|
|
10959
10960
|
key: 0,
|
|
10960
10961
|
class: "vi-header-row vi-table-row vi-title-row"
|
|
10961
|
-
},
|
|
10962
|
+
}, G1 = { class: "vi-header-row vi-table-row" }, q1 = {
|
|
10962
10963
|
key: 1,
|
|
10963
10964
|
class: "vi-body-row vi-table-row vi-loading-row"
|
|
10964
|
-
},
|
|
10965
|
+
}, H1 = {
|
|
10965
10966
|
key: 1,
|
|
10966
10967
|
class: "loading-bar-container"
|
|
10967
|
-
},
|
|
10968
|
+
}, K1 = {
|
|
10968
10969
|
key: 0,
|
|
10969
10970
|
class: "vi-table-body"
|
|
10970
|
-
},
|
|
10971
|
+
}, X1 = { class: "vi-body-row vi-table-row vi-no-data-row" }, Q1 = ["colspan"], J1 = { key: 1 }, Z1 = {
|
|
10971
10972
|
key: 1,
|
|
10972
10973
|
class: "vi-table-body"
|
|
10973
|
-
},
|
|
10974
|
+
}, ev = ["onClick"], tv = {
|
|
10974
10975
|
key: 0,
|
|
10975
10976
|
class: "vi-cell vi-select-cell"
|
|
10976
|
-
},
|
|
10977
|
-
function
|
|
10977
|
+
}, nv = { class: "vi-body-row vi-table-row vi-footer-row" }, av = ["colspan"];
|
|
10978
|
+
function rv(e, t, n, a, r, o) {
|
|
10978
10979
|
const i = W("vi-grid-head-cell"), s = W("vi-grid-checkbox"), l = W("vi-grid-head-column-cell"), c = W("vi-grid-field"), u = W("vi-pagination");
|
|
10979
|
-
return
|
|
10980
|
-
e.$slots.top ? (
|
|
10980
|
+
return x(), A("div", V1, [
|
|
10981
|
+
e.$slots.top ? (x(), A("div", U1, [
|
|
10981
10982
|
V(e.$slots, "top")
|
|
10982
|
-
])) :
|
|
10983
|
+
])) : z("", !0),
|
|
10983
10984
|
T("div", {
|
|
10984
10985
|
class: le(["vi-table-container", { loading: a.isDataLoading }])
|
|
10985
10986
|
}, [
|
|
@@ -10987,13 +10988,14 @@ function av(e, t, n, a, r, o) {
|
|
|
10987
10988
|
class: le(["vi-table", { stripped: a.settings.stripped, bordered: a.settings.bordered }])
|
|
10988
10989
|
}, [
|
|
10989
10990
|
T("colgroup", null, [
|
|
10990
|
-
(
|
|
10991
|
-
|
|
10991
|
+
n.selectable ? (x(), A("col", W1)) : z("", !0),
|
|
10992
|
+
(x(!0), A(ge, null, ze(a.visibleColumns, (f, g) => (x(), A("col", {
|
|
10993
|
+
class: le({ "first-column": g === 0, "last-column": g === a.visibleColumns.length - 1, ["column-" + g]: !0, [f.type]: !0, ["column-" + f.name]: !0 })
|
|
10992
10994
|
}, null, 2))), 256))
|
|
10993
10995
|
]),
|
|
10994
|
-
T("thead",
|
|
10995
|
-
n.title ? (
|
|
10996
|
-
n.title ? (
|
|
10996
|
+
T("thead", Y1, [
|
|
10997
|
+
n.title ? (x(), A("tr", $1, [
|
|
10998
|
+
n.title ? (x(), U(i, {
|
|
10997
10999
|
key: 0,
|
|
10998
11000
|
colspan: a.visibleColumns.length,
|
|
10999
11001
|
align: "left",
|
|
@@ -11005,10 +11007,10 @@ function av(e, t, n, a, r, o) {
|
|
|
11005
11007
|
])
|
|
11006
11008
|
]),
|
|
11007
11009
|
_: 3
|
|
11008
|
-
}, 8, ["colspan"])) :
|
|
11009
|
-
])) :
|
|
11010
|
-
T("tr",
|
|
11011
|
-
n.selectable ? (
|
|
11010
|
+
}, 8, ["colspan"])) : z("", !0)
|
|
11011
|
+
])) : z("", !0),
|
|
11012
|
+
T("tr", G1, [
|
|
11013
|
+
n.selectable ? (x(), U(i, {
|
|
11012
11014
|
key: 0,
|
|
11013
11015
|
class: "vi-select-cell",
|
|
11014
11016
|
align: a.settings.align
|
|
@@ -11021,8 +11023,8 @@ function av(e, t, n, a, r, o) {
|
|
|
11021
11023
|
}, null, 8, ["value"])
|
|
11022
11024
|
]),
|
|
11023
11025
|
_: 1
|
|
11024
|
-
}, 8, ["align"])) :
|
|
11025
|
-
(
|
|
11026
|
+
}, 8, ["align"])) : z("", !0),
|
|
11027
|
+
(x(!0), A(ge, null, ze(a.visibleColumns, (f) => (x(), U(l, {
|
|
11026
11028
|
key: f.name,
|
|
11027
11029
|
column: f,
|
|
11028
11030
|
align: a.settings.align,
|
|
@@ -11035,40 +11037,40 @@ function av(e, t, n, a, r, o) {
|
|
|
11035
11037
|
_: 2
|
|
11036
11038
|
}, 1032, ["column", "align", "sortable-state", "onSort"]))), 128))
|
|
11037
11039
|
]),
|
|
11038
|
-
a.isDataLoading ? (
|
|
11040
|
+
a.isDataLoading ? (x(), A("tr", q1, [
|
|
11039
11041
|
N(i, {
|
|
11040
11042
|
colspan: a.totalColumns,
|
|
11041
11043
|
class: "vi-loading-cell"
|
|
11042
11044
|
}, {
|
|
11043
11045
|
default: ct(() => [
|
|
11044
11046
|
V(e.$slots, "loading", {}, () => [
|
|
11045
|
-
a.settings.defaultSlots.loading ? (
|
|
11047
|
+
a.settings.defaultSlots.loading ? (x(), U(sn(a.settings.defaultSlots.loading), { key: 0 })) : (x(), A("div", H1, t[2] || (t[2] = [
|
|
11046
11048
|
T("div", { class: "loading-bar" }, null, -1)
|
|
11047
11049
|
])))
|
|
11048
11050
|
])
|
|
11049
11051
|
]),
|
|
11050
11052
|
_: 3
|
|
11051
11053
|
}, 8, ["colspan"])
|
|
11052
|
-
])) :
|
|
11054
|
+
])) : z("", !0)
|
|
11053
11055
|
]),
|
|
11054
|
-
!a.currentVisibleRows.length && !a.isDataLoading ? (
|
|
11055
|
-
T("tr",
|
|
11056
|
+
!a.currentVisibleRows.length && !a.isDataLoading ? (x(), A("tbody", K1, [
|
|
11057
|
+
T("tr", X1, [
|
|
11056
11058
|
T("td", {
|
|
11057
11059
|
class: "vi-body-cell vi-cell",
|
|
11058
11060
|
colspan: a.totalColumns
|
|
11059
11061
|
}, [
|
|
11060
11062
|
V(e.$slots, "empty-data", {}, () => [
|
|
11061
|
-
a.settings.defaultSlots.noRows ? (
|
|
11063
|
+
a.settings.defaultSlots.noRows ? (x(), U(sn(a.settings.defaultSlots.noRows), { key: 0 })) : (x(), A("span", J1, G(a.settings.noDataLabel), 1))
|
|
11062
11064
|
])
|
|
11063
|
-
], 8,
|
|
11065
|
+
], 8, Q1)
|
|
11064
11066
|
])
|
|
11065
|
-
])) : (
|
|
11066
|
-
(
|
|
11067
|
+
])) : (x(), A("tbody", Z1, [
|
|
11068
|
+
(x(!0), A(ge, null, ze(a.currentVisibleRows, (f) => (x(), A("tr", {
|
|
11067
11069
|
key: f[n.rowKey],
|
|
11068
11070
|
class: le([{ clickable: n.clickableRow, selected: a.isRowSelected(f) }, "vi-body-row vi-table-row"]),
|
|
11069
11071
|
onClick: (g) => a.onRowClicked(f)
|
|
11070
11072
|
}, [
|
|
11071
|
-
n.selectable ? (
|
|
11073
|
+
n.selectable ? (x(), A("td", tv, [
|
|
11072
11074
|
T("div", {
|
|
11073
11075
|
class: le(["vi-grid-field", a.settings.align])
|
|
11074
11076
|
}, [
|
|
@@ -11079,8 +11081,8 @@ function av(e, t, n, a, r, o) {
|
|
|
11079
11081
|
onCheckboxClicked: (g) => a.toggleRowSelect(f, g.value)
|
|
11080
11082
|
}, null, 8, ["row", "name", "value", "onCheckboxClicked"])
|
|
11081
11083
|
], 2)
|
|
11082
|
-
])) :
|
|
11083
|
-
(
|
|
11084
|
+
])) : z("", !0),
|
|
11085
|
+
(x(!0), A(ge, null, ze(a.visibleColumns, (g) => (x(), A("td", {
|
|
11084
11086
|
key: g.name,
|
|
11085
11087
|
class: "vi-body-cell vi-cell"
|
|
11086
11088
|
}, [
|
|
@@ -11097,8 +11099,8 @@ function av(e, t, n, a, r, o) {
|
|
|
11097
11099
|
onCheckboxClicked: (p) => a.toggleRowSelect(f, p.value)
|
|
11098
11100
|
}), null, 16, ["row-menu-opened", "class", "field", "field-value", "row-value", "row-key", "onActionClicked", "onCheckboxClicked"])
|
|
11099
11101
|
]))), 128))
|
|
11100
|
-
], 10,
|
|
11101
|
-
T("tr",
|
|
11102
|
+
], 10, ev))), 128)),
|
|
11103
|
+
T("tr", nv, [
|
|
11102
11104
|
T("td", {
|
|
11103
11105
|
colspan: a.totalColumns,
|
|
11104
11106
|
class: "vi-body-cell vi-cell vi-footer-cell"
|
|
@@ -11106,11 +11108,11 @@ function av(e, t, n, a, r, o) {
|
|
|
11106
11108
|
V(e.$slots, "footer", {
|
|
11107
11109
|
pagination: { ...n.pagination, totalRows: a.totalRows }
|
|
11108
11110
|
}, () => [
|
|
11109
|
-
a.settings.defaultSlots.footer ? (
|
|
11111
|
+
a.settings.defaultSlots.footer ? (x(), U(sn(a.settings.defaultSlots.footer), {
|
|
11110
11112
|
key: 0,
|
|
11111
11113
|
pagination: { ...n.pagination, totalRows: a.totalRows }
|
|
11112
|
-
}, null, 8, ["pagination"])) :
|
|
11113
|
-
a.settings.disablePagination ?
|
|
11114
|
+
}, null, 8, ["pagination"])) : z("", !0),
|
|
11115
|
+
a.settings.disablePagination ? z("", !0) : (x(), U(u, {
|
|
11114
11116
|
key: 1,
|
|
11115
11117
|
"rows-per-page": a.localPagination.rowsPerPage ?? a.settings.rowsPerPage,
|
|
11116
11118
|
"current-page": a.localPagination.page,
|
|
@@ -11121,7 +11123,7 @@ function av(e, t, n, a, r, o) {
|
|
|
11121
11123
|
onUpdate: a.onPaginationChange
|
|
11122
11124
|
}, null, 8, ["rows-per-page", "current-page", "total-rows", "compact", "rows-per-page-options", "onUpdate"]))
|
|
11123
11125
|
])
|
|
11124
|
-
], 8,
|
|
11126
|
+
], 8, av)
|
|
11125
11127
|
])
|
|
11126
11128
|
]))
|
|
11127
11129
|
], 2)
|
|
@@ -11129,7 +11131,7 @@ function av(e, t, n, a, r, o) {
|
|
|
11129
11131
|
V(e.$slots, "bottom")
|
|
11130
11132
|
]);
|
|
11131
11133
|
}
|
|
11132
|
-
const
|
|
11134
|
+
const ov = /* @__PURE__ */ Q(B1, [["render", rv]]), Ko = {
|
|
11133
11135
|
format: {
|
|
11134
11136
|
date: "yyyy-MM-dd",
|
|
11135
11137
|
dateTime: "yyyy-MM-dd HH:mm:ss",
|
|
@@ -11137,7 +11139,7 @@ const rv = /* @__PURE__ */ Q(B1, [["render", av]]), Ko = {
|
|
|
11137
11139
|
},
|
|
11138
11140
|
mode: "dateTime"
|
|
11139
11141
|
};
|
|
11140
|
-
const
|
|
11142
|
+
const iv = {
|
|
11141
11143
|
name: "ViPagination",
|
|
11142
11144
|
components: { FontAwesomeIcon: Pt },
|
|
11143
11145
|
// inject: ['ViPaginationSettings'],
|
|
@@ -11240,14 +11242,14 @@ const ov = {
|
|
|
11240
11242
|
this.$emit("update:rowsPerPage", parseInt(t)), this.paginationChange({ rowsPerPage: t, currentPage: 1 });
|
|
11241
11243
|
}
|
|
11242
11244
|
}
|
|
11243
|
-
},
|
|
11245
|
+
}, sv = { class: "vi-pagination" }, lv = { class: "vi-rows-per-page" }, cv = ["value"], uv = ["value"], fv = { key: 0 }, dv = { class: "vi-pages-navigator" }, mv = { class: "page-actions" }, gv = {
|
|
11244
11246
|
key: 0,
|
|
11245
11247
|
class: "page-numbers-container"
|
|
11246
|
-
},
|
|
11247
|
-
function
|
|
11248
|
+
}, pv = ["onClick"], hv = { class: "page-actions" };
|
|
11249
|
+
function vv(e, t, n, a, r, o) {
|
|
11248
11250
|
const i = W("font-awesome-icon");
|
|
11249
|
-
return
|
|
11250
|
-
T("div",
|
|
11251
|
+
return x(), A("div", sv, [
|
|
11252
|
+
T("div", lv, [
|
|
11251
11253
|
V(e.$slots, "rows-per-page", {
|
|
11252
11254
|
rowsPerPage: o.rowsOnPage,
|
|
11253
11255
|
rowsPerPageUpdate: o.rowsPerPageChange
|
|
@@ -11257,11 +11259,11 @@ function hv(e, t, n, a, r, o) {
|
|
|
11257
11259
|
value: n.rowsPerPage,
|
|
11258
11260
|
onChange: t[0] || (t[0] = (...s) => o.rowsPerPageChange && o.rowsPerPageChange(...s))
|
|
11259
11261
|
}, [
|
|
11260
|
-
(
|
|
11262
|
+
(x(!0), A(ge, null, ze(n.rowsPerPageOptions, (s) => (x(), A("option", {
|
|
11261
11263
|
key: s.value,
|
|
11262
11264
|
value: s.value
|
|
11263
|
-
}, G(s.label), 9,
|
|
11264
|
-
], 40,
|
|
11265
|
+
}, G(s.label), 9, uv))), 128))
|
|
11266
|
+
], 40, cv)
|
|
11265
11267
|
])
|
|
11266
11268
|
]),
|
|
11267
11269
|
V(e.$slots, "visible-rows-info", {
|
|
@@ -11269,11 +11271,11 @@ function hv(e, t, n, a, r, o) {
|
|
|
11269
11271
|
firstVisibleRow: o.firstVisibleRow,
|
|
11270
11272
|
lastVisibleRow: o.lastVisibleRow
|
|
11271
11273
|
}, () => [
|
|
11272
|
-
n.totalRows > 0 ? (
|
|
11274
|
+
n.totalRows > 0 ? (x(), A("div", fv, " Showing " + G(o.firstVisibleRow) + " - " + G(o.lastVisibleRow) + " of " + G(n.totalRows), 1)) : z("", !0)
|
|
11273
11275
|
]),
|
|
11274
|
-
T("div",
|
|
11276
|
+
T("div", dv, [
|
|
11275
11277
|
V(e.$slots, "navigation-prev", {}, () => [
|
|
11276
|
-
T("div",
|
|
11278
|
+
T("div", mv, [
|
|
11277
11279
|
T("div", {
|
|
11278
11280
|
onClick: t[1] || (t[1] = (s) => o.pageChange(1)),
|
|
11279
11281
|
class: "vi-page-nav vi-page-first"
|
|
@@ -11291,15 +11293,15 @@ function hv(e, t, n, a, r, o) {
|
|
|
11291
11293
|
])
|
|
11292
11294
|
])
|
|
11293
11295
|
]),
|
|
11294
|
-
o.compactPagination ?
|
|
11295
|
-
(
|
|
11296
|
+
o.compactPagination ? z("", !0) : (x(), A("div", gv, [
|
|
11297
|
+
(x(!0), A(ge, null, ze(o.visiblePages, (s) => (x(), A("div", {
|
|
11296
11298
|
class: le(["vi-page-number", { active: s === n.currentPage }]),
|
|
11297
11299
|
key: s,
|
|
11298
11300
|
onClick: (l) => o.pageChange(s)
|
|
11299
|
-
}, G(s), 11,
|
|
11301
|
+
}, G(s), 11, pv))), 128))
|
|
11300
11302
|
])),
|
|
11301
11303
|
V(e.$slots, "navigation-next", {}, () => [
|
|
11302
|
-
T("div",
|
|
11304
|
+
T("div", hv, [
|
|
11303
11305
|
T("div", {
|
|
11304
11306
|
onClick: t[3] || (t[3] = (s) => o.pageChange(n.currentPage + 1)),
|
|
11305
11307
|
class: "vi-page-nav vi-page-next"
|
|
@@ -11320,51 +11322,51 @@ function hv(e, t, n, a, r, o) {
|
|
|
11320
11322
|
])
|
|
11321
11323
|
]);
|
|
11322
11324
|
}
|
|
11323
|
-
const
|
|
11325
|
+
const yv = /* @__PURE__ */ Q(iv, [["render", vv]]);
|
|
11324
11326
|
/*!
|
|
11325
11327
|
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
|
11326
11328
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
11327
11329
|
* Copyright 2024 Fonticons, Inc.
|
|
11328
11330
|
*/
|
|
11329
|
-
const
|
|
11331
|
+
const bv = {
|
|
11330
11332
|
prefix: "fas",
|
|
11331
11333
|
iconName: "chevron-up",
|
|
11332
11334
|
icon: [512, 512, [], "f077", "M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]
|
|
11333
|
-
},
|
|
11335
|
+
}, wv = {
|
|
11334
11336
|
prefix: "fas",
|
|
11335
11337
|
iconName: "angle-right",
|
|
11336
11338
|
icon: [320, 512, [8250], "f105", "M278.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L210.7 256 73.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z"]
|
|
11337
|
-
},
|
|
11339
|
+
}, xv = {
|
|
11338
11340
|
prefix: "fas",
|
|
11339
11341
|
iconName: "angles-right",
|
|
11340
11342
|
icon: [512, 512, [187, "angle-double-right"], "f101", "M470.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 256 265.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160zm-352 160l160-160c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L210.7 256 73.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0z"]
|
|
11341
|
-
},
|
|
11343
|
+
}, Sv = {
|
|
11342
11344
|
prefix: "fas",
|
|
11343
11345
|
iconName: "ellipsis",
|
|
11344
11346
|
icon: [448, 512, ["ellipsis-h"], "f141", "M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z"]
|
|
11345
|
-
},
|
|
11347
|
+
}, kv = Sv, Cv = {
|
|
11346
11348
|
prefix: "fas",
|
|
11347
11349
|
iconName: "chevron-down",
|
|
11348
11350
|
icon: [512, 512, [], "f078", "M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]
|
|
11349
|
-
},
|
|
11351
|
+
}, Pv = {
|
|
11350
11352
|
prefix: "fas",
|
|
11351
11353
|
iconName: "angles-left",
|
|
11352
11354
|
icon: [512, 512, [171, "angle-double-left"], "f100", "M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160zm352-160l-160 160c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L301.3 256 438.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0z"]
|
|
11353
|
-
},
|
|
11355
|
+
}, _v = {
|
|
11354
11356
|
prefix: "fas",
|
|
11355
11357
|
iconName: "angle-left",
|
|
11356
11358
|
icon: [320, 512, [8249], "f104", "M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]
|
|
11357
|
-
},
|
|
11359
|
+
}, Av = {
|
|
11358
11360
|
install(e, t = {}, n = {}) {
|
|
11359
|
-
if (Ys.add(
|
|
11361
|
+
if (Ys.add(wv, _v, xv, Pv), n)
|
|
11360
11362
|
for (const [a, r] of Object.entries(n))
|
|
11361
11363
|
document.documentElement.style.setProperty(`--vi-pagination-${a}`, r);
|
|
11362
|
-
e.component("FontAwesomeIcon", Pt), e.component("ViPagination",
|
|
11364
|
+
e.component("FontAwesomeIcon", Pt), e.component("ViPagination", yv);
|
|
11363
11365
|
}
|
|
11364
|
-
},
|
|
11366
|
+
}, Tv = {
|
|
11365
11367
|
install(e, t) {
|
|
11366
11368
|
const { fieldComponents: n, dateFormats: a, dateMode: r, style: o, toastify: i, tooltipSettings: s, ...l } = t;
|
|
11367
|
-
if (Ys.add(
|
|
11369
|
+
if (Ys.add(Cv, bv, kv), e.use(Vd, {
|
|
11368
11370
|
style: {},
|
|
11369
11371
|
toastify: {
|
|
11370
11372
|
autoClose: 2e3,
|
|
@@ -11386,11 +11388,11 @@ const yv = {
|
|
|
11386
11388
|
}), o)
|
|
11387
11389
|
for (const [c, u] of Object.entries(o))
|
|
11388
11390
|
document.documentElement.style.setProperty(`--vi-grid-${c}`, u);
|
|
11389
|
-
e.use(
|
|
11391
|
+
e.use(Av, {}, o), e.component("FontAwesomeIcon", Pt), Nr.value = l, n && Object.keys(n).forEach((c) => {
|
|
11390
11392
|
e.component(`ViGrid${c}`, n[c]);
|
|
11391
|
-
}), e.component("ViGridBuilder",
|
|
11393
|
+
}), e.component("ViGridBuilder", ov);
|
|
11392
11394
|
}
|
|
11393
11395
|
};
|
|
11394
11396
|
export {
|
|
11395
|
-
|
|
11397
|
+
Tv as default
|
|
11396
11398
|
};
|