@base-framework/ui 1.0.75 → 1.0.76

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-D4dRxILB.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 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-DgARq0AK.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-BDqm833e.js";
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-CWUdyYU9.js";
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-DkDboZSd.js";
9
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-BE_hr65B.js";
10
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-nCAVFk3R.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";
@@ -1,4 +1,4 @@
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-CWUdyYU9.js";
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-DkDboZSd.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-BDqm833e.js";
3
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-BE_hr65B.js";
4
4
  export {
@@ -1,10 +1,10 @@
1
- import { Button as y, Div as o, On as E, Span as v, Th as P, UseParent as H, I as Q, Thead as X, Tr as q, Table as R, P as m, Li as D, Time as K, Nav as S, Ul as b, Section as O, Canvas as G } from "@base-framework/atoms";
2
- import { Atom as d, Component as u, Data as L, DateTime as V, Jot as M, router as x, NavLink as z, DataTracker as N, base as B, Dom as I } from "@base-framework/base";
3
- import { B as C, I as $ } from "./buttons-CVEwmPAi.js";
1
+ import { Button as y, Div as o, On as E, Span as v, Th as P, UseParent as H, I as Q, Thead as X, Tr as q, Table as R, P as m, Li as D, Time as K, Nav as S, Ul as b, Section as M, Canvas as G } from "@base-framework/atoms";
2
+ import { Atom as d, Component as u, Data as C, DateTime as V, Jot as O, router as x, NavLink as z, DataTracker as N, base as I, Dom as B } from "@base-framework/base";
3
+ import { B as L, I as $ } from "./buttons-CVEwmPAi.js";
4
4
  import { Icons as w } from "./icons.es.js";
5
5
  import { TableBody as _, ScrollableTableBody as J, List as Z, IntervalTimer as ee } from "@base-framework/organisms";
6
- import { C as te, I as se, H as ne } from "./inputs-DmJuUwS9.js";
7
- import { A as ae, P as ie } from "./calendar-BDqm833e.js";
6
+ import { C as te, I as se, H as ae } from "./inputs-DmJuUwS9.js";
7
+ import { A as ne, P as ie } from "./calendar-BDqm833e.js";
8
8
  d((t, e) => ({
9
9
  class: "flex items-center px-4 py-2",
10
10
  ...t,
@@ -14,9 +14,9 @@ d(({ 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
- click: (s, { state: n }) => n.performance = t
17
+ click: (s, { state: a }) => a.performance = t
18
18
  }, e));
19
- class Je extends u {
19
+ class Ze extends u {
20
20
  /**
21
21
  * This will declare the props for the compiler.
22
22
  *
@@ -41,46 +41,46 @@ const oe = (t) => {
41
41
  }, le = (t) => {
42
42
  const e = new Date(t.valueOf()), s = (e.getDay() + 6) % 7;
43
43
  e.setDate(e.getDate() - s + 3);
44
- const n = e.getFullYear(), a = new Date(n, 0, 4);
45
- a.setDate(a.getDate() - (a.getDay() + 6) % 7);
46
- const i = Math.ceil((e - a) / 6048e5) + 1;
47
- return i > 52 && !oe(n) ? {
44
+ const a = e.getFullYear(), n = new Date(a, 0, 4);
45
+ n.setDate(n.getDate() - (n.getDay() + 6) % 7);
46
+ const i = Math.ceil((e - n) / 6048e5) + 1;
47
+ return i > 52 && !oe(a) ? {
48
48
  weekNumber: 1,
49
- year: n + 1
49
+ year: a + 1
50
50
  } : {
51
51
  weekNumber: i,
52
- year: n
52
+ year: a
53
53
  };
54
54
  }, re = (t, e, s) => {
55
55
  if (s === 0) return [];
56
- const n = new Date(t, e, 0).getDate();
56
+ const a = new Date(t, e, 0).getDate();
57
57
  return Array.from(
58
58
  { length: s },
59
- (a, i) => new Date(t, e - 1, n - s + i + 1)
59
+ (n, i) => new Date(t, e - 1, a - s + i + 1)
60
60
  );
61
- }, ce = (t, e, s) => Array.from({ length: s }, (n, a) => new Date(t, e + 1, a + 1)), T = (t, e) => {
62
- const s = new Date(e, 0, 4), n = (s.getDay() + 6) % 7, a = new Date(s);
63
- a.setDate(s.getDate() - n);
64
- const i = new Date(a);
65
- return i.setDate(a.getDate() + (t - 1) * 7), i;
66
- }, Ze = (t, e) => {
67
- const s = new Date(t, e, 1).getDay(), n = new Date(t, e + 1, 0).getDate(), a = [];
61
+ }, ce = (t, e, s) => Array.from({ length: s }, (a, n) => new Date(t, e + 1, n + 1)), T = (t, e) => {
62
+ const s = new Date(e, 0, 4), a = (s.getDay() + 6) % 7, n = new Date(s);
63
+ n.setDate(s.getDate() - a);
64
+ const i = new Date(n);
65
+ return i.setDate(n.getDate() + (t - 1) * 7), i;
66
+ }, et = (t, e) => {
67
+ const s = new Date(t, e, 1).getDay(), a = new Date(t, e + 1, 0).getDate(), n = [];
68
68
  let i = [];
69
- for (let l = 1 - s; l <= n; l++) {
69
+ for (let l = 1 - s; l <= a; l++) {
70
70
  const h = new Date(t, e, l);
71
- i.push(l > 0 ? h : null), (i.length === 7 || l === n) && (a.push([...i]), i = []);
71
+ i.push(l > 0 ? h : null), (i.length === 7 || l === a) && (n.push([...i]), i = []);
72
72
  }
73
- return a;
74
- }, et = (t, e) => {
75
- const s = new Date(t, e + 1, 0).getDate(), n = [];
76
- let a = [];
73
+ return n;
74
+ }, tt = (t, e) => {
75
+ const s = new Date(t, e + 1, 0).getDate(), a = [];
76
+ let n = [];
77
77
  for (let i = 1; i <= s; i++)
78
- a.push(new Date(t, e, i)), a.length === 7 && (n.push(a), a = []);
79
- return a.length > 0 && n.push(a), n;
78
+ n.push(new Date(t, e, i)), n.length === 7 && (a.push(n), n = []);
79
+ return n.length > 0 && a.push(n), a;
80
80
  }, de = (t, e, s) => {
81
- const n = /* @__PURE__ */ new Date();
82
- return n.getDate() === t && n.getMonth() === e && n.getFullYear() === s;
83
- }, he = ({ day: t, month: e, year: s, weekNumber: n, selectWeek: a }) => {
81
+ const a = /* @__PURE__ */ new Date();
82
+ return a.getDate() === t && a.getMonth() === e && a.getFullYear() === s;
83
+ }, he = ({ day: t, month: e, year: s, weekNumber: a, selectWeek: n }) => {
84
84
  const i = de(t, e, s);
85
85
  return y({
86
86
  text: t || "",
@@ -90,10 +90,10 @@ const oe = (t) => {
90
90
  ${i ? "bg-accent text-accent-foreground" : ""}
91
91
  hover:bg-primary hover:text-primary-foreground
92
92
  `,
93
- click: () => a(n, s)
93
+ click: () => n(a, s)
94
94
  });
95
95
  }, ue = (t, e) => {
96
- const s = new Date(t, e, 1).getDay(), n = new Date(t, e + 1, 0).getDate(), a = re(t, e, s), i = Array.from({ length: n }, (r, p) => new Date(t, e, p + 1)), l = (a.length + i.length) % 7, h = l === 0 ? 0 : 7 - l, c = ce(t, e, h), f = [...a, ...i, ...c], g = [];
96
+ const s = new Date(t, e, 1).getDay(), a = new Date(t, e + 1, 0).getDate(), n = re(t, e, s), i = Array.from({ length: a }, (r, p) => new Date(t, e, p + 1)), l = (n.length + i.length) % 7, h = l === 0 ? 0 : 7 - l, c = ce(t, e, h), f = [...n, ...i, ...c], g = [];
97
97
  for (let r = 0; r < f.length; r += 7) {
98
98
  const p = f.slice(r, r + 7), k = p.find((F) => F) || new Date(t, e, 1), { weekNumber: U, year: Y } = le(k);
99
99
  g.push({
@@ -103,8 +103,8 @@ const oe = (t) => {
103
103
  });
104
104
  }
105
105
  return g;
106
- }, fe = ({ selectWeek: t }) => E("month", (e, s, { data: n }) => {
107
- const { year: a, month: i, currentDate: l } = n, h = ue(a, i);
106
+ }, fe = ({ selectWeek: t }) => E("month", (e, s, { data: a }) => {
107
+ const { year: n, month: i, currentDate: l } = a, h = ue(n, i);
108
108
  return o(
109
109
  { class: "grid grid-cols-8 gap-1 text-sm px-4 py-2" },
110
110
  [
@@ -154,7 +154,7 @@ const oe = (t) => {
154
154
  )
155
155
  ]
156
156
  );
157
- }), W = ({ label: t, click: e }) => C(
157
+ }), W = ({ label: t, click: e }) => L(
158
158
  {
159
159
  class: `
160
160
  inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
@@ -178,7 +178,7 @@ const oe = (t) => {
178
178
  click: t
179
179
  })
180
180
  ]);
181
- class tt extends u {
181
+ class st extends u {
182
182
  /**
183
183
  * This will declare the props for the compiler.
184
184
  *
@@ -193,12 +193,12 @@ class tt extends u {
193
193
  * @returns {Data}
194
194
  */
195
195
  setData() {
196
- const e = /* @__PURE__ */ new Date(), s = this.selectedWeek || this.calculateCurrentWeek(e), n = T(s, e.getFullYear());
197
- return new L({
198
- monthName: this.getMonthName(n.getMonth()),
199
- year: n.getFullYear(),
200
- month: n.getMonth(),
201
- currentDate: n.getDate(),
196
+ const e = /* @__PURE__ */ new Date(), s = this.selectedWeek || this.calculateCurrentWeek(e), a = T(s, e.getFullYear());
197
+ return new C({
198
+ monthName: this.getMonthName(a.getMonth()),
199
+ year: a.getFullYear(),
200
+ month: a.getMonth(),
201
+ currentDate: a.getDate(),
202
202
  currentWeek: s
203
203
  });
204
204
  }
@@ -219,10 +219,10 @@ class tt extends u {
219
219
  * @returns {number}
220
220
  */
221
221
  calculateCurrentWeek(e) {
222
- const s = new Date(e.valueOf()), n = (e.getDay() + 6) % 7;
223
- s.setDate(s.getDate() - n + 3);
224
- const a = s.valueOf();
225
- return s.setMonth(0, 1), s.getDay() !== 4 && s.setMonth(0, 1 + (4 - s.getDay() + 7) % 7), 1 + Math.ceil((a - s) / 6048e5);
222
+ const s = new Date(e.valueOf()), a = (e.getDay() + 6) % 7;
223
+ s.setDate(s.getDate() - a + 3);
224
+ const n = s.valueOf();
225
+ return s.setMonth(0, 1), s.getDay() !== 4 && s.setMonth(0, 1 + (4 - s.getDay() + 7) % 7), 1 + Math.ceil((n - s) / 6048e5);
226
226
  }
227
227
  /**
228
228
  * Gets the name of the month.
@@ -240,8 +240,8 @@ class tt extends u {
240
240
  */
241
241
  goToPreviousMonth() {
242
242
  const e = this.data;
243
- let { year: s, month: n } = e;
244
- n === 0 ? (n = 11, s--) : n--, this.setDate(n, s);
243
+ let { year: s, month: a } = e;
244
+ a === 0 ? (a = 11, s--) : a--, this.setDate(a, s);
245
245
  }
246
246
  /**
247
247
  * Updates the calendar to show the next month.
@@ -250,8 +250,8 @@ class tt extends u {
250
250
  */
251
251
  goToNextMonth() {
252
252
  const e = this.data;
253
- let { year: s, month: n } = e;
254
- n === 11 ? (n = 0, s++) : n++, this.setDate(n, s);
253
+ let { year: s, month: a } = e;
254
+ a === 11 ? (a = 0, s++) : a++, this.setDate(a, s);
255
255
  }
256
256
  /**
257
257
  * Sets the selected date.
@@ -261,12 +261,12 @@ class tt extends u {
261
261
  * @param {number|null} [date=null]
262
262
  * @returns {void}
263
263
  */
264
- setDate(e, s, n) {
264
+ setDate(e, s, a) {
265
265
  this.data.set({
266
266
  year: s,
267
267
  month: e,
268
268
  monthName: this.getMonthName(e)
269
- }), n && (this.data.currentDate = n);
269
+ }), a && (this.data.currentDate = a);
270
270
  }
271
271
  /**
272
272
  * Handles week selection.
@@ -276,8 +276,8 @@ class tt extends u {
276
276
  */
277
277
  selectWeek(e, s) {
278
278
  this.data.currentWeek = e;
279
- const n = T(e, s);
280
- this.setDate(n.getMonth(), n.getFullYear(), n.getDate()), typeof this.selectedCallBack == "function" && this.selectedCallBack(e);
279
+ const a = T(e, s);
280
+ this.setDate(a.getMonth(), a.getFullYear(), a.getDate()), typeof this.selectedCallBack == "function" && this.selectedCallBack(e);
281
281
  }
282
282
  /**
283
283
  * Renders the WeekCalendar component.
@@ -300,15 +300,15 @@ const pe = (t, e) => {
300
300
  const s = t.toggleAllSelectedRows();
301
301
  e.state.checked = !s;
302
302
  }, me = (t) => P({ class: `cursor-pointer py-3 px-4 text-base w-10 ${t.class || ""}` }, [
303
- H((e) => new te({ class: "mr-2", onChange: (s, n) => pe(e, n) }))
304
- ]), we = ({ align: t, sortable: e, key: s, label: n, sort: a, class: i }) => {
303
+ H((e) => new te({ class: "mr-2", onChange: (s, a) => pe(e, a) }))
304
+ ]), we = ({ align: t, sortable: e, key: s, label: a, sort: n, class: i }) => {
305
305
  const l = t || "justify-start";
306
306
  return P({
307
307
  class: `cursor-pointer py-3 px-4 text-base ${i || ""}`,
308
- click: e && (() => a(s))
308
+ click: e && (() => n(s))
309
309
  }, [
310
310
  o({ class: `flex flex-auto w-full items-center ${l}` }, [
311
- v(n),
311
+ v(a),
312
312
  e && Q({ class: "ml-2", html: w.arrows.upDown })
313
313
  ])
314
314
  ]);
@@ -323,13 +323,13 @@ const pe = (t, e) => {
323
323
  sort: t.sort
324
324
  })]
325
325
  })
326
- ]), be = ({ key: t, rows: e, selectRow: s, rowItem: n }) => new _({
326
+ ]), be = ({ key: t, rows: e, selectRow: s, rowItem: a }) => new _({
327
327
  cache: "list",
328
328
  key: t,
329
329
  items: e,
330
- rowItem: (a) => n(a, s),
330
+ rowItem: (n) => a(n, s),
331
331
  class: "divide-y divide-border"
332
- }), ke = M(
332
+ }), ke = O(
333
333
  {
334
334
  /**
335
335
  * Initializes component data.
@@ -337,7 +337,7 @@ const pe = (t, e) => {
337
337
  * @returns {Data}
338
338
  */
339
339
  setData() {
340
- return new L({
340
+ return new C({
341
341
  selectedRows: [],
342
342
  selected: !1
343
343
  });
@@ -387,8 +387,8 @@ const pe = (t, e) => {
387
387
  selectRow(t) {
388
388
  const e = t.selected ?? !1;
389
389
  t.selected = !e;
390
- const s = this.data.get("selectedRows"), n = t.selected ? [...s, t] : s.filter((a) => a !== t);
391
- this.data.selectedRows = n, this.updateSelected();
390
+ const s = this.data.get("selectedRows"), a = t.selected ? [...s, t] : s.filter((n) => n !== t);
391
+ this.data.selectedRows = a, this.updateSelected();
392
392
  },
393
393
  /**
394
394
  * Renders the DataTable component.
@@ -477,63 +477,86 @@ const pe = (t, e) => {
477
477
  this.data.selectedRows = [];
478
478
  }
479
479
  }
480
- ), st = d((t) => new ke(
481
- {
482
- /**
483
- * Renders the DataTable component.
484
- *
485
- * @returns {object}
486
- */
487
- render() {
488
- const e = t.rows, s = this.border !== !1 ? "border" : "";
489
- return o({ class: "w-full" }, [
490
- o({ class: `w-full rounded-md ${s} overflow-x-auto` }, [
491
- R({ class: "w-full" }, [
480
+ );
481
+ class xe extends ke {
482
+ /**
483
+ * Renders the DataTable component.
484
+ *
485
+ * @returns {object}
486
+ */
487
+ render() {
488
+ const e = this.rows, s = this.border !== !1 ? "border" : "";
489
+ return o({ class: "w-full" }, [
490
+ o({ class: `w-full rounded-md ${s} overflow-x-auto` }, [
491
+ R({ class: "w-full" }, [
492
+ // @ts-ignore
493
+ this.headers && j({ headers: this.headers, sort: (a) => this.sortRows(a) }),
494
+ // @ts-ignore
495
+ this.customHeader ?? null,
496
+ new J({
492
497
  // @ts-ignore
493
- t.headers && j({ headers: t.headers, sort: (n) => this.sortRows(n) }),
498
+ scrollContainer: this.scrollContainer,
494
499
  // @ts-ignore
495
- t.customHeader ?? null,
496
- new J({
497
- scrollContainer: t.scrollContainer,
498
- loadMoreItems: t.loadMoreItems,
499
- offset: t.offset,
500
- limit: t.limit,
501
- class: t.class,
502
- containerClass: t.containerClass ?? "",
503
- data: t.data,
504
- // @ts-ignore
505
- key: t.key,
506
- items: e,
507
- // @ts-ignore
508
- selectRow: this.selectRow.bind(this),
509
- // @ts-ignore
510
- rowItem: t.rowItem
511
- })
512
- ])
500
+ loadMoreItems: this.loadMoreItems,
501
+ // @ts-ignore
502
+ offset: this.offset,
503
+ // @ts-ignore
504
+ limit: this.limit,
505
+ // @ts-ignore
506
+ class: this.class,
507
+ // @ts-ignore
508
+ containerClass: this.containerClass ?? "",
509
+ // @ts-ignore
510
+ data: this.tableData,
511
+ // @ts-ignore
512
+ key: this.key,
513
+ items: e,
514
+ // @ts-ignore
515
+ selectRow: this.selectRow.bind(this),
516
+ // @ts-ignore
517
+ rowItem: this.rowItem
518
+ })
513
519
  ])
514
- ]);
515
- }
520
+ ])
521
+ ]);
516
522
  }
517
- )), xe = d(({ name: t, email: e }) => o({ class: "min-w-0 flex-auto" }, [
523
+ }
524
+ const at = d((t) => new xe(
525
+ {
526
+ tableData: t.data,
527
+ scrollContainer: t.scrollContainer,
528
+ loadMoreItems: t.loadMoreItems,
529
+ offset: t.offset,
530
+ limit: t.limit,
531
+ class: t.class,
532
+ key: t.key,
533
+ rows: t.rows,
534
+ rowItem: t.rowItem,
535
+ containerClass: t.containerClass ?? "",
536
+ headers: t.headers,
537
+ customHeader: t.customHeader,
538
+ border: t.border
539
+ }
540
+ )), ye = d(({ name: t, email: e }) => o({ class: "min-w-0 flex-auto" }, [
518
541
  m({ class: "text-base font-semibold leading-6 m-0" }, t),
519
542
  m({ class: "truncate text-sm leading-5 text-muted-foreground m-0" }, e)
520
- ])), ye = () => o({ class: "flex items-center gap-x-1.5" }, [
543
+ ])), ve = () => o({ class: "flex items-center gap-x-1.5" }, [
521
544
  o({ class: "flex-none rounded-full bg-emerald-500/20 p-1" }, [
522
545
  o({ class: "h-1.5 w-1.5 rounded-full bg-emerald-500" })
523
546
  ]),
524
547
  m({ class: "text-xs leading-5 text-gray-500" }, "Online")
525
- ]), ve = (t) => m({ class: "text-xs leading-5 text-muted-foreground" }, [
548
+ ]), De = (t) => m({ class: "text-xs leading-5 text-muted-foreground" }, [
526
549
  v("Last seen "),
527
550
  K({ datetime: t }, "3h ago")
528
- ]), De = (t, e) => t === "online" ? ye() : ve(e), Se = d(({ role: t, lastSeen: e, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
551
+ ]), Se = (t, e) => t === "online" ? ve() : De(e), Ce = d(({ role: t, lastSeen: e, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
529
552
  m({ class: "text-sm leading-6 m-0" }, t),
530
- De(s, e)
531
- ])), Le = (t) => t.split(" ").map((s) => s[0]).join(""), Ce = d((t) => D({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
553
+ Se(s, e)
554
+ ])), Le = (t) => t.split(" ").map((s) => s[0]).join(""), Ie = d((t) => D({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
532
555
  o({ class: "flex min-w-0 gap-x-4" }, [
533
- ae({ src: t.image, alt: t.name, fallbackText: Le(t.name) }),
534
- xe({ name: t.name, email: t.email })
556
+ ne({ src: t.image, alt: t.name, fallbackText: Le(t.name) }),
557
+ ye({ name: t.name, email: t.email })
535
558
  ]),
536
- Se({
559
+ Ce({
537
560
  role: t.role,
538
561
  lastSeen: t.lastSeen,
539
562
  status: t.status
@@ -544,15 +567,15 @@ const pe = (t, e) => {
544
567
  items: t.users,
545
568
  role: "list",
546
569
  class: "divide-y divide-border",
547
- rowItem: Ce
548
- })), Be = (t, e) => e.includes(t), Ie = (t, e, s) => t.exact ? s === e : Be(e, s), Te = ({ text: t, href: e, exact: s, hidden: n }) => new z({
570
+ rowItem: Ie
571
+ })), Be = (t, e) => e.includes(t), Te = (t, e, s) => t.exact ? s === e : Be(e, s), We = ({ text: t, href: e, exact: s, hidden: a }) => new z({
549
572
  text: t,
550
573
  href: e,
551
574
  exact: s,
552
575
  dataSet: ["selected", ["state", !0, "active"]],
553
- 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`
576
+ class: `${a ? "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`
554
577
  });
555
- class at extends u {
578
+ class it extends u {
556
579
  /**
557
580
  * This will declare the props for the compiler.
558
581
  *
@@ -605,10 +628,10 @@ class at extends u {
605
628
  updateLinks(e) {
606
629
  let s = !1;
607
630
  this.deactivateAllLinks();
608
- for (const n of this.links) {
609
- if (!n.rendered)
631
+ for (const a of this.links) {
632
+ if (!a.rendered)
610
633
  continue;
611
- Ie(n, n.getLinkPath(), e) ? (this.updateLink(n, !0), s = !0) : this.updateLink(n, !1);
634
+ Te(a, a.getLinkPath(), e) ? (this.updateLink(a, !0), s = !0) : this.updateLink(a, !1);
612
635
  }
613
636
  !s && this.links[0] && this.updateLink(this.links[0], !0);
614
637
  }
@@ -637,8 +660,8 @@ class at extends u {
637
660
  * @param {object} option
638
661
  * @returns {object}
639
662
  */
640
- addLink({ label: e, href: s, exact: n, hidden: a }) {
641
- const i = Te({ text: e, href: s, exact: n, hidden: a });
663
+ addLink({ label: e, href: s, exact: a, hidden: n }) {
664
+ const i = We({ text: e, href: s, exact: a, hidden: n });
642
665
  return this.links.push(i), i;
643
666
  }
644
667
  /**
@@ -650,10 +673,10 @@ class at extends u {
650
673
  this.links = [];
651
674
  }
652
675
  }
653
- const it = d((t) => {
676
+ const ot = d((t) => {
654
677
  const e = t.margin || "m-4 ml-0";
655
678
  return o({ class: `flex-none ${e}` }, [
656
- C({
679
+ L({
657
680
  variant: "icon",
658
681
  class: "back-button",
659
682
  click: () => {
@@ -761,7 +784,7 @@ N.addType("dockableOverlay", (t) => {
761
784
  const e = t.component;
762
785
  e && e.rendered === !0 && e.state.docked === !1 && e.destroy();
763
786
  });
764
- class ot extends A {
787
+ class lt extends A {
765
788
  /**
766
789
  * This will stop presistence.
767
790
  *
@@ -783,8 +806,8 @@ class ot extends A {
783
806
  ["loading", {
784
807
  loading: !0
785
808
  }],
786
- ["docked", (s, n) => {
787
- s ? (n.className = this.getDockedClassName(), e.appendChild(n), document.documentElement.style.overflowY = "auto") : (n.className = this.getClassName(), app.root.appendChild(n), document.documentElement.style.overflowY = "hidden");
809
+ ["docked", (s, a) => {
810
+ s ? (a.className = this.getDockedClassName(), e.appendChild(a), document.documentElement.style.overflowY = "auto") : (a.className = this.getClassName(), app.root.appendChild(a), document.documentElement.style.overflowY = "hidden");
788
811
  }]
789
812
  ]
790
813
  },
@@ -870,7 +893,7 @@ class ot extends A {
870
893
  document.documentElement.style.overflowY = "auto";
871
894
  }
872
895
  }
873
- class lt extends A {
896
+ class rt extends A {
874
897
  /**
875
898
  * This will get the overlay type.
876
899
  *
@@ -889,7 +912,7 @@ class lt extends A {
889
912
  this.container = e, this.initialize();
890
913
  }
891
914
  }
892
- const We = d(({ index: t, click: e, state: s }, n) => D({
915
+ const Pe = d(({ index: t, click: e, state: s }, a) => D({
893
916
  class: "p-2 cursor-pointer hover:bg-muted/50",
894
917
  onState: [
895
918
  [s, "selectedIndex", {
@@ -898,10 +921,10 @@ const We = d(({ index: t, click: e, state: s }, n) => D({
898
921
  }]
899
922
  ],
900
923
  click: () => e(t)
901
- }, n)), Pe = d(({ selectOption: t, state: e }) => b({
924
+ }, a)), Re = d(({ selectOption: t, state: e }) => b({
902
925
  class: "border rounded-md list-none m-0 p-0 max-h-[400px] overflow-y-auto",
903
- for: ["filteredOptions", (s, n) => We({ index: n, click: t, state: e }, s.label)]
904
- })), Re = d((t) => o({ class: "relative flex items-center" }, [
926
+ for: ["filteredOptions", (s, a) => Pe({ index: a, click: t, state: e }, s.label)]
927
+ })), Me = d((t) => o({ class: "relative flex items-center" }, [
905
928
  se({
906
929
  cache: "input",
907
930
  placeholder: t.placeholder ?? "Search...",
@@ -917,18 +940,18 @@ const We = d(({ index: t, click: e, state: s }, n) => D({
917
940
  ])
918
941
  ])), Oe = (t) => o({
919
942
  class: "relative flex fle-auto flex-col",
920
- onState: ["open", (e, s, n) => {
943
+ onState: ["open", (e, s, a) => {
921
944
  if (e)
922
945
  return new ie({
923
946
  cache: "dropdown",
924
- parent: n,
925
- button: n.input,
947
+ parent: a,
948
+ button: a.input,
926
949
  size: "xl"
927
950
  }, [
928
- Pe(t)
951
+ Re(t)
929
952
  ]);
930
953
  }]
931
- }), rt = M(
954
+ }), ct = O(
932
955
  {
933
956
  /**
934
957
  * This will set up the data object.
@@ -937,7 +960,7 @@ const We = d(({ index: t, click: e, state: s }, n) => D({
937
960
  */
938
961
  setData() {
939
962
  const t = this.options || [];
940
- return new L({
963
+ return new C({
941
964
  options: t,
942
965
  filteredOptions: t
943
966
  });
@@ -963,7 +986,7 @@ const We = d(({ index: t, click: e, state: s }, n) => D({
963
986
  const t = this.data.filteredOptions;
964
987
  let { searchQuery: e } = this.state;
965
988
  e = e.toLowerCase();
966
- const s = t.findIndex((n) => n.label.toLowerCase() === e);
989
+ const s = t.findIndex((a) => a.label.toLowerCase() === e);
967
990
  s >= 0 && (this.state.selectedIndex = s);
968
991
  },
969
992
  /**
@@ -1025,7 +1048,7 @@ const We = d(({ index: t, click: e, state: s }, n) => D({
1025
1048
  */
1026
1049
  render() {
1027
1050
  return o({ class: "relative w-full max-w-md" }, [
1028
- Re({
1051
+ Me({
1029
1052
  // @ts-ignore
1030
1053
  state: this.state,
1031
1054
  // @ts-ignore
@@ -1048,7 +1071,7 @@ const We = d(({ index: t, click: e, state: s }, n) => D({
1048
1071
  ]);
1049
1072
  }
1050
1073
  }
1051
- ), Me = (t) => D(
1074
+ ), ze = (t) => D(
1052
1075
  {
1053
1076
  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",
1054
1077
  dataSet: ["selected", ["state", t.value, "active"]]
@@ -1060,10 +1083,10 @@ const We = d(({ index: t, click: e, state: s }, n) => D({
1060
1083
  click: (e) => t.callBack(t.value)
1061
1084
  }, t.label)
1062
1085
  ]
1063
- ), 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}` }, [
1064
- b({ class: "flex flex-auto flex-row", map: [t.options, (e) => ze(e, t.callBack)] })
1086
+ ), 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}` }, [
1087
+ b({ class: "flex flex-auto flex-row", map: [t.options, (e) => Ne(e, t.callBack)] })
1065
1088
  ]);
1066
- class ct extends u {
1089
+ class dt extends u {
1067
1090
  /**
1068
1091
  * This will declare the props for the compiler.
1069
1092
  *
@@ -1080,12 +1103,12 @@ class ct extends u {
1080
1103
  render() {
1081
1104
  const e = this.select.bind(this);
1082
1105
  return o({ class: "" }, [
1083
- Ne({
1106
+ $e({
1084
1107
  class: this.class,
1085
1108
  options: this.options,
1086
1109
  callBack: e
1087
1110
  }),
1088
- O({
1111
+ M({
1089
1112
  class: "tab-content",
1090
1113
  onState: ["selected", this.updateContent.bind(this)]
1091
1114
  })
@@ -1128,11 +1151,11 @@ class ct extends u {
1128
1151
  const s = this.options;
1129
1152
  if (!s || s.length < 1)
1130
1153
  return;
1131
- const n = s[0];
1132
- for (const a of s)
1133
- if (a.value === e)
1134
- return a.layout;
1135
- return n.layout;
1154
+ const a = s[0];
1155
+ for (const n of s)
1156
+ if (n.value === e)
1157
+ return n.layout;
1158
+ return a.layout;
1136
1159
  }
1137
1160
  /**
1138
1161
  * This will setup the states.
@@ -1144,14 +1167,14 @@ class ct extends u {
1144
1167
  return {
1145
1168
  selected: {
1146
1169
  state: this.getFirstValue(),
1147
- callBack(n) {
1148
- s === "function" && e(n);
1170
+ callBack(a) {
1171
+ s === "function" && e(a);
1149
1172
  }
1150
1173
  }
1151
1174
  };
1152
1175
  }
1153
1176
  }
1154
- const $e = (t) => D(
1177
+ const je = (t) => D(
1155
1178
  {
1156
1179
  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",
1157
1180
  dataSet: ["selected", ["state", t.value, "active"]]
@@ -1164,10 +1187,10 @@ const $e = (t) => D(
1164
1187
  disabled: t.disabled
1165
1188
  }, t.label)
1166
1189
  ]
1167
- ), je = (t, e) => (t.callBack = e, $e(t)), Ae = (t) => S({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
1168
- b({ class: "flex flex-auto flex-row", map: [t.options, (e) => je(e, t.callBack)] })
1190
+ ), Ae = (t, e) => (t.callBack = e, je(t)), Ue = (t) => S({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
1191
+ b({ class: "flex flex-auto flex-row", map: [t.options, (e) => Ae(e, t.callBack)] })
1169
1192
  ]);
1170
- class dt extends u {
1193
+ class ht extends u {
1171
1194
  /**
1172
1195
  * This will declare the props for the compiler.
1173
1196
  *
@@ -1183,7 +1206,7 @@ class dt extends u {
1183
1206
  */
1184
1207
  render() {
1185
1208
  const e = this.select.bind(this);
1186
- return Ae({
1209
+ return Ue({
1187
1210
  class: this.class,
1188
1211
  options: this.options,
1189
1212
  callBack: e
@@ -1210,17 +1233,17 @@ class dt extends u {
1210
1233
  };
1211
1234
  }
1212
1235
  }
1213
- const Ue = (t, e) => new RegExp(`${t}($|/|\\.).*`).test(e), Ye = (t, e) => {
1236
+ const Ye = (t, e) => new RegExp(`${t}($|/|\\.).*`).test(e), Fe = (t, e) => {
1214
1237
  const s = t.getLinkPath();
1215
- return t.exact ? e === s : Ue(s, e);
1216
- }, Fe = ({ text: t, href: e, exact: s }) => new z({
1238
+ return t.exact ? e === s : Ye(s, e);
1239
+ }, Ee = ({ text: t, href: e, exact: s }) => new z({
1217
1240
  text: t,
1218
1241
  href: e,
1219
1242
  exact: s,
1220
1243
  dataSet: ["selected", ["state", !0, "active"]],
1221
1244
  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"
1222
1245
  });
1223
- class Ee extends u {
1246
+ class He extends u {
1224
1247
  /**
1225
1248
  * This will declare the props for the compiler.
1226
1249
  *
@@ -1268,14 +1291,14 @@ class Ee extends u {
1268
1291
  * @returns {void}
1269
1292
  */
1270
1293
  updateLinks(e) {
1271
- let s = !1, n = this.links[0];
1294
+ let s = !1, a = this.links[0];
1272
1295
  this.deactivateAllLinks();
1273
- for (const a of this.links)
1274
- if (a.rendered !== !1 && (s = Ye(a, e), s === !0)) {
1275
- this.updateLink(a, !0);
1296
+ for (const n of this.links)
1297
+ if (n.rendered !== !1 && (s = Fe(n, e), s === !0)) {
1298
+ this.updateLink(n, !0);
1276
1299
  break;
1277
1300
  }
1278
- s !== !0 && n && this.updateLink(n, !0);
1301
+ s !== !0 && a && this.updateLink(a, !0);
1279
1302
  }
1280
1303
  /**
1281
1304
  * This will deactivate all links.
@@ -1302,9 +1325,9 @@ class Ee extends u {
1302
1325
  * @param {object} option
1303
1326
  * @returns {object}
1304
1327
  */
1305
- addLink({ label: e, href: s, exact: n }) {
1306
- const a = Fe({ text: e, href: s, exact: n });
1307
- return this.links.push(a), a;
1328
+ addLink({ label: e, href: s, exact: a }) {
1329
+ const n = Ee({ text: e, href: s, exact: a });
1330
+ return this.links.push(n), n;
1308
1331
  }
1309
1332
  /**
1310
1333
  * This will remove all the links.
@@ -1315,7 +1338,7 @@ class Ee extends u {
1315
1338
  this.links = [];
1316
1339
  }
1317
1340
  }
1318
- class ht extends u {
1341
+ class ut extends u {
1319
1342
  /**
1320
1343
  * This will declare the props for the compiler.
1321
1344
  *
@@ -1331,11 +1354,11 @@ class ht extends u {
1331
1354
  */
1332
1355
  render() {
1333
1356
  return o({ class: "tab-panel" }, [
1334
- new Ee({
1357
+ new He({
1335
1358
  class: this.class,
1336
1359
  options: this.options
1337
1360
  }),
1338
- O({
1361
+ M({
1339
1362
  class: "tab-content",
1340
1363
  switch: this.addGroup()
1341
1364
  })
@@ -1348,9 +1371,9 @@ class ht extends u {
1348
1371
  */
1349
1372
  addGroup() {
1350
1373
  let e;
1351
- const s = [], n = this.options;
1352
- for (let a = 0, i = n.length; a < i; a++)
1353
- e = n[a], s.push(
1374
+ const s = [], a = this.options;
1375
+ for (let n = 0, i = a.length; n < i; n++)
1376
+ e = a[n], s.push(
1354
1377
  {
1355
1378
  uri: e.uri || e.href,
1356
1379
  component: e.component,
@@ -1361,7 +1384,7 @@ class ht extends u {
1361
1384
  return s;
1362
1385
  }
1363
1386
  }
1364
- class He extends u {
1387
+ class Qe extends u {
1365
1388
  /**
1366
1389
  * Runs before rendering, sets up defaults, a timer for drawing,
1367
1390
  * and basic canvas properties.
@@ -1409,12 +1432,12 @@ class He extends u {
1409
1432
  * @returns {Array} An array of [eventName, element, callback] definitions.
1410
1433
  */
1411
1434
  setupEvents() {
1412
- const e = this.panel, s = this.pointerPosition.bind(this), n = this.pointerUp.bind(this), a = this.pointerDown.bind(this), i = this.resize.bind(this), l = { passive: !1 };
1435
+ const e = this.panel, s = this.pointerPosition.bind(this), a = this.pointerUp.bind(this), n = this.pointerDown.bind(this), i = this.resize.bind(this), l = { passive: !1 };
1413
1436
  return [
1414
1437
  ["pointermove", e, s, l],
1415
- ["pointerup", e, n],
1416
- ["pointerdown", e, a, l],
1417
- ["pointerout", e, n],
1438
+ ["pointerup", e, a],
1439
+ ["pointerdown", e, n, l],
1440
+ ["pointerout", e, a],
1418
1441
  ["resize", window, i]
1419
1442
  ];
1420
1443
  }
@@ -1425,14 +1448,14 @@ class He extends u {
1425
1448
  * @returns {void}
1426
1449
  */
1427
1450
  getEventPosition(e) {
1428
- let s, n;
1429
- const a = this.canvas, i = a.width / parseInt(a.style.width), l = a.getBoundingClientRect();
1451
+ let s, a;
1452
+ const n = this.canvas, i = n.width / parseInt(n.style.width), l = n.getBoundingClientRect();
1430
1453
  if (e.touches && e.touches.length) {
1431
1454
  const f = e.touches[0];
1432
- s = f.clientX, n = f.clientY;
1455
+ s = f.clientX, a = f.clientY;
1433
1456
  } else
1434
- s = e.x || e.clientX, n = e.y || e.clientY;
1435
- const h = parseInt((s - l.left) * i), c = parseInt((n - l.top) * i);
1457
+ s = e.x || e.clientX, a = e.y || e.clientY;
1458
+ const h = parseInt((s - l.left) * i), c = parseInt((a - l.top) * i);
1436
1459
  this.mouse.x = h, this.mouse.y = c;
1437
1460
  }
1438
1461
  /**
@@ -1444,8 +1467,8 @@ class He extends u {
1444
1467
  */
1445
1468
  pointerDown(e) {
1446
1469
  e.preventDefault(), e.stopPropagation(), this.getEventPosition(e);
1447
- const { ctx: s, mouse: n } = this;
1448
- s.beginPath(), s.moveTo(n.x, n.y), n.status = "down", this.startTimer();
1470
+ const { ctx: s, mouse: a } = this;
1471
+ s.beginPath(), s.moveTo(a.x, a.y), a.status = "down", this.startTimer();
1449
1472
  }
1450
1473
  /**
1451
1474
  * Called when the pointer goes up or leaves the canvas area.
@@ -1473,12 +1496,12 @@ class He extends u {
1473
1496
  * @returns {void}
1474
1497
  */
1475
1498
  resize() {
1476
- const { canvas: e, ctx: s } = this, n = e.toDataURL();
1477
- if (this.scale(), this.setupBackground(s), n !== "data:,") {
1478
- const a = new window.Image();
1479
- B.on("load", a, function i() {
1480
- s.drawImage(a, 0, 0), B.off("load", a, i);
1481
- }), a.src = n;
1499
+ const { canvas: e, ctx: s } = this, a = e.toDataURL();
1500
+ if (this.scale(), this.setupBackground(s), a !== "data:,") {
1501
+ const n = new window.Image();
1502
+ I.on("load", n, function i() {
1503
+ s.drawImage(n, 0, 0), I.off("load", n, i);
1504
+ }), n.src = a;
1482
1505
  }
1483
1506
  this.draw();
1484
1507
  }
@@ -1497,7 +1520,7 @@ class He extends u {
1497
1520
  * @returns {void}
1498
1521
  */
1499
1522
  noScaleResize() {
1500
- const e = I.getSize(container);
1523
+ const e = B.getSize(container);
1501
1524
  this.width = canvas.width = e.width, this.height = canvas.height = e.height;
1502
1525
  }
1503
1526
  /**
@@ -1507,10 +1530,10 @@ class He extends u {
1507
1530
  * @returns {void}
1508
1531
  */
1509
1532
  scale() {
1510
- const e = this.canvas, s = this.container, n = I.getSize(s), a = this.targetSize, i = a.width, l = a.height;
1533
+ const e = this.canvas, s = this.container, a = B.getSize(s), n = this.targetSize, i = n.width, l = n.height;
1511
1534
  let h = i + "px", c = l + "px";
1512
- if (this.width = e.width = i, this.height = e.height = l, n.width !== 0 && n.height !== 0) {
1513
- const f = n.width, g = n.height, r = f / i, p = g / l, k = Math.min(r, p);
1535
+ if (this.width = e.width = i, this.height = e.height = l, a.width !== 0 && a.height !== 0) {
1536
+ const f = a.width, g = a.height, r = f / i, p = g / l, k = Math.min(r, p);
1514
1537
  h = i * k + "px", c = l * k + "px";
1515
1538
  }
1516
1539
  e.style.width = h, e.style.height = c;
@@ -1533,8 +1556,8 @@ class He extends u {
1533
1556
  drawBottomLine(e) {
1534
1557
  const s = this.canvas;
1535
1558
  e.globalAlpha = 1, e.shadowBlur = 0;
1536
- const n = this.margin.x, a = this.height - this.margin.y;
1537
- e.beginPath(), e.moveTo(n, a), e.lineTo(s.width - this.margin.x, a), e.lineWidth = this.baseLineWidth, e.strokeStyle = this.baseStrokeColor, e.stroke(), e.closePath();
1559
+ const a = this.margin.x, n = this.height - this.margin.y;
1560
+ e.beginPath(), e.moveTo(a, n), e.lineTo(s.width - this.margin.x, n), e.lineWidth = this.baseLineWidth, e.strokeStyle = this.baseStrokeColor, e.stroke(), e.closePath();
1538
1561
  }
1539
1562
  /**
1540
1563
  * Adds a line to the current path, updating the 'signed' status.
@@ -1545,10 +1568,10 @@ class He extends u {
1545
1568
  * @param {string} color The stroke color.
1546
1569
  * @returns {void}
1547
1570
  */
1548
- addLine(e, s, n, a) {
1571
+ addLine(e, s, a, n) {
1549
1572
  this.signed || (this.signed = !0);
1550
- const i = Math.round(s), l = Math.round(n);
1551
- e.lineWidth = this.lineWidth, e.strokeStyle = a, e.lineTo(i, l), e.stroke();
1573
+ const i = Math.round(s), l = Math.round(a);
1574
+ e.lineWidth = this.lineWidth, e.strokeStyle = n, e.lineTo(i, l), e.stroke();
1552
1575
  }
1553
1576
  /**
1554
1577
  * Clears the canvas, sets signed to false, and re-initializes
@@ -1587,7 +1610,7 @@ class He extends u {
1587
1610
  this.timer.stop(), this.status = "stopped";
1588
1611
  }
1589
1612
  }
1590
- class ut extends u {
1613
+ class ft extends u {
1591
1614
  /**
1592
1615
  * Sets up default properties for the signature panel.
1593
1616
  *
@@ -1604,19 +1627,19 @@ class ut extends u {
1604
1627
  */
1605
1628
  render() {
1606
1629
  return o({ class: "signature-panel relative flex flex-auto overflow-hidden select-none" }, [
1607
- ne({
1630
+ ae({
1608
1631
  cache: "hiddenInput",
1609
1632
  required: !0,
1610
1633
  bind: this.path + ".data"
1611
1634
  }),
1612
1635
  o({ class: "absolute top-2 right-2" }, [
1613
- C({
1636
+ L({
1614
1637
  variant: "icon",
1615
1638
  icon: w.circleX,
1616
1639
  click: this.reset.bind(this)
1617
1640
  })
1618
1641
  ]),
1619
- new He({
1642
+ new Qe({
1620
1643
  cache: "canvasLayer",
1621
1644
  margin: this.margin,
1622
1645
  targetSize: this.targetSize,
@@ -1666,34 +1689,34 @@ class ut extends u {
1666
1689
  }
1667
1690
  }
1668
1691
  export {
1669
- it as B,
1692
+ ot as B,
1670
1693
  me as C,
1671
1694
  be as D,
1672
1695
  we as H,
1673
- lt as I,
1674
- at as N,
1696
+ rt as I,
1697
+ it as N,
1675
1698
  A as O,
1676
- Je as P,
1677
- st as S,
1699
+ Ze as P,
1700
+ at as S,
1678
1701
  j as T,
1679
- Ce as U,
1680
- tt as W,
1702
+ Ie as U,
1703
+ st as W,
1681
1704
  ce as a,
1682
1705
  T as b,
1683
1706
  le as c,
1684
- Ze as d,
1685
- et as e,
1707
+ et as d,
1708
+ tt as e,
1686
1709
  he as f,
1687
1710
  re as g,
1688
1711
  fe as h,
1689
1712
  ge as i,
1690
1713
  ke as j,
1691
1714
  nt as k,
1692
- ot as l,
1693
- rt as m,
1694
- ct as n,
1695
- dt as o,
1696
- Ee as p,
1697
- ht as q,
1698
- ut as r
1715
+ lt as l,
1716
+ ct as m,
1717
+ dt as n,
1718
+ ht as o,
1719
+ He as p,
1720
+ ut as q,
1721
+ ft as r
1699
1722
  };
@@ -12,6 +12,11 @@
12
12
  * @property {string} [props.key] - The key to use to identify the items.
13
13
  * @property {array} [props.rows] - The initial rows.
14
14
  * @property {function} [props.rowItem] - The row item.
15
+ * @property {array} [props.headers] - The table headers.
16
+ * @property {object} [props.customHeader] - The custom header.
17
+ * @property {function} [props.selectRow] - The function to select a row.
18
+ * @property {string} [props.border] - The border to add to the table.
19
+ * @property {object} [props.data] - The table data.
15
20
  * @property {string} [props.containerClass] - The class to add to the scroll container.
16
21
  * @returns {object}
17
22
  */
@@ -0,0 +1,31 @@
1
+ declare const ScrollableTable_base: typeof import("@base-framework/base").Component;
2
+ /**
3
+ * ScrollableDataTable Component
4
+ *
5
+ * This will create a scrollable data table.
6
+ *
7
+ * @param {object} props
8
+ * @property {HTMLElement} [props.scrollContainer] - The container element for scroll events. Defaults to window.
9
+ * @property {function} [props.loadMoreItems] - A function to fetch/generate additional items.
10
+ * @property {number} [props.offset] - The initial offset. Defaults to 0.
11
+ * @property {number} [props.limit] - Number of items to load per batch. Defaults to 20.
12
+ * @property {string} [props.class] - The class to add to the list.
13
+ * @property {string} [props.key] - The key to use to identify the items.
14
+ * @property {array} [props.rows] - The initial rows.
15
+ * @property {function} [props.rowItem] - The row item.
16
+ * @property {string} [props.containerClass] - The class to add to the scroll container.
17
+ * @returns {object}
18
+ */
19
+ export class ScrollableTable extends ScrollableTable_base {
20
+ /**
21
+ * Renders the DataTable component.
22
+ *
23
+ * @returns {object}
24
+ */
25
+ render(): object;
26
+ }
27
+ export default ScrollableTable;
28
+ import { CheckboxCol } from './table-header.js';
29
+ import { HeaderCol } from './table-header.js';
30
+ import { TableHeader } from './table-header.js';
31
+ export { CheckboxCol, HeaderCol, TableHeader };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/ui",
3
- "version": "1.0.75",
3
+ "version": "1.0.76",
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": {