@illinois-grad/grad-vue 7.0.0 → 7.1.0
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/components/GTable.vue.d.ts +2 -1
- package/dist/components/table/TableColumn.d.ts +15 -1
- package/dist/compose/useFiltering.d.ts +43 -2
- package/dist/{grad-vue-Dgo1hdiu.js → grad-vue-BqBZYXQU.js} +200 -191
- package/dist/grad-vue-BqBZYXQU.js.map +1 -0
- package/dist/grad-vue-elements.css +30 -30
- package/dist/grad-vue-elements.js.map +1 -1
- package/dist/grad-vue.d.ts +2 -2
- package/dist/grad-vue.js +2 -2
- package/dist/plugin.js +2 -2
- package/dist/plugin.js.map +1 -1
- package/package.json +1 -1
- package/dist/grad-vue-Dgo1hdiu.js.map +0 -1
|
@@ -3444,46 +3444,55 @@ function Ei(e, t) {
|
|
|
3444
3444
|
return n;
|
|
3445
3445
|
}
|
|
3446
3446
|
function Di(e) {
|
|
3447
|
+
let t = {};
|
|
3448
|
+
for (let n of e) n.filter && (t[ur(n)] = n.filter.type === "multi-select" ? [] : void 0);
|
|
3449
|
+
return t;
|
|
3450
|
+
}
|
|
3451
|
+
function Oi(e, t, n = {}) {
|
|
3452
|
+
let r = e, i = new Set(n.booleanArrayKeys ?? []), a = {};
|
|
3453
|
+
for (let e of Object.keys(r)) {
|
|
3454
|
+
let n = ki(t[e], Array.isArray(r[e]));
|
|
3455
|
+
a[e] = i.has(e) && n !== void 0 ? Ai(n) : n;
|
|
3456
|
+
}
|
|
3457
|
+
return a;
|
|
3458
|
+
}
|
|
3459
|
+
function ki(e, t) {
|
|
3460
|
+
if (e != null) return !t && typeof e == "string" ? e.includes(",") ? e.split(",") : e : yi(e);
|
|
3461
|
+
}
|
|
3462
|
+
function Ai(e) {
|
|
3463
|
+
return (Array.isArray(e) ? e : [e]).flatMap((e) => e === "true" ? [!0] : e === "false" ? [!1] : []);
|
|
3464
|
+
}
|
|
3465
|
+
function ji(e) {
|
|
3447
3466
|
let t = {};
|
|
3448
3467
|
for (let [n, r] of Object.entries(M(e))) Array.isArray(r) ? r.length > 0 && (t[n] = r) : t[n] = r === !0 ? "true" : r || void 0;
|
|
3449
3468
|
return t;
|
|
3450
3469
|
}
|
|
3451
|
-
function
|
|
3470
|
+
function Mi(e) {
|
|
3452
3471
|
let t = {};
|
|
3453
3472
|
return Object.keys(e).forEach((n) => {
|
|
3454
3473
|
let r = e[n];
|
|
3455
3474
|
r != null && r !== "" && r !== !1 && (Array.isArray(r) ? r.length > 0 && (t[n] = r.map((e) => String(e))) : t[n] = String(r));
|
|
3456
3475
|
}), t;
|
|
3457
3476
|
}
|
|
3458
|
-
function
|
|
3459
|
-
let n = e, r = Object.keys(e), i =
|
|
3460
|
-
if (t != null) return i.has(e) ? yi(t) : typeof t == "string" ? t.includes(",") ? t.split(",") : t : yi(t);
|
|
3461
|
-
}, s = (e) => {
|
|
3477
|
+
function Ni(e, t) {
|
|
3478
|
+
let n = e, r = Object.keys(e), i = T(((e) => {
|
|
3462
3479
|
let t = {};
|
|
3463
|
-
for (let
|
|
3464
|
-
let r = e[
|
|
3465
|
-
r !== void 0 && (t[
|
|
3480
|
+
for (let i of r) {
|
|
3481
|
+
let r = e[i];
|
|
3482
|
+
r !== void 0 && (t[i] = ki(r, Array.isArray(n[i])));
|
|
3466
3483
|
}
|
|
3467
3484
|
return t;
|
|
3468
|
-
}
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
}).filter((e) => e !== void 0);
|
|
3474
|
-
};
|
|
3475
|
-
return V(() => s(t.route.query), (e) => {
|
|
3476
|
-
for (let t of r) {
|
|
3477
|
-
let n = d(t, e[t]);
|
|
3478
|
-
xi(u[t], n) || (u[t] = n);
|
|
3479
|
-
}
|
|
3480
|
-
}, { immediate: !0 }), V(c, (e) => {
|
|
3485
|
+
})(t.route.query)), a = Pi(e, { syncWith: i }), o = a.filters;
|
|
3486
|
+
return V(() => Oi(e, t.route.query, t), (e) => {
|
|
3487
|
+
let t = e;
|
|
3488
|
+
for (let e of r) xi(o[e], t[e]) || (o[e] = t[e]);
|
|
3489
|
+
}, { immediate: !0 }), V(i, (e) => {
|
|
3481
3490
|
let n = { ...t.route.query };
|
|
3482
3491
|
for (let t of r) e[t] === void 0 ? delete n[t] : n[t] = bi(e[t]);
|
|
3483
3492
|
Si(t.route.query, n) || t.router.replace({ query: n });
|
|
3484
|
-
}),
|
|
3493
|
+
}), a;
|
|
3485
3494
|
}
|
|
3486
|
-
function
|
|
3495
|
+
function Pi(e, t = {}) {
|
|
3487
3496
|
let n = Object.keys(e), i = w({ ...e }), a = t.syncWith;
|
|
3488
3497
|
if (a) {
|
|
3489
3498
|
if (a.value) {
|
|
@@ -3514,89 +3523,89 @@ function Ai(e, t = {}) {
|
|
|
3514
3523
|
}
|
|
3515
3524
|
//#endregion
|
|
3516
3525
|
//#region src/components/GTable.vue?vue&type=script&setup=true&lang.ts
|
|
3517
|
-
var
|
|
3526
|
+
var Fi = { class: "g-table-outer-wrap" }, Ii = {
|
|
3518
3527
|
key: 0,
|
|
3519
3528
|
class: "g-table-controls"
|
|
3520
|
-
},
|
|
3529
|
+
}, Li = { class: "g-table-control-actions" }, Ri = {
|
|
3521
3530
|
key: 0,
|
|
3522
3531
|
class: "g-sort-builder-wrap"
|
|
3523
|
-
},
|
|
3532
|
+
}, zi = {
|
|
3524
3533
|
key: 0,
|
|
3525
3534
|
class: "g-sort-builder-count"
|
|
3526
|
-
},
|
|
3535
|
+
}, Bi = {
|
|
3527
3536
|
key: 0,
|
|
3528
3537
|
class: "g-sort-builder-list"
|
|
3529
|
-
},
|
|
3538
|
+
}, Vi = ["data-sort-row-key", "aria-label"], Hi = {
|
|
3530
3539
|
class: "g-sort-builder-rule-priority",
|
|
3531
3540
|
"aria-hidden": "true"
|
|
3532
|
-
},
|
|
3541
|
+
}, Ui = { class: "g-sort-builder-rule-label" }, Wi = ["aria-label", "onClick"], Gi = { class: "g-visually-hidden" }, Ki = {
|
|
3533
3542
|
class: "sort-indicator",
|
|
3534
3543
|
"aria-hidden": "true"
|
|
3535
|
-
},
|
|
3544
|
+
}, qi = ["aria-label", "onClick"], Ji = {
|
|
3536
3545
|
key: 1,
|
|
3537
3546
|
class: "g-sort-builder-empty"
|
|
3538
|
-
},
|
|
3547
|
+
}, Yi = {
|
|
3539
3548
|
key: 2,
|
|
3540
3549
|
class: "g-sort-builder-add"
|
|
3541
|
-
},
|
|
3550
|
+
}, Xi = { class: "g-sort-builder-add-list" }, Zi = { class: "g-sort-builder-add-name" }, Qi = { class: "g-sort-builder-add-actions" }, $i = ["aria-label", "onClick"], ea = ["aria-label", "onClick"], ta = {
|
|
3542
3551
|
class: "sort-indicator",
|
|
3543
3552
|
"aria-hidden": "true"
|
|
3544
|
-
},
|
|
3553
|
+
}, na = {
|
|
3545
3554
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3546
3555
|
viewBox: "0 0 640 640",
|
|
3547
3556
|
height: "1.25em",
|
|
3548
3557
|
style: { transform: "rotate(180deg)" }
|
|
3549
|
-
},
|
|
3558
|
+
}, ra = {
|
|
3550
3559
|
key: 1,
|
|
3551
3560
|
class: "g-column-visibility-wrap"
|
|
3552
|
-
},
|
|
3561
|
+
}, ia = {
|
|
3553
3562
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3554
3563
|
viewBox: "0 0 640 640",
|
|
3555
3564
|
height: "1.5em",
|
|
3556
3565
|
style: { transform: "rotate(90deg)" },
|
|
3557
3566
|
"aria-hidden": "true"
|
|
3558
|
-
},
|
|
3567
|
+
}, aa = ["aria-labelledby"], oa = { class: "g-column-visibility-header" }, sa = ["id"], ca = { class: "g-column-visibility-legend-action" }, la = { class: "g-column-visibility-list" }, ua = ["checked", "onChange"], da = {
|
|
3559
3568
|
key: 2,
|
|
3560
3569
|
class: "g-table-custom-controls"
|
|
3561
|
-
},
|
|
3570
|
+
}, fa = { class: "g-clear-filters-wrap" }, pa = {
|
|
3562
3571
|
key: 0,
|
|
3563
3572
|
class: "pagination"
|
|
3564
|
-
},
|
|
3573
|
+
}, ma = { class: "g-table-controls-right" }, ha = { class: "g-result-count" }, ga = ["aria-label", "aria-rowcount"], _a = { key: 0 }, va = ["data-column-key"], ya = { class: "g-table-head" }, ba = { "aria-rowindex": "1" }, xa = {
|
|
3565
3574
|
key: 0,
|
|
3566
3575
|
scope: "col",
|
|
3567
3576
|
class: "g-th g-th-checkbox"
|
|
3568
|
-
},
|
|
3577
|
+
}, Sa = [
|
|
3569
3578
|
"checked",
|
|
3570
3579
|
"indeterminate",
|
|
3571
3580
|
"aria-label"
|
|
3572
|
-
],
|
|
3581
|
+
], Ca = ["id", "aria-sort"], wa = { class: "th-inner" }, Ta = ["onClick"], Ea = {
|
|
3573
3582
|
key: 0,
|
|
3574
3583
|
class: "sort-indicator",
|
|
3575
3584
|
"aria-hidden": "true"
|
|
3576
|
-
},
|
|
3585
|
+
}, Da = {
|
|
3577
3586
|
key: 1,
|
|
3578
3587
|
class: "g-visually-hidden"
|
|
3579
|
-
},
|
|
3588
|
+
}, Oa = {
|
|
3580
3589
|
key: 1,
|
|
3581
3590
|
class: "g-column-head"
|
|
3582
|
-
},
|
|
3591
|
+
}, ka = ["onClick", "aria-label"], Aa = {
|
|
3583
3592
|
key: 1,
|
|
3584
3593
|
class: "g-filter-search",
|
|
3585
3594
|
role: "search"
|
|
3586
|
-
},
|
|
3595
|
+
}, ja = [
|
|
3587
3596
|
"value",
|
|
3588
3597
|
"onInput",
|
|
3589
3598
|
"placeholder",
|
|
3590
3599
|
"aria-label"
|
|
3591
|
-
],
|
|
3600
|
+
], Ma = { key: 2 }, Na = { class: "g-filter-toggle" }, Pa = [
|
|
3592
3601
|
"checked",
|
|
3593
3602
|
"onChange",
|
|
3594
3603
|
"id",
|
|
3595
3604
|
"aria-describedby"
|
|
3596
|
-
],
|
|
3605
|
+
], Fa = ["for"], Ia = ["id"], La = {
|
|
3597
3606
|
key: 4,
|
|
3598
3607
|
class: "g-multi-select"
|
|
3599
|
-
},
|
|
3608
|
+
}, Ra = [
|
|
3600
3609
|
"data-column-key",
|
|
3601
3610
|
"aria-label",
|
|
3602
3611
|
"aria-valuemax",
|
|
@@ -3604,10 +3613,10 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
3604
3613
|
"aria-valuetext",
|
|
3605
3614
|
"onKeydown",
|
|
3606
3615
|
"onPointerdown"
|
|
3607
|
-
],
|
|
3616
|
+
], za = { key: 0 }, Ba = { "aria-rowindex": "2" }, Va = ["colspan"], Ha = {
|
|
3608
3617
|
key: 1,
|
|
3609
3618
|
class: "g-bulk-actions-toolbar"
|
|
3610
|
-
},
|
|
3619
|
+
}, Ua = { class: "g-selected-count" }, Wa = { class: "g-bulk-actions" }, Ga = /* @__PURE__ */ u({
|
|
3611
3620
|
__name: "GTable",
|
|
3612
3621
|
props: /*@__PURE__*/ p({
|
|
3613
3622
|
label: {},
|
|
@@ -3664,7 +3673,7 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
3664
3673
|
"update:selectedRows"
|
|
3665
3674
|
]),
|
|
3666
3675
|
setup(t, { emit: n }) {
|
|
3667
|
-
let u = R(t, "sort"), f = R(t, "filter"), p = R(t, "columnState"), m = R(t, "selectedRows"), v = t, x = n, { isFiltered: C, clearFilters: w } = v.filtering ??
|
|
3676
|
+
let u = R(t, "sort"), f = R(t, "filter"), p = R(t, "columnState"), m = R(t, "selectedRows"), v = t, x = n, { isFiltered: C, clearFilters: w } = v.filtering ?? Pi({}), O = r(() => v.data.map((e) => e.key)), k = r(() => m.value.filter((e) => O.value.includes(e))), A = r(() => !v.bulkSelectionEnabled || v.data.length === 0 ? !1 : k.value.length === O.value.length), N = r(() => !v.bulkSelectionEnabled || v.data.length === 0 ? !1 : k.value.length > 0 && k.value.length < O.value.length), P = T(null);
|
|
3668
3677
|
function I() {
|
|
3669
3678
|
if (A.value) m.value = m.value.filter((e) => !O.value.includes(e));
|
|
3670
3679
|
else {
|
|
@@ -3939,10 +3948,10 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
3939
3948
|
}), b(() => {
|
|
3940
3949
|
v.rowClickable && v.bulkSelectionEnabled && console.warn("GTable: rowClickable and bulkSelectionEnabled cannot be used together. rowClickable will be ignored.");
|
|
3941
3950
|
for (let e of v.columns) e.editable && e.display && console.warn(`GTable: Column "${String(e.key)}" has both 'editable' and 'display' configured. 'display' will be ignored.`);
|
|
3942
|
-
}), (n, r) => (S(), o("div",
|
|
3943
|
-
Xe.value ? (S(), o("div",
|
|
3944
|
-
s("div",
|
|
3945
|
-
ce.value ? (S(), o("div",
|
|
3951
|
+
}), (n, r) => (S(), o("div", Fi, [
|
|
3952
|
+
Xe.value ? (S(), o("div", Ii, [
|
|
3953
|
+
s("div", Li, [
|
|
3954
|
+
ce.value ? (S(), o("div", Ri, [l(at, null, {
|
|
3946
3955
|
trigger: U(({ toggle: e }) => [l($, {
|
|
3947
3956
|
size: "small",
|
|
3948
3957
|
class: g(["g-sort-builder-trigger", { "g-sort-builder-trigger--active": Z.value.length > 0 }]),
|
|
@@ -3958,7 +3967,7 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
3958
3967
|
}, [s("path", {
|
|
3959
3968
|
fill: "currentColor",
|
|
3960
3969
|
d: "M130.4 268.2C135.4 280.2 147 288 160 288L480 288C492.9 288 504.6 280.2 509.6 268.2C514.6 256.2 511.8 242.5 502.7 233.3L342.7 73.3C330.2 60.8 309.9 60.8 297.4 73.3L137.4 233.3C128.2 242.5 125.5 256.2 130.5 268.2zM130.4 371.7C125.4 383.7 128.2 397.4 137.3 406.6L297.3 566.6C309.8 579.1 330.1 579.1 342.6 566.6L502.6 406.6C511.8 397.4 514.5 383.7 509.5 371.7C504.5 359.7 492.9 352 480 352L160 352C147.1 352 135.4 359.8 130.4 371.8z"
|
|
3961
|
-
})], -1), Z.value.length ? (S(), o("span",
|
|
3970
|
+
})], -1), Z.value.length ? (S(), o("span", zi, j(Z.value.length), 1)) : a("", !0)]),
|
|
3962
3971
|
_: 1
|
|
3963
3972
|
}, 8, ["class", "onClick"])]),
|
|
3964
3973
|
default: U(() => [s("fieldset", {
|
|
@@ -3970,21 +3979,21 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
3970
3979
|
}, [
|
|
3971
3980
|
r[8] ||= s("legend", { class: "g-sort-builder-legend" }, " Sort order ", -1),
|
|
3972
3981
|
r[9] ||= s("p", { class: "g-sort-builder-help" }, " Click a column header to change the primary sort. Use Shift-click as a shortcut to add or update secondary sorts. ", -1),
|
|
3973
|
-
Z.value.length ? (S(), o("ol",
|
|
3982
|
+
Z.value.length ? (S(), o("ol", Bi, [(S(!0), o(e, null, E(Z.value, (e, t) => (S(), o("li", {
|
|
3974
3983
|
key: e.key,
|
|
3975
3984
|
class: "g-sort-builder-rule",
|
|
3976
3985
|
tabindex: "-1",
|
|
3977
3986
|
"data-sort-row-key": String(e.key),
|
|
3978
3987
|
"aria-label": `${de(e.key)} ${me(e.order)} sort, priority ${t + 1}`
|
|
3979
3988
|
}, [
|
|
3980
|
-
s("span",
|
|
3981
|
-
s("span",
|
|
3989
|
+
s("span", Hi, j(t + 1), 1),
|
|
3990
|
+
s("span", Ui, j(de(e.key)), 1),
|
|
3982
3991
|
s("button", {
|
|
3983
3992
|
type: "button",
|
|
3984
3993
|
class: "g-sort-builder-direction",
|
|
3985
3994
|
"aria-label": `Toggle ${de(e.key)} sort direction`,
|
|
3986
3995
|
onClick: (t) => ye(e.key)
|
|
3987
|
-
}, [s("span",
|
|
3996
|
+
}, [s("span", Gi, j(me(e.order)), 1), s("span", Ki, [(S(), o("svg", {
|
|
3988
3997
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3989
3998
|
viewBox: "0 0 640 640",
|
|
3990
3999
|
height: "1.25em",
|
|
@@ -3992,18 +4001,18 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
3992
4001
|
}, [...r[2] ||= [s("path", {
|
|
3993
4002
|
fill: "currentColor",
|
|
3994
4003
|
d: "M300.3 199.2C312.9 188.9 331.4 189.7 343.1 201.4L471.1 329.4C480.3 338.6 483 352.3 478 364.3C473 376.3 461.4 384 448.5 384L192.5 384C179.6 384 167.9 376.2 162.9 364.2C157.9 352.2 160.7 338.5 169.9 329.4L297.9 201.4L300.3 199.2z"
|
|
3995
|
-
}, null, -1)]], 4))])], 8,
|
|
4004
|
+
}, null, -1)]], 4))])], 8, Wi),
|
|
3996
4005
|
s("button", {
|
|
3997
4006
|
type: "button",
|
|
3998
4007
|
class: "g-sort-builder-remove",
|
|
3999
4008
|
"aria-label": `Remove ${de(e.key)} sort`,
|
|
4000
4009
|
onClick: (t) => be(e.key)
|
|
4001
|
-
}, " Remove ", 8,
|
|
4002
|
-
], 8,
|
|
4003
|
-
Q.value.length ? (S(), o("div",
|
|
4010
|
+
}, " Remove ", 8, qi)
|
|
4011
|
+
], 8, Vi))), 128))])) : (S(), o("p", Ji, " No active sort rules. ")),
|
|
4012
|
+
Q.value.length ? (S(), o("div", Yi, [r[6] ||= s("p", { class: "g-sort-builder-add-label" }, " Add sort column ", -1), s("ul", Xi, [(S(!0), o(e, null, E(Q.value, (e) => (S(), o("li", {
|
|
4004
4013
|
key: e.key,
|
|
4005
4014
|
class: "g-sort-builder-add-item"
|
|
4006
|
-
}, [s("span",
|
|
4015
|
+
}, [s("span", Zi, j(e.label), 1), s("div", Qi, [s("button", {
|
|
4007
4016
|
type: "button",
|
|
4008
4017
|
class: "g-sort-builder-direction",
|
|
4009
4018
|
"aria-label": `Add ${e.label} ascending sort`,
|
|
@@ -4018,15 +4027,15 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4018
4027
|
}, [s("path", {
|
|
4019
4028
|
fill: "currentColor",
|
|
4020
4029
|
d: "M300.3 199.2C312.9 188.9 331.4 189.7 343.1 201.4L471.1 329.4C480.3 338.6 483 352.3 478 364.3C473 376.3 461.4 384 448.5 384L192.5 384C179.6 384 167.9 376.2 162.9 364.2C157.9 352.2 160.7 338.5 169.9 329.4L297.9 201.4L300.3 199.2z"
|
|
4021
|
-
})])], -1)]], 8,
|
|
4030
|
+
})])], -1)]], 8, $i), s("button", {
|
|
4022
4031
|
type: "button",
|
|
4023
4032
|
class: "g-sort-builder-direction",
|
|
4024
4033
|
"aria-label": `Add ${e.label} descending sort`,
|
|
4025
4034
|
onClick: (t) => ve(e.key, -1)
|
|
4026
|
-
}, [r[5] ||= s("span", { class: "g-visually-hidden" }, " Add descending sort ", -1), s("span",
|
|
4035
|
+
}, [r[5] ||= s("span", { class: "g-visually-hidden" }, " Add descending sort ", -1), s("span", ta, [(S(), o("svg", na, [...r[4] ||= [s("path", {
|
|
4027
4036
|
fill: "currentColor",
|
|
4028
4037
|
d: "M300.3 199.2C312.9 188.9 331.4 189.7 343.1 201.4L471.1 329.4C480.3 338.6 483 352.3 478 364.3C473 376.3 461.4 384 448.5 384L192.5 384C179.6 384 167.9 376.2 162.9 364.2C157.9 352.2 160.7 338.5 169.9 329.4L297.9 201.4L300.3 199.2z"
|
|
4029
|
-
}, null, -1)]]))])], 8,
|
|
4038
|
+
}, null, -1)]]))])], 8, ea)])]))), 128))])])) : a("", !0),
|
|
4030
4039
|
Z.value.length ? (S(), i($, {
|
|
4031
4040
|
key: 3,
|
|
4032
4041
|
outlined: "",
|
|
@@ -4040,14 +4049,14 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4040
4049
|
], 512)]),
|
|
4041
4050
|
_: 1
|
|
4042
4051
|
})])) : a("", !0),
|
|
4043
|
-
Ue.value ? (S(), o("div",
|
|
4052
|
+
Ue.value ? (S(), o("div", ra, [l(at, null, {
|
|
4044
4053
|
trigger: U(({ toggle: e }) => [l($, {
|
|
4045
4054
|
size: "small",
|
|
4046
4055
|
class: g(["g-column-visibility-trigger", { "g-column-visibility-trigger--active": He.value }]),
|
|
4047
4056
|
"aria-label": "Choose visible columns",
|
|
4048
4057
|
onClick: e
|
|
4049
4058
|
}, {
|
|
4050
|
-
default: U(() => [(S(), o("svg",
|
|
4059
|
+
default: U(() => [(S(), o("svg", ia, [...r[10] ||= [s("path", {
|
|
4051
4060
|
fill: "currentColor",
|
|
4052
4061
|
d: "M64 160C64 142.3 78.3 128 96 128L480 128C497.7 128 512 142.3 512 160C512 177.7 497.7 192 480 192L96 192C78.3 192 64 177.7 64 160zM128 320C128 302.3 142.3 288 160 288L544 288C561.7 288 576 302.3 576 320C576 337.7 561.7 352 544 352L160 352C142.3 352 128 337.7 128 320zM512 480C512 497.7 497.7 512 480 512L96 512C78.3 512 64 497.7 64 480C64 462.3 78.3 448 96 448L480 448C497.7 448 512 462.3 512 480z"
|
|
4053
4062
|
}, null, -1)]]))]),
|
|
@@ -4056,10 +4065,10 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4056
4065
|
default: U(() => [s("fieldset", {
|
|
4057
4066
|
class: "g-column-visibility-popover",
|
|
4058
4067
|
"aria-labelledby": `${F(G)}-column-visibility-heading`
|
|
4059
|
-
}, [s("div",
|
|
4068
|
+
}, [s("div", oa, [s("span", {
|
|
4060
4069
|
id: `${F(G)}-column-visibility-heading`,
|
|
4061
4070
|
class: "g-column-visibility-heading"
|
|
4062
|
-
}, " Shown columns ", 8,
|
|
4071
|
+
}, " Shown columns ", 8, sa), s("span", ca, [l($, {
|
|
4063
4072
|
text: "",
|
|
4064
4073
|
size: "small",
|
|
4065
4074
|
class: g(["g-column-visibility-show-all", { "g-column-visibility-show-all--hidden": !He.value }]),
|
|
@@ -4067,18 +4076,18 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4067
4076
|
}, {
|
|
4068
4077
|
default: U(() => [...r[11] ||= [c(" Show All ", -1)]]),
|
|
4069
4078
|
_: 1
|
|
4070
|
-
}, 8, ["class"])])]), s("div",
|
|
4079
|
+
}, 8, ["class"])])]), s("div", la, [(S(!0), o(e, null, E(t.columns, (e) => (S(), o("label", {
|
|
4071
4080
|
key: e.key,
|
|
4072
4081
|
class: "g-column-visibility-option"
|
|
4073
4082
|
}, [s("input", {
|
|
4074
4083
|
checked: Ke(e),
|
|
4075
4084
|
type: "checkbox",
|
|
4076
4085
|
onChange: (t) => qe(e, t.target.checked)
|
|
4077
|
-
}, null, 40,
|
|
4086
|
+
}, null, 40, ua), s("span", null, j(e.label), 1)]))), 128))])], 8, aa)]),
|
|
4078
4087
|
_: 1
|
|
4079
4088
|
})])) : a("", !0),
|
|
4080
|
-
We.value ? (S(), o("div",
|
|
4081
|
-
s("div",
|
|
4089
|
+
We.value ? (S(), o("div", da, [D(n.$slots, "controls")])) : a("", !0),
|
|
4090
|
+
s("div", fa, [F(C) ? (S(), i($, {
|
|
4082
4091
|
key: 0,
|
|
4083
4092
|
outlined: "",
|
|
4084
4093
|
size: "small",
|
|
@@ -4098,7 +4107,7 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4098
4107
|
_: 1
|
|
4099
4108
|
}, 8, ["onClick"])) : a("", !0)])
|
|
4100
4109
|
]),
|
|
4101
|
-
Ye.value ? (S(), o("div",
|
|
4110
|
+
Ye.value ? (S(), o("div", pa, [l(hi, {
|
|
4102
4111
|
start: t.startIndex,
|
|
4103
4112
|
"page-size": t.pageSize,
|
|
4104
4113
|
"page-sizes": t.pageSizes,
|
|
@@ -4111,7 +4120,7 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4111
4120
|
"page-sizes",
|
|
4112
4121
|
"total"
|
|
4113
4122
|
])])) : a("", !0),
|
|
4114
|
-
s("div",
|
|
4123
|
+
s("div", ma, [s("span", ha, j(Ge.value) + " results", 1), D(n.$slots, "right-controls")])
|
|
4115
4124
|
])) : a("", !0),
|
|
4116
4125
|
s("div", {
|
|
4117
4126
|
ref_key: "tableWrapRef",
|
|
@@ -4125,19 +4134,19 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4125
4134
|
"aria-label": t.label,
|
|
4126
4135
|
"aria-rowcount": Ge.value
|
|
4127
4136
|
}, [
|
|
4128
|
-
s("colgroup", null, [t.bulkSelectionEnabled ? (S(), o("col",
|
|
4137
|
+
s("colgroup", null, [t.bulkSelectionEnabled ? (S(), o("col", _a)) : a("", !0), (S(!0), o(e, null, E(Be.value, (e) => (S(), o("col", {
|
|
4129
4138
|
key: e.key,
|
|
4130
4139
|
"data-column-key": String(e.key),
|
|
4131
4140
|
style: _(Ie(e))
|
|
4132
|
-
}, null, 12,
|
|
4133
|
-
s("thead",
|
|
4141
|
+
}, null, 12, va))), 128))]),
|
|
4142
|
+
s("thead", ya, [s("tr", ba, [t.bulkSelectionEnabled ? (S(), o("th", xa, [s("input", {
|
|
4134
4143
|
type: "checkbox",
|
|
4135
4144
|
checked: A.value,
|
|
4136
4145
|
indeterminate: N.value,
|
|
4137
4146
|
onChange: I,
|
|
4138
4147
|
"aria-label": A.value ? "Deselect all rows" : "Select all rows",
|
|
4139
4148
|
class: "g-bulk-select-checkbox"
|
|
4140
|
-
}, null, 40,
|
|
4149
|
+
}, null, 40, Sa)])) : a("", !0), (S(!0), o(e, null, E(Be.value, (e) => (S(), o("th", {
|
|
4141
4150
|
key: e.key,
|
|
4142
4151
|
id: `${F(G)}-th-${String(e.key)}`,
|
|
4143
4152
|
"aria-sort": fe(e.key),
|
|
@@ -4148,14 +4157,14 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4148
4157
|
{ filtered: et(e) }
|
|
4149
4158
|
]),
|
|
4150
4159
|
scope: "col"
|
|
4151
|
-
}, [s("div",
|
|
4160
|
+
}, [s("div", wa, [e.sortable ? (S(), o("button", {
|
|
4152
4161
|
key: 0,
|
|
4153
4162
|
type: "button",
|
|
4154
4163
|
class: "g-column-head",
|
|
4155
4164
|
onClick: (t) => _e(e, t.shiftKey)
|
|
4156
4165
|
}, [
|
|
4157
4166
|
c(j(e.label) + " ", 1),
|
|
4158
|
-
le(e.key) === -1 ? a("", !0) : (S(), o("span",
|
|
4167
|
+
le(e.key) === -1 ? a("", !0) : (S(), o("span", Ea, [(S(), o("svg", {
|
|
4159
4168
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4160
4169
|
viewBox: "0 0 640 640",
|
|
4161
4170
|
height: "1.5em",
|
|
@@ -4164,8 +4173,8 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4164
4173
|
fill: "currentColor",
|
|
4165
4174
|
d: "M300.3 199.2C312.9 188.9 331.4 189.7 343.1 201.4L471.1 329.4C480.3 338.6 483 352.3 478 364.3C473 376.3 461.4 384 448.5 384L192.5 384C179.6 384 167.9 376.2 162.9 364.2C157.9 352.2 160.7 338.5 169.9 329.4L297.9 201.4L300.3 199.2z"
|
|
4166
4175
|
}, null, -1)]], 4))])),
|
|
4167
|
-
le(e.key) === -1 ? a("", !0) : (S(), o("span",
|
|
4168
|
-
], 8,
|
|
4176
|
+
le(e.key) === -1 ? a("", !0) : (S(), o("span", Da, j(pe(e.key)), 1))
|
|
4177
|
+
], 8, Ta)) : (S(), o("span", Oa, j(e.label), 1)), e.filter ? (S(), i(at, { key: 2 }, {
|
|
4169
4178
|
trigger: U(({ toggle: t }) => [s("button", {
|
|
4170
4179
|
onClick: ne(t, ["stop"]),
|
|
4171
4180
|
"aria-label": et(e) ? "Column Filtered" : "Filter Column",
|
|
@@ -4179,7 +4188,7 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4179
4188
|
}, [s("path", {
|
|
4180
4189
|
fill: "currentColor",
|
|
4181
4190
|
d: "M96 128C83.1 128 71.4 135.8 66.4 147.8C61.4 159.8 64.2 173.5 73.4 182.6L256 365.3L256 480C256 488.5 259.4 496.6 265.4 502.6L329.4 566.6C338.6 575.8 352.3 578.5 364.3 573.5C376.3 568.5 384 556.9 384 544L384 365.3L566.6 182.7C575.8 173.5 578.5 159.8 573.5 147.8C568.5 135.8 556.9 128 544 128L96 128z"
|
|
4182
|
-
})], -1)]], 10,
|
|
4191
|
+
})], -1)]], 10, ka)]),
|
|
4183
4192
|
default: U(() => [e.filter.type === "select" ? (S(), i(Gt, {
|
|
4184
4193
|
key: 0,
|
|
4185
4194
|
"model-value": st(e),
|
|
@@ -4195,7 +4204,7 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4195
4204
|
"onUpdate:modelValue",
|
|
4196
4205
|
"options",
|
|
4197
4206
|
"search-description"
|
|
4198
|
-
])) : e.filter.type === "search" ? (S(), o("div",
|
|
4207
|
+
])) : e.filter.type === "search" ? (S(), o("div", Aa, [r[15] ||= s("span", {
|
|
4199
4208
|
class: "g-filter-search-icon",
|
|
4200
4209
|
"aria-hidden": "true"
|
|
4201
4210
|
}, [s("svg", {
|
|
@@ -4212,20 +4221,20 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4212
4221
|
onInput: (t) => $e(e, t.target.value),
|
|
4213
4222
|
placeholder: e.filter.placeholder,
|
|
4214
4223
|
"aria-label": `Search ${e.label}`
|
|
4215
|
-
}, null, 40,
|
|
4224
|
+
}, null, 40, ja)])) : e.filter.type === "toggle" ? (S(), o("div", Ma, [s("div", Na, [
|
|
4216
4225
|
s("input", {
|
|
4217
4226
|
type: "checkbox",
|
|
4218
4227
|
checked: Qe(e) === !0,
|
|
4219
4228
|
onChange: (t) => $e(e, t.target.checked),
|
|
4220
4229
|
id: `${F(G)}-filter-${String(e.key)}`,
|
|
4221
4230
|
"aria-describedby": e.filter.description ? `${F(G)}-filter-description-${String(e.key)}` : void 0
|
|
4222
|
-
}, null, 40,
|
|
4223
|
-
s("label", { for: `${F(G)}-filter-${String(e.key)}` }, j(e.filter.label), 9,
|
|
4231
|
+
}, null, 40, Pa),
|
|
4232
|
+
s("label", { for: `${F(G)}-filter-${String(e.key)}` }, j(e.filter.label), 9, Fa),
|
|
4224
4233
|
e.filter.description ? (S(), o("span", {
|
|
4225
4234
|
key: 0,
|
|
4226
4235
|
class: "g-filter-description",
|
|
4227
4236
|
id: `${F(G)}-filter-description-${String(e.key)}`
|
|
4228
|
-
}, j(e.filter.description), 9,
|
|
4237
|
+
}, j(e.filter.description), 9, Ia)) : a("", !0)
|
|
4229
4238
|
])])) : e.filter.type === "multi-select" && e.filter.searchable ? (S(), i(Fr, {
|
|
4230
4239
|
key: 3,
|
|
4231
4240
|
"model-value": lt(e),
|
|
@@ -4241,7 +4250,7 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4241
4250
|
"options",
|
|
4242
4251
|
"placeholder",
|
|
4243
4252
|
"search-description"
|
|
4244
|
-
])) : e.filter.type === "multi-select" ? (S(), o("div",
|
|
4253
|
+
])) : e.filter.type === "multi-select" ? (S(), o("div", La, [l(Kr, {
|
|
4245
4254
|
"model-value": lt(e),
|
|
4246
4255
|
"onUpdate:modelValue": (t) => ut(e, t),
|
|
4247
4256
|
options: ot(e),
|
|
@@ -4277,11 +4286,11 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4277
4286
|
onClick: r[0] ||= ne(() => {}, ["stop", "prevent"]),
|
|
4278
4287
|
onKeydown: (t) => Fe(t, e.key),
|
|
4279
4288
|
onPointerdown: (t) => Pe(t, e.key)
|
|
4280
|
-
}, null, 42,
|
|
4281
|
-
t.data.length === 0 ? (S(), o("tbody",
|
|
4289
|
+
}, null, 42, Ra)) : a("", !0)], 10, Ca))), 128))])]),
|
|
4290
|
+
t.data.length === 0 ? (S(), o("tbody", za, [s("tr", Ba, [s("td", {
|
|
4282
4291
|
class: "g-table-empty",
|
|
4283
4292
|
colspan: Be.value.length + +!!t.bulkSelectionEnabled
|
|
4284
|
-
}, [D(n.$slots, "empty")], 8,
|
|
4293
|
+
}, [D(n.$slots, "empty")], 8, Va)])])) : (S(), i(lr, {
|
|
4285
4294
|
key: 1,
|
|
4286
4295
|
data: t.data,
|
|
4287
4296
|
columns: Be.value,
|
|
@@ -4310,8 +4319,8 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4310
4319
|
"table-id",
|
|
4311
4320
|
"change-tracker"
|
|
4312
4321
|
]))
|
|
4313
|
-
], 10,
|
|
4314
|
-
t.bulkSelectionEnabled && m.value.length > 0 ? (S(), o("div",
|
|
4322
|
+
], 10, ga)], 512),
|
|
4323
|
+
t.bulkSelectionEnabled && m.value.length > 0 ? (S(), o("div", Ha, [s("span", Ua, j(m.value.length) + " row" + j(m.value.length === 1 ? "" : "s") + " selected", 1), s("ul", Wa, [(S(!0), o(e, null, E(t.bulkActions, (e) => (S(), o("li", { key: e.id }, [l($, {
|
|
4315
4324
|
theme: e.theme || "accent",
|
|
4316
4325
|
onClick: (t) => V(e.id),
|
|
4317
4326
|
size: "small"
|
|
@@ -4321,7 +4330,7 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4321
4330
|
}, 1032, ["theme", "onClick"])]))), 128))])])) : a("", !0)
|
|
4322
4331
|
]));
|
|
4323
4332
|
}
|
|
4324
|
-
}),
|
|
4333
|
+
}), Ka = ["id"], qa = { class: "g-modal-inner" }, Ja = { class: "g-modal-header" }, Ya = ["id"], Xa = ["id"], Za = /* @__PURE__ */ u({
|
|
4325
4334
|
__name: "GModal",
|
|
4326
4335
|
props: {
|
|
4327
4336
|
label: {},
|
|
@@ -4365,12 +4374,12 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4365
4374
|
ref_key: "dialog",
|
|
4366
4375
|
ref: f,
|
|
4367
4376
|
style: { zIndex: F(x) }
|
|
4368
|
-
}), [s("div",
|
|
4377
|
+
}), [s("div", qa, [s("div", Ja, [e.hiddenLabel ? a("", !0) : (S(), o("h2", {
|
|
4369
4378
|
key: 0,
|
|
4370
4379
|
id: "modal-label-" + F(h),
|
|
4371
4380
|
class: "g-modal-label",
|
|
4372
4381
|
tabindex: "-1"
|
|
4373
|
-
}, j(e.label), 9,
|
|
4382
|
+
}, j(e.label), 9, Ya)), s("button", {
|
|
4374
4383
|
class: "g-modal-close",
|
|
4375
4384
|
onClick: E,
|
|
4376
4385
|
"aria-label": "Close"
|
|
@@ -4385,36 +4394,36 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4385
4394
|
})], -1)]])]), s("div", {
|
|
4386
4395
|
id: "modal-description-" + F(h),
|
|
4387
4396
|
class: "g-modal-content"
|
|
4388
|
-
}, [D(r.$slots, "default")], 8,
|
|
4397
|
+
}, [D(r.$slots, "default")], 8, Xa)])], 16, Ka)]),
|
|
4389
4398
|
_: 3
|
|
4390
4399
|
})]));
|
|
4391
4400
|
}
|
|
4392
|
-
}),
|
|
4401
|
+
}), Qa = /* @__PURE__ */ u({
|
|
4393
4402
|
__name: "GDetailList",
|
|
4394
4403
|
props: { variant: { default: "grid" } },
|
|
4395
4404
|
setup(e) {
|
|
4396
4405
|
let t = e;
|
|
4397
4406
|
return (e, n) => (S(), o("dl", { class: g(["g-detail-list", `g-detail-list--${t.variant}`]) }, [D(e.$slots, "default")], 2));
|
|
4398
4407
|
}
|
|
4399
|
-
}),
|
|
4408
|
+
}), $a = { class: "g-detail-list-item" }, eo = { class: "g-detail-list-item__label" }, to = { class: "g-detail-list-item__value" }, no = /* @__PURE__ */ u({
|
|
4400
4409
|
__name: "GDetailListItem",
|
|
4401
4410
|
props: { label: {} },
|
|
4402
4411
|
setup(e) {
|
|
4403
|
-
return (t, n) => (S(), o("div",
|
|
4412
|
+
return (t, n) => (S(), o("div", $a, [s("dt", eo, [D(t.$slots, "label", {}, () => [c(j(e.label), 1)])]), s("dd", to, [D(t.$slots, "default")])]));
|
|
4404
4413
|
}
|
|
4405
|
-
}),
|
|
4414
|
+
}), ro = {
|
|
4406
4415
|
key: 0,
|
|
4407
4416
|
class: "g-scroll-lock-overlay"
|
|
4408
|
-
},
|
|
4417
|
+
}, io = /* @__PURE__ */ u({
|
|
4409
4418
|
__name: "GOverlay",
|
|
4410
4419
|
setup(e) {
|
|
4411
4420
|
let { hasScrollLock: t } = Ge();
|
|
4412
4421
|
return (e, r) => (S(), i(n, { name: "g-fade" }, {
|
|
4413
|
-
default: U(() => [F(t) ? (S(), o("div",
|
|
4422
|
+
default: U(() => [F(t) ? (S(), o("div", ro)) : a("", !0)]),
|
|
4414
4423
|
_: 1
|
|
4415
4424
|
}));
|
|
4416
4425
|
}
|
|
4417
|
-
}),
|
|
4426
|
+
}), ao = { class: "popover-content" }, oo = { class: "year-dropdown" }, so = { class: "month-selector" }, co = /* @__PURE__ */ u({
|
|
4418
4427
|
__name: "GTermSelectorControl",
|
|
4419
4428
|
props: /*@__PURE__*/ p({
|
|
4420
4429
|
termYears: { default: () => ["2026"] },
|
|
@@ -4435,7 +4444,7 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4435
4444
|
emits: ["update:modelValue"],
|
|
4436
4445
|
setup(e) {
|
|
4437
4446
|
let t = R(e, "modelValue");
|
|
4438
|
-
return (n, r) => (S(), o("div",
|
|
4447
|
+
return (n, r) => (S(), o("div", ao, [s("div", oo, [l(Gt, {
|
|
4439
4448
|
modelValue: t.value.year,
|
|
4440
4449
|
"onUpdate:modelValue": r[0] ||= (e) => t.value.year = e,
|
|
4441
4450
|
options: e.termYears,
|
|
@@ -4444,7 +4453,7 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4444
4453
|
"modelValue",
|
|
4445
4454
|
"options",
|
|
4446
4455
|
"label"
|
|
4447
|
-
])]), s("div",
|
|
4456
|
+
])]), s("div", so, [l(bt, {
|
|
4448
4457
|
modelValue: t.value.name,
|
|
4449
4458
|
"onUpdate:modelValue": r[1] ||= (e) => t.value.name = e,
|
|
4450
4459
|
options: e.termNames,
|
|
@@ -4456,10 +4465,10 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4456
4465
|
"label"
|
|
4457
4466
|
])])]));
|
|
4458
4467
|
}
|
|
4459
|
-
}),
|
|
4468
|
+
}), lo = { class: "g-term-selector" }, uo = { class: "g-term-label" }, fo = {
|
|
4460
4469
|
class: "g-popover-title",
|
|
4461
4470
|
tabindex: "-1"
|
|
4462
|
-
},
|
|
4471
|
+
}, po = /* @__PURE__ */ u({
|
|
4463
4472
|
__name: "GTermSelector",
|
|
4464
4473
|
props: /*@__PURE__*/ p({
|
|
4465
4474
|
heading: { default: "Period Selection" },
|
|
@@ -4481,7 +4490,7 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4481
4490
|
emits: ["update:modelValue"],
|
|
4482
4491
|
setup(e) {
|
|
4483
4492
|
let t = R(e, "modelValue");
|
|
4484
|
-
return (n, r) => (S(), o("div",
|
|
4493
|
+
return (n, r) => (S(), o("div", lo, [l(at, null, {
|
|
4485
4494
|
trigger: U(({ toggle: e }) => [l($, {
|
|
4486
4495
|
class: "g-term-selector-button",
|
|
4487
4496
|
theme: "none",
|
|
@@ -4494,7 +4503,7 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4494
4503
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4495
4504
|
viewBox: "0 0 640 640"
|
|
4496
4505
|
}, [s("path", { d: "M224 64C206.3 64 192 78.3 192 96L192 128L160 128C124.7 128 96 156.7 96 192L96 240L544 240L544 192C544 156.7 515.3 128 480 128L448 128L448 96C448 78.3 433.7 64 416 64C398.3 64 384 78.3 384 96L384 128L256 128L256 96C256 78.3 241.7 64 224 64zM96 288L96 480C96 515.3 124.7 544 160 544L480 544C515.3 544 544 515.3 544 480L544 288L96 288z" })])], -1),
|
|
4497
|
-
s("span",
|
|
4506
|
+
s("span", uo, j(t.value?.name) + " " + j(t.value?.year), 1),
|
|
4498
4507
|
r[2] ||= s("span", { class: "g-caret" }, [s("svg", {
|
|
4499
4508
|
role: "none",
|
|
4500
4509
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4503,18 +4512,18 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4503
4512
|
]),
|
|
4504
4513
|
_: 1
|
|
4505
4514
|
}, 8, ["onClick"])]),
|
|
4506
|
-
default: U(() => [s("h2",
|
|
4515
|
+
default: U(() => [s("h2", fo, j(e.heading), 1), l(co, m(n.$props, {
|
|
4507
4516
|
modelValue: t.value,
|
|
4508
4517
|
"onUpdate:modelValue": r[0] ||= (e) => t.value = e
|
|
4509
4518
|
}), null, 16, ["modelValue"])]),
|
|
4510
4519
|
_: 1
|
|
4511
4520
|
})]));
|
|
4512
4521
|
}
|
|
4513
|
-
}),
|
|
4522
|
+
}), mo = { class: "g-user-menu" }, ho = [
|
|
4514
4523
|
"aria-label",
|
|
4515
4524
|
"aria-expanded",
|
|
4516
4525
|
"onClick"
|
|
4517
|
-
],
|
|
4526
|
+
], go = { class: "g-user-menu__popover" }, _o = { class: "g-user-menu__list" }, vo = /* @__PURE__ */ u({
|
|
4518
4527
|
__name: "GUserMenu",
|
|
4519
4528
|
props: {
|
|
4520
4529
|
initials: {},
|
|
@@ -4526,7 +4535,7 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4526
4535
|
let n = `${L()}-email`, r = T(!1), a = B("emailHeading");
|
|
4527
4536
|
d()?.appContext?.components?.RouterLink;
|
|
4528
4537
|
let c = z();
|
|
4529
|
-
return (u, d) => (S(), o("div",
|
|
4538
|
+
return (u, d) => (S(), o("div", mo, [l(at, {
|
|
4530
4539
|
modelValue: r.value,
|
|
4531
4540
|
"onUpdate:modelValue": d[0] ||= (e) => r.value = e,
|
|
4532
4541
|
minimal: ""
|
|
@@ -4538,8 +4547,8 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4538
4547
|
"aria-expanded": r.value,
|
|
4539
4548
|
"aria-haspopup": "menu",
|
|
4540
4549
|
onClick: e
|
|
4541
|
-
}, j(t.initials), 13,
|
|
4542
|
-
default: U(() => [s("div",
|
|
4550
|
+
}, j(t.initials), 13, ho)]),
|
|
4551
|
+
default: U(() => [s("div", go, [s("h2", {
|
|
4543
4552
|
id: n,
|
|
4544
4553
|
ref_key: "emailHeading",
|
|
4545
4554
|
ref: a,
|
|
@@ -4548,11 +4557,11 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4548
4557
|
}, j(t.email), 513), s("nav", {
|
|
4549
4558
|
class: "g-user-menu__nav",
|
|
4550
4559
|
"aria-labelledby": n
|
|
4551
|
-
}, [s("ul",
|
|
4560
|
+
}, [s("ul", _o, [(S(!0), o(e, null, E(c.default(), (e, t) => (S(), o("li", { key: t }, [(S(), i(O(e)))]))), 128))])])])]),
|
|
4552
4561
|
_: 1
|
|
4553
4562
|
}, 8, ["modelValue"])]));
|
|
4554
4563
|
}
|
|
4555
|
-
}),
|
|
4564
|
+
}), yo = /* @__PURE__ */ u({
|
|
4556
4565
|
__name: "GCurrencyInput",
|
|
4557
4566
|
props: /*@__PURE__*/ p({
|
|
4558
4567
|
label: { default: void 0 },
|
|
@@ -4603,7 +4612,7 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4603
4612
|
"form-key"
|
|
4604
4613
|
]));
|
|
4605
4614
|
}
|
|
4606
|
-
}),
|
|
4615
|
+
}), bo = /* @__PURE__ */ u({
|
|
4607
4616
|
__name: "GEmailInput",
|
|
4608
4617
|
props: /*@__PURE__*/ p({
|
|
4609
4618
|
label: { default: void 0 },
|
|
@@ -4648,13 +4657,13 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4648
4657
|
"instructions"
|
|
4649
4658
|
]));
|
|
4650
4659
|
}
|
|
4651
|
-
}),
|
|
4660
|
+
}), xo = ["for"], So = {
|
|
4652
4661
|
key: 0,
|
|
4653
4662
|
class: "g-file-input-required"
|
|
4654
|
-
},
|
|
4663
|
+
}, Co = {
|
|
4655
4664
|
key: 0,
|
|
4656
4665
|
class: "g-file-input-box-header"
|
|
4657
|
-
},
|
|
4666
|
+
}, wo = ["id"], To = [
|
|
4658
4667
|
"id",
|
|
4659
4668
|
"disabled",
|
|
4660
4669
|
"required",
|
|
@@ -4663,11 +4672,11 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4663
4672
|
"aria-invalid",
|
|
4664
4673
|
"aria-describedby",
|
|
4665
4674
|
"aria-errormessage"
|
|
4666
|
-
],
|
|
4675
|
+
], Eo = {
|
|
4667
4676
|
key: 1,
|
|
4668
4677
|
class: "g-file-input-pills",
|
|
4669
4678
|
"aria-label": "Selected files"
|
|
4670
|
-
},
|
|
4679
|
+
}, Do = /* @__PURE__ */ u({
|
|
4671
4680
|
inheritAttrs: !1,
|
|
4672
4681
|
__name: "GFileInput",
|
|
4673
4682
|
props: /*@__PURE__*/ p({
|
|
@@ -4724,12 +4733,12 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4724
4733
|
key: 0,
|
|
4725
4734
|
for: F(d),
|
|
4726
4735
|
class: "g-file-input-label"
|
|
4727
|
-
}, [c(j(t.label) + " ", 1), t.required ? (S(), o("span",
|
|
4736
|
+
}, [c(j(t.label) + " ", 1), t.required ? (S(), o("span", So, "*")) : a("", !0)], 8, xo)) : a("", !0),
|
|
4728
4737
|
s("div", { class: g(["g-file-input-box", { "g-file-input-box--disabled": t.disabled }]) }, [
|
|
4729
|
-
t.instructions ? (S(), o("div",
|
|
4738
|
+
t.instructions ? (S(), o("div", Co, [s("span", {
|
|
4730
4739
|
id: "instructions-" + F(d),
|
|
4731
4740
|
class: "g-file-input-instructions"
|
|
4732
|
-
}, j(t.instructions), 9,
|
|
4741
|
+
}, j(t.instructions), 9, wo)])) : a("", !0),
|
|
4733
4742
|
s("input", {
|
|
4734
4743
|
id: F(d),
|
|
4735
4744
|
type: "file",
|
|
@@ -4742,8 +4751,8 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4742
4751
|
"aria-describedby": t.instructions ? "instructions-" + F(d) : void 0,
|
|
4743
4752
|
"aria-errormessage": y.value ? "error-message-" + F(d) : void 0,
|
|
4744
4753
|
onChange: _
|
|
4745
|
-
}, null, 40,
|
|
4746
|
-
t.multiple && b.value.length > 0 ? (S(), o("ul",
|
|
4754
|
+
}, null, 40, To),
|
|
4755
|
+
t.multiple && b.value.length > 0 ? (S(), o("ul", Eo, [(S(!0), o(e, null, E(b.value, (e) => (S(), o("li", {
|
|
4747
4756
|
key: e,
|
|
4748
4757
|
class: "g-file-input-pill"
|
|
4749
4758
|
}, [r[0] ||= s("svg", {
|
|
@@ -4759,7 +4768,7 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4759
4768
|
}, null, 8, ["errors", "id"])
|
|
4760
4769
|
], 2));
|
|
4761
4770
|
}
|
|
4762
|
-
}),
|
|
4771
|
+
}), Oo = /* @__PURE__ */ u({
|
|
4763
4772
|
__name: "GDateInput",
|
|
4764
4773
|
props: /*@__PURE__*/ p({
|
|
4765
4774
|
label: { default: void 0 },
|
|
@@ -4807,21 +4816,21 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4807
4816
|
"form-key"
|
|
4808
4817
|
]));
|
|
4809
4818
|
}
|
|
4810
|
-
}),
|
|
4819
|
+
}), ko = { class: "g-date-range-input" }, Ao = {
|
|
4811
4820
|
key: 0,
|
|
4812
4821
|
class: "g-date-range-input__label"
|
|
4813
|
-
},
|
|
4822
|
+
}, jo = {
|
|
4814
4823
|
key: 0,
|
|
4815
4824
|
class: "g-date-range-input__required",
|
|
4816
4825
|
"aria-hidden": "true"
|
|
4817
|
-
},
|
|
4826
|
+
}, Mo = {
|
|
4818
4827
|
key: 1,
|
|
4819
4828
|
class: "g-date-range-input__instructions"
|
|
4820
|
-
},
|
|
4829
|
+
}, No = { class: "g-date-range-input__fields" }, Po = {
|
|
4821
4830
|
key: 2,
|
|
4822
4831
|
class: "g-date-range-input__errors",
|
|
4823
4832
|
role: "alert"
|
|
4824
|
-
},
|
|
4833
|
+
}, Fo = /* @__PURE__ */ u({
|
|
4825
4834
|
__name: "GDateRangeInput",
|
|
4826
4835
|
props: /*@__PURE__*/ p({
|
|
4827
4836
|
label: { default: void 0 },
|
|
@@ -4861,10 +4870,10 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4861
4870
|
};
|
|
4862
4871
|
}), V(r, (e) => {
|
|
4863
4872
|
e.start !== i.value && (i.value = e.start), e.end !== u.value && (u.value = e.end);
|
|
4864
|
-
}, { deep: !0 }), (t, r) => (S(), o("div",
|
|
4865
|
-
n.label ? (S(), o("div",
|
|
4866
|
-
n.instructions ? (S(), o("div",
|
|
4867
|
-
s("div",
|
|
4873
|
+
}, { deep: !0 }), (t, r) => (S(), o("div", ko, [
|
|
4874
|
+
n.label ? (S(), o("div", Ao, [c(j(n.label), 1), n.required ? (S(), o("span", jo, " *")) : a("", !0)])) : a("", !0),
|
|
4875
|
+
n.instructions ? (S(), o("div", Mo, j(n.instructions), 1)) : a("", !0),
|
|
4876
|
+
s("div", No, [l(Oo, {
|
|
4868
4877
|
modelValue: i.value,
|
|
4869
4878
|
"onUpdate:modelValue": r[0] ||= (e) => i.value = e,
|
|
4870
4879
|
label: n.startLabel,
|
|
@@ -4876,7 +4885,7 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4876
4885
|
"label",
|
|
4877
4886
|
"disabled",
|
|
4878
4887
|
"required"
|
|
4879
|
-
]), l(
|
|
4888
|
+
]), l(Oo, {
|
|
4880
4889
|
modelValue: u.value,
|
|
4881
4890
|
"onUpdate:modelValue": r[1] ||= (e) => u.value = e,
|
|
4882
4891
|
label: n.endLabel,
|
|
@@ -4889,13 +4898,13 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4889
4898
|
"disabled",
|
|
4890
4899
|
"required"
|
|
4891
4900
|
])]),
|
|
4892
|
-
F(d).length > 0 ? (S(), o("div",
|
|
4901
|
+
F(d).length > 0 ? (S(), o("div", Po, [(S(!0), o(e, null, E(F(d), (e, t) => (S(), o("div", {
|
|
4893
4902
|
key: t,
|
|
4894
4903
|
class: "g-date-range-input__error"
|
|
4895
4904
|
}, j(e), 1))), 128))])) : a("", !0)
|
|
4896
4905
|
]));
|
|
4897
4906
|
}
|
|
4898
|
-
}),
|
|
4907
|
+
}), Io = ["action", "method"], Lo = /* @__PURE__ */ u({
|
|
4899
4908
|
__name: "GForm",
|
|
4900
4909
|
props: /*@__PURE__*/ p({
|
|
4901
4910
|
action: { default: void 0 },
|
|
@@ -4935,9 +4944,9 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4935
4944
|
hasErrors: F(s).hasErrors.value,
|
|
4936
4945
|
values: F(s).values.value,
|
|
4937
4946
|
errors: F(s).errors.value
|
|
4938
|
-
})], 40,
|
|
4947
|
+
})], 40, Io));
|
|
4939
4948
|
}
|
|
4940
|
-
}),
|
|
4949
|
+
}), Ro = /* @__PURE__ */ u({
|
|
4941
4950
|
__name: "GSubmitButton",
|
|
4942
4951
|
props: {
|
|
4943
4952
|
disabled: {
|
|
@@ -4960,11 +4969,11 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4960
4969
|
_: 3
|
|
4961
4970
|
}, 8, ["disabled", "variant"]));
|
|
4962
4971
|
}
|
|
4963
|
-
}),
|
|
4972
|
+
}), zo = ["for"], Bo = {
|
|
4964
4973
|
key: 0,
|
|
4965
4974
|
class: "g-textarea-required",
|
|
4966
4975
|
"aria-hidden": "true"
|
|
4967
|
-
},
|
|
4976
|
+
}, Vo = ["id"], Ho = [
|
|
4968
4977
|
"value",
|
|
4969
4978
|
"placeholder",
|
|
4970
4979
|
"disabled",
|
|
@@ -4973,11 +4982,11 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
4973
4982
|
"rows",
|
|
4974
4983
|
"maxlength",
|
|
4975
4984
|
"aria-invalid"
|
|
4976
|
-
],
|
|
4985
|
+
], Uo = {
|
|
4977
4986
|
key: 2,
|
|
4978
4987
|
class: "g-textarea-char-count",
|
|
4979
4988
|
"aria-live": "polite"
|
|
4980
|
-
},
|
|
4989
|
+
}, Wo = /* @__PURE__ */ u({
|
|
4981
4990
|
inheritAttrs: !1,
|
|
4982
4991
|
__name: "GTextarea",
|
|
4983
4992
|
props: /*@__PURE__*/ p({
|
|
@@ -5051,12 +5060,12 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
5051
5060
|
key: 0,
|
|
5052
5061
|
for: _.value,
|
|
5053
5062
|
class: "g-textarea-label"
|
|
5054
|
-
}, [c(j(n.label), 1), n.required ? (S(), o("span",
|
|
5063
|
+
}, [c(j(n.label), 1), n.required ? (S(), o("span", Bo, " *")) : a("", !0)], 8, zo)) : a("", !0),
|
|
5055
5064
|
t.$slots.instructions || e.instructions ? (S(), o("div", {
|
|
5056
5065
|
key: 1,
|
|
5057
5066
|
id: "instructions-" + F(u),
|
|
5058
5067
|
class: "g-textarea-instructions"
|
|
5059
|
-
}, [D(t.$slots, "instructions", {}, () => [c(j(e.instructions), 1)])], 8,
|
|
5068
|
+
}, [D(t.$slots, "instructions", {}, () => [c(j(e.instructions), 1)])], 8, Vo)) : a("", !0),
|
|
5060
5069
|
s("textarea", m({
|
|
5061
5070
|
ref: "textareaEl",
|
|
5062
5071
|
value: i.value ?? "",
|
|
@@ -5077,15 +5086,15 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
5077
5086
|
onInput: T,
|
|
5078
5087
|
onBlur: E,
|
|
5079
5088
|
onPaste: O
|
|
5080
|
-
}), null, 16,
|
|
5081
|
-
n.maxlength === void 0 ? a("", !0) : (S(), o("div",
|
|
5089
|
+
}), null, 16, Ho),
|
|
5090
|
+
n.maxlength === void 0 ? a("", !0) : (S(), o("div", Uo, j((i.value ?? "").length) + " / " + j(n.maxlength), 1)),
|
|
5082
5091
|
l(ke, {
|
|
5083
5092
|
errors: F(v),
|
|
5084
5093
|
id: "error-message-" + F(u)
|
|
5085
5094
|
}, null, 8, ["errors", "id"])
|
|
5086
5095
|
], 2));
|
|
5087
5096
|
}
|
|
5088
|
-
}),
|
|
5097
|
+
}), Go = { class: "g-toggle-wrapper" }, Ko = ["for"], qo = [
|
|
5089
5098
|
"id",
|
|
5090
5099
|
"checked",
|
|
5091
5100
|
"disabled",
|
|
@@ -5093,7 +5102,7 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
5093
5102
|
"aria-describedby",
|
|
5094
5103
|
"aria-invalid",
|
|
5095
5104
|
"aria-errormessage"
|
|
5096
|
-
],
|
|
5105
|
+
], Jo = ["id"], Yo = /* @__PURE__ */ u({
|
|
5097
5106
|
__name: "GToggle",
|
|
5098
5107
|
props: /*@__PURE__*/ p({
|
|
5099
5108
|
label: {},
|
|
@@ -5128,11 +5137,11 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
5128
5137
|
n.disabled || (e.key === "n" || e.key === "N" || e.key === "ArrowLeft" ? (l(!1), e.preventDefault()) : (e.key === "y" || e.key === "Y" || e.key === "ArrowRight") && (l(!0), e.preventDefault()));
|
|
5129
5138
|
}
|
|
5130
5139
|
let p = L(), m = L();
|
|
5131
|
-
return (t, n) => (S(), o("div",
|
|
5140
|
+
return (t, n) => (S(), o("div", Go, [s("div", { class: g(["g-toggle-control", { "g-external-label": e.externalLabel }]) }, [e.externalLabel ? a("", !0) : (S(), o("label", {
|
|
5132
5141
|
key: 0,
|
|
5133
5142
|
class: "g-label",
|
|
5134
5143
|
for: F(m)
|
|
5135
|
-
}, [D(t.$slots, "label", {}, () => [c(j(e.label), 1)])], 8,
|
|
5144
|
+
}, [D(t.$slots, "label", {}, () => [c(j(e.label), 1)])], 8, Ko)), s("div", { class: g(["g-toggle", { "g-has-error": e.error }]) }, [s("div", { class: g(["g-toggle-track", [r.value ? "g-right" : "g-left", { "g-disabled": e.disabled }]]) }, [s("span", {
|
|
5136
5145
|
class: g(["g-toggle-thumb", r.value ? "g-right" : "g-left"]),
|
|
5137
5146
|
"aria-hidden": "true"
|
|
5138
5147
|
}, null, 2), s("input", {
|
|
@@ -5146,18 +5155,18 @@ var ji = { class: "g-table-outer-wrap" }, Mi = {
|
|
|
5146
5155
|
"aria-errormessage": e.error ? F(p) + "-error" : void 0,
|
|
5147
5156
|
onChange: d,
|
|
5148
5157
|
onKeydown: f
|
|
5149
|
-
}, null, 40,
|
|
5158
|
+
}, null, 40, qo)], 2)], 2)], 2), e.error ? (S(), o("div", {
|
|
5150
5159
|
key: 0,
|
|
5151
5160
|
id: `${F(p)}-error`,
|
|
5152
5161
|
class: "g-form-error",
|
|
5153
5162
|
role: "alert",
|
|
5154
5163
|
"aria-atomic": "true"
|
|
5155
|
-
}, j(e.error), 9,
|
|
5164
|
+
}, j(e.error), 9, Jo)) : a("", !0)]));
|
|
5156
5165
|
}
|
|
5157
5166
|
});
|
|
5158
5167
|
//#endregion
|
|
5159
5168
|
//#region src/compose/useActiveLink.ts
|
|
5160
|
-
function
|
|
5169
|
+
function Xo(e, t, n) {
|
|
5161
5170
|
let r = [
|
|
5162
5171
|
0,
|
|
5163
5172
|
.25,
|
|
@@ -5194,7 +5203,7 @@ function Ko(e, t, n) {
|
|
|
5194
5203
|
}
|
|
5195
5204
|
//#endregion
|
|
5196
5205
|
//#region src/compose/useSidebar.ts
|
|
5197
|
-
function
|
|
5206
|
+
function Zo(e = "(max-width: 800px)") {
|
|
5198
5207
|
let t = L(), n = T(!1), r = X(e, { ssrWidth: 1e3 });
|
|
5199
5208
|
function i(e) {
|
|
5200
5209
|
if (!r.value || !n.value) return;
|
|
@@ -5225,41 +5234,41 @@ function qo(e = "(max-width: 800px)") {
|
|
|
5225
5234
|
}
|
|
5226
5235
|
//#endregion
|
|
5227
5236
|
//#region src/compose/usePaging.ts
|
|
5228
|
-
function
|
|
5237
|
+
function Qo(e) {
|
|
5229
5238
|
let t = /* @__PURE__ */ new Set();
|
|
5230
5239
|
return (e ?? []).filter((e) => !e?.key || t.has(e.key) || e.order !== 1 && e.order !== -1 ? !1 : (t.add(e.key), !0));
|
|
5231
5240
|
}
|
|
5232
|
-
function
|
|
5233
|
-
return e == null ? [] :
|
|
5241
|
+
function $o(e) {
|
|
5242
|
+
return e == null ? [] : Qo((typeof e == "string" ? e.split(",") : e).filter((e) => e !== null).map((e) => e.trim()).filter(Boolean).map((e) => ({
|
|
5234
5243
|
key: e.replace(/^-/, ""),
|
|
5235
5244
|
order: e.startsWith("-") ? -1 : 1
|
|
5236
5245
|
})));
|
|
5237
5246
|
}
|
|
5238
|
-
function
|
|
5239
|
-
let t =
|
|
5247
|
+
function es(e) {
|
|
5248
|
+
let t = Qo(e);
|
|
5240
5249
|
if (t.length !== 0) return t.map(({ key: e, order: t }) => `${t === -1 ? "-" : ""}${e}`);
|
|
5241
5250
|
}
|
|
5242
|
-
function
|
|
5243
|
-
let n =
|
|
5251
|
+
function ts(e, t = []) {
|
|
5252
|
+
let n = Qo(e);
|
|
5244
5253
|
if (n.length === 0) return;
|
|
5245
5254
|
let r = n.map(({ key: e, order: t }) => `${t === -1 ? "-" : ""}${e}`), i = new Set(n.map(({ key: e }) => String(e))), a = n.length === 1 && n[0].order === -1 ? "-" : "";
|
|
5246
5255
|
return t.forEach((e) => {
|
|
5247
5256
|
i.has(e) || r.push(`${a}${e}`);
|
|
5248
5257
|
}), r.join(",");
|
|
5249
5258
|
}
|
|
5250
|
-
function
|
|
5259
|
+
function ns(e) {
|
|
5251
5260
|
return Array.isArray(e) ? [...e] : e;
|
|
5252
5261
|
}
|
|
5253
|
-
function
|
|
5262
|
+
function rs(e, t) {
|
|
5254
5263
|
return Array.isArray(e) || Array.isArray(t) ? !Array.isArray(e) || !Array.isArray(t) ? !1 : e.length === t.length && e.every((e, n) => e === t[n]) : e === t;
|
|
5255
5264
|
}
|
|
5256
|
-
function
|
|
5265
|
+
function is(e, t) {
|
|
5257
5266
|
return e.length === t.length && e.every((e, n) => {
|
|
5258
5267
|
let r = t[n];
|
|
5259
5268
|
return e.key === r?.key && e.order === r?.order;
|
|
5260
5269
|
});
|
|
5261
5270
|
}
|
|
5262
|
-
function
|
|
5271
|
+
function as(e, t) {
|
|
5263
5272
|
if (typeof e == "string") return Number(e);
|
|
5264
5273
|
if (Array.isArray(e)) {
|
|
5265
5274
|
let n = e.find((e) => e !== null);
|
|
@@ -5267,35 +5276,35 @@ function ts(e, t) {
|
|
|
5267
5276
|
}
|
|
5268
5277
|
return t;
|
|
5269
5278
|
}
|
|
5270
|
-
function
|
|
5279
|
+
function os(e = {}) {
|
|
5271
5280
|
let t = e.defaultPageSize ?? 50, n = e.defaultPageOffset ?? 0, i = e.sortKey ?? "sort", a = e.pageSizeKey ?? "pageSize", o = e.pageOffsetKey ?? "pageOffset", s = A([]), c = T(t), l = T(n);
|
|
5272
5281
|
return e.route && e.router && (V(() => e.route?.query[i], (e) => {
|
|
5273
|
-
let t =
|
|
5274
|
-
|
|
5282
|
+
let t = $o(e);
|
|
5283
|
+
is(s.value, t) || (s.value = t);
|
|
5275
5284
|
}, { immediate: !0 }), V(() => e.route?.query[a], (e) => {
|
|
5276
|
-
let n =
|
|
5285
|
+
let n = as(e, t);
|
|
5277
5286
|
c.value !== n && (c.value = n);
|
|
5278
5287
|
}, { immediate: !0 }), V(() => e.route?.query[o], (e) => {
|
|
5279
|
-
let t =
|
|
5288
|
+
let t = as(e, n);
|
|
5280
5289
|
l.value !== t && (l.value = t);
|
|
5281
5290
|
}, { immediate: !0 }), V([
|
|
5282
5291
|
s,
|
|
5283
5292
|
c,
|
|
5284
5293
|
l
|
|
5285
5294
|
], ([r, s, c]) => {
|
|
5286
|
-
let l = { ...e.route.query }, u =
|
|
5287
|
-
u === void 0 ? delete l[i] : l[i] =
|
|
5295
|
+
let l = { ...e.route.query }, u = es(r);
|
|
5296
|
+
u === void 0 ? delete l[i] : l[i] = ns(u), s === t || s === void 0 ? delete l[a] : l[a] = String(s), c === n || c === void 0 ? delete l[o] : l[o] = String(c);
|
|
5288
5297
|
let d = /* @__PURE__ */ new Set([...Object.keys(e.route.query), ...Object.keys(l)]), f = !1;
|
|
5289
|
-
for (let t of d) if (
|
|
5298
|
+
for (let t of d) if (!rs(e.route.query[t], l[t])) {
|
|
5290
5299
|
f = !0;
|
|
5291
5300
|
break;
|
|
5292
5301
|
}
|
|
5293
5302
|
f && e.router.replace({ query: l });
|
|
5294
5303
|
})), {
|
|
5295
5304
|
sort: r({
|
|
5296
|
-
get: () =>
|
|
5305
|
+
get: () => Qo(s.value),
|
|
5297
5306
|
set: (e) => {
|
|
5298
|
-
s.value =
|
|
5307
|
+
s.value = Qo(e);
|
|
5299
5308
|
}
|
|
5300
5309
|
}),
|
|
5301
5310
|
pageSize: c,
|
|
@@ -5304,7 +5313,7 @@ function ns(e = {}) {
|
|
|
5304
5313
|
}
|
|
5305
5314
|
//#endregion
|
|
5306
5315
|
//#region src/compose/useTableChanges.ts
|
|
5307
|
-
function
|
|
5316
|
+
function ss() {
|
|
5308
5317
|
let e = k(/* @__PURE__ */ new Map()), t = W(), n = (n) => {
|
|
5309
5318
|
let r = n.column.key, i = n.row.key, a = n.value, o = n.previousValue;
|
|
5310
5319
|
e.has(i) || e.set(i, k(/* @__PURE__ */ new Map()));
|
|
@@ -5408,7 +5417,7 @@ function rs() {
|
|
|
5408
5417
|
}
|
|
5409
5418
|
//#endregion
|
|
5410
5419
|
//#region src/compose/usePersistentTableColumnState.ts
|
|
5411
|
-
function
|
|
5420
|
+
function cs(e, t) {
|
|
5412
5421
|
if (!e || typeof e != "object" || Array.isArray(e)) return {};
|
|
5413
5422
|
let n = new Set(t.map(({ key: e }) => String(e))), r = {};
|
|
5414
5423
|
for (let [t, i] of Object.entries(e)) {
|
|
@@ -5418,13 +5427,13 @@ function is(e, t) {
|
|
|
5418
5427
|
}
|
|
5419
5428
|
return r;
|
|
5420
5429
|
}
|
|
5421
|
-
function
|
|
5430
|
+
function ls(e, t) {
|
|
5422
5431
|
let n = Y(e, {});
|
|
5423
5432
|
return V(() => P(t).map(({ key: e }) => String(e)), () => {
|
|
5424
|
-
n.value =
|
|
5433
|
+
n.value = cs(n.value, P(t));
|
|
5425
5434
|
}, { immediate: !0 }), { columnState: n };
|
|
5426
5435
|
}
|
|
5427
5436
|
//#endregion
|
|
5428
|
-
export {
|
|
5437
|
+
export { jt as $, ji as A, lr as B, no as C, vi as D, Ga as E, yi as F, Tn as G, Nn as H, Pi as I, vn as J, xn as K, Ni as L, _i as M, Oi as N, Ei as O, Mi as P, Gt as Q, Kr as R, io as S, Za as T, On as U, Jn as V, En as W, an as X, un as Y, tn as Z, bo as _, $o as a, $e as at, po as b, Zo as c, Ge as ct, Wo as d, Ee as dt, Tt as et, Ro as f, we as ft, Do as g, $ as gt, Oo as h, ge as ht, Qo as i, et as it, Di as j, gi as k, Xo as l, Ie as lt, Fo as m, _e as mt, ss as n, pt as nt, es as o, Qe as ot, Lo as p, Ce as pt, yn as q, ts as r, at as rt, os as s, We as st, ls as t, bt as tt, Yo as u, De as ut, yo as v, Qa as w, co as x, vo as y, Fr as z };
|
|
5429
5438
|
|
|
5430
|
-
//# sourceMappingURL=grad-vue-
|
|
5439
|
+
//# sourceMappingURL=grad-vue-BqBZYXQU.js.map
|