@illinois-grad/grad-vue 3.0.11 → 3.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/GClientOnly.vue.d.ts +15 -0
- package/dist/components/GCurrencyInput.vue.d.ts +2 -2
- package/dist/components/GDateInput.vue.d.ts +2 -2
- package/dist/components/GDateRangeInput.vue.d.ts +2 -2
- package/dist/components/GEmailInput.vue.d.ts +2 -2
- package/dist/components/GTextInput.vue.d.ts +2 -2
- package/dist/components/GTextarea.vue.d.ts +2 -2
- package/dist/components/table/TableColumn.d.ts +8 -1
- package/dist/{grad-vue-sy7R1DvD.js → grad-vue-BkZSETi2.js} +505 -465
- package/dist/grad-vue-BkZSETi2.js.map +1 -0
- package/dist/grad-vue-elements.css +28 -28
- package/dist/grad-vue-elements.js +854 -784
- package/dist/grad-vue-elements.js.map +1 -1
- package/dist/grad-vue.css +1 -1
- package/dist/grad-vue.js +1 -1
- package/dist/plugin.js +1 -1
- package/package.json +1 -1
- package/dist/grad-vue-sy7R1DvD.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, onUnmounted as C, onUpdated as w, openBlock as T, provide as E, reactive as D, ref as O, renderList as k, renderSlot as A, resolveDynamicComponent as j, shallowReactive as M, shallowRef as N, toDisplayString as P, toRaw as F, toRef as I, toValue as L, unref as R, useAttrs as z, useId as B, useModel as V, useSlots as H, useTemplateRef as U, vModelCheckbox as W,
|
|
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, onUnmounted as C, onUpdated as w, openBlock as T, provide as E, reactive as D, ref as O, renderList as k, renderSlot as A, resolveDynamicComponent as j, shallowReactive as M, shallowRef as N, toDisplayString as P, toRaw as F, toRef as I, toValue as L, unref as R, useAttrs as z, useId as B, useModel as V, useSlots as H, useTemplateRef as U, vModelCheckbox as W, vModelText as G, vShow as ee, watch as K, watchEffect as q, withCtx as J, withDirectives as Y, withModifiers as te } from "vue";
|
|
2
|
+
import { createEventHook as X, toArray as ne, tryOnScopeDispose as re, unrefElement as ie, useClipboard as ae, useDebounceFn as oe, useFocusWithin as se, useIntersectionObserver as ce, useMediaQuery as le, useMutationObserver as ue, useResizeObserver as de, useSessionStorage as fe } from "@vueuse/core";
|
|
3
|
+
import { createFocusTrap as pe } from "focus-trap";
|
|
4
4
|
//#region src/compose/useCustomElementAttrs.ts
|
|
5
|
-
function
|
|
5
|
+
function Z() {
|
|
6
6
|
return globalThis.__GRAD_VUE_IS_WEB_COMPONENTS_BUILD__ === !0;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function me(e = {}) {
|
|
9
9
|
let t = z(), n = globalThis.__GRAD_VUE_IS_WEB_COMPONENTS_BUILD__ === !0, i = e.omitInCustomElement ?? [];
|
|
10
10
|
return {
|
|
11
11
|
attrs: t,
|
|
@@ -20,7 +20,7 @@ function pe(e = {}) {
|
|
|
20
20
|
}
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region src/components/GButton.vue?vue&type=script&setup=true&lang.ts
|
|
23
|
-
var
|
|
23
|
+
var he = { class: "g-btn--icon" }, ge = { class: "g-btn--label" }, Q = /* @__PURE__ */ u({
|
|
24
24
|
inheritAttrs: !1,
|
|
25
25
|
__name: "GButton",
|
|
26
26
|
props: {
|
|
@@ -51,7 +51,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
51
51
|
"mouseleave"
|
|
52
52
|
],
|
|
53
53
|
setup(t) {
|
|
54
|
-
let n = t, a = H(), { forwardedAttrs: c } =
|
|
54
|
+
let n = t, a = H(), { forwardedAttrs: c } = me({ omitInCustomElement: ["id"] }), l = r(() => [
|
|
55
55
|
"g-btn",
|
|
56
56
|
`g-btn--${n.size}`,
|
|
57
57
|
`g-btn--${n.theme}`,
|
|
@@ -79,11 +79,11 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__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: J(() => [t.icon || a.icon ? (T(), o(e, { key: 0 }, [s("span",
|
|
82
|
+
default: J(() => [t.icon || a.icon ? (T(), o(e, { key: 0 }, [s("span", he, [a.icon ? A(r.$slots, "icon", { key: 0 }) : (T(), o("span", {
|
|
83
83
|
key: 1,
|
|
84
84
|
class: _(t.icon + " g-btn--icon-span"),
|
|
85
85
|
"aria-hidden": "true"
|
|
86
|
-
}, null, 2))]), s("span",
|
|
86
|
+
}, null, 2))]), s("span", ge, [A(r.$slots, "default")])], 64)) : A(r.$slots, "default", { key: 1 })]),
|
|
87
87
|
_: 3
|
|
88
88
|
}, 16, [
|
|
89
89
|
"to",
|
|
@@ -91,13 +91,13 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
91
91
|
"type"
|
|
92
92
|
]));
|
|
93
93
|
}
|
|
94
|
-
}),
|
|
94
|
+
}), _e = { class: "g-tree-menu__divider" }, ve = {
|
|
95
95
|
key: 0,
|
|
96
96
|
class: "g-tree-menu__divider-line"
|
|
97
|
-
},
|
|
97
|
+
}, ye = {
|
|
98
98
|
key: 1,
|
|
99
99
|
class: "g-tree-menu__expand-all-wrapper"
|
|
100
|
-
},
|
|
100
|
+
}, be = { class: "g-tree-menu__content" }, xe = /* @__PURE__ */ u({
|
|
101
101
|
__name: "GTreeMenu",
|
|
102
102
|
props: {
|
|
103
103
|
heading: {},
|
|
@@ -116,7 +116,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
116
116
|
},
|
|
117
117
|
setup(e) {
|
|
118
118
|
let t = e, n = B();
|
|
119
|
-
E("g-tree-menu-list-type", t.listType), E("g-tree-menu-expanded-storage", t.storageKey ?
|
|
119
|
+
E("g-tree-menu-list-type", t.listType), E("g-tree-menu-expanded-storage", t.storageKey ? fe(t.storageKey, {}) : null);
|
|
120
120
|
let l = D(/* @__PURE__ */ new Map());
|
|
121
121
|
E("g-tree-menu-expandable-items", l);
|
|
122
122
|
let u = O({
|
|
@@ -207,7 +207,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
207
207
|
default: J(() => [c(P(e.heading), 1)]),
|
|
208
208
|
_: 1
|
|
209
209
|
}, 8, ["id"])) : a("", !0),
|
|
210
|
-
s("div",
|
|
210
|
+
s("div", _e, [e.smallHeading ? a("", !0) : (T(), o("div", ve)), e.showExpandAll ? (T(), o("div", ye, [s("button", {
|
|
211
211
|
class: "g-tree-menu__expand-all-btn",
|
|
212
212
|
onClick: f
|
|
213
213
|
}, [(T(), o("svg", {
|
|
@@ -220,14 +220,14 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
220
220
|
"stroke-linecap": "round",
|
|
221
221
|
"stroke-linejoin": "round"
|
|
222
222
|
}, [...l[0] ||= [s("polyline", { points: "7 8 12 13 17 8" }, null, -1), s("polyline", { points: "7 13 12 18 17 13" }, null, -1)]], 2)), c(" " + P(d.value ? "Collapse all" : "Expand all"), 1)])])) : a("", !0)]),
|
|
223
|
-
s("div",
|
|
223
|
+
s("div", be, [A(r.$slots, "default")])
|
|
224
224
|
], 16));
|
|
225
225
|
}
|
|
226
|
-
}),
|
|
226
|
+
}), Se = /* @__PURE__ */ u({
|
|
227
227
|
name: "GTreeMenuList",
|
|
228
228
|
props: { listType: { default: void 0 } },
|
|
229
229
|
setup(e) {
|
|
230
|
-
let t = e, n = p("g-tree-menu-list-type", "ul"), a = r(() => t.listType ?? n ?? "ul"), o =
|
|
230
|
+
let t = e, n = p("g-tree-menu-list-type", "ul"), a = r(() => t.listType ?? n ?? "ul"), o = Z(), s = d();
|
|
231
231
|
return S(() => {
|
|
232
232
|
if (!o) return;
|
|
233
233
|
let e = s?.ce;
|
|
@@ -240,15 +240,12 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
240
240
|
_: 3
|
|
241
241
|
}, 8, ["role"]));
|
|
242
242
|
}
|
|
243
|
-
}),
|
|
243
|
+
}), Ce = {
|
|
244
244
|
key: 0,
|
|
245
245
|
class: "g-tree-menu__row"
|
|
246
|
-
},
|
|
246
|
+
}, we = { class: "g-tree-menu__row-content-text" }, Te = {
|
|
247
247
|
key: 1,
|
|
248
248
|
class: "g-tree-menu__row g-tree-menu__row--leaf"
|
|
249
|
-
}, Te = {
|
|
250
|
-
class: "g-tree-menu__row-content",
|
|
251
|
-
"data-tree-primary": ""
|
|
252
249
|
}, Ee = /* @__PURE__ */ u({
|
|
253
250
|
name: "GTreeMenuItem",
|
|
254
251
|
inheritAttrs: !1,
|
|
@@ -307,26 +304,26 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
307
304
|
function V(e) {
|
|
308
305
|
(e.key === "Enter" || e.key === " ") && (D(), e.preventDefault());
|
|
309
306
|
}
|
|
310
|
-
let U =
|
|
307
|
+
let U = Z(), W = u?.ce;
|
|
311
308
|
S(() => {
|
|
312
309
|
U && W && W.setAttribute("role", "listitem");
|
|
313
310
|
});
|
|
314
|
-
let G = z(),
|
|
311
|
+
let G = z(), ee = r(() => {
|
|
315
312
|
if (!U) return G;
|
|
316
313
|
let { role: e, ...t } = G;
|
|
317
314
|
return t;
|
|
318
315
|
});
|
|
319
|
-
return (e, t) => (T(), i(j(R(U) ? "div" : "li"), h(
|
|
316
|
+
return (e, t) => (T(), i(j(R(U) ? "div" : "li"), h(ee.value, {
|
|
320
317
|
role: R(U) ? "presentation" : void 0,
|
|
321
318
|
class: "g-tree-menu__item",
|
|
322
319
|
"data-tree-expandable": g.value ? "true" : void 0
|
|
323
320
|
}), {
|
|
324
|
-
default: J(() => [g.value ? (T(), o("div",
|
|
321
|
+
default: J(() => [g.value ? (T(), o("div", Ce, [s("div", {
|
|
325
322
|
class: "g-tree-menu__toggle-btn",
|
|
326
323
|
onClick: D
|
|
327
324
|
}, [(T(), o("svg", {
|
|
328
325
|
class: _(["g-tree-menu__chevron", { "g-tree-menu__chevron--expanded": b.value }]),
|
|
329
|
-
role: "none
|
|
326
|
+
role: "none",
|
|
330
327
|
viewBox: "0 0 24 24",
|
|
331
328
|
fill: "none",
|
|
332
329
|
stroke: "currentColor",
|
|
@@ -340,7 +337,12 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
340
337
|
"data-tree-primary": "",
|
|
341
338
|
onClick: L,
|
|
342
339
|
onKeydown: V
|
|
343
|
-
}, [s("span",
|
|
340
|
+
}, [s("span", we, [A(e.$slots, "default")])], 544)])) : (T(), o("div", Te, [t[1] ||= s("span", { class: "g-tree-menu__spacer" }, null, -1), s("span", {
|
|
341
|
+
class: "g-tree-menu__row-content",
|
|
342
|
+
ref_key: "contentRef",
|
|
343
|
+
ref: C,
|
|
344
|
+
"data-tree-primary": ""
|
|
345
|
+
}, [A(e.$slots, "default")], 512)])), g.value && b.value ? (T(), i(Se, {
|
|
344
346
|
key: 2,
|
|
345
347
|
id: R(f) + "-children"
|
|
346
348
|
}, {
|
|
@@ -406,7 +408,7 @@ function ke(e = "default") {
|
|
|
406
408
|
//#endregion
|
|
407
409
|
//#region src/compose/useFormField.ts
|
|
408
410
|
function $(e) {
|
|
409
|
-
let t = z(), n = typeof t["form-key"] == "string" ? t["form-key"] : void 0, i = e.formKey ?? n ?? "default", a = p("form", null) ?? (
|
|
411
|
+
let t = z(), n = typeof t["form-key"] == "string" ? t["form-key"] : void 0, i = e.formKey ?? n ?? "default", a = p("form", null) ?? (Z() ? ke(i) : null), o = r(() => {
|
|
410
412
|
let t = [];
|
|
411
413
|
return e.errors && t.push(...e.errors.value.filter(Boolean)), t;
|
|
412
414
|
}), s = r(() => o.value.length > 0), c = e.name;
|
|
@@ -442,6 +444,7 @@ var Ae = ["id"], je = /* @__PURE__ */ u({
|
|
|
442
444
|
class: "g-form-error-message"
|
|
443
445
|
}, [r[0] ||= s("svg", {
|
|
444
446
|
class: "g-form-error-icon",
|
|
447
|
+
role: "none",
|
|
445
448
|
xmlns: "http://www.w3.org/2000/svg",
|
|
446
449
|
viewBox: "0 0 640 640"
|
|
447
450
|
}, [s("path", {
|
|
@@ -492,7 +495,7 @@ var Ae = ["id"], je = /* @__PURE__ */ u({
|
|
|
492
495
|
}),
|
|
493
496
|
emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
|
|
494
497
|
setup(e, { emit: t }) {
|
|
495
|
-
let n = e, i = V(e, "modelValue"), u = B(), { attrs: d, isCustomElement: f, forwardedAttrs: p } =
|
|
498
|
+
let n = e, i = V(e, "modelValue"), u = B(), { attrs: d, isCustomElement: f, forwardedAttrs: p } = me({ omitInCustomElement: ["id"] }), m = r(() => f ? u : d.id || u), { displayErrors: g, hasErrors: v } = $({
|
|
496
499
|
name: n.name,
|
|
497
500
|
value: i,
|
|
498
501
|
errors: I(n, "errors"),
|
|
@@ -613,11 +616,11 @@ var Ye = (e) => e != null;
|
|
|
613
616
|
//#region ../../node_modules/@vueuse/integrations/dist/useFocusTrap-lXZ_YG-8.js
|
|
614
617
|
function Xe(e, t = {}) {
|
|
615
618
|
let n, { immediate: i, ...a } = t, o = N(!1), s = N(!1), c = (e) => n && n.activate(e), l = (e) => n && n.deactivate(e);
|
|
616
|
-
return K(r(() =>
|
|
619
|
+
return K(r(() => ne(L(e)).map((e) => {
|
|
617
620
|
let t = L(e);
|
|
618
|
-
return typeof t == "string" ? t :
|
|
621
|
+
return typeof t == "string" ? t : ie(t);
|
|
619
622
|
}).filter(Ye)), (e) => {
|
|
620
|
-
if (e.length) if (!n) n =
|
|
623
|
+
if (e.length) if (!n) n = pe(e, {
|
|
621
624
|
...a,
|
|
622
625
|
onActivate() {
|
|
623
626
|
o.value = !0, t.onActivate && t.onActivate();
|
|
@@ -630,7 +633,7 @@ function Xe(e, t = {}) {
|
|
|
630
633
|
let t = n?.active;
|
|
631
634
|
n?.updateContainerElements(e), !t && i && c();
|
|
632
635
|
}
|
|
633
|
-
}, { flush: "post" }),
|
|
636
|
+
}, { flush: "post" }), re(() => l()), {
|
|
634
637
|
hasFocus: o,
|
|
635
638
|
isPaused: s,
|
|
636
639
|
activate: c,
|
|
@@ -734,8 +737,16 @@ function et(e, t, n, r) {
|
|
|
734
737
|
};
|
|
735
738
|
}
|
|
736
739
|
//#endregion
|
|
737
|
-
//#region src/components/
|
|
738
|
-
var tt =
|
|
740
|
+
//#region src/components/GClientOnly.vue
|
|
741
|
+
var tt = /* @__PURE__ */ u({
|
|
742
|
+
__name: "GClientOnly",
|
|
743
|
+
setup(e) {
|
|
744
|
+
let t = O(Z());
|
|
745
|
+
return S(() => {
|
|
746
|
+
t.value = !0;
|
|
747
|
+
}), (e, n) => t.value ? A(e.$slots, "default", { key: 0 }) : A(e.$slots, "fallback", { key: 1 });
|
|
748
|
+
}
|
|
749
|
+
}), nt = { class: "g-popover-wrap" }, rt = ["id"], it = ["aria-labelledby", "aria-label"], at = /* @__PURE__ */ u({
|
|
739
750
|
__name: "GPopover",
|
|
740
751
|
props: {
|
|
741
752
|
minimal: {
|
|
@@ -757,7 +768,7 @@ var tt = { class: "g-popover-wrap" }, nt = ["id"], rt = ["aria-labelledby", "ari
|
|
|
757
768
|
K(I(d, "modelValue"), (e) => {
|
|
758
769
|
p.value = e;
|
|
759
770
|
});
|
|
760
|
-
let m = H(), h = r(() => !!m.trigger), v = U("triggerRef"), b = U("popoverRef"), { isCustomElement: S } =
|
|
771
|
+
let m = H(), h = r(() => !!m.trigger), v = U("triggerRef"), b = U("popoverRef"), { isCustomElement: S } = me(), C = S, w = B(), { push: E, pop: D, isTop: k, zIndex: j } = Ke(w, !0), { activate: M, deactivate: N } = Qe(b, k, !0);
|
|
761
772
|
$e([b, v], k, p, F, D), K(p, (e) => {
|
|
762
773
|
e ? (g(() => {
|
|
763
774
|
g(() => M());
|
|
@@ -775,22 +786,22 @@ var tt = { class: "g-popover-wrap" }, nt = ["id"], rt = ["aria-labelledby", "ari
|
|
|
775
786
|
let z = O({
|
|
776
787
|
top: 0,
|
|
777
788
|
left: 0
|
|
778
|
-
}), V = O({ left: "50%" }), W = O(!1),
|
|
779
|
-
function
|
|
789
|
+
}), V = O({ left: "50%" }), W = O(!1), G = O(!1), q = null;
|
|
790
|
+
function te() {
|
|
780
791
|
if (v.value) return v.value;
|
|
781
792
|
let e = b.value?.parentElement ?? null;
|
|
782
793
|
for (; e && e.tagName.toLowerCase() !== "g-popover";) e = e.parentElement;
|
|
783
794
|
let t = e?.previousElementSibling;
|
|
784
795
|
return t instanceof HTMLElement ? t : null;
|
|
785
796
|
}
|
|
786
|
-
function
|
|
797
|
+
function X() {
|
|
787
798
|
if (!b.value) return;
|
|
788
|
-
let e = new DOMRect(0, 0, b.value.offsetWidth, b.value.offsetHeight), t = new DOMRect(0, 0, window.innerWidth, window.innerHeight), n =
|
|
799
|
+
let e = new DOMRect(0, 0, b.value.offsetWidth, b.value.offsetHeight), t = new DOMRect(0, 0, window.innerWidth, window.innerHeight), n = te();
|
|
789
800
|
if (!n) {
|
|
790
801
|
z.value = {
|
|
791
802
|
top: Math.max((t.height - e.height) / 2, 8),
|
|
792
803
|
left: Math.max((t.width - e.width) / 2, 8)
|
|
793
|
-
},
|
|
804
|
+
}, G.value = !1, W.value = !1, V.value = { left: "50%" };
|
|
794
805
|
return;
|
|
795
806
|
}
|
|
796
807
|
let { top: r, left: i, xOffset: a, placedAbove: o, overlay: s } = et(n.getBoundingClientRect(), e, t, { gap: d.minimal ? 0 : 8 });
|
|
@@ -801,108 +812,111 @@ var tt = { class: "g-popover-wrap" }, nt = ["id"], rt = ["aria-labelledby", "ari
|
|
|
801
812
|
left: `${e.width / 2 - a}px`,
|
|
802
813
|
top: o ? "auto" : void 0,
|
|
803
814
|
bottom: o ? "-8px" : void 0
|
|
804
|
-
}, W.value = o,
|
|
815
|
+
}, W.value = o, G.value = s;
|
|
805
816
|
}
|
|
806
817
|
return K(p, (e) => {
|
|
807
818
|
e ? g(() => {
|
|
808
|
-
|
|
809
|
-
}) : (window.removeEventListener("resize",
|
|
819
|
+
X(), window.addEventListener("resize", X), window.addEventListener("scroll", X, { capture: !0 }), b.value && (q && q.disconnect(), q = new ResizeObserver(() => X()), q.observe(b.value));
|
|
820
|
+
}) : (window.removeEventListener("resize", X), window.removeEventListener("scroll", X, { capture: !0 }), q && q.disconnect());
|
|
810
821
|
}), x(() => {
|
|
811
|
-
window.removeEventListener("resize",
|
|
822
|
+
window.removeEventListener("resize", X), window.removeEventListener("scroll", X, { capture: !0 }), q && q.disconnect();
|
|
812
823
|
}), c({
|
|
813
824
|
show: P,
|
|
814
825
|
hide: F,
|
|
815
826
|
toggle: L
|
|
816
|
-
}), (r, c) => (T(), o("div",
|
|
827
|
+
}), (r, c) => (T(), o("div", nt, [h.value ? (T(), o("div", {
|
|
817
828
|
key: 0,
|
|
818
829
|
ref_key: "triggerRef",
|
|
819
830
|
ref: v,
|
|
820
831
|
class: "g-popover-trigger",
|
|
821
832
|
id: `${R(w)}-trigger`
|
|
822
|
-
}, [A(r.$slots, "trigger", { toggle: L })], 8,
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
ref_key: "popoverRef",
|
|
832
|
-
ref: b,
|
|
833
|
-
class: _({
|
|
834
|
-
"g-popover": !0,
|
|
835
|
-
"g-popover-above": W.value,
|
|
836
|
-
"g-popover-below": !W.value,
|
|
837
|
-
"g-popover-minimal": e.minimal
|
|
838
|
-
}),
|
|
839
|
-
role: "dialog",
|
|
840
|
-
"aria-modal": "true",
|
|
841
|
-
"aria-labelledby": h.value ? `${R(w)}-trigger` : void 0,
|
|
842
|
-
"aria-label": h.value ? void 0 : "Popover",
|
|
843
|
-
style: y({
|
|
844
|
-
top: z.value.top + "px",
|
|
845
|
-
left: z.value.left + "px",
|
|
846
|
-
zIndex: R(j)
|
|
847
|
-
})
|
|
848
|
-
}, [
|
|
849
|
-
!q.value && !e.minimal ? (T(), o("div", {
|
|
833
|
+
}, [A(r.$slots, "trigger", { toggle: L })], 8, rt)) : a("", !0), l(tt, null, {
|
|
834
|
+
default: J(() => [(T(), i(t, {
|
|
835
|
+
to: "#modal-root",
|
|
836
|
+
disabled: R(C)
|
|
837
|
+
}, [l(n, {
|
|
838
|
+
name: "g-popover-expand",
|
|
839
|
+
appear: ""
|
|
840
|
+
}, {
|
|
841
|
+
default: J(() => [R(S) || p.value ? Y((T(), o("div", {
|
|
850
842
|
key: 0,
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
"aria-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
843
|
+
ref_key: "popoverRef",
|
|
844
|
+
ref: b,
|
|
845
|
+
class: _({
|
|
846
|
+
"g-popover": !0,
|
|
847
|
+
"g-popover-above": W.value,
|
|
848
|
+
"g-popover-below": !W.value,
|
|
849
|
+
"g-popover-minimal": e.minimal
|
|
850
|
+
}),
|
|
851
|
+
role: "dialog",
|
|
852
|
+
"aria-modal": "true",
|
|
853
|
+
"aria-labelledby": h.value ? `${R(w)}-trigger` : void 0,
|
|
854
|
+
"aria-label": h.value ? void 0 : "Popover",
|
|
855
|
+
style: y({
|
|
856
|
+
top: z.value.top + "px",
|
|
857
|
+
left: z.value.left + "px",
|
|
858
|
+
zIndex: R(j)
|
|
859
|
+
})
|
|
860
|
+
}, [
|
|
861
|
+
!G.value && !e.minimal ? (T(), o("div", {
|
|
862
|
+
key: 0,
|
|
863
|
+
class: _(["g-popover-arrow", { "g-popover-arrow-above": W.value }]),
|
|
864
|
+
style: y(V.value),
|
|
865
|
+
"aria-hidden": "true"
|
|
866
|
+
}, null, 6)) : a("", !0),
|
|
867
|
+
A(r.$slots, "default"),
|
|
868
|
+
e.minimal ? a("", !0) : (T(), o("button", {
|
|
869
|
+
key: 1,
|
|
870
|
+
class: "g-popover-close",
|
|
871
|
+
type: "button",
|
|
872
|
+
"aria-label": "Close popover",
|
|
873
|
+
onClick: F
|
|
874
|
+
}, [...c[0] ||= [s("svg", {
|
|
875
|
+
class: "g-popover-close-icon",
|
|
876
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
877
|
+
viewBox: "0 0 51.26 51.26",
|
|
878
|
+
"aria-hidden": "true"
|
|
879
|
+
}, [s("path", {
|
|
880
|
+
fill: "currentColor",
|
|
881
|
+
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"
|
|
882
|
+
})], -1)]]))
|
|
883
|
+
], 14, it)), [[ee, p.value]]) : a("", !0)]),
|
|
884
|
+
_: 3
|
|
885
|
+
})], 8, ["disabled"]))]),
|
|
872
886
|
_: 3
|
|
873
|
-
})]
|
|
887
|
+
})]));
|
|
874
888
|
}
|
|
875
|
-
}),
|
|
876
|
-
function
|
|
877
|
-
return `${e}-${++
|
|
889
|
+
}), ot = 1;
|
|
890
|
+
function st(e = "v-gtooltip") {
|
|
891
|
+
return `${e}-${++ot}`;
|
|
878
892
|
}
|
|
879
|
-
function
|
|
893
|
+
function ct(e, t = "v-gtooltip") {
|
|
880
894
|
let n = e.getAttribute("aria-describedby");
|
|
881
895
|
if (n) return n;
|
|
882
|
-
let r =
|
|
896
|
+
let r = st(t);
|
|
883
897
|
return e.setAttribute("aria-describedby", r), r;
|
|
884
898
|
}
|
|
885
|
-
function
|
|
899
|
+
function lt(e, t) {
|
|
886
900
|
let n = document.createElement("div");
|
|
887
901
|
return n.className = "v-gtooltip", n.textContent = e, n.setAttribute("role", "tooltip"), n.setAttribute("id", t), n;
|
|
888
902
|
}
|
|
889
|
-
function
|
|
903
|
+
function ut(e) {
|
|
890
904
|
(document.getElementById("modal-root") ?? document.body).appendChild(e);
|
|
891
905
|
}
|
|
892
|
-
function
|
|
906
|
+
function dt(e, t) {
|
|
893
907
|
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), { top: i, left: a, placedAbove: o } = et(n, r, new DOMRect(0, 0, window.innerWidth, window.innerHeight), {
|
|
894
908
|
gap: 8,
|
|
895
909
|
margin: 8,
|
|
896
910
|
preferAbove: !0
|
|
897
911
|
}), s = (n.left + n.width / 2 - a) / r.width * 100;
|
|
898
|
-
t.style.setProperty("--v-gtooltip-arrow-x", `${s}%`), t.classList.remove("v-gtooltip-bottom"), o || t.classList.add("v-gtooltip-bottom"), t.style.left = `${a}px`, t.style.top = `${i}px`, t.style.zIndex = `${Je()}`, t.style.opacity = "1";
|
|
912
|
+
t.style.setProperty("--v-gtooltip-arrow-x", `${s}%`), t.classList.remove("v-gtooltip-bottom"), o || t.classList.add("v-gtooltip-bottom"), t.style.left = `${a}px`, t.style.top = `${i}px`, t.style.zIndex = `${Je()}`, t.style.visibility = "visible", t.style.opacity = "1";
|
|
899
913
|
}
|
|
900
|
-
function
|
|
901
|
-
e.style.opacity = "0";
|
|
914
|
+
function ft(e) {
|
|
915
|
+
e.style.opacity = "0", e.style.visibility = "hidden";
|
|
902
916
|
}
|
|
903
917
|
//#endregion
|
|
904
918
|
//#region src/components/GTooltip.vue
|
|
905
|
-
var
|
|
919
|
+
var pt = /* @__PURE__ */ u({
|
|
906
920
|
__name: "GTooltip",
|
|
907
921
|
props: { text: {} },
|
|
908
922
|
emits: ["tooltip-hide"],
|
|
@@ -917,12 +931,12 @@ var ft = /* @__PURE__ */ u({
|
|
|
917
931
|
return t instanceof HTMLElement ? t : null;
|
|
918
932
|
}
|
|
919
933
|
function S() {
|
|
920
|
-
y && (v || (v = l.value ?
|
|
921
|
-
f.value && (p.value || m.value) && y &&
|
|
934
|
+
y && (v || (v = l.value ? st("g-tooltip") : ct(y, "g-tooltip"), l.value && y.setAttribute("aria-describedby", v)), f.value || (f.value = lt(i.text, v), ut(f.value), h = new ResizeObserver(() => {
|
|
935
|
+
f.value && (p.value || m.value) && y && dt(y, f.value);
|
|
922
936
|
}), h.observe(f.value)));
|
|
923
937
|
}
|
|
924
938
|
function C() {
|
|
925
|
-
f.value && (p.value || m.value) && y &&
|
|
939
|
+
f.value && (p.value || m.value) && y && dt(y, f.value);
|
|
926
940
|
}
|
|
927
941
|
function w() {
|
|
928
942
|
p.value = !0;
|
|
@@ -968,10 +982,10 @@ var ft = /* @__PURE__ */ u({
|
|
|
968
982
|
f.value && (f.value.textContent = e);
|
|
969
983
|
}), K(() => p.value || m.value, (e) => {
|
|
970
984
|
if (e) {
|
|
971
|
-
S(), f.value && y &&
|
|
985
|
+
S(), f.value && y && dt(y, f.value), g ||= (window.addEventListener("scroll", C, { capture: !0 }), !0);
|
|
972
986
|
return;
|
|
973
987
|
}
|
|
974
|
-
g &&= (window.removeEventListener("scroll", C, { capture: !0 }), !1), f.value && (
|
|
988
|
+
g &&= (window.removeEventListener("scroll", C, { capture: !0 }), !1), f.value && (ft(f.value), _ && clearTimeout(_), _ = window.setTimeout(() => {
|
|
975
989
|
s("tooltip-hide");
|
|
976
990
|
}, 150));
|
|
977
991
|
}), x(() => {
|
|
@@ -991,11 +1005,11 @@ var ft = /* @__PURE__ */ u({
|
|
|
991
1005
|
class: "g-tooltip-trigger"
|
|
992
1006
|
}, [A(e.$slots, "trigger")], 512)) : a("", !0)], 512));
|
|
993
1007
|
}
|
|
994
|
-
}),
|
|
1008
|
+
}), mt = ["disabled"], ht = { class: "g-select-btn-legend" }, gt = {
|
|
995
1009
|
key: 0,
|
|
996
1010
|
class: "g-select-btn-required",
|
|
997
1011
|
"aria-hidden": "true"
|
|
998
|
-
},
|
|
1012
|
+
}, _t = { class: "g-select-btn-row" }, vt = [
|
|
999
1013
|
"id",
|
|
1000
1014
|
"name",
|
|
1001
1015
|
"value",
|
|
@@ -1003,7 +1017,7 @@ var ft = /* @__PURE__ */ u({
|
|
|
1003
1017
|
"disabled",
|
|
1004
1018
|
"required",
|
|
1005
1019
|
"onChange"
|
|
1006
|
-
],
|
|
1020
|
+
], yt = ["for"], bt = /* @__PURE__ */ u({
|
|
1007
1021
|
__name: "GSelectButton",
|
|
1008
1022
|
props: /*@__PURE__*/ m({
|
|
1009
1023
|
options: {},
|
|
@@ -1045,7 +1059,7 @@ var ft = /* @__PURE__ */ u({
|
|
|
1045
1059
|
return (t, n) => (T(), o("fieldset", {
|
|
1046
1060
|
class: _(g.value),
|
|
1047
1061
|
disabled: i.disabled
|
|
1048
|
-
}, [s("legend",
|
|
1062
|
+
}, [s("legend", ht, [c(P(i.label), 1), i.required ? (T(), o("span", gt, " *")) : a("", !0)]), s("div", { class: _(["g-select-btn-wrapper", { "g-select-btn-has-error": R(m) }]) }, [s("div", _t, [(T(!0), o(e, null, k(h.value, (t, n) => (T(), o(e, { key: t.value }, [s("input", {
|
|
1049
1063
|
class: "g-select-btn-radio",
|
|
1050
1064
|
type: "radio",
|
|
1051
1065
|
id: `${R(f)}-${t.value}`,
|
|
@@ -1055,29 +1069,29 @@ var ft = /* @__PURE__ */ u({
|
|
|
1055
1069
|
disabled: i.disabled,
|
|
1056
1070
|
required: i.required && n === 0,
|
|
1057
1071
|
onChange: (e) => y(t.value)
|
|
1058
|
-
}, null, 40,
|
|
1072
|
+
}, null, 40, vt), s("label", {
|
|
1059
1073
|
for: `${R(f)}-${t.value}`,
|
|
1060
1074
|
class: _(v(t.value === d.value))
|
|
1061
|
-
}, P(t.label), 11,
|
|
1075
|
+
}, P(t.label), 11, yt)], 64))), 128))]), l(je, {
|
|
1062
1076
|
errors: R(p),
|
|
1063
1077
|
id: "error-message-" + R(f)
|
|
1064
|
-
}, null, 8, ["errors", "id"])], 2)], 10,
|
|
1078
|
+
}, null, 8, ["errors", "id"])], 2)], 10, mt));
|
|
1065
1079
|
}
|
|
1066
|
-
}),
|
|
1080
|
+
}), xt = ["width", "height"], St = [
|
|
1067
1081
|
"cx",
|
|
1068
1082
|
"cy",
|
|
1069
1083
|
"r"
|
|
1070
|
-
],
|
|
1084
|
+
], Ct = [
|
|
1071
1085
|
"cx",
|
|
1072
1086
|
"cy",
|
|
1073
1087
|
"r",
|
|
1074
1088
|
"stroke-dasharray",
|
|
1075
1089
|
"stroke-dashoffset"
|
|
1076
|
-
],
|
|
1090
|
+
], wt = [
|
|
1077
1091
|
"cx",
|
|
1078
1092
|
"cy",
|
|
1079
1093
|
"r"
|
|
1080
|
-
],
|
|
1094
|
+
], Tt = /* @__PURE__ */ u({
|
|
1081
1095
|
__name: "GProgress",
|
|
1082
1096
|
props: {
|
|
1083
1097
|
label: { default: "Loading" },
|
|
@@ -1118,7 +1132,7 @@ var ft = /* @__PURE__ */ u({
|
|
|
1118
1132
|
r: i.value,
|
|
1119
1133
|
"stroke-width": 4,
|
|
1120
1134
|
fill: "none"
|
|
1121
|
-
}, null, 8,
|
|
1135
|
+
}, null, 8, St), n.value ? (T(), o("circle", {
|
|
1122
1136
|
key: 0,
|
|
1123
1137
|
class: "g-progress__value",
|
|
1124
1138
|
cx: i.value + 4 / 2,
|
|
@@ -1132,7 +1146,7 @@ var ft = /* @__PURE__ */ u({
|
|
|
1132
1146
|
transform: "rotate(-90deg)",
|
|
1133
1147
|
"transform-origin": "center"
|
|
1134
1148
|
}
|
|
1135
|
-
}, null, 8,
|
|
1149
|
+
}, null, 8, Ct)) : (T(), o("circle", {
|
|
1136
1150
|
key: 1,
|
|
1137
1151
|
class: "g-progress__spinner",
|
|
1138
1152
|
cx: i.value + 4 / 2,
|
|
@@ -1140,13 +1154,13 @@ var ft = /* @__PURE__ */ u({
|
|
|
1140
1154
|
r: i.value,
|
|
1141
1155
|
"stroke-width": 4,
|
|
1142
1156
|
fill: "none"
|
|
1143
|
-
}, null, 8,
|
|
1157
|
+
}, null, 8, wt))], 10, xt))], 16));
|
|
1144
1158
|
}
|
|
1145
|
-
}),
|
|
1159
|
+
}), Et = [
|
|
1146
1160
|
"id",
|
|
1147
1161
|
"aria-labelledby",
|
|
1148
1162
|
"aria-describedby"
|
|
1149
|
-
],
|
|
1163
|
+
], Dt = { class: "g-alertdialog-inner" }, Ot = ["id"], kt = ["id"], At = { class: "g-alertdialog-actions" }, jt = /* @__PURE__ */ u({
|
|
1150
1164
|
__name: "GAlertDialog",
|
|
1151
1165
|
props: {
|
|
1152
1166
|
label: { default: "Confirmation" },
|
|
@@ -1177,16 +1191,16 @@ var ft = /* @__PURE__ */ u({
|
|
|
1177
1191
|
ref_key: "dialog",
|
|
1178
1192
|
ref: u,
|
|
1179
1193
|
style: y({ zIndex: R(g) })
|
|
1180
|
-
}, [s("div",
|
|
1194
|
+
}, [s("div", Dt, [
|
|
1181
1195
|
s("h2", {
|
|
1182
1196
|
id: "alertdialog-label-" + R(f),
|
|
1183
1197
|
class: "g-alertdialog-label"
|
|
1184
|
-
}, P(a.label), 9,
|
|
1198
|
+
}, P(a.label), 9, Ot),
|
|
1185
1199
|
s("div", {
|
|
1186
1200
|
id: "alertdialog-description-" + R(f),
|
|
1187
1201
|
class: "g-alertdialog-content"
|
|
1188
|
-
}, [A(e.$slots, "default")], 8,
|
|
1189
|
-
s("div",
|
|
1202
|
+
}, [A(e.$slots, "default")], 8, kt),
|
|
1203
|
+
s("div", At, [l(Q, {
|
|
1190
1204
|
outlined: "",
|
|
1191
1205
|
onClick: r[0] ||= (e) => o("cancel")
|
|
1192
1206
|
}, {
|
|
@@ -1199,20 +1213,20 @@ var ft = /* @__PURE__ */ u({
|
|
|
1199
1213
|
default: J(() => [c(P(a.buttonText), 1)]),
|
|
1200
1214
|
_: 1
|
|
1201
1215
|
}, 8, ["theme"])])
|
|
1202
|
-
])], 12,
|
|
1216
|
+
])], 12, Et)]),
|
|
1203
1217
|
_: 3
|
|
1204
1218
|
})]));
|
|
1205
1219
|
}
|
|
1206
1220
|
});
|
|
1207
1221
|
//#endregion
|
|
1208
1222
|
//#region src/compose/useSelectDropdown.ts
|
|
1209
|
-
function
|
|
1223
|
+
function Mt(e) {
|
|
1210
1224
|
return e.map((e) => typeof e == "string" ? {
|
|
1211
1225
|
label: e,
|
|
1212
1226
|
value: e
|
|
1213
1227
|
} : e);
|
|
1214
1228
|
}
|
|
1215
|
-
function
|
|
1229
|
+
function Nt({ open: e, anchorRef: t, listboxRef: n, baseId: i, activeIndex: a }) {
|
|
1216
1230
|
let { push: o, pop: s, isTop: c } = Ke(i), l = O("below"), u = O(null), d = r(() => {
|
|
1217
1231
|
let e = {};
|
|
1218
1232
|
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;
|
|
@@ -1256,11 +1270,11 @@ function Mt({ open: e, anchorRef: t, listboxRef: n, baseId: i, activeIndex: a })
|
|
|
1256
1270
|
}
|
|
1257
1271
|
//#endregion
|
|
1258
1272
|
//#region src/components/GSelect.vue?vue&type=script&setup=true&lang.ts
|
|
1259
|
-
var
|
|
1273
|
+
var Pt = ["id"], Ft = {
|
|
1260
1274
|
key: 0,
|
|
1261
1275
|
class: "g-select-required",
|
|
1262
1276
|
"aria-hidden": "true"
|
|
1263
|
-
},
|
|
1277
|
+
}, It = { class: "g-select-input-wrap" }, Lt = ["id"], Rt = [
|
|
1264
1278
|
"value",
|
|
1265
1279
|
"placeholder",
|
|
1266
1280
|
"disabled",
|
|
@@ -1268,21 +1282,21 @@ var Nt = ["id"], Pt = {
|
|
|
1268
1282
|
"aria-expanded",
|
|
1269
1283
|
"aria-required",
|
|
1270
1284
|
"aria-activedescendant"
|
|
1271
|
-
],
|
|
1285
|
+
], zt = [
|
|
1272
1286
|
"id",
|
|
1273
1287
|
"aria-controls",
|
|
1274
1288
|
"aria-expanded",
|
|
1275
1289
|
"aria-required",
|
|
1276
1290
|
"aria-activedescendant"
|
|
1277
|
-
],
|
|
1291
|
+
], Bt = ["id"], Vt = [
|
|
1278
1292
|
"id",
|
|
1279
1293
|
"aria-selected",
|
|
1280
1294
|
"onClick"
|
|
1281
|
-
],
|
|
1295
|
+
], Ht = {
|
|
1282
1296
|
key: 1,
|
|
1283
1297
|
"aria-live": "polite",
|
|
1284
1298
|
class: "g-select-combo-option g-select-option g-select-no-results"
|
|
1285
|
-
},
|
|
1299
|
+
}, Ut = /* @__PURE__ */ u({
|
|
1286
1300
|
__name: "GSelect",
|
|
1287
1301
|
props: /*@__PURE__*/ m({
|
|
1288
1302
|
options: {},
|
|
@@ -1320,13 +1334,13 @@ var Nt = ["id"], Pt = {
|
|
|
1320
1334
|
value: d,
|
|
1321
1335
|
errors: I(i, "errors"),
|
|
1322
1336
|
formKey: i.formKey
|
|
1323
|
-
}), { menuPlacement: E, menuStyle: D, isTop: j, scrollOptionIntoView: M } =
|
|
1337
|
+
}), { menuPlacement: E, menuStyle: D, isTop: j, scrollOptionIntoView: M } = Nt({
|
|
1324
1338
|
open: y,
|
|
1325
1339
|
anchorRef: p,
|
|
1326
1340
|
listboxRef: m,
|
|
1327
1341
|
baseId: f,
|
|
1328
1342
|
activeIndex: b
|
|
1329
|
-
}), N = r(() =>
|
|
1343
|
+
}), N = r(() => Mt(i.options)), F = O(""), L = r(() => {
|
|
1330
1344
|
if (!i.searchable || !y.value || !F.value) return N.value;
|
|
1331
1345
|
let e = F.value.toLowerCase();
|
|
1332
1346
|
return N.value.filter((t) => t.label.toLowerCase().includes(e));
|
|
@@ -1356,13 +1370,13 @@ var Nt = ["id"], Pt = {
|
|
|
1356
1370
|
H();
|
|
1357
1371
|
}
|
|
1358
1372
|
}
|
|
1359
|
-
function
|
|
1373
|
+
function G(e) {
|
|
1360
1374
|
if (!i.searchable) return;
|
|
1361
1375
|
y.value || H(), F.value = e.target.value;
|
|
1362
1376
|
let t = L.value.findIndex((e) => e.value === d.value);
|
|
1363
1377
|
b.value = t === -1 ? 0 : t;
|
|
1364
1378
|
}
|
|
1365
|
-
function
|
|
1379
|
+
function q(e) {
|
|
1366
1380
|
let t = e.relatedTarget;
|
|
1367
1381
|
if (x.value) {
|
|
1368
1382
|
x.value = !1;
|
|
@@ -1370,16 +1384,16 @@ var Nt = ["id"], Pt = {
|
|
|
1370
1384
|
}
|
|
1371
1385
|
t && m.value && m.value.contains(t) || (i.searchable && (F.value = ""), U());
|
|
1372
1386
|
}
|
|
1373
|
-
function
|
|
1387
|
+
function J(e) {
|
|
1374
1388
|
let t = L.value[e];
|
|
1375
1389
|
t && t.value !== d.value && (d.value = t.value, u("change", t.value)), S.value = !0, U(), setTimeout(() => {
|
|
1376
1390
|
S.value = !1;
|
|
1377
1391
|
}, 100);
|
|
1378
1392
|
}
|
|
1379
|
-
function
|
|
1393
|
+
function X() {
|
|
1380
1394
|
i.disabled || (y.value ? U() : H());
|
|
1381
1395
|
}
|
|
1382
|
-
function
|
|
1396
|
+
function ne(e) {
|
|
1383
1397
|
if (i.disabled) return;
|
|
1384
1398
|
let t = L.value.length - 1;
|
|
1385
1399
|
if (!y.value && [
|
|
@@ -1406,7 +1420,7 @@ var Nt = ["id"], Pt = {
|
|
|
1406
1420
|
break;
|
|
1407
1421
|
case "Enter":
|
|
1408
1422
|
case " ":
|
|
1409
|
-
e.preventDefault(), y.value ?
|
|
1423
|
+
e.preventDefault(), y.value ? J(b.value) : H();
|
|
1410
1424
|
break;
|
|
1411
1425
|
case "Escape":
|
|
1412
1426
|
j.value && (e.preventDefault(), setTimeout(() => {
|
|
@@ -1415,14 +1429,14 @@ var Nt = ["id"], Pt = {
|
|
|
1415
1429
|
break;
|
|
1416
1430
|
}
|
|
1417
1431
|
}
|
|
1418
|
-
function
|
|
1419
|
-
|
|
1432
|
+
function re(e) {
|
|
1433
|
+
J(e);
|
|
1420
1434
|
}
|
|
1421
|
-
function
|
|
1435
|
+
function ie() {
|
|
1422
1436
|
x.value = !0;
|
|
1423
1437
|
}
|
|
1424
|
-
let
|
|
1425
|
-
function
|
|
1438
|
+
let ae = r(() => i.clearButton && d.value !== null && d.value !== void 0 && !i.disabled);
|
|
1439
|
+
function oe() {
|
|
1426
1440
|
i.disabled || (d.value = null, u("change", null), i.searchable && (F.value = ""));
|
|
1427
1441
|
}
|
|
1428
1442
|
return (n, r) => (T(), o("div", { class: _(["g-select-root g-select-combo", {
|
|
@@ -1434,8 +1448,8 @@ var Nt = ["id"], Pt = {
|
|
|
1434
1448
|
key: 0,
|
|
1435
1449
|
id: R(f) + "-label",
|
|
1436
1450
|
class: "g-select-combo-label g-select-label"
|
|
1437
|
-
}, [c(P(i.label), 1), i.required ? (T(), o("span",
|
|
1438
|
-
s("div",
|
|
1451
|
+
}, [c(P(i.label), 1), i.required ? (T(), o("span", Ft, " *")) : a("", !0)], 8, Pt)),
|
|
1452
|
+
s("div", It, [i.searchable ? (T(), o("div", {
|
|
1439
1453
|
key: 0,
|
|
1440
1454
|
class: "g-select-combo-input g-select-control",
|
|
1441
1455
|
id: R(f)
|
|
@@ -1450,9 +1464,9 @@ var Nt = ["id"], Pt = {
|
|
|
1450
1464
|
placeholder: y.value ? "" : t.placeholder,
|
|
1451
1465
|
disabled: i.disabled,
|
|
1452
1466
|
onFocus: W,
|
|
1453
|
-
onInput:
|
|
1454
|
-
onKeydown:
|
|
1455
|
-
onBlur:
|
|
1467
|
+
onInput: G,
|
|
1468
|
+
onKeydown: ne,
|
|
1469
|
+
onBlur: q,
|
|
1456
1470
|
"aria-autocomplete": "list",
|
|
1457
1471
|
"aria-controls": R(f) + "-listbox",
|
|
1458
1472
|
"aria-expanded": y.value ? "true" : "false",
|
|
@@ -1462,12 +1476,12 @@ var Nt = ["id"], Pt = {
|
|
|
1462
1476
|
}, t.hiddenLabel ? { "aria-label": i.label } : { "aria-labelledby": R(f) + "-label" }, {
|
|
1463
1477
|
role: "combobox",
|
|
1464
1478
|
autocomplete: "off"
|
|
1465
|
-
}), null, 16,
|
|
1466
|
-
|
|
1479
|
+
}), null, 16, Rt),
|
|
1480
|
+
ae.value ? (T(), o("button", {
|
|
1467
1481
|
key: 0,
|
|
1468
1482
|
type: "button",
|
|
1469
1483
|
class: "g-select-clear-btn",
|
|
1470
|
-
onClick:
|
|
1484
|
+
onClick: oe
|
|
1471
1485
|
}, [...r[0] ||= [s("svg", {
|
|
1472
1486
|
role: "img",
|
|
1473
1487
|
"aria-label": "Clear Selection",
|
|
@@ -1488,7 +1502,7 @@ var Nt = ["id"], Pt = {
|
|
|
1488
1502
|
fill: "currentColor",
|
|
1489
1503
|
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"
|
|
1490
1504
|
})], -1)
|
|
1491
|
-
], 8,
|
|
1505
|
+
], 8, Lt)) : (T(), o("div", h({
|
|
1492
1506
|
key: 1,
|
|
1493
1507
|
ref_key: "comboRef",
|
|
1494
1508
|
ref: p,
|
|
@@ -1502,17 +1516,17 @@ var Nt = ["id"], Pt = {
|
|
|
1502
1516
|
}, t.hiddenLabel ? { "aria-label": i.label } : { "aria-labelledby": R(f) + "-label" }, {
|
|
1503
1517
|
"aria-activedescendant": y.value ? R(f) + "-option-" + b.value : void 0,
|
|
1504
1518
|
tabindex: "0",
|
|
1505
|
-
onClick:
|
|
1506
|
-
onKeydown:
|
|
1519
|
+
onClick: X,
|
|
1520
|
+
onKeydown: ne,
|
|
1507
1521
|
onFocus: W,
|
|
1508
|
-
onBlur:
|
|
1522
|
+
onBlur: q
|
|
1509
1523
|
}), [
|
|
1510
1524
|
c(P(N.value[z.value] ? N.value[z.value].label : "") + " ", 1),
|
|
1511
|
-
|
|
1525
|
+
ae.value ? (T(), o("button", {
|
|
1512
1526
|
key: 0,
|
|
1513
1527
|
type: "button",
|
|
1514
1528
|
class: "g-select-clear-btn",
|
|
1515
|
-
onClick:
|
|
1529
|
+
onClick: te(oe, ["stop"])
|
|
1516
1530
|
}, [...r[2] ||= [s("svg", {
|
|
1517
1531
|
role: "img",
|
|
1518
1532
|
"aria-label": "Clear Selection",
|
|
@@ -1533,7 +1547,7 @@ var Nt = ["id"], Pt = {
|
|
|
1533
1547
|
fill: "currentColor",
|
|
1534
1548
|
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"
|
|
1535
1549
|
})], -1)
|
|
1536
|
-
], 16,
|
|
1550
|
+
], 16, zt)), Y(s("div", h({
|
|
1537
1551
|
ref_key: "listboxRef",
|
|
1538
1552
|
ref: m,
|
|
1539
1553
|
class: ["g-select-combo-menu g-select-list", { "g-select-combo-menu--above": R(E) === "above" }],
|
|
@@ -1549,40 +1563,40 @@ var Nt = ["id"], Pt = {
|
|
|
1549
1563
|
}]),
|
|
1550
1564
|
role: "option",
|
|
1551
1565
|
"aria-selected": e.value === d.value ? "true" : "false",
|
|
1552
|
-
onMousedown:
|
|
1553
|
-
onClick: (e) =>
|
|
1566
|
+
onMousedown: ie,
|
|
1567
|
+
onClick: (e) => re(t)
|
|
1554
1568
|
}, [A(n.$slots, "option", {
|
|
1555
1569
|
option: e,
|
|
1556
1570
|
selected: e.value === d.value,
|
|
1557
1571
|
index: t
|
|
1558
|
-
}, () => [c(P(e.label), 1)])], 42,
|
|
1572
|
+
}, () => [c(P(e.label), 1)])], 42, Vt))), 128)) : (T(), o("div", Ht, " No results found. "))], 16, Bt), [[ee, y.value]])]),
|
|
1559
1573
|
l(je, {
|
|
1560
1574
|
errors: R(C),
|
|
1561
1575
|
id: "error-message-" + R(f)
|
|
1562
1576
|
}, null, 8, ["errors", "id"])
|
|
1563
1577
|
], 2));
|
|
1564
1578
|
}
|
|
1565
|
-
}),
|
|
1579
|
+
}), Wt = ["aria-label"], Gt = [
|
|
1566
1580
|
"placeholder",
|
|
1567
1581
|
"value",
|
|
1568
1582
|
"aria-expanded",
|
|
1569
1583
|
"aria-controls",
|
|
1570
1584
|
"aria-activedescendant"
|
|
1571
|
-
],
|
|
1585
|
+
], Kt = {
|
|
1572
1586
|
key: 0,
|
|
1573
1587
|
class: "g-search-dropdown"
|
|
1574
|
-
},
|
|
1588
|
+
}, qt = {
|
|
1575
1589
|
"aria-live": "polite",
|
|
1576
1590
|
class: "g-search-result-count"
|
|
1577
|
-
},
|
|
1591
|
+
}, Jt = ["id"], Yt = ["aria-label"], Xt = { class: "g-search-group-label" }, Zt = [
|
|
1578
1592
|
"id",
|
|
1579
1593
|
"onMousedown",
|
|
1580
1594
|
"aria-selected"
|
|
1581
|
-
],
|
|
1595
|
+
], Qt = [
|
|
1582
1596
|
"id",
|
|
1583
1597
|
"onMousedown",
|
|
1584
1598
|
"aria-selected"
|
|
1585
|
-
],
|
|
1599
|
+
], $t = /* @__PURE__ */ u({
|
|
1586
1600
|
__name: "GSearch",
|
|
1587
1601
|
props: /*@__PURE__*/ m({
|
|
1588
1602
|
results: {},
|
|
@@ -1610,7 +1624,7 @@ var Nt = ["id"], Pt = {
|
|
|
1610
1624
|
e && e.scrollIntoView({ block: "nearest" });
|
|
1611
1625
|
});
|
|
1612
1626
|
}
|
|
1613
|
-
let { focused: S } =
|
|
1627
|
+
let { focused: S } = se(f);
|
|
1614
1628
|
function C(e) {
|
|
1615
1629
|
let t = e.altKey;
|
|
1616
1630
|
if (e.key === "ArrowDown") {
|
|
@@ -1634,7 +1648,7 @@ var Nt = ["id"], Pt = {
|
|
|
1634
1648
|
function w(e) {
|
|
1635
1649
|
d("select", e), l.value = "", m.value = !0, h.value = -1;
|
|
1636
1650
|
}
|
|
1637
|
-
let E = r(() => !!u.loading), D = r(() => S.value && !m.value), j =
|
|
1651
|
+
let E = r(() => !!u.loading), D = r(() => S.value && !m.value), j = oe(() => {
|
|
1638
1652
|
d("submit", l.value);
|
|
1639
1653
|
}, 300);
|
|
1640
1654
|
K(() => l.value, (e) => {
|
|
@@ -1647,7 +1661,7 @@ var Nt = ["id"], Pt = {
|
|
|
1647
1661
|
"aria-label": u.label
|
|
1648
1662
|
}, [s("form", {
|
|
1649
1663
|
class: "g-search-form",
|
|
1650
|
-
onSubmit: n[0] ||=
|
|
1664
|
+
onSubmit: n[0] ||= te((e) => w(null), ["prevent"])
|
|
1651
1665
|
}, [s("input", {
|
|
1652
1666
|
ref_key: "inputRef",
|
|
1653
1667
|
ref: f,
|
|
@@ -1663,12 +1677,12 @@ var Nt = ["id"], Pt = {
|
|
|
1663
1677
|
"aria-autocomplete": "list",
|
|
1664
1678
|
"aria-controls": `${R(M)}-list`,
|
|
1665
1679
|
"aria-activedescendant": h.value >= 0 ? "g-search-option-" + v.value[h.value].id : void 0
|
|
1666
|
-
}, null, 40,
|
|
1680
|
+
}, null, 40, Gt), s("button", {
|
|
1667
1681
|
type: "submit",
|
|
1668
1682
|
class: "g-search-submit",
|
|
1669
1683
|
"aria-label": "Submit search",
|
|
1670
1684
|
onKeydown: C
|
|
1671
|
-
}, [E.value ? (T(), i(
|
|
1685
|
+
}, [E.value ? (T(), i(Tt, {
|
|
1672
1686
|
key: 0,
|
|
1673
1687
|
size: "tiny"
|
|
1674
1688
|
})) : a("", !0), n[1] ||= s("svg", {
|
|
@@ -1679,7 +1693,7 @@ var Nt = ["id"], Pt = {
|
|
|
1679
1693
|
}, [s("path", {
|
|
1680
1694
|
fill: "currentColor",
|
|
1681
1695
|
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"
|
|
1682
|
-
})], -1)], 32)], 32), D.value ? (T(), o("div",
|
|
1696
|
+
})], -1)], 32)], 32), D.value ? (T(), o("div", Kt, [s("div", qt, [E.value ? a("", !0) : (T(), o(e, { key: 0 }, [c(P(y.value) + " result" + P(y.value === 1 ? "" : "s"), 1)], 64))]), s("div", {
|
|
1683
1697
|
role: "listbox",
|
|
1684
1698
|
id: `${R(M)}-list`,
|
|
1685
1699
|
ref_key: "listboxRef",
|
|
@@ -1690,29 +1704,29 @@ var Nt = ["id"], Pt = {
|
|
|
1690
1704
|
class: "g-search-group",
|
|
1691
1705
|
role: "group",
|
|
1692
1706
|
"aria-label": n.label
|
|
1693
|
-
}, [A(t.$slots, "group", { group: n }, () => [s("div",
|
|
1707
|
+
}, [A(t.$slots, "group", { group: n }, () => [s("div", Xt, P(n.label), 1)]), (T(!0), o(e, null, k(n.items, (e, n) => (T(), o("div", {
|
|
1694
1708
|
key: e.id,
|
|
1695
1709
|
id: "g-search-option-" + e.id,
|
|
1696
1710
|
class: _(["g-search-option", { "g-search-option-active": v.value[h.value] && v.value[h.value].id === e.id }]),
|
|
1697
1711
|
role: "option",
|
|
1698
|
-
onMousedown:
|
|
1712
|
+
onMousedown: te((t) => w(e), ["prevent"]),
|
|
1699
1713
|
"aria-selected": v.value[h.value] && v.value[h.value].id === e.id
|
|
1700
|
-
}, [A(t.$slots, "option", { option: e }, () => [c(P(e.title), 1)])], 42,
|
|
1714
|
+
}, [A(t.$slots, "option", { option: e }, () => [c(P(e.title), 1)])], 42, Zt))), 128))], 8, Yt))), 128)) : y.value > 0 ? (T(!0), o(e, { key: 1 }, k(v.value, (e, n) => (T(), o("div", {
|
|
1701
1715
|
key: e.id,
|
|
1702
1716
|
id: "g-search-option-" + e.id,
|
|
1703
1717
|
class: _(["g-search-option", { "g-search-option-active": h.value === n }]),
|
|
1704
1718
|
role: "option",
|
|
1705
|
-
onMousedown:
|
|
1719
|
+
onMousedown: te((t) => w(e), ["prevent"]),
|
|
1706
1720
|
"aria-selected": h.value === n
|
|
1707
|
-
}, [A(t.$slots, "option", { option: e }, () => [c(P(e.title), 1)])], 42,
|
|
1721
|
+
}, [A(t.$slots, "option", { option: e }, () => [c(P(e.title), 1)])], 42, Qt))), 128)) : a("", !0)], 8, Jt)])) : a("", !0)], 8, Wt));
|
|
1708
1722
|
}
|
|
1709
|
-
}),
|
|
1723
|
+
}), en = { class: /*@__PURE__*/ _({ "g-app-header": !0 }) }, tn = { class: "g-app-header__brand" }, nn = {
|
|
1710
1724
|
class: "g-app-header__brand-text",
|
|
1711
1725
|
href: "/"
|
|
1712
|
-
},
|
|
1726
|
+
}, rn = {
|
|
1713
1727
|
key: 0,
|
|
1714
1728
|
class: "g-app-header__block-i-container"
|
|
1715
|
-
},
|
|
1729
|
+
}, an = { class: "g-app-header__title" }, on = { class: "g-app-header__app-controls-wrap" }, sn = /* @__PURE__ */ u({
|
|
1716
1730
|
__name: "GAppHeader",
|
|
1717
1731
|
props: {
|
|
1718
1732
|
illinois: {
|
|
@@ -1722,10 +1736,10 @@ var Nt = ["id"], Pt = {
|
|
|
1722
1736
|
brand: { default: "GRAD" }
|
|
1723
1737
|
},
|
|
1724
1738
|
setup(e) {
|
|
1725
|
-
return (t, n) => (T(), o("header",
|
|
1739
|
+
return (t, n) => (T(), o("header", en, [
|
|
1726
1740
|
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),
|
|
1727
|
-
s("div",
|
|
1728
|
-
e.illinois ? (T(), o("div",
|
|
1741
|
+
s("div", tn, [A(t.$slots, "left", {}, () => [s("a", nn, P(e.brand), 1)])]),
|
|
1742
|
+
e.illinois ? (T(), o("div", rn, [...n[0] ||= [s("svg", {
|
|
1729
1743
|
class: "g-app-header__block-i",
|
|
1730
1744
|
role: "img",
|
|
1731
1745
|
width: "55",
|
|
@@ -1742,29 +1756,29 @@ var Nt = ["id"], Pt = {
|
|
|
1742
1756
|
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"
|
|
1743
1757
|
})
|
|
1744
1758
|
], -1)]])) : A(t.$slots, "icon", { key: 1 }),
|
|
1745
|
-
s("div",
|
|
1746
|
-
s("div",
|
|
1759
|
+
s("div", an, [A(t.$slots, "title")]),
|
|
1760
|
+
s("div", on, [A(t.$slots, "app-controls", { class: "g-app-header__app-controls" })])
|
|
1747
1761
|
]));
|
|
1748
1762
|
}
|
|
1749
1763
|
});
|
|
1750
1764
|
//#endregion
|
|
1751
1765
|
//#region src/compose/useWebComponentSidebar.ts
|
|
1752
|
-
function
|
|
1766
|
+
function cn(e) {
|
|
1753
1767
|
return e.replace(/[^a-zA-Z0-9_-]/g, "-");
|
|
1754
1768
|
}
|
|
1755
|
-
function
|
|
1769
|
+
function ln() {
|
|
1756
1770
|
let e = globalThis;
|
|
1757
1771
|
return e.__GRAD_VUE_WC_SIDEBAR_CHANNELS__ ||= /* @__PURE__ */ new Map(), e.__GRAD_VUE_WC_SIDEBAR_CHANNELS__;
|
|
1758
1772
|
}
|
|
1759
|
-
function
|
|
1760
|
-
let n =
|
|
1773
|
+
function un(e = "default", t) {
|
|
1774
|
+
let n = ln(), r = e || "default", i = typeof t == "string" ? t : t?.value, a = i && i.trim() ? i : "(max-width: 800px)";
|
|
1761
1775
|
if (!n.has(r)) {
|
|
1762
|
-
let e =
|
|
1776
|
+
let e = cn(r), t = O(a);
|
|
1763
1777
|
n.set(r, {
|
|
1764
1778
|
id: `g-wc-sidebar-${e}`,
|
|
1765
1779
|
open: O(!1),
|
|
1766
1780
|
breakpoint: t,
|
|
1767
|
-
isCollapsible:
|
|
1781
|
+
isCollapsible: le(t, { ssrWidth: 1e3 }),
|
|
1768
1782
|
toggle: () => void 0
|
|
1769
1783
|
});
|
|
1770
1784
|
}
|
|
@@ -1796,8 +1810,8 @@ function ln(e = "default", t) {
|
|
|
1796
1810
|
}
|
|
1797
1811
|
//#endregion
|
|
1798
1812
|
//#region src/compose/useScrollRestore.ts
|
|
1799
|
-
function
|
|
1800
|
-
let n = t ?
|
|
1813
|
+
function dn(e, t) {
|
|
1814
|
+
let n = t ? fe(`${t}:scroll`, 0, { writeDefaults: !1 }) : null, r = O(!!(n?.value && n.value > 0)), i = null, a = null, o = null, s = !1;
|
|
1801
1815
|
function c(e) {
|
|
1802
1816
|
let t = window.getComputedStyle(e);
|
|
1803
1817
|
return t.overflowY === "auto" || t.overflowY === "scroll";
|
|
@@ -1879,7 +1893,7 @@ function un(e, t) {
|
|
|
1879
1893
|
}
|
|
1880
1894
|
//#endregion
|
|
1881
1895
|
//#region src/components/GSidebar.vue?vue&type=script&setup=true&lang.ts
|
|
1882
|
-
var
|
|
1896
|
+
var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
1883
1897
|
__name: "GSidebar",
|
|
1884
1898
|
props: {
|
|
1885
1899
|
backgroundColor: { default: "" },
|
|
@@ -1893,7 +1907,7 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
|
|
|
1893
1907
|
storageKey: {}
|
|
1894
1908
|
},
|
|
1895
1909
|
setup(e) {
|
|
1896
|
-
let t = e, n = p("sidebar", () => void 0, !0) ?? (
|
|
1910
|
+
let t = e, n = p("sidebar", () => void 0, !0) ?? (Z() ? un(t.sidebarKey, I(t, "mediaQuery")) : 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 = B(), { isPendingScrollRestore: l } = dn(U("sidebar-ref"), t.storageKey);
|
|
1897
1911
|
function u(e) {
|
|
1898
1912
|
e.key === "Escape" && n?.isCollapsible?.value && n?.open?.value && (n.open.value = !1, document.getElementById(`${n.id}-hamburger`)?.focus());
|
|
1899
1913
|
}
|
|
@@ -1914,13 +1928,13 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
|
|
|
1914
1928
|
width: "var(--g-sidebar-width)"
|
|
1915
1929
|
}),
|
|
1916
1930
|
onKeydown: u
|
|
1917
|
-
}, [A(t.$slots, "default")], 46,
|
|
1931
|
+
}, [A(t.$slots, "default")], 46, fn));
|
|
1918
1932
|
}
|
|
1919
|
-
}),
|
|
1933
|
+
}), mn = ["id"], hn = { class: "g-sidebar-menu__list" }, gn = [
|
|
1920
1934
|
"href",
|
|
1921
1935
|
"aria-current",
|
|
1922
1936
|
"onClick"
|
|
1923
|
-
],
|
|
1937
|
+
], _n = /* @__PURE__ */ u({
|
|
1924
1938
|
__name: "GSidebarMenu",
|
|
1925
1939
|
props: /*@__PURE__*/ m({
|
|
1926
1940
|
heading: {},
|
|
@@ -1968,13 +1982,13 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
|
|
|
1968
1982
|
key: 0,
|
|
1969
1983
|
id: R(y),
|
|
1970
1984
|
class: "g-sidebar-menu__title"
|
|
1971
|
-
}, P(t.heading), 9,
|
|
1985
|
+
}, P(t.heading), 9, mn)) : a("", !0),
|
|
1972
1986
|
l[0] ||= s("div", { class: "g-sidebar-menu__divider" }, null, -1),
|
|
1973
1987
|
s("div", {
|
|
1974
1988
|
class: "g-sidebar-menu__content",
|
|
1975
1989
|
ref_key: "content",
|
|
1976
1990
|
ref: f
|
|
1977
|
-
}, [s("ul",
|
|
1991
|
+
}, [s("ul", hn, [(T(!0), o(e, null, k(t.items, (e) => (T(), o("li", {
|
|
1978
1992
|
key: e.href || e.to,
|
|
1979
1993
|
class: "g-sidebar-menu__item",
|
|
1980
1994
|
ref_for: !0,
|
|
@@ -1992,24 +2006,24 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
|
|
|
1992
2006
|
href: e.href || e.to || "#",
|
|
1993
2007
|
"aria-current": u.value === (e.href || "") ? "location" : void 0,
|
|
1994
2008
|
onClick: (t) => v(t, e)
|
|
1995
|
-
}, P(e.label), 11,
|
|
2009
|
+
}, P(e.label), 11, gn))]))), 128))])], 512)
|
|
1996
2010
|
], 16));
|
|
1997
2011
|
}
|
|
1998
|
-
}),
|
|
2012
|
+
}), vn = {
|
|
1999
2013
|
mounted(e, t) {
|
|
2000
|
-
let n = O(null), r = O(!1), i = O(!1), a = O(t.value), o = null, s = !1, c =
|
|
2001
|
-
n.value || (n.value =
|
|
2002
|
-
n.value && (r.value || i.value) &&
|
|
2014
|
+
let n = O(null), r = O(!1), i = O(!1), a = O(t.value), o = null, s = !1, c = ct(e), l = () => {
|
|
2015
|
+
n.value || (n.value = lt(a.value, c), ut(n.value), o = new ResizeObserver(() => {
|
|
2016
|
+
n.value && (r.value || i.value) && dt(e, n.value);
|
|
2003
2017
|
}), o.observe(n.value));
|
|
2004
2018
|
};
|
|
2005
2019
|
q(() => {
|
|
2006
2020
|
n.value && (n.value.textContent = a.value);
|
|
2007
2021
|
});
|
|
2008
2022
|
let u = () => {
|
|
2009
|
-
n.value && (r.value || i.value) &&
|
|
2023
|
+
n.value && (r.value || i.value) && dt(e, n.value);
|
|
2010
2024
|
};
|
|
2011
2025
|
q(() => {
|
|
2012
|
-
r.value || i.value ? (l(), n.value &&
|
|
2026
|
+
r.value || i.value ? (l(), n.value && dt(e, n.value), s ||= (window.addEventListener("scroll", u, { capture: !0 }), !0)) : (s &&= (window.removeEventListener("scroll", u, { capture: !0 }), !1), n.value && (ft(n.value), setTimeout(() => {
|
|
2013
2027
|
e.dispatchEvent(new CustomEvent("tooltip-hide"));
|
|
2014
2028
|
}, 150)));
|
|
2015
2029
|
});
|
|
@@ -2047,7 +2061,7 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
|
|
|
2047
2061
|
let t = e._v_gtooltip;
|
|
2048
2062
|
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");
|
|
2049
2063
|
}
|
|
2050
|
-
},
|
|
2064
|
+
}, yn = { class: "g-clipboard-text" }, bn = /* @__PURE__ */ u({
|
|
2051
2065
|
__name: "GClipboard",
|
|
2052
2066
|
props: {
|
|
2053
2067
|
text: {},
|
|
@@ -2055,12 +2069,12 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
|
|
|
2055
2069
|
copyLabel: {}
|
|
2056
2070
|
},
|
|
2057
2071
|
setup(t) {
|
|
2058
|
-
let n = t, r =
|
|
2072
|
+
let n = t, r = vn, { text: i, copy: l, copied: u, isSupported: d } = ae({ source: n.text }), f = O(n.copyLabel ?? "Copy to clipboard"), p = () => {
|
|
2059
2073
|
d.value ? (l(), f.value = "Copied") : f.value = "Copy not supported";
|
|
2060
2074
|
}, m = () => {
|
|
2061
2075
|
f.value = n.copyLabel ?? "Copy to clipboard";
|
|
2062
2076
|
};
|
|
2063
|
-
return (i, l) => (T(), o("div",
|
|
2077
|
+
return (i, l) => (T(), o("div", yn, [t.hideText ? a("", !0) : (T(), o(e, { key: 0 }, [c(P(n.text), 1)], 64)), Y((T(), o("button", {
|
|
2064
2078
|
type: "button",
|
|
2065
2079
|
"aria-label": "Copy",
|
|
2066
2080
|
onClick: p,
|
|
@@ -2071,21 +2085,21 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
|
|
|
2071
2085
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2072
2086
|
viewBox: "0 0 640 640",
|
|
2073
2087
|
height: "1.125rem",
|
|
2074
|
-
role: "none
|
|
2088
|
+
role: "none"
|
|
2075
2089
|
}, [s("path", {
|
|
2076
2090
|
fill: "currentColor",
|
|
2077
2091
|
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"
|
|
2078
2092
|
})], -1)]], 32)), [[R(r), f.value]])]));
|
|
2079
2093
|
}
|
|
2080
|
-
}),
|
|
2094
|
+
}), xn = { class: "g-history-scroller-wrapper" }, Sn = {
|
|
2081
2095
|
key: 0,
|
|
2082
2096
|
class: "g-history-shadow g-history-shadow--top",
|
|
2083
2097
|
"aria-hidden": "true"
|
|
2084
|
-
},
|
|
2098
|
+
}, Cn = {
|
|
2085
2099
|
key: 1,
|
|
2086
2100
|
class: "g-history-shadow g-history-shadow--bottom",
|
|
2087
2101
|
"aria-hidden": "true"
|
|
2088
|
-
},
|
|
2102
|
+
}, wn = ["role", "aria-label"], Tn = /* @__PURE__ */ u({
|
|
2089
2103
|
__name: "GHistoryScroller",
|
|
2090
2104
|
props: {
|
|
2091
2105
|
label: {},
|
|
@@ -2109,17 +2123,17 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
|
|
|
2109
2123
|
}
|
|
2110
2124
|
S(() => {
|
|
2111
2125
|
g(f);
|
|
2112
|
-
}),
|
|
2126
|
+
}), de(i, () => {
|
|
2113
2127
|
u.value && f();
|
|
2114
|
-
}),
|
|
2128
|
+
}), de(c, () => {
|
|
2115
2129
|
u.value && f();
|
|
2116
2130
|
}), K(() => n.entries, async () => {
|
|
2117
2131
|
u.value && (await g(), f());
|
|
2118
2132
|
});
|
|
2119
2133
|
let m = r(() => [...n.entries].reverse());
|
|
2120
|
-
return (n, r) => (T(), o("div",
|
|
2121
|
-
d.value ? a("", !0) : (T(), o("div",
|
|
2122
|
-
u.value ? a("", !0) : (T(), o("div",
|
|
2134
|
+
return (n, r) => (T(), o("div", xn, [
|
|
2135
|
+
d.value ? a("", !0) : (T(), o("div", Sn)),
|
|
2136
|
+
u.value ? a("", !0) : (T(), o("div", Cn)),
|
|
2123
2137
|
s("div", {
|
|
2124
2138
|
ref_key: "scrollerRef",
|
|
2125
2139
|
ref: i,
|
|
@@ -2154,31 +2168,31 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
|
|
|
2154
2168
|
key: e.id,
|
|
2155
2169
|
class: "g-history-entry",
|
|
2156
2170
|
tabindex: "-1"
|
|
2157
|
-
}, [A(n.$slots, "default", { entry: e })]))), 128))], 512)], 40,
|
|
2171
|
+
}, [A(n.$slots, "default", { entry: e })]))), 128))], 512)], 40, wn)
|
|
2158
2172
|
]));
|
|
2159
2173
|
}
|
|
2160
|
-
}),
|
|
2174
|
+
}), En = { class: "g-three-way-toggle-wrapper" }, Dn = { class: "g-three-way-toggle-control" }, On = ["id"], kn = [
|
|
2161
2175
|
"aria-labelledby",
|
|
2162
2176
|
"aria-describedby",
|
|
2163
2177
|
"disabled",
|
|
2164
2178
|
"aria-invalid",
|
|
2165
2179
|
"aria-errormessage"
|
|
2166
|
-
],
|
|
2180
|
+
], An = { key: 0 }, jn = { key: 1 }, Mn = { key: 2 }, Nn = ["for"], Pn = [
|
|
2167
2181
|
"id",
|
|
2168
2182
|
"name",
|
|
2169
2183
|
"checked",
|
|
2170
2184
|
"disabled"
|
|
2171
|
-
],
|
|
2185
|
+
], Fn = ["for"], In = [
|
|
2172
2186
|
"id",
|
|
2173
2187
|
"name",
|
|
2174
2188
|
"checked",
|
|
2175
2189
|
"disabled"
|
|
2176
|
-
],
|
|
2190
|
+
], Ln = ["for"], Rn = [
|
|
2177
2191
|
"id",
|
|
2178
2192
|
"name",
|
|
2179
2193
|
"checked",
|
|
2180
2194
|
"disabled"
|
|
2181
|
-
],
|
|
2195
|
+
], zn = ["id"], Bn = /* @__PURE__ */ u({
|
|
2182
2196
|
__name: "GThreeWayToggle",
|
|
2183
2197
|
props: /*@__PURE__*/ m({
|
|
2184
2198
|
label: {},
|
|
@@ -2212,10 +2226,10 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
|
|
|
2212
2226
|
function b(e) {
|
|
2213
2227
|
n.disabled || (e.key === "n" || e.key === "N" ? (u(!1), e.preventDefault()) : (e.key === "y" || e.key === "Y") && (u(!0), e.preventDefault()));
|
|
2214
2228
|
}
|
|
2215
|
-
return (t, n) => (T(), o("div",
|
|
2229
|
+
return (t, n) => (T(), o("div", En, [s("div", Dn, [s("span", {
|
|
2216
2230
|
class: "g-label",
|
|
2217
2231
|
id: R(p)
|
|
2218
|
-
}, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])], 8,
|
|
2232
|
+
}, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])], 8, On), s("fieldset", {
|
|
2219
2233
|
class: _(["g-three-way-toggle", { "g-has-error": e.error }]),
|
|
2220
2234
|
role: "radiogroup",
|
|
2221
2235
|
"aria-labelledby": R(p),
|
|
@@ -2227,7 +2241,7 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
|
|
|
2227
2241
|
s("span", {
|
|
2228
2242
|
class: _(["g-toggle-thumb", y.value]),
|
|
2229
2243
|
"aria-hidden": "true"
|
|
2230
|
-
}, [i.value === !1 ? (T(), o("span",
|
|
2244
|
+
}, [i.value === !1 ? (T(), o("span", An, "NO")) : i.value === !0 ? (T(), o("span", jn, "YES")) : (T(), o("span", Mn))], 2),
|
|
2231
2245
|
s("label", {
|
|
2232
2246
|
for: R(h),
|
|
2233
2247
|
class: "g-toggle-option g-left",
|
|
@@ -2241,7 +2255,7 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
|
|
|
2241
2255
|
value: "false",
|
|
2242
2256
|
disabled: e.disabled,
|
|
2243
2257
|
onChange: n[0] ||= (e) => d(!1)
|
|
2244
|
-
}, null, 40,
|
|
2258
|
+
}, null, 40, Pn), n[5] ||= s("span", { class: "ilw-sr-only" }, "No", -1)], 40, Nn),
|
|
2245
2259
|
s("label", {
|
|
2246
2260
|
for: R(g),
|
|
2247
2261
|
class: "g-toggle-option g-center",
|
|
@@ -2253,7 +2267,7 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
|
|
|
2253
2267
|
checked: i.value === null,
|
|
2254
2268
|
disabled: e.disabled,
|
|
2255
2269
|
onChange: n[2] ||= (e) => d(null)
|
|
2256
|
-
}, null, 40,
|
|
2270
|
+
}, null, 40, In), n[6] ||= s("span", { class: "ilw-sr-only" }, "Unset", -1)], 40, Fn),
|
|
2257
2271
|
s("label", {
|
|
2258
2272
|
for: R(v),
|
|
2259
2273
|
class: "g-toggle-option g-right",
|
|
@@ -2267,53 +2281,54 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
|
|
|
2267
2281
|
checked: i.value === !0,
|
|
2268
2282
|
disabled: e.disabled,
|
|
2269
2283
|
onChange: n[3] ||= (e) => d(!0)
|
|
2270
|
-
}, null, 40,
|
|
2271
|
-
], 2)], 10,
|
|
2284
|
+
}, null, 40, Rn), n[7] ||= s("span", { class: "ilw-sr-only" }, "Yes", -1)], 40, Ln)
|
|
2285
|
+
], 2)], 10, kn)]), e.error ? (T(), o("div", {
|
|
2272
2286
|
key: 0,
|
|
2273
2287
|
id: `${R(p)}-error`,
|
|
2274
2288
|
class: "g-form-error",
|
|
2275
2289
|
role: "alert",
|
|
2276
2290
|
"aria-atomic": "true"
|
|
2277
|
-
}, P(e.error), 9,
|
|
2291
|
+
}, P(e.error), 9, zn)) : a("", !0)]));
|
|
2278
2292
|
}
|
|
2279
|
-
}),
|
|
2293
|
+
}), Vn = {
|
|
2280
2294
|
ref: "tableBodyRef",
|
|
2281
2295
|
class: "efficient-table-body"
|
|
2282
|
-
},
|
|
2296
|
+
}, Hn = ["aria-rowindex"], Un = {
|
|
2283
2297
|
key: 0,
|
|
2284
2298
|
class: "table-group-checkbox"
|
|
2285
|
-
},
|
|
2299
|
+
}, Wn = ["colspan"], Gn = [
|
|
2286
2300
|
"aria-rowindex",
|
|
2287
2301
|
"onMousedown",
|
|
2288
2302
|
"onClick"
|
|
2289
|
-
],
|
|
2303
|
+
], Kn = [
|
|
2290
2304
|
"checked",
|
|
2291
2305
|
"onClick",
|
|
2292
2306
|
"aria-label",
|
|
2293
2307
|
"name"
|
|
2294
|
-
],
|
|
2308
|
+
], qn = ["id"], Jn = {
|
|
2295
2309
|
key: 0,
|
|
2296
2310
|
class: "editable-cell"
|
|
2297
|
-
},
|
|
2311
|
+
}, Yn = {
|
|
2298
2312
|
key: 0,
|
|
2299
2313
|
class: "cell-prefix"
|
|
2300
|
-
},
|
|
2314
|
+
}, Xn = [
|
|
2301
2315
|
"value",
|
|
2302
2316
|
"onChange",
|
|
2303
2317
|
"aria-labelledby",
|
|
2304
2318
|
"aria-invalid",
|
|
2319
|
+
"aria-errormessage",
|
|
2305
2320
|
"name"
|
|
2306
|
-
],
|
|
2321
|
+
], Zn = ["value"], Qn = [
|
|
2307
2322
|
"value",
|
|
2308
2323
|
"onInput",
|
|
2309
2324
|
"aria-labelledby",
|
|
2310
2325
|
"aria-invalid",
|
|
2311
2326
|
"aria-errormessage",
|
|
2312
2327
|
"name"
|
|
2313
|
-
],
|
|
2328
|
+
], $n = {
|
|
2314
2329
|
key: 3,
|
|
2315
2330
|
class: "cell-suffix"
|
|
2316
|
-
},
|
|
2331
|
+
}, er = ["id"], tr = /* @__PURE__ */ u({
|
|
2317
2332
|
__name: "GTableBody",
|
|
2318
2333
|
props: {
|
|
2319
2334
|
data: {},
|
|
@@ -2382,13 +2397,13 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
|
|
|
2382
2397
|
function C(e, t) {
|
|
2383
2398
|
if (l.changeTracker) return l.changeTracker.getError(e.key, t.key);
|
|
2384
2399
|
}
|
|
2385
|
-
return (n, r) => (T(), o("tbody",
|
|
2400
|
+
return (n, r) => (T(), o("tbody", Vn, [(T(!0), o(e, null, k(t.data, (n, l) => (T(), o(e, { key: n.key }, [t.groupBy && (l === 0 || n[t.groupBy] !== t.data[l - 1][t.groupBy]) ? (T(), o("tr", {
|
|
2386
2401
|
key: 0,
|
|
2387
2402
|
"aria-rowindex": t.startIndex + l + 2
|
|
2388
|
-
}, [t.bulkSelectionEnabled ? (T(), o("td",
|
|
2403
|
+
}, [t.bulkSelectionEnabled ? (T(), o("td", Un)) : a("", !0), s("td", {
|
|
2389
2404
|
colspan: t.columns.length,
|
|
2390
2405
|
class: "table-group-row"
|
|
2391
|
-
}, [t.groupRender ? (T(), i(j(t.groupRender(n[t.groupBy], n)), { key: 0 })) : (T(), o(e, { key: 1 }, [c(P(n[t.groupBy]), 1)], 64))], 8,
|
|
2406
|
+
}, [t.groupRender ? (T(), i(j(t.groupRender(n[t.groupBy], n)), { key: 0 })) : (T(), o(e, { key: 1 }, [c(P(n[t.groupBy]), 1)], 64))], 8, Wn)], 8, Hn)) : a("", !0), s("tr", {
|
|
2392
2407
|
class: _([
|
|
2393
2408
|
"efficient-table-row",
|
|
2394
2409
|
{
|
|
@@ -2403,7 +2418,7 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
|
|
|
2403
2418
|
}, [t.bulkSelectionEnabled ? (T(), o("td", {
|
|
2404
2419
|
key: 0,
|
|
2405
2420
|
class: "td-checkbox",
|
|
2406
|
-
onClick: r[0] ||=
|
|
2421
|
+
onClick: r[0] ||= te(() => {}, ["stop"])
|
|
2407
2422
|
}, [s("input", {
|
|
2408
2423
|
type: "checkbox",
|
|
2409
2424
|
checked: p(n.key),
|
|
@@ -2411,7 +2426,7 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
|
|
|
2411
2426
|
"aria-label": `Select row ${n.key}`,
|
|
2412
2427
|
name: `row-${n.key}-checkbox`,
|
|
2413
2428
|
class: "g-bulk-select-checkbox"
|
|
2414
|
-
}, null, 8,
|
|
2429
|
+
}, null, 8, Kn)])) : a("", !0), (T(!0), o(e, null, k(t.columns, (r) => (T(), o("td", {
|
|
2415
2430
|
key: r.key,
|
|
2416
2431
|
id: b(r) ? `${t.tableId}-td-${n.key}-${String(r.key)}` : void 0,
|
|
2417
2432
|
class: _([
|
|
@@ -2420,20 +2435,21 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
|
|
|
2420
2435
|
S(n, r) ? "g-cell-error" : "",
|
|
2421
2436
|
typeof r.tdClass == "function" ? r.tdClass(n) : r.tdClass
|
|
2422
2437
|
])
|
|
2423
|
-
}, [r.editable ? (T(), o("div",
|
|
2424
|
-
r.editable.prefix ? (T(), o("span",
|
|
2438
|
+
}, [r.editable ? (T(), o("div", Jn, [
|
|
2439
|
+
r.editable.prefix ? (T(), o("span", Yn, P(r.editable.prefix), 1)) : a("", !0),
|
|
2425
2440
|
r.editable.type === "select" ? (T(), o("select", {
|
|
2426
2441
|
key: 1,
|
|
2427
2442
|
value: n[r.key],
|
|
2428
2443
|
onChange: (e) => g(e, n, r),
|
|
2429
2444
|
"aria-labelledby": v(n, r),
|
|
2430
2445
|
"aria-invalid": S(n, r),
|
|
2446
|
+
"aria-errormessage": S(n, r) ? `${t.tableId}-error-${n.key}-${String(r.key)}` : void 0,
|
|
2431
2447
|
name: `row-${n.key}-${String(r.key)}-select`,
|
|
2432
2448
|
class: "editable-input editable-select"
|
|
2433
2449
|
}, [(T(!0), o(e, null, k(r.editable.options, (e) => (T(), o("option", {
|
|
2434
2450
|
key: e.value,
|
|
2435
2451
|
value: e.value
|
|
2436
|
-
}, P(e.label), 9,
|
|
2452
|
+
}, P(e.label), 9, Zn))), 128))], 40, Xn)) : (T(), o("input", h({
|
|
2437
2453
|
key: 2,
|
|
2438
2454
|
value: n[r.key]
|
|
2439
2455
|
}, { ref_for: !0 }, r.editable.inputAttributes, {
|
|
@@ -2447,24 +2463,24 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
|
|
|
2447
2463
|
paddingLeft: r.editable.prefix ? "1.5rem" : void 0,
|
|
2448
2464
|
paddingRight: r.editable.suffix ? "2rem" : void 0
|
|
2449
2465
|
}
|
|
2450
|
-
}), null, 16,
|
|
2451
|
-
r.editable.suffix ? (T(), o("span",
|
|
2466
|
+
}), null, 16, Qn)),
|
|
2467
|
+
r.editable.suffix ? (T(), o("span", $n, P(r.editable.suffix), 1)) : a("", !0)
|
|
2452
2468
|
])) : r.display ? (T(), i(j(r.display(n)), { key: 1 })) : (T(), o(e, { key: 2 }, [c(P(n[r.key]), 1)], 64)), S(n, r) ? (T(), o("div", {
|
|
2453
2469
|
key: 3,
|
|
2454
2470
|
role: "alert",
|
|
2455
2471
|
class: "g-cell-error-message",
|
|
2456
2472
|
id: `${t.tableId}-error-${n.key}-${String(r.key)}`
|
|
2457
|
-
}, P(C(n, r)), 9,
|
|
2473
|
+
}, P(C(n, r)), 9, er)) : a("", !0)], 10, qn))), 128))], 42, Gn)], 64))), 128))], 512));
|
|
2458
2474
|
}
|
|
2459
|
-
}),
|
|
2475
|
+
}), nr = ["id", "for"], rr = {
|
|
2460
2476
|
key: 0,
|
|
2461
2477
|
class: "g-multiselect-required",
|
|
2462
2478
|
"aria-hidden": "true"
|
|
2463
|
-
},
|
|
2479
|
+
}, ir = ["id"], ar = ["aria-labelledby"], or = { class: "g-multiselect-chip-label" }, sr = [
|
|
2464
2480
|
"aria-label",
|
|
2465
2481
|
"disabled",
|
|
2466
2482
|
"onClick"
|
|
2467
|
-
],
|
|
2483
|
+
], cr = [
|
|
2468
2484
|
"id",
|
|
2469
2485
|
"value",
|
|
2470
2486
|
"placeholder",
|
|
@@ -2474,23 +2490,23 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
|
|
|
2474
2490
|
"aria-activedescendant",
|
|
2475
2491
|
"aria-describedby",
|
|
2476
2492
|
"aria-required"
|
|
2477
|
-
],
|
|
2493
|
+
], lr = ["id"], ur = [
|
|
2478
2494
|
"id",
|
|
2479
2495
|
"aria-selected",
|
|
2480
2496
|
"onClick"
|
|
2481
|
-
],
|
|
2497
|
+
], dr = {
|
|
2482
2498
|
class: "g-multiselect-option-check",
|
|
2483
2499
|
"aria-hidden": "true"
|
|
2484
|
-
},
|
|
2500
|
+
}, fr = {
|
|
2485
2501
|
key: 0,
|
|
2486
2502
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2487
2503
|
viewBox: "0 0 640 640",
|
|
2488
2504
|
width: "1.25em"
|
|
2489
|
-
},
|
|
2505
|
+
}, pr = {
|
|
2490
2506
|
key: 1,
|
|
2491
2507
|
"aria-live": "polite",
|
|
2492
2508
|
class: "g-multiselect-option g-multiselect-no-results"
|
|
2493
|
-
},
|
|
2509
|
+
}, mr = /* @__PURE__ */ u({
|
|
2494
2510
|
__name: "GMultiSelect",
|
|
2495
2511
|
props: /*@__PURE__*/ m({
|
|
2496
2512
|
options: {},
|
|
@@ -2523,13 +2539,13 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
|
|
|
2523
2539
|
value: d,
|
|
2524
2540
|
errors: I(i, "errors"),
|
|
2525
2541
|
formKey: i.formKey
|
|
2526
|
-
}), { menuPlacement: E, menuStyle: D, isTop: A, scrollOptionIntoView: j } =
|
|
2542
|
+
}), { menuPlacement: E, menuStyle: D, isTop: A, scrollOptionIntoView: j } = Nt({
|
|
2527
2543
|
open: y,
|
|
2528
2544
|
anchorRef: m,
|
|
2529
2545
|
listboxRef: v,
|
|
2530
2546
|
baseId: f,
|
|
2531
2547
|
activeIndex: b
|
|
2532
|
-
}), M = r(() =>
|
|
2548
|
+
}), M = r(() => Mt(i.options)), N = r(() => {
|
|
2533
2549
|
if (!x.value) return M.value;
|
|
2534
2550
|
let e = x.value.toLowerCase();
|
|
2535
2551
|
return M.value.filter((t) => t.label.toLowerCase().includes(e));
|
|
@@ -2558,16 +2574,16 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
|
|
|
2558
2574
|
let t = d.value.filter((t) => t !== e);
|
|
2559
2575
|
d.value = t, u("change", t);
|
|
2560
2576
|
}
|
|
2561
|
-
function
|
|
2577
|
+
function G() {
|
|
2562
2578
|
i.disabled || (p.value?.focus(), y.value || z());
|
|
2563
2579
|
}
|
|
2564
|
-
function
|
|
2580
|
+
function K(e) {
|
|
2565
2581
|
x.value = e.target.value, b.value = 0, y.value || z();
|
|
2566
2582
|
}
|
|
2567
|
-
function
|
|
2583
|
+
function q() {
|
|
2568
2584
|
i.disabled || y.value || z();
|
|
2569
2585
|
}
|
|
2570
|
-
function
|
|
2586
|
+
function J(e) {
|
|
2571
2587
|
if (S.value) {
|
|
2572
2588
|
S.value = !1;
|
|
2573
2589
|
return;
|
|
@@ -2575,13 +2591,13 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
|
|
|
2575
2591
|
let t = e.relatedTarget;
|
|
2576
2592
|
t && v.value?.contains(t) || t && m.value?.contains(t) || H();
|
|
2577
2593
|
}
|
|
2578
|
-
function
|
|
2594
|
+
function X(e) {
|
|
2579
2595
|
e.preventDefault();
|
|
2580
2596
|
}
|
|
2581
|
-
function
|
|
2597
|
+
function ne() {
|
|
2582
2598
|
S.value = !0;
|
|
2583
2599
|
}
|
|
2584
|
-
function
|
|
2600
|
+
function re(e) {
|
|
2585
2601
|
if (i.disabled) return;
|
|
2586
2602
|
let t = N.value.length - 1;
|
|
2587
2603
|
switch (e.key) {
|
|
@@ -2611,9 +2627,9 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
|
|
|
2611
2627
|
break;
|
|
2612
2628
|
}
|
|
2613
2629
|
}
|
|
2614
|
-
let
|
|
2630
|
+
let ie = r(() => `${f}-input`), ae = r(() => `${f}-label`), oe = r(() => `${f}-instructions`), se = r(() => `error-message-${f}`), ce = r(() => {
|
|
2615
2631
|
let e = [];
|
|
2616
|
-
return i.instructions && e.push(
|
|
2632
|
+
return i.instructions && e.push(oe.value), w.value && e.push(se.value), e.length > 0 ? e.join(" ") : void 0;
|
|
2617
2633
|
});
|
|
2618
2634
|
return (n, r) => (T(), o("div", { class: _(["g-multiselect-root", {
|
|
2619
2635
|
"g-multiselect-open": y.value,
|
|
@@ -2621,50 +2637,51 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
|
|
|
2621
2637
|
}]) }, [
|
|
2622
2638
|
t.hiddenLabel ? a("", !0) : (T(), o("label", {
|
|
2623
2639
|
key: 0,
|
|
2624
|
-
id:
|
|
2625
|
-
for:
|
|
2640
|
+
id: ae.value,
|
|
2641
|
+
for: ie.value,
|
|
2626
2642
|
class: "g-multiselect-label"
|
|
2627
|
-
}, [c(P(t.label), 1), t.required ? (T(), o("span",
|
|
2643
|
+
}, [c(P(t.label), 1), t.required ? (T(), o("span", rr, " *")) : a("", !0)], 8, nr)),
|
|
2628
2644
|
t.instructions ? (T(), o("div", {
|
|
2629
2645
|
key: 1,
|
|
2630
|
-
id:
|
|
2646
|
+
id: oe.value,
|
|
2631
2647
|
class: "g-multiselect-instructions"
|
|
2632
|
-
}, P(t.instructions), 9,
|
|
2648
|
+
}, P(t.instructions), 9, ir)) : a("", !0),
|
|
2633
2649
|
s("div", {
|
|
2634
2650
|
ref_key: "controlRef",
|
|
2635
2651
|
ref: m,
|
|
2636
2652
|
class: _(["g-multiselect-control", { "g-multiselect-control--disabled": t.disabled }]),
|
|
2637
|
-
onClick:
|
|
2653
|
+
onClick: G
|
|
2638
2654
|
}, [
|
|
2639
|
-
|
|
2655
|
+
d.value.length ? (T(), o("ul", {
|
|
2656
|
+
key: 0,
|
|
2640
2657
|
class: "g-multiselect-chips",
|
|
2641
|
-
"aria-labelledby":
|
|
2658
|
+
"aria-labelledby": ae.value
|
|
2642
2659
|
}, [(T(!0), o(e, null, k(d.value, (e) => (T(), o("li", {
|
|
2643
2660
|
key: e,
|
|
2644
2661
|
class: "g-multiselect-chip"
|
|
2645
|
-
}, [s("span",
|
|
2662
|
+
}, [s("span", or, P(L(e)), 1), s("button", {
|
|
2646
2663
|
type: "button",
|
|
2647
2664
|
class: "g-multiselect-chip-remove",
|
|
2648
2665
|
"aria-label": `Remove ${L(e)}`,
|
|
2649
2666
|
disabled: t.disabled,
|
|
2650
|
-
onMousedown:
|
|
2651
|
-
onClick:
|
|
2667
|
+
onMousedown: ne,
|
|
2668
|
+
onClick: te((t) => W(e), ["stop"])
|
|
2652
2669
|
}, [...r[0] ||= [s("svg", {
|
|
2653
2670
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2654
2671
|
viewBox: "0 0 51.26 51.26",
|
|
2655
2672
|
width: "1em",
|
|
2656
|
-
role: "none
|
|
2673
|
+
role: "none"
|
|
2657
2674
|
}, [s("path", {
|
|
2658
2675
|
fill: "currentColor",
|
|
2659
2676
|
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"
|
|
2660
|
-
})], -1)]], 40,
|
|
2677
|
+
})], -1)]], 40, sr)]))), 128))], 8, ar)) : a("", !0),
|
|
2661
2678
|
s("input", h({
|
|
2662
2679
|
ref_key: "inputRef",
|
|
2663
2680
|
ref: p,
|
|
2664
2681
|
type: "text",
|
|
2665
2682
|
role: "combobox",
|
|
2666
2683
|
class: "g-multiselect-input",
|
|
2667
|
-
id:
|
|
2684
|
+
id: ie.value,
|
|
2668
2685
|
value: x.value,
|
|
2669
2686
|
placeholder: d.value.length === 0 ? t.placeholder : void 0,
|
|
2670
2687
|
disabled: t.disabled,
|
|
@@ -2675,13 +2692,13 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
|
|
|
2675
2692
|
"aria-controls": R(f) + "-listbox",
|
|
2676
2693
|
"aria-activedescendant": y.value && N.value.length > 0 ? R(f) + "-option-" + b.value : void 0
|
|
2677
2694
|
}, t.hiddenLabel ? { "aria-label": t.label } : void 0, {
|
|
2678
|
-
"aria-describedby":
|
|
2695
|
+
"aria-describedby": ce.value,
|
|
2679
2696
|
"aria-required": t.required ? "true" : void 0,
|
|
2680
|
-
onInput:
|
|
2681
|
-
onKeydown:
|
|
2682
|
-
onFocus:
|
|
2683
|
-
onBlur:
|
|
2684
|
-
}), null, 16,
|
|
2697
|
+
onInput: K,
|
|
2698
|
+
onKeydown: re,
|
|
2699
|
+
onFocus: q,
|
|
2700
|
+
onBlur: J
|
|
2701
|
+
}), null, 16, cr),
|
|
2685
2702
|
r[2] ||= s("svg", {
|
|
2686
2703
|
class: "g-multiselect-caret",
|
|
2687
2704
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2698,7 +2715,7 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
|
|
|
2698
2715
|
id: R(f) + "-listbox",
|
|
2699
2716
|
role: "listbox",
|
|
2700
2717
|
"aria-multiselectable": "true"
|
|
2701
|
-
}, t.hiddenLabel ? { "aria-label": t.label } : { "aria-labelledby":
|
|
2718
|
+
}, t.hiddenLabel ? { "aria-label": t.label } : { "aria-labelledby": ae.value }, {
|
|
2702
2719
|
class: ["g-multiselect-listbox", { "g-multiselect-listbox--above": R(E) === "above" }],
|
|
2703
2720
|
style: R(D),
|
|
2704
2721
|
tabindex: "-1"
|
|
@@ -2711,41 +2728,41 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
|
|
|
2711
2728
|
"g-multiselect-option--selected": F(e.value)
|
|
2712
2729
|
}]),
|
|
2713
2730
|
"aria-selected": F(e.value) ? "true" : "false",
|
|
2714
|
-
onMousedown:
|
|
2731
|
+
onMousedown: X,
|
|
2715
2732
|
onClick: (e) => U(t)
|
|
2716
|
-
}, [s("span",
|
|
2733
|
+
}, [s("span", dr, [F(e.value) ? (T(), o("svg", fr, [...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(" " + P(e.label), 1)], 42, ur))), 128)) : (T(), o("div", pr, " No results found. "))], 16, lr), [[ee, y.value]])
|
|
2717
2734
|
], 2),
|
|
2718
2735
|
l(je, {
|
|
2719
2736
|
errors: R(C),
|
|
2720
|
-
id:
|
|
2737
|
+
id: se.value
|
|
2721
2738
|
}, null, 8, ["errors", "id"])
|
|
2722
2739
|
], 2));
|
|
2723
2740
|
}
|
|
2724
2741
|
});
|
|
2725
2742
|
//#endregion
|
|
2726
2743
|
//#region src/compose/useFiltering.ts
|
|
2727
|
-
function
|
|
2744
|
+
function hr(e) {
|
|
2728
2745
|
if (!(Array.isArray(e) && e.length === 0) && !(e === null || e === !1 || e === "")) return e;
|
|
2729
2746
|
}
|
|
2730
|
-
function
|
|
2747
|
+
function gr(e) {
|
|
2731
2748
|
return Object.fromEntries(Object.entries(e).filter(([e, t]) => t && (!Array.isArray(t) || t.length > 0)));
|
|
2732
2749
|
}
|
|
2733
|
-
function
|
|
2750
|
+
function _r(e) {
|
|
2734
2751
|
if (e != null) return Array.isArray(e) ? e.filter((e) => e != null) : [e];
|
|
2735
2752
|
}
|
|
2736
|
-
function
|
|
2753
|
+
function vr(e) {
|
|
2737
2754
|
let t = {};
|
|
2738
2755
|
for (let [n, r] of Object.entries(F(e))) Array.isArray(r) ? r.length > 0 && (t[n] = r) : r === !0 ? t[n] = "true" : t[n] = r || void 0;
|
|
2739
2756
|
return t;
|
|
2740
2757
|
}
|
|
2741
|
-
function
|
|
2758
|
+
function yr(e) {
|
|
2742
2759
|
let t = {};
|
|
2743
2760
|
return Object.keys(e).forEach((n) => {
|
|
2744
2761
|
let r = e[n];
|
|
2745
2762
|
r != null && r !== "" && r !== !1 && (Array.isArray(r) ? r.length > 0 && (t[n] = r.map((e) => String(e))) : t[n] = String(r));
|
|
2746
2763
|
}), t;
|
|
2747
2764
|
}
|
|
2748
|
-
function
|
|
2765
|
+
function br(e, t = {}) {
|
|
2749
2766
|
let n = D(Object.fromEntries(Object.entries(e).map(([e, t]) => [e, t]))), i = t.syncWith;
|
|
2750
2767
|
if (i) {
|
|
2751
2768
|
if (i.value) {
|
|
@@ -2758,13 +2775,13 @@ function yr(e, t = {}) {
|
|
|
2758
2775
|
});
|
|
2759
2776
|
}
|
|
2760
2777
|
K(n, (e) => {
|
|
2761
|
-
i.value =
|
|
2778
|
+
i.value = yr(e);
|
|
2762
2779
|
}, { deep: !0 });
|
|
2763
2780
|
}
|
|
2764
2781
|
return {
|
|
2765
2782
|
filters: n,
|
|
2766
2783
|
isFiltered: r(() => {
|
|
2767
|
-
for (let t of Object.keys(e)) if (
|
|
2784
|
+
for (let t of Object.keys(e)) if (hr(n[t])) return !0;
|
|
2768
2785
|
return !1;
|
|
2769
2786
|
}),
|
|
2770
2787
|
clearFilters: () => {
|
|
@@ -2774,48 +2791,56 @@ function yr(e, t = {}) {
|
|
|
2774
2791
|
},
|
|
2775
2792
|
filteredColumns: r(() => {
|
|
2776
2793
|
let t = {};
|
|
2777
|
-
for (let r of Object.keys(e)) t[r] = !!
|
|
2794
|
+
for (let r of Object.keys(e)) t[r] = !!hr(n[r]);
|
|
2778
2795
|
return t;
|
|
2779
2796
|
})
|
|
2780
2797
|
};
|
|
2781
2798
|
}
|
|
2782
2799
|
//#endregion
|
|
2783
2800
|
//#region src/components/GTable.vue?vue&type=script&setup=true&lang.ts
|
|
2784
|
-
var
|
|
2801
|
+
var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
2785
2802
|
key: 0,
|
|
2786
2803
|
class: "g-table-controls"
|
|
2787
|
-
},
|
|
2804
|
+
}, Cr = { class: "g-clear-filters-wrap" }, wr = {
|
|
2788
2805
|
key: 0,
|
|
2789
2806
|
class: "pagination"
|
|
2790
|
-
},
|
|
2807
|
+
}, Tr = { class: "g-result-count" }, Er = ["aria-label", "aria-rowcount"], Dr = { class: "g-table-head" }, Or = { "aria-rowindex": "1" }, kr = {
|
|
2791
2808
|
key: 0,
|
|
2792
2809
|
scope: "col",
|
|
2793
2810
|
class: "g-th g-th-checkbox"
|
|
2794
|
-
},
|
|
2811
|
+
}, Ar = [
|
|
2795
2812
|
"checked",
|
|
2796
2813
|
"indeterminate",
|
|
2797
2814
|
"aria-label"
|
|
2798
|
-
],
|
|
2815
|
+
], jr = ["id", "aria-sort"], Mr = { class: "th-inner" }, Nr = ["onClick"], Pr = {
|
|
2799
2816
|
key: 0,
|
|
2800
2817
|
class: "sort-indicator"
|
|
2801
|
-
},
|
|
2818
|
+
}, Fr = ["aria-label"], Ir = {
|
|
2802
2819
|
key: 1,
|
|
2803
2820
|
class: "g-column-head"
|
|
2804
|
-
},
|
|
2821
|
+
}, Lr = ["onClick", "aria-label"], Rr = {
|
|
2822
|
+
key: 1,
|
|
2823
|
+
class: "g-filter-search",
|
|
2824
|
+
role: "search"
|
|
2825
|
+
}, zr = [
|
|
2826
|
+
"onUpdate:modelValue",
|
|
2827
|
+
"placeholder",
|
|
2828
|
+
"aria-label"
|
|
2829
|
+
], Br = { key: 2 }, Vr = { class: "g-filter-toggle" }, Hr = [
|
|
2805
2830
|
"onUpdate:modelValue",
|
|
2806
2831
|
"id",
|
|
2807
2832
|
"aria-describedby"
|
|
2808
|
-
],
|
|
2809
|
-
key:
|
|
2833
|
+
], Ur = ["for"], Wr = ["id"], Gr = {
|
|
2834
|
+
key: 4,
|
|
2810
2835
|
class: "g-multi-select"
|
|
2811
|
-
},
|
|
2836
|
+
}, Kr = [
|
|
2812
2837
|
"onUpdate:modelValue",
|
|
2813
2838
|
"id",
|
|
2814
2839
|
"value"
|
|
2815
|
-
],
|
|
2840
|
+
], qr = ["for"], Jr = {
|
|
2816
2841
|
key: 1,
|
|
2817
2842
|
class: "g-bulk-actions-toolbar"
|
|
2818
|
-
},
|
|
2843
|
+
}, Yr = { class: "g-selected-count" }, Xr = { class: "g-bulk-actions" }, Zr = /* @__PURE__ */ u({
|
|
2819
2844
|
__name: "GTable",
|
|
2820
2845
|
props: /*@__PURE__*/ m({
|
|
2821
2846
|
label: {},
|
|
@@ -2864,7 +2889,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
2864
2889
|
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));
|
|
2865
2890
|
}
|
|
2866
2891
|
let v = m.filtering;
|
|
2867
|
-
v ||=
|
|
2892
|
+
v ||= br({});
|
|
2868
2893
|
let { filters: b, filteredColumns: x, isFiltered: C, clearFilters: w } = v, E = r(() => m.data.map((e) => e.key)), D = r(() => p.value.filter((e) => E.value.includes(e))), j = r(() => !m.bulkSelectionEnabled || m.data.length === 0 ? !1 : D.value.length === E.value.length), M = r(() => !m.bulkSelectionEnabled || m.data.length === 0 ? !1 : D.value.length > 0 && D.value.length < E.value.length), N = O(null);
|
|
2869
2894
|
function I() {
|
|
2870
2895
|
if (j.value) p.value = p.value.filter((e) => !E.value.includes(e));
|
|
@@ -2889,7 +2914,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
2889
2914
|
function U(e) {
|
|
2890
2915
|
h("bulk-action", e, p.value);
|
|
2891
2916
|
}
|
|
2892
|
-
function
|
|
2917
|
+
function ee(e) {
|
|
2893
2918
|
let t = e.value, n = e.column.key, r = F(e.row[n]);
|
|
2894
2919
|
e.column.editable?.inputAttributes?.type === "number" && (t = e.value === "" ? null : Number(e.value)), e.row[n] = t, h("cell-change", {
|
|
2895
2920
|
row: e.row,
|
|
@@ -2898,7 +2923,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
2898
2923
|
previousValue: r
|
|
2899
2924
|
});
|
|
2900
2925
|
}
|
|
2901
|
-
let q = B(),
|
|
2926
|
+
let q = B(), X = H(), ne = r(() => m.showPagination ? !0 : !!X.pagination), re = r(() => !!(C.value || ne.value));
|
|
2902
2927
|
return S(() => {
|
|
2903
2928
|
m.rowClickable && m.bulkSelectionEnabled && console.warn("GTable: rowClickable and bulkSelectionEnabled cannot be used together. rowClickable will be ignored.");
|
|
2904
2929
|
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])) {
|
|
@@ -2910,9 +2935,9 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
2910
2935
|
let e = f.value[t.key];
|
|
2911
2936
|
f.value[t.key] = e ? [e] : [];
|
|
2912
2937
|
}
|
|
2913
|
-
}, { immediate: !0 }), (n, r) => (T(), o("div",
|
|
2914
|
-
|
|
2915
|
-
s("div",
|
|
2938
|
+
}, { immediate: !0 }), (n, r) => (T(), o("div", xr, [
|
|
2939
|
+
re.value ? (T(), o("div", Sr, [
|
|
2940
|
+
s("div", Cr, [R(C) ? (T(), i(Q, {
|
|
2916
2941
|
key: 0,
|
|
2917
2942
|
outlined: "",
|
|
2918
2943
|
size: "small",
|
|
@@ -2930,22 +2955,22 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
2930
2955
|
})], -1), s("span", { class: "g-clear-filters-text" }, " Clear Filters ", -1)]]),
|
|
2931
2956
|
_: 1
|
|
2932
2957
|
}, 8, ["onClick"])) : a("", !0)]),
|
|
2933
|
-
|
|
2934
|
-
s("span",
|
|
2958
|
+
ne.value ? (T(), o("div", wr, [A(n.$slots, "pagination")])) : a("", !0),
|
|
2959
|
+
s("span", Tr, P(m.resultCount || t.data.length) + " results", 1)
|
|
2935
2960
|
])) : a("", !0),
|
|
2936
2961
|
s("table", {
|
|
2937
2962
|
class: "g-table",
|
|
2938
2963
|
ref: "tableRef",
|
|
2939
2964
|
"aria-label": t.label,
|
|
2940
2965
|
"aria-rowcount": m.resultCount || t.data.length
|
|
2941
|
-
}, [s("thead",
|
|
2966
|
+
}, [s("thead", Dr, [s("tr", Or, [t.bulkSelectionEnabled ? (T(), o("th", kr, [s("input", {
|
|
2942
2967
|
type: "checkbox",
|
|
2943
2968
|
checked: j.value,
|
|
2944
2969
|
indeterminate: M.value,
|
|
2945
2970
|
onChange: I,
|
|
2946
2971
|
"aria-label": j.value ? "Deselect all rows" : "Select all rows",
|
|
2947
2972
|
class: "g-bulk-select-checkbox"
|
|
2948
|
-
}, null, 40,
|
|
2973
|
+
}, null, 40, Ar)])) : a("", !0), (T(!0), o(e, null, k(t.columns, (t) => (T(), o("th", {
|
|
2949
2974
|
key: t.key,
|
|
2950
2975
|
id: `${R(q)}-th-${String(t.key)}`,
|
|
2951
2976
|
"aria-sort": u.value === t.key ? d.value === 1 ? "ascending" : "descending" : "none",
|
|
@@ -2955,12 +2980,12 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
2955
2980
|
{ filtered: R(x)[t.key] }
|
|
2956
2981
|
]),
|
|
2957
2982
|
scope: "col"
|
|
2958
|
-
}, [s("div",
|
|
2983
|
+
}, [s("div", Mr, [t.sortable ? (T(), o("button", {
|
|
2959
2984
|
key: 0,
|
|
2960
2985
|
type: "button",
|
|
2961
2986
|
class: "g-column-head",
|
|
2962
2987
|
onClick: (e) => g(t)
|
|
2963
|
-
}, [c(P(t.label) + " ", 1), u.value === t.key ? (T(), o("span",
|
|
2988
|
+
}, [c(P(t.label) + " ", 1), u.value === t.key ? (T(), o("span", Pr, [(T(), o("svg", {
|
|
2964
2989
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2965
2990
|
viewBox: "0 0 640 640",
|
|
2966
2991
|
height: "1.5em",
|
|
@@ -2970,9 +2995,9 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
2970
2995
|
}, [...r[1] ||= [s("path", {
|
|
2971
2996
|
fill: "currentColor",
|
|
2972
2997
|
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"
|
|
2973
|
-
}, null, -1)]], 12,
|
|
2998
|
+
}, null, -1)]], 12, Fr))])) : a("", !0)], 8, Nr)) : (T(), o("span", Ir, P(t.label), 1)), t.filter ? (T(), i(at, { key: 2 }, {
|
|
2974
2999
|
trigger: J(({ toggle: e }) => [s("button", {
|
|
2975
|
-
onClick:
|
|
3000
|
+
onClick: te(e, ["stop"]),
|
|
2976
3001
|
"aria-label": R(x)[t.key] ? "Column Filtered" : "Filter Column",
|
|
2977
3002
|
class: _(["g-filter-btn", { "g-active": R(x)[t.key] }]),
|
|
2978
3003
|
type: "button"
|
|
@@ -2984,8 +3009,8 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
2984
3009
|
}, [s("path", {
|
|
2985
3010
|
fill: "currentColor",
|
|
2986
3011
|
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"
|
|
2987
|
-
})], -1)]], 10,
|
|
2988
|
-
default: J(() => [t.filter.type === "select" ? (T(), i(
|
|
3012
|
+
})], -1)]], 10, Lr)]),
|
|
3013
|
+
default: J(() => [t.filter.type === "select" ? (T(), i(Ut, {
|
|
2989
3014
|
key: 0,
|
|
2990
3015
|
modelValue: f.value[t.key],
|
|
2991
3016
|
"onUpdate:modelValue": (e) => f.value[t.key] = e,
|
|
@@ -2998,21 +3023,37 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
2998
3023
|
"modelValue",
|
|
2999
3024
|
"onUpdate:modelValue",
|
|
3000
3025
|
"options"
|
|
3001
|
-
])) : t.filter.type === "
|
|
3026
|
+
])) : t.filter.type === "search" ? (T(), o("div", Rr, [r[3] ||= s("span", {
|
|
3027
|
+
class: "g-filter-search-icon",
|
|
3028
|
+
"aria-hidden": "true"
|
|
3029
|
+
}, [s("svg", {
|
|
3030
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3031
|
+
viewBox: "0 0 51.26 51.26",
|
|
3032
|
+
height: "1em"
|
|
3033
|
+
}, [s("path", {
|
|
3034
|
+
fill: "currentColor",
|
|
3035
|
+
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"
|
|
3036
|
+
})])], -1), Y(s("input", {
|
|
3037
|
+
type: "search",
|
|
3038
|
+
class: "g-filter-search-input",
|
|
3039
|
+
"onUpdate:modelValue": (e) => f.value[t.key] = e,
|
|
3040
|
+
placeholder: t.filter.placeholder,
|
|
3041
|
+
"aria-label": `Search ${t.label}`
|
|
3042
|
+
}, null, 8, zr), [[G, f.value[t.key]]])])) : t.filter.type === "toggle" ? (T(), o("div", Br, [s("div", Vr, [
|
|
3002
3043
|
Y(s("input", {
|
|
3003
3044
|
type: "checkbox",
|
|
3004
3045
|
"onUpdate:modelValue": (e) => f.value[t.key] = e,
|
|
3005
3046
|
id: `${R(q)}-filter-${String(t.key)}`,
|
|
3006
3047
|
"aria-describedby": t.filter.description ? `${R(q)}-filter-description-${String(t.key)}` : void 0
|
|
3007
|
-
}, null, 8,
|
|
3008
|
-
s("label", { for: `${R(q)}-filter-${String(t.key)}` }, P(t.filter.label), 9,
|
|
3048
|
+
}, null, 8, Hr), [[W, f.value[t.key]]]),
|
|
3049
|
+
s("label", { for: `${R(q)}-filter-${String(t.key)}` }, P(t.filter.label), 9, Ur),
|
|
3009
3050
|
t.filter.description ? (T(), o("span", {
|
|
3010
3051
|
key: 0,
|
|
3011
3052
|
class: "g-filter-description",
|
|
3012
3053
|
id: `${R(q)}-filter-description-${String(t.key)}`
|
|
3013
|
-
}, P(t.filter.description), 9,
|
|
3014
|
-
])])) : t.filter.type === "multi-select" && t.filter.searchable ? (T(), i(
|
|
3015
|
-
key:
|
|
3054
|
+
}, P(t.filter.description), 9, Wr)) : a("", !0)
|
|
3055
|
+
])])) : t.filter.type === "multi-select" && t.filter.searchable ? (T(), i(mr, {
|
|
3056
|
+
key: 3,
|
|
3016
3057
|
modelValue: f.value[t.key],
|
|
3017
3058
|
"onUpdate:modelValue": (e) => f.value[t.key] = e,
|
|
3018
3059
|
options: t.filter.options,
|
|
@@ -3024,15 +3065,15 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3024
3065
|
"onUpdate:modelValue",
|
|
3025
3066
|
"options",
|
|
3026
3067
|
"placeholder"
|
|
3027
|
-
])) : t.filter.type === "multi-select" ? (T(), o("fieldset",
|
|
3028
|
-
r[
|
|
3068
|
+
])) : t.filter.type === "multi-select" ? (T(), o("fieldset", Gr, [
|
|
3069
|
+
r[5] ||= s("legend", { class: "g-multi-select-legend" }, " Include values ", -1),
|
|
3029
3070
|
(T(!0), o(e, null, k(t.filter.options, (e) => (T(), o("div", { key: e.value }, [Y(s("input", {
|
|
3030
3071
|
type: "checkbox",
|
|
3031
3072
|
"onUpdate:modelValue": (e) => f.value[t.key] = e,
|
|
3032
3073
|
id: `filter-${String(t.key)}-${e.value}`,
|
|
3033
3074
|
value: e.value,
|
|
3034
3075
|
name: "filter-multiselect"
|
|
3035
|
-
}, null, 8,
|
|
3076
|
+
}, null, 8, Kr), [[W, f.value[t.key]]]), s("label", { for: `filter-${String(t.key)}-${e.value}` }, P(e.label), 9, qr)]))), 128)),
|
|
3036
3077
|
f.value[t.key] && f.value[t.key].length ? (T(), i(Q, {
|
|
3037
3078
|
key: 0,
|
|
3038
3079
|
class: "clear-multiselect-btn",
|
|
@@ -3040,12 +3081,12 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3040
3081
|
size: "small",
|
|
3041
3082
|
onClick: (e) => f.value[t.key] = []
|
|
3042
3083
|
}, {
|
|
3043
|
-
default: J(() => [...r[
|
|
3084
|
+
default: J(() => [...r[4] ||= [c(" Clear ", -1)]]),
|
|
3044
3085
|
_: 1
|
|
3045
3086
|
}, 8, ["onClick"])) : a("", !0)
|
|
3046
3087
|
])) : a("", !0)]),
|
|
3047
3088
|
_: 2
|
|
3048
|
-
}, 1024)) : a("", !0)])], 10,
|
|
3089
|
+
}, 1024)) : a("", !0)])], 10, jr))), 128))])]), l(tr, {
|
|
3049
3090
|
data: t.data,
|
|
3050
3091
|
columns: t.columns,
|
|
3051
3092
|
"group-by": t.groupBy,
|
|
@@ -3059,7 +3100,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3059
3100
|
"change-tracker": t.changeTracker,
|
|
3060
3101
|
onRowClick: z,
|
|
3061
3102
|
onToggleRow: L,
|
|
3062
|
-
onCellChange:
|
|
3103
|
+
onCellChange: ee
|
|
3063
3104
|
}, null, 8, [
|
|
3064
3105
|
"data",
|
|
3065
3106
|
"columns",
|
|
@@ -3072,8 +3113,8 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3072
3113
|
"selected-rows",
|
|
3073
3114
|
"table-id",
|
|
3074
3115
|
"change-tracker"
|
|
3075
|
-
])], 8,
|
|
3076
|
-
t.bulkSelectionEnabled && p.value.length > 0 ? (T(), o("div",
|
|
3116
|
+
])], 8, Er),
|
|
3117
|
+
t.bulkSelectionEnabled && p.value.length > 0 ? (T(), o("div", Jr, [s("span", Yr, P(p.value.length) + " row" + P(p.value.length === 1 ? "" : "s") + " selected", 1), s("ul", Xr, [(T(!0), o(e, null, k(t.bulkActions, (e) => (T(), o("li", { key: e.id }, [l(Q, {
|
|
3077
3118
|
theme: e.theme || "accent",
|
|
3078
3119
|
onClick: (t) => U(e.id),
|
|
3079
3120
|
size: "small"
|
|
@@ -3083,10 +3124,10 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3083
3124
|
}, 1032, ["theme", "onClick"])]))), 128))])])) : a("", !0)
|
|
3084
3125
|
]));
|
|
3085
3126
|
}
|
|
3086
|
-
}),
|
|
3127
|
+
}), Qr = {
|
|
3087
3128
|
class: "g-pagination",
|
|
3088
3129
|
"aria-label": "Pagination"
|
|
3089
|
-
},
|
|
3130
|
+
}, $r = ["disabled"], ei = ["disabled"], ti = { class: "page-range" }, ni = ["disabled"], ri = ["disabled"], ii = ["value"], ai = ["value"], oi = /* @__PURE__ */ u({
|
|
3090
3131
|
__name: "GTablePagination",
|
|
3091
3132
|
props: /*@__PURE__*/ m({
|
|
3092
3133
|
start: {},
|
|
@@ -3108,7 +3149,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3108
3149
|
function h(e) {
|
|
3109
3150
|
c.value = parseInt(e.target.value, 10);
|
|
3110
3151
|
}
|
|
3111
|
-
return (t, r) => (T(), o("nav",
|
|
3152
|
+
return (t, r) => (T(), o("nav", Qr, [
|
|
3112
3153
|
s("button", {
|
|
3113
3154
|
class: "first-page g-pagination-button",
|
|
3114
3155
|
disabled: p.value === 1,
|
|
@@ -3133,7 +3174,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3133
3174
|
}),
|
|
3134
3175
|
s("path", { d: "M11 7l-5 5l5 5" }),
|
|
3135
3176
|
s("path", { d: "M17 7l-5 5l5 5" })
|
|
3136
|
-
], -1)]], 8,
|
|
3177
|
+
], -1)]], 8, $r),
|
|
3137
3178
|
s("button", {
|
|
3138
3179
|
class: "prev-page g-pagination-button",
|
|
3139
3180
|
disabled: p.value === 1,
|
|
@@ -3154,8 +3195,8 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3154
3195
|
stroke: "none",
|
|
3155
3196
|
d: "M0 0h24v24H0z",
|
|
3156
3197
|
fill: "none"
|
|
3157
|
-
}), s("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8,
|
|
3158
|
-
s("span",
|
|
3198
|
+
}), s("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8, ei),
|
|
3199
|
+
s("span", ti, P(d.value) + " to " + P(f.value), 1),
|
|
3159
3200
|
s("button", {
|
|
3160
3201
|
class: "next-page g-pagination-button",
|
|
3161
3202
|
disabled: p.value === i.value,
|
|
@@ -3176,7 +3217,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3176
3217
|
stroke: "none",
|
|
3177
3218
|
d: "M0 0h24v24H0z",
|
|
3178
3219
|
fill: "none"
|
|
3179
|
-
}), s("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8,
|
|
3220
|
+
}), s("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8, ni),
|
|
3180
3221
|
s("button", {
|
|
3181
3222
|
class: "last-page g-pagination-button",
|
|
3182
3223
|
disabled: p.value === i.value,
|
|
@@ -3201,7 +3242,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3201
3242
|
}),
|
|
3202
3243
|
s("path", { d: "M7 7l5 5l-5 5" }),
|
|
3203
3244
|
s("path", { d: "M13 7l5 5l-5 5" })
|
|
3204
|
-
], -1)]], 8,
|
|
3245
|
+
], -1)]], 8, ri),
|
|
3205
3246
|
s("select", {
|
|
3206
3247
|
id: "page-size-select",
|
|
3207
3248
|
class: "page-size-select",
|
|
@@ -3215,14 +3256,14 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3215
3256
|
], (e) => (T(), o("option", {
|
|
3216
3257
|
key: e,
|
|
3217
3258
|
value: e
|
|
3218
|
-
}, P(e), 9,
|
|
3259
|
+
}, P(e), 9, ai))), 128))], 40, ii),
|
|
3219
3260
|
r[8] ||= s("label", {
|
|
3220
3261
|
class: "page-size-label",
|
|
3221
3262
|
for: "page-size-select"
|
|
3222
3263
|
}, "per page", -1)
|
|
3223
3264
|
]));
|
|
3224
3265
|
}
|
|
3225
|
-
}),
|
|
3266
|
+
}), si = ["id"], ci = { class: "g-modal-inner" }, li = { class: "g-modal-header" }, ui = ["id"], di = ["id"], fi = /* @__PURE__ */ u({
|
|
3226
3267
|
__name: "GModal",
|
|
3227
3268
|
props: {
|
|
3228
3269
|
label: {},
|
|
@@ -3266,12 +3307,12 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3266
3307
|
ref_key: "dialog",
|
|
3267
3308
|
ref: f,
|
|
3268
3309
|
style: { zIndex: R(y) }
|
|
3269
|
-
}), [s("div",
|
|
3310
|
+
}), [s("div", ci, [s("div", li, [e.hiddenLabel ? a("", !0) : (T(), o("h2", {
|
|
3270
3311
|
key: 0,
|
|
3271
3312
|
id: "modal-label-" + R(m),
|
|
3272
3313
|
class: "g-modal-label",
|
|
3273
3314
|
tabindex: "-1"
|
|
3274
|
-
}, P(e.label), 9,
|
|
3315
|
+
}, P(e.label), 9, ui)), s("button", {
|
|
3275
3316
|
class: "g-modal-close",
|
|
3276
3317
|
onClick: w,
|
|
3277
3318
|
"aria-label": "Close"
|
|
@@ -3286,19 +3327,19 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3286
3327
|
})], -1)]])]), s("div", {
|
|
3287
3328
|
id: "modal-description-" + R(m),
|
|
3288
3329
|
class: "g-modal-content"
|
|
3289
|
-
}, [A(r.$slots, "default")], 8,
|
|
3330
|
+
}, [A(r.$slots, "default")], 8, di)])], 16, si)]),
|
|
3290
3331
|
_: 3
|
|
3291
3332
|
})]));
|
|
3292
3333
|
}
|
|
3293
|
-
}),
|
|
3334
|
+
}), pi = [
|
|
3294
3335
|
"id",
|
|
3295
3336
|
"aria-expanded",
|
|
3296
3337
|
"aria-label",
|
|
3297
3338
|
"aria-controls"
|
|
3298
|
-
],
|
|
3339
|
+
], mi = {
|
|
3299
3340
|
key: 0,
|
|
3300
3341
|
class: "g-hamburger-label"
|
|
3301
|
-
},
|
|
3342
|
+
}, hi = /* @__PURE__ */ u({
|
|
3302
3343
|
__name: "GHamburgerMenu",
|
|
3303
3344
|
props: {
|
|
3304
3345
|
label: { default: "Main Navigation" },
|
|
@@ -3311,7 +3352,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3311
3352
|
},
|
|
3312
3353
|
emits: ["toggle"],
|
|
3313
3354
|
setup(e, { emit: t }) {
|
|
3314
|
-
let n = e, r = p("sidebar") ?? (
|
|
3355
|
+
let n = e, r = p("sidebar") ?? (Z() ? un(n.sidebarKey, I(n, "mediaQuery")) : void 0), i = t;
|
|
3315
3356
|
function c() {
|
|
3316
3357
|
i("toggle"), r?.toggle();
|
|
3317
3358
|
}
|
|
@@ -3334,34 +3375,34 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3334
3375
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3335
3376
|
viewBox: "0 0 51.26 51.26",
|
|
3336
3377
|
role: "none"
|
|
3337
|
-
}, [s("g", { fill: "currentColor" }, [s("path", { d: "M11.6 16.52h28.06a3.24 3.24 0 1 0 0-6.48H11.6a3.24 3.24 0 0 0 0 6.48ZM39.66 22.07H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48ZM39.66 34.1H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48Z" })])], -1), e.labelVisible ? (T(), o("span",
|
|
3378
|
+
}, [s("g", { fill: "currentColor" }, [s("path", { d: "M11.6 16.52h28.06a3.24 3.24 0 1 0 0-6.48H11.6a3.24 3.24 0 0 0 0 6.48ZM39.66 22.07H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48ZM39.66 34.1H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48Z" })])], -1), e.labelVisible ? (T(), o("span", mi, P(e.label), 1)) : a("", !0)], 42, pi));
|
|
3338
3379
|
}
|
|
3339
|
-
}),
|
|
3380
|
+
}), gi = /* @__PURE__ */ u({
|
|
3340
3381
|
__name: "GDetailList",
|
|
3341
3382
|
props: { variant: { default: "grid" } },
|
|
3342
3383
|
setup(e) {
|
|
3343
3384
|
let t = e;
|
|
3344
3385
|
return (e, n) => (T(), o("dl", { class: _(["g-detail-list", `g-detail-list--${t.variant}`]) }, [A(e.$slots, "default")], 2));
|
|
3345
3386
|
}
|
|
3346
|
-
}),
|
|
3387
|
+
}), _i = { class: "g-detail-list-item" }, vi = { class: "g-detail-list-item__label" }, yi = { class: "g-detail-list-item__value" }, bi = /* @__PURE__ */ u({
|
|
3347
3388
|
__name: "GDetailListItem",
|
|
3348
3389
|
props: { label: {} },
|
|
3349
3390
|
setup(e) {
|
|
3350
|
-
return (t, n) => (T(), o("div",
|
|
3391
|
+
return (t, n) => (T(), o("div", _i, [s("dt", vi, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])]), s("dd", yi, [A(t.$slots, "default")])]));
|
|
3351
3392
|
}
|
|
3352
|
-
}),
|
|
3393
|
+
}), xi = {
|
|
3353
3394
|
key: 0,
|
|
3354
3395
|
class: "g-scroll-lock-overlay"
|
|
3355
|
-
},
|
|
3396
|
+
}, Si = /* @__PURE__ */ u({
|
|
3356
3397
|
__name: "GOverlay",
|
|
3357
3398
|
setup(e) {
|
|
3358
3399
|
let { hasScrollLock: t } = qe();
|
|
3359
3400
|
return (e, r) => (T(), i(n, { name: "g-fade" }, {
|
|
3360
|
-
default: J(() => [R(t) ? (T(), o("div",
|
|
3401
|
+
default: J(() => [R(t) ? (T(), o("div", xi)) : a("", !0)]),
|
|
3361
3402
|
_: 1
|
|
3362
3403
|
}));
|
|
3363
3404
|
}
|
|
3364
|
-
}),
|
|
3405
|
+
}), Ci = { class: "popover-content" }, wi = { class: "year-dropdown" }, Ti = { class: "month-selector" }, Ei = /* @__PURE__ */ u({
|
|
3365
3406
|
__name: "GTermSelectorControl",
|
|
3366
3407
|
props: /*@__PURE__*/ m({
|
|
3367
3408
|
termYears: { default: () => ["2026"] },
|
|
@@ -3382,7 +3423,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3382
3423
|
emits: ["update:modelValue"],
|
|
3383
3424
|
setup(e) {
|
|
3384
3425
|
let t = V(e, "modelValue");
|
|
3385
|
-
return (n, r) => (T(), o("div",
|
|
3426
|
+
return (n, r) => (T(), o("div", Ci, [s("div", wi, [l(Ut, {
|
|
3386
3427
|
modelValue: t.value.year,
|
|
3387
3428
|
"onUpdate:modelValue": r[0] ||= (e) => t.value.year = e,
|
|
3388
3429
|
options: e.termYears,
|
|
@@ -3391,7 +3432,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3391
3432
|
"modelValue",
|
|
3392
3433
|
"options",
|
|
3393
3434
|
"label"
|
|
3394
|
-
])]), s("div",
|
|
3435
|
+
])]), s("div", Ti, [l(bt, {
|
|
3395
3436
|
modelValue: t.value.name,
|
|
3396
3437
|
"onUpdate:modelValue": r[1] ||= (e) => t.value.name = e,
|
|
3397
3438
|
options: e.termNames,
|
|
@@ -3403,10 +3444,10 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3403
3444
|
"label"
|
|
3404
3445
|
])])]));
|
|
3405
3446
|
}
|
|
3406
|
-
}),
|
|
3447
|
+
}), Di = { class: "g-term-selector" }, Oi = { class: "g-term-label" }, ki = {
|
|
3407
3448
|
class: "g-popover-title",
|
|
3408
3449
|
tabindex: "-1"
|
|
3409
|
-
},
|
|
3450
|
+
}, Ai = /* @__PURE__ */ u({
|
|
3410
3451
|
__name: "GTermSelector",
|
|
3411
3452
|
props: /*@__PURE__*/ m({
|
|
3412
3453
|
heading: { default: "Period Selection" },
|
|
@@ -3428,7 +3469,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3428
3469
|
emits: ["update:modelValue"],
|
|
3429
3470
|
setup(e) {
|
|
3430
3471
|
let t = V(e, "modelValue");
|
|
3431
|
-
return (n, r) => (T(), o("div",
|
|
3472
|
+
return (n, r) => (T(), o("div", Di, [l(at, null, {
|
|
3432
3473
|
trigger: J(({ toggle: e }) => [l(Q, {
|
|
3433
3474
|
class: "g-term-selector-button",
|
|
3434
3475
|
theme: "none",
|
|
@@ -3437,28 +3478,28 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3437
3478
|
}, {
|
|
3438
3479
|
default: J(() => [
|
|
3439
3480
|
r[0] ||= s("span", { class: "g-calendar-icon" }, [s("svg", {
|
|
3440
|
-
role: "none
|
|
3481
|
+
role: "none",
|
|
3441
3482
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3442
3483
|
viewBox: "0 0 640 640"
|
|
3443
3484
|
}, [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),
|
|
3444
|
-
s("span",
|
|
3485
|
+
s("span", Oi, P(t.value?.name) + " " + P(t.value?.year), 1),
|
|
3445
3486
|
r[1] ||= s("span", { class: "g-caret" }, [s("svg", {
|
|
3446
|
-
role: "none
|
|
3487
|
+
role: "none",
|
|
3447
3488
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3448
3489
|
viewBox: "0 0 640 640"
|
|
3449
3490
|
}, [s("path", { d: "M300.3 440.8C312.9 451 331.4 450.3 343.1 438.6L471.1 310.6C480.3 301.4 483 287.7 478 275.7C473 263.7 461.4 256 448.5 256L192.5 256C179.6 256 167.9 263.8 162.9 275.8C157.9 287.8 160.7 301.5 169.9 310.6L297.9 438.6L300.3 440.8z" })])], -1)
|
|
3450
3491
|
]),
|
|
3451
3492
|
_: 1
|
|
3452
3493
|
}, 8, ["onClick"])]),
|
|
3453
|
-
default: J(() => [s("h2",
|
|
3494
|
+
default: J(() => [s("h2", ki, P(e.heading), 1), l(Ei, v(f(n.$props)), null, 16)]),
|
|
3454
3495
|
_: 1
|
|
3455
3496
|
})]));
|
|
3456
3497
|
}
|
|
3457
|
-
}),
|
|
3498
|
+
}), ji = { class: "g-user-menu" }, Mi = [
|
|
3458
3499
|
"aria-label",
|
|
3459
3500
|
"aria-expanded",
|
|
3460
3501
|
"onClick"
|
|
3461
|
-
],
|
|
3502
|
+
], Ni = { class: "g-user-menu__popover" }, Pi = { class: "g-user-menu__list" }, Fi = /* @__PURE__ */ u({
|
|
3462
3503
|
__name: "GUserMenu",
|
|
3463
3504
|
props: {
|
|
3464
3505
|
initials: {},
|
|
@@ -3470,7 +3511,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3470
3511
|
let n = `${B()}-email`, r = O(!1), a = U("emailHeading");
|
|
3471
3512
|
d()?.appContext?.components?.RouterLink;
|
|
3472
3513
|
let c = H();
|
|
3473
|
-
return (u, d) => (T(), o("div",
|
|
3514
|
+
return (u, d) => (T(), o("div", ji, [l(at, {
|
|
3474
3515
|
modelValue: r.value,
|
|
3475
3516
|
"onUpdate:modelValue": d[0] ||= (e) => r.value = e,
|
|
3476
3517
|
minimal: ""
|
|
@@ -3482,8 +3523,8 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3482
3523
|
"aria-expanded": r.value,
|
|
3483
3524
|
"aria-haspopup": "menu",
|
|
3484
3525
|
onClick: e
|
|
3485
|
-
}, P(t.initials), 13,
|
|
3486
|
-
default: J(() => [s("div",
|
|
3526
|
+
}, P(t.initials), 13, Mi)]),
|
|
3527
|
+
default: J(() => [s("div", Ni, [s("h2", {
|
|
3487
3528
|
id: n,
|
|
3488
3529
|
ref_key: "emailHeading",
|
|
3489
3530
|
ref: a,
|
|
@@ -3492,11 +3533,11 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3492
3533
|
}, P(t.email), 513), s("nav", {
|
|
3493
3534
|
class: "g-user-menu__nav",
|
|
3494
3535
|
"aria-labelledby": n
|
|
3495
|
-
}, [s("ul",
|
|
3536
|
+
}, [s("ul", Pi, [(T(!0), o(e, null, k(c.default(), (e, t) => (T(), o("li", { key: t }, [(T(), i(j(e)))]))), 128))])])])]),
|
|
3496
3537
|
_: 1
|
|
3497
3538
|
}, 8, ["modelValue"])]));
|
|
3498
3539
|
}
|
|
3499
|
-
}),
|
|
3540
|
+
}), Ii = /* @__PURE__ */ u({
|
|
3500
3541
|
__name: "GCurrencyInput",
|
|
3501
3542
|
props: /*@__PURE__*/ m({
|
|
3502
3543
|
label: { default: void 0 },
|
|
@@ -3547,7 +3588,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3547
3588
|
"form-key"
|
|
3548
3589
|
]));
|
|
3549
3590
|
}
|
|
3550
|
-
}),
|
|
3591
|
+
}), Li = /* @__PURE__ */ u({
|
|
3551
3592
|
__name: "GEmailInput",
|
|
3552
3593
|
props: /*@__PURE__*/ m({
|
|
3553
3594
|
label: { default: void 0 },
|
|
@@ -3592,13 +3633,13 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3592
3633
|
"instructions"
|
|
3593
3634
|
]));
|
|
3594
3635
|
}
|
|
3595
|
-
}),
|
|
3636
|
+
}), Ri = ["for"], zi = {
|
|
3596
3637
|
key: 0,
|
|
3597
3638
|
class: "g-file-input-required"
|
|
3598
|
-
},
|
|
3639
|
+
}, Bi = {
|
|
3599
3640
|
key: 0,
|
|
3600
3641
|
class: "g-file-input-box-header"
|
|
3601
|
-
},
|
|
3642
|
+
}, Vi = ["id"], Hi = [
|
|
3602
3643
|
"id",
|
|
3603
3644
|
"disabled",
|
|
3604
3645
|
"required",
|
|
@@ -3607,11 +3648,11 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3607
3648
|
"aria-invalid",
|
|
3608
3649
|
"aria-describedby",
|
|
3609
3650
|
"aria-errormessage"
|
|
3610
|
-
],
|
|
3651
|
+
], Ui = {
|
|
3611
3652
|
key: 1,
|
|
3612
3653
|
class: "g-file-input-pills",
|
|
3613
3654
|
"aria-label": "Selected files"
|
|
3614
|
-
},
|
|
3655
|
+
}, Wi = /* @__PURE__ */ u({
|
|
3615
3656
|
inheritAttrs: !1,
|
|
3616
3657
|
__name: "GFileInput",
|
|
3617
3658
|
props: /*@__PURE__*/ m({
|
|
@@ -3668,12 +3709,12 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3668
3709
|
key: 0,
|
|
3669
3710
|
for: R(d),
|
|
3670
3711
|
class: "g-file-input-label"
|
|
3671
|
-
}, [c(P(t.label) + " ", 1), t.required ? (T(), o("span",
|
|
3712
|
+
}, [c(P(t.label) + " ", 1), t.required ? (T(), o("span", zi, "*")) : a("", !0)], 8, Ri)) : a("", !0),
|
|
3672
3713
|
s("div", { class: _(["g-file-input-box", { "g-file-input-box--disabled": t.disabled }]) }, [
|
|
3673
|
-
t.instructions ? (T(), o("div",
|
|
3714
|
+
t.instructions ? (T(), o("div", Bi, [s("span", {
|
|
3674
3715
|
id: "instructions-" + R(d),
|
|
3675
3716
|
class: "g-file-input-instructions"
|
|
3676
|
-
}, P(t.instructions), 9,
|
|
3717
|
+
}, P(t.instructions), 9, Vi)])) : a("", !0),
|
|
3677
3718
|
s("input", {
|
|
3678
3719
|
id: R(d),
|
|
3679
3720
|
type: "file",
|
|
@@ -3686,13 +3727,13 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3686
3727
|
"aria-describedby": t.instructions ? "instructions-" + R(d) : void 0,
|
|
3687
3728
|
"aria-errormessage": y.value ? "error-message-" + R(d) : void 0,
|
|
3688
3729
|
onChange: g
|
|
3689
|
-
}, null, 40,
|
|
3690
|
-
t.multiple && b.value.length > 0 ? (T(), o("ul",
|
|
3730
|
+
}, null, 40, Hi),
|
|
3731
|
+
t.multiple && b.value.length > 0 ? (T(), o("ul", Ui, [(T(!0), o(e, null, k(b.value, (e) => (T(), o("li", {
|
|
3691
3732
|
key: e,
|
|
3692
3733
|
class: "g-file-input-pill"
|
|
3693
3734
|
}, [r[0] ||= s("svg", {
|
|
3694
3735
|
class: "g-file-input-pill-icon",
|
|
3695
|
-
role: "none
|
|
3736
|
+
role: "none",
|
|
3696
3737
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3697
3738
|
viewBox: "0 0 640 640"
|
|
3698
3739
|
}, [s("path", { d: "M192 64C156.7 64 128 92.7 128 128L128 512C128 547.3 156.7 576 192 576L448 576C483.3 576 512 547.3 512 512L512 234.5C512 217.5 505.3 201.2 493.3 189.2L386.7 82.7C374.7 70.7 358.5 64 341.5 64L192 64zM453.5 240L360 240C346.7 240 336 229.3 336 216L336 122.5L453.5 240z" })], -1), c(" " + P(e), 1)]))), 128))])) : a("", !0)
|
|
@@ -3703,7 +3744,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3703
3744
|
}, null, 8, ["errors", "id"])
|
|
3704
3745
|
], 2));
|
|
3705
3746
|
}
|
|
3706
|
-
}),
|
|
3747
|
+
}), Gi = /* @__PURE__ */ u({
|
|
3707
3748
|
__name: "GDateInput",
|
|
3708
3749
|
props: /*@__PURE__*/ m({
|
|
3709
3750
|
label: { default: void 0 },
|
|
@@ -3751,21 +3792,21 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3751
3792
|
"form-key"
|
|
3752
3793
|
]));
|
|
3753
3794
|
}
|
|
3754
|
-
}),
|
|
3795
|
+
}), Ki = { class: "g-date-range-input" }, qi = {
|
|
3755
3796
|
key: 0,
|
|
3756
3797
|
class: "g-date-range-input__label"
|
|
3757
|
-
},
|
|
3798
|
+
}, Ji = {
|
|
3758
3799
|
key: 0,
|
|
3759
3800
|
class: "g-date-range-input__required",
|
|
3760
3801
|
"aria-hidden": "true"
|
|
3761
|
-
},
|
|
3802
|
+
}, Yi = {
|
|
3762
3803
|
key: 1,
|
|
3763
3804
|
class: "g-date-range-input__instructions"
|
|
3764
|
-
},
|
|
3805
|
+
}, Xi = { class: "g-date-range-input__fields" }, Zi = {
|
|
3765
3806
|
key: 2,
|
|
3766
3807
|
class: "g-date-range-input__errors",
|
|
3767
3808
|
role: "alert"
|
|
3768
|
-
},
|
|
3809
|
+
}, Qi = /* @__PURE__ */ u({
|
|
3769
3810
|
__name: "GDateRangeInput",
|
|
3770
3811
|
props: /*@__PURE__*/ m({
|
|
3771
3812
|
label: { default: void 0 },
|
|
@@ -3805,10 +3846,10 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3805
3846
|
};
|
|
3806
3847
|
}), K(r, (e) => {
|
|
3807
3848
|
e.start !== i.value && (i.value = e.start), e.end !== u.value && (u.value = e.end);
|
|
3808
|
-
}, { deep: !0 }), (t, r) => (T(), o("div",
|
|
3809
|
-
n.label ? (T(), o("div",
|
|
3810
|
-
n.instructions ? (T(), o("div",
|
|
3811
|
-
s("div",
|
|
3849
|
+
}, { deep: !0 }), (t, r) => (T(), o("div", Ki, [
|
|
3850
|
+
n.label ? (T(), o("div", qi, [c(P(n.label), 1), n.required ? (T(), o("span", Ji, " *")) : a("", !0)])) : a("", !0),
|
|
3851
|
+
n.instructions ? (T(), o("div", Yi, P(n.instructions), 1)) : a("", !0),
|
|
3852
|
+
s("div", Xi, [l(Gi, {
|
|
3812
3853
|
modelValue: i.value,
|
|
3813
3854
|
"onUpdate:modelValue": r[0] ||= (e) => i.value = e,
|
|
3814
3855
|
label: n.startLabel,
|
|
@@ -3820,7 +3861,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3820
3861
|
"label",
|
|
3821
3862
|
"disabled",
|
|
3822
3863
|
"required"
|
|
3823
|
-
]), l(
|
|
3864
|
+
]), l(Gi, {
|
|
3824
3865
|
modelValue: u.value,
|
|
3825
3866
|
"onUpdate:modelValue": r[1] ||= (e) => u.value = e,
|
|
3826
3867
|
label: n.endLabel,
|
|
@@ -3833,13 +3874,13 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3833
3874
|
"disabled",
|
|
3834
3875
|
"required"
|
|
3835
3876
|
])]),
|
|
3836
|
-
R(d).length > 0 ? (T(), o("div",
|
|
3877
|
+
R(d).length > 0 ? (T(), o("div", Zi, [(T(!0), o(e, null, k(R(d), (e, t) => (T(), o("div", {
|
|
3837
3878
|
key: t,
|
|
3838
3879
|
class: "g-date-range-input__error"
|
|
3839
3880
|
}, P(e), 1))), 128))])) : a("", !0)
|
|
3840
3881
|
]));
|
|
3841
3882
|
}
|
|
3842
|
-
}),
|
|
3883
|
+
}), $i = ["action", "method"], ea = /* @__PURE__ */ u({
|
|
3843
3884
|
__name: "GForm",
|
|
3844
3885
|
props: /*@__PURE__*/ m({
|
|
3845
3886
|
action: { default: void 0 },
|
|
@@ -3851,7 +3892,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3851
3892
|
}),
|
|
3852
3893
|
emits: /*@__PURE__*/ m(["submit"], ["update:modelValue"]),
|
|
3853
3894
|
setup(e, { emit: t }) {
|
|
3854
|
-
let n = e, r = V(e, "modelValue"), i = t, a = p("form", null), s = a ?? (
|
|
3895
|
+
let n = e, r = V(e, "modelValue"), i = t, a = p("form", null), s = a ?? (Z() ? ke(n.formKey) : De());
|
|
3855
3896
|
a || E("form", s), K(() => s.values.value, (e) => {
|
|
3856
3897
|
r.value = { ...e };
|
|
3857
3898
|
}, { deep: !0 }), K(() => r.value, (e) => {
|
|
@@ -3879,9 +3920,9 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3879
3920
|
hasErrors: R(s).hasErrors.value,
|
|
3880
3921
|
values: R(s).values.value,
|
|
3881
3922
|
errors: R(s).errors.value
|
|
3882
|
-
})], 40,
|
|
3923
|
+
})], 40, $i));
|
|
3883
3924
|
}
|
|
3884
|
-
}),
|
|
3925
|
+
}), ta = /* @__PURE__ */ u({
|
|
3885
3926
|
__name: "GSubmitButton",
|
|
3886
3927
|
props: {
|
|
3887
3928
|
disabled: {
|
|
@@ -3893,32 +3934,32 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3893
3934
|
formKey: { default: "default" }
|
|
3894
3935
|
},
|
|
3895
3936
|
setup(e) {
|
|
3896
|
-
let t = e, n = z(), a = typeof n["form-key"] == "string" ? n["form-key"] : void 0, o = t.formKey || a || "default", l = p("form", null) ?? (
|
|
3937
|
+
let t = e, n = z(), a = typeof n["form-key"] == "string" ? n["form-key"] : void 0, o = t.formKey || a || "default", l = p("form", null) ?? (Z() ? ke(o) : null), u = r(() => t.disabled || (l?.isSubmitting.value ?? !1)), d = r(() => l?.isSubmitting.value ?? !1);
|
|
3897
3938
|
return (e, n) => (T(), i(Q, {
|
|
3898
3939
|
type: "submit",
|
|
3899
3940
|
disabled: u.value,
|
|
3900
3941
|
variant: t.variant,
|
|
3901
3942
|
class: "g-submit-button"
|
|
3902
3943
|
}, {
|
|
3903
|
-
default: J(() => [Y(s("span", null, P(t.loadingText), 513), [[
|
|
3944
|
+
default: J(() => [Y(s("span", null, P(t.loadingText), 513), [[ee, d.value]]), Y(s("span", null, [A(e.$slots, "default", {}, () => [n[0] ||= c("Submit", -1)])], 512), [[ee, !d.value]])]),
|
|
3904
3945
|
_: 3
|
|
3905
3946
|
}, 8, ["disabled", "variant"]));
|
|
3906
3947
|
}
|
|
3907
|
-
}),
|
|
3948
|
+
}), na = {
|
|
3908
3949
|
key: 0,
|
|
3909
3950
|
class: "g-checkbox-group__legend"
|
|
3910
|
-
},
|
|
3951
|
+
}, ra = {
|
|
3911
3952
|
key: 0,
|
|
3912
3953
|
class: "g-checkbox-group__required",
|
|
3913
3954
|
"aria-hidden": "true"
|
|
3914
|
-
},
|
|
3955
|
+
}, ia = {
|
|
3915
3956
|
key: 1,
|
|
3916
3957
|
class: "g-checkbox-group__label"
|
|
3917
|
-
},
|
|
3958
|
+
}, aa = {
|
|
3918
3959
|
key: 0,
|
|
3919
3960
|
class: "g-checkbox-group__required",
|
|
3920
3961
|
"aria-hidden": "true"
|
|
3921
|
-
},
|
|
3962
|
+
}, oa = ["id"], sa = { class: "g-checkbox-group__options" }, ca = ["for"], la = [
|
|
3922
3963
|
"id",
|
|
3923
3964
|
"type",
|
|
3924
3965
|
"name",
|
|
@@ -3927,7 +3968,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3927
3968
|
"disabled",
|
|
3928
3969
|
"required",
|
|
3929
3970
|
"onChange"
|
|
3930
|
-
],
|
|
3971
|
+
], ua = { class: "g-checkbox-group__label-text" }, da = ["id"], fa = /* @__PURE__ */ u({
|
|
3931
3972
|
__name: "GCheckboxGroup",
|
|
3932
3973
|
props: /*@__PURE__*/ m({
|
|
3933
3974
|
label: { default: void 0 },
|
|
@@ -3982,20 +4023,19 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
3982
4023
|
let n = [];
|
|
3983
4024
|
return !u.radio && u.instructions && n.push(S.value), e.hint && n.push(E(t)), u.radio ? { "aria-describedby": n.length ? n.join(" ") : void 0 } : {
|
|
3984
4025
|
"aria-describedby": n.length ? n.join(" ") : void 0,
|
|
3985
|
-
"aria-required": u.required && u.options.length > 1 ? "true" : void 0,
|
|
3986
4026
|
"aria-invalid": m.value ? "true" : "false",
|
|
3987
4027
|
"aria-errormessage": m.value ? x.value : void 0
|
|
3988
4028
|
};
|
|
3989
4029
|
}
|
|
3990
4030
|
return (n, r) => (T(), i(j(C.value ? "fieldset" : "div"), h({ class: ["g-checkbox-group", { "g-checkbox-group--error": R(m) }] }, w.value), {
|
|
3991
4031
|
default: J(() => [
|
|
3992
|
-
C.value && t.label ? (T(), o("legend",
|
|
4032
|
+
C.value && t.label ? (T(), o("legend", na, [c(P(t.label), 1), t.required ? (T(), o("span", ra, "\xA0*")) : a("", !0)])) : !C.value && t.label ? (T(), o("div", ia, [c(P(t.label), 1), t.required ? (T(), o("span", aa, "\xA0*")) : a("", !0)])) : a("", !0),
|
|
3993
4033
|
t.instructions ? (T(), o("div", {
|
|
3994
4034
|
key: 2,
|
|
3995
4035
|
id: S.value,
|
|
3996
4036
|
class: "g-checkbox-group__instructions"
|
|
3997
|
-
}, P(t.instructions), 9,
|
|
3998
|
-
s("div",
|
|
4037
|
+
}, P(t.instructions), 9, oa)) : a("", !0),
|
|
4038
|
+
s("div", sa, [(T(!0), o(e, null, k(t.options, (e, n) => (T(), o("div", {
|
|
3999
4039
|
key: e.value,
|
|
4000
4040
|
class: _(["g-checkbox-group__option-wrapper", { "g-checkbox-group__option-wrapper--disabled": e.disabled }])
|
|
4001
4041
|
}, [s("label", {
|
|
@@ -4010,11 +4050,11 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
4010
4050
|
disabled: e.disabled,
|
|
4011
4051
|
required: t.required && (t.radio && n === 0 || !t.radio && t.options.length === 1),
|
|
4012
4052
|
class: "g-checkbox-group__input"
|
|
4013
|
-
}, { ref_for: !0 }, O(e, n), { onChange: (t) => y(e.value, t.target.checked) }), null, 16,
|
|
4053
|
+
}, { ref_for: !0 }, O(e, n), { onChange: (t) => y(e.value, t.target.checked) }), null, 16, la), s("span", ua, P(e.label), 1)], 10, ca), e.hint ? (T(), o("div", {
|
|
4014
4054
|
key: 0,
|
|
4015
4055
|
id: E(n),
|
|
4016
4056
|
class: "g-checkbox-group__hint"
|
|
4017
|
-
}, P(e.hint), 9,
|
|
4057
|
+
}, P(e.hint), 9, da)) : a("", !0)], 2))), 128))]),
|
|
4018
4058
|
l(je, {
|
|
4019
4059
|
errors: R(p),
|
|
4020
4060
|
id: x.value
|
|
@@ -4023,11 +4063,11 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
4023
4063
|
_: 1
|
|
4024
4064
|
}, 16, ["class"]));
|
|
4025
4065
|
}
|
|
4026
|
-
}),
|
|
4066
|
+
}), pa = ["for"], ma = {
|
|
4027
4067
|
key: 0,
|
|
4028
4068
|
class: "g-textarea-required",
|
|
4029
4069
|
"aria-hidden": "true"
|
|
4030
|
-
},
|
|
4070
|
+
}, ha = ["id"], ga = [
|
|
4031
4071
|
"value",
|
|
4032
4072
|
"placeholder",
|
|
4033
4073
|
"disabled",
|
|
@@ -4036,11 +4076,11 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
4036
4076
|
"rows",
|
|
4037
4077
|
"maxlength",
|
|
4038
4078
|
"aria-invalid"
|
|
4039
|
-
],
|
|
4079
|
+
], _a = {
|
|
4040
4080
|
key: 2,
|
|
4041
4081
|
class: "g-textarea-char-count",
|
|
4042
4082
|
"aria-live": "polite"
|
|
4043
|
-
},
|
|
4083
|
+
}, va = /* @__PURE__ */ u({
|
|
4044
4084
|
inheritAttrs: !1,
|
|
4045
4085
|
__name: "GTextarea",
|
|
4046
4086
|
props: /*@__PURE__*/ m({
|
|
@@ -4074,7 +4114,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
4074
4114
|
}),
|
|
4075
4115
|
emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
|
|
4076
4116
|
setup(e, { emit: t }) {
|
|
4077
|
-
let n = e, i = V(e, "modelValue"), u = B(), { attrs: d, isCustomElement: f, forwardedAttrs: p } =
|
|
4117
|
+
let n = e, i = V(e, "modelValue"), u = B(), { attrs: d, isCustomElement: f, forwardedAttrs: p } = me({ omitInCustomElement: ["id"] }), m = r(() => f ? u : d.id || u), { displayErrors: v, hasErrors: y } = $({
|
|
4078
4118
|
name: n.name,
|
|
4079
4119
|
value: i,
|
|
4080
4120
|
errors: I(n, "errors"),
|
|
@@ -4113,12 +4153,12 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
4113
4153
|
key: 0,
|
|
4114
4154
|
for: m.value,
|
|
4115
4155
|
class: "g-textarea-label"
|
|
4116
|
-
}, [c(P(n.label), 1), n.required ? (T(), o("span",
|
|
4156
|
+
}, [c(P(n.label), 1), n.required ? (T(), o("span", ma, " *")) : a("", !0)], 8, pa)) : a("", !0),
|
|
4117
4157
|
t.$slots.instructions || e.instructions ? (T(), o("div", {
|
|
4118
4158
|
key: 1,
|
|
4119
4159
|
id: "instructions-" + R(u),
|
|
4120
4160
|
class: "g-textarea-instructions"
|
|
4121
|
-
}, [A(t.$slots, "instructions", {}, () => [c(P(e.instructions), 1)])], 8,
|
|
4161
|
+
}, [A(t.$slots, "instructions", {}, () => [c(P(e.instructions), 1)])], 8, ha)) : a("", !0),
|
|
4122
4162
|
s("textarea", h({
|
|
4123
4163
|
ref: "textareaEl",
|
|
4124
4164
|
value: i.value ?? "",
|
|
@@ -4139,8 +4179,8 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
4139
4179
|
onInput: w,
|
|
4140
4180
|
onBlur: E,
|
|
4141
4181
|
onPaste: D
|
|
4142
|
-
}), null, 16,
|
|
4143
|
-
n.maxlength === void 0 ? a("", !0) : (T(), o("div",
|
|
4182
|
+
}), null, 16, ga),
|
|
4183
|
+
n.maxlength === void 0 ? a("", !0) : (T(), o("div", _a, P((i.value ?? "").length) + " / " + P(n.maxlength), 1)),
|
|
4144
4184
|
l(je, {
|
|
4145
4185
|
errors: R(v),
|
|
4146
4186
|
id: "error-message-" + R(u)
|
|
@@ -4150,18 +4190,18 @@ var br = { class: "g-table-outer-wrap" }, xr = {
|
|
|
4150
4190
|
});
|
|
4151
4191
|
//#endregion
|
|
4152
4192
|
//#region src/compose/useActiveLink.ts
|
|
4153
|
-
function
|
|
4193
|
+
function ya(e, t, n) {
|
|
4154
4194
|
let r = [
|
|
4155
4195
|
0,
|
|
4156
4196
|
.25,
|
|
4157
4197
|
.5,
|
|
4158
4198
|
.75,
|
|
4159
4199
|
1
|
|
4160
|
-
], i = `${-t}px 0px 0px 0px`, a = /* @__PURE__ */ new Map(), o = O(Array.from(
|
|
4161
|
-
|
|
4162
|
-
o.value = Array.from(
|
|
4200
|
+
], i = `${-t}px 0px 0px 0px`, a = /* @__PURE__ */ new Map(), o = O(Array.from(ie(e)?.children || []));
|
|
4201
|
+
ue(e, () => {
|
|
4202
|
+
o.value = Array.from(ie(e)?.children || []);
|
|
4163
4203
|
}, { childList: !0 });
|
|
4164
|
-
let { stop: s } =
|
|
4204
|
+
let { stop: s } = ce(o, (e) => {
|
|
4165
4205
|
let t = o.value[o.value.length - 1];
|
|
4166
4206
|
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);
|
|
4167
4207
|
let r = null, i = 0;
|
|
@@ -4180,8 +4220,8 @@ function ga(e, t, n) {
|
|
|
4180
4220
|
}
|
|
4181
4221
|
//#endregion
|
|
4182
4222
|
//#region src/compose/useSidebar.ts
|
|
4183
|
-
function
|
|
4184
|
-
let t = B(), n = O(!1), r =
|
|
4223
|
+
function ba(e = "(max-width: 800px)") {
|
|
4224
|
+
let t = B(), n = O(!1), r = le(e, { ssrWidth: 1e3 });
|
|
4185
4225
|
function i(e) {
|
|
4186
4226
|
if (!r.value || !n.value) return;
|
|
4187
4227
|
let i = e.target, a = document.getElementById(`${t}-sidebar`), o = document.getElementById(`${t}-hamburger`);
|
|
@@ -4211,8 +4251,8 @@ function _a(e = "(max-width: 800px)") {
|
|
|
4211
4251
|
}
|
|
4212
4252
|
//#endregion
|
|
4213
4253
|
//#region src/compose/useTableChanges.ts
|
|
4214
|
-
function
|
|
4215
|
-
let e = M(/* @__PURE__ */ new Map()), t =
|
|
4254
|
+
function xa() {
|
|
4255
|
+
let e = M(/* @__PURE__ */ new Map()), t = X(), n = (n) => {
|
|
4216
4256
|
let r = n.column.key, i = n.row.key, a = n.value, o = n.previousValue;
|
|
4217
4257
|
e.has(i) || e.set(i, M(/* @__PURE__ */ new Map()));
|
|
4218
4258
|
let s = e.get(i), c = s.get(r), l = c ? c.previousValue : o, u = c?.error;
|
|
@@ -4314,6 +4354,6 @@ function va() {
|
|
|
4314
4354
|
};
|
|
4315
4355
|
}
|
|
4316
4356
|
//#endregion
|
|
4317
|
-
export { $,
|
|
4357
|
+
export { $, tr as A, $t as B, _r as C, yr as D, gr as E, _n as F, pt as G, jt as H, pn as I, $e as J, at as K, dn as L, Tn as M, bn as N, br as O, vn as P, Re as Q, un as R, Zr as S, vr as T, Tt as U, Ut as V, bt as W, Ke as X, Qe as Y, qe as Z, bi as _, fa as a, Q as at, fi as b, Qi as c, Li as d, ke as et, Ii as f, Si as g, Ei as h, va as i, xe as it, Bn as j, mr as k, Gi as l, Ai as m, ba as n, Ee as nt, ta as o, Fi as p, et as q, ya as r, Se as rt, ea as s, xa as t, De as tt, Wi as u, gi as v, hr as w, oi as x, hi as y, sn as z };
|
|
4318
4358
|
|
|
4319
|
-
//# sourceMappingURL=grad-vue-
|
|
4359
|
+
//# sourceMappingURL=grad-vue-BkZSETi2.js.map
|