@base-framework/ui 1.0.228 → 1.0.230
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 +1 -1
- package/dist/organisms.es.js +1 -1
- package/dist/{signature-panel-8RAhY1jM.js → signature-panel-D0PGwcZN.js} +285 -260
- package/dist/types/components/organisms/calendar/range/calendar-header.d.ts +1 -3
- package/dist/types/components/organisms/calendar/range/range-day-cell.d.ts +2 -1
- package/package.json +1 -1
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-D0PGwcZN.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-D0PGwcZN.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,22 +1,22 @@
|
|
|
1
|
-
import { Button as
|
|
2
|
-
import { Atom as
|
|
3
|
-
import { B as
|
|
4
|
-
import { Icons as
|
|
5
|
-
import { F as
|
|
6
|
-
import { TableBody as
|
|
7
|
-
import { C as
|
|
8
|
-
|
|
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 T, Li as W, Time as rt, Nav as N, Ul as B, Section as _, Canvas as ct } from "@base-framework/atoms";
|
|
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
|
+
import { B as p, I as ht } from "./buttons-Cm9etaEG.js";
|
|
4
|
+
import { Icons as v } from "./icons.es.js";
|
|
5
|
+
import { F as Y, p as R, A as ut, P as ft } from "./calendar-Bn55oWBo.js";
|
|
6
|
+
import { TableBody as gt, DataTableBody as mt, ScrollableTableBody as pt, List as yt, IntervalTimer as wt } from "@base-framework/organisms";
|
|
7
|
+
import { C as bt, I as xt, H as kt } from "./inputs-CMjx5-IX.js";
|
|
8
|
+
g((e, t) => ({
|
|
9
9
|
class: "flex items-center px-4 py-2",
|
|
10
10
|
...e,
|
|
11
11
|
children: t
|
|
12
12
|
}));
|
|
13
|
-
|
|
13
|
+
g(({ value: e, label: t }) => P({
|
|
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"]],
|
|
17
17
|
click: (s, { state: a }) => a.performance = e
|
|
18
18
|
}, t));
|
|
19
|
-
class
|
|
19
|
+
class Me extends m {
|
|
20
20
|
/**
|
|
21
21
|
* This will declare the props for the compiler.
|
|
22
22
|
*
|
|
@@ -34,36 +34,36 @@ class be extends g {
|
|
|
34
34
|
return o({ class: this.class || "" }, this.children);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
const
|
|
37
|
+
const vt = (e) => {
|
|
38
38
|
const t = new Date(e, 11, 31), s = new Date(e, 0, 1);
|
|
39
39
|
return t.getDay() === 4 || // December 31 is a Thursday
|
|
40
40
|
s.getDay() === 4;
|
|
41
|
-
},
|
|
41
|
+
}, Dt = (e) => {
|
|
42
42
|
const t = new Date(e.valueOf()), s = (t.getDay() + 6) % 7;
|
|
43
43
|
t.setDate(t.getDate() - s + 3);
|
|
44
44
|
const a = t.getFullYear(), n = new Date(a, 0, 4);
|
|
45
45
|
n.setDate(n.getDate() - (n.getDay() + 6) % 7);
|
|
46
46
|
const i = Math.ceil((t - n) / 6048e5) + 1;
|
|
47
|
-
return i > 52 && !
|
|
47
|
+
return i > 52 && !vt(a) ? {
|
|
48
48
|
weekNumber: 1,
|
|
49
49
|
year: a + 1
|
|
50
50
|
} : {
|
|
51
51
|
weekNumber: i,
|
|
52
52
|
year: a
|
|
53
53
|
};
|
|
54
|
-
},
|
|
54
|
+
}, St = (e, t, s) => {
|
|
55
55
|
if (s === 0) return [];
|
|
56
56
|
const a = new Date(e, t, 0).getDate();
|
|
57
57
|
return Array.from(
|
|
58
58
|
{ length: s },
|
|
59
59
|
(n, i) => new Date(e, t - 1, a - s + i + 1)
|
|
60
60
|
);
|
|
61
|
-
},
|
|
61
|
+
}, Ct = (e, t, s) => Array.from({ length: s }, (a, n) => new Date(e, t + 1, n + 1)), X = (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);
|
|
65
65
|
return i.setDate(n.getDate() + (e - 1) * 7), i;
|
|
66
|
-
},
|
|
66
|
+
}, Le = (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,18 +71,18 @@ const gt = (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
|
+
}, Te = (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++)
|
|
78
78
|
n.push(new Date(e, t, i)), n.length === 7 && (a.push(n), n = []);
|
|
79
79
|
return n.length > 0 && a.push(n), a;
|
|
80
|
-
},
|
|
80
|
+
}, It = (e, t, s) => {
|
|
81
81
|
const a = /* @__PURE__ */ new Date();
|
|
82
82
|
return a.getDate() === e && a.getMonth() === t && a.getFullYear() === s;
|
|
83
|
-
},
|
|
84
|
-
const i =
|
|
85
|
-
return
|
|
83
|
+
}, Mt = ({ day: e, month: t, year: s, weekNumber: a, selectWeek: n }) => {
|
|
84
|
+
const i = It(e, t, s);
|
|
85
|
+
return P({
|
|
86
86
|
text: e || "",
|
|
87
87
|
disabled: !e,
|
|
88
88
|
class: `
|
|
@@ -92,19 +92,19 @@ const gt = (e) => {
|
|
|
92
92
|
`,
|
|
93
93
|
click: () => n(a, s)
|
|
94
94
|
});
|
|
95
|
-
},
|
|
96
|
-
const s = new Date(e, t, 1).getDay(), a = new Date(e, t + 1, 0).getDate(), n =
|
|
97
|
-
for (let
|
|
98
|
-
const
|
|
99
|
-
|
|
100
|
-
weekNumber:
|
|
101
|
-
year:
|
|
102
|
-
days:
|
|
95
|
+
}, Lt = (e, t) => {
|
|
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
|
+
for (let u = 0; u < h.length; u += 7) {
|
|
98
|
+
const b = h.slice(u, u + 7), x = b.find((d) => d) || new Date(e, t, 1), { weekNumber: E, year: z } = Dt(x);
|
|
99
|
+
y.push({
|
|
100
|
+
weekNumber: E,
|
|
101
|
+
year: z,
|
|
102
|
+
days: b
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
|
-
return
|
|
106
|
-
},
|
|
107
|
-
const { year: n, month: i, currentDate: l } = a, r =
|
|
105
|
+
return y;
|
|
106
|
+
}, Tt = ({ selectWeek: e }) => k("month", (t, s, { data: a }) => {
|
|
107
|
+
const { year: n, month: i, currentDate: l } = a, r = Lt(n, i);
|
|
108
108
|
return o(
|
|
109
109
|
{ class: "grid grid-cols-8 gap-1 text-sm px-4 py-2" },
|
|
110
110
|
[
|
|
@@ -115,12 +115,12 @@ 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) => $({ class: "px-1 py-1", text: c })
|
|
119
119
|
)
|
|
120
120
|
),
|
|
121
121
|
// Render each "week" row
|
|
122
122
|
...r.map(
|
|
123
|
-
({ weekNumber: c, days:
|
|
123
|
+
({ weekNumber: c, days: h, year: y }) => o({
|
|
124
124
|
class: "grid grid-cols-8 col-span-8 items-center ring-primary rounded-sm px-1",
|
|
125
125
|
onSet: ["currentWeek", {
|
|
126
126
|
ring: c
|
|
@@ -129,7 +129,7 @@ const gt = (e) => {
|
|
|
129
129
|
// Left column: ISO week number
|
|
130
130
|
o({
|
|
131
131
|
class: "font-medium text-center col-span-1 rounded-sm cursor-pointer",
|
|
132
|
-
click: () => e(c,
|
|
132
|
+
click: () => e(c, y),
|
|
133
133
|
// If you have a 'currentWeek' state, you can highlight it with 'onSet'
|
|
134
134
|
onSet: ["currentWeek", {
|
|
135
135
|
"text-primary-foreground": c,
|
|
@@ -140,11 +140,11 @@ const gt = (e) => {
|
|
|
140
140
|
// The 7 cells for each day in the row
|
|
141
141
|
o(
|
|
142
142
|
{ class: "grid grid-cols-7 col-span-7 text-center" },
|
|
143
|
-
|
|
144
|
-
(
|
|
145
|
-
year: (
|
|
146
|
-
month: (
|
|
147
|
-
day: (
|
|
143
|
+
h.map(
|
|
144
|
+
(u) => Mt({
|
|
145
|
+
year: (u == null ? void 0 : u.getFullYear()) || null,
|
|
146
|
+
month: (u == null ? void 0 : u.getMonth()) || null,
|
|
147
|
+
day: (u == null ? void 0 : u.getDate()) || null,
|
|
148
148
|
weekNumber: c,
|
|
149
149
|
selectWeek: e
|
|
150
150
|
})
|
|
@@ -154,7 +154,7 @@ const gt = (e) => {
|
|
|
154
154
|
)
|
|
155
155
|
]
|
|
156
156
|
);
|
|
157
|
-
}),
|
|
157
|
+
}), q = ({ label: e, click: t }) => p(
|
|
158
158
|
{
|
|
159
159
|
class: `
|
|
160
160
|
inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
|
|
@@ -165,20 +165,20 @@ const gt = (e) => {
|
|
|
165
165
|
click: t,
|
|
166
166
|
"aria-label": `${e} month`,
|
|
167
167
|
variant: "icon",
|
|
168
|
-
icon: e === "Previous" ?
|
|
168
|
+
icon: e === "Previous" ? v.chevron.single.left : v.chevron.single.right
|
|
169
169
|
}
|
|
170
|
-
),
|
|
171
|
-
|
|
172
|
-
|
|
170
|
+
), Bt = ({ next: e, previous: t }) => o({ class: "flex flex-auto min-h-12 text-sm font-medium relative justify-center items-center" }, [
|
|
171
|
+
$("[[monthName]] [[year]]"),
|
|
172
|
+
q({
|
|
173
173
|
label: "Previous",
|
|
174
174
|
click: t
|
|
175
175
|
}),
|
|
176
|
-
|
|
176
|
+
q({
|
|
177
177
|
label: "Next",
|
|
178
178
|
click: e
|
|
179
179
|
})
|
|
180
180
|
]);
|
|
181
|
-
class
|
|
181
|
+
class Be extends m {
|
|
182
182
|
/**
|
|
183
183
|
* This will declare the props for the compiler.
|
|
184
184
|
*
|
|
@@ -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 = X(s, t.getFullYear());
|
|
197
|
+
return new j({
|
|
198
198
|
monthName: this.getMonthName(a.getMonth()),
|
|
199
199
|
year: a.getFullYear(),
|
|
200
200
|
month: a.getMonth(),
|
|
@@ -231,7 +231,7 @@ class ve extends g {
|
|
|
231
231
|
* @returns {string}
|
|
232
232
|
*/
|
|
233
233
|
getMonthName(t) {
|
|
234
|
-
return
|
|
234
|
+
return F.monthNames[t];
|
|
235
235
|
}
|
|
236
236
|
/**
|
|
237
237
|
* Updates the calendar to show the previous month.
|
|
@@ -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 = X(t, s);
|
|
280
280
|
this.setDate(a.getMonth(), a.getFullYear(), a.getDate()), typeof this.selectedCallBack == "function" && this.selectedCallBack(t);
|
|
281
281
|
}
|
|
282
282
|
/**
|
|
@@ -286,17 +286,17 @@ class ve extends g {
|
|
|
286
286
|
*/
|
|
287
287
|
render() {
|
|
288
288
|
return o({ class: "week-calendar-container border rounded-md bg-background p-3" }, [
|
|
289
|
-
|
|
289
|
+
Bt({
|
|
290
290
|
next: () => this.goToNextMonth(),
|
|
291
291
|
previous: () => this.goToPreviousMonth()
|
|
292
292
|
}),
|
|
293
|
-
|
|
293
|
+
Tt({
|
|
294
294
|
selectWeek: (t, s) => this.selectWeek(t, s)
|
|
295
295
|
})
|
|
296
296
|
]);
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
|
-
const
|
|
299
|
+
const K = ({ label: e, click: t }) => p(
|
|
300
300
|
{
|
|
301
301
|
class: `
|
|
302
302
|
inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
|
|
@@ -307,63 +307,88 @@ const j = ({ label: e, click: t }) => m(
|
|
|
307
307
|
click: t,
|
|
308
308
|
"aria-label": `${e} month`,
|
|
309
309
|
variant: "icon",
|
|
310
|
-
icon: e === "Previous" ?
|
|
311
|
-
}
|
|
312
|
-
),
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
]),
|
|
310
|
+
icon: e === "Previous" ? v.chevron.single.left : v.chevron.single.right
|
|
311
|
+
}
|
|
312
|
+
), Rt = ({ 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
|
+
p({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
|
|
314
|
+
p({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
|
|
315
|
+
K({ label: "Previous", click: a }),
|
|
316
|
+
K({ label: "Next", click: s })
|
|
317
|
+
]), Ot = (e) => o({ class: "h-9 flex items-center justify-center font-medium" }, e), Pt = () => o(
|
|
318
318
|
{ class: "grid grid-cols-7 gap-1 text-center text-xs font-medium text-muted-foreground mb-2" },
|
|
319
|
-
["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(
|
|
320
|
-
),
|
|
321
|
-
let
|
|
322
|
-
return a || n ? (
|
|
319
|
+
["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(Ot)
|
|
320
|
+
), $t = ({ day: e, iso: t, disabled: s, isStart: a, isEnd: n, isBetween: i, isOtherMonth: l, click: r }) => {
|
|
321
|
+
let c = "ghost", h = "";
|
|
322
|
+
return a || n ? (c = "default", h = "bg-primary text-primary-foreground hover:bg-primary/90") : i && (h = "bg-accent text-accent-foreground hover:bg-accent/80"), s && (h += " opacity-50 cursor-not-allowed"), l && (h += " text-muted-foreground opacity-50"), p(
|
|
323
323
|
{
|
|
324
|
-
class: `flex items-center justify-center p-0 text-sm font-medium rounded-md transition-colors ${
|
|
325
|
-
variant:
|
|
324
|
+
class: `flex items-center justify-center p-0 text-sm font-medium rounded-md transition-colors ${h}`,
|
|
325
|
+
variant: c,
|
|
326
326
|
disabled: s,
|
|
327
327
|
click: () => {
|
|
328
|
-
s ||
|
|
328
|
+
s || r();
|
|
329
329
|
}
|
|
330
330
|
},
|
|
331
331
|
e.toString()
|
|
332
332
|
);
|
|
333
|
-
},
|
|
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 = [];
|
|
335
|
-
for (let d =
|
|
336
|
-
|
|
333
|
+
}, Wt = ({ today: e, current: t, blockPriorDates: s, onDateClick: a }) => {
|
|
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
|
+
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, L = i === w, st = n && i && w > n && w < i;
|
|
337
|
+
c.push({
|
|
338
|
+
day: f,
|
|
339
|
+
iso: w,
|
|
340
|
+
disabled: I,
|
|
341
|
+
isStart: M,
|
|
342
|
+
isEnd: L,
|
|
343
|
+
isBetween: st,
|
|
344
|
+
isOtherMonth: !0,
|
|
345
|
+
click: () => a(w)
|
|
346
|
+
});
|
|
347
|
+
}
|
|
337
348
|
for (let d = 1; d <= r; d++) {
|
|
338
|
-
const
|
|
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, L = n && i && f > n && f < i;
|
|
350
|
+
c.push({
|
|
351
|
+
day: d,
|
|
352
|
+
iso: f,
|
|
353
|
+
disabled: C,
|
|
354
|
+
isStart: I,
|
|
355
|
+
isEnd: M,
|
|
356
|
+
isBetween: L,
|
|
357
|
+
isOtherMonth: !1,
|
|
358
|
+
click: () => a(f)
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
const z = 42 - c.length;
|
|
362
|
+
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, L = n && i && f > n && f < i;
|
|
339
364
|
c.push({
|
|
340
365
|
day: d,
|
|
341
|
-
iso:
|
|
342
|
-
disabled:
|
|
343
|
-
isStart:
|
|
344
|
-
isEnd:
|
|
345
|
-
isBetween:
|
|
346
|
-
|
|
366
|
+
iso: f,
|
|
367
|
+
disabled: C,
|
|
368
|
+
isStart: I,
|
|
369
|
+
isEnd: M,
|
|
370
|
+
isBetween: L,
|
|
371
|
+
isOtherMonth: !0,
|
|
372
|
+
click: () => a(f)
|
|
347
373
|
});
|
|
348
374
|
}
|
|
349
375
|
return o(
|
|
350
376
|
{ class: "grid grid-cols-7 gap-1" },
|
|
351
377
|
c.map(
|
|
352
|
-
(d,
|
|
378
|
+
(d, f) => $t({
|
|
353
379
|
day: d.day,
|
|
354
380
|
iso: d.iso,
|
|
355
381
|
disabled: d.disabled,
|
|
356
382
|
isStart: d.isStart,
|
|
357
383
|
isEnd: d.isEnd,
|
|
358
384
|
isBetween: d.isBetween,
|
|
385
|
+
isOtherMonth: d.isOtherMonth,
|
|
359
386
|
click: d.click
|
|
360
|
-
})
|
|
387
|
+
})
|
|
361
388
|
)
|
|
362
389
|
);
|
|
363
|
-
},
|
|
364
|
-
|
|
365
|
-
monthName: e.monthName,
|
|
366
|
-
year: e.year,
|
|
390
|
+
}, Nt = g((e, t) => o({ class: "flex flex-auto flex-col" }, [
|
|
391
|
+
Rt({
|
|
367
392
|
onMonthClick: e.onMonthClick,
|
|
368
393
|
onYearClick: e.onYearClick,
|
|
369
394
|
next: e.next,
|
|
@@ -374,8 +399,8 @@ const j = ({ label: e, click: t }) => m(
|
|
|
374
399
|
onSet: [
|
|
375
400
|
"currentDate",
|
|
376
401
|
() => [
|
|
377
|
-
|
|
378
|
-
|
|
402
|
+
Pt(),
|
|
403
|
+
Wt({
|
|
379
404
|
today: e.today,
|
|
380
405
|
current: e.current,
|
|
381
406
|
blockPriorDates: e.blockPriorDates,
|
|
@@ -384,10 +409,10 @@ const j = ({ label: e, click: t }) => m(
|
|
|
384
409
|
]
|
|
385
410
|
]
|
|
386
411
|
})
|
|
387
|
-
])),
|
|
412
|
+
])), jt = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
|
|
388
413
|
{ class: "grid grid-cols-3 gap-2" },
|
|
389
|
-
|
|
390
|
-
(a, n) =>
|
|
414
|
+
F.monthNames.map(
|
|
415
|
+
(a, n) => p(
|
|
391
416
|
{
|
|
392
417
|
click: (i) => {
|
|
393
418
|
i.preventDefault(), i.stopPropagation(), s(n);
|
|
@@ -398,30 +423,30 @@ const j = ({ label: e, click: t }) => m(
|
|
|
398
423
|
a.substring(0, 3)
|
|
399
424
|
)
|
|
400
425
|
)
|
|
401
|
-
),
|
|
402
|
-
|
|
426
|
+
), zt = ({ start: e, end: t, selecting: s, onSelectStart: a, onSelectEnd: n }) => o({ class: "flex space-x-2 mb-4" }, [
|
|
427
|
+
k("selecting", (i) => p({
|
|
403
428
|
click: a,
|
|
404
429
|
variant: i === "start" ? "primary" : "outline",
|
|
405
430
|
class: "flex-1"
|
|
406
431
|
}, [
|
|
407
|
-
o({ class: "font-medium" },
|
|
432
|
+
o({ class: "font-medium" }, G("current.start", "Start Date"))
|
|
408
433
|
])),
|
|
409
|
-
|
|
434
|
+
k("selecting", (i) => p({
|
|
410
435
|
click: n,
|
|
411
436
|
variant: i === "end" ? "primary" : "outline",
|
|
412
437
|
class: "flex-1"
|
|
413
438
|
}, [
|
|
414
|
-
o({ class: "font-medium" },
|
|
439
|
+
o({ class: "font-medium" }, G("current.end", "End Date"))
|
|
415
440
|
]))
|
|
416
|
-
]),
|
|
441
|
+
]), G = (e, t) => [`[[${e}]]`, (s) => s == null ? t : Yt(s)], Yt = (e) => {
|
|
417
442
|
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"];
|
|
418
443
|
return `${s[t.getDay()]}, ${t.getDate()} ${a[t.getMonth()]}`;
|
|
419
|
-
},
|
|
444
|
+
}, At = ({ currentYear: e, onSelect: t }) => {
|
|
420
445
|
const s = e - 50, a = Array.from({ length: 101 }, (n, i) => s + i);
|
|
421
446
|
return o(
|
|
422
447
|
{ class: "grid grid-cols-4 gap-2 overflow-y-auto max-h-72" },
|
|
423
448
|
a.map(
|
|
424
|
-
(n) =>
|
|
449
|
+
(n) => p(
|
|
425
450
|
{
|
|
426
451
|
click: (i) => {
|
|
427
452
|
i.preventDefault(), i.stopPropagation(), t(n);
|
|
@@ -434,7 +459,7 @@ const j = ({ label: e, click: t }) => m(
|
|
|
434
459
|
)
|
|
435
460
|
);
|
|
436
461
|
};
|
|
437
|
-
class
|
|
462
|
+
class Re extends m {
|
|
438
463
|
/**
|
|
439
464
|
* Declare compiler props.
|
|
440
465
|
*
|
|
@@ -450,14 +475,14 @@ class De extends g {
|
|
|
450
475
|
*/
|
|
451
476
|
setData() {
|
|
452
477
|
const t = /* @__PURE__ */ new Date(), s = this.startDate ? /* @__PURE__ */ new Date(this.startDate + "T00:00:00") : t, a = s.getMonth(), n = s.getFullYear();
|
|
453
|
-
return new
|
|
478
|
+
return new j({
|
|
454
479
|
today: {
|
|
455
480
|
date: t.getDate(),
|
|
456
481
|
month: t.getMonth(),
|
|
457
482
|
year: t.getFullYear()
|
|
458
483
|
},
|
|
459
484
|
monthName: this.getMonthName(a),
|
|
460
|
-
currentData: `${s.getFullYear()}-${
|
|
485
|
+
currentData: `${s.getFullYear()}-${R(s.getMonth() + 1)}-${R(s.getDate())}`,
|
|
461
486
|
current: {
|
|
462
487
|
date: t.getDate(),
|
|
463
488
|
month: a,
|
|
@@ -475,7 +500,7 @@ class De extends g {
|
|
|
475
500
|
* @returns {string}
|
|
476
501
|
*/
|
|
477
502
|
getMonthName(t) {
|
|
478
|
-
return
|
|
503
|
+
return F.monthNames[t];
|
|
479
504
|
}
|
|
480
505
|
/**
|
|
481
506
|
* Initialize component state.
|
|
@@ -521,7 +546,7 @@ class De extends g {
|
|
|
521
546
|
*/
|
|
522
547
|
setCurrent({ month: t, year: s, date: a = null }) {
|
|
523
548
|
const n = this.data.current;
|
|
524
|
-
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}-${
|
|
549
|
+
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}-${R(t + 1)}-${R(n.date)}`;
|
|
525
550
|
}
|
|
526
551
|
/**
|
|
527
552
|
* Render the range calendar.
|
|
@@ -531,17 +556,17 @@ class De extends g {
|
|
|
531
556
|
render() {
|
|
532
557
|
const { today: t, current: s, selecting: a } = this.data, { start: n, end: i } = s;
|
|
533
558
|
return o({ class: "range-calendar bg-background border border-border rounded-lg shadow-md p-4 w-full max-w-sm" }, [
|
|
534
|
-
|
|
559
|
+
zt({
|
|
535
560
|
start: n,
|
|
536
561
|
end: i,
|
|
537
562
|
selecting: a,
|
|
538
563
|
onSelectStart: () => this.data.selecting = "start",
|
|
539
564
|
onSelectEnd: () => this.data.selecting = "end"
|
|
540
565
|
}),
|
|
541
|
-
|
|
566
|
+
at("view", (l) => {
|
|
542
567
|
switch (l) {
|
|
543
568
|
case "months":
|
|
544
|
-
return
|
|
569
|
+
return jt(
|
|
545
570
|
{
|
|
546
571
|
currentMonth: s.month,
|
|
547
572
|
currentYear: s.year,
|
|
@@ -551,7 +576,7 @@ class De extends g {
|
|
|
551
576
|
}
|
|
552
577
|
);
|
|
553
578
|
case "years":
|
|
554
|
-
return
|
|
579
|
+
return At(
|
|
555
580
|
{
|
|
556
581
|
currentYear: s.year,
|
|
557
582
|
onSelect: (r) => {
|
|
@@ -560,7 +585,7 @@ class De extends g {
|
|
|
560
585
|
}
|
|
561
586
|
);
|
|
562
587
|
default:
|
|
563
|
-
return
|
|
588
|
+
return Nt({
|
|
564
589
|
monthName: this.data.monthName,
|
|
565
590
|
year: s.year,
|
|
566
591
|
today: t,
|
|
@@ -583,28 +608,28 @@ class De extends g {
|
|
|
583
608
|
]);
|
|
584
609
|
}
|
|
585
610
|
}
|
|
586
|
-
const
|
|
611
|
+
const Ft = (e, t) => {
|
|
587
612
|
const s = e.toggleAllSelectedRows();
|
|
588
613
|
t.state.checked = !s;
|
|
589
|
-
},
|
|
590
|
-
|
|
591
|
-
]),
|
|
614
|
+
}, Ht = (e) => J({ class: `cursor-pointer py-3 px-4 text-base w-10 ${e.class || ""}` }, [
|
|
615
|
+
nt((t) => new bt({ class: "mr-2", onChange: (s, a) => Ft(t, a) }))
|
|
616
|
+
]), Et = ({ align: e, sortable: t, key: s, label: a, sort: n, class: i }) => {
|
|
592
617
|
const l = e || "justify-start";
|
|
593
|
-
return
|
|
618
|
+
return J({
|
|
594
619
|
class: `cursor-pointer py-3 px-4 text-base ${i || ""}`,
|
|
595
620
|
click: t && (() => n(s))
|
|
596
621
|
}, [
|
|
597
622
|
o({ class: `flex flex-auto w-full items-center ${l}` }, [
|
|
598
|
-
|
|
599
|
-
t &&
|
|
623
|
+
$(a),
|
|
624
|
+
t && it({ class: "ml-2", html: v.arrows.upDown })
|
|
600
625
|
])
|
|
601
626
|
]);
|
|
602
|
-
},
|
|
603
|
-
|
|
627
|
+
}, H = (e) => ot([
|
|
628
|
+
lt({
|
|
604
629
|
class: "text-muted-foreground border-b",
|
|
605
630
|
map: [
|
|
606
631
|
e.headers,
|
|
607
|
-
(t) => t.label === "checkbox" ?
|
|
632
|
+
(t) => t.label === "checkbox" ? Ht({ toggle: e.toggle }) : Et({
|
|
608
633
|
align: t.align,
|
|
609
634
|
sortable: t.sortable,
|
|
610
635
|
key: t.key,
|
|
@@ -613,7 +638,7 @@ const $t = (e, t) => {
|
|
|
613
638
|
})
|
|
614
639
|
]
|
|
615
640
|
})
|
|
616
|
-
]),
|
|
641
|
+
]), Ut = ({ key: e, rows: t, selectRow: s, rowItem: a, emptyState: n }) => new gt({
|
|
617
642
|
cache: "list",
|
|
618
643
|
key: e,
|
|
619
644
|
items: t,
|
|
@@ -621,7 +646,7 @@ const $t = (e, t) => {
|
|
|
621
646
|
class: "divide-y divide-border",
|
|
622
647
|
emptyState: n
|
|
623
648
|
});
|
|
624
|
-
class
|
|
649
|
+
class tt extends m {
|
|
625
650
|
/**
|
|
626
651
|
* Initializes component data.
|
|
627
652
|
*
|
|
@@ -629,7 +654,7 @@ class Q extends g {
|
|
|
629
654
|
*/
|
|
630
655
|
setData() {
|
|
631
656
|
let t = this.rows && this.rows.length > 0;
|
|
632
|
-
return (this.loadMoreItems || this.tableData) && !t && (t = null), new
|
|
657
|
+
return (this.loadMoreItems || this.tableData) && !t && (t = null), new j({
|
|
633
658
|
selectedRows: [],
|
|
634
659
|
// @ts-ignore
|
|
635
660
|
hasItems: t,
|
|
@@ -692,14 +717,14 @@ class Q extends g {
|
|
|
692
717
|
render() {
|
|
693
718
|
const t = this.rows, s = this.border !== !1 ? "border" : "";
|
|
694
719
|
return o({ class: "w-full flex flex-auto flex-col" }, [
|
|
695
|
-
|
|
720
|
+
k("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
|
|
696
721
|
o({ class: `w-full rounded-md ${s} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
|
|
697
|
-
|
|
722
|
+
A({ class: "w-full" }, [
|
|
698
723
|
// @ts-ignore
|
|
699
|
-
this.headers &&
|
|
724
|
+
this.headers && H({ headers: this.headers, sort: (a) => this.sortRows(a) }),
|
|
700
725
|
// @ts-ignore
|
|
701
726
|
this.customHeader ?? null,
|
|
702
|
-
|
|
727
|
+
Ut({
|
|
703
728
|
// @ts-ignore
|
|
704
729
|
key: this.key,
|
|
705
730
|
rows: t,
|
|
@@ -774,7 +799,7 @@ class Q extends g {
|
|
|
774
799
|
this.data.selectedRows = [];
|
|
775
800
|
}
|
|
776
801
|
}
|
|
777
|
-
const
|
|
802
|
+
const Qt = (e) => new mt({
|
|
778
803
|
cache: "list",
|
|
779
804
|
loadMoreItems: e.loadMoreItems,
|
|
780
805
|
offset: e.offset,
|
|
@@ -785,7 +810,7 @@ const zt = (e) => new lt({
|
|
|
785
810
|
rowItem: (t) => e.rowItem(t, e.selectRow),
|
|
786
811
|
class: "divide-y divide-border"
|
|
787
812
|
});
|
|
788
|
-
class
|
|
813
|
+
class Xt extends tt {
|
|
789
814
|
/**
|
|
790
815
|
* Renders the DataTable component.
|
|
791
816
|
*
|
|
@@ -794,14 +819,14 @@ class Yt extends Q {
|
|
|
794
819
|
render() {
|
|
795
820
|
const t = this.rows, s = this.border !== !1 ? "border" : "";
|
|
796
821
|
return o({ class: "w-full flex flex-auto flex-col" }, [
|
|
797
|
-
|
|
822
|
+
k("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
|
|
798
823
|
o({ class: `w-full rounded-md ${s} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
|
|
799
|
-
|
|
824
|
+
A({ class: "w-full" }, [
|
|
800
825
|
// @ts-ignore
|
|
801
|
-
this.headers &&
|
|
826
|
+
this.headers && H({ headers: this.headers, sort: (a) => this.sortRows(a) }),
|
|
802
827
|
// @ts-ignore
|
|
803
828
|
this.customHeader ?? null,
|
|
804
|
-
|
|
829
|
+
Qt({
|
|
805
830
|
// @ts-ignore
|
|
806
831
|
loadMoreItems: this.loadMoreItems,
|
|
807
832
|
// @ts-ignore
|
|
@@ -833,7 +858,7 @@ class Yt extends Q {
|
|
|
833
858
|
this.list.refresh();
|
|
834
859
|
}
|
|
835
860
|
}
|
|
836
|
-
const
|
|
861
|
+
const Oe = g((e) => new Xt(
|
|
837
862
|
{
|
|
838
863
|
cache: e.cache ?? "list",
|
|
839
864
|
tableData: e.data,
|
|
@@ -849,7 +874,7 @@ const Se = f((e) => new Yt(
|
|
|
849
874
|
border: e.border,
|
|
850
875
|
emptyState: e.emptyState
|
|
851
876
|
}
|
|
852
|
-
)),
|
|
877
|
+
)), qt = (e) => new pt({
|
|
853
878
|
cache: "list",
|
|
854
879
|
scrollContainer: e.scrollContainer,
|
|
855
880
|
loadMoreItems: e.loadMoreItems,
|
|
@@ -861,7 +886,7 @@ const Se = f((e) => new Yt(
|
|
|
861
886
|
rowItem: (t) => e.rowItem(t, e.selectRow),
|
|
862
887
|
class: "divide-y divide-border"
|
|
863
888
|
});
|
|
864
|
-
class
|
|
889
|
+
class Kt extends tt {
|
|
865
890
|
/**
|
|
866
891
|
* Renders the DataTable component.
|
|
867
892
|
*
|
|
@@ -870,14 +895,14 @@ class At extends Q {
|
|
|
870
895
|
render() {
|
|
871
896
|
const t = this.rows, s = this.border !== !1 ? "border" : "";
|
|
872
897
|
return o({ class: "w-full flex flex-auto flex-col" }, [
|
|
873
|
-
|
|
898
|
+
k("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
|
|
874
899
|
o({ class: `w-full rounded-md ${s} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
|
|
875
|
-
|
|
900
|
+
A({ class: "w-full" }, [
|
|
876
901
|
// @ts-ignore
|
|
877
|
-
this.headers &&
|
|
902
|
+
this.headers && H({ headers: this.headers, sort: (a) => this.sortRows(a) }),
|
|
878
903
|
// @ts-ignore
|
|
879
904
|
this.customHeader ?? null,
|
|
880
|
-
|
|
905
|
+
qt({
|
|
881
906
|
// @ts-ignore
|
|
882
907
|
scrollContainer: this.scrollContainer,
|
|
883
908
|
// @ts-ignore
|
|
@@ -911,7 +936,7 @@ class At extends Q {
|
|
|
911
936
|
this.list.refresh();
|
|
912
937
|
}
|
|
913
938
|
}
|
|
914
|
-
const
|
|
939
|
+
const Pe = g((e) => new Kt(
|
|
915
940
|
{
|
|
916
941
|
cache: e.cache ?? "list",
|
|
917
942
|
tableData: e.data,
|
|
@@ -928,45 +953,45 @@ const Ce = f((e) => new At(
|
|
|
928
953
|
border: e.border,
|
|
929
954
|
emptyState: e.emptyState
|
|
930
955
|
}
|
|
931
|
-
)),
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
])),
|
|
956
|
+
)), Gt = g(({ name: e, email: t }) => o({ class: "min-w-0 flex-auto" }, [
|
|
957
|
+
T({ class: "text-base font-semibold leading-6 m-0" }, e),
|
|
958
|
+
T({ class: "truncate text-sm leading-5 text-muted-foreground m-0" }, t)
|
|
959
|
+
])), Jt = () => o({ class: "flex items-center gap-x-1.5" }, [
|
|
935
960
|
o({ class: "flex-none rounded-full bg-emerald-500/20 p-1" }, [
|
|
936
961
|
o({ class: "h-1.5 w-1.5 rounded-full bg-emerald-500" })
|
|
937
962
|
]),
|
|
938
|
-
|
|
939
|
-
]),
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
]),
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
])),
|
|
963
|
+
T({ class: "text-xs leading-5 text-gray-500" }, "Online")
|
|
964
|
+
]), _t = (e) => T({ class: "text-xs leading-5 text-muted-foreground" }, [
|
|
965
|
+
$("Last seen "),
|
|
966
|
+
rt({ datetime: e }, "3h ago")
|
|
967
|
+
]), 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
|
+
T({ class: "text-sm leading-6 m-0" }, e),
|
|
969
|
+
Vt(s, t)
|
|
970
|
+
])), 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" }, [
|
|
946
971
|
o({ class: "flex min-w-0 gap-x-4" }, [
|
|
947
|
-
|
|
948
|
-
|
|
972
|
+
ut({ src: e.image, alt: e.name, fallbackText: te(e.name) }),
|
|
973
|
+
Gt({ name: e.name, email: e.email })
|
|
949
974
|
]),
|
|
950
|
-
|
|
975
|
+
Zt({
|
|
951
976
|
role: e.role,
|
|
952
977
|
lastSeen: e.lastSeen,
|
|
953
978
|
status: e.status
|
|
954
979
|
})
|
|
955
|
-
])),
|
|
980
|
+
])), $e = g((e) => new yt({
|
|
956
981
|
cache: "list",
|
|
957
982
|
key: "name",
|
|
958
983
|
items: e.users,
|
|
959
984
|
role: "list",
|
|
960
985
|
class: "divide-y divide-border",
|
|
961
|
-
rowItem:
|
|
962
|
-
})),
|
|
986
|
+
rowItem: ee
|
|
987
|
+
})), se = (e, t) => t.includes(e), ae = (e, t, s) => e.exact ? s === t : se(t, s), ne = ({ text: e, href: t, exact: s, hidden: a }) => new V({
|
|
963
988
|
text: e,
|
|
964
989
|
href: t,
|
|
965
990
|
exact: s,
|
|
966
991
|
dataSet: ["selected", ["state", !0, "active"]],
|
|
967
992
|
class: `${a ? "hidden" : "inline-flex"} items-center justify-center whitespace-nowrap px-3 py-1.5 text-sm font-medium transition-all rounded-md focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-ring focus-visible:ring-offset-background hover:bg-primary hover:text-primary-foreground disabled:opacity-50 disabled:pointer-events-none data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:shadow-sm`
|
|
968
993
|
});
|
|
969
|
-
class
|
|
994
|
+
class We extends m {
|
|
970
995
|
/**
|
|
971
996
|
* This will declare the props for the compiler.
|
|
972
997
|
*
|
|
@@ -987,14 +1012,14 @@ class Me extends g {
|
|
|
987
1012
|
* @returns {object}
|
|
988
1013
|
*/
|
|
989
1014
|
render() {
|
|
990
|
-
return
|
|
1015
|
+
return N(
|
|
991
1016
|
{ class: `flex items-center justify-center p-2 text-muted-foreground rounded-md ${this.class || ""}` },
|
|
992
1017
|
[
|
|
993
|
-
|
|
1018
|
+
B({
|
|
994
1019
|
class: "flex space-x-4",
|
|
995
1020
|
map: [this.options, (t) => this.addLink(t)],
|
|
996
1021
|
watch: {
|
|
997
|
-
value: ["[[path]]",
|
|
1022
|
+
value: ["[[path]]", O.data],
|
|
998
1023
|
callBack: this.updateLinks.bind(this)
|
|
999
1024
|
}
|
|
1000
1025
|
})
|
|
@@ -1007,7 +1032,7 @@ class Me extends g {
|
|
|
1007
1032
|
* @returns {void}
|
|
1008
1033
|
*/
|
|
1009
1034
|
afterSetup() {
|
|
1010
|
-
const t =
|
|
1035
|
+
const t = O.data.path;
|
|
1011
1036
|
this.updateLinks(t);
|
|
1012
1037
|
}
|
|
1013
1038
|
/**
|
|
@@ -1022,7 +1047,7 @@ class Me extends g {
|
|
|
1022
1047
|
for (const a of this.links) {
|
|
1023
1048
|
if (!a.rendered)
|
|
1024
1049
|
continue;
|
|
1025
|
-
|
|
1050
|
+
ae(a, a.getLinkPath(), t) ? (this.updateLink(a, !0), s = !0) : this.updateLink(a, !1);
|
|
1026
1051
|
}
|
|
1027
1052
|
!s && this.links[0] && this.updateLink(this.links[0], !0);
|
|
1028
1053
|
}
|
|
@@ -1052,7 +1077,7 @@ class Me extends g {
|
|
|
1052
1077
|
* @returns {object}
|
|
1053
1078
|
*/
|
|
1054
1079
|
addLink({ label: t, href: s, exact: a, hidden: n }) {
|
|
1055
|
-
const i =
|
|
1080
|
+
const i = ne({ text: t, href: s, exact: a, hidden: n });
|
|
1056
1081
|
return this.links.push(i), i;
|
|
1057
1082
|
}
|
|
1058
1083
|
/**
|
|
@@ -1064,13 +1089,13 @@ class Me extends g {
|
|
|
1064
1089
|
this.links = [];
|
|
1065
1090
|
}
|
|
1066
1091
|
}
|
|
1067
|
-
const
|
|
1092
|
+
const Ne = g((e) => {
|
|
1068
1093
|
const t = e.margin || "m-4 ml-0";
|
|
1069
1094
|
return e.allowHistory = e.allowHistory === !0, o({ class: `flex-none ${t}` }, [
|
|
1070
|
-
|
|
1095
|
+
p({ variant: "back", class: "ghost", ...e })
|
|
1071
1096
|
]);
|
|
1072
1097
|
});
|
|
1073
|
-
class
|
|
1098
|
+
class et extends m {
|
|
1074
1099
|
/**
|
|
1075
1100
|
* This will declare the props for the compiler.
|
|
1076
1101
|
*
|
|
@@ -1157,13 +1182,13 @@ class X extends g {
|
|
|
1157
1182
|
return this.children;
|
|
1158
1183
|
}
|
|
1159
1184
|
}
|
|
1160
|
-
|
|
1185
|
+
Z.addType("dockableOverlay", (e) => {
|
|
1161
1186
|
if (!e)
|
|
1162
1187
|
return;
|
|
1163
1188
|
const t = e.component;
|
|
1164
1189
|
t && t.rendered === !0 && t.state.docked === !1 && t.destroy();
|
|
1165
1190
|
});
|
|
1166
|
-
class
|
|
1191
|
+
class je extends et {
|
|
1167
1192
|
/**
|
|
1168
1193
|
* This will stop presistence.
|
|
1169
1194
|
*
|
|
@@ -1229,7 +1254,7 @@ class Te extends X {
|
|
|
1229
1254
|
* @returns {void}
|
|
1230
1255
|
*/
|
|
1231
1256
|
afterSetup() {
|
|
1232
|
-
|
|
1257
|
+
Z.add(
|
|
1233
1258
|
this.container,
|
|
1234
1259
|
"dockableOverlay",
|
|
1235
1260
|
{
|
|
@@ -1272,7 +1297,7 @@ class Te extends X {
|
|
|
1272
1297
|
document.documentElement.style.overflowY = "auto";
|
|
1273
1298
|
}
|
|
1274
1299
|
}
|
|
1275
|
-
class
|
|
1300
|
+
class ze extends et {
|
|
1276
1301
|
/**
|
|
1277
1302
|
* This will get the overlay type.
|
|
1278
1303
|
*
|
|
@@ -1291,7 +1316,7 @@ class Be extends X {
|
|
|
1291
1316
|
this.container = t, this.initialize();
|
|
1292
1317
|
}
|
|
1293
1318
|
}
|
|
1294
|
-
const
|
|
1319
|
+
const ie = g(({ index: e, click: t, state: s }, a) => W({
|
|
1295
1320
|
class: "p-2 cursor-pointer hover:bg-muted/50",
|
|
1296
1321
|
onState: [
|
|
1297
1322
|
[s, "selectedIndex", {
|
|
@@ -1300,11 +1325,11 @@ const _t = f(({ index: e, click: t, state: s }, a) => I({
|
|
|
1300
1325
|
}]
|
|
1301
1326
|
],
|
|
1302
1327
|
click: () => t(e)
|
|
1303
|
-
}, a)),
|
|
1328
|
+
}, a)), oe = g(({ selectOption: e, state: t }) => B({
|
|
1304
1329
|
class: "border rounded-md list-none m-0 p-0 max-h-[400px] overflow-y-auto",
|
|
1305
|
-
for: ["filteredOptions", (s, a) =>
|
|
1306
|
-
})),
|
|
1307
|
-
|
|
1330
|
+
for: ["filteredOptions", (s, a) => ie({ index: a, click: e, state: t }, s.label)]
|
|
1331
|
+
})), le = g((e) => o({ class: "relative flex items-center" }, [
|
|
1332
|
+
xt({
|
|
1308
1333
|
cache: "input",
|
|
1309
1334
|
class: e.class ?? "",
|
|
1310
1335
|
placeholder: e.placeholder ?? "Search...",
|
|
@@ -1320,22 +1345,22 @@ const _t = f(({ index: e, click: t, state: s }, a) => I({
|
|
|
1320
1345
|
]
|
|
1321
1346
|
}),
|
|
1322
1347
|
e.icon && o({ class: "absolute flex right-0 mr-2" }, [
|
|
1323
|
-
|
|
1348
|
+
ht(e.icon)
|
|
1324
1349
|
])
|
|
1325
|
-
])),
|
|
1350
|
+
])), re = (e) => o({
|
|
1326
1351
|
class: "relative flex fle-auto flex-col",
|
|
1327
1352
|
onState: ["open", (t, s, a) => {
|
|
1328
1353
|
if (t)
|
|
1329
|
-
return new
|
|
1354
|
+
return new ft({
|
|
1330
1355
|
cache: "dropdown",
|
|
1331
1356
|
parent: a,
|
|
1332
1357
|
button: a.input,
|
|
1333
1358
|
size: "xl"
|
|
1334
1359
|
}, [
|
|
1335
|
-
|
|
1360
|
+
oe(e)
|
|
1336
1361
|
]);
|
|
1337
1362
|
}]
|
|
1338
|
-
}),
|
|
1363
|
+
}), Ye = dt(
|
|
1339
1364
|
{
|
|
1340
1365
|
/**
|
|
1341
1366
|
* This will set up the data object.
|
|
@@ -1344,7 +1369,7 @@ const _t = f(({ index: e, click: t, state: s }, a) => I({
|
|
|
1344
1369
|
*/
|
|
1345
1370
|
setData() {
|
|
1346
1371
|
const e = this.options || [];
|
|
1347
|
-
return new
|
|
1372
|
+
return new j({
|
|
1348
1373
|
options: e,
|
|
1349
1374
|
filteredOptions: e
|
|
1350
1375
|
});
|
|
@@ -1432,7 +1457,7 @@ const _t = f(({ index: e, click: t, state: s }, a) => I({
|
|
|
1432
1457
|
*/
|
|
1433
1458
|
render() {
|
|
1434
1459
|
return o({ class: "relative w-full max-w-md" }, [
|
|
1435
|
-
|
|
1460
|
+
le({
|
|
1436
1461
|
// @ts-ignore
|
|
1437
1462
|
state: this.state,
|
|
1438
1463
|
// @ts-ignore
|
|
@@ -1444,7 +1469,7 @@ const _t = f(({ index: e, click: t, state: s }, a) => I({
|
|
|
1444
1469
|
// @ts-ignore
|
|
1445
1470
|
handleKeyDown: this.handleKeyDown.bind(this)
|
|
1446
1471
|
}),
|
|
1447
|
-
|
|
1472
|
+
re({
|
|
1448
1473
|
// @ts-ignore
|
|
1449
1474
|
state: this.state,
|
|
1450
1475
|
// @ts-ignore
|
|
@@ -1455,22 +1480,22 @@ const _t = f(({ index: e, click: t, state: s }, a) => I({
|
|
|
1455
1480
|
]);
|
|
1456
1481
|
}
|
|
1457
1482
|
}
|
|
1458
|
-
),
|
|
1483
|
+
), ce = (e) => W(
|
|
1459
1484
|
{
|
|
1460
1485
|
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",
|
|
1461
1486
|
dataSet: ["selected", ["state", e.value, "active"]]
|
|
1462
1487
|
},
|
|
1463
1488
|
[
|
|
1464
|
-
|
|
1489
|
+
P({
|
|
1465
1490
|
class: "flex flex-auto justify-center items-center px-3 py-1.5 rounded-md",
|
|
1466
1491
|
onSet: ["selected", { selected: e.value }],
|
|
1467
1492
|
click: (t) => e.callBack(e.value)
|
|
1468
1493
|
}, e.label)
|
|
1469
1494
|
]
|
|
1470
|
-
),
|
|
1471
|
-
|
|
1495
|
+
), de = (e, t) => (e.callBack = t, ce(e)), he = (e) => N({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${e.class}` }, [
|
|
1496
|
+
B({ class: "flex flex-auto flex-row", map: [e.options, (t) => de(t, e.callBack)] })
|
|
1472
1497
|
]);
|
|
1473
|
-
class
|
|
1498
|
+
class Ae extends m {
|
|
1474
1499
|
/**
|
|
1475
1500
|
* This will declare the props for the compiler.
|
|
1476
1501
|
*
|
|
@@ -1487,12 +1512,12 @@ class Pe extends g {
|
|
|
1487
1512
|
render() {
|
|
1488
1513
|
const t = this.select.bind(this);
|
|
1489
1514
|
return o({ class: "" }, [
|
|
1490
|
-
|
|
1515
|
+
he({
|
|
1491
1516
|
class: this.class,
|
|
1492
1517
|
options: this.options,
|
|
1493
1518
|
callBack: t
|
|
1494
1519
|
}),
|
|
1495
|
-
|
|
1520
|
+
_({
|
|
1496
1521
|
class: "tab-content",
|
|
1497
1522
|
onState: ["selected", this.updateContent.bind(this)]
|
|
1498
1523
|
})
|
|
@@ -1558,23 +1583,23 @@ class Pe extends g {
|
|
|
1558
1583
|
};
|
|
1559
1584
|
}
|
|
1560
1585
|
}
|
|
1561
|
-
const
|
|
1586
|
+
const ue = (e) => W(
|
|
1562
1587
|
{
|
|
1563
1588
|
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",
|
|
1564
1589
|
dataSet: ["selected", ["state", e.value, "active"]]
|
|
1565
1590
|
},
|
|
1566
1591
|
[
|
|
1567
|
-
|
|
1592
|
+
P({
|
|
1568
1593
|
class: "flex flex-auto justify-center items-center px-3 py-1.5 rounded-md disabled:opacity-50 disabled:cursor-not-allowed",
|
|
1569
1594
|
onSet: ["selected", { selected: e.value }],
|
|
1570
1595
|
click: (t) => e.callBack(e.value),
|
|
1571
1596
|
disabled: e.disabled
|
|
1572
1597
|
}, e.label)
|
|
1573
1598
|
]
|
|
1574
|
-
),
|
|
1575
|
-
|
|
1599
|
+
), fe = (e, t) => (e.callBack = t, ue(e)), ge = (e) => N({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${e.class}` }, [
|
|
1600
|
+
B({ class: "flex flex-auto flex-row", map: [e.options, (t) => fe(t, e.callBack)] })
|
|
1576
1601
|
]);
|
|
1577
|
-
class
|
|
1602
|
+
class Fe extends m {
|
|
1578
1603
|
/**
|
|
1579
1604
|
* This will declare the props for the compiler.
|
|
1580
1605
|
*
|
|
@@ -1590,7 +1615,7 @@ class $e extends g {
|
|
|
1590
1615
|
*/
|
|
1591
1616
|
render() {
|
|
1592
1617
|
const t = this.select.bind(this);
|
|
1593
|
-
return
|
|
1618
|
+
return ge({
|
|
1594
1619
|
class: this.class,
|
|
1595
1620
|
options: this.options,
|
|
1596
1621
|
callBack: t
|
|
@@ -1617,17 +1642,17 @@ class $e extends g {
|
|
|
1617
1642
|
};
|
|
1618
1643
|
}
|
|
1619
1644
|
}
|
|
1620
|
-
const
|
|
1645
|
+
const me = (e, t) => new RegExp(`${e}($|/|\\.).*`).test(t), pe = (e, t) => {
|
|
1621
1646
|
const s = e.getLinkPath();
|
|
1622
|
-
return e.exact ? t === s :
|
|
1623
|
-
},
|
|
1647
|
+
return e.exact ? t === s : me(s, t);
|
|
1648
|
+
}, ye = ({ text: e, href: t, exact: s }) => new V({
|
|
1624
1649
|
text: e,
|
|
1625
1650
|
href: t,
|
|
1626
1651
|
exact: s,
|
|
1627
1652
|
dataSet: ["selected", ["state", !0, "active"]],
|
|
1628
1653
|
class: "inline-flex flex-auto items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 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"
|
|
1629
1654
|
});
|
|
1630
|
-
class
|
|
1655
|
+
class we extends m {
|
|
1631
1656
|
/**
|
|
1632
1657
|
* This will declare the props for the compiler.
|
|
1633
1658
|
*
|
|
@@ -1648,12 +1673,12 @@ class de extends g {
|
|
|
1648
1673
|
* @returns {object}
|
|
1649
1674
|
*/
|
|
1650
1675
|
render() {
|
|
1651
|
-
return
|
|
1652
|
-
|
|
1676
|
+
return N({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${this.class}` }, [
|
|
1677
|
+
B({
|
|
1653
1678
|
class: "flex flex-auto flex-row",
|
|
1654
1679
|
map: [this.options, (t) => this.addLink(t)],
|
|
1655
1680
|
watch: {
|
|
1656
|
-
value: ["[[path]]",
|
|
1681
|
+
value: ["[[path]]", O.data],
|
|
1657
1682
|
callBack: this.updateLinks.bind(this)
|
|
1658
1683
|
}
|
|
1659
1684
|
})
|
|
@@ -1665,7 +1690,7 @@ class de extends g {
|
|
|
1665
1690
|
* @returns {void}
|
|
1666
1691
|
*/
|
|
1667
1692
|
afterSetup() {
|
|
1668
|
-
const t =
|
|
1693
|
+
const t = O.data.path;
|
|
1669
1694
|
this.updateLinks(t);
|
|
1670
1695
|
}
|
|
1671
1696
|
/**
|
|
@@ -1678,7 +1703,7 @@ class de extends g {
|
|
|
1678
1703
|
let s = !1, a = this.links[0];
|
|
1679
1704
|
this.deactivateAllLinks();
|
|
1680
1705
|
for (const n of this.links)
|
|
1681
|
-
if (n.rendered !== !1 && (s =
|
|
1706
|
+
if (n.rendered !== !1 && (s = pe(n, t), s === !0)) {
|
|
1682
1707
|
this.updateLink(n, !0);
|
|
1683
1708
|
break;
|
|
1684
1709
|
}
|
|
@@ -1710,7 +1735,7 @@ class de extends g {
|
|
|
1710
1735
|
* @returns {object}
|
|
1711
1736
|
*/
|
|
1712
1737
|
addLink({ label: t, href: s, exact: a }) {
|
|
1713
|
-
const n =
|
|
1738
|
+
const n = ye({ text: t, href: s, exact: a });
|
|
1714
1739
|
return this.links.push(n), n;
|
|
1715
1740
|
}
|
|
1716
1741
|
/**
|
|
@@ -1722,7 +1747,7 @@ class de extends g {
|
|
|
1722
1747
|
this.links = [];
|
|
1723
1748
|
}
|
|
1724
1749
|
}
|
|
1725
|
-
class
|
|
1750
|
+
class He extends m {
|
|
1726
1751
|
/**
|
|
1727
1752
|
* This will declare the props for the compiler.
|
|
1728
1753
|
*
|
|
@@ -1738,11 +1763,11 @@ class We extends g {
|
|
|
1738
1763
|
*/
|
|
1739
1764
|
render() {
|
|
1740
1765
|
return o({ class: "tab-panel" }, [
|
|
1741
|
-
new
|
|
1766
|
+
new we({
|
|
1742
1767
|
class: this.class,
|
|
1743
1768
|
options: this.options
|
|
1744
1769
|
}),
|
|
1745
|
-
|
|
1770
|
+
_({
|
|
1746
1771
|
class: "tab-content",
|
|
1747
1772
|
switch: this.addGroup()
|
|
1748
1773
|
})
|
|
@@ -1768,7 +1793,7 @@ class We extends g {
|
|
|
1768
1793
|
return s;
|
|
1769
1794
|
}
|
|
1770
1795
|
}
|
|
1771
|
-
class
|
|
1796
|
+
class be extends m {
|
|
1772
1797
|
/**
|
|
1773
1798
|
* Runs before rendering, sets up defaults, a timer for drawing,
|
|
1774
1799
|
* and basic canvas properties.
|
|
@@ -1778,7 +1803,7 @@ class he extends g {
|
|
|
1778
1803
|
onCreated() {
|
|
1779
1804
|
this.lineWidth = this.lineWidth || 3, this.lineColor = this.lineColor || "#000000", this.canvas = null, this.ctx = null, this.status = "stopped";
|
|
1780
1805
|
const t = 1e3 / 60;
|
|
1781
|
-
this.timer = new
|
|
1806
|
+
this.timer = new wt(t, this.draw.bind(this)), this.width = 0, this.height = 0, this.signed = !1, this.mouse = { x: 0, y: 0, status: "up" }, this.margin = this.margin || { x: 40, y: 60 }, this.targetSize = this.targetSize || { width: 740, height: 345 }, this.baseLineWidth = this.baseLineWidth || 2, this.baseStrokeColor = this.baseStrokeColor || "#000000";
|
|
1782
1807
|
}
|
|
1783
1808
|
/**
|
|
1784
1809
|
* Renders a <canvas> element.
|
|
@@ -1786,7 +1811,7 @@ class he extends g {
|
|
|
1786
1811
|
* @returns {object} Layout definition for the canvas.
|
|
1787
1812
|
*/
|
|
1788
1813
|
render() {
|
|
1789
|
-
return
|
|
1814
|
+
return ct({
|
|
1790
1815
|
style: "touch-action: none; -webkit-user-select: none; -webkit-touch-callout: none;"
|
|
1791
1816
|
});
|
|
1792
1817
|
}
|
|
@@ -1835,8 +1860,8 @@ class he extends g {
|
|
|
1835
1860
|
let s, a;
|
|
1836
1861
|
const n = this.canvas, i = n.width / parseInt(n.style.width), l = n.getBoundingClientRect();
|
|
1837
1862
|
if (t.touches && t.touches.length) {
|
|
1838
|
-
const
|
|
1839
|
-
s =
|
|
1863
|
+
const h = t.touches[0];
|
|
1864
|
+
s = h.clientX, a = h.clientY;
|
|
1840
1865
|
} else
|
|
1841
1866
|
s = t.x || t.clientX, a = t.y || t.clientY;
|
|
1842
1867
|
const r = parseInt((s - l.left) * i), c = parseInt((a - l.top) * i);
|
|
@@ -1883,8 +1908,8 @@ class he extends g {
|
|
|
1883
1908
|
const { canvas: t, ctx: s } = this, a = t.toDataURL();
|
|
1884
1909
|
if (this.scale(), this.setupBackground(s), a !== "data:,") {
|
|
1885
1910
|
const n = new globalThis.Image();
|
|
1886
|
-
|
|
1887
|
-
s.drawImage(n, 0, 0),
|
|
1911
|
+
U.on("load", n, function i() {
|
|
1912
|
+
s.drawImage(n, 0, 0), U.off("load", n, i);
|
|
1888
1913
|
}), n.src = a;
|
|
1889
1914
|
}
|
|
1890
1915
|
this.draw();
|
|
@@ -1904,7 +1929,7 @@ class he extends g {
|
|
|
1904
1929
|
* @returns {void}
|
|
1905
1930
|
*/
|
|
1906
1931
|
noScaleResize() {
|
|
1907
|
-
const t =
|
|
1932
|
+
const t = Q.getSize(container);
|
|
1908
1933
|
this.width = canvas.width = t.width, this.height = canvas.height = t.height;
|
|
1909
1934
|
}
|
|
1910
1935
|
/**
|
|
@@ -1914,11 +1939,11 @@ class he extends g {
|
|
|
1914
1939
|
* @returns {void}
|
|
1915
1940
|
*/
|
|
1916
1941
|
scale() {
|
|
1917
|
-
const t = this.canvas, s = this.container, a =
|
|
1942
|
+
const t = this.canvas, s = this.container, a = Q.getSize(s), n = this.targetSize, i = n.width, l = n.height;
|
|
1918
1943
|
let r = i + "px", c = l + "px";
|
|
1919
1944
|
if (this.width = t.width = i, this.height = t.height = l, a.width !== 0 && a.height !== 0) {
|
|
1920
|
-
const
|
|
1921
|
-
r = i *
|
|
1945
|
+
const h = a.width, y = a.height, u = h / i, b = y / l, x = Math.min(u, b);
|
|
1946
|
+
r = i * x + "px", c = l * x + "px";
|
|
1922
1947
|
}
|
|
1923
1948
|
t.style.width = r, t.style.height = c;
|
|
1924
1949
|
}
|
|
@@ -1994,7 +2019,7 @@ class he extends g {
|
|
|
1994
2019
|
this.timer.stop(), this.status = "stopped";
|
|
1995
2020
|
}
|
|
1996
2021
|
}
|
|
1997
|
-
class
|
|
2022
|
+
class Ee extends m {
|
|
1998
2023
|
/**
|
|
1999
2024
|
* Sets up default properties for the signature panel.
|
|
2000
2025
|
*
|
|
@@ -2011,19 +2036,19 @@ class Ne extends g {
|
|
|
2011
2036
|
*/
|
|
2012
2037
|
render() {
|
|
2013
2038
|
return o({ class: "signature-panel relative flex flex-auto overflow-hidden select-none" }, [
|
|
2014
|
-
|
|
2039
|
+
kt({
|
|
2015
2040
|
cache: "hiddenInput",
|
|
2016
2041
|
required: !0,
|
|
2017
2042
|
bind: this.path + ".data"
|
|
2018
2043
|
}),
|
|
2019
2044
|
o({ class: "absolute top-2 right-2" }, [
|
|
2020
|
-
|
|
2045
|
+
p({
|
|
2021
2046
|
variant: "icon",
|
|
2022
|
-
icon:
|
|
2047
|
+
icon: v.circleX,
|
|
2023
2048
|
click: this.reset.bind(this)
|
|
2024
2049
|
})
|
|
2025
2050
|
]),
|
|
2026
|
-
new
|
|
2051
|
+
new be({
|
|
2027
2052
|
cache: "canvasLayer",
|
|
2028
2053
|
margin: this.margin,
|
|
2029
2054
|
targetSize: this.targetSize,
|
|
@@ -2073,37 +2098,37 @@ class Ne extends g {
|
|
|
2073
2098
|
}
|
|
2074
2099
|
}
|
|
2075
2100
|
export {
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2101
|
+
Ne as B,
|
|
2102
|
+
Ht as C,
|
|
2103
|
+
Ut as D,
|
|
2104
|
+
Et as H,
|
|
2105
|
+
ze as I,
|
|
2106
|
+
We as N,
|
|
2107
|
+
et as O,
|
|
2108
|
+
Me as P,
|
|
2109
|
+
Re as R,
|
|
2110
|
+
Pe as S,
|
|
2111
|
+
H as T,
|
|
2112
|
+
ee as U,
|
|
2113
|
+
Be as W,
|
|
2114
|
+
Ct as a,
|
|
2115
|
+
X as b,
|
|
2116
|
+
Dt as c,
|
|
2117
|
+
Le as d,
|
|
2118
|
+
Te as e,
|
|
2119
|
+
Mt as f,
|
|
2120
|
+
St as g,
|
|
2121
|
+
Tt as h,
|
|
2122
|
+
Bt as i,
|
|
2123
|
+
tt as j,
|
|
2124
|
+
Oe as k,
|
|
2125
|
+
$e as l,
|
|
2126
|
+
je as m,
|
|
2127
|
+
Ye as n,
|
|
2128
|
+
le as o,
|
|
2129
|
+
Ae as p,
|
|
2130
|
+
Fe as q,
|
|
2131
|
+
we as r,
|
|
2132
|
+
He as s,
|
|
2133
|
+
Ee as t
|
|
2109
2134
|
};
|
|
@@ -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;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export function RangeDayCell({ day, iso, disabled, isStart, isEnd, isBetween, click }: {
|
|
1
|
+
export function RangeDayCell({ day, iso, disabled, isStart, isEnd, isBetween, isOtherMonth, click }: {
|
|
2
2
|
day: number;
|
|
3
3
|
iso: string;
|
|
4
4
|
disabled: boolean;
|
|
5
5
|
isStart: boolean;
|
|
6
6
|
isEnd: boolean;
|
|
7
7
|
isBetween: boolean;
|
|
8
|
+
isOtherMonth: boolean;
|
|
8
9
|
click: Function;
|
|
9
10
|
}): object;
|
package/package.json
CHANGED