@illinois-grad/grad-vue 7.2.8 → 7.2.9
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 +42 -0
- package/dist/components/GCheckboxGroup.vue.d.ts +1 -1
- package/dist/components/GForm.vue.d.ts +1 -1
- package/dist/components/GSearch.vue.d.ts +60 -16
- package/dist/{grad-vue-DSPqd1gb.js → grad-vue-CtUm1dK7.js} +698 -609
- package/dist/grad-vue-CtUm1dK7.js.map +1 -0
- package/dist/grad-vue-elements.css +28 -28
- package/dist/grad-vue-elements.d.ts +7 -1
- package/dist/grad-vue-elements.js +1442 -1348
- package/dist/grad-vue-elements.js.map +1 -1
- package/dist/grad-vue.css +1 -1
- package/dist/grad-vue.d.ts +1 -0
- package/dist/grad-vue.js +1 -1
- package/dist/plugin.js +1 -1
- package/package.json +3 -3
- package/dist/grad-vue-DSPqd1gb.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Fragment as e, Teleport as t, Transition as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, getCurrentInstance as d, getCurrentScope as f, inject as p, mergeModels as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeStyle as v, onBeforeMount as y, onBeforeUnmount as b, onMounted as x, onScopeDispose as S, onUnmounted as C, openBlock as w, provide as T, reactive as E, readonly as D, ref as O, renderList as k, renderSlot as A, resolveDynamicComponent as j, shallowReactive as M, shallowRef as N, toDisplayString as P, toRaw as F, toRef as I, toValue as L, unref as R, useAttrs as z, useId as B, useModel as V, useSlots as H, useTemplateRef as U, vShow as ee, watch as W, watchEffect as G, withCtx as K, withDirectives as te, withModifiers as q } from "vue";
|
|
2
|
-
import { createEventHook as ne, toArray as
|
|
3
|
-
import { createFocusTrap as
|
|
2
|
+
import { createEventHook as ne, toArray as J, tryOnScopeDispose as Y, unrefElement as X, useClipboard as re, useDebounceFn as ie, useEventListener as Z, useFocusWithin as ae, useIntersectionObserver as oe, useIntervalFn as se, useLocalStorage as Q, useMediaQuery as ce, useMutationObserver as le, useResizeObserver as ue, useSessionStorage as de } from "@vueuse/core";
|
|
3
|
+
import { createFocusTrap as fe } from "focus-trap";
|
|
4
4
|
// src/compose/useCustomElementAttrs.ts
|
|
5
|
-
function
|
|
5
|
+
function pe() {
|
|
6
6
|
return globalThis.__GRAD_VUE_IS_WEB_COMPONENTS_BUILD__ === !0;
|
|
7
7
|
}
|
|
8
8
|
function me(e = {}) {
|
|
@@ -128,7 +128,7 @@ var he = { class: "g-btn--icon" }, ge = { class: "g-btn--label" }, $ = /* @__PUR
|
|
|
128
128
|
setup(e) {
|
|
129
129
|
let t = e, n = H(), l = d(), u = B(), f = (l?.ce)?._slots?.heading?.length > 0, p = r(() => !!t.heading || !!n.heading || f);
|
|
130
130
|
T("g-tree-menu-list-type", t.listType);
|
|
131
|
-
let m = t.storageKey ?
|
|
131
|
+
let m = t.storageKey ? de(t.storageKey, {}) : null;
|
|
132
132
|
T("g-tree-menu-expanded-storage", m);
|
|
133
133
|
let g = E(/* @__PURE__ */ new Map());
|
|
134
134
|
T("g-tree-menu-expandable-items", g);
|
|
@@ -181,7 +181,7 @@ var he = { class: "g-btn--icon" }, ge = { class: "g-btn--label" }, $ = /* @__PUR
|
|
|
181
181
|
name: "GTreeMenuList",
|
|
182
182
|
props: { listType: { default: void 0 } },
|
|
183
183
|
setup(e) {
|
|
184
|
-
let t = e, n = p("g-tree-menu-list-type", "ul"), a = r(() => t.listType ?? n ?? "ul"), o =
|
|
184
|
+
let t = e, n = p("g-tree-menu-list-type", "ul"), a = r(() => t.listType ?? n ?? "ul"), o = pe(), s = d();
|
|
185
185
|
return x(() => {
|
|
186
186
|
if (!o) return;
|
|
187
187
|
let e = s?.ce;
|
|
@@ -258,7 +258,7 @@ var he = { class: "g-btn--icon" }, ge = { class: "g-btn--label" }, $ = /* @__PUR
|
|
|
258
258
|
function F(e) {
|
|
259
259
|
e.target.closest("a, button") || T();
|
|
260
260
|
}
|
|
261
|
-
let I =
|
|
261
|
+
let I = pe(), L = u?.ce;
|
|
262
262
|
x(() => {
|
|
263
263
|
I && L && L.setAttribute("role", "listitem");
|
|
264
264
|
});
|
|
@@ -357,7 +357,7 @@ function je(e = "default") {
|
|
|
357
357
|
}
|
|
358
358
|
// src/compose/useFormField.ts
|
|
359
359
|
function Me(e) {
|
|
360
|
-
let t = z(), n = typeof t["form-key"] == "string" ? t["form-key"] : void 0, i = e.formKey ?? n ?? "default", a = p("form", null) ?? (
|
|
360
|
+
let t = z(), n = typeof t["form-key"] == "string" ? t["form-key"] : void 0, i = e.formKey ?? n ?? "default", a = p("form", null) ?? (pe() ? je(i) : null), o = r(() => {
|
|
361
361
|
let t = [];
|
|
362
362
|
return e.errors && t.push(...e.errors.value.filter(Boolean)), t;
|
|
363
363
|
}), s = r(() => o.value.length > 0), c = e.name;
|
|
@@ -571,14 +571,14 @@ function $e(e, t = {}) {
|
|
|
571
571
|
n && (n.unpause(), s.value = !1);
|
|
572
572
|
}, f = r(() => {
|
|
573
573
|
let t = L(e);
|
|
574
|
-
return
|
|
574
|
+
return J(t).map((e) => {
|
|
575
575
|
let t = L(e);
|
|
576
|
-
return typeof t == "string" ? t :
|
|
576
|
+
return typeof t == "string" ? t : X(t);
|
|
577
577
|
}).filter(Qe);
|
|
578
578
|
});
|
|
579
579
|
return W(f, (e) => {
|
|
580
580
|
if (e.length) {
|
|
581
|
-
if (!n) n =
|
|
581
|
+
if (!n) n = fe(e, {
|
|
582
582
|
...a,
|
|
583
583
|
onActivate(e) {
|
|
584
584
|
o.value = !0, t.onActivate && t.onActivate(e);
|
|
@@ -592,7 +592,7 @@ function $e(e, t = {}) {
|
|
|
592
592
|
n?.updateContainerElements(e), !t && i && c();
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
|
-
}, { flush: "post" }),
|
|
595
|
+
}, { flush: "post" }), Y(() => l()), {
|
|
596
596
|
hasFocus: o,
|
|
597
597
|
isPaused: s,
|
|
598
598
|
activate: c,
|
|
@@ -692,7 +692,7 @@ function at(e, t, n, r) {
|
|
|
692
692
|
var ot = /* @__PURE__ */ u({
|
|
693
693
|
__name: "GClientOnly",
|
|
694
694
|
setup(e) {
|
|
695
|
-
let t = O(
|
|
695
|
+
let t = O(pe());
|
|
696
696
|
return x(() => {
|
|
697
697
|
t.value = !0;
|
|
698
698
|
}), (e, n) => t.value ? A(e.$slots, "default", {}, void 0, void 0, 0) : A(e.$slots, "fallback", {}, void 0, void 0, 1);
|
|
@@ -728,7 +728,7 @@ var ot = /* @__PURE__ */ u({
|
|
|
728
728
|
it([x, y], j, p, L, k), W(p, (e) => {
|
|
729
729
|
e ? (g(() => {
|
|
730
730
|
g(() => N());
|
|
731
|
-
}), D(), f("show")) : (P(), k(), f("hide"),
|
|
731
|
+
}), D(), f("show")) : (P(), k(), f("hide"), J.value = !1, Y.value = null);
|
|
732
732
|
});
|
|
733
733
|
function F() {
|
|
734
734
|
p.value = !0, f("update:modelValue", !0);
|
|
@@ -742,19 +742,19 @@ var ot = /* @__PURE__ */ u({
|
|
|
742
742
|
let V = O({
|
|
743
743
|
top: 0,
|
|
744
744
|
left: 0
|
|
745
|
-
}), G = O({ left: "50%" }), q = O(!1), ne = O(!1),
|
|
746
|
-
function
|
|
745
|
+
}), G = O({ left: "50%" }), q = O(!1), ne = O(!1), J = O(!1), Y = O(null), X = null;
|
|
746
|
+
function re() {
|
|
747
747
|
if (y.value) return y.value;
|
|
748
748
|
let e = x.value?.parentElement ?? null;
|
|
749
749
|
for (; e && e.tagName.toLowerCase() !== "g-popover";) e = e.parentElement;
|
|
750
750
|
let t = e?.previousElementSibling;
|
|
751
751
|
return t instanceof HTMLElement ? t : null;
|
|
752
752
|
}
|
|
753
|
-
function
|
|
753
|
+
function ie() {
|
|
754
754
|
if (!x.value || !S.value) return;
|
|
755
755
|
let e = x.value, t = S.value, n = new DOMRect(0, 0, window.innerWidth, window.innerHeight), r = Math.max(n.height - 32, 0), i = window.getComputedStyle(e), a = t.offsetHeight + Number.parseFloat(i.paddingTop) + Number.parseFloat(i.paddingBottom) + Number.parseFloat(i.borderTopWidth) + Number.parseFloat(i.borderBottomWidth);
|
|
756
|
-
|
|
757
|
-
let o = new DOMRect(0, 0, e.offsetWidth, Math.min(a, r)), s =
|
|
756
|
+
J.value = a > r, Y.value = J.value ? r : null;
|
|
757
|
+
let o = new DOMRect(0, 0, e.offsetWidth, Math.min(a, r)), s = re();
|
|
758
758
|
if (!s) {
|
|
759
759
|
V.value = {
|
|
760
760
|
top: Math.max((n.height - o.height) / 2, 16),
|
|
@@ -774,10 +774,10 @@ var ot = /* @__PURE__ */ u({
|
|
|
774
774
|
}
|
|
775
775
|
return W(p, (e) => {
|
|
776
776
|
e ? g(() => {
|
|
777
|
-
|
|
778
|
-
}) : (window.removeEventListener("resize",
|
|
777
|
+
ie(), window.addEventListener("resize", ie), window.addEventListener("scroll", ie, { capture: !0 }), x.value && (X && X.disconnect(), X = new ResizeObserver(() => ie()), S.value && X.observe(S.value));
|
|
778
|
+
}) : (window.removeEventListener("resize", ie), window.removeEventListener("scroll", ie, { capture: !0 }), X && X.disconnect());
|
|
779
779
|
}), b(() => {
|
|
780
|
-
window.removeEventListener("resize",
|
|
780
|
+
window.removeEventListener("resize", ie), window.removeEventListener("scroll", ie, { capture: !0 }), X && X.disconnect();
|
|
781
781
|
}), c({
|
|
782
782
|
show: F,
|
|
783
783
|
hide: L,
|
|
@@ -810,7 +810,7 @@ var ot = /* @__PURE__ */ u({
|
|
|
810
810
|
"g-popover-above": q.value,
|
|
811
811
|
"g-popover-below": !q.value,
|
|
812
812
|
"g-popover-minimal": e.minimal,
|
|
813
|
-
"g-popover-scrollable":
|
|
813
|
+
"g-popover-scrollable": J.value
|
|
814
814
|
}),
|
|
815
815
|
role: "dialog",
|
|
816
816
|
"aria-modal": "true",
|
|
@@ -820,10 +820,10 @@ var ot = /* @__PURE__ */ u({
|
|
|
820
820
|
top: V.value.top + "px",
|
|
821
821
|
left: V.value.left + "px",
|
|
822
822
|
zIndex: R(M),
|
|
823
|
-
maxHeight:
|
|
823
|
+
maxHeight: Y.value === null ? void 0 : `${Y.value}px`
|
|
824
824
|
})
|
|
825
825
|
}, [
|
|
826
|
-
!ne.value && !e.minimal && !
|
|
826
|
+
!ne.value && !e.minimal && !J.value ? (w(), o("div", {
|
|
827
827
|
key: 0,
|
|
828
828
|
class: _(["g-popover-arrow", { "g-popover-arrow-above": q.value }]),
|
|
829
829
|
style: v(G.value),
|
|
@@ -1345,16 +1345,16 @@ var zt = ["id"], Bt = {
|
|
|
1345
1345
|
let t = e.relatedTarget;
|
|
1346
1346
|
x.value ? x.value = !1 : t && m.value && m.value.contains(t) || (i.searchable && (F.value = ""), U());
|
|
1347
1347
|
}
|
|
1348
|
-
function
|
|
1348
|
+
function J(e) {
|
|
1349
1349
|
let t = L.value[e];
|
|
1350
1350
|
t && t.value !== d.value && (d.value = t.value, u("change", t.value)), S.value = !0, U(), setTimeout(() => {
|
|
1351
1351
|
S.value = !1;
|
|
1352
1352
|
}, 100);
|
|
1353
1353
|
}
|
|
1354
|
-
function
|
|
1354
|
+
function Y() {
|
|
1355
1355
|
i.disabled || (y.value ? U() : H());
|
|
1356
1356
|
}
|
|
1357
|
-
function
|
|
1357
|
+
function X(e) {
|
|
1358
1358
|
if (i.disabled) return;
|
|
1359
1359
|
let t = L.value.length - 1;
|
|
1360
1360
|
if (!y.value && [
|
|
@@ -1377,21 +1377,21 @@ var zt = ["id"], Bt = {
|
|
|
1377
1377
|
e.preventDefault(), b.value = t, M();
|
|
1378
1378
|
break;
|
|
1379
1379
|
case "Enter":
|
|
1380
|
-
e.preventDefault(), y.value ?
|
|
1380
|
+
e.preventDefault(), y.value ? J(b.value) : H();
|
|
1381
1381
|
break;
|
|
1382
1382
|
case "Escape": j.value && (e.preventDefault(), setTimeout(() => {
|
|
1383
1383
|
U();
|
|
1384
1384
|
}, 0));
|
|
1385
1385
|
}
|
|
1386
1386
|
}
|
|
1387
|
-
function
|
|
1388
|
-
|
|
1387
|
+
function re(e) {
|
|
1388
|
+
J(e);
|
|
1389
1389
|
}
|
|
1390
|
-
function
|
|
1390
|
+
function ie() {
|
|
1391
1391
|
x.value = !0;
|
|
1392
1392
|
}
|
|
1393
|
-
let
|
|
1394
|
-
function
|
|
1393
|
+
let Z = r(() => i.clearButton && d.value !== null && d.value !== void 0 && !i.disabled);
|
|
1394
|
+
function ae() {
|
|
1395
1395
|
i.disabled || (d.value = null, u("change", null), i.searchable && (F.value = ""));
|
|
1396
1396
|
}
|
|
1397
1397
|
return (n, r) => (w(), o("div", { class: _(["g-select-root g-select-combo", {
|
|
@@ -1420,7 +1420,7 @@ var zt = ["id"], Bt = {
|
|
|
1420
1420
|
disabled: i.disabled,
|
|
1421
1421
|
onFocus: G,
|
|
1422
1422
|
onInput: K,
|
|
1423
|
-
onKeydown:
|
|
1423
|
+
onKeydown: X,
|
|
1424
1424
|
onBlur: ne,
|
|
1425
1425
|
"aria-autocomplete": "list",
|
|
1426
1426
|
"aria-controls": R(f) + "-listbox",
|
|
@@ -1432,11 +1432,11 @@ var zt = ["id"], Bt = {
|
|
|
1432
1432
|
role: "combobox",
|
|
1433
1433
|
autocomplete: "off"
|
|
1434
1434
|
}), null, 16, Ut),
|
|
1435
|
-
|
|
1435
|
+
Z.value ? (w(), o("button", {
|
|
1436
1436
|
key: 0,
|
|
1437
1437
|
type: "button",
|
|
1438
1438
|
class: "g-select-clear-btn",
|
|
1439
|
-
onClick:
|
|
1439
|
+
onClick: ae
|
|
1440
1440
|
}, [...r[0] ||= [s("svg", {
|
|
1441
1441
|
role: "img",
|
|
1442
1442
|
"aria-label": "Clear Selection",
|
|
@@ -1471,17 +1471,17 @@ var zt = ["id"], Bt = {
|
|
|
1471
1471
|
}, t.hiddenLabel ? { "aria-label": i.label } : { "aria-labelledby": R(f) + "-label" }, {
|
|
1472
1472
|
"aria-activedescendant": y.value ? R(f) + "-option-" + b.value : void 0,
|
|
1473
1473
|
tabindex: "0",
|
|
1474
|
-
onClick:
|
|
1475
|
-
onKeydown:
|
|
1474
|
+
onClick: Y,
|
|
1475
|
+
onKeydown: X,
|
|
1476
1476
|
onFocus: G,
|
|
1477
1477
|
onBlur: ne
|
|
1478
1478
|
}), [
|
|
1479
1479
|
c(P(N.value[z.value] ? N.value[z.value].label : "") + " ", 1),
|
|
1480
|
-
|
|
1480
|
+
Z.value ? (w(), o("button", {
|
|
1481
1481
|
key: 0,
|
|
1482
1482
|
type: "button",
|
|
1483
1483
|
class: "g-select-clear-btn",
|
|
1484
|
-
onClick: q(
|
|
1484
|
+
onClick: q(ae, ["stop"])
|
|
1485
1485
|
}, [...r[2] ||= [s("svg", {
|
|
1486
1486
|
role: "img",
|
|
1487
1487
|
"aria-label": "Clear Selection",
|
|
@@ -1518,8 +1518,8 @@ var zt = ["id"], Bt = {
|
|
|
1518
1518
|
}]),
|
|
1519
1519
|
role: "option",
|
|
1520
1520
|
"aria-selected": e.value === d.value ? "true" : "false",
|
|
1521
|
-
onMousedown:
|
|
1522
|
-
onClick: (e) =>
|
|
1521
|
+
onMousedown: ie,
|
|
1522
|
+
onClick: (e) => re(t)
|
|
1523
1523
|
}, [A(n.$slots, "option", {
|
|
1524
1524
|
option: e,
|
|
1525
1525
|
selected: e.value === d.value,
|
|
@@ -1539,23 +1539,47 @@ var zt = ["id"], Bt = {
|
|
|
1539
1539
|
"aria-controls",
|
|
1540
1540
|
"aria-activedescendant"
|
|
1541
1541
|
], $t = {
|
|
1542
|
-
|
|
1543
|
-
class: "g-search-
|
|
1542
|
+
type: "submit",
|
|
1543
|
+
class: "g-search-submit"
|
|
1544
1544
|
}, en = {
|
|
1545
|
+
class: "ilw-sr-only",
|
|
1546
|
+
role: "status",
|
|
1545
1547
|
"aria-live": "polite",
|
|
1546
|
-
|
|
1547
|
-
}, tn =
|
|
1548
|
+
"aria-atomic": "true"
|
|
1549
|
+
}, tn = {
|
|
1550
|
+
key: 0,
|
|
1551
|
+
class: "g-search-dropdown"
|
|
1552
|
+
}, nn = { class: "g-search-result-count" }, rn = ["id"], an = ["aria-label"], on = { class: "g-search-group-label" }, sn = [
|
|
1548
1553
|
"id",
|
|
1549
|
-
"
|
|
1554
|
+
"onClick",
|
|
1550
1555
|
"aria-selected"
|
|
1551
|
-
],
|
|
1556
|
+
], cn = [
|
|
1552
1557
|
"id",
|
|
1553
|
-
"
|
|
1558
|
+
"onClick",
|
|
1554
1559
|
"aria-selected"
|
|
1555
|
-
],
|
|
1560
|
+
], ln = ["aria-label"], un = { class: "g-search-group-label" }, dn = [
|
|
1561
|
+
"id",
|
|
1562
|
+
"onClick",
|
|
1563
|
+
"aria-selected"
|
|
1564
|
+
], fn = {
|
|
1565
|
+
key: 0,
|
|
1566
|
+
class: "g-search-action-icon",
|
|
1567
|
+
"aria-hidden": "true"
|
|
1568
|
+
}, pn = {
|
|
1569
|
+
key: 1,
|
|
1570
|
+
role: "none",
|
|
1571
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1572
|
+
viewBox: "0 0 640 640"
|
|
1573
|
+
}, mn = { class: "g-search-action-label" }, hn = /* @__PURE__ */ u({
|
|
1556
1574
|
__name: "GSearch",
|
|
1557
1575
|
props: /*@__PURE__*/ m({
|
|
1558
1576
|
results: {},
|
|
1577
|
+
actions: { default: () => [] },
|
|
1578
|
+
actionsLabel: { default: "Actions" },
|
|
1579
|
+
actionIcon: {
|
|
1580
|
+
type: [String, Boolean],
|
|
1581
|
+
default: void 0
|
|
1582
|
+
},
|
|
1559
1583
|
placeholder: { default: "Search..." },
|
|
1560
1584
|
label: { default: "Search" },
|
|
1561
1585
|
auto: {
|
|
@@ -1567,133 +1591,198 @@ var zt = ["id"], Bt = {
|
|
|
1567
1591
|
modelValue: { default: () => "" },
|
|
1568
1592
|
modelModifiers: {}
|
|
1569
1593
|
}),
|
|
1570
|
-
emits: /*@__PURE__*/ m([
|
|
1594
|
+
emits: /*@__PURE__*/ m([
|
|
1595
|
+
"select",
|
|
1596
|
+
"submit",
|
|
1597
|
+
"action",
|
|
1598
|
+
"close"
|
|
1599
|
+
], ["update:modelValue"]),
|
|
1571
1600
|
setup(t, { emit: n }) {
|
|
1572
|
-
let l = V(t, "modelValue"), u = t, d =
|
|
1573
|
-
function
|
|
1601
|
+
let l = V(t, "modelValue"), u = t, d = H(), f = n;
|
|
1602
|
+
function p(e) {
|
|
1603
|
+
return e.icon === !1 ? !1 : e.icon || d["action-icon"] ? !0 : u.actionIcon !== !1;
|
|
1604
|
+
}
|
|
1605
|
+
function m(e) {
|
|
1606
|
+
if (e.icon) return e.icon;
|
|
1607
|
+
if (u.actionIcon) return u.actionIcon;
|
|
1608
|
+
}
|
|
1609
|
+
let h = B(), v = O(null), y = O(null), x = O(!0), S = O(-1), C = r(() => Array.isArray(u.results) && u.results.length > 0 && "items" in u.results[0]), T = r(() => C.value ? u.results : []), E = r(() => T.value.filter((e) => e.items.length > 0)), D = r(() => C.value ? T.value.flatMap((e) => e.items) : u.results ?? []), j = r(() => D.value.length), M = r(() => u.actions.length);
|
|
1610
|
+
function N(e) {
|
|
1611
|
+
return `${h}-option-${e.id}`;
|
|
1612
|
+
}
|
|
1613
|
+
function F(e) {
|
|
1614
|
+
return `${h}-action-${e.id}`;
|
|
1615
|
+
}
|
|
1616
|
+
let I = r(() => [...D.value.map((e) => ({
|
|
1617
|
+
kind: "result",
|
|
1618
|
+
optionId: N(e),
|
|
1619
|
+
item: e
|
|
1620
|
+
})), ...u.actions.map((e) => ({
|
|
1621
|
+
kind: "action",
|
|
1622
|
+
optionId: F(e),
|
|
1623
|
+
action: e
|
|
1624
|
+
}))]), L = r(() => I.value.length), z = r(() => S.value >= 0 && S.value < I.value.length ? I.value[S.value] : void 0), U = ie(() => {
|
|
1625
|
+
f("submit", l.value);
|
|
1626
|
+
}, 300);
|
|
1627
|
+
function ee() {
|
|
1628
|
+
U.cancel(), f("submit", l.value), x.value = !1;
|
|
1629
|
+
}
|
|
1630
|
+
function G() {
|
|
1631
|
+
v.value?.focus(), ee();
|
|
1632
|
+
}
|
|
1633
|
+
b(U.cancel);
|
|
1634
|
+
function K(e) {
|
|
1574
1635
|
let t = e.target.value;
|
|
1575
|
-
l.value = t, u.auto
|
|
1636
|
+
l.value = t, u.auto ? x.value = t.length <= 1 : t || (x.value = !0);
|
|
1576
1637
|
}
|
|
1577
|
-
function
|
|
1638
|
+
function te() {
|
|
1578
1639
|
g(() => {
|
|
1579
|
-
let e =
|
|
1640
|
+
let e = y.value?.querySelector("[aria-selected=\"true\"]");
|
|
1580
1641
|
e && e.scrollIntoView({ block: "nearest" });
|
|
1581
1642
|
});
|
|
1582
1643
|
}
|
|
1583
|
-
let { focused:
|
|
1584
|
-
|
|
1644
|
+
let { focused: ne } = ae(v), J = r(() => u.loading), Y = r(() => ne.value && !x.value);
|
|
1645
|
+
W(ne, (e) => {
|
|
1646
|
+
e || (S.value = -1);
|
|
1647
|
+
}), W(Y, (e, t) => {
|
|
1648
|
+
t && !e && f("close");
|
|
1649
|
+
});
|
|
1650
|
+
let X = r(() => `${j.value} result${j.value === 1 ? "" : "s"}`), re = r(() => {
|
|
1651
|
+
if (!Y.value || J.value) return "";
|
|
1652
|
+
let e = T.value.length === 1 && T.value[0].label ? `${X.value} in ${T.value[0].label}` : X.value;
|
|
1653
|
+
return M.value > 0 ? `${e}, ${`${M.value} action${M.value === 1 ? "" : "s"} available`}` : e;
|
|
1654
|
+
});
|
|
1655
|
+
function Z(e) {
|
|
1585
1656
|
let t = e.altKey;
|
|
1586
1657
|
if (e.key === "ArrowDown") {
|
|
1587
|
-
if (!
|
|
1588
|
-
e.preventDefault(),
|
|
1658
|
+
if (!L.value) return;
|
|
1659
|
+
e.preventDefault(), x.value = !1, t || (S.value = (S.value + 1) % L.value, te());
|
|
1589
1660
|
} else if (e.key === "ArrowUp") {
|
|
1590
|
-
if (!
|
|
1591
|
-
e.preventDefault(),
|
|
1592
|
-
} else
|
|
1593
|
-
else if (e.key === "Escape") {
|
|
1594
|
-
if (!y.value) return;
|
|
1595
|
-
e.preventDefault(), D.value || (l.value = ""), m.value = !0, h.value = -1;
|
|
1596
|
-
}
|
|
1661
|
+
if (!L.value) return;
|
|
1662
|
+
e.preventDefault(), x.value = !1, S.value = S.value < 0 ? L.value - 1 : (S.value - 1 + L.value) % L.value, te();
|
|
1663
|
+
} else e.key === "Enter" ? (e.preventDefault(), Y.value && z.value ? z.value.kind === "result" ? oe(z.value.item) : se(z.value.action) : ee()) : e.key === "Escape" && (Y.value ? (e.preventDefault(), x.value = !0, S.value = -1) : l.value && (e.preventDefault(), l.value = "", x.value = !0, S.value = -1));
|
|
1597
1664
|
[
|
|
1598
1665
|
"Backspace",
|
|
1599
1666
|
"Delete",
|
|
1600
1667
|
"Clear",
|
|
1601
1668
|
"Undo"
|
|
1602
|
-
].includes(e.key) && (
|
|
1669
|
+
].includes(e.key) && (u.auto || (x.value = !0), S.value = -1);
|
|
1603
1670
|
}
|
|
1604
|
-
function
|
|
1605
|
-
|
|
1671
|
+
function oe(e) {
|
|
1672
|
+
U.cancel(), f("select", e), l.value = "", x.value = !0, S.value = -1;
|
|
1606
1673
|
}
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
}
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1674
|
+
function se(e) {
|
|
1675
|
+
U.cancel(), v.value?.focus(), f("action", e);
|
|
1676
|
+
}
|
|
1677
|
+
let Q = r(() => `${T.value.map((e) => `${e.type}:${e.label}`).join("|")}::${I.value.map((e) => e.optionId).join("|")}`);
|
|
1678
|
+
return W(Q, () => {
|
|
1679
|
+
S.value = -1;
|
|
1680
|
+
}), W(() => l.value, (e) => {
|
|
1681
|
+
e ? u.auto && U() : (U.cancel(), S.value = -1);
|
|
1682
|
+
}), (t, n) => (w(), o("div", {
|
|
1615
1683
|
class: "g-search",
|
|
1616
1684
|
role: "search",
|
|
1617
1685
|
"aria-label": u.label
|
|
1618
|
-
}, [
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
"
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1686
|
+
}, [
|
|
1687
|
+
s("form", {
|
|
1688
|
+
class: "g-search-form",
|
|
1689
|
+
onSubmit: q(G, ["prevent"])
|
|
1690
|
+
}, [s("input", {
|
|
1691
|
+
ref_key: "inputRef",
|
|
1692
|
+
ref: v,
|
|
1693
|
+
class: "g-search-input",
|
|
1694
|
+
name: "search",
|
|
1695
|
+
type: "search",
|
|
1696
|
+
placeholder: u.placeholder,
|
|
1697
|
+
value: l.value,
|
|
1698
|
+
onInput: K,
|
|
1699
|
+
onKeydown: Z,
|
|
1700
|
+
role: "combobox",
|
|
1701
|
+
"aria-label": u.label,
|
|
1702
|
+
"aria-expanded": Y.value,
|
|
1703
|
+
"aria-autocomplete": "list",
|
|
1704
|
+
"aria-controls": `${R(h)}-list`,
|
|
1705
|
+
"aria-activedescendant": Y.value && z.value ? z.value.optionId : void 0
|
|
1706
|
+
}, null, 40, Qt), s("button", $t, [J.value ? (w(), i(At, {
|
|
1707
|
+
key: 0,
|
|
1708
|
+
size: "tiny"
|
|
1709
|
+
})) : a("", !0), n[3] ||= s("svg", {
|
|
1710
|
+
role: "img",
|
|
1711
|
+
"aria-label": "Submit Search",
|
|
1712
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1713
|
+
viewBox: "0 0 51.26 51.26"
|
|
1714
|
+
}, [s("path", {
|
|
1715
|
+
fill: "currentColor",
|
|
1716
|
+
d: "M30 9.76A14.05 14.05 0 1 0 28.3 31l11.3 13a3.34 3.34 0 0 0 4.72-4.72L31.44 27.86A14.05 14.05 0 0 0 30 9.76ZM27.27 27a10.26 10.26 0 1 1 0-14.5 10.25 10.25 0 0 1 0 14.5Z"
|
|
1717
|
+
})], -1)])], 32),
|
|
1718
|
+
s("div", en, P(re.value), 1),
|
|
1719
|
+
Y.value ? (w(), o("div", tn, [s("div", nn, [J.value ? a("", !0) : (w(), o(e, { key: 0 }, [c(P(X.value), 1)], 64))]), s("div", {
|
|
1720
|
+
role: "listbox",
|
|
1721
|
+
id: `${R(h)}-list`,
|
|
1722
|
+
ref_key: "listboxRef",
|
|
1723
|
+
ref: y,
|
|
1724
|
+
"aria-label": "Search results"
|
|
1725
|
+
}, [E.value.length > 0 ? (w(!0), o(e, { key: 0 }, k(E.value, (r) => (w(), o("div", {
|
|
1726
|
+
key: r.type,
|
|
1727
|
+
class: "g-search-group",
|
|
1728
|
+
role: "group",
|
|
1729
|
+
"aria-label": r.label
|
|
1730
|
+
}, [A(t.$slots, "group", { group: r }, () => [s("div", on, P(r.label), 1)]), (w(!0), o(e, null, k(r.items, (e) => (w(), o("div", {
|
|
1731
|
+
key: e.id,
|
|
1732
|
+
id: N(e),
|
|
1733
|
+
class: _(["g-search-option", { "g-search-option-active": z.value?.optionId === N(e) }]),
|
|
1734
|
+
role: "option",
|
|
1735
|
+
onMousedown: n[0] ||= q(() => {}, ["prevent"]),
|
|
1736
|
+
onClick: (t) => oe(e),
|
|
1737
|
+
"aria-selected": z.value?.optionId === N(e)
|
|
1738
|
+
}, [A(t.$slots, "option", { option: e }, () => [c(P(e.title), 1)])], 42, sn))), 128))], 8, an))), 128)) : j.value > 0 ? (w(!0), o(e, { key: 1 }, k(D.value, (e) => (w(), o("div", {
|
|
1739
|
+
key: e.id,
|
|
1740
|
+
id: N(e),
|
|
1741
|
+
class: _(["g-search-option", { "g-search-option-active": z.value?.optionId === N(e) }]),
|
|
1742
|
+
role: "option",
|
|
1743
|
+
onMousedown: n[1] ||= q(() => {}, ["prevent"]),
|
|
1744
|
+
onClick: (t) => oe(e),
|
|
1745
|
+
"aria-selected": z.value?.optionId === N(e)
|
|
1746
|
+
}, [A(t.$slots, "option", { option: e }, () => [c(P(e.title), 1)])], 42, cn))), 128)) : a("", !0), M.value > 0 ? (w(), o("div", {
|
|
1747
|
+
key: 2,
|
|
1748
|
+
class: "g-search-group g-search-actions-group",
|
|
1749
|
+
role: "group",
|
|
1750
|
+
"aria-label": u.actionsLabel
|
|
1751
|
+
}, [s("div", un, P(u.actionsLabel), 1), (w(!0), o(e, null, k(u.actions, (e) => (w(), o("div", {
|
|
1752
|
+
key: e.id,
|
|
1753
|
+
id: F(e),
|
|
1754
|
+
class: _(["g-search-option g-search-action", { "g-search-option-active": z.value?.optionId === F(e) }]),
|
|
1755
|
+
role: "option",
|
|
1756
|
+
onMousedown: n[2] ||= q(() => {}, ["prevent"]),
|
|
1757
|
+
onClick: (t) => se(e),
|
|
1758
|
+
"aria-selected": z.value?.optionId === F(e)
|
|
1759
|
+
}, [A(t.$slots, "action", { action: e }, () => [p(e) ? (w(), o("span", fn, [A(t.$slots, "action-icon", { action: e }, () => [m(e) ? (w(), o("span", {
|
|
1760
|
+
key: 0,
|
|
1761
|
+
class: _(m(e) + " g-search-action-icon-span")
|
|
1762
|
+
}, null, 2)) : (w(), o("svg", pn, [...n[4] ||= [s("path", {
|
|
1763
|
+
fill: "currentColor",
|
|
1764
|
+
d: "M566.6 342.6C579.1 330.1 579.1 309.8 566.6 297.3L406.6 137.3C394.1 124.8 373.8 124.8 361.3 137.3C348.8 149.8 348.8 170.1 361.3 182.6L466.7 288L96 288C78.3 288 64 302.3 64 320C64 337.7 78.3 352 96 352L466.7 352L361.3 457.4C348.8 469.9 348.8 490.2 361.3 502.7C373.8 515.2 394.1 515.2 406.6 502.7L566.6 342.7z"
|
|
1765
|
+
}, null, -1)]]))])])) : a("", !0), s("span", mn, P(e.label), 1)])], 42, dn))), 128))], 8, ln)) : a("", !0)], 8, rn)])) : a("", !0)
|
|
1766
|
+
], 8, Zt));
|
|
1678
1767
|
}
|
|
1679
1768
|
});
|
|
1680
1769
|
// src/compose/useWebComponentSidebar.ts
|
|
1681
|
-
function
|
|
1770
|
+
function gn(e) {
|
|
1682
1771
|
return e.replace(/[^a-zA-Z0-9_-]/g, "-");
|
|
1683
1772
|
}
|
|
1684
|
-
function
|
|
1773
|
+
function _n() {
|
|
1685
1774
|
let e = globalThis;
|
|
1686
1775
|
return e.__GRAD_VUE_WC_SIDEBAR_CHANNELS__ ||= /* @__PURE__ */ new Map(), e.__GRAD_VUE_WC_SIDEBAR_CHANNELS__;
|
|
1687
1776
|
}
|
|
1688
|
-
function
|
|
1689
|
-
let n =
|
|
1777
|
+
function vn(e = "default", t) {
|
|
1778
|
+
let n = _n(), r = e || "default", i = typeof t == "string" ? t : t?.value, a = i && i.trim() ? i : "(max-width: 800px)";
|
|
1690
1779
|
if (!n.has(r)) {
|
|
1691
|
-
let e =
|
|
1780
|
+
let e = gn(r), t = O(a);
|
|
1692
1781
|
n.set(r, {
|
|
1693
1782
|
id: `g-wc-sidebar-${e}`,
|
|
1694
1783
|
open: O(!1),
|
|
1695
1784
|
breakpoint: t,
|
|
1696
|
-
isCollapsible:
|
|
1785
|
+
isCollapsible: ce(t, { ssrWidth: 1e3 }),
|
|
1697
1786
|
toggle: () => void 0
|
|
1698
1787
|
});
|
|
1699
1788
|
}
|
|
@@ -1724,16 +1813,16 @@ function un(e = "default", t) {
|
|
|
1724
1813
|
}), o;
|
|
1725
1814
|
}
|
|
1726
1815
|
// src/components/hamburger/GHamburgerMenuButton.vue?vue&type=script&setup=true&lang.ts
|
|
1727
|
-
var
|
|
1816
|
+
var yn = [
|
|
1728
1817
|
"id",
|
|
1729
1818
|
"aria-controls",
|
|
1730
1819
|
"aria-expanded",
|
|
1731
1820
|
"aria-haspopup",
|
|
1732
1821
|
"aria-label"
|
|
1733
|
-
],
|
|
1822
|
+
], bn = {
|
|
1734
1823
|
key: 0,
|
|
1735
1824
|
class: "g-hamburger-label"
|
|
1736
|
-
},
|
|
1825
|
+
}, xn = /* @__PURE__ */ u({
|
|
1737
1826
|
__name: "GHamburgerMenuButton",
|
|
1738
1827
|
props: {
|
|
1739
1828
|
id: {},
|
|
@@ -1766,9 +1855,9 @@ var dn = [
|
|
|
1766
1855
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1767
1856
|
viewBox: "0 0 51.26 51.26",
|
|
1768
1857
|
role: "none"
|
|
1769
|
-
}, [s("g", { fill: "currentColor" }, [s("path", { d: "M11.6 16.52h28.06a3.24 3.24 0 1 0 0-6.48H11.6a3.24 3.24 0 0 0 0 6.48ZM39.66 22.07H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48ZM39.66 34.1H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48Z" })])], -1), e.labelVisible ? (w(), o("span",
|
|
1858
|
+
}, [s("g", { fill: "currentColor" }, [s("path", { d: "M11.6 16.52h28.06a3.24 3.24 0 1 0 0-6.48H11.6a3.24 3.24 0 0 0 0 6.48ZM39.66 22.07H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48ZM39.66 34.1H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48Z" })])], -1), e.labelVisible ? (w(), o("span", bn, P(e.label), 1)) : a("", !0)], 10, yn));
|
|
1770
1859
|
}
|
|
1771
|
-
}),
|
|
1860
|
+
}), Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
1772
1861
|
__name: "GHamburgerMenu",
|
|
1773
1862
|
props: {
|
|
1774
1863
|
label: { default: "Main Navigation" },
|
|
@@ -1786,7 +1875,7 @@ var dn = [
|
|
|
1786
1875
|
},
|
|
1787
1876
|
emits: ["toggle", "update:modelValue"],
|
|
1788
1877
|
setup(e, { expose: t, emit: n }) {
|
|
1789
|
-
let a = e, o = p("sidebar", void 0) ?? (
|
|
1878
|
+
let a = e, o = p("sidebar", void 0) ?? (pe() ? vn(a.sidebarKey, I(a, "mediaQuery")) : void 0), c = n, u = r(() => a.mode === "popover"), d = O(a.modelValue);
|
|
1790
1879
|
W(I(a, "modelValue"), (e) => {
|
|
1791
1880
|
d.value = e;
|
|
1792
1881
|
});
|
|
@@ -1832,7 +1921,7 @@ var dn = [
|
|
|
1832
1921
|
"model-value": d.value,
|
|
1833
1922
|
"onUpdate:modelValue": h
|
|
1834
1923
|
}, {
|
|
1835
|
-
trigger: K(() => [l(
|
|
1924
|
+
trigger: K(() => [l(xn, {
|
|
1836
1925
|
ref_key: "triggerButtonRef",
|
|
1837
1926
|
ref: f,
|
|
1838
1927
|
id: S.value,
|
|
@@ -1855,9 +1944,9 @@ var dn = [
|
|
|
1855
1944
|
ref_key: "popoverMenuRef",
|
|
1856
1945
|
ref: m,
|
|
1857
1946
|
class: "g-hamburger-popover"
|
|
1858
|
-
}, [A(t.$slots, "default")], 8,
|
|
1947
|
+
}, [A(t.$slots, "default")], 8, Sn)]),
|
|
1859
1948
|
_: 3
|
|
1860
|
-
}, 8, ["model-value"])) : (w(), i(
|
|
1949
|
+
}, 8, ["model-value"])) : (w(), i(xn, {
|
|
1861
1950
|
key: 1,
|
|
1862
1951
|
ref_key: "triggerButtonRef",
|
|
1863
1952
|
ref: f,
|
|
@@ -1878,16 +1967,16 @@ var dn = [
|
|
|
1878
1967
|
"collapsible"
|
|
1879
1968
|
]));
|
|
1880
1969
|
}
|
|
1881
|
-
}),
|
|
1970
|
+
}), wn = { class: "g-app-header__brand" }, Tn = {
|
|
1882
1971
|
class: "g-app-header__brand-text",
|
|
1883
1972
|
href: "/"
|
|
1884
|
-
},
|
|
1973
|
+
}, En = {
|
|
1885
1974
|
key: 0,
|
|
1886
1975
|
class: "g-app-header__block-i-container"
|
|
1887
|
-
},
|
|
1976
|
+
}, Dn = { class: "g-app-header__title" }, On = ["aria-label"], kn = ["aria-label"], An = {
|
|
1888
1977
|
key: 4,
|
|
1889
1978
|
class: "g-app-header__app-controls-wrap"
|
|
1890
|
-
},
|
|
1979
|
+
}, jn = /* @__PURE__ */ u({
|
|
1891
1980
|
__name: "GAppHeader",
|
|
1892
1981
|
props: {
|
|
1893
1982
|
illinois: {
|
|
@@ -1899,7 +1988,7 @@ var dn = [
|
|
|
1899
1988
|
navigationMediaQuery: { default: "(max-width: 800px)" }
|
|
1900
1989
|
},
|
|
1901
1990
|
setup(e) {
|
|
1902
|
-
let t =
|
|
1991
|
+
let t = ce(I(e, "navigationMediaQuery"), { ssrWidth: 1e3 }), n = U("desktopNavigationRef"), r = U("mobileNavigationRef");
|
|
1903
1992
|
function c() {
|
|
1904
1993
|
return tt(n.value);
|
|
1905
1994
|
}
|
|
@@ -1916,8 +2005,8 @@ var dn = [
|
|
|
1916
2005
|
}
|
|
1917
2006
|
}), (c, l) => (w(), o("header", { class: _(["g-app-header", { "g-app-header--no-app-controls": !c.$slots["app-controls"] }]) }, [
|
|
1918
2007
|
l[1] ||= s("div", { class: "g-app-header__background" }, [s("div", { class: "g-app-header__background-pattern" }), s("div", { class: "g-app-header__background-gradient" })], -1),
|
|
1919
|
-
s("div",
|
|
1920
|
-
e.illinois ? (w(), o("div",
|
|
2008
|
+
s("div", wn, [A(c.$slots, "left", {}, () => [s("a", Tn, P(e.brand), 1)])]),
|
|
2009
|
+
e.illinois ? (w(), o("div", En, [...l[0] ||= [s("svg", {
|
|
1921
2010
|
class: "g-app-header__block-i",
|
|
1922
2011
|
role: "img",
|
|
1923
2012
|
width: "55",
|
|
@@ -1934,14 +2023,14 @@ var dn = [
|
|
|
1934
2023
|
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"
|
|
1935
2024
|
})
|
|
1936
2025
|
], -1)]])) : A(c.$slots, "icon", {}, void 0, void 0, 1),
|
|
1937
|
-
s("div",
|
|
2026
|
+
s("div", Dn, [A(c.$slots, "title")]),
|
|
1938
2027
|
c.$slots.navigation && !R(t) ? (w(), o("nav", {
|
|
1939
2028
|
key: 2,
|
|
1940
2029
|
ref_key: "desktopNavigationRef",
|
|
1941
2030
|
ref: n,
|
|
1942
2031
|
class: "g-app-header__navigation",
|
|
1943
2032
|
"aria-label": e.navigationLabel
|
|
1944
|
-
}, [A(c.$slots, "navigation")], 8,
|
|
2033
|
+
}, [A(c.$slots, "navigation")], 8, On)) : c.$slots.navigation ? (w(), i(Cn, {
|
|
1945
2034
|
key: 3,
|
|
1946
2035
|
ref_key: "mobileNavigationRef",
|
|
1947
2036
|
ref: r,
|
|
@@ -1952,16 +2041,16 @@ var dn = [
|
|
|
1952
2041
|
default: K(() => [s("nav", {
|
|
1953
2042
|
class: "g-app-header__navigation-popover",
|
|
1954
2043
|
"aria-label": e.navigationLabel
|
|
1955
|
-
}, [A(c.$slots, "navigation")], 8,
|
|
2044
|
+
}, [A(c.$slots, "navigation")], 8, kn)]),
|
|
1956
2045
|
_: 3
|
|
1957
2046
|
}, 8, ["label"])) : a("", !0),
|
|
1958
|
-
c.$slots["app-controls"] ? (w(), o("div",
|
|
2047
|
+
c.$slots["app-controls"] ? (w(), o("div", An, [A(c.$slots, "app-controls")])) : a("", !0)
|
|
1959
2048
|
], 2));
|
|
1960
2049
|
}
|
|
1961
2050
|
});
|
|
1962
2051
|
// src/compose/useScrollRestore.ts
|
|
1963
|
-
function
|
|
1964
|
-
let n = t ?
|
|
2052
|
+
function Mn(e, t) {
|
|
2053
|
+
let n = t ? de(`${t}:scroll`, 0, { writeDefaults: !1 }) : null, r = O(!!(n?.value && n.value > 0)), i = null, a = null, o = null, s = !1;
|
|
1965
2054
|
function c(e) {
|
|
1966
2055
|
let t = window.getComputedStyle(e);
|
|
1967
2056
|
return t.overflowY === "auto" || t.overflowY === "scroll";
|
|
@@ -2016,7 +2105,7 @@ function wn(e, t) {
|
|
|
2016
2105
|
}), { isPendingScrollRestore: r };
|
|
2017
2106
|
}
|
|
2018
2107
|
// src/components/GSidebar.vue?vue&type=script&setup=true&lang.ts
|
|
2019
|
-
var
|
|
2108
|
+
var Nn = ["id"], Pn = /* @__PURE__ */ u({
|
|
2020
2109
|
__name: "GSidebar",
|
|
2021
2110
|
props: {
|
|
2022
2111
|
backgroundColor: { default: "" },
|
|
@@ -2030,7 +2119,7 @@ var Tn = ["id"], En = /* @__PURE__ */ u({
|
|
|
2030
2119
|
storageKey: {}
|
|
2031
2120
|
},
|
|
2032
2121
|
setup(e) {
|
|
2033
|
-
let t = e, n = p("sidebar", () => void 0, !0) ?? (
|
|
2122
|
+
let t = e, n = p("sidebar", () => void 0, !0) ?? (pe() ? vn(t.sidebarKey, I(t, "mediaQuery")) : void 0), i = r(() => t.backgroundImage ? t.backgroundImage : t.theme === "light" ? "none" : "var(--g-sidebar-background-image, none)"), a = r(() => t.backgroundColor ? t.backgroundColor : t.theme === "light" ? "#f9f9f9" : "#030913"), s = r(() => t.topOffsetVar ? `var(${t.topOffsetVar})` : t.topOffset ? t.topOffset : "var(--g-toolbar-height)"), c = B(), { isPendingScrollRestore: l } = Mn(U("sidebar-ref"), t.storageKey);
|
|
2034
2123
|
function u(e) {
|
|
2035
2124
|
e.key === "Escape" && n?.isCollapsible?.value && n?.open?.value && (n.open.value = !1, document.getElementById(`${n.id}-hamburger`)?.focus());
|
|
2036
2125
|
}
|
|
@@ -2051,13 +2140,13 @@ var Tn = ["id"], En = /* @__PURE__ */ u({
|
|
|
2051
2140
|
width: "var(--g-sidebar-width)"
|
|
2052
2141
|
}),
|
|
2053
2142
|
onKeydown: u
|
|
2054
|
-
}, [A(t.$slots, "default")], 46,
|
|
2143
|
+
}, [A(t.$slots, "default")], 46, Nn));
|
|
2055
2144
|
}
|
|
2056
|
-
}),
|
|
2145
|
+
}), Fn = ["id"], In = { class: "g-sidebar-menu__list" }, Ln = [
|
|
2057
2146
|
"href",
|
|
2058
2147
|
"aria-current",
|
|
2059
2148
|
"onClick"
|
|
2060
|
-
],
|
|
2149
|
+
], Rn = /* @__PURE__ */ u({
|
|
2061
2150
|
__name: "GSidebarMenu",
|
|
2062
2151
|
props: /*@__PURE__*/ m({
|
|
2063
2152
|
heading: {},
|
|
@@ -2105,13 +2194,13 @@ var Tn = ["id"], En = /* @__PURE__ */ u({
|
|
|
2105
2194
|
key: 0,
|
|
2106
2195
|
id: R(y),
|
|
2107
2196
|
class: "g-sidebar-menu__title"
|
|
2108
|
-
}, P(t.heading), 9,
|
|
2197
|
+
}, P(t.heading), 9, Fn)) : a("", !0),
|
|
2109
2198
|
l[0] ||= s("div", { class: "g-sidebar-menu__divider" }, null, -1),
|
|
2110
2199
|
s("div", {
|
|
2111
2200
|
class: "g-sidebar-menu__content",
|
|
2112
2201
|
ref_key: "content",
|
|
2113
2202
|
ref: f
|
|
2114
|
-
}, [s("ul",
|
|
2203
|
+
}, [s("ul", In, [(w(!0), o(e, null, k(t.items, (e) => (w(), o("li", {
|
|
2115
2204
|
key: e.href || e.to,
|
|
2116
2205
|
class: "g-sidebar-menu__item",
|
|
2117
2206
|
ref_for: !0,
|
|
@@ -2129,10 +2218,10 @@ var Tn = ["id"], En = /* @__PURE__ */ u({
|
|
|
2129
2218
|
href: e.href || e.to || "#",
|
|
2130
2219
|
"aria-current": u.value === (e.href || "") ? "location" : void 0,
|
|
2131
2220
|
onClick: (t) => v(t, e)
|
|
2132
|
-
}, P(e.label), 11,
|
|
2221
|
+
}, P(e.label), 11, Ln))]))), 128))])], 512)
|
|
2133
2222
|
], 16));
|
|
2134
2223
|
}
|
|
2135
|
-
}),
|
|
2224
|
+
}), zn = {
|
|
2136
2225
|
mounted(e, t) {
|
|
2137
2226
|
let n = O(null), r = O(!1), i = O(!1), a = O(t.value), o = null, s = !1, c = pt(e), l = () => {
|
|
2138
2227
|
n.value || (n.value = mt(a.value, c), ht(n.value), o = new ResizeObserver(() => {
|
|
@@ -2184,7 +2273,7 @@ var Tn = ["id"], En = /* @__PURE__ */ u({
|
|
|
2184
2273
|
let t = e._v_gtooltip;
|
|
2185
2274
|
t && t.tooltip && t.tooltip.value && (t.resizeObserver && t.resizeObserver.disconnect(), t.tooltip.value.remove(), t.tooltip.value = null), t && t.onScroll && window.removeEventListener("scroll", t.onScroll, { capture: !0 }), e.removeEventListener("mouseenter", t.onMouseEnter), e.removeEventListener("mouseleave", t.onMouseLeave), e.removeEventListener("focus", t.onFocus), e.removeEventListener("blur", t.onBlur), e.removeEventListener("keydown", t.onKeyDown), e.removeAttribute("aria-describedby");
|
|
2186
2275
|
}
|
|
2187
|
-
},
|
|
2276
|
+
}, Bn = { class: "g-clipboard-text" }, Vn = /* @__PURE__ */ u({
|
|
2188
2277
|
__name: "GClipboard",
|
|
2189
2278
|
props: {
|
|
2190
2279
|
text: {},
|
|
@@ -2192,12 +2281,12 @@ var Tn = ["id"], En = /* @__PURE__ */ u({
|
|
|
2192
2281
|
copyLabel: {}
|
|
2193
2282
|
},
|
|
2194
2283
|
setup(t) {
|
|
2195
|
-
let n = t, r =
|
|
2284
|
+
let n = t, r = zn, { text: i, copy: l, copied: u, isSupported: d } = re({ source: n.text }), f = O(n.copyLabel ?? "Copy to clipboard"), p = () => {
|
|
2196
2285
|
d.value ? (l(), f.value = "Copied") : f.value = "Copy not supported";
|
|
2197
2286
|
}, m = () => {
|
|
2198
2287
|
f.value = n.copyLabel ?? "Copy to clipboard";
|
|
2199
2288
|
};
|
|
2200
|
-
return (i, l) => (w(), o("div",
|
|
2289
|
+
return (i, l) => (w(), o("div", Bn, [t.hideText ? a("", !0) : (w(), o(e, { key: 0 }, [c(P(n.text), 1)], 64)), te((w(), o("button", {
|
|
2201
2290
|
type: "button",
|
|
2202
2291
|
"aria-label": "Copy",
|
|
2203
2292
|
onClick: p,
|
|
@@ -2214,15 +2303,15 @@ var Tn = ["id"], En = /* @__PURE__ */ u({
|
|
|
2214
2303
|
d: "M480 400L288 400C279.2 400 272 392.8 272 384L272 128C272 119.2 279.2 112 288 112L421.5 112C425.7 112 429.8 113.7 432.8 116.7L491.3 175.2C494.3 178.2 496 182.3 496 186.5L496 384C496 392.8 488.8 400 480 400zM288 448L480 448C515.3 448 544 419.3 544 384L544 186.5C544 169.5 537.3 153.2 525.3 141.2L466.7 82.7C454.7 70.7 438.5 64 421.5 64L288 64C252.7 64 224 92.7 224 128L224 384C224 419.3 252.7 448 288 448zM160 192C124.7 192 96 220.7 96 256L96 512C96 547.3 124.7 576 160 576L352 576C387.3 576 416 547.3 416 512L416 496L368 496L368 512C368 520.8 360.8 528 352 528L160 528C151.2 528 144 520.8 144 512L144 256C144 247.2 151.2 240 160 240L176 240L176 192L160 192z"
|
|
2215
2304
|
})], -1)]], 32)), [[R(r), f.value]])]));
|
|
2216
2305
|
}
|
|
2217
|
-
}),
|
|
2306
|
+
}), Hn = { class: "g-history-scroller-wrapper" }, Un = {
|
|
2218
2307
|
key: 0,
|
|
2219
2308
|
class: "g-history-shadow g-history-shadow--top",
|
|
2220
2309
|
"aria-hidden": "true"
|
|
2221
|
-
},
|
|
2310
|
+
}, Wn = {
|
|
2222
2311
|
key: 1,
|
|
2223
2312
|
class: "g-history-shadow g-history-shadow--bottom",
|
|
2224
2313
|
"aria-hidden": "true"
|
|
2225
|
-
},
|
|
2314
|
+
}, Gn = ["role", "aria-label"], Kn = /* @__PURE__ */ u({
|
|
2226
2315
|
__name: "GHistoryScroller",
|
|
2227
2316
|
props: {
|
|
2228
2317
|
label: {},
|
|
@@ -2246,17 +2335,17 @@ var Tn = ["id"], En = /* @__PURE__ */ u({
|
|
|
2246
2335
|
}
|
|
2247
2336
|
x(() => {
|
|
2248
2337
|
g(f);
|
|
2249
|
-
}),
|
|
2338
|
+
}), ue(i, () => {
|
|
2250
2339
|
u.value && f();
|
|
2251
|
-
}),
|
|
2340
|
+
}), ue(c, () => {
|
|
2252
2341
|
u.value && f();
|
|
2253
2342
|
}), W(() => n.entries, async () => {
|
|
2254
2343
|
u.value && (await g(), f());
|
|
2255
2344
|
});
|
|
2256
2345
|
let m = r(() => [...n.entries].reverse());
|
|
2257
|
-
return (n, r) => (w(), o("div",
|
|
2258
|
-
d.value ? a("", !0) : (w(), o("div",
|
|
2259
|
-
u.value ? a("", !0) : (w(), o("div",
|
|
2346
|
+
return (n, r) => (w(), o("div", Hn, [
|
|
2347
|
+
d.value ? a("", !0) : (w(), o("div", Un)),
|
|
2348
|
+
u.value ? a("", !0) : (w(), o("div", Wn)),
|
|
2260
2349
|
s("div", {
|
|
2261
2350
|
ref_key: "scrollerRef",
|
|
2262
2351
|
ref: i,
|
|
@@ -2291,31 +2380,31 @@ var Tn = ["id"], En = /* @__PURE__ */ u({
|
|
|
2291
2380
|
key: e.id,
|
|
2292
2381
|
class: "g-history-entry",
|
|
2293
2382
|
tabindex: "-1"
|
|
2294
|
-
}, [A(n.$slots, "default", { entry: e })]))), 128))], 512)], 40,
|
|
2383
|
+
}, [A(n.$slots, "default", { entry: e })]))), 128))], 512)], 40, Gn)
|
|
2295
2384
|
]));
|
|
2296
2385
|
}
|
|
2297
|
-
}),
|
|
2386
|
+
}), qn = { class: "g-three-way-toggle-wrapper" }, Jn = { class: "g-three-way-toggle-control" }, Yn = ["id"], Xn = [
|
|
2298
2387
|
"aria-labelledby",
|
|
2299
2388
|
"aria-describedby",
|
|
2300
2389
|
"disabled",
|
|
2301
2390
|
"aria-invalid",
|
|
2302
2391
|
"aria-errormessage"
|
|
2303
|
-
],
|
|
2392
|
+
], Zn = { key: 0 }, Qn = { key: 1 }, $n = { key: 2 }, er = ["for"], tr = [
|
|
2304
2393
|
"id",
|
|
2305
2394
|
"name",
|
|
2306
2395
|
"checked",
|
|
2307
2396
|
"disabled"
|
|
2308
|
-
],
|
|
2397
|
+
], nr = ["for"], rr = [
|
|
2309
2398
|
"id",
|
|
2310
2399
|
"name",
|
|
2311
2400
|
"checked",
|
|
2312
2401
|
"disabled"
|
|
2313
|
-
],
|
|
2402
|
+
], ir = ["for"], ar = [
|
|
2314
2403
|
"id",
|
|
2315
2404
|
"name",
|
|
2316
2405
|
"checked",
|
|
2317
2406
|
"disabled"
|
|
2318
|
-
],
|
|
2407
|
+
], or = ["id"], sr = /* @__PURE__ */ u({
|
|
2319
2408
|
__name: "GThreeWayToggle",
|
|
2320
2409
|
props: /*@__PURE__*/ m({
|
|
2321
2410
|
label: {},
|
|
@@ -2349,10 +2438,10 @@ var Tn = ["id"], En = /* @__PURE__ */ u({
|
|
|
2349
2438
|
function b(e) {
|
|
2350
2439
|
n.disabled || (e.key === "n" || e.key === "N" ? (u(!1), e.preventDefault()) : (e.key === "y" || e.key === "Y") && (u(!0), e.preventDefault()));
|
|
2351
2440
|
}
|
|
2352
|
-
return (t, n) => (w(), o("div",
|
|
2441
|
+
return (t, n) => (w(), o("div", qn, [s("div", Jn, [s("span", {
|
|
2353
2442
|
class: "g-label",
|
|
2354
2443
|
id: R(p)
|
|
2355
|
-
}, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])], 8,
|
|
2444
|
+
}, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])], 8, Yn), s("fieldset", {
|
|
2356
2445
|
class: _(["g-three-way-toggle", { "g-has-error": e.error }]),
|
|
2357
2446
|
role: "radiogroup",
|
|
2358
2447
|
"aria-labelledby": R(p),
|
|
@@ -2364,7 +2453,7 @@ var Tn = ["id"], En = /* @__PURE__ */ u({
|
|
|
2364
2453
|
s("span", {
|
|
2365
2454
|
class: _(["g-toggle-thumb", y.value]),
|
|
2366
2455
|
"aria-hidden": "true"
|
|
2367
|
-
}, [i.value === !1 ? (w(), o("span",
|
|
2456
|
+
}, [i.value === !1 ? (w(), o("span", Zn, "NO")) : i.value === !0 ? (w(), o("span", Qn, "YES")) : (w(), o("span", $n))], 2),
|
|
2368
2457
|
s("label", {
|
|
2369
2458
|
for: R(h),
|
|
2370
2459
|
class: "g-toggle-option g-left",
|
|
@@ -2378,7 +2467,7 @@ var Tn = ["id"], En = /* @__PURE__ */ u({
|
|
|
2378
2467
|
value: "false",
|
|
2379
2468
|
disabled: e.disabled,
|
|
2380
2469
|
onChange: n[0] ||= (e) => d(!1)
|
|
2381
|
-
}, null, 40,
|
|
2470
|
+
}, null, 40, tr), n[5] ||= s("span", { class: "ilw-sr-only" }, "No", -1)], 40, er),
|
|
2382
2471
|
s("label", {
|
|
2383
2472
|
for: R(g),
|
|
2384
2473
|
class: "g-toggle-option g-center",
|
|
@@ -2390,7 +2479,7 @@ var Tn = ["id"], En = /* @__PURE__ */ u({
|
|
|
2390
2479
|
checked: i.value === null,
|
|
2391
2480
|
disabled: e.disabled,
|
|
2392
2481
|
onChange: n[2] ||= (e) => d(null)
|
|
2393
|
-
}, null, 40,
|
|
2482
|
+
}, null, 40, rr), n[6] ||= s("span", { class: "ilw-sr-only" }, "Unset", -1)], 40, nr),
|
|
2394
2483
|
s("label", {
|
|
2395
2484
|
for: R(v),
|
|
2396
2485
|
class: "g-toggle-option g-right",
|
|
@@ -2404,54 +2493,54 @@ var Tn = ["id"], En = /* @__PURE__ */ u({
|
|
|
2404
2493
|
checked: i.value === !0,
|
|
2405
2494
|
disabled: e.disabled,
|
|
2406
2495
|
onChange: n[3] ||= (e) => d(!0)
|
|
2407
|
-
}, null, 40,
|
|
2408
|
-
], 2)], 10,
|
|
2496
|
+
}, null, 40, ar), n[7] ||= s("span", { class: "ilw-sr-only" }, "Yes", -1)], 40, ir)
|
|
2497
|
+
], 2)], 10, Xn)]), e.error ? (w(), o("div", {
|
|
2409
2498
|
key: 0,
|
|
2410
2499
|
id: `${R(p)}-error`,
|
|
2411
2500
|
class: "g-form-error",
|
|
2412
2501
|
role: "alert",
|
|
2413
2502
|
"aria-atomic": "true"
|
|
2414
|
-
}, P(e.error), 9,
|
|
2503
|
+
}, P(e.error), 9, or)) : a("", !0)]));
|
|
2415
2504
|
}
|
|
2416
|
-
}),
|
|
2505
|
+
}), cr = {
|
|
2417
2506
|
ref: "tableBodyRef",
|
|
2418
2507
|
class: "efficient-table-body"
|
|
2419
|
-
},
|
|
2508
|
+
}, lr = ["aria-rowindex"], ur = {
|
|
2420
2509
|
key: 0,
|
|
2421
2510
|
class: "table-group-checkbox"
|
|
2422
|
-
},
|
|
2511
|
+
}, dr = ["colspan"], fr = [
|
|
2423
2512
|
"aria-rowindex",
|
|
2424
2513
|
"onMousedown",
|
|
2425
2514
|
"onClick"
|
|
2426
|
-
],
|
|
2515
|
+
], pr = [
|
|
2427
2516
|
"checked",
|
|
2428
2517
|
"onClick",
|
|
2429
2518
|
"aria-label",
|
|
2430
2519
|
"name"
|
|
2431
|
-
],
|
|
2520
|
+
], mr = ["id"], hr = {
|
|
2432
2521
|
key: 0,
|
|
2433
2522
|
class: "editable-cell"
|
|
2434
|
-
},
|
|
2523
|
+
}, gr = {
|
|
2435
2524
|
key: 0,
|
|
2436
2525
|
class: "cell-prefix"
|
|
2437
|
-
},
|
|
2526
|
+
}, _r = [
|
|
2438
2527
|
"value",
|
|
2439
2528
|
"onChange",
|
|
2440
2529
|
"aria-labelledby",
|
|
2441
2530
|
"aria-invalid",
|
|
2442
2531
|
"aria-errormessage",
|
|
2443
2532
|
"name"
|
|
2444
|
-
],
|
|
2533
|
+
], vr = ["value"], yr = [
|
|
2445
2534
|
"value",
|
|
2446
2535
|
"onInput",
|
|
2447
2536
|
"aria-labelledby",
|
|
2448
2537
|
"aria-invalid",
|
|
2449
2538
|
"aria-errormessage",
|
|
2450
2539
|
"name"
|
|
2451
|
-
],
|
|
2540
|
+
], br = {
|
|
2452
2541
|
key: 3,
|
|
2453
2542
|
class: "cell-suffix"
|
|
2454
|
-
},
|
|
2543
|
+
}, xr = ["id"], Sr = /* @__PURE__ */ u({
|
|
2455
2544
|
__name: "GTableBody",
|
|
2456
2545
|
props: {
|
|
2457
2546
|
data: {},
|
|
@@ -2524,13 +2613,13 @@ var Tn = ["id"], En = /* @__PURE__ */ u({
|
|
|
2524
2613
|
function E(e, t) {
|
|
2525
2614
|
if (l.changeTracker) return l.changeTracker.getError(e.key, t.key);
|
|
2526
2615
|
}
|
|
2527
|
-
return (n, r) => (w(), o("tbody",
|
|
2616
|
+
return (n, r) => (w(), o("tbody", cr, [(w(!0), o(e, null, k(t.data, (n, l) => (w(), o(e, { key: n.key }, [t.groupBy && (l === 0 || n[t.groupBy] !== t.data[l - 1][t.groupBy]) ? (w(), o("tr", {
|
|
2528
2617
|
key: 0,
|
|
2529
2618
|
"aria-rowindex": t.startIndex + l + 2
|
|
2530
|
-
}, [t.bulkSelectionEnabled ? (w(), o("td",
|
|
2619
|
+
}, [t.bulkSelectionEnabled ? (w(), o("td", ur)) : a("", !0), s("td", {
|
|
2531
2620
|
colspan: x.value,
|
|
2532
2621
|
class: "table-group-row"
|
|
2533
|
-
}, [t.groupRender ? (w(), i(j(t.groupRender(n[t.groupBy], n)), { key: 0 })) : (w(), o(e, { key: 1 }, [c(P(n[t.groupBy]), 1)], 64))], 8,
|
|
2622
|
+
}, [t.groupRender ? (w(), i(j(t.groupRender(n[t.groupBy], n)), { key: 0 })) : (w(), o(e, { key: 1 }, [c(P(n[t.groupBy]), 1)], 64))], 8, dr)], 8, lr)) : a("", !0), s("tr", {
|
|
2534
2623
|
class: _([
|
|
2535
2624
|
"efficient-table-row",
|
|
2536
2625
|
{
|
|
@@ -2553,7 +2642,7 @@ var Tn = ["id"], En = /* @__PURE__ */ u({
|
|
|
2553
2642
|
"aria-label": `Select row ${n.key}`,
|
|
2554
2643
|
name: `row-${n.key}-checkbox`,
|
|
2555
2644
|
class: "g-bulk-select-checkbox"
|
|
2556
|
-
}, null, 8,
|
|
2645
|
+
}, null, 8, pr)])) : a("", !0), (w(!0), o(e, null, k(t.columns, (r) => (w(), o("td", {
|
|
2557
2646
|
key: r.key,
|
|
2558
2647
|
id: S(r) ? `${t.tableId}-td-${n.key}-${String(r.key)}` : void 0,
|
|
2559
2648
|
class: _([
|
|
@@ -2562,8 +2651,8 @@ var Tn = ["id"], En = /* @__PURE__ */ u({
|
|
|
2562
2651
|
T(n, r) ? "g-cell-error" : "",
|
|
2563
2652
|
typeof r.tdClass == "function" ? r.tdClass(n) : r.tdClass
|
|
2564
2653
|
])
|
|
2565
|
-
}, [r.editable ? (w(), o("div",
|
|
2566
|
-
r.editable.prefix ? (w(), o("span",
|
|
2654
|
+
}, [r.editable ? (w(), o("div", hr, [
|
|
2655
|
+
r.editable.prefix ? (w(), o("span", gr, P(r.editable.prefix), 1)) : a("", !0),
|
|
2567
2656
|
r.editable.type === "select" ? (w(), o("select", {
|
|
2568
2657
|
key: 1,
|
|
2569
2658
|
value: n[r.key],
|
|
@@ -2576,7 +2665,7 @@ var Tn = ["id"], En = /* @__PURE__ */ u({
|
|
|
2576
2665
|
}, [(w(!0), o(e, null, k(r.editable.options, (e) => (w(), o("option", {
|
|
2577
2666
|
key: e.value,
|
|
2578
2667
|
value: e.value
|
|
2579
|
-
}, P(e.label), 9,
|
|
2668
|
+
}, P(e.label), 9, vr))), 128))], 40, _r)) : (w(), o("input", h({
|
|
2580
2669
|
key: 2,
|
|
2581
2670
|
value: n[r.key]
|
|
2582
2671
|
}, { ref_for: !0 }, r.editable.inputAttributes, {
|
|
@@ -2590,36 +2679,36 @@ var Tn = ["id"], En = /* @__PURE__ */ u({
|
|
|
2590
2679
|
paddingLeft: r.editable.prefix ? "1.5rem" : void 0,
|
|
2591
2680
|
paddingRight: r.editable.suffix ? "2rem" : void 0
|
|
2592
2681
|
}
|
|
2593
|
-
}), null, 16,
|
|
2594
|
-
r.editable.suffix ? (w(), o("span",
|
|
2682
|
+
}), null, 16, yr)),
|
|
2683
|
+
r.editable.suffix ? (w(), o("span", br, P(r.editable.suffix), 1)) : a("", !0)
|
|
2595
2684
|
])) : r.display ? (w(), i(j(r.display(n)), { key: 1 })) : (w(), o(e, { key: 2 }, [c(P(n[r.key]), 1)], 64)), T(n, r) ? (w(), o("div", {
|
|
2596
2685
|
key: 3,
|
|
2597
2686
|
role: "alert",
|
|
2598
2687
|
class: "g-cell-error-message",
|
|
2599
2688
|
id: `${t.tableId}-error-${n.key}-${String(r.key)}`
|
|
2600
|
-
}, P(E(n, r)), 9,
|
|
2689
|
+
}, P(E(n, r)), 9, xr)) : a("", !0)], 10, mr))), 128))], 42, fr)], 64))), 128))], 512));
|
|
2601
2690
|
}
|
|
2602
2691
|
});
|
|
2603
2692
|
// src/components/table/columnFilters.ts
|
|
2604
|
-
function
|
|
2693
|
+
function Cr(e) {
|
|
2605
2694
|
return e.filter?.key ?? e.key;
|
|
2606
2695
|
}
|
|
2607
|
-
function
|
|
2696
|
+
function wr(e) {
|
|
2608
2697
|
return e == null || e === "";
|
|
2609
2698
|
}
|
|
2610
|
-
function
|
|
2699
|
+
function Tr(e, t) {
|
|
2611
2700
|
let n = e.find((e) => e.value === t);
|
|
2612
2701
|
if (n) return n.value;
|
|
2613
2702
|
let r = String(t), i = e.find((e) => String(e.value) === r);
|
|
2614
2703
|
return i ? i.value : t;
|
|
2615
2704
|
}
|
|
2616
|
-
function
|
|
2617
|
-
return
|
|
2705
|
+
function Er(e) {
|
|
2706
|
+
return wr(e) ? "" : Array.isArray(e) ? e.join(",") : String(e);
|
|
2618
2707
|
}
|
|
2619
|
-
function
|
|
2620
|
-
return
|
|
2708
|
+
function Dr(e) {
|
|
2709
|
+
return wr(e) ? [] : (Array.isArray(e) ? e : [e]).filter((e) => !wr(e));
|
|
2621
2710
|
}
|
|
2622
|
-
function
|
|
2711
|
+
function Or(e, t) {
|
|
2623
2712
|
switch (t) {
|
|
2624
2713
|
case "contains": return `%${e}%`;
|
|
2625
2714
|
case "startsWith": return `${e}%`;
|
|
@@ -2627,57 +2716,57 @@ function br(e, t) {
|
|
|
2627
2716
|
default: return e;
|
|
2628
2717
|
}
|
|
2629
2718
|
}
|
|
2630
|
-
function
|
|
2719
|
+
function kr(e, t) {
|
|
2631
2720
|
switch (e.type) {
|
|
2632
|
-
case "search": return
|
|
2721
|
+
case "search": return Er(t);
|
|
2633
2722
|
case "select": {
|
|
2634
|
-
if (
|
|
2723
|
+
if (wr(t) || Array.isArray(t) && t.length === 0) return;
|
|
2635
2724
|
let n = Array.isArray(t) ? t.join(",") : t;
|
|
2636
|
-
return
|
|
2725
|
+
return Tr(e.options, n);
|
|
2637
2726
|
}
|
|
2638
|
-
case "multi-select": return
|
|
2727
|
+
case "multi-select": return Dr(t).map((t) => Tr(e.options, t));
|
|
2639
2728
|
case "toggle": return t === !0 || t === "true";
|
|
2640
2729
|
}
|
|
2641
2730
|
}
|
|
2642
|
-
function
|
|
2731
|
+
function Ar(e, t) {
|
|
2643
2732
|
switch (e.type) {
|
|
2644
2733
|
case "search": return typeof t == "string" && t !== "" ? t : void 0;
|
|
2645
|
-
case "select": return
|
|
2734
|
+
case "select": return wr(t) ? void 0 : t;
|
|
2646
2735
|
case "multi-select": return Array.isArray(t) ? [...t] : void 0;
|
|
2647
2736
|
case "toggle": return t === !0 || void 0;
|
|
2648
2737
|
}
|
|
2649
2738
|
}
|
|
2650
|
-
function
|
|
2651
|
-
let n =
|
|
2652
|
-
return Array.isArray(n) ? n.length > 0 : e.type === "toggle" ? n === !0 : !
|
|
2739
|
+
function jr(e, t) {
|
|
2740
|
+
let n = kr(e, t);
|
|
2741
|
+
return Array.isArray(n) ? n.length > 0 : e.type === "toggle" ? n === !0 : !wr(n);
|
|
2653
2742
|
}
|
|
2654
|
-
function
|
|
2743
|
+
function Mr(e, t) {
|
|
2655
2744
|
switch (e.type) {
|
|
2656
2745
|
case "search": {
|
|
2657
|
-
let n =
|
|
2658
|
-
return n ? e.transform ? e.transform(n) :
|
|
2746
|
+
let n = Er(t).trim();
|
|
2747
|
+
return n ? e.transform ? e.transform(n) : Or(n, e.match ?? "exact") : void 0;
|
|
2659
2748
|
}
|
|
2660
2749
|
case "select": {
|
|
2661
|
-
let n =
|
|
2662
|
-
return
|
|
2750
|
+
let n = kr(e, t);
|
|
2751
|
+
return wr(n) || Array.isArray(n) ? void 0 : e.transform ? e.transform(n) : n;
|
|
2663
2752
|
}
|
|
2664
2753
|
case "multi-select": {
|
|
2665
|
-
let n =
|
|
2754
|
+
let n = Dr(t).map((t) => Tr(e.options, t));
|
|
2666
2755
|
return n.length === 0 ? void 0 : e.transform ? e.transform(n) : n;
|
|
2667
2756
|
}
|
|
2668
|
-
case "toggle": return
|
|
2757
|
+
case "toggle": return kr(e, t) === !0 ? !e.transform || e.transform(!0) : void 0;
|
|
2669
2758
|
}
|
|
2670
2759
|
}
|
|
2671
2760
|
// src/components/GMultiSelect.vue?vue&type=script&setup=true&lang.ts
|
|
2672
|
-
var
|
|
2761
|
+
var Nr = ["id", "for"], Pr = {
|
|
2673
2762
|
key: 0,
|
|
2674
2763
|
class: "g-multiselect-required",
|
|
2675
2764
|
"aria-hidden": "true"
|
|
2676
|
-
},
|
|
2765
|
+
}, Fr = ["id"], Ir = ["aria-labelledby"], Lr = { class: "g-multiselect-chip-label" }, Rr = [
|
|
2677
2766
|
"aria-label",
|
|
2678
2767
|
"disabled",
|
|
2679
2768
|
"onClick"
|
|
2680
|
-
],
|
|
2769
|
+
], zr = [
|
|
2681
2770
|
"id",
|
|
2682
2771
|
"value",
|
|
2683
2772
|
"placeholder",
|
|
@@ -2687,26 +2776,26 @@ var Tr = ["id", "for"], Er = {
|
|
|
2687
2776
|
"aria-activedescendant",
|
|
2688
2777
|
"aria-describedby",
|
|
2689
2778
|
"aria-required"
|
|
2690
|
-
],
|
|
2779
|
+
], Br = ["id"], Vr = [
|
|
2691
2780
|
"id",
|
|
2692
2781
|
"aria-selected",
|
|
2693
2782
|
"onClick"
|
|
2694
|
-
],
|
|
2783
|
+
], Hr = {
|
|
2695
2784
|
class: "g-multiselect-option-check",
|
|
2696
2785
|
"aria-hidden": "true"
|
|
2697
|
-
},
|
|
2786
|
+
}, Ur = {
|
|
2698
2787
|
key: 0,
|
|
2699
2788
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2700
2789
|
viewBox: "0 0 640 640",
|
|
2701
2790
|
width: "1.25em"
|
|
2702
|
-
},
|
|
2791
|
+
}, Wr = { class: "g-multiselect-option-text" }, Gr = { class: "g-multiselect-option-label" }, Kr = {
|
|
2703
2792
|
key: 0,
|
|
2704
2793
|
class: "g-multiselect-option-description"
|
|
2705
|
-
},
|
|
2794
|
+
}, qr = {
|
|
2706
2795
|
key: 1,
|
|
2707
2796
|
"aria-live": "polite",
|
|
2708
2797
|
class: "g-multiselect-option g-multiselect-no-results"
|
|
2709
|
-
},
|
|
2798
|
+
}, Jr = /* @__PURE__ */ u({
|
|
2710
2799
|
__name: "GMultiSelect",
|
|
2711
2800
|
props: /*@__PURE__*/ m({
|
|
2712
2801
|
options: {},
|
|
@@ -2787,7 +2876,7 @@ var Tr = ["id", "for"], Er = {
|
|
|
2787
2876
|
function ne() {
|
|
2788
2877
|
i.disabled || y.value || z();
|
|
2789
2878
|
}
|
|
2790
|
-
function
|
|
2879
|
+
function J(e) {
|
|
2791
2880
|
if (S.value) {
|
|
2792
2881
|
S.value = !1;
|
|
2793
2882
|
return;
|
|
@@ -2795,13 +2884,13 @@ var Tr = ["id", "for"], Er = {
|
|
|
2795
2884
|
let t = e.relatedTarget;
|
|
2796
2885
|
t && v.value?.contains(t) || t && m.value?.contains(t) || H();
|
|
2797
2886
|
}
|
|
2798
|
-
function
|
|
2887
|
+
function Y(e) {
|
|
2799
2888
|
e.preventDefault();
|
|
2800
2889
|
}
|
|
2801
|
-
function
|
|
2890
|
+
function X() {
|
|
2802
2891
|
S.value = !0;
|
|
2803
2892
|
}
|
|
2804
|
-
function
|
|
2893
|
+
function re(e) {
|
|
2805
2894
|
if (i.disabled) return;
|
|
2806
2895
|
let t = N.value.length - 1;
|
|
2807
2896
|
switch (e.key) {
|
|
@@ -2829,9 +2918,9 @@ var Tr = ["id", "for"], Er = {
|
|
|
2829
2918
|
case "Backspace": !x.value && d.value.length > 0 && W(d.value[d.value.length - 1]);
|
|
2830
2919
|
}
|
|
2831
2920
|
}
|
|
2832
|
-
let
|
|
2921
|
+
let ie = r(() => `${f}-input`), Z = r(() => `${f}-label`), ae = r(() => `${f}-instructions`), oe = r(() => `error-message-${f}`), se = r(() => {
|
|
2833
2922
|
let e = [];
|
|
2834
|
-
return i.instructions && e.push(
|
|
2923
|
+
return i.instructions && e.push(ae.value), T.value && e.push(oe.value), e.length > 0 ? e.join(" ") : void 0;
|
|
2835
2924
|
});
|
|
2836
2925
|
return (n, r) => (w(), o("div", { class: _(["g-multiselect-root", {
|
|
2837
2926
|
"g-multiselect-open": y.value,
|
|
@@ -2839,15 +2928,15 @@ var Tr = ["id", "for"], Er = {
|
|
|
2839
2928
|
}]) }, [
|
|
2840
2929
|
t.hiddenLabel ? a("", !0) : (w(), o("label", {
|
|
2841
2930
|
key: 0,
|
|
2842
|
-
id:
|
|
2843
|
-
for:
|
|
2931
|
+
id: Z.value,
|
|
2932
|
+
for: ie.value,
|
|
2844
2933
|
class: "g-multiselect-label"
|
|
2845
|
-
}, [c(P(t.label), 1), t.required ? (w(), o("span",
|
|
2934
|
+
}, [c(P(t.label), 1), t.required ? (w(), o("span", Pr, " *")) : a("", !0)], 8, Nr)),
|
|
2846
2935
|
t.instructions ? (w(), o("div", {
|
|
2847
2936
|
key: 1,
|
|
2848
|
-
id:
|
|
2937
|
+
id: ae.value,
|
|
2849
2938
|
class: "g-multiselect-instructions"
|
|
2850
|
-
}, P(t.instructions), 9,
|
|
2939
|
+
}, P(t.instructions), 9, Fr)) : a("", !0),
|
|
2851
2940
|
s("div", {
|
|
2852
2941
|
ref_key: "controlRef",
|
|
2853
2942
|
ref: m,
|
|
@@ -2857,16 +2946,16 @@ var Tr = ["id", "for"], Er = {
|
|
|
2857
2946
|
d.value.length ? (w(), o("ul", {
|
|
2858
2947
|
key: 0,
|
|
2859
2948
|
class: "g-multiselect-chips",
|
|
2860
|
-
"aria-labelledby":
|
|
2949
|
+
"aria-labelledby": Z.value
|
|
2861
2950
|
}, [(w(!0), o(e, null, k(d.value, (e) => (w(), o("li", {
|
|
2862
2951
|
key: e,
|
|
2863
2952
|
class: "g-multiselect-chip"
|
|
2864
|
-
}, [s("span",
|
|
2953
|
+
}, [s("span", Lr, P(L(e)), 1), s("button", {
|
|
2865
2954
|
type: "button",
|
|
2866
2955
|
class: "g-multiselect-chip-remove",
|
|
2867
2956
|
"aria-label": `Remove ${L(e)}`,
|
|
2868
2957
|
disabled: t.disabled,
|
|
2869
|
-
onMousedown:
|
|
2958
|
+
onMousedown: X,
|
|
2870
2959
|
onClick: q((t) => W(e), ["stop"])
|
|
2871
2960
|
}, [...r[0] ||= [s("svg", {
|
|
2872
2961
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2876,14 +2965,14 @@ var Tr = ["id", "for"], Er = {
|
|
|
2876
2965
|
}, [s("path", {
|
|
2877
2966
|
fill: "currentColor",
|
|
2878
2967
|
d: "m37.84 32.94-7.63-7.63 7.63-7.63a3.24 3.24 0 0 0-4.58-4.58l-7.63 7.63L18 13.1a3.24 3.24 0 0 0-4.58 4.58L21 25.31l-7.62 7.63A3.24 3.24 0 1 0 18 37.52l7.63-7.63 7.63 7.63a3.24 3.24 0 0 0 4.58-4.58Z"
|
|
2879
|
-
})], -1)]], 40,
|
|
2968
|
+
})], -1)]], 40, Rr)]))), 128))], 8, Ir)) : a("", !0),
|
|
2880
2969
|
s("input", h({
|
|
2881
2970
|
ref_key: "inputRef",
|
|
2882
2971
|
ref: p,
|
|
2883
2972
|
type: "text",
|
|
2884
2973
|
role: "combobox",
|
|
2885
2974
|
class: "g-multiselect-input",
|
|
2886
|
-
id:
|
|
2975
|
+
id: ie.value,
|
|
2887
2976
|
value: x.value,
|
|
2888
2977
|
placeholder: d.value.length === 0 ? t.placeholder : void 0,
|
|
2889
2978
|
disabled: t.disabled,
|
|
@@ -2894,13 +2983,13 @@ var Tr = ["id", "for"], Er = {
|
|
|
2894
2983
|
"aria-controls": R(f) + "-listbox",
|
|
2895
2984
|
"aria-activedescendant": y.value && N.value.length > 0 ? R(f) + "-option-" + b.value : void 0
|
|
2896
2985
|
}, t.hiddenLabel ? { "aria-label": t.label } : void 0, {
|
|
2897
|
-
"aria-describedby":
|
|
2986
|
+
"aria-describedby": se.value,
|
|
2898
2987
|
"aria-required": t.required ? "true" : void 0,
|
|
2899
2988
|
onInput: K,
|
|
2900
|
-
onKeydown:
|
|
2989
|
+
onKeydown: re,
|
|
2901
2990
|
onFocus: ne,
|
|
2902
|
-
onBlur:
|
|
2903
|
-
}), null, 16,
|
|
2991
|
+
onBlur: J
|
|
2992
|
+
}), null, 16, zr),
|
|
2904
2993
|
r[2] ||= s("svg", {
|
|
2905
2994
|
class: "g-multiselect-caret",
|
|
2906
2995
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2917,7 +3006,7 @@ var Tr = ["id", "for"], Er = {
|
|
|
2917
3006
|
id: R(f) + "-listbox",
|
|
2918
3007
|
role: "listbox",
|
|
2919
3008
|
"aria-multiselectable": "true"
|
|
2920
|
-
}, t.hiddenLabel ? { "aria-label": t.label } : { "aria-labelledby":
|
|
3009
|
+
}, t.hiddenLabel ? { "aria-label": t.label } : { "aria-labelledby": Z.value }, {
|
|
2921
3010
|
class: ["g-multiselect-listbox", { "g-multiselect-listbox--above": R(E) === "above" }],
|
|
2922
3011
|
style: R(D),
|
|
2923
3012
|
tabindex: "-1"
|
|
@@ -2930,31 +3019,31 @@ var Tr = ["id", "for"], Er = {
|
|
|
2930
3019
|
"g-multiselect-option--selected": F(e.value)
|
|
2931
3020
|
}]),
|
|
2932
3021
|
"aria-selected": F(e.value) ? "true" : "false",
|
|
2933
|
-
onMousedown:
|
|
3022
|
+
onMousedown: Y,
|
|
2934
3023
|
onClick: (e) => U(t)
|
|
2935
|
-
}, [s("span",
|
|
3024
|
+
}, [s("span", Hr, [F(e.value) ? (w(), o("svg", Ur, [...r[1] ||= [s("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)]])) : a("", !0)]), s("span", Wr, [s("span", Gr, P(e.label), 1), e.description ? (w(), o("span", Kr, P(e.description), 1)) : a("", !0)])], 42, Vr))), 128)) : (w(), o("div", qr, " No results found. "))], 16, Br), [[ee, y.value]])
|
|
2936
3025
|
], 2),
|
|
2937
3026
|
l(Pe, {
|
|
2938
3027
|
errors: R(C),
|
|
2939
|
-
id:
|
|
3028
|
+
id: oe.value
|
|
2940
3029
|
}, null, 8, ["errors", "id"])
|
|
2941
3030
|
], 2));
|
|
2942
3031
|
}
|
|
2943
|
-
}),
|
|
3032
|
+
}), Yr = {
|
|
2944
3033
|
key: 0,
|
|
2945
3034
|
class: "g-checkbox-group__legend"
|
|
2946
|
-
},
|
|
3035
|
+
}, Xr = {
|
|
2947
3036
|
key: 0,
|
|
2948
3037
|
class: "g-checkbox-group__required",
|
|
2949
3038
|
"aria-hidden": "true"
|
|
2950
|
-
},
|
|
3039
|
+
}, Zr = {
|
|
2951
3040
|
key: 1,
|
|
2952
3041
|
class: "g-checkbox-group__label"
|
|
2953
|
-
},
|
|
3042
|
+
}, Qr = {
|
|
2954
3043
|
key: 0,
|
|
2955
3044
|
class: "g-checkbox-group__required",
|
|
2956
3045
|
"aria-hidden": "true"
|
|
2957
|
-
},
|
|
3046
|
+
}, $r = ["id"], ei = { class: "g-checkbox-group__options" }, ti = ["for"], ni = [
|
|
2958
3047
|
"id",
|
|
2959
3048
|
"type",
|
|
2960
3049
|
"name",
|
|
@@ -2963,7 +3052,7 @@ var Tr = ["id", "for"], Er = {
|
|
|
2963
3052
|
"disabled",
|
|
2964
3053
|
"required",
|
|
2965
3054
|
"onChange"
|
|
2966
|
-
],
|
|
3055
|
+
], ri = { class: "g-checkbox-group__label-text" }, ii = ["id"], ai = /* @__PURE__ */ u({
|
|
2967
3056
|
__name: "GCheckboxGroup",
|
|
2968
3057
|
props: /*@__PURE__*/ m({
|
|
2969
3058
|
label: { default: void 0 },
|
|
@@ -3024,13 +3113,13 @@ var Tr = ["id", "for"], Er = {
|
|
|
3024
3113
|
}
|
|
3025
3114
|
return (n, r) => (w(), i(j(C.value ? "fieldset" : "div"), h({ class: ["g-checkbox-group", { "g-checkbox-group--error": R(m) }] }, T.value), {
|
|
3026
3115
|
default: K(() => [
|
|
3027
|
-
C.value && t.label ? (w(), o("legend",
|
|
3116
|
+
C.value && t.label ? (w(), o("legend", Yr, [c(P(t.label), 1), t.required ? (w(), o("span", Xr, "\xA0*")) : a("", !0)])) : !C.value && t.label ? (w(), o("div", Zr, [c(P(t.label), 1), t.required ? (w(), o("span", Qr, "\xA0*")) : a("", !0)])) : a("", !0),
|
|
3028
3117
|
t.instructions ? (w(), o("div", {
|
|
3029
3118
|
key: 2,
|
|
3030
3119
|
id: S.value,
|
|
3031
3120
|
class: "g-checkbox-group__instructions"
|
|
3032
|
-
}, P(t.instructions), 9,
|
|
3033
|
-
s("div",
|
|
3121
|
+
}, P(t.instructions), 9, $r)) : a("", !0),
|
|
3122
|
+
s("div", ei, [(w(!0), o(e, null, k(t.options, (e, n) => (w(), o("div", {
|
|
3034
3123
|
key: e.value,
|
|
3035
3124
|
class: _(["g-checkbox-group__option-wrapper", { "g-checkbox-group__option-wrapper--disabled": e.disabled }])
|
|
3036
3125
|
}, [s("label", {
|
|
@@ -3045,11 +3134,11 @@ var Tr = ["id", "for"], Er = {
|
|
|
3045
3134
|
disabled: e.disabled,
|
|
3046
3135
|
required: t.required && (t.radio && n === 0 || !t.radio && t.options.length === 1),
|
|
3047
3136
|
class: "g-checkbox-group__input"
|
|
3048
|
-
}, { ref_for: !0 }, O(e, n), { onChange: (t) => y(e.value, t.target.checked) }), null, 16,
|
|
3137
|
+
}, { ref_for: !0 }, O(e, n), { onChange: (t) => y(e.value, t.target.checked) }), null, 16, ni), s("span", ri, P(e.label), 1)], 10, ti), e.hint ? (w(), o("div", {
|
|
3049
3138
|
key: 0,
|
|
3050
3139
|
id: E(n),
|
|
3051
3140
|
class: "g-checkbox-group__hint"
|
|
3052
|
-
}, P(e.hint), 9,
|
|
3141
|
+
}, P(e.hint), 9, ii)) : a("", !0)], 2))), 128))]),
|
|
3053
3142
|
l(Pe, {
|
|
3054
3143
|
errors: R(p),
|
|
3055
3144
|
id: x.value
|
|
@@ -3058,15 +3147,15 @@ var Tr = ["id", "for"], Er = {
|
|
|
3058
3147
|
_: 1
|
|
3059
3148
|
}, 16, ["class"]));
|
|
3060
3149
|
}
|
|
3061
|
-
}),
|
|
3150
|
+
}), oi = {
|
|
3062
3151
|
class: "g-pagination",
|
|
3063
3152
|
"aria-label": "Pagination"
|
|
3064
|
-
},
|
|
3153
|
+
}, si = ["disabled"], ci = ["disabled"], li = { class: "page-range" }, ui = ["disabled"], di = ["disabled"], fi = { class: "g-pagination-page-size" }, pi = { class: "page-size-select-wrap" }, mi = ["id", "value"], hi = ["value"], gi = ["for"], _i = { class: "g-pagination-overflow" }, vi = ["onClick"], yi = { class: "g-pagination-overflow-popover" }, bi = { class: "g-pagination-overflow-page-size" }, xi = ["for"], Si = { class: "page-size-select-wrap" }, Ci = ["id", "value"], wi = ["value"], Ti = { class: "g-pagination-overflow-actions" }, Ei = ["disabled"], Di = ["disabled"], Oi = {
|
|
3065
3154
|
class: "ilw-sr-only",
|
|
3066
3155
|
role: "status",
|
|
3067
3156
|
"aria-live": "polite",
|
|
3068
3157
|
"aria-atomic": "true"
|
|
3069
|
-
},
|
|
3158
|
+
}, ki = /* @__PURE__ */ u({
|
|
3070
3159
|
__name: "GTablePagination",
|
|
3071
3160
|
props: /*@__PURE__*/ m({
|
|
3072
3161
|
start: {},
|
|
@@ -3097,7 +3186,7 @@ var Tr = ["id", "for"], Er = {
|
|
|
3097
3186
|
function C(e) {
|
|
3098
3187
|
u.value = parseInt(e.target.value, 10), a.value = 0;
|
|
3099
3188
|
}
|
|
3100
|
-
return (t, n) => (w(), o("nav",
|
|
3189
|
+
return (t, n) => (w(), o("nav", oi, [
|
|
3101
3190
|
s("button", {
|
|
3102
3191
|
class: "first-page g-pagination-button",
|
|
3103
3192
|
type: "button",
|
|
@@ -3124,7 +3213,7 @@ var Tr = ["id", "for"], Er = {
|
|
|
3124
3213
|
}),
|
|
3125
3214
|
s("path", { d: "M11 7l-5 5l5 5" }),
|
|
3126
3215
|
s("path", { d: "M17 7l-5 5l5 5" })
|
|
3127
|
-
], -1)]], 8,
|
|
3216
|
+
], -1)]], 8, si),
|
|
3128
3217
|
s("button", {
|
|
3129
3218
|
class: "prev-page g-pagination-button",
|
|
3130
3219
|
type: "button",
|
|
@@ -3147,8 +3236,8 @@ var Tr = ["id", "for"], Er = {
|
|
|
3147
3236
|
stroke: "none",
|
|
3148
3237
|
d: "M0 0h24v24H0z",
|
|
3149
3238
|
fill: "none"
|
|
3150
|
-
}), s("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8,
|
|
3151
|
-
s("span",
|
|
3239
|
+
}), s("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8, ci),
|
|
3240
|
+
s("span", li, P(v.value) + " to " + P(y.value), 1),
|
|
3152
3241
|
s("button", {
|
|
3153
3242
|
class: "next-page g-pagination-button",
|
|
3154
3243
|
type: "button",
|
|
@@ -3171,7 +3260,7 @@ var Tr = ["id", "for"], Er = {
|
|
|
3171
3260
|
stroke: "none",
|
|
3172
3261
|
d: "M0 0h24v24H0z",
|
|
3173
3262
|
fill: "none"
|
|
3174
|
-
}), s("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8,
|
|
3263
|
+
}), s("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8, ui),
|
|
3175
3264
|
s("button", {
|
|
3176
3265
|
class: "last-page g-pagination-button",
|
|
3177
3266
|
type: "button",
|
|
@@ -3198,8 +3287,8 @@ var Tr = ["id", "for"], Er = {
|
|
|
3198
3287
|
}),
|
|
3199
3288
|
s("path", { d: "M7 7l5 5l-5 5" }),
|
|
3200
3289
|
s("path", { d: "M13 7l5 5l-5 5" })
|
|
3201
|
-
], -1)]], 8,
|
|
3202
|
-
s("div",
|
|
3290
|
+
], -1)]], 8, di),
|
|
3291
|
+
s("div", fi, [s("div", pi, [s("select", {
|
|
3203
3292
|
id: R(d),
|
|
3204
3293
|
class: "page-size-select",
|
|
3205
3294
|
value: m.value,
|
|
@@ -3207,7 +3296,7 @@ var Tr = ["id", "for"], Er = {
|
|
|
3207
3296
|
}, [(w(!0), o(e, null, k(h.value, (e) => (w(), o("option", {
|
|
3208
3297
|
key: e,
|
|
3209
3298
|
value: e
|
|
3210
|
-
}, P(e), 9,
|
|
3299
|
+
}, P(e), 9, hi))), 128))], 40, mi), n[10] ||= s("span", {
|
|
3211
3300
|
class: "page-size-select-caret",
|
|
3212
3301
|
"aria-hidden": "true"
|
|
3213
3302
|
}, [s("svg", {
|
|
@@ -3221,8 +3310,8 @@ var Tr = ["id", "for"], Er = {
|
|
|
3221
3310
|
})])], -1)]), s("label", {
|
|
3222
3311
|
class: "page-size-label",
|
|
3223
3312
|
for: R(d)
|
|
3224
|
-
}, " per page ", 8,
|
|
3225
|
-
s("div",
|
|
3313
|
+
}, " per page ", 8, gi)]),
|
|
3314
|
+
s("div", _i, [l(ut, null, {
|
|
3226
3315
|
trigger: K(({ toggle: e }) => [s("button", {
|
|
3227
3316
|
type: "button",
|
|
3228
3317
|
class: "g-pagination-button g-pagination-overflow-trigger",
|
|
@@ -3237,17 +3326,17 @@ var Tr = ["id", "for"], Er = {
|
|
|
3237
3326
|
}, [s("path", {
|
|
3238
3327
|
fill: "currentColor",
|
|
3239
3328
|
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"
|
|
3240
|
-
})], -1)]], 8,
|
|
3241
|
-
default: K(() => [s("div",
|
|
3329
|
+
})], -1)]], 8, vi)]),
|
|
3330
|
+
default: K(() => [s("div", yi, [
|
|
3242
3331
|
n[15] ||= s("h2", {
|
|
3243
3332
|
class: "g-pagination-overflow-title",
|
|
3244
3333
|
tabindex: "-1",
|
|
3245
3334
|
"popover-focus": ""
|
|
3246
3335
|
}, " Pagination options ", -1),
|
|
3247
|
-
s("div",
|
|
3336
|
+
s("div", bi, [s("label", {
|
|
3248
3337
|
class: "page-size-label",
|
|
3249
3338
|
for: R(f)
|
|
3250
|
-
}, " Rows per page ", 8,
|
|
3339
|
+
}, " Rows per page ", 8, xi), s("div", Si, [s("select", {
|
|
3251
3340
|
id: R(f),
|
|
3252
3341
|
class: "page-size-select",
|
|
3253
3342
|
value: m.value,
|
|
@@ -3255,7 +3344,7 @@ var Tr = ["id", "for"], Er = {
|
|
|
3255
3344
|
}, [(w(!0), o(e, null, k(h.value, (e) => (w(), o("option", {
|
|
3256
3345
|
key: `overflow-${e}`,
|
|
3257
3346
|
value: e
|
|
3258
|
-
}, P(e), 9,
|
|
3347
|
+
}, P(e), 9, wi))), 128))], 40, Ci), n[12] ||= s("span", {
|
|
3259
3348
|
class: "page-size-select-caret",
|
|
3260
3349
|
"aria-hidden": "true"
|
|
3261
3350
|
}, [s("svg", {
|
|
@@ -3267,7 +3356,7 @@ var Tr = ["id", "for"], Er = {
|
|
|
3267
3356
|
fill: "currentColor",
|
|
3268
3357
|
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"
|
|
3269
3358
|
})])], -1)])]),
|
|
3270
|
-
s("div",
|
|
3359
|
+
s("div", Ti, [s("button", {
|
|
3271
3360
|
type: "button",
|
|
3272
3361
|
class: "g-pagination-overflow-action",
|
|
3273
3362
|
disabled: g.value,
|
|
@@ -3293,7 +3382,7 @@ var Tr = ["id", "for"], Er = {
|
|
|
3293
3382
|
}),
|
|
3294
3383
|
s("path", { d: "M11 7l-5 5l5 5" }),
|
|
3295
3384
|
s("path", { d: "M17 7l-5 5l5 5" })
|
|
3296
|
-
])], -1), c(" First Page ", -1)]], 8,
|
|
3385
|
+
])], -1), c(" First Page ", -1)]], 8, Ei), s("button", {
|
|
3297
3386
|
type: "button",
|
|
3298
3387
|
class: "g-pagination-overflow-action",
|
|
3299
3388
|
disabled: _.value,
|
|
@@ -3319,43 +3408,43 @@ var Tr = ["id", "for"], Er = {
|
|
|
3319
3408
|
}),
|
|
3320
3409
|
s("path", { d: "M7 7l5 5l-5 5" }),
|
|
3321
3410
|
s("path", { d: "M13 7l5 5l-5 5" })
|
|
3322
|
-
])], -1), c(" Last Page ", -1)]], 8,
|
|
3411
|
+
])], -1), c(" Last Page ", -1)]], 8, Di)])
|
|
3323
3412
|
])]),
|
|
3324
3413
|
_: 1
|
|
3325
3414
|
})]),
|
|
3326
|
-
s("span",
|
|
3415
|
+
s("span", Oi, P(x.value), 1)
|
|
3327
3416
|
]));
|
|
3328
3417
|
}
|
|
3329
3418
|
});
|
|
3330
3419
|
// src/compose/useFiltering.ts
|
|
3331
|
-
function
|
|
3420
|
+
function Ai(e) {
|
|
3332
3421
|
if (!(Array.isArray(e) && e.length === 0) && e !== null && e !== !1 && e !== "") return e;
|
|
3333
3422
|
}
|
|
3334
|
-
function
|
|
3423
|
+
function ji(e) {
|
|
3335
3424
|
return Object.fromEntries(Object.entries(e).filter(([, e]) => e && (!Array.isArray(e) || e.length > 0)));
|
|
3336
3425
|
}
|
|
3337
|
-
function
|
|
3426
|
+
function Mi(e) {
|
|
3338
3427
|
if (e != null) return Array.isArray(e) ? e.filter((e) => e != null) : [e];
|
|
3339
3428
|
}
|
|
3340
|
-
function
|
|
3429
|
+
function Ni(e) {
|
|
3341
3430
|
if (e == null) return;
|
|
3342
3431
|
if (typeof e == "string") return e.includes(",") ? e.split(",") : [e];
|
|
3343
3432
|
let t = [];
|
|
3344
3433
|
for (let n of e) n !== null && t.push(n);
|
|
3345
3434
|
return t.length > 0 ? t : void 0;
|
|
3346
3435
|
}
|
|
3347
|
-
function
|
|
3436
|
+
function Pi(e) {
|
|
3348
3437
|
return Array.isArray(e) ? [...e] : e;
|
|
3349
3438
|
}
|
|
3350
|
-
function
|
|
3439
|
+
function Fi(e, t) {
|
|
3351
3440
|
return Array.isArray(e) || Array.isArray(t) ? !Array.isArray(e) || !Array.isArray(t) ? !1 : e.length === t.length && e.every((e, n) => e === t[n]) : e === t;
|
|
3352
3441
|
}
|
|
3353
|
-
function
|
|
3442
|
+
function Ii(e, t) {
|
|
3354
3443
|
let n = /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)]);
|
|
3355
|
-
for (let r of n) if (!
|
|
3444
|
+
for (let r of n) if (!Fi(e[r], t[r])) return !1;
|
|
3356
3445
|
return !0;
|
|
3357
3446
|
}
|
|
3358
|
-
function
|
|
3447
|
+
function Li(e) {
|
|
3359
3448
|
if (e != null && e !== "") {
|
|
3360
3449
|
if (Array.isArray(e)) {
|
|
3361
3450
|
let t = e.filter((e) => e != null && e !== "").map((e) => String(e));
|
|
@@ -3364,76 +3453,76 @@ function ki(e) {
|
|
|
3364
3453
|
return String(e);
|
|
3365
3454
|
}
|
|
3366
3455
|
}
|
|
3367
|
-
function
|
|
3368
|
-
return
|
|
3456
|
+
function Ri(e) {
|
|
3457
|
+
return Li(e) !== void 0;
|
|
3369
3458
|
}
|
|
3370
|
-
function
|
|
3459
|
+
function zi(e) {
|
|
3371
3460
|
let t = {};
|
|
3372
3461
|
for (let [n, r] of Object.entries(F(e))) {
|
|
3373
|
-
let e =
|
|
3462
|
+
let e = Li(r);
|
|
3374
3463
|
e !== void 0 && (t[n] = e);
|
|
3375
3464
|
}
|
|
3376
3465
|
return t;
|
|
3377
3466
|
}
|
|
3378
|
-
function
|
|
3467
|
+
function Bi(e, t) {
|
|
3379
3468
|
let n = {}, r = t, i = n;
|
|
3380
3469
|
for (let t of e) {
|
|
3381
3470
|
if (!t.filter) continue;
|
|
3382
|
-
let e =
|
|
3471
|
+
let e = Cr(t), n = Mr(t.filter, r[e]);
|
|
3383
3472
|
n !== void 0 && (i[e] = n);
|
|
3384
3473
|
}
|
|
3385
3474
|
return n;
|
|
3386
3475
|
}
|
|
3387
|
-
function
|
|
3476
|
+
function Vi(e) {
|
|
3388
3477
|
let t = {};
|
|
3389
|
-
for (let n of e) n.filter && (t[
|
|
3478
|
+
for (let n of e) n.filter && (t[Cr(n)] = n.filter.type === "multi-select" ? [] : void 0);
|
|
3390
3479
|
return t;
|
|
3391
3480
|
}
|
|
3392
|
-
function
|
|
3481
|
+
function Hi(e, t, n = {}) {
|
|
3393
3482
|
let r = e, i = new Set(n.booleanArrayKeys ?? []), a = {};
|
|
3394
3483
|
for (let e of Object.keys(r)) {
|
|
3395
|
-
let n =
|
|
3396
|
-
a[e] = i.has(e) && n !== void 0 ?
|
|
3484
|
+
let n = Ui(t[e], Array.isArray(r[e]));
|
|
3485
|
+
a[e] = i.has(e) && n !== void 0 ? Wi(n) : n;
|
|
3397
3486
|
}
|
|
3398
3487
|
return a;
|
|
3399
3488
|
}
|
|
3400
|
-
function
|
|
3401
|
-
if (e != null) return !t && typeof e == "string" ? e.includes(",") ? e.split(",") : e :
|
|
3489
|
+
function Ui(e, t) {
|
|
3490
|
+
if (e != null) return !t && typeof e == "string" ? e.includes(",") ? e.split(",") : e : Ni(e);
|
|
3402
3491
|
}
|
|
3403
|
-
function
|
|
3492
|
+
function Wi(e) {
|
|
3404
3493
|
return (Array.isArray(e) ? e : [e]).flatMap((e) => e === "true" ? [!0] : e === "false" ? [!1] : []);
|
|
3405
3494
|
}
|
|
3406
|
-
function
|
|
3495
|
+
function Gi(e) {
|
|
3407
3496
|
let t = {};
|
|
3408
3497
|
for (let [n, r] of Object.entries(F(e))) Array.isArray(r) ? r.length > 0 && (t[n] = r) : t[n] = r === !0 ? "true" : r || void 0;
|
|
3409
3498
|
return t;
|
|
3410
3499
|
}
|
|
3411
|
-
function
|
|
3500
|
+
function Ki(e) {
|
|
3412
3501
|
let t = {};
|
|
3413
3502
|
return Object.keys(e).forEach((n) => {
|
|
3414
3503
|
let r = e[n];
|
|
3415
3504
|
r != null && r !== "" && r !== !1 && (Array.isArray(r) ? r.length > 0 && (t[n] = r.map((e) => String(e))) : t[n] = String(r));
|
|
3416
3505
|
}), t;
|
|
3417
3506
|
}
|
|
3418
|
-
function
|
|
3507
|
+
function qi(e, t) {
|
|
3419
3508
|
let n = e, r = Object.keys(e), i = O(((e) => {
|
|
3420
3509
|
let t = {};
|
|
3421
3510
|
for (let i of r) {
|
|
3422
3511
|
let r = e[i];
|
|
3423
|
-
r !== void 0 && (t[i] =
|
|
3512
|
+
r !== void 0 && (t[i] = Ui(r, Array.isArray(n[i])));
|
|
3424
3513
|
}
|
|
3425
3514
|
return t;
|
|
3426
|
-
})(t.route.query)), a =
|
|
3427
|
-
return W(() =>
|
|
3515
|
+
})(t.route.query)), a = Ji(e, { syncWith: i }), o = a.filters;
|
|
3516
|
+
return W(() => Hi(e, t.route.query, t), (e) => {
|
|
3428
3517
|
let t = e;
|
|
3429
|
-
for (let e of r)
|
|
3518
|
+
for (let e of r) Fi(o[e], t[e]) || (o[e] = t[e]);
|
|
3430
3519
|
}, { immediate: !0 }), W(i, (e) => {
|
|
3431
3520
|
let n = { ...t.route.query };
|
|
3432
|
-
for (let t of r) e[t] === void 0 ? delete n[t] : n[t] =
|
|
3433
|
-
|
|
3521
|
+
for (let t of r) e[t] === void 0 ? delete n[t] : n[t] = Pi(e[t]);
|
|
3522
|
+
Ii(t.route.query, n) || t.router.replace({ query: n });
|
|
3434
3523
|
}), a;
|
|
3435
3524
|
}
|
|
3436
|
-
function
|
|
3525
|
+
function Ji(e, t = {}) {
|
|
3437
3526
|
let n = Object.keys(e), i = E({ ...e }), a = t.syncWith;
|
|
3438
3527
|
if (a) {
|
|
3439
3528
|
if (a.value) {
|
|
@@ -3444,12 +3533,12 @@ function Bi(e, t = {}) {
|
|
|
3444
3533
|
});
|
|
3445
3534
|
}
|
|
3446
3535
|
W(i, (e) => {
|
|
3447
|
-
a.value =
|
|
3536
|
+
a.value = zi(e);
|
|
3448
3537
|
}, { deep: !0 });
|
|
3449
3538
|
}
|
|
3450
3539
|
return {
|
|
3451
3540
|
filters: i,
|
|
3452
|
-
isFiltered: r(() => n.some((e) =>
|
|
3541
|
+
isFiltered: r(() => n.some((e) => Ri(i[e]))),
|
|
3453
3542
|
clearFilters: () => {
|
|
3454
3543
|
Object.keys(i).forEach((e) => {
|
|
3455
3544
|
i[e] = void 0;
|
|
@@ -3457,93 +3546,93 @@ function Bi(e, t = {}) {
|
|
|
3457
3546
|
},
|
|
3458
3547
|
filteredColumns: r(() => {
|
|
3459
3548
|
let e = {};
|
|
3460
|
-
for (let t of n) e[t] =
|
|
3549
|
+
for (let t of n) e[t] = Ri(i[t]);
|
|
3461
3550
|
return e;
|
|
3462
3551
|
})
|
|
3463
3552
|
};
|
|
3464
3553
|
}
|
|
3465
3554
|
// src/components/GTable.vue?vue&type=script&setup=true&lang.ts
|
|
3466
|
-
var
|
|
3555
|
+
var Yi = { class: "g-table-inner-wrap" }, Xi = { class: "g-table-control-actions" }, Zi = {
|
|
3467
3556
|
key: 0,
|
|
3468
3557
|
class: "g-sort-builder-wrap"
|
|
3469
|
-
},
|
|
3558
|
+
}, Qi = {
|
|
3470
3559
|
key: 0,
|
|
3471
3560
|
class: "g-sort-builder-count"
|
|
3472
|
-
},
|
|
3561
|
+
}, $i = {
|
|
3473
3562
|
key: 0,
|
|
3474
3563
|
class: "g-sort-builder-list"
|
|
3475
|
-
},
|
|
3564
|
+
}, ea = ["data-sort-row-key", "aria-label"], ta = {
|
|
3476
3565
|
class: "g-sort-builder-rule-priority",
|
|
3477
3566
|
"aria-hidden": "true"
|
|
3478
|
-
},
|
|
3567
|
+
}, na = { class: "g-sort-builder-rule-label" }, ra = ["aria-label", "onClick"], ia = { class: "g-visually-hidden" }, aa = {
|
|
3479
3568
|
class: "sort-indicator",
|
|
3480
3569
|
"aria-hidden": "true"
|
|
3481
|
-
},
|
|
3570
|
+
}, oa = ["aria-label", "onClick"], sa = {
|
|
3482
3571
|
key: 1,
|
|
3483
3572
|
class: "g-sort-builder-empty"
|
|
3484
|
-
},
|
|
3573
|
+
}, ca = {
|
|
3485
3574
|
key: 2,
|
|
3486
3575
|
class: "g-sort-builder-add"
|
|
3487
|
-
},
|
|
3576
|
+
}, la = { class: "g-sort-builder-add-list" }, ua = { class: "g-sort-builder-add-name" }, da = { class: "g-sort-builder-add-actions" }, fa = ["aria-label", "onClick"], pa = ["aria-label", "onClick"], ma = {
|
|
3488
3577
|
class: "sort-indicator",
|
|
3489
3578
|
"aria-hidden": "true"
|
|
3490
|
-
},
|
|
3579
|
+
}, ha = {
|
|
3491
3580
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3492
3581
|
viewBox: "0 0 640 640",
|
|
3493
3582
|
height: "1.25em",
|
|
3494
3583
|
style: { transform: "rotate(180deg)" }
|
|
3495
|
-
},
|
|
3584
|
+
}, ga = {
|
|
3496
3585
|
key: 1,
|
|
3497
3586
|
class: "g-column-visibility-wrap"
|
|
3498
|
-
},
|
|
3587
|
+
}, _a = {
|
|
3499
3588
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3500
3589
|
viewBox: "0 0 640 640",
|
|
3501
3590
|
height: "1.5em",
|
|
3502
3591
|
style: { transform: "rotate(90deg)" },
|
|
3503
3592
|
"aria-hidden": "true"
|
|
3504
|
-
},
|
|
3593
|
+
}, va = ["aria-labelledby"], ya = { class: "g-column-visibility-header" }, ba = ["id"], xa = { class: "g-column-visibility-legend-action" }, Sa = { class: "g-column-visibility-list" }, Ca = ["checked", "onChange"], wa = {
|
|
3505
3594
|
key: 2,
|
|
3506
3595
|
class: "g-table-custom-controls"
|
|
3507
|
-
},
|
|
3596
|
+
}, Ta = { class: "g-clear-filters-wrap" }, Ea = {
|
|
3508
3597
|
key: 0,
|
|
3509
3598
|
class: "pagination"
|
|
3510
|
-
},
|
|
3599
|
+
}, Da = { class: "g-table-controls-right" }, Oa = { class: "g-result-count" }, ka = ["aria-rowcount"], Aa = { class: "g-visually-hidden" }, ja = { key: 0 }, Ma = ["data-column-key"], Na = { class: "g-table-head" }, Pa = { "aria-rowindex": "1" }, Fa = {
|
|
3511
3600
|
key: 0,
|
|
3512
3601
|
scope: "col",
|
|
3513
3602
|
class: "g-th g-th-checkbox"
|
|
3514
|
-
},
|
|
3603
|
+
}, Ia = [
|
|
3515
3604
|
"checked",
|
|
3516
3605
|
"indeterminate",
|
|
3517
3606
|
"aria-label"
|
|
3518
|
-
],
|
|
3607
|
+
], La = ["id", "aria-sort"], Ra = { class: "th-inner" }, za = ["aria-describedby", "onClick"], Ba = {
|
|
3519
3608
|
key: 0,
|
|
3520
3609
|
class: "sort-indicator",
|
|
3521
3610
|
"aria-hidden": "true"
|
|
3522
|
-
},
|
|
3611
|
+
}, Va = {
|
|
3523
3612
|
key: 1,
|
|
3524
3613
|
class: "g-column-head"
|
|
3525
|
-
},
|
|
3614
|
+
}, Ha = [
|
|
3526
3615
|
"onClick",
|
|
3527
3616
|
"aria-describedby",
|
|
3528
3617
|
"aria-expanded"
|
|
3529
|
-
],
|
|
3618
|
+
], Ua = {
|
|
3530
3619
|
key: 1,
|
|
3531
3620
|
class: "g-filter-search",
|
|
3532
3621
|
role: "search"
|
|
3533
|
-
},
|
|
3622
|
+
}, Wa = [
|
|
3534
3623
|
"value",
|
|
3535
3624
|
"onInput",
|
|
3536
3625
|
"placeholder",
|
|
3537
3626
|
"aria-label"
|
|
3538
|
-
],
|
|
3627
|
+
], Ga = { key: 2 }, Ka = { class: "g-filter-toggle" }, qa = [
|
|
3539
3628
|
"checked",
|
|
3540
3629
|
"onChange",
|
|
3541
3630
|
"id",
|
|
3542
3631
|
"aria-describedby"
|
|
3543
|
-
],
|
|
3632
|
+
], Ja = ["for"], Ya = ["id"], Xa = {
|
|
3544
3633
|
key: 4,
|
|
3545
3634
|
class: "g-multi-select"
|
|
3546
|
-
},
|
|
3635
|
+
}, Za = [
|
|
3547
3636
|
"data-column-key",
|
|
3548
3637
|
"aria-label",
|
|
3549
3638
|
"aria-valuemax",
|
|
@@ -3551,10 +3640,10 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
3551
3640
|
"aria-valuetext",
|
|
3552
3641
|
"onKeydown",
|
|
3553
3642
|
"onPointerdown"
|
|
3554
|
-
],
|
|
3643
|
+
], Qa = { key: 0 }, $a = { "aria-rowindex": "2" }, eo = ["colspan"], to = { hidden: "" }, no = ["id"], ro = ["id"], io = ["id"], ao = {
|
|
3555
3644
|
key: 1,
|
|
3556
3645
|
class: "g-bulk-actions-toolbar"
|
|
3557
|
-
},
|
|
3646
|
+
}, oo = { class: "g-selected-count" }, so = { class: "g-bulk-actions" }, co = /* @__PURE__ */ u({
|
|
3558
3647
|
__name: "GTable",
|
|
3559
3648
|
props: /*@__PURE__*/ m({
|
|
3560
3649
|
label: {},
|
|
@@ -3611,7 +3700,7 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
3611
3700
|
"update:selectedRows"
|
|
3612
3701
|
]),
|
|
3613
3702
|
setup(t, { emit: n }) {
|
|
3614
|
-
let u = V(t, "sort"), f = V(t, "filter"), p = V(t, "columnState"), m = V(t, "selectedRows"), h = t, y = n, { isFiltered: S, clearFilters: C } = h.filtering ??
|
|
3703
|
+
let u = V(t, "sort"), f = V(t, "filter"), p = V(t, "columnState"), m = V(t, "selectedRows"), h = t, y = n, { isFiltered: S, clearFilters: C } = h.filtering ?? Ji({}), T = r(() => h.data.map((e) => e.key)), E = r(() => m.value.filter((e) => T.value.includes(e))), D = r(() => !h.bulkSelectionEnabled || h.data.length === 0 ? !1 : E.value.length === T.value.length), j = r(() => !h.bulkSelectionEnabled || h.data.length === 0 ? !1 : E.value.length > 0 && E.value.length < T.value.length), M = O(null);
|
|
3615
3704
|
function N() {
|
|
3616
3705
|
if (D.value) m.value = m.value.filter((e) => !T.value.includes(e));
|
|
3617
3706
|
else {
|
|
@@ -3652,50 +3741,50 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
3652
3741
|
function W(e) {
|
|
3653
3742
|
e !== void 0 && y("update:pageSize", e);
|
|
3654
3743
|
}
|
|
3655
|
-
let G = B(), te = d(), ne = O(null),
|
|
3656
|
-
|
|
3744
|
+
let G = B(), te = d(), ne = O(null), J = O(null), Y = O(null), X = O(null), re = O(null), ie = O(0);
|
|
3745
|
+
ue(re, (e) => {
|
|
3657
3746
|
let t = e[0];
|
|
3658
|
-
|
|
3747
|
+
ie.value = t?.borderBoxSize?.[0]?.blockSize ?? t?.target.getBoundingClientRect().height ?? 0;
|
|
3659
3748
|
});
|
|
3660
|
-
let
|
|
3661
|
-
function
|
|
3749
|
+
let Z = O(null), ae = `${G}-table`;
|
|
3750
|
+
function oe(e) {
|
|
3662
3751
|
let t = /* @__PURE__ */ new Set();
|
|
3663
3752
|
return e.filter((e) => !e?.key || t.has(String(e.key)) ? !1 : (t.add(String(e.key)), e.order === 1 || e.order === -1));
|
|
3664
3753
|
}
|
|
3665
|
-
function
|
|
3754
|
+
function se(e, t) {
|
|
3666
3755
|
return {
|
|
3667
3756
|
key: e,
|
|
3668
3757
|
order: t
|
|
3669
3758
|
};
|
|
3670
3759
|
}
|
|
3671
|
-
let
|
|
3672
|
-
function
|
|
3673
|
-
u.value =
|
|
3760
|
+
let Q = r(() => oe(u.value));
|
|
3761
|
+
function ce(e) {
|
|
3762
|
+
u.value = oe(e);
|
|
3674
3763
|
}
|
|
3675
|
-
let
|
|
3676
|
-
let e = new Set(
|
|
3677
|
-
return
|
|
3764
|
+
let le = r(() => h.columns.filter((e) => e.sortable)), de = r(() => le.value.length > 1), fe = r(() => {
|
|
3765
|
+
let e = new Set(Q.value.map((e) => String(e.key)));
|
|
3766
|
+
return le.value.filter((t) => !e.has(String(t.key)));
|
|
3678
3767
|
});
|
|
3679
|
-
function
|
|
3680
|
-
return
|
|
3768
|
+
function pe(e) {
|
|
3769
|
+
return Q.value.findIndex((t) => t.key === e);
|
|
3681
3770
|
}
|
|
3682
3771
|
function me(e) {
|
|
3683
|
-
return
|
|
3772
|
+
return Q.value.find((t) => t.key === e);
|
|
3684
3773
|
}
|
|
3685
3774
|
function he(e) {
|
|
3686
3775
|
return h.columns.find((t) => t.key === e)?.label || String(e);
|
|
3687
3776
|
}
|
|
3688
3777
|
function ge(e) {
|
|
3689
|
-
let t =
|
|
3690
|
-
return t === -1 ? "none" : t > 0 ? "other" :
|
|
3778
|
+
let t = pe(e);
|
|
3779
|
+
return t === -1 ? "none" : t > 0 ? "other" : Q.value[0]?.order === 1 ? "ascending" : "descending";
|
|
3691
3780
|
}
|
|
3692
3781
|
function _e(e) {
|
|
3693
|
-
let t =
|
|
3782
|
+
let t = pe(e);
|
|
3694
3783
|
if (t === -1) return "Sortable, not sorted";
|
|
3695
|
-
let n =
|
|
3696
|
-
return
|
|
3784
|
+
let n = Q.value[t].order === 1 ? "ascending" : "descending";
|
|
3785
|
+
return Q.value.length > 1 ? `Sorted ${n}, priority ${t + 1}` : `Sorted ${n}`;
|
|
3697
3786
|
}
|
|
3698
|
-
let ve = r(() =>
|
|
3787
|
+
let ve = r(() => Q.value.length === 0 ? "" : `sorted by ${Q.value.map((e) => `${he(e.key)} ${e.order === 1 ? "ascending" : "descending"}`).join(", then ")}`), ye = r(() => {
|
|
3699
3788
|
let e = h.columns.filter((e) => ot(e));
|
|
3700
3789
|
return e.length === 0 ? "" : `filtered by ${e.map((e) => e.label).join(", ")}`;
|
|
3701
3790
|
});
|
|
@@ -3703,20 +3792,20 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
3703
3792
|
return e === 1 ? "Ascending" : "Descending";
|
|
3704
3793
|
}
|
|
3705
3794
|
function xe(e) {
|
|
3706
|
-
let t =
|
|
3707
|
-
return t ? t.order === 1 ? [
|
|
3795
|
+
let t = Q.value[0]?.key === e ? Q.value[0] : void 0;
|
|
3796
|
+
return t ? t.order === 1 ? [se(e, -1)] : [] : [se(e, 1)];
|
|
3708
3797
|
}
|
|
3709
3798
|
function Se(e) {
|
|
3710
|
-
let t = [...
|
|
3711
|
-
return n === -1 ? (t.push(
|
|
3799
|
+
let t = [...Q.value], n = t.findIndex((t) => t.key === e);
|
|
3800
|
+
return n === -1 ? (t.push(se(e, 1)), t) : t[n].order === 1 ? (t[n] = se(e, -1), t) : (t.splice(n, 1), t);
|
|
3712
3801
|
}
|
|
3713
3802
|
function Ce(e, t = !1) {
|
|
3714
3803
|
if (!e.sortable) return;
|
|
3715
3804
|
let n = e.key;
|
|
3716
|
-
|
|
3805
|
+
ce(t ? Se(n) : xe(n));
|
|
3717
3806
|
}
|
|
3718
3807
|
function we(e, t) {
|
|
3719
|
-
|
|
3808
|
+
ce([...Q.value, se(e, t)]), g(() => {
|
|
3720
3809
|
let t = ne.value;
|
|
3721
3810
|
t && (t.querySelector(`[data-sort-row-key="${String(e)}"]`) ?? t)?.focus();
|
|
3722
3811
|
}).catch((e) => {
|
|
@@ -3724,13 +3813,13 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
3724
3813
|
});
|
|
3725
3814
|
}
|
|
3726
3815
|
function Te(e) {
|
|
3727
|
-
|
|
3816
|
+
ce(Q.value.map((t) => t.key === e ? se(t.key, t.order === 1 ? -1 : 1) : t));
|
|
3728
3817
|
}
|
|
3729
3818
|
function Ee(e) {
|
|
3730
|
-
|
|
3819
|
+
ce(Q.value.filter((t) => t.key !== e));
|
|
3731
3820
|
}
|
|
3732
3821
|
function De() {
|
|
3733
|
-
|
|
3822
|
+
ce([]);
|
|
3734
3823
|
}
|
|
3735
3824
|
function Oe(e) {
|
|
3736
3825
|
return p.value[e] ?? {};
|
|
@@ -3762,7 +3851,7 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
3762
3851
|
return je(e) ?? Ne(e);
|
|
3763
3852
|
}
|
|
3764
3853
|
function Fe(e) {
|
|
3765
|
-
let t = Pe(e), n =
|
|
3854
|
+
let t = Pe(e), n = Y.value?.getBoundingClientRect().width ?? J.value?.getBoundingClientRect().width ?? t;
|
|
3766
3855
|
return Ae(Math.max(t, n));
|
|
3767
3856
|
}
|
|
3768
3857
|
function Ie(e, t) {
|
|
@@ -3772,18 +3861,18 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
3772
3861
|
Ie(e, Pe(e) + t);
|
|
3773
3862
|
}
|
|
3774
3863
|
function Re() {
|
|
3775
|
-
|
|
3864
|
+
Z.value = null, window.removeEventListener("pointermove", ze), window.removeEventListener("pointerup", Re), window.removeEventListener("pointercancel", Re);
|
|
3776
3865
|
}
|
|
3777
3866
|
function ze(e) {
|
|
3778
|
-
if (!
|
|
3779
|
-
let t =
|
|
3780
|
-
Ie(
|
|
3867
|
+
if (!Z.value) return;
|
|
3868
|
+
let t = Z.value.startWidth + (e.clientX - Z.value.startX);
|
|
3869
|
+
Ie(Z.value.key, t);
|
|
3781
3870
|
}
|
|
3782
3871
|
function Be(e, t) {
|
|
3783
3872
|
if (!h.resizableColumns) return;
|
|
3784
3873
|
e.preventDefault(), e.stopPropagation();
|
|
3785
3874
|
let n = Pe(t);
|
|
3786
|
-
Ie(t, n),
|
|
3875
|
+
Ie(t, n), Z.value = {
|
|
3787
3876
|
key: t,
|
|
3788
3877
|
startX: e.clientX,
|
|
3789
3878
|
startWidth: n
|
|
@@ -3840,18 +3929,18 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
3840
3929
|
}
|
|
3841
3930
|
}), { ...p.value });
|
|
3842
3931
|
}
|
|
3843
|
-
let tt = r(() => h.pagination && typeof h.pageSize == "number"), nt = r(() => !!(
|
|
3932
|
+
let tt = r(() => h.pagination && typeof h.pageSize == "number"), nt = r(() => !!(de.value || S.value || tt.value || Ye.value || Xe.value));
|
|
3844
3933
|
function rt() {
|
|
3845
3934
|
return f.value;
|
|
3846
3935
|
}
|
|
3847
3936
|
function it(e) {
|
|
3848
|
-
if (e.filter) return
|
|
3937
|
+
if (e.filter) return kr(e.filter, rt()[Cr(e)]);
|
|
3849
3938
|
}
|
|
3850
3939
|
function at(e, t) {
|
|
3851
|
-
e.filter && (rt()[
|
|
3940
|
+
e.filter && (rt()[Cr(e)] = Ar(e.filter, t));
|
|
3852
3941
|
}
|
|
3853
3942
|
function ot(e) {
|
|
3854
|
-
return e.filter ?
|
|
3943
|
+
return e.filter ? jr(e.filter, rt()[Cr(e)]) : !1;
|
|
3855
3944
|
}
|
|
3856
3945
|
function st(e) {
|
|
3857
3946
|
return e.filter?.type !== "select" && e.filter?.type !== "multi-select" ? [] : e.filter.options;
|
|
@@ -3897,21 +3986,21 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
3897
3986
|
for (let e of h.columns) e.editable && e.display && console.warn(`GTable: Column "${String(e.key)}" has both 'editable' and 'display' configured. 'display' will be ignored.`);
|
|
3898
3987
|
}), (n, r) => (w(), o("div", {
|
|
3899
3988
|
ref_key: "outerWrapRef",
|
|
3900
|
-
ref:
|
|
3989
|
+
ref: Y,
|
|
3901
3990
|
class: "g-table-outer-wrap",
|
|
3902
|
-
style: v({ "--g-table-controls-height": `${nt.value ?
|
|
3903
|
-
}, [s("div",
|
|
3991
|
+
style: v({ "--g-table-controls-height": `${nt.value ? ie.value : 0}px` })
|
|
3992
|
+
}, [s("div", Yi, [
|
|
3904
3993
|
nt.value ? (w(), o("div", {
|
|
3905
3994
|
key: 0,
|
|
3906
3995
|
ref_key: "controlsRef",
|
|
3907
|
-
ref:
|
|
3996
|
+
ref: re,
|
|
3908
3997
|
class: "g-table-controls"
|
|
3909
3998
|
}, [
|
|
3910
|
-
s("div",
|
|
3911
|
-
|
|
3999
|
+
s("div", Xi, [
|
|
4000
|
+
de.value ? (w(), o("div", Zi, [l(ut, null, {
|
|
3912
4001
|
trigger: K(({ toggle: e }) => [l($, {
|
|
3913
4002
|
size: "small",
|
|
3914
|
-
class: _(["g-sort-builder-trigger", { "g-sort-builder-trigger--active":
|
|
4003
|
+
class: _(["g-sort-builder-trigger", { "g-sort-builder-trigger--active": Q.value.length > 0 }]),
|
|
3915
4004
|
"aria-label": "Choose sort order",
|
|
3916
4005
|
onClick: e
|
|
3917
4006
|
}, {
|
|
@@ -3924,7 +4013,7 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
3924
4013
|
}, [s("path", {
|
|
3925
4014
|
fill: "currentColor",
|
|
3926
4015
|
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"
|
|
3927
|
-
})], -1),
|
|
4016
|
+
})], -1), Q.value.length ? (w(), o("span", Qi, P(Q.value.length), 1)) : a("", !0)]),
|
|
3928
4017
|
_: 1
|
|
3929
4018
|
}, 8, ["class", "onClick"])]),
|
|
3930
4019
|
default: K(() => [s("fieldset", {
|
|
@@ -3936,21 +4025,21 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
3936
4025
|
}, [
|
|
3937
4026
|
r[8] ||= s("legend", { class: "g-sort-builder-legend" }, " Sort order ", -1),
|
|
3938
4027
|
r[9] ||= s("p", { class: "g-sort-builder-help" }, " Click a column header to change the primary sort. Use Shift-click as a shortcut to add or update secondary sorts. ", -1),
|
|
3939
|
-
|
|
4028
|
+
Q.value.length ? (w(), o("ol", $i, [(w(!0), o(e, null, k(Q.value, (e, t) => (w(), o("li", {
|
|
3940
4029
|
key: e.key,
|
|
3941
4030
|
class: "g-sort-builder-rule",
|
|
3942
4031
|
tabindex: "-1",
|
|
3943
4032
|
"data-sort-row-key": String(e.key),
|
|
3944
4033
|
"aria-label": `${he(e.key)} ${be(e.order)} sort, priority ${t + 1}`
|
|
3945
4034
|
}, [
|
|
3946
|
-
s("span",
|
|
3947
|
-
s("span",
|
|
4035
|
+
s("span", ta, P(t + 1), 1),
|
|
4036
|
+
s("span", na, P(he(e.key)), 1),
|
|
3948
4037
|
s("button", {
|
|
3949
4038
|
type: "button",
|
|
3950
4039
|
class: "g-sort-builder-direction",
|
|
3951
4040
|
"aria-label": `Toggle ${he(e.key)} sort direction`,
|
|
3952
4041
|
onClick: (t) => Te(e.key)
|
|
3953
|
-
}, [s("span",
|
|
4042
|
+
}, [s("span", ia, P(be(e.order)), 1), s("span", aa, [(w(), o("svg", {
|
|
3954
4043
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3955
4044
|
viewBox: "0 0 640 640",
|
|
3956
4045
|
height: "1.25em",
|
|
@@ -3958,18 +4047,18 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
3958
4047
|
}, [...r[2] ||= [s("path", {
|
|
3959
4048
|
fill: "currentColor",
|
|
3960
4049
|
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"
|
|
3961
|
-
}, null, -1)]], 4))])], 8,
|
|
4050
|
+
}, null, -1)]], 4))])], 8, ra),
|
|
3962
4051
|
s("button", {
|
|
3963
4052
|
type: "button",
|
|
3964
4053
|
class: "g-sort-builder-remove",
|
|
3965
4054
|
"aria-label": `Remove ${he(e.key)} sort`,
|
|
3966
4055
|
onClick: (t) => Ee(e.key)
|
|
3967
|
-
}, " Remove ", 8,
|
|
3968
|
-
], 8,
|
|
3969
|
-
|
|
4056
|
+
}, " Remove ", 8, oa)
|
|
4057
|
+
], 8, ea))), 128))])) : (w(), o("p", sa, " No active sort rules. ")),
|
|
4058
|
+
fe.value.length ? (w(), o("div", ca, [r[6] ||= s("p", { class: "g-sort-builder-add-label" }, " Add sort column ", -1), s("ul", la, [(w(!0), o(e, null, k(fe.value, (e) => (w(), o("li", {
|
|
3970
4059
|
key: e.key,
|
|
3971
4060
|
class: "g-sort-builder-add-item"
|
|
3972
|
-
}, [s("span",
|
|
4061
|
+
}, [s("span", ua, P(e.label), 1), s("div", da, [s("button", {
|
|
3973
4062
|
type: "button",
|
|
3974
4063
|
class: "g-sort-builder-direction",
|
|
3975
4064
|
"aria-label": `Add ${e.label} ascending sort`,
|
|
@@ -3984,16 +4073,16 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
3984
4073
|
}, [s("path", {
|
|
3985
4074
|
fill: "currentColor",
|
|
3986
4075
|
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"
|
|
3987
|
-
})])], -1)]], 8,
|
|
4076
|
+
})])], -1)]], 8, fa), s("button", {
|
|
3988
4077
|
type: "button",
|
|
3989
4078
|
class: "g-sort-builder-direction",
|
|
3990
4079
|
"aria-label": `Add ${e.label} descending sort`,
|
|
3991
4080
|
onClick: (t) => we(e.key, -1)
|
|
3992
|
-
}, [r[5] ||= s("span", { class: "g-visually-hidden" }, " Add descending sort ", -1), s("span",
|
|
4081
|
+
}, [r[5] ||= s("span", { class: "g-visually-hidden" }, " Add descending sort ", -1), s("span", ma, [(w(), o("svg", ha, [...r[4] ||= [s("path", {
|
|
3993
4082
|
fill: "currentColor",
|
|
3994
4083
|
d: "M300.3 199.2C312.9 188.9 331.4 189.7 343.1 201.4L471.1 329.4C480.3 338.6 483 352.3 478 364.3C473 376.3 461.4 384 448.5 384L192.5 384C179.6 384 167.9 376.2 162.9 364.2C157.9 352.2 160.7 338.5 169.9 329.4L297.9 201.4L300.3 199.2z"
|
|
3995
|
-
}, null, -1)]]))])], 8,
|
|
3996
|
-
|
|
4084
|
+
}, null, -1)]]))])], 8, pa)])]))), 128))])])) : a("", !0),
|
|
4085
|
+
Q.value.length ? (w(), i($, {
|
|
3997
4086
|
key: 3,
|
|
3998
4087
|
outlined: "",
|
|
3999
4088
|
size: "small",
|
|
@@ -4006,14 +4095,14 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4006
4095
|
], 512)]),
|
|
4007
4096
|
_: 1
|
|
4008
4097
|
})])) : a("", !0),
|
|
4009
|
-
Ye.value ? (w(), o("div",
|
|
4098
|
+
Ye.value ? (w(), o("div", ga, [l(ut, null, {
|
|
4010
4099
|
trigger: K(({ toggle: e }) => [l($, {
|
|
4011
4100
|
size: "small",
|
|
4012
4101
|
class: _(["g-column-visibility-trigger", { "g-column-visibility-trigger--active": Je.value }]),
|
|
4013
4102
|
"aria-label": "Choose visible columns",
|
|
4014
4103
|
onClick: e
|
|
4015
4104
|
}, {
|
|
4016
|
-
default: K(() => [(w(), o("svg",
|
|
4105
|
+
default: K(() => [(w(), o("svg", _a, [...r[10] ||= [s("path", {
|
|
4017
4106
|
fill: "currentColor",
|
|
4018
4107
|
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"
|
|
4019
4108
|
}, null, -1)]]))]),
|
|
@@ -4022,10 +4111,10 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4022
4111
|
default: K(() => [s("fieldset", {
|
|
4023
4112
|
class: "g-column-visibility-popover",
|
|
4024
4113
|
"aria-labelledby": `${R(G)}-column-visibility-heading`
|
|
4025
|
-
}, [s("div",
|
|
4114
|
+
}, [s("div", ya, [s("span", {
|
|
4026
4115
|
id: `${R(G)}-column-visibility-heading`,
|
|
4027
4116
|
class: "g-column-visibility-heading"
|
|
4028
|
-
}, " Shown columns ", 8,
|
|
4117
|
+
}, " Shown columns ", 8, ba), s("span", xa, [l($, {
|
|
4029
4118
|
text: "",
|
|
4030
4119
|
size: "small",
|
|
4031
4120
|
class: _(["g-column-visibility-show-all", { "g-column-visibility-show-all--hidden": !Je.value }]),
|
|
@@ -4033,18 +4122,18 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4033
4122
|
}, {
|
|
4034
4123
|
default: K(() => [...r[11] ||= [c(" Show All ", -1)]]),
|
|
4035
4124
|
_: 1
|
|
4036
|
-
}, 8, ["class"])])]), s("div",
|
|
4125
|
+
}, 8, ["class"])])]), s("div", Sa, [(w(!0), o(e, null, k(t.columns, (e) => (w(), o("label", {
|
|
4037
4126
|
key: e.key,
|
|
4038
4127
|
class: "g-column-visibility-option"
|
|
4039
4128
|
}, [s("input", {
|
|
4040
4129
|
checked: Qe(e),
|
|
4041
4130
|
type: "checkbox",
|
|
4042
4131
|
onChange: (t) => $e(e, t.target.checked)
|
|
4043
|
-
}, null, 40,
|
|
4132
|
+
}, null, 40, Ca), s("span", null, P(e.label), 1)]))), 128))])], 8, va)]),
|
|
4044
4133
|
_: 1
|
|
4045
4134
|
})])) : a("", !0),
|
|
4046
|
-
Xe.value ? (w(), o("div",
|
|
4047
|
-
s("div",
|
|
4135
|
+
Xe.value ? (w(), o("div", wa, [A(n.$slots, "controls")])) : a("", !0),
|
|
4136
|
+
s("div", Ta, [R(S) ? (w(), i($, {
|
|
4048
4137
|
key: 0,
|
|
4049
4138
|
outlined: "",
|
|
4050
4139
|
size: "small",
|
|
@@ -4064,7 +4153,7 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4064
4153
|
_: 1
|
|
4065
4154
|
}, 8, ["onClick"])) : a("", !0)])
|
|
4066
4155
|
]),
|
|
4067
|
-
tt.value ? (w(), o("div",
|
|
4156
|
+
tt.value ? (w(), o("div", Ea, [l(ki, {
|
|
4068
4157
|
start: t.startIndex,
|
|
4069
4158
|
"page-size": t.pageSize,
|
|
4070
4159
|
"page-sizes": t.pageSizes,
|
|
@@ -4077,54 +4166,54 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4077
4166
|
"page-sizes",
|
|
4078
4167
|
"total"
|
|
4079
4168
|
])])) : a("", !0),
|
|
4080
|
-
s("div",
|
|
4169
|
+
s("div", Da, [s("span", Oa, P(Ze.value) + " results", 1), A(n.$slots, "right-controls")])
|
|
4081
4170
|
], 512)) : a("", !0),
|
|
4082
4171
|
s("div", {
|
|
4083
4172
|
ref_key: "tableWrapRef",
|
|
4084
|
-
ref:
|
|
4173
|
+
ref: X,
|
|
4085
4174
|
class: "g-table-table-wrap"
|
|
4086
4175
|
}, [s("table", {
|
|
4087
|
-
id:
|
|
4176
|
+
id: ae,
|
|
4088
4177
|
class: _(["g-table", { "g-table--resizable": t.resizableColumns }]),
|
|
4089
4178
|
ref_key: "tableRef",
|
|
4090
|
-
ref:
|
|
4179
|
+
ref: J,
|
|
4091
4180
|
"aria-rowcount": Ze.value
|
|
4092
4181
|
}, [
|
|
4093
|
-
s("caption",
|
|
4182
|
+
s("caption", Aa, P([
|
|
4094
4183
|
t.label,
|
|
4095
4184
|
ve.value,
|
|
4096
4185
|
ye.value
|
|
4097
4186
|
].filter(Boolean).join(", ")), 1),
|
|
4098
|
-
s("colgroup", null, [t.bulkSelectionEnabled ? (w(), o("col",
|
|
4187
|
+
s("colgroup", null, [t.bulkSelectionEnabled ? (w(), o("col", ja)) : a("", !0), (w(!0), o(e, null, k(Ke.value, (e) => (w(), o("col", {
|
|
4099
4188
|
key: e.key,
|
|
4100
4189
|
"data-column-key": String(e.key),
|
|
4101
4190
|
style: v(He(e))
|
|
4102
|
-
}, null, 12,
|
|
4103
|
-
s("thead",
|
|
4191
|
+
}, null, 12, Ma))), 128))]),
|
|
4192
|
+
s("thead", Na, [s("tr", Pa, [t.bulkSelectionEnabled ? (w(), o("th", Fa, [s("input", {
|
|
4104
4193
|
type: "checkbox",
|
|
4105
4194
|
checked: D.value,
|
|
4106
4195
|
indeterminate: j.value,
|
|
4107
4196
|
onChange: N,
|
|
4108
4197
|
"aria-label": D.value ? "Deselect all rows" : "Select all rows",
|
|
4109
4198
|
class: "g-bulk-select-checkbox"
|
|
4110
|
-
}, null, 40,
|
|
4199
|
+
}, null, 40, Ia)])) : a("", !0), (w(!0), o(e, null, k(Ke.value, (e) => (w(), o("th", {
|
|
4111
4200
|
key: e.key,
|
|
4112
4201
|
id: `${R(G)}-th-${String(e.key)}`,
|
|
4113
4202
|
"aria-sort": ge(e.key),
|
|
4114
4203
|
class: _([
|
|
4115
4204
|
"g-th",
|
|
4116
4205
|
{ "g-th--resizable": t.resizableColumns },
|
|
4117
|
-
{ sorted:
|
|
4206
|
+
{ sorted: pe(e.key) !== -1 },
|
|
4118
4207
|
{ filtered: ot(e) }
|
|
4119
4208
|
]),
|
|
4120
4209
|
scope: "col"
|
|
4121
|
-
}, [s("div",
|
|
4210
|
+
}, [s("div", Ra, [e.sortable ? (w(), o("button", {
|
|
4122
4211
|
key: 0,
|
|
4123
4212
|
type: "button",
|
|
4124
4213
|
class: "g-column-head",
|
|
4125
4214
|
"aria-describedby": `${R(G)}-sort-desc-${String(e.key)}`,
|
|
4126
4215
|
onClick: (t) => Ce(e, t.shiftKey)
|
|
4127
|
-
}, [c(P(e.label) + " ", 1),
|
|
4216
|
+
}, [c(P(e.label) + " ", 1), pe(e.key) === -1 ? a("", !0) : (w(), o("span", Ba, [(w(), o("svg", {
|
|
4128
4217
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4129
4218
|
viewBox: "0 0 640 640",
|
|
4130
4219
|
height: "1.5em",
|
|
@@ -4132,7 +4221,7 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4132
4221
|
}, [...r[13] ||= [s("path", {
|
|
4133
4222
|
fill: "currentColor",
|
|
4134
4223
|
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"
|
|
4135
|
-
}, null, -1)]], 4))]))], 8,
|
|
4224
|
+
}, null, -1)]], 4))]))], 8, za)) : (w(), o("span", Va, P(e.label), 1)), e.filter ? (w(), i(ut, {
|
|
4136
4225
|
key: 2,
|
|
4137
4226
|
"aria-labelledby": `${R(G)}-filter-label-${String(e.key)}`
|
|
4138
4227
|
}, {
|
|
@@ -4151,7 +4240,7 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4151
4240
|
}, [s("path", {
|
|
4152
4241
|
fill: "currentColor",
|
|
4153
4242
|
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"
|
|
4154
|
-
})], -1)]], 10,
|
|
4243
|
+
})], -1)]], 10, Ha)]),
|
|
4155
4244
|
default: K(() => [e.filter.type === "select" ? (w(), i(Xt, {
|
|
4156
4245
|
key: 0,
|
|
4157
4246
|
"model-value": pt(e),
|
|
@@ -4167,7 +4256,7 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4167
4256
|
"onUpdate:modelValue",
|
|
4168
4257
|
"options",
|
|
4169
4258
|
"search-description"
|
|
4170
|
-
])) : e.filter.type === "search" ? (w(), o("div",
|
|
4259
|
+
])) : e.filter.type === "search" ? (w(), o("div", Ua, [r[15] ||= s("span", {
|
|
4171
4260
|
class: "g-filter-search-icon",
|
|
4172
4261
|
"aria-hidden": "true"
|
|
4173
4262
|
}, [s("svg", {
|
|
@@ -4184,21 +4273,21 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4184
4273
|
onInput: (t) => at(e, t.target.value),
|
|
4185
4274
|
placeholder: e.filter.placeholder,
|
|
4186
4275
|
"aria-label": `Search ${e.label}`
|
|
4187
|
-
}, null, 40,
|
|
4276
|
+
}, null, 40, Wa)])) : e.filter.type === "toggle" ? (w(), o("div", Ga, [s("div", Ka, [
|
|
4188
4277
|
s("input", {
|
|
4189
4278
|
type: "checkbox",
|
|
4190
4279
|
checked: it(e) === !0,
|
|
4191
4280
|
onChange: (t) => at(e, t.target.checked),
|
|
4192
4281
|
id: `${R(G)}-filter-${String(e.key)}`,
|
|
4193
4282
|
"aria-describedby": e.filter.description ? `${R(G)}-filter-description-${String(e.key)}` : void 0
|
|
4194
|
-
}, null, 40,
|
|
4195
|
-
s("label", { for: `${R(G)}-filter-${String(e.key)}` }, P(e.filter.label), 9,
|
|
4283
|
+
}, null, 40, qa),
|
|
4284
|
+
s("label", { for: `${R(G)}-filter-${String(e.key)}` }, P(e.filter.label), 9, Ja),
|
|
4196
4285
|
e.filter.description ? (w(), o("span", {
|
|
4197
4286
|
key: 0,
|
|
4198
4287
|
class: "g-filter-description",
|
|
4199
4288
|
id: `${R(G)}-filter-description-${String(e.key)}`
|
|
4200
|
-
}, P(e.filter.description), 9,
|
|
4201
|
-
])])) : e.filter.type === "multi-select" && e.filter.searchable ? (w(), i(
|
|
4289
|
+
}, P(e.filter.description), 9, Ya)) : a("", !0)
|
|
4290
|
+
])])) : e.filter.type === "multi-select" && e.filter.searchable ? (w(), i(Jr, {
|
|
4202
4291
|
key: 3,
|
|
4203
4292
|
"model-value": ht(e),
|
|
4204
4293
|
"onUpdate:modelValue": (t) => gt(e, t),
|
|
@@ -4213,7 +4302,7 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4213
4302
|
"options",
|
|
4214
4303
|
"placeholder",
|
|
4215
4304
|
"search-description"
|
|
4216
|
-
])) : e.filter.type === "multi-select" ? (w(), o("div",
|
|
4305
|
+
])) : e.filter.type === "multi-select" ? (w(), o("div", Xa, [l(ai, {
|
|
4217
4306
|
"model-value": ht(e),
|
|
4218
4307
|
"onUpdate:modelValue": (t) => gt(e, t),
|
|
4219
4308
|
options: ft(e),
|
|
@@ -4236,11 +4325,11 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4236
4325
|
}, 1032, ["aria-labelledby"])) : a("", !0)]), t.resizableColumns ? (w(), o("div", {
|
|
4237
4326
|
key: 0,
|
|
4238
4327
|
"data-column-key": String(e.key),
|
|
4239
|
-
class: _(["g-column-resize-handle", { "g-column-resize-handle--active":
|
|
4328
|
+
class: _(["g-column-resize-handle", { "g-column-resize-handle--active": Z.value?.key === e.key }]),
|
|
4240
4329
|
role: "separator",
|
|
4241
4330
|
tabindex: "0",
|
|
4242
4331
|
"aria-orientation": "vertical",
|
|
4243
|
-
"aria-controls":
|
|
4332
|
+
"aria-controls": ae,
|
|
4244
4333
|
"aria-label": `Resize ${e.label} column`,
|
|
4245
4334
|
"aria-valuemin": 50,
|
|
4246
4335
|
"aria-valuemax": Fe(e.key),
|
|
@@ -4249,11 +4338,11 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4249
4338
|
onClick: r[0] ||= q(() => {}, ["stop", "prevent"]),
|
|
4250
4339
|
onKeydown: (t) => Ve(t, e.key),
|
|
4251
4340
|
onPointerdown: (t) => Be(t, e.key)
|
|
4252
|
-
}, null, 42,
|
|
4253
|
-
t.data.length === 0 ? (w(), o("tbody",
|
|
4341
|
+
}, null, 42, Za)) : a("", !0)], 10, La))), 128))])]),
|
|
4342
|
+
t.data.length === 0 ? (w(), o("tbody", Qa, [s("tr", $a, [s("td", {
|
|
4254
4343
|
class: "g-table-empty",
|
|
4255
4344
|
colspan: Ke.value.length + +!!t.bulkSelectionEnabled
|
|
4256
|
-
}, [A(n.$slots, "empty")], 8,
|
|
4345
|
+
}, [A(n.$slots, "empty")], 8, eo)])])) : (w(), i(Sr, {
|
|
4257
4346
|
key: 1,
|
|
4258
4347
|
data: t.data,
|
|
4259
4348
|
columns: Ke.value,
|
|
@@ -4282,11 +4371,11 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4282
4371
|
"table-id",
|
|
4283
4372
|
"change-tracker"
|
|
4284
4373
|
]))
|
|
4285
|
-
], 10,
|
|
4374
|
+
], 10, ka), s("div", to, [(w(!0), o(e, null, k(Ke.value, (t) => (w(), o(e, { key: t.key }, [t.sortable ? (w(), o("span", {
|
|
4286
4375
|
key: 0,
|
|
4287
4376
|
id: `${R(G)}-sort-desc-${String(t.key)}`
|
|
4288
|
-
}, P(_e(t.key)), 9,
|
|
4289
|
-
t.bulkSelectionEnabled && m.value.length > 0 ? (w(), o("div",
|
|
4377
|
+
}, P(_e(t.key)), 9, no)) : a("", !0), t.filter ? (w(), o(e, { key: 1 }, [s("span", { id: `${R(G)}-filter-desc-${String(t.key)}` }, P(t.label) + " column" + P(ot(t) ? ", filtered" : ""), 9, ro), s("span", { id: `${R(G)}-filter-label-${String(t.key)}` }, "Filter " + P(t.label) + " column", 9, io)], 64)) : a("", !0)], 64))), 128))])], 512),
|
|
4378
|
+
t.bulkSelectionEnabled && m.value.length > 0 ? (w(), o("div", ao, [s("span", oo, P(m.value.length) + " row" + P(m.value.length === 1 ? "" : "s") + " selected", 1), s("ul", so, [(w(!0), o(e, null, k(t.bulkActions, (e) => (w(), o("li", { key: e.id }, [l($, {
|
|
4290
4379
|
theme: e.theme || "accent",
|
|
4291
4380
|
onClick: (t) => z(e.id),
|
|
4292
4381
|
size: "small"
|
|
@@ -4296,7 +4385,7 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4296
4385
|
}, 1032, ["theme", "onClick"])]))), 128))])])) : a("", !0)
|
|
4297
4386
|
])], 4));
|
|
4298
4387
|
}
|
|
4299
|
-
}),
|
|
4388
|
+
}), lo = ["id"], uo = { class: "g-modal-inner" }, fo = { class: "g-modal-header" }, po = ["id"], mo = ["id"], ho = /* @__PURE__ */ u({
|
|
4300
4389
|
__name: "GModal",
|
|
4301
4390
|
props: {
|
|
4302
4391
|
label: {},
|
|
@@ -4340,12 +4429,12 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4340
4429
|
ref_key: "dialog",
|
|
4341
4430
|
ref: f,
|
|
4342
4431
|
style: { zIndex: R(b) }
|
|
4343
|
-
}), [s("div",
|
|
4432
|
+
}), [s("div", uo, [s("div", fo, [e.hiddenLabel ? a("", !0) : (w(), o("h2", {
|
|
4344
4433
|
key: 0,
|
|
4345
4434
|
id: "modal-label-" + R(m),
|
|
4346
4435
|
class: "g-modal-label",
|
|
4347
4436
|
tabindex: "-1"
|
|
4348
|
-
}, P(e.label), 9,
|
|
4437
|
+
}, P(e.label), 9, po)), s("button", {
|
|
4349
4438
|
class: "g-modal-close",
|
|
4350
4439
|
onClick: T,
|
|
4351
4440
|
"aria-label": "Close"
|
|
@@ -4360,36 +4449,36 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4360
4449
|
})], -1)]])]), s("div", {
|
|
4361
4450
|
id: "modal-description-" + R(m),
|
|
4362
4451
|
class: "g-modal-content"
|
|
4363
|
-
}, [A(r.$slots, "default")], 8,
|
|
4452
|
+
}, [A(r.$slots, "default")], 8, mo)])], 16, lo)]),
|
|
4364
4453
|
_: 3
|
|
4365
4454
|
})]));
|
|
4366
4455
|
}
|
|
4367
|
-
}),
|
|
4456
|
+
}), go = /* @__PURE__ */ u({
|
|
4368
4457
|
__name: "GDetailList",
|
|
4369
4458
|
props: { variant: { default: "grid" } },
|
|
4370
4459
|
setup(e) {
|
|
4371
4460
|
let t = e;
|
|
4372
4461
|
return (e, n) => (w(), o("dl", { class: _(["g-detail-list", `g-detail-list--${t.variant}`]) }, [A(e.$slots, "default")], 2));
|
|
4373
4462
|
}
|
|
4374
|
-
}),
|
|
4463
|
+
}), _o = { class: "g-detail-list-item" }, vo = { class: "g-detail-list-item__label" }, yo = { class: "g-detail-list-item__value" }, bo = /* @__PURE__ */ u({
|
|
4375
4464
|
__name: "GDetailListItem",
|
|
4376
4465
|
props: { label: {} },
|
|
4377
4466
|
setup(e) {
|
|
4378
|
-
return (t, n) => (w(), o("div",
|
|
4467
|
+
return (t, n) => (w(), o("div", _o, [s("dt", vo, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])]), s("dd", yo, [A(t.$slots, "default")])]));
|
|
4379
4468
|
}
|
|
4380
|
-
}),
|
|
4469
|
+
}), xo = {
|
|
4381
4470
|
key: 0,
|
|
4382
4471
|
class: "g-scroll-lock-overlay"
|
|
4383
|
-
},
|
|
4472
|
+
}, So = /* @__PURE__ */ u({
|
|
4384
4473
|
__name: "GOverlay",
|
|
4385
4474
|
setup(e) {
|
|
4386
4475
|
let { hasScrollLock: t } = Xe();
|
|
4387
4476
|
return (e, r) => (w(), i(n, { name: "g-fade" }, {
|
|
4388
|
-
default: K(() => [R(t) ? (w(), o("div",
|
|
4477
|
+
default: K(() => [R(t) ? (w(), o("div", xo)) : a("", !0)]),
|
|
4389
4478
|
_: 1
|
|
4390
4479
|
}));
|
|
4391
4480
|
}
|
|
4392
|
-
}),
|
|
4481
|
+
}), Co = { class: "popover-content" }, wo = { class: "year-dropdown" }, To = { class: "month-selector" }, Eo = /* @__PURE__ */ u({
|
|
4393
4482
|
__name: "GTermSelectorControl",
|
|
4394
4483
|
props: /*@__PURE__*/ m({
|
|
4395
4484
|
termYears: { default: () => ["2026"] },
|
|
@@ -4410,7 +4499,7 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4410
4499
|
emits: ["update:modelValue"],
|
|
4411
4500
|
setup(e) {
|
|
4412
4501
|
let t = V(e, "modelValue");
|
|
4413
|
-
return (n, r) => (w(), o("div",
|
|
4502
|
+
return (n, r) => (w(), o("div", Co, [s("div", wo, [l(Xt, {
|
|
4414
4503
|
modelValue: t.value.year,
|
|
4415
4504
|
"onUpdate:modelValue": r[0] ||= (e) => t.value.year = e,
|
|
4416
4505
|
options: e.termYears,
|
|
@@ -4419,7 +4508,7 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4419
4508
|
"modelValue",
|
|
4420
4509
|
"options",
|
|
4421
4510
|
"label"
|
|
4422
|
-
])]), s("div",
|
|
4511
|
+
])]), s("div", To, [l(Tt, {
|
|
4423
4512
|
modelValue: t.value.name,
|
|
4424
4513
|
"onUpdate:modelValue": r[1] ||= (e) => t.value.name = e,
|
|
4425
4514
|
options: e.termNames,
|
|
@@ -4431,7 +4520,7 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4431
4520
|
"label"
|
|
4432
4521
|
])])]));
|
|
4433
4522
|
}
|
|
4434
|
-
}),
|
|
4523
|
+
}), Do = { class: "g-term-selector" }, Oo = { class: "g-term-label" }, ko = /* @__PURE__ */ u({
|
|
4435
4524
|
__name: "GTermSelector",
|
|
4436
4525
|
props: /*@__PURE__*/ m({
|
|
4437
4526
|
heading: { default: "Period Selection" },
|
|
@@ -4453,7 +4542,7 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4453
4542
|
emits: ["update:modelValue"],
|
|
4454
4543
|
setup(e) {
|
|
4455
4544
|
let t = V(e, "modelValue"), n = `${B()}-heading`;
|
|
4456
|
-
return (r, i) => (w(), o("div",
|
|
4545
|
+
return (r, i) => (w(), o("div", Do, [l(ut, { "aria-labelledby": n }, {
|
|
4457
4546
|
trigger: K(({ toggle: e, open: n, popoverId: r }) => [l($, {
|
|
4458
4547
|
class: "g-term-selector-button",
|
|
4459
4548
|
theme: "none",
|
|
@@ -4469,7 +4558,7 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4469
4558
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4470
4559
|
viewBox: "0 0 640 640"
|
|
4471
4560
|
}, [s("path", { d: "M224 64C206.3 64 192 78.3 192 96L192 128L160 128C124.7 128 96 156.7 96 192L96 240L544 240L544 192C544 156.7 515.3 128 480 128L448 128L448 96C448 78.3 433.7 64 416 64C398.3 64 384 78.3 384 96L384 128L256 128L256 96C256 78.3 241.7 64 224 64zM96 288L96 480C96 515.3 124.7 544 160 544L480 544C515.3 544 544 515.3 544 480L544 288L96 288z" })])], -1),
|
|
4472
|
-
s("span",
|
|
4561
|
+
s("span", Oo, P(t.value?.name) + " " + P(t.value?.year), 1),
|
|
4473
4562
|
i[2] ||= s("span", { class: "g-caret" }, [s("svg", {
|
|
4474
4563
|
role: "none",
|
|
4475
4564
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4486,18 +4575,18 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4486
4575
|
id: n,
|
|
4487
4576
|
class: "g-popover-title",
|
|
4488
4577
|
tabindex: "-1"
|
|
4489
|
-
}, P(e.heading), 1), l(
|
|
4578
|
+
}, P(e.heading), 1), l(Eo, h(r.$props, {
|
|
4490
4579
|
modelValue: t.value,
|
|
4491
4580
|
"onUpdate:modelValue": i[0] ||= (e) => t.value = e
|
|
4492
4581
|
}), null, 16, ["modelValue"])]),
|
|
4493
4582
|
_: 1
|
|
4494
4583
|
})]));
|
|
4495
4584
|
}
|
|
4496
|
-
}),
|
|
4585
|
+
}), Ao = { class: "g-user-menu" }, jo = [
|
|
4497
4586
|
"aria-label",
|
|
4498
4587
|
"aria-expanded",
|
|
4499
4588
|
"onClick"
|
|
4500
|
-
],
|
|
4589
|
+
], Mo = { class: "g-user-menu__popover" }, No = { class: "g-user-menu__list" }, Po = /* @__PURE__ */ u({
|
|
4501
4590
|
__name: "GUserMenu",
|
|
4502
4591
|
props: {
|
|
4503
4592
|
initials: {},
|
|
@@ -4512,7 +4601,7 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4512
4601
|
e.target?.closest("a") && (r.value = !1);
|
|
4513
4602
|
}
|
|
4514
4603
|
let u = H();
|
|
4515
|
-
return (d, f) => (w(), o("div",
|
|
4604
|
+
return (d, f) => (w(), o("div", Ao, [l(ut, {
|
|
4516
4605
|
modelValue: r.value,
|
|
4517
4606
|
"onUpdate:modelValue": f[0] ||= (e) => r.value = e,
|
|
4518
4607
|
minimal: ""
|
|
@@ -4524,8 +4613,8 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4524
4613
|
"aria-expanded": r.value,
|
|
4525
4614
|
"aria-haspopup": "menu",
|
|
4526
4615
|
onClick: e
|
|
4527
|
-
}, P(t.initials), 13,
|
|
4528
|
-
default: K(() => [s("div",
|
|
4616
|
+
}, P(t.initials), 13, jo)]),
|
|
4617
|
+
default: K(() => [s("div", Mo, [s("h2", {
|
|
4529
4618
|
id: n,
|
|
4530
4619
|
ref_key: "emailHeading",
|
|
4531
4620
|
ref: a,
|
|
@@ -4535,11 +4624,11 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4535
4624
|
class: "g-user-menu__nav",
|
|
4536
4625
|
"aria-labelledby": n,
|
|
4537
4626
|
onClick: c
|
|
4538
|
-
}, [s("ul",
|
|
4627
|
+
}, [s("ul", No, [(w(!0), o(e, null, k(u.default(), (e, t) => (w(), o("li", { key: t }, [(w(), i(j(e)))]))), 128))])])])]),
|
|
4539
4628
|
_: 1
|
|
4540
4629
|
}, 8, ["modelValue"])]));
|
|
4541
4630
|
}
|
|
4542
|
-
}),
|
|
4631
|
+
}), Fo = /* @__PURE__ */ u({
|
|
4543
4632
|
__name: "GCurrencyInput",
|
|
4544
4633
|
props: /*@__PURE__*/ m({
|
|
4545
4634
|
label: { default: void 0 },
|
|
@@ -4590,7 +4679,7 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4590
4679
|
"form-key"
|
|
4591
4680
|
]));
|
|
4592
4681
|
}
|
|
4593
|
-
}),
|
|
4682
|
+
}), Io = /* @__PURE__ */ u({
|
|
4594
4683
|
__name: "GEmailInput",
|
|
4595
4684
|
props: /*@__PURE__*/ m({
|
|
4596
4685
|
label: { default: void 0 },
|
|
@@ -4635,13 +4724,13 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4635
4724
|
"instructions"
|
|
4636
4725
|
]));
|
|
4637
4726
|
}
|
|
4638
|
-
}),
|
|
4727
|
+
}), Lo = ["for"], Ro = {
|
|
4639
4728
|
key: 0,
|
|
4640
4729
|
class: "g-file-input-required"
|
|
4641
|
-
},
|
|
4730
|
+
}, zo = {
|
|
4642
4731
|
key: 0,
|
|
4643
4732
|
class: "g-file-input-box-header"
|
|
4644
|
-
},
|
|
4733
|
+
}, Bo = ["id"], Vo = [
|
|
4645
4734
|
"id",
|
|
4646
4735
|
"disabled",
|
|
4647
4736
|
"required",
|
|
@@ -4650,11 +4739,11 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4650
4739
|
"aria-invalid",
|
|
4651
4740
|
"aria-describedby",
|
|
4652
4741
|
"aria-errormessage"
|
|
4653
|
-
],
|
|
4742
|
+
], Ho = {
|
|
4654
4743
|
key: 1,
|
|
4655
4744
|
class: "g-file-input-pills",
|
|
4656
4745
|
"aria-label": "Selected files"
|
|
4657
|
-
},
|
|
4746
|
+
}, Uo = /* @__PURE__ */ u({
|
|
4658
4747
|
inheritAttrs: !1,
|
|
4659
4748
|
__name: "GFileInput",
|
|
4660
4749
|
props: /*@__PURE__*/ m({
|
|
@@ -4711,12 +4800,12 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4711
4800
|
key: 0,
|
|
4712
4801
|
for: R(d),
|
|
4713
4802
|
class: "g-file-input-label"
|
|
4714
|
-
}, [c(P(t.label) + " ", 1), t.required ? (w(), o("span",
|
|
4803
|
+
}, [c(P(t.label) + " ", 1), t.required ? (w(), o("span", Ro, "*")) : a("", !0)], 8, Lo)) : a("", !0),
|
|
4715
4804
|
s("div", { class: _(["g-file-input-box", { "g-file-input-box--disabled": t.disabled }]) }, [
|
|
4716
|
-
t.instructions ? (w(), o("div",
|
|
4805
|
+
t.instructions ? (w(), o("div", zo, [s("span", {
|
|
4717
4806
|
id: "instructions-" + R(d),
|
|
4718
4807
|
class: "g-file-input-instructions"
|
|
4719
|
-
}, P(t.instructions), 9,
|
|
4808
|
+
}, P(t.instructions), 9, Bo)])) : a("", !0),
|
|
4720
4809
|
s("input", {
|
|
4721
4810
|
id: R(d),
|
|
4722
4811
|
type: "file",
|
|
@@ -4729,8 +4818,8 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4729
4818
|
"aria-describedby": t.instructions ? "instructions-" + R(d) : void 0,
|
|
4730
4819
|
"aria-errormessage": y.value ? "error-message-" + R(d) : void 0,
|
|
4731
4820
|
onChange: g
|
|
4732
|
-
}, null, 40,
|
|
4733
|
-
t.multiple && b.value.length > 0 ? (w(), o("ul",
|
|
4821
|
+
}, null, 40, Vo),
|
|
4822
|
+
t.multiple && b.value.length > 0 ? (w(), o("ul", Ho, [(w(!0), o(e, null, k(b.value, (e) => (w(), o("li", {
|
|
4734
4823
|
key: e,
|
|
4735
4824
|
class: "g-file-input-pill"
|
|
4736
4825
|
}, [r[0] ||= s("svg", {
|
|
@@ -4746,7 +4835,7 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4746
4835
|
}, null, 8, ["errors", "id"])
|
|
4747
4836
|
], 2));
|
|
4748
4837
|
}
|
|
4749
|
-
}),
|
|
4838
|
+
}), Wo = /* @__PURE__ */ u({
|
|
4750
4839
|
__name: "GDateInput",
|
|
4751
4840
|
props: /*@__PURE__*/ m({
|
|
4752
4841
|
label: { default: void 0 },
|
|
@@ -4794,21 +4883,21 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4794
4883
|
"form-key"
|
|
4795
4884
|
]));
|
|
4796
4885
|
}
|
|
4797
|
-
}),
|
|
4886
|
+
}), Go = { class: "g-date-range-input" }, Ko = {
|
|
4798
4887
|
key: 0,
|
|
4799
4888
|
class: "g-date-range-input__label"
|
|
4800
|
-
},
|
|
4889
|
+
}, qo = {
|
|
4801
4890
|
key: 0,
|
|
4802
4891
|
class: "g-date-range-input__required",
|
|
4803
4892
|
"aria-hidden": "true"
|
|
4804
|
-
},
|
|
4893
|
+
}, Jo = {
|
|
4805
4894
|
key: 1,
|
|
4806
4895
|
class: "g-date-range-input__instructions"
|
|
4807
|
-
},
|
|
4896
|
+
}, Yo = { class: "g-date-range-input__fields" }, Xo = {
|
|
4808
4897
|
key: 2,
|
|
4809
4898
|
class: "g-date-range-input__errors",
|
|
4810
4899
|
role: "alert"
|
|
4811
|
-
},
|
|
4900
|
+
}, Zo = /* @__PURE__ */ u({
|
|
4812
4901
|
__name: "GDateRangeInput",
|
|
4813
4902
|
props: /*@__PURE__*/ m({
|
|
4814
4903
|
label: { default: void 0 },
|
|
@@ -4848,10 +4937,10 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4848
4937
|
};
|
|
4849
4938
|
}), W(r, (e) => {
|
|
4850
4939
|
e.start !== i.value && (i.value = e.start), e.end !== u.value && (u.value = e.end);
|
|
4851
|
-
}, { deep: !0 }), (t, r) => (w(), o("div",
|
|
4852
|
-
n.label ? (w(), o("div",
|
|
4853
|
-
n.instructions ? (w(), o("div",
|
|
4854
|
-
s("div",
|
|
4940
|
+
}, { deep: !0 }), (t, r) => (w(), o("div", Go, [
|
|
4941
|
+
n.label ? (w(), o("div", Ko, [c(P(n.label), 1), n.required ? (w(), o("span", qo, " *")) : a("", !0)])) : a("", !0),
|
|
4942
|
+
n.instructions ? (w(), o("div", Jo, P(n.instructions), 1)) : a("", !0),
|
|
4943
|
+
s("div", Yo, [l(Wo, {
|
|
4855
4944
|
modelValue: i.value,
|
|
4856
4945
|
"onUpdate:modelValue": r[0] ||= (e) => i.value = e,
|
|
4857
4946
|
label: n.startLabel,
|
|
@@ -4863,7 +4952,7 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4863
4952
|
"label",
|
|
4864
4953
|
"disabled",
|
|
4865
4954
|
"required"
|
|
4866
|
-
]), l(
|
|
4955
|
+
]), l(Wo, {
|
|
4867
4956
|
modelValue: u.value,
|
|
4868
4957
|
"onUpdate:modelValue": r[1] ||= (e) => u.value = e,
|
|
4869
4958
|
label: n.endLabel,
|
|
@@ -4876,13 +4965,13 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4876
4965
|
"disabled",
|
|
4877
4966
|
"required"
|
|
4878
4967
|
])]),
|
|
4879
|
-
R(d).length > 0 ? (w(), o("div",
|
|
4968
|
+
R(d).length > 0 ? (w(), o("div", Xo, [(w(!0), o(e, null, k(R(d), (e, t) => (w(), o("div", {
|
|
4880
4969
|
key: t,
|
|
4881
4970
|
class: "g-date-range-input__error"
|
|
4882
4971
|
}, P(e), 1))), 128))])) : a("", !0)
|
|
4883
4972
|
]));
|
|
4884
4973
|
}
|
|
4885
|
-
}),
|
|
4974
|
+
}), Qo = ["action", "method"], $o = /* @__PURE__ */ u({
|
|
4886
4975
|
__name: "GForm",
|
|
4887
4976
|
props: /*@__PURE__*/ m({
|
|
4888
4977
|
action: { default: void 0 },
|
|
@@ -4894,7 +4983,7 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4894
4983
|
}),
|
|
4895
4984
|
emits: /*@__PURE__*/ m(["submit"], ["update:modelValue"]),
|
|
4896
4985
|
setup(e, { emit: t }) {
|
|
4897
|
-
let n = e, r = V(e, "modelValue"), i = t, a = p("form", null), s = a ?? (
|
|
4986
|
+
let n = e, r = V(e, "modelValue"), i = t, a = p("form", null), s = a ?? (pe() ? je(n.formKey) : ke());
|
|
4898
4987
|
a || T("form", s), W(() => s.values.value, (e) => {
|
|
4899
4988
|
r.value = { ...e };
|
|
4900
4989
|
}, { deep: !0 }), W(() => r.value, (e) => {
|
|
@@ -4922,9 +5011,9 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4922
5011
|
hasErrors: R(s).hasErrors.value,
|
|
4923
5012
|
values: R(s).values.value,
|
|
4924
5013
|
errors: R(s).errors.value
|
|
4925
|
-
})], 40,
|
|
5014
|
+
})], 40, Qo));
|
|
4926
5015
|
}
|
|
4927
|
-
}),
|
|
5016
|
+
}), es = /* @__PURE__ */ u({
|
|
4928
5017
|
__name: "GSubmitButton",
|
|
4929
5018
|
props: {
|
|
4930
5019
|
disabled: {
|
|
@@ -4936,7 +5025,7 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4936
5025
|
formKey: { default: "default" }
|
|
4937
5026
|
},
|
|
4938
5027
|
setup(e) {
|
|
4939
|
-
let t = e, n = z(), a = typeof n["form-key"] == "string" ? n["form-key"] : void 0, o = t.formKey || a || "default", l = p("form", null) ?? (
|
|
5028
|
+
let t = e, n = z(), a = typeof n["form-key"] == "string" ? n["form-key"] : void 0, o = t.formKey || a || "default", l = p("form", null) ?? (pe() ? je(o) : null), u = r(() => t.disabled || (l?.isSubmitting.value ?? !1)), d = r(() => l?.isSubmitting.value ?? !1);
|
|
4940
5029
|
return (e, n) => (w(), i($, {
|
|
4941
5030
|
type: "submit",
|
|
4942
5031
|
disabled: u.value,
|
|
@@ -4947,11 +5036,11 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4947
5036
|
_: 3
|
|
4948
5037
|
}, 8, ["disabled", "variant"]));
|
|
4949
5038
|
}
|
|
4950
|
-
}),
|
|
5039
|
+
}), ts = ["for"], ns = {
|
|
4951
5040
|
key: 0,
|
|
4952
5041
|
class: "g-textarea-required",
|
|
4953
5042
|
"aria-hidden": "true"
|
|
4954
|
-
},
|
|
5043
|
+
}, rs = ["id"], is = [
|
|
4955
5044
|
"value",
|
|
4956
5045
|
"placeholder",
|
|
4957
5046
|
"disabled",
|
|
@@ -4960,11 +5049,11 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
4960
5049
|
"rows",
|
|
4961
5050
|
"maxlength",
|
|
4962
5051
|
"aria-invalid"
|
|
4963
|
-
],
|
|
5052
|
+
], as = {
|
|
4964
5053
|
key: 2,
|
|
4965
5054
|
class: "g-textarea-char-count",
|
|
4966
5055
|
"aria-live": "polite"
|
|
4967
|
-
},
|
|
5056
|
+
}, os = /* @__PURE__ */ u({
|
|
4968
5057
|
inheritAttrs: !1,
|
|
4969
5058
|
__name: "GTextarea",
|
|
4970
5059
|
props: /*@__PURE__*/ m({
|
|
@@ -5038,12 +5127,12 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
5038
5127
|
key: 0,
|
|
5039
5128
|
for: m.value,
|
|
5040
5129
|
class: "g-textarea-label"
|
|
5041
|
-
}, [c(P(n.label), 1), n.required ? (w(), o("span",
|
|
5130
|
+
}, [c(P(n.label), 1), n.required ? (w(), o("span", ns, " *")) : a("", !0)], 8, ts)) : a("", !0),
|
|
5042
5131
|
t.$slots.instructions || e.instructions ? (w(), o("div", {
|
|
5043
5132
|
key: 1,
|
|
5044
5133
|
id: "instructions-" + R(u),
|
|
5045
5134
|
class: "g-textarea-instructions"
|
|
5046
|
-
}, [A(t.$slots, "instructions", {}, () => [c(P(e.instructions), 1)])], 8,
|
|
5135
|
+
}, [A(t.$slots, "instructions", {}, () => [c(P(e.instructions), 1)])], 8, rs)) : a("", !0),
|
|
5047
5136
|
s("textarea", h({
|
|
5048
5137
|
ref: "textareaEl",
|
|
5049
5138
|
value: i.value ?? "",
|
|
@@ -5064,15 +5153,15 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
5064
5153
|
onInput: T,
|
|
5065
5154
|
onBlur: E,
|
|
5066
5155
|
onPaste: D
|
|
5067
|
-
}), null, 16,
|
|
5068
|
-
n.maxlength === void 0 ? a("", !0) : (w(), o("div",
|
|
5156
|
+
}), null, 16, is),
|
|
5157
|
+
n.maxlength === void 0 ? a("", !0) : (w(), o("div", as, P((i.value ?? "").length) + " / " + P(n.maxlength), 1)),
|
|
5069
5158
|
l(Pe, {
|
|
5070
5159
|
errors: R(v),
|
|
5071
5160
|
id: "error-message-" + R(u)
|
|
5072
5161
|
}, null, 8, ["errors", "id"])
|
|
5073
5162
|
], 2));
|
|
5074
5163
|
}
|
|
5075
|
-
}),
|
|
5164
|
+
}), ss = { class: "g-toggle-wrapper" }, cs = ["for"], ls = [
|
|
5076
5165
|
"id",
|
|
5077
5166
|
"checked",
|
|
5078
5167
|
"disabled",
|
|
@@ -5080,7 +5169,7 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
5080
5169
|
"aria-describedby",
|
|
5081
5170
|
"aria-invalid",
|
|
5082
5171
|
"aria-errormessage"
|
|
5083
|
-
],
|
|
5172
|
+
], us = ["id"], ds = /* @__PURE__ */ u({
|
|
5084
5173
|
__name: "GToggle",
|
|
5085
5174
|
props: /*@__PURE__*/ m({
|
|
5086
5175
|
label: {},
|
|
@@ -5115,11 +5204,11 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
5115
5204
|
n.disabled || (e.key === "n" || e.key === "N" || e.key === "ArrowLeft" ? (l(!1), e.preventDefault()) : (e.key === "y" || e.key === "Y" || e.key === "ArrowRight") && (l(!0), e.preventDefault()));
|
|
5116
5205
|
}
|
|
5117
5206
|
let p = B(), m = B();
|
|
5118
|
-
return (t, n) => (w(), o("div",
|
|
5207
|
+
return (t, n) => (w(), o("div", ss, [s("div", { class: _(["g-toggle-control", { "g-external-label": e.externalLabel }]) }, [e.externalLabel ? a("", !0) : (w(), o("label", {
|
|
5119
5208
|
key: 0,
|
|
5120
5209
|
class: "g-label",
|
|
5121
5210
|
for: R(m)
|
|
5122
|
-
}, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])], 8,
|
|
5211
|
+
}, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])], 8, cs)), s("div", { class: _(["g-toggle", { "g-has-error": e.error }]) }, [s("div", { class: _(["g-toggle-track", [r.value ? "g-right" : "g-left", { "g-disabled": e.disabled }]]) }, [s("span", {
|
|
5123
5212
|
class: _(["g-toggle-thumb", r.value ? "g-right" : "g-left"]),
|
|
5124
5213
|
"aria-hidden": "true"
|
|
5125
5214
|
}, null, 2), s("input", {
|
|
@@ -5133,44 +5222,44 @@ var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions
|
|
|
5133
5222
|
"aria-errormessage": e.error ? R(p) + "-error" : void 0,
|
|
5134
5223
|
onChange: d,
|
|
5135
5224
|
onKeydown: f
|
|
5136
|
-
}, null, 40,
|
|
5225
|
+
}, null, 40, ls)], 2)], 2)], 2), e.error ? (w(), o("div", {
|
|
5137
5226
|
key: 0,
|
|
5138
5227
|
id: `${R(p)}-error`,
|
|
5139
5228
|
class: "g-form-error",
|
|
5140
5229
|
role: "alert",
|
|
5141
5230
|
"aria-atomic": "true"
|
|
5142
|
-
}, P(e.error), 9,
|
|
5231
|
+
}, P(e.error), 9, us)) : a("", !0)]));
|
|
5143
5232
|
}
|
|
5144
|
-
}),
|
|
5145
|
-
function
|
|
5233
|
+
}), fs = "g-route-announcer";
|
|
5234
|
+
function ps(e) {
|
|
5146
5235
|
return document.getElementById(e) ?? document.querySelector("main");
|
|
5147
5236
|
}
|
|
5148
|
-
function
|
|
5237
|
+
function ms(e) {
|
|
5149
5238
|
e.hasAttribute("tabindex") || (e.setAttribute("tabindex", "-1"), e.addEventListener("blur", () => {
|
|
5150
5239
|
e.getAttribute("tabindex") === "-1" && e.removeAttribute("tabindex");
|
|
5151
5240
|
}, { once: !0 }));
|
|
5152
5241
|
}
|
|
5153
|
-
function
|
|
5242
|
+
function hs(e = "main-content", t = !0) {
|
|
5154
5243
|
if (typeof document > "u") return !1;
|
|
5155
|
-
let n =
|
|
5244
|
+
let n = ps(e);
|
|
5156
5245
|
if (!n) return !1;
|
|
5157
5246
|
let r = t ? n.querySelector("h1") : null;
|
|
5158
5247
|
for (let e of [r, n]) {
|
|
5159
5248
|
if (!e) continue;
|
|
5160
5249
|
let n = e.hasAttribute("tabindex");
|
|
5161
|
-
if (
|
|
5250
|
+
if (ms(e), e.focus({ preventScroll: t }), document.activeElement === e) return !0;
|
|
5162
5251
|
n || e.removeAttribute("tabindex");
|
|
5163
5252
|
}
|
|
5164
5253
|
return !1;
|
|
5165
5254
|
}
|
|
5166
|
-
function
|
|
5167
|
-
let e = document.getElementById(
|
|
5255
|
+
function gs() {
|
|
5256
|
+
let e = document.getElementById(fs);
|
|
5168
5257
|
if (e) return {
|
|
5169
5258
|
el: e,
|
|
5170
5259
|
created: !1
|
|
5171
5260
|
};
|
|
5172
5261
|
let t = document.createElement("div");
|
|
5173
|
-
return t.id =
|
|
5262
|
+
return t.id = fs, t.setAttribute("aria-live", "polite"), t.setAttribute("aria-atomic", "true"), Object.assign(t.style, {
|
|
5174
5263
|
position: "absolute",
|
|
5175
5264
|
width: "1px",
|
|
5176
5265
|
height: "1px",
|
|
@@ -5185,10 +5274,10 @@ function cs() {
|
|
|
5185
5274
|
created: !0
|
|
5186
5275
|
};
|
|
5187
5276
|
}
|
|
5188
|
-
function
|
|
5277
|
+
function _s() {
|
|
5189
5278
|
return new Promise((e) => requestAnimationFrame(() => e()));
|
|
5190
5279
|
}
|
|
5191
|
-
function
|
|
5280
|
+
function vs(e, t = {}) {
|
|
5192
5281
|
let n = O(""), { mainId: r = "main-content", isNewPage: i = (e, t) => e.path !== t.path, focus: a = !0, ready: o, message: s = (e, t) => t ? `Navigated to ${t}` : "" } = t;
|
|
5193
5282
|
if (typeof window > "u") return {
|
|
5194
5283
|
message: D(n),
|
|
@@ -5197,7 +5286,7 @@ function us(e, t = {}) {
|
|
|
5197
5286
|
};
|
|
5198
5287
|
let c = null, l, u = 0;
|
|
5199
5288
|
function d(e) {
|
|
5200
|
-
n.value = e, c ??=
|
|
5289
|
+
n.value = e, c ??= gs();
|
|
5201
5290
|
let t = c.el;
|
|
5202
5291
|
t.textContent = "", clearTimeout(l), l = setTimeout(() => {
|
|
5203
5292
|
t.textContent = e;
|
|
@@ -5206,9 +5295,9 @@ function us(e, t = {}) {
|
|
|
5206
5295
|
let p = e.afterEach(async (e, t, n) => {
|
|
5207
5296
|
if (n || !t.matched?.length || !i(e, t)) return;
|
|
5208
5297
|
let c = ++u, l = document.activeElement;
|
|
5209
|
-
if (await g(), await
|
|
5210
|
-
let f = typeof a == "function" ? a(e, t) : a, p = document.activeElement, m = !!p && p !== l && !!
|
|
5211
|
-
f && !e.hash && !m &&
|
|
5298
|
+
if (await g(), await _s(), o && (await o(e, t), await g(), await _s()), c !== u) return;
|
|
5299
|
+
let f = typeof a == "function" ? a(e, t) : a, p = document.activeElement, m = !!p && p !== l && !!ps(r)?.contains(p);
|
|
5300
|
+
f && !e.hash && !m && hs(r);
|
|
5212
5301
|
let h = s(e, document.title);
|
|
5213
5302
|
h && d(h);
|
|
5214
5303
|
});
|
|
@@ -5222,7 +5311,7 @@ function us(e, t = {}) {
|
|
|
5222
5311
|
};
|
|
5223
5312
|
}
|
|
5224
5313
|
// src/components/GSkipLink.vue?vue&type=script&setup=true&lang.ts
|
|
5225
|
-
var
|
|
5314
|
+
var ys = ["href"], bs = /*@__PURE__*/ u({
|
|
5226
5315
|
__name: "GSkipLink",
|
|
5227
5316
|
props: {
|
|
5228
5317
|
target: { default: "main-content" },
|
|
@@ -5231,19 +5320,19 @@ var ds = ["href"], fs = /*@__PURE__*/ u({
|
|
|
5231
5320
|
setup(e) {
|
|
5232
5321
|
let t = e;
|
|
5233
5322
|
function n(e) {
|
|
5234
|
-
|
|
5323
|
+
hs(t.target, !1) && e.preventDefault();
|
|
5235
5324
|
}
|
|
5236
5325
|
return (e, r) => (w(), o("a", {
|
|
5237
5326
|
class: "g-skip-link",
|
|
5238
5327
|
href: `#${t.target}`,
|
|
5239
5328
|
onClick: n
|
|
5240
|
-
}, [A(e.$slots, "default", {}, () => [c(P(t.label), 1)], !0)], 8,
|
|
5329
|
+
}, [A(e.$slots, "default", {}, () => [c(P(t.label), 1)], !0)], 8, ys));
|
|
5241
5330
|
}
|
|
5242
|
-
}),
|
|
5331
|
+
}), xs = (e, t) => {
|
|
5243
5332
|
let n = e.__vccOpts || e;
|
|
5244
5333
|
for (let [e, r] of t) n[e] = r;
|
|
5245
5334
|
return n;
|
|
5246
|
-
},
|
|
5335
|
+
}, Ss = /*#__PURE__*/ xs(bs, [["__scopeId", "data-v-1d350630"]]), Cs = ["id"], ws = /*#__PURE__*/ xs(/* @__PURE__ */ u({
|
|
5247
5336
|
__name: "GMain",
|
|
5248
5337
|
props: { id: { default: "main-content" } },
|
|
5249
5338
|
setup(e) {
|
|
@@ -5251,17 +5340,17 @@ var ds = ["href"], fs = /*@__PURE__*/ u({
|
|
|
5251
5340
|
return (e, n) => (w(), o("main", {
|
|
5252
5341
|
id: t.id,
|
|
5253
5342
|
class: "g-main"
|
|
5254
|
-
}, [A(e.$slots, "default", {}, void 0, !0)], 8,
|
|
5343
|
+
}, [A(e.$slots, "default", {}, void 0, !0)], 8, Cs));
|
|
5255
5344
|
}
|
|
5256
|
-
}), [["__scopeId", "data-v-139f5ef2"]]),
|
|
5257
|
-
function
|
|
5345
|
+
}), [["__scopeId", "data-v-139f5ef2"]]), Ts = "app-build-id", Es = typeof window < "u" && typeof document < "u";
|
|
5346
|
+
function Ds() {
|
|
5258
5347
|
return {
|
|
5259
5348
|
buildId: document.querySelector("meta[name=\"app-build-id\"]")?.content || void 0,
|
|
5260
5349
|
versionUrl: globalThis.__GRAD_VUE_APP_VERSION_URL__
|
|
5261
5350
|
};
|
|
5262
5351
|
}
|
|
5263
|
-
function
|
|
5264
|
-
let t =
|
|
5352
|
+
function Os(e = {}) {
|
|
5353
|
+
let t = Es ? Ds() : {}, n = e.intervalMs ?? 6e5, r = e.currentBuildId ?? t.buildId, i = e.versionUrl ?? t.versionUrl, a = Es && !!(r && i), o = O(!1), s = !1;
|
|
5265
5354
|
async function c() {
|
|
5266
5355
|
if (!(!a || o.value || s || document.visibilityState !== "visible")) {
|
|
5267
5356
|
s = !0;
|
|
@@ -5275,7 +5364,7 @@ function bs(e = {}) {
|
|
|
5275
5364
|
}
|
|
5276
5365
|
}
|
|
5277
5366
|
}
|
|
5278
|
-
a && (
|
|
5367
|
+
a && (Z(document, "visibilitychange", c), Z(window, "focus", c), se(c, n));
|
|
5279
5368
|
function l() {
|
|
5280
5369
|
window.location.reload();
|
|
5281
5370
|
}
|
|
@@ -5285,13 +5374,13 @@ function bs(e = {}) {
|
|
|
5285
5374
|
reload: l
|
|
5286
5375
|
};
|
|
5287
5376
|
}
|
|
5288
|
-
var
|
|
5289
|
-
function
|
|
5290
|
-
|
|
5377
|
+
var ks = "g-app-update:stale-chunk-reload-at";
|
|
5378
|
+
function As() {
|
|
5379
|
+
Es && window.addEventListener("vite:preloadError", (e) => {
|
|
5291
5380
|
try {
|
|
5292
|
-
let e = Number(sessionStorage.getItem(
|
|
5381
|
+
let e = Number(sessionStorage.getItem(ks) ?? 0);
|
|
5293
5382
|
if (Date.now() - e < 1e4) return;
|
|
5294
|
-
sessionStorage.setItem(
|
|
5383
|
+
sessionStorage.setItem(ks, String(Date.now()));
|
|
5295
5384
|
} catch {
|
|
5296
5385
|
return;
|
|
5297
5386
|
}
|
|
@@ -5299,10 +5388,10 @@ function Ss() {
|
|
|
5299
5388
|
});
|
|
5300
5389
|
}
|
|
5301
5390
|
// src/components/GAppUpdateNotice.vue?vue&type=script&setup=true&lang.ts
|
|
5302
|
-
var
|
|
5391
|
+
var js = { role: "status" }, Ms = {
|
|
5303
5392
|
key: 0,
|
|
5304
5393
|
class: "g-app-update-notice"
|
|
5305
|
-
},
|
|
5394
|
+
}, Ns = { class: "g-app-update-notice__actions" }, Ps = /*#__PURE__*/ xs(/* @__PURE__ */ u({
|
|
5306
5395
|
__name: "GAppUpdateNotice",
|
|
5307
5396
|
props: {
|
|
5308
5397
|
message: { default: "This app has been updated. Refresh the page to see the latest changes." },
|
|
@@ -5313,12 +5402,12 @@ var Cs = { role: "status" }, ws = {
|
|
|
5313
5402
|
currentBuildId: {}
|
|
5314
5403
|
},
|
|
5315
5404
|
setup(e, { expose: t }) {
|
|
5316
|
-
let n = e, { updateAvailable: r, check: i, reload: u } =
|
|
5405
|
+
let n = e, { updateAvailable: r, check: i, reload: u } = Os({
|
|
5317
5406
|
intervalMs: n.intervalMs,
|
|
5318
5407
|
versionUrl: n.versionUrl,
|
|
5319
5408
|
currentBuildId: n.currentBuildId
|
|
5320
5409
|
}), d = O(!1);
|
|
5321
|
-
return t({ check: i }), (e, t) => (w(), o("div",
|
|
5410
|
+
return t({ check: i }), (e, t) => (w(), o("div", js, [R(r) && !d.value ? (w(), o("div", Ms, [s("span", null, P(n.message), 1), s("div", Ns, [l($, {
|
|
5322
5411
|
size: "small",
|
|
5323
5412
|
theme: "accent",
|
|
5324
5413
|
onClick: R(u)
|
|
@@ -5337,25 +5426,25 @@ var Cs = { role: "status" }, ws = {
|
|
|
5337
5426
|
}
|
|
5338
5427
|
}), [["__scopeId", "data-v-bd5a72ec"]]);
|
|
5339
5428
|
// src/compose/useActiveLink.ts
|
|
5340
|
-
function
|
|
5429
|
+
function Fs(e, t, n) {
|
|
5341
5430
|
let r = [
|
|
5342
5431
|
0,
|
|
5343
5432
|
.25,
|
|
5344
5433
|
.5,
|
|
5345
5434
|
.75,
|
|
5346
5435
|
1
|
|
5347
|
-
], i = `${-t}px 0px 0px 0px`, a = /* @__PURE__ */ new Map(), o = O(Array.from(
|
|
5348
|
-
let t = Array.from(
|
|
5436
|
+
], i = `${-t}px 0px 0px 0px`, a = /* @__PURE__ */ new Map(), o = O(Array.from(X(e)?.children || [])), s = () => {
|
|
5437
|
+
let t = Array.from(X(e)?.children || []), n = new Set(t);
|
|
5349
5438
|
for (let e of a.keys()) n.has(e) || a.delete(e);
|
|
5350
5439
|
o.value = t;
|
|
5351
5440
|
};
|
|
5352
|
-
W(() =>
|
|
5441
|
+
W(() => X(e), () => {
|
|
5353
5442
|
s();
|
|
5354
5443
|
}, {
|
|
5355
5444
|
immediate: !0,
|
|
5356
5445
|
flush: "post"
|
|
5357
|
-
}),
|
|
5358
|
-
let { stop: c } =
|
|
5446
|
+
}), le(e, s, { childList: !0 });
|
|
5447
|
+
let { stop: c } = oe(o, (e) => {
|
|
5359
5448
|
let t = o.value[o.value.length - 1];
|
|
5360
5449
|
for (let n of e) a.set(n.target, n.isIntersecting ? Math.ceil(100 * n.intersectionRatio) / 100 : 0), n.target === t && n.intersectionRatio === 1 && a.set(n.target, Infinity);
|
|
5361
5450
|
let r = null, i = 0;
|
|
@@ -5373,8 +5462,8 @@ function Ds(e, t, n) {
|
|
|
5373
5462
|
return { stop: c };
|
|
5374
5463
|
}
|
|
5375
5464
|
// src/compose/useSidebar.ts
|
|
5376
|
-
function
|
|
5377
|
-
let t = B(), n = O(!1), r =
|
|
5465
|
+
function Is(e = "(max-width: 800px)") {
|
|
5466
|
+
let t = B(), n = O(!1), r = ce(e, { ssrWidth: 1e3 });
|
|
5378
5467
|
function i(e) {
|
|
5379
5468
|
if (!r.value || !n.value) return;
|
|
5380
5469
|
let i = e.target, a = document.getElementById(`${t}-sidebar`), o = document.getElementById(`${t}-hamburger`);
|
|
@@ -5403,41 +5492,41 @@ function Os(e = "(max-width: 800px)") {
|
|
|
5403
5492
|
};
|
|
5404
5493
|
}
|
|
5405
5494
|
// src/compose/usePaging.ts
|
|
5406
|
-
function
|
|
5495
|
+
function Ls(e) {
|
|
5407
5496
|
let t = /* @__PURE__ */ new Set();
|
|
5408
5497
|
return (e ?? []).filter((e) => !e?.key || t.has(e.key) || e.order !== 1 && e.order !== -1 ? !1 : (t.add(e.key), !0));
|
|
5409
5498
|
}
|
|
5410
|
-
function
|
|
5411
|
-
return e == null ? [] :
|
|
5499
|
+
function Rs(e) {
|
|
5500
|
+
return e == null ? [] : Ls((typeof e == "string" ? e.split(",") : e).filter((e) => e !== null).map((e) => e.trim()).filter(Boolean).map((e) => ({
|
|
5412
5501
|
key: e.replace(/^-/, ""),
|
|
5413
5502
|
order: e.startsWith("-") ? -1 : 1
|
|
5414
5503
|
})));
|
|
5415
5504
|
}
|
|
5416
|
-
function
|
|
5417
|
-
let t =
|
|
5505
|
+
function zs(e) {
|
|
5506
|
+
let t = Ls(e);
|
|
5418
5507
|
if (t.length !== 0) return t.map(({ key: e, order: t }) => `${t === -1 ? "-" : ""}${e}`);
|
|
5419
5508
|
}
|
|
5420
|
-
function
|
|
5421
|
-
let n =
|
|
5509
|
+
function Bs(e, t = []) {
|
|
5510
|
+
let n = Ls(e);
|
|
5422
5511
|
if (n.length === 0) return;
|
|
5423
5512
|
let r = n.map(({ key: e, order: t }) => `${t === -1 ? "-" : ""}${e}`), i = new Set(n.map(({ key: e }) => String(e))), a = n.length === 1 && n[0].order === -1 ? "-" : "";
|
|
5424
5513
|
return t.forEach((e) => {
|
|
5425
5514
|
i.has(e) || r.push(`${a}${e}`);
|
|
5426
5515
|
}), r.join(",");
|
|
5427
5516
|
}
|
|
5428
|
-
function
|
|
5517
|
+
function Vs(e) {
|
|
5429
5518
|
return Array.isArray(e) ? [...e] : e;
|
|
5430
5519
|
}
|
|
5431
|
-
function
|
|
5520
|
+
function Hs(e, t) {
|
|
5432
5521
|
return Array.isArray(e) || Array.isArray(t) ? !Array.isArray(e) || !Array.isArray(t) ? !1 : e.length === t.length && e.every((e, n) => e === t[n]) : e === t;
|
|
5433
5522
|
}
|
|
5434
|
-
function
|
|
5523
|
+
function Us(e, t) {
|
|
5435
5524
|
return e.length === t.length && e.every((e, n) => {
|
|
5436
5525
|
let r = t[n];
|
|
5437
5526
|
return e.key === r?.key && e.order === r?.order;
|
|
5438
5527
|
});
|
|
5439
5528
|
}
|
|
5440
|
-
function
|
|
5529
|
+
function Ws(e, t) {
|
|
5441
5530
|
if (typeof e == "string") return Number(e);
|
|
5442
5531
|
if (Array.isArray(e)) {
|
|
5443
5532
|
let n = e.find((e) => e !== null);
|
|
@@ -5445,35 +5534,35 @@ function Is(e, t) {
|
|
|
5445
5534
|
}
|
|
5446
5535
|
return t;
|
|
5447
5536
|
}
|
|
5448
|
-
function
|
|
5537
|
+
function Gs(e = {}) {
|
|
5449
5538
|
let t = e.defaultPageSize ?? 50, n = e.defaultPageOffset ?? 0, i = e.sortKey ?? "sort", a = e.pageSizeKey ?? "pageSize", o = e.pageOffsetKey ?? "pageOffset", s = N([]), c = O(t), l = O(n);
|
|
5450
5539
|
return e.route && e.router && (W(() => e.route?.query[i], (e) => {
|
|
5451
|
-
let t =
|
|
5452
|
-
|
|
5540
|
+
let t = Rs(e);
|
|
5541
|
+
Us(s.value, t) || (s.value = t);
|
|
5453
5542
|
}, { immediate: !0 }), W(() => e.route?.query[a], (e) => {
|
|
5454
|
-
let n =
|
|
5543
|
+
let n = Ws(e, t);
|
|
5455
5544
|
c.value !== n && (c.value = n);
|
|
5456
5545
|
}, { immediate: !0 }), W(() => e.route?.query[o], (e) => {
|
|
5457
|
-
let t =
|
|
5546
|
+
let t = Ws(e, n);
|
|
5458
5547
|
l.value !== t && (l.value = t);
|
|
5459
5548
|
}, { immediate: !0 }), W([
|
|
5460
5549
|
s,
|
|
5461
5550
|
c,
|
|
5462
5551
|
l
|
|
5463
5552
|
], ([r, s, c]) => {
|
|
5464
|
-
let l = { ...e.route.query }, u =
|
|
5465
|
-
u === void 0 ? delete l[i] : l[i] =
|
|
5553
|
+
let l = { ...e.route.query }, u = zs(r);
|
|
5554
|
+
u === void 0 ? delete l[i] : l[i] = Vs(u), s === t || s === void 0 ? delete l[a] : l[a] = String(s), c === n || c === void 0 ? delete l[o] : l[o] = String(c);
|
|
5466
5555
|
let d = /* @__PURE__ */ new Set([...Object.keys(e.route.query), ...Object.keys(l)]), f = !1;
|
|
5467
|
-
for (let t of d) if (!
|
|
5556
|
+
for (let t of d) if (!Hs(e.route.query[t], l[t])) {
|
|
5468
5557
|
f = !0;
|
|
5469
5558
|
break;
|
|
5470
5559
|
}
|
|
5471
5560
|
f && e.router.replace({ query: l });
|
|
5472
5561
|
})), {
|
|
5473
5562
|
sort: r({
|
|
5474
|
-
get: () =>
|
|
5563
|
+
get: () => Ls(s.value),
|
|
5475
5564
|
set: (e) => {
|
|
5476
|
-
s.value =
|
|
5565
|
+
s.value = Ls(e);
|
|
5477
5566
|
}
|
|
5478
5567
|
}),
|
|
5479
5568
|
pageSize: c,
|
|
@@ -5481,7 +5570,7 @@ function Ls(e = {}) {
|
|
|
5481
5570
|
};
|
|
5482
5571
|
}
|
|
5483
5572
|
// src/compose/useTableChanges.ts
|
|
5484
|
-
function
|
|
5573
|
+
function Ks() {
|
|
5485
5574
|
let e = M(/* @__PURE__ */ new Map()), t = ne(), n = (n) => {
|
|
5486
5575
|
let r = n.column.key, i = n.row.key, a = n.value, o = n.previousValue;
|
|
5487
5576
|
e.has(i) || e.set(i, M(/* @__PURE__ */ new Map()));
|
|
@@ -5584,7 +5673,7 @@ function Rs() {
|
|
|
5584
5673
|
};
|
|
5585
5674
|
}
|
|
5586
5675
|
// src/compose/usePersistentTableColumnState.ts
|
|
5587
|
-
function
|
|
5676
|
+
function qs(e, t) {
|
|
5588
5677
|
if (!e || typeof e != "object" || Array.isArray(e)) return {};
|
|
5589
5678
|
let n = new Set(t.map(({ key: e }) => String(e))), r = {};
|
|
5590
5679
|
for (let [t, i] of Object.entries(e)) {
|
|
@@ -5594,12 +5683,12 @@ function zs(e, t) {
|
|
|
5594
5683
|
}
|
|
5595
5684
|
return r;
|
|
5596
5685
|
}
|
|
5597
|
-
function
|
|
5598
|
-
let n =
|
|
5686
|
+
function Js(e, t) {
|
|
5687
|
+
let n = Q(e, {});
|
|
5599
5688
|
return W(() => L(t).map(({ key: e }) => String(e)), () => {
|
|
5600
|
-
n.value =
|
|
5689
|
+
n.value = qs(n.value, L(t));
|
|
5601
5690
|
}, { immediate: !0 }), { columnState: n };
|
|
5602
5691
|
}
|
|
5603
|
-
export {
|
|
5692
|
+
export { Rn as $, So as A, ji as B, Wo as C, xe as Ct, Po as D, Fo as E, Mi as F, qi as G, Ki as H, Bi as I, Sr as J, ai as K, Ai as L, go as M, ho as N, ko as O, co as P, zn as Q, Gi as R, Zo as S, Se as St, Io as T, Ni as U, Hi as V, Ji as W, Kn as X, sr as Y, Vn as Z, vs as _, Ve as _t, Rs as a, hn as at, es as b, ke as bt, Is as c, At as ct, Ts as d, ut as dt, Pn as et, As as f, at as ft, hs as g, Xe as gt, Ss as h, Ye as ht, Ls as i, vn as it, bo as j, Eo as k, Fs as l, Tt as lt, ws as m, rt as mt, Ks as n, jn as nt, zs as o, Xt as ot, Os as p, it as pt, Jr as q, Bs as r, Cn as rt, Gs as s, It as st, Js as t, Mn as tt, Ps as u, vt as ut, ds as v, Me as vt, Uo as w, $ as wt, $o as x, Oe as xt, os as y, je as yt, Vi as z };
|
|
5604
5693
|
|
|
5605
|
-
//# sourceMappingURL=grad-vue-
|
|
5694
|
+
//# sourceMappingURL=grad-vue-CtUm1dK7.js.map
|