@base-framework/ui 1.2.49 → 1.2.51
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/{confirmation-kPMxirr9.js → confirmation-tFjGo_pD.js} +1 -1
- package/dist/{full-page-C72g6t7s.js → full-page-BSJ6rkbe.js} +175 -175
- package/dist/index.es.js +5 -5
- package/dist/molecules.es.js +2 -2
- package/dist/organisms.es.js +3 -3
- package/dist/pages.es.js +2 -2
- package/dist/{sidebar-menu-CIOu7Ezf.js → sidebar-menu-Qw5a8TeQ.js} +1 -1
- package/dist/{sidebar-menu-page-YxQ1ybaW.js → sidebar-menu-page-CPoNqLGD.js} +2 -2
- package/dist/{signature-panel-9WjCJ3-6.js → signature-panel-C0enb6BJ.js} +191 -209
- package/dist/types/components/atoms/buttons/back-navigation.d.ts +3 -0
- package/dist/types/components/organisms/tabs/tab-navigation.d.ts +1 -6
- package/dist/types/components/organisms/tabs/underlined-tab-navigation.d.ts +1 -6
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { I as E, Span as u, Button as v, OnState as M, Div as o, Legend as
|
|
2
|
-
import { Atom as i,
|
|
1
|
+
import { I as E, Span as u, Button as v, OnState as M, Div as o, Legend as ft, Fieldset as gt, H4 as Ge, P as k, Label as H, Checkbox as ge, Input as p, Textarea as Ke, UseParent as V, Img as me, H5 as mt, H2 as Z, Form as bt, Header as ee, Footer as be, A as Qe, H3 as xe, Nav as pe, Ul as te, Li as ye, OnStateOpen as we, On as J, Dialog as xt, Th as Je, Thead as pt, Tr as yt, Table as ve, Time as wt, H1 as vt } from "@base-framework/atoms";
|
|
2
|
+
import { Atom as i, router as X, Jot as P, Component as S, Html as Xe, Data as O, Events as j, DateTime as se, NavLink as kt, DataTracker as Ze } from "@base-framework/base";
|
|
3
3
|
import { Icons as h } from "./icons.es.js";
|
|
4
|
-
import { Timer as
|
|
4
|
+
import { Timer as Ct, TableBody as St, DataTableBody as $t, ScrollableTableBody as Dt, List as It } from "@base-framework/organisms";
|
|
5
5
|
import { F as W } from "./format-DE4rFWuD.js";
|
|
6
|
-
import { F as
|
|
7
|
-
const
|
|
6
|
+
import { F as Tt } from "./bside-template-C7AQgQ6H.js";
|
|
7
|
+
const Mt = {
|
|
8
8
|
xs: "w-4 h-4",
|
|
9
9
|
sm: "w-6 h-6",
|
|
10
10
|
md: "w-8 h-8",
|
|
@@ -13,7 +13,7 @@ const Tt = {
|
|
|
13
13
|
"2xl": "w-14 h-14",
|
|
14
14
|
"3xl": "w-16 h-16"
|
|
15
15
|
}, he = i((e, t) => {
|
|
16
|
-
const s =
|
|
16
|
+
const s = Mt[e.size || "sm"];
|
|
17
17
|
return E({
|
|
18
18
|
...e,
|
|
19
19
|
// @ts-ignore
|
|
@@ -150,17 +150,74 @@ const Tt = {
|
|
|
150
150
|
textColor: "text-foreground",
|
|
151
151
|
ringColor: "ring-white/10"
|
|
152
152
|
}
|
|
153
|
-
},
|
|
154
|
-
const s =
|
|
153
|
+
}, Pt = (e) => Be[e] || Be.gray, Bt = (e, t = {}) => {
|
|
154
|
+
const s = Pt(e), n = t.backgroundColor ?? s.backgroundColor, a = t.textColor ?? s.textColor, l = t.ringColor ?? s.ringColor;
|
|
155
155
|
return `inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors ${n} ${a} ${l}`;
|
|
156
156
|
}, Ta = i((e, t) => {
|
|
157
|
-
const { type: s, icon: n, size: a = "xs", backgroundColor: l, textColor: r, ringColor: c, ...f } = e, m =
|
|
157
|
+
const { type: s, icon: n, size: a = "xs", backgroundColor: l, textColor: r, ringColor: c, ...f } = e, m = Bt(s, { backgroundColor: l, textColor: r, ringColor: c });
|
|
158
158
|
return u({ ...f, class: m }, [
|
|
159
159
|
n ? x({ size: a, class: "mr-1" }, n) : null,
|
|
160
160
|
...t || []
|
|
161
161
|
]);
|
|
162
162
|
});
|
|
163
|
-
|
|
163
|
+
let B = globalThis.history?.state?._pos ?? 0;
|
|
164
|
+
const ze = B, fe = /* @__PURE__ */ new Map(), le = (e) => (e || "").replace(/^\/+/, "").replace(/\/+$/, ""), zt = (e, t) => {
|
|
165
|
+
if (!t) return !1;
|
|
166
|
+
const s = le(e), n = le(t);
|
|
167
|
+
return s === n || s.startsWith(n + "/");
|
|
168
|
+
}, Ot = (e, t) => {
|
|
169
|
+
const s = le(e);
|
|
170
|
+
if (!t) return s;
|
|
171
|
+
const n = le(t);
|
|
172
|
+
if (!s.startsWith(n)) return s;
|
|
173
|
+
const a = s.substring(n.length);
|
|
174
|
+
if (!a || a === "/") return s;
|
|
175
|
+
const l = a.startsWith("/") ? a.substring(1) : a, r = l.indexOf("/");
|
|
176
|
+
return r < 0 ? s : n + "/" + l.substring(0, r);
|
|
177
|
+
};
|
|
178
|
+
if (typeof globalThis.history?.pushState == "function") {
|
|
179
|
+
const e = globalThis.history.pushState, t = globalThis.history.replaceState;
|
|
180
|
+
globalThis.history.pushState = function(s, n, a) {
|
|
181
|
+
B++;
|
|
182
|
+
const l = s !== null && typeof s == "object" ? { ...s, _pos: B } : { _pos: B };
|
|
183
|
+
return e.call(this, l, n, a);
|
|
184
|
+
}, globalThis.history.replaceState = function(s, n, a) {
|
|
185
|
+
const l = globalThis.history.state?._pos ?? B, r = s !== null && typeof s == "object" ? { ...s, _pos: l } : { _pos: l };
|
|
186
|
+
return t.call(this, r, n, a);
|
|
187
|
+
}, globalThis.addEventListener("popstate", (s) => {
|
|
188
|
+
const n = (
|
|
189
|
+
/** @type {any} */
|
|
190
|
+
s.state?._pos
|
|
191
|
+
);
|
|
192
|
+
typeof n == "number" && (B = n);
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
const Nt = (e) => {
|
|
196
|
+
const t = e || "", s = X.path || "", n = fe.get(t);
|
|
197
|
+
if (n && zt(s, n.basePath))
|
|
198
|
+
return n;
|
|
199
|
+
const a = {
|
|
200
|
+
pos: B,
|
|
201
|
+
sourcePath: X.lastPath || null,
|
|
202
|
+
basePath: Ot(s, e)
|
|
203
|
+
};
|
|
204
|
+
return fe.set(t, a), a;
|
|
205
|
+
}, Ft = (e) => {
|
|
206
|
+
fe.delete(e || "");
|
|
207
|
+
}, Lt = (e) => {
|
|
208
|
+
const t = Nt(e.backUrl);
|
|
209
|
+
return () => {
|
|
210
|
+
Ft(e.backUrl);
|
|
211
|
+
const n = B - t.pos + 1, a = t.pos - 1;
|
|
212
|
+
if (t.pos > ze && a > ze) {
|
|
213
|
+
globalThis.history.go(-n);
|
|
214
|
+
return;
|
|
215
|
+
}
|
|
216
|
+
const l = t.sourcePath || e.backUrl;
|
|
217
|
+
l && X.navigate(l);
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
class et extends S {
|
|
164
221
|
/**
|
|
165
222
|
* This will set the component context.
|
|
166
223
|
*
|
|
@@ -176,9 +233,9 @@ class Ze extends S {
|
|
|
176
233
|
}
|
|
177
234
|
const N = (e) => (
|
|
178
235
|
/** @type {VeilComponentConstructor} */
|
|
179
|
-
P(e,
|
|
236
|
+
P(e, et)
|
|
180
237
|
);
|
|
181
|
-
class Ma extends
|
|
238
|
+
class Ma extends et {
|
|
182
239
|
/**
|
|
183
240
|
* Declare public props and their defaults.
|
|
184
241
|
*/
|
|
@@ -229,7 +286,7 @@ class Ma extends Ze {
|
|
|
229
286
|
]);
|
|
230
287
|
}
|
|
231
288
|
}
|
|
232
|
-
const
|
|
289
|
+
const re = {
|
|
233
290
|
xs: "w-6 h-6",
|
|
234
291
|
sm: "w-8 h-8",
|
|
235
292
|
md: "w-10 h-10",
|
|
@@ -268,7 +325,7 @@ class Pa extends S {
|
|
|
268
325
|
* @returns {object}
|
|
269
326
|
*/
|
|
270
327
|
render() {
|
|
271
|
-
const t = this.icon, s = this.activeIcon || this.icon, n =
|
|
328
|
+
const t = this.icon, s = this.activeIcon || this.icon, n = re[this.size] || re.md, a = ["xs", "sm"].includes(this.size) ? "xs" : "sm", l = this.class ?? "bg-background/40 backdrop-blur-sm", r = "text-foreground", c = this.activeClass || r, f = this.circle ?? !1, m = this.fill;
|
|
272
329
|
return v({
|
|
273
330
|
click: () => this.handleToggle(),
|
|
274
331
|
// @ts-ignore
|
|
@@ -285,7 +342,7 @@ class Pa extends S {
|
|
|
285
342
|
}
|
|
286
343
|
}
|
|
287
344
|
const Ba = i((e, t) => {
|
|
288
|
-
const s = e.size || "md", n =
|
|
345
|
+
const s = e.size || "md", n = re[s] || re.md, a = ["xs", "sm"].includes(s) ? "xs" : "sm";
|
|
289
346
|
return v({
|
|
290
347
|
...e,
|
|
291
348
|
// @ts-ignore
|
|
@@ -295,57 +352,12 @@ const Ba = i((e, t) => {
|
|
|
295
352
|
e.icon ? x({ size: a }, e.icon) : null,
|
|
296
353
|
...t || []
|
|
297
354
|
]);
|
|
298
|
-
})
|
|
299
|
-
let B = globalThis.history?.state?._pos ?? 0;
|
|
300
|
-
const Bt = B, fe = /* @__PURE__ */ new Map(), re = (e) => (e || "").replace(/^\/+/, "").replace(/\/+$/, ""), zt = (e, t) => {
|
|
301
|
-
if (!t) return !1;
|
|
302
|
-
const s = re(e), n = re(t);
|
|
303
|
-
return s === n || s.startsWith(n + "/");
|
|
304
|
-
}, Ot = (e, t) => {
|
|
305
|
-
const s = re(e);
|
|
306
|
-
if (!t) return s;
|
|
307
|
-
const n = re(t);
|
|
308
|
-
if (!s.startsWith(n)) return s;
|
|
309
|
-
const a = s.substring(n.length);
|
|
310
|
-
if (!a || a === "/") return s;
|
|
311
|
-
const l = a.startsWith("/") ? a.substring(1) : a, r = l.indexOf("/");
|
|
312
|
-
return r < 0 ? s : n + "/" + l.substring(0, r);
|
|
313
|
-
};
|
|
314
|
-
if (typeof globalThis.history?.pushState == "function") {
|
|
315
|
-
const e = globalThis.history.pushState, t = globalThis.history.replaceState;
|
|
316
|
-
globalThis.history.pushState = function(s, n, a) {
|
|
317
|
-
B++;
|
|
318
|
-
const l = s !== null && typeof s == "object" ? { ...s, _pos: B } : { _pos: B };
|
|
319
|
-
return e.call(this, l, n, a);
|
|
320
|
-
}, globalThis.history.replaceState = function(s, n, a) {
|
|
321
|
-
const l = globalThis.history.state?._pos ?? B, r = s !== null && typeof s == "object" ? { ...s, _pos: l } : { _pos: l };
|
|
322
|
-
return t.call(this, r, n, a);
|
|
323
|
-
}, globalThis.addEventListener("popstate", (s) => {
|
|
324
|
-
const n = (
|
|
325
|
-
/** @type {any} */
|
|
326
|
-
s.state?._pos
|
|
327
|
-
);
|
|
328
|
-
typeof n == "number" && (B = n);
|
|
329
|
-
});
|
|
330
|
-
}
|
|
331
|
-
const Nt = (e) => {
|
|
332
|
-
const t = e || "", s = X.path || "", n = fe.get(t);
|
|
333
|
-
if (n && zt(s, n.basePath))
|
|
334
|
-
return n;
|
|
335
|
-
const a = {
|
|
336
|
-
pos: B,
|
|
337
|
-
sourcePath: X.lastPath || null,
|
|
338
|
-
basePath: Ot(s, e)
|
|
339
|
-
};
|
|
340
|
-
return fe.set(t, a), a;
|
|
341
|
-
}, Ft = (e) => {
|
|
342
|
-
fe.delete(e || "");
|
|
343
|
-
}, A = (e) => i((t, s) => v({
|
|
355
|
+
}), A = (e) => i((t, s) => v({
|
|
344
356
|
...e,
|
|
345
357
|
...t,
|
|
346
358
|
// @ts-ignore
|
|
347
359
|
class: `bttn ${e.class} ${t.class || ""}`
|
|
348
|
-
}, s)),
|
|
360
|
+
}, s)), tt = i(
|
|
349
361
|
(e, t) => v({
|
|
350
362
|
...e,
|
|
351
363
|
// @ts-ignore
|
|
@@ -357,24 +369,12 @@ const Nt = (e) => {
|
|
|
357
369
|
// @ts-ignore
|
|
358
370
|
e.icon && e.position === "right" ? x({ size: e.size || "sm", class: e.animation ?? null }, e.icon) : null
|
|
359
371
|
])
|
|
360
|
-
),
|
|
372
|
+
), Oe = (e) => i((t, s) => tt({
|
|
361
373
|
...e,
|
|
362
374
|
...t,
|
|
363
375
|
// @ts-ignore
|
|
364
376
|
class: `bttn ${e.class} ${t.class || ""}`
|
|
365
|
-
}, s)),
|
|
366
|
-
const t = Nt(e.backUrl);
|
|
367
|
-
return () => {
|
|
368
|
-
Ft(e.backUrl);
|
|
369
|
-
const n = B - t.pos + 1;
|
|
370
|
-
if (t.pos > Bt) {
|
|
371
|
-
globalThis.history.go(-n);
|
|
372
|
-
return;
|
|
373
|
-
}
|
|
374
|
-
const a = e.backUrl;
|
|
375
|
-
a && X.navigate(a);
|
|
376
|
-
};
|
|
377
|
-
}, At = (e) => i((t, s) => (t.icon = t.icon || h.arrows.left, t.click = t.click || Lt(t), et({
|
|
377
|
+
}, s)), At = (e) => i((t, s) => (t.icon = t.icon || h.arrows.left, t.click = t.click || Lt(t), tt({
|
|
378
378
|
...e,
|
|
379
379
|
...t
|
|
380
380
|
}, s))), Rt = i((e, t) => {
|
|
@@ -394,7 +394,7 @@ const Nt = (e) => {
|
|
|
394
394
|
e.icon ? x({ size: s === "xs" ? "xs" : "sm" }, e.icon) : null,
|
|
395
395
|
...t || []
|
|
396
396
|
]);
|
|
397
|
-
}),
|
|
397
|
+
}), Ne = {
|
|
398
398
|
primary: A({ class: "primary" }),
|
|
399
399
|
secondary: A({ class: "secondary" }),
|
|
400
400
|
destructive: A({ class: "destructive" }),
|
|
@@ -402,24 +402,24 @@ const Nt = (e) => {
|
|
|
402
402
|
outline: A({ class: "outline" }),
|
|
403
403
|
ghost: A({ class: "ghost" }),
|
|
404
404
|
link: A({ class: "link" }),
|
|
405
|
-
icon:
|
|
406
|
-
withIcon:
|
|
405
|
+
icon: Oe({ class: "icon" }),
|
|
406
|
+
withIcon: Oe({ class: "with-icon" }),
|
|
407
407
|
back: At({ class: "with-icon back-button" }),
|
|
408
408
|
circleIcon: Rt
|
|
409
|
-
}, b = i((e, t) => (
|
|
409
|
+
}, b = i((e, t) => (Ne[e.variant] || Ne.primary)(e, t)), za = i((e, t) => b({ ...e, variant: "withIcon", icon: h.loading, animation: "animate-spin" }, t)), jt = i((e, t) => {
|
|
410
410
|
const s = e.margin ?? "my-5 mx-5", n = e.padding ?? "p-4", a = e.border ?? "border-border";
|
|
411
411
|
return e.hover && (e.class += " hover:shadow-lg hover:bg-muted/50"), o({
|
|
412
412
|
...e,
|
|
413
413
|
// @ts-ignore
|
|
414
414
|
class: `rounded-lg ${a} bg-card text-card-foreground shadow-md min-w-[120px] min-h-[80px] ${s} ${n} ${e.class || ""}`
|
|
415
415
|
}, t);
|
|
416
|
-
}), Et = i((e, t) =>
|
|
416
|
+
}), Et = i((e, t) => ft({
|
|
417
417
|
...e,
|
|
418
418
|
// @ts-ignore
|
|
419
419
|
class: ` font-medium -mt-4 -mx-1 px-2 py-2 ${e.class || ""}`
|
|
420
420
|
}, t)), Oa = i((e, t) => {
|
|
421
421
|
const s = e.border === "full" ? "border rounded-md" : "border-t";
|
|
422
|
-
return
|
|
422
|
+
return gt({
|
|
423
423
|
...e,
|
|
424
424
|
// @ts-ignore
|
|
425
425
|
class: `p-6 ${s} ${e.class || ""}`
|
|
@@ -443,7 +443,7 @@ const Nt = (e) => {
|
|
|
443
443
|
class: `flex flex-auto flex-col gap-y-1 ${e.labelProps?.class || ""}`
|
|
444
444
|
}, [
|
|
445
445
|
// @ts-ignore
|
|
446
|
-
|
|
446
|
+
Ge({ class: "text-base" }, e.label),
|
|
447
447
|
// @ts-ignore
|
|
448
448
|
e.description && k({ class: "text-sm text-muted-foreground" }, e.description)
|
|
449
449
|
]),
|
|
@@ -658,7 +658,7 @@ const Ce = (e) => e.id || e.name || `floating-${++ss}`, Se = (e, t, s, n) => e ?
|
|
|
658
658
|
), ja = i((e) => {
|
|
659
659
|
const t = Ce(e);
|
|
660
660
|
return o({ class: "relative" }, [
|
|
661
|
-
|
|
661
|
+
Ke({
|
|
662
662
|
...e,
|
|
663
663
|
id: t,
|
|
664
664
|
placeholder: " ",
|
|
@@ -675,7 +675,7 @@ const Ce = (e) => e.id || e.name || `floating-${++ss}`, Se = (e, t, s, n) => e ?
|
|
|
675
675
|
id: t,
|
|
676
676
|
class: `[&>option]:text-foreground [&>option]:bg-background ${Xt} ${a.class || ""}`.trim(),
|
|
677
677
|
onCreated(l) {
|
|
678
|
-
s &&
|
|
678
|
+
s && Xe.setupSelectOptions(l, s), typeof n == "function" && n(l);
|
|
679
679
|
}
|
|
680
680
|
},
|
|
681
681
|
ns(),
|
|
@@ -711,7 +711,7 @@ const Ce = (e) => e.id || e.name || `floating-${++ss}`, Se = (e, t, s, n) => e ?
|
|
|
711
711
|
// @ts-ignore
|
|
712
712
|
label: e.label || "Email",
|
|
713
713
|
placeholder: "Email address"
|
|
714
|
-
})), Ua = i((e) =>
|
|
714
|
+
})), Ua = i((e) => Ke({
|
|
715
715
|
...e,
|
|
716
716
|
as: "textarea",
|
|
717
717
|
// @ts-ignore
|
|
@@ -858,7 +858,7 @@ const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
|
|
|
858
858
|
return {
|
|
859
859
|
tag: "select",
|
|
860
860
|
onCreated(a) {
|
|
861
|
-
t &&
|
|
861
|
+
t && Xe.setupSelectOptions(a, t), s && s(a);
|
|
862
862
|
},
|
|
863
863
|
...n,
|
|
864
864
|
class: `[&>option]:text-foreground [&>option]:bg-background ${ke} ${n.class || ""}`.trim()
|
|
@@ -875,7 +875,7 @@ const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
|
|
|
875
875
|
* If there's an error loading the image, hide it.
|
|
876
876
|
*/
|
|
877
877
|
error: (c) => c.target.style.visibility = "hidden"
|
|
878
|
-
})), is = (e) => !e || isNaN(e) ? null : e,
|
|
878
|
+
})), is = (e) => !e || isNaN(e) ? null : e, Fe = (e, t) => {
|
|
879
879
|
const s = e, n = 16, a = 2 * Math.PI * n, l = s / 100 * a, r = `
|
|
880
880
|
<svg class="w-40 h-40 mx-auto" viewBox="0 0 36 36" xmlns="http://www.w3.org/2000/svg">
|
|
881
881
|
<!-- Background Circle -->
|
|
@@ -919,13 +919,13 @@ const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
|
|
|
919
919
|
html: r
|
|
920
920
|
});
|
|
921
921
|
}, ao = i((e) => {
|
|
922
|
-
const t = e.progress || 0, s = e.class || "", n =
|
|
922
|
+
const t = e.progress || 0, s = e.class || "", n = Fe(t, s);
|
|
923
923
|
return o({
|
|
924
924
|
class: "circle-graph-wrap",
|
|
925
925
|
onSet: [
|
|
926
926
|
// @ts-ignore
|
|
927
927
|
e.prop,
|
|
928
|
-
(a) => (a = is(a), a ?
|
|
928
|
+
(a) => (a = is(a), a ? Fe(a, s) : n)
|
|
929
929
|
]
|
|
930
930
|
}, [n]);
|
|
931
931
|
}), cs = () => V(({ state: e }) => o({
|
|
@@ -1025,7 +1025,7 @@ const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
|
|
|
1025
1025
|
style: m,
|
|
1026
1026
|
"aria-hidden": "true"
|
|
1027
1027
|
});
|
|
1028
|
-
}),
|
|
1028
|
+
}), Le = {
|
|
1029
1029
|
top: "bottom-full left-1/2 transform -translate-x-1/2 mb-2",
|
|
1030
1030
|
"top-right": "bottom-full left-full transform -translate-x-1 mb-2",
|
|
1031
1031
|
"top-left": "bottom-full right-full transform translate-x-1 mb-2",
|
|
@@ -1034,7 +1034,7 @@ const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
|
|
|
1034
1034
|
"bottom-left": "top-full right-full transform translate-x-1 mt-2",
|
|
1035
1035
|
left: "top-1/2 right-full transform -translate-y-1/2 mr-2",
|
|
1036
1036
|
right: "top-1/2 left-full transform -translate-y-1/2 ml-2"
|
|
1037
|
-
}, ds = (e) =>
|
|
1037
|
+
}, ds = (e) => Le[String(e)] || Le.top, io = i(({ position: e = "top", content: t }, s) => {
|
|
1038
1038
|
const n = ds(e);
|
|
1039
1039
|
return Array.isArray(s) === !1 && (s = [s]), o({ class: "relative group inline-block" }, [
|
|
1040
1040
|
...s,
|
|
@@ -1046,7 +1046,7 @@ const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
|
|
|
1046
1046
|
`
|
|
1047
1047
|
}, t)
|
|
1048
1048
|
]);
|
|
1049
|
-
}),
|
|
1049
|
+
}), Ae = {
|
|
1050
1050
|
info: {
|
|
1051
1051
|
borderColor: "border-blue-500",
|
|
1052
1052
|
bgColor: "bg-muted/10",
|
|
@@ -1074,8 +1074,8 @@ const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
|
|
|
1074
1074
|
}
|
|
1075
1075
|
}, us = (e, t) => o({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
|
|
1076
1076
|
x({ size: "sm" }, e)
|
|
1077
|
-
]), hs = (e) =>
|
|
1078
|
-
const { borderColor: a, bgColor: l, iconColor: r } =
|
|
1077
|
+
]), hs = (e) => mt({ class: "font-semibold" }, e), fs = (e) => k({ class: "text-sm text-muted-foreground" }, e), co = i(({ title: e, description: t, icon: s, type: n = "default" }) => {
|
|
1078
|
+
const { borderColor: a, bgColor: l, iconColor: r } = Ae[n] || Ae.default;
|
|
1079
1079
|
return o({ class: `flex items-start p-4 border rounded-lg ${l} ${a}` }, [
|
|
1080
1080
|
// Icon and content
|
|
1081
1081
|
s && us(s, r),
|
|
@@ -1233,7 +1233,7 @@ const ms = i((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
|
|
|
1233
1233
|
)), fo = i((e, t = []) => {
|
|
1234
1234
|
const s = e.border ? "border-t" : "";
|
|
1235
1235
|
return o({ ...e, class: `flex flex-col pb-4 px-6 gap-y-4 ${s} ${e.class || ""}` }, t);
|
|
1236
|
-
}), ys = (e) => e.tag === "input" || e.tag === "select" || e.tag === "textarea",
|
|
1236
|
+
}), ys = (e) => e.tag === "input" || e.tag === "select" || e.tag === "textarea", st = (e, t, s) => e.map((n) => !n || (n.children && n.children.length > 0 && (n.children = st(n.children, t, s)), !n.required) ? n : ys(n) ? {
|
|
1237
1237
|
...n,
|
|
1238
1238
|
aria: {
|
|
1239
1239
|
invalid: ["hasError"]
|
|
@@ -1241,7 +1241,7 @@ const ms = i((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
|
|
|
1241
1241
|
invalid: s,
|
|
1242
1242
|
input: t
|
|
1243
1243
|
} : n), ws = i((e, t) => {
|
|
1244
|
-
const a =
|
|
1244
|
+
const a = st(t, (l) => {
|
|
1245
1245
|
l.target.checkValidity() && e.setError(null);
|
|
1246
1246
|
}, (l) => {
|
|
1247
1247
|
e.setError(l.target.validationMessage);
|
|
@@ -1291,10 +1291,10 @@ const ms = i((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
|
|
|
1291
1291
|
}
|
|
1292
1292
|
), vs = (e, t, s = null) => {
|
|
1293
1293
|
e.target.checkValidity() && (e.preventDefault(), s && s(e, t));
|
|
1294
|
-
},
|
|
1294
|
+
}, nt = i(
|
|
1295
1295
|
(e, t) => (
|
|
1296
1296
|
// @ts-ignore
|
|
1297
|
-
|
|
1297
|
+
bt({ ...e, submit: (s, n) => vs(s, n, e.submit), class: `w-full ${e.class ?? ""}` }, t)
|
|
1298
1298
|
)
|
|
1299
1299
|
), mo = i((e, t) => (
|
|
1300
1300
|
// @ts-ignore
|
|
@@ -1342,7 +1342,7 @@ const ms = i((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
|
|
|
1342
1342
|
l.target === r.panel && (l.preventDefault(), l.stopPropagation(), r.state.open = !1);
|
|
1343
1343
|
}
|
|
1344
1344
|
}, [
|
|
1345
|
-
|
|
1345
|
+
nt({
|
|
1346
1346
|
class: "modal-content relative bg-background z-1 flex flex-auto flex-col gap-y-4 min-w-0",
|
|
1347
1347
|
// @ts-ignore
|
|
1348
1348
|
submit: (l, r) => e.onSubmit && e.onSubmit(r),
|
|
@@ -1354,7 +1354,7 @@ const ms = i((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
|
|
|
1354
1354
|
!e.hideFooter && be({ class: "modal-footer sticky bottom-0 bg-background/80 backdrop-blur-md flex flex-none justify-between py-4 px-6 z-10" }, e.buttons)
|
|
1355
1355
|
])
|
|
1356
1356
|
]);
|
|
1357
|
-
}),
|
|
1357
|
+
}), Re = {
|
|
1358
1358
|
info: {
|
|
1359
1359
|
bgColor: "bg-muted/10",
|
|
1360
1360
|
borderColor: "border-blue-500",
|
|
@@ -1382,7 +1382,7 @@ const ms = i((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
|
|
|
1382
1382
|
}
|
|
1383
1383
|
}, Cs = (e) => ee({ class: "flex justify-center" }, [
|
|
1384
1384
|
xe({ class: "text-lg font-bold mb-0" }, e)
|
|
1385
|
-
]), Ss = i(({ href: e, class: t }, s) =>
|
|
1385
|
+
]), Ss = i(({ href: e, class: t }, s) => Qe({
|
|
1386
1386
|
class: `bg-popover text-popover-foreground relative flex flex-auto flex-col justify-start shadow-lg pointer-events-auto p-4 border rounded-md min-w-[340px] max-w-[450px] mt-4 ${t}`,
|
|
1387
1387
|
href: e,
|
|
1388
1388
|
animateIn: "pullRightIn",
|
|
@@ -1434,7 +1434,7 @@ class wo extends S {
|
|
|
1434
1434
|
*/
|
|
1435
1435
|
afterSetup() {
|
|
1436
1436
|
const t = this.duration;
|
|
1437
|
-
t !== "infinite" && (this.timer = new
|
|
1437
|
+
t !== "infinite" && (this.timer = new Ct(t, this.close.bind(this)), this.timer.start());
|
|
1438
1438
|
}
|
|
1439
1439
|
/**
|
|
1440
1440
|
* This will get the style properties based on the notification type.
|
|
@@ -1443,7 +1443,7 @@ class wo extends S {
|
|
|
1443
1443
|
*/
|
|
1444
1444
|
getTypeStyles() {
|
|
1445
1445
|
const t = this.type || "default";
|
|
1446
|
-
return
|
|
1446
|
+
return Re[t] || Re.default;
|
|
1447
1447
|
}
|
|
1448
1448
|
/**
|
|
1449
1449
|
* This will get the buttons for the notification.
|
|
@@ -1496,7 +1496,7 @@ class wo extends S {
|
|
|
1496
1496
|
t && t.stopPropagation(), this.duration !== "infinite" && this.timer.stop(), this.onClick && this.onClick(), this.destroy();
|
|
1497
1497
|
}
|
|
1498
1498
|
}
|
|
1499
|
-
const
|
|
1499
|
+
const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v({
|
|
1500
1500
|
class: 'text-sm gap-1 font-medium leading-none disabled:cursor-not-allowed disabled:opacity-70 flex flex-col items-center justify-between rounded-md border-2 bg-popover p-4 hover:bg-accent hover:text-accent-foreground data-[state="active"]:border-primary [&:has([data-state="active"])]:border-primary',
|
|
1501
1501
|
onState: ["method", { active: e }],
|
|
1502
1502
|
dataSet: ["method", ["state", e, "active"]],
|
|
@@ -1508,7 +1508,7 @@ const Re = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
|
|
|
1508
1508
|
u(t)
|
|
1509
1509
|
])), Ds = (e) => {
|
|
1510
1510
|
const t = document.documentElement;
|
|
1511
|
-
if (e === "system" && (e = globalThis.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light"),
|
|
1511
|
+
if (e === "system" && (e = globalThis.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light"), je && !je("(prefers-color-scheme: " + e + ")").matches) {
|
|
1512
1512
|
t.classList.add(e);
|
|
1513
1513
|
return;
|
|
1514
1514
|
}
|
|
@@ -1597,9 +1597,9 @@ const Re = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
|
|
|
1597
1597
|
src: e,
|
|
1598
1598
|
alt: t,
|
|
1599
1599
|
class: "rounded-full"
|
|
1600
|
-
})), Ts = (e) => e && (Array.isArray(e) && (e = e.join(" ")), typeof e != "string" && (e = String(e)), e.split(" ").map((t) => t.charAt(0)).join("").toUpperCase()),
|
|
1601
|
-
s.textContent =
|
|
1602
|
-
}]),
|
|
1600
|
+
})), Ts = (e) => e && (Array.isArray(e) && (e = e.join(" ")), typeof e != "string" && (e = String(e)), e.split(" ").map((t) => t.charAt(0)).join("").toUpperCase()), at = (e) => !e || e.length < 2 ? e : Ts(e), Ms = (e) => u([e, (t, s) => {
|
|
1601
|
+
s.textContent = at(t);
|
|
1602
|
+
}]), Ee = {
|
|
1603
1603
|
xs: "h-6 w-6",
|
|
1604
1604
|
sm: "h-8 w-8",
|
|
1605
1605
|
md: "h-12 w-12",
|
|
@@ -1609,7 +1609,7 @@ const Re = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
|
|
|
1609
1609
|
"3xl": "h-48 w-48",
|
|
1610
1610
|
"4xl": "h-64 w-64",
|
|
1611
1611
|
default: "h-12 w-12"
|
|
1612
|
-
},
|
|
1612
|
+
}, He = {
|
|
1613
1613
|
xs: "text-[7px]",
|
|
1614
1614
|
sm: "text-xs",
|
|
1615
1615
|
md: "text-base",
|
|
@@ -1619,8 +1619,8 @@ const Re = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
|
|
|
1619
1619
|
"3xl": "text-4xl",
|
|
1620
1620
|
"4xl": "text-5xl",
|
|
1621
1621
|
default: "text-base"
|
|
1622
|
-
}, Ps = (e) =>
|
|
1623
|
-
const n =
|
|
1622
|
+
}, Ps = (e) => Ee[e] || Ee.default, Bs = (e) => He[e] || He.default, zs = (e, t = null, s = "md") => {
|
|
1623
|
+
const n = at(String(e)), a = Bs(s);
|
|
1624
1624
|
return o(
|
|
1625
1625
|
{
|
|
1626
1626
|
class: `
|
|
@@ -1644,7 +1644,7 @@ const Re = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
|
|
|
1644
1644
|
zs(s, n, a)
|
|
1645
1645
|
]
|
|
1646
1646
|
);
|
|
1647
|
-
}),
|
|
1647
|
+
}), _e = (e) => !e || e.includes("[[") || e.indexOf(".") === -1 && e.indexOf("blob:") === -1, Co = P(
|
|
1648
1648
|
{
|
|
1649
1649
|
/**
|
|
1650
1650
|
* Get the initial state for the component.
|
|
@@ -1654,7 +1654,7 @@ const Re = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
|
|
|
1654
1654
|
state() {
|
|
1655
1655
|
return {
|
|
1656
1656
|
// @ts-ignore
|
|
1657
|
-
loaded: !!this.src && !
|
|
1657
|
+
loaded: !!this.src && !_e(this.src)
|
|
1658
1658
|
};
|
|
1659
1659
|
},
|
|
1660
1660
|
/**
|
|
@@ -1700,7 +1700,7 @@ const Re = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
|
|
|
1700
1700
|
s.preventDefault(), s.stopPropagation(), this.openFileBrowse();
|
|
1701
1701
|
}
|
|
1702
1702
|
}, [
|
|
1703
|
-
M("loaded", (s) => s === !1 ||
|
|
1703
|
+
M("loaded", (s) => s === !1 || _e(this.src) ? H({
|
|
1704
1704
|
htmlFor: e,
|
|
1705
1705
|
class: "z-10 flex flex-col items-center justify-center text-sm text-muted-foreground group-hover:text-primary"
|
|
1706
1706
|
}, [
|
|
@@ -1797,7 +1797,7 @@ const Re = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
|
|
|
1797
1797
|
this.input = null;
|
|
1798
1798
|
}
|
|
1799
1799
|
}
|
|
1800
|
-
), Ns = (e, t) =>
|
|
1800
|
+
), Ns = (e, t) => Qe(
|
|
1801
1801
|
{
|
|
1802
1802
|
href: e,
|
|
1803
1803
|
"aria-current": t === "Breadcrumb" && "page",
|
|
@@ -1851,7 +1851,7 @@ const Re = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
|
|
|
1851
1851
|
);
|
|
1852
1852
|
}
|
|
1853
1853
|
}
|
|
1854
|
-
),
|
|
1854
|
+
), Ue = {
|
|
1855
1855
|
xs: "h-1 w-1",
|
|
1856
1856
|
sm: "h-2 w-2",
|
|
1857
1857
|
md: "h-4 w-4",
|
|
@@ -1860,7 +1860,7 @@ const Re = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
|
|
|
1860
1860
|
"2xl": "h-16 w-16",
|
|
1861
1861
|
"3xl": "h-24 w-24",
|
|
1862
1862
|
default: "h-4 w-4"
|
|
1863
|
-
}, As = (e) =>
|
|
1863
|
+
}, As = (e) => Ue[e] || Ue.default, Rs = ({ index: e, size: t }) => o({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
|
|
1864
1864
|
u({
|
|
1865
1865
|
class: "block w-full h-full rounded-full transition-colors",
|
|
1866
1866
|
onSet: ["activeIndex", {
|
|
@@ -2037,17 +2037,17 @@ const Re = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
|
|
|
2037
2037
|
]);
|
|
2038
2038
|
}
|
|
2039
2039
|
}
|
|
2040
|
-
),
|
|
2040
|
+
), ot = ({ icon: e, click: t, ariaLabel: s }) => b({
|
|
2041
2041
|
variant: "icon",
|
|
2042
2042
|
class: "flex flex-none",
|
|
2043
2043
|
click: t,
|
|
2044
2044
|
icon: e,
|
|
2045
2045
|
"aria-label": s
|
|
2046
|
-
}), Ys = ({ click: e }) =>
|
|
2046
|
+
}), Ys = ({ click: e }) => ot({
|
|
2047
2047
|
icon: h.circleMinus,
|
|
2048
2048
|
click: e,
|
|
2049
2049
|
ariaLabel: "Decrement"
|
|
2050
|
-
}), Ws = ({ click: e }) =>
|
|
2050
|
+
}), Ws = ({ click: e }) => ot({
|
|
2051
2051
|
icon: h.circlePlus,
|
|
2052
2052
|
click: e,
|
|
2053
2053
|
ariaLabel: "Increment"
|
|
@@ -2186,7 +2186,7 @@ const Re = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
|
|
|
2186
2186
|
);
|
|
2187
2187
|
}
|
|
2188
2188
|
return w;
|
|
2189
|
-
},
|
|
2189
|
+
}, Ye = ({ label: e, click: t }) => b(
|
|
2190
2190
|
{
|
|
2191
2191
|
class: `
|
|
2192
2192
|
inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
|
|
@@ -2202,8 +2202,8 @@ const Re = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
|
|
|
2202
2202
|
), tn = ({ onMonthClick: e, onYearClick: t, next: s, previous: n }) => o({ class: "flex items-center justify-center gap-x-2 relative min-h-12 text-sm font-medium" }, [
|
|
2203
2203
|
b({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
|
|
2204
2204
|
b({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
|
|
2205
|
-
|
|
2206
|
-
|
|
2205
|
+
Ye({ label: "Previous", click: n }),
|
|
2206
|
+
Ye({ label: "Next", click: s })
|
|
2207
2207
|
]), sn = (e) => o(
|
|
2208
2208
|
{ class: "flex items-center justify-center h-9 w-auto text-[0.8rem] font-normal text-muted-foreground" },
|
|
2209
2209
|
e
|
|
@@ -2541,7 +2541,7 @@ const rn = (e) => {
|
|
|
2541
2541
|
);
|
|
2542
2542
|
}
|
|
2543
2543
|
}
|
|
2544
|
-
),
|
|
2544
|
+
), We = ({ label: e, click: t }) => b(
|
|
2545
2545
|
{
|
|
2546
2546
|
class: `
|
|
2547
2547
|
inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
|
|
@@ -2557,8 +2557,8 @@ const rn = (e) => {
|
|
|
2557
2557
|
), gn = ({ onMonthClick: e, onYearClick: t, next: s, previous: n }) => o({ class: "flex items-center justify-center gap-x-2 relative min-h-12 text-sm font-medium" }, [
|
|
2558
2558
|
b({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
|
|
2559
2559
|
b({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
|
|
2560
|
-
|
|
2561
|
-
|
|
2560
|
+
We({ label: "Previous", click: n }),
|
|
2561
|
+
We({ label: "Next", click: s })
|
|
2562
2562
|
]), mn = (e) => o({ class: "h-9 flex items-center justify-center font-medium" }, e), bn = () => o(
|
|
2563
2563
|
{ class: "grid grid-cols-7 gap-1 text-center text-xs font-medium text-muted-foreground mb-2" },
|
|
2564
2564
|
["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(mn)
|
|
@@ -2578,14 +2578,14 @@ const rn = (e) => {
|
|
|
2578
2578
|
}, pn = ({ today: e, current: t, blockPriorDates: s, onDateClick: n }) => {
|
|
2579
2579
|
const { start: a, end: l } = t, r = new Date(t.year, t.month, 1).getDay(), c = new Date(t.year, t.month + 1, 0).getDate(), f = [], m = t.month === 0 ? 11 : t.month - 1, w = t.month === 0 ? t.year - 1 : t.year, q = new Date(w, m + 1, 0).getDate(), U = t.month === 11 ? 0 : t.month + 1, Y = t.month === 11 ? t.year + 1 : t.year;
|
|
2580
2580
|
for (let g = r - 1; g >= 0; g--) {
|
|
2581
|
-
const d = q - g, y = R(w, m, d), I = new Date(w, m, d), T = new Date(e.year, e.month, e.date), L = I < T, G = s && L, K = a === y, Q = l === y,
|
|
2581
|
+
const d = q - g, y = R(w, m, d), I = new Date(w, m, d), T = new Date(e.year, e.month, e.date), L = I < T, G = s && L, K = a === y, Q = l === y, ht = a && l && y > a && y < l;
|
|
2582
2582
|
f.push({
|
|
2583
2583
|
day: d,
|
|
2584
2584
|
iso: y,
|
|
2585
2585
|
disabled: G,
|
|
2586
2586
|
isStart: K,
|
|
2587
2587
|
isEnd: Q,
|
|
2588
|
-
isBetween:
|
|
2588
|
+
isBetween: ht,
|
|
2589
2589
|
isOtherMonth: !0,
|
|
2590
2590
|
click: () => n(y)
|
|
2591
2591
|
});
|
|
@@ -2684,16 +2684,16 @@ const rn = (e) => {
|
|
|
2684
2684
|
variant: l === "start" ? "primary" : "outline",
|
|
2685
2685
|
class: "flex-1"
|
|
2686
2686
|
}, [
|
|
2687
|
-
o({ class: "font-medium" },
|
|
2687
|
+
o({ class: "font-medium" }, Ve("current.start", "Start Date"))
|
|
2688
2688
|
])),
|
|
2689
2689
|
J("selecting", (l) => b({
|
|
2690
2690
|
click: a,
|
|
2691
2691
|
variant: l === "end" ? "primary" : "outline",
|
|
2692
2692
|
class: "flex-1"
|
|
2693
2693
|
}, [
|
|
2694
|
-
o({ class: "font-medium" },
|
|
2694
|
+
o({ class: "font-medium" }, Ve("current.end", "End Date"))
|
|
2695
2695
|
]))
|
|
2696
|
-
]),
|
|
2696
|
+
]), Ve = (e, t) => [`[[${e}]]`, (s) => s == null ? t : kn(s)], kn = (e) => {
|
|
2697
2697
|
const t = /* @__PURE__ */ new Date(e + "T00:00:00"), s = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], n = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
|
2698
2698
|
return `${s[t.getDay()]}, ${t.getDate()} ${n[t.getMonth()]}`;
|
|
2699
2699
|
}, Cn = ({ currentYear: e, onSelect: t }) => {
|
|
@@ -3066,7 +3066,7 @@ function On({ handleTimeSelect: e }) {
|
|
|
3066
3066
|
)
|
|
3067
3067
|
);
|
|
3068
3068
|
}
|
|
3069
|
-
function
|
|
3069
|
+
function qe(e) {
|
|
3070
3070
|
if (!e)
|
|
3071
3071
|
return { hour: null, minute: null, meridian: null };
|
|
3072
3072
|
const t = /^(\d{1,2}):(\d{2})(?::(\d{2}))?\s?(AM|PM)?$/i, s = e.match(t);
|
|
@@ -3087,7 +3087,7 @@ const Bo = N(
|
|
|
3087
3087
|
* @member {object} state
|
|
3088
3088
|
*/
|
|
3089
3089
|
state() {
|
|
3090
|
-
const e = this.selectedTime ?? null, { hour: t, minute: s, meridian: n } =
|
|
3090
|
+
const e = this.selectedTime ?? null, { hour: t, minute: s, meridian: n } = qe(e);
|
|
3091
3091
|
return {
|
|
3092
3092
|
selectedTime: e,
|
|
3093
3093
|
open: !1,
|
|
@@ -3103,7 +3103,7 @@ const Bo = N(
|
|
|
3103
3103
|
*/
|
|
3104
3104
|
after() {
|
|
3105
3105
|
if (this.input.value) {
|
|
3106
|
-
const { hour: e, minute: t, meridian: s } =
|
|
3106
|
+
const { hour: e, minute: t, meridian: s } = qe(this.input.value);
|
|
3107
3107
|
this.state.set({
|
|
3108
3108
|
hour: e,
|
|
3109
3109
|
minute: t,
|
|
@@ -3183,7 +3183,7 @@ const Bo = N(
|
|
|
3183
3183
|
x({ size: "lg" }, e)
|
|
3184
3184
|
]), Fn = ({ title: e }) => ee({ class: "flex flex-auto items-center" }, [
|
|
3185
3185
|
Z({ class: "text-lg font-semibold" }, e)
|
|
3186
|
-
]), zo = i((e, t) =>
|
|
3186
|
+
]), zo = i((e, t) => xt(
|
|
3187
3187
|
{
|
|
3188
3188
|
class: `fixed pullUpIn z-30 w-[98%] border md:w-full max-w-lg bg-popover text-foreground shadow-lg duration-200
|
|
3189
3189
|
rounded-lg flex flex-auto flex-col
|
|
@@ -3210,7 +3210,7 @@ const Bo = N(
|
|
|
3210
3210
|
])
|
|
3211
3211
|
]
|
|
3212
3212
|
)), Oo = i((e, t = []) => o({ class: "w-full max-w-md p-6 m-auto" }, [
|
|
3213
|
-
|
|
3213
|
+
nt({ class: "flex flex-auto flex-col" }, [
|
|
3214
3214
|
o({ class: "flex flex-auto flex-col gap-y-4" }, [
|
|
3215
3215
|
o({ class: "flex flex-auto items-center justify-center" }, [
|
|
3216
3216
|
// @ts-ignore
|
|
@@ -3243,11 +3243,11 @@ i(({ value: e, label: t }) => v({
|
|
|
3243
3243
|
const Ln = (e, t) => {
|
|
3244
3244
|
const s = e.toggleAllSelectedRows();
|
|
3245
3245
|
t.state.checked = !s;
|
|
3246
|
-
}, An = (e) =>
|
|
3246
|
+
}, An = (e) => Je({ class: `cursor-pointer py-3 px-4 text-base w-10 ${e.class || ""}` }, [
|
|
3247
3247
|
V((t) => new qt({ class: "mr-2", onChange: (s, n) => Ln(t, n) }))
|
|
3248
3248
|
]), Rn = ({ align: e, sortable: t, key: s, label: n, sort: a, class: l }) => {
|
|
3249
3249
|
const r = e || "justify-start";
|
|
3250
|
-
return
|
|
3250
|
+
return Je({
|
|
3251
3251
|
class: `cursor-pointer py-3 px-4 text-base ${l || ""}`,
|
|
3252
3252
|
click: t && (() => a(s))
|
|
3253
3253
|
}, [
|
|
@@ -3256,8 +3256,8 @@ const Ln = (e, t) => {
|
|
|
3256
3256
|
t && E({ class: "ml-2", html: h.arrows.upDown })
|
|
3257
3257
|
])
|
|
3258
3258
|
]);
|
|
3259
|
-
}, $e = (e) =>
|
|
3260
|
-
|
|
3259
|
+
}, $e = (e) => pt([
|
|
3260
|
+
yt({
|
|
3261
3261
|
class: "text-muted-foreground border-b",
|
|
3262
3262
|
map: [
|
|
3263
3263
|
e.headers,
|
|
@@ -3270,7 +3270,7 @@ const Ln = (e, t) => {
|
|
|
3270
3270
|
})
|
|
3271
3271
|
]
|
|
3272
3272
|
})
|
|
3273
|
-
]), jn = ({ key: e, rows: t, selectRow: s, rowItem: n, emptyState: a, skeleton: l, columnCount: r }) => new
|
|
3273
|
+
]), jn = ({ key: e, rows: t, selectRow: s, rowItem: n, emptyState: a, skeleton: l, columnCount: r }) => new St({
|
|
3274
3274
|
cache: "list",
|
|
3275
3275
|
key: e,
|
|
3276
3276
|
items: t,
|
|
@@ -3280,7 +3280,7 @@ const Ln = (e, t) => {
|
|
|
3280
3280
|
skeleton: l,
|
|
3281
3281
|
columnCount: r
|
|
3282
3282
|
});
|
|
3283
|
-
class
|
|
3283
|
+
class lt extends S {
|
|
3284
3284
|
/**
|
|
3285
3285
|
* Initializes component data.
|
|
3286
3286
|
*
|
|
@@ -3445,7 +3445,7 @@ class ot extends S {
|
|
|
3445
3445
|
this.data.selectedRows = [];
|
|
3446
3446
|
}
|
|
3447
3447
|
}
|
|
3448
|
-
const En = (e) => new
|
|
3448
|
+
const En = (e) => new $t({
|
|
3449
3449
|
cache: "list",
|
|
3450
3450
|
loadMoreItems: e.loadMoreItems,
|
|
3451
3451
|
offset: e.offset,
|
|
@@ -3459,7 +3459,7 @@ const En = (e) => new St({
|
|
|
3459
3459
|
skeleton: e.skeleton,
|
|
3460
3460
|
columnCount: e.columnCount
|
|
3461
3461
|
});
|
|
3462
|
-
class Hn extends
|
|
3462
|
+
class Hn extends lt {
|
|
3463
3463
|
/**
|
|
3464
3464
|
* Renders the DataTable component.
|
|
3465
3465
|
*
|
|
@@ -3546,7 +3546,7 @@ const No = i((e) => new Hn(
|
|
|
3546
3546
|
// @ts-ignore
|
|
3547
3547
|
skeleton: e.skeleton
|
|
3548
3548
|
}
|
|
3549
|
-
)), _n = (e) => new
|
|
3549
|
+
)), _n = (e) => new Dt({
|
|
3550
3550
|
cache: "list",
|
|
3551
3551
|
scrollContainer: e.scrollContainer,
|
|
3552
3552
|
loadMoreItems: e.loadMoreItems,
|
|
@@ -3561,7 +3561,7 @@ const No = i((e) => new Hn(
|
|
|
3561
3561
|
skeleton: e.skeleton,
|
|
3562
3562
|
columnCount: e.columnCount
|
|
3563
3563
|
});
|
|
3564
|
-
class Un extends
|
|
3564
|
+
class Un extends lt {
|
|
3565
3565
|
/**
|
|
3566
3566
|
* Renders the DataTable component.
|
|
3567
3567
|
*
|
|
@@ -3662,7 +3662,7 @@ const Fo = i((e) => new Un(
|
|
|
3662
3662
|
k({ class: "text-xs leading-5 text-gray-500" }, "Online")
|
|
3663
3663
|
]), Vn = (e) => k({ class: "text-xs leading-5 text-muted-foreground" }, [
|
|
3664
3664
|
u("Last seen "),
|
|
3665
|
-
|
|
3665
|
+
wt({ datetime: e }, "3h ago")
|
|
3666
3666
|
]), qn = (e, t) => e === "online" ? Wn() : Vn(t), Gn = i(({ role: e, lastSeen: t, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
|
|
3667
3667
|
k({ class: "text-sm leading-6 m-0" }, e),
|
|
3668
3668
|
qn(s, t)
|
|
@@ -3681,7 +3681,7 @@ const Fo = i((e) => new Un(
|
|
|
3681
3681
|
// @ts-ignore
|
|
3682
3682
|
status: e.status
|
|
3683
3683
|
})
|
|
3684
|
-
])), Lo = i((e) => new
|
|
3684
|
+
])), Lo = i((e) => new It({
|
|
3685
3685
|
cache: "list",
|
|
3686
3686
|
key: "name",
|
|
3687
3687
|
// @ts-ignore
|
|
@@ -3785,7 +3785,7 @@ const Xn = i(({ options: e, click: t }, s) => ({
|
|
|
3785
3785
|
]
|
|
3786
3786
|
)
|
|
3787
3787
|
];
|
|
3788
|
-
class
|
|
3788
|
+
class rt extends S {
|
|
3789
3789
|
/**
|
|
3790
3790
|
* This will declare the props for the compiler.
|
|
3791
3791
|
*
|
|
@@ -3817,7 +3817,7 @@ class lt extends S {
|
|
|
3817
3817
|
*/
|
|
3818
3818
|
addLink() {
|
|
3819
3819
|
const t = this.options && this.options.length > 0, s = this.content || Zn(String(this.label), this.icon, t);
|
|
3820
|
-
return this.href ? new
|
|
3820
|
+
return this.href ? new kt(
|
|
3821
3821
|
{
|
|
3822
3822
|
class: "flex flex-auto flex-row rounded-md transition-all overflow-x-hidden",
|
|
3823
3823
|
cache: "link",
|
|
@@ -3845,7 +3845,7 @@ class lt extends S {
|
|
|
3845
3845
|
}
|
|
3846
3846
|
}
|
|
3847
3847
|
const ea = i(({ map: e }, t) => te({ class: "navigation-group flex flex-col gap-2 list-none m-0 py-2 px-0", map: e }, [
|
|
3848
|
-
|
|
3848
|
+
Ge({ class: "text-muted-foreground text-sm py-0 px-4 whitespace-nowrap" }, t)
|
|
3849
3849
|
]));
|
|
3850
3850
|
class ta extends S {
|
|
3851
3851
|
/**
|
|
@@ -3905,10 +3905,10 @@ class ta extends S {
|
|
|
3905
3905
|
* @returns {object}
|
|
3906
3906
|
*/
|
|
3907
3907
|
addLink(t) {
|
|
3908
|
-
return new
|
|
3908
|
+
return new rt(t);
|
|
3909
3909
|
}
|
|
3910
3910
|
}
|
|
3911
|
-
class
|
|
3911
|
+
class it extends ta {
|
|
3912
3912
|
onCreated() {
|
|
3913
3913
|
this.links = [];
|
|
3914
3914
|
}
|
|
@@ -3943,7 +3943,7 @@ class rt extends ta {
|
|
|
3943
3943
|
* @returns {object}
|
|
3944
3944
|
*/
|
|
3945
3945
|
addLink(t) {
|
|
3946
|
-
const s = new
|
|
3946
|
+
const s = new rt(t);
|
|
3947
3947
|
if (this.links.push(s), !s.options)
|
|
3948
3948
|
return s;
|
|
3949
3949
|
const n = this.addSubNav(s);
|
|
@@ -3958,7 +3958,7 @@ const sa = (e, t) => new RegExp(`${e}($|/|\\.).*`).test(t), na = (e, t) => {
|
|
|
3958
3958
|
const s = e.link.panel.pathname;
|
|
3959
3959
|
return !s && e.isSelected() ? !0 : e.exact ? t === s : sa(s, t);
|
|
3960
3960
|
};
|
|
3961
|
-
class aa extends
|
|
3961
|
+
class aa extends it {
|
|
3962
3962
|
/**
|
|
3963
3963
|
* This will declare the props for the compiler.
|
|
3964
3964
|
*
|
|
@@ -4126,31 +4126,31 @@ class ia extends S {
|
|
|
4126
4126
|
this.container = app.root;
|
|
4127
4127
|
}
|
|
4128
4128
|
}
|
|
4129
|
-
const
|
|
4129
|
+
const ct = () => b({ class: "m-2", variant: "ghost", addState() {
|
|
4130
4130
|
return {
|
|
4131
4131
|
open: !1
|
|
4132
4132
|
};
|
|
4133
4133
|
}, click: (e, { state: t }) => t.toggle("open") }, [
|
|
4134
4134
|
x({}, h.bar.three)
|
|
4135
4135
|
]), ca = (e) => xe({ class: "text-lg ml-2" }, e), da = (e) => o({ class: "flex flex-auto flex-row items-center lg:hidden" }, [
|
|
4136
|
-
|
|
4136
|
+
ct(),
|
|
4137
4137
|
e.title && ca(e.title)
|
|
4138
|
-
]),
|
|
4138
|
+
]), dt = (e, t) => {
|
|
4139
4139
|
e.forEach((s) => {
|
|
4140
4140
|
if (s.options) {
|
|
4141
|
-
|
|
4141
|
+
dt(s.options, t);
|
|
4142
4142
|
return;
|
|
4143
4143
|
}
|
|
4144
4144
|
s.callBack = t;
|
|
4145
4145
|
});
|
|
4146
|
-
},
|
|
4146
|
+
}, ut = (e) => o({ class: "bg-background flex flex-auto flex-col w-full relative" }, [
|
|
4147
4147
|
M(
|
|
4148
4148
|
"open",
|
|
4149
4149
|
(t) => t ? [
|
|
4150
4150
|
new ia({ title: e.title }, [
|
|
4151
4151
|
V(({ state: s }) => {
|
|
4152
4152
|
const n = (a) => s.open = !1;
|
|
4153
|
-
return
|
|
4153
|
+
return dt(e.options, n), new it(
|
|
4154
4154
|
{
|
|
4155
4155
|
options: e.options
|
|
4156
4156
|
}
|
|
@@ -4161,13 +4161,13 @@ const it = () => b({ class: "m-2", variant: "ghost", addState() {
|
|
|
4161
4161
|
)
|
|
4162
4162
|
]), Ao = i((e) => o({ cache: "mobileNav", class: "inline-flex relative lg:hidden" }, [
|
|
4163
4163
|
o([
|
|
4164
|
-
|
|
4165
|
-
|
|
4164
|
+
ct(),
|
|
4165
|
+
ut(e)
|
|
4166
4166
|
])
|
|
4167
4167
|
])), Ro = i((e) => o({ cache: "mobileNav", class: "flex flex-auto flex-col w-full relative lg:hidden" }, [
|
|
4168
4168
|
o({ class: "flex flex-auto flex-col w-full" }, [
|
|
4169
4169
|
da(e),
|
|
4170
|
-
|
|
4170
|
+
ut(e)
|
|
4171
4171
|
])
|
|
4172
4172
|
])), jo = i((e) => {
|
|
4173
4173
|
const t = e.margin || "m-4 ml-0";
|
|
@@ -4270,7 +4270,7 @@ class ua extends S {
|
|
|
4270
4270
|
return this.children;
|
|
4271
4271
|
}
|
|
4272
4272
|
}
|
|
4273
|
-
|
|
4273
|
+
Ze.addType("dockableOverlay", (e) => {
|
|
4274
4274
|
if (!e)
|
|
4275
4275
|
return;
|
|
4276
4276
|
const t = e.component;
|
|
@@ -4346,7 +4346,7 @@ class Eo extends ua {
|
|
|
4346
4346
|
* @returns {void}
|
|
4347
4347
|
*/
|
|
4348
4348
|
afterSetup() {
|
|
4349
|
-
|
|
4349
|
+
Ze.add(
|
|
4350
4350
|
this.container,
|
|
4351
4351
|
"dockableOverlay",
|
|
4352
4352
|
{
|
|
@@ -4620,7 +4620,7 @@ const pa = i((e, t) => (e.class = "basic-page pt-[80px] sm:pt-0 flex flex-auto f
|
|
|
4620
4620
|
...e,
|
|
4621
4621
|
children: t
|
|
4622
4622
|
})), ya = i(({ title: e, description: t }) => ee({ class: "sm:py-8 px-6 md:px-5 flex flex-col" }, [
|
|
4623
|
-
|
|
4623
|
+
vt({ class: "scroll-m-20 text-3xl font-bold tracking-tight" }, e),
|
|
4624
4624
|
t && k({ class: "text-base text-muted-foreground py-2 max-w-[700px]" }, t)
|
|
4625
4625
|
]));
|
|
4626
4626
|
class Uo extends xa {
|
|
@@ -4643,7 +4643,7 @@ class Uo extends xa {
|
|
|
4643
4643
|
title: this.title,
|
|
4644
4644
|
description: this.description
|
|
4645
4645
|
}),
|
|
4646
|
-
|
|
4646
|
+
Tt(this.children)
|
|
4647
4647
|
]);
|
|
4648
4648
|
}
|
|
4649
4649
|
}
|
|
@@ -4652,7 +4652,7 @@ export {
|
|
|
4652
4652
|
co as A,
|
|
4653
4653
|
jo as B,
|
|
4654
4654
|
ln as C,
|
|
4655
|
-
|
|
4655
|
+
lt as D,
|
|
4656
4656
|
bo as E,
|
|
4657
4657
|
zo as F,
|
|
4658
4658
|
Eo as G,
|
|
@@ -4670,7 +4670,7 @@ export {
|
|
|
4670
4670
|
Na as S,
|
|
4671
4671
|
ja as T,
|
|
4672
4672
|
Ra as U,
|
|
4673
|
-
|
|
4673
|
+
nt as V,
|
|
4674
4674
|
uo as W,
|
|
4675
4675
|
fo as X,
|
|
4676
4676
|
ho as Y,
|
|
@@ -4716,12 +4716,12 @@ export {
|
|
|
4716
4716
|
Xa as aZ,
|
|
4717
4717
|
Lo as a_,
|
|
4718
4718
|
Co as aa,
|
|
4719
|
-
|
|
4719
|
+
it as ab,
|
|
4720
4720
|
F as ac,
|
|
4721
4721
|
Et as ad,
|
|
4722
4722
|
za as ae,
|
|
4723
4723
|
So as af,
|
|
4724
|
-
|
|
4724
|
+
rt as ag,
|
|
4725
4725
|
pa as ah,
|
|
4726
4726
|
Pe as ai,
|
|
4727
4727
|
Ys as aj,
|
|
@@ -4729,7 +4729,7 @@ export {
|
|
|
4729
4729
|
Ro as al,
|
|
4730
4730
|
an as am,
|
|
4731
4731
|
Ga as an,
|
|
4732
|
-
|
|
4732
|
+
ct as ao,
|
|
4733
4733
|
Jn as ap,
|
|
4734
4734
|
ta as aq,
|
|
4735
4735
|
ea as ar,
|
|
@@ -4742,7 +4742,7 @@ export {
|
|
|
4742
4742
|
Ws as ay,
|
|
4743
4743
|
ae as az,
|
|
4744
4744
|
ra as b,
|
|
4745
|
-
|
|
4745
|
+
et as b0,
|
|
4746
4746
|
N as b1,
|
|
4747
4747
|
Ka as b2,
|
|
4748
4748
|
Gs as b3,
|