@base-framework/ui 0.0.20 → 1.0.0
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 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-BqQwYCFz.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-B5TK6tLi.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-
|
|
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-DNMljrM5.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-CguousG5.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-22AUZwFc.js";
|
|
11
11
|
import { A as Rs, F as Es, M as Gs, a as Vs, T as js } from "./aside-template-D0KANPjh.js";
|
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-
|
|
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-DNMljrM5.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-B5TK6tLi.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-CguousG5.js";
|
|
4
4
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Button as v, Div as o, On as U, Span as y, Th as O, 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 P } from "@base-framework/atoms";
|
|
2
|
-
import { Atom as u, Component as
|
|
2
|
+
import { Atom as u, Component as g, Data as L, DateTime as q, 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 "./icon-B9QUT2NY.js";
|
|
4
4
|
import { Icons as w } from "./icons.es.js";
|
|
5
5
|
import { TableBody as K, List as _, IntervalTimer as G } from "@base-framework/organisms";
|
|
@@ -16,7 +16,7 @@ u(({ value: t, label: e }) => v({
|
|
|
16
16
|
dataSet: ["performance", ["state", t, "active"]],
|
|
17
17
|
click: (s, { state: a }) => a.performance = t
|
|
18
18
|
}, e));
|
|
19
|
-
class Ke extends
|
|
19
|
+
class Ke extends g {
|
|
20
20
|
/**
|
|
21
21
|
* This will declare the props for the compiler.
|
|
22
22
|
*
|
|
@@ -93,16 +93,16 @@ const se = (t) => {
|
|
|
93
93
|
click: () => n(a, s)
|
|
94
94
|
});
|
|
95
95
|
}, re = (t, e) => {
|
|
96
|
-
const s = new Date(t, e, 1).getDay(), a = new Date(t, e + 1, 0).getDate(), n = ne(t, e, s), i = Array.from({ length: a }, (r, p) => new Date(t, e, p + 1)), l = (n.length + i.length) % 7, d = l === 0 ? 0 : 7 - l, c = ie(t, e, d), h = [...n, ...i, ...c],
|
|
96
|
+
const s = new Date(t, e, 1).getDay(), a = new Date(t, e + 1, 0).getDate(), n = ne(t, e, s), i = Array.from({ length: a }, (r, p) => new Date(t, e, p + 1)), l = (n.length + i.length) % 7, d = l === 0 ? 0 : 7 - l, c = ie(t, e, d), h = [...n, ...i, ...c], f = [];
|
|
97
97
|
for (let r = 0; r < h.length; r += 7) {
|
|
98
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,
|
|
102
102
|
days: p
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
|
-
return
|
|
105
|
+
return f;
|
|
106
106
|
}, ce = ({ selectWeek: t }) => U("month", (e, s, { data: a }) => {
|
|
107
107
|
const { year: n, month: i, currentDate: l } = a, d = re(n, i);
|
|
108
108
|
return o(
|
|
@@ -120,7 +120,7 @@ const se = (t) => {
|
|
|
120
120
|
),
|
|
121
121
|
// Render each "week" row
|
|
122
122
|
...d.map(
|
|
123
|
-
({ weekNumber: c, days: h, year:
|
|
123
|
+
({ weekNumber: c, days: h, year: f }) => 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 se = (t) => {
|
|
|
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: () => t(c,
|
|
132
|
+
click: () => t(c, f),
|
|
133
133
|
// If you have a 'currentWeek' state, you can highlight it with 'onSet'
|
|
134
134
|
onSet: ["currentWeek", {
|
|
135
135
|
"text-primary-foreground": c,
|
|
@@ -180,7 +180,7 @@ const se = (t) => {
|
|
|
180
180
|
click: t
|
|
181
181
|
})
|
|
182
182
|
]);
|
|
183
|
-
class Ve extends
|
|
183
|
+
class Ve extends g {
|
|
184
184
|
/**
|
|
185
185
|
* This will declare the props for the compiler.
|
|
186
186
|
*
|
|
@@ -311,7 +311,7 @@ const he = (t) => O({ class: `cursor-pointer py-3 px-4 text-base w-10 ${t.class
|
|
|
311
311
|
e && E({ class: "ml-2", html: w.arrows.upDown })
|
|
312
312
|
])
|
|
313
313
|
]);
|
|
314
|
-
},
|
|
314
|
+
}, ge = (t) => F([
|
|
315
315
|
H({
|
|
316
316
|
class: "text-muted-foreground border-b",
|
|
317
317
|
map: [t.headers, (e) => e.label === "checkbox" ? he({ toggle: t.toggle }) : ue({
|
|
@@ -322,7 +322,7 @@ const he = (t) => O({ class: `cursor-pointer py-3 px-4 text-base w-10 ${t.class
|
|
|
322
322
|
sort: t.sort
|
|
323
323
|
})]
|
|
324
324
|
})
|
|
325
|
-
]),
|
|
325
|
+
]), fe = ({ key: t, rows: e, selectRow: s, rowItem: a }) => new K({
|
|
326
326
|
cache: "table",
|
|
327
327
|
key: t,
|
|
328
328
|
items: e,
|
|
@@ -400,10 +400,10 @@ const he = (t) => O({ class: `cursor-pointer py-3 px-4 text-base w-10 ${t.class
|
|
|
400
400
|
o({ class: `w-full rounded-md ${e} overflow-x-auto` }, [
|
|
401
401
|
Q({ class: "w-full" }, [
|
|
402
402
|
// @ts-ignore
|
|
403
|
-
this.headers &&
|
|
403
|
+
this.headers && ge({ headers: this.headers, sort: (s) => this.sortRows(s) }),
|
|
404
404
|
// @ts-ignore
|
|
405
405
|
this.customHeader ?? null,
|
|
406
|
-
|
|
406
|
+
fe({
|
|
407
407
|
// @ts-ignore
|
|
408
408
|
key: this.key,
|
|
409
409
|
rows: t,
|
|
@@ -514,7 +514,7 @@ const he = (t) => O({ class: `cursor-pointer py-3 px-4 text-base w-10 ${t.class
|
|
|
514
514
|
dataSet: ["selected", ["state", !0, "active"]],
|
|
515
515
|
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`
|
|
516
516
|
});
|
|
517
|
-
class et extends
|
|
517
|
+
class et extends g {
|
|
518
518
|
/**
|
|
519
519
|
* This will declare the props for the compiler.
|
|
520
520
|
*
|
|
@@ -630,7 +630,7 @@ const tt = u((t) => {
|
|
|
630
630
|
])
|
|
631
631
|
]);
|
|
632
632
|
});
|
|
633
|
-
class N extends
|
|
633
|
+
class N extends g {
|
|
634
634
|
/**
|
|
635
635
|
* This will declare the props for the compiler.
|
|
636
636
|
*
|
|
@@ -1014,7 +1014,7 @@ const Le = u(({ index: t, click: e, state: s }, a) => D({
|
|
|
1014
1014
|
), Oe = (t, e) => (t.callBack = e, We(t)), Pe = (t) => S({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
|
|
1015
1015
|
b({ class: "flex flex-auto flex-row", map: [t.options, (e) => Oe(e, t.callBack)] })
|
|
1016
1016
|
]);
|
|
1017
|
-
class it extends
|
|
1017
|
+
class it extends g {
|
|
1018
1018
|
/**
|
|
1019
1019
|
* This will declare the props for the compiler.
|
|
1020
1020
|
*
|
|
@@ -1118,7 +1118,7 @@ const Re = (t) => D(
|
|
|
1118
1118
|
), Me = (t, e) => (t.callBack = e, Re(t)), ze = (t) => S({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
|
|
1119
1119
|
b({ class: "flex flex-auto flex-row", map: [t.options, (e) => Me(e, t.callBack)] })
|
|
1120
1120
|
]);
|
|
1121
|
-
class ot extends
|
|
1121
|
+
class ot extends g {
|
|
1122
1122
|
/**
|
|
1123
1123
|
* This will declare the props for the compiler.
|
|
1124
1124
|
*
|
|
@@ -1171,7 +1171,7 @@ const Ne = (t, e) => new RegExp(`${t}($|/|\\.).*`).test(e), $e = (t, e) => {
|
|
|
1171
1171
|
dataSet: ["selected", ["state", !0, "active"]],
|
|
1172
1172
|
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"
|
|
1173
1173
|
});
|
|
1174
|
-
class je extends
|
|
1174
|
+
class je extends g {
|
|
1175
1175
|
/**
|
|
1176
1176
|
* This will declare the props for the compiler.
|
|
1177
1177
|
*
|
|
@@ -1266,7 +1266,7 @@ class je extends f {
|
|
|
1266
1266
|
this.links = [];
|
|
1267
1267
|
}
|
|
1268
1268
|
}
|
|
1269
|
-
class lt extends
|
|
1269
|
+
class lt extends g {
|
|
1270
1270
|
/**
|
|
1271
1271
|
* This will declare the props for the compiler.
|
|
1272
1272
|
*
|
|
@@ -1312,7 +1312,7 @@ class lt extends f {
|
|
|
1312
1312
|
return s;
|
|
1313
1313
|
}
|
|
1314
1314
|
}
|
|
1315
|
-
class Ue extends
|
|
1315
|
+
class Ue extends g {
|
|
1316
1316
|
/**
|
|
1317
1317
|
* Runs before rendering, sets up defaults, a timer for drawing,
|
|
1318
1318
|
* and basic canvas properties.
|
|
@@ -1461,7 +1461,7 @@ class Ue extends f {
|
|
|
1461
1461
|
const e = this.canvas, s = this.container, a = I.getSize(s), n = this.targetSize, i = n.width, l = n.height;
|
|
1462
1462
|
let d = i + "px", c = l + "px";
|
|
1463
1463
|
if (this.width = e.width = i, this.height = e.height = l, a.width !== 0 && a.height !== 0) {
|
|
1464
|
-
const h = a.width,
|
|
1464
|
+
const h = a.width, f = a.height, r = h / i, p = f / l, x = Math.min(r, p);
|
|
1465
1465
|
d = i * x + "px", c = l * x + "px";
|
|
1466
1466
|
}
|
|
1467
1467
|
e.style.width = d, e.style.height = c;
|
|
@@ -1538,7 +1538,7 @@ class Ue extends f {
|
|
|
1538
1538
|
this.timer.stop(), this.status = "stopped";
|
|
1539
1539
|
}
|
|
1540
1540
|
}
|
|
1541
|
-
class rt extends
|
|
1541
|
+
class rt extends g {
|
|
1542
1542
|
/**
|
|
1543
1543
|
* Sets up default properties for the signature panel.
|
|
1544
1544
|
*
|
|
@@ -1547,15 +1547,6 @@ class rt extends f {
|
|
|
1547
1547
|
setupProps() {
|
|
1548
1548
|
this.data = null, this.lineColor = null, this.lineWidth = null, this.baseLineWidth = null, this.baseStrokeColor = null, this.margin = null, this.targetSize = null, this.callBackData = null, this.pointerUp = null, this.path = null, this.canvasLayer = null;
|
|
1549
1549
|
}
|
|
1550
|
-
/**
|
|
1551
|
-
* This will run once the component is created, before rendering.
|
|
1552
|
-
* Sets a default line color if not provided.
|
|
1553
|
-
*
|
|
1554
|
-
* @returns {void}
|
|
1555
|
-
*/
|
|
1556
|
-
onCreated() {
|
|
1557
|
-
this.lineColor = this.lineColor || "#00aeef";
|
|
1558
|
-
}
|
|
1559
1550
|
/**
|
|
1560
1551
|
* Renders the main layout for the signature panel,
|
|
1561
1552
|
* including a hidden input and a reset button.
|
|
@@ -1628,14 +1619,14 @@ class rt extends f {
|
|
|
1628
1619
|
export {
|
|
1629
1620
|
tt as B,
|
|
1630
1621
|
he as C,
|
|
1631
|
-
|
|
1622
|
+
fe as D,
|
|
1632
1623
|
ue as H,
|
|
1633
1624
|
at as I,
|
|
1634
1625
|
et as N,
|
|
1635
1626
|
N as O,
|
|
1636
1627
|
Ke as P,
|
|
1637
1628
|
nt as S,
|
|
1638
|
-
|
|
1629
|
+
ge as T,
|
|
1639
1630
|
ve as U,
|
|
1640
1631
|
Ve as W,
|
|
1641
1632
|
ie as a,
|
package/package.json
CHANGED