@base-framework/ui 1.0.230 → 1.0.232
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/index.es.js
CHANGED
|
@@ -5,7 +5,7 @@ import { V as w, a as R } from "./veil-D4dRxILB.js";
|
|
|
5
5
|
import { Icons as E } from "./icons.es.js";
|
|
6
6
|
import { A as O, B as V, C as j, t as q, E as z, v as J, w as _, x as K, D as Q, j as X, k as Y, H as Z, G as $, s as aa, c as ea, a as sa, b as oa, I as ta, i as ra, g as na, e as la, h as ia, F as pa, d as ua, f as ma, u as da, M as ca, l as ga, N as Ca, P as Ta, p as ba, q as Da, S as Ia, n as Sa, o as Ba, T as Pa, y as Fa, z as Ma, m as ka, r as Na } from "./empty-state-2O1fITpG.js";
|
|
7
7
|
import { A as va, b as xa, C as ya, D as ha, a as Wa, F as Ha, M as La, P as Aa, c as wa, g as Ra, p as Ua } from "./calendar-Bn55oWBo.js";
|
|
8
|
-
import { B as Ga, p as Oa, C as Va, j as ja, D as qa, m as za, k as Ja, H as _a, I as Ka, N as Qa, O as Xa, P as Ya, R as Za, S as $a, n as ae, o as ee, t as se, s as oe, q as te, r as re, T as ne, l as le, U as ie, W as pe, f as ue, h as me, i as de, c as ce, d as ge, b as Ce, e as Te, a as be, g as De } from "./signature-panel-
|
|
8
|
+
import { B as Ga, p as Oa, C as Va, j as ja, D as qa, m as za, k as Ja, H as _a, I as Ka, N as Qa, O as Xa, P as Ya, R as Za, S as $a, n as ae, o as ee, t as se, s as oe, q as te, r as re, T as ne, l as le, U as ie, W as pe, f as ue, h as me, i as de, c as ce, d as ge, b as Ce, e as Te, a as be, g as De } from "./signature-panel-COreIRN2.js";
|
|
9
9
|
import { B as Se, I as Be, M as Pe, d as Fe, e as Me, g as ke, N as Ne, b as fe, a as ve, f as xe, P as ye, c as he, S as We, T as He } from "./mobile-nav-wrapper-Dj67Pb8l.js";
|
|
10
10
|
import { B as Ae, a as we, C as Re, F as Ue, b as Ee, c as Ge, M as Oe, P as Ve, S as je } from "./sidebar-menu-page-BVryQj2Z.js";
|
|
11
11
|
import { A as ze, F as Je, M as _e, a as Ke, T as Qe } from "./aside-template-McEj_Gxc.js";
|
package/dist/organisms.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as s, p as t, C as o, j as r, D as n, m as l, k as i, H as b, I as d, N as g, O as p, P as u, R as v, S as D, n as N, o as k, t as C, s as c, q as T, r as M, T as m, l as y, U as B, W, f as h, h as S, i as H, c as P, d as I, b as f, e as x, a as L, g as O } from "./signature-panel-
|
|
1
|
+
import { B as s, p as t, C as o, j as r, D as n, m as l, k as i, H as b, I as d, N as g, O as p, P as u, R as v, S as D, n as N, o as k, t as C, s as c, q as T, r as M, T as m, l as y, U as B, W, f as h, h as S, i as H, c as P, d as I, b as f, e as x, a as L, g as O } from "./signature-panel-COreIRN2.js";
|
|
2
2
|
import { b as U, C as G, D as R, a as j, F as q, M as w, c as z, p as A } from "./calendar-Bn55oWBo.js";
|
|
3
3
|
import { B as J, I as K, M as Q, d as V, e as X, g as Y, N as Z, b as _, a as $, f as aa, P as ea, c as sa, S as ta, T as oa } from "./mobile-nav-wrapper-Dj67Pb8l.js";
|
|
4
4
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Button as P, Div as o, On as k, Span as $, OnState as at, Th as J, UseParent as nt, I as it, Thead as ot, Tr as lt, Table as A, P as
|
|
1
|
+
import { Button as P, Div as o, On as k, Span as $, OnState as at, Th as J, UseParent as nt, I as it, Thead as ot, Tr as lt, Table as A, P as L, Li as W, Time as rt, Nav as N, Ul as B, Section as _, Canvas as ct } from "@base-framework/atoms";
|
|
2
2
|
import { Atom as g, Component as m, Data as j, DateTime as F, router as O, NavLink as V, DataTracker as Z, Jot as dt, base as U, Dom as Q } from "@base-framework/base";
|
|
3
3
|
import { B as p, I as ht } from "./buttons-Cm9etaEG.js";
|
|
4
4
|
import { Icons as v } from "./icons.es.js";
|
|
@@ -63,7 +63,7 @@ const vt = (e) => {
|
|
|
63
63
|
n.setDate(s.getDate() - a);
|
|
64
64
|
const i = new Date(n);
|
|
65
65
|
return i.setDate(n.getDate() + (e - 1) * 7), i;
|
|
66
|
-
},
|
|
66
|
+
}, Te = (e, t) => {
|
|
67
67
|
const s = new Date(e, t, 1).getDay(), a = new Date(e, t + 1, 0).getDate(), n = [];
|
|
68
68
|
let i = [];
|
|
69
69
|
for (let l = 1 - s; l <= a; l++) {
|
|
@@ -71,7 +71,7 @@ const vt = (e) => {
|
|
|
71
71
|
i.push(l > 0 ? r : null), (i.length === 7 || l === a) && (n.push([...i]), i = []);
|
|
72
72
|
}
|
|
73
73
|
return n;
|
|
74
|
-
},
|
|
74
|
+
}, Le = (e, t) => {
|
|
75
75
|
const s = new Date(e, t + 1, 0).getDate(), a = [];
|
|
76
76
|
let n = [];
|
|
77
77
|
for (let i = 1; i <= s; i++)
|
|
@@ -92,7 +92,7 @@ const vt = (e) => {
|
|
|
92
92
|
`,
|
|
93
93
|
click: () => n(a, s)
|
|
94
94
|
});
|
|
95
|
-
},
|
|
95
|
+
}, Tt = (e, t) => {
|
|
96
96
|
const s = new Date(e, t, 1).getDay(), a = new Date(e, t + 1, 0).getDate(), n = St(e, t, s), i = Array.from({ length: a }, (u, b) => new Date(e, t, b + 1)), l = (n.length + i.length) % 7, r = l === 0 ? 0 : 7 - l, c = Ct(e, t, r), h = [...n, ...i, ...c], y = [];
|
|
97
97
|
for (let u = 0; u < h.length; u += 7) {
|
|
98
98
|
const b = h.slice(u, u + 7), x = b.find((d) => d) || new Date(e, t, 1), { weekNumber: E, year: z } = Dt(x);
|
|
@@ -103,8 +103,8 @@ const vt = (e) => {
|
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
105
|
return y;
|
|
106
|
-
},
|
|
107
|
-
const { year: n, month: i, currentDate: l } = a, r =
|
|
106
|
+
}, Lt = ({ selectWeek: e }) => k("month", (t, s, { data: a }) => {
|
|
107
|
+
const { year: n, month: i, currentDate: l } = a, r = Tt(n, i);
|
|
108
108
|
return o(
|
|
109
109
|
{ class: "grid grid-cols-8 gap-1 text-sm px-4 py-2" },
|
|
110
110
|
[
|
|
@@ -290,7 +290,7 @@ class Be extends m {
|
|
|
290
290
|
next: () => this.goToNextMonth(),
|
|
291
291
|
previous: () => this.goToPreviousMonth()
|
|
292
292
|
}),
|
|
293
|
-
|
|
293
|
+
Lt({
|
|
294
294
|
selectWeek: (t, s) => this.selectWeek(t, s)
|
|
295
295
|
})
|
|
296
296
|
]);
|
|
@@ -333,41 +333,43 @@ const K = ({ label: e, click: t }) => p(
|
|
|
333
333
|
}, Wt = ({ today: e, current: t, blockPriorDates: s, onDateClick: a }) => {
|
|
334
334
|
const { start: n, end: i } = t, l = new Date(t.year, t.month, 1).getDay(), r = new Date(t.year, t.month + 1, 0).getDate(), c = [], h = t.month === 0 ? 11 : t.month - 1, y = t.month === 0 ? t.year - 1 : t.year, u = new Date(y, h + 1, 0).getDate(), b = t.month === 11 ? 0 : t.month + 1, x = t.month === 11 ? t.year + 1 : t.year;
|
|
335
335
|
for (let d = l - 1; d >= 0; d--) {
|
|
336
|
-
const f = u - d, w = Y(y, h, f), D = new Date(y, h, f), S = new Date(e.year, e.month, e.date), C = D < S, I = s && C, M = n === w,
|
|
336
|
+
const f = u - d, w = Y(y, h, f), D = new Date(y, h, f), S = new Date(e.year, e.month, e.date), C = D < S, I = s && C, M = n === w, T = i === w, st = n && i && w > n && w < i;
|
|
337
337
|
c.push({
|
|
338
338
|
day: f,
|
|
339
339
|
iso: w,
|
|
340
340
|
disabled: I,
|
|
341
341
|
isStart: M,
|
|
342
|
-
isEnd:
|
|
342
|
+
isEnd: T,
|
|
343
343
|
isBetween: st,
|
|
344
344
|
isOtherMonth: !0,
|
|
345
345
|
click: () => a(w)
|
|
346
346
|
});
|
|
347
347
|
}
|
|
348
348
|
for (let d = 1; d <= r; d++) {
|
|
349
|
-
const f = Y(t.year, t.month, d), w = new Date(t.year, t.month, d), D = new Date(e.year, e.month, e.date), S = w < D, C = s && S, I = n === f, M = i === f,
|
|
349
|
+
const f = Y(t.year, t.month, d), w = new Date(t.year, t.month, d), D = new Date(e.year, e.month, e.date), S = w < D, C = s && S, I = n === f, M = i === f, T = n && i && f > n && f < i;
|
|
350
350
|
c.push({
|
|
351
351
|
day: d,
|
|
352
352
|
iso: f,
|
|
353
353
|
disabled: C,
|
|
354
354
|
isStart: I,
|
|
355
355
|
isEnd: M,
|
|
356
|
-
isBetween:
|
|
356
|
+
isBetween: T,
|
|
357
357
|
isOtherMonth: !1,
|
|
358
|
-
click: () =>
|
|
358
|
+
click: () => {
|
|
359
|
+
console.log(f), a(f);
|
|
360
|
+
}
|
|
359
361
|
});
|
|
360
362
|
}
|
|
361
363
|
const z = 42 - c.length;
|
|
362
364
|
for (let d = 1; d <= z; d++) {
|
|
363
|
-
const f = Y(x, b, d), w = new Date(x, b, d), D = new Date(e.year, e.month, e.date), S = w < D, C = s && S, I = n === f, M = i === f,
|
|
365
|
+
const f = Y(x, b, d), w = new Date(x, b, d), D = new Date(e.year, e.month, e.date), S = w < D, C = s && S, I = n === f, M = i === f, T = n && i && f > n && f < i;
|
|
364
366
|
c.push({
|
|
365
367
|
day: d,
|
|
366
368
|
iso: f,
|
|
367
369
|
disabled: C,
|
|
368
370
|
isStart: I,
|
|
369
371
|
isEnd: M,
|
|
370
|
-
isBetween:
|
|
372
|
+
isBetween: T,
|
|
371
373
|
isOtherMonth: !0,
|
|
372
374
|
click: () => a(f)
|
|
373
375
|
});
|
|
@@ -522,15 +524,15 @@ class Re extends m {
|
|
|
522
524
|
handleClick(t) {
|
|
523
525
|
if (this.data.selecting === "start") {
|
|
524
526
|
this.data.current.start = t, this.data.current.end = null, this.data.selecting = "end";
|
|
525
|
-
const s = new Date(t);
|
|
526
|
-
this.setCurrent({
|
|
527
|
+
const s = /* @__PURE__ */ new Date(t + "T00:00:00");
|
|
528
|
+
console.log(s.getMonth(), s.getFullYear(), s.getDate()), this.setCurrent({
|
|
527
529
|
month: s.getMonth(),
|
|
528
530
|
year: s.getFullYear(),
|
|
529
531
|
date: s.getDate()
|
|
530
532
|
});
|
|
531
533
|
} else {
|
|
532
534
|
this.data.current.start && t < this.data.current.start ? (this.data.current.end = this.data.current.start, this.data.current.start = t) : this.data.current.end = t, this.data.selecting = "start";
|
|
533
|
-
const s = new Date(t);
|
|
535
|
+
const s = /* @__PURE__ */ new Date(t + "T00:00:00");
|
|
534
536
|
this.setCurrent({
|
|
535
537
|
month: s.getMonth(),
|
|
536
538
|
year: s.getFullYear(),
|
|
@@ -954,18 +956,18 @@ const Pe = g((e) => new Kt(
|
|
|
954
956
|
emptyState: e.emptyState
|
|
955
957
|
}
|
|
956
958
|
)), Gt = g(({ name: e, email: t }) => o({ class: "min-w-0 flex-auto" }, [
|
|
957
|
-
|
|
958
|
-
|
|
959
|
+
L({ class: "text-base font-semibold leading-6 m-0" }, e),
|
|
960
|
+
L({ class: "truncate text-sm leading-5 text-muted-foreground m-0" }, t)
|
|
959
961
|
])), Jt = () => o({ class: "flex items-center gap-x-1.5" }, [
|
|
960
962
|
o({ class: "flex-none rounded-full bg-emerald-500/20 p-1" }, [
|
|
961
963
|
o({ class: "h-1.5 w-1.5 rounded-full bg-emerald-500" })
|
|
962
964
|
]),
|
|
963
|
-
|
|
964
|
-
]), _t = (e) =>
|
|
965
|
+
L({ class: "text-xs leading-5 text-gray-500" }, "Online")
|
|
966
|
+
]), _t = (e) => L({ class: "text-xs leading-5 text-muted-foreground" }, [
|
|
965
967
|
$("Last seen "),
|
|
966
968
|
rt({ datetime: e }, "3h ago")
|
|
967
969
|
]), Vt = (e, t) => e === "online" ? Jt() : _t(t), Zt = g(({ role: e, lastSeen: t, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
|
|
968
|
-
|
|
970
|
+
L({ class: "text-sm leading-6 m-0" }, e),
|
|
969
971
|
Vt(s, t)
|
|
970
972
|
])), te = (e) => e.split(" ").map((s) => s[0]).join(""), ee = g((e) => W({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
|
|
971
973
|
o({ class: "flex min-w-0 gap-x-4" }, [
|
|
@@ -2114,11 +2116,11 @@ export {
|
|
|
2114
2116
|
Ct as a,
|
|
2115
2117
|
X as b,
|
|
2116
2118
|
Dt as c,
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
+
Te as d,
|
|
2120
|
+
Le as e,
|
|
2119
2121
|
Mt as f,
|
|
2120
2122
|
St as g,
|
|
2121
|
-
|
|
2123
|
+
Lt as h,
|
|
2122
2124
|
Bt as i,
|
|
2123
2125
|
tt as j,
|
|
2124
2126
|
Oe as k,
|
package/package.json
CHANGED