@base-framework/ui 1.0.225 → 1.0.226

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 R } from "./veil-D4dRxILB.js";
5
5
  import { Icons as E } from "./icons.es.js";
6
6
  import { A as O, B as V, C as j, t as q, E as z, v as J, w as _, x as K, D as Q, j as X, k as Y, H as Z, G as $, s as aa, c as ea, a as sa, b as oa, I as ta, i as ra, g as na, e as la, h as ia, F as pa, d as ua, f as ma, u as da, M as ca, l as ga, N as Ca, P as Ta, p as ba, q as Da, S as Ia, n as Sa, o as Ba, T as Pa, y as Fa, z as Ma, m as ka, r as Na } from "./empty-state-2O1fITpG.js";
7
7
  import { A as va, b as xa, C as ya, D as ha, a as Wa, F as Ha, M as La, P as Aa, c as wa, g as Ra, p as Ua } from "./calendar-Bn55oWBo.js";
8
- import { B as Ga, p as Oa, C as Va, j as ja, D as qa, m as za, k as Ja, H as _a, I as Ka, N as Qa, O as Xa, P as Ya, R as Za, S as $a, n as ae, o as ee, t as se, s as oe, q as te, r as re, T as ne, l as le, U as ie, W as pe, f as ue, h as me, i as de, c as ce, d as ge, b as Ce, e as Te, a as be, g as De } from "./signature-panel-BHRFLEaa.js";
8
+ import { B as Ga, p as Oa, C as Va, j as ja, D as qa, m as za, k as Ja, H as _a, I as Ka, N as Qa, O as Xa, P as Ya, R as Za, S as $a, n as ae, o as ee, t as se, s as oe, q as te, r as re, T as ne, l as le, U as ie, W as pe, f as ue, h as me, i as de, c as ce, d as ge, b as Ce, e as Te, a as be, g as De } from "./signature-panel-DobJfnTu.js";
9
9
  import { B as Se, I as Be, M as Pe, d as Fe, e as Me, g as ke, N as Ne, b as fe, a as ve, f as xe, P as ye, c as he, S as We, T as He } from "./mobile-nav-wrapper-Dj67Pb8l.js";
10
10
  import { B as Ae, a as we, C as Re, F as Ue, b as Ee, c as Ge, M as Oe, P as Ve, S as je } from "./sidebar-menu-page-BVryQj2Z.js";
11
11
  import { A as ze, F as Je, M as _e, a as Ke, T as Qe } from "./aside-template-McEj_Gxc.js";
@@ -1,4 +1,4 @@
1
- import { B as s, p as t, C as o, j as r, D as n, m as l, k as i, H as b, I as d, N as g, O as p, P as u, R as v, S as D, n as N, o as k, t as C, s as c, q as T, r as M, T as m, l as y, U as B, W, f as h, h as S, i as H, c as P, d as I, b as f, e as x, a as L, g as O } from "./signature-panel-BHRFLEaa.js";
1
+ import { B as s, p as t, C as o, j as r, D as n, m as l, k as i, H as b, I as d, N as g, O as p, P as u, R as v, S as D, n as N, o as k, t as C, s as c, q as T, r as M, T as m, l as y, U as B, W, f as h, h as S, i as H, c as P, d as I, b as f, e as x, a as L, g as O } from "./signature-panel-DobJfnTu.js";
2
2
  import { b as U, C as G, D as R, a as j, F as q, M as w, c as z, p as A } from "./calendar-Bn55oWBo.js";
3
3
  import { B as J, I as K, M as Q, d as V, e as X, g as Y, N as Z, b as _, a as $, f as aa, P as ea, c as sa, S as ta, T as oa } from "./mobile-nav-wrapper-Dj67Pb8l.js";
4
4
  export {
@@ -1,22 +1,22 @@
1
- import { Button as D, Div as o, On as w, Span as S, OnState as q, Th as A, UseParent as K, I as G, Thead as J, Tr as _, Table as R, P as x, Li as C, Time as V, Nav as I, Ul as k, Section as F, Canvas as Z } from "@base-framework/atoms";
2
- import { Atom as f, Component as m, Data as M, DateTime as P, router as v, NavLink as H, DataTracker as U, Jot as tt, base as W, Dom as O } from "@base-framework/base";
3
- import { B as g, I as et } from "./buttons-Cm9etaEG.js";
1
+ import { Button as S, Div as o, On as w, Span as C, OnState as K, Th as F, UseParent as G, I as J, Thead as _, Tr as V, Table as P, P as x, Li as I, Time as Z, Nav as M, Ul as k, Section as H, Canvas as tt } from "@base-framework/atoms";
2
+ import { Atom as f, Component as g, Data as L, DateTime as $, router as D, NavLink as U, DataTracker as E, Jot as et, base as N, Dom as O } from "@base-framework/base";
3
+ import { B as m, I as st } from "./buttons-Cm9etaEG.js";
4
4
  import { Icons as b } from "./icons.es.js";
5
- import { F as st, A as at, P as nt } from "./calendar-Bn55oWBo.js";
6
- import { TableBody as it, DataTableBody as ot, ScrollableTableBody as lt, List as rt, IntervalTimer as ct } from "@base-framework/organisms";
7
- import { C as dt, I as ht, H as ut } from "./inputs-CMjx5-IX.js";
5
+ import { F as at, p as v, A as nt, P as it } from "./calendar-Bn55oWBo.js";
6
+ import { TableBody as ot, DataTableBody as lt, ScrollableTableBody as rt, List as ct, IntervalTimer as dt } from "@base-framework/organisms";
7
+ import { C as ht, I as ut, H as ft } from "./inputs-CMjx5-IX.js";
8
8
  f((e, t) => ({
9
9
  class: "flex items-center px-4 py-2",
10
10
  ...e,
11
11
  children: t
12
12
  }));
13
- f(({ value: e, label: t }) => D({
13
+ f(({ value: e, label: t }) => S({
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: e }],
16
16
  dataSet: ["performance", ["state", e, "active"]],
17
17
  click: (s, { state: a }) => a.performance = e
18
18
  }, t));
19
- class ye extends m {
19
+ class be extends g {
20
20
  /**
21
21
  * This will declare the props for the compiler.
22
22
  *
@@ -34,7 +34,7 @@ class ye extends m {
34
34
  return o({ class: this.class || "" }, this.children);
35
35
  }
36
36
  }
37
- const ft = (e) => {
37
+ const gt = (e) => {
38
38
  const t = new Date(e, 11, 31), s = new Date(e, 0, 1);
39
39
  return t.getDay() === 4 || // December 31 is a Thursday
40
40
  s.getDay() === 4;
@@ -44,26 +44,26 @@ const ft = (e) => {
44
44
  const a = t.getFullYear(), n = new Date(a, 0, 4);
45
45
  n.setDate(n.getDate() - (n.getDay() + 6) % 7);
46
46
  const i = Math.ceil((t - n) / 6048e5) + 1;
47
- return i > 52 && !ft(a) ? {
47
+ return i > 52 && !gt(a) ? {
48
48
  weekNumber: 1,
49
49
  year: a + 1
50
50
  } : {
51
51
  weekNumber: i,
52
52
  year: a
53
53
  };
54
- }, gt = (e, t, s) => {
54
+ }, pt = (e, t, s) => {
55
55
  if (s === 0) return [];
56
56
  const a = new Date(e, t, 0).getDate();
57
57
  return Array.from(
58
58
  { length: s },
59
59
  (n, i) => new Date(e, t - 1, a - s + i + 1)
60
60
  );
61
- }, pt = (e, t, s) => Array.from({ length: s }, (a, n) => new Date(e, t + 1, n + 1)), $ = (e, t) => {
61
+ }, yt = (e, t, s) => Array.from({ length: s }, (a, n) => new Date(e, t + 1, n + 1)), z = (e, t) => {
62
62
  const s = new Date(t, 0, 4), a = (s.getDay() + 6) % 7, n = new Date(s);
63
63
  n.setDate(s.getDate() - a);
64
64
  const i = new Date(n);
65
65
  return i.setDate(n.getDate() + (e - 1) * 7), i;
66
- }, we = (e, t) => {
66
+ }, xe = (e, t) => {
67
67
  const s = new Date(e, t, 1).getDay(), a = new Date(e, t + 1, 0).getDate(), n = [];
68
68
  let i = [];
69
69
  for (let l = 1 - s; l <= a; l++) {
@@ -71,18 +71,18 @@ const ft = (e) => {
71
71
  i.push(l > 0 ? r : null), (i.length === 7 || l === a) && (n.push([...i]), i = []);
72
72
  }
73
73
  return n;
74
- }, be = (e, t) => {
74
+ }, ke = (e, t) => {
75
75
  const s = new Date(e, t + 1, 0).getDate(), a = [];
76
76
  let n = [];
77
77
  for (let i = 1; i <= s; i++)
78
78
  n.push(new Date(e, t, i)), n.length === 7 && (a.push(n), n = []);
79
79
  return n.length > 0 && a.push(n), a;
80
- }, yt = (e, t, s) => {
80
+ }, wt = (e, t, s) => {
81
81
  const a = /* @__PURE__ */ new Date();
82
82
  return a.getDate() === e && a.getMonth() === t && a.getFullYear() === s;
83
- }, wt = ({ day: e, month: t, year: s, weekNumber: a, selectWeek: n }) => {
84
- const i = yt(e, t, s);
85
- return D({
83
+ }, bt = ({ day: e, month: t, year: s, weekNumber: a, selectWeek: n }) => {
84
+ const i = wt(e, t, s);
85
+ return S({
86
86
  text: e || "",
87
87
  disabled: !e,
88
88
  class: `
@@ -92,19 +92,19 @@ const ft = (e) => {
92
92
  `,
93
93
  click: () => n(a, s)
94
94
  });
95
- }, bt = (e, t) => {
96
- const s = new Date(e, t, 1).getDay(), a = new Date(e, t + 1, 0).getDate(), n = gt(e, t, s), i = Array.from({ length: a }, (h, p) => new Date(e, t, p + 1)), l = (n.length + i.length) % 7, r = l === 0 ? 0 : 7 - l, c = pt(e, t, r), d = [...n, ...i, ...c], u = [];
95
+ }, xt = (e, t) => {
96
+ const s = new Date(e, t, 1).getDay(), a = new Date(e, t + 1, 0).getDate(), n = pt(e, t, s), i = Array.from({ length: a }, (h, p) => new Date(e, t, p + 1)), l = (n.length + i.length) % 7, r = l === 0 ? 0 : 7 - l, c = yt(e, t, r), d = [...n, ...i, ...c], u = [];
97
97
  for (let h = 0; h < d.length; h += 7) {
98
- const p = d.slice(h, h + 7), y = p.find((B) => B) || new Date(e, t, 1), { weekNumber: L, year: T } = mt(y);
98
+ const p = d.slice(h, h + 7), y = p.find((R) => R) || new Date(e, t, 1), { weekNumber: T, year: B } = mt(y);
99
99
  u.push({
100
- weekNumber: L,
101
- year: T,
100
+ weekNumber: T,
101
+ year: B,
102
102
  days: p
103
103
  });
104
104
  }
105
105
  return u;
106
- }, xt = ({ selectWeek: e }) => w("month", (t, s, { data: a }) => {
107
- const { year: n, month: i, currentDate: l } = a, r = bt(n, i);
106
+ }, kt = ({ selectWeek: e }) => w("month", (t, s, { data: a }) => {
107
+ const { year: n, month: i, currentDate: l } = a, r = xt(n, 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 ft = (e) => {
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) => S({ class: "px-1 py-1", text: c })
118
+ (c) => C({ class: "px-1 py-1", text: c })
119
119
  )
120
120
  ),
121
121
  // Render each "week" row
@@ -141,7 +141,7 @@ const ft = (e) => {
141
141
  o(
142
142
  { class: "grid grid-cols-7 col-span-7 text-center" },
143
143
  d.map(
144
- (h) => wt({
144
+ (h) => bt({
145
145
  year: (h == null ? void 0 : h.getFullYear()) || null,
146
146
  month: (h == null ? void 0 : h.getMonth()) || null,
147
147
  day: (h == null ? void 0 : h.getDate()) || null,
@@ -154,7 +154,7 @@ const ft = (e) => {
154
154
  )
155
155
  ]
156
156
  );
157
- }), z = ({ label: e, click: t }) => g(
157
+ }), Y = ({ label: e, click: t }) => m(
158
158
  {
159
159
  class: `
160
160
  inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
@@ -167,18 +167,18 @@ const ft = (e) => {
167
167
  variant: "icon",
168
168
  icon: e === "Previous" ? b.chevron.single.left : b.chevron.single.right
169
169
  }
170
- ), kt = ({ next: e, previous: t }) => o({ class: "flex flex-auto min-h-12 text-sm font-medium relative justify-center items-center" }, [
171
- S("[[monthName]] [[year]]"),
172
- z({
170
+ ), vt = ({ next: e, previous: t }) => o({ class: "flex flex-auto min-h-12 text-sm font-medium relative justify-center items-center" }, [
171
+ C("[[monthName]] [[year]]"),
172
+ Y({
173
173
  label: "Previous",
174
174
  click: t
175
175
  }),
176
- z({
176
+ Y({
177
177
  label: "Next",
178
178
  click: e
179
179
  })
180
180
  ]);
181
- class xe extends m {
181
+ class ve extends g {
182
182
  /**
183
183
  * This will declare the props for the compiler.
184
184
  *
@@ -193,8 +193,8 @@ class xe extends m {
193
193
  * @returns {Data}
194
194
  */
195
195
  setData() {
196
- const t = /* @__PURE__ */ new Date(), s = this.selectedWeek || this.calculateCurrentWeek(t), a = $(s, t.getFullYear());
197
- return new M({
196
+ const t = /* @__PURE__ */ new Date(), s = this.selectedWeek || this.calculateCurrentWeek(t), a = z(s, t.getFullYear());
197
+ return new L({
198
198
  monthName: this.getMonthName(a.getMonth()),
199
199
  year: a.getFullYear(),
200
200
  month: a.getMonth(),
@@ -231,7 +231,7 @@ class xe extends m {
231
231
  * @returns {string}
232
232
  */
233
233
  getMonthName(t) {
234
- return P.monthNames[t];
234
+ return $.monthNames[t];
235
235
  }
236
236
  /**
237
237
  * Updates the calendar to show the previous month.
@@ -276,7 +276,7 @@ class xe extends m {
276
276
  */
277
277
  selectWeek(t, s) {
278
278
  this.data.currentWeek = t;
279
- const a = $(t, s);
279
+ const a = z(t, s);
280
280
  this.setDate(a.getMonth(), a.getFullYear(), a.getDate()), typeof this.selectedCallBack == "function" && this.selectedCallBack(t);
281
281
  }
282
282
  /**
@@ -286,17 +286,17 @@ class xe extends m {
286
286
  */
287
287
  render() {
288
288
  return o({ class: "week-calendar-container border rounded-md bg-background p-3" }, [
289
- kt({
289
+ vt({
290
290
  next: () => this.goToNextMonth(),
291
291
  previous: () => this.goToPreviousMonth()
292
292
  }),
293
- xt({
293
+ kt({
294
294
  selectWeek: (t, s) => this.selectWeek(t, s)
295
295
  })
296
296
  ]);
297
297
  }
298
298
  }
299
- const j = ({ label: e, click: t }) => g(
299
+ const j = ({ label: e, click: t }) => m(
300
300
  {
301
301
  class: `
302
302
  inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
@@ -309,17 +309,17 @@ const j = ({ label: e, click: t }) => g(
309
309
  variant: "icon",
310
310
  icon: e === "Previous" ? b.chevron.single.left : b.chevron.single.right
311
311
  }
312
- ), vt = ({ monthName: e, year: t, onMonthClick: s, onYearClick: a, next: n, previous: i }) => o({ class: "flex items-center justify-center space-x-2 relative min-h-12 text-sm font-medium" }, [
313
- g({ click: s, variant: "ghost", "aria-label": "Select month" }, e || "[[monthName]]"),
314
- g({ click: a, variant: "ghost", "aria-label": "Select year" }, (t == null ? void 0 : t.toString()) || "[[current.year]]"),
312
+ ), Dt = ({ monthName: e, year: t, onMonthClick: s, onYearClick: a, next: n, previous: i }) => o({ class: "flex items-center justify-center space-x-2 relative min-h-12 text-sm font-medium" }, [
313
+ m({ click: s, variant: "ghost", "aria-label": "Select month" }, e || "[[monthName]]"),
314
+ m({ click: a, variant: "ghost", "aria-label": "Select year" }, (t == null ? void 0 : t.toString()) || "[[current.year]]"),
315
315
  j({ label: "Previous", click: i }),
316
316
  j({ label: "Next", click: n })
317
- ]), Dt = (e) => o({ class: "h-9 flex items-center justify-center font-medium" }, e), St = () => o(
317
+ ]), St = (e) => o({ class: "h-9 flex items-center justify-center font-medium" }, e), Ct = () => o(
318
318
  { class: "grid grid-cols-7 gap-1 text-center text-xs font-medium text-muted-foreground mb-2" },
319
- ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(Dt)
320
- ), Ct = ({ day: e, iso: t, disabled: s, isStart: a, isEnd: n, isBetween: i, click: l }) => {
319
+ ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(St)
320
+ ), It = ({ day: e, iso: t, disabled: s, isStart: a, isEnd: n, isBetween: i, click: l }) => {
321
321
  let r = "ghost", c = "";
322
- return a || n ? (r = "default", c = "bg-primary text-primary-foreground hover:bg-primary/90") : i && (c = "bg-accent text-accent-foreground hover:bg-accent/80"), s && (c += " opacity-50 cursor-not-allowed"), g(
322
+ return a || n ? (r = "default", c = "bg-primary text-primary-foreground hover:bg-primary/90") : i && (c = "bg-accent text-accent-foreground hover:bg-accent/80"), s && (c += " opacity-50 cursor-not-allowed"), m(
323
323
  {
324
324
  class: `flex items-center justify-center h-9 w-9 p-0 text-sm font-medium rounded-md transition-colors ${c}`,
325
325
  variant: r,
@@ -330,26 +330,26 @@ const j = ({ label: e, click: t }) => g(
330
330
  },
331
331
  e.toString()
332
332
  );
333
- }, It = ({ today: e, current: t, blockPriorDates: s, onDateClick: a }) => {
333
+ }, Mt = ({ today: e, current: t, blockPriorDates: s, onDateClick: a }) => {
334
334
  const { start: n, end: i } = t, l = new Date(t.year, t.month, 1).getDay(), r = new Date(t.year, t.month + 1, 0).getDate(), c = [];
335
335
  for (let d = 0; d < l; d++)
336
336
  c.push(null);
337
337
  for (let d = 1; d <= r; d++) {
338
- const u = st(t.year, t.month, d), h = new Date(t.year, t.month, d), p = new Date(e.year, e.month, e.date), y = h < p, L = s && y, T = n === u, B = i === u, X = n && i && u > n && u < i;
338
+ const u = at(t.year, t.month, d), h = new Date(t.year, t.month, d), p = new Date(e.year, e.month, e.date), y = h < p, T = s && y, B = n === u, R = i === u, q = n && i && u > n && u < i;
339
339
  c.push({
340
340
  day: d,
341
341
  iso: u,
342
- disabled: L,
343
- isStart: T,
344
- isEnd: B,
345
- isBetween: X,
342
+ disabled: T,
343
+ isStart: B,
344
+ isEnd: R,
345
+ isBetween: q,
346
346
  click: () => a(u)
347
347
  });
348
348
  }
349
349
  return o(
350
350
  { class: "grid grid-cols-7 gap-1" },
351
351
  c.map(
352
- (d, u) => d ? Ct({
352
+ (d, u) => d ? It({
353
353
  day: d.day,
354
354
  iso: d.iso,
355
355
  disabled: d.disabled,
@@ -360,8 +360,8 @@ const j = ({ label: e, click: t }) => g(
360
360
  }) : o({ class: "h-9" })
361
361
  )
362
362
  );
363
- }, Mt = f((e, t) => o({ class: "flex flex-auto flex-col" }, [
364
- vt({
363
+ }, Lt = f((e, t) => o({ class: "flex flex-auto flex-col" }, [
364
+ Dt({
365
365
  monthName: e.monthName,
366
366
  year: e.year,
367
367
  onMonthClick: e.onMonthClick,
@@ -374,8 +374,8 @@ const j = ({ label: e, click: t }) => g(
374
374
  onSet: [
375
375
  "currentDate",
376
376
  () => [
377
- St(),
378
- It({
377
+ Ct(),
378
+ Mt({
379
379
  today: e.today,
380
380
  current: e.current,
381
381
  blockPriorDates: e.blockPriorDates,
@@ -384,10 +384,10 @@ const j = ({ label: e, click: t }) => g(
384
384
  ]
385
385
  ]
386
386
  })
387
- ])), Lt = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
387
+ ])), Tt = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
388
388
  { class: "grid grid-cols-3 gap-2" },
389
- P.monthNames.map(
390
- (a, n) => g(
389
+ $.monthNames.map(
390
+ (a, n) => m(
391
391
  {
392
392
  click: (i) => {
393
393
  i.preventDefault(), i.stopPropagation(), s(n);
@@ -398,30 +398,30 @@ const j = ({ label: e, click: t }) => g(
398
398
  a.substring(0, 3)
399
399
  )
400
400
  )
401
- ), Tt = ({ start: e, end: t, selecting: s, onSelectStart: a, onSelectEnd: n }) => o({ class: "flex space-x-2 mb-4" }, [
402
- w("selecting", (i) => g({
401
+ ), Bt = ({ start: e, end: t, selecting: s, onSelectStart: a, onSelectEnd: n }) => o({ class: "flex space-x-2 mb-4" }, [
402
+ w("selecting", (i) => m({
403
403
  click: a,
404
404
  variant: i === "start" ? "primary" : "outline",
405
405
  class: "flex-1"
406
406
  }, [
407
- o({ class: "font-medium" }, e ? Y(e) : "Start Date")
407
+ o({ class: "font-medium" }, A("current.start", "Start Date"))
408
408
  ])),
409
- w("selecting", (i) => g({
409
+ w("selecting", (i) => m({
410
410
  click: n,
411
411
  variant: i === "end" ? "primary" : "outline",
412
412
  class: "flex-1"
413
413
  }, [
414
- o({ class: "font-medium" }, t ? Y(t) : "End Date")
414
+ o({ class: "font-medium" }, A("current.end", "End Date"))
415
415
  ]))
416
- ]), Y = (e) => {
416
+ ]), A = (e, t) => [`[[${e}]]`, (s) => s == null ? t : Rt(s)], Rt = (e) => {
417
417
  const t = /* @__PURE__ */ new Date(e + "T00:00:00"), s = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], a = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
418
418
  return `${s[t.getDay()]}, ${t.getDate()} ${a[t.getMonth()]}`;
419
- }, Bt = ({ currentYear: e, onSelect: t }) => {
419
+ }, Pt = ({ currentYear: e, onSelect: t }) => {
420
420
  const s = e - 50, a = Array.from({ length: 101 }, (n, i) => s + i);
421
421
  return o(
422
422
  { class: "grid grid-cols-4 gap-2 overflow-y-auto max-h-72" },
423
423
  a.map(
424
- (n) => g(
424
+ (n) => m(
425
425
  {
426
426
  click: (i) => {
427
427
  i.preventDefault(), i.stopPropagation(), t(n);
@@ -434,7 +434,7 @@ const j = ({ label: e, click: t }) => g(
434
434
  )
435
435
  );
436
436
  };
437
- class ke extends m {
437
+ class De extends g {
438
438
  /**
439
439
  * Declare compiler props.
440
440
  *
@@ -450,13 +450,14 @@ class ke extends m {
450
450
  */
451
451
  setData() {
452
452
  const t = /* @__PURE__ */ new Date(), s = this.startDate ? /* @__PURE__ */ new Date(this.startDate + "T00:00:00") : t, a = s.getMonth(), n = s.getFullYear();
453
- return new M({
453
+ return new L({
454
454
  today: {
455
455
  date: t.getDate(),
456
456
  month: t.getMonth(),
457
457
  year: t.getFullYear()
458
458
  },
459
459
  monthName: this.getMonthName(a),
460
+ currentData: `${s.getFullYear()}-${v(s.getMonth() + 1)}-${v(s.getDate())}`,
460
461
  current: {
461
462
  date: t.getDate(),
462
463
  month: a,
@@ -474,7 +475,7 @@ class ke extends m {
474
475
  * @returns {string}
475
476
  */
476
477
  getMonthName(t) {
477
- return P.monthNames[t];
478
+ return $.monthNames[t];
478
479
  }
479
480
  /**
480
481
  * Initialize component state.
@@ -494,17 +495,33 @@ class ke extends m {
494
495
  * @returns {void}
495
496
  */
496
497
  handleClick(t) {
497
- this.data.selecting === "start" ? (this.data.current.start = t, this.data.current.end = null, this.data.selecting = "end") : (this.data.current.start && t < this.data.current.start ? (this.data.current.end = this.data.current.start, this.data.current.start = t) : this.data.current.end = t, this.data.selecting = "start", typeof this.onRangeSelect == "function" && this.onRangeSelect(this.data.current.start, this.data.current.end));
498
+ if (this.data.selecting === "start") {
499
+ this.data.current.start = t, this.data.current.end = null, this.data.selecting = "end";
500
+ const s = new Date(t);
501
+ this.setContext({
502
+ month: s.getMonth(),
503
+ year: s.getFullYear(),
504
+ date: s.getDate()
505
+ });
506
+ } else {
507
+ this.data.current.start && t < this.data.current.start ? (this.data.current.end = this.data.current.start, this.data.current.start = t) : this.data.current.end = t, this.data.selecting = "start";
508
+ const s = new Date(t);
509
+ this.setContext({
510
+ month: s.getMonth(),
511
+ year: s.getFullYear(),
512
+ date: s.getDate()
513
+ }), typeof this.onRangeSelect == "function" && this.onRangeSelect(this.data.current.start, this.data.current.end);
514
+ }
498
515
  }
499
516
  /**
500
517
  * Update current month/year in data.
501
518
  *
502
- * @param {{month:number,year:number}} obj
519
+ * @param {object} obj
503
520
  * @returns {void}
504
521
  */
505
- setCurrent({ month: t, year: s }) {
506
- const a = this.data.current;
507
- a.month = (t + 12) % 12, a.year = s + (t < 0 ? -1 : t > 11 ? 1 : 0), this.data.monthName = this.getMonthName(a.month);
522
+ setCurrent({ month: t, year: s, date: a = null }) {
523
+ const n = this.data.current;
524
+ n.month = (t + 12) % 12, n.year = s + (t < 0 ? -1 : t > 11 ? 1 : 0), a !== null && (n.date = a), this.data.monthName = this.getMonthName(n.month), this.data.currentDate = `${s}-${v(t + 1)}-${v(n.date)}`;
508
525
  }
509
526
  /**
510
527
  * Render the range calendar.
@@ -514,17 +531,17 @@ class ke extends m {
514
531
  render() {
515
532
  const { today: t, current: s, selecting: a } = this.data, { start: n, end: i } = s;
516
533
  return o({ class: "range-calendar bg-background border border-border rounded-lg shadow-md p-4 w-full max-w-sm" }, [
517
- Tt({
534
+ Bt({
518
535
  start: n,
519
536
  end: i,
520
537
  selecting: a,
521
538
  onSelectStart: () => this.data.selecting = "start",
522
539
  onSelectEnd: () => this.data.selecting = "end"
523
540
  }),
524
- q("view", (l) => {
541
+ K("view", (l) => {
525
542
  switch (l) {
526
543
  case "months":
527
- return Lt(
544
+ return Tt(
528
545
  {
529
546
  currentMonth: s.month,
530
547
  currentYear: s.year,
@@ -534,7 +551,7 @@ class ke extends m {
534
551
  }
535
552
  );
536
553
  case "years":
537
- return Bt(
554
+ return Pt(
538
555
  {
539
556
  currentYear: s.year,
540
557
  onSelect: (r) => {
@@ -543,7 +560,7 @@ class ke extends m {
543
560
  }
544
561
  );
545
562
  default:
546
- return Mt({
563
+ return Lt({
547
564
  monthName: this.data.monthName,
548
565
  year: s.year,
549
566
  today: t,
@@ -566,28 +583,28 @@ class ke extends m {
566
583
  ]);
567
584
  }
568
585
  }
569
- const Rt = (e, t) => {
586
+ const $t = (e, t) => {
570
587
  const s = e.toggleAllSelectedRows();
571
588
  t.state.checked = !s;
572
- }, Pt = (e) => A({ class: `cursor-pointer py-3 px-4 text-base w-10 ${e.class || ""}` }, [
573
- K((t) => new dt({ class: "mr-2", onChange: (s, a) => Rt(t, a) }))
589
+ }, Wt = (e) => F({ class: `cursor-pointer py-3 px-4 text-base w-10 ${e.class || ""}` }, [
590
+ G((t) => new ht({ class: "mr-2", onChange: (s, a) => $t(t, a) }))
574
591
  ]), Nt = ({ align: e, sortable: t, key: s, label: a, sort: n, class: i }) => {
575
592
  const l = e || "justify-start";
576
- return A({
593
+ return F({
577
594
  class: `cursor-pointer py-3 px-4 text-base ${i || ""}`,
578
595
  click: t && (() => n(s))
579
596
  }, [
580
597
  o({ class: `flex flex-auto w-full items-center ${l}` }, [
581
- S(a),
582
- t && G({ class: "ml-2", html: b.arrows.upDown })
598
+ C(a),
599
+ t && J({ class: "ml-2", html: b.arrows.upDown })
583
600
  ])
584
601
  ]);
585
- }, N = (e) => J([
586
- _({
602
+ }, W = (e) => _([
603
+ V({
587
604
  class: "text-muted-foreground border-b",
588
605
  map: [
589
606
  e.headers,
590
- (t) => t.label === "checkbox" ? Pt({ toggle: e.toggle }) : Nt({
607
+ (t) => t.label === "checkbox" ? Wt({ toggle: e.toggle }) : Nt({
591
608
  align: t.align,
592
609
  sortable: t.sortable,
593
610
  key: t.key,
@@ -596,7 +613,7 @@ const Rt = (e, t) => {
596
613
  })
597
614
  ]
598
615
  })
599
- ]), Wt = ({ key: e, rows: t, selectRow: s, rowItem: a, emptyState: n }) => new it({
616
+ ]), Ot = ({ key: e, rows: t, selectRow: s, rowItem: a, emptyState: n }) => new ot({
600
617
  cache: "list",
601
618
  key: e,
602
619
  items: t,
@@ -604,7 +621,7 @@ const Rt = (e, t) => {
604
621
  class: "divide-y divide-border",
605
622
  emptyState: n
606
623
  });
607
- class E extends m {
624
+ class Q extends g {
608
625
  /**
609
626
  * Initializes component data.
610
627
  *
@@ -612,7 +629,7 @@ class E extends m {
612
629
  */
613
630
  setData() {
614
631
  let t = this.rows && this.rows.length > 0;
615
- return (this.loadMoreItems || this.tableData) && !t && (t = null), new M({
632
+ return (this.loadMoreItems || this.tableData) && !t && (t = null), new L({
616
633
  selectedRows: [],
617
634
  // @ts-ignore
618
635
  hasItems: t,
@@ -677,12 +694,12 @@ class E extends m {
677
694
  return o({ class: "w-full flex flex-auto flex-col" }, [
678
695
  w("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
679
696
  o({ class: `w-full rounded-md ${s} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
680
- R({ class: "w-full" }, [
697
+ P({ class: "w-full" }, [
681
698
  // @ts-ignore
682
- this.headers && N({ headers: this.headers, sort: (a) => this.sortRows(a) }),
699
+ this.headers && W({ headers: this.headers, sort: (a) => this.sortRows(a) }),
683
700
  // @ts-ignore
684
701
  this.customHeader ?? null,
685
- Wt({
702
+ Ot({
686
703
  // @ts-ignore
687
704
  key: this.key,
688
705
  rows: t,
@@ -757,7 +774,7 @@ class E extends m {
757
774
  this.data.selectedRows = [];
758
775
  }
759
776
  }
760
- const Ot = (e) => new ot({
777
+ const zt = (e) => new lt({
761
778
  cache: "list",
762
779
  loadMoreItems: e.loadMoreItems,
763
780
  offset: e.offset,
@@ -768,7 +785,7 @@ const Ot = (e) => new ot({
768
785
  rowItem: (t) => e.rowItem(t, e.selectRow),
769
786
  class: "divide-y divide-border"
770
787
  });
771
- class $t extends E {
788
+ class Yt extends Q {
772
789
  /**
773
790
  * Renders the DataTable component.
774
791
  *
@@ -779,12 +796,12 @@ class $t extends E {
779
796
  return o({ class: "w-full flex flex-auto flex-col" }, [
780
797
  w("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
781
798
  o({ class: `w-full rounded-md ${s} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
782
- R({ class: "w-full" }, [
799
+ P({ class: "w-full" }, [
783
800
  // @ts-ignore
784
- this.headers && N({ headers: this.headers, sort: (a) => this.sortRows(a) }),
801
+ this.headers && W({ headers: this.headers, sort: (a) => this.sortRows(a) }),
785
802
  // @ts-ignore
786
803
  this.customHeader ?? null,
787
- Ot({
804
+ zt({
788
805
  // @ts-ignore
789
806
  loadMoreItems: this.loadMoreItems,
790
807
  // @ts-ignore
@@ -816,7 +833,7 @@ class $t extends E {
816
833
  this.list.refresh();
817
834
  }
818
835
  }
819
- const ve = f((e) => new $t(
836
+ const Se = f((e) => new Yt(
820
837
  {
821
838
  cache: e.cache ?? "list",
822
839
  tableData: e.data,
@@ -832,7 +849,7 @@ const ve = f((e) => new $t(
832
849
  border: e.border,
833
850
  emptyState: e.emptyState
834
851
  }
835
- )), zt = (e) => new lt({
852
+ )), jt = (e) => new rt({
836
853
  cache: "list",
837
854
  scrollContainer: e.scrollContainer,
838
855
  loadMoreItems: e.loadMoreItems,
@@ -844,7 +861,7 @@ const ve = f((e) => new $t(
844
861
  rowItem: (t) => e.rowItem(t, e.selectRow),
845
862
  class: "divide-y divide-border"
846
863
  });
847
- class jt extends E {
864
+ class At extends Q {
848
865
  /**
849
866
  * Renders the DataTable component.
850
867
  *
@@ -855,12 +872,12 @@ class jt extends E {
855
872
  return o({ class: "w-full flex flex-auto flex-col" }, [
856
873
  w("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
857
874
  o({ class: `w-full rounded-md ${s} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
858
- R({ class: "w-full" }, [
875
+ P({ class: "w-full" }, [
859
876
  // @ts-ignore
860
- this.headers && N({ headers: this.headers, sort: (a) => this.sortRows(a) }),
877
+ this.headers && W({ headers: this.headers, sort: (a) => this.sortRows(a) }),
861
878
  // @ts-ignore
862
879
  this.customHeader ?? null,
863
- zt({
880
+ jt({
864
881
  // @ts-ignore
865
882
  scrollContainer: this.scrollContainer,
866
883
  // @ts-ignore
@@ -894,7 +911,7 @@ class jt extends E {
894
911
  this.list.refresh();
895
912
  }
896
913
  }
897
- const De = f((e) => new jt(
914
+ const Ce = f((e) => new At(
898
915
  {
899
916
  cache: e.cache ?? "list",
900
917
  tableData: e.data,
@@ -911,45 +928,45 @@ const De = f((e) => new jt(
911
928
  border: e.border,
912
929
  emptyState: e.emptyState
913
930
  }
914
- )), Yt = f(({ name: e, email: t }) => o({ class: "min-w-0 flex-auto" }, [
931
+ )), Ft = f(({ name: e, email: t }) => o({ class: "min-w-0 flex-auto" }, [
915
932
  x({ class: "text-base font-semibold leading-6 m-0" }, e),
916
933
  x({ class: "truncate text-sm leading-5 text-muted-foreground m-0" }, t)
917
- ])), At = () => o({ class: "flex items-center gap-x-1.5" }, [
934
+ ])), Ht = () => o({ class: "flex items-center gap-x-1.5" }, [
918
935
  o({ class: "flex-none rounded-full bg-emerald-500/20 p-1" }, [
919
936
  o({ class: "h-1.5 w-1.5 rounded-full bg-emerald-500" })
920
937
  ]),
921
938
  x({ class: "text-xs leading-5 text-gray-500" }, "Online")
922
- ]), Ft = (e) => x({ class: "text-xs leading-5 text-muted-foreground" }, [
923
- S("Last seen "),
924
- V({ datetime: e }, "3h ago")
925
- ]), Ht = (e, t) => e === "online" ? At() : Ft(t), Ut = f(({ role: e, lastSeen: t, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
939
+ ]), Ut = (e) => x({ class: "text-xs leading-5 text-muted-foreground" }, [
940
+ C("Last seen "),
941
+ Z({ datetime: e }, "3h ago")
942
+ ]), Et = (e, t) => e === "online" ? Ht() : Ut(t), Qt = f(({ role: e, lastSeen: t, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
926
943
  x({ class: "text-sm leading-6 m-0" }, e),
927
- Ht(s, t)
928
- ])), Et = (e) => e.split(" ").map((s) => s[0]).join(""), Qt = f((e) => C({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
944
+ Et(s, t)
945
+ ])), Xt = (e) => e.split(" ").map((s) => s[0]).join(""), qt = f((e) => I({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
929
946
  o({ class: "flex min-w-0 gap-x-4" }, [
930
- at({ src: e.image, alt: e.name, fallbackText: Et(e.name) }),
931
- Yt({ name: e.name, email: e.email })
947
+ nt({ src: e.image, alt: e.name, fallbackText: Xt(e.name) }),
948
+ Ft({ name: e.name, email: e.email })
932
949
  ]),
933
- Ut({
950
+ Qt({
934
951
  role: e.role,
935
952
  lastSeen: e.lastSeen,
936
953
  status: e.status
937
954
  })
938
- ])), Se = f((e) => new rt({
955
+ ])), Ie = f((e) => new ct({
939
956
  cache: "list",
940
957
  key: "name",
941
958
  items: e.users,
942
959
  role: "list",
943
960
  class: "divide-y divide-border",
944
- rowItem: Qt
945
- })), Xt = (e, t) => t.includes(e), qt = (e, t, s) => e.exact ? s === t : Xt(t, s), Kt = ({ text: e, href: t, exact: s, hidden: a }) => new H({
961
+ rowItem: qt
962
+ })), Kt = (e, t) => t.includes(e), Gt = (e, t, s) => e.exact ? s === t : Kt(t, s), Jt = ({ text: e, href: t, exact: s, hidden: a }) => new U({
946
963
  text: e,
947
964
  href: t,
948
965
  exact: s,
949
966
  dataSet: ["selected", ["state", !0, "active"]],
950
967
  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`
951
968
  });
952
- class Ce extends m {
969
+ class Me extends g {
953
970
  /**
954
971
  * This will declare the props for the compiler.
955
972
  *
@@ -970,14 +987,14 @@ class Ce extends m {
970
987
  * @returns {object}
971
988
  */
972
989
  render() {
973
- return I(
990
+ return M(
974
991
  { class: `flex items-center justify-center p-2 text-muted-foreground rounded-md ${this.class || ""}` },
975
992
  [
976
993
  k({
977
994
  class: "flex space-x-4",
978
995
  map: [this.options, (t) => this.addLink(t)],
979
996
  watch: {
980
- value: ["[[path]]", v.data],
997
+ value: ["[[path]]", D.data],
981
998
  callBack: this.updateLinks.bind(this)
982
999
  }
983
1000
  })
@@ -990,7 +1007,7 @@ class Ce extends m {
990
1007
  * @returns {void}
991
1008
  */
992
1009
  afterSetup() {
993
- const t = v.data.path;
1010
+ const t = D.data.path;
994
1011
  this.updateLinks(t);
995
1012
  }
996
1013
  /**
@@ -1005,7 +1022,7 @@ class Ce extends m {
1005
1022
  for (const a of this.links) {
1006
1023
  if (!a.rendered)
1007
1024
  continue;
1008
- qt(a, a.getLinkPath(), t) ? (this.updateLink(a, !0), s = !0) : this.updateLink(a, !1);
1025
+ Gt(a, a.getLinkPath(), t) ? (this.updateLink(a, !0), s = !0) : this.updateLink(a, !1);
1009
1026
  }
1010
1027
  !s && this.links[0] && this.updateLink(this.links[0], !0);
1011
1028
  }
@@ -1035,7 +1052,7 @@ class Ce extends m {
1035
1052
  * @returns {object}
1036
1053
  */
1037
1054
  addLink({ label: t, href: s, exact: a, hidden: n }) {
1038
- const i = Kt({ text: t, href: s, exact: a, hidden: n });
1055
+ const i = Jt({ text: t, href: s, exact: a, hidden: n });
1039
1056
  return this.links.push(i), i;
1040
1057
  }
1041
1058
  /**
@@ -1047,13 +1064,13 @@ class Ce extends m {
1047
1064
  this.links = [];
1048
1065
  }
1049
1066
  }
1050
- const Ie = f((e) => {
1067
+ const Le = f((e) => {
1051
1068
  const t = e.margin || "m-4 ml-0";
1052
1069
  return e.allowHistory = e.allowHistory === !0, o({ class: `flex-none ${t}` }, [
1053
- g({ variant: "back", class: "ghost", ...e })
1070
+ m({ variant: "back", class: "ghost", ...e })
1054
1071
  ]);
1055
1072
  });
1056
- class Q extends m {
1073
+ class X extends g {
1057
1074
  /**
1058
1075
  * This will declare the props for the compiler.
1059
1076
  *
@@ -1140,13 +1157,13 @@ class Q extends m {
1140
1157
  return this.children;
1141
1158
  }
1142
1159
  }
1143
- U.addType("dockableOverlay", (e) => {
1160
+ E.addType("dockableOverlay", (e) => {
1144
1161
  if (!e)
1145
1162
  return;
1146
1163
  const t = e.component;
1147
1164
  t && t.rendered === !0 && t.state.docked === !1 && t.destroy();
1148
1165
  });
1149
- class Me extends Q {
1166
+ class Te extends X {
1150
1167
  /**
1151
1168
  * This will stop presistence.
1152
1169
  *
@@ -1212,7 +1229,7 @@ class Me extends Q {
1212
1229
  * @returns {void}
1213
1230
  */
1214
1231
  afterSetup() {
1215
- U.add(
1232
+ E.add(
1216
1233
  this.container,
1217
1234
  "dockableOverlay",
1218
1235
  {
@@ -1255,7 +1272,7 @@ class Me extends Q {
1255
1272
  document.documentElement.style.overflowY = "auto";
1256
1273
  }
1257
1274
  }
1258
- class Le extends Q {
1275
+ class Be extends X {
1259
1276
  /**
1260
1277
  * This will get the overlay type.
1261
1278
  *
@@ -1274,7 +1291,7 @@ class Le extends Q {
1274
1291
  this.container = t, this.initialize();
1275
1292
  }
1276
1293
  }
1277
- const Gt = f(({ index: e, click: t, state: s }, a) => C({
1294
+ const _t = f(({ index: e, click: t, state: s }, a) => I({
1278
1295
  class: "p-2 cursor-pointer hover:bg-muted/50",
1279
1296
  onState: [
1280
1297
  [s, "selectedIndex", {
@@ -1283,11 +1300,11 @@ const Gt = f(({ index: e, click: t, state: s }, a) => C({
1283
1300
  }]
1284
1301
  ],
1285
1302
  click: () => t(e)
1286
- }, a)), Jt = f(({ selectOption: e, state: t }) => k({
1303
+ }, a)), Vt = f(({ selectOption: e, state: t }) => k({
1287
1304
  class: "border rounded-md list-none m-0 p-0 max-h-[400px] overflow-y-auto",
1288
- for: ["filteredOptions", (s, a) => Gt({ index: a, click: e, state: t }, s.label)]
1289
- })), _t = f((e) => o({ class: "relative flex items-center" }, [
1290
- ht({
1305
+ for: ["filteredOptions", (s, a) => _t({ index: a, click: e, state: t }, s.label)]
1306
+ })), Zt = f((e) => o({ class: "relative flex items-center" }, [
1307
+ ut({
1291
1308
  cache: "input",
1292
1309
  class: e.class ?? "",
1293
1310
  placeholder: e.placeholder ?? "Search...",
@@ -1303,22 +1320,22 @@ const Gt = f(({ index: e, click: t, state: s }, a) => C({
1303
1320
  ]
1304
1321
  }),
1305
1322
  e.icon && o({ class: "absolute flex right-0 mr-2" }, [
1306
- et(e.icon)
1323
+ st(e.icon)
1307
1324
  ])
1308
- ])), Vt = (e) => o({
1325
+ ])), te = (e) => o({
1309
1326
  class: "relative flex fle-auto flex-col",
1310
1327
  onState: ["open", (t, s, a) => {
1311
1328
  if (t)
1312
- return new nt({
1329
+ return new it({
1313
1330
  cache: "dropdown",
1314
1331
  parent: a,
1315
1332
  button: a.input,
1316
1333
  size: "xl"
1317
1334
  }, [
1318
- Jt(e)
1335
+ Vt(e)
1319
1336
  ]);
1320
1337
  }]
1321
- }), Te = tt(
1338
+ }), Re = et(
1322
1339
  {
1323
1340
  /**
1324
1341
  * This will set up the data object.
@@ -1327,7 +1344,7 @@ const Gt = f(({ index: e, click: t, state: s }, a) => C({
1327
1344
  */
1328
1345
  setData() {
1329
1346
  const e = this.options || [];
1330
- return new M({
1347
+ return new L({
1331
1348
  options: e,
1332
1349
  filteredOptions: e
1333
1350
  });
@@ -1415,7 +1432,7 @@ const Gt = f(({ index: e, click: t, state: s }, a) => C({
1415
1432
  */
1416
1433
  render() {
1417
1434
  return o({ class: "relative w-full max-w-md" }, [
1418
- _t({
1435
+ Zt({
1419
1436
  // @ts-ignore
1420
1437
  state: this.state,
1421
1438
  // @ts-ignore
@@ -1427,7 +1444,7 @@ const Gt = f(({ index: e, click: t, state: s }, a) => C({
1427
1444
  // @ts-ignore
1428
1445
  handleKeyDown: this.handleKeyDown.bind(this)
1429
1446
  }),
1430
- Vt({
1447
+ te({
1431
1448
  // @ts-ignore
1432
1449
  state: this.state,
1433
1450
  // @ts-ignore
@@ -1438,22 +1455,22 @@ const Gt = f(({ index: e, click: t, state: s }, a) => C({
1438
1455
  ]);
1439
1456
  }
1440
1457
  }
1441
- ), Zt = (e) => C(
1458
+ ), ee = (e) => I(
1442
1459
  {
1443
1460
  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",
1444
1461
  dataSet: ["selected", ["state", e.value, "active"]]
1445
1462
  },
1446
1463
  [
1447
- D({
1464
+ S({
1448
1465
  class: "flex flex-auto justify-center items-center px-3 py-1.5 rounded-md",
1449
1466
  onSet: ["selected", { selected: e.value }],
1450
1467
  click: (t) => e.callBack(e.value)
1451
1468
  }, e.label)
1452
1469
  ]
1453
- ), te = (e, t) => (e.callBack = t, Zt(e)), ee = (e) => I({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${e.class}` }, [
1454
- k({ class: "flex flex-auto flex-row", map: [e.options, (t) => te(t, e.callBack)] })
1470
+ ), se = (e, t) => (e.callBack = t, ee(e)), ae = (e) => M({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${e.class}` }, [
1471
+ k({ class: "flex flex-auto flex-row", map: [e.options, (t) => se(t, e.callBack)] })
1455
1472
  ]);
1456
- class Be extends m {
1473
+ class Pe extends g {
1457
1474
  /**
1458
1475
  * This will declare the props for the compiler.
1459
1476
  *
@@ -1470,12 +1487,12 @@ class Be extends m {
1470
1487
  render() {
1471
1488
  const t = this.select.bind(this);
1472
1489
  return o({ class: "" }, [
1473
- ee({
1490
+ ae({
1474
1491
  class: this.class,
1475
1492
  options: this.options,
1476
1493
  callBack: t
1477
1494
  }),
1478
- F({
1495
+ H({
1479
1496
  class: "tab-content",
1480
1497
  onState: ["selected", this.updateContent.bind(this)]
1481
1498
  })
@@ -1541,23 +1558,23 @@ class Be extends m {
1541
1558
  };
1542
1559
  }
1543
1560
  }
1544
- const se = (e) => C(
1561
+ const ne = (e) => I(
1545
1562
  {
1546
1563
  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",
1547
1564
  dataSet: ["selected", ["state", e.value, "active"]]
1548
1565
  },
1549
1566
  [
1550
- D({
1567
+ S({
1551
1568
  class: "flex flex-auto justify-center items-center px-3 py-1.5 rounded-md disabled:opacity-50 disabled:cursor-not-allowed",
1552
1569
  onSet: ["selected", { selected: e.value }],
1553
1570
  click: (t) => e.callBack(e.value),
1554
1571
  disabled: e.disabled
1555
1572
  }, e.label)
1556
1573
  ]
1557
- ), ae = (e, t) => (e.callBack = t, se(e)), ne = (e) => I({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${e.class}` }, [
1558
- k({ class: "flex flex-auto flex-row", map: [e.options, (t) => ae(t, e.callBack)] })
1574
+ ), ie = (e, t) => (e.callBack = t, ne(e)), oe = (e) => M({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${e.class}` }, [
1575
+ k({ class: "flex flex-auto flex-row", map: [e.options, (t) => ie(t, e.callBack)] })
1559
1576
  ]);
1560
- class Re extends m {
1577
+ class $e extends g {
1561
1578
  /**
1562
1579
  * This will declare the props for the compiler.
1563
1580
  *
@@ -1573,7 +1590,7 @@ class Re extends m {
1573
1590
  */
1574
1591
  render() {
1575
1592
  const t = this.select.bind(this);
1576
- return ne({
1593
+ return oe({
1577
1594
  class: this.class,
1578
1595
  options: this.options,
1579
1596
  callBack: t
@@ -1600,17 +1617,17 @@ class Re extends m {
1600
1617
  };
1601
1618
  }
1602
1619
  }
1603
- const ie = (e, t) => new RegExp(`${e}($|/|\\.).*`).test(t), oe = (e, t) => {
1620
+ const le = (e, t) => new RegExp(`${e}($|/|\\.).*`).test(t), re = (e, t) => {
1604
1621
  const s = e.getLinkPath();
1605
- return e.exact ? t === s : ie(s, t);
1606
- }, le = ({ text: e, href: t, exact: s }) => new H({
1622
+ return e.exact ? t === s : le(s, t);
1623
+ }, ce = ({ text: e, href: t, exact: s }) => new U({
1607
1624
  text: e,
1608
1625
  href: t,
1609
1626
  exact: s,
1610
1627
  dataSet: ["selected", ["state", !0, "active"]],
1611
1628
  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"
1612
1629
  });
1613
- class re extends m {
1630
+ class de extends g {
1614
1631
  /**
1615
1632
  * This will declare the props for the compiler.
1616
1633
  *
@@ -1631,12 +1648,12 @@ class re extends m {
1631
1648
  * @returns {object}
1632
1649
  */
1633
1650
  render() {
1634
- return I({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${this.class}` }, [
1651
+ return M({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${this.class}` }, [
1635
1652
  k({
1636
1653
  class: "flex flex-auto flex-row",
1637
1654
  map: [this.options, (t) => this.addLink(t)],
1638
1655
  watch: {
1639
- value: ["[[path]]", v.data],
1656
+ value: ["[[path]]", D.data],
1640
1657
  callBack: this.updateLinks.bind(this)
1641
1658
  }
1642
1659
  })
@@ -1648,7 +1665,7 @@ class re extends m {
1648
1665
  * @returns {void}
1649
1666
  */
1650
1667
  afterSetup() {
1651
- const t = v.data.path;
1668
+ const t = D.data.path;
1652
1669
  this.updateLinks(t);
1653
1670
  }
1654
1671
  /**
@@ -1661,7 +1678,7 @@ class re extends m {
1661
1678
  let s = !1, a = this.links[0];
1662
1679
  this.deactivateAllLinks();
1663
1680
  for (const n of this.links)
1664
- if (n.rendered !== !1 && (s = oe(n, t), s === !0)) {
1681
+ if (n.rendered !== !1 && (s = re(n, t), s === !0)) {
1665
1682
  this.updateLink(n, !0);
1666
1683
  break;
1667
1684
  }
@@ -1693,7 +1710,7 @@ class re extends m {
1693
1710
  * @returns {object}
1694
1711
  */
1695
1712
  addLink({ label: t, href: s, exact: a }) {
1696
- const n = le({ text: t, href: s, exact: a });
1713
+ const n = ce({ text: t, href: s, exact: a });
1697
1714
  return this.links.push(n), n;
1698
1715
  }
1699
1716
  /**
@@ -1705,7 +1722,7 @@ class re extends m {
1705
1722
  this.links = [];
1706
1723
  }
1707
1724
  }
1708
- class Pe extends m {
1725
+ class We extends g {
1709
1726
  /**
1710
1727
  * This will declare the props for the compiler.
1711
1728
  *
@@ -1721,11 +1738,11 @@ class Pe extends m {
1721
1738
  */
1722
1739
  render() {
1723
1740
  return o({ class: "tab-panel" }, [
1724
- new re({
1741
+ new de({
1725
1742
  class: this.class,
1726
1743
  options: this.options
1727
1744
  }),
1728
- F({
1745
+ H({
1729
1746
  class: "tab-content",
1730
1747
  switch: this.addGroup()
1731
1748
  })
@@ -1751,7 +1768,7 @@ class Pe extends m {
1751
1768
  return s;
1752
1769
  }
1753
1770
  }
1754
- class ce extends m {
1771
+ class he extends g {
1755
1772
  /**
1756
1773
  * Runs before rendering, sets up defaults, a timer for drawing,
1757
1774
  * and basic canvas properties.
@@ -1761,7 +1778,7 @@ class ce extends m {
1761
1778
  onCreated() {
1762
1779
  this.lineWidth = this.lineWidth || 3, this.lineColor = this.lineColor || "#000000", this.canvas = null, this.ctx = null, this.status = "stopped";
1763
1780
  const t = 1e3 / 60;
1764
- this.timer = new ct(t, 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";
1781
+ this.timer = new dt(t, 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";
1765
1782
  }
1766
1783
  /**
1767
1784
  * Renders a <canvas> element.
@@ -1769,7 +1786,7 @@ class ce extends m {
1769
1786
  * @returns {object} Layout definition for the canvas.
1770
1787
  */
1771
1788
  render() {
1772
- return Z({
1789
+ return tt({
1773
1790
  style: "touch-action: none; -webkit-user-select: none; -webkit-touch-callout: none;"
1774
1791
  });
1775
1792
  }
@@ -1866,8 +1883,8 @@ class ce extends m {
1866
1883
  const { canvas: t, ctx: s } = this, a = t.toDataURL();
1867
1884
  if (this.scale(), this.setupBackground(s), a !== "data:,") {
1868
1885
  const n = new globalThis.Image();
1869
- W.on("load", n, function i() {
1870
- s.drawImage(n, 0, 0), W.off("load", n, i);
1886
+ N.on("load", n, function i() {
1887
+ s.drawImage(n, 0, 0), N.off("load", n, i);
1871
1888
  }), n.src = a;
1872
1889
  }
1873
1890
  this.draw();
@@ -1977,7 +1994,7 @@ class ce extends m {
1977
1994
  this.timer.stop(), this.status = "stopped";
1978
1995
  }
1979
1996
  }
1980
- class Ne extends m {
1997
+ class Ne extends g {
1981
1998
  /**
1982
1999
  * Sets up default properties for the signature panel.
1983
2000
  *
@@ -1994,19 +2011,19 @@ class Ne extends m {
1994
2011
  */
1995
2012
  render() {
1996
2013
  return o({ class: "signature-panel relative flex flex-auto overflow-hidden select-none" }, [
1997
- ut({
2014
+ ft({
1998
2015
  cache: "hiddenInput",
1999
2016
  required: !0,
2000
2017
  bind: this.path + ".data"
2001
2018
  }),
2002
2019
  o({ class: "absolute top-2 right-2" }, [
2003
- g({
2020
+ m({
2004
2021
  variant: "icon",
2005
2022
  icon: b.circleX,
2006
2023
  click: this.reset.bind(this)
2007
2024
  })
2008
2025
  ]),
2009
- new ce({
2026
+ new he({
2010
2027
  cache: "canvasLayer",
2011
2028
  margin: this.margin,
2012
2029
  targetSize: this.targetSize,
@@ -2056,37 +2073,37 @@ class Ne extends m {
2056
2073
  }
2057
2074
  }
2058
2075
  export {
2059
- Ie as B,
2060
- Pt as C,
2061
- Wt as D,
2076
+ Le as B,
2077
+ Wt as C,
2078
+ Ot as D,
2062
2079
  Nt as H,
2063
- Le as I,
2064
- Ce as N,
2065
- Q as O,
2066
- ye as P,
2067
- ke as R,
2068
- De as S,
2069
- N as T,
2070
- Qt as U,
2071
- xe as W,
2072
- pt as a,
2073
- $ as b,
2080
+ Be as I,
2081
+ Me as N,
2082
+ X as O,
2083
+ be as P,
2084
+ De as R,
2085
+ Ce as S,
2086
+ W as T,
2087
+ qt as U,
2088
+ ve as W,
2089
+ yt as a,
2090
+ z as b,
2074
2091
  mt as c,
2075
- we as d,
2076
- be as e,
2077
- wt as f,
2078
- gt as g,
2079
- xt as h,
2080
- kt as i,
2081
- E as j,
2082
- ve as k,
2083
- Se as l,
2084
- Me as m,
2085
- Te as n,
2086
- _t as o,
2087
- Be as p,
2088
- Re as q,
2089
- re as r,
2090
- Pe as s,
2092
+ xe as d,
2093
+ ke as e,
2094
+ bt as f,
2095
+ pt as g,
2096
+ kt as h,
2097
+ vt as i,
2098
+ Q as j,
2099
+ Se as k,
2100
+ Ie as l,
2101
+ Te as m,
2102
+ Re as n,
2103
+ Zt as o,
2104
+ Pe as p,
2105
+ $e as q,
2106
+ de as r,
2107
+ We as s,
2091
2108
  Ne as t
2092
2109
  };
@@ -57,13 +57,10 @@ export class RangeCalendar extends Component {
57
57
  /**
58
58
  * Update current month/year in data.
59
59
  *
60
- * @param {{month:number,year:number}} obj
60
+ * @param {object} obj
61
61
  * @returns {void}
62
62
  */
63
- setCurrent({ month, year }: {
64
- month: number;
65
- year: number;
66
- }): void;
63
+ setCurrent({ month, year, date }: object): void;
67
64
  /**
68
65
  * Render the range calendar.
69
66
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/ui",
3
- "version": "1.0.225",
3
+ "version": "1.0.226",
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": {