@base-framework/ui 1.1.17 → 1.1.19
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/{buttons-HW55zbqy.js → buttons-D81gnapb.js} +32 -32
- package/dist/{empty-state-BTmefeHC.js → empty-state-ChjK4l3n.js} +4 -4
- package/dist/{format-BmrNQptv.js → format-DE4rFWuD.js} +43 -25
- package/dist/index.es.js +8 -8
- package/dist/{mobile-nav-wrapper-DmrkMxyd.js → mobile-nav-wrapper-DyBtZhx2.js} +1 -1
- package/dist/molecules.es.js +2 -2
- package/dist/organisms.es.js +4 -4
- package/dist/pages.es.js +1 -1
- package/dist/{sidebar-menu-C5s4Cogh.js → sidebar-menu-D5TdjR_H.js} +1 -1
- package/dist/{sidebar-menu-page-DwqCqwzG.js → sidebar-menu-page-DSILzVNU.js} +2 -2
- package/dist/{signature-panel-CbzCU4y4.js → signature-panel-dsvVvBEM.js} +2 -2
- package/dist/{simple-search-input-mCUOwYbp.js → simple-search-input-DKPm8m2G.js} +1 -1
- package/dist/types/utils/format/format.d.ts +13 -3
- package/dist/utils.es.js +1 -1
- package/package.json +1 -1
package/dist/atoms.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as e, C as t, a as o, F as n, b as r, L as p, P as I, R as i, S as u, T as l } from "./tooltip-BmvjA9XQ.js";
|
|
2
|
-
import { B as m, I as c, L as T, M as g, U as x, i as B, a as C } from "./buttons-
|
|
2
|
+
import { B as m, I as c, L as T, M as g, U as x, i as B, a as C } from "./buttons-D81gnapb.js";
|
|
3
3
|
import { C as F, a as M, D as S, b, E as L, F as P, H as R, I as U, c as h, M as k, N as D, P as H, R as V, T as E, d as G, e as N, U as W, V as v, f as w, W as J } from "./image-BhZbKYDj.js";
|
|
4
4
|
import { S as q } from "./skeleton-BlY3opxG.js";
|
|
5
5
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as
|
|
1
|
+
import { I as y, Span as v, Button as o } from "@base-framework/atoms";
|
|
2
2
|
import { Atom as i } from "@base-framework/base";
|
|
3
|
-
import { Icons as
|
|
4
|
-
const
|
|
3
|
+
import { Icons as b } from "./icons.es.js";
|
|
4
|
+
const k = {
|
|
5
5
|
xs: "w-4 h-4",
|
|
6
6
|
sm: "w-6 h-6",
|
|
7
7
|
md: "w-8 h-8",
|
|
@@ -9,14 +9,14 @@ const v = {
|
|
|
9
9
|
xl: "w-12 h-12",
|
|
10
10
|
"2xl": "w-14 h-14",
|
|
11
11
|
"3xl": "w-16 h-16"
|
|
12
|
-
},
|
|
13
|
-
const t =
|
|
14
|
-
return
|
|
12
|
+
}, r = i((n, s) => {
|
|
13
|
+
const t = k[n.size || "sm"];
|
|
14
|
+
return y({
|
|
15
15
|
...n,
|
|
16
16
|
class: `stroke-current icon-size ${t} ${n.class || ""}`,
|
|
17
17
|
html: s[0]?.textContent
|
|
18
18
|
});
|
|
19
|
-
}),
|
|
19
|
+
}), u = {
|
|
20
20
|
xs: "w-4 h-4",
|
|
21
21
|
// 16px - matches Icon
|
|
22
22
|
sm: "w-6 h-6",
|
|
@@ -31,7 +31,7 @@ const v = {
|
|
|
31
31
|
// 56px - matches Icon
|
|
32
32
|
"3xl": "w-16 h-16"
|
|
33
33
|
// 64px - matches Icon
|
|
34
|
-
},
|
|
34
|
+
}, m = {
|
|
35
35
|
xs: "16px",
|
|
36
36
|
sm: "24px",
|
|
37
37
|
md: "32px",
|
|
@@ -39,43 +39,43 @@ const v = {
|
|
|
39
39
|
xl: "48px",
|
|
40
40
|
"2xl": "56px",
|
|
41
41
|
"3xl": "64px"
|
|
42
|
-
},
|
|
42
|
+
}, d = {
|
|
43
43
|
outlined: "material-symbols-outlined",
|
|
44
44
|
filled: "material-symbols-filled",
|
|
45
45
|
rounded: "material-symbols-rounded",
|
|
46
46
|
sharp: "material-symbols-sharp"
|
|
47
|
-
},
|
|
48
|
-
const s = n.size || "sm", t = n.variant || "outlined", l =
|
|
49
|
-
return
|
|
47
|
+
}, f = i((n) => {
|
|
48
|
+
const s = n.size || "sm", t = n.variant || "outlined", l = u[s] || u.sm, a = m[s] || m.sm, w = d[t] || d.outlined;
|
|
49
|
+
return v({
|
|
50
50
|
...n,
|
|
51
|
-
class: `inline-flex items-center justify-center ${
|
|
52
|
-
style: `font-size: ${
|
|
51
|
+
class: `inline-flex items-center justify-center ${w} ${l} ${n.class || ""}`,
|
|
52
|
+
style: `font-size: ${a}; ${n.style || ""}`,
|
|
53
53
|
// Remove props that shouldn't be passed to the DOM element
|
|
54
54
|
size: void 0,
|
|
55
55
|
variant: void 0,
|
|
56
56
|
name: void 0
|
|
57
57
|
}, n.name);
|
|
58
|
-
}),
|
|
58
|
+
}), c = (n = {}, s) => s ? typeof s == "string" && s.includes("<svg") ? r(n, s) : typeof s == "object" && s.name ? f({
|
|
59
59
|
...n,
|
|
60
60
|
name: s.name,
|
|
61
61
|
variant: s.variant || n.variant || "outlined"
|
|
62
|
-
}) : typeof s == "string" ?
|
|
62
|
+
}) : typeof s == "string" ? f({
|
|
63
63
|
...n,
|
|
64
64
|
name: s
|
|
65
|
-
}) :
|
|
65
|
+
}) : r(n, s) : null, U = (n) => n ? !!(typeof n == "object" && n.name || typeof n == "string" && !n.includes("<svg")) : !1, j = (n) => typeof n == "string" && n.includes("<svg"), e = (n) => i((s, t) => o({
|
|
66
66
|
...n,
|
|
67
67
|
...s,
|
|
68
68
|
class: `bttn ${n.class} ${s.class || ""}`
|
|
69
|
-
}, t)),
|
|
69
|
+
}, t)), x = i(
|
|
70
70
|
(n, s) => o({
|
|
71
71
|
...n,
|
|
72
72
|
class: n.class
|
|
73
73
|
}, [
|
|
74
|
-
n.icon && n.position !== "right" ?
|
|
74
|
+
n.icon && n.position !== "right" ? c({ size: "sm", class: n.animation ?? null }, n.icon) : null,
|
|
75
75
|
...s || [],
|
|
76
|
-
n.icon && n.position === "right" ?
|
|
76
|
+
n.icon && n.position === "right" ? c({ size: "sm", class: n.animation ?? null }, n.icon) : null
|
|
77
77
|
])
|
|
78
|
-
),
|
|
78
|
+
), h = (n) => i((s, t) => x({
|
|
79
79
|
...n,
|
|
80
80
|
...s,
|
|
81
81
|
class: `bttn ${n.class} ${s.class || ""}`
|
|
@@ -85,7 +85,7 @@ const v = {
|
|
|
85
85
|
return;
|
|
86
86
|
}
|
|
87
87
|
n.backUrl && app.navigate(n.backUrl);
|
|
88
|
-
}, $ = (n) => i((s, t) => (s.icon = s.icon ||
|
|
88
|
+
}, $ = (n) => i((s, t) => (s.icon = s.icon || b.arrows.left, s.click = s.click || z(s), x({
|
|
89
89
|
...n,
|
|
90
90
|
...s
|
|
91
91
|
}, t))), I = i((n, s) => {
|
|
@@ -95,15 +95,15 @@ const v = {
|
|
|
95
95
|
md: "w-10 h-10",
|
|
96
96
|
lg: "w-12 h-12",
|
|
97
97
|
xl: "w-14 h-14"
|
|
98
|
-
},
|
|
98
|
+
}, a = n.backgroundClass || "bg-background/30 hover:bg-background/50";
|
|
99
99
|
return o({
|
|
100
100
|
...n,
|
|
101
|
-
class: `circle-icon-btn inline-flex items-center justify-center rounded-full ${
|
|
101
|
+
class: `circle-icon-btn inline-flex items-center justify-center rounded-full ${a} text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ring-offset-background transition-colors disabled:pointer-events-none disabled:opacity-50 cursor-pointer ${l[t] || l.md} ${n.class || ""}`
|
|
102
102
|
}, [
|
|
103
|
-
n.icon ?
|
|
103
|
+
n.icon ? c({ size: t === "xs" ? "xs" : "sm" }, n.icon) : null,
|
|
104
104
|
...s || []
|
|
105
105
|
]);
|
|
106
|
-
}),
|
|
106
|
+
}), g = {
|
|
107
107
|
primary: e({ class: "primary" }),
|
|
108
108
|
secondary: e({ class: "secondary" }),
|
|
109
109
|
destructive: e({ class: "destructive" }),
|
|
@@ -111,17 +111,17 @@ const v = {
|
|
|
111
111
|
outline: e({ class: "outline" }),
|
|
112
112
|
ghost: e({ class: "ghost" }),
|
|
113
113
|
link: e({ class: "link" }),
|
|
114
|
-
icon:
|
|
115
|
-
withIcon:
|
|
114
|
+
icon: h({ class: "icon" }),
|
|
115
|
+
withIcon: h({ class: "with-icon" }),
|
|
116
116
|
back: $({ class: "with-icon back-button" }),
|
|
117
117
|
circleIcon: I
|
|
118
|
-
}, B = i((n, s) => (
|
|
118
|
+
}, B = i((n, s) => (g[n.variant] || g.primary)(n, s)), S = i((n, s) => B({ ...n, variant: "withIcon", icon: b.loading, animation: "animate-spin" }, s));
|
|
119
119
|
export {
|
|
120
120
|
B,
|
|
121
|
-
|
|
121
|
+
r as I,
|
|
122
122
|
S as L,
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
f as M,
|
|
124
|
+
c as U,
|
|
125
125
|
U as a,
|
|
126
126
|
j as i
|
|
127
127
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Atom as c, Component as y, Html as A, Dom as Z, base as tt, Data as k, Builder as H, Jot as w, Events as g, DateTime as M } from "@base-framework/base";
|
|
2
2
|
import { Div as n, H5 as et, P as b, Li as q, Span as a, Ul as V, Button as p, I as T, OnState as I, Label as P, H2 as v, Form as st, Header as B, Footer as L, A as G, H3 as ot, Checkbox as nt, Input as f, Img as W, Nav as it, UseParent as _, OnStateOpen as O, Time as rt, Dialog as lt } from "@base-framework/atoms";
|
|
3
|
-
import { P as S, C as at, R as ct } from "./simple-search-input-
|
|
4
|
-
import { U as m, B as h, I as dt } from "./buttons-
|
|
3
|
+
import { P as S, C as at, R as ct } from "./simple-search-input-DKPm8m2G.js";
|
|
4
|
+
import { U as m, B as h, I as dt } from "./buttons-D81gnapb.js";
|
|
5
5
|
import { Timer as ut, List as ht, DynamicTime as mt } from "@base-framework/organisms";
|
|
6
6
|
import { C as ft, b as pt } from "./tooltip-BmvjA9XQ.js";
|
|
7
7
|
import { f as C } from "./image-BhZbKYDj.js";
|
|
8
8
|
import { Icons as u } from "./icons.es.js";
|
|
9
|
-
import { F as z } from "./format-
|
|
10
|
-
import "./mobile-nav-wrapper-
|
|
9
|
+
import { F as z } from "./format-DE4rFWuD.js";
|
|
10
|
+
import "./mobile-nav-wrapper-DyBtZhx2.js";
|
|
11
11
|
import "./aside-template-BDvEMLnk.js";
|
|
12
12
|
import "./full-page-DccgwWsM.js";
|
|
13
13
|
import "./bside-template-BCP2pJWN.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DateTime as i } from "@base-framework/base";
|
|
2
|
-
const
|
|
2
|
+
const o = (t, r) => (typeof t == "string" && (t = [t]), Array.isArray(t) ? (t.push(r), t) : {
|
|
3
3
|
...t,
|
|
4
4
|
callBack: r
|
|
5
5
|
}), B = (t, r = "") => t != null && t !== "" ? t : r, p = {
|
|
@@ -11,7 +11,7 @@ const s = (t, r) => (typeof t == "string" && (t = [t]), Array.isArray(t) ? (t.pu
|
|
|
11
11
|
* @returns {object|array}
|
|
12
12
|
*/
|
|
13
13
|
number(t, r = null) {
|
|
14
|
-
return
|
|
14
|
+
return o(t, (n) => {
|
|
15
15
|
if (!isNaN(n)) {
|
|
16
16
|
const l = /\B(?=(\d{3})+(?!\d))/g;
|
|
17
17
|
return n.toString().replace(l, ",");
|
|
@@ -28,7 +28,7 @@ const s = (t, r) => (typeof t == "string" && (t = [t]), Array.isArray(t) ? (t.pu
|
|
|
28
28
|
* @returns {object|array}
|
|
29
29
|
*/
|
|
30
30
|
yesno(t, r = "Yes", c = "No") {
|
|
31
|
-
return
|
|
31
|
+
return o(t, (l) => l ? r : c);
|
|
32
32
|
},
|
|
33
33
|
/**
|
|
34
34
|
* Formats a value as money with two decimals.
|
|
@@ -36,15 +36,33 @@ const s = (t, r) => (typeof t == "string" && (t = [t]), Array.isArray(t) ? (t.pu
|
|
|
36
36
|
* @param {string|number|object|array} watcher
|
|
37
37
|
* @param {string} currency - Currency symbol.
|
|
38
38
|
* @param {*} defaultValue - Value if original is invalid.
|
|
39
|
+
* @param {boolean} round - Whether to round to nearest whole number (no decimals).
|
|
39
40
|
* @returns {object|array}
|
|
40
41
|
*/
|
|
41
|
-
money(t, r = "$", c = null) {
|
|
42
|
-
return
|
|
42
|
+
money(t, r = "$", c = null, n = !1) {
|
|
43
|
+
return o(t, (e) => {
|
|
44
|
+
const a = parseFloat(e);
|
|
45
|
+
if (isNaN(a))
|
|
46
|
+
return r + c || "";
|
|
47
|
+
const s = /\B(?=(\d{3})+(?!\d))/g;
|
|
48
|
+
return r + (n ? Math.round(a) : a.toFixed(2)).toString().replace(s, ",");
|
|
49
|
+
});
|
|
50
|
+
},
|
|
51
|
+
/**
|
|
52
|
+
* Formats a value as money with no decimals (rounded).
|
|
53
|
+
*
|
|
54
|
+
* @param {string|number|object|array} watcher
|
|
55
|
+
* @param {string} currency - Currency symbol.
|
|
56
|
+
* @param {*} defaultValue - Value if original is invalid.
|
|
57
|
+
* @returns {object|array}
|
|
58
|
+
*/
|
|
59
|
+
roundMoney(t, r = "$", c = null) {
|
|
60
|
+
return o(t, (l) => {
|
|
43
61
|
const e = parseFloat(l);
|
|
44
62
|
if (isNaN(e))
|
|
45
63
|
return r + c || "";
|
|
46
64
|
const a = /\B(?=(\d{3})+(?!\d))/g;
|
|
47
|
-
return r +
|
|
65
|
+
return r + Math.round(e).toString().replace(a, ",");
|
|
48
66
|
});
|
|
49
67
|
},
|
|
50
68
|
/**
|
|
@@ -55,7 +73,7 @@ const s = (t, r) => (typeof t == "string" && (t = [t]), Array.isArray(t) ? (t.pu
|
|
|
55
73
|
* @returns {object|array}
|
|
56
74
|
*/
|
|
57
75
|
phone(t, r = null) {
|
|
58
|
-
return
|
|
76
|
+
return o(t, (n) => {
|
|
59
77
|
n = n || "";
|
|
60
78
|
const l = String(n.toString()).replace(/\D/g, "");
|
|
61
79
|
return l.length === 10 ? "(" + l.slice(0, 3) + ") " + l.slice(3, 6) + "-" + l.slice(6) : n || r;
|
|
@@ -69,7 +87,7 @@ const s = (t, r) => (typeof t == "string" && (t = [t]), Array.isArray(t) ? (t.pu
|
|
|
69
87
|
* @returns {object|array}
|
|
70
88
|
*/
|
|
71
89
|
integer(t, r = null) {
|
|
72
|
-
return
|
|
90
|
+
return o(t, (n) => {
|
|
73
91
|
n = B(n, r);
|
|
74
92
|
const l = parseInt(n, 10);
|
|
75
93
|
return isNaN(l) ? r : l.toString();
|
|
@@ -83,7 +101,7 @@ const s = (t, r) => (typeof t == "string" && (t = [t]), Array.isArray(t) ? (t.pu
|
|
|
83
101
|
* @returns {object|array}
|
|
84
102
|
*/
|
|
85
103
|
date(t, r = null) {
|
|
86
|
-
return
|
|
104
|
+
return o(t, (n) => n ? i.format("standard", n) : r || "");
|
|
87
105
|
},
|
|
88
106
|
/**
|
|
89
107
|
* Formats a date and time value to a standard date and time format.
|
|
@@ -93,7 +111,7 @@ const s = (t, r) => (typeof t == "string" && (t = [t]), Array.isArray(t) ? (t.pu
|
|
|
93
111
|
* @returns {object|array}
|
|
94
112
|
*/
|
|
95
113
|
dateTime(t, r = null) {
|
|
96
|
-
return
|
|
114
|
+
return o(t, (n) => n ? i.format("standard", n) + " " + i.formatTime(n, 12) : r || "");
|
|
97
115
|
},
|
|
98
116
|
/**
|
|
99
117
|
* Formats a time value to a standard time format.
|
|
@@ -103,7 +121,7 @@ const s = (t, r) => (typeof t == "string" && (t = [t]), Array.isArray(t) ? (t.pu
|
|
|
103
121
|
* @returns {object|array}
|
|
104
122
|
*/
|
|
105
123
|
time(t, r = null) {
|
|
106
|
-
return
|
|
124
|
+
return o(t, (n) => n ? i.formatTime(n, 12) : r || "");
|
|
107
125
|
},
|
|
108
126
|
/**
|
|
109
127
|
* Formats a value with a default value if null or undefined.
|
|
@@ -113,7 +131,7 @@ const s = (t, r) => (typeof t == "string" && (t = [t]), Array.isArray(t) ? (t.pu
|
|
|
113
131
|
* @returns {object|array}
|
|
114
132
|
*/
|
|
115
133
|
default(t, r = null) {
|
|
116
|
-
return
|
|
134
|
+
return o(t, (n) => B(n, r));
|
|
117
135
|
},
|
|
118
136
|
/**
|
|
119
137
|
* Formats a number as a percentage.
|
|
@@ -125,7 +143,7 @@ const s = (t, r) => (typeof t == "string" && (t = [t]), Array.isArray(t) ? (t.pu
|
|
|
125
143
|
* @returns {object|array}
|
|
126
144
|
*/
|
|
127
145
|
percentage(t, r = 0, c = !1, n = null) {
|
|
128
|
-
return
|
|
146
|
+
return o(t, (e) => {
|
|
129
147
|
const a = parseFloat(e);
|
|
130
148
|
return isNaN(a) ? n || "" : (c ? a * 100 : a).toFixed(r) + "%";
|
|
131
149
|
});
|
|
@@ -139,7 +157,7 @@ const s = (t, r) => (typeof t == "string" && (t = [t]), Array.isArray(t) ? (t.pu
|
|
|
139
157
|
* @returns {object|array}
|
|
140
158
|
*/
|
|
141
159
|
capitalize(t, r = !0, c = null) {
|
|
142
|
-
return
|
|
160
|
+
return o(t, (l) => {
|
|
143
161
|
if (!l)
|
|
144
162
|
return c || "";
|
|
145
163
|
const e = String(l);
|
|
@@ -154,7 +172,7 @@ const s = (t, r) => (typeof t == "string" && (t = [t]), Array.isArray(t) ? (t.pu
|
|
|
154
172
|
* @returns {object|array}
|
|
155
173
|
*/
|
|
156
174
|
uppercase(t, r = null) {
|
|
157
|
-
return
|
|
175
|
+
return o(t, (n) => n ? String(n).toUpperCase() : r || "");
|
|
158
176
|
},
|
|
159
177
|
/**
|
|
160
178
|
* Converts a string to lowercase.
|
|
@@ -164,7 +182,7 @@ const s = (t, r) => (typeof t == "string" && (t = [t]), Array.isArray(t) ? (t.pu
|
|
|
164
182
|
* @returns {object|array}
|
|
165
183
|
*/
|
|
166
184
|
lowercase(t, r = null) {
|
|
167
|
-
return
|
|
185
|
+
return o(t, (n) => n ? String(n).toLowerCase() : r || "");
|
|
168
186
|
},
|
|
169
187
|
/**
|
|
170
188
|
* Truncates a string to a maximum length with ellipsis.
|
|
@@ -176,7 +194,7 @@ const s = (t, r) => (typeof t == "string" && (t = [t]), Array.isArray(t) ? (t.pu
|
|
|
176
194
|
* @returns {object|array}
|
|
177
195
|
*/
|
|
178
196
|
truncate(t, r = 50, c = "...", n = null) {
|
|
179
|
-
return
|
|
197
|
+
return o(t, (e) => {
|
|
180
198
|
if (!e)
|
|
181
199
|
return n || "";
|
|
182
200
|
const a = String(e);
|
|
@@ -192,14 +210,14 @@ const s = (t, r) => (typeof t == "string" && (t = [t]), Array.isArray(t) ? (t.pu
|
|
|
192
210
|
* @returns {object|array}
|
|
193
211
|
*/
|
|
194
212
|
fileSize(t, r = 2, c = null) {
|
|
195
|
-
return
|
|
213
|
+
return o(t, (l) => {
|
|
196
214
|
const e = parseFloat(l);
|
|
197
215
|
if (isNaN(e) || e < 0)
|
|
198
216
|
return c || "";
|
|
199
217
|
if (e === 0)
|
|
200
218
|
return "0 Bytes";
|
|
201
|
-
const a = 1024,
|
|
202
|
-
return parseFloat((e / Math.pow(a, u)).toFixed(r)) + " " +
|
|
219
|
+
const a = 1024, s = ["Bytes", "KB", "MB", "GB", "TB", "PB"], u = Math.floor(Math.log(e) / Math.log(a));
|
|
220
|
+
return parseFloat((e / Math.pow(a, u)).toFixed(r)) + " " + s[u];
|
|
203
221
|
});
|
|
204
222
|
},
|
|
205
223
|
/**
|
|
@@ -207,21 +225,21 @@ const s = (t, r) => (typeof t == "string" && (t = [t]), Array.isArray(t) ? (t.pu
|
|
|
207
225
|
*
|
|
208
226
|
* @param {string|number|object|array} watcher
|
|
209
227
|
* @param {string} singular - Singular form of the word.
|
|
210
|
-
* @param {string} plural - Plural form of the word (optional, adds 's' by default).
|
|
228
|
+
* @param {string|null} plural - Plural form of the word (optional, adds 's' by default).
|
|
211
229
|
* @param {boolean} includeCount - Whether to include the count in output.
|
|
212
230
|
* @returns {object|array}
|
|
213
231
|
*/
|
|
214
232
|
plural(t, r, c = null, n = !0) {
|
|
215
|
-
return
|
|
233
|
+
return o(t, (e) => {
|
|
216
234
|
const a = parseInt(e, 10);
|
|
217
235
|
if (isNaN(a))
|
|
218
236
|
return "";
|
|
219
|
-
const
|
|
220
|
-
return n ? `${a} ${
|
|
237
|
+
const s = a === 1 ? r : c || r + "s";
|
|
238
|
+
return n ? `${a} ${s}` : s;
|
|
221
239
|
});
|
|
222
240
|
}
|
|
223
241
|
};
|
|
224
242
|
export {
|
|
225
243
|
p as F,
|
|
226
|
-
|
|
244
|
+
o as c
|
|
227
245
|
};
|
package/dist/index.es.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { B as s, C as o, a as t, F as r, b as n, L as i, P as l, R as p, S as m, T as d } from "./tooltip-BmvjA9XQ.js";
|
|
2
|
-
import { B as c, I as g, L as T, M as C, U as I, i as S, a as b } from "./buttons-
|
|
2
|
+
import { B as c, I as g, L as T, M as C, U as I, i as S, a as b } from "./buttons-D81gnapb.js";
|
|
3
3
|
import { C as B, a as F, D as P, b as M, E as f, F as k, H as x, I as v, c as N, M as U, N as h, P as y, R as L, T as W, d as H, e as R, U as w, V as A, f as G, W as O } from "./image-BhZbKYDj.js";
|
|
4
4
|
import { S as j } from "./skeleton-BlY3opxG.js";
|
|
5
5
|
import { Icons as J, MaterialSymbols as q } from "./icons.es.js";
|
|
6
|
-
import { A as K, B as Q, C as _, a as X, b as Y, c as Z, d as $, D as aa, e as ea, f as sa, g as oa, h as ta, i as ra, j as na, k as ia, l as la, m as pa, n as ma, o as da, E as ua, F as ca, p as ga, q as Ta, r as Ca, s as Ia, t as Sa, u as ba, v as Da, w as Ba, x as Fa, I as Pa, L as Ma, M as fa, y as ka, N as xa, z as va, P as Na, S as Ua, G as ha, H as ya, J as La, K as Wa, T as Ha, O as Ra, Q as wa, R as Aa, U as Ga } from "./empty-state-
|
|
7
|
-
import { A as Ea, B as ja, C as Va, a as Ja, b as qa, D as za, c as Ka, d as Qa, e as _a, f as Xa, g as Ya, F as Za, H as $a, M as ae, O as ee, P as se, R as oe, S as te, h as re, i as ne, j as ie, T as le, U as pe, k as me, l as de, m as ue, p as ce } from "./simple-search-input-
|
|
8
|
-
import { B as Te, I as Ce, N as Ie, P as Se, S as be, T as De, a as Be, b as Fe, U as Pe, c as Me, d as fe, e as ke, W as xe, f as ve, g as Ne, h as Ue, i as he, j as ye, k as Le, l as We, m as He, n as Re } from "./signature-panel-
|
|
9
|
-
import { B as Ae, I as Ge, M as Oe, a as Ee, b as je, N as Ve, c as Je, d as qe, e as ze, f as Ke, P as Qe, S as _e, T as Xe } from "./mobile-nav-wrapper-
|
|
10
|
-
import { S as Ze } from "./sidebar-menu-
|
|
6
|
+
import { A as K, B as Q, C as _, a as X, b as Y, c as Z, d as $, D as aa, e as ea, f as sa, g as oa, h as ta, i as ra, j as na, k as ia, l as la, m as pa, n as ma, o as da, E as ua, F as ca, p as ga, q as Ta, r as Ca, s as Ia, t as Sa, u as ba, v as Da, w as Ba, x as Fa, I as Pa, L as Ma, M as fa, y as ka, N as xa, z as va, P as Na, S as Ua, G as ha, H as ya, J as La, K as Wa, T as Ha, O as Ra, Q as wa, R as Aa, U as Ga } from "./empty-state-ChjK4l3n.js";
|
|
7
|
+
import { A as Ea, B as ja, C as Va, a as Ja, b as qa, D as za, c as Ka, d as Qa, e as _a, f as Xa, g as Ya, F as Za, H as $a, M as ae, O as ee, P as se, R as oe, S as te, h as re, i as ne, j as ie, T as le, U as pe, k as me, l as de, m as ue, p as ce } from "./simple-search-input-DKPm8m2G.js";
|
|
8
|
+
import { B as Te, I as Ce, N as Ie, P as Se, S as be, T as De, a as Be, b as Fe, U as Pe, c as Me, d as fe, e as ke, W as xe, f as ve, g as Ne, h as Ue, i as he, j as ye, k as Le, l as We, m as He, n as Re } from "./signature-panel-dsvVvBEM.js";
|
|
9
|
+
import { B as Ae, I as Ge, M as Oe, a as Ee, b as je, N as Ve, c as Je, d as qe, e as ze, f as Ke, P as Qe, S as _e, T as Xe } from "./mobile-nav-wrapper-DyBtZhx2.js";
|
|
10
|
+
import { S as Ze } from "./sidebar-menu-D5TdjR_H.js";
|
|
11
11
|
import { B as as, F as es, M as ss, P as os } from "./full-page-DccgwWsM.js";
|
|
12
|
-
import { B as rs, C as ns, F as is, a as ls, S as ps } from "./sidebar-menu-page-
|
|
12
|
+
import { B as rs, C as ns, F as is, a as ls, S as ps } from "./sidebar-menu-page-DSILzVNU.js";
|
|
13
13
|
import { A as ds, F as us, M as cs, T as gs, a as Ts } from "./aside-template-BDvEMLnk.js";
|
|
14
14
|
import { B as Is } from "./bside-template-BCP2pJWN.js";
|
|
15
|
-
import { F as bs, c as Ds } from "./format-
|
|
15
|
+
import { F as bs, c as Ds } from "./format-DE4rFWuD.js";
|
|
16
16
|
import { I as Fs } from "./image-scaler-1G-JzJVG.js";
|
|
17
17
|
export {
|
|
18
18
|
K as Alert,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Button as g, Div as l, Label as b, Span as w, Ul as r, H4 as S, Nav as d, H3 as h, OnState as B, UseParent as N } from "@base-framework/atoms";
|
|
2
2
|
import { Component as n, Atom as i, NavLink as L, router as u } from "@base-framework/base";
|
|
3
|
-
import { U as o, B as p } from "./buttons-
|
|
3
|
+
import { U as o, B as p } from "./buttons-D81gnapb.js";
|
|
4
4
|
import { Icons as c } from "./icons.es.js";
|
|
5
5
|
class C extends n {
|
|
6
6
|
/**
|
package/dist/molecules.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as s, B as t, C as r, a as e, b as i, c as n, d as m, D as l, e as d, f as C, g as p, h as D, i as S, j as u, k as c, l as g, m as F, n as T, o as P, E as w, F as A, p as I, q as f, r as b, s as y, t as B, u as M, v as U, w as k, x, I as L, L as R, M as v, y as E, N, z as h, P as G, S as O, G as j, H as q, J as z, K as H, T as J, O as K, Q, R as _, U as V } from "./empty-state-
|
|
2
|
-
import { A as X, P as Y, m as Z } from "./simple-search-input-
|
|
1
|
+
import { A as s, B as t, C as r, a as e, b as i, c as n, d as m, D as l, e as d, f as C, g as p, h as D, i as S, j as u, k as c, l as g, m as F, n as T, o as P, E as w, F as A, p as I, q as f, r as b, s as y, t as B, u as M, v as U, w as k, x, I as L, L as R, M as v, y as E, N, z as h, P as G, S as O, G as j, H as q, J as z, K as H, T as J, O as K, Q, R as _, U as V } from "./empty-state-ChjK4l3n.js";
|
|
2
|
+
import { A as X, P as Y, m as Z } from "./simple-search-input-DKPm8m2G.js";
|
|
3
3
|
export {
|
|
4
4
|
s as Alert,
|
|
5
5
|
X as Avatar,
|
package/dist/organisms.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as s, C as n, a as t, b as r, D as o, c as l, d as i, e as d, f as b, g as p, F as u, H as T, M as g, O as v, R as N, S as k, h as D, i as c, j as C, T as m, U as B, k as S, l as M, p as h } from "./simple-search-input-
|
|
2
|
-
import { B as W, I as U, N as f, P as H, S as I, T as P, a as x, b as L, U as O, c as F, d as G, e as j, W as R, f as w, g as q, h as z, i as A, j as E, k as J, l as K, m as Q, n as V } from "./signature-panel-
|
|
3
|
-
import { B as Y, I as Z, M as _, a as $, b as aa, N as ea, c as sa, d as na, e as ta, f as ra, P as oa, S as la, T as ia } from "./mobile-nav-wrapper-
|
|
4
|
-
import { S as ba } from "./sidebar-menu-
|
|
1
|
+
import { B as s, C as n, a as t, b as r, D as o, c as l, d as i, e as d, f as b, g as p, F as u, H as T, M as g, O as v, R as N, S as k, h as D, i as c, j as C, T as m, U as B, k as S, l as M, p as h } from "./simple-search-input-DKPm8m2G.js";
|
|
2
|
+
import { B as W, I as U, N as f, P as H, S as I, T as P, a as x, b as L, U as O, c as F, d as G, e as j, W as R, f as w, g as q, h as z, i as A, j as E, k as J, l as K, m as Q, n as V } from "./signature-panel-dsvVvBEM.js";
|
|
3
|
+
import { B as Y, I as Z, M as _, a as $, b as aa, N as ea, c as sa, d as na, e as ta, f as ra, P as oa, S as la, T as ia } from "./mobile-nav-wrapper-DyBtZhx2.js";
|
|
4
|
+
import { S as ba } from "./sidebar-menu-D5TdjR_H.js";
|
|
5
5
|
export {
|
|
6
6
|
s as BackButton,
|
|
7
7
|
Y as Backdrop,
|
package/dist/pages.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as s, F as P, M as g, P as n } from "./full-page-DccgwWsM.js";
|
|
2
|
-
import { B as r, C as o, F as i, a as t, S as F } from "./sidebar-menu-page-
|
|
2
|
+
import { B as r, C as o, F as i, a as t, S as F } from "./sidebar-menu-page-DSILzVNU.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 { I as n } from "./mobile-nav-wrapper-
|
|
2
|
+
import { I as n } from "./mobile-nav-wrapper-DyBtZhx2.js";
|
|
3
3
|
const g = ({ title: l, options: s, class: a = "", 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 ${a}` }, [
|
|
4
4
|
o,
|
|
5
5
|
l && x({ class: "pb-4 md:pb-2 px-6 flex" }, [
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Div as s } from "@base-framework/atoms";
|
|
2
2
|
import { B as a, M as i, P as r } from "./full-page-DccgwWsM.js";
|
|
3
3
|
import { F as l, A as n } from "./aside-template-BDvEMLnk.js";
|
|
4
|
-
import { b as d } from "./mobile-nav-wrapper-
|
|
5
|
-
import { S as o } from "./sidebar-menu-
|
|
4
|
+
import { b as d } from "./mobile-nav-wrapper-DyBtZhx2.js";
|
|
5
|
+
import { S as o } from "./sidebar-menu-D5TdjR_H.js";
|
|
6
6
|
class p extends a {
|
|
7
7
|
/**
|
|
8
8
|
* This will render the page.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Div as l, Button as b, On as j, Span as T, Nav as f, Ul as p, Section as y, Li as w, Canvas as z } from "@base-framework/atoms";
|
|
2
2
|
import { Component as k, Data as I, DateTime as U, router as v, NavLink as S, base as L, Dom as B } from "@base-framework/base";
|
|
3
|
-
import { B as C } from "./buttons-
|
|
3
|
+
import { B as C } from "./buttons-D81gnapb.js";
|
|
4
4
|
import { Icons as D } from "./icons.es.js";
|
|
5
|
-
import { O as A } from "./simple-search-input-
|
|
5
|
+
import { O as A } from "./simple-search-input-DKPm8m2G.js";
|
|
6
6
|
import { V as u, H as F } from "./image-BhZbKYDj.js";
|
|
7
7
|
import { IntervalTimer as O } from "@base-framework/organisms";
|
|
8
8
|
class Pt extends k {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Div as r, Span as N, Button as K, OnState as J, On as $, Th as G, UseParent as et, I as st, Thead as at, Tr as nt, Table as j, P as O, Li as X, Time as ot, Ul as rt, Input as lt } from "@base-framework/atoms";
|
|
2
2
|
import { Component as R, Data as P, Atom as m, DateTime as H, DataTracker as _, Jot as it } from "@base-framework/base";
|
|
3
|
-
import { B as y, U as q } from "./buttons-
|
|
3
|
+
import { B as y, U as q } from "./buttons-D81gnapb.js";
|
|
4
4
|
import { Icons as S } from "./icons.es.js";
|
|
5
5
|
import { TableBody as ct, DataTableBody as dt, ScrollableTableBody as ht, List as ut } from "@base-framework/organisms";
|
|
6
6
|
import { I as ft, C as mt, c as gt } from "./image-BhZbKYDj.js";
|
|
@@ -23,9 +23,19 @@ export namespace Format {
|
|
|
23
23
|
* @param {string|number|object|array} watcher
|
|
24
24
|
* @param {string} currency - Currency symbol.
|
|
25
25
|
* @param {*} defaultValue - Value if original is invalid.
|
|
26
|
+
* @param {boolean} round - Whether to round to nearest whole number (no decimals).
|
|
26
27
|
* @returns {object|array}
|
|
27
28
|
*/
|
|
28
|
-
export function money(watcher: string | number | object | any[], currency?: string, defaultValue?: any): object | any[];
|
|
29
|
+
export function money(watcher: string | number | object | any[], currency?: string, defaultValue?: any, round?: boolean): object | any[];
|
|
30
|
+
/**
|
|
31
|
+
* Formats a value as money with no decimals (rounded).
|
|
32
|
+
*
|
|
33
|
+
* @param {string|number|object|array} watcher
|
|
34
|
+
* @param {string} currency - Currency symbol.
|
|
35
|
+
* @param {*} defaultValue - Value if original is invalid.
|
|
36
|
+
* @returns {object|array}
|
|
37
|
+
*/
|
|
38
|
+
export function roundMoney(watcher: string | number | object | any[], currency?: string, defaultValue?: any): object | any[];
|
|
29
39
|
/**
|
|
30
40
|
* Formats a value as a US phone number (10 digits).
|
|
31
41
|
*
|
|
@@ -134,9 +144,9 @@ export namespace Format {
|
|
|
134
144
|
*
|
|
135
145
|
* @param {string|number|object|array} watcher
|
|
136
146
|
* @param {string} singular - Singular form of the word.
|
|
137
|
-
* @param {string} plural - Plural form of the word (optional, adds 's' by default).
|
|
147
|
+
* @param {string|null} plural - Plural form of the word (optional, adds 's' by default).
|
|
138
148
|
* @param {boolean} includeCount - Whether to include the count in output.
|
|
139
149
|
* @returns {object|array}
|
|
140
150
|
*/
|
|
141
|
-
export function plural(watcher: string | number | object | any[], singular: string, plural?: string, includeCount?: boolean): object | any[];
|
|
151
|
+
export function plural(watcher: string | number | object | any[], singular: string, plural?: string | null, includeCount?: boolean): object | any[];
|
|
142
152
|
}
|
package/dist/utils.es.js
CHANGED
package/package.json
CHANGED