@base-framework/ui 1.0.282 → 1.0.283
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 { C as F, d as P, D as B, c as k, E as M, F as f, H as x, I as N, M as v,
|
|
|
5
5
|
import { Icons as G } from "./icons.es.js";
|
|
6
6
|
import { A as E, B as V, C as j, w as q, J, y as z, z as K, E as Q, G as _, D as X, m as Y, n as Z, O as $, K as aa, v as ea, c as sa, a as oa, b as ta, Q as ra, l as na, g as la, i as ia, h as pa, j as ma, e as ua, k as da, F as ga, d as Ca, f as ca, L as Ta, x as Da, M as Ia, o as ba, N as Sa, P as Fa, s as Pa, t as Ba, S as ka, q as Ma, r as fa, T as xa, H as Na, I as va, p as ya, u as ha } from "./empty-state-CPWpkmxa.js";
|
|
7
7
|
import { A as Wa, b as Ha, C as Aa, D as Ra, a as wa, F as Ua, M as Ga, P as Oa, R as Ea, c as Va, g as ja, p as qa } from "./range-calendar-DW0cMOJy.js";
|
|
8
|
-
import { B as za, p as Ka, C as Qa, j as _a, D as Xa, m as Ya, k as Za, H as $a, I as ae, N as ee, O as se, P as oe, S as te, n as re, o as ne, t as le, s as ie, q as pe, r as me, T as ue, l as de, U as ge, W as Ce, f as ce, h as Te, i as De, c as Ie, d as be, b as Se, e as Fe, a as Pe, g as Be } from "./signature-panel-
|
|
8
|
+
import { B as za, p as Ka, C as Qa, j as _a, D as Xa, m as Ya, k as Za, H as $a, I as ae, N as ee, O as se, P as oe, S as te, n as re, o as ne, t as le, s as ie, q as pe, r as me, T as ue, l as de, U as ge, W as Ce, f as ce, h as Te, i as De, c as Ie, d as be, b as Se, e as Fe, a as Pe, g as Be } from "./signature-panel-BEO99NlI.js";
|
|
9
9
|
import { B as Me, I as fe, M as xe, d as Ne, e as ve, g as ye, N as he, b as Le, a as We, f as He, P as Ae, c as Re, S as we, T as Ue } from "./mobile-nav-wrapper-C7RyGC5a.js";
|
|
10
10
|
import { B as Oe, a as Ee, C as Ve, F as je, b as qe, c as Je, M as ze, P as Ke, S as Qe } from "./sidebar-menu-page-BtUJdw-T.js";
|
|
11
11
|
import { A as Xe, F as Ye, M as Ze, a as $e, T as as } 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, S as v, n as D, o as N, t as k, s as C, q as c, r as T, T as M, l as m, U as y, W as B, f as W, h, i as S, c as H, d as P, b as I, e as f, a as x, g as L } 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, S as v, n as D, o as N, t as k, s as C, q as c, r as T, T as M, l as m, U as y, W as B, f as W, h, i as S, c as H, d as P, b as I, e as f, a as x, g as L } from "./signature-panel-BEO99NlI.js";
|
|
2
2
|
import { b as F, C as U, D as G, a as R, F as j, M as q, R as w, c as z, p as A } from "./range-calendar-DW0cMOJy.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-C7RyGC5a.js";
|
|
4
4
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Button as x, Div as o, On as v, Span as D, Th as O, UseParent as F, I as E, Thead as Q, Tr as X, Table as I, P as p, Li as S, Time as q, Nav as C, Ul as
|
|
1
|
+
import { Button as x, Div as o, On as v, Span as D, Th as O, UseParent as F, I as E, Thead as Q, Tr as X, Table as I, P as p, Li as S, Time as q, Nav as C, Ul as w, Section as z, Canvas as K } from "@base-framework/atoms";
|
|
2
2
|
import { Atom as h, Component as u, Data as L, DateTime as G, router as y, NavLink as $, DataTracker as N, Jot as V, base as M, Dom as R } from "@base-framework/base";
|
|
3
3
|
import { B as T, I as _ } from "./buttons-BKLL4I6r.js";
|
|
4
4
|
import { Icons as k } from "./icons.es.js";
|
|
@@ -95,7 +95,7 @@ const re = (t) => {
|
|
|
95
95
|
}, me = (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, g) => new Date(t, e, g + 1)), l = (i.length + n.length) % 7, d = l === 0 ? 0 : 7 - l, c = he(t, e, d), f = [...i, ...n, ...c], m = [];
|
|
97
97
|
for (let r = 0; r < f.length; r += 7) {
|
|
98
|
-
const g = f.slice(r, r + 7),
|
|
98
|
+
const g = f.slice(r, r + 7), b = g.find((Y) => Y) || new Date(t, e, 1), { weekNumber: H, year: U } = ce(b);
|
|
99
99
|
m.push({
|
|
100
100
|
weekNumber: H,
|
|
101
101
|
year: U,
|
|
@@ -296,11 +296,11 @@ class ot extends u {
|
|
|
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) => O({ 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 O({
|
|
@@ -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,
|
|
@@ -506,7 +506,7 @@ class j extends u {
|
|
|
506
506
|
this.data.selectedRows = [];
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
|
-
const xe = (t) => Z({
|
|
509
|
+
const xe = (t) => new Z({
|
|
510
510
|
cache: "list",
|
|
511
511
|
loadMoreItems: t.loadMoreItems,
|
|
512
512
|
offset: t.offset,
|
|
@@ -736,7 +736,7 @@ class dt extends u {
|
|
|
736
736
|
return C(
|
|
737
737
|
{ class: `flex items-center justify-center p-2 text-muted-foreground rounded-md ${this.class || ""}` },
|
|
738
738
|
[
|
|
739
|
-
|
|
739
|
+
w({
|
|
740
740
|
class: "flex space-x-4",
|
|
741
741
|
map: [this.options, (e) => this.addLink(e)],
|
|
742
742
|
watch: {
|
|
@@ -1046,7 +1046,7 @@ const ze = h(({ index: t, click: e, state: s }, a) => S({
|
|
|
1046
1046
|
}]
|
|
1047
1047
|
],
|
|
1048
1048
|
click: () => e(t)
|
|
1049
|
-
}, a)), $e = h(({ selectOption: t, state: e }) =>
|
|
1049
|
+
}, a)), $e = h(({ selectOption: t, state: e }) => w({
|
|
1050
1050
|
class: "border rounded-md list-none m-0 p-0 max-h-[400px] overflow-y-auto",
|
|
1051
1051
|
for: ["filteredOptions", (s, a) => ze({ index: a, click: t, state: e }, s.label)]
|
|
1052
1052
|
})), Ne = h((t) => o({ class: "relative flex items-center" }, [
|
|
@@ -1214,7 +1214,7 @@ const ze = h(({ index: t, click: e, state: s }, a) => S({
|
|
|
1214
1214
|
}, t.label)
|
|
1215
1215
|
]
|
|
1216
1216
|
), He = (t, e) => (t.callBack = e, Ae(t)), Ue = (t) => C({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
|
|
1217
|
-
|
|
1217
|
+
w({ class: "flex flex-auto flex-row", map: [t.options, (e) => He(e, t.callBack)] })
|
|
1218
1218
|
]);
|
|
1219
1219
|
class gt extends u {
|
|
1220
1220
|
/**
|
|
@@ -1318,7 +1318,7 @@ const Ye = (t) => S(
|
|
|
1318
1318
|
}, t.label)
|
|
1319
1319
|
]
|
|
1320
1320
|
), Fe = (t, e) => (t.callBack = e, Ye(t)), Ee = (t) => C({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
|
|
1321
|
-
|
|
1321
|
+
w({ class: "flex flex-auto flex-row", map: [t.options, (e) => Fe(e, t.callBack)] })
|
|
1322
1322
|
]);
|
|
1323
1323
|
class pt extends u {
|
|
1324
1324
|
/**
|
|
@@ -1395,7 +1395,7 @@ class Ke extends u {
|
|
|
1395
1395
|
*/
|
|
1396
1396
|
render() {
|
|
1397
1397
|
return C({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${this.class}` }, [
|
|
1398
|
-
|
|
1398
|
+
w({
|
|
1399
1399
|
class: "flex flex-auto flex-row",
|
|
1400
1400
|
map: [this.options, (e) => this.addLink(e)],
|
|
1401
1401
|
watch: {
|
|
@@ -1468,7 +1468,7 @@ class Ke extends u {
|
|
|
1468
1468
|
this.links = [];
|
|
1469
1469
|
}
|
|
1470
1470
|
}
|
|
1471
|
-
class
|
|
1471
|
+
class wt extends u {
|
|
1472
1472
|
/**
|
|
1473
1473
|
* This will declare the props for the compiler.
|
|
1474
1474
|
*
|
|
@@ -1663,8 +1663,8 @@ class Ge extends u {
|
|
|
1663
1663
|
const e = this.canvas, s = this.container, a = R.getSize(s), i = this.targetSize, n = i.width, l = i.height;
|
|
1664
1664
|
let d = n + "px", c = l + "px";
|
|
1665
1665
|
if (this.width = e.width = n, this.height = e.height = l, a.width !== 0 && a.height !== 0) {
|
|
1666
|
-
const f = a.width, m = a.height, r = f / n, g = m / l,
|
|
1667
|
-
d = n *
|
|
1666
|
+
const f = a.width, m = a.height, r = f / n, g = m / l, b = Math.min(r, g);
|
|
1667
|
+
d = n * b + "px", c = l * b + "px";
|
|
1668
1668
|
}
|
|
1669
1669
|
e.style.width = d, e.style.height = c;
|
|
1670
1670
|
}
|
|
@@ -1740,7 +1740,7 @@ class Ge extends u {
|
|
|
1740
1740
|
this.timer.stop(), this.status = "stopped";
|
|
1741
1741
|
}
|
|
1742
1742
|
}
|
|
1743
|
-
class
|
|
1743
|
+
class bt extends u {
|
|
1744
1744
|
/**
|
|
1745
1745
|
* Sets up default properties for the signature panel.
|
|
1746
1746
|
*
|
|
@@ -1820,7 +1820,7 @@ class wt extends u {
|
|
|
1820
1820
|
}
|
|
1821
1821
|
export {
|
|
1822
1822
|
ht as B,
|
|
1823
|
-
|
|
1823
|
+
be as C,
|
|
1824
1824
|
ke as D,
|
|
1825
1825
|
ye as H,
|
|
1826
1826
|
ft as I,
|
|
@@ -1849,6 +1849,6 @@ export {
|
|
|
1849
1849
|
gt as p,
|
|
1850
1850
|
pt as q,
|
|
1851
1851
|
Ke as r,
|
|
1852
|
-
|
|
1853
|
-
|
|
1852
|
+
wt as s,
|
|
1853
|
+
bt as t
|
|
1854
1854
|
};
|
package/package.json
CHANGED