@illinois-grad/grad-vue 6.0.14 → 6.0.15
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/compose/usePersistentTableColumnState.d.ts +1 -1
- package/dist/{grad-vue-B_FDohCx.js → grad-vue-BviKJ89P.js} +22 -19
- package/dist/grad-vue-BviKJ89P.js.map +1 -0
- package/dist/grad-vue-elements.css +30 -30
- package/dist/grad-vue-elements.js +1906 -1920
- 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/dist/plugin.js.map +1 -1
- package/package.json +7 -7
- package/dist/grad-vue-B_FDohCx.js.map +0 -1
|
@@ -2,5 +2,5 @@ import type { TableColumn, TableColumnState, TableColumnStateValue, TableRow } f
|
|
|
2
2
|
import { type MaybeRefOrGetter } from "vue";
|
|
3
3
|
export declare function normalizeTableColumnState<T extends TableRow>(value: unknown, columns: readonly TableColumn<T>[]): TableColumnState<T>;
|
|
4
4
|
export declare function usePersistentTableColumnState<T extends TableRow>(storageKey: string, columns: MaybeRefOrGetter<readonly TableColumn<T>[]>): {
|
|
5
|
-
columnState: import("@vueuse/
|
|
5
|
+
columnState: import("@vueuse/shared").RemovableRef<Partial<Record<Extract<keyof T, string>, TableColumnStateValue>>>;
|
|
6
6
|
};
|
|
@@ -525,7 +525,7 @@ var Ae = ["id"], je = /* @__PURE__ */ u({
|
|
|
525
525
|
}
|
|
526
526
|
}), ze = 100, Be = 200, Ve = 102, He = T([]), Ue = T([]), We = T([]);
|
|
527
527
|
function Ge() {
|
|
528
|
-
if (
|
|
528
|
+
if (typeof document < "u") {
|
|
529
529
|
if (We.value.length > 0) {
|
|
530
530
|
let e = window.innerWidth - document.documentElement.clientWidth;
|
|
531
531
|
document.body.classList.add("g-scroll-lock"), document.body.style.paddingRight = `${e}px`, document.body.style.setProperty("--g-scrollbar-width", `${e}px`);
|
|
@@ -573,21 +573,28 @@ function Je() {
|
|
|
573
573
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
574
574
|
var Ye = (e) => e != null;
|
|
575
575
|
//#endregion
|
|
576
|
-
//#region ../../node_modules/@vueuse/integrations/dist/useFocusTrap
|
|
576
|
+
//#region ../../node_modules/@vueuse/integrations/dist/useFocusTrap.js
|
|
577
577
|
function Xe(e, t = {}) {
|
|
578
|
-
let n, { immediate: i, ...a } = t, o = A(!1), s = A(!1), c = (e) => n && n.activate(e), l = (e) => n && n.deactivate(e)
|
|
579
|
-
|
|
578
|
+
let n, { immediate: i, ...a } = t, o = A(!1), s = A(!1), c = (e) => n && n.activate(e), l = (e) => n && n.deactivate(e), u = () => {
|
|
579
|
+
n && (n.pause(), s.value = !0);
|
|
580
|
+
}, d = () => {
|
|
581
|
+
n && (n.unpause(), s.value = !1);
|
|
582
|
+
}, f = r(() => {
|
|
580
583
|
let t = P(e);
|
|
581
|
-
return
|
|
582
|
-
|
|
584
|
+
return re(t).map((e) => {
|
|
585
|
+
let t = P(e);
|
|
586
|
+
return typeof t == "string" ? t : q(t);
|
|
587
|
+
}).filter(Ye);
|
|
588
|
+
});
|
|
589
|
+
return U(f, (e) => {
|
|
583
590
|
if (e.length) {
|
|
584
591
|
if (!n) n = de(e, {
|
|
585
592
|
...a,
|
|
586
|
-
onActivate() {
|
|
587
|
-
o.value = !0, t.onActivate && t.onActivate();
|
|
593
|
+
onActivate(e) {
|
|
594
|
+
o.value = !0, t.onActivate && t.onActivate(e);
|
|
588
595
|
},
|
|
589
|
-
onDeactivate() {
|
|
590
|
-
o.value = !1, t.onDeactivate && t.onDeactivate();
|
|
596
|
+
onDeactivate(e) {
|
|
597
|
+
o.value = !1, t.onDeactivate && t.onDeactivate(e);
|
|
591
598
|
}
|
|
592
599
|
}), i && c();
|
|
593
600
|
else {
|
|
@@ -600,12 +607,8 @@ function Xe(e, t = {}) {
|
|
|
600
607
|
isPaused: s,
|
|
601
608
|
activate: c,
|
|
602
609
|
deactivate: l,
|
|
603
|
-
pause:
|
|
604
|
-
|
|
605
|
-
},
|
|
606
|
-
unpause: () => {
|
|
607
|
-
n && (n.unpause(), s.value = !1);
|
|
608
|
-
}
|
|
610
|
+
pause: u,
|
|
611
|
+
unpause: d
|
|
609
612
|
};
|
|
610
613
|
}
|
|
611
614
|
//#endregion
|
|
@@ -675,7 +678,7 @@ function et(e, t, n = !1) {
|
|
|
675
678
|
//#region src/compose/useOverlayEscape.ts
|
|
676
679
|
function tt(e, t, n, r, i) {
|
|
677
680
|
function a(i) {
|
|
678
|
-
if (
|
|
681
|
+
if (n.value && t.value) {
|
|
679
682
|
for (let t of e) if (t.value?.contains(i.target)) return;
|
|
680
683
|
r();
|
|
681
684
|
}
|
|
@@ -3694,7 +3697,7 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
3694
3697
|
}
|
|
3695
3698
|
function je(e) {
|
|
3696
3699
|
let t = ke(e).width;
|
|
3697
|
-
if (
|
|
3700
|
+
if (typeof t == "number" && Number.isFinite(t)) return Ae(t);
|
|
3698
3701
|
}
|
|
3699
3702
|
function Me(e) {
|
|
3700
3703
|
return document.getElementById(`${Y}-th-${String(e)}`);
|
|
@@ -5284,4 +5287,4 @@ function qo(e, t) {
|
|
|
5284
5287
|
//#endregion
|
|
5285
5288
|
export { ht as $, li as A, An as B, Ba as C, ui as D, ka as E, Rr as F, bn as G, Dn as H, Dr as I, rn as J, fn as K, dr as L, di as M, vi as N, ci as O, _i as P, St as Q, Xn as R, Ha as S, Fa as T, Cn as U, On as V, xn as W, Nt as X, qt as Y, Dt as Z, ro as _, Lo as a, qe as at, Xa as b, Fo as c, ke as ct, Oo as d, be as dt, st as et, So as f, ye as ft, uo as g, fo as h, Io as i, Ke as it, gi as j, hi as k, Po as l, De as lt, yo as m, Go as n, tt as nt, Ro as o, Re as ot, xo as p, Q as pt, sn as q, zo as r, et as rt, Wo as s, $ as st, qo as t, nt as tt, No as u, Ee as ut, no as v, Ia as w, Ka as x, to as y, Fn as z };
|
|
5286
5289
|
|
|
5287
|
-
//# sourceMappingURL=grad-vue-
|
|
5290
|
+
//# sourceMappingURL=grad-vue-BviKJ89P.js.map
|