@illinois-grad/grad-vue 7.2.1 → 7.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
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, getCurrentScope as f, inject as p, mergeModels as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeStyle as v, onBeforeMount as y, onBeforeUnmount as b, onMounted as x, onScopeDispose as S, onUnmounted as C, openBlock as w, provide as T, reactive as E, readonly as D, ref as O, renderList as k, renderSlot as A, resolveDynamicComponent as j, shallowReactive as M, shallowRef as N, toDisplayString as P, toRaw as F, toRef as I, toValue as L, unref as R, useAttrs as z, useId as B, useModel as V, useSlots as H, useTemplateRef as U, vShow as ee, watch as W, watchEffect as G, withCtx as K, withDirectives as te, withModifiers as q } from "vue";
2
- import { createEventHook as ne, toArray as re, tryOnScopeDispose as ie, unrefElement as J, useClipboard as ae, useDebounceFn as Y, useFocusWithin as X, useIntersectionObserver as Z, useLocalStorage as oe, useMediaQuery as se, useMutationObserver as ce, useResizeObserver as le, useSessionStorage as ue } from "@vueuse/core";
2
+ import { createEventHook as ne, toArray as re, tryOnScopeDispose as ie, unrefElement as J, useClipboard as ae, useDebounceFn as Y, useFocusWithin as X, useIntersectionObserver as oe, useLocalStorage as se, useMediaQuery as ce, useMutationObserver as Z, useResizeObserver as le, useSessionStorage as ue } from "@vueuse/core";
3
3
  import { createFocusTrap as de } from "focus-trap";
4
4
  //#region src/compose/useCustomElementAttrs.ts
5
5
  function fe() {
@@ -1413,7 +1413,7 @@ var Lt = ["id"], Rt = {
1413
1413
  x.value = !0;
1414
1414
  }
1415
1415
  let X = r(() => i.clearButton && d.value !== null && d.value !== void 0 && !i.disabled);
1416
- function Z() {
1416
+ function oe() {
1417
1417
  i.disabled || (d.value = null, u("change", null), i.searchable && (F.value = ""));
1418
1418
  }
1419
1419
  return (n, r) => (w(), o("div", { class: _(["g-select-root g-select-combo", {
@@ -1458,7 +1458,7 @@ var Lt = ["id"], Rt = {
1458
1458
  key: 0,
1459
1459
  type: "button",
1460
1460
  class: "g-select-clear-btn",
1461
- onClick: Z
1461
+ onClick: oe
1462
1462
  }, [...r[0] ||= [s("svg", {
1463
1463
  role: "img",
1464
1464
  "aria-label": "Clear Selection",
@@ -1503,7 +1503,7 @@ var Lt = ["id"], Rt = {
1503
1503
  key: 0,
1504
1504
  type: "button",
1505
1505
  class: "g-select-clear-btn",
1506
- onClick: q(Z, ["stop"])
1506
+ onClick: q(oe, ["stop"])
1507
1507
  }, [...r[2] ||= [s("svg", {
1508
1508
  role: "img",
1509
1509
  "aria-label": "Clear Selection",
@@ -1716,7 +1716,7 @@ function cn(e = "default", t) {
1716
1716
  id: `g-wc-sidebar-${e}`,
1717
1717
  open: O(!1),
1718
1718
  breakpoint: t,
1719
- isCollapsible: se(t, { ssrWidth: 1e3 }),
1719
+ isCollapsible: ce(t, { ssrWidth: 1e3 }),
1720
1720
  toggle: () => void 0
1721
1721
  });
1722
1722
  }
@@ -1923,7 +1923,7 @@ var ln = [
1923
1923
  navigationMediaQuery: { default: "(max-width: 800px)" }
1924
1924
  },
1925
1925
  setup(e) {
1926
- let t = se(I(e, "navigationMediaQuery"), { ssrWidth: 1e3 }), n = U("desktopNavigationRef"), r = U("mobileNavigationRef");
1926
+ let t = ce(I(e, "navigationMediaQuery"), { ssrWidth: 1e3 }), n = U("desktopNavigationRef"), r = U("mobileNavigationRef");
1927
1927
  function c() {
1928
1928
  return $e(n.value);
1929
1929
  }
@@ -2499,27 +2499,31 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2499
2499
  ],
2500
2500
  setup(t, { emit: n }) {
2501
2501
  let l = t, u = n;
2502
- function d(e, t) {
2503
- l.bulkSelectionEnabled && e.shiftKey && !e.target.closest("a,button,[tabindex],input") && e.preventDefault();
2502
+ function d(e) {
2503
+ let t = e.currentTarget, n = e.target.closest("a,button,[tabindex],input");
2504
+ return !!n && t.contains(n);
2504
2505
  }
2505
2506
  function f(e, t) {
2506
- if (!l.rowClickable && !l.bulkSelectionEnabled || e.target.closest("a,button,[tabindex],input")) return;
2507
+ l.bulkSelectionEnabled && e.shiftKey && !d(e) && e.preventDefault();
2508
+ }
2509
+ function p(e, t) {
2510
+ if (!l.rowClickable && !l.bulkSelectionEnabled || d(e)) return;
2507
2511
  let n = e.target.closest("tr");
2508
2512
  if (n) {
2509
- if (l.bulkSelectionEnabled) n.querySelector("input[type=checkbox]") && m(t, e.shiftKey);
2513
+ if (l.bulkSelectionEnabled) n.querySelector("input[type=checkbox]") && g(t, e.shiftKey);
2510
2514
  else if (l.rowClickable) {
2511
2515
  let e = n.querySelector("a[href]")?.getAttribute("href");
2512
2516
  e && u("row-click", e);
2513
2517
  }
2514
2518
  }
2515
2519
  }
2516
- function p(e) {
2520
+ function m(e) {
2517
2521
  return l.selectedRows?.includes(e) ?? !1;
2518
2522
  }
2519
- function m(e, t = !1) {
2523
+ function g(e, t = !1) {
2520
2524
  u("toggle-row", e, t);
2521
2525
  }
2522
- function g(e, t, n) {
2526
+ function v(e, t, n) {
2523
2527
  let r = e.target.value;
2524
2528
  u("cell-change", {
2525
2529
  row: t,
@@ -2527,30 +2531,30 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2527
2531
  value: r
2528
2532
  });
2529
2533
  }
2530
- function v(e, t) {
2534
+ function y(e, t) {
2531
2535
  let n = `${l.tableId}-th-${String(t.key)}`;
2532
2536
  return t.editable?.labelKey ? `${`${l.tableId}-td-${e.key}-${t.editable.labelKey}`} ${n} ` : n;
2533
2537
  }
2534
- let y = r(() => {
2538
+ let b = r(() => {
2535
2539
  for (let e of l.columns) if (e.editable?.labelKey) return e.editable.labelKey;
2536
- }), b = r(() => Math.max(l.columns.length, 1));
2537
- function x(e) {
2538
- return e.key === y.value;
2540
+ }), x = r(() => Math.max(l.columns.length, 1));
2541
+ function S(e) {
2542
+ return e.key === b.value;
2539
2543
  }
2540
- function S(e, t) {
2544
+ function C(e, t) {
2541
2545
  return l.changeTracker ? l.changeTracker.hasChange(e.key, t.key) : !1;
2542
2546
  }
2543
- function C(e, t) {
2547
+ function T(e, t) {
2544
2548
  return l.changeTracker ? l.changeTracker.hasError(e.key, t.key) : !1;
2545
2549
  }
2546
- function T(e, t) {
2550
+ function E(e, t) {
2547
2551
  if (l.changeTracker) return l.changeTracker.getError(e.key, t.key);
2548
2552
  }
2549
2553
  return (n, r) => (w(), o("tbody", Qn, [(w(!0), o(e, null, k(t.data, (n, l) => (w(), o(e, { key: n.key }, [t.groupBy && (l === 0 || n[t.groupBy] !== t.data[l - 1][t.groupBy]) ? (w(), o("tr", {
2550
2554
  key: 0,
2551
2555
  "aria-rowindex": t.startIndex + l + 2
2552
2556
  }, [t.bulkSelectionEnabled ? (w(), o("td", er)) : a("", !0), s("td", {
2553
- colspan: b.value,
2557
+ colspan: x.value,
2554
2558
  class: "table-group-row"
2555
2559
  }, [t.groupRender ? (w(), i(j(t.groupRender(n[t.groupBy], n)), { key: 0 })) : (w(), o(e, { key: 1 }, [c(P(n[t.groupBy]), 1)], 64))], 8, tr)], 8, $n)) : a("", !0), s("tr", {
2556
2560
  class: _([
@@ -2562,26 +2566,26 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2562
2566
  t.rowClass ? t.rowClass(n) : void 0
2563
2567
  ]),
2564
2568
  "aria-rowindex": t.startIndex + l + 2,
2565
- onMousedown: (e) => d(e, n.key),
2566
- onClick: (e) => f(e, n.key)
2569
+ onMousedown: (e) => f(e, n.key),
2570
+ onClick: (e) => p(e, n.key)
2567
2571
  }, [t.bulkSelectionEnabled ? (w(), o("td", {
2568
2572
  key: 0,
2569
2573
  class: "td-checkbox",
2570
2574
  onClick: r[0] ||= q(() => {}, ["stop"])
2571
2575
  }, [s("input", {
2572
2576
  type: "checkbox",
2573
- checked: p(n.key),
2574
- onClick: (e) => m(n.key, e.shiftKey),
2577
+ checked: m(n.key),
2578
+ onClick: (e) => g(n.key, e.shiftKey),
2575
2579
  "aria-label": `Select row ${n.key}`,
2576
2580
  name: `row-${n.key}-checkbox`,
2577
2581
  class: "g-bulk-select-checkbox"
2578
2582
  }, null, 8, rr)])) : a("", !0), (w(!0), o(e, null, k(t.columns, (r) => (w(), o("td", {
2579
2583
  key: r.key,
2580
- id: x(r) ? `${t.tableId}-td-${n.key}-${String(r.key)}` : void 0,
2584
+ id: S(r) ? `${t.tableId}-td-${n.key}-${String(r.key)}` : void 0,
2581
2585
  class: _([
2582
2586
  r.editable ? "editable-td" : "",
2583
- S(n, r) ? "g-cell-changed" : "",
2584
- C(n, r) ? "g-cell-error" : "",
2587
+ C(n, r) ? "g-cell-changed" : "",
2588
+ T(n, r) ? "g-cell-error" : "",
2585
2589
  typeof r.tdClass == "function" ? r.tdClass(n) : r.tdClass
2586
2590
  ])
2587
2591
  }, [r.editable ? (w(), o("div", ar, [
@@ -2589,10 +2593,10 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2589
2593
  r.editable.type === "select" ? (w(), o("select", {
2590
2594
  key: 1,
2591
2595
  value: n[r.key],
2592
- onChange: (e) => g(e, n, r),
2593
- "aria-labelledby": v(n, r),
2594
- "aria-invalid": C(n, r),
2595
- "aria-errormessage": C(n, r) ? `${t.tableId}-error-${n.key}-${String(r.key)}` : void 0,
2596
+ onChange: (e) => v(e, n, r),
2597
+ "aria-labelledby": y(n, r),
2598
+ "aria-invalid": T(n, r),
2599
+ "aria-errormessage": T(n, r) ? `${t.tableId}-error-${n.key}-${String(r.key)}` : void 0,
2596
2600
  name: `row-${n.key}-${String(r.key)}-select`,
2597
2601
  class: "editable-input editable-select"
2598
2602
  }, [(w(!0), o(e, null, k(r.editable.options, (e) => (w(), o("option", {
@@ -2602,10 +2606,10 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2602
2606
  key: 2,
2603
2607
  value: n[r.key]
2604
2608
  }, { ref_for: !0 }, r.editable.inputAttributes, {
2605
- onInput: (e) => g(e, n, r),
2606
- "aria-labelledby": v(n, r),
2607
- "aria-invalid": C(n, r),
2608
- "aria-errormessage": C(n, r) ? `${t.tableId}-error-${n.key}-${String(r.key)}` : void 0,
2609
+ onInput: (e) => v(e, n, r),
2610
+ "aria-labelledby": y(n, r),
2611
+ "aria-invalid": T(n, r),
2612
+ "aria-errormessage": T(n, r) ? `${t.tableId}-error-${n.key}-${String(r.key)}` : void 0,
2609
2613
  name: `row-${n.key}-${String(r.key)}-input`,
2610
2614
  class: "editable-input",
2611
2615
  style: {
@@ -2614,12 +2618,12 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2614
2618
  }
2615
2619
  }), null, 16, lr)),
2616
2620
  r.editable.suffix ? (w(), o("span", ur, P(r.editable.suffix), 1)) : a("", !0)
2617
- ])) : r.display ? (w(), i(j(r.display(n)), { key: 1 })) : (w(), o(e, { key: 2 }, [c(P(n[r.key]), 1)], 64)), C(n, r) ? (w(), o("div", {
2621
+ ])) : r.display ? (w(), i(j(r.display(n)), { key: 1 })) : (w(), o(e, { key: 2 }, [c(P(n[r.key]), 1)], 64)), T(n, r) ? (w(), o("div", {
2618
2622
  key: 3,
2619
2623
  role: "alert",
2620
2624
  class: "g-cell-error-message",
2621
2625
  id: `${t.tableId}-error-${n.key}-${String(r.key)}`
2622
- }, P(T(n, r)), 9, dr)) : a("", !0)], 10, ir))), 128))], 42, nr)], 64))), 128))], 512));
2626
+ }, P(E(n, r)), 9, dr)) : a("", !0)], 10, ir))), 128))], 42, nr)], 64))), 128))], 512));
2623
2627
  }
2624
2628
  });
2625
2629
  //#endregion
@@ -2853,9 +2857,9 @@ var Cr = ["id", "for"], wr = {
2853
2857
  case "Backspace": !x.value && d.value.length > 0 && W(d.value[d.value.length - 1]);
2854
2858
  }
2855
2859
  }
2856
- let Y = r(() => `${f}-input`), X = r(() => `${f}-label`), Z = r(() => `${f}-instructions`), oe = r(() => `error-message-${f}`), se = r(() => {
2860
+ let Y = r(() => `${f}-input`), X = r(() => `${f}-label`), oe = r(() => `${f}-instructions`), se = r(() => `error-message-${f}`), ce = r(() => {
2857
2861
  let e = [];
2858
- return i.instructions && e.push(Z.value), T.value && e.push(oe.value), e.length > 0 ? e.join(" ") : void 0;
2862
+ return i.instructions && e.push(oe.value), T.value && e.push(se.value), e.length > 0 ? e.join(" ") : void 0;
2859
2863
  });
2860
2864
  return (n, r) => (w(), o("div", { class: _(["g-multiselect-root", {
2861
2865
  "g-multiselect-open": y.value,
@@ -2869,7 +2873,7 @@ var Cr = ["id", "for"], wr = {
2869
2873
  }, [c(P(t.label), 1), t.required ? (w(), o("span", wr, " *")) : a("", !0)], 8, Cr)),
2870
2874
  t.instructions ? (w(), o("div", {
2871
2875
  key: 1,
2872
- id: Z.value,
2876
+ id: oe.value,
2873
2877
  class: "g-multiselect-instructions"
2874
2878
  }, P(t.instructions), 9, Tr)) : a("", !0),
2875
2879
  s("div", {
@@ -2918,7 +2922,7 @@ var Cr = ["id", "for"], wr = {
2918
2922
  "aria-controls": R(f) + "-listbox",
2919
2923
  "aria-activedescendant": y.value && N.value.length > 0 ? R(f) + "-option-" + b.value : void 0
2920
2924
  }, t.hiddenLabel ? { "aria-label": t.label } : void 0, {
2921
- "aria-describedby": se.value,
2925
+ "aria-describedby": ce.value,
2922
2926
  "aria-required": t.required ? "true" : void 0,
2923
2927
  onInput: K,
2924
2928
  onKeydown: ae,
@@ -2960,7 +2964,7 @@ var Cr = ["id", "for"], wr = {
2960
2964
  ], 2),
2961
2965
  l(Me, {
2962
2966
  errors: R(C),
2963
- id: oe.value
2967
+ id: se.value
2964
2968
  }, null, 8, ["errors", "id"])
2965
2969
  ], 2));
2966
2970
  }
@@ -3489,54 +3493,51 @@ function Ri(e, t = {}) {
3489
3493
  }
3490
3494
  //#endregion
3491
3495
  //#region src/components/GTable.vue?vue&type=script&setup=true&lang.ts
3492
- var zi = { class: "g-table-outer-wrap" }, Bi = {
3493
- key: 0,
3494
- class: "g-table-controls"
3495
- }, Vi = { class: "g-table-control-actions" }, Hi = {
3496
+ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions" }, Vi = {
3496
3497
  key: 0,
3497
3498
  class: "g-sort-builder-wrap"
3498
- }, Ui = {
3499
+ }, Hi = {
3499
3500
  key: 0,
3500
3501
  class: "g-sort-builder-count"
3501
- }, Wi = {
3502
+ }, Ui = {
3502
3503
  key: 0,
3503
3504
  class: "g-sort-builder-list"
3504
- }, Gi = ["data-sort-row-key", "aria-label"], Ki = {
3505
+ }, Wi = ["data-sort-row-key", "aria-label"], Gi = {
3505
3506
  class: "g-sort-builder-rule-priority",
3506
3507
  "aria-hidden": "true"
3507
- }, qi = { class: "g-sort-builder-rule-label" }, Ji = ["aria-label", "onClick"], Yi = { class: "g-visually-hidden" }, Xi = {
3508
+ }, Ki = { class: "g-sort-builder-rule-label" }, qi = ["aria-label", "onClick"], Ji = { class: "g-visually-hidden" }, Yi = {
3508
3509
  class: "sort-indicator",
3509
3510
  "aria-hidden": "true"
3510
- }, Zi = ["aria-label", "onClick"], Qi = {
3511
+ }, Xi = ["aria-label", "onClick"], Zi = {
3511
3512
  key: 1,
3512
3513
  class: "g-sort-builder-empty"
3513
- }, $i = {
3514
+ }, Qi = {
3514
3515
  key: 2,
3515
3516
  class: "g-sort-builder-add"
3516
- }, ea = { class: "g-sort-builder-add-list" }, ta = { class: "g-sort-builder-add-name" }, na = { class: "g-sort-builder-add-actions" }, ra = ["aria-label", "onClick"], ia = ["aria-label", "onClick"], aa = {
3517
+ }, $i = { class: "g-sort-builder-add-list" }, ea = { class: "g-sort-builder-add-name" }, ta = { class: "g-sort-builder-add-actions" }, na = ["aria-label", "onClick"], ra = ["aria-label", "onClick"], ia = {
3517
3518
  class: "sort-indicator",
3518
3519
  "aria-hidden": "true"
3519
- }, oa = {
3520
+ }, aa = {
3520
3521
  xmlns: "http://www.w3.org/2000/svg",
3521
3522
  viewBox: "0 0 640 640",
3522
3523
  height: "1.25em",
3523
3524
  style: { transform: "rotate(180deg)" }
3524
- }, sa = {
3525
+ }, oa = {
3525
3526
  key: 1,
3526
3527
  class: "g-column-visibility-wrap"
3527
- }, ca = {
3528
+ }, sa = {
3528
3529
  xmlns: "http://www.w3.org/2000/svg",
3529
3530
  viewBox: "0 0 640 640",
3530
3531
  height: "1.5em",
3531
3532
  style: { transform: "rotate(90deg)" },
3532
3533
  "aria-hidden": "true"
3533
- }, la = ["aria-labelledby"], ua = { class: "g-column-visibility-header" }, da = ["id"], fa = { class: "g-column-visibility-legend-action" }, pa = { class: "g-column-visibility-list" }, ma = ["checked", "onChange"], ha = {
3534
+ }, ca = ["aria-labelledby"], la = { class: "g-column-visibility-header" }, ua = ["id"], da = { class: "g-column-visibility-legend-action" }, fa = { class: "g-column-visibility-list" }, pa = ["checked", "onChange"], ma = {
3534
3535
  key: 2,
3535
3536
  class: "g-table-custom-controls"
3536
- }, ga = { class: "g-clear-filters-wrap" }, _a = {
3537
+ }, ha = { class: "g-clear-filters-wrap" }, ga = {
3537
3538
  key: 0,
3538
3539
  class: "pagination"
3539
- }, va = { class: "g-table-controls-right" }, ya = { class: "g-result-count" }, ba = ["aria-label", "aria-rowcount"], xa = { key: 0 }, Sa = ["data-column-key"], Ca = { class: "g-table-head" }, wa = { "aria-rowindex": "1" }, Ta = {
3540
+ }, _a = { class: "g-table-controls-right" }, va = { class: "g-result-count" }, ya = ["aria-rowcount"], ba = { class: "g-visually-hidden" }, xa = { key: 0 }, Sa = ["data-column-key"], Ca = { class: "g-table-head" }, wa = { "aria-rowindex": "1" }, Ta = {
3540
3541
  key: 0,
3541
3542
  scope: "col",
3542
3543
  class: "g-th g-th-checkbox"
@@ -3544,34 +3545,35 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
3544
3545
  "checked",
3545
3546
  "indeterminate",
3546
3547
  "aria-label"
3547
- ], Da = ["id", "aria-sort"], Oa = { class: "th-inner" }, ka = ["onClick"], Aa = {
3548
+ ], Da = ["id", "aria-sort"], Oa = { class: "th-inner" }, ka = ["aria-describedby", "onClick"], Aa = {
3548
3549
  key: 0,
3549
3550
  class: "sort-indicator",
3550
3551
  "aria-hidden": "true"
3551
3552
  }, ja = {
3552
- key: 1,
3553
- class: "g-visually-hidden"
3554
- }, Ma = {
3555
3553
  key: 1,
3556
3554
  class: "g-column-head"
3557
- }, Na = ["onClick", "aria-label"], Pa = {
3555
+ }, Ma = [
3556
+ "onClick",
3557
+ "aria-describedby",
3558
+ "aria-expanded"
3559
+ ], Na = {
3558
3560
  key: 1,
3559
3561
  class: "g-filter-search",
3560
3562
  role: "search"
3561
- }, Fa = [
3563
+ }, Pa = [
3562
3564
  "value",
3563
3565
  "onInput",
3564
3566
  "placeholder",
3565
3567
  "aria-label"
3566
- ], Ia = { key: 2 }, La = { class: "g-filter-toggle" }, Ra = [
3568
+ ], Fa = { key: 2 }, Ia = { class: "g-filter-toggle" }, La = [
3567
3569
  "checked",
3568
3570
  "onChange",
3569
3571
  "id",
3570
3572
  "aria-describedby"
3571
- ], za = ["for"], Ba = ["id"], Va = {
3573
+ ], Ra = ["for"], za = ["id"], Ba = {
3572
3574
  key: 4,
3573
3575
  class: "g-multi-select"
3574
- }, Ha = [
3576
+ }, Va = [
3575
3577
  "data-column-key",
3576
3578
  "aria-label",
3577
3579
  "aria-valuemax",
@@ -3579,10 +3581,10 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
3579
3581
  "aria-valuetext",
3580
3582
  "onKeydown",
3581
3583
  "onPointerdown"
3582
- ], Ua = { key: 0 }, Wa = { "aria-rowindex": "2" }, Ga = ["colspan"], Ka = {
3584
+ ], Ha = { key: 0 }, Ua = { "aria-rowindex": "2" }, Wa = ["colspan"], Ga = { hidden: "" }, Ka = ["id"], qa = ["id"], Ja = ["id"], Ya = {
3583
3585
  key: 1,
3584
3586
  class: "g-bulk-actions-toolbar"
3585
- }, qa = { class: "g-selected-count" }, Ja = { class: "g-bulk-actions" }, Ya = /* @__PURE__ */ u({
3587
+ }, Xa = { class: "g-selected-count" }, Za = { class: "g-bulk-actions" }, Qa = /* @__PURE__ */ u({
3586
3588
  __name: "GTable",
3587
3589
  props: /*@__PURE__*/ m({
3588
3590
  label: {},
@@ -3680,244 +3682,263 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
3680
3682
  function W(e) {
3681
3683
  e !== void 0 && y("update:pageSize", e);
3682
3684
  }
3683
- let G = B(), te = d(), ne = O(null), re = O(null), ie = O(null), J = O(null), ae = `${G}-table`;
3684
- function Y(e) {
3685
+ let G = B(), te = d(), ne = O(null), re = O(null), ie = O(null), J = O(null), ae = O(null), Y = O(0);
3686
+ le(ae, (e) => {
3687
+ let t = e[0];
3688
+ Y.value = t?.borderBoxSize?.[0]?.blockSize ?? t?.target.getBoundingClientRect().height ?? 0;
3689
+ });
3690
+ let X = O(null), oe = `${G}-table`;
3691
+ function se(e) {
3685
3692
  let t = /* @__PURE__ */ new Set();
3686
3693
  return e.filter((e) => !e?.key || t.has(String(e.key)) ? !1 : (t.add(String(e.key)), e.order === 1 || e.order === -1));
3687
3694
  }
3688
- function X(e, t) {
3695
+ function ce(e, t) {
3689
3696
  return {
3690
3697
  key: e,
3691
3698
  order: t
3692
3699
  };
3693
3700
  }
3694
- let Z = r(() => Y(u.value));
3695
- function oe(e) {
3696
- u.value = Y(e);
3701
+ let Z = r(() => se(u.value));
3702
+ function ue(e) {
3703
+ u.value = se(e);
3697
3704
  }
3698
- let se = r(() => h.columns.filter((e) => e.sortable)), ce = r(() => se.value.length > 1), le = r(() => {
3705
+ let de = r(() => h.columns.filter((e) => e.sortable)), fe = r(() => de.value.length > 1), pe = r(() => {
3699
3706
  let e = new Set(Z.value.map((e) => String(e.key)));
3700
- return se.value.filter((t) => !e.has(String(t.key)));
3707
+ return de.value.filter((t) => !e.has(String(t.key)));
3701
3708
  });
3702
- function ue(e) {
3709
+ function me(e) {
3703
3710
  return Z.value.findIndex((t) => t.key === e);
3704
3711
  }
3705
- function de(e) {
3712
+ function he(e) {
3706
3713
  return Z.value.find((t) => t.key === e);
3707
3714
  }
3708
- function fe(e) {
3715
+ function ge(e) {
3709
3716
  return h.columns.find((t) => t.key === e)?.label || String(e);
3710
3717
  }
3711
- function pe(e) {
3712
- let t = ue(e);
3718
+ function _e(e) {
3719
+ let t = me(e);
3713
3720
  return t === -1 ? "none" : t > 0 ? "other" : Z.value[0]?.order === 1 ? "ascending" : "descending";
3714
3721
  }
3715
- function me(e) {
3716
- let t = ue(e);
3717
- if (t === -1) return "";
3722
+ function ve(e) {
3723
+ let t = me(e);
3724
+ if (t === -1) return "Sortable, not sorted";
3718
3725
  let n = Z.value[t].order === 1 ? "ascending" : "descending";
3719
3726
  return Z.value.length > 1 ? `Sorted ${n}, priority ${t + 1}` : `Sorted ${n}`;
3720
3727
  }
3721
- function he(e) {
3728
+ let ye = r(() => Z.value.length === 0 ? "" : `sorted by ${Z.value.map((e) => `${ge(e.key)} ${e.order === 1 ? "ascending" : "descending"}`).join(", then ")}`), be = r(() => {
3729
+ let e = h.columns.filter((e) => ot(e));
3730
+ return e.length === 0 ? "" : `filtered by ${e.map((e) => e.label).join(", ")}`;
3731
+ });
3732
+ function xe(e) {
3722
3733
  return e === 1 ? "Ascending" : "Descending";
3723
3734
  }
3724
- function ge(e) {
3735
+ function Se(e) {
3725
3736
  let t = Z.value[0]?.key === e ? Z.value[0] : void 0;
3726
- return t ? t.order === 1 ? [X(e, -1)] : [] : [X(e, 1)];
3737
+ return t ? t.order === 1 ? [ce(e, -1)] : [] : [ce(e, 1)];
3727
3738
  }
3728
- function _e(e) {
3739
+ function Ce(e) {
3729
3740
  let t = [...Z.value], n = t.findIndex((t) => t.key === e);
3730
- return n === -1 ? (t.push(X(e, 1)), t) : t[n].order === 1 ? (t[n] = X(e, -1), t) : (t.splice(n, 1), t);
3741
+ return n === -1 ? (t.push(ce(e, 1)), t) : t[n].order === 1 ? (t[n] = ce(e, -1), t) : (t.splice(n, 1), t);
3731
3742
  }
3732
- function ve(e, t = !1) {
3743
+ function we(e, t = !1) {
3733
3744
  if (!e.sortable) return;
3734
3745
  let n = e.key;
3735
- oe(t ? _e(n) : ge(n));
3746
+ ue(t ? Ce(n) : Se(n));
3736
3747
  }
3737
- function ye(e, t) {
3738
- oe([...Z.value, X(e, t)]), g(() => {
3748
+ function Te(e, t) {
3749
+ ue([...Z.value, ce(e, t)]), g(() => {
3739
3750
  let t = ne.value;
3740
3751
  t && (t.querySelector(`[data-sort-row-key="${String(e)}"]`) ?? t)?.focus();
3741
3752
  }).catch((e) => {
3742
3753
  console.error(e);
3743
3754
  });
3744
3755
  }
3745
- function be(e) {
3746
- oe(Z.value.map((t) => t.key === e ? X(t.key, t.order === 1 ? -1 : 1) : t));
3756
+ function Ee(e) {
3757
+ ue(Z.value.map((t) => t.key === e ? ce(t.key, t.order === 1 ? -1 : 1) : t));
3747
3758
  }
3748
- function xe(e) {
3749
- oe(Z.value.filter((t) => t.key !== e));
3759
+ function De(e) {
3760
+ ue(Z.value.filter((t) => t.key !== e));
3750
3761
  }
3751
- function Se() {
3752
- oe([]);
3762
+ function Oe() {
3763
+ ue([]);
3753
3764
  }
3754
- function Ce(e) {
3765
+ function ke(e) {
3755
3766
  return p.value[e] ?? {};
3756
3767
  }
3757
- function we(e, t) {
3768
+ function Ae(e, t) {
3758
3769
  p.value = {
3759
3770
  ...p.value,
3760
3771
  [e]: {
3761
- ...Ce(e),
3772
+ ...ke(e),
3762
3773
  ...t
3763
3774
  }
3764
3775
  };
3765
3776
  }
3766
- function Te(e) {
3777
+ function $(e) {
3767
3778
  return Math.max(50, Math.round(e));
3768
3779
  }
3769
- function Ee(e) {
3770
- let t = Ce(e).width;
3771
- if (typeof t == "number" && Number.isFinite(t)) return Te(t);
3780
+ function je(e) {
3781
+ let t = ke(e).width;
3782
+ if (typeof t == "number" && Number.isFinite(t)) return $(t);
3772
3783
  }
3773
- function De(e) {
3784
+ function Me(e) {
3774
3785
  return document.getElementById(`${G}-th-${String(e)}`);
3775
3786
  }
3776
- function Oe(e) {
3777
- let t = De(e)?.getBoundingClientRect().width;
3778
- return Te(t ?? 50);
3787
+ function Ne(e) {
3788
+ let t = Me(e)?.getBoundingClientRect().width;
3789
+ return $(t ?? 50);
3779
3790
  }
3780
- function ke(e) {
3781
- return Ee(e) ?? Oe(e);
3791
+ function Pe(e) {
3792
+ return je(e) ?? Ne(e);
3782
3793
  }
3783
- function Ae(e) {
3784
- let t = ke(e), n = ie.value?.getBoundingClientRect().width ?? re.value?.getBoundingClientRect().width ?? t;
3785
- return Te(Math.max(t, n));
3794
+ function Fe(e) {
3795
+ let t = Pe(e), n = ie.value?.getBoundingClientRect().width ?? re.value?.getBoundingClientRect().width ?? t;
3796
+ return $(Math.max(t, n));
3786
3797
  }
3787
- function $(e, t) {
3788
- we(e, { width: Te(t) });
3798
+ function Ie(e, t) {
3799
+ Ae(e, { width: $(t) });
3789
3800
  }
3790
- function je(e, t) {
3791
- $(e, ke(e) + t);
3801
+ function Le(e, t) {
3802
+ Ie(e, Pe(e) + t);
3792
3803
  }
3793
- function Me() {
3794
- J.value = null, window.removeEventListener("pointermove", Ne), window.removeEventListener("pointerup", Me), window.removeEventListener("pointercancel", Me);
3804
+ function Re() {
3805
+ X.value = null, window.removeEventListener("pointermove", ze), window.removeEventListener("pointerup", Re), window.removeEventListener("pointercancel", Re);
3795
3806
  }
3796
- function Ne(e) {
3797
- if (!J.value) return;
3798
- let t = J.value.startWidth + (e.clientX - J.value.startX);
3799
- $(J.value.key, t);
3807
+ function ze(e) {
3808
+ if (!X.value) return;
3809
+ let t = X.value.startWidth + (e.clientX - X.value.startX);
3810
+ Ie(X.value.key, t);
3800
3811
  }
3801
- function Pe(e, t) {
3812
+ function Be(e, t) {
3802
3813
  if (!h.resizableColumns) return;
3803
3814
  e.preventDefault(), e.stopPropagation();
3804
- let n = ke(t);
3805
- $(t, n), J.value = {
3815
+ let n = Pe(t);
3816
+ Ie(t, n), X.value = {
3806
3817
  key: t,
3807
3818
  startX: e.clientX,
3808
3819
  startWidth: n
3809
- }, e.currentTarget?.focus(), window.addEventListener("pointermove", Ne), window.addEventListener("pointerup", Me), window.addEventListener("pointercancel", Me);
3820
+ }, e.currentTarget?.focus(), window.addEventListener("pointermove", ze), window.addEventListener("pointerup", Re), window.addEventListener("pointercancel", Re);
3810
3821
  }
3811
- function Fe(e, t) {
3822
+ function Ve(e, t) {
3812
3823
  let n = e.shiftKey ? 48 : 16;
3813
3824
  switch (e.key) {
3814
3825
  case "ArrowLeft":
3815
- e.preventDefault(), je(t, -n);
3826
+ e.preventDefault(), Le(t, -n);
3816
3827
  return;
3817
3828
  case "ArrowRight":
3818
- e.preventDefault(), je(t, n);
3829
+ e.preventDefault(), Le(t, n);
3819
3830
  return;
3820
3831
  case "Home":
3821
- e.preventDefault(), $(t, 50);
3832
+ e.preventDefault(), Ie(t, 50);
3822
3833
  return;
3823
3834
  case "End":
3824
- e.preventDefault(), $(t, Ae(t));
3835
+ e.preventDefault(), Ie(t, Fe(t));
3825
3836
  return;
3826
3837
  default: return;
3827
3838
  }
3828
3839
  }
3829
- function Ie(e) {
3840
+ function He(e) {
3830
3841
  if (!h.resizableColumns) return;
3831
- let t = Ee(e.key);
3842
+ let t = je(e.key);
3832
3843
  if (t !== void 0) return {
3833
3844
  width: `${t}px`,
3834
3845
  minWidth: `${t}px`
3835
3846
  };
3836
3847
  }
3837
- function Le(e) {
3838
- return ke(e);
3848
+ function Ue(e) {
3849
+ return Pe(e);
3839
3850
  }
3840
- function Re(e) {
3841
- return `${Le(e)} pixels`;
3851
+ function We(e) {
3852
+ return `${Ue(e)} pixels`;
3842
3853
  }
3843
- let ze = r(() => {
3854
+ let Ge = r(() => {
3844
3855
  let e = te?.vnode.props ?? {};
3845
3856
  return "columnState" in e || "column-state" in e || "onUpdate:columnState" in e;
3846
- }), Be = r(() => h.columns.filter((e) => Ce(e.key).visible !== !1)), Ve = H(), He = r(() => Be.value.length !== h.columns.length), Ue = r(() => ze.value && h.columns.length > 0), We = r(() => !!Ve.controls || !!Ve["right-controls"]), Ge = r(() => h.resultCount ?? h.data.length);
3847
- function Ke(e) {
3848
- return Ce(e.key).visible !== !1;
3857
+ }), Ke = r(() => h.columns.filter((e) => ke(e.key).visible !== !1)), qe = H(), Je = r(() => Ke.value.length !== h.columns.length), Ye = r(() => Ge.value && h.columns.length > 0), Xe = r(() => !!qe.controls || !!qe["right-controls"]), Ze = r(() => h.resultCount ?? h.data.length);
3858
+ function Qe(e) {
3859
+ return ke(e.key).visible !== !1;
3849
3860
  }
3850
- function qe(e, t) {
3851
- we(e.key, { visible: t });
3861
+ function $e(e, t) {
3862
+ Ae(e.key, { visible: t });
3852
3863
  }
3853
- function Je() {
3864
+ function et() {
3854
3865
  p.value = h.columns.reduce((e, t) => ({
3855
3866
  ...e,
3856
3867
  [t.key]: {
3857
- ...Ce(t.key),
3868
+ ...ke(t.key),
3858
3869
  visible: !0
3859
3870
  }
3860
3871
  }), { ...p.value });
3861
3872
  }
3862
- let Ye = r(() => h.pagination && typeof h.pageSize == "number"), Xe = r(() => !!(ce.value || S.value || Ye.value || Ue.value || We.value));
3863
- function Ze() {
3873
+ let tt = r(() => h.pagination && typeof h.pageSize == "number"), nt = r(() => !!(fe.value || S.value || tt.value || Ye.value || Xe.value));
3874
+ function rt() {
3864
3875
  return f.value;
3865
3876
  }
3866
- function Qe(e) {
3867
- if (e.filter) return yr(e.filter, Ze()[pr(e)]);
3877
+ function it(e) {
3878
+ if (e.filter) return yr(e.filter, rt()[pr(e)]);
3868
3879
  }
3869
- function $e(e, t) {
3870
- e.filter && (Ze()[pr(e)] = br(e.filter, t));
3880
+ function at(e, t) {
3881
+ e.filter && (rt()[pr(e)] = br(e.filter, t));
3871
3882
  }
3872
- function et(e) {
3873
- return e.filter ? xr(e.filter, Ze()[pr(e)]) : !1;
3883
+ function ot(e) {
3884
+ return e.filter ? xr(e.filter, rt()[pr(e)]) : !1;
3874
3885
  }
3875
- function tt(e) {
3886
+ function st(e) {
3876
3887
  return e.filter?.type !== "select" && e.filter?.type !== "multi-select" ? [] : e.filter.options;
3877
3888
  }
3878
- function nt(e, t) {
3879
- let n = tt(e).findIndex((e) => e.value === t);
3889
+ function lt(e, t) {
3890
+ let n = st(e).findIndex((e) => e.value === t);
3880
3891
  return n === -1 ? void 0 : String(n);
3881
3892
  }
3882
- function rt(e, t) {
3883
- return tt(e)[Number(t)]?.value;
3893
+ function ut(e, t) {
3894
+ return st(e)[Number(t)]?.value;
3884
3895
  }
3885
- function it(e) {
3886
- return tt(e).map((e, t) => ({
3896
+ function dt(e) {
3897
+ return st(e).map((e, t) => ({
3887
3898
  label: e.label,
3888
3899
  value: String(t),
3889
3900
  description: e.description
3890
3901
  }));
3891
3902
  }
3892
- function at(e) {
3893
- return tt(e).map((e, t) => ({
3903
+ function ft(e) {
3904
+ return st(e).map((e, t) => ({
3894
3905
  label: e.label,
3895
3906
  value: String(t),
3896
3907
  hint: e.description
3897
3908
  }));
3898
3909
  }
3899
- function ot(e) {
3900
- return nt(e, Qe(e)) ?? null;
3910
+ function pt(e) {
3911
+ return lt(e, it(e)) ?? null;
3901
3912
  }
3902
- function st(e, t) {
3903
- $e(e, t == null ? void 0 : rt(e, t));
3913
+ function mt(e, t) {
3914
+ at(e, t == null ? void 0 : ut(e, t));
3904
3915
  }
3905
- function lt(e) {
3906
- let t = Qe(e);
3907
- return Array.isArray(t) ? t.map((t) => nt(e, t)).filter((e) => e !== void 0) : [];
3916
+ function ht(e) {
3917
+ let t = it(e);
3918
+ return Array.isArray(t) ? t.map((t) => lt(e, t)).filter((e) => e !== void 0) : [];
3908
3919
  }
3909
- function ut(e, t) {
3910
- $e(e, t.map((t) => rt(e, t)));
3920
+ function gt(e, t) {
3921
+ at(e, t.map((t) => ut(e, t)));
3911
3922
  }
3912
3923
  return b(() => {
3913
- Me();
3924
+ Re();
3914
3925
  }), x(() => {
3915
3926
  h.rowClickable && h.bulkSelectionEnabled && console.warn("GTable: rowClickable and bulkSelectionEnabled cannot be used together. rowClickable will be ignored.");
3916
3927
  for (let e of h.columns) e.editable && e.display && console.warn(`GTable: Column "${String(e.key)}" has both 'editable' and 'display' configured. 'display' will be ignored.`);
3917
- }), (n, r) => (w(), o("div", zi, [
3918
- Xe.value ? (w(), o("div", Bi, [
3919
- s("div", Vi, [
3920
- ce.value ? (w(), o("div", Hi, [l(ct, null, {
3928
+ }), (n, r) => (w(), o("div", {
3929
+ ref_key: "outerWrapRef",
3930
+ ref: ie,
3931
+ class: "g-table-outer-wrap",
3932
+ style: v({ "--g-table-controls-height": `${nt.value ? Y.value : 0}px` })
3933
+ }, [s("div", zi, [
3934
+ nt.value ? (w(), o("div", {
3935
+ key: 0,
3936
+ ref_key: "controlsRef",
3937
+ ref: ae,
3938
+ class: "g-table-controls"
3939
+ }, [
3940
+ s("div", Bi, [
3941
+ fe.value ? (w(), o("div", Vi, [l(ct, null, {
3921
3942
  trigger: K(({ toggle: e }) => [l(Q, {
3922
3943
  size: "small",
3923
3944
  class: _(["g-sort-builder-trigger", { "g-sort-builder-trigger--active": Z.value.length > 0 }]),
@@ -3933,7 +3954,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
3933
3954
  }, [s("path", {
3934
3955
  fill: "currentColor",
3935
3956
  d: "M130.4 268.2C135.4 280.2 147 288 160 288L480 288C492.9 288 504.6 280.2 509.6 268.2C514.6 256.2 511.8 242.5 502.7 233.3L342.7 73.3C330.2 60.8 309.9 60.8 297.4 73.3L137.4 233.3C128.2 242.5 125.5 256.2 130.5 268.2zM130.4 371.7C125.4 383.7 128.2 397.4 137.3 406.6L297.3 566.6C309.8 579.1 330.1 579.1 342.6 566.6L502.6 406.6C511.8 397.4 514.5 383.7 509.5 371.7C504.5 359.7 492.9 352 480 352L160 352C147.1 352 135.4 359.8 130.4 371.8z"
3936
- })], -1), Z.value.length ? (w(), o("span", Ui, P(Z.value.length), 1)) : a("", !0)]),
3957
+ })], -1), Z.value.length ? (w(), o("span", Hi, P(Z.value.length), 1)) : a("", !0)]),
3937
3958
  _: 1
3938
3959
  }, 8, ["class", "onClick"])]),
3939
3960
  default: K(() => [s("fieldset", {
@@ -3945,21 +3966,21 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
3945
3966
  }, [
3946
3967
  r[8] ||= s("legend", { class: "g-sort-builder-legend" }, " Sort order ", -1),
3947
3968
  r[9] ||= s("p", { class: "g-sort-builder-help" }, " Click a column header to change the primary sort. Use Shift-click as a shortcut to add or update secondary sorts. ", -1),
3948
- Z.value.length ? (w(), o("ol", Wi, [(w(!0), o(e, null, k(Z.value, (e, t) => (w(), o("li", {
3969
+ Z.value.length ? (w(), o("ol", Ui, [(w(!0), o(e, null, k(Z.value, (e, t) => (w(), o("li", {
3949
3970
  key: e.key,
3950
3971
  class: "g-sort-builder-rule",
3951
3972
  tabindex: "-1",
3952
3973
  "data-sort-row-key": String(e.key),
3953
- "aria-label": `${fe(e.key)} ${he(e.order)} sort, priority ${t + 1}`
3974
+ "aria-label": `${ge(e.key)} ${xe(e.order)} sort, priority ${t + 1}`
3954
3975
  }, [
3955
- s("span", Ki, P(t + 1), 1),
3956
- s("span", qi, P(fe(e.key)), 1),
3976
+ s("span", Gi, P(t + 1), 1),
3977
+ s("span", Ki, P(ge(e.key)), 1),
3957
3978
  s("button", {
3958
3979
  type: "button",
3959
3980
  class: "g-sort-builder-direction",
3960
- "aria-label": `Toggle ${fe(e.key)} sort direction`,
3961
- onClick: (t) => be(e.key)
3962
- }, [s("span", Yi, P(he(e.order)), 1), s("span", Xi, [(w(), o("svg", {
3981
+ "aria-label": `Toggle ${ge(e.key)} sort direction`,
3982
+ onClick: (t) => Ee(e.key)
3983
+ }, [s("span", Ji, P(xe(e.order)), 1), s("span", Yi, [(w(), o("svg", {
3963
3984
  xmlns: "http://www.w3.org/2000/svg",
3964
3985
  viewBox: "0 0 640 640",
3965
3986
  height: "1.25em",
@@ -3967,22 +3988,22 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
3967
3988
  }, [...r[2] ||= [s("path", {
3968
3989
  fill: "currentColor",
3969
3990
  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"
3970
- }, null, -1)]], 4))])], 8, Ji),
3991
+ }, null, -1)]], 4))])], 8, qi),
3971
3992
  s("button", {
3972
3993
  type: "button",
3973
3994
  class: "g-sort-builder-remove",
3974
- "aria-label": `Remove ${fe(e.key)} sort`,
3975
- onClick: (t) => xe(e.key)
3976
- }, " Remove ", 8, Zi)
3977
- ], 8, Gi))), 128))])) : (w(), o("p", Qi, " No active sort rules. ")),
3978
- le.value.length ? (w(), o("div", $i, [r[6] ||= s("p", { class: "g-sort-builder-add-label" }, " Add sort column ", -1), s("ul", ea, [(w(!0), o(e, null, k(le.value, (e) => (w(), o("li", {
3995
+ "aria-label": `Remove ${ge(e.key)} sort`,
3996
+ onClick: (t) => De(e.key)
3997
+ }, " Remove ", 8, Xi)
3998
+ ], 8, Wi))), 128))])) : (w(), o("p", Zi, " No active sort rules. ")),
3999
+ pe.value.length ? (w(), o("div", Qi, [r[6] ||= s("p", { class: "g-sort-builder-add-label" }, " Add sort column ", -1), s("ul", $i, [(w(!0), o(e, null, k(pe.value, (e) => (w(), o("li", {
3979
4000
  key: e.key,
3980
4001
  class: "g-sort-builder-add-item"
3981
- }, [s("span", ta, P(e.label), 1), s("div", na, [s("button", {
4002
+ }, [s("span", ea, P(e.label), 1), s("div", ta, [s("button", {
3982
4003
  type: "button",
3983
4004
  class: "g-sort-builder-direction",
3984
4005
  "aria-label": `Add ${e.label} ascending sort`,
3985
- onClick: (t) => ye(e.key, 1)
4006
+ onClick: (t) => Te(e.key, 1)
3986
4007
  }, [...r[3] ||= [s("span", { class: "g-visually-hidden" }, " Add ascending sort ", -1), s("span", {
3987
4008
  class: "sort-indicator",
3988
4009
  "aria-hidden": "true"
@@ -3993,21 +4014,21 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
3993
4014
  }, [s("path", {
3994
4015
  fill: "currentColor",
3995
4016
  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"
3996
- })])], -1)]], 8, ra), s("button", {
4017
+ })])], -1)]], 8, na), s("button", {
3997
4018
  type: "button",
3998
4019
  class: "g-sort-builder-direction",
3999
4020
  "aria-label": `Add ${e.label} descending sort`,
4000
- onClick: (t) => ye(e.key, -1)
4001
- }, [r[5] ||= s("span", { class: "g-visually-hidden" }, " Add descending sort ", -1), s("span", aa, [(w(), o("svg", oa, [...r[4] ||= [s("path", {
4021
+ onClick: (t) => Te(e.key, -1)
4022
+ }, [r[5] ||= s("span", { class: "g-visually-hidden" }, " Add descending sort ", -1), s("span", ia, [(w(), o("svg", aa, [...r[4] ||= [s("path", {
4002
4023
  fill: "currentColor",
4003
4024
  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"
4004
- }, null, -1)]]))])], 8, ia)])]))), 128))])])) : a("", !0),
4025
+ }, null, -1)]]))])], 8, ra)])]))), 128))])])) : a("", !0),
4005
4026
  Z.value.length ? (w(), i(Q, {
4006
4027
  key: 3,
4007
4028
  outlined: "",
4008
4029
  size: "small",
4009
4030
  class: "g-sort-builder-clear",
4010
- onClick: Se
4031
+ onClick: Oe
4011
4032
  }, {
4012
4033
  default: K(() => [...r[7] ||= [c(" Clear sort ", -1)]]),
4013
4034
  _: 1
@@ -4015,14 +4036,14 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4015
4036
  ], 512)]),
4016
4037
  _: 1
4017
4038
  })])) : a("", !0),
4018
- Ue.value ? (w(), o("div", sa, [l(ct, null, {
4039
+ Ye.value ? (w(), o("div", oa, [l(ct, null, {
4019
4040
  trigger: K(({ toggle: e }) => [l(Q, {
4020
4041
  size: "small",
4021
- class: _(["g-column-visibility-trigger", { "g-column-visibility-trigger--active": He.value }]),
4042
+ class: _(["g-column-visibility-trigger", { "g-column-visibility-trigger--active": Je.value }]),
4022
4043
  "aria-label": "Choose visible columns",
4023
4044
  onClick: e
4024
4045
  }, {
4025
- default: K(() => [(w(), o("svg", ca, [...r[10] ||= [s("path", {
4046
+ default: K(() => [(w(), o("svg", sa, [...r[10] ||= [s("path", {
4026
4047
  fill: "currentColor",
4027
4048
  d: "M64 160C64 142.3 78.3 128 96 128L480 128C497.7 128 512 142.3 512 160C512 177.7 497.7 192 480 192L96 192C78.3 192 64 177.7 64 160zM128 320C128 302.3 142.3 288 160 288L544 288C561.7 288 576 302.3 576 320C576 337.7 561.7 352 544 352L160 352C142.3 352 128 337.7 128 320zM512 480C512 497.7 497.7 512 480 512L96 512C78.3 512 64 497.7 64 480C64 462.3 78.3 448 96 448L480 448C497.7 448 512 462.3 512 480z"
4028
4049
  }, null, -1)]]))]),
@@ -4031,29 +4052,29 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4031
4052
  default: K(() => [s("fieldset", {
4032
4053
  class: "g-column-visibility-popover",
4033
4054
  "aria-labelledby": `${R(G)}-column-visibility-heading`
4034
- }, [s("div", ua, [s("span", {
4055
+ }, [s("div", la, [s("span", {
4035
4056
  id: `${R(G)}-column-visibility-heading`,
4036
4057
  class: "g-column-visibility-heading"
4037
- }, " Shown columns ", 8, da), s("span", fa, [l(Q, {
4058
+ }, " Shown columns ", 8, ua), s("span", da, [l(Q, {
4038
4059
  text: "",
4039
4060
  size: "small",
4040
- class: _(["g-column-visibility-show-all", { "g-column-visibility-show-all--hidden": !He.value }]),
4041
- onClick: Je
4061
+ class: _(["g-column-visibility-show-all", { "g-column-visibility-show-all--hidden": !Je.value }]),
4062
+ onClick: et
4042
4063
  }, {
4043
4064
  default: K(() => [...r[11] ||= [c(" Show All ", -1)]]),
4044
4065
  _: 1
4045
- }, 8, ["class"])])]), s("div", pa, [(w(!0), o(e, null, k(t.columns, (e) => (w(), o("label", {
4066
+ }, 8, ["class"])])]), s("div", fa, [(w(!0), o(e, null, k(t.columns, (e) => (w(), o("label", {
4046
4067
  key: e.key,
4047
4068
  class: "g-column-visibility-option"
4048
4069
  }, [s("input", {
4049
- checked: Ke(e),
4070
+ checked: Qe(e),
4050
4071
  type: "checkbox",
4051
- onChange: (t) => qe(e, t.target.checked)
4052
- }, null, 40, ma), s("span", null, P(e.label), 1)]))), 128))])], 8, la)]),
4072
+ onChange: (t) => $e(e, t.target.checked)
4073
+ }, null, 40, pa), s("span", null, P(e.label), 1)]))), 128))])], 8, ca)]),
4053
4074
  _: 1
4054
4075
  })])) : a("", !0),
4055
- We.value ? (w(), o("div", ha, [A(n.$slots, "controls")])) : a("", !0),
4056
- s("div", ga, [R(S) ? (w(), i(Q, {
4076
+ Xe.value ? (w(), o("div", ma, [A(n.$slots, "controls")])) : a("", !0),
4077
+ s("div", ha, [R(S) ? (w(), i(Q, {
4057
4078
  key: 0,
4058
4079
  outlined: "",
4059
4080
  size: "small",
@@ -4073,11 +4094,11 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4073
4094
  _: 1
4074
4095
  }, 8, ["onClick"])) : a("", !0)])
4075
4096
  ]),
4076
- Ye.value ? (w(), o("div", _a, [l(yi, {
4097
+ tt.value ? (w(), o("div", ga, [l(yi, {
4077
4098
  start: t.startIndex,
4078
4099
  "page-size": t.pageSize,
4079
4100
  "page-sizes": t.pageSizes,
4080
- total: Ge.value,
4101
+ total: Ze.value,
4081
4102
  "onUpdate:start": ee,
4082
4103
  "onUpdate:pageSize": W
4083
4104
  }, null, 8, [
@@ -4086,24 +4107,28 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4086
4107
  "page-sizes",
4087
4108
  "total"
4088
4109
  ])])) : a("", !0),
4089
- s("div", va, [s("span", ya, P(Ge.value) + " results", 1), A(n.$slots, "right-controls")])
4090
- ])) : a("", !0),
4110
+ s("div", _a, [s("span", va, P(Ze.value) + " results", 1), A(n.$slots, "right-controls")])
4111
+ ], 512)) : a("", !0),
4091
4112
  s("div", {
4092
4113
  ref_key: "tableWrapRef",
4093
- ref: ie,
4114
+ ref: J,
4094
4115
  class: "g-table-table-wrap"
4095
4116
  }, [s("table", {
4096
- id: ae,
4117
+ id: oe,
4097
4118
  class: _(["g-table", { "g-table--resizable": t.resizableColumns }]),
4098
4119
  ref_key: "tableRef",
4099
4120
  ref: re,
4100
- "aria-label": t.label,
4101
- "aria-rowcount": Ge.value
4121
+ "aria-rowcount": Ze.value
4102
4122
  }, [
4103
- s("colgroup", null, [t.bulkSelectionEnabled ? (w(), o("col", xa)) : a("", !0), (w(!0), o(e, null, k(Be.value, (e) => (w(), o("col", {
4123
+ s("caption", ba, P([
4124
+ t.label,
4125
+ ye.value,
4126
+ be.value
4127
+ ].filter(Boolean).join(", ")), 1),
4128
+ s("colgroup", null, [t.bulkSelectionEnabled ? (w(), o("col", xa)) : a("", !0), (w(!0), o(e, null, k(Ke.value, (e) => (w(), o("col", {
4104
4129
  key: e.key,
4105
4130
  "data-column-key": String(e.key),
4106
- style: v(Ie(e))
4131
+ style: v(He(e))
4107
4132
  }, null, 12, Sa))), 128))]),
4108
4133
  s("thead", Ca, [s("tr", wa, [t.bulkSelectionEnabled ? (w(), o("th", Ta, [s("input", {
4109
4134
  type: "checkbox",
@@ -4112,42 +4137,43 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4112
4137
  onChange: N,
4113
4138
  "aria-label": D.value ? "Deselect all rows" : "Select all rows",
4114
4139
  class: "g-bulk-select-checkbox"
4115
- }, null, 40, Ea)])) : a("", !0), (w(!0), o(e, null, k(Be.value, (e) => (w(), o("th", {
4140
+ }, null, 40, Ea)])) : a("", !0), (w(!0), o(e, null, k(Ke.value, (e) => (w(), o("th", {
4116
4141
  key: e.key,
4117
4142
  id: `${R(G)}-th-${String(e.key)}`,
4118
- "aria-sort": pe(e.key),
4143
+ "aria-sort": _e(e.key),
4119
4144
  class: _([
4120
4145
  "g-th",
4121
4146
  { "g-th--resizable": t.resizableColumns },
4122
- { sorted: ue(e.key) !== -1 },
4123
- { filtered: et(e) }
4147
+ { sorted: me(e.key) !== -1 },
4148
+ { filtered: ot(e) }
4124
4149
  ]),
4125
4150
  scope: "col"
4126
4151
  }, [s("div", Oa, [e.sortable ? (w(), o("button", {
4127
4152
  key: 0,
4128
4153
  type: "button",
4129
4154
  class: "g-column-head",
4130
- onClick: (t) => ve(e, t.shiftKey)
4131
- }, [
4132
- r[14] ||= s("span", { class: "g-visually-hidden" }, "Sort by ", -1),
4133
- c(" " + P(e.label) + " ", 1),
4134
- ue(e.key) === -1 ? a("", !0) : (w(), o("span", Aa, [(w(), o("svg", {
4135
- xmlns: "http://www.w3.org/2000/svg",
4136
- viewBox: "0 0 640 640",
4137
- height: "1.5em",
4138
- style: v({ transform: `rotate(${de(e.key)?.order === 1 ? 0 : 180}deg)` })
4139
- }, [...r[13] ||= [s("path", {
4140
- fill: "currentColor",
4141
- 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"
4142
- }, null, -1)]], 4))])),
4143
- ue(e.key) === -1 ? a("", !0) : (w(), o("span", ja, P(me(e.key)), 1))
4144
- ], 8, ka)) : (w(), o("span", Ma, P(e.label), 1)), e.filter ? (w(), i(ct, { key: 2 }, {
4145
- trigger: K(({ toggle: t }) => [s("button", {
4155
+ "aria-describedby": `${R(G)}-sort-desc-${String(e.key)}`,
4156
+ onClick: (t) => we(e, t.shiftKey)
4157
+ }, [c(P(e.label) + " ", 1), me(e.key) === -1 ? a("", !0) : (w(), o("span", Aa, [(w(), o("svg", {
4158
+ xmlns: "http://www.w3.org/2000/svg",
4159
+ viewBox: "0 0 640 640",
4160
+ height: "1.5em",
4161
+ style: v({ transform: `rotate(${he(e.key)?.order === 1 ? 0 : 180}deg)` })
4162
+ }, [...r[13] ||= [s("path", {
4163
+ fill: "currentColor",
4164
+ 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"
4165
+ }, null, -1)]], 4))]))], 8, ka)) : (w(), o("span", ja, P(e.label), 1)), e.filter ? (w(), i(ct, {
4166
+ key: 2,
4167
+ "aria-labelledby": `${R(G)}-filter-label-${String(e.key)}`
4168
+ }, {
4169
+ trigger: K(({ toggle: t, open: n }) => [s("button", {
4146
4170
  onClick: q(t, ["stop"]),
4147
- "aria-label": et(e) ? `Filter ${e.label} column (filtered)` : `Filter ${e.label} column`,
4148
- class: _(["g-filter-btn", { "g-active": et(e) }]),
4171
+ "aria-label": "Filter",
4172
+ "aria-describedby": `${R(G)}-filter-desc-${String(e.key)}`,
4173
+ "aria-expanded": n,
4174
+ class: _(["g-filter-btn", { "g-active": ot(e) }]),
4149
4175
  type: "button"
4150
- }, [...r[15] ||= [s("svg", {
4176
+ }, [...r[14] ||= [s("svg", {
4151
4177
  xmlns: "http://www.w3.org/2000/svg",
4152
4178
  viewBox: "0 0 640 640",
4153
4179
  height: "1.5em",
@@ -4155,12 +4181,12 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4155
4181
  }, [s("path", {
4156
4182
  fill: "currentColor",
4157
4183
  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"
4158
- })], -1)]], 10, Na)]),
4184
+ })], -1)]], 10, Ma)]),
4159
4185
  default: K(() => [e.filter.type === "select" ? (w(), i(Jt, {
4160
4186
  key: 0,
4161
- "model-value": ot(e),
4162
- "onUpdate:modelValue": (t) => st(e, t),
4163
- options: it(e),
4187
+ "model-value": pt(e),
4188
+ "onUpdate:modelValue": (t) => mt(e, t),
4189
+ options: dt(e),
4164
4190
  class: "g-filter-select",
4165
4191
  label: "Filter select",
4166
4192
  searchable: "",
@@ -4171,7 +4197,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4171
4197
  "onUpdate:modelValue",
4172
4198
  "options",
4173
4199
  "search-description"
4174
- ])) : e.filter.type === "search" ? (w(), o("div", Pa, [r[16] ||= s("span", {
4200
+ ])) : e.filter.type === "search" ? (w(), o("div", Na, [r[15] ||= s("span", {
4175
4201
  class: "g-filter-search-icon",
4176
4202
  "aria-hidden": "true"
4177
4203
  }, [s("svg", {
@@ -4184,29 +4210,29 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4184
4210
  })])], -1), s("input", {
4185
4211
  type: "search",
4186
4212
  class: "g-filter-search-input",
4187
- value: Qe(e),
4188
- onInput: (t) => $e(e, t.target.value),
4213
+ value: it(e),
4214
+ onInput: (t) => at(e, t.target.value),
4189
4215
  placeholder: e.filter.placeholder,
4190
4216
  "aria-label": `Search ${e.label}`
4191
- }, null, 40, Fa)])) : e.filter.type === "toggle" ? (w(), o("div", Ia, [s("div", La, [
4217
+ }, null, 40, Pa)])) : e.filter.type === "toggle" ? (w(), o("div", Fa, [s("div", Ia, [
4192
4218
  s("input", {
4193
4219
  type: "checkbox",
4194
- checked: Qe(e) === !0,
4195
- onChange: (t) => $e(e, t.target.checked),
4220
+ checked: it(e) === !0,
4221
+ onChange: (t) => at(e, t.target.checked),
4196
4222
  id: `${R(G)}-filter-${String(e.key)}`,
4197
4223
  "aria-describedby": e.filter.description ? `${R(G)}-filter-description-${String(e.key)}` : void 0
4198
- }, null, 40, Ra),
4199
- s("label", { for: `${R(G)}-filter-${String(e.key)}` }, P(e.filter.label), 9, za),
4224
+ }, null, 40, La),
4225
+ s("label", { for: `${R(G)}-filter-${String(e.key)}` }, P(e.filter.label), 9, Ra),
4200
4226
  e.filter.description ? (w(), o("span", {
4201
4227
  key: 0,
4202
4228
  class: "g-filter-description",
4203
4229
  id: `${R(G)}-filter-description-${String(e.key)}`
4204
- }, P(e.filter.description), 9, Ba)) : a("", !0)
4230
+ }, P(e.filter.description), 9, za)) : a("", !0)
4205
4231
  ])])) : e.filter.type === "multi-select" && e.filter.searchable ? (w(), i(Rr, {
4206
4232
  key: 3,
4207
- "model-value": lt(e),
4208
- "onUpdate:modelValue": (t) => ut(e, t),
4209
- options: it(e),
4233
+ "model-value": ht(e),
4234
+ "onUpdate:modelValue": (t) => gt(e, t),
4235
+ options: dt(e),
4210
4236
  label: "Include values",
4211
4237
  placeholder: e.filter.placeholder,
4212
4238
  "search-description": e.filter.searchDescription,
@@ -4217,50 +4243,50 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4217
4243
  "options",
4218
4244
  "placeholder",
4219
4245
  "search-description"
4220
- ])) : e.filter.type === "multi-select" ? (w(), o("div", Va, [l(Yr, {
4221
- "model-value": lt(e),
4222
- "onUpdate:modelValue": (t) => ut(e, t),
4223
- options: at(e),
4246
+ ])) : e.filter.type === "multi-select" ? (w(), o("div", Ba, [l(Yr, {
4247
+ "model-value": ht(e),
4248
+ "onUpdate:modelValue": (t) => gt(e, t),
4249
+ options: ft(e),
4224
4250
  label: "Include values"
4225
4251
  }, null, 8, [
4226
4252
  "model-value",
4227
4253
  "onUpdate:modelValue",
4228
4254
  "options"
4229
- ]), et(e) ? (w(), i(Q, {
4255
+ ]), ot(e) ? (w(), i(Q, {
4230
4256
  key: 0,
4231
4257
  class: "clear-multiselect-btn",
4232
4258
  theme: "accent",
4233
4259
  size: "small",
4234
- onClick: (t) => $e(e, [])
4260
+ onClick: (t) => at(e, [])
4235
4261
  }, {
4236
- default: K(() => [...r[17] ||= [c(" Clear ", -1)]]),
4262
+ default: K(() => [...r[16] ||= [c(" Clear ", -1)]]),
4237
4263
  _: 1
4238
4264
  }, 8, ["onClick"])) : a("", !0)])) : a("", !0)]),
4239
4265
  _: 2
4240
- }, 1024)) : a("", !0)]), t.resizableColumns ? (w(), o("div", {
4266
+ }, 1032, ["aria-labelledby"])) : a("", !0)]), t.resizableColumns ? (w(), o("div", {
4241
4267
  key: 0,
4242
4268
  "data-column-key": String(e.key),
4243
- class: _(["g-column-resize-handle", { "g-column-resize-handle--active": J.value?.key === e.key }]),
4269
+ class: _(["g-column-resize-handle", { "g-column-resize-handle--active": X.value?.key === e.key }]),
4244
4270
  role: "separator",
4245
4271
  tabindex: "0",
4246
4272
  "aria-orientation": "vertical",
4247
- "aria-controls": ae,
4273
+ "aria-controls": oe,
4248
4274
  "aria-label": `Resize ${e.label} column`,
4249
4275
  "aria-valuemin": 50,
4250
- "aria-valuemax": Ae(e.key),
4251
- "aria-valuenow": Le(e.key),
4252
- "aria-valuetext": Re(e.key),
4276
+ "aria-valuemax": Fe(e.key),
4277
+ "aria-valuenow": Ue(e.key),
4278
+ "aria-valuetext": We(e.key),
4253
4279
  onClick: r[0] ||= q(() => {}, ["stop", "prevent"]),
4254
- onKeydown: (t) => Fe(t, e.key),
4255
- onPointerdown: (t) => Pe(t, e.key)
4256
- }, null, 42, Ha)) : a("", !0)], 10, Da))), 128))])]),
4257
- t.data.length === 0 ? (w(), o("tbody", Ua, [s("tr", Wa, [s("td", {
4280
+ onKeydown: (t) => Ve(t, e.key),
4281
+ onPointerdown: (t) => Be(t, e.key)
4282
+ }, null, 42, Va)) : a("", !0)], 10, Da))), 128))])]),
4283
+ t.data.length === 0 ? (w(), o("tbody", Ha, [s("tr", Ua, [s("td", {
4258
4284
  class: "g-table-empty",
4259
- colspan: Be.value.length + +!!t.bulkSelectionEnabled
4260
- }, [A(n.$slots, "empty")], 8, Ga)])])) : (w(), i(fr, {
4285
+ colspan: Ke.value.length + +!!t.bulkSelectionEnabled
4286
+ }, [A(n.$slots, "empty")], 8, Wa)])])) : (w(), i(fr, {
4261
4287
  key: 1,
4262
4288
  data: t.data,
4263
- columns: Be.value,
4289
+ columns: Ke.value,
4264
4290
  "group-by": t.groupBy,
4265
4291
  "group-render": t.groupRender,
4266
4292
  "row-clickable": t.rowClickable,
@@ -4286,8 +4312,11 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4286
4312
  "table-id",
4287
4313
  "change-tracker"
4288
4314
  ]))
4289
- ], 10, ba)], 512),
4290
- t.bulkSelectionEnabled && m.value.length > 0 ? (w(), o("div", Ka, [s("span", qa, P(m.value.length) + " row" + P(m.value.length === 1 ? "" : "s") + " selected", 1), s("ul", Ja, [(w(!0), o(e, null, k(t.bulkActions, (e) => (w(), o("li", { key: e.id }, [l(Q, {
4315
+ ], 10, ya), s("div", Ga, [(w(!0), o(e, null, k(Ke.value, (t) => (w(), o(e, { key: t.key }, [t.sortable ? (w(), o("span", {
4316
+ key: 0,
4317
+ id: `${R(G)}-sort-desc-${String(t.key)}`
4318
+ }, P(ve(t.key)), 9, Ka)) : a("", !0), t.filter ? (w(), o(e, { key: 1 }, [s("span", { id: `${R(G)}-filter-desc-${String(t.key)}` }, P(t.label) + " column" + P(ot(t) ? ", filtered" : ""), 9, qa), s("span", { id: `${R(G)}-filter-label-${String(t.key)}` }, "Filter " + P(t.label) + " column", 9, Ja)], 64)) : a("", !0)], 64))), 128))])], 512),
4319
+ t.bulkSelectionEnabled && m.value.length > 0 ? (w(), o("div", Ya, [s("span", Xa, P(m.value.length) + " row" + P(m.value.length === 1 ? "" : "s") + " selected", 1), s("ul", Za, [(w(!0), o(e, null, k(t.bulkActions, (e) => (w(), o("li", { key: e.id }, [l(Q, {
4291
4320
  theme: e.theme || "accent",
4292
4321
  onClick: (t) => z(e.id),
4293
4322
  size: "small"
@@ -4295,9 +4324,9 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4295
4324
  default: K(() => [c(P(e.label) + " " + P(m.value.length) + " row" + P(m.value.length === 1 ? "" : "s"), 1)]),
4296
4325
  _: 2
4297
4326
  }, 1032, ["theme", "onClick"])]))), 128))])])) : a("", !0)
4298
- ]));
4327
+ ])], 4));
4299
4328
  }
4300
- }), Xa = ["id"], Za = { class: "g-modal-inner" }, Qa = { class: "g-modal-header" }, $a = ["id"], eo = ["id"], to = /* @__PURE__ */ u({
4329
+ }), $a = ["id"], eo = { class: "g-modal-inner" }, to = { class: "g-modal-header" }, no = ["id"], ro = ["id"], io = /* @__PURE__ */ u({
4301
4330
  __name: "GModal",
4302
4331
  props: {
4303
4332
  label: {},
@@ -4341,12 +4370,12 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4341
4370
  ref_key: "dialog",
4342
4371
  ref: f,
4343
4372
  style: { zIndex: R(b) }
4344
- }), [s("div", Za, [s("div", Qa, [e.hiddenLabel ? a("", !0) : (w(), o("h2", {
4373
+ }), [s("div", eo, [s("div", to, [e.hiddenLabel ? a("", !0) : (w(), o("h2", {
4345
4374
  key: 0,
4346
4375
  id: "modal-label-" + R(m),
4347
4376
  class: "g-modal-label",
4348
4377
  tabindex: "-1"
4349
- }, P(e.label), 9, $a)), s("button", {
4378
+ }, P(e.label), 9, no)), s("button", {
4350
4379
  class: "g-modal-close",
4351
4380
  onClick: T,
4352
4381
  "aria-label": "Close"
@@ -4361,36 +4390,36 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4361
4390
  })], -1)]])]), s("div", {
4362
4391
  id: "modal-description-" + R(m),
4363
4392
  class: "g-modal-content"
4364
- }, [A(r.$slots, "default")], 8, eo)])], 16, Xa)]),
4393
+ }, [A(r.$slots, "default")], 8, ro)])], 16, $a)]),
4365
4394
  _: 3
4366
4395
  })]));
4367
4396
  }
4368
- }), no = /* @__PURE__ */ u({
4397
+ }), ao = /* @__PURE__ */ u({
4369
4398
  __name: "GDetailList",
4370
4399
  props: { variant: { default: "grid" } },
4371
4400
  setup(e) {
4372
4401
  let t = e;
4373
4402
  return (e, n) => (w(), o("dl", { class: _(["g-detail-list", `g-detail-list--${t.variant}`]) }, [A(e.$slots, "default")], 2));
4374
4403
  }
4375
- }), ro = { class: "g-detail-list-item" }, io = { class: "g-detail-list-item__label" }, ao = { class: "g-detail-list-item__value" }, oo = /* @__PURE__ */ u({
4404
+ }), oo = { class: "g-detail-list-item" }, so = { class: "g-detail-list-item__label" }, co = { class: "g-detail-list-item__value" }, lo = /* @__PURE__ */ u({
4376
4405
  __name: "GDetailListItem",
4377
4406
  props: { label: {} },
4378
4407
  setup(e) {
4379
- return (t, n) => (w(), o("div", ro, [s("dt", io, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])]), s("dd", ao, [A(t.$slots, "default")])]));
4408
+ return (t, n) => (w(), o("div", oo, [s("dt", so, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])]), s("dd", co, [A(t.$slots, "default")])]));
4380
4409
  }
4381
- }), so = {
4410
+ }), uo = {
4382
4411
  key: 0,
4383
4412
  class: "g-scroll-lock-overlay"
4384
- }, co = /* @__PURE__ */ u({
4413
+ }, fo = /* @__PURE__ */ u({
4385
4414
  __name: "GOverlay",
4386
4415
  setup(e) {
4387
4416
  let { hasScrollLock: t } = Je();
4388
4417
  return (e, r) => (w(), i(n, { name: "g-fade" }, {
4389
- default: K(() => [R(t) ? (w(), o("div", so)) : a("", !0)]),
4418
+ default: K(() => [R(t) ? (w(), o("div", uo)) : a("", !0)]),
4390
4419
  _: 1
4391
4420
  }));
4392
4421
  }
4393
- }), lo = { class: "popover-content" }, uo = { class: "year-dropdown" }, fo = { class: "month-selector" }, po = /* @__PURE__ */ u({
4422
+ }), po = { class: "popover-content" }, mo = { class: "year-dropdown" }, ho = { class: "month-selector" }, go = /* @__PURE__ */ u({
4394
4423
  __name: "GTermSelectorControl",
4395
4424
  props: /*@__PURE__*/ m({
4396
4425
  termYears: { default: () => ["2026"] },
@@ -4411,7 +4440,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4411
4440
  emits: ["update:modelValue"],
4412
4441
  setup(e) {
4413
4442
  let t = V(e, "modelValue");
4414
- return (n, r) => (w(), o("div", lo, [s("div", uo, [l(Jt, {
4443
+ return (n, r) => (w(), o("div", po, [s("div", mo, [l(Jt, {
4415
4444
  modelValue: t.value.year,
4416
4445
  "onUpdate:modelValue": r[0] ||= (e) => t.value.year = e,
4417
4446
  options: e.termYears,
@@ -4420,7 +4449,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4420
4449
  "modelValue",
4421
4450
  "options",
4422
4451
  "label"
4423
- ])]), s("div", fo, [l(Ct, {
4452
+ ])]), s("div", ho, [l(Ct, {
4424
4453
  modelValue: t.value.name,
4425
4454
  "onUpdate:modelValue": r[1] ||= (e) => t.value.name = e,
4426
4455
  options: e.termNames,
@@ -4432,7 +4461,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4432
4461
  "label"
4433
4462
  ])])]));
4434
4463
  }
4435
- }), mo = { class: "g-term-selector" }, ho = { class: "g-term-label" }, go = /* @__PURE__ */ u({
4464
+ }), _o = { class: "g-term-selector" }, vo = { class: "g-term-label" }, yo = /* @__PURE__ */ u({
4436
4465
  __name: "GTermSelector",
4437
4466
  props: /*@__PURE__*/ m({
4438
4467
  heading: { default: "Period Selection" },
@@ -4454,7 +4483,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4454
4483
  emits: ["update:modelValue"],
4455
4484
  setup(e) {
4456
4485
  let t = V(e, "modelValue"), n = `${B()}-heading`;
4457
- return (r, i) => (w(), o("div", mo, [l(ct, { "aria-labelledby": n }, {
4486
+ return (r, i) => (w(), o("div", _o, [l(ct, { "aria-labelledby": n }, {
4458
4487
  trigger: K(({ toggle: e, open: n, popoverId: r }) => [l(Q, {
4459
4488
  class: "g-term-selector-button",
4460
4489
  theme: "none",
@@ -4470,7 +4499,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4470
4499
  xmlns: "http://www.w3.org/2000/svg",
4471
4500
  viewBox: "0 0 640 640"
4472
4501
  }, [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),
4473
- s("span", ho, P(t.value?.name) + " " + P(t.value?.year), 1),
4502
+ s("span", vo, P(t.value?.name) + " " + P(t.value?.year), 1),
4474
4503
  i[2] ||= s("span", { class: "g-caret" }, [s("svg", {
4475
4504
  role: "none",
4476
4505
  xmlns: "http://www.w3.org/2000/svg",
@@ -4487,18 +4516,18 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4487
4516
  id: n,
4488
4517
  class: "g-popover-title",
4489
4518
  tabindex: "-1"
4490
- }, P(e.heading), 1), l(po, h(r.$props, {
4519
+ }, P(e.heading), 1), l(go, h(r.$props, {
4491
4520
  modelValue: t.value,
4492
4521
  "onUpdate:modelValue": i[0] ||= (e) => t.value = e
4493
4522
  }), null, 16, ["modelValue"])]),
4494
4523
  _: 1
4495
4524
  })]));
4496
4525
  }
4497
- }), _o = { class: "g-user-menu" }, vo = [
4526
+ }), bo = { class: "g-user-menu" }, xo = [
4498
4527
  "aria-label",
4499
4528
  "aria-expanded",
4500
4529
  "onClick"
4501
- ], yo = { class: "g-user-menu__popover" }, bo = { class: "g-user-menu__list" }, xo = /* @__PURE__ */ u({
4530
+ ], So = { class: "g-user-menu__popover" }, Co = { class: "g-user-menu__list" }, wo = /* @__PURE__ */ u({
4502
4531
  __name: "GUserMenu",
4503
4532
  props: {
4504
4533
  initials: {},
@@ -4513,7 +4542,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4513
4542
  e.target?.closest("a") && (r.value = !1);
4514
4543
  }
4515
4544
  let u = H();
4516
- return (d, f) => (w(), o("div", _o, [l(ct, {
4545
+ return (d, f) => (w(), o("div", bo, [l(ct, {
4517
4546
  modelValue: r.value,
4518
4547
  "onUpdate:modelValue": f[0] ||= (e) => r.value = e,
4519
4548
  minimal: ""
@@ -4525,8 +4554,8 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4525
4554
  "aria-expanded": r.value,
4526
4555
  "aria-haspopup": "menu",
4527
4556
  onClick: e
4528
- }, P(t.initials), 13, vo)]),
4529
- default: K(() => [s("div", yo, [s("h2", {
4557
+ }, P(t.initials), 13, xo)]),
4558
+ default: K(() => [s("div", So, [s("h2", {
4530
4559
  id: n,
4531
4560
  ref_key: "emailHeading",
4532
4561
  ref: a,
@@ -4536,11 +4565,11 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4536
4565
  class: "g-user-menu__nav",
4537
4566
  "aria-labelledby": n,
4538
4567
  onClick: c
4539
- }, [s("ul", bo, [(w(!0), o(e, null, k(u.default(), (e, t) => (w(), o("li", { key: t }, [(w(), i(j(e)))]))), 128))])])])]),
4568
+ }, [s("ul", Co, [(w(!0), o(e, null, k(u.default(), (e, t) => (w(), o("li", { key: t }, [(w(), i(j(e)))]))), 128))])])])]),
4540
4569
  _: 1
4541
4570
  }, 8, ["modelValue"])]));
4542
4571
  }
4543
- }), So = /* @__PURE__ */ u({
4572
+ }), To = /* @__PURE__ */ u({
4544
4573
  __name: "GCurrencyInput",
4545
4574
  props: /*@__PURE__*/ m({
4546
4575
  label: { default: void 0 },
@@ -4591,7 +4620,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4591
4620
  "form-key"
4592
4621
  ]));
4593
4622
  }
4594
- }), Co = /* @__PURE__ */ u({
4623
+ }), Eo = /* @__PURE__ */ u({
4595
4624
  __name: "GEmailInput",
4596
4625
  props: /*@__PURE__*/ m({
4597
4626
  label: { default: void 0 },
@@ -4636,13 +4665,13 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4636
4665
  "instructions"
4637
4666
  ]));
4638
4667
  }
4639
- }), wo = ["for"], To = {
4668
+ }), Do = ["for"], Oo = {
4640
4669
  key: 0,
4641
4670
  class: "g-file-input-required"
4642
- }, Eo = {
4671
+ }, ko = {
4643
4672
  key: 0,
4644
4673
  class: "g-file-input-box-header"
4645
- }, Do = ["id"], Oo = [
4674
+ }, Ao = ["id"], jo = [
4646
4675
  "id",
4647
4676
  "disabled",
4648
4677
  "required",
@@ -4651,11 +4680,11 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4651
4680
  "aria-invalid",
4652
4681
  "aria-describedby",
4653
4682
  "aria-errormessage"
4654
- ], ko = {
4683
+ ], Mo = {
4655
4684
  key: 1,
4656
4685
  class: "g-file-input-pills",
4657
4686
  "aria-label": "Selected files"
4658
- }, Ao = /* @__PURE__ */ u({
4687
+ }, No = /* @__PURE__ */ u({
4659
4688
  inheritAttrs: !1,
4660
4689
  __name: "GFileInput",
4661
4690
  props: /*@__PURE__*/ m({
@@ -4712,12 +4741,12 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4712
4741
  key: 0,
4713
4742
  for: R(d),
4714
4743
  class: "g-file-input-label"
4715
- }, [c(P(t.label) + " ", 1), t.required ? (w(), o("span", To, "*")) : a("", !0)], 8, wo)) : a("", !0),
4744
+ }, [c(P(t.label) + " ", 1), t.required ? (w(), o("span", Oo, "*")) : a("", !0)], 8, Do)) : a("", !0),
4716
4745
  s("div", { class: _(["g-file-input-box", { "g-file-input-box--disabled": t.disabled }]) }, [
4717
- t.instructions ? (w(), o("div", Eo, [s("span", {
4746
+ t.instructions ? (w(), o("div", ko, [s("span", {
4718
4747
  id: "instructions-" + R(d),
4719
4748
  class: "g-file-input-instructions"
4720
- }, P(t.instructions), 9, Do)])) : a("", !0),
4749
+ }, P(t.instructions), 9, Ao)])) : a("", !0),
4721
4750
  s("input", {
4722
4751
  id: R(d),
4723
4752
  type: "file",
@@ -4730,8 +4759,8 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4730
4759
  "aria-describedby": t.instructions ? "instructions-" + R(d) : void 0,
4731
4760
  "aria-errormessage": y.value ? "error-message-" + R(d) : void 0,
4732
4761
  onChange: g
4733
- }, null, 40, Oo),
4734
- t.multiple && b.value.length > 0 ? (w(), o("ul", ko, [(w(!0), o(e, null, k(b.value, (e) => (w(), o("li", {
4762
+ }, null, 40, jo),
4763
+ t.multiple && b.value.length > 0 ? (w(), o("ul", Mo, [(w(!0), o(e, null, k(b.value, (e) => (w(), o("li", {
4735
4764
  key: e,
4736
4765
  class: "g-file-input-pill"
4737
4766
  }, [r[0] ||= s("svg", {
@@ -4747,7 +4776,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4747
4776
  }, null, 8, ["errors", "id"])
4748
4777
  ], 2));
4749
4778
  }
4750
- }), jo = /* @__PURE__ */ u({
4779
+ }), Po = /* @__PURE__ */ u({
4751
4780
  __name: "GDateInput",
4752
4781
  props: /*@__PURE__*/ m({
4753
4782
  label: { default: void 0 },
@@ -4795,21 +4824,21 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4795
4824
  "form-key"
4796
4825
  ]));
4797
4826
  }
4798
- }), Mo = { class: "g-date-range-input" }, No = {
4827
+ }), Fo = { class: "g-date-range-input" }, Io = {
4799
4828
  key: 0,
4800
4829
  class: "g-date-range-input__label"
4801
- }, Po = {
4830
+ }, Lo = {
4802
4831
  key: 0,
4803
4832
  class: "g-date-range-input__required",
4804
4833
  "aria-hidden": "true"
4805
- }, Fo = {
4834
+ }, Ro = {
4806
4835
  key: 1,
4807
4836
  class: "g-date-range-input__instructions"
4808
- }, Io = { class: "g-date-range-input__fields" }, Lo = {
4837
+ }, zo = { class: "g-date-range-input__fields" }, Bo = {
4809
4838
  key: 2,
4810
4839
  class: "g-date-range-input__errors",
4811
4840
  role: "alert"
4812
- }, Ro = /* @__PURE__ */ u({
4841
+ }, Vo = /* @__PURE__ */ u({
4813
4842
  __name: "GDateRangeInput",
4814
4843
  props: /*@__PURE__*/ m({
4815
4844
  label: { default: void 0 },
@@ -4849,10 +4878,10 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4849
4878
  };
4850
4879
  }), W(r, (e) => {
4851
4880
  e.start !== i.value && (i.value = e.start), e.end !== u.value && (u.value = e.end);
4852
- }, { deep: !0 }), (t, r) => (w(), o("div", Mo, [
4853
- n.label ? (w(), o("div", No, [c(P(n.label), 1), n.required ? (w(), o("span", Po, " *")) : a("", !0)])) : a("", !0),
4854
- n.instructions ? (w(), o("div", Fo, P(n.instructions), 1)) : a("", !0),
4855
- s("div", Io, [l(jo, {
4881
+ }, { deep: !0 }), (t, r) => (w(), o("div", Fo, [
4882
+ n.label ? (w(), o("div", Io, [c(P(n.label), 1), n.required ? (w(), o("span", Lo, " *")) : a("", !0)])) : a("", !0),
4883
+ n.instructions ? (w(), o("div", Ro, P(n.instructions), 1)) : a("", !0),
4884
+ s("div", zo, [l(Po, {
4856
4885
  modelValue: i.value,
4857
4886
  "onUpdate:modelValue": r[0] ||= (e) => i.value = e,
4858
4887
  label: n.startLabel,
@@ -4864,7 +4893,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4864
4893
  "label",
4865
4894
  "disabled",
4866
4895
  "required"
4867
- ]), l(jo, {
4896
+ ]), l(Po, {
4868
4897
  modelValue: u.value,
4869
4898
  "onUpdate:modelValue": r[1] ||= (e) => u.value = e,
4870
4899
  label: n.endLabel,
@@ -4877,13 +4906,13 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4877
4906
  "disabled",
4878
4907
  "required"
4879
4908
  ])]),
4880
- R(d).length > 0 ? (w(), o("div", Lo, [(w(!0), o(e, null, k(R(d), (e, t) => (w(), o("div", {
4909
+ R(d).length > 0 ? (w(), o("div", Bo, [(w(!0), o(e, null, k(R(d), (e, t) => (w(), o("div", {
4881
4910
  key: t,
4882
4911
  class: "g-date-range-input__error"
4883
4912
  }, P(e), 1))), 128))])) : a("", !0)
4884
4913
  ]));
4885
4914
  }
4886
- }), zo = ["action", "method"], Bo = /* @__PURE__ */ u({
4915
+ }), Ho = ["action", "method"], Uo = /* @__PURE__ */ u({
4887
4916
  __name: "GForm",
4888
4917
  props: /*@__PURE__*/ m({
4889
4918
  action: { default: void 0 },
@@ -4923,9 +4952,9 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4923
4952
  hasErrors: R(s).hasErrors.value,
4924
4953
  values: R(s).values.value,
4925
4954
  errors: R(s).errors.value
4926
- })], 40, zo));
4955
+ })], 40, Ho));
4927
4956
  }
4928
- }), Vo = /* @__PURE__ */ u({
4957
+ }), Wo = /* @__PURE__ */ u({
4929
4958
  __name: "GSubmitButton",
4930
4959
  props: {
4931
4960
  disabled: {
@@ -4948,11 +4977,11 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4948
4977
  _: 3
4949
4978
  }, 8, ["disabled", "variant"]));
4950
4979
  }
4951
- }), Ho = ["for"], Uo = {
4980
+ }), Go = ["for"], Ko = {
4952
4981
  key: 0,
4953
4982
  class: "g-textarea-required",
4954
4983
  "aria-hidden": "true"
4955
- }, Wo = ["id"], Go = [
4984
+ }, qo = ["id"], Jo = [
4956
4985
  "value",
4957
4986
  "placeholder",
4958
4987
  "disabled",
@@ -4961,11 +4990,11 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4961
4990
  "rows",
4962
4991
  "maxlength",
4963
4992
  "aria-invalid"
4964
- ], Ko = {
4993
+ ], Yo = {
4965
4994
  key: 2,
4966
4995
  class: "g-textarea-char-count",
4967
4996
  "aria-live": "polite"
4968
- }, qo = /* @__PURE__ */ u({
4997
+ }, Xo = /* @__PURE__ */ u({
4969
4998
  inheritAttrs: !1,
4970
4999
  __name: "GTextarea",
4971
5000
  props: /*@__PURE__*/ m({
@@ -5039,12 +5068,12 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
5039
5068
  key: 0,
5040
5069
  for: m.value,
5041
5070
  class: "g-textarea-label"
5042
- }, [c(P(n.label), 1), n.required ? (w(), o("span", Uo, " *")) : a("", !0)], 8, Ho)) : a("", !0),
5071
+ }, [c(P(n.label), 1), n.required ? (w(), o("span", Ko, " *")) : a("", !0)], 8, Go)) : a("", !0),
5043
5072
  t.$slots.instructions || e.instructions ? (w(), o("div", {
5044
5073
  key: 1,
5045
5074
  id: "instructions-" + R(u),
5046
5075
  class: "g-textarea-instructions"
5047
- }, [A(t.$slots, "instructions", {}, () => [c(P(e.instructions), 1)])], 8, Wo)) : a("", !0),
5076
+ }, [A(t.$slots, "instructions", {}, () => [c(P(e.instructions), 1)])], 8, qo)) : a("", !0),
5048
5077
  s("textarea", h({
5049
5078
  ref: "textareaEl",
5050
5079
  value: i.value ?? "",
@@ -5065,15 +5094,15 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
5065
5094
  onInput: T,
5066
5095
  onBlur: E,
5067
5096
  onPaste: D
5068
- }), null, 16, Go),
5069
- n.maxlength === void 0 ? a("", !0) : (w(), o("div", Ko, P((i.value ?? "").length) + " / " + P(n.maxlength), 1)),
5097
+ }), null, 16, Jo),
5098
+ n.maxlength === void 0 ? a("", !0) : (w(), o("div", Yo, P((i.value ?? "").length) + " / " + P(n.maxlength), 1)),
5070
5099
  l(Me, {
5071
5100
  errors: R(v),
5072
5101
  id: "error-message-" + R(u)
5073
5102
  }, null, 8, ["errors", "id"])
5074
5103
  ], 2));
5075
5104
  }
5076
- }), Jo = { class: "g-toggle-wrapper" }, Yo = ["for"], Xo = [
5105
+ }), Zo = { class: "g-toggle-wrapper" }, Qo = ["for"], $o = [
5077
5106
  "id",
5078
5107
  "checked",
5079
5108
  "disabled",
@@ -5081,7 +5110,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
5081
5110
  "aria-describedby",
5082
5111
  "aria-invalid",
5083
5112
  "aria-errormessage"
5084
- ], Zo = ["id"], Qo = /* @__PURE__ */ u({
5113
+ ], es = ["id"], ts = /* @__PURE__ */ u({
5085
5114
  __name: "GToggle",
5086
5115
  props: /*@__PURE__*/ m({
5087
5116
  label: {},
@@ -5116,11 +5145,11 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
5116
5145
  n.disabled || (e.key === "n" || e.key === "N" || e.key === "ArrowLeft" ? (l(!1), e.preventDefault()) : (e.key === "y" || e.key === "Y" || e.key === "ArrowRight") && (l(!0), e.preventDefault()));
5117
5146
  }
5118
5147
  let p = B(), m = B();
5119
- return (t, n) => (w(), o("div", Jo, [s("div", { class: _(["g-toggle-control", { "g-external-label": e.externalLabel }]) }, [e.externalLabel ? a("", !0) : (w(), o("label", {
5148
+ return (t, n) => (w(), o("div", Zo, [s("div", { class: _(["g-toggle-control", { "g-external-label": e.externalLabel }]) }, [e.externalLabel ? a("", !0) : (w(), o("label", {
5120
5149
  key: 0,
5121
5150
  class: "g-label",
5122
5151
  for: R(m)
5123
- }, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])], 8, Yo)), s("div", { class: _(["g-toggle", { "g-has-error": e.error }]) }, [s("div", { class: _(["g-toggle-track", [r.value ? "g-right" : "g-left", { "g-disabled": e.disabled }]]) }, [s("span", {
5152
+ }, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])], 8, Qo)), s("div", { class: _(["g-toggle", { "g-has-error": e.error }]) }, [s("div", { class: _(["g-toggle-track", [r.value ? "g-right" : "g-left", { "g-disabled": e.disabled }]]) }, [s("span", {
5124
5153
  class: _(["g-toggle-thumb", r.value ? "g-right" : "g-left"]),
5125
5154
  "aria-hidden": "true"
5126
5155
  }, null, 2), s("input", {
@@ -5134,34 +5163,34 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
5134
5163
  "aria-errormessage": e.error ? R(p) + "-error" : void 0,
5135
5164
  onChange: d,
5136
5165
  onKeydown: f
5137
- }, null, 40, Xo)], 2)], 2)], 2), e.error ? (w(), o("div", {
5166
+ }, null, 40, $o)], 2)], 2)], 2), e.error ? (w(), o("div", {
5138
5167
  key: 0,
5139
5168
  id: `${R(p)}-error`,
5140
5169
  class: "g-form-error",
5141
5170
  role: "alert",
5142
5171
  "aria-atomic": "true"
5143
- }, P(e.error), 9, Zo)) : a("", !0)]));
5172
+ }, P(e.error), 9, es)) : a("", !0)]));
5144
5173
  }
5145
- }), $o = "g-route-announcer";
5146
- function es(e) {
5174
+ }), ns = "g-route-announcer";
5175
+ function rs(e) {
5147
5176
  return document.getElementById(e) ?? document.querySelector("main");
5148
5177
  }
5149
- function ts(e = "main-content", t = !0) {
5178
+ function is(e = "main-content", t = !0) {
5150
5179
  if (typeof document > "u") return !1;
5151
- let n = es(e);
5180
+ let n = rs(e);
5152
5181
  if (!n) return !1;
5153
5182
  let r = t ? n.querySelector("h1") : null;
5154
5183
  for (let e of [r, n]) if (e && (e.hasAttribute("tabindex") || e.setAttribute("tabindex", "-1"), e.focus({ preventScroll: t }), document.activeElement === e)) return !0;
5155
5184
  return !1;
5156
5185
  }
5157
- function ns() {
5158
- let e = document.getElementById($o);
5186
+ function as() {
5187
+ let e = document.getElementById(ns);
5159
5188
  if (e) return {
5160
5189
  el: e,
5161
5190
  created: !1
5162
5191
  };
5163
5192
  let t = document.createElement("div");
5164
- return t.id = $o, t.setAttribute("aria-live", "polite"), t.setAttribute("aria-atomic", "true"), Object.assign(t.style, {
5193
+ return t.id = ns, t.setAttribute("aria-live", "polite"), t.setAttribute("aria-atomic", "true"), Object.assign(t.style, {
5165
5194
  position: "absolute",
5166
5195
  width: "1px",
5167
5196
  height: "1px",
@@ -5176,10 +5205,10 @@ function ns() {
5176
5205
  created: !0
5177
5206
  };
5178
5207
  }
5179
- function rs() {
5208
+ function os() {
5180
5209
  return new Promise((e) => requestAnimationFrame(() => e()));
5181
5210
  }
5182
- function is(e, t = {}) {
5211
+ function ss(e, t = {}) {
5183
5212
  let n = O(""), { mainId: r = "main-content", isNewPage: i = (e, t) => e.path !== t.path, focus: a = !0, ready: o, message: s = (e, t) => t ? `Navigated to ${t}` : "" } = t;
5184
5213
  if (typeof window > "u") return {
5185
5214
  message: D(n),
@@ -5188,7 +5217,7 @@ function is(e, t = {}) {
5188
5217
  };
5189
5218
  let c = null, l, u = 0;
5190
5219
  function d(e) {
5191
- n.value = e, c ??= ns();
5220
+ n.value = e, c ??= as();
5192
5221
  let t = c.el;
5193
5222
  t.textContent = "", clearTimeout(l), l = setTimeout(() => {
5194
5223
  t.textContent = e;
@@ -5197,9 +5226,9 @@ function is(e, t = {}) {
5197
5226
  let p = e.afterEach(async (e, t, n) => {
5198
5227
  if (n || !t.matched?.length || !i(e, t)) return;
5199
5228
  let c = ++u, l = document.activeElement;
5200
- if (await g(), await rs(), o && (await o(e, t), await g(), await rs()), c !== u) return;
5201
- let f = typeof a == "function" ? a(e, t) : a, p = document.activeElement, m = !!p && p !== l && !!es(r)?.contains(p);
5202
- f && !e.hash && !m && ts(r);
5229
+ if (await g(), await os(), o && (await o(e, t), await g(), await os()), c !== u) return;
5230
+ let f = typeof a == "function" ? a(e, t) : a, p = document.activeElement, m = !!p && p !== l && !!rs(r)?.contains(p);
5231
+ f && !e.hash && !m && is(r);
5203
5232
  let h = s(e, document.title);
5204
5233
  h && d(h);
5205
5234
  });
@@ -5214,7 +5243,7 @@ function is(e, t = {}) {
5214
5243
  }
5215
5244
  //#endregion
5216
5245
  //#region src/components/GSkipLink.vue?vue&type=script&setup=true&lang.ts
5217
- var as = ["href"], os = /*@__PURE__*/ u({
5246
+ var cs = ["href"], ls = /*@__PURE__*/ u({
5218
5247
  __name: "GSkipLink",
5219
5248
  props: {
5220
5249
  target: { default: "main-content" },
@@ -5223,19 +5252,19 @@ var as = ["href"], os = /*@__PURE__*/ u({
5223
5252
  setup(e) {
5224
5253
  let t = e;
5225
5254
  function n(e) {
5226
- ts(t.target, !1) && e.preventDefault();
5255
+ is(t.target, !1) && e.preventDefault();
5227
5256
  }
5228
5257
  return (e, r) => (w(), o("a", {
5229
5258
  class: "g-skip-link",
5230
5259
  href: `#${t.target}`,
5231
5260
  onClick: n
5232
- }, [A(e.$slots, "default", {}, () => [c(P(t.label), 1)], !0)], 8, as));
5261
+ }, [A(e.$slots, "default", {}, () => [c(P(t.label), 1)], !0)], 8, cs));
5233
5262
  }
5234
- }), ss = (e, t) => {
5263
+ }), us = (e, t) => {
5235
5264
  let n = e.__vccOpts || e;
5236
5265
  for (let [e, r] of t) n[e] = r;
5237
5266
  return n;
5238
- }, cs = /*#__PURE__*/ ss(os, [["__scopeId", "data-v-1d350630"]]), ls = ["id"], us = /*#__PURE__*/ ss(/* @__PURE__ */ u({
5267
+ }, ds = /*#__PURE__*/ us(ls, [["__scopeId", "data-v-1d350630"]]), fs = ["id"], ps = /*#__PURE__*/ us(/* @__PURE__ */ u({
5239
5268
  __name: "GMain",
5240
5269
  props: { id: { default: "main-content" } },
5241
5270
  setup(e) {
@@ -5244,12 +5273,12 @@ var as = ["href"], os = /*@__PURE__*/ u({
5244
5273
  id: t.id,
5245
5274
  class: "g-main",
5246
5275
  tabindex: "-1"
5247
- }, [A(e.$slots, "default", {}, void 0, !0)], 8, ls));
5276
+ }, [A(e.$slots, "default", {}, void 0, !0)], 8, fs));
5248
5277
  }
5249
5278
  }), [["__scopeId", "data-v-84dc2f3f"]]);
5250
5279
  //#endregion
5251
5280
  //#region src/compose/useActiveLink.ts
5252
- function ds(e, t, n) {
5281
+ function ms(e, t, n) {
5253
5282
  let r = [
5254
5283
  0,
5255
5284
  .25,
@@ -5266,8 +5295,8 @@ function ds(e, t, n) {
5266
5295
  }, {
5267
5296
  immediate: !0,
5268
5297
  flush: "post"
5269
- }), ce(e, s, { childList: !0 });
5270
- let { stop: c } = Z(o, (e) => {
5298
+ }), Z(e, s, { childList: !0 });
5299
+ let { stop: c } = oe(o, (e) => {
5271
5300
  let t = o.value[o.value.length - 1];
5272
5301
  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);
5273
5302
  let r = null, i = 0;
@@ -5286,8 +5315,8 @@ function ds(e, t, n) {
5286
5315
  }
5287
5316
  //#endregion
5288
5317
  //#region src/compose/useSidebar.ts
5289
- function fs(e = "(max-width: 800px)") {
5290
- let t = B(), n = O(!1), r = se(e, { ssrWidth: 1e3 });
5318
+ function hs(e = "(max-width: 800px)") {
5319
+ let t = B(), n = O(!1), r = ce(e, { ssrWidth: 1e3 });
5291
5320
  function i(e) {
5292
5321
  if (!r.value || !n.value) return;
5293
5322
  let i = e.target, a = document.getElementById(`${t}-sidebar`), o = document.getElementById(`${t}-hamburger`);
@@ -5317,41 +5346,41 @@ function fs(e = "(max-width: 800px)") {
5317
5346
  }
5318
5347
  //#endregion
5319
5348
  //#region src/compose/usePaging.ts
5320
- function ps(e) {
5349
+ function gs(e) {
5321
5350
  let t = /* @__PURE__ */ new Set();
5322
5351
  return (e ?? []).filter((e) => !e?.key || t.has(e.key) || e.order !== 1 && e.order !== -1 ? !1 : (t.add(e.key), !0));
5323
5352
  }
5324
- function ms(e) {
5325
- return e == null ? [] : ps((typeof e == "string" ? e.split(",") : e).filter((e) => e !== null).map((e) => e.trim()).filter(Boolean).map((e) => ({
5353
+ function _s(e) {
5354
+ return e == null ? [] : gs((typeof e == "string" ? e.split(",") : e).filter((e) => e !== null).map((e) => e.trim()).filter(Boolean).map((e) => ({
5326
5355
  key: e.replace(/^-/, ""),
5327
5356
  order: e.startsWith("-") ? -1 : 1
5328
5357
  })));
5329
5358
  }
5330
- function hs(e) {
5331
- let t = ps(e);
5359
+ function vs(e) {
5360
+ let t = gs(e);
5332
5361
  if (t.length !== 0) return t.map(({ key: e, order: t }) => `${t === -1 ? "-" : ""}${e}`);
5333
5362
  }
5334
- function gs(e, t = []) {
5335
- let n = ps(e);
5363
+ function ys(e, t = []) {
5364
+ let n = gs(e);
5336
5365
  if (n.length === 0) return;
5337
5366
  let r = n.map(({ key: e, order: t }) => `${t === -1 ? "-" : ""}${e}`), i = new Set(n.map(({ key: e }) => String(e))), a = n.length === 1 && n[0].order === -1 ? "-" : "";
5338
5367
  return t.forEach((e) => {
5339
5368
  i.has(e) || r.push(`${a}${e}`);
5340
5369
  }), r.join(",");
5341
5370
  }
5342
- function _s(e) {
5371
+ function bs(e) {
5343
5372
  return Array.isArray(e) ? [...e] : e;
5344
5373
  }
5345
- function vs(e, t) {
5374
+ function xs(e, t) {
5346
5375
  return Array.isArray(e) || Array.isArray(t) ? !Array.isArray(e) || !Array.isArray(t) ? !1 : e.length === t.length && e.every((e, n) => e === t[n]) : e === t;
5347
5376
  }
5348
- function ys(e, t) {
5377
+ function Ss(e, t) {
5349
5378
  return e.length === t.length && e.every((e, n) => {
5350
5379
  let r = t[n];
5351
5380
  return e.key === r?.key && e.order === r?.order;
5352
5381
  });
5353
5382
  }
5354
- function bs(e, t) {
5383
+ function Cs(e, t) {
5355
5384
  if (typeof e == "string") return Number(e);
5356
5385
  if (Array.isArray(e)) {
5357
5386
  let n = e.find((e) => e !== null);
@@ -5359,35 +5388,35 @@ function bs(e, t) {
5359
5388
  }
5360
5389
  return t;
5361
5390
  }
5362
- function xs(e = {}) {
5391
+ function ws(e = {}) {
5363
5392
  let t = e.defaultPageSize ?? 50, n = e.defaultPageOffset ?? 0, i = e.sortKey ?? "sort", a = e.pageSizeKey ?? "pageSize", o = e.pageOffsetKey ?? "pageOffset", s = N([]), c = O(t), l = O(n);
5364
5393
  return e.route && e.router && (W(() => e.route?.query[i], (e) => {
5365
- let t = ms(e);
5366
- ys(s.value, t) || (s.value = t);
5394
+ let t = _s(e);
5395
+ Ss(s.value, t) || (s.value = t);
5367
5396
  }, { immediate: !0 }), W(() => e.route?.query[a], (e) => {
5368
- let n = bs(e, t);
5397
+ let n = Cs(e, t);
5369
5398
  c.value !== n && (c.value = n);
5370
5399
  }, { immediate: !0 }), W(() => e.route?.query[o], (e) => {
5371
- let t = bs(e, n);
5400
+ let t = Cs(e, n);
5372
5401
  l.value !== t && (l.value = t);
5373
5402
  }, { immediate: !0 }), W([
5374
5403
  s,
5375
5404
  c,
5376
5405
  l
5377
5406
  ], ([r, s, c]) => {
5378
- let l = { ...e.route.query }, u = hs(r);
5379
- u === void 0 ? delete l[i] : l[i] = _s(u), s === t || s === void 0 ? delete l[a] : l[a] = String(s), c === n || c === void 0 ? delete l[o] : l[o] = String(c);
5407
+ let l = { ...e.route.query }, u = vs(r);
5408
+ u === void 0 ? delete l[i] : l[i] = bs(u), s === t || s === void 0 ? delete l[a] : l[a] = String(s), c === n || c === void 0 ? delete l[o] : l[o] = String(c);
5380
5409
  let d = /* @__PURE__ */ new Set([...Object.keys(e.route.query), ...Object.keys(l)]), f = !1;
5381
- for (let t of d) if (!vs(e.route.query[t], l[t])) {
5410
+ for (let t of d) if (!xs(e.route.query[t], l[t])) {
5382
5411
  f = !0;
5383
5412
  break;
5384
5413
  }
5385
5414
  f && e.router.replace({ query: l });
5386
5415
  })), {
5387
5416
  sort: r({
5388
- get: () => ps(s.value),
5417
+ get: () => gs(s.value),
5389
5418
  set: (e) => {
5390
- s.value = ps(e);
5419
+ s.value = gs(e);
5391
5420
  }
5392
5421
  }),
5393
5422
  pageSize: c,
@@ -5396,7 +5425,7 @@ function xs(e = {}) {
5396
5425
  }
5397
5426
  //#endregion
5398
5427
  //#region src/compose/useTableChanges.ts
5399
- function Ss() {
5428
+ function Ts() {
5400
5429
  let e = M(/* @__PURE__ */ new Map()), t = ne(), n = (n) => {
5401
5430
  let r = n.column.key, i = n.row.key, a = n.value, o = n.previousValue;
5402
5431
  e.has(i) || e.set(i, M(/* @__PURE__ */ new Map()));
@@ -5500,7 +5529,7 @@ function Ss() {
5500
5529
  }
5501
5530
  //#endregion
5502
5531
  //#region src/compose/usePersistentTableColumnState.ts
5503
- function Cs(e, t) {
5532
+ function Es(e, t) {
5504
5533
  if (!e || typeof e != "object" || Array.isArray(e)) return {};
5505
5534
  let n = new Set(t.map(({ key: e }) => String(e))), r = {};
5506
5535
  for (let [t, i] of Object.entries(e)) {
@@ -5510,13 +5539,13 @@ function Cs(e, t) {
5510
5539
  }
5511
5540
  return r;
5512
5541
  }
5513
- function ws(e, t) {
5514
- let n = oe(e, {});
5542
+ function Ds(e, t) {
5543
+ let n = se(e, {});
5515
5544
  return W(() => L(t).map(({ key: e }) => String(e)), () => {
5516
- n.value = Cs(n.value, L(t));
5545
+ n.value = Es(n.value, L(t));
5517
5546
  }, { immediate: !0 }), { columnState: n };
5518
5547
  }
5519
5548
  //#endregion
5520
- export { pn as $, Ya as A, Ri as B, xo as C, oo as D, co as E, ji as F, Zn as G, Yr as H, xi as I, kn as J, In as K, Mi as L, Ai as M, bi as N, no as O, Fi as P, xn as Q, Ii as R, So as S, po as T, Rr as U, Li as V, fr as W, wn as X, On as Y, Sn as Z, Bo as _, De as _t, ms as a, Ct as at, Ao as b, Q as bt, fs as c, rt as ct, cs as d, qe as dt, cn as et, ts as f, Je as ft, Vo as g, Oe as gt, qo as h, Ae as ht, ps as i, Ot as it, Si as j, to as k, ds as l, nt as lt, Qo as m, $ as mt, Ss as n, Jt as nt, hs as o, gt as ot, is as p, ze as pt, jn as q, gs as r, Pt as rt, xs as s, ct as st, ws as t, an as tt, us as u, tt as ut, Ro as v, xe as vt, go as w, Co as x, jo as y, be as yt, Ci as z };
5549
+ export { pn as $, Qa as A, Ri as B, wo as C, lo as D, fo as E, ji as F, Zn as G, Yr as H, xi as I, kn as J, In as K, Mi as L, Ai as M, bi as N, ao as O, Fi as P, xn as Q, Ii as R, To as S, go as T, Rr as U, Li as V, fr as W, wn as X, On as Y, Sn as Z, Uo as _, De as _t, _s as a, Ct as at, No as b, Q as bt, hs as c, rt as ct, ds as d, qe as dt, cn as et, is as f, Je as ft, Wo as g, Oe as gt, Xo as h, Ae as ht, gs as i, Ot as it, Si as j, io as k, ms as l, nt as lt, ts as m, $ as mt, Ts as n, Jt as nt, vs as o, gt as ot, ss as p, ze as pt, jn as q, ys as r, Pt as rt, ws as s, ct as st, Ds as t, an as tt, ps as u, tt as ut, Vo as v, xe as vt, yo as w, Eo as x, Po as y, be as yt, Ci as z };
5521
5550
 
5522
- //# sourceMappingURL=grad-vue-DLfX6V2j.js.map
5551
+ //# sourceMappingURL=grad-vue-TtZgUEXw.js.map