@base-framework/ui 1.0.278 → 1.0.279
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 { C as b, d as F, D as P, c as B, E as k, F as M, H as f, I as x, M as N,
|
|
|
5
5
|
import { Icons as G } from "./icons.es.js";
|
|
6
6
|
import { A as E, B as V, C as j, w as q, J, y as z, z as K, E as Q, G as _, D as X, m as Y, n as Z, O as $, K as aa, v as ea, c as sa, a as oa, b as ta, Q as ra, l as na, g as la, i as ia, h as pa, j as ma, e as ua, k as da, F as ga, d as Ca, f as ca, L as Ta, x as Da, M as Ia, o as Sa, N as ba, P as Fa, s as Pa, t as Ba, S as ka, q as Ma, r as fa, T as xa, H as Na, I as va, p as ya, u as ha } from "./empty-state-CPWpkmxa.js";
|
|
7
7
|
import { A as Wa, b as Ha, C as Aa, D as Ra, a as wa, F as Ua, M as Ga, P as Oa, R as Ea, c as Va, g as ja, p as qa } from "./range-calendar-DW0cMOJy.js";
|
|
8
|
-
import { B as za, p as Ka, C as Qa, j as _a, D as Xa, m as Ya, k as Za, H as $a, I as ae, N as ee, O as se, P as oe, S as te, n as re, o as ne, t as le, s as ie, q as pe, r as me, T as ue, l as de, U as ge, W as Ce, f as ce, h as Te, i as De, c as Ie, d as Se, b as be, e as Fe, a as Pe, g as Be } from "./signature-panel-
|
|
8
|
+
import { B as za, p as Ka, C as Qa, j as _a, D as Xa, m as Ya, k as Za, H as $a, I as ae, N as ee, O as se, P as oe, S as te, n as re, o as ne, t as le, s as ie, q as pe, r as me, T as ue, l as de, U as ge, W as Ce, f as ce, h as Te, i as De, c as Ie, d as Se, b as be, e as Fe, a as Pe, g as Be } from "./signature-panel-LOOJ7iLB.js";
|
|
9
9
|
import { B as Me, I as fe, M as xe, d as Ne, e as ve, g as ye, N as he, b as Le, a as We, f as He, P as Ae, c as Re, S as we, T as Ue } from "./mobile-nav-wrapper-C7RyGC5a.js";
|
|
10
10
|
import { B as Oe, a as Ee, C as Ve, F as je, b as qe, c as Je, M as ze, P as Ke, S as Qe } from "./sidebar-menu-page-BtUJdw-T.js";
|
|
11
11
|
import { A as Xe, F as Ye, M as Ze, a as $e, T as as } from "./aside-template-McEj_Gxc.js";
|
package/dist/organisms.es.js
CHANGED
|
@@ -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, S as v, n as D, o as N, t as k, s as C, q as c, r as T, T as M, l as m, U as y, W as B, f as W, h, i as S, c as H, d as P, b as I, e as f, a as x, g as L } from "./signature-panel-
|
|
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, S as v, n as D, o as N, t as k, s as C, q as c, r as T, T as M, l as m, U as y, W as B, f as W, h, i as S, c as H, d as P, b as I, e as f, a as x, g as L } from "./signature-panel-LOOJ7iLB.js";
|
|
2
2
|
import { b as F, C as U, D as G, a as R, F as j, M as q, R as w, c as z, p as A } from "./range-calendar-DW0cMOJy.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-C7RyGC5a.js";
|
|
4
4
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Button as
|
|
2
|
-
import { Atom as d, Component as h, Data as L, DateTime as J, router as
|
|
1
|
+
import { Button as v, Div as o, On as g, Span as D, Th as z, UseParent as X, I as q, Thead as K, Tr as $, Td as _, Table as C, P as p, Li as S, Time as G, Nav as I, Ul as k, 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 y, NavLink as A, DataTracker as j, Jot as Z, base as M, Dom as W } from "@base-framework/base";
|
|
3
3
|
import { B as T, I as ee } from "./buttons-BKLL4I6r.js";
|
|
4
|
-
import { Icons as
|
|
4
|
+
import { Icons as x } from "./icons.es.js";
|
|
5
5
|
import { TableBody as B, DataTableBody as te, ScrollableTableBody as U, List as se, IntervalTimer as ae } from "@base-framework/organisms";
|
|
6
6
|
import { C as ie, S as ne, I as oe, H as le } from "./skeleton-CLm2c9Bc.js";
|
|
7
7
|
import { A as re, P as ce } from "./range-calendar-DW0cMOJy.js";
|
|
@@ -10,7 +10,7 @@ d((t, e) => ({
|
|
|
10
10
|
...t,
|
|
11
11
|
children: e
|
|
12
12
|
}));
|
|
13
|
-
d(({ value: t, label: e }) =>
|
|
13
|
+
d(({ value: t, label: e }) => v({
|
|
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"]],
|
|
@@ -82,7 +82,7 @@ const de = (t) => {
|
|
|
82
82
|
return a.getDate() === t && a.getMonth() === e && a.getFullYear() === s;
|
|
83
83
|
}, me = ({ day: t, month: e, year: s, weekNumber: a, selectWeek: i }) => {
|
|
84
84
|
const n = ge(t, e, s);
|
|
85
|
-
return
|
|
85
|
+
return v({
|
|
86
86
|
text: t || "",
|
|
87
87
|
disabled: !t,
|
|
88
88
|
class: `
|
|
@@ -93,17 +93,17 @@ const de = (t) => {
|
|
|
93
93
|
click: () => i(a, s)
|
|
94
94
|
});
|
|
95
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,
|
|
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, w) => new Date(t, e, w + 1)), l = (i.length + n.length) % 7, u = l === 0 ? 0 : 7 - l, c = fe(t, e, u), f = [...i, ...n, ...c], m = [];
|
|
97
97
|
for (let r = 0; r < f.length; r += 7) {
|
|
98
|
-
const
|
|
99
|
-
|
|
98
|
+
const w = f.slice(r, r + 7), b = w.find((Q) => Q) || new Date(t, e, 1), { weekNumber: F, year: E } = he(b);
|
|
99
|
+
m.push({
|
|
100
100
|
weekNumber: F,
|
|
101
101
|
year: E,
|
|
102
|
-
days:
|
|
102
|
+
days: w
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
|
-
return
|
|
106
|
-
}, pe = ({ selectWeek: t }) =>
|
|
105
|
+
return m;
|
|
106
|
+
}, pe = ({ selectWeek: t }) => g("month", (e, s, { data: a }) => {
|
|
107
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" },
|
|
@@ -120,7 +120,7 @@ const de = (t) => {
|
|
|
120
120
|
),
|
|
121
121
|
// Render each "week" row
|
|
122
122
|
...u.map(
|
|
123
|
-
({ weekNumber: c, days: f, year:
|
|
123
|
+
({ weekNumber: c, days: f, year: m }) => 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 de = (t) => {
|
|
|
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: () => t(c,
|
|
132
|
+
click: () => t(c, m),
|
|
133
133
|
// If you have a 'currentWeek' state, you can highlight it with 'onSet'
|
|
134
134
|
onSet: ["currentWeek", {
|
|
135
135
|
"text-primary-foreground": c,
|
|
@@ -165,9 +165,9 @@ const de = (t) => {
|
|
|
165
165
|
click: e,
|
|
166
166
|
"aria-label": `${t} month`,
|
|
167
167
|
variant: "icon",
|
|
168
|
-
icon: t === "Previous" ?
|
|
168
|
+
icon: t === "Previous" ? x.chevron.single.left : x.chevron.single.right
|
|
169
169
|
}
|
|
170
|
-
),
|
|
170
|
+
), ke = ({ 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
172
|
O({
|
|
173
173
|
label: "Previous",
|
|
@@ -286,7 +286,7 @@ class ct extends h {
|
|
|
286
286
|
*/
|
|
287
287
|
render() {
|
|
288
288
|
return o({ class: "week-calendar-container border rounded-md p-3" }, [
|
|
289
|
-
|
|
289
|
+
ke({
|
|
290
290
|
next: () => this.goToNextMonth(),
|
|
291
291
|
previous: () => this.goToPreviousMonth()
|
|
292
292
|
}),
|
|
@@ -296,11 +296,11 @@ class ct extends h {
|
|
|
296
296
|
]);
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
|
-
const
|
|
299
|
+
const be = (t, e) => {
|
|
300
300
|
const s = t.toggleAllSelectedRows();
|
|
301
301
|
e.state.checked = !s;
|
|
302
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) =>
|
|
303
|
+
X((e) => new ie({ class: "mr-2", onChange: (s, a) => be(e, a) }))
|
|
304
304
|
]), xe = ({ align: t, sortable: e, key: s, label: a, sort: i, class: n }) => {
|
|
305
305
|
const l = t || "justify-start";
|
|
306
306
|
return z({
|
|
@@ -309,7 +309,7 @@ const ke = (t, e) => {
|
|
|
309
309
|
}, [
|
|
310
310
|
o({ class: `flex flex-auto w-full items-center ${l}` }, [
|
|
311
311
|
D(a),
|
|
312
|
-
e && q({ class: "ml-2", html:
|
|
312
|
+
e && q({ class: "ml-2", html: x.arrows.upDown })
|
|
313
313
|
])
|
|
314
314
|
]);
|
|
315
315
|
}, R = (t) => K([
|
|
@@ -447,21 +447,21 @@ class Y extends h {
|
|
|
447
447
|
* @returns {object}
|
|
448
448
|
*/
|
|
449
449
|
render() {
|
|
450
|
-
const
|
|
450
|
+
const s = this.data.get("showSkeleton") ? this.generateSkeletonRows() : this.rows, a = this.border !== !1 ? "border" : "";
|
|
451
451
|
return o({ class: "w-full flex flex-auto flex-col" }, [
|
|
452
|
-
|
|
452
|
+
g("hasItems", (i) => i === !1 && this.emptyState ? this.emptyState() : null),
|
|
453
453
|
o({ class: `w-full rounded-md ${a} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
|
|
454
454
|
C({ class: "w-full" }, [
|
|
455
455
|
// @ts-ignore
|
|
456
456
|
this.headers && R({ headers: this.headers, sort: (i) => this.sortRows(i) }),
|
|
457
457
|
// @ts-ignore
|
|
458
458
|
this.customHeader ?? null,
|
|
459
|
-
|
|
459
|
+
g("showSkeleton", (i) => i ? new B({
|
|
460
460
|
cache: "list",
|
|
461
461
|
// @ts-ignore
|
|
462
462
|
key: this.key,
|
|
463
463
|
items: s,
|
|
464
|
-
rowItem: (
|
|
464
|
+
rowItem: (n) => n,
|
|
465
465
|
// Skeleton rows are already complete components
|
|
466
466
|
class: "divide-y divide-border"
|
|
467
467
|
}) : ve({
|
|
@@ -474,7 +474,7 @@ class Y extends h {
|
|
|
474
474
|
rowItem: this.rowItem,
|
|
475
475
|
// @ts-ignore
|
|
476
476
|
emptyState: this.emptyState
|
|
477
|
-
})
|
|
477
|
+
}))
|
|
478
478
|
])
|
|
479
479
|
])
|
|
480
480
|
]);
|
|
@@ -557,21 +557,21 @@ class Ie extends Y {
|
|
|
557
557
|
* @returns {object}
|
|
558
558
|
*/
|
|
559
559
|
render() {
|
|
560
|
-
const
|
|
560
|
+
const s = this.data.showSkeleton ? this.generateSkeletonRows() : this.rows, a = this.border !== !1 ? "border" : "";
|
|
561
561
|
return o({ class: "w-full flex flex-auto flex-col" }, [
|
|
562
|
-
|
|
562
|
+
g("hasItems", (i) => i === !1 && this.emptyState ? this.emptyState() : null),
|
|
563
563
|
o({ class: `w-full rounded-md ${a} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
|
|
564
564
|
C({ class: "w-full" }, [
|
|
565
565
|
// @ts-ignore
|
|
566
566
|
this.headers && R({ headers: this.headers, sort: (i) => this.sortRows(i) }),
|
|
567
567
|
// @ts-ignore
|
|
568
568
|
this.customHeader ?? null,
|
|
569
|
-
|
|
569
|
+
g("showSkeleton", (i) => i ? new B({
|
|
570
570
|
cache: "list",
|
|
571
571
|
// @ts-ignore
|
|
572
572
|
key: this.key,
|
|
573
573
|
items: s,
|
|
574
|
-
rowItem: (
|
|
574
|
+
rowItem: (n) => n,
|
|
575
575
|
// Skeleton rows are already complete components
|
|
576
576
|
class: "divide-y divide-border"
|
|
577
577
|
}) : Se({
|
|
@@ -592,7 +592,7 @@ class Ie extends Y {
|
|
|
592
592
|
selectRow: this.selectRow.bind(this),
|
|
593
593
|
// @ts-ignore
|
|
594
594
|
rowItem: this.rowItem
|
|
595
|
-
})
|
|
595
|
+
}))
|
|
596
596
|
])
|
|
597
597
|
])
|
|
598
598
|
]);
|
|
@@ -642,21 +642,21 @@ class Le extends Y {
|
|
|
642
642
|
* @returns {object}
|
|
643
643
|
*/
|
|
644
644
|
render() {
|
|
645
|
-
const
|
|
645
|
+
const s = this.data.get("showSkeleton") ? this.generateSkeletonRows() : this.rows, a = this.border !== !1 ? "border" : "";
|
|
646
646
|
return o({ class: "w-full flex flex-auto flex-col" }, [
|
|
647
|
-
|
|
647
|
+
g("hasItems", (i) => i === !1 && this.emptyState ? this.emptyState() : null),
|
|
648
648
|
o({ class: `w-full rounded-md ${a} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
|
|
649
649
|
C({ class: "w-full" }, [
|
|
650
650
|
// @ts-ignore
|
|
651
651
|
this.headers && R({ headers: this.headers, sort: (i) => this.sortRows(i) }),
|
|
652
652
|
// @ts-ignore
|
|
653
653
|
this.customHeader ?? null,
|
|
654
|
-
|
|
654
|
+
g("showSkeleton", (i) => i ? new U({
|
|
655
655
|
cache: "list",
|
|
656
656
|
// @ts-ignore
|
|
657
657
|
key: this.key,
|
|
658
658
|
items: s,
|
|
659
|
-
rowItem: (
|
|
659
|
+
rowItem: (n) => n,
|
|
660
660
|
// Skeleton rows are already complete components
|
|
661
661
|
class: "divide-y divide-border"
|
|
662
662
|
}) : Ce({
|
|
@@ -679,7 +679,7 @@ class Le extends Y {
|
|
|
679
679
|
selectRow: this.selectRow.bind(this),
|
|
680
680
|
// @ts-ignore
|
|
681
681
|
rowItem: this.rowItem
|
|
682
|
-
})
|
|
682
|
+
}))
|
|
683
683
|
])
|
|
684
684
|
])
|
|
685
685
|
]);
|
|
@@ -712,18 +712,18 @@ const ht = d((t) => new Le(
|
|
|
712
712
|
skeleton: t.skeleton
|
|
713
713
|
}
|
|
714
714
|
)), Te = d(({ name: t, email: e }) => o({ class: "min-w-0 flex-auto" }, [
|
|
715
|
-
|
|
716
|
-
|
|
715
|
+
p({ class: "text-base font-semibold leading-6 m-0" }, t),
|
|
716
|
+
p({ class: "truncate text-sm leading-5 text-muted-foreground m-0" }, e)
|
|
717
717
|
])), Be = () => o({ class: "flex items-center gap-x-1.5" }, [
|
|
718
718
|
o({ class: "flex-none rounded-full bg-emerald-500/20 p-1" }, [
|
|
719
719
|
o({ class: "h-1.5 w-1.5 rounded-full bg-emerald-500" })
|
|
720
720
|
]),
|
|
721
|
-
|
|
722
|
-
]), Re = (t) =>
|
|
721
|
+
p({ class: "text-xs leading-5 text-gray-500" }, "Online")
|
|
722
|
+
]), Re = (t) => p({ class: "text-xs leading-5 text-muted-foreground" }, [
|
|
723
723
|
D("Last seen "),
|
|
724
724
|
G({ datetime: t }, "3h ago")
|
|
725
725
|
]), 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" }, [
|
|
726
|
-
|
|
726
|
+
p({ class: "text-sm leading-6 m-0" }, t),
|
|
727
727
|
Me(s, e)
|
|
728
728
|
])), 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" }, [
|
|
729
729
|
o({ class: "flex min-w-0 gap-x-4" }, [
|
|
@@ -773,11 +773,11 @@ class ft extends h {
|
|
|
773
773
|
return I(
|
|
774
774
|
{ class: `flex items-center justify-center p-2 text-muted-foreground rounded-md ${this.class || ""}` },
|
|
775
775
|
[
|
|
776
|
-
|
|
776
|
+
k({
|
|
777
777
|
class: "flex space-x-4",
|
|
778
778
|
map: [this.options, (e) => this.addLink(e)],
|
|
779
779
|
watch: {
|
|
780
|
-
value: ["[[path]]",
|
|
780
|
+
value: ["[[path]]", y.data],
|
|
781
781
|
callBack: this.updateLinks.bind(this)
|
|
782
782
|
}
|
|
783
783
|
})
|
|
@@ -790,7 +790,7 @@ class ft extends h {
|
|
|
790
790
|
* @returns {void}
|
|
791
791
|
*/
|
|
792
792
|
afterSetup() {
|
|
793
|
-
const e =
|
|
793
|
+
const e = y.data.path;
|
|
794
794
|
this.updateLinks(e);
|
|
795
795
|
}
|
|
796
796
|
/**
|
|
@@ -1083,7 +1083,7 @@ const Ae = d(({ index: t, click: e, state: s }, a) => S({
|
|
|
1083
1083
|
}]
|
|
1084
1084
|
],
|
|
1085
1085
|
click: () => e(t)
|
|
1086
|
-
}, a)), je = d(({ selectOption: t, state: e }) =>
|
|
1086
|
+
}, a)), je = d(({ selectOption: t, state: e }) => k({
|
|
1087
1087
|
class: "border rounded-md list-none m-0 p-0 max-h-[400px] overflow-y-auto",
|
|
1088
1088
|
for: ["filteredOptions", (s, a) => Ae({ index: a, click: t, state: e }, s.label)]
|
|
1089
1089
|
})), Ue = d((t) => o({ class: "relative flex items-center" }, [
|
|
@@ -1244,16 +1244,16 @@ const Ae = d(({ index: t, click: e, state: s }, a) => S({
|
|
|
1244
1244
|
dataSet: ["selected", ["state", t.value, "active"]]
|
|
1245
1245
|
},
|
|
1246
1246
|
[
|
|
1247
|
-
|
|
1247
|
+
v({
|
|
1248
1248
|
class: "flex flex-auto justify-center items-center px-3 py-1.5 rounded-md",
|
|
1249
1249
|
onSet: ["selected", { selected: t.value }],
|
|
1250
1250
|
click: (e) => t.callBack(t.value)
|
|
1251
1251
|
}, t.label)
|
|
1252
1252
|
]
|
|
1253
1253
|
), 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}` }, [
|
|
1254
|
-
|
|
1254
|
+
k({ class: "flex flex-auto flex-row", map: [t.options, (e) => Fe(e, t.callBack)] })
|
|
1255
1255
|
]);
|
|
1256
|
-
class
|
|
1256
|
+
class kt extends h {
|
|
1257
1257
|
/**
|
|
1258
1258
|
* This will declare the props for the compiler.
|
|
1259
1259
|
*
|
|
@@ -1347,7 +1347,7 @@ const Qe = (t) => S(
|
|
|
1347
1347
|
dataSet: ["selected", ["state", t.value, "active"]]
|
|
1348
1348
|
},
|
|
1349
1349
|
[
|
|
1350
|
-
|
|
1350
|
+
v({
|
|
1351
1351
|
class: "flex flex-auto justify-center items-center px-3 py-1.5 rounded-md disabled:opacity-50 disabled:cursor-not-allowed",
|
|
1352
1352
|
onSet: ["selected", { selected: t.value }],
|
|
1353
1353
|
click: (e) => t.callBack(t.value),
|
|
@@ -1355,9 +1355,9 @@ const Qe = (t) => S(
|
|
|
1355
1355
|
}, t.label)
|
|
1356
1356
|
]
|
|
1357
1357
|
), 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}` }, [
|
|
1358
|
-
|
|
1358
|
+
k({ class: "flex flex-auto flex-row", map: [t.options, (e) => Xe(e, t.callBack)] })
|
|
1359
1359
|
]);
|
|
1360
|
-
class
|
|
1360
|
+
class bt extends h {
|
|
1361
1361
|
/**
|
|
1362
1362
|
* This will declare the props for the compiler.
|
|
1363
1363
|
*
|
|
@@ -1432,11 +1432,11 @@ class Ve extends h {
|
|
|
1432
1432
|
*/
|
|
1433
1433
|
render() {
|
|
1434
1434
|
return I({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${this.class}` }, [
|
|
1435
|
-
|
|
1435
|
+
k({
|
|
1436
1436
|
class: "flex flex-auto flex-row",
|
|
1437
1437
|
map: [this.options, (e) => this.addLink(e)],
|
|
1438
1438
|
watch: {
|
|
1439
|
-
value: ["[[path]]",
|
|
1439
|
+
value: ["[[path]]", y.data],
|
|
1440
1440
|
callBack: this.updateLinks.bind(this)
|
|
1441
1441
|
}
|
|
1442
1442
|
})
|
|
@@ -1448,7 +1448,7 @@ class Ve extends h {
|
|
|
1448
1448
|
* @returns {void}
|
|
1449
1449
|
*/
|
|
1450
1450
|
afterSetup() {
|
|
1451
|
-
const e =
|
|
1451
|
+
const e = y.data.path;
|
|
1452
1452
|
this.updateLinks(e);
|
|
1453
1453
|
}
|
|
1454
1454
|
/**
|
|
@@ -1700,7 +1700,7 @@ class Je extends h {
|
|
|
1700
1700
|
const e = this.canvas, s = this.container, a = W.getSize(s), i = this.targetSize, n = i.width, l = i.height;
|
|
1701
1701
|
let u = n + "px", c = l + "px";
|
|
1702
1702
|
if (this.width = e.width = n, this.height = e.height = l, a.width !== 0 && a.height !== 0) {
|
|
1703
|
-
const f = a.width,
|
|
1703
|
+
const f = a.width, m = a.height, r = f / n, w = m / l, b = Math.min(r, w);
|
|
1704
1704
|
u = n * b + "px", c = l * b + "px";
|
|
1705
1705
|
}
|
|
1706
1706
|
e.style.width = u, e.style.height = c;
|
|
@@ -1802,7 +1802,7 @@ class xt extends h {
|
|
|
1802
1802
|
o({ class: "absolute top-2 right-2" }, [
|
|
1803
1803
|
T({
|
|
1804
1804
|
variant: "icon",
|
|
1805
|
-
icon:
|
|
1805
|
+
icon: x.circleX,
|
|
1806
1806
|
click: this.reset.bind(this)
|
|
1807
1807
|
})
|
|
1808
1808
|
]),
|
|
@@ -1876,15 +1876,15 @@ export {
|
|
|
1876
1876
|
me as f,
|
|
1877
1877
|
ue as g,
|
|
1878
1878
|
pe as h,
|
|
1879
|
-
|
|
1879
|
+
ke as i,
|
|
1880
1880
|
Y as j,
|
|
1881
1881
|
dt as k,
|
|
1882
1882
|
ut as l,
|
|
1883
1883
|
mt as m,
|
|
1884
1884
|
pt as n,
|
|
1885
1885
|
Ue as o,
|
|
1886
|
-
|
|
1887
|
-
|
|
1886
|
+
kt as p,
|
|
1887
|
+
bt as q,
|
|
1888
1888
|
Ve as r,
|
|
1889
1889
|
yt as s,
|
|
1890
1890
|
xt as t
|
package/package.json
CHANGED