@illinois-grad/grad-vue 3.0.11 → 3.0.12

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.
@@ -246,10 +246,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
246
246
  }, Ce = { class: "g-tree-menu__row-content-text" }, we = {
247
247
  key: 1,
248
248
  class: "g-tree-menu__row g-tree-menu__row--leaf"
249
- }, Te = {
250
- class: "g-tree-menu__row-content",
251
- "data-tree-primary": ""
252
- }, Ee = /* @__PURE__ */ u({
249
+ }, Te = /* @__PURE__ */ u({
253
250
  name: "GTreeMenuItem",
254
251
  inheritAttrs: !1,
255
252
  props: {
@@ -326,7 +323,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
326
323
  onClick: D
327
324
  }, [(T(), o("svg", {
328
325
  class: _(["g-tree-menu__chevron", { "g-tree-menu__chevron--expanded": b.value }]),
329
- role: "none presentation",
326
+ role: "none",
330
327
  viewBox: "0 0 24 24",
331
328
  fill: "none",
332
329
  stroke: "currentColor",
@@ -340,7 +337,12 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
340
337
  "data-tree-primary": "",
341
338
  onClick: L,
342
339
  onKeydown: V
343
- }, [s("span", Ce, [A(e.$slots, "default")])], 544)])) : (T(), o("div", we, [t[1] ||= s("span", { class: "g-tree-menu__spacer" }, null, -1), s("span", Te, [A(e.$slots, "default")])])), g.value && b.value ? (T(), i(xe, {
340
+ }, [s("span", Ce, [A(e.$slots, "default")])], 544)])) : (T(), o("div", we, [t[1] ||= s("span", { class: "g-tree-menu__spacer" }, null, -1), s("span", {
341
+ class: "g-tree-menu__row-content",
342
+ ref_key: "contentRef",
343
+ ref: C,
344
+ "data-tree-primary": ""
345
+ }, [A(e.$slots, "default")], 512)])), g.value && b.value ? (T(), i(xe, {
344
346
  key: 2,
345
347
  id: R(f) + "-children"
346
348
  }, {
@@ -353,7 +355,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
353
355
  });
354
356
  //#endregion
355
357
  //#region src/compose/useForm.ts
356
- function De() {
358
+ function Ee() {
357
359
  let e = M({}), t = O(!1), n = r(() => {
358
360
  let t = {};
359
361
  return Object.entries(e).forEach(([e, n]) => {
@@ -395,18 +397,18 @@ function De() {
395
397
  }
396
398
  //#endregion
397
399
  //#region src/compose/useWebComponentForm.ts
398
- function Oe() {
400
+ function De() {
399
401
  let e = globalThis;
400
402
  return e.__GRAD_VUE_WC_FORMS__ ||= /* @__PURE__ */ new Map(), e.__GRAD_VUE_WC_FORMS__;
401
403
  }
402
- function ke(e = "default") {
403
- let t = Oe(), n = e || "default";
404
- return t.has(n) || t.set(n, De()), t.get(n);
404
+ function Oe(e = "default") {
405
+ let t = De(), n = e || "default";
406
+ return t.has(n) || t.set(n, Ee()), t.get(n);
405
407
  }
406
408
  //#endregion
407
409
  //#region src/compose/useFormField.ts
408
410
  function $(e) {
409
- let t = z(), n = typeof t["form-key"] == "string" ? t["form-key"] : void 0, i = e.formKey ?? n ?? "default", a = p("form", null) ?? (fe() ? ke(i) : null), o = r(() => {
411
+ let t = z(), n = typeof t["form-key"] == "string" ? t["form-key"] : void 0, i = e.formKey ?? n ?? "default", a = p("form", null) ?? (fe() ? Oe(i) : null), o = r(() => {
410
412
  let t = [];
411
413
  return e.errors && t.push(...e.errors.value.filter(Boolean)), t;
412
414
  }), s = r(() => o.value.length > 0), c = e.name;
@@ -425,7 +427,7 @@ function $(e) {
425
427
  }
426
428
  //#endregion
427
429
  //#region src/components/form/GFormErrorMessages.vue?vue&type=script&setup=true&lang.ts
428
- var Ae = ["id"], je = /* @__PURE__ */ u({
430
+ var ke = ["id"], Ae = /* @__PURE__ */ u({
429
431
  __name: "GFormErrorMessages",
430
432
  props: {
431
433
  errors: {},
@@ -442,30 +444,31 @@ var Ae = ["id"], je = /* @__PURE__ */ u({
442
444
  class: "g-form-error-message"
443
445
  }, [r[0] ||= s("svg", {
444
446
  class: "g-form-error-icon",
447
+ role: "none",
445
448
  xmlns: "http://www.w3.org/2000/svg",
446
449
  viewBox: "0 0 640 640"
447
450
  }, [s("path", {
448
451
  fill: "currentColor",
449
452
  d: "M320 64C334.7 64 348.2 72.1 355.2 85L571.2 485C577.9 497.4 577.6 512.4 570.4 524.5C563.2 536.6 550.1 544 536 544L104 544C89.9 544 76.8 536.6 69.6 524.5C62.4 512.4 62.1 497.4 68.8 485L284.8 85C291.8 72.1 305.3 64 320 64zM320 416C302.3 416 288 430.3 288 448C288 465.7 302.3 480 320 480C337.7 480 352 465.7 352 448C352 430.3 337.7 416 320 416zM320 224C301.8 224 287.3 239.5 288.6 257.7L296 361.7C296.9 374.2 307.4 384 319.9 384C332.5 384 342.9 374.3 343.8 361.7L351.2 257.7C352.5 239.5 338.1 224 319.8 224z"
450
- })], -1), c(" " + P(e), 1)]))), 128))], 8, Ae)) : a("", !0);
453
+ })], -1), c(" " + P(e), 1)]))), 128))], 8, ke)) : a("", !0);
451
454
  }
452
- }), Me = ["for"], Ne = {
455
+ }), je = ["for"], Me = {
453
456
  key: 0,
454
457
  class: "g-text-input-required",
455
458
  "aria-hidden": "true"
456
- }, Pe = ["id"], Fe = {
459
+ }, Ne = ["id"], Pe = {
457
460
  key: 0,
458
461
  class: "g-text-input-prefix"
459
- }, Ie = [
462
+ }, Fe = [
460
463
  "value",
461
464
  "placeholder",
462
465
  "disabled",
463
466
  "required",
464
467
  "aria-invalid"
465
- ], Le = {
468
+ ], Ie = {
466
469
  key: 1,
467
470
  class: "g-text-input-suffix"
468
- }, Re = /* @__PURE__ */ u({
471
+ }, Le = /* @__PURE__ */ u({
469
472
  inheritAttrs: !1,
470
473
  __name: "GTextInput",
471
474
  props: /*@__PURE__*/ m({
@@ -529,14 +532,14 @@ var Ae = ["id"], je = /* @__PURE__ */ u({
529
532
  key: 0,
530
533
  for: m.value,
531
534
  class: "g-text-input-label"
532
- }, [c(P(n.label), 1), n.required ? (T(), o("span", Ne, " *")) : a("", !0)], 8, Me)) : a("", !0),
535
+ }, [c(P(n.label), 1), n.required ? (T(), o("span", Me, " *")) : a("", !0)], 8, je)) : a("", !0),
533
536
  t.$slots.instructions || e.instructions ? (T(), o("div", {
534
537
  key: 1,
535
538
  id: "instructions-" + R(u),
536
539
  class: "g-text-input-instructions"
537
- }, [A(t.$slots, "instructions", {}, () => [c(P(e.instructions), 1)])], 8, Pe)) : a("", !0),
540
+ }, [A(t.$slots, "instructions", {}, () => [c(P(e.instructions), 1)])], 8, Ne)) : a("", !0),
538
541
  s("div", { class: _([{ "g-text-input-field-wrapper": !0 }, `g-text-input-field-wrapper--${e.name || "nameless"}`]) }, [
539
- n.prefix ? (T(), o("span", Fe, P(n.prefix), 1)) : a("", !0),
542
+ n.prefix ? (T(), o("span", Pe, P(n.prefix), 1)) : a("", !0),
540
543
  s("input", h({
541
544
  value: i.value,
542
545
  placeholder: n.placeholder,
@@ -553,37 +556,37 @@ var Ae = ["id"], je = /* @__PURE__ */ u({
553
556
  id: m.value,
554
557
  "aria-describedby": t.$slots.instructions || e.instructions ? "instructions-" + R(u) : void 0,
555
558
  "aria-errormessage": R(v) ? "error-message-" + R(u) : void 0
556
- }, { "aria-invalid": R(v) ? "true" : "false" }), null, 16, Ie),
557
- n.suffix ? (T(), o("span", Le, P(n.suffix), 1)) : a("", !0)
559
+ }, { "aria-invalid": R(v) ? "true" : "false" }), null, 16, Fe),
560
+ n.suffix ? (T(), o("span", Ie, P(n.suffix), 1)) : a("", !0)
558
561
  ], 2),
559
- l(je, {
562
+ l(Ae, {
560
563
  errors: R(g),
561
564
  id: "error-message-" + R(u)
562
565
  }, null, 8, ["errors", "id"])
563
566
  ], 2));
564
567
  }
565
- }), ze = 100, Be = 200, Ve = 102, He = O([]), Ue = O([]), We = O([]);
566
- function Ge() {
567
- if (!(typeof document > "u")) if (We.value.length > 0) {
568
+ }), Re = 100, ze = 200, Be = 102, Ve = O([]), He = O([]), Ue = O([]);
569
+ function We() {
570
+ if (!(typeof document > "u")) if (Ue.value.length > 0) {
568
571
  let e = window.innerWidth - document.documentElement.clientWidth;
569
572
  document.body.classList.add("g-scroll-lock"), document.body.style.paddingRight = `${e}px`, document.body.style.setProperty("--g-scrollbar-width", `${e}px`);
570
573
  } else document.body.style.paddingRight = "0", document.body.classList.remove("g-scroll-lock"), document.body.style.removeProperty("--g-scrollbar-width");
571
574
  }
572
- function Ke(e, t = !1, n = !1) {
575
+ function Ge(e, t = !1, n = !1) {
573
576
  if (typeof document > "u") return {};
574
- let i = t ? Ue : He;
577
+ let i = t ? He : Ve;
575
578
  function a() {
576
- i.value.push(e), n && !We.value.includes(e) && (We.value.push(e), Ge());
579
+ i.value.push(e), n && !Ue.value.includes(e) && (Ue.value.push(e), We());
577
580
  }
578
581
  function o() {
579
582
  let t = i.value.lastIndexOf(e);
580
583
  t !== -1 && i.value.splice(t, 1);
581
- let n = We.value.lastIndexOf(e);
582
- n !== -1 && (We.value.splice(n, 1), Ge());
584
+ let n = Ue.value.lastIndexOf(e);
585
+ n !== -1 && (Ue.value.splice(n, 1), We());
583
586
  }
584
- let s = r(() => !t && Ue.value.length > 0 ? !1 : i.value.length > 0 && i.value[i.value.length - 1] === e), c = r(() => {
587
+ let s = r(() => !t && He.value.length > 0 ? !1 : i.value.length > 0 && i.value[i.value.length - 1] === e), c = r(() => {
585
588
  let n = i.value.indexOf(e);
586
- return n === -1 ? 0 : (t ? Be : ze) + n;
589
+ return n === -1 ? 0 : (t ? ze : Re) + n;
587
590
  });
588
591
  return x(o), {
589
592
  push: a,
@@ -592,31 +595,31 @@ function Ke(e, t = !1, n = !1) {
592
595
  zIndex: c
593
596
  };
594
597
  }
595
- function qe() {
598
+ function Ke() {
596
599
  return typeof document > "u" ? {} : {
597
- hasModal: r(() => Ue.value.length > 0),
598
- hasOverlay: r(() => He.value.length > 0 || Ue.value.length > 0),
599
- hasScrollLock: r(() => We.value.length > 0)
600
+ hasModal: r(() => He.value.length > 0),
601
+ hasOverlay: r(() => Ve.value.length > 0 || He.value.length > 0),
602
+ hasScrollLock: r(() => Ue.value.length > 0)
600
603
  };
601
604
  }
602
- function Je() {
605
+ function qe() {
603
606
  let e = 0;
604
- return He.value.forEach((t, n) => {
607
+ return Ve.value.forEach((t, n) => {
608
+ e = Math.max(e, Re + n);
609
+ }), He.value.forEach((t, n) => {
605
610
  e = Math.max(e, ze + n);
606
- }), Ue.value.forEach((t, n) => {
607
- e = Math.max(e, Be + n);
608
- }), e > 0 ? e + 1 : Ve;
611
+ }), e > 0 ? e + 1 : Be;
609
612
  }
610
613
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
611
- var Ye = (e) => e != null;
614
+ var Je = (e) => e != null;
612
615
  //#endregion
613
616
  //#region ../../node_modules/@vueuse/integrations/dist/useFocusTrap-lXZ_YG-8.js
614
- function Xe(e, t = {}) {
617
+ function Ye(e, t = {}) {
615
618
  let n, { immediate: i, ...a } = t, o = N(!1), s = N(!1), c = (e) => n && n.activate(e), l = (e) => n && n.deactivate(e);
616
619
  return K(r(() => Z(L(e)).map((e) => {
617
620
  let t = L(e);
618
621
  return typeof t == "string" ? t : ne(t);
619
- }).filter(Ye)), (e) => {
622
+ }).filter(Je)), (e) => {
620
623
  if (e.length) if (!n) n = de(e, {
621
624
  ...a,
622
625
  onActivate() {
@@ -645,7 +648,7 @@ function Xe(e, t = {}) {
645
648
  }
646
649
  //#endregion
647
650
  //#region src/compose/useOverlayFocus.ts
648
- var Ze = [
651
+ var Xe = [
649
652
  "a[href]",
650
653
  "button:not([disabled])",
651
654
  "input:not([disabled])",
@@ -654,8 +657,8 @@ var Ze = [
654
657
  "[tabindex]:not([tabindex='-1'])",
655
658
  "[contenteditable='true']"
656
659
  ].join(",");
657
- function Qe(e, t, n = !1) {
658
- let r = O(!1), i = () => !!e.value?.querySelector(Ze), { activate: a, deactivate: o, pause: s, unpause: c } = Xe(e, {
660
+ function Ze(e, t, n = !1) {
661
+ let r = O(!1), i = () => !!e.value?.querySelector(Xe), { activate: a, deactivate: o, pause: s, unpause: c } = Ye(e, {
659
662
  immediate: !1,
660
663
  clickOutsideDeactivates: n,
661
664
  initialFocus: () => {
@@ -699,7 +702,7 @@ function Qe(e, t, n = !1) {
699
702
  }
700
703
  //#endregion
701
704
  //#region src/compose/useOverlayEscape.ts
702
- function $e(e, t, n, r, i) {
705
+ function Qe(e, t, n, r, i) {
703
706
  function a(i) {
704
707
  if (!(!n.value || !t.value)) {
705
708
  for (let t of e) if (t.value?.contains(i.target)) return;
@@ -719,7 +722,7 @@ function $e(e, t, n, r, i) {
719
722
  }
720
723
  //#endregion
721
724
  //#region src/compose/popoverPosition.ts
722
- function et(e, t, n, r) {
725
+ function $e(e, t, n, r) {
723
726
  let i = r?.gap ?? 8, a = r?.margin ?? 16, o = r?.preferAbove ?? !1, s = !1, c = !1, l;
724
727
  o ? e.top - t.height - i > n.top + a ? (l = e.top - t.height - i, s = !0) : e.bottom + t.height + i <= n.bottom - a ? l = e.bottom + i : (l = n.top + a, c = !0) : e.bottom + t.height + i > n.bottom - a && e.top - t.height - i > n.top + a ? (l = e.top - t.height - i, s = !0) : e.bottom + t.height + i > n.bottom - a && e.top - t.height - i <= n.top + a ? (l = n.top + a, c = !0) : l = e.bottom + i;
725
728
  let u = e.left + (e.width - t.width) / 2;
@@ -734,8 +737,16 @@ function et(e, t, n, r) {
734
737
  };
735
738
  }
736
739
  //#endregion
737
- //#region src/components/GPopover.vue?vue&type=script&setup=true&lang.ts
738
- var tt = { class: "g-popover-wrap" }, nt = ["id"], rt = ["aria-labelledby", "aria-label"], it = /* @__PURE__ */ u({
740
+ //#region src/components/GClientOnly.vue
741
+ var et = /* @__PURE__ */ u({
742
+ __name: "GClientOnly",
743
+ setup(e) {
744
+ let t = O(fe());
745
+ return S(() => {
746
+ t.value = !0;
747
+ }), (e, n) => t.value ? A(e.$slots, "default", { key: 0 }) : A(e.$slots, "fallback", { key: 1 });
748
+ }
749
+ }), tt = { class: "g-popover-wrap" }, nt = ["id"], rt = ["aria-labelledby", "aria-label"], it = /* @__PURE__ */ u({
739
750
  __name: "GPopover",
740
751
  props: {
741
752
  minimal: {
@@ -757,8 +768,8 @@ var tt = { class: "g-popover-wrap" }, nt = ["id"], rt = ["aria-labelledby", "ari
757
768
  K(I(d, "modelValue"), (e) => {
758
769
  p.value = e;
759
770
  });
760
- let m = H(), h = r(() => !!m.trigger), v = U("triggerRef"), b = U("popoverRef"), { isCustomElement: S } = pe(), C = S, w = B(), { push: E, pop: D, isTop: k, zIndex: j } = Ke(w, !0), { activate: M, deactivate: N } = Qe(b, k, !0);
761
- $e([b, v], k, p, F, D), K(p, (e) => {
771
+ let m = H(), h = r(() => !!m.trigger), v = U("triggerRef"), b = U("popoverRef"), { isCustomElement: S } = pe(), C = S, w = B(), { push: E, pop: D, isTop: k, zIndex: j } = Ge(w, !0), { activate: M, deactivate: N } = Ze(b, k, !0);
772
+ Qe([b, v], k, p, F, D), K(p, (e) => {
762
773
  e ? (g(() => {
763
774
  g(() => M());
764
775
  }), E(), f("show")) : (N(), D(), f("hide"));
@@ -793,7 +804,7 @@ var tt = { class: "g-popover-wrap" }, nt = ["id"], rt = ["aria-labelledby", "ari
793
804
  }, q.value = !1, W.value = !1, V.value = { left: "50%" };
794
805
  return;
795
806
  }
796
- let { top: r, left: i, xOffset: a, placedAbove: o, overlay: s } = et(n.getBoundingClientRect(), e, t, { gap: d.minimal ? 0 : 8 });
807
+ let { top: r, left: i, xOffset: a, placedAbove: o, overlay: s } = $e(n.getBoundingClientRect(), e, t, { gap: d.minimal ? 0 : 8 });
797
808
  z.value = {
798
809
  top: r,
799
810
  left: i
@@ -819,58 +830,61 @@ var tt = { class: "g-popover-wrap" }, nt = ["id"], rt = ["aria-labelledby", "ari
819
830
  ref: v,
820
831
  class: "g-popover-trigger",
821
832
  id: `${R(w)}-trigger`
822
- }, [A(r.$slots, "trigger", { toggle: L })], 8, nt)) : a("", !0), (T(), i(t, {
823
- to: "#modal-root",
824
- disabled: R(C)
825
- }, [l(n, {
826
- name: "g-popover-expand",
827
- appear: ""
828
- }, {
829
- default: J(() => [R(S) || p.value ? Y((T(), o("div", {
830
- key: 0,
831
- ref_key: "popoverRef",
832
- ref: b,
833
- class: _({
834
- "g-popover": !0,
835
- "g-popover-above": W.value,
836
- "g-popover-below": !W.value,
837
- "g-popover-minimal": e.minimal
838
- }),
839
- role: "dialog",
840
- "aria-modal": "true",
841
- "aria-labelledby": h.value ? `${R(w)}-trigger` : void 0,
842
- "aria-label": h.value ? void 0 : "Popover",
843
- style: y({
844
- top: z.value.top + "px",
845
- left: z.value.left + "px",
846
- zIndex: R(j)
847
- })
848
- }, [
849
- !q.value && !e.minimal ? (T(), o("div", {
833
+ }, [A(r.$slots, "trigger", { toggle: L })], 8, nt)) : a("", !0), l(et, null, {
834
+ default: J(() => [(T(), i(t, {
835
+ to: "#modal-root",
836
+ disabled: R(C)
837
+ }, [l(n, {
838
+ name: "g-popover-expand",
839
+ appear: ""
840
+ }, {
841
+ default: J(() => [R(S) || p.value ? Y((T(), o("div", {
850
842
  key: 0,
851
- class: _(["g-popover-arrow", { "g-popover-arrow-above": W.value }]),
852
- style: y(V.value),
853
- "aria-hidden": "true"
854
- }, null, 6)) : a("", !0),
855
- A(r.$slots, "default"),
856
- e.minimal ? a("", !0) : (T(), o("button", {
857
- key: 1,
858
- class: "g-popover-close",
859
- type: "button",
860
- "aria-label": "Close popover",
861
- onClick: F
862
- }, [...c[0] ||= [s("svg", {
863
- class: "g-popover-close-icon",
864
- xmlns: "http://www.w3.org/2000/svg",
865
- viewBox: "0 0 51.26 51.26",
866
- "aria-hidden": "true"
867
- }, [s("path", {
868
- fill: "currentColor",
869
- 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"
870
- })], -1)]]))
871
- ], 14, rt)), [[G, p.value]]) : a("", !0)]),
843
+ ref_key: "popoverRef",
844
+ ref: b,
845
+ class: _({
846
+ "g-popover": !0,
847
+ "g-popover-above": W.value,
848
+ "g-popover-below": !W.value,
849
+ "g-popover-minimal": e.minimal
850
+ }),
851
+ role: "dialog",
852
+ "aria-modal": "true",
853
+ "aria-labelledby": h.value ? `${R(w)}-trigger` : void 0,
854
+ "aria-label": h.value ? void 0 : "Popover",
855
+ style: y({
856
+ top: z.value.top + "px",
857
+ left: z.value.left + "px",
858
+ zIndex: R(j)
859
+ })
860
+ }, [
861
+ !q.value && !e.minimal ? (T(), o("div", {
862
+ key: 0,
863
+ class: _(["g-popover-arrow", { "g-popover-arrow-above": W.value }]),
864
+ style: y(V.value),
865
+ "aria-hidden": "true"
866
+ }, null, 6)) : a("", !0),
867
+ A(r.$slots, "default"),
868
+ e.minimal ? a("", !0) : (T(), o("button", {
869
+ key: 1,
870
+ class: "g-popover-close",
871
+ type: "button",
872
+ "aria-label": "Close popover",
873
+ onClick: F
874
+ }, [...c[0] ||= [s("svg", {
875
+ class: "g-popover-close-icon",
876
+ xmlns: "http://www.w3.org/2000/svg",
877
+ viewBox: "0 0 51.26 51.26",
878
+ "aria-hidden": "true"
879
+ }, [s("path", {
880
+ fill: "currentColor",
881
+ 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"
882
+ })], -1)]]))
883
+ ], 14, rt)), [[G, p.value]]) : a("", !0)]),
884
+ _: 3
885
+ })], 8, ["disabled"]))]),
872
886
  _: 3
873
- })], 8, ["disabled"]))]));
887
+ })]));
874
888
  }
875
889
  }), at = 1;
876
890
  function ot(e = "v-gtooltip") {
@@ -890,15 +904,15 @@ function lt(e) {
890
904
  (document.getElementById("modal-root") ?? document.body).appendChild(e);
891
905
  }
892
906
  function ut(e, t) {
893
- let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), { top: i, left: a, placedAbove: o } = et(n, r, new DOMRect(0, 0, window.innerWidth, window.innerHeight), {
907
+ let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), { top: i, left: a, placedAbove: o } = $e(n, r, new DOMRect(0, 0, window.innerWidth, window.innerHeight), {
894
908
  gap: 8,
895
909
  margin: 8,
896
910
  preferAbove: !0
897
911
  }), s = (n.left + n.width / 2 - a) / r.width * 100;
898
- t.style.setProperty("--v-gtooltip-arrow-x", `${s}%`), t.classList.remove("v-gtooltip-bottom"), o || t.classList.add("v-gtooltip-bottom"), t.style.left = `${a}px`, t.style.top = `${i}px`, t.style.zIndex = `${Je()}`, t.style.opacity = "1";
912
+ t.style.setProperty("--v-gtooltip-arrow-x", `${s}%`), t.classList.remove("v-gtooltip-bottom"), o || t.classList.add("v-gtooltip-bottom"), t.style.left = `${a}px`, t.style.top = `${i}px`, t.style.zIndex = `${qe()}`, t.style.visibility = "visible", t.style.opacity = "1";
899
913
  }
900
914
  function dt(e) {
901
- e.style.opacity = "0";
915
+ e.style.opacity = "0", e.style.visibility = "hidden";
902
916
  }
903
917
  //#endregion
904
918
  //#region src/components/GTooltip.vue
@@ -1058,7 +1072,7 @@ var ft = /* @__PURE__ */ u({
1058
1072
  }, null, 40, _t), s("label", {
1059
1073
  for: `${R(f)}-${t.value}`,
1060
1074
  class: _(v(t.value === d.value))
1061
- }, P(t.label), 11, vt)], 64))), 128))]), l(je, {
1075
+ }, P(t.label), 11, vt)], 64))), 128))]), l(Ae, {
1062
1076
  errors: R(p),
1063
1077
  id: "error-message-" + R(f)
1064
1078
  }, null, 8, ["errors", "id"])], 2)], 10, pt));
@@ -1155,11 +1169,11 @@ var ft = /* @__PURE__ */ u({
1155
1169
  },
1156
1170
  emits: ["cancel", "confirm"],
1157
1171
  setup(e, { emit: r }) {
1158
- let a = e, o = r, u = O(null), d = O(!0), f = B(), { pop: p, push: m, isTop: h, zIndex: g } = Ke(f, !0, !0), { deactivate: _, activate: v } = Qe(u, h);
1172
+ let a = e, o = r, u = O(null), d = O(!0), f = B(), { pop: p, push: m, isTop: h, zIndex: g } = Ge(f, !0, !0), { deactivate: _, activate: v } = Ze(u, h);
1159
1173
  function x() {
1160
1174
  o("cancel");
1161
1175
  }
1162
- return $e([u], h, d, x, p), S(() => {
1176
+ return Qe([u], h, d, x, p), S(() => {
1163
1177
  m(), v();
1164
1178
  }), b(() => {
1165
1179
  p(), _();
@@ -1213,7 +1227,7 @@ function jt(e) {
1213
1227
  } : e);
1214
1228
  }
1215
1229
  function Mt({ open: e, anchorRef: t, listboxRef: n, baseId: i, activeIndex: a }) {
1216
- let { push: o, pop: s, isTop: c } = Ke(i), l = O("below"), u = O(null), d = r(() => {
1230
+ let { push: o, pop: s, isTop: c } = Ge(i), l = O("below"), u = O(null), d = r(() => {
1217
1231
  let e = {};
1218
1232
  return u.value !== null && (e.maxHeight = `${u.value}px`), l.value === "above" ? (e.top = "auto", e.bottom = "100%") : (e.top = "100%", e.bottom = "auto"), e;
1219
1233
  });
@@ -1556,7 +1570,7 @@ var Nt = ["id"], Pt = {
1556
1570
  selected: e.value === d.value,
1557
1571
  index: t
1558
1572
  }, () => [c(P(e.label), 1)])], 42, Bt))), 128)) : (T(), o("div", Vt, " No results found. "))], 16, zt), [[G, y.value]])]),
1559
- l(je, {
1573
+ l(Ae, {
1560
1574
  errors: R(C),
1561
1575
  id: "error-message-" + R(f)
1562
1576
  }, null, 8, ["errors", "id"])
@@ -2071,7 +2085,7 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
2071
2085
  xmlns: "http://www.w3.org/2000/svg",
2072
2086
  viewBox: "0 0 640 640",
2073
2087
  height: "1.125rem",
2074
- role: "none presentation"
2088
+ role: "none"
2075
2089
  }, [s("path", {
2076
2090
  fill: "currentColor",
2077
2091
  d: "M480 400L288 400C279.2 400 272 392.8 272 384L272 128C272 119.2 279.2 112 288 112L421.5 112C425.7 112 429.8 113.7 432.8 116.7L491.3 175.2C494.3 178.2 496 182.3 496 186.5L496 384C496 392.8 488.8 400 480 400zM288 448L480 448C515.3 448 544 419.3 544 384L544 186.5C544 169.5 537.3 153.2 525.3 141.2L466.7 82.7C454.7 70.7 438.5 64 421.5 64L288 64C252.7 64 224 92.7 224 128L224 384C224 419.3 252.7 448 288 448zM160 192C124.7 192 96 220.7 96 256L96 512C96 547.3 124.7 576 160 576L352 576C387.3 576 416 547.3 416 512L416 496L368 496L368 512C368 520.8 360.8 528 352 528L160 528C151.2 528 144 520.8 144 512L144 256C144 247.2 151.2 240 160 240L176 240L176 192L160 192z"
@@ -2302,6 +2316,7 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
2302
2316
  "onChange",
2303
2317
  "aria-labelledby",
2304
2318
  "aria-invalid",
2319
+ "aria-errormessage",
2305
2320
  "name"
2306
2321
  ], Xn = ["value"], Zn = [
2307
2322
  "value",
@@ -2428,6 +2443,7 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
2428
2443
  onChange: (e) => g(e, n, r),
2429
2444
  "aria-labelledby": v(n, r),
2430
2445
  "aria-invalid": S(n, r),
2446
+ "aria-errormessage": S(n, r) ? `${t.tableId}-error-${n.key}-${String(r.key)}` : void 0,
2431
2447
  name: `row-${n.key}-${String(r.key)}-select`,
2432
2448
  class: "editable-input editable-select"
2433
2449
  }, [(T(!0), o(e, null, k(r.editable.options, (e) => (T(), o("option", {
@@ -2636,7 +2652,8 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
2636
2652
  class: _(["g-multiselect-control", { "g-multiselect-control--disabled": t.disabled }]),
2637
2653
  onClick: K
2638
2654
  }, [
2639
- s("ul", {
2655
+ d.value.length ? (T(), o("ul", {
2656
+ key: 0,
2640
2657
  class: "g-multiselect-chips",
2641
2658
  "aria-labelledby": ie.value
2642
2659
  }, [(T(!0), o(e, null, k(d.value, (e) => (T(), o("li", {
@@ -2653,11 +2670,11 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
2653
2670
  xmlns: "http://www.w3.org/2000/svg",
2654
2671
  viewBox: "0 0 51.26 51.26",
2655
2672
  width: "1em",
2656
- role: "none presentation"
2673
+ role: "none"
2657
2674
  }, [s("path", {
2658
2675
  fill: "currentColor",
2659
2676
  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"
2660
- })], -1)]], 40, or)]))), 128))], 8, ir),
2677
+ })], -1)]], 40, or)]))), 128))], 8, ir)) : a("", !0),
2661
2678
  s("input", h({
2662
2679
  ref_key: "inputRef",
2663
2680
  ref: p,
@@ -2715,7 +2732,7 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
2715
2732
  onClick: (e) => U(t)
2716
2733
  }, [s("span", ur, [F(e.value) ? (T(), o("svg", dr, [...r[1] ||= [s("path", { d: "M530.8 134.1C545.1 144.5 548.3 164.5 537.9 178.8L281.9 530.8C276.4 538.4 267.9 543.1 258.5 543.9C249.1 544.7 240 541.2 233.4 534.6L105.4 406.6C92.9 394.1 92.9 373.8 105.4 361.3C117.9 348.8 138.2 348.8 150.7 361.3L252.2 462.8L486.2 141.1C496.6 126.8 516.6 123.6 530.9 134z" }, null, -1)]])) : a("", !0)]), c(" " + P(e.label), 1)], 42, lr))), 128)) : (T(), o("div", fr, " No results found. "))], 16, cr), [[G, y.value]])
2717
2734
  ], 2),
2718
- l(je, {
2735
+ l(Ae, {
2719
2736
  errors: R(C),
2720
2737
  id: oe.value
2721
2738
  }, null, 8, ["errors", "id"])
@@ -3236,11 +3253,11 @@ var br = { class: "g-table-outer-wrap" }, xr = {
3236
3253
  },
3237
3254
  emits: ["close"],
3238
3255
  setup(e, { emit: c }) {
3239
- let u = e, d = c, f = U("dialog"), p = O(!0), m = B(), { pop: g, push: _, isTop: v, zIndex: y } = Ke(m, !0, !0), { deactivate: x, activate: C } = Qe(f, v);
3256
+ let u = e, d = c, f = U("dialog"), p = O(!0), m = B(), { pop: g, push: _, isTop: v, zIndex: y } = Ge(m, !0, !0), { deactivate: x, activate: C } = Ze(f, v);
3240
3257
  function w() {
3241
3258
  d("close");
3242
3259
  }
3243
- $e([f], v, p, w, g), S(() => {
3260
+ Qe([f], v, p, w, g), S(() => {
3244
3261
  _(), C();
3245
3262
  }), b(() => {
3246
3263
  g(), x();
@@ -3355,7 +3372,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
3355
3372
  }, yi = /* @__PURE__ */ u({
3356
3373
  __name: "GOverlay",
3357
3374
  setup(e) {
3358
- let { hasScrollLock: t } = qe();
3375
+ let { hasScrollLock: t } = Ke();
3359
3376
  return (e, r) => (T(), i(n, { name: "g-fade" }, {
3360
3377
  default: J(() => [R(t) ? (T(), o("div", vi)) : a("", !0)]),
3361
3378
  _: 1
@@ -3437,13 +3454,13 @@ var br = { class: "g-table-outer-wrap" }, xr = {
3437
3454
  }, {
3438
3455
  default: J(() => [
3439
3456
  r[0] ||= s("span", { class: "g-calendar-icon" }, [s("svg", {
3440
- role: "none presentation",
3457
+ role: "none",
3441
3458
  xmlns: "http://www.w3.org/2000/svg",
3442
3459
  viewBox: "0 0 640 640"
3443
3460
  }, [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),
3444
3461
  s("span", Ti, P(t.value?.name) + " " + P(t.value?.year), 1),
3445
3462
  r[1] ||= s("span", { class: "g-caret" }, [s("svg", {
3446
- role: "none presentation",
3463
+ role: "none",
3447
3464
  xmlns: "http://www.w3.org/2000/svg",
3448
3465
  viewBox: "0 0 640 640"
3449
3466
  }, [s("path", { d: "M300.3 440.8C312.9 451 331.4 450.3 343.1 438.6L471.1 310.6C480.3 301.4 483 287.7 478 275.7C473 263.7 461.4 256 448.5 256L192.5 256C179.6 256 167.9 263.8 162.9 275.8C157.9 287.8 160.7 301.5 169.9 310.6L297.9 438.6L300.3 440.8z" })])], -1)
@@ -3520,7 +3537,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
3520
3537
  emits: ["update:modelValue"],
3521
3538
  setup(e) {
3522
3539
  let t = e, n = V(e, "modelValue");
3523
- return (e, r) => (T(), i(Re, h({
3540
+ return (e, r) => (T(), i(Le, h({
3524
3541
  modelValue: n.value,
3525
3542
  "onUpdate:modelValue": r[0] ||= (e) => n.value = e,
3526
3543
  name: t.name,
@@ -3570,7 +3587,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
3570
3587
  emits: ["update:modelValue"],
3571
3588
  setup(e) {
3572
3589
  let t = V(e, "modelValue");
3573
- return (n, r) => (T(), i(Re, h({
3590
+ return (n, r) => (T(), i(Le, h({
3574
3591
  modelValue: t.value,
3575
3592
  "onUpdate:modelValue": r[0] ||= (e) => t.value = e,
3576
3593
  name: e.name,
@@ -3692,12 +3709,12 @@ var br = { class: "g-table-outer-wrap" }, xr = {
3692
3709
  class: "g-file-input-pill"
3693
3710
  }, [r[0] ||= s("svg", {
3694
3711
  class: "g-file-input-pill-icon",
3695
- role: "none presentation",
3712
+ role: "none",
3696
3713
  xmlns: "http://www.w3.org/2000/svg",
3697
3714
  viewBox: "0 0 640 640"
3698
3715
  }, [s("path", { d: "M192 64C156.7 64 128 92.7 128 128L128 512C128 547.3 156.7 576 192 576L448 576C483.3 576 512 547.3 512 512L512 234.5C512 217.5 505.3 201.2 493.3 189.2L386.7 82.7C374.7 70.7 358.5 64 341.5 64L192 64zM453.5 240L360 240C346.7 240 336 229.3 336 216L336 122.5L453.5 240z" })], -1), c(" " + P(e), 1)]))), 128))])) : a("", !0)
3699
3716
  ], 2),
3700
- l(je, {
3717
+ l(Ae, {
3701
3718
  errors: v.value,
3702
3719
  id: "error-message-" + R(d)
3703
3720
  }, null, 8, ["errors", "id"])
@@ -3727,7 +3744,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
3727
3744
  emits: ["update:modelValue"],
3728
3745
  setup(e) {
3729
3746
  let t = e, n = V(e, "modelValue");
3730
- return (e, r) => (T(), i(Re, h({
3747
+ return (e, r) => (T(), i(Le, h({
3731
3748
  modelValue: n.value,
3732
3749
  "onUpdate:modelValue": r[0] ||= (e) => n.value = e,
3733
3750
  name: t.name,
@@ -3851,7 +3868,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
3851
3868
  }),
3852
3869
  emits: /*@__PURE__*/ m(["submit"], ["update:modelValue"]),
3853
3870
  setup(e, { emit: t }) {
3854
- let n = e, r = V(e, "modelValue"), i = t, a = p("form", null), s = a ?? (fe() ? ke(n.formKey) : De());
3871
+ let n = e, r = V(e, "modelValue"), i = t, a = p("form", null), s = a ?? (fe() ? Oe(n.formKey) : Ee());
3855
3872
  a || E("form", s), K(() => s.values.value, (e) => {
3856
3873
  r.value = { ...e };
3857
3874
  }, { deep: !0 }), K(() => r.value, (e) => {
@@ -3893,7 +3910,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
3893
3910
  formKey: { default: "default" }
3894
3911
  },
3895
3912
  setup(e) {
3896
- let t = e, n = z(), a = typeof n["form-key"] == "string" ? n["form-key"] : void 0, o = t.formKey || a || "default", l = p("form", null) ?? (fe() ? ke(o) : null), u = r(() => t.disabled || (l?.isSubmitting.value ?? !1)), d = r(() => l?.isSubmitting.value ?? !1);
3913
+ let t = e, n = z(), a = typeof n["form-key"] == "string" ? n["form-key"] : void 0, o = t.formKey || a || "default", l = p("form", null) ?? (fe() ? Oe(o) : null), u = r(() => t.disabled || (l?.isSubmitting.value ?? !1)), d = r(() => l?.isSubmitting.value ?? !1);
3897
3914
  return (e, n) => (T(), i(Q, {
3898
3915
  type: "submit",
3899
3916
  disabled: u.value,
@@ -3982,7 +3999,6 @@ var br = { class: "g-table-outer-wrap" }, xr = {
3982
3999
  let n = [];
3983
4000
  return !u.radio && u.instructions && n.push(S.value), e.hint && n.push(E(t)), u.radio ? { "aria-describedby": n.length ? n.join(" ") : void 0 } : {
3984
4001
  "aria-describedby": n.length ? n.join(" ") : void 0,
3985
- "aria-required": u.required && u.options.length > 1 ? "true" : void 0,
3986
4002
  "aria-invalid": m.value ? "true" : "false",
3987
4003
  "aria-errormessage": m.value ? x.value : void 0
3988
4004
  };
@@ -4015,7 +4031,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
4015
4031
  id: E(n),
4016
4032
  class: "g-checkbox-group__hint"
4017
4033
  }, P(e.hint), 9, ca)) : a("", !0)], 2))), 128))]),
4018
- l(je, {
4034
+ l(Ae, {
4019
4035
  errors: R(p),
4020
4036
  id: x.value
4021
4037
  }, null, 8, ["errors", "id"])
@@ -4141,7 +4157,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
4141
4157
  onPaste: D
4142
4158
  }), null, 16, pa),
4143
4159
  n.maxlength === void 0 ? a("", !0) : (T(), o("div", ma, P((i.value ?? "").length) + " / " + P(n.maxlength), 1)),
4144
- l(je, {
4160
+ l(Ae, {
4145
4161
  errors: R(v),
4146
4162
  id: "error-message-" + R(u)
4147
4163
  }, null, 8, ["errors", "id"])
@@ -4314,6 +4330,6 @@ function va() {
4314
4330
  };
4315
4331
  }
4316
4332
  //#endregion
4317
- export { $, er as A, Qt as B, gr as C, vr as D, hr as E, gn as F, ft as G, At as H, fn as I, $e as J, it as K, un as L, wn as M, yn as N, yr as O, _n as P, Re as Q, ln as R, Jr as S, _r as T, wt as U, Ht as V, yt as W, Ke as X, Qe as Y, qe as Z, _i as _, la as a, Q as at, li as b, Yi as c, Pi as d, ke as et, Ni as f, yi as g, Ci as h, ha as i, be as it, zn as j, pr as k, Hi as l, Di as m, _a as n, Ee as nt, Qi as o, Mi as p, et as q, ga as r, xe as rt, Zi as s, va as t, De as tt, Vi as u, pi as v, mr as w, ri as x, fi as y, on as z };
4333
+ export { $, er as A, Qt as B, gr as C, vr as D, hr as E, gn as F, ft as G, At as H, fn as I, Qe as J, it as K, un as L, wn as M, yn as N, yr as O, _n as P, Le as Q, ln as R, Jr as S, _r as T, wt as U, Ht as V, yt as W, Ge as X, Ze as Y, Ke as Z, _i as _, la as a, Q as at, li as b, Yi as c, Pi as d, Oe as et, Ni as f, yi as g, Ci as h, ha as i, be as it, zn as j, pr as k, Hi as l, Di as m, _a as n, Te as nt, Qi as o, Mi as p, $e as q, ga as r, xe as rt, Zi as s, va as t, Ee as tt, Vi as u, pi as v, mr as w, ri as x, fi as y, on as z };
4318
4334
 
4319
- //# sourceMappingURL=grad-vue-sy7R1DvD.js.map
4335
+ //# sourceMappingURL=grad-vue-85A5znlz.js.map