@base-framework/ui 1.2.53 → 1.2.55
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 +1 -1
- package/dist/{confirmation-Bb4yyCdN.js → confirmation-C9YqsZw-.js} +1 -1
- package/dist/{full-page-sr9FKjeC.js → full-page-CI8OB56g.js} +861 -843
- package/dist/index.es.js +5 -5
- package/dist/molecules.es.js +2 -2
- package/dist/organisms.es.js +3 -3
- package/dist/pages.es.js +2 -2
- package/dist/{sidebar-menu-B8UI-iLE.js → sidebar-menu-hNb7NQ1x.js} +1 -1
- package/dist/{sidebar-menu-page-tF3Yc9nB.js → sidebar-menu-page-CQ_ExHtv.js} +2 -2
- package/dist/{signature-panel-CWJHFDAm.js → signature-panel-CovV7Mn6.js} +57 -52
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { A as s, a as o, B as t, b as n, c as r, d as l, e as i, f as u, C as p, g as m, h as d, i as g, j as c, k as T, l as b, m as I, n as C, o as S, p as F, q as D, r as B, D as P, s as k, t as M, u as v, v as N, w as f, x, y as h, z as y, E as U, F as W, G as w, H as L, I as H, J as A, K as G, L as R, M as E, N as O, O as V, P as Z, Q as j, R as J, S as _, T as q, U as z, V as K, W as Q, X, Y, Z as $, _ as aa, $ as ea, a0 as sa, a1 as oa, a2 as ta, a3 as na, a4 as ra, a5 as la, a6 as ia, a7 as ua, a8 as pa, a9 as ma, aa as da, ab as ga, ac as ca, ad as Ta, ae as ba, af as Ia, ag as Ca, ah as Sa, ai as Fa, aj as Da, ak as Ba, al as Pa, am as ka, an as Ma, ao as va, ap as Na, aq as fa, ar as xa, as as ha, at as ya, au as Ua, av as Wa, aw as wa, ax as La, ay as Ha, az as Aa, aA as Ga, aB as Ra, aC as Ea, aD as Oa, aE as Va, aF as Za, aG as ja, aH as Ja, aI as _a, aJ as qa, aK as za, aL as Ka, aM as Qa, aN as Xa, aO as Ya, aP as $a, aQ as ae, aR as ee, aS as se, aT as oe, aU as te, aV as ne, aW as re, aX as le, aY as ie, aZ as ue, a_ as pe, a$ as me, b0 as de, b1 as ge, b2 as ce, b3 as Te, b4 as be, b5 as Ie, b6 as Ce, b7 as Se } from "./full-page-
|
|
1
|
+
import { A as s, a as o, B as t, b as n, c as r, d as l, e as i, f as u, C as p, g as m, h as d, i as g, j as c, k as T, l as b, m as I, n as C, o as S, p as F, q as D, r as B, D as P, s as k, t as M, u as v, v as N, w as f, x, y as h, z as y, E as U, F as W, G as w, H as L, I as H, J as A, K as G, L as R, M as E, N as O, O as V, P as Z, Q as j, R as J, S as _, T as q, U as z, V as K, W as Q, X, Y, Z as $, _ as aa, $ as ea, a0 as sa, a1 as oa, a2 as ta, a3 as na, a4 as ra, a5 as la, a6 as ia, a7 as ua, a8 as pa, a9 as ma, aa as da, ab as ga, ac as ca, ad as Ta, ae as ba, af as Ia, ag as Ca, ah as Sa, ai as Fa, aj as Da, ak as Ba, al as Pa, am as ka, an as Ma, ao as va, ap as Na, aq as fa, ar as xa, as as ha, at as ya, au as Ua, av as Wa, aw as wa, ax as La, ay as Ha, az as Aa, aA as Ga, aB as Ra, aC as Ea, aD as Oa, aE as Va, aF as Za, aG as ja, aH as Ja, aI as _a, aJ as qa, aK as za, aL as Ka, aM as Qa, aN as Xa, aO as Ya, aP as $a, aQ as ae, aR as ee, aS as se, aT as oe, aU as te, aV as ne, aW as re, aX as le, aY as ie, aZ as ue, a_ as pe, a$ as me, b0 as de, b1 as ge, b2 as ce, b3 as Te, b4 as be, b5 as Ie, b6 as Ce, b7 as Se } from "./full-page-CI8OB56g.js";
|
|
2
2
|
import { S as De } from "./skeleton-BlY3opxG.js";
|
|
3
3
|
import { Icons as Pe, MaterialSymbols as ke } from "./icons.es.js";
|
|
4
|
-
import { C as ve, D as Ne, a as fe, b as xe, c as he, d as ye, e as Ue, M as We, N as we, S as Le, f as He, g as Ae, h as Ge, T as Re, i as Ee } from "./confirmation-
|
|
5
|
-
import { B as Ve, I as Ze, N as je, P as Je, S as _e, T as qe, a as ze, b as Ke, U as Qe, c as Xe, d as Ye, e as $e, W as as, f as es, g as ss, h as os, i as ts, j as ns, k as rs, l as ls, m as is, n as us } from "./signature-panel-
|
|
6
|
-
import { S as ms } from "./sidebar-menu-
|
|
7
|
-
import { B as gs, C as cs, F as Ts, a as bs, S as Is } from "./sidebar-menu-page-
|
|
4
|
+
import { C as ve, D as Ne, a as fe, b as xe, c as he, d as ye, e as Ue, M as We, N as we, S as Le, f as He, g as Ae, h as Ge, T as Re, i as Ee } from "./confirmation-C9YqsZw-.js";
|
|
5
|
+
import { B as Ve, I as Ze, N as je, P as Je, S as _e, T as qe, a as ze, b as Ke, U as Qe, c as Xe, d as Ye, e as $e, W as as, f as es, g as ss, h as os, i as ts, j as ns, k as rs, l as ls, m as is, n as us } from "./signature-panel-CovV7Mn6.js";
|
|
6
|
+
import { S as ms } from "./sidebar-menu-hNb7NQ1x.js";
|
|
7
|
+
import { B as gs, C as cs, F as Ts, a as bs, S as Is } from "./sidebar-menu-page-CQ_ExHtv.js";
|
|
8
8
|
import { A as Ss, B as Fs, F as Ds, M as Bs, T as Ps, a as ks } from "./bside-template-C7AQgQ6H.js";
|
|
9
9
|
import { F as vs, c as Ns } from "./format-DE4rFWuD.js";
|
|
10
10
|
import { I as xs } from "./image-scaler-1G-JzJVG.js";
|
package/dist/molecules.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as s, a as t, e, o as r, p as i, q as n, r as m, u as l, v as d, z as C, E as p, F as D, H as S, K as u, V as c, W as g, X as F, Y as T, Z as f, _ as b, $ as w, a1 as A, a2 as I, a3 as M, aa as P, af as y, aj as B, at as R, ay as U, az as k, aM as v, aR as x, aT as E, aV as L, b4 as N } from "./full-page-
|
|
2
|
-
import { C as z, D as V, a as _, b as j, c as q, d as G, e as H, M as K, N as O, S as W, f as X, g as Y, h as Z, T as $, i as J } from "./confirmation-
|
|
1
|
+
import { A as s, a as t, e, o as r, p as i, q as n, r as m, u as l, v as d, z as C, E as p, F as D, H as S, K as u, V as c, W as g, X as F, Y as T, Z as f, _ as b, $ as w, a1 as A, a2 as I, a3 as M, aa as P, af as y, aj as B, at as R, ay as U, az as k, aM as v, aR as x, aT as E, aV as L, b4 as N } from "./full-page-CI8OB56g.js";
|
|
2
|
+
import { C as z, D as V, a as _, b as j, c as q, d as G, e as H, M as K, N as O, S as W, f as X, g as Y, h as Z, T as $, i as J } from "./confirmation-C9YqsZw-.js";
|
|
3
3
|
export {
|
|
4
4
|
s as Alert,
|
|
5
5
|
t as Avatar,
|
package/dist/organisms.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as s, b as n, C as t, g as r, j as o, D as l, s as i, x as d, y as b, G as u, I as g, a4 as p, a6 as v, ab as D, ag as N, ak as T, al as k, am as C, ao as c, ap as m, aq as y, ar as B, as as S, av as h, aA as M, aD as W, aH as I, aI as U, aJ as H, aL as x, aN as P, aO as L, aU as f, a_ as G, a$ as O, b3 as j, b7 as F } from "./full-page-
|
|
2
|
-
import { B as w, I as A, N as J, P as R, S as _, T as $, a as z, b as E, U as K, c as Q, d as V, e as X, W as Y, f as Z, g as aa, h as ea, i as sa, j as na, k as ta, l as ra, m as oa, n as la } from "./signature-panel-
|
|
3
|
-
import { S as da } from "./sidebar-menu-
|
|
1
|
+
import { B as s, b as n, C as t, g as r, j as o, D as l, s as i, x as d, y as b, G as u, I as g, a4 as p, a6 as v, ab as D, ag as N, ak as T, al as k, am as C, ao as c, ap as m, aq as y, ar as B, as as S, av as h, aA as M, aD as W, aH as I, aI as U, aJ as H, aL as x, aN as P, aO as L, aU as f, a_ as G, a$ as O, b3 as j, b7 as F } from "./full-page-CI8OB56g.js";
|
|
2
|
+
import { B as w, I as A, N as J, P as R, S as _, T as $, a as z, b as E, U as K, c as Q, d as V, e as X, W as Y, f as Z, g as aa, h as ea, i as sa, j as na, k as ta, l as ra, m as oa, n as la } from "./signature-panel-CovV7Mn6.js";
|
|
3
|
+
import { S as da } from "./sidebar-menu-hNb7NQ1x.js";
|
|
4
4
|
export {
|
|
5
5
|
s as BackButton,
|
|
6
6
|
n as Backdrop,
|
package/dist/pages.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as s, a5 as g, ah as n, aw as P } from "./full-page-
|
|
2
|
-
import { B as r, C as o, F as i, a as t, S as u } from "./sidebar-menu-page-
|
|
1
|
+
import { d as s, a5 as g, ah as n, aw as P } from "./full-page-CI8OB56g.js";
|
|
2
|
+
import { B as r, C as o, F as i, a as t, S as u } from "./sidebar-menu-page-CQ_ExHtv.js";
|
|
3
3
|
export {
|
|
4
4
|
s as BasicPage,
|
|
5
5
|
r as BlankPage,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Div as r, Header as x, H1 as c } from "@base-framework/atoms";
|
|
2
|
-
import { ab as n } from "./full-page-
|
|
2
|
+
import { ab as n } from "./full-page-CI8OB56g.js";
|
|
3
3
|
const b = ({ title: l, options: a, class: s = "", mobileBorder: t = !1, sticky: e = !1, topNav: o = null, bottomNav: p = null }) => r({ class: `pb-12 p-4 pt-0 lg:p-6 lg:border-r w-full lg:max-w-[300px] flex-auto flex-col ${s}` }, [
|
|
4
4
|
o,
|
|
5
5
|
l && x({ class: "pb-4 md:pb-2 px-6 flex" }, [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Div as s } from "@base-framework/atoms";
|
|
2
|
-
import { d as a, ah as i, aw as r, al as n } from "./full-page-
|
|
2
|
+
import { d as a, ah as i, aw as r, al as n } from "./full-page-CI8OB56g.js";
|
|
3
3
|
import { F as l, A as d } from "./bside-template-C7AQgQ6H.js";
|
|
4
|
-
import { S as c } from "./sidebar-menu-
|
|
4
|
+
import { S as c } from "./sidebar-menu-hNb7NQ1x.js";
|
|
5
5
|
class f extends a {
|
|
6
6
|
/**
|
|
7
7
|
* This will render the page.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Div as r, Button as b, On as U, Span as $, Nav as f, Ul as p, Section as y, Li as w, Canvas as
|
|
2
|
-
import { Component as k, Data as
|
|
3
|
-
import { f as N, av as
|
|
1
|
+
import { Div as r, Button as b, On as U, Span as $, Nav as f, Ul as p, Section as y, Li as w, Canvas as R } from "@base-framework/atoms";
|
|
2
|
+
import { Component as k, Data as F, DateTime as O, router as v, NavLink as C, base as P, Dom as W } from "@base-framework/base";
|
|
3
|
+
import { f as N, av as Y, b0 as d, a7 as A } from "./full-page-CI8OB56g.js";
|
|
4
4
|
import { Icons as B } from "./icons.es.js";
|
|
5
|
-
import { IntervalTimer as
|
|
5
|
+
import { IntervalTimer as V } from "@base-framework/organisms";
|
|
6
6
|
class Pt extends k {
|
|
7
7
|
/**
|
|
8
8
|
* This will declare the props for the compiler.
|
|
@@ -21,17 +21,17 @@ class Pt extends k {
|
|
|
21
21
|
return r({ class: this.class || "" }, this.children);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
const
|
|
24
|
+
const E = (s) => {
|
|
25
25
|
const t = new Date(s, 11, 31), e = new Date(s, 0, 1);
|
|
26
26
|
return t.getDay() === 4 || // December 31 is a Thursday
|
|
27
27
|
e.getDay() === 4;
|
|
28
|
-
},
|
|
28
|
+
}, G = (s) => {
|
|
29
29
|
const t = new Date(s.valueOf()), e = (t.getDay() + 6) % 7;
|
|
30
30
|
t.setDate(t.getDate() - e + 3);
|
|
31
31
|
const i = t.getFullYear(), n = new Date(i, 0, 4);
|
|
32
32
|
n.setDate(n.getDate() - (n.getDay() + 6) % 7);
|
|
33
33
|
const a = Math.ceil((t - n) / 6048e5) + 1;
|
|
34
|
-
return a > 52 && !
|
|
34
|
+
return a > 52 && !E(i) ? {
|
|
35
35
|
weekNumber: 1,
|
|
36
36
|
year: i + 1
|
|
37
37
|
} : {
|
|
@@ -54,8 +54,8 @@ const G = (s) => {
|
|
|
54
54
|
const e = new Date(s, t, 1).getDay(), i = new Date(s, t + 1, 0).getDate(), n = [];
|
|
55
55
|
let a = [];
|
|
56
56
|
for (let o = 1 - e; o <= i; o++) {
|
|
57
|
-
const
|
|
58
|
-
a.push(o > 0 ?
|
|
57
|
+
const c = new Date(s, t, o);
|
|
58
|
+
a.push(o > 0 ? c : null), (a.length === 7 || o === i) && (n.push([...a]), a = []);
|
|
59
59
|
}
|
|
60
60
|
return n;
|
|
61
61
|
}, Tt = (s, t) => {
|
|
@@ -80,9 +80,9 @@ const G = (s) => {
|
|
|
80
80
|
click: () => n(i, e)
|
|
81
81
|
});
|
|
82
82
|
}, J = (s, t) => {
|
|
83
|
-
const e = new Date(s, t, 1).getDay(), i = new Date(s, t + 1, 0).getDate(), n = X(s, t, e), a = Array.from({ length: i }, (
|
|
84
|
-
for (let
|
|
85
|
-
const m =
|
|
83
|
+
const e = new Date(s, t, 1).getDay(), i = new Date(s, t + 1, 0).getDate(), n = X(s, t, e), a = Array.from({ length: i }, (h, m) => new Date(s, t, m + 1)), o = (n.length + a.length) % 7, c = o === 0 ? 0 : 7 - o, l = q(s, t, c), u = [...n, ...a, ...l], g = [];
|
|
84
|
+
for (let h = 0; h < u.length; h += 7) {
|
|
85
|
+
const m = u.slice(h, h + 7), x = m.find((I) => I) || new Date(s, t, 1), { weekNumber: j, year: z } = G(x);
|
|
86
86
|
g.push({
|
|
87
87
|
weekNumber: j,
|
|
88
88
|
year: z,
|
|
@@ -91,7 +91,7 @@ const G = (s) => {
|
|
|
91
91
|
}
|
|
92
92
|
return g;
|
|
93
93
|
}, K = ({ selectWeek: s }) => U("month", (t, e, { data: i }) => {
|
|
94
|
-
const { year: n, month: a, currentDate: o } = i,
|
|
94
|
+
const { year: n, month: a, currentDate: o } = i, c = J(n, a);
|
|
95
95
|
return r(
|
|
96
96
|
{ class: "grid grid-cols-8 gap-1 text-sm px-4 py-2" },
|
|
97
97
|
[
|
|
@@ -106,8 +106,8 @@ const G = (s) => {
|
|
|
106
106
|
)
|
|
107
107
|
),
|
|
108
108
|
// Render each "week" row
|
|
109
|
-
...
|
|
110
|
-
({ weekNumber: l, days:
|
|
109
|
+
...c.map(
|
|
110
|
+
({ weekNumber: l, days: u, year: g }) => r({
|
|
111
111
|
class: "grid grid-cols-8 col-span-8 items-center ring-primary rounded-sm px-1",
|
|
112
112
|
onSet: ["currentWeek", {
|
|
113
113
|
ring: l
|
|
@@ -127,11 +127,11 @@ const G = (s) => {
|
|
|
127
127
|
// The 7 cells for each day in the row
|
|
128
128
|
r(
|
|
129
129
|
{ class: "grid grid-cols-7 col-span-7 text-center" },
|
|
130
|
-
|
|
131
|
-
(
|
|
132
|
-
year:
|
|
133
|
-
month:
|
|
134
|
-
day:
|
|
130
|
+
u.map(
|
|
131
|
+
(h) => _({
|
|
132
|
+
year: h?.getFullYear() || null,
|
|
133
|
+
month: h?.getMonth() || null,
|
|
134
|
+
day: h?.getDate() || null,
|
|
135
135
|
weekNumber: l,
|
|
136
136
|
selectWeek: s
|
|
137
137
|
})
|
|
@@ -181,7 +181,7 @@ class Mt extends k {
|
|
|
181
181
|
*/
|
|
182
182
|
setData() {
|
|
183
183
|
const t = /* @__PURE__ */ new Date(), e = this.selectedWeek || this.calculateCurrentWeek(t), i = T(e, t.getFullYear());
|
|
184
|
-
return new
|
|
184
|
+
return new F({
|
|
185
185
|
monthName: this.getMonthName(i.getMonth()),
|
|
186
186
|
year: i.getFullYear(),
|
|
187
187
|
month: i.getMonth(),
|
|
@@ -218,7 +218,7 @@ class Mt extends k {
|
|
|
218
218
|
* @returns {string}
|
|
219
219
|
*/
|
|
220
220
|
getMonthName(t) {
|
|
221
|
-
return
|
|
221
|
+
return O.monthNames[t];
|
|
222
222
|
}
|
|
223
223
|
/**
|
|
224
224
|
* Updates the calendar to show the previous month.
|
|
@@ -379,7 +379,7 @@ class $t extends k {
|
|
|
379
379
|
this.links = [], this.activeLink = null;
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
|
-
class Nt extends
|
|
382
|
+
class Nt extends Y {
|
|
383
383
|
/**
|
|
384
384
|
* This will get the overlay type.
|
|
385
385
|
*
|
|
@@ -413,7 +413,7 @@ const st = (s) => w(
|
|
|
413
413
|
), it = (s, t) => st({ ...s, callBack: t }), nt = (s) => f({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${s.class}` }, [
|
|
414
414
|
p({ class: "flex flex-auto flex-row", map: [s.options, (t) => it(t, s.callBack)] })
|
|
415
415
|
]);
|
|
416
|
-
class jt extends
|
|
416
|
+
class jt extends d {
|
|
417
417
|
/**
|
|
418
418
|
* This will declare the props for the compiler.
|
|
419
419
|
*
|
|
@@ -518,7 +518,7 @@ const at = (s) => w(
|
|
|
518
518
|
), ot = (s, t) => at({ ...s, callBack: t }), lt = (s) => f({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${s.class}` }, [
|
|
519
519
|
p({ class: "flex flex-auto flex-row", map: [s.options, (t) => ot(t, s.callBack)] })
|
|
520
520
|
]);
|
|
521
|
-
class zt extends
|
|
521
|
+
class zt extends d {
|
|
522
522
|
/**
|
|
523
523
|
* This will declare the props for the compiler.
|
|
524
524
|
*
|
|
@@ -571,7 +571,7 @@ const L = /* @__PURE__ */ new Map(), rt = (s, t) => (L.has(s) || L.set(s, new Re
|
|
|
571
571
|
dataSet: ["selected", ["state", !0, "active"]],
|
|
572
572
|
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"
|
|
573
573
|
});
|
|
574
|
-
class
|
|
574
|
+
class ut extends d {
|
|
575
575
|
/**
|
|
576
576
|
* This will declare the props for the compiler.
|
|
577
577
|
*
|
|
@@ -657,7 +657,7 @@ class dt extends u {
|
|
|
657
657
|
this.links = [], this.activeLink = null;
|
|
658
658
|
}
|
|
659
659
|
}
|
|
660
|
-
class It extends
|
|
660
|
+
class It extends d {
|
|
661
661
|
/**
|
|
662
662
|
* This will declare the props for the compiler.
|
|
663
663
|
*
|
|
@@ -673,7 +673,7 @@ class It extends u {
|
|
|
673
673
|
*/
|
|
674
674
|
render() {
|
|
675
675
|
return r({ class: "tab-panel" }, [
|
|
676
|
-
new
|
|
676
|
+
new ut({
|
|
677
677
|
class: this.class,
|
|
678
678
|
options: this.options
|
|
679
679
|
}),
|
|
@@ -704,7 +704,7 @@ class It extends u {
|
|
|
704
704
|
return e;
|
|
705
705
|
}
|
|
706
706
|
}
|
|
707
|
-
const
|
|
707
|
+
const dt = (s) => w(
|
|
708
708
|
{
|
|
709
709
|
class: "relative inline-flex items-center justify-center whitespace-nowrap text-sm font-medium text-muted-foreground transition-colors hover:text-foreground 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]:text-foreground after:absolute after:bottom-0 after:left-0 after:right-0 after:h-0.5 after:bg-primary after:transition-all after:duration-200 after:scale-x-0 data-[state=active]:after:scale-x-100",
|
|
710
710
|
dataStateSet: ["selected", ["state", s.value, "active"]]
|
|
@@ -716,10 +716,10 @@ const ut = (s) => w(
|
|
|
716
716
|
click: (t) => s.callBack(s.value)
|
|
717
717
|
}, s.label)
|
|
718
718
|
]
|
|
719
|
-
), ft = (s, t) => (s.callBack = t,
|
|
719
|
+
), ft = (s, t) => (s.callBack = t, dt(s)), pt = (s) => f({ class: `border-b border-border ${s.class}` }, [
|
|
720
720
|
p({ class: "flex flex-row items-center", map: [s.options, (t) => ft(t, s.callBack)] })
|
|
721
721
|
]);
|
|
722
|
-
class Ut extends
|
|
722
|
+
class Ut extends d {
|
|
723
723
|
/**
|
|
724
724
|
* This will declare the props for the compiler.
|
|
725
725
|
*
|
|
@@ -815,7 +815,7 @@ const gt = (s) => w(
|
|
|
815
815
|
), mt = (s, t) => gt({ ...s, callBack: t }), vt = (s) => f({ class: `border-b border-border ${s.class}` }, [
|
|
816
816
|
p({ class: "flex flex-row items-center", map: [s.options, (t) => mt(t, s.callBack)] })
|
|
817
817
|
]);
|
|
818
|
-
class
|
|
818
|
+
class Rt extends d {
|
|
819
819
|
/**
|
|
820
820
|
* This will declare the props for the compiler.
|
|
821
821
|
*
|
|
@@ -868,7 +868,7 @@ const S = /* @__PURE__ */ new Map(), bt = (s, t) => (S.has(s) || S.set(s, new Re
|
|
|
868
868
|
dataSet: ["selected", ["state", !0, "active"]],
|
|
869
869
|
class: "relative inline-flex items-center justify-center whitespace-nowrap px-4 py-3 text-sm font-medium text-muted-foreground transition-colors hover:text-foreground 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]:text-foreground after:absolute after:bottom-0 after:left-0 after:right-0 after:h-0.5 after:bg-primary after:transition-all after:duration-200 after:scale-x-0 data-[state=active]:after:scale-x-100"
|
|
870
870
|
});
|
|
871
|
-
class yt extends
|
|
871
|
+
class yt extends d {
|
|
872
872
|
/**
|
|
873
873
|
* This will declare the props for the compiler.
|
|
874
874
|
*
|
|
@@ -934,7 +934,12 @@ class yt extends u {
|
|
|
934
934
|
* @returns {void}
|
|
935
935
|
*/
|
|
936
936
|
updateLink(t, e) {
|
|
937
|
-
t.update(e), e && this.scrollable && t.panel
|
|
937
|
+
if (t.update(e), e && this.scrollable && t.panel) {
|
|
938
|
+
const i = t.panel, n = i.closest("nav");
|
|
939
|
+
if (!n) return;
|
|
940
|
+
const a = i.getBoundingClientRect(), o = n.getBoundingClientRect();
|
|
941
|
+
a.left >= o.left && a.right <= o.right || i.scrollIntoView({ behavior: "smooth", inline: "nearest", block: "nearest" });
|
|
942
|
+
}
|
|
938
943
|
}
|
|
939
944
|
/**
|
|
940
945
|
* This will add a link.
|
|
@@ -955,7 +960,7 @@ class yt extends u {
|
|
|
955
960
|
this.links = [], this.activeLink = null;
|
|
956
961
|
}
|
|
957
962
|
}
|
|
958
|
-
class
|
|
963
|
+
class Ft extends d {
|
|
959
964
|
/**
|
|
960
965
|
* This will declare the props for the compiler.
|
|
961
966
|
*
|
|
@@ -1013,7 +1018,7 @@ class wt extends k {
|
|
|
1013
1018
|
onCreated() {
|
|
1014
1019
|
this.lineWidth = this.lineWidth || 3, this.lineColor = this.lineColor || "#000000", this.canvas = null, this.ctx = null, this.status = "stopped";
|
|
1015
1020
|
const t = 1e3 / 60;
|
|
1016
|
-
this.timer = new
|
|
1021
|
+
this.timer = new V(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";
|
|
1017
1022
|
}
|
|
1018
1023
|
/**
|
|
1019
1024
|
* Renders a <canvas> element.
|
|
@@ -1021,7 +1026,7 @@ class wt extends k {
|
|
|
1021
1026
|
* @returns {object} Layout definition for the canvas.
|
|
1022
1027
|
*/
|
|
1023
1028
|
render() {
|
|
1024
|
-
return
|
|
1029
|
+
return R({
|
|
1025
1030
|
style: "touch-action: none; -webkit-user-select: none; -webkit-touch-callout: none;"
|
|
1026
1031
|
});
|
|
1027
1032
|
}
|
|
@@ -1070,12 +1075,12 @@ class wt extends k {
|
|
|
1070
1075
|
let e, i;
|
|
1071
1076
|
const n = this.canvas, a = n.width / parseInt(n.style.width), o = n.getBoundingClientRect();
|
|
1072
1077
|
if (t.touches && t.touches.length) {
|
|
1073
|
-
const
|
|
1074
|
-
e =
|
|
1078
|
+
const u = t.touches[0];
|
|
1079
|
+
e = u.clientX, i = u.clientY;
|
|
1075
1080
|
} else
|
|
1076
1081
|
e = t.x || t.clientX, i = t.y || t.clientY;
|
|
1077
|
-
const
|
|
1078
|
-
this.mouse.x =
|
|
1082
|
+
const c = parseInt((e - o.left) * a), l = parseInt((i - o.top) * a);
|
|
1083
|
+
this.mouse.x = c, this.mouse.y = l;
|
|
1079
1084
|
}
|
|
1080
1085
|
/**
|
|
1081
1086
|
* Called when the pointer goes down on the canvas.
|
|
@@ -1150,12 +1155,12 @@ class wt extends k {
|
|
|
1150
1155
|
*/
|
|
1151
1156
|
scale() {
|
|
1152
1157
|
const t = this.canvas, e = this.container, i = W.getSize(e), n = this.targetSize, a = n.width, o = n.height;
|
|
1153
|
-
let
|
|
1158
|
+
let c = a + "px", l = o + "px";
|
|
1154
1159
|
if (this.width = t.width = a, this.height = t.height = o, i.width !== 0 && i.height !== 0) {
|
|
1155
|
-
const
|
|
1156
|
-
|
|
1160
|
+
const u = i.width, g = i.height, h = u / a, m = g / o, x = Math.min(h, m);
|
|
1161
|
+
c = a * x + "px", l = o * x + "px";
|
|
1157
1162
|
}
|
|
1158
|
-
t.style.width =
|
|
1163
|
+
t.style.width = c, t.style.height = l;
|
|
1159
1164
|
}
|
|
1160
1165
|
/**
|
|
1161
1166
|
* Main drawing loop. If the mouse is down, adds a line
|
|
@@ -1229,7 +1234,7 @@ class wt extends k {
|
|
|
1229
1234
|
this.timer.stop(), this.status = "stopped";
|
|
1230
1235
|
}
|
|
1231
1236
|
}
|
|
1232
|
-
class
|
|
1237
|
+
class Ot extends k {
|
|
1233
1238
|
/**
|
|
1234
1239
|
* Sets up default properties for the signature panel.
|
|
1235
1240
|
*
|
|
@@ -1246,7 +1251,7 @@ class Yt extends k {
|
|
|
1246
1251
|
*/
|
|
1247
1252
|
render() {
|
|
1248
1253
|
return r({ class: "signature-panel relative flex flex-auto overflow-hidden select-none" }, [
|
|
1249
|
-
|
|
1254
|
+
A({
|
|
1250
1255
|
cache: "hiddenInput",
|
|
1251
1256
|
required: !0,
|
|
1252
1257
|
bind: this.path + ".data"
|
|
@@ -1320,19 +1325,19 @@ export {
|
|
|
1320
1325
|
Nt as I,
|
|
1321
1326
|
$t as N,
|
|
1322
1327
|
Pt as P,
|
|
1323
|
-
|
|
1328
|
+
Ot as S,
|
|
1324
1329
|
It as T,
|
|
1325
1330
|
Ut as U,
|
|
1326
1331
|
Mt as W,
|
|
1327
1332
|
zt as a,
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1333
|
+
ut as b,
|
|
1334
|
+
Ft as c,
|
|
1335
|
+
Rt as d,
|
|
1331
1336
|
yt as e,
|
|
1332
1337
|
_ as f,
|
|
1333
1338
|
K as g,
|
|
1334
1339
|
Q as h,
|
|
1335
|
-
|
|
1340
|
+
G as i,
|
|
1336
1341
|
Wt as j,
|
|
1337
1342
|
T as k,
|
|
1338
1343
|
Tt as l,
|
package/package.json
CHANGED