@illinois-grad/grad-vue 2.5.3 → 2.5.5
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 +80 -0
- package/dist/components/GCurrencyInput.vue.d.ts +11 -0
- package/dist/components/GDateInput.vue.d.ts +11 -0
- package/dist/components/GDateRangeInput.vue.d.ts +11 -0
- package/dist/components/GEmailInput.vue.d.ts +11 -0
- package/dist/components/GMultiSelect.vue.d.ts +11 -0
- package/dist/components/GSelect.vue.d.ts +11 -0
- package/dist/components/GSelectButton.vue.d.ts +11 -0
- package/dist/components/GTextInput.vue.d.ts +11 -0
- package/dist/{grad-vue-D4cwVtpD.js → grad-vue-DImrz5Wj.js} +435 -360
- package/dist/grad-vue-DImrz5Wj.js.map +1 -0
- package/dist/grad-vue-elements.js +379 -304
- 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-D4cwVtpD.js.map +0 -1
|
@@ -403,18 +403,23 @@ var je = ["id"], Me = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
403
403
|
d: "M320 64C334.7 64 348.2 72.1 355.2 85L571.2 485C577.9 497.4 577.6 512.4 570.4 524.5C563.2 536.6 550.1 544 536 544L104 544C89.9 544 76.8 536.6 69.6 524.5C62.4 512.4 62.1 497.4 68.8 485L284.8 85C291.8 72.1 305.3 64 320 64zM320 416C302.3 416 288 430.3 288 448C288 465.7 302.3 480 320 480C337.7 480 352 465.7 352 448C352 430.3 337.7 416 320 416zM320 224C301.8 224 287.3 239.5 288.6 257.7L296 361.7C296.9 374.2 307.4 384 319.9 384C332.5 384 342.9 374.3 343.8 361.7L351.2 257.7C352.5 239.5 338.1 224 319.8 224z"
|
|
404
404
|
})], -1), c(" " + N(e), 1)]))), 128))], 8, je)) : a("", !0);
|
|
405
405
|
}
|
|
406
|
-
}), [["__scopeId", "data-v-8d738358"]]), Ne = ["for"], Pe =
|
|
406
|
+
}), [["__scopeId", "data-v-8d738358"]]), Ne = ["for"], Pe = {
|
|
407
|
+
key: 0,
|
|
408
|
+
class: "g-text-input-required",
|
|
409
|
+
"aria-hidden": "true"
|
|
410
|
+
}, Fe = ["id"], Ie = {
|
|
407
411
|
key: 0,
|
|
408
412
|
class: "g-text-input-prefix"
|
|
409
|
-
},
|
|
413
|
+
}, Le = [
|
|
410
414
|
"value",
|
|
411
415
|
"placeholder",
|
|
412
416
|
"disabled",
|
|
417
|
+
"required",
|
|
413
418
|
"aria-invalid"
|
|
414
|
-
],
|
|
419
|
+
], Re = {
|
|
415
420
|
key: 1,
|
|
416
421
|
class: "g-text-input-suffix"
|
|
417
|
-
},
|
|
422
|
+
}, ze = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
418
423
|
inheritAttrs: !1,
|
|
419
424
|
__name: "GTextInput",
|
|
420
425
|
props: /* @__PURE__ */ m({
|
|
@@ -424,6 +429,10 @@ var je = ["id"], Me = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
424
429
|
type: Boolean,
|
|
425
430
|
default: !1
|
|
426
431
|
},
|
|
432
|
+
required: {
|
|
433
|
+
type: Boolean,
|
|
434
|
+
default: !1
|
|
435
|
+
},
|
|
427
436
|
errors: { default: () => [] },
|
|
428
437
|
instructions: { default: "" },
|
|
429
438
|
prefix: { default: "" },
|
|
@@ -474,18 +483,19 @@ var je = ["id"], Me = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
474
483
|
key: 0,
|
|
475
484
|
for: m.value,
|
|
476
485
|
class: "g-text-input-label"
|
|
477
|
-
}, N(n.label),
|
|
486
|
+
}, [c(N(n.label), 1), n.required ? (C(), o("span", Pe, " *")) : a("", !0)], 8, Ne)) : a("", !0),
|
|
478
487
|
t.$slots.instructions || e.instructions ? (C(), o("div", {
|
|
479
488
|
key: 1,
|
|
480
489
|
id: "instructions-" + L(u),
|
|
481
490
|
class: "g-text-input-instructions"
|
|
482
|
-
}, [O(t.$slots, "instructions", {}, () => [c(N(e.instructions), 1)], !0)], 8,
|
|
491
|
+
}, [O(t.$slots, "instructions", {}, () => [c(N(e.instructions), 1)], !0)], 8, Fe)) : a("", !0),
|
|
483
492
|
s("div", { class: _([{ "g-text-input-field-wrapper": !0 }, `g-text-input-field-wrapper--${e.name || "nameless"}`]) }, [
|
|
484
|
-
n.prefix ? (C(), o("span",
|
|
493
|
+
n.prefix ? (C(), o("span", Ie, N(n.prefix), 1)) : a("", !0),
|
|
485
494
|
s("input", h({
|
|
486
495
|
value: i.value,
|
|
487
496
|
placeholder: n.placeholder,
|
|
488
497
|
disabled: n.disabled,
|
|
498
|
+
required: n.required,
|
|
489
499
|
onInput: w,
|
|
490
500
|
onBlur: T,
|
|
491
501
|
onPaste: D,
|
|
@@ -497,8 +507,8 @@ var je = ["id"], Me = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
497
507
|
id: m.value,
|
|
498
508
|
"aria-describedby": t.$slots.instructions || e.instructions ? "instructions-" + L(u) : void 0,
|
|
499
509
|
"aria-errormessage": L(v) ? "error-message-" + L(u) : void 0
|
|
500
|
-
}, { "aria-invalid": L(v) ? "true" : "false" }), null, 16,
|
|
501
|
-
n.suffix ? (C(), o("span",
|
|
510
|
+
}, { "aria-invalid": L(v) ? "true" : "false" }), null, 16, Le),
|
|
511
|
+
n.suffix ? (C(), o("span", Re, N(n.suffix), 1)) : a("", !0)
|
|
502
512
|
], 2),
|
|
503
513
|
l(Me, {
|
|
504
514
|
errors: L(g),
|
|
@@ -506,28 +516,28 @@ var je = ["id"], Me = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
506
516
|
}, null, 8, ["errors", "id"])
|
|
507
517
|
], 2));
|
|
508
518
|
}
|
|
509
|
-
}), [["__scopeId", "data-v-
|
|
510
|
-
function
|
|
511
|
-
if (!(typeof document > "u")) if (
|
|
519
|
+
}), [["__scopeId", "data-v-a769f5df"]]), Be = 100, Ve = 200, He = 102, Ue = E([]), We = E([]), Ge = E([]);
|
|
520
|
+
function Ke() {
|
|
521
|
+
if (!(typeof document > "u")) if (Ge.value.length > 0) {
|
|
512
522
|
let e = window.innerWidth - document.documentElement.clientWidth;
|
|
513
523
|
document.body.classList.add("g-scroll-lock"), document.body.style.paddingRight = `${e}px`, document.body.style.setProperty("--g-scrollbar-width", `${e}px`);
|
|
514
524
|
} else document.body.style.paddingRight = "0", document.body.classList.remove("g-scroll-lock"), document.body.style.removeProperty("--g-scrollbar-width");
|
|
515
525
|
}
|
|
516
|
-
function
|
|
526
|
+
function qe(e, t = !1, n = !1) {
|
|
517
527
|
if (typeof document > "u") return {};
|
|
518
|
-
let i = t ?
|
|
528
|
+
let i = t ? We : Ue;
|
|
519
529
|
function a() {
|
|
520
|
-
i.value.push(e), n && !
|
|
530
|
+
i.value.push(e), n && !Ge.value.includes(e) && (Ge.value.push(e), Ke());
|
|
521
531
|
}
|
|
522
532
|
function o() {
|
|
523
533
|
let t = i.value.lastIndexOf(e);
|
|
524
534
|
t !== -1 && i.value.splice(t, 1);
|
|
525
|
-
let n =
|
|
526
|
-
n !== -1 && (
|
|
535
|
+
let n = Ge.value.lastIndexOf(e);
|
|
536
|
+
n !== -1 && (Ge.value.splice(n, 1), Ke());
|
|
527
537
|
}
|
|
528
|
-
let s = r(() => !t &&
|
|
538
|
+
let s = r(() => !t && We.value.length > 0 ? !1 : i.value.length > 0 && i.value[i.value.length - 1] === e), c = r(() => {
|
|
529
539
|
let n = i.value.indexOf(e);
|
|
530
|
-
return n === -1 ? 0 : (t ?
|
|
540
|
+
return n === -1 ? 0 : (t ? Ve : Be) + n;
|
|
531
541
|
});
|
|
532
542
|
return x(o), {
|
|
533
543
|
push: a,
|
|
@@ -536,31 +546,31 @@ function Ke(e, t = !1, n = !1) {
|
|
|
536
546
|
zIndex: c
|
|
537
547
|
};
|
|
538
548
|
}
|
|
539
|
-
function
|
|
549
|
+
function Je() {
|
|
540
550
|
return typeof document > "u" ? {} : {
|
|
541
|
-
hasModal: r(() =>
|
|
542
|
-
hasOverlay: r(() =>
|
|
543
|
-
hasScrollLock: r(() =>
|
|
551
|
+
hasModal: r(() => We.value.length > 0),
|
|
552
|
+
hasOverlay: r(() => Ue.value.length > 0 || We.value.length > 0),
|
|
553
|
+
hasScrollLock: r(() => Ge.value.length > 0)
|
|
544
554
|
};
|
|
545
555
|
}
|
|
546
|
-
function
|
|
556
|
+
function Ye() {
|
|
547
557
|
let e = 0;
|
|
548
|
-
return
|
|
549
|
-
e = Math.max(e, ze + n);
|
|
550
|
-
}), Ue.value.forEach((t, n) => {
|
|
558
|
+
return Ue.value.forEach((t, n) => {
|
|
551
559
|
e = Math.max(e, Be + n);
|
|
552
|
-
}),
|
|
560
|
+
}), We.value.forEach((t, n) => {
|
|
561
|
+
e = Math.max(e, Ve + n);
|
|
562
|
+
}), e > 0 ? e + 1 : He;
|
|
553
563
|
}
|
|
554
564
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
555
|
-
var
|
|
565
|
+
var Xe = (e) => e != null;
|
|
556
566
|
//#endregion
|
|
557
567
|
//#region ../../node_modules/@vueuse/integrations/dist/useFocusTrap-lXZ_YG-8.js
|
|
558
|
-
function
|
|
568
|
+
function Ze(e, t = {}) {
|
|
559
569
|
let n, { immediate: i, ...a } = t, o = M(!1), s = M(!1), c = (e) => n && n.activate(e), l = (e) => n && n.deactivate(e);
|
|
560
570
|
return W(r(() => te(I(e)).map((e) => {
|
|
561
571
|
let t = I(e);
|
|
562
572
|
return typeof t == "string" ? t : ne(t);
|
|
563
|
-
}).filter(
|
|
573
|
+
}).filter(Xe)), (e) => {
|
|
564
574
|
if (e.length) if (!n) n = ue(e, {
|
|
565
575
|
...a,
|
|
566
576
|
onActivate() {
|
|
@@ -589,7 +599,7 @@ function Xe(e, t = {}) {
|
|
|
589
599
|
}
|
|
590
600
|
//#endregion
|
|
591
601
|
//#region src/compose/useOverlayFocus.ts
|
|
592
|
-
var
|
|
602
|
+
var Qe = [
|
|
593
603
|
"a[href]",
|
|
594
604
|
"button:not([disabled])",
|
|
595
605
|
"input:not([disabled])",
|
|
@@ -598,8 +608,8 @@ var Ze = [
|
|
|
598
608
|
"[tabindex]:not([tabindex='-1'])",
|
|
599
609
|
"[contenteditable='true']"
|
|
600
610
|
].join(",");
|
|
601
|
-
function
|
|
602
|
-
let r = E(!1), i = () => !!e.value?.querySelector(
|
|
611
|
+
function $e(e, t, n = !1) {
|
|
612
|
+
let r = E(!1), i = () => !!e.value?.querySelector(Qe), { activate: a, deactivate: o, pause: s, unpause: c } = Ze(e, {
|
|
603
613
|
immediate: !1,
|
|
604
614
|
clickOutsideDeactivates: n,
|
|
605
615
|
initialFocus: () => {
|
|
@@ -643,7 +653,7 @@ function Qe(e, t, n = !1) {
|
|
|
643
653
|
}
|
|
644
654
|
//#endregion
|
|
645
655
|
//#region src/compose/useOverlayEscape.ts
|
|
646
|
-
function
|
|
656
|
+
function et(e, t, n, r, i) {
|
|
647
657
|
function a(i) {
|
|
648
658
|
if (!(!n.value || !t.value)) {
|
|
649
659
|
for (let t of e) if (t.value?.contains(i.target)) return;
|
|
@@ -663,7 +673,7 @@ function $e(e, t, n, r, i) {
|
|
|
663
673
|
}
|
|
664
674
|
//#endregion
|
|
665
675
|
//#region src/compose/popoverPosition.ts
|
|
666
|
-
function
|
|
676
|
+
function tt(e, t, n, r) {
|
|
667
677
|
let i = r?.gap ?? 8, a = r?.margin ?? 16, o = r?.preferAbove ?? !1, s = !1, c = !1, l;
|
|
668
678
|
o ? e.top - t.height - i > n.top + a ? (l = e.top - t.height - i, s = !0) : e.bottom + t.height + i <= n.bottom - a ? l = e.bottom + i : (l = n.top + a, c = !0) : e.bottom + t.height + i > n.bottom - a && e.top - t.height - i > n.top + a ? (l = e.top - t.height - i, s = !0) : e.bottom + t.height + i > n.bottom - a && e.top - t.height - i <= n.top + a ? (l = n.top + a, c = !0) : l = e.bottom + i;
|
|
669
679
|
let u = e.left + (e.width - t.width) / 2;
|
|
@@ -679,7 +689,7 @@ function et(e, t, n, r) {
|
|
|
679
689
|
}
|
|
680
690
|
//#endregion
|
|
681
691
|
//#region src/components/GPopover.vue?vue&type=script&setup=true&lang.ts
|
|
682
|
-
var
|
|
692
|
+
var nt = { class: "g-popover-wrap" }, rt = ["id"], it = ["aria-labelledby", "aria-label"], at = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
683
693
|
__name: "GPopover",
|
|
684
694
|
props: {
|
|
685
695
|
minimal: {
|
|
@@ -701,8 +711,8 @@ var tt = { class: "g-popover-wrap" }, nt = ["id"], rt = ["aria-labelledby", "ari
|
|
|
701
711
|
W(F(d, "modelValue"), (e) => {
|
|
702
712
|
p.value = e;
|
|
703
713
|
});
|
|
704
|
-
let m = V(), h = r(() => !!m.trigger), v = H("triggerRef"), b = H("popoverRef"), { isCustomElement: S } = fe(), w = S, T = z(), { push: D, pop: k, isTop: A, zIndex: j } =
|
|
705
|
-
|
|
714
|
+
let m = V(), h = r(() => !!m.trigger), v = H("triggerRef"), b = H("popoverRef"), { isCustomElement: S } = fe(), w = S, T = z(), { push: D, pop: k, isTop: A, zIndex: j } = qe(T, !0), { activate: M, deactivate: N } = $e(b, A, !0);
|
|
715
|
+
et([b, v], A, p, I, k), W(p, (e) => {
|
|
706
716
|
e ? (g(() => {
|
|
707
717
|
g(() => M());
|
|
708
718
|
}), D(), f("show")) : (N(), k(), f("hide"));
|
|
@@ -737,7 +747,7 @@ var tt = { class: "g-popover-wrap" }, nt = ["id"], rt = ["aria-labelledby", "ari
|
|
|
737
747
|
}, J.value = !1, G.value = !1, U.value = { left: "50%" };
|
|
738
748
|
return;
|
|
739
749
|
}
|
|
740
|
-
let { top: r, left: i, xOffset: a, placedAbove: o, overlay: s } =
|
|
750
|
+
let { top: r, left: i, xOffset: a, placedAbove: o, overlay: s } = tt(n.getBoundingClientRect(), e, t, { gap: d.minimal ? 0 : 8 });
|
|
741
751
|
B.value = {
|
|
742
752
|
top: r,
|
|
743
753
|
left: i
|
|
@@ -757,13 +767,13 @@ var tt = { class: "g-popover-wrap" }, nt = ["id"], rt = ["aria-labelledby", "ari
|
|
|
757
767
|
show: P,
|
|
758
768
|
hide: I,
|
|
759
769
|
toggle: R
|
|
760
|
-
}), (r, c) => (C(), o("div",
|
|
770
|
+
}), (r, c) => (C(), o("div", nt, [h.value ? (C(), o("div", {
|
|
761
771
|
key: 0,
|
|
762
772
|
ref_key: "triggerRef",
|
|
763
773
|
ref: v,
|
|
764
774
|
class: "g-popover-trigger",
|
|
765
775
|
id: `${L(T)}-trigger`
|
|
766
|
-
}, [O(r.$slots, "trigger", { toggle: R }, void 0, !0)], 8,
|
|
776
|
+
}, [O(r.$slots, "trigger", { toggle: R }, void 0, !0)], 8, rt)) : a("", !0), (C(), i(t, {
|
|
767
777
|
to: "#modal-root",
|
|
768
778
|
disabled: L(w)
|
|
769
779
|
}, [l(n, {
|
|
@@ -812,41 +822,41 @@ var tt = { class: "g-popover-wrap" }, nt = ["id"], rt = ["aria-labelledby", "ari
|
|
|
812
822
|
fill: "currentColor",
|
|
813
823
|
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"
|
|
814
824
|
})], -1)]]))
|
|
815
|
-
], 14,
|
|
825
|
+
], 14, it)), [[ee, p.value]]) : a("", !0)]),
|
|
816
826
|
_: 3
|
|
817
827
|
})], 8, ["disabled"]))]));
|
|
818
828
|
}
|
|
819
|
-
}), [["__scopeId", "data-v-7510826c"]]),
|
|
820
|
-
function
|
|
821
|
-
return `${e}-${++
|
|
829
|
+
}), [["__scopeId", "data-v-7510826c"]]), ot = 1;
|
|
830
|
+
function st(e = "v-gtooltip") {
|
|
831
|
+
return `${e}-${++ot}`;
|
|
822
832
|
}
|
|
823
|
-
function
|
|
833
|
+
function ct(e, t = "v-gtooltip") {
|
|
824
834
|
let n = e.getAttribute("aria-describedby");
|
|
825
835
|
if (n) return n;
|
|
826
|
-
let r =
|
|
836
|
+
let r = st(t);
|
|
827
837
|
return e.setAttribute("aria-describedby", r), r;
|
|
828
838
|
}
|
|
829
|
-
function
|
|
839
|
+
function lt(e, t) {
|
|
830
840
|
let n = document.createElement("div");
|
|
831
841
|
return n.className = "v-gtooltip", n.textContent = e, n.setAttribute("role", "tooltip"), n.setAttribute("id", t), n;
|
|
832
842
|
}
|
|
833
|
-
function
|
|
843
|
+
function ut(e) {
|
|
834
844
|
(document.getElementById("modal-root") ?? document.body).appendChild(e);
|
|
835
845
|
}
|
|
836
|
-
function
|
|
837
|
-
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), { top: i, left: a, placedAbove: o } =
|
|
846
|
+
function dt(e, t) {
|
|
847
|
+
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), { top: i, left: a, placedAbove: o } = tt(n, r, new DOMRect(0, 0, window.innerWidth, window.innerHeight), {
|
|
838
848
|
gap: 8,
|
|
839
849
|
margin: 8,
|
|
840
850
|
preferAbove: !0
|
|
841
851
|
}), s = (n.left + n.width / 2 - a) / r.width * 100;
|
|
842
|
-
t.style.setProperty("--v-gtooltip-arrow-x", `${s}%`), t.classList.remove("v-gtooltip-bottom"), o || t.classList.add("v-gtooltip-bottom"), t.style.left = `${a}px`, t.style.top = `${i}px`, t.style.zIndex = `${
|
|
852
|
+
t.style.setProperty("--v-gtooltip-arrow-x", `${s}%`), t.classList.remove("v-gtooltip-bottom"), o || t.classList.add("v-gtooltip-bottom"), t.style.left = `${a}px`, t.style.top = `${i}px`, t.style.zIndex = `${Ye()}`, t.style.opacity = "1";
|
|
843
853
|
}
|
|
844
|
-
function
|
|
854
|
+
function ft(e) {
|
|
845
855
|
e.style.opacity = "0";
|
|
846
856
|
}
|
|
847
857
|
//#endregion
|
|
848
858
|
//#region src/components/GTooltip.vue
|
|
849
|
-
var
|
|
859
|
+
var pt = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
850
860
|
__name: "GTooltip",
|
|
851
861
|
props: { text: {} },
|
|
852
862
|
emits: ["tooltip-hide"],
|
|
@@ -861,12 +871,12 @@ var ft = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
861
871
|
return t instanceof HTMLElement ? t : null;
|
|
862
872
|
}
|
|
863
873
|
function S() {
|
|
864
|
-
y && (v || (v = l.value ?
|
|
865
|
-
f.value && (p.value || m.value) && y &&
|
|
874
|
+
y && (v || (v = l.value ? st("g-tooltip") : ct(y, "g-tooltip"), l.value && y.setAttribute("aria-describedby", v)), f.value || (f.value = lt(i.text, v), ut(f.value), h = new ResizeObserver(() => {
|
|
875
|
+
f.value && (p.value || m.value) && y && dt(y, f.value);
|
|
866
876
|
}), h.observe(f.value)));
|
|
867
877
|
}
|
|
868
878
|
function w() {
|
|
869
|
-
f.value && (p.value || m.value) && y &&
|
|
879
|
+
f.value && (p.value || m.value) && y && dt(y, f.value);
|
|
870
880
|
}
|
|
871
881
|
function T() {
|
|
872
882
|
p.value = !0;
|
|
@@ -912,10 +922,10 @@ var ft = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
912
922
|
f.value && (f.value.textContent = e);
|
|
913
923
|
}), W(() => p.value || m.value, (e) => {
|
|
914
924
|
if (e) {
|
|
915
|
-
S(), f.value && y &&
|
|
925
|
+
S(), f.value && y && dt(y, f.value), g ||= (window.addEventListener("scroll", w, { capture: !0 }), !0);
|
|
916
926
|
return;
|
|
917
927
|
}
|
|
918
|
-
g &&= (window.removeEventListener("scroll", w, { capture: !0 }), !1), f.value && (
|
|
928
|
+
g &&= (window.removeEventListener("scroll", w, { capture: !0 }), !1), f.value && (ft(f.value), _ && clearTimeout(_), _ = window.setTimeout(() => {
|
|
919
929
|
s("tooltip-hide");
|
|
920
930
|
}, 150));
|
|
921
931
|
}), x(() => {
|
|
@@ -935,14 +945,19 @@ var ft = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
935
945
|
class: "g-tooltip-trigger"
|
|
936
946
|
}, [O(e.$slots, "trigger", {}, void 0, !0)], 512)) : a("", !0)], 512));
|
|
937
947
|
}
|
|
938
|
-
}), [["__scopeId", "data-v-003155b3"]]),
|
|
948
|
+
}), [["__scopeId", "data-v-003155b3"]]), mt = ["disabled"], ht = { class: "g-select-btn-legend" }, gt = {
|
|
949
|
+
key: 0,
|
|
950
|
+
class: "g-select-btn-required",
|
|
951
|
+
"aria-hidden": "true"
|
|
952
|
+
}, _t = { class: "g-select-btn-row" }, vt = [
|
|
939
953
|
"id",
|
|
940
954
|
"name",
|
|
941
955
|
"value",
|
|
942
956
|
"checked",
|
|
943
957
|
"disabled",
|
|
958
|
+
"required",
|
|
944
959
|
"onChange"
|
|
945
|
-
],
|
|
960
|
+
], yt = ["for"], bt = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
946
961
|
__name: "GSelectButton",
|
|
947
962
|
props: /* @__PURE__ */ m({
|
|
948
963
|
options: {},
|
|
@@ -953,6 +968,10 @@ var ft = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
953
968
|
type: Boolean,
|
|
954
969
|
default: !1
|
|
955
970
|
},
|
|
971
|
+
required: {
|
|
972
|
+
type: Boolean,
|
|
973
|
+
default: !1
|
|
974
|
+
},
|
|
956
975
|
errors: { default: () => [] },
|
|
957
976
|
formKey: { default: void 0 }
|
|
958
977
|
}, {
|
|
@@ -961,57 +980,58 @@ var ft = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
961
980
|
}),
|
|
962
981
|
emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
|
|
963
982
|
setup(t, { emit: n }) {
|
|
964
|
-
let i = t,
|
|
983
|
+
let i = t, u = n, d = B(t, "modelValue"), f = z(), { displayErrors: p, hasErrors: m } = $({
|
|
965
984
|
name: i.name,
|
|
966
|
-
value:
|
|
985
|
+
value: d,
|
|
967
986
|
errors: F(i, "errors"),
|
|
968
987
|
formKey: i.formKey
|
|
969
|
-
}),
|
|
988
|
+
}), h = r(() => i.options.map((e) => typeof e == "string" ? {
|
|
970
989
|
label: e,
|
|
971
990
|
value: e
|
|
972
|
-
} : e)),
|
|
991
|
+
} : e)), g = r(() => ["g-select-btn-group", `g-select-btn-group--${i.size}`]), v = (e) => [
|
|
973
992
|
"g-select-btn",
|
|
974
993
|
e ? "g-select-btn--selected" : "",
|
|
975
994
|
{ "g-select-btn--disabled": i.disabled }
|
|
976
995
|
];
|
|
977
|
-
function
|
|
978
|
-
!i.disabled && e !==
|
|
996
|
+
function y(e) {
|
|
997
|
+
!i.disabled && e !== d.value && (d.value = e, u("change", e));
|
|
979
998
|
}
|
|
980
999
|
return (t, n) => (C(), o("fieldset", {
|
|
981
|
-
class: _(
|
|
1000
|
+
class: _(g.value),
|
|
982
1001
|
disabled: i.disabled
|
|
983
|
-
}, [s("legend",
|
|
1002
|
+
}, [s("legend", ht, [c(N(i.label), 1), i.required ? (C(), o("span", gt, " *")) : a("", !0)]), s("div", { class: _(["g-select-btn-wrapper", { "g-select-btn-has-error": L(m) }]) }, [s("div", _t, [(C(!0), o(e, null, D(h.value, (t, n) => (C(), o(e, { key: t.value }, [s("input", {
|
|
984
1003
|
class: "g-select-btn-radio",
|
|
985
1004
|
type: "radio",
|
|
986
|
-
id: `${L(
|
|
987
|
-
name: i.name || L(
|
|
1005
|
+
id: `${L(f)}-${t.value}`,
|
|
1006
|
+
name: i.name || L(f),
|
|
988
1007
|
value: t.value,
|
|
989
|
-
checked: t.value ===
|
|
1008
|
+
checked: t.value === d.value,
|
|
990
1009
|
disabled: i.disabled,
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
1010
|
+
required: i.required && n === 0,
|
|
1011
|
+
onChange: (e) => y(t.value)
|
|
1012
|
+
}, null, 40, vt), s("label", {
|
|
1013
|
+
for: `${L(f)}-${t.value}`,
|
|
1014
|
+
class: _(v(t.value === d.value))
|
|
1015
|
+
}, N(t.label), 11, yt)], 64))), 128))]), l(Me, {
|
|
1016
|
+
errors: L(p),
|
|
1017
|
+
id: "error-message-" + L(f)
|
|
1018
|
+
}, null, 8, ["errors", "id"])], 2)], 10, mt));
|
|
999
1019
|
}
|
|
1000
|
-
}), [["__scopeId", "data-v-
|
|
1020
|
+
}), [["__scopeId", "data-v-01874343"]]), xt = ["width", "height"], St = [
|
|
1001
1021
|
"cx",
|
|
1002
1022
|
"cy",
|
|
1003
1023
|
"r"
|
|
1004
|
-
],
|
|
1024
|
+
], Ct = [
|
|
1005
1025
|
"cx",
|
|
1006
1026
|
"cy",
|
|
1007
1027
|
"r",
|
|
1008
1028
|
"stroke-dasharray",
|
|
1009
1029
|
"stroke-dashoffset"
|
|
1010
|
-
],
|
|
1030
|
+
], wt = [
|
|
1011
1031
|
"cx",
|
|
1012
1032
|
"cy",
|
|
1013
1033
|
"r"
|
|
1014
|
-
],
|
|
1034
|
+
], Tt = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
1015
1035
|
__name: "GProgress",
|
|
1016
1036
|
props: {
|
|
1017
1037
|
label: { default: "Loading" },
|
|
@@ -1052,7 +1072,7 @@ var ft = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1052
1072
|
r: i.value,
|
|
1053
1073
|
"stroke-width": 4,
|
|
1054
1074
|
fill: "none"
|
|
1055
|
-
}, null, 8,
|
|
1075
|
+
}, null, 8, St), n.value ? (C(), o("circle", {
|
|
1056
1076
|
key: 0,
|
|
1057
1077
|
class: "g-progress__value",
|
|
1058
1078
|
cx: i.value + 4 / 2,
|
|
@@ -1066,7 +1086,7 @@ var ft = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1066
1086
|
transform: "rotate(-90deg)",
|
|
1067
1087
|
"transform-origin": "center"
|
|
1068
1088
|
}
|
|
1069
|
-
}, null, 8,
|
|
1089
|
+
}, null, 8, Ct)) : (C(), o("circle", {
|
|
1070
1090
|
key: 1,
|
|
1071
1091
|
class: "g-progress__spinner",
|
|
1072
1092
|
cx: i.value + 4 / 2,
|
|
@@ -1074,13 +1094,13 @@ var ft = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1074
1094
|
r: i.value,
|
|
1075
1095
|
"stroke-width": 4,
|
|
1076
1096
|
fill: "none"
|
|
1077
|
-
}, null, 8,
|
|
1097
|
+
}, null, 8, wt))], 10, xt))], 16));
|
|
1078
1098
|
}
|
|
1079
|
-
}), [["__scopeId", "data-v-c010c3b0"]]),
|
|
1099
|
+
}), [["__scopeId", "data-v-c010c3b0"]]), Et = [
|
|
1080
1100
|
"id",
|
|
1081
1101
|
"aria-labelledby",
|
|
1082
1102
|
"aria-describedby"
|
|
1083
|
-
],
|
|
1103
|
+
], Dt = { class: "g-alertdialog-inner" }, Ot = ["id"], kt = ["id"], At = { class: "g-alertdialog-actions" }, jt = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
1084
1104
|
__name: "GAlertDialog",
|
|
1085
1105
|
props: {
|
|
1086
1106
|
label: { default: "Confirmation" },
|
|
@@ -1089,11 +1109,11 @@ var ft = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1089
1109
|
},
|
|
1090
1110
|
emits: ["cancel", "confirm"],
|
|
1091
1111
|
setup(e, { emit: r }) {
|
|
1092
|
-
let a = e, o = r, u = E(null), d = E(!0), f = z(), { pop: p, push: m, isTop: h, zIndex: g } =
|
|
1112
|
+
let a = e, o = r, u = E(null), d = E(!0), f = z(), { pop: p, push: m, isTop: h, zIndex: g } = qe(f, !0, !0), { deactivate: _, activate: v } = $e(u, h);
|
|
1093
1113
|
function x() {
|
|
1094
1114
|
o("cancel");
|
|
1095
1115
|
}
|
|
1096
|
-
return
|
|
1116
|
+
return et([u], h, d, x, p), S(() => {
|
|
1097
1117
|
m(), v();
|
|
1098
1118
|
}), b(() => {
|
|
1099
1119
|
p(), _();
|
|
@@ -1111,16 +1131,16 @@ var ft = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1111
1131
|
ref_key: "dialog",
|
|
1112
1132
|
ref: u,
|
|
1113
1133
|
style: y({ zIndex: L(g) })
|
|
1114
|
-
}, [s("div",
|
|
1134
|
+
}, [s("div", Dt, [
|
|
1115
1135
|
s("h2", {
|
|
1116
1136
|
id: "alertdialog-label-" + L(f),
|
|
1117
1137
|
class: "g-alertdialog-label"
|
|
1118
|
-
}, N(a.label), 9,
|
|
1138
|
+
}, N(a.label), 9, Ot),
|
|
1119
1139
|
s("div", {
|
|
1120
1140
|
id: "alertdialog-description-" + L(f),
|
|
1121
1141
|
class: "g-alertdialog-content"
|
|
1122
|
-
}, [O(e.$slots, "default", {}, void 0, !0)], 8,
|
|
1123
|
-
s("div",
|
|
1142
|
+
}, [O(e.$slots, "default", {}, void 0, !0)], 8, kt),
|
|
1143
|
+
s("div", At, [l(Z, {
|
|
1124
1144
|
outlined: "",
|
|
1125
1145
|
onClick: r[0] ||= (e) => o("cancel")
|
|
1126
1146
|
}, {
|
|
@@ -1133,21 +1153,21 @@ var ft = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1133
1153
|
default: K(() => [c(N(a.buttonText), 1)]),
|
|
1134
1154
|
_: 1
|
|
1135
1155
|
}, 8, ["theme"])])
|
|
1136
|
-
])], 12,
|
|
1156
|
+
])], 12, Et)]),
|
|
1137
1157
|
_: 3
|
|
1138
1158
|
})]));
|
|
1139
1159
|
}
|
|
1140
1160
|
}), [["__scopeId", "data-v-144faf08"]]);
|
|
1141
1161
|
//#endregion
|
|
1142
1162
|
//#region src/compose/useSelectDropdown.ts
|
|
1143
|
-
function
|
|
1163
|
+
function Mt(e) {
|
|
1144
1164
|
return e.map((e) => typeof e == "string" ? {
|
|
1145
1165
|
label: e,
|
|
1146
1166
|
value: e
|
|
1147
1167
|
} : e);
|
|
1148
1168
|
}
|
|
1149
|
-
function
|
|
1150
|
-
let { push: o, pop: s, isTop: c } =
|
|
1169
|
+
function Nt({ open: e, anchorRef: t, listboxRef: n, baseId: i, activeIndex: a }) {
|
|
1170
|
+
let { push: o, pop: s, isTop: c } = qe(i), l = E("below"), u = E(null), d = r(() => {
|
|
1151
1171
|
let e = {};
|
|
1152
1172
|
return u.value !== null && (e.maxHeight = `${u.value}px`), l.value === "above" ? (e.top = "auto", e.bottom = "100%") : (e.top = "100%", e.bottom = "auto"), e;
|
|
1153
1173
|
});
|
|
@@ -1190,27 +1210,33 @@ function jt({ open: e, anchorRef: t, listboxRef: n, baseId: i, activeIndex: a })
|
|
|
1190
1210
|
}
|
|
1191
1211
|
//#endregion
|
|
1192
1212
|
//#region src/components/GSelect.vue?vue&type=script&setup=true&lang.ts
|
|
1193
|
-
var
|
|
1213
|
+
var Pt = ["id"], Ft = {
|
|
1214
|
+
key: 0,
|
|
1215
|
+
class: "g-select-required",
|
|
1216
|
+
"aria-hidden": "true"
|
|
1217
|
+
}, It = { class: "g-select-input-wrap" }, Lt = ["id"], Rt = [
|
|
1194
1218
|
"value",
|
|
1195
1219
|
"placeholder",
|
|
1196
1220
|
"disabled",
|
|
1197
1221
|
"aria-controls",
|
|
1198
1222
|
"aria-expanded",
|
|
1223
|
+
"aria-required",
|
|
1199
1224
|
"aria-activedescendant"
|
|
1200
|
-
],
|
|
1225
|
+
], zt = [
|
|
1201
1226
|
"id",
|
|
1202
1227
|
"aria-controls",
|
|
1203
1228
|
"aria-expanded",
|
|
1229
|
+
"aria-required",
|
|
1204
1230
|
"aria-activedescendant"
|
|
1205
|
-
],
|
|
1231
|
+
], Bt = ["id"], Vt = [
|
|
1206
1232
|
"id",
|
|
1207
1233
|
"aria-selected",
|
|
1208
1234
|
"onClick"
|
|
1209
|
-
],
|
|
1235
|
+
], Ht = {
|
|
1210
1236
|
key: 1,
|
|
1211
1237
|
"aria-live": "polite",
|
|
1212
1238
|
class: "g-select-combo-option g-select-option g-select-no-results"
|
|
1213
|
-
},
|
|
1239
|
+
}, Ut = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
1214
1240
|
__name: "GSelect",
|
|
1215
1241
|
props: /* @__PURE__ */ m({
|
|
1216
1242
|
options: {},
|
|
@@ -1221,6 +1247,10 @@ var Mt = ["id"], Nt = { class: "g-select-input-wrap" }, Pt = ["id"], Ft = [
|
|
|
1221
1247
|
type: Boolean,
|
|
1222
1248
|
default: !1
|
|
1223
1249
|
},
|
|
1250
|
+
required: {
|
|
1251
|
+
type: Boolean,
|
|
1252
|
+
default: !1
|
|
1253
|
+
},
|
|
1224
1254
|
name: {},
|
|
1225
1255
|
searchable: {
|
|
1226
1256
|
type: Boolean,
|
|
@@ -1244,13 +1274,13 @@ var Mt = ["id"], Nt = { class: "g-select-input-wrap" }, Pt = ["id"], Ft = [
|
|
|
1244
1274
|
value: d,
|
|
1245
1275
|
errors: F(i, "errors"),
|
|
1246
1276
|
formKey: i.formKey
|
|
1247
|
-
}), { menuPlacement: k, menuStyle: A, isTop: j, scrollOptionIntoView: M } =
|
|
1277
|
+
}), { menuPlacement: k, menuStyle: A, isTop: j, scrollOptionIntoView: M } = Nt({
|
|
1248
1278
|
open: y,
|
|
1249
1279
|
anchorRef: p,
|
|
1250
1280
|
listboxRef: m,
|
|
1251
1281
|
baseId: f,
|
|
1252
1282
|
activeIndex: b
|
|
1253
|
-
}), P = r(() =>
|
|
1283
|
+
}), P = r(() => Mt(i.options)), I = E(""), R = r(() => {
|
|
1254
1284
|
if (!i.searchable || !y.value || !I.value) return P.value;
|
|
1255
1285
|
let e = I.value.toLowerCase();
|
|
1256
1286
|
return P.value.filter((t) => t.label.toLowerCase().includes(e));
|
|
@@ -1358,8 +1388,8 @@ var Mt = ["id"], Nt = { class: "g-select-input-wrap" }, Pt = ["id"], Ft = [
|
|
|
1358
1388
|
key: 0,
|
|
1359
1389
|
id: L(f) + "-label",
|
|
1360
1390
|
class: "g-select-combo-label g-select-label"
|
|
1361
|
-
}, N(i.label),
|
|
1362
|
-
s("div",
|
|
1391
|
+
}, [c(N(i.label), 1), i.required ? (C(), o("span", Ft, " *")) : a("", !0)], 8, Pt)),
|
|
1392
|
+
s("div", It, [i.searchable ? (C(), o("div", {
|
|
1363
1393
|
key: 0,
|
|
1364
1394
|
class: "g-select-combo-input g-select-control",
|
|
1365
1395
|
id: L(f)
|
|
@@ -1380,12 +1410,13 @@ var Mt = ["id"], Nt = { class: "g-select-input-wrap" }, Pt = ["id"], Ft = [
|
|
|
1380
1410
|
"aria-autocomplete": "list",
|
|
1381
1411
|
"aria-controls": L(f) + "-listbox",
|
|
1382
1412
|
"aria-expanded": y.value ? "true" : "false",
|
|
1413
|
+
"aria-required": i.required ? "true" : void 0,
|
|
1383
1414
|
"aria-haspopup": "listbox",
|
|
1384
1415
|
"aria-activedescendant": y.value ? L(f) + "-option-" + b.value : void 0
|
|
1385
1416
|
}, t.hiddenLabel ? { "aria-label": i.label } : { "aria-labelledby": L(f) + "-label" }, {
|
|
1386
1417
|
role: "combobox",
|
|
1387
1418
|
autocomplete: "off"
|
|
1388
|
-
}), null, 16,
|
|
1419
|
+
}), null, 16, Rt),
|
|
1389
1420
|
ae.value ? (C(), o("button", {
|
|
1390
1421
|
key: 0,
|
|
1391
1422
|
type: "button",
|
|
@@ -1411,7 +1442,7 @@ var Mt = ["id"], Nt = { class: "g-select-input-wrap" }, Pt = ["id"], Ft = [
|
|
|
1411
1442
|
fill: "currentColor",
|
|
1412
1443
|
d: "M38.75 24.13a1.36 1.36 0 0 1 0 2.36l-12.44 7.18-12.43 7.18a1.36 1.36 0 0 1-2.05-1.18V11a1.36 1.36 0 0 1 2.05-1.18L26.31 17Z"
|
|
1413
1444
|
})], -1)
|
|
1414
|
-
], 8,
|
|
1445
|
+
], 8, Lt)) : (C(), o("div", h({
|
|
1415
1446
|
key: 1,
|
|
1416
1447
|
ref_key: "comboRef",
|
|
1417
1448
|
ref: p,
|
|
@@ -1420,6 +1451,7 @@ var Mt = ["id"], Nt = { class: "g-select-input-wrap" }, Pt = ["id"], Ft = [
|
|
|
1420
1451
|
role: "combobox",
|
|
1421
1452
|
"aria-controls": L(f) + "-listbox",
|
|
1422
1453
|
"aria-expanded": y.value ? "true" : "false",
|
|
1454
|
+
"aria-required": i.required ? "true" : void 0,
|
|
1423
1455
|
"aria-haspopup": "listbox"
|
|
1424
1456
|
}, t.hiddenLabel ? { "aria-label": i.label } : { "aria-labelledby": L(f) + "-label" }, {
|
|
1425
1457
|
"aria-activedescendant": y.value ? L(f) + "-option-" + b.value : void 0,
|
|
@@ -1455,7 +1487,7 @@ var Mt = ["id"], Nt = { class: "g-select-input-wrap" }, Pt = ["id"], Ft = [
|
|
|
1455
1487
|
fill: "currentColor",
|
|
1456
1488
|
d: "M38.75 24.13a1.36 1.36 0 0 1 0 2.36l-12.44 7.18-12.43 7.18a1.36 1.36 0 0 1-2.05-1.18V11a1.36 1.36 0 0 1 2.05-1.18L26.31 17Z"
|
|
1457
1489
|
})], -1)
|
|
1458
|
-
], 16,
|
|
1490
|
+
], 16, zt)), q(s("div", h({
|
|
1459
1491
|
ref_key: "listboxRef",
|
|
1460
1492
|
ref: m,
|
|
1461
1493
|
class: ["g-select-combo-menu g-select-list", { "g-select-combo-menu--above": L(k) === "above" }],
|
|
@@ -1477,34 +1509,34 @@ var Mt = ["id"], Nt = { class: "g-select-input-wrap" }, Pt = ["id"], Ft = [
|
|
|
1477
1509
|
option: e,
|
|
1478
1510
|
selected: e.value === d.value,
|
|
1479
1511
|
index: t
|
|
1480
|
-
}, () => [c(N(e.label), 1)], !0)], 42,
|
|
1512
|
+
}, () => [c(N(e.label), 1)], !0)], 42, Vt))), 128)) : (C(), o("div", Ht, " No results found. "))], 16, Bt), [[ee, y.value]])]),
|
|
1481
1513
|
l(Me, {
|
|
1482
1514
|
errors: L(w),
|
|
1483
1515
|
id: "error-message-" + L(f)
|
|
1484
1516
|
}, null, 8, ["errors", "id"])
|
|
1485
1517
|
], 2));
|
|
1486
1518
|
}
|
|
1487
|
-
}), [["__scopeId", "data-v-
|
|
1519
|
+
}), [["__scopeId", "data-v-ec0d90d9"]]), Wt = ["aria-label"], Gt = [
|
|
1488
1520
|
"placeholder",
|
|
1489
1521
|
"value",
|
|
1490
1522
|
"aria-expanded",
|
|
1491
1523
|
"aria-controls",
|
|
1492
1524
|
"aria-activedescendant"
|
|
1493
|
-
],
|
|
1525
|
+
], Kt = {
|
|
1494
1526
|
key: 0,
|
|
1495
1527
|
class: "g-search-dropdown"
|
|
1496
|
-
},
|
|
1528
|
+
}, qt = {
|
|
1497
1529
|
"aria-live": "polite",
|
|
1498
1530
|
class: "g-search-result-count"
|
|
1499
|
-
},
|
|
1531
|
+
}, Jt = ["id"], Yt = ["aria-label"], Xt = { class: "g-search-group-label" }, Zt = [
|
|
1500
1532
|
"id",
|
|
1501
1533
|
"onMousedown",
|
|
1502
1534
|
"aria-selected"
|
|
1503
|
-
],
|
|
1535
|
+
], Qt = [
|
|
1504
1536
|
"id",
|
|
1505
1537
|
"onMousedown",
|
|
1506
1538
|
"aria-selected"
|
|
1507
|
-
],
|
|
1539
|
+
], $t = /* @__PURE__ */ u({
|
|
1508
1540
|
__name: "GSearch",
|
|
1509
1541
|
props: /* @__PURE__ */ m({
|
|
1510
1542
|
results: {},
|
|
@@ -1585,12 +1617,12 @@ var Mt = ["id"], Nt = { class: "g-select-input-wrap" }, Pt = ["id"], Ft = [
|
|
|
1585
1617
|
"aria-autocomplete": "list",
|
|
1586
1618
|
"aria-controls": `${L(M)}-list`,
|
|
1587
1619
|
"aria-activedescendant": h.value >= 0 ? "g-search-option-" + v.value[h.value].id : void 0
|
|
1588
|
-
}, null, 40,
|
|
1620
|
+
}, null, 40, Gt), s("button", {
|
|
1589
1621
|
type: "submit",
|
|
1590
1622
|
class: "g-search-submit",
|
|
1591
1623
|
"aria-label": "Submit search",
|
|
1592
1624
|
onKeydown: w
|
|
1593
|
-
}, [k.value ? (C(), i(
|
|
1625
|
+
}, [k.value ? (C(), i(Tt, {
|
|
1594
1626
|
key: 0,
|
|
1595
1627
|
size: "tiny"
|
|
1596
1628
|
})) : a("", !0), n[1] ||= s("svg", {
|
|
@@ -1601,7 +1633,7 @@ var Mt = ["id"], Nt = { class: "g-select-input-wrap" }, Pt = ["id"], Ft = [
|
|
|
1601
1633
|
}, [s("path", {
|
|
1602
1634
|
fill: "currentColor",
|
|
1603
1635
|
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"
|
|
1604
|
-
})], -1)], 32)], 32), A.value ? (C(), o("div",
|
|
1636
|
+
})], -1)], 32)], 32), A.value ? (C(), o("div", Kt, [s("div", qt, [k.value ? a("", !0) : (C(), o(e, { key: 0 }, [c(N(y.value) + " result" + N(y.value === 1 ? "" : "s"), 1)], 64))]), s("div", {
|
|
1605
1637
|
role: "listbox",
|
|
1606
1638
|
id: `${L(M)}-list`,
|
|
1607
1639
|
ref_key: "listboxRef",
|
|
@@ -1612,29 +1644,29 @@ var Mt = ["id"], Nt = { class: "g-select-input-wrap" }, Pt = ["id"], Ft = [
|
|
|
1612
1644
|
class: "g-search-group",
|
|
1613
1645
|
role: "group",
|
|
1614
1646
|
"aria-label": n.label
|
|
1615
|
-
}, [O(t.$slots, "group", { group: n }, () => [s("div",
|
|
1647
|
+
}, [O(t.$slots, "group", { group: n }, () => [s("div", Xt, N(n.label), 1)]), (C(!0), o(e, null, D(n.items, (e, n) => (C(), o("div", {
|
|
1616
1648
|
key: e.id,
|
|
1617
1649
|
id: "g-search-option-" + e.id,
|
|
1618
1650
|
class: _(["g-search-option", { "g-search-option-active": v.value[h.value] && v.value[h.value].id === e.id }]),
|
|
1619
1651
|
role: "option",
|
|
1620
1652
|
onMousedown: J((t) => T(e), ["prevent"]),
|
|
1621
1653
|
"aria-selected": v.value[h.value] && v.value[h.value].id === e.id
|
|
1622
|
-
}, [O(t.$slots, "option", { option: e }, () => [c(N(e.title), 1)])], 42,
|
|
1654
|
+
}, [O(t.$slots, "option", { option: e }, () => [c(N(e.title), 1)])], 42, Zt))), 128))], 8, Yt))), 128)) : y.value > 0 ? (C(!0), o(e, { key: 1 }, D(v.value, (e, n) => (C(), o("div", {
|
|
1623
1655
|
key: e.id,
|
|
1624
1656
|
id: "g-search-option-" + e.id,
|
|
1625
1657
|
class: _(["g-search-option", { "g-search-option-active": h.value === n }]),
|
|
1626
1658
|
role: "option",
|
|
1627
1659
|
onMousedown: J((t) => T(e), ["prevent"]),
|
|
1628
1660
|
"aria-selected": h.value === n
|
|
1629
|
-
}, [O(t.$slots, "option", { option: e }, () => [c(N(e.title), 1)])], 42,
|
|
1661
|
+
}, [O(t.$slots, "option", { option: e }, () => [c(N(e.title), 1)])], 42, Qt))), 128)) : a("", !0)], 8, Jt)])) : a("", !0)], 8, Wt));
|
|
1630
1662
|
}
|
|
1631
|
-
}),
|
|
1663
|
+
}), en = { class: /* @__PURE__ */ _({ "g-app-header": !0 }) }, tn = { class: "g-app-header__brand" }, nn = {
|
|
1632
1664
|
class: "g-app-header__brand-text",
|
|
1633
1665
|
href: "/"
|
|
1634
|
-
},
|
|
1666
|
+
}, rn = {
|
|
1635
1667
|
key: 0,
|
|
1636
1668
|
class: "g-app-header__block-i-container"
|
|
1637
|
-
},
|
|
1669
|
+
}, an = { class: "g-app-header__title" }, on = { class: "g-app-header__app-controls-wrap" }, sn = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
1638
1670
|
__name: "GAppHeader",
|
|
1639
1671
|
props: {
|
|
1640
1672
|
illinois: {
|
|
@@ -1644,10 +1676,10 @@ var Mt = ["id"], Nt = { class: "g-select-input-wrap" }, Pt = ["id"], Ft = [
|
|
|
1644
1676
|
brand: { default: "GRAD" }
|
|
1645
1677
|
},
|
|
1646
1678
|
setup(e) {
|
|
1647
|
-
return (t, n) => (C(), o("header",
|
|
1679
|
+
return (t, n) => (C(), o("header", en, [
|
|
1648
1680
|
n[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),
|
|
1649
|
-
s("div",
|
|
1650
|
-
e.illinois ? (C(), o("div",
|
|
1681
|
+
s("div", tn, [O(t.$slots, "left", {}, () => [s("a", nn, N(e.brand), 1)], !0)]),
|
|
1682
|
+
e.illinois ? (C(), o("div", rn, [...n[0] ||= [s("svg", {
|
|
1651
1683
|
class: "g-app-header__block-i",
|
|
1652
1684
|
role: "img",
|
|
1653
1685
|
width: "55",
|
|
@@ -1664,24 +1696,24 @@ var Mt = ["id"], Nt = { class: "g-select-input-wrap" }, Pt = ["id"], Ft = [
|
|
|
1664
1696
|
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"
|
|
1665
1697
|
})
|
|
1666
1698
|
], -1)]])) : O(t.$slots, "icon", { key: 1 }, void 0, !0),
|
|
1667
|
-
s("div",
|
|
1668
|
-
s("div",
|
|
1699
|
+
s("div", an, [O(t.$slots, "title", {}, void 0, !0)]),
|
|
1700
|
+
s("div", on, [O(t.$slots, "app-controls", { class: "g-app-header__app-controls" }, void 0, !0)])
|
|
1669
1701
|
]));
|
|
1670
1702
|
}
|
|
1671
|
-
}), [["__scopeId", "data-v-
|
|
1703
|
+
}), [["__scopeId", "data-v-a83cd06a"]]);
|
|
1672
1704
|
//#endregion
|
|
1673
1705
|
//#region src/compose/useWebComponentSidebar.ts
|
|
1674
|
-
function
|
|
1706
|
+
function cn(e) {
|
|
1675
1707
|
return e.replace(/[^a-zA-Z0-9_-]/g, "-");
|
|
1676
1708
|
}
|
|
1677
|
-
function
|
|
1709
|
+
function ln() {
|
|
1678
1710
|
let e = globalThis;
|
|
1679
1711
|
return e.__GRAD_VUE_WC_SIDEBAR_CHANNELS__ ||= /* @__PURE__ */ new Map(), e.__GRAD_VUE_WC_SIDEBAR_CHANNELS__;
|
|
1680
1712
|
}
|
|
1681
|
-
function
|
|
1682
|
-
let n =
|
|
1713
|
+
function un(e = "default", t = "(max-width: 800px)") {
|
|
1714
|
+
let n = ln(), r = e || "default";
|
|
1683
1715
|
if (!n.has(r)) {
|
|
1684
|
-
let e =
|
|
1716
|
+
let e = cn(r);
|
|
1685
1717
|
n.set(r, {
|
|
1686
1718
|
id: `g-wc-sidebar-${e}`,
|
|
1687
1719
|
open: E(!1),
|
|
@@ -1715,7 +1747,7 @@ function sn(e = "default", t = "(max-width: 800px)") {
|
|
|
1715
1747
|
}
|
|
1716
1748
|
//#endregion
|
|
1717
1749
|
//#region src/components/GSidebar.vue?vue&type=script&setup=true&lang.ts
|
|
1718
|
-
var
|
|
1750
|
+
var dn = ["id"], fn = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
1719
1751
|
__name: "GSidebar",
|
|
1720
1752
|
props: {
|
|
1721
1753
|
backgroundColor: { default: "" },
|
|
@@ -1727,7 +1759,7 @@ var cn = ["id"], ln = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1727
1759
|
sidebarKey: { default: "default" }
|
|
1728
1760
|
},
|
|
1729
1761
|
setup(e) {
|
|
1730
|
-
let t = e, n = p("sidebar", () => void 0, !0) ?? (de() ?
|
|
1762
|
+
let t = e, n = p("sidebar", () => void 0, !0) ?? (de() ? un(t.sidebarKey) : void 0), i = r(() => t.backgroundImage ? t.backgroundImage : t.theme === "light" ? "none" : "url('https://gradcdn.blob.core.windows.net/public/sidebar-bg2.jpg')"), 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 = z();
|
|
1731
1763
|
function l(e) {
|
|
1732
1764
|
e.key === "Escape" && n?.isCollapsible?.value && n?.open?.value && (n.open.value = !1, document.getElementById(`${n.id}-hamburger`)?.focus());
|
|
1733
1765
|
}
|
|
@@ -1747,13 +1779,13 @@ var cn = ["id"], ln = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1747
1779
|
width: "var(--g-sidebar-width)"
|
|
1748
1780
|
}),
|
|
1749
1781
|
onKeydown: l
|
|
1750
|
-
}, [O(t.$slots, "default", {}, void 0, !0)], 46,
|
|
1782
|
+
}, [O(t.$slots, "default", {}, void 0, !0)], 46, dn));
|
|
1751
1783
|
}
|
|
1752
|
-
}), [["__scopeId", "data-v-88c7169f"]]),
|
|
1784
|
+
}), [["__scopeId", "data-v-88c7169f"]]), pn = ["id"], mn = { class: "g-sidebar-menu__list" }, hn = [
|
|
1753
1785
|
"href",
|
|
1754
1786
|
"aria-current",
|
|
1755
1787
|
"onClick"
|
|
1756
|
-
],
|
|
1788
|
+
], gn = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
1757
1789
|
__name: "GSidebarMenu",
|
|
1758
1790
|
props: /* @__PURE__ */ m({
|
|
1759
1791
|
title: {},
|
|
@@ -1801,13 +1833,13 @@ var cn = ["id"], ln = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1801
1833
|
key: 0,
|
|
1802
1834
|
id: L(y),
|
|
1803
1835
|
class: "g-sidebar-menu__title"
|
|
1804
|
-
}, N(t.title), 9,
|
|
1836
|
+
}, N(t.title), 9, pn)) : a("", !0),
|
|
1805
1837
|
l[0] ||= s("div", { class: "g-sidebar-menu__divider" }, null, -1),
|
|
1806
1838
|
s("div", {
|
|
1807
1839
|
class: "g-sidebar-menu__content",
|
|
1808
1840
|
ref_key: "content",
|
|
1809
1841
|
ref: f
|
|
1810
|
-
}, [s("ul",
|
|
1842
|
+
}, [s("ul", mn, [(C(!0), o(e, null, D(t.items, (e) => (C(), o("li", {
|
|
1811
1843
|
key: e.href || e.to,
|
|
1812
1844
|
class: "g-sidebar-menu__item",
|
|
1813
1845
|
ref_for: !0,
|
|
@@ -1825,24 +1857,24 @@ var cn = ["id"], ln = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1825
1857
|
href: e.href || e.to || "#",
|
|
1826
1858
|
"aria-current": u.value === (e.href || "") ? "location" : void 0,
|
|
1827
1859
|
onClick: (t) => v(t, e)
|
|
1828
|
-
}, N(e.label), 11,
|
|
1860
|
+
}, N(e.label), 11, hn))]))), 128))])], 512)
|
|
1829
1861
|
], 16));
|
|
1830
1862
|
}
|
|
1831
|
-
}), [["__scopeId", "data-v-330a0664"]]),
|
|
1863
|
+
}), [["__scopeId", "data-v-330a0664"]]), _n = {
|
|
1832
1864
|
mounted(e, t) {
|
|
1833
|
-
let n = E(null), r = E(!1), i = E(!1), a = E(t.value), o = null, s = !1, c =
|
|
1834
|
-
n.value || (n.value =
|
|
1835
|
-
n.value && (r.value || i.value) &&
|
|
1865
|
+
let n = E(null), r = E(!1), i = E(!1), a = E(t.value), o = null, s = !1, c = ct(e), l = () => {
|
|
1866
|
+
n.value || (n.value = lt(a.value, c), ut(n.value), o = new ResizeObserver(() => {
|
|
1867
|
+
n.value && (r.value || i.value) && dt(e, n.value);
|
|
1836
1868
|
}), o.observe(n.value));
|
|
1837
1869
|
};
|
|
1838
1870
|
G(() => {
|
|
1839
1871
|
n.value && (n.value.textContent = a.value);
|
|
1840
1872
|
});
|
|
1841
1873
|
let u = () => {
|
|
1842
|
-
n.value && (r.value || i.value) &&
|
|
1874
|
+
n.value && (r.value || i.value) && dt(e, n.value);
|
|
1843
1875
|
};
|
|
1844
1876
|
G(() => {
|
|
1845
|
-
r.value || i.value ? (l(), n.value &&
|
|
1877
|
+
r.value || i.value ? (l(), n.value && dt(e, n.value), s ||= (window.addEventListener("scroll", u, { capture: !0 }), !0)) : (s &&= (window.removeEventListener("scroll", u, { capture: !0 }), !1), n.value && (ft(n.value), setTimeout(() => {
|
|
1846
1878
|
e.dispatchEvent(new CustomEvent("tooltip-hide"));
|
|
1847
1879
|
}, 150)));
|
|
1848
1880
|
});
|
|
@@ -1880,7 +1912,7 @@ var cn = ["id"], ln = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1880
1912
|
let t = e._v_gtooltip;
|
|
1881
1913
|
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");
|
|
1882
1914
|
}
|
|
1883
|
-
},
|
|
1915
|
+
}, vn = { class: "g-clipboard-text" }, yn = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
1884
1916
|
__name: "GClipboard",
|
|
1885
1917
|
props: {
|
|
1886
1918
|
text: {},
|
|
@@ -1888,12 +1920,12 @@ var cn = ["id"], ln = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1888
1920
|
copyLabel: {}
|
|
1889
1921
|
},
|
|
1890
1922
|
setup(t) {
|
|
1891
|
-
let n = t, r =
|
|
1923
|
+
let n = t, r = _n, { text: i, copy: l, copied: u, isSupported: d } = re({ source: n.text }), f = E(n.copyLabel ?? "Copy to clipboard"), p = () => {
|
|
1892
1924
|
d.value ? (l(), f.value = "Copied") : f.value = "Copy not supported";
|
|
1893
1925
|
}, m = () => {
|
|
1894
1926
|
f.value = n.copyLabel ?? "Copy to clipboard";
|
|
1895
1927
|
};
|
|
1896
|
-
return (i, l) => (C(), o("div",
|
|
1928
|
+
return (i, l) => (C(), o("div", vn, [t.hideText ? a("", !0) : (C(), o(e, { key: 0 }, [c(N(n.text), 1)], 64)), q((C(), o("button", {
|
|
1897
1929
|
type: "button",
|
|
1898
1930
|
"aria-label": "Copy",
|
|
1899
1931
|
onClick: p,
|
|
@@ -1910,15 +1942,15 @@ var cn = ["id"], ln = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1910
1942
|
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"
|
|
1911
1943
|
})], -1)]], 32)), [[L(r), f.value]])]));
|
|
1912
1944
|
}
|
|
1913
|
-
}), [["__scopeId", "data-v-bd5d31d2"]]),
|
|
1945
|
+
}), [["__scopeId", "data-v-bd5d31d2"]]), bn = { class: "g-history-scroller-wrapper" }, xn = {
|
|
1914
1946
|
key: 0,
|
|
1915
1947
|
class: "g-history-shadow g-history-shadow--top",
|
|
1916
1948
|
"aria-hidden": "true"
|
|
1917
|
-
},
|
|
1949
|
+
}, Sn = {
|
|
1918
1950
|
key: 1,
|
|
1919
1951
|
class: "g-history-shadow g-history-shadow--bottom",
|
|
1920
1952
|
"aria-hidden": "true"
|
|
1921
|
-
},
|
|
1953
|
+
}, Cn = ["role", "aria-label"], wn = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
1922
1954
|
__name: "GHistoryScroller",
|
|
1923
1955
|
props: {
|
|
1924
1956
|
label: {},
|
|
@@ -1950,9 +1982,9 @@ var cn = ["id"], ln = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1950
1982
|
u.value && (await g(), f());
|
|
1951
1983
|
});
|
|
1952
1984
|
let m = r(() => [...n.entries].reverse());
|
|
1953
|
-
return (n, r) => (C(), o("div",
|
|
1954
|
-
d.value ? a("", !0) : (C(), o("div",
|
|
1955
|
-
u.value ? a("", !0) : (C(), o("div",
|
|
1985
|
+
return (n, r) => (C(), o("div", bn, [
|
|
1986
|
+
d.value ? a("", !0) : (C(), o("div", xn)),
|
|
1987
|
+
u.value ? a("", !0) : (C(), o("div", Sn)),
|
|
1956
1988
|
s("div", {
|
|
1957
1989
|
ref_key: "scrollerRef",
|
|
1958
1990
|
ref: i,
|
|
@@ -1987,31 +2019,31 @@ var cn = ["id"], ln = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1987
2019
|
key: e.id,
|
|
1988
2020
|
class: "g-history-entry",
|
|
1989
2021
|
tabindex: "-1"
|
|
1990
|
-
}, [O(n.$slots, "default", { entry: e }, void 0, !0)]))), 128))], 512)], 40,
|
|
2022
|
+
}, [O(n.$slots, "default", { entry: e }, void 0, !0)]))), 128))], 512)], 40, Cn)
|
|
1991
2023
|
]));
|
|
1992
2024
|
}
|
|
1993
|
-
}), [["__scopeId", "data-v-dde35ac8"]]),
|
|
2025
|
+
}), [["__scopeId", "data-v-dde35ac8"]]), Tn = { class: "g-three-way-toggle-wrapper" }, En = { class: "g-three-way-toggle-control" }, Dn = ["id"], On = [
|
|
1994
2026
|
"aria-labelledby",
|
|
1995
2027
|
"aria-describedby",
|
|
1996
2028
|
"disabled",
|
|
1997
2029
|
"aria-invalid",
|
|
1998
2030
|
"aria-errormessage"
|
|
1999
|
-
],
|
|
2031
|
+
], kn = { key: 0 }, An = { key: 1 }, jn = { key: 2 }, Mn = ["for"], Nn = [
|
|
2000
2032
|
"id",
|
|
2001
2033
|
"name",
|
|
2002
2034
|
"checked",
|
|
2003
2035
|
"disabled"
|
|
2004
|
-
],
|
|
2036
|
+
], Pn = ["for"], Fn = [
|
|
2005
2037
|
"id",
|
|
2006
2038
|
"name",
|
|
2007
2039
|
"checked",
|
|
2008
2040
|
"disabled"
|
|
2009
|
-
],
|
|
2041
|
+
], In = ["for"], Ln = [
|
|
2010
2042
|
"id",
|
|
2011
2043
|
"name",
|
|
2012
2044
|
"checked",
|
|
2013
2045
|
"disabled"
|
|
2014
|
-
],
|
|
2046
|
+
], Rn = ["id"], zn = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
2015
2047
|
__name: "GThreeWayToggle",
|
|
2016
2048
|
props: /* @__PURE__ */ m({
|
|
2017
2049
|
label: {},
|
|
@@ -2045,10 +2077,10 @@ var cn = ["id"], ln = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
2045
2077
|
function b(e) {
|
|
2046
2078
|
n.disabled || (e.key === "n" || e.key === "N" ? (u(!1), e.preventDefault()) : (e.key === "y" || e.key === "Y") && (u(!0), e.preventDefault()));
|
|
2047
2079
|
}
|
|
2048
|
-
return (t, n) => (C(), o("div",
|
|
2080
|
+
return (t, n) => (C(), o("div", Tn, [s("div", En, [s("span", {
|
|
2049
2081
|
class: "g-label",
|
|
2050
2082
|
id: L(p)
|
|
2051
|
-
}, [O(t.$slots, "label", {}, () => [c(N(e.label), 1)], !0)], 8,
|
|
2083
|
+
}, [O(t.$slots, "label", {}, () => [c(N(e.label), 1)], !0)], 8, Dn), s("fieldset", {
|
|
2052
2084
|
class: _(["g-three-way-toggle", { "g-has-error": e.error }]),
|
|
2053
2085
|
role: "radiogroup",
|
|
2054
2086
|
"aria-labelledby": L(p),
|
|
@@ -2060,7 +2092,7 @@ var cn = ["id"], ln = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
2060
2092
|
s("span", {
|
|
2061
2093
|
class: _(["g-toggle-thumb", y.value]),
|
|
2062
2094
|
"aria-hidden": "true"
|
|
2063
|
-
}, [i.value === !1 ? (C(), o("span",
|
|
2095
|
+
}, [i.value === !1 ? (C(), o("span", kn, "NO")) : i.value === !0 ? (C(), o("span", An, "YES")) : (C(), o("span", jn))], 2),
|
|
2064
2096
|
s("label", {
|
|
2065
2097
|
for: L(h),
|
|
2066
2098
|
class: "g-toggle-option g-left",
|
|
@@ -2074,7 +2106,7 @@ var cn = ["id"], ln = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
2074
2106
|
value: "false",
|
|
2075
2107
|
disabled: e.disabled,
|
|
2076
2108
|
onChange: n[0] ||= (e) => d(!1)
|
|
2077
|
-
}, null, 40,
|
|
2109
|
+
}, null, 40, Nn), n[5] ||= s("span", { class: "ilw-sr-only" }, "No", -1)], 40, Mn),
|
|
2078
2110
|
s("label", {
|
|
2079
2111
|
for: L(g),
|
|
2080
2112
|
class: "g-toggle-option g-center",
|
|
@@ -2086,7 +2118,7 @@ var cn = ["id"], ln = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
2086
2118
|
checked: i.value === null,
|
|
2087
2119
|
disabled: e.disabled,
|
|
2088
2120
|
onChange: n[2] ||= (e) => d(null)
|
|
2089
|
-
}, null, 40,
|
|
2121
|
+
}, null, 40, Fn), n[6] ||= s("span", { class: "ilw-sr-only" }, "Unset", -1)], 40, Pn),
|
|
2090
2122
|
s("label", {
|
|
2091
2123
|
for: L(v),
|
|
2092
2124
|
class: "g-toggle-option g-right",
|
|
@@ -2100,53 +2132,53 @@ var cn = ["id"], ln = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
2100
2132
|
checked: i.value === !0,
|
|
2101
2133
|
disabled: e.disabled,
|
|
2102
2134
|
onChange: n[3] ||= (e) => d(!0)
|
|
2103
|
-
}, null, 40,
|
|
2104
|
-
], 2)], 10,
|
|
2135
|
+
}, null, 40, Ln), n[7] ||= s("span", { class: "ilw-sr-only" }, "Yes", -1)], 40, In)
|
|
2136
|
+
], 2)], 10, On)]), e.error ? (C(), o("div", {
|
|
2105
2137
|
key: 0,
|
|
2106
2138
|
id: `${L(p)}-error`,
|
|
2107
2139
|
class: "g-form-error",
|
|
2108
2140
|
role: "alert",
|
|
2109
2141
|
"aria-atomic": "true"
|
|
2110
|
-
}, N(e.error), 9,
|
|
2142
|
+
}, N(e.error), 9, Rn)) : a("", !0)]));
|
|
2111
2143
|
}
|
|
2112
|
-
}), [["__scopeId", "data-v-b5b2babc"]]),
|
|
2144
|
+
}), [["__scopeId", "data-v-b5b2babc"]]), Bn = {
|
|
2113
2145
|
ref: "tableBodyRef",
|
|
2114
2146
|
class: "efficient-table-body"
|
|
2115
|
-
},
|
|
2147
|
+
}, Vn = ["aria-rowindex"], Hn = {
|
|
2116
2148
|
key: 0,
|
|
2117
2149
|
class: "table-group-checkbox"
|
|
2118
|
-
},
|
|
2150
|
+
}, Un = ["colspan"], Wn = [
|
|
2119
2151
|
"aria-rowindex",
|
|
2120
2152
|
"onMousedown",
|
|
2121
2153
|
"onClick"
|
|
2122
|
-
],
|
|
2154
|
+
], Gn = [
|
|
2123
2155
|
"checked",
|
|
2124
2156
|
"onClick",
|
|
2125
2157
|
"aria-label",
|
|
2126
2158
|
"name"
|
|
2127
|
-
],
|
|
2159
|
+
], Kn = ["id"], qn = {
|
|
2128
2160
|
key: 0,
|
|
2129
2161
|
class: "editable-cell"
|
|
2130
|
-
},
|
|
2162
|
+
}, Jn = {
|
|
2131
2163
|
key: 0,
|
|
2132
2164
|
class: "cell-prefix"
|
|
2133
|
-
},
|
|
2165
|
+
}, Yn = [
|
|
2134
2166
|
"value",
|
|
2135
2167
|
"onChange",
|
|
2136
2168
|
"aria-labelledby",
|
|
2137
2169
|
"aria-invalid",
|
|
2138
2170
|
"name"
|
|
2139
|
-
],
|
|
2171
|
+
], Xn = ["value"], Zn = [
|
|
2140
2172
|
"value",
|
|
2141
2173
|
"onInput",
|
|
2142
2174
|
"aria-labelledby",
|
|
2143
2175
|
"aria-invalid",
|
|
2144
2176
|
"aria-errormessage",
|
|
2145
2177
|
"name"
|
|
2146
|
-
],
|
|
2178
|
+
], Qn = {
|
|
2147
2179
|
key: 3,
|
|
2148
2180
|
class: "cell-suffix"
|
|
2149
|
-
},
|
|
2181
|
+
}, $n = ["id"], er = /* @__PURE__ */ u({
|
|
2150
2182
|
__name: "GTableBody",
|
|
2151
2183
|
props: {
|
|
2152
2184
|
data: {},
|
|
@@ -2215,13 +2247,13 @@ var cn = ["id"], ln = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
2215
2247
|
function w(e, t) {
|
|
2216
2248
|
if (l.changeTracker) return l.changeTracker.getError(e.key, t.key);
|
|
2217
2249
|
}
|
|
2218
|
-
return (n, r) => (C(), o("tbody",
|
|
2250
|
+
return (n, r) => (C(), o("tbody", Bn, [(C(!0), o(e, null, D(t.data, (n, l) => (C(), o(e, { key: n.key }, [t.groupBy && (l === 0 || n[t.groupBy] !== t.data[l - 1][t.groupBy]) ? (C(), o("tr", {
|
|
2219
2251
|
key: 0,
|
|
2220
2252
|
"aria-rowindex": t.startIndex + l + 2
|
|
2221
|
-
}, [t.bulkSelectionEnabled ? (C(), o("td",
|
|
2253
|
+
}, [t.bulkSelectionEnabled ? (C(), o("td", Hn)) : a("", !0), s("td", {
|
|
2222
2254
|
colspan: t.columns.length,
|
|
2223
2255
|
class: "table-group-row"
|
|
2224
|
-
}, [t.groupRender ? (C(), i(A(t.groupRender(n[t.groupBy], n)), { key: 0 })) : (C(), o(e, { key: 1 }, [c(N(n[t.groupBy]), 1)], 64))], 8,
|
|
2256
|
+
}, [t.groupRender ? (C(), i(A(t.groupRender(n[t.groupBy], n)), { key: 0 })) : (C(), o(e, { key: 1 }, [c(N(n[t.groupBy]), 1)], 64))], 8, Un)], 8, Vn)) : a("", !0), s("tr", {
|
|
2225
2257
|
class: _([
|
|
2226
2258
|
"efficient-table-row",
|
|
2227
2259
|
{
|
|
@@ -2244,7 +2276,7 @@ var cn = ["id"], ln = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
2244
2276
|
"aria-label": `Select row ${n.key}`,
|
|
2245
2277
|
name: `row-${n.key}-checkbox`,
|
|
2246
2278
|
class: "g-bulk-select-checkbox"
|
|
2247
|
-
}, null, 8,
|
|
2279
|
+
}, null, 8, Gn)])) : a("", !0), (C(!0), o(e, null, D(t.columns, (r) => (C(), o("td", {
|
|
2248
2280
|
key: r.key,
|
|
2249
2281
|
id: b(r) ? `${t.tableId}-td-${n.key}-${String(r.key)}` : void 0,
|
|
2250
2282
|
class: _([
|
|
@@ -2253,8 +2285,8 @@ var cn = ["id"], ln = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
2253
2285
|
S(n, r) ? "g-cell-error" : "",
|
|
2254
2286
|
typeof r.tdClass == "function" ? r.tdClass(n) : r.tdClass
|
|
2255
2287
|
])
|
|
2256
|
-
}, [r.editable ? (C(), o("div",
|
|
2257
|
-
r.editable.prefix ? (C(), o("span",
|
|
2288
|
+
}, [r.editable ? (C(), o("div", qn, [
|
|
2289
|
+
r.editable.prefix ? (C(), o("span", Jn, N(r.editable.prefix), 1)) : a("", !0),
|
|
2258
2290
|
r.editable.type === "select" ? (C(), o("select", {
|
|
2259
2291
|
key: 1,
|
|
2260
2292
|
value: n[r.key],
|
|
@@ -2266,7 +2298,7 @@ var cn = ["id"], ln = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
2266
2298
|
}, [(C(!0), o(e, null, D(r.editable.options, (e) => (C(), o("option", {
|
|
2267
2299
|
key: e.value,
|
|
2268
2300
|
value: e.value
|
|
2269
|
-
}, N(e.label), 9,
|
|
2301
|
+
}, N(e.label), 9, Xn))), 128))], 40, Yn)) : (C(), o("input", h({
|
|
2270
2302
|
key: 2,
|
|
2271
2303
|
value: n[r.key]
|
|
2272
2304
|
}, { ref_for: !0 }, r.editable.inputAttributes, {
|
|
@@ -2280,40 +2312,40 @@ var cn = ["id"], ln = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
2280
2312
|
paddingLeft: r.editable.prefix ? "1.5rem" : void 0,
|
|
2281
2313
|
paddingRight: r.editable.suffix ? "2rem" : void 0
|
|
2282
2314
|
}
|
|
2283
|
-
}), null, 16,
|
|
2284
|
-
r.editable.suffix ? (C(), o("span",
|
|
2315
|
+
}), null, 16, Zn)),
|
|
2316
|
+
r.editable.suffix ? (C(), o("span", Qn, N(r.editable.suffix), 1)) : a("", !0)
|
|
2285
2317
|
])) : r.display ? (C(), i(A(r.display(n)), { key: 1 })) : (C(), o(e, { key: 2 }, [c(N(n[r.key]), 1)], 64)), S(n, r) ? (C(), o("div", {
|
|
2286
2318
|
key: 3,
|
|
2287
2319
|
role: "alert",
|
|
2288
2320
|
class: "g-cell-error-message",
|
|
2289
2321
|
id: `${t.tableId}-error-${n.key}-${String(r.key)}`
|
|
2290
|
-
}, N(w(n, r)), 9,
|
|
2322
|
+
}, N(w(n, r)), 9, $n)) : a("", !0)], 10, Kn))), 128))], 42, Wn)], 64))), 128))], 512));
|
|
2291
2323
|
}
|
|
2292
2324
|
});
|
|
2293
2325
|
//#endregion
|
|
2294
2326
|
//#region src/compose/useFiltering.ts
|
|
2295
|
-
function
|
|
2327
|
+
function tr(e) {
|
|
2296
2328
|
if (!(Array.isArray(e) && e.length === 0) && !(e === null || e === !1 || e === "")) return e;
|
|
2297
2329
|
}
|
|
2298
|
-
function
|
|
2330
|
+
function nr(e) {
|
|
2299
2331
|
return Object.fromEntries(Object.entries(e).filter(([e, t]) => t && (!Array.isArray(t) || t.length > 0)));
|
|
2300
2332
|
}
|
|
2301
|
-
function
|
|
2333
|
+
function rr(e) {
|
|
2302
2334
|
if (e != null) return Array.isArray(e) ? e.filter((e) => e != null) : [e];
|
|
2303
2335
|
}
|
|
2304
|
-
function
|
|
2336
|
+
function ir(e) {
|
|
2305
2337
|
let t = {};
|
|
2306
2338
|
for (let [n, r] of Object.entries(P(e))) Array.isArray(r) ? r.length > 0 && (t[n] = r) : r === !0 ? t[n] = "true" : t[n] = r || void 0;
|
|
2307
2339
|
return t;
|
|
2308
2340
|
}
|
|
2309
|
-
function
|
|
2341
|
+
function ar(e) {
|
|
2310
2342
|
let t = {};
|
|
2311
2343
|
return Object.keys(e).forEach((n) => {
|
|
2312
2344
|
let r = e[n];
|
|
2313
2345
|
r != null && r !== "" && r !== !1 && (Array.isArray(r) ? r.length > 0 && (t[n] = r.map((e) => String(e))) : t[n] = String(r));
|
|
2314
2346
|
}), t;
|
|
2315
2347
|
}
|
|
2316
|
-
function
|
|
2348
|
+
function or(e, t = {}) {
|
|
2317
2349
|
let n = T(Object.fromEntries(Object.entries(e).map(([e, t]) => [e, t]))), i = t.syncWith;
|
|
2318
2350
|
if (i) {
|
|
2319
2351
|
if (i.value) {
|
|
@@ -2326,13 +2358,13 @@ function rr(e, t = {}) {
|
|
|
2326
2358
|
});
|
|
2327
2359
|
}
|
|
2328
2360
|
W(n, (e) => {
|
|
2329
|
-
i.value =
|
|
2361
|
+
i.value = ar(e);
|
|
2330
2362
|
}, { deep: !0 });
|
|
2331
2363
|
}
|
|
2332
2364
|
return {
|
|
2333
2365
|
filters: n,
|
|
2334
2366
|
isFiltered: r(() => {
|
|
2335
|
-
for (let t of Object.keys(e)) if (
|
|
2367
|
+
for (let t of Object.keys(e)) if (tr(n[t])) return !0;
|
|
2336
2368
|
return !1;
|
|
2337
2369
|
}),
|
|
2338
2370
|
clearFilters: () => {
|
|
@@ -2342,48 +2374,48 @@ function rr(e, t = {}) {
|
|
|
2342
2374
|
},
|
|
2343
2375
|
filteredColumns: r(() => {
|
|
2344
2376
|
let t = {};
|
|
2345
|
-
for (let r of Object.keys(e)) t[r] = !!
|
|
2377
|
+
for (let r of Object.keys(e)) t[r] = !!tr(n[r]);
|
|
2346
2378
|
return t;
|
|
2347
2379
|
})
|
|
2348
2380
|
};
|
|
2349
2381
|
}
|
|
2350
2382
|
//#endregion
|
|
2351
2383
|
//#region src/components/GTable.vue?vue&type=script&setup=true&lang.ts
|
|
2352
|
-
var
|
|
2384
|
+
var sr = { class: "g-table-outer-wrap" }, cr = {
|
|
2353
2385
|
key: 0,
|
|
2354
2386
|
class: "g-table-controls"
|
|
2355
|
-
},
|
|
2387
|
+
}, lr = { class: "g-clear-filters-wrap" }, ur = {
|
|
2356
2388
|
key: 0,
|
|
2357
2389
|
class: "pagination"
|
|
2358
|
-
},
|
|
2390
|
+
}, dr = { class: "g-result-count" }, fr = ["aria-label", "aria-rowcount"], pr = { class: "g-table-head" }, mr = { "aria-rowindex": "1" }, hr = {
|
|
2359
2391
|
key: 0,
|
|
2360
2392
|
scope: "col",
|
|
2361
2393
|
class: "g-th g-th-checkbox"
|
|
2362
|
-
},
|
|
2394
|
+
}, gr = [
|
|
2363
2395
|
"checked",
|
|
2364
2396
|
"indeterminate",
|
|
2365
2397
|
"aria-label"
|
|
2366
|
-
],
|
|
2398
|
+
], _r = ["id", "aria-sort"], vr = { class: "th-inner" }, yr = ["onClick"], br = {
|
|
2367
2399
|
key: 0,
|
|
2368
2400
|
class: "sort-indicator"
|
|
2369
|
-
},
|
|
2401
|
+
}, xr = ["aria-label"], Sr = {
|
|
2370
2402
|
key: 1,
|
|
2371
2403
|
class: "g-column-head"
|
|
2372
|
-
},
|
|
2404
|
+
}, Cr = ["onClick", "aria-label"], wr = { key: 1 }, Tr = { class: "g-filter-toggle" }, Er = [
|
|
2373
2405
|
"onUpdate:modelValue",
|
|
2374
2406
|
"id",
|
|
2375
2407
|
"aria-describedby"
|
|
2376
|
-
],
|
|
2408
|
+
], Dr = ["for"], Or = ["id"], kr = {
|
|
2377
2409
|
key: 2,
|
|
2378
2410
|
class: "g-multi-select"
|
|
2379
|
-
},
|
|
2411
|
+
}, Ar = [
|
|
2380
2412
|
"onUpdate:modelValue",
|
|
2381
2413
|
"id",
|
|
2382
2414
|
"value"
|
|
2383
|
-
],
|
|
2415
|
+
], jr = ["for"], Mr = {
|
|
2384
2416
|
key: 1,
|
|
2385
2417
|
class: "g-bulk-actions-toolbar"
|
|
2386
|
-
},
|
|
2418
|
+
}, Nr = { class: "g-selected-count" }, Pr = { class: "g-bulk-actions" }, Fr = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
2387
2419
|
__name: "GTable",
|
|
2388
2420
|
props: /* @__PURE__ */ m({
|
|
2389
2421
|
label: {},
|
|
@@ -2432,7 +2464,7 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
2432
2464
|
e.sortable && (u.value === e.key ? d.value === 1 ? d.value = -1 : d.value === -1 && (u.value = void 0, d.value = 1) : (u.value = e.key, d.value = 1));
|
|
2433
2465
|
}
|
|
2434
2466
|
let v = m.filtering;
|
|
2435
|
-
v ||=
|
|
2467
|
+
v ||= or({});
|
|
2436
2468
|
let { filters: b, filteredColumns: x, isFiltered: w, clearFilters: T } = v, k = r(() => m.data.map((e) => e.key)), A = r(() => p.value.filter((e) => k.value.includes(e))), j = r(() => !m.bulkSelectionEnabled || m.data.length === 0 ? !1 : A.value.length === k.value.length), M = r(() => !m.bulkSelectionEnabled || m.data.length === 0 ? !1 : A.value.length > 0 && A.value.length < k.value.length), F = E(null);
|
|
2437
2469
|
function I() {
|
|
2438
2470
|
if (j.value) p.value = p.value.filter((e) => !k.value.includes(e));
|
|
@@ -2478,9 +2510,9 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
2478
2510
|
let e = f.value[t.key];
|
|
2479
2511
|
f.value[t.key] = e ? [e] : [];
|
|
2480
2512
|
}
|
|
2481
|
-
}, { immediate: !0 }), (n, r) => (C(), o("div",
|
|
2482
|
-
ne.value ? (C(), o("div",
|
|
2483
|
-
s("div",
|
|
2513
|
+
}, { immediate: !0 }), (n, r) => (C(), o("div", sr, [
|
|
2514
|
+
ne.value ? (C(), o("div", cr, [
|
|
2515
|
+
s("div", lr, [L(w) ? (C(), i(Z, {
|
|
2484
2516
|
key: 0,
|
|
2485
2517
|
outlined: "",
|
|
2486
2518
|
size: "small",
|
|
@@ -2498,22 +2530,22 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
2498
2530
|
})], -1), s("span", { class: "g-clear-filters-text" }, " Clear Filters ", -1)]]),
|
|
2499
2531
|
_: 1
|
|
2500
2532
|
}, 8, ["onClick"])) : a("", !0)]),
|
|
2501
|
-
X.value ? (C(), o("div",
|
|
2502
|
-
s("span",
|
|
2533
|
+
X.value ? (C(), o("div", ur, [O(n.$slots, "pagination", {}, void 0, !0)])) : a("", !0),
|
|
2534
|
+
s("span", dr, N(m.resultCount || t.data.length) + " results", 1)
|
|
2503
2535
|
])) : a("", !0),
|
|
2504
2536
|
s("table", {
|
|
2505
2537
|
class: "g-table",
|
|
2506
2538
|
ref: "tableRef",
|
|
2507
2539
|
"aria-label": t.label,
|
|
2508
2540
|
"aria-rowcount": m.resultCount || t.data.length
|
|
2509
|
-
}, [s("thead",
|
|
2541
|
+
}, [s("thead", pr, [s("tr", mr, [t.bulkSelectionEnabled ? (C(), o("th", hr, [s("input", {
|
|
2510
2542
|
type: "checkbox",
|
|
2511
2543
|
checked: j.value,
|
|
2512
2544
|
indeterminate: M.value,
|
|
2513
2545
|
onChange: I,
|
|
2514
2546
|
"aria-label": j.value ? "Deselect all rows" : "Select all rows",
|
|
2515
2547
|
class: "g-bulk-select-checkbox"
|
|
2516
|
-
}, null, 40,
|
|
2548
|
+
}, null, 40, gr)])) : a("", !0), (C(!0), o(e, null, D(t.columns, (t) => (C(), o("th", {
|
|
2517
2549
|
key: t.key,
|
|
2518
2550
|
id: `${L(Y)}-th-${String(t.key)}`,
|
|
2519
2551
|
"aria-sort": u.value === t.key ? d.value === 1 ? "ascending" : "descending" : "none",
|
|
@@ -2523,12 +2555,12 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
2523
2555
|
{ filtered: L(x)[t.key] }
|
|
2524
2556
|
]),
|
|
2525
2557
|
scope: "col"
|
|
2526
|
-
}, [s("div",
|
|
2558
|
+
}, [s("div", vr, [t.sortable ? (C(), o("button", {
|
|
2527
2559
|
key: 0,
|
|
2528
2560
|
type: "button",
|
|
2529
2561
|
class: "g-column-head",
|
|
2530
2562
|
onClick: (e) => g(t)
|
|
2531
|
-
}, [c(N(t.label) + " ", 1), u.value === t.key ? (C(), o("span",
|
|
2563
|
+
}, [c(N(t.label) + " ", 1), u.value === t.key ? (C(), o("span", br, [(C(), o("svg", {
|
|
2532
2564
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2533
2565
|
viewBox: "0 0 640 640",
|
|
2534
2566
|
height: "1.5em",
|
|
@@ -2538,7 +2570,7 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
2538
2570
|
}, [...r[1] ||= [s("path", {
|
|
2539
2571
|
fill: "currentColor",
|
|
2540
2572
|
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"
|
|
2541
|
-
}, null, -1)]], 12,
|
|
2573
|
+
}, null, -1)]], 12, xr))])) : a("", !0)], 8, yr)) : (C(), o("span", Sr, N(t.label), 1)), t.filter ? (C(), i(at, { key: 2 }, {
|
|
2542
2574
|
trigger: K(({ toggle: e }) => [s("button", {
|
|
2543
2575
|
onClick: J(e, ["stop"]),
|
|
2544
2576
|
"aria-label": L(x)[t.key] ? "Column Filtered" : "Filter Column",
|
|
@@ -2552,8 +2584,8 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
2552
2584
|
}, [s("path", {
|
|
2553
2585
|
fill: "currentColor",
|
|
2554
2586
|
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"
|
|
2555
|
-
})], -1)]], 10,
|
|
2556
|
-
default: K(() => [t.filter.type === "select" ? (C(), i(
|
|
2587
|
+
})], -1)]], 10, Cr)]),
|
|
2588
|
+
default: K(() => [t.filter.type === "select" ? (C(), i(Ut, {
|
|
2557
2589
|
key: 0,
|
|
2558
2590
|
modelValue: f.value[t.key],
|
|
2559
2591
|
"onUpdate:modelValue": (e) => f.value[t.key] = e,
|
|
@@ -2566,20 +2598,20 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
2566
2598
|
"modelValue",
|
|
2567
2599
|
"onUpdate:modelValue",
|
|
2568
2600
|
"options"
|
|
2569
|
-
])) : t.filter.type === "toggle" ? (C(), o("div",
|
|
2601
|
+
])) : t.filter.type === "toggle" ? (C(), o("div", wr, [s("div", Tr, [
|
|
2570
2602
|
q(s("input", {
|
|
2571
2603
|
type: "checkbox",
|
|
2572
2604
|
"onUpdate:modelValue": (e) => f.value[t.key] = e,
|
|
2573
2605
|
id: `${L(Y)}-filter-${String(t.key)}`,
|
|
2574
2606
|
"aria-describedby": t.filter.description ? `${L(Y)}-filter-description-${String(t.key)}` : void 0
|
|
2575
|
-
}, null, 8,
|
|
2576
|
-
s("label", { for: `${L(Y)}-filter-${String(t.key)}` }, N(t.filter.label), 9,
|
|
2607
|
+
}, null, 8, Er), [[U, f.value[t.key]]]),
|
|
2608
|
+
s("label", { for: `${L(Y)}-filter-${String(t.key)}` }, N(t.filter.label), 9, Dr),
|
|
2577
2609
|
t.filter.description ? (C(), o("span", {
|
|
2578
2610
|
key: 0,
|
|
2579
2611
|
class: "g-filter-description",
|
|
2580
2612
|
id: `${L(Y)}-filter-description-${String(t.key)}`
|
|
2581
|
-
}, N(t.filter.description), 9,
|
|
2582
|
-
])])) : t.filter.type === "multi-select" ? (C(), o("fieldset",
|
|
2613
|
+
}, N(t.filter.description), 9, Or)) : a("", !0)
|
|
2614
|
+
])])) : t.filter.type === "multi-select" ? (C(), o("fieldset", kr, [
|
|
2583
2615
|
r[4] ||= s("legend", { class: "g-multi-select-legend" }, " Include values ", -1),
|
|
2584
2616
|
(C(!0), o(e, null, D(t.filter.options, (e) => (C(), o("div", { key: e.value }, [q(s("input", {
|
|
2585
2617
|
type: "checkbox",
|
|
@@ -2587,7 +2619,7 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
2587
2619
|
id: `filter-${String(t.key)}-${e.value}`,
|
|
2588
2620
|
value: e.value,
|
|
2589
2621
|
name: "filter-multiselect"
|
|
2590
|
-
}, null, 8,
|
|
2622
|
+
}, null, 8, Ar), [[U, f.value[t.key]]]), s("label", { for: `filter-${String(t.key)}-${e.value}` }, N(e.label), 9, jr)]))), 128)),
|
|
2591
2623
|
f.value[t.key] && f.value[t.key].length ? (C(), i(Z, {
|
|
2592
2624
|
key: 0,
|
|
2593
2625
|
class: "clear-multiselect-btn",
|
|
@@ -2600,7 +2632,7 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
2600
2632
|
}, 8, ["onClick"])) : a("", !0)
|
|
2601
2633
|
])) : a("", !0)]),
|
|
2602
2634
|
_: 2
|
|
2603
|
-
}, 1024)) : a("", !0)])], 10,
|
|
2635
|
+
}, 1024)) : a("", !0)])], 10, _r))), 128))])]), l(er, {
|
|
2604
2636
|
data: t.data,
|
|
2605
2637
|
columns: t.columns,
|
|
2606
2638
|
"group-by": t.groupBy,
|
|
@@ -2627,8 +2659,8 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
2627
2659
|
"selected-rows",
|
|
2628
2660
|
"table-id",
|
|
2629
2661
|
"change-tracker"
|
|
2630
|
-
])], 8,
|
|
2631
|
-
t.bulkSelectionEnabled && p.value.length > 0 ? (C(), o("div",
|
|
2662
|
+
])], 8, fr),
|
|
2663
|
+
t.bulkSelectionEnabled && p.value.length > 0 ? (C(), o("div", Mr, [s("span", Nr, N(p.value.length) + " row" + N(p.value.length === 1 ? "" : "s") + " selected", 1), s("ul", Pr, [(C(!0), o(e, null, D(t.bulkActions, (e) => (C(), o("li", { key: e.id }, [l(Z, {
|
|
2632
2664
|
theme: e.theme || "accent",
|
|
2633
2665
|
onClick: (t) => ee(e.id),
|
|
2634
2666
|
size: "small"
|
|
@@ -2638,10 +2670,10 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
2638
2670
|
}, 1032, ["theme", "onClick"])]))), 128))])])) : a("", !0)
|
|
2639
2671
|
]));
|
|
2640
2672
|
}
|
|
2641
|
-
}), [["__scopeId", "data-v-32760cb5"]]),
|
|
2673
|
+
}), [["__scopeId", "data-v-32760cb5"]]), Ir = {
|
|
2642
2674
|
class: "g-pagination",
|
|
2643
2675
|
"aria-label": "Pagination"
|
|
2644
|
-
},
|
|
2676
|
+
}, Lr = ["disabled"], Rr = ["disabled"], zr = { class: "page-range" }, Br = ["disabled"], Vr = ["disabled"], Hr = ["value"], Ur = ["value"], Wr = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
2645
2677
|
__name: "GTablePagination",
|
|
2646
2678
|
props: /* @__PURE__ */ m({
|
|
2647
2679
|
start: {},
|
|
@@ -2663,7 +2695,7 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
2663
2695
|
function h(e) {
|
|
2664
2696
|
c.value = parseInt(e.target.value, 10);
|
|
2665
2697
|
}
|
|
2666
|
-
return (t, r) => (C(), o("nav",
|
|
2698
|
+
return (t, r) => (C(), o("nav", Ir, [
|
|
2667
2699
|
s("button", {
|
|
2668
2700
|
class: "first-page g-pagination-button",
|
|
2669
2701
|
disabled: p.value === 1,
|
|
@@ -2688,7 +2720,7 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
2688
2720
|
}),
|
|
2689
2721
|
s("path", { d: "M11 7l-5 5l5 5" }),
|
|
2690
2722
|
s("path", { d: "M17 7l-5 5l5 5" })
|
|
2691
|
-
], -1)]], 8,
|
|
2723
|
+
], -1)]], 8, Lr),
|
|
2692
2724
|
s("button", {
|
|
2693
2725
|
class: "prev-page g-pagination-button",
|
|
2694
2726
|
disabled: p.value === 1,
|
|
@@ -2709,8 +2741,8 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
2709
2741
|
stroke: "none",
|
|
2710
2742
|
d: "M0 0h24v24H0z",
|
|
2711
2743
|
fill: "none"
|
|
2712
|
-
}), s("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8,
|
|
2713
|
-
s("span",
|
|
2744
|
+
}), s("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8, Rr),
|
|
2745
|
+
s("span", zr, N(d.value) + " to " + N(f.value), 1),
|
|
2714
2746
|
s("button", {
|
|
2715
2747
|
class: "next-page g-pagination-button",
|
|
2716
2748
|
disabled: p.value === i.value,
|
|
@@ -2731,7 +2763,7 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
2731
2763
|
stroke: "none",
|
|
2732
2764
|
d: "M0 0h24v24H0z",
|
|
2733
2765
|
fill: "none"
|
|
2734
|
-
}), s("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8,
|
|
2766
|
+
}), s("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8, Br),
|
|
2735
2767
|
s("button", {
|
|
2736
2768
|
class: "last-page g-pagination-button",
|
|
2737
2769
|
disabled: p.value === i.value,
|
|
@@ -2756,7 +2788,7 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
2756
2788
|
}),
|
|
2757
2789
|
s("path", { d: "M7 7l5 5l-5 5" }),
|
|
2758
2790
|
s("path", { d: "M13 7l5 5l-5 5" })
|
|
2759
|
-
], -1)]], 8,
|
|
2791
|
+
], -1)]], 8, Vr),
|
|
2760
2792
|
s("select", {
|
|
2761
2793
|
id: "page-size-select",
|
|
2762
2794
|
class: "page-size-select",
|
|
@@ -2770,14 +2802,14 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
2770
2802
|
], (e) => (C(), o("option", {
|
|
2771
2803
|
key: e,
|
|
2772
2804
|
value: e
|
|
2773
|
-
}, N(e), 9,
|
|
2805
|
+
}, N(e), 9, Ur))), 128))], 40, Hr),
|
|
2774
2806
|
r[8] ||= s("label", {
|
|
2775
2807
|
class: "page-size-label",
|
|
2776
2808
|
for: "page-size-select"
|
|
2777
2809
|
}, "per page", -1)
|
|
2778
2810
|
]));
|
|
2779
2811
|
}
|
|
2780
|
-
}), [["__scopeId", "data-v-ae2bd887"]]),
|
|
2812
|
+
}), [["__scopeId", "data-v-ae2bd887"]]), Gr = ["id"], Kr = { class: "g-modal-inner" }, qr = { class: "g-modal-header" }, Jr = ["id"], Yr = ["id"], Xr = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
2781
2813
|
__name: "GModal",
|
|
2782
2814
|
props: {
|
|
2783
2815
|
label: {},
|
|
@@ -2791,11 +2823,11 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
2791
2823
|
},
|
|
2792
2824
|
emits: ["close"],
|
|
2793
2825
|
setup(e, { emit: c }) {
|
|
2794
|
-
let u = e, d = c, f = H("dialog"), p = E(!0), m = z(), { pop: g, push: _, isTop: v, zIndex: y } =
|
|
2826
|
+
let u = e, d = c, f = H("dialog"), p = E(!0), m = z(), { pop: g, push: _, isTop: v, zIndex: y } = qe(m, !0, !0), { deactivate: x, activate: w } = $e(f, v);
|
|
2795
2827
|
function T() {
|
|
2796
2828
|
d("close");
|
|
2797
2829
|
}
|
|
2798
|
-
|
|
2830
|
+
et([f], v, p, T, g), S(() => {
|
|
2799
2831
|
_(), w();
|
|
2800
2832
|
}), b(() => {
|
|
2801
2833
|
g(), x();
|
|
@@ -2821,12 +2853,12 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
2821
2853
|
ref_key: "dialog",
|
|
2822
2854
|
ref: f,
|
|
2823
2855
|
style: { zIndex: L(y) }
|
|
2824
|
-
}), [s("div",
|
|
2856
|
+
}), [s("div", Kr, [s("div", qr, [e.hiddenLabel ? a("", !0) : (C(), o("h2", {
|
|
2825
2857
|
key: 0,
|
|
2826
2858
|
id: "modal-label-" + L(m),
|
|
2827
2859
|
class: "g-modal-label",
|
|
2828
2860
|
tabindex: "-1"
|
|
2829
|
-
}, N(e.label), 9,
|
|
2861
|
+
}, N(e.label), 9, Jr)), s("button", {
|
|
2830
2862
|
class: "g-modal-close",
|
|
2831
2863
|
onClick: T,
|
|
2832
2864
|
"aria-label": "Close"
|
|
@@ -2841,16 +2873,16 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
2841
2873
|
})], -1)]])]), s("div", {
|
|
2842
2874
|
id: "modal-description-" + L(m),
|
|
2843
2875
|
class: "g-modal-content"
|
|
2844
|
-
}, [O(r.$slots, "default", {}, void 0, !0)], 8,
|
|
2876
|
+
}, [O(r.$slots, "default", {}, void 0, !0)], 8, Yr)])], 16, Gr)]),
|
|
2845
2877
|
_: 3
|
|
2846
2878
|
})]));
|
|
2847
2879
|
}
|
|
2848
|
-
}), [["__scopeId", "data-v-1b1aed31"]]),
|
|
2880
|
+
}), [["__scopeId", "data-v-1b1aed31"]]), Zr = [
|
|
2849
2881
|
"id",
|
|
2850
2882
|
"aria-expanded",
|
|
2851
2883
|
"aria-label",
|
|
2852
2884
|
"aria-controls"
|
|
2853
|
-
],
|
|
2885
|
+
], Qr = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
2854
2886
|
__name: "GHamburgerMenu",
|
|
2855
2887
|
props: {
|
|
2856
2888
|
label: { default: "Main Navigation" },
|
|
@@ -2858,7 +2890,7 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
2858
2890
|
},
|
|
2859
2891
|
emits: ["toggle"],
|
|
2860
2892
|
setup(e, { emit: t }) {
|
|
2861
|
-
let n = e, r = p("sidebar") ?? (de() ?
|
|
2893
|
+
let n = e, r = p("sidebar") ?? (de() ? un(n.sidebarKey) : void 0), i = t;
|
|
2862
2894
|
function a() {
|
|
2863
2895
|
i("toggle"), r?.toggle();
|
|
2864
2896
|
}
|
|
@@ -2880,34 +2912,34 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
2880
2912
|
}, [...n[0] ||= [s("svg", {
|
|
2881
2913
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2882
2914
|
viewBox: "0 0 51.26 51.26"
|
|
2883
|
-
}, [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)]], 42,
|
|
2915
|
+
}, [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)]], 42, Zr));
|
|
2884
2916
|
}
|
|
2885
|
-
}), [["__scopeId", "data-v-2ff52853"]]),
|
|
2917
|
+
}), [["__scopeId", "data-v-2ff52853"]]), $r = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
2886
2918
|
__name: "GDetailList",
|
|
2887
2919
|
props: { variant: { default: "grid" } },
|
|
2888
2920
|
setup(e) {
|
|
2889
2921
|
let t = e;
|
|
2890
2922
|
return (e, n) => (C(), o("dl", { class: _(["g-detail-list", `g-detail-list--${t.variant}`]) }, [O(e.$slots, "default", {}, void 0, !0)], 2));
|
|
2891
2923
|
}
|
|
2892
|
-
}), [["__scopeId", "data-v-b851df7b"]]),
|
|
2924
|
+
}), [["__scopeId", "data-v-b851df7b"]]), ei = { class: "g-detail-list-item" }, ti = { class: "g-detail-list-item__label" }, ni = { class: "g-detail-list-item__value" }, ri = /* @__PURE__ */ u({
|
|
2893
2925
|
__name: "GDetailListItem",
|
|
2894
2926
|
props: { label: {} },
|
|
2895
2927
|
setup(e) {
|
|
2896
|
-
return (t, n) => (C(), o("div",
|
|
2928
|
+
return (t, n) => (C(), o("div", ei, [s("dt", ti, [O(t.$slots, "label", {}, () => [c(N(e.label), 1)])]), s("dd", ni, [O(t.$slots, "default")])]));
|
|
2897
2929
|
}
|
|
2898
|
-
}),
|
|
2930
|
+
}), ii = {
|
|
2899
2931
|
key: 0,
|
|
2900
2932
|
class: "g-scroll-lock-overlay"
|
|
2901
|
-
},
|
|
2933
|
+
}, ai = /* @__PURE__ */ u({
|
|
2902
2934
|
__name: "GOverlay",
|
|
2903
2935
|
setup(e) {
|
|
2904
|
-
let { hasScrollLock: t } =
|
|
2936
|
+
let { hasScrollLock: t } = Je();
|
|
2905
2937
|
return (e, r) => (C(), i(n, { name: "g-fade" }, {
|
|
2906
|
-
default: K(() => [L(t) ? (C(), o("div",
|
|
2938
|
+
default: K(() => [L(t) ? (C(), o("div", ii)) : a("", !0)]),
|
|
2907
2939
|
_: 1
|
|
2908
2940
|
}));
|
|
2909
2941
|
}
|
|
2910
|
-
}),
|
|
2942
|
+
}), oi = { class: "popover-content" }, si = { class: "year-dropdown" }, ci = { class: "month-selector" }, li = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
2911
2943
|
__name: "GTermSelectorControl",
|
|
2912
2944
|
props: /* @__PURE__ */ m({
|
|
2913
2945
|
termYears: { default: () => ["2026"] },
|
|
@@ -2928,7 +2960,7 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
2928
2960
|
emits: ["update:modelValue"],
|
|
2929
2961
|
setup(e) {
|
|
2930
2962
|
let t = B(e, "modelValue");
|
|
2931
|
-
return (n, r) => (C(), o("div",
|
|
2963
|
+
return (n, r) => (C(), o("div", oi, [s("div", si, [l(Ut, {
|
|
2932
2964
|
modelValue: t.value.year,
|
|
2933
2965
|
"onUpdate:modelValue": r[0] ||= (e) => t.value.year = e,
|
|
2934
2966
|
options: e.termYears,
|
|
@@ -2937,7 +2969,7 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
2937
2969
|
"modelValue",
|
|
2938
2970
|
"options",
|
|
2939
2971
|
"label"
|
|
2940
|
-
])]), s("div",
|
|
2972
|
+
])]), s("div", ci, [l(bt, {
|
|
2941
2973
|
modelValue: t.value.name,
|
|
2942
2974
|
"onUpdate:modelValue": r[1] ||= (e) => t.value.name = e,
|
|
2943
2975
|
options: e.termNames,
|
|
@@ -2949,10 +2981,10 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
2949
2981
|
"label"
|
|
2950
2982
|
])])]));
|
|
2951
2983
|
}
|
|
2952
|
-
}), [["__scopeId", "data-v-43c70980"]]),
|
|
2984
|
+
}), [["__scopeId", "data-v-43c70980"]]), ui = { class: "g-term-selector" }, di = { class: "g-term-label" }, fi = {
|
|
2953
2985
|
class: "popover-title",
|
|
2954
2986
|
tabindex: "-1"
|
|
2955
|
-
},
|
|
2987
|
+
}, pi = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
2956
2988
|
__name: "GTermSelector",
|
|
2957
2989
|
props: /* @__PURE__ */ m({
|
|
2958
2990
|
title: { default: "Period Selection" },
|
|
@@ -2974,7 +3006,7 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
2974
3006
|
emits: ["update:modelValue"],
|
|
2975
3007
|
setup(e) {
|
|
2976
3008
|
let t = B(e, "modelValue");
|
|
2977
|
-
return (n, r) => (C(), o("div",
|
|
3009
|
+
return (n, r) => (C(), o("div", ui, [l(at, null, {
|
|
2978
3010
|
trigger: K(({ toggle: e }) => [l(Z, {
|
|
2979
3011
|
class: "g-term-selector-button",
|
|
2980
3012
|
theme: "none",
|
|
@@ -2987,7 +3019,7 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
2987
3019
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2988
3020
|
viewBox: "0 0 640 640"
|
|
2989
3021
|
}, [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),
|
|
2990
|
-
s("span",
|
|
3022
|
+
s("span", di, N(t.value?.name) + " " + N(t.value?.year), 1),
|
|
2991
3023
|
r[1] ||= s("span", { class: "g-caret" }, [s("svg", {
|
|
2992
3024
|
role: "none presentation",
|
|
2993
3025
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2996,15 +3028,15 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
2996
3028
|
]),
|
|
2997
3029
|
_: 1
|
|
2998
3030
|
}, 8, ["onClick"])]),
|
|
2999
|
-
default: K(() => [s("h2",
|
|
3031
|
+
default: K(() => [s("h2", fi, N(e.title), 1), l(li, v(f(n.$props)), null, 16)]),
|
|
3000
3032
|
_: 1
|
|
3001
3033
|
})]));
|
|
3002
3034
|
}
|
|
3003
|
-
}), [["__scopeId", "data-v-47e0fca1"]]),
|
|
3035
|
+
}), [["__scopeId", "data-v-47e0fca1"]]), mi = { class: "g-user-menu" }, hi = [
|
|
3004
3036
|
"aria-label",
|
|
3005
3037
|
"aria-expanded",
|
|
3006
3038
|
"onClick"
|
|
3007
|
-
],
|
|
3039
|
+
], gi = { class: "g-user-menu__popover" }, _i = { class: "g-user-menu__list" }, vi = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
3008
3040
|
__name: "GUserMenu",
|
|
3009
3041
|
props: {
|
|
3010
3042
|
initials: {},
|
|
@@ -3016,7 +3048,7 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
3016
3048
|
let n = `${z()}-email`, r = E(!1), a = H("emailHeading");
|
|
3017
3049
|
d()?.appContext?.components?.RouterLink;
|
|
3018
3050
|
let c = V();
|
|
3019
|
-
return (u, d) => (C(), o("div",
|
|
3051
|
+
return (u, d) => (C(), o("div", mi, [l(at, {
|
|
3020
3052
|
modelValue: r.value,
|
|
3021
3053
|
"onUpdate:modelValue": d[0] ||= (e) => r.value = e,
|
|
3022
3054
|
minimal: ""
|
|
@@ -3028,8 +3060,8 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
3028
3060
|
"aria-expanded": r.value,
|
|
3029
3061
|
"aria-haspopup": "menu",
|
|
3030
3062
|
onClick: e
|
|
3031
|
-
}, N(t.initials), 13,
|
|
3032
|
-
default: K(() => [s("div",
|
|
3063
|
+
}, N(t.initials), 13, hi)]),
|
|
3064
|
+
default: K(() => [s("div", gi, [s("h2", {
|
|
3033
3065
|
id: n,
|
|
3034
3066
|
ref_key: "emailHeading",
|
|
3035
3067
|
ref: a,
|
|
@@ -3038,11 +3070,11 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
3038
3070
|
}, N(t.email), 513), s("nav", {
|
|
3039
3071
|
class: "g-user-menu__nav",
|
|
3040
3072
|
"aria-labelledby": n
|
|
3041
|
-
}, [s("ul",
|
|
3073
|
+
}, [s("ul", _i, [(C(!0), o(e, null, D(c.default(), (e, t) => (C(), o("li", { key: t }, [(C(), i(A(e)))]))), 128))])])])]),
|
|
3042
3074
|
_: 1
|
|
3043
3075
|
}, 8, ["modelValue"])]));
|
|
3044
3076
|
}
|
|
3045
|
-
}), [["__scopeId", "data-v-cedd2d44"]]),
|
|
3077
|
+
}), [["__scopeId", "data-v-cedd2d44"]]), yi = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
3046
3078
|
__name: "GCurrencyInput",
|
|
3047
3079
|
props: /* @__PURE__ */ m({
|
|
3048
3080
|
label: { default: void 0 },
|
|
@@ -3051,6 +3083,10 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
3051
3083
|
type: Boolean,
|
|
3052
3084
|
default: !1
|
|
3053
3085
|
},
|
|
3086
|
+
required: {
|
|
3087
|
+
type: Boolean,
|
|
3088
|
+
default: !1
|
|
3089
|
+
},
|
|
3054
3090
|
errors: { default: () => [] },
|
|
3055
3091
|
instructions: { default: "" },
|
|
3056
3092
|
name: { default: void 0 },
|
|
@@ -3062,13 +3098,14 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
3062
3098
|
emits: ["update:modelValue"],
|
|
3063
3099
|
setup(e) {
|
|
3064
3100
|
let t = e, n = B(e, "modelValue");
|
|
3065
|
-
return (e, r) => (C(), i(
|
|
3101
|
+
return (e, r) => (C(), i(ze, h({
|
|
3066
3102
|
modelValue: n.value,
|
|
3067
3103
|
"onUpdate:modelValue": r[0] ||= (e) => n.value = e,
|
|
3068
3104
|
name: t.name,
|
|
3069
3105
|
label: t.label,
|
|
3070
3106
|
placeholder: t.placeholder,
|
|
3071
3107
|
disabled: t.disabled,
|
|
3108
|
+
required: t.required,
|
|
3072
3109
|
errors: t.errors,
|
|
3073
3110
|
instructions: t.instructions,
|
|
3074
3111
|
"form-key": t.formKey,
|
|
@@ -3082,12 +3119,13 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
3082
3119
|
"label",
|
|
3083
3120
|
"placeholder",
|
|
3084
3121
|
"disabled",
|
|
3122
|
+
"required",
|
|
3085
3123
|
"errors",
|
|
3086
3124
|
"instructions",
|
|
3087
3125
|
"form-key"
|
|
3088
3126
|
]));
|
|
3089
3127
|
}
|
|
3090
|
-
}), [["__scopeId", "data-v-
|
|
3128
|
+
}), [["__scopeId", "data-v-6ad6135a"]]), bi = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
3091
3129
|
__name: "GEmailInput",
|
|
3092
3130
|
props: /* @__PURE__ */ m({
|
|
3093
3131
|
label: { default: void 0 },
|
|
@@ -3096,6 +3134,10 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
3096
3134
|
type: Boolean,
|
|
3097
3135
|
default: !1
|
|
3098
3136
|
},
|
|
3137
|
+
required: {
|
|
3138
|
+
type: Boolean,
|
|
3139
|
+
default: !1
|
|
3140
|
+
},
|
|
3099
3141
|
errors: { default: () => [] },
|
|
3100
3142
|
instructions: { default: "" },
|
|
3101
3143
|
name: { default: void 0 }
|
|
@@ -3106,13 +3148,14 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
3106
3148
|
emits: ["update:modelValue"],
|
|
3107
3149
|
setup(e) {
|
|
3108
3150
|
let t = B(e, "modelValue");
|
|
3109
|
-
return (n, r) => (C(), i(
|
|
3151
|
+
return (n, r) => (C(), i(ze, h({
|
|
3110
3152
|
modelValue: t.value,
|
|
3111
3153
|
"onUpdate:modelValue": r[0] ||= (e) => t.value = e,
|
|
3112
3154
|
name: e.name,
|
|
3113
3155
|
label: e.label,
|
|
3114
3156
|
placeholder: e.placeholder,
|
|
3115
3157
|
disabled: e.disabled,
|
|
3158
|
+
required: e.required,
|
|
3116
3159
|
errors: e.errors,
|
|
3117
3160
|
instructions: e.instructions,
|
|
3118
3161
|
type: "email"
|
|
@@ -3122,17 +3165,18 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
3122
3165
|
"label",
|
|
3123
3166
|
"placeholder",
|
|
3124
3167
|
"disabled",
|
|
3168
|
+
"required",
|
|
3125
3169
|
"errors",
|
|
3126
3170
|
"instructions"
|
|
3127
3171
|
]));
|
|
3128
3172
|
}
|
|
3129
|
-
}), [["__scopeId", "data-v-
|
|
3173
|
+
}), [["__scopeId", "data-v-d6d4df0c"]]), xi = ["for"], Si = {
|
|
3130
3174
|
key: 0,
|
|
3131
3175
|
class: "g-file-input-required"
|
|
3132
|
-
},
|
|
3176
|
+
}, Ci = {
|
|
3133
3177
|
key: 0,
|
|
3134
3178
|
class: "g-file-input-box-header"
|
|
3135
|
-
},
|
|
3179
|
+
}, wi = ["id"], Ti = [
|
|
3136
3180
|
"id",
|
|
3137
3181
|
"disabled",
|
|
3138
3182
|
"required",
|
|
@@ -3141,11 +3185,11 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
3141
3185
|
"aria-invalid",
|
|
3142
3186
|
"aria-describedby",
|
|
3143
3187
|
"aria-errormessage"
|
|
3144
|
-
],
|
|
3188
|
+
], Ei = {
|
|
3145
3189
|
key: 1,
|
|
3146
3190
|
class: "g-file-input-pills",
|
|
3147
3191
|
"aria-label": "Selected files"
|
|
3148
|
-
},
|
|
3192
|
+
}, Di = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
3149
3193
|
inheritAttrs: !1,
|
|
3150
3194
|
__name: "GFileInput",
|
|
3151
3195
|
props: /* @__PURE__ */ m({
|
|
@@ -3202,12 +3246,12 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
3202
3246
|
key: 0,
|
|
3203
3247
|
for: L(d),
|
|
3204
3248
|
class: "g-file-input-label"
|
|
3205
|
-
}, [c(N(t.label) + " ", 1), t.required ? (C(), o("span",
|
|
3249
|
+
}, [c(N(t.label) + " ", 1), t.required ? (C(), o("span", Si, "*")) : a("", !0)], 8, xi)) : a("", !0),
|
|
3206
3250
|
s("div", { class: _(["g-file-input-box", { "g-file-input-box--disabled": t.disabled }]) }, [
|
|
3207
|
-
t.instructions ? (C(), o("div",
|
|
3251
|
+
t.instructions ? (C(), o("div", Ci, [s("span", {
|
|
3208
3252
|
id: "instructions-" + L(d),
|
|
3209
3253
|
class: "g-file-input-instructions"
|
|
3210
|
-
}, N(t.instructions), 9,
|
|
3254
|
+
}, N(t.instructions), 9, wi)])) : a("", !0),
|
|
3211
3255
|
s("input", {
|
|
3212
3256
|
id: L(d),
|
|
3213
3257
|
type: "file",
|
|
@@ -3220,8 +3264,8 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
3220
3264
|
"aria-describedby": t.instructions ? "instructions-" + L(d) : void 0,
|
|
3221
3265
|
"aria-errormessage": y.value ? "error-message-" + L(d) : void 0,
|
|
3222
3266
|
onChange: g
|
|
3223
|
-
}, null, 40,
|
|
3224
|
-
t.multiple && b.value.length > 0 ? (C(), o("ul",
|
|
3267
|
+
}, null, 40, Ti),
|
|
3268
|
+
t.multiple && b.value.length > 0 ? (C(), o("ul", Ei, [(C(!0), o(e, null, D(b.value, (e) => (C(), o("li", {
|
|
3225
3269
|
key: e,
|
|
3226
3270
|
class: "g-file-input-pill"
|
|
3227
3271
|
}, [r[0] ||= s("svg", {
|
|
@@ -3237,7 +3281,7 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
3237
3281
|
}, null, 8, ["errors", "id"])
|
|
3238
3282
|
], 2));
|
|
3239
3283
|
}
|
|
3240
|
-
}), [["__scopeId", "data-v-0c8c7f65"]]),
|
|
3284
|
+
}), [["__scopeId", "data-v-0c8c7f65"]]), Oi = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
3241
3285
|
__name: "GDateInput",
|
|
3242
3286
|
props: /* @__PURE__ */ m({
|
|
3243
3287
|
label: { default: void 0 },
|
|
@@ -3246,6 +3290,10 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
3246
3290
|
type: Boolean,
|
|
3247
3291
|
default: !1
|
|
3248
3292
|
},
|
|
3293
|
+
required: {
|
|
3294
|
+
type: Boolean,
|
|
3295
|
+
default: !1
|
|
3296
|
+
},
|
|
3249
3297
|
errors: { default: () => [] },
|
|
3250
3298
|
instructions: { default: "" },
|
|
3251
3299
|
name: { default: void 0 },
|
|
@@ -3257,13 +3305,14 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
3257
3305
|
emits: ["update:modelValue"],
|
|
3258
3306
|
setup(e) {
|
|
3259
3307
|
let t = e, n = B(e, "modelValue");
|
|
3260
|
-
return (e, r) => (C(), i(
|
|
3308
|
+
return (e, r) => (C(), i(ze, h({
|
|
3261
3309
|
modelValue: n.value,
|
|
3262
3310
|
"onUpdate:modelValue": r[0] ||= (e) => n.value = e,
|
|
3263
3311
|
name: t.name,
|
|
3264
3312
|
label: t.label,
|
|
3265
3313
|
placeholder: t.placeholder,
|
|
3266
3314
|
disabled: t.disabled,
|
|
3315
|
+
required: t.required,
|
|
3267
3316
|
errors: t.errors,
|
|
3268
3317
|
instructions: t.instructions,
|
|
3269
3318
|
"form-key": t.formKey,
|
|
@@ -3274,22 +3323,27 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
3274
3323
|
"label",
|
|
3275
3324
|
"placeholder",
|
|
3276
3325
|
"disabled",
|
|
3326
|
+
"required",
|
|
3277
3327
|
"errors",
|
|
3278
3328
|
"instructions",
|
|
3279
3329
|
"form-key"
|
|
3280
3330
|
]));
|
|
3281
3331
|
}
|
|
3282
|
-
}), [["__scopeId", "data-v-
|
|
3332
|
+
}), [["__scopeId", "data-v-da47b274"]]), ki = { class: "g-date-range-input" }, Ai = {
|
|
3283
3333
|
key: 0,
|
|
3284
3334
|
class: "g-date-range-input__label"
|
|
3285
|
-
},
|
|
3335
|
+
}, ji = {
|
|
3336
|
+
key: 0,
|
|
3337
|
+
class: "g-date-range-input__required",
|
|
3338
|
+
"aria-hidden": "true"
|
|
3339
|
+
}, Mi = {
|
|
3286
3340
|
key: 1,
|
|
3287
3341
|
class: "g-date-range-input__instructions"
|
|
3288
|
-
},
|
|
3342
|
+
}, Ni = { class: "g-date-range-input__fields" }, Pi = {
|
|
3289
3343
|
key: 2,
|
|
3290
3344
|
class: "g-date-range-input__errors",
|
|
3291
3345
|
role: "alert"
|
|
3292
|
-
},
|
|
3346
|
+
}, Fi = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
3293
3347
|
__name: "GDateRangeInput",
|
|
3294
3348
|
props: /* @__PURE__ */ m({
|
|
3295
3349
|
label: { default: void 0 },
|
|
@@ -3299,6 +3353,10 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
3299
3353
|
type: Boolean,
|
|
3300
3354
|
default: !1
|
|
3301
3355
|
},
|
|
3356
|
+
required: {
|
|
3357
|
+
type: Boolean,
|
|
3358
|
+
default: !1
|
|
3359
|
+
},
|
|
3302
3360
|
errors: { default: () => [] },
|
|
3303
3361
|
instructions: { default: "" },
|
|
3304
3362
|
name: { default: void 0 },
|
|
@@ -3312,50 +3370,54 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
3312
3370
|
}),
|
|
3313
3371
|
emits: ["update:modelValue"],
|
|
3314
3372
|
setup(t) {
|
|
3315
|
-
let n = t, r = B(t, "modelValue"), i = E(r.value.start || null),
|
|
3373
|
+
let n = t, r = B(t, "modelValue"), i = E(r.value.start || null), u = E(r.value.end || null), { displayErrors: d } = $({
|
|
3316
3374
|
name: n.name,
|
|
3317
3375
|
value: r,
|
|
3318
3376
|
errors: F(n, "errors"),
|
|
3319
3377
|
formKey: n.formKey
|
|
3320
3378
|
});
|
|
3321
|
-
return W([i,
|
|
3379
|
+
return W([i, u], () => {
|
|
3322
3380
|
r.value = {
|
|
3323
3381
|
start: i.value,
|
|
3324
|
-
end:
|
|
3382
|
+
end: u.value
|
|
3325
3383
|
};
|
|
3326
3384
|
}), W(r, (e) => {
|
|
3327
|
-
e.start !== i.value && (i.value = e.start), e.end !==
|
|
3328
|
-
}, { deep: !0 }), (t, r) => (C(), o("div",
|
|
3329
|
-
n.label ? (C(), o("div",
|
|
3330
|
-
n.instructions ? (C(), o("div",
|
|
3331
|
-
s("div",
|
|
3385
|
+
e.start !== i.value && (i.value = e.start), e.end !== u.value && (u.value = e.end);
|
|
3386
|
+
}, { deep: !0 }), (t, r) => (C(), o("div", ki, [
|
|
3387
|
+
n.label ? (C(), o("div", Ai, [c(N(n.label), 1), n.required ? (C(), o("span", ji, " *")) : a("", !0)])) : a("", !0),
|
|
3388
|
+
n.instructions ? (C(), o("div", Mi, N(n.instructions), 1)) : a("", !0),
|
|
3389
|
+
s("div", Ni, [l(Oi, {
|
|
3332
3390
|
modelValue: i.value,
|
|
3333
3391
|
"onUpdate:modelValue": r[0] ||= (e) => i.value = e,
|
|
3334
3392
|
label: n.startLabel,
|
|
3335
3393
|
disabled: n.disabled,
|
|
3394
|
+
required: n.required,
|
|
3336
3395
|
class: "g-date-range-input__field"
|
|
3337
3396
|
}, null, 8, [
|
|
3338
3397
|
"modelValue",
|
|
3339
3398
|
"label",
|
|
3340
|
-
"disabled"
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3399
|
+
"disabled",
|
|
3400
|
+
"required"
|
|
3401
|
+
]), l(Oi, {
|
|
3402
|
+
modelValue: u.value,
|
|
3403
|
+
"onUpdate:modelValue": r[1] ||= (e) => u.value = e,
|
|
3344
3404
|
label: n.endLabel,
|
|
3345
3405
|
disabled: n.disabled,
|
|
3406
|
+
required: n.required,
|
|
3346
3407
|
class: "g-date-range-input__field"
|
|
3347
3408
|
}, null, 8, [
|
|
3348
3409
|
"modelValue",
|
|
3349
3410
|
"label",
|
|
3350
|
-
"disabled"
|
|
3411
|
+
"disabled",
|
|
3412
|
+
"required"
|
|
3351
3413
|
])]),
|
|
3352
|
-
L(
|
|
3414
|
+
L(d).length > 0 ? (C(), o("div", Pi, [(C(!0), o(e, null, D(L(d), (e, t) => (C(), o("div", {
|
|
3353
3415
|
key: t,
|
|
3354
3416
|
class: "g-date-range-input__error"
|
|
3355
3417
|
}, N(e), 1))), 128))])) : a("", !0)
|
|
3356
3418
|
]));
|
|
3357
3419
|
}
|
|
3358
|
-
}), [["__scopeId", "data-v-
|
|
3420
|
+
}), [["__scopeId", "data-v-e61c209b"]]), Ii = ["action", "method"], Li = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
3359
3421
|
__name: "GForm",
|
|
3360
3422
|
props: /* @__PURE__ */ m({
|
|
3361
3423
|
action: { default: void 0 },
|
|
@@ -3395,9 +3457,9 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
3395
3457
|
hasErrors: L(s).hasErrors.value,
|
|
3396
3458
|
values: L(s).values.value,
|
|
3397
3459
|
errors: L(s).errors.value
|
|
3398
|
-
}, void 0, !0)], 40,
|
|
3460
|
+
}, void 0, !0)], 40, Ii));
|
|
3399
3461
|
}
|
|
3400
|
-
}), [["__scopeId", "data-v-3f5a6392"]]),
|
|
3462
|
+
}), [["__scopeId", "data-v-3f5a6392"]]), Ri = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
3401
3463
|
__name: "GSubmitButton",
|
|
3402
3464
|
props: {
|
|
3403
3465
|
disabled: {
|
|
@@ -3420,29 +3482,30 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
3420
3482
|
_: 3
|
|
3421
3483
|
}, 8, ["disabled", "variant"]));
|
|
3422
3484
|
}
|
|
3423
|
-
}), [["__scopeId", "data-v-053621d8"]]),
|
|
3485
|
+
}), [["__scopeId", "data-v-053621d8"]]), zi = {
|
|
3424
3486
|
key: 0,
|
|
3425
3487
|
class: "g-checkbox-group__legend"
|
|
3426
|
-
},
|
|
3488
|
+
}, Bi = {
|
|
3427
3489
|
key: 0,
|
|
3428
3490
|
class: "g-checkbox-group__required",
|
|
3429
3491
|
"aria-hidden": "true"
|
|
3430
|
-
},
|
|
3492
|
+
}, Vi = {
|
|
3431
3493
|
key: 1,
|
|
3432
3494
|
class: "g-checkbox-group__label"
|
|
3433
|
-
},
|
|
3495
|
+
}, Hi = {
|
|
3434
3496
|
key: 0,
|
|
3435
3497
|
class: "g-checkbox-group__required",
|
|
3436
3498
|
"aria-hidden": "true"
|
|
3437
|
-
},
|
|
3499
|
+
}, Ui = ["id"], Wi = { class: "g-checkbox-group__options" }, Gi = ["for"], Ki = [
|
|
3438
3500
|
"id",
|
|
3439
3501
|
"type",
|
|
3440
3502
|
"name",
|
|
3441
3503
|
"value",
|
|
3442
3504
|
"checked",
|
|
3443
3505
|
"disabled",
|
|
3506
|
+
"required",
|
|
3444
3507
|
"onChange"
|
|
3445
|
-
],
|
|
3508
|
+
], qi = { class: "g-checkbox-group__label-text" }, Ji = ["id"], Yi = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
3446
3509
|
__name: "GCheckboxGroup",
|
|
3447
3510
|
props: /* @__PURE__ */ m({
|
|
3448
3511
|
label: { default: void 0 },
|
|
@@ -3479,14 +3542,13 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
3479
3542
|
n = u.radio ? t ? [e] : [] : t ? d.value.includes(e) ? d.value : [...d.value, e] : d.value.filter((t) => t !== e), d.value = n, g("change", n);
|
|
3480
3543
|
}
|
|
3481
3544
|
let b = r(() => u.radio ? "radio" : "checkbox"), x = r(() => `error-message-${f}`), S = r(() => `instructions-${f}`), w = r(() => u.radio || u.options.length > 1), T = r(() => {
|
|
3482
|
-
if (!u.radio) return {};
|
|
3483
3545
|
let e = [];
|
|
3484
|
-
return u.instructions && e.push(S.value), {
|
|
3546
|
+
return u.instructions && e.push(S.value), u.radio ? {
|
|
3485
3547
|
role: "radiogroup",
|
|
3486
3548
|
"aria-invalid": m.value ? "true" : void 0,
|
|
3487
3549
|
"aria-errormessage": m.value ? x.value : void 0,
|
|
3488
3550
|
"aria-describedby": e.length ? e.join(" ") : void 0
|
|
3489
|
-
};
|
|
3551
|
+
} : { "aria-describedby": e.length ? e.join(" ") : void 0 };
|
|
3490
3552
|
});
|
|
3491
3553
|
function E(e) {
|
|
3492
3554
|
return `${f}-hint-${e}`;
|
|
@@ -3498,19 +3560,20 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
3498
3560
|
let n = [];
|
|
3499
3561
|
return !u.radio && u.instructions && n.push(S.value), e.hint && n.push(E(t)), u.radio ? { "aria-describedby": n.length ? n.join(" ") : void 0 } : {
|
|
3500
3562
|
"aria-describedby": n.length ? n.join(" ") : void 0,
|
|
3563
|
+
"aria-required": u.required && u.options.length > 1 ? "true" : void 0,
|
|
3501
3564
|
"aria-invalid": m.value ? "true" : "false",
|
|
3502
3565
|
"aria-errormessage": m.value ? x.value : void 0
|
|
3503
3566
|
};
|
|
3504
3567
|
}
|
|
3505
3568
|
return (n, r) => (C(), i(A(w.value ? "fieldset" : "div"), h({ class: ["g-checkbox-group", { "g-checkbox-group--error": L(m) }] }, T.value), {
|
|
3506
3569
|
default: K(() => [
|
|
3507
|
-
w.value && t.label ? (C(), o("legend",
|
|
3570
|
+
w.value && t.label ? (C(), o("legend", zi, [c(N(t.label), 1), t.required ? (C(), o("span", Bi, "\xA0*")) : a("", !0)])) : !w.value && t.label ? (C(), o("div", Vi, [c(N(t.label), 1), t.required ? (C(), o("span", Hi, "\xA0*")) : a("", !0)])) : a("", !0),
|
|
3508
3571
|
t.instructions ? (C(), o("div", {
|
|
3509
3572
|
key: 2,
|
|
3510
3573
|
id: S.value,
|
|
3511
3574
|
class: "g-checkbox-group__instructions"
|
|
3512
|
-
}, N(t.instructions), 9,
|
|
3513
|
-
s("div",
|
|
3575
|
+
}, N(t.instructions), 9, Ui)) : a("", !0),
|
|
3576
|
+
s("div", Wi, [(C(!0), o(e, null, D(t.options, (e, n) => (C(), o("div", {
|
|
3514
3577
|
key: e.value,
|
|
3515
3578
|
class: _(["g-checkbox-group__option-wrapper", { "g-checkbox-group__option-wrapper--disabled": e.disabled }])
|
|
3516
3579
|
}, [s("label", {
|
|
@@ -3523,12 +3586,13 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
3523
3586
|
value: e.value,
|
|
3524
3587
|
checked: v(e.value),
|
|
3525
3588
|
disabled: e.disabled,
|
|
3589
|
+
required: t.required && (t.radio && n === 0 || !t.radio && t.options.length === 1),
|
|
3526
3590
|
class: "g-checkbox-group__input"
|
|
3527
|
-
}, { ref_for: !0 }, k(e, n), { onChange: (t) => y(e.value, t.target.checked) }), null, 16,
|
|
3591
|
+
}, { ref_for: !0 }, k(e, n), { onChange: (t) => y(e.value, t.target.checked) }), null, 16, Ki), s("span", qi, N(e.label), 1)], 10, Gi), e.hint ? (C(), o("div", {
|
|
3528
3592
|
key: 0,
|
|
3529
3593
|
id: E(n),
|
|
3530
3594
|
class: "g-checkbox-group__hint"
|
|
3531
|
-
}, N(e.hint), 9,
|
|
3595
|
+
}, N(e.hint), 9, Ji)) : a("", !0)], 2))), 128))]),
|
|
3532
3596
|
l(Me, {
|
|
3533
3597
|
errors: L(p),
|
|
3534
3598
|
id: x.value
|
|
@@ -3537,23 +3601,24 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
3537
3601
|
_: 1
|
|
3538
3602
|
}, 16, ["class"]));
|
|
3539
3603
|
}
|
|
3540
|
-
}), [["__scopeId", "data-v-
|
|
3604
|
+
}), [["__scopeId", "data-v-962dc60c"]]), Xi = ["for"], Zi = {
|
|
3541
3605
|
key: 0,
|
|
3542
3606
|
class: "g-textarea-required",
|
|
3543
3607
|
"aria-hidden": "true"
|
|
3544
|
-
},
|
|
3608
|
+
}, Qi = ["id"], $i = [
|
|
3545
3609
|
"value",
|
|
3546
3610
|
"placeholder",
|
|
3547
3611
|
"disabled",
|
|
3548
3612
|
"readonly",
|
|
3613
|
+
"required",
|
|
3549
3614
|
"rows",
|
|
3550
3615
|
"maxlength",
|
|
3551
3616
|
"aria-invalid"
|
|
3552
|
-
],
|
|
3617
|
+
], ea = {
|
|
3553
3618
|
key: 2,
|
|
3554
3619
|
class: "g-textarea-char-count",
|
|
3555
3620
|
"aria-live": "polite"
|
|
3556
|
-
},
|
|
3621
|
+
}, ta = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
3557
3622
|
inheritAttrs: !1,
|
|
3558
3623
|
__name: "GTextarea",
|
|
3559
3624
|
props: /* @__PURE__ */ m({
|
|
@@ -3626,25 +3691,25 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
3626
3691
|
key: 0,
|
|
3627
3692
|
for: m.value,
|
|
3628
3693
|
class: "g-textarea-label"
|
|
3629
|
-
}, [c(N(n.label), 1), n.required ? (C(), o("span",
|
|
3694
|
+
}, [c(N(n.label), 1), n.required ? (C(), o("span", Zi, " *")) : a("", !0)], 8, Xi)) : a("", !0),
|
|
3630
3695
|
t.$slots.instructions || e.instructions ? (C(), o("div", {
|
|
3631
3696
|
key: 1,
|
|
3632
3697
|
id: "instructions-" + L(u),
|
|
3633
3698
|
class: "g-textarea-instructions"
|
|
3634
|
-
}, [O(t.$slots, "instructions", {}, () => [c(N(e.instructions), 1)], !0)], 8,
|
|
3699
|
+
}, [O(t.$slots, "instructions", {}, () => [c(N(e.instructions), 1)], !0)], 8, Qi)) : a("", !0),
|
|
3635
3700
|
s("textarea", h({
|
|
3636
3701
|
ref: "textareaEl",
|
|
3637
3702
|
value: i.value ?? "",
|
|
3638
3703
|
placeholder: n.placeholder,
|
|
3639
3704
|
disabled: n.disabled,
|
|
3640
3705
|
readonly: n.readonly,
|
|
3706
|
+
required: n.required,
|
|
3641
3707
|
rows: n.rows,
|
|
3642
3708
|
maxlength: n.maxlength ?? void 0,
|
|
3643
3709
|
class: "g-textarea"
|
|
3644
3710
|
}, {
|
|
3645
3711
|
...L(p),
|
|
3646
3712
|
id: m.value,
|
|
3647
|
-
"aria-required": n.required ? "true" : void 0,
|
|
3648
3713
|
"aria-describedby": t.$slots.instructions || e.instructions ? "instructions-" + L(u) : void 0,
|
|
3649
3714
|
"aria-errormessage": L(y) ? "error-message-" + L(u) : void 0
|
|
3650
3715
|
}, {
|
|
@@ -3652,19 +3717,23 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
3652
3717
|
onInput: T,
|
|
3653
3718
|
onBlur: E,
|
|
3654
3719
|
onPaste: D
|
|
3655
|
-
}), null, 16,
|
|
3656
|
-
n.maxlength === void 0 ? a("", !0) : (C(), o("div",
|
|
3720
|
+
}), null, 16, $i),
|
|
3721
|
+
n.maxlength === void 0 ? a("", !0) : (C(), o("div", ea, N((i.value ?? "").length) + " / " + N(n.maxlength), 1)),
|
|
3657
3722
|
l(Me, {
|
|
3658
3723
|
errors: L(v),
|
|
3659
3724
|
id: "error-message-" + L(u)
|
|
3660
3725
|
}, null, 8, ["errors", "id"])
|
|
3661
3726
|
], 2));
|
|
3662
3727
|
}
|
|
3663
|
-
}), [["__scopeId", "data-v-
|
|
3728
|
+
}), [["__scopeId", "data-v-8b09bb96"]]), na = ["id", "for"], ra = {
|
|
3729
|
+
key: 0,
|
|
3730
|
+
class: "g-multiselect-required",
|
|
3731
|
+
"aria-hidden": "true"
|
|
3732
|
+
}, ia = ["id"], aa = ["aria-labelledby"], oa = { class: "g-multiselect-chip-label" }, sa = [
|
|
3664
3733
|
"aria-label",
|
|
3665
3734
|
"disabled",
|
|
3666
3735
|
"onClick"
|
|
3667
|
-
],
|
|
3736
|
+
], ca = [
|
|
3668
3737
|
"id",
|
|
3669
3738
|
"value",
|
|
3670
3739
|
"placeholder",
|
|
@@ -3672,24 +3741,25 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
3672
3741
|
"aria-expanded",
|
|
3673
3742
|
"aria-controls",
|
|
3674
3743
|
"aria-activedescendant",
|
|
3675
|
-
"aria-describedby"
|
|
3676
|
-
|
|
3744
|
+
"aria-describedby",
|
|
3745
|
+
"aria-required"
|
|
3746
|
+
], la = ["id"], ua = [
|
|
3677
3747
|
"id",
|
|
3678
3748
|
"aria-selected",
|
|
3679
3749
|
"onClick"
|
|
3680
|
-
],
|
|
3750
|
+
], da = {
|
|
3681
3751
|
class: "g-multiselect-option-check",
|
|
3682
3752
|
"aria-hidden": "true"
|
|
3683
|
-
},
|
|
3753
|
+
}, fa = {
|
|
3684
3754
|
key: 0,
|
|
3685
3755
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3686
3756
|
viewBox: "0 0 640 640",
|
|
3687
3757
|
width: "1.25em"
|
|
3688
|
-
},
|
|
3758
|
+
}, pa = {
|
|
3689
3759
|
key: 1,
|
|
3690
3760
|
"aria-live": "polite",
|
|
3691
3761
|
class: "g-multiselect-option g-multiselect-no-results"
|
|
3692
|
-
},
|
|
3762
|
+
}, ma = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
3693
3763
|
__name: "GMultiSelect",
|
|
3694
3764
|
props: /* @__PURE__ */ m({
|
|
3695
3765
|
options: {},
|
|
@@ -3703,6 +3773,10 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
3703
3773
|
type: Boolean,
|
|
3704
3774
|
default: !1
|
|
3705
3775
|
},
|
|
3776
|
+
required: {
|
|
3777
|
+
type: Boolean,
|
|
3778
|
+
default: !1
|
|
3779
|
+
},
|
|
3706
3780
|
name: {},
|
|
3707
3781
|
errors: { default: () => [] },
|
|
3708
3782
|
instructions: {},
|
|
@@ -3718,13 +3792,13 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
3718
3792
|
value: d,
|
|
3719
3793
|
errors: F(i, "errors"),
|
|
3720
3794
|
formKey: i.formKey
|
|
3721
|
-
}), { menuPlacement: O, menuStyle: k, isTop: A, scrollOptionIntoView: j } =
|
|
3795
|
+
}), { menuPlacement: O, menuStyle: k, isTop: A, scrollOptionIntoView: j } = Nt({
|
|
3722
3796
|
open: y,
|
|
3723
3797
|
anchorRef: m,
|
|
3724
3798
|
listboxRef: v,
|
|
3725
3799
|
baseId: f,
|
|
3726
3800
|
activeIndex: b
|
|
3727
|
-
}), M = r(() =>
|
|
3801
|
+
}), M = r(() => Mt(i.options)), P = r(() => {
|
|
3728
3802
|
if (!x.value) return M.value;
|
|
3729
3803
|
let e = x.value.toLowerCase();
|
|
3730
3804
|
return M.value.filter((t) => t.label.toLowerCase().includes(e));
|
|
@@ -3819,12 +3893,12 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
3819
3893
|
id: ae.value,
|
|
3820
3894
|
for: ie.value,
|
|
3821
3895
|
class: "g-multiselect-label"
|
|
3822
|
-
}, N(t.label),
|
|
3896
|
+
}, [c(N(t.label), 1), t.required ? (C(), o("span", ra, " *")) : a("", !0)], 8, na)),
|
|
3823
3897
|
t.instructions ? (C(), o("div", {
|
|
3824
3898
|
key: 1,
|
|
3825
3899
|
id: oe.value,
|
|
3826
3900
|
class: "g-multiselect-instructions"
|
|
3827
|
-
}, N(t.instructions), 9,
|
|
3901
|
+
}, N(t.instructions), 9, ia)) : a("", !0),
|
|
3828
3902
|
s("div", {
|
|
3829
3903
|
ref_key: "controlRef",
|
|
3830
3904
|
ref: m,
|
|
@@ -3837,7 +3911,7 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
3837
3911
|
}, [(C(!0), o(e, null, D(d.value, (e) => (C(), o("li", {
|
|
3838
3912
|
key: e,
|
|
3839
3913
|
class: "g-multiselect-chip"
|
|
3840
|
-
}, [s("span",
|
|
3914
|
+
}, [s("span", oa, N(R(e)), 1), s("button", {
|
|
3841
3915
|
type: "button",
|
|
3842
3916
|
class: "g-multiselect-chip-remove",
|
|
3843
3917
|
"aria-label": `Remove ${R(e)}`,
|
|
@@ -3852,7 +3926,7 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
3852
3926
|
}, [s("path", {
|
|
3853
3927
|
fill: "currentColor",
|
|
3854
3928
|
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"
|
|
3855
|
-
})], -1)]], 40,
|
|
3929
|
+
})], -1)]], 40, sa)]))), 128))], 8, aa),
|
|
3856
3930
|
s("input", h({
|
|
3857
3931
|
ref_key: "inputRef",
|
|
3858
3932
|
ref: p,
|
|
@@ -3871,11 +3945,12 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
3871
3945
|
"aria-activedescendant": y.value && P.value.length > 0 ? L(f) + "-option-" + b.value : void 0
|
|
3872
3946
|
}, t.hiddenLabel ? { "aria-label": t.label } : void 0, {
|
|
3873
3947
|
"aria-describedby": ce.value,
|
|
3948
|
+
"aria-required": t.required ? "true" : void 0,
|
|
3874
3949
|
onInput: K,
|
|
3875
3950
|
onKeydown: re,
|
|
3876
3951
|
onFocus: Y,
|
|
3877
3952
|
onBlur: te
|
|
3878
|
-
}), null, 16,
|
|
3953
|
+
}), null, 16, ca),
|
|
3879
3954
|
r[2] ||= s("svg", {
|
|
3880
3955
|
class: "g-multiselect-caret",
|
|
3881
3956
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3907,7 +3982,7 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
3907
3982
|
"aria-selected": I(e.value) ? "true" : "false",
|
|
3908
3983
|
onMousedown: X,
|
|
3909
3984
|
onClick: (e) => U(t)
|
|
3910
|
-
}, [s("span",
|
|
3985
|
+
}, [s("span", da, [I(e.value) ? (C(), o("svg", fa, [...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)]), c(" " + N(e.label), 1)], 42, ua))), 128)) : (C(), o("div", pa, " No results found. "))], 16, la), [[ee, y.value]])
|
|
3911
3986
|
], 2),
|
|
3912
3987
|
l(Me, {
|
|
3913
3988
|
errors: L(w),
|
|
@@ -3915,10 +3990,10 @@ var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
|
3915
3990
|
}, null, 8, ["errors", "id"])
|
|
3916
3991
|
], 2));
|
|
3917
3992
|
}
|
|
3918
|
-
}), [["__scopeId", "data-v-
|
|
3993
|
+
}), [["__scopeId", "data-v-70907e93"]]);
|
|
3919
3994
|
//#endregion
|
|
3920
3995
|
//#region src/compose/useActiveLink.ts
|
|
3921
|
-
function
|
|
3996
|
+
function ha(e, t, n) {
|
|
3922
3997
|
let r = [
|
|
3923
3998
|
0,
|
|
3924
3999
|
.25,
|
|
@@ -3948,7 +4023,7 @@ function ua(e, t, n) {
|
|
|
3948
4023
|
}
|
|
3949
4024
|
//#endregion
|
|
3950
4025
|
//#region src/compose/useSidebar.ts
|
|
3951
|
-
function
|
|
4026
|
+
function ga(e = "(max-width: 800px)") {
|
|
3952
4027
|
let t = z(), n = E(!1), r = se(e, { ssrWidth: 1e3 });
|
|
3953
4028
|
function i(e) {
|
|
3954
4029
|
if (!r.value || !n.value) return;
|
|
@@ -3979,7 +4054,7 @@ function da(e = "(max-width: 800px)") {
|
|
|
3979
4054
|
}
|
|
3980
4055
|
//#endregion
|
|
3981
4056
|
//#region src/compose/useTableChanges.ts
|
|
3982
|
-
function
|
|
4057
|
+
function _a() {
|
|
3983
4058
|
let e = j(/* @__PURE__ */ new Map()), t = Y(), n = (n) => {
|
|
3984
4059
|
let r = n.column.key, i = n.row.key, a = n.value, o = n.previousValue;
|
|
3985
4060
|
e.has(i) || e.set(i, j(/* @__PURE__ */ new Map()));
|
|
@@ -4082,6 +4157,6 @@ function fa() {
|
|
|
4082
4157
|
};
|
|
4083
4158
|
}
|
|
4084
4159
|
//#endregion
|
|
4085
|
-
export { Ae as $,
|
|
4160
|
+
export { Ae as $, er as A, Ut as B, Fr as C, nr as D, ir as E, gn as F, at as G, Tt as H, fn as I, $e as J, tt as K, un as L, wn as M, yn as N, ar as O, _n as P, $ as Q, sn as R, Wr as S, tr as T, bt as U, jt as V, pt as W, Je as X, qe as Y, ze as Z, ai as _, ta as a, Qr as b, Li as c, Di as d, Oe as et, bi as f, li as g, pi as h, ma as i, zn as j, or as k, Fi as l, vi as m, ga as n, Z as nt, Yi as o, yi as p, et as q, ha as r, Ri as s, _a as t, De as tt, Oi as u, ri as v, rr as w, Xr as x, $r as y, $t as z };
|
|
4086
4161
|
|
|
4087
|
-
//# sourceMappingURL=grad-vue-
|
|
4162
|
+
//# sourceMappingURL=grad-vue-DImrz5Wj.js.map
|