@base-framework/ui 1.0.229 → 1.0.231

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-B1BZiFct.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-B7ItSnD5.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-B1BZiFct.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-B7ItSnD5.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 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 O, Dom as N } from "@base-framework/base";
3
- import { B as m, I as st } from "./buttons-Cm9etaEG.js";
4
- import { Icons as b } from "./icons.es.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
- f((e, t) => ({
1
+ import { Button as P, Div as o, On as k, Span as $, OnState as at, Th as J, UseParent as nt, I as it, Thead as ot, Tr as lt, Table as A, P as T, Li as W, Time as rt, Nav as N, Ul as B, Section as _, Canvas as ct } from "@base-framework/atoms";
2
+ import { Atom as g, Component as m, Data as j, DateTime as F, router as O, NavLink as V, DataTracker as Z, Jot as dt, base as U, Dom as Q } from "@base-framework/base";
3
+ import { B as p, I as ht } from "./buttons-Cm9etaEG.js";
4
+ import { Icons as v } from "./icons.es.js";
5
+ import { F as Y, p as R, A as ut, P as ft } from "./calendar-Bn55oWBo.js";
6
+ import { TableBody as gt, DataTableBody as mt, ScrollableTableBody as pt, List as yt, IntervalTimer as wt } from "@base-framework/organisms";
7
+ import { C as bt, I as xt, H as kt } from "./inputs-CMjx5-IX.js";
8
+ g((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 }) => S({
13
+ g(({ value: e, label: t }) => P({
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 be extends g {
19
+ class Me extends m {
20
20
  /**
21
21
  * This will declare the props for the compiler.
22
22
  *
@@ -34,36 +34,36 @@ class be extends g {
34
34
  return o({ class: this.class || "" }, this.children);
35
35
  }
36
36
  }
37
- const gt = (e) => {
37
+ const vt = (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;
41
- }, mt = (e) => {
41
+ }, Dt = (e) => {
42
42
  const t = new Date(e.valueOf()), s = (t.getDay() + 6) % 7;
43
43
  t.setDate(t.getDate() - s + 3);
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 && !gt(a) ? {
47
+ return i > 52 && !vt(a) ? {
48
48
  weekNumber: 1,
49
49
  year: a + 1
50
50
  } : {
51
51
  weekNumber: i,
52
52
  year: a
53
53
  };
54
- }, pt = (e, t, s) => {
54
+ }, St = (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
- }, yt = (e, t, s) => Array.from({ length: s }, (a, n) => new Date(e, t + 1, n + 1)), z = (e, t) => {
61
+ }, Ct = (e, t, s) => Array.from({ length: s }, (a, n) => new Date(e, t + 1, n + 1)), X = (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
- }, xe = (e, t) => {
66
+ }, Le = (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 gt = (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
- }, ke = (e, t) => {
74
+ }, Te = (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
- }, wt = (e, t, s) => {
80
+ }, It = (e, t, s) => {
81
81
  const a = /* @__PURE__ */ new Date();
82
82
  return a.getDate() === e && a.getMonth() === t && a.getFullYear() === s;
83
- }, bt = ({ day: e, month: t, year: s, weekNumber: a, selectWeek: n }) => {
84
- const i = wt(e, t, s);
85
- return S({
83
+ }, Mt = ({ day: e, month: t, year: s, weekNumber: a, selectWeek: n }) => {
84
+ const i = It(e, t, s);
85
+ return P({
86
86
  text: e || "",
87
87
  disabled: !e,
88
88
  class: `
@@ -92,19 +92,19 @@ const gt = (e) => {
92
92
  `,
93
93
  click: () => n(a, s)
94
94
  });
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
- for (let h = 0; h < d.length; h += 7) {
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
- u.push({
100
- weekNumber: T,
101
- year: B,
102
- days: p
95
+ }, Lt = (e, t) => {
96
+ const s = new Date(e, t, 1).getDay(), a = new Date(e, t + 1, 0).getDate(), n = St(e, t, s), i = Array.from({ length: a }, (u, b) => new Date(e, t, b + 1)), l = (n.length + i.length) % 7, r = l === 0 ? 0 : 7 - l, c = Ct(e, t, r), h = [...n, ...i, ...c], y = [];
97
+ for (let u = 0; u < h.length; u += 7) {
98
+ const b = h.slice(u, u + 7), x = b.find((d) => d) || new Date(e, t, 1), { weekNumber: E, year: z } = Dt(x);
99
+ y.push({
100
+ weekNumber: E,
101
+ year: z,
102
+ days: b
103
103
  });
104
104
  }
105
- return u;
106
- }, kt = ({ selectWeek: e }) => w("month", (t, s, { data: a }) => {
107
- const { year: n, month: i, currentDate: l } = a, r = xt(n, i);
105
+ return y;
106
+ }, Tt = ({ selectWeek: e }) => k("month", (t, s, { data: a }) => {
107
+ const { year: n, month: i, currentDate: l } = a, r = Lt(n, i);
108
108
  return o(
109
109
  { class: "grid grid-cols-8 gap-1 text-sm px-4 py-2" },
110
110
  [
@@ -115,12 +115,12 @@ const gt = (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) => C({ class: "px-1 py-1", text: c })
118
+ (c) => $({ class: "px-1 py-1", text: c })
119
119
  )
120
120
  ),
121
121
  // Render each "week" row
122
122
  ...r.map(
123
- ({ weekNumber: c, days: d, year: u }) => o({
123
+ ({ weekNumber: c, days: h, year: y }) => o({
124
124
  class: "grid grid-cols-8 col-span-8 items-center ring-primary rounded-sm px-1",
125
125
  onSet: ["currentWeek", {
126
126
  ring: c
@@ -129,7 +129,7 @@ const gt = (e) => {
129
129
  // Left column: ISO week number
130
130
  o({
131
131
  class: "font-medium text-center col-span-1 rounded-sm cursor-pointer",
132
- click: () => e(c, u),
132
+ click: () => e(c, y),
133
133
  // If you have a 'currentWeek' state, you can highlight it with 'onSet'
134
134
  onSet: ["currentWeek", {
135
135
  "text-primary-foreground": c,
@@ -140,11 +140,11 @@ const gt = (e) => {
140
140
  // The 7 cells for each day in the row
141
141
  o(
142
142
  { class: "grid grid-cols-7 col-span-7 text-center" },
143
- d.map(
144
- (h) => bt({
145
- year: (h == null ? void 0 : h.getFullYear()) || null,
146
- month: (h == null ? void 0 : h.getMonth()) || null,
147
- day: (h == null ? void 0 : h.getDate()) || null,
143
+ h.map(
144
+ (u) => Mt({
145
+ year: (u == null ? void 0 : u.getFullYear()) || null,
146
+ month: (u == null ? void 0 : u.getMonth()) || null,
147
+ day: (u == null ? void 0 : u.getDate()) || null,
148
148
  weekNumber: c,
149
149
  selectWeek: e
150
150
  })
@@ -154,7 +154,7 @@ const gt = (e) => {
154
154
  )
155
155
  ]
156
156
  );
157
- }), Y = ({ label: e, click: t }) => m(
157
+ }), q = ({ label: e, click: t }) => p(
158
158
  {
159
159
  class: `
160
160
  inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
@@ -165,20 +165,20 @@ const gt = (e) => {
165
165
  click: t,
166
166
  "aria-label": `${e} month`,
167
167
  variant: "icon",
168
- icon: e === "Previous" ? b.chevron.single.left : b.chevron.single.right
168
+ icon: e === "Previous" ? v.chevron.single.left : v.chevron.single.right
169
169
  }
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({
170
+ ), Bt = ({ next: e, previous: t }) => o({ class: "flex flex-auto min-h-12 text-sm font-medium relative justify-center items-center" }, [
171
+ $("[[monthName]] [[year]]"),
172
+ q({
173
173
  label: "Previous",
174
174
  click: t
175
175
  }),
176
- Y({
176
+ q({
177
177
  label: "Next",
178
178
  click: e
179
179
  })
180
180
  ]);
181
- class ve extends g {
181
+ class Be extends m {
182
182
  /**
183
183
  * This will declare the props for the compiler.
184
184
  *
@@ -193,8 +193,8 @@ class ve extends g {
193
193
  * @returns {Data}
194
194
  */
195
195
  setData() {
196
- const t = /* @__PURE__ */ new Date(), s = this.selectedWeek || this.calculateCurrentWeek(t), a = z(s, t.getFullYear());
197
- return new L({
196
+ const t = /* @__PURE__ */ new Date(), s = this.selectedWeek || this.calculateCurrentWeek(t), a = X(s, t.getFullYear());
197
+ return new j({
198
198
  monthName: this.getMonthName(a.getMonth()),
199
199
  year: a.getFullYear(),
200
200
  month: a.getMonth(),
@@ -231,7 +231,7 @@ class ve extends g {
231
231
  * @returns {string}
232
232
  */
233
233
  getMonthName(t) {
234
- return $.monthNames[t];
234
+ return F.monthNames[t];
235
235
  }
236
236
  /**
237
237
  * Updates the calendar to show the previous month.
@@ -276,7 +276,7 @@ class ve extends g {
276
276
  */
277
277
  selectWeek(t, s) {
278
278
  this.data.currentWeek = t;
279
- const a = z(t, s);
279
+ const a = X(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 ve extends g {
286
286
  */
287
287
  render() {
288
288
  return o({ class: "week-calendar-container border rounded-md bg-background p-3" }, [
289
- vt({
289
+ Bt({
290
290
  next: () => this.goToNextMonth(),
291
291
  previous: () => this.goToPreviousMonth()
292
292
  }),
293
- kt({
293
+ Tt({
294
294
  selectWeek: (t, s) => this.selectWeek(t, s)
295
295
  })
296
296
  ]);
297
297
  }
298
298
  }
299
- const j = ({ label: e, click: t }) => m(
299
+ const K = ({ label: e, click: t }) => p(
300
300
  {
301
301
  class: `
302
302
  inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
@@ -307,61 +307,90 @@ const j = ({ label: e, click: t }) => m(
307
307
  click: t,
308
308
  "aria-label": `${e} month`,
309
309
  variant: "icon",
310
- icon: e === "Previous" ? b.chevron.single.left : b.chevron.single.right
311
- }
312
- ), Dt = ({ onMonthClick: e, onYearClick: t, next: s, previous: a }) => o({ class: "flex items-center justify-center space-x-2 relative min-h-12 text-sm font-medium" }, [
313
- m({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
314
- m({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
315
- j({ label: "Previous", click: a }),
316
- j({ label: "Next", click: s })
317
- ]), St = (e) => o({ class: "h-9 flex items-center justify-center font-medium" }, e), Ct = () => o(
310
+ icon: e === "Previous" ? v.chevron.single.left : v.chevron.single.right
311
+ }
312
+ ), Rt = ({ onMonthClick: e, onYearClick: t, next: s, previous: a }) => o({ class: "flex items-center justify-center space-x-2 relative min-h-12 text-sm font-medium" }, [
313
+ p({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
314
+ p({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
315
+ K({ label: "Previous", click: a }),
316
+ K({ label: "Next", click: s })
317
+ ]), Ot = (e) => o({ class: "h-9 flex items-center justify-center font-medium" }, e), Pt = () => 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(St)
320
- ), It = ({ day: e, iso: t, disabled: s, isStart: a, isEnd: n, isBetween: i, click: l }) => {
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"), m(
319
+ ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(Ot)
320
+ ), $t = ({ day: e, iso: t, disabled: s, isStart: a, isEnd: n, isBetween: i, isOtherMonth: l, click: r }) => {
321
+ let c = "ghost", h = "";
322
+ return a || n ? (c = "default", h = "bg-primary text-primary-foreground hover:bg-primary/90") : i && (h = "bg-accent text-accent-foreground hover:bg-accent/80"), s && (h += " opacity-50 cursor-not-allowed"), l && (h += " text-muted-foreground opacity-50"), p(
323
323
  {
324
- class: `flex items-center justify-center p-0 text-sm font-medium rounded-md transition-colors ${c}`,
325
- variant: r,
324
+ class: `flex items-center justify-center p-0 text-sm font-medium rounded-md transition-colors ${h}`,
325
+ variant: c,
326
326
  disabled: s,
327
327
  click: () => {
328
- s || l();
328
+ s || r();
329
329
  }
330
330
  },
331
331
  e.toString()
332
332
  );
333
- }, Mt = ({ today: e, current: t, blockPriorDates: s, onDateClick: a }) => {
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
- for (let d = 0; d < l; d++)
336
- c.push(null);
333
+ }, Wt = ({ today: e, current: t, blockPriorDates: s, onDateClick: a }) => {
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 = [], h = t.month === 0 ? 11 : t.month - 1, y = t.month === 0 ? t.year - 1 : t.year, u = new Date(y, h + 1, 0).getDate(), b = t.month === 11 ? 0 : t.month + 1, x = t.month === 11 ? t.year + 1 : t.year;
335
+ for (let d = l - 1; d >= 0; d--) {
336
+ const f = u - d, w = Y(y, h, f), D = new Date(y, h, f), S = new Date(e.year, e.month, e.date), C = D < S, I = s && C, M = n === w, L = i === w, st = n && i && w > n && w < i;
337
+ c.push({
338
+ day: f,
339
+ iso: w,
340
+ disabled: I,
341
+ isStart: M,
342
+ isEnd: L,
343
+ isBetween: st,
344
+ isOtherMonth: !0,
345
+ click: () => a(w)
346
+ });
347
+ }
337
348
  for (let d = 1; d <= r; d++) {
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;
349
+ const f = Y(t.year, t.month, d), w = new Date(t.year, t.month, d), D = new Date(e.year, e.month, e.date), S = w < D, C = s && S, I = n === f, M = i === f, L = n && i && f > n && f < i;
339
350
  c.push({
340
351
  day: d,
341
- iso: u,
342
- disabled: T,
343
- isStart: B,
344
- isEnd: R,
345
- isBetween: q,
346
- click: () => a(u)
352
+ iso: f,
353
+ disabled: C,
354
+ isStart: I,
355
+ isEnd: M,
356
+ isBetween: L,
357
+ isOtherMonth: !1,
358
+ click: () => {
359
+ console.log(f), a(f);
360
+ }
361
+ });
362
+ }
363
+ const z = 42 - c.length;
364
+ for (let d = 1; d <= z; d++) {
365
+ const f = Y(x, b, d), w = new Date(x, b, d), D = new Date(e.year, e.month, e.date), S = w < D, C = s && S, I = n === f, M = i === f, L = n && i && f > n && f < i;
366
+ c.push({
367
+ day: d,
368
+ iso: f,
369
+ disabled: C,
370
+ isStart: I,
371
+ isEnd: M,
372
+ isBetween: L,
373
+ isOtherMonth: !0,
374
+ click: () => a(f)
347
375
  });
348
376
  }
349
377
  return o(
350
378
  { class: "grid grid-cols-7 gap-1" },
351
379
  c.map(
352
- (d, u) => d ? It({
380
+ (d, f) => $t({
353
381
  day: d.day,
354
382
  iso: d.iso,
355
383
  disabled: d.disabled,
356
384
  isStart: d.isStart,
357
385
  isEnd: d.isEnd,
358
386
  isBetween: d.isBetween,
387
+ isOtherMonth: d.isOtherMonth,
359
388
  click: d.click
360
- }) : o({ class: "h-9" })
389
+ })
361
390
  )
362
391
  );
363
- }, Lt = f((e, t) => o({ class: "flex flex-auto flex-col" }, [
364
- Dt({
392
+ }, Nt = g((e, t) => o({ class: "flex flex-auto flex-col" }, [
393
+ Rt({
365
394
  onMonthClick: e.onMonthClick,
366
395
  onYearClick: e.onYearClick,
367
396
  next: e.next,
@@ -372,8 +401,8 @@ const j = ({ label: e, click: t }) => m(
372
401
  onSet: [
373
402
  "currentDate",
374
403
  () => [
375
- Ct(),
376
- Mt({
404
+ Pt(),
405
+ Wt({
377
406
  today: e.today,
378
407
  current: e.current,
379
408
  blockPriorDates: e.blockPriorDates,
@@ -382,10 +411,10 @@ const j = ({ label: e, click: t }) => m(
382
411
  ]
383
412
  ]
384
413
  })
385
- ])), Tt = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
414
+ ])), jt = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
386
415
  { class: "grid grid-cols-3 gap-2" },
387
- $.monthNames.map(
388
- (a, n) => m(
416
+ F.monthNames.map(
417
+ (a, n) => p(
389
418
  {
390
419
  click: (i) => {
391
420
  i.preventDefault(), i.stopPropagation(), s(n);
@@ -396,30 +425,30 @@ const j = ({ label: e, click: t }) => m(
396
425
  a.substring(0, 3)
397
426
  )
398
427
  )
399
- ), Bt = ({ start: e, end: t, selecting: s, onSelectStart: a, onSelectEnd: n }) => o({ class: "flex space-x-2 mb-4" }, [
400
- w("selecting", (i) => m({
428
+ ), zt = ({ start: e, end: t, selecting: s, onSelectStart: a, onSelectEnd: n }) => o({ class: "flex space-x-2 mb-4" }, [
429
+ k("selecting", (i) => p({
401
430
  click: a,
402
431
  variant: i === "start" ? "primary" : "outline",
403
432
  class: "flex-1"
404
433
  }, [
405
- o({ class: "font-medium" }, A("current.start", "Start Date"))
434
+ o({ class: "font-medium" }, G("current.start", "Start Date"))
406
435
  ])),
407
- w("selecting", (i) => m({
436
+ k("selecting", (i) => p({
408
437
  click: n,
409
438
  variant: i === "end" ? "primary" : "outline",
410
439
  class: "flex-1"
411
440
  }, [
412
- o({ class: "font-medium" }, A("current.end", "End Date"))
441
+ o({ class: "font-medium" }, G("current.end", "End Date"))
413
442
  ]))
414
- ]), A = (e, t) => [`[[${e}]]`, (s) => s == null ? t : Rt(s)], Rt = (e) => {
443
+ ]), G = (e, t) => [`[[${e}]]`, (s) => s == null ? t : Yt(s)], Yt = (e) => {
415
444
  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"];
416
445
  return `${s[t.getDay()]}, ${t.getDate()} ${a[t.getMonth()]}`;
417
- }, Pt = ({ currentYear: e, onSelect: t }) => {
446
+ }, At = ({ currentYear: e, onSelect: t }) => {
418
447
  const s = e - 50, a = Array.from({ length: 101 }, (n, i) => s + i);
419
448
  return o(
420
449
  { class: "grid grid-cols-4 gap-2 overflow-y-auto max-h-72" },
421
450
  a.map(
422
- (n) => m(
451
+ (n) => p(
423
452
  {
424
453
  click: (i) => {
425
454
  i.preventDefault(), i.stopPropagation(), t(n);
@@ -432,7 +461,7 @@ const j = ({ label: e, click: t }) => m(
432
461
  )
433
462
  );
434
463
  };
435
- class De extends g {
464
+ class Re extends m {
436
465
  /**
437
466
  * Declare compiler props.
438
467
  *
@@ -448,14 +477,14 @@ class De extends g {
448
477
  */
449
478
  setData() {
450
479
  const t = /* @__PURE__ */ new Date(), s = this.startDate ? /* @__PURE__ */ new Date(this.startDate + "T00:00:00") : t, a = s.getMonth(), n = s.getFullYear();
451
- return new L({
480
+ return new j({
452
481
  today: {
453
482
  date: t.getDate(),
454
483
  month: t.getMonth(),
455
484
  year: t.getFullYear()
456
485
  },
457
486
  monthName: this.getMonthName(a),
458
- currentData: `${s.getFullYear()}-${v(s.getMonth() + 1)}-${v(s.getDate())}`,
487
+ currentData: `${s.getFullYear()}-${R(s.getMonth() + 1)}-${R(s.getDate())}`,
459
488
  current: {
460
489
  date: t.getDate(),
461
490
  month: a,
@@ -473,7 +502,7 @@ class De extends g {
473
502
  * @returns {string}
474
503
  */
475
504
  getMonthName(t) {
476
- return $.monthNames[t];
505
+ return F.monthNames[t];
477
506
  }
478
507
  /**
479
508
  * Initialize component state.
@@ -496,7 +525,7 @@ class De extends g {
496
525
  if (this.data.selecting === "start") {
497
526
  this.data.current.start = t, this.data.current.end = null, this.data.selecting = "end";
498
527
  const s = new Date(t);
499
- this.setCurrent({
528
+ console.log(s.getMonth(), s.getFullYear(), s.getDate()), this.setCurrent({
500
529
  month: s.getMonth(),
501
530
  year: s.getFullYear(),
502
531
  date: s.getDate()
@@ -519,7 +548,7 @@ class De extends g {
519
548
  */
520
549
  setCurrent({ month: t, year: s, date: a = null }) {
521
550
  const n = this.data.current;
522
- 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)}`;
551
+ 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}-${R(t + 1)}-${R(n.date)}`;
523
552
  }
524
553
  /**
525
554
  * Render the range calendar.
@@ -529,17 +558,17 @@ class De extends g {
529
558
  render() {
530
559
  const { today: t, current: s, selecting: a } = this.data, { start: n, end: i } = s;
531
560
  return o({ class: "range-calendar bg-background border border-border rounded-lg shadow-md p-4 w-full max-w-sm" }, [
532
- Bt({
561
+ zt({
533
562
  start: n,
534
563
  end: i,
535
564
  selecting: a,
536
565
  onSelectStart: () => this.data.selecting = "start",
537
566
  onSelectEnd: () => this.data.selecting = "end"
538
567
  }),
539
- K("view", (l) => {
568
+ at("view", (l) => {
540
569
  switch (l) {
541
570
  case "months":
542
- return Tt(
571
+ return jt(
543
572
  {
544
573
  currentMonth: s.month,
545
574
  currentYear: s.year,
@@ -549,7 +578,7 @@ class De extends g {
549
578
  }
550
579
  );
551
580
  case "years":
552
- return Pt(
581
+ return At(
553
582
  {
554
583
  currentYear: s.year,
555
584
  onSelect: (r) => {
@@ -558,7 +587,7 @@ class De extends g {
558
587
  }
559
588
  );
560
589
  default:
561
- return Lt({
590
+ return Nt({
562
591
  monthName: this.data.monthName,
563
592
  year: s.year,
564
593
  today: t,
@@ -581,28 +610,28 @@ class De extends g {
581
610
  ]);
582
611
  }
583
612
  }
584
- const $t = (e, t) => {
613
+ const Ft = (e, t) => {
585
614
  const s = e.toggleAllSelectedRows();
586
615
  t.state.checked = !s;
587
- }, Wt = (e) => F({ class: `cursor-pointer py-3 px-4 text-base w-10 ${e.class || ""}` }, [
588
- G((t) => new ht({ class: "mr-2", onChange: (s, a) => $t(t, a) }))
589
- ]), Ot = ({ align: e, sortable: t, key: s, label: a, sort: n, class: i }) => {
616
+ }, Ht = (e) => J({ class: `cursor-pointer py-3 px-4 text-base w-10 ${e.class || ""}` }, [
617
+ nt((t) => new bt({ class: "mr-2", onChange: (s, a) => Ft(t, a) }))
618
+ ]), Et = ({ align: e, sortable: t, key: s, label: a, sort: n, class: i }) => {
590
619
  const l = e || "justify-start";
591
- return F({
620
+ return J({
592
621
  class: `cursor-pointer py-3 px-4 text-base ${i || ""}`,
593
622
  click: t && (() => n(s))
594
623
  }, [
595
624
  o({ class: `flex flex-auto w-full items-center ${l}` }, [
596
- C(a),
597
- t && J({ class: "ml-2", html: b.arrows.upDown })
625
+ $(a),
626
+ t && it({ class: "ml-2", html: v.arrows.upDown })
598
627
  ])
599
628
  ]);
600
- }, W = (e) => _([
601
- V({
629
+ }, H = (e) => ot([
630
+ lt({
602
631
  class: "text-muted-foreground border-b",
603
632
  map: [
604
633
  e.headers,
605
- (t) => t.label === "checkbox" ? Wt({ toggle: e.toggle }) : Ot({
634
+ (t) => t.label === "checkbox" ? Ht({ toggle: e.toggle }) : Et({
606
635
  align: t.align,
607
636
  sortable: t.sortable,
608
637
  key: t.key,
@@ -611,7 +640,7 @@ const $t = (e, t) => {
611
640
  })
612
641
  ]
613
642
  })
614
- ]), Nt = ({ key: e, rows: t, selectRow: s, rowItem: a, emptyState: n }) => new ot({
643
+ ]), Ut = ({ key: e, rows: t, selectRow: s, rowItem: a, emptyState: n }) => new gt({
615
644
  cache: "list",
616
645
  key: e,
617
646
  items: t,
@@ -619,7 +648,7 @@ const $t = (e, t) => {
619
648
  class: "divide-y divide-border",
620
649
  emptyState: n
621
650
  });
622
- class Q extends g {
651
+ class tt extends m {
623
652
  /**
624
653
  * Initializes component data.
625
654
  *
@@ -627,7 +656,7 @@ class Q extends g {
627
656
  */
628
657
  setData() {
629
658
  let t = this.rows && this.rows.length > 0;
630
- return (this.loadMoreItems || this.tableData) && !t && (t = null), new L({
659
+ return (this.loadMoreItems || this.tableData) && !t && (t = null), new j({
631
660
  selectedRows: [],
632
661
  // @ts-ignore
633
662
  hasItems: t,
@@ -690,14 +719,14 @@ class Q extends g {
690
719
  render() {
691
720
  const t = this.rows, s = this.border !== !1 ? "border" : "";
692
721
  return o({ class: "w-full flex flex-auto flex-col" }, [
693
- w("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
722
+ k("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
694
723
  o({ class: `w-full rounded-md ${s} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
695
- P({ class: "w-full" }, [
724
+ A({ class: "w-full" }, [
696
725
  // @ts-ignore
697
- this.headers && W({ headers: this.headers, sort: (a) => this.sortRows(a) }),
726
+ this.headers && H({ headers: this.headers, sort: (a) => this.sortRows(a) }),
698
727
  // @ts-ignore
699
728
  this.customHeader ?? null,
700
- Nt({
729
+ Ut({
701
730
  // @ts-ignore
702
731
  key: this.key,
703
732
  rows: t,
@@ -772,7 +801,7 @@ class Q extends g {
772
801
  this.data.selectedRows = [];
773
802
  }
774
803
  }
775
- const zt = (e) => new lt({
804
+ const Qt = (e) => new mt({
776
805
  cache: "list",
777
806
  loadMoreItems: e.loadMoreItems,
778
807
  offset: e.offset,
@@ -783,7 +812,7 @@ const zt = (e) => new lt({
783
812
  rowItem: (t) => e.rowItem(t, e.selectRow),
784
813
  class: "divide-y divide-border"
785
814
  });
786
- class Yt extends Q {
815
+ class Xt extends tt {
787
816
  /**
788
817
  * Renders the DataTable component.
789
818
  *
@@ -792,14 +821,14 @@ class Yt extends Q {
792
821
  render() {
793
822
  const t = this.rows, s = this.border !== !1 ? "border" : "";
794
823
  return o({ class: "w-full flex flex-auto flex-col" }, [
795
- w("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
824
+ k("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
796
825
  o({ class: `w-full rounded-md ${s} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
797
- P({ class: "w-full" }, [
826
+ A({ class: "w-full" }, [
798
827
  // @ts-ignore
799
- this.headers && W({ headers: this.headers, sort: (a) => this.sortRows(a) }),
828
+ this.headers && H({ headers: this.headers, sort: (a) => this.sortRows(a) }),
800
829
  // @ts-ignore
801
830
  this.customHeader ?? null,
802
- zt({
831
+ Qt({
803
832
  // @ts-ignore
804
833
  loadMoreItems: this.loadMoreItems,
805
834
  // @ts-ignore
@@ -831,7 +860,7 @@ class Yt extends Q {
831
860
  this.list.refresh();
832
861
  }
833
862
  }
834
- const Se = f((e) => new Yt(
863
+ const Oe = g((e) => new Xt(
835
864
  {
836
865
  cache: e.cache ?? "list",
837
866
  tableData: e.data,
@@ -847,7 +876,7 @@ const Se = f((e) => new Yt(
847
876
  border: e.border,
848
877
  emptyState: e.emptyState
849
878
  }
850
- )), jt = (e) => new rt({
879
+ )), qt = (e) => new pt({
851
880
  cache: "list",
852
881
  scrollContainer: e.scrollContainer,
853
882
  loadMoreItems: e.loadMoreItems,
@@ -859,7 +888,7 @@ const Se = f((e) => new Yt(
859
888
  rowItem: (t) => e.rowItem(t, e.selectRow),
860
889
  class: "divide-y divide-border"
861
890
  });
862
- class At extends Q {
891
+ class Kt extends tt {
863
892
  /**
864
893
  * Renders the DataTable component.
865
894
  *
@@ -868,14 +897,14 @@ class At extends Q {
868
897
  render() {
869
898
  const t = this.rows, s = this.border !== !1 ? "border" : "";
870
899
  return o({ class: "w-full flex flex-auto flex-col" }, [
871
- w("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
900
+ k("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
872
901
  o({ class: `w-full rounded-md ${s} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
873
- P({ class: "w-full" }, [
902
+ A({ class: "w-full" }, [
874
903
  // @ts-ignore
875
- this.headers && W({ headers: this.headers, sort: (a) => this.sortRows(a) }),
904
+ this.headers && H({ headers: this.headers, sort: (a) => this.sortRows(a) }),
876
905
  // @ts-ignore
877
906
  this.customHeader ?? null,
878
- jt({
907
+ qt({
879
908
  // @ts-ignore
880
909
  scrollContainer: this.scrollContainer,
881
910
  // @ts-ignore
@@ -909,7 +938,7 @@ class At extends Q {
909
938
  this.list.refresh();
910
939
  }
911
940
  }
912
- const Ce = f((e) => new At(
941
+ const Pe = g((e) => new Kt(
913
942
  {
914
943
  cache: e.cache ?? "list",
915
944
  tableData: e.data,
@@ -926,45 +955,45 @@ const Ce = f((e) => new At(
926
955
  border: e.border,
927
956
  emptyState: e.emptyState
928
957
  }
929
- )), Ft = f(({ name: e, email: t }) => o({ class: "min-w-0 flex-auto" }, [
930
- x({ class: "text-base font-semibold leading-6 m-0" }, e),
931
- x({ class: "truncate text-sm leading-5 text-muted-foreground m-0" }, t)
932
- ])), Ht = () => o({ class: "flex items-center gap-x-1.5" }, [
958
+ )), Gt = g(({ name: e, email: t }) => o({ class: "min-w-0 flex-auto" }, [
959
+ T({ class: "text-base font-semibold leading-6 m-0" }, e),
960
+ T({ class: "truncate text-sm leading-5 text-muted-foreground m-0" }, t)
961
+ ])), Jt = () => o({ class: "flex items-center gap-x-1.5" }, [
933
962
  o({ class: "flex-none rounded-full bg-emerald-500/20 p-1" }, [
934
963
  o({ class: "h-1.5 w-1.5 rounded-full bg-emerald-500" })
935
964
  ]),
936
- x({ class: "text-xs leading-5 text-gray-500" }, "Online")
937
- ]), Ut = (e) => x({ class: "text-xs leading-5 text-muted-foreground" }, [
938
- C("Last seen "),
939
- Z({ datetime: e }, "3h ago")
940
- ]), 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" }, [
941
- x({ class: "text-sm leading-6 m-0" }, e),
942
- Et(s, t)
943
- ])), 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" }, [
965
+ T({ class: "text-xs leading-5 text-gray-500" }, "Online")
966
+ ]), _t = (e) => T({ class: "text-xs leading-5 text-muted-foreground" }, [
967
+ $("Last seen "),
968
+ rt({ datetime: e }, "3h ago")
969
+ ]), Vt = (e, t) => e === "online" ? Jt() : _t(t), Zt = g(({ role: e, lastSeen: t, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
970
+ T({ class: "text-sm leading-6 m-0" }, e),
971
+ Vt(s, t)
972
+ ])), te = (e) => e.split(" ").map((s) => s[0]).join(""), ee = g((e) => W({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
944
973
  o({ class: "flex min-w-0 gap-x-4" }, [
945
- nt({ src: e.image, alt: e.name, fallbackText: Xt(e.name) }),
946
- Ft({ name: e.name, email: e.email })
974
+ ut({ src: e.image, alt: e.name, fallbackText: te(e.name) }),
975
+ Gt({ name: e.name, email: e.email })
947
976
  ]),
948
- Qt({
977
+ Zt({
949
978
  role: e.role,
950
979
  lastSeen: e.lastSeen,
951
980
  status: e.status
952
981
  })
953
- ])), Ie = f((e) => new ct({
982
+ ])), $e = g((e) => new yt({
954
983
  cache: "list",
955
984
  key: "name",
956
985
  items: e.users,
957
986
  role: "list",
958
987
  class: "divide-y divide-border",
959
- rowItem: qt
960
- })), 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({
988
+ rowItem: ee
989
+ })), se = (e, t) => t.includes(e), ae = (e, t, s) => e.exact ? s === t : se(t, s), ne = ({ text: e, href: t, exact: s, hidden: a }) => new V({
961
990
  text: e,
962
991
  href: t,
963
992
  exact: s,
964
993
  dataSet: ["selected", ["state", !0, "active"]],
965
994
  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`
966
995
  });
967
- class Me extends g {
996
+ class We extends m {
968
997
  /**
969
998
  * This will declare the props for the compiler.
970
999
  *
@@ -985,14 +1014,14 @@ class Me extends g {
985
1014
  * @returns {object}
986
1015
  */
987
1016
  render() {
988
- return M(
1017
+ return N(
989
1018
  { class: `flex items-center justify-center p-2 text-muted-foreground rounded-md ${this.class || ""}` },
990
1019
  [
991
- k({
1020
+ B({
992
1021
  class: "flex space-x-4",
993
1022
  map: [this.options, (t) => this.addLink(t)],
994
1023
  watch: {
995
- value: ["[[path]]", D.data],
1024
+ value: ["[[path]]", O.data],
996
1025
  callBack: this.updateLinks.bind(this)
997
1026
  }
998
1027
  })
@@ -1005,7 +1034,7 @@ class Me extends g {
1005
1034
  * @returns {void}
1006
1035
  */
1007
1036
  afterSetup() {
1008
- const t = D.data.path;
1037
+ const t = O.data.path;
1009
1038
  this.updateLinks(t);
1010
1039
  }
1011
1040
  /**
@@ -1020,7 +1049,7 @@ class Me extends g {
1020
1049
  for (const a of this.links) {
1021
1050
  if (!a.rendered)
1022
1051
  continue;
1023
- Gt(a, a.getLinkPath(), t) ? (this.updateLink(a, !0), s = !0) : this.updateLink(a, !1);
1052
+ ae(a, a.getLinkPath(), t) ? (this.updateLink(a, !0), s = !0) : this.updateLink(a, !1);
1024
1053
  }
1025
1054
  !s && this.links[0] && this.updateLink(this.links[0], !0);
1026
1055
  }
@@ -1050,7 +1079,7 @@ class Me extends g {
1050
1079
  * @returns {object}
1051
1080
  */
1052
1081
  addLink({ label: t, href: s, exact: a, hidden: n }) {
1053
- const i = Jt({ text: t, href: s, exact: a, hidden: n });
1082
+ const i = ne({ text: t, href: s, exact: a, hidden: n });
1054
1083
  return this.links.push(i), i;
1055
1084
  }
1056
1085
  /**
@@ -1062,13 +1091,13 @@ class Me extends g {
1062
1091
  this.links = [];
1063
1092
  }
1064
1093
  }
1065
- const Le = f((e) => {
1094
+ const Ne = g((e) => {
1066
1095
  const t = e.margin || "m-4 ml-0";
1067
1096
  return e.allowHistory = e.allowHistory === !0, o({ class: `flex-none ${t}` }, [
1068
- m({ variant: "back", class: "ghost", ...e })
1097
+ p({ variant: "back", class: "ghost", ...e })
1069
1098
  ]);
1070
1099
  });
1071
- class X extends g {
1100
+ class et extends m {
1072
1101
  /**
1073
1102
  * This will declare the props for the compiler.
1074
1103
  *
@@ -1155,13 +1184,13 @@ class X extends g {
1155
1184
  return this.children;
1156
1185
  }
1157
1186
  }
1158
- E.addType("dockableOverlay", (e) => {
1187
+ Z.addType("dockableOverlay", (e) => {
1159
1188
  if (!e)
1160
1189
  return;
1161
1190
  const t = e.component;
1162
1191
  t && t.rendered === !0 && t.state.docked === !1 && t.destroy();
1163
1192
  });
1164
- class Te extends X {
1193
+ class je extends et {
1165
1194
  /**
1166
1195
  * This will stop presistence.
1167
1196
  *
@@ -1227,7 +1256,7 @@ class Te extends X {
1227
1256
  * @returns {void}
1228
1257
  */
1229
1258
  afterSetup() {
1230
- E.add(
1259
+ Z.add(
1231
1260
  this.container,
1232
1261
  "dockableOverlay",
1233
1262
  {
@@ -1270,7 +1299,7 @@ class Te extends X {
1270
1299
  document.documentElement.style.overflowY = "auto";
1271
1300
  }
1272
1301
  }
1273
- class Be extends X {
1302
+ class ze extends et {
1274
1303
  /**
1275
1304
  * This will get the overlay type.
1276
1305
  *
@@ -1289,7 +1318,7 @@ class Be extends X {
1289
1318
  this.container = t, this.initialize();
1290
1319
  }
1291
1320
  }
1292
- const _t = f(({ index: e, click: t, state: s }, a) => I({
1321
+ const ie = g(({ index: e, click: t, state: s }, a) => W({
1293
1322
  class: "p-2 cursor-pointer hover:bg-muted/50",
1294
1323
  onState: [
1295
1324
  [s, "selectedIndex", {
@@ -1298,11 +1327,11 @@ const _t = f(({ index: e, click: t, state: s }, a) => I({
1298
1327
  }]
1299
1328
  ],
1300
1329
  click: () => t(e)
1301
- }, a)), Vt = f(({ selectOption: e, state: t }) => k({
1330
+ }, a)), oe = g(({ selectOption: e, state: t }) => B({
1302
1331
  class: "border rounded-md list-none m-0 p-0 max-h-[400px] overflow-y-auto",
1303
- for: ["filteredOptions", (s, a) => _t({ index: a, click: e, state: t }, s.label)]
1304
- })), Zt = f((e) => o({ class: "relative flex items-center" }, [
1305
- ut({
1332
+ for: ["filteredOptions", (s, a) => ie({ index: a, click: e, state: t }, s.label)]
1333
+ })), le = g((e) => o({ class: "relative flex items-center" }, [
1334
+ xt({
1306
1335
  cache: "input",
1307
1336
  class: e.class ?? "",
1308
1337
  placeholder: e.placeholder ?? "Search...",
@@ -1318,22 +1347,22 @@ const _t = f(({ index: e, click: t, state: s }, a) => I({
1318
1347
  ]
1319
1348
  }),
1320
1349
  e.icon && o({ class: "absolute flex right-0 mr-2" }, [
1321
- st(e.icon)
1350
+ ht(e.icon)
1322
1351
  ])
1323
- ])), te = (e) => o({
1352
+ ])), re = (e) => o({
1324
1353
  class: "relative flex fle-auto flex-col",
1325
1354
  onState: ["open", (t, s, a) => {
1326
1355
  if (t)
1327
- return new it({
1356
+ return new ft({
1328
1357
  cache: "dropdown",
1329
1358
  parent: a,
1330
1359
  button: a.input,
1331
1360
  size: "xl"
1332
1361
  }, [
1333
- Vt(e)
1362
+ oe(e)
1334
1363
  ]);
1335
1364
  }]
1336
- }), Re = et(
1365
+ }), Ye = dt(
1337
1366
  {
1338
1367
  /**
1339
1368
  * This will set up the data object.
@@ -1342,7 +1371,7 @@ const _t = f(({ index: e, click: t, state: s }, a) => I({
1342
1371
  */
1343
1372
  setData() {
1344
1373
  const e = this.options || [];
1345
- return new L({
1374
+ return new j({
1346
1375
  options: e,
1347
1376
  filteredOptions: e
1348
1377
  });
@@ -1430,7 +1459,7 @@ const _t = f(({ index: e, click: t, state: s }, a) => I({
1430
1459
  */
1431
1460
  render() {
1432
1461
  return o({ class: "relative w-full max-w-md" }, [
1433
- Zt({
1462
+ le({
1434
1463
  // @ts-ignore
1435
1464
  state: this.state,
1436
1465
  // @ts-ignore
@@ -1442,7 +1471,7 @@ const _t = f(({ index: e, click: t, state: s }, a) => I({
1442
1471
  // @ts-ignore
1443
1472
  handleKeyDown: this.handleKeyDown.bind(this)
1444
1473
  }),
1445
- te({
1474
+ re({
1446
1475
  // @ts-ignore
1447
1476
  state: this.state,
1448
1477
  // @ts-ignore
@@ -1453,22 +1482,22 @@ const _t = f(({ index: e, click: t, state: s }, a) => I({
1453
1482
  ]);
1454
1483
  }
1455
1484
  }
1456
- ), ee = (e) => I(
1485
+ ), ce = (e) => W(
1457
1486
  {
1458
1487
  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",
1459
1488
  dataSet: ["selected", ["state", e.value, "active"]]
1460
1489
  },
1461
1490
  [
1462
- S({
1491
+ P({
1463
1492
  class: "flex flex-auto justify-center items-center px-3 py-1.5 rounded-md",
1464
1493
  onSet: ["selected", { selected: e.value }],
1465
1494
  click: (t) => e.callBack(e.value)
1466
1495
  }, e.label)
1467
1496
  ]
1468
- ), 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}` }, [
1469
- k({ class: "flex flex-auto flex-row", map: [e.options, (t) => se(t, e.callBack)] })
1497
+ ), de = (e, t) => (e.callBack = t, ce(e)), he = (e) => N({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${e.class}` }, [
1498
+ B({ class: "flex flex-auto flex-row", map: [e.options, (t) => de(t, e.callBack)] })
1470
1499
  ]);
1471
- class Pe extends g {
1500
+ class Ae extends m {
1472
1501
  /**
1473
1502
  * This will declare the props for the compiler.
1474
1503
  *
@@ -1485,12 +1514,12 @@ class Pe extends g {
1485
1514
  render() {
1486
1515
  const t = this.select.bind(this);
1487
1516
  return o({ class: "" }, [
1488
- ae({
1517
+ he({
1489
1518
  class: this.class,
1490
1519
  options: this.options,
1491
1520
  callBack: t
1492
1521
  }),
1493
- H({
1522
+ _({
1494
1523
  class: "tab-content",
1495
1524
  onState: ["selected", this.updateContent.bind(this)]
1496
1525
  })
@@ -1556,23 +1585,23 @@ class Pe extends g {
1556
1585
  };
1557
1586
  }
1558
1587
  }
1559
- const ne = (e) => I(
1588
+ const ue = (e) => W(
1560
1589
  {
1561
1590
  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",
1562
1591
  dataSet: ["selected", ["state", e.value, "active"]]
1563
1592
  },
1564
1593
  [
1565
- S({
1594
+ P({
1566
1595
  class: "flex flex-auto justify-center items-center px-3 py-1.5 rounded-md disabled:opacity-50 disabled:cursor-not-allowed",
1567
1596
  onSet: ["selected", { selected: e.value }],
1568
1597
  click: (t) => e.callBack(e.value),
1569
1598
  disabled: e.disabled
1570
1599
  }, e.label)
1571
1600
  ]
1572
- ), 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}` }, [
1573
- k({ class: "flex flex-auto flex-row", map: [e.options, (t) => ie(t, e.callBack)] })
1601
+ ), fe = (e, t) => (e.callBack = t, ue(e)), ge = (e) => N({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${e.class}` }, [
1602
+ B({ class: "flex flex-auto flex-row", map: [e.options, (t) => fe(t, e.callBack)] })
1574
1603
  ]);
1575
- class $e extends g {
1604
+ class Fe extends m {
1576
1605
  /**
1577
1606
  * This will declare the props for the compiler.
1578
1607
  *
@@ -1588,7 +1617,7 @@ class $e extends g {
1588
1617
  */
1589
1618
  render() {
1590
1619
  const t = this.select.bind(this);
1591
- return oe({
1620
+ return ge({
1592
1621
  class: this.class,
1593
1622
  options: this.options,
1594
1623
  callBack: t
@@ -1615,17 +1644,17 @@ class $e extends g {
1615
1644
  };
1616
1645
  }
1617
1646
  }
1618
- const le = (e, t) => new RegExp(`${e}($|/|\\.).*`).test(t), re = (e, t) => {
1647
+ const me = (e, t) => new RegExp(`${e}($|/|\\.).*`).test(t), pe = (e, t) => {
1619
1648
  const s = e.getLinkPath();
1620
- return e.exact ? t === s : le(s, t);
1621
- }, ce = ({ text: e, href: t, exact: s }) => new U({
1649
+ return e.exact ? t === s : me(s, t);
1650
+ }, ye = ({ text: e, href: t, exact: s }) => new V({
1622
1651
  text: e,
1623
1652
  href: t,
1624
1653
  exact: s,
1625
1654
  dataSet: ["selected", ["state", !0, "active"]],
1626
1655
  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"
1627
1656
  });
1628
- class de extends g {
1657
+ class we extends m {
1629
1658
  /**
1630
1659
  * This will declare the props for the compiler.
1631
1660
  *
@@ -1646,12 +1675,12 @@ class de extends g {
1646
1675
  * @returns {object}
1647
1676
  */
1648
1677
  render() {
1649
- return M({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${this.class}` }, [
1650
- k({
1678
+ return N({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${this.class}` }, [
1679
+ B({
1651
1680
  class: "flex flex-auto flex-row",
1652
1681
  map: [this.options, (t) => this.addLink(t)],
1653
1682
  watch: {
1654
- value: ["[[path]]", D.data],
1683
+ value: ["[[path]]", O.data],
1655
1684
  callBack: this.updateLinks.bind(this)
1656
1685
  }
1657
1686
  })
@@ -1663,7 +1692,7 @@ class de extends g {
1663
1692
  * @returns {void}
1664
1693
  */
1665
1694
  afterSetup() {
1666
- const t = D.data.path;
1695
+ const t = O.data.path;
1667
1696
  this.updateLinks(t);
1668
1697
  }
1669
1698
  /**
@@ -1676,7 +1705,7 @@ class de extends g {
1676
1705
  let s = !1, a = this.links[0];
1677
1706
  this.deactivateAllLinks();
1678
1707
  for (const n of this.links)
1679
- if (n.rendered !== !1 && (s = re(n, t), s === !0)) {
1708
+ if (n.rendered !== !1 && (s = pe(n, t), s === !0)) {
1680
1709
  this.updateLink(n, !0);
1681
1710
  break;
1682
1711
  }
@@ -1708,7 +1737,7 @@ class de extends g {
1708
1737
  * @returns {object}
1709
1738
  */
1710
1739
  addLink({ label: t, href: s, exact: a }) {
1711
- const n = ce({ text: t, href: s, exact: a });
1740
+ const n = ye({ text: t, href: s, exact: a });
1712
1741
  return this.links.push(n), n;
1713
1742
  }
1714
1743
  /**
@@ -1720,7 +1749,7 @@ class de extends g {
1720
1749
  this.links = [];
1721
1750
  }
1722
1751
  }
1723
- class We extends g {
1752
+ class He extends m {
1724
1753
  /**
1725
1754
  * This will declare the props for the compiler.
1726
1755
  *
@@ -1736,11 +1765,11 @@ class We extends g {
1736
1765
  */
1737
1766
  render() {
1738
1767
  return o({ class: "tab-panel" }, [
1739
- new de({
1768
+ new we({
1740
1769
  class: this.class,
1741
1770
  options: this.options
1742
1771
  }),
1743
- H({
1772
+ _({
1744
1773
  class: "tab-content",
1745
1774
  switch: this.addGroup()
1746
1775
  })
@@ -1766,7 +1795,7 @@ class We extends g {
1766
1795
  return s;
1767
1796
  }
1768
1797
  }
1769
- class he extends g {
1798
+ class be extends m {
1770
1799
  /**
1771
1800
  * Runs before rendering, sets up defaults, a timer for drawing,
1772
1801
  * and basic canvas properties.
@@ -1776,7 +1805,7 @@ class he extends g {
1776
1805
  onCreated() {
1777
1806
  this.lineWidth = this.lineWidth || 3, this.lineColor = this.lineColor || "#000000", this.canvas = null, this.ctx = null, this.status = "stopped";
1778
1807
  const t = 1e3 / 60;
1779
- 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";
1808
+ this.timer = new wt(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";
1780
1809
  }
1781
1810
  /**
1782
1811
  * Renders a <canvas> element.
@@ -1784,7 +1813,7 @@ class he extends g {
1784
1813
  * @returns {object} Layout definition for the canvas.
1785
1814
  */
1786
1815
  render() {
1787
- return tt({
1816
+ return ct({
1788
1817
  style: "touch-action: none; -webkit-user-select: none; -webkit-touch-callout: none;"
1789
1818
  });
1790
1819
  }
@@ -1833,8 +1862,8 @@ class he extends g {
1833
1862
  let s, a;
1834
1863
  const n = this.canvas, i = n.width / parseInt(n.style.width), l = n.getBoundingClientRect();
1835
1864
  if (t.touches && t.touches.length) {
1836
- const d = t.touches[0];
1837
- s = d.clientX, a = d.clientY;
1865
+ const h = t.touches[0];
1866
+ s = h.clientX, a = h.clientY;
1838
1867
  } else
1839
1868
  s = t.x || t.clientX, a = t.y || t.clientY;
1840
1869
  const r = parseInt((s - l.left) * i), c = parseInt((a - l.top) * i);
@@ -1881,8 +1910,8 @@ class he extends g {
1881
1910
  const { canvas: t, ctx: s } = this, a = t.toDataURL();
1882
1911
  if (this.scale(), this.setupBackground(s), a !== "data:,") {
1883
1912
  const n = new globalThis.Image();
1884
- O.on("load", n, function i() {
1885
- s.drawImage(n, 0, 0), O.off("load", n, i);
1913
+ U.on("load", n, function i() {
1914
+ s.drawImage(n, 0, 0), U.off("load", n, i);
1886
1915
  }), n.src = a;
1887
1916
  }
1888
1917
  this.draw();
@@ -1902,7 +1931,7 @@ class he extends g {
1902
1931
  * @returns {void}
1903
1932
  */
1904
1933
  noScaleResize() {
1905
- const t = N.getSize(container);
1934
+ const t = Q.getSize(container);
1906
1935
  this.width = canvas.width = t.width, this.height = canvas.height = t.height;
1907
1936
  }
1908
1937
  /**
@@ -1912,11 +1941,11 @@ class he extends g {
1912
1941
  * @returns {void}
1913
1942
  */
1914
1943
  scale() {
1915
- const t = this.canvas, s = this.container, a = N.getSize(s), n = this.targetSize, i = n.width, l = n.height;
1944
+ const t = this.canvas, s = this.container, a = Q.getSize(s), n = this.targetSize, i = n.width, l = n.height;
1916
1945
  let r = i + "px", c = l + "px";
1917
1946
  if (this.width = t.width = i, this.height = t.height = l, a.width !== 0 && a.height !== 0) {
1918
- const d = a.width, u = a.height, h = d / i, p = u / l, y = Math.min(h, p);
1919
- r = i * y + "px", c = l * y + "px";
1947
+ const h = a.width, y = a.height, u = h / i, b = y / l, x = Math.min(u, b);
1948
+ r = i * x + "px", c = l * x + "px";
1920
1949
  }
1921
1950
  t.style.width = r, t.style.height = c;
1922
1951
  }
@@ -1992,7 +2021,7 @@ class he extends g {
1992
2021
  this.timer.stop(), this.status = "stopped";
1993
2022
  }
1994
2023
  }
1995
- class Oe extends g {
2024
+ class Ee extends m {
1996
2025
  /**
1997
2026
  * Sets up default properties for the signature panel.
1998
2027
  *
@@ -2009,19 +2038,19 @@ class Oe extends g {
2009
2038
  */
2010
2039
  render() {
2011
2040
  return o({ class: "signature-panel relative flex flex-auto overflow-hidden select-none" }, [
2012
- ft({
2041
+ kt({
2013
2042
  cache: "hiddenInput",
2014
2043
  required: !0,
2015
2044
  bind: this.path + ".data"
2016
2045
  }),
2017
2046
  o({ class: "absolute top-2 right-2" }, [
2018
- m({
2047
+ p({
2019
2048
  variant: "icon",
2020
- icon: b.circleX,
2049
+ icon: v.circleX,
2021
2050
  click: this.reset.bind(this)
2022
2051
  })
2023
2052
  ]),
2024
- new he({
2053
+ new be({
2025
2054
  cache: "canvasLayer",
2026
2055
  margin: this.margin,
2027
2056
  targetSize: this.targetSize,
@@ -2071,37 +2100,37 @@ class Oe extends g {
2071
2100
  }
2072
2101
  }
2073
2102
  export {
2074
- Le as B,
2075
- Wt as C,
2076
- Nt as D,
2077
- Ot as H,
2078
- Be as I,
2079
- Me as N,
2080
- X as O,
2081
- be as P,
2082
- De as R,
2083
- Ce as S,
2084
- W as T,
2085
- qt as U,
2086
- ve as W,
2087
- yt as a,
2088
- z as b,
2089
- mt as c,
2090
- xe as d,
2091
- ke as e,
2092
- bt as f,
2093
- pt as g,
2094
- kt as h,
2095
- vt as i,
2096
- Q as j,
2097
- Se as k,
2098
- Ie as l,
2099
- Te as m,
2100
- Re as n,
2101
- Zt as o,
2102
- Pe as p,
2103
- $e as q,
2104
- de as r,
2105
- We as s,
2106
- Oe as t
2103
+ Ne as B,
2104
+ Ht as C,
2105
+ Ut as D,
2106
+ Et as H,
2107
+ ze as I,
2108
+ We as N,
2109
+ et as O,
2110
+ Me as P,
2111
+ Re as R,
2112
+ Pe as S,
2113
+ H as T,
2114
+ ee as U,
2115
+ Be as W,
2116
+ Ct as a,
2117
+ X as b,
2118
+ Dt as c,
2119
+ Le as d,
2120
+ Te as e,
2121
+ Mt as f,
2122
+ St as g,
2123
+ Tt as h,
2124
+ Bt as i,
2125
+ tt as j,
2126
+ Oe as k,
2127
+ $e as l,
2128
+ je as m,
2129
+ Ye as n,
2130
+ le as o,
2131
+ Ae as p,
2132
+ Fe as q,
2133
+ we as r,
2134
+ He as s,
2135
+ Ee as t
2107
2136
  };
@@ -1,9 +1,10 @@
1
- export function RangeDayCell({ day, iso, disabled, isStart, isEnd, isBetween, click }: {
1
+ export function RangeDayCell({ day, iso, disabled, isStart, isEnd, isBetween, isOtherMonth, click }: {
2
2
  day: number;
3
3
  iso: string;
4
4
  disabled: boolean;
5
5
  isStart: boolean;
6
6
  isEnd: boolean;
7
7
  isBetween: boolean;
8
+ isOtherMonth: boolean;
8
9
  click: Function;
9
10
  }): object;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/ui",
3
- "version": "1.0.229",
3
+ "version": "1.0.231",
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": {