@illinois-grad/grad-vue 2.3.2 → 2.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { defineComponent as T, useSlots as Me, useAttrs as Xe, computed as x, createBlock as q, openBlock as u, resolveDynamicComponent as fe, mergeProps as ae, unref as f, withCtx as U, createElementBlock as v, renderSlot as P, Fragment as F, createElementVNode as n, normalizeClass as G, inject as be, onMounted as re, onBeforeUnmount as de, createCommentVNode as M, renderList as Z, createTextVNode as N, toDisplayString as C, mergeModels as H, useModel as j, useId as Y, toRef as $e, ref as B, createVNode as W, shallowRef as Oe, watch as Q, toValue as Ie, nextTick as J, useTemplateRef as ge, Transition as _e, normalizeStyle as ce, onBeforeMount as Ue, Teleport as je, withDirectives as we, withModifiers as ue, vShow as et, getCurrentInstance as Ne, watchEffect as De, reactive as tt, toRaw as We, vModelCheckbox as Fe, normalizeProps as lt, guardReactiveProps as at, shallowReactive as ot, provide as st } from "vue";
1
+ import { defineComponent as T, useSlots as Me, useAttrs as Xe, computed as x, createBlock as q, openBlock as u, resolveDynamicComponent as fe, mergeProps as ae, unref as f, withCtx as U, createElementBlock as v, renderSlot as P, Fragment as F, createElementVNode as n, normalizeClass as G, inject as be, onMounted as ie, onBeforeUnmount as ce, createCommentVNode as M, renderList as Z, createTextVNode as N, toDisplayString as C, mergeModels as H, useModel as j, useId as Y, toRef as $e, ref as B, createVNode as W, shallowRef as Oe, watch as Q, toValue as Ie, nextTick as J, useTemplateRef as ge, Transition as _e, normalizeStyle as ve, onBeforeMount as Ue, Teleport as je, withDirectives as we, withModifiers as de, vShow as et, getCurrentInstance as Ne, watchEffect as De, reactive as tt, toRaw as We, vModelCheckbox as Fe, normalizeProps as lt, guardReactiveProps as at, shallowReactive as ot, provide as st } from "vue";
2
2
  import { toArray as nt, unrefElement as rt, tryOnScopeDispose as it, useFocusWithin as ut, useDebounceFn as dt, useClipboard as ct, useResizeObserver as Pe } from "@vueuse/core";
3
3
  import { createFocusTrap as vt } from "focus-trap";
4
4
  const ft = { class: "g-btn--icon" }, gt = { class: "g-btn--label" }, ne = /* @__PURE__ */ T({
@@ -75,13 +75,13 @@ function Ce(e) {
75
75
  const s = [];
76
76
  return e.errors && s.push(...e.errors.value.filter(Boolean)), s;
77
77
  }), a = x(() => t.value.length > 0), o = e.name;
78
- return l && o && (re(() => {
78
+ return l && o && (ie(() => {
79
79
  l.registerField(o, {
80
80
  name: o,
81
81
  value: e.value,
82
82
  errors: t
83
83
  });
84
- }), de(() => {
84
+ }), ce(() => {
85
85
  e.name && l.unregisterField(e.name);
86
86
  })), {
87
87
  displayErrors: t,
@@ -266,7 +266,7 @@ function xe(e, l = !1, t = !1) {
266
266
  const p = d.value.indexOf(e);
267
267
  return p === -1 ? 0 : (l ? 200 : 100) + p;
268
268
  });
269
- return de(c), { push: r, pop: c, isTop: g, zIndex: m };
269
+ return ce(c), { push: r, pop: c, isTop: g, zIndex: m };
270
270
  }
271
271
  function _t() {
272
272
  if (!document)
@@ -361,9 +361,9 @@ function Te(e, l, t, a, o) {
361
361
  console.error(r);
362
362
  }));
363
363
  }
364
- re(() => {
364
+ ie(() => {
365
365
  document.addEventListener("mousedown", s), document.addEventListener("keydown", i);
366
- }), de(() => {
366
+ }), ce(() => {
367
367
  document.removeEventListener("mousedown", s), document.removeEventListener("keydown", i), o();
368
368
  });
369
369
  }
@@ -403,10 +403,10 @@ const Lt = { class: "g-popover-wrap" }, St = ["id"], It = ["aria-labelledby"], M
403
403
  function K() {
404
404
  if (!s.value || !i.value)
405
405
  return;
406
- const O = s.value.getBoundingClientRect(), X = i.value.getBoundingClientRect(), R = window.innerWidth - document.documentElement.clientWidth, te = window.innerWidth - R, ee = new DOMRect(0, 0, te, window.innerHeight), { top: se, left: $, xOffset: V, placedAbove: k, overlay: D } = Ze(O, X, ee, {
406
+ const O = s.value.getBoundingClientRect(), X = i.value.getBoundingClientRect(), R = window.innerWidth - document.documentElement.clientWidth, te = window.innerWidth - R, ee = new DOMRect(0, 0, te, window.innerHeight), { top: se, left: _, xOffset: V, placedAbove: k, overlay: D } = Ze(O, X, ee, {
407
407
  gap: t.minimal ? 0 : 8
408
408
  });
409
- y.value = { top: se, left: $ }, h.value = {
409
+ y.value = { top: se, left: _ }, h.value = {
410
410
  left: `${X.width / 2 - V}px`,
411
411
  top: k ? "auto" : void 0,
412
412
  bottom: k ? "-8px" : void 0
@@ -418,7 +418,7 @@ const Lt = { class: "g-popover-wrap" }, St = ["id"], It = ["aria-labelledby"], M
418
418
  () => K()
419
419
  ), I.observe(i.value));
420
420
  }) : (window.removeEventListener("resize", K), I && I.disconnect());
421
- }), de(() => {
421
+ }), ce(() => {
422
422
  window.removeEventListener("resize", K), I && I.disconnect();
423
423
  }), (O, X) => (u(), v("div", Lt, [
424
424
  n("div", {
@@ -447,7 +447,7 @@ const Lt = { class: "g-popover-wrap" }, St = ["id"], It = ["aria-labelledby"], M
447
447
  role: "dialog",
448
448
  "aria-modal": "true",
449
449
  "aria-labelledby": `${f(d)}-trigger`,
450
- style: ce({
450
+ style: ve({
451
451
  top: y.value.top + "px",
452
452
  left: y.value.left + "px",
453
453
  zIndex: f(m)
@@ -456,7 +456,7 @@ const Lt = { class: "g-popover-wrap" }, St = ["id"], It = ["aria-labelledby"], M
456
456
  !w.value && !e.minimal ? (u(), v("div", {
457
457
  key: 0,
458
458
  class: G(["g-popover-arrow", { "g-popover-arrow-above": A.value }]),
459
- style: ce(h.value),
459
+ style: ve(h.value),
460
460
  "aria-hidden": "true"
461
461
  }, null, 6)) : M("", !0),
462
462
  P(O.$slots, "default", {}, void 0, !0),
@@ -643,7 +643,7 @@ const Lt = { class: "g-popover-wrap" }, St = ["id"], It = ["aria-labelledby"], M
643
643
  function L() {
644
644
  a("cancel");
645
645
  }
646
- return Te([o], c, s, L, d), re(() => {
646
+ return Te([o], c, s, L, d), ie(() => {
647
647
  r(), p();
648
648
  }), Ue(() => {
649
649
  d(), m();
@@ -662,7 +662,7 @@ const Lt = { class: "g-popover-wrap" }, St = ["id"], It = ["aria-labelledby"], M
662
662
  "aria-describedby": "alertdialog-description-" + f(i),
663
663
  ref_key: "dialog",
664
664
  ref: o,
665
- style: ce({ zIndex: f(g) })
665
+ style: ve({ zIndex: f(g) })
666
666
  }, [
667
667
  n("div", Ut, [
668
668
  n("h2", {
@@ -730,13 +730,13 @@ const Lt = { class: "g-popover-wrap" }, St = ["id"], It = ["aria-labelledby"], M
730
730
  value: o,
731
731
  errors: $e(t, "errors")
732
732
  }), h = B("below"), A = B(null), w = x(() => {
733
- const _ = {};
734
- return A.value !== null && (_.maxHeight = `${A.value}px`), h.value === "above" ? (_.top = "auto", _.bottom = "100%") : (_.top = "100%", _.bottom = "auto"), _;
733
+ const $ = {};
734
+ return A.value !== null && ($.maxHeight = `${A.value}px`), h.value === "above" ? ($.top = "auto", $.bottom = "100%") : ($.top = "100%", $.bottom = "auto"), $;
735
735
  });
736
736
  function I() {
737
737
  if (!r.value || !i.value)
738
738
  return;
739
- const _ = i.value.getBoundingClientRect(), E = window.innerHeight - _.bottom, le = _.top, ie = d.value?.scrollHeight ?? 200, Le = Math.min(200, ie), Se = 8;
739
+ const $ = i.value.getBoundingClientRect(), E = window.innerHeight - $.bottom, le = $.top, ue = d.value?.scrollHeight ?? 200, Le = Math.min(200, ue), Se = 8;
740
740
  if (E >= Le) {
741
741
  h.value = "below", A.value = Math.max(0, Math.floor(E - Se));
742
742
  return;
@@ -751,49 +751,49 @@ const Lt = { class: "g-popover-wrap" }, St = ["id"], It = ["aria-labelledby"], M
751
751
  function O() {
752
752
  if (K)
753
753
  return;
754
- const _ = () => {
754
+ const $ = () => {
755
755
  I();
756
756
  };
757
- window.addEventListener("resize", _, { passive: !0 }), window.addEventListener("scroll", _, {
757
+ window.addEventListener("resize", $, { passive: !0 }), window.addEventListener("scroll", $, {
758
758
  passive: !0,
759
759
  capture: !0
760
760
  }), K = () => {
761
- window.removeEventListener("resize", _), window.removeEventListener("scroll", _, !0), K = null;
761
+ window.removeEventListener("resize", $), window.removeEventListener("scroll", $, !0), K = null;
762
762
  };
763
763
  }
764
764
  function X() {
765
765
  K && K();
766
766
  }
767
- const R = x(() => t.options.map((_) => typeof _ == "string" ? { label: _, value: _ } : _)), te = B(""), ee = x(() => {
767
+ const R = x(() => t.options.map(($) => typeof $ == "string" ? { label: $, value: $ } : $)), te = B(""), ee = x(() => {
768
768
  if (!t.searchable || !r.value || !te.value)
769
769
  return R.value;
770
- const _ = te.value.toLowerCase();
770
+ const $ = te.value.toLowerCase();
771
771
  return R.value.filter(
772
- (E) => E.label.toLowerCase().includes(_)
772
+ (E) => E.label.toLowerCase().includes($)
773
773
  );
774
- }), se = x(() => ee.value.findIndex((_) => _.value === o.value));
774
+ }), se = x(() => ee.value.findIndex(($) => $.value === o.value));
775
775
  Q(
776
776
  () => o.value,
777
- (_) => {
778
- const E = ee.value.findIndex((le) => le.value === _);
777
+ ($) => {
778
+ const E = ee.value.findIndex((le) => le.value === $);
779
779
  E !== -1 && (c.value = E);
780
780
  }
781
- ), Q(r, (_) => {
782
- _ ? p() : L();
783
- }), Q(r, (_) => {
784
- _ ? (O(), J(() => {
781
+ ), Q(r, ($) => {
782
+ $ ? p() : L();
783
+ }), Q(r, ($) => {
784
+ $ ? (O(), J(() => {
785
785
  I();
786
786
  })) : (X(), h.value = "below", A.value = null);
787
787
  });
788
- function $() {
788
+ function _() {
789
789
  if (!t.disabled && (r.value = !0, J(() => {
790
790
  I();
791
791
  }), t.searchable)) {
792
792
  te.value = "";
793
- const _ = ee.value.findIndex(
793
+ const $ = ee.value.findIndex(
794
794
  (E) => E.value === o.value
795
795
  );
796
- c.value = _ !== -1 ? _ : 0, J(() => {
796
+ c.value = $ !== -1 ? $ : 0, J(() => {
797
797
  k.value && k.value.focus();
798
798
  });
799
799
  }
@@ -801,97 +801,97 @@ const Lt = { class: "g-popover-wrap" }, St = ["id"], It = ["aria-labelledby"], M
801
801
  function V() {
802
802
  r.value = !1, t.searchable && (te.value = "");
803
803
  }
804
- de(() => {
804
+ ce(() => {
805
805
  X();
806
806
  });
807
807
  const k = B(null);
808
- function D(_) {
808
+ function D($) {
809
809
  if (!t.disabled && t.searchable) {
810
810
  if (m.value) {
811
811
  m.value = !1;
812
812
  return;
813
813
  }
814
- $();
814
+ _();
815
815
  }
816
816
  }
817
- function ve(_) {
817
+ function re($) {
818
818
  if (!t.searchable) return;
819
- r.value || $(), te.value = _.target.value;
819
+ r.value || _(), te.value = $.target.value;
820
820
  const E = ee.value.findIndex(
821
821
  (le) => le.value === o.value
822
822
  );
823
823
  c.value = E !== -1 ? E : 0;
824
824
  }
825
- function me(_) {
826
- const E = _.relatedTarget;
825
+ function me($) {
826
+ const E = $.relatedTarget;
827
827
  if (g.value) {
828
828
  g.value = !1;
829
829
  return;
830
830
  }
831
831
  E && d.value && d.value.contains(E) || (t.searchable && (te.value = ""), V());
832
832
  }
833
- function pe(_) {
834
- const E = ee.value[_];
833
+ function pe($) {
834
+ const E = ee.value[$];
835
835
  E && E.value !== o.value && (o.value = E.value, a("change", E.value)), m.value = !0, V(), setTimeout(() => {
836
836
  m.value = !1;
837
837
  }, 100);
838
838
  }
839
839
  function he() {
840
- t.disabled || (r.value ? V() : $());
840
+ t.disabled || (r.value ? V() : _());
841
841
  }
842
- function ye(_) {
842
+ function ye($) {
843
843
  if (t.disabled)
844
844
  return;
845
845
  const E = ee.value.length - 1;
846
- if (!r.value && ["ArrowDown", "ArrowUp", "Enter", " "].includes(_.key)) {
847
- _.preventDefault(), $();
846
+ if (!r.value && ["ArrowDown", "ArrowUp", "Enter", " "].includes($.key)) {
847
+ $.preventDefault(), _();
848
848
  return;
849
849
  }
850
- switch (_.key) {
850
+ switch ($.key) {
851
851
  case "ArrowDown":
852
- _.preventDefault(), r.value ? (c.value = Math.min(E, c.value + 1), ke()) : $();
852
+ $.preventDefault(), r.value ? (c.value = Math.min(E, c.value + 1), ke()) : _();
853
853
  break;
854
854
  case "ArrowUp":
855
- _.preventDefault(), r.value ? (c.value = Math.max(0, c.value - 1), ke()) : $();
855
+ $.preventDefault(), r.value ? (c.value = Math.max(0, c.value - 1), ke()) : _();
856
856
  break;
857
857
  case "Home":
858
- _.preventDefault(), c.value = 0, ke();
858
+ $.preventDefault(), c.value = 0, ke();
859
859
  break;
860
860
  case "End":
861
- _.preventDefault(), c.value = E, ke();
861
+ $.preventDefault(), c.value = E, ke();
862
862
  break;
863
863
  case "Enter":
864
864
  case " ":
865
- _.preventDefault(), r.value ? pe(c.value) : $();
865
+ $.preventDefault(), r.value ? pe(c.value) : _();
866
866
  break;
867
867
  case "Escape":
868
- S.value && (_.preventDefault(), setTimeout(() => {
868
+ S.value && ($.preventDefault(), setTimeout(() => {
869
869
  V();
870
870
  }, 0));
871
871
  break;
872
872
  }
873
873
  }
874
- function Qe(_) {
875
- pe(_);
874
+ function Qe($) {
875
+ pe($);
876
876
  }
877
877
  function Je() {
878
878
  g.value = !0;
879
879
  }
880
880
  function ke() {
881
881
  J(() => {
882
- const _ = document.getElementById(
882
+ const $ = document.getElementById(
883
883
  `${s}-option-${c.value}`
884
884
  );
885
- _ && _.scrollIntoView({ block: "nearest" });
885
+ $ && $.scrollIntoView({ block: "nearest" });
886
886
  });
887
887
  }
888
888
  const ze = x(() => t.clearButton && o.value !== null && o.value !== void 0 && !t.disabled);
889
889
  function Ge() {
890
890
  t.disabled || (o.value = null, a("change", null), t.searchable && (te.value = ""));
891
891
  }
892
- return de(() => {
892
+ return ce(() => {
893
893
  L();
894
- }), (_, E) => (u(), v("div", {
894
+ }), ($, E) => (u(), v("div", {
895
895
  class: G(["g-select-root g-select-combo", { "g-select-open": r.value, "g-select-compact": e.compact, "g-select-has-error": f(y) }])
896
896
  }, [
897
897
  e.hiddenLabel ? M("", !0) : (u(), v("div", {
@@ -916,7 +916,7 @@ const Lt = { class: "g-popover-wrap" }, St = ["id"], It = ["aria-labelledby"], M
916
916
  placeholder: r.value ? "" : e.placeholder,
917
917
  disabled: t.disabled,
918
918
  onFocus: D,
919
- onInput: ve,
919
+ onInput: re,
920
920
  onKeydown: ye,
921
921
  onBlur: me,
922
922
  "aria-autocomplete": "list",
@@ -989,7 +989,7 @@ const Lt = { class: "g-popover-wrap" }, St = ["id"], It = ["aria-labelledby"], M
989
989
  key: 0,
990
990
  type: "button",
991
991
  class: "g-select-clear-btn",
992
- onClick: ue(Ge, ["stop"])
992
+ onClick: de(Ge, ["stop"])
993
993
  }, [...E[2] || (E[2] = [
994
994
  n("svg", {
995
995
  role: "img",
@@ -1031,22 +1031,22 @@ const Lt = { class: "g-popover-wrap" }, St = ["id"], It = ["aria-labelledby"], M
1031
1031
  e.hiddenLabel ? { "aria-label": t.label } : { "aria-labelledby": f(s) + "-label" },
1032
1032
  { tabindex: "-1" }
1033
1033
  ), [
1034
- ee.value.length > 0 ? (u(!0), v(F, { key: 0 }, Z(ee.value, (le, ie) => (u(), v("div", {
1034
+ ee.value.length > 0 ? (u(!0), v(F, { key: 0 }, Z(ee.value, (le, ue) => (u(), v("div", {
1035
1035
  key: le.value,
1036
- id: f(s) + "-option-" + ie,
1036
+ id: f(s) + "-option-" + ue,
1037
1037
  class: G(["g-select-combo-option g-select-option", {
1038
- "g-select-option-current": ie === c.value,
1038
+ "g-select-option-current": ue === c.value,
1039
1039
  "ilw-theme-blue": le.value === o.value
1040
1040
  }]),
1041
1041
  role: "option",
1042
1042
  "aria-selected": le.value === o.value ? "true" : "false",
1043
1043
  onMousedown: Je,
1044
- onClick: (Le) => Qe(ie)
1044
+ onClick: (Le) => Qe(ue)
1045
1045
  }, [
1046
- P(_.$slots, "option", {
1046
+ P($.$slots, "option", {
1047
1047
  option: le,
1048
1048
  selected: le.value === o.value,
1049
- index: ie
1049
+ index: ue
1050
1050
  }, () => [
1051
1051
  N(C(le.label), 1)
1052
1052
  ], !0)
@@ -1132,7 +1132,7 @@ const Lt = { class: "g-popover-wrap" }, St = ["id"], It = ["aria-labelledby"], M
1132
1132
  }, [
1133
1133
  n("form", {
1134
1134
  class: "g-search-form",
1135
- onSubmit: K[0] || (K[0] = ue((O) => b(null), ["prevent"]))
1135
+ onSubmit: K[0] || (K[0] = de((O) => b(null), ["prevent"]))
1136
1136
  }, [
1137
1137
  n("input", {
1138
1138
  ref_key: "inputRef",
@@ -1202,7 +1202,7 @@ const Lt = { class: "g-popover-wrap" }, St = ["id"], It = ["aria-labelledby"], M
1202
1202
  "g-search-option-active": c.value[r.value] && c.value[r.value].id === R.id
1203
1203
  }]),
1204
1204
  role: "option",
1205
- onMousedown: ue((ee) => b(R), ["prevent"]),
1205
+ onMousedown: de((ee) => b(R), ["prevent"]),
1206
1206
  "aria-selected": c.value[r.value] && c.value[r.value].id === R.id
1207
1207
  }, [
1208
1208
  P(I.$slots, "option", { option: R }, () => [
@@ -1216,7 +1216,7 @@ const Lt = { class: "g-popover-wrap" }, St = ["id"], It = ["aria-labelledby"], M
1216
1216
  "g-search-option-active": r.value === X
1217
1217
  }]),
1218
1218
  role: "option",
1219
- onMousedown: ue((R) => b(O), ["prevent"]),
1219
+ onMousedown: de((R) => b(O), ["prevent"]),
1220
1220
  "aria-selected": r.value === X
1221
1221
  }, [
1222
1222
  P(I.$slots, "option", { option: O }, () => [
@@ -1313,7 +1313,7 @@ const Lt = { class: "g-popover-wrap" }, St = ["id"], It = ["aria-labelledby"], M
1313
1313
  "g-sidebar--open": f(t)?.open?.value && f(t)?.isCollapsible?.value
1314
1314
  }
1315
1315
  ]]),
1316
- style: ce({
1316
+ style: ve({
1317
1317
  backgroundImage: a.value,
1318
1318
  backgroundColor: o.value,
1319
1319
  "--g-sidebar-top-offset": s.value,
@@ -1341,7 +1341,7 @@ const Lt = { class: "g-popover-wrap" }, St = ["id"], It = ["aria-labelledby"], M
1341
1341
  emits: ["update:modelValue"],
1342
1342
  setup(e) {
1343
1343
  const l = e, t = j(e, "modelValue"), a = x(() => l.spy && t.value ? "#" + t.value : null), o = ge("content");
1344
- re(() => {
1344
+ ie(() => {
1345
1345
  Q(
1346
1346
  t,
1347
1347
  () => {
@@ -1553,7 +1553,7 @@ const Ml = {
1553
1553
  const { scrollTop: c, scrollHeight: g, clientHeight: m } = t.value;
1554
1554
  o.value = c + m >= g - 2, s.value = c <= 2;
1555
1555
  }
1556
- re(() => {
1556
+ ie(() => {
1557
1557
  J(i);
1558
1558
  }), Pe(t, () => {
1559
1559
  o.value && i();
@@ -1858,7 +1858,7 @@ const Ml = {
1858
1858
  e.bulkSelectionEnabled ? (u(), v("td", {
1859
1859
  key: 0,
1860
1860
  class: "td-checkbox",
1861
- onClick: y[0] || (y[0] = ue(() => {
1861
+ onClick: y[0] || (y[0] = de(() => {
1862
1862
  }, ["stop"]))
1863
1863
  }, [
1864
1864
  n("input", {
@@ -2056,75 +2056,76 @@ const ba = { class: "g-table-outer-wrap" }, ma = {
2056
2056
  emits: /* @__PURE__ */ H(["row-click", "bulk-action", "cell-change"], ["update:sortField", "update:sortOrder", "update:filter", "update:selectedRows"]),
2057
2057
  setup(e, { emit: l }) {
2058
2058
  const t = j(e, "sortField"), a = j(e, "sortOrder"), o = j(e, "filter"), s = j(e, "selectedRows"), i = e, d = l;
2059
- function r($) {
2060
- $.sortable && (t.value === $.key ? a.value === 1 ? a.value = -1 : a.value === -1 && (t.value = void 0, a.value = 1) : (t.value = $.key, a.value = 1));
2059
+ function r(_) {
2060
+ _.sortable && (t.value === _.key ? a.value === 1 ? a.value = -1 : a.value === -1 && (t.value = void 0, a.value = 1) : (t.value = _.key, a.value = 1));
2061
2061
  }
2062
2062
  let c = i.filtering;
2063
2063
  c || (c = ga({}));
2064
- const { filters: g, filteredColumns: m, isFiltered: p, clearFilters: L } = c, S = x(() => i.data.map(($) => $.key)), b = x(() => s.value.filter(($) => S.value.includes($))), y = x(() => !i.bulkSelectionEnabled || i.data.length === 0 ? !1 : b.value.length === S.value.length), h = x(() => !i.bulkSelectionEnabled || i.data.length === 0 ? !1 : b.value.length > 0 && b.value.length < S.value.length), A = B(null);
2064
+ const { filters: g, filteredColumns: m, isFiltered: p, clearFilters: L } = c, S = x(() => i.data.map((_) => _.key)), b = x(() => s.value.filter((_) => S.value.includes(_))), y = x(() => !i.bulkSelectionEnabled || i.data.length === 0 ? !1 : b.value.length === S.value.length), h = x(() => !i.bulkSelectionEnabled || i.data.length === 0 ? !1 : b.value.length > 0 && b.value.length < S.value.length), A = B(null);
2065
2065
  function w() {
2066
2066
  if (y.value)
2067
2067
  s.value = s.value.filter(
2068
- ($) => !S.value.includes($)
2068
+ (_) => !S.value.includes(_)
2069
2069
  );
2070
2070
  else {
2071
- const $ = new Set(s.value);
2072
- S.value.forEach((V) => $.add(V)), s.value = Array.from($);
2071
+ const _ = new Set(s.value);
2072
+ S.value.forEach((V) => _.add(V)), s.value = Array.from(_);
2073
2073
  }
2074
2074
  }
2075
- function I($, V = !1) {
2075
+ function I(_, V = !1) {
2076
2076
  if (V && A.value) {
2077
- const k = S.value.indexOf(A.value), D = S.value.indexOf($);
2077
+ const k = S.value.indexOf(A.value), D = S.value.indexOf(_);
2078
2078
  if (k !== -1 && D !== -1) {
2079
- const ve = Math.min(k, D), me = Math.max(k, D), pe = S.value.slice(ve, me + 1), he = new Set(s.value);
2079
+ const re = Math.min(k, D), me = Math.max(k, D), pe = S.value.slice(re, me + 1), he = new Set(s.value);
2080
2080
  pe.forEach((ye) => he.add(ye)), s.value = Array.from(he);
2081
2081
  }
2082
2082
  } else
2083
- s.value.includes($) ? s.value = s.value.filter(
2084
- (k) => k !== $
2085
- ) : s.value = [...s.value, $];
2086
- A.value = $;
2083
+ s.value.includes(_) ? s.value = s.value.filter(
2084
+ (k) => k !== _
2085
+ ) : s.value = [...s.value, _];
2086
+ A.value = _;
2087
2087
  }
2088
- function K($) {
2089
- d("row-click", $);
2088
+ function K(_) {
2089
+ d("row-click", _);
2090
2090
  }
2091
- function O($) {
2092
- d("bulk-action", $, s.value);
2091
+ function O(_) {
2092
+ d("bulk-action", _, s.value);
2093
2093
  }
2094
- function X($) {
2095
- let V = $.value, k = We($.row[$.column.key]);
2096
- $.column.editable?.inputAttributes?.type === "number" && (V = $.value === "" ? null : Number($.value)), $.row[$.column.key] = V;
2097
- const D = {
2098
- row: $.row,
2099
- column: $.column,
2094
+ function X(_) {
2095
+ let V = _.value;
2096
+ const k = _.column.key, D = We(_.row[k]);
2097
+ _.column.editable?.inputAttributes?.type === "number" && (V = _.value === "" ? null : Number(_.value)), _.row[k] = V;
2098
+ const re = {
2099
+ row: _.row,
2100
+ column: _.column,
2100
2101
  value: V,
2101
- previousValue: k
2102
+ previousValue: D
2102
2103
  };
2103
- d("cell-change", D);
2104
+ d("cell-change", re);
2104
2105
  }
2105
2106
  const R = Y(), te = Me(), ee = x(() => i.showPagination ? !0 : !!te.pagination), se = x(() => !!(p.value || ee.value));
2106
- return re(() => {
2107
+ return ie(() => {
2107
2108
  i.rowClickable && i.bulkSelectionEnabled && console.warn(
2108
2109
  "GTable: rowClickable and bulkSelectionEnabled cannot be used together. rowClickable will be ignored."
2109
2110
  );
2110
- for (const $ of i.columns)
2111
- if ($.editable && $.display && console.warn(
2112
- `GTable: Column "${String($.key)}" has both 'editable' and 'display' configured. 'display' will be ignored.`
2113
- ), $.filter && $.filter.type === "multi-select" && !Array.isArray(o.value[$.key])) {
2114
- let V = o.value[$.key];
2115
- o.value[$.key] = V ? [V] : [];
2111
+ for (const _ of i.columns)
2112
+ if (_.editable && _.display && console.warn(
2113
+ `GTable: Column "${String(_.key)}" has both 'editable' and 'display' configured. 'display' will be ignored.`
2114
+ ), _.filter && _.filter.type === "multi-select" && !Array.isArray(o.value[_.key])) {
2115
+ let V = o.value[_.key];
2116
+ o.value[_.key] = V ? [V] : [];
2116
2117
  }
2117
2118
  }), Q(
2118
2119
  () => i.columns,
2119
- ($) => {
2120
- for (const V of $)
2120
+ (_) => {
2121
+ for (const V of _)
2121
2122
  if (V.filter && V.filter.type === "multi-select" && !Array.isArray(o.value[V.key])) {
2122
2123
  let k = o.value[V.key];
2123
2124
  o.value[V.key] = k ? [k] : [];
2124
2125
  }
2125
2126
  },
2126
2127
  { immediate: !0 }
2127
- ), ($, V) => (u(), v("div", ba, [
2128
+ ), (_, V) => (u(), v("div", ba, [
2128
2129
  se.value ? (u(), v("div", ma, [
2129
2130
  n("div", pa, [
2130
2131
  f(p) ? (u(), q(ne, {
@@ -2152,7 +2153,7 @@ const ba = { class: "g-table-outer-wrap" }, ma = {
2152
2153
  }, 8, ["onClick"])) : M("", !0)
2153
2154
  ]),
2154
2155
  ee.value ? (u(), v("div", ha, [
2155
- P($.$slots, "pagination", {}, void 0, !0)
2156
+ P(_.$slots, "pagination", {}, void 0, !0)
2156
2157
  ])) : M("", !0),
2157
2158
  n("span", ya, C(i.resultCount || e.data.length) + " results", 1)
2158
2159
  ])) : M("", !0),
@@ -2200,7 +2201,7 @@ const ba = { class: "g-table-outer-wrap" }, ma = {
2200
2201
  height: "1.5em",
2201
2202
  role: "img",
2202
2203
  "aria-label": a.value === 1 ? "Sorted ascending" : "Sorted descending",
2203
- style: ce({
2204
+ style: ve({
2204
2205
  transform: `rotate(${a.value === 1 ? 0 : 180}deg)`
2205
2206
  })
2206
2207
  }, [...V[1] || (V[1] = [
@@ -2214,7 +2215,7 @@ const ba = { class: "g-table-outer-wrap" }, ma = {
2214
2215
  k.filter ? (u(), q(Ae, { key: 2 }, {
2215
2216
  trigger: U(({ toggle: D }) => [
2216
2217
  n("button", {
2217
- onClick: ue(D, ["stop"]),
2218
+ onClick: de(D, ["stop"]),
2218
2219
  "aria-label": f(m)[k.key] ? "Column Filtered" : "Filter Column",
2219
2220
  class: G(["g-filter-btn", {
2220
2221
  "g-active": f(m)[k.key]
@@ -2270,7 +2271,7 @@ const ba = { class: "g-table-outer-wrap" }, ma = {
2270
2271
  }, [
2271
2272
  we(n("input", {
2272
2273
  type: "checkbox",
2273
- "onUpdate:modelValue": (ve) => o.value[k.key] = ve,
2274
+ "onUpdate:modelValue": (re) => o.value[k.key] = re,
2274
2275
  id: `filter-${String(k.key)}-${D.value}`,
2275
2276
  value: D.value,
2276
2277
  name: "filter-multiselect"
@@ -2339,7 +2340,7 @@ const ba = { class: "g-table-outer-wrap" }, ma = {
2339
2340
  ])) : M("", !0)
2340
2341
  ]));
2341
2342
  }
2342
- }), es = /* @__PURE__ */ z(Ka, [["__scopeId", "data-v-f59daf0b"]]), Ua = {
2343
+ }), es = /* @__PURE__ */ z(Ka, [["__scopeId", "data-v-875824b8"]]), Ua = {
2343
2344
  class: "g-pagination",
2344
2345
  "aria-label": "Pagination"
2345
2346
  }, ja = ["disabled"], Na = ["disabled"], Wa = { class: "page-range" }, qa = ["disabled"], Za = ["disabled"], Ya = ["value"], Qa = ["value"], Ja = /* @__PURE__ */ T({
@@ -2503,7 +2504,7 @@ const ba = { class: "g-table-outer-wrap" }, ma = {
2503
2504
  function p() {
2504
2505
  t("close");
2505
2506
  }
2506
- return Te([a], r, o, p, i), re(() => {
2507
+ return Te([a], r, o, p, i), ie(() => {
2507
2508
  d(), m();
2508
2509
  }), Ue(() => {
2509
2510
  i(), g();
@@ -2765,7 +2766,7 @@ const ba = { class: "g-table-outer-wrap" }, ma = {
2765
2766
  trigger: U(({ toggle: c }) => [
2766
2767
  n("button", {
2767
2768
  class: "g-user-menu__avatar",
2768
- style: ce({ backgroundColor: e.color }),
2769
+ style: ve({ backgroundColor: e.color }),
2769
2770
  "aria-label": e.initials + " - " + e.label,
2770
2771
  "aria-expanded": a.value,
2771
2772
  "aria-haspopup": "menu",
@@ -3117,4 +3118,4 @@ export {
3117
3118
  ds as y,
3118
3119
  Ke as z
3119
3120
  };
3120
- //# sourceMappingURL=main-BKw4zajF.js.map
3121
+ //# sourceMappingURL=main-8xPutD6u.js.map