@illinois-grad/grad-vue 3.0.13 → 3.0.14

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.
@@ -2216,7 +2216,10 @@ function da(e, i) {
2216
2216
  }
2217
2217
  }
2218
2218
  }, D = (e, t, n, r, i, a, o, s, c = 0) => {
2219
- for (let l = c; l < e.length; l++) v(null, e[l] = s ? za(e[l]) : Ra(e[l]), t, n, r, i, a, o, s);
2219
+ for (let l = c; l < e.length; l++) {
2220
+ let c = e[l] = s ? za(e[l]) : Ra(e[l]);
2221
+ v(null, c, t, n, r, i, a, o, s);
2222
+ }
2220
2223
  }, te = (e, n, r, i, a, o, s) => {
2221
2224
  let l = n.el = e.el, { patchFlag: u, dynamicChildren: d, dirs: f } = n;
2222
2225
  u |= e.patchFlag & 16;
@@ -2237,8 +2240,8 @@ function da(e, i) {
2237
2240
  }, i);
2238
2241
  }, O = (e, t, n, r, i, a, o) => {
2239
2242
  for (let s = 0; s < t.length; s++) {
2240
- let c = e[s], l = t[s];
2241
- v(c, l, c.el && (c.type === W || !Ma(c, l) || c.shapeFlag & 198) ? m(c.el) : n, null, r, i, a, o, !0);
2243
+ let c = e[s], l = t[s], u = c.el && (c.type === W || !Ma(c, l) || c.shapeFlag & 198) ? m(c.el) : n;
2244
+ v(c, l, u, null, r, i, a, o, !0);
2242
2245
  }
2243
2246
  }, ne = (e, n, r, i, a) => {
2244
2247
  if (n !== r) {
@@ -4031,6 +4034,7 @@ var Xc = [
4031
4034
  "select:not([inert]):not([inert] *)",
4032
4035
  "textarea:not([inert]):not([inert] *)",
4033
4036
  "a[href]:not([inert]):not([inert] *)",
4037
+ "area[href]:not([inert]):not([inert] *)",
4034
4038
  "button:not([inert]):not([inert] *)",
4035
4039
  "[tabindex]:not(slot):not([inert]):not([inert] *)",
4036
4040
  "audio[controls]:not([inert]):not([inert] *)",
@@ -4134,17 +4138,18 @@ var Xc = [
4134
4138
  visibilityProperty: !0,
4135
4139
  checkVisibilityCSS: !0
4136
4140
  });
4137
- if (getComputedStyle(e).visibility === "hidden") return !0;
4138
- var i = $c.call(e, "details>summary:first-of-type") ? e.parentElement : e;
4139
- if ($c.call(i, "details:not([open]) *")) return !0;
4141
+ var i = getComputedStyle(e).visibility;
4142
+ if (i === "hidden" || i === "collapse") return !0;
4143
+ var a = $c.call(e, "details>summary:first-of-type") ? e.parentElement : e;
4144
+ if ($c.call(a, "details:not([open]) *")) return !0;
4140
4145
  if (!n || n === "full" || n === "full-native" || n === "legacy-full") {
4141
4146
  if (typeof r == "function") {
4142
- for (var a = e; e;) {
4143
- var o = e.parentElement, s = el(e);
4144
- if (o && !o.shadowRoot && r(o) === !0) return _l(e);
4145
- e = e.assignedSlot ? e.assignedSlot : !o && s !== e.ownerDocument ? s.host : o;
4147
+ for (var o = e; e;) {
4148
+ var s = e.parentElement, c = el(e);
4149
+ if (s && !s.shadowRoot && r(s) === !0) return _l(e);
4150
+ e = e.assignedSlot ? e.assignedSlot : !s && c !== e.ownerDocument ? c.host : s;
4146
4151
  }
4147
- e = a;
4152
+ e = o;
4148
4153
  }
4149
4154
  if (gl(e)) return !e.getClientRects().length;
4150
4155
  if (n !== "legacy-full") return !0;
@@ -4357,6 +4362,7 @@ var Vl = {
4357
4362
  returnFocusOnDeactivate: !0,
4358
4363
  escapeDeactivates: !0,
4359
4364
  delayInitialFocus: !0,
4365
+ delayReturnFocus: !0,
4360
4366
  isolateSubtrees: !1,
4361
4367
  isKeyForward: Gl,
4362
4368
  isKeyBackward: Kl
@@ -4399,18 +4405,23 @@ var Vl = {
4399
4405
  if (!l && !a) throw Error(`\`${e}\` as selector refers to no known node`);
4400
4406
  }
4401
4407
  return l;
4402
- }, u = function() {
4408
+ }, u = function(e) {
4409
+ var t = e.activeElement;
4410
+ return t ? t.shadowRoot && t.shadowRoot.activeElement !== null ? u(t.shadowRoot) : t : null;
4411
+ }, d = function() {
4403
4412
  var e = l("initialFocus", { hasFallback: !0 });
4404
4413
  if (e === !1) return !1;
4405
- if (e === void 0 || e && !Ol(e, i.tabbableOptions)) if (c(n.activeElement) >= 0) e = n.activeElement;
4406
- else {
4407
- var t = a.tabbableGroups[0];
4408
- e = t && t.firstTabbableNode || l("fallbackFocus");
4409
- }
4410
- else e === null && (e = l("fallbackFocus"));
4414
+ if (e === void 0 || e && !Ol(e, i.tabbableOptions)) {
4415
+ var t = u(n);
4416
+ if (c(t) >= 0) e = t;
4417
+ else {
4418
+ var r = a.tabbableGroups[0];
4419
+ e = r && r.firstTabbableNode || l("fallbackFocus");
4420
+ }
4421
+ } else e === null && (e = l("fallbackFocus"));
4411
4422
  if (!e) throw Error("Your focus-trap needs to have at least one focusable element");
4412
4423
  return e;
4413
- }, d = function() {
4424
+ }, f = function() {
4414
4425
  if (a.containerGroups = a.containers.map(function(e) {
4415
4426
  var t = wl(e, i.tabbableOptions), n = Tl(e, i.tabbableOptions), r = t.length > 0 ? t[0] : void 0, a = t.length > 0 ? t[t.length - 1] : void 0, o = n.find(function(e) {
4416
4427
  return El(e);
@@ -4443,13 +4454,10 @@ var Vl = {
4443
4454
  if (a.containerGroups.find(function(e) {
4444
4455
  return e.posTabIndexesFound;
4445
4456
  }) && a.containerGroups.length > 1) throw Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
4446
- }, f = function(e) {
4447
- var t = e.activeElement;
4448
- if (t) return t.shadowRoot && t.shadowRoot.activeElement !== null ? f(t.shadowRoot) : t;
4449
4457
  }, p = function(e) {
4450
- if (e !== !1 && e !== f(document)) {
4458
+ if (e !== !1 && e !== u(document)) {
4451
4459
  if (!e || !e.focus) {
4452
- p(u());
4460
+ p(d());
4453
4461
  return;
4454
4462
  }
4455
4463
  e.focus({ preventScroll: !!i.preventScroll }), a.mostRecentlyFocusedNode = e, Hl(e) && e.select();
@@ -4459,29 +4467,29 @@ var Vl = {
4459
4467
  return t || (t === !1 ? !1 : e);
4460
4468
  }, h = function(e) {
4461
4469
  var t = e.target, n = e.event, r = e.isBackward, o = r === void 0 ? !1 : r;
4462
- t ||= Yl(n), d();
4470
+ t ||= Yl(n), f();
4463
4471
  var s = null;
4464
4472
  if (a.tabbableGroups.length > 0) {
4465
- var u = c(t, n), f = u >= 0 ? a.containerGroups[u] : void 0;
4473
+ var u = c(t, n), d = u >= 0 ? a.containerGroups[u] : void 0;
4466
4474
  if (u < 0) s = o ? a.tabbableGroups[a.tabbableGroups.length - 1].lastTabbableNode : a.tabbableGroups[0].firstTabbableNode;
4467
4475
  else if (o) {
4468
4476
  var p = a.tabbableGroups.findIndex(function(e) {
4469
4477
  var n = e.firstTabbableNode;
4470
4478
  return t === n;
4471
4479
  });
4472
- if (p < 0 && (f.container === t || Ol(t, i.tabbableOptions) && !El(t, i.tabbableOptions) && !f.nextTabbableNode(t, !1)) && (p = u), p >= 0) {
4480
+ if (p < 0 && (d.container === t || Ol(t, i.tabbableOptions) && !El(t, i.tabbableOptions) && !d.nextTabbableNode(t, !1)) && (p = u), p >= 0) {
4473
4481
  var m = p === 0 ? a.tabbableGroups.length - 1 : p - 1, h = a.tabbableGroups[m];
4474
4482
  s = ol(t) >= 0 ? h.lastTabbableNode : h.lastDomTabbableNode;
4475
- } else Wl(n) || (s = f.nextTabbableNode(t, !1));
4483
+ } else Wl(n) || (s = d.nextTabbableNode(t, !1));
4476
4484
  } else {
4477
4485
  var g = a.tabbableGroups.findIndex(function(e) {
4478
4486
  var n = e.lastTabbableNode;
4479
4487
  return t === n;
4480
4488
  });
4481
- if (g < 0 && (f.container === t || Ol(t, i.tabbableOptions) && !El(t, i.tabbableOptions) && !f.nextTabbableNode(t)) && (g = u), g >= 0) {
4489
+ if (g < 0 && (d.container === t || Ol(t, i.tabbableOptions) && !El(t, i.tabbableOptions) && !d.nextTabbableNode(t)) && (g = u), g >= 0) {
4482
4490
  var _ = g === a.tabbableGroups.length - 1 ? 0 : g + 1, v = a.tabbableGroups[_];
4483
4491
  s = ol(t) >= 0 ? v.firstTabbableNode : v.firstDomTabbableNode;
4484
- } else Wl(n) || (s = f.nextTabbableNode(t));
4492
+ } else Wl(n) || (s = d.nextTabbableNode(t));
4485
4493
  }
4486
4494
  } else s = l("fallbackFocus");
4487
4495
  return s;
@@ -4502,10 +4510,10 @@ var Vl = {
4502
4510
  if (a.mostRecentlyFocusedNode) if (ol(a.mostRecentlyFocusedNode) > 0) {
4503
4511
  var s = c(a.mostRecentlyFocusedNode), l = a.containerGroups[s].tabbableNodes;
4504
4512
  if (l.length > 0) {
4505
- var d = l.findIndex(function(e) {
4513
+ var u = l.findIndex(function(e) {
4506
4514
  return e === a.mostRecentlyFocusedNode;
4507
4515
  });
4508
- d >= 0 && (i.isKeyForward(a.recentNavEvent) ? d + 1 < l.length && (r = l[d + 1], o = !1) : d - 1 >= 0 && (r = l[d - 1], o = !1));
4516
+ u >= 0 && (i.isKeyForward(a.recentNavEvent) ? u + 1 < l.length && (r = l[u + 1], o = !1) : u - 1 >= 0 && (r = l[u - 1], o = !1));
4509
4517
  }
4510
4518
  } else a.containerGroups.some(function(e) {
4511
4519
  return e.tabbableNodes.some(function(e) {
@@ -4516,7 +4524,7 @@ var Vl = {
4516
4524
  o && (r = h({
4517
4525
  target: a.mostRecentlyFocusedNode,
4518
4526
  isBackward: i.isKeyBackward(a.recentNavEvent)
4519
- })), p(r || a.mostRecentlyFocusedNode || u());
4527
+ })), p(r || a.mostRecentlyFocusedNode || d());
4520
4528
  }
4521
4529
  a.recentNavEvent = void 0;
4522
4530
  }, v = function(e) {
@@ -4534,21 +4542,27 @@ var Vl = {
4534
4542
  }, x = function(e) {
4535
4543
  c(Yl(e), e) >= 0 || Jl(i.clickOutsideDeactivates, e) || Jl(i.allowOutsideClick, e) || (e.preventDefault(), e.stopImmediatePropagation());
4536
4544
  }, S = function() {
4537
- if (a.active) return Vl.activateTrap(r, o), a.delayInitialFocusTimer = i.delayInitialFocus ? ql(function() {
4538
- p(u());
4539
- }) : p(u()), n.addEventListener("focusin", _, !0), n.addEventListener("mousedown", g, {
4540
- capture: !0,
4541
- passive: !1
4542
- }), n.addEventListener("touchstart", g, {
4543
- capture: !0,
4544
- passive: !1
4545
- }), n.addEventListener("click", x, {
4546
- capture: !0,
4547
- passive: !1
4548
- }), n.addEventListener("keydown", y, {
4549
- capture: !0,
4550
- passive: !1
4551
- }), n.addEventListener("keydown", b), o;
4545
+ if (a.active) {
4546
+ Vl.activateTrap(r, o);
4547
+ var e;
4548
+ return i.delayInitialFocus ? e = new Promise(function(e) {
4549
+ a.delayInitialFocusTimer = ql(function() {
4550
+ p(d()), e();
4551
+ });
4552
+ }) : p(d()), n.addEventListener("focusin", _, !0), n.addEventListener("mousedown", g, {
4553
+ capture: !0,
4554
+ passive: !1
4555
+ }), n.addEventListener("touchstart", g, {
4556
+ capture: !0,
4557
+ passive: !1
4558
+ }), n.addEventListener("click", x, {
4559
+ capture: !0,
4560
+ passive: !1
4561
+ }), n.addEventListener("keydown", y, {
4562
+ capture: !0,
4563
+ passive: !1
4564
+ }), n.addEventListener("keydown", b), e;
4565
+ }
4552
4566
  }, C = function(e) {
4553
4567
  a.active && !a.paused && o._setSubtreeIsolation(!1), a.adjacentElements.clear(), a.alreadySilent.clear();
4554
4568
  var t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = jl(e), i;
@@ -4585,11 +4599,14 @@ var Vl = {
4585
4599
  }, w = function() {
4586
4600
  if (a.active) return n.removeEventListener("focusin", _, !0), n.removeEventListener("mousedown", g, !0), n.removeEventListener("touchstart", g, !0), n.removeEventListener("click", x, !0), n.removeEventListener("keydown", y, !0), n.removeEventListener("keydown", b), o;
4587
4601
  }, T = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(function(e) {
4588
- e.some(function(e) {
4602
+ var t = a.mostRecentlyFocusedNode;
4603
+ t && e.some(function(e) {
4589
4604
  return Array.from(e.removedNodes).some(function(e) {
4590
- return e === a.mostRecentlyFocusedNode;
4605
+ return e === t || typeof e.contains == "function" && e.contains(t);
4591
4606
  });
4592
- }) && p(u());
4607
+ }) && a.containers.some(function(e) {
4608
+ return e?.isConnected;
4609
+ }) && (f(), p(d()));
4593
4610
  }) : void 0, E = function() {
4594
4611
  T && (T.disconnect(), a.active && !a.paused && a.containers.map(function(e) {
4595
4612
  T.observe(e, {
@@ -4607,22 +4624,26 @@ var Vl = {
4607
4624
  },
4608
4625
  activate: function(e) {
4609
4626
  if (a.active) return this;
4610
- var t = s(e, "onActivate"), c = s(e, "onPostActivate"), l = s(e, "checkCanFocusTrap"), u = Vl.getActiveTrap(r), p = !1;
4611
- if (u && !u.paused) {
4612
- var m;
4613
- (m = u._setSubtreeIsolation) == null || m.call(u, !1), p = !0;
4627
+ var t = s(e, "onActivate"), i = s(e, "onPostActivate"), c = s(e, "checkCanFocusTrap"), l = Vl.getActiveTrap(r), d = !1;
4628
+ if (l && !l.paused) {
4629
+ var p;
4630
+ (p = l._setSubtreeIsolation) == null || p.call(l, !1), d = !0;
4614
4631
  }
4615
4632
  try {
4616
- l || d(), a.active = !0, a.paused = !1, a.nodeFocusedBeforeActivation = f(n), t?.();
4617
- var h = function() {
4618
- l && d(), S(), E(), i.isolateSubtrees && o._setSubtreeIsolation(!0), c?.();
4633
+ c || f(), a.active = !0, a.paused = !1, a.nodeFocusedBeforeActivation = u(n), t?.({ trap: o });
4634
+ var m = function() {
4635
+ c && f();
4636
+ var e = function() {
4637
+ o._setSubtreeIsolation(!0), E(), i?.({ trap: o });
4638
+ }, t = S();
4639
+ t ? t.then(e) : e();
4619
4640
  };
4620
- if (l) return l(a.containers.concat()).then(h, h), this;
4621
- h();
4641
+ if (c) return c(a.containers.concat()).then(m, m), this;
4642
+ m();
4622
4643
  } catch (e) {
4623
- if (u === Vl.getActiveTrap(r) && p) {
4624
- var g;
4625
- (g = u._setSubtreeIsolation) == null || g.call(u, !0);
4644
+ if (l === Vl.getActiveTrap(r) && d) {
4645
+ var h;
4646
+ (h = l._setSubtreeIsolation) == null || h.call(l, !0);
4626
4647
  }
4627
4648
  throw e;
4628
4649
  }
@@ -4636,14 +4657,14 @@ var Vl = {
4636
4657
  checkCanReturnFocus: i.checkCanReturnFocus
4637
4658
  }, e);
4638
4659
  clearTimeout(a.delayInitialFocusTimer), a.delayInitialFocusTimer = void 0, a.paused || o._setSubtreeIsolation(!1), a.alreadySilent.clear(), w(), a.active = !1, a.paused = !1, E(), Vl.deactivateTrap(r, o);
4639
- var n = s(t, "onDeactivate"), c = s(t, "onPostDeactivate"), l = s(t, "checkCanReturnFocus"), u = s(t, "returnFocus", "returnFocusOnDeactivate");
4640
- n?.();
4641
- var d = function() {
4642
- ql(function() {
4643
- u && p(m(a.nodeFocusedBeforeActivation)), c?.();
4644
- });
4660
+ var n = s(t, "onDeactivate"), c = s(t, "onPostDeactivate"), l = s(t, "checkCanReturnFocus"), u = s(t, "delayReturnFocus"), d = s(t, "returnFocus", "returnFocusOnDeactivate");
4661
+ n?.({ trap: o });
4662
+ var f = function() {
4663
+ d && p(m(a.nodeFocusedBeforeActivation)), c?.({ trap: o });
4664
+ }, h = function() {
4665
+ u && d ? ql(f) : f();
4645
4666
  };
4646
- return u && l ? (l(m(a.nodeFocusedBeforeActivation)).then(d, d), this) : (d(), this);
4667
+ return d && l ? (l(m(a.nodeFocusedBeforeActivation)).then(h, h), this) : (h(), this);
4647
4668
  },
4648
4669
  pause: function(e) {
4649
4670
  return a.active ? (a.manuallyPaused = !0, this._setPausedState(!0, e)) : this;
@@ -4654,7 +4675,7 @@ var Vl = {
4654
4675
  updateContainerElements: function(e) {
4655
4676
  return a.containers = [].concat(e).filter(Boolean).map(function(e) {
4656
4677
  return typeof e == "string" ? n.querySelector(e) : e;
4657
- }), i.isolateSubtrees && C(a.containers), a.active && (d(), i.isolateSubtrees && !a.paused && o._setSubtreeIsolation(!0)), E(), this;
4678
+ }), i.isolateSubtrees && C(a.containers), a.active && (f(), a.paused || o._setSubtreeIsolation(!0)), E(), this;
4658
4679
  }
4659
4680
  }, Object.defineProperties(o, {
4660
4681
  _isManuallyPaused: { value: function() {
@@ -4664,10 +4685,16 @@ var Vl = {
4664
4685
  if (a.paused === e) return this;
4665
4686
  if (a.paused = e, e) {
4666
4687
  var n = s(t, "onPause"), r = s(t, "onPostPause");
4667
- n?.(), w(), E(), o._setSubtreeIsolation(!1), r?.();
4688
+ n?.({ trap: o }), w(), o._setSubtreeIsolation(!1), E(), r?.({ trap: o });
4668
4689
  } else {
4669
4690
  var i = s(t, "onUnpause"), c = s(t, "onPostUnpause");
4670
- i?.(), o._setSubtreeIsolation(!0), d(), S(), E(), c?.();
4691
+ i?.({ trap: o }), (function() {
4692
+ f();
4693
+ var e = function() {
4694
+ o._setSubtreeIsolation(!0), E(), c?.({ trap: o });
4695
+ }, t = S();
4696
+ t ? t.then(e) : e();
4697
+ })();
4671
4698
  }
4672
4699
  return this;
4673
4700
  } },
@@ -5477,7 +5504,8 @@ var Ku = {
5477
5504
  }
5478
5505
  }
5479
5506
  function h(e) {
5480
- f.value = e.target.value, p && clearTimeout(p), p = setTimeout(() => {
5507
+ let t = e.target.value;
5508
+ f.value = t, p && clearTimeout(p), p = setTimeout(() => {
5481
5509
  m(f.value), p = null;
5482
5510
  }, n.debounce);
5483
5511
  }
@@ -8093,12 +8121,14 @@ var _p = { class: "g-table-outer-wrap" }, vp = {
8093
8121
  }
8094
8122
  function C(e) {
8095
8123
  let t = e.value, n = e.column.key, r = /* @__PURE__ */ M(e.row[n]);
8096
- e.column.editable?.inputAttributes?.type === "number" && (t = e.value === "" ? null : Number(e.value)), e.row[n] = t, s("cell-change", {
8124
+ e.column.editable?.inputAttributes?.type === "number" && (t = e.value === "" ? null : Number(e.value)), e.row[n] = t;
8125
+ let i = {
8097
8126
  row: e.row,
8098
8127
  column: e.column,
8099
8128
  value: t,
8100
8129
  previousValue: r
8101
- });
8130
+ };
8131
+ s("cell-change", i);
8102
8132
  }
8103
8133
  let w = z(), T = ui(), E = Q(() => o.showPagination ? !0 : !!T.pagination), ee = Q(() => !!(f.value || E.value));
8104
8134
  return Gr(() => {
@@ -8652,7 +8682,8 @@ var _p = { class: "g-table-outer-wrap" }, vp = {
8652
8682
  }
8653
8683
  }
8654
8684
  function h(e) {
8655
- r.value = e.target.value, n.autoGrow && p();
8685
+ let t = e.target.value;
8686
+ r.value = t, n.autoGrow && p();
8656
8687
  }
8657
8688
  function g(e) {
8658
8689
  m(e.target.value);
@@ -8869,8 +8900,9 @@ var _p = { class: "g-table-outer-wrap" }, vp = {
8869
8900
  return !0;
8870
8901
  });
8871
8902
  function o() {
8903
+ let e = !a.value;
8872
8904
  i.value = {
8873
- expanded: !a.value,
8905
+ expanded: e,
8874
8906
  version: i.value.version + 1
8875
8907
  };
8876
8908
  }