@illinois-grad/grad-vue 6.0.10 → 6.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/GTable.vue.d.ts +1 -0
- package/dist/{grad-vue-BzzzfIfW.js → grad-vue-B_FDohCx.js} +215 -207
- package/dist/grad-vue-B_FDohCx.js.map +1 -0
- package/dist/grad-vue-elements.css +30 -30
- package/dist/grad-vue-elements.js +1588 -1580
- package/dist/grad-vue-elements.js.map +1 -1
- package/dist/grad-vue.css +1 -1
- package/dist/grad-vue.js +1 -1
- package/dist/plugin.js +1 -1
- package/package.json +1 -1
- package/dist/grad-vue-BzzzfIfW.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
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, inject as f, mergeModels as p, mergeProps as m, nextTick as h, normalizeClass as g, normalizeStyle as _, onBeforeMount as v, onBeforeUnmount as y, onMounted as b, onUnmounted as x, openBlock as S, provide as C, reactive as w, ref as T, renderList as E, renderSlot as D, resolveDynamicComponent as O, shallowReactive as k, shallowRef as A, toDisplayString as j, toRaw as M, toRef as N, toValue as P, unref as F, useAttrs as I, useId as L, useModel as R, useSlots as z, useTemplateRef as B, vModelCheckbox as V, vModelText as H, vShow as ee, watch as U, watchEffect as W, withCtx as G, withDirectives as te, withModifiers as K } from "vue";
|
|
2
|
-
import { createEventHook as ne, toArray as
|
|
2
|
+
import { createEventHook as ne, toArray as re, tryOnScopeDispose as ie, unrefElement as q, useClipboard as J, useDebounceFn as Y, useFocusWithin as X, useIntersectionObserver as ae, useLocalStorage as oe, useMediaQuery as se, useMutationObserver as ce, useResizeObserver as le, useSessionStorage as ue } from "@vueuse/core";
|
|
3
3
|
import { createFocusTrap as de } from "focus-trap";
|
|
4
4
|
//#region src/compose/useCustomElementAttrs.ts
|
|
5
5
|
function Z() {
|
|
@@ -576,9 +576,9 @@ var Ye = (e) => e != null;
|
|
|
576
576
|
//#region ../../node_modules/@vueuse/integrations/dist/useFocusTrap-lXZ_YG-8.js
|
|
577
577
|
function Xe(e, t = {}) {
|
|
578
578
|
let n, { immediate: i, ...a } = t, o = A(!1), s = A(!1), c = (e) => n && n.activate(e), l = (e) => n && n.deactivate(e);
|
|
579
|
-
return U(r(() =>
|
|
579
|
+
return U(r(() => re(P(e)).map((e) => {
|
|
580
580
|
let t = P(e);
|
|
581
|
-
return typeof t == "string" ? t :
|
|
581
|
+
return typeof t == "string" ? t : q(t);
|
|
582
582
|
}).filter(Ye)), (e) => {
|
|
583
583
|
if (e.length) {
|
|
584
584
|
if (!n) n = de(e, {
|
|
@@ -595,7 +595,7 @@ function Xe(e, t = {}) {
|
|
|
595
595
|
n?.updateContainerElements(e), !t && i && c();
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
|
-
}, { flush: "post" }),
|
|
598
|
+
}, { flush: "post" }), ie(() => l()), {
|
|
599
599
|
hasFocus: o,
|
|
600
600
|
isPaused: s,
|
|
601
601
|
activate: c,
|
|
@@ -739,26 +739,26 @@ var rt = /* @__PURE__ */ u({
|
|
|
739
739
|
U(N(d, "modelValue"), (e) => {
|
|
740
740
|
p.value = e;
|
|
741
741
|
});
|
|
742
|
-
let m = z(), v = r(() => !!m.trigger), b = B("triggerRef"), x = B("popoverRef"), { isCustomElement:
|
|
743
|
-
tt([x, b],
|
|
742
|
+
let m = z(), v = r(() => !!m.trigger), b = B("triggerRef"), x = B("popoverRef"), C = B("popoverContentRef"), { isCustomElement: w } = fe(), E = w, O = L(), { push: k, pop: A, isTop: j, zIndex: M } = Ke(O, !0), { activate: P, deactivate: I } = et(x, j, !0);
|
|
743
|
+
tt([x, b], j, p, V, A), U(p, (e) => {
|
|
744
744
|
e ? (h(() => {
|
|
745
|
-
h(() =>
|
|
746
|
-
}),
|
|
745
|
+
h(() => P());
|
|
746
|
+
}), k(), f("show")) : (I(), A(), f("hide"), ie.value = !1, q.value = null);
|
|
747
747
|
});
|
|
748
|
-
function
|
|
748
|
+
function R() {
|
|
749
749
|
p.value = !0, f("update:modelValue", !0);
|
|
750
750
|
}
|
|
751
|
-
function
|
|
751
|
+
function V() {
|
|
752
752
|
p.value = !1, f("update:modelValue", !1);
|
|
753
753
|
}
|
|
754
|
-
function
|
|
754
|
+
function H() {
|
|
755
755
|
p.value = !p.value, f("update:modelValue", p.value);
|
|
756
756
|
}
|
|
757
|
-
let
|
|
757
|
+
let W = T({
|
|
758
758
|
top: 0,
|
|
759
759
|
left: 0
|
|
760
|
-
}),
|
|
761
|
-
function
|
|
760
|
+
}), K = T({ left: "50%" }), ne = T(!1), re = T(!1), ie = T(!1), q = T(null), J = null;
|
|
761
|
+
function Y() {
|
|
762
762
|
if (b.value) return b.value;
|
|
763
763
|
let e = x.value?.parentElement ?? null;
|
|
764
764
|
for (; e && e.tagName.toLowerCase() !== "g-popover";) e = e.parentElement;
|
|
@@ -766,86 +766,90 @@ var rt = /* @__PURE__ */ u({
|
|
|
766
766
|
return t instanceof HTMLElement ? t : null;
|
|
767
767
|
}
|
|
768
768
|
function X() {
|
|
769
|
-
if (!x.value) return;
|
|
770
|
-
let e = x.value, t = new DOMRect(0, 0, window.innerWidth, window.innerHeight),
|
|
771
|
-
|
|
772
|
-
let
|
|
773
|
-
if (!
|
|
774
|
-
|
|
775
|
-
top: Math.max((
|
|
776
|
-
left: Math.max((
|
|
777
|
-
},
|
|
769
|
+
if (!x.value || !C.value) return;
|
|
770
|
+
let e = x.value, t = C.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);
|
|
771
|
+
ie.value = a > r, q.value = ie.value ? r : null;
|
|
772
|
+
let o = new DOMRect(0, 0, e.offsetWidth, Math.min(a, r)), s = Y();
|
|
773
|
+
if (!s) {
|
|
774
|
+
W.value = {
|
|
775
|
+
top: Math.max((n.height - o.height) / 2, 16),
|
|
776
|
+
left: Math.max((n.width - o.width) / 2, 16)
|
|
777
|
+
}, re.value = !1, ne.value = !1, K.value = { left: "50%" };
|
|
778
778
|
return;
|
|
779
779
|
}
|
|
780
|
-
let { top:
|
|
781
|
-
|
|
782
|
-
top:
|
|
783
|
-
left:
|
|
784
|
-
},
|
|
785
|
-
left: `${
|
|
786
|
-
top:
|
|
787
|
-
bottom:
|
|
788
|
-
},
|
|
780
|
+
let { top: c, left: l, xOffset: u, placedAbove: f, overlay: p } = nt(s.getBoundingClientRect(), o, n, { gap: d.minimal ? 0 : 8 });
|
|
781
|
+
W.value = {
|
|
782
|
+
top: c,
|
|
783
|
+
left: l
|
|
784
|
+
}, K.value = {
|
|
785
|
+
left: `${o.width / 2 - u}px`,
|
|
786
|
+
top: f ? "auto" : void 0,
|
|
787
|
+
bottom: f ? "-8px" : void 0
|
|
788
|
+
}, ne.value = f, re.value = p;
|
|
789
789
|
}
|
|
790
790
|
return U(p, (e) => {
|
|
791
791
|
e ? h(() => {
|
|
792
|
-
X(), window.addEventListener("resize", X), window.addEventListener("scroll", X, { capture: !0 }), x.value && (
|
|
793
|
-
}) : (window.removeEventListener("resize", X), window.removeEventListener("scroll", X, { capture: !0 }),
|
|
792
|
+
X(), window.addEventListener("resize", X), window.addEventListener("scroll", X, { capture: !0 }), x.value && (J && J.disconnect(), J = new ResizeObserver(() => X()), C.value && J.observe(C.value));
|
|
793
|
+
}) : (window.removeEventListener("resize", X), window.removeEventListener("scroll", X, { capture: !0 }), J && J.disconnect());
|
|
794
794
|
}), y(() => {
|
|
795
|
-
window.removeEventListener("resize", X), window.removeEventListener("scroll", X, { capture: !0 }),
|
|
795
|
+
window.removeEventListener("resize", X), window.removeEventListener("scroll", X, { capture: !0 }), J && J.disconnect();
|
|
796
796
|
}), c({
|
|
797
|
-
show:
|
|
798
|
-
hide:
|
|
799
|
-
toggle:
|
|
797
|
+
show: R,
|
|
798
|
+
hide: V,
|
|
799
|
+
toggle: H
|
|
800
800
|
}), (r, c) => (S(), o("div", it, [v.value ? (S(), o("div", {
|
|
801
801
|
key: 0,
|
|
802
802
|
ref_key: "triggerRef",
|
|
803
803
|
ref: b,
|
|
804
804
|
class: "g-popover-trigger",
|
|
805
|
-
id: `${F(
|
|
806
|
-
}, [D(r.$slots, "trigger", { toggle:
|
|
805
|
+
id: `${F(O)}-trigger`
|
|
806
|
+
}, [D(r.$slots, "trigger", { toggle: H })], 8, at)) : a("", !0), l(rt, null, {
|
|
807
807
|
default: G(() => [(S(), i(t, {
|
|
808
808
|
to: "#modal-root",
|
|
809
|
-
disabled: F(
|
|
809
|
+
disabled: F(E)
|
|
810
810
|
}, [l(n, {
|
|
811
811
|
name: "g-popover-expand",
|
|
812
812
|
appear: ""
|
|
813
813
|
}, {
|
|
814
|
-
default: G(() => [F(
|
|
814
|
+
default: G(() => [F(w) || p.value ? te((S(), o("div", {
|
|
815
815
|
key: 0,
|
|
816
816
|
ref_key: "popoverRef",
|
|
817
817
|
ref: x,
|
|
818
818
|
class: g({
|
|
819
819
|
"g-popover": !0,
|
|
820
|
-
"g-popover-above":
|
|
821
|
-
"g-popover-below": !
|
|
820
|
+
"g-popover-above": ne.value,
|
|
821
|
+
"g-popover-below": !ne.value,
|
|
822
822
|
"g-popover-minimal": e.minimal,
|
|
823
|
-
"g-popover-scrollable":
|
|
823
|
+
"g-popover-scrollable": ie.value
|
|
824
824
|
}),
|
|
825
825
|
role: "dialog",
|
|
826
826
|
"aria-modal": "true",
|
|
827
|
-
"aria-labelledby": v.value ? `${F(
|
|
827
|
+
"aria-labelledby": v.value ? `${F(O)}-trigger` : void 0,
|
|
828
828
|
"aria-label": v.value ? void 0 : "Popover",
|
|
829
829
|
style: _({
|
|
830
|
-
top:
|
|
831
|
-
left:
|
|
832
|
-
zIndex: F(
|
|
833
|
-
maxHeight:
|
|
830
|
+
top: W.value.top + "px",
|
|
831
|
+
left: W.value.left + "px",
|
|
832
|
+
zIndex: F(M),
|
|
833
|
+
maxHeight: q.value === null ? void 0 : `${q.value}px`
|
|
834
834
|
})
|
|
835
835
|
}, [
|
|
836
|
-
!
|
|
836
|
+
!re.value && !e.minimal && !ie.value ? (S(), o("div", {
|
|
837
837
|
key: 0,
|
|
838
|
-
class: g(["g-popover-arrow", { "g-popover-arrow-above":
|
|
839
|
-
style: _(
|
|
838
|
+
class: g(["g-popover-arrow", { "g-popover-arrow-above": ne.value }]),
|
|
839
|
+
style: _(K.value),
|
|
840
840
|
"aria-hidden": "true"
|
|
841
841
|
}, null, 6)) : a("", !0),
|
|
842
|
-
|
|
842
|
+
s("div", {
|
|
843
|
+
ref_key: "popoverContentRef",
|
|
844
|
+
ref: C,
|
|
845
|
+
class: "g-popover-content"
|
|
846
|
+
}, [D(r.$slots, "default")], 512),
|
|
843
847
|
e.minimal ? a("", !0) : (S(), o("button", {
|
|
844
848
|
key: 1,
|
|
845
849
|
class: "g-popover-close",
|
|
846
850
|
type: "button",
|
|
847
851
|
"aria-label": "Close popover",
|
|
848
|
-
onClick:
|
|
852
|
+
onClick: V
|
|
849
853
|
}, [...c[0] ||= [s("svg", {
|
|
850
854
|
class: "g-popover-close-icon",
|
|
851
855
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1358,7 +1362,7 @@ var It = ["id"], Lt = {
|
|
|
1358
1362
|
let t = B.value.findIndex((e) => e.value === d.value);
|
|
1359
1363
|
b.value = t === -1 ? 0 : t;
|
|
1360
1364
|
}
|
|
1361
|
-
function
|
|
1365
|
+
function re(e) {
|
|
1362
1366
|
let t = e.relatedTarget;
|
|
1363
1367
|
if (x.value) {
|
|
1364
1368
|
x.value = !1;
|
|
@@ -1366,16 +1370,16 @@ var It = ["id"], Lt = {
|
|
|
1366
1370
|
}
|
|
1367
1371
|
t && _.value && _.value.contains(t) || (i.searchable && (z.value = ""), W());
|
|
1368
1372
|
}
|
|
1369
|
-
function
|
|
1373
|
+
function ie(e) {
|
|
1370
1374
|
let t = B.value[e];
|
|
1371
1375
|
t && t.value !== d.value && (d.value = t.value, u("change", t.value)), C.value = !0, W(), setTimeout(() => {
|
|
1372
1376
|
C.value = !1;
|
|
1373
1377
|
}, 100);
|
|
1374
1378
|
}
|
|
1375
|
-
function
|
|
1379
|
+
function q() {
|
|
1376
1380
|
i.disabled || (y.value ? W() : H());
|
|
1377
1381
|
}
|
|
1378
|
-
function
|
|
1382
|
+
function J(e) {
|
|
1379
1383
|
if (i.disabled) return;
|
|
1380
1384
|
let t = B.value.length - 1;
|
|
1381
1385
|
if (!y.value && [
|
|
@@ -1401,17 +1405,17 @@ var It = ["id"], Lt = {
|
|
|
1401
1405
|
e.preventDefault(), b.value = t, P();
|
|
1402
1406
|
break;
|
|
1403
1407
|
case "Enter":
|
|
1404
|
-
e.preventDefault(), y.value ?
|
|
1408
|
+
e.preventDefault(), y.value ? ie(b.value) : H();
|
|
1405
1409
|
break;
|
|
1406
1410
|
case "Escape": M.value && (e.preventDefault(), setTimeout(() => {
|
|
1407
1411
|
W();
|
|
1408
1412
|
}, 0));
|
|
1409
1413
|
}
|
|
1410
1414
|
}
|
|
1411
|
-
function
|
|
1412
|
-
|
|
1415
|
+
function Y(e) {
|
|
1416
|
+
ie(e);
|
|
1413
1417
|
}
|
|
1414
|
-
function
|
|
1418
|
+
function X() {
|
|
1415
1419
|
x.value = !0;
|
|
1416
1420
|
}
|
|
1417
1421
|
let ae = r(() => i.clearButton && d.value !== null && d.value !== void 0 && !i.disabled);
|
|
@@ -1444,8 +1448,8 @@ var It = ["id"], Lt = {
|
|
|
1444
1448
|
disabled: i.disabled,
|
|
1445
1449
|
onFocus: G,
|
|
1446
1450
|
onInput: ne,
|
|
1447
|
-
onKeydown:
|
|
1448
|
-
onBlur:
|
|
1451
|
+
onKeydown: J,
|
|
1452
|
+
onBlur: re,
|
|
1449
1453
|
"aria-autocomplete": "list",
|
|
1450
1454
|
"aria-controls": F(f) + "-listbox",
|
|
1451
1455
|
"aria-expanded": y.value ? "true" : "false",
|
|
@@ -1495,10 +1499,10 @@ var It = ["id"], Lt = {
|
|
|
1495
1499
|
}, t.hiddenLabel ? { "aria-label": i.label } : { "aria-labelledby": F(f) + "-label" }, {
|
|
1496
1500
|
"aria-activedescendant": y.value ? F(f) + "-option-" + b.value : void 0,
|
|
1497
1501
|
tabindex: "0",
|
|
1498
|
-
onClick:
|
|
1499
|
-
onKeydown:
|
|
1502
|
+
onClick: q,
|
|
1503
|
+
onKeydown: J,
|
|
1500
1504
|
onFocus: G,
|
|
1501
|
-
onBlur:
|
|
1505
|
+
onBlur: re
|
|
1502
1506
|
}), [
|
|
1503
1507
|
c(j(I.value[V.value] ? I.value[V.value].label : "") + " ", 1),
|
|
1504
1508
|
ae.value ? (S(), o("button", {
|
|
@@ -1542,8 +1546,8 @@ var It = ["id"], Lt = {
|
|
|
1542
1546
|
}]),
|
|
1543
1547
|
role: "option",
|
|
1544
1548
|
"aria-selected": e.value === d.value ? "true" : "false",
|
|
1545
|
-
onMousedown:
|
|
1546
|
-
onClick: (e) =>
|
|
1549
|
+
onMousedown: X,
|
|
1550
|
+
onClick: (e) => Y(t)
|
|
1547
1551
|
}, [D(n.$slots, "option", {
|
|
1548
1552
|
option: e,
|
|
1549
1553
|
selected: e.value === d.value,
|
|
@@ -1603,7 +1607,7 @@ var It = ["id"], Lt = {
|
|
|
1603
1607
|
e && e.scrollIntoView({ block: "nearest" });
|
|
1604
1608
|
});
|
|
1605
1609
|
}
|
|
1606
|
-
let { focused: C } =
|
|
1610
|
+
let { focused: C } = X(f);
|
|
1607
1611
|
function w(e) {
|
|
1608
1612
|
let t = e.altKey;
|
|
1609
1613
|
if (e.key === "ArrowDown") {
|
|
@@ -1627,7 +1631,7 @@ var It = ["id"], Lt = {
|
|
|
1627
1631
|
function O(e) {
|
|
1628
1632
|
d("select", e), l.value = "", m.value = !0, _.value = -1;
|
|
1629
1633
|
}
|
|
1630
|
-
let k = r(() => !!u.loading), A = r(() => C.value && !m.value), M =
|
|
1634
|
+
let k = r(() => !!u.loading), A = r(() => C.value && !m.value), M = Y(() => {
|
|
1631
1635
|
d("submit", l.value);
|
|
1632
1636
|
}, 300);
|
|
1633
1637
|
U(() => l.value, (e) => {
|
|
@@ -2259,7 +2263,7 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2259
2263
|
copyLabel: {}
|
|
2260
2264
|
},
|
|
2261
2265
|
setup(t) {
|
|
2262
|
-
let n = t, r = On, { text: i, copy: l, copied: u, isSupported: d } =
|
|
2266
|
+
let n = t, r = On, { text: i, copy: l, copied: u, isSupported: d } = J({ source: n.text }), f = T(n.copyLabel ?? "Copy to clipboard"), p = () => {
|
|
2263
2267
|
d.value ? (l(), f.value = "Copied") : f.value = "Copy not supported";
|
|
2264
2268
|
}, m = () => {
|
|
2265
2269
|
f.value = n.copyLabel ?? "Copy to clipboard";
|
|
@@ -2777,10 +2781,10 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2777
2781
|
function ne(e) {
|
|
2778
2782
|
x.value = e.target.value, b.value = 0, y.value || V();
|
|
2779
2783
|
}
|
|
2780
|
-
function
|
|
2784
|
+
function re() {
|
|
2781
2785
|
i.disabled || y.value || V();
|
|
2782
2786
|
}
|
|
2783
|
-
function
|
|
2787
|
+
function ie(e) {
|
|
2784
2788
|
if (C.value) {
|
|
2785
2789
|
C.value = !1;
|
|
2786
2790
|
return;
|
|
@@ -2788,13 +2792,13 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2788
2792
|
let t = e.relatedTarget;
|
|
2789
2793
|
t && v.value?.contains(t) || t && _.value?.contains(t) || H();
|
|
2790
2794
|
}
|
|
2791
|
-
function
|
|
2795
|
+
function q(e) {
|
|
2792
2796
|
e.preventDefault();
|
|
2793
2797
|
}
|
|
2794
|
-
function
|
|
2798
|
+
function J() {
|
|
2795
2799
|
C.value = !0;
|
|
2796
2800
|
}
|
|
2797
|
-
function
|
|
2801
|
+
function Y(e) {
|
|
2798
2802
|
if (i.disabled) return;
|
|
2799
2803
|
let t = I.value.length - 1;
|
|
2800
2804
|
switch (e.key) {
|
|
@@ -2822,7 +2826,7 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2822
2826
|
case "Backspace": !x.value && d.value.length > 0 && W(d.value[d.value.length - 1]);
|
|
2823
2827
|
}
|
|
2824
2828
|
}
|
|
2825
|
-
let
|
|
2829
|
+
let X = r(() => `${f}-input`), ae = r(() => `${f}-label`), oe = r(() => `${f}-instructions`), se = r(() => `error-message-${f}`), ce = r(() => {
|
|
2826
2830
|
let e = [];
|
|
2827
2831
|
return i.instructions && e.push(oe.value), D.value && e.push(se.value), e.length > 0 ? e.join(" ") : void 0;
|
|
2828
2832
|
});
|
|
@@ -2833,7 +2837,7 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2833
2837
|
t.hiddenLabel ? a("", !0) : (S(), o("label", {
|
|
2834
2838
|
key: 0,
|
|
2835
2839
|
id: ae.value,
|
|
2836
|
-
for:
|
|
2840
|
+
for: X.value,
|
|
2837
2841
|
class: "g-multiselect-label"
|
|
2838
2842
|
}, [c(j(t.label), 1), t.required ? (S(), o("span", pr, " *")) : a("", !0)], 8, fr)),
|
|
2839
2843
|
t.instructions ? (S(), o("div", {
|
|
@@ -2859,7 +2863,7 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2859
2863
|
class: "g-multiselect-chip-remove",
|
|
2860
2864
|
"aria-label": `Remove ${B(e)}`,
|
|
2861
2865
|
disabled: t.disabled,
|
|
2862
|
-
onMousedown:
|
|
2866
|
+
onMousedown: J,
|
|
2863
2867
|
onClick: K((t) => W(e), ["stop"])
|
|
2864
2868
|
}, [...r[0] ||= [s("svg", {
|
|
2865
2869
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2876,7 +2880,7 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2876
2880
|
type: "text",
|
|
2877
2881
|
role: "combobox",
|
|
2878
2882
|
class: "g-multiselect-input",
|
|
2879
|
-
id:
|
|
2883
|
+
id: X.value,
|
|
2880
2884
|
value: x.value,
|
|
2881
2885
|
placeholder: d.value.length === 0 ? t.placeholder : void 0,
|
|
2882
2886
|
disabled: t.disabled,
|
|
@@ -2890,9 +2894,9 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2890
2894
|
"aria-describedby": ce.value,
|
|
2891
2895
|
"aria-required": t.required ? "true" : void 0,
|
|
2892
2896
|
onInput: ne,
|
|
2893
|
-
onKeydown:
|
|
2894
|
-
onFocus:
|
|
2895
|
-
onBlur:
|
|
2897
|
+
onKeydown: Y,
|
|
2898
|
+
onFocus: re,
|
|
2899
|
+
onBlur: ie
|
|
2896
2900
|
}), null, 16, vr),
|
|
2897
2901
|
r[2] ||= s("svg", {
|
|
2898
2902
|
class: "g-multiselect-caret",
|
|
@@ -2923,7 +2927,7 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2923
2927
|
"g-multiselect-option--selected": z(e.value)
|
|
2924
2928
|
}]),
|
|
2925
2929
|
"aria-selected": z(e.value) ? "true" : "false",
|
|
2926
|
-
onMousedown:
|
|
2930
|
+
onMousedown: q,
|
|
2927
2931
|
onClick: (e) => U(t)
|
|
2928
2932
|
}, [s("span", xr, [z(e.value) ? (S(), o("svg", Sr, [...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", Cr, [s("span", wr, j(e.label), 1), e.description ? (S(), o("span", Tr, j(e.description), 1)) : a("", !0)])], 42, br))), 128)) : (S(), o("div", Er, " No results found. "))], 16, yr), [[ee, y.value]])
|
|
2929
2933
|
], 2),
|
|
@@ -3499,10 +3503,10 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
3499
3503
|
"aria-valuetext",
|
|
3500
3504
|
"onKeydown",
|
|
3501
3505
|
"onPointerdown"
|
|
3502
|
-
], Ca = {
|
|
3506
|
+
], Ca = { key: 0 }, wa = { "aria-rowindex": "2" }, Ta = ["colspan"], Ea = {
|
|
3503
3507
|
key: 1,
|
|
3504
3508
|
class: "g-bulk-actions-toolbar"
|
|
3505
|
-
},
|
|
3509
|
+
}, Da = { class: "g-selected-count" }, Oa = { class: "g-bulk-actions" }, ka = /* @__PURE__ */ u({
|
|
3506
3510
|
__name: "GTable",
|
|
3507
3511
|
props: /*@__PURE__*/ p({
|
|
3508
3512
|
label: {},
|
|
@@ -3582,10 +3586,10 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
3582
3586
|
function ne(e) {
|
|
3583
3587
|
x("row-click", e);
|
|
3584
3588
|
}
|
|
3585
|
-
function
|
|
3589
|
+
function re(e) {
|
|
3586
3590
|
x("bulk-action", e, m.value);
|
|
3587
3591
|
}
|
|
3588
|
-
function
|
|
3592
|
+
function ie(e) {
|
|
3589
3593
|
let t = e.value, n = e.column.key, r = M(e.row[n]);
|
|
3590
3594
|
e.column.editable?.inputAttributes?.type === "number" && (t = e.value === "" ? null : Number(e.value)), e.row[n] = t;
|
|
3591
3595
|
let i = {
|
|
@@ -3596,13 +3600,13 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
3596
3600
|
};
|
|
3597
3601
|
x("cell-change", i);
|
|
3598
3602
|
}
|
|
3599
|
-
function
|
|
3603
|
+
function q(e) {
|
|
3600
3604
|
x("update:startIndex", e ?? 0);
|
|
3601
3605
|
}
|
|
3602
|
-
function
|
|
3606
|
+
function J(e) {
|
|
3603
3607
|
e !== void 0 && x("update:pageSize", e);
|
|
3604
3608
|
}
|
|
3605
|
-
let
|
|
3609
|
+
let Y = L(), X = d(), ae = T(null), oe = T(null), se = T(null), ce = T(null), le = `${Y}-table`;
|
|
3606
3610
|
function ue(e) {
|
|
3607
3611
|
let t = /* @__PURE__ */ new Set();
|
|
3608
3612
|
return e.filter((e) => !e?.key || t.has(String(e.key)) ? !1 : (t.add(String(e.key)), e.order === 1 || e.order === -1));
|
|
@@ -3693,7 +3697,7 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
3693
3697
|
if (!(typeof t != "number" || !Number.isFinite(t))) return Ae(t);
|
|
3694
3698
|
}
|
|
3695
3699
|
function Me(e) {
|
|
3696
|
-
return document.getElementById(`${
|
|
3700
|
+
return document.getElementById(`${Y}-th-${String(e)}`);
|
|
3697
3701
|
}
|
|
3698
3702
|
function Ne(e) {
|
|
3699
3703
|
let t = Me(e)?.getBoundingClientRect().width;
|
|
@@ -3763,7 +3767,7 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
3763
3767
|
return `${Ue(e)} pixels`;
|
|
3764
3768
|
}
|
|
3765
3769
|
let Ge = r(() => {
|
|
3766
|
-
let e =
|
|
3770
|
+
let e = X?.vnode.props ?? {};
|
|
3767
3771
|
return "columnState" in e || "column-state" in e || "onUpdate:columnState" in e;
|
|
3768
3772
|
}), Ke = r(() => v.columns.filter((e) => ke(e.key).visible !== !1)), qe = z(), Je = r(() => Ke.value.length !== v.columns.length), Ye = r(() => Ge.value && v.columns.length > 0), Xe = r(() => !!qe.controls || !!qe["right-controls"]), Ze = r(() => v.resultCount ?? v.data.length);
|
|
3769
3773
|
function Qe(e) {
|
|
@@ -3910,9 +3914,9 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
3910
3914
|
}, 8, ["class", "onClick"])]),
|
|
3911
3915
|
default: G(() => [s("fieldset", {
|
|
3912
3916
|
class: "g-column-visibility-popover",
|
|
3913
|
-
"aria-labelledby": `${F(
|
|
3917
|
+
"aria-labelledby": `${F(Y)}-column-visibility-heading`
|
|
3914
3918
|
}, [s("div", Wi, [s("span", {
|
|
3915
|
-
id: `${F(
|
|
3919
|
+
id: `${F(Y)}-column-visibility-heading`,
|
|
3916
3920
|
class: "g-column-visibility-heading"
|
|
3917
3921
|
}, " Shown columns ", 8, Gi), s("span", Ki, [l(Q, {
|
|
3918
3922
|
text: "",
|
|
@@ -3958,8 +3962,8 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
3958
3962
|
"page-size": t.pageSize,
|
|
3959
3963
|
"page-sizes": t.pageSizes,
|
|
3960
3964
|
total: Ze.value,
|
|
3961
|
-
"onUpdate:start":
|
|
3962
|
-
"onUpdate:pageSize":
|
|
3965
|
+
"onUpdate:start": q,
|
|
3966
|
+
"onUpdate:pageSize": J
|
|
3963
3967
|
}, null, 8, [
|
|
3964
3968
|
"start",
|
|
3965
3969
|
"page-size",
|
|
@@ -3994,7 +3998,7 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
3994
3998
|
class: "g-bulk-select-checkbox"
|
|
3995
3999
|
}, null, 40, oa)])) : a("", !0), (S(!0), o(e, null, E(Ke.value, (e) => (S(), o("th", {
|
|
3996
4000
|
key: e.key,
|
|
3997
|
-
id: `${F(
|
|
4001
|
+
id: `${F(Y)}-th-${String(e.key)}`,
|
|
3998
4002
|
"aria-sort": ye(e.key),
|
|
3999
4003
|
class: g([
|
|
4000
4004
|
"g-th",
|
|
@@ -4070,14 +4074,14 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4070
4074
|
te(s("input", {
|
|
4071
4075
|
type: "checkbox",
|
|
4072
4076
|
"onUpdate:modelValue": (t) => f.value[e.key] = t,
|
|
4073
|
-
id: `${F(
|
|
4074
|
-
"aria-describedby": e.filter.description ? `${F(
|
|
4077
|
+
id: `${F(Y)}-filter-${String(e.key)}`,
|
|
4078
|
+
"aria-describedby": e.filter.description ? `${F(Y)}-filter-description-${String(e.key)}` : void 0
|
|
4075
4079
|
}, null, 8, va), [[V, f.value[e.key]]]),
|
|
4076
|
-
s("label", { for: `${F(
|
|
4080
|
+
s("label", { for: `${F(Y)}-filter-${String(e.key)}` }, j(e.filter.label), 9, ya),
|
|
4077
4081
|
e.filter.description ? (S(), o("span", {
|
|
4078
4082
|
key: 0,
|
|
4079
4083
|
class: "g-filter-description",
|
|
4080
|
-
id: `${F(
|
|
4084
|
+
id: `${F(Y)}-filter-description-${String(e.key)}`
|
|
4081
4085
|
}, j(e.filter.description), 9, ba)) : a("", !0)
|
|
4082
4086
|
])])) : e.filter.type === "multi-select" && e.filter.searchable ? (S(), i(Dr, {
|
|
4083
4087
|
key: 3,
|
|
@@ -4131,7 +4135,11 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4131
4135
|
onKeydown: (t) => Ve(t, e.key),
|
|
4132
4136
|
onPointerdown: (t) => Be(t, e.key)
|
|
4133
4137
|
}, null, 42, Sa)) : a("", !0)], 10, sa))), 128))])]),
|
|
4134
|
-
|
|
4138
|
+
t.data.length === 0 ? (S(), o("tbody", Ca, [s("tr", wa, [s("td", {
|
|
4139
|
+
class: "g-table-empty",
|
|
4140
|
+
colspan: Ke.value.length + +!!t.bulkSelectionEnabled
|
|
4141
|
+
}, [D(n.$slots, "empty")], 8, Ta)])])) : (S(), i(dr, {
|
|
4142
|
+
key: 1,
|
|
4135
4143
|
data: t.data,
|
|
4136
4144
|
columns: Ke.value,
|
|
4137
4145
|
"group-by": t.groupBy,
|
|
@@ -4141,11 +4149,11 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4141
4149
|
"start-index": t.startIndex,
|
|
4142
4150
|
"bulk-selection-enabled": t.bulkSelectionEnabled,
|
|
4143
4151
|
"selected-rows": m.value,
|
|
4144
|
-
"table-id": F(
|
|
4152
|
+
"table-id": F(Y),
|
|
4145
4153
|
"change-tracker": t.changeTracker,
|
|
4146
4154
|
onRowClick: ne,
|
|
4147
4155
|
onToggleRow: W,
|
|
4148
|
-
onCellChange:
|
|
4156
|
+
onCellChange: ie
|
|
4149
4157
|
}, null, 8, [
|
|
4150
4158
|
"data",
|
|
4151
4159
|
"columns",
|
|
@@ -4158,11 +4166,11 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4158
4166
|
"selected-rows",
|
|
4159
4167
|
"table-id",
|
|
4160
4168
|
"change-tracker"
|
|
4161
|
-
])
|
|
4169
|
+
]))
|
|
4162
4170
|
], 10, ea)], 512),
|
|
4163
|
-
t.bulkSelectionEnabled && m.value.length > 0 ? (S(), o("div",
|
|
4171
|
+
t.bulkSelectionEnabled && m.value.length > 0 ? (S(), o("div", Ea, [s("span", Da, j(m.value.length) + " row" + j(m.value.length === 1 ? "" : "s") + " selected", 1), s("ul", Oa, [(S(!0), o(e, null, E(t.bulkActions, (e) => (S(), o("li", { key: e.id }, [l(Q, {
|
|
4164
4172
|
theme: e.theme || "accent",
|
|
4165
|
-
onClick: (t) =>
|
|
4173
|
+
onClick: (t) => re(e.id),
|
|
4166
4174
|
size: "small"
|
|
4167
4175
|
}, {
|
|
4168
4176
|
default: G(() => [c(j(e.label) + " " + j(m.value.length) + " row" + j(m.value.length === 1 ? "" : "s"), 1)]),
|
|
@@ -4170,7 +4178,7 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4170
4178
|
}, 1032, ["theme", "onClick"])]))), 128))])])) : a("", !0)
|
|
4171
4179
|
]));
|
|
4172
4180
|
}
|
|
4173
|
-
}),
|
|
4181
|
+
}), Aa = ["id"], ja = { class: "g-modal-inner" }, Ma = { class: "g-modal-header" }, Na = ["id"], Pa = ["id"], Fa = /* @__PURE__ */ u({
|
|
4174
4182
|
__name: "GModal",
|
|
4175
4183
|
props: {
|
|
4176
4184
|
label: {},
|
|
@@ -4214,12 +4222,12 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4214
4222
|
ref_key: "dialog",
|
|
4215
4223
|
ref: f,
|
|
4216
4224
|
style: { zIndex: F(x) }
|
|
4217
|
-
}), [s("div",
|
|
4225
|
+
}), [s("div", ja, [s("div", Ma, [e.hiddenLabel ? a("", !0) : (S(), o("h2", {
|
|
4218
4226
|
key: 0,
|
|
4219
4227
|
id: "modal-label-" + F(h),
|
|
4220
4228
|
class: "g-modal-label",
|
|
4221
4229
|
tabindex: "-1"
|
|
4222
|
-
}, j(e.label), 9,
|
|
4230
|
+
}, j(e.label), 9, Na)), s("button", {
|
|
4223
4231
|
class: "g-modal-close",
|
|
4224
4232
|
onClick: E,
|
|
4225
4233
|
"aria-label": "Close"
|
|
@@ -4234,36 +4242,36 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4234
4242
|
})], -1)]])]), s("div", {
|
|
4235
4243
|
id: "modal-description-" + F(h),
|
|
4236
4244
|
class: "g-modal-content"
|
|
4237
|
-
}, [D(r.$slots, "default")], 8,
|
|
4245
|
+
}, [D(r.$slots, "default")], 8, Pa)])], 16, Aa)]),
|
|
4238
4246
|
_: 3
|
|
4239
4247
|
})]));
|
|
4240
4248
|
}
|
|
4241
|
-
}),
|
|
4249
|
+
}), Ia = /* @__PURE__ */ u({
|
|
4242
4250
|
__name: "GDetailList",
|
|
4243
4251
|
props: { variant: { default: "grid" } },
|
|
4244
4252
|
setup(e) {
|
|
4245
4253
|
let t = e;
|
|
4246
4254
|
return (e, n) => (S(), o("dl", { class: g(["g-detail-list", `g-detail-list--${t.variant}`]) }, [D(e.$slots, "default")], 2));
|
|
4247
4255
|
}
|
|
4248
|
-
}),
|
|
4256
|
+
}), La = { class: "g-detail-list-item" }, Ra = { class: "g-detail-list-item__label" }, za = { class: "g-detail-list-item__value" }, Ba = /* @__PURE__ */ u({
|
|
4249
4257
|
__name: "GDetailListItem",
|
|
4250
4258
|
props: { label: {} },
|
|
4251
4259
|
setup(e) {
|
|
4252
|
-
return (t, n) => (S(), o("div",
|
|
4260
|
+
return (t, n) => (S(), o("div", La, [s("dt", Ra, [D(t.$slots, "label", {}, () => [c(j(e.label), 1)])]), s("dd", za, [D(t.$slots, "default")])]));
|
|
4253
4261
|
}
|
|
4254
|
-
}),
|
|
4262
|
+
}), Va = {
|
|
4255
4263
|
key: 0,
|
|
4256
4264
|
class: "g-scroll-lock-overlay"
|
|
4257
|
-
},
|
|
4265
|
+
}, Ha = /* @__PURE__ */ u({
|
|
4258
4266
|
__name: "GOverlay",
|
|
4259
4267
|
setup(e) {
|
|
4260
4268
|
let { hasScrollLock: t } = qe();
|
|
4261
4269
|
return (e, r) => (S(), i(n, { name: "g-fade" }, {
|
|
4262
|
-
default: G(() => [F(t) ? (S(), o("div",
|
|
4270
|
+
default: G(() => [F(t) ? (S(), o("div", Va)) : a("", !0)]),
|
|
4263
4271
|
_: 1
|
|
4264
4272
|
}));
|
|
4265
4273
|
}
|
|
4266
|
-
}),
|
|
4274
|
+
}), Ua = { class: "popover-content" }, Wa = { class: "year-dropdown" }, Ga = { class: "month-selector" }, Ka = /* @__PURE__ */ u({
|
|
4267
4275
|
__name: "GTermSelectorControl",
|
|
4268
4276
|
props: /*@__PURE__*/ p({
|
|
4269
4277
|
termYears: { default: () => ["2026"] },
|
|
@@ -4284,7 +4292,7 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4284
4292
|
emits: ["update:modelValue"],
|
|
4285
4293
|
setup(e) {
|
|
4286
4294
|
let t = R(e, "modelValue");
|
|
4287
|
-
return (n, r) => (S(), o("div",
|
|
4295
|
+
return (n, r) => (S(), o("div", Ua, [s("div", Wa, [l(qt, {
|
|
4288
4296
|
modelValue: t.value.year,
|
|
4289
4297
|
"onUpdate:modelValue": r[0] ||= (e) => t.value.year = e,
|
|
4290
4298
|
options: e.termYears,
|
|
@@ -4293,7 +4301,7 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4293
4301
|
"modelValue",
|
|
4294
4302
|
"options",
|
|
4295
4303
|
"label"
|
|
4296
|
-
])]), s("div",
|
|
4304
|
+
])]), s("div", Ga, [l(St, {
|
|
4297
4305
|
modelValue: t.value.name,
|
|
4298
4306
|
"onUpdate:modelValue": r[1] ||= (e) => t.value.name = e,
|
|
4299
4307
|
options: e.termNames,
|
|
@@ -4305,10 +4313,10 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4305
4313
|
"label"
|
|
4306
4314
|
])])]));
|
|
4307
4315
|
}
|
|
4308
|
-
}),
|
|
4316
|
+
}), qa = { class: "g-term-selector" }, Ja = { class: "g-term-label" }, Ya = {
|
|
4309
4317
|
class: "g-popover-title",
|
|
4310
4318
|
tabindex: "-1"
|
|
4311
|
-
},
|
|
4319
|
+
}, Xa = /* @__PURE__ */ u({
|
|
4312
4320
|
__name: "GTermSelector",
|
|
4313
4321
|
props: /*@__PURE__*/ p({
|
|
4314
4322
|
heading: { default: "Period Selection" },
|
|
@@ -4330,7 +4338,7 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4330
4338
|
emits: ["update:modelValue"],
|
|
4331
4339
|
setup(e) {
|
|
4332
4340
|
let t = R(e, "modelValue");
|
|
4333
|
-
return (n, r) => (S(), o("div",
|
|
4341
|
+
return (n, r) => (S(), o("div", qa, [l(st, null, {
|
|
4334
4342
|
trigger: G(({ toggle: e }) => [l(Q, {
|
|
4335
4343
|
class: "g-term-selector-button",
|
|
4336
4344
|
theme: "none",
|
|
@@ -4343,7 +4351,7 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4343
4351
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4344
4352
|
viewBox: "0 0 640 640"
|
|
4345
4353
|
}, [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),
|
|
4346
|
-
s("span",
|
|
4354
|
+
s("span", Ja, j(t.value?.name) + " " + j(t.value?.year), 1),
|
|
4347
4355
|
r[2] ||= s("span", { class: "g-caret" }, [s("svg", {
|
|
4348
4356
|
role: "none",
|
|
4349
4357
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4352,18 +4360,18 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4352
4360
|
]),
|
|
4353
4361
|
_: 1
|
|
4354
4362
|
}, 8, ["onClick"])]),
|
|
4355
|
-
default: G(() => [s("h2",
|
|
4363
|
+
default: G(() => [s("h2", Ya, j(e.heading), 1), l(Ka, m(n.$props, {
|
|
4356
4364
|
modelValue: t.value,
|
|
4357
4365
|
"onUpdate:modelValue": r[0] ||= (e) => t.value = e
|
|
4358
4366
|
}), null, 16, ["modelValue"])]),
|
|
4359
4367
|
_: 1
|
|
4360
4368
|
})]));
|
|
4361
4369
|
}
|
|
4362
|
-
}),
|
|
4370
|
+
}), Za = { class: "g-user-menu" }, Qa = [
|
|
4363
4371
|
"aria-label",
|
|
4364
4372
|
"aria-expanded",
|
|
4365
4373
|
"onClick"
|
|
4366
|
-
],
|
|
4374
|
+
], $a = { class: "g-user-menu__popover" }, eo = { class: "g-user-menu__list" }, to = /* @__PURE__ */ u({
|
|
4367
4375
|
__name: "GUserMenu",
|
|
4368
4376
|
props: {
|
|
4369
4377
|
initials: {},
|
|
@@ -4375,7 +4383,7 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4375
4383
|
let n = `${L()}-email`, r = T(!1), a = B("emailHeading");
|
|
4376
4384
|
d()?.appContext?.components?.RouterLink;
|
|
4377
4385
|
let c = z();
|
|
4378
|
-
return (u, d) => (S(), o("div",
|
|
4386
|
+
return (u, d) => (S(), o("div", Za, [l(st, {
|
|
4379
4387
|
modelValue: r.value,
|
|
4380
4388
|
"onUpdate:modelValue": d[0] ||= (e) => r.value = e,
|
|
4381
4389
|
minimal: ""
|
|
@@ -4387,8 +4395,8 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4387
4395
|
"aria-expanded": r.value,
|
|
4388
4396
|
"aria-haspopup": "menu",
|
|
4389
4397
|
onClick: e
|
|
4390
|
-
}, j(t.initials), 13,
|
|
4391
|
-
default: G(() => [s("div",
|
|
4398
|
+
}, j(t.initials), 13, Qa)]),
|
|
4399
|
+
default: G(() => [s("div", $a, [s("h2", {
|
|
4392
4400
|
id: n,
|
|
4393
4401
|
ref_key: "emailHeading",
|
|
4394
4402
|
ref: a,
|
|
@@ -4397,11 +4405,11 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4397
4405
|
}, j(t.email), 513), s("nav", {
|
|
4398
4406
|
class: "g-user-menu__nav",
|
|
4399
4407
|
"aria-labelledby": n
|
|
4400
|
-
}, [s("ul",
|
|
4408
|
+
}, [s("ul", eo, [(S(!0), o(e, null, E(c.default(), (e, t) => (S(), o("li", { key: t }, [(S(), i(O(e)))]))), 128))])])])]),
|
|
4401
4409
|
_: 1
|
|
4402
4410
|
}, 8, ["modelValue"])]));
|
|
4403
4411
|
}
|
|
4404
|
-
}),
|
|
4412
|
+
}), no = /* @__PURE__ */ u({
|
|
4405
4413
|
__name: "GCurrencyInput",
|
|
4406
4414
|
props: /*@__PURE__*/ p({
|
|
4407
4415
|
label: { default: void 0 },
|
|
@@ -4452,7 +4460,7 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4452
4460
|
"form-key"
|
|
4453
4461
|
]));
|
|
4454
4462
|
}
|
|
4455
|
-
}),
|
|
4463
|
+
}), ro = /* @__PURE__ */ u({
|
|
4456
4464
|
__name: "GEmailInput",
|
|
4457
4465
|
props: /*@__PURE__*/ p({
|
|
4458
4466
|
label: { default: void 0 },
|
|
@@ -4497,13 +4505,13 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4497
4505
|
"instructions"
|
|
4498
4506
|
]));
|
|
4499
4507
|
}
|
|
4500
|
-
}),
|
|
4508
|
+
}), io = ["for"], ao = {
|
|
4501
4509
|
key: 0,
|
|
4502
4510
|
class: "g-file-input-required"
|
|
4503
|
-
},
|
|
4511
|
+
}, oo = {
|
|
4504
4512
|
key: 0,
|
|
4505
4513
|
class: "g-file-input-box-header"
|
|
4506
|
-
},
|
|
4514
|
+
}, so = ["id"], co = [
|
|
4507
4515
|
"id",
|
|
4508
4516
|
"disabled",
|
|
4509
4517
|
"required",
|
|
@@ -4512,11 +4520,11 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4512
4520
|
"aria-invalid",
|
|
4513
4521
|
"aria-describedby",
|
|
4514
4522
|
"aria-errormessage"
|
|
4515
|
-
],
|
|
4523
|
+
], lo = {
|
|
4516
4524
|
key: 1,
|
|
4517
4525
|
class: "g-file-input-pills",
|
|
4518
4526
|
"aria-label": "Selected files"
|
|
4519
|
-
},
|
|
4527
|
+
}, uo = /* @__PURE__ */ u({
|
|
4520
4528
|
inheritAttrs: !1,
|
|
4521
4529
|
__name: "GFileInput",
|
|
4522
4530
|
props: /*@__PURE__*/ p({
|
|
@@ -4573,12 +4581,12 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4573
4581
|
key: 0,
|
|
4574
4582
|
for: F(d),
|
|
4575
4583
|
class: "g-file-input-label"
|
|
4576
|
-
}, [c(j(t.label) + " ", 1), t.required ? (S(), o("span",
|
|
4584
|
+
}, [c(j(t.label) + " ", 1), t.required ? (S(), o("span", ao, "*")) : a("", !0)], 8, io)) : a("", !0),
|
|
4577
4585
|
s("div", { class: g(["g-file-input-box", { "g-file-input-box--disabled": t.disabled }]) }, [
|
|
4578
|
-
t.instructions ? (S(), o("div",
|
|
4586
|
+
t.instructions ? (S(), o("div", oo, [s("span", {
|
|
4579
4587
|
id: "instructions-" + F(d),
|
|
4580
4588
|
class: "g-file-input-instructions"
|
|
4581
|
-
}, j(t.instructions), 9,
|
|
4589
|
+
}, j(t.instructions), 9, so)])) : a("", !0),
|
|
4582
4590
|
s("input", {
|
|
4583
4591
|
id: F(d),
|
|
4584
4592
|
type: "file",
|
|
@@ -4591,8 +4599,8 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4591
4599
|
"aria-describedby": t.instructions ? "instructions-" + F(d) : void 0,
|
|
4592
4600
|
"aria-errormessage": y.value ? "error-message-" + F(d) : void 0,
|
|
4593
4601
|
onChange: _
|
|
4594
|
-
}, null, 40,
|
|
4595
|
-
t.multiple && b.value.length > 0 ? (S(), o("ul",
|
|
4602
|
+
}, null, 40, co),
|
|
4603
|
+
t.multiple && b.value.length > 0 ? (S(), o("ul", lo, [(S(!0), o(e, null, E(b.value, (e) => (S(), o("li", {
|
|
4596
4604
|
key: e,
|
|
4597
4605
|
class: "g-file-input-pill"
|
|
4598
4606
|
}, [r[0] ||= s("svg", {
|
|
@@ -4608,7 +4616,7 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4608
4616
|
}, null, 8, ["errors", "id"])
|
|
4609
4617
|
], 2));
|
|
4610
4618
|
}
|
|
4611
|
-
}),
|
|
4619
|
+
}), fo = /* @__PURE__ */ u({
|
|
4612
4620
|
__name: "GDateInput",
|
|
4613
4621
|
props: /*@__PURE__*/ p({
|
|
4614
4622
|
label: { default: void 0 },
|
|
@@ -4656,21 +4664,21 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4656
4664
|
"form-key"
|
|
4657
4665
|
]));
|
|
4658
4666
|
}
|
|
4659
|
-
}),
|
|
4667
|
+
}), po = { class: "g-date-range-input" }, mo = {
|
|
4660
4668
|
key: 0,
|
|
4661
4669
|
class: "g-date-range-input__label"
|
|
4662
|
-
},
|
|
4670
|
+
}, ho = {
|
|
4663
4671
|
key: 0,
|
|
4664
4672
|
class: "g-date-range-input__required",
|
|
4665
4673
|
"aria-hidden": "true"
|
|
4666
|
-
},
|
|
4674
|
+
}, go = {
|
|
4667
4675
|
key: 1,
|
|
4668
4676
|
class: "g-date-range-input__instructions"
|
|
4669
|
-
},
|
|
4677
|
+
}, _o = { class: "g-date-range-input__fields" }, vo = {
|
|
4670
4678
|
key: 2,
|
|
4671
4679
|
class: "g-date-range-input__errors",
|
|
4672
4680
|
role: "alert"
|
|
4673
|
-
},
|
|
4681
|
+
}, yo = /* @__PURE__ */ u({
|
|
4674
4682
|
__name: "GDateRangeInput",
|
|
4675
4683
|
props: /*@__PURE__*/ p({
|
|
4676
4684
|
label: { default: void 0 },
|
|
@@ -4710,10 +4718,10 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4710
4718
|
};
|
|
4711
4719
|
}), U(r, (e) => {
|
|
4712
4720
|
e.start !== i.value && (i.value = e.start), e.end !== u.value && (u.value = e.end);
|
|
4713
|
-
}, { deep: !0 }), (t, r) => (S(), o("div",
|
|
4714
|
-
n.label ? (S(), o("div",
|
|
4715
|
-
n.instructions ? (S(), o("div",
|
|
4716
|
-
s("div",
|
|
4721
|
+
}, { deep: !0 }), (t, r) => (S(), o("div", po, [
|
|
4722
|
+
n.label ? (S(), o("div", mo, [c(j(n.label), 1), n.required ? (S(), o("span", ho, " *")) : a("", !0)])) : a("", !0),
|
|
4723
|
+
n.instructions ? (S(), o("div", go, j(n.instructions), 1)) : a("", !0),
|
|
4724
|
+
s("div", _o, [l(fo, {
|
|
4717
4725
|
modelValue: i.value,
|
|
4718
4726
|
"onUpdate:modelValue": r[0] ||= (e) => i.value = e,
|
|
4719
4727
|
label: n.startLabel,
|
|
@@ -4725,7 +4733,7 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4725
4733
|
"label",
|
|
4726
4734
|
"disabled",
|
|
4727
4735
|
"required"
|
|
4728
|
-
]), l(
|
|
4736
|
+
]), l(fo, {
|
|
4729
4737
|
modelValue: u.value,
|
|
4730
4738
|
"onUpdate:modelValue": r[1] ||= (e) => u.value = e,
|
|
4731
4739
|
label: n.endLabel,
|
|
@@ -4738,13 +4746,13 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4738
4746
|
"disabled",
|
|
4739
4747
|
"required"
|
|
4740
4748
|
])]),
|
|
4741
|
-
F(d).length > 0 ? (S(), o("div",
|
|
4749
|
+
F(d).length > 0 ? (S(), o("div", vo, [(S(!0), o(e, null, E(F(d), (e, t) => (S(), o("div", {
|
|
4742
4750
|
key: t,
|
|
4743
4751
|
class: "g-date-range-input__error"
|
|
4744
4752
|
}, j(e), 1))), 128))])) : a("", !0)
|
|
4745
4753
|
]));
|
|
4746
4754
|
}
|
|
4747
|
-
}),
|
|
4755
|
+
}), bo = ["action", "method"], xo = /* @__PURE__ */ u({
|
|
4748
4756
|
__name: "GForm",
|
|
4749
4757
|
props: /*@__PURE__*/ p({
|
|
4750
4758
|
action: { default: void 0 },
|
|
@@ -4784,9 +4792,9 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4784
4792
|
hasErrors: F(s).hasErrors.value,
|
|
4785
4793
|
values: F(s).values.value,
|
|
4786
4794
|
errors: F(s).errors.value
|
|
4787
|
-
})], 40,
|
|
4795
|
+
})], 40, bo));
|
|
4788
4796
|
}
|
|
4789
|
-
}),
|
|
4797
|
+
}), So = /* @__PURE__ */ u({
|
|
4790
4798
|
__name: "GSubmitButton",
|
|
4791
4799
|
props: {
|
|
4792
4800
|
disabled: {
|
|
@@ -4809,11 +4817,11 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4809
4817
|
_: 3
|
|
4810
4818
|
}, 8, ["disabled", "variant"]));
|
|
4811
4819
|
}
|
|
4812
|
-
}),
|
|
4820
|
+
}), Co = ["for"], wo = {
|
|
4813
4821
|
key: 0,
|
|
4814
4822
|
class: "g-textarea-required",
|
|
4815
4823
|
"aria-hidden": "true"
|
|
4816
|
-
},
|
|
4824
|
+
}, To = ["id"], Eo = [
|
|
4817
4825
|
"value",
|
|
4818
4826
|
"placeholder",
|
|
4819
4827
|
"disabled",
|
|
@@ -4822,11 +4830,11 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4822
4830
|
"rows",
|
|
4823
4831
|
"maxlength",
|
|
4824
4832
|
"aria-invalid"
|
|
4825
|
-
],
|
|
4833
|
+
], Do = {
|
|
4826
4834
|
key: 2,
|
|
4827
4835
|
class: "g-textarea-char-count",
|
|
4828
4836
|
"aria-live": "polite"
|
|
4829
|
-
},
|
|
4837
|
+
}, Oo = /* @__PURE__ */ u({
|
|
4830
4838
|
inheritAttrs: !1,
|
|
4831
4839
|
__name: "GTextarea",
|
|
4832
4840
|
props: /*@__PURE__*/ p({
|
|
@@ -4900,12 +4908,12 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4900
4908
|
key: 0,
|
|
4901
4909
|
for: _.value,
|
|
4902
4910
|
class: "g-textarea-label"
|
|
4903
|
-
}, [c(j(n.label), 1), n.required ? (S(), o("span",
|
|
4911
|
+
}, [c(j(n.label), 1), n.required ? (S(), o("span", wo, " *")) : a("", !0)], 8, Co)) : a("", !0),
|
|
4904
4912
|
t.$slots.instructions || e.instructions ? (S(), o("div", {
|
|
4905
4913
|
key: 1,
|
|
4906
4914
|
id: "instructions-" + F(u),
|
|
4907
4915
|
class: "g-textarea-instructions"
|
|
4908
|
-
}, [D(t.$slots, "instructions", {}, () => [c(j(e.instructions), 1)])], 8,
|
|
4916
|
+
}, [D(t.$slots, "instructions", {}, () => [c(j(e.instructions), 1)])], 8, To)) : a("", !0),
|
|
4909
4917
|
s("textarea", m({
|
|
4910
4918
|
ref: "textareaEl",
|
|
4911
4919
|
value: i.value ?? "",
|
|
@@ -4926,15 +4934,15 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4926
4934
|
onInput: T,
|
|
4927
4935
|
onBlur: E,
|
|
4928
4936
|
onPaste: O
|
|
4929
|
-
}), null, 16,
|
|
4930
|
-
n.maxlength === void 0 ? a("", !0) : (S(), o("div",
|
|
4937
|
+
}), null, 16, Eo),
|
|
4938
|
+
n.maxlength === void 0 ? a("", !0) : (S(), o("div", Do, j((i.value ?? "").length) + " / " + j(n.maxlength), 1)),
|
|
4931
4939
|
l(je, {
|
|
4932
4940
|
errors: F(v),
|
|
4933
4941
|
id: "error-message-" + F(u)
|
|
4934
4942
|
}, null, 8, ["errors", "id"])
|
|
4935
4943
|
], 2));
|
|
4936
4944
|
}
|
|
4937
|
-
}),
|
|
4945
|
+
}), ko = { class: "g-toggle-wrapper" }, Ao = ["for"], jo = [
|
|
4938
4946
|
"id",
|
|
4939
4947
|
"checked",
|
|
4940
4948
|
"disabled",
|
|
@@ -4942,7 +4950,7 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4942
4950
|
"aria-describedby",
|
|
4943
4951
|
"aria-invalid",
|
|
4944
4952
|
"aria-errormessage"
|
|
4945
|
-
],
|
|
4953
|
+
], Mo = ["id"], No = /* @__PURE__ */ u({
|
|
4946
4954
|
__name: "GToggle",
|
|
4947
4955
|
props: /*@__PURE__*/ p({
|
|
4948
4956
|
label: {},
|
|
@@ -4977,11 +4985,11 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4977
4985
|
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()));
|
|
4978
4986
|
}
|
|
4979
4987
|
let p = L(), m = L();
|
|
4980
|
-
return (t, n) => (S(), o("div",
|
|
4988
|
+
return (t, n) => (S(), o("div", ko, [s("div", { class: g(["g-toggle-control", { "g-external-label": e.externalLabel }]) }, [e.externalLabel ? a("", !0) : (S(), o("label", {
|
|
4981
4989
|
key: 0,
|
|
4982
4990
|
class: "g-label",
|
|
4983
4991
|
for: F(m)
|
|
4984
|
-
}, [D(t.$slots, "label", {}, () => [c(j(e.label), 1)])], 8,
|
|
4992
|
+
}, [D(t.$slots, "label", {}, () => [c(j(e.label), 1)])], 8, Ao)), s("div", { class: g(["g-toggle", { "g-has-error": e.error }]) }, [s("div", { class: g(["g-toggle-track", [r.value ? "g-right" : "g-left", { "g-disabled": e.disabled }]]) }, [s("span", {
|
|
4985
4993
|
class: g(["g-toggle-thumb", r.value ? "g-right" : "g-left"]),
|
|
4986
4994
|
"aria-hidden": "true"
|
|
4987
4995
|
}, null, 2), s("input", {
|
|
@@ -4995,30 +5003,30 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4995
5003
|
"aria-errormessage": e.error ? F(p) + "-error" : void 0,
|
|
4996
5004
|
onChange: d,
|
|
4997
5005
|
onKeydown: f
|
|
4998
|
-
}, null, 40,
|
|
5006
|
+
}, null, 40, jo)], 2)], 2)], 2), e.error ? (S(), o("div", {
|
|
4999
5007
|
key: 0,
|
|
5000
5008
|
id: `${F(p)}-error`,
|
|
5001
5009
|
class: "g-form-error",
|
|
5002
5010
|
role: "alert",
|
|
5003
5011
|
"aria-atomic": "true"
|
|
5004
|
-
}, j(e.error), 9,
|
|
5012
|
+
}, j(e.error), 9, Mo)) : a("", !0)]));
|
|
5005
5013
|
}
|
|
5006
5014
|
});
|
|
5007
5015
|
//#endregion
|
|
5008
5016
|
//#region src/compose/useActiveLink.ts
|
|
5009
|
-
function
|
|
5017
|
+
function Po(e, t, n) {
|
|
5010
5018
|
let r = [
|
|
5011
5019
|
0,
|
|
5012
5020
|
.25,
|
|
5013
5021
|
.5,
|
|
5014
5022
|
.75,
|
|
5015
5023
|
1
|
|
5016
|
-
], i = `${-t}px 0px 0px 0px`, a = /* @__PURE__ */ new Map(), o = T(Array.from(
|
|
5017
|
-
let t = Array.from(
|
|
5024
|
+
], i = `${-t}px 0px 0px 0px`, a = /* @__PURE__ */ new Map(), o = T(Array.from(q(e)?.children || [])), s = () => {
|
|
5025
|
+
let t = Array.from(q(e)?.children || []), n = new Set(t);
|
|
5018
5026
|
for (let e of a.keys()) n.has(e) || a.delete(e);
|
|
5019
5027
|
o.value = t;
|
|
5020
5028
|
};
|
|
5021
|
-
U(() =>
|
|
5029
|
+
U(() => q(e), () => {
|
|
5022
5030
|
s();
|
|
5023
5031
|
}, {
|
|
5024
5032
|
immediate: !0,
|
|
@@ -5043,7 +5051,7 @@ function jo(e, t, n) {
|
|
|
5043
5051
|
}
|
|
5044
5052
|
//#endregion
|
|
5045
5053
|
//#region src/compose/useSidebar.ts
|
|
5046
|
-
function
|
|
5054
|
+
function Fo(e = "(max-width: 800px)") {
|
|
5047
5055
|
let t = L(), n = T(!1), r = se(e, { ssrWidth: 1e3 });
|
|
5048
5056
|
function i(e) {
|
|
5049
5057
|
if (!r.value || !n.value) return;
|
|
@@ -5074,41 +5082,41 @@ function Mo(e = "(max-width: 800px)") {
|
|
|
5074
5082
|
}
|
|
5075
5083
|
//#endregion
|
|
5076
5084
|
//#region src/compose/usePaging.ts
|
|
5077
|
-
function
|
|
5085
|
+
function Io(e) {
|
|
5078
5086
|
let t = /* @__PURE__ */ new Set();
|
|
5079
5087
|
return (e ?? []).filter((e) => !e?.key || t.has(e.key) || e.order !== 1 && e.order !== -1 ? !1 : (t.add(e.key), !0));
|
|
5080
5088
|
}
|
|
5081
|
-
function
|
|
5082
|
-
return e == null ? [] :
|
|
5089
|
+
function Lo(e) {
|
|
5090
|
+
return e == null ? [] : Io((typeof e == "string" ? e.split(",") : e).filter((e) => e !== null).map((e) => e.trim()).filter(Boolean).map((e) => ({
|
|
5083
5091
|
key: e.replace(/^-/, ""),
|
|
5084
5092
|
order: e.startsWith("-") ? -1 : 1
|
|
5085
5093
|
})));
|
|
5086
5094
|
}
|
|
5087
|
-
function
|
|
5088
|
-
let t =
|
|
5095
|
+
function Ro(e) {
|
|
5096
|
+
let t = Io(e);
|
|
5089
5097
|
if (t.length !== 0) return t.map(({ key: e, order: t }) => `${t === -1 ? "-" : ""}${e}`);
|
|
5090
5098
|
}
|
|
5091
|
-
function
|
|
5092
|
-
let n =
|
|
5099
|
+
function zo(e, t = []) {
|
|
5100
|
+
let n = Io(e);
|
|
5093
5101
|
if (n.length === 0) return;
|
|
5094
5102
|
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 ? "-" : "";
|
|
5095
5103
|
return t.forEach((e) => {
|
|
5096
5104
|
i.has(e) || r.push(`${a}${e}`);
|
|
5097
5105
|
}), r.join(",");
|
|
5098
5106
|
}
|
|
5099
|
-
function
|
|
5107
|
+
function Bo(e) {
|
|
5100
5108
|
return Array.isArray(e) ? [...e] : e;
|
|
5101
5109
|
}
|
|
5102
|
-
function
|
|
5110
|
+
function Vo(e, t) {
|
|
5103
5111
|
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;
|
|
5104
5112
|
}
|
|
5105
|
-
function
|
|
5113
|
+
function Ho(e, t) {
|
|
5106
5114
|
return e.length === t.length && e.every((e, n) => {
|
|
5107
5115
|
let r = t[n];
|
|
5108
5116
|
return e.key === r?.key && e.order === r?.order;
|
|
5109
5117
|
});
|
|
5110
5118
|
}
|
|
5111
|
-
function
|
|
5119
|
+
function Uo(e, t) {
|
|
5112
5120
|
if (typeof e == "string") return Number(e);
|
|
5113
5121
|
if (Array.isArray(e)) {
|
|
5114
5122
|
let n = e.find((e) => e !== null);
|
|
@@ -5116,35 +5124,35 @@ function Bo(e, t) {
|
|
|
5116
5124
|
}
|
|
5117
5125
|
return t;
|
|
5118
5126
|
}
|
|
5119
|
-
function
|
|
5127
|
+
function Wo(e = {}) {
|
|
5120
5128
|
let t = e.defaultPageSize ?? 50, n = e.defaultPageOffset ?? 0, i = e.sortKey ?? "sort", a = e.pageSizeKey ?? "pageSize", o = e.pageOffsetKey ?? "pageOffset", s = A([]), c = T(t), l = T(n);
|
|
5121
5129
|
return e.route && e.router && (U(() => e.route?.query[i], (e) => {
|
|
5122
|
-
let t =
|
|
5123
|
-
|
|
5130
|
+
let t = Lo(e);
|
|
5131
|
+
Ho(s.value, t) || (s.value = t);
|
|
5124
5132
|
}, { immediate: !0 }), U(() => e.route?.query[a], (e) => {
|
|
5125
|
-
let n =
|
|
5133
|
+
let n = Uo(e, t);
|
|
5126
5134
|
c.value !== n && (c.value = n);
|
|
5127
5135
|
}, { immediate: !0 }), U(() => e.route?.query[o], (e) => {
|
|
5128
|
-
let t =
|
|
5136
|
+
let t = Uo(e, n);
|
|
5129
5137
|
l.value !== t && (l.value = t);
|
|
5130
5138
|
}, { immediate: !0 }), U([
|
|
5131
5139
|
s,
|
|
5132
5140
|
c,
|
|
5133
5141
|
l
|
|
5134
5142
|
], ([r, s, c]) => {
|
|
5135
|
-
let l = { ...e.route.query }, u =
|
|
5136
|
-
u === void 0 ? delete l[i] : l[i] =
|
|
5143
|
+
let l = { ...e.route.query }, u = Ro(r);
|
|
5144
|
+
u === void 0 ? delete l[i] : l[i] = Bo(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);
|
|
5137
5145
|
let d = /* @__PURE__ */ new Set([...Object.keys(e.route.query), ...Object.keys(l)]), f = !1;
|
|
5138
|
-
for (let t of d) if (!
|
|
5146
|
+
for (let t of d) if (!Vo(e.route.query[t], l[t])) {
|
|
5139
5147
|
f = !0;
|
|
5140
5148
|
break;
|
|
5141
5149
|
}
|
|
5142
5150
|
f && e.router.replace({ query: l });
|
|
5143
5151
|
})), {
|
|
5144
5152
|
sort: r({
|
|
5145
|
-
get: () =>
|
|
5153
|
+
get: () => Io(s.value),
|
|
5146
5154
|
set: (e) => {
|
|
5147
|
-
s.value =
|
|
5155
|
+
s.value = Io(e);
|
|
5148
5156
|
}
|
|
5149
5157
|
}),
|
|
5150
5158
|
pageSize: c,
|
|
@@ -5153,7 +5161,7 @@ function Vo(e = {}) {
|
|
|
5153
5161
|
}
|
|
5154
5162
|
//#endregion
|
|
5155
5163
|
//#region src/compose/useTableChanges.ts
|
|
5156
|
-
function
|
|
5164
|
+
function Go() {
|
|
5157
5165
|
let e = k(/* @__PURE__ */ new Map()), t = ne(), n = (n) => {
|
|
5158
5166
|
let r = n.column.key, i = n.row.key, a = n.value, o = n.previousValue;
|
|
5159
5167
|
e.has(i) || e.set(i, k(/* @__PURE__ */ new Map()));
|
|
@@ -5257,7 +5265,7 @@ function Ho() {
|
|
|
5257
5265
|
}
|
|
5258
5266
|
//#endregion
|
|
5259
5267
|
//#region src/compose/usePersistentTableColumnState.ts
|
|
5260
|
-
function
|
|
5268
|
+
function Ko(e, t) {
|
|
5261
5269
|
if (!e || typeof e != "object" || Array.isArray(e)) return {};
|
|
5262
5270
|
let n = new Set(t.map(({ key: e }) => String(e))), r = {};
|
|
5263
5271
|
for (let [t, i] of Object.entries(e)) {
|
|
@@ -5267,13 +5275,13 @@ function Uo(e, t) {
|
|
|
5267
5275
|
}
|
|
5268
5276
|
return r;
|
|
5269
5277
|
}
|
|
5270
|
-
function
|
|
5278
|
+
function qo(e, t) {
|
|
5271
5279
|
let n = oe(e, {});
|
|
5272
5280
|
return U(() => P(t).map(({ key: e }) => String(e)), () => {
|
|
5273
|
-
n.value =
|
|
5281
|
+
n.value = Ko(n.value, P(t));
|
|
5274
5282
|
}, { immediate: !0 }), { columnState: n };
|
|
5275
5283
|
}
|
|
5276
5284
|
//#endregion
|
|
5277
|
-
export { ht as $, li as A, An as B,
|
|
5285
|
+
export { ht as $, li as A, An as B, Ba as C, ui as D, ka as E, Rr as F, bn as G, Dn as H, Dr as I, rn as J, fn as K, dr as L, di as M, vi as N, ci as O, _i as P, St as Q, Xn as R, Ha as S, Fa as T, Cn as U, On as V, xn as W, Nt as X, qt as Y, Dt as Z, ro as _, Lo as a, qe as at, Xa as b, Fo as c, ke as ct, Oo as d, be as dt, st as et, So as f, ye as ft, uo as g, fo as h, Io as i, Ke as it, gi as j, hi as k, Po as l, De as lt, yo as m, Go as n, tt as nt, Ro as o, Re as ot, xo as p, Q as pt, sn as q, zo as r, et as rt, Wo as s, $ as st, qo as t, nt as tt, No as u, Ee as ut, no as v, Ia as w, Ka as x, to as y, Fn as z };
|
|
5278
5286
|
|
|
5279
|
-
//# sourceMappingURL=grad-vue-
|
|
5287
|
+
//# sourceMappingURL=grad-vue-B_FDohCx.js.map
|