@illinois-grad/grad-vue 2.5.2 → 2.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +117 -6
- package/dist/components/GMultiSelect.vue.d.ts +125 -0
- package/dist/components/GSelect.vue.d.ts +4 -14
- package/dist/components/GTreeMenu.vue.d.ts +13 -13
- package/dist/compose/useSelectDropdown.d.ts +56 -0
- package/dist/{grad-vue-_KJazv6D.js → grad-vue-D4cwVtpD.js} +716 -458
- package/dist/grad-vue-D4cwVtpD.js.map +1 -0
- package/dist/grad-vue-elements.d.ts +3 -0
- package/dist/grad-vue-elements.js +1078 -822
- package/dist/grad-vue-elements.js.map +1 -1
- package/dist/grad-vue.css +1 -1
- package/dist/grad-vue.d.ts +2 -1
- package/dist/grad-vue.js +2 -2
- package/dist/plugin.js +4 -4
- package/dist/plugin.js.map +1 -1
- package/package.json +1 -1
- package/dist/grad-vue-_KJazv6D.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Fragment as e, Teleport as t, Transition as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, getCurrentInstance as d, guardReactiveProps as f, inject as p, mergeModels as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeMount as b, onBeforeUnmount as x, onMounted as S, openBlock as C, provide as w, reactive as T, ref as E, renderList as D, renderSlot as O, resolveComponent as k, resolveDynamicComponent as A, shallowReactive as j, shallowRef as M, toDisplayString as N, toRaw as P, toRef as F, toValue as I, unref as L, useAttrs as R, useId as z, useModel as B, useSlots as V, useTemplateRef as H, vModelCheckbox as
|
|
2
|
-
import { createEventHook as
|
|
3
|
-
import { createFocusTrap as
|
|
1
|
+
import { Fragment as e, Teleport as t, Transition as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, getCurrentInstance as d, guardReactiveProps as f, inject as p, mergeModels as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeMount as b, onBeforeUnmount as x, onMounted as S, openBlock as C, provide as w, reactive as T, ref as E, renderList as D, renderSlot as O, resolveComponent as k, resolveDynamicComponent as A, shallowReactive as j, shallowRef as M, toDisplayString as N, toRaw as P, toRef as F, toValue as I, unref as L, useAttrs as R, useId as z, useModel as B, useSlots as V, useTemplateRef as H, vModelCheckbox as U, vShow as ee, watch as W, watchEffect as G, withCtx as K, withDirectives as q, withModifiers as J } from "vue";
|
|
2
|
+
import { createEventHook as Y, toArray as te, tryOnScopeDispose as X, unrefElement as ne, useClipboard as re, useDebounceFn as ie, useFocusWithin as ae, useIntersectionObserver as oe, useMediaQuery as se, useMutationObserver as ce, useResizeObserver as le } from "@vueuse/core";
|
|
3
|
+
import { createFocusTrap as ue } from "focus-trap";
|
|
4
4
|
//#region src/compose/useCustomElementAttrs.ts
|
|
5
|
-
function
|
|
5
|
+
function de() {
|
|
6
6
|
return globalThis.__GRAD_VUE_IS_WEB_COMPONENTS_BUILD__ === !0;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function fe(e = {}) {
|
|
9
9
|
let t = R(), n = globalThis.__GRAD_VUE_IS_WEB_COMPONENTS_BUILD__ === !0, i = e.omitInCustomElement ?? [];
|
|
10
10
|
return {
|
|
11
11
|
attrs: t,
|
|
@@ -51,7 +51,7 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, Z = /* @__PUR
|
|
|
51
51
|
"mouseleave"
|
|
52
52
|
],
|
|
53
53
|
setup(t) {
|
|
54
|
-
let n = t, a = V(), { forwardedAttrs: c } =
|
|
54
|
+
let n = t, a = V(), { forwardedAttrs: c } = fe({ omitInCustomElement: ["id"] }), l = r(() => [
|
|
55
55
|
"g-btn",
|
|
56
56
|
`g-btn--${n.size}`,
|
|
57
57
|
`g-btn--${n.theme}`,
|
|
@@ -79,7 +79,7 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, Z = /* @__PUR
|
|
|
79
79
|
onMouseenter: u[7] ||= (e) => r.$emit("mouseenter", e),
|
|
80
80
|
onMouseleave: u[8] ||= (e) => r.$emit("mouseleave", e)
|
|
81
81
|
}), {
|
|
82
|
-
default:
|
|
82
|
+
default: K(() => [t.icon || a.icon ? (C(), o(e, { key: 0 }, [s("span", pe, [a.icon ? O(r.$slots, "icon", { key: 0 }) : (C(), o("span", {
|
|
83
83
|
key: 1,
|
|
84
84
|
class: _(t.icon + " g-btn--icon-span"),
|
|
85
85
|
"aria-hidden": "true"
|
|
@@ -127,7 +127,7 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, Z = /* @__PUR
|
|
|
127
127
|
return (n, r) => {
|
|
128
128
|
let l = k("GTreeMenuList", !0);
|
|
129
129
|
return C(), i(A(t.listType), { class: "g-tree-menu__list" }, {
|
|
130
|
-
default:
|
|
130
|
+
default: K(() => [(C(!0), o(e, null, D(t.items, (e, n) => (C(), o("li", {
|
|
131
131
|
key: n,
|
|
132
132
|
class: "g-tree-menu__item",
|
|
133
133
|
"data-tree-item-key": m(n),
|
|
@@ -169,7 +169,7 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, Z = /* @__PUR
|
|
|
169
169
|
to: e.to,
|
|
170
170
|
"data-tree-primary": ""
|
|
171
171
|
}, {
|
|
172
|
-
default:
|
|
172
|
+
default: K(() => [c(N(e.label), 1)]),
|
|
173
173
|
_: 2
|
|
174
174
|
}, 1032, ["aria-expanded", "to"])) : (C(), o("a", {
|
|
175
175
|
key: 1,
|
|
@@ -183,7 +183,7 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, Z = /* @__PUR
|
|
|
183
183
|
to: e.to,
|
|
184
184
|
"data-tree-primary": ""
|
|
185
185
|
}, {
|
|
186
|
-
default:
|
|
186
|
+
default: K(() => [r[3] ||= s("span", { class: "g-tree-menu__spacer" }, null, -1), c(N(e.label), 1)]),
|
|
187
187
|
_: 2
|
|
188
188
|
}, 1032, ["to"])) : e.href ? (C(), o("a", {
|
|
189
189
|
key: 1,
|
|
@@ -211,7 +211,7 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, Z = /* @__PUR
|
|
|
211
211
|
let n = e.__vccOpts || e;
|
|
212
212
|
for (let [e, r] of t) n[e] = r;
|
|
213
213
|
return n;
|
|
214
|
-
}, we = /* @__PURE__ */ Q(Ce, [["__scopeId", "data-v-
|
|
214
|
+
}, we = /* @__PURE__ */ Q(Ce, [["__scopeId", "data-v-657b989c"]]), Te = ["id"], Ee = { class: "g-tree-menu__content" }, De = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
215
215
|
__name: "GTreeMenu",
|
|
216
216
|
props: {
|
|
217
217
|
title: {},
|
|
@@ -304,7 +304,7 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, Z = /* @__PUR
|
|
|
304
304
|
])])
|
|
305
305
|
], 16));
|
|
306
306
|
}
|
|
307
|
-
}), [["__scopeId", "data-v-
|
|
307
|
+
}), [["__scopeId", "data-v-277cf6db"]]);
|
|
308
308
|
//#endregion
|
|
309
309
|
//#region src/compose/useForm.ts
|
|
310
310
|
function Oe() {
|
|
@@ -360,7 +360,7 @@ function Ae(e = "default") {
|
|
|
360
360
|
//#endregion
|
|
361
361
|
//#region src/compose/useFormField.ts
|
|
362
362
|
function $(e) {
|
|
363
|
-
let t = R(), n = typeof t["form-key"] == "string" ? t["form-key"] : void 0, i = e.formKey ?? n ?? "default", a = p("form", null) ?? (
|
|
363
|
+
let t = R(), n = typeof t["form-key"] == "string" ? t["form-key"] : void 0, i = e.formKey ?? n ?? "default", a = p("form", null) ?? (de() ? Ae(i) : null), o = r(() => {
|
|
364
364
|
let t = [];
|
|
365
365
|
return e.errors && t.push(...e.errors.value.filter(Boolean)), t;
|
|
366
366
|
}), s = r(() => o.value.length > 0), c = e.name;
|
|
@@ -437,7 +437,7 @@ var je = ["id"], Me = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
437
437
|
}),
|
|
438
438
|
emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
|
|
439
439
|
setup(e, { emit: t }) {
|
|
440
|
-
let n = e, i = B(e, "modelValue"), u = z(), { attrs: d, isCustomElement: f, forwardedAttrs: p } =
|
|
440
|
+
let n = e, i = B(e, "modelValue"), u = z(), { attrs: d, isCustomElement: f, forwardedAttrs: p } = fe({ omitInCustomElement: ["id"] }), m = r(() => f ? u : d.id || u), { displayErrors: g, hasErrors: v } = $({
|
|
441
441
|
name: n.name,
|
|
442
442
|
value: i,
|
|
443
443
|
errors: F(n, "errors"),
|
|
@@ -506,7 +506,7 @@ var je = ["id"], Me = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
506
506
|
}, null, 8, ["errors", "id"])
|
|
507
507
|
], 2));
|
|
508
508
|
}
|
|
509
|
-
}), [["__scopeId", "data-v-
|
|
509
|
+
}), [["__scopeId", "data-v-6707dd23"]]), ze = 100, Be = 200, Ve = 102, He = E([]), Ue = E([]), We = E([]);
|
|
510
510
|
function Ge() {
|
|
511
511
|
if (!(typeof document > "u")) if (We.value.length > 0) {
|
|
512
512
|
let e = window.innerWidth - document.documentElement.clientWidth;
|
|
@@ -557,11 +557,11 @@ var Ye = (e) => e != null;
|
|
|
557
557
|
//#region ../../node_modules/@vueuse/integrations/dist/useFocusTrap-lXZ_YG-8.js
|
|
558
558
|
function Xe(e, t = {}) {
|
|
559
559
|
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
|
-
return
|
|
560
|
+
return W(r(() => te(I(e)).map((e) => {
|
|
561
561
|
let t = I(e);
|
|
562
|
-
return typeof t == "string" ? t :
|
|
562
|
+
return typeof t == "string" ? t : ne(t);
|
|
563
563
|
}).filter(Ye)), (e) => {
|
|
564
|
-
if (e.length) if (!n) n =
|
|
564
|
+
if (e.length) if (!n) n = ue(e, {
|
|
565
565
|
...a,
|
|
566
566
|
onActivate() {
|
|
567
567
|
o.value = !0, t.onActivate && t.onActivate();
|
|
@@ -574,7 +574,7 @@ function Xe(e, t = {}) {
|
|
|
574
574
|
let t = n?.active;
|
|
575
575
|
n?.updateContainerElements(e), !t && i && c();
|
|
576
576
|
}
|
|
577
|
-
}, { flush: "post" }),
|
|
577
|
+
}, { flush: "post" }), X(() => l()), {
|
|
578
578
|
hasFocus: o,
|
|
579
579
|
isPaused: s,
|
|
580
580
|
activate: c,
|
|
@@ -620,7 +620,7 @@ function Qe(e, t, n = !1) {
|
|
|
620
620
|
});
|
|
621
621
|
}
|
|
622
622
|
});
|
|
623
|
-
return
|
|
623
|
+
return W(t, (e) => {
|
|
624
624
|
e ? g(() => {
|
|
625
625
|
i() && c();
|
|
626
626
|
}).catch((e) => {
|
|
@@ -698,11 +698,11 @@ var tt = { class: "g-popover-wrap" }, nt = ["id"], rt = ["aria-labelledby", "ari
|
|
|
698
698
|
],
|
|
699
699
|
setup(e, { expose: c, emit: u }) {
|
|
700
700
|
let d = e, f = u, p = E(d.modelValue);
|
|
701
|
-
|
|
701
|
+
W(F(d, "modelValue"), (e) => {
|
|
702
702
|
p.value = e;
|
|
703
703
|
});
|
|
704
|
-
let m = V(), h = r(() => !!m.trigger), v = H("triggerRef"), b = H("popoverRef"), { isCustomElement: S } =
|
|
705
|
-
$e([b, v], A, p, I, k),
|
|
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 } = Ke(T, !0), { activate: M, deactivate: N } = Qe(b, A, !0);
|
|
705
|
+
$e([b, v], A, p, I, k), W(p, (e) => {
|
|
706
706
|
e ? (g(() => {
|
|
707
707
|
g(() => M());
|
|
708
708
|
}), D(), f("show")) : (N(), k(), f("hide"));
|
|
@@ -719,40 +719,40 @@ var tt = { class: "g-popover-wrap" }, nt = ["id"], rt = ["aria-labelledby", "ari
|
|
|
719
719
|
let B = E({
|
|
720
720
|
top: 0,
|
|
721
721
|
left: 0
|
|
722
|
-
}),
|
|
723
|
-
function
|
|
722
|
+
}), U = E({ left: "50%" }), G = E(!1), J = E(!1), Y = null;
|
|
723
|
+
function te() {
|
|
724
724
|
if (v.value) return v.value;
|
|
725
725
|
let e = b.value?.parentElement ?? null;
|
|
726
726
|
for (; e && e.tagName.toLowerCase() !== "g-popover";) e = e.parentElement;
|
|
727
727
|
let t = e?.previousElementSibling;
|
|
728
728
|
return t instanceof HTMLElement ? t : null;
|
|
729
729
|
}
|
|
730
|
-
function
|
|
730
|
+
function X() {
|
|
731
731
|
if (!b.value) return;
|
|
732
|
-
let e = new DOMRect(0, 0, b.value.offsetWidth, b.value.offsetHeight), t = new DOMRect(0, 0, window.innerWidth, window.innerHeight), n =
|
|
732
|
+
let e = new DOMRect(0, 0, b.value.offsetWidth, b.value.offsetHeight), t = new DOMRect(0, 0, window.innerWidth, window.innerHeight), n = te();
|
|
733
733
|
if (!n) {
|
|
734
734
|
B.value = {
|
|
735
735
|
top: Math.max((t.height - e.height) / 2, 8),
|
|
736
736
|
left: Math.max((t.width - e.width) / 2, 8)
|
|
737
|
-
},
|
|
737
|
+
}, J.value = !1, G.value = !1, U.value = { left: "50%" };
|
|
738
738
|
return;
|
|
739
739
|
}
|
|
740
740
|
let { top: r, left: i, xOffset: a, placedAbove: o, overlay: s } = et(n.getBoundingClientRect(), e, t, { gap: d.minimal ? 0 : 8 });
|
|
741
741
|
B.value = {
|
|
742
742
|
top: r,
|
|
743
743
|
left: i
|
|
744
|
-
},
|
|
744
|
+
}, U.value = {
|
|
745
745
|
left: `${e.width / 2 - a}px`,
|
|
746
746
|
top: o ? "auto" : void 0,
|
|
747
747
|
bottom: o ? "-8px" : void 0
|
|
748
|
-
},
|
|
748
|
+
}, G.value = o, J.value = s;
|
|
749
749
|
}
|
|
750
|
-
return
|
|
750
|
+
return W(p, (e) => {
|
|
751
751
|
e ? g(() => {
|
|
752
|
-
|
|
753
|
-
}) : (window.removeEventListener("resize",
|
|
752
|
+
X(), window.addEventListener("resize", X), window.addEventListener("scroll", X, { capture: !0 }), b.value && (Y && Y.disconnect(), Y = new ResizeObserver(() => X()), Y.observe(b.value));
|
|
753
|
+
}) : (window.removeEventListener("resize", X), window.removeEventListener("scroll", X, { capture: !0 }), Y && Y.disconnect());
|
|
754
754
|
}), x(() => {
|
|
755
|
-
window.removeEventListener("resize",
|
|
755
|
+
window.removeEventListener("resize", X), window.removeEventListener("scroll", X, { capture: !0 }), Y && Y.disconnect();
|
|
756
756
|
}), c({
|
|
757
757
|
show: P,
|
|
758
758
|
hide: I,
|
|
@@ -770,14 +770,14 @@ var tt = { class: "g-popover-wrap" }, nt = ["id"], rt = ["aria-labelledby", "ari
|
|
|
770
770
|
name: "g-popover-expand",
|
|
771
771
|
appear: ""
|
|
772
772
|
}, {
|
|
773
|
-
default:
|
|
773
|
+
default: K(() => [L(S) || p.value ? q((C(), o("div", {
|
|
774
774
|
key: 0,
|
|
775
775
|
ref_key: "popoverRef",
|
|
776
776
|
ref: b,
|
|
777
777
|
class: _({
|
|
778
778
|
"g-popover": !0,
|
|
779
|
-
"g-popover-above":
|
|
780
|
-
"g-popover-below": !
|
|
779
|
+
"g-popover-above": G.value,
|
|
780
|
+
"g-popover-below": !G.value,
|
|
781
781
|
"g-popover-minimal": e.minimal
|
|
782
782
|
}),
|
|
783
783
|
role: "dialog",
|
|
@@ -790,10 +790,10 @@ var tt = { class: "g-popover-wrap" }, nt = ["id"], rt = ["aria-labelledby", "ari
|
|
|
790
790
|
zIndex: L(j)
|
|
791
791
|
})
|
|
792
792
|
}, [
|
|
793
|
-
!
|
|
793
|
+
!J.value && !e.minimal ? (C(), o("div", {
|
|
794
794
|
key: 0,
|
|
795
|
-
class: _(["g-popover-arrow", { "g-popover-arrow-above":
|
|
796
|
-
style: y(
|
|
795
|
+
class: _(["g-popover-arrow", { "g-popover-arrow-above": G.value }]),
|
|
796
|
+
style: y(U.value),
|
|
797
797
|
"aria-hidden": "true"
|
|
798
798
|
}, null, 6)) : a("", !0),
|
|
799
799
|
O(r.$slots, "default", {}, void 0, !0),
|
|
@@ -812,11 +812,11 @@ var tt = { class: "g-popover-wrap" }, nt = ["id"], rt = ["aria-labelledby", "ari
|
|
|
812
812
|
fill: "currentColor",
|
|
813
813
|
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
814
|
})], -1)]]))
|
|
815
|
-
], 14, rt)), [[
|
|
815
|
+
], 14, rt)), [[ee, p.value]]) : a("", !0)]),
|
|
816
816
|
_: 3
|
|
817
817
|
})], 8, ["disabled"]))]));
|
|
818
818
|
}
|
|
819
|
-
}), [["__scopeId", "data-v-
|
|
819
|
+
}), [["__scopeId", "data-v-7510826c"]]), at = 1;
|
|
820
820
|
function ot(e = "v-gtooltip") {
|
|
821
821
|
return `${e}-${++at}`;
|
|
822
822
|
}
|
|
@@ -902,15 +902,15 @@ var ft = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
902
902
|
function I(e) {
|
|
903
903
|
(e.key === "Escape" || e.key === "Esc") && (p.value = !1, m.value = !1);
|
|
904
904
|
}
|
|
905
|
-
return
|
|
905
|
+
return W(() => [
|
|
906
906
|
u.value,
|
|
907
907
|
d.value,
|
|
908
908
|
l.value
|
|
909
909
|
], () => {
|
|
910
910
|
A(b()), S();
|
|
911
|
-
}, { immediate: !0 }),
|
|
911
|
+
}, { immediate: !0 }), W(() => i.text, (e) => {
|
|
912
912
|
f.value && (f.value.textContent = e);
|
|
913
|
-
}),
|
|
913
|
+
}), W(() => p.value || m.value, (e) => {
|
|
914
914
|
if (e) {
|
|
915
915
|
S(), f.value && y && ut(y, f.value), g ||= (window.addEventListener("scroll", w, { capture: !0 }), !0);
|
|
916
916
|
return;
|
|
@@ -1101,7 +1101,7 @@ var ft = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1101
1101
|
name: "g-fade",
|
|
1102
1102
|
appear: ""
|
|
1103
1103
|
}, {
|
|
1104
|
-
default:
|
|
1104
|
+
default: K(() => [s("div", {
|
|
1105
1105
|
id: "alertdialog-" + L(f),
|
|
1106
1106
|
class: "g-alertdialog",
|
|
1107
1107
|
role: "alertdialog",
|
|
@@ -1124,40 +1124,93 @@ var ft = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1124
1124
|
outlined: "",
|
|
1125
1125
|
onClick: r[0] ||= (e) => o("cancel")
|
|
1126
1126
|
}, {
|
|
1127
|
-
default:
|
|
1127
|
+
default: K(() => [...r[2] ||= [c("Cancel", -1)]]),
|
|
1128
1128
|
_: 1
|
|
1129
1129
|
}), l(Z, {
|
|
1130
1130
|
theme: a.buttonColor,
|
|
1131
1131
|
onClick: r[1] ||= (e) => o("confirm")
|
|
1132
1132
|
}, {
|
|
1133
|
-
default:
|
|
1133
|
+
default: K(() => [c(N(a.buttonText), 1)]),
|
|
1134
1134
|
_: 1
|
|
1135
1135
|
}, 8, ["theme"])])
|
|
1136
1136
|
])], 12, wt)]),
|
|
1137
1137
|
_: 3
|
|
1138
1138
|
})]));
|
|
1139
1139
|
}
|
|
1140
|
-
}), [["__scopeId", "data-v-144faf08"]])
|
|
1140
|
+
}), [["__scopeId", "data-v-144faf08"]]);
|
|
1141
|
+
//#endregion
|
|
1142
|
+
//#region src/compose/useSelectDropdown.ts
|
|
1143
|
+
function At(e) {
|
|
1144
|
+
return e.map((e) => typeof e == "string" ? {
|
|
1145
|
+
label: e,
|
|
1146
|
+
value: e
|
|
1147
|
+
} : e);
|
|
1148
|
+
}
|
|
1149
|
+
function jt({ open: e, anchorRef: t, listboxRef: n, baseId: i, activeIndex: a }) {
|
|
1150
|
+
let { push: o, pop: s, isTop: c } = Ke(i), l = E("below"), u = E(null), d = r(() => {
|
|
1151
|
+
let e = {};
|
|
1152
|
+
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
|
+
});
|
|
1154
|
+
function f() {
|
|
1155
|
+
if (!e.value || !t.value) return;
|
|
1156
|
+
let r = t.value.getBoundingClientRect(), i = window.innerHeight - r.bottom, a = r.top, o = n.value?.scrollHeight ?? 200;
|
|
1157
|
+
i >= Math.min(200, o) ? (l.value = "below", u.value = Math.max(0, Math.floor(i - 8))) : a > i ? (l.value = "above", u.value = Math.max(0, Math.floor(a - 8))) : (l.value = "below", u.value = Math.max(0, Math.floor(i - 8)));
|
|
1158
|
+
}
|
|
1159
|
+
let p = null;
|
|
1160
|
+
function m() {
|
|
1161
|
+
if (p) return;
|
|
1162
|
+
let e = () => f();
|
|
1163
|
+
window.addEventListener("resize", e, { passive: !0 }), window.addEventListener("scroll", e, {
|
|
1164
|
+
passive: !0,
|
|
1165
|
+
capture: !0
|
|
1166
|
+
}), p = () => {
|
|
1167
|
+
window.removeEventListener("resize", e), window.removeEventListener("scroll", e, !0), p = null;
|
|
1168
|
+
};
|
|
1169
|
+
}
|
|
1170
|
+
function h() {
|
|
1171
|
+
p && p();
|
|
1172
|
+
}
|
|
1173
|
+
W(e, (e) => {
|
|
1174
|
+
e ? (o(), m(), g(() => f())) : (s(), h(), l.value = "below", u.value = null);
|
|
1175
|
+
}), x(() => {
|
|
1176
|
+
h();
|
|
1177
|
+
});
|
|
1178
|
+
function _() {
|
|
1179
|
+
g(() => {
|
|
1180
|
+
let e = document.getElementById(`${i}-option-${a.value}`);
|
|
1181
|
+
e && e.scrollIntoView({ block: "nearest" });
|
|
1182
|
+
});
|
|
1183
|
+
}
|
|
1184
|
+
return {
|
|
1185
|
+
menuPlacement: l,
|
|
1186
|
+
menuStyle: d,
|
|
1187
|
+
isTop: c,
|
|
1188
|
+
scrollOptionIntoView: _
|
|
1189
|
+
};
|
|
1190
|
+
}
|
|
1191
|
+
//#endregion
|
|
1192
|
+
//#region src/components/GSelect.vue?vue&type=script&setup=true&lang.ts
|
|
1193
|
+
var Mt = ["id"], Nt = { class: "g-select-input-wrap" }, Pt = ["id"], Ft = [
|
|
1141
1194
|
"value",
|
|
1142
1195
|
"placeholder",
|
|
1143
1196
|
"disabled",
|
|
1144
1197
|
"aria-controls",
|
|
1145
1198
|
"aria-expanded",
|
|
1146
1199
|
"aria-activedescendant"
|
|
1147
|
-
],
|
|
1200
|
+
], It = [
|
|
1148
1201
|
"id",
|
|
1149
1202
|
"aria-controls",
|
|
1150
1203
|
"aria-expanded",
|
|
1151
1204
|
"aria-activedescendant"
|
|
1152
|
-
],
|
|
1205
|
+
], Lt = ["id"], Rt = [
|
|
1153
1206
|
"id",
|
|
1154
1207
|
"aria-selected",
|
|
1155
1208
|
"onClick"
|
|
1156
|
-
],
|
|
1209
|
+
], zt = {
|
|
1157
1210
|
key: 1,
|
|
1158
1211
|
"aria-live": "polite",
|
|
1159
1212
|
class: "g-select-combo-option g-select-option g-select-no-results"
|
|
1160
|
-
},
|
|
1213
|
+
}, Bt = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
1161
1214
|
__name: "GSelect",
|
|
1162
1215
|
props: /* @__PURE__ */ m({
|
|
1163
1216
|
options: {},
|
|
@@ -1168,7 +1221,7 @@ var ft = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1168
1221
|
type: Boolean,
|
|
1169
1222
|
default: !1
|
|
1170
1223
|
},
|
|
1171
|
-
name: {
|
|
1224
|
+
name: {},
|
|
1172
1225
|
searchable: {
|
|
1173
1226
|
type: Boolean,
|
|
1174
1227
|
default: !1
|
|
@@ -1179,184 +1232,134 @@ var ft = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1179
1232
|
default: !1
|
|
1180
1233
|
},
|
|
1181
1234
|
errors: { default: () => [] },
|
|
1182
|
-
formKey: {
|
|
1235
|
+
formKey: {}
|
|
1183
1236
|
}, {
|
|
1184
1237
|
modelValue: {},
|
|
1185
1238
|
modelModifiers: {}
|
|
1186
1239
|
}),
|
|
1187
1240
|
emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
|
|
1188
1241
|
setup(t, { emit: n }) {
|
|
1189
|
-
let i = t, u = n, d = B(t, "modelValue"), f = z(), p = E(null), m = E(null), v = E(
|
|
1242
|
+
let i = t, u = n, d = B(t, "modelValue"), f = z(), p = E(null), m = E(null), v = E(null), y = E(!1), b = E(0), x = E(!1), S = E(!1), { displayErrors: w, hasErrors: T } = $({
|
|
1190
1243
|
name: i.name,
|
|
1191
1244
|
value: d,
|
|
1192
1245
|
errors: F(i, "errors"),
|
|
1193
1246
|
formKey: i.formKey
|
|
1194
|
-
}),
|
|
1195
|
-
|
|
1196
|
-
|
|
1247
|
+
}), { menuPlacement: k, menuStyle: A, isTop: j, scrollOptionIntoView: M } = jt({
|
|
1248
|
+
open: y,
|
|
1249
|
+
anchorRef: p,
|
|
1250
|
+
listboxRef: m,
|
|
1251
|
+
baseId: f,
|
|
1252
|
+
activeIndex: b
|
|
1253
|
+
}), P = r(() => At(i.options)), I = E(""), R = r(() => {
|
|
1254
|
+
if (!i.searchable || !y.value || !I.value) return P.value;
|
|
1255
|
+
let e = I.value.toLowerCase();
|
|
1256
|
+
return P.value.filter((t) => t.label.toLowerCase().includes(e));
|
|
1257
|
+
}), V = r(() => R.value.findIndex((e) => e.value === d.value));
|
|
1258
|
+
W(() => d.value, (e) => {
|
|
1259
|
+
let t = R.value.findIndex((t) => t.value === e);
|
|
1260
|
+
t !== -1 && (b.value = t);
|
|
1197
1261
|
});
|
|
1198
|
-
function R() {
|
|
1199
|
-
if (!v.value || !p.value) return;
|
|
1200
|
-
let e = p.value.getBoundingClientRect(), t = window.innerHeight - e.bottom, n = e.top, r = m.value?.scrollHeight ?? 200, i = Math.min(200, r);
|
|
1201
|
-
if (t >= i) {
|
|
1202
|
-
M.value = "below", P.value = Math.max(0, Math.floor(t - 8));
|
|
1203
|
-
return;
|
|
1204
|
-
}
|
|
1205
|
-
if (t < i && n > t) {
|
|
1206
|
-
M.value = "above", P.value = Math.max(0, Math.floor(n - 8));
|
|
1207
|
-
return;
|
|
1208
|
-
}
|
|
1209
|
-
M.value = "below", P.value = Math.max(0, Math.floor(t - 8));
|
|
1210
|
-
}
|
|
1211
|
-
let V = null;
|
|
1212
1262
|
function H() {
|
|
1213
|
-
if (
|
|
1214
|
-
|
|
1215
|
-
R();
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
passive: !0,
|
|
1219
|
-
capture: !0
|
|
1220
|
-
}), V = () => {
|
|
1221
|
-
window.removeEventListener("resize", e), window.removeEventListener("scroll", e, !0), V = null;
|
|
1222
|
-
};
|
|
1223
|
-
}
|
|
1224
|
-
function ee() {
|
|
1225
|
-
V && V();
|
|
1226
|
-
}
|
|
1227
|
-
let W = r(() => i.options.map((e) => typeof e == "string" ? {
|
|
1228
|
-
label: e,
|
|
1229
|
-
value: e
|
|
1230
|
-
} : e)), G = E(""), q = r(() => {
|
|
1231
|
-
if (!i.searchable || !v.value || !G.value) return W.value;
|
|
1232
|
-
let e = G.value.toLowerCase();
|
|
1233
|
-
return W.value.filter((t) => t.label.toLowerCase().includes(e));
|
|
1234
|
-
}), re = r(() => q.value.findIndex((e) => e.value === d.value));
|
|
1235
|
-
U(() => d.value, (e) => {
|
|
1236
|
-
let t = q.value.findIndex((t) => t.value === e);
|
|
1237
|
-
t !== -1 && (y.value = t);
|
|
1238
|
-
}), U(v, (e) => {
|
|
1239
|
-
e ? w() : T();
|
|
1240
|
-
}), U(v, (e) => {
|
|
1241
|
-
e ? (H(), g(() => {
|
|
1242
|
-
R();
|
|
1243
|
-
})) : (ee(), M.value = "below", P.value = null);
|
|
1244
|
-
});
|
|
1245
|
-
function J() {
|
|
1246
|
-
if (!i.disabled && (v.value = !0, g(() => {
|
|
1247
|
-
R();
|
|
1248
|
-
}), i.searchable)) {
|
|
1249
|
-
G.value = "";
|
|
1250
|
-
let e = q.value.findIndex((e) => e.value === d.value);
|
|
1251
|
-
y.value = e === -1 ? 0 : e, g(() => {
|
|
1252
|
-
ie.value && ie.value.focus();
|
|
1263
|
+
if (!i.disabled && (y.value = !0, i.searchable)) {
|
|
1264
|
+
I.value = "";
|
|
1265
|
+
let e = R.value.findIndex((e) => e.value === d.value);
|
|
1266
|
+
b.value = e === -1 ? 0 : e, g(() => {
|
|
1267
|
+
v.value && v.value.focus();
|
|
1253
1268
|
});
|
|
1254
1269
|
}
|
|
1255
1270
|
}
|
|
1256
|
-
function
|
|
1257
|
-
|
|
1271
|
+
function U() {
|
|
1272
|
+
y.value = !1, i.searchable && (I.value = "");
|
|
1258
1273
|
}
|
|
1259
|
-
|
|
1260
|
-
ee();
|
|
1261
|
-
});
|
|
1262
|
-
let ie = E(null);
|
|
1263
|
-
function ae(e) {
|
|
1274
|
+
function G(e) {
|
|
1264
1275
|
if (!i.disabled && i.searchable) {
|
|
1265
1276
|
if (S.value) {
|
|
1266
1277
|
S.value = !1;
|
|
1267
1278
|
return;
|
|
1268
1279
|
}
|
|
1269
|
-
|
|
1280
|
+
H();
|
|
1270
1281
|
}
|
|
1271
1282
|
}
|
|
1272
|
-
function
|
|
1283
|
+
function K(e) {
|
|
1273
1284
|
if (!i.searchable) return;
|
|
1274
|
-
|
|
1275
|
-
let t =
|
|
1276
|
-
|
|
1285
|
+
y.value || H(), I.value = e.target.value;
|
|
1286
|
+
let t = R.value.findIndex((e) => e.value === d.value);
|
|
1287
|
+
b.value = t === -1 ? 0 : t;
|
|
1277
1288
|
}
|
|
1278
|
-
function
|
|
1289
|
+
function Y(e) {
|
|
1279
1290
|
let t = e.relatedTarget;
|
|
1280
|
-
if (
|
|
1281
|
-
|
|
1291
|
+
if (x.value) {
|
|
1292
|
+
x.value = !1;
|
|
1282
1293
|
return;
|
|
1283
1294
|
}
|
|
1284
|
-
t && m.value && m.value.contains(t) || (i.searchable && (
|
|
1295
|
+
t && m.value && m.value.contains(t) || (i.searchable && (I.value = ""), U());
|
|
1285
1296
|
}
|
|
1286
|
-
function
|
|
1287
|
-
let t =
|
|
1288
|
-
t && t.value !== d.value && (d.value = t.value, u("change", t.value)), S.value = !0,
|
|
1297
|
+
function te(e) {
|
|
1298
|
+
let t = R.value[e];
|
|
1299
|
+
t && t.value !== d.value && (d.value = t.value, u("change", t.value)), S.value = !0, U(), setTimeout(() => {
|
|
1289
1300
|
S.value = !1;
|
|
1290
1301
|
}, 100);
|
|
1291
1302
|
}
|
|
1292
|
-
function
|
|
1293
|
-
i.disabled || (
|
|
1303
|
+
function X() {
|
|
1304
|
+
i.disabled || (y.value ? U() : H());
|
|
1294
1305
|
}
|
|
1295
|
-
function
|
|
1306
|
+
function ne(e) {
|
|
1296
1307
|
if (i.disabled) return;
|
|
1297
|
-
let t =
|
|
1298
|
-
if (!
|
|
1308
|
+
let t = R.value.length - 1;
|
|
1309
|
+
if (!y.value && [
|
|
1299
1310
|
"ArrowDown",
|
|
1300
1311
|
"ArrowUp",
|
|
1301
1312
|
"Enter",
|
|
1302
1313
|
" "
|
|
1303
1314
|
].includes(e.key)) {
|
|
1304
|
-
e.preventDefault(),
|
|
1315
|
+
e.preventDefault(), H();
|
|
1305
1316
|
return;
|
|
1306
1317
|
}
|
|
1307
1318
|
switch (e.key) {
|
|
1308
1319
|
case "ArrowDown":
|
|
1309
|
-
e.preventDefault(),
|
|
1320
|
+
e.preventDefault(), y.value ? (b.value = Math.min(t, b.value + 1), M()) : H();
|
|
1310
1321
|
break;
|
|
1311
1322
|
case "ArrowUp":
|
|
1312
|
-
e.preventDefault(),
|
|
1323
|
+
e.preventDefault(), y.value ? (b.value = Math.max(0, b.value - 1), M()) : H();
|
|
1313
1324
|
break;
|
|
1314
1325
|
case "Home":
|
|
1315
|
-
e.preventDefault(),
|
|
1326
|
+
e.preventDefault(), b.value = 0, M();
|
|
1316
1327
|
break;
|
|
1317
1328
|
case "End":
|
|
1318
|
-
e.preventDefault(),
|
|
1329
|
+
e.preventDefault(), b.value = t, M();
|
|
1319
1330
|
break;
|
|
1320
1331
|
case "Enter":
|
|
1321
1332
|
case " ":
|
|
1322
|
-
e.preventDefault(),
|
|
1333
|
+
e.preventDefault(), y.value ? te(b.value) : H();
|
|
1323
1334
|
break;
|
|
1324
1335
|
case "Escape":
|
|
1325
|
-
|
|
1326
|
-
|
|
1336
|
+
j.value && (e.preventDefault(), setTimeout(() => {
|
|
1337
|
+
U();
|
|
1327
1338
|
}, 0));
|
|
1328
1339
|
break;
|
|
1329
1340
|
}
|
|
1330
1341
|
}
|
|
1331
|
-
function
|
|
1332
|
-
|
|
1342
|
+
function re(e) {
|
|
1343
|
+
te(e);
|
|
1333
1344
|
}
|
|
1334
|
-
function
|
|
1335
|
-
|
|
1345
|
+
function ie() {
|
|
1346
|
+
x.value = !0;
|
|
1336
1347
|
}
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
e && e.scrollIntoView({ block: "nearest" });
|
|
1341
|
-
});
|
|
1348
|
+
let ae = r(() => i.clearButton && d.value !== null && d.value !== void 0 && !i.disabled);
|
|
1349
|
+
function oe() {
|
|
1350
|
+
i.disabled || (d.value = null, u("change", null), i.searchable && (I.value = ""));
|
|
1342
1351
|
}
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
i.disabled || (d.value = null, u("change", null), i.searchable && (G.value = ""));
|
|
1346
|
-
}
|
|
1347
|
-
return x(() => {
|
|
1348
|
-
T();
|
|
1349
|
-
}), (n, r) => (C(), o("div", { class: _(["g-select-root g-select-combo", {
|
|
1350
|
-
"g-select-open": v.value,
|
|
1352
|
+
return (n, r) => (C(), o("div", { class: _(["g-select-root g-select-combo", {
|
|
1353
|
+
"g-select-open": y.value,
|
|
1351
1354
|
"g-select-compact": t.compact,
|
|
1352
|
-
"g-select-has-error": L(
|
|
1355
|
+
"g-select-has-error": L(T)
|
|
1353
1356
|
}]) }, [
|
|
1354
1357
|
t.hiddenLabel ? a("", !0) : (C(), o("div", {
|
|
1355
1358
|
key: 0,
|
|
1356
1359
|
id: L(f) + "-label",
|
|
1357
1360
|
class: "g-select-combo-label g-select-label"
|
|
1358
|
-
}, N(i.label), 9,
|
|
1359
|
-
s("div",
|
|
1361
|
+
}, N(i.label), 9, Mt)),
|
|
1362
|
+
s("div", Nt, [i.searchable ? (C(), o("div", {
|
|
1360
1363
|
key: 0,
|
|
1361
1364
|
class: "g-select-combo-input g-select-control",
|
|
1362
1365
|
id: L(f)
|
|
@@ -1367,27 +1370,27 @@ var ft = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1367
1370
|
type: "text",
|
|
1368
1371
|
name: "comboInput",
|
|
1369
1372
|
class: ["g-select-search-input", { "g-select-clearable": t.clearButton }],
|
|
1370
|
-
value:
|
|
1371
|
-
placeholder:
|
|
1373
|
+
value: y.value ? I.value : P.value[V.value] ? P.value[V.value].label : "",
|
|
1374
|
+
placeholder: y.value ? "" : t.placeholder,
|
|
1372
1375
|
disabled: i.disabled,
|
|
1373
|
-
onFocus:
|
|
1374
|
-
onInput:
|
|
1375
|
-
onKeydown:
|
|
1376
|
-
onBlur:
|
|
1376
|
+
onFocus: G,
|
|
1377
|
+
onInput: K,
|
|
1378
|
+
onKeydown: ne,
|
|
1379
|
+
onBlur: Y,
|
|
1377
1380
|
"aria-autocomplete": "list",
|
|
1378
1381
|
"aria-controls": L(f) + "-listbox",
|
|
1379
|
-
"aria-expanded":
|
|
1382
|
+
"aria-expanded": y.value ? "true" : "false",
|
|
1380
1383
|
"aria-haspopup": "listbox",
|
|
1381
|
-
"aria-activedescendant":
|
|
1384
|
+
"aria-activedescendant": y.value ? L(f) + "-option-" + b.value : void 0
|
|
1382
1385
|
}, t.hiddenLabel ? { "aria-label": i.label } : { "aria-labelledby": L(f) + "-label" }, {
|
|
1383
1386
|
role: "combobox",
|
|
1384
1387
|
autocomplete: "off"
|
|
1385
|
-
}), null, 16,
|
|
1386
|
-
|
|
1388
|
+
}), null, 16, Ft),
|
|
1389
|
+
ae.value ? (C(), o("button", {
|
|
1387
1390
|
key: 0,
|
|
1388
1391
|
type: "button",
|
|
1389
1392
|
class: "g-select-clear-btn",
|
|
1390
|
-
onClick:
|
|
1393
|
+
onClick: oe
|
|
1391
1394
|
}, [...r[0] ||= [s("svg", {
|
|
1392
1395
|
role: "img",
|
|
1393
1396
|
"aria-label": "Clear Selection",
|
|
@@ -1408,7 +1411,7 @@ var ft = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1408
1411
|
fill: "currentColor",
|
|
1409
1412
|
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"
|
|
1410
1413
|
})], -1)
|
|
1411
|
-
], 8,
|
|
1414
|
+
], 8, Pt)) : (C(), o("div", h({
|
|
1412
1415
|
key: 1,
|
|
1413
1416
|
ref_key: "comboRef",
|
|
1414
1417
|
ref: p,
|
|
@@ -1416,22 +1419,22 @@ var ft = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1416
1419
|
class: ["g-select-combo-button g-select-control", { "g-select-clearable": t.clearButton }],
|
|
1417
1420
|
role: "combobox",
|
|
1418
1421
|
"aria-controls": L(f) + "-listbox",
|
|
1419
|
-
"aria-expanded":
|
|
1422
|
+
"aria-expanded": y.value ? "true" : "false",
|
|
1420
1423
|
"aria-haspopup": "listbox"
|
|
1421
1424
|
}, t.hiddenLabel ? { "aria-label": i.label } : { "aria-labelledby": L(f) + "-label" }, {
|
|
1422
|
-
"aria-activedescendant":
|
|
1425
|
+
"aria-activedescendant": y.value ? L(f) + "-option-" + b.value : void 0,
|
|
1423
1426
|
tabindex: "0",
|
|
1424
|
-
onClick:
|
|
1425
|
-
onKeydown:
|
|
1426
|
-
onFocus:
|
|
1427
|
-
onBlur:
|
|
1427
|
+
onClick: X,
|
|
1428
|
+
onKeydown: ne,
|
|
1429
|
+
onFocus: G,
|
|
1430
|
+
onBlur: Y
|
|
1428
1431
|
}), [
|
|
1429
|
-
c(N(
|
|
1430
|
-
|
|
1432
|
+
c(N(P.value[V.value] ? P.value[V.value].label : "") + " ", 1),
|
|
1433
|
+
ae.value ? (C(), o("button", {
|
|
1431
1434
|
key: 0,
|
|
1432
1435
|
type: "button",
|
|
1433
1436
|
class: "g-select-clear-btn",
|
|
1434
|
-
onClick:
|
|
1437
|
+
onClick: J(oe, ["stop"])
|
|
1435
1438
|
}, [...r[2] ||= [s("svg", {
|
|
1436
1439
|
role: "img",
|
|
1437
1440
|
"aria-label": "Clear Selection",
|
|
@@ -1452,56 +1455,56 @@ var ft = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1452
1455
|
fill: "currentColor",
|
|
1453
1456
|
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"
|
|
1454
1457
|
})], -1)
|
|
1455
|
-
], 16,
|
|
1458
|
+
], 16, It)), q(s("div", h({
|
|
1456
1459
|
ref_key: "listboxRef",
|
|
1457
1460
|
ref: m,
|
|
1458
|
-
class: ["g-select-combo-menu g-select-list", { "g-select-combo-menu--above":
|
|
1459
|
-
style:
|
|
1461
|
+
class: ["g-select-combo-menu g-select-list", { "g-select-combo-menu--above": L(k) === "above" }],
|
|
1462
|
+
style: L(A),
|
|
1460
1463
|
role: "listbox",
|
|
1461
1464
|
id: L(f) + "-listbox"
|
|
1462
|
-
}, t.hiddenLabel ? { "aria-label": i.label } : { "aria-labelledby": L(f) + "-label" }, { tabindex: "-1" }), [
|
|
1465
|
+
}, t.hiddenLabel ? { "aria-label": i.label } : { "aria-labelledby": L(f) + "-label" }, { tabindex: "-1" }), [R.value.length > 0 ? (C(!0), o(e, { key: 0 }, D(R.value, (e, t) => (C(), o("div", {
|
|
1463
1466
|
key: e.value,
|
|
1464
1467
|
id: L(f) + "-option-" + t,
|
|
1465
1468
|
class: _(["g-select-combo-option g-select-option", {
|
|
1466
|
-
"g-select-option-current": t ===
|
|
1469
|
+
"g-select-option-current": t === b.value,
|
|
1467
1470
|
"ilw-theme-blue": e.value === d.value
|
|
1468
1471
|
}]),
|
|
1469
1472
|
role: "option",
|
|
1470
1473
|
"aria-selected": e.value === d.value ? "true" : "false",
|
|
1471
|
-
onMousedown:
|
|
1472
|
-
onClick: (e) =>
|
|
1474
|
+
onMousedown: ie,
|
|
1475
|
+
onClick: (e) => re(t)
|
|
1473
1476
|
}, [O(n.$slots, "option", {
|
|
1474
1477
|
option: e,
|
|
1475
1478
|
selected: e.value === d.value,
|
|
1476
1479
|
index: t
|
|
1477
|
-
}, () => [c(N(e.label), 1)], !0)], 42,
|
|
1480
|
+
}, () => [c(N(e.label), 1)], !0)], 42, Rt))), 128)) : (C(), o("div", zt, " No results found. "))], 16, Lt), [[ee, y.value]])]),
|
|
1478
1481
|
l(Me, {
|
|
1479
|
-
errors: L(
|
|
1482
|
+
errors: L(w),
|
|
1480
1483
|
id: "error-message-" + L(f)
|
|
1481
1484
|
}, null, 8, ["errors", "id"])
|
|
1482
1485
|
], 2));
|
|
1483
1486
|
}
|
|
1484
|
-
}), [["__scopeId", "data-v-
|
|
1487
|
+
}), [["__scopeId", "data-v-b72848f6"]]), Vt = ["aria-label"], Ht = [
|
|
1485
1488
|
"placeholder",
|
|
1486
1489
|
"value",
|
|
1487
1490
|
"aria-expanded",
|
|
1488
1491
|
"aria-controls",
|
|
1489
1492
|
"aria-activedescendant"
|
|
1490
|
-
],
|
|
1493
|
+
], Ut = {
|
|
1491
1494
|
key: 0,
|
|
1492
1495
|
class: "g-search-dropdown"
|
|
1493
|
-
},
|
|
1496
|
+
}, Wt = {
|
|
1494
1497
|
"aria-live": "polite",
|
|
1495
1498
|
class: "g-search-result-count"
|
|
1496
|
-
},
|
|
1499
|
+
}, Gt = ["id"], Kt = ["aria-label"], qt = { class: "g-search-group-label" }, Jt = [
|
|
1497
1500
|
"id",
|
|
1498
1501
|
"onMousedown",
|
|
1499
1502
|
"aria-selected"
|
|
1500
|
-
],
|
|
1503
|
+
], Yt = [
|
|
1501
1504
|
"id",
|
|
1502
1505
|
"onMousedown",
|
|
1503
1506
|
"aria-selected"
|
|
1504
|
-
],
|
|
1507
|
+
], Xt = /* @__PURE__ */ u({
|
|
1505
1508
|
__name: "GSearch",
|
|
1506
1509
|
props: /* @__PURE__ */ m({
|
|
1507
1510
|
results: {},
|
|
@@ -1529,7 +1532,7 @@ var ft = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1529
1532
|
e && e.scrollIntoView({ block: "nearest" });
|
|
1530
1533
|
});
|
|
1531
1534
|
}
|
|
1532
|
-
let { focused: S } =
|
|
1535
|
+
let { focused: S } = ae(f);
|
|
1533
1536
|
function w(e) {
|
|
1534
1537
|
let t = e.altKey;
|
|
1535
1538
|
if (e.key === "ArrowDown") {
|
|
@@ -1553,10 +1556,10 @@ var ft = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1553
1556
|
function T(e) {
|
|
1554
1557
|
d("select", e), l.value = "", m.value = !0, h.value = -1;
|
|
1555
1558
|
}
|
|
1556
|
-
let k = r(() => !!u.loading), A = r(() => S.value && !m.value), j =
|
|
1559
|
+
let k = r(() => !!u.loading), A = r(() => S.value && !m.value), j = ie(() => {
|
|
1557
1560
|
d("submit", l.value);
|
|
1558
1561
|
}, 300);
|
|
1559
|
-
|
|
1562
|
+
W(() => l.value, (e) => {
|
|
1560
1563
|
e ? u.auto && j() : h.value = -1;
|
|
1561
1564
|
});
|
|
1562
1565
|
let M = z();
|
|
@@ -1566,7 +1569,7 @@ var ft = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1566
1569
|
"aria-label": u.label
|
|
1567
1570
|
}, [s("form", {
|
|
1568
1571
|
class: "g-search-form",
|
|
1569
|
-
onSubmit: n[0] ||=
|
|
1572
|
+
onSubmit: n[0] ||= J((e) => T(null), ["prevent"])
|
|
1570
1573
|
}, [s("input", {
|
|
1571
1574
|
ref_key: "inputRef",
|
|
1572
1575
|
ref: f,
|
|
@@ -1582,7 +1585,7 @@ var ft = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1582
1585
|
"aria-autocomplete": "list",
|
|
1583
1586
|
"aria-controls": `${L(M)}-list`,
|
|
1584
1587
|
"aria-activedescendant": h.value >= 0 ? "g-search-option-" + v.value[h.value].id : void 0
|
|
1585
|
-
}, null, 40,
|
|
1588
|
+
}, null, 40, Ht), s("button", {
|
|
1586
1589
|
type: "submit",
|
|
1587
1590
|
class: "g-search-submit",
|
|
1588
1591
|
"aria-label": "Submit search",
|
|
@@ -1598,7 +1601,7 @@ var ft = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1598
1601
|
}, [s("path", {
|
|
1599
1602
|
fill: "currentColor",
|
|
1600
1603
|
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"
|
|
1601
|
-
})], -1)], 32)], 32), A.value ? (C(), o("div",
|
|
1604
|
+
})], -1)], 32)], 32), A.value ? (C(), o("div", Ut, [s("div", Wt, [k.value ? a("", !0) : (C(), o(e, { key: 0 }, [c(N(y.value) + " result" + N(y.value === 1 ? "" : "s"), 1)], 64))]), s("div", {
|
|
1602
1605
|
role: "listbox",
|
|
1603
1606
|
id: `${L(M)}-list`,
|
|
1604
1607
|
ref_key: "listboxRef",
|
|
@@ -1609,29 +1612,29 @@ var ft = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1609
1612
|
class: "g-search-group",
|
|
1610
1613
|
role: "group",
|
|
1611
1614
|
"aria-label": n.label
|
|
1612
|
-
}, [O(t.$slots, "group", { group: n }, () => [s("div",
|
|
1615
|
+
}, [O(t.$slots, "group", { group: n }, () => [s("div", qt, N(n.label), 1)]), (C(!0), o(e, null, D(n.items, (e, n) => (C(), o("div", {
|
|
1613
1616
|
key: e.id,
|
|
1614
1617
|
id: "g-search-option-" + e.id,
|
|
1615
1618
|
class: _(["g-search-option", { "g-search-option-active": v.value[h.value] && v.value[h.value].id === e.id }]),
|
|
1616
1619
|
role: "option",
|
|
1617
|
-
onMousedown:
|
|
1620
|
+
onMousedown: J((t) => T(e), ["prevent"]),
|
|
1618
1621
|
"aria-selected": v.value[h.value] && v.value[h.value].id === e.id
|
|
1619
|
-
}, [O(t.$slots, "option", { option: e }, () => [c(N(e.title), 1)])], 42,
|
|
1622
|
+
}, [O(t.$slots, "option", { option: e }, () => [c(N(e.title), 1)])], 42, Jt))), 128))], 8, Kt))), 128)) : y.value > 0 ? (C(!0), o(e, { key: 1 }, D(v.value, (e, n) => (C(), o("div", {
|
|
1620
1623
|
key: e.id,
|
|
1621
1624
|
id: "g-search-option-" + e.id,
|
|
1622
1625
|
class: _(["g-search-option", { "g-search-option-active": h.value === n }]),
|
|
1623
1626
|
role: "option",
|
|
1624
|
-
onMousedown:
|
|
1627
|
+
onMousedown: J((t) => T(e), ["prevent"]),
|
|
1625
1628
|
"aria-selected": h.value === n
|
|
1626
|
-
}, [O(t.$slots, "option", { option: e }, () => [c(N(e.title), 1)])], 42,
|
|
1629
|
+
}, [O(t.$slots, "option", { option: e }, () => [c(N(e.title), 1)])], 42, Yt))), 128)) : a("", !0)], 8, Gt)])) : a("", !0)], 8, Vt));
|
|
1627
1630
|
}
|
|
1628
|
-
}),
|
|
1631
|
+
}), Zt = { class: /* @__PURE__ */ _({ "g-app-header": !0 }) }, Qt = { class: "g-app-header__brand" }, $t = {
|
|
1629
1632
|
class: "g-app-header__brand-text",
|
|
1630
1633
|
href: "/"
|
|
1631
|
-
},
|
|
1634
|
+
}, en = {
|
|
1632
1635
|
key: 0,
|
|
1633
1636
|
class: "g-app-header__block-i-container"
|
|
1634
|
-
},
|
|
1637
|
+
}, tn = { class: "g-app-header__title" }, nn = { class: "g-app-header__app-controls-wrap" }, rn = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
1635
1638
|
__name: "GAppHeader",
|
|
1636
1639
|
props: {
|
|
1637
1640
|
illinois: {
|
|
@@ -1641,10 +1644,10 @@ var ft = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1641
1644
|
brand: { default: "GRAD" }
|
|
1642
1645
|
},
|
|
1643
1646
|
setup(e) {
|
|
1644
|
-
return (t, n) => (C(), o("header",
|
|
1647
|
+
return (t, n) => (C(), o("header", Zt, [
|
|
1645
1648
|
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),
|
|
1646
|
-
s("div",
|
|
1647
|
-
e.illinois ? (C(), o("div",
|
|
1649
|
+
s("div", Qt, [O(t.$slots, "left", {}, () => [s("a", $t, N(e.brand), 1)], !0)]),
|
|
1650
|
+
e.illinois ? (C(), o("div", en, [...n[0] ||= [s("svg", {
|
|
1648
1651
|
class: "g-app-header__block-i",
|
|
1649
1652
|
role: "img",
|
|
1650
1653
|
width: "55",
|
|
@@ -1661,28 +1664,28 @@ var ft = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1661
1664
|
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"
|
|
1662
1665
|
})
|
|
1663
1666
|
], -1)]])) : O(t.$slots, "icon", { key: 1 }, void 0, !0),
|
|
1664
|
-
s("div",
|
|
1665
|
-
s("div",
|
|
1667
|
+
s("div", tn, [O(t.$slots, "title", {}, void 0, !0)]),
|
|
1668
|
+
s("div", nn, [O(t.$slots, "app-controls", { class: "g-app-header__app-controls" }, void 0, !0)])
|
|
1666
1669
|
]));
|
|
1667
1670
|
}
|
|
1668
1671
|
}), [["__scopeId", "data-v-9ccf6042"]]);
|
|
1669
1672
|
//#endregion
|
|
1670
1673
|
//#region src/compose/useWebComponentSidebar.ts
|
|
1671
|
-
function
|
|
1674
|
+
function an(e) {
|
|
1672
1675
|
return e.replace(/[^a-zA-Z0-9_-]/g, "-");
|
|
1673
1676
|
}
|
|
1674
|
-
function
|
|
1677
|
+
function on() {
|
|
1675
1678
|
let e = globalThis;
|
|
1676
1679
|
return e.__GRAD_VUE_WC_SIDEBAR_CHANNELS__ ||= /* @__PURE__ */ new Map(), e.__GRAD_VUE_WC_SIDEBAR_CHANNELS__;
|
|
1677
1680
|
}
|
|
1678
|
-
function
|
|
1679
|
-
let n =
|
|
1681
|
+
function sn(e = "default", t = "(max-width: 800px)") {
|
|
1682
|
+
let n = on(), r = e || "default";
|
|
1680
1683
|
if (!n.has(r)) {
|
|
1681
|
-
let e =
|
|
1684
|
+
let e = an(r);
|
|
1682
1685
|
n.set(r, {
|
|
1683
1686
|
id: `g-wc-sidebar-${e}`,
|
|
1684
1687
|
open: E(!1),
|
|
1685
|
-
isCollapsible:
|
|
1688
|
+
isCollapsible: se(t, { ssrWidth: 1e3 }),
|
|
1686
1689
|
toggle: () => void 0
|
|
1687
1690
|
});
|
|
1688
1691
|
}
|
|
@@ -1703,7 +1706,7 @@ function an(e = "default", t = "(max-width: 800px)") {
|
|
|
1703
1706
|
}, 5));
|
|
1704
1707
|
}
|
|
1705
1708
|
return S(() => {
|
|
1706
|
-
|
|
1709
|
+
W(i.isCollapsible, (e) => {
|
|
1707
1710
|
e ? (document.addEventListener("mousedown", a), document.addEventListener("focusin", o)) : (document.removeEventListener("mousedown", a), document.removeEventListener("focusin", o));
|
|
1708
1711
|
}, { immediate: !0 });
|
|
1709
1712
|
}), x(() => {
|
|
@@ -1712,7 +1715,7 @@ function an(e = "default", t = "(max-width: 800px)") {
|
|
|
1712
1715
|
}
|
|
1713
1716
|
//#endregion
|
|
1714
1717
|
//#region src/components/GSidebar.vue?vue&type=script&setup=true&lang.ts
|
|
1715
|
-
var
|
|
1718
|
+
var cn = ["id"], ln = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
1716
1719
|
__name: "GSidebar",
|
|
1717
1720
|
props: {
|
|
1718
1721
|
backgroundColor: { default: "" },
|
|
@@ -1724,7 +1727,7 @@ var on = ["id"], sn = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1724
1727
|
sidebarKey: { default: "default" }
|
|
1725
1728
|
},
|
|
1726
1729
|
setup(e) {
|
|
1727
|
-
let t = e, n = p("sidebar", () => void 0, !0) ?? (
|
|
1730
|
+
let t = e, n = p("sidebar", () => void 0, !0) ?? (de() ? sn(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();
|
|
1728
1731
|
function l(e) {
|
|
1729
1732
|
e.key === "Escape" && n?.isCollapsible?.value && n?.open?.value && (n.open.value = !1, document.getElementById(`${n.id}-hamburger`)?.focus());
|
|
1730
1733
|
}
|
|
@@ -1744,13 +1747,13 @@ var on = ["id"], sn = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1744
1747
|
width: "var(--g-sidebar-width)"
|
|
1745
1748
|
}),
|
|
1746
1749
|
onKeydown: l
|
|
1747
|
-
}, [O(t.$slots, "default", {}, void 0, !0)], 46,
|
|
1750
|
+
}, [O(t.$slots, "default", {}, void 0, !0)], 46, cn));
|
|
1748
1751
|
}
|
|
1749
|
-
}), [["__scopeId", "data-v-88c7169f"]]),
|
|
1752
|
+
}), [["__scopeId", "data-v-88c7169f"]]), un = ["id"], dn = { class: "g-sidebar-menu__list" }, fn = [
|
|
1750
1753
|
"href",
|
|
1751
1754
|
"aria-current",
|
|
1752
1755
|
"onClick"
|
|
1753
|
-
],
|
|
1756
|
+
], pn = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
1754
1757
|
__name: "GSidebarMenu",
|
|
1755
1758
|
props: /* @__PURE__ */ m({
|
|
1756
1759
|
title: {},
|
|
@@ -1776,7 +1779,7 @@ var on = ["id"], sn = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1776
1779
|
setup(t) {
|
|
1777
1780
|
let n = t, l = B(t, "modelValue"), u = r(() => n.spy && l.value ? "#" + l.value : null), f = H("content");
|
|
1778
1781
|
S(() => {
|
|
1779
|
-
|
|
1782
|
+
W(l, () => {
|
|
1780
1783
|
g(() => {
|
|
1781
1784
|
let e = f.value?.querySelector(".g-sidebar-menu__is-active");
|
|
1782
1785
|
e && e.scrollIntoView({ block: "nearest" });
|
|
@@ -1798,13 +1801,13 @@ var on = ["id"], sn = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1798
1801
|
key: 0,
|
|
1799
1802
|
id: L(y),
|
|
1800
1803
|
class: "g-sidebar-menu__title"
|
|
1801
|
-
}, N(t.title), 9,
|
|
1804
|
+
}, N(t.title), 9, un)) : a("", !0),
|
|
1802
1805
|
l[0] ||= s("div", { class: "g-sidebar-menu__divider" }, null, -1),
|
|
1803
1806
|
s("div", {
|
|
1804
1807
|
class: "g-sidebar-menu__content",
|
|
1805
1808
|
ref_key: "content",
|
|
1806
1809
|
ref: f
|
|
1807
|
-
}, [s("ul",
|
|
1810
|
+
}, [s("ul", dn, [(C(!0), o(e, null, D(t.items, (e) => (C(), o("li", {
|
|
1808
1811
|
key: e.href || e.to,
|
|
1809
1812
|
class: "g-sidebar-menu__item",
|
|
1810
1813
|
ref_for: !0,
|
|
@@ -1814,7 +1817,7 @@ var on = ["id"], sn = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1814
1817
|
class: "g-sidebar-menu__link",
|
|
1815
1818
|
to: e.to
|
|
1816
1819
|
}, {
|
|
1817
|
-
default:
|
|
1820
|
+
default: K(() => [c(N(e.label), 1)]),
|
|
1818
1821
|
_: 2
|
|
1819
1822
|
}, 1032, ["to"])) : (C(), o("a", {
|
|
1820
1823
|
key: 1,
|
|
@@ -1822,23 +1825,23 @@ var on = ["id"], sn = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1822
1825
|
href: e.href || e.to || "#",
|
|
1823
1826
|
"aria-current": u.value === (e.href || "") ? "location" : void 0,
|
|
1824
1827
|
onClick: (t) => v(t, e)
|
|
1825
|
-
}, N(e.label), 11,
|
|
1828
|
+
}, N(e.label), 11, fn))]))), 128))])], 512)
|
|
1826
1829
|
], 16));
|
|
1827
1830
|
}
|
|
1828
|
-
}), [["__scopeId", "data-v-
|
|
1831
|
+
}), [["__scopeId", "data-v-330a0664"]]), mn = {
|
|
1829
1832
|
mounted(e, t) {
|
|
1830
1833
|
let n = E(null), r = E(!1), i = E(!1), a = E(t.value), o = null, s = !1, c = st(e), l = () => {
|
|
1831
1834
|
n.value || (n.value = ct(a.value, c), lt(n.value), o = new ResizeObserver(() => {
|
|
1832
1835
|
n.value && (r.value || i.value) && ut(e, n.value);
|
|
1833
1836
|
}), o.observe(n.value));
|
|
1834
1837
|
};
|
|
1835
|
-
|
|
1838
|
+
G(() => {
|
|
1836
1839
|
n.value && (n.value.textContent = a.value);
|
|
1837
1840
|
});
|
|
1838
1841
|
let u = () => {
|
|
1839
1842
|
n.value && (r.value || i.value) && ut(e, n.value);
|
|
1840
1843
|
};
|
|
1841
|
-
|
|
1844
|
+
G(() => {
|
|
1842
1845
|
r.value || i.value ? (l(), n.value && ut(e, n.value), s ||= (window.addEventListener("scroll", u, { capture: !0 }), !0)) : (s &&= (window.removeEventListener("scroll", u, { capture: !0 }), !1), n.value && (dt(n.value), setTimeout(() => {
|
|
1843
1846
|
e.dispatchEvent(new CustomEvent("tooltip-hide"));
|
|
1844
1847
|
}, 150)));
|
|
@@ -1877,7 +1880,7 @@ var on = ["id"], sn = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1877
1880
|
let t = e._v_gtooltip;
|
|
1878
1881
|
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");
|
|
1879
1882
|
}
|
|
1880
|
-
},
|
|
1883
|
+
}, hn = { class: "g-clipboard-text" }, gn = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
1881
1884
|
__name: "GClipboard",
|
|
1882
1885
|
props: {
|
|
1883
1886
|
text: {},
|
|
@@ -1885,12 +1888,12 @@ var on = ["id"], sn = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1885
1888
|
copyLabel: {}
|
|
1886
1889
|
},
|
|
1887
1890
|
setup(t) {
|
|
1888
|
-
let n = t, r =
|
|
1891
|
+
let n = t, r = mn, { text: i, copy: l, copied: u, isSupported: d } = re({ source: n.text }), f = E(n.copyLabel ?? "Copy to clipboard"), p = () => {
|
|
1889
1892
|
d.value ? (l(), f.value = "Copied") : f.value = "Copy not supported";
|
|
1890
1893
|
}, m = () => {
|
|
1891
1894
|
f.value = n.copyLabel ?? "Copy to clipboard";
|
|
1892
1895
|
};
|
|
1893
|
-
return (i, l) => (C(), o("div",
|
|
1896
|
+
return (i, l) => (C(), o("div", hn, [t.hideText ? a("", !0) : (C(), o(e, { key: 0 }, [c(N(n.text), 1)], 64)), q((C(), o("button", {
|
|
1894
1897
|
type: "button",
|
|
1895
1898
|
"aria-label": "Copy",
|
|
1896
1899
|
onClick: p,
|
|
@@ -1907,15 +1910,15 @@ var on = ["id"], sn = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1907
1910
|
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"
|
|
1908
1911
|
})], -1)]], 32)), [[L(r), f.value]])]));
|
|
1909
1912
|
}
|
|
1910
|
-
}), [["__scopeId", "data-v-
|
|
1913
|
+
}), [["__scopeId", "data-v-bd5d31d2"]]), _n = { class: "g-history-scroller-wrapper" }, vn = {
|
|
1911
1914
|
key: 0,
|
|
1912
1915
|
class: "g-history-shadow g-history-shadow--top",
|
|
1913
1916
|
"aria-hidden": "true"
|
|
1914
|
-
},
|
|
1917
|
+
}, yn = {
|
|
1915
1918
|
key: 1,
|
|
1916
1919
|
class: "g-history-shadow g-history-shadow--bottom",
|
|
1917
1920
|
"aria-hidden": "true"
|
|
1918
|
-
},
|
|
1921
|
+
}, bn = ["role", "aria-label"], xn = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
1919
1922
|
__name: "GHistoryScroller",
|
|
1920
1923
|
props: {
|
|
1921
1924
|
label: {},
|
|
@@ -1939,17 +1942,17 @@ var on = ["id"], sn = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1939
1942
|
}
|
|
1940
1943
|
S(() => {
|
|
1941
1944
|
g(f);
|
|
1942
|
-
}),
|
|
1945
|
+
}), le(i, () => {
|
|
1943
1946
|
u.value && f();
|
|
1944
|
-
}),
|
|
1947
|
+
}), le(c, () => {
|
|
1945
1948
|
u.value && f();
|
|
1946
|
-
}),
|
|
1949
|
+
}), W(() => n.entries, async () => {
|
|
1947
1950
|
u.value && (await g(), f());
|
|
1948
1951
|
});
|
|
1949
1952
|
let m = r(() => [...n.entries].reverse());
|
|
1950
|
-
return (n, r) => (C(), o("div",
|
|
1951
|
-
d.value ? a("", !0) : (C(), o("div",
|
|
1952
|
-
u.value ? a("", !0) : (C(), o("div",
|
|
1953
|
+
return (n, r) => (C(), o("div", _n, [
|
|
1954
|
+
d.value ? a("", !0) : (C(), o("div", vn)),
|
|
1955
|
+
u.value ? a("", !0) : (C(), o("div", yn)),
|
|
1953
1956
|
s("div", {
|
|
1954
1957
|
ref_key: "scrollerRef",
|
|
1955
1958
|
ref: i,
|
|
@@ -1964,7 +1967,7 @@ var on = ["id"], sn = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1964
1967
|
onClick: r[0] ||= () => f({ focusLast: !0 }),
|
|
1965
1968
|
"aria-label": "Jump to Latest"
|
|
1966
1969
|
}, {
|
|
1967
|
-
default:
|
|
1970
|
+
default: K(() => [...r[1] ||= [s("svg", {
|
|
1968
1971
|
"aria-hidden": "true",
|
|
1969
1972
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1970
1973
|
viewBox: "0 0 640 640",
|
|
@@ -1984,31 +1987,31 @@ var on = ["id"], sn = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
1984
1987
|
key: e.id,
|
|
1985
1988
|
class: "g-history-entry",
|
|
1986
1989
|
tabindex: "-1"
|
|
1987
|
-
}, [O(n.$slots, "default", { entry: e }, void 0, !0)]))), 128))], 512)], 40,
|
|
1990
|
+
}, [O(n.$slots, "default", { entry: e }, void 0, !0)]))), 128))], 512)], 40, bn)
|
|
1988
1991
|
]));
|
|
1989
1992
|
}
|
|
1990
|
-
}), [["__scopeId", "data-v-dde35ac8"]]),
|
|
1993
|
+
}), [["__scopeId", "data-v-dde35ac8"]]), Sn = { class: "g-three-way-toggle-wrapper" }, Cn = { class: "g-three-way-toggle-control" }, wn = ["id"], Tn = [
|
|
1991
1994
|
"aria-labelledby",
|
|
1992
1995
|
"aria-describedby",
|
|
1993
1996
|
"disabled",
|
|
1994
1997
|
"aria-invalid",
|
|
1995
1998
|
"aria-errormessage"
|
|
1996
|
-
],
|
|
1999
|
+
], En = { key: 0 }, Dn = { key: 1 }, On = { key: 2 }, kn = ["for"], An = [
|
|
1997
2000
|
"id",
|
|
1998
2001
|
"name",
|
|
1999
2002
|
"checked",
|
|
2000
2003
|
"disabled"
|
|
2001
|
-
],
|
|
2004
|
+
], jn = ["for"], Mn = [
|
|
2002
2005
|
"id",
|
|
2003
2006
|
"name",
|
|
2004
2007
|
"checked",
|
|
2005
2008
|
"disabled"
|
|
2006
|
-
],
|
|
2009
|
+
], Nn = ["for"], Pn = [
|
|
2007
2010
|
"id",
|
|
2008
2011
|
"name",
|
|
2009
2012
|
"checked",
|
|
2010
2013
|
"disabled"
|
|
2011
|
-
],
|
|
2014
|
+
], Fn = ["id"], In = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
2012
2015
|
__name: "GThreeWayToggle",
|
|
2013
2016
|
props: /* @__PURE__ */ m({
|
|
2014
2017
|
label: {},
|
|
@@ -2042,10 +2045,10 @@ var on = ["id"], sn = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
2042
2045
|
function b(e) {
|
|
2043
2046
|
n.disabled || (e.key === "n" || e.key === "N" ? (u(!1), e.preventDefault()) : (e.key === "y" || e.key === "Y") && (u(!0), e.preventDefault()));
|
|
2044
2047
|
}
|
|
2045
|
-
return (t, n) => (C(), o("div",
|
|
2048
|
+
return (t, n) => (C(), o("div", Sn, [s("div", Cn, [s("span", {
|
|
2046
2049
|
class: "g-label",
|
|
2047
2050
|
id: L(p)
|
|
2048
|
-
}, [O(t.$slots, "label", {}, () => [c(N(e.label), 1)], !0)], 8,
|
|
2051
|
+
}, [O(t.$slots, "label", {}, () => [c(N(e.label), 1)], !0)], 8, wn), s("fieldset", {
|
|
2049
2052
|
class: _(["g-three-way-toggle", { "g-has-error": e.error }]),
|
|
2050
2053
|
role: "radiogroup",
|
|
2051
2054
|
"aria-labelledby": L(p),
|
|
@@ -2057,7 +2060,7 @@ var on = ["id"], sn = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
2057
2060
|
s("span", {
|
|
2058
2061
|
class: _(["g-toggle-thumb", y.value]),
|
|
2059
2062
|
"aria-hidden": "true"
|
|
2060
|
-
}, [i.value === !1 ? (C(), o("span",
|
|
2063
|
+
}, [i.value === !1 ? (C(), o("span", En, "NO")) : i.value === !0 ? (C(), o("span", Dn, "YES")) : (C(), o("span", On))], 2),
|
|
2061
2064
|
s("label", {
|
|
2062
2065
|
for: L(h),
|
|
2063
2066
|
class: "g-toggle-option g-left",
|
|
@@ -2071,7 +2074,7 @@ var on = ["id"], sn = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
2071
2074
|
value: "false",
|
|
2072
2075
|
disabled: e.disabled,
|
|
2073
2076
|
onChange: n[0] ||= (e) => d(!1)
|
|
2074
|
-
}, null, 40,
|
|
2077
|
+
}, null, 40, An), n[5] ||= s("span", { class: "ilw-sr-only" }, "No", -1)], 40, kn),
|
|
2075
2078
|
s("label", {
|
|
2076
2079
|
for: L(g),
|
|
2077
2080
|
class: "g-toggle-option g-center",
|
|
@@ -2083,7 +2086,7 @@ var on = ["id"], sn = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
2083
2086
|
checked: i.value === null,
|
|
2084
2087
|
disabled: e.disabled,
|
|
2085
2088
|
onChange: n[2] ||= (e) => d(null)
|
|
2086
|
-
}, null, 40,
|
|
2089
|
+
}, null, 40, Mn), n[6] ||= s("span", { class: "ilw-sr-only" }, "Unset", -1)], 40, jn),
|
|
2087
2090
|
s("label", {
|
|
2088
2091
|
for: L(v),
|
|
2089
2092
|
class: "g-toggle-option g-right",
|
|
@@ -2097,53 +2100,53 @@ var on = ["id"], sn = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
2097
2100
|
checked: i.value === !0,
|
|
2098
2101
|
disabled: e.disabled,
|
|
2099
2102
|
onChange: n[3] ||= (e) => d(!0)
|
|
2100
|
-
}, null, 40,
|
|
2101
|
-
], 2)], 10,
|
|
2103
|
+
}, null, 40, Pn), n[7] ||= s("span", { class: "ilw-sr-only" }, "Yes", -1)], 40, Nn)
|
|
2104
|
+
], 2)], 10, Tn)]), e.error ? (C(), o("div", {
|
|
2102
2105
|
key: 0,
|
|
2103
2106
|
id: `${L(p)}-error`,
|
|
2104
2107
|
class: "g-form-error",
|
|
2105
2108
|
role: "alert",
|
|
2106
2109
|
"aria-atomic": "true"
|
|
2107
|
-
}, N(e.error), 9,
|
|
2110
|
+
}, N(e.error), 9, Fn)) : a("", !0)]));
|
|
2108
2111
|
}
|
|
2109
|
-
}), [["__scopeId", "data-v-b5b2babc"]]),
|
|
2112
|
+
}), [["__scopeId", "data-v-b5b2babc"]]), Ln = {
|
|
2110
2113
|
ref: "tableBodyRef",
|
|
2111
2114
|
class: "efficient-table-body"
|
|
2112
|
-
},
|
|
2115
|
+
}, Rn = ["aria-rowindex"], zn = {
|
|
2113
2116
|
key: 0,
|
|
2114
2117
|
class: "table-group-checkbox"
|
|
2115
|
-
},
|
|
2118
|
+
}, Bn = ["colspan"], Vn = [
|
|
2116
2119
|
"aria-rowindex",
|
|
2117
2120
|
"onMousedown",
|
|
2118
2121
|
"onClick"
|
|
2119
|
-
],
|
|
2122
|
+
], Hn = [
|
|
2120
2123
|
"checked",
|
|
2121
2124
|
"onClick",
|
|
2122
2125
|
"aria-label",
|
|
2123
2126
|
"name"
|
|
2124
|
-
],
|
|
2127
|
+
], Un = ["id"], Wn = {
|
|
2125
2128
|
key: 0,
|
|
2126
2129
|
class: "editable-cell"
|
|
2127
|
-
},
|
|
2130
|
+
}, Gn = {
|
|
2128
2131
|
key: 0,
|
|
2129
2132
|
class: "cell-prefix"
|
|
2130
|
-
},
|
|
2133
|
+
}, Kn = [
|
|
2131
2134
|
"value",
|
|
2132
2135
|
"onChange",
|
|
2133
2136
|
"aria-labelledby",
|
|
2134
2137
|
"aria-invalid",
|
|
2135
2138
|
"name"
|
|
2136
|
-
],
|
|
2139
|
+
], qn = ["value"], Jn = [
|
|
2137
2140
|
"value",
|
|
2138
2141
|
"onInput",
|
|
2139
2142
|
"aria-labelledby",
|
|
2140
2143
|
"aria-invalid",
|
|
2141
2144
|
"aria-errormessage",
|
|
2142
2145
|
"name"
|
|
2143
|
-
],
|
|
2146
|
+
], Yn = {
|
|
2144
2147
|
key: 3,
|
|
2145
2148
|
class: "cell-suffix"
|
|
2146
|
-
},
|
|
2149
|
+
}, Xn = ["id"], Zn = /* @__PURE__ */ u({
|
|
2147
2150
|
__name: "GTableBody",
|
|
2148
2151
|
props: {
|
|
2149
2152
|
data: {},
|
|
@@ -2212,13 +2215,13 @@ var on = ["id"], sn = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
2212
2215
|
function w(e, t) {
|
|
2213
2216
|
if (l.changeTracker) return l.changeTracker.getError(e.key, t.key);
|
|
2214
2217
|
}
|
|
2215
|
-
return (n, r) => (C(), o("tbody",
|
|
2218
|
+
return (n, r) => (C(), o("tbody", Ln, [(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", {
|
|
2216
2219
|
key: 0,
|
|
2217
2220
|
"aria-rowindex": t.startIndex + l + 2
|
|
2218
|
-
}, [t.bulkSelectionEnabled ? (C(), o("td",
|
|
2221
|
+
}, [t.bulkSelectionEnabled ? (C(), o("td", zn)) : a("", !0), s("td", {
|
|
2219
2222
|
colspan: t.columns.length,
|
|
2220
2223
|
class: "table-group-row"
|
|
2221
|
-
}, [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,
|
|
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, Bn)], 8, Rn)) : a("", !0), s("tr", {
|
|
2222
2225
|
class: _([
|
|
2223
2226
|
"efficient-table-row",
|
|
2224
2227
|
{
|
|
@@ -2233,7 +2236,7 @@ var on = ["id"], sn = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
2233
2236
|
}, [t.bulkSelectionEnabled ? (C(), o("td", {
|
|
2234
2237
|
key: 0,
|
|
2235
2238
|
class: "td-checkbox",
|
|
2236
|
-
onClick: r[0] ||=
|
|
2239
|
+
onClick: r[0] ||= J(() => {}, ["stop"])
|
|
2237
2240
|
}, [s("input", {
|
|
2238
2241
|
type: "checkbox",
|
|
2239
2242
|
checked: p(n.key),
|
|
@@ -2241,7 +2244,7 @@ var on = ["id"], sn = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
2241
2244
|
"aria-label": `Select row ${n.key}`,
|
|
2242
2245
|
name: `row-${n.key}-checkbox`,
|
|
2243
2246
|
class: "g-bulk-select-checkbox"
|
|
2244
|
-
}, null, 8,
|
|
2247
|
+
}, null, 8, Hn)])) : a("", !0), (C(!0), o(e, null, D(t.columns, (r) => (C(), o("td", {
|
|
2245
2248
|
key: r.key,
|
|
2246
2249
|
id: b(r) ? `${t.tableId}-td-${n.key}-${String(r.key)}` : void 0,
|
|
2247
2250
|
class: _([
|
|
@@ -2250,8 +2253,8 @@ var on = ["id"], sn = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
2250
2253
|
S(n, r) ? "g-cell-error" : "",
|
|
2251
2254
|
typeof r.tdClass == "function" ? r.tdClass(n) : r.tdClass
|
|
2252
2255
|
])
|
|
2253
|
-
}, [r.editable ? (C(), o("div",
|
|
2254
|
-
r.editable.prefix ? (C(), o("span",
|
|
2256
|
+
}, [r.editable ? (C(), o("div", Wn, [
|
|
2257
|
+
r.editable.prefix ? (C(), o("span", Gn, N(r.editable.prefix), 1)) : a("", !0),
|
|
2255
2258
|
r.editable.type === "select" ? (C(), o("select", {
|
|
2256
2259
|
key: 1,
|
|
2257
2260
|
value: n[r.key],
|
|
@@ -2263,7 +2266,7 @@ var on = ["id"], sn = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
2263
2266
|
}, [(C(!0), o(e, null, D(r.editable.options, (e) => (C(), o("option", {
|
|
2264
2267
|
key: e.value,
|
|
2265
2268
|
value: e.value
|
|
2266
|
-
}, N(e.label), 9,
|
|
2269
|
+
}, N(e.label), 9, qn))), 128))], 40, Kn)) : (C(), o("input", h({
|
|
2267
2270
|
key: 2,
|
|
2268
2271
|
value: n[r.key]
|
|
2269
2272
|
}, { ref_for: !0 }, r.editable.inputAttributes, {
|
|
@@ -2277,40 +2280,40 @@ var on = ["id"], sn = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
|
2277
2280
|
paddingLeft: r.editable.prefix ? "1.5rem" : void 0,
|
|
2278
2281
|
paddingRight: r.editable.suffix ? "2rem" : void 0
|
|
2279
2282
|
}
|
|
2280
|
-
}), null, 16,
|
|
2281
|
-
r.editable.suffix ? (C(), o("span",
|
|
2283
|
+
}), null, 16, Jn)),
|
|
2284
|
+
r.editable.suffix ? (C(), o("span", Yn, N(r.editable.suffix), 1)) : a("", !0)
|
|
2282
2285
|
])) : 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", {
|
|
2283
2286
|
key: 3,
|
|
2284
2287
|
role: "alert",
|
|
2285
2288
|
class: "g-cell-error-message",
|
|
2286
2289
|
id: `${t.tableId}-error-${n.key}-${String(r.key)}`
|
|
2287
|
-
}, N(w(n, r)), 9,
|
|
2290
|
+
}, N(w(n, r)), 9, Xn)) : a("", !0)], 10, Un))), 128))], 42, Vn)], 64))), 128))], 512));
|
|
2288
2291
|
}
|
|
2289
2292
|
});
|
|
2290
2293
|
//#endregion
|
|
2291
2294
|
//#region src/compose/useFiltering.ts
|
|
2292
|
-
function
|
|
2295
|
+
function Qn(e) {
|
|
2293
2296
|
if (!(Array.isArray(e) && e.length === 0) && !(e === null || e === !1 || e === "")) return e;
|
|
2294
2297
|
}
|
|
2295
|
-
function
|
|
2298
|
+
function $n(e) {
|
|
2296
2299
|
return Object.fromEntries(Object.entries(e).filter(([e, t]) => t && (!Array.isArray(t) || t.length > 0)));
|
|
2297
2300
|
}
|
|
2298
|
-
function
|
|
2301
|
+
function er(e) {
|
|
2299
2302
|
if (e != null) return Array.isArray(e) ? e.filter((e) => e != null) : [e];
|
|
2300
2303
|
}
|
|
2301
|
-
function
|
|
2304
|
+
function tr(e) {
|
|
2302
2305
|
let t = {};
|
|
2303
2306
|
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;
|
|
2304
2307
|
return t;
|
|
2305
2308
|
}
|
|
2306
|
-
function
|
|
2309
|
+
function nr(e) {
|
|
2307
2310
|
let t = {};
|
|
2308
2311
|
return Object.keys(e).forEach((n) => {
|
|
2309
2312
|
let r = e[n];
|
|
2310
2313
|
r != null && r !== "" && r !== !1 && (Array.isArray(r) ? r.length > 0 && (t[n] = r.map((e) => String(e))) : t[n] = String(r));
|
|
2311
2314
|
}), t;
|
|
2312
2315
|
}
|
|
2313
|
-
function
|
|
2316
|
+
function rr(e, t = {}) {
|
|
2314
2317
|
let n = T(Object.fromEntries(Object.entries(e).map(([e, t]) => [e, t]))), i = t.syncWith;
|
|
2315
2318
|
if (i) {
|
|
2316
2319
|
if (i.value) {
|
|
@@ -2322,14 +2325,14 @@ function tr(e, t = {}) {
|
|
|
2322
2325
|
}
|
|
2323
2326
|
});
|
|
2324
2327
|
}
|
|
2325
|
-
|
|
2326
|
-
i.value =
|
|
2328
|
+
W(n, (e) => {
|
|
2329
|
+
i.value = nr(e);
|
|
2327
2330
|
}, { deep: !0 });
|
|
2328
2331
|
}
|
|
2329
2332
|
return {
|
|
2330
2333
|
filters: n,
|
|
2331
2334
|
isFiltered: r(() => {
|
|
2332
|
-
for (let t of Object.keys(e)) if (
|
|
2335
|
+
for (let t of Object.keys(e)) if (Qn(n[t])) return !0;
|
|
2333
2336
|
return !1;
|
|
2334
2337
|
}),
|
|
2335
2338
|
clearFilters: () => {
|
|
@@ -2339,48 +2342,48 @@ function tr(e, t = {}) {
|
|
|
2339
2342
|
},
|
|
2340
2343
|
filteredColumns: r(() => {
|
|
2341
2344
|
let t = {};
|
|
2342
|
-
for (let r of Object.keys(e)) t[r] = !!
|
|
2345
|
+
for (let r of Object.keys(e)) t[r] = !!Qn(n[r]);
|
|
2343
2346
|
return t;
|
|
2344
2347
|
})
|
|
2345
2348
|
};
|
|
2346
2349
|
}
|
|
2347
2350
|
//#endregion
|
|
2348
2351
|
//#region src/components/GTable.vue?vue&type=script&setup=true&lang.ts
|
|
2349
|
-
var
|
|
2352
|
+
var ir = { class: "g-table-outer-wrap" }, ar = {
|
|
2350
2353
|
key: 0,
|
|
2351
2354
|
class: "g-table-controls"
|
|
2352
|
-
},
|
|
2355
|
+
}, or = { class: "g-clear-filters-wrap" }, sr = {
|
|
2353
2356
|
key: 0,
|
|
2354
2357
|
class: "pagination"
|
|
2355
|
-
},
|
|
2358
|
+
}, cr = { class: "g-result-count" }, lr = ["aria-label", "aria-rowcount"], ur = { class: "g-table-head" }, dr = { "aria-rowindex": "1" }, fr = {
|
|
2356
2359
|
key: 0,
|
|
2357
2360
|
scope: "col",
|
|
2358
2361
|
class: "g-th g-th-checkbox"
|
|
2359
|
-
},
|
|
2362
|
+
}, pr = [
|
|
2360
2363
|
"checked",
|
|
2361
2364
|
"indeterminate",
|
|
2362
2365
|
"aria-label"
|
|
2363
|
-
],
|
|
2366
|
+
], mr = ["id", "aria-sort"], hr = { class: "th-inner" }, gr = ["onClick"], _r = {
|
|
2364
2367
|
key: 0,
|
|
2365
2368
|
class: "sort-indicator"
|
|
2366
|
-
},
|
|
2369
|
+
}, vr = ["aria-label"], yr = {
|
|
2367
2370
|
key: 1,
|
|
2368
2371
|
class: "g-column-head"
|
|
2369
|
-
},
|
|
2372
|
+
}, br = ["onClick", "aria-label"], xr = { key: 1 }, Sr = { class: "g-filter-toggle" }, Cr = [
|
|
2370
2373
|
"onUpdate:modelValue",
|
|
2371
2374
|
"id",
|
|
2372
2375
|
"aria-describedby"
|
|
2373
|
-
],
|
|
2376
|
+
], wr = ["for"], Tr = ["id"], Er = {
|
|
2374
2377
|
key: 2,
|
|
2375
2378
|
class: "g-multi-select"
|
|
2376
|
-
},
|
|
2379
|
+
}, Dr = [
|
|
2377
2380
|
"onUpdate:modelValue",
|
|
2378
2381
|
"id",
|
|
2379
2382
|
"value"
|
|
2380
|
-
],
|
|
2383
|
+
], Or = ["for"], kr = {
|
|
2381
2384
|
key: 1,
|
|
2382
2385
|
class: "g-bulk-actions-toolbar"
|
|
2383
|
-
},
|
|
2386
|
+
}, Ar = { class: "g-selected-count" }, jr = { class: "g-bulk-actions" }, Mr = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
2384
2387
|
__name: "GTable",
|
|
2385
2388
|
props: /* @__PURE__ */ m({
|
|
2386
2389
|
label: {},
|
|
@@ -2429,7 +2432,7 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
2429
2432
|
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));
|
|
2430
2433
|
}
|
|
2431
2434
|
let v = m.filtering;
|
|
2432
|
-
v ||=
|
|
2435
|
+
v ||= rr({});
|
|
2433
2436
|
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);
|
|
2434
2437
|
function I() {
|
|
2435
2438
|
if (j.value) p.value = p.value.filter((e) => !k.value.includes(e));
|
|
@@ -2451,10 +2454,10 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
2451
2454
|
function H(e) {
|
|
2452
2455
|
h("row-click", e);
|
|
2453
2456
|
}
|
|
2454
|
-
function
|
|
2457
|
+
function ee(e) {
|
|
2455
2458
|
h("bulk-action", e, p.value);
|
|
2456
2459
|
}
|
|
2457
|
-
function
|
|
2460
|
+
function G(e) {
|
|
2458
2461
|
let t = e.value, n = e.column.key, r = P(e.row[n]);
|
|
2459
2462
|
e.column.editable?.inputAttributes?.type === "number" && (t = e.value === "" ? null : Number(e.value)), e.row[n] = t, h("cell-change", {
|
|
2460
2463
|
row: e.row,
|
|
@@ -2463,28 +2466,28 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
2463
2466
|
previousValue: r
|
|
2464
2467
|
});
|
|
2465
2468
|
}
|
|
2466
|
-
let
|
|
2469
|
+
let Y = z(), te = V(), X = r(() => m.showPagination ? !0 : !!te.pagination), ne = r(() => !!(w.value || X.value));
|
|
2467
2470
|
return S(() => {
|
|
2468
2471
|
m.rowClickable && m.bulkSelectionEnabled && console.warn("GTable: rowClickable and bulkSelectionEnabled cannot be used together. rowClickable will be ignored.");
|
|
2469
2472
|
for (let e of m.columns) if (e.editable && e.display && console.warn(`GTable: Column "${String(e.key)}" has both 'editable' and 'display' configured. 'display' will be ignored.`), e.filter && e.filter.type === "multi-select" && !Array.isArray(f.value[e.key])) {
|
|
2470
2473
|
let t = f.value[e.key];
|
|
2471
2474
|
f.value[e.key] = t ? [t] : [];
|
|
2472
2475
|
}
|
|
2473
|
-
}),
|
|
2476
|
+
}), W(() => m.columns, (e) => {
|
|
2474
2477
|
for (let t of e) if (t.filter && t.filter.type === "multi-select" && !Array.isArray(f.value[t.key])) {
|
|
2475
2478
|
let e = f.value[t.key];
|
|
2476
2479
|
f.value[t.key] = e ? [e] : [];
|
|
2477
2480
|
}
|
|
2478
|
-
}, { immediate: !0 }), (n, r) => (C(), o("div",
|
|
2479
|
-
|
|
2480
|
-
s("div",
|
|
2481
|
+
}, { immediate: !0 }), (n, r) => (C(), o("div", ir, [
|
|
2482
|
+
ne.value ? (C(), o("div", ar, [
|
|
2483
|
+
s("div", or, [L(w) ? (C(), i(Z, {
|
|
2481
2484
|
key: 0,
|
|
2482
2485
|
outlined: "",
|
|
2483
2486
|
size: "small",
|
|
2484
2487
|
class: "clear-filters",
|
|
2485
2488
|
onClick: L(T)
|
|
2486
2489
|
}, {
|
|
2487
|
-
default:
|
|
2490
|
+
default: K(() => [...r[0] ||= [s("svg", {
|
|
2488
2491
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2489
2492
|
viewBox: "0 0 51.26 51.26",
|
|
2490
2493
|
height: "1em",
|
|
@@ -2495,24 +2498,24 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
2495
2498
|
})], -1), s("span", { class: "g-clear-filters-text" }, " Clear Filters ", -1)]]),
|
|
2496
2499
|
_: 1
|
|
2497
2500
|
}, 8, ["onClick"])) : a("", !0)]),
|
|
2498
|
-
|
|
2499
|
-
s("span",
|
|
2501
|
+
X.value ? (C(), o("div", sr, [O(n.$slots, "pagination", {}, void 0, !0)])) : a("", !0),
|
|
2502
|
+
s("span", cr, N(m.resultCount || t.data.length) + " results", 1)
|
|
2500
2503
|
])) : a("", !0),
|
|
2501
2504
|
s("table", {
|
|
2502
2505
|
class: "g-table",
|
|
2503
2506
|
ref: "tableRef",
|
|
2504
2507
|
"aria-label": t.label,
|
|
2505
2508
|
"aria-rowcount": m.resultCount || t.data.length
|
|
2506
|
-
}, [s("thead",
|
|
2509
|
+
}, [s("thead", ur, [s("tr", dr, [t.bulkSelectionEnabled ? (C(), o("th", fr, [s("input", {
|
|
2507
2510
|
type: "checkbox",
|
|
2508
2511
|
checked: j.value,
|
|
2509
2512
|
indeterminate: M.value,
|
|
2510
2513
|
onChange: I,
|
|
2511
2514
|
"aria-label": j.value ? "Deselect all rows" : "Select all rows",
|
|
2512
2515
|
class: "g-bulk-select-checkbox"
|
|
2513
|
-
}, null, 40,
|
|
2516
|
+
}, null, 40, pr)])) : a("", !0), (C(!0), o(e, null, D(t.columns, (t) => (C(), o("th", {
|
|
2514
2517
|
key: t.key,
|
|
2515
|
-
id: `${L(
|
|
2518
|
+
id: `${L(Y)}-th-${String(t.key)}`,
|
|
2516
2519
|
"aria-sort": u.value === t.key ? d.value === 1 ? "ascending" : "descending" : "none",
|
|
2517
2520
|
class: _([
|
|
2518
2521
|
"g-th",
|
|
@@ -2520,12 +2523,12 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
2520
2523
|
{ filtered: L(x)[t.key] }
|
|
2521
2524
|
]),
|
|
2522
2525
|
scope: "col"
|
|
2523
|
-
}, [s("div",
|
|
2526
|
+
}, [s("div", hr, [t.sortable ? (C(), o("button", {
|
|
2524
2527
|
key: 0,
|
|
2525
2528
|
type: "button",
|
|
2526
2529
|
class: "g-column-head",
|
|
2527
2530
|
onClick: (e) => g(t)
|
|
2528
|
-
}, [c(N(t.label) + " ", 1), u.value === t.key ? (C(), o("span",
|
|
2531
|
+
}, [c(N(t.label) + " ", 1), u.value === t.key ? (C(), o("span", _r, [(C(), o("svg", {
|
|
2529
2532
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2530
2533
|
viewBox: "0 0 640 640",
|
|
2531
2534
|
height: "1.5em",
|
|
@@ -2535,9 +2538,9 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
2535
2538
|
}, [...r[1] ||= [s("path", {
|
|
2536
2539
|
fill: "currentColor",
|
|
2537
2540
|
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"
|
|
2538
|
-
}, null, -1)]], 12,
|
|
2539
|
-
trigger:
|
|
2540
|
-
onClick:
|
|
2541
|
+
}, null, -1)]], 12, vr))])) : a("", !0)], 8, gr)) : (C(), o("span", yr, N(t.label), 1)), t.filter ? (C(), i(it, { key: 2 }, {
|
|
2542
|
+
trigger: K(({ toggle: e }) => [s("button", {
|
|
2543
|
+
onClick: J(e, ["stop"]),
|
|
2541
2544
|
"aria-label": L(x)[t.key] ? "Column Filtered" : "Filter Column",
|
|
2542
2545
|
class: _(["g-filter-btn", { "g-active": L(x)[t.key] }]),
|
|
2543
2546
|
type: "button"
|
|
@@ -2549,8 +2552,8 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
2549
2552
|
}, [s("path", {
|
|
2550
2553
|
fill: "currentColor",
|
|
2551
2554
|
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"
|
|
2552
|
-
})], -1)]], 10,
|
|
2553
|
-
default:
|
|
2555
|
+
})], -1)]], 10, br)]),
|
|
2556
|
+
default: K(() => [t.filter.type === "select" ? (C(), i(Bt, {
|
|
2554
2557
|
key: 0,
|
|
2555
2558
|
modelValue: f.value[t.key],
|
|
2556
2559
|
"onUpdate:modelValue": (e) => f.value[t.key] = e,
|
|
@@ -2563,28 +2566,28 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
2563
2566
|
"modelValue",
|
|
2564
2567
|
"onUpdate:modelValue",
|
|
2565
2568
|
"options"
|
|
2566
|
-
])) : t.filter.type === "toggle" ? (C(), o("div",
|
|
2567
|
-
|
|
2569
|
+
])) : t.filter.type === "toggle" ? (C(), o("div", xr, [s("div", Sr, [
|
|
2570
|
+
q(s("input", {
|
|
2568
2571
|
type: "checkbox",
|
|
2569
2572
|
"onUpdate:modelValue": (e) => f.value[t.key] = e,
|
|
2570
|
-
id: `${L(
|
|
2571
|
-
"aria-describedby": t.filter.description ? `${L(
|
|
2572
|
-
}, null, 8,
|
|
2573
|
-
s("label", { for: `${L(
|
|
2573
|
+
id: `${L(Y)}-filter-${String(t.key)}`,
|
|
2574
|
+
"aria-describedby": t.filter.description ? `${L(Y)}-filter-description-${String(t.key)}` : void 0
|
|
2575
|
+
}, null, 8, Cr), [[U, f.value[t.key]]]),
|
|
2576
|
+
s("label", { for: `${L(Y)}-filter-${String(t.key)}` }, N(t.filter.label), 9, wr),
|
|
2574
2577
|
t.filter.description ? (C(), o("span", {
|
|
2575
2578
|
key: 0,
|
|
2576
2579
|
class: "g-filter-description",
|
|
2577
|
-
id: `${L(
|
|
2578
|
-
}, N(t.filter.description), 9,
|
|
2579
|
-
])])) : t.filter.type === "multi-select" ? (C(), o("fieldset",
|
|
2580
|
+
id: `${L(Y)}-filter-description-${String(t.key)}`
|
|
2581
|
+
}, N(t.filter.description), 9, Tr)) : a("", !0)
|
|
2582
|
+
])])) : t.filter.type === "multi-select" ? (C(), o("fieldset", Er, [
|
|
2580
2583
|
r[4] ||= s("legend", { class: "g-multi-select-legend" }, " Include values ", -1),
|
|
2581
|
-
(C(!0), o(e, null, D(t.filter.options, (e) => (C(), o("div", { key: e.value }, [
|
|
2584
|
+
(C(!0), o(e, null, D(t.filter.options, (e) => (C(), o("div", { key: e.value }, [q(s("input", {
|
|
2582
2585
|
type: "checkbox",
|
|
2583
2586
|
"onUpdate:modelValue": (e) => f.value[t.key] = e,
|
|
2584
2587
|
id: `filter-${String(t.key)}-${e.value}`,
|
|
2585
2588
|
value: e.value,
|
|
2586
2589
|
name: "filter-multiselect"
|
|
2587
|
-
}, null, 8,
|
|
2590
|
+
}, null, 8, Dr), [[U, f.value[t.key]]]), s("label", { for: `filter-${String(t.key)}-${e.value}` }, N(e.label), 9, Or)]))), 128)),
|
|
2588
2591
|
f.value[t.key] && f.value[t.key].length ? (C(), i(Z, {
|
|
2589
2592
|
key: 0,
|
|
2590
2593
|
class: "clear-multiselect-btn",
|
|
@@ -2592,12 +2595,12 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
2592
2595
|
size: "small",
|
|
2593
2596
|
onClick: (e) => f.value[t.key] = []
|
|
2594
2597
|
}, {
|
|
2595
|
-
default:
|
|
2598
|
+
default: K(() => [...r[3] ||= [c(" Clear ", -1)]]),
|
|
2596
2599
|
_: 1
|
|
2597
2600
|
}, 8, ["onClick"])) : a("", !0)
|
|
2598
2601
|
])) : a("", !0)]),
|
|
2599
2602
|
_: 2
|
|
2600
|
-
}, 1024)) : a("", !0)])], 10,
|
|
2603
|
+
}, 1024)) : a("", !0)])], 10, mr))), 128))])]), l(Zn, {
|
|
2601
2604
|
data: t.data,
|
|
2602
2605
|
columns: t.columns,
|
|
2603
2606
|
"group-by": t.groupBy,
|
|
@@ -2607,11 +2610,11 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
2607
2610
|
"start-index": t.startIndex,
|
|
2608
2611
|
"bulk-selection-enabled": t.bulkSelectionEnabled,
|
|
2609
2612
|
"selected-rows": p.value,
|
|
2610
|
-
"table-id": L(
|
|
2613
|
+
"table-id": L(Y),
|
|
2611
2614
|
"change-tracker": t.changeTracker,
|
|
2612
2615
|
onRowClick: H,
|
|
2613
2616
|
onToggleRow: R,
|
|
2614
|
-
onCellChange:
|
|
2617
|
+
onCellChange: G
|
|
2615
2618
|
}, null, 8, [
|
|
2616
2619
|
"data",
|
|
2617
2620
|
"columns",
|
|
@@ -2624,21 +2627,21 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
2624
2627
|
"selected-rows",
|
|
2625
2628
|
"table-id",
|
|
2626
2629
|
"change-tracker"
|
|
2627
|
-
])], 8,
|
|
2628
|
-
t.bulkSelectionEnabled && p.value.length > 0 ? (C(), o("div",
|
|
2630
|
+
])], 8, lr),
|
|
2631
|
+
t.bulkSelectionEnabled && p.value.length > 0 ? (C(), o("div", kr, [s("span", Ar, N(p.value.length) + " row" + N(p.value.length === 1 ? "" : "s") + " selected", 1), s("ul", jr, [(C(!0), o(e, null, D(t.bulkActions, (e) => (C(), o("li", { key: e.id }, [l(Z, {
|
|
2629
2632
|
theme: e.theme || "accent",
|
|
2630
|
-
onClick: (t) =>
|
|
2633
|
+
onClick: (t) => ee(e.id),
|
|
2631
2634
|
size: "small"
|
|
2632
2635
|
}, {
|
|
2633
|
-
default:
|
|
2636
|
+
default: K(() => [c(N(e.label) + " " + N(p.value.length) + " row" + N(p.value.length === 1 ? "" : "s"), 1)]),
|
|
2634
2637
|
_: 2
|
|
2635
2638
|
}, 1032, ["theme", "onClick"])]))), 128))])])) : a("", !0)
|
|
2636
2639
|
]));
|
|
2637
2640
|
}
|
|
2638
|
-
}), [["__scopeId", "data-v-
|
|
2641
|
+
}), [["__scopeId", "data-v-32760cb5"]]), Nr = {
|
|
2639
2642
|
class: "g-pagination",
|
|
2640
2643
|
"aria-label": "Pagination"
|
|
2641
|
-
},
|
|
2644
|
+
}, Pr = ["disabled"], Fr = ["disabled"], Ir = { class: "page-range" }, Lr = ["disabled"], Rr = ["disabled"], zr = ["value"], Br = ["value"], Vr = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
2642
2645
|
__name: "GTablePagination",
|
|
2643
2646
|
props: /* @__PURE__ */ m({
|
|
2644
2647
|
start: {},
|
|
@@ -2660,7 +2663,7 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
2660
2663
|
function h(e) {
|
|
2661
2664
|
c.value = parseInt(e.target.value, 10);
|
|
2662
2665
|
}
|
|
2663
|
-
return (t, r) => (C(), o("nav",
|
|
2666
|
+
return (t, r) => (C(), o("nav", Nr, [
|
|
2664
2667
|
s("button", {
|
|
2665
2668
|
class: "first-page g-pagination-button",
|
|
2666
2669
|
disabled: p.value === 1,
|
|
@@ -2685,7 +2688,7 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
2685
2688
|
}),
|
|
2686
2689
|
s("path", { d: "M11 7l-5 5l5 5" }),
|
|
2687
2690
|
s("path", { d: "M17 7l-5 5l5 5" })
|
|
2688
|
-
], -1)]], 8,
|
|
2691
|
+
], -1)]], 8, Pr),
|
|
2689
2692
|
s("button", {
|
|
2690
2693
|
class: "prev-page g-pagination-button",
|
|
2691
2694
|
disabled: p.value === 1,
|
|
@@ -2706,8 +2709,8 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
2706
2709
|
stroke: "none",
|
|
2707
2710
|
d: "M0 0h24v24H0z",
|
|
2708
2711
|
fill: "none"
|
|
2709
|
-
}), s("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8,
|
|
2710
|
-
s("span",
|
|
2712
|
+
}), s("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8, Fr),
|
|
2713
|
+
s("span", Ir, N(d.value) + " to " + N(f.value), 1),
|
|
2711
2714
|
s("button", {
|
|
2712
2715
|
class: "next-page g-pagination-button",
|
|
2713
2716
|
disabled: p.value === i.value,
|
|
@@ -2728,7 +2731,7 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
2728
2731
|
stroke: "none",
|
|
2729
2732
|
d: "M0 0h24v24H0z",
|
|
2730
2733
|
fill: "none"
|
|
2731
|
-
}), s("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8,
|
|
2734
|
+
}), s("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8, Lr),
|
|
2732
2735
|
s("button", {
|
|
2733
2736
|
class: "last-page g-pagination-button",
|
|
2734
2737
|
disabled: p.value === i.value,
|
|
@@ -2753,7 +2756,7 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
2753
2756
|
}),
|
|
2754
2757
|
s("path", { d: "M7 7l5 5l-5 5" }),
|
|
2755
2758
|
s("path", { d: "M13 7l5 5l-5 5" })
|
|
2756
|
-
], -1)]], 8,
|
|
2759
|
+
], -1)]], 8, Rr),
|
|
2757
2760
|
s("select", {
|
|
2758
2761
|
id: "page-size-select",
|
|
2759
2762
|
class: "page-size-select",
|
|
@@ -2767,14 +2770,14 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
2767
2770
|
], (e) => (C(), o("option", {
|
|
2768
2771
|
key: e,
|
|
2769
2772
|
value: e
|
|
2770
|
-
}, N(e), 9,
|
|
2773
|
+
}, N(e), 9, Br))), 128))], 40, zr),
|
|
2771
2774
|
r[8] ||= s("label", {
|
|
2772
2775
|
class: "page-size-label",
|
|
2773
2776
|
for: "page-size-select"
|
|
2774
2777
|
}, "per page", -1)
|
|
2775
2778
|
]));
|
|
2776
2779
|
}
|
|
2777
|
-
}), [["__scopeId", "data-v-
|
|
2780
|
+
}), [["__scopeId", "data-v-ae2bd887"]]), Hr = ["id"], Ur = { class: "g-modal-inner" }, Wr = { class: "g-modal-header" }, Gr = ["id"], Kr = ["id"], qr = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
2778
2781
|
__name: "GModal",
|
|
2779
2782
|
props: {
|
|
2780
2783
|
label: {},
|
|
@@ -2805,7 +2808,7 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
2805
2808
|
name: "g-fade",
|
|
2806
2809
|
appear: ""
|
|
2807
2810
|
}, {
|
|
2808
|
-
default:
|
|
2811
|
+
default: K(() => [s("div", h({
|
|
2809
2812
|
id: "modal-" + L(m),
|
|
2810
2813
|
class: ["g-modal", D.value],
|
|
2811
2814
|
role: "dialog",
|
|
@@ -2818,12 +2821,12 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
2818
2821
|
ref_key: "dialog",
|
|
2819
2822
|
ref: f,
|
|
2820
2823
|
style: { zIndex: L(y) }
|
|
2821
|
-
}), [s("div",
|
|
2824
|
+
}), [s("div", Ur, [s("div", Wr, [e.hiddenLabel ? a("", !0) : (C(), o("h2", {
|
|
2822
2825
|
key: 0,
|
|
2823
2826
|
id: "modal-label-" + L(m),
|
|
2824
2827
|
class: "g-modal-label",
|
|
2825
2828
|
tabindex: "-1"
|
|
2826
|
-
}, N(e.label), 9,
|
|
2829
|
+
}, N(e.label), 9, Gr)), s("button", {
|
|
2827
2830
|
class: "g-modal-close",
|
|
2828
2831
|
onClick: T,
|
|
2829
2832
|
"aria-label": "Close"
|
|
@@ -2838,16 +2841,16 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
2838
2841
|
})], -1)]])]), s("div", {
|
|
2839
2842
|
id: "modal-description-" + L(m),
|
|
2840
2843
|
class: "g-modal-content"
|
|
2841
|
-
}, [O(r.$slots, "default", {}, void 0, !0)], 8,
|
|
2844
|
+
}, [O(r.$slots, "default", {}, void 0, !0)], 8, Kr)])], 16, Hr)]),
|
|
2842
2845
|
_: 3
|
|
2843
2846
|
})]));
|
|
2844
2847
|
}
|
|
2845
|
-
}), [["__scopeId", "data-v-
|
|
2848
|
+
}), [["__scopeId", "data-v-1b1aed31"]]), Jr = [
|
|
2846
2849
|
"id",
|
|
2847
2850
|
"aria-expanded",
|
|
2848
2851
|
"aria-label",
|
|
2849
2852
|
"aria-controls"
|
|
2850
|
-
],
|
|
2853
|
+
], Yr = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
2851
2854
|
__name: "GHamburgerMenu",
|
|
2852
2855
|
props: {
|
|
2853
2856
|
label: { default: "Main Navigation" },
|
|
@@ -2855,7 +2858,7 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
2855
2858
|
},
|
|
2856
2859
|
emits: ["toggle"],
|
|
2857
2860
|
setup(e, { emit: t }) {
|
|
2858
|
-
let n = e, r = p("sidebar") ?? (
|
|
2861
|
+
let n = e, r = p("sidebar") ?? (de() ? sn(n.sidebarKey) : void 0), i = t;
|
|
2859
2862
|
function a() {
|
|
2860
2863
|
i("toggle"), r?.toggle();
|
|
2861
2864
|
}
|
|
@@ -2877,34 +2880,34 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
2877
2880
|
}, [...n[0] ||= [s("svg", {
|
|
2878
2881
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2879
2882
|
viewBox: "0 0 51.26 51.26"
|
|
2880
|
-
}, [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,
|
|
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, Jr));
|
|
2881
2884
|
}
|
|
2882
|
-
}), [["__scopeId", "data-v-
|
|
2885
|
+
}), [["__scopeId", "data-v-2ff52853"]]), Xr = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
2883
2886
|
__name: "GDetailList",
|
|
2884
2887
|
props: { variant: { default: "grid" } },
|
|
2885
2888
|
setup(e) {
|
|
2886
2889
|
let t = e;
|
|
2887
2890
|
return (e, n) => (C(), o("dl", { class: _(["g-detail-list", `g-detail-list--${t.variant}`]) }, [O(e.$slots, "default", {}, void 0, !0)], 2));
|
|
2888
2891
|
}
|
|
2889
|
-
}), [["__scopeId", "data-v-b851df7b"]]),
|
|
2892
|
+
}), [["__scopeId", "data-v-b851df7b"]]), Zr = { class: "g-detail-list-item" }, Qr = { class: "g-detail-list-item__label" }, $r = { class: "g-detail-list-item__value" }, ei = /* @__PURE__ */ u({
|
|
2890
2893
|
__name: "GDetailListItem",
|
|
2891
2894
|
props: { label: {} },
|
|
2892
2895
|
setup(e) {
|
|
2893
|
-
return (t, n) => (C(), o("div",
|
|
2896
|
+
return (t, n) => (C(), o("div", Zr, [s("dt", Qr, [O(t.$slots, "label", {}, () => [c(N(e.label), 1)])]), s("dd", $r, [O(t.$slots, "default")])]));
|
|
2894
2897
|
}
|
|
2895
|
-
}),
|
|
2898
|
+
}), ti = {
|
|
2896
2899
|
key: 0,
|
|
2897
2900
|
class: "g-scroll-lock-overlay"
|
|
2898
|
-
},
|
|
2901
|
+
}, ni = /* @__PURE__ */ u({
|
|
2899
2902
|
__name: "GOverlay",
|
|
2900
2903
|
setup(e) {
|
|
2901
2904
|
let { hasScrollLock: t } = qe();
|
|
2902
2905
|
return (e, r) => (C(), i(n, { name: "g-fade" }, {
|
|
2903
|
-
default:
|
|
2906
|
+
default: K(() => [L(t) ? (C(), o("div", ti)) : a("", !0)]),
|
|
2904
2907
|
_: 1
|
|
2905
2908
|
}));
|
|
2906
2909
|
}
|
|
2907
|
-
}),
|
|
2910
|
+
}), ri = { class: "popover-content" }, ii = { class: "year-dropdown" }, ai = { class: "month-selector" }, oi = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
2908
2911
|
__name: "GTermSelectorControl",
|
|
2909
2912
|
props: /* @__PURE__ */ m({
|
|
2910
2913
|
termYears: { default: () => ["2026"] },
|
|
@@ -2925,7 +2928,7 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
2925
2928
|
emits: ["update:modelValue"],
|
|
2926
2929
|
setup(e) {
|
|
2927
2930
|
let t = B(e, "modelValue");
|
|
2928
|
-
return (n, r) => (C(), o("div",
|
|
2931
|
+
return (n, r) => (C(), o("div", ri, [s("div", ii, [l(Bt, {
|
|
2929
2932
|
modelValue: t.value.year,
|
|
2930
2933
|
"onUpdate:modelValue": r[0] ||= (e) => t.value.year = e,
|
|
2931
2934
|
options: e.termYears,
|
|
@@ -2934,7 +2937,7 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
2934
2937
|
"modelValue",
|
|
2935
2938
|
"options",
|
|
2936
2939
|
"label"
|
|
2937
|
-
])]), s("div",
|
|
2940
|
+
])]), s("div", ai, [l(vt, {
|
|
2938
2941
|
modelValue: t.value.name,
|
|
2939
2942
|
"onUpdate:modelValue": r[1] ||= (e) => t.value.name = e,
|
|
2940
2943
|
options: e.termNames,
|
|
@@ -2946,10 +2949,10 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
2946
2949
|
"label"
|
|
2947
2950
|
])])]));
|
|
2948
2951
|
}
|
|
2949
|
-
}), [["__scopeId", "data-v-43c70980"]]),
|
|
2952
|
+
}), [["__scopeId", "data-v-43c70980"]]), si = { class: "g-term-selector" }, ci = { class: "g-term-label" }, li = {
|
|
2950
2953
|
class: "popover-title",
|
|
2951
2954
|
tabindex: "-1"
|
|
2952
|
-
},
|
|
2955
|
+
}, ui = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
2953
2956
|
__name: "GTermSelector",
|
|
2954
2957
|
props: /* @__PURE__ */ m({
|
|
2955
2958
|
title: { default: "Period Selection" },
|
|
@@ -2971,20 +2974,20 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
2971
2974
|
emits: ["update:modelValue"],
|
|
2972
2975
|
setup(e) {
|
|
2973
2976
|
let t = B(e, "modelValue");
|
|
2974
|
-
return (n, r) => (C(), o("div",
|
|
2975
|
-
trigger:
|
|
2977
|
+
return (n, r) => (C(), o("div", si, [l(it, null, {
|
|
2978
|
+
trigger: K(({ toggle: e }) => [l(Z, {
|
|
2976
2979
|
class: "g-term-selector-button",
|
|
2977
2980
|
theme: "none",
|
|
2978
2981
|
outlined: "",
|
|
2979
2982
|
onClick: e
|
|
2980
2983
|
}, {
|
|
2981
|
-
default:
|
|
2984
|
+
default: K(() => [
|
|
2982
2985
|
r[0] ||= s("span", { class: "g-calendar-icon" }, [s("svg", {
|
|
2983
2986
|
role: "none presentation",
|
|
2984
2987
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2985
2988
|
viewBox: "0 0 640 640"
|
|
2986
2989
|
}, [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),
|
|
2987
|
-
s("span",
|
|
2990
|
+
s("span", ci, N(t.value?.name) + " " + N(t.value?.year), 1),
|
|
2988
2991
|
r[1] ||= s("span", { class: "g-caret" }, [s("svg", {
|
|
2989
2992
|
role: "none presentation",
|
|
2990
2993
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2993,15 +2996,15 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
2993
2996
|
]),
|
|
2994
2997
|
_: 1
|
|
2995
2998
|
}, 8, ["onClick"])]),
|
|
2996
|
-
default:
|
|
2999
|
+
default: K(() => [s("h2", li, N(e.title), 1), l(oi, v(f(n.$props)), null, 16)]),
|
|
2997
3000
|
_: 1
|
|
2998
3001
|
})]));
|
|
2999
3002
|
}
|
|
3000
|
-
}), [["__scopeId", "data-v-
|
|
3003
|
+
}), [["__scopeId", "data-v-47e0fca1"]]), di = { class: "g-user-menu" }, fi = [
|
|
3001
3004
|
"aria-label",
|
|
3002
3005
|
"aria-expanded",
|
|
3003
3006
|
"onClick"
|
|
3004
|
-
],
|
|
3007
|
+
], pi = { class: "g-user-menu__popover" }, mi = { class: "g-user-menu__list" }, hi = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
3005
3008
|
__name: "GUserMenu",
|
|
3006
3009
|
props: {
|
|
3007
3010
|
initials: {},
|
|
@@ -3013,20 +3016,20 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
3013
3016
|
let n = `${z()}-email`, r = E(!1), a = H("emailHeading");
|
|
3014
3017
|
d()?.appContext?.components?.RouterLink;
|
|
3015
3018
|
let c = V();
|
|
3016
|
-
return (u, d) => (C(), o("div",
|
|
3019
|
+
return (u, d) => (C(), o("div", di, [l(it, {
|
|
3017
3020
|
modelValue: r.value,
|
|
3018
3021
|
"onUpdate:modelValue": d[0] ||= (e) => r.value = e,
|
|
3019
3022
|
minimal: ""
|
|
3020
3023
|
}, {
|
|
3021
|
-
trigger:
|
|
3024
|
+
trigger: K(({ toggle: e }) => [s("button", {
|
|
3022
3025
|
class: "g-user-menu__avatar",
|
|
3023
3026
|
style: y({ backgroundColor: t.color }),
|
|
3024
3027
|
"aria-label": t.initials + " - " + t.label,
|
|
3025
3028
|
"aria-expanded": r.value,
|
|
3026
3029
|
"aria-haspopup": "menu",
|
|
3027
3030
|
onClick: e
|
|
3028
|
-
}, N(t.initials), 13,
|
|
3029
|
-
default:
|
|
3031
|
+
}, N(t.initials), 13, fi)]),
|
|
3032
|
+
default: K(() => [s("div", pi, [s("h2", {
|
|
3030
3033
|
id: n,
|
|
3031
3034
|
ref_key: "emailHeading",
|
|
3032
3035
|
ref: a,
|
|
@@ -3035,11 +3038,11 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
3035
3038
|
}, N(t.email), 513), s("nav", {
|
|
3036
3039
|
class: "g-user-menu__nav",
|
|
3037
3040
|
"aria-labelledby": n
|
|
3038
|
-
}, [s("ul",
|
|
3041
|
+
}, [s("ul", mi, [(C(!0), o(e, null, D(c.default(), (e, t) => (C(), o("li", { key: t }, [(C(), i(A(e)))]))), 128))])])])]),
|
|
3039
3042
|
_: 1
|
|
3040
3043
|
}, 8, ["modelValue"])]));
|
|
3041
3044
|
}
|
|
3042
|
-
}), [["__scopeId", "data-v-
|
|
3045
|
+
}), [["__scopeId", "data-v-cedd2d44"]]), gi = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
3043
3046
|
__name: "GCurrencyInput",
|
|
3044
3047
|
props: /* @__PURE__ */ m({
|
|
3045
3048
|
label: { default: void 0 },
|
|
@@ -3084,7 +3087,7 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
3084
3087
|
"form-key"
|
|
3085
3088
|
]));
|
|
3086
3089
|
}
|
|
3087
|
-
}), [["__scopeId", "data-v-2b4443c8"]]),
|
|
3090
|
+
}), [["__scopeId", "data-v-2b4443c8"]]), _i = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
3088
3091
|
__name: "GEmailInput",
|
|
3089
3092
|
props: /* @__PURE__ */ m({
|
|
3090
3093
|
label: { default: void 0 },
|
|
@@ -3123,13 +3126,13 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
3123
3126
|
"instructions"
|
|
3124
3127
|
]));
|
|
3125
3128
|
}
|
|
3126
|
-
}), [["__scopeId", "data-v-6873e4b7"]]),
|
|
3129
|
+
}), [["__scopeId", "data-v-6873e4b7"]]), vi = ["for"], yi = {
|
|
3127
3130
|
key: 0,
|
|
3128
3131
|
class: "g-file-input-required"
|
|
3129
|
-
},
|
|
3132
|
+
}, bi = {
|
|
3130
3133
|
key: 0,
|
|
3131
3134
|
class: "g-file-input-box-header"
|
|
3132
|
-
},
|
|
3135
|
+
}, xi = ["id"], Si = [
|
|
3133
3136
|
"id",
|
|
3134
3137
|
"disabled",
|
|
3135
3138
|
"required",
|
|
@@ -3138,11 +3141,11 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
3138
3141
|
"aria-invalid",
|
|
3139
3142
|
"aria-describedby",
|
|
3140
3143
|
"aria-errormessage"
|
|
3141
|
-
],
|
|
3144
|
+
], Ci = {
|
|
3142
3145
|
key: 1,
|
|
3143
3146
|
class: "g-file-input-pills",
|
|
3144
3147
|
"aria-label": "Selected files"
|
|
3145
|
-
},
|
|
3148
|
+
}, wi = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
3146
3149
|
inheritAttrs: !1,
|
|
3147
3150
|
__name: "GFileInput",
|
|
3148
3151
|
props: /* @__PURE__ */ m({
|
|
@@ -3199,12 +3202,12 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
3199
3202
|
key: 0,
|
|
3200
3203
|
for: L(d),
|
|
3201
3204
|
class: "g-file-input-label"
|
|
3202
|
-
}, [c(N(t.label) + " ", 1), t.required ? (C(), o("span",
|
|
3205
|
+
}, [c(N(t.label) + " ", 1), t.required ? (C(), o("span", yi, "*")) : a("", !0)], 8, vi)) : a("", !0),
|
|
3203
3206
|
s("div", { class: _(["g-file-input-box", { "g-file-input-box--disabled": t.disabled }]) }, [
|
|
3204
|
-
t.instructions ? (C(), o("div",
|
|
3207
|
+
t.instructions ? (C(), o("div", bi, [s("span", {
|
|
3205
3208
|
id: "instructions-" + L(d),
|
|
3206
3209
|
class: "g-file-input-instructions"
|
|
3207
|
-
}, N(t.instructions), 9,
|
|
3210
|
+
}, N(t.instructions), 9, xi)])) : a("", !0),
|
|
3208
3211
|
s("input", {
|
|
3209
3212
|
id: L(d),
|
|
3210
3213
|
type: "file",
|
|
@@ -3217,8 +3220,8 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
3217
3220
|
"aria-describedby": t.instructions ? "instructions-" + L(d) : void 0,
|
|
3218
3221
|
"aria-errormessage": y.value ? "error-message-" + L(d) : void 0,
|
|
3219
3222
|
onChange: g
|
|
3220
|
-
}, null, 40,
|
|
3221
|
-
t.multiple && b.value.length > 0 ? (C(), o("ul",
|
|
3223
|
+
}, null, 40, Si),
|
|
3224
|
+
t.multiple && b.value.length > 0 ? (C(), o("ul", Ci, [(C(!0), o(e, null, D(b.value, (e) => (C(), o("li", {
|
|
3222
3225
|
key: e,
|
|
3223
3226
|
class: "g-file-input-pill"
|
|
3224
3227
|
}, [r[0] ||= s("svg", {
|
|
@@ -3234,7 +3237,7 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
3234
3237
|
}, null, 8, ["errors", "id"])
|
|
3235
3238
|
], 2));
|
|
3236
3239
|
}
|
|
3237
|
-
}), [["__scopeId", "data-v-
|
|
3240
|
+
}), [["__scopeId", "data-v-0c8c7f65"]]), Ti = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
3238
3241
|
__name: "GDateInput",
|
|
3239
3242
|
props: /* @__PURE__ */ m({
|
|
3240
3243
|
label: { default: void 0 },
|
|
@@ -3276,17 +3279,17 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
3276
3279
|
"form-key"
|
|
3277
3280
|
]));
|
|
3278
3281
|
}
|
|
3279
|
-
}), [["__scopeId", "data-v-f4ee29c8"]]),
|
|
3282
|
+
}), [["__scopeId", "data-v-f4ee29c8"]]), Ei = { class: "g-date-range-input" }, Di = {
|
|
3280
3283
|
key: 0,
|
|
3281
3284
|
class: "g-date-range-input__label"
|
|
3282
|
-
},
|
|
3285
|
+
}, Oi = {
|
|
3283
3286
|
key: 1,
|
|
3284
3287
|
class: "g-date-range-input__instructions"
|
|
3285
|
-
},
|
|
3288
|
+
}, ki = { class: "g-date-range-input__fields" }, Ai = {
|
|
3286
3289
|
key: 2,
|
|
3287
3290
|
class: "g-date-range-input__errors",
|
|
3288
3291
|
role: "alert"
|
|
3289
|
-
},
|
|
3292
|
+
}, ji = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
3290
3293
|
__name: "GDateRangeInput",
|
|
3291
3294
|
props: /* @__PURE__ */ m({
|
|
3292
3295
|
label: { default: void 0 },
|
|
@@ -3315,17 +3318,17 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
3315
3318
|
errors: F(n, "errors"),
|
|
3316
3319
|
formKey: n.formKey
|
|
3317
3320
|
});
|
|
3318
|
-
return
|
|
3321
|
+
return W([i, c], () => {
|
|
3319
3322
|
r.value = {
|
|
3320
3323
|
start: i.value,
|
|
3321
3324
|
end: c.value
|
|
3322
3325
|
};
|
|
3323
|
-
}),
|
|
3326
|
+
}), W(r, (e) => {
|
|
3324
3327
|
e.start !== i.value && (i.value = e.start), e.end !== c.value && (c.value = e.end);
|
|
3325
|
-
}, { deep: !0 }), (t, r) => (C(), o("div",
|
|
3326
|
-
n.label ? (C(), o("div",
|
|
3327
|
-
n.instructions ? (C(), o("div",
|
|
3328
|
-
s("div",
|
|
3328
|
+
}, { deep: !0 }), (t, r) => (C(), o("div", Ei, [
|
|
3329
|
+
n.label ? (C(), o("div", Di, N(n.label), 1)) : a("", !0),
|
|
3330
|
+
n.instructions ? (C(), o("div", Oi, N(n.instructions), 1)) : a("", !0),
|
|
3331
|
+
s("div", ki, [l(Ti, {
|
|
3329
3332
|
modelValue: i.value,
|
|
3330
3333
|
"onUpdate:modelValue": r[0] ||= (e) => i.value = e,
|
|
3331
3334
|
label: n.startLabel,
|
|
@@ -3335,7 +3338,7 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
3335
3338
|
"modelValue",
|
|
3336
3339
|
"label",
|
|
3337
3340
|
"disabled"
|
|
3338
|
-
]), l(
|
|
3341
|
+
]), l(Ti, {
|
|
3339
3342
|
modelValue: c.value,
|
|
3340
3343
|
"onUpdate:modelValue": r[1] ||= (e) => c.value = e,
|
|
3341
3344
|
label: n.endLabel,
|
|
@@ -3346,13 +3349,13 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
3346
3349
|
"label",
|
|
3347
3350
|
"disabled"
|
|
3348
3351
|
])]),
|
|
3349
|
-
L(u).length > 0 ? (C(), o("div",
|
|
3352
|
+
L(u).length > 0 ? (C(), o("div", Ai, [(C(!0), o(e, null, D(L(u), (e, t) => (C(), o("div", {
|
|
3350
3353
|
key: t,
|
|
3351
3354
|
class: "g-date-range-input__error"
|
|
3352
3355
|
}, N(e), 1))), 128))])) : a("", !0)
|
|
3353
3356
|
]));
|
|
3354
3357
|
}
|
|
3355
|
-
}), [["__scopeId", "data-v-210e354e"]]),
|
|
3358
|
+
}), [["__scopeId", "data-v-210e354e"]]), Mi = ["action", "method"], Ni = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
3356
3359
|
__name: "GForm",
|
|
3357
3360
|
props: /* @__PURE__ */ m({
|
|
3358
3361
|
action: { default: void 0 },
|
|
@@ -3364,10 +3367,10 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
3364
3367
|
}),
|
|
3365
3368
|
emits: /* @__PURE__ */ m(["submit"], ["update:modelValue"]),
|
|
3366
3369
|
setup(e, { emit: t }) {
|
|
3367
|
-
let n = e, r = B(e, "modelValue"), i = t, a = p("form", null), s = a ?? (
|
|
3368
|
-
a || w("form", s),
|
|
3370
|
+
let n = e, r = B(e, "modelValue"), i = t, a = p("form", null), s = a ?? (de() ? Ae(n.formKey) : Oe());
|
|
3371
|
+
a || w("form", s), W(() => s.values.value, (e) => {
|
|
3369
3372
|
r.value = { ...e };
|
|
3370
|
-
}, { deep: !0 }),
|
|
3373
|
+
}, { deep: !0 }), W(() => r.value, (e) => {
|
|
3371
3374
|
e && Object.entries(e).forEach(([e, t]) => {
|
|
3372
3375
|
let n = s.fields[e];
|
|
3373
3376
|
n && n.value.value !== t && (n.value.value = t);
|
|
@@ -3392,9 +3395,9 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
3392
3395
|
hasErrors: L(s).hasErrors.value,
|
|
3393
3396
|
values: L(s).values.value,
|
|
3394
3397
|
errors: L(s).errors.value
|
|
3395
|
-
}, void 0, !0)], 40,
|
|
3398
|
+
}, void 0, !0)], 40, Mi));
|
|
3396
3399
|
}
|
|
3397
|
-
}), [["__scopeId", "data-v-3f5a6392"]]),
|
|
3400
|
+
}), [["__scopeId", "data-v-3f5a6392"]]), Pi = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
3398
3401
|
__name: "GSubmitButton",
|
|
3399
3402
|
props: {
|
|
3400
3403
|
disabled: {
|
|
@@ -3406,32 +3409,32 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
3406
3409
|
formKey: { default: "default" }
|
|
3407
3410
|
},
|
|
3408
3411
|
setup(e) {
|
|
3409
|
-
let t = e, n = R(), a = typeof n["form-key"] == "string" ? n["form-key"] : void 0, o = t.formKey || a || "default", l = p("form", null) ?? (
|
|
3412
|
+
let t = e, n = R(), a = typeof n["form-key"] == "string" ? n["form-key"] : void 0, o = t.formKey || a || "default", l = p("form", null) ?? (de() ? Ae(o) : null), u = r(() => t.disabled || (l?.isSubmitting.value ?? !1)), d = r(() => l?.isSubmitting.value ?? !1);
|
|
3410
3413
|
return (e, n) => (C(), i(Z, {
|
|
3411
3414
|
type: "submit",
|
|
3412
3415
|
disabled: u.value,
|
|
3413
3416
|
variant: t.variant,
|
|
3414
3417
|
class: "g-submit-button"
|
|
3415
3418
|
}, {
|
|
3416
|
-
default:
|
|
3419
|
+
default: K(() => [q(s("span", null, N(t.loadingText), 513), [[ee, d.value]]), q(s("span", null, [O(e.$slots, "default", {}, () => [n[0] ||= c("Submit", -1)], !0)], 512), [[ee, !d.value]])]),
|
|
3417
3420
|
_: 3
|
|
3418
3421
|
}, 8, ["disabled", "variant"]));
|
|
3419
3422
|
}
|
|
3420
|
-
}), [["__scopeId", "data-v-053621d8"]]),
|
|
3423
|
+
}), [["__scopeId", "data-v-053621d8"]]), Fi = {
|
|
3421
3424
|
key: 0,
|
|
3422
3425
|
class: "g-checkbox-group__legend"
|
|
3423
|
-
},
|
|
3426
|
+
}, Ii = {
|
|
3424
3427
|
key: 0,
|
|
3425
3428
|
class: "g-checkbox-group__required",
|
|
3426
3429
|
"aria-hidden": "true"
|
|
3427
|
-
},
|
|
3430
|
+
}, Li = {
|
|
3428
3431
|
key: 1,
|
|
3429
3432
|
class: "g-checkbox-group__label"
|
|
3430
|
-
},
|
|
3433
|
+
}, Ri = {
|
|
3431
3434
|
key: 0,
|
|
3432
3435
|
class: "g-checkbox-group__required",
|
|
3433
3436
|
"aria-hidden": "true"
|
|
3434
|
-
},
|
|
3437
|
+
}, zi = ["id"], Bi = { class: "g-checkbox-group__options" }, Vi = ["for"], Hi = [
|
|
3435
3438
|
"id",
|
|
3436
3439
|
"type",
|
|
3437
3440
|
"name",
|
|
@@ -3439,7 +3442,7 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
3439
3442
|
"checked",
|
|
3440
3443
|
"disabled",
|
|
3441
3444
|
"onChange"
|
|
3442
|
-
],
|
|
3445
|
+
], Ui = { class: "g-checkbox-group__label-text" }, Wi = ["id"], Gi = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
3443
3446
|
__name: "GCheckboxGroup",
|
|
3444
3447
|
props: /* @__PURE__ */ m({
|
|
3445
3448
|
label: { default: void 0 },
|
|
@@ -3500,14 +3503,14 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
3500
3503
|
};
|
|
3501
3504
|
}
|
|
3502
3505
|
return (n, r) => (C(), i(A(w.value ? "fieldset" : "div"), h({ class: ["g-checkbox-group", { "g-checkbox-group--error": L(m) }] }, T.value), {
|
|
3503
|
-
default:
|
|
3504
|
-
w.value && t.label ? (C(), o("legend",
|
|
3506
|
+
default: K(() => [
|
|
3507
|
+
w.value && t.label ? (C(), o("legend", Fi, [c(N(t.label), 1), t.required ? (C(), o("span", Ii, "\xA0*")) : a("", !0)])) : !w.value && t.label ? (C(), o("div", Li, [c(N(t.label), 1), t.required ? (C(), o("span", Ri, "\xA0*")) : a("", !0)])) : a("", !0),
|
|
3505
3508
|
t.instructions ? (C(), o("div", {
|
|
3506
3509
|
key: 2,
|
|
3507
3510
|
id: S.value,
|
|
3508
3511
|
class: "g-checkbox-group__instructions"
|
|
3509
|
-
}, N(t.instructions), 9,
|
|
3510
|
-
s("div",
|
|
3512
|
+
}, N(t.instructions), 9, zi)) : a("", !0),
|
|
3513
|
+
s("div", Bi, [(C(!0), o(e, null, D(t.options, (e, n) => (C(), o("div", {
|
|
3511
3514
|
key: e.value,
|
|
3512
3515
|
class: _(["g-checkbox-group__option-wrapper", { "g-checkbox-group__option-wrapper--disabled": e.disabled }])
|
|
3513
3516
|
}, [s("label", {
|
|
@@ -3521,11 +3524,11 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
3521
3524
|
checked: v(e.value),
|
|
3522
3525
|
disabled: e.disabled,
|
|
3523
3526
|
class: "g-checkbox-group__input"
|
|
3524
|
-
}, { ref_for: !0 }, k(e, n), { onChange: (t) => y(e.value, t.target.checked) }), null, 16,
|
|
3527
|
+
}, { ref_for: !0 }, k(e, n), { onChange: (t) => y(e.value, t.target.checked) }), null, 16, Hi), s("span", Ui, N(e.label), 1)], 10, Vi), e.hint ? (C(), o("div", {
|
|
3525
3528
|
key: 0,
|
|
3526
3529
|
id: E(n),
|
|
3527
3530
|
class: "g-checkbox-group__hint"
|
|
3528
|
-
}, N(e.hint), 9,
|
|
3531
|
+
}, N(e.hint), 9, Wi)) : a("", !0)], 2))), 128))]),
|
|
3529
3532
|
l(Me, {
|
|
3530
3533
|
errors: L(p),
|
|
3531
3534
|
id: x.value
|
|
@@ -3534,11 +3537,11 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
3534
3537
|
_: 1
|
|
3535
3538
|
}, 16, ["class"]));
|
|
3536
3539
|
}
|
|
3537
|
-
}), [["__scopeId", "data-v-
|
|
3540
|
+
}), [["__scopeId", "data-v-4ddc0ac8"]]), Ki = ["for"], qi = {
|
|
3538
3541
|
key: 0,
|
|
3539
3542
|
class: "g-textarea-required",
|
|
3540
3543
|
"aria-hidden": "true"
|
|
3541
|
-
},
|
|
3544
|
+
}, Ji = ["id"], Yi = [
|
|
3542
3545
|
"value",
|
|
3543
3546
|
"placeholder",
|
|
3544
3547
|
"disabled",
|
|
@@ -3546,11 +3549,11 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
3546
3549
|
"rows",
|
|
3547
3550
|
"maxlength",
|
|
3548
3551
|
"aria-invalid"
|
|
3549
|
-
],
|
|
3552
|
+
], Xi = {
|
|
3550
3553
|
key: 2,
|
|
3551
3554
|
class: "g-textarea-char-count",
|
|
3552
3555
|
"aria-live": "polite"
|
|
3553
|
-
},
|
|
3556
|
+
}, Zi = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
3554
3557
|
inheritAttrs: !1,
|
|
3555
3558
|
__name: "GTextarea",
|
|
3556
3559
|
props: /* @__PURE__ */ m({
|
|
@@ -3584,7 +3587,7 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
3584
3587
|
}),
|
|
3585
3588
|
emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
|
|
3586
3589
|
setup(e, { emit: t }) {
|
|
3587
|
-
let n = e, i = B(e, "modelValue"), u = z(), { attrs: d, isCustomElement: f, forwardedAttrs: p } =
|
|
3590
|
+
let n = e, i = B(e, "modelValue"), u = z(), { attrs: d, isCustomElement: f, forwardedAttrs: p } = fe({ omitInCustomElement: ["id"] }), m = r(() => f ? u : d.id || u), { displayErrors: v, hasErrors: y } = $({
|
|
3588
3591
|
name: n.name,
|
|
3589
3592
|
value: i,
|
|
3590
3593
|
errors: F(n, "errors"),
|
|
@@ -3594,7 +3597,7 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
3594
3597
|
let e = x.value;
|
|
3595
3598
|
e && (e.style.height = "auto", e.style.height = `${e.scrollHeight}px`);
|
|
3596
3599
|
}
|
|
3597
|
-
|
|
3600
|
+
W(() => i.value, () => {
|
|
3598
3601
|
n.autoGrow && g(S);
|
|
3599
3602
|
});
|
|
3600
3603
|
function w(e) {
|
|
@@ -3623,12 +3626,12 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
3623
3626
|
key: 0,
|
|
3624
3627
|
for: m.value,
|
|
3625
3628
|
class: "g-textarea-label"
|
|
3626
|
-
}, [c(N(n.label), 1), n.required ? (C(), o("span",
|
|
3629
|
+
}, [c(N(n.label), 1), n.required ? (C(), o("span", qi, " *")) : a("", !0)], 8, Ki)) : a("", !0),
|
|
3627
3630
|
t.$slots.instructions || e.instructions ? (C(), o("div", {
|
|
3628
3631
|
key: 1,
|
|
3629
3632
|
id: "instructions-" + L(u),
|
|
3630
3633
|
class: "g-textarea-instructions"
|
|
3631
|
-
}, [O(t.$slots, "instructions", {}, () => [c(N(e.instructions), 1)], !0)], 8,
|
|
3634
|
+
}, [O(t.$slots, "instructions", {}, () => [c(N(e.instructions), 1)], !0)], 8, Ji)) : a("", !0),
|
|
3632
3635
|
s("textarea", h({
|
|
3633
3636
|
ref: "textareaEl",
|
|
3634
3637
|
value: i.value ?? "",
|
|
@@ -3649,29 +3652,284 @@ var nr = { class: "g-table-outer-wrap" }, rr = {
|
|
|
3649
3652
|
onInput: T,
|
|
3650
3653
|
onBlur: E,
|
|
3651
3654
|
onPaste: D
|
|
3652
|
-
}), null, 16,
|
|
3653
|
-
n.maxlength === void 0 ? a("", !0) : (C(), o("div",
|
|
3655
|
+
}), null, 16, Yi),
|
|
3656
|
+
n.maxlength === void 0 ? a("", !0) : (C(), o("div", Xi, N((i.value ?? "").length) + " / " + N(n.maxlength), 1)),
|
|
3654
3657
|
l(Me, {
|
|
3655
3658
|
errors: L(v),
|
|
3656
3659
|
id: "error-message-" + L(u)
|
|
3657
3660
|
}, null, 8, ["errors", "id"])
|
|
3658
3661
|
], 2));
|
|
3659
3662
|
}
|
|
3660
|
-
}), [["__scopeId", "data-v-
|
|
3663
|
+
}), [["__scopeId", "data-v-29e2f23f"]]), Qi = ["id", "for"], $i = ["id"], ea = ["aria-labelledby"], ta = { class: "g-multiselect-chip-label" }, na = [
|
|
3664
|
+
"aria-label",
|
|
3665
|
+
"disabled",
|
|
3666
|
+
"onClick"
|
|
3667
|
+
], ra = [
|
|
3668
|
+
"id",
|
|
3669
|
+
"value",
|
|
3670
|
+
"placeholder",
|
|
3671
|
+
"disabled",
|
|
3672
|
+
"aria-expanded",
|
|
3673
|
+
"aria-controls",
|
|
3674
|
+
"aria-activedescendant",
|
|
3675
|
+
"aria-describedby"
|
|
3676
|
+
], ia = ["id"], aa = [
|
|
3677
|
+
"id",
|
|
3678
|
+
"aria-selected",
|
|
3679
|
+
"onClick"
|
|
3680
|
+
], oa = {
|
|
3681
|
+
class: "g-multiselect-option-check",
|
|
3682
|
+
"aria-hidden": "true"
|
|
3683
|
+
}, sa = {
|
|
3684
|
+
key: 0,
|
|
3685
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3686
|
+
viewBox: "0 0 640 640",
|
|
3687
|
+
width: "1.25em"
|
|
3688
|
+
}, ca = {
|
|
3689
|
+
key: 1,
|
|
3690
|
+
"aria-live": "polite",
|
|
3691
|
+
class: "g-multiselect-option g-multiselect-no-results"
|
|
3692
|
+
}, la = /* @__PURE__ */ Q(/* @__PURE__ */ u({
|
|
3693
|
+
__name: "GMultiSelect",
|
|
3694
|
+
props: /* @__PURE__ */ m({
|
|
3695
|
+
options: {},
|
|
3696
|
+
label: {},
|
|
3697
|
+
hiddenLabel: {
|
|
3698
|
+
type: Boolean,
|
|
3699
|
+
default: !1
|
|
3700
|
+
},
|
|
3701
|
+
placeholder: {},
|
|
3702
|
+
disabled: {
|
|
3703
|
+
type: Boolean,
|
|
3704
|
+
default: !1
|
|
3705
|
+
},
|
|
3706
|
+
name: {},
|
|
3707
|
+
errors: { default: () => [] },
|
|
3708
|
+
instructions: {},
|
|
3709
|
+
formKey: {}
|
|
3710
|
+
}, {
|
|
3711
|
+
modelValue: { default: () => [] },
|
|
3712
|
+
modelModifiers: {}
|
|
3713
|
+
}),
|
|
3714
|
+
emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
|
|
3715
|
+
setup(t, { emit: n }) {
|
|
3716
|
+
let i = t, u = n, d = B(t, "modelValue"), f = z(), p = E(null), m = E(null), v = E(null), y = E(!1), b = E(0), x = E(""), S = E(!1), { displayErrors: w, hasErrors: T } = $({
|
|
3717
|
+
name: i.name,
|
|
3718
|
+
value: d,
|
|
3719
|
+
errors: F(i, "errors"),
|
|
3720
|
+
formKey: i.formKey
|
|
3721
|
+
}), { menuPlacement: O, menuStyle: k, isTop: A, scrollOptionIntoView: j } = jt({
|
|
3722
|
+
open: y,
|
|
3723
|
+
anchorRef: m,
|
|
3724
|
+
listboxRef: v,
|
|
3725
|
+
baseId: f,
|
|
3726
|
+
activeIndex: b
|
|
3727
|
+
}), M = r(() => At(i.options)), P = r(() => {
|
|
3728
|
+
if (!x.value) return M.value;
|
|
3729
|
+
let e = x.value.toLowerCase();
|
|
3730
|
+
return M.value.filter((t) => t.label.toLowerCase().includes(e));
|
|
3731
|
+
});
|
|
3732
|
+
function I(e) {
|
|
3733
|
+
return d.value.includes(e);
|
|
3734
|
+
}
|
|
3735
|
+
function R(e) {
|
|
3736
|
+
let t = M.value.find((t) => t.value === e);
|
|
3737
|
+
return t ? t.label : String(e);
|
|
3738
|
+
}
|
|
3739
|
+
function V() {
|
|
3740
|
+
i.disabled || (y.value = !0, b.value = 0);
|
|
3741
|
+
}
|
|
3742
|
+
function H() {
|
|
3743
|
+
y.value = !1, x.value = "";
|
|
3744
|
+
}
|
|
3745
|
+
function U(e) {
|
|
3746
|
+
let t = P.value[e];
|
|
3747
|
+
if (!t) return;
|
|
3748
|
+
let n = d.value, r = I(t.value) ? n.filter((e) => e !== t.value) : [...n, t.value];
|
|
3749
|
+
d.value = r, u("change", r), g(() => p.value?.focus());
|
|
3750
|
+
}
|
|
3751
|
+
function W(e) {
|
|
3752
|
+
if (i.disabled) return;
|
|
3753
|
+
let t = d.value.filter((t) => t !== e);
|
|
3754
|
+
d.value = t, u("change", t);
|
|
3755
|
+
}
|
|
3756
|
+
function G() {
|
|
3757
|
+
i.disabled || (p.value?.focus(), y.value || V());
|
|
3758
|
+
}
|
|
3759
|
+
function K(e) {
|
|
3760
|
+
x.value = e.target.value, b.value = 0, y.value || V();
|
|
3761
|
+
}
|
|
3762
|
+
function Y() {
|
|
3763
|
+
i.disabled || y.value || V();
|
|
3764
|
+
}
|
|
3765
|
+
function te(e) {
|
|
3766
|
+
if (S.value) {
|
|
3767
|
+
S.value = !1;
|
|
3768
|
+
return;
|
|
3769
|
+
}
|
|
3770
|
+
let t = e.relatedTarget;
|
|
3771
|
+
t && v.value?.contains(t) || t && m.value?.contains(t) || H();
|
|
3772
|
+
}
|
|
3773
|
+
function X(e) {
|
|
3774
|
+
e.preventDefault();
|
|
3775
|
+
}
|
|
3776
|
+
function ne() {
|
|
3777
|
+
S.value = !0;
|
|
3778
|
+
}
|
|
3779
|
+
function re(e) {
|
|
3780
|
+
if (i.disabled) return;
|
|
3781
|
+
let t = P.value.length - 1;
|
|
3782
|
+
switch (e.key) {
|
|
3783
|
+
case "ArrowDown":
|
|
3784
|
+
e.preventDefault(), y.value ? (b.value = Math.min(t, b.value + 1), j()) : V();
|
|
3785
|
+
break;
|
|
3786
|
+
case "ArrowUp":
|
|
3787
|
+
e.preventDefault(), y.value ? (b.value = Math.max(0, b.value - 1), j()) : V();
|
|
3788
|
+
break;
|
|
3789
|
+
case "Home":
|
|
3790
|
+
e.preventDefault(), b.value = 0, j();
|
|
3791
|
+
break;
|
|
3792
|
+
case "End":
|
|
3793
|
+
e.preventDefault(), b.value = t, j();
|
|
3794
|
+
break;
|
|
3795
|
+
case "Enter":
|
|
3796
|
+
e.preventDefault(), y.value && P.value.length > 0 ? U(b.value) : y.value || V();
|
|
3797
|
+
break;
|
|
3798
|
+
case " ":
|
|
3799
|
+
y.value && !x.value && (e.preventDefault(), P.value.length > 0 && U(b.value));
|
|
3800
|
+
break;
|
|
3801
|
+
case "Escape":
|
|
3802
|
+
A.value && (e.preventDefault(), setTimeout(() => H(), 0));
|
|
3803
|
+
break;
|
|
3804
|
+
case "Backspace":
|
|
3805
|
+
!x.value && d.value.length > 0 && W(d.value[d.value.length - 1]);
|
|
3806
|
+
break;
|
|
3807
|
+
}
|
|
3808
|
+
}
|
|
3809
|
+
let ie = r(() => `${f}-input`), ae = r(() => `${f}-label`), oe = r(() => `${f}-instructions`), se = r(() => `error-message-${f}`), ce = r(() => {
|
|
3810
|
+
let e = [];
|
|
3811
|
+
return i.instructions && e.push(oe.value), T.value && e.push(se.value), e.length > 0 ? e.join(" ") : void 0;
|
|
3812
|
+
});
|
|
3813
|
+
return (n, r) => (C(), o("div", { class: _(["g-multiselect-root", {
|
|
3814
|
+
"g-multiselect-open": y.value,
|
|
3815
|
+
"g-multiselect-has-error": L(T)
|
|
3816
|
+
}]) }, [
|
|
3817
|
+
t.hiddenLabel ? a("", !0) : (C(), o("label", {
|
|
3818
|
+
key: 0,
|
|
3819
|
+
id: ae.value,
|
|
3820
|
+
for: ie.value,
|
|
3821
|
+
class: "g-multiselect-label"
|
|
3822
|
+
}, N(t.label), 9, Qi)),
|
|
3823
|
+
t.instructions ? (C(), o("div", {
|
|
3824
|
+
key: 1,
|
|
3825
|
+
id: oe.value,
|
|
3826
|
+
class: "g-multiselect-instructions"
|
|
3827
|
+
}, N(t.instructions), 9, $i)) : a("", !0),
|
|
3828
|
+
s("div", {
|
|
3829
|
+
ref_key: "controlRef",
|
|
3830
|
+
ref: m,
|
|
3831
|
+
class: _(["g-multiselect-control", { "g-multiselect-control--disabled": t.disabled }]),
|
|
3832
|
+
onClick: G
|
|
3833
|
+
}, [
|
|
3834
|
+
s("ul", {
|
|
3835
|
+
class: "g-multiselect-chips",
|
|
3836
|
+
"aria-labelledby": ae.value
|
|
3837
|
+
}, [(C(!0), o(e, null, D(d.value, (e) => (C(), o("li", {
|
|
3838
|
+
key: e,
|
|
3839
|
+
class: "g-multiselect-chip"
|
|
3840
|
+
}, [s("span", ta, N(R(e)), 1), s("button", {
|
|
3841
|
+
type: "button",
|
|
3842
|
+
class: "g-multiselect-chip-remove",
|
|
3843
|
+
"aria-label": `Remove ${R(e)}`,
|
|
3844
|
+
disabled: t.disabled,
|
|
3845
|
+
onMousedown: ne,
|
|
3846
|
+
onClick: J((t) => W(e), ["stop"])
|
|
3847
|
+
}, [...r[0] ||= [s("svg", {
|
|
3848
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3849
|
+
viewBox: "0 0 51.26 51.26",
|
|
3850
|
+
width: "1em",
|
|
3851
|
+
role: "none presentation"
|
|
3852
|
+
}, [s("path", {
|
|
3853
|
+
fill: "currentColor",
|
|
3854
|
+
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, na)]))), 128))], 8, ea),
|
|
3856
|
+
s("input", h({
|
|
3857
|
+
ref_key: "inputRef",
|
|
3858
|
+
ref: p,
|
|
3859
|
+
type: "text",
|
|
3860
|
+
role: "combobox",
|
|
3861
|
+
class: "g-multiselect-input",
|
|
3862
|
+
id: ie.value,
|
|
3863
|
+
value: x.value,
|
|
3864
|
+
placeholder: d.value.length === 0 ? t.placeholder : void 0,
|
|
3865
|
+
disabled: t.disabled,
|
|
3866
|
+
autocomplete: "off",
|
|
3867
|
+
"aria-autocomplete": "list",
|
|
3868
|
+
"aria-expanded": y.value ? "true" : "false",
|
|
3869
|
+
"aria-haspopup": "listbox",
|
|
3870
|
+
"aria-controls": L(f) + "-listbox",
|
|
3871
|
+
"aria-activedescendant": y.value && P.value.length > 0 ? L(f) + "-option-" + b.value : void 0
|
|
3872
|
+
}, t.hiddenLabel ? { "aria-label": t.label } : void 0, {
|
|
3873
|
+
"aria-describedby": ce.value,
|
|
3874
|
+
onInput: K,
|
|
3875
|
+
onKeydown: re,
|
|
3876
|
+
onFocus: Y,
|
|
3877
|
+
onBlur: te
|
|
3878
|
+
}), null, 16, ra),
|
|
3879
|
+
r[2] ||= s("svg", {
|
|
3880
|
+
class: "g-multiselect-caret",
|
|
3881
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3882
|
+
viewBox: "0 0 51.26 51.26",
|
|
3883
|
+
"aria-hidden": "true",
|
|
3884
|
+
width: "1.125em"
|
|
3885
|
+
}, [s("path", {
|
|
3886
|
+
fill: "currentColor",
|
|
3887
|
+
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"
|
|
3888
|
+
})], -1),
|
|
3889
|
+
q(s("div", h({
|
|
3890
|
+
ref_key: "listboxRef",
|
|
3891
|
+
ref: v,
|
|
3892
|
+
id: L(f) + "-listbox",
|
|
3893
|
+
role: "listbox",
|
|
3894
|
+
"aria-multiselectable": "true"
|
|
3895
|
+
}, t.hiddenLabel ? { "aria-label": t.label } : { "aria-labelledby": ae.value }, {
|
|
3896
|
+
class: ["g-multiselect-listbox", { "g-multiselect-listbox--above": L(O) === "above" }],
|
|
3897
|
+
style: L(k),
|
|
3898
|
+
tabindex: "-1"
|
|
3899
|
+
}), [P.value.length > 0 ? (C(!0), o(e, { key: 0 }, D(P.value, (e, t) => (C(), o("div", {
|
|
3900
|
+
key: e.value,
|
|
3901
|
+
id: L(f) + "-option-" + t,
|
|
3902
|
+
role: "option",
|
|
3903
|
+
class: _(["g-multiselect-option", {
|
|
3904
|
+
"g-multiselect-option--active": t === b.value,
|
|
3905
|
+
"g-multiselect-option--selected": I(e.value)
|
|
3906
|
+
}]),
|
|
3907
|
+
"aria-selected": I(e.value) ? "true" : "false",
|
|
3908
|
+
onMousedown: X,
|
|
3909
|
+
onClick: (e) => U(t)
|
|
3910
|
+
}, [s("span", oa, [I(e.value) ? (C(), o("svg", sa, [...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, aa))), 128)) : (C(), o("div", ca, " No results found. "))], 16, ia), [[ee, y.value]])
|
|
3911
|
+
], 2),
|
|
3912
|
+
l(Me, {
|
|
3913
|
+
errors: L(w),
|
|
3914
|
+
id: se.value
|
|
3915
|
+
}, null, 8, ["errors", "id"])
|
|
3916
|
+
], 2));
|
|
3917
|
+
}
|
|
3918
|
+
}), [["__scopeId", "data-v-b5f1ff3e"]]);
|
|
3661
3919
|
//#endregion
|
|
3662
3920
|
//#region src/compose/useActiveLink.ts
|
|
3663
|
-
function
|
|
3921
|
+
function ua(e, t, n) {
|
|
3664
3922
|
let r = [
|
|
3665
3923
|
0,
|
|
3666
3924
|
.25,
|
|
3667
3925
|
.5,
|
|
3668
3926
|
.75,
|
|
3669
3927
|
1
|
|
3670
|
-
], i = `${-t}px 0px 0px 0px`, a = /* @__PURE__ */ new Map(), o = E(Array.from(
|
|
3671
|
-
|
|
3672
|
-
o.value = Array.from(
|
|
3928
|
+
], i = `${-t}px 0px 0px 0px`, a = /* @__PURE__ */ new Map(), o = E(Array.from(ne(e)?.children || []));
|
|
3929
|
+
ce(e, () => {
|
|
3930
|
+
o.value = Array.from(ne(e)?.children || []);
|
|
3673
3931
|
}, { childList: !0 });
|
|
3674
|
-
let { stop: s } =
|
|
3932
|
+
let { stop: s } = oe(o, (e) => {
|
|
3675
3933
|
let t = o.value[o.value.length - 1];
|
|
3676
3934
|
for (let n of e) a.set(n.target, n.isIntersecting ? Math.ceil(100 * n.intersectionRatio) / 100 : 0), n.target === t && n.intersectionRatio === 1 && a.set(n.target, Infinity);
|
|
3677
3935
|
let r = null, i = 0;
|
|
@@ -3690,8 +3948,8 @@ function Xi(e, t, n) {
|
|
|
3690
3948
|
}
|
|
3691
3949
|
//#endregion
|
|
3692
3950
|
//#region src/compose/useSidebar.ts
|
|
3693
|
-
function
|
|
3694
|
-
let t = z(), n = E(!1), r =
|
|
3951
|
+
function da(e = "(max-width: 800px)") {
|
|
3952
|
+
let t = z(), n = E(!1), r = se(e, { ssrWidth: 1e3 });
|
|
3695
3953
|
function i(e) {
|
|
3696
3954
|
if (!r.value || !n.value) return;
|
|
3697
3955
|
let i = e.target, a = document.getElementById(`${t}-sidebar`);
|
|
@@ -3707,7 +3965,7 @@ function Zi(e = "(max-width: 800px)") {
|
|
|
3707
3965
|
}, 5));
|
|
3708
3966
|
}
|
|
3709
3967
|
return S(() => {
|
|
3710
|
-
|
|
3968
|
+
W(r, (e) => {
|
|
3711
3969
|
e ? (document.addEventListener("mousedown", i), document.addEventListener("focusin", a)) : (document.removeEventListener("mousedown", i), document.removeEventListener("focusin", a));
|
|
3712
3970
|
}, { immediate: !0 });
|
|
3713
3971
|
}), x(() => {
|
|
@@ -3721,8 +3979,8 @@ function Zi(e = "(max-width: 800px)") {
|
|
|
3721
3979
|
}
|
|
3722
3980
|
//#endregion
|
|
3723
3981
|
//#region src/compose/useTableChanges.ts
|
|
3724
|
-
function
|
|
3725
|
-
let e = j(/* @__PURE__ */ new Map()), t =
|
|
3982
|
+
function fa() {
|
|
3983
|
+
let e = j(/* @__PURE__ */ new Map()), t = Y(), n = (n) => {
|
|
3726
3984
|
let r = n.column.key, i = n.row.key, a = n.value, o = n.previousValue;
|
|
3727
3985
|
e.has(i) || e.set(i, j(/* @__PURE__ */ new Map()));
|
|
3728
3986
|
let s = e.get(i), c = s.get(r), l = c ? c.previousValue : o, u = c?.error;
|
|
@@ -3824,6 +4082,6 @@ function Qi() {
|
|
|
3824
4082
|
};
|
|
3825
4083
|
}
|
|
3826
4084
|
//#endregion
|
|
3827
|
-
export {
|
|
4085
|
+
export { Ae as $, Zn as A, Bt as B, Mr as C, $n as D, tr as E, pn as F, it as G, Ct as H, ln as I, Qe as J, et as K, sn as L, xn as M, gn as N, nr as O, mn as P, $ as Q, rn as R, Vr as S, Qn as T, vt as U, kt as V, ft as W, qe as X, Ke as Y, Re as Z, ni as _, Zi as a, Yr as b, Ni as c, wi as d, Oe as et, _i as f, oi as g, ui as h, la as i, In as j, rr as k, ji as l, hi as m, da as n, Z as nt, Gi as o, gi as p, $e as q, ua as r, Pi as s, fa as t, De as tt, Ti as u, ei as v, er as w, qr as x, Xr as y, Xt as z };
|
|
3828
4086
|
|
|
3829
|
-
//# sourceMappingURL=grad-vue-
|
|
4087
|
+
//# sourceMappingURL=grad-vue-D4cwVtpD.js.map
|