@base-framework/ui 1.0.48 → 1.0.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/index.es.js CHANGED
@@ -5,7 +5,7 @@ import { V as w, a as U } from "./veil-gN57SpXV.js";
5
5
  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 Ca, p as Ta, q as ca, S as Da, n as Ia, o as Sa, T as ba, x as Ba, y as Pa, m as Fa, r as Ma } from "./confirmation-BrFWql_V.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-CYExSMEO.js";
8
- import { B as Oa, m 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, q as Xa, p as Ya, n as Za, o as $a, T as as, k as ss, U as es, W as os, f as ts, h as rs, i as ns, c as is, d as ls, b as ps, e as us, a as ms, g as ds } from "./signature-panel-zC3mmGzc.js";
8
+ import { B as Oa, m 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, q as Xa, p as Ya, n as Za, o as $a, T as as, k as ss, U as es, W as os, f as ts, h as rs, i as ns, c as is, d as ls, b as ps, e as us, a as ms, g as ds } from "./signature-panel-CoHRfAjg.js";
9
9
  import { B as Cs, I as Ts, M as cs, d as Ds, e as Is, g as Ss, N as bs, b as Bs, a as Ps, f as Fs, P as Ms, c as ks, S as Ns, T as vs } from "./mobile-nav-wrapper-BE_hr65B.js";
10
10
  import { B as xs, a as hs, C as ys, F as Ws, b as Ls, c as As, M as Hs, P as ws, S as Us } from "./sidebar-menu-page-nCAVFk3R.js";
11
11
  import { A as Rs, F as Es, M as Gs, a as Vs, T as js } from "./aside-template-McEj_Gxc.js";
@@ -1,4 +1,4 @@
1
- import { B as s, m as o, C as t, j as r, D as n, l, H as i, I as d, N as b, O as v, P as g, S as p, q as u, p as N, n as k, o as C, T as D, k as M, U as T, W as c, f as B, h as m, i as y, c as W, d as h, b as H, e as P, a as S, g as f } from "./signature-panel-zC3mmGzc.js";
1
+ import { B as s, m as o, C as t, j as r, D as n, l, H as i, I as d, N as b, O as v, P as g, S as p, q as u, p as N, n as k, o as C, T as D, k as M, U as T, W as c, f as B, h as m, i as y, c as W, d as h, b as H, e as P, a as S, g as f } from "./signature-panel-CoHRfAjg.js";
2
2
  import { b as I, C as L, D as O, a as F, F as U, M as G, c as j, p as q } from "./calendar-CYExSMEO.js";
3
3
  import { B as z, I as A, M as E, d as J, e as K, g as Q, N as R, b as V, a as X, f as Y, P as Z, c as _, S as $, T as aa } from "./mobile-nav-wrapper-BE_hr65B.js";
4
4
  export {
@@ -1,22 +1,22 @@
1
- import { Button as v, Div as o, On as U, Span as y, Th as P, UseParent as Y, I as F, Thead as E, Tr as H, Table as Q, P as m, Li as D, Time as X, Nav as S, Ul as b, Section as O, Canvas as q } from "@base-framework/atoms";
2
- import { Atom as u, Component as g, Data as L, DateTime as K, Jot as R, router as k, NavLink as M, base as B, Dom as I } from "@base-framework/base";
3
- import { B as C, I as z } from "./buttons-CVEwmPAi.js";
1
+ import { Button as y, Div as o, On as Y, Span as v, Th as P, UseParent as F, I as E, Thead as H, Tr as Q, Table as X, P as m, Li as D, Time as q, Nav as S, Ul as b, Section as O, Canvas as K } from "@base-framework/atoms";
2
+ import { Atom as u, Component as g, Data as L, DateTime as G, Jot as R, router as x, NavLink as M, DataTracker as z, base as B, Dom as I } from "@base-framework/base";
3
+ import { B as C, I as N } from "./buttons-CVEwmPAi.js";
4
4
  import { Icons as w } from "./icons.es.js";
5
- import { TableBody as G, List as V, IntervalTimer as _ } from "@base-framework/organisms";
6
- import { C as J, I as Z, H as ee } from "./inputs-CzHSmZKP.js";
7
- import { A as te, P as se } from "./calendar-CYExSMEO.js";
5
+ import { TableBody as V, List as _, IntervalTimer as J } from "@base-framework/organisms";
6
+ import { C as Z, I as ee, H as te } from "./inputs-CzHSmZKP.js";
7
+ import { A as se, P as ne } from "./calendar-CYExSMEO.js";
8
8
  u((t, e) => ({
9
9
  class: "flex items-center px-4 py-2",
10
10
  ...t,
11
11
  children: e
12
12
  }));
13
- u(({ value: t, label: e }) => v({
13
+ u(({ value: t, label: e }) => y({
14
14
  class: "inline-flex flex-auto items-center justify-center whitespace-nowrap rounded-md px-8 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",
15
15
  onState: ["performance", { active: t }],
16
16
  dataSet: ["performance", ["state", t, "active"]],
17
17
  click: (s, { state: n }) => n.performance = t
18
18
  }, e));
19
- class Ge extends g {
19
+ class Ve extends g {
20
20
  /**
21
21
  * This will declare the props for the compiler.
22
22
  *
@@ -34,36 +34,36 @@ class Ge extends g {
34
34
  return o({ class: this.class || "" }, this.children);
35
35
  }
36
36
  }
37
- const ne = (t) => {
37
+ const ae = (t) => {
38
38
  const e = new Date(t, 11, 31), s = new Date(t, 0, 1);
39
39
  return e.getDay() === 4 || // December 31 is a Thursday
40
40
  s.getDay() === 4;
41
- }, ae = (t) => {
41
+ }, ie = (t) => {
42
42
  const e = new Date(t.valueOf()), s = (e.getDay() + 6) % 7;
43
43
  e.setDate(e.getDate() - s + 3);
44
44
  const n = e.getFullYear(), a = new Date(n, 0, 4);
45
45
  a.setDate(a.getDate() - (a.getDay() + 6) % 7);
46
46
  const i = Math.ceil((e - a) / 6048e5) + 1;
47
- return i > 52 && !ne(n) ? {
47
+ return i > 52 && !ae(n) ? {
48
48
  weekNumber: 1,
49
49
  year: n + 1
50
50
  } : {
51
51
  weekNumber: i,
52
52
  year: n
53
53
  };
54
- }, ie = (t, e, s) => {
54
+ }, oe = (t, e, s) => {
55
55
  if (s === 0) return [];
56
56
  const n = new Date(t, e, 0).getDate();
57
57
  return Array.from(
58
58
  { length: s },
59
59
  (a, i) => new Date(t, e - 1, n - s + i + 1)
60
60
  );
61
- }, oe = (t, e, s) => Array.from({ length: s }, (n, a) => new Date(t, e + 1, a + 1)), T = (t, e) => {
61
+ }, le = (t, e, s) => Array.from({ length: s }, (n, a) => new Date(t, e + 1, a + 1)), T = (t, e) => {
62
62
  const s = new Date(e, 0, 4), n = (s.getDay() + 6) % 7, a = new Date(s);
63
63
  a.setDate(s.getDate() - n);
64
64
  const i = new Date(a);
65
65
  return i.setDate(a.getDate() + (t - 1) * 7), i;
66
- }, Ve = (t, e) => {
66
+ }, _e = (t, e) => {
67
67
  const s = new Date(t, e, 1).getDay(), n = new Date(t, e + 1, 0).getDate(), a = [];
68
68
  let i = [];
69
69
  for (let l = 1 - s; l <= n; l++) {
@@ -71,18 +71,18 @@ const ne = (t) => {
71
71
  i.push(l > 0 ? d : null), (i.length === 7 || l === n) && (a.push([...i]), i = []);
72
72
  }
73
73
  return a;
74
- }, _e = (t, e) => {
74
+ }, Je = (t, e) => {
75
75
  const s = new Date(t, e + 1, 0).getDate(), n = [];
76
76
  let a = [];
77
77
  for (let i = 1; i <= s; i++)
78
78
  a.push(new Date(t, e, i)), a.length === 7 && (n.push(a), a = []);
79
79
  return a.length > 0 && n.push(a), n;
80
- }, le = (t, e, s) => {
80
+ }, re = (t, e, s) => {
81
81
  const n = /* @__PURE__ */ new Date();
82
82
  return n.getDate() === t && n.getMonth() === e && n.getFullYear() === s;
83
- }, re = ({ day: t, month: e, year: s, weekNumber: n, selectWeek: a }) => {
84
- const i = le(t, e, s);
85
- return v({
83
+ }, ce = ({ day: t, month: e, year: s, weekNumber: n, selectWeek: a }) => {
84
+ const i = re(t, e, s);
85
+ return y({
86
86
  text: t || "",
87
87
  disabled: !t,
88
88
  class: `
@@ -92,19 +92,19 @@ const ne = (t) => {
92
92
  `,
93
93
  click: () => a(n, s)
94
94
  });
95
- }, ce = (t, e) => {
96
- const s = new Date(t, e, 1).getDay(), n = new Date(t, e + 1, 0).getDate(), a = ie(t, e, s), i = Array.from({ length: n }, (r, p) => new Date(t, e, p + 1)), l = (a.length + i.length) % 7, d = l === 0 ? 0 : 7 - l, c = oe(t, e, d), h = [...a, ...i, ...c], f = [];
95
+ }, de = (t, e) => {
96
+ const s = new Date(t, e, 1).getDay(), n = new Date(t, e + 1, 0).getDate(), a = oe(t, e, s), i = Array.from({ length: n }, (r, p) => new Date(t, e, p + 1)), l = (a.length + i.length) % 7, d = l === 0 ? 0 : 7 - l, c = le(t, e, d), h = [...a, ...i, ...c], f = [];
97
97
  for (let r = 0; r < h.length; r += 7) {
98
- const p = h.slice(r, r + 7), x = p.find((A) => A) || new Date(t, e, 1), { weekNumber: $, year: j } = ae(x);
98
+ const p = h.slice(r, r + 7), k = p.find((U) => U) || new Date(t, e, 1), { weekNumber: j, year: A } = ie(k);
99
99
  f.push({
100
- weekNumber: $,
101
- year: j,
100
+ weekNumber: j,
101
+ year: A,
102
102
  days: p
103
103
  });
104
104
  }
105
105
  return f;
106
- }, de = ({ selectWeek: t }) => U("month", (e, s, { data: n }) => {
107
- const { year: a, month: i, currentDate: l } = n, d = ce(a, i);
106
+ }, he = ({ selectWeek: t }) => Y("month", (e, s, { data: n }) => {
107
+ const { year: a, month: i, currentDate: l } = n, d = de(a, i);
108
108
  return o(
109
109
  { class: "grid grid-cols-8 gap-1 text-sm px-4 py-2" },
110
110
  [
@@ -115,7 +115,7 @@ const ne = (t) => {
115
115
  class: "grid grid-cols-7 col-span-7 text-center text-muted-foreground items-center"
116
116
  },
117
117
  ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(
118
- (c) => y({ class: "px-1 py-1", text: c })
118
+ (c) => v({ class: "px-1 py-1", text: c })
119
119
  )
120
120
  ),
121
121
  // Render each "week" row
@@ -141,7 +141,7 @@ const ne = (t) => {
141
141
  o(
142
142
  { class: "grid grid-cols-7 col-span-7 text-center" },
143
143
  h.map(
144
- (r) => re({
144
+ (r) => ce({
145
145
  year: (r == null ? void 0 : r.getFullYear()) || null,
146
146
  month: (r == null ? void 0 : r.getMonth()) || null,
147
147
  day: (r == null ? void 0 : r.getDate()) || null,
@@ -169,8 +169,8 @@ const ne = (t) => {
169
169
  variant: "icon",
170
170
  icon: t === "Previous" ? w.chevron.single.left : w.chevron.single.right
171
171
  }
172
- ), he = ({ next: t, previous: e }) => o({ class: "flex flex-auto min-h-12 text-sm font-medium relative justify-center items-center" }, [
173
- y("[[monthName]] [[year]]"),
172
+ ), ue = ({ next: t, previous: e }) => o({ class: "flex flex-auto min-h-12 text-sm font-medium relative justify-center items-center" }, [
173
+ v("[[monthName]] [[year]]"),
174
174
  W({
175
175
  label: "Previous",
176
176
  click: e
@@ -180,7 +180,7 @@ const ne = (t) => {
180
180
  click: t
181
181
  })
182
182
  ]);
183
- class Je extends g {
183
+ class Ze extends g {
184
184
  /**
185
185
  * This will declare the props for the compiler.
186
186
  *
@@ -233,7 +233,7 @@ class Je extends g {
233
233
  * @returns {string}
234
234
  */
235
235
  getMonthName(e) {
236
- return K.monthNames[e];
236
+ return G.monthNames[e];
237
237
  }
238
238
  /**
239
239
  * Updates the calendar to show the previous month.
@@ -288,36 +288,36 @@ class Je extends g {
288
288
  */
289
289
  render() {
290
290
  return o({ class: "week-calendar-container border rounded-md bg-background p-3" }, [
291
- he({
291
+ ue({
292
292
  next: () => this.goToNextMonth(),
293
293
  previous: () => this.goToPreviousMonth()
294
294
  }),
295
- de({
295
+ he({
296
296
  selectWeek: (e, s) => this.selectWeek(e, s)
297
297
  })
298
298
  ]);
299
299
  }
300
300
  }
301
- const ue = (t, e) => {
301
+ const ge = (t, e) => {
302
302
  const s = t.toggleAllSelectedRows();
303
303
  e.state.checked = !s;
304
- }, ge = (t) => P({ class: `cursor-pointer py-3 px-4 text-base w-10 ${t.class || ""}` }, [
305
- Y((e) => new J({ class: "mr-2", onChange: (s, n) => ue(e, n) }))
306
- ]), fe = ({ align: t, sortable: e, key: s, label: n, sort: a, class: i }) => {
304
+ }, fe = (t) => P({ class: `cursor-pointer py-3 px-4 text-base w-10 ${t.class || ""}` }, [
305
+ F((e) => new Z({ class: "mr-2", onChange: (s, n) => ge(e, n) }))
306
+ ]), pe = ({ align: t, sortable: e, key: s, label: n, sort: a, class: i }) => {
307
307
  const l = t || "justify-start";
308
308
  return P({
309
309
  class: `cursor-pointer py-3 px-4 text-base ${i || ""}`,
310
310
  click: e && (() => a(s))
311
311
  }, [
312
312
  o({ class: `flex flex-auto w-full items-center ${l}` }, [
313
- y(n),
314
- e && F({ class: "ml-2", html: w.arrows.upDown })
313
+ v(n),
314
+ e && E({ class: "ml-2", html: w.arrows.upDown })
315
315
  ])
316
316
  ]);
317
- }, pe = (t) => E([
318
- H({
317
+ }, me = (t) => H([
318
+ Q({
319
319
  class: "text-muted-foreground border-b",
320
- map: [t.headers, (e) => e.label === "checkbox" ? ge({ toggle: t.toggle }) : fe({
320
+ map: [t.headers, (e) => e.label === "checkbox" ? fe({ toggle: t.toggle }) : pe({
321
321
  align: e.align,
322
322
  sortable: e.sortable,
323
323
  key: e.key,
@@ -325,13 +325,13 @@ const ue = (t, e) => {
325
325
  sort: t.sort
326
326
  })]
327
327
  })
328
- ]), me = ({ key: t, rows: e, selectRow: s, rowItem: n }) => new G({
328
+ ]), we = ({ key: t, rows: e, selectRow: s, rowItem: n }) => new V({
329
329
  cache: "table",
330
330
  key: t,
331
331
  items: e,
332
332
  rowItem: (a) => n(a, s),
333
333
  class: "divide-y divide-border"
334
- }), Ze = R(
334
+ }), et = R(
335
335
  {
336
336
  /**
337
337
  * Initializes component data.
@@ -401,12 +401,12 @@ const ue = (t, e) => {
401
401
  const t = this.rows, e = this.border !== !1 ? "border" : "";
402
402
  return o({ class: "w-full" }, [
403
403
  o({ class: `w-full rounded-md ${e} overflow-x-auto` }, [
404
- Q({ class: "w-full" }, [
404
+ X({ class: "w-full" }, [
405
405
  // @ts-ignore
406
- this.headers && pe({ headers: this.headers, sort: (s) => this.sortRows(s) }),
406
+ this.headers && me({ headers: this.headers, sort: (s) => this.sortRows(s) }),
407
407
  // @ts-ignore
408
408
  this.customHeader ?? null,
409
- me({
409
+ we({
410
410
  // @ts-ignore
411
411
  key: this.key,
412
412
  rows: t,
@@ -479,45 +479,45 @@ const ue = (t, e) => {
479
479
  this.data.selectedRows = [];
480
480
  }
481
481
  }
482
- ), we = u(({ name: t, email: e }) => o({ class: "min-w-0 flex-auto" }, [
482
+ ), be = u(({ name: t, email: e }) => o({ class: "min-w-0 flex-auto" }, [
483
483
  m({ class: "text-base font-semibold leading-6 m-0" }, t),
484
484
  m({ class: "truncate text-sm leading-5 text-muted-foreground m-0" }, e)
485
- ])), be = () => o({ class: "flex items-center gap-x-1.5" }, [
485
+ ])), ke = () => o({ class: "flex items-center gap-x-1.5" }, [
486
486
  o({ class: "flex-none rounded-full bg-emerald-500/20 p-1" }, [
487
487
  o({ class: "h-1.5 w-1.5 rounded-full bg-emerald-500" })
488
488
  ]),
489
489
  m({ class: "text-xs leading-5 text-gray-500" }, "Online")
490
490
  ]), xe = (t) => m({ class: "text-xs leading-5 text-muted-foreground" }, [
491
- y("Last seen "),
492
- X({ datetime: t }, "3h ago")
493
- ]), ke = (t, e) => t === "online" ? be() : xe(e), ve = u(({ role: t, lastSeen: e, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
491
+ v("Last seen "),
492
+ q({ datetime: t }, "3h ago")
493
+ ]), ye = (t, e) => t === "online" ? ke() : xe(e), ve = u(({ role: t, lastSeen: e, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
494
494
  m({ class: "text-sm leading-6 m-0" }, t),
495
- ke(s, e)
496
- ])), ye = (t) => t.split(" ").map((s) => s[0]).join(""), De = u((t) => D({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
495
+ ye(s, e)
496
+ ])), De = (t) => t.split(" ").map((s) => s[0]).join(""), Se = u((t) => D({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
497
497
  o({ class: "flex min-w-0 gap-x-4" }, [
498
- te({ src: t.image, alt: t.name, fallbackText: ye(t.name) }),
499
- we({ name: t.name, email: t.email })
498
+ se({ src: t.image, alt: t.name, fallbackText: De(t.name) }),
499
+ be({ name: t.name, email: t.email })
500
500
  ]),
501
501
  ve({
502
502
  role: t.role,
503
503
  lastSeen: t.lastSeen,
504
504
  status: t.status
505
505
  })
506
- ])), et = u((t) => new V({
506
+ ])), tt = u((t) => new _({
507
507
  cache: "list",
508
508
  key: "name",
509
509
  items: t.users,
510
510
  role: "list",
511
511
  class: "divide-y divide-border",
512
- rowItem: De
513
- })), Se = (t, e) => e.includes(t), Le = (t, e, s) => t.exact ? s === e : Se(e, s), Ce = ({ text: t, href: e, exact: s, hidden: n }) => new M({
512
+ rowItem: Se
513
+ })), Le = (t, e) => e.includes(t), Ce = (t, e, s) => t.exact ? s === e : Le(e, s), Be = ({ text: t, href: e, exact: s, hidden: n }) => new M({
514
514
  text: t,
515
515
  href: e,
516
516
  exact: s,
517
517
  dataSet: ["selected", ["state", !0, "active"]],
518
518
  class: `${n ? "hidden" : "inline-flex"} items-center justify-center whitespace-nowrap px-3 py-1.5 text-sm font-medium transition-all rounded-md focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-ring focus-visible:ring-offset-background hover:bg-primary hover:text-primary-foreground disabled:opacity-50 disabled:pointer-events-none data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:shadow-sm`
519
519
  });
520
- class tt extends g {
520
+ class st extends g {
521
521
  /**
522
522
  * This will declare the props for the compiler.
523
523
  *
@@ -545,7 +545,7 @@ class tt extends g {
545
545
  class: "flex space-x-4",
546
546
  map: [this.options, (e) => this.addLink(e)],
547
547
  watch: {
548
- value: ["[[path]]", k.data],
548
+ value: ["[[path]]", x.data],
549
549
  callBack: this.updateLinks.bind(this)
550
550
  }
551
551
  })
@@ -558,7 +558,7 @@ class tt extends g {
558
558
  * @returns {void}
559
559
  */
560
560
  afterSetup() {
561
- const e = k.data.path;
561
+ const e = x.data.path;
562
562
  this.updateLinks(e);
563
563
  }
564
564
  /**
@@ -573,7 +573,7 @@ class tt extends g {
573
573
  for (const n of this.links) {
574
574
  if (!n.rendered)
575
575
  continue;
576
- Le(n, n.getLinkPath(), e) ? (this.updateLink(n, !0), s = !0) : this.updateLink(n, !1);
576
+ Ce(n, n.getLinkPath(), e) ? (this.updateLink(n, !0), s = !0) : this.updateLink(n, !1);
577
577
  }
578
578
  !s && this.links[0] && this.updateLink(this.links[0], !0);
579
579
  }
@@ -603,7 +603,7 @@ class tt extends g {
603
603
  * @returns {object}
604
604
  */
605
605
  addLink({ label: e, href: s, exact: n, hidden: a }) {
606
- const i = Ce({ text: e, href: s, exact: n, hidden: a });
606
+ const i = Be({ text: e, href: s, exact: n, hidden: a });
607
607
  return this.links.push(i), i;
608
608
  }
609
609
  /**
@@ -615,7 +615,7 @@ class tt extends g {
615
615
  this.links = [];
616
616
  }
617
617
  }
618
- const st = u((t) => {
618
+ const nt = u((t) => {
619
619
  const e = t.margin || "m-4 ml-0";
620
620
  return o({ class: `flex-none ${e}` }, [
621
621
  C({
@@ -629,11 +629,11 @@ const st = u((t) => {
629
629
  t.backUrl && app.navigate(t.backUrl);
630
630
  }
631
631
  }, [
632
- z(w.arrows.left)
632
+ N(w.arrows.left)
633
633
  ])
634
634
  ]);
635
635
  });
636
- class N extends g {
636
+ class $ extends g {
637
637
  /**
638
638
  * This will declare the props for the compiler.
639
639
  *
@@ -720,7 +720,13 @@ class N extends g {
720
720
  return this.children;
721
721
  }
722
722
  }
723
- class nt extends N {
723
+ z.addType("dockableOverlay", (t) => {
724
+ if (!t)
725
+ return;
726
+ const e = t.component;
727
+ e && e.rendered === !0 && e.state.docked === !1 && e.destroy();
728
+ });
729
+ class at extends $ {
724
730
  /**
725
731
  * This will stop presistence.
726
732
  *
@@ -786,7 +792,13 @@ class nt extends N {
786
792
  * @returns {void}
787
793
  */
788
794
  afterSetup() {
789
- this.onResize();
795
+ z.add(
796
+ this.container,
797
+ "dockableOverlay",
798
+ {
799
+ component: this
800
+ }
801
+ ), this.onResize();
790
802
  }
791
803
  /**
792
804
  * This will setup the overlay events.
@@ -823,7 +835,7 @@ class nt extends N {
823
835
  document.documentElement.style.overflowY = "auto";
824
836
  }
825
837
  }
826
- class at extends N {
838
+ class it extends $ {
827
839
  /**
828
840
  * This will get the overlay type.
829
841
  *
@@ -842,7 +854,7 @@ class at extends N {
842
854
  this.container = e, this.initialize();
843
855
  }
844
856
  }
845
- const Be = u(({ index: t, click: e, state: s }, n) => D({
857
+ const Ie = u(({ index: t, click: e, state: s }, n) => D({
846
858
  class: "p-2 cursor-pointer hover:bg-muted/50",
847
859
  onState: [
848
860
  [s, "selectedIndex", {
@@ -851,11 +863,11 @@ const Be = u(({ index: t, click: e, state: s }, n) => D({
851
863
  }]
852
864
  ],
853
865
  click: () => e(t)
854
- }, n)), Ie = u(({ selectOption: t, state: e }) => b({
866
+ }, n)), Te = u(({ selectOption: t, state: e }) => b({
855
867
  class: "border rounded-md list-none m-0 p-0 max-h-[400px] overflow-y-auto",
856
- for: ["filteredOptions", (s, n) => Be({ index: n, click: t, state: e }, s.label)]
857
- })), Te = u((t) => o({ class: "relative flex items-center" }, [
858
- Z({
868
+ for: ["filteredOptions", (s, n) => Ie({ index: n, click: t, state: e }, s.label)]
869
+ })), We = u((t) => o({ class: "relative flex items-center" }, [
870
+ ee({
859
871
  cache: "input",
860
872
  placeholder: t.placeholder ?? "Search...",
861
873
  bind: [t.state, "searchQuery"],
@@ -866,22 +878,22 @@ const Be = u(({ index: t, click: e, state: s }, n) => D({
866
878
  keydown: (e) => typeof t.handleKeyDown == "function" && t.handleKeyDown(e)
867
879
  }),
868
880
  t.icon && o({ class: "absolute right-0 mr-2" }, [
869
- z(t.icon)
881
+ N(t.icon)
870
882
  ])
871
- ])), We = (t) => o({
883
+ ])), Pe = (t) => o({
872
884
  class: "relative flex fle-auto flex-col",
873
885
  onState: ["open", (e, s, n) => {
874
886
  if (e)
875
- return new se({
887
+ return new ne({
876
888
  cache: "dropdown",
877
889
  parent: n,
878
890
  button: n.input,
879
891
  size: "xl"
880
892
  }, [
881
- Ie(t)
893
+ Te(t)
882
894
  ]);
883
895
  }]
884
- }), it = R(
896
+ }), ot = R(
885
897
  {
886
898
  /**
887
899
  * This will set up the data object.
@@ -978,7 +990,7 @@ const Be = u(({ index: t, click: e, state: s }, n) => D({
978
990
  */
979
991
  render() {
980
992
  return o({ class: "relative w-full max-w-md" }, [
981
- Te({
993
+ We({
982
994
  // @ts-ignore
983
995
  state: this.state,
984
996
  // @ts-ignore
@@ -990,7 +1002,7 @@ const Be = u(({ index: t, click: e, state: s }, n) => D({
990
1002
  // @ts-ignore
991
1003
  handleKeyDown: this.handleKeyDown.bind(this)
992
1004
  }),
993
- We({
1005
+ Pe({
994
1006
  // @ts-ignore
995
1007
  state: this.state,
996
1008
  // @ts-ignore
@@ -1001,22 +1013,22 @@ const Be = u(({ index: t, click: e, state: s }, n) => D({
1001
1013
  ]);
1002
1014
  }
1003
1015
  }
1004
- ), Pe = (t) => D(
1016
+ ), Oe = (t) => D(
1005
1017
  {
1006
1018
  class: "inline-flex flex-auto items-center justify-center whitespace-nowrap rounded-sm text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:shadow-sm",
1007
1019
  dataSet: ["selected", ["state", t.value, "active"]]
1008
1020
  },
1009
1021
  [
1010
- v({
1022
+ y({
1011
1023
  class: "flex flex-auto justify-center items-center px-3 py-1.5",
1012
1024
  onSet: ["selected", { selected: t.value }],
1013
1025
  click: (e) => t.callBack(t.value)
1014
1026
  }, t.label)
1015
1027
  ]
1016
- ), Oe = (t, e) => (t.callBack = e, Pe(t)), Re = (t) => S({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
1017
- b({ class: "flex flex-auto flex-row", map: [t.options, (e) => Oe(e, t.callBack)] })
1028
+ ), Re = (t, e) => (t.callBack = e, Oe(t)), Me = (t) => S({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
1029
+ b({ class: "flex flex-auto flex-row", map: [t.options, (e) => Re(e, t.callBack)] })
1018
1030
  ]);
1019
- class ot extends g {
1031
+ class lt extends g {
1020
1032
  /**
1021
1033
  * This will declare the props for the compiler.
1022
1034
  *
@@ -1033,7 +1045,7 @@ class ot extends g {
1033
1045
  render() {
1034
1046
  const e = this.select.bind(this);
1035
1047
  return o({ class: "" }, [
1036
- Re({
1048
+ Me({
1037
1049
  class: this.class,
1038
1050
  options: this.options,
1039
1051
  callBack: e
@@ -1104,23 +1116,23 @@ class ot extends g {
1104
1116
  };
1105
1117
  }
1106
1118
  }
1107
- const Me = (t) => D(
1119
+ const ze = (t) => D(
1108
1120
  {
1109
1121
  class: "inline-flex flex-auto items-center justify-center whitespace-nowrap rounded-sm text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:shadow-sm",
1110
1122
  dataSet: ["selected", ["state", t.value, "active"]]
1111
1123
  },
1112
1124
  [
1113
- v({
1125
+ y({
1114
1126
  class: "flex flex-auto justify-center items-center px-3 py-1.5 disabled:opacity-50 disabled:cursor-not-allowed",
1115
1127
  onSet: ["selected", { selected: t.value }],
1116
1128
  click: (e) => t.callBack(t.value),
1117
1129
  disabled: t.disabled
1118
1130
  }, t.label)
1119
1131
  ]
1120
- ), ze = (t, e) => (t.callBack = e, Me(t)), Ne = (t) => S({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
1121
- b({ class: "flex flex-auto flex-row", map: [t.options, (e) => ze(e, t.callBack)] })
1132
+ ), Ne = (t, e) => (t.callBack = e, ze(t)), $e = (t) => S({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
1133
+ b({ class: "flex flex-auto flex-row", map: [t.options, (e) => Ne(e, t.callBack)] })
1122
1134
  ]);
1123
- class lt extends g {
1135
+ class rt extends g {
1124
1136
  /**
1125
1137
  * This will declare the props for the compiler.
1126
1138
  *
@@ -1136,7 +1148,7 @@ class lt extends g {
1136
1148
  */
1137
1149
  render() {
1138
1150
  const e = this.select.bind(this);
1139
- return Ne({
1151
+ return $e({
1140
1152
  class: this.class,
1141
1153
  options: this.options,
1142
1154
  callBack: e
@@ -1163,17 +1175,17 @@ class lt extends g {
1163
1175
  };
1164
1176
  }
1165
1177
  }
1166
- const $e = (t, e) => new RegExp(`${t}($|/|\\.).*`).test(e), je = (t, e) => {
1178
+ const je = (t, e) => new RegExp(`${t}($|/|\\.).*`).test(e), Ae = (t, e) => {
1167
1179
  const s = t.getLinkPath();
1168
- return t.exact ? e === s : $e(s, e);
1169
- }, Ae = ({ text: t, href: e, exact: s }) => new M({
1180
+ return t.exact ? e === s : je(s, e);
1181
+ }, Ue = ({ text: t, href: e, exact: s }) => new M({
1170
1182
  text: t,
1171
1183
  href: e,
1172
1184
  exact: s,
1173
1185
  dataSet: ["selected", ["state", !0, "active"]],
1174
1186
  class: "inline-flex flex-auto items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:shadow-sm"
1175
1187
  });
1176
- class Ue extends g {
1188
+ class Ye extends g {
1177
1189
  /**
1178
1190
  * This will declare the props for the compiler.
1179
1191
  *
@@ -1199,7 +1211,7 @@ class Ue extends g {
1199
1211
  class: "flex flex-auto flex-row",
1200
1212
  map: [this.options, (e) => this.addLink(e)],
1201
1213
  watch: {
1202
- value: ["[[path]]", k.data],
1214
+ value: ["[[path]]", x.data],
1203
1215
  callBack: this.updateLinks.bind(this)
1204
1216
  }
1205
1217
  })
@@ -1211,7 +1223,7 @@ class Ue extends g {
1211
1223
  * @returns {void}
1212
1224
  */
1213
1225
  afterSetup() {
1214
- const e = k.data.path;
1226
+ const e = x.data.path;
1215
1227
  this.updateLinks(e);
1216
1228
  }
1217
1229
  /**
@@ -1224,7 +1236,7 @@ class Ue extends g {
1224
1236
  let s = !1, n = this.links[0];
1225
1237
  this.deactivateAllLinks();
1226
1238
  for (const a of this.links)
1227
- if (a.rendered !== !1 && (s = je(a, e), s === !0)) {
1239
+ if (a.rendered !== !1 && (s = Ae(a, e), s === !0)) {
1228
1240
  this.updateLink(a, !0);
1229
1241
  break;
1230
1242
  }
@@ -1256,7 +1268,7 @@ class Ue extends g {
1256
1268
  * @returns {object}
1257
1269
  */
1258
1270
  addLink({ label: e, href: s, exact: n }) {
1259
- const a = Ae({ text: e, href: s, exact: n });
1271
+ const a = Ue({ text: e, href: s, exact: n });
1260
1272
  return this.links.push(a), a;
1261
1273
  }
1262
1274
  /**
@@ -1268,7 +1280,7 @@ class Ue extends g {
1268
1280
  this.links = [];
1269
1281
  }
1270
1282
  }
1271
- class rt extends g {
1283
+ class ct extends g {
1272
1284
  /**
1273
1285
  * This will declare the props for the compiler.
1274
1286
  *
@@ -1284,7 +1296,7 @@ class rt extends g {
1284
1296
  */
1285
1297
  render() {
1286
1298
  return o({ class: "tab-panel" }, [
1287
- new Ue({
1299
+ new Ye({
1288
1300
  class: this.class,
1289
1301
  options: this.options
1290
1302
  }),
@@ -1314,7 +1326,7 @@ class rt extends g {
1314
1326
  return s;
1315
1327
  }
1316
1328
  }
1317
- class Ye extends g {
1329
+ class Fe extends g {
1318
1330
  /**
1319
1331
  * Runs before rendering, sets up defaults, a timer for drawing,
1320
1332
  * and basic canvas properties.
@@ -1324,7 +1336,7 @@ class Ye extends g {
1324
1336
  onCreated() {
1325
1337
  this.lineWidth = this.lineWidth || 3, this.lineColor = this.lineColor || "#000000", this.canvas = null, this.ctx = null, this.status = "stopped";
1326
1338
  const e = 1e3 / 60;
1327
- this.timer = new _(e, this.draw.bind(this)), this.width = 0, this.height = 0, this.signed = !1, this.mouse = { x: 0, y: 0, status: "up" }, this.margin = this.margin || { x: 40, y: 60 }, this.targetSize = this.targetSize || { width: 740, height: 345 }, this.baseLineWidth = this.baseLineWidth || 2, this.baseStrokeColor = this.baseStrokeColor || "#000000";
1339
+ this.timer = new J(e, this.draw.bind(this)), this.width = 0, this.height = 0, this.signed = !1, this.mouse = { x: 0, y: 0, status: "up" }, this.margin = this.margin || { x: 40, y: 60 }, this.targetSize = this.targetSize || { width: 740, height: 345 }, this.baseLineWidth = this.baseLineWidth || 2, this.baseStrokeColor = this.baseStrokeColor || "#000000";
1328
1340
  }
1329
1341
  /**
1330
1342
  * Renders a <canvas> element.
@@ -1332,7 +1344,7 @@ class Ye extends g {
1332
1344
  * @returns {object} Layout definition for the canvas.
1333
1345
  */
1334
1346
  render() {
1335
- return q({
1347
+ return K({
1336
1348
  style: "touch-action: none; -webkit-user-select: none; -webkit-touch-callout: none;"
1337
1349
  });
1338
1350
  }
@@ -1463,8 +1475,8 @@ class Ye extends g {
1463
1475
  const e = this.canvas, s = this.container, n = I.getSize(s), a = this.targetSize, i = a.width, l = a.height;
1464
1476
  let d = i + "px", c = l + "px";
1465
1477
  if (this.width = e.width = i, this.height = e.height = l, n.width !== 0 && n.height !== 0) {
1466
- const h = n.width, f = n.height, r = h / i, p = f / l, x = Math.min(r, p);
1467
- d = i * x + "px", c = l * x + "px";
1478
+ const h = n.width, f = n.height, r = h / i, p = f / l, k = Math.min(r, p);
1479
+ d = i * k + "px", c = l * k + "px";
1468
1480
  }
1469
1481
  e.style.width = d, e.style.height = c;
1470
1482
  }
@@ -1540,7 +1552,7 @@ class Ye extends g {
1540
1552
  this.timer.stop(), this.status = "stopped";
1541
1553
  }
1542
1554
  }
1543
- class ct extends g {
1555
+ class dt extends g {
1544
1556
  /**
1545
1557
  * Sets up default properties for the signature panel.
1546
1558
  *
@@ -1557,7 +1569,7 @@ class ct extends g {
1557
1569
  */
1558
1570
  render() {
1559
1571
  return o({ class: "signature-panel relative flex flex-auto overflow-hidden select-none" }, [
1560
- ee({
1572
+ te({
1561
1573
  cache: "hiddenInput",
1562
1574
  required: !0,
1563
1575
  bind: this.path + ".data"
@@ -1569,7 +1581,7 @@ class ct extends g {
1569
1581
  click: this.reset.bind(this)
1570
1582
  })
1571
1583
  ]),
1572
- new Ye({
1584
+ new Fe({
1573
1585
  cache: "canvasLayer",
1574
1586
  margin: this.margin,
1575
1587
  targetSize: this.targetSize,
@@ -1619,33 +1631,33 @@ class ct extends g {
1619
1631
  }
1620
1632
  }
1621
1633
  export {
1622
- st as B,
1623
- ge as C,
1624
- me as D,
1625
- fe as H,
1626
- at as I,
1627
- tt as N,
1628
- N as O,
1629
- Ge as P,
1630
- it as S,
1631
- pe as T,
1632
- De as U,
1633
- Je as W,
1634
- oe as a,
1634
+ nt as B,
1635
+ fe as C,
1636
+ we as D,
1637
+ pe as H,
1638
+ it as I,
1639
+ st as N,
1640
+ $ as O,
1641
+ Ve as P,
1642
+ ot as S,
1643
+ me as T,
1644
+ Se as U,
1645
+ Ze as W,
1646
+ le as a,
1635
1647
  T as b,
1636
- ae as c,
1637
- Ve as d,
1638
- _e as e,
1639
- re as f,
1640
- ie as g,
1641
- de as h,
1642
- he as i,
1643
- Ze as j,
1644
- et as k,
1645
- nt as l,
1646
- ot as m,
1647
- lt as n,
1648
- Ue as o,
1649
- rt as p,
1650
- ct as q
1648
+ ie as c,
1649
+ _e as d,
1650
+ Je as e,
1651
+ ce as f,
1652
+ oe as g,
1653
+ he as h,
1654
+ ue as i,
1655
+ et as j,
1656
+ tt as k,
1657
+ at as l,
1658
+ lt as m,
1659
+ rt as n,
1660
+ Ye as o,
1661
+ ct as p,
1662
+ dt as q
1651
1663
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/ui",
3
- "version": "1.0.48",
3
+ "version": "1.0.50",
4
4
  "description": "This is a UI package that adds components and atoms that use Tailwind CSS and a theme based on Shadcn.",
5
5
  "main": "./dist/index.es.js",
6
6
  "scripts": {
@@ -40,7 +40,7 @@
40
40
  "typescript": "^5.4.2",
41
41
  "vite": "^5.4.9"
42
42
  },
43
- "types": "dist/types/ui.d.ts",
43
+ "types": "./dist/types/**/*.d.ts",
44
44
  "files": [
45
45
  "package.json",
46
46
  "readme.md",