@illinois-grad/grad-vue 5.0.0 → 5.0.2

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,11 +1,11 @@
1
- import { Fragment as e, Teleport as t, Transition as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, getCurrentInstance as d, guardReactiveProps as f, inject as p, mergeModels as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeMount as b, onBeforeUnmount as x, onMounted as S, onUnmounted as C, 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";
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 ie, toArray as q, tryOnScopeDispose as ae, unrefElement as J, useClipboard as oe, useDebounceFn as se, useFocusWithin as ce, useIntersectionObserver as le, useMediaQuery as Y, useMutationObserver as ue, useResizeObserver as de, useSessionStorage as fe } from "@vueuse/core";
3
+ import { createFocusTrap as X } from "focus-trap";
4
4
  //#region src/compose/useCustomElementAttrs.ts
5
- function de() {
5
+ function Z() {
6
6
  return globalThis.__GRAD_VUE_IS_WEB_COMPONENTS_BUILD__ === !0;
7
7
  }
8
- function fe(e = {}) {
8
+ function pe(e = {}) {
9
9
  let t = R(), n = globalThis.__GRAD_VUE_IS_WEB_COMPONENTS_BUILD__ === !0, i = e.omitInCustomElement ?? [];
10
10
  return {
11
11
  attrs: t,
@@ -20,7 +20,7 @@ function fe(e = {}) {
20
20
  }
21
21
  //#endregion
22
22
  //#region src/components/GButton.vue?vue&type=script&setup=true&lang.ts
23
- var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__PURE__ */ u({
23
+ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PURE__ */ u({
24
24
  inheritAttrs: !1,
25
25
  __name: "GButton",
26
26
  props: {
@@ -51,7 +51,7 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__PUR
51
51
  "mouseleave"
52
52
  ],
53
53
  setup(t) {
54
- let n = t, a = V(), { forwardedAttrs: c } = fe({ omitInCustomElement: ["id"] }), l = r(() => [
54
+ let n = t, a = V(), { forwardedAttrs: c } = pe({ omitInCustomElement: ["id"] }), l = r(() => [
55
55
  "g-btn",
56
56
  `g-btn--${n.size}`,
57
57
  `g-btn--${n.theme}`,
@@ -79,11 +79,11 @@ var 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: 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", {
82
+ default: G(() => [t.icon || a.icon ? (w(), o(e, { key: 0 }, [s("span", me, [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"
86
- }, null, 2))]), s("span", me, [k(r.$slots, "default")])], 64)) : k(r.$slots, "default", {}, void 0, void 0, 1)]),
86
+ }, null, 2))]), s("span", he, [k(r.$slots, "default")])], 64)) : k(r.$slots, "default", {}, void 0, void 0, 1)]),
87
87
  _: 3
88
88
  }, 16, [
89
89
  "to",
@@ -91,13 +91,13 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__PUR
91
91
  "type"
92
92
  ]));
93
93
  }
94
- }), he = { class: "g-tree-menu__divider" }, ge = {
94
+ }), ge = { class: "g-tree-menu__divider" }, _e = {
95
95
  key: 0,
96
96
  class: "g-tree-menu__divider-line"
97
- }, _e = {
97
+ }, ve = {
98
98
  key: 1,
99
99
  class: "g-tree-menu__expand-all-wrapper"
100
- }, ve = { class: "g-tree-menu__content" }, ye = /* @__PURE__ */ u({
100
+ }, ye = { class: "g-tree-menu__content" }, be = /* @__PURE__ */ u({
101
101
  __name: "GTreeMenu",
102
102
  props: {
103
103
  heading: {},
@@ -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 ? le(t.storageKey, {}) : null;
120
+ let m = t.storageKey ? fe(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,10 +147,10 @@ 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: K(() => [k(n.$slots, "heading", {}, () => [c(N(e.heading), 1)])]),
150
+ default: G(() => [k(n.$slots, "heading", {}, () => [c(N(e.heading), 1)])]),
151
151
  _: 3
152
152
  }, 8, ["id"])) : a("", !0),
153
- s("div", he, [e.smallHeading ? a("", !0) : (w(), o("div", ge)), e.showExpandAll ? (w(), o("div", _e, [s("button", {
153
+ s("div", ge, [e.smallHeading ? a("", !0) : (w(), o("div", _e)), e.showExpandAll ? (w(), o("div", ve, [s("button", {
154
154
  class: "g-tree-menu__expand-all-btn",
155
155
  onClick: b
156
156
  }, [(w(), o("svg", {
@@ -163,14 +163,14 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__PUR
163
163
  "stroke-linecap": "round",
164
164
  "stroke-linejoin": "round"
165
165
  }, [...r[0] ||= [s("polyline", { points: "7 8 12 13 17 8" }, null, -1), s("polyline", { points: "7 13 12 18 17 13" }, null, -1)]], 2)), c(" " + N(y.value ? "Collapse all" : "Expand all"), 1)])])) : a("", !0)]),
166
- s("div", ve, [k(n.$slots, "default")])
166
+ s("div", ye, [k(n.$slots, "default")])
167
167
  ], 16));
168
168
  }
169
- }), be = /* @__PURE__ */ u({
169
+ }), xe = /* @__PURE__ */ u({
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 = de(), s = d();
173
+ let t = e, n = p("g-tree-menu-list-type", "ul"), a = r(() => t.listType ?? n ?? "ul"), o = Z(), s = d();
174
174
  return S(() => {
175
175
  if (!o) return;
176
176
  let e = s?.ce;
@@ -179,24 +179,24 @@ 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: K(() => [k(e.$slots, "default")]),
182
+ default: G(() => [k(e.$slots, "default")]),
183
183
  _: 3
184
184
  }, 8, ["role"]));
185
185
  }
186
- }), xe = {
186
+ }), Se = {
187
187
  key: 0,
188
188
  class: "g-tree-menu__row"
189
- }, Se = { class: "g-tree-menu__row-content-text" }, Ce = [
189
+ }, Ce = { class: "g-tree-menu__row-content-text" }, we = [
190
190
  "aria-controls",
191
191
  "aria-expanded",
192
192
  "aria-label"
193
- ], we = {
193
+ ], Te = {
194
194
  key: 1,
195
195
  class: "g-tree-menu__row g-tree-menu__row--leaf"
196
- }, Te = {
196
+ }, Ee = {
197
197
  class: "g-tree-menu__row-content",
198
198
  "data-tree-primary": ""
199
- }, Ee = /* @__PURE__ */ u({
199
+ }, De = /* @__PURE__ */ u({
200
200
  name: "GTreeMenuItem",
201
201
  inheritAttrs: !1,
202
202
  props: {
@@ -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
- G(() => n.expanded, (e) => {
223
+ W(() => n.expanded, (e) => {
224
224
  v && n.label !== void 0 || (C.value = e);
225
- }), G(C, (e) => {
225
+ }), W(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
- G(C, (e) => {
238
+ W(C, (e) => {
239
239
  O && g.value && O.set(E, e);
240
- }), j && G(() => j.value.version, () => {
240
+ }), j && W(() => 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 = de(), B = u?.ce;
250
+ let I = Z(), B = u?.ce;
251
251
  S(() => {
252
252
  I && B && B.setAttribute("role", "listitem");
253
253
  });
@@ -261,11 +261,11 @@ 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: K(() => [g.value ? (w(), o("div", xe, [s("span", {
264
+ default: G(() => [g.value ? (w(), o("div", Se, [s("span", {
265
265
  class: "g-tree-menu__row-content",
266
266
  "data-tree-primary": "",
267
267
  onClick: F
268
- }, [s("span", Se, [k(e.$slots, "default")])]), s("button", {
268
+ }, [s("span", Ce, [k(e.$slots, "default")])]), s("button", {
269
269
  type: "button",
270
270
  class: "g-tree-menu__toggle-btn",
271
271
  "aria-controls": L(f) + "-children",
@@ -283,11 +283,11 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__PUR
283
283
  "stroke-width": "2.5",
284
284
  "stroke-linecap": "round",
285
285
  "stroke-linejoin": "round"
286
- }, [...t[0] ||= [s("polyline", { points: "9 18 15 12 9 6" }, null, -1)]], 2))], 8, Ce)])) : (w(), o("div", we, [t[1] ||= s("span", { class: "g-tree-menu__spacer" }, null, -1), s("span", Te, [k(e.$slots, "default")])])), g.value && C.value ? (w(), i(be, {
286
+ }, [...t[0] ||= [s("polyline", { points: "9 18 15 12 9 6" }, null, -1)]], 2))], 8, we)])) : (w(), o("div", Te, [t[1] ||= s("span", { class: "g-tree-menu__spacer" }, null, -1), s("span", Ee, [k(e.$slots, "default")])])), g.value && C.value ? (w(), i(xe, {
287
287
  key: 2,
288
288
  id: L(f) + "-children"
289
289
  }, {
290
- default: K(() => [k(e.$slots, "children")]),
290
+ default: G(() => [k(e.$slots, "children")]),
291
291
  _: 3
292
292
  }, 8, ["id"])) : a("", !0)]),
293
293
  _: 3
@@ -296,7 +296,7 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__PUR
296
296
  });
297
297
  //#endregion
298
298
  //#region src/compose/useForm.ts
299
- function De() {
299
+ function Oe() {
300
300
  let e = j({}), t = D(!1), n = r(() => {
301
301
  let t = {};
302
302
  return Object.entries(e).forEach(([e, n]) => {
@@ -338,18 +338,18 @@ function De() {
338
338
  }
339
339
  //#endregion
340
340
  //#region src/compose/useWebComponentForm.ts
341
- function Oe() {
341
+ function ke() {
342
342
  let e = globalThis;
343
343
  return e.__GRAD_VUE_WC_FORMS__ ||= /* @__PURE__ */ new Map(), e.__GRAD_VUE_WC_FORMS__;
344
344
  }
345
- function ke(e = "default") {
346
- let t = Oe(), n = e || "default";
347
- return t.has(n) || t.set(n, De()), t.get(n);
345
+ function Ae(e = "default") {
346
+ let t = ke(), n = e || "default";
347
+ return t.has(n) || t.set(n, Oe()), t.get(n);
348
348
  }
349
349
  //#endregion
350
350
  //#region src/compose/useFormField.ts
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) ?? (de() ? ke(i) : null), o = r(() => {
351
+ function $(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) ?? (Z() ? Ae(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;
@@ -436,7 +436,7 @@ var je = ["id"], Me = /* @__PURE__ */ u({
436
436
  }),
437
437
  emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
438
438
  setup(e, { emit: t }) {
439
- let n = e, i = B(e, "modelValue"), u = z(), { attrs: d, isCustomElement: f, forwardedAttrs: p } = fe({ omitInCustomElement: ["id"] }), m = r(() => f ? u : d.id || u), { displayErrors: g, hasErrors: v } = Ae({
439
+ let n = e, i = B(e, "modelValue"), u = z(), { attrs: d, isCustomElement: f, forwardedAttrs: p } = pe({ omitInCustomElement: ["id"] }), m = r(() => f ? u : d.id || u), { displayErrors: g, hasErrors: v } = $({
440
440
  name: n.name,
441
441
  value: i,
442
442
  errors: F(n, "errors"),
@@ -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 G(r(() => J(I(e)).map((e) => {
563
+ return W(r(() => q(I(e)).map((e) => {
564
564
  let t = I(e);
565
- return typeof t == "string" ? t : X(t);
565
+ return typeof t == "string" ? t : J(t);
566
566
  }).filter(Xe)), (e) => {
567
567
  if (e.length) {
568
- if (!n) n = ue(e, {
568
+ if (!n) n = X(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" }), Y(() => l()), {
582
+ }, { flush: "post" }), ae(() => 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 G(t, (e) => {
628
+ return W(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(de());
690
+ let t = D(Z());
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
- G(F(d, "modelValue"), (e) => {
714
+ W(F(d, "modelValue"), (e) => {
715
715
  p.value = e;
716
716
  });
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), G(p, (e) => {
717
+ let m = V(), h = r(() => !!m.trigger), v = H("triggerRef"), b = H("popoverRef"), { isCustomElement: S } = pe(), 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) => {
719
719
  e ? (g(() => {
720
720
  g(() => M());
721
- }), E(), f("show")) : (N(), O(), f("hide"), q.value = !1, re.value = null);
721
+ }), E(), f("show")) : (N(), O(), f("hide"), K.value = !1, ie.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%" }), W = D(!1), te = D(!1), q = D(!1), re = D(null), J = null;
736
- function Y() {
735
+ }), U = D({ left: "50%" }), ee = D(!1), ne = D(!1), K = D(!1), ie = D(null), q = null;
736
+ function ae() {
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 X() {
743
+ function J() {
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
- 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();
746
+ K.value = r > n, ie.value = K.value ? n : null;
747
+ let i = new DOMRect(0, 0, e.offsetWidth, Math.min(r, n)), a = ae();
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
- }, te.value = !1, W.value = !1, U.value = { left: "50%" };
752
+ }, ne.value = !1, ee.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
- }, W.value = l, te.value = u;
763
+ }, ee.value = l, ne.value = u;
764
764
  }
765
- return G(p, (e) => {
765
+ return W(p, (e) => {
766
766
  e ? g(() => {
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());
767
+ J(), window.addEventListener("resize", J), window.addEventListener("scroll", J, { capture: !0 }), b.value && (q && q.disconnect(), q = new ResizeObserver(() => J()), q.observe(b.value));
768
+ }) : (window.removeEventListener("resize", J), window.removeEventListener("scroll", J, { capture: !0 }), q && q.disconnect());
769
769
  }), x(() => {
770
- window.removeEventListener("resize", X), window.removeEventListener("scroll", X, { capture: !0 }), J && J.disconnect();
770
+ window.removeEventListener("resize", J), window.removeEventListener("scroll", J, { capture: !0 }), q && q.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: K(() => [(w(), i(t, {
782
+ default: G(() => [(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: K(() => [L(S) || p.value ? ne((w(), o("div", {
789
+ default: G(() => [L(S) || p.value ? re((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": W.value,
796
- "g-popover-below": !W.value,
795
+ "g-popover-above": ee.value,
796
+ "g-popover-below": !ee.value,
797
797
  "g-popover-minimal": e.minimal,
798
- "g-popover-scrollable": q.value
798
+ "g-popover-scrollable": K.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: re.value === null ? void 0 : `${re.value}px`
808
+ maxHeight: ie.value === null ? void 0 : `${ie.value}px`
809
809
  })
810
810
  }, [
811
- !te.value && !e.minimal && !q.value ? (w(), o("div", {
811
+ !ne.value && !e.minimal && !K.value ? (w(), o("div", {
812
812
  key: 0,
813
- class: _(["g-popover-arrow", { "g-popover-arrow-above": W.value }]),
813
+ class: _(["g-popover-arrow", { "g-popover-arrow-above": ee.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)), [[ee, p.value]]) : a("", !0)]),
833
+ ], 14, at)), [[te, 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 G(() => [
925
+ return W(() => [
926
926
  u.value,
927
927
  d.value,
928
928
  l.value
929
929
  ], () => {
930
930
  A(b()), S();
931
- }, { immediate: !0 }), G(() => i.text, (e) => {
931
+ }, { immediate: !0 }), W(() => i.text, (e) => {
932
932
  f.value && (f.value.textContent = e);
933
- }), G(() => p.value || m.value, (e) => {
933
+ }), W(() => 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;
@@ -990,7 +990,7 @@ var mt = /* @__PURE__ */ u({
990
990
  }),
991
991
  emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
992
992
  setup(t, { emit: n }) {
993
- let i = t, u = n, d = B(t, "modelValue"), f = z(), { displayErrors: p, hasErrors: m } = Ae({
993
+ let i = t, u = n, d = B(t, "modelValue"), f = z(), { displayErrors: p, hasErrors: m } = $({
994
994
  name: i.name,
995
995
  value: d,
996
996
  errors: F(i, "errors"),
@@ -1131,7 +1131,7 @@ var mt = /* @__PURE__ */ u({
1131
1131
  name: "g-fade",
1132
1132
  appear: ""
1133
1133
  }, {
1134
- default: K(() => [s("div", {
1134
+ default: G(() => [s("div", {
1135
1135
  id: "alertdialog-" + L(f),
1136
1136
  class: "g-alertdialog",
1137
1137
  role: "alertdialog",
@@ -1150,17 +1150,17 @@ var mt = /* @__PURE__ */ u({
1150
1150
  id: "alertdialog-description-" + L(f),
1151
1151
  class: "g-alertdialog-content"
1152
1152
  }, [k(e.$slots, "default")], 8, At),
1153
- s("div", jt, [l($, {
1153
+ s("div", jt, [l(Q, {
1154
1154
  outlined: "",
1155
1155
  onClick: r[0] ||= (e) => o("cancel")
1156
1156
  }, {
1157
- default: K(() => [...r[2] ||= [c("Cancel", -1)]]),
1157
+ default: G(() => [...r[2] ||= [c("Cancel", -1)]]),
1158
1158
  _: 1
1159
- }), l($, {
1159
+ }), l(Q, {
1160
1160
  theme: a.buttonColor,
1161
1161
  onClick: r[1] ||= (e) => o("confirm")
1162
1162
  }, {
1163
- default: K(() => [c(N(a.buttonText), 1)]),
1163
+ default: G(() => [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
- G(e, (e) => {
1203
+ W(e, (e) => {
1204
1204
  e ? (o(), m(), g(() => f())) : (s(), h(), l.value = "below", u.value = null);
1205
1205
  }), x(() => {
1206
1206
  h();
@@ -1286,7 +1286,7 @@ var Ft = ["id"], It = {
1286
1286
  }),
1287
1287
  emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
1288
1288
  setup(t, { emit: n }) {
1289
- let i = t, u = n, d = B(t, "modelValue"), f = z(), p = D(null), m = D(null), v = D(null), y = D(!1), b = D(0), x = D(!1), S = D(!1), { displayErrors: C, hasErrors: T } = Ae({
1289
+ let i = t, u = n, d = B(t, "modelValue"), f = z(), p = D(null), m = D(null), v = D(null), y = D(!1), b = D(0), x = D(!1), S = D(!1), { displayErrors: C, hasErrors: T } = $({
1290
1290
  name: i.name,
1291
1291
  value: d,
1292
1292
  errors: F(i, "errors"),
@@ -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
- G(() => d.value, (e) => {
1305
+ W(() => 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 W(e) {
1321
+ function ee(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 te(e) {
1330
+ function ne(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 K(e) {
1336
+ function G(e) {
1337
1337
  let t = e.relatedTarget;
1338
1338
  if (x.value) {
1339
1339
  x.value = !1;
@@ -1341,16 +1341,16 @@ var Ft = ["id"], It = {
1341
1341
  }
1342
1342
  t && m.value && m.value.contains(t) || (i.searchable && (I.value = ""), U());
1343
1343
  }
1344
- function re(e) {
1344
+ function ie(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;
1348
1348
  }, 100);
1349
1349
  }
1350
- function J() {
1350
+ function q() {
1351
1351
  i.disabled || (y.value ? U() : H());
1352
1352
  }
1353
- function Y(e) {
1353
+ function ae(e) {
1354
1354
  if (i.disabled) return;
1355
1355
  let t = R.value.length - 1;
1356
1356
  if (!y.value && [
@@ -1377,21 +1377,21 @@ var Ft = ["id"], It = {
1377
1377
  break;
1378
1378
  case "Enter":
1379
1379
  case " ":
1380
- e.preventDefault(), y.value ? re(b.value) : H();
1380
+ e.preventDefault(), y.value ? ie(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 X(e) {
1388
- re(e);
1387
+ function J(e) {
1388
+ ie(e);
1389
1389
  }
1390
- function ie() {
1390
+ function oe() {
1391
1391
  x.value = !0;
1392
1392
  }
1393
- let ae = r(() => i.clearButton && d.value !== null && d.value !== void 0 && !i.disabled);
1394
- function Z() {
1393
+ let se = r(() => i.clearButton && d.value !== null && d.value !== void 0 && !i.disabled);
1394
+ function ce() {
1395
1395
  i.disabled || (d.value = null, u("change", null), i.searchable && (I.value = ""));
1396
1396
  }
1397
1397
  return (n, r) => (w(), o("div", { class: _(["g-select-root g-select-combo", {
@@ -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: W,
1422
- onInput: te,
1423
- onKeydown: Y,
1424
- onBlur: K,
1421
+ onFocus: ee,
1422
+ onInput: ne,
1423
+ onKeydown: ae,
1424
+ onBlur: G,
1425
1425
  "aria-autocomplete": "list",
1426
1426
  "aria-controls": L(f) + "-listbox",
1427
1427
  "aria-expanded": y.value ? "true" : "false",
@@ -1432,11 +1432,11 @@ var Ft = ["id"], It = {
1432
1432
  role: "combobox",
1433
1433
  autocomplete: "off"
1434
1434
  }), null, 16, zt),
1435
- ae.value ? (w(), o("button", {
1435
+ se.value ? (w(), o("button", {
1436
1436
  key: 0,
1437
1437
  type: "button",
1438
1438
  class: "g-select-clear-btn",
1439
- onClick: Z
1439
+ onClick: ce
1440
1440
  }, [...r[0] ||= [s("svg", {
1441
1441
  role: "img",
1442
1442
  "aria-label": "Clear Selection",
@@ -1471,17 +1471,17 @@ var Ft = ["id"], It = {
1471
1471
  }, t.hiddenLabel ? { "aria-label": i.label } : { "aria-labelledby": L(f) + "-label" }, {
1472
1472
  "aria-activedescendant": y.value ? L(f) + "-option-" + b.value : void 0,
1473
1473
  tabindex: "0",
1474
- onClick: J,
1475
- onKeydown: Y,
1476
- onFocus: W,
1477
- onBlur: K
1474
+ onClick: q,
1475
+ onKeydown: ae,
1476
+ onFocus: ee,
1477
+ onBlur: G
1478
1478
  }), [
1479
1479
  c(N(P.value[V.value] ? P.value[V.value].label : "") + " ", 1),
1480
- ae.value ? (w(), o("button", {
1480
+ se.value ? (w(), o("button", {
1481
1481
  key: 0,
1482
1482
  type: "button",
1483
1483
  class: "g-select-clear-btn",
1484
- onClick: q(Z, ["stop"])
1484
+ onClick: K(ce, ["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)), ne(s("div", h({
1505
+ ], 16, Bt)), re(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: ie,
1522
- onClick: (e) => X(t)
1521
+ onMousedown: oe,
1522
+ onClick: (e) => J(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), [[ee, 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), [[te, y.value]])]),
1528
1528
  l(Me, {
1529
1529
  errors: L(C),
1530
1530
  id: "error-message-" + L(f)
@@ -1579,7 +1579,7 @@ var Ft = ["id"], It = {
1579
1579
  e && e.scrollIntoView({ block: "nearest" });
1580
1580
  });
1581
1581
  }
1582
- let { focused: S } = Z(f);
1582
+ let { focused: S } = ce(f);
1583
1583
  function C(e) {
1584
1584
  let t = e.altKey;
1585
1585
  if (e.key === "ArrowDown") {
@@ -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 = ae(() => {
1606
+ let E = r(() => !!u.loading), A = r(() => S.value && !m.value), j = se(() => {
1607
1607
  d("submit", l.value);
1608
1608
  }, 300);
1609
- G(() => l.value, (e) => {
1609
+ W(() => 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] ||= q((e) => T(null), ["prevent"])
1619
+ onSubmit: n[0] ||= K((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: q((t) => T(e), ["prevent"]),
1667
+ onMousedown: K((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: q((t) => T(e), ["prevent"]),
1674
+ onMousedown: K((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: oe(t, { ssrWidth: 1e3 }),
1736
+ isCollapsible: Y(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 && G(t, (e) => {
1741
+ o.toggle = () => o.open.value = !o.open.value, typeof t == "string" ? t.trim() && (o.breakpoint.value = t) : t && W(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
- G(o.isCollapsible, (e) => {
1759
+ W(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 ? le(`${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 ? fe(`${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) ?? (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);
1865
+ let t = e, n = p("sidebar", () => void 0, !0) ?? (Z() ? pn(t.sidebarKey, F(t, "mediaQuery")) : void 0), i = r(() => t.backgroundImage ? t.backgroundImage : t.theme === "light" ? "none" : "url('https://gradcdn.blob.core.windows.net/public/sidebar-bg2.jpg')"), a = r(() => t.backgroundColor ? t.backgroundColor : t.theme === "light" ? "#f9f9f9" : "#030913"), s = r(() => t.topOffsetVar ? `var(${t.topOffsetVar})` : t.topOffset ? t.topOffset : "var(--g-toolbar-height)"), c = z(), { isPendingScrollRestore: l } = mn(H("sidebar-ref"), t.storageKey);
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
- G(l, () => {
1918
+ W(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: K(() => [c(N(e.label), 1)]),
1956
+ default: G(() => [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
- te(() => {
1974
+ ne(() => {
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
- te(() => {
1980
+ ne(() => {
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 } = ie({ 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 } = oe({ 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)), ne((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)), re((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
- }), ce(i, () => {
2081
+ }), de(i, () => {
2082
2082
  u.value && f();
2083
- }), ce(c, () => {
2083
+ }), de(c, () => {
2084
2084
  u.value && f();
2085
- }), G(() => n.entries, async () => {
2085
+ }), W(() => n.entries, async () => {
2086
2086
  u.value && (await g(), f());
2087
2087
  });
2088
2088
  let m = r(() => [...n.entries].reverse());
@@ -2096,14 +2096,14 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
2096
2096
  role: t.label ? "log" : void 0,
2097
2097
  "aria-label": t.label,
2098
2098
  onScroll: p
2099
- }, [l($, {
2099
+ }, [l(Q, {
2100
2100
  class: _(["g-scroll-to-bottom-btn", { "scroll-to-bottom-btn--hidden": u.value }]),
2101
2101
  size: "small",
2102
2102
  type: "button",
2103
2103
  onClick: r[0] ||= () => f({ focusLast: !0 }),
2104
2104
  "aria-label": "Jump to Latest"
2105
2105
  }, {
2106
- default: K(() => [...r[1] ||= [s("svg", {
2106
+ default: G(() => [...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] ||= q(() => {}, ["stop"])
2376
+ onClick: r[0] ||= K(() => {}, ["stop"])
2377
2377
  }, [s("input", {
2378
2378
  type: "checkbox",
2379
2379
  checked: p(n.key),
@@ -2496,7 +2496,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
2496
2496
  }),
2497
2497
  emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
2498
2498
  setup(t, { emit: n }) {
2499
- let i = t, u = n, d = B(t, "modelValue"), f = z(), p = D(null), m = D(null), v = D(null), y = D(!1), b = D(0), x = D(""), S = D(!1), { displayErrors: C, hasErrors: T } = Ae({
2499
+ let i = t, u = n, d = B(t, "modelValue"), f = z(), p = D(null), m = D(null), v = D(null), y = D(!1), b = D(0), x = D(""), S = D(!1), { displayErrors: C, hasErrors: T } = $({
2500
2500
  name: i.name,
2501
2501
  value: d,
2502
2502
  errors: F(i, "errors"),
@@ -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 W(e) {
2534
+ function ee(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 G() {
2539
+ function W() {
2540
2540
  i.disabled || (p.value?.focus(), y.value || V());
2541
2541
  }
2542
- function te(e) {
2542
+ function ne(e) {
2543
2543
  x.value = e.target.value, b.value = 0, y.value || V();
2544
2544
  }
2545
- function K() {
2545
+ function G() {
2546
2546
  i.disabled || y.value || V();
2547
2547
  }
2548
- function re(e) {
2548
+ function ie(e) {
2549
2549
  if (S.value) {
2550
2550
  S.value = !1;
2551
2551
  return;
@@ -2553,13 +2553,13 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
2553
2553
  let t = e.relatedTarget;
2554
2554
  t && v.value?.contains(t) || t && m.value?.contains(t) || H();
2555
2555
  }
2556
- function J(e) {
2556
+ function q(e) {
2557
2557
  e.preventDefault();
2558
2558
  }
2559
- function Y() {
2559
+ function ae() {
2560
2560
  S.value = !0;
2561
2561
  }
2562
- function X(e) {
2562
+ function J(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 && W(d.value[d.value.length - 1]);
2587
+ case "Backspace": !x.value && d.value.length > 0 && ee(d.value[d.value.length - 1]);
2588
2588
  }
2589
2589
  }
2590
- let ie = r(() => `${f}-input`), ae = r(() => `${f}-label`), Z = r(() => `${f}-instructions`), Q = r(() => `error-message-${f}`), oe = r(() => {
2590
+ let oe = r(() => `${f}-input`), se = r(() => `${f}-label`), ce = r(() => `${f}-instructions`), le = r(() => `error-message-${f}`), Y = r(() => {
2591
2591
  let e = [];
2592
- return i.instructions && e.push(Z.value), T.value && e.push(Q.value), e.length > 0 ? e.join(" ") : void 0;
2592
+ return i.instructions && e.push(ce.value), T.value && e.push(le.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,25 +2597,25 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
2597
2597
  }]) }, [
2598
2598
  t.hiddenLabel ? a("", !0) : (w(), o("label", {
2599
2599
  key: 0,
2600
- id: ae.value,
2601
- for: ie.value,
2600
+ id: se.value,
2601
+ for: oe.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", {
2605
2605
  key: 1,
2606
- id: Z.value,
2606
+ id: ce.value,
2607
2607
  class: "g-multiselect-instructions"
2608
2608
  }, N(t.instructions), 9, sr)) : a("", !0),
2609
2609
  s("div", {
2610
2610
  ref_key: "controlRef",
2611
2611
  ref: m,
2612
2612
  class: _(["g-multiselect-control", { "g-multiselect-control--disabled": t.disabled }]),
2613
- onClick: G
2613
+ onClick: W
2614
2614
  }, [
2615
2615
  d.value.length ? (w(), o("ul", {
2616
2616
  key: 0,
2617
2617
  class: "g-multiselect-chips",
2618
- "aria-labelledby": ae.value
2618
+ "aria-labelledby": se.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: Y,
2628
- onClick: q((t) => W(e), ["stop"])
2627
+ onMousedown: ae,
2628
+ onClick: K((t) => ee(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: ie.value,
2644
+ id: oe.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": oe.value,
2655
+ "aria-describedby": Y.value,
2656
2656
  "aria-required": t.required ? "true" : void 0,
2657
- onInput: te,
2658
- onKeydown: X,
2659
- onFocus: K,
2660
- onBlur: re
2657
+ onInput: ne,
2658
+ onKeydown: J,
2659
+ onFocus: G,
2660
+ onBlur: ie
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
- ne(s("div", h({
2672
+ re(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": ae.value }, {
2678
+ }, t.hiddenLabel ? { "aria-label": t.label } : { "aria-labelledby": se.value }, {
2679
2679
  class: ["g-multiselect-listbox", { "g-multiselect-listbox--above": L(E) === "above" }],
2680
2680
  style: L(k),
2681
2681
  tabindex: "-1"
@@ -2688,13 +2688,13 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
2688
2688
  "g-multiselect-option--selected": I(e.value)
2689
2689
  }]),
2690
2690
  "aria-selected": I(e.value) ? "true" : "false",
2691
- onMousedown: J,
2691
+ onMousedown: q,
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), [[ee, 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), [[te, y.value]])
2694
2694
  ], 2),
2695
2695
  l(Me, {
2696
2696
  errors: L(C),
2697
- id: Q.value
2697
+ id: le.value
2698
2698
  }, null, 8, ["errors", "id"])
2699
2699
  ], 2));
2700
2700
  }
@@ -2744,7 +2744,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
2744
2744
  }),
2745
2745
  emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
2746
2746
  setup(t, { emit: n }) {
2747
- let u = t, d = B(t, "modelValue"), f = z(), { displayErrors: p, hasErrors: m } = Ae({
2747
+ let u = t, d = B(t, "modelValue"), f = z(), { displayErrors: p, hasErrors: m } = $({
2748
2748
  name: u.name,
2749
2749
  value: d,
2750
2750
  errors: F(u, "errors"),
@@ -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: K(() => [
2784
+ default: G(() => [
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,
@@ -2968,7 +2968,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
2968
2968
  for: L(d)
2969
2969
  }, " per page ", 8, Hr)]),
2970
2970
  s("div", Ur, [l(ot, null, {
2971
- trigger: K(({ toggle: e }) => [s("button", {
2971
+ trigger: G(({ toggle: e }) => [s("button", {
2972
2972
  type: "button",
2973
2973
  class: "g-pagination-button g-pagination-overflow-trigger",
2974
2974
  "aria-label": "More pagination options",
@@ -2983,7 +2983,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
2983
2983
  fill: "currentColor",
2984
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
2985
  })], -1)]], 8, Wr)]),
2986
- default: K(() => [s("div", Gr, [
2986
+ default: G(() => [s("div", Gr, [
2987
2987
  n[15] ||= s("h2", {
2988
2988
  class: "g-pagination-overflow-title",
2989
2989
  tabindex: "-1",
@@ -3106,7 +3106,7 @@ function oi(e, t = {}) {
3106
3106
  }
3107
3107
  });
3108
3108
  }
3109
- G(n, (e) => {
3109
+ W(n, (e) => {
3110
3110
  i.value = ai(e);
3111
3111
  }, { deep: !0 });
3112
3112
  }
@@ -3177,43 +3177,51 @@ var si = { class: "g-table-outer-wrap" }, ci = {
3177
3177
  }, Ri = { class: "g-clear-filters-wrap" }, zi = {
3178
3178
  key: 0,
3179
3179
  class: "pagination"
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 = {
3180
+ }, Bi = { class: "g-result-count" }, Vi = ["aria-label", "aria-rowcount"], Hi = { key: 0 }, Ui = ["data-column-key"], Wi = { class: "g-table-head" }, Gi = { "aria-rowindex": "1" }, Ki = {
3181
3181
  key: 0,
3182
3182
  scope: "col",
3183
3183
  class: "g-th g-th-checkbox"
3184
- }, Ki = [
3184
+ }, qi = [
3185
3185
  "checked",
3186
3186
  "indeterminate",
3187
3187
  "aria-label"
3188
- ], qi = ["id", "aria-sort"], Ji = { class: "th-inner" }, Yi = ["onClick"], Xi = {
3188
+ ], Ji = ["id", "aria-sort"], Yi = { class: "th-inner" }, Xi = ["onClick"], Zi = {
3189
3189
  key: 0,
3190
3190
  class: "sort-indicator",
3191
3191
  "aria-hidden": "true"
3192
- }, Zi = {
3192
+ }, Qi = {
3193
3193
  key: 1,
3194
3194
  class: "g-visually-hidden"
3195
- }, Qi = {
3195
+ }, $i = {
3196
3196
  key: 1,
3197
3197
  class: "g-column-head"
3198
- }, $i = ["onClick", "aria-label"], ea = {
3198
+ }, ea = ["onClick", "aria-label"], ta = {
3199
3199
  key: 1,
3200
3200
  class: "g-filter-search",
3201
3201
  role: "search"
3202
- }, ta = [
3202
+ }, na = [
3203
3203
  "onUpdate:modelValue",
3204
3204
  "placeholder",
3205
3205
  "aria-label"
3206
- ], na = { key: 2 }, ra = { class: "g-filter-toggle" }, ia = [
3206
+ ], ra = { key: 2 }, ia = { class: "g-filter-toggle" }, aa = [
3207
3207
  "onUpdate:modelValue",
3208
3208
  "id",
3209
3209
  "aria-describedby"
3210
- ], aa = ["for"], oa = ["id"], sa = {
3210
+ ], oa = ["for"], sa = ["id"], ca = {
3211
3211
  key: 4,
3212
3212
  class: "g-multi-select"
3213
- }, ca = {
3213
+ }, la = [
3214
+ "data-column-key",
3215
+ "aria-label",
3216
+ "aria-valuemax",
3217
+ "aria-valuenow",
3218
+ "aria-valuetext",
3219
+ "onKeydown",
3220
+ "onPointerdown"
3221
+ ], ua = {
3214
3222
  key: 1,
3215
3223
  class: "g-bulk-actions-toolbar"
3216
- }, la = { class: "g-selected-count" }, ua = { class: "g-bulk-actions" }, da = /* @__PURE__ */ u({
3224
+ }, da = { class: "g-selected-count" }, fa = { class: "g-bulk-actions" }, pa = /* @__PURE__ */ u({
3217
3225
  __name: "GTable",
3218
3226
  props: /*@__PURE__*/ m({
3219
3227
  label: {},
@@ -3242,14 +3250,18 @@ var si = { class: "g-table-outer-wrap" }, ci = {
3242
3250
  pagination: {
3243
3251
  type: Boolean,
3244
3252
  default: !1
3253
+ },
3254
+ resizableColumns: {
3255
+ type: Boolean,
3256
+ default: !1
3245
3257
  }
3246
3258
  }, {
3247
3259
  sorts: { default: () => [] },
3248
3260
  sortsModifiers: {},
3249
3261
  filter: { default: () => ({}) },
3250
3262
  filterModifiers: {},
3251
- columnVisibility: { default: () => ({}) },
3252
- columnVisibilityModifiers: {},
3263
+ columnState: { default: () => ({}) },
3264
+ columnStateModifiers: {},
3253
3265
  selectedRows: { default: () => [] },
3254
3266
  selectedRowsModifiers: {}
3255
3267
  }),
@@ -3262,37 +3274,37 @@ var si = { class: "g-table-outer-wrap" }, ci = {
3262
3274
  ], [
3263
3275
  "update:sorts",
3264
3276
  "update:filter",
3265
- "update:columnVisibility",
3277
+ "update:columnState",
3266
3278
  "update:selectedRows"
3267
3279
  ]),
3268
3280
  setup(t, { emit: n }) {
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;
3281
+ let u = B(t, "sorts"), f = B(t, "filter"), p = B(t, "columnState"), m = B(t, "selectedRows"), h = t, v = n, b = h.filtering;
3270
3282
  b ||= oi({});
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);
3272
- function R() {
3273
- if (M.value) m.value = m.value.filter((e) => !A.value.includes(e));
3283
+ let { filters: C, filteredColumns: T, isFiltered: E, clearFilters: A } = b, j = r(() => h.data.map((e) => e.key)), M = r(() => m.value.filter((e) => j.value.includes(e))), F = r(() => !h.bulkSelectionEnabled || h.data.length === 0 ? !1 : M.value.length === j.value.length), I = r(() => !h.bulkSelectionEnabled || h.data.length === 0 ? !1 : M.value.length > 0 && M.value.length < j.value.length), R = D(null);
3284
+ function H() {
3285
+ if (F.value) m.value = m.value.filter((e) => !j.value.includes(e));
3274
3286
  else {
3275
3287
  let e = new Set(m.value);
3276
- A.value.forEach((t) => e.add(t)), m.value = Array.from(e);
3288
+ j.value.forEach((t) => e.add(t)), m.value = Array.from(e);
3277
3289
  }
3278
3290
  }
3279
- function H(e, t = !1) {
3280
- if (t && I.value) {
3281
- let t = A.value.indexOf(I.value), n = A.value.indexOf(e);
3291
+ function te(e, t = !1) {
3292
+ if (t && R.value) {
3293
+ let t = j.value.indexOf(R.value), n = j.value.indexOf(e);
3282
3294
  if (t !== -1 && n !== -1) {
3283
- let e = Math.min(t, n), r = Math.max(t, n), i = A.value.slice(e, r + 1), a = new Set(m.value);
3295
+ let e = Math.min(t, n), r = Math.max(t, n), i = j.value.slice(e, r + 1), a = new Set(m.value);
3284
3296
  i.forEach((e) => a.add(e)), m.value = Array.from(a);
3285
3297
  }
3286
3298
  } else m.value.includes(e) ? m.value = m.value.filter((t) => t !== e) : m.value = [...m.value, e];
3287
- I.value = e;
3299
+ R.value = e;
3288
3300
  }
3289
- function ee(e) {
3301
+ function W(e) {
3290
3302
  v("row-click", e);
3291
3303
  }
3292
- function G(e) {
3304
+ function ne(e) {
3293
3305
  v("bulk-action", e, m.value);
3294
3306
  }
3295
- function te(e) {
3307
+ function ie(e) {
3296
3308
  let t = e.value, n = e.column.key, r = P(e.row[n]);
3297
3309
  e.column.editable?.inputAttributes?.type === "number" && (t = e.value === "" ? null : Number(e.value)), e.row[n] = t;
3298
3310
  let i = {
@@ -3303,127 +3315,215 @@ var si = { class: "g-table-outer-wrap" }, ci = {
3303
3315
  };
3304
3316
  v("cell-change", i);
3305
3317
  }
3306
- function re(e) {
3318
+ function q(e) {
3307
3319
  v("update:startIndex", e ?? 0);
3308
3320
  }
3309
- function J(e) {
3321
+ function ae(e) {
3310
3322
  e !== void 0 && v("update:pageSize", e);
3311
3323
  }
3312
- let Y = z(), X = d(), ie = D(null);
3313
- function ae(e) {
3324
+ let J = z(), oe = d(), se = D(null), ce = D(null), le = D(null), Y = D(null), ue = `${J}-table`;
3325
+ function de(e) {
3314
3326
  let t = /* @__PURE__ */ new Set();
3315
3327
  return e.filter((e) => !e?.key || t.has(String(e.key)) ? !1 : (t.add(String(e.key)), e.order === 1 || e.order === -1));
3316
3328
  }
3317
- function Z(e, t) {
3329
+ function fe(e, t) {
3318
3330
  return {
3319
3331
  key: e,
3320
3332
  order: t
3321
3333
  };
3322
3334
  }
3323
- let Q = r(() => ae(u.value));
3324
- function oe(e) {
3325
- u.value = ae(e);
3335
+ let X = r(() => de(u.value));
3336
+ function Z(e) {
3337
+ u.value = de(e);
3326
3338
  }
3327
- let se = r(() => h.columns.filter((e) => e.sortable)), ce = r(() => se.value.length > 1), le = r(() => {
3328
- let e = new Set(Q.value.map((e) => String(e.key)));
3329
- return se.value.filter((t) => !e.has(String(t.key)));
3339
+ let pe = r(() => h.columns.filter((e) => e.sortable)), me = r(() => pe.value.length > 1), he = r(() => {
3340
+ let e = new Set(X.value.map((e) => String(e.key)));
3341
+ return pe.value.filter((t) => !e.has(String(t.key)));
3330
3342
  });
3331
- function ue(e) {
3332
- return Q.value.findIndex((t) => t.key === e);
3343
+ function ge(e) {
3344
+ return X.value.findIndex((t) => t.key === e);
3333
3345
  }
3334
- function de(e) {
3335
- return Q.value.find((t) => t.key === e);
3346
+ function _e(e) {
3347
+ return X.value.find((t) => t.key === e);
3336
3348
  }
3337
- function fe(e) {
3349
+ function ve(e) {
3338
3350
  return h.columns.find((t) => t.key === e)?.label || String(e);
3339
3351
  }
3340
- function pe(e) {
3341
- let t = ue(e);
3342
- return t === -1 ? "none" : t > 0 ? "other" : Q.value[0]?.order === 1 ? "ascending" : "descending";
3352
+ function ye(e) {
3353
+ let t = ge(e);
3354
+ return t === -1 ? "none" : t > 0 ? "other" : X.value[0]?.order === 1 ? "ascending" : "descending";
3343
3355
  }
3344
- function me(e) {
3345
- let t = ue(e);
3356
+ function be(e) {
3357
+ let t = ge(e);
3346
3358
  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}`;
3359
+ let n = X.value[t].order === 1 ? "ascending" : "descending";
3360
+ return X.value.length > 1 ? `Sorted ${n}, priority ${t + 1}` : `Sorted ${n}`;
3349
3361
  }
3350
- function he(e) {
3362
+ function xe(e) {
3351
3363
  return e === 1 ? "Ascending" : "Descending";
3352
3364
  }
3353
- function ge(e) {
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)];
3365
+ function Se(e) {
3366
+ let t = X.value[0]?.key === e ? X.value[0] : void 0;
3367
+ return t ? t.order === 1 ? [fe(e, -1)] : [] : [fe(e, 1)];
3356
3368
  }
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);
3369
+ function Ce(e) {
3370
+ let t = [...X.value], n = t.findIndex((t) => t.key === e);
3371
+ return n === -1 ? (t.push(fe(e, 1)), t) : t[n].order === 1 ? (t[n] = fe(e, -1), t) : (t.splice(n, 1), t);
3360
3372
  }
3361
- function ve(e, t = !1) {
3373
+ function we(e, t = !1) {
3362
3374
  if (!e.sortable) return;
3363
3375
  let n = e.key;
3364
- oe(t ? _e(n) : ge(n));
3376
+ Z(t ? Ce(n) : Se(n));
3365
3377
  }
3366
- function ye(e, t) {
3367
- oe([...Q.value, Z(e, t)]), g(() => {
3368
- let t = ie.value;
3378
+ function Te(e, t) {
3379
+ Z([...X.value, fe(e, t)]), g(() => {
3380
+ let t = se.value;
3369
3381
  t && (t.querySelector(`[data-sort-row-key="${String(e)}"]`) ?? t)?.focus();
3370
3382
  }).catch((e) => {
3371
3383
  console.error(e);
3372
3384
  });
3373
3385
  }
3374
- function be(e) {
3375
- oe(Q.value.map((t) => t.key === e ? Z(t.key, t.order === 1 ? -1 : 1) : t));
3386
+ function Ee(e) {
3387
+ Z(X.value.map((t) => t.key === e ? fe(t.key, t.order === 1 ? -1 : 1) : t));
3376
3388
  }
3377
- function xe(e) {
3378
- oe(Q.value.filter((t) => t.key !== e));
3379
- }
3380
- function Se() {
3381
- oe([]);
3382
- }
3383
- let Ce = r(() => {
3384
- let e = X?.vnode.props ?? {};
3385
- return "columnVisibility" in e || "column-visibility" in e || "onUpdate:columnVisibility" in e;
3386
- }), we = r(() => {
3387
- let e = p.value;
3388
- return h.columns.filter((t) => e[t.key] !== !1);
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) {
3391
- return p.value[e.key] !== !1;
3392
- }
3393
- function je(e, t) {
3389
+ function De(e) {
3390
+ Z(X.value.filter((t) => t.key !== e));
3391
+ }
3392
+ function Oe() {
3393
+ Z([]);
3394
+ }
3395
+ function ke(e) {
3396
+ return p.value[e] ?? {};
3397
+ }
3398
+ function Ae(e, t) {
3394
3399
  p.value = {
3395
3400
  ...p.value,
3396
- [e.key]: t
3401
+ [e]: {
3402
+ ...ke(e),
3403
+ ...t
3404
+ }
3397
3405
  };
3398
3406
  }
3399
- function Me() {
3407
+ function $(e) {
3408
+ return Math.max(50, Math.round(e));
3409
+ }
3410
+ function je(e) {
3411
+ let t = ke(e).width;
3412
+ if (!(typeof t != "number" || !Number.isFinite(t))) return $(t);
3413
+ }
3414
+ function Me(e) {
3415
+ return document.getElementById(`${J}-th-${String(e)}`);
3416
+ }
3417
+ function Ne(e) {
3418
+ let t = Me(e)?.getBoundingClientRect().width;
3419
+ return $(t ?? 50);
3420
+ }
3421
+ function Pe(e) {
3422
+ return je(e) ?? Ne(e);
3423
+ }
3424
+ function Fe(e) {
3425
+ let t = Pe(e), n = le.value?.getBoundingClientRect().width ?? ce.value?.getBoundingClientRect().width ?? t;
3426
+ return $(Math.max(t, n));
3427
+ }
3428
+ function Ie(e, t) {
3429
+ Ae(e, { width: $(t) });
3430
+ }
3431
+ function Le(e, t) {
3432
+ Ie(e, Pe(e) + t);
3433
+ }
3434
+ function Re() {
3435
+ Y.value = null, window.removeEventListener("pointermove", ze), window.removeEventListener("pointerup", Re), window.removeEventListener("pointercancel", Re);
3436
+ }
3437
+ function ze(e) {
3438
+ if (!Y.value) return;
3439
+ let t = Y.value.startWidth + (e.clientX - Y.value.startX);
3440
+ Ie(Y.value.key, t);
3441
+ }
3442
+ function Be(e, t) {
3443
+ if (!h.resizableColumns) return;
3444
+ e.preventDefault(), e.stopPropagation();
3445
+ let n = Pe(t);
3446
+ Ie(t, n), Y.value = {
3447
+ key: t,
3448
+ startX: e.clientX,
3449
+ startWidth: n
3450
+ }, e.currentTarget?.focus(), window.addEventListener("pointermove", ze), window.addEventListener("pointerup", Re), window.addEventListener("pointercancel", Re);
3451
+ }
3452
+ function Ve(e, t) {
3453
+ let n = e.shiftKey ? 48 : 16;
3454
+ switch (e.key) {
3455
+ case "ArrowLeft":
3456
+ e.preventDefault(), Le(t, -n);
3457
+ return;
3458
+ case "ArrowRight":
3459
+ e.preventDefault(), Le(t, n);
3460
+ return;
3461
+ case "Home":
3462
+ e.preventDefault(), Ie(t, 50);
3463
+ return;
3464
+ case "End":
3465
+ e.preventDefault(), Ie(t, Fe(t));
3466
+ return;
3467
+ default: return;
3468
+ }
3469
+ }
3470
+ function He(e) {
3471
+ if (!h.resizableColumns) return;
3472
+ let t = je(e.key);
3473
+ if (t !== void 0) return {
3474
+ width: `${t}px`,
3475
+ minWidth: `${t}px`
3476
+ };
3477
+ }
3478
+ function Ue(e) {
3479
+ return Pe(e);
3480
+ }
3481
+ function We(e) {
3482
+ return `${Ue(e)} pixels`;
3483
+ }
3484
+ let Ge = r(() => {
3485
+ let e = oe?.vnode.props ?? {};
3486
+ return "columnState" in e || "column-state" in e || "onUpdate:columnState" in e;
3487
+ }), Ke = r(() => h.columns.filter((e) => ke(e.key).visible !== !1)), qe = V(), Je = r(() => Ke.value.length !== h.columns.length), Ye = r(() => Ge.value && h.columns.length > 0), Xe = r(() => !!qe.controls), Ze = r(() => h.resultCount ?? h.data.length);
3488
+ function Qe(e) {
3489
+ return ke(e.key).visible !== !1;
3490
+ }
3491
+ function $e(e, t) {
3492
+ Ae(e.key, { visible: t });
3493
+ }
3494
+ function et() {
3400
3495
  p.value = h.columns.reduce((e, t) => ({
3401
3496
  ...e,
3402
- [t.key]: !0
3497
+ [t.key]: {
3498
+ ...ke(t.key),
3499
+ visible: !0
3500
+ }
3403
3501
  }), { ...p.value });
3404
3502
  }
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) {
3503
+ let tt = r(() => h.pagination && typeof h.pageSize == "number"), nt = r(() => !!(me.value || E.value || tt.value || Ye.value || Xe.value));
3504
+ function rt(e) {
3407
3505
  return e.filter?.type === "multi-select" ? e.filter.options.map((e) => ({
3408
3506
  label: e.label,
3409
3507
  value: e.value,
3410
3508
  hint: e.description
3411
3509
  })) : [];
3412
3510
  }
3413
- return S(() => {
3511
+ return x(() => {
3512
+ Re();
3513
+ }), S(() => {
3414
3514
  h.rowClickable && h.bulkSelectionEnabled && console.warn("GTable: rowClickable and bulkSelectionEnabled cannot be used together. rowClickable will be ignored.");
3415
3515
  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.`);
3416
3516
  }), (n, r) => (w(), o("div", si, [
3417
- Pe.value ? (w(), o("div", ci, [
3517
+ nt.value ? (w(), o("div", ci, [
3418
3518
  s("div", li, [
3419
- ce.value ? (w(), o("div", ui, [l(ot, null, {
3420
- trigger: K(({ toggle: e }) => [l($, {
3519
+ me.value ? (w(), o("div", ui, [l(ot, null, {
3520
+ trigger: G(({ toggle: e }) => [l(Q, {
3421
3521
  size: "small",
3422
- class: _(["g-sort-builder-trigger", { "g-sort-builder-trigger--active": Q.value.length > 0 }]),
3522
+ class: _(["g-sort-builder-trigger", { "g-sort-builder-trigger--active": X.value.length > 0 }]),
3423
3523
  "aria-label": "Choose sort order",
3424
3524
  onClick: e
3425
3525
  }, {
3426
- default: K(() => [r[0] ||= s("svg", {
3526
+ default: G(() => [r[1] ||= s("svg", {
3427
3527
  class: "g-sort-builder-trigger-icon",
3428
3528
  xmlns: "http://www.w3.org/2000/svg",
3429
3529
  viewBox: "0 0 640 640",
@@ -3432,57 +3532,57 @@ var si = { class: "g-table-outer-wrap" }, ci = {
3432
3532
  }, [s("path", {
3433
3533
  fill: "currentColor",
3434
3534
  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"
3435
- })], -1), Q.value.length ? (w(), o("span", di, N(Q.value.length), 1)) : a("", !0)]),
3535
+ })], -1), X.value.length ? (w(), o("span", di, N(X.value.length), 1)) : a("", !0)]),
3436
3536
  _: 1
3437
3537
  }, 8, ["class", "onClick"])]),
3438
- default: K(() => [s("fieldset", {
3538
+ default: G(() => [s("fieldset", {
3439
3539
  ref_key: "sortBuilderRef",
3440
- ref: ie,
3540
+ ref: se,
3441
3541
  class: "g-sort-builder-popover",
3442
3542
  tabindex: "-1",
3443
3543
  "popover-focus": ""
3444
3544
  }, [
3445
- r[7] ||= s("legend", { class: "g-sort-builder-legend" }, " Sort order ", -1),
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),
3447
- Q.value.length ? (w(), o("ol", fi, [(w(!0), o(e, null, O(Q.value, (e, t) => (w(), o("li", {
3545
+ r[8] ||= s("legend", { class: "g-sort-builder-legend" }, " Sort order ", -1),
3546
+ r[9] ||= s("p", { class: "g-sort-builder-help" }, " Click a column header to change the primary sort. Use Shift-click as a shortcut to add or update secondary sorts. ", -1),
3547
+ X.value.length ? (w(), o("ol", fi, [(w(!0), o(e, null, O(X.value, (e, t) => (w(), o("li", {
3448
3548
  key: e.key,
3449
3549
  class: "g-sort-builder-rule",
3450
3550
  tabindex: "-1",
3451
3551
  "data-sort-row-key": String(e.key),
3452
- "aria-label": `${fe(e.key)} ${he(e.order)} sort, priority ${t + 1}`
3552
+ "aria-label": `${ve(e.key)} ${xe(e.order)} sort, priority ${t + 1}`
3453
3553
  }, [
3454
3554
  s("span", mi, N(t + 1), 1),
3455
- s("span", hi, N(fe(e.key)), 1),
3555
+ s("span", hi, N(ve(e.key)), 1),
3456
3556
  s("button", {
3457
3557
  type: "button",
3458
3558
  class: "g-sort-builder-direction",
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", {
3559
+ "aria-label": `Toggle ${ve(e.key)} sort direction`,
3560
+ onClick: (t) => Ee(e.key)
3561
+ }, [s("span", _i, N(xe(e.order)), 1), s("span", vi, [(w(), o("svg", {
3462
3562
  xmlns: "http://www.w3.org/2000/svg",
3463
3563
  viewBox: "0 0 640 640",
3464
3564
  height: "1.25em",
3465
3565
  style: y({ transform: `rotate(${e.order === 1 ? 0 : 180}deg)` })
3466
- }, [...r[1] ||= [s("path", {
3566
+ }, [...r[2] ||= [s("path", {
3467
3567
  fill: "currentColor",
3468
3568
  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"
3469
3569
  }, null, -1)]], 4))])], 8, gi),
3470
3570
  s("button", {
3471
3571
  type: "button",
3472
3572
  class: "g-sort-builder-remove",
3473
- "aria-label": `Remove ${fe(e.key)} sort`,
3474
- onClick: (t) => xe(e.key)
3573
+ "aria-label": `Remove ${ve(e.key)} sort`,
3574
+ onClick: (t) => De(e.key)
3475
3575
  }, " Remove ", 8, yi)
3476
3576
  ], 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", {
3577
+ he.value.length ? (w(), o("div", xi, [r[6] ||= s("p", { class: "g-sort-builder-add-label" }, " Add sort column ", -1), s("ul", Si, [(w(!0), o(e, null, O(he.value, (e) => (w(), o("li", {
3478
3578
  key: e.key,
3479
3579
  class: "g-sort-builder-add-item"
3480
3580
  }, [s("span", Ci, N(e.label), 1), s("div", wi, [s("button", {
3481
3581
  type: "button",
3482
3582
  class: "g-sort-builder-direction",
3483
3583
  "aria-label": `Add ${e.label} ascending sort`,
3484
- onClick: (t) => ye(e.key, 1)
3485
- }, [...r[2] ||= [s("span", { class: "g-visually-hidden" }, " Add ascending sort ", -1), s("span", {
3584
+ onClick: (t) => Te(e.key, 1)
3585
+ }, [...r[3] ||= [s("span", { class: "g-visually-hidden" }, " Add ascending sort ", -1), s("span", {
3486
3586
  class: "sort-indicator",
3487
3587
  "aria-hidden": "true"
3488
3588
  }, [s("svg", {
@@ -3496,71 +3596,71 @@ var si = { class: "g-table-outer-wrap" }, ci = {
3496
3596
  type: "button",
3497
3597
  class: "g-sort-builder-direction",
3498
3598
  "aria-label": `Add ${e.label} descending sort`,
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", {
3599
+ onClick: (t) => Te(e.key, -1)
3600
+ }, [r[5] ||= s("span", { class: "g-visually-hidden" }, " Add descending sort ", -1), s("span", Di, [(w(), o("svg", Oi, [...r[4] ||= [s("path", {
3501
3601
  fill: "currentColor",
3502
3602
  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"
3503
3603
  }, null, -1)]]))])], 8, Ei)])]))), 128))])])) : a("", !0),
3504
- Q.value.length ? (w(), i($, {
3604
+ X.value.length ? (w(), i(Q, {
3505
3605
  key: 3,
3506
3606
  outlined: "",
3507
3607
  size: "small",
3508
3608
  class: "g-sort-builder-clear",
3509
- onClick: Se
3609
+ onClick: Oe
3510
3610
  }, {
3511
- default: K(() => [...r[6] ||= [c(" Clear sort ", -1)]]),
3611
+ default: G(() => [...r[7] ||= [c(" Clear sort ", -1)]]),
3512
3612
  _: 1
3513
3613
  })) : a("", !0)
3514
3614
  ], 512)]),
3515
3615
  _: 1
3516
3616
  })])) : a("", !0),
3517
- De.value ? (w(), o("div", ki, [l(ot, null, {
3518
- trigger: K(({ toggle: e }) => [l($, {
3617
+ Ye.value ? (w(), o("div", ki, [l(ot, null, {
3618
+ trigger: G(({ toggle: e }) => [l(Q, {
3519
3619
  size: "small",
3520
- class: _(["g-column-visibility-trigger", { "g-column-visibility-trigger--active": Ee.value }]),
3620
+ class: _(["g-column-visibility-trigger", { "g-column-visibility-trigger--active": Je.value }]),
3521
3621
  "aria-label": "Choose visible columns",
3522
3622
  onClick: e
3523
3623
  }, {
3524
- default: K(() => [(w(), o("svg", Ai, [...r[9] ||= [s("path", {
3624
+ default: G(() => [(w(), o("svg", Ai, [...r[10] ||= [s("path", {
3525
3625
  fill: "currentColor",
3526
3626
  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"
3527
3627
  }, null, -1)]]))]),
3528
3628
  _: 1
3529
3629
  }, 8, ["class", "onClick"])]),
3530
- default: K(() => [s("fieldset", {
3630
+ default: G(() => [s("fieldset", {
3531
3631
  class: "g-column-visibility-popover",
3532
- "aria-labelledby": `${L(Y)}-column-visibility-heading`
3632
+ "aria-labelledby": `${L(J)}-column-visibility-heading`
3533
3633
  }, [s("div", Mi, [s("span", {
3534
- id: `${L(Y)}-column-visibility-heading`,
3634
+ id: `${L(J)}-column-visibility-heading`,
3535
3635
  class: "g-column-visibility-heading"
3536
- }, " Shown columns ", 8, Ni), s("span", Pi, [l($, {
3636
+ }, " Shown columns ", 8, Ni), s("span", Pi, [l(Q, {
3537
3637
  text: "",
3538
3638
  size: "small",
3539
- class: _(["g-column-visibility-show-all", { "g-column-visibility-show-all--hidden": !Ee.value }]),
3540
- onClick: Me
3639
+ class: _(["g-column-visibility-show-all", { "g-column-visibility-show-all--hidden": !Je.value }]),
3640
+ onClick: et
3541
3641
  }, {
3542
- default: K(() => [...r[10] ||= [c(" Show All ", -1)]]),
3642
+ default: G(() => [...r[11] ||= [c(" Show All ", -1)]]),
3543
3643
  _: 1
3544
3644
  }, 8, ["class"])])]), s("div", Fi, [(w(!0), o(e, null, O(t.columns, (e) => (w(), o("label", {
3545
3645
  key: e.key,
3546
3646
  class: "g-column-visibility-option"
3547
3647
  }, [s("input", {
3548
- checked: Ae(e),
3648
+ checked: Qe(e),
3549
3649
  type: "checkbox",
3550
- onChange: (t) => je(e, t.target.checked)
3650
+ onChange: (t) => $e(e, t.target.checked)
3551
3651
  }, null, 40, Ii), s("span", null, N(e.label), 1)]))), 128))])], 8, ji)]),
3552
3652
  _: 1
3553
3653
  })])) : a("", !0),
3554
- Oe.value ? (w(), o("div", Li, [k(n.$slots, "controls")])) : a("", !0),
3555
- s("div", Ri, [L(T) ? (w(), i($, {
3654
+ Xe.value ? (w(), o("div", Li, [k(n.$slots, "controls")])) : a("", !0),
3655
+ s("div", Ri, [L(E) ? (w(), i(Q, {
3556
3656
  key: 0,
3557
3657
  outlined: "",
3558
3658
  size: "small",
3559
3659
  class: "clear-filters",
3560
3660
  "aria-label": "Clear Filters",
3561
- onClick: L(E)
3661
+ onClick: L(A)
3562
3662
  }, {
3563
- default: K(() => [...r[11] ||= [s("svg", {
3663
+ default: G(() => [...r[12] ||= [s("svg", {
3564
3664
  xmlns: "http://www.w3.org/2000/svg",
3565
3665
  viewBox: "0 0 640 640",
3566
3666
  height: "1.5em",
@@ -3572,193 +3672,224 @@ var si = { class: "g-table-outer-wrap" }, ci = {
3572
3672
  _: 1
3573
3673
  }, 8, ["onClick"])) : a("", !0)])
3574
3674
  ]),
3575
- Ne.value ? (w(), o("div", zi, [l(ei, {
3675
+ tt.value ? (w(), o("div", zi, [l(ei, {
3576
3676
  start: t.startIndex,
3577
3677
  "page-size": t.pageSize,
3578
3678
  "page-sizes": t.pageSizes,
3579
- total: ke.value,
3580
- "onUpdate:start": re,
3581
- "onUpdate:pageSize": J
3679
+ total: Ze.value,
3680
+ "onUpdate:start": q,
3681
+ "onUpdate:pageSize": ae
3582
3682
  }, null, 8, [
3583
3683
  "start",
3584
3684
  "page-size",
3585
3685
  "page-sizes",
3586
3686
  "total"
3587
3687
  ])])) : a("", !0),
3588
- s("span", Bi, N(ke.value) + " results", 1)
3688
+ s("span", Bi, N(Ze.value) + " results", 1)
3589
3689
  ])) : a("", !0),
3590
- s("div", Vi, [s("table", {
3591
- class: "g-table",
3592
- ref: "tableRef",
3690
+ s("div", {
3691
+ ref_key: "tableWrapRef",
3692
+ ref: le,
3693
+ class: "g-table-table-wrap"
3694
+ }, [s("table", {
3695
+ id: ue,
3696
+ class: _(["g-table", { "g-table--resizable": t.resizableColumns }]),
3697
+ ref_key: "tableRef",
3698
+ ref: ce,
3593
3699
  "aria-label": t.label,
3594
- "aria-rowcount": ke.value
3595
- }, [s("thead", Ui, [s("tr", Wi, [t.bulkSelectionEnabled ? (w(), o("th", Gi, [s("input", {
3596
- type: "checkbox",
3597
- checked: M.value,
3598
- indeterminate: F.value,
3599
- onChange: R,
3600
- "aria-label": M.value ? "Deselect all rows" : "Select all rows",
3601
- class: "g-bulk-select-checkbox"
3602
- }, null, 40, Ki)])) : a("", !0), (w(!0), o(e, null, O(we.value, (e) => (w(), o("th", {
3603
- key: e.key,
3604
- id: `${L(Y)}-th-${String(e.key)}`,
3605
- "aria-sort": pe(e.key),
3606
- class: _([
3607
- "g-th",
3608
- { sorted: ue(e.key) !== -1 },
3609
- { filtered: L(C)[e.key] }
3610
- ]),
3611
- scope: "col"
3612
- }, [s("div", Ji, [e.sortable ? (w(), o("button", {
3613
- key: 0,
3614
- type: "button",
3615
- class: "g-column-head",
3616
- onClick: (t) => ve(e, t.shiftKey)
3700
+ "aria-rowcount": Ze.value
3617
3701
  }, [
3618
- c(N(e.label) + " ", 1),
3619
- ue(e.key) === -1 ? a("", !0) : (w(), o("span", Xi, [(w(), o("svg", {
3620
- xmlns: "http://www.w3.org/2000/svg",
3621
- viewBox: "0 0 640 640",
3622
- height: "1.5em",
3623
- style: y({ transform: `rotate(${de(e.key)?.order === 1 ? 0 : 180}deg)` })
3624
- }, [...r[12] ||= [s("path", {
3625
- fill: "currentColor",
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"
3627
- }, null, -1)]], 4))])),
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"]),
3632
- "aria-label": L(C)[e.key] ? "Column Filtered" : "Filter Column",
3633
- class: _(["g-filter-btn", { "g-active": L(C)[e.key] }]),
3634
- type: "button"
3635
- }, [...r[13] ||= [s("svg", {
3636
- xmlns: "http://www.w3.org/2000/svg",
3637
- viewBox: "0 0 640 640",
3638
- height: "1.5em",
3639
- "aria-hidden": "true"
3640
- }, [s("path", {
3641
- fill: "currentColor",
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"
3643
- })], -1)]], 10, $i)]),
3644
- default: K(() => [e.filter.type === "select" ? (w(), i(Kt, {
3702
+ s("colgroup", null, [t.bulkSelectionEnabled ? (w(), o("col", Hi)) : a("", !0), (w(!0), o(e, null, O(Ke.value, (e) => (w(), o("col", {
3703
+ key: e.key,
3704
+ "data-column-key": String(e.key),
3705
+ style: y(He(e))
3706
+ }, null, 12, Ui))), 128))]),
3707
+ s("thead", Wi, [s("tr", Gi, [t.bulkSelectionEnabled ? (w(), o("th", Ki, [s("input", {
3708
+ type: "checkbox",
3709
+ checked: F.value,
3710
+ indeterminate: I.value,
3711
+ onChange: H,
3712
+ "aria-label": F.value ? "Deselect all rows" : "Select all rows",
3713
+ class: "g-bulk-select-checkbox"
3714
+ }, null, 40, qi)])) : a("", !0), (w(!0), o(e, null, O(Ke.value, (e) => (w(), o("th", {
3715
+ key: e.key,
3716
+ id: `${L(J)}-th-${String(e.key)}`,
3717
+ "aria-sort": ye(e.key),
3718
+ class: _([
3719
+ "g-th",
3720
+ { "g-th--resizable": t.resizableColumns },
3721
+ { sorted: ge(e.key) !== -1 },
3722
+ { filtered: L(T)[e.key] }
3723
+ ]),
3724
+ scope: "col"
3725
+ }, [s("div", Yi, [e.sortable ? (w(), o("button", {
3645
3726
  key: 0,
3646
- modelValue: f.value[e.key],
3647
- "onUpdate:modelValue": (t) => f.value[e.key] = t,
3648
- options: e.filter.options,
3649
- class: "g-filter-select",
3650
- label: "Filter select",
3651
- searchable: "",
3652
- "search-description": e.filter.searchDescription,
3653
- "clear-button": ""
3654
- }, null, 8, [
3655
- "modelValue",
3656
- "onUpdate:modelValue",
3657
- "options",
3658
- "search-description"
3659
- ])) : e.filter.type === "search" ? (w(), o("div", ea, [r[14] ||= s("span", {
3660
- class: "g-filter-search-icon",
3661
- "aria-hidden": "true"
3662
- }, [s("svg", {
3663
- xmlns: "http://www.w3.org/2000/svg",
3664
- viewBox: "0 0 51.26 51.26",
3665
- height: "1em"
3666
- }, [s("path", {
3667
- fill: "currentColor",
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"
3669
- })])], -1), ne(s("input", {
3670
- type: "search",
3671
- class: "g-filter-search-input",
3672
- "onUpdate:modelValue": (t) => f.value[e.key] = t,
3673
- placeholder: e.filter.placeholder,
3674
- "aria-label": `Search ${e.label}`
3675
- }, null, 8, ta), [[W, f.value[e.key]]])])) : e.filter.type === "toggle" ? (w(), o("div", na, [s("div", ra, [
3676
- ne(s("input", {
3677
- type: "checkbox",
3727
+ type: "button",
3728
+ class: "g-column-head",
3729
+ onClick: (t) => we(e, t.shiftKey)
3730
+ }, [
3731
+ c(N(e.label) + " ", 1),
3732
+ ge(e.key) === -1 ? a("", !0) : (w(), o("span", Zi, [(w(), o("svg", {
3733
+ xmlns: "http://www.w3.org/2000/svg",
3734
+ viewBox: "0 0 640 640",
3735
+ height: "1.5em",
3736
+ style: y({ transform: `rotate(${_e(e.key)?.order === 1 ? 0 : 180}deg)` })
3737
+ }, [...r[13] ||= [s("path", {
3738
+ fill: "currentColor",
3739
+ 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"
3740
+ }, null, -1)]], 4))])),
3741
+ ge(e.key) === -1 ? a("", !0) : (w(), o("span", Qi, N(be(e.key)), 1))
3742
+ ], 8, Xi)) : (w(), o("span", $i, N(e.label), 1)), e.filter ? (w(), i(ot, { key: 2 }, {
3743
+ trigger: G(({ toggle: t }) => [s("button", {
3744
+ onClick: K(t, ["stop"]),
3745
+ "aria-label": L(T)[e.key] ? "Column Filtered" : "Filter Column",
3746
+ class: _(["g-filter-btn", { "g-active": L(T)[e.key] }]),
3747
+ type: "button"
3748
+ }, [...r[14] ||= [s("svg", {
3749
+ xmlns: "http://www.w3.org/2000/svg",
3750
+ viewBox: "0 0 640 640",
3751
+ height: "1.5em",
3752
+ "aria-hidden": "true"
3753
+ }, [s("path", {
3754
+ fill: "currentColor",
3755
+ 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"
3756
+ })], -1)]], 10, ea)]),
3757
+ default: G(() => [e.filter.type === "select" ? (w(), i(Kt, {
3758
+ key: 0,
3759
+ modelValue: f.value[e.key],
3678
3760
  "onUpdate:modelValue": (t) => f.value[e.key] = t,
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),
3683
- e.filter.description ? (w(), o("span", {
3761
+ options: e.filter.options,
3762
+ class: "g-filter-select",
3763
+ label: "Filter select",
3764
+ searchable: "",
3765
+ "search-description": e.filter.searchDescription,
3766
+ "clear-button": ""
3767
+ }, null, 8, [
3768
+ "modelValue",
3769
+ "onUpdate:modelValue",
3770
+ "options",
3771
+ "search-description"
3772
+ ])) : e.filter.type === "search" ? (w(), o("div", ta, [r[15] ||= s("span", {
3773
+ class: "g-filter-search-icon",
3774
+ "aria-hidden": "true"
3775
+ }, [s("svg", {
3776
+ xmlns: "http://www.w3.org/2000/svg",
3777
+ viewBox: "0 0 51.26 51.26",
3778
+ height: "1em"
3779
+ }, [s("path", {
3780
+ fill: "currentColor",
3781
+ 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"
3782
+ })])], -1), re(s("input", {
3783
+ type: "search",
3784
+ class: "g-filter-search-input",
3785
+ "onUpdate:modelValue": (t) => f.value[e.key] = t,
3786
+ placeholder: e.filter.placeholder,
3787
+ "aria-label": `Search ${e.label}`
3788
+ }, null, 8, na), [[ee, f.value[e.key]]])])) : e.filter.type === "toggle" ? (w(), o("div", ra, [s("div", ia, [
3789
+ re(s("input", {
3790
+ type: "checkbox",
3791
+ "onUpdate:modelValue": (t) => f.value[e.key] = t,
3792
+ id: `${L(J)}-filter-${String(e.key)}`,
3793
+ "aria-describedby": e.filter.description ? `${L(J)}-filter-description-${String(e.key)}` : void 0
3794
+ }, null, 8, aa), [[U, f.value[e.key]]]),
3795
+ s("label", { for: `${L(J)}-filter-${String(e.key)}` }, N(e.filter.label), 9, oa),
3796
+ e.filter.description ? (w(), o("span", {
3797
+ key: 0,
3798
+ class: "g-filter-description",
3799
+ id: `${L(J)}-filter-description-${String(e.key)}`
3800
+ }, N(e.filter.description), 9, sa)) : a("", !0)
3801
+ ])])) : e.filter.type === "multi-select" && e.filter.searchable ? (w(), i(br, {
3802
+ key: 3,
3803
+ modelValue: f.value[e.key],
3804
+ "onUpdate:modelValue": (t) => f.value[e.key] = t,
3805
+ options: e.filter.options,
3806
+ label: "Include values",
3807
+ placeholder: e.filter.placeholder,
3808
+ "search-description": e.filter.searchDescription,
3809
+ class: "g-multi-select-searchable"
3810
+ }, null, 8, [
3811
+ "modelValue",
3812
+ "onUpdate:modelValue",
3813
+ "options",
3814
+ "placeholder",
3815
+ "search-description"
3816
+ ])) : e.filter.type === "multi-select" ? (w(), o("div", ca, [l(jr, {
3817
+ modelValue: f.value[e.key],
3818
+ "onUpdate:modelValue": (t) => f.value[e.key] = t,
3819
+ options: rt(e),
3820
+ label: "Include values"
3821
+ }, null, 8, [
3822
+ "modelValue",
3823
+ "onUpdate:modelValue",
3824
+ "options"
3825
+ ]), f.value[e.key]?.length ? (w(), i(Q, {
3684
3826
  key: 0,
3685
- class: "g-filter-description",
3686
- id: `${L(Y)}-filter-description-${String(e.key)}`
3687
- }, N(e.filter.description), 9, oa)) : a("", !0)
3688
- ])])) : e.filter.type === "multi-select" && e.filter.searchable ? (w(), i(br, {
3689
- key: 3,
3690
- modelValue: f.value[e.key],
3691
- "onUpdate:modelValue": (t) => f.value[e.key] = t,
3692
- options: e.filter.options,
3693
- label: "Include values",
3694
- placeholder: e.filter.placeholder,
3695
- "search-description": e.filter.searchDescription,
3696
- class: "g-multi-select-searchable"
3697
- }, null, 8, [
3698
- "modelValue",
3699
- "onUpdate:modelValue",
3700
- "options",
3701
- "placeholder",
3702
- "search-description"
3703
- ])) : e.filter.type === "multi-select" ? (w(), o("div", sa, [l(jr, {
3704
- modelValue: f.value[e.key],
3705
- "onUpdate:modelValue": (t) => f.value[e.key] = t,
3706
- options: Fe(e),
3707
- label: "Include values"
3708
- }, null, 8, [
3709
- "modelValue",
3710
- "onUpdate:modelValue",
3711
- "options"
3712
- ]), f.value[e.key]?.length ? (w(), i($, {
3827
+ class: "clear-multiselect-btn",
3828
+ theme: "accent",
3829
+ size: "small",
3830
+ onClick: (t) => f.value[e.key] = []
3831
+ }, {
3832
+ default: G(() => [...r[16] ||= [c(" Clear ", -1)]]),
3833
+ _: 1
3834
+ }, 8, ["onClick"])) : a("", !0)])) : a("", !0)]),
3835
+ _: 2
3836
+ }, 1024)) : a("", !0)]), t.resizableColumns ? (w(), o("div", {
3713
3837
  key: 0,
3714
- class: "clear-multiselect-btn",
3715
- theme: "accent",
3716
- size: "small",
3717
- onClick: (t) => f.value[e.key] = []
3718
- }, {
3719
- default: K(() => [...r[15] ||= [c(" Clear ", -1)]]),
3720
- _: 1
3721
- }, 8, ["onClick"])) : a("", !0)])) : a("", !0)]),
3722
- _: 2
3723
- }, 1024)) : a("", !0)])], 10, qi))), 128))])]), l(ir, {
3724
- data: t.data,
3725
- columns: we.value,
3726
- "group-by": t.groupBy,
3727
- "group-render": t.groupRender,
3728
- "row-clickable": t.rowClickable,
3729
- "row-class": t.rowClass,
3730
- "start-index": t.startIndex,
3731
- "bulk-selection-enabled": t.bulkSelectionEnabled,
3732
- "selected-rows": m.value,
3733
- "table-id": L(Y),
3734
- "change-tracker": t.changeTracker,
3735
- onRowClick: ee,
3736
- onToggleRow: H,
3737
- onCellChange: te
3738
- }, null, 8, [
3739
- "data",
3740
- "columns",
3741
- "group-by",
3742
- "group-render",
3743
- "row-clickable",
3744
- "row-class",
3745
- "start-index",
3746
- "bulk-selection-enabled",
3747
- "selected-rows",
3748
- "table-id",
3749
- "change-tracker"
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($, {
3838
+ "data-column-key": String(e.key),
3839
+ class: _(["g-column-resize-handle", { "g-column-resize-handle--active": Y.value?.key === e.key }]),
3840
+ role: "separator",
3841
+ tabindex: "0",
3842
+ "aria-orientation": "vertical",
3843
+ "aria-controls": ue,
3844
+ "aria-label": `Resize ${e.label} column`,
3845
+ "aria-valuemin": 50,
3846
+ "aria-valuemax": Fe(e.key),
3847
+ "aria-valuenow": Ue(e.key),
3848
+ "aria-valuetext": We(e.key),
3849
+ onClick: r[0] ||= K(() => {}, ["stop", "prevent"]),
3850
+ onKeydown: (t) => Ve(t, e.key),
3851
+ onPointerdown: (t) => Be(t, e.key)
3852
+ }, null, 42, la)) : a("", !0)], 10, Ji))), 128))])]),
3853
+ l(ir, {
3854
+ data: t.data,
3855
+ columns: Ke.value,
3856
+ "group-by": t.groupBy,
3857
+ "group-render": t.groupRender,
3858
+ "row-clickable": t.rowClickable,
3859
+ "row-class": t.rowClass,
3860
+ "start-index": t.startIndex,
3861
+ "bulk-selection-enabled": t.bulkSelectionEnabled,
3862
+ "selected-rows": m.value,
3863
+ "table-id": L(J),
3864
+ "change-tracker": t.changeTracker,
3865
+ onRowClick: W,
3866
+ onToggleRow: te,
3867
+ onCellChange: ie
3868
+ }, null, 8, [
3869
+ "data",
3870
+ "columns",
3871
+ "group-by",
3872
+ "group-render",
3873
+ "row-clickable",
3874
+ "row-class",
3875
+ "start-index",
3876
+ "bulk-selection-enabled",
3877
+ "selected-rows",
3878
+ "table-id",
3879
+ "change-tracker"
3880
+ ])
3881
+ ], 10, Vi)], 512),
3882
+ t.bulkSelectionEnabled && m.value.length > 0 ? (w(), o("div", ua, [s("span", da, N(m.value.length) + " row" + N(m.value.length === 1 ? "" : "s") + " selected", 1), s("ul", fa, [(w(!0), o(e, null, O(t.bulkActions, (e) => (w(), o("li", { key: e.id }, [l(Q, {
3752
3883
  theme: e.theme || "accent",
3753
- onClick: (t) => G(e.id),
3884
+ onClick: (t) => ne(e.id),
3754
3885
  size: "small"
3755
3886
  }, {
3756
- default: K(() => [c(N(e.label) + " " + N(m.value.length) + " row" + N(m.value.length === 1 ? "" : "s"), 1)]),
3887
+ default: G(() => [c(N(e.label) + " " + N(m.value.length) + " row" + N(m.value.length === 1 ? "" : "s"), 1)]),
3757
3888
  _: 2
3758
3889
  }, 1032, ["theme", "onClick"])]))), 128))])])) : a("", !0)
3759
3890
  ]));
3760
3891
  }
3761
- }), fa = ["id"], pa = { class: "g-modal-inner" }, ma = { class: "g-modal-header" }, ha = ["id"], ga = ["id"], _a = /* @__PURE__ */ u({
3892
+ }), ma = ["id"], ha = { class: "g-modal-inner" }, ga = { class: "g-modal-header" }, _a = ["id"], va = ["id"], ya = /* @__PURE__ */ u({
3762
3893
  __name: "GModal",
3763
3894
  props: {
3764
3895
  label: {},
@@ -3789,7 +3920,7 @@ var si = { class: "g-table-outer-wrap" }, ci = {
3789
3920
  name: "g-fade",
3790
3921
  appear: ""
3791
3922
  }, {
3792
- default: K(() => [s("div", h({
3923
+ default: G(() => [s("div", h({
3793
3924
  id: "modal-" + L(m),
3794
3925
  class: ["g-modal", E.value],
3795
3926
  role: "dialog",
@@ -3802,12 +3933,12 @@ var si = { class: "g-table-outer-wrap" }, ci = {
3802
3933
  ref_key: "dialog",
3803
3934
  ref: f,
3804
3935
  style: { zIndex: L(y) }
3805
- }), [s("div", pa, [s("div", ma, [e.hiddenLabel ? a("", !0) : (w(), o("h2", {
3936
+ }), [s("div", ha, [s("div", ga, [e.hiddenLabel ? a("", !0) : (w(), o("h2", {
3806
3937
  key: 0,
3807
3938
  id: "modal-label-" + L(m),
3808
3939
  class: "g-modal-label",
3809
3940
  tabindex: "-1"
3810
- }, N(e.label), 9, ha)), s("button", {
3941
+ }, N(e.label), 9, _a)), s("button", {
3811
3942
  class: "g-modal-close",
3812
3943
  onClick: T,
3813
3944
  "aria-label": "Close"
@@ -3822,19 +3953,19 @@ var si = { class: "g-table-outer-wrap" }, ci = {
3822
3953
  })], -1)]])]), s("div", {
3823
3954
  id: "modal-description-" + L(m),
3824
3955
  class: "g-modal-content"
3825
- }, [k(r.$slots, "default")], 8, ga)])], 16, fa)]),
3956
+ }, [k(r.$slots, "default")], 8, va)])], 16, ma)]),
3826
3957
  _: 3
3827
3958
  })]));
3828
3959
  }
3829
- }), va = [
3960
+ }), ba = [
3830
3961
  "id",
3831
3962
  "aria-expanded",
3832
3963
  "aria-label",
3833
3964
  "aria-controls"
3834
- ], ya = {
3965
+ ], xa = {
3835
3966
  key: 0,
3836
3967
  class: "g-hamburger-label"
3837
- }, ba = /* @__PURE__ */ u({
3968
+ }, Sa = /* @__PURE__ */ u({
3838
3969
  __name: "GHamburgerMenu",
3839
3970
  props: {
3840
3971
  label: { default: "Main Navigation" },
@@ -3847,7 +3978,7 @@ var si = { class: "g-table-outer-wrap" }, ci = {
3847
3978
  },
3848
3979
  emits: ["toggle"],
3849
3980
  setup(e, { emit: t }) {
3850
- let n = e, r = p("sidebar") ?? (de() ? pn(n.sidebarKey, F(n, "mediaQuery")) : void 0), i = t;
3981
+ let n = e, r = p("sidebar") ?? (Z() ? pn(n.sidebarKey, F(n, "mediaQuery")) : void 0), i = t;
3851
3982
  function c() {
3852
3983
  i("toggle"), r?.toggle();
3853
3984
  }
@@ -3870,34 +4001,34 @@ var si = { class: "g-table-outer-wrap" }, ci = {
3870
4001
  xmlns: "http://www.w3.org/2000/svg",
3871
4002
  viewBox: "0 0 51.26 51.26",
3872
4003
  role: "none"
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));
4004
+ }, [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", xa, N(e.label), 1)) : a("", !0)], 42, ba));
3874
4005
  }
3875
- }), xa = /* @__PURE__ */ u({
4006
+ }), Ca = /* @__PURE__ */ u({
3876
4007
  __name: "GDetailList",
3877
4008
  props: { variant: { default: "grid" } },
3878
4009
  setup(e) {
3879
4010
  let t = e;
3880
4011
  return (e, n) => (w(), o("dl", { class: _(["g-detail-list", `g-detail-list--${t.variant}`]) }, [k(e.$slots, "default")], 2));
3881
4012
  }
3882
- }), Sa = { class: "g-detail-list-item" }, Ca = { class: "g-detail-list-item__label" }, wa = { class: "g-detail-list-item__value" }, Ta = /* @__PURE__ */ u({
4013
+ }), wa = { class: "g-detail-list-item" }, Ta = { class: "g-detail-list-item__label" }, Ea = { class: "g-detail-list-item__value" }, Da = /* @__PURE__ */ u({
3883
4014
  __name: "GDetailListItem",
3884
4015
  props: { label: {} },
3885
4016
  setup(e) {
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")])]));
4017
+ return (t, n) => (w(), o("div", wa, [s("dt", Ta, [k(t.$slots, "label", {}, () => [c(N(e.label), 1)])]), s("dd", Ea, [k(t.$slots, "default")])]));
3887
4018
  }
3888
- }), Ea = {
4019
+ }), Oa = {
3889
4020
  key: 0,
3890
4021
  class: "g-scroll-lock-overlay"
3891
- }, Da = /* @__PURE__ */ u({
4022
+ }, ka = /* @__PURE__ */ u({
3892
4023
  __name: "GOverlay",
3893
4024
  setup(e) {
3894
4025
  let { hasScrollLock: t } = Je();
3895
4026
  return (e, r) => (w(), i(n, { name: "g-fade" }, {
3896
- default: K(() => [L(t) ? (w(), o("div", Ea)) : a("", !0)]),
4027
+ default: G(() => [L(t) ? (w(), o("div", Oa)) : a("", !0)]),
3897
4028
  _: 1
3898
4029
  }));
3899
4030
  }
3900
- }), Oa = { class: "popover-content" }, ka = { class: "year-dropdown" }, Aa = { class: "month-selector" }, ja = /* @__PURE__ */ u({
4031
+ }), Aa = { class: "popover-content" }, ja = { class: "year-dropdown" }, Ma = { class: "month-selector" }, Na = /* @__PURE__ */ u({
3901
4032
  __name: "GTermSelectorControl",
3902
4033
  props: /*@__PURE__*/ m({
3903
4034
  termYears: { default: () => ["2026"] },
@@ -3918,7 +4049,7 @@ var si = { class: "g-table-outer-wrap" }, ci = {
3918
4049
  emits: ["update:modelValue"],
3919
4050
  setup(e) {
3920
4051
  let t = B(e, "modelValue");
3921
- return (n, r) => (w(), o("div", Oa, [s("div", ka, [l(Kt, {
4052
+ return (n, r) => (w(), o("div", Aa, [s("div", ja, [l(Kt, {
3922
4053
  modelValue: t.value.year,
3923
4054
  "onUpdate:modelValue": r[0] ||= (e) => t.value.year = e,
3924
4055
  options: e.termYears,
@@ -3927,7 +4058,7 @@ var si = { class: "g-table-outer-wrap" }, ci = {
3927
4058
  "modelValue",
3928
4059
  "options",
3929
4060
  "label"
3930
- ])]), s("div", Aa, [l(xt, {
4061
+ ])]), s("div", Ma, [l(xt, {
3931
4062
  modelValue: t.value.name,
3932
4063
  "onUpdate:modelValue": r[1] ||= (e) => t.value.name = e,
3933
4064
  options: e.termNames,
@@ -3939,10 +4070,10 @@ var si = { class: "g-table-outer-wrap" }, ci = {
3939
4070
  "label"
3940
4071
  ])])]));
3941
4072
  }
3942
- }), Ma = { class: "g-term-selector" }, Na = { class: "g-term-label" }, Pa = {
4073
+ }), Pa = { class: "g-term-selector" }, Fa = { class: "g-term-label" }, Ia = {
3943
4074
  class: "g-popover-title",
3944
4075
  tabindex: "-1"
3945
- }, Fa = /* @__PURE__ */ u({
4076
+ }, La = /* @__PURE__ */ u({
3946
4077
  __name: "GTermSelector",
3947
4078
  props: /*@__PURE__*/ m({
3948
4079
  heading: { default: "Period Selection" },
@@ -3964,20 +4095,20 @@ var si = { class: "g-table-outer-wrap" }, ci = {
3964
4095
  emits: ["update:modelValue"],
3965
4096
  setup(e) {
3966
4097
  let t = B(e, "modelValue");
3967
- return (n, r) => (w(), o("div", Ma, [l(ot, null, {
3968
- trigger: K(({ toggle: e }) => [l($, {
4098
+ return (n, r) => (w(), o("div", Pa, [l(ot, null, {
4099
+ trigger: G(({ toggle: e }) => [l(Q, {
3969
4100
  class: "g-term-selector-button",
3970
4101
  theme: "none",
3971
4102
  outlined: "",
3972
4103
  onClick: e
3973
4104
  }, {
3974
- default: K(() => [
4105
+ default: G(() => [
3975
4106
  r[0] ||= s("span", { class: "g-calendar-icon" }, [s("svg", {
3976
4107
  role: "none",
3977
4108
  xmlns: "http://www.w3.org/2000/svg",
3978
4109
  viewBox: "0 0 640 640"
3979
4110
  }, [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),
3980
- s("span", Na, N(t.value?.name) + " " + N(t.value?.year), 1),
4111
+ s("span", Fa, N(t.value?.name) + " " + N(t.value?.year), 1),
3981
4112
  r[1] ||= s("span", { class: "g-caret" }, [s("svg", {
3982
4113
  role: "none",
3983
4114
  xmlns: "http://www.w3.org/2000/svg",
@@ -3986,15 +4117,15 @@ var si = { class: "g-table-outer-wrap" }, ci = {
3986
4117
  ]),
3987
4118
  _: 1
3988
4119
  }, 8, ["onClick"])]),
3989
- default: K(() => [s("h2", Pa, N(e.heading), 1), l(ja, v(f(n.$props)), null, 16)]),
4120
+ default: G(() => [s("h2", Ia, N(e.heading), 1), l(Na, v(f(n.$props)), null, 16)]),
3990
4121
  _: 1
3991
4122
  })]));
3992
4123
  }
3993
- }), Ia = { class: "g-user-menu" }, La = [
4124
+ }), Ra = { class: "g-user-menu" }, za = [
3994
4125
  "aria-label",
3995
4126
  "aria-expanded",
3996
4127
  "onClick"
3997
- ], Ra = { class: "g-user-menu__popover" }, za = { class: "g-user-menu__list" }, Ba = /* @__PURE__ */ u({
4128
+ ], Ba = { class: "g-user-menu__popover" }, Va = { class: "g-user-menu__list" }, Ha = /* @__PURE__ */ u({
3998
4129
  __name: "GUserMenu",
3999
4130
  props: {
4000
4131
  initials: {},
@@ -4006,20 +4137,20 @@ var si = { class: "g-table-outer-wrap" }, ci = {
4006
4137
  let n = `${z()}-email`, r = D(!1), a = H("emailHeading");
4007
4138
  d()?.appContext?.components?.RouterLink;
4008
4139
  let c = V();
4009
- return (u, d) => (w(), o("div", Ia, [l(ot, {
4140
+ return (u, d) => (w(), o("div", Ra, [l(ot, {
4010
4141
  modelValue: r.value,
4011
4142
  "onUpdate:modelValue": d[0] ||= (e) => r.value = e,
4012
4143
  minimal: ""
4013
4144
  }, {
4014
- trigger: K(({ toggle: e }) => [s("button", {
4145
+ trigger: G(({ toggle: e }) => [s("button", {
4015
4146
  class: "g-user-menu__avatar",
4016
4147
  style: y({ backgroundColor: t.color }),
4017
4148
  "aria-label": t.initials + " - " + t.label,
4018
4149
  "aria-expanded": r.value,
4019
4150
  "aria-haspopup": "menu",
4020
4151
  onClick: e
4021
- }, N(t.initials), 13, La)]),
4022
- default: K(() => [s("div", Ra, [s("h2", {
4152
+ }, N(t.initials), 13, za)]),
4153
+ default: G(() => [s("div", Ba, [s("h2", {
4023
4154
  id: n,
4024
4155
  ref_key: "emailHeading",
4025
4156
  ref: a,
@@ -4028,11 +4159,11 @@ var si = { class: "g-table-outer-wrap" }, ci = {
4028
4159
  }, N(t.email), 513), s("nav", {
4029
4160
  class: "g-user-menu__nav",
4030
4161
  "aria-labelledby": n
4031
- }, [s("ul", za, [(w(!0), o(e, null, O(c.default(), (e, t) => (w(), o("li", { key: t }, [(w(), i(A(e)))]))), 128))])])])]),
4162
+ }, [s("ul", Va, [(w(!0), o(e, null, O(c.default(), (e, t) => (w(), o("li", { key: t }, [(w(), i(A(e)))]))), 128))])])])]),
4032
4163
  _: 1
4033
4164
  }, 8, ["modelValue"])]));
4034
4165
  }
4035
- }), Va = /* @__PURE__ */ u({
4166
+ }), Ua = /* @__PURE__ */ u({
4036
4167
  __name: "GCurrencyInput",
4037
4168
  props: /*@__PURE__*/ m({
4038
4169
  label: { default: void 0 },
@@ -4083,7 +4214,7 @@ var si = { class: "g-table-outer-wrap" }, ci = {
4083
4214
  "form-key"
4084
4215
  ]));
4085
4216
  }
4086
- }), Ha = /* @__PURE__ */ u({
4217
+ }), Wa = /* @__PURE__ */ u({
4087
4218
  __name: "GEmailInput",
4088
4219
  props: /*@__PURE__*/ m({
4089
4220
  label: { default: void 0 },
@@ -4128,13 +4259,13 @@ var si = { class: "g-table-outer-wrap" }, ci = {
4128
4259
  "instructions"
4129
4260
  ]));
4130
4261
  }
4131
- }), Ua = ["for"], Wa = {
4262
+ }), Ga = ["for"], Ka = {
4132
4263
  key: 0,
4133
4264
  class: "g-file-input-required"
4134
- }, Ga = {
4265
+ }, qa = {
4135
4266
  key: 0,
4136
4267
  class: "g-file-input-box-header"
4137
- }, Ka = ["id"], qa = [
4268
+ }, Ja = ["id"], Ya = [
4138
4269
  "id",
4139
4270
  "disabled",
4140
4271
  "required",
@@ -4143,11 +4274,11 @@ var si = { class: "g-table-outer-wrap" }, ci = {
4143
4274
  "aria-invalid",
4144
4275
  "aria-describedby",
4145
4276
  "aria-errormessage"
4146
- ], Ja = {
4277
+ ], Xa = {
4147
4278
  key: 1,
4148
4279
  class: "g-file-input-pills",
4149
4280
  "aria-label": "Selected files"
4150
- }, Ya = /* @__PURE__ */ u({
4281
+ }, Za = /* @__PURE__ */ u({
4151
4282
  inheritAttrs: !1,
4152
4283
  __name: "GFileInput",
4153
4284
  props: /*@__PURE__*/ m({
@@ -4177,7 +4308,7 @@ var si = { class: "g-table-outer-wrap" }, ci = {
4177
4308
  }),
4178
4309
  emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
4179
4310
  setup(t, { emit: n }) {
4180
- let i = t, u = B(t, "modelValue"), d = z(), { displayErrors: f } = Ae({
4311
+ let i = t, u = B(t, "modelValue"), d = z(), { displayErrors: f } = $({
4181
4312
  name: i.name,
4182
4313
  value: u,
4183
4314
  errors: F(i, "errors"),
@@ -4204,12 +4335,12 @@ var si = { class: "g-table-outer-wrap" }, ci = {
4204
4335
  key: 0,
4205
4336
  for: L(d),
4206
4337
  class: "g-file-input-label"
4207
- }, [c(N(t.label) + " ", 1), t.required ? (w(), o("span", Wa, "*")) : a("", !0)], 8, Ua)) : a("", !0),
4338
+ }, [c(N(t.label) + " ", 1), t.required ? (w(), o("span", Ka, "*")) : a("", !0)], 8, Ga)) : a("", !0),
4208
4339
  s("div", { class: _(["g-file-input-box", { "g-file-input-box--disabled": t.disabled }]) }, [
4209
- t.instructions ? (w(), o("div", Ga, [s("span", {
4340
+ t.instructions ? (w(), o("div", qa, [s("span", {
4210
4341
  id: "instructions-" + L(d),
4211
4342
  class: "g-file-input-instructions"
4212
- }, N(t.instructions), 9, Ka)])) : a("", !0),
4343
+ }, N(t.instructions), 9, Ja)])) : a("", !0),
4213
4344
  s("input", {
4214
4345
  id: L(d),
4215
4346
  type: "file",
@@ -4222,8 +4353,8 @@ var si = { class: "g-table-outer-wrap" }, ci = {
4222
4353
  "aria-describedby": t.instructions ? "instructions-" + L(d) : void 0,
4223
4354
  "aria-errormessage": y.value ? "error-message-" + L(d) : void 0,
4224
4355
  onChange: g
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", {
4356
+ }, null, 40, Ya),
4357
+ t.multiple && b.value.length > 0 ? (w(), o("ul", Xa, [(w(!0), o(e, null, O(b.value, (e) => (w(), o("li", {
4227
4358
  key: e,
4228
4359
  class: "g-file-input-pill"
4229
4360
  }, [r[0] ||= s("svg", {
@@ -4239,7 +4370,7 @@ var si = { class: "g-table-outer-wrap" }, ci = {
4239
4370
  }, null, 8, ["errors", "id"])
4240
4371
  ], 2));
4241
4372
  }
4242
- }), Xa = /* @__PURE__ */ u({
4373
+ }), Qa = /* @__PURE__ */ u({
4243
4374
  __name: "GDateInput",
4244
4375
  props: /*@__PURE__*/ m({
4245
4376
  label: { default: void 0 },
@@ -4287,21 +4418,21 @@ var si = { class: "g-table-outer-wrap" }, ci = {
4287
4418
  "form-key"
4288
4419
  ]));
4289
4420
  }
4290
- }), Za = { class: "g-date-range-input" }, Qa = {
4421
+ }), $a = { class: "g-date-range-input" }, eo = {
4291
4422
  key: 0,
4292
4423
  class: "g-date-range-input__label"
4293
- }, $a = {
4424
+ }, to = {
4294
4425
  key: 0,
4295
4426
  class: "g-date-range-input__required",
4296
4427
  "aria-hidden": "true"
4297
- }, eo = {
4428
+ }, no = {
4298
4429
  key: 1,
4299
4430
  class: "g-date-range-input__instructions"
4300
- }, to = { class: "g-date-range-input__fields" }, no = {
4431
+ }, ro = { class: "g-date-range-input__fields" }, io = {
4301
4432
  key: 2,
4302
4433
  class: "g-date-range-input__errors",
4303
4434
  role: "alert"
4304
- }, ro = /* @__PURE__ */ u({
4435
+ }, ao = /* @__PURE__ */ u({
4305
4436
  __name: "GDateRangeInput",
4306
4437
  props: /*@__PURE__*/ m({
4307
4438
  label: { default: void 0 },
@@ -4328,23 +4459,23 @@ var si = { class: "g-table-outer-wrap" }, ci = {
4328
4459
  }),
4329
4460
  emits: ["update:modelValue"],
4330
4461
  setup(t) {
4331
- let n = t, r = B(t, "modelValue"), i = D(r.value.start || null), u = D(r.value.end || null), { displayErrors: d } = Ae({
4462
+ let n = t, r = B(t, "modelValue"), i = D(r.value.start || null), u = D(r.value.end || null), { displayErrors: d } = $({
4332
4463
  name: n.name,
4333
4464
  value: r,
4334
4465
  errors: F(n, "errors"),
4335
4466
  formKey: n.formKey
4336
4467
  });
4337
- return G([i, u], () => {
4468
+ return W([i, u], () => {
4338
4469
  r.value = {
4339
4470
  start: i.value,
4340
4471
  end: u.value
4341
4472
  };
4342
- }), G(r, (e) => {
4473
+ }), W(r, (e) => {
4343
4474
  e.start !== i.value && (i.value = e.start), e.end !== u.value && (u.value = e.end);
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, {
4475
+ }, { deep: !0 }), (t, r) => (w(), o("div", $a, [
4476
+ n.label ? (w(), o("div", eo, [c(N(n.label), 1), n.required ? (w(), o("span", to, " *")) : a("", !0)])) : a("", !0),
4477
+ n.instructions ? (w(), o("div", no, N(n.instructions), 1)) : a("", !0),
4478
+ s("div", ro, [l(Qa, {
4348
4479
  modelValue: i.value,
4349
4480
  "onUpdate:modelValue": r[0] ||= (e) => i.value = e,
4350
4481
  label: n.startLabel,
@@ -4356,7 +4487,7 @@ var si = { class: "g-table-outer-wrap" }, ci = {
4356
4487
  "label",
4357
4488
  "disabled",
4358
4489
  "required"
4359
- ]), l(Xa, {
4490
+ ]), l(Qa, {
4360
4491
  modelValue: u.value,
4361
4492
  "onUpdate:modelValue": r[1] ||= (e) => u.value = e,
4362
4493
  label: n.endLabel,
@@ -4369,13 +4500,13 @@ var si = { class: "g-table-outer-wrap" }, ci = {
4369
4500
  "disabled",
4370
4501
  "required"
4371
4502
  ])]),
4372
- L(d).length > 0 ? (w(), o("div", no, [(w(!0), o(e, null, O(L(d), (e, t) => (w(), o("div", {
4503
+ L(d).length > 0 ? (w(), o("div", io, [(w(!0), o(e, null, O(L(d), (e, t) => (w(), o("div", {
4373
4504
  key: t,
4374
4505
  class: "g-date-range-input__error"
4375
4506
  }, N(e), 1))), 128))])) : a("", !0)
4376
4507
  ]));
4377
4508
  }
4378
- }), io = ["action", "method"], ao = /* @__PURE__ */ u({
4509
+ }), oo = ["action", "method"], so = /* @__PURE__ */ u({
4379
4510
  __name: "GForm",
4380
4511
  props: /*@__PURE__*/ m({
4381
4512
  action: { default: void 0 },
@@ -4387,10 +4518,10 @@ var si = { class: "g-table-outer-wrap" }, ci = {
4387
4518
  }),
4388
4519
  emits: /*@__PURE__*/ m(["submit"], ["update:modelValue"]),
4389
4520
  setup(e, { emit: t }) {
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) => {
4521
+ let n = e, r = B(e, "modelValue"), i = t, a = p("form", null), s = a ?? (Z() ? Ae(n.formKey) : Oe());
4522
+ a || T("form", s), W(() => s.values.value, (e) => {
4392
4523
  r.value = { ...e };
4393
- }, { deep: !0 }), G(() => r.value, (e) => {
4524
+ }, { deep: !0 }), W(() => r.value, (e) => {
4394
4525
  e && Object.entries(e).forEach(([e, t]) => {
4395
4526
  let n = s.fields[e];
4396
4527
  n && n.value.value !== t && (n.value.value = t);
@@ -4415,9 +4546,9 @@ var si = { class: "g-table-outer-wrap" }, ci = {
4415
4546
  hasErrors: L(s).hasErrors.value,
4416
4547
  values: L(s).values.value,
4417
4548
  errors: L(s).errors.value
4418
- })], 40, io));
4549
+ })], 40, oo));
4419
4550
  }
4420
- }), oo = /* @__PURE__ */ u({
4551
+ }), co = /* @__PURE__ */ u({
4421
4552
  __name: "GSubmitButton",
4422
4553
  props: {
4423
4554
  disabled: {
@@ -4429,22 +4560,22 @@ var si = { class: "g-table-outer-wrap" }, ci = {
4429
4560
  formKey: { default: "default" }
4430
4561
  },
4431
4562
  setup(e) {
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);
4433
- return (e, n) => (w(), i($, {
4563
+ let t = e, n = R(), a = typeof n["form-key"] == "string" ? n["form-key"] : void 0, o = t.formKey || a || "default", l = p("form", null) ?? (Z() ? Ae(o) : null), u = r(() => t.disabled || (l?.isSubmitting.value ?? !1)), d = r(() => l?.isSubmitting.value ?? !1);
4564
+ return (e, n) => (w(), i(Q, {
4434
4565
  type: "submit",
4435
4566
  disabled: u.value,
4436
4567
  variant: t.variant,
4437
4568
  class: "g-submit-button"
4438
4569
  }, {
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]])]),
4570
+ 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]])]),
4440
4571
  _: 3
4441
4572
  }, 8, ["disabled", "variant"]));
4442
4573
  }
4443
- }), so = ["for"], co = {
4574
+ }), lo = ["for"], uo = {
4444
4575
  key: 0,
4445
4576
  class: "g-textarea-required",
4446
4577
  "aria-hidden": "true"
4447
- }, lo = ["id"], uo = [
4578
+ }, fo = ["id"], po = [
4448
4579
  "value",
4449
4580
  "placeholder",
4450
4581
  "disabled",
@@ -4453,11 +4584,11 @@ var si = { class: "g-table-outer-wrap" }, ci = {
4453
4584
  "rows",
4454
4585
  "maxlength",
4455
4586
  "aria-invalid"
4456
- ], fo = {
4587
+ ], mo = {
4457
4588
  key: 2,
4458
4589
  class: "g-textarea-char-count",
4459
4590
  "aria-live": "polite"
4460
- }, po = /* @__PURE__ */ u({
4591
+ }, ho = /* @__PURE__ */ u({
4461
4592
  inheritAttrs: !1,
4462
4593
  __name: "GTextarea",
4463
4594
  props: /*@__PURE__*/ m({
@@ -4491,7 +4622,7 @@ var si = { class: "g-table-outer-wrap" }, ci = {
4491
4622
  }),
4492
4623
  emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
4493
4624
  setup(e, { emit: t }) {
4494
- let n = e, i = B(e, "modelValue"), u = z(), { attrs: d, isCustomElement: f, forwardedAttrs: p } = fe({ omitInCustomElement: ["id"] }), m = r(() => f ? u : d.id || u), { displayErrors: v, hasErrors: y } = Ae({
4625
+ let n = e, i = B(e, "modelValue"), u = z(), { attrs: d, isCustomElement: f, forwardedAttrs: p } = pe({ omitInCustomElement: ["id"] }), m = r(() => f ? u : d.id || u), { displayErrors: v, hasErrors: y } = $({
4495
4626
  name: n.name,
4496
4627
  value: i,
4497
4628
  errors: F(n, "errors"),
@@ -4501,7 +4632,7 @@ var si = { class: "g-table-outer-wrap" }, ci = {
4501
4632
  let e = x.value;
4502
4633
  e && (e.style.height = "auto", e.style.height = `${e.scrollHeight}px`);
4503
4634
  }
4504
- G(() => i.value, () => {
4635
+ W(() => i.value, () => {
4505
4636
  n.autoGrow && g(S);
4506
4637
  });
4507
4638
  function C(e) {
@@ -4531,12 +4662,12 @@ var si = { class: "g-table-outer-wrap" }, ci = {
4531
4662
  key: 0,
4532
4663
  for: m.value,
4533
4664
  class: "g-textarea-label"
4534
- }, [c(N(n.label), 1), n.required ? (w(), o("span", co, " *")) : a("", !0)], 8, so)) : a("", !0),
4665
+ }, [c(N(n.label), 1), n.required ? (w(), o("span", uo, " *")) : a("", !0)], 8, lo)) : a("", !0),
4535
4666
  t.$slots.instructions || e.instructions ? (w(), o("div", {
4536
4667
  key: 1,
4537
4668
  id: "instructions-" + L(u),
4538
4669
  class: "g-textarea-instructions"
4539
- }, [k(t.$slots, "instructions", {}, () => [c(N(e.instructions), 1)])], 8, lo)) : a("", !0),
4670
+ }, [k(t.$slots, "instructions", {}, () => [c(N(e.instructions), 1)])], 8, fo)) : a("", !0),
4540
4671
  s("textarea", h({
4541
4672
  ref: "textareaEl",
4542
4673
  value: i.value ?? "",
@@ -4557,8 +4688,8 @@ var si = { class: "g-table-outer-wrap" }, ci = {
4557
4688
  onInput: T,
4558
4689
  onBlur: E,
4559
4690
  onPaste: D
4560
- }), null, 16, uo),
4561
- n.maxlength === void 0 ? a("", !0) : (w(), o("div", fo, N((i.value ?? "").length) + " / " + N(n.maxlength), 1)),
4691
+ }), null, 16, po),
4692
+ n.maxlength === void 0 ? a("", !0) : (w(), o("div", mo, N((i.value ?? "").length) + " / " + N(n.maxlength), 1)),
4562
4693
  l(Me, {
4563
4694
  errors: L(v),
4564
4695
  id: "error-message-" + L(u)
@@ -4568,18 +4699,18 @@ var si = { class: "g-table-outer-wrap" }, ci = {
4568
4699
  });
4569
4700
  //#endregion
4570
4701
  //#region src/compose/useActiveLink.ts
4571
- function mo(e, t, n) {
4702
+ function go(e, t, n) {
4572
4703
  let r = [
4573
4704
  0,
4574
4705
  .25,
4575
4706
  .5,
4576
4707
  .75,
4577
4708
  1
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 || []);
4709
+ ], i = `${-t}px 0px 0px 0px`, a = /* @__PURE__ */ new Map(), o = D(Array.from(J(e)?.children || []));
4710
+ ue(e, () => {
4711
+ o.value = Array.from(J(e)?.children || []);
4581
4712
  }, { childList: !0 });
4582
- let { stop: s } = Q(o, (e) => {
4713
+ let { stop: s } = le(o, (e) => {
4583
4714
  let t = o.value[o.value.length - 1];
4584
4715
  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);
4585
4716
  let r = null, i = 0;
@@ -4598,8 +4729,8 @@ function mo(e, t, n) {
4598
4729
  }
4599
4730
  //#endregion
4600
4731
  //#region src/compose/useSidebar.ts
4601
- function ho(e = "(max-width: 800px)") {
4602
- let t = z(), n = D(!1), r = oe(e, { ssrWidth: 1e3 });
4732
+ function _o(e = "(max-width: 800px)") {
4733
+ let t = z(), n = D(!1), r = Y(e, { ssrWidth: 1e3 });
4603
4734
  function i(e) {
4604
4735
  if (!r.value || !n.value) return;
4605
4736
  let i = e.target, a = document.getElementById(`${t}-sidebar`), o = document.getElementById(`${t}-hamburger`);
@@ -4615,7 +4746,7 @@ function ho(e = "(max-width: 800px)") {
4615
4746
  }, 5));
4616
4747
  }
4617
4748
  return S(() => {
4618
- G(r, (e) => {
4749
+ W(r, (e) => {
4619
4750
  e ? (document.addEventListener("mousedown", i), document.addEventListener("focusin", a)) : (document.removeEventListener("mousedown", i), document.removeEventListener("focusin", a));
4620
4751
  }, { immediate: !0 });
4621
4752
  }), x(() => {
@@ -4629,8 +4760,8 @@ function ho(e = "(max-width: 800px)") {
4629
4760
  }
4630
4761
  //#endregion
4631
4762
  //#region src/compose/useTableChanges.ts
4632
- function go() {
4633
- let e = j(/* @__PURE__ */ new Map()), t = re(), n = (n) => {
4763
+ function vo() {
4764
+ let e = j(/* @__PURE__ */ new Map()), t = ie(), n = (n) => {
4634
4765
  let r = n.column.key, i = n.row.key, a = n.value, o = n.previousValue;
4635
4766
  e.has(i) || e.set(i, j(/* @__PURE__ */ new Map()));
4636
4767
  let s = e.get(i), c = s.get(r), l = c ? c.previousValue : o, u = c?.error;
@@ -4732,6 +4863,6 @@ function go() {
4732
4863
  };
4733
4864
  }
4734
4865
  //#endregion
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 };
4866
+ export { Ae 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, $ 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, Ca as _, co as a, pa as b, Qa as c, Ua as d, Oe as et, Ha as f, Da as g, ka as h, ho as i, Q as it, On as j, ir as k, Za as l, Na as m, _o as n, xe as nt, so as o, La as p, et as q, go as r, be as rt, ao as s, vo as t, De as tt, Wa as u, Sa as v, ni as w, ri as x, ya as y, nn as z };
4736
4867
 
4737
- //# sourceMappingURL=grad-vue-DId9tLsv.js.map
4868
+ //# sourceMappingURL=grad-vue-qPzpBTuo.js.map