@base-framework/ui 1.0.112 → 1.0.113
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/{calendar-B_jcSUF6.js → calendar-B7LCME_T.js} +22 -22
- package/dist/{confirmation-BgNcRIp-.js → confirmation-CM2qKExU.js} +5 -5
- package/dist/index.es.js +3 -3
- package/dist/molecules.es.js +2 -2
- package/dist/organisms.es.js +2 -2
- package/dist/{signature-panel-tMcw0LN3.js → signature-panel-Dl_Tkisq.js} +36 -36
- package/dist/types/components/organisms/lists/scrollable-data-table.d.ts +1 -1
- package/dist/types/components/organisms/lists/scrollable-table.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Div as i, Img as I, Span as M, Button as Y } from "@base-framework/atoms";
|
|
2
2
|
import { Component as N, Data as z, Atom as k, DateTime as j } from "@base-framework/base";
|
|
3
3
|
import { B as A } from "./buttons-CVEwmPAi.js";
|
|
4
|
-
import { Icons as
|
|
4
|
+
import { Icons as T } from "./icons.es.js";
|
|
5
5
|
const W = (e, t) => {
|
|
6
|
-
const n = e ? e.getBoundingClientRect() : { top: 0, bottom: 0, left: 0 }, s = t.getBoundingClientRect(), o = 10, a =
|
|
6
|
+
const n = e ? e.getBoundingClientRect() : { top: 0, bottom: 0, left: 0 }, s = t.getBoundingClientRect(), o = 10, a = globalThis.scrollX, l = globalThis.scrollY;
|
|
7
7
|
let c = n.left + a, f = n.bottom + l;
|
|
8
|
-
const h =
|
|
9
|
-
return c + s.width >
|
|
8
|
+
const h = globalThis.innerHeight - n.bottom, d = n.top;
|
|
9
|
+
return c + s.width > globalThis.innerWidth && (c = globalThis.innerWidth - s.width - o), h < s.height && d > h ? f = n.top + l - s.height - o : h < s.height && (f = n.bottom + l - (s.height - h) - o), { x: c, y: f };
|
|
10
10
|
};
|
|
11
11
|
class lt extends N {
|
|
12
12
|
/**
|
|
@@ -115,7 +115,7 @@ class lt extends N {
|
|
|
115
115
|
["click", document, (t) => {
|
|
116
116
|
this.isOutsideClick(t.target) && (this.state.open = !1);
|
|
117
117
|
}],
|
|
118
|
-
["resize",
|
|
118
|
+
["resize", globalThis, (t) => this.updatePosition()],
|
|
119
119
|
["scroll", document, (t) => this.updatePosition()]
|
|
120
120
|
];
|
|
121
121
|
}
|
|
@@ -146,7 +146,7 @@ const H = k(({ src: e, alt: t }) => e ? I({
|
|
|
146
146
|
error: (n) => n.target.style.display = "none"
|
|
147
147
|
}) : null), R = (e) => e.split(" ").map((t) => t.charAt(0)).join(""), B = (e) => !e || e.length < 2 ? e : R(e), X = (e) => M([e, (t, n) => {
|
|
148
148
|
n.textContent = B(t);
|
|
149
|
-
}]),
|
|
149
|
+
}]), P = {
|
|
150
150
|
xs: "h-6 w-6",
|
|
151
151
|
sm: "h-8 w-8",
|
|
152
152
|
md: "h-12 w-12",
|
|
@@ -155,7 +155,7 @@ const H = k(({ src: e, alt: t }) => e ? I({
|
|
|
155
155
|
"2xl": "h-32 w-32",
|
|
156
156
|
"3xl": "h-48 w-48",
|
|
157
157
|
default: "h-12 w-12"
|
|
158
|
-
},
|
|
158
|
+
}, S = {
|
|
159
159
|
xs: "text-[7px]",
|
|
160
160
|
sm: "text-xs",
|
|
161
161
|
md: "text-base",
|
|
@@ -164,7 +164,7 @@ const H = k(({ src: e, alt: t }) => e ? I({
|
|
|
164
164
|
"2xl": "text-3xl",
|
|
165
165
|
"3xl": "text-4xl",
|
|
166
166
|
default: "text-base"
|
|
167
|
-
}, E = (e) =>
|
|
167
|
+
}, E = (e) => P[e] || P.default, G = (e) => S[e] || S.default, L = (e, t = null, n = "md") => {
|
|
168
168
|
const s = B(e), o = G(n);
|
|
169
169
|
return i(
|
|
170
170
|
{
|
|
@@ -192,7 +192,7 @@ const H = k(({ src: e, alt: t }) => e ? I({
|
|
|
192
192
|
}), x = (e) => (e *= 1, e < 10 ? `0${e}` : String(e)), q = (e) => (e.indexOf("T") === -1 && e.indexOf(" ") === -1 && (e += "T00:00:01"), e.replace(" ", "T"), e), p = (e, t, n) => `${e}-${x(t + 1)}-${x(n)}`, J = (e) => e ? "bg-accent text-primary" : "", K = (e) => e ? "text-muted-foreground opacity-50" : "", Q = (e, t) => e === t, U = (e, t) => Q(e, t) ? "bg-primary text-primary-foreground" : "", V = (e, t, n, s) => {
|
|
193
193
|
const o = U(t, s);
|
|
194
194
|
return o || (e ? J(e) : n ? K(n) : "text-foreground");
|
|
195
|
-
},
|
|
195
|
+
}, v = (e) => {
|
|
196
196
|
const {
|
|
197
197
|
day: t,
|
|
198
198
|
currentDate: n,
|
|
@@ -217,15 +217,15 @@ const H = k(({ src: e, alt: t }) => e ? I({
|
|
|
217
217
|
},
|
|
218
218
|
t.toString()
|
|
219
219
|
);
|
|
220
|
-
},
|
|
221
|
-
const { year: o, month: a } = e, l = p(o, a, e.date), c = new Date(o, a, 1).getDay(), f = new Date(o, a + 1, 0).getDate(), h = new Date(o, a, 0).getDate(), d = [], D = a === 0 ? 11 : a - 1,
|
|
220
|
+
}, C = (e, t, n, s) => e === s.date && t === s.month && n === s.year, Z = (e, t, n, s = !1) => {
|
|
221
|
+
const { year: o, month: a } = e, l = p(o, a, e.date), c = new Date(o, a, 1).getDay(), f = new Date(o, a + 1, 0).getDate(), h = new Date(o, a, 0).getDate(), d = [], D = a === 0 ? 11 : a - 1, y = a === 0 ? o - 1 : o;
|
|
222
222
|
for (let r = c - 1; r >= 0; r--) {
|
|
223
|
-
const u = h - r, g =
|
|
223
|
+
const u = h - r, g = C(u, D, y, t), m = new Date(y, D, u) < new Date(t.year, t.month, t.date), F = s && m;
|
|
224
224
|
d.push(
|
|
225
|
-
|
|
225
|
+
v({
|
|
226
226
|
day: u,
|
|
227
227
|
currentDate: l,
|
|
228
|
-
date: p(
|
|
228
|
+
date: p(y, D, u),
|
|
229
229
|
isToday: g,
|
|
230
230
|
isOutsideMonth: !0,
|
|
231
231
|
select: n,
|
|
@@ -234,9 +234,9 @@ const H = k(({ src: e, alt: t }) => e ? I({
|
|
|
234
234
|
);
|
|
235
235
|
}
|
|
236
236
|
for (let r = 1; r <= f; r++) {
|
|
237
|
-
const u =
|
|
237
|
+
const u = C(r, a, o, t), g = new Date(o, a, r) < new Date(t.year, t.month, t.date), m = s && g;
|
|
238
238
|
d.push(
|
|
239
|
-
|
|
239
|
+
v({
|
|
240
240
|
day: r,
|
|
241
241
|
currentDate: l,
|
|
242
242
|
date: p(o, a, r),
|
|
@@ -247,14 +247,14 @@ const H = k(({ src: e, alt: t }) => e ? I({
|
|
|
247
247
|
})
|
|
248
248
|
);
|
|
249
249
|
}
|
|
250
|
-
const
|
|
250
|
+
const w = a === 11 ? 0 : a + 1, b = a === 11 ? o + 1 : o, O = (7 - d.length % 7) % 7;
|
|
251
251
|
for (let r = 1; r <= O; r++) {
|
|
252
|
-
const u =
|
|
252
|
+
const u = C(r, w, b, t), g = new Date(b, w, r) < new Date(t.year, t.month, t.date), m = s && g;
|
|
253
253
|
d.push(
|
|
254
|
-
|
|
254
|
+
v({
|
|
255
255
|
day: r,
|
|
256
256
|
currentDate: l,
|
|
257
|
-
date: p(
|
|
257
|
+
date: p(b, w, r),
|
|
258
258
|
isToday: u,
|
|
259
259
|
isOutsideMonth: !0,
|
|
260
260
|
select: n,
|
|
@@ -277,7 +277,7 @@ const H = k(({ src: e, alt: t }) => e ? I({
|
|
|
277
277
|
click: t,
|
|
278
278
|
"aria-label": `${e} month`,
|
|
279
279
|
variant: "icon",
|
|
280
|
-
icon: e === "Previous" ?
|
|
280
|
+
icon: e === "Previous" ? T.chevron.single.left : T.chevron.single.right
|
|
281
281
|
}
|
|
282
282
|
), tt = ({ next: e, previous: t }) => i({ class: "flex flex-auto min-h-12 text-sm font-medium relative justify-center items-center" }, [
|
|
283
283
|
M("[[monthName]] [[current.year]]"),
|
|
@@ -426,7 +426,7 @@ class ut extends N {
|
|
|
426
426
|
export {
|
|
427
427
|
ct as A,
|
|
428
428
|
Z as C,
|
|
429
|
-
|
|
429
|
+
v as D,
|
|
430
430
|
p as F,
|
|
431
431
|
nt as M,
|
|
432
432
|
lt as P,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Div as n, H5 as _, P as b, I as g, Li as O, Span as a, Ul as V, Button as m, OnState as v, Label as W, Form as R, H2 as A, Header as B, Footer as M, A as Y, H3 as G, Checkbox as J, Nav as K, Input as C, UseParent as Q, Time as X, Dialog as Z } from "@base-framework/atoms";
|
|
2
2
|
import { Atom as c, Component as p, Html as L, Dom as ee, base as te, Data as k, Builder as U, Jot as S, DateTime as $ } from "@base-framework/base";
|
|
3
|
-
import { P as D, b as se } from "./calendar-
|
|
3
|
+
import { P as D, b as se } from "./calendar-B7LCME_T.js";
|
|
4
4
|
import { B as h, I as x } from "./buttons-CVEwmPAi.js";
|
|
5
5
|
import { Icons as u } from "./icons.es.js";
|
|
6
6
|
import { a as w } from "./veil-D4dRxILB.js";
|
|
@@ -403,7 +403,7 @@ class wt extends p {
|
|
|
403
403
|
* @returns {void}
|
|
404
404
|
*/
|
|
405
405
|
showModal() {
|
|
406
|
-
|
|
406
|
+
globalThis.setTimeout(() => this.panel.showPopover(), 10), this.state.open = !0, document.documentElement.style.overflowY = "hidden";
|
|
407
407
|
}
|
|
408
408
|
/**
|
|
409
409
|
* This will hide the modal.
|
|
@@ -587,7 +587,7 @@ class yt extends p {
|
|
|
587
587
|
this.list.delete(t.id);
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
|
-
const N =
|
|
590
|
+
const N = globalThis.matchMedia, I = c(({ value: e, label: t, icon: s }) => m({
|
|
591
591
|
class: 'text-sm gap-1 font-medium leading-none disabled:cursor-not-allowed disabled:opacity-70 flex flex-col items-center justify-between rounded-md border-2 bg-popover p-4 hover:bg-accent hover:text-accent-foreground data-[state="active"]:border-primary [&:has([data-state="active"])]:border-primary',
|
|
592
592
|
onState: ["method", { active: e }],
|
|
593
593
|
dataSet: ["method", ["state", e, "active"]],
|
|
@@ -600,7 +600,7 @@ const N = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => m({
|
|
|
600
600
|
])), Fe = (e) => {
|
|
601
601
|
var o;
|
|
602
602
|
const t = document.documentElement;
|
|
603
|
-
if (e === "system" && (e = (o =
|
|
603
|
+
if (e === "system" && (e = (o = globalThis.matchMedia) != null && o.call(globalThis, "(prefers-color-scheme: dark)").matches ? "dark" : "light"), N && !N("(prefers-color-scheme: " + e + ")").matches) {
|
|
604
604
|
t.classList.add(e);
|
|
605
605
|
return;
|
|
606
606
|
}
|
|
@@ -629,7 +629,7 @@ const N = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => m({
|
|
|
629
629
|
*/
|
|
630
630
|
state() {
|
|
631
631
|
return {
|
|
632
|
-
method:
|
|
632
|
+
method: globalThis.localStorage.getItem("theme") ?? "system"
|
|
633
633
|
};
|
|
634
634
|
}
|
|
635
635
|
}
|
package/dist/index.es.js
CHANGED
|
@@ -3,9 +3,9 @@ import { B as g, I as T, L as c } from "./buttons-CVEwmPAi.js";
|
|
|
3
3
|
import { C as b, d as D, D as S, c as I, E as B, F as P, H as F, I as M, M as k, N, P as v, R as f, S as x, T as h, a as y, b as W, U as L, W as A } from "./inputs-Dmu4Z-7-.js";
|
|
4
4
|
import { V as w, a as U } from "./veil-D4dRxILB.js";
|
|
5
5
|
import { Icons as R } from "./icons.es.js";
|
|
6
|
-
import { A as G, B as V, C as j, z as q, u as z, v as J, w as _, D as K, j as Q, k as X, G as Y, E as Z, s as $, c as aa, a as sa, b as ea, i as oa, g as ta, e as ra, h as na, F as ia, d as la, f as pa, t as ua, M as ma, l as da, N as ga, P as Ta, p as ca, q as Ca, S as ba, n as Da, o as Sa, T as Ia, x as Ba, y as Pa, m as Fa, r as Ma } from "./confirmation-
|
|
7
|
-
import { A as Na, b as va, C as fa, D as xa, a as ha, F as ya, M as Wa, P as La, c as Aa, g as Ha, p as wa } from "./calendar-
|
|
8
|
-
import { B as Oa, n as Ra, C as Ea, j as Ga, D as Va, l as ja, H as qa, I as za, N as Ja, O as _a, P as Ka, S as Qa, m as Xa, r as Ya, q as Za, o as $a, p as as, T as ss, k as es, U as os, W as ts, f as rs, h as ns, i as is, c as ls, d as ps, b as us, e as ms, a as ds, g as gs } from "./signature-panel-
|
|
6
|
+
import { A as G, B as V, C as j, z as q, u as z, v as J, w as _, D as K, j as Q, k as X, G as Y, E as Z, s as $, c as aa, a as sa, b as ea, i as oa, g as ta, e as ra, h as na, F as ia, d as la, f as pa, t as ua, M as ma, l as da, N as ga, P as Ta, p as ca, q as Ca, S as ba, n as Da, o as Sa, T as Ia, x as Ba, y as Pa, m as Fa, r as Ma } from "./confirmation-CM2qKExU.js";
|
|
7
|
+
import { A as Na, b as va, C as fa, D as xa, a as ha, F as ya, M as Wa, P as La, c as Aa, g as Ha, p as wa } from "./calendar-B7LCME_T.js";
|
|
8
|
+
import { B as Oa, n as Ra, C as Ea, j as Ga, D as Va, l as ja, H as qa, I as za, N as Ja, O as _a, P as Ka, S as Qa, m as Xa, r as Ya, q as Za, o as $a, p as as, T as ss, k as es, U as os, W as ts, f as rs, h as ns, i as is, c as ls, d as ps, b as us, e as ms, a as ds, g as gs } from "./signature-panel-Dl_Tkisq.js";
|
|
9
9
|
import { B as cs, I as Cs, M as bs, d as Ds, e as Ss, g as Is, N as Bs, b as Ps, a as Fs, f as Ms, P as ks, c as Ns, S as vs, T as fs } from "./mobile-nav-wrapper-CHGsD0xe.js";
|
|
10
10
|
import { B as hs, a as ys, C as Ws, F as Ls, b as As, c as Hs, M as ws, P as Us, S as Os } from "./sidebar-menu-page-RXqfmxT9.js";
|
|
11
11
|
import { A as Es, F as Gs, M as Vs, a as js, T as qs } from "./aside-template-McEj_Gxc.js";
|
package/dist/molecules.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as o, B as t, C as e, z as i, u as r, v as n, w as m, D as l, j as S, k as D, G as c, E as u, s as d, c as g, a as p, b as C, i as F, g as T, e as A, h as P, F as f, d as b, f as w, t as B, M as I, l as M, N as x, P as y, p as k, q as v, S as N, n as h, o as E, T as L, x as U, y as j, m as q, r as z } from "./confirmation-
|
|
2
|
-
import { A as O, P as R, g as _ } from "./calendar-
|
|
1
|
+
import { A as o, B as t, C as e, z as i, u as r, v as n, w as m, D as l, j as S, k as D, G as c, E as u, s as d, c as g, a as p, b as C, i as F, g as T, e as A, h as P, F as f, d as b, f as w, t as B, M as I, l as M, N as x, P as y, p as k, q as v, S as N, n as h, o as E, T as L, x as U, y as j, m as q, r as z } from "./confirmation-CM2qKExU.js";
|
|
2
|
+
import { A as O, P as R, g as _ } from "./calendar-B7LCME_T.js";
|
|
3
3
|
export {
|
|
4
4
|
o as Alert,
|
|
5
5
|
O as Avatar,
|
package/dist/organisms.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as s, n as o, C as t, j as r, D as l, l as n, H as i, I as b, N as d, O as v, P as g, S as p, m as u, r as N, q as k, o as D, p as C, T, k as c, U as M, W as B, f as m, h as y, i as W, c as h, d as H, b as P, e as S, a as f, g as x } from "./signature-panel-
|
|
2
|
-
import { b as L, C as O, D as F, a as U, F as G, M as j, c as q, p as w } from "./calendar-
|
|
1
|
+
import { B as s, n as o, C as t, j as r, D as l, l as n, H as i, I as b, N as d, O as v, P as g, S as p, m as u, r as N, q as k, o as D, p as C, T, k as c, U as M, W as B, f as m, h as y, i as W, c as h, d as H, b as P, e as S, a as f, g as x } from "./signature-panel-Dl_Tkisq.js";
|
|
2
|
+
import { b as L, C as O, D as F, a as U, F as G, M as j, c as q, p as w } from "./calendar-B7LCME_T.js";
|
|
3
3
|
import { B as A, I as E, M as J, d as K, e as Q, g as R, N as V, b as X, a as Y, f as Z, P as _, c as $, S as aa, T as ea } from "./mobile-nav-wrapper-CHGsD0xe.js";
|
|
4
4
|
export {
|
|
5
5
|
s as BackButton,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Button as y, Div as o, On as F, Span as v, Th as R, UseParent as E, I as H, Thead as Q, Tr as X, Table as W, P as p, Li as D, Time as q, Nav as S, Ul as
|
|
2
|
-
import { Atom as d, Component as h, Data as L, DateTime as G, router as x, NavLink as O, DataTracker as z, Jot as V, base as I, Dom as
|
|
1
|
+
import { Button as y, Div as o, On as F, Span as v, Th as R, UseParent as E, I as H, Thead as Q, Tr as X, Table as W, P as p, Li as D, Time as q, Nav as S, Ul as w, Section as P, Canvas as K } from "@base-framework/atoms";
|
|
2
|
+
import { Atom as d, Component as h, Data as L, DateTime as G, router as x, NavLink as O, DataTracker as z, Jot as V, base as I, Dom as T } from "@base-framework/base";
|
|
3
3
|
import { B as C, I as N } from "./buttons-CVEwmPAi.js";
|
|
4
|
-
import { Icons as
|
|
4
|
+
import { Icons as b } from "./icons.es.js";
|
|
5
5
|
import { TableBody as _, ScrollableTableBody as J, List as Z, IntervalTimer as ee } from "@base-framework/organisms";
|
|
6
6
|
import { C as te, I as se, H as ae } from "./inputs-Dmu4Z-7-.js";
|
|
7
|
-
import { A as ie, P as ne } from "./calendar-
|
|
7
|
+
import { A as ie, P as ne } from "./calendar-B7LCME_T.js";
|
|
8
8
|
d((t, e) => ({
|
|
9
9
|
class: "flex items-center px-4 py-2",
|
|
10
10
|
...t,
|
|
@@ -58,7 +58,7 @@ const oe = (t) => {
|
|
|
58
58
|
{ length: s },
|
|
59
59
|
(i, n) => new Date(t, e - 1, a - s + n + 1)
|
|
60
60
|
);
|
|
61
|
-
}, ce = (t, e, s) => Array.from({ length: s }, (a, i) => new Date(t, e + 1, i + 1)),
|
|
61
|
+
}, ce = (t, e, s) => Array.from({ length: s }, (a, i) => new Date(t, e + 1, i + 1)), B = (t, e) => {
|
|
62
62
|
const s = new Date(e, 0, 4), a = (s.getDay() + 6) % 7, i = new Date(s);
|
|
63
63
|
i.setDate(s.getDate() - a);
|
|
64
64
|
const n = new Date(i);
|
|
@@ -165,7 +165,7 @@ const oe = (t) => {
|
|
|
165
165
|
click: e,
|
|
166
166
|
"aria-label": `${t} month`,
|
|
167
167
|
variant: "icon",
|
|
168
|
-
icon: t === "Previous" ?
|
|
168
|
+
icon: t === "Previous" ? b.chevron.single.left : b.chevron.single.right
|
|
169
169
|
}
|
|
170
170
|
), ge = ({ next: t, previous: e }) => o({ class: "flex flex-auto min-h-12 text-sm font-medium relative justify-center items-center" }, [
|
|
171
171
|
v("[[monthName]] [[year]]"),
|
|
@@ -193,7 +193,7 @@ class at extends h {
|
|
|
193
193
|
* @returns {Data}
|
|
194
194
|
*/
|
|
195
195
|
setData() {
|
|
196
|
-
const e = /* @__PURE__ */ new Date(), s = this.selectedWeek || this.calculateCurrentWeek(e), a =
|
|
196
|
+
const e = /* @__PURE__ */ new Date(), s = this.selectedWeek || this.calculateCurrentWeek(e), a = B(s, e.getFullYear());
|
|
197
197
|
return new L({
|
|
198
198
|
monthName: this.getMonthName(a.getMonth()),
|
|
199
199
|
year: a.getFullYear(),
|
|
@@ -276,7 +276,7 @@ class at extends h {
|
|
|
276
276
|
*/
|
|
277
277
|
selectWeek(e, s) {
|
|
278
278
|
this.data.currentWeek = e;
|
|
279
|
-
const a =
|
|
279
|
+
const a = B(e, s);
|
|
280
280
|
this.setDate(a.getMonth(), a.getFullYear(), a.getDate()), typeof this.selectedCallBack == "function" && this.selectedCallBack(e);
|
|
281
281
|
}
|
|
282
282
|
/**
|
|
@@ -301,7 +301,7 @@ const me = (t, e) => {
|
|
|
301
301
|
e.state.checked = !s;
|
|
302
302
|
}, pe = (t) => R({ class: `cursor-pointer py-3 px-4 text-base w-10 ${t.class || ""}` }, [
|
|
303
303
|
E((e) => new te({ class: "mr-2", onChange: (s, a) => me(e, a) }))
|
|
304
|
-
]),
|
|
304
|
+
]), be = ({ align: t, sortable: e, key: s, label: a, sort: i, class: n }) => {
|
|
305
305
|
const l = t || "justify-start";
|
|
306
306
|
return R({
|
|
307
307
|
class: `cursor-pointer py-3 px-4 text-base ${n || ""}`,
|
|
@@ -309,7 +309,7 @@ const me = (t, e) => {
|
|
|
309
309
|
}, [
|
|
310
310
|
o({ class: `flex flex-auto w-full items-center ${l}` }, [
|
|
311
311
|
v(a),
|
|
312
|
-
e && H({ class: "ml-2", html:
|
|
312
|
+
e && H({ class: "ml-2", html: b.arrows.upDown })
|
|
313
313
|
])
|
|
314
314
|
]);
|
|
315
315
|
}, $ = (t) => Q([
|
|
@@ -317,7 +317,7 @@ const me = (t, e) => {
|
|
|
317
317
|
class: "text-muted-foreground border-b",
|
|
318
318
|
map: [
|
|
319
319
|
t.headers,
|
|
320
|
-
(e) => e.label === "checkbox" ? pe({ toggle: t.toggle }) :
|
|
320
|
+
(e) => e.label === "checkbox" ? pe({ toggle: t.toggle }) : be({
|
|
321
321
|
align: e.align,
|
|
322
322
|
sortable: e.sortable,
|
|
323
323
|
key: e.key,
|
|
@@ -326,7 +326,7 @@ const me = (t, e) => {
|
|
|
326
326
|
})
|
|
327
327
|
]
|
|
328
328
|
})
|
|
329
|
-
]),
|
|
329
|
+
]), we = ({ key: t, rows: e, selectRow: s, rowItem: a }) => new _({
|
|
330
330
|
cache: "list",
|
|
331
331
|
key: t,
|
|
332
332
|
items: e,
|
|
@@ -407,7 +407,7 @@ class ke extends h {
|
|
|
407
407
|
this.headers && $({ headers: this.headers, sort: (a) => this.sortRows(a) }),
|
|
408
408
|
// @ts-ignore
|
|
409
409
|
this.customHeader ?? null,
|
|
410
|
-
|
|
410
|
+
we({
|
|
411
411
|
// @ts-ignore
|
|
412
412
|
key: this.key,
|
|
413
413
|
rows: e,
|
|
@@ -571,7 +571,7 @@ const it = d((t) => new ye(
|
|
|
571
571
|
]), Le = (t, e) => t === "online" ? De() : Se(e), Ce = d(({ role: t, lastSeen: e, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
|
|
572
572
|
p({ class: "text-sm leading-6 m-0" }, t),
|
|
573
573
|
Le(s, e)
|
|
574
|
-
])), Ie = (t) => t.split(" ").map((s) => s[0]).join(""),
|
|
574
|
+
])), Ie = (t) => t.split(" ").map((s) => s[0]).join(""), Te = d((t) => D({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
|
|
575
575
|
o({ class: "flex min-w-0 gap-x-4" }, [
|
|
576
576
|
ie({ src: t.image, alt: t.name, fallbackText: Ie(t.name) }),
|
|
577
577
|
ve({ name: t.name, email: t.email })
|
|
@@ -587,8 +587,8 @@ const it = d((t) => new ye(
|
|
|
587
587
|
items: t.users,
|
|
588
588
|
role: "list",
|
|
589
589
|
class: "divide-y divide-border",
|
|
590
|
-
rowItem:
|
|
591
|
-
})),
|
|
590
|
+
rowItem: Te
|
|
591
|
+
})), Be = (t, e) => e.includes(t), Me = (t, e, s) => t.exact ? s === e : Be(e, s), Re = ({ text: t, href: e, exact: s, hidden: a }) => new O({
|
|
592
592
|
text: t,
|
|
593
593
|
href: e,
|
|
594
594
|
exact: s,
|
|
@@ -619,7 +619,7 @@ class ot extends h {
|
|
|
619
619
|
return S(
|
|
620
620
|
{ class: `flex items-center justify-center p-2 text-muted-foreground rounded-md ${this.class || ""}` },
|
|
621
621
|
[
|
|
622
|
-
|
|
622
|
+
w({
|
|
623
623
|
class: "flex space-x-4",
|
|
624
624
|
map: [this.options, (e) => this.addLink(e)],
|
|
625
625
|
watch: {
|
|
@@ -700,14 +700,14 @@ const lt = d((t) => {
|
|
|
700
700
|
variant: "icon",
|
|
701
701
|
class: "back-button",
|
|
702
702
|
click: () => {
|
|
703
|
-
if (
|
|
704
|
-
|
|
703
|
+
if (globalThis.history.length > 2) {
|
|
704
|
+
globalThis.history.back();
|
|
705
705
|
return;
|
|
706
706
|
}
|
|
707
707
|
t.backUrl && app.navigate(t.backUrl);
|
|
708
708
|
}
|
|
709
709
|
}, [
|
|
710
|
-
N(
|
|
710
|
+
N(b.arrows.left)
|
|
711
711
|
])
|
|
712
712
|
]);
|
|
713
713
|
});
|
|
@@ -885,7 +885,7 @@ class rt extends j {
|
|
|
885
885
|
*/
|
|
886
886
|
setupEvents() {
|
|
887
887
|
return [
|
|
888
|
-
["resize",
|
|
888
|
+
["resize", globalThis, () => this.onResize()]
|
|
889
889
|
];
|
|
890
890
|
}
|
|
891
891
|
/**
|
|
@@ -894,7 +894,7 @@ class rt extends j {
|
|
|
894
894
|
* @returns {boolean}
|
|
895
895
|
*/
|
|
896
896
|
canDock() {
|
|
897
|
-
return
|
|
897
|
+
return globalThis.innerWidth >= this.dockSize;
|
|
898
898
|
}
|
|
899
899
|
/**
|
|
900
900
|
* This will handle the overlay resize.
|
|
@@ -941,7 +941,7 @@ const We = d(({ index: t, click: e, state: s }, a) => D({
|
|
|
941
941
|
}]
|
|
942
942
|
],
|
|
943
943
|
click: () => e(t)
|
|
944
|
-
}, a)), Pe = d(({ selectOption: t, state: e }) =>
|
|
944
|
+
}, a)), Pe = d(({ selectOption: t, state: e }) => w({
|
|
945
945
|
class: "border rounded-md list-none m-0 p-0 max-h-[400px] overflow-y-auto",
|
|
946
946
|
for: ["filteredOptions", (s, a) => We({ index: a, click: t, state: e }, s.label)]
|
|
947
947
|
})), Oe = d((t) => o({ class: "relative flex items-center" }, [
|
|
@@ -1104,7 +1104,7 @@ const We = d(({ index: t, click: e, state: s }, a) => D({
|
|
|
1104
1104
|
}, t.label)
|
|
1105
1105
|
]
|
|
1106
1106
|
), $e = (t, e) => (t.callBack = e, Ne(t)), je = (t) => S({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
|
|
1107
|
-
|
|
1107
|
+
w({ class: "flex flex-auto flex-row", map: [t.options, (e) => $e(e, t.callBack)] })
|
|
1108
1108
|
]);
|
|
1109
1109
|
class ht extends h {
|
|
1110
1110
|
/**
|
|
@@ -1208,7 +1208,7 @@ const Ae = (t) => D(
|
|
|
1208
1208
|
}, t.label)
|
|
1209
1209
|
]
|
|
1210
1210
|
), Ue = (t, e) => (t.callBack = e, Ae(t)), Ye = (t) => S({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
|
|
1211
|
-
|
|
1211
|
+
w({ class: "flex flex-auto flex-row", map: [t.options, (e) => Ue(e, t.callBack)] })
|
|
1212
1212
|
]);
|
|
1213
1213
|
class ut extends h {
|
|
1214
1214
|
/**
|
|
@@ -1285,7 +1285,7 @@ class Qe extends h {
|
|
|
1285
1285
|
*/
|
|
1286
1286
|
render() {
|
|
1287
1287
|
return S({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${this.class}` }, [
|
|
1288
|
-
|
|
1288
|
+
w({
|
|
1289
1289
|
class: "flex flex-auto flex-row",
|
|
1290
1290
|
map: [this.options, (e) => this.addLink(e)],
|
|
1291
1291
|
watch: {
|
|
@@ -1442,7 +1442,7 @@ class Xe extends h {
|
|
|
1442
1442
|
* @returns {void}
|
|
1443
1443
|
*/
|
|
1444
1444
|
afterSetup() {
|
|
1445
|
-
this.canvas = this.panel, this.ctx = this.canvas.getContext("2d"),
|
|
1445
|
+
this.canvas = this.panel, this.ctx = this.canvas.getContext("2d"), globalThis.setTimeout(() => {
|
|
1446
1446
|
this.resize(), this.draw();
|
|
1447
1447
|
}, 1);
|
|
1448
1448
|
}
|
|
@@ -1458,7 +1458,7 @@ class Xe extends h {
|
|
|
1458
1458
|
["pointerup", e, a],
|
|
1459
1459
|
["pointerdown", e, i, l],
|
|
1460
1460
|
["pointerout", e, a],
|
|
1461
|
-
["resize",
|
|
1461
|
+
["resize", globalThis, n]
|
|
1462
1462
|
];
|
|
1463
1463
|
}
|
|
1464
1464
|
/**
|
|
@@ -1518,7 +1518,7 @@ class Xe extends h {
|
|
|
1518
1518
|
resize() {
|
|
1519
1519
|
const { canvas: e, ctx: s } = this, a = e.toDataURL();
|
|
1520
1520
|
if (this.scale(), this.setupBackground(s), a !== "data:,") {
|
|
1521
|
-
const i = new
|
|
1521
|
+
const i = new globalThis.Image();
|
|
1522
1522
|
I.on("load", i, function n() {
|
|
1523
1523
|
s.drawImage(i, 0, 0), I.off("load", i, n);
|
|
1524
1524
|
}), i.src = a;
|
|
@@ -1540,7 +1540,7 @@ class Xe extends h {
|
|
|
1540
1540
|
* @returns {void}
|
|
1541
1541
|
*/
|
|
1542
1542
|
noScaleResize() {
|
|
1543
|
-
const e =
|
|
1543
|
+
const e = T.getSize(container);
|
|
1544
1544
|
this.width = canvas.width = e.width, this.height = canvas.height = e.height;
|
|
1545
1545
|
}
|
|
1546
1546
|
/**
|
|
@@ -1550,7 +1550,7 @@ class Xe extends h {
|
|
|
1550
1550
|
* @returns {void}
|
|
1551
1551
|
*/
|
|
1552
1552
|
scale() {
|
|
1553
|
-
const e = this.canvas, s = this.container, a =
|
|
1553
|
+
const e = this.canvas, s = this.container, a = T.getSize(s), i = this.targetSize, n = i.width, l = i.height;
|
|
1554
1554
|
let u = n + "px", c = l + "px";
|
|
1555
1555
|
if (this.width = e.width = n, this.height = e.height = l, a.width !== 0 && a.height !== 0) {
|
|
1556
1556
|
const f = a.width, g = a.height, r = f / n, m = g / l, k = Math.min(r, m);
|
|
@@ -1655,7 +1655,7 @@ class gt extends h {
|
|
|
1655
1655
|
o({ class: "absolute top-2 right-2" }, [
|
|
1656
1656
|
C({
|
|
1657
1657
|
variant: "icon",
|
|
1658
|
-
icon:
|
|
1658
|
+
icon: b.circleX,
|
|
1659
1659
|
click: this.reset.bind(this)
|
|
1660
1660
|
})
|
|
1661
1661
|
]),
|
|
@@ -1711,18 +1711,18 @@ class gt extends h {
|
|
|
1711
1711
|
export {
|
|
1712
1712
|
lt as B,
|
|
1713
1713
|
pe as C,
|
|
1714
|
-
|
|
1715
|
-
|
|
1714
|
+
we as D,
|
|
1715
|
+
be as H,
|
|
1716
1716
|
ct as I,
|
|
1717
1717
|
ot as N,
|
|
1718
1718
|
j as O,
|
|
1719
1719
|
et as P,
|
|
1720
1720
|
it as S,
|
|
1721
1721
|
$ as T,
|
|
1722
|
-
|
|
1722
|
+
Te as U,
|
|
1723
1723
|
at as W,
|
|
1724
1724
|
ce as a,
|
|
1725
|
-
|
|
1725
|
+
B as b,
|
|
1726
1726
|
le as c,
|
|
1727
1727
|
tt as d,
|
|
1728
1728
|
st as e,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This will create a scrollable data table.
|
|
5
5
|
*
|
|
6
6
|
* @param {object} props
|
|
7
|
-
* @property {HTMLElement} [props.scrollContainer] - The container element for scroll events. Defaults to
|
|
7
|
+
* @property {HTMLElement} [props.scrollContainer] - The container element for scroll events. Defaults to globalThis.
|
|
8
8
|
* @property {function} [props.loadMoreItems] - A function to fetch/generate additional items.
|
|
9
9
|
* @property {number} [props.offset] - The initial offset. Defaults to 0.
|
|
10
10
|
* @property {number} [props.limit] - Number of items to load per batch. Defaults to 20.
|
|
@@ -5,7 +5,7 @@ export function ScrollableDataTableBody(props: object): object;
|
|
|
5
5
|
* This will create a scrollable data table.
|
|
6
6
|
*
|
|
7
7
|
* @param {object} props
|
|
8
|
-
* @property {HTMLElement} [props.scrollContainer] - The container element for scroll events. Defaults to
|
|
8
|
+
* @property {HTMLElement} [props.scrollContainer] - The container element for scroll events. Defaults to globalThis.
|
|
9
9
|
* @property {function} [props.loadMoreItems] - A function to fetch/generate additional items.
|
|
10
10
|
* @property {number} [props.offset] - The initial offset. Defaults to 0.
|
|
11
11
|
* @property {number} [props.limit] - Number of items to load per batch. Defaults to 20.
|
package/package.json
CHANGED