@base-framework/ui 1.0.114 → 1.0.116
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
|
@@ -6,8 +6,8 @@ import { Icons as R } from "./icons.es.js";
|
|
|
6
6
|
import { A as G, B as V, C as j, z as q, u as z, v as J, w as _, D as K, j as Q, k as X, G as Y, E as Z, s as $, c as aa, a as sa, b as ea, i as oa, g as ta, e as ra, h as na, F as ia, d as la, f as pa, t as ua, M as ma, l as da, N as ga, P as Ta, p as ca, q as Ca, S as ba, n as Da, o as Sa, T as Ia, x as Ba, y as Pa, m as Fa, r as Ma } from "./confirmation-CM2qKExU.js";
|
|
7
7
|
import { A as Na, b as va, C as fa, D as xa, a as ha, F as ya, M as Wa, P as La, c as Aa, g as Ha, p as wa } from "./calendar-B7LCME_T.js";
|
|
8
8
|
import { B as Oa, n as Ra, C as Ea, j as Ga, D as Va, l as ja, H as qa, I as za, N as Ja, O as _a, P as Ka, S as Qa, m as Xa, r as Ya, q as Za, o as $a, p as as, T as ss, k as es, U as os, W as ts, f as rs, h as ns, i as is, c as ls, d as ps, b as us, e as ms, a as ds, g as gs } from "./signature-panel-Dl_Tkisq.js";
|
|
9
|
-
import { B as cs, I as Cs, M as bs, d as Ds, e as Ss, g as Is, N as Bs, b as Ps, a as Fs, f as Ms, P as ks, c as Ns, S as vs, T as fs } from "./mobile-nav-wrapper-
|
|
10
|
-
import { B as hs, a as ys, C as Ws, F as Ls, b as As, c as Hs, M as ws, P as Us, S as Os } from "./sidebar-menu-page-
|
|
9
|
+
import { B as cs, I as Cs, M as bs, d as Ds, e as Ss, g as Is, N as Bs, b as Ps, a as Fs, f as Ms, P as ks, c as Ns, S as vs, T as fs } from "./mobile-nav-wrapper-CRb-9Lpb.js";
|
|
10
|
+
import { B as hs, a as ys, C as Ws, F as Ls, b as As, c as Hs, M as ws, P as Us, S as Os } from "./sidebar-menu-page-C-HSr1U3.js";
|
|
11
11
|
import { A as Es, F as Gs, M as Vs, a as js, T as qs } from "./aside-template-McEj_Gxc.js";
|
|
12
12
|
import { B as Js } from "./bside-template-Du2m3rsE.js";
|
|
13
13
|
export {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Button as b, I as w, Label as S, Span as B, Ul as o, H4 as N, Nav as u, Div as l, Header as
|
|
1
|
+
import { Button as b, I as w, Label as S, Span as B, Ul as o, H4 as N, Nav as u, Div as l, Header as C, H1 as L, H3 as p, UseParent as y, OnState as P } from "@base-framework/atoms";
|
|
2
2
|
import { Component as n, Atom as i, NavLink as I, router as d } from "@base-framework/base";
|
|
3
3
|
import { I as h, B as f } from "./buttons-CVEwmPAi.js";
|
|
4
4
|
import { Icons as r } from "./icons.es.js";
|
|
5
|
-
class
|
|
5
|
+
class $ extends n {
|
|
6
6
|
/**
|
|
7
7
|
* This will declare the props for the compiler.
|
|
8
8
|
*
|
|
@@ -63,14 +63,14 @@ class P extends n {
|
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
const
|
|
66
|
+
const H = i(({ options: s, click: e }, t) => ({
|
|
67
67
|
tag: "li",
|
|
68
68
|
...{
|
|
69
69
|
class: `relative flex flex-row w-auto text-left p-0 transition-all cursor-pointer min-w-[48px] option${s ? " sub" : ""}`,
|
|
70
70
|
click: e
|
|
71
71
|
},
|
|
72
72
|
children: t
|
|
73
|
-
})),
|
|
73
|
+
})), M = (s, e = null, t = !1) => [
|
|
74
74
|
e && w({
|
|
75
75
|
class: "icon w-12 rounded-md flex items-center justify-center min-w-12",
|
|
76
76
|
onState: ["selected", {
|
|
@@ -113,7 +113,7 @@ class x extends n {
|
|
|
113
113
|
*/
|
|
114
114
|
render() {
|
|
115
115
|
const e = !this.options && this.callBack;
|
|
116
|
-
return
|
|
116
|
+
return H(
|
|
117
117
|
{ options: this.options, click: e },
|
|
118
118
|
[
|
|
119
119
|
this.addLink()
|
|
@@ -127,7 +127,7 @@ class x extends n {
|
|
|
127
127
|
* @protected
|
|
128
128
|
*/
|
|
129
129
|
addLink() {
|
|
130
|
-
const e = this.options && this.options.length > 0, t = this.content ||
|
|
130
|
+
const e = this.options && this.options.length > 0, t = this.content || M(this.label, this.icon, e);
|
|
131
131
|
return this.href ? new I(
|
|
132
132
|
{
|
|
133
133
|
class: "flex flex-auto flex-row rounded-md transition-all overflow-x-hidden",
|
|
@@ -137,7 +137,7 @@ class x extends n {
|
|
|
137
137
|
exact: this.exact || !1
|
|
138
138
|
},
|
|
139
139
|
t
|
|
140
|
-
) : new
|
|
140
|
+
) : new $({
|
|
141
141
|
class: "flex flex-auto flex-row rounded-md transition-all overflow-x-hidden",
|
|
142
142
|
cache: "link",
|
|
143
143
|
checkCallBack: this.checkCallBack
|
|
@@ -155,10 +155,10 @@ class x extends n {
|
|
|
155
155
|
this.link.update(e);
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
const
|
|
158
|
+
const O = i(({ map: s }, e) => o({ class: "navigation-group flex flex-col gap-2 list-none m-0 py-2 px-0", map: s }, [
|
|
159
159
|
N({ class: "text-muted-foreground text-sm py-0 px-4 whitespace-nowrap" }, e)
|
|
160
160
|
]));
|
|
161
|
-
class
|
|
161
|
+
class z extends n {
|
|
162
162
|
/**
|
|
163
163
|
* This will declare the props for the compiler.
|
|
164
164
|
*
|
|
@@ -207,7 +207,7 @@ class O extends n {
|
|
|
207
207
|
*/
|
|
208
208
|
addGroup(e) {
|
|
209
209
|
const t = this.mapOptions(e.options);
|
|
210
|
-
return
|
|
210
|
+
return O({ map: t }, e.group);
|
|
211
211
|
}
|
|
212
212
|
/**
|
|
213
213
|
* This will add a link.
|
|
@@ -219,7 +219,7 @@ class O extends n {
|
|
|
219
219
|
return new x(e);
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
|
-
class c extends
|
|
222
|
+
class c extends z {
|
|
223
223
|
onCreated() {
|
|
224
224
|
this.links = [];
|
|
225
225
|
}
|
|
@@ -230,7 +230,7 @@ class c extends O {
|
|
|
230
230
|
* @returns {object}
|
|
231
231
|
*/
|
|
232
232
|
setupSubNav(e) {
|
|
233
|
-
return new
|
|
233
|
+
return new A(
|
|
234
234
|
{
|
|
235
235
|
parentLink: e,
|
|
236
236
|
options: e.options
|
|
@@ -265,11 +265,11 @@ class c extends O {
|
|
|
265
265
|
};
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
|
-
const
|
|
268
|
+
const E = (s, e) => new RegExp(`${s}($|/|\\.).*`).test(e), T = (s, e) => {
|
|
269
269
|
const t = s.link.panel.pathname;
|
|
270
|
-
return !t && s.isSelected() ? !0 : s.exact ? e === t :
|
|
270
|
+
return !t && s.isSelected() ? !0 : s.exact ? e === t : E(t, e);
|
|
271
271
|
};
|
|
272
|
-
class
|
|
272
|
+
class A extends c {
|
|
273
273
|
/**
|
|
274
274
|
* This will declare the props for the compiler.
|
|
275
275
|
*
|
|
@@ -351,32 +351,32 @@ class T extends c {
|
|
|
351
351
|
updateLinks(e) {
|
|
352
352
|
let t = !1;
|
|
353
353
|
for (const a of this.links)
|
|
354
|
-
if (a.rendered && (t =
|
|
354
|
+
if (a.rendered && (t = T(a, e), t === !0))
|
|
355
355
|
break;
|
|
356
356
|
this.parentLink.update(t);
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
-
const
|
|
360
|
-
s &&
|
|
361
|
-
|
|
359
|
+
const K = ({ title: s, options: e, class: t = "", mobileBorder: a = !1, sticky: v = !1 }) => l({ class: `pb-12 p-4 pt-0 lg:p-6 lg:border-r w-full lg:max-w-[300px] h-full ${t}` }, [
|
|
360
|
+
s && C({ class: "pb-4 md:pb-2 px-6 flex flex-col" }, [
|
|
361
|
+
L({ class: "scroll-m-20 text-3xl lg:text-2xl font-bold tracking-tight" }, s)
|
|
362
362
|
]),
|
|
363
|
-
new c({ options: e, mobileBorder: a, class:
|
|
364
|
-
]),
|
|
363
|
+
new c({ options: e, mobileBorder: a, class: v ? "sticky top-0" : "" })
|
|
364
|
+
]), G = (s) => p({ class: "text-lg ml-2" }, s), W = (s) => l({ class: "sticky flex flex-row items-center bg-popover lg:hidden top-0 z-10 border-0 border-b" }, [
|
|
365
365
|
f({
|
|
366
366
|
variant: "icon",
|
|
367
367
|
class: "m-2",
|
|
368
368
|
click: (e, { state: t }) => t.toggle("open"),
|
|
369
369
|
icon: r.arrows.left
|
|
370
370
|
}),
|
|
371
|
-
s.title &&
|
|
372
|
-
]),
|
|
371
|
+
s.title && G(s.title)
|
|
372
|
+
]), j = () => l({
|
|
373
373
|
class: `
|
|
374
374
|
absolute inset-0 bg-black/40 z-[-1] fadeIn
|
|
375
375
|
transition-opacity duration-200
|
|
376
376
|
`,
|
|
377
377
|
click: (s, { state: e }) => e.open = !1
|
|
378
378
|
});
|
|
379
|
-
class
|
|
379
|
+
class U extends n {
|
|
380
380
|
/**
|
|
381
381
|
* This will declare the props for the compiler.
|
|
382
382
|
*
|
|
@@ -395,7 +395,7 @@ class j extends n {
|
|
|
395
395
|
class: "fixed inset-0 z-50",
|
|
396
396
|
style: "[[typeClass]]"
|
|
397
397
|
}, [
|
|
398
|
-
|
|
398
|
+
j(),
|
|
399
399
|
// Popover Content
|
|
400
400
|
l({
|
|
401
401
|
class: `
|
|
@@ -404,7 +404,7 @@ class j extends n {
|
|
|
404
404
|
dataSet: ["open", ["expanded", !0, "true"]]
|
|
405
405
|
}, [
|
|
406
406
|
l({ class: "flex flex-auto flex-col w-full h-full overflow-y-auto max-h-[85vh] rounded-md bg-popover border" }, [
|
|
407
|
-
|
|
407
|
+
W({ title: this.title }),
|
|
408
408
|
l({ class: "flex flex-auto flex-col" }, this.children)
|
|
409
409
|
])
|
|
410
410
|
])
|
|
@@ -451,21 +451,21 @@ const m = (s) => f({ class: "m-2", variant: "ghost", addState() {
|
|
|
451
451
|
]), Y = (s) => p({ class: "text-lg ml-2" }, s), D = (s) => l({ class: "flex flex-auto flex-row items-center lg:hidden" }, [
|
|
452
452
|
m(),
|
|
453
453
|
s.title && Y(s.title)
|
|
454
|
-
]),
|
|
454
|
+
]), k = (s, e) => {
|
|
455
455
|
s.forEach((t) => {
|
|
456
456
|
if (t.options) {
|
|
457
|
-
|
|
457
|
+
k(t.options, e);
|
|
458
458
|
return;
|
|
459
459
|
}
|
|
460
460
|
t.callBack = e;
|
|
461
461
|
});
|
|
462
462
|
}, g = (s) => {
|
|
463
|
-
const e =
|
|
464
|
-
return
|
|
465
|
-
|
|
463
|
+
const e = s.closeCallBack;
|
|
464
|
+
return k(s.options, e), l({ class: "bg-background flex flex-auto flex-col w-full relative" }, [
|
|
465
|
+
P(
|
|
466
466
|
"open",
|
|
467
467
|
(t) => t ? [
|
|
468
|
-
new
|
|
468
|
+
new U({ title: s.title }, [
|
|
469
469
|
new c(
|
|
470
470
|
{
|
|
471
471
|
options: s.options
|
|
@@ -475,30 +475,30 @@ const m = (s) => f({ class: "m-2", variant: "ghost", addState() {
|
|
|
475
475
|
] : null
|
|
476
476
|
)
|
|
477
477
|
]);
|
|
478
|
-
},
|
|
478
|
+
}, Q = i((s) => l({ cache: "mobileNav", class: "inline-flex relative lg:hidden" }, [
|
|
479
479
|
l([
|
|
480
480
|
m(),
|
|
481
481
|
g(s)
|
|
482
482
|
])
|
|
483
|
-
])),
|
|
483
|
+
])), V = i((s) => y(({ parent: e }) => (console.log(e), s.closeCallBack = (t) => e.parent.state.open = !1, l({ cache: "mobileNav", class: "flex flex-auto flex-col w-full relative lg:hidden" }, [
|
|
484
484
|
l({ class: "flex flex-auto flex-col w-full" }, [
|
|
485
485
|
D(s),
|
|
486
486
|
g(s)
|
|
487
487
|
])
|
|
488
|
-
]));
|
|
488
|
+
]))));
|
|
489
489
|
export {
|
|
490
|
-
|
|
490
|
+
j as B,
|
|
491
491
|
c as I,
|
|
492
492
|
x as M,
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
493
|
+
$ as N,
|
|
494
|
+
W as P,
|
|
495
|
+
A as S,
|
|
496
496
|
D as T,
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
497
|
+
O as a,
|
|
498
|
+
z as b,
|
|
499
|
+
K as c,
|
|
500
|
+
Q as d,
|
|
501
|
+
V as e,
|
|
502
|
+
U as f,
|
|
503
503
|
m as g
|
|
504
504
|
};
|
package/dist/organisms.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { B as s, n as o, C as t, j as r, D as l, l as n, H as i, I as b, N as d, O as v, P as g, S as p, m as u, r as N, q as k, o as D, p as C, T, k as c, U as M, W as B, f as m, h as y, i as W, c as h, d as H, b as P, e as S, a as f, g as x } from "./signature-panel-Dl_Tkisq.js";
|
|
2
2
|
import { b as L, C as O, D as F, a as U, F as G, M as j, c as q, p as w } from "./calendar-B7LCME_T.js";
|
|
3
|
-
import { B as A, I as E, M as J, d as K, e as Q, g as R, N as V, b as X, a as Y, f as Z, P as _, c as $, S as aa, T as ea } from "./mobile-nav-wrapper-
|
|
3
|
+
import { B as A, I as E, M as J, d as K, e as Q, g as R, N as V, b as X, a as Y, f as Z, P as _, c as $, S as aa, T as ea } from "./mobile-nav-wrapper-CRb-9Lpb.js";
|
|
4
4
|
export {
|
|
5
5
|
s as BackButton,
|
|
6
6
|
A as Backdrop,
|
package/dist/pages.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as s, a as P, C as g, F as n, b as l, c as i, M as r, P as c, S as o } from "./sidebar-menu-page-
|
|
1
|
+
import { B as s, a as P, C as g, F as n, b as l, c as i, M as r, P as c, S as o } from "./sidebar-menu-page-C-HSr1U3.js";
|
|
2
2
|
export {
|
|
3
3
|
s as BasicPage,
|
|
4
4
|
P as BlankPage,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Div as t, Header as n, H1 as d, P as o } from "@base-framework/atoms";
|
|
2
2
|
import { F as l, A as h } from "./aside-template-McEj_Gxc.js";
|
|
3
3
|
import { Component as x, Atom as i } from "@base-framework/base";
|
|
4
|
-
import { c as u, e as p } from "./mobile-nav-wrapper-
|
|
4
|
+
import { c as u, e as p } from "./mobile-nav-wrapper-CRb-9Lpb.js";
|
|
5
5
|
class c extends x {
|
|
6
6
|
/**
|
|
7
7
|
* This will declare the props for the compiler.
|
package/package.json
CHANGED