@base-framework/ui 1.0.224 → 1.0.226
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-DobJfnTu.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-DobJfnTu.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 f, Component as
|
|
3
|
-
import { B 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 N, Dom as O } from "@base-framework/base";
|
|
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
|
|
6
|
-
import { TableBody as
|
|
7
|
-
import { C as
|
|
5
|
+
import { F as at, p as v, A as nt, P as it } from "./calendar-Bn55oWBo.js";
|
|
6
|
+
import { TableBody as ot, DataTableBody as lt, ScrollableTableBody as rt, List as ct, IntervalTimer as dt } from "@base-framework/organisms";
|
|
7
|
+
import { C as ht, I as ut, H as ft } from "./inputs-CMjx5-IX.js";
|
|
8
8
|
f((e, t) => ({
|
|
9
9
|
class: "flex items-center px-4 py-2",
|
|
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"]],
|
|
17
17
|
click: (s, { state: a }) => a.performance = e
|
|
18
18
|
}, t));
|
|
19
|
-
class
|
|
19
|
+
class be extends g {
|
|
20
20
|
/**
|
|
21
21
|
* This will declare the props for the compiler.
|
|
22
22
|
*
|
|
@@ -34,7 +34,7 @@ class ye extends m {
|
|
|
34
34
|
return o({ class: this.class || "" }, this.children);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
const
|
|
37
|
+
const gt = (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;
|
|
@@ -44,45 +44,45 @@ const ft = (e) => {
|
|
|
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 && !gt(a) ? {
|
|
48
48
|
weekNumber: 1,
|
|
49
49
|
year: a + 1
|
|
50
50
|
} : {
|
|
51
51
|
weekNumber: i,
|
|
52
52
|
year: a
|
|
53
53
|
};
|
|
54
|
-
},
|
|
54
|
+
}, pt = (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
|
+
}, 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);
|
|
65
65
|
return i.setDate(n.getDate() + (e - 1) * 7), i;
|
|
66
|
-
},
|
|
66
|
+
}, xe = (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
|
-
for (let
|
|
70
|
-
const
|
|
71
|
-
i.push(
|
|
69
|
+
for (let l = 1 - s; l <= a; l++) {
|
|
70
|
+
const r = new Date(e, t, l);
|
|
71
|
+
i.push(l > 0 ? r : null), (i.length === 7 || l === a) && (n.push([...i]), i = []);
|
|
72
72
|
}
|
|
73
73
|
return n;
|
|
74
|
-
},
|
|
74
|
+
}, ke = (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
|
+
}, wt = (e, t, s) => {
|
|
81
81
|
const a = /* @__PURE__ */ new Date();
|
|
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
|
-
const i =
|
|
85
|
-
return
|
|
84
|
+
const i = wt(e, t, s);
|
|
85
|
+
return S({
|
|
86
86
|
text: e || "",
|
|
87
87
|
disabled: !e,
|
|
88
88
|
class: `
|
|
@@ -92,19 +92,19 @@ const ft = (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 =
|
|
95
|
+
}, xt = (e, t) => {
|
|
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
|
}
|
|
105
105
|
return u;
|
|
106
|
-
},
|
|
107
|
-
const { year: n, month: i, currentDate:
|
|
106
|
+
}, kt = ({ selectWeek: e }) => w("month", (t, s, { data: a }) => {
|
|
107
|
+
const { year: n, month: i, currentDate: l } = a, r = xt(n, i);
|
|
108
108
|
return o(
|
|
109
109
|
{ class: "grid grid-cols-8 gap-1 text-sm px-4 py-2" },
|
|
110
110
|
[
|
|
@@ -115,11 +115,11 @@ const ft = (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
|
|
122
|
-
...
|
|
122
|
+
...r.map(
|
|
123
123
|
({ weekNumber: c, days: d, year: u }) => o({
|
|
124
124
|
class: "grid grid-cols-8 col-span-8 items-center ring-primary rounded-sm px-1",
|
|
125
125
|
onSet: ["currentWeek", {
|
|
@@ -154,7 +154,7 @@ const ft = (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
|
|
@@ -167,18 +167,18 @@ const ft = (e) => {
|
|
|
167
167
|
variant: "icon",
|
|
168
168
|
icon: e === "Previous" ? b.chevron.single.left : b.chevron.single.right
|
|
169
169
|
}
|
|
170
|
-
),
|
|
171
|
-
|
|
172
|
-
|
|
170
|
+
), vt = ({ next: e, previous: t }) => o({ class: "flex flex-auto min-h-12 text-sm font-medium relative justify-center items-center" }, [
|
|
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
|
})
|
|
180
180
|
]);
|
|
181
|
-
class
|
|
181
|
+
class ve extends g {
|
|
182
182
|
/**
|
|
183
183
|
* This will declare the props for the compiler.
|
|
184
184
|
*
|
|
@@ -193,8 +193,8 @@ class xe extends m {
|
|
|
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(),
|
|
@@ -231,7 +231,7 @@ class xe extends m {
|
|
|
231
231
|
* @returns {string}
|
|
232
232
|
*/
|
|
233
233
|
getMonthName(t) {
|
|
234
|
-
return
|
|
234
|
+
return $.monthNames[t];
|
|
235
235
|
}
|
|
236
236
|
/**
|
|
237
237
|
* Updates the calendar to show the previous month.
|
|
@@ -276,7 +276,7 @@ class xe extends m {
|
|
|
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
|
/**
|
|
@@ -286,17 +286,17 @@ class xe extends m {
|
|
|
286
286
|
*/
|
|
287
287
|
render() {
|
|
288
288
|
return o({ class: "week-calendar-container border rounded-md bg-background p-3" }, [
|
|
289
|
-
|
|
289
|
+
vt({
|
|
290
290
|
next: () => this.goToNextMonth(),
|
|
291
291
|
previous: () => this.goToPreviousMonth()
|
|
292
292
|
}),
|
|
293
|
-
|
|
293
|
+
kt({
|
|
294
294
|
selectWeek: (t, s) => this.selectWeek(t, s)
|
|
295
295
|
})
|
|
296
296
|
]);
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
|
-
const j = ({ label: e, click: t }) =>
|
|
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,47 +309,47 @@ const j = ({ label: e, click: t }) => g(
|
|
|
309
309
|
variant: "icon",
|
|
310
310
|
icon: e === "Previous" ? b.chevron.single.left : b.chevron.single.right
|
|
311
311
|
}
|
|
312
|
-
),
|
|
313
|
-
|
|
314
|
-
|
|
312
|
+
), Dt = ({ monthName: e, year: t, onMonthClick: s, onYearClick: a, next: n, previous: i }) => o({ class: "flex items-center justify-center space-x-2 relative min-h-12 text-sm font-medium" }, [
|
|
313
|
+
m({ click: s, variant: "ghost", "aria-label": "Select month" }, e || "[[monthName]]"),
|
|
314
|
+
m({ click: a, variant: "ghost", "aria-label": "Select year" }, (t == null ? void 0 : t.toString()) || "[[current.year]]"),
|
|
315
315
|
j({ label: "Previous", click: i }),
|
|
316
316
|
j({ label: "Next", click: n })
|
|
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
|
-
["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(
|
|
320
|
-
),
|
|
321
|
-
let
|
|
322
|
-
return a || n ? (
|
|
319
|
+
["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(St)
|
|
320
|
+
), It = ({ day: e, iso: t, disabled: s, isStart: a, isEnd: n, isBetween: i, click: l }) => {
|
|
321
|
+
let r = "ghost", c = "";
|
|
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
324
|
class: `flex items-center justify-center h-9 w-9 p-0 text-sm font-medium rounded-md transition-colors ${c}`,
|
|
325
|
-
variant:
|
|
325
|
+
variant: r,
|
|
326
326
|
disabled: s,
|
|
327
327
|
click: () => {
|
|
328
|
-
s ||
|
|
328
|
+
s || l();
|
|
329
329
|
}
|
|
330
330
|
},
|
|
331
331
|
e.toString()
|
|
332
332
|
);
|
|
333
|
-
},
|
|
334
|
-
const { start: n, end: i } = t,
|
|
335
|
-
for (let d = 0; d <
|
|
333
|
+
}, Mt = ({ 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 = [];
|
|
335
|
+
for (let d = 0; d < l; d++)
|
|
336
336
|
c.push(null);
|
|
337
|
-
for (let d = 1; d <=
|
|
338
|
-
const u =
|
|
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, T = s && y, B = n === u, R = i === u, q = n && i && u > n && u < i;
|
|
339
339
|
c.push({
|
|
340
340
|
day: d,
|
|
341
341
|
iso: u,
|
|
342
|
-
disabled:
|
|
343
|
-
isStart:
|
|
344
|
-
isEnd:
|
|
345
|
-
isBetween:
|
|
342
|
+
disabled: T,
|
|
343
|
+
isStart: B,
|
|
344
|
+
isEnd: R,
|
|
345
|
+
isBetween: q,
|
|
346
346
|
click: () => a(u)
|
|
347
347
|
});
|
|
348
348
|
}
|
|
349
349
|
return o(
|
|
350
350
|
{ class: "grid grid-cols-7 gap-1" },
|
|
351
351
|
c.map(
|
|
352
|
-
(d, u) => d ?
|
|
352
|
+
(d, u) => d ? It({
|
|
353
353
|
day: d.day,
|
|
354
354
|
iso: d.iso,
|
|
355
355
|
disabled: d.disabled,
|
|
@@ -360,8 +360,8 @@ const j = ({ label: e, click: t }) => g(
|
|
|
360
360
|
}) : o({ class: "h-9" })
|
|
361
361
|
)
|
|
362
362
|
);
|
|
363
|
-
},
|
|
364
|
-
|
|
363
|
+
}, Lt = f((e, t) => o({ class: "flex flex-auto flex-col" }, [
|
|
364
|
+
Dt({
|
|
365
365
|
monthName: e.monthName,
|
|
366
366
|
year: e.year,
|
|
367
367
|
onMonthClick: e.onMonthClick,
|
|
@@ -374,8 +374,8 @@ const j = ({ label: e, click: t }) => g(
|
|
|
374
374
|
onSet: [
|
|
375
375
|
"currentDate",
|
|
376
376
|
() => [
|
|
377
|
-
|
|
378
|
-
|
|
377
|
+
Ct(),
|
|
378
|
+
Mt({
|
|
379
379
|
today: e.today,
|
|
380
380
|
current: e.current,
|
|
381
381
|
blockPriorDates: e.blockPriorDates,
|
|
@@ -384,10 +384,10 @@ const j = ({ label: e, click: t }) => g(
|
|
|
384
384
|
]
|
|
385
385
|
]
|
|
386
386
|
})
|
|
387
|
-
])),
|
|
387
|
+
])), Tt = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
|
|
388
388
|
{ class: "grid grid-cols-3 gap-2" },
|
|
389
|
-
|
|
390
|
-
(a, n) =>
|
|
389
|
+
$.monthNames.map(
|
|
390
|
+
(a, n) => m(
|
|
391
391
|
{
|
|
392
392
|
click: (i) => {
|
|
393
393
|
i.preventDefault(), i.stopPropagation(), s(n);
|
|
@@ -398,32 +398,30 @@ const j = ({ label: e, click: t }) => g(
|
|
|
398
398
|
a.substring(0, 3)
|
|
399
399
|
)
|
|
400
400
|
)
|
|
401
|
-
),
|
|
402
|
-
|
|
401
|
+
), Bt = ({ start: e, end: t, selecting: s, onSelectStart: a, onSelectEnd: n }) => o({ class: "flex space-x-2 mb-4" }, [
|
|
402
|
+
w("selecting", (i) => m({
|
|
403
403
|
click: a,
|
|
404
|
-
variant:
|
|
405
|
-
class: "flex-1
|
|
404
|
+
variant: i === "start" ? "primary" : "outline",
|
|
405
|
+
class: "flex-1"
|
|
406
406
|
}, [
|
|
407
|
-
o({ class: "
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
g({
|
|
407
|
+
o({ class: "font-medium" }, A("current.start", "Start Date"))
|
|
408
|
+
])),
|
|
409
|
+
w("selecting", (i) => m({
|
|
411
410
|
click: n,
|
|
412
|
-
variant:
|
|
413
|
-
class: "flex-1
|
|
411
|
+
variant: i === "end" ? "primary" : "outline",
|
|
412
|
+
class: "flex-1"
|
|
414
413
|
}, [
|
|
415
|
-
o({ class: "
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
]), Y = (e) => {
|
|
414
|
+
o({ class: "font-medium" }, A("current.end", "End Date"))
|
|
415
|
+
]))
|
|
416
|
+
]), A = (e, t) => [`[[${e}]]`, (s) => s == null ? t : Rt(s)], Rt = (e) => {
|
|
419
417
|
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"];
|
|
420
418
|
return `${s[t.getDay()]}, ${t.getDate()} ${a[t.getMonth()]}`;
|
|
421
|
-
},
|
|
419
|
+
}, Pt = ({ currentYear: e, onSelect: t }) => {
|
|
422
420
|
const s = e - 50, a = Array.from({ length: 101 }, (n, i) => s + i);
|
|
423
421
|
return o(
|
|
424
422
|
{ class: "grid grid-cols-4 gap-2 overflow-y-auto max-h-72" },
|
|
425
423
|
a.map(
|
|
426
|
-
(n) =>
|
|
424
|
+
(n) => m(
|
|
427
425
|
{
|
|
428
426
|
click: (i) => {
|
|
429
427
|
i.preventDefault(), i.stopPropagation(), t(n);
|
|
@@ -436,7 +434,7 @@ const j = ({ label: e, click: t }) => g(
|
|
|
436
434
|
)
|
|
437
435
|
);
|
|
438
436
|
};
|
|
439
|
-
class
|
|
437
|
+
class De extends g {
|
|
440
438
|
/**
|
|
441
439
|
* Declare compiler props.
|
|
442
440
|
*
|
|
@@ -452,13 +450,14 @@ class ke extends m {
|
|
|
452
450
|
*/
|
|
453
451
|
setData() {
|
|
454
452
|
const t = /* @__PURE__ */ new Date(), s = this.startDate ? /* @__PURE__ */ new Date(this.startDate + "T00:00:00") : t, a = s.getMonth(), n = s.getFullYear();
|
|
455
|
-
return new
|
|
453
|
+
return new L({
|
|
456
454
|
today: {
|
|
457
455
|
date: t.getDate(),
|
|
458
456
|
month: t.getMonth(),
|
|
459
457
|
year: t.getFullYear()
|
|
460
458
|
},
|
|
461
459
|
monthName: this.getMonthName(a),
|
|
460
|
+
currentData: `${s.getFullYear()}-${v(s.getMonth() + 1)}-${v(s.getDate())}`,
|
|
462
461
|
current: {
|
|
463
462
|
date: t.getDate(),
|
|
464
463
|
month: a,
|
|
@@ -476,7 +475,7 @@ class ke extends m {
|
|
|
476
475
|
* @returns {string}
|
|
477
476
|
*/
|
|
478
477
|
getMonthName(t) {
|
|
479
|
-
return
|
|
478
|
+
return $.monthNames[t];
|
|
480
479
|
}
|
|
481
480
|
/**
|
|
482
481
|
* Initialize component state.
|
|
@@ -496,17 +495,33 @@ class ke extends m {
|
|
|
496
495
|
* @returns {void}
|
|
497
496
|
*/
|
|
498
497
|
handleClick(t) {
|
|
499
|
-
this.data.selecting === "start"
|
|
498
|
+
if (this.data.selecting === "start") {
|
|
499
|
+
this.data.current.start = t, this.data.current.end = null, this.data.selecting = "end";
|
|
500
|
+
const s = new Date(t);
|
|
501
|
+
this.setContext({
|
|
502
|
+
month: s.getMonth(),
|
|
503
|
+
year: s.getFullYear(),
|
|
504
|
+
date: s.getDate()
|
|
505
|
+
});
|
|
506
|
+
} else {
|
|
507
|
+
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";
|
|
508
|
+
const s = new Date(t);
|
|
509
|
+
this.setContext({
|
|
510
|
+
month: s.getMonth(),
|
|
511
|
+
year: s.getFullYear(),
|
|
512
|
+
date: s.getDate()
|
|
513
|
+
}), typeof this.onRangeSelect == "function" && this.onRangeSelect(this.data.current.start, this.data.current.end);
|
|
514
|
+
}
|
|
500
515
|
}
|
|
501
516
|
/**
|
|
502
517
|
* Update current month/year in data.
|
|
503
518
|
*
|
|
504
|
-
* @param {
|
|
519
|
+
* @param {object} obj
|
|
505
520
|
* @returns {void}
|
|
506
521
|
*/
|
|
507
|
-
setCurrent({ month: t, year: s }) {
|
|
508
|
-
const
|
|
509
|
-
|
|
522
|
+
setCurrent({ month: t, year: s, date: a = null }) {
|
|
523
|
+
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}-${v(t + 1)}-${v(n.date)}`;
|
|
510
525
|
}
|
|
511
526
|
/**
|
|
512
527
|
* Render the range calendar.
|
|
@@ -516,50 +531,50 @@ class ke extends m {
|
|
|
516
531
|
render() {
|
|
517
532
|
const { today: t, current: s, selecting: a } = this.data, { start: n, end: i } = s;
|
|
518
533
|
return o({ class: "range-calendar bg-background border border-border rounded-lg shadow-md p-4 w-full max-w-sm" }, [
|
|
519
|
-
|
|
534
|
+
Bt({
|
|
520
535
|
start: n,
|
|
521
536
|
end: i,
|
|
522
537
|
selecting: a,
|
|
523
538
|
onSelectStart: () => this.data.selecting = "start",
|
|
524
539
|
onSelectEnd: () => this.data.selecting = "end"
|
|
525
540
|
}),
|
|
526
|
-
|
|
527
|
-
switch (
|
|
541
|
+
K("view", (l) => {
|
|
542
|
+
switch (l) {
|
|
528
543
|
case "months":
|
|
529
|
-
return
|
|
544
|
+
return Tt(
|
|
530
545
|
{
|
|
531
546
|
currentMonth: s.month,
|
|
532
547
|
currentYear: s.year,
|
|
533
|
-
onSelect: (
|
|
534
|
-
this.setCurrent({ month:
|
|
548
|
+
onSelect: (r) => {
|
|
549
|
+
this.setCurrent({ month: r, year: s.year }), this.state.view = "calendar";
|
|
535
550
|
}
|
|
536
551
|
}
|
|
537
552
|
);
|
|
538
553
|
case "years":
|
|
539
|
-
return
|
|
554
|
+
return Pt(
|
|
540
555
|
{
|
|
541
556
|
currentYear: s.year,
|
|
542
|
-
onSelect: (
|
|
543
|
-
this.setCurrent({ month: s.month, year:
|
|
557
|
+
onSelect: (r) => {
|
|
558
|
+
this.setCurrent({ month: s.month, year: r }), this.state.view = "calendar";
|
|
544
559
|
}
|
|
545
560
|
}
|
|
546
561
|
);
|
|
547
562
|
default:
|
|
548
|
-
return
|
|
563
|
+
return Lt({
|
|
549
564
|
monthName: this.data.monthName,
|
|
550
565
|
year: s.year,
|
|
551
566
|
today: t,
|
|
552
567
|
current: s,
|
|
553
568
|
blockPriorDates: this.blockPriorDates,
|
|
554
|
-
onDateClick: (
|
|
569
|
+
onDateClick: (r) => this.handleClick(r),
|
|
555
570
|
onMonthClick: () => this.state.view = "months",
|
|
556
571
|
onYearClick: () => this.state.view = "years",
|
|
557
572
|
next: () => {
|
|
558
|
-
const
|
|
573
|
+
const r = this.data.current, c = r.month === 11 ? { month: 0, year: r.year + 1 } : { month: r.month + 1, year: r.year };
|
|
559
574
|
this.setCurrent(c);
|
|
560
575
|
},
|
|
561
576
|
previous: () => {
|
|
562
|
-
const
|
|
577
|
+
const r = this.data.current, c = r.month === 0 ? { month: 11, year: r.year - 1 } : { month: r.month - 1, year: r.year };
|
|
563
578
|
this.setCurrent(c);
|
|
564
579
|
}
|
|
565
580
|
});
|
|
@@ -568,28 +583,28 @@ class ke extends m {
|
|
|
568
583
|
]);
|
|
569
584
|
}
|
|
570
585
|
}
|
|
571
|
-
const
|
|
586
|
+
const $t = (e, t) => {
|
|
572
587
|
const s = e.toggleAllSelectedRows();
|
|
573
588
|
t.state.checked = !s;
|
|
574
|
-
},
|
|
575
|
-
|
|
589
|
+
}, Wt = (e) => F({ class: `cursor-pointer py-3 px-4 text-base w-10 ${e.class || ""}` }, [
|
|
590
|
+
G((t) => new ht({ class: "mr-2", onChange: (s, a) => $t(t, a) }))
|
|
576
591
|
]), Nt = ({ align: e, sortable: t, key: s, label: a, sort: n, class: i }) => {
|
|
577
|
-
const
|
|
578
|
-
return
|
|
592
|
+
const l = e || "justify-start";
|
|
593
|
+
return F({
|
|
579
594
|
class: `cursor-pointer py-3 px-4 text-base ${i || ""}`,
|
|
580
595
|
click: t && (() => n(s))
|
|
581
596
|
}, [
|
|
582
|
-
o({ class: `flex flex-auto w-full items-center ${
|
|
583
|
-
|
|
584
|
-
t &&
|
|
597
|
+
o({ class: `flex flex-auto w-full items-center ${l}` }, [
|
|
598
|
+
C(a),
|
|
599
|
+
t && J({ class: "ml-2", html: b.arrows.upDown })
|
|
585
600
|
])
|
|
586
601
|
]);
|
|
587
|
-
},
|
|
588
|
-
|
|
602
|
+
}, W = (e) => _([
|
|
603
|
+
V({
|
|
589
604
|
class: "text-muted-foreground border-b",
|
|
590
605
|
map: [
|
|
591
606
|
e.headers,
|
|
592
|
-
(t) => t.label === "checkbox" ?
|
|
607
|
+
(t) => t.label === "checkbox" ? Wt({ toggle: e.toggle }) : Nt({
|
|
593
608
|
align: t.align,
|
|
594
609
|
sortable: t.sortable,
|
|
595
610
|
key: t.key,
|
|
@@ -598,7 +613,7 @@ const Rt = (e, t) => {
|
|
|
598
613
|
})
|
|
599
614
|
]
|
|
600
615
|
})
|
|
601
|
-
]),
|
|
616
|
+
]), Ot = ({ key: e, rows: t, selectRow: s, rowItem: a, emptyState: n }) => new ot({
|
|
602
617
|
cache: "list",
|
|
603
618
|
key: e,
|
|
604
619
|
items: t,
|
|
@@ -606,7 +621,7 @@ const Rt = (e, t) => {
|
|
|
606
621
|
class: "divide-y divide-border",
|
|
607
622
|
emptyState: n
|
|
608
623
|
});
|
|
609
|
-
class
|
|
624
|
+
class Q extends g {
|
|
610
625
|
/**
|
|
611
626
|
* Initializes component data.
|
|
612
627
|
*
|
|
@@ -614,7 +629,7 @@ class E extends m {
|
|
|
614
629
|
*/
|
|
615
630
|
setData() {
|
|
616
631
|
let t = this.rows && this.rows.length > 0;
|
|
617
|
-
return (this.loadMoreItems || this.tableData) && !t && (t = null), new
|
|
632
|
+
return (this.loadMoreItems || this.tableData) && !t && (t = null), new L({
|
|
618
633
|
selectedRows: [],
|
|
619
634
|
// @ts-ignore
|
|
620
635
|
hasItems: t,
|
|
@@ -677,14 +692,14 @@ class E extends m {
|
|
|
677
692
|
render() {
|
|
678
693
|
const t = this.rows, s = this.border !== !1 ? "border" : "";
|
|
679
694
|
return o({ class: "w-full flex flex-auto flex-col" }, [
|
|
680
|
-
|
|
695
|
+
w("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
|
|
681
696
|
o({ class: `w-full rounded-md ${s} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
|
|
682
|
-
|
|
697
|
+
P({ class: "w-full" }, [
|
|
683
698
|
// @ts-ignore
|
|
684
|
-
this.headers &&
|
|
699
|
+
this.headers && W({ headers: this.headers, sort: (a) => this.sortRows(a) }),
|
|
685
700
|
// @ts-ignore
|
|
686
701
|
this.customHeader ?? null,
|
|
687
|
-
|
|
702
|
+
Ot({
|
|
688
703
|
// @ts-ignore
|
|
689
704
|
key: this.key,
|
|
690
705
|
rows: t,
|
|
@@ -759,7 +774,7 @@ class E extends m {
|
|
|
759
774
|
this.data.selectedRows = [];
|
|
760
775
|
}
|
|
761
776
|
}
|
|
762
|
-
const
|
|
777
|
+
const zt = (e) => new lt({
|
|
763
778
|
cache: "list",
|
|
764
779
|
loadMoreItems: e.loadMoreItems,
|
|
765
780
|
offset: e.offset,
|
|
@@ -770,7 +785,7 @@ const Ot = (e) => new ot({
|
|
|
770
785
|
rowItem: (t) => e.rowItem(t, e.selectRow),
|
|
771
786
|
class: "divide-y divide-border"
|
|
772
787
|
});
|
|
773
|
-
class
|
|
788
|
+
class Yt extends Q {
|
|
774
789
|
/**
|
|
775
790
|
* Renders the DataTable component.
|
|
776
791
|
*
|
|
@@ -779,14 +794,14 @@ class $t extends E {
|
|
|
779
794
|
render() {
|
|
780
795
|
const t = this.rows, s = this.border !== !1 ? "border" : "";
|
|
781
796
|
return o({ class: "w-full flex flex-auto flex-col" }, [
|
|
782
|
-
|
|
797
|
+
w("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
|
|
783
798
|
o({ class: `w-full rounded-md ${s} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
|
|
784
|
-
|
|
799
|
+
P({ class: "w-full" }, [
|
|
785
800
|
// @ts-ignore
|
|
786
|
-
this.headers &&
|
|
801
|
+
this.headers && W({ headers: this.headers, sort: (a) => this.sortRows(a) }),
|
|
787
802
|
// @ts-ignore
|
|
788
803
|
this.customHeader ?? null,
|
|
789
|
-
|
|
804
|
+
zt({
|
|
790
805
|
// @ts-ignore
|
|
791
806
|
loadMoreItems: this.loadMoreItems,
|
|
792
807
|
// @ts-ignore
|
|
@@ -818,7 +833,7 @@ class $t extends E {
|
|
|
818
833
|
this.list.refresh();
|
|
819
834
|
}
|
|
820
835
|
}
|
|
821
|
-
const
|
|
836
|
+
const Se = f((e) => new Yt(
|
|
822
837
|
{
|
|
823
838
|
cache: e.cache ?? "list",
|
|
824
839
|
tableData: e.data,
|
|
@@ -834,7 +849,7 @@ const ve = f((e) => new $t(
|
|
|
834
849
|
border: e.border,
|
|
835
850
|
emptyState: e.emptyState
|
|
836
851
|
}
|
|
837
|
-
)),
|
|
852
|
+
)), jt = (e) => new rt({
|
|
838
853
|
cache: "list",
|
|
839
854
|
scrollContainer: e.scrollContainer,
|
|
840
855
|
loadMoreItems: e.loadMoreItems,
|
|
@@ -846,7 +861,7 @@ const ve = f((e) => new $t(
|
|
|
846
861
|
rowItem: (t) => e.rowItem(t, e.selectRow),
|
|
847
862
|
class: "divide-y divide-border"
|
|
848
863
|
});
|
|
849
|
-
class
|
|
864
|
+
class At extends Q {
|
|
850
865
|
/**
|
|
851
866
|
* Renders the DataTable component.
|
|
852
867
|
*
|
|
@@ -855,14 +870,14 @@ class jt extends E {
|
|
|
855
870
|
render() {
|
|
856
871
|
const t = this.rows, s = this.border !== !1 ? "border" : "";
|
|
857
872
|
return o({ class: "w-full flex flex-auto flex-col" }, [
|
|
858
|
-
|
|
873
|
+
w("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
|
|
859
874
|
o({ class: `w-full rounded-md ${s} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
|
|
860
|
-
|
|
875
|
+
P({ class: "w-full" }, [
|
|
861
876
|
// @ts-ignore
|
|
862
|
-
this.headers &&
|
|
877
|
+
this.headers && W({ headers: this.headers, sort: (a) => this.sortRows(a) }),
|
|
863
878
|
// @ts-ignore
|
|
864
879
|
this.customHeader ?? null,
|
|
865
|
-
|
|
880
|
+
jt({
|
|
866
881
|
// @ts-ignore
|
|
867
882
|
scrollContainer: this.scrollContainer,
|
|
868
883
|
// @ts-ignore
|
|
@@ -896,7 +911,7 @@ class jt extends E {
|
|
|
896
911
|
this.list.refresh();
|
|
897
912
|
}
|
|
898
913
|
}
|
|
899
|
-
const
|
|
914
|
+
const Ce = f((e) => new At(
|
|
900
915
|
{
|
|
901
916
|
cache: e.cache ?? "list",
|
|
902
917
|
tableData: e.data,
|
|
@@ -913,45 +928,45 @@ const De = f((e) => new jt(
|
|
|
913
928
|
border: e.border,
|
|
914
929
|
emptyState: e.emptyState
|
|
915
930
|
}
|
|
916
|
-
)),
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
])),
|
|
931
|
+
)), Ft = f(({ name: e, email: t }) => o({ class: "min-w-0 flex-auto" }, [
|
|
932
|
+
x({ class: "text-base font-semibold leading-6 m-0" }, e),
|
|
933
|
+
x({ class: "truncate text-sm leading-5 text-muted-foreground m-0" }, t)
|
|
934
|
+
])), Ht = () => o({ class: "flex items-center gap-x-1.5" }, [
|
|
920
935
|
o({ class: "flex-none rounded-full bg-emerald-500/20 p-1" }, [
|
|
921
936
|
o({ class: "h-1.5 w-1.5 rounded-full bg-emerald-500" })
|
|
922
937
|
]),
|
|
923
|
-
|
|
924
|
-
]),
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
]),
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
])),
|
|
938
|
+
x({ class: "text-xs leading-5 text-gray-500" }, "Online")
|
|
939
|
+
]), Ut = (e) => x({ class: "text-xs leading-5 text-muted-foreground" }, [
|
|
940
|
+
C("Last seen "),
|
|
941
|
+
Z({ datetime: e }, "3h ago")
|
|
942
|
+
]), 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" }, [
|
|
943
|
+
x({ class: "text-sm leading-6 m-0" }, e),
|
|
944
|
+
Et(s, t)
|
|
945
|
+
])), 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" }, [
|
|
931
946
|
o({ class: "flex min-w-0 gap-x-4" }, [
|
|
932
|
-
|
|
933
|
-
|
|
947
|
+
nt({ src: e.image, alt: e.name, fallbackText: Xt(e.name) }),
|
|
948
|
+
Ft({ name: e.name, email: e.email })
|
|
934
949
|
]),
|
|
935
|
-
|
|
950
|
+
Qt({
|
|
936
951
|
role: e.role,
|
|
937
952
|
lastSeen: e.lastSeen,
|
|
938
953
|
status: e.status
|
|
939
954
|
})
|
|
940
|
-
])),
|
|
955
|
+
])), Ie = f((e) => new ct({
|
|
941
956
|
cache: "list",
|
|
942
957
|
key: "name",
|
|
943
958
|
items: e.users,
|
|
944
959
|
role: "list",
|
|
945
960
|
class: "divide-y divide-border",
|
|
946
|
-
rowItem:
|
|
947
|
-
})),
|
|
961
|
+
rowItem: qt
|
|
962
|
+
})), 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({
|
|
948
963
|
text: e,
|
|
949
964
|
href: t,
|
|
950
965
|
exact: s,
|
|
951
966
|
dataSet: ["selected", ["state", !0, "active"]],
|
|
952
967
|
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`
|
|
953
968
|
});
|
|
954
|
-
class
|
|
969
|
+
class Me extends g {
|
|
955
970
|
/**
|
|
956
971
|
* This will declare the props for the compiler.
|
|
957
972
|
*
|
|
@@ -972,14 +987,14 @@ class Ce extends m {
|
|
|
972
987
|
* @returns {object}
|
|
973
988
|
*/
|
|
974
989
|
render() {
|
|
975
|
-
return
|
|
990
|
+
return M(
|
|
976
991
|
{ class: `flex items-center justify-center p-2 text-muted-foreground rounded-md ${this.class || ""}` },
|
|
977
992
|
[
|
|
978
|
-
|
|
993
|
+
k({
|
|
979
994
|
class: "flex space-x-4",
|
|
980
995
|
map: [this.options, (t) => this.addLink(t)],
|
|
981
996
|
watch: {
|
|
982
|
-
value: ["[[path]]",
|
|
997
|
+
value: ["[[path]]", D.data],
|
|
983
998
|
callBack: this.updateLinks.bind(this)
|
|
984
999
|
}
|
|
985
1000
|
})
|
|
@@ -992,7 +1007,7 @@ class Ce extends m {
|
|
|
992
1007
|
* @returns {void}
|
|
993
1008
|
*/
|
|
994
1009
|
afterSetup() {
|
|
995
|
-
const t =
|
|
1010
|
+
const t = D.data.path;
|
|
996
1011
|
this.updateLinks(t);
|
|
997
1012
|
}
|
|
998
1013
|
/**
|
|
@@ -1007,7 +1022,7 @@ class Ce extends m {
|
|
|
1007
1022
|
for (const a of this.links) {
|
|
1008
1023
|
if (!a.rendered)
|
|
1009
1024
|
continue;
|
|
1010
|
-
|
|
1025
|
+
Gt(a, a.getLinkPath(), t) ? (this.updateLink(a, !0), s = !0) : this.updateLink(a, !1);
|
|
1011
1026
|
}
|
|
1012
1027
|
!s && this.links[0] && this.updateLink(this.links[0], !0);
|
|
1013
1028
|
}
|
|
@@ -1037,7 +1052,7 @@ class Ce extends m {
|
|
|
1037
1052
|
* @returns {object}
|
|
1038
1053
|
*/
|
|
1039
1054
|
addLink({ label: t, href: s, exact: a, hidden: n }) {
|
|
1040
|
-
const i =
|
|
1055
|
+
const i = Jt({ text: t, href: s, exact: a, hidden: n });
|
|
1041
1056
|
return this.links.push(i), i;
|
|
1042
1057
|
}
|
|
1043
1058
|
/**
|
|
@@ -1049,13 +1064,13 @@ class Ce extends m {
|
|
|
1049
1064
|
this.links = [];
|
|
1050
1065
|
}
|
|
1051
1066
|
}
|
|
1052
|
-
const
|
|
1067
|
+
const Le = f((e) => {
|
|
1053
1068
|
const t = e.margin || "m-4 ml-0";
|
|
1054
1069
|
return e.allowHistory = e.allowHistory === !0, o({ class: `flex-none ${t}` }, [
|
|
1055
|
-
|
|
1070
|
+
m({ variant: "back", class: "ghost", ...e })
|
|
1056
1071
|
]);
|
|
1057
1072
|
});
|
|
1058
|
-
class
|
|
1073
|
+
class X extends g {
|
|
1059
1074
|
/**
|
|
1060
1075
|
* This will declare the props for the compiler.
|
|
1061
1076
|
*
|
|
@@ -1142,13 +1157,13 @@ class Q extends m {
|
|
|
1142
1157
|
return this.children;
|
|
1143
1158
|
}
|
|
1144
1159
|
}
|
|
1145
|
-
|
|
1160
|
+
E.addType("dockableOverlay", (e) => {
|
|
1146
1161
|
if (!e)
|
|
1147
1162
|
return;
|
|
1148
1163
|
const t = e.component;
|
|
1149
1164
|
t && t.rendered === !0 && t.state.docked === !1 && t.destroy();
|
|
1150
1165
|
});
|
|
1151
|
-
class
|
|
1166
|
+
class Te extends X {
|
|
1152
1167
|
/**
|
|
1153
1168
|
* This will stop presistence.
|
|
1154
1169
|
*
|
|
@@ -1214,7 +1229,7 @@ class Me extends Q {
|
|
|
1214
1229
|
* @returns {void}
|
|
1215
1230
|
*/
|
|
1216
1231
|
afterSetup() {
|
|
1217
|
-
|
|
1232
|
+
E.add(
|
|
1218
1233
|
this.container,
|
|
1219
1234
|
"dockableOverlay",
|
|
1220
1235
|
{
|
|
@@ -1257,7 +1272,7 @@ class Me extends Q {
|
|
|
1257
1272
|
document.documentElement.style.overflowY = "auto";
|
|
1258
1273
|
}
|
|
1259
1274
|
}
|
|
1260
|
-
class
|
|
1275
|
+
class Be extends X {
|
|
1261
1276
|
/**
|
|
1262
1277
|
* This will get the overlay type.
|
|
1263
1278
|
*
|
|
@@ -1276,7 +1291,7 @@ class Le extends Q {
|
|
|
1276
1291
|
this.container = t, this.initialize();
|
|
1277
1292
|
}
|
|
1278
1293
|
}
|
|
1279
|
-
const
|
|
1294
|
+
const _t = f(({ index: e, click: t, state: s }, a) => I({
|
|
1280
1295
|
class: "p-2 cursor-pointer hover:bg-muted/50",
|
|
1281
1296
|
onState: [
|
|
1282
1297
|
[s, "selectedIndex", {
|
|
@@ -1285,11 +1300,11 @@ const Gt = f(({ index: e, click: t, state: s }, a) => C({
|
|
|
1285
1300
|
}]
|
|
1286
1301
|
],
|
|
1287
1302
|
click: () => t(e)
|
|
1288
|
-
}, a)),
|
|
1303
|
+
}, a)), Vt = f(({ selectOption: e, state: t }) => k({
|
|
1289
1304
|
class: "border rounded-md list-none m-0 p-0 max-h-[400px] overflow-y-auto",
|
|
1290
|
-
for: ["filteredOptions", (s, a) =>
|
|
1291
|
-
})),
|
|
1292
|
-
|
|
1305
|
+
for: ["filteredOptions", (s, a) => _t({ index: a, click: e, state: t }, s.label)]
|
|
1306
|
+
})), Zt = f((e) => o({ class: "relative flex items-center" }, [
|
|
1307
|
+
ut({
|
|
1293
1308
|
cache: "input",
|
|
1294
1309
|
class: e.class ?? "",
|
|
1295
1310
|
placeholder: e.placeholder ?? "Search...",
|
|
@@ -1305,22 +1320,22 @@ const Gt = f(({ index: e, click: t, state: s }, a) => C({
|
|
|
1305
1320
|
]
|
|
1306
1321
|
}),
|
|
1307
1322
|
e.icon && o({ class: "absolute flex right-0 mr-2" }, [
|
|
1308
|
-
|
|
1323
|
+
st(e.icon)
|
|
1309
1324
|
])
|
|
1310
|
-
])),
|
|
1325
|
+
])), te = (e) => o({
|
|
1311
1326
|
class: "relative flex fle-auto flex-col",
|
|
1312
1327
|
onState: ["open", (t, s, a) => {
|
|
1313
1328
|
if (t)
|
|
1314
|
-
return new
|
|
1329
|
+
return new it({
|
|
1315
1330
|
cache: "dropdown",
|
|
1316
1331
|
parent: a,
|
|
1317
1332
|
button: a.input,
|
|
1318
1333
|
size: "xl"
|
|
1319
1334
|
}, [
|
|
1320
|
-
|
|
1335
|
+
Vt(e)
|
|
1321
1336
|
]);
|
|
1322
1337
|
}]
|
|
1323
|
-
}),
|
|
1338
|
+
}), Re = et(
|
|
1324
1339
|
{
|
|
1325
1340
|
/**
|
|
1326
1341
|
* This will set up the data object.
|
|
@@ -1329,7 +1344,7 @@ const Gt = f(({ index: e, click: t, state: s }, a) => C({
|
|
|
1329
1344
|
*/
|
|
1330
1345
|
setData() {
|
|
1331
1346
|
const e = this.options || [];
|
|
1332
|
-
return new
|
|
1347
|
+
return new L({
|
|
1333
1348
|
options: e,
|
|
1334
1349
|
filteredOptions: e
|
|
1335
1350
|
});
|
|
@@ -1417,7 +1432,7 @@ const Gt = f(({ index: e, click: t, state: s }, a) => C({
|
|
|
1417
1432
|
*/
|
|
1418
1433
|
render() {
|
|
1419
1434
|
return o({ class: "relative w-full max-w-md" }, [
|
|
1420
|
-
|
|
1435
|
+
Zt({
|
|
1421
1436
|
// @ts-ignore
|
|
1422
1437
|
state: this.state,
|
|
1423
1438
|
// @ts-ignore
|
|
@@ -1429,7 +1444,7 @@ const Gt = f(({ index: e, click: t, state: s }, a) => C({
|
|
|
1429
1444
|
// @ts-ignore
|
|
1430
1445
|
handleKeyDown: this.handleKeyDown.bind(this)
|
|
1431
1446
|
}),
|
|
1432
|
-
|
|
1447
|
+
te({
|
|
1433
1448
|
// @ts-ignore
|
|
1434
1449
|
state: this.state,
|
|
1435
1450
|
// @ts-ignore
|
|
@@ -1440,22 +1455,22 @@ const Gt = f(({ index: e, click: t, state: s }, a) => C({
|
|
|
1440
1455
|
]);
|
|
1441
1456
|
}
|
|
1442
1457
|
}
|
|
1443
|
-
),
|
|
1458
|
+
), ee = (e) => I(
|
|
1444
1459
|
{
|
|
1445
1460
|
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",
|
|
1446
1461
|
dataSet: ["selected", ["state", e.value, "active"]]
|
|
1447
1462
|
},
|
|
1448
1463
|
[
|
|
1449
|
-
|
|
1464
|
+
S({
|
|
1450
1465
|
class: "flex flex-auto justify-center items-center px-3 py-1.5 rounded-md",
|
|
1451
1466
|
onSet: ["selected", { selected: e.value }],
|
|
1452
1467
|
click: (t) => e.callBack(e.value)
|
|
1453
1468
|
}, e.label)
|
|
1454
1469
|
]
|
|
1455
|
-
),
|
|
1456
|
-
|
|
1470
|
+
), 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}` }, [
|
|
1471
|
+
k({ class: "flex flex-auto flex-row", map: [e.options, (t) => se(t, e.callBack)] })
|
|
1457
1472
|
]);
|
|
1458
|
-
class
|
|
1473
|
+
class Pe extends g {
|
|
1459
1474
|
/**
|
|
1460
1475
|
* This will declare the props for the compiler.
|
|
1461
1476
|
*
|
|
@@ -1472,12 +1487,12 @@ class Be extends m {
|
|
|
1472
1487
|
render() {
|
|
1473
1488
|
const t = this.select.bind(this);
|
|
1474
1489
|
return o({ class: "" }, [
|
|
1475
|
-
|
|
1490
|
+
ae({
|
|
1476
1491
|
class: this.class,
|
|
1477
1492
|
options: this.options,
|
|
1478
1493
|
callBack: t
|
|
1479
1494
|
}),
|
|
1480
|
-
|
|
1495
|
+
H({
|
|
1481
1496
|
class: "tab-content",
|
|
1482
1497
|
onState: ["selected", this.updateContent.bind(this)]
|
|
1483
1498
|
})
|
|
@@ -1543,23 +1558,23 @@ class Be extends m {
|
|
|
1543
1558
|
};
|
|
1544
1559
|
}
|
|
1545
1560
|
}
|
|
1546
|
-
const
|
|
1561
|
+
const ne = (e) => I(
|
|
1547
1562
|
{
|
|
1548
1563
|
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",
|
|
1549
1564
|
dataSet: ["selected", ["state", e.value, "active"]]
|
|
1550
1565
|
},
|
|
1551
1566
|
[
|
|
1552
|
-
|
|
1567
|
+
S({
|
|
1553
1568
|
class: "flex flex-auto justify-center items-center px-3 py-1.5 rounded-md disabled:opacity-50 disabled:cursor-not-allowed",
|
|
1554
1569
|
onSet: ["selected", { selected: e.value }],
|
|
1555
1570
|
click: (t) => e.callBack(e.value),
|
|
1556
1571
|
disabled: e.disabled
|
|
1557
1572
|
}, e.label)
|
|
1558
1573
|
]
|
|
1559
|
-
),
|
|
1560
|
-
|
|
1574
|
+
), 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}` }, [
|
|
1575
|
+
k({ class: "flex flex-auto flex-row", map: [e.options, (t) => ie(t, e.callBack)] })
|
|
1561
1576
|
]);
|
|
1562
|
-
class
|
|
1577
|
+
class $e extends g {
|
|
1563
1578
|
/**
|
|
1564
1579
|
* This will declare the props for the compiler.
|
|
1565
1580
|
*
|
|
@@ -1575,7 +1590,7 @@ class Re extends m {
|
|
|
1575
1590
|
*/
|
|
1576
1591
|
render() {
|
|
1577
1592
|
const t = this.select.bind(this);
|
|
1578
|
-
return
|
|
1593
|
+
return oe({
|
|
1579
1594
|
class: this.class,
|
|
1580
1595
|
options: this.options,
|
|
1581
1596
|
callBack: t
|
|
@@ -1602,17 +1617,17 @@ class Re extends m {
|
|
|
1602
1617
|
};
|
|
1603
1618
|
}
|
|
1604
1619
|
}
|
|
1605
|
-
const
|
|
1620
|
+
const le = (e, t) => new RegExp(`${e}($|/|\\.).*`).test(t), re = (e, t) => {
|
|
1606
1621
|
const s = e.getLinkPath();
|
|
1607
|
-
return e.exact ? t === s :
|
|
1608
|
-
},
|
|
1622
|
+
return e.exact ? t === s : le(s, t);
|
|
1623
|
+
}, ce = ({ text: e, href: t, exact: s }) => new U({
|
|
1609
1624
|
text: e,
|
|
1610
1625
|
href: t,
|
|
1611
1626
|
exact: s,
|
|
1612
1627
|
dataSet: ["selected", ["state", !0, "active"]],
|
|
1613
1628
|
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"
|
|
1614
1629
|
});
|
|
1615
|
-
class
|
|
1630
|
+
class de extends g {
|
|
1616
1631
|
/**
|
|
1617
1632
|
* This will declare the props for the compiler.
|
|
1618
1633
|
*
|
|
@@ -1633,12 +1648,12 @@ class re extends m {
|
|
|
1633
1648
|
* @returns {object}
|
|
1634
1649
|
*/
|
|
1635
1650
|
render() {
|
|
1636
|
-
return
|
|
1637
|
-
|
|
1651
|
+
return M({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${this.class}` }, [
|
|
1652
|
+
k({
|
|
1638
1653
|
class: "flex flex-auto flex-row",
|
|
1639
1654
|
map: [this.options, (t) => this.addLink(t)],
|
|
1640
1655
|
watch: {
|
|
1641
|
-
value: ["[[path]]",
|
|
1656
|
+
value: ["[[path]]", D.data],
|
|
1642
1657
|
callBack: this.updateLinks.bind(this)
|
|
1643
1658
|
}
|
|
1644
1659
|
})
|
|
@@ -1650,7 +1665,7 @@ class re extends m {
|
|
|
1650
1665
|
* @returns {void}
|
|
1651
1666
|
*/
|
|
1652
1667
|
afterSetup() {
|
|
1653
|
-
const t =
|
|
1668
|
+
const t = D.data.path;
|
|
1654
1669
|
this.updateLinks(t);
|
|
1655
1670
|
}
|
|
1656
1671
|
/**
|
|
@@ -1663,7 +1678,7 @@ class re extends m {
|
|
|
1663
1678
|
let s = !1, a = this.links[0];
|
|
1664
1679
|
this.deactivateAllLinks();
|
|
1665
1680
|
for (const n of this.links)
|
|
1666
|
-
if (n.rendered !== !1 && (s =
|
|
1681
|
+
if (n.rendered !== !1 && (s = re(n, t), s === !0)) {
|
|
1667
1682
|
this.updateLink(n, !0);
|
|
1668
1683
|
break;
|
|
1669
1684
|
}
|
|
@@ -1695,7 +1710,7 @@ class re extends m {
|
|
|
1695
1710
|
* @returns {object}
|
|
1696
1711
|
*/
|
|
1697
1712
|
addLink({ label: t, href: s, exact: a }) {
|
|
1698
|
-
const n =
|
|
1713
|
+
const n = ce({ text: t, href: s, exact: a });
|
|
1699
1714
|
return this.links.push(n), n;
|
|
1700
1715
|
}
|
|
1701
1716
|
/**
|
|
@@ -1707,7 +1722,7 @@ class re extends m {
|
|
|
1707
1722
|
this.links = [];
|
|
1708
1723
|
}
|
|
1709
1724
|
}
|
|
1710
|
-
class
|
|
1725
|
+
class We extends g {
|
|
1711
1726
|
/**
|
|
1712
1727
|
* This will declare the props for the compiler.
|
|
1713
1728
|
*
|
|
@@ -1723,11 +1738,11 @@ class Pe extends m {
|
|
|
1723
1738
|
*/
|
|
1724
1739
|
render() {
|
|
1725
1740
|
return o({ class: "tab-panel" }, [
|
|
1726
|
-
new
|
|
1741
|
+
new de({
|
|
1727
1742
|
class: this.class,
|
|
1728
1743
|
options: this.options
|
|
1729
1744
|
}),
|
|
1730
|
-
|
|
1745
|
+
H({
|
|
1731
1746
|
class: "tab-content",
|
|
1732
1747
|
switch: this.addGroup()
|
|
1733
1748
|
})
|
|
@@ -1753,7 +1768,7 @@ class Pe extends m {
|
|
|
1753
1768
|
return s;
|
|
1754
1769
|
}
|
|
1755
1770
|
}
|
|
1756
|
-
class
|
|
1771
|
+
class he extends g {
|
|
1757
1772
|
/**
|
|
1758
1773
|
* Runs before rendering, sets up defaults, a timer for drawing,
|
|
1759
1774
|
* and basic canvas properties.
|
|
@@ -1763,7 +1778,7 @@ class ce extends m {
|
|
|
1763
1778
|
onCreated() {
|
|
1764
1779
|
this.lineWidth = this.lineWidth || 3, this.lineColor = this.lineColor || "#000000", this.canvas = null, this.ctx = null, this.status = "stopped";
|
|
1765
1780
|
const t = 1e3 / 60;
|
|
1766
|
-
this.timer = new
|
|
1781
|
+
this.timer = new dt(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";
|
|
1767
1782
|
}
|
|
1768
1783
|
/**
|
|
1769
1784
|
* Renders a <canvas> element.
|
|
@@ -1771,7 +1786,7 @@ class ce extends m {
|
|
|
1771
1786
|
* @returns {object} Layout definition for the canvas.
|
|
1772
1787
|
*/
|
|
1773
1788
|
render() {
|
|
1774
|
-
return
|
|
1789
|
+
return tt({
|
|
1775
1790
|
style: "touch-action: none; -webkit-user-select: none; -webkit-touch-callout: none;"
|
|
1776
1791
|
});
|
|
1777
1792
|
}
|
|
@@ -1801,11 +1816,11 @@ class ce extends m {
|
|
|
1801
1816
|
* @returns {Array} An array of [eventName, element, callback] definitions.
|
|
1802
1817
|
*/
|
|
1803
1818
|
setupEvents() {
|
|
1804
|
-
const t = this.panel, s = this.pointerPosition.bind(this), a = this.pointerUp.bind(this), n = this.pointerDown.bind(this), i = this.resize.bind(this),
|
|
1819
|
+
const t = this.panel, s = this.pointerPosition.bind(this), a = this.pointerUp.bind(this), n = this.pointerDown.bind(this), i = this.resize.bind(this), l = { passive: !1 };
|
|
1805
1820
|
return [
|
|
1806
|
-
["pointermove", t, s,
|
|
1821
|
+
["pointermove", t, s, l],
|
|
1807
1822
|
["pointerup", t, a],
|
|
1808
|
-
["pointerdown", t, n,
|
|
1823
|
+
["pointerdown", t, n, l],
|
|
1809
1824
|
["pointerout", t, a],
|
|
1810
1825
|
["resize", globalThis, i]
|
|
1811
1826
|
];
|
|
@@ -1818,14 +1833,14 @@ class ce extends m {
|
|
|
1818
1833
|
*/
|
|
1819
1834
|
getEventPosition(t) {
|
|
1820
1835
|
let s, a;
|
|
1821
|
-
const n = this.canvas, i = n.width / parseInt(n.style.width),
|
|
1836
|
+
const n = this.canvas, i = n.width / parseInt(n.style.width), l = n.getBoundingClientRect();
|
|
1822
1837
|
if (t.touches && t.touches.length) {
|
|
1823
1838
|
const d = t.touches[0];
|
|
1824
1839
|
s = d.clientX, a = d.clientY;
|
|
1825
1840
|
} else
|
|
1826
1841
|
s = t.x || t.clientX, a = t.y || t.clientY;
|
|
1827
|
-
const
|
|
1828
|
-
this.mouse.x =
|
|
1842
|
+
const r = parseInt((s - l.left) * i), c = parseInt((a - l.top) * i);
|
|
1843
|
+
this.mouse.x = r, this.mouse.y = c;
|
|
1829
1844
|
}
|
|
1830
1845
|
/**
|
|
1831
1846
|
* Called when the pointer goes down on the canvas.
|
|
@@ -1868,8 +1883,8 @@ class ce extends m {
|
|
|
1868
1883
|
const { canvas: t, ctx: s } = this, a = t.toDataURL();
|
|
1869
1884
|
if (this.scale(), this.setupBackground(s), a !== "data:,") {
|
|
1870
1885
|
const n = new globalThis.Image();
|
|
1871
|
-
|
|
1872
|
-
s.drawImage(n, 0, 0),
|
|
1886
|
+
N.on("load", n, function i() {
|
|
1887
|
+
s.drawImage(n, 0, 0), N.off("load", n, i);
|
|
1873
1888
|
}), n.src = a;
|
|
1874
1889
|
}
|
|
1875
1890
|
this.draw();
|
|
@@ -1899,13 +1914,13 @@ class ce extends m {
|
|
|
1899
1914
|
* @returns {void}
|
|
1900
1915
|
*/
|
|
1901
1916
|
scale() {
|
|
1902
|
-
const t = this.canvas, s = this.container, a = O.getSize(s), n = this.targetSize, i = n.width,
|
|
1903
|
-
let
|
|
1904
|
-
if (this.width = t.width = i, this.height = t.height =
|
|
1905
|
-
const d = a.width, u = a.height, h = d / i, p = u /
|
|
1906
|
-
|
|
1917
|
+
const t = this.canvas, s = this.container, a = O.getSize(s), n = this.targetSize, i = n.width, l = n.height;
|
|
1918
|
+
let r = i + "px", c = l + "px";
|
|
1919
|
+
if (this.width = t.width = i, this.height = t.height = l, a.width !== 0 && a.height !== 0) {
|
|
1920
|
+
const d = a.width, u = a.height, h = d / i, p = u / l, y = Math.min(h, p);
|
|
1921
|
+
r = i * y + "px", c = l * y + "px";
|
|
1907
1922
|
}
|
|
1908
|
-
t.style.width =
|
|
1923
|
+
t.style.width = r, t.style.height = c;
|
|
1909
1924
|
}
|
|
1910
1925
|
/**
|
|
1911
1926
|
* Main drawing loop. If the mouse is down, adds a line
|
|
@@ -1939,8 +1954,8 @@ class ce extends m {
|
|
|
1939
1954
|
*/
|
|
1940
1955
|
addLine(t, s, a, n) {
|
|
1941
1956
|
this.signed || (this.signed = !0);
|
|
1942
|
-
const i = Math.round(s),
|
|
1943
|
-
t.lineWidth = this.lineWidth, t.strokeStyle = n, t.lineTo(i,
|
|
1957
|
+
const i = Math.round(s), l = Math.round(a);
|
|
1958
|
+
t.lineWidth = this.lineWidth, t.strokeStyle = n, t.lineTo(i, l), t.stroke();
|
|
1944
1959
|
}
|
|
1945
1960
|
/**
|
|
1946
1961
|
* Clears the canvas, sets signed to false, and re-initializes
|
|
@@ -1979,7 +1994,7 @@ class ce extends m {
|
|
|
1979
1994
|
this.timer.stop(), this.status = "stopped";
|
|
1980
1995
|
}
|
|
1981
1996
|
}
|
|
1982
|
-
class Ne extends
|
|
1997
|
+
class Ne extends g {
|
|
1983
1998
|
/**
|
|
1984
1999
|
* Sets up default properties for the signature panel.
|
|
1985
2000
|
*
|
|
@@ -1996,19 +2011,19 @@ class Ne extends m {
|
|
|
1996
2011
|
*/
|
|
1997
2012
|
render() {
|
|
1998
2013
|
return o({ class: "signature-panel relative flex flex-auto overflow-hidden select-none" }, [
|
|
1999
|
-
|
|
2014
|
+
ft({
|
|
2000
2015
|
cache: "hiddenInput",
|
|
2001
2016
|
required: !0,
|
|
2002
2017
|
bind: this.path + ".data"
|
|
2003
2018
|
}),
|
|
2004
2019
|
o({ class: "absolute top-2 right-2" }, [
|
|
2005
|
-
|
|
2020
|
+
m({
|
|
2006
2021
|
variant: "icon",
|
|
2007
2022
|
icon: b.circleX,
|
|
2008
2023
|
click: this.reset.bind(this)
|
|
2009
2024
|
})
|
|
2010
2025
|
]),
|
|
2011
|
-
new
|
|
2026
|
+
new he({
|
|
2012
2027
|
cache: "canvasLayer",
|
|
2013
2028
|
margin: this.margin,
|
|
2014
2029
|
targetSize: this.targetSize,
|
|
@@ -2058,37 +2073,37 @@ class Ne extends m {
|
|
|
2058
2073
|
}
|
|
2059
2074
|
}
|
|
2060
2075
|
export {
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2076
|
+
Le as B,
|
|
2077
|
+
Wt as C,
|
|
2078
|
+
Ot as D,
|
|
2064
2079
|
Nt as H,
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2080
|
+
Be as I,
|
|
2081
|
+
Me as N,
|
|
2082
|
+
X as O,
|
|
2083
|
+
be as P,
|
|
2084
|
+
De as R,
|
|
2085
|
+
Ce as S,
|
|
2086
|
+
W as T,
|
|
2087
|
+
qt as U,
|
|
2088
|
+
ve as W,
|
|
2089
|
+
yt as a,
|
|
2090
|
+
z as b,
|
|
2076
2091
|
mt as c,
|
|
2077
|
-
|
|
2078
|
-
|
|
2092
|
+
xe as d,
|
|
2093
|
+
ke as e,
|
|
2079
2094
|
bt as f,
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2095
|
+
pt as g,
|
|
2096
|
+
kt as h,
|
|
2097
|
+
vt as i,
|
|
2098
|
+
Q as j,
|
|
2099
|
+
Se as k,
|
|
2100
|
+
Ie as l,
|
|
2101
|
+
Te as m,
|
|
2102
|
+
Re as n,
|
|
2103
|
+
Zt as o,
|
|
2104
|
+
Pe as p,
|
|
2105
|
+
$e as q,
|
|
2106
|
+
de as r,
|
|
2107
|
+
We as s,
|
|
2093
2108
|
Ne as t
|
|
2094
2109
|
};
|
|
@@ -57,13 +57,10 @@ export class RangeCalendar extends Component {
|
|
|
57
57
|
/**
|
|
58
58
|
* Update current month/year in data.
|
|
59
59
|
*
|
|
60
|
-
* @param {
|
|
60
|
+
* @param {object} obj
|
|
61
61
|
* @returns {void}
|
|
62
62
|
*/
|
|
63
|
-
setCurrent({ month, year }:
|
|
64
|
-
month: number;
|
|
65
|
-
year: number;
|
|
66
|
-
}): void;
|
|
63
|
+
setCurrent({ month, year, date }: object): void;
|
|
67
64
|
/**
|
|
68
65
|
* Render the range calendar.
|
|
69
66
|
*
|
package/package.json
CHANGED