@base-framework/ui 1.1.21 → 1.1.23
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 +2 -2
- package/dist/{empty-state-BYGAQBoC.js → empty-state-CPh9WDdU.js} +15 -12
- package/dist/{image-BhZbKYDj.js → image-gf8yyrt3.js} +48 -44
- package/dist/index.es.js +8 -8
- package/dist/{mobile-nav-wrapper-BU2y9igN.js → mobile-nav-wrapper-gNWndUx9.js} +34 -35
- 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-DrtfWyhW.js → sidebar-menu-9uhT3f6A.js} +1 -1
- package/dist/{sidebar-menu-page-B8SDcyYE.js → sidebar-menu-page-DxH5thLp.js} +2 -2
- package/dist/{signature-panel-oy08dzmN.js → signature-panel-D4dg_lpE.js} +2 -2
- package/dist/{simple-search-input-DBixzLjf.js → simple-search-input-Bd3LOIPc.js} +36 -25
- package/dist/{tooltip-BmvjA9XQ.js → tooltip-C8OUlZKV.js} +2 -2
- package/dist/types/components/atoms/form/inputs/range-slider.d.ts +2 -3
- package/dist/types/components/atoms/progress/progress-bar.d.ts +2 -3
- package/dist/types/components/atoms/veil.d.ts +1 -1
- package/dist/types/components/molecules/breadcrumb/dots-indicator.d.ts +1 -1
- package/dist/types/components/molecules/combobox/combobox.d.ts +1 -1
- package/dist/types/components/molecules/counters/counter.d.ts +2 -3
- package/dist/types/components/molecules/date-time/date-picker.d.ts +2 -3
- package/dist/types/components/molecules/date-time/date-range-picker.d.ts +2 -3
- package/dist/types/components/molecules/date-time/time-picker.d.ts +2 -3
- package/dist/types/components/molecules/dialogs/dialog.d.ts +2 -2
- package/dist/types/components/molecules/form/form-field.d.ts +1 -4
- package/dist/types/components/molecules/popover.d.ts +6 -0
- package/dist/types/components/molecules/toggle/toggle.d.ts +1 -4
- package/dist/types/components/organisms/calendar/calendar.d.ts +2 -2
- package/dist/types/components/organisms/overlays/dockable-overlay.d.ts +6 -0
- package/dist/types/components/organisms/signature/signature-canvas.d.ts +7 -1
- package/package.json +1 -1
package/dist/atoms.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
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-C8OUlZKV.js";
|
|
2
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-BY-KDbOv.js";
|
|
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-
|
|
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-gf8yyrt3.js";
|
|
4
4
|
import { S as q } from "./skeleton-BlY3opxG.js";
|
|
5
5
|
export {
|
|
6
6
|
e as Badge,
|
|
@@ -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-
|
|
3
|
+
import { P as S, C as at, R as ct } from "./simple-search-input-Bd3LOIPc.js";
|
|
4
4
|
import { U as m, B as h, I as dt } from "./buttons-BY-KDbOv.js";
|
|
5
5
|
import { Timer as ut, List as ht, DynamicTime as mt } from "@base-framework/organisms";
|
|
6
|
-
import { C as ft, b as pt } from "./tooltip-
|
|
7
|
-
import { f as C } from "./image-
|
|
6
|
+
import { C as ft, b as pt } from "./tooltip-C8OUlZKV.js";
|
|
7
|
+
import { f as C } from "./image-gf8yyrt3.js";
|
|
8
8
|
import { Icons as u } from "./icons.es.js";
|
|
9
9
|
import { F as z } from "./format-DE4rFWuD.js";
|
|
10
|
-
import "./mobile-nav-wrapper-
|
|
10
|
+
import "./mobile-nav-wrapper-gNWndUx9.js";
|
|
11
11
|
import "./aside-template-BDvEMLnk.js";
|
|
12
12
|
import "./full-page-DccgwWsM.js";
|
|
13
13
|
import "./bside-template-BCP2pJWN.js";
|
|
@@ -75,7 +75,7 @@ class Ee extends y {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
const yt = (t) => a({ class: "ml-auto text-xs tracking-widest opacity-60" }, t), wt = (t) => a({ class: "flex w-4 h-4", html: t }), Ct = (t) => a({ class: "flex-auto" }, t), vt = (t, e) => q({
|
|
78
|
-
class: "relative flex cursor-pointer hover:bg-muted/50 select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-
|
|
78
|
+
class: "relative flex cursor-pointer hover:bg-muted/50 select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
79
79
|
click: () => e(t)
|
|
80
80
|
}, [
|
|
81
81
|
t.icon && wt(t.icon),
|
|
@@ -277,19 +277,19 @@ const It = c((t, e) => n({ ...t, class: "flex flex-auto flex-col gap-y-2" }, e))
|
|
|
277
277
|
const s = t.class?.includes("drawer");
|
|
278
278
|
return n({
|
|
279
279
|
popover: "manual",
|
|
280
|
-
class: `modal ${s ? "" : "m-auto top-0 right-0 bottom-0 left-0"} ${s ? "" : "h-full max-h-screen"} fixed z-20 grid w-full gap-2 lg:border bg-background text-foreground shadow-xl break-words p-0 overflow-y-auto ${t.class}`,
|
|
280
|
+
class: `modal ${s ? "" : "m-auto top-0 right-0 bottom-0 left-0"} ${s ? "" : "h-full max-h-screen"} fixed z-20 grid w-full gap-2 lg:border bg-background text-foreground shadow-xl wrap-break-words p-0 overflow-y-auto ${t.class}`,
|
|
281
281
|
click: (r, l) => {
|
|
282
282
|
r.target === l.panel && (r.preventDefault(), r.stopPropagation(), l.state.open = !1);
|
|
283
283
|
}
|
|
284
284
|
}, [
|
|
285
285
|
K({
|
|
286
|
-
class: "modal-content relative bg-background z-
|
|
286
|
+
class: "modal-content relative bg-background z-1 flex flex-auto flex-col gap-y-4 min-w-0",
|
|
287
287
|
submit: (r, l) => t.onSubmit && t.onSubmit(l),
|
|
288
288
|
cache: "modalContent",
|
|
289
289
|
...t.gestureHandlers
|
|
290
290
|
}, [
|
|
291
291
|
Ot(t),
|
|
292
|
-
n({ class: "modal-body flex
|
|
292
|
+
n({ class: "modal-body flex grow flex-col py-0 px-6 z-0", cache: "modalBody" }, e),
|
|
293
293
|
!t.hideFooter && L({ class: "modal-footer sticky bottom-0 bg-background/80 backdrop-blur-md flex flex-none justify-between py-4 px-6 z-10" }, t.buttons)
|
|
294
294
|
])
|
|
295
295
|
]);
|
|
@@ -672,8 +672,11 @@ class Je extends zt {
|
|
|
672
672
|
*/
|
|
673
673
|
showModal() {
|
|
674
674
|
super.showModal(), this.swipeToClose && !this.gesture && (this.gesture = new Yt({
|
|
675
|
+
// @ts-ignore
|
|
675
676
|
modal: this.panel,
|
|
677
|
+
// @ts-ignore
|
|
676
678
|
modalContent: this.modalContent,
|
|
679
|
+
// @ts-ignore
|
|
677
680
|
modalBody: this.modalBody,
|
|
678
681
|
closeThreshold: this.closeThreshold,
|
|
679
682
|
snapThreshold: this.snapThreshold,
|
|
@@ -1381,7 +1384,7 @@ const E = globalThis.matchMedia, F = c(({ value: t, label: e, icon: s }) => p({
|
|
|
1381
1384
|
// Hidden required input for form validation
|
|
1382
1385
|
// @ts-ignore
|
|
1383
1386
|
this.required && f({
|
|
1384
|
-
class: "opacity-0 absolute top-0 left-0 z-
|
|
1387
|
+
class: "opacity-0 absolute top-0 left-0 z-1",
|
|
1385
1388
|
type: "text",
|
|
1386
1389
|
// @ts-ignore
|
|
1387
1390
|
name: this.name,
|
|
@@ -1482,7 +1485,7 @@ const E = globalThis.matchMedia, F = c(({ value: t, label: e, icon: s }) => p({
|
|
|
1482
1485
|
ae({ placeholder: r, handleInputChange: o, handleInputFocus: i }),
|
|
1483
1486
|
p(
|
|
1484
1487
|
{
|
|
1485
|
-
class: "
|
|
1488
|
+
class: "shrink-0 hover:bg-muted/50 rounded p-1 cursor-pointer",
|
|
1486
1489
|
click: s
|
|
1487
1490
|
},
|
|
1488
1491
|
[
|
|
@@ -1717,7 +1720,7 @@ function xe({ bind: t, required: e, toggleOpen: s, handleInputChange: o, handleI
|
|
|
1717
1720
|
be({ placeholder: r, handleInputChange: o, handleInputFocus: i }),
|
|
1718
1721
|
p(
|
|
1719
1722
|
{
|
|
1720
|
-
class: "
|
|
1723
|
+
class: "shrink-0 hover:bg-muted/50 rounded p-1 cursor-pointer",
|
|
1721
1724
|
click: s
|
|
1722
1725
|
},
|
|
1723
1726
|
[
|
|
@@ -1985,7 +1988,7 @@ class De extends y {
|
|
|
1985
1988
|
/**
|
|
1986
1989
|
* This will get the buttons for the modal.
|
|
1987
1990
|
*
|
|
1988
|
-
* @returns {array}
|
|
1991
|
+
* @returns {array|null}
|
|
1989
1992
|
*/
|
|
1990
1993
|
getButtons() {
|
|
1991
1994
|
return this.hideFooter ? null : this.buttons ? this.buttons : [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Div as h, Label as f, Checkbox as m, Span as
|
|
2
|
-
import { Jot as
|
|
1
|
+
import { Div as h, Label as f, Checkbox as m, Span as $, OnState as p, I as x, Input as n, Textarea as k, Img as g } from "@base-framework/atoms";
|
|
2
|
+
import { Jot as y, Atom as s, Component as I } from "@base-framework/base";
|
|
3
3
|
import { Icons as C } from "./icons.es.js";
|
|
4
|
-
const v = "flex h-10 w-full px-3 py-2 text-sm", r = "rounded-md border border-border bg-input", l = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background", c = "disabled:cursor-not-allowed disabled:opacity-50 [&:user-invalid]:border-destructive", o = "placeholder:text-muted-foreground",
|
|
4
|
+
const v = "flex h-10 w-full px-3 py-2 text-sm", r = "rounded-md border border-border bg-input", l = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background", c = "disabled:cursor-not-allowed disabled:opacity-50 [&:user-invalid]:border-destructive", o = "placeholder:text-muted-foreground", b = `${v} ${r} ${l} ${o} ${c}`, w = ({ id: e, checked: a, bind: t, required: d }) => m({
|
|
5
5
|
id: e,
|
|
6
6
|
cache: "checkbox",
|
|
7
7
|
class: "absolute opacity-0 w-full h-full cursor-pointer pointer-events-none",
|
|
@@ -11,10 +11,10 @@ const v = "flex h-10 w-full px-3 py-2 text-sm", r = "rounded-md border border-bo
|
|
|
11
11
|
required: d,
|
|
12
12
|
checked: a,
|
|
13
13
|
bind: t
|
|
14
|
-
}), T = () =>
|
|
15
|
-
|
|
14
|
+
}), T = () => $({ class: "absolute text-xs pointer-events-none" }, [
|
|
15
|
+
p(
|
|
16
16
|
"checked",
|
|
17
|
-
(e) => e ?
|
|
17
|
+
(e) => e ? x({
|
|
18
18
|
class: "w-2 h-2 pointer-events-none",
|
|
19
19
|
html: C.check
|
|
20
20
|
}) : null
|
|
@@ -45,7 +45,7 @@ const v = "flex h-10 w-full px-3 py-2 text-sm", r = "rounded-md border border-bo
|
|
|
45
45
|
class: "text-base cursor-pointer",
|
|
46
46
|
htmlFor: e,
|
|
47
47
|
click: t
|
|
48
|
-
}, a),
|
|
48
|
+
}, a), S = y(
|
|
49
49
|
{
|
|
50
50
|
/**
|
|
51
51
|
* This will initialize the state of the checkbox.
|
|
@@ -109,8 +109,8 @@ const v = "flex h-10 w-full px-3 py-2 text-sm", r = "rounded-md border border-bo
|
|
|
109
109
|
t && (a.value = t);
|
|
110
110
|
}, i = s((e) => n({
|
|
111
111
|
...e,
|
|
112
|
-
class: `${
|
|
113
|
-
})),
|
|
112
|
+
class: `${b} ${e.class || ""}`.trim()
|
|
113
|
+
})), V = s((e) => i({
|
|
114
114
|
...e,
|
|
115
115
|
type: "tel",
|
|
116
116
|
name: e.name || "Phone",
|
|
@@ -118,47 +118,47 @@ const v = "flex h-10 w-full px-3 py-2 text-sm", r = "rounded-md border border-bo
|
|
|
118
118
|
placeholder: "(555) 555-5555",
|
|
119
119
|
pattern: e.pattern || "\\(\\d{3}\\) \\d{3}-\\d{4}",
|
|
120
120
|
keyup: P
|
|
121
|
-
})),
|
|
121
|
+
})), j = s((e) => i({
|
|
122
122
|
...e,
|
|
123
123
|
type: "email",
|
|
124
124
|
name: e.name || "Email",
|
|
125
125
|
label: e.label || "Email",
|
|
126
126
|
placeholder: "Email address"
|
|
127
|
-
})),
|
|
127
|
+
})), q = s((e) => k({
|
|
128
128
|
...e,
|
|
129
129
|
as: "textarea",
|
|
130
130
|
class: `flex w-full h-24 px-3 py-2 text-sm ${r} ${l} ${o} ${c} ${e.class || ""}`.trim()
|
|
131
|
-
})),
|
|
131
|
+
})), J = (e = {}) => h({ class: "flex items-center gap-x-2" }, [
|
|
132
132
|
n({
|
|
133
133
|
...e,
|
|
134
134
|
type: "radio",
|
|
135
135
|
class: "cursor-pointer appearance-none h-4 w-4 border rounded-full checked:border-primary checked:bg-primary focus:ring focus:ring-primary".trim()
|
|
136
136
|
}),
|
|
137
137
|
e.label && f({ forHTML: e.value, class: "cursor-pointer" }, e.label)
|
|
138
|
-
]),
|
|
138
|
+
]), N = s((e) => n({
|
|
139
139
|
...e,
|
|
140
140
|
type: "date",
|
|
141
141
|
class: `${r} ${l} ${o} ${c} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
|
|
142
|
-
})),
|
|
142
|
+
})), R = s((e) => n({
|
|
143
143
|
...e,
|
|
144
144
|
type: "time",
|
|
145
145
|
class: `${r} ${l} ${o} ${c} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
|
|
146
|
-
})),
|
|
146
|
+
})), U = s((e) => n({
|
|
147
147
|
...e,
|
|
148
148
|
type: "datetime-local",
|
|
149
149
|
class: `${r} ${l} ${o} ${c} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
|
|
150
|
-
})),
|
|
150
|
+
})), W = s((e) => n({
|
|
151
151
|
...e,
|
|
152
152
|
type: "month",
|
|
153
153
|
class: `${r} ${l} ${o} ${c} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
|
|
154
|
-
})),
|
|
154
|
+
})), z = s((e) => n({
|
|
155
155
|
...e,
|
|
156
156
|
type: "week",
|
|
157
157
|
class: `${r} ${l} ${o} ${c} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
|
|
158
|
-
})),
|
|
158
|
+
})), A = s((e) => i({
|
|
159
159
|
...e,
|
|
160
160
|
type: "number"
|
|
161
|
-
})),
|
|
161
|
+
})), B = s((e) => i({
|
|
162
162
|
...e,
|
|
163
163
|
type: "password"
|
|
164
164
|
}));
|
|
@@ -166,13 +166,13 @@ s((e) => i({
|
|
|
166
166
|
...e,
|
|
167
167
|
type: "search"
|
|
168
168
|
}));
|
|
169
|
-
const
|
|
169
|
+
const G = s((e) => i({
|
|
170
170
|
...e,
|
|
171
171
|
type: "url"
|
|
172
|
-
})),
|
|
172
|
+
})), K = s((e) => i({
|
|
173
173
|
...e,
|
|
174
174
|
type: "hidden"
|
|
175
|
-
})),
|
|
175
|
+
})), Q = s((e) => n({
|
|
176
176
|
...e,
|
|
177
177
|
type: "color",
|
|
178
178
|
class: `${r} text-foreground p-0 ${c} ${e.class || ""}`.trim()
|
|
@@ -181,12 +181,12 @@ s((e) => m({
|
|
|
181
181
|
...e,
|
|
182
182
|
class: `flex h-4 w-4 text-foreground ${r} ${l} ${c} ${e.class || ""}`.trim()
|
|
183
183
|
}));
|
|
184
|
-
const F = "file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground",
|
|
184
|
+
const F = "file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground", X = s((e) => n({
|
|
185
185
|
...e,
|
|
186
186
|
type: "file",
|
|
187
|
-
class: `${
|
|
187
|
+
class: `${b} ${F} ${e.class || ""}`.trim()
|
|
188
188
|
}));
|
|
189
|
-
class
|
|
189
|
+
class Y extends I {
|
|
190
190
|
/**
|
|
191
191
|
* This will set the component context.
|
|
192
192
|
*
|
|
@@ -200,7 +200,11 @@ class L extends I {
|
|
|
200
200
|
return t ? { data: t } : null;
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
|
-
const Z = (e) =>
|
|
203
|
+
const Z = (e) => {
|
|
204
|
+
({
|
|
205
|
+
...e
|
|
206
|
+
});
|
|
207
|
+
}, _ = s(({ src: e, alt: a, class: t, checkPath: d = !0 }) => !e || (t = t || "", d && e.indexOf(".") === -1 && e.indexOf("[[") === -1) ? null : g({
|
|
204
208
|
class: `absolute w-full h-full object-cover fadeIn ${t}`,
|
|
205
209
|
src: e,
|
|
206
210
|
alt: a,
|
|
@@ -211,27 +215,27 @@ const Z = (e) => b(e, L), _ = s(({ src: e, alt: a, class: t, checkPath: d = !0 }
|
|
|
211
215
|
error: (u) => u.target.style.visibility = "hidden"
|
|
212
216
|
}));
|
|
213
217
|
export {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
218
|
+
S as C,
|
|
219
|
+
N as D,
|
|
220
|
+
j as E,
|
|
221
|
+
X as F,
|
|
222
|
+
K as H,
|
|
219
223
|
_ as I,
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
224
|
+
W as M,
|
|
225
|
+
A as N,
|
|
226
|
+
B as P,
|
|
227
|
+
J as R,
|
|
228
|
+
V as T,
|
|
229
|
+
G as U,
|
|
230
|
+
Y as V,
|
|
231
|
+
z as W,
|
|
232
|
+
Q as a,
|
|
233
|
+
U as b,
|
|
230
234
|
i as c,
|
|
231
|
-
|
|
232
|
-
|
|
235
|
+
q as d,
|
|
236
|
+
R as e,
|
|
233
237
|
Z as f,
|
|
234
238
|
l as g,
|
|
235
239
|
c as h,
|
|
236
|
-
|
|
240
|
+
b as i
|
|
237
241
|
};
|
package/dist/index.es.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
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-
|
|
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-C8OUlZKV.js";
|
|
2
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-BY-KDbOv.js";
|
|
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-
|
|
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-gf8yyrt3.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-CPh9WDdU.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-Bd3LOIPc.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-D4dg_lpE.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-gNWndUx9.js";
|
|
10
|
+
import { S as Ze } from "./sidebar-menu-9uhT3f6A.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-DxH5thLp.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
15
|
import { F as bs, c as Ds } from "./format-DE4rFWuD.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Button as
|
|
2
|
-
import { Component as n, Atom as i, NavLink as
|
|
3
|
-
import { U as o, B as
|
|
1
|
+
import { Button as k, Div as l, Label as g, Span as b, Ul as r, H4 as w, Nav as u, H3 as d, OnState as S, UseParent as B } from "@base-framework/atoms";
|
|
2
|
+
import { Component as n, Atom as i, NavLink as N, router as L } from "@base-framework/base";
|
|
3
|
+
import { U as o, B as h } from "./buttons-BY-KDbOv.js";
|
|
4
4
|
import { Icons as c } from "./icons.es.js";
|
|
5
5
|
class C extends n {
|
|
6
6
|
/**
|
|
@@ -19,7 +19,7 @@ class C extends n {
|
|
|
19
19
|
*/
|
|
20
20
|
render() {
|
|
21
21
|
const e = this.state;
|
|
22
|
-
return
|
|
22
|
+
return k({
|
|
23
23
|
class: this.class || "",
|
|
24
24
|
onState: [
|
|
25
25
|
["selected", {
|
|
@@ -79,8 +79,8 @@ const y = i(({ options: s, click: e }, t) => ({
|
|
|
79
79
|
}, [
|
|
80
80
|
o({ size: "sm" }, e)
|
|
81
81
|
]),
|
|
82
|
-
|
|
83
|
-
t &&
|
|
82
|
+
g({ class: "label flex flex-auto text-sm items-center cursor-pointer whitespace-nowrap" }, s),
|
|
83
|
+
t && b(
|
|
84
84
|
{
|
|
85
85
|
class: "flex justify-center items-center px-1 transition-all text-muted-foreground mr-2",
|
|
86
86
|
onState: [
|
|
@@ -97,7 +97,7 @@ const y = i(({ options: s, click: e }, t) => ({
|
|
|
97
97
|
]
|
|
98
98
|
)
|
|
99
99
|
];
|
|
100
|
-
class
|
|
100
|
+
class p extends n {
|
|
101
101
|
/**
|
|
102
102
|
* This will declare the props for the compiler.
|
|
103
103
|
*
|
|
@@ -129,7 +129,7 @@ class f extends n {
|
|
|
129
129
|
*/
|
|
130
130
|
addLink() {
|
|
131
131
|
const e = this.options && this.options.length > 0, t = this.content || P(this.label, this.icon, e);
|
|
132
|
-
return this.href ? new
|
|
132
|
+
return this.href ? new N(
|
|
133
133
|
{
|
|
134
134
|
class: "flex flex-auto flex-row rounded-md transition-all overflow-x-hidden",
|
|
135
135
|
cache: "link",
|
|
@@ -157,7 +157,7 @@ class f extends n {
|
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
const I = i(({ map: s }, e) => r({ class: "navigation-group flex flex-col gap-2 list-none m-0 py-2 px-0", map: s }, [
|
|
160
|
-
|
|
160
|
+
w({ class: "text-muted-foreground text-sm py-0 px-4 whitespace-nowrap" }, e)
|
|
161
161
|
]));
|
|
162
162
|
class $ extends n {
|
|
163
163
|
/**
|
|
@@ -175,7 +175,7 @@ class $ extends n {
|
|
|
175
175
|
*/
|
|
176
176
|
render() {
|
|
177
177
|
const e = this.mapOptions(this.options), t = this.class || "", a = this.mobileBorder ? "border md:border-0 rounded-md" : "";
|
|
178
|
-
return
|
|
178
|
+
return u({ class: `navigation flex flex-auto flex-col ${t}` }, [
|
|
179
179
|
r({
|
|
180
180
|
class: `relative group flex flex-col gap-2 py-2 px-2 list-none m-0 ${a}`,
|
|
181
181
|
map: e
|
|
@@ -217,10 +217,10 @@ class $ extends n {
|
|
|
217
217
|
* @returns {object}
|
|
218
218
|
*/
|
|
219
219
|
addLink(e) {
|
|
220
|
-
return new
|
|
220
|
+
return new p(e);
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
|
-
class
|
|
223
|
+
class f extends $ {
|
|
224
224
|
onCreated() {
|
|
225
225
|
this.links = [];
|
|
226
226
|
}
|
|
@@ -255,7 +255,7 @@ class x extends $ {
|
|
|
255
255
|
* @returns {object}
|
|
256
256
|
*/
|
|
257
257
|
addLink(e) {
|
|
258
|
-
const t = new
|
|
258
|
+
const t = new p(e);
|
|
259
259
|
if (this.links.push(t), !t.options)
|
|
260
260
|
return t;
|
|
261
261
|
const a = this.addSubNav(t);
|
|
@@ -270,7 +270,7 @@ const z = (s, e) => new RegExp(`${s}($|/|\\.).*`).test(e), M = (s, e) => {
|
|
|
270
270
|
const t = s.link.panel.pathname;
|
|
271
271
|
return !t && s.isSelected() ? !0 : s.exact ? e === t : z(t, e);
|
|
272
272
|
};
|
|
273
|
-
class O extends
|
|
273
|
+
class O extends f {
|
|
274
274
|
/**
|
|
275
275
|
* This will declare the props for the compiler.
|
|
276
276
|
*
|
|
@@ -286,7 +286,7 @@ class O extends x {
|
|
|
286
286
|
*/
|
|
287
287
|
render() {
|
|
288
288
|
const e = `navigation flex flex-auto flex-col sub ${this.mainClassName || ""}`, t = this.mapOptions(this.options);
|
|
289
|
-
return
|
|
289
|
+
return u({ class: e, onState: this.onState() }, [
|
|
290
290
|
r({ class: "relative group flex flex-col gap-2 py-2 px-0 list-none m-0" }, [...t, ...this.addSubs(), this.addWatcher()])
|
|
291
291
|
]);
|
|
292
292
|
}
|
|
@@ -299,7 +299,7 @@ class O extends x {
|
|
|
299
299
|
addWatcher() {
|
|
300
300
|
return {
|
|
301
301
|
watch: {
|
|
302
|
-
value: ["[[path]]",
|
|
302
|
+
value: ["[[path]]", L.data],
|
|
303
303
|
callBack: this.updateLinks.bind(this)
|
|
304
304
|
}
|
|
305
305
|
};
|
|
@@ -340,8 +340,7 @@ class O extends x {
|
|
|
340
340
|
* @returns {void}
|
|
341
341
|
*/
|
|
342
342
|
afterSetup() {
|
|
343
|
-
|
|
344
|
-
this.updateLinks(e);
|
|
343
|
+
this.updateLinks(path);
|
|
345
344
|
}
|
|
346
345
|
/**
|
|
347
346
|
* This will update the links.
|
|
@@ -357,8 +356,8 @@ class O extends x {
|
|
|
357
356
|
this.parentLink.update(t);
|
|
358
357
|
}
|
|
359
358
|
}
|
|
360
|
-
const E = (s) =>
|
|
361
|
-
|
|
359
|
+
const E = (s) => d({ class: "text-lg ml-2" }, s), H = (s) => l({ class: "sticky flex flex-row items-center bg-popover lg:hidden top-0 z-10 border-0 border-b" }, [
|
|
360
|
+
h({
|
|
362
361
|
variant: "icon",
|
|
363
362
|
class: "m-2",
|
|
364
363
|
click: (e, { state: t }) => t.toggle("open"),
|
|
@@ -438,31 +437,31 @@ class U extends n {
|
|
|
438
437
|
this.container = app.root;
|
|
439
438
|
}
|
|
440
439
|
}
|
|
441
|
-
const
|
|
440
|
+
const x = () => h({ class: "m-2", variant: "ghost", addState() {
|
|
442
441
|
return {
|
|
443
442
|
open: !1
|
|
444
443
|
};
|
|
445
444
|
}, click: (s, { state: e }) => e.toggle("open") }, [
|
|
446
445
|
o({}, c.bar.three)
|
|
447
|
-
]), A = (s) =>
|
|
448
|
-
|
|
446
|
+
]), A = (s) => d({ class: "text-lg ml-2" }, s), G = (s) => l({ class: "flex flex-auto flex-row items-center lg:hidden" }, [
|
|
447
|
+
x(),
|
|
449
448
|
s.title && A(s.title)
|
|
450
|
-
]),
|
|
449
|
+
]), m = (s, e) => {
|
|
451
450
|
s.forEach((t) => {
|
|
452
451
|
if (t.options) {
|
|
453
|
-
|
|
452
|
+
m(t.options, e);
|
|
454
453
|
return;
|
|
455
454
|
}
|
|
456
455
|
t.callBack = e;
|
|
457
456
|
});
|
|
458
|
-
},
|
|
459
|
-
|
|
457
|
+
}, v = (s) => l({ class: "bg-background flex flex-auto flex-col w-full relative" }, [
|
|
458
|
+
S(
|
|
460
459
|
"open",
|
|
461
460
|
(e) => e ? [
|
|
462
461
|
new U({ title: s.title }, [
|
|
463
|
-
|
|
462
|
+
B(({ state: t }) => {
|
|
464
463
|
const a = (W) => t.open = !1;
|
|
465
|
-
return
|
|
464
|
+
return m(s.options, a), new f(
|
|
466
465
|
{
|
|
467
466
|
options: s.options
|
|
468
467
|
}
|
|
@@ -473,20 +472,20 @@ const m = () => p({ class: "m-2", variant: "ghost", addState() {
|
|
|
473
472
|
)
|
|
474
473
|
]), q = i((s) => l({ cache: "mobileNav", class: "inline-flex relative lg:hidden" }, [
|
|
475
474
|
l([
|
|
476
|
-
|
|
477
|
-
|
|
475
|
+
x(),
|
|
476
|
+
v(s)
|
|
478
477
|
])
|
|
479
478
|
])), F = i((s) => l({ cache: "mobileNav", class: "flex flex-auto flex-col w-full relative lg:hidden" }, [
|
|
480
479
|
l({ class: "flex flex-auto flex-col w-full" }, [
|
|
481
480
|
G(s),
|
|
482
|
-
|
|
481
|
+
v(s)
|
|
483
482
|
])
|
|
484
483
|
]));
|
|
485
484
|
export {
|
|
486
485
|
T as B,
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
486
|
+
f as I,
|
|
487
|
+
p as M,
|
|
488
|
+
x as N,
|
|
490
489
|
H as P,
|
|
491
490
|
O as S,
|
|
492
491
|
G as T,
|
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-CPh9WDdU.js";
|
|
2
|
+
import { A as X, P as Y, m as Z } from "./simple-search-input-Bd3LOIPc.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-Bd3LOIPc.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-D4dg_lpE.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-gNWndUx9.js";
|
|
4
|
+
import { S as ba } from "./sidebar-menu-9uhT3f6A.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-DxH5thLp.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-gNWndUx9.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-gNWndUx9.js";
|
|
5
|
+
import { S as o } from "./sidebar-menu-9uhT3f6A.js";
|
|
6
6
|
class p extends a {
|
|
7
7
|
/**
|
|
8
8
|
* This will render the page.
|
|
@@ -2,8 +2,8 @@ import { Div as l, Button as b, On as j, Span as T, Nav as f, Ul as p, Section a
|
|
|
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
3
|
import { B as C } from "./buttons-BY-KDbOv.js";
|
|
4
4
|
import { Icons as D } from "./icons.es.js";
|
|
5
|
-
import { O as A } from "./simple-search-input-
|
|
6
|
-
import { V as u, H as F } from "./image-
|
|
5
|
+
import { O as A } from "./simple-search-input-Bd3LOIPc.js";
|
|
6
|
+
import { V as u, H as F } from "./image-gf8yyrt3.js";
|
|
7
7
|
import { IntervalTimer as O } from "@base-framework/organisms";
|
|
8
8
|
class Pt extends k {
|
|
9
9
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Div as r, Span as N, Button as K, OnState as J, On as
|
|
1
|
+
import { Div as r, Span as N, Button as K, OnState as J, On as T, Th as G, UseParent as et, I as st, Thead as at, Tr as nt, Table as j, P as $, 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
3
|
import { B as y, U as q } from "./buttons-BY-KDbOv.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
|
-
import { I as ft, C as mt, c as gt } from "./image-
|
|
6
|
+
import { I as ft, C as mt, c as gt } from "./image-gf8yyrt3.js";
|
|
7
7
|
const yt = (t, e) => {
|
|
8
8
|
const s = t ? t.getBoundingClientRect() : { top: 0, bottom: 0, left: 0 }, a = e.getBoundingClientRect(), n = 10, o = globalThis.scrollX, c = globalThis.scrollY;
|
|
9
9
|
let l = s.left + o, u = s.bottom + c;
|
|
@@ -166,7 +166,7 @@ const xt = m(({ src: t, alt: e }) => !t || t.indexOf(".") === -1 && t.indexOf("[
|
|
|
166
166
|
"4xl": "text-5xl",
|
|
167
167
|
default: "text-base"
|
|
168
168
|
}, pt = (t) => L[t] || L.default, vt = (t) => U[t] || U.default, kt = (t, e = null, s = "md") => {
|
|
169
|
-
const a = V(t), n = vt(s);
|
|
169
|
+
const a = V(String(t)), n = vt(s);
|
|
170
170
|
return r(
|
|
171
171
|
{
|
|
172
172
|
class: `
|
|
@@ -204,9 +204,9 @@ const xt = m(({ src: t, alt: e }) => !t || t.indexOf(".") === -1 && t.indexOf("[
|
|
|
204
204
|
a.substring(0, 3)
|
|
205
205
|
)
|
|
206
206
|
)
|
|
207
|
-
), b = (t) => (t *= 1, t < 10 ? `0${t}` : String(t)), Mt = (t) => (t.indexOf("T") === -1 && t.indexOf(" ") === -1 && (t += "T00:00:01"), t.replace(" ", "T"), t), p = (t, e, s) => `${t}-${b(e + 1)}-${b(s)}`, It = (t) => t ? "bg-accent text-primary" : "",
|
|
208
|
-
const n =
|
|
209
|
-
return n || (t ? It(t) : s ?
|
|
207
|
+
), b = (t) => (t *= 1, t < 10 ? `0${t}` : String(t)), Mt = (t) => (t.indexOf("T") === -1 && t.indexOf(" ") === -1 && (t += "T00:00:01"), t.replace(" ", "T"), t), p = (t, e, s) => `${t}-${b(e + 1)}-${b(s)}`, It = (t) => t ? "bg-accent text-primary" : "", Ot = (t) => t ? "text-muted-foreground opacity-50" : "", Tt = (t, e) => t === e, $t = (t, e) => Tt(t, e) ? "bg-primary text-primary-foreground" : "", Rt = (t, e, s, a) => {
|
|
208
|
+
const n = $t(e, a);
|
|
209
|
+
return n || (t ? It(t) : s ? Ot(s) : "text-foreground");
|
|
210
210
|
}, Y = (t) => {
|
|
211
211
|
const {
|
|
212
212
|
day: e,
|
|
@@ -428,7 +428,7 @@ class De extends R {
|
|
|
428
428
|
*
|
|
429
429
|
* @param {number} month
|
|
430
430
|
* @param {number} year
|
|
431
|
-
* @param {number} [date=null]
|
|
431
|
+
* @param {number|null} [date=null]
|
|
432
432
|
* @returns {void}
|
|
433
433
|
*/
|
|
434
434
|
setCurrentDate(e, s, a = null) {
|
|
@@ -457,7 +457,9 @@ class De extends R {
|
|
|
457
457
|
case "months":
|
|
458
458
|
return Ct(
|
|
459
459
|
{
|
|
460
|
+
// @ts-ignore
|
|
460
461
|
currentMonth: this.data.current.month,
|
|
462
|
+
// @ts-ignore
|
|
461
463
|
currentYear: this.data.current.year,
|
|
462
464
|
onSelect: (s) => {
|
|
463
465
|
this.setCurrentDate(s, this.data.current.year), this.state.view = "calendar";
|
|
@@ -467,7 +469,9 @@ class De extends R {
|
|
|
467
469
|
case "years":
|
|
468
470
|
return zt(
|
|
469
471
|
{
|
|
472
|
+
// @ts-ignore
|
|
470
473
|
currentMonth: this.data.current.month,
|
|
474
|
+
// @ts-ignore
|
|
471
475
|
currentYear: this.data.current.year,
|
|
472
476
|
onSelect: (s) => {
|
|
473
477
|
this.setCurrentDate(this.data.current.month, s), this.state.view = "calendar";
|
|
@@ -476,7 +480,9 @@ class De extends R {
|
|
|
476
480
|
);
|
|
477
481
|
default:
|
|
478
482
|
return Yt({
|
|
483
|
+
// @ts-ignore
|
|
479
484
|
current: this.data.current,
|
|
485
|
+
// @ts-ignore
|
|
480
486
|
today: this.data.today,
|
|
481
487
|
select: (s) => this.selectDate(s),
|
|
482
488
|
next: () => this.goToNextMonth(),
|
|
@@ -531,27 +537,27 @@ const W = ({ label: t, click: e }) => y(
|
|
|
531
537
|
}, Ut = ({ today: t, current: e, blockPriorDates: s, onDateClick: a }) => {
|
|
532
538
|
const { start: n, end: o } = e, c = new Date(e.year, e.month, 1).getDay(), l = new Date(e.year, e.month + 1, 0).getDate(), u = [], f = e.month === 0 ? 11 : e.month - 1, g = e.month === 0 ? e.year - 1 : e.year, C = new Date(g, f + 1, 0).getDate(), v = e.month === 11 ? 0 : e.month + 1, k = e.month === 11 ? e.year + 1 : e.year;
|
|
533
539
|
for (let d = c - 1; d >= 0; d--) {
|
|
534
|
-
const i = C - d, h = p(g, f, i), w = new Date(g, f, i), x = new Date(t.year, t.month, t.date), D = w < x, M = s && D, I = n === h,
|
|
540
|
+
const i = C - d, h = p(g, f, i), w = new Date(g, f, i), x = new Date(t.year, t.month, t.date), D = w < x, M = s && D, I = n === h, O = o === h, tt = n && o && h > n && h < o;
|
|
535
541
|
u.push({
|
|
536
542
|
day: i,
|
|
537
543
|
iso: h,
|
|
538
544
|
disabled: M,
|
|
539
545
|
isStart: I,
|
|
540
|
-
isEnd:
|
|
546
|
+
isEnd: O,
|
|
541
547
|
isBetween: tt,
|
|
542
548
|
isOtherMonth: !0,
|
|
543
549
|
click: () => a(h)
|
|
544
550
|
});
|
|
545
551
|
}
|
|
546
552
|
for (let d = 1; d <= l; d++) {
|
|
547
|
-
const i = p(e.year, e.month, d), h = new Date(e.year, e.month, d), w = new Date(t.year, t.month, t.date), x = h < w, D = s && x, M = n === i, I = o === i,
|
|
553
|
+
const i = p(e.year, e.month, d), h = new Date(e.year, e.month, d), w = new Date(t.year, t.month, t.date), x = h < w, D = s && x, M = n === i, I = o === i, O = n && o && i > n && i < o;
|
|
548
554
|
u.push({
|
|
549
555
|
day: d,
|
|
550
556
|
iso: i,
|
|
551
557
|
disabled: D,
|
|
552
558
|
isStart: M,
|
|
553
559
|
isEnd: I,
|
|
554
|
-
isBetween:
|
|
560
|
+
isBetween: O,
|
|
555
561
|
isOtherMonth: !1,
|
|
556
562
|
click: () => {
|
|
557
563
|
a(i);
|
|
@@ -560,14 +566,14 @@ const W = ({ label: t, click: e }) => y(
|
|
|
560
566
|
}
|
|
561
567
|
const F = (7 - u.length % 7) % 7;
|
|
562
568
|
for (let d = 1; d <= F; d++) {
|
|
563
|
-
const i = p(k, v, d), h = new Date(k, v, d), w = new Date(t.year, t.month, t.date), x = h < w, D = s && x, M = n === i, I = o === i,
|
|
569
|
+
const i = p(k, v, d), h = new Date(k, v, d), w = new Date(t.year, t.month, t.date), x = h < w, D = s && x, M = n === i, I = o === i, O = n && o && i > n && i < o;
|
|
564
570
|
u.push({
|
|
565
571
|
day: d,
|
|
566
572
|
iso: i,
|
|
567
573
|
disabled: D,
|
|
568
574
|
isStart: M,
|
|
569
575
|
isEnd: I,
|
|
570
|
-
isBetween:
|
|
576
|
+
isBetween: O,
|
|
571
577
|
isOtherMonth: !0,
|
|
572
578
|
click: () => a(i)
|
|
573
579
|
});
|
|
@@ -624,14 +630,14 @@ const W = ({ label: t, click: e }) => y(
|
|
|
624
630
|
)
|
|
625
631
|
)
|
|
626
632
|
), Qt = ({ start: t, end: e, selecting: s, onSelectStart: a, onSelectEnd: n }) => r({ class: "flex gap-x-2 mb-4" }, [
|
|
627
|
-
|
|
633
|
+
T("selecting", (o) => y({
|
|
628
634
|
click: a,
|
|
629
635
|
variant: o === "start" ? "primary" : "outline",
|
|
630
636
|
class: "flex-1"
|
|
631
637
|
}, [
|
|
632
638
|
r({ class: "font-medium" }, Q("current.start", "Start Date"))
|
|
633
639
|
])),
|
|
634
|
-
|
|
640
|
+
T("selecting", (o) => y({
|
|
635
641
|
click: n,
|
|
636
642
|
variant: o === "end" ? "primary" : "outline",
|
|
637
643
|
class: "flex-1"
|
|
@@ -790,6 +796,7 @@ class pe extends R {
|
|
|
790
796
|
);
|
|
791
797
|
default:
|
|
792
798
|
return Et({
|
|
799
|
+
// @ts-ignore
|
|
793
800
|
monthName: this.data.monthName,
|
|
794
801
|
year: s.year,
|
|
795
802
|
today: e,
|
|
@@ -946,7 +953,7 @@ class Z extends R {
|
|
|
946
953
|
render() {
|
|
947
954
|
const e = this.border !== !1 ? "border" : "", s = this.getHeaderColCount();
|
|
948
955
|
return r({ class: "w-full flex flex-auto flex-col" }, [
|
|
949
|
-
|
|
956
|
+
T("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
|
|
950
957
|
r({ class: `w-full rounded-md ${e} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
|
|
951
958
|
j({ class: "w-full" }, [
|
|
952
959
|
// @ts-ignore
|
|
@@ -1054,7 +1061,7 @@ class Zt extends Z {
|
|
|
1054
1061
|
render() {
|
|
1055
1062
|
const e = this.border !== !1 ? "border" : "", s = this.getHeaderColCount();
|
|
1056
1063
|
return r({ class: "w-full flex flex-auto flex-col" }, [
|
|
1057
|
-
|
|
1064
|
+
T("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
|
|
1058
1065
|
r({ class: `w-full rounded-md ${e} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
|
|
1059
1066
|
j({ class: "w-full" }, [
|
|
1060
1067
|
// @ts-ignore
|
|
@@ -1137,7 +1144,7 @@ class ee extends Z {
|
|
|
1137
1144
|
render() {
|
|
1138
1145
|
const e = this.border !== !1 ? "border" : "", s = this.getHeaderColCount();
|
|
1139
1146
|
return r({ class: "w-full flex flex-auto flex-col" }, [
|
|
1140
|
-
|
|
1147
|
+
T("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
|
|
1141
1148
|
r({ class: `w-full rounded-md ${e} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
|
|
1142
1149
|
j({ class: "w-full" }, [
|
|
1143
1150
|
// @ts-ignore
|
|
@@ -1201,18 +1208,18 @@ const ke = m((t) => new ee(
|
|
|
1201
1208
|
skeleton: t.skeleton
|
|
1202
1209
|
}
|
|
1203
1210
|
)), se = m(({ name: t, email: e }) => r({ class: "min-w-0 flex-auto" }, [
|
|
1204
|
-
|
|
1205
|
-
|
|
1211
|
+
$({ class: "text-base font-semibold leading-6 m-0" }, t),
|
|
1212
|
+
$({ class: "truncate text-sm leading-5 text-muted-foreground m-0" }, e)
|
|
1206
1213
|
])), ae = () => r({ class: "flex items-center gap-x-1.5" }, [
|
|
1207
1214
|
r({ class: "flex-none rounded-full bg-emerald-500/20 p-1" }, [
|
|
1208
1215
|
r({ class: "h-1.5 w-1.5 rounded-full bg-emerald-500" })
|
|
1209
1216
|
]),
|
|
1210
|
-
|
|
1211
|
-
]), ne = (t) =>
|
|
1217
|
+
$({ class: "text-xs leading-5 text-gray-500" }, "Online")
|
|
1218
|
+
]), ne = (t) => $({ class: "text-xs leading-5 text-muted-foreground" }, [
|
|
1212
1219
|
N("Last seen "),
|
|
1213
1220
|
ot({ datetime: t }, "3h ago")
|
|
1214
1221
|
]), oe = (t, e) => t === "online" ? ae() : ne(e), re = m(({ role: t, lastSeen: e, status: s }) => r({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
|
|
1215
|
-
|
|
1222
|
+
$({ class: "text-sm leading-6 m-0" }, t),
|
|
1216
1223
|
oe(s, e)
|
|
1217
1224
|
])), le = (t) => t.split(" ").map((s) => s[0]).join(""), ie = m((t) => X({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
|
|
1218
1225
|
r({ class: "flex min-w-0 gap-x-4" }, [
|
|
@@ -1356,6 +1363,10 @@ class Me extends ce {
|
|
|
1356
1363
|
const e = this.container;
|
|
1357
1364
|
return r(
|
|
1358
1365
|
{
|
|
1366
|
+
// @ts-ignore
|
|
1367
|
+
animateIn: this.animateIn ?? null,
|
|
1368
|
+
// @ts-ignore
|
|
1369
|
+
animateOut: this.animateOut ?? null,
|
|
1359
1370
|
onState: [
|
|
1360
1371
|
["loading", {
|
|
1361
1372
|
loading: !0
|
|
@@ -1603,7 +1614,7 @@ const de = m(({ index: t, click: e, state: s }, a) => X({
|
|
|
1603
1614
|
]);
|
|
1604
1615
|
}
|
|
1605
1616
|
}
|
|
1606
|
-
),
|
|
1617
|
+
), Oe = m((t) => {
|
|
1607
1618
|
const e = t.icon ?? S.magnifyingGlass.default;
|
|
1608
1619
|
return r({
|
|
1609
1620
|
class: `relative flex items-center w-full rounded-xl bg-muted/30 focus-within:ring-2 focus-within:ring-ring transition-all ${t.containerClass || ""}`
|
|
@@ -1650,7 +1661,7 @@ export {
|
|
|
1650
1661
|
ve as g,
|
|
1651
1662
|
Ie as h,
|
|
1652
1663
|
ue as i,
|
|
1653
|
-
|
|
1664
|
+
Oe as j,
|
|
1654
1665
|
ie as k,
|
|
1655
1666
|
Mt as l,
|
|
1656
1667
|
yt as m,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Span as c, Div as o, Legend as f, Fieldset as x, H4 as C, P as h, UseParent as u, Input as y } from "@base-framework/atoms";
|
|
2
2
|
import { Atom as s, Html as p } from "@base-framework/base";
|
|
3
|
-
import { f as d, g as k, h as w, i as $ } from "./image-
|
|
3
|
+
import { f as d, g as k, h as w, i as $ } from "./image-gf8yyrt3.js";
|
|
4
4
|
const a = {
|
|
5
5
|
gray: {
|
|
6
6
|
backgroundColor: "bg-gray-50",
|
|
@@ -312,7 +312,7 @@ const a = {
|
|
|
312
312
|
"bottom-left": "top-full right-full transform translate-x-1 mt-2",
|
|
313
313
|
left: "top-1/2 right-full transform -translate-y-1/2 mr-2",
|
|
314
314
|
right: "top-1/2 left-full transform -translate-y-1/2 ml-2"
|
|
315
|
-
}, F = (r) => g[r] || g.top, H = s(({ position: r = "top", content: e }, t) => {
|
|
315
|
+
}, F = (r) => g[String(r)] || g.top, H = s(({ position: r = "top", content: e }, t) => {
|
|
316
316
|
const l = F(r);
|
|
317
317
|
return Array.isArray(t) === !1 && (t = [t]), o({ class: "relative group inline-block" }, [
|
|
318
318
|
...t,
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Creates a range slider with a custom style matching the provided design.
|
|
5
5
|
*
|
|
6
|
-
* @
|
|
6
|
+
* @returns {Component}
|
|
7
7
|
*/
|
|
8
|
-
export const RangeSlider:
|
|
8
|
+
export const RangeSlider: any;
|
|
9
9
|
export default RangeSlider;
|
|
10
|
-
import { Veil } from '../../veil.js';
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* @property {boolean} required
|
|
12
12
|
* @property {boolean} selectFirst
|
|
13
13
|
* @property {function} onSelect
|
|
14
|
-
* @
|
|
14
|
+
* @returns {Component}
|
|
15
15
|
*/
|
|
16
16
|
export const Combobox: typeof Component;
|
|
17
17
|
import { Component } from '@base-framework/base';
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* This creates a counter component with an input for count and buttons to increment and decrement.
|
|
5
5
|
*
|
|
6
|
-
* @
|
|
6
|
+
* @returns {Component}
|
|
7
7
|
*/
|
|
8
|
-
export const Counter:
|
|
8
|
+
export const Counter: any;
|
|
9
9
|
export default Counter;
|
|
10
|
-
import { Veil } from '../../atoms/veil.js';
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* This will create a date picker component.
|
|
5
5
|
*
|
|
6
|
-
* @
|
|
6
|
+
* @returns {Component}
|
|
7
7
|
*/
|
|
8
|
-
export const DateRangePicker:
|
|
8
|
+
export const DateRangePicker: any;
|
|
9
9
|
export default DateRangePicker;
|
|
10
|
-
import { Veil } from '../../atoms/veil.js';
|
|
@@ -47,6 +47,12 @@ export class PopOver extends Component {
|
|
|
47
47
|
* @returns {boolean}
|
|
48
48
|
*/
|
|
49
49
|
isOutsideClick(element: object): boolean;
|
|
50
|
+
/**
|
|
51
|
+
* This will set up the events.
|
|
52
|
+
*
|
|
53
|
+
* @returns {array}
|
|
54
|
+
*/
|
|
55
|
+
setupEvents(): any[];
|
|
50
56
|
/**
|
|
51
57
|
* This will override the set up to use the app shell.
|
|
52
58
|
*
|
|
@@ -68,10 +68,10 @@ export class Calendar extends Component {
|
|
|
68
68
|
*
|
|
69
69
|
* @param {number} month
|
|
70
70
|
* @param {number} year
|
|
71
|
-
* @param {number} [date=null]
|
|
71
|
+
* @param {number|null} [date=null]
|
|
72
72
|
* @returns {void}
|
|
73
73
|
*/
|
|
74
|
-
setCurrentDate(month: number, year: number, date?: number): void;
|
|
74
|
+
setCurrentDate(month: number, year: number, date?: number | null): void;
|
|
75
75
|
/**
|
|
76
76
|
* This will select a date.
|
|
77
77
|
*
|
|
@@ -21,6 +21,12 @@ export class DockableOverlay extends Overlay {
|
|
|
21
21
|
* @returns {void}
|
|
22
22
|
*/
|
|
23
23
|
setup(container: object): void;
|
|
24
|
+
/**
|
|
25
|
+
* This will setup the overlay events.
|
|
26
|
+
*
|
|
27
|
+
* @returns {Array<object>}
|
|
28
|
+
*/
|
|
29
|
+
setupEvents(): Array<object>;
|
|
24
30
|
/**
|
|
25
31
|
* This will check if the overlay can dock.
|
|
26
32
|
*
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
export class SignatureCanvas extends Component {
|
|
11
11
|
lineWidth: any;
|
|
12
12
|
lineColor: any;
|
|
13
|
-
canvas:
|
|
13
|
+
canvas: object;
|
|
14
14
|
ctx: any;
|
|
15
15
|
status: string;
|
|
16
16
|
timer: IntervalTimer;
|
|
@@ -32,6 +32,12 @@ export class SignatureCanvas extends Component {
|
|
|
32
32
|
* @returns {object} Layout definition for the canvas.
|
|
33
33
|
*/
|
|
34
34
|
render(): object;
|
|
35
|
+
/**
|
|
36
|
+
* Defines the DOM events to set up for this canvas component.
|
|
37
|
+
*
|
|
38
|
+
* @returns {Array} An array of [eventName, element, callback] definitions.
|
|
39
|
+
*/
|
|
40
|
+
setupEvents(): any[];
|
|
35
41
|
/**
|
|
36
42
|
* Calculates and saves the current pointer position in canvas coordinates.
|
|
37
43
|
*
|
package/package.json
CHANGED