@base-framework/ui 1.0.273 → 1.0.275

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.
@@ -1,22 +1,22 @@
1
- import { Button as k, Div as o, On as v, Span as D, Th as O, UseParent as F, I as E, Thead as Q, Tr as X, Table as L, P as p, Li as S, Time as q, Nav as I, Ul as w, Section as z, Canvas as K } from "@base-framework/atoms";
2
- import { Atom as d, Component as h, Data as C, DateTime as G, router as y, NavLink as $, DataTracker as N, Jot as V, base as M, Dom as R } from "@base-framework/base";
3
- import { B as T, I as _ } from "./buttons-BKLL4I6r.js";
4
- import { Icons as x } from "./icons.es.js";
5
- import { TableBody as J, DataTableBody as Z, ScrollableTableBody as ee, List as te, IntervalTimer as se } from "@base-framework/organisms";
6
- import { C as ae, I as ie, H as ne } from "./inputs-DYxmO1rQ.js";
7
- import { A as oe, P as le } from "./range-calendar-DW0cMOJy.js";
1
+ import { Button as x, Div as o, On as v, Span as D, Th as z, UseParent as X, I as q, Thead as K, Tr as $, Td as _, Table as C, P as w, Li as S, Time as G, Nav as I, Ul as p, Section as N, Canvas as V } from "@base-framework/atoms";
2
+ import { Atom as d, Component as h, Data as L, DateTime as J, router as k, NavLink as A, DataTracker as j, Jot as Z, base as M, Dom as W } from "@base-framework/base";
3
+ import { B as T, I as ee } from "./buttons-BKLL4I6r.js";
4
+ import { Icons as y } from "./icons.es.js";
5
+ import { TableBody as B, DataTableBody as te, ScrollableTableBody as U, List as se, IntervalTimer as ae } from "@base-framework/organisms";
6
+ import { C as ie, S as ne, I as oe, H as le } from "./skeleton-CLm2c9Bc.js";
7
+ import { A as re, P as ce } from "./range-calendar-DW0cMOJy.js";
8
8
  d((t, e) => ({
9
9
  class: "flex items-center px-4 py-2",
10
10
  ...t,
11
11
  children: e
12
12
  }));
13
- d(({ value: t, label: e }) => k({
13
+ d(({ value: t, label: e }) => x({
14
14
  class: "inline-flex flex-auto items-center justify-center whitespace-nowrap rounded-md px-8 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",
15
15
  onState: ["performance", { active: t }],
16
16
  dataSet: ["performance", ["state", t, "active"]],
17
17
  click: (s, { state: a }) => a.performance = t
18
18
  }, e));
19
- class at extends h {
19
+ class ot extends h {
20
20
  /**
21
21
  * This will declare the props for the compiler.
22
22
  *
@@ -34,36 +34,36 @@ class at extends h {
34
34
  return o({ class: this.class || "" }, this.children);
35
35
  }
36
36
  }
37
- const re = (t) => {
37
+ const de = (t) => {
38
38
  const e = new Date(t, 11, 31), s = new Date(t, 0, 1);
39
39
  return e.getDay() === 4 || // December 31 is a Thursday
40
40
  s.getDay() === 4;
41
- }, ce = (t) => {
41
+ }, he = (t) => {
42
42
  const e = new Date(t.valueOf()), s = (e.getDay() + 6) % 7;
43
43
  e.setDate(e.getDate() - s + 3);
44
44
  const a = e.getFullYear(), i = new Date(a, 0, 4);
45
45
  i.setDate(i.getDate() - (i.getDay() + 6) % 7);
46
46
  const n = Math.ceil((e - i) / 6048e5) + 1;
47
- return n > 52 && !re(a) ? {
47
+ return n > 52 && !de(a) ? {
48
48
  weekNumber: 1,
49
49
  year: a + 1
50
50
  } : {
51
51
  weekNumber: n,
52
52
  year: a
53
53
  };
54
- }, de = (t, e, s) => {
54
+ }, ue = (t, e, s) => {
55
55
  if (s === 0) return [];
56
56
  const a = new Date(t, e, 0).getDate();
57
57
  return Array.from(
58
58
  { length: s },
59
59
  (i, n) => new Date(t, e - 1, a - s + n + 1)
60
60
  );
61
- }, he = (t, e, s) => Array.from({ length: s }, (a, i) => new Date(t, e + 1, i + 1)), W = (t, e) => {
61
+ }, fe = (t, e, s) => Array.from({ length: s }, (a, i) => new Date(t, e + 1, i + 1)), P = (t, e) => {
62
62
  const s = new Date(e, 0, 4), a = (s.getDay() + 6) % 7, i = new Date(s);
63
63
  i.setDate(s.getDate() - a);
64
64
  const n = new Date(i);
65
65
  return n.setDate(i.getDate() + (t - 1) * 7), n;
66
- }, it = (t, e) => {
66
+ }, lt = (t, e) => {
67
67
  const s = new Date(t, e, 1).getDay(), a = new Date(t, e + 1, 0).getDate(), i = [];
68
68
  let n = [];
69
69
  for (let l = 1 - s; l <= a; l++) {
@@ -71,18 +71,18 @@ const re = (t) => {
71
71
  n.push(l > 0 ? u : null), (n.length === 7 || l === a) && (i.push([...n]), n = []);
72
72
  }
73
73
  return i;
74
- }, nt = (t, e) => {
74
+ }, rt = (t, e) => {
75
75
  const s = new Date(t, e + 1, 0).getDate(), a = [];
76
76
  let i = [];
77
77
  for (let n = 1; n <= s; n++)
78
78
  i.push(new Date(t, e, n)), i.length === 7 && (a.push(i), i = []);
79
79
  return i.length > 0 && a.push(i), a;
80
- }, ue = (t, e, s) => {
80
+ }, ge = (t, e, s) => {
81
81
  const a = /* @__PURE__ */ new Date();
82
82
  return a.getDate() === t && a.getMonth() === e && a.getFullYear() === s;
83
- }, fe = ({ day: t, month: e, year: s, weekNumber: a, selectWeek: i }) => {
84
- const n = ue(t, e, s);
85
- return k({
83
+ }, me = ({ day: t, month: e, year: s, weekNumber: a, selectWeek: i }) => {
84
+ const n = ge(t, e, s);
85
+ return x({
86
86
  text: t || "",
87
87
  disabled: !t,
88
88
  class: `
@@ -92,19 +92,19 @@ const re = (t) => {
92
92
  `,
93
93
  click: () => i(a, s)
94
94
  });
95
- }, ge = (t, e) => {
96
- const s = new Date(t, e, 1).getDay(), a = new Date(t, e + 1, 0).getDate(), i = de(t, e, s), n = Array.from({ length: a }, (r, m) => new Date(t, e, m + 1)), l = (i.length + n.length) % 7, u = l === 0 ? 0 : 7 - l, c = he(t, e, u), f = [...i, ...n, ...c], g = [];
95
+ }, we = (t, e) => {
96
+ const s = new Date(t, e, 1).getDay(), a = new Date(t, e + 1, 0).getDate(), i = ue(t, e, s), n = Array.from({ length: a }, (r, m) => new Date(t, e, m + 1)), l = (i.length + n.length) % 7, u = l === 0 ? 0 : 7 - l, c = fe(t, e, u), f = [...i, ...n, ...c], g = [];
97
97
  for (let r = 0; r < f.length; r += 7) {
98
- const m = f.slice(r, r + 7), b = m.find((H) => H) || new Date(t, e, 1), { weekNumber: U, year: Y } = ce(b);
98
+ const m = f.slice(r, r + 7), b = m.find((Q) => Q) || new Date(t, e, 1), { weekNumber: F, year: E } = he(b);
99
99
  g.push({
100
- weekNumber: U,
101
- year: Y,
100
+ weekNumber: F,
101
+ year: E,
102
102
  days: m
103
103
  });
104
104
  }
105
105
  return g;
106
- }, me = ({ selectWeek: t }) => v("month", (e, s, { data: a }) => {
107
- const { year: i, month: n, currentDate: l } = a, u = ge(i, n);
106
+ }, pe = ({ selectWeek: t }) => v("month", (e, s, { data: a }) => {
107
+ const { year: i, month: n, currentDate: l } = a, u = we(i, n);
108
108
  return o(
109
109
  { class: "grid grid-cols-8 gap-1 text-sm px-4 py-2" },
110
110
  [
@@ -141,7 +141,7 @@ const re = (t) => {
141
141
  o(
142
142
  { class: "grid grid-cols-7 col-span-7 text-center" },
143
143
  f.map(
144
- (r) => fe({
144
+ (r) => me({
145
145
  year: (r == null ? void 0 : r.getFullYear()) || null,
146
146
  month: (r == null ? void 0 : r.getMonth()) || null,
147
147
  day: (r == null ? void 0 : r.getDate()) || null,
@@ -154,7 +154,7 @@ const re = (t) => {
154
154
  )
155
155
  ]
156
156
  );
157
- }), P = ({ label: t, click: e }) => T(
157
+ }), O = ({ label: t, click: e }) => T(
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 re = (t) => {
165
165
  click: e,
166
166
  "aria-label": `${t} month`,
167
167
  variant: "icon",
168
- icon: t === "Previous" ? x.chevron.single.left : x.chevron.single.right
168
+ icon: t === "Previous" ? y.chevron.single.left : y.chevron.single.right
169
169
  }
170
- ), pe = ({ next: t, previous: e }) => o({ class: "flex flex-auto min-h-12 text-sm font-medium relative justify-center items-center" }, [
170
+ ), be = ({ next: t, previous: e }) => o({ class: "flex flex-auto min-h-12 text-sm font-medium relative justify-center items-center" }, [
171
171
  D("[[monthName]] [[year]]"),
172
- P({
172
+ O({
173
173
  label: "Previous",
174
174
  click: e
175
175
  }),
176
- P({
176
+ O({
177
177
  label: "Next",
178
178
  click: t
179
179
  })
180
180
  ]);
181
- class ot extends h {
181
+ class ct extends h {
182
182
  /**
183
183
  * This will declare the props for the compiler.
184
184
  *
@@ -193,8 +193,8 @@ class ot extends h {
193
193
  * @returns {Data}
194
194
  */
195
195
  setData() {
196
- const e = /* @__PURE__ */ new Date(), s = this.selectedWeek || this.calculateCurrentWeek(e), a = W(s, e.getFullYear());
197
- return new C({
196
+ const e = /* @__PURE__ */ new Date(), s = this.selectedWeek || this.calculateCurrentWeek(e), a = P(s, e.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 ot extends h {
231
231
  * @returns {string}
232
232
  */
233
233
  getMonthName(e) {
234
- return G.monthNames[e];
234
+ return J.monthNames[e];
235
235
  }
236
236
  /**
237
237
  * Updates the calendar to show the previous month.
@@ -276,7 +276,7 @@ class ot extends h {
276
276
  */
277
277
  selectWeek(e, s) {
278
278
  this.data.currentWeek = e;
279
- const a = W(e, s);
279
+ const a = P(e, s);
280
280
  this.setDate(a.getMonth(), a.getFullYear(), a.getDate()), typeof this.selectedCallBack == "function" && this.selectedCallBack(e);
281
281
  }
282
282
  /**
@@ -286,38 +286,38 @@ class ot extends h {
286
286
  */
287
287
  render() {
288
288
  return o({ class: "week-calendar-container border rounded-md p-3" }, [
289
- pe({
289
+ be({
290
290
  next: () => this.goToNextMonth(),
291
291
  previous: () => this.goToPreviousMonth()
292
292
  }),
293
- me({
293
+ pe({
294
294
  selectWeek: (e, s) => this.selectWeek(e, s)
295
295
  })
296
296
  ]);
297
297
  }
298
298
  }
299
- const we = (t, e) => {
299
+ const ke = (t, e) => {
300
300
  const s = t.toggleAllSelectedRows();
301
301
  e.state.checked = !s;
302
- }, be = (t) => O({ class: `cursor-pointer py-3 px-4 text-base w-10 ${t.class || ""}` }, [
303
- F((e) => new ae({ class: "mr-2", onChange: (s, a) => we(e, a) }))
304
- ]), ye = ({ align: t, sortable: e, key: s, label: a, sort: i, class: n }) => {
302
+ }, ye = (t) => z({ class: `cursor-pointer py-3 px-4 text-base w-10 ${t.class || ""}` }, [
303
+ X((e) => new ie({ class: "mr-2", onChange: (s, a) => ke(e, a) }))
304
+ ]), xe = ({ align: t, sortable: e, key: s, label: a, sort: i, class: n }) => {
305
305
  const l = t || "justify-start";
306
- return O({
306
+ return z({
307
307
  class: `cursor-pointer py-3 px-4 text-base ${n || ""}`,
308
308
  click: e && (() => i(s))
309
309
  }, [
310
310
  o({ class: `flex flex-auto w-full items-center ${l}` }, [
311
311
  D(a),
312
- e && E({ class: "ml-2", html: x.arrows.upDown })
312
+ e && q({ class: "ml-2", html: y.arrows.upDown })
313
313
  ])
314
314
  ]);
315
- }, B = (t) => Q([
316
- X({
315
+ }, R = (t) => K([
316
+ $({
317
317
  class: "text-muted-foreground border-b",
318
318
  map: [
319
319
  t.headers,
320
- (e) => e.label === "checkbox" ? be({ toggle: t.toggle }) : ye({
320
+ (e) => e.label === "checkbox" ? ye({ toggle: t.toggle }) : xe({
321
321
  align: e.align,
322
322
  sortable: e.sortable,
323
323
  key: e.key,
@@ -326,15 +326,29 @@ const we = (t, e) => {
326
326
  })
327
327
  ]
328
328
  })
329
- ]), xe = ({ key: t, rows: e, selectRow: s, rowItem: a, emptyState: i }) => new J({
329
+ ]), ve = ({ key: t, rows: e, selectRow: s, rowItem: a, emptyState: i }) => new B({
330
330
  cache: "list",
331
331
  key: t,
332
332
  items: e,
333
333
  rowItem: (n) => a(n, s),
334
334
  class: "divide-y divide-border",
335
335
  emptyState: i
336
- });
337
- class j extends h {
336
+ }), De = ({ columnCount: t = 3, customCell: e, key: s }) => {
337
+ const a = (i) => {
338
+ if (e && typeof e == "function")
339
+ return e(i);
340
+ const n = ["w-3/4", "w-1/2", "w-full", "w-2/3", "w-5/6"], l = n[i % n.length];
341
+ return _({ class: "px-6 py-4" }, [
342
+ ne({ width: l, height: "h-4" })
343
+ ]);
344
+ };
345
+ return $({
346
+ class: "border-b",
347
+ key: s,
348
+ children: Array.from({ length: t }, (i, n) => a(n))
349
+ });
350
+ };
351
+ class Y extends h {
338
352
  /**
339
353
  * Initializes component data.
340
354
  *
@@ -342,11 +356,15 @@ class j extends h {
342
356
  */
343
357
  setData() {
344
358
  let e = this.rows && this.rows.length > 0;
345
- return (this.loadMoreItems || this.tableData) && !e && (e = null), new C({
359
+ (this.loadMoreItems || this.tableData) && !e && (e = null);
360
+ const s = this.skeleton && !e;
361
+ return new L({
346
362
  selectedRows: [],
347
363
  // @ts-ignore
348
- hasItems: e,
349
- selected: !1
364
+ hasItems: s ? !0 : e,
365
+ selected: !1,
366
+ // @ts-ignore
367
+ showSkeleton: s
350
368
  });
351
369
  }
352
370
  /**
@@ -367,6 +385,33 @@ class j extends h {
367
385
  const e = this.data.get("selectedRows");
368
386
  this.data.selected = e.length > 0;
369
387
  }
388
+ /**
389
+ * Generates skeleton rows for the table.
390
+ *
391
+ * @returns {Array}
392
+ */
393
+ generateSkeletonRows() {
394
+ const e = this.skeleton;
395
+ let s = 5, a = null;
396
+ typeof e == "object" && (s = e.number || 5, a = e.row || null);
397
+ const i = this.headers ? this.headers.length : 3;
398
+ return Array.from({ length: s }, (n, l) => a && typeof a == "function" ? a(l, i) : De({
399
+ columnCount: i,
400
+ key: `skeleton-${l}`
401
+ }));
402
+ }
403
+ /**
404
+ * Removes skeleton rows and shows real content.
405
+ *
406
+ * @returns {void}
407
+ */
408
+ removeSkeleton() {
409
+ if (this.data.showSkeleton) {
410
+ this.data.showSkeleton = !1;
411
+ const e = this.rows && this.rows.length > 0;
412
+ this.data.hasItems = e;
413
+ }
414
+ }
370
415
  /**
371
416
  * This will get the selected rows.
372
417
  *
@@ -403,19 +448,27 @@ class j extends h {
403
448
  * @returns {object}
404
449
  */
405
450
  render() {
406
- const e = this.rows, s = this.border !== !1 ? "border" : "";
451
+ const e = this.data.get("showSkeleton"), s = e ? this.generateSkeletonRows() : this.rows, a = this.border !== !1 ? "border" : "";
407
452
  return o({ class: "w-full flex flex-auto flex-col" }, [
408
- v("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
409
- o({ class: `w-full rounded-md ${s} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
410
- L({ class: "w-full" }, [
453
+ v("hasItems", (i) => i === !1 && this.emptyState ? this.emptyState() : null),
454
+ o({ class: `w-full rounded-md ${a} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
455
+ C({ class: "w-full" }, [
411
456
  // @ts-ignore
412
- this.headers && B({ headers: this.headers, sort: (a) => this.sortRows(a) }),
457
+ this.headers && R({ headers: this.headers, sort: (i) => this.sortRows(i) }),
413
458
  // @ts-ignore
414
459
  this.customHeader ?? null,
415
- xe({
460
+ e ? new B({
461
+ cache: "list",
462
+ // @ts-ignore
463
+ key: this.key,
464
+ items: s,
465
+ rowItem: (i) => i,
466
+ // Skeleton rows are already complete components
467
+ class: "divide-y divide-border"
468
+ }) : ve({
416
469
  // @ts-ignore
417
470
  key: this.key,
418
- rows: e,
471
+ rows: s,
419
472
  // @ts-ignore
420
473
  selectRow: this.selectRow.bind(this),
421
474
  // @ts-ignore
@@ -445,7 +498,7 @@ class j extends h {
445
498
  * @returns {void}
446
499
  */
447
500
  setRows(e) {
448
- this.list.setRows(e);
501
+ this.removeSkeleton(), this.list.setRows(e);
449
502
  }
450
503
  /**
451
504
  * This will append items to the list.
@@ -455,7 +508,7 @@ class j extends h {
455
508
  * @returns {void}
456
509
  */
457
510
  append(e) {
458
- this.list.append(e);
511
+ this.removeSkeleton(), this.list.append(e);
459
512
  }
460
513
  /**
461
514
  * This will mingle the new items with the old items.
@@ -476,7 +529,7 @@ class j extends h {
476
529
  * @returns {void}
477
530
  */
478
531
  prepend(e) {
479
- this.list.prepend(e);
532
+ this.removeSkeleton(), this.list.prepend(e);
480
533
  }
481
534
  /**
482
535
  * This will remove the selected rows.
@@ -487,7 +540,7 @@ class j extends h {
487
540
  this.data.selectedRows = [];
488
541
  }
489
542
  }
490
- const ke = (t) => new Z({
543
+ const Se = (t) => new te({
491
544
  cache: "list",
492
545
  loadMoreItems: t.loadMoreItems,
493
546
  offset: t.offset,
@@ -498,23 +551,31 @@ const ke = (t) => new Z({
498
551
  rowItem: (e) => t.rowItem(e, t.selectRow),
499
552
  class: "divide-y divide-border"
500
553
  });
501
- class ve extends j {
554
+ class Ie extends Y {
502
555
  /**
503
556
  * Renders the DataTable component.
504
557
  *
505
558
  * @returns {object}
506
559
  */
507
560
  render() {
508
- const e = this.rows, s = this.border !== !1 ? "border" : "";
561
+ const e = this.data.showSkeleton, s = e ? this.generateSkeletonRows() : this.rows, a = this.border !== !1 ? "border" : "";
509
562
  return o({ class: "w-full flex flex-auto flex-col" }, [
510
- v("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
511
- o({ class: `w-full rounded-md ${s} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
512
- L({ class: "w-full" }, [
563
+ v("hasItems", (i) => i === !1 && this.emptyState ? this.emptyState() : null),
564
+ o({ class: `w-full rounded-md ${a} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
565
+ C({ class: "w-full" }, [
513
566
  // @ts-ignore
514
- this.headers && B({ headers: this.headers, sort: (a) => this.sortRows(a) }),
567
+ this.headers && R({ headers: this.headers, sort: (i) => this.sortRows(i) }),
515
568
  // @ts-ignore
516
569
  this.customHeader ?? null,
517
- ke({
570
+ e ? new B({
571
+ cache: "list",
572
+ // @ts-ignore
573
+ key: this.key,
574
+ items: s,
575
+ rowItem: (i) => i,
576
+ // Skeleton rows are already complete components
577
+ class: "divide-y divide-border"
578
+ }) : Se({
518
579
  // @ts-ignore
519
580
  loadMoreItems: this.loadMoreItems,
520
581
  // @ts-ignore
@@ -527,7 +588,7 @@ class ve extends j {
527
588
  tableData: this.tableData,
528
589
  // @ts-ignore
529
590
  key: this.key,
530
- items: e,
591
+ items: s,
531
592
  // @ts-ignore
532
593
  selectRow: this.selectRow.bind(this),
533
594
  // @ts-ignore
@@ -546,7 +607,7 @@ class ve extends j {
546
607
  this.list.refresh();
547
608
  }
548
609
  }
549
- const lt = d((t) => new ve(
610
+ const dt = d((t) => new Ie(
550
611
  {
551
612
  cache: t.cache ?? "list",
552
613
  tableData: t.data,
@@ -560,9 +621,10 @@ const lt = d((t) => new ve(
560
621
  headers: t.headers,
561
622
  customHeader: t.customHeader,
562
623
  border: t.border,
563
- emptyState: t.emptyState
624
+ emptyState: t.emptyState,
625
+ skeleton: t.skeleton
564
626
  }
565
- )), De = (t) => new ee({
627
+ )), Ce = (t) => new U({
566
628
  cache: "list",
567
629
  scrollContainer: t.scrollContainer,
568
630
  loadMoreItems: t.loadMoreItems,
@@ -574,23 +636,31 @@ const lt = d((t) => new ve(
574
636
  rowItem: (e) => t.rowItem(e, t.selectRow),
575
637
  class: "divide-y divide-border"
576
638
  });
577
- class Se extends j {
639
+ class Le extends Y {
578
640
  /**
579
641
  * Renders the DataTable component.
580
642
  *
581
643
  * @returns {object}
582
644
  */
583
645
  render() {
584
- const e = this.rows, s = this.border !== !1 ? "border" : "";
646
+ const e = this.data.get("showSkeleton"), s = e ? this.generateSkeletonRows() : this.rows, a = this.border !== !1 ? "border" : "";
585
647
  return o({ class: "w-full flex flex-auto flex-col" }, [
586
- v("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
587
- o({ class: `w-full rounded-md ${s} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
588
- L({ class: "w-full" }, [
648
+ v("hasItems", (i) => i === !1 && this.emptyState ? this.emptyState() : null),
649
+ o({ class: `w-full rounded-md ${a} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
650
+ C({ class: "w-full" }, [
589
651
  // @ts-ignore
590
- this.headers && B({ headers: this.headers, sort: (a) => this.sortRows(a) }),
652
+ this.headers && R({ headers: this.headers, sort: (i) => this.sortRows(i) }),
591
653
  // @ts-ignore
592
654
  this.customHeader ?? null,
593
- De({
655
+ e ? new U({
656
+ cache: "list",
657
+ // @ts-ignore
658
+ key: this.key,
659
+ items: s,
660
+ rowItem: (i) => i,
661
+ // Skeleton rows are already complete components
662
+ class: "divide-y divide-border"
663
+ }) : Ce({
594
664
  // @ts-ignore
595
665
  scrollContainer: this.scrollContainer,
596
666
  // @ts-ignore
@@ -605,7 +675,7 @@ class Se extends j {
605
675
  tableData: this.tableData,
606
676
  // @ts-ignore
607
677
  key: this.key,
608
- items: e,
678
+ items: s,
609
679
  // @ts-ignore
610
680
  selectRow: this.selectRow.bind(this),
611
681
  // @ts-ignore
@@ -624,7 +694,7 @@ class Se extends j {
624
694
  this.list.refresh();
625
695
  }
626
696
  }
627
- const rt = d((t) => new Se(
697
+ const ht = d((t) => new Le(
628
698
  {
629
699
  cache: t.cache ?? "list",
630
700
  tableData: t.data,
@@ -639,47 +709,48 @@ const rt = d((t) => new Se(
639
709
  headers: t.headers,
640
710
  customHeader: t.customHeader,
641
711
  border: t.border,
642
- emptyState: t.emptyState
712
+ emptyState: t.emptyState,
713
+ skeleton: t.skeleton
643
714
  }
644
- )), Ie = d(({ name: t, email: e }) => o({ class: "min-w-0 flex-auto" }, [
645
- p({ class: "text-base font-semibold leading-6 m-0" }, t),
646
- p({ class: "truncate text-sm leading-5 text-muted-foreground m-0" }, e)
647
- ])), Le = () => o({ class: "flex items-center gap-x-1.5" }, [
715
+ )), Te = d(({ name: t, email: e }) => o({ class: "min-w-0 flex-auto" }, [
716
+ w({ class: "text-base font-semibold leading-6 m-0" }, t),
717
+ w({ class: "truncate text-sm leading-5 text-muted-foreground m-0" }, e)
718
+ ])), Be = () => o({ class: "flex items-center gap-x-1.5" }, [
648
719
  o({ class: "flex-none rounded-full bg-emerald-500/20 p-1" }, [
649
720
  o({ class: "h-1.5 w-1.5 rounded-full bg-emerald-500" })
650
721
  ]),
651
- p({ class: "text-xs leading-5 text-gray-500" }, "Online")
652
- ]), Ce = (t) => p({ class: "text-xs leading-5 text-muted-foreground" }, [
722
+ w({ class: "text-xs leading-5 text-gray-500" }, "Online")
723
+ ]), Re = (t) => w({ class: "text-xs leading-5 text-muted-foreground" }, [
653
724
  D("Last seen "),
654
- q({ datetime: t }, "3h ago")
655
- ]), Te = (t, e) => t === "online" ? Le() : Ce(e), Be = d(({ role: t, lastSeen: e, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
656
- p({ class: "text-sm leading-6 m-0" }, t),
657
- Te(s, e)
658
- ])), Me = (t) => t.split(" ").map((s) => s[0]).join(""), Re = d((t) => S({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
725
+ G({ datetime: t }, "3h ago")
726
+ ]), Me = (t, e) => t === "online" ? Be() : Re(e), We = d(({ role: t, lastSeen: e, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
727
+ w({ class: "text-sm leading-6 m-0" }, t),
728
+ Me(s, e)
729
+ ])), Pe = (t) => t.split(" ").map((s) => s[0]).join(""), Oe = d((t) => S({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
659
730
  o({ class: "flex min-w-0 gap-x-4" }, [
660
- oe({ src: t.image, alt: t.name, fallbackText: Me(t.name) }),
661
- Ie({ name: t.name, email: t.email })
731
+ re({ src: t.image, alt: t.name, fallbackText: Pe(t.name) }),
732
+ Te({ name: t.name, email: t.email })
662
733
  ]),
663
- Be({
734
+ We({
664
735
  role: t.role,
665
736
  lastSeen: t.lastSeen,
666
737
  status: t.status
667
738
  })
668
- ])), ct = d((t) => new te({
739
+ ])), ut = d((t) => new se({
669
740
  cache: "list",
670
741
  key: "name",
671
742
  items: t.users,
672
743
  role: "list",
673
744
  class: "divide-y divide-border",
674
- rowItem: Re
675
- })), We = (t, e) => e.includes(t), Pe = (t, e, s) => t.exact ? s === e : We(e, s), Oe = ({ text: t, href: e, exact: s, hidden: a }) => new $({
745
+ rowItem: Oe
746
+ })), ze = (t, e) => e.includes(t), $e = (t, e, s) => t.exact ? s === e : ze(e, s), Ne = ({ text: t, href: e, exact: s, hidden: a }) => new A({
676
747
  text: t,
677
748
  href: e,
678
749
  exact: s,
679
750
  dataSet: ["selected", ["state", !0, "active"]],
680
751
  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`
681
752
  });
682
- class dt extends h {
753
+ class ft extends h {
683
754
  /**
684
755
  * This will declare the props for the compiler.
685
756
  *
@@ -703,11 +774,11 @@ class dt extends h {
703
774
  return I(
704
775
  { class: `flex items-center justify-center p-2 text-muted-foreground rounded-md ${this.class || ""}` },
705
776
  [
706
- w({
777
+ p({
707
778
  class: "flex space-x-4",
708
779
  map: [this.options, (e) => this.addLink(e)],
709
780
  watch: {
710
- value: ["[[path]]", y.data],
781
+ value: ["[[path]]", k.data],
711
782
  callBack: this.updateLinks.bind(this)
712
783
  }
713
784
  })
@@ -720,7 +791,7 @@ class dt extends h {
720
791
  * @returns {void}
721
792
  */
722
793
  afterSetup() {
723
- const e = y.data.path;
794
+ const e = k.data.path;
724
795
  this.updateLinks(e);
725
796
  }
726
797
  /**
@@ -735,7 +806,7 @@ class dt extends h {
735
806
  for (const a of this.links) {
736
807
  if (!a.rendered)
737
808
  continue;
738
- Pe(a, a.getLinkPath(), e) ? (this.updateLink(a, !0), s = !0) : this.updateLink(a, !1);
809
+ $e(a, a.getLinkPath(), e) ? (this.updateLink(a, !0), s = !0) : this.updateLink(a, !1);
739
810
  }
740
811
  !s && this.links[0] && this.updateLink(this.links[0], !0);
741
812
  }
@@ -765,7 +836,7 @@ class dt extends h {
765
836
  * @returns {object}
766
837
  */
767
838
  addLink({ label: e, href: s, exact: a, hidden: i }) {
768
- const n = Oe({ text: e, href: s, exact: a, hidden: i });
839
+ const n = Ne({ text: e, href: s, exact: a, hidden: i });
769
840
  return this.links.push(n), n;
770
841
  }
771
842
  /**
@@ -777,13 +848,13 @@ class dt extends h {
777
848
  this.links = [];
778
849
  }
779
850
  }
780
- const ht = d((t) => {
851
+ const gt = d((t) => {
781
852
  const e = t.margin || "m-4 ml-0";
782
853
  return t.allowHistory = t.allowHistory === !0, o({ class: `flex-none ${e}` }, [
783
854
  T({ variant: "back", class: "ghost", ...t })
784
855
  ]);
785
856
  });
786
- class A extends h {
857
+ class H extends h {
787
858
  /**
788
859
  * This will declare the props for the compiler.
789
860
  *
@@ -870,13 +941,13 @@ class A extends h {
870
941
  return this.children;
871
942
  }
872
943
  }
873
- N.addType("dockableOverlay", (t) => {
944
+ j.addType("dockableOverlay", (t) => {
874
945
  if (!t)
875
946
  return;
876
947
  const e = t.component;
877
948
  e && e.rendered === !0 && e.state.docked === !1 && e.destroy();
878
949
  });
879
- class ut extends A {
950
+ class mt extends H {
880
951
  /**
881
952
  * This will stop presistence.
882
953
  *
@@ -942,7 +1013,7 @@ class ut extends A {
942
1013
  * @returns {void}
943
1014
  */
944
1015
  afterSetup() {
945
- N.add(
1016
+ j.add(
946
1017
  this.container,
947
1018
  "dockableOverlay",
948
1019
  {
@@ -985,7 +1056,7 @@ class ut extends A {
985
1056
  document.documentElement.style.overflowY = "auto";
986
1057
  }
987
1058
  }
988
- class ft extends A {
1059
+ class wt extends H {
989
1060
  /**
990
1061
  * This will get the overlay type.
991
1062
  *
@@ -1004,7 +1075,7 @@ class ft extends A {
1004
1075
  this.container = e, this.initialize();
1005
1076
  }
1006
1077
  }
1007
- const ze = d(({ index: t, click: e, state: s }, a) => S({
1078
+ const Ae = d(({ index: t, click: e, state: s }, a) => S({
1008
1079
  class: "p-2 cursor-pointer hover:bg-muted/50",
1009
1080
  onState: [
1010
1081
  [s, "selectedIndex", {
@@ -1013,11 +1084,11 @@ const ze = d(({ index: t, click: e, state: s }, a) => S({
1013
1084
  }]
1014
1085
  ],
1015
1086
  click: () => e(t)
1016
- }, a)), $e = d(({ selectOption: t, state: e }) => w({
1087
+ }, a)), je = d(({ selectOption: t, state: e }) => p({
1017
1088
  class: "border rounded-md list-none m-0 p-0 max-h-[400px] overflow-y-auto",
1018
- for: ["filteredOptions", (s, a) => ze({ index: a, click: t, state: e }, s.label)]
1019
- })), Ne = d((t) => o({ class: "relative flex items-center" }, [
1020
- ie({
1089
+ for: ["filteredOptions", (s, a) => Ae({ index: a, click: t, state: e }, s.label)]
1090
+ })), Ue = d((t) => o({ class: "relative flex items-center" }, [
1091
+ oe({
1021
1092
  cache: "input",
1022
1093
  class: t.class ?? "",
1023
1094
  placeholder: t.placeholder ?? "Search...",
@@ -1033,22 +1104,22 @@ const ze = d(({ index: t, click: e, state: s }, a) => S({
1033
1104
  ]
1034
1105
  }),
1035
1106
  t.icon && o({ class: "absolute flex right-0 mr-2" }, [
1036
- _(t.icon)
1107
+ ee(t.icon)
1037
1108
  ])
1038
- ])), je = (t) => o({
1109
+ ])), Ye = (t) => o({
1039
1110
  class: "relative flex fle-auto flex-col",
1040
1111
  onState: ["open", (e, s, a) => {
1041
1112
  if (e)
1042
- return new le({
1113
+ return new ce({
1043
1114
  cache: "dropdown",
1044
1115
  parent: a,
1045
1116
  button: a.input,
1046
1117
  size: "xl"
1047
1118
  }, [
1048
- $e(t)
1119
+ je(t)
1049
1120
  ]);
1050
1121
  }]
1051
- }), gt = V(
1122
+ }), pt = Z(
1052
1123
  {
1053
1124
  /**
1054
1125
  * This will set up the data object.
@@ -1057,7 +1128,7 @@ const ze = d(({ index: t, click: e, state: s }, a) => S({
1057
1128
  */
1058
1129
  setData() {
1059
1130
  const t = this.options || [];
1060
- return new C({
1131
+ return new L({
1061
1132
  options: t,
1062
1133
  filteredOptions: t
1063
1134
  });
@@ -1145,7 +1216,7 @@ const ze = d(({ index: t, click: e, state: s }, a) => S({
1145
1216
  */
1146
1217
  render() {
1147
1218
  return o({ class: "relative w-full max-w-md" }, [
1148
- Ne({
1219
+ Ue({
1149
1220
  // @ts-ignore
1150
1221
  state: this.state,
1151
1222
  // @ts-ignore
@@ -1157,7 +1228,7 @@ const ze = d(({ index: t, click: e, state: s }, a) => S({
1157
1228
  // @ts-ignore
1158
1229
  handleKeyDown: this.handleKeyDown.bind(this)
1159
1230
  }),
1160
- je({
1231
+ Ye({
1161
1232
  // @ts-ignore
1162
1233
  state: this.state,
1163
1234
  // @ts-ignore
@@ -1168,22 +1239,22 @@ const ze = d(({ index: t, click: e, state: s }, a) => S({
1168
1239
  ]);
1169
1240
  }
1170
1241
  }
1171
- ), Ae = (t) => S(
1242
+ ), He = (t) => S(
1172
1243
  {
1173
1244
  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",
1174
1245
  dataSet: ["selected", ["state", t.value, "active"]]
1175
1246
  },
1176
1247
  [
1177
- k({
1248
+ x({
1178
1249
  class: "flex flex-auto justify-center items-center px-3 py-1.5 rounded-md",
1179
1250
  onSet: ["selected", { selected: t.value }],
1180
1251
  click: (e) => t.callBack(t.value)
1181
1252
  }, t.label)
1182
1253
  ]
1183
- ), Ue = (t, e) => (t.callBack = e, Ae(t)), Ye = (t) => I({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
1184
- w({ class: "flex flex-auto flex-row", map: [t.options, (e) => Ue(e, t.callBack)] })
1254
+ ), Fe = (t, e) => (t.callBack = e, He(t)), Ee = (t) => I({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
1255
+ p({ class: "flex flex-auto flex-row", map: [t.options, (e) => Fe(e, t.callBack)] })
1185
1256
  ]);
1186
- class mt extends h {
1257
+ class bt extends h {
1187
1258
  /**
1188
1259
  * This will declare the props for the compiler.
1189
1260
  *
@@ -1200,12 +1271,12 @@ class mt extends h {
1200
1271
  render() {
1201
1272
  const e = this.select.bind(this);
1202
1273
  return o({ class: "" }, [
1203
- Ye({
1274
+ Ee({
1204
1275
  class: this.class,
1205
1276
  options: this.options,
1206
1277
  callBack: e
1207
1278
  }),
1208
- z({
1279
+ N({
1209
1280
  class: "tab-content",
1210
1281
  onState: ["selected", this.updateContent.bind(this)]
1211
1282
  })
@@ -1271,23 +1342,23 @@ class mt extends h {
1271
1342
  };
1272
1343
  }
1273
1344
  }
1274
- const He = (t) => S(
1345
+ const Qe = (t) => S(
1275
1346
  {
1276
1347
  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",
1277
1348
  dataSet: ["selected", ["state", t.value, "active"]]
1278
1349
  },
1279
1350
  [
1280
- k({
1351
+ x({
1281
1352
  class: "flex flex-auto justify-center items-center px-3 py-1.5 rounded-md disabled:opacity-50 disabled:cursor-not-allowed",
1282
1353
  onSet: ["selected", { selected: t.value }],
1283
1354
  click: (e) => t.callBack(t.value),
1284
1355
  disabled: t.disabled
1285
1356
  }, t.label)
1286
1357
  ]
1287
- ), Fe = (t, e) => (t.callBack = e, He(t)), Ee = (t) => I({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
1288
- w({ class: "flex flex-auto flex-row", map: [t.options, (e) => Fe(e, t.callBack)] })
1358
+ ), Xe = (t, e) => (t.callBack = e, Qe(t)), qe = (t) => I({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
1359
+ p({ class: "flex flex-auto flex-row", map: [t.options, (e) => Xe(e, t.callBack)] })
1289
1360
  ]);
1290
- class pt extends h {
1361
+ class kt extends h {
1291
1362
  /**
1292
1363
  * This will declare the props for the compiler.
1293
1364
  *
@@ -1303,7 +1374,7 @@ class pt extends h {
1303
1374
  */
1304
1375
  render() {
1305
1376
  const e = this.select.bind(this);
1306
- return Ee({
1377
+ return qe({
1307
1378
  class: this.class,
1308
1379
  options: this.options,
1309
1380
  callBack: e
@@ -1330,17 +1401,17 @@ class pt extends h {
1330
1401
  };
1331
1402
  }
1332
1403
  }
1333
- const Qe = (t, e) => new RegExp(`${t}($|/|\\.).*`).test(e), Xe = (t, e) => {
1404
+ const Ke = (t, e) => new RegExp(`${t}($|/|\\.).*`).test(e), _e = (t, e) => {
1334
1405
  const s = t.getLinkPath();
1335
- return t.exact ? e === s : Qe(s, e);
1336
- }, qe = ({ text: t, href: e, exact: s }) => new $({
1406
+ return t.exact ? e === s : Ke(s, e);
1407
+ }, Ge = ({ text: t, href: e, exact: s }) => new A({
1337
1408
  text: t,
1338
1409
  href: e,
1339
1410
  exact: s,
1340
1411
  dataSet: ["selected", ["state", !0, "active"]],
1341
1412
  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"
1342
1413
  });
1343
- class Ke extends h {
1414
+ class Ve extends h {
1344
1415
  /**
1345
1416
  * This will declare the props for the compiler.
1346
1417
  *
@@ -1362,11 +1433,11 @@ class Ke extends h {
1362
1433
  */
1363
1434
  render() {
1364
1435
  return I({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${this.class}` }, [
1365
- w({
1436
+ p({
1366
1437
  class: "flex flex-auto flex-row",
1367
1438
  map: [this.options, (e) => this.addLink(e)],
1368
1439
  watch: {
1369
- value: ["[[path]]", y.data],
1440
+ value: ["[[path]]", k.data],
1370
1441
  callBack: this.updateLinks.bind(this)
1371
1442
  }
1372
1443
  })
@@ -1378,7 +1449,7 @@ class Ke extends h {
1378
1449
  * @returns {void}
1379
1450
  */
1380
1451
  afterSetup() {
1381
- const e = y.data.path;
1452
+ const e = k.data.path;
1382
1453
  this.updateLinks(e);
1383
1454
  }
1384
1455
  /**
@@ -1391,7 +1462,7 @@ class Ke extends h {
1391
1462
  let s = !1, a = this.links[0];
1392
1463
  this.deactivateAllLinks();
1393
1464
  for (const i of this.links)
1394
- if (i.rendered !== !1 && (s = Xe(i, e), s === !0)) {
1465
+ if (i.rendered !== !1 && (s = _e(i, e), s === !0)) {
1395
1466
  this.updateLink(i, !0);
1396
1467
  break;
1397
1468
  }
@@ -1423,7 +1494,7 @@ class Ke extends h {
1423
1494
  * @returns {object}
1424
1495
  */
1425
1496
  addLink({ label: e, href: s, exact: a }) {
1426
- const i = qe({ text: e, href: s, exact: a });
1497
+ const i = Ge({ text: e, href: s, exact: a });
1427
1498
  return this.links.push(i), i;
1428
1499
  }
1429
1500
  /**
@@ -1435,7 +1506,7 @@ class Ke extends h {
1435
1506
  this.links = [];
1436
1507
  }
1437
1508
  }
1438
- class wt extends h {
1509
+ class yt extends h {
1439
1510
  /**
1440
1511
  * This will declare the props for the compiler.
1441
1512
  *
@@ -1451,11 +1522,11 @@ class wt extends h {
1451
1522
  */
1452
1523
  render() {
1453
1524
  return o({ class: "tab-panel" }, [
1454
- new Ke({
1525
+ new Ve({
1455
1526
  class: this.class,
1456
1527
  options: this.options
1457
1528
  }),
1458
- z({
1529
+ N({
1459
1530
  class: "tab-content",
1460
1531
  switch: this.addGroup()
1461
1532
  })
@@ -1481,7 +1552,7 @@ class wt extends h {
1481
1552
  return s;
1482
1553
  }
1483
1554
  }
1484
- class Ge extends h {
1555
+ class Je extends h {
1485
1556
  /**
1486
1557
  * Runs before rendering, sets up defaults, a timer for drawing,
1487
1558
  * and basic canvas properties.
@@ -1491,7 +1562,7 @@ class Ge extends h {
1491
1562
  onCreated() {
1492
1563
  this.lineWidth = this.lineWidth || 3, this.lineColor = this.lineColor || "#000000", this.canvas = null, this.ctx = null, this.status = "stopped";
1493
1564
  const e = 1e3 / 60;
1494
- this.timer = new se(e, this.draw.bind(this)), this.width = 0, this.height = 0, this.signed = !1, this.mouse = { x: 0, y: 0, status: "up" }, this.margin = this.margin || { x: 40, y: 60 }, this.targetSize = this.targetSize || { width: 740, height: 345 }, this.baseLineWidth = this.baseLineWidth || 2, this.baseStrokeColor = this.baseStrokeColor || "#000000";
1565
+ this.timer = new ae(e, this.draw.bind(this)), this.width = 0, this.height = 0, this.signed = !1, this.mouse = { x: 0, y: 0, status: "up" }, this.margin = this.margin || { x: 40, y: 60 }, this.targetSize = this.targetSize || { width: 740, height: 345 }, this.baseLineWidth = this.baseLineWidth || 2, this.baseStrokeColor = this.baseStrokeColor || "#000000";
1495
1566
  }
1496
1567
  /**
1497
1568
  * Renders a <canvas> element.
@@ -1499,7 +1570,7 @@ class Ge extends h {
1499
1570
  * @returns {object} Layout definition for the canvas.
1500
1571
  */
1501
1572
  render() {
1502
- return K({
1573
+ return V({
1503
1574
  style: "touch-action: none; -webkit-user-select: none; -webkit-touch-callout: none;"
1504
1575
  });
1505
1576
  }
@@ -1617,7 +1688,7 @@ class Ge extends h {
1617
1688
  * @returns {void}
1618
1689
  */
1619
1690
  noScaleResize() {
1620
- const e = R.getSize(container);
1691
+ const e = W.getSize(container);
1621
1692
  this.width = canvas.width = e.width, this.height = canvas.height = e.height;
1622
1693
  }
1623
1694
  /**
@@ -1627,7 +1698,7 @@ class Ge extends h {
1627
1698
  * @returns {void}
1628
1699
  */
1629
1700
  scale() {
1630
- const e = this.canvas, s = this.container, a = R.getSize(s), i = this.targetSize, n = i.width, l = i.height;
1701
+ const e = this.canvas, s = this.container, a = W.getSize(s), i = this.targetSize, n = i.width, l = i.height;
1631
1702
  let u = n + "px", c = l + "px";
1632
1703
  if (this.width = e.width = n, this.height = e.height = l, a.width !== 0 && a.height !== 0) {
1633
1704
  const f = a.width, g = a.height, r = f / n, m = g / l, b = Math.min(r, m);
@@ -1707,7 +1778,7 @@ class Ge extends h {
1707
1778
  this.timer.stop(), this.status = "stopped";
1708
1779
  }
1709
1780
  }
1710
- class bt extends h {
1781
+ class xt extends h {
1711
1782
  /**
1712
1783
  * Sets up default properties for the signature panel.
1713
1784
  *
@@ -1724,7 +1795,7 @@ class bt extends h {
1724
1795
  */
1725
1796
  render() {
1726
1797
  return o({ class: "signature-panel relative flex flex-auto overflow-hidden select-none" }, [
1727
- ne({
1798
+ le({
1728
1799
  cache: "hiddenInput",
1729
1800
  required: !0,
1730
1801
  bind: this.path + ".data"
@@ -1732,11 +1803,11 @@ class bt extends h {
1732
1803
  o({ class: "absolute top-2 right-2" }, [
1733
1804
  T({
1734
1805
  variant: "icon",
1735
- icon: x.circleX,
1806
+ icon: y.circleX,
1736
1807
  click: this.reset.bind(this)
1737
1808
  })
1738
1809
  ]),
1739
- new Ge({
1810
+ new Je({
1740
1811
  cache: "canvasLayer",
1741
1812
  margin: this.margin,
1742
1813
  targetSize: this.targetSize,
@@ -1786,36 +1857,36 @@ class bt extends h {
1786
1857
  }
1787
1858
  }
1788
1859
  export {
1789
- ht as B,
1790
- be as C,
1791
- xe as D,
1792
- ye as H,
1793
- ft as I,
1794
- dt as N,
1795
- A as O,
1796
- at as P,
1797
- rt as S,
1798
- B as T,
1799
- Re as U,
1800
- ot as W,
1801
- he as a,
1802
- W as b,
1803
- ce as c,
1804
- it as d,
1805
- nt as e,
1806
- fe as f,
1807
- de as g,
1808
- me as h,
1809
- pe as i,
1810
- j,
1811
- lt as k,
1812
- ct as l,
1813
- ut as m,
1814
- gt as n,
1815
- Ne as o,
1816
- mt as p,
1817
- pt as q,
1818
- Ke as r,
1819
- wt as s,
1820
- bt as t
1860
+ gt as B,
1861
+ ye as C,
1862
+ ve as D,
1863
+ xe as H,
1864
+ wt as I,
1865
+ ft as N,
1866
+ H as O,
1867
+ ot as P,
1868
+ ht as S,
1869
+ R as T,
1870
+ Oe as U,
1871
+ ct as W,
1872
+ fe as a,
1873
+ P as b,
1874
+ he as c,
1875
+ lt as d,
1876
+ rt as e,
1877
+ me as f,
1878
+ ue as g,
1879
+ pe as h,
1880
+ be as i,
1881
+ Y as j,
1882
+ dt as k,
1883
+ ut as l,
1884
+ mt as m,
1885
+ pt as n,
1886
+ Ue as o,
1887
+ bt as p,
1888
+ kt as q,
1889
+ Ve as r,
1890
+ yt as s,
1891
+ xt as t
1821
1892
  };