@base-framework/ui 1.0.173 → 1.0.175
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/icons.es.js
CHANGED
|
@@ -535,7 +535,7 @@ const o = {
|
|
|
535
535
|
link: `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6">
|
|
536
536
|
<path stroke-linecap="round" stroke-linejoin="round" d="M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244" />
|
|
537
537
|
</svg>`,
|
|
538
|
-
|
|
538
|
+
magnifyingGlass: {
|
|
539
539
|
default: `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6">
|
|
540
540
|
<path stroke-linecap="round" stroke-linejoin="round" d="m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z" />
|
|
541
541
|
</svg>`,
|
package/dist/index.es.js
CHANGED
|
@@ -5,7 +5,7 @@ import { V as w, a as U } from "./veil-D4dRxILB.js";
|
|
|
5
5
|
import { Icons as O } from "./icons.es.js";
|
|
6
6
|
import { A as G, 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 sa, a as ea, b as oa, i as ta, g as ra, e as na, h as ia, F as la, d as pa, f as ua, u as ma, M as da, l as ga, N as Ta, P as ca, p as Ca, q as Da, S as ba, n as Sa, o as Ia, T as Ba, y as Pa, z as Fa, m as Ma, r as ka } from "./confirmation-RwpuUtXL.js";
|
|
7
7
|
import { A as va, b as fa, C as xa, D as ya, a as ha, F as Wa, M as Ha, P as La, c as Aa, g as wa, p as Ua } from "./calendar-DQXME-2u.js";
|
|
8
|
-
import { B as Oa, o as Ea, C as Ga, j as Va, D as ja, m as qa, k as za, H as Ja, I as _a, N as Ka, O as Qa, P as Xa, S as Ya, n as Za, s as $a, r as as, p as ss, q as es, T as os, l as ts, U as rs, W as ns, f as is, h as ls, i as ps, c as us, d as ms, b as ds, e as gs, a as Ts, g as cs } from "./signature-panel-
|
|
8
|
+
import { B as Oa, o as Ea, C as Ga, j as Va, D as ja, m as qa, k as za, H as Ja, I as _a, N as Ka, O as Qa, P as Xa, S as Ya, n as Za, s as $a, r as as, p as ss, q as es, T as os, l as ts, U as rs, W as ns, f as is, h as ls, i as ps, c as us, d as ms, b as ds, e as gs, a as Ts, g as cs } from "./signature-panel-Trl07yzf.js";
|
|
9
9
|
import { B as Ds, I as bs, M as Ss, d as Is, e as Bs, g as Ps, N as Fs, b as Ms, a as ks, f as Ns, P as vs, c as fs, S as xs, T as ys } from "./mobile-nav-wrapper-Dj67Pb8l.js";
|
|
10
10
|
import { B as Ws, a as Hs, C as Ls, F as As, b as ws, c as Us, M as Rs, P as Os, S as Es } from "./sidebar-menu-page-BVryQj2Z.js";
|
|
11
11
|
import { A as Vs, F as js, M as qs, a as zs, T as Js } from "./aside-template-McEj_Gxc.js";
|
package/dist/organisms.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as s, o as t, C as o, j as r, D as l, m as n, k as i, H as b, I as d, N as v, O as D, P as g, S as p, n as u, s as N, r as k, p as C, q as T, T as c, l as M, U as m, W as y, f as B, h as W, i as h, c as H, d as P, b as S, e as f, a as x, g as I } from "./signature-panel-
|
|
1
|
+
import { B as s, o as t, C as o, j as r, D as l, m as n, k as i, H as b, I as d, N as v, O as D, P as g, S as p, n as u, s as N, r as k, p as C, q as T, T as c, l as M, U as m, W as y, f as B, h as W, i as h, c as H, d as P, b as S, e as f, a as x, g as I } from "./signature-panel-Trl07yzf.js";
|
|
2
2
|
import { b as O, C as F, D as U, a as G, F as j, M as q, c as w, p as z } from "./calendar-DQXME-2u.js";
|
|
3
3
|
import { B as E, I as J, M as K, d as Q, e as R, g as V, N as X, b as Y, a as Z, f as _, P as $, c as aa, S as ea, T as sa } from "./mobile-nav-wrapper-Dj67Pb8l.js";
|
|
4
4
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Button as x, Div as o, On as H, Span as v, Th as P, UseParent as F, I as E, Thead as Q, Tr as X, Table as I, P as p, Li as D, Time as q, Nav as S, Ul as
|
|
1
|
+
import { Button as x, Div as o, On as H, Span as v, Th as P, UseParent as F, I as E, Thead as Q, Tr as X, Table as I, P as p, Li as D, Time as q, Nav as S, Ul as w, Section as O, Canvas as K } from "@base-framework/atoms";
|
|
2
2
|
import { Atom as d, Component as h, Data as L, DateTime as G, router as y, NavLink as z, DataTracker as $, Jot as V, base as B, Dom as M } from "@base-framework/base";
|
|
3
3
|
import { B as C, I as _ } from "./buttons-Cm9etaEG.js";
|
|
4
4
|
import { Icons as k } from "./icons.es.js";
|
|
@@ -95,7 +95,7 @@ const re = (t) => {
|
|
|
95
95
|
}, ge = (t, e) => {
|
|
96
96
|
const s = new Date(t, e, 1).getDay(), a = new Date(t, e + 1, 0).getDate(), i = de(t, e, s), n = Array.from({ length: a }, (r, m) => new Date(t, e, m + 1)), l = (i.length + n.length) % 7, u = l === 0 ? 0 : 7 - l, c = he(t, e, u), f = [...i, ...n, ...c], g = [];
|
|
97
97
|
for (let r = 0; r < f.length; r += 7) {
|
|
98
|
-
const m = f.slice(r, r + 7),
|
|
98
|
+
const m = f.slice(r, r + 7), b = m.find((Y) => Y) || new Date(t, e, 1), { weekNumber: A, year: U } = ce(b);
|
|
99
99
|
g.push({
|
|
100
100
|
weekNumber: A,
|
|
101
101
|
year: U,
|
|
@@ -296,11 +296,11 @@ class ot extends h {
|
|
|
296
296
|
]);
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
|
-
const
|
|
299
|
+
const we = (t, e) => {
|
|
300
300
|
const s = t.toggleAllSelectedRows();
|
|
301
301
|
e.state.checked = !s;
|
|
302
|
-
},
|
|
303
|
-
F((e) => new ae({ class: "mr-2", onChange: (s, a) =>
|
|
302
|
+
}, be = (t) => P({ class: `cursor-pointer py-3 px-4 text-base w-10 ${t.class || ""}` }, [
|
|
303
|
+
F((e) => new ae({ class: "mr-2", onChange: (s, a) => we(e, a) }))
|
|
304
304
|
]), ye = ({ align: t, sortable: e, key: s, label: a, sort: i, class: n }) => {
|
|
305
305
|
const l = t || "justify-start";
|
|
306
306
|
return P({
|
|
@@ -317,7 +317,7 @@ const be = (t, e) => {
|
|
|
317
317
|
class: "text-muted-foreground border-b",
|
|
318
318
|
map: [
|
|
319
319
|
t.headers,
|
|
320
|
-
(e) => e.label === "checkbox" ?
|
|
320
|
+
(e) => e.label === "checkbox" ? be({ toggle: t.toggle }) : ye({
|
|
321
321
|
align: e.align,
|
|
322
322
|
sortable: e.sortable,
|
|
323
323
|
key: e.key,
|
|
@@ -692,7 +692,7 @@ class dt extends h {
|
|
|
692
692
|
return S(
|
|
693
693
|
{ class: `flex items-center justify-center p-2 text-muted-foreground rounded-md ${this.class || ""}` },
|
|
694
694
|
[
|
|
695
|
-
|
|
695
|
+
w({
|
|
696
696
|
class: "flex space-x-4",
|
|
697
697
|
map: [this.options, (e) => this.addLink(e)],
|
|
698
698
|
watch: {
|
|
@@ -1002,19 +1002,23 @@ const ze = d(({ index: t, click: e, state: s }, a) => D({
|
|
|
1002
1002
|
}]
|
|
1003
1003
|
],
|
|
1004
1004
|
click: () => e(t)
|
|
1005
|
-
}, a)), $e = d(({ selectOption: t, state: e }) =>
|
|
1005
|
+
}, a)), $e = d(({ selectOption: t, state: e }) => w({
|
|
1006
1006
|
class: "border rounded-md list-none m-0 p-0 max-h-[400px] overflow-y-auto",
|
|
1007
1007
|
for: ["filteredOptions", (s, a) => ze({ index: a, click: t, state: e }, s.label)]
|
|
1008
1008
|
})), Ne = d((t) => o({ class: "relative flex items-center" }, [
|
|
1009
1009
|
ie({
|
|
1010
1010
|
cache: "input",
|
|
1011
1011
|
placeholder: t.placeholder ?? "Search...",
|
|
1012
|
-
bind: [t.state, "searchQuery"],
|
|
1012
|
+
bind: t.bind || [t.state, "searchQuery"],
|
|
1013
1013
|
keyup: (e, s) => {
|
|
1014
|
-
s.state.open = !
|
|
1014
|
+
s.state && (s.state.open = !1), typeof t.filterOptions == "function" && t.filterOptions(), s.dropdown && s.dropdown.updatePosition(), t.keyup && t.keyup(e, s);
|
|
1015
1015
|
},
|
|
1016
|
-
pointerup: (e, s) =>
|
|
1017
|
-
|
|
1016
|
+
pointerup: (e, s) => {
|
|
1017
|
+
typeof s.toggleDropdown == "function" && s.toggleDropdown();
|
|
1018
|
+
},
|
|
1019
|
+
keydown: (e) => [
|
|
1020
|
+
typeof t.handleKeyDown == "function" && t.handleKeyDown(e)
|
|
1021
|
+
]
|
|
1018
1022
|
}),
|
|
1019
1023
|
t.icon && o({ class: "absolute right-0 mr-2" }, [
|
|
1020
1024
|
_(t.icon)
|
|
@@ -1165,7 +1169,7 @@ const ze = d(({ index: t, click: e, state: s }, a) => D({
|
|
|
1165
1169
|
}, t.label)
|
|
1166
1170
|
]
|
|
1167
1171
|
), Ue = (t, e) => (t.callBack = e, Ae(t)), Ye = (t) => S({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
|
|
1168
|
-
|
|
1172
|
+
w({ class: "flex flex-auto flex-row", map: [t.options, (e) => Ue(e, t.callBack)] })
|
|
1169
1173
|
]);
|
|
1170
1174
|
class mt extends h {
|
|
1171
1175
|
/**
|
|
@@ -1269,7 +1273,7 @@ const He = (t) => D(
|
|
|
1269
1273
|
}, t.label)
|
|
1270
1274
|
]
|
|
1271
1275
|
), Fe = (t, e) => (t.callBack = e, He(t)), Ee = (t) => S({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
|
|
1272
|
-
|
|
1276
|
+
w({ class: "flex flex-auto flex-row", map: [t.options, (e) => Fe(e, t.callBack)] })
|
|
1273
1277
|
]);
|
|
1274
1278
|
class pt extends h {
|
|
1275
1279
|
/**
|
|
@@ -1346,7 +1350,7 @@ class Ke extends h {
|
|
|
1346
1350
|
*/
|
|
1347
1351
|
render() {
|
|
1348
1352
|
return S({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${this.class}` }, [
|
|
1349
|
-
|
|
1353
|
+
w({
|
|
1350
1354
|
class: "flex flex-auto flex-row",
|
|
1351
1355
|
map: [this.options, (e) => this.addLink(e)],
|
|
1352
1356
|
watch: {
|
|
@@ -1419,7 +1423,7 @@ class Ke extends h {
|
|
|
1419
1423
|
this.links = [];
|
|
1420
1424
|
}
|
|
1421
1425
|
}
|
|
1422
|
-
class
|
|
1426
|
+
class wt extends h {
|
|
1423
1427
|
/**
|
|
1424
1428
|
* This will declare the props for the compiler.
|
|
1425
1429
|
*
|
|
@@ -1614,8 +1618,8 @@ class Ge extends h {
|
|
|
1614
1618
|
const e = this.canvas, s = this.container, a = M.getSize(s), i = this.targetSize, n = i.width, l = i.height;
|
|
1615
1619
|
let u = n + "px", c = l + "px";
|
|
1616
1620
|
if (this.width = e.width = n, this.height = e.height = l, a.width !== 0 && a.height !== 0) {
|
|
1617
|
-
const f = a.width, g = a.height, r = f / n, m = g / l,
|
|
1618
|
-
u = n *
|
|
1621
|
+
const f = a.width, g = a.height, r = f / n, m = g / l, b = Math.min(r, m);
|
|
1622
|
+
u = n * b + "px", c = l * b + "px";
|
|
1619
1623
|
}
|
|
1620
1624
|
e.style.width = u, e.style.height = c;
|
|
1621
1625
|
}
|
|
@@ -1691,7 +1695,7 @@ class Ge extends h {
|
|
|
1691
1695
|
this.timer.stop(), this.status = "stopped";
|
|
1692
1696
|
}
|
|
1693
1697
|
}
|
|
1694
|
-
class
|
|
1698
|
+
class bt extends h {
|
|
1695
1699
|
/**
|
|
1696
1700
|
* Sets up default properties for the signature panel.
|
|
1697
1701
|
*
|
|
@@ -1771,7 +1775,7 @@ class wt extends h {
|
|
|
1771
1775
|
}
|
|
1772
1776
|
export {
|
|
1773
1777
|
ht as B,
|
|
1774
|
-
|
|
1778
|
+
be as C,
|
|
1775
1779
|
ke as D,
|
|
1776
1780
|
ye as H,
|
|
1777
1781
|
ft as I,
|
|
@@ -1799,6 +1803,6 @@ export {
|
|
|
1799
1803
|
mt as o,
|
|
1800
1804
|
pt as p,
|
|
1801
1805
|
Ke as q,
|
|
1802
|
-
|
|
1803
|
-
|
|
1806
|
+
wt as r,
|
|
1807
|
+
bt as s
|
|
1804
1808
|
};
|
package/package.json
CHANGED