@illinois-grad/grad-vue 4.0.3 → 5.0.0

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,8 +1,8 @@
1
- import { Fragment as e, Teleport as t, Transition as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, getCurrentInstance as d, guardReactiveProps as f, inject as p, mergeModels as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeMount as b, onBeforeUnmount as x, onMounted as S, onUnmounted as C, openBlock as w, provide as T, reactive as E, ref as D, renderList as O, renderSlot as k, resolveDynamicComponent as A, shallowReactive as j, shallowRef as M, toDisplayString as N, toRaw as P, toRef as F, toValue as I, unref as L, useAttrs as R, useId as z, useModel as B, useSlots as V, useTemplateRef as H, vModelCheckbox as U, vModelText as ee, vShow as te, watch as W, watchEffect as ne, withCtx as G, withDirectives as re, withModifiers as K } from "vue";
2
- import { createEventHook as q, toArray as J, tryOnScopeDispose as ie, unrefElement as Y, useClipboard as ae, useDebounceFn as X, useFocusWithin as Z, useIntersectionObserver as oe, useMediaQuery as se, useMutationObserver as ce, useResizeObserver as le, useSessionStorage as ue } from "@vueuse/core";
3
- import { createFocusTrap as de } from "focus-trap";
1
+ import { Fragment as e, Teleport as t, Transition as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, getCurrentInstance as d, guardReactiveProps as f, inject as p, mergeModels as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeMount as b, onBeforeUnmount as x, onMounted as S, onUnmounted as C, openBlock as w, provide as T, reactive as E, ref as D, renderList as O, renderSlot as k, resolveDynamicComponent as A, shallowReactive as j, shallowRef as M, toDisplayString as N, toRaw as P, toRef as F, toValue as I, unref as L, useAttrs as R, useId as z, useModel as B, useSlots as V, useTemplateRef as H, vModelCheckbox as U, vModelText as W, vShow as ee, watch as G, watchEffect as te, withCtx as K, withDirectives as ne, withModifiers as q } from "vue";
2
+ import { createEventHook as re, toArray as J, tryOnScopeDispose as Y, unrefElement as X, useClipboard as ie, useDebounceFn as ae, useFocusWithin as Z, useIntersectionObserver as Q, useMediaQuery as oe, useMutationObserver as se, useResizeObserver as ce, useSessionStorage as le } from "@vueuse/core";
3
+ import { createFocusTrap as ue } from "focus-trap";
4
4
  //#region src/compose/useCustomElementAttrs.ts
5
- function Q() {
5
+ function de() {
6
6
  return globalThis.__GRAD_VUE_IS_WEB_COMPONENTS_BUILD__ === !0;
7
7
  }
8
8
  function fe(e = {}) {
@@ -79,7 +79,7 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__PUR
79
79
  onMouseenter: u[7] ||= (e) => r.$emit("mouseenter", e),
80
80
  onMouseleave: u[8] ||= (e) => r.$emit("mouseleave", e)
81
81
  }), {
82
- default: G(() => [t.icon || a.icon ? (w(), o(e, { key: 0 }, [s("span", pe, [a.icon ? k(r.$slots, "icon", {}, void 0, void 0, 0) : (w(), o("span", {
82
+ default: K(() => [t.icon || a.icon ? (w(), o(e, { key: 0 }, [s("span", pe, [a.icon ? k(r.$slots, "icon", {}, void 0, void 0, 0) : (w(), o("span", {
83
83
  key: 1,
84
84
  class: _(t.icon + " g-btn--icon-span"),
85
85
  "aria-hidden": "true"
@@ -117,7 +117,7 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__PUR
117
117
  setup(e) {
118
118
  let t = e, n = V(), l = d(), u = z(), f = (l?.ce)?._slots?.heading?.length > 0, p = r(() => !!t.heading || !!n.heading || f);
119
119
  T("g-tree-menu-list-type", t.listType);
120
- let m = t.storageKey ? ue(t.storageKey, {}) : null;
120
+ let m = t.storageKey ? le(t.storageKey, {}) : null;
121
121
  T("g-tree-menu-expanded-storage", m);
122
122
  let g = E(/* @__PURE__ */ new Map());
123
123
  T("g-tree-menu-expandable-items", g);
@@ -147,7 +147,7 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__PUR
147
147
  id: L(u),
148
148
  class: "g-tree-menu__title"
149
149
  }, {
150
- default: G(() => [k(n.$slots, "heading", {}, () => [c(N(e.heading), 1)])]),
150
+ default: K(() => [k(n.$slots, "heading", {}, () => [c(N(e.heading), 1)])]),
151
151
  _: 3
152
152
  }, 8, ["id"])) : a("", !0),
153
153
  s("div", he, [e.smallHeading ? a("", !0) : (w(), o("div", ge)), e.showExpandAll ? (w(), o("div", _e, [s("button", {
@@ -170,7 +170,7 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__PUR
170
170
  name: "GTreeMenuList",
171
171
  props: { listType: { default: void 0 } },
172
172
  setup(e) {
173
- let t = e, n = p("g-tree-menu-list-type", "ul"), a = r(() => t.listType ?? n ?? "ul"), o = Q(), s = d();
173
+ let t = e, n = p("g-tree-menu-list-type", "ul"), a = r(() => t.listType ?? n ?? "ul"), o = de(), s = d();
174
174
  return S(() => {
175
175
  if (!o) return;
176
176
  let e = s?.ce;
@@ -179,7 +179,7 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__PUR
179
179
  role: L(o) ? "list" : void 0,
180
180
  class: "g-tree-menu__list"
181
181
  }, {
182
- default: G(() => [k(e.$slots, "default")]),
182
+ default: K(() => [k(e.$slots, "default")]),
183
183
  _: 3
184
184
  }, 8, ["role"]));
185
185
  }
@@ -220,9 +220,9 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__PUR
220
220
  return n.expanded;
221
221
  }
222
222
  let C = D(b());
223
- W(() => n.expanded, (e) => {
223
+ G(() => n.expanded, (e) => {
224
224
  v && n.label !== void 0 || (C.value = e);
225
- }), W(C, (e) => {
225
+ }), G(C, (e) => {
226
226
  v && n.label !== void 0 && (e ? v.value[n.label] = !0 : delete v.value[n.label]);
227
227
  });
228
228
  function T() {
@@ -235,9 +235,9 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__PUR
235
235
  function P() {
236
236
  O?.delete(E);
237
237
  }
238
- W(C, (e) => {
238
+ G(C, (e) => {
239
239
  O && g.value && O.set(E, e);
240
- }), j && W(() => j.value.version, () => {
240
+ }), j && G(() => j.value.version, () => {
241
241
  g.value && (C.value = j.value.expanded, M.value = j.value.version);
242
242
  }), S(() => {
243
243
  N(), j && g.value && j.value.version > M.value && j.value.expanded && (C.value = !0, M.value = j.value.version);
@@ -247,7 +247,7 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__PUR
247
247
  function F(e) {
248
248
  e.target.closest("a, button") || T();
249
249
  }
250
- let I = Q(), B = u?.ce;
250
+ let I = de(), B = u?.ce;
251
251
  S(() => {
252
252
  I && B && B.setAttribute("role", "listitem");
253
253
  });
@@ -261,7 +261,7 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__PUR
261
261
  class: "g-tree-menu__item",
262
262
  "data-tree-expandable": g.value ? "true" : void 0
263
263
  }), {
264
- default: G(() => [g.value ? (w(), o("div", xe, [s("span", {
264
+ default: K(() => [g.value ? (w(), o("div", xe, [s("span", {
265
265
  class: "g-tree-menu__row-content",
266
266
  "data-tree-primary": "",
267
267
  onClick: F
@@ -287,7 +287,7 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__PUR
287
287
  key: 2,
288
288
  id: L(f) + "-children"
289
289
  }, {
290
- default: G(() => [k(e.$slots, "children")]),
290
+ default: K(() => [k(e.$slots, "children")]),
291
291
  _: 3
292
292
  }, 8, ["id"])) : a("", !0)]),
293
293
  _: 3
@@ -349,7 +349,7 @@ function ke(e = "default") {
349
349
  //#endregion
350
350
  //#region src/compose/useFormField.ts
351
351
  function Ae(e) {
352
- let t = R(), n = typeof t["form-key"] == "string" ? t["form-key"] : void 0, i = e.formKey ?? n ?? "default", a = p("form", null) ?? (Q() ? ke(i) : null), o = r(() => {
352
+ let t = R(), n = typeof t["form-key"] == "string" ? t["form-key"] : void 0, i = e.formKey ?? n ?? "default", a = p("form", null) ?? (de() ? ke(i) : null), o = r(() => {
353
353
  let t = [];
354
354
  return e.errors && t.push(...e.errors.value.filter(Boolean)), t;
355
355
  }), s = r(() => o.value.length > 0), c = e.name;
@@ -560,12 +560,12 @@ var Xe = (e) => e != null;
560
560
  //#region ../../node_modules/@vueuse/integrations/dist/useFocusTrap-lXZ_YG-8.js
561
561
  function Ze(e, t = {}) {
562
562
  let n, { immediate: i, ...a } = t, o = M(!1), s = M(!1), c = (e) => n && n.activate(e), l = (e) => n && n.deactivate(e);
563
- return W(r(() => J(I(e)).map((e) => {
563
+ return G(r(() => J(I(e)).map((e) => {
564
564
  let t = I(e);
565
- return typeof t == "string" ? t : Y(t);
565
+ return typeof t == "string" ? t : X(t);
566
566
  }).filter(Xe)), (e) => {
567
567
  if (e.length) {
568
- if (!n) n = de(e, {
568
+ if (!n) n = ue(e, {
569
569
  ...a,
570
570
  onActivate() {
571
571
  o.value = !0, t.onActivate && t.onActivate();
@@ -579,7 +579,7 @@ function Ze(e, t = {}) {
579
579
  n?.updateContainerElements(e), !t && i && c();
580
580
  }
581
581
  }
582
- }, { flush: "post" }), ie(() => l()), {
582
+ }, { flush: "post" }), Y(() => l()), {
583
583
  hasFocus: o,
584
584
  isPaused: s,
585
585
  activate: c,
@@ -625,7 +625,7 @@ function $e(e, t, n = !1) {
625
625
  });
626
626
  }
627
627
  });
628
- return W(t, (e) => {
628
+ return G(t, (e) => {
629
629
  e ? g(() => {
630
630
  i() && c();
631
631
  }).catch((e) => {
@@ -687,7 +687,7 @@ function tt(e, t, n, r) {
687
687
  var nt = /* @__PURE__ */ u({
688
688
  __name: "GClientOnly",
689
689
  setup(e) {
690
- let t = D(Q());
690
+ let t = D(de());
691
691
  return S(() => {
692
692
  t.value = !0;
693
693
  }), (e, n) => t.value ? k(e.$slots, "default", {}, void 0, void 0, 0) : k(e.$slots, "fallback", {}, void 0, void 0, 1);
@@ -711,14 +711,14 @@ var nt = /* @__PURE__ */ u({
711
711
  ],
712
712
  setup(e, { expose: c, emit: u }) {
713
713
  let d = e, f = u, p = D(d.modelValue);
714
- W(F(d, "modelValue"), (e) => {
714
+ G(F(d, "modelValue"), (e) => {
715
715
  p.value = e;
716
716
  });
717
717
  let m = V(), h = r(() => !!m.trigger), v = H("triggerRef"), b = H("popoverRef"), { isCustomElement: S } = fe(), C = S, T = z(), { push: E, pop: O, isTop: A, zIndex: j } = qe(T, !0), { activate: M, deactivate: N } = $e(b, A, !0);
718
- et([b, v], A, p, I, O), W(p, (e) => {
718
+ et([b, v], A, p, I, O), G(p, (e) => {
719
719
  e ? (g(() => {
720
720
  g(() => M());
721
- }), E(), f("show")) : (N(), O(), f("hide"), K.value = !1, q.value = null);
721
+ }), E(), f("show")) : (N(), O(), f("hide"), q.value = !1, re.value = null);
722
722
  });
723
723
  function P() {
724
724
  p.value = !0, f("update:modelValue", !0);
@@ -732,24 +732,24 @@ var nt = /* @__PURE__ */ u({
732
732
  let B = D({
733
733
  top: 0,
734
734
  left: 0
735
- }), U = D({ left: "50%" }), ee = D(!1), ne = D(!1), K = D(!1), q = D(null), J = null;
736
- function ie() {
735
+ }), U = D({ left: "50%" }), W = D(!1), te = D(!1), q = D(!1), re = D(null), J = null;
736
+ function Y() {
737
737
  if (v.value) return v.value;
738
738
  let e = b.value?.parentElement ?? null;
739
739
  for (; e && e.tagName.toLowerCase() !== "g-popover";) e = e.parentElement;
740
740
  let t = e?.previousElementSibling;
741
741
  return t instanceof HTMLElement ? t : null;
742
742
  }
743
- function Y() {
743
+ function X() {
744
744
  if (!b.value) return;
745
745
  let e = b.value, t = new DOMRect(0, 0, window.innerWidth, window.innerHeight), n = Math.max(t.height - 32, 0), r = e.scrollHeight;
746
- K.value = r > n, q.value = K.value ? n : null;
747
- let i = new DOMRect(0, 0, e.offsetWidth, Math.min(r, n)), a = ie();
746
+ q.value = r > n, re.value = q.value ? n : null;
747
+ let i = new DOMRect(0, 0, e.offsetWidth, Math.min(r, n)), a = Y();
748
748
  if (!a) {
749
749
  B.value = {
750
750
  top: Math.max((t.height - i.height) / 2, 16),
751
751
  left: Math.max((t.width - i.width) / 2, 16)
752
- }, ne.value = !1, ee.value = !1, U.value = { left: "50%" };
752
+ }, te.value = !1, W.value = !1, U.value = { left: "50%" };
753
753
  return;
754
754
  }
755
755
  let { top: o, left: s, xOffset: c, placedAbove: l, overlay: u } = tt(a.getBoundingClientRect(), i, t, { gap: d.minimal ? 0 : 8 });
@@ -760,14 +760,14 @@ var nt = /* @__PURE__ */ u({
760
760
  left: `${i.width / 2 - c}px`,
761
761
  top: l ? "auto" : void 0,
762
762
  bottom: l ? "-8px" : void 0
763
- }, ee.value = l, ne.value = u;
763
+ }, W.value = l, te.value = u;
764
764
  }
765
- return W(p, (e) => {
765
+ return G(p, (e) => {
766
766
  e ? g(() => {
767
- Y(), window.addEventListener("resize", Y), window.addEventListener("scroll", Y, { capture: !0 }), b.value && (J && J.disconnect(), J = new ResizeObserver(() => Y()), J.observe(b.value));
768
- }) : (window.removeEventListener("resize", Y), window.removeEventListener("scroll", Y, { capture: !0 }), J && J.disconnect());
767
+ X(), window.addEventListener("resize", X), window.addEventListener("scroll", X, { capture: !0 }), b.value && (J && J.disconnect(), J = new ResizeObserver(() => X()), J.observe(b.value));
768
+ }) : (window.removeEventListener("resize", X), window.removeEventListener("scroll", X, { capture: !0 }), J && J.disconnect());
769
769
  }), x(() => {
770
- window.removeEventListener("resize", Y), window.removeEventListener("scroll", Y, { capture: !0 }), J && J.disconnect();
770
+ window.removeEventListener("resize", X), window.removeEventListener("scroll", X, { capture: !0 }), J && J.disconnect();
771
771
  }), c({
772
772
  show: P,
773
773
  hide: I,
@@ -779,23 +779,23 @@ var nt = /* @__PURE__ */ u({
779
779
  class: "g-popover-trigger",
780
780
  id: `${L(T)}-trigger`
781
781
  }, [k(r.$slots, "trigger", { toggle: R })], 8, it)) : a("", !0), l(nt, null, {
782
- default: G(() => [(w(), i(t, {
782
+ default: K(() => [(w(), i(t, {
783
783
  to: "#modal-root",
784
784
  disabled: L(C)
785
785
  }, [l(n, {
786
786
  name: "g-popover-expand",
787
787
  appear: ""
788
788
  }, {
789
- default: G(() => [L(S) || p.value ? re((w(), o("div", {
789
+ default: K(() => [L(S) || p.value ? ne((w(), o("div", {
790
790
  key: 0,
791
791
  ref_key: "popoverRef",
792
792
  ref: b,
793
793
  class: _({
794
794
  "g-popover": !0,
795
- "g-popover-above": ee.value,
796
- "g-popover-below": !ee.value,
795
+ "g-popover-above": W.value,
796
+ "g-popover-below": !W.value,
797
797
  "g-popover-minimal": e.minimal,
798
- "g-popover-scrollable": K.value
798
+ "g-popover-scrollable": q.value
799
799
  }),
800
800
  role: "dialog",
801
801
  "aria-modal": "true",
@@ -805,12 +805,12 @@ var nt = /* @__PURE__ */ u({
805
805
  top: B.value.top + "px",
806
806
  left: B.value.left + "px",
807
807
  zIndex: L(j),
808
- maxHeight: q.value === null ? void 0 : `${q.value}px`
808
+ maxHeight: re.value === null ? void 0 : `${re.value}px`
809
809
  })
810
810
  }, [
811
- !ne.value && !e.minimal && !K.value ? (w(), o("div", {
811
+ !te.value && !e.minimal && !q.value ? (w(), o("div", {
812
812
  key: 0,
813
- class: _(["g-popover-arrow", { "g-popover-arrow-above": ee.value }]),
813
+ class: _(["g-popover-arrow", { "g-popover-arrow-above": W.value }]),
814
814
  style: y(U.value),
815
815
  "aria-hidden": "true"
816
816
  }, null, 6)) : a("", !0),
@@ -830,7 +830,7 @@ var nt = /* @__PURE__ */ u({
830
830
  fill: "currentColor",
831
831
  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"
832
832
  })], -1)]]))
833
- ], 14, at)), [[te, p.value]]) : a("", !0)]),
833
+ ], 14, at)), [[ee, p.value]]) : a("", !0)]),
834
834
  _: 3
835
835
  })], 8, ["disabled"]))]),
836
836
  _: 3
@@ -922,15 +922,15 @@ var mt = /* @__PURE__ */ u({
922
922
  function I(e) {
923
923
  (e.key === "Escape" || e.key === "Esc") && (p.value = !1, m.value = !1);
924
924
  }
925
- return W(() => [
925
+ return G(() => [
926
926
  u.value,
927
927
  d.value,
928
928
  l.value
929
929
  ], () => {
930
930
  A(b()), S();
931
- }, { immediate: !0 }), W(() => i.text, (e) => {
931
+ }, { immediate: !0 }), G(() => i.text, (e) => {
932
932
  f.value && (f.value.textContent = e);
933
- }), W(() => p.value || m.value, (e) => {
933
+ }), G(() => p.value || m.value, (e) => {
934
934
  if (e) {
935
935
  S(), f.value && y && ft(y, f.value), g ||= (window.addEventListener("scroll", C, { capture: !0 }), !0);
936
936
  return;
@@ -1131,7 +1131,7 @@ var mt = /* @__PURE__ */ u({
1131
1131
  name: "g-fade",
1132
1132
  appear: ""
1133
1133
  }, {
1134
- default: G(() => [s("div", {
1134
+ default: K(() => [s("div", {
1135
1135
  id: "alertdialog-" + L(f),
1136
1136
  class: "g-alertdialog",
1137
1137
  role: "alertdialog",
@@ -1154,13 +1154,13 @@ var mt = /* @__PURE__ */ u({
1154
1154
  outlined: "",
1155
1155
  onClick: r[0] ||= (e) => o("cancel")
1156
1156
  }, {
1157
- default: G(() => [...r[2] ||= [c("Cancel", -1)]]),
1157
+ default: K(() => [...r[2] ||= [c("Cancel", -1)]]),
1158
1158
  _: 1
1159
1159
  }), l($, {
1160
1160
  theme: a.buttonColor,
1161
1161
  onClick: r[1] ||= (e) => o("confirm")
1162
1162
  }, {
1163
- default: G(() => [c(N(a.buttonText), 1)]),
1163
+ default: K(() => [c(N(a.buttonText), 1)]),
1164
1164
  _: 1
1165
1165
  }, 8, ["theme"])])
1166
1166
  ])], 12, Dt)]),
@@ -1200,7 +1200,7 @@ function Pt({ open: e, anchorRef: t, listboxRef: n, baseId: i, activeIndex: a })
1200
1200
  function h() {
1201
1201
  p && p();
1202
1202
  }
1203
- W(e, (e) => {
1203
+ G(e, (e) => {
1204
1204
  e ? (o(), m(), g(() => f())) : (s(), h(), l.value = "below", u.value = null);
1205
1205
  }), x(() => {
1206
1206
  h();
@@ -1302,7 +1302,7 @@ var Ft = ["id"], It = {
1302
1302
  let e = I.value.toLowerCase();
1303
1303
  return P.value.filter((t) => t.label.toLowerCase().includes(e) || i.searchDescription && !!t.description && t.description.toLowerCase().includes(e));
1304
1304
  }), V = r(() => R.value.findIndex((e) => e.value === d.value));
1305
- W(() => d.value, (e) => {
1305
+ G(() => d.value, (e) => {
1306
1306
  let t = R.value.findIndex((t) => t.value === e);
1307
1307
  t !== -1 && (b.value = t);
1308
1308
  });
@@ -1318,7 +1318,7 @@ var Ft = ["id"], It = {
1318
1318
  function U() {
1319
1319
  y.value = !1, i.searchable && (I.value = "");
1320
1320
  }
1321
- function ee(e) {
1321
+ function W(e) {
1322
1322
  if (!i.disabled && i.searchable) {
1323
1323
  if (S.value) {
1324
1324
  S.value = !1;
@@ -1327,13 +1327,13 @@ var Ft = ["id"], It = {
1327
1327
  H();
1328
1328
  }
1329
1329
  }
1330
- function ne(e) {
1330
+ function te(e) {
1331
1331
  if (!i.searchable) return;
1332
1332
  y.value || H(), I.value = e.target.value;
1333
1333
  let t = R.value.findIndex((e) => e.value === d.value);
1334
1334
  b.value = t === -1 ? 0 : t;
1335
1335
  }
1336
- function G(e) {
1336
+ function K(e) {
1337
1337
  let t = e.relatedTarget;
1338
1338
  if (x.value) {
1339
1339
  x.value = !1;
@@ -1341,7 +1341,7 @@ var Ft = ["id"], It = {
1341
1341
  }
1342
1342
  t && m.value && m.value.contains(t) || (i.searchable && (I.value = ""), U());
1343
1343
  }
1344
- function q(e) {
1344
+ function re(e) {
1345
1345
  let t = R.value[e];
1346
1346
  t && t.value !== d.value && (d.value = t.value, u("change", t.value)), S.value = !0, U(), setTimeout(() => {
1347
1347
  S.value = !1;
@@ -1350,7 +1350,7 @@ var Ft = ["id"], It = {
1350
1350
  function J() {
1351
1351
  i.disabled || (y.value ? U() : H());
1352
1352
  }
1353
- function ie(e) {
1353
+ function Y(e) {
1354
1354
  if (i.disabled) return;
1355
1355
  let t = R.value.length - 1;
1356
1356
  if (!y.value && [
@@ -1377,20 +1377,20 @@ var Ft = ["id"], It = {
1377
1377
  break;
1378
1378
  case "Enter":
1379
1379
  case " ":
1380
- e.preventDefault(), y.value ? q(b.value) : H();
1380
+ e.preventDefault(), y.value ? re(b.value) : H();
1381
1381
  break;
1382
1382
  case "Escape": j.value && (e.preventDefault(), setTimeout(() => {
1383
1383
  U();
1384
1384
  }, 0));
1385
1385
  }
1386
1386
  }
1387
- function Y(e) {
1388
- q(e);
1387
+ function X(e) {
1388
+ re(e);
1389
1389
  }
1390
- function ae() {
1390
+ function ie() {
1391
1391
  x.value = !0;
1392
1392
  }
1393
- let X = r(() => i.clearButton && d.value !== null && d.value !== void 0 && !i.disabled);
1393
+ let ae = r(() => i.clearButton && d.value !== null && d.value !== void 0 && !i.disabled);
1394
1394
  function Z() {
1395
1395
  i.disabled || (d.value = null, u("change", null), i.searchable && (I.value = ""));
1396
1396
  }
@@ -1418,10 +1418,10 @@ var Ft = ["id"], It = {
1418
1418
  value: y.value ? I.value : P.value[V.value] ? P.value[V.value].label : "",
1419
1419
  placeholder: y.value ? "" : t.placeholder,
1420
1420
  disabled: i.disabled,
1421
- onFocus: ee,
1422
- onInput: ne,
1423
- onKeydown: ie,
1424
- onBlur: G,
1421
+ onFocus: W,
1422
+ onInput: te,
1423
+ onKeydown: Y,
1424
+ onBlur: K,
1425
1425
  "aria-autocomplete": "list",
1426
1426
  "aria-controls": L(f) + "-listbox",
1427
1427
  "aria-expanded": y.value ? "true" : "false",
@@ -1432,7 +1432,7 @@ var Ft = ["id"], It = {
1432
1432
  role: "combobox",
1433
1433
  autocomplete: "off"
1434
1434
  }), null, 16, zt),
1435
- X.value ? (w(), o("button", {
1435
+ ae.value ? (w(), o("button", {
1436
1436
  key: 0,
1437
1437
  type: "button",
1438
1438
  class: "g-select-clear-btn",
@@ -1472,16 +1472,16 @@ var Ft = ["id"], It = {
1472
1472
  "aria-activedescendant": y.value ? L(f) + "-option-" + b.value : void 0,
1473
1473
  tabindex: "0",
1474
1474
  onClick: J,
1475
- onKeydown: ie,
1476
- onFocus: ee,
1477
- onBlur: G
1475
+ onKeydown: Y,
1476
+ onFocus: W,
1477
+ onBlur: K
1478
1478
  }), [
1479
1479
  c(N(P.value[V.value] ? P.value[V.value].label : "") + " ", 1),
1480
- X.value ? (w(), o("button", {
1480
+ ae.value ? (w(), o("button", {
1481
1481
  key: 0,
1482
1482
  type: "button",
1483
1483
  class: "g-select-clear-btn",
1484
- onClick: K(Z, ["stop"])
1484
+ onClick: q(Z, ["stop"])
1485
1485
  }, [...r[2] ||= [s("svg", {
1486
1486
  role: "img",
1487
1487
  "aria-label": "Clear Selection",
@@ -1502,7 +1502,7 @@ var Ft = ["id"], It = {
1502
1502
  fill: "currentColor",
1503
1503
  d: "M38.75 24.13a1.36 1.36 0 0 1 0 2.36l-12.44 7.18-12.43 7.18a1.36 1.36 0 0 1-2.05-1.18V11a1.36 1.36 0 0 1 2.05-1.18L26.31 17Z"
1504
1504
  })], -1)
1505
- ], 16, Bt)), re(s("div", h({
1505
+ ], 16, Bt)), ne(s("div", h({
1506
1506
  ref_key: "listboxRef",
1507
1507
  ref: m,
1508
1508
  class: ["g-select-combo-menu g-select-list", { "g-select-combo-menu--above": L(E) === "above" }],
@@ -1518,13 +1518,13 @@ var Ft = ["id"], It = {
1518
1518
  }]),
1519
1519
  role: "option",
1520
1520
  "aria-selected": e.value === d.value ? "true" : "false",
1521
- onMousedown: ae,
1522
- onClick: (e) => Y(t)
1521
+ onMousedown: ie,
1522
+ onClick: (e) => X(t)
1523
1523
  }, [k(n.$slots, "option", {
1524
1524
  option: e,
1525
1525
  selected: e.value === d.value,
1526
1526
  index: t
1527
- }, () => [s("span", Ut, N(e.label), 1), e.description ? (w(), o("span", Wt, N(e.description), 1)) : a("", !0)])], 42, Ht))), 128)) : (w(), o("div", Gt, " No results found. "))], 16, Vt), [[te, y.value]])]),
1527
+ }, () => [s("span", Ut, N(e.label), 1), e.description ? (w(), o("span", Wt, N(e.description), 1)) : a("", !0)])], 42, Ht))), 128)) : (w(), o("div", Gt, " No results found. "))], 16, Vt), [[ee, y.value]])]),
1528
1528
  l(Me, {
1529
1529
  errors: L(C),
1530
1530
  id: "error-message-" + L(f)
@@ -1603,10 +1603,10 @@ var Ft = ["id"], It = {
1603
1603
  function T(e) {
1604
1604
  d("select", e), l.value = "", m.value = !0, h.value = -1;
1605
1605
  }
1606
- let E = r(() => !!u.loading), A = r(() => S.value && !m.value), j = X(() => {
1606
+ let E = r(() => !!u.loading), A = r(() => S.value && !m.value), j = ae(() => {
1607
1607
  d("submit", l.value);
1608
1608
  }, 300);
1609
- W(() => l.value, (e) => {
1609
+ G(() => l.value, (e) => {
1610
1610
  e ? u.auto && j() : h.value = -1;
1611
1611
  });
1612
1612
  let M = z();
@@ -1616,7 +1616,7 @@ var Ft = ["id"], It = {
1616
1616
  "aria-label": u.label
1617
1617
  }, [s("form", {
1618
1618
  class: "g-search-form",
1619
- onSubmit: n[0] ||= K((e) => T(null), ["prevent"])
1619
+ onSubmit: n[0] ||= q((e) => T(null), ["prevent"])
1620
1620
  }, [s("input", {
1621
1621
  ref_key: "inputRef",
1622
1622
  ref: f,
@@ -1664,14 +1664,14 @@ var Ft = ["id"], It = {
1664
1664
  id: "g-search-option-" + e.id,
1665
1665
  class: _(["g-search-option", { "g-search-option-active": v.value[h.value] && v.value[h.value].id === e.id }]),
1666
1666
  role: "option",
1667
- onMousedown: K((t) => T(e), ["prevent"]),
1667
+ onMousedown: q((t) => T(e), ["prevent"]),
1668
1668
  "aria-selected": v.value[h.value] && v.value[h.value].id === e.id
1669
1669
  }, [k(t.$slots, "option", { option: e }, () => [c(N(e.title), 1)])], 42, en))), 128))], 8, Qt))), 128)) : y.value > 0 ? (w(!0), o(e, { key: 1 }, O(v.value, (e, n) => (w(), o("div", {
1670
1670
  key: e.id,
1671
1671
  id: "g-search-option-" + e.id,
1672
1672
  class: _(["g-search-option", { "g-search-option-active": h.value === n }]),
1673
1673
  role: "option",
1674
- onMousedown: K((t) => T(e), ["prevent"]),
1674
+ onMousedown: q((t) => T(e), ["prevent"]),
1675
1675
  "aria-selected": h.value === n
1676
1676
  }, [k(t.$slots, "option", { option: e }, () => [c(N(e.title), 1)])], 42, tn))), 128)) : a("", !0)], 8, Zt)])) : a("", !0)], 8, qt));
1677
1677
  }
@@ -1733,12 +1733,12 @@ function pn(e = "default", t) {
1733
1733
  id: `g-wc-sidebar-${e}`,
1734
1734
  open: D(!1),
1735
1735
  breakpoint: t,
1736
- isCollapsible: se(t, { ssrWidth: 1e3 }),
1736
+ isCollapsible: oe(t, { ssrWidth: 1e3 }),
1737
1737
  toggle: () => void 0
1738
1738
  });
1739
1739
  }
1740
1740
  let o = n.get(r);
1741
- o.toggle = () => o.open.value = !o.open.value, typeof t == "string" ? t.trim() && (o.breakpoint.value = t) : t && W(t, (e) => {
1741
+ o.toggle = () => o.open.value = !o.open.value, typeof t == "string" ? t.trim() && (o.breakpoint.value = t) : t && G(t, (e) => {
1742
1742
  e && e.trim() && (o.breakpoint.value = e);
1743
1743
  }, { immediate: !0 });
1744
1744
  function s(e) {
@@ -1756,7 +1756,7 @@ function pn(e = "default", t) {
1756
1756
  }, 5));
1757
1757
  }
1758
1758
  return S(() => {
1759
- W(o.isCollapsible, (e) => {
1759
+ G(o.isCollapsible, (e) => {
1760
1760
  e ? (document.addEventListener("mousedown", s), document.addEventListener("focusin", c)) : (document.removeEventListener("mousedown", s), document.removeEventListener("focusin", c));
1761
1761
  }, { immediate: !0 });
1762
1762
  }), x(() => {
@@ -1766,7 +1766,7 @@ function pn(e = "default", t) {
1766
1766
  //#endregion
1767
1767
  //#region src/compose/useScrollRestore.ts
1768
1768
  function mn(e, t) {
1769
- let n = t ? ue(`${t}:scroll`, 0, { writeDefaults: !1 }) : null, r = D(!!(n?.value && n.value > 0)), i = null, a = null, o = null, s = !1;
1769
+ let n = t ? le(`${t}:scroll`, 0, { writeDefaults: !1 }) : null, r = D(!!(n?.value && n.value > 0)), i = null, a = null, o = null, s = !1;
1770
1770
  function c(e) {
1771
1771
  let t = window.getComputedStyle(e);
1772
1772
  return t.overflowY === "auto" || t.overflowY === "scroll";
@@ -1862,7 +1862,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
1862
1862
  storageKey: {}
1863
1863
  },
1864
1864
  setup(e) {
1865
- let t = e, n = p("sidebar", () => void 0, !0) ?? (Q() ? pn(t.sidebarKey, F(t, "mediaQuery")) : void 0), i = r(() => t.backgroundImage ? t.backgroundImage : t.theme === "light" ? "none" : "url('https://gradcdn.blob.core.windows.net/public/sidebar-bg2.jpg')"), a = r(() => t.backgroundColor ? t.backgroundColor : t.theme === "light" ? "#f9f9f9" : "#030913"), s = r(() => t.topOffsetVar ? `var(${t.topOffsetVar})` : t.topOffset ? t.topOffset : "var(--g-toolbar-height)"), c = z(), { isPendingScrollRestore: l } = mn(H("sidebar-ref"), t.storageKey);
1865
+ let t = e, n = p("sidebar", () => void 0, !0) ?? (de() ? pn(t.sidebarKey, F(t, "mediaQuery")) : void 0), i = r(() => t.backgroundImage ? t.backgroundImage : t.theme === "light" ? "none" : "url('https://gradcdn.blob.core.windows.net/public/sidebar-bg2.jpg')"), a = r(() => t.backgroundColor ? t.backgroundColor : t.theme === "light" ? "#f9f9f9" : "#030913"), s = r(() => t.topOffsetVar ? `var(${t.topOffsetVar})` : t.topOffset ? t.topOffset : "var(--g-toolbar-height)"), c = z(), { isPendingScrollRestore: l } = mn(H("sidebar-ref"), t.storageKey);
1866
1866
  function u(e) {
1867
1867
  e.key === "Escape" && n?.isCollapsible?.value && n?.open?.value && (n.open.value = !1, document.getElementById(`${n.id}-hamburger`)?.focus());
1868
1868
  }
@@ -1915,7 +1915,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
1915
1915
  setup(t) {
1916
1916
  let n = t, l = B(t, "modelValue"), u = r(() => n.spy && l.value ? "#" + l.value : null), f = H("content");
1917
1917
  S(() => {
1918
- W(l, () => {
1918
+ G(l, () => {
1919
1919
  g(() => {
1920
1920
  let e = f.value?.querySelector(".g-sidebar-menu__is-active");
1921
1921
  e && e.scrollIntoView({ block: "nearest" });
@@ -1953,7 +1953,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
1953
1953
  class: "g-sidebar-menu__link",
1954
1954
  to: e.to
1955
1955
  }, {
1956
- default: G(() => [c(N(e.label), 1)]),
1956
+ default: K(() => [c(N(e.label), 1)]),
1957
1957
  _: 2
1958
1958
  }, 1032, ["to"])) : (w(), o("a", {
1959
1959
  key: 1,
@@ -1971,13 +1971,13 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
1971
1971
  n.value && (r.value || i.value) && ft(e, n.value);
1972
1972
  }), o.observe(n.value));
1973
1973
  };
1974
- ne(() => {
1974
+ te(() => {
1975
1975
  n.value && (n.value.textContent = a.value);
1976
1976
  });
1977
1977
  let u = () => {
1978
1978
  n.value && (r.value || i.value) && ft(e, n.value);
1979
1979
  };
1980
- ne(() => {
1980
+ te(() => {
1981
1981
  r.value || i.value ? (l(), n.value && ft(e, n.value), s ||= (window.addEventListener("scroll", u, { capture: !0 }), !0)) : (s &&= (window.removeEventListener("scroll", u, { capture: !0 }), !1), n.value && (pt(n.value), setTimeout(() => {
1982
1982
  e.dispatchEvent(new CustomEvent("tooltip-hide"));
1983
1983
  }, 150)));
@@ -2024,12 +2024,12 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
2024
2024
  copyLabel: {}
2025
2025
  },
2026
2026
  setup(t) {
2027
- let n = t, r = xn, { text: i, copy: l, copied: u, isSupported: d } = ae({ source: n.text }), f = D(n.copyLabel ?? "Copy to clipboard"), p = () => {
2027
+ let n = t, r = xn, { text: i, copy: l, copied: u, isSupported: d } = ie({ source: n.text }), f = D(n.copyLabel ?? "Copy to clipboard"), p = () => {
2028
2028
  d.value ? (l(), f.value = "Copied") : f.value = "Copy not supported";
2029
2029
  }, m = () => {
2030
2030
  f.value = n.copyLabel ?? "Copy to clipboard";
2031
2031
  };
2032
- return (i, l) => (w(), o("div", Sn, [t.hideText ? a("", !0) : (w(), o(e, { key: 0 }, [c(N(n.text), 1)], 64)), re((w(), o("button", {
2032
+ return (i, l) => (w(), o("div", Sn, [t.hideText ? a("", !0) : (w(), o(e, { key: 0 }, [c(N(n.text), 1)], 64)), ne((w(), o("button", {
2033
2033
  type: "button",
2034
2034
  "aria-label": "Copy",
2035
2035
  onClick: p,
@@ -2078,11 +2078,11 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
2078
2078
  }
2079
2079
  S(() => {
2080
2080
  g(f);
2081
- }), le(i, () => {
2081
+ }), ce(i, () => {
2082
2082
  u.value && f();
2083
- }), le(c, () => {
2083
+ }), ce(c, () => {
2084
2084
  u.value && f();
2085
- }), W(() => n.entries, async () => {
2085
+ }), G(() => n.entries, async () => {
2086
2086
  u.value && (await g(), f());
2087
2087
  });
2088
2088
  let m = r(() => [...n.entries].reverse());
@@ -2103,7 +2103,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
2103
2103
  onClick: r[0] ||= () => f({ focusLast: !0 }),
2104
2104
  "aria-label": "Jump to Latest"
2105
2105
  }, {
2106
- default: G(() => [...r[1] ||= [s("svg", {
2106
+ default: K(() => [...r[1] ||= [s("svg", {
2107
2107
  "aria-hidden": "true",
2108
2108
  xmlns: "http://www.w3.org/2000/svg",
2109
2109
  viewBox: "0 0 640 640",
@@ -2373,7 +2373,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
2373
2373
  }, [t.bulkSelectionEnabled ? (w(), o("td", {
2374
2374
  key: 0,
2375
2375
  class: "td-checkbox",
2376
- onClick: r[0] ||= K(() => {}, ["stop"])
2376
+ onClick: r[0] ||= q(() => {}, ["stop"])
2377
2377
  }, [s("input", {
2378
2378
  type: "checkbox",
2379
2379
  checked: p(n.key),
@@ -2531,21 +2531,21 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
2531
2531
  let n = d.value, r = I(t.value) ? n.filter((e) => e !== t.value) : [...n, t.value];
2532
2532
  d.value = r, u("change", r), g(() => p.value?.focus());
2533
2533
  }
2534
- function ee(e) {
2534
+ function W(e) {
2535
2535
  if (i.disabled) return;
2536
2536
  let t = d.value.filter((t) => t !== e);
2537
2537
  d.value = t, u("change", t);
2538
2538
  }
2539
- function W() {
2539
+ function G() {
2540
2540
  i.disabled || (p.value?.focus(), y.value || V());
2541
2541
  }
2542
- function ne(e) {
2542
+ function te(e) {
2543
2543
  x.value = e.target.value, b.value = 0, y.value || V();
2544
2544
  }
2545
- function G() {
2545
+ function K() {
2546
2546
  i.disabled || y.value || V();
2547
2547
  }
2548
- function q(e) {
2548
+ function re(e) {
2549
2549
  if (S.value) {
2550
2550
  S.value = !1;
2551
2551
  return;
@@ -2556,10 +2556,10 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
2556
2556
  function J(e) {
2557
2557
  e.preventDefault();
2558
2558
  }
2559
- function ie() {
2559
+ function Y() {
2560
2560
  S.value = !0;
2561
2561
  }
2562
- function Y(e) {
2562
+ function X(e) {
2563
2563
  if (i.disabled) return;
2564
2564
  let t = P.value.length - 1;
2565
2565
  switch (e.key) {
@@ -2584,12 +2584,12 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
2584
2584
  case "Escape":
2585
2585
  A.value && (e.preventDefault(), setTimeout(() => H(), 0));
2586
2586
  break;
2587
- case "Backspace": !x.value && d.value.length > 0 && ee(d.value[d.value.length - 1]);
2587
+ case "Backspace": !x.value && d.value.length > 0 && W(d.value[d.value.length - 1]);
2588
2588
  }
2589
2589
  }
2590
- let ae = r(() => `${f}-input`), X = r(() => `${f}-label`), Z = r(() => `${f}-instructions`), oe = r(() => `error-message-${f}`), se = r(() => {
2590
+ let ie = r(() => `${f}-input`), ae = r(() => `${f}-label`), Z = r(() => `${f}-instructions`), Q = r(() => `error-message-${f}`), oe = r(() => {
2591
2591
  let e = [];
2592
- return i.instructions && e.push(Z.value), T.value && e.push(oe.value), e.length > 0 ? e.join(" ") : void 0;
2592
+ return i.instructions && e.push(Z.value), T.value && e.push(Q.value), e.length > 0 ? e.join(" ") : void 0;
2593
2593
  });
2594
2594
  return (n, r) => (w(), o("div", { class: _(["g-multiselect-root", {
2595
2595
  "g-multiselect-open": y.value,
@@ -2597,8 +2597,8 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
2597
2597
  }]) }, [
2598
2598
  t.hiddenLabel ? a("", !0) : (w(), o("label", {
2599
2599
  key: 0,
2600
- id: X.value,
2601
- for: ae.value,
2600
+ id: ae.value,
2601
+ for: ie.value,
2602
2602
  class: "g-multiselect-label"
2603
2603
  }, [c(N(t.label), 1), t.required ? (w(), o("span", or, " *")) : a("", !0)], 8, ar)),
2604
2604
  t.instructions ? (w(), o("div", {
@@ -2610,12 +2610,12 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
2610
2610
  ref_key: "controlRef",
2611
2611
  ref: m,
2612
2612
  class: _(["g-multiselect-control", { "g-multiselect-control--disabled": t.disabled }]),
2613
- onClick: W
2613
+ onClick: G
2614
2614
  }, [
2615
2615
  d.value.length ? (w(), o("ul", {
2616
2616
  key: 0,
2617
2617
  class: "g-multiselect-chips",
2618
- "aria-labelledby": X.value
2618
+ "aria-labelledby": ae.value
2619
2619
  }, [(w(!0), o(e, null, O(d.value, (e) => (w(), o("li", {
2620
2620
  key: e,
2621
2621
  class: "g-multiselect-chip"
@@ -2624,8 +2624,8 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
2624
2624
  class: "g-multiselect-chip-remove",
2625
2625
  "aria-label": `Remove ${R(e)}`,
2626
2626
  disabled: t.disabled,
2627
- onMousedown: ie,
2628
- onClick: K((t) => ee(e), ["stop"])
2627
+ onMousedown: Y,
2628
+ onClick: q((t) => W(e), ["stop"])
2629
2629
  }, [...r[0] ||= [s("svg", {
2630
2630
  xmlns: "http://www.w3.org/2000/svg",
2631
2631
  viewBox: "0 0 51.26 51.26",
@@ -2641,7 +2641,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
2641
2641
  type: "text",
2642
2642
  role: "combobox",
2643
2643
  class: "g-multiselect-input",
2644
- id: ae.value,
2644
+ id: ie.value,
2645
2645
  value: x.value,
2646
2646
  placeholder: d.value.length === 0 ? t.placeholder : void 0,
2647
2647
  disabled: t.disabled,
@@ -2652,12 +2652,12 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
2652
2652
  "aria-controls": L(f) + "-listbox",
2653
2653
  "aria-activedescendant": y.value && P.value.length > 0 ? L(f) + "-option-" + b.value : void 0
2654
2654
  }, t.hiddenLabel ? { "aria-label": t.label } : void 0, {
2655
- "aria-describedby": se.value,
2655
+ "aria-describedby": oe.value,
2656
2656
  "aria-required": t.required ? "true" : void 0,
2657
- onInput: ne,
2658
- onKeydown: Y,
2659
- onFocus: G,
2660
- onBlur: q
2657
+ onInput: te,
2658
+ onKeydown: X,
2659
+ onFocus: K,
2660
+ onBlur: re
2661
2661
  }), null, 16, dr),
2662
2662
  r[2] ||= s("svg", {
2663
2663
  class: "g-multiselect-caret",
@@ -2669,13 +2669,13 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
2669
2669
  fill: "currentColor",
2670
2670
  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"
2671
2671
  })], -1),
2672
- re(s("div", h({
2672
+ ne(s("div", h({
2673
2673
  ref_key: "listboxRef",
2674
2674
  ref: v,
2675
2675
  id: L(f) + "-listbox",
2676
2676
  role: "listbox",
2677
2677
  "aria-multiselectable": "true"
2678
- }, t.hiddenLabel ? { "aria-label": t.label } : { "aria-labelledby": X.value }, {
2678
+ }, t.hiddenLabel ? { "aria-label": t.label } : { "aria-labelledby": ae.value }, {
2679
2679
  class: ["g-multiselect-listbox", { "g-multiselect-listbox--above": L(E) === "above" }],
2680
2680
  style: L(k),
2681
2681
  tabindex: "-1"
@@ -2690,11 +2690,11 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
2690
2690
  "aria-selected": I(e.value) ? "true" : "false",
2691
2691
  onMousedown: J,
2692
2692
  onClick: (e) => U(t)
2693
- }, [s("span", mr, [I(e.value) ? (w(), o("svg", hr, [...r[1] ||= [s("path", { d: "M530.8 134.1C545.1 144.5 548.3 164.5 537.9 178.8L281.9 530.8C276.4 538.4 267.9 543.1 258.5 543.9C249.1 544.7 240 541.2 233.4 534.6L105.4 406.6C92.9 394.1 92.9 373.8 105.4 361.3C117.9 348.8 138.2 348.8 150.7 361.3L252.2 462.8L486.2 141.1C496.6 126.8 516.6 123.6 530.9 134z" }, null, -1)]])) : a("", !0)]), s("span", gr, [s("span", _r, N(e.label), 1), e.description ? (w(), o("span", vr, N(e.description), 1)) : a("", !0)])], 42, pr))), 128)) : (w(), o("div", yr, " No results found. "))], 16, fr), [[te, y.value]])
2693
+ }, [s("span", mr, [I(e.value) ? (w(), o("svg", hr, [...r[1] ||= [s("path", { d: "M530.8 134.1C545.1 144.5 548.3 164.5 537.9 178.8L281.9 530.8C276.4 538.4 267.9 543.1 258.5 543.9C249.1 544.7 240 541.2 233.4 534.6L105.4 406.6C92.9 394.1 92.9 373.8 105.4 361.3C117.9 348.8 138.2 348.8 150.7 361.3L252.2 462.8L486.2 141.1C496.6 126.8 516.6 123.6 530.9 134z" }, null, -1)]])) : a("", !0)]), s("span", gr, [s("span", _r, N(e.label), 1), e.description ? (w(), o("span", vr, N(e.description), 1)) : a("", !0)])], 42, pr))), 128)) : (w(), o("div", yr, " No results found. "))], 16, fr), [[ee, y.value]])
2694
2694
  ], 2),
2695
2695
  l(Me, {
2696
2696
  errors: L(C),
2697
- id: oe.value
2697
+ id: Q.value
2698
2698
  }, null, 8, ["errors", "id"])
2699
2699
  ], 2));
2700
2700
  }
@@ -2781,7 +2781,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
2781
2781
  };
2782
2782
  }
2783
2783
  return (n, r) => (w(), i(A(C.value ? "fieldset" : "div"), h({ class: ["g-checkbox-group", { "g-checkbox-group--error": L(m) }] }, T.value), {
2784
- default: G(() => [
2784
+ default: K(() => [
2785
2785
  C.value && t.label ? (w(), o("legend", xr, [c(N(t.label), 1), t.required ? (w(), o("span", Sr, "\xA0*")) : a("", !0)])) : !C.value && t.label ? (w(), o("div", Cr, [c(N(t.label), 1), t.required ? (w(), o("span", wr, "\xA0*")) : a("", !0)])) : a("", !0),
2786
2786
  t.instructions ? (w(), o("div", {
2787
2787
  key: 2,
@@ -2816,31 +2816,285 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
2816
2816
  _: 1
2817
2817
  }, 16, ["class"]));
2818
2818
  }
2819
+ }), Mr = {
2820
+ class: "g-pagination",
2821
+ "aria-label": "Pagination"
2822
+ }, Nr = ["disabled"], Pr = ["disabled"], Fr = { class: "page-range" }, Ir = ["disabled"], Lr = ["disabled"], Rr = { class: "g-pagination-page-size" }, zr = { class: "page-size-select-wrap" }, Br = ["id", "value"], Vr = ["value"], Hr = ["for"], Ur = { class: "g-pagination-overflow" }, Wr = ["onClick"], Gr = { class: "g-pagination-overflow-popover" }, Kr = { class: "g-pagination-overflow-page-size" }, qr = ["for"], Jr = { class: "page-size-select-wrap" }, Yr = ["id", "value"], Xr = ["value"], Zr = { class: "g-pagination-overflow-actions" }, Qr = ["disabled"], $r = ["disabled"], ei = /* @__PURE__ */ u({
2823
+ __name: "GTablePagination",
2824
+ props: /*@__PURE__*/ m({
2825
+ start: {},
2826
+ pageSize: {},
2827
+ total: {},
2828
+ pageSizes: {}
2829
+ }, {
2830
+ start: {},
2831
+ startModifiers: {},
2832
+ pageSize: {},
2833
+ pageSizeModifiers: {}
2834
+ }),
2835
+ emits: ["update:start", "update:pageSize"],
2836
+ setup(t) {
2837
+ let n = t, i = r(() => Math.max(1, Math.ceil(n.total / n.pageSize))), a = B(t, "start"), u = B(t, "pageSize"), d = z(), f = z(), p = r(() => a.value ?? n.start), m = r(() => u.value ?? n.pageSize), h = r(() => n.pageSizes || [
2838
+ 10,
2839
+ 25,
2840
+ 50,
2841
+ 100
2842
+ ]), g = r(() => b.value === 1), _ = r(() => b.value === i.value), v = r(() => n.total === 0 ? 0 : p.value + 1), y = r(() => n.total === 0 ? 0 : Math.min(p.value + m.value, n.total)), b = r(() => Math.floor(p.value / m.value) + 1);
2843
+ function x(e) {
2844
+ e < 1 || e > i.value || (a.value = (e - 1) * m.value);
2845
+ }
2846
+ function S(e) {
2847
+ u.value = parseInt(e.target.value, 10), a.value = 0;
2848
+ }
2849
+ return (t, n) => (w(), o("nav", Mr, [
2850
+ s("button", {
2851
+ class: "first-page g-pagination-button",
2852
+ type: "button",
2853
+ disabled: g.value,
2854
+ onClick: n[0] ||= (e) => x(1)
2855
+ }, [...n[6] ||= [s("svg", {
2856
+ role: "img",
2857
+ "aria-label": "First Page",
2858
+ height: "2em",
2859
+ xmlns: "http://www.w3.org/2000/svg",
2860
+ width: "2em",
2861
+ viewBox: "0 0 24 24",
2862
+ fill: "none",
2863
+ stroke: "currentColor",
2864
+ "stroke-width": "2",
2865
+ "stroke-linecap": "round",
2866
+ "stroke-linejoin": "round"
2867
+ }, [
2868
+ s("path", {
2869
+ stroke: "none",
2870
+ d: "M0 0h24v24H0z",
2871
+ fill: "none"
2872
+ }),
2873
+ s("path", { d: "M11 7l-5 5l5 5" }),
2874
+ s("path", { d: "M17 7l-5 5l5 5" })
2875
+ ], -1)]], 8, Nr),
2876
+ s("button", {
2877
+ class: "prev-page g-pagination-button",
2878
+ type: "button",
2879
+ disabled: g.value,
2880
+ onClick: n[1] ||= (e) => x(b.value - 1)
2881
+ }, [...n[7] ||= [s("svg", {
2882
+ role: "img",
2883
+ "aria-label": "Previous Page",
2884
+ xmlns: "http://www.w3.org/2000/svg",
2885
+ width: "2em",
2886
+ height: "2em",
2887
+ viewBox: "0 0 24 24",
2888
+ fill: "none",
2889
+ stroke: "currentColor",
2890
+ "stroke-width": "2",
2891
+ "stroke-linecap": "round",
2892
+ "stroke-linejoin": "round"
2893
+ }, [s("path", {
2894
+ stroke: "none",
2895
+ d: "M0 0h24v24H0z",
2896
+ fill: "none"
2897
+ }), s("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8, Pr),
2898
+ s("span", Fr, N(v.value) + " to " + N(y.value), 1),
2899
+ s("button", {
2900
+ class: "next-page g-pagination-button",
2901
+ type: "button",
2902
+ disabled: _.value,
2903
+ onClick: n[2] ||= (e) => x(b.value + 1)
2904
+ }, [...n[8] ||= [s("svg", {
2905
+ role: "img",
2906
+ "aria-label": "Next Page",
2907
+ xmlns: "http://www.w3.org/2000/svg",
2908
+ width: "2em",
2909
+ height: "2em",
2910
+ viewBox: "0 0 24 24",
2911
+ fill: "none",
2912
+ stroke: "currentColor",
2913
+ "stroke-width": "2",
2914
+ "stroke-linecap": "round",
2915
+ "stroke-linejoin": "round"
2916
+ }, [s("path", {
2917
+ stroke: "none",
2918
+ d: "M0 0h24v24H0z",
2919
+ fill: "none"
2920
+ }), s("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8, Ir),
2921
+ s("button", {
2922
+ class: "last-page g-pagination-button",
2923
+ type: "button",
2924
+ disabled: _.value,
2925
+ onClick: n[3] ||= (e) => x(i.value)
2926
+ }, [...n[9] ||= [s("svg", {
2927
+ role: "img",
2928
+ "aria-label": "Last Page",
2929
+ xmlns: "http://www.w3.org/2000/svg",
2930
+ width: "2em",
2931
+ height: "2em",
2932
+ viewBox: "0 0 24 24",
2933
+ fill: "none",
2934
+ stroke: "currentColor",
2935
+ "stroke-width": "2",
2936
+ "stroke-linecap": "round",
2937
+ "stroke-linejoin": "round"
2938
+ }, [
2939
+ s("path", {
2940
+ stroke: "none",
2941
+ d: "M0 0h24v24H0z",
2942
+ fill: "none"
2943
+ }),
2944
+ s("path", { d: "M7 7l5 5l-5 5" }),
2945
+ s("path", { d: "M13 7l5 5l-5 5" })
2946
+ ], -1)]], 8, Lr),
2947
+ s("div", Rr, [s("div", zr, [s("select", {
2948
+ id: L(d),
2949
+ class: "page-size-select",
2950
+ value: m.value,
2951
+ onChange: S
2952
+ }, [(w(!0), o(e, null, O(h.value, (e) => (w(), o("option", {
2953
+ key: e,
2954
+ value: e
2955
+ }, N(e), 9, Vr))), 128))], 40, Br), n[10] ||= s("span", {
2956
+ class: "page-size-select-caret",
2957
+ "aria-hidden": "true"
2958
+ }, [s("svg", {
2959
+ xmlns: "http://www.w3.org/2000/svg",
2960
+ viewBox: "0 0 640 640",
2961
+ width: "1em",
2962
+ height: "1em"
2963
+ }, [s("path", {
2964
+ fill: "currentColor",
2965
+ d: "M300.3 439.8C312.8 450.1 331.3 449.3 343.1 437.6L471.1 309.6C480.3 300.4 483 286.7 478 274.7C473 262.7 461.4 255 448.5 255L192.5 255C179.6 255 167.9 262.8 162.9 274.8C157.9 286.8 160.7 300.5 169.9 309.6L297.9 437.6L300.3 439.8z"
2966
+ })])], -1)]), s("label", {
2967
+ class: "page-size-label",
2968
+ for: L(d)
2969
+ }, " per page ", 8, Hr)]),
2970
+ s("div", Ur, [l(ot, null, {
2971
+ trigger: K(({ toggle: e }) => [s("button", {
2972
+ type: "button",
2973
+ class: "g-pagination-button g-pagination-overflow-trigger",
2974
+ "aria-label": "More pagination options",
2975
+ onClick: e
2976
+ }, [...n[11] ||= [s("svg", {
2977
+ xmlns: "http://www.w3.org/2000/svg",
2978
+ viewBox: "0 0 640 640",
2979
+ width: "2em",
2980
+ height: "2em",
2981
+ "aria-hidden": "true"
2982
+ }, [s("path", {
2983
+ fill: "currentColor",
2984
+ d: "M96 320C96 284.7 124.7 256 160 256C195.3 256 224 284.7 224 320C224 355.3 195.3 384 160 384C124.7 384 96 355.3 96 320zM256 320C256 284.7 284.7 256 320 256C355.3 256 384 284.7 384 320C384 355.3 355.3 384 320 384C284.7 384 256 355.3 256 320zM480 256C515.3 256 544 284.7 544 320C544 355.3 515.3 384 480 384C444.7 384 416 355.3 416 320C416 284.7 444.7 256 480 256z"
2985
+ })], -1)]], 8, Wr)]),
2986
+ default: K(() => [s("div", Gr, [
2987
+ n[15] ||= s("h2", {
2988
+ class: "g-pagination-overflow-title",
2989
+ tabindex: "-1",
2990
+ "popover-focus": ""
2991
+ }, " Pagination options ", -1),
2992
+ s("div", Kr, [s("label", {
2993
+ class: "page-size-label",
2994
+ for: L(f)
2995
+ }, " Rows per page ", 8, qr), s("div", Jr, [s("select", {
2996
+ id: L(f),
2997
+ class: "page-size-select",
2998
+ value: m.value,
2999
+ onChange: S
3000
+ }, [(w(!0), o(e, null, O(h.value, (e) => (w(), o("option", {
3001
+ key: `overflow-${e}`,
3002
+ value: e
3003
+ }, N(e), 9, Xr))), 128))], 40, Yr), n[12] ||= s("span", {
3004
+ class: "page-size-select-caret",
3005
+ "aria-hidden": "true"
3006
+ }, [s("svg", {
3007
+ xmlns: "http://www.w3.org/2000/svg",
3008
+ viewBox: "0 0 640 640",
3009
+ width: "1em",
3010
+ height: "1em"
3011
+ }, [s("path", {
3012
+ fill: "currentColor",
3013
+ d: "M300.3 439.8C312.8 450.1 331.3 449.3 343.1 437.6L471.1 309.6C480.3 300.4 483 286.7 478 274.7C473 262.7 461.4 255 448.5 255L192.5 255C179.6 255 167.9 262.8 162.9 274.8C157.9 286.8 160.7 300.5 169.9 309.6L297.9 437.6L300.3 439.8z"
3014
+ })])], -1)])]),
3015
+ s("div", Zr, [s("button", {
3016
+ type: "button",
3017
+ class: "g-pagination-overflow-action",
3018
+ disabled: g.value,
3019
+ onClick: n[4] ||= (e) => x(1)
3020
+ }, [...n[13] ||= [s("span", {
3021
+ class: "g-pagination-overflow-action-icon",
3022
+ "aria-hidden": "true"
3023
+ }, [s("svg", {
3024
+ xmlns: "http://www.w3.org/2000/svg",
3025
+ width: "1em",
3026
+ height: "1em",
3027
+ viewBox: "0 0 24 24",
3028
+ fill: "none",
3029
+ stroke: "currentColor",
3030
+ "stroke-width": "2",
3031
+ "stroke-linecap": "round",
3032
+ "stroke-linejoin": "round"
3033
+ }, [
3034
+ s("path", {
3035
+ stroke: "none",
3036
+ d: "M0 0h24v24H0z",
3037
+ fill: "none"
3038
+ }),
3039
+ s("path", { d: "M11 7l-5 5l5 5" }),
3040
+ s("path", { d: "M17 7l-5 5l5 5" })
3041
+ ])], -1), c(" First Page ", -1)]], 8, Qr), s("button", {
3042
+ type: "button",
3043
+ class: "g-pagination-overflow-action",
3044
+ disabled: _.value,
3045
+ onClick: n[5] ||= (e) => x(i.value)
3046
+ }, [...n[14] ||= [s("span", {
3047
+ class: "g-pagination-overflow-action-icon",
3048
+ "aria-hidden": "true"
3049
+ }, [s("svg", {
3050
+ xmlns: "http://www.w3.org/2000/svg",
3051
+ width: "1em",
3052
+ height: "1em",
3053
+ viewBox: "0 0 24 24",
3054
+ fill: "none",
3055
+ stroke: "currentColor",
3056
+ "stroke-width": "2",
3057
+ "stroke-linecap": "round",
3058
+ "stroke-linejoin": "round"
3059
+ }, [
3060
+ s("path", {
3061
+ stroke: "none",
3062
+ d: "M0 0h24v24H0z",
3063
+ fill: "none"
3064
+ }),
3065
+ s("path", { d: "M7 7l5 5l-5 5" }),
3066
+ s("path", { d: "M13 7l5 5l-5 5" })
3067
+ ])], -1), c(" Last Page ", -1)]], 8, $r)])
3068
+ ])]),
3069
+ _: 1
3070
+ })])
3071
+ ]));
3072
+ }
2819
3073
  });
2820
3074
  //#endregion
2821
3075
  //#region src/compose/useFiltering.ts
2822
- function Mr(e) {
3076
+ function ti(e) {
2823
3077
  if (!(Array.isArray(e) && e.length === 0) && e !== null && e !== !1 && e !== "") return e;
2824
3078
  }
2825
- function Nr(e) {
3079
+ function ni(e) {
2826
3080
  return Object.fromEntries(Object.entries(e).filter(([e, t]) => t && (!Array.isArray(t) || t.length > 0)));
2827
3081
  }
2828
- function Pr(e) {
3082
+ function ri(e) {
2829
3083
  if (e != null) return Array.isArray(e) ? e.filter((e) => e != null) : [e];
2830
3084
  }
2831
- function Fr(e) {
3085
+ function ii(e) {
2832
3086
  let t = {};
2833
3087
  for (let [n, r] of Object.entries(P(e))) Array.isArray(r) ? r.length > 0 && (t[n] = r) : t[n] = r === !0 ? "true" : r || void 0;
2834
3088
  return t;
2835
3089
  }
2836
- function Ir(e) {
3090
+ function ai(e) {
2837
3091
  let t = {};
2838
3092
  return Object.keys(e).forEach((n) => {
2839
3093
  let r = e[n];
2840
3094
  r != null && r !== "" && r !== !1 && (Array.isArray(r) ? r.length > 0 && (t[n] = r.map((e) => String(e))) : t[n] = String(r));
2841
3095
  }), t;
2842
3096
  }
2843
- function Lr(e, t = {}) {
3097
+ function oi(e, t = {}) {
2844
3098
  let n = E(Object.fromEntries(Object.entries(e).map(([e, t]) => [e, t]))), i = t.syncWith;
2845
3099
  if (i) {
2846
3100
  if (i.value) {
@@ -2852,14 +3106,14 @@ function Lr(e, t = {}) {
2852
3106
  }
2853
3107
  });
2854
3108
  }
2855
- W(n, (e) => {
2856
- i.value = Ir(e);
3109
+ G(n, (e) => {
3110
+ i.value = ai(e);
2857
3111
  }, { deep: !0 });
2858
3112
  }
2859
3113
  return {
2860
3114
  filters: n,
2861
3115
  isFiltered: r(() => {
2862
- for (let t of Object.keys(e)) if (Mr(n[t])) return !0;
3116
+ for (let t of Object.keys(e)) if (ti(n[t])) return !0;
2863
3117
  return !1;
2864
3118
  }),
2865
3119
  clearFilters: () => {
@@ -2869,94 +3123,97 @@ function Lr(e, t = {}) {
2869
3123
  },
2870
3124
  filteredColumns: r(() => {
2871
3125
  let t = {};
2872
- for (let r of Object.keys(e)) t[r] = !!Mr(n[r]);
3126
+ for (let r of Object.keys(e)) t[r] = !!ti(n[r]);
2873
3127
  return t;
2874
3128
  })
2875
3129
  };
2876
3130
  }
2877
3131
  //#endregion
2878
3132
  //#region src/components/GTable.vue?vue&type=script&setup=true&lang.ts
2879
- var Rr = { class: "g-table-outer-wrap" }, zr = {
3133
+ var si = { class: "g-table-outer-wrap" }, ci = {
2880
3134
  key: 0,
2881
3135
  class: "g-table-controls"
2882
- }, Br = { class: "g-table-control-actions" }, Vr = {
3136
+ }, li = { class: "g-table-control-actions" }, ui = {
2883
3137
  key: 0,
2884
3138
  class: "g-sort-builder-wrap"
2885
- }, Hr = {
3139
+ }, di = {
2886
3140
  key: 0,
2887
3141
  class: "g-sort-builder-count"
2888
- }, Ur = {
3142
+ }, fi = {
2889
3143
  key: 0,
2890
3144
  class: "g-sort-builder-list"
2891
- }, Wr = ["data-sort-row-key", "aria-label"], Gr = {
3145
+ }, pi = ["data-sort-row-key", "aria-label"], mi = {
2892
3146
  class: "g-sort-builder-rule-priority",
2893
3147
  "aria-hidden": "true"
2894
- }, Kr = { class: "g-sort-builder-rule-label" }, qr = ["aria-label", "onClick"], Jr = { class: "g-visually-hidden" }, Yr = {
3148
+ }, hi = { class: "g-sort-builder-rule-label" }, gi = ["aria-label", "onClick"], _i = { class: "g-visually-hidden" }, vi = {
2895
3149
  class: "sort-indicator",
2896
3150
  "aria-hidden": "true"
2897
- }, Xr = ["aria-label", "onClick"], Zr = {
3151
+ }, yi = ["aria-label", "onClick"], bi = {
2898
3152
  key: 1,
2899
3153
  class: "g-sort-builder-empty"
2900
- }, Qr = {
3154
+ }, xi = {
2901
3155
  key: 2,
2902
3156
  class: "g-sort-builder-add"
2903
- }, $r = { class: "g-sort-builder-add-list" }, ei = { class: "g-sort-builder-add-name" }, ti = { class: "g-sort-builder-add-actions" }, ni = ["aria-label", "onClick"], ri = ["aria-label", "onClick"], ii = {
3157
+ }, Si = { class: "g-sort-builder-add-list" }, Ci = { class: "g-sort-builder-add-name" }, wi = { class: "g-sort-builder-add-actions" }, Ti = ["aria-label", "onClick"], Ei = ["aria-label", "onClick"], Di = {
2904
3158
  class: "sort-indicator",
2905
3159
  "aria-hidden": "true"
2906
- }, ai = {
3160
+ }, Oi = {
2907
3161
  xmlns: "http://www.w3.org/2000/svg",
2908
3162
  viewBox: "0 0 640 640",
2909
3163
  height: "1.25em",
2910
3164
  style: { transform: "rotate(180deg)" }
2911
- }, oi = {
3165
+ }, ki = {
2912
3166
  key: 1,
2913
3167
  class: "g-column-visibility-wrap"
2914
- }, si = {
3168
+ }, Ai = {
2915
3169
  xmlns: "http://www.w3.org/2000/svg",
2916
3170
  viewBox: "0 0 640 640",
2917
3171
  height: "1.5em",
2918
3172
  style: { transform: "rotate(90deg)" },
2919
3173
  "aria-hidden": "true"
2920
- }, ci = { class: "g-column-visibility-popover" }, li = { class: "g-column-visibility-list" }, ui = ["checked", "onChange"], di = { class: "g-clear-filters-wrap" }, fi = {
3174
+ }, ji = ["aria-labelledby"], Mi = { class: "g-column-visibility-header" }, Ni = ["id"], Pi = { class: "g-column-visibility-legend-action" }, Fi = { class: "g-column-visibility-list" }, Ii = ["checked", "onChange"], Li = {
3175
+ key: 2,
3176
+ class: "g-table-custom-controls"
3177
+ }, Ri = { class: "g-clear-filters-wrap" }, zi = {
2921
3178
  key: 0,
2922
3179
  class: "pagination"
2923
- }, pi = { class: "g-result-count" }, mi = ["aria-label", "aria-rowcount"], hi = { class: "g-table-head" }, gi = { "aria-rowindex": "1" }, _i = {
3180
+ }, Bi = { class: "g-result-count" }, Vi = { class: "g-table-table-wrap" }, Hi = ["aria-label", "aria-rowcount"], Ui = { class: "g-table-head" }, Wi = { "aria-rowindex": "1" }, Gi = {
2924
3181
  key: 0,
2925
3182
  scope: "col",
2926
3183
  class: "g-th g-th-checkbox"
2927
- }, vi = [
3184
+ }, Ki = [
2928
3185
  "checked",
2929
3186
  "indeterminate",
2930
3187
  "aria-label"
2931
- ], yi = ["id", "aria-sort"], bi = { class: "th-inner" }, xi = ["onClick"], Si = {
3188
+ ], qi = ["id", "aria-sort"], Ji = { class: "th-inner" }, Yi = ["onClick"], Xi = {
2932
3189
  key: 0,
2933
3190
  class: "sort-indicator",
2934
3191
  "aria-hidden": "true"
2935
- }, Ci = {
3192
+ }, Zi = {
2936
3193
  key: 1,
2937
3194
  class: "g-visually-hidden"
2938
- }, wi = {
3195
+ }, Qi = {
2939
3196
  key: 1,
2940
3197
  class: "g-column-head"
2941
- }, Ti = ["onClick", "aria-label"], Ei = {
3198
+ }, $i = ["onClick", "aria-label"], ea = {
2942
3199
  key: 1,
2943
3200
  class: "g-filter-search",
2944
3201
  role: "search"
2945
- }, Di = [
3202
+ }, ta = [
2946
3203
  "onUpdate:modelValue",
2947
3204
  "placeholder",
2948
3205
  "aria-label"
2949
- ], Oi = { key: 2 }, ki = { class: "g-filter-toggle" }, Ai = [
3206
+ ], na = { key: 2 }, ra = { class: "g-filter-toggle" }, ia = [
2950
3207
  "onUpdate:modelValue",
2951
3208
  "id",
2952
3209
  "aria-describedby"
2953
- ], ji = ["for"], Mi = ["id"], Ni = {
3210
+ ], aa = ["for"], oa = ["id"], sa = {
2954
3211
  key: 4,
2955
3212
  class: "g-multi-select"
2956
- }, Pi = {
3213
+ }, ca = {
2957
3214
  key: 1,
2958
3215
  class: "g-bulk-actions-toolbar"
2959
- }, Fi = { class: "g-selected-count" }, Ii = { class: "g-bulk-actions" }, Li = /* @__PURE__ */ u({
3216
+ }, la = { class: "g-selected-count" }, ua = { class: "g-bulk-actions" }, da = /* @__PURE__ */ u({
2960
3217
  __name: "GTable",
2961
3218
  props: /*@__PURE__*/ m({
2962
3219
  label: {},
@@ -2969,13 +3226,20 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
2969
3226
  rowClickable: { type: Boolean },
2970
3227
  rowClass: {},
2971
3228
  startIndex: {},
3229
+ pageSize: {},
3230
+ pageSizes: { default: () => [
3231
+ 10,
3232
+ 25,
3233
+ 50,
3234
+ 100
3235
+ ] },
2972
3236
  bulkSelectionEnabled: {
2973
3237
  type: Boolean,
2974
3238
  default: !1
2975
3239
  },
2976
3240
  bulkActions: { default: () => [] },
2977
3241
  changeTracker: {},
2978
- showPagination: {
3242
+ pagination: {
2979
3243
  type: Boolean,
2980
3244
  default: !1
2981
3245
  }
@@ -2992,7 +3256,9 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
2992
3256
  emits: /*@__PURE__*/ m([
2993
3257
  "row-click",
2994
3258
  "bulk-action",
2995
- "cell-change"
3259
+ "cell-change",
3260
+ "update:startIndex",
3261
+ "update:pageSize"
2996
3262
  ], [
2997
3263
  "update:sorts",
2998
3264
  "update:filter",
@@ -3001,7 +3267,7 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
3001
3267
  ]),
3002
3268
  setup(t, { emit: n }) {
3003
3269
  let u = B(t, "sorts"), f = B(t, "filter"), p = B(t, "columnVisibility"), m = B(t, "selectedRows"), h = t, v = n, b = h.filtering;
3004
- b ||= Lr({});
3270
+ b ||= oi({});
3005
3271
  let { filters: x, filteredColumns: C, isFiltered: T, clearFilters: E } = b, A = r(() => h.data.map((e) => e.key)), j = r(() => m.value.filter((e) => A.value.includes(e))), M = r(() => !h.bulkSelectionEnabled || h.data.length === 0 ? !1 : j.value.length === A.value.length), F = r(() => !h.bulkSelectionEnabled || h.data.length === 0 ? !1 : j.value.length > 0 && j.value.length < A.value.length), I = D(null);
3006
3272
  function R() {
3007
3273
  if (M.value) m.value = m.value.filter((e) => !A.value.includes(e));
@@ -3020,13 +3286,13 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
3020
3286
  } else m.value.includes(e) ? m.value = m.value.filter((t) => t !== e) : m.value = [...m.value, e];
3021
3287
  I.value = e;
3022
3288
  }
3023
- function te(e) {
3289
+ function ee(e) {
3024
3290
  v("row-click", e);
3025
3291
  }
3026
- function W(e) {
3292
+ function G(e) {
3027
3293
  v("bulk-action", e, m.value);
3028
3294
  }
3029
- function ne(e) {
3295
+ function te(e) {
3030
3296
  let t = e.value, n = e.column.key, r = P(e.row[n]);
3031
3297
  e.column.editable?.inputAttributes?.type === "number" && (t = e.value === "" ? null : Number(e.value)), e.row[n] = t;
3032
3298
  let i = {
@@ -3037,95 +3303,107 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
3037
3303
  };
3038
3304
  v("cell-change", i);
3039
3305
  }
3040
- let q = z(), J = V(), ie = d(), Y = D(null);
3306
+ function re(e) {
3307
+ v("update:startIndex", e ?? 0);
3308
+ }
3309
+ function J(e) {
3310
+ e !== void 0 && v("update:pageSize", e);
3311
+ }
3312
+ let Y = z(), X = d(), ie = D(null);
3041
3313
  function ae(e) {
3042
3314
  let t = /* @__PURE__ */ new Set();
3043
3315
  return e.filter((e) => !e?.key || t.has(String(e.key)) ? !1 : (t.add(String(e.key)), e.order === 1 || e.order === -1));
3044
3316
  }
3045
- function X(e, t) {
3317
+ function Z(e, t) {
3046
3318
  return {
3047
3319
  key: e,
3048
3320
  order: t
3049
3321
  };
3050
3322
  }
3051
- let Z = r(() => ae(u.value));
3323
+ let Q = r(() => ae(u.value));
3052
3324
  function oe(e) {
3053
3325
  u.value = ae(e);
3054
3326
  }
3055
3327
  let se = r(() => h.columns.filter((e) => e.sortable)), ce = r(() => se.value.length > 1), le = r(() => {
3056
- let e = new Set(Z.value.map((e) => String(e.key)));
3328
+ let e = new Set(Q.value.map((e) => String(e.key)));
3057
3329
  return se.value.filter((t) => !e.has(String(t.key)));
3058
3330
  });
3059
3331
  function ue(e) {
3060
- return Z.value.findIndex((t) => t.key === e);
3332
+ return Q.value.findIndex((t) => t.key === e);
3061
3333
  }
3062
3334
  function de(e) {
3063
- return Z.value.find((t) => t.key === e);
3064
- }
3065
- function Q(e) {
3066
- return h.columns.find((t) => t.key === e)?.label || String(e);
3335
+ return Q.value.find((t) => t.key === e);
3067
3336
  }
3068
3337
  function fe(e) {
3069
- let t = ue(e);
3070
- return t === -1 ? "none" : t > 0 ? "other" : Z.value[0]?.order === 1 ? "ascending" : "descending";
3338
+ return h.columns.find((t) => t.key === e)?.label || String(e);
3071
3339
  }
3072
3340
  function pe(e) {
3073
3341
  let t = ue(e);
3074
- if (t === -1) return "";
3075
- let n = Z.value[t].order === 1 ? "ascending" : "descending";
3076
- return Z.value.length > 1 ? `Sorted ${n}, priority ${t + 1}` : `Sorted ${n}`;
3342
+ return t === -1 ? "none" : t > 0 ? "other" : Q.value[0]?.order === 1 ? "ascending" : "descending";
3077
3343
  }
3078
3344
  function me(e) {
3079
- return e === 1 ? "Ascending" : "Descending";
3345
+ let t = ue(e);
3346
+ if (t === -1) return "";
3347
+ let n = Q.value[t].order === 1 ? "ascending" : "descending";
3348
+ return Q.value.length > 1 ? `Sorted ${n}, priority ${t + 1}` : `Sorted ${n}`;
3080
3349
  }
3081
3350
  function he(e) {
3082
- let t = Z.value[0]?.key === e ? Z.value[0] : void 0;
3083
- return t ? t.order === 1 ? [X(e, -1)] : [] : [X(e, 1)];
3351
+ return e === 1 ? "Ascending" : "Descending";
3084
3352
  }
3085
3353
  function ge(e) {
3086
- let t = [...Z.value], n = t.findIndex((t) => t.key === e);
3087
- return n === -1 ? (t.push(X(e, 1)), t) : t[n].order === 1 ? (t[n] = X(e, -1), t) : (t.splice(n, 1), t);
3354
+ let t = Q.value[0]?.key === e ? Q.value[0] : void 0;
3355
+ return t ? t.order === 1 ? [Z(e, -1)] : [] : [Z(e, 1)];
3356
+ }
3357
+ function _e(e) {
3358
+ let t = [...Q.value], n = t.findIndex((t) => t.key === e);
3359
+ return n === -1 ? (t.push(Z(e, 1)), t) : t[n].order === 1 ? (t[n] = Z(e, -1), t) : (t.splice(n, 1), t);
3088
3360
  }
3089
- function _e(e, t = !1) {
3361
+ function ve(e, t = !1) {
3090
3362
  if (!e.sortable) return;
3091
3363
  let n = e.key;
3092
- oe(t ? ge(n) : he(n));
3364
+ oe(t ? _e(n) : ge(n));
3093
3365
  }
3094
- function ve(e, t) {
3095
- oe([...Z.value, X(e, t)]), g(() => {
3096
- let t = Y.value;
3366
+ function ye(e, t) {
3367
+ oe([...Q.value, Z(e, t)]), g(() => {
3368
+ let t = ie.value;
3097
3369
  t && (t.querySelector(`[data-sort-row-key="${String(e)}"]`) ?? t)?.focus();
3098
3370
  }).catch((e) => {
3099
3371
  console.error(e);
3100
3372
  });
3101
3373
  }
3102
- function ye(e) {
3103
- oe(Z.value.map((t) => t.key === e ? X(t.key, t.order === 1 ? -1 : 1) : t));
3104
- }
3105
3374
  function be(e) {
3106
- oe(Z.value.filter((t) => t.key !== e));
3375
+ oe(Q.value.map((t) => t.key === e ? Z(t.key, t.order === 1 ? -1 : 1) : t));
3376
+ }
3377
+ function xe(e) {
3378
+ oe(Q.value.filter((t) => t.key !== e));
3107
3379
  }
3108
- function xe() {
3380
+ function Se() {
3109
3381
  oe([]);
3110
3382
  }
3111
- let Se = r(() => {
3112
- let e = ie?.vnode.props ?? {};
3383
+ let Ce = r(() => {
3384
+ let e = X?.vnode.props ?? {};
3113
3385
  return "columnVisibility" in e || "column-visibility" in e || "onUpdate:columnVisibility" in e;
3114
- }), Ce = r(() => {
3386
+ }), we = r(() => {
3115
3387
  let e = p.value;
3116
3388
  return h.columns.filter((t) => e[t.key] !== !1);
3117
- }), we = r(() => Ce.value.length !== h.columns.length), Te = r(() => Se.value && h.columns.length > 0);
3118
- function Ee(e) {
3389
+ }), Te = V(), Ee = r(() => we.value.length !== h.columns.length), De = r(() => Ce.value && h.columns.length > 0), Oe = r(() => !!Te.controls), ke = r(() => h.resultCount ?? h.data.length);
3390
+ function Ae(e) {
3119
3391
  return p.value[e.key] !== !1;
3120
3392
  }
3121
- function De(e, t) {
3393
+ function je(e, t) {
3122
3394
  p.value = {
3123
3395
  ...p.value,
3124
3396
  [e.key]: t
3125
3397
  };
3126
3398
  }
3127
- let Oe = r(() => h.showPagination ? !0 : !!J.pagination), ke = r(() => !!(ce.value || T.value || Oe.value || Te.value));
3128
- function Ae(e) {
3399
+ function Me() {
3400
+ p.value = h.columns.reduce((e, t) => ({
3401
+ ...e,
3402
+ [t.key]: !0
3403
+ }), { ...p.value });
3404
+ }
3405
+ let Ne = r(() => h.pagination && typeof h.pageSize == "number"), Pe = r(() => !!(ce.value || T.value || Ne.value || De.value || Oe.value));
3406
+ function Fe(e) {
3129
3407
  return e.filter?.type === "multi-select" ? e.filter.options.map((e) => ({
3130
3408
  label: e.label,
3131
3409
  value: e.value,
@@ -3135,17 +3413,17 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
3135
3413
  return S(() => {
3136
3414
  h.rowClickable && h.bulkSelectionEnabled && console.warn("GTable: rowClickable and bulkSelectionEnabled cannot be used together. rowClickable will be ignored.");
3137
3415
  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.`);
3138
- }), (n, r) => (w(), o("div", Rr, [
3139
- ke.value ? (w(), o("div", zr, [
3140
- s("div", Br, [
3141
- ce.value ? (w(), o("div", Vr, [l(ot, null, {
3142
- trigger: G(({ toggle: e }) => [l($, {
3416
+ }), (n, r) => (w(), o("div", si, [
3417
+ Pe.value ? (w(), o("div", ci, [
3418
+ s("div", li, [
3419
+ ce.value ? (w(), o("div", ui, [l(ot, null, {
3420
+ trigger: K(({ toggle: e }) => [l($, {
3143
3421
  size: "small",
3144
- class: _(["g-sort-builder-trigger", { "g-sort-builder-trigger--active": Z.value.length > 0 }]),
3422
+ class: _(["g-sort-builder-trigger", { "g-sort-builder-trigger--active": Q.value.length > 0 }]),
3145
3423
  "aria-label": "Choose sort order",
3146
3424
  onClick: e
3147
3425
  }, {
3148
- default: G(() => [r[0] ||= s("svg", {
3426
+ default: K(() => [r[0] ||= s("svg", {
3149
3427
  class: "g-sort-builder-trigger-icon",
3150
3428
  xmlns: "http://www.w3.org/2000/svg",
3151
3429
  viewBox: "0 0 640 640",
@@ -3154,33 +3432,33 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
3154
3432
  }, [s("path", {
3155
3433
  fill: "currentColor",
3156
3434
  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"
3157
- })], -1), Z.value.length ? (w(), o("span", Hr, N(Z.value.length), 1)) : a("", !0)]),
3435
+ })], -1), Q.value.length ? (w(), o("span", di, N(Q.value.length), 1)) : a("", !0)]),
3158
3436
  _: 1
3159
3437
  }, 8, ["class", "onClick"])]),
3160
- default: G(() => [s("fieldset", {
3438
+ default: K(() => [s("fieldset", {
3161
3439
  ref_key: "sortBuilderRef",
3162
- ref: Y,
3440
+ ref: ie,
3163
3441
  class: "g-sort-builder-popover",
3164
3442
  tabindex: "-1",
3165
3443
  "popover-focus": ""
3166
3444
  }, [
3167
3445
  r[7] ||= s("legend", { class: "g-sort-builder-legend" }, " Sort order ", -1),
3168
3446
  r[8] ||= 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),
3169
- Z.value.length ? (w(), o("ol", Ur, [(w(!0), o(e, null, O(Z.value, (e, t) => (w(), o("li", {
3447
+ Q.value.length ? (w(), o("ol", fi, [(w(!0), o(e, null, O(Q.value, (e, t) => (w(), o("li", {
3170
3448
  key: e.key,
3171
3449
  class: "g-sort-builder-rule",
3172
3450
  tabindex: "-1",
3173
3451
  "data-sort-row-key": String(e.key),
3174
- "aria-label": `${Q(e.key)} ${me(e.order)} sort, priority ${t + 1}`
3452
+ "aria-label": `${fe(e.key)} ${he(e.order)} sort, priority ${t + 1}`
3175
3453
  }, [
3176
- s("span", Gr, N(t + 1), 1),
3177
- s("span", Kr, N(Q(e.key)), 1),
3454
+ s("span", mi, N(t + 1), 1),
3455
+ s("span", hi, N(fe(e.key)), 1),
3178
3456
  s("button", {
3179
3457
  type: "button",
3180
3458
  class: "g-sort-builder-direction",
3181
- "aria-label": `Toggle ${Q(e.key)} sort direction`,
3182
- onClick: (t) => ye(e.key)
3183
- }, [s("span", Jr, N(me(e.order)), 1), s("span", Yr, [(w(), o("svg", {
3459
+ "aria-label": `Toggle ${fe(e.key)} sort direction`,
3460
+ onClick: (t) => be(e.key)
3461
+ }, [s("span", _i, N(he(e.order)), 1), s("span", vi, [(w(), o("svg", {
3184
3462
  xmlns: "http://www.w3.org/2000/svg",
3185
3463
  viewBox: "0 0 640 640",
3186
3464
  height: "1.25em",
@@ -3188,22 +3466,22 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
3188
3466
  }, [...r[1] ||= [s("path", {
3189
3467
  fill: "currentColor",
3190
3468
  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"
3191
- }, null, -1)]], 4))])], 8, qr),
3469
+ }, null, -1)]], 4))])], 8, gi),
3192
3470
  s("button", {
3193
3471
  type: "button",
3194
3472
  class: "g-sort-builder-remove",
3195
- "aria-label": `Remove ${Q(e.key)} sort`,
3196
- onClick: (t) => be(e.key)
3197
- }, " Remove ", 8, Xr)
3198
- ], 8, Wr))), 128))])) : (w(), o("p", Zr, " No active sort rules. ")),
3199
- le.value.length ? (w(), o("div", Qr, [r[5] ||= s("p", { class: "g-sort-builder-add-label" }, " Add sort column ", -1), s("ul", $r, [(w(!0), o(e, null, O(le.value, (e) => (w(), o("li", {
3473
+ "aria-label": `Remove ${fe(e.key)} sort`,
3474
+ onClick: (t) => xe(e.key)
3475
+ }, " Remove ", 8, yi)
3476
+ ], 8, pi))), 128))])) : (w(), o("p", bi, " No active sort rules. ")),
3477
+ le.value.length ? (w(), o("div", xi, [r[5] ||= s("p", { class: "g-sort-builder-add-label" }, " Add sort column ", -1), s("ul", Si, [(w(!0), o(e, null, O(le.value, (e) => (w(), o("li", {
3200
3478
  key: e.key,
3201
3479
  class: "g-sort-builder-add-item"
3202
- }, [s("span", ei, N(e.label), 1), s("div", ti, [s("button", {
3480
+ }, [s("span", Ci, N(e.label), 1), s("div", wi, [s("button", {
3203
3481
  type: "button",
3204
3482
  class: "g-sort-builder-direction",
3205
3483
  "aria-label": `Add ${e.label} ascending sort`,
3206
- onClick: (t) => ve(e.key, 1)
3484
+ onClick: (t) => ye(e.key, 1)
3207
3485
  }, [...r[2] ||= [s("span", { class: "g-visually-hidden" }, " Add ascending sort ", -1), s("span", {
3208
3486
  class: "sort-indicator",
3209
3487
  "aria-hidden": "true"
@@ -3214,103 +3492,131 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
3214
3492
  }, [s("path", {
3215
3493
  fill: "currentColor",
3216
3494
  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"
3217
- })])], -1)]], 8, ni), s("button", {
3495
+ })])], -1)]], 8, Ti), s("button", {
3218
3496
  type: "button",
3219
3497
  class: "g-sort-builder-direction",
3220
3498
  "aria-label": `Add ${e.label} descending sort`,
3221
- onClick: (t) => ve(e.key, -1)
3222
- }, [r[4] ||= s("span", { class: "g-visually-hidden" }, " Add descending sort ", -1), s("span", ii, [(w(), o("svg", ai, [...r[3] ||= [s("path", {
3499
+ onClick: (t) => ye(e.key, -1)
3500
+ }, [r[4] ||= s("span", { class: "g-visually-hidden" }, " Add descending sort ", -1), s("span", Di, [(w(), o("svg", Oi, [...r[3] ||= [s("path", {
3223
3501
  fill: "currentColor",
3224
3502
  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"
3225
- }, null, -1)]]))])], 8, ri)])]))), 128))])])) : a("", !0),
3226
- Z.value.length ? (w(), i($, {
3503
+ }, null, -1)]]))])], 8, Ei)])]))), 128))])])) : a("", !0),
3504
+ Q.value.length ? (w(), i($, {
3227
3505
  key: 3,
3228
3506
  outlined: "",
3229
3507
  size: "small",
3230
3508
  class: "g-sort-builder-clear",
3231
- onClick: xe
3509
+ onClick: Se
3232
3510
  }, {
3233
- default: G(() => [...r[6] ||= [c(" Clear sort ", -1)]]),
3511
+ default: K(() => [...r[6] ||= [c(" Clear sort ", -1)]]),
3234
3512
  _: 1
3235
3513
  })) : a("", !0)
3236
3514
  ], 512)]),
3237
3515
  _: 1
3238
3516
  })])) : a("", !0),
3239
- Te.value ? (w(), o("div", oi, [l(ot, null, {
3240
- trigger: G(({ toggle: e }) => [l($, {
3517
+ De.value ? (w(), o("div", ki, [l(ot, null, {
3518
+ trigger: K(({ toggle: e }) => [l($, {
3241
3519
  size: "small",
3242
- class: _(["g-column-visibility-trigger", { "g-column-visibility-trigger--active": we.value }]),
3520
+ class: _(["g-column-visibility-trigger", { "g-column-visibility-trigger--active": Ee.value }]),
3243
3521
  "aria-label": "Choose visible columns",
3244
3522
  onClick: e
3245
3523
  }, {
3246
- default: G(() => [(w(), o("svg", si, [...r[9] ||= [s("path", {
3524
+ default: K(() => [(w(), o("svg", Ai, [...r[9] ||= [s("path", {
3247
3525
  fill: "currentColor",
3248
3526
  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"
3249
3527
  }, null, -1)]]))]),
3250
3528
  _: 1
3251
3529
  }, 8, ["class", "onClick"])]),
3252
- default: G(() => [s("fieldset", ci, [r[10] ||= s("legend", { class: "g-column-visibility-legend" }, " Shown columns ", -1), s("div", li, [(w(!0), o(e, null, O(t.columns, (e) => (w(), o("label", {
3530
+ default: K(() => [s("fieldset", {
3531
+ class: "g-column-visibility-popover",
3532
+ "aria-labelledby": `${L(Y)}-column-visibility-heading`
3533
+ }, [s("div", Mi, [s("span", {
3534
+ id: `${L(Y)}-column-visibility-heading`,
3535
+ class: "g-column-visibility-heading"
3536
+ }, " Shown columns ", 8, Ni), s("span", Pi, [l($, {
3537
+ text: "",
3538
+ size: "small",
3539
+ class: _(["g-column-visibility-show-all", { "g-column-visibility-show-all--hidden": !Ee.value }]),
3540
+ onClick: Me
3541
+ }, {
3542
+ default: K(() => [...r[10] ||= [c(" Show All ", -1)]]),
3543
+ _: 1
3544
+ }, 8, ["class"])])]), s("div", Fi, [(w(!0), o(e, null, O(t.columns, (e) => (w(), o("label", {
3253
3545
  key: e.key,
3254
3546
  class: "g-column-visibility-option"
3255
3547
  }, [s("input", {
3256
- checked: Ee(e),
3548
+ checked: Ae(e),
3257
3549
  type: "checkbox",
3258
- onChange: (t) => De(e, t.target.checked)
3259
- }, null, 40, ui), s("span", null, N(e.label), 1)]))), 128))])])]),
3550
+ onChange: (t) => je(e, t.target.checked)
3551
+ }, null, 40, Ii), s("span", null, N(e.label), 1)]))), 128))])], 8, ji)]),
3260
3552
  _: 1
3261
3553
  })])) : a("", !0),
3262
- s("div", di, [L(T) ? (w(), i($, {
3554
+ Oe.value ? (w(), o("div", Li, [k(n.$slots, "controls")])) : a("", !0),
3555
+ s("div", Ri, [L(T) ? (w(), i($, {
3263
3556
  key: 0,
3264
3557
  outlined: "",
3265
3558
  size: "small",
3266
3559
  class: "clear-filters",
3560
+ "aria-label": "Clear Filters",
3267
3561
  onClick: L(E)
3268
3562
  }, {
3269
- default: G(() => [...r[11] ||= [s("svg", {
3563
+ default: K(() => [...r[11] ||= [s("svg", {
3270
3564
  xmlns: "http://www.w3.org/2000/svg",
3271
- viewBox: "0 0 51.26 51.26",
3272
- height: "1em",
3565
+ viewBox: "0 0 640 640",
3566
+ height: "1.5em",
3273
3567
  "aria-hidden": "true"
3274
3568
  }, [s("path", {
3275
3569
  fill: "currentColor",
3276
- 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"
3570
+ d: "M64 128C51.1 128 39.4 135.8 34.4 147.8C29.4 159.8 32.2 173.5 41.4 182.6L224 365.3L224 480C224 488.5 227.4 496.6 233.4 502.6L297.4 566.6C299.9 569.1 302.7 571.1 305.7 572.6C284.5 541.7 272.1 504.3 272.1 464C272.1 364.6 347.6 282.9 444.4 273L534.8 182.6C544 173.4 546.7 159.7 541.7 147.7C536.7 135.7 524.9 128 512 128L64 128zM464 608C543.5 608 608 543.5 608 464C608 384.5 543.5 320 464 320C384.5 320 320 384.5 320 464C320 543.5 384.5 608 464 608zM523.3 427.3L486.6 464L523.3 500.7C529.5 506.9 529.5 517.1 523.3 523.3C517.1 529.5 506.9 529.5 500.7 523.3L464 486.6L427.3 523.3C421.1 529.5 410.9 529.5 404.7 523.3C398.5 517.1 398.5 506.9 404.7 500.7L441.4 464L404.7 427.3C398.5 421.1 398.5 410.9 404.7 404.7C410.9 398.5 421.1 398.5 427.3 404.7L464 441.4L500.7 404.7C506.9 398.5 517.1 398.5 523.3 404.7C529.5 410.9 529.5 421.1 523.3 427.3z"
3277
3571
  })], -1), s("span", { class: "g-clear-filters-text" }, " Clear Filters ", -1)]]),
3278
3572
  _: 1
3279
3573
  }, 8, ["onClick"])) : a("", !0)])
3280
3574
  ]),
3281
- Oe.value ? (w(), o("div", fi, [k(n.$slots, "pagination")])) : a("", !0),
3282
- s("span", pi, N(h.resultCount || t.data.length) + " results", 1)
3575
+ Ne.value ? (w(), o("div", zi, [l(ei, {
3576
+ start: t.startIndex,
3577
+ "page-size": t.pageSize,
3578
+ "page-sizes": t.pageSizes,
3579
+ total: ke.value,
3580
+ "onUpdate:start": re,
3581
+ "onUpdate:pageSize": J
3582
+ }, null, 8, [
3583
+ "start",
3584
+ "page-size",
3585
+ "page-sizes",
3586
+ "total"
3587
+ ])])) : a("", !0),
3588
+ s("span", Bi, N(ke.value) + " results", 1)
3283
3589
  ])) : a("", !0),
3284
- s("table", {
3590
+ s("div", Vi, [s("table", {
3285
3591
  class: "g-table",
3286
3592
  ref: "tableRef",
3287
3593
  "aria-label": t.label,
3288
- "aria-rowcount": h.resultCount || t.data.length
3289
- }, [s("thead", hi, [s("tr", gi, [t.bulkSelectionEnabled ? (w(), o("th", _i, [s("input", {
3594
+ "aria-rowcount": ke.value
3595
+ }, [s("thead", Ui, [s("tr", Wi, [t.bulkSelectionEnabled ? (w(), o("th", Gi, [s("input", {
3290
3596
  type: "checkbox",
3291
3597
  checked: M.value,
3292
3598
  indeterminate: F.value,
3293
3599
  onChange: R,
3294
3600
  "aria-label": M.value ? "Deselect all rows" : "Select all rows",
3295
3601
  class: "g-bulk-select-checkbox"
3296
- }, null, 40, vi)])) : a("", !0), (w(!0), o(e, null, O(Ce.value, (e) => (w(), o("th", {
3602
+ }, null, 40, Ki)])) : a("", !0), (w(!0), o(e, null, O(we.value, (e) => (w(), o("th", {
3297
3603
  key: e.key,
3298
- id: `${L(q)}-th-${String(e.key)}`,
3299
- "aria-sort": fe(e.key),
3604
+ id: `${L(Y)}-th-${String(e.key)}`,
3605
+ "aria-sort": pe(e.key),
3300
3606
  class: _([
3301
3607
  "g-th",
3302
3608
  { sorted: ue(e.key) !== -1 },
3303
3609
  { filtered: L(C)[e.key] }
3304
3610
  ]),
3305
3611
  scope: "col"
3306
- }, [s("div", bi, [e.sortable ? (w(), o("button", {
3612
+ }, [s("div", Ji, [e.sortable ? (w(), o("button", {
3307
3613
  key: 0,
3308
3614
  type: "button",
3309
3615
  class: "g-column-head",
3310
- onClick: (t) => _e(e, t.shiftKey)
3616
+ onClick: (t) => ve(e, t.shiftKey)
3311
3617
  }, [
3312
3618
  c(N(e.label) + " ", 1),
3313
- ue(e.key) === -1 ? a("", !0) : (w(), o("span", Si, [(w(), o("svg", {
3619
+ ue(e.key) === -1 ? a("", !0) : (w(), o("span", Xi, [(w(), o("svg", {
3314
3620
  xmlns: "http://www.w3.org/2000/svg",
3315
3621
  viewBox: "0 0 640 640",
3316
3622
  height: "1.5em",
@@ -3319,10 +3625,10 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
3319
3625
  fill: "currentColor",
3320
3626
  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"
3321
3627
  }, null, -1)]], 4))])),
3322
- ue(e.key) === -1 ? a("", !0) : (w(), o("span", Ci, N(pe(e.key)), 1))
3323
- ], 8, xi)) : (w(), o("span", wi, N(e.label), 1)), e.filter ? (w(), i(ot, { key: 2 }, {
3324
- trigger: G(({ toggle: t }) => [s("button", {
3325
- onClick: K(t, ["stop"]),
3628
+ ue(e.key) === -1 ? a("", !0) : (w(), o("span", Zi, N(me(e.key)), 1))
3629
+ ], 8, Yi)) : (w(), o("span", Qi, N(e.label), 1)), e.filter ? (w(), i(ot, { key: 2 }, {
3630
+ trigger: K(({ toggle: t }) => [s("button", {
3631
+ onClick: q(t, ["stop"]),
3326
3632
  "aria-label": L(C)[e.key] ? "Column Filtered" : "Filter Column",
3327
3633
  class: _(["g-filter-btn", { "g-active": L(C)[e.key] }]),
3328
3634
  type: "button"
@@ -3334,8 +3640,8 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
3334
3640
  }, [s("path", {
3335
3641
  fill: "currentColor",
3336
3642
  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"
3337
- })], -1)]], 10, Ti)]),
3338
- default: G(() => [e.filter.type === "select" ? (w(), i(Kt, {
3643
+ })], -1)]], 10, $i)]),
3644
+ default: K(() => [e.filter.type === "select" ? (w(), i(Kt, {
3339
3645
  key: 0,
3340
3646
  modelValue: f.value[e.key],
3341
3647
  "onUpdate:modelValue": (t) => f.value[e.key] = t,
@@ -3350,7 +3656,7 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
3350
3656
  "onUpdate:modelValue",
3351
3657
  "options",
3352
3658
  "search-description"
3353
- ])) : e.filter.type === "search" ? (w(), o("div", Ei, [r[14] ||= s("span", {
3659
+ ])) : e.filter.type === "search" ? (w(), o("div", ea, [r[14] ||= s("span", {
3354
3660
  class: "g-filter-search-icon",
3355
3661
  "aria-hidden": "true"
3356
3662
  }, [s("svg", {
@@ -3360,25 +3666,25 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
3360
3666
  }, [s("path", {
3361
3667
  fill: "currentColor",
3362
3668
  d: "M30 9.76A14.05 14.05 0 1 0 28.3 31l11.3 13a3.34 3.34 0 0 0 4.72-4.72L31.44 27.86A14.05 14.05 0 0 0 30 9.76ZM27.27 27a10.26 10.26 0 1 1 0-14.5 10.25 10.25 0 0 1 0 14.5Z"
3363
- })])], -1), re(s("input", {
3669
+ })])], -1), ne(s("input", {
3364
3670
  type: "search",
3365
3671
  class: "g-filter-search-input",
3366
3672
  "onUpdate:modelValue": (t) => f.value[e.key] = t,
3367
3673
  placeholder: e.filter.placeholder,
3368
3674
  "aria-label": `Search ${e.label}`
3369
- }, null, 8, Di), [[ee, f.value[e.key]]])])) : e.filter.type === "toggle" ? (w(), o("div", Oi, [s("div", ki, [
3370
- re(s("input", {
3675
+ }, null, 8, ta), [[W, f.value[e.key]]])])) : e.filter.type === "toggle" ? (w(), o("div", na, [s("div", ra, [
3676
+ ne(s("input", {
3371
3677
  type: "checkbox",
3372
3678
  "onUpdate:modelValue": (t) => f.value[e.key] = t,
3373
- id: `${L(q)}-filter-${String(e.key)}`,
3374
- "aria-describedby": e.filter.description ? `${L(q)}-filter-description-${String(e.key)}` : void 0
3375
- }, null, 8, Ai), [[U, f.value[e.key]]]),
3376
- s("label", { for: `${L(q)}-filter-${String(e.key)}` }, N(e.filter.label), 9, ji),
3679
+ id: `${L(Y)}-filter-${String(e.key)}`,
3680
+ "aria-describedby": e.filter.description ? `${L(Y)}-filter-description-${String(e.key)}` : void 0
3681
+ }, null, 8, ia), [[U, f.value[e.key]]]),
3682
+ s("label", { for: `${L(Y)}-filter-${String(e.key)}` }, N(e.filter.label), 9, aa),
3377
3683
  e.filter.description ? (w(), o("span", {
3378
3684
  key: 0,
3379
3685
  class: "g-filter-description",
3380
- id: `${L(q)}-filter-description-${String(e.key)}`
3381
- }, N(e.filter.description), 9, Mi)) : a("", !0)
3686
+ id: `${L(Y)}-filter-description-${String(e.key)}`
3687
+ }, N(e.filter.description), 9, oa)) : a("", !0)
3382
3688
  ])])) : e.filter.type === "multi-select" && e.filter.searchable ? (w(), i(br, {
3383
3689
  key: 3,
3384
3690
  modelValue: f.value[e.key],
@@ -3394,10 +3700,10 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
3394
3700
  "options",
3395
3701
  "placeholder",
3396
3702
  "search-description"
3397
- ])) : e.filter.type === "multi-select" ? (w(), o("div", Ni, [l(jr, {
3703
+ ])) : e.filter.type === "multi-select" ? (w(), o("div", sa, [l(jr, {
3398
3704
  modelValue: f.value[e.key],
3399
3705
  "onUpdate:modelValue": (t) => f.value[e.key] = t,
3400
- options: Ae(e),
3706
+ options: Fe(e),
3401
3707
  label: "Include values"
3402
3708
  }, null, 8, [
3403
3709
  "modelValue",
@@ -3410,13 +3716,13 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
3410
3716
  size: "small",
3411
3717
  onClick: (t) => f.value[e.key] = []
3412
3718
  }, {
3413
- default: G(() => [...r[15] ||= [c(" Clear ", -1)]]),
3719
+ default: K(() => [...r[15] ||= [c(" Clear ", -1)]]),
3414
3720
  _: 1
3415
3721
  }, 8, ["onClick"])) : a("", !0)])) : a("", !0)]),
3416
3722
  _: 2
3417
- }, 1024)) : a("", !0)])], 10, yi))), 128))])]), l(ir, {
3723
+ }, 1024)) : a("", !0)])], 10, qi))), 128))])]), l(ir, {
3418
3724
  data: t.data,
3419
- columns: Ce.value,
3725
+ columns: we.value,
3420
3726
  "group-by": t.groupBy,
3421
3727
  "group-render": t.groupRender,
3422
3728
  "row-clickable": t.rowClickable,
@@ -3424,11 +3730,11 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
3424
3730
  "start-index": t.startIndex,
3425
3731
  "bulk-selection-enabled": t.bulkSelectionEnabled,
3426
3732
  "selected-rows": m.value,
3427
- "table-id": L(q),
3733
+ "table-id": L(Y),
3428
3734
  "change-tracker": t.changeTracker,
3429
- onRowClick: te,
3735
+ onRowClick: ee,
3430
3736
  onToggleRow: H,
3431
- onCellChange: ne
3737
+ onCellChange: te
3432
3738
  }, null, 8, [
3433
3739
  "data",
3434
3740
  "columns",
@@ -3441,157 +3747,18 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
3441
3747
  "selected-rows",
3442
3748
  "table-id",
3443
3749
  "change-tracker"
3444
- ])], 8, mi),
3445
- t.bulkSelectionEnabled && m.value.length > 0 ? (w(), o("div", Pi, [s("span", Fi, N(m.value.length) + " row" + N(m.value.length === 1 ? "" : "s") + " selected", 1), s("ul", Ii, [(w(!0), o(e, null, O(t.bulkActions, (e) => (w(), o("li", { key: e.id }, [l($, {
3750
+ ])], 8, Hi)]),
3751
+ t.bulkSelectionEnabled && m.value.length > 0 ? (w(), o("div", ca, [s("span", la, N(m.value.length) + " row" + N(m.value.length === 1 ? "" : "s") + " selected", 1), s("ul", ua, [(w(!0), o(e, null, O(t.bulkActions, (e) => (w(), o("li", { key: e.id }, [l($, {
3446
3752
  theme: e.theme || "accent",
3447
- onClick: (t) => W(e.id),
3753
+ onClick: (t) => G(e.id),
3448
3754
  size: "small"
3449
3755
  }, {
3450
- default: G(() => [c(N(e.label) + " " + N(m.value.length) + " row" + N(m.value.length === 1 ? "" : "s"), 1)]),
3756
+ default: K(() => [c(N(e.label) + " " + N(m.value.length) + " row" + N(m.value.length === 1 ? "" : "s"), 1)]),
3451
3757
  _: 2
3452
3758
  }, 1032, ["theme", "onClick"])]))), 128))])])) : a("", !0)
3453
3759
  ]));
3454
3760
  }
3455
- }), Ri = {
3456
- class: "g-pagination",
3457
- "aria-label": "Pagination"
3458
- }, zi = ["disabled"], Bi = ["disabled"], Vi = { class: "page-range" }, Hi = ["disabled"], Ui = ["disabled"], Wi = ["value"], Gi = ["value"], Ki = /* @__PURE__ */ u({
3459
- __name: "GTablePagination",
3460
- props: /*@__PURE__*/ m({
3461
- start: {},
3462
- pageSize: {},
3463
- total: {},
3464
- pageSizes: {}
3465
- }, {
3466
- start: {},
3467
- startModifiers: {},
3468
- pageSize: {},
3469
- pageSizeModifiers: {}
3470
- }),
3471
- emits: ["update:start", "update:pageSize"],
3472
- setup(t) {
3473
- let n = t, i = r(() => Math.max(1, Math.ceil(n.total / n.pageSize))), a = B(t, "start"), c = B(t, "pageSize"), l = r(() => a.value ?? n.start), u = r(() => c.value ?? n.pageSize), d = r(() => n.total === 0 ? 0 : l.value + 1), f = r(() => n.total === 0 ? 0 : Math.min(l.value + u.value, n.total)), p = r(() => Math.floor(l.value / u.value) + 1);
3474
- function m(e) {
3475
- e < 1 || e > i.value || (a.value = (e - 1) * u.value);
3476
- }
3477
- function h(e) {
3478
- c.value = parseInt(e.target.value, 10);
3479
- }
3480
- return (t, r) => (w(), o("nav", Ri, [
3481
- s("button", {
3482
- class: "first-page g-pagination-button",
3483
- disabled: p.value === 1,
3484
- onClick: r[0] ||= (e) => m(1)
3485
- }, [...r[4] ||= [s("svg", {
3486
- role: "img",
3487
- "aria-label": "First Page",
3488
- height: "2em",
3489
- xmlns: "http://www.w3.org/2000/svg",
3490
- width: "2em",
3491
- viewBox: "0 0 24 24",
3492
- fill: "none",
3493
- stroke: "currentColor",
3494
- "stroke-width": "2",
3495
- "stroke-linecap": "round",
3496
- "stroke-linejoin": "round"
3497
- }, [
3498
- s("path", {
3499
- stroke: "none",
3500
- d: "M0 0h24v24H0z",
3501
- fill: "none"
3502
- }),
3503
- s("path", { d: "M11 7l-5 5l5 5" }),
3504
- s("path", { d: "M17 7l-5 5l5 5" })
3505
- ], -1)]], 8, zi),
3506
- s("button", {
3507
- class: "prev-page g-pagination-button",
3508
- disabled: p.value === 1,
3509
- onClick: r[1] ||= (e) => m(p.value - 1)
3510
- }, [...r[5] ||= [s("svg", {
3511
- role: "img",
3512
- "aria-label": "Previous Page",
3513
- xmlns: "http://www.w3.org/2000/svg",
3514
- width: "2em",
3515
- height: "2em",
3516
- viewBox: "0 0 24 24",
3517
- fill: "none",
3518
- stroke: "currentColor",
3519
- "stroke-width": "2",
3520
- "stroke-linecap": "round",
3521
- "stroke-linejoin": "round"
3522
- }, [s("path", {
3523
- stroke: "none",
3524
- d: "M0 0h24v24H0z",
3525
- fill: "none"
3526
- }), s("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8, Bi),
3527
- s("span", Vi, N(d.value) + " to " + N(f.value), 1),
3528
- s("button", {
3529
- class: "next-page g-pagination-button",
3530
- disabled: p.value === i.value,
3531
- onClick: r[2] ||= (e) => m(p.value + 1)
3532
- }, [...r[6] ||= [s("svg", {
3533
- role: "img",
3534
- "aria-label": "Next Page",
3535
- xmlns: "http://www.w3.org/2000/svg",
3536
- width: "2em",
3537
- height: "2em",
3538
- viewBox: "0 0 24 24",
3539
- fill: "none",
3540
- stroke: "currentColor",
3541
- "stroke-width": "2",
3542
- "stroke-linecap": "round",
3543
- "stroke-linejoin": "round"
3544
- }, [s("path", {
3545
- stroke: "none",
3546
- d: "M0 0h24v24H0z",
3547
- fill: "none"
3548
- }), s("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8, Hi),
3549
- s("button", {
3550
- class: "last-page g-pagination-button",
3551
- disabled: p.value === i.value,
3552
- onClick: r[3] ||= (e) => m(i.value)
3553
- }, [...r[7] ||= [s("svg", {
3554
- role: "img",
3555
- "aria-label": "Last Page",
3556
- xmlns: "http://www.w3.org/2000/svg",
3557
- width: "2em",
3558
- height: "2em",
3559
- viewBox: "0 0 24 24",
3560
- fill: "none",
3561
- stroke: "currentColor",
3562
- "stroke-width": "2",
3563
- "stroke-linecap": "round",
3564
- "stroke-linejoin": "round"
3565
- }, [
3566
- s("path", {
3567
- stroke: "none",
3568
- d: "M0 0h24v24H0z",
3569
- fill: "none"
3570
- }),
3571
- s("path", { d: "M7 7l5 5l-5 5" }),
3572
- s("path", { d: "M13 7l5 5l-5 5" })
3573
- ], -1)]], 8, Ui),
3574
- s("select", {
3575
- id: "page-size-select",
3576
- class: "page-size-select",
3577
- value: c.value,
3578
- onChange: h
3579
- }, [(w(!0), o(e, null, O(n.pageSizes || [
3580
- 10,
3581
- 25,
3582
- 50,
3583
- 100
3584
- ], (e) => (w(), o("option", {
3585
- key: e,
3586
- value: e
3587
- }, N(e), 9, Gi))), 128))], 40, Wi),
3588
- r[8] ||= s("label", {
3589
- class: "page-size-label",
3590
- for: "page-size-select"
3591
- }, "per page", -1)
3592
- ]));
3593
- }
3594
- }), qi = ["id"], Ji = { class: "g-modal-inner" }, Yi = { class: "g-modal-header" }, Xi = ["id"], Zi = ["id"], Qi = /* @__PURE__ */ u({
3761
+ }), fa = ["id"], pa = { class: "g-modal-inner" }, ma = { class: "g-modal-header" }, ha = ["id"], ga = ["id"], _a = /* @__PURE__ */ u({
3595
3762
  __name: "GModal",
3596
3763
  props: {
3597
3764
  label: {},
@@ -3622,7 +3789,7 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
3622
3789
  name: "g-fade",
3623
3790
  appear: ""
3624
3791
  }, {
3625
- default: G(() => [s("div", h({
3792
+ default: K(() => [s("div", h({
3626
3793
  id: "modal-" + L(m),
3627
3794
  class: ["g-modal", E.value],
3628
3795
  role: "dialog",
@@ -3635,12 +3802,12 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
3635
3802
  ref_key: "dialog",
3636
3803
  ref: f,
3637
3804
  style: { zIndex: L(y) }
3638
- }), [s("div", Ji, [s("div", Yi, [e.hiddenLabel ? a("", !0) : (w(), o("h2", {
3805
+ }), [s("div", pa, [s("div", ma, [e.hiddenLabel ? a("", !0) : (w(), o("h2", {
3639
3806
  key: 0,
3640
3807
  id: "modal-label-" + L(m),
3641
3808
  class: "g-modal-label",
3642
3809
  tabindex: "-1"
3643
- }, N(e.label), 9, Xi)), s("button", {
3810
+ }, N(e.label), 9, ha)), s("button", {
3644
3811
  class: "g-modal-close",
3645
3812
  onClick: T,
3646
3813
  "aria-label": "Close"
@@ -3655,19 +3822,19 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
3655
3822
  })], -1)]])]), s("div", {
3656
3823
  id: "modal-description-" + L(m),
3657
3824
  class: "g-modal-content"
3658
- }, [k(r.$slots, "default")], 8, Zi)])], 16, qi)]),
3825
+ }, [k(r.$slots, "default")], 8, ga)])], 16, fa)]),
3659
3826
  _: 3
3660
3827
  })]));
3661
3828
  }
3662
- }), $i = [
3829
+ }), va = [
3663
3830
  "id",
3664
3831
  "aria-expanded",
3665
3832
  "aria-label",
3666
3833
  "aria-controls"
3667
- ], ea = {
3834
+ ], ya = {
3668
3835
  key: 0,
3669
3836
  class: "g-hamburger-label"
3670
- }, ta = /* @__PURE__ */ u({
3837
+ }, ba = /* @__PURE__ */ u({
3671
3838
  __name: "GHamburgerMenu",
3672
3839
  props: {
3673
3840
  label: { default: "Main Navigation" },
@@ -3680,7 +3847,7 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
3680
3847
  },
3681
3848
  emits: ["toggle"],
3682
3849
  setup(e, { emit: t }) {
3683
- let n = e, r = p("sidebar") ?? (Q() ? pn(n.sidebarKey, F(n, "mediaQuery")) : void 0), i = t;
3850
+ let n = e, r = p("sidebar") ?? (de() ? pn(n.sidebarKey, F(n, "mediaQuery")) : void 0), i = t;
3684
3851
  function c() {
3685
3852
  i("toggle"), r?.toggle();
3686
3853
  }
@@ -3703,34 +3870,34 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
3703
3870
  xmlns: "http://www.w3.org/2000/svg",
3704
3871
  viewBox: "0 0 51.26 51.26",
3705
3872
  role: "none"
3706
- }, [s("g", { fill: "currentColor" }, [s("path", { d: "M11.6 16.52h28.06a3.24 3.24 0 1 0 0-6.48H11.6a3.24 3.24 0 0 0 0 6.48ZM39.66 22.07H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48ZM39.66 34.1H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48Z" })])], -1), e.labelVisible ? (w(), o("span", ea, N(e.label), 1)) : a("", !0)], 42, $i));
3873
+ }, [s("g", { fill: "currentColor" }, [s("path", { d: "M11.6 16.52h28.06a3.24 3.24 0 1 0 0-6.48H11.6a3.24 3.24 0 0 0 0 6.48ZM39.66 22.07H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48ZM39.66 34.1H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48Z" })])], -1), e.labelVisible ? (w(), o("span", ya, N(e.label), 1)) : a("", !0)], 42, va));
3707
3874
  }
3708
- }), na = /* @__PURE__ */ u({
3875
+ }), xa = /* @__PURE__ */ u({
3709
3876
  __name: "GDetailList",
3710
3877
  props: { variant: { default: "grid" } },
3711
3878
  setup(e) {
3712
3879
  let t = e;
3713
3880
  return (e, n) => (w(), o("dl", { class: _(["g-detail-list", `g-detail-list--${t.variant}`]) }, [k(e.$slots, "default")], 2));
3714
3881
  }
3715
- }), ra = { class: "g-detail-list-item" }, ia = { class: "g-detail-list-item__label" }, aa = { class: "g-detail-list-item__value" }, oa = /* @__PURE__ */ u({
3882
+ }), Sa = { class: "g-detail-list-item" }, Ca = { class: "g-detail-list-item__label" }, wa = { class: "g-detail-list-item__value" }, Ta = /* @__PURE__ */ u({
3716
3883
  __name: "GDetailListItem",
3717
3884
  props: { label: {} },
3718
3885
  setup(e) {
3719
- return (t, n) => (w(), o("div", ra, [s("dt", ia, [k(t.$slots, "label", {}, () => [c(N(e.label), 1)])]), s("dd", aa, [k(t.$slots, "default")])]));
3886
+ return (t, n) => (w(), o("div", Sa, [s("dt", Ca, [k(t.$slots, "label", {}, () => [c(N(e.label), 1)])]), s("dd", wa, [k(t.$slots, "default")])]));
3720
3887
  }
3721
- }), sa = {
3888
+ }), Ea = {
3722
3889
  key: 0,
3723
3890
  class: "g-scroll-lock-overlay"
3724
- }, ca = /* @__PURE__ */ u({
3891
+ }, Da = /* @__PURE__ */ u({
3725
3892
  __name: "GOverlay",
3726
3893
  setup(e) {
3727
3894
  let { hasScrollLock: t } = Je();
3728
3895
  return (e, r) => (w(), i(n, { name: "g-fade" }, {
3729
- default: G(() => [L(t) ? (w(), o("div", sa)) : a("", !0)]),
3896
+ default: K(() => [L(t) ? (w(), o("div", Ea)) : a("", !0)]),
3730
3897
  _: 1
3731
3898
  }));
3732
3899
  }
3733
- }), la = { class: "popover-content" }, ua = { class: "year-dropdown" }, da = { class: "month-selector" }, fa = /* @__PURE__ */ u({
3900
+ }), Oa = { class: "popover-content" }, ka = { class: "year-dropdown" }, Aa = { class: "month-selector" }, ja = /* @__PURE__ */ u({
3734
3901
  __name: "GTermSelectorControl",
3735
3902
  props: /*@__PURE__*/ m({
3736
3903
  termYears: { default: () => ["2026"] },
@@ -3751,7 +3918,7 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
3751
3918
  emits: ["update:modelValue"],
3752
3919
  setup(e) {
3753
3920
  let t = B(e, "modelValue");
3754
- return (n, r) => (w(), o("div", la, [s("div", ua, [l(Kt, {
3921
+ return (n, r) => (w(), o("div", Oa, [s("div", ka, [l(Kt, {
3755
3922
  modelValue: t.value.year,
3756
3923
  "onUpdate:modelValue": r[0] ||= (e) => t.value.year = e,
3757
3924
  options: e.termYears,
@@ -3760,7 +3927,7 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
3760
3927
  "modelValue",
3761
3928
  "options",
3762
3929
  "label"
3763
- ])]), s("div", da, [l(xt, {
3930
+ ])]), s("div", Aa, [l(xt, {
3764
3931
  modelValue: t.value.name,
3765
3932
  "onUpdate:modelValue": r[1] ||= (e) => t.value.name = e,
3766
3933
  options: e.termNames,
@@ -3772,10 +3939,10 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
3772
3939
  "label"
3773
3940
  ])])]));
3774
3941
  }
3775
- }), pa = { class: "g-term-selector" }, ma = { class: "g-term-label" }, ha = {
3942
+ }), Ma = { class: "g-term-selector" }, Na = { class: "g-term-label" }, Pa = {
3776
3943
  class: "g-popover-title",
3777
3944
  tabindex: "-1"
3778
- }, ga = /* @__PURE__ */ u({
3945
+ }, Fa = /* @__PURE__ */ u({
3779
3946
  __name: "GTermSelector",
3780
3947
  props: /*@__PURE__*/ m({
3781
3948
  heading: { default: "Period Selection" },
@@ -3797,20 +3964,20 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
3797
3964
  emits: ["update:modelValue"],
3798
3965
  setup(e) {
3799
3966
  let t = B(e, "modelValue");
3800
- return (n, r) => (w(), o("div", pa, [l(ot, null, {
3801
- trigger: G(({ toggle: e }) => [l($, {
3967
+ return (n, r) => (w(), o("div", Ma, [l(ot, null, {
3968
+ trigger: K(({ toggle: e }) => [l($, {
3802
3969
  class: "g-term-selector-button",
3803
3970
  theme: "none",
3804
3971
  outlined: "",
3805
3972
  onClick: e
3806
3973
  }, {
3807
- default: G(() => [
3974
+ default: K(() => [
3808
3975
  r[0] ||= s("span", { class: "g-calendar-icon" }, [s("svg", {
3809
3976
  role: "none",
3810
3977
  xmlns: "http://www.w3.org/2000/svg",
3811
3978
  viewBox: "0 0 640 640"
3812
3979
  }, [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),
3813
- s("span", ma, N(t.value?.name) + " " + N(t.value?.year), 1),
3980
+ s("span", Na, N(t.value?.name) + " " + N(t.value?.year), 1),
3814
3981
  r[1] ||= s("span", { class: "g-caret" }, [s("svg", {
3815
3982
  role: "none",
3816
3983
  xmlns: "http://www.w3.org/2000/svg",
@@ -3819,15 +3986,15 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
3819
3986
  ]),
3820
3987
  _: 1
3821
3988
  }, 8, ["onClick"])]),
3822
- default: G(() => [s("h2", ha, N(e.heading), 1), l(fa, v(f(n.$props)), null, 16)]),
3989
+ default: K(() => [s("h2", Pa, N(e.heading), 1), l(ja, v(f(n.$props)), null, 16)]),
3823
3990
  _: 1
3824
3991
  })]));
3825
3992
  }
3826
- }), _a = { class: "g-user-menu" }, va = [
3993
+ }), Ia = { class: "g-user-menu" }, La = [
3827
3994
  "aria-label",
3828
3995
  "aria-expanded",
3829
3996
  "onClick"
3830
- ], ya = { class: "g-user-menu__popover" }, ba = { class: "g-user-menu__list" }, xa = /* @__PURE__ */ u({
3997
+ ], Ra = { class: "g-user-menu__popover" }, za = { class: "g-user-menu__list" }, Ba = /* @__PURE__ */ u({
3831
3998
  __name: "GUserMenu",
3832
3999
  props: {
3833
4000
  initials: {},
@@ -3839,20 +4006,20 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
3839
4006
  let n = `${z()}-email`, r = D(!1), a = H("emailHeading");
3840
4007
  d()?.appContext?.components?.RouterLink;
3841
4008
  let c = V();
3842
- return (u, d) => (w(), o("div", _a, [l(ot, {
4009
+ return (u, d) => (w(), o("div", Ia, [l(ot, {
3843
4010
  modelValue: r.value,
3844
4011
  "onUpdate:modelValue": d[0] ||= (e) => r.value = e,
3845
4012
  minimal: ""
3846
4013
  }, {
3847
- trigger: G(({ toggle: e }) => [s("button", {
4014
+ trigger: K(({ toggle: e }) => [s("button", {
3848
4015
  class: "g-user-menu__avatar",
3849
4016
  style: y({ backgroundColor: t.color }),
3850
4017
  "aria-label": t.initials + " - " + t.label,
3851
4018
  "aria-expanded": r.value,
3852
4019
  "aria-haspopup": "menu",
3853
4020
  onClick: e
3854
- }, N(t.initials), 13, va)]),
3855
- default: G(() => [s("div", ya, [s("h2", {
4021
+ }, N(t.initials), 13, La)]),
4022
+ default: K(() => [s("div", Ra, [s("h2", {
3856
4023
  id: n,
3857
4024
  ref_key: "emailHeading",
3858
4025
  ref: a,
@@ -3861,11 +4028,11 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
3861
4028
  }, N(t.email), 513), s("nav", {
3862
4029
  class: "g-user-menu__nav",
3863
4030
  "aria-labelledby": n
3864
- }, [s("ul", ba, [(w(!0), o(e, null, O(c.default(), (e, t) => (w(), o("li", { key: t }, [(w(), i(A(e)))]))), 128))])])])]),
4031
+ }, [s("ul", za, [(w(!0), o(e, null, O(c.default(), (e, t) => (w(), o("li", { key: t }, [(w(), i(A(e)))]))), 128))])])])]),
3865
4032
  _: 1
3866
4033
  }, 8, ["modelValue"])]));
3867
4034
  }
3868
- }), Sa = /* @__PURE__ */ u({
4035
+ }), Va = /* @__PURE__ */ u({
3869
4036
  __name: "GCurrencyInput",
3870
4037
  props: /*@__PURE__*/ m({
3871
4038
  label: { default: void 0 },
@@ -3916,7 +4083,7 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
3916
4083
  "form-key"
3917
4084
  ]));
3918
4085
  }
3919
- }), Ca = /* @__PURE__ */ u({
4086
+ }), Ha = /* @__PURE__ */ u({
3920
4087
  __name: "GEmailInput",
3921
4088
  props: /*@__PURE__*/ m({
3922
4089
  label: { default: void 0 },
@@ -3961,13 +4128,13 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
3961
4128
  "instructions"
3962
4129
  ]));
3963
4130
  }
3964
- }), wa = ["for"], Ta = {
4131
+ }), Ua = ["for"], Wa = {
3965
4132
  key: 0,
3966
4133
  class: "g-file-input-required"
3967
- }, Ea = {
4134
+ }, Ga = {
3968
4135
  key: 0,
3969
4136
  class: "g-file-input-box-header"
3970
- }, Da = ["id"], Oa = [
4137
+ }, Ka = ["id"], qa = [
3971
4138
  "id",
3972
4139
  "disabled",
3973
4140
  "required",
@@ -3976,11 +4143,11 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
3976
4143
  "aria-invalid",
3977
4144
  "aria-describedby",
3978
4145
  "aria-errormessage"
3979
- ], ka = {
4146
+ ], Ja = {
3980
4147
  key: 1,
3981
4148
  class: "g-file-input-pills",
3982
4149
  "aria-label": "Selected files"
3983
- }, Aa = /* @__PURE__ */ u({
4150
+ }, Ya = /* @__PURE__ */ u({
3984
4151
  inheritAttrs: !1,
3985
4152
  __name: "GFileInput",
3986
4153
  props: /*@__PURE__*/ m({
@@ -4037,12 +4204,12 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
4037
4204
  key: 0,
4038
4205
  for: L(d),
4039
4206
  class: "g-file-input-label"
4040
- }, [c(N(t.label) + " ", 1), t.required ? (w(), o("span", Ta, "*")) : a("", !0)], 8, wa)) : a("", !0),
4207
+ }, [c(N(t.label) + " ", 1), t.required ? (w(), o("span", Wa, "*")) : a("", !0)], 8, Ua)) : a("", !0),
4041
4208
  s("div", { class: _(["g-file-input-box", { "g-file-input-box--disabled": t.disabled }]) }, [
4042
- t.instructions ? (w(), o("div", Ea, [s("span", {
4209
+ t.instructions ? (w(), o("div", Ga, [s("span", {
4043
4210
  id: "instructions-" + L(d),
4044
4211
  class: "g-file-input-instructions"
4045
- }, N(t.instructions), 9, Da)])) : a("", !0),
4212
+ }, N(t.instructions), 9, Ka)])) : a("", !0),
4046
4213
  s("input", {
4047
4214
  id: L(d),
4048
4215
  type: "file",
@@ -4055,8 +4222,8 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
4055
4222
  "aria-describedby": t.instructions ? "instructions-" + L(d) : void 0,
4056
4223
  "aria-errormessage": y.value ? "error-message-" + L(d) : void 0,
4057
4224
  onChange: g
4058
- }, null, 40, Oa),
4059
- t.multiple && b.value.length > 0 ? (w(), o("ul", ka, [(w(!0), o(e, null, O(b.value, (e) => (w(), o("li", {
4225
+ }, null, 40, qa),
4226
+ t.multiple && b.value.length > 0 ? (w(), o("ul", Ja, [(w(!0), o(e, null, O(b.value, (e) => (w(), o("li", {
4060
4227
  key: e,
4061
4228
  class: "g-file-input-pill"
4062
4229
  }, [r[0] ||= s("svg", {
@@ -4072,7 +4239,7 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
4072
4239
  }, null, 8, ["errors", "id"])
4073
4240
  ], 2));
4074
4241
  }
4075
- }), ja = /* @__PURE__ */ u({
4242
+ }), Xa = /* @__PURE__ */ u({
4076
4243
  __name: "GDateInput",
4077
4244
  props: /*@__PURE__*/ m({
4078
4245
  label: { default: void 0 },
@@ -4120,21 +4287,21 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
4120
4287
  "form-key"
4121
4288
  ]));
4122
4289
  }
4123
- }), Ma = { class: "g-date-range-input" }, Na = {
4290
+ }), Za = { class: "g-date-range-input" }, Qa = {
4124
4291
  key: 0,
4125
4292
  class: "g-date-range-input__label"
4126
- }, Pa = {
4293
+ }, $a = {
4127
4294
  key: 0,
4128
4295
  class: "g-date-range-input__required",
4129
4296
  "aria-hidden": "true"
4130
- }, Fa = {
4297
+ }, eo = {
4131
4298
  key: 1,
4132
4299
  class: "g-date-range-input__instructions"
4133
- }, Ia = { class: "g-date-range-input__fields" }, La = {
4300
+ }, to = { class: "g-date-range-input__fields" }, no = {
4134
4301
  key: 2,
4135
4302
  class: "g-date-range-input__errors",
4136
4303
  role: "alert"
4137
- }, Ra = /* @__PURE__ */ u({
4304
+ }, ro = /* @__PURE__ */ u({
4138
4305
  __name: "GDateRangeInput",
4139
4306
  props: /*@__PURE__*/ m({
4140
4307
  label: { default: void 0 },
@@ -4167,17 +4334,17 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
4167
4334
  errors: F(n, "errors"),
4168
4335
  formKey: n.formKey
4169
4336
  });
4170
- return W([i, u], () => {
4337
+ return G([i, u], () => {
4171
4338
  r.value = {
4172
4339
  start: i.value,
4173
4340
  end: u.value
4174
4341
  };
4175
- }), W(r, (e) => {
4342
+ }), G(r, (e) => {
4176
4343
  e.start !== i.value && (i.value = e.start), e.end !== u.value && (u.value = e.end);
4177
- }, { deep: !0 }), (t, r) => (w(), o("div", Ma, [
4178
- n.label ? (w(), o("div", Na, [c(N(n.label), 1), n.required ? (w(), o("span", Pa, " *")) : a("", !0)])) : a("", !0),
4179
- n.instructions ? (w(), o("div", Fa, N(n.instructions), 1)) : a("", !0),
4180
- s("div", Ia, [l(ja, {
4344
+ }, { deep: !0 }), (t, r) => (w(), o("div", Za, [
4345
+ n.label ? (w(), o("div", Qa, [c(N(n.label), 1), n.required ? (w(), o("span", $a, " *")) : a("", !0)])) : a("", !0),
4346
+ n.instructions ? (w(), o("div", eo, N(n.instructions), 1)) : a("", !0),
4347
+ s("div", to, [l(Xa, {
4181
4348
  modelValue: i.value,
4182
4349
  "onUpdate:modelValue": r[0] ||= (e) => i.value = e,
4183
4350
  label: n.startLabel,
@@ -4189,7 +4356,7 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
4189
4356
  "label",
4190
4357
  "disabled",
4191
4358
  "required"
4192
- ]), l(ja, {
4359
+ ]), l(Xa, {
4193
4360
  modelValue: u.value,
4194
4361
  "onUpdate:modelValue": r[1] ||= (e) => u.value = e,
4195
4362
  label: n.endLabel,
@@ -4202,13 +4369,13 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
4202
4369
  "disabled",
4203
4370
  "required"
4204
4371
  ])]),
4205
- L(d).length > 0 ? (w(), o("div", La, [(w(!0), o(e, null, O(L(d), (e, t) => (w(), o("div", {
4372
+ L(d).length > 0 ? (w(), o("div", no, [(w(!0), o(e, null, O(L(d), (e, t) => (w(), o("div", {
4206
4373
  key: t,
4207
4374
  class: "g-date-range-input__error"
4208
4375
  }, N(e), 1))), 128))])) : a("", !0)
4209
4376
  ]));
4210
4377
  }
4211
- }), za = ["action", "method"], Ba = /* @__PURE__ */ u({
4378
+ }), io = ["action", "method"], ao = /* @__PURE__ */ u({
4212
4379
  __name: "GForm",
4213
4380
  props: /*@__PURE__*/ m({
4214
4381
  action: { default: void 0 },
@@ -4220,10 +4387,10 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
4220
4387
  }),
4221
4388
  emits: /*@__PURE__*/ m(["submit"], ["update:modelValue"]),
4222
4389
  setup(e, { emit: t }) {
4223
- let n = e, r = B(e, "modelValue"), i = t, a = p("form", null), s = a ?? (Q() ? ke(n.formKey) : De());
4224
- a || T("form", s), W(() => s.values.value, (e) => {
4390
+ let n = e, r = B(e, "modelValue"), i = t, a = p("form", null), s = a ?? (de() ? ke(n.formKey) : De());
4391
+ a || T("form", s), G(() => s.values.value, (e) => {
4225
4392
  r.value = { ...e };
4226
- }, { deep: !0 }), W(() => r.value, (e) => {
4393
+ }, { deep: !0 }), G(() => r.value, (e) => {
4227
4394
  e && Object.entries(e).forEach(([e, t]) => {
4228
4395
  let n = s.fields[e];
4229
4396
  n && n.value.value !== t && (n.value.value = t);
@@ -4248,9 +4415,9 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
4248
4415
  hasErrors: L(s).hasErrors.value,
4249
4416
  values: L(s).values.value,
4250
4417
  errors: L(s).errors.value
4251
- })], 40, za));
4418
+ })], 40, io));
4252
4419
  }
4253
- }), Va = /* @__PURE__ */ u({
4420
+ }), oo = /* @__PURE__ */ u({
4254
4421
  __name: "GSubmitButton",
4255
4422
  props: {
4256
4423
  disabled: {
@@ -4262,22 +4429,22 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
4262
4429
  formKey: { default: "default" }
4263
4430
  },
4264
4431
  setup(e) {
4265
- let t = e, n = R(), a = typeof n["form-key"] == "string" ? n["form-key"] : void 0, o = t.formKey || a || "default", l = p("form", null) ?? (Q() ? ke(o) : null), u = r(() => t.disabled || (l?.isSubmitting.value ?? !1)), d = r(() => l?.isSubmitting.value ?? !1);
4432
+ let t = e, n = R(), a = typeof n["form-key"] == "string" ? n["form-key"] : void 0, o = t.formKey || a || "default", l = p("form", null) ?? (de() ? ke(o) : null), u = r(() => t.disabled || (l?.isSubmitting.value ?? !1)), d = r(() => l?.isSubmitting.value ?? !1);
4266
4433
  return (e, n) => (w(), i($, {
4267
4434
  type: "submit",
4268
4435
  disabled: u.value,
4269
4436
  variant: t.variant,
4270
4437
  class: "g-submit-button"
4271
4438
  }, {
4272
- default: G(() => [re(s("span", null, N(t.loadingText), 513), [[te, d.value]]), re(s("span", null, [k(e.$slots, "default", {}, () => [n[0] ||= c("Submit", -1)])], 512), [[te, !d.value]])]),
4439
+ default: K(() => [ne(s("span", null, N(t.loadingText), 513), [[ee, d.value]]), ne(s("span", null, [k(e.$slots, "default", {}, () => [n[0] ||= c("Submit", -1)])], 512), [[ee, !d.value]])]),
4273
4440
  _: 3
4274
4441
  }, 8, ["disabled", "variant"]));
4275
4442
  }
4276
- }), Ha = ["for"], Ua = {
4443
+ }), so = ["for"], co = {
4277
4444
  key: 0,
4278
4445
  class: "g-textarea-required",
4279
4446
  "aria-hidden": "true"
4280
- }, Wa = ["id"], Ga = [
4447
+ }, lo = ["id"], uo = [
4281
4448
  "value",
4282
4449
  "placeholder",
4283
4450
  "disabled",
@@ -4286,11 +4453,11 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
4286
4453
  "rows",
4287
4454
  "maxlength",
4288
4455
  "aria-invalid"
4289
- ], Ka = {
4456
+ ], fo = {
4290
4457
  key: 2,
4291
4458
  class: "g-textarea-char-count",
4292
4459
  "aria-live": "polite"
4293
- }, qa = /* @__PURE__ */ u({
4460
+ }, po = /* @__PURE__ */ u({
4294
4461
  inheritAttrs: !1,
4295
4462
  __name: "GTextarea",
4296
4463
  props: /*@__PURE__*/ m({
@@ -4334,7 +4501,7 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
4334
4501
  let e = x.value;
4335
4502
  e && (e.style.height = "auto", e.style.height = `${e.scrollHeight}px`);
4336
4503
  }
4337
- W(() => i.value, () => {
4504
+ G(() => i.value, () => {
4338
4505
  n.autoGrow && g(S);
4339
4506
  });
4340
4507
  function C(e) {
@@ -4364,12 +4531,12 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
4364
4531
  key: 0,
4365
4532
  for: m.value,
4366
4533
  class: "g-textarea-label"
4367
- }, [c(N(n.label), 1), n.required ? (w(), o("span", Ua, " *")) : a("", !0)], 8, Ha)) : a("", !0),
4534
+ }, [c(N(n.label), 1), n.required ? (w(), o("span", co, " *")) : a("", !0)], 8, so)) : a("", !0),
4368
4535
  t.$slots.instructions || e.instructions ? (w(), o("div", {
4369
4536
  key: 1,
4370
4537
  id: "instructions-" + L(u),
4371
4538
  class: "g-textarea-instructions"
4372
- }, [k(t.$slots, "instructions", {}, () => [c(N(e.instructions), 1)])], 8, Wa)) : a("", !0),
4539
+ }, [k(t.$slots, "instructions", {}, () => [c(N(e.instructions), 1)])], 8, lo)) : a("", !0),
4373
4540
  s("textarea", h({
4374
4541
  ref: "textareaEl",
4375
4542
  value: i.value ?? "",
@@ -4390,8 +4557,8 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
4390
4557
  onInput: T,
4391
4558
  onBlur: E,
4392
4559
  onPaste: D
4393
- }), null, 16, Ga),
4394
- n.maxlength === void 0 ? a("", !0) : (w(), o("div", Ka, N((i.value ?? "").length) + " / " + N(n.maxlength), 1)),
4560
+ }), null, 16, uo),
4561
+ n.maxlength === void 0 ? a("", !0) : (w(), o("div", fo, N((i.value ?? "").length) + " / " + N(n.maxlength), 1)),
4395
4562
  l(Me, {
4396
4563
  errors: L(v),
4397
4564
  id: "error-message-" + L(u)
@@ -4401,18 +4568,18 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
4401
4568
  });
4402
4569
  //#endregion
4403
4570
  //#region src/compose/useActiveLink.ts
4404
- function Ja(e, t, n) {
4571
+ function mo(e, t, n) {
4405
4572
  let r = [
4406
4573
  0,
4407
4574
  .25,
4408
4575
  .5,
4409
4576
  .75,
4410
4577
  1
4411
- ], i = `${-t}px 0px 0px 0px`, a = /* @__PURE__ */ new Map(), o = D(Array.from(Y(e)?.children || []));
4412
- ce(e, () => {
4413
- o.value = Array.from(Y(e)?.children || []);
4578
+ ], i = `${-t}px 0px 0px 0px`, a = /* @__PURE__ */ new Map(), o = D(Array.from(X(e)?.children || []));
4579
+ se(e, () => {
4580
+ o.value = Array.from(X(e)?.children || []);
4414
4581
  }, { childList: !0 });
4415
- let { stop: s } = oe(o, (e) => {
4582
+ let { stop: s } = Q(o, (e) => {
4416
4583
  let t = o.value[o.value.length - 1];
4417
4584
  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);
4418
4585
  let r = null, i = 0;
@@ -4431,8 +4598,8 @@ function Ja(e, t, n) {
4431
4598
  }
4432
4599
  //#endregion
4433
4600
  //#region src/compose/useSidebar.ts
4434
- function Ya(e = "(max-width: 800px)") {
4435
- let t = z(), n = D(!1), r = se(e, { ssrWidth: 1e3 });
4601
+ function ho(e = "(max-width: 800px)") {
4602
+ let t = z(), n = D(!1), r = oe(e, { ssrWidth: 1e3 });
4436
4603
  function i(e) {
4437
4604
  if (!r.value || !n.value) return;
4438
4605
  let i = e.target, a = document.getElementById(`${t}-sidebar`), o = document.getElementById(`${t}-hamburger`);
@@ -4448,7 +4615,7 @@ function Ya(e = "(max-width: 800px)") {
4448
4615
  }, 5));
4449
4616
  }
4450
4617
  return S(() => {
4451
- W(r, (e) => {
4618
+ G(r, (e) => {
4452
4619
  e ? (document.addEventListener("mousedown", i), document.addEventListener("focusin", a)) : (document.removeEventListener("mousedown", i), document.removeEventListener("focusin", a));
4453
4620
  }, { immediate: !0 });
4454
4621
  }), x(() => {
@@ -4462,8 +4629,8 @@ function Ya(e = "(max-width: 800px)") {
4462
4629
  }
4463
4630
  //#endregion
4464
4631
  //#region src/compose/useTableChanges.ts
4465
- function Xa() {
4466
- let e = j(/* @__PURE__ */ new Map()), t = q(), n = (n) => {
4632
+ function go() {
4633
+ let e = j(/* @__PURE__ */ new Map()), t = re(), n = (n) => {
4467
4634
  let r = n.column.key, i = n.row.key, a = n.value, o = n.previousValue;
4468
4635
  e.has(i) || e.set(i, j(/* @__PURE__ */ new Map()));
4469
4636
  let s = e.get(i), c = s.get(r), l = c ? c.previousValue : o, u = c?.error;
@@ -4565,6 +4732,6 @@ function Xa() {
4565
4732
  };
4566
4733
  }
4567
4734
  //#endregion
4568
- export { Ae as $, ir as A, nn as B, Mr as C, Lr as D, Ir as E, bn as F, mt as G, Mt as H, gn as I, et as J, ot as K, mn as L, On as M, Cn as N, jr as O, xn as P, ze as Q, pn as R, Pr as S, Nr as T, Et as U, Kt as V, xt as W, qe as X, $e as Y, Je as Z, na as _, Va as a, $ as at, Ki as b, ja as c, Sa as d, ke as et, xa as f, oa as g, ca as h, qa as i, ye as it, Un as j, br as k, Aa as l, fa as m, Ya as n, Ee as nt, Ba as o, ga as p, tt as q, Ja as r, be as rt, Ra as s, Xa as t, De as tt, Ca as u, ta as v, Fr as w, Li as x, Qi as y, un as z };
4735
+ export { ke as $, Un as A, Kt as B, ii as C, jr as D, oi as E, gn as F, ot as G, Et as H, mn as I, $e as J, tt as K, pn as L, Cn as M, xn as N, br as O, bn as P, Ae as Q, un as R, ti as S, ai as T, xt as U, Mt as V, mt as W, Je as X, qe as Y, ze as Z, xa as _, oo as a, da as b, Xa as c, Va as d, De as et, Ba as f, Ta as g, Da as h, po as i, $ as it, On as j, ir as k, Ya as l, ja as m, ho as n, be as nt, ao as o, Fa as p, et as q, mo as r, ye as rt, ro as s, go as t, Ee as tt, Ha as u, ba as v, ni as w, ri as x, _a as y, nn as z };
4569
4736
 
4570
- //# sourceMappingURL=grad-vue-BP-cplar.js.map
4737
+ //# sourceMappingURL=grad-vue-DId9tLsv.js.map