@base-framework/ui 1.0.228 → 1.0.229
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-B1BZiFct.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-B1BZiFct.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,5 +1,5 @@
|
|
|
1
1
|
import { Button as S, Div as o, On as w, Span as C, OnState as K, Th as F, UseParent as G, I as J, Thead as _, Tr as V, Table as P, P as x, Li as I, Time as Z, Nav as M, Ul as k, Section as H, Canvas as tt } from "@base-framework/atoms";
|
|
2
|
-
import { Atom as f, Component as g, Data as L, DateTime as $, router as D, NavLink as U, DataTracker as E, Jot as et, base as
|
|
2
|
+
import { Atom as f, Component as g, Data as L, DateTime as $, router as D, NavLink as U, DataTracker as E, Jot as et, base as O, Dom as N } from "@base-framework/base";
|
|
3
3
|
import { B as m, I as st } from "./buttons-Cm9etaEG.js";
|
|
4
4
|
import { Icons as b } from "./icons.es.js";
|
|
5
5
|
import { F as at, p as v, A as nt, P as it } from "./calendar-Bn55oWBo.js";
|
|
@@ -309,11 +309,11 @@ const j = ({ label: e, click: t }) => m(
|
|
|
309
309
|
variant: "icon",
|
|
310
310
|
icon: e === "Previous" ? b.chevron.single.left : b.chevron.single.right
|
|
311
311
|
}
|
|
312
|
-
), Dt = ({
|
|
313
|
-
m({ click:
|
|
314
|
-
m({ click:
|
|
315
|
-
j({ label: "Previous", click:
|
|
316
|
-
j({ label: "Next", click:
|
|
312
|
+
), Dt = ({ 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
|
+
m({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
|
|
314
|
+
m({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
|
|
315
|
+
j({ label: "Previous", click: a }),
|
|
316
|
+
j({ label: "Next", click: s })
|
|
317
317
|
]), St = (e) => o({ class: "h-9 flex items-center justify-center font-medium" }, e), Ct = () => o(
|
|
318
318
|
{ class: "grid grid-cols-7 gap-1 text-center text-xs font-medium text-muted-foreground mb-2" },
|
|
319
319
|
["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(St)
|
|
@@ -362,8 +362,6 @@ const j = ({ label: e, click: t }) => m(
|
|
|
362
362
|
);
|
|
363
363
|
}, Lt = f((e, t) => o({ class: "flex flex-auto flex-col" }, [
|
|
364
364
|
Dt({
|
|
365
|
-
monthName: e.monthName,
|
|
366
|
-
year: e.year,
|
|
367
365
|
onMonthClick: e.onMonthClick,
|
|
368
366
|
onYearClick: e.onYearClick,
|
|
369
367
|
next: e.next,
|
|
@@ -588,7 +586,7 @@ const $t = (e, t) => {
|
|
|
588
586
|
t.state.checked = !s;
|
|
589
587
|
}, Wt = (e) => F({ class: `cursor-pointer py-3 px-4 text-base w-10 ${e.class || ""}` }, [
|
|
590
588
|
G((t) => new ht({ class: "mr-2", onChange: (s, a) => $t(t, a) }))
|
|
591
|
-
]),
|
|
589
|
+
]), Ot = ({ align: e, sortable: t, key: s, label: a, sort: n, class: i }) => {
|
|
592
590
|
const l = e || "justify-start";
|
|
593
591
|
return F({
|
|
594
592
|
class: `cursor-pointer py-3 px-4 text-base ${i || ""}`,
|
|
@@ -604,7 +602,7 @@ const $t = (e, t) => {
|
|
|
604
602
|
class: "text-muted-foreground border-b",
|
|
605
603
|
map: [
|
|
606
604
|
e.headers,
|
|
607
|
-
(t) => t.label === "checkbox" ? Wt({ toggle: e.toggle }) :
|
|
605
|
+
(t) => t.label === "checkbox" ? Wt({ toggle: e.toggle }) : Ot({
|
|
608
606
|
align: t.align,
|
|
609
607
|
sortable: t.sortable,
|
|
610
608
|
key: t.key,
|
|
@@ -613,7 +611,7 @@ const $t = (e, t) => {
|
|
|
613
611
|
})
|
|
614
612
|
]
|
|
615
613
|
})
|
|
616
|
-
]),
|
|
614
|
+
]), Nt = ({ key: e, rows: t, selectRow: s, rowItem: a, emptyState: n }) => new ot({
|
|
617
615
|
cache: "list",
|
|
618
616
|
key: e,
|
|
619
617
|
items: t,
|
|
@@ -699,7 +697,7 @@ class Q extends g {
|
|
|
699
697
|
this.headers && W({ headers: this.headers, sort: (a) => this.sortRows(a) }),
|
|
700
698
|
// @ts-ignore
|
|
701
699
|
this.customHeader ?? null,
|
|
702
|
-
|
|
700
|
+
Nt({
|
|
703
701
|
// @ts-ignore
|
|
704
702
|
key: this.key,
|
|
705
703
|
rows: t,
|
|
@@ -1883,8 +1881,8 @@ class he extends g {
|
|
|
1883
1881
|
const { canvas: t, ctx: s } = this, a = t.toDataURL();
|
|
1884
1882
|
if (this.scale(), this.setupBackground(s), a !== "data:,") {
|
|
1885
1883
|
const n = new globalThis.Image();
|
|
1886
|
-
|
|
1887
|
-
s.drawImage(n, 0, 0),
|
|
1884
|
+
O.on("load", n, function i() {
|
|
1885
|
+
s.drawImage(n, 0, 0), O.off("load", n, i);
|
|
1888
1886
|
}), n.src = a;
|
|
1889
1887
|
}
|
|
1890
1888
|
this.draw();
|
|
@@ -1904,7 +1902,7 @@ class he extends g {
|
|
|
1904
1902
|
* @returns {void}
|
|
1905
1903
|
*/
|
|
1906
1904
|
noScaleResize() {
|
|
1907
|
-
const t =
|
|
1905
|
+
const t = N.getSize(container);
|
|
1908
1906
|
this.width = canvas.width = t.width, this.height = canvas.height = t.height;
|
|
1909
1907
|
}
|
|
1910
1908
|
/**
|
|
@@ -1914,7 +1912,7 @@ class he extends g {
|
|
|
1914
1912
|
* @returns {void}
|
|
1915
1913
|
*/
|
|
1916
1914
|
scale() {
|
|
1917
|
-
const t = this.canvas, s = this.container, a =
|
|
1915
|
+
const t = this.canvas, s = this.container, a = N.getSize(s), n = this.targetSize, i = n.width, l = n.height;
|
|
1918
1916
|
let r = i + "px", c = l + "px";
|
|
1919
1917
|
if (this.width = t.width = i, this.height = t.height = l, a.width !== 0 && a.height !== 0) {
|
|
1920
1918
|
const d = a.width, u = a.height, h = d / i, p = u / l, y = Math.min(h, p);
|
|
@@ -1994,7 +1992,7 @@ class he extends g {
|
|
|
1994
1992
|
this.timer.stop(), this.status = "stopped";
|
|
1995
1993
|
}
|
|
1996
1994
|
}
|
|
1997
|
-
class
|
|
1995
|
+
class Oe extends g {
|
|
1998
1996
|
/**
|
|
1999
1997
|
* Sets up default properties for the signature panel.
|
|
2000
1998
|
*
|
|
@@ -2075,8 +2073,8 @@ class Ne extends g {
|
|
|
2075
2073
|
export {
|
|
2076
2074
|
Le as B,
|
|
2077
2075
|
Wt as C,
|
|
2078
|
-
|
|
2079
|
-
|
|
2076
|
+
Nt as D,
|
|
2077
|
+
Ot as H,
|
|
2080
2078
|
Be as I,
|
|
2081
2079
|
Me as N,
|
|
2082
2080
|
X as O,
|
|
@@ -2105,5 +2103,5 @@ export {
|
|
|
2105
2103
|
$e as q,
|
|
2106
2104
|
de as r,
|
|
2107
2105
|
We as s,
|
|
2108
|
-
|
|
2106
|
+
Oe as t
|
|
2109
2107
|
};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
export function CalendarHeader({
|
|
2
|
-
monthName: string;
|
|
3
|
-
year: number;
|
|
1
|
+
export function CalendarHeader({ onMonthClick, onYearClick, next, previous }: {
|
|
4
2
|
onMonthClick: Function;
|
|
5
3
|
onYearClick: Function;
|
|
6
4
|
next: Function;
|
package/package.json
CHANGED