@illinois-grad/grad-vue 7.2.3 → 7.2.5
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.
- package/dist/{grad-vue-TtZgUEXw.js → grad-vue-CTh0y4g9.js} +55 -46
- package/dist/grad-vue-CTh0y4g9.js.map +1 -0
- package/dist/grad-vue-elements.css +30 -30
- package/dist/grad-vue-elements.js.map +1 -1
- package/dist/grad-vue.css +1 -1
- package/dist/grad-vue.js +1 -1
- package/dist/plugin.js +1 -1
- package/package.json +1 -1
- package/dist/grad-vue-TtZgUEXw.js.map +0 -1
|
@@ -5175,15 +5175,25 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
5175
5175
|
function rs(e) {
|
|
5176
5176
|
return document.getElementById(e) ?? document.querySelector("main");
|
|
5177
5177
|
}
|
|
5178
|
-
function is(e
|
|
5178
|
+
function is(e) {
|
|
5179
|
+
e.hasAttribute("tabindex") || (e.setAttribute("tabindex", "-1"), e.addEventListener("blur", () => {
|
|
5180
|
+
e.getAttribute("tabindex") === "-1" && e.removeAttribute("tabindex");
|
|
5181
|
+
}, { once: !0 }));
|
|
5182
|
+
}
|
|
5183
|
+
function as(e = "main-content", t = !0) {
|
|
5179
5184
|
if (typeof document > "u") return !1;
|
|
5180
5185
|
let n = rs(e);
|
|
5181
5186
|
if (!n) return !1;
|
|
5182
5187
|
let r = t ? n.querySelector("h1") : null;
|
|
5183
|
-
for (let e of [r, n])
|
|
5188
|
+
for (let e of [r, n]) {
|
|
5189
|
+
if (!e) continue;
|
|
5190
|
+
let n = e.hasAttribute("tabindex");
|
|
5191
|
+
if (is(e), e.focus({ preventScroll: t }), document.activeElement === e) return !0;
|
|
5192
|
+
n || e.removeAttribute("tabindex");
|
|
5193
|
+
}
|
|
5184
5194
|
return !1;
|
|
5185
5195
|
}
|
|
5186
|
-
function
|
|
5196
|
+
function os() {
|
|
5187
5197
|
let e = document.getElementById(ns);
|
|
5188
5198
|
if (e) return {
|
|
5189
5199
|
el: e,
|
|
@@ -5205,10 +5215,10 @@ function as() {
|
|
|
5205
5215
|
created: !0
|
|
5206
5216
|
};
|
|
5207
5217
|
}
|
|
5208
|
-
function
|
|
5218
|
+
function ss() {
|
|
5209
5219
|
return new Promise((e) => requestAnimationFrame(() => e()));
|
|
5210
5220
|
}
|
|
5211
|
-
function
|
|
5221
|
+
function cs(e, t = {}) {
|
|
5212
5222
|
let n = O(""), { mainId: r = "main-content", isNewPage: i = (e, t) => e.path !== t.path, focus: a = !0, ready: o, message: s = (e, t) => t ? `Navigated to ${t}` : "" } = t;
|
|
5213
5223
|
if (typeof window > "u") return {
|
|
5214
5224
|
message: D(n),
|
|
@@ -5217,7 +5227,7 @@ function ss(e, t = {}) {
|
|
|
5217
5227
|
};
|
|
5218
5228
|
let c = null, l, u = 0;
|
|
5219
5229
|
function d(e) {
|
|
5220
|
-
n.value = e, c ??=
|
|
5230
|
+
n.value = e, c ??= os();
|
|
5221
5231
|
let t = c.el;
|
|
5222
5232
|
t.textContent = "", clearTimeout(l), l = setTimeout(() => {
|
|
5223
5233
|
t.textContent = e;
|
|
@@ -5226,9 +5236,9 @@ function ss(e, t = {}) {
|
|
|
5226
5236
|
let p = e.afterEach(async (e, t, n) => {
|
|
5227
5237
|
if (n || !t.matched?.length || !i(e, t)) return;
|
|
5228
5238
|
let c = ++u, l = document.activeElement;
|
|
5229
|
-
if (await g(), await
|
|
5239
|
+
if (await g(), await ss(), o && (await o(e, t), await g(), await ss()), c !== u) return;
|
|
5230
5240
|
let f = typeof a == "function" ? a(e, t) : a, p = document.activeElement, m = !!p && p !== l && !!rs(r)?.contains(p);
|
|
5231
|
-
f && !e.hash && !m &&
|
|
5241
|
+
f && !e.hash && !m && as(r);
|
|
5232
5242
|
let h = s(e, document.title);
|
|
5233
5243
|
h && d(h);
|
|
5234
5244
|
});
|
|
@@ -5243,7 +5253,7 @@ function ss(e, t = {}) {
|
|
|
5243
5253
|
}
|
|
5244
5254
|
//#endregion
|
|
5245
5255
|
//#region src/components/GSkipLink.vue?vue&type=script&setup=true&lang.ts
|
|
5246
|
-
var
|
|
5256
|
+
var ls = ["href"], us = /*@__PURE__*/ u({
|
|
5247
5257
|
__name: "GSkipLink",
|
|
5248
5258
|
props: {
|
|
5249
5259
|
target: { default: "main-content" },
|
|
@@ -5252,33 +5262,32 @@ var cs = ["href"], ls = /*@__PURE__*/ u({
|
|
|
5252
5262
|
setup(e) {
|
|
5253
5263
|
let t = e;
|
|
5254
5264
|
function n(e) {
|
|
5255
|
-
|
|
5265
|
+
as(t.target, !1) && e.preventDefault();
|
|
5256
5266
|
}
|
|
5257
5267
|
return (e, r) => (w(), o("a", {
|
|
5258
5268
|
class: "g-skip-link",
|
|
5259
5269
|
href: `#${t.target}`,
|
|
5260
5270
|
onClick: n
|
|
5261
|
-
}, [A(e.$slots, "default", {}, () => [c(P(t.label), 1)], !0)], 8,
|
|
5271
|
+
}, [A(e.$slots, "default", {}, () => [c(P(t.label), 1)], !0)], 8, ls));
|
|
5262
5272
|
}
|
|
5263
|
-
}),
|
|
5273
|
+
}), ds = (e, t) => {
|
|
5264
5274
|
let n = e.__vccOpts || e;
|
|
5265
5275
|
for (let [e, r] of t) n[e] = r;
|
|
5266
5276
|
return n;
|
|
5267
|
-
},
|
|
5277
|
+
}, fs = /*#__PURE__*/ ds(us, [["__scopeId", "data-v-1d350630"]]), ps = ["id"], ms = /*#__PURE__*/ ds(/* @__PURE__ */ u({
|
|
5268
5278
|
__name: "GMain",
|
|
5269
5279
|
props: { id: { default: "main-content" } },
|
|
5270
5280
|
setup(e) {
|
|
5271
5281
|
let t = e;
|
|
5272
5282
|
return (e, n) => (w(), o("main", {
|
|
5273
5283
|
id: t.id,
|
|
5274
|
-
class: "g-main"
|
|
5275
|
-
|
|
5276
|
-
}, [A(e.$slots, "default", {}, void 0, !0)], 8, fs));
|
|
5284
|
+
class: "g-main"
|
|
5285
|
+
}, [A(e.$slots, "default", {}, void 0, !0)], 8, ps));
|
|
5277
5286
|
}
|
|
5278
|
-
}), [["__scopeId", "data-v-
|
|
5287
|
+
}), [["__scopeId", "data-v-139f5ef2"]]);
|
|
5279
5288
|
//#endregion
|
|
5280
5289
|
//#region src/compose/useActiveLink.ts
|
|
5281
|
-
function
|
|
5290
|
+
function hs(e, t, n) {
|
|
5282
5291
|
let r = [
|
|
5283
5292
|
0,
|
|
5284
5293
|
.25,
|
|
@@ -5315,7 +5324,7 @@ function ms(e, t, n) {
|
|
|
5315
5324
|
}
|
|
5316
5325
|
//#endregion
|
|
5317
5326
|
//#region src/compose/useSidebar.ts
|
|
5318
|
-
function
|
|
5327
|
+
function gs(e = "(max-width: 800px)") {
|
|
5319
5328
|
let t = B(), n = O(!1), r = ce(e, { ssrWidth: 1e3 });
|
|
5320
5329
|
function i(e) {
|
|
5321
5330
|
if (!r.value || !n.value) return;
|
|
@@ -5346,41 +5355,41 @@ function hs(e = "(max-width: 800px)") {
|
|
|
5346
5355
|
}
|
|
5347
5356
|
//#endregion
|
|
5348
5357
|
//#region src/compose/usePaging.ts
|
|
5349
|
-
function
|
|
5358
|
+
function _s(e) {
|
|
5350
5359
|
let t = /* @__PURE__ */ new Set();
|
|
5351
5360
|
return (e ?? []).filter((e) => !e?.key || t.has(e.key) || e.order !== 1 && e.order !== -1 ? !1 : (t.add(e.key), !0));
|
|
5352
5361
|
}
|
|
5353
|
-
function
|
|
5354
|
-
return e == null ? [] :
|
|
5362
|
+
function vs(e) {
|
|
5363
|
+
return e == null ? [] : _s((typeof e == "string" ? e.split(",") : e).filter((e) => e !== null).map((e) => e.trim()).filter(Boolean).map((e) => ({
|
|
5355
5364
|
key: e.replace(/^-/, ""),
|
|
5356
5365
|
order: e.startsWith("-") ? -1 : 1
|
|
5357
5366
|
})));
|
|
5358
5367
|
}
|
|
5359
|
-
function
|
|
5360
|
-
let t =
|
|
5368
|
+
function ys(e) {
|
|
5369
|
+
let t = _s(e);
|
|
5361
5370
|
if (t.length !== 0) return t.map(({ key: e, order: t }) => `${t === -1 ? "-" : ""}${e}`);
|
|
5362
5371
|
}
|
|
5363
|
-
function
|
|
5364
|
-
let n =
|
|
5372
|
+
function bs(e, t = []) {
|
|
5373
|
+
let n = _s(e);
|
|
5365
5374
|
if (n.length === 0) return;
|
|
5366
5375
|
let r = n.map(({ key: e, order: t }) => `${t === -1 ? "-" : ""}${e}`), i = new Set(n.map(({ key: e }) => String(e))), a = n.length === 1 && n[0].order === -1 ? "-" : "";
|
|
5367
5376
|
return t.forEach((e) => {
|
|
5368
5377
|
i.has(e) || r.push(`${a}${e}`);
|
|
5369
5378
|
}), r.join(",");
|
|
5370
5379
|
}
|
|
5371
|
-
function
|
|
5380
|
+
function xs(e) {
|
|
5372
5381
|
return Array.isArray(e) ? [...e] : e;
|
|
5373
5382
|
}
|
|
5374
|
-
function
|
|
5383
|
+
function Ss(e, t) {
|
|
5375
5384
|
return Array.isArray(e) || Array.isArray(t) ? !Array.isArray(e) || !Array.isArray(t) ? !1 : e.length === t.length && e.every((e, n) => e === t[n]) : e === t;
|
|
5376
5385
|
}
|
|
5377
|
-
function
|
|
5386
|
+
function Cs(e, t) {
|
|
5378
5387
|
return e.length === t.length && e.every((e, n) => {
|
|
5379
5388
|
let r = t[n];
|
|
5380
5389
|
return e.key === r?.key && e.order === r?.order;
|
|
5381
5390
|
});
|
|
5382
5391
|
}
|
|
5383
|
-
function
|
|
5392
|
+
function ws(e, t) {
|
|
5384
5393
|
if (typeof e == "string") return Number(e);
|
|
5385
5394
|
if (Array.isArray(e)) {
|
|
5386
5395
|
let n = e.find((e) => e !== null);
|
|
@@ -5388,35 +5397,35 @@ function Cs(e, t) {
|
|
|
5388
5397
|
}
|
|
5389
5398
|
return t;
|
|
5390
5399
|
}
|
|
5391
|
-
function
|
|
5400
|
+
function Ts(e = {}) {
|
|
5392
5401
|
let t = e.defaultPageSize ?? 50, n = e.defaultPageOffset ?? 0, i = e.sortKey ?? "sort", a = e.pageSizeKey ?? "pageSize", o = e.pageOffsetKey ?? "pageOffset", s = N([]), c = O(t), l = O(n);
|
|
5393
5402
|
return e.route && e.router && (W(() => e.route?.query[i], (e) => {
|
|
5394
|
-
let t =
|
|
5395
|
-
|
|
5403
|
+
let t = vs(e);
|
|
5404
|
+
Cs(s.value, t) || (s.value = t);
|
|
5396
5405
|
}, { immediate: !0 }), W(() => e.route?.query[a], (e) => {
|
|
5397
|
-
let n =
|
|
5406
|
+
let n = ws(e, t);
|
|
5398
5407
|
c.value !== n && (c.value = n);
|
|
5399
5408
|
}, { immediate: !0 }), W(() => e.route?.query[o], (e) => {
|
|
5400
|
-
let t =
|
|
5409
|
+
let t = ws(e, n);
|
|
5401
5410
|
l.value !== t && (l.value = t);
|
|
5402
5411
|
}, { immediate: !0 }), W([
|
|
5403
5412
|
s,
|
|
5404
5413
|
c,
|
|
5405
5414
|
l
|
|
5406
5415
|
], ([r, s, c]) => {
|
|
5407
|
-
let l = { ...e.route.query }, u =
|
|
5408
|
-
u === void 0 ? delete l[i] : l[i] =
|
|
5416
|
+
let l = { ...e.route.query }, u = ys(r);
|
|
5417
|
+
u === void 0 ? delete l[i] : l[i] = xs(u), s === t || s === void 0 ? delete l[a] : l[a] = String(s), c === n || c === void 0 ? delete l[o] : l[o] = String(c);
|
|
5409
5418
|
let d = /* @__PURE__ */ new Set([...Object.keys(e.route.query), ...Object.keys(l)]), f = !1;
|
|
5410
|
-
for (let t of d) if (!
|
|
5419
|
+
for (let t of d) if (!Ss(e.route.query[t], l[t])) {
|
|
5411
5420
|
f = !0;
|
|
5412
5421
|
break;
|
|
5413
5422
|
}
|
|
5414
5423
|
f && e.router.replace({ query: l });
|
|
5415
5424
|
})), {
|
|
5416
5425
|
sort: r({
|
|
5417
|
-
get: () =>
|
|
5426
|
+
get: () => _s(s.value),
|
|
5418
5427
|
set: (e) => {
|
|
5419
|
-
s.value =
|
|
5428
|
+
s.value = _s(e);
|
|
5420
5429
|
}
|
|
5421
5430
|
}),
|
|
5422
5431
|
pageSize: c,
|
|
@@ -5425,7 +5434,7 @@ function ws(e = {}) {
|
|
|
5425
5434
|
}
|
|
5426
5435
|
//#endregion
|
|
5427
5436
|
//#region src/compose/useTableChanges.ts
|
|
5428
|
-
function
|
|
5437
|
+
function Es() {
|
|
5429
5438
|
let e = M(/* @__PURE__ */ new Map()), t = ne(), n = (n) => {
|
|
5430
5439
|
let r = n.column.key, i = n.row.key, a = n.value, o = n.previousValue;
|
|
5431
5440
|
e.has(i) || e.set(i, M(/* @__PURE__ */ new Map()));
|
|
@@ -5529,7 +5538,7 @@ function Ts() {
|
|
|
5529
5538
|
}
|
|
5530
5539
|
//#endregion
|
|
5531
5540
|
//#region src/compose/usePersistentTableColumnState.ts
|
|
5532
|
-
function
|
|
5541
|
+
function Ds(e, t) {
|
|
5533
5542
|
if (!e || typeof e != "object" || Array.isArray(e)) return {};
|
|
5534
5543
|
let n = new Set(t.map(({ key: e }) => String(e))), r = {};
|
|
5535
5544
|
for (let [t, i] of Object.entries(e)) {
|
|
@@ -5539,13 +5548,13 @@ function Es(e, t) {
|
|
|
5539
5548
|
}
|
|
5540
5549
|
return r;
|
|
5541
5550
|
}
|
|
5542
|
-
function
|
|
5551
|
+
function Os(e, t) {
|
|
5543
5552
|
let n = se(e, {});
|
|
5544
5553
|
return W(() => L(t).map(({ key: e }) => String(e)), () => {
|
|
5545
|
-
n.value =
|
|
5554
|
+
n.value = Ds(n.value, L(t));
|
|
5546
5555
|
}, { immediate: !0 }), { columnState: n };
|
|
5547
5556
|
}
|
|
5548
5557
|
//#endregion
|
|
5549
|
-
export { pn as $, Qa as A, Ri as B, wo as C, lo as D, fo as E, ji as F, Zn as G, Yr as H, xi as I, kn as J, In as K, Mi as L, Ai as M, bi as N, ao as O, Fi as P, xn as Q, Ii as R, To as S, go as T, Rr as U, Li as V, fr as W, wn as X, On as Y, Sn as Z, Uo as _, De as _t,
|
|
5558
|
+
export { pn as $, Qa as A, Ri as B, wo as C, lo as D, fo as E, ji as F, Zn as G, Yr as H, xi as I, kn as J, In as K, Mi as L, Ai as M, bi as N, ao as O, Fi as P, xn as Q, Ii as R, To as S, go as T, Rr as U, Li as V, fr as W, wn as X, On as Y, Sn as Z, Uo as _, De as _t, vs as a, Ct as at, No as b, Q as bt, gs as c, rt as ct, fs as d, qe as dt, cn as et, as as f, Je as ft, Wo as g, Oe as gt, Xo as h, Ae as ht, _s as i, Ot as it, Si as j, io as k, hs as l, nt as lt, ts as m, $ as mt, Es as n, Jt as nt, ys as o, gt as ot, cs as p, ze as pt, jn as q, bs as r, Pt as rt, Ts as s, ct as st, Os as t, an as tt, ms as u, tt as ut, Vo as v, xe as vt, yo as w, Eo as x, Po as y, be as yt, Ci as z };
|
|
5550
5559
|
|
|
5551
|
-
//# sourceMappingURL=grad-vue-
|
|
5560
|
+
//# sourceMappingURL=grad-vue-CTh0y4g9.js.map
|