@base-framework/ui 1.2.47 → 1.2.50
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-CanrebjP.js → confirmation-tFjGo_pD.js} +1 -1
- package/dist/{full-page-B94AsK9X.js → full-page-BSJ6rkbe.js} +224 -211
- 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-ChdeuGcO.js → sidebar-menu-Qw5a8TeQ.js} +1 -1
- package/dist/{sidebar-menu-page-BSdU46Zw.js → sidebar-menu-page-CPoNqLGD.js} +2 -2
- package/dist/{signature-panel-B63AkDZP.js → signature-panel-C0enb6BJ.js} +191 -209
- package/dist/types/components/atoms/buttons/back-navigation.d.ts +3 -0
- package/dist/types/components/organisms/lists/dynamic-data-table.d.ts +1 -0
- package/dist/types/components/organisms/lists/dynamic-table.d.ts +1 -0
- package/dist/types/components/organisms/lists/scrollable-data-table.d.ts +1 -0
- package/dist/types/components/organisms/lists/scrollable-table.d.ts +1 -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
|
|
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
|
|
@@ -43,13 +43,13 @@ const Tt = {
|
|
|
43
43
|
xl: "48px",
|
|
44
44
|
"2xl": "56px",
|
|
45
45
|
"3xl": "64px"
|
|
46
|
-
},
|
|
46
|
+
}, Me = {
|
|
47
47
|
outlined: "material-symbols-outlined",
|
|
48
48
|
filled: "material-symbols-filled",
|
|
49
49
|
rounded: "material-symbols-rounded",
|
|
50
50
|
sharp: "material-symbols-sharp"
|
|
51
|
-
},
|
|
52
|
-
const t = e.size || "sm", s = e.variant || "outlined", n = Ie[t] || Ie.sm, a = Te[t] || Te.sm, l =
|
|
51
|
+
}, Pe = i((e) => {
|
|
52
|
+
const t = e.size || "sm", s = e.variant || "outlined", n = Ie[t] || Ie.sm, a = Te[t] || Te.sm, l = Me[s] || Me.outlined;
|
|
53
53
|
return u({
|
|
54
54
|
...e,
|
|
55
55
|
// @ts-ignore
|
|
@@ -62,11 +62,11 @@ const Tt = {
|
|
|
62
62
|
name: void 0
|
|
63
63
|
// @ts-ignore
|
|
64
64
|
}, e.name);
|
|
65
|
-
}), x = (e = {}, t) => t ? typeof t == "string" && t.includes("<svg") ? he(e, t) : typeof t == "object" && t.name ?
|
|
65
|
+
}), x = (e = {}, t) => t ? typeof t == "string" && t.includes("<svg") ? he(e, t) : typeof t == "object" && t.name ? Pe({
|
|
66
66
|
...e,
|
|
67
67
|
name: t.name,
|
|
68
68
|
variant: t.variant || e.variant || "outlined"
|
|
69
|
-
}) : typeof t == "string" ?
|
|
69
|
+
}) : typeof t == "string" ? Pe({
|
|
70
70
|
...e,
|
|
71
71
|
name: t
|
|
72
72
|
}) : he(e, t) : null, Da = (e) => e ? !!(typeof e == "object" && e.name || typeof e == "string" && !e.includes("<svg")) : !1, Ia = (e) => typeof e == "string" && e.includes("<svg"), Be = {
|
|
@@ -150,17 +150,74 @@ const Tt = {
|
|
|
150
150
|
textColor: "text-foreground",
|
|
151
151
|
ringColor: "ring-white/10"
|
|
152
152
|
}
|
|
153
|
-
}, Pt = (e) => Be[e] || Be.gray,
|
|
153
|
+
}, Pt = (e) => Be[e] || Be.gray, Bt = (e, t = {}) => {
|
|
154
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
|
-
|
|
236
|
+
P(e, et)
|
|
180
237
|
);
|
|
181
|
-
class
|
|
238
|
+
class Ma extends et {
|
|
182
239
|
/**
|
|
183
240
|
* Declare public props and their defaults.
|
|
184
241
|
*/
|
|
@@ -221,7 +278,7 @@ class Pa extends Ze {
|
|
|
221
278
|
// @ts-ignore
|
|
222
279
|
class: `toggle-btn inline-flex items-center gap-1.5 bg-transparent border-0 p-0 cursor-pointer text-foreground/70 hover:text-foreground transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${this.class || ""}`
|
|
223
280
|
}, [
|
|
224
|
-
|
|
281
|
+
M(
|
|
225
282
|
"active",
|
|
226
283
|
(r) => x({ size: t, variant: r && l ? "filled" : "outlined" }, r ? n : s)
|
|
227
284
|
),
|
|
@@ -229,7 +286,7 @@ class Pa 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",
|
|
@@ -237,7 +294,7 @@ const le = {
|
|
|
237
294
|
xl: "w-14 h-14",
|
|
238
295
|
"2xl": "w-16 h-16"
|
|
239
296
|
};
|
|
240
|
-
class
|
|
297
|
+
class Pa extends S {
|
|
241
298
|
/**
|
|
242
299
|
* Declare public props.
|
|
243
300
|
*/
|
|
@@ -268,13 +325,13 @@ class Ma 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
|
|
275
332
|
class: `circle-toggle-btn inline-flex items-center justify-center rounded-full border-0 cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 ${n} ${l}${f ? " rounded-full w-[40px] h-[40px] max-w-[40px]" : ""}`
|
|
276
333
|
}, [
|
|
277
|
-
|
|
334
|
+
M("active", (w) => [
|
|
278
335
|
x({
|
|
279
336
|
size: a,
|
|
280
337
|
variant: w && m ? "filled" : "outlined",
|
|
@@ -285,7 +342,7 @@ class Ma 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
|
]),
|
|
@@ -461,7 +461,7 @@ const Nt = (e) => {
|
|
|
461
461
|
checked: t,
|
|
462
462
|
bind: s
|
|
463
463
|
}), Yt = () => u({ class: "absolute text-xs pointer-events-none" }, [
|
|
464
|
-
|
|
464
|
+
M(
|
|
465
465
|
"checked",
|
|
466
466
|
(e) => e ? E({
|
|
467
467
|
class: "w-2 h-2 pointer-events-none",
|
|
@@ -494,7 +494,7 @@ const Nt = (e) => {
|
|
|
494
494
|
class: "text-base cursor-pointer",
|
|
495
495
|
htmlFor: e,
|
|
496
496
|
click: s
|
|
497
|
-
}, t), qt =
|
|
497
|
+
}, t), qt = P(
|
|
498
498
|
{
|
|
499
499
|
/**
|
|
500
500
|
* This will initialize the state of the checkbox.
|
|
@@ -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,21 +858,24 @@ 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()
|
|
865
865
|
};
|
|
866
|
-
}), rs = i(({ src: e, alt: t, class: s, checkPath: n = !0 }) => !e || (s = s || "", n && e.indexOf(".") === -1 && e.indexOf("[[") === -1) ? null : me({
|
|
866
|
+
}), rs = i(({ src: e, alt: t, class: s, checkPath: n = !0, loading: a = "lazy", decoding: l = "async", fetchPriority: r = "auto" }) => !e || (s = s || "", n && e.indexOf(".") === -1 && e.indexOf("[[") === -1) ? null : me({
|
|
867
867
|
class: `absolute w-full h-full object-cover fadeIn ${s}`,
|
|
868
868
|
src: e,
|
|
869
869
|
alt: t,
|
|
870
|
-
|
|
870
|
+
loading: a,
|
|
871
|
+
decoding: l,
|
|
872
|
+
fetchPriority: r,
|
|
873
|
+
load: (c) => c.target.style.visibility = "visible",
|
|
871
874
|
/**
|
|
872
875
|
* If there's an error loading the image, hide it.
|
|
873
876
|
*/
|
|
874
|
-
error: (
|
|
875
|
-
})), is = (e) => !e || isNaN(e) ? null : e,
|
|
877
|
+
error: (c) => c.target.style.visibility = "hidden"
|
|
878
|
+
})), is = (e) => !e || isNaN(e) ? null : e, Fe = (e, t) => {
|
|
876
879
|
const s = e, n = 16, a = 2 * Math.PI * n, l = s / 100 * a, r = `
|
|
877
880
|
<svg class="w-40 h-40 mx-auto" viewBox="0 0 36 36" xmlns="http://www.w3.org/2000/svg">
|
|
878
881
|
<!-- Background Circle -->
|
|
@@ -916,13 +919,13 @@ const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
|
|
|
916
919
|
html: r
|
|
917
920
|
});
|
|
918
921
|
}, ao = i((e) => {
|
|
919
|
-
const t = e.progress || 0, s = e.class || "", n =
|
|
922
|
+
const t = e.progress || 0, s = e.class || "", n = Fe(t, s);
|
|
920
923
|
return o({
|
|
921
924
|
class: "circle-graph-wrap",
|
|
922
925
|
onSet: [
|
|
923
926
|
// @ts-ignore
|
|
924
927
|
e.prop,
|
|
925
|
-
(a) => (a = is(a), a ?
|
|
928
|
+
(a) => (a = is(a), a ? Fe(a, s) : n)
|
|
926
929
|
]
|
|
927
930
|
}, [n]);
|
|
928
931
|
}), cs = () => V(({ state: e }) => o({
|
|
@@ -1022,7 +1025,7 @@ const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
|
|
|
1022
1025
|
style: m,
|
|
1023
1026
|
"aria-hidden": "true"
|
|
1024
1027
|
});
|
|
1025
|
-
}),
|
|
1028
|
+
}), Le = {
|
|
1026
1029
|
top: "bottom-full left-1/2 transform -translate-x-1/2 mb-2",
|
|
1027
1030
|
"top-right": "bottom-full left-full transform -translate-x-1 mb-2",
|
|
1028
1031
|
"top-left": "bottom-full right-full transform translate-x-1 mb-2",
|
|
@@ -1031,7 +1034,7 @@ const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
|
|
|
1031
1034
|
"bottom-left": "top-full right-full transform translate-x-1 mt-2",
|
|
1032
1035
|
left: "top-1/2 right-full transform -translate-y-1/2 mr-2",
|
|
1033
1036
|
right: "top-1/2 left-full transform -translate-y-1/2 ml-2"
|
|
1034
|
-
}, ds = (e) =>
|
|
1037
|
+
}, ds = (e) => Le[String(e)] || Le.top, io = i(({ position: e = "top", content: t }, s) => {
|
|
1035
1038
|
const n = ds(e);
|
|
1036
1039
|
return Array.isArray(s) === !1 && (s = [s]), o({ class: "relative group inline-block" }, [
|
|
1037
1040
|
...s,
|
|
@@ -1043,7 +1046,7 @@ const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
|
|
|
1043
1046
|
`
|
|
1044
1047
|
}, t)
|
|
1045
1048
|
]);
|
|
1046
|
-
}),
|
|
1049
|
+
}), Ae = {
|
|
1047
1050
|
info: {
|
|
1048
1051
|
borderColor: "border-blue-500",
|
|
1049
1052
|
bgColor: "bg-muted/10",
|
|
@@ -1071,8 +1074,8 @@ const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
|
|
|
1071
1074
|
}
|
|
1072
1075
|
}, us = (e, t) => o({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
|
|
1073
1076
|
x({ size: "sm" }, e)
|
|
1074
|
-
]), hs = (e) =>
|
|
1075
|
-
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;
|
|
1076
1079
|
return o({ class: `flex items-start p-4 border rounded-lg ${l} ${a}` }, [
|
|
1077
1080
|
// Icon and content
|
|
1078
1081
|
s && us(s, r),
|
|
@@ -1230,7 +1233,7 @@ const ms = i((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
|
|
|
1230
1233
|
)), fo = i((e, t = []) => {
|
|
1231
1234
|
const s = e.border ? "border-t" : "";
|
|
1232
1235
|
return o({ ...e, class: `flex flex-col pb-4 px-6 gap-y-4 ${s} ${e.class || ""}` }, t);
|
|
1233
|
-
}), 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) ? {
|
|
1234
1237
|
...n,
|
|
1235
1238
|
aria: {
|
|
1236
1239
|
invalid: ["hasError"]
|
|
@@ -1238,7 +1241,7 @@ const ms = i((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
|
|
|
1238
1241
|
invalid: s,
|
|
1239
1242
|
input: t
|
|
1240
1243
|
} : n), ws = i((e, t) => {
|
|
1241
|
-
const a =
|
|
1244
|
+
const a = st(t, (l) => {
|
|
1242
1245
|
l.target.checkValidity() && e.setError(null);
|
|
1243
1246
|
}, (l) => {
|
|
1244
1247
|
e.setError(l.target.validationMessage);
|
|
@@ -1288,10 +1291,10 @@ const ms = i((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
|
|
|
1288
1291
|
}
|
|
1289
1292
|
), vs = (e, t, s = null) => {
|
|
1290
1293
|
e.target.checkValidity() && (e.preventDefault(), s && s(e, t));
|
|
1291
|
-
},
|
|
1294
|
+
}, nt = i(
|
|
1292
1295
|
(e, t) => (
|
|
1293
1296
|
// @ts-ignore
|
|
1294
|
-
|
|
1297
|
+
bt({ ...e, submit: (s, n) => vs(s, n, e.submit), class: `w-full ${e.class ?? ""}` }, t)
|
|
1295
1298
|
)
|
|
1296
1299
|
), mo = i((e, t) => (
|
|
1297
1300
|
// @ts-ignore
|
|
@@ -1339,7 +1342,7 @@ const ms = i((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
|
|
|
1339
1342
|
l.target === r.panel && (l.preventDefault(), l.stopPropagation(), r.state.open = !1);
|
|
1340
1343
|
}
|
|
1341
1344
|
}, [
|
|
1342
|
-
|
|
1345
|
+
nt({
|
|
1343
1346
|
class: "modal-content relative bg-background z-1 flex flex-auto flex-col gap-y-4 min-w-0",
|
|
1344
1347
|
// @ts-ignore
|
|
1345
1348
|
submit: (l, r) => e.onSubmit && e.onSubmit(r),
|
|
@@ -1351,7 +1354,7 @@ const ms = i((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
|
|
|
1351
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)
|
|
1352
1355
|
])
|
|
1353
1356
|
]);
|
|
1354
|
-
}),
|
|
1357
|
+
}), Re = {
|
|
1355
1358
|
info: {
|
|
1356
1359
|
bgColor: "bg-muted/10",
|
|
1357
1360
|
borderColor: "border-blue-500",
|
|
@@ -1379,7 +1382,7 @@ const ms = i((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
|
|
|
1379
1382
|
}
|
|
1380
1383
|
}, Cs = (e) => ee({ class: "flex justify-center" }, [
|
|
1381
1384
|
xe({ class: "text-lg font-bold mb-0" }, e)
|
|
1382
|
-
]), Ss = i(({ href: e, class: t }, s) =>
|
|
1385
|
+
]), Ss = i(({ href: e, class: t }, s) => Qe({
|
|
1383
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}`,
|
|
1384
1387
|
href: e,
|
|
1385
1388
|
animateIn: "pullRightIn",
|
|
@@ -1431,7 +1434,7 @@ class wo extends S {
|
|
|
1431
1434
|
*/
|
|
1432
1435
|
afterSetup() {
|
|
1433
1436
|
const t = this.duration;
|
|
1434
|
-
t !== "infinite" && (this.timer = new
|
|
1437
|
+
t !== "infinite" && (this.timer = new Ct(t, this.close.bind(this)), this.timer.start());
|
|
1435
1438
|
}
|
|
1436
1439
|
/**
|
|
1437
1440
|
* This will get the style properties based on the notification type.
|
|
@@ -1440,7 +1443,7 @@ class wo extends S {
|
|
|
1440
1443
|
*/
|
|
1441
1444
|
getTypeStyles() {
|
|
1442
1445
|
const t = this.type || "default";
|
|
1443
|
-
return
|
|
1446
|
+
return Re[t] || Re.default;
|
|
1444
1447
|
}
|
|
1445
1448
|
/**
|
|
1446
1449
|
* This will get the buttons for the notification.
|
|
@@ -1493,7 +1496,7 @@ class wo extends S {
|
|
|
1493
1496
|
t && t.stopPropagation(), this.duration !== "infinite" && this.timer.stop(), this.onClick && this.onClick(), this.destroy();
|
|
1494
1497
|
}
|
|
1495
1498
|
}
|
|
1496
|
-
const
|
|
1499
|
+
const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v({
|
|
1497
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',
|
|
1498
1501
|
onState: ["method", { active: e }],
|
|
1499
1502
|
dataSet: ["method", ["state", e, "active"]],
|
|
@@ -1505,13 +1508,13 @@ const Re = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
|
|
|
1505
1508
|
u(t)
|
|
1506
1509
|
])), Ds = (e) => {
|
|
1507
1510
|
const t = document.documentElement;
|
|
1508
|
-
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) {
|
|
1509
1512
|
t.classList.add(e);
|
|
1510
1513
|
return;
|
|
1511
1514
|
}
|
|
1512
1515
|
const s = e === "light" ? "dark" : "light";
|
|
1513
1516
|
t.classList.remove(s);
|
|
1514
|
-
}, vo =
|
|
1517
|
+
}, vo = P(
|
|
1515
1518
|
{
|
|
1516
1519
|
/**
|
|
1517
1520
|
* This will render the component.
|
|
@@ -1594,9 +1597,9 @@ const Re = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
|
|
|
1594
1597
|
src: e,
|
|
1595
1598
|
alt: t,
|
|
1596
1599
|
class: "rounded-full"
|
|
1597
|
-
})), Ts = (e) => e && (Array.isArray(e) && (e = e.join(" ")), typeof e != "string" && (e = String(e)), e.split(" ").map((t) => t.charAt(0)).join("").toUpperCase()),
|
|
1598
|
-
s.textContent =
|
|
1599
|
-
}]),
|
|
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 = {
|
|
1600
1603
|
xs: "h-6 w-6",
|
|
1601
1604
|
sm: "h-8 w-8",
|
|
1602
1605
|
md: "h-12 w-12",
|
|
@@ -1606,7 +1609,7 @@ const Re = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
|
|
|
1606
1609
|
"3xl": "h-48 w-48",
|
|
1607
1610
|
"4xl": "h-64 w-64",
|
|
1608
1611
|
default: "h-12 w-12"
|
|
1609
|
-
},
|
|
1612
|
+
}, He = {
|
|
1610
1613
|
xs: "text-[7px]",
|
|
1611
1614
|
sm: "text-xs",
|
|
1612
1615
|
md: "text-base",
|
|
@@ -1616,8 +1619,8 @@ const Re = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
|
|
|
1616
1619
|
"3xl": "text-4xl",
|
|
1617
1620
|
"4xl": "text-5xl",
|
|
1618
1621
|
default: "text-base"
|
|
1619
|
-
},
|
|
1620
|
-
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);
|
|
1621
1624
|
return o(
|
|
1622
1625
|
{
|
|
1623
1626
|
class: `
|
|
@@ -1627,11 +1630,11 @@ const Re = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
|
|
|
1627
1630
|
`
|
|
1628
1631
|
},
|
|
1629
1632
|
[
|
|
1630
|
-
t ?
|
|
1633
|
+
t ? Ms(t) : u({ class: "uppercase" }, n)
|
|
1631
1634
|
]
|
|
1632
1635
|
);
|
|
1633
1636
|
}, Os = i(({ src: e, alt: t, fallbackText: s, watcherFallback: n, size: a }) => {
|
|
1634
|
-
const l =
|
|
1637
|
+
const l = Ps(a);
|
|
1635
1638
|
return o(
|
|
1636
1639
|
{
|
|
1637
1640
|
class: `relative flex items-center justify-center ${l}`
|
|
@@ -1641,7 +1644,7 @@ const Re = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
|
|
|
1641
1644
|
zs(s, n, a)
|
|
1642
1645
|
]
|
|
1643
1646
|
);
|
|
1644
|
-
}),
|
|
1647
|
+
}), _e = (e) => !e || e.includes("[[") || e.indexOf(".") === -1 && e.indexOf("blob:") === -1, Co = P(
|
|
1645
1648
|
{
|
|
1646
1649
|
/**
|
|
1647
1650
|
* Get the initial state for the component.
|
|
@@ -1651,7 +1654,7 @@ const Re = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
|
|
|
1651
1654
|
state() {
|
|
1652
1655
|
return {
|
|
1653
1656
|
// @ts-ignore
|
|
1654
|
-
loaded: !!this.src && !
|
|
1657
|
+
loaded: !!this.src && !_e(this.src)
|
|
1655
1658
|
};
|
|
1656
1659
|
},
|
|
1657
1660
|
/**
|
|
@@ -1697,7 +1700,7 @@ const Re = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
|
|
|
1697
1700
|
s.preventDefault(), s.stopPropagation(), this.openFileBrowse();
|
|
1698
1701
|
}
|
|
1699
1702
|
}, [
|
|
1700
|
-
|
|
1703
|
+
M("loaded", (s) => s === !1 || _e(this.src) ? H({
|
|
1701
1704
|
htmlFor: e,
|
|
1702
1705
|
class: "z-10 flex flex-col items-center justify-center text-sm text-muted-foreground group-hover:text-primary"
|
|
1703
1706
|
}, [
|
|
@@ -1712,7 +1715,7 @@ const Re = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
|
|
|
1712
1715
|
]);
|
|
1713
1716
|
}
|
|
1714
1717
|
}
|
|
1715
|
-
), So =
|
|
1718
|
+
), So = P(
|
|
1716
1719
|
{
|
|
1717
1720
|
/**
|
|
1718
1721
|
* Get the initial state for the component.
|
|
@@ -1768,7 +1771,7 @@ const Re = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
|
|
|
1768
1771
|
s.preventDefault(), s.stopPropagation(), this.openFileBrowse();
|
|
1769
1772
|
}
|
|
1770
1773
|
}, [
|
|
1771
|
-
|
|
1774
|
+
M(
|
|
1772
1775
|
"loaded",
|
|
1773
1776
|
(s) => s ? me({
|
|
1774
1777
|
// @ts-ignore
|
|
@@ -1794,7 +1797,7 @@ const Re = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
|
|
|
1794
1797
|
this.input = null;
|
|
1795
1798
|
}
|
|
1796
1799
|
}
|
|
1797
|
-
), Ns = (e, t) =>
|
|
1800
|
+
), Ns = (e, t) => Qe(
|
|
1798
1801
|
{
|
|
1799
1802
|
href: e,
|
|
1800
1803
|
"aria-current": t === "Breadcrumb" && "page",
|
|
@@ -1809,7 +1812,7 @@ const Re = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
|
|
|
1809
1812
|
}, h.chevron.single.right), Ls = (e) => o({ class: "flex items-center" }, [
|
|
1810
1813
|
e.href ? Ns(e.href, e.label) : u(e.label),
|
|
1811
1814
|
e.separator && Fs()
|
|
1812
|
-
]), $o =
|
|
1815
|
+
]), $o = P(
|
|
1813
1816
|
{
|
|
1814
1817
|
/**
|
|
1815
1818
|
* Set initial data
|
|
@@ -1848,7 +1851,7 @@ const Re = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
|
|
|
1848
1851
|
);
|
|
1849
1852
|
}
|
|
1850
1853
|
}
|
|
1851
|
-
),
|
|
1854
|
+
), Ue = {
|
|
1852
1855
|
xs: "h-1 w-1",
|
|
1853
1856
|
sm: "h-2 w-2",
|
|
1854
1857
|
md: "h-4 w-4",
|
|
@@ -1857,7 +1860,7 @@ const Re = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
|
|
|
1857
1860
|
"2xl": "h-16 w-16",
|
|
1858
1861
|
"3xl": "h-24 w-24",
|
|
1859
1862
|
default: "h-4 w-4"
|
|
1860
|
-
}, As = (e) =>
|
|
1863
|
+
}, As = (e) => Ue[e] || Ue.default, Rs = ({ index: e, size: t }) => o({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
|
|
1861
1864
|
u({
|
|
1862
1865
|
class: "block w-full h-full rounded-full transition-colors",
|
|
1863
1866
|
onSet: ["activeIndex", {
|
|
@@ -1871,7 +1874,7 @@ const Re = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
|
|
|
1871
1874
|
]), js = (e, t) => Array.from({ length: e }, (s, n) => Rs({
|
|
1872
1875
|
index: n,
|
|
1873
1876
|
size: t
|
|
1874
|
-
})), Do =
|
|
1877
|
+
})), Do = P(
|
|
1875
1878
|
{
|
|
1876
1879
|
/**
|
|
1877
1880
|
* Defines component data (props).
|
|
@@ -1922,7 +1925,7 @@ const Re = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
|
|
|
1922
1925
|
]), _s = (e, t) => o({ class: "w-full border rounded-md" }, [
|
|
1923
1926
|
te({ class: "max-h-60 overflow-y-auto p-2 grid gap-1", for: ["items", (s) => Hs(s, e, t)] })
|
|
1924
1927
|
]), Us = ({ onSelect: e, state: t }) => o({ class: "flex flex-auto flex-col" }, [
|
|
1925
|
-
|
|
1928
|
+
M(
|
|
1926
1929
|
"open",
|
|
1927
1930
|
(s, n, a) => s ? new ae({
|
|
1928
1931
|
cache: "dropdown",
|
|
@@ -1932,7 +1935,7 @@ const Re = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
|
|
|
1932
1935
|
_s(e, t)
|
|
1933
1936
|
]) : null
|
|
1934
1937
|
)
|
|
1935
|
-
]), Io =
|
|
1938
|
+
]), Io = P(
|
|
1936
1939
|
{
|
|
1937
1940
|
/**
|
|
1938
1941
|
* This will set up the data.
|
|
@@ -2034,17 +2037,17 @@ const Re = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
|
|
|
2034
2037
|
]);
|
|
2035
2038
|
}
|
|
2036
2039
|
}
|
|
2037
|
-
),
|
|
2040
|
+
), ot = ({ icon: e, click: t, ariaLabel: s }) => b({
|
|
2038
2041
|
variant: "icon",
|
|
2039
2042
|
class: "flex flex-none",
|
|
2040
2043
|
click: t,
|
|
2041
2044
|
icon: e,
|
|
2042
2045
|
"aria-label": s
|
|
2043
|
-
}), Ys = ({ click: e }) =>
|
|
2046
|
+
}), Ys = ({ click: e }) => ot({
|
|
2044
2047
|
icon: h.circleMinus,
|
|
2045
2048
|
click: e,
|
|
2046
2049
|
ariaLabel: "Decrement"
|
|
2047
|
-
}), Ws = ({ click: e }) =>
|
|
2050
|
+
}), Ws = ({ click: e }) => ot({
|
|
2048
2051
|
icon: h.circlePlus,
|
|
2049
2052
|
click: e,
|
|
2050
2053
|
ariaLabel: "Increment"
|
|
@@ -2183,7 +2186,7 @@ const Re = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
|
|
|
2183
2186
|
);
|
|
2184
2187
|
}
|
|
2185
2188
|
return w;
|
|
2186
|
-
},
|
|
2189
|
+
}, Ye = ({ label: e, click: t }) => b(
|
|
2187
2190
|
{
|
|
2188
2191
|
class: `
|
|
2189
2192
|
inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
|
|
@@ -2199,8 +2202,8 @@ const Re = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
|
|
|
2199
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" }, [
|
|
2200
2203
|
b({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
|
|
2201
2204
|
b({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
|
|
2202
|
-
|
|
2203
|
-
|
|
2205
|
+
Ye({ label: "Previous", click: n }),
|
|
2206
|
+
Ye({ label: "Next", click: s })
|
|
2204
2207
|
]), sn = (e) => o(
|
|
2205
2208
|
{ class: "flex items-center justify-center h-9 w-auto text-[0.8rem] font-normal text-muted-foreground" },
|
|
2206
2209
|
e
|
|
@@ -2357,7 +2360,7 @@ class ln extends S {
|
|
|
2357
2360
|
*/
|
|
2358
2361
|
render() {
|
|
2359
2362
|
return o({ class: "calendar-container p-3 rounded-md border min-w-80" }, [
|
|
2360
|
-
|
|
2363
|
+
M("view", (t) => {
|
|
2361
2364
|
switch (t) {
|
|
2362
2365
|
case "months":
|
|
2363
2366
|
return qs(
|
|
@@ -2455,7 +2458,7 @@ const rn = (e) => {
|
|
|
2455
2458
|
blockPriorDates: t
|
|
2456
2459
|
})
|
|
2457
2460
|
])
|
|
2458
|
-
),
|
|
2461
|
+
), Mo = N(
|
|
2459
2462
|
{
|
|
2460
2463
|
/**
|
|
2461
2464
|
* The initial state of the DatePicker.
|
|
@@ -2538,7 +2541,7 @@ const rn = (e) => {
|
|
|
2538
2541
|
);
|
|
2539
2542
|
}
|
|
2540
2543
|
}
|
|
2541
|
-
),
|
|
2544
|
+
), We = ({ label: e, click: t }) => b(
|
|
2542
2545
|
{
|
|
2543
2546
|
class: `
|
|
2544
2547
|
inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
|
|
@@ -2554,8 +2557,8 @@ const rn = (e) => {
|
|
|
2554
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" }, [
|
|
2555
2558
|
b({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
|
|
2556
2559
|
b({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
|
|
2557
|
-
|
|
2558
|
-
|
|
2560
|
+
We({ label: "Previous", click: n }),
|
|
2561
|
+
We({ label: "Next", click: s })
|
|
2559
2562
|
]), mn = (e) => o({ class: "h-9 flex items-center justify-center font-medium" }, e), bn = () => o(
|
|
2560
2563
|
{ class: "grid grid-cols-7 gap-1 text-center text-xs font-medium text-muted-foreground mb-2" },
|
|
2561
2564
|
["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(mn)
|
|
@@ -2575,14 +2578,14 @@ const rn = (e) => {
|
|
|
2575
2578
|
}, pn = ({ today: e, current: t, blockPriorDates: s, onDateClick: n }) => {
|
|
2576
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;
|
|
2577
2580
|
for (let g = r - 1; g >= 0; g--) {
|
|
2578
|
-
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;
|
|
2579
2582
|
f.push({
|
|
2580
2583
|
day: d,
|
|
2581
2584
|
iso: y,
|
|
2582
2585
|
disabled: G,
|
|
2583
2586
|
isStart: K,
|
|
2584
2587
|
isEnd: Q,
|
|
2585
|
-
isBetween:
|
|
2588
|
+
isBetween: ht,
|
|
2586
2589
|
isOtherMonth: !0,
|
|
2587
2590
|
click: () => n(y)
|
|
2588
2591
|
});
|
|
@@ -2681,16 +2684,16 @@ const rn = (e) => {
|
|
|
2681
2684
|
variant: l === "start" ? "primary" : "outline",
|
|
2682
2685
|
class: "flex-1"
|
|
2683
2686
|
}, [
|
|
2684
|
-
o({ class: "font-medium" },
|
|
2687
|
+
o({ class: "font-medium" }, Ve("current.start", "Start Date"))
|
|
2685
2688
|
])),
|
|
2686
2689
|
J("selecting", (l) => b({
|
|
2687
2690
|
click: a,
|
|
2688
2691
|
variant: l === "end" ? "primary" : "outline",
|
|
2689
2692
|
class: "flex-1"
|
|
2690
2693
|
}, [
|
|
2691
|
-
o({ class: "font-medium" },
|
|
2694
|
+
o({ class: "font-medium" }, Ve("current.end", "End Date"))
|
|
2692
2695
|
]))
|
|
2693
|
-
]),
|
|
2696
|
+
]), Ve = (e, t) => [`[[${e}]]`, (s) => s == null ? t : kn(s)], kn = (e) => {
|
|
2694
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"];
|
|
2695
2698
|
return `${s[t.getDay()]}, ${t.getDate()} ${n[t.getMonth()]}`;
|
|
2696
2699
|
}, Cn = ({ currentYear: e, onSelect: t }) => {
|
|
@@ -2819,7 +2822,7 @@ class Sn extends S {
|
|
|
2819
2822
|
r.preventDefault(), r.stopPropagation(), this.data.selecting = "end";
|
|
2820
2823
|
}
|
|
2821
2824
|
}),
|
|
2822
|
-
|
|
2825
|
+
M("view", (r) => {
|
|
2823
2826
|
switch (r) {
|
|
2824
2827
|
case "months":
|
|
2825
2828
|
return wn(
|
|
@@ -2897,7 +2900,7 @@ const $n = ({ bind: e, required: t }) => p({
|
|
|
2897
2900
|
onRangeSelect: e,
|
|
2898
2901
|
blockPriorDates: t
|
|
2899
2902
|
})
|
|
2900
|
-
])),
|
|
2903
|
+
])), Po = N(
|
|
2901
2904
|
{
|
|
2902
2905
|
/**
|
|
2903
2906
|
* The initial state of the DateRangePicker.
|
|
@@ -2950,7 +2953,7 @@ function Tn(e) {
|
|
|
2950
2953
|
let t = "";
|
|
2951
2954
|
return e.length > 0 && (t = e.substring(0, 2), e.length > 2 && (t += ":" + e.substring(2, 4))), t;
|
|
2952
2955
|
}
|
|
2953
|
-
function
|
|
2956
|
+
function Mn(e) {
|
|
2954
2957
|
if (e.length < 4)
|
|
2955
2958
|
return { formattedTime: null, hour: null, minute: null, meridian: null };
|
|
2956
2959
|
const t = parseInt(e.substring(0, 2), 10), s = parseInt(e.substring(2, 4), 10);
|
|
@@ -2964,7 +2967,7 @@ function Pn(e) {
|
|
|
2964
2967
|
meridian: a
|
|
2965
2968
|
};
|
|
2966
2969
|
}
|
|
2967
|
-
function
|
|
2970
|
+
function Pn({ bind: e, required: t }) {
|
|
2968
2971
|
return p({
|
|
2969
2972
|
cache: "input",
|
|
2970
2973
|
class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
|
|
@@ -2988,7 +2991,7 @@ function zn({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleI
|
|
|
2988
2991
|
class: "relative flex items-center gap-2 w-full justify-between border bg-input hover:bg-muted rounded-md h-10 pr-4 py-2"
|
|
2989
2992
|
},
|
|
2990
2993
|
[
|
|
2991
|
-
|
|
2994
|
+
Pn({ bind: e, required: t }),
|
|
2992
2995
|
Bn({ placeholder: l, handleInputChange: n, handleInputFocus: a }),
|
|
2993
2996
|
v(
|
|
2994
2997
|
{
|
|
@@ -3063,7 +3066,7 @@ function On({ handleTimeSelect: e }) {
|
|
|
3063
3066
|
)
|
|
3064
3067
|
);
|
|
3065
3068
|
}
|
|
3066
|
-
function
|
|
3069
|
+
function qe(e) {
|
|
3067
3070
|
if (!e)
|
|
3068
3071
|
return { hour: null, minute: null, meridian: null };
|
|
3069
3072
|
const t = /^(\d{1,2}):(\d{2})(?::(\d{2}))?\s?(AM|PM)?$/i, s = e.match(t);
|
|
@@ -3084,7 +3087,7 @@ const Bo = N(
|
|
|
3084
3087
|
* @member {object} state
|
|
3085
3088
|
*/
|
|
3086
3089
|
state() {
|
|
3087
|
-
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);
|
|
3088
3091
|
return {
|
|
3089
3092
|
selectedTime: e,
|
|
3090
3093
|
open: !1,
|
|
@@ -3100,7 +3103,7 @@ const Bo = N(
|
|
|
3100
3103
|
*/
|
|
3101
3104
|
after() {
|
|
3102
3105
|
if (this.input.value) {
|
|
3103
|
-
const { hour: e, minute: t, meridian: s } =
|
|
3106
|
+
const { hour: e, minute: t, meridian: s } = qe(this.input.value);
|
|
3104
3107
|
this.state.set({
|
|
3105
3108
|
hour: e,
|
|
3106
3109
|
minute: t,
|
|
@@ -3125,7 +3128,7 @@ const Bo = N(
|
|
|
3125
3128
|
*/
|
|
3126
3129
|
handleInputChange(e) {
|
|
3127
3130
|
let t = e.target.value.replace(/[^\d]/g, ""), s = Tn(t);
|
|
3128
|
-
const n =
|
|
3131
|
+
const n = Mn(t);
|
|
3129
3132
|
n.formattedTime && (s = n.formattedTime, this.state.set({
|
|
3130
3133
|
hour: n.hour,
|
|
3131
3134
|
minute: n.minute,
|
|
@@ -3180,7 +3183,7 @@ const Bo = N(
|
|
|
3180
3183
|
x({ size: "lg" }, e)
|
|
3181
3184
|
]), Fn = ({ title: e }) => ee({ class: "flex flex-auto items-center" }, [
|
|
3182
3185
|
Z({ class: "text-lg font-semibold" }, e)
|
|
3183
|
-
]), zo = i((e, t) =>
|
|
3186
|
+
]), zo = i((e, t) => xt(
|
|
3184
3187
|
{
|
|
3185
3188
|
class: `fixed pullUpIn z-30 w-[98%] border md:w-full max-w-lg bg-popover text-foreground shadow-lg duration-200
|
|
3186
3189
|
rounded-lg flex flex-auto flex-col
|
|
@@ -3207,7 +3210,7 @@ const Bo = N(
|
|
|
3207
3210
|
])
|
|
3208
3211
|
]
|
|
3209
3212
|
)), Oo = i((e, t = []) => o({ class: "w-full max-w-md p-6 m-auto" }, [
|
|
3210
|
-
|
|
3213
|
+
nt({ class: "flex flex-auto flex-col" }, [
|
|
3211
3214
|
o({ class: "flex flex-auto flex-col gap-y-4" }, [
|
|
3212
3215
|
o({ class: "flex flex-auto items-center justify-center" }, [
|
|
3213
3216
|
// @ts-ignore
|
|
@@ -3240,11 +3243,11 @@ i(({ value: e, label: t }) => v({
|
|
|
3240
3243
|
const Ln = (e, t) => {
|
|
3241
3244
|
const s = e.toggleAllSelectedRows();
|
|
3242
3245
|
t.state.checked = !s;
|
|
3243
|
-
}, An = (e) =>
|
|
3246
|
+
}, An = (e) => Je({ class: `cursor-pointer py-3 px-4 text-base w-10 ${e.class || ""}` }, [
|
|
3244
3247
|
V((t) => new qt({ class: "mr-2", onChange: (s, n) => Ln(t, n) }))
|
|
3245
3248
|
]), Rn = ({ align: e, sortable: t, key: s, label: n, sort: a, class: l }) => {
|
|
3246
3249
|
const r = e || "justify-start";
|
|
3247
|
-
return
|
|
3250
|
+
return Je({
|
|
3248
3251
|
class: `cursor-pointer py-3 px-4 text-base ${l || ""}`,
|
|
3249
3252
|
click: t && (() => a(s))
|
|
3250
3253
|
}, [
|
|
@@ -3253,8 +3256,8 @@ const Ln = (e, t) => {
|
|
|
3253
3256
|
t && E({ class: "ml-2", html: h.arrows.upDown })
|
|
3254
3257
|
])
|
|
3255
3258
|
]);
|
|
3256
|
-
}, $e = (e) =>
|
|
3257
|
-
|
|
3259
|
+
}, $e = (e) => pt([
|
|
3260
|
+
yt({
|
|
3258
3261
|
class: "text-muted-foreground border-b",
|
|
3259
3262
|
map: [
|
|
3260
3263
|
e.headers,
|
|
@@ -3267,7 +3270,7 @@ const Ln = (e, t) => {
|
|
|
3267
3270
|
})
|
|
3268
3271
|
]
|
|
3269
3272
|
})
|
|
3270
|
-
]), 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({
|
|
3271
3274
|
cache: "list",
|
|
3272
3275
|
key: e,
|
|
3273
3276
|
items: t,
|
|
@@ -3277,7 +3280,7 @@ const Ln = (e, t) => {
|
|
|
3277
3280
|
skeleton: l,
|
|
3278
3281
|
columnCount: r
|
|
3279
3282
|
});
|
|
3280
|
-
class
|
|
3283
|
+
class lt extends S {
|
|
3281
3284
|
/**
|
|
3282
3285
|
* Initializes component data.
|
|
3283
3286
|
*
|
|
@@ -3442,20 +3445,21 @@ class ot extends S {
|
|
|
3442
3445
|
this.data.selectedRows = [];
|
|
3443
3446
|
}
|
|
3444
3447
|
}
|
|
3445
|
-
const En = (e) => new
|
|
3448
|
+
const En = (e) => new $t({
|
|
3446
3449
|
cache: "list",
|
|
3447
3450
|
loadMoreItems: e.loadMoreItems,
|
|
3448
3451
|
offset: e.offset,
|
|
3449
3452
|
limit: e.limit,
|
|
3450
3453
|
key: e.key,
|
|
3451
3454
|
tableData: e.tableData,
|
|
3455
|
+
xhrMethod: e.xhrMethod,
|
|
3452
3456
|
items: e.items,
|
|
3453
3457
|
rowItem: (t) => e.rowItem(t, e.selectRow),
|
|
3454
3458
|
class: "divide-y divide-border",
|
|
3455
3459
|
skeleton: e.skeleton,
|
|
3456
3460
|
columnCount: e.columnCount
|
|
3457
3461
|
});
|
|
3458
|
-
class Hn extends
|
|
3462
|
+
class Hn extends lt {
|
|
3459
3463
|
/**
|
|
3460
3464
|
* Renders the DataTable component.
|
|
3461
3465
|
*
|
|
@@ -3483,6 +3487,8 @@ class Hn extends ot {
|
|
|
3483
3487
|
// @ts-ignore
|
|
3484
3488
|
tableData: this.tableData,
|
|
3485
3489
|
// @ts-ignore
|
|
3490
|
+
xhrMethod: this.xhrMethod,
|
|
3491
|
+
// @ts-ignore
|
|
3486
3492
|
key: this.key,
|
|
3487
3493
|
// @ts-ignore
|
|
3488
3494
|
items: this.rows,
|
|
@@ -3534,11 +3540,13 @@ const No = i((e) => new Hn(
|
|
|
3534
3540
|
// @ts-ignore
|
|
3535
3541
|
border: e.border,
|
|
3536
3542
|
// @ts-ignore
|
|
3543
|
+
xhrMethod: e.xhrMethod,
|
|
3544
|
+
// @ts-ignore
|
|
3537
3545
|
emptyState: e.emptyState,
|
|
3538
3546
|
// @ts-ignore
|
|
3539
3547
|
skeleton: e.skeleton
|
|
3540
3548
|
}
|
|
3541
|
-
)), _n = (e) => new
|
|
3549
|
+
)), _n = (e) => new Dt({
|
|
3542
3550
|
cache: "list",
|
|
3543
3551
|
scrollContainer: e.scrollContainer,
|
|
3544
3552
|
loadMoreItems: e.loadMoreItems,
|
|
@@ -3546,13 +3554,14 @@ const No = i((e) => new Hn(
|
|
|
3546
3554
|
limit: e.limit,
|
|
3547
3555
|
key: e.key,
|
|
3548
3556
|
tableData: e.tableData,
|
|
3557
|
+
xhrMethod: e.xhrMethod,
|
|
3549
3558
|
items: e.items,
|
|
3550
3559
|
rowItem: (t) => e.rowItem(t, e.selectRow),
|
|
3551
3560
|
class: "divide-y divide-border",
|
|
3552
3561
|
skeleton: e.skeleton,
|
|
3553
3562
|
columnCount: e.columnCount
|
|
3554
3563
|
});
|
|
3555
|
-
class Un extends
|
|
3564
|
+
class Un extends lt {
|
|
3556
3565
|
/**
|
|
3557
3566
|
* Renders the DataTable component.
|
|
3558
3567
|
*
|
|
@@ -3582,6 +3591,8 @@ class Un extends ot {
|
|
|
3582
3591
|
// @ts-ignore
|
|
3583
3592
|
tableData: this.tableData,
|
|
3584
3593
|
// @ts-ignore
|
|
3594
|
+
xhrMethod: this.xhrMethod,
|
|
3595
|
+
// @ts-ignore
|
|
3585
3596
|
key: this.key,
|
|
3586
3597
|
// @ts-ignore
|
|
3587
3598
|
items: this.rows,
|
|
@@ -3635,6 +3646,8 @@ const Fo = i((e) => new Un(
|
|
|
3635
3646
|
// @ts-ignore
|
|
3636
3647
|
border: e.border,
|
|
3637
3648
|
// @ts-ignore
|
|
3649
|
+
xhrMethod: e.xhrMethod,
|
|
3650
|
+
// @ts-ignore
|
|
3638
3651
|
emptyState: e.emptyState,
|
|
3639
3652
|
// @ts-ignore
|
|
3640
3653
|
skeleton: e.skeleton
|
|
@@ -3649,7 +3662,7 @@ const Fo = i((e) => new Un(
|
|
|
3649
3662
|
k({ class: "text-xs leading-5 text-gray-500" }, "Online")
|
|
3650
3663
|
]), Vn = (e) => k({ class: "text-xs leading-5 text-muted-foreground" }, [
|
|
3651
3664
|
u("Last seen "),
|
|
3652
|
-
|
|
3665
|
+
wt({ datetime: e }, "3h ago")
|
|
3653
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" }, [
|
|
3654
3667
|
k({ class: "text-sm leading-6 m-0" }, e),
|
|
3655
3668
|
qn(s, t)
|
|
@@ -3668,7 +3681,7 @@ const Fo = i((e) => new Un(
|
|
|
3668
3681
|
// @ts-ignore
|
|
3669
3682
|
status: e.status
|
|
3670
3683
|
})
|
|
3671
|
-
])), Lo = i((e) => new
|
|
3684
|
+
])), Lo = i((e) => new It({
|
|
3672
3685
|
cache: "list",
|
|
3673
3686
|
key: "name",
|
|
3674
3687
|
// @ts-ignore
|
|
@@ -3772,7 +3785,7 @@ const Xn = i(({ options: e, click: t }, s) => ({
|
|
|
3772
3785
|
]
|
|
3773
3786
|
)
|
|
3774
3787
|
];
|
|
3775
|
-
class
|
|
3788
|
+
class rt extends S {
|
|
3776
3789
|
/**
|
|
3777
3790
|
* This will declare the props for the compiler.
|
|
3778
3791
|
*
|
|
@@ -3804,7 +3817,7 @@ class lt extends S {
|
|
|
3804
3817
|
*/
|
|
3805
3818
|
addLink() {
|
|
3806
3819
|
const t = this.options && this.options.length > 0, s = this.content || Zn(String(this.label), this.icon, t);
|
|
3807
|
-
return this.href ? new
|
|
3820
|
+
return this.href ? new kt(
|
|
3808
3821
|
{
|
|
3809
3822
|
class: "flex flex-auto flex-row rounded-md transition-all overflow-x-hidden",
|
|
3810
3823
|
cache: "link",
|
|
@@ -3832,7 +3845,7 @@ class lt extends S {
|
|
|
3832
3845
|
}
|
|
3833
3846
|
}
|
|
3834
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 }, [
|
|
3835
|
-
|
|
3848
|
+
Ge({ class: "text-muted-foreground text-sm py-0 px-4 whitespace-nowrap" }, t)
|
|
3836
3849
|
]));
|
|
3837
3850
|
class ta extends S {
|
|
3838
3851
|
/**
|
|
@@ -3892,10 +3905,10 @@ class ta extends S {
|
|
|
3892
3905
|
* @returns {object}
|
|
3893
3906
|
*/
|
|
3894
3907
|
addLink(t) {
|
|
3895
|
-
return new
|
|
3908
|
+
return new rt(t);
|
|
3896
3909
|
}
|
|
3897
3910
|
}
|
|
3898
|
-
class
|
|
3911
|
+
class it extends ta {
|
|
3899
3912
|
onCreated() {
|
|
3900
3913
|
this.links = [];
|
|
3901
3914
|
}
|
|
@@ -3930,7 +3943,7 @@ class rt extends ta {
|
|
|
3930
3943
|
* @returns {object}
|
|
3931
3944
|
*/
|
|
3932
3945
|
addLink(t) {
|
|
3933
|
-
const s = new
|
|
3946
|
+
const s = new rt(t);
|
|
3934
3947
|
if (this.links.push(s), !s.options)
|
|
3935
3948
|
return s;
|
|
3936
3949
|
const n = this.addSubNav(s);
|
|
@@ -3945,7 +3958,7 @@ const sa = (e, t) => new RegExp(`${e}($|/|\\.).*`).test(t), na = (e, t) => {
|
|
|
3945
3958
|
const s = e.link.panel.pathname;
|
|
3946
3959
|
return !s && e.isSelected() ? !0 : e.exact ? t === s : sa(s, t);
|
|
3947
3960
|
};
|
|
3948
|
-
class aa extends
|
|
3961
|
+
class aa extends it {
|
|
3949
3962
|
/**
|
|
3950
3963
|
* This will declare the props for the compiler.
|
|
3951
3964
|
*
|
|
@@ -4113,31 +4126,31 @@ class ia extends S {
|
|
|
4113
4126
|
this.container = app.root;
|
|
4114
4127
|
}
|
|
4115
4128
|
}
|
|
4116
|
-
const
|
|
4129
|
+
const ct = () => b({ class: "m-2", variant: "ghost", addState() {
|
|
4117
4130
|
return {
|
|
4118
4131
|
open: !1
|
|
4119
4132
|
};
|
|
4120
4133
|
}, click: (e, { state: t }) => t.toggle("open") }, [
|
|
4121
4134
|
x({}, h.bar.three)
|
|
4122
4135
|
]), ca = (e) => xe({ class: "text-lg ml-2" }, e), da = (e) => o({ class: "flex flex-auto flex-row items-center lg:hidden" }, [
|
|
4123
|
-
|
|
4136
|
+
ct(),
|
|
4124
4137
|
e.title && ca(e.title)
|
|
4125
|
-
]),
|
|
4138
|
+
]), dt = (e, t) => {
|
|
4126
4139
|
e.forEach((s) => {
|
|
4127
4140
|
if (s.options) {
|
|
4128
|
-
|
|
4141
|
+
dt(s.options, t);
|
|
4129
4142
|
return;
|
|
4130
4143
|
}
|
|
4131
4144
|
s.callBack = t;
|
|
4132
4145
|
});
|
|
4133
|
-
},
|
|
4134
|
-
|
|
4146
|
+
}, ut = (e) => o({ class: "bg-background flex flex-auto flex-col w-full relative" }, [
|
|
4147
|
+
M(
|
|
4135
4148
|
"open",
|
|
4136
4149
|
(t) => t ? [
|
|
4137
4150
|
new ia({ title: e.title }, [
|
|
4138
4151
|
V(({ state: s }) => {
|
|
4139
4152
|
const n = (a) => s.open = !1;
|
|
4140
|
-
return
|
|
4153
|
+
return dt(e.options, n), new it(
|
|
4141
4154
|
{
|
|
4142
4155
|
options: e.options
|
|
4143
4156
|
}
|
|
@@ -4148,13 +4161,13 @@ const it = () => b({ class: "m-2", variant: "ghost", addState() {
|
|
|
4148
4161
|
)
|
|
4149
4162
|
]), Ao = i((e) => o({ cache: "mobileNav", class: "inline-flex relative lg:hidden" }, [
|
|
4150
4163
|
o([
|
|
4151
|
-
|
|
4152
|
-
|
|
4164
|
+
ct(),
|
|
4165
|
+
ut(e)
|
|
4153
4166
|
])
|
|
4154
4167
|
])), Ro = i((e) => o({ cache: "mobileNav", class: "flex flex-auto flex-col w-full relative lg:hidden" }, [
|
|
4155
4168
|
o({ class: "flex flex-auto flex-col w-full" }, [
|
|
4156
4169
|
da(e),
|
|
4157
|
-
|
|
4170
|
+
ut(e)
|
|
4158
4171
|
])
|
|
4159
4172
|
])), jo = i((e) => {
|
|
4160
4173
|
const t = e.margin || "m-4 ml-0";
|
|
@@ -4257,7 +4270,7 @@ class ua extends S {
|
|
|
4257
4270
|
return this.children;
|
|
4258
4271
|
}
|
|
4259
4272
|
}
|
|
4260
|
-
|
|
4273
|
+
Ze.addType("dockableOverlay", (e) => {
|
|
4261
4274
|
if (!e)
|
|
4262
4275
|
return;
|
|
4263
4276
|
const t = e.component;
|
|
@@ -4333,7 +4346,7 @@ class Eo extends ua {
|
|
|
4333
4346
|
* @returns {void}
|
|
4334
4347
|
*/
|
|
4335
4348
|
afterSetup() {
|
|
4336
|
-
|
|
4349
|
+
Ze.add(
|
|
4337
4350
|
this.container,
|
|
4338
4351
|
"dockableOverlay",
|
|
4339
4352
|
{
|
|
@@ -4418,7 +4431,7 @@ const ha = i(({ index: e, click: t, state: s }, n) => ye({
|
|
|
4418
4431
|
fa(e)
|
|
4419
4432
|
]);
|
|
4420
4433
|
}]
|
|
4421
|
-
}), Ho =
|
|
4434
|
+
}), Ho = P(
|
|
4422
4435
|
{
|
|
4423
4436
|
/**
|
|
4424
4437
|
* This will set up the data object.
|
|
@@ -4607,7 +4620,7 @@ const pa = i((e, t) => (e.class = "basic-page pt-[80px] sm:pt-0 flex flex-auto f
|
|
|
4607
4620
|
...e,
|
|
4608
4621
|
children: t
|
|
4609
4622
|
})), ya = i(({ title: e, description: t }) => ee({ class: "sm:py-8 px-6 md:px-5 flex flex-col" }, [
|
|
4610
|
-
|
|
4623
|
+
vt({ class: "scroll-m-20 text-3xl font-bold tracking-tight" }, e),
|
|
4611
4624
|
t && k({ class: "text-base text-muted-foreground py-2 max-w-[700px]" }, t)
|
|
4612
4625
|
]));
|
|
4613
4626
|
class Uo extends xa {
|
|
@@ -4630,7 +4643,7 @@ class Uo extends xa {
|
|
|
4630
4643
|
title: this.title,
|
|
4631
4644
|
description: this.description
|
|
4632
4645
|
}),
|
|
4633
|
-
|
|
4646
|
+
Tt(this.children)
|
|
4634
4647
|
]);
|
|
4635
4648
|
}
|
|
4636
4649
|
}
|
|
@@ -4639,7 +4652,7 @@ export {
|
|
|
4639
4652
|
co as A,
|
|
4640
4653
|
jo as B,
|
|
4641
4654
|
ln as C,
|
|
4642
|
-
|
|
4655
|
+
lt as D,
|
|
4643
4656
|
bo as E,
|
|
4644
4657
|
zo as F,
|
|
4645
4658
|
Eo as G,
|
|
@@ -4657,7 +4670,7 @@ export {
|
|
|
4657
4670
|
Na as S,
|
|
4658
4671
|
ja as T,
|
|
4659
4672
|
Ra as U,
|
|
4660
|
-
|
|
4673
|
+
nt as V,
|
|
4661
4674
|
uo as W,
|
|
4662
4675
|
fo as X,
|
|
4663
4676
|
ho as Y,
|
|
@@ -4697,26 +4710,26 @@ export {
|
|
|
4697
4710
|
Bo as aT,
|
|
4698
4711
|
da as aU,
|
|
4699
4712
|
ko as aV,
|
|
4700
|
-
|
|
4713
|
+
Ma as aW,
|
|
4701
4714
|
io as aX,
|
|
4702
4715
|
x as aY,
|
|
4703
4716
|
Xa as aZ,
|
|
4704
4717
|
Lo as a_,
|
|
4705
4718
|
Co as aa,
|
|
4706
|
-
|
|
4719
|
+
it as ab,
|
|
4707
4720
|
F as ac,
|
|
4708
4721
|
Et as ad,
|
|
4709
4722
|
za as ae,
|
|
4710
4723
|
So as af,
|
|
4711
|
-
|
|
4724
|
+
rt as ag,
|
|
4712
4725
|
pa as ah,
|
|
4713
|
-
|
|
4726
|
+
Pe as ai,
|
|
4714
4727
|
Ys as aj,
|
|
4715
4728
|
Ao as ak,
|
|
4716
4729
|
Ro as al,
|
|
4717
4730
|
an as am,
|
|
4718
4731
|
Ga as an,
|
|
4719
|
-
|
|
4732
|
+
ct as ao,
|
|
4720
4733
|
Jn as ap,
|
|
4721
4734
|
ta as aq,
|
|
4722
4735
|
ea as ar,
|
|
@@ -4729,7 +4742,7 @@ export {
|
|
|
4729
4742
|
Ws as ay,
|
|
4730
4743
|
ae as az,
|
|
4731
4744
|
ra as b,
|
|
4732
|
-
|
|
4745
|
+
et as b0,
|
|
4733
4746
|
N as b1,
|
|
4734
4747
|
Ka as b2,
|
|
4735
4748
|
Gs as b3,
|
|
@@ -4748,7 +4761,7 @@ export {
|
|
|
4748
4761
|
An as j,
|
|
4749
4762
|
Ba as k,
|
|
4750
4763
|
ao as l,
|
|
4751
|
-
|
|
4764
|
+
Pa as m,
|
|
4752
4765
|
eo as n,
|
|
4753
4766
|
po as o,
|
|
4754
4767
|
Io as p,
|
|
@@ -4756,8 +4769,8 @@ export {
|
|
|
4756
4769
|
To as r,
|
|
4757
4770
|
jn as s,
|
|
4758
4771
|
Wa as t,
|
|
4759
|
-
|
|
4760
|
-
|
|
4772
|
+
Mo as u,
|
|
4773
|
+
Po as v,
|
|
4761
4774
|
qa as w,
|
|
4762
4775
|
ce as x,
|
|
4763
4776
|
sn as y,
|