@illinois-grad/grad-vue 4.0.3 → 5.0.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/custom-elements.json +34 -33
- package/dist/components/GTable.vue.d.ts +22 -8
- package/dist/{grad-vue-BP-cplar.js → grad-vue-DId9tLsv.js} +681 -514
- package/dist/{grad-vue-BP-cplar.js.map → grad-vue-DId9tLsv.js.map} +1 -1
- package/dist/grad-vue-elements.css +30 -30
- package/dist/grad-vue-elements.d.ts +7 -6
- package/dist/grad-vue-elements.js +900 -731
- package/dist/grad-vue-elements.js.map +1 -1
- package/dist/grad-vue.css +1 -1
- package/dist/grad-vue.d.ts +1 -2
- package/dist/grad-vue.js +2 -2
- package/dist/plugin.d.ts +27 -19
- package/dist/plugin.js +4 -4
- package/dist/plugin.js.map +1 -1
- package/package.json +1 -1
|
@@ -11,9 +11,9 @@ var t = {}, n = [], r = () => {}, i = () => !1, a = (e) => e.charCodeAt(0) === 1
|
|
|
11
11
|
}, l = Object.prototype.hasOwnProperty, u = (e, t) => l.call(e, t), d = Array.isArray, f = (e) => x(e) === "[object Map]", p = (e) => x(e) === "[object Set]", m = (e) => x(e) === "[object Date]", h = (e) => typeof e == "function", g = (e) => typeof e == "string", _ = (e) => typeof e == "symbol", v = (e) => typeof e == "object" && !!e, y = (e) => (v(e) || h(e)) && h(e.then) && h(e.catch), b = Object.prototype.toString, x = (e) => b.call(e), S = (e) => x(e).slice(8, -1), C = (e) => x(e) === "[object Object]", w = (e) => g(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, T = /* @__PURE__ */ e(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"), E = (e) => {
|
|
12
12
|
let t = /* @__PURE__ */ Object.create(null);
|
|
13
13
|
return ((n) => t[n] || (t[n] = e(n)));
|
|
14
|
-
}, ee = /-\w/g, D = E((e) => e.replace(ee, (e) => e.slice(1).toUpperCase())),
|
|
14
|
+
}, ee = /-\w/g, D = E((e) => e.replace(ee, (e) => e.slice(1).toUpperCase())), te = /\B([A-Z])/g, O = E((e) => e.replace(te, "-$1").toLowerCase()), ne = E((e) => e.charAt(0).toUpperCase() + e.slice(1)), re = E((e) => e ? `on${ne(e)}` : ""), k = (e, t) => !Object.is(e, t), ie = (e, ...t) => {
|
|
15
15
|
for (let n = 0; n < e.length; n++) e[n](...t);
|
|
16
|
-
},
|
|
16
|
+
}, A = (e, t, n, r = !1) => {
|
|
17
17
|
Object.defineProperty(e, t, {
|
|
18
18
|
configurable: !0,
|
|
19
19
|
enumerable: !1,
|
|
@@ -273,7 +273,7 @@ function ze(e) {
|
|
|
273
273
|
try {
|
|
274
274
|
Ie(e);
|
|
275
275
|
let n = e.fn(e._value);
|
|
276
|
-
(t.version === 0 ||
|
|
276
|
+
(t.version === 0 || k(n, e._value)) && (e.flags |= 128, e._value = n, t.version++);
|
|
277
277
|
} catch (e) {
|
|
278
278
|
throw t.version++, e;
|
|
279
279
|
} finally {
|
|
@@ -575,7 +575,7 @@ var _t = class {
|
|
|
575
575
|
if (!/* @__PURE__ */ Kt(n) && !/* @__PURE__ */ Gt(n) && (i = /* @__PURE__ */ P(i), n = /* @__PURE__ */ P(n)), !a && /* @__PURE__ */ Zt(i) && !/* @__PURE__ */ Zt(n)) return e || (i.value = n), !0;
|
|
576
576
|
}
|
|
577
577
|
let o = a ? Number(t) < e.length : u(e, t), s = Reflect.set(e, t, n, /* @__PURE__ */ Zt(e) ? e : r);
|
|
578
|
-
return e === /* @__PURE__ */ P(r) && s && (o ?
|
|
578
|
+
return e === /* @__PURE__ */ P(r) && s && (o ? k(n, i) && nt(e, "set", t, n, i) : nt(e, "add", t, n)), s;
|
|
579
579
|
}
|
|
580
580
|
deleteProperty(e, t) {
|
|
581
581
|
let n = u(e, t), r = e[t], i = Reflect.deleteProperty(e, t);
|
|
@@ -623,7 +623,7 @@ function Ot(e, t) {
|
|
|
623
623
|
let n = {
|
|
624
624
|
get(n) {
|
|
625
625
|
let r = this.__v_raw, i = /* @__PURE__ */ P(r), a = /* @__PURE__ */ P(n);
|
|
626
|
-
e || (
|
|
626
|
+
e || (k(n, a) && tt(i, "get", n), tt(i, "get", a));
|
|
627
627
|
let { has: o } = Tt(i), s = t ? wt : e ? Xt : Yt;
|
|
628
628
|
if (o.call(i, n)) return s(r.get(n));
|
|
629
629
|
if (o.call(i, a)) return s(r.get(a));
|
|
@@ -635,7 +635,7 @@ function Ot(e, t) {
|
|
|
635
635
|
},
|
|
636
636
|
has(t) {
|
|
637
637
|
let n = this.__v_raw, r = /* @__PURE__ */ P(n), i = /* @__PURE__ */ P(t);
|
|
638
|
-
return e || (
|
|
638
|
+
return e || (k(t, i) && tt(r, "has", t), tt(r, "has", i)), t === i ? n.has(t) : n.has(t) || n.has(i);
|
|
639
639
|
},
|
|
640
640
|
forEach(n, r) {
|
|
641
641
|
let i = this, a = i.__v_raw, o = /* @__PURE__ */ P(a), s = t ? wt : e ? Xt : Yt;
|
|
@@ -650,14 +650,14 @@ function Ot(e, t) {
|
|
|
650
650
|
} : {
|
|
651
651
|
add(e) {
|
|
652
652
|
let n = /* @__PURE__ */ P(this), r = Tt(n), i = /* @__PURE__ */ P(e), a = !t && !/* @__PURE__ */ Kt(e) && !/* @__PURE__ */ Gt(e) ? i : e;
|
|
653
|
-
return r.has.call(n, a) ||
|
|
653
|
+
return r.has.call(n, a) || k(e, a) && r.has.call(n, e) || k(i, a) && r.has.call(n, i) || (n.add(a), nt(n, "add", a, a)), this;
|
|
654
654
|
},
|
|
655
655
|
set(e, n) {
|
|
656
656
|
!t && !/* @__PURE__ */ Kt(n) && !/* @__PURE__ */ Gt(n) && (n = /* @__PURE__ */ P(n));
|
|
657
657
|
let r = /* @__PURE__ */ P(this), { has: i, get: a } = Tt(r), o = i.call(r, e);
|
|
658
658
|
o ||= (e = /* @__PURE__ */ P(e), i.call(r, e));
|
|
659
659
|
let s = a.call(r, e);
|
|
660
|
-
return r.set(e, n), o ?
|
|
660
|
+
return r.set(e, n), o ? k(n, s) && nt(r, "set", e, n, s) : nt(r, "add", e, n), this;
|
|
661
661
|
},
|
|
662
662
|
delete(e) {
|
|
663
663
|
let t = /* @__PURE__ */ P(this), { has: n, get: r } = Tt(t), i = n.call(t, e);
|
|
@@ -741,7 +741,7 @@ function P(e) {
|
|
|
741
741
|
return t ? /* @__PURE__ */ P(t) : e;
|
|
742
742
|
}
|
|
743
743
|
function Jt(e) {
|
|
744
|
-
return !u(e, "__v_skip") && Object.isExtensible(e) &&
|
|
744
|
+
return !u(e, "__v_skip") && Object.isExtensible(e) && A(e, "__v_skip", !0), e;
|
|
745
745
|
}
|
|
746
746
|
var Yt = (e) => v(e) ? /* @__PURE__ */ zt(e) : e, Xt = (e) => v(e) ? /* @__PURE__ */ Vt(e) : e;
|
|
747
747
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -768,7 +768,7 @@ var en = class {
|
|
|
768
768
|
}
|
|
769
769
|
set value(e) {
|
|
770
770
|
let t = this._rawValue, n = this.__v_isShallow || /* @__PURE__ */ Kt(e) || /* @__PURE__ */ Gt(e);
|
|
771
|
-
e = n ? e : /* @__PURE__ */ P(e),
|
|
771
|
+
e = n ? e : /* @__PURE__ */ P(e), k(e, t) && (this._rawValue = e, this._value = n ? e : Yt(e), this.dep.trigger());
|
|
772
772
|
}
|
|
773
773
|
};
|
|
774
774
|
function I(e) {
|
|
@@ -911,7 +911,7 @@ function _n(e, n, i = t) {
|
|
|
911
911
|
if (!(!(m.flags & 1) || !m.dirty && !e)) {
|
|
912
912
|
if (n) {
|
|
913
913
|
let t = m.run();
|
|
914
|
-
if (e || o || y || (b ? t.some((e, t) =>
|
|
914
|
+
if (e || o || y || (b ? t.some((e, t) => k(e, C[t])) : k(t, C))) {
|
|
915
915
|
_ && _();
|
|
916
916
|
let e = hn;
|
|
917
917
|
hn = m;
|
|
@@ -1123,14 +1123,14 @@ function Wn(e, t) {
|
|
|
1123
1123
|
}
|
|
1124
1124
|
function Gn(e, t, n = !1) {
|
|
1125
1125
|
let r = qa();
|
|
1126
|
-
if (r ||
|
|
1127
|
-
let i =
|
|
1126
|
+
if (r || ji) {
|
|
1127
|
+
let i = ji ? ji._context.provides : r ? r.parent == null || r.ce ? r.vnode.appContext && r.vnode.appContext.provides : r.parent.provides : void 0;
|
|
1128
1128
|
if (i && e in i) return i[e];
|
|
1129
1129
|
if (arguments.length > 1) return n && h(t) ? t.call(r && r.proxy) : t;
|
|
1130
1130
|
}
|
|
1131
1131
|
}
|
|
1132
1132
|
function Kn() {
|
|
1133
|
-
return !!(qa() ||
|
|
1133
|
+
return !!(qa() || ji);
|
|
1134
1134
|
}
|
|
1135
1135
|
var qn = /* @__PURE__ */ Symbol.for("v-scx"), Jn = () => Gn(qn);
|
|
1136
1136
|
function Yn(e, t) {
|
|
@@ -1289,9 +1289,9 @@ function gr() {
|
|
|
1289
1289
|
isUnmounting: !1,
|
|
1290
1290
|
leavingVNodes: /* @__PURE__ */ new Map()
|
|
1291
1291
|
};
|
|
1292
|
-
return
|
|
1292
|
+
return Wr(() => {
|
|
1293
1293
|
e.isMounted = !0;
|
|
1294
|
-
}),
|
|
1294
|
+
}), qr(() => {
|
|
1295
1295
|
e.isUnmounting = !0;
|
|
1296
1296
|
}), e;
|
|
1297
1297
|
}
|
|
@@ -1414,10 +1414,10 @@ function wr(e, t, n, r, i) {
|
|
|
1414
1414
|
return T;
|
|
1415
1415
|
}
|
|
1416
1416
|
function Tr(e) {
|
|
1417
|
-
if (
|
|
1417
|
+
if (Ir(e)) return e = La(e), e.children = null, e;
|
|
1418
1418
|
}
|
|
1419
1419
|
function Er(e) {
|
|
1420
|
-
if (!
|
|
1420
|
+
if (!Ir(e)) return nr(e.type) && e.children ? xr(e.children) : e;
|
|
1421
1421
|
if (e.component) return e.component.subTree;
|
|
1422
1422
|
let { shapeFlag: t, children: n } = e;
|
|
1423
1423
|
if (n) {
|
|
@@ -1441,18 +1441,18 @@ function Or(e, t = !1, n) {
|
|
|
1441
1441
|
function z(e, t) {
|
|
1442
1442
|
return h(e) ? /* @__PURE__ */ s({ name: e.name }, t, { setup: e }) : e;
|
|
1443
1443
|
}
|
|
1444
|
-
function
|
|
1444
|
+
function B() {
|
|
1445
1445
|
let e = qa();
|
|
1446
1446
|
return e ? (e.appContext.config.idPrefix || "v") + "-" + e.ids[0] + e.ids[1]++ : "";
|
|
1447
1447
|
}
|
|
1448
|
-
function
|
|
1448
|
+
function kr(e) {
|
|
1449
1449
|
e.ids = [
|
|
1450
1450
|
e.ids[0] + e.ids[2]++ + "-",
|
|
1451
1451
|
0,
|
|
1452
1452
|
0
|
|
1453
1453
|
];
|
|
1454
1454
|
}
|
|
1455
|
-
function
|
|
1455
|
+
function Ar(e) {
|
|
1456
1456
|
let n = qa(), r = /* @__PURE__ */ Qt(null);
|
|
1457
1457
|
if (n) {
|
|
1458
1458
|
let i = n.refs === t ? n.refs = {} : n.refs;
|
|
@@ -1464,23 +1464,23 @@ function jr(e) {
|
|
|
1464
1464
|
}
|
|
1465
1465
|
return r;
|
|
1466
1466
|
}
|
|
1467
|
-
function
|
|
1467
|
+
function jr(e, t) {
|
|
1468
1468
|
let n;
|
|
1469
1469
|
return !!((n = Object.getOwnPropertyDescriptor(e, t)) && !n.configurable);
|
|
1470
1470
|
}
|
|
1471
|
-
var
|
|
1472
|
-
function
|
|
1471
|
+
var Mr = /* @__PURE__ */ new WeakMap();
|
|
1472
|
+
function Nr(e, n, r, a, o = !1) {
|
|
1473
1473
|
if (d(e)) {
|
|
1474
|
-
e.forEach((e, t) =>
|
|
1474
|
+
e.forEach((e, t) => Nr(e, n && (d(n) ? n[t] : n), r, a, o));
|
|
1475
1475
|
return;
|
|
1476
1476
|
}
|
|
1477
|
-
if (
|
|
1478
|
-
a.shapeFlag & 512 && a.type.__asyncResolved && a.component.subTree.component &&
|
|
1477
|
+
if (Fr(a) && !o) {
|
|
1478
|
+
a.shapeFlag & 512 && a.type.__asyncResolved && a.component.subTree.component && Nr(e, n, r, a.component.subTree);
|
|
1479
1479
|
return;
|
|
1480
1480
|
}
|
|
1481
|
-
let s = a.shapeFlag & 4 ? co(a.component) : a.el, l = o ? null : s, { i: f, r: p } = e, m = n && n.r, _ = f.refs === t ? f.refs = {} : f.refs, v = f.setupState, y = /* @__PURE__ */ P(v), b = v === t ? i : (e) => !
|
|
1481
|
+
let s = a.shapeFlag & 4 ? co(a.component) : a.el, l = o ? null : s, { i: f, r: p } = e, m = n && n.r, _ = f.refs === t ? f.refs = {} : f.refs, v = f.setupState, y = /* @__PURE__ */ P(v), b = v === t ? i : (e) => !jr(_, e) && u(y, e), x = (e, t) => !(t && jr(_, t));
|
|
1482
1482
|
if (m != null && m !== p) {
|
|
1483
|
-
if (
|
|
1483
|
+
if (Pr(n), g(m)) _[m] = null, b(m) && (v[m] = null);
|
|
1484
1484
|
else if (/* @__PURE__ */ Zt(m)) {
|
|
1485
1485
|
let e = n;
|
|
1486
1486
|
x(m, e.k) && (m.value = null), e.k && (_[e.k] = null);
|
|
@@ -1504,26 +1504,26 @@ function Pr(e, n, r, a, o = !1) {
|
|
|
1504
1504
|
};
|
|
1505
1505
|
if (l) {
|
|
1506
1506
|
let t = () => {
|
|
1507
|
-
i(),
|
|
1507
|
+
i(), Mr.delete(e);
|
|
1508
1508
|
};
|
|
1509
|
-
t.id = -1,
|
|
1510
|
-
} else
|
|
1509
|
+
t.id = -1, Mr.set(e, t), la(t, r);
|
|
1510
|
+
} else Pr(e), i();
|
|
1511
1511
|
}
|
|
1512
1512
|
}
|
|
1513
1513
|
}
|
|
1514
|
-
function
|
|
1515
|
-
let t =
|
|
1516
|
-
t && (t.flags |= 8,
|
|
1514
|
+
function Pr(e) {
|
|
1515
|
+
let t = Mr.get(e);
|
|
1516
|
+
t && (t.flags |= 8, Mr.delete(e));
|
|
1517
1517
|
}
|
|
1518
1518
|
ce().requestIdleCallback, ce().cancelIdleCallback;
|
|
1519
|
-
var
|
|
1520
|
-
function
|
|
1521
|
-
|
|
1519
|
+
var Fr = (e) => !!e.type.__asyncLoader, Ir = (e) => e.type.__isKeepAlive;
|
|
1520
|
+
function Lr(e, t) {
|
|
1521
|
+
zr(e, "a", t);
|
|
1522
1522
|
}
|
|
1523
|
-
function
|
|
1524
|
-
|
|
1523
|
+
function Rr(e, t) {
|
|
1524
|
+
zr(e, "da", t);
|
|
1525
1525
|
}
|
|
1526
|
-
function
|
|
1526
|
+
function zr(e, t, n = Ka) {
|
|
1527
1527
|
let r = e.__wdc ||= () => {
|
|
1528
1528
|
let t = n;
|
|
1529
1529
|
for (; t;) {
|
|
@@ -1532,18 +1532,18 @@ function Br(e, t, n = Ka) {
|
|
|
1532
1532
|
}
|
|
1533
1533
|
return e();
|
|
1534
1534
|
};
|
|
1535
|
-
if (
|
|
1535
|
+
if (Vr(t, r, n), n) {
|
|
1536
1536
|
let e = n.parent;
|
|
1537
|
-
for (; e && e.parent;)
|
|
1537
|
+
for (; e && e.parent;) Ir(e.parent.vnode) && Br(r, t, n, e), e = e.parent;
|
|
1538
1538
|
}
|
|
1539
1539
|
}
|
|
1540
|
-
function
|
|
1541
|
-
let i =
|
|
1542
|
-
|
|
1540
|
+
function Br(e, t, n, r) {
|
|
1541
|
+
let i = Vr(t, e, r, !0);
|
|
1542
|
+
Jr(() => {
|
|
1543
1543
|
c(r[t], i);
|
|
1544
1544
|
}, n);
|
|
1545
1545
|
}
|
|
1546
|
-
function
|
|
1546
|
+
function Vr(e, t, n = Ka, r = !1) {
|
|
1547
1547
|
if (n) {
|
|
1548
1548
|
let i = n[e] || (n[e] = []), a = t.__weh ||= (...r) => {
|
|
1549
1549
|
We();
|
|
@@ -1553,32 +1553,32 @@ function Hr(e, t, n = Ka, r = !1) {
|
|
|
1553
1553
|
return r ? i.unshift(a) : i.push(a), a;
|
|
1554
1554
|
}
|
|
1555
1555
|
}
|
|
1556
|
-
var
|
|
1557
|
-
(!$a || e === "sp") &&
|
|
1558
|
-
},
|
|
1559
|
-
function
|
|
1560
|
-
|
|
1556
|
+
var Hr = (e) => (t, n = Ka) => {
|
|
1557
|
+
(!$a || e === "sp") && Vr(e, (...e) => t(...e), n);
|
|
1558
|
+
}, Ur = Hr("bm"), Wr = Hr("m"), Gr = Hr("bu"), Kr = Hr("u"), qr = Hr("bum"), Jr = Hr("um"), Yr = Hr("sp"), Xr = Hr("rtg"), Zr = Hr("rtc");
|
|
1559
|
+
function Qr(e, t = Ka) {
|
|
1560
|
+
Vr("ec", e, t);
|
|
1561
1561
|
}
|
|
1562
|
-
var
|
|
1563
|
-
function
|
|
1564
|
-
return g(e) ?
|
|
1562
|
+
var $r = "components", ei = /* @__PURE__ */ Symbol.for("v-ndc");
|
|
1563
|
+
function ti(e) {
|
|
1564
|
+
return g(e) ? ni($r, e, !1) || e : e || ei;
|
|
1565
1565
|
}
|
|
1566
|
-
function
|
|
1566
|
+
function ni(e, t, n = !0, r = !1) {
|
|
1567
1567
|
let i = zn || Ka;
|
|
1568
1568
|
if (i) {
|
|
1569
1569
|
let n = i.type;
|
|
1570
|
-
if (e ===
|
|
1570
|
+
if (e === $r) {
|
|
1571
1571
|
let e = lo(n, !1);
|
|
1572
|
-
if (e && (e === t || e === D(t) || e ===
|
|
1572
|
+
if (e && (e === t || e === D(t) || e === ne(D(t)))) return n;
|
|
1573
1573
|
}
|
|
1574
|
-
let a =
|
|
1574
|
+
let a = ri(i[e] || n[e], t) || ri(i.appContext[e], t);
|
|
1575
1575
|
return !a && r ? n : a;
|
|
1576
1576
|
}
|
|
1577
1577
|
}
|
|
1578
|
-
function
|
|
1579
|
-
return e && (e[t] || e[D(t)] || e[
|
|
1578
|
+
function ri(e, t) {
|
|
1579
|
+
return e && (e[t] || e[D(t)] || e[ne(D(t))]);
|
|
1580
1580
|
}
|
|
1581
|
-
function
|
|
1581
|
+
function V(e, t, n, r) {
|
|
1582
1582
|
let i, a = n && n[r], o = d(e);
|
|
1583
1583
|
if (o || g(e)) {
|
|
1584
1584
|
let n = o && /* @__PURE__ */ Wt(e), r = !1, s = !1;
|
|
@@ -1600,8 +1600,8 @@ function B(e, t, n, r) {
|
|
|
1600
1600
|
} else i = [];
|
|
1601
1601
|
return n && (n[r] = i), i;
|
|
1602
1602
|
}
|
|
1603
|
-
function
|
|
1604
|
-
if (zn.ce || zn.parent &&
|
|
1603
|
+
function H(e, t, n = {}, r, i, a) {
|
|
1604
|
+
if (zn.ce || zn.parent && Fr(zn.parent) && zn.parent.ce) {
|
|
1605
1605
|
let e = a != null && n.key == null ? s({}, n, { key: a }) : n, i = Object.keys(e).length > 0;
|
|
1606
1606
|
return t !== "default" && (e.name = t), G(), q(W, null, [Y("slot", e, r && r())], i ? -2 : 64);
|
|
1607
1607
|
}
|
|
@@ -1611,7 +1611,7 @@ function V(e, t, n = {}, r, i, a) {
|
|
|
1611
1611
|
G();
|
|
1612
1612
|
let l;
|
|
1613
1613
|
try {
|
|
1614
|
-
let i = o &&
|
|
1614
|
+
let i = o && ii(o(n)), s = n.key || a || i && i.key;
|
|
1615
1615
|
l = q(W, { key: (s && !_(s) ? s : `_${t}`) + (!i && r ? "_fb" : "") }, i || (r ? r() : []), i && e._ === 1 ? 64 : -2);
|
|
1616
1616
|
} catch (e) {
|
|
1617
1617
|
for (let e = Ta.length; e > c; e--) Da();
|
|
@@ -1621,10 +1621,10 @@ function V(e, t, n = {}, r, i, a) {
|
|
|
1621
1621
|
}
|
|
1622
1622
|
return !i && l.scopeId && (l.slotScopeIds = [l.scopeId + "-s"]), l;
|
|
1623
1623
|
}
|
|
1624
|
-
function
|
|
1625
|
-
return e.some((e) => !ja(e) || !(e.type === Ca || e.type === W && !
|
|
1624
|
+
function ii(e) {
|
|
1625
|
+
return e.some((e) => !ja(e) || !(e.type === Ca || e.type === W && !ii(e.children))) ? e : null;
|
|
1626
1626
|
}
|
|
1627
|
-
var
|
|
1627
|
+
var ai = (e) => e ? Qa(e) ? co(e) : ai(e.parent) : null, oi = /* @__PURE__ */ s(/* @__PURE__ */ Object.create(null), {
|
|
1628
1628
|
$: (e) => e,
|
|
1629
1629
|
$el: (e) => e.vnode.el,
|
|
1630
1630
|
$data: (e) => e.data,
|
|
@@ -1632,17 +1632,17 @@ var oi = (e) => e ? Qa(e) ? co(e) : oi(e.parent) : null, si = /* @__PURE__ */ s(
|
|
|
1632
1632
|
$attrs: (e) => e.attrs,
|
|
1633
1633
|
$slots: (e) => e.slots,
|
|
1634
1634
|
$refs: (e) => e.refs,
|
|
1635
|
-
$parent: (e) =>
|
|
1636
|
-
$root: (e) =>
|
|
1635
|
+
$parent: (e) => ai(e.parent),
|
|
1636
|
+
$root: (e) => ai(e.root),
|
|
1637
1637
|
$host: (e) => e.ce,
|
|
1638
1638
|
$emit: (e) => e.emit,
|
|
1639
|
-
$options: (e) =>
|
|
1639
|
+
$options: (e) => vi(e),
|
|
1640
1640
|
$forceUpdate: (e) => e.f ||= () => {
|
|
1641
1641
|
Mn(e.update);
|
|
1642
1642
|
},
|
|
1643
1643
|
$nextTick: (e) => e.n ||= An.bind(e.proxy),
|
|
1644
1644
|
$watch: (e) => Qn.bind(e)
|
|
1645
|
-
}),
|
|
1645
|
+
}), si = (e, n) => e !== t && !e.__isScriptSetup && u(e, n), ci = {
|
|
1646
1646
|
get({ _: e }, n) {
|
|
1647
1647
|
if (n === "__v_skip") return !0;
|
|
1648
1648
|
let { ctx: r, setupState: i, data: a, props: o, accessCache: s, type: c, appContext: l } = e;
|
|
@@ -1654,13 +1654,13 @@ var oi = (e) => e ? Qa(e) ? co(e) : oi(e.parent) : null, si = /* @__PURE__ */ s(
|
|
|
1654
1654
|
case 4: return r[n];
|
|
1655
1655
|
case 3: return o[n];
|
|
1656
1656
|
}
|
|
1657
|
-
else if (
|
|
1657
|
+
else if (si(i, n)) return s[n] = 1, i[n];
|
|
1658
1658
|
else if (a !== t && u(a, n)) return s[n] = 2, a[n];
|
|
1659
1659
|
else if (u(o, n)) return s[n] = 3, o[n];
|
|
1660
1660
|
else if (r !== t && u(r, n)) return s[n] = 4, r[n];
|
|
1661
|
-
else
|
|
1661
|
+
else pi && (s[n] = 0);
|
|
1662
1662
|
}
|
|
1663
|
-
let d =
|
|
1663
|
+
let d = oi[n], f, p;
|
|
1664
1664
|
if (d) return n === "$attrs" && tt(e.attrs, "get", ""), d(e);
|
|
1665
1665
|
if ((f = c.__cssModules) && (f = f[n])) return f;
|
|
1666
1666
|
if (r !== t && u(r, n)) return s[n] = 4, r[n];
|
|
@@ -1668,38 +1668,38 @@ var oi = (e) => e ? Qa(e) ? co(e) : oi(e.parent) : null, si = /* @__PURE__ */ s(
|
|
|
1668
1668
|
},
|
|
1669
1669
|
set({ _: e }, n, r) {
|
|
1670
1670
|
let { data: i, setupState: a, ctx: o } = e;
|
|
1671
|
-
return
|
|
1671
|
+
return si(a, n) ? (a[n] = r, !0) : i !== t && u(i, n) ? (i[n] = r, !0) : u(e.props, n) || n[0] === "$" && n.slice(1) in e ? !1 : (o[n] = r, !0);
|
|
1672
1672
|
},
|
|
1673
1673
|
has({ _: { data: e, setupState: n, accessCache: r, ctx: i, appContext: a, props: o, type: s } }, c) {
|
|
1674
1674
|
let l;
|
|
1675
|
-
return !!(r[c] || e !== t && c[0] !== "$" && u(e, c) ||
|
|
1675
|
+
return !!(r[c] || e !== t && c[0] !== "$" && u(e, c) || si(n, c) || u(o, c) || u(i, c) || u(oi, c) || u(a.config.globalProperties, c) || (l = s.__cssModules) && l[c]);
|
|
1676
1676
|
},
|
|
1677
1677
|
defineProperty(e, t, n) {
|
|
1678
1678
|
return n.get == null ? u(n, "value") && this.set(e, t, n.value, null) : e._.accessCache[t] = 0, Reflect.defineProperty(e, t, n);
|
|
1679
1679
|
}
|
|
1680
1680
|
};
|
|
1681
|
-
function
|
|
1682
|
-
return
|
|
1681
|
+
function li() {
|
|
1682
|
+
return di("useSlots").slots;
|
|
1683
1683
|
}
|
|
1684
|
-
function
|
|
1685
|
-
return
|
|
1684
|
+
function ui() {
|
|
1685
|
+
return di("useAttrs").attrs;
|
|
1686
1686
|
}
|
|
1687
|
-
function
|
|
1687
|
+
function di(e) {
|
|
1688
1688
|
let t = qa();
|
|
1689
1689
|
return t.setupContext ||= so(t);
|
|
1690
1690
|
}
|
|
1691
|
-
function
|
|
1691
|
+
function fi(e) {
|
|
1692
1692
|
return d(e) ? e.reduce((e, t) => (e[t] = null, e), {}) : e;
|
|
1693
1693
|
}
|
|
1694
|
-
function
|
|
1695
|
-
return !e || !t ? e || t : d(e) && d(t) ? e.concat(t) : s({},
|
|
1694
|
+
function U(e, t) {
|
|
1695
|
+
return !e || !t ? e || t : d(e) && d(t) ? e.concat(t) : s({}, fi(e), fi(t));
|
|
1696
1696
|
}
|
|
1697
|
-
var
|
|
1698
|
-
function
|
|
1699
|
-
let t =
|
|
1700
|
-
|
|
1701
|
-
let { data: a, computed: o, methods: s, watch: c, provide: l, inject: u, created: f, beforeMount: p, mounted: m, beforeUpdate: g, updated: _, activated: y, deactivated: b, beforeDestroy: x, beforeUnmount: S, destroyed: C, unmounted: w, render: T, renderTracked: E, renderTriggered: ee, errorCaptured: D, serverPrefetch:
|
|
1702
|
-
if (u &&
|
|
1697
|
+
var pi = !0;
|
|
1698
|
+
function mi(e) {
|
|
1699
|
+
let t = vi(e), n = e.proxy, i = e.ctx;
|
|
1700
|
+
pi = !1, t.beforeCreate && gi(t.beforeCreate, e, "bc");
|
|
1701
|
+
let { data: a, computed: o, methods: s, watch: c, provide: l, inject: u, created: f, beforeMount: p, mounted: m, beforeUpdate: g, updated: _, activated: y, deactivated: b, beforeDestroy: x, beforeUnmount: S, destroyed: C, unmounted: w, render: T, renderTracked: E, renderTriggered: ee, errorCaptured: D, serverPrefetch: te, expose: O, inheritAttrs: ne, components: re, directives: k, filters: ie } = t;
|
|
1702
|
+
if (u && hi(u, i, null), s) for (let e in s) {
|
|
1703
1703
|
let t = s[e];
|
|
1704
1704
|
h(t) && (i[e] = t.bind(n));
|
|
1705
1705
|
}
|
|
@@ -1707,7 +1707,7 @@ function hi(e) {
|
|
|
1707
1707
|
let t = a.call(n, n);
|
|
1708
1708
|
v(t) && (e.data = /* @__PURE__ */ zt(t));
|
|
1709
1709
|
}
|
|
1710
|
-
if (
|
|
1710
|
+
if (pi = !0, o) for (let e in o) {
|
|
1711
1711
|
let t = o[e], a = Q({
|
|
1712
1712
|
get: h(t) ? t.bind(n, n) : h(t.get) ? t.get.bind(n, n) : r,
|
|
1713
1713
|
set: !h(t) && h(t.set) ? t.set.bind(n) : r
|
|
@@ -1719,21 +1719,21 @@ function hi(e) {
|
|
|
1719
1719
|
set: (e) => a.value = e
|
|
1720
1720
|
});
|
|
1721
1721
|
}
|
|
1722
|
-
if (c) for (let e in c)
|
|
1722
|
+
if (c) for (let e in c) _i(c[e], i, n, e);
|
|
1723
1723
|
if (l) {
|
|
1724
1724
|
let e = h(l) ? l.call(n) : l;
|
|
1725
1725
|
Reflect.ownKeys(e).forEach((t) => {
|
|
1726
1726
|
Wn(t, e[t]);
|
|
1727
1727
|
});
|
|
1728
1728
|
}
|
|
1729
|
-
f &&
|
|
1730
|
-
function
|
|
1729
|
+
f && gi(f, e, "c");
|
|
1730
|
+
function A(e, t) {
|
|
1731
1731
|
d(t) ? t.forEach((t) => e(t.bind(n))) : t && e(t.bind(n));
|
|
1732
1732
|
}
|
|
1733
|
-
if (
|
|
1734
|
-
if (
|
|
1733
|
+
if (A(Ur, p), A(Wr, m), A(Gr, g), A(Kr, _), A(Lr, y), A(Rr, b), A(Qr, D), A(Zr, E), A(Xr, ee), A(qr, S), A(Jr, w), A(Yr, te), d(O)) {
|
|
1734
|
+
if (O.length) {
|
|
1735
1735
|
let t = e.exposed ||= {};
|
|
1736
|
-
|
|
1736
|
+
O.forEach((e) => {
|
|
1737
1737
|
Object.defineProperty(t, e, {
|
|
1738
1738
|
get: () => n[e],
|
|
1739
1739
|
set: (t) => n[e] = t,
|
|
@@ -1742,10 +1742,10 @@ function hi(e) {
|
|
|
1742
1742
|
});
|
|
1743
1743
|
} else e.exposed ||= {};
|
|
1744
1744
|
}
|
|
1745
|
-
T && e.render === r && (e.render = T),
|
|
1745
|
+
T && e.render === r && (e.render = T), ne != null && (e.inheritAttrs = ne), re && (e.components = re), k && (e.directives = k), te && kr(e);
|
|
1746
1746
|
}
|
|
1747
|
-
function
|
|
1748
|
-
d(e) && (e =
|
|
1747
|
+
function hi(e, t, n = r) {
|
|
1748
|
+
d(e) && (e = Ci(e));
|
|
1749
1749
|
for (let n in e) {
|
|
1750
1750
|
let r = e[n], i;
|
|
1751
1751
|
i = v(r) ? "default" in r ? Gn(r.from || n, r.default, !0) : Gn(r.from || n) : Gn(r), /* @__PURE__ */ Zt(i) ? Object.defineProperty(t, n, {
|
|
@@ -1756,71 +1756,71 @@ function gi(e, t, n = r) {
|
|
|
1756
1756
|
}) : t[n] = i;
|
|
1757
1757
|
}
|
|
1758
1758
|
}
|
|
1759
|
-
function
|
|
1759
|
+
function gi(e, t, n) {
|
|
1760
1760
|
bn(d(e) ? e.map((e) => e.bind(t.proxy)) : e.bind(t.proxy), t, n);
|
|
1761
1761
|
}
|
|
1762
|
-
function
|
|
1762
|
+
function _i(e, t, n, r) {
|
|
1763
1763
|
let i = r.includes(".") ? $n(n, r) : () => n[r];
|
|
1764
1764
|
if (g(e)) {
|
|
1765
1765
|
let n = t[e];
|
|
1766
1766
|
h(n) && R(i, n);
|
|
1767
1767
|
} else if (h(e)) R(i, e.bind(n));
|
|
1768
1768
|
else if (v(e)) {
|
|
1769
|
-
if (d(e)) e.forEach((e) =>
|
|
1769
|
+
if (d(e)) e.forEach((e) => _i(e, t, n, r));
|
|
1770
1770
|
else {
|
|
1771
1771
|
let r = h(e.handler) ? e.handler.bind(n) : t[e.handler];
|
|
1772
1772
|
h(r) && R(i, r, e);
|
|
1773
1773
|
}
|
|
1774
1774
|
}
|
|
1775
1775
|
}
|
|
1776
|
-
function
|
|
1776
|
+
function vi(e) {
|
|
1777
1777
|
let t = e.type, { mixins: n, extends: r } = t, { mixins: i, optionsCache: a, config: { optionMergeStrategies: o } } = e.appContext, s = a.get(t), c;
|
|
1778
|
-
return s ? c = s : !i.length && !n && !r ? c = t : (c = {}, i.length && i.forEach((e) =>
|
|
1778
|
+
return s ? c = s : !i.length && !n && !r ? c = t : (c = {}, i.length && i.forEach((e) => yi(c, e, o, !0)), yi(c, t, o)), v(t) && a.set(t, c), c;
|
|
1779
1779
|
}
|
|
1780
|
-
function
|
|
1780
|
+
function yi(e, t, n, r = !1) {
|
|
1781
1781
|
let { mixins: i, extends: a } = t;
|
|
1782
|
-
a &&
|
|
1782
|
+
a && yi(e, a, n, !0), i && i.forEach((t) => yi(e, t, n, !0));
|
|
1783
1783
|
for (let i in t) if (!(r && i === "expose")) {
|
|
1784
|
-
let r =
|
|
1784
|
+
let r = bi[i] || n && n[i];
|
|
1785
1785
|
e[i] = r ? r(e[i], t[i]) : t[i];
|
|
1786
1786
|
}
|
|
1787
1787
|
return e;
|
|
1788
1788
|
}
|
|
1789
|
-
var
|
|
1790
|
-
data:
|
|
1791
|
-
props:
|
|
1792
|
-
emits:
|
|
1793
|
-
methods:
|
|
1794
|
-
computed:
|
|
1795
|
-
beforeCreate:
|
|
1796
|
-
created:
|
|
1797
|
-
beforeMount:
|
|
1798
|
-
mounted:
|
|
1799
|
-
beforeUpdate:
|
|
1800
|
-
updated:
|
|
1801
|
-
beforeDestroy:
|
|
1802
|
-
beforeUnmount:
|
|
1803
|
-
destroyed:
|
|
1804
|
-
unmounted:
|
|
1805
|
-
activated:
|
|
1806
|
-
deactivated:
|
|
1807
|
-
errorCaptured:
|
|
1808
|
-
serverPrefetch:
|
|
1809
|
-
components:
|
|
1810
|
-
directives:
|
|
1811
|
-
watch:
|
|
1812
|
-
provide:
|
|
1813
|
-
inject:
|
|
1789
|
+
var bi = {
|
|
1790
|
+
data: xi,
|
|
1791
|
+
props: Ei,
|
|
1792
|
+
emits: Ei,
|
|
1793
|
+
methods: Ti,
|
|
1794
|
+
computed: Ti,
|
|
1795
|
+
beforeCreate: wi,
|
|
1796
|
+
created: wi,
|
|
1797
|
+
beforeMount: wi,
|
|
1798
|
+
mounted: wi,
|
|
1799
|
+
beforeUpdate: wi,
|
|
1800
|
+
updated: wi,
|
|
1801
|
+
beforeDestroy: wi,
|
|
1802
|
+
beforeUnmount: wi,
|
|
1803
|
+
destroyed: wi,
|
|
1804
|
+
unmounted: wi,
|
|
1805
|
+
activated: wi,
|
|
1806
|
+
deactivated: wi,
|
|
1807
|
+
errorCaptured: wi,
|
|
1808
|
+
serverPrefetch: wi,
|
|
1809
|
+
components: Ti,
|
|
1810
|
+
directives: Ti,
|
|
1811
|
+
watch: Di,
|
|
1812
|
+
provide: xi,
|
|
1813
|
+
inject: Si
|
|
1814
1814
|
};
|
|
1815
|
-
function
|
|
1815
|
+
function xi(e, t) {
|
|
1816
1816
|
return t ? e ? function() {
|
|
1817
1817
|
return s(h(e) ? e.call(this, this) : e, h(t) ? t.call(this, this) : t);
|
|
1818
1818
|
} : t : e;
|
|
1819
1819
|
}
|
|
1820
|
-
function
|
|
1821
|
-
return
|
|
1820
|
+
function Si(e, t) {
|
|
1821
|
+
return Ti(Ci(e), Ci(t));
|
|
1822
1822
|
}
|
|
1823
|
-
function
|
|
1823
|
+
function Ci(e) {
|
|
1824
1824
|
if (d(e)) {
|
|
1825
1825
|
let t = {};
|
|
1826
1826
|
for (let n = 0; n < e.length; n++) t[e[n]] = e[n];
|
|
@@ -1828,23 +1828,23 @@ function wi(e) {
|
|
|
1828
1828
|
}
|
|
1829
1829
|
return e;
|
|
1830
1830
|
}
|
|
1831
|
-
function
|
|
1831
|
+
function wi(e, t) {
|
|
1832
1832
|
return e ? [...new Set([].concat(e, t))] : t;
|
|
1833
1833
|
}
|
|
1834
|
-
function
|
|
1834
|
+
function Ti(e, t) {
|
|
1835
1835
|
return e ? s(/* @__PURE__ */ Object.create(null), e, t) : t;
|
|
1836
1836
|
}
|
|
1837
|
-
function
|
|
1838
|
-
return e ? d(e) && d(t) ? [.../* @__PURE__ */ new Set([...e, ...t])] : s(/* @__PURE__ */ Object.create(null),
|
|
1837
|
+
function Ei(e, t) {
|
|
1838
|
+
return e ? d(e) && d(t) ? [.../* @__PURE__ */ new Set([...e, ...t])] : s(/* @__PURE__ */ Object.create(null), fi(e), fi(t ?? {})) : t;
|
|
1839
1839
|
}
|
|
1840
|
-
function
|
|
1840
|
+
function Di(e, t) {
|
|
1841
1841
|
if (!e) return t;
|
|
1842
1842
|
if (!t) return e;
|
|
1843
1843
|
let n = s(/* @__PURE__ */ Object.create(null), e);
|
|
1844
|
-
for (let r in t) n[r] =
|
|
1844
|
+
for (let r in t) n[r] = wi(e[r], t[r]);
|
|
1845
1845
|
return n;
|
|
1846
1846
|
}
|
|
1847
|
-
function
|
|
1847
|
+
function Oi() {
|
|
1848
1848
|
return {
|
|
1849
1849
|
app: null,
|
|
1850
1850
|
config: {
|
|
@@ -1865,12 +1865,12 @@ function ki() {
|
|
|
1865
1865
|
emitsCache: /* @__PURE__ */ new WeakMap()
|
|
1866
1866
|
};
|
|
1867
1867
|
}
|
|
1868
|
-
var
|
|
1869
|
-
function
|
|
1868
|
+
var ki = 0;
|
|
1869
|
+
function Ai(e, t) {
|
|
1870
1870
|
return function(n, r = null) {
|
|
1871
1871
|
h(n) || (n = s({}, n)), r != null && !v(r) && (r = null);
|
|
1872
|
-
let i =
|
|
1873
|
-
_uid:
|
|
1872
|
+
let i = Oi(), a = /* @__PURE__ */ new WeakSet(), o = [], c = !1, l = i.app = {
|
|
1873
|
+
_uid: ki++,
|
|
1874
1874
|
_component: n,
|
|
1875
1875
|
_props: r,
|
|
1876
1876
|
_container: null,
|
|
@@ -1909,34 +1909,34 @@ function ji(e, t) {
|
|
|
1909
1909
|
return i.provides[e] = t, l;
|
|
1910
1910
|
},
|
|
1911
1911
|
runWithContext(e) {
|
|
1912
|
-
let t =
|
|
1913
|
-
|
|
1912
|
+
let t = ji;
|
|
1913
|
+
ji = l;
|
|
1914
1914
|
try {
|
|
1915
1915
|
return e();
|
|
1916
1916
|
} finally {
|
|
1917
|
-
|
|
1917
|
+
ji = t;
|
|
1918
1918
|
}
|
|
1919
1919
|
}
|
|
1920
1920
|
};
|
|
1921
1921
|
return l;
|
|
1922
1922
|
};
|
|
1923
1923
|
}
|
|
1924
|
-
var
|
|
1925
|
-
function
|
|
1926
|
-
let i = qa(), a = D(n), o =
|
|
1924
|
+
var ji = null;
|
|
1925
|
+
function Mi(e, n, r = t) {
|
|
1926
|
+
let i = qa(), a = D(n), o = O(n), s = Ni(e, a), c = on((s, c) => {
|
|
1927
1927
|
let l, u = t, d;
|
|
1928
1928
|
return Xn(() => {
|
|
1929
1929
|
let t = e[a];
|
|
1930
|
-
|
|
1930
|
+
k(l, t) && (l = t, c());
|
|
1931
1931
|
}), {
|
|
1932
1932
|
get() {
|
|
1933
1933
|
return s(), r.get ? r.get(l) : l;
|
|
1934
1934
|
},
|
|
1935
1935
|
set(e) {
|
|
1936
1936
|
let s = r.set ? r.set(e) : e;
|
|
1937
|
-
if (!
|
|
1937
|
+
if (!k(s, l) && !(u !== t && k(e, u))) return;
|
|
1938
1938
|
let f = i.vnode.props, p = !!(f && (n in f || a in f || o in f) && (`onUpdate:${n}` in f || `onUpdate:${a}` in f || `onUpdate:${o}` in f));
|
|
1939
|
-
p || (l = e, c()), i.emit(`update:${n}`, s),
|
|
1939
|
+
p || (l = e, c()), i.emit(`update:${n}`, s), k(e, u) && (k(e, s) && !k(s, d) || p && u !== t && !k(s, l)) && c(), u = e, d = s;
|
|
1940
1940
|
}
|
|
1941
1941
|
};
|
|
1942
1942
|
});
|
|
@@ -1950,13 +1950,13 @@ function U(e, n, r = t) {
|
|
|
1950
1950
|
} };
|
|
1951
1951
|
}, c;
|
|
1952
1952
|
}
|
|
1953
|
-
var Ni = (e, t) => t === "modelValue" || t === "model-value" ? e.modelModifiers : e[`${t}Modifiers`] || e[`${D(t)}Modifiers`] || e[`${
|
|
1953
|
+
var Ni = (e, t) => t === "modelValue" || t === "model-value" ? e.modelModifiers : e[`${t}Modifiers`] || e[`${D(t)}Modifiers`] || e[`${O(t)}Modifiers`];
|
|
1954
1954
|
function Pi(e, n, ...r) {
|
|
1955
1955
|
if (e.isUnmounted) return;
|
|
1956
1956
|
let i = e.vnode.props || t, a = r, o = n.startsWith("update:"), s = o && Ni(i, n.slice(7));
|
|
1957
1957
|
s && (s.trim && (a = r.map((e) => g(e) ? e.trim() : e)), s.number && (a = r.map(ae)));
|
|
1958
|
-
let c, l = i[c =
|
|
1959
|
-
!l && o && (l = i[c =
|
|
1958
|
+
let c, l = i[c = re(n)] || i[c = re(D(n))];
|
|
1959
|
+
!l && o && (l = i[c = re(O(n))]), l && bn(l, e, 6, a);
|
|
1960
1960
|
let u = i[c + "Once"];
|
|
1961
1961
|
if (u) {
|
|
1962
1962
|
if (!e.emitted) e.emitted = {};
|
|
@@ -1979,7 +1979,7 @@ function Ii(e, t, n = !1) {
|
|
|
1979
1979
|
return !a && !c ? (v(e) && r.set(e, null), null) : (d(a) ? a.forEach((e) => o[e] = null) : s(o, a), v(e) && r.set(e, o), o);
|
|
1980
1980
|
}
|
|
1981
1981
|
function Li(e, t) {
|
|
1982
|
-
return !e || !a(t) ? !1 : (t = t.slice(2), t = t === "Once" ? t : t.replace(/Once$/, ""), u(e, t[0].toLowerCase() + t.slice(1)) || u(e,
|
|
1982
|
+
return !e || !a(t) ? !1 : (t = t.slice(2), t = t === "Once" ? t : t.replace(/Once$/, ""), u(e, t[0].toLowerCase() + t.slice(1)) || u(e, O(t)) || u(e, t));
|
|
1983
1983
|
}
|
|
1984
1984
|
function Ri(e) {
|
|
1985
1985
|
let { type: t, vnode: n, proxy: r, withProxy: i, propsOptions: [a], slots: s, attrs: c, emit: l, render: u, renderCache: d, props: f, data: p, setupState: m, ctx: h, inheritAttrs: g } = e, _ = Vn(e), v, y;
|
|
@@ -2079,7 +2079,7 @@ function Yi(e, t, n, r) {
|
|
|
2079
2079
|
} else {
|
|
2080
2080
|
Xi(e, t, i, a) && (l = !0);
|
|
2081
2081
|
let r;
|
|
2082
|
-
for (let a in s) (!t || !u(t, a) && ((r =
|
|
2082
|
+
for (let a in s) (!t || !u(t, a) && ((r = O(a)) === a || !u(t, r))) && (c ? n && (n[a] !== void 0 || n[r] !== void 0) && (i[a] = Zi(c, s, a, void 0, e, !0)) : delete i[a]);
|
|
2083
2083
|
if (a !== s) for (let e in a) (!t || !u(t, e)) && (delete a[e], l = !0);
|
|
2084
2084
|
}
|
|
2085
2085
|
l && nt(e.attrs, "set", "");
|
|
@@ -2116,7 +2116,7 @@ function Zi(e, t, n, r, i, a) {
|
|
|
2116
2116
|
} else r = e;
|
|
2117
2117
|
i.ce && i.ce._setProp(n, r);
|
|
2118
2118
|
}
|
|
2119
|
-
o[0] && (a && !e ? r = !1 : o[1] && (r === "" || r ===
|
|
2119
|
+
o[0] && (a && !e ? r = !1 : o[1] && (r === "" || r === O(n)) && (r = !0));
|
|
2120
2120
|
}
|
|
2121
2121
|
return r;
|
|
2122
2122
|
}
|
|
@@ -2184,7 +2184,7 @@ var ta = (e) => e === "_" || e === "_ctx" || e === "$stable", na = (e) => d(e) ?
|
|
|
2184
2184
|
let r = e.slots = Ki();
|
|
2185
2185
|
if (e.vnode.shapeFlag & 32) {
|
|
2186
2186
|
let e = t._;
|
|
2187
|
-
e ? (oa(r, t, n), n &&
|
|
2187
|
+
e ? (oa(r, t, n), n && A(r, "_", e, !0)) : ia(t, r);
|
|
2188
2188
|
} else t && aa(e, t);
|
|
2189
2189
|
}, ca = (e, n, r) => {
|
|
2190
2190
|
let { vnode: i, slots: a } = e, o = !0, s = t;
|
|
@@ -2215,11 +2215,11 @@ function da(e, i) {
|
|
|
2215
2215
|
e ?? x(t, n, r, o);
|
|
2216
2216
|
break;
|
|
2217
2217
|
case W:
|
|
2218
|
-
|
|
2218
|
+
re(e, t, n, r, i, a, o, s, c);
|
|
2219
2219
|
break;
|
|
2220
|
-
default: d & 1 ? w(e, t, n, r, i, a, o, s, c) : d & 6 ?
|
|
2220
|
+
default: d & 1 ? w(e, t, n, r, i, a, o, s, c) : d & 6 ? k(e, t, n, r, i, a, o, s, c) : (d & 64 || d & 128) && l.process(e, t, n, r, i, a, o, s, c, be);
|
|
2221
2221
|
}
|
|
2222
|
-
u != null && i ?
|
|
2222
|
+
u != null && i ? Nr(u, e && e.ref, a, t || e, !t) : u == null && e && e.ref != null && Nr(e.ref, null, a, e, !0);
|
|
2223
2223
|
}, y = (e, t, n, r) => {
|
|
2224
2224
|
if (e == null) o(t.el = u(t.children), n, r);
|
|
2225
2225
|
else {
|
|
@@ -2243,7 +2243,7 @@ function da(e, i) {
|
|
|
2243
2243
|
else {
|
|
2244
2244
|
let n = e.el && e.el._isVueCE ? e.el : null;
|
|
2245
2245
|
try {
|
|
2246
|
-
n && n._beginPatch(),
|
|
2246
|
+
n && n._beginPatch(), te(e, t, i, a, o, s, c);
|
|
2247
2247
|
} finally {
|
|
2248
2248
|
n && n._endPatch();
|
|
2249
2249
|
}
|
|
@@ -2275,12 +2275,12 @@ function da(e, i) {
|
|
|
2275
2275
|
let c = e[l] = s ? za(e[l]) : Ra(e[l]);
|
|
2276
2276
|
v(null, c, t, n, r, i, a, o, s);
|
|
2277
2277
|
}
|
|
2278
|
-
},
|
|
2278
|
+
}, te = (e, n, r, i, a, o, s) => {
|
|
2279
2279
|
let l = n.el = e.el, { patchFlag: u, dynamicChildren: d, dirs: f } = n;
|
|
2280
2280
|
u |= e.patchFlag & 16;
|
|
2281
2281
|
let m = e.props || t, h = n.props || t, g;
|
|
2282
|
-
if (r && pa(r, !1), (g = h.onVnodeBeforeUpdate) && Ha(g, r, n, e), f && Un(n, e, r, "beforeUpdate"), r && pa(r, !0), d && (!e.dynamicChildren || e.dynamicChildren.length !== d.length) && (u = 0, s = !1, d = null), (m.innerHTML && h.innerHTML == null || m.textContent && h.textContent == null) && p(l, ""), d ?
|
|
2283
|
-
if (u & 16)
|
|
2282
|
+
if (r && pa(r, !1), (g = h.onVnodeBeforeUpdate) && Ha(g, r, n, e), f && Un(n, e, r, "beforeUpdate"), r && pa(r, !0), d && (!e.dynamicChildren || e.dynamicChildren.length !== d.length) && (u = 0, s = !1, d = null), (m.innerHTML && h.innerHTML == null || m.textContent && h.textContent == null) && p(l, ""), d ? O(e.dynamicChildren, d, l, r, i, fa(n, a), o) : s || le(e, n, l, null, r, i, fa(n, a), o, !1), u > 0) {
|
|
2283
|
+
if (u & 16) ne(l, m, h, r, a);
|
|
2284
2284
|
else if (u & 2 && m.class !== h.class && c(l, "class", null, h.class, a), u & 4 && c(l, "style", m.style, h.style, a), u & 8) {
|
|
2285
2285
|
let e = n.dynamicProps;
|
|
2286
2286
|
for (let t = 0; t < e.length; t++) {
|
|
@@ -2289,16 +2289,16 @@ function da(e, i) {
|
|
|
2289
2289
|
}
|
|
2290
2290
|
}
|
|
2291
2291
|
u & 1 && e.children !== n.children && p(l, n.children);
|
|
2292
|
-
} else !s && d == null &&
|
|
2292
|
+
} else !s && d == null && ne(l, m, h, r, a);
|
|
2293
2293
|
((g = h.onVnodeUpdated) || f) && la(() => {
|
|
2294
2294
|
g && Ha(g, r, n, e), f && Un(n, e, r, "updated");
|
|
2295
2295
|
}, i);
|
|
2296
|
-
},
|
|
2296
|
+
}, O = (e, t, n, r, i, a, o) => {
|
|
2297
2297
|
for (let s = 0; s < t.length; s++) {
|
|
2298
2298
|
let c = e[s], l = t[s], u = c.el && (c.type === W || !Ma(c, l) || c.shapeFlag & 198) ? m(c.el) : n;
|
|
2299
2299
|
v(c, l, u, null, r, i, a, o, !0);
|
|
2300
2300
|
}
|
|
2301
|
-
},
|
|
2301
|
+
}, ne = (e, n, r, i, a) => {
|
|
2302
2302
|
if (n !== r) {
|
|
2303
2303
|
if (n !== t) for (let t in n) !T(t) && !(t in r) && c(e, t, n[t], null, a, i);
|
|
2304
2304
|
for (let t in r) {
|
|
@@ -2308,14 +2308,14 @@ function da(e, i) {
|
|
|
2308
2308
|
}
|
|
2309
2309
|
"value" in r && c(e, "value", n.value, r.value, a);
|
|
2310
2310
|
}
|
|
2311
|
-
},
|
|
2311
|
+
}, re = (e, t, n, r, i, a, s, c, l) => {
|
|
2312
2312
|
let d = t.el = e ? e.el : u(""), f = t.anchor = e ? e.anchor : u(""), { patchFlag: p, dynamicChildren: m, slotScopeIds: h } = t;
|
|
2313
|
-
h && (c = c ? c.concat(h) : h), e == null ? (o(d, n, r), o(f, n, r), D(t.children || [], n, f, i, a, s, c, l)) : p > 0 && p & 64 && m && e.dynamicChildren && e.dynamicChildren.length === m.length ? (
|
|
2314
|
-
},
|
|
2315
|
-
t.slotScopeIds = s, e == null ? t.shapeFlag & 512 ? i.ctx.activate(t, n, r, o, c) :
|
|
2316
|
-
},
|
|
2313
|
+
h && (c = c ? c.concat(h) : h), e == null ? (o(d, n, r), o(f, n, r), D(t.children || [], n, f, i, a, s, c, l)) : p > 0 && p & 64 && m && e.dynamicChildren && e.dynamicChildren.length === m.length ? (O(e.dynamicChildren, m, n, i, a, s, c), (t.key != null || i && t === i.subTree) && ha(e, t, !0)) : le(e, t, n, f, i, a, s, c, l);
|
|
2314
|
+
}, k = (e, t, n, r, i, a, o, s, c) => {
|
|
2315
|
+
t.slotScopeIds = s, e == null ? t.shapeFlag & 512 ? i.ctx.activate(t, n, r, o, c) : A(t, n, r, i, a, o, c) : ae(e, t, c);
|
|
2316
|
+
}, A = (e, t, n, r, i, a, o) => {
|
|
2317
2317
|
let s = e.component = Ga(e, r, i);
|
|
2318
|
-
if (
|
|
2318
|
+
if (Ir(e) && (s.ctx.renderer = be), eo(s, !1, o), s.asyncDep) {
|
|
2319
2319
|
if (i && i.registerDep(s, oe, o), !e.el) {
|
|
2320
2320
|
let r = s.subTree = Y(Ca);
|
|
2321
2321
|
b(null, r, t, n), e.placeholder = r.el;
|
|
@@ -2346,12 +2346,12 @@ function da(e, i) {
|
|
|
2346
2346
|
}
|
|
2347
2347
|
}
|
|
2348
2348
|
let u = t, d;
|
|
2349
|
-
pa(e, !1), t ? (t.el = c.el, se(e, t, o)) : t = c, n &&
|
|
2349
|
+
pa(e, !1), t ? (t.el = c.el, se(e, t, o)) : t = c, n && ie(n), (d = t.props && t.props.onVnodeBeforeUpdate) && Ha(d, s, t, c), pa(e, !0);
|
|
2350
2350
|
let f = Ri(e), p = e.subTree;
|
|
2351
2351
|
e.subTree = f, v(p, f, m(p.el), _e(p), e, i, a), t.el = f.el, u === null && Wi(e, f.el), r && la(r, i), (d = t.props && t.props.onVnodeUpdated) && la(() => Ha(d, s, t, c), i);
|
|
2352
2352
|
} else {
|
|
2353
|
-
let o, { el: s, props: c } = t, { bm: l, m: u, parent: d, root: f, type: p } = e, m =
|
|
2354
|
-
if (pa(e, !1), l &&
|
|
2353
|
+
let o, { el: s, props: c } = t, { bm: l, m: u, parent: d, root: f, type: p } = e, m = Fr(t);
|
|
2354
|
+
if (pa(e, !1), l && ie(l), !m && (o = c && c.onVnodeBeforeMount) && Ha(o, d, t), pa(e, !0), s && M) {
|
|
2355
2355
|
let t = () => {
|
|
2356
2356
|
e.subTree = Ri(e), M(s, e.subTree, e, i, null);
|
|
2357
2357
|
};
|
|
@@ -2365,7 +2365,7 @@ function da(e, i) {
|
|
|
2365
2365
|
let e = t;
|
|
2366
2366
|
la(() => Ha(o, d, e), i);
|
|
2367
2367
|
}
|
|
2368
|
-
(t.shapeFlag & 256 || d &&
|
|
2368
|
+
(t.shapeFlag & 256 || d && Fr(d.vnode) && d.vnode.shapeFlag & 256) && e.a && la(e.a, i), e.isMounted = !0, t = n = r = null;
|
|
2369
2369
|
}
|
|
2370
2370
|
};
|
|
2371
2371
|
e.scope.on();
|
|
@@ -2486,11 +2486,11 @@ function da(e, i) {
|
|
|
2486
2486
|
} else o(a, t, n);
|
|
2487
2487
|
}, pe = (e, t, n, r = !1, i = !1) => {
|
|
2488
2488
|
let { type: a, props: o, ref: s, children: c, dynamicChildren: l, shapeFlag: u, patchFlag: d, dirs: f, cacheIndex: p, memo: m } = e;
|
|
2489
|
-
if (d === -2 && (i = !1), s != null && (We(),
|
|
2489
|
+
if (d === -2 && (i = !1), s != null && (We(), Nr(s, null, n, e, !0), Ge()), p != null && (t.renderCache[p] = void 0), u & 256) {
|
|
2490
2490
|
t.ctx.deactivate(e);
|
|
2491
2491
|
return;
|
|
2492
2492
|
}
|
|
2493
|
-
let h = u & 1 && f, g = !
|
|
2493
|
+
let h = u & 1 && f, g = !Fr(e), _;
|
|
2494
2494
|
if (g && (_ = o && o.onVnodeBeforeUnmount) && Ha(_, t, e), u & 6) he(e.component, n, r);
|
|
2495
2495
|
else {
|
|
2496
2496
|
if (u & 128) {
|
|
@@ -2526,7 +2526,7 @@ function da(e, i) {
|
|
|
2526
2526
|
s(t);
|
|
2527
2527
|
}, he = (e, t, n) => {
|
|
2528
2528
|
let { bum: r, scope: i, job: a, subTree: o, um: s, m: c, a: l } = e;
|
|
2529
|
-
va(c), va(l), r &&
|
|
2529
|
+
va(c), va(l), r && ie(r), i.stop(), a && (a.flags |= 8, pe(o, e, t, n)), s && la(s, t), la(() => {
|
|
2530
2530
|
e.isUnmounted = !0;
|
|
2531
2531
|
}, t);
|
|
2532
2532
|
}, ge = (e, t, n, r = !1, i = !1, a = 0) => {
|
|
@@ -2544,17 +2544,17 @@ function da(e, i) {
|
|
|
2544
2544
|
um: pe,
|
|
2545
2545
|
m: fe,
|
|
2546
2546
|
r: j,
|
|
2547
|
-
mt:
|
|
2547
|
+
mt: A,
|
|
2548
2548
|
mc: D,
|
|
2549
2549
|
pc: le,
|
|
2550
|
-
pbc:
|
|
2550
|
+
pbc: O,
|
|
2551
2551
|
n: _e,
|
|
2552
2552
|
o: e
|
|
2553
2553
|
}, xe, M;
|
|
2554
2554
|
return i && ([xe, M] = i(be)), {
|
|
2555
2555
|
render: ye,
|
|
2556
2556
|
hydrate: xe,
|
|
2557
|
-
createApp:
|
|
2557
|
+
createApp: Ai(ye, xe)
|
|
2558
2558
|
};
|
|
2559
2559
|
}
|
|
2560
2560
|
function fa({ type: e, props: t }, n) {
|
|
@@ -2671,7 +2671,7 @@ function J(e, t = null, n = null, r = 0, i = null, a = e === W ? 0 : 1, o = !1,
|
|
|
2671
2671
|
}
|
|
2672
2672
|
var Y = Fa;
|
|
2673
2673
|
function Fa(e, t = null, n = null, r = 0, i = null, a = !1) {
|
|
2674
|
-
if ((!e || e ===
|
|
2674
|
+
if ((!e || e === ei) && (e = Ca), ja(e)) {
|
|
2675
2675
|
let r = La(e, t, !0);
|
|
2676
2676
|
return n && Ba(r, n), Oa > 0 && !a && Ea && (r.shapeFlag & 6 ? Ea[Ea.indexOf(e)] = r : Ea.push(r)), r.patchFlag = -2, r;
|
|
2677
2677
|
}
|
|
@@ -2775,7 +2775,7 @@ function Va(...e) {
|
|
|
2775
2775
|
function Ha(e, t, n, r = null) {
|
|
2776
2776
|
bn(e, t, 7, [n, r]);
|
|
2777
2777
|
}
|
|
2778
|
-
var Ua =
|
|
2778
|
+
var Ua = Oi(), Wa = 0;
|
|
2779
2779
|
function Ga(e, n, r) {
|
|
2780
2780
|
let i = e.type, a = (n ? n.appContext : e.appContext) || Ua, o = {
|
|
2781
2781
|
uid: Wa++,
|
|
@@ -2874,12 +2874,12 @@ function eo(e, t = !1, n = !1) {
|
|
|
2874
2874
|
}
|
|
2875
2875
|
function to(e, t) {
|
|
2876
2876
|
let n = e.type;
|
|
2877
|
-
e.accessCache = /* @__PURE__ */ Object.create(null), e.proxy = new Proxy(e.ctx,
|
|
2877
|
+
e.accessCache = /* @__PURE__ */ Object.create(null), e.proxy = new Proxy(e.ctx, ci);
|
|
2878
2878
|
let { setup: r } = n;
|
|
2879
2879
|
if (r) {
|
|
2880
2880
|
We();
|
|
2881
2881
|
let n = e.setupContext = r.length > 1 ? so(e) : null, i = Xa(e), a = yn(r, e, 0, [e.props, n]), o = y(a);
|
|
2882
|
-
if (Ge(), i(), (o || e.sp) && !
|
|
2882
|
+
if (Ge(), i(), (o || e.sp) && !Fr(e) && kr(e), o) {
|
|
2883
2883
|
if (a.then(Za, Za), t) return a.then((n) => {
|
|
2884
2884
|
no(e, n, t);
|
|
2885
2885
|
}).catch((t) => {
|
|
@@ -2897,7 +2897,7 @@ function ao(e, t, n) {
|
|
|
2897
2897
|
let i = e.type;
|
|
2898
2898
|
if (!e.render) {
|
|
2899
2899
|
if (!t && ro && !i.render) {
|
|
2900
|
-
let t = i.template ||
|
|
2900
|
+
let t = i.template || vi(e).template;
|
|
2901
2901
|
if (t) {
|
|
2902
2902
|
let { isCustomElement: n, compilerOptions: r } = e.appContext.config, { delimiters: a, compilerOptions: o } = i;
|
|
2903
2903
|
i.render = ro(t, s(s({
|
|
@@ -2912,7 +2912,7 @@ function ao(e, t, n) {
|
|
|
2912
2912
|
let t = Xa(e);
|
|
2913
2913
|
We();
|
|
2914
2914
|
try {
|
|
2915
|
-
|
|
2915
|
+
mi(e);
|
|
2916
2916
|
} finally {
|
|
2917
2917
|
Ge(), t();
|
|
2918
2918
|
}
|
|
@@ -2935,10 +2935,10 @@ function co(e) {
|
|
|
2935
2935
|
return e.exposed ? e.exposeProxy ||= new Proxy(rn(Jt(e.exposed)), {
|
|
2936
2936
|
get(t, n) {
|
|
2937
2937
|
if (n in t) return t[n];
|
|
2938
|
-
if (n in
|
|
2938
|
+
if (n in oi) return oi[n](e);
|
|
2939
2939
|
},
|
|
2940
2940
|
has(e, t) {
|
|
2941
|
-
return t in e || t in
|
|
2941
|
+
return t in e || t in oi;
|
|
2942
2942
|
}
|
|
2943
2943
|
}) : e.proxy;
|
|
2944
2944
|
}
|
|
@@ -3184,7 +3184,7 @@ function Zo(e, t, n) {
|
|
|
3184
3184
|
else if (n ??= "", t.startsWith("--")) e.setProperty(t, n);
|
|
3185
3185
|
else {
|
|
3186
3186
|
let r = es(e, t);
|
|
3187
|
-
Xo.test(n) ? e.setProperty(
|
|
3187
|
+
Xo.test(n) ? e.setProperty(O(r), n.replace(Xo, ""), "important") : e[r] = n;
|
|
3188
3188
|
}
|
|
3189
3189
|
}
|
|
3190
3190
|
var Qo = [
|
|
@@ -3197,7 +3197,7 @@ function es(e, t) {
|
|
|
3197
3197
|
if (n) return n;
|
|
3198
3198
|
let r = D(t);
|
|
3199
3199
|
if (r !== "filter" && r in e) return $o[t] = r;
|
|
3200
|
-
r =
|
|
3200
|
+
r = ne(r);
|
|
3201
3201
|
for (let n = 0; n < Qo.length; n++) {
|
|
3202
3202
|
let i = Qo[n] + r;
|
|
3203
3203
|
if (i in e) return $o[t] = i;
|
|
@@ -3251,7 +3251,7 @@ var ls = /(Once|Passive|Capture)$/, us = /^on:?(?:Once|Passive|Capture)$/;
|
|
|
3251
3251
|
function ds(e) {
|
|
3252
3252
|
let t, n;
|
|
3253
3253
|
for (; (n = e.match(ls)) && !us.test(e);) t ||= {}, e = e.slice(0, e.length - n[1].length), t[n[1].toLowerCase()] = !0;
|
|
3254
|
-
return [e[2] === ":" ? e.slice(3) :
|
|
3254
|
+
return [e[2] === ":" ? e.slice(3) : O(e.slice(2)), t];
|
|
3255
3255
|
}
|
|
3256
3256
|
var fs = 0, ps = /* @__PURE__ */ Promise.resolve(), ms = () => fs ||= (ps.then(() => fs = 0), Date.now());
|
|
3257
3257
|
function hs(e, t) {
|
|
@@ -3379,7 +3379,7 @@ var Ss = typeof HTMLElement < "u" ? HTMLElement : class {}, Cs = class e extends
|
|
|
3379
3379
|
_setProp(e, t, n = !0, r = !1) {
|
|
3380
3380
|
if (t !== this._props[e] && (this._dirty = !0, t === bs ? delete this._props[e] : (this._props[e] = t, e === "key" && this._app && (this._app._ceVNode.key = t)), r && this._instance && this._update(), n)) {
|
|
3381
3381
|
let n = this._ob;
|
|
3382
|
-
n && (this._processMutations(n.takeRecords()), n.disconnect()), t === !0 ? this.setAttribute(
|
|
3382
|
+
n && (this._processMutations(n.takeRecords()), n.disconnect()), t === !0 ? this.setAttribute(O(e), "") : typeof t == "string" || typeof t == "number" ? this.setAttribute(O(e), t + "") : t || this.removeAttribute(O(e)), n && n.observe(this, { attributes: !0 });
|
|
3383
3383
|
}
|
|
3384
3384
|
}
|
|
3385
3385
|
_update() {
|
|
@@ -3396,7 +3396,7 @@ var Ss = typeof HTMLElement < "u" ? HTMLElement : class {}, Cs = class e extends
|
|
|
3396
3396
|
this.dispatchEvent(new CustomEvent(e, C(t[0]) ? s({ detail: t }, t[0]) : { detail: t }));
|
|
3397
3397
|
};
|
|
3398
3398
|
e.emit = (e, ...n) => {
|
|
3399
|
-
t(e, n),
|
|
3399
|
+
t(e, n), O(e) !== e && t(O(e), n);
|
|
3400
3400
|
}, this._setParent();
|
|
3401
3401
|
}), t;
|
|
3402
3402
|
}
|
|
@@ -3473,7 +3473,7 @@ var Ss = typeof HTMLElement < "u" ? HTMLElement : class {}, Cs = class e extends
|
|
|
3473
3473
|
_removeChildStyle(e) {}
|
|
3474
3474
|
}, ws = (e) => {
|
|
3475
3475
|
let t = e.props["onUpdate:modelValue"] || !1;
|
|
3476
|
-
return d(t) ? (e) =>
|
|
3476
|
+
return d(t) ? (e) => ie(t, e) : t;
|
|
3477
3477
|
};
|
|
3478
3478
|
function Ts(e) {
|
|
3479
3479
|
e.target.composing = !0;
|
|
@@ -3625,7 +3625,7 @@ function Zs(e, t = !1, n = !1) {
|
|
|
3625
3625
|
let n = r.value.indexOf(e);
|
|
3626
3626
|
return n === -1 ? 0 : (t ? Gs : Ws) + n;
|
|
3627
3627
|
});
|
|
3628
|
-
return
|
|
3628
|
+
return qr(a), {
|
|
3629
3629
|
push: i,
|
|
3630
3630
|
pop: a,
|
|
3631
3631
|
isTop: o,
|
|
@@ -4459,9 +4459,9 @@ function ul(e, t, n, r, i) {
|
|
|
4459
4459
|
console.error(e);
|
|
4460
4460
|
}));
|
|
4461
4461
|
}
|
|
4462
|
-
|
|
4462
|
+
Wr(() => {
|
|
4463
4463
|
document.addEventListener("mousedown", a), document.addEventListener("keydown", o);
|
|
4464
|
-
}),
|
|
4464
|
+
}), qr(() => {
|
|
4465
4465
|
document.removeEventListener("mousedown", a), document.removeEventListener("keydown", o), i();
|
|
4466
4466
|
});
|
|
4467
4467
|
}
|
|
@@ -4471,7 +4471,7 @@ function dl() {
|
|
|
4471
4471
|
return globalThis.__GRAD_VUE_IS_WEB_COMPONENTS_BUILD__ === !0;
|
|
4472
4472
|
}
|
|
4473
4473
|
function fl(e = {}) {
|
|
4474
|
-
let t =
|
|
4474
|
+
let t = ui(), n = globalThis.__GRAD_VUE_IS_WEB_COMPONENTS_BUILD__ === !0, r = e.omitInCustomElement ?? [];
|
|
4475
4475
|
return {
|
|
4476
4476
|
attrs: t,
|
|
4477
4477
|
isCustomElement: n,
|
|
@@ -4534,7 +4534,7 @@ var pl = { class: "g-btn--icon" }, ml = { class: "g-btn--label" }, hl = /*@__PUR
|
|
|
4534
4534
|
"mouseleave"
|
|
4535
4535
|
],
|
|
4536
4536
|
setup(e) {
|
|
4537
|
-
let t = e, n =
|
|
4537
|
+
let t = e, n = li(), { forwardedAttrs: r } = fl({ omitInCustomElement: ["id"] }), i = Q(() => [
|
|
4538
4538
|
"g-btn",
|
|
4539
4539
|
`g-btn--${t.size}`,
|
|
4540
4540
|
`g-btn--${t.theme}`,
|
|
@@ -4548,7 +4548,7 @@ var pl = { class: "g-btn--icon" }, ml = { class: "g-btn--label" }, hl = /*@__PUR
|
|
|
4548
4548
|
"g-btn-has-icon-svg": !!n.icon
|
|
4549
4549
|
}
|
|
4550
4550
|
]);
|
|
4551
|
-
return (a, o) => (G(), q(
|
|
4551
|
+
return (a, o) => (G(), q(ti(t.component ? t.component : "button"), Va(I(r), {
|
|
4552
4552
|
to: t.to,
|
|
4553
4553
|
class: i.value,
|
|
4554
4554
|
type: t.to ? void 0 : t.type,
|
|
@@ -4562,11 +4562,11 @@ var pl = { class: "g-btn--icon" }, ml = { class: "g-btn--label" }, hl = /*@__PUR
|
|
|
4562
4562
|
onMouseenter: o[7] ||= (e) => a.$emit("mouseenter", e),
|
|
4563
4563
|
onMouseleave: o[8] ||= (e) => a.$emit("mouseleave", e)
|
|
4564
4564
|
}), {
|
|
4565
|
-
default: L(() => [e.icon || n.icon ? (G(), K(W, { key: 0 }, [J("span", pl, [n.icon ?
|
|
4565
|
+
default: L(() => [e.icon || n.icon ? (G(), K(W, { key: 0 }, [J("span", pl, [n.icon ? H(a.$slots, "icon", {}, void 0, void 0, 0) : (G(), K("span", {
|
|
4566
4566
|
key: 1,
|
|
4567
4567
|
class: j(e.icon + " g-btn--icon-span"),
|
|
4568
4568
|
"aria-hidden": "true"
|
|
4569
|
-
}, null, 2))]), J("span", ml, [
|
|
4569
|
+
}, null, 2))]), J("span", ml, [H(a.$slots, "default")])], 64)) : H(a.$slots, "default", {}, void 0, void 0, 1)]),
|
|
4570
4570
|
_: 3
|
|
4571
4571
|
}, 16, [
|
|
4572
4572
|
"to",
|
|
@@ -4600,13 +4600,13 @@ var pl = { class: "g-btn--icon" }, ml = { class: "g-btn--label" }, hl = /*@__PUR
|
|
|
4600
4600
|
},
|
|
4601
4601
|
emits: ["cancel", "confirm"],
|
|
4602
4602
|
setup(e, { emit: t }) {
|
|
4603
|
-
let n = e, r = t, i = /* @__PURE__ */ F(null), a = /* @__PURE__ */ F(!0), o =
|
|
4603
|
+
let n = e, r = t, i = /* @__PURE__ */ F(null), a = /* @__PURE__ */ F(!0), o = B(), { pop: s, push: c, isTop: l, zIndex: u } = Zs(o, !0, !0), { deactivate: d, activate: f } = ll(i, l);
|
|
4604
4604
|
function p() {
|
|
4605
4605
|
r("cancel");
|
|
4606
4606
|
}
|
|
4607
|
-
return ul([i], l, a, p, s),
|
|
4607
|
+
return ul([i], l, a, p, s), Wr(() => {
|
|
4608
4608
|
c(), f();
|
|
4609
|
-
}),
|
|
4609
|
+
}), Ur(() => {
|
|
4610
4610
|
s(), d();
|
|
4611
4611
|
}), (e, t) => (G(), q(dr, { to: "#modal-root" }, [Y(Do, {
|
|
4612
4612
|
name: "g-fade",
|
|
@@ -4630,7 +4630,7 @@ var pl = { class: "g-btn--icon" }, ml = { class: "g-btn--label" }, hl = /*@__PUR
|
|
|
4630
4630
|
J("div", {
|
|
4631
4631
|
id: "alertdialog-description-" + I(o),
|
|
4632
4632
|
class: "g-alertdialog-content"
|
|
4633
|
-
}, [
|
|
4633
|
+
}, [H(e.$slots, "default")], 8, bl),
|
|
4634
4634
|
J("div", xl, [Y(gl, {
|
|
4635
4635
|
outlined: "",
|
|
4636
4636
|
onClick: t[0] ||= (e) => r("cancel")
|
|
@@ -4669,7 +4669,7 @@ var pl = { class: "g-btn--icon" }, ml = { class: "g-btn--label" }, hl = /*@__PUR
|
|
|
4669
4669
|
setup(e) {
|
|
4670
4670
|
return (t, n) => (G(), K("header", Cl, [
|
|
4671
4671
|
n[1] ||= J("div", { class: "g-app-header__background" }, [J("div", { class: "g-app-header__background-pattern" }), J("div", { class: "g-app-header__background-gradient" })], -1),
|
|
4672
|
-
J("div", wl, [
|
|
4672
|
+
J("div", wl, [H(t.$slots, "left", {}, () => [J("a", Tl, M(e.brand), 1)])]),
|
|
4673
4673
|
e.illinois ? (G(), K("div", El, [...n[0] ||= [J("svg", {
|
|
4674
4674
|
class: "g-app-header__block-i",
|
|
4675
4675
|
role: "img",
|
|
@@ -4686,9 +4686,9 @@ var pl = { class: "g-btn--icon" }, ml = { class: "g-btn--label" }, hl = /*@__PUR
|
|
|
4686
4686
|
class: "g-app-header__block-i-fill",
|
|
4687
4687
|
d: "M42.1 18.1h9V3H3v15h9c1.7 0 3 1.3 3 3v36.1c0 1.7-1.3 3-3 3H3v15h48.1v-15h-9c-1.7 0-3-1.3-3-3v-36c0-1.7 1.4-3 3-3z"
|
|
4688
4688
|
})
|
|
4689
|
-
], -1)]])) :
|
|
4690
|
-
J("div", Dl, [
|
|
4691
|
-
J("div", Ol, [
|
|
4689
|
+
], -1)]])) : H(t.$slots, "icon", {}, void 0, void 0, 1),
|
|
4690
|
+
J("div", Dl, [H(t.$slots, "title")]),
|
|
4691
|
+
J("div", Ol, [H(t.$slots, "app-controls", { class: "g-app-header__app-controls" })])
|
|
4692
4692
|
]));
|
|
4693
4693
|
}
|
|
4694
4694
|
}), [["styles", [""]]]);
|
|
@@ -4747,17 +4747,17 @@ function Ml(e = "default") {
|
|
|
4747
4747
|
//#endregion
|
|
4748
4748
|
//#region src/compose/useFormField.ts
|
|
4749
4749
|
function Nl(e) {
|
|
4750
|
-
let t =
|
|
4750
|
+
let t = ui(), n = typeof t["form-key"] == "string" ? t["form-key"] : void 0, r = e.formKey ?? n ?? "default", i = Gn("form", null) ?? (dl() ? Ml(r) : null), a = Q(() => {
|
|
4751
4751
|
let t = [];
|
|
4752
4752
|
return e.errors && t.push(...e.errors.value.filter(Boolean)), t;
|
|
4753
4753
|
}), o = Q(() => a.value.length > 0), s = e.name;
|
|
4754
|
-
return i && s && (
|
|
4754
|
+
return i && s && (Wr(() => {
|
|
4755
4755
|
i.registerField(s, {
|
|
4756
4756
|
name: s,
|
|
4757
4757
|
value: e.value,
|
|
4758
4758
|
errors: a
|
|
4759
4759
|
});
|
|
4760
|
-
}),
|
|
4760
|
+
}), qr(() => {
|
|
4761
4761
|
e.name && i.unregisterField(e.name);
|
|
4762
4762
|
})), {
|
|
4763
4763
|
displayErrors: a,
|
|
@@ -4778,7 +4778,7 @@ var Pl = ["id"], Fl = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
|
4778
4778
|
class: "g-form-error-messages",
|
|
4779
4779
|
id: e.id,
|
|
4780
4780
|
role: "alert"
|
|
4781
|
-
}, [(G(!0), K(W, null,
|
|
4781
|
+
}, [(G(!0), K(W, null, V(e.errors, (e, t) => (G(), K("div", {
|
|
4782
4782
|
key: t,
|
|
4783
4783
|
class: "g-form-error-message"
|
|
4784
4784
|
}, [n[0] ||= J("svg", {
|
|
@@ -4816,7 +4816,7 @@ var Pl = ["id"], Fl = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
|
4816
4816
|
"onChange"
|
|
4817
4817
|
], Wl = { class: "g-checkbox-group__label-text" }, Gl = ["id"], Kl = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
4818
4818
|
__name: "GCheckboxGroup",
|
|
4819
|
-
props: /*@__PURE__*/
|
|
4819
|
+
props: /*@__PURE__*/ U({
|
|
4820
4820
|
label: {
|
|
4821
4821
|
default: void 0,
|
|
4822
4822
|
type: String
|
|
@@ -4850,9 +4850,9 @@ var Pl = ["id"], Fl = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
|
4850
4850
|
modelValue: { default: () => [] },
|
|
4851
4851
|
modelModifiers: {}
|
|
4852
4852
|
}),
|
|
4853
|
-
emits: /*@__PURE__*/
|
|
4853
|
+
emits: /*@__PURE__*/ U(["change"], ["update:modelValue"]),
|
|
4854
4854
|
setup(e, { emit: t }) {
|
|
4855
|
-
let n = e, r =
|
|
4855
|
+
let n = e, r = Mi(e, "modelValue"), i = B(), { displayErrors: a, hasErrors: o } = Nl({
|
|
4856
4856
|
name: n.name,
|
|
4857
4857
|
value: r,
|
|
4858
4858
|
errors: /* @__PURE__ */ ln(n, "errors"),
|
|
@@ -4888,7 +4888,7 @@ var Pl = ["id"], Fl = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
|
4888
4888
|
"aria-errormessage": o.value ? d.value : void 0
|
|
4889
4889
|
};
|
|
4890
4890
|
}
|
|
4891
|
-
return (t, n) => (G(), q(
|
|
4891
|
+
return (t, n) => (G(), q(ti(p.value ? "fieldset" : "div"), Va({ class: ["g-checkbox-group", { "g-checkbox-group--error": I(o) }] }, m.value), {
|
|
4892
4892
|
default: L(() => [
|
|
4893
4893
|
p.value && e.label ? (G(), K("legend", Il, [X(M(e.label), 1), e.required ? (G(), K("span", Ll, "\xA0*")) : Z("", !0)])) : !p.value && e.label ? (G(), K("div", Rl, [X(M(e.label), 1), e.required ? (G(), K("span", zl, "\xA0*")) : Z("", !0)])) : Z("", !0),
|
|
4894
4894
|
e.instructions ? (G(), K("div", {
|
|
@@ -4896,7 +4896,7 @@ var Pl = ["id"], Fl = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
|
4896
4896
|
id: f.value,
|
|
4897
4897
|
class: "g-checkbox-group__instructions"
|
|
4898
4898
|
}, M(e.instructions), 9, Bl)) : Z("", !0),
|
|
4899
|
-
J("div", Vl, [(G(!0), K(W, null,
|
|
4899
|
+
J("div", Vl, [(G(!0), K(W, null, V(e.options, (t, n) => (G(), K("div", {
|
|
4900
4900
|
key: t.value,
|
|
4901
4901
|
class: j(["g-checkbox-group__option-wrapper", { "g-checkbox-group__option-wrapper--disabled": t.disabled }])
|
|
4902
4902
|
}, [J("label", {
|
|
@@ -5045,7 +5045,7 @@ function fu(e, t, n = {}) {
|
|
|
5045
5045
|
};
|
|
5046
5046
|
}
|
|
5047
5047
|
function pu(e, t = !0, n) {
|
|
5048
|
-
lu(n) ?
|
|
5048
|
+
lu(n) ? Wr(e, n) : t ? e() : An(e);
|
|
5049
5049
|
}
|
|
5050
5050
|
function mu(e, t, n = {}) {
|
|
5051
5051
|
let { immediate: r = !0, immediateCallback: i = !1 } = n, a = /* @__PURE__ */ Qt(!1), o;
|
|
@@ -5102,7 +5102,7 @@ function yu(...e) {
|
|
|
5102
5102
|
}
|
|
5103
5103
|
function bu() {
|
|
5104
5104
|
let e = /* @__PURE__ */ Qt(!1), t = qa();
|
|
5105
|
-
return t &&
|
|
5105
|
+
return t && Wr(() => {
|
|
5106
5106
|
e.value = !0;
|
|
5107
5107
|
}, t), e;
|
|
5108
5108
|
}
|
|
@@ -5585,7 +5585,7 @@ var $u = {
|
|
|
5585
5585
|
}, cd = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
5586
5586
|
inheritAttrs: !1,
|
|
5587
5587
|
__name: "GTextInput",
|
|
5588
|
-
props: /*@__PURE__*/
|
|
5588
|
+
props: /*@__PURE__*/ U({
|
|
5589
5589
|
label: {
|
|
5590
5590
|
default: void 0,
|
|
5591
5591
|
type: String
|
|
@@ -5634,9 +5634,9 @@ var $u = {
|
|
|
5634
5634
|
modelValue: { type: String },
|
|
5635
5635
|
modelModifiers: {}
|
|
5636
5636
|
}),
|
|
5637
|
-
emits: /*@__PURE__*/
|
|
5637
|
+
emits: /*@__PURE__*/ U(["change"], ["update:modelValue"]),
|
|
5638
5638
|
setup(e, { emit: t }) {
|
|
5639
|
-
let n = e, r =
|
|
5639
|
+
let n = e, r = Mi(e, "modelValue"), i = B(), { attrs: a, isCustomElement: o, forwardedAttrs: s } = fl({ omitInCustomElement: ["id"] }), c = Q(() => o ? i : a.id || i), { displayErrors: l, hasErrors: u } = Nl({
|
|
5640
5640
|
name: n.name,
|
|
5641
5641
|
value: r,
|
|
5642
5642
|
errors: /* @__PURE__ */ ln(n, "errors"),
|
|
@@ -5679,7 +5679,7 @@ var $u = {
|
|
|
5679
5679
|
key: 1,
|
|
5680
5680
|
id: "instructions-" + I(i),
|
|
5681
5681
|
class: "g-text-input-instructions"
|
|
5682
|
-
}, [
|
|
5682
|
+
}, [H(t.$slots, "instructions", {}, () => [X(M(e.instructions), 1)])], 8, id)) : Z("", !0),
|
|
5683
5683
|
J("div", { class: j([{ "g-text-input-field-wrapper": !0 }, `g-text-input-field-wrapper--${e.name || "nameless"}`]) }, [
|
|
5684
5684
|
n.prefix ? (G(), K("span", ad, M(n.prefix), 1)) : Z("", !0),
|
|
5685
5685
|
J("input", Va({
|
|
@@ -5709,7 +5709,7 @@ var $u = {
|
|
|
5709
5709
|
}
|
|
5710
5710
|
}), [["styles", [""]]]), ld = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
5711
5711
|
__name: "GCurrencyInput",
|
|
5712
|
-
props: /*@__PURE__*/
|
|
5712
|
+
props: /*@__PURE__*/ U({
|
|
5713
5713
|
label: {
|
|
5714
5714
|
default: void 0,
|
|
5715
5715
|
type: String
|
|
@@ -5748,7 +5748,7 @@ var $u = {
|
|
|
5748
5748
|
}),
|
|
5749
5749
|
emits: ["update:modelValue"],
|
|
5750
5750
|
setup(e) {
|
|
5751
|
-
let t = e, n =
|
|
5751
|
+
let t = e, n = Mi(e, "modelValue");
|
|
5752
5752
|
return (e, r) => (G(), q(cd, Va({
|
|
5753
5753
|
modelValue: n.value,
|
|
5754
5754
|
"onUpdate:modelValue": r[0] ||= (e) => n.value = e,
|
|
@@ -5778,7 +5778,7 @@ var $u = {
|
|
|
5778
5778
|
}
|
|
5779
5779
|
}), [["styles", [""]]]), ud = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
5780
5780
|
__name: "GDateInput",
|
|
5781
|
-
props: /*@__PURE__*/
|
|
5781
|
+
props: /*@__PURE__*/ U({
|
|
5782
5782
|
label: {
|
|
5783
5783
|
default: void 0,
|
|
5784
5784
|
type: String
|
|
@@ -5817,7 +5817,7 @@ var $u = {
|
|
|
5817
5817
|
}),
|
|
5818
5818
|
emits: ["update:modelValue"],
|
|
5819
5819
|
setup(e) {
|
|
5820
|
-
let t = e, n =
|
|
5820
|
+
let t = e, n = Mi(e, "modelValue");
|
|
5821
5821
|
return (e, r) => (G(), q(cd, Va({
|
|
5822
5822
|
modelValue: n.value,
|
|
5823
5823
|
"onUpdate:modelValue": r[0] ||= (e) => n.value = e,
|
|
@@ -5858,7 +5858,7 @@ var $u = {
|
|
|
5858
5858
|
role: "alert"
|
|
5859
5859
|
}, _d = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
5860
5860
|
__name: "GDateRangeInput",
|
|
5861
|
-
props: /*@__PURE__*/
|
|
5861
|
+
props: /*@__PURE__*/ U({
|
|
5862
5862
|
label: {
|
|
5863
5863
|
default: void 0,
|
|
5864
5864
|
type: String
|
|
@@ -5904,7 +5904,7 @@ var $u = {
|
|
|
5904
5904
|
}),
|
|
5905
5905
|
emits: ["update:modelValue"],
|
|
5906
5906
|
setup(e) {
|
|
5907
|
-
let t = e, n =
|
|
5907
|
+
let t = e, n = Mi(e, "modelValue"), r = /* @__PURE__ */ F(n.value.start || null), i = /* @__PURE__ */ F(n.value.end || null), { displayErrors: a } = Nl({
|
|
5908
5908
|
name: t.name,
|
|
5909
5909
|
value: n,
|
|
5910
5910
|
errors: /* @__PURE__ */ ln(t, "errors"),
|
|
@@ -5945,7 +5945,7 @@ var $u = {
|
|
|
5945
5945
|
"disabled",
|
|
5946
5946
|
"required"
|
|
5947
5947
|
])]),
|
|
5948
|
-
I(a).length > 0 ? (G(), K("div", gd, [(G(!0), K(W, null,
|
|
5948
|
+
I(a).length > 0 ? (G(), K("div", gd, [(G(!0), K(W, null, V(I(a), (e, t) => (G(), K("div", {
|
|
5949
5949
|
key: t,
|
|
5950
5950
|
class: "g-date-range-input__error"
|
|
5951
5951
|
}, M(e), 1))), 128))])) : Z("", !0)
|
|
@@ -5959,17 +5959,17 @@ var $u = {
|
|
|
5959
5959
|
} },
|
|
5960
5960
|
setup(e) {
|
|
5961
5961
|
let t = e;
|
|
5962
|
-
return (e, n) => (G(), K("dl", { class: j(["g-detail-list", `g-detail-list--${t.variant}`]) }, [
|
|
5962
|
+
return (e, n) => (G(), K("dl", { class: j(["g-detail-list", `g-detail-list--${t.variant}`]) }, [H(e.$slots, "default")], 2));
|
|
5963
5963
|
}
|
|
5964
5964
|
}), [["styles", [""]]]), yd = { class: "g-detail-list-item" }, bd = { class: "g-detail-list-item__label" }, xd = { class: "g-detail-list-item__value" }, Sd = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
5965
5965
|
__name: "GDetailListItem",
|
|
5966
5966
|
props: { label: { type: String } },
|
|
5967
5967
|
setup(e) {
|
|
5968
|
-
return (t, n) => (G(), K("div", yd, [J("dt", bd, [
|
|
5968
|
+
return (t, n) => (G(), K("div", yd, [J("dt", bd, [H(t.$slots, "label", {}, () => [X(M(e.label), 1)])]), J("dd", xd, [H(t.$slots, "default")])]));
|
|
5969
5969
|
}
|
|
5970
5970
|
}), [["styles", [""]]]), Cd = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
5971
5971
|
__name: "GEmailInput",
|
|
5972
|
-
props: /*@__PURE__*/
|
|
5972
|
+
props: /*@__PURE__*/ U({
|
|
5973
5973
|
label: {
|
|
5974
5974
|
default: void 0,
|
|
5975
5975
|
type: String
|
|
@@ -6004,7 +6004,7 @@ var $u = {
|
|
|
6004
6004
|
}),
|
|
6005
6005
|
emits: ["update:modelValue"],
|
|
6006
6006
|
setup(e) {
|
|
6007
|
-
let t =
|
|
6007
|
+
let t = Mi(e, "modelValue");
|
|
6008
6008
|
return (n, r) => (G(), q(cd, Va({
|
|
6009
6009
|
modelValue: t.value,
|
|
6010
6010
|
"onUpdate:modelValue": r[0] ||= (e) => t.value = e,
|
|
@@ -6049,7 +6049,7 @@ var $u = {
|
|
|
6049
6049
|
}, Ad = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
6050
6050
|
inheritAttrs: !1,
|
|
6051
6051
|
__name: "GFileInput",
|
|
6052
|
-
props: /*@__PURE__*/
|
|
6052
|
+
props: /*@__PURE__*/ U({
|
|
6053
6053
|
label: { type: String },
|
|
6054
6054
|
instructions: {
|
|
6055
6055
|
default: "",
|
|
@@ -6080,9 +6080,9 @@ var $u = {
|
|
|
6080
6080
|
modelValue: { default: () => [] },
|
|
6081
6081
|
modelModifiers: {}
|
|
6082
6082
|
}),
|
|
6083
|
-
emits: /*@__PURE__*/
|
|
6083
|
+
emits: /*@__PURE__*/ U(["change"], ["update:modelValue"]),
|
|
6084
6084
|
setup(e, { emit: t }) {
|
|
6085
|
-
let n = e, r =
|
|
6085
|
+
let n = e, r = Mi(e, "modelValue"), i = B(), { displayErrors: a } = Nl({
|
|
6086
6086
|
name: n.name,
|
|
6087
6087
|
value: r,
|
|
6088
6088
|
errors: /* @__PURE__ */ ln(n, "errors"),
|
|
@@ -6128,7 +6128,7 @@ var $u = {
|
|
|
6128
6128
|
"aria-errormessage": d.value ? "error-message-" + I(i) : void 0,
|
|
6129
6129
|
onChange: l
|
|
6130
6130
|
}, null, 40, Od),
|
|
6131
|
-
e.multiple && f.value.length > 0 ? (G(), K("ul", kd, [(G(!0), K(W, null,
|
|
6131
|
+
e.multiple && f.value.length > 0 ? (G(), K("ul", kd, [(G(!0), K(W, null, V(f.value, (e) => (G(), K("li", {
|
|
6132
6132
|
key: e,
|
|
6133
6133
|
class: "g-file-input-pill"
|
|
6134
6134
|
}, [n[0] ||= J("svg", {
|
|
@@ -6146,7 +6146,7 @@ var $u = {
|
|
|
6146
6146
|
}
|
|
6147
6147
|
}), [["styles", [""]]]), jd = ["action", "method"], Md = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
6148
6148
|
__name: "GForm",
|
|
6149
|
-
props: /*@__PURE__*/
|
|
6149
|
+
props: /*@__PURE__*/ U({
|
|
6150
6150
|
action: {
|
|
6151
6151
|
default: void 0,
|
|
6152
6152
|
type: String
|
|
@@ -6163,9 +6163,9 @@ var $u = {
|
|
|
6163
6163
|
modelValue: { default: () => ({}) },
|
|
6164
6164
|
modelModifiers: {}
|
|
6165
6165
|
}),
|
|
6166
|
-
emits: /*@__PURE__*/
|
|
6166
|
+
emits: /*@__PURE__*/ U(["submit"], ["update:modelValue"]),
|
|
6167
6167
|
setup(e, { emit: t }) {
|
|
6168
|
-
let n = e, r =
|
|
6168
|
+
let n = e, r = Mi(e, "modelValue"), i = t, a = Gn("form", null), o = a ?? (dl() ? Ml(n.formKey) : Al());
|
|
6169
6169
|
a || Wn("form", o), R(() => o.values.value, (e) => {
|
|
6170
6170
|
r.value = { ...e };
|
|
6171
6171
|
}, { deep: !0 }), R(() => r.value, (e) => {
|
|
@@ -6188,7 +6188,7 @@ var $u = {
|
|
|
6188
6188
|
method: n.method,
|
|
6189
6189
|
class: "g-form",
|
|
6190
6190
|
novalidate: ""
|
|
6191
|
-
}, [
|
|
6191
|
+
}, [H(e.$slots, "default", {
|
|
6192
6192
|
isSubmitting: I(o).isSubmitting.value,
|
|
6193
6193
|
hasErrors: I(o).hasErrors.value,
|
|
6194
6194
|
values: I(o).values.value,
|
|
@@ -6235,11 +6235,11 @@ function Fd(e = "default", t) {
|
|
|
6235
6235
|
o.open.value = !1;
|
|
6236
6236
|
}, 5));
|
|
6237
6237
|
}
|
|
6238
|
-
return
|
|
6238
|
+
return Wr(() => {
|
|
6239
6239
|
R(o.isCollapsible, (e) => {
|
|
6240
6240
|
e ? (document.addEventListener("mousedown", s), document.addEventListener("focusin", c)) : (document.removeEventListener("mousedown", s), document.removeEventListener("focusin", c));
|
|
6241
6241
|
}, { immediate: !0 });
|
|
6242
|
-
}),
|
|
6242
|
+
}), qr(() => {
|
|
6243
6243
|
document.removeEventListener("mousedown", s), document.removeEventListener("focusin", c);
|
|
6244
6244
|
}), o;
|
|
6245
6245
|
}
|
|
@@ -6279,7 +6279,7 @@ var Id = [
|
|
|
6279
6279
|
function o(e) {
|
|
6280
6280
|
e.key === "Escape" && r?.open?.value && (r.open.value = !1);
|
|
6281
6281
|
}
|
|
6282
|
-
let s =
|
|
6282
|
+
let s = B();
|
|
6283
6283
|
return (t, n) => (G(), K("button", {
|
|
6284
6284
|
id: `${I(r)?.id ?? I(s)}-hamburger`,
|
|
6285
6285
|
class: j(["g-hamburger-button", {
|
|
@@ -6330,7 +6330,7 @@ var Id = [
|
|
|
6330
6330
|
let { scrollTop: e, scrollHeight: t, clientHeight: r } = n.value;
|
|
6331
6331
|
i.value = e + r >= t - 2, a.value = e <= 2;
|
|
6332
6332
|
}
|
|
6333
|
-
|
|
6333
|
+
Wr(() => {
|
|
6334
6334
|
An(o);
|
|
6335
6335
|
}), zu(n, () => {
|
|
6336
6336
|
i.value && o();
|
|
@@ -6372,12 +6372,12 @@ var Id = [
|
|
|
6372
6372
|
ref_key: "contentRef",
|
|
6373
6373
|
ref: r,
|
|
6374
6374
|
class: "g-history-list"
|
|
6375
|
-
}, [(G(!0), K(W, null,
|
|
6375
|
+
}, [(G(!0), K(W, null, V(c.value, (e) => (G(), K("div", {
|
|
6376
6376
|
role: "listitem",
|
|
6377
6377
|
key: e.id,
|
|
6378
6378
|
class: "g-history-entry",
|
|
6379
6379
|
tabindex: "-1"
|
|
6380
|
-
}, [
|
|
6380
|
+
}, [H(t.$slots, "default", { entry: e })]))), 128))], 512)], 40, Hd)
|
|
6381
6381
|
]));
|
|
6382
6382
|
}
|
|
6383
6383
|
}), [["styles", [""]]]), Wd = ["id"], Gd = { class: "g-modal-inner" }, Kd = { class: "g-modal-header" }, qd = ["id"], Jd = ["id"], Yd = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
@@ -6400,13 +6400,13 @@ var Id = [
|
|
|
6400
6400
|
},
|
|
6401
6401
|
emits: ["close"],
|
|
6402
6402
|
setup(e, { emit: t }) {
|
|
6403
|
-
let n = e, r = t, i =
|
|
6403
|
+
let n = e, r = t, i = Ar("dialog"), a = /* @__PURE__ */ F(!0), o = B(), { pop: s, push: c, isTop: l, zIndex: u } = Zs(o, !0, !0), { deactivate: d, activate: f } = ll(i, l);
|
|
6404
6404
|
function p() {
|
|
6405
6405
|
r("close");
|
|
6406
6406
|
}
|
|
6407
|
-
ul([i], l, a, p, s),
|
|
6407
|
+
ul([i], l, a, p, s), Wr(() => {
|
|
6408
6408
|
c(), f();
|
|
6409
|
-
}),
|
|
6409
|
+
}), Ur(() => {
|
|
6410
6410
|
s(), d();
|
|
6411
6411
|
});
|
|
6412
6412
|
let m = Q(() => {
|
|
@@ -6450,7 +6450,7 @@ var Id = [
|
|
|
6450
6450
|
})], -1)]])]), J("div", {
|
|
6451
6451
|
id: "modal-description-" + I(o),
|
|
6452
6452
|
class: "g-modal-content"
|
|
6453
|
-
}, [
|
|
6453
|
+
}, [H(t.$slots, "default")], 8, Jd)])], 16, Wd)]),
|
|
6454
6454
|
_: 3
|
|
6455
6455
|
})]));
|
|
6456
6456
|
}
|
|
@@ -6489,7 +6489,7 @@ function Zd({ open: e, anchorRef: t, listboxRef: n, baseId: r, activeIndex: i })
|
|
|
6489
6489
|
}
|
|
6490
6490
|
R(e, (e) => {
|
|
6491
6491
|
e ? (a(), p(), An(() => d())) : (o(), m(), c.value = "below", l.value = null);
|
|
6492
|
-
}),
|
|
6492
|
+
}), qr(() => {
|
|
6493
6493
|
m();
|
|
6494
6494
|
});
|
|
6495
6495
|
function h() {
|
|
@@ -6546,7 +6546,7 @@ var Qd = ["id", "for"], $d = {
|
|
|
6546
6546
|
class: "g-multiselect-option g-multiselect-no-results"
|
|
6547
6547
|
}, mf = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
6548
6548
|
__name: "GMultiSelect",
|
|
6549
|
-
props: /*@__PURE__*/
|
|
6549
|
+
props: /*@__PURE__*/ U({
|
|
6550
6550
|
options: { type: Array },
|
|
6551
6551
|
label: { type: String },
|
|
6552
6552
|
hiddenLabel: {
|
|
@@ -6577,9 +6577,9 @@ var Qd = ["id", "for"], $d = {
|
|
|
6577
6577
|
modelValue: { default: () => [] },
|
|
6578
6578
|
modelModifiers: {}
|
|
6579
6579
|
}),
|
|
6580
|
-
emits: /*@__PURE__*/
|
|
6580
|
+
emits: /*@__PURE__*/ U(["change"], ["update:modelValue"]),
|
|
6581
6581
|
setup(e, { emit: t }) {
|
|
6582
|
-
let n = e, r = t, i =
|
|
6582
|
+
let n = e, r = t, i = Mi(e, "modelValue"), a = B(), o = /* @__PURE__ */ F(null), s = /* @__PURE__ */ F(null), c = /* @__PURE__ */ F(null), l = /* @__PURE__ */ F(!1), u = /* @__PURE__ */ F(0), d = /* @__PURE__ */ F(""), f = /* @__PURE__ */ F(!1), { displayErrors: p, hasErrors: m } = Nl({
|
|
6583
6583
|
name: n.name,
|
|
6584
6584
|
value: i,
|
|
6585
6585
|
errors: /* @__PURE__ */ ln(n, "errors"),
|
|
@@ -6625,10 +6625,10 @@ var Qd = ["id", "for"], $d = {
|
|
|
6625
6625
|
function D(e) {
|
|
6626
6626
|
d.value = e.target.value, u.value = 0, l.value || C();
|
|
6627
6627
|
}
|
|
6628
|
-
function
|
|
6628
|
+
function te() {
|
|
6629
6629
|
n.disabled || l.value || C();
|
|
6630
6630
|
}
|
|
6631
|
-
function
|
|
6631
|
+
function O(e) {
|
|
6632
6632
|
if (f.value) {
|
|
6633
6633
|
f.value = !1;
|
|
6634
6634
|
return;
|
|
@@ -6636,13 +6636,13 @@ var Qd = ["id", "for"], $d = {
|
|
|
6636
6636
|
let t = e.relatedTarget;
|
|
6637
6637
|
t && c.value?.contains(t) || t && s.value?.contains(t) || w();
|
|
6638
6638
|
}
|
|
6639
|
-
function
|
|
6639
|
+
function ne(e) {
|
|
6640
6640
|
e.preventDefault();
|
|
6641
6641
|
}
|
|
6642
|
-
function
|
|
6642
|
+
function re() {
|
|
6643
6643
|
f.value = !0;
|
|
6644
6644
|
}
|
|
6645
|
-
function
|
|
6645
|
+
function k(e) {
|
|
6646
6646
|
if (n.disabled) return;
|
|
6647
6647
|
let t = b.value.length - 1;
|
|
6648
6648
|
switch (e.key) {
|
|
@@ -6670,7 +6670,7 @@ var Qd = ["id", "for"], $d = {
|
|
|
6670
6670
|
case "Backspace": !d.value && i.value.length > 0 && E(i.value[i.value.length - 1]);
|
|
6671
6671
|
}
|
|
6672
6672
|
}
|
|
6673
|
-
let
|
|
6673
|
+
let ie = Q(() => `${a}-input`), A = Q(() => `${a}-label`), ae = Q(() => `${a}-instructions`), oe = Q(() => `error-message-${a}`), se = Q(() => {
|
|
6674
6674
|
let e = [];
|
|
6675
6675
|
return n.instructions && e.push(ae.value), m.value && e.push(oe.value), e.length > 0 ? e.join(" ") : void 0;
|
|
6676
6676
|
});
|
|
@@ -6680,8 +6680,8 @@ var Qd = ["id", "for"], $d = {
|
|
|
6680
6680
|
}]) }, [
|
|
6681
6681
|
e.hiddenLabel ? Z("", !0) : (G(), K("label", {
|
|
6682
6682
|
key: 0,
|
|
6683
|
-
id:
|
|
6684
|
-
for:
|
|
6683
|
+
id: A.value,
|
|
6684
|
+
for: ie.value,
|
|
6685
6685
|
class: "g-multiselect-label"
|
|
6686
6686
|
}, [X(M(e.label), 1), e.required ? (G(), K("span", $d, " *")) : Z("", !0)], 8, Qd)),
|
|
6687
6687
|
e.instructions ? (G(), K("div", {
|
|
@@ -6698,8 +6698,8 @@ var Qd = ["id", "for"], $d = {
|
|
|
6698
6698
|
i.value.length ? (G(), K("ul", {
|
|
6699
6699
|
key: 0,
|
|
6700
6700
|
class: "g-multiselect-chips",
|
|
6701
|
-
"aria-labelledby":
|
|
6702
|
-
}, [(G(!0), K(W, null,
|
|
6701
|
+
"aria-labelledby": A.value
|
|
6702
|
+
}, [(G(!0), K(W, null, V(i.value, (t) => (G(), K("li", {
|
|
6703
6703
|
key: t,
|
|
6704
6704
|
class: "g-multiselect-chip"
|
|
6705
6705
|
}, [J("span", nf, M(S(t)), 1), J("button", {
|
|
@@ -6707,7 +6707,7 @@ var Qd = ["id", "for"], $d = {
|
|
|
6707
6707
|
class: "g-multiselect-chip-remove",
|
|
6708
6708
|
"aria-label": `Remove ${S(t)}`,
|
|
6709
6709
|
disabled: e.disabled,
|
|
6710
|
-
onMousedown:
|
|
6710
|
+
onMousedown: re,
|
|
6711
6711
|
onClick: Is((e) => E(t), ["stop"])
|
|
6712
6712
|
}, [...n[0] ||= [J("svg", {
|
|
6713
6713
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6724,7 +6724,7 @@ var Qd = ["id", "for"], $d = {
|
|
|
6724
6724
|
type: "text",
|
|
6725
6725
|
role: "combobox",
|
|
6726
6726
|
class: "g-multiselect-input",
|
|
6727
|
-
id:
|
|
6727
|
+
id: ie.value,
|
|
6728
6728
|
value: d.value,
|
|
6729
6729
|
placeholder: i.value.length === 0 ? e.placeholder : void 0,
|
|
6730
6730
|
disabled: e.disabled,
|
|
@@ -6738,9 +6738,9 @@ var Qd = ["id", "for"], $d = {
|
|
|
6738
6738
|
"aria-describedby": se.value,
|
|
6739
6739
|
"aria-required": e.required ? "true" : void 0,
|
|
6740
6740
|
onInput: D,
|
|
6741
|
-
onKeydown:
|
|
6742
|
-
onFocus:
|
|
6743
|
-
onBlur:
|
|
6741
|
+
onKeydown: k,
|
|
6742
|
+
onFocus: te,
|
|
6743
|
+
onBlur: O
|
|
6744
6744
|
}), null, 16, af),
|
|
6745
6745
|
n[2] ||= J("svg", {
|
|
6746
6746
|
class: "g-multiselect-caret",
|
|
@@ -6758,11 +6758,11 @@ var Qd = ["id", "for"], $d = {
|
|
|
6758
6758
|
id: I(a) + "-listbox",
|
|
6759
6759
|
role: "listbox",
|
|
6760
6760
|
"aria-multiselectable": "true"
|
|
6761
|
-
}, e.hiddenLabel ? { "aria-label": e.label } : { "aria-labelledby":
|
|
6761
|
+
}, e.hiddenLabel ? { "aria-label": e.label } : { "aria-labelledby": A.value }, {
|
|
6762
6762
|
class: ["g-multiselect-listbox", { "g-multiselect-listbox--above": I(h) === "above" }],
|
|
6763
6763
|
style: I(g),
|
|
6764
6764
|
tabindex: "-1"
|
|
6765
|
-
}), [b.value.length > 0 ? (G(!0), K(W, { key: 0 },
|
|
6765
|
+
}), [b.value.length > 0 ? (G(!0), K(W, { key: 0 }, V(b.value, (e, t) => (G(), K("div", {
|
|
6766
6766
|
key: e.value,
|
|
6767
6767
|
id: I(a) + "-option-" + t,
|
|
6768
6768
|
role: "option",
|
|
@@ -6771,7 +6771,7 @@ var Qd = ["id", "for"], $d = {
|
|
|
6771
6771
|
"g-multiselect-option--selected": x(e.value)
|
|
6772
6772
|
}]),
|
|
6773
6773
|
"aria-selected": x(e.value) ? "true" : "false",
|
|
6774
|
-
onMousedown:
|
|
6774
|
+
onMousedown: ne,
|
|
6775
6775
|
onClick: (e) => T(t)
|
|
6776
6776
|
}, [J("span", cf, [x(e.value) ? (G(), K("svg", lf, [...n[1] ||= [J("path", { d: "M530.8 134.1C545.1 144.5 548.3 164.5 537.9 178.8L281.9 530.8C276.4 538.4 267.9 543.1 258.5 543.9C249.1 544.7 240 541.2 233.4 534.6L105.4 406.6C92.9 394.1 92.9 373.8 105.4 361.3C117.9 348.8 138.2 348.8 150.7 361.3L252.2 462.8L486.2 141.1C496.6 126.8 516.6 123.6 530.9 134z" }, null, -1)]])) : Z("", !0)]), J("span", uf, [J("span", df, M(e.label), 1), e.description ? (G(), K("span", ff, M(e.description), 1)) : Z("", !0)])], 42, sf))), 128)) : (G(), K("div", pf, " No results found. "))], 16, of), [[Go, l.value]])
|
|
6777
6777
|
], 2),
|
|
@@ -6797,9 +6797,9 @@ var Qd = ["id", "for"], $d = {
|
|
|
6797
6797
|
__name: "GClientOnly",
|
|
6798
6798
|
setup(e) {
|
|
6799
6799
|
let t = /* @__PURE__ */ F(dl());
|
|
6800
|
-
return
|
|
6800
|
+
return Wr(() => {
|
|
6801
6801
|
t.value = !0;
|
|
6802
|
-
}), (e, n) => t.value ?
|
|
6802
|
+
}), (e, n) => t.value ? H(e.$slots, "default", {}, void 0, void 0, 0) : H(e.$slots, "fallback", {}, void 0, void 0, 1);
|
|
6803
6803
|
}
|
|
6804
6804
|
}), vf = { class: "g-popover-wrap" }, yf = ["id"], bf = ["aria-labelledby", "aria-label"], xf = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
6805
6805
|
__name: "GPopover",
|
|
@@ -6823,7 +6823,7 @@ var Qd = ["id", "for"], $d = {
|
|
|
6823
6823
|
R(/* @__PURE__ */ ln(r, "modelValue"), (e) => {
|
|
6824
6824
|
a.value = e;
|
|
6825
6825
|
});
|
|
6826
|
-
let o =
|
|
6826
|
+
let o = li(), s = Q(() => !!o.trigger), c = Ar("triggerRef"), l = Ar("popoverRef"), { isCustomElement: u } = fl(), d = u, f = B(), { push: p, pop: m, isTop: h, zIndex: g } = Zs(f, !0), { activate: _, deactivate: v } = ll(l, h, !0);
|
|
6827
6827
|
ul([l, c], h, a, b, m), R(a, (e) => {
|
|
6828
6828
|
e ? (An(() => {
|
|
6829
6829
|
An(() => _());
|
|
@@ -6842,18 +6842,18 @@ var Qd = ["id", "for"], $d = {
|
|
|
6842
6842
|
top: 0,
|
|
6843
6843
|
left: 0
|
|
6844
6844
|
}), C = /* @__PURE__ */ F({ left: "50%" }), w = /* @__PURE__ */ F(!1), T = /* @__PURE__ */ F(!1), E = /* @__PURE__ */ F(!1), ee = /* @__PURE__ */ F(null), D = null;
|
|
6845
|
-
function
|
|
6845
|
+
function te() {
|
|
6846
6846
|
if (c.value) return c.value;
|
|
6847
6847
|
let e = l.value?.parentElement ?? null;
|
|
6848
6848
|
for (; e && e.tagName.toLowerCase() !== "g-popover";) e = e.parentElement;
|
|
6849
6849
|
let t = e?.previousElementSibling;
|
|
6850
6850
|
return t instanceof HTMLElement ? t : null;
|
|
6851
6851
|
}
|
|
6852
|
-
function
|
|
6852
|
+
function O() {
|
|
6853
6853
|
if (!l.value) return;
|
|
6854
6854
|
let e = l.value, t = new DOMRect(0, 0, window.innerWidth, window.innerHeight), n = Math.max(t.height - 32, 0), i = e.scrollHeight;
|
|
6855
6855
|
E.value = i > n, ee.value = E.value ? n : null;
|
|
6856
|
-
let a = new DOMRect(0, 0, e.offsetWidth, Math.min(i, n)), o =
|
|
6856
|
+
let a = new DOMRect(0, 0, e.offsetWidth, Math.min(i, n)), o = te();
|
|
6857
6857
|
if (!o) {
|
|
6858
6858
|
S.value = {
|
|
6859
6859
|
top: Math.max((t.height - a.height) / 2, 16),
|
|
@@ -6873,10 +6873,10 @@ var Qd = ["id", "for"], $d = {
|
|
|
6873
6873
|
}
|
|
6874
6874
|
return R(a, (e) => {
|
|
6875
6875
|
e ? An(() => {
|
|
6876
|
-
|
|
6877
|
-
}) : (window.removeEventListener("resize",
|
|
6878
|
-
}),
|
|
6879
|
-
window.removeEventListener("resize",
|
|
6876
|
+
O(), window.addEventListener("resize", O), window.addEventListener("scroll", O, { capture: !0 }), l.value && (D && D.disconnect(), D = new ResizeObserver(() => O()), D.observe(l.value));
|
|
6877
|
+
}) : (window.removeEventListener("resize", O), window.removeEventListener("scroll", O, { capture: !0 }), D && D.disconnect());
|
|
6878
|
+
}), qr(() => {
|
|
6879
|
+
window.removeEventListener("resize", O), window.removeEventListener("scroll", O, { capture: !0 }), D && D.disconnect();
|
|
6880
6880
|
}), t({
|
|
6881
6881
|
show: y,
|
|
6882
6882
|
hide: b,
|
|
@@ -6887,7 +6887,7 @@ var Qd = ["id", "for"], $d = {
|
|
|
6887
6887
|
ref: c,
|
|
6888
6888
|
class: "g-popover-trigger",
|
|
6889
6889
|
id: `${I(f)}-trigger`
|
|
6890
|
-
}, [
|
|
6890
|
+
}, [H(t.$slots, "trigger", { toggle: x })], 8, yf)) : Z("", !0), Y(_f, null, {
|
|
6891
6891
|
default: L(() => [(G(), q(dr, {
|
|
6892
6892
|
to: "#modal-root",
|
|
6893
6893
|
disabled: I(d)
|
|
@@ -6923,7 +6923,7 @@ var Qd = ["id", "for"], $d = {
|
|
|
6923
6923
|
style: le(C.value),
|
|
6924
6924
|
"aria-hidden": "true"
|
|
6925
6925
|
}, null, 6)) : Z("", !0),
|
|
6926
|
-
|
|
6926
|
+
H(t.$slots, "default"),
|
|
6927
6927
|
e.minimal ? Z("", !0) : (G(), K("button", {
|
|
6928
6928
|
key: 1,
|
|
6929
6929
|
class: "g-popover-close",
|
|
@@ -6950,7 +6950,7 @@ var Qd = ["id", "for"], $d = {
|
|
|
6950
6950
|
props: { text: { type: String } },
|
|
6951
6951
|
emits: ["tooltip-hide"],
|
|
6952
6952
|
setup(e, { expose: t, emit: n }) {
|
|
6953
|
-
let r = e, i = n, a =
|
|
6953
|
+
let r = e, i = n, a = li(), o = Q(() => !!a.trigger), s = Ar("hostRef"), c = Ar("triggerRef"), l = /* @__PURE__ */ F(null), u = /* @__PURE__ */ F(!1), d = /* @__PURE__ */ F(!1), f = null, p = !1, m = null, h = null, g = null;
|
|
6954
6954
|
function _() {
|
|
6955
6955
|
if (o.value && c.value) {
|
|
6956
6956
|
let e = c.value.firstElementChild;
|
|
@@ -6981,10 +6981,10 @@ var Qd = ["id", "for"], $d = {
|
|
|
6981
6981
|
b();
|
|
6982
6982
|
}
|
|
6983
6983
|
function C(e) {
|
|
6984
|
-
g !== e && (w(), g = e, g && (g.addEventListener("mouseenter", T), g.addEventListener("mouseleave", E), g.addEventListener("focusin", ee), g.addEventListener("focusout", D), g.addEventListener("keydown",
|
|
6984
|
+
g !== e && (w(), g = e, g && (g.addEventListener("mouseenter", T), g.addEventListener("mouseleave", E), g.addEventListener("focusin", ee), g.addEventListener("focusout", D), g.addEventListener("keydown", te)));
|
|
6985
6985
|
}
|
|
6986
6986
|
function w() {
|
|
6987
|
-
g &&= (g.removeEventListener("mouseenter", T), g.removeEventListener("mouseleave", E), g.removeEventListener("focusin", ee), g.removeEventListener("focusout", D), g.removeEventListener("keydown",
|
|
6987
|
+
g &&= (g.removeEventListener("mouseenter", T), g.removeEventListener("mouseleave", E), g.removeEventListener("focusin", ee), g.removeEventListener("focusout", D), g.removeEventListener("keydown", te), null);
|
|
6988
6988
|
}
|
|
6989
6989
|
function T() {
|
|
6990
6990
|
u.value = !0;
|
|
@@ -6998,7 +6998,7 @@ var Qd = ["id", "for"], $d = {
|
|
|
6998
6998
|
function D() {
|
|
6999
6999
|
d.value = !1;
|
|
7000
7000
|
}
|
|
7001
|
-
function
|
|
7001
|
+
function te(e) {
|
|
7002
7002
|
(e.key === "Escape" || e.key === "Esc") && (u.value = !1, d.value = !1);
|
|
7003
7003
|
}
|
|
7004
7004
|
return R(() => [
|
|
@@ -7017,7 +7017,7 @@ var Qd = ["id", "for"], $d = {
|
|
|
7017
7017
|
p &&= (window.removeEventListener("scroll", y, { capture: !0 }), !1), l.value && (Qu(l.value), m && clearTimeout(m), m = window.setTimeout(() => {
|
|
7018
7018
|
i("tooltip-hide");
|
|
7019
7019
|
}, 150));
|
|
7020
|
-
}),
|
|
7020
|
+
}), qr(() => {
|
|
7021
7021
|
p && window.removeEventListener("scroll", y, { capture: !0 }), f && f.disconnect(), l.value &&= (l.value.remove(), null), m && clearTimeout(m), o.value && g && g.removeAttribute("aria-describedby"), w();
|
|
7022
7022
|
}), t({
|
|
7023
7023
|
show: b,
|
|
@@ -7032,7 +7032,7 @@ var Qd = ["id", "for"], $d = {
|
|
|
7032
7032
|
ref_key: "triggerRef",
|
|
7033
7033
|
ref: c,
|
|
7034
7034
|
class: "g-tooltip-trigger"
|
|
7035
|
-
}, [
|
|
7035
|
+
}, [H(e.$slots, "trigger")], 512)) : Z("", !0)], 512));
|
|
7036
7036
|
}
|
|
7037
7037
|
}), [["styles", [""]]]), Cf = ["width", "height"], wf = [
|
|
7038
7038
|
"cx",
|
|
@@ -7144,7 +7144,7 @@ var Qd = ["id", "for"], $d = {
|
|
|
7144
7144
|
"aria-selected"
|
|
7145
7145
|
], Lf = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
7146
7146
|
__name: "GSearch",
|
|
7147
|
-
props: /*@__PURE__*/
|
|
7147
|
+
props: /*@__PURE__*/ U({
|
|
7148
7148
|
results: { type: Array },
|
|
7149
7149
|
placeholder: {
|
|
7150
7150
|
default: "Search...",
|
|
@@ -7163,9 +7163,9 @@ var Qd = ["id", "for"], $d = {
|
|
|
7163
7163
|
modelValue: { default: () => "" },
|
|
7164
7164
|
modelModifiers: {}
|
|
7165
7165
|
}),
|
|
7166
|
-
emits: /*@__PURE__*/
|
|
7166
|
+
emits: /*@__PURE__*/ U(["select", "submit"], ["update:modelValue"]),
|
|
7167
7167
|
setup(e, { emit: t }) {
|
|
7168
|
-
let n =
|
|
7168
|
+
let n = Mi(e, "modelValue"), r = e, i = t, a = /* @__PURE__ */ F(null), o = /* @__PURE__ */ F(null), s = /* @__PURE__ */ F(!0), c = /* @__PURE__ */ F(-1), l = Q(() => Array.isArray(r.results) && r.results.length && "items" in r.results[0] ? r.results.flatMap((e) => e.items) : r.results), u = Q(() => l.value.length);
|
|
7169
7169
|
function d(e) {
|
|
7170
7170
|
let t = e.target.value;
|
|
7171
7171
|
n.value = t, r.auto && t.length > 1 && (s.value = !1);
|
|
@@ -7206,7 +7206,7 @@ var Qd = ["id", "for"], $d = {
|
|
|
7206
7206
|
R(() => n.value, (e) => {
|
|
7207
7207
|
e ? r.auto && v() : c.value = -1;
|
|
7208
7208
|
});
|
|
7209
|
-
let y =
|
|
7209
|
+
let y = B();
|
|
7210
7210
|
return (e, t) => (G(), K("div", {
|
|
7211
7211
|
class: "g-search",
|
|
7212
7212
|
role: "search",
|
|
@@ -7251,26 +7251,26 @@ var Qd = ["id", "for"], $d = {
|
|
|
7251
7251
|
ref_key: "listboxRef",
|
|
7252
7252
|
ref: o,
|
|
7253
7253
|
"aria-label": "Search results"
|
|
7254
|
-
}, [u.value > 0 && "items" in r.results[0] ? (G(!0), K(W, { key: 0 },
|
|
7254
|
+
}, [u.value > 0 && "items" in r.results[0] ? (G(!0), K(W, { key: 0 }, V(r.results, (t, n) => (G(), K("div", {
|
|
7255
7255
|
key: t.type,
|
|
7256
7256
|
class: "g-search-group",
|
|
7257
7257
|
role: "group",
|
|
7258
7258
|
"aria-label": t.label
|
|
7259
|
-
}, [
|
|
7259
|
+
}, [H(e.$slots, "group", { group: t }, () => [J("div", Pf, M(t.label), 1)]), (G(!0), K(W, null, V(t.items, (t, n) => (G(), K("div", {
|
|
7260
7260
|
key: t.id,
|
|
7261
7261
|
id: "g-search-option-" + t.id,
|
|
7262
7262
|
class: j(["g-search-option", { "g-search-option-active": l.value[c.value] && l.value[c.value].id === t.id }]),
|
|
7263
7263
|
role: "option",
|
|
7264
7264
|
onMousedown: Is((e) => h(t), ["prevent"]),
|
|
7265
7265
|
"aria-selected": l.value[c.value] && l.value[c.value].id === t.id
|
|
7266
|
-
}, [
|
|
7266
|
+
}, [H(e.$slots, "option", { option: t }, () => [X(M(t.title), 1)])], 42, Ff))), 128))], 8, Nf))), 128)) : u.value > 0 ? (G(!0), K(W, { key: 1 }, V(l.value, (t, n) => (G(), K("div", {
|
|
7267
7267
|
key: t.id,
|
|
7268
7268
|
id: "g-search-option-" + t.id,
|
|
7269
7269
|
class: j(["g-search-option", { "g-search-option-active": c.value === n }]),
|
|
7270
7270
|
role: "option",
|
|
7271
7271
|
onMousedown: Is((e) => h(t), ["prevent"]),
|
|
7272
7272
|
"aria-selected": c.value === n
|
|
7273
|
-
}, [
|
|
7273
|
+
}, [H(e.$slots, "option", { option: t }, () => [X(M(t.title), 1)])], 42, If))), 128)) : Z("", !0)], 8, Mf)])) : Z("", !0)], 8, Of));
|
|
7274
7274
|
}
|
|
7275
7275
|
}), [["styles", [""]]]), Rf = ["id"], zf = {
|
|
7276
7276
|
key: 0,
|
|
@@ -7303,7 +7303,7 @@ var Qd = ["id", "for"], $d = {
|
|
|
7303
7303
|
class: "g-select-combo-option g-select-option g-select-no-results"
|
|
7304
7304
|
}, Yf = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
7305
7305
|
__name: "GSelect",
|
|
7306
|
-
props: /*@__PURE__*/
|
|
7306
|
+
props: /*@__PURE__*/ U({
|
|
7307
7307
|
options: { type: Array },
|
|
7308
7308
|
label: { type: String },
|
|
7309
7309
|
hiddenLabel: { type: Boolean },
|
|
@@ -7339,9 +7339,9 @@ var Qd = ["id", "for"], $d = {
|
|
|
7339
7339
|
modelValue: {},
|
|
7340
7340
|
modelModifiers: {}
|
|
7341
7341
|
}),
|
|
7342
|
-
emits: /*@__PURE__*/
|
|
7342
|
+
emits: /*@__PURE__*/ U(["change"], ["update:modelValue"]),
|
|
7343
7343
|
setup(e, { emit: t }) {
|
|
7344
|
-
let n = e, r = t, i =
|
|
7344
|
+
let n = e, r = t, i = Mi(e, "modelValue"), a = B(), o = /* @__PURE__ */ F(null), s = /* @__PURE__ */ F(null), c = /* @__PURE__ */ F(null), l = /* @__PURE__ */ F(!1), u = /* @__PURE__ */ F(0), d = /* @__PURE__ */ F(!1), f = /* @__PURE__ */ F(!1), { displayErrors: p, hasErrors: m } = Nl({
|
|
7345
7345
|
name: n.name,
|
|
7346
7346
|
value: i,
|
|
7347
7347
|
errors: /* @__PURE__ */ ln(n, "errors"),
|
|
@@ -7402,10 +7402,10 @@ var Qd = ["id", "for"], $d = {
|
|
|
7402
7402
|
f.value = !1;
|
|
7403
7403
|
}, 100);
|
|
7404
7404
|
}
|
|
7405
|
-
function
|
|
7405
|
+
function te() {
|
|
7406
7406
|
n.disabled || (l.value ? w() : C());
|
|
7407
7407
|
}
|
|
7408
|
-
function
|
|
7408
|
+
function O(e) {
|
|
7409
7409
|
if (n.disabled) return;
|
|
7410
7410
|
let t = x.value.length - 1;
|
|
7411
7411
|
if (!l.value && [
|
|
@@ -7439,14 +7439,14 @@ var Qd = ["id", "for"], $d = {
|
|
|
7439
7439
|
}, 0));
|
|
7440
7440
|
}
|
|
7441
7441
|
}
|
|
7442
|
-
function
|
|
7442
|
+
function ne(e) {
|
|
7443
7443
|
D(e);
|
|
7444
7444
|
}
|
|
7445
|
-
function
|
|
7445
|
+
function re() {
|
|
7446
7446
|
d.value = !0;
|
|
7447
7447
|
}
|
|
7448
|
-
let
|
|
7449
|
-
function
|
|
7448
|
+
let k = Q(() => n.clearButton && i.value !== null && i.value !== void 0 && !n.disabled);
|
|
7449
|
+
function ie() {
|
|
7450
7450
|
n.disabled || (i.value = null, r("change", null), n.searchable && (b.value = ""));
|
|
7451
7451
|
}
|
|
7452
7452
|
return (t, r) => (G(), K("div", { class: j(["g-select-root g-select-combo", {
|
|
@@ -7475,7 +7475,7 @@ var Qd = ["id", "for"], $d = {
|
|
|
7475
7475
|
disabled: n.disabled,
|
|
7476
7476
|
onFocus: T,
|
|
7477
7477
|
onInput: E,
|
|
7478
|
-
onKeydown:
|
|
7478
|
+
onKeydown: O,
|
|
7479
7479
|
onBlur: ee,
|
|
7480
7480
|
"aria-autocomplete": "list",
|
|
7481
7481
|
"aria-controls": I(a) + "-listbox",
|
|
@@ -7487,11 +7487,11 @@ var Qd = ["id", "for"], $d = {
|
|
|
7487
7487
|
role: "combobox",
|
|
7488
7488
|
autocomplete: "off"
|
|
7489
7489
|
}), null, 16, Hf),
|
|
7490
|
-
|
|
7490
|
+
k.value ? (G(), K("button", {
|
|
7491
7491
|
key: 0,
|
|
7492
7492
|
type: "button",
|
|
7493
7493
|
class: "g-select-clear-btn",
|
|
7494
|
-
onClick:
|
|
7494
|
+
onClick: ie
|
|
7495
7495
|
}, [...r[0] ||= [J("svg", {
|
|
7496
7496
|
role: "img",
|
|
7497
7497
|
"aria-label": "Clear Selection",
|
|
@@ -7526,17 +7526,17 @@ var Qd = ["id", "for"], $d = {
|
|
|
7526
7526
|
}, e.hiddenLabel ? { "aria-label": n.label } : { "aria-labelledby": I(a) + "-label" }, {
|
|
7527
7527
|
"aria-activedescendant": l.value ? I(a) + "-option-" + u.value : void 0,
|
|
7528
7528
|
tabindex: "0",
|
|
7529
|
-
onClick:
|
|
7530
|
-
onKeydown:
|
|
7529
|
+
onClick: te,
|
|
7530
|
+
onKeydown: O,
|
|
7531
7531
|
onFocus: T,
|
|
7532
7532
|
onBlur: ee
|
|
7533
7533
|
}), [
|
|
7534
7534
|
X(M(y.value[S.value] ? y.value[S.value].label : "") + " ", 1),
|
|
7535
|
-
|
|
7535
|
+
k.value ? (G(), K("button", {
|
|
7536
7536
|
key: 0,
|
|
7537
7537
|
type: "button",
|
|
7538
7538
|
class: "g-select-clear-btn",
|
|
7539
|
-
onClick: Is(
|
|
7539
|
+
onClick: Is(ie, ["stop"])
|
|
7540
7540
|
}, [...r[2] ||= [J("svg", {
|
|
7541
7541
|
role: "img",
|
|
7542
7542
|
"aria-label": "Clear Selection",
|
|
@@ -7564,7 +7564,7 @@ var Qd = ["id", "for"], $d = {
|
|
|
7564
7564
|
style: I(g),
|
|
7565
7565
|
role: "listbox",
|
|
7566
7566
|
id: I(a) + "-listbox"
|
|
7567
|
-
}, e.hiddenLabel ? { "aria-label": n.label } : { "aria-labelledby": I(a) + "-label" }, { tabindex: "-1" }), [x.value.length > 0 ? (G(!0), K(W, { key: 0 },
|
|
7567
|
+
}, e.hiddenLabel ? { "aria-label": n.label } : { "aria-labelledby": I(a) + "-label" }, { tabindex: "-1" }), [x.value.length > 0 ? (G(!0), K(W, { key: 0 }, V(x.value, (e, n) => (G(), K("div", {
|
|
7568
7568
|
key: e.value,
|
|
7569
7569
|
id: I(a) + "-option-" + n,
|
|
7570
7570
|
class: j(["g-select-combo-option g-select-option", {
|
|
@@ -7573,9 +7573,9 @@ var Qd = ["id", "for"], $d = {
|
|
|
7573
7573
|
}]),
|
|
7574
7574
|
role: "option",
|
|
7575
7575
|
"aria-selected": e.value === i.value ? "true" : "false",
|
|
7576
|
-
onMousedown:
|
|
7577
|
-
onClick: (e) =>
|
|
7578
|
-
}, [
|
|
7576
|
+
onMousedown: re,
|
|
7577
|
+
onClick: (e) => ne(n)
|
|
7578
|
+
}, [H(t.$slots, "option", {
|
|
7579
7579
|
option: e,
|
|
7580
7580
|
selected: e.value === i.value,
|
|
7581
7581
|
index: n
|
|
@@ -7600,7 +7600,7 @@ var Qd = ["id", "for"], $d = {
|
|
|
7600
7600
|
"onChange"
|
|
7601
7601
|
], tp = ["for"], np = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
7602
7602
|
__name: "GSelectButton",
|
|
7603
|
-
props: /*@__PURE__*/
|
|
7603
|
+
props: /*@__PURE__*/ U({
|
|
7604
7604
|
options: { type: Array },
|
|
7605
7605
|
label: { type: String },
|
|
7606
7606
|
size: {
|
|
@@ -7631,9 +7631,9 @@ var Qd = ["id", "for"], $d = {
|
|
|
7631
7631
|
modelValue: { default: () => "" },
|
|
7632
7632
|
modelModifiers: {}
|
|
7633
7633
|
}),
|
|
7634
|
-
emits: /*@__PURE__*/
|
|
7634
|
+
emits: /*@__PURE__*/ U(["change"], ["update:modelValue"]),
|
|
7635
7635
|
setup(e, { emit: t }) {
|
|
7636
|
-
let n = e, r = t, i =
|
|
7636
|
+
let n = e, r = t, i = Mi(e, "modelValue"), a = B(), { displayErrors: o, hasErrors: s } = Nl({
|
|
7637
7637
|
name: n.name,
|
|
7638
7638
|
value: i,
|
|
7639
7639
|
errors: /* @__PURE__ */ ln(n, "errors"),
|
|
@@ -7652,7 +7652,7 @@ var Qd = ["id", "for"], $d = {
|
|
|
7652
7652
|
return (e, t) => (G(), K("fieldset", {
|
|
7653
7653
|
class: j(l.value),
|
|
7654
7654
|
disabled: n.disabled
|
|
7655
|
-
}, [J("legend", Zf, [X(M(n.label), 1), n.required ? (G(), K("span", Qf, " *")) : Z("", !0)]), J("div", { class: j(["g-select-btn-wrapper", { "g-select-btn-has-error": I(s) }]) }, [J("div", $f, [(G(!0), K(W, null,
|
|
7655
|
+
}, [J("legend", Zf, [X(M(n.label), 1), n.required ? (G(), K("span", Qf, " *")) : Z("", !0)]), J("div", { class: j(["g-select-btn-wrapper", { "g-select-btn-has-error": I(s) }]) }, [J("div", $f, [(G(!0), K(W, null, V(c.value, (e, t) => (G(), K(W, { key: e.value }, [J("input", {
|
|
7656
7656
|
class: "g-select-btn-radio",
|
|
7657
7657
|
type: "radio",
|
|
7658
7658
|
id: `${I(a)}-${e.value}`,
|
|
@@ -7734,7 +7734,7 @@ function rp(e, t) {
|
|
|
7734
7734
|
]
|
|
7735
7735
|
}), t = t.parentElement;
|
|
7736
7736
|
}
|
|
7737
|
-
return
|
|
7737
|
+
return Wr(() => {
|
|
7738
7738
|
if (!e.value) {
|
|
7739
7739
|
f();
|
|
7740
7740
|
return;
|
|
@@ -7750,7 +7750,7 @@ function rp(e, t) {
|
|
|
7750
7750
|
m(), typeof ResizeObserver < "u" && (a = new ResizeObserver(() => {
|
|
7751
7751
|
m();
|
|
7752
7752
|
}), a.observe(e.value), a.observe(i)), h(e.value), i.addEventListener("scroll", u);
|
|
7753
|
-
}),
|
|
7753
|
+
}), Jr(() => {
|
|
7754
7754
|
d(), i &&= (i.removeEventListener("scroll", u), null), s = !1;
|
|
7755
7755
|
}), { isPendingScrollRestore: r };
|
|
7756
7756
|
}
|
|
@@ -7791,7 +7791,7 @@ var ip = ["id"], ap = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
|
7791
7791
|
storageKey: { type: String }
|
|
7792
7792
|
},
|
|
7793
7793
|
setup(e) {
|
|
7794
|
-
let t = e, n = Gn("sidebar", () => void 0, !0) ?? (dl() ? Fd(t.sidebarKey, /* @__PURE__ */ ln(t, "mediaQuery")) : void 0), r = Q(() => t.backgroundImage ? t.backgroundImage : t.theme === "light" ? "none" : "url('https://gradcdn.blob.core.windows.net/public/sidebar-bg2.jpg')"), i = Q(() => t.backgroundColor ? t.backgroundColor : t.theme === "light" ? "#f9f9f9" : "#030913"), a = Q(() => t.topOffsetVar ? `var(${t.topOffsetVar})` : t.topOffset ? t.topOffset : "var(--g-toolbar-height)"), o =
|
|
7794
|
+
let t = e, n = Gn("sidebar", () => void 0, !0) ?? (dl() ? Fd(t.sidebarKey, /* @__PURE__ */ ln(t, "mediaQuery")) : void 0), r = Q(() => t.backgroundImage ? t.backgroundImage : t.theme === "light" ? "none" : "url('https://gradcdn.blob.core.windows.net/public/sidebar-bg2.jpg')"), i = Q(() => t.backgroundColor ? t.backgroundColor : t.theme === "light" ? "#f9f9f9" : "#030913"), a = Q(() => t.topOffsetVar ? `var(${t.topOffsetVar})` : t.topOffset ? t.topOffset : "var(--g-toolbar-height)"), o = B(), { isPendingScrollRestore: s } = rp(Ar("sidebar-ref"), t.storageKey);
|
|
7795
7795
|
function c(e) {
|
|
7796
7796
|
e.key === "Escape" && n?.isCollapsible?.value && n?.open?.value && (n.open.value = !1, document.getElementById(`${n.id}-hamburger`)?.focus());
|
|
7797
7797
|
}
|
|
@@ -7812,7 +7812,7 @@ var ip = ["id"], ap = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
|
7812
7812
|
width: "var(--g-sidebar-width)"
|
|
7813
7813
|
}),
|
|
7814
7814
|
onKeydown: c
|
|
7815
|
-
}, [
|
|
7815
|
+
}, [H(t.$slots, "default")], 46, ip));
|
|
7816
7816
|
}
|
|
7817
7817
|
}), [["styles", [""]]]), op = ["id"], sp = { class: "g-sidebar-menu__list" }, cp = [
|
|
7818
7818
|
"href",
|
|
@@ -7820,7 +7820,7 @@ var ip = ["id"], ap = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
|
7820
7820
|
"onClick"
|
|
7821
7821
|
], lp = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
7822
7822
|
__name: "GSidebarMenu",
|
|
7823
|
-
props: /*@__PURE__*/
|
|
7823
|
+
props: /*@__PURE__*/ U({
|
|
7824
7824
|
heading: { type: String },
|
|
7825
7825
|
items: { type: Array },
|
|
7826
7826
|
offset: {
|
|
@@ -7848,8 +7848,8 @@ var ip = ["id"], ap = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
|
7848
7848
|
}),
|
|
7849
7849
|
emits: ["update:modelValue"],
|
|
7850
7850
|
setup(e) {
|
|
7851
|
-
let t = e, n =
|
|
7852
|
-
|
|
7851
|
+
let t = e, n = Mi(e, "modelValue"), r = Q(() => t.spy && n.value ? "#" + n.value : null), i = Ar("content");
|
|
7852
|
+
Wr(() => {
|
|
7853
7853
|
R(n, () => {
|
|
7854
7854
|
An(() => {
|
|
7855
7855
|
let e = i.value?.querySelector(".g-sidebar-menu__is-active");
|
|
@@ -7863,7 +7863,7 @@ var ip = ["id"], ap = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
|
7863
7863
|
let n = t.href.slice(1), r = document.getElementById(n)?.querySelector("h2, h3, h4, h5");
|
|
7864
7864
|
r && (e.preventDefault(), r.setAttribute("tabindex", "-1"), r.focus(), r.scrollIntoView({ block: "start" }), history.replaceState(null, "", t.href));
|
|
7865
7865
|
}
|
|
7866
|
-
let c =
|
|
7866
|
+
let c = B();
|
|
7867
7867
|
return (n, a) => (G(), K("nav", Va({ class: ["g-sidebar-menu", [`g-sidebar-menu__${t.theme}`, { "g-sidebar-menu--compact": t.compact }]] }, {
|
|
7868
7868
|
"aria-labelledby": e.heading ? I(c) : void 0,
|
|
7869
7869
|
"aria-label": e.heading ? void 0 : "Sidebar Menu"
|
|
@@ -7878,12 +7878,12 @@ var ip = ["id"], ap = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
|
7878
7878
|
class: "g-sidebar-menu__content",
|
|
7879
7879
|
ref_key: "content",
|
|
7880
7880
|
ref: i
|
|
7881
|
-
}, [J("ul", sp, [(G(!0), K(W, null,
|
|
7881
|
+
}, [J("ul", sp, [(G(!0), K(W, null, V(e.items, (e) => (G(), K("li", {
|
|
7882
7882
|
key: e.href || e.to,
|
|
7883
7883
|
class: "g-sidebar-menu__item",
|
|
7884
7884
|
ref_for: !0,
|
|
7885
7885
|
ref: "listItems"
|
|
7886
|
-
}, [e.to && o.value ? (G(), q(
|
|
7886
|
+
}, [e.to && o.value ? (G(), q(ti(o.value), {
|
|
7887
7887
|
key: 0,
|
|
7888
7888
|
class: "g-sidebar-menu__link",
|
|
7889
7889
|
to: e.to
|
|
@@ -7920,14 +7920,14 @@ var ip = ["id"], ap = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
|
7920
7920
|
}
|
|
7921
7921
|
},
|
|
7922
7922
|
setup(e) {
|
|
7923
|
-
let t = e, n =
|
|
7923
|
+
let t = e, n = ui(), r = typeof n["form-key"] == "string" ? n["form-key"] : void 0, i = t.formKey || r || "default", a = Gn("form", null) ?? (dl() ? Ml(i) : null), o = Q(() => t.disabled || (a?.isSubmitting.value ?? !1)), s = Q(() => a?.isSubmitting.value ?? !1);
|
|
7924
7924
|
return (e, n) => (G(), q(gl, {
|
|
7925
7925
|
type: "submit",
|
|
7926
7926
|
disabled: o.value,
|
|
7927
7927
|
variant: t.variant,
|
|
7928
7928
|
class: "g-submit-button"
|
|
7929
7929
|
}, {
|
|
7930
|
-
default: L(() => [Hn(J("span", null, M(t.loadingText), 513), [[Go, s.value]]), Hn(J("span", null, [
|
|
7930
|
+
default: L(() => [Hn(J("span", null, M(t.loadingText), 513), [[Go, s.value]]), Hn(J("span", null, [H(e.$slots, "default", {}, () => [n[0] ||= X("Submit", -1)])], 512), [[Go, !s.value]])]),
|
|
7931
7931
|
_: 3
|
|
7932
7932
|
}, 8, ["disabled", "variant"]));
|
|
7933
7933
|
}
|
|
@@ -8038,13 +8038,13 @@ var ip = ["id"], ap = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
|
8038
8038
|
function h(e, t) {
|
|
8039
8039
|
if (n.changeTracker) return n.changeTracker.getError(e.key, t.key);
|
|
8040
8040
|
}
|
|
8041
|
-
return (t, n) => (G(), K("tbody", dp, [(G(!0), K(W, null,
|
|
8041
|
+
return (t, n) => (G(), K("tbody", dp, [(G(!0), K(W, null, V(e.data, (t, r) => (G(), K(W, { key: t.key }, [e.groupBy && (r === 0 || t[e.groupBy] !== e.data[r - 1][e.groupBy]) ? (G(), K("tr", {
|
|
8042
8042
|
key: 0,
|
|
8043
8043
|
"aria-rowindex": e.startIndex + r + 2
|
|
8044
8044
|
}, [e.bulkSelectionEnabled ? (G(), K("td", pp)) : Z("", !0), J("td", {
|
|
8045
8045
|
colspan: d.value,
|
|
8046
8046
|
class: "table-group-row"
|
|
8047
|
-
}, [e.groupRender ? (G(), q(
|
|
8047
|
+
}, [e.groupRender ? (G(), q(ti(e.groupRender(t[e.groupBy], t)), { key: 0 })) : (G(), K(W, { key: 1 }, [X(M(t[e.groupBy]), 1)], 64))], 8, mp)], 8, fp)) : Z("", !0), J("tr", {
|
|
8048
8048
|
class: j([
|
|
8049
8049
|
"efficient-table-row",
|
|
8050
8050
|
{
|
|
@@ -8067,7 +8067,7 @@ var ip = ["id"], ap = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
|
8067
8067
|
"aria-label": `Select row ${t.key}`,
|
|
8068
8068
|
name: `row-${t.key}-checkbox`,
|
|
8069
8069
|
class: "g-bulk-select-checkbox"
|
|
8070
|
-
}, null, 8, gp)])) : Z("", !0), (G(!0), K(W, null,
|
|
8070
|
+
}, null, 8, gp)])) : Z("", !0), (G(!0), K(W, null, V(e.columns, (n) => (G(), K("td", {
|
|
8071
8071
|
key: n.key,
|
|
8072
8072
|
id: f(n) ? `${e.tableId}-td-${t.key}-${String(n.key)}` : void 0,
|
|
8073
8073
|
class: j([
|
|
@@ -8087,7 +8087,7 @@ var ip = ["id"], ap = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
|
8087
8087
|
"aria-errormessage": m(t, n) ? `${e.tableId}-error-${t.key}-${String(n.key)}` : void 0,
|
|
8088
8088
|
name: `row-${t.key}-${String(n.key)}-select`,
|
|
8089
8089
|
class: "editable-input editable-select"
|
|
8090
|
-
}, [(G(!0), K(W, null,
|
|
8090
|
+
}, [(G(!0), K(W, null, V(n.editable.options, (e) => (G(), K("option", {
|
|
8091
8091
|
key: e.value,
|
|
8092
8092
|
value: e.value
|
|
8093
8093
|
}, M(e.label), 9, xp))), 128))], 40, bp)) : (G(), K("input", Va({
|
|
@@ -8106,27 +8106,281 @@ var ip = ["id"], ap = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
|
8106
8106
|
}
|
|
8107
8107
|
}), null, 16, Sp)),
|
|
8108
8108
|
n.editable.suffix ? (G(), K("span", Cp, M(n.editable.suffix), 1)) : Z("", !0)
|
|
8109
|
-
])) : n.display ? (G(), q(
|
|
8109
|
+
])) : n.display ? (G(), q(ti(n.display(t)), { key: 1 })) : (G(), K(W, { key: 2 }, [X(M(t[n.key]), 1)], 64)), m(t, n) ? (G(), K("div", {
|
|
8110
8110
|
key: 3,
|
|
8111
8111
|
role: "alert",
|
|
8112
8112
|
class: "g-cell-error-message",
|
|
8113
8113
|
id: `${e.tableId}-error-${t.key}-${String(n.key)}`
|
|
8114
8114
|
}, M(h(t, n)), 9, wp)) : Z("", !0)], 10, _p))), 128))], 42, hp)], 64))), 128))], 512));
|
|
8115
8115
|
}
|
|
8116
|
+
}), [["styles", [""]]]), Ep = {
|
|
8117
|
+
class: "g-pagination",
|
|
8118
|
+
"aria-label": "Pagination"
|
|
8119
|
+
}, Dp = ["disabled"], Op = ["disabled"], kp = { class: "page-range" }, Ap = ["disabled"], jp = ["disabled"], Mp = { class: "g-pagination-page-size" }, Np = { class: "page-size-select-wrap" }, Pp = ["id", "value"], Fp = ["value"], Ip = ["for"], Lp = { class: "g-pagination-overflow" }, Rp = ["onClick"], zp = { class: "g-pagination-overflow-popover" }, Bp = { class: "g-pagination-overflow-page-size" }, Vp = ["for"], Hp = { class: "page-size-select-wrap" }, Up = ["id", "value"], Wp = ["value"], Gp = { class: "g-pagination-overflow-actions" }, Kp = ["disabled"], qp = ["disabled"], Jp = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
8120
|
+
__name: "GTablePagination",
|
|
8121
|
+
props: /*@__PURE__*/ U({
|
|
8122
|
+
start: { type: Number },
|
|
8123
|
+
pageSize: { type: Number },
|
|
8124
|
+
total: { type: Number },
|
|
8125
|
+
pageSizes: { type: Array }
|
|
8126
|
+
}, {
|
|
8127
|
+
start: {},
|
|
8128
|
+
startModifiers: {},
|
|
8129
|
+
pageSize: {},
|
|
8130
|
+
pageSizeModifiers: {}
|
|
8131
|
+
}),
|
|
8132
|
+
emits: ["update:start", "update:pageSize"],
|
|
8133
|
+
setup(e) {
|
|
8134
|
+
let t = e, n = Q(() => Math.max(1, Math.ceil(t.total / t.pageSize))), r = Mi(e, "start"), i = Mi(e, "pageSize"), a = B(), o = B(), s = Q(() => r.value ?? t.start), c = Q(() => i.value ?? t.pageSize), l = Q(() => t.pageSizes || [
|
|
8135
|
+
10,
|
|
8136
|
+
25,
|
|
8137
|
+
50,
|
|
8138
|
+
100
|
|
8139
|
+
]), u = Q(() => m.value === 1), d = Q(() => m.value === n.value), f = Q(() => t.total === 0 ? 0 : s.value + 1), p = Q(() => t.total === 0 ? 0 : Math.min(s.value + c.value, t.total)), m = Q(() => Math.floor(s.value / c.value) + 1);
|
|
8140
|
+
function h(e) {
|
|
8141
|
+
e < 1 || e > n.value || (r.value = (e - 1) * c.value);
|
|
8142
|
+
}
|
|
8143
|
+
function g(e) {
|
|
8144
|
+
i.value = parseInt(e.target.value, 10), r.value = 0;
|
|
8145
|
+
}
|
|
8146
|
+
return (e, t) => (G(), K("nav", Ep, [
|
|
8147
|
+
J("button", {
|
|
8148
|
+
class: "first-page g-pagination-button",
|
|
8149
|
+
type: "button",
|
|
8150
|
+
disabled: u.value,
|
|
8151
|
+
onClick: t[0] ||= (e) => h(1)
|
|
8152
|
+
}, [...t[6] ||= [J("svg", {
|
|
8153
|
+
role: "img",
|
|
8154
|
+
"aria-label": "First Page",
|
|
8155
|
+
height: "2em",
|
|
8156
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8157
|
+
width: "2em",
|
|
8158
|
+
viewBox: "0 0 24 24",
|
|
8159
|
+
fill: "none",
|
|
8160
|
+
stroke: "currentColor",
|
|
8161
|
+
"stroke-width": "2",
|
|
8162
|
+
"stroke-linecap": "round",
|
|
8163
|
+
"stroke-linejoin": "round"
|
|
8164
|
+
}, [
|
|
8165
|
+
J("path", {
|
|
8166
|
+
stroke: "none",
|
|
8167
|
+
d: "M0 0h24v24H0z",
|
|
8168
|
+
fill: "none"
|
|
8169
|
+
}),
|
|
8170
|
+
J("path", { d: "M11 7l-5 5l5 5" }),
|
|
8171
|
+
J("path", { d: "M17 7l-5 5l5 5" })
|
|
8172
|
+
], -1)]], 8, Dp),
|
|
8173
|
+
J("button", {
|
|
8174
|
+
class: "prev-page g-pagination-button",
|
|
8175
|
+
type: "button",
|
|
8176
|
+
disabled: u.value,
|
|
8177
|
+
onClick: t[1] ||= (e) => h(m.value - 1)
|
|
8178
|
+
}, [...t[7] ||= [J("svg", {
|
|
8179
|
+
role: "img",
|
|
8180
|
+
"aria-label": "Previous Page",
|
|
8181
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8182
|
+
width: "2em",
|
|
8183
|
+
height: "2em",
|
|
8184
|
+
viewBox: "0 0 24 24",
|
|
8185
|
+
fill: "none",
|
|
8186
|
+
stroke: "currentColor",
|
|
8187
|
+
"stroke-width": "2",
|
|
8188
|
+
"stroke-linecap": "round",
|
|
8189
|
+
"stroke-linejoin": "round"
|
|
8190
|
+
}, [J("path", {
|
|
8191
|
+
stroke: "none",
|
|
8192
|
+
d: "M0 0h24v24H0z",
|
|
8193
|
+
fill: "none"
|
|
8194
|
+
}), J("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8, Op),
|
|
8195
|
+
J("span", kp, M(f.value) + " to " + M(p.value), 1),
|
|
8196
|
+
J("button", {
|
|
8197
|
+
class: "next-page g-pagination-button",
|
|
8198
|
+
type: "button",
|
|
8199
|
+
disabled: d.value,
|
|
8200
|
+
onClick: t[2] ||= (e) => h(m.value + 1)
|
|
8201
|
+
}, [...t[8] ||= [J("svg", {
|
|
8202
|
+
role: "img",
|
|
8203
|
+
"aria-label": "Next Page",
|
|
8204
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8205
|
+
width: "2em",
|
|
8206
|
+
height: "2em",
|
|
8207
|
+
viewBox: "0 0 24 24",
|
|
8208
|
+
fill: "none",
|
|
8209
|
+
stroke: "currentColor",
|
|
8210
|
+
"stroke-width": "2",
|
|
8211
|
+
"stroke-linecap": "round",
|
|
8212
|
+
"stroke-linejoin": "round"
|
|
8213
|
+
}, [J("path", {
|
|
8214
|
+
stroke: "none",
|
|
8215
|
+
d: "M0 0h24v24H0z",
|
|
8216
|
+
fill: "none"
|
|
8217
|
+
}), J("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8, Ap),
|
|
8218
|
+
J("button", {
|
|
8219
|
+
class: "last-page g-pagination-button",
|
|
8220
|
+
type: "button",
|
|
8221
|
+
disabled: d.value,
|
|
8222
|
+
onClick: t[3] ||= (e) => h(n.value)
|
|
8223
|
+
}, [...t[9] ||= [J("svg", {
|
|
8224
|
+
role: "img",
|
|
8225
|
+
"aria-label": "Last Page",
|
|
8226
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8227
|
+
width: "2em",
|
|
8228
|
+
height: "2em",
|
|
8229
|
+
viewBox: "0 0 24 24",
|
|
8230
|
+
fill: "none",
|
|
8231
|
+
stroke: "currentColor",
|
|
8232
|
+
"stroke-width": "2",
|
|
8233
|
+
"stroke-linecap": "round",
|
|
8234
|
+
"stroke-linejoin": "round"
|
|
8235
|
+
}, [
|
|
8236
|
+
J("path", {
|
|
8237
|
+
stroke: "none",
|
|
8238
|
+
d: "M0 0h24v24H0z",
|
|
8239
|
+
fill: "none"
|
|
8240
|
+
}),
|
|
8241
|
+
J("path", { d: "M7 7l5 5l-5 5" }),
|
|
8242
|
+
J("path", { d: "M13 7l5 5l-5 5" })
|
|
8243
|
+
], -1)]], 8, jp),
|
|
8244
|
+
J("div", Mp, [J("div", Np, [J("select", {
|
|
8245
|
+
id: I(a),
|
|
8246
|
+
class: "page-size-select",
|
|
8247
|
+
value: c.value,
|
|
8248
|
+
onChange: g
|
|
8249
|
+
}, [(G(!0), K(W, null, V(l.value, (e) => (G(), K("option", {
|
|
8250
|
+
key: e,
|
|
8251
|
+
value: e
|
|
8252
|
+
}, M(e), 9, Fp))), 128))], 40, Pp), t[10] ||= J("span", {
|
|
8253
|
+
class: "page-size-select-caret",
|
|
8254
|
+
"aria-hidden": "true"
|
|
8255
|
+
}, [J("svg", {
|
|
8256
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8257
|
+
viewBox: "0 0 640 640",
|
|
8258
|
+
width: "1em",
|
|
8259
|
+
height: "1em"
|
|
8260
|
+
}, [J("path", {
|
|
8261
|
+
fill: "currentColor",
|
|
8262
|
+
d: "M300.3 439.8C312.8 450.1 331.3 449.3 343.1 437.6L471.1 309.6C480.3 300.4 483 286.7 478 274.7C473 262.7 461.4 255 448.5 255L192.5 255C179.6 255 167.9 262.8 162.9 274.8C157.9 286.8 160.7 300.5 169.9 309.6L297.9 437.6L300.3 439.8z"
|
|
8263
|
+
})])], -1)]), J("label", {
|
|
8264
|
+
class: "page-size-label",
|
|
8265
|
+
for: I(a)
|
|
8266
|
+
}, " per page ", 8, Ip)]),
|
|
8267
|
+
J("div", Lp, [Y(xf, null, {
|
|
8268
|
+
trigger: L(({ toggle: e }) => [J("button", {
|
|
8269
|
+
type: "button",
|
|
8270
|
+
class: "g-pagination-button g-pagination-overflow-trigger",
|
|
8271
|
+
"aria-label": "More pagination options",
|
|
8272
|
+
onClick: e
|
|
8273
|
+
}, [...t[11] ||= [J("svg", {
|
|
8274
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8275
|
+
viewBox: "0 0 640 640",
|
|
8276
|
+
width: "2em",
|
|
8277
|
+
height: "2em",
|
|
8278
|
+
"aria-hidden": "true"
|
|
8279
|
+
}, [J("path", {
|
|
8280
|
+
fill: "currentColor",
|
|
8281
|
+
d: "M96 320C96 284.7 124.7 256 160 256C195.3 256 224 284.7 224 320C224 355.3 195.3 384 160 384C124.7 384 96 355.3 96 320zM256 320C256 284.7 284.7 256 320 256C355.3 256 384 284.7 384 320C384 355.3 355.3 384 320 384C284.7 384 256 355.3 256 320zM480 256C515.3 256 544 284.7 544 320C544 355.3 515.3 384 480 384C444.7 384 416 355.3 416 320C416 284.7 444.7 256 480 256z"
|
|
8282
|
+
})], -1)]], 8, Rp)]),
|
|
8283
|
+
default: L(() => [J("div", zp, [
|
|
8284
|
+
t[15] ||= J("h2", {
|
|
8285
|
+
class: "g-pagination-overflow-title",
|
|
8286
|
+
tabindex: "-1",
|
|
8287
|
+
"popover-focus": ""
|
|
8288
|
+
}, " Pagination options ", -1),
|
|
8289
|
+
J("div", Bp, [J("label", {
|
|
8290
|
+
class: "page-size-label",
|
|
8291
|
+
for: I(o)
|
|
8292
|
+
}, " Rows per page ", 8, Vp), J("div", Hp, [J("select", {
|
|
8293
|
+
id: I(o),
|
|
8294
|
+
class: "page-size-select",
|
|
8295
|
+
value: c.value,
|
|
8296
|
+
onChange: g
|
|
8297
|
+
}, [(G(!0), K(W, null, V(l.value, (e) => (G(), K("option", {
|
|
8298
|
+
key: `overflow-${e}`,
|
|
8299
|
+
value: e
|
|
8300
|
+
}, M(e), 9, Wp))), 128))], 40, Up), t[12] ||= J("span", {
|
|
8301
|
+
class: "page-size-select-caret",
|
|
8302
|
+
"aria-hidden": "true"
|
|
8303
|
+
}, [J("svg", {
|
|
8304
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8305
|
+
viewBox: "0 0 640 640",
|
|
8306
|
+
width: "1em",
|
|
8307
|
+
height: "1em"
|
|
8308
|
+
}, [J("path", {
|
|
8309
|
+
fill: "currentColor",
|
|
8310
|
+
d: "M300.3 439.8C312.8 450.1 331.3 449.3 343.1 437.6L471.1 309.6C480.3 300.4 483 286.7 478 274.7C473 262.7 461.4 255 448.5 255L192.5 255C179.6 255 167.9 262.8 162.9 274.8C157.9 286.8 160.7 300.5 169.9 309.6L297.9 437.6L300.3 439.8z"
|
|
8311
|
+
})])], -1)])]),
|
|
8312
|
+
J("div", Gp, [J("button", {
|
|
8313
|
+
type: "button",
|
|
8314
|
+
class: "g-pagination-overflow-action",
|
|
8315
|
+
disabled: u.value,
|
|
8316
|
+
onClick: t[4] ||= (e) => h(1)
|
|
8317
|
+
}, [...t[13] ||= [J("span", {
|
|
8318
|
+
class: "g-pagination-overflow-action-icon",
|
|
8319
|
+
"aria-hidden": "true"
|
|
8320
|
+
}, [J("svg", {
|
|
8321
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8322
|
+
width: "1em",
|
|
8323
|
+
height: "1em",
|
|
8324
|
+
viewBox: "0 0 24 24",
|
|
8325
|
+
fill: "none",
|
|
8326
|
+
stroke: "currentColor",
|
|
8327
|
+
"stroke-width": "2",
|
|
8328
|
+
"stroke-linecap": "round",
|
|
8329
|
+
"stroke-linejoin": "round"
|
|
8330
|
+
}, [
|
|
8331
|
+
J("path", {
|
|
8332
|
+
stroke: "none",
|
|
8333
|
+
d: "M0 0h24v24H0z",
|
|
8334
|
+
fill: "none"
|
|
8335
|
+
}),
|
|
8336
|
+
J("path", { d: "M11 7l-5 5l5 5" }),
|
|
8337
|
+
J("path", { d: "M17 7l-5 5l5 5" })
|
|
8338
|
+
])], -1), X(" First Page ", -1)]], 8, Kp), J("button", {
|
|
8339
|
+
type: "button",
|
|
8340
|
+
class: "g-pagination-overflow-action",
|
|
8341
|
+
disabled: d.value,
|
|
8342
|
+
onClick: t[5] ||= (e) => h(n.value)
|
|
8343
|
+
}, [...t[14] ||= [J("span", {
|
|
8344
|
+
class: "g-pagination-overflow-action-icon",
|
|
8345
|
+
"aria-hidden": "true"
|
|
8346
|
+
}, [J("svg", {
|
|
8347
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8348
|
+
width: "1em",
|
|
8349
|
+
height: "1em",
|
|
8350
|
+
viewBox: "0 0 24 24",
|
|
8351
|
+
fill: "none",
|
|
8352
|
+
stroke: "currentColor",
|
|
8353
|
+
"stroke-width": "2",
|
|
8354
|
+
"stroke-linecap": "round",
|
|
8355
|
+
"stroke-linejoin": "round"
|
|
8356
|
+
}, [
|
|
8357
|
+
J("path", {
|
|
8358
|
+
stroke: "none",
|
|
8359
|
+
d: "M0 0h24v24H0z",
|
|
8360
|
+
fill: "none"
|
|
8361
|
+
}),
|
|
8362
|
+
J("path", { d: "M7 7l5 5l-5 5" }),
|
|
8363
|
+
J("path", { d: "M13 7l5 5l-5 5" })
|
|
8364
|
+
])], -1), X(" Last Page ", -1)]], 8, qp)])
|
|
8365
|
+
])]),
|
|
8366
|
+
_: 1
|
|
8367
|
+
})])
|
|
8368
|
+
]));
|
|
8369
|
+
}
|
|
8116
8370
|
}), [["styles", [""]]]);
|
|
8117
8371
|
//#endregion
|
|
8118
8372
|
//#region src/compose/useFiltering.ts
|
|
8119
|
-
function
|
|
8373
|
+
function Yp(e) {
|
|
8120
8374
|
if (!(Array.isArray(e) && e.length === 0) && e !== null && e !== !1 && e !== "") return e;
|
|
8121
8375
|
}
|
|
8122
|
-
function
|
|
8376
|
+
function Xp(e) {
|
|
8123
8377
|
let t = {};
|
|
8124
8378
|
return Object.keys(e).forEach((n) => {
|
|
8125
8379
|
let r = e[n];
|
|
8126
8380
|
r != null && r !== "" && r !== !1 && (Array.isArray(r) ? r.length > 0 && (t[n] = r.map((e) => String(e))) : t[n] = String(r));
|
|
8127
8381
|
}), t;
|
|
8128
8382
|
}
|
|
8129
|
-
function
|
|
8383
|
+
function Zp(e, t = {}) {
|
|
8130
8384
|
let n = /* @__PURE__ */ zt(Object.fromEntries(Object.entries(e).map(([e, t]) => [e, t]))), r = t.syncWith;
|
|
8131
8385
|
if (r) {
|
|
8132
8386
|
if (r.value) {
|
|
@@ -8139,13 +8393,13 @@ function Op(e, t = {}) {
|
|
|
8139
8393
|
});
|
|
8140
8394
|
}
|
|
8141
8395
|
R(n, (e) => {
|
|
8142
|
-
r.value =
|
|
8396
|
+
r.value = Xp(e);
|
|
8143
8397
|
}, { deep: !0 });
|
|
8144
8398
|
}
|
|
8145
8399
|
return {
|
|
8146
8400
|
filters: n,
|
|
8147
8401
|
isFiltered: Q(() => {
|
|
8148
|
-
for (let t of Object.keys(e)) if (
|
|
8402
|
+
for (let t of Object.keys(e)) if (Yp(n[t])) return !0;
|
|
8149
8403
|
return !1;
|
|
8150
8404
|
}),
|
|
8151
8405
|
clearFilters: () => {
|
|
@@ -8155,96 +8409,99 @@ function Op(e, t = {}) {
|
|
|
8155
8409
|
},
|
|
8156
8410
|
filteredColumns: Q(() => {
|
|
8157
8411
|
let t = {};
|
|
8158
|
-
for (let r of Object.keys(e)) t[r] = !!
|
|
8412
|
+
for (let r of Object.keys(e)) t[r] = !!Yp(n[r]);
|
|
8159
8413
|
return t;
|
|
8160
8414
|
})
|
|
8161
8415
|
};
|
|
8162
8416
|
}
|
|
8163
8417
|
//#endregion
|
|
8164
8418
|
//#region src/components/GTable.vue?vue&type=script&setup=true&lang.ts
|
|
8165
|
-
var
|
|
8419
|
+
var Qp = { class: "g-table-outer-wrap" }, $p = {
|
|
8166
8420
|
key: 0,
|
|
8167
8421
|
class: "g-table-controls"
|
|
8168
|
-
},
|
|
8422
|
+
}, em = { class: "g-table-control-actions" }, tm = {
|
|
8169
8423
|
key: 0,
|
|
8170
8424
|
class: "g-sort-builder-wrap"
|
|
8171
|
-
},
|
|
8425
|
+
}, nm = {
|
|
8172
8426
|
key: 0,
|
|
8173
8427
|
class: "g-sort-builder-count"
|
|
8174
|
-
},
|
|
8428
|
+
}, rm = {
|
|
8175
8429
|
key: 0,
|
|
8176
8430
|
class: "g-sort-builder-list"
|
|
8177
|
-
},
|
|
8431
|
+
}, im = ["data-sort-row-key", "aria-label"], am = {
|
|
8178
8432
|
class: "g-sort-builder-rule-priority",
|
|
8179
8433
|
"aria-hidden": "true"
|
|
8180
|
-
},
|
|
8434
|
+
}, om = { class: "g-sort-builder-rule-label" }, sm = ["aria-label", "onClick"], cm = { class: "g-visually-hidden" }, lm = {
|
|
8181
8435
|
class: "sort-indicator",
|
|
8182
8436
|
"aria-hidden": "true"
|
|
8183
|
-
},
|
|
8437
|
+
}, um = ["aria-label", "onClick"], dm = {
|
|
8184
8438
|
key: 1,
|
|
8185
8439
|
class: "g-sort-builder-empty"
|
|
8186
|
-
},
|
|
8440
|
+
}, fm = {
|
|
8187
8441
|
key: 2,
|
|
8188
8442
|
class: "g-sort-builder-add"
|
|
8189
|
-
},
|
|
8443
|
+
}, pm = { class: "g-sort-builder-add-list" }, mm = { class: "g-sort-builder-add-name" }, hm = { class: "g-sort-builder-add-actions" }, gm = ["aria-label", "onClick"], _m = ["aria-label", "onClick"], vm = {
|
|
8190
8444
|
class: "sort-indicator",
|
|
8191
8445
|
"aria-hidden": "true"
|
|
8192
|
-
},
|
|
8446
|
+
}, ym = {
|
|
8193
8447
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8194
8448
|
viewBox: "0 0 640 640",
|
|
8195
8449
|
height: "1.25em",
|
|
8196
8450
|
style: { transform: "rotate(180deg)" }
|
|
8197
|
-
},
|
|
8451
|
+
}, bm = {
|
|
8198
8452
|
key: 1,
|
|
8199
8453
|
class: "g-column-visibility-wrap"
|
|
8200
|
-
},
|
|
8454
|
+
}, xm = {
|
|
8201
8455
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8202
8456
|
viewBox: "0 0 640 640",
|
|
8203
8457
|
height: "1.5em",
|
|
8204
8458
|
style: { transform: "rotate(90deg)" },
|
|
8205
8459
|
"aria-hidden": "true"
|
|
8206
|
-
},
|
|
8460
|
+
}, Sm = ["aria-labelledby"], Cm = { class: "g-column-visibility-header" }, wm = ["id"], Tm = { class: "g-column-visibility-legend-action" }, Em = { class: "g-column-visibility-list" }, Dm = ["checked", "onChange"], Om = {
|
|
8461
|
+
key: 2,
|
|
8462
|
+
class: "g-table-custom-controls"
|
|
8463
|
+
}, km = { class: "g-clear-filters-wrap" }, Am = {
|
|
8207
8464
|
key: 0,
|
|
8208
8465
|
class: "pagination"
|
|
8209
|
-
},
|
|
8466
|
+
}, jm = { class: "g-result-count" }, Mm = { class: "g-table-table-wrap" }, Nm = ["aria-label", "aria-rowcount"], Pm = { class: "g-table-head" }, Fm = { "aria-rowindex": "1" }, Im = {
|
|
8210
8467
|
key: 0,
|
|
8211
8468
|
scope: "col",
|
|
8212
8469
|
class: "g-th g-th-checkbox"
|
|
8213
|
-
},
|
|
8470
|
+
}, Lm = [
|
|
8214
8471
|
"checked",
|
|
8215
8472
|
"indeterminate",
|
|
8216
8473
|
"aria-label"
|
|
8217
|
-
],
|
|
8474
|
+
], Rm = ["id", "aria-sort"], zm = { class: "th-inner" }, Bm = ["onClick"], Vm = {
|
|
8218
8475
|
key: 0,
|
|
8219
8476
|
class: "sort-indicator",
|
|
8220
8477
|
"aria-hidden": "true"
|
|
8221
|
-
},
|
|
8478
|
+
}, Hm = {
|
|
8222
8479
|
key: 1,
|
|
8223
8480
|
class: "g-visually-hidden"
|
|
8224
|
-
},
|
|
8481
|
+
}, Um = {
|
|
8225
8482
|
key: 1,
|
|
8226
8483
|
class: "g-column-head"
|
|
8227
|
-
},
|
|
8484
|
+
}, Wm = ["onClick", "aria-label"], Gm = {
|
|
8228
8485
|
key: 1,
|
|
8229
8486
|
class: "g-filter-search",
|
|
8230
8487
|
role: "search"
|
|
8231
|
-
},
|
|
8488
|
+
}, Km = [
|
|
8232
8489
|
"onUpdate:modelValue",
|
|
8233
8490
|
"placeholder",
|
|
8234
8491
|
"aria-label"
|
|
8235
|
-
],
|
|
8492
|
+
], qm = { key: 2 }, Jm = { class: "g-filter-toggle" }, Ym = [
|
|
8236
8493
|
"onUpdate:modelValue",
|
|
8237
8494
|
"id",
|
|
8238
8495
|
"aria-describedby"
|
|
8239
|
-
],
|
|
8496
|
+
], Xm = ["for"], Zm = ["id"], Qm = {
|
|
8240
8497
|
key: 4,
|
|
8241
8498
|
class: "g-multi-select"
|
|
8242
|
-
},
|
|
8499
|
+
}, $m = {
|
|
8243
8500
|
key: 1,
|
|
8244
8501
|
class: "g-bulk-actions-toolbar"
|
|
8245
|
-
},
|
|
8502
|
+
}, eh = { class: "g-selected-count" }, th = { class: "g-bulk-actions" }, nh = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
8246
8503
|
__name: "GTable",
|
|
8247
|
-
props: /*@__PURE__*/
|
|
8504
|
+
props: /*@__PURE__*/ U({
|
|
8248
8505
|
label: { type: String },
|
|
8249
8506
|
data: { type: Array },
|
|
8250
8507
|
columns: { type: Array },
|
|
@@ -8255,6 +8512,16 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
8255
8512
|
rowClickable: { type: Boolean },
|
|
8256
8513
|
rowClass: { type: Function },
|
|
8257
8514
|
startIndex: { type: Number },
|
|
8515
|
+
pageSize: { type: Number },
|
|
8516
|
+
pageSizes: {
|
|
8517
|
+
default: () => [
|
|
8518
|
+
10,
|
|
8519
|
+
25,
|
|
8520
|
+
50,
|
|
8521
|
+
100
|
|
8522
|
+
],
|
|
8523
|
+
type: Array
|
|
8524
|
+
},
|
|
8258
8525
|
bulkSelectionEnabled: {
|
|
8259
8526
|
type: Boolean,
|
|
8260
8527
|
default: !1
|
|
@@ -8264,7 +8531,7 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
8264
8531
|
type: Array
|
|
8265
8532
|
},
|
|
8266
8533
|
changeTracker: { type: Object },
|
|
8267
|
-
|
|
8534
|
+
pagination: {
|
|
8268
8535
|
type: Boolean,
|
|
8269
8536
|
default: !1
|
|
8270
8537
|
}
|
|
@@ -8278,10 +8545,12 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
8278
8545
|
selectedRows: { default: () => [] },
|
|
8279
8546
|
selectedRowsModifiers: {}
|
|
8280
8547
|
}),
|
|
8281
|
-
emits: /*@__PURE__*/
|
|
8548
|
+
emits: /*@__PURE__*/ U([
|
|
8282
8549
|
"row-click",
|
|
8283
8550
|
"bulk-action",
|
|
8284
|
-
"cell-change"
|
|
8551
|
+
"cell-change",
|
|
8552
|
+
"update:startIndex",
|
|
8553
|
+
"update:pageSize"
|
|
8285
8554
|
], [
|
|
8286
8555
|
"update:sorts",
|
|
8287
8556
|
"update:filter",
|
|
@@ -8289,8 +8558,8 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
8289
8558
|
"update:selectedRows"
|
|
8290
8559
|
]),
|
|
8291
8560
|
setup(e, { emit: t }) {
|
|
8292
|
-
let n =
|
|
8293
|
-
c ||=
|
|
8561
|
+
let n = Mi(e, "sorts"), r = Mi(e, "filter"), i = Mi(e, "columnVisibility"), a = Mi(e, "selectedRows"), o = e, s = t, c = o.filtering;
|
|
8562
|
+
c ||= Zp({});
|
|
8294
8563
|
let { filters: l, filteredColumns: u, isFiltered: d, clearFilters: f } = c, p = Q(() => o.data.map((e) => e.key)), m = Q(() => a.value.filter((e) => p.value.includes(e))), h = Q(() => !o.bulkSelectionEnabled || o.data.length === 0 ? !1 : m.value.length === p.value.length), g = Q(() => !o.bulkSelectionEnabled || o.data.length === 0 ? !1 : m.value.length > 0 && m.value.length < p.value.length), _ = /* @__PURE__ */ F(null);
|
|
8295
8564
|
function v() {
|
|
8296
8565
|
if (h.value) a.value = a.value.filter((e) => !p.value.includes(e));
|
|
@@ -8326,108 +8595,120 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
8326
8595
|
};
|
|
8327
8596
|
s("cell-change", i);
|
|
8328
8597
|
}
|
|
8329
|
-
|
|
8330
|
-
|
|
8598
|
+
function C(e) {
|
|
8599
|
+
s("update:startIndex", e ?? 0);
|
|
8600
|
+
}
|
|
8601
|
+
function w(e) {
|
|
8602
|
+
e !== void 0 && s("update:pageSize", e);
|
|
8603
|
+
}
|
|
8604
|
+
let T = B(), E = qa(), ee = /* @__PURE__ */ F(null);
|
|
8605
|
+
function D(e) {
|
|
8331
8606
|
let t = /* @__PURE__ */ new Set();
|
|
8332
8607
|
return e.filter((e) => !e?.key || t.has(String(e.key)) ? !1 : (t.add(String(e.key)), e.order === 1 || e.order === -1));
|
|
8333
8608
|
}
|
|
8334
|
-
function
|
|
8609
|
+
function te(e, t) {
|
|
8335
8610
|
return {
|
|
8336
8611
|
key: e,
|
|
8337
8612
|
order: t
|
|
8338
8613
|
};
|
|
8339
8614
|
}
|
|
8340
|
-
let O = Q(() =>
|
|
8341
|
-
function
|
|
8342
|
-
n.value =
|
|
8615
|
+
let O = Q(() => D(n.value));
|
|
8616
|
+
function ne(e) {
|
|
8617
|
+
n.value = D(e);
|
|
8343
8618
|
}
|
|
8344
|
-
let
|
|
8619
|
+
let re = Q(() => o.columns.filter((e) => e.sortable)), k = Q(() => re.value.length > 1), ie = Q(() => {
|
|
8345
8620
|
let e = new Set(O.value.map((e) => String(e.key)));
|
|
8346
|
-
return
|
|
8621
|
+
return re.value.filter((t) => !e.has(String(t.key)));
|
|
8347
8622
|
});
|
|
8348
|
-
function
|
|
8623
|
+
function A(e) {
|
|
8349
8624
|
return O.value.findIndex((t) => t.key === e);
|
|
8350
8625
|
}
|
|
8351
|
-
function
|
|
8626
|
+
function ae(e) {
|
|
8352
8627
|
return O.value.find((t) => t.key === e);
|
|
8353
8628
|
}
|
|
8354
|
-
function
|
|
8629
|
+
function oe(e) {
|
|
8355
8630
|
return o.columns.find((t) => t.key === e)?.label || String(e);
|
|
8356
8631
|
}
|
|
8357
|
-
function
|
|
8358
|
-
let t =
|
|
8632
|
+
function se(e) {
|
|
8633
|
+
let t = A(e);
|
|
8359
8634
|
return t === -1 ? "none" : t > 0 ? "other" : O.value[0]?.order === 1 ? "ascending" : "descending";
|
|
8360
8635
|
}
|
|
8361
|
-
function
|
|
8362
|
-
let t =
|
|
8636
|
+
function ce(e) {
|
|
8637
|
+
let t = A(e);
|
|
8363
8638
|
if (t === -1) return "";
|
|
8364
8639
|
let n = O.value[t].order === 1 ? "ascending" : "descending";
|
|
8365
8640
|
return O.value.length > 1 ? `Sorted ${n}, priority ${t + 1}` : `Sorted ${n}`;
|
|
8366
8641
|
}
|
|
8367
|
-
function
|
|
8642
|
+
function ue(e) {
|
|
8368
8643
|
return e === 1 ? "Ascending" : "Descending";
|
|
8369
8644
|
}
|
|
8370
|
-
function
|
|
8645
|
+
function de(e) {
|
|
8371
8646
|
let t = O.value[0]?.key === e ? O.value[0] : void 0;
|
|
8372
|
-
return t ? t.order === 1 ? [
|
|
8647
|
+
return t ? t.order === 1 ? [te(e, -1)] : [] : [te(e, 1)];
|
|
8373
8648
|
}
|
|
8374
|
-
function
|
|
8649
|
+
function fe(e) {
|
|
8375
8650
|
let t = [...O.value], n = t.findIndex((t) => t.key === e);
|
|
8376
|
-
return n === -1 ? (t.push(
|
|
8651
|
+
return n === -1 ? (t.push(te(e, 1)), t) : t[n].order === 1 ? (t[n] = te(e, -1), t) : (t.splice(n, 1), t);
|
|
8377
8652
|
}
|
|
8378
|
-
function
|
|
8653
|
+
function pe(e, t = !1) {
|
|
8379
8654
|
if (!e.sortable) return;
|
|
8380
8655
|
let n = e.key;
|
|
8381
|
-
|
|
8656
|
+
ne(t ? fe(n) : de(n));
|
|
8382
8657
|
}
|
|
8383
|
-
function
|
|
8384
|
-
|
|
8385
|
-
let t =
|
|
8658
|
+
function me(e, t) {
|
|
8659
|
+
ne([...O.value, te(e, t)]), An(() => {
|
|
8660
|
+
let t = ee.value;
|
|
8386
8661
|
t && (t.querySelector(`[data-sort-row-key="${String(e)}"]`) ?? t)?.focus();
|
|
8387
8662
|
}).catch((e) => {
|
|
8388
8663
|
console.error(e);
|
|
8389
8664
|
});
|
|
8390
8665
|
}
|
|
8391
|
-
function me(e) {
|
|
8392
|
-
k(O.value.map((t) => t.key === e ? D(t.key, t.order === 1 ? -1 : 1) : t));
|
|
8393
|
-
}
|
|
8394
8666
|
function he(e) {
|
|
8395
|
-
|
|
8667
|
+
ne(O.value.map((t) => t.key === e ? te(t.key, t.order === 1 ? -1 : 1) : t));
|
|
8396
8668
|
}
|
|
8397
|
-
function ge() {
|
|
8398
|
-
|
|
8669
|
+
function ge(e) {
|
|
8670
|
+
ne(O.value.filter((t) => t.key !== e));
|
|
8399
8671
|
}
|
|
8400
|
-
|
|
8401
|
-
|
|
8672
|
+
function _e() {
|
|
8673
|
+
ne([]);
|
|
8674
|
+
}
|
|
8675
|
+
let ve = Q(() => {
|
|
8676
|
+
let e = E?.vnode.props ?? {};
|
|
8402
8677
|
return "columnVisibility" in e || "column-visibility" in e || "onUpdate:columnVisibility" in e;
|
|
8403
|
-
}),
|
|
8678
|
+
}), ye = Q(() => {
|
|
8404
8679
|
let e = i.value;
|
|
8405
8680
|
return o.columns.filter((t) => e[t.key] !== !1);
|
|
8406
|
-
}),
|
|
8407
|
-
function
|
|
8681
|
+
}), be = li(), xe = Q(() => ye.value.length !== o.columns.length), Se = Q(() => ve.value && o.columns.length > 0), Ce = Q(() => !!be.controls), we = Q(() => o.resultCount ?? o.data.length);
|
|
8682
|
+
function Te(e) {
|
|
8408
8683
|
return i.value[e.key] !== !1;
|
|
8409
8684
|
}
|
|
8410
|
-
function
|
|
8685
|
+
function Ee(e, t) {
|
|
8411
8686
|
i.value = {
|
|
8412
8687
|
...i.value,
|
|
8413
8688
|
[e.key]: t
|
|
8414
8689
|
};
|
|
8415
8690
|
}
|
|
8416
|
-
|
|
8417
|
-
|
|
8691
|
+
function De() {
|
|
8692
|
+
i.value = o.columns.reduce((e, t) => ({
|
|
8693
|
+
...e,
|
|
8694
|
+
[t.key]: !0
|
|
8695
|
+
}), { ...i.value });
|
|
8696
|
+
}
|
|
8697
|
+
let N = Q(() => o.pagination && typeof o.pageSize == "number"), Oe = Q(() => !!(k.value || d.value || N.value || Se.value || Ce.value));
|
|
8698
|
+
function ke(e) {
|
|
8418
8699
|
return e.filter?.type === "multi-select" ? e.filter.options.map((e) => ({
|
|
8419
8700
|
label: e.label,
|
|
8420
8701
|
value: e.value,
|
|
8421
8702
|
hint: e.description
|
|
8422
8703
|
})) : [];
|
|
8423
8704
|
}
|
|
8424
|
-
return
|
|
8705
|
+
return Wr(() => {
|
|
8425
8706
|
o.rowClickable && o.bulkSelectionEnabled && console.warn("GTable: rowClickable and bulkSelectionEnabled cannot be used together. rowClickable will be ignored.");
|
|
8426
8707
|
for (let e of o.columns) e.editable && e.display && console.warn(`GTable: Column "${String(e.key)}" has both 'editable' and 'display' configured. 'display' will be ignored.`);
|
|
8427
|
-
}), (t, n) => (G(), K("div",
|
|
8428
|
-
|
|
8429
|
-
J("div",
|
|
8430
|
-
|
|
8708
|
+
}), (t, n) => (G(), K("div", Qp, [
|
|
8709
|
+
Oe.value ? (G(), K("div", $p, [
|
|
8710
|
+
J("div", em, [
|
|
8711
|
+
k.value ? (G(), K("div", tm, [Y(xf, null, {
|
|
8431
8712
|
trigger: L(({ toggle: e }) => [Y(gl, {
|
|
8432
8713
|
size: "small",
|
|
8433
8714
|
class: j(["g-sort-builder-trigger", { "g-sort-builder-trigger--active": O.value.length > 0 }]),
|
|
@@ -8443,33 +8724,33 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
8443
8724
|
}, [J("path", {
|
|
8444
8725
|
fill: "currentColor",
|
|
8445
8726
|
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"
|
|
8446
|
-
})], -1), O.value.length ? (G(), K("span",
|
|
8727
|
+
})], -1), O.value.length ? (G(), K("span", nm, M(O.value.length), 1)) : Z("", !0)]),
|
|
8447
8728
|
_: 1
|
|
8448
8729
|
}, 8, ["class", "onClick"])]),
|
|
8449
8730
|
default: L(() => [J("fieldset", {
|
|
8450
8731
|
ref_key: "sortBuilderRef",
|
|
8451
|
-
ref:
|
|
8732
|
+
ref: ee,
|
|
8452
8733
|
class: "g-sort-builder-popover",
|
|
8453
8734
|
tabindex: "-1",
|
|
8454
8735
|
"popover-focus": ""
|
|
8455
8736
|
}, [
|
|
8456
8737
|
n[7] ||= J("legend", { class: "g-sort-builder-legend" }, " Sort order ", -1),
|
|
8457
8738
|
n[8] ||= J("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),
|
|
8458
|
-
O.value.length ? (G(), K("ol",
|
|
8739
|
+
O.value.length ? (G(), K("ol", rm, [(G(!0), K(W, null, V(O.value, (e, t) => (G(), K("li", {
|
|
8459
8740
|
key: e.key,
|
|
8460
8741
|
class: "g-sort-builder-rule",
|
|
8461
8742
|
tabindex: "-1",
|
|
8462
8743
|
"data-sort-row-key": String(e.key),
|
|
8463
|
-
"aria-label": `${
|
|
8744
|
+
"aria-label": `${oe(e.key)} ${ue(e.order)} sort, priority ${t + 1}`
|
|
8464
8745
|
}, [
|
|
8465
|
-
J("span",
|
|
8466
|
-
J("span",
|
|
8746
|
+
J("span", am, M(t + 1), 1),
|
|
8747
|
+
J("span", om, M(oe(e.key)), 1),
|
|
8467
8748
|
J("button", {
|
|
8468
8749
|
type: "button",
|
|
8469
8750
|
class: "g-sort-builder-direction",
|
|
8470
|
-
"aria-label": `Toggle ${
|
|
8471
|
-
onClick: (t) =>
|
|
8472
|
-
}, [J("span",
|
|
8751
|
+
"aria-label": `Toggle ${oe(e.key)} sort direction`,
|
|
8752
|
+
onClick: (t) => he(e.key)
|
|
8753
|
+
}, [J("span", cm, M(ue(e.order)), 1), J("span", lm, [(G(), K("svg", {
|
|
8473
8754
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8474
8755
|
viewBox: "0 0 640 640",
|
|
8475
8756
|
height: "1.25em",
|
|
@@ -8477,22 +8758,22 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
8477
8758
|
}, [...n[1] ||= [J("path", {
|
|
8478
8759
|
fill: "currentColor",
|
|
8479
8760
|
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"
|
|
8480
|
-
}, null, -1)]], 4))])], 8,
|
|
8761
|
+
}, null, -1)]], 4))])], 8, sm),
|
|
8481
8762
|
J("button", {
|
|
8482
8763
|
type: "button",
|
|
8483
8764
|
class: "g-sort-builder-remove",
|
|
8484
|
-
"aria-label": `Remove ${
|
|
8485
|
-
onClick: (t) =>
|
|
8486
|
-
}, " Remove ", 8,
|
|
8487
|
-
], 8,
|
|
8488
|
-
|
|
8765
|
+
"aria-label": `Remove ${oe(e.key)} sort`,
|
|
8766
|
+
onClick: (t) => ge(e.key)
|
|
8767
|
+
}, " Remove ", 8, um)
|
|
8768
|
+
], 8, im))), 128))])) : (G(), K("p", dm, " No active sort rules. ")),
|
|
8769
|
+
ie.value.length ? (G(), K("div", fm, [n[5] ||= J("p", { class: "g-sort-builder-add-label" }, " Add sort column ", -1), J("ul", pm, [(G(!0), K(W, null, V(ie.value, (e) => (G(), K("li", {
|
|
8489
8770
|
key: e.key,
|
|
8490
8771
|
class: "g-sort-builder-add-item"
|
|
8491
|
-
}, [J("span",
|
|
8772
|
+
}, [J("span", mm, M(e.label), 1), J("div", hm, [J("button", {
|
|
8492
8773
|
type: "button",
|
|
8493
8774
|
class: "g-sort-builder-direction",
|
|
8494
8775
|
"aria-label": `Add ${e.label} ascending sort`,
|
|
8495
|
-
onClick: (t) =>
|
|
8776
|
+
onClick: (t) => me(e.key, 1)
|
|
8496
8777
|
}, [...n[2] ||= [J("span", { class: "g-visually-hidden" }, " Add ascending sort ", -1), J("span", {
|
|
8497
8778
|
class: "sort-indicator",
|
|
8498
8779
|
"aria-hidden": "true"
|
|
@@ -8503,21 +8784,21 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
8503
8784
|
}, [J("path", {
|
|
8504
8785
|
fill: "currentColor",
|
|
8505
8786
|
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"
|
|
8506
|
-
})])], -1)]], 8,
|
|
8787
|
+
})])], -1)]], 8, gm), J("button", {
|
|
8507
8788
|
type: "button",
|
|
8508
8789
|
class: "g-sort-builder-direction",
|
|
8509
8790
|
"aria-label": `Add ${e.label} descending sort`,
|
|
8510
|
-
onClick: (t) =>
|
|
8511
|
-
}, [n[4] ||= J("span", { class: "g-visually-hidden" }, " Add descending sort ", -1), J("span",
|
|
8791
|
+
onClick: (t) => me(e.key, -1)
|
|
8792
|
+
}, [n[4] ||= J("span", { class: "g-visually-hidden" }, " Add descending sort ", -1), J("span", vm, [(G(), K("svg", ym, [...n[3] ||= [J("path", {
|
|
8512
8793
|
fill: "currentColor",
|
|
8513
8794
|
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"
|
|
8514
|
-
}, null, -1)]]))])], 8,
|
|
8795
|
+
}, null, -1)]]))])], 8, _m)])]))), 128))])])) : Z("", !0),
|
|
8515
8796
|
O.value.length ? (G(), q(gl, {
|
|
8516
8797
|
key: 3,
|
|
8517
8798
|
outlined: "",
|
|
8518
8799
|
size: "small",
|
|
8519
8800
|
class: "g-sort-builder-clear",
|
|
8520
|
-
onClick:
|
|
8801
|
+
onClick: _e
|
|
8521
8802
|
}, {
|
|
8522
8803
|
default: L(() => [...n[6] ||= [X(" Clear sort ", -1)]]),
|
|
8523
8804
|
_: 1
|
|
@@ -8525,91 +8806,119 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
8525
8806
|
], 512)]),
|
|
8526
8807
|
_: 1
|
|
8527
8808
|
})])) : Z("", !0),
|
|
8528
|
-
|
|
8809
|
+
Se.value ? (G(), K("div", bm, [Y(xf, null, {
|
|
8529
8810
|
trigger: L(({ toggle: e }) => [Y(gl, {
|
|
8530
8811
|
size: "small",
|
|
8531
|
-
class: j(["g-column-visibility-trigger", { "g-column-visibility-trigger--active":
|
|
8812
|
+
class: j(["g-column-visibility-trigger", { "g-column-visibility-trigger--active": xe.value }]),
|
|
8532
8813
|
"aria-label": "Choose visible columns",
|
|
8533
8814
|
onClick: e
|
|
8534
8815
|
}, {
|
|
8535
|
-
default: L(() => [(G(), K("svg",
|
|
8816
|
+
default: L(() => [(G(), K("svg", xm, [...n[9] ||= [J("path", {
|
|
8536
8817
|
fill: "currentColor",
|
|
8537
8818
|
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"
|
|
8538
8819
|
}, null, -1)]]))]),
|
|
8539
8820
|
_: 1
|
|
8540
8821
|
}, 8, ["class", "onClick"])]),
|
|
8541
|
-
default: L(() => [J("fieldset",
|
|
8822
|
+
default: L(() => [J("fieldset", {
|
|
8823
|
+
class: "g-column-visibility-popover",
|
|
8824
|
+
"aria-labelledby": `${I(T)}-column-visibility-heading`
|
|
8825
|
+
}, [J("div", Cm, [J("span", {
|
|
8826
|
+
id: `${I(T)}-column-visibility-heading`,
|
|
8827
|
+
class: "g-column-visibility-heading"
|
|
8828
|
+
}, " Shown columns ", 8, wm), J("span", Tm, [Y(gl, {
|
|
8829
|
+
text: "",
|
|
8830
|
+
size: "small",
|
|
8831
|
+
class: j(["g-column-visibility-show-all", { "g-column-visibility-show-all--hidden": !xe.value }]),
|
|
8832
|
+
onClick: De
|
|
8833
|
+
}, {
|
|
8834
|
+
default: L(() => [...n[10] ||= [X(" Show All ", -1)]]),
|
|
8835
|
+
_: 1
|
|
8836
|
+
}, 8, ["class"])])]), J("div", Em, [(G(!0), K(W, null, V(e.columns, (e) => (G(), K("label", {
|
|
8542
8837
|
key: e.key,
|
|
8543
8838
|
class: "g-column-visibility-option"
|
|
8544
8839
|
}, [J("input", {
|
|
8545
|
-
checked:
|
|
8840
|
+
checked: Te(e),
|
|
8546
8841
|
type: "checkbox",
|
|
8547
|
-
onChange: (t) =>
|
|
8548
|
-
}, null, 40,
|
|
8842
|
+
onChange: (t) => Ee(e, t.target.checked)
|
|
8843
|
+
}, null, 40, Dm), J("span", null, M(e.label), 1)]))), 128))])], 8, Sm)]),
|
|
8549
8844
|
_: 1
|
|
8550
8845
|
})])) : Z("", !0),
|
|
8551
|
-
|
|
8846
|
+
Ce.value ? (G(), K("div", Om, [H(t.$slots, "controls")])) : Z("", !0),
|
|
8847
|
+
J("div", km, [I(d) ? (G(), q(gl, {
|
|
8552
8848
|
key: 0,
|
|
8553
8849
|
outlined: "",
|
|
8554
8850
|
size: "small",
|
|
8555
8851
|
class: "clear-filters",
|
|
8852
|
+
"aria-label": "Clear Filters",
|
|
8556
8853
|
onClick: I(f)
|
|
8557
8854
|
}, {
|
|
8558
8855
|
default: L(() => [...n[11] ||= [J("svg", {
|
|
8559
8856
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8560
|
-
viewBox: "0 0
|
|
8561
|
-
height: "
|
|
8857
|
+
viewBox: "0 0 640 640",
|
|
8858
|
+
height: "1.5em",
|
|
8562
8859
|
"aria-hidden": "true"
|
|
8563
8860
|
}, [J("path", {
|
|
8564
8861
|
fill: "currentColor",
|
|
8565
|
-
d: "
|
|
8862
|
+
d: "M64 128C51.1 128 39.4 135.8 34.4 147.8C29.4 159.8 32.2 173.5 41.4 182.6L224 365.3L224 480C224 488.5 227.4 496.6 233.4 502.6L297.4 566.6C299.9 569.1 302.7 571.1 305.7 572.6C284.5 541.7 272.1 504.3 272.1 464C272.1 364.6 347.6 282.9 444.4 273L534.8 182.6C544 173.4 546.7 159.7 541.7 147.7C536.7 135.7 524.9 128 512 128L64 128zM464 608C543.5 608 608 543.5 608 464C608 384.5 543.5 320 464 320C384.5 320 320 384.5 320 464C320 543.5 384.5 608 464 608zM523.3 427.3L486.6 464L523.3 500.7C529.5 506.9 529.5 517.1 523.3 523.3C517.1 529.5 506.9 529.5 500.7 523.3L464 486.6L427.3 523.3C421.1 529.5 410.9 529.5 404.7 523.3C398.5 517.1 398.5 506.9 404.7 500.7L441.4 464L404.7 427.3C398.5 421.1 398.5 410.9 404.7 404.7C410.9 398.5 421.1 398.5 427.3 404.7L464 441.4L500.7 404.7C506.9 398.5 517.1 398.5 523.3 404.7C529.5 410.9 529.5 421.1 523.3 427.3z"
|
|
8566
8863
|
})], -1), J("span", { class: "g-clear-filters-text" }, " Clear Filters ", -1)]]),
|
|
8567
8864
|
_: 1
|
|
8568
8865
|
}, 8, ["onClick"])) : Z("", !0)])
|
|
8569
8866
|
]),
|
|
8570
|
-
|
|
8571
|
-
|
|
8867
|
+
N.value ? (G(), K("div", Am, [Y(Jp, {
|
|
8868
|
+
start: e.startIndex,
|
|
8869
|
+
"page-size": e.pageSize,
|
|
8870
|
+
"page-sizes": e.pageSizes,
|
|
8871
|
+
total: we.value,
|
|
8872
|
+
"onUpdate:start": C,
|
|
8873
|
+
"onUpdate:pageSize": w
|
|
8874
|
+
}, null, 8, [
|
|
8875
|
+
"start",
|
|
8876
|
+
"page-size",
|
|
8877
|
+
"page-sizes",
|
|
8878
|
+
"total"
|
|
8879
|
+
])])) : Z("", !0),
|
|
8880
|
+
J("span", jm, M(we.value) + " results", 1)
|
|
8572
8881
|
])) : Z("", !0),
|
|
8573
|
-
J("table", {
|
|
8882
|
+
J("div", Mm, [J("table", {
|
|
8574
8883
|
class: "g-table",
|
|
8575
8884
|
ref: "tableRef",
|
|
8576
8885
|
"aria-label": e.label,
|
|
8577
|
-
"aria-rowcount":
|
|
8578
|
-
}, [J("thead",
|
|
8886
|
+
"aria-rowcount": we.value
|
|
8887
|
+
}, [J("thead", Pm, [J("tr", Fm, [e.bulkSelectionEnabled ? (G(), K("th", Im, [J("input", {
|
|
8579
8888
|
type: "checkbox",
|
|
8580
8889
|
checked: h.value,
|
|
8581
8890
|
indeterminate: g.value,
|
|
8582
8891
|
onChange: v,
|
|
8583
8892
|
"aria-label": h.value ? "Deselect all rows" : "Select all rows",
|
|
8584
8893
|
class: "g-bulk-select-checkbox"
|
|
8585
|
-
}, null, 40,
|
|
8894
|
+
}, null, 40, Lm)])) : Z("", !0), (G(!0), K(W, null, V(ye.value, (e) => (G(), K("th", {
|
|
8586
8895
|
key: e.key,
|
|
8587
|
-
id: `${I(
|
|
8588
|
-
"aria-sort":
|
|
8896
|
+
id: `${I(T)}-th-${String(e.key)}`,
|
|
8897
|
+
"aria-sort": se(e.key),
|
|
8589
8898
|
class: j([
|
|
8590
8899
|
"g-th",
|
|
8591
|
-
{ sorted:
|
|
8900
|
+
{ sorted: A(e.key) !== -1 },
|
|
8592
8901
|
{ filtered: I(u)[e.key] }
|
|
8593
8902
|
]),
|
|
8594
8903
|
scope: "col"
|
|
8595
|
-
}, [J("div",
|
|
8904
|
+
}, [J("div", zm, [e.sortable ? (G(), K("button", {
|
|
8596
8905
|
key: 0,
|
|
8597
8906
|
type: "button",
|
|
8598
8907
|
class: "g-column-head",
|
|
8599
|
-
onClick: (t) =>
|
|
8908
|
+
onClick: (t) => pe(e, t.shiftKey)
|
|
8600
8909
|
}, [
|
|
8601
8910
|
X(M(e.label) + " ", 1),
|
|
8602
|
-
|
|
8911
|
+
A(e.key) === -1 ? Z("", !0) : (G(), K("span", Vm, [(G(), K("svg", {
|
|
8603
8912
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8604
8913
|
viewBox: "0 0 640 640",
|
|
8605
8914
|
height: "1.5em",
|
|
8606
|
-
style: le({ transform: `rotate(${
|
|
8915
|
+
style: le({ transform: `rotate(${ae(e.key)?.order === 1 ? 0 : 180}deg)` })
|
|
8607
8916
|
}, [...n[12] ||= [J("path", {
|
|
8608
8917
|
fill: "currentColor",
|
|
8609
8918
|
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"
|
|
8610
8919
|
}, null, -1)]], 4))])),
|
|
8611
|
-
|
|
8612
|
-
], 8,
|
|
8920
|
+
A(e.key) === -1 ? Z("", !0) : (G(), K("span", Hm, M(ce(e.key)), 1))
|
|
8921
|
+
], 8, Bm)) : (G(), K("span", Um, M(e.label), 1)), e.filter ? (G(), q(xf, { key: 2 }, {
|
|
8613
8922
|
trigger: L(({ toggle: t }) => [J("button", {
|
|
8614
8923
|
onClick: Is(t, ["stop"]),
|
|
8615
8924
|
"aria-label": I(u)[e.key] ? "Column Filtered" : "Filter Column",
|
|
@@ -8623,7 +8932,7 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
8623
8932
|
}, [J("path", {
|
|
8624
8933
|
fill: "currentColor",
|
|
8625
8934
|
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"
|
|
8626
|
-
})], -1)]], 10,
|
|
8935
|
+
})], -1)]], 10, Wm)]),
|
|
8627
8936
|
default: L(() => [e.filter.type === "select" ? (G(), q(Yf, {
|
|
8628
8937
|
key: 0,
|
|
8629
8938
|
modelValue: r.value[e.key],
|
|
@@ -8639,7 +8948,7 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
8639
8948
|
"onUpdate:modelValue",
|
|
8640
8949
|
"options",
|
|
8641
8950
|
"search-description"
|
|
8642
|
-
])) : e.filter.type === "search" ? (G(), K("div",
|
|
8951
|
+
])) : e.filter.type === "search" ? (G(), K("div", Gm, [n[14] ||= J("span", {
|
|
8643
8952
|
class: "g-filter-search-icon",
|
|
8644
8953
|
"aria-hidden": "true"
|
|
8645
8954
|
}, [J("svg", {
|
|
@@ -8655,19 +8964,19 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
8655
8964
|
"onUpdate:modelValue": (t) => r.value[e.key] = t,
|
|
8656
8965
|
placeholder: e.filter.placeholder,
|
|
8657
8966
|
"aria-label": `Search ${e.label}`
|
|
8658
|
-
}, null, 8,
|
|
8967
|
+
}, null, 8, Km), [[ks, r.value[e.key]]])])) : e.filter.type === "toggle" ? (G(), K("div", qm, [J("div", Jm, [
|
|
8659
8968
|
Hn(J("input", {
|
|
8660
8969
|
type: "checkbox",
|
|
8661
8970
|
"onUpdate:modelValue": (t) => r.value[e.key] = t,
|
|
8662
|
-
id: `${I(
|
|
8663
|
-
"aria-describedby": e.filter.description ? `${I(
|
|
8664
|
-
}, null, 8,
|
|
8665
|
-
J("label", { for: `${I(
|
|
8971
|
+
id: `${I(T)}-filter-${String(e.key)}`,
|
|
8972
|
+
"aria-describedby": e.filter.description ? `${I(T)}-filter-description-${String(e.key)}` : void 0
|
|
8973
|
+
}, null, 8, Ym), [[As, r.value[e.key]]]),
|
|
8974
|
+
J("label", { for: `${I(T)}-filter-${String(e.key)}` }, M(e.filter.label), 9, Xm),
|
|
8666
8975
|
e.filter.description ? (G(), K("span", {
|
|
8667
8976
|
key: 0,
|
|
8668
8977
|
class: "g-filter-description",
|
|
8669
|
-
id: `${I(
|
|
8670
|
-
}, M(e.filter.description), 9,
|
|
8978
|
+
id: `${I(T)}-filter-description-${String(e.key)}`
|
|
8979
|
+
}, M(e.filter.description), 9, Zm)) : Z("", !0)
|
|
8671
8980
|
])])) : e.filter.type === "multi-select" && e.filter.searchable ? (G(), q(mf, {
|
|
8672
8981
|
key: 3,
|
|
8673
8982
|
modelValue: r.value[e.key],
|
|
@@ -8683,10 +8992,10 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
8683
8992
|
"options",
|
|
8684
8993
|
"placeholder",
|
|
8685
8994
|
"search-description"
|
|
8686
|
-
])) : e.filter.type === "multi-select" ? (G(), K("div",
|
|
8995
|
+
])) : e.filter.type === "multi-select" ? (G(), K("div", Qm, [Y(Kl, {
|
|
8687
8996
|
modelValue: r.value[e.key],
|
|
8688
8997
|
"onUpdate:modelValue": (t) => r.value[e.key] = t,
|
|
8689
|
-
options:
|
|
8998
|
+
options: ke(e),
|
|
8690
8999
|
label: "Include values"
|
|
8691
9000
|
}, null, 8, [
|
|
8692
9001
|
"modelValue",
|
|
@@ -8703,9 +9012,9 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
8703
9012
|
_: 1
|
|
8704
9013
|
}, 8, ["onClick"])) : Z("", !0)])) : Z("", !0)]),
|
|
8705
9014
|
_: 2
|
|
8706
|
-
}, 1024)) : Z("", !0)])], 10,
|
|
9015
|
+
}, 1024)) : Z("", !0)])], 10, Rm))), 128))])]), Y(Tp, {
|
|
8707
9016
|
data: e.data,
|
|
8708
|
-
columns:
|
|
9017
|
+
columns: ye.value,
|
|
8709
9018
|
"group-by": e.groupBy,
|
|
8710
9019
|
"group-render": e.groupRender,
|
|
8711
9020
|
"row-clickable": e.rowClickable,
|
|
@@ -8713,7 +9022,7 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
8713
9022
|
"start-index": e.startIndex,
|
|
8714
9023
|
"bulk-selection-enabled": e.bulkSelectionEnabled,
|
|
8715
9024
|
"selected-rows": a.value,
|
|
8716
|
-
"table-id": I(
|
|
9025
|
+
"table-id": I(T),
|
|
8717
9026
|
"change-tracker": e.changeTracker,
|
|
8718
9027
|
onRowClick: b,
|
|
8719
9028
|
onToggleRow: y,
|
|
@@ -8730,8 +9039,8 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
8730
9039
|
"selected-rows",
|
|
8731
9040
|
"table-id",
|
|
8732
9041
|
"change-tracker"
|
|
8733
|
-
])], 8,
|
|
8734
|
-
e.bulkSelectionEnabled && a.value.length > 0 ? (G(), K("div",
|
|
9042
|
+
])], 8, Nm)]),
|
|
9043
|
+
e.bulkSelectionEnabled && a.value.length > 0 ? (G(), K("div", $m, [J("span", eh, M(a.value.length) + " row" + M(a.value.length === 1 ? "" : "s") + " selected", 1), J("ul", th, [(G(!0), K(W, null, V(e.bulkActions, (e) => (G(), K("li", { key: e.id }, [Y(gl, {
|
|
8735
9044
|
theme: e.theme || "accent",
|
|
8736
9045
|
onClick: (t) => x(e.id),
|
|
8737
9046
|
size: "small"
|
|
@@ -8741,148 +9050,9 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
8741
9050
|
}, 1032, ["theme", "onClick"])]))), 128))])])) : Z("", !0)
|
|
8742
9051
|
]));
|
|
8743
9052
|
}
|
|
8744
|
-
}), [["styles", [""]]]),
|
|
8745
|
-
class: "g-pagination",
|
|
8746
|
-
"aria-label": "Pagination"
|
|
8747
|
-
}, Am = ["disabled"], jm = ["disabled"], Mm = { class: "page-range" }, Nm = ["disabled"], Pm = ["disabled"], Fm = ["value"], Im = ["value"], Lm = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
8748
|
-
__name: "GTablePagination",
|
|
8749
|
-
props: /*@__PURE__*/ H({
|
|
8750
|
-
start: { type: Number },
|
|
8751
|
-
pageSize: { type: Number },
|
|
8752
|
-
total: { type: Number },
|
|
8753
|
-
pageSizes: { type: Array }
|
|
8754
|
-
}, {
|
|
8755
|
-
start: {},
|
|
8756
|
-
startModifiers: {},
|
|
8757
|
-
pageSize: {},
|
|
8758
|
-
pageSizeModifiers: {}
|
|
8759
|
-
}),
|
|
8760
|
-
emits: ["update:start", "update:pageSize"],
|
|
8761
|
-
setup(e) {
|
|
8762
|
-
let t = e, n = Q(() => Math.max(1, Math.ceil(t.total / t.pageSize))), r = U(e, "start"), i = U(e, "pageSize"), a = Q(() => r.value ?? t.start), o = Q(() => i.value ?? t.pageSize), s = Q(() => t.total === 0 ? 0 : a.value + 1), c = Q(() => t.total === 0 ? 0 : Math.min(a.value + o.value, t.total)), l = Q(() => Math.floor(a.value / o.value) + 1);
|
|
8763
|
-
function u(e) {
|
|
8764
|
-
e < 1 || e > n.value || (r.value = (e - 1) * o.value);
|
|
8765
|
-
}
|
|
8766
|
-
function d(e) {
|
|
8767
|
-
i.value = parseInt(e.target.value, 10);
|
|
8768
|
-
}
|
|
8769
|
-
return (e, r) => (G(), K("nav", km, [
|
|
8770
|
-
J("button", {
|
|
8771
|
-
class: "first-page g-pagination-button",
|
|
8772
|
-
disabled: l.value === 1,
|
|
8773
|
-
onClick: r[0] ||= (e) => u(1)
|
|
8774
|
-
}, [...r[4] ||= [J("svg", {
|
|
8775
|
-
role: "img",
|
|
8776
|
-
"aria-label": "First Page",
|
|
8777
|
-
height: "2em",
|
|
8778
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
8779
|
-
width: "2em",
|
|
8780
|
-
viewBox: "0 0 24 24",
|
|
8781
|
-
fill: "none",
|
|
8782
|
-
stroke: "currentColor",
|
|
8783
|
-
"stroke-width": "2",
|
|
8784
|
-
"stroke-linecap": "round",
|
|
8785
|
-
"stroke-linejoin": "round"
|
|
8786
|
-
}, [
|
|
8787
|
-
J("path", {
|
|
8788
|
-
stroke: "none",
|
|
8789
|
-
d: "M0 0h24v24H0z",
|
|
8790
|
-
fill: "none"
|
|
8791
|
-
}),
|
|
8792
|
-
J("path", { d: "M11 7l-5 5l5 5" }),
|
|
8793
|
-
J("path", { d: "M17 7l-5 5l5 5" })
|
|
8794
|
-
], -1)]], 8, Am),
|
|
8795
|
-
J("button", {
|
|
8796
|
-
class: "prev-page g-pagination-button",
|
|
8797
|
-
disabled: l.value === 1,
|
|
8798
|
-
onClick: r[1] ||= (e) => u(l.value - 1)
|
|
8799
|
-
}, [...r[5] ||= [J("svg", {
|
|
8800
|
-
role: "img",
|
|
8801
|
-
"aria-label": "Previous Page",
|
|
8802
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
8803
|
-
width: "2em",
|
|
8804
|
-
height: "2em",
|
|
8805
|
-
viewBox: "0 0 24 24",
|
|
8806
|
-
fill: "none",
|
|
8807
|
-
stroke: "currentColor",
|
|
8808
|
-
"stroke-width": "2",
|
|
8809
|
-
"stroke-linecap": "round",
|
|
8810
|
-
"stroke-linejoin": "round"
|
|
8811
|
-
}, [J("path", {
|
|
8812
|
-
stroke: "none",
|
|
8813
|
-
d: "M0 0h24v24H0z",
|
|
8814
|
-
fill: "none"
|
|
8815
|
-
}), J("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8, jm),
|
|
8816
|
-
J("span", Mm, M(s.value) + " to " + M(c.value), 1),
|
|
8817
|
-
J("button", {
|
|
8818
|
-
class: "next-page g-pagination-button",
|
|
8819
|
-
disabled: l.value === n.value,
|
|
8820
|
-
onClick: r[2] ||= (e) => u(l.value + 1)
|
|
8821
|
-
}, [...r[6] ||= [J("svg", {
|
|
8822
|
-
role: "img",
|
|
8823
|
-
"aria-label": "Next Page",
|
|
8824
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
8825
|
-
width: "2em",
|
|
8826
|
-
height: "2em",
|
|
8827
|
-
viewBox: "0 0 24 24",
|
|
8828
|
-
fill: "none",
|
|
8829
|
-
stroke: "currentColor",
|
|
8830
|
-
"stroke-width": "2",
|
|
8831
|
-
"stroke-linecap": "round",
|
|
8832
|
-
"stroke-linejoin": "round"
|
|
8833
|
-
}, [J("path", {
|
|
8834
|
-
stroke: "none",
|
|
8835
|
-
d: "M0 0h24v24H0z",
|
|
8836
|
-
fill: "none"
|
|
8837
|
-
}), J("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8, Nm),
|
|
8838
|
-
J("button", {
|
|
8839
|
-
class: "last-page g-pagination-button",
|
|
8840
|
-
disabled: l.value === n.value,
|
|
8841
|
-
onClick: r[3] ||= (e) => u(n.value)
|
|
8842
|
-
}, [...r[7] ||= [J("svg", {
|
|
8843
|
-
role: "img",
|
|
8844
|
-
"aria-label": "Last Page",
|
|
8845
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
8846
|
-
width: "2em",
|
|
8847
|
-
height: "2em",
|
|
8848
|
-
viewBox: "0 0 24 24",
|
|
8849
|
-
fill: "none",
|
|
8850
|
-
stroke: "currentColor",
|
|
8851
|
-
"stroke-width": "2",
|
|
8852
|
-
"stroke-linecap": "round",
|
|
8853
|
-
"stroke-linejoin": "round"
|
|
8854
|
-
}, [
|
|
8855
|
-
J("path", {
|
|
8856
|
-
stroke: "none",
|
|
8857
|
-
d: "M0 0h24v24H0z",
|
|
8858
|
-
fill: "none"
|
|
8859
|
-
}),
|
|
8860
|
-
J("path", { d: "M7 7l5 5l-5 5" }),
|
|
8861
|
-
J("path", { d: "M13 7l5 5l-5 5" })
|
|
8862
|
-
], -1)]], 8, Pm),
|
|
8863
|
-
J("select", {
|
|
8864
|
-
id: "page-size-select",
|
|
8865
|
-
class: "page-size-select",
|
|
8866
|
-
value: i.value,
|
|
8867
|
-
onChange: d
|
|
8868
|
-
}, [(G(!0), K(W, null, B(t.pageSizes || [
|
|
8869
|
-
10,
|
|
8870
|
-
25,
|
|
8871
|
-
50,
|
|
8872
|
-
100
|
|
8873
|
-
], (e) => (G(), K("option", {
|
|
8874
|
-
key: e,
|
|
8875
|
-
value: e
|
|
8876
|
-
}, M(e), 9, Im))), 128))], 40, Fm),
|
|
8877
|
-
r[8] ||= J("label", {
|
|
8878
|
-
class: "page-size-label",
|
|
8879
|
-
for: "page-size-select"
|
|
8880
|
-
}, "per page", -1)
|
|
8881
|
-
]));
|
|
8882
|
-
}
|
|
8883
|
-
}), [["styles", [""]]]), Rm = { class: "popover-content" }, zm = { class: "year-dropdown" }, Bm = { class: "month-selector" }, Vm = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
9053
|
+
}), [["styles", [""]]]), rh = { class: "popover-content" }, ih = { class: "year-dropdown" }, ah = { class: "month-selector" }, oh = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
8884
9054
|
__name: "GTermSelectorControl",
|
|
8885
|
-
props: /*@__PURE__*/
|
|
9055
|
+
props: /*@__PURE__*/ U({
|
|
8886
9056
|
termYears: {
|
|
8887
9057
|
default: () => ["2026"],
|
|
8888
9058
|
type: Array
|
|
@@ -8912,8 +9082,8 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
8912
9082
|
}),
|
|
8913
9083
|
emits: ["update:modelValue"],
|
|
8914
9084
|
setup(e) {
|
|
8915
|
-
let t =
|
|
8916
|
-
return (n, r) => (G(), K("div",
|
|
9085
|
+
let t = Mi(e, "modelValue");
|
|
9086
|
+
return (n, r) => (G(), K("div", rh, [J("div", ih, [Y(Yf, {
|
|
8917
9087
|
modelValue: t.value.year,
|
|
8918
9088
|
"onUpdate:modelValue": r[0] ||= (e) => t.value.year = e,
|
|
8919
9089
|
options: e.termYears,
|
|
@@ -8922,7 +9092,7 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
8922
9092
|
"modelValue",
|
|
8923
9093
|
"options",
|
|
8924
9094
|
"label"
|
|
8925
|
-
])]), J("div",
|
|
9095
|
+
])]), J("div", ah, [Y(np, {
|
|
8926
9096
|
modelValue: t.value.name,
|
|
8927
9097
|
"onUpdate:modelValue": r[1] ||= (e) => t.value.name = e,
|
|
8928
9098
|
options: e.termNames,
|
|
@@ -8934,12 +9104,12 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
8934
9104
|
"label"
|
|
8935
9105
|
])])]));
|
|
8936
9106
|
}
|
|
8937
|
-
}), [["styles", [""]]]),
|
|
9107
|
+
}), [["styles", [""]]]), sh = { class: "g-term-selector" }, ch = { class: "g-term-label" }, lh = {
|
|
8938
9108
|
class: "g-popover-title",
|
|
8939
9109
|
tabindex: "-1"
|
|
8940
|
-
},
|
|
9110
|
+
}, uh = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
8941
9111
|
__name: "GTermSelector",
|
|
8942
|
-
props: /*@__PURE__*/
|
|
9112
|
+
props: /*@__PURE__*/ U({
|
|
8943
9113
|
heading: {
|
|
8944
9114
|
default: "Period Selection",
|
|
8945
9115
|
type: String
|
|
@@ -8967,8 +9137,8 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
8967
9137
|
}),
|
|
8968
9138
|
emits: ["update:modelValue"],
|
|
8969
9139
|
setup(e) {
|
|
8970
|
-
let t =
|
|
8971
|
-
return (n, r) => (G(), K("div",
|
|
9140
|
+
let t = Mi(e, "modelValue");
|
|
9141
|
+
return (n, r) => (G(), K("div", sh, [Y(xf, null, {
|
|
8972
9142
|
trigger: L(({ toggle: e }) => [Y(gl, {
|
|
8973
9143
|
class: "g-term-selector-button",
|
|
8974
9144
|
theme: "none",
|
|
@@ -8981,7 +9151,7 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
8981
9151
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8982
9152
|
viewBox: "0 0 640 640"
|
|
8983
9153
|
}, [J("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),
|
|
8984
|
-
J("span",
|
|
9154
|
+
J("span", ch, M(t.value?.name) + " " + M(t.value?.year), 1),
|
|
8985
9155
|
r[1] ||= J("span", { class: "g-caret" }, [J("svg", {
|
|
8986
9156
|
role: "none",
|
|
8987
9157
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8990,15 +9160,15 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
8990
9160
|
]),
|
|
8991
9161
|
_: 1
|
|
8992
9162
|
}, 8, ["onClick"])]),
|
|
8993
|
-
default: L(() => [J("h2",
|
|
9163
|
+
default: L(() => [J("h2", lh, M(e.heading), 1), Y(oh, me(Ia(n.$props)), null, 16)]),
|
|
8994
9164
|
_: 1
|
|
8995
9165
|
})]));
|
|
8996
9166
|
}
|
|
8997
|
-
}), [["styles", [""]]]),
|
|
9167
|
+
}), [["styles", [""]]]), dh = ["for"], fh = {
|
|
8998
9168
|
key: 0,
|
|
8999
9169
|
class: "g-textarea-required",
|
|
9000
9170
|
"aria-hidden": "true"
|
|
9001
|
-
},
|
|
9171
|
+
}, ph = ["id"], mh = [
|
|
9002
9172
|
"value",
|
|
9003
9173
|
"placeholder",
|
|
9004
9174
|
"disabled",
|
|
@@ -9007,14 +9177,14 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
9007
9177
|
"rows",
|
|
9008
9178
|
"maxlength",
|
|
9009
9179
|
"aria-invalid"
|
|
9010
|
-
],
|
|
9180
|
+
], hh = {
|
|
9011
9181
|
key: 2,
|
|
9012
9182
|
class: "g-textarea-char-count",
|
|
9013
9183
|
"aria-live": "polite"
|
|
9014
|
-
},
|
|
9184
|
+
}, gh = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
9015
9185
|
inheritAttrs: !1,
|
|
9016
9186
|
__name: "GTextarea",
|
|
9017
|
-
props: /*@__PURE__*/
|
|
9187
|
+
props: /*@__PURE__*/ U({
|
|
9018
9188
|
label: {
|
|
9019
9189
|
default: void 0,
|
|
9020
9190
|
type: String
|
|
@@ -9067,14 +9237,14 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
9067
9237
|
modelValue: { type: String },
|
|
9068
9238
|
modelModifiers: {}
|
|
9069
9239
|
}),
|
|
9070
|
-
emits: /*@__PURE__*/
|
|
9240
|
+
emits: /*@__PURE__*/ U(["change"], ["update:modelValue"]),
|
|
9071
9241
|
setup(e, { emit: t }) {
|
|
9072
|
-
let n = e, r =
|
|
9242
|
+
let n = e, r = Mi(e, "modelValue"), i = B(), { attrs: a, isCustomElement: o, forwardedAttrs: s } = fl({ omitInCustomElement: ["id"] }), c = Q(() => o ? i : a.id || i), { displayErrors: l, hasErrors: u } = Nl({
|
|
9073
9243
|
name: n.name,
|
|
9074
9244
|
value: r,
|
|
9075
9245
|
errors: /* @__PURE__ */ ln(n, "errors"),
|
|
9076
9246
|
formKey: n.formKey
|
|
9077
|
-
}), d = t, f =
|
|
9247
|
+
}), d = t, f = Ar("textareaEl");
|
|
9078
9248
|
function p() {
|
|
9079
9249
|
let e = f.value;
|
|
9080
9250
|
e && (e.style.height = "auto", e.style.height = `${e.scrollHeight}px`);
|
|
@@ -9109,12 +9279,12 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
9109
9279
|
key: 0,
|
|
9110
9280
|
for: c.value,
|
|
9111
9281
|
class: "g-textarea-label"
|
|
9112
|
-
}, [X(M(n.label), 1), n.required ? (G(), K("span",
|
|
9282
|
+
}, [X(M(n.label), 1), n.required ? (G(), K("span", fh, " *")) : Z("", !0)], 8, dh)) : Z("", !0),
|
|
9113
9283
|
t.$slots.instructions || e.instructions ? (G(), K("div", {
|
|
9114
9284
|
key: 1,
|
|
9115
9285
|
id: "instructions-" + I(i),
|
|
9116
9286
|
class: "g-textarea-instructions"
|
|
9117
|
-
}, [
|
|
9287
|
+
}, [H(t.$slots, "instructions", {}, () => [X(M(e.instructions), 1)])], 8, ph)) : Z("", !0),
|
|
9118
9288
|
J("textarea", Va({
|
|
9119
9289
|
ref: "textareaEl",
|
|
9120
9290
|
value: r.value ?? "",
|
|
@@ -9135,38 +9305,38 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
9135
9305
|
onInput: h,
|
|
9136
9306
|
onBlur: g,
|
|
9137
9307
|
onPaste: _
|
|
9138
|
-
}), null, 16,
|
|
9139
|
-
n.maxlength === void 0 ? Z("", !0) : (G(), K("div",
|
|
9308
|
+
}), null, 16, mh),
|
|
9309
|
+
n.maxlength === void 0 ? Z("", !0) : (G(), K("div", hh, M((r.value ?? "").length) + " / " + M(n.maxlength), 1)),
|
|
9140
9310
|
Y(Fl, {
|
|
9141
9311
|
errors: I(l),
|
|
9142
9312
|
id: "error-message-" + I(i)
|
|
9143
9313
|
}, null, 8, ["errors", "id"])
|
|
9144
9314
|
], 2));
|
|
9145
9315
|
}
|
|
9146
|
-
}), [["styles", [""]]]),
|
|
9316
|
+
}), [["styles", [""]]]), _h = { class: "g-three-way-toggle-wrapper" }, vh = { class: "g-three-way-toggle-control" }, yh = ["id"], bh = [
|
|
9147
9317
|
"aria-labelledby",
|
|
9148
9318
|
"aria-describedby",
|
|
9149
9319
|
"disabled",
|
|
9150
9320
|
"aria-invalid",
|
|
9151
9321
|
"aria-errormessage"
|
|
9152
|
-
],
|
|
9322
|
+
], xh = { key: 0 }, Sh = { key: 1 }, Ch = { key: 2 }, wh = ["for"], Th = [
|
|
9153
9323
|
"id",
|
|
9154
9324
|
"name",
|
|
9155
9325
|
"checked",
|
|
9156
9326
|
"disabled"
|
|
9157
|
-
],
|
|
9327
|
+
], Eh = ["for"], Dh = [
|
|
9158
9328
|
"id",
|
|
9159
9329
|
"name",
|
|
9160
9330
|
"checked",
|
|
9161
9331
|
"disabled"
|
|
9162
|
-
],
|
|
9332
|
+
], Oh = ["for"], kh = [
|
|
9163
9333
|
"id",
|
|
9164
9334
|
"name",
|
|
9165
9335
|
"checked",
|
|
9166
9336
|
"disabled"
|
|
9167
|
-
],
|
|
9337
|
+
], Ah = ["id"], jh = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
9168
9338
|
__name: "GThreeWayToggle",
|
|
9169
|
-
props: /*@__PURE__*/
|
|
9339
|
+
props: /*@__PURE__*/ U({
|
|
9170
9340
|
label: { type: String },
|
|
9171
9341
|
describedby: { type: String },
|
|
9172
9342
|
error: { type: String },
|
|
@@ -9178,9 +9348,9 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
9178
9348
|
},
|
|
9179
9349
|
modelModifiers: {}
|
|
9180
9350
|
}),
|
|
9181
|
-
emits: /*@__PURE__*/
|
|
9351
|
+
emits: /*@__PURE__*/ U(["change"], ["update:modelValue"]),
|
|
9182
9352
|
setup(e, { emit: t }) {
|
|
9183
|
-
let n = e, r =
|
|
9353
|
+
let n = e, r = Mi(e, "modelValue"), i = t;
|
|
9184
9354
|
function a(e) {
|
|
9185
9355
|
let t = r.value;
|
|
9186
9356
|
r.value = e, e !== t && i("change", {
|
|
@@ -9194,14 +9364,14 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
9194
9364
|
function s(e) {
|
|
9195
9365
|
n.disabled || r.value === e && a(null);
|
|
9196
9366
|
}
|
|
9197
|
-
let c =
|
|
9367
|
+
let c = B(), l = Q(() => `g-three-way-toggle-${c}`), u = B(), d = B(), f = B(), p = Q(() => r.value === !1 ? "g-left" : r.value === !0 ? "g-right" : "g-center");
|
|
9198
9368
|
function m(e) {
|
|
9199
9369
|
n.disabled || (e.key === "n" || e.key === "N" ? (a(!1), e.preventDefault()) : (e.key === "y" || e.key === "Y") && (a(!0), e.preventDefault()));
|
|
9200
9370
|
}
|
|
9201
|
-
return (t, n) => (G(), K("div",
|
|
9371
|
+
return (t, n) => (G(), K("div", _h, [J("div", vh, [J("span", {
|
|
9202
9372
|
class: "g-label",
|
|
9203
9373
|
id: I(c)
|
|
9204
|
-
}, [
|
|
9374
|
+
}, [H(t.$slots, "label", {}, () => [X(M(e.label), 1)])], 8, yh), J("fieldset", {
|
|
9205
9375
|
class: j(["g-three-way-toggle", { "g-has-error": e.error }]),
|
|
9206
9376
|
role: "radiogroup",
|
|
9207
9377
|
"aria-labelledby": I(c),
|
|
@@ -9213,7 +9383,7 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
9213
9383
|
J("span", {
|
|
9214
9384
|
class: j(["g-toggle-thumb", p.value]),
|
|
9215
9385
|
"aria-hidden": "true"
|
|
9216
|
-
}, [r.value === !1 ? (G(), K("span",
|
|
9386
|
+
}, [r.value === !1 ? (G(), K("span", xh, "NO")) : r.value === !0 ? (G(), K("span", Sh, "YES")) : (G(), K("span", Ch))], 2),
|
|
9217
9387
|
J("label", {
|
|
9218
9388
|
for: I(u),
|
|
9219
9389
|
class: "g-toggle-option g-left",
|
|
@@ -9227,7 +9397,7 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
9227
9397
|
value: "false",
|
|
9228
9398
|
disabled: e.disabled,
|
|
9229
9399
|
onChange: n[0] ||= (e) => o(!1)
|
|
9230
|
-
}, null, 40,
|
|
9400
|
+
}, null, 40, Th), n[5] ||= J("span", { class: "ilw-sr-only" }, "No", -1)], 40, wh),
|
|
9231
9401
|
J("label", {
|
|
9232
9402
|
for: I(d),
|
|
9233
9403
|
class: "g-toggle-option g-center",
|
|
@@ -9239,7 +9409,7 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
9239
9409
|
checked: r.value === null,
|
|
9240
9410
|
disabled: e.disabled,
|
|
9241
9411
|
onChange: n[2] ||= (e) => o(null)
|
|
9242
|
-
}, null, 40,
|
|
9412
|
+
}, null, 40, Dh), n[6] ||= J("span", { class: "ilw-sr-only" }, "Unset", -1)], 40, Eh),
|
|
9243
9413
|
J("label", {
|
|
9244
9414
|
for: I(f),
|
|
9245
9415
|
class: "g-toggle-option g-right",
|
|
@@ -9253,22 +9423,22 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
9253
9423
|
checked: r.value === !0,
|
|
9254
9424
|
disabled: e.disabled,
|
|
9255
9425
|
onChange: n[3] ||= (e) => o(!0)
|
|
9256
|
-
}, null, 40,
|
|
9257
|
-
], 2)], 10,
|
|
9426
|
+
}, null, 40, kh), n[7] ||= J("span", { class: "ilw-sr-only" }, "Yes", -1)], 40, Oh)
|
|
9427
|
+
], 2)], 10, bh)]), e.error ? (G(), K("div", {
|
|
9258
9428
|
key: 0,
|
|
9259
9429
|
id: `${I(c)}-error`,
|
|
9260
9430
|
class: "g-form-error",
|
|
9261
9431
|
role: "alert",
|
|
9262
9432
|
"aria-atomic": "true"
|
|
9263
|
-
}, M(e.error), 9,
|
|
9433
|
+
}, M(e.error), 9, Ah)) : Z("", !0)]));
|
|
9264
9434
|
}
|
|
9265
|
-
}), [["styles", [""]]]),
|
|
9435
|
+
}), [["styles", [""]]]), Mh = { class: "g-tree-menu__divider" }, Nh = {
|
|
9266
9436
|
key: 0,
|
|
9267
9437
|
class: "g-tree-menu__divider-line"
|
|
9268
|
-
},
|
|
9438
|
+
}, Ph = {
|
|
9269
9439
|
key: 1,
|
|
9270
9440
|
class: "g-tree-menu__expand-all-wrapper"
|
|
9271
|
-
},
|
|
9441
|
+
}, Fh = { class: "g-tree-menu__content" }, Ih = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
9272
9442
|
__name: "GTreeMenu",
|
|
9273
9443
|
props: {
|
|
9274
9444
|
heading: { type: String },
|
|
@@ -9295,7 +9465,7 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
9295
9465
|
}
|
|
9296
9466
|
},
|
|
9297
9467
|
setup(e) {
|
|
9298
|
-
let t = e, n =
|
|
9468
|
+
let t = e, n = li(), r = qa(), i = B(), a = (r?.ce)?._slots?.heading?.length > 0, o = Q(() => !!t.heading || !!n.heading || a);
|
|
9299
9469
|
Wn("g-tree-menu-list-type", t.listType), Wn("g-tree-menu-expanded-storage", t.storageKey ? Wu(t.storageKey, {}) : null);
|
|
9300
9470
|
let s = /* @__PURE__ */ zt(/* @__PURE__ */ new Map());
|
|
9301
9471
|
Wn("g-tree-menu-expandable-items", s);
|
|
@@ -9320,15 +9490,15 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
9320
9490
|
"aria-labelledby": o.value ? I(i) : void 0,
|
|
9321
9491
|
"aria-label": o.value ? void 0 : "Tree Menu"
|
|
9322
9492
|
}), [
|
|
9323
|
-
o.value ? (G(), q(
|
|
9493
|
+
o.value ? (G(), q(ti(e.headingLevel), {
|
|
9324
9494
|
key: 0,
|
|
9325
9495
|
id: I(i),
|
|
9326
9496
|
class: "g-tree-menu__title"
|
|
9327
9497
|
}, {
|
|
9328
|
-
default: L(() => [
|
|
9498
|
+
default: L(() => [H(n.$slots, "heading", {}, () => [X(M(e.heading), 1)])]),
|
|
9329
9499
|
_: 3
|
|
9330
9500
|
}, 8, ["id"])) : Z("", !0),
|
|
9331
|
-
J("div",
|
|
9501
|
+
J("div", Mh, [e.smallHeading ? Z("", !0) : (G(), K("div", Nh)), e.showExpandAll ? (G(), K("div", Ph, [J("button", {
|
|
9332
9502
|
class: "g-tree-menu__expand-all-btn",
|
|
9333
9503
|
onClick: u
|
|
9334
9504
|
}, [(G(), K("svg", {
|
|
@@ -9341,10 +9511,10 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
9341
9511
|
"stroke-linecap": "round",
|
|
9342
9512
|
"stroke-linejoin": "round"
|
|
9343
9513
|
}, [...r[0] ||= [J("polyline", { points: "7 8 12 13 17 8" }, null, -1), J("polyline", { points: "7 13 12 18 17 13" }, null, -1)]], 2)), X(" " + M(l.value ? "Collapse all" : "Expand all"), 1)])])) : Z("", !0)]),
|
|
9344
|
-
J("div",
|
|
9514
|
+
J("div", Fh, [H(n.$slots, "default")])
|
|
9345
9515
|
], 16));
|
|
9346
9516
|
}
|
|
9347
|
-
}), [["styles", [""]]]),
|
|
9517
|
+
}), [["styles", [""]]]), Lh = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
9348
9518
|
name: "GTreeMenuList",
|
|
9349
9519
|
props: { listType: {
|
|
9350
9520
|
default: void 0,
|
|
@@ -9352,32 +9522,32 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
9352
9522
|
} },
|
|
9353
9523
|
setup(e) {
|
|
9354
9524
|
let t = e, n = Gn("g-tree-menu-list-type", "ul"), r = Q(() => t.listType ?? n ?? "ul"), i = dl(), a = qa();
|
|
9355
|
-
return
|
|
9525
|
+
return Wr(() => {
|
|
9356
9526
|
if (!i) return;
|
|
9357
9527
|
let e = a?.ce;
|
|
9358
9528
|
e && e.setAttribute("data-list-type", r.value);
|
|
9359
|
-
}), (e, t) => (G(), q(
|
|
9529
|
+
}), (e, t) => (G(), q(ti(I(i) ? "div" : r.value), {
|
|
9360
9530
|
role: I(i) ? "list" : void 0,
|
|
9361
9531
|
class: "g-tree-menu__list"
|
|
9362
9532
|
}, {
|
|
9363
|
-
default: L(() => [
|
|
9533
|
+
default: L(() => [H(e.$slots, "default")]),
|
|
9364
9534
|
_: 3
|
|
9365
9535
|
}, 8, ["role"]));
|
|
9366
9536
|
}
|
|
9367
|
-
}), [["styles", [""]]]),
|
|
9537
|
+
}), [["styles", [""]]]), Rh = {
|
|
9368
9538
|
key: 0,
|
|
9369
9539
|
class: "g-tree-menu__row"
|
|
9370
|
-
},
|
|
9540
|
+
}, zh = { class: "g-tree-menu__row-content-text" }, Bh = [
|
|
9371
9541
|
"aria-controls",
|
|
9372
9542
|
"aria-expanded",
|
|
9373
9543
|
"aria-label"
|
|
9374
|
-
],
|
|
9544
|
+
], Vh = {
|
|
9375
9545
|
key: 1,
|
|
9376
9546
|
class: "g-tree-menu__row g-tree-menu__row--leaf"
|
|
9377
|
-
},
|
|
9547
|
+
}, Hh = {
|
|
9378
9548
|
class: "g-tree-menu__row-content",
|
|
9379
9549
|
"data-tree-primary": ""
|
|
9380
|
-
},
|
|
9550
|
+
}, Uh = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
9381
9551
|
name: "GTreeMenuItem",
|
|
9382
9552
|
inheritAttrs: !1,
|
|
9383
9553
|
props: {
|
|
@@ -9389,7 +9559,7 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
9389
9559
|
},
|
|
9390
9560
|
emits: ["expand", "collapse"],
|
|
9391
9561
|
setup(e, { emit: t }) {
|
|
9392
|
-
let n = e, r = t, i =
|
|
9562
|
+
let n = e, r = t, i = li(), a = qa(), o = B(), s = (a?.ce)?._slots?.children?.length > 0, c = Q(() => !!i.children || s), l = Gn("g-tree-menu-expanded-storage", null), u = Q(() => {
|
|
9393
9563
|
let e = n.label?.trim();
|
|
9394
9564
|
return e ? `Submenu for ${e}` : "Submenu";
|
|
9395
9565
|
});
|
|
@@ -9420,33 +9590,33 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
9420
9590
|
h && c.value && h.set(m, e);
|
|
9421
9591
|
}), g && R(() => g.value.version, () => {
|
|
9422
9592
|
c.value && (f.value = g.value.expanded, _.value = g.value.version);
|
|
9423
|
-
}),
|
|
9593
|
+
}), Wr(() => {
|
|
9424
9594
|
v(), g && c.value && g.value.version > _.value && g.value.expanded && (f.value = !0, _.value = g.value.version);
|
|
9425
|
-
}),
|
|
9595
|
+
}), qr(() => {
|
|
9426
9596
|
y();
|
|
9427
9597
|
});
|
|
9428
9598
|
function b(e) {
|
|
9429
9599
|
e.target.closest("a, button") || p();
|
|
9430
9600
|
}
|
|
9431
9601
|
let x = dl(), S = a?.ce;
|
|
9432
|
-
|
|
9602
|
+
Wr(() => {
|
|
9433
9603
|
x && S && S.setAttribute("role", "listitem");
|
|
9434
9604
|
});
|
|
9435
|
-
let C =
|
|
9605
|
+
let C = ui(), w = Q(() => {
|
|
9436
9606
|
if (!x) return C;
|
|
9437
9607
|
let { role: e, ...t } = C;
|
|
9438
9608
|
return t;
|
|
9439
9609
|
});
|
|
9440
|
-
return (e, t) => (G(), q(
|
|
9610
|
+
return (e, t) => (G(), q(ti(I(x) ? "div" : "li"), Va(w.value, {
|
|
9441
9611
|
role: I(x) ? "presentation" : void 0,
|
|
9442
9612
|
class: "g-tree-menu__item",
|
|
9443
9613
|
"data-tree-expandable": c.value ? "true" : void 0
|
|
9444
9614
|
}), {
|
|
9445
|
-
default: L(() => [c.value ? (G(), K("div",
|
|
9615
|
+
default: L(() => [c.value ? (G(), K("div", Rh, [J("span", {
|
|
9446
9616
|
class: "g-tree-menu__row-content",
|
|
9447
9617
|
"data-tree-primary": "",
|
|
9448
9618
|
onClick: b
|
|
9449
|
-
}, [J("span",
|
|
9619
|
+
}, [J("span", zh, [H(e.$slots, "default")])]), J("button", {
|
|
9450
9620
|
type: "button",
|
|
9451
9621
|
class: "g-tree-menu__toggle-btn",
|
|
9452
9622
|
"aria-controls": I(o) + "-children",
|
|
@@ -9464,21 +9634,21 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
9464
9634
|
"stroke-width": "2.5",
|
|
9465
9635
|
"stroke-linecap": "round",
|
|
9466
9636
|
"stroke-linejoin": "round"
|
|
9467
|
-
}, [...t[0] ||= [J("polyline", { points: "9 18 15 12 9 6" }, null, -1)]], 2))], 8,
|
|
9637
|
+
}, [...t[0] ||= [J("polyline", { points: "9 18 15 12 9 6" }, null, -1)]], 2))], 8, Bh)])) : (G(), K("div", Vh, [t[1] ||= J("span", { class: "g-tree-menu__spacer" }, null, -1), J("span", Hh, [H(e.$slots, "default")])])), c.value && f.value ? (G(), q(Lh, {
|
|
9468
9638
|
key: 2,
|
|
9469
9639
|
id: I(o) + "-children"
|
|
9470
9640
|
}, {
|
|
9471
|
-
default: L(() => [
|
|
9641
|
+
default: L(() => [H(e.$slots, "children")]),
|
|
9472
9642
|
_: 3
|
|
9473
9643
|
}, 8, ["id"])) : Z("", !0)]),
|
|
9474
9644
|
_: 3
|
|
9475
9645
|
}, 16, ["role", "data-tree-expandable"]));
|
|
9476
9646
|
}
|
|
9477
|
-
}), [["styles", [""]]]),
|
|
9647
|
+
}), [["styles", [""]]]), Wh = { class: "g-user-menu" }, Gh = [
|
|
9478
9648
|
"aria-label",
|
|
9479
9649
|
"aria-expanded",
|
|
9480
9650
|
"onClick"
|
|
9481
|
-
],
|
|
9651
|
+
], Kh = { class: "g-user-menu__popover" }, qh = { class: "g-user-menu__list" }, Jh = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
9482
9652
|
__name: "GUserMenu",
|
|
9483
9653
|
props: {
|
|
9484
9654
|
initials: { type: String },
|
|
@@ -9493,10 +9663,10 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
9493
9663
|
}
|
|
9494
9664
|
},
|
|
9495
9665
|
setup(e) {
|
|
9496
|
-
let t = `${
|
|
9666
|
+
let t = `${B()}-email`, n = /* @__PURE__ */ F(!1), r = Ar("emailHeading");
|
|
9497
9667
|
qa()?.appContext?.components?.RouterLink;
|
|
9498
|
-
let i =
|
|
9499
|
-
return (a, o) => (G(), K("div",
|
|
9668
|
+
let i = li();
|
|
9669
|
+
return (a, o) => (G(), K("div", Wh, [Y(xf, {
|
|
9500
9670
|
modelValue: n.value,
|
|
9501
9671
|
"onUpdate:modelValue": o[0] ||= (e) => n.value = e,
|
|
9502
9672
|
minimal: ""
|
|
@@ -9508,8 +9678,8 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
9508
9678
|
"aria-expanded": n.value,
|
|
9509
9679
|
"aria-haspopup": "menu",
|
|
9510
9680
|
onClick: t
|
|
9511
|
-
}, M(e.initials), 13,
|
|
9512
|
-
default: L(() => [J("div",
|
|
9681
|
+
}, M(e.initials), 13, Gh)]),
|
|
9682
|
+
default: L(() => [J("div", Kh, [J("h2", {
|
|
9513
9683
|
id: t,
|
|
9514
9684
|
ref_key: "emailHeading",
|
|
9515
9685
|
ref: r,
|
|
@@ -9518,19 +9688,19 @@ var kp = { class: "g-table-outer-wrap" }, Ap = {
|
|
|
9518
9688
|
}, M(e.email), 513), J("nav", {
|
|
9519
9689
|
class: "g-user-menu__nav",
|
|
9520
9690
|
"aria-labelledby": t
|
|
9521
|
-
}, [J("ul",
|
|
9691
|
+
}, [J("ul", qh, [(G(!0), K(W, null, V(i.default(), (e, t) => (G(), K("li", { key: t }, [(G(), q(ti(e)))]))), 128))])])])]),
|
|
9522
9692
|
_: 1
|
|
9523
9693
|
}, 8, ["modelValue"])]));
|
|
9524
9694
|
}
|
|
9525
|
-
}), [["styles", [""]]]),
|
|
9526
|
-
|
|
9527
|
-
var
|
|
9695
|
+
}), [["styles", [""]]]), Yh = globalThis;
|
|
9696
|
+
Yh.__GRAD_VUE_IS_WEB_COMPONENTS_BUILD__ = !0;
|
|
9697
|
+
var Xh = {
|
|
9528
9698
|
shadowRoot: !1,
|
|
9529
9699
|
configureApp(e) {
|
|
9530
|
-
let t = (
|
|
9531
|
-
|
|
9700
|
+
let t = (Yh.__GRAD_VUE_WC_APP_ID__ ?? 0) + 1;
|
|
9701
|
+
Yh.__GRAD_VUE_WC_APP_ID__ = t, e.config.idPrefix = `g-wc-${t}-`;
|
|
9532
9702
|
}
|
|
9533
|
-
},
|
|
9703
|
+
}, Zh = [
|
|
9534
9704
|
["g-alert-dialog", Sl],
|
|
9535
9705
|
["g-app-header", kl],
|
|
9536
9706
|
["g-button", gl],
|
|
@@ -9558,21 +9728,20 @@ var jh = {
|
|
|
9558
9728
|
["g-sidebar", ap],
|
|
9559
9729
|
["g-sidebar-menu", lp],
|
|
9560
9730
|
["g-submit-button", up],
|
|
9561
|
-
["g-table",
|
|
9731
|
+
["g-table", nh],
|
|
9562
9732
|
["g-table-body", Tp],
|
|
9563
|
-
["g-
|
|
9564
|
-
["g-term-selector",
|
|
9565
|
-
["g-term-selector-control", Vm],
|
|
9733
|
+
["g-term-selector", uh],
|
|
9734
|
+
["g-term-selector-control", oh],
|
|
9566
9735
|
["g-text-input", cd],
|
|
9567
|
-
["g-textarea",
|
|
9568
|
-
["g-three-way-toggle",
|
|
9569
|
-
["g-tree-menu",
|
|
9570
|
-
["g-tree-menu-list",
|
|
9571
|
-
["g-tree-menu-item",
|
|
9572
|
-
["g-user-menu",
|
|
9736
|
+
["g-textarea", gh],
|
|
9737
|
+
["g-three-way-toggle", jh],
|
|
9738
|
+
["g-tree-menu", Ih],
|
|
9739
|
+
["g-tree-menu-list", Lh],
|
|
9740
|
+
["g-tree-menu-item", Uh],
|
|
9741
|
+
["g-user-menu", Jh]
|
|
9573
9742
|
];
|
|
9574
|
-
for (let [e, t] of
|
|
9575
|
-
let n = /* @__PURE__ */ xs(t,
|
|
9743
|
+
for (let [e, t] of Zh) {
|
|
9744
|
+
let n = /* @__PURE__ */ xs(t, Xh);
|
|
9576
9745
|
customElements.define(e, n);
|
|
9577
9746
|
}
|
|
9578
9747
|
//#endregion
|