@illinois-grad/grad-vue 3.0.18 → 3.0.19
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/{grad-vue-B8w4p-cK.js → grad-vue-6hV02JpW.js} +367 -379
- package/dist/{grad-vue-B8w4p-cK.js.map → grad-vue-6hV02JpW.js.map} +1 -1
- package/dist/grad-vue-elements.css +30 -30
- package/dist/grad-vue-elements.js +1281 -1293
- package/dist/grad-vue-elements.js.map +1 -1
- package/dist/grad-vue.css +1 -1
- package/dist/grad-vue.js +2 -2
- package/dist/plugin.js +2 -2
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Fragment as e, Teleport as t, Transition as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, getCurrentInstance as d, 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, openBlock as w, provide as T, reactive as E, ref as D, renderList as O, renderSlot as k, resolveDynamicComponent as A, shallowReactive as j, shallowRef as M, toDisplayString as N, toRaw as P, toRef as F, toValue as I, unref as L, useAttrs as R, useId as z, useModel as B, useSlots as V, useTemplateRef as H, vModelCheckbox as U, vModelText as W, vShow as ee, watch as G, watchEffect as K, withCtx as q, withDirectives as J, withModifiers as Y } from "vue";
|
|
2
|
-
import { createEventHook as
|
|
3
|
-
import { createFocusTrap as
|
|
2
|
+
import { createEventHook as te, toArray as X, tryOnScopeDispose as ne, unrefElement as re, useClipboard as ie, useDebounceFn as ae, useFocusWithin as oe, useIntersectionObserver as se, useMediaQuery as ce, useMutationObserver as le, useResizeObserver as ue, useSessionStorage as de } from "@vueuse/core";
|
|
3
|
+
import { createFocusTrap as fe } from "focus-trap";
|
|
4
4
|
//#region src/compose/useCustomElementAttrs.ts
|
|
5
|
-
function
|
|
5
|
+
function Z() {
|
|
6
6
|
return globalThis.__GRAD_VUE_IS_WEB_COMPONENTS_BUILD__ === !0;
|
|
7
7
|
}
|
|
8
8
|
function pe(e = {}) {
|
|
@@ -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 = V(), l = d(), u = z(), f = (l?.ce)?._slots?.heading?.length > 0, p = r(() => !!t.heading || !!n.heading || f);
|
|
119
|
-
T("g-tree-menu-list-type", t.listType), T("g-tree-menu-expanded-storage", t.storageKey ?
|
|
119
|
+
T("g-tree-menu-list-type", t.listType), T("g-tree-menu-expanded-storage", t.storageKey ? de(t.storageKey, {}) : null);
|
|
120
120
|
let m = E(/* @__PURE__ */ new Map());
|
|
121
121
|
T("g-tree-menu-expandable-items", m);
|
|
122
122
|
let g = D({
|
|
@@ -168,7 +168,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
168
168
|
name: "GTreeMenuList",
|
|
169
169
|
props: { listType: { default: void 0 } },
|
|
170
170
|
setup(e) {
|
|
171
|
-
let t = e, n = p("g-tree-menu-list-type", "ul"), a = r(() => t.listType ?? n ?? "ul"), o =
|
|
171
|
+
let t = e, n = p("g-tree-menu-list-type", "ul"), a = r(() => t.listType ?? n ?? "ul"), o = Z(), s = d();
|
|
172
172
|
return S(() => {
|
|
173
173
|
if (!o) return;
|
|
174
174
|
let e = s?.ce;
|
|
@@ -245,7 +245,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
245
245
|
function F(e) {
|
|
246
246
|
e.target.closest("a, button") || T();
|
|
247
247
|
}
|
|
248
|
-
let I =
|
|
248
|
+
let I = Z(), B = u?.ce;
|
|
249
249
|
S(() => {
|
|
250
250
|
I && B && B.setAttribute("role", "listitem");
|
|
251
251
|
});
|
|
@@ -347,7 +347,7 @@ function Ae(e = "default") {
|
|
|
347
347
|
//#endregion
|
|
348
348
|
//#region src/compose/useFormField.ts
|
|
349
349
|
function $(e) {
|
|
350
|
-
let t = R(), n = typeof t["form-key"] == "string" ? t["form-key"] : void 0, i = e.formKey ?? n ?? "default", a = p("form", null) ?? (
|
|
350
|
+
let t = R(), n = typeof t["form-key"] == "string" ? t["form-key"] : void 0, i = e.formKey ?? n ?? "default", a = p("form", null) ?? (Z() ? Ae(i) : null), o = r(() => {
|
|
351
351
|
let t = [];
|
|
352
352
|
return e.errors && t.push(...e.errors.value.filter(Boolean)), t;
|
|
353
353
|
}), s = r(() => o.value.length > 0), c = e.name;
|
|
@@ -556,11 +556,11 @@ var Xe = (e) => e != null;
|
|
|
556
556
|
//#region ../../node_modules/@vueuse/integrations/dist/useFocusTrap-lXZ_YG-8.js
|
|
557
557
|
function Ze(e, t = {}) {
|
|
558
558
|
let n, { immediate: i, ...a } = t, o = M(!1), s = M(!1), c = (e) => n && n.activate(e), l = (e) => n && n.deactivate(e);
|
|
559
|
-
return G(r(() =>
|
|
559
|
+
return G(r(() => X(I(e)).map((e) => {
|
|
560
560
|
let t = I(e);
|
|
561
|
-
return typeof t == "string" ? t :
|
|
561
|
+
return typeof t == "string" ? t : re(t);
|
|
562
562
|
}).filter(Xe)), (e) => {
|
|
563
|
-
if (e.length) if (!n) n =
|
|
563
|
+
if (e.length) if (!n) n = fe(e, {
|
|
564
564
|
...a,
|
|
565
565
|
onActivate() {
|
|
566
566
|
o.value = !0, t.onActivate && t.onActivate();
|
|
@@ -573,7 +573,7 @@ function Ze(e, t = {}) {
|
|
|
573
573
|
let t = n?.active;
|
|
574
574
|
n?.updateContainerElements(e), !t && i && c();
|
|
575
575
|
}
|
|
576
|
-
}, { flush: "post" }),
|
|
576
|
+
}, { flush: "post" }), ne(() => l()), {
|
|
577
577
|
hasFocus: o,
|
|
578
578
|
isPaused: s,
|
|
579
579
|
activate: c,
|
|
@@ -681,7 +681,7 @@ function tt(e, t, n, r) {
|
|
|
681
681
|
var nt = /* @__PURE__ */ u({
|
|
682
682
|
__name: "GClientOnly",
|
|
683
683
|
setup(e) {
|
|
684
|
-
let t = D(
|
|
684
|
+
let t = D(Z());
|
|
685
685
|
return S(() => {
|
|
686
686
|
t.value = !0;
|
|
687
687
|
}), (e, n) => t.value ? k(e.$slots, "default", { key: 0 }) : k(e.$slots, "fallback", { key: 1 });
|
|
@@ -727,16 +727,16 @@ var nt = /* @__PURE__ */ u({
|
|
|
727
727
|
top: 0,
|
|
728
728
|
left: 0
|
|
729
729
|
}), U = D({ left: "50%" }), W = D(!1), K = D(!1), Y = null;
|
|
730
|
-
function
|
|
730
|
+
function te() {
|
|
731
731
|
if (v.value) return v.value;
|
|
732
732
|
let e = b.value?.parentElement ?? null;
|
|
733
733
|
for (; e && e.tagName.toLowerCase() !== "g-popover";) e = e.parentElement;
|
|
734
734
|
let t = e?.previousElementSibling;
|
|
735
735
|
return t instanceof HTMLElement ? t : null;
|
|
736
736
|
}
|
|
737
|
-
function
|
|
737
|
+
function X() {
|
|
738
738
|
if (!b.value) return;
|
|
739
|
-
let e = new DOMRect(0, 0, b.value.offsetWidth, b.value.offsetHeight), t = new DOMRect(0, 0, window.innerWidth, window.innerHeight), n =
|
|
739
|
+
let e = new DOMRect(0, 0, b.value.offsetWidth, b.value.offsetHeight), t = new DOMRect(0, 0, window.innerWidth, window.innerHeight), n = te();
|
|
740
740
|
if (!n) {
|
|
741
741
|
B.value = {
|
|
742
742
|
top: Math.max((t.height - e.height) / 2, 8),
|
|
@@ -756,10 +756,10 @@ var nt = /* @__PURE__ */ u({
|
|
|
756
756
|
}
|
|
757
757
|
return G(p, (e) => {
|
|
758
758
|
e ? g(() => {
|
|
759
|
-
|
|
760
|
-
}) : (window.removeEventListener("resize",
|
|
759
|
+
X(), window.addEventListener("resize", X), window.addEventListener("scroll", X, { capture: !0 }), b.value && (Y && Y.disconnect(), Y = new ResizeObserver(() => X()), Y.observe(b.value));
|
|
760
|
+
}) : (window.removeEventListener("resize", X), window.removeEventListener("scroll", X, { capture: !0 }), Y && Y.disconnect());
|
|
761
761
|
}), x(() => {
|
|
762
|
-
window.removeEventListener("resize",
|
|
762
|
+
window.removeEventListener("resize", X), window.removeEventListener("scroll", X, { capture: !0 }), Y && Y.disconnect();
|
|
763
763
|
}), c({
|
|
764
764
|
show: P,
|
|
765
765
|
hide: I,
|
|
@@ -1331,16 +1331,16 @@ var Ft = ["id"], It = {
|
|
|
1331
1331
|
}
|
|
1332
1332
|
t && m.value && m.value.contains(t) || (i.searchable && (I.value = ""), U());
|
|
1333
1333
|
}
|
|
1334
|
-
function
|
|
1334
|
+
function te(e) {
|
|
1335
1335
|
let t = R.value[e];
|
|
1336
1336
|
t && t.value !== d.value && (d.value = t.value, u("change", t.value)), S.value = !0, U(), setTimeout(() => {
|
|
1337
1337
|
S.value = !1;
|
|
1338
1338
|
}, 100);
|
|
1339
1339
|
}
|
|
1340
|
-
function
|
|
1340
|
+
function X() {
|
|
1341
1341
|
i.disabled || (y.value ? U() : H());
|
|
1342
1342
|
}
|
|
1343
|
-
function
|
|
1343
|
+
function ne(e) {
|
|
1344
1344
|
if (i.disabled) return;
|
|
1345
1345
|
let t = R.value.length - 1;
|
|
1346
1346
|
if (!y.value && [
|
|
@@ -1367,7 +1367,7 @@ var Ft = ["id"], It = {
|
|
|
1367
1367
|
break;
|
|
1368
1368
|
case "Enter":
|
|
1369
1369
|
case " ":
|
|
1370
|
-
e.preventDefault(), y.value ?
|
|
1370
|
+
e.preventDefault(), y.value ? te(b.value) : H();
|
|
1371
1371
|
break;
|
|
1372
1372
|
case "Escape":
|
|
1373
1373
|
j.value && (e.preventDefault(), setTimeout(() => {
|
|
@@ -1376,14 +1376,14 @@ var Ft = ["id"], It = {
|
|
|
1376
1376
|
break;
|
|
1377
1377
|
}
|
|
1378
1378
|
}
|
|
1379
|
-
function
|
|
1380
|
-
|
|
1379
|
+
function re(e) {
|
|
1380
|
+
te(e);
|
|
1381
1381
|
}
|
|
1382
|
-
function
|
|
1382
|
+
function ie() {
|
|
1383
1383
|
x.value = !0;
|
|
1384
1384
|
}
|
|
1385
|
-
let
|
|
1386
|
-
function
|
|
1385
|
+
let ae = r(() => i.clearButton && d.value !== null && d.value !== void 0 && !i.disabled);
|
|
1386
|
+
function oe() {
|
|
1387
1387
|
i.disabled || (d.value = null, u("change", null), i.searchable && (I.value = ""));
|
|
1388
1388
|
}
|
|
1389
1389
|
return (n, r) => (w(), o("div", { class: _(["g-select-root g-select-combo", {
|
|
@@ -1412,7 +1412,7 @@ var Ft = ["id"], It = {
|
|
|
1412
1412
|
disabled: i.disabled,
|
|
1413
1413
|
onFocus: W,
|
|
1414
1414
|
onInput: K,
|
|
1415
|
-
onKeydown:
|
|
1415
|
+
onKeydown: ne,
|
|
1416
1416
|
onBlur: q,
|
|
1417
1417
|
"aria-autocomplete": "list",
|
|
1418
1418
|
"aria-controls": L(f) + "-listbox",
|
|
@@ -1424,11 +1424,11 @@ var Ft = ["id"], It = {
|
|
|
1424
1424
|
role: "combobox",
|
|
1425
1425
|
autocomplete: "off"
|
|
1426
1426
|
}), null, 16, zt),
|
|
1427
|
-
|
|
1427
|
+
ae.value ? (w(), o("button", {
|
|
1428
1428
|
key: 0,
|
|
1429
1429
|
type: "button",
|
|
1430
1430
|
class: "g-select-clear-btn",
|
|
1431
|
-
onClick:
|
|
1431
|
+
onClick: oe
|
|
1432
1432
|
}, [...r[0] ||= [s("svg", {
|
|
1433
1433
|
role: "img",
|
|
1434
1434
|
"aria-label": "Clear Selection",
|
|
@@ -1463,17 +1463,17 @@ var Ft = ["id"], It = {
|
|
|
1463
1463
|
}, t.hiddenLabel ? { "aria-label": i.label } : { "aria-labelledby": L(f) + "-label" }, {
|
|
1464
1464
|
"aria-activedescendant": y.value ? L(f) + "-option-" + b.value : void 0,
|
|
1465
1465
|
tabindex: "0",
|
|
1466
|
-
onClick:
|
|
1467
|
-
onKeydown:
|
|
1466
|
+
onClick: X,
|
|
1467
|
+
onKeydown: ne,
|
|
1468
1468
|
onFocus: W,
|
|
1469
1469
|
onBlur: q
|
|
1470
1470
|
}), [
|
|
1471
1471
|
c(N(P.value[V.value] ? P.value[V.value].label : "") + " ", 1),
|
|
1472
|
-
|
|
1472
|
+
ae.value ? (w(), o("button", {
|
|
1473
1473
|
key: 0,
|
|
1474
1474
|
type: "button",
|
|
1475
1475
|
class: "g-select-clear-btn",
|
|
1476
|
-
onClick: Y(
|
|
1476
|
+
onClick: Y(oe, ["stop"])
|
|
1477
1477
|
}, [...r[2] ||= [s("svg", {
|
|
1478
1478
|
role: "img",
|
|
1479
1479
|
"aria-label": "Clear Selection",
|
|
@@ -1510,8 +1510,8 @@ var Ft = ["id"], It = {
|
|
|
1510
1510
|
}]),
|
|
1511
1511
|
role: "option",
|
|
1512
1512
|
"aria-selected": e.value === d.value ? "true" : "false",
|
|
1513
|
-
onMousedown:
|
|
1514
|
-
onClick: (e) =>
|
|
1513
|
+
onMousedown: ie,
|
|
1514
|
+
onClick: (e) => re(t)
|
|
1515
1515
|
}, [k(n.$slots, "option", {
|
|
1516
1516
|
option: e,
|
|
1517
1517
|
selected: e.value === d.value,
|
|
@@ -1571,7 +1571,7 @@ var Ft = ["id"], It = {
|
|
|
1571
1571
|
e && e.scrollIntoView({ block: "nearest" });
|
|
1572
1572
|
});
|
|
1573
1573
|
}
|
|
1574
|
-
let { focused: S } =
|
|
1574
|
+
let { focused: S } = oe(f);
|
|
1575
1575
|
function C(e) {
|
|
1576
1576
|
let t = e.altKey;
|
|
1577
1577
|
if (e.key === "ArrowDown") {
|
|
@@ -1595,7 +1595,7 @@ var Ft = ["id"], It = {
|
|
|
1595
1595
|
function T(e) {
|
|
1596
1596
|
d("select", e), l.value = "", m.value = !0, h.value = -1;
|
|
1597
1597
|
}
|
|
1598
|
-
let E = r(() => !!u.loading), A = r(() => S.value && !m.value), j =
|
|
1598
|
+
let E = r(() => !!u.loading), A = r(() => S.value && !m.value), j = ae(() => {
|
|
1599
1599
|
d("submit", l.value);
|
|
1600
1600
|
}, 300);
|
|
1601
1601
|
G(() => l.value, (e) => {
|
|
@@ -1725,7 +1725,7 @@ function pn(e = "default", t) {
|
|
|
1725
1725
|
id: `g-wc-sidebar-${e}`,
|
|
1726
1726
|
open: D(!1),
|
|
1727
1727
|
breakpoint: t,
|
|
1728
|
-
isCollapsible:
|
|
1728
|
+
isCollapsible: ce(t, { ssrWidth: 1e3 }),
|
|
1729
1729
|
toggle: () => void 0
|
|
1730
1730
|
});
|
|
1731
1731
|
}
|
|
@@ -1758,7 +1758,7 @@ function pn(e = "default", t) {
|
|
|
1758
1758
|
//#endregion
|
|
1759
1759
|
//#region src/compose/useScrollRestore.ts
|
|
1760
1760
|
function mn(e, t) {
|
|
1761
|
-
let n = t ?
|
|
1761
|
+
let n = t ? de(`${t}:scroll`, 0, { writeDefaults: !1 }) : null, r = D(!!(n?.value && n.value > 0)), i = null, a = null, o = null, s = !1;
|
|
1762
1762
|
function c(e) {
|
|
1763
1763
|
let t = window.getComputedStyle(e);
|
|
1764
1764
|
return t.overflowY === "auto" || t.overflowY === "scroll";
|
|
@@ -1854,7 +1854,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
1854
1854
|
storageKey: {}
|
|
1855
1855
|
},
|
|
1856
1856
|
setup(e) {
|
|
1857
|
-
let t = e, n = p("sidebar", () => void 0, !0) ?? (
|
|
1857
|
+
let t = e, n = p("sidebar", () => void 0, !0) ?? (Z() ? pn(t.sidebarKey, F(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 = z(), { isPendingScrollRestore: l } = mn(H("sidebar-ref"), t.storageKey);
|
|
1858
1858
|
function u(e) {
|
|
1859
1859
|
e.key === "Escape" && n?.isCollapsible?.value && n?.open?.value && (n.open.value = !1, document.getElementById(`${n.id}-hamburger`)?.focus());
|
|
1860
1860
|
}
|
|
@@ -2016,7 +2016,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2016
2016
|
copyLabel: {}
|
|
2017
2017
|
},
|
|
2018
2018
|
setup(t) {
|
|
2019
|
-
let n = t, r = xn, { text: i, copy: l, copied: u, isSupported: d } =
|
|
2019
|
+
let n = t, r = xn, { text: i, copy: l, copied: u, isSupported: d } = ie({ source: n.text }), f = D(n.copyLabel ?? "Copy to clipboard"), p = () => {
|
|
2020
2020
|
d.value ? (l(), f.value = "Copied") : f.value = "Copy not supported";
|
|
2021
2021
|
}, m = () => {
|
|
2022
2022
|
f.value = n.copyLabel ?? "Copy to clipboard";
|
|
@@ -2070,9 +2070,9 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2070
2070
|
}
|
|
2071
2071
|
S(() => {
|
|
2072
2072
|
g(f);
|
|
2073
|
-
}),
|
|
2073
|
+
}), ue(i, () => {
|
|
2074
2074
|
u.value && f();
|
|
2075
|
-
}),
|
|
2075
|
+
}), ue(c, () => {
|
|
2076
2076
|
u.value && f();
|
|
2077
2077
|
}), G(() => n.entries, async () => {
|
|
2078
2078
|
u.value && (await g(), f());
|
|
@@ -2537,7 +2537,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2537
2537
|
function q() {
|
|
2538
2538
|
i.disabled || y.value || V();
|
|
2539
2539
|
}
|
|
2540
|
-
function
|
|
2540
|
+
function te(e) {
|
|
2541
2541
|
if (S.value) {
|
|
2542
2542
|
S.value = !1;
|
|
2543
2543
|
return;
|
|
@@ -2545,13 +2545,13 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2545
2545
|
let t = e.relatedTarget;
|
|
2546
2546
|
t && v.value?.contains(t) || t && m.value?.contains(t) || H();
|
|
2547
2547
|
}
|
|
2548
|
-
function
|
|
2548
|
+
function X(e) {
|
|
2549
2549
|
e.preventDefault();
|
|
2550
2550
|
}
|
|
2551
|
-
function
|
|
2551
|
+
function ne() {
|
|
2552
2552
|
S.value = !0;
|
|
2553
2553
|
}
|
|
2554
|
-
function
|
|
2554
|
+
function re(e) {
|
|
2555
2555
|
if (i.disabled) return;
|
|
2556
2556
|
let t = P.value.length - 1;
|
|
2557
2557
|
switch (e.key) {
|
|
@@ -2581,9 +2581,9 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2581
2581
|
break;
|
|
2582
2582
|
}
|
|
2583
2583
|
}
|
|
2584
|
-
let
|
|
2584
|
+
let ie = r(() => `${f}-input`), ae = r(() => `${f}-label`), oe = r(() => `${f}-instructions`), se = r(() => `error-message-${f}`), ce = r(() => {
|
|
2585
2585
|
let e = [];
|
|
2586
|
-
return i.instructions && e.push(
|
|
2586
|
+
return i.instructions && e.push(oe.value), T.value && e.push(se.value), e.length > 0 ? e.join(" ") : void 0;
|
|
2587
2587
|
});
|
|
2588
2588
|
return (n, r) => (w(), o("div", { class: _(["g-multiselect-root", {
|
|
2589
2589
|
"g-multiselect-open": y.value,
|
|
@@ -2591,13 +2591,13 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2591
2591
|
}]) }, [
|
|
2592
2592
|
t.hiddenLabel ? a("", !0) : (w(), o("label", {
|
|
2593
2593
|
key: 0,
|
|
2594
|
-
id:
|
|
2595
|
-
for:
|
|
2594
|
+
id: ae.value,
|
|
2595
|
+
for: ie.value,
|
|
2596
2596
|
class: "g-multiselect-label"
|
|
2597
2597
|
}, [c(N(t.label), 1), t.required ? (w(), o("span", or, " *")) : a("", !0)], 8, ar)),
|
|
2598
2598
|
t.instructions ? (w(), o("div", {
|
|
2599
2599
|
key: 1,
|
|
2600
|
-
id:
|
|
2600
|
+
id: oe.value,
|
|
2601
2601
|
class: "g-multiselect-instructions"
|
|
2602
2602
|
}, N(t.instructions), 9, sr)) : a("", !0),
|
|
2603
2603
|
s("div", {
|
|
@@ -2609,7 +2609,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2609
2609
|
d.value.length ? (w(), o("ul", {
|
|
2610
2610
|
key: 0,
|
|
2611
2611
|
class: "g-multiselect-chips",
|
|
2612
|
-
"aria-labelledby":
|
|
2612
|
+
"aria-labelledby": ae.value
|
|
2613
2613
|
}, [(w(!0), o(e, null, O(d.value, (e) => (w(), o("li", {
|
|
2614
2614
|
key: e,
|
|
2615
2615
|
class: "g-multiselect-chip"
|
|
@@ -2618,7 +2618,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2618
2618
|
class: "g-multiselect-chip-remove",
|
|
2619
2619
|
"aria-label": `Remove ${R(e)}`,
|
|
2620
2620
|
disabled: t.disabled,
|
|
2621
|
-
onMousedown:
|
|
2621
|
+
onMousedown: ne,
|
|
2622
2622
|
onClick: Y((t) => W(e), ["stop"])
|
|
2623
2623
|
}, [...r[0] ||= [s("svg", {
|
|
2624
2624
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2635,7 +2635,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2635
2635
|
type: "text",
|
|
2636
2636
|
role: "combobox",
|
|
2637
2637
|
class: "g-multiselect-input",
|
|
2638
|
-
id:
|
|
2638
|
+
id: ie.value,
|
|
2639
2639
|
value: x.value,
|
|
2640
2640
|
placeholder: d.value.length === 0 ? t.placeholder : void 0,
|
|
2641
2641
|
disabled: t.disabled,
|
|
@@ -2646,12 +2646,12 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2646
2646
|
"aria-controls": L(f) + "-listbox",
|
|
2647
2647
|
"aria-activedescendant": y.value && P.value.length > 0 ? L(f) + "-option-" + b.value : void 0
|
|
2648
2648
|
}, t.hiddenLabel ? { "aria-label": t.label } : void 0, {
|
|
2649
|
-
"aria-describedby":
|
|
2649
|
+
"aria-describedby": ce.value,
|
|
2650
2650
|
"aria-required": t.required ? "true" : void 0,
|
|
2651
2651
|
onInput: K,
|
|
2652
|
-
onKeydown:
|
|
2652
|
+
onKeydown: re,
|
|
2653
2653
|
onFocus: q,
|
|
2654
|
-
onBlur:
|
|
2654
|
+
onBlur: te
|
|
2655
2655
|
}), null, 16, dr),
|
|
2656
2656
|
r[2] ||= s("svg", {
|
|
2657
2657
|
class: "g-multiselect-caret",
|
|
@@ -2669,7 +2669,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2669
2669
|
id: L(f) + "-listbox",
|
|
2670
2670
|
role: "listbox",
|
|
2671
2671
|
"aria-multiselectable": "true"
|
|
2672
|
-
}, t.hiddenLabel ? { "aria-label": t.label } : { "aria-labelledby":
|
|
2672
|
+
}, t.hiddenLabel ? { "aria-label": t.label } : { "aria-labelledby": ae.value }, {
|
|
2673
2673
|
class: ["g-multiselect-listbox", { "g-multiselect-listbox--above": L(E) === "above" }],
|
|
2674
2674
|
style: L(k),
|
|
2675
2675
|
tabindex: "-1"
|
|
@@ -2682,41 +2682,159 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2682
2682
|
"g-multiselect-option--selected": I(e.value)
|
|
2683
2683
|
}]),
|
|
2684
2684
|
"aria-selected": I(e.value) ? "true" : "false",
|
|
2685
|
-
onMousedown:
|
|
2685
|
+
onMousedown: X,
|
|
2686
2686
|
onClick: (e) => U(t)
|
|
2687
2687
|
}, [s("span", mr, [I(e.value) ? (w(), o("svg", hr, [...r[1] ||= [s("path", { d: "M530.8 134.1C545.1 144.5 548.3 164.5 537.9 178.8L281.9 530.8C276.4 538.4 267.9 543.1 258.5 543.9C249.1 544.7 240 541.2 233.4 534.6L105.4 406.6C92.9 394.1 92.9 373.8 105.4 361.3C117.9 348.8 138.2 348.8 150.7 361.3L252.2 462.8L486.2 141.1C496.6 126.8 516.6 123.6 530.9 134z" }, null, -1)]])) : a("", !0)]), s("span", gr, [s("span", _r, N(e.label), 1), e.description ? (w(), o("span", vr, N(e.description), 1)) : a("", !0)])], 42, pr))), 128)) : (w(), o("div", yr, " No results found. "))], 16, fr), [[ee, y.value]])
|
|
2688
2688
|
], 2),
|
|
2689
2689
|
l(Me, {
|
|
2690
2690
|
errors: L(C),
|
|
2691
|
-
id:
|
|
2691
|
+
id: se.value
|
|
2692
2692
|
}, null, 8, ["errors", "id"])
|
|
2693
2693
|
], 2));
|
|
2694
2694
|
}
|
|
2695
|
+
}), xr = {
|
|
2696
|
+
key: 0,
|
|
2697
|
+
class: "g-checkbox-group__legend"
|
|
2698
|
+
}, Sr = {
|
|
2699
|
+
key: 0,
|
|
2700
|
+
class: "g-checkbox-group__required",
|
|
2701
|
+
"aria-hidden": "true"
|
|
2702
|
+
}, Cr = {
|
|
2703
|
+
key: 1,
|
|
2704
|
+
class: "g-checkbox-group__label"
|
|
2705
|
+
}, wr = {
|
|
2706
|
+
key: 0,
|
|
2707
|
+
class: "g-checkbox-group__required",
|
|
2708
|
+
"aria-hidden": "true"
|
|
2709
|
+
}, Tr = ["id"], Er = { class: "g-checkbox-group__options" }, Dr = ["for"], Or = [
|
|
2710
|
+
"id",
|
|
2711
|
+
"type",
|
|
2712
|
+
"name",
|
|
2713
|
+
"value",
|
|
2714
|
+
"checked",
|
|
2715
|
+
"disabled",
|
|
2716
|
+
"required",
|
|
2717
|
+
"onChange"
|
|
2718
|
+
], kr = { class: "g-checkbox-group__label-text" }, Ar = ["id"], jr = /* @__PURE__ */ u({
|
|
2719
|
+
__name: "GCheckboxGroup",
|
|
2720
|
+
props: /*@__PURE__*/ m({
|
|
2721
|
+
label: { default: void 0 },
|
|
2722
|
+
options: {},
|
|
2723
|
+
instructions: { default: "" },
|
|
2724
|
+
errors: { default: () => [] },
|
|
2725
|
+
required: {
|
|
2726
|
+
type: Boolean,
|
|
2727
|
+
default: !1
|
|
2728
|
+
},
|
|
2729
|
+
radio: {
|
|
2730
|
+
type: Boolean,
|
|
2731
|
+
default: !1
|
|
2732
|
+
},
|
|
2733
|
+
name: { default: void 0 },
|
|
2734
|
+
formKey: { default: void 0 }
|
|
2735
|
+
}, {
|
|
2736
|
+
modelValue: { default: () => [] },
|
|
2737
|
+
modelModifiers: {}
|
|
2738
|
+
}),
|
|
2739
|
+
emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
|
|
2740
|
+
setup(t, { emit: n }) {
|
|
2741
|
+
let u = t, d = B(t, "modelValue"), f = z(), { displayErrors: p, hasErrors: m } = $({
|
|
2742
|
+
name: u.name,
|
|
2743
|
+
value: d,
|
|
2744
|
+
errors: F(u, "errors"),
|
|
2745
|
+
formKey: u.formKey
|
|
2746
|
+
}), g = n;
|
|
2747
|
+
function v(e) {
|
|
2748
|
+
return d.value.includes(e);
|
|
2749
|
+
}
|
|
2750
|
+
function y(e, t) {
|
|
2751
|
+
let n;
|
|
2752
|
+
n = u.radio ? t ? [e] : [] : t ? d.value.includes(e) ? d.value : [...d.value, e] : d.value.filter((t) => t !== e), d.value = n, g("change", n);
|
|
2753
|
+
}
|
|
2754
|
+
let b = r(() => u.radio ? "radio" : "checkbox"), x = r(() => `error-message-${f}`), S = r(() => `instructions-${f}`), C = r(() => u.radio || u.options.length > 1), T = r(() => {
|
|
2755
|
+
let e = [];
|
|
2756
|
+
return u.instructions && e.push(S.value), u.radio ? {
|
|
2757
|
+
role: "radiogroup",
|
|
2758
|
+
"aria-invalid": m.value ? "true" : void 0,
|
|
2759
|
+
"aria-errormessage": m.value ? x.value : void 0,
|
|
2760
|
+
"aria-describedby": e.length ? e.join(" ") : void 0
|
|
2761
|
+
} : { "aria-describedby": e.length ? e.join(" ") : void 0 };
|
|
2762
|
+
});
|
|
2763
|
+
function E(e) {
|
|
2764
|
+
return `${f}-hint-${e}`;
|
|
2765
|
+
}
|
|
2766
|
+
function D(e) {
|
|
2767
|
+
return `${f}-input-${e}`;
|
|
2768
|
+
}
|
|
2769
|
+
function k(e, t) {
|
|
2770
|
+
let n = [];
|
|
2771
|
+
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 } : {
|
|
2772
|
+
"aria-describedby": n.length ? n.join(" ") : void 0,
|
|
2773
|
+
"aria-invalid": m.value ? "true" : "false",
|
|
2774
|
+
"aria-errormessage": m.value ? x.value : void 0
|
|
2775
|
+
};
|
|
2776
|
+
}
|
|
2777
|
+
return (n, r) => (w(), i(A(C.value ? "fieldset" : "div"), h({ class: ["g-checkbox-group", { "g-checkbox-group--error": L(m) }] }, T.value), {
|
|
2778
|
+
default: q(() => [
|
|
2779
|
+
C.value && t.label ? (w(), o("legend", xr, [c(N(t.label), 1), t.required ? (w(), o("span", Sr, "\xA0*")) : a("", !0)])) : !C.value && t.label ? (w(), o("div", Cr, [c(N(t.label), 1), t.required ? (w(), o("span", wr, "\xA0*")) : a("", !0)])) : a("", !0),
|
|
2780
|
+
t.instructions ? (w(), o("div", {
|
|
2781
|
+
key: 2,
|
|
2782
|
+
id: S.value,
|
|
2783
|
+
class: "g-checkbox-group__instructions"
|
|
2784
|
+
}, N(t.instructions), 9, Tr)) : a("", !0),
|
|
2785
|
+
s("div", Er, [(w(!0), o(e, null, O(t.options, (e, n) => (w(), o("div", {
|
|
2786
|
+
key: e.value,
|
|
2787
|
+
class: _(["g-checkbox-group__option-wrapper", { "g-checkbox-group__option-wrapper--disabled": e.disabled }])
|
|
2788
|
+
}, [s("label", {
|
|
2789
|
+
class: _(["g-checkbox-group__option", { "g-checkbox-group__option--checked": v(e.value) }]),
|
|
2790
|
+
for: D(n)
|
|
2791
|
+
}, [s("input", h({
|
|
2792
|
+
id: D(n),
|
|
2793
|
+
type: b.value,
|
|
2794
|
+
name: t.name || L(f),
|
|
2795
|
+
value: e.value,
|
|
2796
|
+
checked: v(e.value),
|
|
2797
|
+
disabled: e.disabled,
|
|
2798
|
+
required: t.required && (t.radio && n === 0 || !t.radio && t.options.length === 1),
|
|
2799
|
+
class: "g-checkbox-group__input"
|
|
2800
|
+
}, { ref_for: !0 }, k(e, n), { onChange: (t) => y(e.value, t.target.checked) }), null, 16, Or), s("span", kr, N(e.label), 1)], 10, Dr), e.hint ? (w(), o("div", {
|
|
2801
|
+
key: 0,
|
|
2802
|
+
id: E(n),
|
|
2803
|
+
class: "g-checkbox-group__hint"
|
|
2804
|
+
}, N(e.hint), 9, Ar)) : a("", !0)], 2))), 128))]),
|
|
2805
|
+
l(Me, {
|
|
2806
|
+
errors: L(p),
|
|
2807
|
+
id: x.value
|
|
2808
|
+
}, null, 8, ["errors", "id"])
|
|
2809
|
+
]),
|
|
2810
|
+
_: 1
|
|
2811
|
+
}, 16, ["class"]));
|
|
2812
|
+
}
|
|
2695
2813
|
});
|
|
2696
2814
|
//#endregion
|
|
2697
2815
|
//#region src/compose/useFiltering.ts
|
|
2698
|
-
function
|
|
2816
|
+
function Mr(e) {
|
|
2699
2817
|
if (!(Array.isArray(e) && e.length === 0) && !(e === null || e === !1 || e === "")) return e;
|
|
2700
2818
|
}
|
|
2701
|
-
function
|
|
2819
|
+
function Nr(e) {
|
|
2702
2820
|
return Object.fromEntries(Object.entries(e).filter(([e, t]) => t && (!Array.isArray(t) || t.length > 0)));
|
|
2703
2821
|
}
|
|
2704
|
-
function
|
|
2822
|
+
function Pr(e) {
|
|
2705
2823
|
if (e != null) return Array.isArray(e) ? e.filter((e) => e != null) : [e];
|
|
2706
2824
|
}
|
|
2707
|
-
function
|
|
2825
|
+
function Fr(e) {
|
|
2708
2826
|
let t = {};
|
|
2709
2827
|
for (let [n, r] of Object.entries(P(e))) Array.isArray(r) ? r.length > 0 && (t[n] = r) : r === !0 ? t[n] = "true" : t[n] = r || void 0;
|
|
2710
2828
|
return t;
|
|
2711
2829
|
}
|
|
2712
|
-
function
|
|
2830
|
+
function Ir(e) {
|
|
2713
2831
|
let t = {};
|
|
2714
2832
|
return Object.keys(e).forEach((n) => {
|
|
2715
2833
|
let r = e[n];
|
|
2716
2834
|
r != null && r !== "" && r !== !1 && (Array.isArray(r) ? r.length > 0 && (t[n] = r.map((e) => String(e))) : t[n] = String(r));
|
|
2717
2835
|
}), t;
|
|
2718
2836
|
}
|
|
2719
|
-
function
|
|
2837
|
+
function Lr(e, t = {}) {
|
|
2720
2838
|
let n = E(Object.fromEntries(Object.entries(e).map(([e, t]) => [e, t]))), i = t.syncWith;
|
|
2721
2839
|
if (i) {
|
|
2722
2840
|
if (i.value) {
|
|
@@ -2729,13 +2847,13 @@ function Er(e, t = {}) {
|
|
|
2729
2847
|
});
|
|
2730
2848
|
}
|
|
2731
2849
|
G(n, (e) => {
|
|
2732
|
-
i.value =
|
|
2850
|
+
i.value = Ir(e);
|
|
2733
2851
|
}, { deep: !0 });
|
|
2734
2852
|
}
|
|
2735
2853
|
return {
|
|
2736
2854
|
filters: n,
|
|
2737
2855
|
isFiltered: r(() => {
|
|
2738
|
-
for (let t of Object.keys(e)) if (
|
|
2856
|
+
for (let t of Object.keys(e)) if (Mr(n[t])) return !0;
|
|
2739
2857
|
return !1;
|
|
2740
2858
|
}),
|
|
2741
2859
|
clearFilters: () => {
|
|
@@ -2745,59 +2863,52 @@ function Er(e, t = {}) {
|
|
|
2745
2863
|
},
|
|
2746
2864
|
filteredColumns: r(() => {
|
|
2747
2865
|
let t = {};
|
|
2748
|
-
for (let r of Object.keys(e)) t[r] = !!
|
|
2866
|
+
for (let r of Object.keys(e)) t[r] = !!Mr(n[r]);
|
|
2749
2867
|
return t;
|
|
2750
2868
|
})
|
|
2751
2869
|
};
|
|
2752
2870
|
}
|
|
2753
2871
|
//#endregion
|
|
2754
2872
|
//#region src/components/GTable.vue?vue&type=script&setup=true&lang.ts
|
|
2755
|
-
var
|
|
2873
|
+
var Rr = { class: "g-table-outer-wrap" }, zr = {
|
|
2756
2874
|
key: 0,
|
|
2757
2875
|
class: "g-table-controls"
|
|
2758
|
-
},
|
|
2876
|
+
}, Br = { class: "g-clear-filters-wrap" }, Vr = {
|
|
2759
2877
|
key: 0,
|
|
2760
2878
|
class: "pagination"
|
|
2761
|
-
},
|
|
2879
|
+
}, Hr = { class: "g-result-count" }, Ur = ["aria-label", "aria-rowcount"], Wr = { class: "g-table-head" }, Gr = { "aria-rowindex": "1" }, Kr = {
|
|
2762
2880
|
key: 0,
|
|
2763
2881
|
scope: "col",
|
|
2764
2882
|
class: "g-th g-th-checkbox"
|
|
2765
|
-
},
|
|
2883
|
+
}, qr = [
|
|
2766
2884
|
"checked",
|
|
2767
2885
|
"indeterminate",
|
|
2768
2886
|
"aria-label"
|
|
2769
|
-
],
|
|
2887
|
+
], Jr = ["id", "aria-sort"], Yr = { class: "th-inner" }, Xr = ["onClick"], Zr = {
|
|
2770
2888
|
key: 0,
|
|
2771
2889
|
class: "sort-indicator"
|
|
2772
|
-
},
|
|
2890
|
+
}, Qr = ["aria-label"], $r = {
|
|
2773
2891
|
key: 1,
|
|
2774
2892
|
class: "g-column-head"
|
|
2775
|
-
},
|
|
2893
|
+
}, ei = ["onClick", "aria-label"], ti = {
|
|
2776
2894
|
key: 1,
|
|
2777
2895
|
class: "g-filter-search",
|
|
2778
2896
|
role: "search"
|
|
2779
|
-
},
|
|
2897
|
+
}, ni = [
|
|
2780
2898
|
"onUpdate:modelValue",
|
|
2781
2899
|
"placeholder",
|
|
2782
2900
|
"aria-label"
|
|
2783
|
-
],
|
|
2901
|
+
], ri = { key: 2 }, ii = { class: "g-filter-toggle" }, ai = [
|
|
2784
2902
|
"onUpdate:modelValue",
|
|
2785
2903
|
"id",
|
|
2786
2904
|
"aria-describedby"
|
|
2787
|
-
],
|
|
2905
|
+
], oi = ["for"], si = ["id"], ci = {
|
|
2788
2906
|
key: 4,
|
|
2789
2907
|
class: "g-multi-select"
|
|
2790
|
-
},
|
|
2791
|
-
"onUpdate:modelValue",
|
|
2792
|
-
"id",
|
|
2793
|
-
"value"
|
|
2794
|
-
], $r = ["for"], ei = { class: "g-multi-select-option-label" }, ti = {
|
|
2795
|
-
key: 0,
|
|
2796
|
-
class: "g-multi-select-option-description"
|
|
2797
|
-
}, ni = {
|
|
2908
|
+
}, li = {
|
|
2798
2909
|
key: 1,
|
|
2799
2910
|
class: "g-bulk-actions-toolbar"
|
|
2800
|
-
},
|
|
2911
|
+
}, ui = { class: "g-selected-count" }, di = { class: "g-bulk-actions" }, fi = /* @__PURE__ */ u({
|
|
2801
2912
|
__name: "GTable",
|
|
2802
2913
|
props: /*@__PURE__*/ m({
|
|
2803
2914
|
label: {},
|
|
@@ -2846,7 +2957,7 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
2846
2957
|
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));
|
|
2847
2958
|
}
|
|
2848
2959
|
let v = m.filtering;
|
|
2849
|
-
v ||=
|
|
2960
|
+
v ||= Lr({});
|
|
2850
2961
|
let { filters: b, filteredColumns: x, isFiltered: C, clearFilters: T } = v, E = r(() => m.data.map((e) => e.key)), A = r(() => p.value.filter((e) => E.value.includes(e))), j = r(() => !m.bulkSelectionEnabled || m.data.length === 0 ? !1 : A.value.length === E.value.length), M = r(() => !m.bulkSelectionEnabled || m.data.length === 0 ? !1 : A.value.length > 0 && A.value.length < E.value.length), F = D(null);
|
|
2851
2962
|
function I() {
|
|
2852
2963
|
if (j.value) p.value = p.value.filter((e) => !E.value.includes(e));
|
|
@@ -2871,7 +2982,7 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
2871
2982
|
function ee(e) {
|
|
2872
2983
|
h("bulk-action", e, p.value);
|
|
2873
2984
|
}
|
|
2874
|
-
function
|
|
2985
|
+
function G(e) {
|
|
2875
2986
|
let t = e.value, n = e.column.key, r = P(e.row[n]);
|
|
2876
2987
|
e.column.editable?.inputAttributes?.type === "number" && (t = e.value === "" ? null : Number(e.value)), e.row[n] = t;
|
|
2877
2988
|
let i = {
|
|
@@ -2882,21 +2993,20 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
2882
2993
|
};
|
|
2883
2994
|
h("cell-change", i);
|
|
2884
2995
|
}
|
|
2885
|
-
let
|
|
2996
|
+
let K = z(), te = V(), X = r(() => m.showPagination ? !0 : !!te.pagination), ne = r(() => !!(C.value || X.value));
|
|
2997
|
+
function re(e) {
|
|
2998
|
+
return e.filter?.type === "multi-select" ? e.filter.options.map((e) => ({
|
|
2999
|
+
label: e.label,
|
|
3000
|
+
value: e.value,
|
|
3001
|
+
hint: e.description
|
|
3002
|
+
})) : [];
|
|
3003
|
+
}
|
|
2886
3004
|
return S(() => {
|
|
2887
3005
|
m.rowClickable && m.bulkSelectionEnabled && console.warn("GTable: rowClickable and bulkSelectionEnabled cannot be used together. rowClickable will be ignored.");
|
|
2888
|
-
for (let e of m.columns)
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
}), G(() => m.columns, (e) => {
|
|
2893
|
-
for (let t of e) if (t.filter && t.filter.type === "multi-select" && !Array.isArray(f.value[t.key])) {
|
|
2894
|
-
let e = f.value[t.key];
|
|
2895
|
-
f.value[t.key] = e ? [e] : [];
|
|
2896
|
-
}
|
|
2897
|
-
}, { immediate: !0 }), (n, r) => (w(), o("div", Dr, [
|
|
2898
|
-
ne.value ? (w(), o("div", Or, [
|
|
2899
|
-
s("div", kr, [L(C) ? (w(), i(Q, {
|
|
3006
|
+
for (let e of m.columns) e.editable && e.display && console.warn(`GTable: Column "${String(e.key)}" has both 'editable' and 'display' configured. 'display' will be ignored.`);
|
|
3007
|
+
}), (n, r) => (w(), o("div", Rr, [
|
|
3008
|
+
ne.value ? (w(), o("div", zr, [
|
|
3009
|
+
s("div", Br, [L(C) ? (w(), i(Q, {
|
|
2900
3010
|
key: 0,
|
|
2901
3011
|
outlined: "",
|
|
2902
3012
|
size: "small",
|
|
@@ -2914,37 +3024,37 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
2914
3024
|
})], -1), s("span", { class: "g-clear-filters-text" }, " Clear Filters ", -1)]]),
|
|
2915
3025
|
_: 1
|
|
2916
3026
|
}, 8, ["onClick"])) : a("", !0)]),
|
|
2917
|
-
|
|
2918
|
-
s("span",
|
|
3027
|
+
X.value ? (w(), o("div", Vr, [k(n.$slots, "pagination")])) : a("", !0),
|
|
3028
|
+
s("span", Hr, N(m.resultCount || t.data.length) + " results", 1)
|
|
2919
3029
|
])) : a("", !0),
|
|
2920
3030
|
s("table", {
|
|
2921
3031
|
class: "g-table",
|
|
2922
3032
|
ref: "tableRef",
|
|
2923
3033
|
"aria-label": t.label,
|
|
2924
3034
|
"aria-rowcount": m.resultCount || t.data.length
|
|
2925
|
-
}, [s("thead",
|
|
3035
|
+
}, [s("thead", Wr, [s("tr", Gr, [t.bulkSelectionEnabled ? (w(), o("th", Kr, [s("input", {
|
|
2926
3036
|
type: "checkbox",
|
|
2927
3037
|
checked: j.value,
|
|
2928
3038
|
indeterminate: M.value,
|
|
2929
3039
|
onChange: I,
|
|
2930
3040
|
"aria-label": j.value ? "Deselect all rows" : "Select all rows",
|
|
2931
3041
|
class: "g-bulk-select-checkbox"
|
|
2932
|
-
}, null, 40,
|
|
2933
|
-
key:
|
|
2934
|
-
id: `${L(
|
|
2935
|
-
"aria-sort": u.value ===
|
|
3042
|
+
}, null, 40, qr)])) : a("", !0), (w(!0), o(e, null, O(t.columns, (e) => (w(), o("th", {
|
|
3043
|
+
key: e.key,
|
|
3044
|
+
id: `${L(K)}-th-${String(e.key)}`,
|
|
3045
|
+
"aria-sort": u.value === e.key ? d.value === 1 ? "ascending" : "descending" : "none",
|
|
2936
3046
|
class: _([
|
|
2937
3047
|
"g-th",
|
|
2938
|
-
{ sorted: u.value ===
|
|
2939
|
-
{ filtered: L(x)[
|
|
3048
|
+
{ sorted: u.value === e.key },
|
|
3049
|
+
{ filtered: L(x)[e.key] }
|
|
2940
3050
|
]),
|
|
2941
3051
|
scope: "col"
|
|
2942
|
-
}, [s("div",
|
|
3052
|
+
}, [s("div", Yr, [e.sortable ? (w(), o("button", {
|
|
2943
3053
|
key: 0,
|
|
2944
3054
|
type: "button",
|
|
2945
3055
|
class: "g-column-head",
|
|
2946
|
-
onClick: (
|
|
2947
|
-
}, [c(N(
|
|
3056
|
+
onClick: (t) => g(e)
|
|
3057
|
+
}, [c(N(e.label) + " ", 1), u.value === e.key ? (w(), o("span", Zr, [(w(), o("svg", {
|
|
2948
3058
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2949
3059
|
viewBox: "0 0 640 640",
|
|
2950
3060
|
height: "1.5em",
|
|
@@ -2954,11 +3064,11 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
2954
3064
|
}, [...r[1] ||= [s("path", {
|
|
2955
3065
|
fill: "currentColor",
|
|
2956
3066
|
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"
|
|
2957
|
-
}, null, -1)]], 12,
|
|
2958
|
-
trigger: q(({ toggle:
|
|
2959
|
-
onClick: Y(
|
|
2960
|
-
"aria-label": L(x)[
|
|
2961
|
-
class: _(["g-filter-btn", { "g-active": L(x)[
|
|
3067
|
+
}, null, -1)]], 12, Qr))])) : a("", !0)], 8, Xr)) : (w(), o("span", $r, N(e.label), 1)), e.filter ? (w(), i(ot, { key: 2 }, {
|
|
3068
|
+
trigger: q(({ toggle: t }) => [s("button", {
|
|
3069
|
+
onClick: Y(t, ["stop"]),
|
|
3070
|
+
"aria-label": L(x)[e.key] ? "Column Filtered" : "Filter Column",
|
|
3071
|
+
class: _(["g-filter-btn", { "g-active": L(x)[e.key] }]),
|
|
2962
3072
|
type: "button"
|
|
2963
3073
|
}, [...r[2] ||= [s("svg", {
|
|
2964
3074
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2968,23 +3078,23 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
2968
3078
|
}, [s("path", {
|
|
2969
3079
|
fill: "currentColor",
|
|
2970
3080
|
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"
|
|
2971
|
-
})], -1)]], 10,
|
|
2972
|
-
default: q(() => [
|
|
3081
|
+
})], -1)]], 10, ei)]),
|
|
3082
|
+
default: q(() => [e.filter.type === "select" ? (w(), i(Kt, {
|
|
2973
3083
|
key: 0,
|
|
2974
|
-
modelValue: f.value[
|
|
2975
|
-
"onUpdate:modelValue": (
|
|
2976
|
-
options:
|
|
3084
|
+
modelValue: f.value[e.key],
|
|
3085
|
+
"onUpdate:modelValue": (t) => f.value[e.key] = t,
|
|
3086
|
+
options: e.filter.options,
|
|
2977
3087
|
class: "g-filter-select",
|
|
2978
3088
|
label: "Filter select",
|
|
2979
3089
|
searchable: "",
|
|
2980
|
-
"search-description":
|
|
3090
|
+
"search-description": e.filter.searchDescription,
|
|
2981
3091
|
"clear-button": ""
|
|
2982
3092
|
}, null, 8, [
|
|
2983
3093
|
"modelValue",
|
|
2984
3094
|
"onUpdate:modelValue",
|
|
2985
3095
|
"options",
|
|
2986
3096
|
"search-description"
|
|
2987
|
-
])) :
|
|
3097
|
+
])) : e.filter.type === "search" ? (w(), o("div", ti, [r[3] ||= s("span", {
|
|
2988
3098
|
class: "g-filter-search-icon",
|
|
2989
3099
|
"aria-hidden": "true"
|
|
2990
3100
|
}, [s("svg", {
|
|
@@ -2997,30 +3107,30 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
2997
3107
|
})])], -1), J(s("input", {
|
|
2998
3108
|
type: "search",
|
|
2999
3109
|
class: "g-filter-search-input",
|
|
3000
|
-
"onUpdate:modelValue": (
|
|
3001
|
-
placeholder:
|
|
3002
|
-
"aria-label": `Search ${
|
|
3003
|
-
}, null, 8,
|
|
3110
|
+
"onUpdate:modelValue": (t) => f.value[e.key] = t,
|
|
3111
|
+
placeholder: e.filter.placeholder,
|
|
3112
|
+
"aria-label": `Search ${e.label}`
|
|
3113
|
+
}, null, 8, ni), [[W, f.value[e.key]]])])) : e.filter.type === "toggle" ? (w(), o("div", ri, [s("div", ii, [
|
|
3004
3114
|
J(s("input", {
|
|
3005
3115
|
type: "checkbox",
|
|
3006
|
-
"onUpdate:modelValue": (
|
|
3007
|
-
id: `${L(
|
|
3008
|
-
"aria-describedby":
|
|
3009
|
-
}, null, 8,
|
|
3010
|
-
s("label", { for: `${L(
|
|
3011
|
-
|
|
3116
|
+
"onUpdate:modelValue": (t) => f.value[e.key] = t,
|
|
3117
|
+
id: `${L(K)}-filter-${String(e.key)}`,
|
|
3118
|
+
"aria-describedby": e.filter.description ? `${L(K)}-filter-description-${String(e.key)}` : void 0
|
|
3119
|
+
}, null, 8, ai), [[U, f.value[e.key]]]),
|
|
3120
|
+
s("label", { for: `${L(K)}-filter-${String(e.key)}` }, N(e.filter.label), 9, oi),
|
|
3121
|
+
e.filter.description ? (w(), o("span", {
|
|
3012
3122
|
key: 0,
|
|
3013
3123
|
class: "g-filter-description",
|
|
3014
|
-
id: `${L(
|
|
3015
|
-
}, N(
|
|
3016
|
-
])])) :
|
|
3124
|
+
id: `${L(K)}-filter-description-${String(e.key)}`
|
|
3125
|
+
}, N(e.filter.description), 9, si)) : a("", !0)
|
|
3126
|
+
])])) : e.filter.type === "multi-select" && e.filter.searchable ? (w(), i(br, {
|
|
3017
3127
|
key: 3,
|
|
3018
|
-
modelValue: f.value[
|
|
3019
|
-
"onUpdate:modelValue": (
|
|
3020
|
-
options:
|
|
3128
|
+
modelValue: f.value[e.key],
|
|
3129
|
+
"onUpdate:modelValue": (t) => f.value[e.key] = t,
|
|
3130
|
+
options: e.filter.options,
|
|
3021
3131
|
label: "Include values",
|
|
3022
|
-
placeholder:
|
|
3023
|
-
"search-description":
|
|
3132
|
+
placeholder: e.filter.placeholder,
|
|
3133
|
+
"search-description": e.filter.searchDescription,
|
|
3024
3134
|
class: "g-multi-select-searchable"
|
|
3025
3135
|
}, null, 8, [
|
|
3026
3136
|
"modelValue",
|
|
@@ -3028,31 +3138,27 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3028
3138
|
"options",
|
|
3029
3139
|
"placeholder",
|
|
3030
3140
|
"search-description"
|
|
3031
|
-
])) :
|
|
3032
|
-
|
|
3033
|
-
(
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
default: q(() => [...r[4] ||= [c(" Clear ", -1)]]),
|
|
3051
|
-
_: 1
|
|
3052
|
-
}, 8, ["onClick"])) : a("", !0)
|
|
3053
|
-
])) : a("", !0)]),
|
|
3141
|
+
])) : e.filter.type === "multi-select" ? (w(), o("div", ci, [l(jr, {
|
|
3142
|
+
modelValue: f.value[e.key],
|
|
3143
|
+
"onUpdate:modelValue": (t) => f.value[e.key] = t,
|
|
3144
|
+
options: re(e),
|
|
3145
|
+
label: "Include values"
|
|
3146
|
+
}, null, 8, [
|
|
3147
|
+
"modelValue",
|
|
3148
|
+
"onUpdate:modelValue",
|
|
3149
|
+
"options"
|
|
3150
|
+
]), f.value[e.key]?.length ? (w(), i(Q, {
|
|
3151
|
+
key: 0,
|
|
3152
|
+
class: "clear-multiselect-btn",
|
|
3153
|
+
theme: "accent",
|
|
3154
|
+
size: "small",
|
|
3155
|
+
onClick: (t) => f.value[e.key] = []
|
|
3156
|
+
}, {
|
|
3157
|
+
default: q(() => [...r[4] ||= [c(" Clear ", -1)]]),
|
|
3158
|
+
_: 1
|
|
3159
|
+
}, 8, ["onClick"])) : a("", !0)])) : a("", !0)]),
|
|
3054
3160
|
_: 2
|
|
3055
|
-
}, 1024)) : a("", !0)])], 10,
|
|
3161
|
+
}, 1024)) : a("", !0)])], 10, Jr))), 128))])]), l(ir, {
|
|
3056
3162
|
data: t.data,
|
|
3057
3163
|
columns: t.columns,
|
|
3058
3164
|
"group-by": t.groupBy,
|
|
@@ -3062,11 +3168,11 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3062
3168
|
"start-index": t.startIndex,
|
|
3063
3169
|
"bulk-selection-enabled": t.bulkSelectionEnabled,
|
|
3064
3170
|
"selected-rows": p.value,
|
|
3065
|
-
"table-id": L(
|
|
3171
|
+
"table-id": L(K),
|
|
3066
3172
|
"change-tracker": t.changeTracker,
|
|
3067
3173
|
onRowClick: H,
|
|
3068
3174
|
onToggleRow: R,
|
|
3069
|
-
onCellChange:
|
|
3175
|
+
onCellChange: G
|
|
3070
3176
|
}, null, 8, [
|
|
3071
3177
|
"data",
|
|
3072
3178
|
"columns",
|
|
@@ -3079,8 +3185,8 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3079
3185
|
"selected-rows",
|
|
3080
3186
|
"table-id",
|
|
3081
3187
|
"change-tracker"
|
|
3082
|
-
])], 8,
|
|
3083
|
-
t.bulkSelectionEnabled && p.value.length > 0 ? (w(), o("div",
|
|
3188
|
+
])], 8, Ur),
|
|
3189
|
+
t.bulkSelectionEnabled && p.value.length > 0 ? (w(), o("div", li, [s("span", ui, N(p.value.length) + " row" + N(p.value.length === 1 ? "" : "s") + " selected", 1), s("ul", di, [(w(!0), o(e, null, O(t.bulkActions, (e) => (w(), o("li", { key: e.id }, [l(Q, {
|
|
3084
3190
|
theme: e.theme || "accent",
|
|
3085
3191
|
onClick: (t) => ee(e.id),
|
|
3086
3192
|
size: "small"
|
|
@@ -3090,10 +3196,10 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3090
3196
|
}, 1032, ["theme", "onClick"])]))), 128))])])) : a("", !0)
|
|
3091
3197
|
]));
|
|
3092
3198
|
}
|
|
3093
|
-
}),
|
|
3199
|
+
}), pi = {
|
|
3094
3200
|
class: "g-pagination",
|
|
3095
3201
|
"aria-label": "Pagination"
|
|
3096
|
-
},
|
|
3202
|
+
}, mi = ["disabled"], hi = ["disabled"], gi = { class: "page-range" }, _i = ["disabled"], vi = ["disabled"], yi = ["value"], bi = ["value"], xi = /* @__PURE__ */ u({
|
|
3097
3203
|
__name: "GTablePagination",
|
|
3098
3204
|
props: /*@__PURE__*/ m({
|
|
3099
3205
|
start: {},
|
|
@@ -3115,7 +3221,7 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3115
3221
|
function h(e) {
|
|
3116
3222
|
c.value = parseInt(e.target.value, 10);
|
|
3117
3223
|
}
|
|
3118
|
-
return (t, r) => (w(), o("nav",
|
|
3224
|
+
return (t, r) => (w(), o("nav", pi, [
|
|
3119
3225
|
s("button", {
|
|
3120
3226
|
class: "first-page g-pagination-button",
|
|
3121
3227
|
disabled: p.value === 1,
|
|
@@ -3140,7 +3246,7 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3140
3246
|
}),
|
|
3141
3247
|
s("path", { d: "M11 7l-5 5l5 5" }),
|
|
3142
3248
|
s("path", { d: "M17 7l-5 5l5 5" })
|
|
3143
|
-
], -1)]], 8,
|
|
3249
|
+
], -1)]], 8, mi),
|
|
3144
3250
|
s("button", {
|
|
3145
3251
|
class: "prev-page g-pagination-button",
|
|
3146
3252
|
disabled: p.value === 1,
|
|
@@ -3161,8 +3267,8 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3161
3267
|
stroke: "none",
|
|
3162
3268
|
d: "M0 0h24v24H0z",
|
|
3163
3269
|
fill: "none"
|
|
3164
|
-
}), s("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8,
|
|
3165
|
-
s("span",
|
|
3270
|
+
}), s("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8, hi),
|
|
3271
|
+
s("span", gi, N(d.value) + " to " + N(f.value), 1),
|
|
3166
3272
|
s("button", {
|
|
3167
3273
|
class: "next-page g-pagination-button",
|
|
3168
3274
|
disabled: p.value === i.value,
|
|
@@ -3183,7 +3289,7 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3183
3289
|
stroke: "none",
|
|
3184
3290
|
d: "M0 0h24v24H0z",
|
|
3185
3291
|
fill: "none"
|
|
3186
|
-
}), s("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8,
|
|
3292
|
+
}), s("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8, _i),
|
|
3187
3293
|
s("button", {
|
|
3188
3294
|
class: "last-page g-pagination-button",
|
|
3189
3295
|
disabled: p.value === i.value,
|
|
@@ -3208,7 +3314,7 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3208
3314
|
}),
|
|
3209
3315
|
s("path", { d: "M7 7l5 5l-5 5" }),
|
|
3210
3316
|
s("path", { d: "M13 7l5 5l-5 5" })
|
|
3211
|
-
], -1)]], 8,
|
|
3317
|
+
], -1)]], 8, vi),
|
|
3212
3318
|
s("select", {
|
|
3213
3319
|
id: "page-size-select",
|
|
3214
3320
|
class: "page-size-select",
|
|
@@ -3222,14 +3328,14 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3222
3328
|
], (e) => (w(), o("option", {
|
|
3223
3329
|
key: e,
|
|
3224
3330
|
value: e
|
|
3225
|
-
}, N(e), 9,
|
|
3331
|
+
}, N(e), 9, bi))), 128))], 40, yi),
|
|
3226
3332
|
r[8] ||= s("label", {
|
|
3227
3333
|
class: "page-size-label",
|
|
3228
3334
|
for: "page-size-select"
|
|
3229
3335
|
}, "per page", -1)
|
|
3230
3336
|
]));
|
|
3231
3337
|
}
|
|
3232
|
-
}),
|
|
3338
|
+
}), Si = ["id"], Ci = { class: "g-modal-inner" }, wi = { class: "g-modal-header" }, Ti = ["id"], Ei = ["id"], Di = /* @__PURE__ */ u({
|
|
3233
3339
|
__name: "GModal",
|
|
3234
3340
|
props: {
|
|
3235
3341
|
label: {},
|
|
@@ -3273,12 +3379,12 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3273
3379
|
ref_key: "dialog",
|
|
3274
3380
|
ref: f,
|
|
3275
3381
|
style: { zIndex: L(y) }
|
|
3276
|
-
}), [s("div",
|
|
3382
|
+
}), [s("div", Ci, [s("div", wi, [e.hiddenLabel ? a("", !0) : (w(), o("h2", {
|
|
3277
3383
|
key: 0,
|
|
3278
3384
|
id: "modal-label-" + L(m),
|
|
3279
3385
|
class: "g-modal-label",
|
|
3280
3386
|
tabindex: "-1"
|
|
3281
|
-
}, N(e.label), 9,
|
|
3387
|
+
}, N(e.label), 9, Ti)), s("button", {
|
|
3282
3388
|
class: "g-modal-close",
|
|
3283
3389
|
onClick: T,
|
|
3284
3390
|
"aria-label": "Close"
|
|
@@ -3293,19 +3399,19 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3293
3399
|
})], -1)]])]), s("div", {
|
|
3294
3400
|
id: "modal-description-" + L(m),
|
|
3295
3401
|
class: "g-modal-content"
|
|
3296
|
-
}, [k(r.$slots, "default")], 8,
|
|
3402
|
+
}, [k(r.$slots, "default")], 8, Ei)])], 16, Si)]),
|
|
3297
3403
|
_: 3
|
|
3298
3404
|
})]));
|
|
3299
3405
|
}
|
|
3300
|
-
}),
|
|
3406
|
+
}), Oi = [
|
|
3301
3407
|
"id",
|
|
3302
3408
|
"aria-expanded",
|
|
3303
3409
|
"aria-label",
|
|
3304
3410
|
"aria-controls"
|
|
3305
|
-
],
|
|
3411
|
+
], ki = {
|
|
3306
3412
|
key: 0,
|
|
3307
3413
|
class: "g-hamburger-label"
|
|
3308
|
-
},
|
|
3414
|
+
}, Ai = /* @__PURE__ */ u({
|
|
3309
3415
|
__name: "GHamburgerMenu",
|
|
3310
3416
|
props: {
|
|
3311
3417
|
label: { default: "Main Navigation" },
|
|
@@ -3318,7 +3424,7 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3318
3424
|
},
|
|
3319
3425
|
emits: ["toggle"],
|
|
3320
3426
|
setup(e, { emit: t }) {
|
|
3321
|
-
let n = e, r = p("sidebar") ?? (
|
|
3427
|
+
let n = e, r = p("sidebar") ?? (Z() ? pn(n.sidebarKey, F(n, "mediaQuery")) : void 0), i = t;
|
|
3322
3428
|
function c() {
|
|
3323
3429
|
i("toggle"), r?.toggle();
|
|
3324
3430
|
}
|
|
@@ -3341,34 +3447,34 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3341
3447
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3342
3448
|
viewBox: "0 0 51.26 51.26",
|
|
3343
3449
|
role: "none"
|
|
3344
|
-
}, [s("g", { fill: "currentColor" }, [s("path", { d: "M11.6 16.52h28.06a3.24 3.24 0 1 0 0-6.48H11.6a3.24 3.24 0 0 0 0 6.48ZM39.66 22.07H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48ZM39.66 34.1H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48Z" })])], -1), e.labelVisible ? (w(), o("span",
|
|
3450
|
+
}, [s("g", { fill: "currentColor" }, [s("path", { d: "M11.6 16.52h28.06a3.24 3.24 0 1 0 0-6.48H11.6a3.24 3.24 0 0 0 0 6.48ZM39.66 22.07H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48ZM39.66 34.1H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48Z" })])], -1), e.labelVisible ? (w(), o("span", ki, N(e.label), 1)) : a("", !0)], 42, Oi));
|
|
3345
3451
|
}
|
|
3346
|
-
}),
|
|
3452
|
+
}), ji = /* @__PURE__ */ u({
|
|
3347
3453
|
__name: "GDetailList",
|
|
3348
3454
|
props: { variant: { default: "grid" } },
|
|
3349
3455
|
setup(e) {
|
|
3350
3456
|
let t = e;
|
|
3351
3457
|
return (e, n) => (w(), o("dl", { class: _(["g-detail-list", `g-detail-list--${t.variant}`]) }, [k(e.$slots, "default")], 2));
|
|
3352
3458
|
}
|
|
3353
|
-
}),
|
|
3459
|
+
}), Mi = { class: "g-detail-list-item" }, Ni = { class: "g-detail-list-item__label" }, Pi = { class: "g-detail-list-item__value" }, Fi = /* @__PURE__ */ u({
|
|
3354
3460
|
__name: "GDetailListItem",
|
|
3355
3461
|
props: { label: {} },
|
|
3356
3462
|
setup(e) {
|
|
3357
|
-
return (t, n) => (w(), o("div",
|
|
3463
|
+
return (t, n) => (w(), o("div", Mi, [s("dt", Ni, [k(t.$slots, "label", {}, () => [c(N(e.label), 1)])]), s("dd", Pi, [k(t.$slots, "default")])]));
|
|
3358
3464
|
}
|
|
3359
|
-
}),
|
|
3465
|
+
}), Ii = {
|
|
3360
3466
|
key: 0,
|
|
3361
3467
|
class: "g-scroll-lock-overlay"
|
|
3362
|
-
},
|
|
3468
|
+
}, Li = /* @__PURE__ */ u({
|
|
3363
3469
|
__name: "GOverlay",
|
|
3364
3470
|
setup(e) {
|
|
3365
3471
|
let { hasScrollLock: t } = Je();
|
|
3366
3472
|
return (e, r) => (w(), i(n, { name: "g-fade" }, {
|
|
3367
|
-
default: q(() => [L(t) ? (w(), o("div",
|
|
3473
|
+
default: q(() => [L(t) ? (w(), o("div", Ii)) : a("", !0)]),
|
|
3368
3474
|
_: 1
|
|
3369
3475
|
}));
|
|
3370
3476
|
}
|
|
3371
|
-
}),
|
|
3477
|
+
}), Ri = { class: "popover-content" }, zi = { class: "year-dropdown" }, Bi = { class: "month-selector" }, Vi = /* @__PURE__ */ u({
|
|
3372
3478
|
__name: "GTermSelectorControl",
|
|
3373
3479
|
props: /*@__PURE__*/ m({
|
|
3374
3480
|
termYears: { default: () => ["2026"] },
|
|
@@ -3389,7 +3495,7 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3389
3495
|
emits: ["update:modelValue"],
|
|
3390
3496
|
setup(e) {
|
|
3391
3497
|
let t = B(e, "modelValue");
|
|
3392
|
-
return (n, r) => (w(), o("div",
|
|
3498
|
+
return (n, r) => (w(), o("div", Ri, [s("div", zi, [l(Kt, {
|
|
3393
3499
|
modelValue: t.value.year,
|
|
3394
3500
|
"onUpdate:modelValue": r[0] ||= (e) => t.value.year = e,
|
|
3395
3501
|
options: e.termYears,
|
|
@@ -3398,7 +3504,7 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3398
3504
|
"modelValue",
|
|
3399
3505
|
"options",
|
|
3400
3506
|
"label"
|
|
3401
|
-
])]), s("div",
|
|
3507
|
+
])]), s("div", Bi, [l(xt, {
|
|
3402
3508
|
modelValue: t.value.name,
|
|
3403
3509
|
"onUpdate:modelValue": r[1] ||= (e) => t.value.name = e,
|
|
3404
3510
|
options: e.termNames,
|
|
@@ -3410,10 +3516,10 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3410
3516
|
"label"
|
|
3411
3517
|
])])]));
|
|
3412
3518
|
}
|
|
3413
|
-
}),
|
|
3519
|
+
}), Hi = { class: "g-term-selector" }, Ui = { class: "g-term-label" }, Wi = {
|
|
3414
3520
|
class: "g-popover-title",
|
|
3415
3521
|
tabindex: "-1"
|
|
3416
|
-
},
|
|
3522
|
+
}, Gi = /* @__PURE__ */ u({
|
|
3417
3523
|
__name: "GTermSelector",
|
|
3418
3524
|
props: /*@__PURE__*/ m({
|
|
3419
3525
|
heading: { default: "Period Selection" },
|
|
@@ -3435,7 +3541,7 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3435
3541
|
emits: ["update:modelValue"],
|
|
3436
3542
|
setup(e) {
|
|
3437
3543
|
let t = B(e, "modelValue");
|
|
3438
|
-
return (n, r) => (w(), o("div",
|
|
3544
|
+
return (n, r) => (w(), o("div", Hi, [l(ot, null, {
|
|
3439
3545
|
trigger: q(({ toggle: e }) => [l(Q, {
|
|
3440
3546
|
class: "g-term-selector-button",
|
|
3441
3547
|
theme: "none",
|
|
@@ -3448,7 +3554,7 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3448
3554
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3449
3555
|
viewBox: "0 0 640 640"
|
|
3450
3556
|
}, [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),
|
|
3451
|
-
s("span",
|
|
3557
|
+
s("span", Ui, N(t.value?.name) + " " + N(t.value?.year), 1),
|
|
3452
3558
|
r[1] ||= s("span", { class: "g-caret" }, [s("svg", {
|
|
3453
3559
|
role: "none",
|
|
3454
3560
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3457,15 +3563,15 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3457
3563
|
]),
|
|
3458
3564
|
_: 1
|
|
3459
3565
|
}, 8, ["onClick"])]),
|
|
3460
|
-
default: q(() => [s("h2",
|
|
3566
|
+
default: q(() => [s("h2", Wi, N(e.heading), 1), l(Vi, v(f(n.$props)), null, 16)]),
|
|
3461
3567
|
_: 1
|
|
3462
3568
|
})]));
|
|
3463
3569
|
}
|
|
3464
|
-
}),
|
|
3570
|
+
}), Ki = { class: "g-user-menu" }, qi = [
|
|
3465
3571
|
"aria-label",
|
|
3466
3572
|
"aria-expanded",
|
|
3467
3573
|
"onClick"
|
|
3468
|
-
],
|
|
3574
|
+
], Ji = { class: "g-user-menu__popover" }, Yi = { class: "g-user-menu__list" }, Xi = /* @__PURE__ */ u({
|
|
3469
3575
|
__name: "GUserMenu",
|
|
3470
3576
|
props: {
|
|
3471
3577
|
initials: {},
|
|
@@ -3477,7 +3583,7 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3477
3583
|
let n = `${z()}-email`, r = D(!1), a = H("emailHeading");
|
|
3478
3584
|
d()?.appContext?.components?.RouterLink;
|
|
3479
3585
|
let c = V();
|
|
3480
|
-
return (u, d) => (w(), o("div",
|
|
3586
|
+
return (u, d) => (w(), o("div", Ki, [l(ot, {
|
|
3481
3587
|
modelValue: r.value,
|
|
3482
3588
|
"onUpdate:modelValue": d[0] ||= (e) => r.value = e,
|
|
3483
3589
|
minimal: ""
|
|
@@ -3489,8 +3595,8 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3489
3595
|
"aria-expanded": r.value,
|
|
3490
3596
|
"aria-haspopup": "menu",
|
|
3491
3597
|
onClick: e
|
|
3492
|
-
}, N(t.initials), 13,
|
|
3493
|
-
default: q(() => [s("div",
|
|
3598
|
+
}, N(t.initials), 13, qi)]),
|
|
3599
|
+
default: q(() => [s("div", Ji, [s("h2", {
|
|
3494
3600
|
id: n,
|
|
3495
3601
|
ref_key: "emailHeading",
|
|
3496
3602
|
ref: a,
|
|
@@ -3499,11 +3605,11 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3499
3605
|
}, N(t.email), 513), s("nav", {
|
|
3500
3606
|
class: "g-user-menu__nav",
|
|
3501
3607
|
"aria-labelledby": n
|
|
3502
|
-
}, [s("ul",
|
|
3608
|
+
}, [s("ul", Yi, [(w(!0), o(e, null, O(c.default(), (e, t) => (w(), o("li", { key: t }, [(w(), i(A(e)))]))), 128))])])])]),
|
|
3503
3609
|
_: 1
|
|
3504
3610
|
}, 8, ["modelValue"])]));
|
|
3505
3611
|
}
|
|
3506
|
-
}),
|
|
3612
|
+
}), Zi = /* @__PURE__ */ u({
|
|
3507
3613
|
__name: "GCurrencyInput",
|
|
3508
3614
|
props: /*@__PURE__*/ m({
|
|
3509
3615
|
label: { default: void 0 },
|
|
@@ -3554,7 +3660,7 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3554
3660
|
"form-key"
|
|
3555
3661
|
]));
|
|
3556
3662
|
}
|
|
3557
|
-
}),
|
|
3663
|
+
}), Qi = /* @__PURE__ */ u({
|
|
3558
3664
|
__name: "GEmailInput",
|
|
3559
3665
|
props: /*@__PURE__*/ m({
|
|
3560
3666
|
label: { default: void 0 },
|
|
@@ -3599,13 +3705,13 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3599
3705
|
"instructions"
|
|
3600
3706
|
]));
|
|
3601
3707
|
}
|
|
3602
|
-
}),
|
|
3708
|
+
}), $i = ["for"], ea = {
|
|
3603
3709
|
key: 0,
|
|
3604
3710
|
class: "g-file-input-required"
|
|
3605
|
-
},
|
|
3711
|
+
}, ta = {
|
|
3606
3712
|
key: 0,
|
|
3607
3713
|
class: "g-file-input-box-header"
|
|
3608
|
-
},
|
|
3714
|
+
}, na = ["id"], ra = [
|
|
3609
3715
|
"id",
|
|
3610
3716
|
"disabled",
|
|
3611
3717
|
"required",
|
|
@@ -3614,11 +3720,11 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3614
3720
|
"aria-invalid",
|
|
3615
3721
|
"aria-describedby",
|
|
3616
3722
|
"aria-errormessage"
|
|
3617
|
-
],
|
|
3723
|
+
], ia = {
|
|
3618
3724
|
key: 1,
|
|
3619
3725
|
class: "g-file-input-pills",
|
|
3620
3726
|
"aria-label": "Selected files"
|
|
3621
|
-
},
|
|
3727
|
+
}, aa = /* @__PURE__ */ u({
|
|
3622
3728
|
inheritAttrs: !1,
|
|
3623
3729
|
__name: "GFileInput",
|
|
3624
3730
|
props: /*@__PURE__*/ m({
|
|
@@ -3675,12 +3781,12 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3675
3781
|
key: 0,
|
|
3676
3782
|
for: L(d),
|
|
3677
3783
|
class: "g-file-input-label"
|
|
3678
|
-
}, [c(N(t.label) + " ", 1), t.required ? (w(), o("span",
|
|
3784
|
+
}, [c(N(t.label) + " ", 1), t.required ? (w(), o("span", ea, "*")) : a("", !0)], 8, $i)) : a("", !0),
|
|
3679
3785
|
s("div", { class: _(["g-file-input-box", { "g-file-input-box--disabled": t.disabled }]) }, [
|
|
3680
|
-
t.instructions ? (w(), o("div",
|
|
3786
|
+
t.instructions ? (w(), o("div", ta, [s("span", {
|
|
3681
3787
|
id: "instructions-" + L(d),
|
|
3682
3788
|
class: "g-file-input-instructions"
|
|
3683
|
-
}, N(t.instructions), 9,
|
|
3789
|
+
}, N(t.instructions), 9, na)])) : a("", !0),
|
|
3684
3790
|
s("input", {
|
|
3685
3791
|
id: L(d),
|
|
3686
3792
|
type: "file",
|
|
@@ -3693,8 +3799,8 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3693
3799
|
"aria-describedby": t.instructions ? "instructions-" + L(d) : void 0,
|
|
3694
3800
|
"aria-errormessage": y.value ? "error-message-" + L(d) : void 0,
|
|
3695
3801
|
onChange: g
|
|
3696
|
-
}, null, 40,
|
|
3697
|
-
t.multiple && b.value.length > 0 ? (w(), o("ul",
|
|
3802
|
+
}, null, 40, ra),
|
|
3803
|
+
t.multiple && b.value.length > 0 ? (w(), o("ul", ia, [(w(!0), o(e, null, O(b.value, (e) => (w(), o("li", {
|
|
3698
3804
|
key: e,
|
|
3699
3805
|
class: "g-file-input-pill"
|
|
3700
3806
|
}, [r[0] ||= s("svg", {
|
|
@@ -3710,7 +3816,7 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3710
3816
|
}, null, 8, ["errors", "id"])
|
|
3711
3817
|
], 2));
|
|
3712
3818
|
}
|
|
3713
|
-
}),
|
|
3819
|
+
}), oa = /* @__PURE__ */ u({
|
|
3714
3820
|
__name: "GDateInput",
|
|
3715
3821
|
props: /*@__PURE__*/ m({
|
|
3716
3822
|
label: { default: void 0 },
|
|
@@ -3758,21 +3864,21 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3758
3864
|
"form-key"
|
|
3759
3865
|
]));
|
|
3760
3866
|
}
|
|
3761
|
-
}),
|
|
3867
|
+
}), sa = { class: "g-date-range-input" }, ca = {
|
|
3762
3868
|
key: 0,
|
|
3763
3869
|
class: "g-date-range-input__label"
|
|
3764
|
-
},
|
|
3870
|
+
}, la = {
|
|
3765
3871
|
key: 0,
|
|
3766
3872
|
class: "g-date-range-input__required",
|
|
3767
3873
|
"aria-hidden": "true"
|
|
3768
|
-
},
|
|
3874
|
+
}, ua = {
|
|
3769
3875
|
key: 1,
|
|
3770
3876
|
class: "g-date-range-input__instructions"
|
|
3771
|
-
},
|
|
3877
|
+
}, da = { class: "g-date-range-input__fields" }, fa = {
|
|
3772
3878
|
key: 2,
|
|
3773
3879
|
class: "g-date-range-input__errors",
|
|
3774
3880
|
role: "alert"
|
|
3775
|
-
},
|
|
3881
|
+
}, pa = /* @__PURE__ */ u({
|
|
3776
3882
|
__name: "GDateRangeInput",
|
|
3777
3883
|
props: /*@__PURE__*/ m({
|
|
3778
3884
|
label: { default: void 0 },
|
|
@@ -3812,10 +3918,10 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3812
3918
|
};
|
|
3813
3919
|
}), G(r, (e) => {
|
|
3814
3920
|
e.start !== i.value && (i.value = e.start), e.end !== u.value && (u.value = e.end);
|
|
3815
|
-
}, { deep: !0 }), (t, r) => (w(), o("div",
|
|
3816
|
-
n.label ? (w(), o("div",
|
|
3817
|
-
n.instructions ? (w(), o("div",
|
|
3818
|
-
s("div",
|
|
3921
|
+
}, { deep: !0 }), (t, r) => (w(), o("div", sa, [
|
|
3922
|
+
n.label ? (w(), o("div", ca, [c(N(n.label), 1), n.required ? (w(), o("span", la, " *")) : a("", !0)])) : a("", !0),
|
|
3923
|
+
n.instructions ? (w(), o("div", ua, N(n.instructions), 1)) : a("", !0),
|
|
3924
|
+
s("div", da, [l(oa, {
|
|
3819
3925
|
modelValue: i.value,
|
|
3820
3926
|
"onUpdate:modelValue": r[0] ||= (e) => i.value = e,
|
|
3821
3927
|
label: n.startLabel,
|
|
@@ -3827,7 +3933,7 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3827
3933
|
"label",
|
|
3828
3934
|
"disabled",
|
|
3829
3935
|
"required"
|
|
3830
|
-
]), l(
|
|
3936
|
+
]), l(oa, {
|
|
3831
3937
|
modelValue: u.value,
|
|
3832
3938
|
"onUpdate:modelValue": r[1] ||= (e) => u.value = e,
|
|
3833
3939
|
label: n.endLabel,
|
|
@@ -3840,13 +3946,13 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3840
3946
|
"disabled",
|
|
3841
3947
|
"required"
|
|
3842
3948
|
])]),
|
|
3843
|
-
L(d).length > 0 ? (w(), o("div",
|
|
3949
|
+
L(d).length > 0 ? (w(), o("div", fa, [(w(!0), o(e, null, O(L(d), (e, t) => (w(), o("div", {
|
|
3844
3950
|
key: t,
|
|
3845
3951
|
class: "g-date-range-input__error"
|
|
3846
3952
|
}, N(e), 1))), 128))])) : a("", !0)
|
|
3847
3953
|
]));
|
|
3848
3954
|
}
|
|
3849
|
-
}),
|
|
3955
|
+
}), ma = ["action", "method"], ha = /* @__PURE__ */ u({
|
|
3850
3956
|
__name: "GForm",
|
|
3851
3957
|
props: /*@__PURE__*/ m({
|
|
3852
3958
|
action: { default: void 0 },
|
|
@@ -3858,7 +3964,7 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3858
3964
|
}),
|
|
3859
3965
|
emits: /*@__PURE__*/ m(["submit"], ["update:modelValue"]),
|
|
3860
3966
|
setup(e, { emit: t }) {
|
|
3861
|
-
let n = e, r = B(e, "modelValue"), i = t, a = p("form", null), s = a ?? (
|
|
3967
|
+
let n = e, r = B(e, "modelValue"), i = t, a = p("form", null), s = a ?? (Z() ? Ae(n.formKey) : Oe());
|
|
3862
3968
|
a || T("form", s), G(() => s.values.value, (e) => {
|
|
3863
3969
|
r.value = { ...e };
|
|
3864
3970
|
}, { deep: !0 }), G(() => r.value, (e) => {
|
|
@@ -3886,9 +3992,9 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3886
3992
|
hasErrors: L(s).hasErrors.value,
|
|
3887
3993
|
values: L(s).values.value,
|
|
3888
3994
|
errors: L(s).errors.value
|
|
3889
|
-
})], 40,
|
|
3995
|
+
})], 40, ma));
|
|
3890
3996
|
}
|
|
3891
|
-
}),
|
|
3997
|
+
}), ga = /* @__PURE__ */ u({
|
|
3892
3998
|
__name: "GSubmitButton",
|
|
3893
3999
|
props: {
|
|
3894
4000
|
disabled: {
|
|
@@ -3900,7 +4006,7 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3900
4006
|
formKey: { default: "default" }
|
|
3901
4007
|
},
|
|
3902
4008
|
setup(e) {
|
|
3903
|
-
let t = e, n = R(), a = typeof n["form-key"] == "string" ? n["form-key"] : void 0, o = t.formKey || a || "default", l = p("form", null) ?? (
|
|
4009
|
+
let t = e, n = R(), a = typeof n["form-key"] == "string" ? n["form-key"] : void 0, o = t.formKey || a || "default", l = p("form", null) ?? (Z() ? Ae(o) : null), u = r(() => t.disabled || (l?.isSubmitting.value ?? !1)), d = r(() => l?.isSubmitting.value ?? !1);
|
|
3904
4010
|
return (e, n) => (w(), i(Q, {
|
|
3905
4011
|
type: "submit",
|
|
3906
4012
|
disabled: u.value,
|
|
@@ -3911,129 +4017,11 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
3911
4017
|
_: 3
|
|
3912
4018
|
}, 8, ["disabled", "variant"]));
|
|
3913
4019
|
}
|
|
3914
|
-
}),
|
|
3915
|
-
key: 0,
|
|
3916
|
-
class: "g-checkbox-group__legend"
|
|
3917
|
-
}, da = {
|
|
3918
|
-
key: 0,
|
|
3919
|
-
class: "g-checkbox-group__required",
|
|
3920
|
-
"aria-hidden": "true"
|
|
3921
|
-
}, fa = {
|
|
3922
|
-
key: 1,
|
|
3923
|
-
class: "g-checkbox-group__label"
|
|
3924
|
-
}, pa = {
|
|
3925
|
-
key: 0,
|
|
3926
|
-
class: "g-checkbox-group__required",
|
|
3927
|
-
"aria-hidden": "true"
|
|
3928
|
-
}, ma = ["id"], ha = { class: "g-checkbox-group__options" }, ga = ["for"], _a = [
|
|
3929
|
-
"id",
|
|
3930
|
-
"type",
|
|
3931
|
-
"name",
|
|
3932
|
-
"value",
|
|
3933
|
-
"checked",
|
|
3934
|
-
"disabled",
|
|
3935
|
-
"required",
|
|
3936
|
-
"onChange"
|
|
3937
|
-
], va = { class: "g-checkbox-group__label-text" }, ya = ["id"], ba = /* @__PURE__ */ u({
|
|
3938
|
-
__name: "GCheckboxGroup",
|
|
3939
|
-
props: /*@__PURE__*/ m({
|
|
3940
|
-
label: { default: void 0 },
|
|
3941
|
-
options: {},
|
|
3942
|
-
instructions: { default: "" },
|
|
3943
|
-
errors: { default: () => [] },
|
|
3944
|
-
required: {
|
|
3945
|
-
type: Boolean,
|
|
3946
|
-
default: !1
|
|
3947
|
-
},
|
|
3948
|
-
radio: {
|
|
3949
|
-
type: Boolean,
|
|
3950
|
-
default: !1
|
|
3951
|
-
},
|
|
3952
|
-
name: { default: void 0 },
|
|
3953
|
-
formKey: { default: void 0 }
|
|
3954
|
-
}, {
|
|
3955
|
-
modelValue: { default: () => [] },
|
|
3956
|
-
modelModifiers: {}
|
|
3957
|
-
}),
|
|
3958
|
-
emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
|
|
3959
|
-
setup(t, { emit: n }) {
|
|
3960
|
-
let u = t, d = B(t, "modelValue"), f = z(), { displayErrors: p, hasErrors: m } = $({
|
|
3961
|
-
name: u.name,
|
|
3962
|
-
value: d,
|
|
3963
|
-
errors: F(u, "errors"),
|
|
3964
|
-
formKey: u.formKey
|
|
3965
|
-
}), g = n;
|
|
3966
|
-
function v(e) {
|
|
3967
|
-
return d.value.includes(e);
|
|
3968
|
-
}
|
|
3969
|
-
function y(e, t) {
|
|
3970
|
-
let n;
|
|
3971
|
-
n = u.radio ? t ? [e] : [] : t ? d.value.includes(e) ? d.value : [...d.value, e] : d.value.filter((t) => t !== e), d.value = n, g("change", n);
|
|
3972
|
-
}
|
|
3973
|
-
let b = r(() => u.radio ? "radio" : "checkbox"), x = r(() => `error-message-${f}`), S = r(() => `instructions-${f}`), C = r(() => u.radio || u.options.length > 1), T = r(() => {
|
|
3974
|
-
let e = [];
|
|
3975
|
-
return u.instructions && e.push(S.value), u.radio ? {
|
|
3976
|
-
role: "radiogroup",
|
|
3977
|
-
"aria-invalid": m.value ? "true" : void 0,
|
|
3978
|
-
"aria-errormessage": m.value ? x.value : void 0,
|
|
3979
|
-
"aria-describedby": e.length ? e.join(" ") : void 0
|
|
3980
|
-
} : { "aria-describedby": e.length ? e.join(" ") : void 0 };
|
|
3981
|
-
});
|
|
3982
|
-
function E(e) {
|
|
3983
|
-
return `${f}-hint-${e}`;
|
|
3984
|
-
}
|
|
3985
|
-
function D(e) {
|
|
3986
|
-
return `${f}-input-${e}`;
|
|
3987
|
-
}
|
|
3988
|
-
function k(e, t) {
|
|
3989
|
-
let n = [];
|
|
3990
|
-
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 } : {
|
|
3991
|
-
"aria-describedby": n.length ? n.join(" ") : void 0,
|
|
3992
|
-
"aria-invalid": m.value ? "true" : "false",
|
|
3993
|
-
"aria-errormessage": m.value ? x.value : void 0
|
|
3994
|
-
};
|
|
3995
|
-
}
|
|
3996
|
-
return (n, r) => (w(), i(A(C.value ? "fieldset" : "div"), h({ class: ["g-checkbox-group", { "g-checkbox-group--error": L(m) }] }, T.value), {
|
|
3997
|
-
default: q(() => [
|
|
3998
|
-
C.value && t.label ? (w(), o("legend", ua, [c(N(t.label), 1), t.required ? (w(), o("span", da, "\xA0*")) : a("", !0)])) : !C.value && t.label ? (w(), o("div", fa, [c(N(t.label), 1), t.required ? (w(), o("span", pa, "\xA0*")) : a("", !0)])) : a("", !0),
|
|
3999
|
-
t.instructions ? (w(), o("div", {
|
|
4000
|
-
key: 2,
|
|
4001
|
-
id: S.value,
|
|
4002
|
-
class: "g-checkbox-group__instructions"
|
|
4003
|
-
}, N(t.instructions), 9, ma)) : a("", !0),
|
|
4004
|
-
s("div", ha, [(w(!0), o(e, null, O(t.options, (e, n) => (w(), o("div", {
|
|
4005
|
-
key: e.value,
|
|
4006
|
-
class: _(["g-checkbox-group__option-wrapper", { "g-checkbox-group__option-wrapper--disabled": e.disabled }])
|
|
4007
|
-
}, [s("label", {
|
|
4008
|
-
class: _(["g-checkbox-group__option", { "g-checkbox-group__option--checked": v(e.value) }]),
|
|
4009
|
-
for: D(n)
|
|
4010
|
-
}, [s("input", h({
|
|
4011
|
-
id: D(n),
|
|
4012
|
-
type: b.value,
|
|
4013
|
-
name: t.name || L(f),
|
|
4014
|
-
value: e.value,
|
|
4015
|
-
checked: v(e.value),
|
|
4016
|
-
disabled: e.disabled,
|
|
4017
|
-
required: t.required && (t.radio && n === 0 || !t.radio && t.options.length === 1),
|
|
4018
|
-
class: "g-checkbox-group__input"
|
|
4019
|
-
}, { ref_for: !0 }, k(e, n), { onChange: (t) => y(e.value, t.target.checked) }), null, 16, _a), s("span", va, N(e.label), 1)], 10, ga), e.hint ? (w(), o("div", {
|
|
4020
|
-
key: 0,
|
|
4021
|
-
id: E(n),
|
|
4022
|
-
class: "g-checkbox-group__hint"
|
|
4023
|
-
}, N(e.hint), 9, ya)) : a("", !0)], 2))), 128))]),
|
|
4024
|
-
l(Me, {
|
|
4025
|
-
errors: L(p),
|
|
4026
|
-
id: x.value
|
|
4027
|
-
}, null, 8, ["errors", "id"])
|
|
4028
|
-
]),
|
|
4029
|
-
_: 1
|
|
4030
|
-
}, 16, ["class"]));
|
|
4031
|
-
}
|
|
4032
|
-
}), xa = ["for"], Sa = {
|
|
4020
|
+
}), _a = ["for"], va = {
|
|
4033
4021
|
key: 0,
|
|
4034
4022
|
class: "g-textarea-required",
|
|
4035
4023
|
"aria-hidden": "true"
|
|
4036
|
-
},
|
|
4024
|
+
}, ya = ["id"], ba = [
|
|
4037
4025
|
"value",
|
|
4038
4026
|
"placeholder",
|
|
4039
4027
|
"disabled",
|
|
@@ -4042,11 +4030,11 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
4042
4030
|
"rows",
|
|
4043
4031
|
"maxlength",
|
|
4044
4032
|
"aria-invalid"
|
|
4045
|
-
],
|
|
4033
|
+
], xa = {
|
|
4046
4034
|
key: 2,
|
|
4047
4035
|
class: "g-textarea-char-count",
|
|
4048
4036
|
"aria-live": "polite"
|
|
4049
|
-
},
|
|
4037
|
+
}, Sa = /* @__PURE__ */ u({
|
|
4050
4038
|
inheritAttrs: !1,
|
|
4051
4039
|
__name: "GTextarea",
|
|
4052
4040
|
props: /*@__PURE__*/ m({
|
|
@@ -4120,12 +4108,12 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
4120
4108
|
key: 0,
|
|
4121
4109
|
for: m.value,
|
|
4122
4110
|
class: "g-textarea-label"
|
|
4123
|
-
}, [c(N(n.label), 1), n.required ? (w(), o("span",
|
|
4111
|
+
}, [c(N(n.label), 1), n.required ? (w(), o("span", va, " *")) : a("", !0)], 8, _a)) : a("", !0),
|
|
4124
4112
|
t.$slots.instructions || e.instructions ? (w(), o("div", {
|
|
4125
4113
|
key: 1,
|
|
4126
4114
|
id: "instructions-" + L(u),
|
|
4127
4115
|
class: "g-textarea-instructions"
|
|
4128
|
-
}, [k(t.$slots, "instructions", {}, () => [c(N(e.instructions), 1)])], 8,
|
|
4116
|
+
}, [k(t.$slots, "instructions", {}, () => [c(N(e.instructions), 1)])], 8, ya)) : a("", !0),
|
|
4129
4117
|
s("textarea", h({
|
|
4130
4118
|
ref: "textareaEl",
|
|
4131
4119
|
value: i.value ?? "",
|
|
@@ -4146,8 +4134,8 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
4146
4134
|
onInput: T,
|
|
4147
4135
|
onBlur: E,
|
|
4148
4136
|
onPaste: D
|
|
4149
|
-
}), null, 16,
|
|
4150
|
-
n.maxlength === void 0 ? a("", !0) : (w(), o("div",
|
|
4137
|
+
}), null, 16, ba),
|
|
4138
|
+
n.maxlength === void 0 ? a("", !0) : (w(), o("div", xa, N((i.value ?? "").length) + " / " + N(n.maxlength), 1)),
|
|
4151
4139
|
l(Me, {
|
|
4152
4140
|
errors: L(v),
|
|
4153
4141
|
id: "error-message-" + L(u)
|
|
@@ -4157,18 +4145,18 @@ var Dr = { class: "g-table-outer-wrap" }, Or = {
|
|
|
4157
4145
|
});
|
|
4158
4146
|
//#endregion
|
|
4159
4147
|
//#region src/compose/useActiveLink.ts
|
|
4160
|
-
function
|
|
4148
|
+
function Ca(e, t, n) {
|
|
4161
4149
|
let r = [
|
|
4162
4150
|
0,
|
|
4163
4151
|
.25,
|
|
4164
4152
|
.5,
|
|
4165
4153
|
.75,
|
|
4166
4154
|
1
|
|
4167
|
-
], i = `${-t}px 0px 0px 0px`, a = /* @__PURE__ */ new Map(), o = D(Array.from(
|
|
4168
|
-
|
|
4169
|
-
o.value = Array.from(
|
|
4155
|
+
], i = `${-t}px 0px 0px 0px`, a = /* @__PURE__ */ new Map(), o = D(Array.from(re(e)?.children || []));
|
|
4156
|
+
le(e, () => {
|
|
4157
|
+
o.value = Array.from(re(e)?.children || []);
|
|
4170
4158
|
}, { childList: !0 });
|
|
4171
|
-
let { stop: s } =
|
|
4159
|
+
let { stop: s } = se(o, (e) => {
|
|
4172
4160
|
let t = o.value[o.value.length - 1];
|
|
4173
4161
|
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);
|
|
4174
4162
|
let r = null, i = 0;
|
|
@@ -4187,8 +4175,8 @@ function Da(e, t, n) {
|
|
|
4187
4175
|
}
|
|
4188
4176
|
//#endregion
|
|
4189
4177
|
//#region src/compose/useSidebar.ts
|
|
4190
|
-
function
|
|
4191
|
-
let t = z(), n = D(!1), r =
|
|
4178
|
+
function wa(e = "(max-width: 800px)") {
|
|
4179
|
+
let t = z(), n = D(!1), r = ce(e, { ssrWidth: 1e3 });
|
|
4192
4180
|
function i(e) {
|
|
4193
4181
|
if (!r.value || !n.value) return;
|
|
4194
4182
|
let i = e.target, a = document.getElementById(`${t}-sidebar`), o = document.getElementById(`${t}-hamburger`);
|
|
@@ -4218,8 +4206,8 @@ function Oa(e = "(max-width: 800px)") {
|
|
|
4218
4206
|
}
|
|
4219
4207
|
//#endregion
|
|
4220
4208
|
//#region src/compose/useTableChanges.ts
|
|
4221
|
-
function
|
|
4222
|
-
let e = j(/* @__PURE__ */ new Map()), t =
|
|
4209
|
+
function Ta() {
|
|
4210
|
+
let e = j(/* @__PURE__ */ new Map()), t = te(), n = (n) => {
|
|
4223
4211
|
let r = n.column.key, i = n.row.key, a = n.value, o = n.previousValue;
|
|
4224
4212
|
e.has(i) || e.set(i, j(/* @__PURE__ */ new Map()));
|
|
4225
4213
|
let s = e.get(i), c = s.get(r), l = c ? c.previousValue : o, u = c?.error;
|
|
@@ -4321,6 +4309,6 @@ function ka() {
|
|
|
4321
4309
|
};
|
|
4322
4310
|
}
|
|
4323
4311
|
//#endregion
|
|
4324
|
-
export { $, ir as A, nn as B,
|
|
4312
|
+
export { $, ir as A, nn as B, Mr as C, Lr as D, Ir as E, bn as F, mt as G, Mt as H, gn as I, et as J, ot as K, mn as L, On as M, Cn as N, jr as O, xn as P, ze as Q, pn as R, Pr as S, Nr as T, Et as U, Kt as V, xt as W, qe as X, $e as Y, Je as Z, ji as _, ga as a, Q as at, xi as b, oa as c, Zi as d, Ae as et, Xi as f, Fi as g, Li as h, Sa as i, be as it, Un as j, br as k, aa as l, Vi as m, wa as n, De as nt, ha as o, Gi as p, tt as q, Ca as r, xe as rt, pa as s, Ta as t, Oe as tt, Qi as u, Ai as v, Fr as w, fi as x, Di as y, un as z };
|
|
4325
4313
|
|
|
4326
|
-
//# sourceMappingURL=grad-vue-
|
|
4314
|
+
//# sourceMappingURL=grad-vue-6hV02JpW.js.map
|