@base-framework/ui 1.0.229 → 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
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,61 +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
|
-
|
|
390
|
+
}, Nt = g((e, t) => o({ class: "flex flex-auto flex-col" }, [
|
|
391
|
+
Rt({
|
|
365
392
|
onMonthClick: e.onMonthClick,
|
|
366
393
|
onYearClick: e.onYearClick,
|
|
367
394
|
next: e.next,
|
|
@@ -372,8 +399,8 @@ const j = ({ label: e, click: t }) => m(
|
|
|
372
399
|
onSet: [
|
|
373
400
|
"currentDate",
|
|
374
401
|
() => [
|
|
375
|
-
|
|
376
|
-
|
|
402
|
+
Pt(),
|
|
403
|
+
Wt({
|
|
377
404
|
today: e.today,
|
|
378
405
|
current: e.current,
|
|
379
406
|
blockPriorDates: e.blockPriorDates,
|
|
@@ -382,10 +409,10 @@ const j = ({ label: e, click: t }) => m(
|
|
|
382
409
|
]
|
|
383
410
|
]
|
|
384
411
|
})
|
|
385
|
-
])),
|
|
412
|
+
])), jt = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
|
|
386
413
|
{ class: "grid grid-cols-3 gap-2" },
|
|
387
|
-
|
|
388
|
-
(a, n) =>
|
|
414
|
+
F.monthNames.map(
|
|
415
|
+
(a, n) => p(
|
|
389
416
|
{
|
|
390
417
|
click: (i) => {
|
|
391
418
|
i.preventDefault(), i.stopPropagation(), s(n);
|
|
@@ -396,30 +423,30 @@ const j = ({ label: e, click: t }) => m(
|
|
|
396
423
|
a.substring(0, 3)
|
|
397
424
|
)
|
|
398
425
|
)
|
|
399
|
-
),
|
|
400
|
-
|
|
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({
|
|
401
428
|
click: a,
|
|
402
429
|
variant: i === "start" ? "primary" : "outline",
|
|
403
430
|
class: "flex-1"
|
|
404
431
|
}, [
|
|
405
|
-
o({ class: "font-medium" },
|
|
432
|
+
o({ class: "font-medium" }, G("current.start", "Start Date"))
|
|
406
433
|
])),
|
|
407
|
-
|
|
434
|
+
k("selecting", (i) => p({
|
|
408
435
|
click: n,
|
|
409
436
|
variant: i === "end" ? "primary" : "outline",
|
|
410
437
|
class: "flex-1"
|
|
411
438
|
}, [
|
|
412
|
-
o({ class: "font-medium" },
|
|
439
|
+
o({ class: "font-medium" }, G("current.end", "End Date"))
|
|
413
440
|
]))
|
|
414
|
-
]),
|
|
441
|
+
]), G = (e, t) => [`[[${e}]]`, (s) => s == null ? t : Yt(s)], Yt = (e) => {
|
|
415
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"];
|
|
416
443
|
return `${s[t.getDay()]}, ${t.getDate()} ${a[t.getMonth()]}`;
|
|
417
|
-
},
|
|
444
|
+
}, At = ({ currentYear: e, onSelect: t }) => {
|
|
418
445
|
const s = e - 50, a = Array.from({ length: 101 }, (n, i) => s + i);
|
|
419
446
|
return o(
|
|
420
447
|
{ class: "grid grid-cols-4 gap-2 overflow-y-auto max-h-72" },
|
|
421
448
|
a.map(
|
|
422
|
-
(n) =>
|
|
449
|
+
(n) => p(
|
|
423
450
|
{
|
|
424
451
|
click: (i) => {
|
|
425
452
|
i.preventDefault(), i.stopPropagation(), t(n);
|
|
@@ -432,7 +459,7 @@ const j = ({ label: e, click: t }) => m(
|
|
|
432
459
|
)
|
|
433
460
|
);
|
|
434
461
|
};
|
|
435
|
-
class
|
|
462
|
+
class Re extends m {
|
|
436
463
|
/**
|
|
437
464
|
* Declare compiler props.
|
|
438
465
|
*
|
|
@@ -448,14 +475,14 @@ class De extends g {
|
|
|
448
475
|
*/
|
|
449
476
|
setData() {
|
|
450
477
|
const t = /* @__PURE__ */ new Date(), s = this.startDate ? /* @__PURE__ */ new Date(this.startDate + "T00:00:00") : t, a = s.getMonth(), n = s.getFullYear();
|
|
451
|
-
return new
|
|
478
|
+
return new j({
|
|
452
479
|
today: {
|
|
453
480
|
date: t.getDate(),
|
|
454
481
|
month: t.getMonth(),
|
|
455
482
|
year: t.getFullYear()
|
|
456
483
|
},
|
|
457
484
|
monthName: this.getMonthName(a),
|
|
458
|
-
currentData: `${s.getFullYear()}-${
|
|
485
|
+
currentData: `${s.getFullYear()}-${R(s.getMonth() + 1)}-${R(s.getDate())}`,
|
|
459
486
|
current: {
|
|
460
487
|
date: t.getDate(),
|
|
461
488
|
month: a,
|
|
@@ -473,7 +500,7 @@ class De extends g {
|
|
|
473
500
|
* @returns {string}
|
|
474
501
|
*/
|
|
475
502
|
getMonthName(t) {
|
|
476
|
-
return
|
|
503
|
+
return F.monthNames[t];
|
|
477
504
|
}
|
|
478
505
|
/**
|
|
479
506
|
* Initialize component state.
|
|
@@ -519,7 +546,7 @@ class De extends g {
|
|
|
519
546
|
*/
|
|
520
547
|
setCurrent({ month: t, year: s, date: a = null }) {
|
|
521
548
|
const n = this.data.current;
|
|
522
|
-
n.month = (t + 12) % 12, n.year = s + (t < 0 ? -1 : t > 11 ? 1 : 0), a !== null && (n.date = a), this.data.monthName = this.getMonthName(n.month), this.data.currentDate = `${s}-${
|
|
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)}`;
|
|
523
550
|
}
|
|
524
551
|
/**
|
|
525
552
|
* Render the range calendar.
|
|
@@ -529,17 +556,17 @@ class De extends g {
|
|
|
529
556
|
render() {
|
|
530
557
|
const { today: t, current: s, selecting: a } = this.data, { start: n, end: i } = s;
|
|
531
558
|
return o({ class: "range-calendar bg-background border border-border rounded-lg shadow-md p-4 w-full max-w-sm" }, [
|
|
532
|
-
|
|
559
|
+
zt({
|
|
533
560
|
start: n,
|
|
534
561
|
end: i,
|
|
535
562
|
selecting: a,
|
|
536
563
|
onSelectStart: () => this.data.selecting = "start",
|
|
537
564
|
onSelectEnd: () => this.data.selecting = "end"
|
|
538
565
|
}),
|
|
539
|
-
|
|
566
|
+
at("view", (l) => {
|
|
540
567
|
switch (l) {
|
|
541
568
|
case "months":
|
|
542
|
-
return
|
|
569
|
+
return jt(
|
|
543
570
|
{
|
|
544
571
|
currentMonth: s.month,
|
|
545
572
|
currentYear: s.year,
|
|
@@ -549,7 +576,7 @@ class De extends g {
|
|
|
549
576
|
}
|
|
550
577
|
);
|
|
551
578
|
case "years":
|
|
552
|
-
return
|
|
579
|
+
return At(
|
|
553
580
|
{
|
|
554
581
|
currentYear: s.year,
|
|
555
582
|
onSelect: (r) => {
|
|
@@ -558,7 +585,7 @@ class De extends g {
|
|
|
558
585
|
}
|
|
559
586
|
);
|
|
560
587
|
default:
|
|
561
|
-
return
|
|
588
|
+
return Nt({
|
|
562
589
|
monthName: this.data.monthName,
|
|
563
590
|
year: s.year,
|
|
564
591
|
today: t,
|
|
@@ -581,28 +608,28 @@ class De extends g {
|
|
|
581
608
|
]);
|
|
582
609
|
}
|
|
583
610
|
}
|
|
584
|
-
const
|
|
611
|
+
const Ft = (e, t) => {
|
|
585
612
|
const s = e.toggleAllSelectedRows();
|
|
586
613
|
t.state.checked = !s;
|
|
587
|
-
},
|
|
588
|
-
|
|
589
|
-
]),
|
|
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 }) => {
|
|
590
617
|
const l = e || "justify-start";
|
|
591
|
-
return
|
|
618
|
+
return J({
|
|
592
619
|
class: `cursor-pointer py-3 px-4 text-base ${i || ""}`,
|
|
593
620
|
click: t && (() => n(s))
|
|
594
621
|
}, [
|
|
595
622
|
o({ class: `flex flex-auto w-full items-center ${l}` }, [
|
|
596
|
-
|
|
597
|
-
t &&
|
|
623
|
+
$(a),
|
|
624
|
+
t && it({ class: "ml-2", html: v.arrows.upDown })
|
|
598
625
|
])
|
|
599
626
|
]);
|
|
600
|
-
},
|
|
601
|
-
|
|
627
|
+
}, H = (e) => ot([
|
|
628
|
+
lt({
|
|
602
629
|
class: "text-muted-foreground border-b",
|
|
603
630
|
map: [
|
|
604
631
|
e.headers,
|
|
605
|
-
(t) => t.label === "checkbox" ?
|
|
632
|
+
(t) => t.label === "checkbox" ? Ht({ toggle: e.toggle }) : Et({
|
|
606
633
|
align: t.align,
|
|
607
634
|
sortable: t.sortable,
|
|
608
635
|
key: t.key,
|
|
@@ -611,7 +638,7 @@ const $t = (e, t) => {
|
|
|
611
638
|
})
|
|
612
639
|
]
|
|
613
640
|
})
|
|
614
|
-
]),
|
|
641
|
+
]), Ut = ({ key: e, rows: t, selectRow: s, rowItem: a, emptyState: n }) => new gt({
|
|
615
642
|
cache: "list",
|
|
616
643
|
key: e,
|
|
617
644
|
items: t,
|
|
@@ -619,7 +646,7 @@ const $t = (e, t) => {
|
|
|
619
646
|
class: "divide-y divide-border",
|
|
620
647
|
emptyState: n
|
|
621
648
|
});
|
|
622
|
-
class
|
|
649
|
+
class tt extends m {
|
|
623
650
|
/**
|
|
624
651
|
* Initializes component data.
|
|
625
652
|
*
|
|
@@ -627,7 +654,7 @@ class Q extends g {
|
|
|
627
654
|
*/
|
|
628
655
|
setData() {
|
|
629
656
|
let t = this.rows && this.rows.length > 0;
|
|
630
|
-
return (this.loadMoreItems || this.tableData) && !t && (t = null), new
|
|
657
|
+
return (this.loadMoreItems || this.tableData) && !t && (t = null), new j({
|
|
631
658
|
selectedRows: [],
|
|
632
659
|
// @ts-ignore
|
|
633
660
|
hasItems: t,
|
|
@@ -690,14 +717,14 @@ class Q extends g {
|
|
|
690
717
|
render() {
|
|
691
718
|
const t = this.rows, s = this.border !== !1 ? "border" : "";
|
|
692
719
|
return o({ class: "w-full flex flex-auto flex-col" }, [
|
|
693
|
-
|
|
720
|
+
k("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
|
|
694
721
|
o({ class: `w-full rounded-md ${s} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
|
|
695
|
-
|
|
722
|
+
A({ class: "w-full" }, [
|
|
696
723
|
// @ts-ignore
|
|
697
|
-
this.headers &&
|
|
724
|
+
this.headers && H({ headers: this.headers, sort: (a) => this.sortRows(a) }),
|
|
698
725
|
// @ts-ignore
|
|
699
726
|
this.customHeader ?? null,
|
|
700
|
-
|
|
727
|
+
Ut({
|
|
701
728
|
// @ts-ignore
|
|
702
729
|
key: this.key,
|
|
703
730
|
rows: t,
|
|
@@ -772,7 +799,7 @@ class Q extends g {
|
|
|
772
799
|
this.data.selectedRows = [];
|
|
773
800
|
}
|
|
774
801
|
}
|
|
775
|
-
const
|
|
802
|
+
const Qt = (e) => new mt({
|
|
776
803
|
cache: "list",
|
|
777
804
|
loadMoreItems: e.loadMoreItems,
|
|
778
805
|
offset: e.offset,
|
|
@@ -783,7 +810,7 @@ const zt = (e) => new lt({
|
|
|
783
810
|
rowItem: (t) => e.rowItem(t, e.selectRow),
|
|
784
811
|
class: "divide-y divide-border"
|
|
785
812
|
});
|
|
786
|
-
class
|
|
813
|
+
class Xt extends tt {
|
|
787
814
|
/**
|
|
788
815
|
* Renders the DataTable component.
|
|
789
816
|
*
|
|
@@ -792,14 +819,14 @@ class Yt extends Q {
|
|
|
792
819
|
render() {
|
|
793
820
|
const t = this.rows, s = this.border !== !1 ? "border" : "";
|
|
794
821
|
return o({ class: "w-full flex flex-auto flex-col" }, [
|
|
795
|
-
|
|
822
|
+
k("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
|
|
796
823
|
o({ class: `w-full rounded-md ${s} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
|
|
797
|
-
|
|
824
|
+
A({ class: "w-full" }, [
|
|
798
825
|
// @ts-ignore
|
|
799
|
-
this.headers &&
|
|
826
|
+
this.headers && H({ headers: this.headers, sort: (a) => this.sortRows(a) }),
|
|
800
827
|
// @ts-ignore
|
|
801
828
|
this.customHeader ?? null,
|
|
802
|
-
|
|
829
|
+
Qt({
|
|
803
830
|
// @ts-ignore
|
|
804
831
|
loadMoreItems: this.loadMoreItems,
|
|
805
832
|
// @ts-ignore
|
|
@@ -831,7 +858,7 @@ class Yt extends Q {
|
|
|
831
858
|
this.list.refresh();
|
|
832
859
|
}
|
|
833
860
|
}
|
|
834
|
-
const
|
|
861
|
+
const Oe = g((e) => new Xt(
|
|
835
862
|
{
|
|
836
863
|
cache: e.cache ?? "list",
|
|
837
864
|
tableData: e.data,
|
|
@@ -847,7 +874,7 @@ const Se = f((e) => new Yt(
|
|
|
847
874
|
border: e.border,
|
|
848
875
|
emptyState: e.emptyState
|
|
849
876
|
}
|
|
850
|
-
)),
|
|
877
|
+
)), qt = (e) => new pt({
|
|
851
878
|
cache: "list",
|
|
852
879
|
scrollContainer: e.scrollContainer,
|
|
853
880
|
loadMoreItems: e.loadMoreItems,
|
|
@@ -859,7 +886,7 @@ const Se = f((e) => new Yt(
|
|
|
859
886
|
rowItem: (t) => e.rowItem(t, e.selectRow),
|
|
860
887
|
class: "divide-y divide-border"
|
|
861
888
|
});
|
|
862
|
-
class
|
|
889
|
+
class Kt extends tt {
|
|
863
890
|
/**
|
|
864
891
|
* Renders the DataTable component.
|
|
865
892
|
*
|
|
@@ -868,14 +895,14 @@ class At extends Q {
|
|
|
868
895
|
render() {
|
|
869
896
|
const t = this.rows, s = this.border !== !1 ? "border" : "";
|
|
870
897
|
return o({ class: "w-full flex flex-auto flex-col" }, [
|
|
871
|
-
|
|
898
|
+
k("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
|
|
872
899
|
o({ class: `w-full rounded-md ${s} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
|
|
873
|
-
|
|
900
|
+
A({ class: "w-full" }, [
|
|
874
901
|
// @ts-ignore
|
|
875
|
-
this.headers &&
|
|
902
|
+
this.headers && H({ headers: this.headers, sort: (a) => this.sortRows(a) }),
|
|
876
903
|
// @ts-ignore
|
|
877
904
|
this.customHeader ?? null,
|
|
878
|
-
|
|
905
|
+
qt({
|
|
879
906
|
// @ts-ignore
|
|
880
907
|
scrollContainer: this.scrollContainer,
|
|
881
908
|
// @ts-ignore
|
|
@@ -909,7 +936,7 @@ class At extends Q {
|
|
|
909
936
|
this.list.refresh();
|
|
910
937
|
}
|
|
911
938
|
}
|
|
912
|
-
const
|
|
939
|
+
const Pe = g((e) => new Kt(
|
|
913
940
|
{
|
|
914
941
|
cache: e.cache ?? "list",
|
|
915
942
|
tableData: e.data,
|
|
@@ -926,45 +953,45 @@ const Ce = f((e) => new At(
|
|
|
926
953
|
border: e.border,
|
|
927
954
|
emptyState: e.emptyState
|
|
928
955
|
}
|
|
929
|
-
)),
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
])),
|
|
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" }, [
|
|
933
960
|
o({ class: "flex-none rounded-full bg-emerald-500/20 p-1" }, [
|
|
934
961
|
o({ class: "h-1.5 w-1.5 rounded-full bg-emerald-500" })
|
|
935
962
|
]),
|
|
936
|
-
|
|
937
|
-
]),
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
]),
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
])),
|
|
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" }, [
|
|
944
971
|
o({ class: "flex min-w-0 gap-x-4" }, [
|
|
945
|
-
|
|
946
|
-
|
|
972
|
+
ut({ src: e.image, alt: e.name, fallbackText: te(e.name) }),
|
|
973
|
+
Gt({ name: e.name, email: e.email })
|
|
947
974
|
]),
|
|
948
|
-
|
|
975
|
+
Zt({
|
|
949
976
|
role: e.role,
|
|
950
977
|
lastSeen: e.lastSeen,
|
|
951
978
|
status: e.status
|
|
952
979
|
})
|
|
953
|
-
])),
|
|
980
|
+
])), $e = g((e) => new yt({
|
|
954
981
|
cache: "list",
|
|
955
982
|
key: "name",
|
|
956
983
|
items: e.users,
|
|
957
984
|
role: "list",
|
|
958
985
|
class: "divide-y divide-border",
|
|
959
|
-
rowItem:
|
|
960
|
-
})),
|
|
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({
|
|
961
988
|
text: e,
|
|
962
989
|
href: t,
|
|
963
990
|
exact: s,
|
|
964
991
|
dataSet: ["selected", ["state", !0, "active"]],
|
|
965
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`
|
|
966
993
|
});
|
|
967
|
-
class
|
|
994
|
+
class We extends m {
|
|
968
995
|
/**
|
|
969
996
|
* This will declare the props for the compiler.
|
|
970
997
|
*
|
|
@@ -985,14 +1012,14 @@ class Me extends g {
|
|
|
985
1012
|
* @returns {object}
|
|
986
1013
|
*/
|
|
987
1014
|
render() {
|
|
988
|
-
return
|
|
1015
|
+
return N(
|
|
989
1016
|
{ class: `flex items-center justify-center p-2 text-muted-foreground rounded-md ${this.class || ""}` },
|
|
990
1017
|
[
|
|
991
|
-
|
|
1018
|
+
B({
|
|
992
1019
|
class: "flex space-x-4",
|
|
993
1020
|
map: [this.options, (t) => this.addLink(t)],
|
|
994
1021
|
watch: {
|
|
995
|
-
value: ["[[path]]",
|
|
1022
|
+
value: ["[[path]]", O.data],
|
|
996
1023
|
callBack: this.updateLinks.bind(this)
|
|
997
1024
|
}
|
|
998
1025
|
})
|
|
@@ -1005,7 +1032,7 @@ class Me extends g {
|
|
|
1005
1032
|
* @returns {void}
|
|
1006
1033
|
*/
|
|
1007
1034
|
afterSetup() {
|
|
1008
|
-
const t =
|
|
1035
|
+
const t = O.data.path;
|
|
1009
1036
|
this.updateLinks(t);
|
|
1010
1037
|
}
|
|
1011
1038
|
/**
|
|
@@ -1020,7 +1047,7 @@ class Me extends g {
|
|
|
1020
1047
|
for (const a of this.links) {
|
|
1021
1048
|
if (!a.rendered)
|
|
1022
1049
|
continue;
|
|
1023
|
-
|
|
1050
|
+
ae(a, a.getLinkPath(), t) ? (this.updateLink(a, !0), s = !0) : this.updateLink(a, !1);
|
|
1024
1051
|
}
|
|
1025
1052
|
!s && this.links[0] && this.updateLink(this.links[0], !0);
|
|
1026
1053
|
}
|
|
@@ -1050,7 +1077,7 @@ class Me extends g {
|
|
|
1050
1077
|
* @returns {object}
|
|
1051
1078
|
*/
|
|
1052
1079
|
addLink({ label: t, href: s, exact: a, hidden: n }) {
|
|
1053
|
-
const i =
|
|
1080
|
+
const i = ne({ text: t, href: s, exact: a, hidden: n });
|
|
1054
1081
|
return this.links.push(i), i;
|
|
1055
1082
|
}
|
|
1056
1083
|
/**
|
|
@@ -1062,13 +1089,13 @@ class Me extends g {
|
|
|
1062
1089
|
this.links = [];
|
|
1063
1090
|
}
|
|
1064
1091
|
}
|
|
1065
|
-
const
|
|
1092
|
+
const Ne = g((e) => {
|
|
1066
1093
|
const t = e.margin || "m-4 ml-0";
|
|
1067
1094
|
return e.allowHistory = e.allowHistory === !0, o({ class: `flex-none ${t}` }, [
|
|
1068
|
-
|
|
1095
|
+
p({ variant: "back", class: "ghost", ...e })
|
|
1069
1096
|
]);
|
|
1070
1097
|
});
|
|
1071
|
-
class
|
|
1098
|
+
class et extends m {
|
|
1072
1099
|
/**
|
|
1073
1100
|
* This will declare the props for the compiler.
|
|
1074
1101
|
*
|
|
@@ -1155,13 +1182,13 @@ class X extends g {
|
|
|
1155
1182
|
return this.children;
|
|
1156
1183
|
}
|
|
1157
1184
|
}
|
|
1158
|
-
|
|
1185
|
+
Z.addType("dockableOverlay", (e) => {
|
|
1159
1186
|
if (!e)
|
|
1160
1187
|
return;
|
|
1161
1188
|
const t = e.component;
|
|
1162
1189
|
t && t.rendered === !0 && t.state.docked === !1 && t.destroy();
|
|
1163
1190
|
});
|
|
1164
|
-
class
|
|
1191
|
+
class je extends et {
|
|
1165
1192
|
/**
|
|
1166
1193
|
* This will stop presistence.
|
|
1167
1194
|
*
|
|
@@ -1227,7 +1254,7 @@ class Te extends X {
|
|
|
1227
1254
|
* @returns {void}
|
|
1228
1255
|
*/
|
|
1229
1256
|
afterSetup() {
|
|
1230
|
-
|
|
1257
|
+
Z.add(
|
|
1231
1258
|
this.container,
|
|
1232
1259
|
"dockableOverlay",
|
|
1233
1260
|
{
|
|
@@ -1270,7 +1297,7 @@ class Te extends X {
|
|
|
1270
1297
|
document.documentElement.style.overflowY = "auto";
|
|
1271
1298
|
}
|
|
1272
1299
|
}
|
|
1273
|
-
class
|
|
1300
|
+
class ze extends et {
|
|
1274
1301
|
/**
|
|
1275
1302
|
* This will get the overlay type.
|
|
1276
1303
|
*
|
|
@@ -1289,7 +1316,7 @@ class Be extends X {
|
|
|
1289
1316
|
this.container = t, this.initialize();
|
|
1290
1317
|
}
|
|
1291
1318
|
}
|
|
1292
|
-
const
|
|
1319
|
+
const ie = g(({ index: e, click: t, state: s }, a) => W({
|
|
1293
1320
|
class: "p-2 cursor-pointer hover:bg-muted/50",
|
|
1294
1321
|
onState: [
|
|
1295
1322
|
[s, "selectedIndex", {
|
|
@@ -1298,11 +1325,11 @@ const _t = f(({ index: e, click: t, state: s }, a) => I({
|
|
|
1298
1325
|
}]
|
|
1299
1326
|
],
|
|
1300
1327
|
click: () => t(e)
|
|
1301
|
-
}, a)),
|
|
1328
|
+
}, a)), oe = g(({ selectOption: e, state: t }) => B({
|
|
1302
1329
|
class: "border rounded-md list-none m-0 p-0 max-h-[400px] overflow-y-auto",
|
|
1303
|
-
for: ["filteredOptions", (s, a) =>
|
|
1304
|
-
})),
|
|
1305
|
-
|
|
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({
|
|
1306
1333
|
cache: "input",
|
|
1307
1334
|
class: e.class ?? "",
|
|
1308
1335
|
placeholder: e.placeholder ?? "Search...",
|
|
@@ -1318,22 +1345,22 @@ const _t = f(({ index: e, click: t, state: s }, a) => I({
|
|
|
1318
1345
|
]
|
|
1319
1346
|
}),
|
|
1320
1347
|
e.icon && o({ class: "absolute flex right-0 mr-2" }, [
|
|
1321
|
-
|
|
1348
|
+
ht(e.icon)
|
|
1322
1349
|
])
|
|
1323
|
-
])),
|
|
1350
|
+
])), re = (e) => o({
|
|
1324
1351
|
class: "relative flex fle-auto flex-col",
|
|
1325
1352
|
onState: ["open", (t, s, a) => {
|
|
1326
1353
|
if (t)
|
|
1327
|
-
return new
|
|
1354
|
+
return new ft({
|
|
1328
1355
|
cache: "dropdown",
|
|
1329
1356
|
parent: a,
|
|
1330
1357
|
button: a.input,
|
|
1331
1358
|
size: "xl"
|
|
1332
1359
|
}, [
|
|
1333
|
-
|
|
1360
|
+
oe(e)
|
|
1334
1361
|
]);
|
|
1335
1362
|
}]
|
|
1336
|
-
}),
|
|
1363
|
+
}), Ye = dt(
|
|
1337
1364
|
{
|
|
1338
1365
|
/**
|
|
1339
1366
|
* This will set up the data object.
|
|
@@ -1342,7 +1369,7 @@ const _t = f(({ index: e, click: t, state: s }, a) => I({
|
|
|
1342
1369
|
*/
|
|
1343
1370
|
setData() {
|
|
1344
1371
|
const e = this.options || [];
|
|
1345
|
-
return new
|
|
1372
|
+
return new j({
|
|
1346
1373
|
options: e,
|
|
1347
1374
|
filteredOptions: e
|
|
1348
1375
|
});
|
|
@@ -1430,7 +1457,7 @@ const _t = f(({ index: e, click: t, state: s }, a) => I({
|
|
|
1430
1457
|
*/
|
|
1431
1458
|
render() {
|
|
1432
1459
|
return o({ class: "relative w-full max-w-md" }, [
|
|
1433
|
-
|
|
1460
|
+
le({
|
|
1434
1461
|
// @ts-ignore
|
|
1435
1462
|
state: this.state,
|
|
1436
1463
|
// @ts-ignore
|
|
@@ -1442,7 +1469,7 @@ const _t = f(({ index: e, click: t, state: s }, a) => I({
|
|
|
1442
1469
|
// @ts-ignore
|
|
1443
1470
|
handleKeyDown: this.handleKeyDown.bind(this)
|
|
1444
1471
|
}),
|
|
1445
|
-
|
|
1472
|
+
re({
|
|
1446
1473
|
// @ts-ignore
|
|
1447
1474
|
state: this.state,
|
|
1448
1475
|
// @ts-ignore
|
|
@@ -1453,22 +1480,22 @@ const _t = f(({ index: e, click: t, state: s }, a) => I({
|
|
|
1453
1480
|
]);
|
|
1454
1481
|
}
|
|
1455
1482
|
}
|
|
1456
|
-
),
|
|
1483
|
+
), ce = (e) => W(
|
|
1457
1484
|
{
|
|
1458
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",
|
|
1459
1486
|
dataSet: ["selected", ["state", e.value, "active"]]
|
|
1460
1487
|
},
|
|
1461
1488
|
[
|
|
1462
|
-
|
|
1489
|
+
P({
|
|
1463
1490
|
class: "flex flex-auto justify-center items-center px-3 py-1.5 rounded-md",
|
|
1464
1491
|
onSet: ["selected", { selected: e.value }],
|
|
1465
1492
|
click: (t) => e.callBack(e.value)
|
|
1466
1493
|
}, e.label)
|
|
1467
1494
|
]
|
|
1468
|
-
),
|
|
1469
|
-
|
|
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)] })
|
|
1470
1497
|
]);
|
|
1471
|
-
class
|
|
1498
|
+
class Ae extends m {
|
|
1472
1499
|
/**
|
|
1473
1500
|
* This will declare the props for the compiler.
|
|
1474
1501
|
*
|
|
@@ -1485,12 +1512,12 @@ class Pe extends g {
|
|
|
1485
1512
|
render() {
|
|
1486
1513
|
const t = this.select.bind(this);
|
|
1487
1514
|
return o({ class: "" }, [
|
|
1488
|
-
|
|
1515
|
+
he({
|
|
1489
1516
|
class: this.class,
|
|
1490
1517
|
options: this.options,
|
|
1491
1518
|
callBack: t
|
|
1492
1519
|
}),
|
|
1493
|
-
|
|
1520
|
+
_({
|
|
1494
1521
|
class: "tab-content",
|
|
1495
1522
|
onState: ["selected", this.updateContent.bind(this)]
|
|
1496
1523
|
})
|
|
@@ -1556,23 +1583,23 @@ class Pe extends g {
|
|
|
1556
1583
|
};
|
|
1557
1584
|
}
|
|
1558
1585
|
}
|
|
1559
|
-
const
|
|
1586
|
+
const ue = (e) => W(
|
|
1560
1587
|
{
|
|
1561
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",
|
|
1562
1589
|
dataSet: ["selected", ["state", e.value, "active"]]
|
|
1563
1590
|
},
|
|
1564
1591
|
[
|
|
1565
|
-
|
|
1592
|
+
P({
|
|
1566
1593
|
class: "flex flex-auto justify-center items-center px-3 py-1.5 rounded-md disabled:opacity-50 disabled:cursor-not-allowed",
|
|
1567
1594
|
onSet: ["selected", { selected: e.value }],
|
|
1568
1595
|
click: (t) => e.callBack(e.value),
|
|
1569
1596
|
disabled: e.disabled
|
|
1570
1597
|
}, e.label)
|
|
1571
1598
|
]
|
|
1572
|
-
),
|
|
1573
|
-
|
|
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)] })
|
|
1574
1601
|
]);
|
|
1575
|
-
class
|
|
1602
|
+
class Fe extends m {
|
|
1576
1603
|
/**
|
|
1577
1604
|
* This will declare the props for the compiler.
|
|
1578
1605
|
*
|
|
@@ -1588,7 +1615,7 @@ class $e extends g {
|
|
|
1588
1615
|
*/
|
|
1589
1616
|
render() {
|
|
1590
1617
|
const t = this.select.bind(this);
|
|
1591
|
-
return
|
|
1618
|
+
return ge({
|
|
1592
1619
|
class: this.class,
|
|
1593
1620
|
options: this.options,
|
|
1594
1621
|
callBack: t
|
|
@@ -1615,17 +1642,17 @@ class $e extends g {
|
|
|
1615
1642
|
};
|
|
1616
1643
|
}
|
|
1617
1644
|
}
|
|
1618
|
-
const
|
|
1645
|
+
const me = (e, t) => new RegExp(`${e}($|/|\\.).*`).test(t), pe = (e, t) => {
|
|
1619
1646
|
const s = e.getLinkPath();
|
|
1620
|
-
return e.exact ? t === s :
|
|
1621
|
-
},
|
|
1647
|
+
return e.exact ? t === s : me(s, t);
|
|
1648
|
+
}, ye = ({ text: e, href: t, exact: s }) => new V({
|
|
1622
1649
|
text: e,
|
|
1623
1650
|
href: t,
|
|
1624
1651
|
exact: s,
|
|
1625
1652
|
dataSet: ["selected", ["state", !0, "active"]],
|
|
1626
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"
|
|
1627
1654
|
});
|
|
1628
|
-
class
|
|
1655
|
+
class we extends m {
|
|
1629
1656
|
/**
|
|
1630
1657
|
* This will declare the props for the compiler.
|
|
1631
1658
|
*
|
|
@@ -1646,12 +1673,12 @@ class de extends g {
|
|
|
1646
1673
|
* @returns {object}
|
|
1647
1674
|
*/
|
|
1648
1675
|
render() {
|
|
1649
|
-
return
|
|
1650
|
-
|
|
1676
|
+
return N({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${this.class}` }, [
|
|
1677
|
+
B({
|
|
1651
1678
|
class: "flex flex-auto flex-row",
|
|
1652
1679
|
map: [this.options, (t) => this.addLink(t)],
|
|
1653
1680
|
watch: {
|
|
1654
|
-
value: ["[[path]]",
|
|
1681
|
+
value: ["[[path]]", O.data],
|
|
1655
1682
|
callBack: this.updateLinks.bind(this)
|
|
1656
1683
|
}
|
|
1657
1684
|
})
|
|
@@ -1663,7 +1690,7 @@ class de extends g {
|
|
|
1663
1690
|
* @returns {void}
|
|
1664
1691
|
*/
|
|
1665
1692
|
afterSetup() {
|
|
1666
|
-
const t =
|
|
1693
|
+
const t = O.data.path;
|
|
1667
1694
|
this.updateLinks(t);
|
|
1668
1695
|
}
|
|
1669
1696
|
/**
|
|
@@ -1676,7 +1703,7 @@ class de extends g {
|
|
|
1676
1703
|
let s = !1, a = this.links[0];
|
|
1677
1704
|
this.deactivateAllLinks();
|
|
1678
1705
|
for (const n of this.links)
|
|
1679
|
-
if (n.rendered !== !1 && (s =
|
|
1706
|
+
if (n.rendered !== !1 && (s = pe(n, t), s === !0)) {
|
|
1680
1707
|
this.updateLink(n, !0);
|
|
1681
1708
|
break;
|
|
1682
1709
|
}
|
|
@@ -1708,7 +1735,7 @@ class de extends g {
|
|
|
1708
1735
|
* @returns {object}
|
|
1709
1736
|
*/
|
|
1710
1737
|
addLink({ label: t, href: s, exact: a }) {
|
|
1711
|
-
const n =
|
|
1738
|
+
const n = ye({ text: t, href: s, exact: a });
|
|
1712
1739
|
return this.links.push(n), n;
|
|
1713
1740
|
}
|
|
1714
1741
|
/**
|
|
@@ -1720,7 +1747,7 @@ class de extends g {
|
|
|
1720
1747
|
this.links = [];
|
|
1721
1748
|
}
|
|
1722
1749
|
}
|
|
1723
|
-
class
|
|
1750
|
+
class He extends m {
|
|
1724
1751
|
/**
|
|
1725
1752
|
* This will declare the props for the compiler.
|
|
1726
1753
|
*
|
|
@@ -1736,11 +1763,11 @@ class We extends g {
|
|
|
1736
1763
|
*/
|
|
1737
1764
|
render() {
|
|
1738
1765
|
return o({ class: "tab-panel" }, [
|
|
1739
|
-
new
|
|
1766
|
+
new we({
|
|
1740
1767
|
class: this.class,
|
|
1741
1768
|
options: this.options
|
|
1742
1769
|
}),
|
|
1743
|
-
|
|
1770
|
+
_({
|
|
1744
1771
|
class: "tab-content",
|
|
1745
1772
|
switch: this.addGroup()
|
|
1746
1773
|
})
|
|
@@ -1766,7 +1793,7 @@ class We extends g {
|
|
|
1766
1793
|
return s;
|
|
1767
1794
|
}
|
|
1768
1795
|
}
|
|
1769
|
-
class
|
|
1796
|
+
class be extends m {
|
|
1770
1797
|
/**
|
|
1771
1798
|
* Runs before rendering, sets up defaults, a timer for drawing,
|
|
1772
1799
|
* and basic canvas properties.
|
|
@@ -1776,7 +1803,7 @@ class he extends g {
|
|
|
1776
1803
|
onCreated() {
|
|
1777
1804
|
this.lineWidth = this.lineWidth || 3, this.lineColor = this.lineColor || "#000000", this.canvas = null, this.ctx = null, this.status = "stopped";
|
|
1778
1805
|
const t = 1e3 / 60;
|
|
1779
|
-
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";
|
|
1780
1807
|
}
|
|
1781
1808
|
/**
|
|
1782
1809
|
* Renders a <canvas> element.
|
|
@@ -1784,7 +1811,7 @@ class he extends g {
|
|
|
1784
1811
|
* @returns {object} Layout definition for the canvas.
|
|
1785
1812
|
*/
|
|
1786
1813
|
render() {
|
|
1787
|
-
return
|
|
1814
|
+
return ct({
|
|
1788
1815
|
style: "touch-action: none; -webkit-user-select: none; -webkit-touch-callout: none;"
|
|
1789
1816
|
});
|
|
1790
1817
|
}
|
|
@@ -1833,8 +1860,8 @@ class he extends g {
|
|
|
1833
1860
|
let s, a;
|
|
1834
1861
|
const n = this.canvas, i = n.width / parseInt(n.style.width), l = n.getBoundingClientRect();
|
|
1835
1862
|
if (t.touches && t.touches.length) {
|
|
1836
|
-
const
|
|
1837
|
-
s =
|
|
1863
|
+
const h = t.touches[0];
|
|
1864
|
+
s = h.clientX, a = h.clientY;
|
|
1838
1865
|
} else
|
|
1839
1866
|
s = t.x || t.clientX, a = t.y || t.clientY;
|
|
1840
1867
|
const r = parseInt((s - l.left) * i), c = parseInt((a - l.top) * i);
|
|
@@ -1881,8 +1908,8 @@ class he extends g {
|
|
|
1881
1908
|
const { canvas: t, ctx: s } = this, a = t.toDataURL();
|
|
1882
1909
|
if (this.scale(), this.setupBackground(s), a !== "data:,") {
|
|
1883
1910
|
const n = new globalThis.Image();
|
|
1884
|
-
|
|
1885
|
-
s.drawImage(n, 0, 0),
|
|
1911
|
+
U.on("load", n, function i() {
|
|
1912
|
+
s.drawImage(n, 0, 0), U.off("load", n, i);
|
|
1886
1913
|
}), n.src = a;
|
|
1887
1914
|
}
|
|
1888
1915
|
this.draw();
|
|
@@ -1902,7 +1929,7 @@ class he extends g {
|
|
|
1902
1929
|
* @returns {void}
|
|
1903
1930
|
*/
|
|
1904
1931
|
noScaleResize() {
|
|
1905
|
-
const t =
|
|
1932
|
+
const t = Q.getSize(container);
|
|
1906
1933
|
this.width = canvas.width = t.width, this.height = canvas.height = t.height;
|
|
1907
1934
|
}
|
|
1908
1935
|
/**
|
|
@@ -1912,11 +1939,11 @@ class he extends g {
|
|
|
1912
1939
|
* @returns {void}
|
|
1913
1940
|
*/
|
|
1914
1941
|
scale() {
|
|
1915
|
-
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;
|
|
1916
1943
|
let r = i + "px", c = l + "px";
|
|
1917
1944
|
if (this.width = t.width = i, this.height = t.height = l, a.width !== 0 && a.height !== 0) {
|
|
1918
|
-
const
|
|
1919
|
-
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";
|
|
1920
1947
|
}
|
|
1921
1948
|
t.style.width = r, t.style.height = c;
|
|
1922
1949
|
}
|
|
@@ -1992,7 +2019,7 @@ class he extends g {
|
|
|
1992
2019
|
this.timer.stop(), this.status = "stopped";
|
|
1993
2020
|
}
|
|
1994
2021
|
}
|
|
1995
|
-
class
|
|
2022
|
+
class Ee extends m {
|
|
1996
2023
|
/**
|
|
1997
2024
|
* Sets up default properties for the signature panel.
|
|
1998
2025
|
*
|
|
@@ -2009,19 +2036,19 @@ class Oe extends g {
|
|
|
2009
2036
|
*/
|
|
2010
2037
|
render() {
|
|
2011
2038
|
return o({ class: "signature-panel relative flex flex-auto overflow-hidden select-none" }, [
|
|
2012
|
-
|
|
2039
|
+
kt({
|
|
2013
2040
|
cache: "hiddenInput",
|
|
2014
2041
|
required: !0,
|
|
2015
2042
|
bind: this.path + ".data"
|
|
2016
2043
|
}),
|
|
2017
2044
|
o({ class: "absolute top-2 right-2" }, [
|
|
2018
|
-
|
|
2045
|
+
p({
|
|
2019
2046
|
variant: "icon",
|
|
2020
|
-
icon:
|
|
2047
|
+
icon: v.circleX,
|
|
2021
2048
|
click: this.reset.bind(this)
|
|
2022
2049
|
})
|
|
2023
2050
|
]),
|
|
2024
|
-
new
|
|
2051
|
+
new be({
|
|
2025
2052
|
cache: "canvasLayer",
|
|
2026
2053
|
margin: this.margin,
|
|
2027
2054
|
targetSize: this.targetSize,
|
|
@@ -2071,37 +2098,37 @@ class Oe extends g {
|
|
|
2071
2098
|
}
|
|
2072
2099
|
}
|
|
2073
2100
|
export {
|
|
2074
|
-
|
|
2075
|
-
|
|
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
|
-
|
|
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
|
|
2107
2134
|
};
|
|
@@ -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