@base-framework/ui 1.0.227 → 1.0.229
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-B1BZiFct.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-B1BZiFct.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,8 +1,8 @@
|
|
|
1
|
-
import { Button as
|
|
2
|
-
import { Atom as f, Component as g, Data as
|
|
1
|
+
import { Button as S, Div as o, On as w, Span as C, OnState as K, Th as F, UseParent as G, I as J, Thead as _, Tr as V, Table as P, P as x, Li as I, Time as Z, Nav as M, Ul as k, Section as H, Canvas as tt } from "@base-framework/atoms";
|
|
2
|
+
import { Atom as f, Component as g, Data as L, DateTime as $, router as D, NavLink as U, DataTracker as E, Jot as et, base as O, Dom as N } from "@base-framework/base";
|
|
3
3
|
import { B as m, I as st } from "./buttons-Cm9etaEG.js";
|
|
4
4
|
import { Icons as b } from "./icons.es.js";
|
|
5
|
-
import { F as at, p as
|
|
5
|
+
import { F as at, p as v, A as nt, P as it } from "./calendar-Bn55oWBo.js";
|
|
6
6
|
import { TableBody as ot, DataTableBody as lt, ScrollableTableBody as rt, List as ct, IntervalTimer as dt } from "@base-framework/organisms";
|
|
7
7
|
import { C as ht, I as ut, H as ft } from "./inputs-CMjx5-IX.js";
|
|
8
8
|
f((e, t) => ({
|
|
@@ -10,7 +10,7 @@ f((e, t) => ({
|
|
|
10
10
|
...e,
|
|
11
11
|
children: t
|
|
12
12
|
}));
|
|
13
|
-
f(({ value: e, label: t }) =>
|
|
13
|
+
f(({ value: e, label: t }) => S({
|
|
14
14
|
class: "inline-flex flex-auto items-center justify-center whitespace-nowrap rounded-md px-8 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",
|
|
15
15
|
onState: ["performance", { active: e }],
|
|
16
16
|
dataSet: ["performance", ["state", e, "active"]],
|
|
@@ -58,7 +58,7 @@ const gt = (e) => {
|
|
|
58
58
|
{ length: s },
|
|
59
59
|
(n, i) => new Date(e, t - 1, a - s + i + 1)
|
|
60
60
|
);
|
|
61
|
-
}, yt = (e, t, s) => Array.from({ length: s }, (a, n) => new Date(e, t + 1, n + 1)),
|
|
61
|
+
}, yt = (e, t, s) => Array.from({ length: s }, (a, n) => new Date(e, t + 1, n + 1)), z = (e, t) => {
|
|
62
62
|
const s = new Date(t, 0, 4), a = (s.getDay() + 6) % 7, n = new Date(s);
|
|
63
63
|
n.setDate(s.getDate() - a);
|
|
64
64
|
const i = new Date(n);
|
|
@@ -82,7 +82,7 @@ const gt = (e) => {
|
|
|
82
82
|
return a.getDate() === e && a.getMonth() === t && a.getFullYear() === s;
|
|
83
83
|
}, bt = ({ day: e, month: t, year: s, weekNumber: a, selectWeek: n }) => {
|
|
84
84
|
const i = wt(e, t, s);
|
|
85
|
-
return
|
|
85
|
+
return S({
|
|
86
86
|
text: e || "",
|
|
87
87
|
disabled: !e,
|
|
88
88
|
class: `
|
|
@@ -95,10 +95,10 @@ const gt = (e) => {
|
|
|
95
95
|
}, xt = (e, t) => {
|
|
96
96
|
const s = new Date(e, t, 1).getDay(), a = new Date(e, t + 1, 0).getDate(), n = pt(e, t, s), i = Array.from({ length: a }, (h, p) => new Date(e, t, p + 1)), l = (n.length + i.length) % 7, r = l === 0 ? 0 : 7 - l, c = yt(e, t, r), d = [...n, ...i, ...c], u = [];
|
|
97
97
|
for (let h = 0; h < d.length; h += 7) {
|
|
98
|
-
const p = d.slice(h, h + 7), y = p.find((
|
|
98
|
+
const p = d.slice(h, h + 7), y = p.find((R) => R) || new Date(e, t, 1), { weekNumber: T, year: B } = mt(y);
|
|
99
99
|
u.push({
|
|
100
|
-
weekNumber:
|
|
101
|
-
year:
|
|
100
|
+
weekNumber: T,
|
|
101
|
+
year: B,
|
|
102
102
|
days: p
|
|
103
103
|
});
|
|
104
104
|
}
|
|
@@ -115,7 +115,7 @@ const gt = (e) => {
|
|
|
115
115
|
class: "grid grid-cols-7 col-span-7 text-center text-muted-foreground items-center"
|
|
116
116
|
},
|
|
117
117
|
["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(
|
|
118
|
-
(c) =>
|
|
118
|
+
(c) => C({ class: "px-1 py-1", text: c })
|
|
119
119
|
)
|
|
120
120
|
),
|
|
121
121
|
// Render each "week" row
|
|
@@ -154,7 +154,7 @@ const gt = (e) => {
|
|
|
154
154
|
)
|
|
155
155
|
]
|
|
156
156
|
);
|
|
157
|
-
}),
|
|
157
|
+
}), Y = ({ label: e, click: t }) => m(
|
|
158
158
|
{
|
|
159
159
|
class: `
|
|
160
160
|
inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
|
|
@@ -168,12 +168,12 @@ const gt = (e) => {
|
|
|
168
168
|
icon: e === "Previous" ? b.chevron.single.left : b.chevron.single.right
|
|
169
169
|
}
|
|
170
170
|
), vt = ({ next: e, previous: t }) => o({ class: "flex flex-auto min-h-12 text-sm font-medium relative justify-center items-center" }, [
|
|
171
|
-
|
|
172
|
-
|
|
171
|
+
C("[[monthName]] [[year]]"),
|
|
172
|
+
Y({
|
|
173
173
|
label: "Previous",
|
|
174
174
|
click: t
|
|
175
175
|
}),
|
|
176
|
-
|
|
176
|
+
Y({
|
|
177
177
|
label: "Next",
|
|
178
178
|
click: e
|
|
179
179
|
})
|
|
@@ -193,8 +193,8 @@ class ve extends g {
|
|
|
193
193
|
* @returns {Data}
|
|
194
194
|
*/
|
|
195
195
|
setData() {
|
|
196
|
-
const t = /* @__PURE__ */ new Date(), s = this.selectedWeek || this.calculateCurrentWeek(t), a =
|
|
197
|
-
return new
|
|
196
|
+
const t = /* @__PURE__ */ new Date(), s = this.selectedWeek || this.calculateCurrentWeek(t), a = z(s, t.getFullYear());
|
|
197
|
+
return new L({
|
|
198
198
|
monthName: this.getMonthName(a.getMonth()),
|
|
199
199
|
year: a.getFullYear(),
|
|
200
200
|
month: a.getMonth(),
|
|
@@ -276,7 +276,7 @@ class ve extends g {
|
|
|
276
276
|
*/
|
|
277
277
|
selectWeek(t, s) {
|
|
278
278
|
this.data.currentWeek = t;
|
|
279
|
-
const a =
|
|
279
|
+
const a = z(t, s);
|
|
280
280
|
this.setDate(a.getMonth(), a.getFullYear(), a.getDate()), typeof this.selectedCallBack == "function" && this.selectedCallBack(t);
|
|
281
281
|
}
|
|
282
282
|
/**
|
|
@@ -296,7 +296,7 @@ class ve extends g {
|
|
|
296
296
|
]);
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
|
-
const
|
|
299
|
+
const j = ({ label: e, click: t }) => m(
|
|
300
300
|
{
|
|
301
301
|
class: `
|
|
302
302
|
inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
|
|
@@ -309,11 +309,11 @@ const A = ({ label: e, click: t }) => m(
|
|
|
309
309
|
variant: "icon",
|
|
310
310
|
icon: e === "Previous" ? b.chevron.single.left : b.chevron.single.right
|
|
311
311
|
}
|
|
312
|
-
), Dt = ({
|
|
313
|
-
m({ click:
|
|
314
|
-
m({ click:
|
|
315
|
-
|
|
316
|
-
|
|
312
|
+
), Dt = ({ onMonthClick: e, onYearClick: t, next: s, previous: a }) => o({ class: "flex items-center justify-center space-x-2 relative min-h-12 text-sm font-medium" }, [
|
|
313
|
+
m({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
|
|
314
|
+
m({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
|
|
315
|
+
j({ label: "Previous", click: a }),
|
|
316
|
+
j({ label: "Next", click: s })
|
|
317
317
|
]), St = (e) => o({ class: "h-9 flex items-center justify-center font-medium" }, e), Ct = () => o(
|
|
318
318
|
{ class: "grid grid-cols-7 gap-1 text-center text-xs font-medium text-muted-foreground mb-2" },
|
|
319
319
|
["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(St)
|
|
@@ -321,7 +321,7 @@ const A = ({ label: e, click: t }) => m(
|
|
|
321
321
|
let r = "ghost", c = "";
|
|
322
322
|
return a || n ? (r = "default", c = "bg-primary text-primary-foreground hover:bg-primary/90") : i && (c = "bg-accent text-accent-foreground hover:bg-accent/80"), s && (c += " opacity-50 cursor-not-allowed"), m(
|
|
323
323
|
{
|
|
324
|
-
class: `flex items-center justify-center
|
|
324
|
+
class: `flex items-center justify-center p-0 text-sm font-medium rounded-md transition-colors ${c}`,
|
|
325
325
|
variant: r,
|
|
326
326
|
disabled: s,
|
|
327
327
|
click: () => {
|
|
@@ -335,22 +335,14 @@ const A = ({ label: e, click: t }) => m(
|
|
|
335
335
|
for (let d = 0; d < l; d++)
|
|
336
336
|
c.push(null);
|
|
337
337
|
for (let d = 1; d <= r; d++) {
|
|
338
|
-
const u = at(t.year, t.month, d), h = new Date(t.year, t.month, d), p = new Date(e.year, e.month, e.date), y = h < p,
|
|
339
|
-
|
|
338
|
+
const u = at(t.year, t.month, d), h = new Date(t.year, t.month, d), p = new Date(e.year, e.month, e.date), y = h < p, T = s && y, B = n === u, R = i === u, q = n && i && u > n && u < i;
|
|
339
|
+
c.push({
|
|
340
340
|
day: d,
|
|
341
341
|
iso: u,
|
|
342
|
-
disabled:
|
|
343
|
-
isStart:
|
|
344
|
-
isEnd:
|
|
345
|
-
isBetween:
|
|
346
|
-
click: () => a(u)
|
|
347
|
-
}), c.push({
|
|
348
|
-
day: d,
|
|
349
|
-
iso: u,
|
|
350
|
-
disabled: v,
|
|
351
|
-
isStart: D,
|
|
352
|
-
isEnd: S,
|
|
353
|
-
isBetween: N,
|
|
342
|
+
disabled: T,
|
|
343
|
+
isStart: B,
|
|
344
|
+
isEnd: R,
|
|
345
|
+
isBetween: q,
|
|
354
346
|
click: () => a(u)
|
|
355
347
|
});
|
|
356
348
|
}
|
|
@@ -370,8 +362,6 @@ const A = ({ label: e, click: t }) => m(
|
|
|
370
362
|
);
|
|
371
363
|
}, Lt = f((e, t) => o({ class: "flex flex-auto flex-col" }, [
|
|
372
364
|
Dt({
|
|
373
|
-
monthName: e.monthName,
|
|
374
|
-
year: e.year,
|
|
375
365
|
onMonthClick: e.onMonthClick,
|
|
376
366
|
onYearClick: e.onYearClick,
|
|
377
367
|
next: e.next,
|
|
@@ -412,16 +402,16 @@ const A = ({ label: e, click: t }) => m(
|
|
|
412
402
|
variant: i === "start" ? "primary" : "outline",
|
|
413
403
|
class: "flex-1"
|
|
414
404
|
}, [
|
|
415
|
-
o({ class: "font-medium" },
|
|
405
|
+
o({ class: "font-medium" }, A("current.start", "Start Date"))
|
|
416
406
|
])),
|
|
417
407
|
w("selecting", (i) => m({
|
|
418
408
|
click: n,
|
|
419
409
|
variant: i === "end" ? "primary" : "outline",
|
|
420
410
|
class: "flex-1"
|
|
421
411
|
}, [
|
|
422
|
-
o({ class: "font-medium" },
|
|
412
|
+
o({ class: "font-medium" }, A("current.end", "End Date"))
|
|
423
413
|
]))
|
|
424
|
-
]),
|
|
414
|
+
]), A = (e, t) => [`[[${e}]]`, (s) => s == null ? t : Rt(s)], Rt = (e) => {
|
|
425
415
|
const t = /* @__PURE__ */ new Date(e + "T00:00:00"), s = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], a = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
|
426
416
|
return `${s[t.getDay()]}, ${t.getDate()} ${a[t.getMonth()]}`;
|
|
427
417
|
}, Pt = ({ currentYear: e, onSelect: t }) => {
|
|
@@ -458,14 +448,14 @@ class De extends g {
|
|
|
458
448
|
*/
|
|
459
449
|
setData() {
|
|
460
450
|
const t = /* @__PURE__ */ new Date(), s = this.startDate ? /* @__PURE__ */ new Date(this.startDate + "T00:00:00") : t, a = s.getMonth(), n = s.getFullYear();
|
|
461
|
-
return new
|
|
451
|
+
return new L({
|
|
462
452
|
today: {
|
|
463
453
|
date: t.getDate(),
|
|
464
454
|
month: t.getMonth(),
|
|
465
455
|
year: t.getFullYear()
|
|
466
456
|
},
|
|
467
457
|
monthName: this.getMonthName(a),
|
|
468
|
-
currentData: `${s.getFullYear()}-${
|
|
458
|
+
currentData: `${s.getFullYear()}-${v(s.getMonth() + 1)}-${v(s.getDate())}`,
|
|
469
459
|
current: {
|
|
470
460
|
date: t.getDate(),
|
|
471
461
|
month: a,
|
|
@@ -506,7 +496,7 @@ class De extends g {
|
|
|
506
496
|
if (this.data.selecting === "start") {
|
|
507
497
|
this.data.current.start = t, this.data.current.end = null, this.data.selecting = "end";
|
|
508
498
|
const s = new Date(t);
|
|
509
|
-
this.
|
|
499
|
+
this.setCurrent({
|
|
510
500
|
month: s.getMonth(),
|
|
511
501
|
year: s.getFullYear(),
|
|
512
502
|
date: s.getDate()
|
|
@@ -514,7 +504,7 @@ class De extends g {
|
|
|
514
504
|
} else {
|
|
515
505
|
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";
|
|
516
506
|
const s = new Date(t);
|
|
517
|
-
this.
|
|
507
|
+
this.setCurrent({
|
|
518
508
|
month: s.getMonth(),
|
|
519
509
|
year: s.getFullYear(),
|
|
520
510
|
date: s.getDate()
|
|
@@ -529,7 +519,7 @@ class De extends g {
|
|
|
529
519
|
*/
|
|
530
520
|
setCurrent({ month: t, year: s, date: a = null }) {
|
|
531
521
|
const n = this.data.current;
|
|
532
|
-
n.month = (t + 12) % 12, n.year = s + (t < 0 ? -1 : t > 11 ? 1 : 0), a !== null && (n.date = a), this.data.monthName = this.getMonthName(n.month), this.data.currentDate = `${s}-${
|
|
522
|
+
n.month = (t + 12) % 12, n.year = s + (t < 0 ? -1 : t > 11 ? 1 : 0), a !== null && (n.date = a), this.data.monthName = this.getMonthName(n.month), this.data.currentDate = `${s}-${v(t + 1)}-${v(n.date)}`;
|
|
533
523
|
}
|
|
534
524
|
/**
|
|
535
525
|
* Render the range calendar.
|
|
@@ -594,16 +584,16 @@ class De extends g {
|
|
|
594
584
|
const $t = (e, t) => {
|
|
595
585
|
const s = e.toggleAllSelectedRows();
|
|
596
586
|
t.state.checked = !s;
|
|
597
|
-
}, Wt = (e) =>
|
|
587
|
+
}, Wt = (e) => F({ class: `cursor-pointer py-3 px-4 text-base w-10 ${e.class || ""}` }, [
|
|
598
588
|
G((t) => new ht({ class: "mr-2", onChange: (s, a) => $t(t, a) }))
|
|
599
|
-
]),
|
|
589
|
+
]), Ot = ({ align: e, sortable: t, key: s, label: a, sort: n, class: i }) => {
|
|
600
590
|
const l = e || "justify-start";
|
|
601
|
-
return
|
|
591
|
+
return F({
|
|
602
592
|
class: `cursor-pointer py-3 px-4 text-base ${i || ""}`,
|
|
603
593
|
click: t && (() => n(s))
|
|
604
594
|
}, [
|
|
605
595
|
o({ class: `flex flex-auto w-full items-center ${l}` }, [
|
|
606
|
-
|
|
596
|
+
C(a),
|
|
607
597
|
t && J({ class: "ml-2", html: b.arrows.upDown })
|
|
608
598
|
])
|
|
609
599
|
]);
|
|
@@ -612,7 +602,7 @@ const $t = (e, t) => {
|
|
|
612
602
|
class: "text-muted-foreground border-b",
|
|
613
603
|
map: [
|
|
614
604
|
e.headers,
|
|
615
|
-
(t) => t.label === "checkbox" ? Wt({ toggle: e.toggle }) :
|
|
605
|
+
(t) => t.label === "checkbox" ? Wt({ toggle: e.toggle }) : Ot({
|
|
616
606
|
align: t.align,
|
|
617
607
|
sortable: t.sortable,
|
|
618
608
|
key: t.key,
|
|
@@ -621,7 +611,7 @@ const $t = (e, t) => {
|
|
|
621
611
|
})
|
|
622
612
|
]
|
|
623
613
|
})
|
|
624
|
-
]),
|
|
614
|
+
]), Nt = ({ key: e, rows: t, selectRow: s, rowItem: a, emptyState: n }) => new ot({
|
|
625
615
|
cache: "list",
|
|
626
616
|
key: e,
|
|
627
617
|
items: t,
|
|
@@ -629,7 +619,7 @@ const $t = (e, t) => {
|
|
|
629
619
|
class: "divide-y divide-border",
|
|
630
620
|
emptyState: n
|
|
631
621
|
});
|
|
632
|
-
class
|
|
622
|
+
class Q extends g {
|
|
633
623
|
/**
|
|
634
624
|
* Initializes component data.
|
|
635
625
|
*
|
|
@@ -637,7 +627,7 @@ class X extends g {
|
|
|
637
627
|
*/
|
|
638
628
|
setData() {
|
|
639
629
|
let t = this.rows && this.rows.length > 0;
|
|
640
|
-
return (this.loadMoreItems || this.tableData) && !t && (t = null), new
|
|
630
|
+
return (this.loadMoreItems || this.tableData) && !t && (t = null), new L({
|
|
641
631
|
selectedRows: [],
|
|
642
632
|
// @ts-ignore
|
|
643
633
|
hasItems: t,
|
|
@@ -707,7 +697,7 @@ class X extends g {
|
|
|
707
697
|
this.headers && W({ headers: this.headers, sort: (a) => this.sortRows(a) }),
|
|
708
698
|
// @ts-ignore
|
|
709
699
|
this.customHeader ?? null,
|
|
710
|
-
|
|
700
|
+
Nt({
|
|
711
701
|
// @ts-ignore
|
|
712
702
|
key: this.key,
|
|
713
703
|
rows: t,
|
|
@@ -793,7 +783,7 @@ const zt = (e) => new lt({
|
|
|
793
783
|
rowItem: (t) => e.rowItem(t, e.selectRow),
|
|
794
784
|
class: "divide-y divide-border"
|
|
795
785
|
});
|
|
796
|
-
class Yt extends
|
|
786
|
+
class Yt extends Q {
|
|
797
787
|
/**
|
|
798
788
|
* Renders the DataTable component.
|
|
799
789
|
*
|
|
@@ -869,7 +859,7 @@ const Se = f((e) => new Yt(
|
|
|
869
859
|
rowItem: (t) => e.rowItem(t, e.selectRow),
|
|
870
860
|
class: "divide-y divide-border"
|
|
871
861
|
});
|
|
872
|
-
class At extends
|
|
862
|
+
class At extends Q {
|
|
873
863
|
/**
|
|
874
864
|
* Renders the DataTable component.
|
|
875
865
|
*
|
|
@@ -945,12 +935,12 @@ const Ce = f((e) => new At(
|
|
|
945
935
|
]),
|
|
946
936
|
x({ class: "text-xs leading-5 text-gray-500" }, "Online")
|
|
947
937
|
]), Ut = (e) => x({ class: "text-xs leading-5 text-muted-foreground" }, [
|
|
948
|
-
|
|
938
|
+
C("Last seen "),
|
|
949
939
|
Z({ datetime: e }, "3h ago")
|
|
950
940
|
]), Et = (e, t) => e === "online" ? Ht() : Ut(t), Qt = f(({ role: e, lastSeen: t, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
|
|
951
941
|
x({ class: "text-sm leading-6 m-0" }, e),
|
|
952
942
|
Et(s, t)
|
|
953
|
-
])), Xt = (e) => e.split(" ").map((s) => s[0]).join(""), qt = f((e) =>
|
|
943
|
+
])), Xt = (e) => e.split(" ").map((s) => s[0]).join(""), qt = f((e) => I({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
|
|
954
944
|
o({ class: "flex min-w-0 gap-x-4" }, [
|
|
955
945
|
nt({ src: e.image, alt: e.name, fallbackText: Xt(e.name) }),
|
|
956
946
|
Ft({ name: e.name, email: e.email })
|
|
@@ -967,7 +957,7 @@ const Ce = f((e) => new At(
|
|
|
967
957
|
role: "list",
|
|
968
958
|
class: "divide-y divide-border",
|
|
969
959
|
rowItem: qt
|
|
970
|
-
})), Kt = (e, t) => t.includes(e), Gt = (e, t, s) => e.exact ? s === t : Kt(t, s), Jt = ({ text: e, href: t, exact: s, hidden: a }) => new
|
|
960
|
+
})), Kt = (e, t) => t.includes(e), Gt = (e, t, s) => e.exact ? s === t : Kt(t, s), Jt = ({ text: e, href: t, exact: s, hidden: a }) => new U({
|
|
971
961
|
text: e,
|
|
972
962
|
href: t,
|
|
973
963
|
exact: s,
|
|
@@ -995,14 +985,14 @@ class Me extends g {
|
|
|
995
985
|
* @returns {object}
|
|
996
986
|
*/
|
|
997
987
|
render() {
|
|
998
|
-
return
|
|
988
|
+
return M(
|
|
999
989
|
{ class: `flex items-center justify-center p-2 text-muted-foreground rounded-md ${this.class || ""}` },
|
|
1000
990
|
[
|
|
1001
991
|
k({
|
|
1002
992
|
class: "flex space-x-4",
|
|
1003
993
|
map: [this.options, (t) => this.addLink(t)],
|
|
1004
994
|
watch: {
|
|
1005
|
-
value: ["[[path]]",
|
|
995
|
+
value: ["[[path]]", D.data],
|
|
1006
996
|
callBack: this.updateLinks.bind(this)
|
|
1007
997
|
}
|
|
1008
998
|
})
|
|
@@ -1015,7 +1005,7 @@ class Me extends g {
|
|
|
1015
1005
|
* @returns {void}
|
|
1016
1006
|
*/
|
|
1017
1007
|
afterSetup() {
|
|
1018
|
-
const t =
|
|
1008
|
+
const t = D.data.path;
|
|
1019
1009
|
this.updateLinks(t);
|
|
1020
1010
|
}
|
|
1021
1011
|
/**
|
|
@@ -1078,7 +1068,7 @@ const Le = f((e) => {
|
|
|
1078
1068
|
m({ variant: "back", class: "ghost", ...e })
|
|
1079
1069
|
]);
|
|
1080
1070
|
});
|
|
1081
|
-
class
|
|
1071
|
+
class X extends g {
|
|
1082
1072
|
/**
|
|
1083
1073
|
* This will declare the props for the compiler.
|
|
1084
1074
|
*
|
|
@@ -1165,13 +1155,13 @@ class q extends g {
|
|
|
1165
1155
|
return this.children;
|
|
1166
1156
|
}
|
|
1167
1157
|
}
|
|
1168
|
-
|
|
1158
|
+
E.addType("dockableOverlay", (e) => {
|
|
1169
1159
|
if (!e)
|
|
1170
1160
|
return;
|
|
1171
1161
|
const t = e.component;
|
|
1172
1162
|
t && t.rendered === !0 && t.state.docked === !1 && t.destroy();
|
|
1173
1163
|
});
|
|
1174
|
-
class Te extends
|
|
1164
|
+
class Te extends X {
|
|
1175
1165
|
/**
|
|
1176
1166
|
* This will stop presistence.
|
|
1177
1167
|
*
|
|
@@ -1237,7 +1227,7 @@ class Te extends q {
|
|
|
1237
1227
|
* @returns {void}
|
|
1238
1228
|
*/
|
|
1239
1229
|
afterSetup() {
|
|
1240
|
-
|
|
1230
|
+
E.add(
|
|
1241
1231
|
this.container,
|
|
1242
1232
|
"dockableOverlay",
|
|
1243
1233
|
{
|
|
@@ -1280,7 +1270,7 @@ class Te extends q {
|
|
|
1280
1270
|
document.documentElement.style.overflowY = "auto";
|
|
1281
1271
|
}
|
|
1282
1272
|
}
|
|
1283
|
-
class Be extends
|
|
1273
|
+
class Be extends X {
|
|
1284
1274
|
/**
|
|
1285
1275
|
* This will get the overlay type.
|
|
1286
1276
|
*
|
|
@@ -1299,7 +1289,7 @@ class Be extends q {
|
|
|
1299
1289
|
this.container = t, this.initialize();
|
|
1300
1290
|
}
|
|
1301
1291
|
}
|
|
1302
|
-
const _t = f(({ index: e, click: t, state: s }, a) =>
|
|
1292
|
+
const _t = f(({ index: e, click: t, state: s }, a) => I({
|
|
1303
1293
|
class: "p-2 cursor-pointer hover:bg-muted/50",
|
|
1304
1294
|
onState: [
|
|
1305
1295
|
[s, "selectedIndex", {
|
|
@@ -1352,7 +1342,7 @@ const _t = f(({ index: e, click: t, state: s }, a) => T({
|
|
|
1352
1342
|
*/
|
|
1353
1343
|
setData() {
|
|
1354
1344
|
const e = this.options || [];
|
|
1355
|
-
return new
|
|
1345
|
+
return new L({
|
|
1356
1346
|
options: e,
|
|
1357
1347
|
filteredOptions: e
|
|
1358
1348
|
});
|
|
@@ -1463,19 +1453,19 @@ const _t = f(({ index: e, click: t, state: s }, a) => T({
|
|
|
1463
1453
|
]);
|
|
1464
1454
|
}
|
|
1465
1455
|
}
|
|
1466
|
-
), ee = (e) =>
|
|
1456
|
+
), ee = (e) => I(
|
|
1467
1457
|
{
|
|
1468
1458
|
class: "inline-flex flex-auto items-center justify-center whitespace-nowrap rounded-sm text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:shadow-sm",
|
|
1469
1459
|
dataSet: ["selected", ["state", e.value, "active"]]
|
|
1470
1460
|
},
|
|
1471
1461
|
[
|
|
1472
|
-
|
|
1462
|
+
S({
|
|
1473
1463
|
class: "flex flex-auto justify-center items-center px-3 py-1.5 rounded-md",
|
|
1474
1464
|
onSet: ["selected", { selected: e.value }],
|
|
1475
1465
|
click: (t) => e.callBack(e.value)
|
|
1476
1466
|
}, e.label)
|
|
1477
1467
|
]
|
|
1478
|
-
), se = (e, t) => (e.callBack = t, ee(e)), ae = (e) =>
|
|
1468
|
+
), se = (e, t) => (e.callBack = t, ee(e)), ae = (e) => M({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${e.class}` }, [
|
|
1479
1469
|
k({ class: "flex flex-auto flex-row", map: [e.options, (t) => se(t, e.callBack)] })
|
|
1480
1470
|
]);
|
|
1481
1471
|
class Pe extends g {
|
|
@@ -1500,7 +1490,7 @@ class Pe extends g {
|
|
|
1500
1490
|
options: this.options,
|
|
1501
1491
|
callBack: t
|
|
1502
1492
|
}),
|
|
1503
|
-
|
|
1493
|
+
H({
|
|
1504
1494
|
class: "tab-content",
|
|
1505
1495
|
onState: ["selected", this.updateContent.bind(this)]
|
|
1506
1496
|
})
|
|
@@ -1566,20 +1556,20 @@ class Pe extends g {
|
|
|
1566
1556
|
};
|
|
1567
1557
|
}
|
|
1568
1558
|
}
|
|
1569
|
-
const ne = (e) =>
|
|
1559
|
+
const ne = (e) => I(
|
|
1570
1560
|
{
|
|
1571
1561
|
class: "inline-flex flex-auto items-center justify-center whitespace-nowrap rounded-sm text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:shadow-sm",
|
|
1572
1562
|
dataSet: ["selected", ["state", e.value, "active"]]
|
|
1573
1563
|
},
|
|
1574
1564
|
[
|
|
1575
|
-
|
|
1565
|
+
S({
|
|
1576
1566
|
class: "flex flex-auto justify-center items-center px-3 py-1.5 rounded-md disabled:opacity-50 disabled:cursor-not-allowed",
|
|
1577
1567
|
onSet: ["selected", { selected: e.value }],
|
|
1578
1568
|
click: (t) => e.callBack(e.value),
|
|
1579
1569
|
disabled: e.disabled
|
|
1580
1570
|
}, e.label)
|
|
1581
1571
|
]
|
|
1582
|
-
), ie = (e, t) => (e.callBack = t, ne(e)), oe = (e) =>
|
|
1572
|
+
), ie = (e, t) => (e.callBack = t, ne(e)), oe = (e) => M({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${e.class}` }, [
|
|
1583
1573
|
k({ class: "flex flex-auto flex-row", map: [e.options, (t) => ie(t, e.callBack)] })
|
|
1584
1574
|
]);
|
|
1585
1575
|
class $e extends g {
|
|
@@ -1628,7 +1618,7 @@ class $e extends g {
|
|
|
1628
1618
|
const le = (e, t) => new RegExp(`${e}($|/|\\.).*`).test(t), re = (e, t) => {
|
|
1629
1619
|
const s = e.getLinkPath();
|
|
1630
1620
|
return e.exact ? t === s : le(s, t);
|
|
1631
|
-
}, ce = ({ text: e, href: t, exact: s }) => new
|
|
1621
|
+
}, ce = ({ text: e, href: t, exact: s }) => new U({
|
|
1632
1622
|
text: e,
|
|
1633
1623
|
href: t,
|
|
1634
1624
|
exact: s,
|
|
@@ -1656,12 +1646,12 @@ class de extends g {
|
|
|
1656
1646
|
* @returns {object}
|
|
1657
1647
|
*/
|
|
1658
1648
|
render() {
|
|
1659
|
-
return
|
|
1649
|
+
return M({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${this.class}` }, [
|
|
1660
1650
|
k({
|
|
1661
1651
|
class: "flex flex-auto flex-row",
|
|
1662
1652
|
map: [this.options, (t) => this.addLink(t)],
|
|
1663
1653
|
watch: {
|
|
1664
|
-
value: ["[[path]]",
|
|
1654
|
+
value: ["[[path]]", D.data],
|
|
1665
1655
|
callBack: this.updateLinks.bind(this)
|
|
1666
1656
|
}
|
|
1667
1657
|
})
|
|
@@ -1673,7 +1663,7 @@ class de extends g {
|
|
|
1673
1663
|
* @returns {void}
|
|
1674
1664
|
*/
|
|
1675
1665
|
afterSetup() {
|
|
1676
|
-
const t =
|
|
1666
|
+
const t = D.data.path;
|
|
1677
1667
|
this.updateLinks(t);
|
|
1678
1668
|
}
|
|
1679
1669
|
/**
|
|
@@ -1750,7 +1740,7 @@ class We extends g {
|
|
|
1750
1740
|
class: this.class,
|
|
1751
1741
|
options: this.options
|
|
1752
1742
|
}),
|
|
1753
|
-
|
|
1743
|
+
H({
|
|
1754
1744
|
class: "tab-content",
|
|
1755
1745
|
switch: this.addGroup()
|
|
1756
1746
|
})
|
|
@@ -1912,7 +1902,7 @@ class he extends g {
|
|
|
1912
1902
|
* @returns {void}
|
|
1913
1903
|
*/
|
|
1914
1904
|
noScaleResize() {
|
|
1915
|
-
const t =
|
|
1905
|
+
const t = N.getSize(container);
|
|
1916
1906
|
this.width = canvas.width = t.width, this.height = canvas.height = t.height;
|
|
1917
1907
|
}
|
|
1918
1908
|
/**
|
|
@@ -1922,7 +1912,7 @@ class he extends g {
|
|
|
1922
1912
|
* @returns {void}
|
|
1923
1913
|
*/
|
|
1924
1914
|
scale() {
|
|
1925
|
-
const t = this.canvas, s = this.container, a =
|
|
1915
|
+
const t = this.canvas, s = this.container, a = N.getSize(s), n = this.targetSize, i = n.width, l = n.height;
|
|
1926
1916
|
let r = i + "px", c = l + "px";
|
|
1927
1917
|
if (this.width = t.width = i, this.height = t.height = l, a.width !== 0 && a.height !== 0) {
|
|
1928
1918
|
const d = a.width, u = a.height, h = d / i, p = u / l, y = Math.min(h, p);
|
|
@@ -2002,7 +1992,7 @@ class he extends g {
|
|
|
2002
1992
|
this.timer.stop(), this.status = "stopped";
|
|
2003
1993
|
}
|
|
2004
1994
|
}
|
|
2005
|
-
class
|
|
1995
|
+
class Oe extends g {
|
|
2006
1996
|
/**
|
|
2007
1997
|
* Sets up default properties for the signature panel.
|
|
2008
1998
|
*
|
|
@@ -2083,11 +2073,11 @@ class Ne extends g {
|
|
|
2083
2073
|
export {
|
|
2084
2074
|
Le as B,
|
|
2085
2075
|
Wt as C,
|
|
2086
|
-
|
|
2087
|
-
|
|
2076
|
+
Nt as D,
|
|
2077
|
+
Ot as H,
|
|
2088
2078
|
Be as I,
|
|
2089
2079
|
Me as N,
|
|
2090
|
-
|
|
2080
|
+
X as O,
|
|
2091
2081
|
be as P,
|
|
2092
2082
|
De as R,
|
|
2093
2083
|
Ce as S,
|
|
@@ -2095,7 +2085,7 @@ export {
|
|
|
2095
2085
|
qt as U,
|
|
2096
2086
|
ve as W,
|
|
2097
2087
|
yt as a,
|
|
2098
|
-
|
|
2088
|
+
z as b,
|
|
2099
2089
|
mt as c,
|
|
2100
2090
|
xe as d,
|
|
2101
2091
|
ke as e,
|
|
@@ -2103,7 +2093,7 @@ export {
|
|
|
2103
2093
|
pt as g,
|
|
2104
2094
|
kt as h,
|
|
2105
2095
|
vt as i,
|
|
2106
|
-
|
|
2096
|
+
Q as j,
|
|
2107
2097
|
Se as k,
|
|
2108
2098
|
Ie as l,
|
|
2109
2099
|
Te as m,
|
|
@@ -2113,5 +2103,5 @@ export {
|
|
|
2113
2103
|
$e as q,
|
|
2114
2104
|
de as r,
|
|
2115
2105
|
We as s,
|
|
2116
|
-
|
|
2106
|
+
Oe as t
|
|
2117
2107
|
};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
export function CalendarHeader({
|
|
2
|
-
monthName: string;
|
|
3
|
-
year: number;
|
|
1
|
+
export function CalendarHeader({ onMonthClick, onYearClick, next, previous }: {
|
|
4
2
|
onMonthClick: Function;
|
|
5
3
|
onYearClick: Function;
|
|
6
4
|
next: Function;
|
package/package.json
CHANGED