@illinois-grad/grad-vue 7.2.1 → 7.2.3
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 +1 -1
- package/dist/components/GTable.vue.d.ts +2 -0
- package/dist/{grad-vue-DLfX6V2j.js → grad-vue-TtZgUEXw.js} +434 -405
- package/dist/grad-vue-TtZgUEXw.js.map +1 -0
- package/dist/grad-vue-elements.css +30 -30
- package/dist/grad-vue-elements.d.ts +1 -1
- package/dist/grad-vue-elements.js +444 -415
- package/dist/grad-vue-elements.js.map +1 -1
- package/dist/grad-vue.css +1 -1
- package/dist/grad-vue.js +1 -1
- package/dist/plugin.js +1 -1
- package/package.json +1 -1
- package/dist/grad-vue-DLfX6V2j.js.map +0 -1
|
@@ -11,7 +11,7 @@ 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())), te = /\B([A-Z])/g, O = E((e) => e.replace(te, "-$1").toLowerCase()),
|
|
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), A = (e, ...t) => {
|
|
15
15
|
for (let n = 0; n < e.length; n++) e[n](...t);
|
|
16
16
|
}, ie = (e, t, n, r = !1) => {
|
|
17
17
|
Object.defineProperty(e, t, {
|
|
@@ -283,7 +283,7 @@ function Be(e) {
|
|
|
283
283
|
try {
|
|
284
284
|
Le(e);
|
|
285
285
|
let n = e.fn(e._value);
|
|
286
|
-
(t.version === 0 ||
|
|
286
|
+
(t.version === 0 || k(n, e._value)) && (e.flags |= 128, e._value = n, t.version++);
|
|
287
287
|
} catch (e) {
|
|
288
288
|
throw t.version++, e;
|
|
289
289
|
} finally {
|
|
@@ -585,7 +585,7 @@ var vt = class {
|
|
|
585
585
|
if (!/* @__PURE__ */ qt(n) && !/* @__PURE__ */ Kt(n) && (i = /* @__PURE__ */ P(i), n = /* @__PURE__ */ P(n)), !a && /* @__PURE__ */ Qt(i) && !/* @__PURE__ */ Qt(n)) return e || (i.value = n), !0;
|
|
586
586
|
}
|
|
587
587
|
let o = a ? Number(t) < e.length : u(e, t), s = Reflect.set(e, t, n, /* @__PURE__ */ Qt(e) ? e : r);
|
|
588
|
-
return e === /* @__PURE__ */ P(r) && s && (o ?
|
|
588
|
+
return e === /* @__PURE__ */ P(r) && s && (o ? k(n, i) && rt(e, "set", t, n, i) : rt(e, "add", t, n)), s;
|
|
589
589
|
}
|
|
590
590
|
deleteProperty(e, t) {
|
|
591
591
|
let n = u(e, t), r = e[t], i = Reflect.deleteProperty(e, t);
|
|
@@ -633,7 +633,7 @@ function kt(e, t) {
|
|
|
633
633
|
let n = {
|
|
634
634
|
get(n) {
|
|
635
635
|
let r = this.__v_raw, i = /* @__PURE__ */ P(r), a = /* @__PURE__ */ P(n);
|
|
636
|
-
e || (
|
|
636
|
+
e || (k(n, a) && nt(i, "get", n), nt(i, "get", a));
|
|
637
637
|
let { has: o } = Et(i), s = t ? Tt : e ? Zt : Xt;
|
|
638
638
|
if (o.call(i, n)) return s(r.get(n));
|
|
639
639
|
if (o.call(i, a)) return s(r.get(a));
|
|
@@ -645,7 +645,7 @@ function kt(e, t) {
|
|
|
645
645
|
},
|
|
646
646
|
has(t) {
|
|
647
647
|
let n = this.__v_raw, r = /* @__PURE__ */ P(n), i = /* @__PURE__ */ P(t);
|
|
648
|
-
return e || (
|
|
648
|
+
return e || (k(t, i) && nt(r, "has", t), nt(r, "has", i)), t === i ? n.has(t) : n.has(t) || n.has(i);
|
|
649
649
|
},
|
|
650
650
|
forEach(n, r) {
|
|
651
651
|
let i = this, a = i.__v_raw, o = /* @__PURE__ */ P(a), s = t ? Tt : e ? Zt : Xt;
|
|
@@ -660,14 +660,14 @@ function kt(e, t) {
|
|
|
660
660
|
} : {
|
|
661
661
|
add(e) {
|
|
662
662
|
let n = /* @__PURE__ */ P(this), r = Et(n), i = /* @__PURE__ */ P(e), a = !t && !/* @__PURE__ */ qt(e) && !/* @__PURE__ */ Kt(e) ? i : e;
|
|
663
|
-
return r.has.call(n, a) ||
|
|
663
|
+
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), rt(n, "add", a, a)), this;
|
|
664
664
|
},
|
|
665
665
|
set(e, n) {
|
|
666
666
|
!t && !/* @__PURE__ */ qt(n) && !/* @__PURE__ */ Kt(n) && (n = /* @__PURE__ */ P(n));
|
|
667
667
|
let r = /* @__PURE__ */ P(this), { has: i, get: a } = Et(r), o = i.call(r, e);
|
|
668
668
|
o ||= (e = /* @__PURE__ */ P(e), i.call(r, e));
|
|
669
669
|
let s = a.call(r, e);
|
|
670
|
-
return r.set(e, n), o ?
|
|
670
|
+
return r.set(e, n), o ? k(n, s) && rt(r, "set", e, n, s) : rt(r, "add", e, n), this;
|
|
671
671
|
},
|
|
672
672
|
delete(e) {
|
|
673
673
|
let t = /* @__PURE__ */ P(this), { has: n, get: r } = Et(t), i = n.call(t, e);
|
|
@@ -778,7 +778,7 @@ var tn = class {
|
|
|
778
778
|
}
|
|
779
779
|
set value(e) {
|
|
780
780
|
let t = this._rawValue, n = this.__v_isShallow || /* @__PURE__ */ qt(e) || /* @__PURE__ */ Kt(e);
|
|
781
|
-
e = n ? e : /* @__PURE__ */ P(e),
|
|
781
|
+
e = n ? e : /* @__PURE__ */ P(e), k(e, t) && (this._rawValue = e, this._value = n ? e : Xt(e), this.dep.trigger());
|
|
782
782
|
}
|
|
783
783
|
};
|
|
784
784
|
function I(e) {
|
|
@@ -921,7 +921,7 @@ function vn(e, n, i = t) {
|
|
|
921
921
|
if (m.flags & 1 && (m.dirty || e)) {
|
|
922
922
|
if (n) {
|
|
923
923
|
let t = m.run();
|
|
924
|
-
if (e || o || y || (b ? t.some((e, t) =>
|
|
924
|
+
if (e || o || y || (b ? t.some((e, t) => k(e, C[t])) : k(t, C))) {
|
|
925
925
|
_ && _();
|
|
926
926
|
let e = gn;
|
|
927
927
|
gn = m;
|
|
@@ -1585,14 +1585,14 @@ function ri(e, t, n = !0, r = !1) {
|
|
|
1585
1585
|
let n = i.type;
|
|
1586
1586
|
if (e === ei) {
|
|
1587
1587
|
let e = co(n, !1);
|
|
1588
|
-
if (e && (e === t || e === D(t) || e ===
|
|
1588
|
+
if (e && (e === t || e === D(t) || e === ne(D(t)))) return n;
|
|
1589
1589
|
}
|
|
1590
1590
|
let a = ii(i[e] || n[e], t) || ii(i.appContext[e], t);
|
|
1591
1591
|
return !a && r ? n : a;
|
|
1592
1592
|
}
|
|
1593
1593
|
}
|
|
1594
1594
|
function ii(e, t) {
|
|
1595
|
-
return e && (e[t] || e[D(t)] || e[
|
|
1595
|
+
return e && (e[t] || e[D(t)] || e[ne(D(t))]);
|
|
1596
1596
|
}
|
|
1597
1597
|
function V(e, t, n, r) {
|
|
1598
1598
|
let i, a = n && n[r], o = d(e);
|
|
@@ -1714,7 +1714,7 @@ var mi = !0;
|
|
|
1714
1714
|
function hi(e) {
|
|
1715
1715
|
let t = yi(e), n = e.proxy, i = e.ctx;
|
|
1716
1716
|
mi = !1, t.beforeCreate && _i(t.beforeCreate, e, "bc");
|
|
1717
|
-
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:
|
|
1717
|
+
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: A } = t;
|
|
1718
1718
|
if (u && gi(u, i, null), s) for (let e in s) {
|
|
1719
1719
|
let t = s[e];
|
|
1720
1720
|
h(t) && (i[e] = t.bind(n));
|
|
@@ -1758,7 +1758,7 @@ function hi(e) {
|
|
|
1758
1758
|
});
|
|
1759
1759
|
} else e.exposed ||= {};
|
|
1760
1760
|
}
|
|
1761
|
-
T && e.render === r && (e.render = T),
|
|
1761
|
+
T && e.render === r && (e.render = T), ne != null && (e.inheritAttrs = ne), re && (e.components = re), k && (e.directives = k), te && Ar(e);
|
|
1762
1762
|
}
|
|
1763
1763
|
function gi(e, t, n = r) {
|
|
1764
1764
|
d(e) && (e = wi(e));
|
|
@@ -1943,16 +1943,16 @@ function Ni(e, n, r = t) {
|
|
|
1943
1943
|
let l, u = t, d;
|
|
1944
1944
|
return Zn(() => {
|
|
1945
1945
|
let t = e[a];
|
|
1946
|
-
|
|
1946
|
+
k(l, t) && (l = t, c());
|
|
1947
1947
|
}), {
|
|
1948
1948
|
get() {
|
|
1949
1949
|
return s(), r.get ? r.get(l) : l;
|
|
1950
1950
|
},
|
|
1951
1951
|
set(e) {
|
|
1952
1952
|
let s = r.set ? r.set(e) : e;
|
|
1953
|
-
if (!
|
|
1953
|
+
if (!k(s, l) && !(u !== t && k(e, u))) return;
|
|
1954
1954
|
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));
|
|
1955
|
-
p || (l = e, c()), i.emit(`update:${n}`, s),
|
|
1955
|
+
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;
|
|
1956
1956
|
}
|
|
1957
1957
|
};
|
|
1958
1958
|
});
|
|
@@ -1971,8 +1971,8 @@ function Fi(e, n, ...r) {
|
|
|
1971
1971
|
if (e.isUnmounted) return;
|
|
1972
1972
|
let i = e.vnode.props || t, a = r, o = n.startsWith("update:"), s = o && Pi(i, n.slice(7));
|
|
1973
1973
|
s && (s.trim && (a = r.map((e) => g(e) ? e.trim() : e)), s.number && (a = a.map(ae)));
|
|
1974
|
-
let c, l = i[c =
|
|
1975
|
-
!l && o && (l = i[c =
|
|
1974
|
+
let c, l = i[c = re(n)] || i[c = re(D(n))];
|
|
1975
|
+
!l && o && (l = i[c = re(O(n))]), l && xn(l, e, 6, a);
|
|
1976
1976
|
let u = i[c + "Once"];
|
|
1977
1977
|
if (u) {
|
|
1978
1978
|
if (!e.emitted) e.emitted = {};
|
|
@@ -2231,9 +2231,9 @@ function fa(e, i) {
|
|
|
2231
2231
|
e ?? x(t, r, i, s);
|
|
2232
2232
|
break;
|
|
2233
2233
|
case W:
|
|
2234
|
-
|
|
2234
|
+
re(e, t, r, i, a, o, s, c, l);
|
|
2235
2235
|
break;
|
|
2236
|
-
default: f & 1 ? w(e, t, r, i, a, o, s, c, l) : f & 6 ?
|
|
2236
|
+
default: f & 1 ? w(e, t, r, i, a, o, s, c, l) : f & 6 ? k(e, t, r, i, a, o, s, c, l) : (f & 64 || f & 128) && u.process(e, t, r, i, a, o, s, c, l, be);
|
|
2237
2237
|
}
|
|
2238
2238
|
d != null && a ? Pr(d, e && e.ref, o, t || e, !t) : d == null && e && e.ref != null && Pr(e.ref, null, o, e, !0);
|
|
2239
2239
|
}, y = (e, t, n, r) => {
|
|
@@ -2296,7 +2296,7 @@ function fa(e, i) {
|
|
|
2296
2296
|
u |= e.patchFlag & 16;
|
|
2297
2297
|
let m = e.props || t, h = n.props || t, g;
|
|
2298
2298
|
if (r && ma(r, !1), (g = h.onVnodeBeforeUpdate) && Ua(g, r, n, e), f && Wn(n, e, r, "beforeUpdate"), r && ma(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, pa(n, a), o) : s || le(e, n, l, null, r, i, pa(n, a), o, !1), u > 0) {
|
|
2299
|
-
if (u & 16)
|
|
2299
|
+
if (u & 16) ne(l, m, h, r, a);
|
|
2300
2300
|
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) {
|
|
2301
2301
|
let e = n.dynamicProps;
|
|
2302
2302
|
for (let t = 0; t < e.length; t++) {
|
|
@@ -2305,7 +2305,7 @@ function fa(e, i) {
|
|
|
2305
2305
|
}
|
|
2306
2306
|
}
|
|
2307
2307
|
u & 1 && e.children !== n.children && p(l, n.children);
|
|
2308
|
-
} else !s && d == null &&
|
|
2308
|
+
} else !s && d == null && ne(l, m, h, r, a);
|
|
2309
2309
|
((g = h.onVnodeUpdated) || f) && ua(() => {
|
|
2310
2310
|
g && Ua(g, r, n, e), f && Wn(n, e, r, "updated");
|
|
2311
2311
|
}, i);
|
|
@@ -2314,7 +2314,7 @@ function fa(e, i) {
|
|
|
2314
2314
|
let c = e[s], l = t[s], u = c.el && (c.type === W || !Na(c, l) || c.shapeFlag & 198) ? m(c.el) : n;
|
|
2315
2315
|
v(c, l, u, null, r, i, a, o, !0);
|
|
2316
2316
|
}
|
|
2317
|
-
},
|
|
2317
|
+
}, ne = (e, n, r, i, a) => {
|
|
2318
2318
|
if (n !== r) {
|
|
2319
2319
|
if (n !== t) for (let t in n) !T(t) && !(t in r) && c(e, t, n[t], null, a, i);
|
|
2320
2320
|
for (let t in r) {
|
|
@@ -2324,10 +2324,10 @@ function fa(e, i) {
|
|
|
2324
2324
|
}
|
|
2325
2325
|
"value" in r && c(e, "value", n.value, r.value, a);
|
|
2326
2326
|
}
|
|
2327
|
-
},
|
|
2327
|
+
}, re = (e, t, n, r, i, a, s, c, l) => {
|
|
2328
2328
|
let d = t.el = e ? e.el : u(""), f = t.anchor = e ? e.anchor : u(""), { patchFlag: p, dynamicChildren: m, slotScopeIds: h } = t;
|
|
2329
2329
|
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) && ga(e, t, !0)) : le(e, t, n, f, i, a, s, c, l);
|
|
2330
|
-
},
|
|
2330
|
+
}, k = (e, t, n, r, i, a, o, s, c) => {
|
|
2331
2331
|
t.slotScopeIds = s, e == null ? t.shapeFlag & 512 ? i.ctx.activate(t, n, r, o, c) : ie(t, n, r, i, a, o, c) : ae(e, t, c);
|
|
2332
2332
|
}, ie = (e, t, n, r, i, a, o) => {
|
|
2333
2333
|
let s = e.component = Ka(e, r, i);
|
|
@@ -2362,12 +2362,12 @@ function fa(e, i) {
|
|
|
2362
2362
|
}
|
|
2363
2363
|
}
|
|
2364
2364
|
let u = t, d;
|
|
2365
|
-
ma(e, !1), t ? (t.el = c.el, se(e, t, o)) : t = c, n &&
|
|
2365
|
+
ma(e, !1), t ? (t.el = c.el, se(e, t, o)) : t = c, n && A(n), (d = t.props && t.props.onVnodeBeforeUpdate) && Ua(d, s, t, c), ma(e, !0);
|
|
2366
2366
|
let f = zi(e), p = e.subTree;
|
|
2367
2367
|
e.subTree = f, v(p, f, m(p.el), _e(p), e, i, a), t.el = f.el, u === null && Gi(e, f.el), r && ua(r, i), (d = t.props && t.props.onVnodeUpdated) && ua(() => Ua(d, s, t, c), i);
|
|
2368
2368
|
} else {
|
|
2369
2369
|
let o, { el: s, props: c } = t, { bm: l, m: u, parent: d, root: f, type: p } = e, m = Ir(t);
|
|
2370
|
-
if (ma(e, !1), l &&
|
|
2370
|
+
if (ma(e, !1), l && A(l), !m && (o = c && c.onVnodeBeforeMount) && Ua(o, d, t), ma(e, !0), s && Se) {
|
|
2371
2371
|
let t = () => {
|
|
2372
2372
|
e.subTree = zi(e), Se(s, e.subTree, e, i, null);
|
|
2373
2373
|
};
|
|
@@ -2528,7 +2528,7 @@ function fa(e, i) {
|
|
|
2528
2528
|
s(t);
|
|
2529
2529
|
}, he = (e, t, n) => {
|
|
2530
2530
|
let { bum: r, scope: i, job: a, subTree: o, um: s, m: c, a: l } = e;
|
|
2531
|
-
ya(c), ya(l), r &&
|
|
2531
|
+
ya(c), ya(l), r && A(r), i.stop(), a ? (a.flags |= 8, pe(o, e, t, n)) : e.vnode.el && o && (o.transition = e.vnode.transition, pe(o, e, t, n)), s && ua(s, t), ua(() => {
|
|
2532
2532
|
e.isUnmounted = !0;
|
|
2533
2533
|
}, t);
|
|
2534
2534
|
}, ge = (e, t, n, r = !1, i = !1, a = 0) => {
|
|
@@ -3192,7 +3192,7 @@ function $o(e, t) {
|
|
|
3192
3192
|
if (n) return n;
|
|
3193
3193
|
let r = D(t);
|
|
3194
3194
|
if (r !== "filter" && r in e) return Qo[t] = r;
|
|
3195
|
-
r =
|
|
3195
|
+
r = ne(r);
|
|
3196
3196
|
for (let n = 0; n < Zo.length; n++) {
|
|
3197
3197
|
let i = Zo[n] + r;
|
|
3198
3198
|
if (i in e) return Qo[t] = i;
|
|
@@ -5196,7 +5196,7 @@ var du = /* @__PURE__ */ z({
|
|
|
5196
5196
|
let t = e?.previousElementSibling;
|
|
5197
5197
|
return t instanceof HTMLElement ? t : null;
|
|
5198
5198
|
}
|
|
5199
|
-
function
|
|
5199
|
+
function ne() {
|
|
5200
5200
|
if (!l.value || !u.value) return;
|
|
5201
5201
|
let e = l.value, t = u.value, n = new DOMRect(0, 0, window.innerWidth, window.innerHeight), i = Math.max(n.height - 32, 0), a = window.getComputedStyle(e), o = t.offsetHeight + Number.parseFloat(a.paddingTop) + Number.parseFloat(a.paddingBottom) + Number.parseFloat(a.borderTopWidth) + Number.parseFloat(a.borderBottomWidth);
|
|
5202
5202
|
ee.value = o > i, D.value = ee.value ? i : null;
|
|
@@ -5220,10 +5220,10 @@ var du = /* @__PURE__ */ z({
|
|
|
5220
5220
|
}
|
|
5221
5221
|
return R(a, (e) => {
|
|
5222
5222
|
e ? jn(() => {
|
|
5223
|
-
|
|
5224
|
-
}) : (window.removeEventListener("resize",
|
|
5223
|
+
ne(), window.addEventListener("resize", ne), window.addEventListener("scroll", ne, { capture: !0 }), l.value && (te && te.disconnect(), te = new ResizeObserver(() => ne()), u.value && te.observe(u.value));
|
|
5224
|
+
}) : (window.removeEventListener("resize", ne), window.removeEventListener("scroll", ne, { capture: !0 }), te && te.disconnect());
|
|
5225
5225
|
}), Jr(() => {
|
|
5226
|
-
window.removeEventListener("resize",
|
|
5226
|
+
window.removeEventListener("resize", ne), window.removeEventListener("scroll", ne, { capture: !0 }), te && te.disconnect();
|
|
5227
5227
|
}), t({
|
|
5228
5228
|
show: b,
|
|
5229
5229
|
hide: x,
|
|
@@ -6866,13 +6866,13 @@ var Kd = ["id", "for"], qd = {
|
|
|
6866
6866
|
let t = e.relatedTarget;
|
|
6867
6867
|
t && c.value?.contains(t) || t && s.value?.contains(t) || w();
|
|
6868
6868
|
}
|
|
6869
|
-
function
|
|
6869
|
+
function ne(e) {
|
|
6870
6870
|
e.preventDefault();
|
|
6871
6871
|
}
|
|
6872
|
-
function
|
|
6872
|
+
function re() {
|
|
6873
6873
|
f.value = !0;
|
|
6874
6874
|
}
|
|
6875
|
-
function
|
|
6875
|
+
function k(e) {
|
|
6876
6876
|
if (n.disabled) return;
|
|
6877
6877
|
let t = b.value.length - 1;
|
|
6878
6878
|
switch (e.key) {
|
|
@@ -6900,7 +6900,7 @@ var Kd = ["id", "for"], qd = {
|
|
|
6900
6900
|
case "Backspace": !d.value && i.value.length > 0 && E(i.value[i.value.length - 1]);
|
|
6901
6901
|
}
|
|
6902
6902
|
}
|
|
6903
|
-
let
|
|
6903
|
+
let A = Q(() => `${a}-input`), ie = Q(() => `${a}-label`), ae = Q(() => `${a}-instructions`), oe = Q(() => `error-message-${a}`), se = Q(() => {
|
|
6904
6904
|
let e = [];
|
|
6905
6905
|
return n.instructions && e.push(ae.value), m.value && e.push(oe.value), e.length > 0 ? e.join(" ") : void 0;
|
|
6906
6906
|
});
|
|
@@ -6911,7 +6911,7 @@ var Kd = ["id", "for"], qd = {
|
|
|
6911
6911
|
e.hiddenLabel ? Z("", !0) : (G(), K("label", {
|
|
6912
6912
|
key: 0,
|
|
6913
6913
|
id: ie.value,
|
|
6914
|
-
for:
|
|
6914
|
+
for: A.value,
|
|
6915
6915
|
class: "g-multiselect-label"
|
|
6916
6916
|
}, [X(M(e.label), 1), e.required ? (G(), K("span", qd, " *")) : Z("", !0)], 8, Kd)),
|
|
6917
6917
|
e.instructions ? (G(), K("div", {
|
|
@@ -6937,7 +6937,7 @@ var Kd = ["id", "for"], qd = {
|
|
|
6937
6937
|
class: "g-multiselect-chip-remove",
|
|
6938
6938
|
"aria-label": `Remove ${S(t)}`,
|
|
6939
6939
|
disabled: e.disabled,
|
|
6940
|
-
onMousedown:
|
|
6940
|
+
onMousedown: re,
|
|
6941
6941
|
onClick: Ts((e) => E(t), ["stop"])
|
|
6942
6942
|
}, [...n[0] ||= [J("svg", {
|
|
6943
6943
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6954,7 +6954,7 @@ var Kd = ["id", "for"], qd = {
|
|
|
6954
6954
|
type: "text",
|
|
6955
6955
|
role: "combobox",
|
|
6956
6956
|
class: "g-multiselect-input",
|
|
6957
|
-
id:
|
|
6957
|
+
id: A.value,
|
|
6958
6958
|
value: d.value,
|
|
6959
6959
|
placeholder: i.value.length === 0 ? e.placeholder : void 0,
|
|
6960
6960
|
disabled: e.disabled,
|
|
@@ -6968,7 +6968,7 @@ var Kd = ["id", "for"], qd = {
|
|
|
6968
6968
|
"aria-describedby": se.value,
|
|
6969
6969
|
"aria-required": e.required ? "true" : void 0,
|
|
6970
6970
|
onInput: D,
|
|
6971
|
-
onKeydown:
|
|
6971
|
+
onKeydown: k,
|
|
6972
6972
|
onFocus: te,
|
|
6973
6973
|
onBlur: O
|
|
6974
6974
|
}), null, 16, Qd),
|
|
@@ -7001,7 +7001,7 @@ var Kd = ["id", "for"], qd = {
|
|
|
7001
7001
|
"g-multiselect-option--selected": x(e.value)
|
|
7002
7002
|
}]),
|
|
7003
7003
|
"aria-selected": x(e.value) ? "true" : "false",
|
|
7004
|
-
onMousedown:
|
|
7004
|
+
onMousedown: ne,
|
|
7005
7005
|
onClick: (e) => T(t)
|
|
7006
7006
|
}, [J("span", tf, [x(e.value) ? (G(), K("svg", nf, [...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", rf, [J("span", af, M(e.label), 1), e.description ? (G(), K("span", of, M(e.description), 1)) : Z("", !0)])], 42, ef))), 128)) : (G(), K("div", sf, " No results found. "))], 16, $d), [[Wo, l.value]])
|
|
7007
7007
|
], 2),
|
|
@@ -7502,14 +7502,14 @@ var Kd = ["id", "for"], qd = {
|
|
|
7502
7502
|
}, 0));
|
|
7503
7503
|
}
|
|
7504
7504
|
}
|
|
7505
|
-
function
|
|
7505
|
+
function ne(e) {
|
|
7506
7506
|
D(e);
|
|
7507
7507
|
}
|
|
7508
|
-
function
|
|
7508
|
+
function re() {
|
|
7509
7509
|
d.value = !0;
|
|
7510
7510
|
}
|
|
7511
|
-
let
|
|
7512
|
-
function
|
|
7511
|
+
let k = Q(() => n.clearButton && i.value !== null && i.value !== void 0 && !n.disabled);
|
|
7512
|
+
function A() {
|
|
7513
7513
|
n.disabled || (i.value = null, r("change", null), n.searchable && (b.value = ""));
|
|
7514
7514
|
}
|
|
7515
7515
|
return (t, r) => (G(), K("div", { class: j(["g-select-root g-select-combo", {
|
|
@@ -7550,11 +7550,11 @@ var Kd = ["id", "for"], qd = {
|
|
|
7550
7550
|
role: "combobox",
|
|
7551
7551
|
autocomplete: "off"
|
|
7552
7552
|
}), null, 16, jf),
|
|
7553
|
-
|
|
7553
|
+
k.value ? (G(), K("button", {
|
|
7554
7554
|
key: 0,
|
|
7555
7555
|
type: "button",
|
|
7556
7556
|
class: "g-select-clear-btn",
|
|
7557
|
-
onClick:
|
|
7557
|
+
onClick: A
|
|
7558
7558
|
}, [...r[0] ||= [J("svg", {
|
|
7559
7559
|
role: "img",
|
|
7560
7560
|
"aria-label": "Clear Selection",
|
|
@@ -7595,11 +7595,11 @@ var Kd = ["id", "for"], qd = {
|
|
|
7595
7595
|
onBlur: ee
|
|
7596
7596
|
}), [
|
|
7597
7597
|
X(M(y.value[S.value] ? y.value[S.value].label : "") + " ", 1),
|
|
7598
|
-
|
|
7598
|
+
k.value ? (G(), K("button", {
|
|
7599
7599
|
key: 0,
|
|
7600
7600
|
type: "button",
|
|
7601
7601
|
class: "g-select-clear-btn",
|
|
7602
|
-
onClick: Ts(
|
|
7602
|
+
onClick: Ts(A, ["stop"])
|
|
7603
7603
|
}, [...r[2] ||= [J("svg", {
|
|
7604
7604
|
role: "img",
|
|
7605
7605
|
"aria-label": "Clear Selection",
|
|
@@ -7636,8 +7636,8 @@ var Kd = ["id", "for"], qd = {
|
|
|
7636
7636
|
}]),
|
|
7637
7637
|
role: "option",
|
|
7638
7638
|
"aria-selected": e.value === i.value ? "true" : "false",
|
|
7639
|
-
onMousedown:
|
|
7640
|
-
onClick: (e) =>
|
|
7639
|
+
onMousedown: re,
|
|
7640
|
+
onClick: (e) => ne(n)
|
|
7641
7641
|
}, [H(t.$slots, "option", {
|
|
7642
7642
|
option: e,
|
|
7643
7643
|
selected: e.value === i.value,
|
|
@@ -8028,27 +8028,31 @@ var qf = ["id"], Jf = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
|
8028
8028
|
],
|
|
8029
8029
|
setup(e, { emit: t }) {
|
|
8030
8030
|
let n = e, r = t;
|
|
8031
|
-
function i(e
|
|
8032
|
-
|
|
8031
|
+
function i(e) {
|
|
8032
|
+
let t = e.currentTarget, n = e.target.closest("a,button,[tabindex],input");
|
|
8033
|
+
return !!n && t.contains(n);
|
|
8033
8034
|
}
|
|
8034
8035
|
function a(e, t) {
|
|
8035
|
-
|
|
8036
|
-
|
|
8037
|
-
|
|
8038
|
-
|
|
8036
|
+
n.bulkSelectionEnabled && e.shiftKey && !i(e) && e.preventDefault();
|
|
8037
|
+
}
|
|
8038
|
+
function o(e, t) {
|
|
8039
|
+
if (!n.rowClickable && !n.bulkSelectionEnabled || i(e)) return;
|
|
8040
|
+
let a = e.target.closest("tr");
|
|
8041
|
+
if (a) {
|
|
8042
|
+
if (n.bulkSelectionEnabled) a.querySelector("input[type=checkbox]") && c(t, e.shiftKey);
|
|
8039
8043
|
else if (n.rowClickable) {
|
|
8040
|
-
let e =
|
|
8044
|
+
let e = a.querySelector("a[href]")?.getAttribute("href");
|
|
8041
8045
|
e && r("row-click", e);
|
|
8042
8046
|
}
|
|
8043
8047
|
}
|
|
8044
8048
|
}
|
|
8045
|
-
function
|
|
8049
|
+
function s(e) {
|
|
8046
8050
|
return n.selectedRows?.includes(e) ?? !1;
|
|
8047
8051
|
}
|
|
8048
|
-
function
|
|
8052
|
+
function c(e, t = !1) {
|
|
8049
8053
|
r("toggle-row", e, t);
|
|
8050
8054
|
}
|
|
8051
|
-
function
|
|
8055
|
+
function l(e, t, n) {
|
|
8052
8056
|
let i = e.target.value;
|
|
8053
8057
|
r("cell-change", {
|
|
8054
8058
|
row: t,
|
|
@@ -8056,30 +8060,30 @@ var qf = ["id"], Jf = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
|
8056
8060
|
value: i
|
|
8057
8061
|
});
|
|
8058
8062
|
}
|
|
8059
|
-
function
|
|
8063
|
+
function u(e, t) {
|
|
8060
8064
|
let r = `${n.tableId}-th-${String(t.key)}`;
|
|
8061
8065
|
return t.editable?.labelKey ? `${`${n.tableId}-td-${e.key}-${t.editable.labelKey}`} ${r} ` : r;
|
|
8062
8066
|
}
|
|
8063
|
-
let
|
|
8067
|
+
let d = Q(() => {
|
|
8064
8068
|
for (let e of n.columns) if (e.editable?.labelKey) return e.editable.labelKey;
|
|
8065
|
-
}),
|
|
8066
|
-
function
|
|
8067
|
-
return e.key ===
|
|
8069
|
+
}), f = Q(() => Math.max(n.columns.length, 1));
|
|
8070
|
+
function p(e) {
|
|
8071
|
+
return e.key === d.value;
|
|
8068
8072
|
}
|
|
8069
|
-
function
|
|
8073
|
+
function m(e, t) {
|
|
8070
8074
|
return n.changeTracker ? n.changeTracker.hasChange(e.key, t.key) : !1;
|
|
8071
8075
|
}
|
|
8072
|
-
function
|
|
8076
|
+
function h(e, t) {
|
|
8073
8077
|
return n.changeTracker ? n.changeTracker.hasError(e.key, t.key) : !1;
|
|
8074
8078
|
}
|
|
8075
|
-
function
|
|
8079
|
+
function g(e, t) {
|
|
8076
8080
|
if (n.changeTracker) return n.changeTracker.getError(e.key, t.key);
|
|
8077
8081
|
}
|
|
8078
8082
|
return (t, n) => (G(), K("tbody", ep, [(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", {
|
|
8079
8083
|
key: 0,
|
|
8080
8084
|
"aria-rowindex": e.startIndex + r + 2
|
|
8081
8085
|
}, [e.bulkSelectionEnabled ? (G(), K("td", np)) : Z("", !0), J("td", {
|
|
8082
|
-
colspan:
|
|
8086
|
+
colspan: f.value,
|
|
8083
8087
|
class: "table-group-row"
|
|
8084
8088
|
}, [e.groupRender ? (G(), q(ni(e.groupRender(t[e.groupBy], t)), { key: 0 })) : (G(), K(W, { key: 1 }, [X(M(t[e.groupBy]), 1)], 64))], 8, rp)], 8, tp)) : Z("", !0), J("tr", {
|
|
8085
8089
|
class: j([
|
|
@@ -8091,26 +8095,26 @@ var qf = ["id"], Jf = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
|
8091
8095
|
e.rowClass ? e.rowClass(t) : void 0
|
|
8092
8096
|
]),
|
|
8093
8097
|
"aria-rowindex": e.startIndex + r + 2,
|
|
8094
|
-
onMousedown: (e) =>
|
|
8095
|
-
onClick: (e) =>
|
|
8098
|
+
onMousedown: (e) => a(e, t.key),
|
|
8099
|
+
onClick: (e) => o(e, t.key)
|
|
8096
8100
|
}, [e.bulkSelectionEnabled ? (G(), K("td", {
|
|
8097
8101
|
key: 0,
|
|
8098
8102
|
class: "td-checkbox",
|
|
8099
8103
|
onClick: n[0] ||= Ts(() => {}, ["stop"])
|
|
8100
8104
|
}, [J("input", {
|
|
8101
8105
|
type: "checkbox",
|
|
8102
|
-
checked:
|
|
8103
|
-
onClick: (e) =>
|
|
8106
|
+
checked: s(t.key),
|
|
8107
|
+
onClick: (e) => c(t.key, e.shiftKey),
|
|
8104
8108
|
"aria-label": `Select row ${t.key}`,
|
|
8105
8109
|
name: `row-${t.key}-checkbox`,
|
|
8106
8110
|
class: "g-bulk-select-checkbox"
|
|
8107
8111
|
}, null, 8, ap)])) : Z("", !0), (G(!0), K(W, null, V(e.columns, (n) => (G(), K("td", {
|
|
8108
8112
|
key: n.key,
|
|
8109
|
-
id:
|
|
8113
|
+
id: p(n) ? `${e.tableId}-td-${t.key}-${String(n.key)}` : void 0,
|
|
8110
8114
|
class: j([
|
|
8111
8115
|
n.editable ? "editable-td" : "",
|
|
8112
|
-
|
|
8113
|
-
|
|
8116
|
+
m(t, n) ? "g-cell-changed" : "",
|
|
8117
|
+
h(t, n) ? "g-cell-error" : "",
|
|
8114
8118
|
typeof n.tdClass == "function" ? n.tdClass(t) : n.tdClass
|
|
8115
8119
|
])
|
|
8116
8120
|
}, [n.editable ? (G(), K("div", sp, [
|
|
@@ -8118,10 +8122,10 @@ var qf = ["id"], Jf = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
|
8118
8122
|
n.editable.type === "select" ? (G(), K("select", {
|
|
8119
8123
|
key: 1,
|
|
8120
8124
|
value: t[n.key],
|
|
8121
|
-
onChange: (e) =>
|
|
8122
|
-
"aria-labelledby":
|
|
8123
|
-
"aria-invalid":
|
|
8124
|
-
"aria-errormessage":
|
|
8125
|
+
onChange: (e) => l(e, t, n),
|
|
8126
|
+
"aria-labelledby": u(t, n),
|
|
8127
|
+
"aria-invalid": h(t, n),
|
|
8128
|
+
"aria-errormessage": h(t, n) ? `${e.tableId}-error-${t.key}-${String(n.key)}` : void 0,
|
|
8125
8129
|
name: `row-${t.key}-${String(n.key)}-select`,
|
|
8126
8130
|
class: "editable-input editable-select"
|
|
8127
8131
|
}, [(G(!0), K(W, null, V(n.editable.options, (e) => (G(), K("option", {
|
|
@@ -8131,10 +8135,10 @@ var qf = ["id"], Jf = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
|
8131
8135
|
key: 2,
|
|
8132
8136
|
value: t[n.key]
|
|
8133
8137
|
}, { ref_for: !0 }, n.editable.inputAttributes, {
|
|
8134
|
-
onInput: (e) =>
|
|
8135
|
-
"aria-labelledby":
|
|
8136
|
-
"aria-invalid":
|
|
8137
|
-
"aria-errormessage":
|
|
8138
|
+
onInput: (e) => l(e, t, n),
|
|
8139
|
+
"aria-labelledby": u(t, n),
|
|
8140
|
+
"aria-invalid": h(t, n),
|
|
8141
|
+
"aria-errormessage": h(t, n) ? `${e.tableId}-error-${t.key}-${String(n.key)}` : void 0,
|
|
8138
8142
|
name: `row-${t.key}-${String(n.key)}-input`,
|
|
8139
8143
|
class: "editable-input",
|
|
8140
8144
|
style: {
|
|
@@ -8143,12 +8147,12 @@ var qf = ["id"], Jf = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
|
8143
8147
|
}
|
|
8144
8148
|
}), null, 16, dp)),
|
|
8145
8149
|
n.editable.suffix ? (G(), K("span", fp, M(n.editable.suffix), 1)) : Z("", !0)
|
|
8146
|
-
])) : n.display ? (G(), q(ni(n.display(t)), { key: 1 })) : (G(), K(W, { key: 2 }, [X(M(t[n.key]), 1)], 64)),
|
|
8150
|
+
])) : n.display ? (G(), q(ni(n.display(t)), { key: 1 })) : (G(), K(W, { key: 2 }, [X(M(t[n.key]), 1)], 64)), h(t, n) ? (G(), K("div", {
|
|
8147
8151
|
key: 3,
|
|
8148
8152
|
role: "alert",
|
|
8149
8153
|
class: "g-cell-error-message",
|
|
8150
8154
|
id: `${e.tableId}-error-${t.key}-${String(n.key)}`
|
|
8151
|
-
}, M(
|
|
8155
|
+
}, M(g(t, n)), 9, pp)) : Z("", !0)], 10, op))), 128))], 42, ip)], 64))), 128))], 512));
|
|
8152
8156
|
}
|
|
8153
8157
|
}), [["styles", [""]]]);
|
|
8154
8158
|
//#endregion
|
|
@@ -8519,54 +8523,51 @@ function Xp(e, t = {}) {
|
|
|
8519
8523
|
}
|
|
8520
8524
|
//#endregion
|
|
8521
8525
|
//#region src/components/GTable.vue?vue&type=script&setup=true&lang.ts
|
|
8522
|
-
var Zp = { class: "g-table-
|
|
8523
|
-
key: 0,
|
|
8524
|
-
class: "g-table-controls"
|
|
8525
|
-
}, $p = { class: "g-table-control-actions" }, em = {
|
|
8526
|
+
var Zp = { class: "g-table-inner-wrap" }, Qp = { class: "g-table-control-actions" }, $p = {
|
|
8526
8527
|
key: 0,
|
|
8527
8528
|
class: "g-sort-builder-wrap"
|
|
8528
|
-
},
|
|
8529
|
+
}, em = {
|
|
8529
8530
|
key: 0,
|
|
8530
8531
|
class: "g-sort-builder-count"
|
|
8531
|
-
},
|
|
8532
|
+
}, tm = {
|
|
8532
8533
|
key: 0,
|
|
8533
8534
|
class: "g-sort-builder-list"
|
|
8534
|
-
},
|
|
8535
|
+
}, nm = ["data-sort-row-key", "aria-label"], rm = {
|
|
8535
8536
|
class: "g-sort-builder-rule-priority",
|
|
8536
8537
|
"aria-hidden": "true"
|
|
8537
|
-
},
|
|
8538
|
+
}, im = { class: "g-sort-builder-rule-label" }, am = ["aria-label", "onClick"], om = { class: "g-visually-hidden" }, sm = {
|
|
8538
8539
|
class: "sort-indicator",
|
|
8539
8540
|
"aria-hidden": "true"
|
|
8540
|
-
},
|
|
8541
|
+
}, cm = ["aria-label", "onClick"], lm = {
|
|
8541
8542
|
key: 1,
|
|
8542
8543
|
class: "g-sort-builder-empty"
|
|
8543
|
-
},
|
|
8544
|
+
}, um = {
|
|
8544
8545
|
key: 2,
|
|
8545
8546
|
class: "g-sort-builder-add"
|
|
8546
|
-
},
|
|
8547
|
+
}, dm = { class: "g-sort-builder-add-list" }, fm = { class: "g-sort-builder-add-name" }, pm = { class: "g-sort-builder-add-actions" }, mm = ["aria-label", "onClick"], hm = ["aria-label", "onClick"], gm = {
|
|
8547
8548
|
class: "sort-indicator",
|
|
8548
8549
|
"aria-hidden": "true"
|
|
8549
|
-
},
|
|
8550
|
+
}, _m = {
|
|
8550
8551
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8551
8552
|
viewBox: "0 0 640 640",
|
|
8552
8553
|
height: "1.25em",
|
|
8553
8554
|
style: { transform: "rotate(180deg)" }
|
|
8554
|
-
},
|
|
8555
|
+
}, vm = {
|
|
8555
8556
|
key: 1,
|
|
8556
8557
|
class: "g-column-visibility-wrap"
|
|
8557
|
-
},
|
|
8558
|
+
}, ym = {
|
|
8558
8559
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8559
8560
|
viewBox: "0 0 640 640",
|
|
8560
8561
|
height: "1.5em",
|
|
8561
8562
|
style: { transform: "rotate(90deg)" },
|
|
8562
8563
|
"aria-hidden": "true"
|
|
8563
|
-
},
|
|
8564
|
+
}, bm = ["aria-labelledby"], xm = { class: "g-column-visibility-header" }, Sm = ["id"], Cm = { class: "g-column-visibility-legend-action" }, wm = { class: "g-column-visibility-list" }, Tm = ["checked", "onChange"], Em = {
|
|
8564
8565
|
key: 2,
|
|
8565
8566
|
class: "g-table-custom-controls"
|
|
8566
|
-
},
|
|
8567
|
+
}, Dm = { class: "g-clear-filters-wrap" }, Om = {
|
|
8567
8568
|
key: 0,
|
|
8568
8569
|
class: "pagination"
|
|
8569
|
-
},
|
|
8570
|
+
}, km = { class: "g-table-controls-right" }, Am = { class: "g-result-count" }, jm = ["aria-rowcount"], Mm = { class: "g-visually-hidden" }, Nm = { key: 0 }, Pm = ["data-column-key"], Fm = { class: "g-table-head" }, Im = { "aria-rowindex": "1" }, Lm = {
|
|
8570
8571
|
key: 0,
|
|
8571
8572
|
scope: "col",
|
|
8572
8573
|
class: "g-th g-th-checkbox"
|
|
@@ -8574,34 +8575,35 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
8574
8575
|
"checked",
|
|
8575
8576
|
"indeterminate",
|
|
8576
8577
|
"aria-label"
|
|
8577
|
-
], zm = ["id", "aria-sort"], Bm = { class: "th-inner" }, Vm = ["onClick"], Hm = {
|
|
8578
|
+
], zm = ["id", "aria-sort"], Bm = { class: "th-inner" }, Vm = ["aria-describedby", "onClick"], Hm = {
|
|
8578
8579
|
key: 0,
|
|
8579
8580
|
class: "sort-indicator",
|
|
8580
8581
|
"aria-hidden": "true"
|
|
8581
8582
|
}, Um = {
|
|
8582
|
-
key: 1,
|
|
8583
|
-
class: "g-visually-hidden"
|
|
8584
|
-
}, Wm = {
|
|
8585
8583
|
key: 1,
|
|
8586
8584
|
class: "g-column-head"
|
|
8587
|
-
},
|
|
8585
|
+
}, Wm = [
|
|
8586
|
+
"onClick",
|
|
8587
|
+
"aria-describedby",
|
|
8588
|
+
"aria-expanded"
|
|
8589
|
+
], Gm = {
|
|
8588
8590
|
key: 1,
|
|
8589
8591
|
class: "g-filter-search",
|
|
8590
8592
|
role: "search"
|
|
8591
|
-
},
|
|
8593
|
+
}, Km = [
|
|
8592
8594
|
"value",
|
|
8593
8595
|
"onInput",
|
|
8594
8596
|
"placeholder",
|
|
8595
8597
|
"aria-label"
|
|
8596
|
-
],
|
|
8598
|
+
], qm = { key: 2 }, Jm = { class: "g-filter-toggle" }, Ym = [
|
|
8597
8599
|
"checked",
|
|
8598
8600
|
"onChange",
|
|
8599
8601
|
"id",
|
|
8600
8602
|
"aria-describedby"
|
|
8601
|
-
],
|
|
8603
|
+
], Xm = ["for"], Zm = ["id"], Qm = {
|
|
8602
8604
|
key: 4,
|
|
8603
8605
|
class: "g-multi-select"
|
|
8604
|
-
},
|
|
8606
|
+
}, $m = [
|
|
8605
8607
|
"data-column-key",
|
|
8606
8608
|
"aria-label",
|
|
8607
8609
|
"aria-valuemax",
|
|
@@ -8609,10 +8611,10 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
8609
8611
|
"aria-valuetext",
|
|
8610
8612
|
"onKeydown",
|
|
8611
8613
|
"onPointerdown"
|
|
8612
|
-
],
|
|
8614
|
+
], eh = { key: 0 }, th = { "aria-rowindex": "2" }, nh = ["colspan"], rh = { hidden: "" }, ih = ["id"], ah = ["id"], oh = ["id"], sh = {
|
|
8613
8615
|
key: 1,
|
|
8614
8616
|
class: "g-bulk-actions-toolbar"
|
|
8615
|
-
},
|
|
8617
|
+
}, ch = { class: "g-selected-count" }, lh = { class: "g-bulk-actions" }, uh = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
8616
8618
|
__name: "GTable",
|
|
8617
8619
|
props: /*@__PURE__*/ U({
|
|
8618
8620
|
label: { type: String },
|
|
@@ -8716,247 +8718,266 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
8716
8718
|
function x(e) {
|
|
8717
8719
|
e !== void 0 && s("update:pageSize", e);
|
|
8718
8720
|
}
|
|
8719
|
-
let S = B(), C = Ja(), w = /* @__PURE__ */ F(null), T = /* @__PURE__ */ F(null), E = /* @__PURE__ */ F(null), ee = /* @__PURE__ */ F(null), D =
|
|
8720
|
-
|
|
8721
|
+
let S = B(), C = Ja(), w = /* @__PURE__ */ F(null), T = /* @__PURE__ */ F(null), E = /* @__PURE__ */ F(null), ee = /* @__PURE__ */ F(null), D = /* @__PURE__ */ F(null), te = /* @__PURE__ */ F(0);
|
|
8722
|
+
Fc(D, (e) => {
|
|
8723
|
+
let t = e[0];
|
|
8724
|
+
te.value = t?.borderBoxSize?.[0]?.blockSize ?? t?.target.getBoundingClientRect().height ?? 0;
|
|
8725
|
+
});
|
|
8726
|
+
let O = /* @__PURE__ */ F(null), ne = `${S}-table`;
|
|
8727
|
+
function re(e) {
|
|
8721
8728
|
let t = /* @__PURE__ */ new Set();
|
|
8722
8729
|
return e.filter((e) => !e?.key || t.has(String(e.key)) ? !1 : (t.add(String(e.key)), e.order === 1 || e.order === -1));
|
|
8723
8730
|
}
|
|
8724
|
-
function
|
|
8731
|
+
function k(e, t) {
|
|
8725
8732
|
return {
|
|
8726
8733
|
key: e,
|
|
8727
8734
|
order: t
|
|
8728
8735
|
};
|
|
8729
8736
|
}
|
|
8730
|
-
let
|
|
8731
|
-
function
|
|
8732
|
-
n.value =
|
|
8737
|
+
let A = Q(() => re(n.value));
|
|
8738
|
+
function ie(e) {
|
|
8739
|
+
n.value = re(e);
|
|
8733
8740
|
}
|
|
8734
|
-
let
|
|
8735
|
-
let e = new Set(
|
|
8736
|
-
return
|
|
8741
|
+
let ae = Q(() => o.columns.filter((e) => e.sortable)), oe = Q(() => ae.value.length > 1), se = Q(() => {
|
|
8742
|
+
let e = new Set(A.value.map((e) => String(e.key)));
|
|
8743
|
+
return ae.value.filter((t) => !e.has(String(t.key)));
|
|
8737
8744
|
});
|
|
8738
|
-
function ae(e) {
|
|
8739
|
-
return k.value.findIndex((t) => t.key === e);
|
|
8740
|
-
}
|
|
8741
|
-
function oe(e) {
|
|
8742
|
-
return k.value.find((t) => t.key === e);
|
|
8743
|
-
}
|
|
8744
|
-
function se(e) {
|
|
8745
|
-
return o.columns.find((t) => t.key === e)?.label || String(e);
|
|
8746
|
-
}
|
|
8747
8745
|
function ce(e) {
|
|
8748
|
-
|
|
8749
|
-
return t === -1 ? "none" : t > 0 ? "other" : k.value[0]?.order === 1 ? "ascending" : "descending";
|
|
8746
|
+
return A.value.findIndex((t) => t.key === e);
|
|
8750
8747
|
}
|
|
8751
8748
|
function ue(e) {
|
|
8752
|
-
|
|
8753
|
-
if (t === -1) return "";
|
|
8754
|
-
let n = k.value[t].order === 1 ? "ascending" : "descending";
|
|
8755
|
-
return k.value.length > 1 ? `Sorted ${n}, priority ${t + 1}` : `Sorted ${n}`;
|
|
8749
|
+
return A.value.find((t) => t.key === e);
|
|
8756
8750
|
}
|
|
8757
8751
|
function de(e) {
|
|
8758
|
-
return
|
|
8752
|
+
return o.columns.find((t) => t.key === e)?.label || String(e);
|
|
8759
8753
|
}
|
|
8760
8754
|
function fe(e) {
|
|
8761
|
-
let t =
|
|
8762
|
-
return t ? t
|
|
8755
|
+
let t = ce(e);
|
|
8756
|
+
return t === -1 ? "none" : t > 0 ? "other" : A.value[0]?.order === 1 ? "ascending" : "descending";
|
|
8763
8757
|
}
|
|
8764
8758
|
function pe(e) {
|
|
8765
|
-
let t =
|
|
8766
|
-
|
|
8759
|
+
let t = ce(e);
|
|
8760
|
+
if (t === -1) return "Sortable, not sorted";
|
|
8761
|
+
let n = A.value[t].order === 1 ? "ascending" : "descending";
|
|
8762
|
+
return A.value.length > 1 ? `Sorted ${n}, priority ${t + 1}` : `Sorted ${n}`;
|
|
8763
|
+
}
|
|
8764
|
+
let me = Q(() => A.value.length === 0 ? "" : `sorted by ${A.value.map((e) => `${de(e.key)} ${e.order === 1 ? "ascending" : "descending"}`).join(", then ")}`), he = Q(() => {
|
|
8765
|
+
let e = o.columns.filter((e) => tt(e));
|
|
8766
|
+
return e.length === 0 ? "" : `filtered by ${e.map((e) => e.label).join(", ")}`;
|
|
8767
|
+
});
|
|
8768
|
+
function ge(e) {
|
|
8769
|
+
return e === 1 ? "Ascending" : "Descending";
|
|
8770
|
+
}
|
|
8771
|
+
function _e(e) {
|
|
8772
|
+
let t = A.value[0]?.key === e ? A.value[0] : void 0;
|
|
8773
|
+
return t ? t.order === 1 ? [k(e, -1)] : [] : [k(e, 1)];
|
|
8767
8774
|
}
|
|
8768
|
-
function
|
|
8775
|
+
function ve(e) {
|
|
8776
|
+
let t = [...A.value], n = t.findIndex((t) => t.key === e);
|
|
8777
|
+
return n === -1 ? (t.push(k(e, 1)), t) : t[n].order === 1 ? (t[n] = k(e, -1), t) : (t.splice(n, 1), t);
|
|
8778
|
+
}
|
|
8779
|
+
function ye(e, t = !1) {
|
|
8769
8780
|
if (!e.sortable) return;
|
|
8770
8781
|
let n = e.key;
|
|
8771
|
-
|
|
8782
|
+
ie(t ? ve(n) : _e(n));
|
|
8772
8783
|
}
|
|
8773
|
-
function
|
|
8774
|
-
|
|
8784
|
+
function be(e, t) {
|
|
8785
|
+
ie([...A.value, k(e, t)]), jn(() => {
|
|
8775
8786
|
let t = w.value;
|
|
8776
8787
|
t && (t.querySelector(`[data-sort-row-key="${String(e)}"]`) ?? t)?.focus();
|
|
8777
8788
|
}).catch((e) => {
|
|
8778
8789
|
console.error(e);
|
|
8779
8790
|
});
|
|
8780
8791
|
}
|
|
8781
|
-
function
|
|
8782
|
-
|
|
8792
|
+
function xe(e) {
|
|
8793
|
+
ie(A.value.map((t) => t.key === e ? k(t.key, t.order === 1 ? -1 : 1) : t));
|
|
8783
8794
|
}
|
|
8784
|
-
function
|
|
8785
|
-
|
|
8795
|
+
function Se(e) {
|
|
8796
|
+
ie(A.value.filter((t) => t.key !== e));
|
|
8786
8797
|
}
|
|
8787
|
-
function
|
|
8788
|
-
|
|
8798
|
+
function Ce() {
|
|
8799
|
+
ie([]);
|
|
8789
8800
|
}
|
|
8790
|
-
function
|
|
8801
|
+
function we(e) {
|
|
8791
8802
|
return i.value[e] ?? {};
|
|
8792
8803
|
}
|
|
8793
|
-
function
|
|
8804
|
+
function Te(e, t) {
|
|
8794
8805
|
i.value = {
|
|
8795
8806
|
...i.value,
|
|
8796
8807
|
[e]: {
|
|
8797
|
-
...
|
|
8808
|
+
...we(e),
|
|
8798
8809
|
...t
|
|
8799
8810
|
}
|
|
8800
8811
|
};
|
|
8801
8812
|
}
|
|
8802
|
-
function
|
|
8813
|
+
function Ee(e) {
|
|
8803
8814
|
return Math.max(50, Math.round(e));
|
|
8804
8815
|
}
|
|
8805
|
-
function
|
|
8806
|
-
let t =
|
|
8807
|
-
if (typeof t == "number" && Number.isFinite(t)) return
|
|
8816
|
+
function De(e) {
|
|
8817
|
+
let t = we(e).width;
|
|
8818
|
+
if (typeof t == "number" && Number.isFinite(t)) return Ee(t);
|
|
8808
8819
|
}
|
|
8809
|
-
function
|
|
8820
|
+
function Oe(e) {
|
|
8810
8821
|
return document.getElementById(`${S}-th-${String(e)}`);
|
|
8811
8822
|
}
|
|
8812
|
-
function
|
|
8813
|
-
let t =
|
|
8814
|
-
return
|
|
8823
|
+
function N(e) {
|
|
8824
|
+
let t = Oe(e)?.getBoundingClientRect().width;
|
|
8825
|
+
return Ee(t ?? 50);
|
|
8815
8826
|
}
|
|
8816
|
-
function
|
|
8817
|
-
return
|
|
8827
|
+
function ke(e) {
|
|
8828
|
+
return De(e) ?? N(e);
|
|
8818
8829
|
}
|
|
8819
|
-
function
|
|
8820
|
-
let t =
|
|
8821
|
-
return
|
|
8830
|
+
function Ae(e) {
|
|
8831
|
+
let t = ke(e), n = E.value?.getBoundingClientRect().width ?? T.value?.getBoundingClientRect().width ?? t;
|
|
8832
|
+
return Ee(Math.max(t, n));
|
|
8822
8833
|
}
|
|
8823
|
-
function
|
|
8824
|
-
|
|
8834
|
+
function je(e, t) {
|
|
8835
|
+
Te(e, { width: Ee(t) });
|
|
8825
8836
|
}
|
|
8826
|
-
function
|
|
8827
|
-
|
|
8837
|
+
function Me(e, t) {
|
|
8838
|
+
je(e, ke(e) + t);
|
|
8828
8839
|
}
|
|
8829
|
-
function
|
|
8830
|
-
|
|
8840
|
+
function Ne() {
|
|
8841
|
+
O.value = null, window.removeEventListener("pointermove", Pe), window.removeEventListener("pointerup", Ne), window.removeEventListener("pointercancel", Ne);
|
|
8831
8842
|
}
|
|
8832
|
-
function
|
|
8833
|
-
if (!
|
|
8834
|
-
let t =
|
|
8835
|
-
|
|
8843
|
+
function Pe(e) {
|
|
8844
|
+
if (!O.value) return;
|
|
8845
|
+
let t = O.value.startWidth + (e.clientX - O.value.startX);
|
|
8846
|
+
je(O.value.key, t);
|
|
8836
8847
|
}
|
|
8837
|
-
function
|
|
8848
|
+
function Fe(e, t) {
|
|
8838
8849
|
if (!o.resizableColumns) return;
|
|
8839
8850
|
e.preventDefault(), e.stopPropagation();
|
|
8840
|
-
let n =
|
|
8841
|
-
|
|
8851
|
+
let n = ke(t);
|
|
8852
|
+
je(t, n), O.value = {
|
|
8842
8853
|
key: t,
|
|
8843
8854
|
startX: e.clientX,
|
|
8844
8855
|
startWidth: n
|
|
8845
|
-
}, e.currentTarget?.focus(), window.addEventListener("pointermove",
|
|
8856
|
+
}, e.currentTarget?.focus(), window.addEventListener("pointermove", Pe), window.addEventListener("pointerup", Ne), window.addEventListener("pointercancel", Ne);
|
|
8846
8857
|
}
|
|
8847
|
-
function
|
|
8858
|
+
function Ie(e, t) {
|
|
8848
8859
|
let n = e.shiftKey ? 48 : 16;
|
|
8849
8860
|
switch (e.key) {
|
|
8850
8861
|
case "ArrowLeft":
|
|
8851
|
-
e.preventDefault(),
|
|
8862
|
+
e.preventDefault(), Me(t, -n);
|
|
8852
8863
|
return;
|
|
8853
8864
|
case "ArrowRight":
|
|
8854
|
-
e.preventDefault(),
|
|
8865
|
+
e.preventDefault(), Me(t, n);
|
|
8855
8866
|
return;
|
|
8856
8867
|
case "Home":
|
|
8857
|
-
e.preventDefault(),
|
|
8868
|
+
e.preventDefault(), je(t, 50);
|
|
8858
8869
|
return;
|
|
8859
8870
|
case "End":
|
|
8860
|
-
e.preventDefault(),
|
|
8871
|
+
e.preventDefault(), je(t, Ae(t));
|
|
8861
8872
|
return;
|
|
8862
8873
|
default: return;
|
|
8863
8874
|
}
|
|
8864
8875
|
}
|
|
8865
|
-
function
|
|
8876
|
+
function Le(e) {
|
|
8866
8877
|
if (!o.resizableColumns) return;
|
|
8867
|
-
let t =
|
|
8878
|
+
let t = De(e.key);
|
|
8868
8879
|
if (t !== void 0) return {
|
|
8869
8880
|
width: `${t}px`,
|
|
8870
8881
|
minWidth: `${t}px`
|
|
8871
8882
|
};
|
|
8872
8883
|
}
|
|
8873
|
-
function
|
|
8874
|
-
return
|
|
8884
|
+
function Re(e) {
|
|
8885
|
+
return ke(e);
|
|
8875
8886
|
}
|
|
8876
|
-
function
|
|
8877
|
-
return `${
|
|
8887
|
+
function ze(e) {
|
|
8888
|
+
return `${Re(e)} pixels`;
|
|
8878
8889
|
}
|
|
8879
|
-
let
|
|
8890
|
+
let Be = Q(() => {
|
|
8880
8891
|
let e = C?.vnode.props ?? {};
|
|
8881
8892
|
return "columnState" in e || "column-state" in e || "onUpdate:columnState" in e;
|
|
8882
|
-
}),
|
|
8883
|
-
function
|
|
8884
|
-
return
|
|
8893
|
+
}), Ve = Q(() => o.columns.filter((e) => we(e.key).visible !== !1)), He = ui(), Ue = Q(() => Ve.value.length !== o.columns.length), We = Q(() => Be.value && o.columns.length > 0), Ge = Q(() => !!He.controls || !!He["right-controls"]), Ke = Q(() => o.resultCount ?? o.data.length);
|
|
8894
|
+
function qe(e) {
|
|
8895
|
+
return we(e.key).visible !== !1;
|
|
8885
8896
|
}
|
|
8886
|
-
function
|
|
8887
|
-
|
|
8897
|
+
function Je(e, t) {
|
|
8898
|
+
Te(e.key, { visible: t });
|
|
8888
8899
|
}
|
|
8889
|
-
function
|
|
8900
|
+
function Ye() {
|
|
8890
8901
|
i.value = o.columns.reduce((e, t) => ({
|
|
8891
8902
|
...e,
|
|
8892
8903
|
[t.key]: {
|
|
8893
|
-
...
|
|
8904
|
+
...we(t.key),
|
|
8894
8905
|
visible: !0
|
|
8895
8906
|
}
|
|
8896
8907
|
}), { ...i.value });
|
|
8897
8908
|
}
|
|
8898
|
-
let
|
|
8899
|
-
function
|
|
8909
|
+
let Xe = Q(() => o.pagination && typeof o.pageSize == "number"), Ze = Q(() => !!(oe.value || c.value || Xe.value || We.value || Ge.value));
|
|
8910
|
+
function Qe() {
|
|
8900
8911
|
return r.value;
|
|
8901
8912
|
}
|
|
8902
|
-
function
|
|
8903
|
-
if (e.filter) return bp(e.filter,
|
|
8913
|
+
function $e(e) {
|
|
8914
|
+
if (e.filter) return bp(e.filter, Qe()[hp(e)]);
|
|
8904
8915
|
}
|
|
8905
|
-
function
|
|
8906
|
-
e.filter && (
|
|
8916
|
+
function et(e, t) {
|
|
8917
|
+
e.filter && (Qe()[hp(e)] = xp(e.filter, t));
|
|
8907
8918
|
}
|
|
8908
|
-
function
|
|
8909
|
-
return e.filter ? Sp(e.filter,
|
|
8919
|
+
function tt(e) {
|
|
8920
|
+
return e.filter ? Sp(e.filter, Qe()[hp(e)]) : !1;
|
|
8910
8921
|
}
|
|
8911
|
-
function
|
|
8922
|
+
function nt(e) {
|
|
8912
8923
|
return e.filter?.type !== "select" && e.filter?.type !== "multi-select" ? [] : e.filter.options;
|
|
8913
8924
|
}
|
|
8914
|
-
function
|
|
8915
|
-
let n =
|
|
8925
|
+
function rt(e, t) {
|
|
8926
|
+
let n = nt(e).findIndex((e) => e.value === t);
|
|
8916
8927
|
return n === -1 ? void 0 : String(n);
|
|
8917
8928
|
}
|
|
8918
|
-
function
|
|
8919
|
-
return
|
|
8929
|
+
function it(e, t) {
|
|
8930
|
+
return nt(e)[Number(t)]?.value;
|
|
8920
8931
|
}
|
|
8921
|
-
function
|
|
8922
|
-
return
|
|
8932
|
+
function at(e) {
|
|
8933
|
+
return nt(e).map((e, t) => ({
|
|
8923
8934
|
label: e.label,
|
|
8924
8935
|
value: String(t),
|
|
8925
8936
|
description: e.description
|
|
8926
8937
|
}));
|
|
8927
8938
|
}
|
|
8928
|
-
function
|
|
8929
|
-
return
|
|
8939
|
+
function ot(e) {
|
|
8940
|
+
return nt(e).map((e, t) => ({
|
|
8930
8941
|
label: e.label,
|
|
8931
8942
|
value: String(t),
|
|
8932
8943
|
hint: e.description
|
|
8933
8944
|
}));
|
|
8934
8945
|
}
|
|
8935
|
-
function
|
|
8936
|
-
return
|
|
8946
|
+
function st(e) {
|
|
8947
|
+
return rt(e, $e(e)) ?? null;
|
|
8937
8948
|
}
|
|
8938
|
-
function
|
|
8939
|
-
|
|
8949
|
+
function ct(e, t) {
|
|
8950
|
+
et(e, t == null ? void 0 : it(e, t));
|
|
8940
8951
|
}
|
|
8941
|
-
function
|
|
8942
|
-
let t =
|
|
8943
|
-
return Array.isArray(t) ? t.map((t) =>
|
|
8952
|
+
function lt(e) {
|
|
8953
|
+
let t = $e(e);
|
|
8954
|
+
return Array.isArray(t) ? t.map((t) => rt(e, t)).filter((e) => e !== void 0) : [];
|
|
8944
8955
|
}
|
|
8945
|
-
function
|
|
8946
|
-
|
|
8956
|
+
function ut(e, t) {
|
|
8957
|
+
et(e, t.map((t) => it(e, t)));
|
|
8947
8958
|
}
|
|
8948
8959
|
return Jr(() => {
|
|
8949
|
-
|
|
8960
|
+
Ne();
|
|
8950
8961
|
}), Gr(() => {
|
|
8951
8962
|
o.rowClickable && o.bulkSelectionEnabled && console.warn("GTable: rowClickable and bulkSelectionEnabled cannot be used together. rowClickable will be ignored.");
|
|
8952
8963
|
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.`);
|
|
8953
|
-
}), (t, n) => (G(), K("div",
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8964
|
+
}), (t, n) => (G(), K("div", {
|
|
8965
|
+
ref_key: "outerWrapRef",
|
|
8966
|
+
ref: E,
|
|
8967
|
+
class: "g-table-outer-wrap",
|
|
8968
|
+
style: le({ "--g-table-controls-height": `${Ze.value ? te.value : 0}px` })
|
|
8969
|
+
}, [J("div", Zp, [
|
|
8970
|
+
Ze.value ? (G(), K("div", {
|
|
8971
|
+
key: 0,
|
|
8972
|
+
ref_key: "controlsRef",
|
|
8973
|
+
ref: D,
|
|
8974
|
+
class: "g-table-controls"
|
|
8975
|
+
}, [
|
|
8976
|
+
J("div", Qp, [
|
|
8977
|
+
oe.value ? (G(), K("div", $p, [Y(hu, null, {
|
|
8957
8978
|
trigger: L(({ toggle: e }) => [Y(eu, {
|
|
8958
8979
|
size: "small",
|
|
8959
|
-
class: j(["g-sort-builder-trigger", { "g-sort-builder-trigger--active":
|
|
8980
|
+
class: j(["g-sort-builder-trigger", { "g-sort-builder-trigger--active": A.value.length > 0 }]),
|
|
8960
8981
|
"aria-label": "Choose sort order",
|
|
8961
8982
|
onClick: e
|
|
8962
8983
|
}, {
|
|
@@ -8969,7 +8990,7 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
8969
8990
|
}, [J("path", {
|
|
8970
8991
|
fill: "currentColor",
|
|
8971
8992
|
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"
|
|
8972
|
-
})], -1),
|
|
8993
|
+
})], -1), A.value.length ? (G(), K("span", em, M(A.value.length), 1)) : Z("", !0)]),
|
|
8973
8994
|
_: 1
|
|
8974
8995
|
}, 8, ["class", "onClick"])]),
|
|
8975
8996
|
default: L(() => [J("fieldset", {
|
|
@@ -8981,21 +9002,21 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
8981
9002
|
}, [
|
|
8982
9003
|
n[8] ||= J("legend", { class: "g-sort-builder-legend" }, " Sort order ", -1),
|
|
8983
9004
|
n[9] ||= 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),
|
|
8984
|
-
|
|
9005
|
+
A.value.length ? (G(), K("ol", tm, [(G(!0), K(W, null, V(A.value, (e, t) => (G(), K("li", {
|
|
8985
9006
|
key: e.key,
|
|
8986
9007
|
class: "g-sort-builder-rule",
|
|
8987
9008
|
tabindex: "-1",
|
|
8988
9009
|
"data-sort-row-key": String(e.key),
|
|
8989
|
-
"aria-label": `${
|
|
9010
|
+
"aria-label": `${de(e.key)} ${ge(e.order)} sort, priority ${t + 1}`
|
|
8990
9011
|
}, [
|
|
8991
|
-
J("span",
|
|
8992
|
-
J("span",
|
|
9012
|
+
J("span", rm, M(t + 1), 1),
|
|
9013
|
+
J("span", im, M(de(e.key)), 1),
|
|
8993
9014
|
J("button", {
|
|
8994
9015
|
type: "button",
|
|
8995
9016
|
class: "g-sort-builder-direction",
|
|
8996
|
-
"aria-label": `Toggle ${
|
|
8997
|
-
onClick: (t) =>
|
|
8998
|
-
}, [J("span",
|
|
9017
|
+
"aria-label": `Toggle ${de(e.key)} sort direction`,
|
|
9018
|
+
onClick: (t) => xe(e.key)
|
|
9019
|
+
}, [J("span", om, M(ge(e.order)), 1), J("span", sm, [(G(), K("svg", {
|
|
8999
9020
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9000
9021
|
viewBox: "0 0 640 640",
|
|
9001
9022
|
height: "1.25em",
|
|
@@ -9003,22 +9024,22 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
9003
9024
|
}, [...n[2] ||= [J("path", {
|
|
9004
9025
|
fill: "currentColor",
|
|
9005
9026
|
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"
|
|
9006
|
-
}, null, -1)]], 4))])], 8,
|
|
9027
|
+
}, null, -1)]], 4))])], 8, am),
|
|
9007
9028
|
J("button", {
|
|
9008
9029
|
type: "button",
|
|
9009
9030
|
class: "g-sort-builder-remove",
|
|
9010
|
-
"aria-label": `Remove ${
|
|
9011
|
-
onClick: (t) =>
|
|
9012
|
-
}, " Remove ", 8,
|
|
9013
|
-
], 8,
|
|
9014
|
-
|
|
9031
|
+
"aria-label": `Remove ${de(e.key)} sort`,
|
|
9032
|
+
onClick: (t) => Se(e.key)
|
|
9033
|
+
}, " Remove ", 8, cm)
|
|
9034
|
+
], 8, nm))), 128))])) : (G(), K("p", lm, " No active sort rules. ")),
|
|
9035
|
+
se.value.length ? (G(), K("div", um, [n[6] ||= J("p", { class: "g-sort-builder-add-label" }, " Add sort column ", -1), J("ul", dm, [(G(!0), K(W, null, V(se.value, (e) => (G(), K("li", {
|
|
9015
9036
|
key: e.key,
|
|
9016
9037
|
class: "g-sort-builder-add-item"
|
|
9017
|
-
}, [J("span",
|
|
9038
|
+
}, [J("span", fm, M(e.label), 1), J("div", pm, [J("button", {
|
|
9018
9039
|
type: "button",
|
|
9019
9040
|
class: "g-sort-builder-direction",
|
|
9020
9041
|
"aria-label": `Add ${e.label} ascending sort`,
|
|
9021
|
-
onClick: (t) =>
|
|
9042
|
+
onClick: (t) => be(e.key, 1)
|
|
9022
9043
|
}, [...n[3] ||= [J("span", { class: "g-visually-hidden" }, " Add ascending sort ", -1), J("span", {
|
|
9023
9044
|
class: "sort-indicator",
|
|
9024
9045
|
"aria-hidden": "true"
|
|
@@ -9029,21 +9050,21 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
9029
9050
|
}, [J("path", {
|
|
9030
9051
|
fill: "currentColor",
|
|
9031
9052
|
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"
|
|
9032
|
-
})])], -1)]], 8,
|
|
9053
|
+
})])], -1)]], 8, mm), J("button", {
|
|
9033
9054
|
type: "button",
|
|
9034
9055
|
class: "g-sort-builder-direction",
|
|
9035
9056
|
"aria-label": `Add ${e.label} descending sort`,
|
|
9036
|
-
onClick: (t) =>
|
|
9037
|
-
}, [n[5] ||= J("span", { class: "g-visually-hidden" }, " Add descending sort ", -1), J("span",
|
|
9057
|
+
onClick: (t) => be(e.key, -1)
|
|
9058
|
+
}, [n[5] ||= J("span", { class: "g-visually-hidden" }, " Add descending sort ", -1), J("span", gm, [(G(), K("svg", _m, [...n[4] ||= [J("path", {
|
|
9038
9059
|
fill: "currentColor",
|
|
9039
9060
|
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"
|
|
9040
|
-
}, null, -1)]]))])], 8,
|
|
9041
|
-
|
|
9061
|
+
}, null, -1)]]))])], 8, hm)])]))), 128))])])) : Z("", !0),
|
|
9062
|
+
A.value.length ? (G(), q(eu, {
|
|
9042
9063
|
key: 3,
|
|
9043
9064
|
outlined: "",
|
|
9044
9065
|
size: "small",
|
|
9045
9066
|
class: "g-sort-builder-clear",
|
|
9046
|
-
onClick:
|
|
9067
|
+
onClick: Ce
|
|
9047
9068
|
}, {
|
|
9048
9069
|
default: L(() => [...n[7] ||= [X(" Clear sort ", -1)]]),
|
|
9049
9070
|
_: 1
|
|
@@ -9051,14 +9072,14 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
9051
9072
|
], 512)]),
|
|
9052
9073
|
_: 1
|
|
9053
9074
|
})])) : Z("", !0),
|
|
9054
|
-
|
|
9075
|
+
We.value ? (G(), K("div", vm, [Y(hu, null, {
|
|
9055
9076
|
trigger: L(({ toggle: e }) => [Y(eu, {
|
|
9056
9077
|
size: "small",
|
|
9057
|
-
class: j(["g-column-visibility-trigger", { "g-column-visibility-trigger--active":
|
|
9078
|
+
class: j(["g-column-visibility-trigger", { "g-column-visibility-trigger--active": Ue.value }]),
|
|
9058
9079
|
"aria-label": "Choose visible columns",
|
|
9059
9080
|
onClick: e
|
|
9060
9081
|
}, {
|
|
9061
|
-
default: L(() => [(G(), K("svg",
|
|
9082
|
+
default: L(() => [(G(), K("svg", ym, [...n[10] ||= [J("path", {
|
|
9062
9083
|
fill: "currentColor",
|
|
9063
9084
|
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"
|
|
9064
9085
|
}, null, -1)]]))]),
|
|
@@ -9067,29 +9088,29 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
9067
9088
|
default: L(() => [J("fieldset", {
|
|
9068
9089
|
class: "g-column-visibility-popover",
|
|
9069
9090
|
"aria-labelledby": `${I(S)}-column-visibility-heading`
|
|
9070
|
-
}, [J("div",
|
|
9091
|
+
}, [J("div", xm, [J("span", {
|
|
9071
9092
|
id: `${I(S)}-column-visibility-heading`,
|
|
9072
9093
|
class: "g-column-visibility-heading"
|
|
9073
|
-
}, " Shown columns ", 8,
|
|
9094
|
+
}, " Shown columns ", 8, Sm), J("span", Cm, [Y(eu, {
|
|
9074
9095
|
text: "",
|
|
9075
9096
|
size: "small",
|
|
9076
|
-
class: j(["g-column-visibility-show-all", { "g-column-visibility-show-all--hidden": !
|
|
9077
|
-
onClick:
|
|
9097
|
+
class: j(["g-column-visibility-show-all", { "g-column-visibility-show-all--hidden": !Ue.value }]),
|
|
9098
|
+
onClick: Ye
|
|
9078
9099
|
}, {
|
|
9079
9100
|
default: L(() => [...n[11] ||= [X(" Show All ", -1)]]),
|
|
9080
9101
|
_: 1
|
|
9081
|
-
}, 8, ["class"])])]), J("div",
|
|
9102
|
+
}, 8, ["class"])])]), J("div", wm, [(G(!0), K(W, null, V(e.columns, (e) => (G(), K("label", {
|
|
9082
9103
|
key: e.key,
|
|
9083
9104
|
class: "g-column-visibility-option"
|
|
9084
9105
|
}, [J("input", {
|
|
9085
|
-
checked:
|
|
9106
|
+
checked: qe(e),
|
|
9086
9107
|
type: "checkbox",
|
|
9087
|
-
onChange: (t) =>
|
|
9088
|
-
}, null, 40,
|
|
9108
|
+
onChange: (t) => Je(e, t.target.checked)
|
|
9109
|
+
}, null, 40, Tm), J("span", null, M(e.label), 1)]))), 128))])], 8, bm)]),
|
|
9089
9110
|
_: 1
|
|
9090
9111
|
})])) : Z("", !0),
|
|
9091
|
-
|
|
9092
|
-
J("div",
|
|
9112
|
+
Ge.value ? (G(), K("div", Em, [H(t.$slots, "controls")])) : Z("", !0),
|
|
9113
|
+
J("div", Dm, [I(c) ? (G(), q(eu, {
|
|
9093
9114
|
key: 0,
|
|
9094
9115
|
outlined: "",
|
|
9095
9116
|
size: "small",
|
|
@@ -9109,11 +9130,11 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
9109
9130
|
_: 1
|
|
9110
9131
|
}, 8, ["onClick"])) : Z("", !0)])
|
|
9111
9132
|
]),
|
|
9112
|
-
|
|
9133
|
+
Xe.value ? (G(), K("div", Om, [Y(Kp, {
|
|
9113
9134
|
start: e.startIndex,
|
|
9114
9135
|
"page-size": e.pageSize,
|
|
9115
9136
|
"page-sizes": e.pageSizes,
|
|
9116
|
-
total:
|
|
9137
|
+
total: Ke.value,
|
|
9117
9138
|
"onUpdate:start": b,
|
|
9118
9139
|
"onUpdate:pageSize": x
|
|
9119
9140
|
}, null, 8, [
|
|
@@ -9122,24 +9143,28 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
9122
9143
|
"page-sizes",
|
|
9123
9144
|
"total"
|
|
9124
9145
|
])])) : Z("", !0),
|
|
9125
|
-
J("div",
|
|
9126
|
-
])) : Z("", !0),
|
|
9146
|
+
J("div", km, [J("span", Am, M(Ke.value) + " results", 1), H(t.$slots, "right-controls")])
|
|
9147
|
+
], 512)) : Z("", !0),
|
|
9127
9148
|
J("div", {
|
|
9128
9149
|
ref_key: "tableWrapRef",
|
|
9129
|
-
ref:
|
|
9150
|
+
ref: ee,
|
|
9130
9151
|
class: "g-table-table-wrap"
|
|
9131
9152
|
}, [J("table", {
|
|
9132
|
-
id:
|
|
9153
|
+
id: ne,
|
|
9133
9154
|
class: j(["g-table", { "g-table--resizable": e.resizableColumns }]),
|
|
9134
9155
|
ref_key: "tableRef",
|
|
9135
9156
|
ref: T,
|
|
9136
|
-
"aria-
|
|
9137
|
-
"aria-rowcount": Ve.value
|
|
9157
|
+
"aria-rowcount": Ke.value
|
|
9138
9158
|
}, [
|
|
9139
|
-
J("
|
|
9159
|
+
J("caption", Mm, M([
|
|
9160
|
+
e.label,
|
|
9161
|
+
me.value,
|
|
9162
|
+
he.value
|
|
9163
|
+
].filter(Boolean).join(", ")), 1),
|
|
9164
|
+
J("colgroup", null, [e.bulkSelectionEnabled ? (G(), K("col", Nm)) : Z("", !0), (G(!0), K(W, null, V(Ve.value, (e) => (G(), K("col", {
|
|
9140
9165
|
key: e.key,
|
|
9141
9166
|
"data-column-key": String(e.key),
|
|
9142
|
-
style: le(
|
|
9167
|
+
style: le(Le(e))
|
|
9143
9168
|
}, null, 12, Pm))), 128))]),
|
|
9144
9169
|
J("thead", Fm, [J("tr", Im, [e.bulkSelectionEnabled ? (G(), K("th", Lm, [J("input", {
|
|
9145
9170
|
type: "checkbox",
|
|
@@ -9148,42 +9173,43 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
9148
9173
|
onChange: h,
|
|
9149
9174
|
"aria-label": f.value ? "Deselect all rows" : "Select all rows",
|
|
9150
9175
|
class: "g-bulk-select-checkbox"
|
|
9151
|
-
}, null, 40, Rm)])) : Z("", !0), (G(!0), K(W, null, V(
|
|
9176
|
+
}, null, 40, Rm)])) : Z("", !0), (G(!0), K(W, null, V(Ve.value, (t) => (G(), K("th", {
|
|
9152
9177
|
key: t.key,
|
|
9153
9178
|
id: `${I(S)}-th-${String(t.key)}`,
|
|
9154
|
-
"aria-sort":
|
|
9179
|
+
"aria-sort": fe(t.key),
|
|
9155
9180
|
class: j([
|
|
9156
9181
|
"g-th",
|
|
9157
9182
|
{ "g-th--resizable": e.resizableColumns },
|
|
9158
|
-
{ sorted:
|
|
9159
|
-
{ filtered:
|
|
9183
|
+
{ sorted: ce(t.key) !== -1 },
|
|
9184
|
+
{ filtered: tt(t) }
|
|
9160
9185
|
]),
|
|
9161
9186
|
scope: "col"
|
|
9162
9187
|
}, [J("div", Bm, [t.sortable ? (G(), K("button", {
|
|
9163
9188
|
key: 0,
|
|
9164
9189
|
type: "button",
|
|
9165
9190
|
class: "g-column-head",
|
|
9166
|
-
|
|
9167
|
-
|
|
9168
|
-
|
|
9169
|
-
|
|
9170
|
-
|
|
9171
|
-
|
|
9172
|
-
|
|
9173
|
-
|
|
9174
|
-
|
|
9175
|
-
|
|
9176
|
-
|
|
9177
|
-
|
|
9178
|
-
|
|
9179
|
-
|
|
9180
|
-
|
|
9181
|
-
trigger: L(({ toggle: e }) => [J("button", {
|
|
9191
|
+
"aria-describedby": `${I(S)}-sort-desc-${String(t.key)}`,
|
|
9192
|
+
onClick: (e) => ye(t, e.shiftKey)
|
|
9193
|
+
}, [X(M(t.label) + " ", 1), ce(t.key) === -1 ? Z("", !0) : (G(), K("span", Hm, [(G(), K("svg", {
|
|
9194
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9195
|
+
viewBox: "0 0 640 640",
|
|
9196
|
+
height: "1.5em",
|
|
9197
|
+
style: le({ transform: `rotate(${ue(t.key)?.order === 1 ? 0 : 180}deg)` })
|
|
9198
|
+
}, [...n[13] ||= [J("path", {
|
|
9199
|
+
fill: "currentColor",
|
|
9200
|
+
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"
|
|
9201
|
+
}, null, -1)]], 4))]))], 8, Vm)) : (G(), K("span", Um, M(t.label), 1)), t.filter ? (G(), q(hu, {
|
|
9202
|
+
key: 2,
|
|
9203
|
+
"aria-labelledby": `${I(S)}-filter-label-${String(t.key)}`
|
|
9204
|
+
}, {
|
|
9205
|
+
trigger: L(({ toggle: e, open: r }) => [J("button", {
|
|
9182
9206
|
onClick: Ts(e, ["stop"]),
|
|
9183
|
-
"aria-label":
|
|
9184
|
-
|
|
9207
|
+
"aria-label": "Filter",
|
|
9208
|
+
"aria-describedby": `${I(S)}-filter-desc-${String(t.key)}`,
|
|
9209
|
+
"aria-expanded": r,
|
|
9210
|
+
class: j(["g-filter-btn", { "g-active": tt(t) }]),
|
|
9185
9211
|
type: "button"
|
|
9186
|
-
}, [...n[
|
|
9212
|
+
}, [...n[14] ||= [J("svg", {
|
|
9187
9213
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9188
9214
|
viewBox: "0 0 640 640",
|
|
9189
9215
|
height: "1.5em",
|
|
@@ -9191,12 +9217,12 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
9191
9217
|
}, [J("path", {
|
|
9192
9218
|
fill: "currentColor",
|
|
9193
9219
|
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"
|
|
9194
|
-
})], -1)]], 10,
|
|
9220
|
+
})], -1)]], 10, Wm)]),
|
|
9195
9221
|
default: L(() => [t.filter.type === "select" ? (G(), q(Rf, {
|
|
9196
9222
|
key: 0,
|
|
9197
|
-
"model-value":
|
|
9198
|
-
"onUpdate:modelValue": (e) =>
|
|
9199
|
-
options:
|
|
9223
|
+
"model-value": st(t),
|
|
9224
|
+
"onUpdate:modelValue": (e) => ct(t, e),
|
|
9225
|
+
options: at(t),
|
|
9200
9226
|
class: "g-filter-select",
|
|
9201
9227
|
label: "Filter select",
|
|
9202
9228
|
searchable: "",
|
|
@@ -9207,7 +9233,7 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
9207
9233
|
"onUpdate:modelValue",
|
|
9208
9234
|
"options",
|
|
9209
9235
|
"search-description"
|
|
9210
|
-
])) : t.filter.type === "search" ? (G(), K("div",
|
|
9236
|
+
])) : t.filter.type === "search" ? (G(), K("div", Gm, [n[15] ||= J("span", {
|
|
9211
9237
|
class: "g-filter-search-icon",
|
|
9212
9238
|
"aria-hidden": "true"
|
|
9213
9239
|
}, [J("svg", {
|
|
@@ -9220,29 +9246,29 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
9220
9246
|
})])], -1), J("input", {
|
|
9221
9247
|
type: "search",
|
|
9222
9248
|
class: "g-filter-search-input",
|
|
9223
|
-
value:
|
|
9224
|
-
onInput: (e) =>
|
|
9249
|
+
value: $e(t),
|
|
9250
|
+
onInput: (e) => et(t, e.target.value),
|
|
9225
9251
|
placeholder: t.filter.placeholder,
|
|
9226
9252
|
"aria-label": `Search ${t.label}`
|
|
9227
|
-
}, null, 40,
|
|
9253
|
+
}, null, 40, Km)])) : t.filter.type === "toggle" ? (G(), K("div", qm, [J("div", Jm, [
|
|
9228
9254
|
J("input", {
|
|
9229
9255
|
type: "checkbox",
|
|
9230
|
-
checked:
|
|
9231
|
-
onChange: (e) =>
|
|
9256
|
+
checked: $e(t) === !0,
|
|
9257
|
+
onChange: (e) => et(t, e.target.checked),
|
|
9232
9258
|
id: `${I(S)}-filter-${String(t.key)}`,
|
|
9233
9259
|
"aria-describedby": t.filter.description ? `${I(S)}-filter-description-${String(t.key)}` : void 0
|
|
9234
|
-
}, null, 40,
|
|
9235
|
-
J("label", { for: `${I(S)}-filter-${String(t.key)}` }, M(t.filter.label), 9,
|
|
9260
|
+
}, null, 40, Ym),
|
|
9261
|
+
J("label", { for: `${I(S)}-filter-${String(t.key)}` }, M(t.filter.label), 9, Xm),
|
|
9236
9262
|
t.filter.description ? (G(), K("span", {
|
|
9237
9263
|
key: 0,
|
|
9238
9264
|
class: "g-filter-description",
|
|
9239
9265
|
id: `${I(S)}-filter-description-${String(t.key)}`
|
|
9240
|
-
}, M(t.filter.description), 9,
|
|
9266
|
+
}, M(t.filter.description), 9, Zm)) : Z("", !0)
|
|
9241
9267
|
])])) : t.filter.type === "multi-select" && t.filter.searchable ? (G(), q(cf, {
|
|
9242
9268
|
key: 3,
|
|
9243
|
-
"model-value":
|
|
9244
|
-
"onUpdate:modelValue": (e) =>
|
|
9245
|
-
options:
|
|
9269
|
+
"model-value": lt(t),
|
|
9270
|
+
"onUpdate:modelValue": (e) => ut(t, e),
|
|
9271
|
+
options: at(t),
|
|
9246
9272
|
label: "Include values",
|
|
9247
9273
|
placeholder: t.filter.placeholder,
|
|
9248
9274
|
"search-description": t.filter.searchDescription,
|
|
@@ -9253,50 +9279,50 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
9253
9279
|
"options",
|
|
9254
9280
|
"placeholder",
|
|
9255
9281
|
"search-description"
|
|
9256
|
-
])) : t.filter.type === "multi-select" ? (G(), K("div",
|
|
9257
|
-
"model-value":
|
|
9258
|
-
"onUpdate:modelValue": (e) =>
|
|
9259
|
-
options:
|
|
9282
|
+
])) : t.filter.type === "multi-select" ? (G(), K("div", Qm, [Y(Gu, {
|
|
9283
|
+
"model-value": lt(t),
|
|
9284
|
+
"onUpdate:modelValue": (e) => ut(t, e),
|
|
9285
|
+
options: ot(t),
|
|
9260
9286
|
label: "Include values"
|
|
9261
9287
|
}, null, 8, [
|
|
9262
9288
|
"model-value",
|
|
9263
9289
|
"onUpdate:modelValue",
|
|
9264
9290
|
"options"
|
|
9265
|
-
]),
|
|
9291
|
+
]), tt(t) ? (G(), q(eu, {
|
|
9266
9292
|
key: 0,
|
|
9267
9293
|
class: "clear-multiselect-btn",
|
|
9268
9294
|
theme: "accent",
|
|
9269
9295
|
size: "small",
|
|
9270
|
-
onClick: (e) =>
|
|
9296
|
+
onClick: (e) => et(t, [])
|
|
9271
9297
|
}, {
|
|
9272
|
-
default: L(() => [...n[
|
|
9298
|
+
default: L(() => [...n[16] ||= [X(" Clear ", -1)]]),
|
|
9273
9299
|
_: 1
|
|
9274
9300
|
}, 8, ["onClick"])) : Z("", !0)])) : Z("", !0)]),
|
|
9275
9301
|
_: 2
|
|
9276
|
-
},
|
|
9302
|
+
}, 1032, ["aria-labelledby"])) : Z("", !0)]), e.resizableColumns ? (G(), K("div", {
|
|
9277
9303
|
key: 0,
|
|
9278
9304
|
"data-column-key": String(t.key),
|
|
9279
|
-
class: j(["g-column-resize-handle", { "g-column-resize-handle--active":
|
|
9305
|
+
class: j(["g-column-resize-handle", { "g-column-resize-handle--active": O.value?.key === t.key }]),
|
|
9280
9306
|
role: "separator",
|
|
9281
9307
|
tabindex: "0",
|
|
9282
9308
|
"aria-orientation": "vertical",
|
|
9283
|
-
"aria-controls":
|
|
9309
|
+
"aria-controls": ne,
|
|
9284
9310
|
"aria-label": `Resize ${t.label} column`,
|
|
9285
9311
|
"aria-valuemin": 50,
|
|
9286
|
-
"aria-valuemax":
|
|
9287
|
-
"aria-valuenow":
|
|
9288
|
-
"aria-valuetext":
|
|
9312
|
+
"aria-valuemax": Ae(t.key),
|
|
9313
|
+
"aria-valuenow": Re(t.key),
|
|
9314
|
+
"aria-valuetext": ze(t.key),
|
|
9289
9315
|
onClick: n[0] ||= Ts(() => {}, ["stop", "prevent"]),
|
|
9290
|
-
onKeydown: (e) =>
|
|
9291
|
-
onPointerdown: (e) =>
|
|
9292
|
-
}, null, 42,
|
|
9293
|
-
e.data.length === 0 ? (G(), K("tbody",
|
|
9316
|
+
onKeydown: (e) => Ie(e, t.key),
|
|
9317
|
+
onPointerdown: (e) => Fe(e, t.key)
|
|
9318
|
+
}, null, 42, $m)) : Z("", !0)], 10, zm))), 128))])]),
|
|
9319
|
+
e.data.length === 0 ? (G(), K("tbody", eh, [J("tr", th, [J("td", {
|
|
9294
9320
|
class: "g-table-empty",
|
|
9295
|
-
colspan:
|
|
9296
|
-
}, [H(t.$slots, "empty")], 8,
|
|
9321
|
+
colspan: Ve.value.length + +!!e.bulkSelectionEnabled
|
|
9322
|
+
}, [H(t.$slots, "empty")], 8, nh)])])) : (G(), q(mp, {
|
|
9297
9323
|
key: 1,
|
|
9298
9324
|
data: e.data,
|
|
9299
|
-
columns:
|
|
9325
|
+
columns: Ve.value,
|
|
9300
9326
|
"group-by": e.groupBy,
|
|
9301
9327
|
"group-render": e.groupRender,
|
|
9302
9328
|
"row-clickable": e.rowClickable,
|
|
@@ -9322,8 +9348,11 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
9322
9348
|
"table-id",
|
|
9323
9349
|
"change-tracker"
|
|
9324
9350
|
]))
|
|
9325
|
-
], 10,
|
|
9326
|
-
|
|
9351
|
+
], 10, jm), J("div", rh, [(G(!0), K(W, null, V(Ve.value, (e) => (G(), K(W, { key: e.key }, [e.sortable ? (G(), K("span", {
|
|
9352
|
+
key: 0,
|
|
9353
|
+
id: `${I(S)}-sort-desc-${String(e.key)}`
|
|
9354
|
+
}, M(pe(e.key)), 9, ih)) : Z("", !0), e.filter ? (G(), K(W, { key: 1 }, [J("span", { id: `${I(S)}-filter-desc-${String(e.key)}` }, M(e.label) + " column" + M(tt(e) ? ", filtered" : ""), 9, ah), J("span", { id: `${I(S)}-filter-label-${String(e.key)}` }, "Filter " + M(e.label) + " column", 9, oh)], 64)) : Z("", !0)], 64))), 128))])], 512),
|
|
9355
|
+
e.bulkSelectionEnabled && a.value.length > 0 ? (G(), K("div", sh, [J("span", ch, M(a.value.length) + " row" + M(a.value.length === 1 ? "" : "s") + " selected", 1), J("ul", lh, [(G(!0), K(W, null, V(e.bulkActions, (e) => (G(), K("li", { key: e.id }, [Y(eu, {
|
|
9327
9356
|
theme: e.theme || "accent",
|
|
9328
9357
|
onClick: (t) => v(e.id),
|
|
9329
9358
|
size: "small"
|
|
@@ -9331,9 +9360,9 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
9331
9360
|
default: L(() => [X(M(e.label) + " " + M(a.value.length) + " row" + M(a.value.length === 1 ? "" : "s"), 1)]),
|
|
9332
9361
|
_: 2
|
|
9333
9362
|
}, 1032, ["theme", "onClick"])]))), 128))])])) : Z("", !0)
|
|
9334
|
-
]));
|
|
9363
|
+
])], 4));
|
|
9335
9364
|
}
|
|
9336
|
-
}), [["styles", [""]]]),
|
|
9365
|
+
}), [["styles", [""]]]), dh = { class: "popover-content" }, fh = { class: "year-dropdown" }, ph = { class: "month-selector" }, mh = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
9337
9366
|
__name: "GTermSelectorControl",
|
|
9338
9367
|
props: /*@__PURE__*/ U({
|
|
9339
9368
|
termYears: {
|
|
@@ -9366,7 +9395,7 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
9366
9395
|
emits: ["update:modelValue"],
|
|
9367
9396
|
setup(e) {
|
|
9368
9397
|
let t = Ni(e, "modelValue");
|
|
9369
|
-
return (n, r) => (G(), K("div",
|
|
9398
|
+
return (n, r) => (G(), K("div", dh, [J("div", fh, [Y(Rf, {
|
|
9370
9399
|
modelValue: t.value.year,
|
|
9371
9400
|
"onUpdate:modelValue": r[0] ||= (e) => t.value.year = e,
|
|
9372
9401
|
options: e.termYears,
|
|
@@ -9375,7 +9404,7 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
9375
9404
|
"modelValue",
|
|
9376
9405
|
"options",
|
|
9377
9406
|
"label"
|
|
9378
|
-
])]), J("div",
|
|
9407
|
+
])]), J("div", ph, [Y(Gf, {
|
|
9379
9408
|
modelValue: t.value.name,
|
|
9380
9409
|
"onUpdate:modelValue": r[1] ||= (e) => t.value.name = e,
|
|
9381
9410
|
options: e.termNames,
|
|
@@ -9387,7 +9416,7 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
9387
9416
|
"label"
|
|
9388
9417
|
])])]));
|
|
9389
9418
|
}
|
|
9390
|
-
}), [["styles", [""]]]),
|
|
9419
|
+
}), [["styles", [""]]]), hh = { class: "g-term-selector" }, gh = { class: "g-term-label" }, _h = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
9391
9420
|
__name: "GTermSelector",
|
|
9392
9421
|
props: /*@__PURE__*/ U({
|
|
9393
9422
|
heading: {
|
|
@@ -9418,7 +9447,7 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
9418
9447
|
emits: ["update:modelValue"],
|
|
9419
9448
|
setup(e) {
|
|
9420
9449
|
let t = Ni(e, "modelValue"), n = `${B()}-heading`;
|
|
9421
|
-
return (r, i) => (G(), K("div",
|
|
9450
|
+
return (r, i) => (G(), K("div", hh, [Y(hu, { "aria-labelledby": n }, {
|
|
9422
9451
|
trigger: L(({ toggle: e, open: n, popoverId: r }) => [Y(eu, {
|
|
9423
9452
|
class: "g-term-selector-button",
|
|
9424
9453
|
theme: "none",
|
|
@@ -9434,7 +9463,7 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
9434
9463
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9435
9464
|
viewBox: "0 0 640 640"
|
|
9436
9465
|
}, [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),
|
|
9437
|
-
J("span",
|
|
9466
|
+
J("span", gh, M(t.value?.name) + " " + M(t.value?.year), 1),
|
|
9438
9467
|
i[2] ||= J("span", { class: "g-caret" }, [J("svg", {
|
|
9439
9468
|
role: "none",
|
|
9440
9469
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9451,18 +9480,18 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
9451
9480
|
id: n,
|
|
9452
9481
|
class: "g-popover-title",
|
|
9453
9482
|
tabindex: "-1"
|
|
9454
|
-
}, M(e.heading), 1), Y(
|
|
9483
|
+
}, M(e.heading), 1), Y(mh, Ha(r.$props, {
|
|
9455
9484
|
modelValue: t.value,
|
|
9456
9485
|
"onUpdate:modelValue": i[0] ||= (e) => t.value = e
|
|
9457
9486
|
}), null, 16, ["modelValue"])]),
|
|
9458
9487
|
_: 1
|
|
9459
9488
|
})]));
|
|
9460
9489
|
}
|
|
9461
|
-
}), [["styles", [""]]]),
|
|
9490
|
+
}), [["styles", [""]]]), vh = ["for"], yh = {
|
|
9462
9491
|
key: 0,
|
|
9463
9492
|
class: "g-textarea-required",
|
|
9464
9493
|
"aria-hidden": "true"
|
|
9465
|
-
},
|
|
9494
|
+
}, bh = ["id"], xh = [
|
|
9466
9495
|
"value",
|
|
9467
9496
|
"placeholder",
|
|
9468
9497
|
"disabled",
|
|
@@ -9471,11 +9500,11 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
9471
9500
|
"rows",
|
|
9472
9501
|
"maxlength",
|
|
9473
9502
|
"aria-invalid"
|
|
9474
|
-
],
|
|
9503
|
+
], Sh = {
|
|
9475
9504
|
key: 2,
|
|
9476
9505
|
class: "g-textarea-char-count",
|
|
9477
9506
|
"aria-live": "polite"
|
|
9478
|
-
},
|
|
9507
|
+
}, Ch = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
9479
9508
|
inheritAttrs: !1,
|
|
9480
9509
|
__name: "GTextarea",
|
|
9481
9510
|
props: /*@__PURE__*/ U({
|
|
@@ -9573,12 +9602,12 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
9573
9602
|
key: 0,
|
|
9574
9603
|
for: c.value,
|
|
9575
9604
|
class: "g-textarea-label"
|
|
9576
|
-
}, [X(M(n.label), 1), n.required ? (G(), K("span",
|
|
9605
|
+
}, [X(M(n.label), 1), n.required ? (G(), K("span", yh, " *")) : Z("", !0)], 8, vh)) : Z("", !0),
|
|
9577
9606
|
t.$slots.instructions || e.instructions ? (G(), K("div", {
|
|
9578
9607
|
key: 1,
|
|
9579
9608
|
id: "instructions-" + I(i),
|
|
9580
9609
|
class: "g-textarea-instructions"
|
|
9581
|
-
}, [H(t.$slots, "instructions", {}, () => [X(M(e.instructions), 1)])], 8,
|
|
9610
|
+
}, [H(t.$slots, "instructions", {}, () => [X(M(e.instructions), 1)])], 8, bh)) : Z("", !0),
|
|
9582
9611
|
J("textarea", Ha({
|
|
9583
9612
|
ref: "textareaEl",
|
|
9584
9613
|
value: r.value ?? "",
|
|
@@ -9599,36 +9628,36 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
9599
9628
|
onInput: h,
|
|
9600
9629
|
onBlur: g,
|
|
9601
9630
|
onPaste: _
|
|
9602
|
-
}), null, 16,
|
|
9603
|
-
n.maxlength === void 0 ? Z("", !0) : (G(), K("div",
|
|
9631
|
+
}), null, 16, xh),
|
|
9632
|
+
n.maxlength === void 0 ? Z("", !0) : (G(), K("div", Sh, M((r.value ?? "").length) + " / " + M(n.maxlength), 1)),
|
|
9604
9633
|
Y(Pu, {
|
|
9605
9634
|
errors: I(l),
|
|
9606
9635
|
id: "error-message-" + I(i)
|
|
9607
9636
|
}, null, 8, ["errors", "id"])
|
|
9608
9637
|
], 2));
|
|
9609
9638
|
}
|
|
9610
|
-
}), [["styles", [""]]]),
|
|
9639
|
+
}), [["styles", [""]]]), wh = { class: "g-three-way-toggle-wrapper" }, Th = { class: "g-three-way-toggle-control" }, Eh = ["id"], Dh = [
|
|
9611
9640
|
"aria-labelledby",
|
|
9612
9641
|
"aria-describedby",
|
|
9613
9642
|
"disabled",
|
|
9614
9643
|
"aria-invalid",
|
|
9615
9644
|
"aria-errormessage"
|
|
9616
|
-
],
|
|
9645
|
+
], Oh = { key: 0 }, kh = { key: 1 }, Ah = { key: 2 }, jh = ["for"], Mh = [
|
|
9617
9646
|
"id",
|
|
9618
9647
|
"name",
|
|
9619
9648
|
"checked",
|
|
9620
9649
|
"disabled"
|
|
9621
|
-
],
|
|
9650
|
+
], Nh = ["for"], Ph = [
|
|
9622
9651
|
"id",
|
|
9623
9652
|
"name",
|
|
9624
9653
|
"checked",
|
|
9625
9654
|
"disabled"
|
|
9626
|
-
],
|
|
9655
|
+
], Fh = ["for"], Ih = [
|
|
9627
9656
|
"id",
|
|
9628
9657
|
"name",
|
|
9629
9658
|
"checked",
|
|
9630
9659
|
"disabled"
|
|
9631
|
-
],
|
|
9660
|
+
], Lh = ["id"], Rh = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
9632
9661
|
__name: "GThreeWayToggle",
|
|
9633
9662
|
props: /*@__PURE__*/ U({
|
|
9634
9663
|
label: { type: String },
|
|
@@ -9662,10 +9691,10 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
9662
9691
|
function m(e) {
|
|
9663
9692
|
n.disabled || (e.key === "n" || e.key === "N" ? (a(!1), e.preventDefault()) : (e.key === "y" || e.key === "Y") && (a(!0), e.preventDefault()));
|
|
9664
9693
|
}
|
|
9665
|
-
return (t, n) => (G(), K("div",
|
|
9694
|
+
return (t, n) => (G(), K("div", wh, [J("div", Th, [J("span", {
|
|
9666
9695
|
class: "g-label",
|
|
9667
9696
|
id: I(c)
|
|
9668
|
-
}, [H(t.$slots, "label", {}, () => [X(M(e.label), 1)])], 8,
|
|
9697
|
+
}, [H(t.$slots, "label", {}, () => [X(M(e.label), 1)])], 8, Eh), J("fieldset", {
|
|
9669
9698
|
class: j(["g-three-way-toggle", { "g-has-error": e.error }]),
|
|
9670
9699
|
role: "radiogroup",
|
|
9671
9700
|
"aria-labelledby": I(c),
|
|
@@ -9677,7 +9706,7 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
9677
9706
|
J("span", {
|
|
9678
9707
|
class: j(["g-toggle-thumb", p.value]),
|
|
9679
9708
|
"aria-hidden": "true"
|
|
9680
|
-
}, [r.value === !1 ? (G(), K("span",
|
|
9709
|
+
}, [r.value === !1 ? (G(), K("span", Oh, "NO")) : r.value === !0 ? (G(), K("span", kh, "YES")) : (G(), K("span", Ah))], 2),
|
|
9681
9710
|
J("label", {
|
|
9682
9711
|
for: I(u),
|
|
9683
9712
|
class: "g-toggle-option g-left",
|
|
@@ -9691,7 +9720,7 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
9691
9720
|
value: "false",
|
|
9692
9721
|
disabled: e.disabled,
|
|
9693
9722
|
onChange: n[0] ||= (e) => o(!1)
|
|
9694
|
-
}, null, 40,
|
|
9723
|
+
}, null, 40, Mh), n[5] ||= J("span", { class: "ilw-sr-only" }, "No", -1)], 40, jh),
|
|
9695
9724
|
J("label", {
|
|
9696
9725
|
for: I(d),
|
|
9697
9726
|
class: "g-toggle-option g-center",
|
|
@@ -9703,7 +9732,7 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
9703
9732
|
checked: r.value === null,
|
|
9704
9733
|
disabled: e.disabled,
|
|
9705
9734
|
onChange: n[2] ||= (e) => o(null)
|
|
9706
|
-
}, null, 40,
|
|
9735
|
+
}, null, 40, Ph), n[6] ||= J("span", { class: "ilw-sr-only" }, "Unset", -1)], 40, Nh),
|
|
9707
9736
|
J("label", {
|
|
9708
9737
|
for: I(f),
|
|
9709
9738
|
class: "g-toggle-option g-right",
|
|
@@ -9717,16 +9746,16 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
9717
9746
|
checked: r.value === !0,
|
|
9718
9747
|
disabled: e.disabled,
|
|
9719
9748
|
onChange: n[3] ||= (e) => o(!0)
|
|
9720
|
-
}, null, 40,
|
|
9721
|
-
], 2)], 10,
|
|
9749
|
+
}, null, 40, Ih), n[7] ||= J("span", { class: "ilw-sr-only" }, "Yes", -1)], 40, Fh)
|
|
9750
|
+
], 2)], 10, Dh)]), e.error ? (G(), K("div", {
|
|
9722
9751
|
key: 0,
|
|
9723
9752
|
id: `${I(c)}-error`,
|
|
9724
9753
|
class: "g-form-error",
|
|
9725
9754
|
role: "alert",
|
|
9726
9755
|
"aria-atomic": "true"
|
|
9727
|
-
}, M(e.error), 9,
|
|
9756
|
+
}, M(e.error), 9, Lh)) : Z("", !0)]));
|
|
9728
9757
|
}
|
|
9729
|
-
}), [["styles", [""]]]),
|
|
9758
|
+
}), [["styles", [""]]]), zh = { class: "g-toggle-wrapper" }, Bh = ["for"], Vh = [
|
|
9730
9759
|
"id",
|
|
9731
9760
|
"checked",
|
|
9732
9761
|
"disabled",
|
|
@@ -9734,7 +9763,7 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
9734
9763
|
"aria-describedby",
|
|
9735
9764
|
"aria-invalid",
|
|
9736
9765
|
"aria-errormessage"
|
|
9737
|
-
],
|
|
9766
|
+
], Hh = ["id"], Uh = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
9738
9767
|
__name: "GToggle",
|
|
9739
9768
|
props: /*@__PURE__*/ U({
|
|
9740
9769
|
label: { type: String },
|
|
@@ -9769,11 +9798,11 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
9769
9798
|
n.disabled || (e.key === "n" || e.key === "N" || e.key === "ArrowLeft" ? (a(!1), e.preventDefault()) : (e.key === "y" || e.key === "Y" || e.key === "ArrowRight") && (a(!0), e.preventDefault()));
|
|
9770
9799
|
}
|
|
9771
9800
|
let l = B(), u = B();
|
|
9772
|
-
return (t, n) => (G(), K("div",
|
|
9801
|
+
return (t, n) => (G(), K("div", zh, [J("div", { class: j(["g-toggle-control", { "g-external-label": e.externalLabel }]) }, [e.externalLabel ? Z("", !0) : (G(), K("label", {
|
|
9773
9802
|
key: 0,
|
|
9774
9803
|
class: "g-label",
|
|
9775
9804
|
for: I(u)
|
|
9776
|
-
}, [H(t.$slots, "label", {}, () => [X(M(e.label), 1)])], 8,
|
|
9805
|
+
}, [H(t.$slots, "label", {}, () => [X(M(e.label), 1)])], 8, Bh)), J("div", { class: j(["g-toggle", { "g-has-error": e.error }]) }, [J("div", { class: j(["g-toggle-track", [r.value ? "g-right" : "g-left", { "g-disabled": e.disabled }]]) }, [J("span", {
|
|
9777
9806
|
class: j(["g-toggle-thumb", r.value ? "g-right" : "g-left"]),
|
|
9778
9807
|
"aria-hidden": "true"
|
|
9779
9808
|
}, null, 2), J("input", {
|
|
@@ -9787,21 +9816,21 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
9787
9816
|
"aria-errormessage": e.error ? I(l) + "-error" : void 0,
|
|
9788
9817
|
onChange: s,
|
|
9789
9818
|
onKeydown: c
|
|
9790
|
-
}, null, 40,
|
|
9819
|
+
}, null, 40, Vh)], 2)], 2)], 2), e.error ? (G(), K("div", {
|
|
9791
9820
|
key: 0,
|
|
9792
9821
|
id: `${I(l)}-error`,
|
|
9793
9822
|
class: "g-form-error",
|
|
9794
9823
|
role: "alert",
|
|
9795
9824
|
"aria-atomic": "true"
|
|
9796
|
-
}, M(e.error), 9,
|
|
9825
|
+
}, M(e.error), 9, Hh)) : Z("", !0)]));
|
|
9797
9826
|
}
|
|
9798
|
-
}), [["styles", [""]]]),
|
|
9827
|
+
}), [["styles", [""]]]), Wh = { class: "g-tree-menu__divider" }, Gh = {
|
|
9799
9828
|
key: 0,
|
|
9800
9829
|
class: "g-tree-menu__divider-line"
|
|
9801
|
-
},
|
|
9830
|
+
}, Kh = {
|
|
9802
9831
|
key: 1,
|
|
9803
9832
|
class: "g-tree-menu__expand-all-wrapper"
|
|
9804
|
-
},
|
|
9833
|
+
}, qh = { class: "g-tree-menu__content" }, Jh = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
9805
9834
|
__name: "GTreeMenu",
|
|
9806
9835
|
props: {
|
|
9807
9836
|
heading: { type: String },
|
|
@@ -9861,7 +9890,7 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
9861
9890
|
default: L(() => [H(n.$slots, "heading", {}, () => [X(M(e.heading), 1)])]),
|
|
9862
9891
|
_: 3
|
|
9863
9892
|
}, 8, ["id"])) : Z("", !0),
|
|
9864
|
-
J("div",
|
|
9893
|
+
J("div", Wh, [e.smallHeading ? Z("", !0) : (G(), K("div", Gh)), e.showExpandAll ? (G(), K("div", Kh, [J("button", {
|
|
9865
9894
|
class: "g-tree-menu__expand-all-btn",
|
|
9866
9895
|
onClick: u
|
|
9867
9896
|
}, [(G(), K("svg", {
|
|
@@ -9874,10 +9903,10 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
9874
9903
|
"stroke-linecap": "round",
|
|
9875
9904
|
"stroke-linejoin": "round"
|
|
9876
9905
|
}, [...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)]),
|
|
9877
|
-
J("div",
|
|
9906
|
+
J("div", qh, [H(n.$slots, "default")])
|
|
9878
9907
|
], 16));
|
|
9879
9908
|
}
|
|
9880
|
-
}), [["styles", [""]]]),
|
|
9909
|
+
}), [["styles", [""]]]), Yh = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
9881
9910
|
name: "GTreeMenuList",
|
|
9882
9911
|
props: { listType: {
|
|
9883
9912
|
default: void 0,
|
|
@@ -9897,20 +9926,20 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
9897
9926
|
_: 3
|
|
9898
9927
|
}, 8, ["role"]));
|
|
9899
9928
|
}
|
|
9900
|
-
}), [["styles", [""]]]),
|
|
9929
|
+
}), [["styles", [""]]]), Xh = {
|
|
9901
9930
|
key: 0,
|
|
9902
9931
|
class: "g-tree-menu__row"
|
|
9903
|
-
},
|
|
9932
|
+
}, Zh = { class: "g-tree-menu__row-content-text" }, Qh = [
|
|
9904
9933
|
"aria-controls",
|
|
9905
9934
|
"aria-expanded",
|
|
9906
9935
|
"aria-label"
|
|
9907
|
-
],
|
|
9936
|
+
], $h = {
|
|
9908
9937
|
key: 1,
|
|
9909
9938
|
class: "g-tree-menu__row g-tree-menu__row--leaf"
|
|
9910
|
-
},
|
|
9939
|
+
}, eg = {
|
|
9911
9940
|
class: "g-tree-menu__row-content",
|
|
9912
9941
|
"data-tree-primary": ""
|
|
9913
|
-
},
|
|
9942
|
+
}, tg = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
9914
9943
|
name: "GTreeMenuItem",
|
|
9915
9944
|
inheritAttrs: !1,
|
|
9916
9945
|
props: {
|
|
@@ -9975,11 +10004,11 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
9975
10004
|
class: "g-tree-menu__item",
|
|
9976
10005
|
"data-tree-expandable": c.value ? "true" : void 0
|
|
9977
10006
|
}), {
|
|
9978
|
-
default: L(() => [c.value ? (G(), K("div",
|
|
10007
|
+
default: L(() => [c.value ? (G(), K("div", Xh, [J("span", {
|
|
9979
10008
|
class: "g-tree-menu__row-content",
|
|
9980
10009
|
"data-tree-primary": "",
|
|
9981
10010
|
onClick: b
|
|
9982
|
-
}, [J("span",
|
|
10011
|
+
}, [J("span", Zh, [H(e.$slots, "default")])]), J("button", {
|
|
9983
10012
|
type: "button",
|
|
9984
10013
|
class: "g-tree-menu__toggle-btn",
|
|
9985
10014
|
"aria-controls": I(o) + "-children",
|
|
@@ -9997,7 +10026,7 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
9997
10026
|
"stroke-width": "2.5",
|
|
9998
10027
|
"stroke-linecap": "round",
|
|
9999
10028
|
"stroke-linejoin": "round"
|
|
10000
|
-
}, [...t[0] ||= [J("polyline", { points: "9 18 15 12 9 6" }, null, -1)]], 2))], 8,
|
|
10029
|
+
}, [...t[0] ||= [J("polyline", { points: "9 18 15 12 9 6" }, null, -1)]], 2))], 8, Qh)])) : (G(), K("div", $h, [t[1] ||= J("span", { class: "g-tree-menu__spacer" }, null, -1), J("span", eg, [H(e.$slots, "default")])])), c.value && f.value ? (G(), q(Yh, {
|
|
10001
10030
|
key: 2,
|
|
10002
10031
|
id: I(o) + "-children"
|
|
10003
10032
|
}, {
|
|
@@ -10007,11 +10036,11 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
10007
10036
|
_: 3
|
|
10008
10037
|
}, 16, ["role", "data-tree-expandable"]));
|
|
10009
10038
|
}
|
|
10010
|
-
}), [["styles", [""]]]),
|
|
10039
|
+
}), [["styles", [""]]]), ng = { class: "g-user-menu" }, rg = [
|
|
10011
10040
|
"aria-label",
|
|
10012
10041
|
"aria-expanded",
|
|
10013
10042
|
"onClick"
|
|
10014
|
-
],
|
|
10043
|
+
], ig = { class: "g-user-menu__popover" }, ag = { class: "g-user-menu__list" }, og = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
10015
10044
|
__name: "GUserMenu",
|
|
10016
10045
|
props: {
|
|
10017
10046
|
initials: { type: String },
|
|
@@ -10032,7 +10061,7 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
10032
10061
|
e.target?.closest("a") && (n.value = !1);
|
|
10033
10062
|
}
|
|
10034
10063
|
let a = ui();
|
|
10035
|
-
return (o, s) => (G(), K("div",
|
|
10064
|
+
return (o, s) => (G(), K("div", ng, [Y(hu, {
|
|
10036
10065
|
modelValue: n.value,
|
|
10037
10066
|
"onUpdate:modelValue": s[0] ||= (e) => n.value = e,
|
|
10038
10067
|
minimal: ""
|
|
@@ -10044,8 +10073,8 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
10044
10073
|
"aria-expanded": n.value,
|
|
10045
10074
|
"aria-haspopup": "menu",
|
|
10046
10075
|
onClick: t
|
|
10047
|
-
}, M(e.initials), 13,
|
|
10048
|
-
default: L(() => [J("div",
|
|
10076
|
+
}, M(e.initials), 13, rg)]),
|
|
10077
|
+
default: L(() => [J("div", ig, [J("h2", {
|
|
10049
10078
|
id: t,
|
|
10050
10079
|
ref_key: "emailHeading",
|
|
10051
10080
|
ref: r,
|
|
@@ -10055,19 +10084,19 @@ var Zp = { class: "g-table-outer-wrap" }, Qp = {
|
|
|
10055
10084
|
class: "g-user-menu__nav",
|
|
10056
10085
|
"aria-labelledby": t,
|
|
10057
10086
|
onClick: i
|
|
10058
|
-
}, [J("ul",
|
|
10087
|
+
}, [J("ul", ag, [(G(!0), K(W, null, V(a.default(), (e, t) => (G(), K("li", { key: t }, [(G(), q(ni(e)))]))), 128))])])])]),
|
|
10059
10088
|
_: 1
|
|
10060
10089
|
}, 8, ["modelValue"])]));
|
|
10061
10090
|
}
|
|
10062
|
-
}), [["styles", [""]]]),
|
|
10063
|
-
|
|
10064
|
-
var
|
|
10091
|
+
}), [["styles", [""]]]), sg = globalThis;
|
|
10092
|
+
sg.__GRAD_VUE_IS_WEB_COMPONENTS_BUILD__ = !0;
|
|
10093
|
+
var cg = {
|
|
10065
10094
|
shadowRoot: !1,
|
|
10066
10095
|
configureApp(e) {
|
|
10067
|
-
let t = (
|
|
10068
|
-
|
|
10096
|
+
let t = (sg.__GRAD_VUE_WC_APP_ID__ ?? 0) + 1;
|
|
10097
|
+
sg.__GRAD_VUE_WC_APP_ID__ = t, e.config.idPrefix = `g-wc-${t}-`;
|
|
10069
10098
|
}
|
|
10070
|
-
},
|
|
10099
|
+
}, lg = [
|
|
10071
10100
|
["g-alert-dialog", ou],
|
|
10072
10101
|
["g-app-header", Ou],
|
|
10073
10102
|
["g-button", eu],
|
|
@@ -10095,21 +10124,21 @@ var ag = {
|
|
|
10095
10124
|
["g-sidebar", Jf],
|
|
10096
10125
|
["g-sidebar-menu", Qf],
|
|
10097
10126
|
["g-submit-button", $f],
|
|
10098
|
-
["g-table",
|
|
10127
|
+
["g-table", uh],
|
|
10099
10128
|
["g-table-body", mp],
|
|
10100
|
-
["g-term-selector",
|
|
10101
|
-
["g-term-selector-control",
|
|
10129
|
+
["g-term-selector", _h],
|
|
10130
|
+
["g-term-selector-control", mh],
|
|
10102
10131
|
["g-text-input", cd],
|
|
10103
|
-
["g-textarea",
|
|
10104
|
-
["g-three-way-toggle",
|
|
10105
|
-
["g-toggle",
|
|
10106
|
-
["g-tree-menu",
|
|
10107
|
-
["g-tree-menu-list",
|
|
10108
|
-
["g-tree-menu-item",
|
|
10109
|
-
["g-user-menu",
|
|
10132
|
+
["g-textarea", Ch],
|
|
10133
|
+
["g-three-way-toggle", Rh],
|
|
10134
|
+
["g-toggle", Uh],
|
|
10135
|
+
["g-tree-menu", Jh],
|
|
10136
|
+
["g-tree-menu-list", Yh],
|
|
10137
|
+
["g-tree-menu-item", tg],
|
|
10138
|
+
["g-user-menu", og]
|
|
10110
10139
|
];
|
|
10111
|
-
for (let [e, t] of
|
|
10112
|
-
let n = /* @__PURE__ */ bs(t,
|
|
10140
|
+
for (let [e, t] of lg) {
|
|
10141
|
+
let n = /* @__PURE__ */ bs(t, cg);
|
|
10113
10142
|
customElements.define(e, n);
|
|
10114
10143
|
}
|
|
10115
10144
|
//#endregion
|