@illinois-grad/grad-vue 3.0.2 → 3.0.4
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/table/TableColumn.d.ts +5 -0
- package/dist/{grad-vue-SX-RHHr3.js → grad-vue-BlLcBFHO.js} +404 -391
- package/dist/{grad-vue-SX-RHHr3.js.map → grad-vue-BlLcBFHO.js.map} +1 -1
- package/dist/grad-vue-elements.css +29 -29
- package/dist/grad-vue-elements.js +15 -2
- 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 +5 -5
|
@@ -2335,31 +2335,296 @@ var un = ["id"], dn = /* @__PURE__ */ u({
|
|
|
2335
2335
|
id: `${t.tableId}-error-${n.key}-${String(r.key)}`
|
|
2336
2336
|
}, N(C(n, r)), 9, Qn)) : a("", !0)], 10, Gn))), 128))], 42, Un)], 64))), 128))], 512));
|
|
2337
2337
|
}
|
|
2338
|
+
}), er = ["id", "for"], tr = {
|
|
2339
|
+
key: 0,
|
|
2340
|
+
class: "g-multiselect-required",
|
|
2341
|
+
"aria-hidden": "true"
|
|
2342
|
+
}, nr = ["id"], rr = ["aria-labelledby"], ir = { class: "g-multiselect-chip-label" }, ar = [
|
|
2343
|
+
"aria-label",
|
|
2344
|
+
"disabled",
|
|
2345
|
+
"onClick"
|
|
2346
|
+
], or = [
|
|
2347
|
+
"id",
|
|
2348
|
+
"value",
|
|
2349
|
+
"placeholder",
|
|
2350
|
+
"disabled",
|
|
2351
|
+
"aria-expanded",
|
|
2352
|
+
"aria-controls",
|
|
2353
|
+
"aria-activedescendant",
|
|
2354
|
+
"aria-describedby",
|
|
2355
|
+
"aria-required"
|
|
2356
|
+
], sr = ["id"], cr = [
|
|
2357
|
+
"id",
|
|
2358
|
+
"aria-selected",
|
|
2359
|
+
"onClick"
|
|
2360
|
+
], lr = {
|
|
2361
|
+
class: "g-multiselect-option-check",
|
|
2362
|
+
"aria-hidden": "true"
|
|
2363
|
+
}, ur = {
|
|
2364
|
+
key: 0,
|
|
2365
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2366
|
+
viewBox: "0 0 640 640",
|
|
2367
|
+
width: "1.25em"
|
|
2368
|
+
}, dr = {
|
|
2369
|
+
key: 1,
|
|
2370
|
+
"aria-live": "polite",
|
|
2371
|
+
class: "g-multiselect-option g-multiselect-no-results"
|
|
2372
|
+
}, fr = /* @__PURE__ */ u({
|
|
2373
|
+
__name: "GMultiSelect",
|
|
2374
|
+
props: /* @__PURE__ */ m({
|
|
2375
|
+
options: {},
|
|
2376
|
+
label: {},
|
|
2377
|
+
hiddenLabel: {
|
|
2378
|
+
type: Boolean,
|
|
2379
|
+
default: !1
|
|
2380
|
+
},
|
|
2381
|
+
placeholder: {},
|
|
2382
|
+
disabled: {
|
|
2383
|
+
type: Boolean,
|
|
2384
|
+
default: !1
|
|
2385
|
+
},
|
|
2386
|
+
required: {
|
|
2387
|
+
type: Boolean,
|
|
2388
|
+
default: !1
|
|
2389
|
+
},
|
|
2390
|
+
name: {},
|
|
2391
|
+
errors: { default: () => [] },
|
|
2392
|
+
instructions: {},
|
|
2393
|
+
formKey: {}
|
|
2394
|
+
}, {
|
|
2395
|
+
modelValue: { default: () => [] },
|
|
2396
|
+
modelModifiers: {}
|
|
2397
|
+
}),
|
|
2398
|
+
emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
|
|
2399
|
+
setup(t, { emit: n }) {
|
|
2400
|
+
let i = t, u = n, d = B(t, "modelValue"), f = z(), p = D(null), m = D(null), v = D(null), y = D(!1), b = D(0), x = D(""), S = D(!1), { displayErrors: C, hasErrors: T } = $({
|
|
2401
|
+
name: i.name,
|
|
2402
|
+
value: d,
|
|
2403
|
+
errors: F(i, "errors"),
|
|
2404
|
+
formKey: i.formKey
|
|
2405
|
+
}), { menuPlacement: E, menuStyle: k, isTop: A, scrollOptionIntoView: j } = Mt({
|
|
2406
|
+
open: y,
|
|
2407
|
+
anchorRef: m,
|
|
2408
|
+
listboxRef: v,
|
|
2409
|
+
baseId: f,
|
|
2410
|
+
activeIndex: b
|
|
2411
|
+
}), M = r(() => jt(i.options)), P = r(() => {
|
|
2412
|
+
if (!x.value) return M.value;
|
|
2413
|
+
let e = x.value.toLowerCase();
|
|
2414
|
+
return M.value.filter((t) => t.label.toLowerCase().includes(e));
|
|
2415
|
+
});
|
|
2416
|
+
function I(e) {
|
|
2417
|
+
return d.value.includes(e);
|
|
2418
|
+
}
|
|
2419
|
+
function R(e) {
|
|
2420
|
+
let t = M.value.find((t) => t.value === e);
|
|
2421
|
+
return t ? t.label : String(e);
|
|
2422
|
+
}
|
|
2423
|
+
function V() {
|
|
2424
|
+
i.disabled || (y.value = !0, b.value = 0);
|
|
2425
|
+
}
|
|
2426
|
+
function H() {
|
|
2427
|
+
y.value = !1, x.value = "";
|
|
2428
|
+
}
|
|
2429
|
+
function U(e) {
|
|
2430
|
+
let t = P.value[e];
|
|
2431
|
+
if (!t) return;
|
|
2432
|
+
let n = d.value, r = I(t.value) ? n.filter((e) => e !== t.value) : [...n, t.value];
|
|
2433
|
+
d.value = r, u("change", r), g(() => p.value?.focus());
|
|
2434
|
+
}
|
|
2435
|
+
function W(e) {
|
|
2436
|
+
if (i.disabled) return;
|
|
2437
|
+
let t = d.value.filter((t) => t !== e);
|
|
2438
|
+
d.value = t, u("change", t);
|
|
2439
|
+
}
|
|
2440
|
+
function G() {
|
|
2441
|
+
i.disabled || (p.value?.focus(), y.value || V());
|
|
2442
|
+
}
|
|
2443
|
+
function K(e) {
|
|
2444
|
+
x.value = e.target.value, b.value = 0, y.value || V();
|
|
2445
|
+
}
|
|
2446
|
+
function Y() {
|
|
2447
|
+
i.disabled || y.value || V();
|
|
2448
|
+
}
|
|
2449
|
+
function te(e) {
|
|
2450
|
+
if (S.value) {
|
|
2451
|
+
S.value = !1;
|
|
2452
|
+
return;
|
|
2453
|
+
}
|
|
2454
|
+
let t = e.relatedTarget;
|
|
2455
|
+
t && v.value?.contains(t) || t && m.value?.contains(t) || H();
|
|
2456
|
+
}
|
|
2457
|
+
function X(e) {
|
|
2458
|
+
e.preventDefault();
|
|
2459
|
+
}
|
|
2460
|
+
function Z() {
|
|
2461
|
+
S.value = !0;
|
|
2462
|
+
}
|
|
2463
|
+
function ne(e) {
|
|
2464
|
+
if (i.disabled) return;
|
|
2465
|
+
let t = P.value.length - 1;
|
|
2466
|
+
switch (e.key) {
|
|
2467
|
+
case "ArrowDown":
|
|
2468
|
+
e.preventDefault(), y.value ? (b.value = Math.min(t, b.value + 1), j()) : V();
|
|
2469
|
+
break;
|
|
2470
|
+
case "ArrowUp":
|
|
2471
|
+
e.preventDefault(), y.value ? (b.value = Math.max(0, b.value - 1), j()) : V();
|
|
2472
|
+
break;
|
|
2473
|
+
case "Home":
|
|
2474
|
+
e.preventDefault(), b.value = 0, j();
|
|
2475
|
+
break;
|
|
2476
|
+
case "End":
|
|
2477
|
+
e.preventDefault(), b.value = t, j();
|
|
2478
|
+
break;
|
|
2479
|
+
case "Enter":
|
|
2480
|
+
e.preventDefault(), y.value && P.value.length > 0 ? U(b.value) : y.value || V();
|
|
2481
|
+
break;
|
|
2482
|
+
case " ":
|
|
2483
|
+
y.value && !x.value && (e.preventDefault(), P.value.length > 0 && U(b.value));
|
|
2484
|
+
break;
|
|
2485
|
+
case "Escape":
|
|
2486
|
+
A.value && (e.preventDefault(), setTimeout(() => H(), 0));
|
|
2487
|
+
break;
|
|
2488
|
+
case "Backspace":
|
|
2489
|
+
!x.value && d.value.length > 0 && W(d.value[d.value.length - 1]);
|
|
2490
|
+
break;
|
|
2491
|
+
}
|
|
2492
|
+
}
|
|
2493
|
+
let re = r(() => `${f}-input`), ie = r(() => `${f}-label`), ae = r(() => `${f}-instructions`), oe = r(() => `error-message-${f}`), se = r(() => {
|
|
2494
|
+
let e = [];
|
|
2495
|
+
return i.instructions && e.push(ae.value), T.value && e.push(oe.value), e.length > 0 ? e.join(" ") : void 0;
|
|
2496
|
+
});
|
|
2497
|
+
return (n, r) => (w(), o("div", { class: _(["g-multiselect-root", {
|
|
2498
|
+
"g-multiselect-open": y.value,
|
|
2499
|
+
"g-multiselect-has-error": L(T)
|
|
2500
|
+
}]) }, [
|
|
2501
|
+
t.hiddenLabel ? a("", !0) : (w(), o("label", {
|
|
2502
|
+
key: 0,
|
|
2503
|
+
id: ie.value,
|
|
2504
|
+
for: re.value,
|
|
2505
|
+
class: "g-multiselect-label"
|
|
2506
|
+
}, [c(N(t.label), 1), t.required ? (w(), o("span", tr, " *")) : a("", !0)], 8, er)),
|
|
2507
|
+
t.instructions ? (w(), o("div", {
|
|
2508
|
+
key: 1,
|
|
2509
|
+
id: ae.value,
|
|
2510
|
+
class: "g-multiselect-instructions"
|
|
2511
|
+
}, N(t.instructions), 9, nr)) : a("", !0),
|
|
2512
|
+
s("div", {
|
|
2513
|
+
ref_key: "controlRef",
|
|
2514
|
+
ref: m,
|
|
2515
|
+
class: _(["g-multiselect-control", { "g-multiselect-control--disabled": t.disabled }]),
|
|
2516
|
+
onClick: G
|
|
2517
|
+
}, [
|
|
2518
|
+
s("ul", {
|
|
2519
|
+
class: "g-multiselect-chips",
|
|
2520
|
+
"aria-labelledby": ie.value
|
|
2521
|
+
}, [(w(!0), o(e, null, O(d.value, (e) => (w(), o("li", {
|
|
2522
|
+
key: e,
|
|
2523
|
+
class: "g-multiselect-chip"
|
|
2524
|
+
}, [s("span", ir, N(R(e)), 1), s("button", {
|
|
2525
|
+
type: "button",
|
|
2526
|
+
class: "g-multiselect-chip-remove",
|
|
2527
|
+
"aria-label": `Remove ${R(e)}`,
|
|
2528
|
+
disabled: t.disabled,
|
|
2529
|
+
onMousedown: Z,
|
|
2530
|
+
onClick: J((t) => W(e), ["stop"])
|
|
2531
|
+
}, [...r[0] ||= [s("svg", {
|
|
2532
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2533
|
+
viewBox: "0 0 51.26 51.26",
|
|
2534
|
+
width: "1em",
|
|
2535
|
+
role: "none presentation"
|
|
2536
|
+
}, [s("path", {
|
|
2537
|
+
fill: "currentColor",
|
|
2538
|
+
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"
|
|
2539
|
+
})], -1)]], 40, ar)]))), 128))], 8, rr),
|
|
2540
|
+
s("input", h({
|
|
2541
|
+
ref_key: "inputRef",
|
|
2542
|
+
ref: p,
|
|
2543
|
+
type: "text",
|
|
2544
|
+
role: "combobox",
|
|
2545
|
+
class: "g-multiselect-input",
|
|
2546
|
+
id: re.value,
|
|
2547
|
+
value: x.value,
|
|
2548
|
+
placeholder: d.value.length === 0 ? t.placeholder : void 0,
|
|
2549
|
+
disabled: t.disabled,
|
|
2550
|
+
autocomplete: "off",
|
|
2551
|
+
"aria-autocomplete": "list",
|
|
2552
|
+
"aria-expanded": y.value ? "true" : "false",
|
|
2553
|
+
"aria-haspopup": "listbox",
|
|
2554
|
+
"aria-controls": L(f) + "-listbox",
|
|
2555
|
+
"aria-activedescendant": y.value && P.value.length > 0 ? L(f) + "-option-" + b.value : void 0
|
|
2556
|
+
}, t.hiddenLabel ? { "aria-label": t.label } : void 0, {
|
|
2557
|
+
"aria-describedby": se.value,
|
|
2558
|
+
"aria-required": t.required ? "true" : void 0,
|
|
2559
|
+
onInput: K,
|
|
2560
|
+
onKeydown: ne,
|
|
2561
|
+
onFocus: Y,
|
|
2562
|
+
onBlur: te
|
|
2563
|
+
}), null, 16, or),
|
|
2564
|
+
r[2] ||= s("svg", {
|
|
2565
|
+
class: "g-multiselect-caret",
|
|
2566
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2567
|
+
viewBox: "0 0 51.26 51.26",
|
|
2568
|
+
"aria-hidden": "true",
|
|
2569
|
+
width: "1.125em"
|
|
2570
|
+
}, [s("path", {
|
|
2571
|
+
fill: "currentColor",
|
|
2572
|
+
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"
|
|
2573
|
+
})], -1),
|
|
2574
|
+
q(s("div", h({
|
|
2575
|
+
ref_key: "listboxRef",
|
|
2576
|
+
ref: v,
|
|
2577
|
+
id: L(f) + "-listbox",
|
|
2578
|
+
role: "listbox",
|
|
2579
|
+
"aria-multiselectable": "true"
|
|
2580
|
+
}, t.hiddenLabel ? { "aria-label": t.label } : { "aria-labelledby": ie.value }, {
|
|
2581
|
+
class: ["g-multiselect-listbox", { "g-multiselect-listbox--above": L(E) === "above" }],
|
|
2582
|
+
style: L(k),
|
|
2583
|
+
tabindex: "-1"
|
|
2584
|
+
}), [P.value.length > 0 ? (w(!0), o(e, { key: 0 }, O(P.value, (e, t) => (w(), o("div", {
|
|
2585
|
+
key: e.value,
|
|
2586
|
+
id: L(f) + "-option-" + t,
|
|
2587
|
+
role: "option",
|
|
2588
|
+
class: _(["g-multiselect-option", {
|
|
2589
|
+
"g-multiselect-option--active": t === b.value,
|
|
2590
|
+
"g-multiselect-option--selected": I(e.value)
|
|
2591
|
+
}]),
|
|
2592
|
+
"aria-selected": I(e.value) ? "true" : "false",
|
|
2593
|
+
onMousedown: X,
|
|
2594
|
+
onClick: (e) => U(t)
|
|
2595
|
+
}, [s("span", lr, [I(e.value) ? (w(), o("svg", ur, [...r[1] ||= [s("path", { d: "M530.8 134.1C545.1 144.5 548.3 164.5 537.9 178.8L281.9 530.8C276.4 538.4 267.9 543.1 258.5 543.9C249.1 544.7 240 541.2 233.4 534.6L105.4 406.6C92.9 394.1 92.9 373.8 105.4 361.3C117.9 348.8 138.2 348.8 150.7 361.3L252.2 462.8L486.2 141.1C496.6 126.8 516.6 123.6 530.9 134z" }, null, -1)]])) : a("", !0)]), c(" " + N(e.label), 1)], 42, cr))), 128)) : (w(), o("div", dr, " No results found. "))], 16, sr), [[ee, y.value]])
|
|
2596
|
+
], 2),
|
|
2597
|
+
l(je, {
|
|
2598
|
+
errors: L(C),
|
|
2599
|
+
id: oe.value
|
|
2600
|
+
}, null, 8, ["errors", "id"])
|
|
2601
|
+
], 2));
|
|
2602
|
+
}
|
|
2338
2603
|
});
|
|
2339
2604
|
//#endregion
|
|
2340
2605
|
//#region src/compose/useFiltering.ts
|
|
2341
|
-
function
|
|
2606
|
+
function pr(e) {
|
|
2342
2607
|
if (!(Array.isArray(e) && e.length === 0) && !(e === null || e === !1 || e === "")) return e;
|
|
2343
2608
|
}
|
|
2344
|
-
function
|
|
2609
|
+
function mr(e) {
|
|
2345
2610
|
return Object.fromEntries(Object.entries(e).filter(([e, t]) => t && (!Array.isArray(t) || t.length > 0)));
|
|
2346
2611
|
}
|
|
2347
|
-
function
|
|
2612
|
+
function hr(e) {
|
|
2348
2613
|
if (e != null) return Array.isArray(e) ? e.filter((e) => e != null) : [e];
|
|
2349
2614
|
}
|
|
2350
|
-
function
|
|
2615
|
+
function gr(e) {
|
|
2351
2616
|
let t = {};
|
|
2352
2617
|
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;
|
|
2353
2618
|
return t;
|
|
2354
2619
|
}
|
|
2355
|
-
function
|
|
2620
|
+
function _r(e) {
|
|
2356
2621
|
let t = {};
|
|
2357
2622
|
return Object.keys(e).forEach((n) => {
|
|
2358
2623
|
let r = e[n];
|
|
2359
2624
|
r != null && r !== "" && r !== !1 && (Array.isArray(r) ? r.length > 0 && (t[n] = r.map((e) => String(e))) : t[n] = String(r));
|
|
2360
2625
|
}), t;
|
|
2361
2626
|
}
|
|
2362
|
-
function
|
|
2627
|
+
function vr(e, t = {}) {
|
|
2363
2628
|
let n = E(Object.fromEntries(Object.entries(e).map(([e, t]) => [e, t]))), i = t.syncWith;
|
|
2364
2629
|
if (i) {
|
|
2365
2630
|
if (i.value) {
|
|
@@ -2372,13 +2637,13 @@ function ar(e, t = {}) {
|
|
|
2372
2637
|
});
|
|
2373
2638
|
}
|
|
2374
2639
|
W(n, (e) => {
|
|
2375
|
-
i.value =
|
|
2640
|
+
i.value = _r(e);
|
|
2376
2641
|
}, { deep: !0 });
|
|
2377
2642
|
}
|
|
2378
2643
|
return {
|
|
2379
2644
|
filters: n,
|
|
2380
2645
|
isFiltered: r(() => {
|
|
2381
|
-
for (let t of Object.keys(e)) if (
|
|
2646
|
+
for (let t of Object.keys(e)) if (pr(n[t])) return !0;
|
|
2382
2647
|
return !1;
|
|
2383
2648
|
}),
|
|
2384
2649
|
clearFilters: () => {
|
|
@@ -2388,48 +2653,48 @@ function ar(e, t = {}) {
|
|
|
2388
2653
|
},
|
|
2389
2654
|
filteredColumns: r(() => {
|
|
2390
2655
|
let t = {};
|
|
2391
|
-
for (let r of Object.keys(e)) t[r] = !!
|
|
2656
|
+
for (let r of Object.keys(e)) t[r] = !!pr(n[r]);
|
|
2392
2657
|
return t;
|
|
2393
2658
|
})
|
|
2394
2659
|
};
|
|
2395
2660
|
}
|
|
2396
2661
|
//#endregion
|
|
2397
2662
|
//#region src/components/GTable.vue?vue&type=script&setup=true&lang.ts
|
|
2398
|
-
var
|
|
2663
|
+
var yr = { class: "g-table-outer-wrap" }, br = {
|
|
2399
2664
|
key: 0,
|
|
2400
2665
|
class: "g-table-controls"
|
|
2401
|
-
},
|
|
2666
|
+
}, xr = { class: "g-clear-filters-wrap" }, Sr = {
|
|
2402
2667
|
key: 0,
|
|
2403
2668
|
class: "pagination"
|
|
2404
|
-
},
|
|
2669
|
+
}, Cr = { class: "g-result-count" }, wr = ["aria-label", "aria-rowcount"], Tr = { class: "g-table-head" }, Er = { "aria-rowindex": "1" }, Dr = {
|
|
2405
2670
|
key: 0,
|
|
2406
2671
|
scope: "col",
|
|
2407
2672
|
class: "g-th g-th-checkbox"
|
|
2408
|
-
},
|
|
2673
|
+
}, Or = [
|
|
2409
2674
|
"checked",
|
|
2410
2675
|
"indeterminate",
|
|
2411
2676
|
"aria-label"
|
|
2412
|
-
],
|
|
2677
|
+
], kr = ["id", "aria-sort"], Ar = { class: "th-inner" }, jr = ["onClick"], Mr = {
|
|
2413
2678
|
key: 0,
|
|
2414
2679
|
class: "sort-indicator"
|
|
2415
|
-
},
|
|
2680
|
+
}, Nr = ["aria-label"], Pr = {
|
|
2416
2681
|
key: 1,
|
|
2417
2682
|
class: "g-column-head"
|
|
2418
|
-
},
|
|
2683
|
+
}, Fr = ["onClick", "aria-label"], Ir = { key: 1 }, Lr = { class: "g-filter-toggle" }, Rr = [
|
|
2419
2684
|
"onUpdate:modelValue",
|
|
2420
2685
|
"id",
|
|
2421
2686
|
"aria-describedby"
|
|
2422
|
-
],
|
|
2423
|
-
key:
|
|
2687
|
+
], zr = ["for"], Br = ["id"], Vr = {
|
|
2688
|
+
key: 3,
|
|
2424
2689
|
class: "g-multi-select"
|
|
2425
|
-
},
|
|
2690
|
+
}, Hr = [
|
|
2426
2691
|
"onUpdate:modelValue",
|
|
2427
2692
|
"id",
|
|
2428
2693
|
"value"
|
|
2429
|
-
],
|
|
2694
|
+
], Ur = ["for"], Wr = {
|
|
2430
2695
|
key: 1,
|
|
2431
2696
|
class: "g-bulk-actions-toolbar"
|
|
2432
|
-
},
|
|
2697
|
+
}, Gr = { class: "g-selected-count" }, Kr = { class: "g-bulk-actions" }, qr = /* @__PURE__ */ u({
|
|
2433
2698
|
__name: "GTable",
|
|
2434
2699
|
props: /* @__PURE__ */ m({
|
|
2435
2700
|
label: {},
|
|
@@ -2478,7 +2743,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2478
2743
|
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));
|
|
2479
2744
|
}
|
|
2480
2745
|
let v = m.filtering;
|
|
2481
|
-
v ||=
|
|
2746
|
+
v ||= vr({});
|
|
2482
2747
|
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);
|
|
2483
2748
|
function I() {
|
|
2484
2749
|
if (j.value) p.value = p.value.filter((e) => !E.value.includes(e));
|
|
@@ -2524,9 +2789,9 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2524
2789
|
let e = f.value[t.key];
|
|
2525
2790
|
f.value[t.key] = e ? [e] : [];
|
|
2526
2791
|
}
|
|
2527
|
-
}, { immediate: !0 }), (n, r) => (w(), o("div",
|
|
2528
|
-
Z.value ? (w(), o("div",
|
|
2529
|
-
s("div",
|
|
2792
|
+
}, { immediate: !0 }), (n, r) => (w(), o("div", yr, [
|
|
2793
|
+
Z.value ? (w(), o("div", br, [
|
|
2794
|
+
s("div", xr, [L(C) ? (w(), i(Q, {
|
|
2530
2795
|
key: 0,
|
|
2531
2796
|
outlined: "",
|
|
2532
2797
|
size: "small",
|
|
@@ -2544,22 +2809,22 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2544
2809
|
})], -1), s("span", { class: "g-clear-filters-text" }, " Clear Filters ", -1)]]),
|
|
2545
2810
|
_: 1
|
|
2546
2811
|
}, 8, ["onClick"])) : a("", !0)]),
|
|
2547
|
-
X.value ? (w(), o("div",
|
|
2548
|
-
s("span",
|
|
2812
|
+
X.value ? (w(), o("div", Sr, [k(n.$slots, "pagination")])) : a("", !0),
|
|
2813
|
+
s("span", Cr, N(m.resultCount || t.data.length) + " results", 1)
|
|
2549
2814
|
])) : a("", !0),
|
|
2550
2815
|
s("table", {
|
|
2551
2816
|
class: "g-table",
|
|
2552
2817
|
ref: "tableRef",
|
|
2553
2818
|
"aria-label": t.label,
|
|
2554
2819
|
"aria-rowcount": m.resultCount || t.data.length
|
|
2555
|
-
}, [s("thead",
|
|
2820
|
+
}, [s("thead", Tr, [s("tr", Er, [t.bulkSelectionEnabled ? (w(), o("th", Dr, [s("input", {
|
|
2556
2821
|
type: "checkbox",
|
|
2557
2822
|
checked: j.value,
|
|
2558
2823
|
indeterminate: M.value,
|
|
2559
2824
|
onChange: I,
|
|
2560
2825
|
"aria-label": j.value ? "Deselect all rows" : "Select all rows",
|
|
2561
2826
|
class: "g-bulk-select-checkbox"
|
|
2562
|
-
}, null, 40,
|
|
2827
|
+
}, null, 40, Or)])) : a("", !0), (w(!0), o(e, null, O(t.columns, (t) => (w(), o("th", {
|
|
2563
2828
|
key: t.key,
|
|
2564
2829
|
id: `${L(Y)}-th-${String(t.key)}`,
|
|
2565
2830
|
"aria-sort": u.value === t.key ? d.value === 1 ? "ascending" : "descending" : "none",
|
|
@@ -2569,12 +2834,12 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2569
2834
|
{ filtered: L(x)[t.key] }
|
|
2570
2835
|
]),
|
|
2571
2836
|
scope: "col"
|
|
2572
|
-
}, [s("div",
|
|
2837
|
+
}, [s("div", Ar, [t.sortable ? (w(), o("button", {
|
|
2573
2838
|
key: 0,
|
|
2574
2839
|
type: "button",
|
|
2575
2840
|
class: "g-column-head",
|
|
2576
2841
|
onClick: (e) => g(t)
|
|
2577
|
-
}, [c(N(t.label) + " ", 1), u.value === t.key ? (w(), o("span",
|
|
2842
|
+
}, [c(N(t.label) + " ", 1), u.value === t.key ? (w(), o("span", Mr, [(w(), o("svg", {
|
|
2578
2843
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2579
2844
|
viewBox: "0 0 640 640",
|
|
2580
2845
|
height: "1.5em",
|
|
@@ -2584,7 +2849,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2584
2849
|
}, [...r[1] ||= [s("path", {
|
|
2585
2850
|
fill: "currentColor",
|
|
2586
2851
|
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"
|
|
2587
|
-
}, null, -1)]], 12,
|
|
2852
|
+
}, null, -1)]], 12, Nr))])) : a("", !0)], 8, jr)) : (w(), o("span", Pr, N(t.label), 1)), t.filter ? (w(), i(it, { key: 2 }, {
|
|
2588
2853
|
trigger: K(({ toggle: e }) => [s("button", {
|
|
2589
2854
|
onClick: J(e, ["stop"]),
|
|
2590
2855
|
"aria-label": L(x)[t.key] ? "Column Filtered" : "Filter Column",
|
|
@@ -2598,7 +2863,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2598
2863
|
}, [s("path", {
|
|
2599
2864
|
fill: "currentColor",
|
|
2600
2865
|
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"
|
|
2601
|
-
})], -1)]], 10,
|
|
2866
|
+
})], -1)]], 10, Fr)]),
|
|
2602
2867
|
default: K(() => [t.filter.type === "select" ? (w(), i(Ht, {
|
|
2603
2868
|
key: 0,
|
|
2604
2869
|
modelValue: f.value[t.key],
|
|
@@ -2612,20 +2877,33 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2612
2877
|
"modelValue",
|
|
2613
2878
|
"onUpdate:modelValue",
|
|
2614
2879
|
"options"
|
|
2615
|
-
])) : t.filter.type === "toggle" ? (w(), o("div",
|
|
2880
|
+
])) : t.filter.type === "toggle" ? (w(), o("div", Ir, [s("div", Lr, [
|
|
2616
2881
|
q(s("input", {
|
|
2617
2882
|
type: "checkbox",
|
|
2618
2883
|
"onUpdate:modelValue": (e) => f.value[t.key] = e,
|
|
2619
2884
|
id: `${L(Y)}-filter-${String(t.key)}`,
|
|
2620
2885
|
"aria-describedby": t.filter.description ? `${L(Y)}-filter-description-${String(t.key)}` : void 0
|
|
2621
|
-
}, null, 8,
|
|
2622
|
-
s("label", { for: `${L(Y)}-filter-${String(t.key)}` }, N(t.filter.label), 9,
|
|
2886
|
+
}, null, 8, Rr), [[U, f.value[t.key]]]),
|
|
2887
|
+
s("label", { for: `${L(Y)}-filter-${String(t.key)}` }, N(t.filter.label), 9, zr),
|
|
2623
2888
|
t.filter.description ? (w(), o("span", {
|
|
2624
2889
|
key: 0,
|
|
2625
2890
|
class: "g-filter-description",
|
|
2626
2891
|
id: `${L(Y)}-filter-description-${String(t.key)}`
|
|
2627
|
-
}, N(t.filter.description), 9,
|
|
2628
|
-
])])) : t.filter.type === "multi-select" ? (w(),
|
|
2892
|
+
}, N(t.filter.description), 9, Br)) : a("", !0)
|
|
2893
|
+
])])) : t.filter.type === "multi-select" && t.filter.searchable ? (w(), i(fr, {
|
|
2894
|
+
key: 2,
|
|
2895
|
+
modelValue: f.value[t.key],
|
|
2896
|
+
"onUpdate:modelValue": (e) => f.value[t.key] = e,
|
|
2897
|
+
options: t.filter.options,
|
|
2898
|
+
label: "Include values",
|
|
2899
|
+
placeholder: t.filter.placeholder,
|
|
2900
|
+
class: "g-multi-select-searchable"
|
|
2901
|
+
}, null, 8, [
|
|
2902
|
+
"modelValue",
|
|
2903
|
+
"onUpdate:modelValue",
|
|
2904
|
+
"options",
|
|
2905
|
+
"placeholder"
|
|
2906
|
+
])) : t.filter.type === "multi-select" ? (w(), o("fieldset", Vr, [
|
|
2629
2907
|
r[4] ||= s("legend", { class: "g-multi-select-legend" }, " Include values ", -1),
|
|
2630
2908
|
(w(!0), o(e, null, O(t.filter.options, (e) => (w(), o("div", { key: e.value }, [q(s("input", {
|
|
2631
2909
|
type: "checkbox",
|
|
@@ -2633,7 +2911,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2633
2911
|
id: `filter-${String(t.key)}-${e.value}`,
|
|
2634
2912
|
value: e.value,
|
|
2635
2913
|
name: "filter-multiselect"
|
|
2636
|
-
}, null, 8,
|
|
2914
|
+
}, null, 8, Hr), [[U, f.value[t.key]]]), s("label", { for: `filter-${String(t.key)}-${e.value}` }, N(e.label), 9, Ur)]))), 128)),
|
|
2637
2915
|
f.value[t.key] && f.value[t.key].length ? (w(), i(Q, {
|
|
2638
2916
|
key: 0,
|
|
2639
2917
|
class: "clear-multiselect-btn",
|
|
@@ -2646,7 +2924,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2646
2924
|
}, 8, ["onClick"])) : a("", !0)
|
|
2647
2925
|
])) : a("", !0)]),
|
|
2648
2926
|
_: 2
|
|
2649
|
-
}, 1024)) : a("", !0)])], 10,
|
|
2927
|
+
}, 1024)) : a("", !0)])], 10, kr))), 128))])]), l($n, {
|
|
2650
2928
|
data: t.data,
|
|
2651
2929
|
columns: t.columns,
|
|
2652
2930
|
"group-by": t.groupBy,
|
|
@@ -2673,8 +2951,8 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2673
2951
|
"selected-rows",
|
|
2674
2952
|
"table-id",
|
|
2675
2953
|
"change-tracker"
|
|
2676
|
-
])], 8,
|
|
2677
|
-
t.bulkSelectionEnabled && p.value.length > 0 ? (w(), o("div",
|
|
2954
|
+
])], 8, wr),
|
|
2955
|
+
t.bulkSelectionEnabled && p.value.length > 0 ? (w(), o("div", Wr, [s("span", Gr, N(p.value.length) + " row" + N(p.value.length === 1 ? "" : "s") + " selected", 1), s("ul", Kr, [(w(!0), o(e, null, O(t.bulkActions, (e) => (w(), o("li", { key: e.id }, [l(Q, {
|
|
2678
2956
|
theme: e.theme || "accent",
|
|
2679
2957
|
onClick: (t) => ee(e.id),
|
|
2680
2958
|
size: "small"
|
|
@@ -2684,10 +2962,10 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2684
2962
|
}, 1032, ["theme", "onClick"])]))), 128))])])) : a("", !0)
|
|
2685
2963
|
]));
|
|
2686
2964
|
}
|
|
2687
|
-
}),
|
|
2965
|
+
}), Jr = {
|
|
2688
2966
|
class: "g-pagination",
|
|
2689
2967
|
"aria-label": "Pagination"
|
|
2690
|
-
},
|
|
2968
|
+
}, Yr = ["disabled"], Xr = ["disabled"], Zr = { class: "page-range" }, Qr = ["disabled"], $r = ["disabled"], ei = ["value"], ti = ["value"], ni = /* @__PURE__ */ u({
|
|
2691
2969
|
__name: "GTablePagination",
|
|
2692
2970
|
props: /* @__PURE__ */ m({
|
|
2693
2971
|
start: {},
|
|
@@ -2709,7 +2987,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2709
2987
|
function h(e) {
|
|
2710
2988
|
c.value = parseInt(e.target.value, 10);
|
|
2711
2989
|
}
|
|
2712
|
-
return (t, r) => (w(), o("nav",
|
|
2990
|
+
return (t, r) => (w(), o("nav", Jr, [
|
|
2713
2991
|
s("button", {
|
|
2714
2992
|
class: "first-page g-pagination-button",
|
|
2715
2993
|
disabled: p.value === 1,
|
|
@@ -2734,7 +3012,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2734
3012
|
}),
|
|
2735
3013
|
s("path", { d: "M11 7l-5 5l5 5" }),
|
|
2736
3014
|
s("path", { d: "M17 7l-5 5l5 5" })
|
|
2737
|
-
], -1)]], 8,
|
|
3015
|
+
], -1)]], 8, Yr),
|
|
2738
3016
|
s("button", {
|
|
2739
3017
|
class: "prev-page g-pagination-button",
|
|
2740
3018
|
disabled: p.value === 1,
|
|
@@ -2755,8 +3033,8 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2755
3033
|
stroke: "none",
|
|
2756
3034
|
d: "M0 0h24v24H0z",
|
|
2757
3035
|
fill: "none"
|
|
2758
|
-
}), s("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8,
|
|
2759
|
-
s("span",
|
|
3036
|
+
}), s("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8, Xr),
|
|
3037
|
+
s("span", Zr, N(d.value) + " to " + N(f.value), 1),
|
|
2760
3038
|
s("button", {
|
|
2761
3039
|
class: "next-page g-pagination-button",
|
|
2762
3040
|
disabled: p.value === i.value,
|
|
@@ -2777,7 +3055,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2777
3055
|
stroke: "none",
|
|
2778
3056
|
d: "M0 0h24v24H0z",
|
|
2779
3057
|
fill: "none"
|
|
2780
|
-
}), s("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8,
|
|
3058
|
+
}), s("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8, Qr),
|
|
2781
3059
|
s("button", {
|
|
2782
3060
|
class: "last-page g-pagination-button",
|
|
2783
3061
|
disabled: p.value === i.value,
|
|
@@ -2802,7 +3080,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2802
3080
|
}),
|
|
2803
3081
|
s("path", { d: "M7 7l5 5l-5 5" }),
|
|
2804
3082
|
s("path", { d: "M13 7l5 5l-5 5" })
|
|
2805
|
-
], -1)]], 8,
|
|
3083
|
+
], -1)]], 8, $r),
|
|
2806
3084
|
s("select", {
|
|
2807
3085
|
id: "page-size-select",
|
|
2808
3086
|
class: "page-size-select",
|
|
@@ -2816,14 +3094,14 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2816
3094
|
], (e) => (w(), o("option", {
|
|
2817
3095
|
key: e,
|
|
2818
3096
|
value: e
|
|
2819
|
-
}, N(e), 9,
|
|
3097
|
+
}, N(e), 9, ti))), 128))], 40, ei),
|
|
2820
3098
|
r[8] ||= s("label", {
|
|
2821
3099
|
class: "page-size-label",
|
|
2822
3100
|
for: "page-size-select"
|
|
2823
3101
|
}, "per page", -1)
|
|
2824
3102
|
]));
|
|
2825
3103
|
}
|
|
2826
|
-
}),
|
|
3104
|
+
}), ri = ["id"], ii = { class: "g-modal-inner" }, ai = { class: "g-modal-header" }, oi = ["id"], si = ["id"], ci = /* @__PURE__ */ u({
|
|
2827
3105
|
__name: "GModal",
|
|
2828
3106
|
props: {
|
|
2829
3107
|
label: {},
|
|
@@ -2867,12 +3145,12 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2867
3145
|
ref_key: "dialog",
|
|
2868
3146
|
ref: f,
|
|
2869
3147
|
style: { zIndex: L(y) }
|
|
2870
|
-
}), [s("div",
|
|
3148
|
+
}), [s("div", ii, [s("div", ai, [e.hiddenLabel ? a("", !0) : (w(), o("h2", {
|
|
2871
3149
|
key: 0,
|
|
2872
3150
|
id: "modal-label-" + L(m),
|
|
2873
3151
|
class: "g-modal-label",
|
|
2874
3152
|
tabindex: "-1"
|
|
2875
|
-
}, N(e.label), 9,
|
|
3153
|
+
}, N(e.label), 9, oi)), s("button", {
|
|
2876
3154
|
class: "g-modal-close",
|
|
2877
3155
|
onClick: T,
|
|
2878
3156
|
"aria-label": "Close"
|
|
@@ -2887,16 +3165,16 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2887
3165
|
})], -1)]])]), s("div", {
|
|
2888
3166
|
id: "modal-description-" + L(m),
|
|
2889
3167
|
class: "g-modal-content"
|
|
2890
|
-
}, [k(r.$slots, "default")], 8,
|
|
3168
|
+
}, [k(r.$slots, "default")], 8, si)])], 16, ri)]),
|
|
2891
3169
|
_: 3
|
|
2892
3170
|
})]));
|
|
2893
3171
|
}
|
|
2894
|
-
}),
|
|
3172
|
+
}), li = [
|
|
2895
3173
|
"id",
|
|
2896
3174
|
"aria-expanded",
|
|
2897
3175
|
"aria-label",
|
|
2898
3176
|
"aria-controls"
|
|
2899
|
-
],
|
|
3177
|
+
], ui = /* @__PURE__ */ u({
|
|
2900
3178
|
__name: "GHamburgerMenu",
|
|
2901
3179
|
props: {
|
|
2902
3180
|
label: { default: "Main Navigation" },
|
|
@@ -2926,34 +3204,34 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2926
3204
|
}, [...n[0] ||= [s("svg", {
|
|
2927
3205
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2928
3206
|
viewBox: "0 0 51.26 51.26"
|
|
2929
|
-
}, [s("g", { fill: "currentColor" }, [s("path", { d: "M11.6 16.52h28.06a3.24 3.24 0 1 0 0-6.48H11.6a3.24 3.24 0 0 0 0 6.48ZM39.66 22.07H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48ZM39.66 34.1H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48Z" })])], -1)]], 42,
|
|
3207
|
+
}, [s("g", { fill: "currentColor" }, [s("path", { d: "M11.6 16.52h28.06a3.24 3.24 0 1 0 0-6.48H11.6a3.24 3.24 0 0 0 0 6.48ZM39.66 22.07H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48ZM39.66 34.1H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48Z" })])], -1)]], 42, li));
|
|
2930
3208
|
}
|
|
2931
|
-
}),
|
|
3209
|
+
}), di = /* @__PURE__ */ u({
|
|
2932
3210
|
__name: "GDetailList",
|
|
2933
3211
|
props: { variant: { default: "grid" } },
|
|
2934
3212
|
setup(e) {
|
|
2935
3213
|
let t = e;
|
|
2936
3214
|
return (e, n) => (w(), o("dl", { class: _(["g-detail-list", `g-detail-list--${t.variant}`]) }, [k(e.$slots, "default")], 2));
|
|
2937
3215
|
}
|
|
2938
|
-
}),
|
|
3216
|
+
}), fi = { class: "g-detail-list-item" }, pi = { class: "g-detail-list-item__label" }, mi = { class: "g-detail-list-item__value" }, hi = /* @__PURE__ */ u({
|
|
2939
3217
|
__name: "GDetailListItem",
|
|
2940
3218
|
props: { label: {} },
|
|
2941
3219
|
setup(e) {
|
|
2942
|
-
return (t, n) => (w(), o("div",
|
|
3220
|
+
return (t, n) => (w(), o("div", fi, [s("dt", pi, [k(t.$slots, "label", {}, () => [c(N(e.label), 1)])]), s("dd", mi, [k(t.$slots, "default")])]));
|
|
2943
3221
|
}
|
|
2944
|
-
}),
|
|
3222
|
+
}), gi = {
|
|
2945
3223
|
key: 0,
|
|
2946
3224
|
class: "g-scroll-lock-overlay"
|
|
2947
|
-
},
|
|
3225
|
+
}, _i = /* @__PURE__ */ u({
|
|
2948
3226
|
__name: "GOverlay",
|
|
2949
3227
|
setup(e) {
|
|
2950
3228
|
let { hasScrollLock: t } = qe();
|
|
2951
3229
|
return (e, r) => (w(), i(n, { name: "g-fade" }, {
|
|
2952
|
-
default: K(() => [L(t) ? (w(), o("div",
|
|
3230
|
+
default: K(() => [L(t) ? (w(), o("div", gi)) : a("", !0)]),
|
|
2953
3231
|
_: 1
|
|
2954
3232
|
}));
|
|
2955
3233
|
}
|
|
2956
|
-
}),
|
|
3234
|
+
}), vi = { class: "popover-content" }, yi = { class: "year-dropdown" }, bi = { class: "month-selector" }, xi = /* @__PURE__ */ u({
|
|
2957
3235
|
__name: "GTermSelectorControl",
|
|
2958
3236
|
props: /* @__PURE__ */ m({
|
|
2959
3237
|
termYears: { default: () => ["2026"] },
|
|
@@ -2974,7 +3252,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2974
3252
|
emits: ["update:modelValue"],
|
|
2975
3253
|
setup(e) {
|
|
2976
3254
|
let t = B(e, "modelValue");
|
|
2977
|
-
return (n, r) => (w(), o("div",
|
|
3255
|
+
return (n, r) => (w(), o("div", vi, [s("div", yi, [l(Ht, {
|
|
2978
3256
|
modelValue: t.value.year,
|
|
2979
3257
|
"onUpdate:modelValue": r[0] ||= (e) => t.value.year = e,
|
|
2980
3258
|
options: e.termYears,
|
|
@@ -2983,7 +3261,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2983
3261
|
"modelValue",
|
|
2984
3262
|
"options",
|
|
2985
3263
|
"label"
|
|
2986
|
-
])]), s("div",
|
|
3264
|
+
])]), s("div", bi, [l(yt, {
|
|
2987
3265
|
modelValue: t.value.name,
|
|
2988
3266
|
"onUpdate:modelValue": r[1] ||= (e) => t.value.name = e,
|
|
2989
3267
|
options: e.termNames,
|
|
@@ -2995,10 +3273,10 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2995
3273
|
"label"
|
|
2996
3274
|
])])]));
|
|
2997
3275
|
}
|
|
2998
|
-
}),
|
|
3276
|
+
}), Si = { class: "g-term-selector" }, Ci = { class: "g-term-label" }, wi = {
|
|
2999
3277
|
class: "g-popover-title",
|
|
3000
3278
|
tabindex: "-1"
|
|
3001
|
-
},
|
|
3279
|
+
}, Ti = /* @__PURE__ */ u({
|
|
3002
3280
|
__name: "GTermSelector",
|
|
3003
3281
|
props: /* @__PURE__ */ m({
|
|
3004
3282
|
heading: { default: "Period Selection" },
|
|
@@ -3020,7 +3298,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3020
3298
|
emits: ["update:modelValue"],
|
|
3021
3299
|
setup(e) {
|
|
3022
3300
|
let t = B(e, "modelValue");
|
|
3023
|
-
return (n, r) => (w(), o("div",
|
|
3301
|
+
return (n, r) => (w(), o("div", Si, [l(it, null, {
|
|
3024
3302
|
trigger: K(({ toggle: e }) => [l(Q, {
|
|
3025
3303
|
class: "g-term-selector-button",
|
|
3026
3304
|
theme: "none",
|
|
@@ -3033,7 +3311,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3033
3311
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3034
3312
|
viewBox: "0 0 640 640"
|
|
3035
3313
|
}, [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),
|
|
3036
|
-
s("span",
|
|
3314
|
+
s("span", Ci, N(t.value?.name) + " " + N(t.value?.year), 1),
|
|
3037
3315
|
r[1] ||= s("span", { class: "g-caret" }, [s("svg", {
|
|
3038
3316
|
role: "none presentation",
|
|
3039
3317
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3042,15 +3320,15 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3042
3320
|
]),
|
|
3043
3321
|
_: 1
|
|
3044
3322
|
}, 8, ["onClick"])]),
|
|
3045
|
-
default: K(() => [s("h2",
|
|
3323
|
+
default: K(() => [s("h2", wi, N(e.heading), 1), l(xi, v(f(n.$props)), null, 16)]),
|
|
3046
3324
|
_: 1
|
|
3047
3325
|
})]));
|
|
3048
3326
|
}
|
|
3049
|
-
}),
|
|
3327
|
+
}), Ei = { class: "g-user-menu" }, Di = [
|
|
3050
3328
|
"aria-label",
|
|
3051
3329
|
"aria-expanded",
|
|
3052
3330
|
"onClick"
|
|
3053
|
-
],
|
|
3331
|
+
], Oi = { class: "g-user-menu__popover" }, ki = { class: "g-user-menu__list" }, Ai = /* @__PURE__ */ u({
|
|
3054
3332
|
__name: "GUserMenu",
|
|
3055
3333
|
props: {
|
|
3056
3334
|
initials: {},
|
|
@@ -3062,7 +3340,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3062
3340
|
let n = `${z()}-email`, r = D(!1), a = H("emailHeading");
|
|
3063
3341
|
d()?.appContext?.components?.RouterLink;
|
|
3064
3342
|
let c = V();
|
|
3065
|
-
return (u, d) => (w(), o("div",
|
|
3343
|
+
return (u, d) => (w(), o("div", Ei, [l(it, {
|
|
3066
3344
|
modelValue: r.value,
|
|
3067
3345
|
"onUpdate:modelValue": d[0] ||= (e) => r.value = e,
|
|
3068
3346
|
minimal: ""
|
|
@@ -3074,8 +3352,8 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3074
3352
|
"aria-expanded": r.value,
|
|
3075
3353
|
"aria-haspopup": "menu",
|
|
3076
3354
|
onClick: e
|
|
3077
|
-
}, N(t.initials), 13,
|
|
3078
|
-
default: K(() => [s("div",
|
|
3355
|
+
}, N(t.initials), 13, Di)]),
|
|
3356
|
+
default: K(() => [s("div", Oi, [s("h2", {
|
|
3079
3357
|
id: n,
|
|
3080
3358
|
ref_key: "emailHeading",
|
|
3081
3359
|
ref: a,
|
|
@@ -3084,11 +3362,11 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3084
3362
|
}, N(t.email), 513), s("nav", {
|
|
3085
3363
|
class: "g-user-menu__nav",
|
|
3086
3364
|
"aria-labelledby": n
|
|
3087
|
-
}, [s("ul",
|
|
3365
|
+
}, [s("ul", ki, [(w(!0), o(e, null, O(c.default(), (e, t) => (w(), o("li", { key: t }, [(w(), i(A(e)))]))), 128))])])])]),
|
|
3088
3366
|
_: 1
|
|
3089
3367
|
}, 8, ["modelValue"])]));
|
|
3090
3368
|
}
|
|
3091
|
-
}),
|
|
3369
|
+
}), ji = /* @__PURE__ */ u({
|
|
3092
3370
|
__name: "GCurrencyInput",
|
|
3093
3371
|
props: /* @__PURE__ */ m({
|
|
3094
3372
|
label: { default: void 0 },
|
|
@@ -3139,7 +3417,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3139
3417
|
"form-key"
|
|
3140
3418
|
]));
|
|
3141
3419
|
}
|
|
3142
|
-
}),
|
|
3420
|
+
}), Mi = /* @__PURE__ */ u({
|
|
3143
3421
|
__name: "GEmailInput",
|
|
3144
3422
|
props: /* @__PURE__ */ m({
|
|
3145
3423
|
label: { default: void 0 },
|
|
@@ -3184,13 +3462,13 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3184
3462
|
"instructions"
|
|
3185
3463
|
]));
|
|
3186
3464
|
}
|
|
3187
|
-
}),
|
|
3465
|
+
}), Ni = ["for"], Pi = {
|
|
3188
3466
|
key: 0,
|
|
3189
3467
|
class: "g-file-input-required"
|
|
3190
|
-
},
|
|
3468
|
+
}, Fi = {
|
|
3191
3469
|
key: 0,
|
|
3192
3470
|
class: "g-file-input-box-header"
|
|
3193
|
-
},
|
|
3471
|
+
}, Ii = ["id"], Li = [
|
|
3194
3472
|
"id",
|
|
3195
3473
|
"disabled",
|
|
3196
3474
|
"required",
|
|
@@ -3199,11 +3477,11 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3199
3477
|
"aria-invalid",
|
|
3200
3478
|
"aria-describedby",
|
|
3201
3479
|
"aria-errormessage"
|
|
3202
|
-
],
|
|
3480
|
+
], Ri = {
|
|
3203
3481
|
key: 1,
|
|
3204
3482
|
class: "g-file-input-pills",
|
|
3205
3483
|
"aria-label": "Selected files"
|
|
3206
|
-
},
|
|
3484
|
+
}, zi = /* @__PURE__ */ u({
|
|
3207
3485
|
inheritAttrs: !1,
|
|
3208
3486
|
__name: "GFileInput",
|
|
3209
3487
|
props: /* @__PURE__ */ m({
|
|
@@ -3260,12 +3538,12 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3260
3538
|
key: 0,
|
|
3261
3539
|
for: L(d),
|
|
3262
3540
|
class: "g-file-input-label"
|
|
3263
|
-
}, [c(N(t.label) + " ", 1), t.required ? (w(), o("span",
|
|
3541
|
+
}, [c(N(t.label) + " ", 1), t.required ? (w(), o("span", Pi, "*")) : a("", !0)], 8, Ni)) : a("", !0),
|
|
3264
3542
|
s("div", { class: _(["g-file-input-box", { "g-file-input-box--disabled": t.disabled }]) }, [
|
|
3265
|
-
t.instructions ? (w(), o("div",
|
|
3543
|
+
t.instructions ? (w(), o("div", Fi, [s("span", {
|
|
3266
3544
|
id: "instructions-" + L(d),
|
|
3267
3545
|
class: "g-file-input-instructions"
|
|
3268
|
-
}, N(t.instructions), 9,
|
|
3546
|
+
}, N(t.instructions), 9, Ii)])) : a("", !0),
|
|
3269
3547
|
s("input", {
|
|
3270
3548
|
id: L(d),
|
|
3271
3549
|
type: "file",
|
|
@@ -3278,8 +3556,8 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3278
3556
|
"aria-describedby": t.instructions ? "instructions-" + L(d) : void 0,
|
|
3279
3557
|
"aria-errormessage": y.value ? "error-message-" + L(d) : void 0,
|
|
3280
3558
|
onChange: g
|
|
3281
|
-
}, null, 40,
|
|
3282
|
-
t.multiple && b.value.length > 0 ? (w(), o("ul",
|
|
3559
|
+
}, null, 40, Li),
|
|
3560
|
+
t.multiple && b.value.length > 0 ? (w(), o("ul", Ri, [(w(!0), o(e, null, O(b.value, (e) => (w(), o("li", {
|
|
3283
3561
|
key: e,
|
|
3284
3562
|
class: "g-file-input-pill"
|
|
3285
3563
|
}, [r[0] ||= s("svg", {
|
|
@@ -3295,7 +3573,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3295
3573
|
}, null, 8, ["errors", "id"])
|
|
3296
3574
|
], 2));
|
|
3297
3575
|
}
|
|
3298
|
-
}),
|
|
3576
|
+
}), Bi = /* @__PURE__ */ u({
|
|
3299
3577
|
__name: "GDateInput",
|
|
3300
3578
|
props: /* @__PURE__ */ m({
|
|
3301
3579
|
label: { default: void 0 },
|
|
@@ -3343,21 +3621,21 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3343
3621
|
"form-key"
|
|
3344
3622
|
]));
|
|
3345
3623
|
}
|
|
3346
|
-
}),
|
|
3624
|
+
}), Vi = { class: "g-date-range-input" }, Hi = {
|
|
3347
3625
|
key: 0,
|
|
3348
3626
|
class: "g-date-range-input__label"
|
|
3349
|
-
},
|
|
3627
|
+
}, Ui = {
|
|
3350
3628
|
key: 0,
|
|
3351
3629
|
class: "g-date-range-input__required",
|
|
3352
3630
|
"aria-hidden": "true"
|
|
3353
|
-
},
|
|
3631
|
+
}, Wi = {
|
|
3354
3632
|
key: 1,
|
|
3355
3633
|
class: "g-date-range-input__instructions"
|
|
3356
|
-
},
|
|
3634
|
+
}, Gi = { class: "g-date-range-input__fields" }, Ki = {
|
|
3357
3635
|
key: 2,
|
|
3358
3636
|
class: "g-date-range-input__errors",
|
|
3359
3637
|
role: "alert"
|
|
3360
|
-
},
|
|
3638
|
+
}, qi = /* @__PURE__ */ u({
|
|
3361
3639
|
__name: "GDateRangeInput",
|
|
3362
3640
|
props: /* @__PURE__ */ m({
|
|
3363
3641
|
label: { default: void 0 },
|
|
@@ -3397,10 +3675,10 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3397
3675
|
};
|
|
3398
3676
|
}), W(r, (e) => {
|
|
3399
3677
|
e.start !== i.value && (i.value = e.start), e.end !== u.value && (u.value = e.end);
|
|
3400
|
-
}, { deep: !0 }), (t, r) => (w(), o("div",
|
|
3401
|
-
n.label ? (w(), o("div",
|
|
3402
|
-
n.instructions ? (w(), o("div",
|
|
3403
|
-
s("div",
|
|
3678
|
+
}, { deep: !0 }), (t, r) => (w(), o("div", Vi, [
|
|
3679
|
+
n.label ? (w(), o("div", Hi, [c(N(n.label), 1), n.required ? (w(), o("span", Ui, " *")) : a("", !0)])) : a("", !0),
|
|
3680
|
+
n.instructions ? (w(), o("div", Wi, N(n.instructions), 1)) : a("", !0),
|
|
3681
|
+
s("div", Gi, [l(Bi, {
|
|
3404
3682
|
modelValue: i.value,
|
|
3405
3683
|
"onUpdate:modelValue": r[0] ||= (e) => i.value = e,
|
|
3406
3684
|
label: n.startLabel,
|
|
@@ -3412,7 +3690,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3412
3690
|
"label",
|
|
3413
3691
|
"disabled",
|
|
3414
3692
|
"required"
|
|
3415
|
-
]), l(
|
|
3693
|
+
]), l(Bi, {
|
|
3416
3694
|
modelValue: u.value,
|
|
3417
3695
|
"onUpdate:modelValue": r[1] ||= (e) => u.value = e,
|
|
3418
3696
|
label: n.endLabel,
|
|
@@ -3425,13 +3703,13 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3425
3703
|
"disabled",
|
|
3426
3704
|
"required"
|
|
3427
3705
|
])]),
|
|
3428
|
-
L(d).length > 0 ? (w(), o("div",
|
|
3706
|
+
L(d).length > 0 ? (w(), o("div", Ki, [(w(!0), o(e, null, O(L(d), (e, t) => (w(), o("div", {
|
|
3429
3707
|
key: t,
|
|
3430
3708
|
class: "g-date-range-input__error"
|
|
3431
3709
|
}, N(e), 1))), 128))])) : a("", !0)
|
|
3432
3710
|
]));
|
|
3433
3711
|
}
|
|
3434
|
-
}),
|
|
3712
|
+
}), Ji = ["action", "method"], Yi = /* @__PURE__ */ u({
|
|
3435
3713
|
__name: "GForm",
|
|
3436
3714
|
props: /* @__PURE__ */ m({
|
|
3437
3715
|
action: { default: void 0 },
|
|
@@ -3471,9 +3749,9 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3471
3749
|
hasErrors: L(s).hasErrors.value,
|
|
3472
3750
|
values: L(s).values.value,
|
|
3473
3751
|
errors: L(s).errors.value
|
|
3474
|
-
})], 40,
|
|
3752
|
+
})], 40, Ji));
|
|
3475
3753
|
}
|
|
3476
|
-
}),
|
|
3754
|
+
}), Xi = /* @__PURE__ */ u({
|
|
3477
3755
|
__name: "GSubmitButton",
|
|
3478
3756
|
props: {
|
|
3479
3757
|
disabled: {
|
|
@@ -3496,21 +3774,21 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3496
3774
|
_: 3
|
|
3497
3775
|
}, 8, ["disabled", "variant"]));
|
|
3498
3776
|
}
|
|
3499
|
-
}),
|
|
3777
|
+
}), Zi = {
|
|
3500
3778
|
key: 0,
|
|
3501
3779
|
class: "g-checkbox-group__legend"
|
|
3502
|
-
},
|
|
3780
|
+
}, Qi = {
|
|
3503
3781
|
key: 0,
|
|
3504
3782
|
class: "g-checkbox-group__required",
|
|
3505
3783
|
"aria-hidden": "true"
|
|
3506
|
-
},
|
|
3784
|
+
}, $i = {
|
|
3507
3785
|
key: 1,
|
|
3508
3786
|
class: "g-checkbox-group__label"
|
|
3509
|
-
},
|
|
3787
|
+
}, ea = {
|
|
3510
3788
|
key: 0,
|
|
3511
3789
|
class: "g-checkbox-group__required",
|
|
3512
3790
|
"aria-hidden": "true"
|
|
3513
|
-
},
|
|
3791
|
+
}, ta = ["id"], na = { class: "g-checkbox-group__options" }, ra = ["for"], ia = [
|
|
3514
3792
|
"id",
|
|
3515
3793
|
"type",
|
|
3516
3794
|
"name",
|
|
@@ -3519,7 +3797,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3519
3797
|
"disabled",
|
|
3520
3798
|
"required",
|
|
3521
3799
|
"onChange"
|
|
3522
|
-
],
|
|
3800
|
+
], aa = { class: "g-checkbox-group__label-text" }, oa = ["id"], sa = /* @__PURE__ */ u({
|
|
3523
3801
|
__name: "GCheckboxGroup",
|
|
3524
3802
|
props: /* @__PURE__ */ m({
|
|
3525
3803
|
label: { default: void 0 },
|
|
@@ -3581,13 +3859,13 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3581
3859
|
}
|
|
3582
3860
|
return (n, r) => (w(), i(A(C.value ? "fieldset" : "div"), h({ class: ["g-checkbox-group", { "g-checkbox-group--error": L(m) }] }, T.value), {
|
|
3583
3861
|
default: K(() => [
|
|
3584
|
-
C.value && t.label ? (w(), o("legend",
|
|
3862
|
+
C.value && t.label ? (w(), o("legend", Zi, [c(N(t.label), 1), t.required ? (w(), o("span", Qi, "\xA0*")) : a("", !0)])) : !C.value && t.label ? (w(), o("div", $i, [c(N(t.label), 1), t.required ? (w(), o("span", ea, "\xA0*")) : a("", !0)])) : a("", !0),
|
|
3585
3863
|
t.instructions ? (w(), o("div", {
|
|
3586
3864
|
key: 2,
|
|
3587
3865
|
id: S.value,
|
|
3588
3866
|
class: "g-checkbox-group__instructions"
|
|
3589
|
-
}, N(t.instructions), 9,
|
|
3590
|
-
s("div",
|
|
3867
|
+
}, N(t.instructions), 9, ta)) : a("", !0),
|
|
3868
|
+
s("div", na, [(w(!0), o(e, null, O(t.options, (e, n) => (w(), o("div", {
|
|
3591
3869
|
key: e.value,
|
|
3592
3870
|
class: _(["g-checkbox-group__option-wrapper", { "g-checkbox-group__option-wrapper--disabled": e.disabled }])
|
|
3593
3871
|
}, [s("label", {
|
|
@@ -3602,11 +3880,11 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3602
3880
|
disabled: e.disabled,
|
|
3603
3881
|
required: t.required && (t.radio && n === 0 || !t.radio && t.options.length === 1),
|
|
3604
3882
|
class: "g-checkbox-group__input"
|
|
3605
|
-
}, { ref_for: !0 }, k(e, n), { onChange: (t) => y(e.value, t.target.checked) }), null, 16,
|
|
3883
|
+
}, { ref_for: !0 }, k(e, n), { onChange: (t) => y(e.value, t.target.checked) }), null, 16, ia), s("span", aa, N(e.label), 1)], 10, ra), e.hint ? (w(), o("div", {
|
|
3606
3884
|
key: 0,
|
|
3607
3885
|
id: E(n),
|
|
3608
3886
|
class: "g-checkbox-group__hint"
|
|
3609
|
-
}, N(e.hint), 9,
|
|
3887
|
+
}, N(e.hint), 9, oa)) : a("", !0)], 2))), 128))]),
|
|
3610
3888
|
l(je, {
|
|
3611
3889
|
errors: L(p),
|
|
3612
3890
|
id: x.value
|
|
@@ -3615,11 +3893,11 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3615
3893
|
_: 1
|
|
3616
3894
|
}, 16, ["class"]));
|
|
3617
3895
|
}
|
|
3618
|
-
}),
|
|
3896
|
+
}), ca = ["for"], la = {
|
|
3619
3897
|
key: 0,
|
|
3620
3898
|
class: "g-textarea-required",
|
|
3621
3899
|
"aria-hidden": "true"
|
|
3622
|
-
},
|
|
3900
|
+
}, ua = ["id"], da = [
|
|
3623
3901
|
"value",
|
|
3624
3902
|
"placeholder",
|
|
3625
3903
|
"disabled",
|
|
@@ -3628,11 +3906,11 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3628
3906
|
"rows",
|
|
3629
3907
|
"maxlength",
|
|
3630
3908
|
"aria-invalid"
|
|
3631
|
-
],
|
|
3909
|
+
], fa = {
|
|
3632
3910
|
key: 2,
|
|
3633
3911
|
class: "g-textarea-char-count",
|
|
3634
3912
|
"aria-live": "polite"
|
|
3635
|
-
},
|
|
3913
|
+
}, pa = /* @__PURE__ */ u({
|
|
3636
3914
|
inheritAttrs: !1,
|
|
3637
3915
|
__name: "GTextarea",
|
|
3638
3916
|
props: /* @__PURE__ */ m({
|
|
@@ -3705,12 +3983,12 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3705
3983
|
key: 0,
|
|
3706
3984
|
for: m.value,
|
|
3707
3985
|
class: "g-textarea-label"
|
|
3708
|
-
}, [c(N(n.label), 1), n.required ? (w(), o("span",
|
|
3986
|
+
}, [c(N(n.label), 1), n.required ? (w(), o("span", la, " *")) : a("", !0)], 8, ca)) : a("", !0),
|
|
3709
3987
|
t.$slots.instructions || e.instructions ? (w(), o("div", {
|
|
3710
3988
|
key: 1,
|
|
3711
3989
|
id: "instructions-" + L(u),
|
|
3712
3990
|
class: "g-textarea-instructions"
|
|
3713
|
-
}, [k(t.$slots, "instructions", {}, () => [c(N(e.instructions), 1)])], 8,
|
|
3991
|
+
}, [k(t.$slots, "instructions", {}, () => [c(N(e.instructions), 1)])], 8, ua)) : a("", !0),
|
|
3714
3992
|
s("textarea", h({
|
|
3715
3993
|
ref: "textareaEl",
|
|
3716
3994
|
value: i.value ?? "",
|
|
@@ -3731,279 +4009,14 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3731
4009
|
onInput: T,
|
|
3732
4010
|
onBlur: E,
|
|
3733
4011
|
onPaste: D
|
|
3734
|
-
}), null, 16,
|
|
3735
|
-
n.maxlength === void 0 ? a("", !0) : (w(), o("div",
|
|
4012
|
+
}), null, 16, da),
|
|
4013
|
+
n.maxlength === void 0 ? a("", !0) : (w(), o("div", fa, N((i.value ?? "").length) + " / " + N(n.maxlength), 1)),
|
|
3736
4014
|
l(je, {
|
|
3737
4015
|
errors: L(v),
|
|
3738
4016
|
id: "error-message-" + L(u)
|
|
3739
4017
|
}, null, 8, ["errors", "id"])
|
|
3740
4018
|
], 2));
|
|
3741
4019
|
}
|
|
3742
|
-
}), ta = ["id", "for"], na = {
|
|
3743
|
-
key: 0,
|
|
3744
|
-
class: "g-multiselect-required",
|
|
3745
|
-
"aria-hidden": "true"
|
|
3746
|
-
}, ra = ["id"], ia = ["aria-labelledby"], aa = { class: "g-multiselect-chip-label" }, oa = [
|
|
3747
|
-
"aria-label",
|
|
3748
|
-
"disabled",
|
|
3749
|
-
"onClick"
|
|
3750
|
-
], sa = [
|
|
3751
|
-
"id",
|
|
3752
|
-
"value",
|
|
3753
|
-
"placeholder",
|
|
3754
|
-
"disabled",
|
|
3755
|
-
"aria-expanded",
|
|
3756
|
-
"aria-controls",
|
|
3757
|
-
"aria-activedescendant",
|
|
3758
|
-
"aria-describedby",
|
|
3759
|
-
"aria-required"
|
|
3760
|
-
], ca = ["id"], la = [
|
|
3761
|
-
"id",
|
|
3762
|
-
"aria-selected",
|
|
3763
|
-
"onClick"
|
|
3764
|
-
], ua = {
|
|
3765
|
-
class: "g-multiselect-option-check",
|
|
3766
|
-
"aria-hidden": "true"
|
|
3767
|
-
}, da = {
|
|
3768
|
-
key: 0,
|
|
3769
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3770
|
-
viewBox: "0 0 640 640",
|
|
3771
|
-
width: "1.25em"
|
|
3772
|
-
}, fa = {
|
|
3773
|
-
key: 1,
|
|
3774
|
-
"aria-live": "polite",
|
|
3775
|
-
class: "g-multiselect-option g-multiselect-no-results"
|
|
3776
|
-
}, pa = /* @__PURE__ */ u({
|
|
3777
|
-
__name: "GMultiSelect",
|
|
3778
|
-
props: /* @__PURE__ */ m({
|
|
3779
|
-
options: {},
|
|
3780
|
-
label: {},
|
|
3781
|
-
hiddenLabel: {
|
|
3782
|
-
type: Boolean,
|
|
3783
|
-
default: !1
|
|
3784
|
-
},
|
|
3785
|
-
placeholder: {},
|
|
3786
|
-
disabled: {
|
|
3787
|
-
type: Boolean,
|
|
3788
|
-
default: !1
|
|
3789
|
-
},
|
|
3790
|
-
required: {
|
|
3791
|
-
type: Boolean,
|
|
3792
|
-
default: !1
|
|
3793
|
-
},
|
|
3794
|
-
name: {},
|
|
3795
|
-
errors: { default: () => [] },
|
|
3796
|
-
instructions: {},
|
|
3797
|
-
formKey: {}
|
|
3798
|
-
}, {
|
|
3799
|
-
modelValue: { default: () => [] },
|
|
3800
|
-
modelModifiers: {}
|
|
3801
|
-
}),
|
|
3802
|
-
emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
|
|
3803
|
-
setup(t, { emit: n }) {
|
|
3804
|
-
let i = t, u = n, d = B(t, "modelValue"), f = z(), p = D(null), m = D(null), v = D(null), y = D(!1), b = D(0), x = D(""), S = D(!1), { displayErrors: C, hasErrors: T } = $({
|
|
3805
|
-
name: i.name,
|
|
3806
|
-
value: d,
|
|
3807
|
-
errors: F(i, "errors"),
|
|
3808
|
-
formKey: i.formKey
|
|
3809
|
-
}), { menuPlacement: E, menuStyle: k, isTop: A, scrollOptionIntoView: j } = Mt({
|
|
3810
|
-
open: y,
|
|
3811
|
-
anchorRef: m,
|
|
3812
|
-
listboxRef: v,
|
|
3813
|
-
baseId: f,
|
|
3814
|
-
activeIndex: b
|
|
3815
|
-
}), M = r(() => jt(i.options)), P = r(() => {
|
|
3816
|
-
if (!x.value) return M.value;
|
|
3817
|
-
let e = x.value.toLowerCase();
|
|
3818
|
-
return M.value.filter((t) => t.label.toLowerCase().includes(e));
|
|
3819
|
-
});
|
|
3820
|
-
function I(e) {
|
|
3821
|
-
return d.value.includes(e);
|
|
3822
|
-
}
|
|
3823
|
-
function R(e) {
|
|
3824
|
-
let t = M.value.find((t) => t.value === e);
|
|
3825
|
-
return t ? t.label : String(e);
|
|
3826
|
-
}
|
|
3827
|
-
function V() {
|
|
3828
|
-
i.disabled || (y.value = !0, b.value = 0);
|
|
3829
|
-
}
|
|
3830
|
-
function H() {
|
|
3831
|
-
y.value = !1, x.value = "";
|
|
3832
|
-
}
|
|
3833
|
-
function U(e) {
|
|
3834
|
-
let t = P.value[e];
|
|
3835
|
-
if (!t) return;
|
|
3836
|
-
let n = d.value, r = I(t.value) ? n.filter((e) => e !== t.value) : [...n, t.value];
|
|
3837
|
-
d.value = r, u("change", r), g(() => p.value?.focus());
|
|
3838
|
-
}
|
|
3839
|
-
function W(e) {
|
|
3840
|
-
if (i.disabled) return;
|
|
3841
|
-
let t = d.value.filter((t) => t !== e);
|
|
3842
|
-
d.value = t, u("change", t);
|
|
3843
|
-
}
|
|
3844
|
-
function G() {
|
|
3845
|
-
i.disabled || (p.value?.focus(), y.value || V());
|
|
3846
|
-
}
|
|
3847
|
-
function K(e) {
|
|
3848
|
-
x.value = e.target.value, b.value = 0, y.value || V();
|
|
3849
|
-
}
|
|
3850
|
-
function Y() {
|
|
3851
|
-
i.disabled || y.value || V();
|
|
3852
|
-
}
|
|
3853
|
-
function te(e) {
|
|
3854
|
-
if (S.value) {
|
|
3855
|
-
S.value = !1;
|
|
3856
|
-
return;
|
|
3857
|
-
}
|
|
3858
|
-
let t = e.relatedTarget;
|
|
3859
|
-
t && v.value?.contains(t) || t && m.value?.contains(t) || H();
|
|
3860
|
-
}
|
|
3861
|
-
function X(e) {
|
|
3862
|
-
e.preventDefault();
|
|
3863
|
-
}
|
|
3864
|
-
function Z() {
|
|
3865
|
-
S.value = !0;
|
|
3866
|
-
}
|
|
3867
|
-
function ne(e) {
|
|
3868
|
-
if (i.disabled) return;
|
|
3869
|
-
let t = P.value.length - 1;
|
|
3870
|
-
switch (e.key) {
|
|
3871
|
-
case "ArrowDown":
|
|
3872
|
-
e.preventDefault(), y.value ? (b.value = Math.min(t, b.value + 1), j()) : V();
|
|
3873
|
-
break;
|
|
3874
|
-
case "ArrowUp":
|
|
3875
|
-
e.preventDefault(), y.value ? (b.value = Math.max(0, b.value - 1), j()) : V();
|
|
3876
|
-
break;
|
|
3877
|
-
case "Home":
|
|
3878
|
-
e.preventDefault(), b.value = 0, j();
|
|
3879
|
-
break;
|
|
3880
|
-
case "End":
|
|
3881
|
-
e.preventDefault(), b.value = t, j();
|
|
3882
|
-
break;
|
|
3883
|
-
case "Enter":
|
|
3884
|
-
e.preventDefault(), y.value && P.value.length > 0 ? U(b.value) : y.value || V();
|
|
3885
|
-
break;
|
|
3886
|
-
case " ":
|
|
3887
|
-
y.value && !x.value && (e.preventDefault(), P.value.length > 0 && U(b.value));
|
|
3888
|
-
break;
|
|
3889
|
-
case "Escape":
|
|
3890
|
-
A.value && (e.preventDefault(), setTimeout(() => H(), 0));
|
|
3891
|
-
break;
|
|
3892
|
-
case "Backspace":
|
|
3893
|
-
!x.value && d.value.length > 0 && W(d.value[d.value.length - 1]);
|
|
3894
|
-
break;
|
|
3895
|
-
}
|
|
3896
|
-
}
|
|
3897
|
-
let re = r(() => `${f}-input`), ie = r(() => `${f}-label`), ae = r(() => `${f}-instructions`), oe = r(() => `error-message-${f}`), se = r(() => {
|
|
3898
|
-
let e = [];
|
|
3899
|
-
return i.instructions && e.push(ae.value), T.value && e.push(oe.value), e.length > 0 ? e.join(" ") : void 0;
|
|
3900
|
-
});
|
|
3901
|
-
return (n, r) => (w(), o("div", { class: _(["g-multiselect-root", {
|
|
3902
|
-
"g-multiselect-open": y.value,
|
|
3903
|
-
"g-multiselect-has-error": L(T)
|
|
3904
|
-
}]) }, [
|
|
3905
|
-
t.hiddenLabel ? a("", !0) : (w(), o("label", {
|
|
3906
|
-
key: 0,
|
|
3907
|
-
id: ie.value,
|
|
3908
|
-
for: re.value,
|
|
3909
|
-
class: "g-multiselect-label"
|
|
3910
|
-
}, [c(N(t.label), 1), t.required ? (w(), o("span", na, " *")) : a("", !0)], 8, ta)),
|
|
3911
|
-
t.instructions ? (w(), o("div", {
|
|
3912
|
-
key: 1,
|
|
3913
|
-
id: ae.value,
|
|
3914
|
-
class: "g-multiselect-instructions"
|
|
3915
|
-
}, N(t.instructions), 9, ra)) : a("", !0),
|
|
3916
|
-
s("div", {
|
|
3917
|
-
ref_key: "controlRef",
|
|
3918
|
-
ref: m,
|
|
3919
|
-
class: _(["g-multiselect-control", { "g-multiselect-control--disabled": t.disabled }]),
|
|
3920
|
-
onClick: G
|
|
3921
|
-
}, [
|
|
3922
|
-
s("ul", {
|
|
3923
|
-
class: "g-multiselect-chips",
|
|
3924
|
-
"aria-labelledby": ie.value
|
|
3925
|
-
}, [(w(!0), o(e, null, O(d.value, (e) => (w(), o("li", {
|
|
3926
|
-
key: e,
|
|
3927
|
-
class: "g-multiselect-chip"
|
|
3928
|
-
}, [s("span", aa, N(R(e)), 1), s("button", {
|
|
3929
|
-
type: "button",
|
|
3930
|
-
class: "g-multiselect-chip-remove",
|
|
3931
|
-
"aria-label": `Remove ${R(e)}`,
|
|
3932
|
-
disabled: t.disabled,
|
|
3933
|
-
onMousedown: Z,
|
|
3934
|
-
onClick: J((t) => W(e), ["stop"])
|
|
3935
|
-
}, [...r[0] ||= [s("svg", {
|
|
3936
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3937
|
-
viewBox: "0 0 51.26 51.26",
|
|
3938
|
-
width: "1em",
|
|
3939
|
-
role: "none presentation"
|
|
3940
|
-
}, [s("path", {
|
|
3941
|
-
fill: "currentColor",
|
|
3942
|
-
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"
|
|
3943
|
-
})], -1)]], 40, oa)]))), 128))], 8, ia),
|
|
3944
|
-
s("input", h({
|
|
3945
|
-
ref_key: "inputRef",
|
|
3946
|
-
ref: p,
|
|
3947
|
-
type: "text",
|
|
3948
|
-
role: "combobox",
|
|
3949
|
-
class: "g-multiselect-input",
|
|
3950
|
-
id: re.value,
|
|
3951
|
-
value: x.value,
|
|
3952
|
-
placeholder: d.value.length === 0 ? t.placeholder : void 0,
|
|
3953
|
-
disabled: t.disabled,
|
|
3954
|
-
autocomplete: "off",
|
|
3955
|
-
"aria-autocomplete": "list",
|
|
3956
|
-
"aria-expanded": y.value ? "true" : "false",
|
|
3957
|
-
"aria-haspopup": "listbox",
|
|
3958
|
-
"aria-controls": L(f) + "-listbox",
|
|
3959
|
-
"aria-activedescendant": y.value && P.value.length > 0 ? L(f) + "-option-" + b.value : void 0
|
|
3960
|
-
}, t.hiddenLabel ? { "aria-label": t.label } : void 0, {
|
|
3961
|
-
"aria-describedby": se.value,
|
|
3962
|
-
"aria-required": t.required ? "true" : void 0,
|
|
3963
|
-
onInput: K,
|
|
3964
|
-
onKeydown: ne,
|
|
3965
|
-
onFocus: Y,
|
|
3966
|
-
onBlur: te
|
|
3967
|
-
}), null, 16, sa),
|
|
3968
|
-
r[2] ||= s("svg", {
|
|
3969
|
-
class: "g-multiselect-caret",
|
|
3970
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3971
|
-
viewBox: "0 0 51.26 51.26",
|
|
3972
|
-
"aria-hidden": "true",
|
|
3973
|
-
width: "1.125em"
|
|
3974
|
-
}, [s("path", {
|
|
3975
|
-
fill: "currentColor",
|
|
3976
|
-
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"
|
|
3977
|
-
})], -1),
|
|
3978
|
-
q(s("div", h({
|
|
3979
|
-
ref_key: "listboxRef",
|
|
3980
|
-
ref: v,
|
|
3981
|
-
id: L(f) + "-listbox",
|
|
3982
|
-
role: "listbox",
|
|
3983
|
-
"aria-multiselectable": "true"
|
|
3984
|
-
}, t.hiddenLabel ? { "aria-label": t.label } : { "aria-labelledby": ie.value }, {
|
|
3985
|
-
class: ["g-multiselect-listbox", { "g-multiselect-listbox--above": L(E) === "above" }],
|
|
3986
|
-
style: L(k),
|
|
3987
|
-
tabindex: "-1"
|
|
3988
|
-
}), [P.value.length > 0 ? (w(!0), o(e, { key: 0 }, O(P.value, (e, t) => (w(), o("div", {
|
|
3989
|
-
key: e.value,
|
|
3990
|
-
id: L(f) + "-option-" + t,
|
|
3991
|
-
role: "option",
|
|
3992
|
-
class: _(["g-multiselect-option", {
|
|
3993
|
-
"g-multiselect-option--active": t === b.value,
|
|
3994
|
-
"g-multiselect-option--selected": I(e.value)
|
|
3995
|
-
}]),
|
|
3996
|
-
"aria-selected": I(e.value) ? "true" : "false",
|
|
3997
|
-
onMousedown: X,
|
|
3998
|
-
onClick: (e) => U(t)
|
|
3999
|
-
}, [s("span", ua, [I(e.value) ? (w(), o("svg", da, [...r[1] ||= [s("path", { d: "M530.8 134.1C545.1 144.5 548.3 164.5 537.9 178.8L281.9 530.8C276.4 538.4 267.9 543.1 258.5 543.9C249.1 544.7 240 541.2 233.4 534.6L105.4 406.6C92.9 394.1 92.9 373.8 105.4 361.3C117.9 348.8 138.2 348.8 150.7 361.3L252.2 462.8L486.2 141.1C496.6 126.8 516.6 123.6 530.9 134z" }, null, -1)]])) : a("", !0)]), c(" " + N(e.label), 1)], 42, la))), 128)) : (w(), o("div", fa, " No results found. "))], 16, ca), [[ee, y.value]])
|
|
4000
|
-
], 2),
|
|
4001
|
-
l(je, {
|
|
4002
|
-
errors: L(C),
|
|
4003
|
-
id: oe.value
|
|
4004
|
-
}, null, 8, ["errors", "id"])
|
|
4005
|
-
], 2));
|
|
4006
|
-
}
|
|
4007
4020
|
});
|
|
4008
4021
|
//#endregion
|
|
4009
4022
|
//#region src/compose/useActiveLink.ts
|
|
@@ -4171,6 +4184,6 @@ function ga() {
|
|
|
4171
4184
|
};
|
|
4172
4185
|
}
|
|
4173
4186
|
//#endregion
|
|
4174
|
-
export { ke as $, $n as A, Ht as B,
|
|
4187
|
+
export { ke as $, $n as A, Ht as B, hr as C, _r as D, mr as E, hn as F, it as G, wt as H, dn as I, Qe as J, et as K, ln as L, Cn as M, vn as N, vr as O, gn as P, $ as Q, on as R, qr as S, gr as T, yt as U, At as V, ft as W, qe as X, Ke as Y, Re as Z, hi as _, sa as a, ci as b, qi as c, Mi as d, De as et, ji as f, _i as g, xi as h, pa as i, Q as it, Rn as j, fr as k, Bi as l, Ti as m, ha as n, be as nt, Xi as o, Ai as p, $e as q, ma as r, ye as rt, Yi as s, ga as t, Ee as tt, zi as u, di as v, pr as w, ni as x, ui as y, Qt as z };
|
|
4175
4188
|
|
|
4176
|
-
//# sourceMappingURL=grad-vue-
|
|
4189
|
+
//# sourceMappingURL=grad-vue-BlLcBFHO.js.map
|