@base-framework/ui 1.0.19 → 1.0.20
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/atoms.es.js +2 -2
- package/dist/index.es.js +3 -3
- package/dist/{inputs-Beh1GdPu.js → inputs-C1dvFQuB.js} +1 -1
- package/dist/organisms.es.js +1 -1
- package/dist/{signature-panel-ISKbKEZk.js → signature-panel-3STXee-b.js} +124 -125
- package/dist/{tooltip-Cmvr6cnK.js → tooltip-BycfNakY.js} +1 -1
- package/package.json +1 -1
package/dist/atoms.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as e, C as t, a as n, F as o, L as p, P as r, R as u, S as I, b as i, T as l } from "./tooltip-
|
|
1
|
+
import { B as e, C as t, a as n, F as o, L as p, P as r, R as u, S as I, b as i, T as l } from "./tooltip-BycfNakY.js";
|
|
2
2
|
import { B as m, I as T, L as c } from "./buttons-CVEwmPAi.js";
|
|
3
|
-
import { C as B, d as C, D as S, c as g, E as b, F as f, H as h, I as F, M as L, N as P, P as R, R as k, S as D, T as V, a as E, b as H, U as M, W as N } from "./inputs-
|
|
3
|
+
import { C as B, d as C, D as S, c as g, E as b, F as f, H as h, I as F, M as L, N as P, P as R, R as k, S as D, T as V, a as E, b as H, U as M, W as N } from "./inputs-C1dvFQuB.js";
|
|
4
4
|
import { V as W, a as w } from "./veil-DSQdR6CM.js";
|
|
5
5
|
export {
|
|
6
6
|
e as Badge,
|
package/dist/index.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { B as e, C as o, a as t, F as r, L as n, P as i, R as l, S as p, b as u, T as m } from "./tooltip-
|
|
1
|
+
import { B as e, C as o, a as t, F as r, L as n, P as i, R as l, S as p, b as u, T as m } from "./tooltip-BycfNakY.js";
|
|
2
2
|
import { B as g, I as C, L as T } from "./buttons-CVEwmPAi.js";
|
|
3
|
-
import { C as D, d as I, D as S, c as b, E as B, F as P, H as F, I as M, M as k, N, P as v, R as f, S as x, T as h, a as y, b as W, U as L, W as A } from "./inputs-
|
|
3
|
+
import { C as D, d as I, D as S, c as b, E as B, F as P, H as F, I as M, M as k, N, P as v, R as f, S as x, T as h, a as y, b as W, U as L, W as A } from "./inputs-C1dvFQuB.js";
|
|
4
4
|
import { V as w, a as U } from "./veil-DSQdR6CM.js";
|
|
5
5
|
import { Icons as R } from "./icons.es.js";
|
|
6
6
|
import { A as G, B as V, C as j, z as q, u as z, v as J, w as _, D as K, j as Q, k as X, G as Y, E as Z, s as $, c as aa, a as sa, b as ea, i as oa, g as ta, e as ra, h as na, F as ia, d as la, f as pa, t as ua, M as ma, l as da, N as ga, P as Ca, p as Ta, q as ca, S as Da, n as Ia, o as Sa, T as ba, x as Ba, y as Pa, m as Fa, r as Ma } from "./confirmation-34GijCiu.js";
|
|
7
7
|
import { A as Na, b as va, C as fa, D as xa, a as ha, F as ya, M as Wa, P as La, c as Aa, g as Ha, p as wa } from "./calendar-BjUju8_5.js";
|
|
8
|
-
import { B as Oa, m as Ra, C as Ea, j as Ga, D as Va, l as ja, H as qa, I as za, N as Ja, O as _a, P as Ka, S as Qa, q as Xa, p as Ya, n as Za, o as $a, T as as, k as ss, U as es, W as os, f as ts, h as rs, i as ns, c as is, d as ls, b as ps, e as us, a as ms, g as ds } from "./signature-panel-
|
|
8
|
+
import { B as Oa, m as Ra, C as Ea, j as Ga, D as Va, l as ja, H as qa, I as za, N as Ja, O as _a, P as Ka, S as Qa, q as Xa, p as Ya, n as Za, o as $a, T as as, k as ss, U as es, W as os, f as ts, h as rs, i as ns, c as is, d as ls, b as ps, e as us, a as ms, g as ds } from "./signature-panel-3STXee-b.js";
|
|
9
9
|
import { B as Cs, I as Ts, M as cs, d as Ds, e as Is, g as Ss, N as bs, b as Bs, a as Ps, f as Fs, P as Ms, c as ks, S as Ns, T as vs } from "./mobile-nav-wrapper-DyNFnla-.js";
|
|
10
10
|
import { B as xs, a as hs, C as ys, F as Ws, b as Ls, c as As, M as Hs, P as ws, S as Us } from "./sidebar-menu-page-lAu74WTl.js";
|
|
11
11
|
import { A as Rs, F as Es, M as Gs, a as Vs, T as js } from "./aside-template-McEj_Gxc.js";
|
|
@@ -74,7 +74,7 @@ const v = "flex h-10 w-full px-3 py-2 text-sm", b = "rounded-md border border-in
|
|
|
74
74
|
* @returns {void}
|
|
75
75
|
*/
|
|
76
76
|
clickHandler(e) {
|
|
77
|
-
this.state.toggle("checked"), this.checkbox.checked = this.state.checked, typeof this.onChange == "function" && this.onChange(
|
|
77
|
+
this.state.toggle("checked"), this.checkbox.checked = this.state.checked, typeof this.onChange == "function" && this.onChange(this.state.checked, this);
|
|
78
78
|
},
|
|
79
79
|
/**
|
|
80
80
|
* This will render the checkbox component.
|
package/dist/organisms.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as s, m as o, C as t, j as r, D as n, l, H as i, I as d, N as b, O as v, P as g, S as p, q as u, p as N, n as k, o as C, T as D, k as M, U as T, W as c, f as B, h as m, i as y, c as W, d as h, b as H, e as P, a as S, g as f } from "./signature-panel-
|
|
1
|
+
import { B as s, m as o, C as t, j as r, D as n, l, H as i, I as d, N as b, O as v, P as g, S as p, q as u, p as N, n as k, o as C, T as D, k as M, U as T, W as c, f as B, h as m, i as y, c as W, d as h, b as H, e as P, a as S, g as f } from "./signature-panel-3STXee-b.js";
|
|
2
2
|
import { b as I, C as L, D as O, a as F, F as U, M as G, c as j, p as q } from "./calendar-BjUju8_5.js";
|
|
3
3
|
import { B as z, I as A, M as E, d as J, e as K, g as Q, N as R, b as V, a as X, f as Y, P as Z, c as _, S as $, T as aa } from "./mobile-nav-wrapper-DyNFnla-.js";
|
|
4
4
|
export {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Button as v, Div as o, On as U, Span as y, Th as P,
|
|
2
|
-
import { Atom as u, Component as g, Data as L, DateTime as
|
|
1
|
+
import { Button as v, Div as o, On as U, Span as y, Th as P, UseParent as Y, I as E, Thead as F, Tr as H, Table as Q, P as m, Li as D, Time as X, Nav as S, Ul as b, Section as O, Canvas as q } from "@base-framework/atoms";
|
|
2
|
+
import { Atom as u, Component as g, Data as L, DateTime as K, Jot as R, router as k, NavLink as M, base as B, Dom as I } from "@base-framework/base";
|
|
3
3
|
import { B as C, I as z } from "./buttons-CVEwmPAi.js";
|
|
4
4
|
import { Icons as w } from "./icons.es.js";
|
|
5
|
-
import { TableBody as
|
|
6
|
-
import { C as
|
|
7
|
-
import { A as
|
|
5
|
+
import { TableBody as _, List as G, IntervalTimer as V } from "@base-framework/organisms";
|
|
6
|
+
import { C as J, I as Z, H as ee } from "./inputs-C1dvFQuB.js";
|
|
7
|
+
import { A as te, P as se } from "./calendar-BjUju8_5.js";
|
|
8
8
|
u((t, e) => ({
|
|
9
9
|
class: "flex items-center px-4 py-2",
|
|
10
10
|
...t,
|
|
@@ -16,7 +16,7 @@ u(({ value: t, label: e }) => v({
|
|
|
16
16
|
dataSet: ["performance", ["state", t, "active"]],
|
|
17
17
|
click: (s, { state: n }) => n.performance = t
|
|
18
18
|
}, e));
|
|
19
|
-
class
|
|
19
|
+
class Ge extends g {
|
|
20
20
|
/**
|
|
21
21
|
* This will declare the props for the compiler.
|
|
22
22
|
*
|
|
@@ -34,36 +34,36 @@ class _e extends g {
|
|
|
34
34
|
return o({ class: this.class || "" }, this.children);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
const
|
|
37
|
+
const ne = (t) => {
|
|
38
38
|
const e = new Date(t, 11, 31), s = new Date(t, 0, 1);
|
|
39
39
|
return e.getDay() === 4 || // December 31 is a Thursday
|
|
40
40
|
s.getDay() === 4;
|
|
41
|
-
},
|
|
41
|
+
}, ae = (t) => {
|
|
42
42
|
const e = new Date(t.valueOf()), s = (e.getDay() + 6) % 7;
|
|
43
43
|
e.setDate(e.getDate() - s + 3);
|
|
44
44
|
const n = e.getFullYear(), a = new Date(n, 0, 4);
|
|
45
45
|
a.setDate(a.getDate() - (a.getDay() + 6) % 7);
|
|
46
46
|
const i = Math.ceil((e - a) / 6048e5) + 1;
|
|
47
|
-
return i > 52 && !
|
|
47
|
+
return i > 52 && !ne(n) ? {
|
|
48
48
|
weekNumber: 1,
|
|
49
49
|
year: n + 1
|
|
50
50
|
} : {
|
|
51
51
|
weekNumber: i,
|
|
52
52
|
year: n
|
|
53
53
|
};
|
|
54
|
-
},
|
|
54
|
+
}, ie = (t, e, s) => {
|
|
55
55
|
if (s === 0) return [];
|
|
56
56
|
const n = new Date(t, e, 0).getDate();
|
|
57
57
|
return Array.from(
|
|
58
58
|
{ length: s },
|
|
59
59
|
(a, i) => new Date(t, e - 1, n - s + i + 1)
|
|
60
60
|
);
|
|
61
|
-
},
|
|
61
|
+
}, oe = (t, e, s) => Array.from({ length: s }, (n, a) => new Date(t, e + 1, a + 1)), T = (t, e) => {
|
|
62
62
|
const s = new Date(e, 0, 4), n = (s.getDay() + 6) % 7, a = new Date(s);
|
|
63
63
|
a.setDate(s.getDate() - n);
|
|
64
64
|
const i = new Date(a);
|
|
65
65
|
return i.setDate(a.getDate() + (t - 1) * 7), i;
|
|
66
|
-
},
|
|
66
|
+
}, Ve = (t, e) => {
|
|
67
67
|
const s = new Date(t, e, 1).getDay(), n = new Date(t, e + 1, 0).getDate(), a = [];
|
|
68
68
|
let i = [];
|
|
69
69
|
for (let l = 1 - s; l <= n; l++) {
|
|
@@ -71,17 +71,17 @@ const se = (t) => {
|
|
|
71
71
|
i.push(l > 0 ? d : null), (i.length === 7 || l === n) && (a.push([...i]), i = []);
|
|
72
72
|
}
|
|
73
73
|
return a;
|
|
74
|
-
},
|
|
74
|
+
}, Je = (t, e) => {
|
|
75
75
|
const s = new Date(t, e + 1, 0).getDate(), n = [];
|
|
76
76
|
let a = [];
|
|
77
77
|
for (let i = 1; i <= s; i++)
|
|
78
78
|
a.push(new Date(t, e, i)), a.length === 7 && (n.push(a), a = []);
|
|
79
79
|
return a.length > 0 && n.push(a), n;
|
|
80
|
-
},
|
|
80
|
+
}, le = (t, e, s) => {
|
|
81
81
|
const n = /* @__PURE__ */ new Date();
|
|
82
82
|
return n.getDate() === t && n.getMonth() === e && n.getFullYear() === s;
|
|
83
|
-
},
|
|
84
|
-
const i =
|
|
83
|
+
}, re = ({ day: t, month: e, year: s, weekNumber: n, selectWeek: a }) => {
|
|
84
|
+
const i = le(t, e, s);
|
|
85
85
|
return v({
|
|
86
86
|
text: t || "",
|
|
87
87
|
disabled: !t,
|
|
@@ -92,10 +92,10 @@ const se = (t) => {
|
|
|
92
92
|
`,
|
|
93
93
|
click: () => a(n, s)
|
|
94
94
|
});
|
|
95
|
-
},
|
|
96
|
-
const s = new Date(t, e, 1).getDay(), n = new Date(t, e + 1, 0).getDate(), a =
|
|
95
|
+
}, ce = (t, e) => {
|
|
96
|
+
const s = new Date(t, e, 1).getDay(), n = new Date(t, e + 1, 0).getDate(), a = ie(t, e, s), i = Array.from({ length: n }, (r, p) => new Date(t, e, p + 1)), l = (a.length + i.length) % 7, d = l === 0 ? 0 : 7 - l, c = oe(t, e, d), h = [...a, ...i, ...c], f = [];
|
|
97
97
|
for (let r = 0; r < h.length; r += 7) {
|
|
98
|
-
const p = h.slice(r, r + 7), x = p.find((j) => j) || new Date(t, e, 1), { weekNumber: $, year: A } =
|
|
98
|
+
const p = h.slice(r, r + 7), x = p.find((j) => j) || new Date(t, e, 1), { weekNumber: $, year: A } = ae(x);
|
|
99
99
|
f.push({
|
|
100
100
|
weekNumber: $,
|
|
101
101
|
year: A,
|
|
@@ -103,8 +103,8 @@ const se = (t) => {
|
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
105
|
return f;
|
|
106
|
-
},
|
|
107
|
-
const { year: a, month: i, currentDate: l } = n, d =
|
|
106
|
+
}, de = ({ selectWeek: t }) => U("month", (e, s, { data: n }) => {
|
|
107
|
+
const { year: a, month: i, currentDate: l } = n, d = ce(a, i);
|
|
108
108
|
return o(
|
|
109
109
|
{ class: "grid grid-cols-8 gap-1 text-sm px-4 py-2" },
|
|
110
110
|
[
|
|
@@ -141,7 +141,7 @@ const se = (t) => {
|
|
|
141
141
|
o(
|
|
142
142
|
{ class: "grid grid-cols-7 col-span-7 text-center" },
|
|
143
143
|
h.map(
|
|
144
|
-
(r) =>
|
|
144
|
+
(r) => re({
|
|
145
145
|
year: (r == null ? void 0 : r.getFullYear()) || null,
|
|
146
146
|
month: (r == null ? void 0 : r.getMonth()) || null,
|
|
147
147
|
day: (r == null ? void 0 : r.getDate()) || null,
|
|
@@ -169,7 +169,7 @@ const se = (t) => {
|
|
|
169
169
|
variant: "icon",
|
|
170
170
|
icon: t === "Previous" ? w.chevron.single.left : w.chevron.single.right
|
|
171
171
|
}
|
|
172
|
-
),
|
|
172
|
+
), he = ({ next: t, previous: e }) => o({ class: "flex flex-auto min-h-12 text-sm font-medium relative justify-center items-center" }, [
|
|
173
173
|
y("[[monthName]] [[year]]"),
|
|
174
174
|
W({
|
|
175
175
|
label: "Previous",
|
|
@@ -180,7 +180,7 @@ const se = (t) => {
|
|
|
180
180
|
click: t
|
|
181
181
|
})
|
|
182
182
|
]);
|
|
183
|
-
class
|
|
183
|
+
class Ze extends g {
|
|
184
184
|
/**
|
|
185
185
|
* This will declare the props for the compiler.
|
|
186
186
|
*
|
|
@@ -233,7 +233,7 @@ class Je extends g {
|
|
|
233
233
|
* @returns {string}
|
|
234
234
|
*/
|
|
235
235
|
getMonthName(e) {
|
|
236
|
-
return
|
|
236
|
+
return K.monthNames[e];
|
|
237
237
|
}
|
|
238
238
|
/**
|
|
239
239
|
* Updates the calendar to show the previous month.
|
|
@@ -288,23 +288,22 @@ class Je extends g {
|
|
|
288
288
|
*/
|
|
289
289
|
render() {
|
|
290
290
|
return o({ class: "week-calendar-container border rounded-md bg-background p-3" }, [
|
|
291
|
-
|
|
291
|
+
he({
|
|
292
292
|
next: () => this.goToNextMonth(),
|
|
293
293
|
previous: () => this.goToPreviousMonth()
|
|
294
294
|
}),
|
|
295
|
-
|
|
295
|
+
de({
|
|
296
296
|
selectWeek: (e, s) => this.selectWeek(e, s)
|
|
297
297
|
})
|
|
298
298
|
]);
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
|
-
const
|
|
302
|
-
t.
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
]), ge = ({ align: t, sortable: e, key: s, label: n, sort: a, class: i }) => {
|
|
301
|
+
const ue = (t, e) => {
|
|
302
|
+
const s = t.toggleAllSelectedRows();
|
|
303
|
+
e.checked = !s;
|
|
304
|
+
}, ge = (t) => P({ class: `cursor-pointer py-3 px-4 text-base w-10 ${t.class || ""}` }, [
|
|
305
|
+
Y((e) => new J({ class: "mr-2", onChange: (s, n) => ue(e, n) }))
|
|
306
|
+
]), fe = ({ align: t, sortable: e, key: s, label: n, sort: a, class: i }) => {
|
|
308
307
|
const l = t || "justify-start";
|
|
309
308
|
return P({
|
|
310
309
|
class: `cursor-pointer py-3 px-4 text-base ${i || ""}`,
|
|
@@ -312,13 +311,13 @@ const he = (t, e) => {
|
|
|
312
311
|
}, [
|
|
313
312
|
o({ class: `flex flex-auto w-full items-center ${l}` }, [
|
|
314
313
|
y(n),
|
|
315
|
-
e &&
|
|
314
|
+
e && E({ class: "ml-2", html: w.arrows.upDown })
|
|
316
315
|
])
|
|
317
316
|
]);
|
|
318
|
-
},
|
|
319
|
-
|
|
317
|
+
}, pe = (t) => F([
|
|
318
|
+
H({
|
|
320
319
|
class: "text-muted-foreground border-b",
|
|
321
|
-
map: [t.headers, (e) => e.label === "checkbox" ?
|
|
320
|
+
map: [t.headers, (e) => e.label === "checkbox" ? ge({ toggle: t.toggle }) : fe({
|
|
322
321
|
align: e.align,
|
|
323
322
|
sortable: e.sortable,
|
|
324
323
|
key: e.key,
|
|
@@ -326,13 +325,13 @@ const he = (t, e) => {
|
|
|
326
325
|
sort: t.sort
|
|
327
326
|
})]
|
|
328
327
|
})
|
|
329
|
-
]),
|
|
328
|
+
]), me = ({ key: t, rows: e, selectRow: s, rowItem: n }) => new _({
|
|
330
329
|
cache: "table",
|
|
331
330
|
key: t,
|
|
332
331
|
items: e,
|
|
333
332
|
rowItem: (a) => n(a, s),
|
|
334
333
|
class: "divide-y divide-border"
|
|
335
|
-
}),
|
|
334
|
+
}), et = R(
|
|
336
335
|
{
|
|
337
336
|
/**
|
|
338
337
|
* Initializes component data.
|
|
@@ -402,12 +401,12 @@ const he = (t, e) => {
|
|
|
402
401
|
const t = this.rows, e = this.border !== !1 ? "border" : "";
|
|
403
402
|
return o({ class: "w-full" }, [
|
|
404
403
|
o({ class: `w-full rounded-md ${e} overflow-x-auto` }, [
|
|
405
|
-
|
|
404
|
+
Q({ class: "w-full" }, [
|
|
406
405
|
// @ts-ignore
|
|
407
|
-
this.headers &&
|
|
406
|
+
this.headers && pe({ headers: this.headers, sort: (s) => this.sortRows(s) }),
|
|
408
407
|
// @ts-ignore
|
|
409
408
|
this.customHeader ?? null,
|
|
410
|
-
|
|
409
|
+
me({
|
|
411
410
|
// @ts-ignore
|
|
412
411
|
key: this.key,
|
|
413
412
|
rows: t,
|
|
@@ -480,45 +479,45 @@ const he = (t, e) => {
|
|
|
480
479
|
this.data.selectedRows = [];
|
|
481
480
|
}
|
|
482
481
|
}
|
|
483
|
-
),
|
|
482
|
+
), we = u(({ name: t, email: e }) => o({ class: "min-w-0 flex-auto" }, [
|
|
484
483
|
m({ class: "text-base font-semibold leading-6 m-0" }, t),
|
|
485
484
|
m({ class: "truncate text-sm leading-5 text-muted-foreground m-0" }, e)
|
|
486
|
-
])),
|
|
485
|
+
])), be = () => o({ class: "flex items-center gap-x-1.5" }, [
|
|
487
486
|
o({ class: "flex-none rounded-full bg-emerald-500/20 p-1" }, [
|
|
488
487
|
o({ class: "h-1.5 w-1.5 rounded-full bg-emerald-500" })
|
|
489
488
|
]),
|
|
490
489
|
m({ class: "text-xs leading-5 text-gray-500" }, "Online")
|
|
491
|
-
]),
|
|
490
|
+
]), xe = (t) => m({ class: "text-xs leading-5 text-muted-foreground" }, [
|
|
492
491
|
y("Last seen "),
|
|
493
|
-
|
|
494
|
-
]),
|
|
492
|
+
X({ datetime: t }, "3h ago")
|
|
493
|
+
]), ke = (t, e) => t === "online" ? be() : xe(e), ve = u(({ role: t, lastSeen: e, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
|
|
495
494
|
m({ class: "text-sm leading-6 m-0" }, t),
|
|
496
|
-
|
|
497
|
-
])),
|
|
495
|
+
ke(s, e)
|
|
496
|
+
])), ye = (t) => t.split(" ").map((s) => s[0]).join(""), De = u((t) => D({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
|
|
498
497
|
o({ class: "flex min-w-0 gap-x-4" }, [
|
|
499
|
-
|
|
500
|
-
|
|
498
|
+
te({ src: t.image, alt: t.name, fallbackText: ye(t.name) }),
|
|
499
|
+
we({ name: t.name, email: t.email })
|
|
501
500
|
]),
|
|
502
|
-
|
|
501
|
+
ve({
|
|
503
502
|
role: t.role,
|
|
504
503
|
lastSeen: t.lastSeen,
|
|
505
504
|
status: t.status
|
|
506
505
|
})
|
|
507
|
-
])),
|
|
506
|
+
])), tt = u((t) => new G({
|
|
508
507
|
cache: "list",
|
|
509
508
|
key: "name",
|
|
510
509
|
items: t.users,
|
|
511
510
|
role: "list",
|
|
512
511
|
class: "divide-y divide-border",
|
|
513
|
-
rowItem:
|
|
514
|
-
})),
|
|
512
|
+
rowItem: De
|
|
513
|
+
})), Se = (t, e) => e.includes(t), Le = (t, e, s) => t.exact ? s === e : Se(e, s), Ce = ({ text: t, href: e, exact: s, hidden: n }) => new M({
|
|
515
514
|
text: t,
|
|
516
515
|
href: e,
|
|
517
516
|
exact: s,
|
|
518
517
|
dataSet: ["selected", ["state", !0, "active"]],
|
|
519
518
|
class: `${n ? "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`
|
|
520
519
|
});
|
|
521
|
-
class
|
|
520
|
+
class st extends g {
|
|
522
521
|
/**
|
|
523
522
|
* This will declare the props for the compiler.
|
|
524
523
|
*
|
|
@@ -574,7 +573,7 @@ class tt extends g {
|
|
|
574
573
|
for (const n of this.links) {
|
|
575
574
|
if (!n.rendered)
|
|
576
575
|
continue;
|
|
577
|
-
|
|
576
|
+
Le(n, n.getLinkPath(), e) ? (this.updateLink(n, !0), s = !0) : this.updateLink(n, !1);
|
|
578
577
|
}
|
|
579
578
|
!s && this.links[0] && this.updateLink(this.links[0], !0);
|
|
580
579
|
}
|
|
@@ -604,7 +603,7 @@ class tt extends g {
|
|
|
604
603
|
* @returns {object}
|
|
605
604
|
*/
|
|
606
605
|
addLink({ label: e, href: s, exact: n, hidden: a }) {
|
|
607
|
-
const i =
|
|
606
|
+
const i = Ce({ text: e, href: s, exact: n, hidden: a });
|
|
608
607
|
return this.links.push(i), i;
|
|
609
608
|
}
|
|
610
609
|
/**
|
|
@@ -616,7 +615,7 @@ class tt extends g {
|
|
|
616
615
|
this.links = [];
|
|
617
616
|
}
|
|
618
617
|
}
|
|
619
|
-
const
|
|
618
|
+
const nt = u((t) => {
|
|
620
619
|
const e = t.margin || "m-4 ml-0";
|
|
621
620
|
return o({ class: `flex-none ${e}` }, [
|
|
622
621
|
C({
|
|
@@ -721,7 +720,7 @@ class N extends g {
|
|
|
721
720
|
return this.children;
|
|
722
721
|
}
|
|
723
722
|
}
|
|
724
|
-
class
|
|
723
|
+
class at extends N {
|
|
725
724
|
/**
|
|
726
725
|
* This will stop presistence.
|
|
727
726
|
*
|
|
@@ -824,7 +823,7 @@ class nt extends N {
|
|
|
824
823
|
document.documentElement.style.overflowY = "auto";
|
|
825
824
|
}
|
|
826
825
|
}
|
|
827
|
-
class
|
|
826
|
+
class it extends N {
|
|
828
827
|
/**
|
|
829
828
|
* This will get the overlay type.
|
|
830
829
|
*
|
|
@@ -843,7 +842,7 @@ class at extends N {
|
|
|
843
842
|
this.container = e, this.initialize();
|
|
844
843
|
}
|
|
845
844
|
}
|
|
846
|
-
const
|
|
845
|
+
const Be = u(({ index: t, click: e, state: s }, n) => D({
|
|
847
846
|
class: "p-2 cursor-pointer hover:bg-muted/50",
|
|
848
847
|
onState: [
|
|
849
848
|
[s, "selectedIndex", {
|
|
@@ -852,11 +851,11 @@ const Ce = u(({ index: t, click: e, state: s }, n) => D({
|
|
|
852
851
|
}]
|
|
853
852
|
],
|
|
854
853
|
pointerdown: () => e(t)
|
|
855
|
-
}, n)),
|
|
854
|
+
}, n)), Ie = u(({ selectOption: t, state: e }) => b({
|
|
856
855
|
class: "border rounded-md list-none m-0 p-0 max-h-[400px] overflow-y-auto",
|
|
857
|
-
for: ["filteredOptions", (s, n) =>
|
|
858
|
-
})),
|
|
859
|
-
|
|
856
|
+
for: ["filteredOptions", (s, n) => Be({ index: n, click: t, state: e }, s.label)]
|
|
857
|
+
})), Te = 100, We = u((t) => o({ class: "relative flex items-center" }, [
|
|
858
|
+
Z({
|
|
860
859
|
cache: "input",
|
|
861
860
|
placeholder: t.placeholder ?? "Search...",
|
|
862
861
|
bind: [t.state, "searchQuery"],
|
|
@@ -864,26 +863,26 @@ const Ce = u(({ index: t, click: e, state: s }, n) => D({
|
|
|
864
863
|
s.state.open = !0, typeof t.filterOptions == "function" && t.filterOptions(), s.dropdown.updatePosition();
|
|
865
864
|
},
|
|
866
865
|
pointerup: (e, s) => s.toggleDropdown(),
|
|
867
|
-
blur: (e, { state: s }) => setTimeout(() => s.open = !1,
|
|
866
|
+
blur: (e, { state: s }) => setTimeout(() => s.open = !1, Te),
|
|
868
867
|
keydown: (e) => typeof t.handleKeyDown == "function" && t.handleKeyDown(e)
|
|
869
868
|
}),
|
|
870
869
|
t.icon && o({ class: "absolute right-0 mr-2" }, [
|
|
871
870
|
z(t.icon)
|
|
872
871
|
])
|
|
873
|
-
])),
|
|
872
|
+
])), Pe = (t) => o({
|
|
874
873
|
class: "relative flex fle-auto flex-col",
|
|
875
874
|
onState: ["open", (e, s, n) => {
|
|
876
875
|
if (e)
|
|
877
|
-
return new
|
|
876
|
+
return new se({
|
|
878
877
|
cache: "dropdown",
|
|
879
878
|
parent: n,
|
|
880
879
|
button: n.input,
|
|
881
880
|
size: "xl"
|
|
882
881
|
}, [
|
|
883
|
-
|
|
882
|
+
Ie(t)
|
|
884
883
|
]);
|
|
885
884
|
}]
|
|
886
|
-
}),
|
|
885
|
+
}), ot = R(
|
|
887
886
|
{
|
|
888
887
|
/**
|
|
889
888
|
* This will set up the data object.
|
|
@@ -980,7 +979,7 @@ const Ce = u(({ index: t, click: e, state: s }, n) => D({
|
|
|
980
979
|
*/
|
|
981
980
|
render() {
|
|
982
981
|
return o({ class: "relative w-full max-w-md" }, [
|
|
983
|
-
|
|
982
|
+
We({
|
|
984
983
|
// @ts-ignore
|
|
985
984
|
state: this.state,
|
|
986
985
|
// @ts-ignore
|
|
@@ -992,7 +991,7 @@ const Ce = u(({ index: t, click: e, state: s }, n) => D({
|
|
|
992
991
|
// @ts-ignore
|
|
993
992
|
handleKeyDown: this.handleKeyDown.bind(this)
|
|
994
993
|
}),
|
|
995
|
-
|
|
994
|
+
Pe({
|
|
996
995
|
// @ts-ignore
|
|
997
996
|
state: this.state,
|
|
998
997
|
// @ts-ignore
|
|
@@ -1003,7 +1002,7 @@ const Ce = u(({ index: t, click: e, state: s }, n) => D({
|
|
|
1003
1002
|
]);
|
|
1004
1003
|
}
|
|
1005
1004
|
}
|
|
1006
|
-
),
|
|
1005
|
+
), Oe = (t) => D(
|
|
1007
1006
|
{
|
|
1008
1007
|
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",
|
|
1009
1008
|
dataSet: ["selected", ["state", t.value, "active"]]
|
|
@@ -1015,10 +1014,10 @@ const Ce = u(({ index: t, click: e, state: s }, n) => D({
|
|
|
1015
1014
|
click: (e) => t.callBack(t.value)
|
|
1016
1015
|
}, t.label)
|
|
1017
1016
|
]
|
|
1018
|
-
),
|
|
1019
|
-
b({ class: "flex flex-auto flex-row", map: [t.options, (e) =>
|
|
1017
|
+
), Re = (t, e) => (t.callBack = e, Oe(t)), Me = (t) => S({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
|
|
1018
|
+
b({ class: "flex flex-auto flex-row", map: [t.options, (e) => Re(e, t.callBack)] })
|
|
1020
1019
|
]);
|
|
1021
|
-
class
|
|
1020
|
+
class lt extends g {
|
|
1022
1021
|
/**
|
|
1023
1022
|
* This will declare the props for the compiler.
|
|
1024
1023
|
*
|
|
@@ -1035,7 +1034,7 @@ class ot extends g {
|
|
|
1035
1034
|
render() {
|
|
1036
1035
|
const e = this.select.bind(this);
|
|
1037
1036
|
return o({ class: "" }, [
|
|
1038
|
-
|
|
1037
|
+
Me({
|
|
1039
1038
|
class: this.class,
|
|
1040
1039
|
options: this.options,
|
|
1041
1040
|
callBack: e
|
|
@@ -1106,7 +1105,7 @@ class ot extends g {
|
|
|
1106
1105
|
};
|
|
1107
1106
|
}
|
|
1108
1107
|
}
|
|
1109
|
-
const
|
|
1108
|
+
const ze = (t) => D(
|
|
1110
1109
|
{
|
|
1111
1110
|
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",
|
|
1112
1111
|
dataSet: ["selected", ["state", t.value, "active"]]
|
|
@@ -1119,10 +1118,10 @@ const Me = (t) => D(
|
|
|
1119
1118
|
disabled: t.disabled
|
|
1120
1119
|
}, t.label)
|
|
1121
1120
|
]
|
|
1122
|
-
),
|
|
1123
|
-
b({ class: "flex flex-auto flex-row", map: [t.options, (e) =>
|
|
1121
|
+
), Ne = (t, e) => (t.callBack = e, ze(t)), $e = (t) => S({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
|
|
1122
|
+
b({ class: "flex flex-auto flex-row", map: [t.options, (e) => Ne(e, t.callBack)] })
|
|
1124
1123
|
]);
|
|
1125
|
-
class
|
|
1124
|
+
class rt extends g {
|
|
1126
1125
|
/**
|
|
1127
1126
|
* This will declare the props for the compiler.
|
|
1128
1127
|
*
|
|
@@ -1138,7 +1137,7 @@ class lt extends g {
|
|
|
1138
1137
|
*/
|
|
1139
1138
|
render() {
|
|
1140
1139
|
const e = this.select.bind(this);
|
|
1141
|
-
return
|
|
1140
|
+
return $e({
|
|
1142
1141
|
class: this.class,
|
|
1143
1142
|
options: this.options,
|
|
1144
1143
|
callBack: e
|
|
@@ -1165,17 +1164,17 @@ class lt extends g {
|
|
|
1165
1164
|
};
|
|
1166
1165
|
}
|
|
1167
1166
|
}
|
|
1168
|
-
const
|
|
1167
|
+
const Ae = (t, e) => new RegExp(`${t}($|/|\\.).*`).test(e), je = (t, e) => {
|
|
1169
1168
|
const s = t.getLinkPath();
|
|
1170
|
-
return t.exact ? e === s :
|
|
1171
|
-
},
|
|
1169
|
+
return t.exact ? e === s : Ae(s, e);
|
|
1170
|
+
}, Ue = ({ text: t, href: e, exact: s }) => new M({
|
|
1172
1171
|
text: t,
|
|
1173
1172
|
href: e,
|
|
1174
1173
|
exact: s,
|
|
1175
1174
|
dataSet: ["selected", ["state", !0, "active"]],
|
|
1176
1175
|
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"
|
|
1177
1176
|
});
|
|
1178
|
-
class
|
|
1177
|
+
class Ye extends g {
|
|
1179
1178
|
/**
|
|
1180
1179
|
* This will declare the props for the compiler.
|
|
1181
1180
|
*
|
|
@@ -1226,7 +1225,7 @@ class Ue extends g {
|
|
|
1226
1225
|
let s = !1, n = this.links[0];
|
|
1227
1226
|
this.deactivateAllLinks();
|
|
1228
1227
|
for (const a of this.links)
|
|
1229
|
-
if (a.rendered !== !1 && (s =
|
|
1228
|
+
if (a.rendered !== !1 && (s = je(a, e), s === !0)) {
|
|
1230
1229
|
this.updateLink(a, !0);
|
|
1231
1230
|
break;
|
|
1232
1231
|
}
|
|
@@ -1258,7 +1257,7 @@ class Ue extends g {
|
|
|
1258
1257
|
* @returns {object}
|
|
1259
1258
|
*/
|
|
1260
1259
|
addLink({ label: e, href: s, exact: n }) {
|
|
1261
|
-
const a =
|
|
1260
|
+
const a = Ue({ text: e, href: s, exact: n });
|
|
1262
1261
|
return this.links.push(a), a;
|
|
1263
1262
|
}
|
|
1264
1263
|
/**
|
|
@@ -1270,7 +1269,7 @@ class Ue extends g {
|
|
|
1270
1269
|
this.links = [];
|
|
1271
1270
|
}
|
|
1272
1271
|
}
|
|
1273
|
-
class
|
|
1272
|
+
class ct extends g {
|
|
1274
1273
|
/**
|
|
1275
1274
|
* This will declare the props for the compiler.
|
|
1276
1275
|
*
|
|
@@ -1286,7 +1285,7 @@ class rt extends g {
|
|
|
1286
1285
|
*/
|
|
1287
1286
|
render() {
|
|
1288
1287
|
return o({ class: "tab-panel" }, [
|
|
1289
|
-
new
|
|
1288
|
+
new Ye({
|
|
1290
1289
|
class: this.class,
|
|
1291
1290
|
options: this.options
|
|
1292
1291
|
}),
|
|
@@ -1316,7 +1315,7 @@ class rt extends g {
|
|
|
1316
1315
|
return s;
|
|
1317
1316
|
}
|
|
1318
1317
|
}
|
|
1319
|
-
class
|
|
1318
|
+
class Ee extends g {
|
|
1320
1319
|
/**
|
|
1321
1320
|
* Runs before rendering, sets up defaults, a timer for drawing,
|
|
1322
1321
|
* and basic canvas properties.
|
|
@@ -1326,7 +1325,7 @@ class Ye extends g {
|
|
|
1326
1325
|
onCreated() {
|
|
1327
1326
|
this.lineWidth = this.lineWidth || 3, this.lineColor = this.lineColor || "#000000", this.canvas = null, this.ctx = null, this.status = "stopped";
|
|
1328
1327
|
const e = 1e3 / 60;
|
|
1329
|
-
this.timer = new
|
|
1328
|
+
this.timer = new V(e, 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";
|
|
1330
1329
|
}
|
|
1331
1330
|
/**
|
|
1332
1331
|
* Renders a <canvas> element.
|
|
@@ -1334,7 +1333,7 @@ class Ye extends g {
|
|
|
1334
1333
|
* @returns {object} Layout definition for the canvas.
|
|
1335
1334
|
*/
|
|
1336
1335
|
render() {
|
|
1337
|
-
return
|
|
1336
|
+
return q({
|
|
1338
1337
|
style: "touch-action: none; -webkit-user-select: none; -webkit-touch-callout: none;"
|
|
1339
1338
|
});
|
|
1340
1339
|
}
|
|
@@ -1542,7 +1541,7 @@ class Ye extends g {
|
|
|
1542
1541
|
this.timer.stop(), this.status = "stopped";
|
|
1543
1542
|
}
|
|
1544
1543
|
}
|
|
1545
|
-
class
|
|
1544
|
+
class dt extends g {
|
|
1546
1545
|
/**
|
|
1547
1546
|
* Sets up default properties for the signature panel.
|
|
1548
1547
|
*
|
|
@@ -1559,7 +1558,7 @@ class ct extends g {
|
|
|
1559
1558
|
*/
|
|
1560
1559
|
render() {
|
|
1561
1560
|
return o({ class: "signature-panel relative flex flex-auto overflow-hidden select-none" }, [
|
|
1562
|
-
|
|
1561
|
+
ee({
|
|
1563
1562
|
cache: "hiddenInput",
|
|
1564
1563
|
required: !0,
|
|
1565
1564
|
bind: this.path + ".data"
|
|
@@ -1571,7 +1570,7 @@ class ct extends g {
|
|
|
1571
1570
|
click: this.reset.bind(this)
|
|
1572
1571
|
})
|
|
1573
1572
|
]),
|
|
1574
|
-
new
|
|
1573
|
+
new Ee({
|
|
1575
1574
|
cache: "canvasLayer",
|
|
1576
1575
|
margin: this.margin,
|
|
1577
1576
|
targetSize: this.targetSize,
|
|
@@ -1621,33 +1620,33 @@ class ct extends g {
|
|
|
1621
1620
|
}
|
|
1622
1621
|
}
|
|
1623
1622
|
export {
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1623
|
+
nt as B,
|
|
1624
|
+
ge as C,
|
|
1625
|
+
me as D,
|
|
1626
|
+
fe as H,
|
|
1627
|
+
it as I,
|
|
1628
|
+
st as N,
|
|
1630
1629
|
N as O,
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1630
|
+
Ge as P,
|
|
1631
|
+
ot as S,
|
|
1632
|
+
pe as T,
|
|
1633
|
+
De as U,
|
|
1634
|
+
Ze as W,
|
|
1635
|
+
oe as a,
|
|
1637
1636
|
T as b,
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1637
|
+
ae as c,
|
|
1638
|
+
Ve as d,
|
|
1639
|
+
Je as e,
|
|
1640
|
+
re as f,
|
|
1641
|
+
ie as g,
|
|
1642
|
+
de as h,
|
|
1643
|
+
he as i,
|
|
1644
|
+
et as j,
|
|
1645
|
+
tt as k,
|
|
1646
|
+
at as l,
|
|
1647
|
+
lt as m,
|
|
1648
|
+
rt as n,
|
|
1649
|
+
Ye as o,
|
|
1650
|
+
ct as p,
|
|
1651
|
+
dt as q
|
|
1653
1652
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Span as c, Div as l, Legend as b, Fieldset as f, Input as x } from "@base-framework/atoms";
|
|
2
2
|
import { Atom as s, Html as C } from "@base-framework/base";
|
|
3
3
|
import { a as u } from "./veil-DSQdR6CM.js";
|
|
4
|
-
import { f as p, e as h, g as y } from "./inputs-
|
|
4
|
+
import { f as p, e as h, g as y } from "./inputs-C1dvFQuB.js";
|
|
5
5
|
const a = {
|
|
6
6
|
gray: {
|
|
7
7
|
backgroundColor: "bg-gray-50",
|
package/package.json
CHANGED