@base-framework/ui 1.0.323 → 1.0.325
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
|
@@ -6,7 +6,7 @@ import { V as w, a as A } from "./veil-CqnAmj-D.js";
|
|
|
6
6
|
import { Icons as O } from "./icons.es.js";
|
|
7
7
|
import { A as V, B as j, C as q, w as J, K as z, y as K, z as Q, E as _, G as X, D as Y, m as Z, n as $, Q as aa, O as ea, v as sa, c as oa, a as ta, b as ra, R as na, l as la, g as ia, i as pa, h as da, j as ma, e as ua, k as ga, F as Ca, d as ca, f as Ta, I as ba, L as Da, x as Ia, M as Sa, o as Fa, N as Ba, P as Pa, s as ka, t as Ma, S as xa, q as fa, r as va, T as Na, H as ya, J as ha, p as Ua, u as La } from "./empty-state-ByQ_GcoM.js";
|
|
8
8
|
import { A as Ha, b as Ra, C as wa, D as Aa, a as Ga, F as Oa, M as Ea, P as Va, R as ja, c as qa, g as Ja, p as za } from "./range-calendar-BMWSJTE0.js";
|
|
9
|
-
import { B as Qa, p as _a, C as Xa, j as Ya, D as Za, m as $a, k as ae, H as ee, I as se, N as oe, O as te, P as re, S as ne, n as le, o as ie, x as pe, s as de, q as me, r as ue, T as ge, t as Ce, w as ce, u as Te, v as be, l as De, U as Ie, W as Se, f as Fe, h as Be, i as Pe, c as ke, d as Me, b as xe, e as fe, a as ve, g as Ne } from "./signature-panel-
|
|
9
|
+
import { B as Qa, p as _a, C as Xa, j as Ya, D as Za, m as $a, k as ae, H as ee, I as se, N as oe, O as te, P as re, S as ne, n as le, o as ie, x as pe, s as de, q as me, r as ue, T as ge, t as Ce, w as ce, u as Te, v as be, l as De, U as Ie, W as Se, f as Fe, h as Be, i as Pe, c as ke, d as Me, b as xe, e as fe, a as ve, g as Ne } from "./signature-panel-0XY9I1Hx.js";
|
|
10
10
|
import { B as he, I as Ue, M as Le, d as We, e as He, g as Re, N as we, b as Ae, a as Ge, f as Oe, P as Ee, c as Ve, S as je, T as qe } from "./mobile-nav-wrapper-CWqhZ0qz.js";
|
|
11
11
|
import { B as ze, a as Ke, C as Qe, F as _e, b as Xe, c as Ye, M as Ze, P as $e, S as as } from "./sidebar-menu-page-UmKsAvjb.js";
|
|
12
12
|
import { A as ss, F as os, M as ts, a as rs, T as ns } from "./aside-template-sUm-F2f0.js";
|
package/dist/organisms.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as s, p as n, C as t, j as o, D as r, m as l, k as i, H as d, I as b, N as u, O as v, P as g, S as p, n as T, o as D, x as N, s as k, q as C, r as c, T as B, t as M, w as m, u as y, v as W, l as h, U as S, W as H, f as P, h as U, i as x, c as I, d as f, b as L, e as O, a as F, g as G } from "./signature-panel-
|
|
1
|
+
import { B as s, p as n, C as t, j as o, D as r, m as l, k as i, H as d, I as b, N as u, O as v, P as g, S as p, n as T, o as D, x as N, s as k, q as C, r as c, T as B, t as M, w as m, u as y, v as W, l as h, U as S, W as H, f as P, h as U, i as x, c as I, d as f, b as L, e as O, a as F, g as G } from "./signature-panel-0XY9I1Hx.js";
|
|
2
2
|
import { b as R, C as j, D as q, a as z, F as A, M as E, R as J, c as K, p as Q } from "./range-calendar-BMWSJTE0.js";
|
|
3
3
|
import { B as X, I as Y, M as Z, d as _, e as $, g as aa, N as ea, b as sa, a as na, f as ta, P as oa, c as ra, S as la, T as ia } from "./mobile-nav-wrapper-CWqhZ0qz.js";
|
|
4
4
|
export {
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { Button as
|
|
2
|
-
import { Atom as d, Component as p, Data as T, DateTime as K, router as
|
|
1
|
+
import { Button as x, Div as o, On as C, Span as L, Th as N, UseParent as E, I as Q, Thead as V, Tr as G, Table as B, P as v, Li as y, Time as X, Nav as g, Ul as f, Section as I, Canvas as q } from "@base-framework/atoms";
|
|
2
|
+
import { Atom as d, Component as p, Data as T, DateTime as K, router as w, NavLink as M, DataTracker as U, Jot as _, base as O, Dom as W } from "@base-framework/base";
|
|
3
3
|
import { B as P, I as J } from "./buttons-CHEs54Wl.js";
|
|
4
4
|
import { Icons as S } from "./icons.es.js";
|
|
5
5
|
import { TableBody as Z, DataTableBody as ee, ScrollableTableBody as te, List as se, IntervalTimer as ae } from "@base-framework/organisms";
|
|
6
6
|
import { C as ie, I as ne, H as oe } from "./inputs-9udyzkHR.js";
|
|
7
7
|
import { A as le, P as re } from "./range-calendar-BMWSJTE0.js";
|
|
8
|
-
import { V as
|
|
8
|
+
import { V as m } from "./veil-CqnAmj-D.js";
|
|
9
9
|
d((t, e) => ({
|
|
10
10
|
class: "flex items-center px-4 py-2",
|
|
11
11
|
...t,
|
|
12
12
|
children: e
|
|
13
13
|
}));
|
|
14
|
-
d(({ value: t, label: e }) =>
|
|
14
|
+
d(({ value: t, label: e }) => x({
|
|
15
15
|
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",
|
|
16
16
|
onState: ["performance", { active: t }],
|
|
17
17
|
dataSet: ["performance", ["state", t, "active"]],
|
|
18
18
|
click: (s, { state: a }) => a.performance = t
|
|
19
19
|
}, e));
|
|
20
|
-
class
|
|
20
|
+
class gt extends p {
|
|
21
21
|
/**
|
|
22
22
|
* This will declare the props for the compiler.
|
|
23
23
|
*
|
|
@@ -81,9 +81,9 @@ const ce = (t) => {
|
|
|
81
81
|
}, fe = (t, e, s) => {
|
|
82
82
|
const a = /* @__PURE__ */ new Date();
|
|
83
83
|
return a.getDate() === t && a.getMonth() === e && a.getFullYear() === s;
|
|
84
|
-
},
|
|
84
|
+
}, me = ({ day: t, month: e, year: s, weekNumber: a, selectWeek: i }) => {
|
|
85
85
|
const n = fe(t, e, s);
|
|
86
|
-
return
|
|
86
|
+
return x({
|
|
87
87
|
text: t || "",
|
|
88
88
|
disabled: !t,
|
|
89
89
|
class: `
|
|
@@ -93,19 +93,19 @@ const ce = (t) => {
|
|
|
93
93
|
`,
|
|
94
94
|
click: () => i(a, s)
|
|
95
95
|
});
|
|
96
|
-
},
|
|
97
|
-
const s = new Date(t, e, 1).getDay(), a = new Date(t, e + 1, 0).getDate(), i = he(t, e, s), n = Array.from({ length: a }, (h,
|
|
96
|
+
}, ge = (t, e) => {
|
|
97
|
+
const s = new Date(t, e, 1).getDay(), a = new Date(t, e + 1, 0).getDate(), i = he(t, e, s), n = Array.from({ length: a }, (h, k) => new Date(t, e, k + 1)), l = (i.length + n.length) % 7, c = l === 0 ? 0 : 7 - l, r = ue(t, e, c), u = [...i, ...n, ...r], b = [];
|
|
98
98
|
for (let h = 0; h < u.length; h += 7) {
|
|
99
|
-
const
|
|
99
|
+
const k = u.slice(h, h + 7), D = k.find((F) => F) || new Date(t, e, 1), { weekNumber: H, year: Y } = de(D);
|
|
100
100
|
b.push({
|
|
101
101
|
weekNumber: H,
|
|
102
102
|
year: Y,
|
|
103
|
-
days:
|
|
103
|
+
days: k
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
106
|
return b;
|
|
107
107
|
}, pe = ({ selectWeek: t }) => C("month", (e, s, { data: a }) => {
|
|
108
|
-
const { year: i, month: n, currentDate: l } = a, c =
|
|
108
|
+
const { year: i, month: n, currentDate: l } = a, c = ge(i, n);
|
|
109
109
|
return o(
|
|
110
110
|
{ class: "grid grid-cols-8 gap-1 text-sm px-4 py-2" },
|
|
111
111
|
[
|
|
@@ -142,7 +142,7 @@ const ce = (t) => {
|
|
|
142
142
|
o(
|
|
143
143
|
{ class: "grid grid-cols-7 col-span-7 text-center" },
|
|
144
144
|
u.map(
|
|
145
|
-
(h) =>
|
|
145
|
+
(h) => me({
|
|
146
146
|
year: h?.getFullYear() || null,
|
|
147
147
|
month: h?.getMonth() || null,
|
|
148
148
|
day: h?.getDate() || null,
|
|
@@ -179,7 +179,7 @@ const ce = (t) => {
|
|
|
179
179
|
click: t
|
|
180
180
|
})
|
|
181
181
|
]);
|
|
182
|
-
class
|
|
182
|
+
class kt extends p {
|
|
183
183
|
/**
|
|
184
184
|
* This will declare the props for the compiler.
|
|
185
185
|
*
|
|
@@ -297,12 +297,12 @@ class xt extends p {
|
|
|
297
297
|
]);
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
|
-
const
|
|
300
|
+
const ke = (t, e) => {
|
|
301
301
|
const s = t.toggleAllSelectedRows();
|
|
302
302
|
e.state.checked = !s;
|
|
303
|
-
},
|
|
304
|
-
E((e) => new ie({ class: "mr-2", onChange: (s, a) =>
|
|
305
|
-
]),
|
|
303
|
+
}, we = (t) => N({ class: `cursor-pointer py-3 px-4 text-base w-10 ${t.class || ""}` }, [
|
|
304
|
+
E((e) => new ie({ class: "mr-2", onChange: (s, a) => ke(e, a) }))
|
|
305
|
+
]), xe = ({ align: t, sortable: e, key: s, label: a, sort: i, class: n }) => {
|
|
306
306
|
const l = t || "justify-start";
|
|
307
307
|
return N({
|
|
308
308
|
class: `cursor-pointer py-3 px-4 text-base ${n || ""}`,
|
|
@@ -318,7 +318,7 @@ const xe = (t, e) => {
|
|
|
318
318
|
class: "text-muted-foreground border-b",
|
|
319
319
|
map: [
|
|
320
320
|
t.headers,
|
|
321
|
-
(e) => e.label === "checkbox" ?
|
|
321
|
+
(e) => e.label === "checkbox" ? we({ toggle: t.toggle }) : xe({
|
|
322
322
|
align: e.align,
|
|
323
323
|
sortable: e.sortable,
|
|
324
324
|
key: e.key,
|
|
@@ -567,7 +567,7 @@ class De extends j {
|
|
|
567
567
|
this.list.refresh();
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
|
-
const
|
|
570
|
+
const wt = d((t) => new De(
|
|
571
571
|
{
|
|
572
572
|
cache: t.cache ?? "list",
|
|
573
573
|
tableData: t.data,
|
|
@@ -652,7 +652,7 @@ class Ce extends j {
|
|
|
652
652
|
this.list.refresh();
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
|
-
const
|
|
655
|
+
const xt = d((t) => new Ce(
|
|
656
656
|
{
|
|
657
657
|
cache: t.cache ?? "list",
|
|
658
658
|
tableData: t.data,
|
|
@@ -729,14 +729,14 @@ class vt extends p {
|
|
|
729
729
|
* @returns {object}
|
|
730
730
|
*/
|
|
731
731
|
render() {
|
|
732
|
-
return
|
|
732
|
+
return g(
|
|
733
733
|
{ class: `flex items-center justify-center p-2 text-muted-foreground rounded-md ${this.class || ""}` },
|
|
734
734
|
[
|
|
735
735
|
f({
|
|
736
736
|
class: "flex gap-x-4",
|
|
737
737
|
map: [this.options, (e) => this.addLink(e)],
|
|
738
738
|
watch: {
|
|
739
|
-
value: ["[[path]]",
|
|
739
|
+
value: ["[[path]]", w.data],
|
|
740
740
|
callBack: this.updateLinks.bind(this)
|
|
741
741
|
}
|
|
742
742
|
})
|
|
@@ -749,7 +749,7 @@ class vt extends p {
|
|
|
749
749
|
* @returns {void}
|
|
750
750
|
*/
|
|
751
751
|
afterSetup() {
|
|
752
|
-
const e =
|
|
752
|
+
const e = w.data.path;
|
|
753
753
|
this.updateLinks(e);
|
|
754
754
|
}
|
|
755
755
|
/**
|
|
@@ -845,7 +845,11 @@ class A extends p {
|
|
|
845
845
|
* @returns {string}
|
|
846
846
|
*/
|
|
847
847
|
getClassName() {
|
|
848
|
-
return
|
|
848
|
+
return `absolute overlay left-0 top-0 right-0 z-20
|
|
849
|
+
h-svh max-h-svh min-h-svh
|
|
850
|
+
bg-background pointer-events-auto
|
|
851
|
+
lg:left-16
|
|
852
|
+
pb-[calc(env(safe-area-inset-bottom)+56px)] will-change-contents ${this.class || ""}`;
|
|
849
853
|
}
|
|
850
854
|
/**
|
|
851
855
|
* This will setup and render the component.
|
|
@@ -888,7 +892,7 @@ class A extends p {
|
|
|
888
892
|
* @returns {object}
|
|
889
893
|
*/
|
|
890
894
|
addBody() {
|
|
891
|
-
return o({ class: "body fadeIn flex flex-auto flex-col" }, this.getContents());
|
|
895
|
+
return o({ class: "body fadeIn flex flex-auto flex-col bg-background" }, this.getContents());
|
|
892
896
|
}
|
|
893
897
|
/**
|
|
894
898
|
* This will get the body contents.
|
|
@@ -1203,16 +1207,16 @@ const ze = d(({ index: t, click: e, state: s }, a) => y({
|
|
|
1203
1207
|
dataStateSet: ["selected", ["state", t.value, "active"]]
|
|
1204
1208
|
},
|
|
1205
1209
|
[
|
|
1206
|
-
|
|
1210
|
+
x({
|
|
1207
1211
|
class: "flex flex-auto justify-center items-center px-3 py-1.5 rounded-md",
|
|
1208
1212
|
onState: ["selected", { selected: t.value }],
|
|
1209
1213
|
click: (e) => t.callBack(t.value)
|
|
1210
1214
|
}, t.label)
|
|
1211
1215
|
]
|
|
1212
|
-
), He = (t, e) => (t.callBack = e, Ae(t)), Ye = (t) =>
|
|
1216
|
+
), He = (t, e) => (t.callBack = e, Ae(t)), Ye = (t) => g({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
|
|
1213
1217
|
f({ class: "flex flex-auto flex-row", map: [t.options, (e) => He(e, t.callBack)] })
|
|
1214
1218
|
]);
|
|
1215
|
-
class It extends
|
|
1219
|
+
class It extends m {
|
|
1216
1220
|
/**
|
|
1217
1221
|
* This will declare the props for the compiler.
|
|
1218
1222
|
*
|
|
@@ -1305,17 +1309,17 @@ const Fe = (t) => y(
|
|
|
1305
1309
|
dataStateSet: ["selected", ["state", t.value, "active"]]
|
|
1306
1310
|
},
|
|
1307
1311
|
[
|
|
1308
|
-
|
|
1312
|
+
x({
|
|
1309
1313
|
class: "flex flex-auto justify-center items-center px-3 py-1.5 rounded-md disabled:opacity-50 disabled:cursor-not-allowed",
|
|
1310
1314
|
onState: ["selected", { selected: t.value }],
|
|
1311
1315
|
click: (e) => t.callBack(t.value),
|
|
1312
1316
|
disabled: t.disabled
|
|
1313
1317
|
}, t.label)
|
|
1314
1318
|
]
|
|
1315
|
-
), Ee = (t, e) => (t.callBack = e, Fe(t)), Qe = (t) =>
|
|
1319
|
+
), Ee = (t, e) => (t.callBack = e, Fe(t)), Qe = (t) => g({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
|
|
1316
1320
|
f({ class: "flex flex-auto flex-row", map: [t.options, (e) => Ee(e, t.callBack)] })
|
|
1317
1321
|
]);
|
|
1318
|
-
class Bt extends
|
|
1322
|
+
class Bt extends m {
|
|
1319
1323
|
/**
|
|
1320
1324
|
* This will declare the props for the compiler.
|
|
1321
1325
|
*
|
|
@@ -1367,7 +1371,7 @@ const Ve = (t, e) => new RegExp(`${t}($|/|\\.).*`).test(e), Ge = (t, e) => {
|
|
|
1367
1371
|
dataSet: ["selected", ["state", !0, "active"]],
|
|
1368
1372
|
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"
|
|
1369
1373
|
});
|
|
1370
|
-
class qe extends
|
|
1374
|
+
class qe extends m {
|
|
1371
1375
|
/**
|
|
1372
1376
|
* This will declare the props for the compiler.
|
|
1373
1377
|
*
|
|
@@ -1388,12 +1392,12 @@ class qe extends g {
|
|
|
1388
1392
|
* @returns {object}
|
|
1389
1393
|
*/
|
|
1390
1394
|
render() {
|
|
1391
|
-
return
|
|
1395
|
+
return g({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${this.class}` }, [
|
|
1392
1396
|
f({
|
|
1393
1397
|
class: "flex flex-auto flex-row",
|
|
1394
1398
|
map: [this.options, (e) => this.addLink(e)],
|
|
1395
1399
|
watch: {
|
|
1396
|
-
value: ["[[path]]",
|
|
1400
|
+
value: ["[[path]]", w.data],
|
|
1397
1401
|
callBack: this.updateLinks.bind(this)
|
|
1398
1402
|
}
|
|
1399
1403
|
})
|
|
@@ -1405,7 +1409,7 @@ class qe extends g {
|
|
|
1405
1409
|
* @returns {void}
|
|
1406
1410
|
*/
|
|
1407
1411
|
afterSetup() {
|
|
1408
|
-
const e =
|
|
1412
|
+
const e = w.data.path;
|
|
1409
1413
|
this.updateLinks(e);
|
|
1410
1414
|
}
|
|
1411
1415
|
/**
|
|
@@ -1462,7 +1466,7 @@ class qe extends g {
|
|
|
1462
1466
|
this.links = [];
|
|
1463
1467
|
}
|
|
1464
1468
|
}
|
|
1465
|
-
class Tt extends
|
|
1469
|
+
class Tt extends m {
|
|
1466
1470
|
/**
|
|
1467
1471
|
* This will declare the props for the compiler.
|
|
1468
1472
|
*
|
|
@@ -1514,16 +1518,16 @@ const Ke = (t) => y(
|
|
|
1514
1518
|
dataStateSet: ["selected", ["state", t.value, "active"]]
|
|
1515
1519
|
},
|
|
1516
1520
|
[
|
|
1517
|
-
|
|
1521
|
+
x({
|
|
1518
1522
|
class: "flex flex-auto justify-center items-center px-4 py-3 cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",
|
|
1519
1523
|
onState: ["selected", { selected: t.value }],
|
|
1520
1524
|
click: (e) => t.callBack(t.value)
|
|
1521
1525
|
}, t.label)
|
|
1522
1526
|
]
|
|
1523
|
-
), _e = (t, e) => (t.callBack = e, Ke(t)), Je = (t) =>
|
|
1527
|
+
), _e = (t, e) => (t.callBack = e, Ke(t)), Je = (t) => g({ class: `border-b border-border ${t.class}` }, [
|
|
1524
1528
|
f({ class: "flex flex-row items-center", map: [t.options, (e) => _e(e, t.callBack)] })
|
|
1525
1529
|
]);
|
|
1526
|
-
class Mt extends
|
|
1530
|
+
class Mt extends m {
|
|
1527
1531
|
/**
|
|
1528
1532
|
* This will declare the props for the compiler.
|
|
1529
1533
|
*
|
|
@@ -1607,17 +1611,17 @@ const Ze = (t) => y(
|
|
|
1607
1611
|
dataStateSet: ["selected", ["state", t.value, "active"]]
|
|
1608
1612
|
},
|
|
1609
1613
|
[
|
|
1610
|
-
|
|
1614
|
+
x({
|
|
1611
1615
|
class: "flex flex-auto justify-center items-center px-4 py-3 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer",
|
|
1612
1616
|
onState: ["selected", { selected: t.value }],
|
|
1613
1617
|
click: (e) => t.callBack(t.value),
|
|
1614
1618
|
disabled: t.disabled
|
|
1615
1619
|
}, t.label)
|
|
1616
1620
|
]
|
|
1617
|
-
), et = (t, e) => (t.callBack = e, Ze(t)), tt = (t) =>
|
|
1621
|
+
), et = (t, e) => (t.callBack = e, Ze(t)), tt = (t) => g({ class: `border-b border-border ${t.class}` }, [
|
|
1618
1622
|
f({ class: "flex flex-row items-center", map: [t.options, (e) => et(e, t.callBack)] })
|
|
1619
1623
|
]);
|
|
1620
|
-
class Pt extends
|
|
1624
|
+
class Pt extends m {
|
|
1621
1625
|
/**
|
|
1622
1626
|
* This will declare the props for the compiler.
|
|
1623
1627
|
*
|
|
@@ -1669,7 +1673,7 @@ const st = (t, e) => new RegExp(`${t}($|/|\\.).*`).test(e), at = (t, e) => {
|
|
|
1669
1673
|
dataSet: ["selected", ["state", !0, "active"]],
|
|
1670
1674
|
class: "relative inline-flex items-center justify-center whitespace-nowrap px-4 py-3 text-sm font-medium text-muted-foreground transition-colors hover:text-foreground 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]:text-foreground after:absolute after:bottom-0 after:left-0 after:right-0 after:h-0.5 after:bg-primary after:transition-all after:duration-200 after:scale-x-0 data-[state=active]:after:scale-x-100"
|
|
1671
1675
|
});
|
|
1672
|
-
class nt extends
|
|
1676
|
+
class nt extends m {
|
|
1673
1677
|
/**
|
|
1674
1678
|
* This will declare the props for the compiler.
|
|
1675
1679
|
*
|
|
@@ -1690,12 +1694,12 @@ class nt extends g {
|
|
|
1690
1694
|
* @returns {object}
|
|
1691
1695
|
*/
|
|
1692
1696
|
render() {
|
|
1693
|
-
return
|
|
1697
|
+
return g({ class: `border-b border-border ${this.class}` }, [
|
|
1694
1698
|
f({
|
|
1695
1699
|
class: "flex flex-row items-center",
|
|
1696
1700
|
map: [this.options, (e) => this.addLink(e)],
|
|
1697
1701
|
watch: {
|
|
1698
|
-
value: ["[[path]]",
|
|
1702
|
+
value: ["[[path]]", w.data],
|
|
1699
1703
|
callBack: this.updateLinks.bind(this)
|
|
1700
1704
|
}
|
|
1701
1705
|
})
|
|
@@ -1707,7 +1711,7 @@ class nt extends g {
|
|
|
1707
1711
|
* @returns {void}
|
|
1708
1712
|
*/
|
|
1709
1713
|
afterSetup() {
|
|
1710
|
-
const e =
|
|
1714
|
+
const e = w.data.path;
|
|
1711
1715
|
this.updateLinks(e);
|
|
1712
1716
|
}
|
|
1713
1717
|
/**
|
|
@@ -1764,7 +1768,7 @@ class nt extends g {
|
|
|
1764
1768
|
this.links = [];
|
|
1765
1769
|
}
|
|
1766
1770
|
}
|
|
1767
|
-
class Rt extends
|
|
1771
|
+
class Rt extends m {
|
|
1768
1772
|
/**
|
|
1769
1773
|
* This will declare the props for the compiler.
|
|
1770
1774
|
*
|
|
@@ -1959,7 +1963,7 @@ class ot extends p {
|
|
|
1959
1963
|
const e = this.canvas, s = this.container, a = W.getSize(s), i = this.targetSize, n = i.width, l = i.height;
|
|
1960
1964
|
let c = n + "px", r = l + "px";
|
|
1961
1965
|
if (this.width = e.width = n, this.height = e.height = l, a.width !== 0 && a.height !== 0) {
|
|
1962
|
-
const u = a.width, b = a.height, h = u / n,
|
|
1966
|
+
const u = a.width, b = a.height, h = u / n, k = b / l, D = Math.min(h, k);
|
|
1963
1967
|
c = n * D + "px", r = l * D + "px";
|
|
1964
1968
|
}
|
|
1965
1969
|
e.style.width = c, e.style.height = r;
|
|
@@ -2116,28 +2120,28 @@ class Ot extends p {
|
|
|
2116
2120
|
}
|
|
2117
2121
|
export {
|
|
2118
2122
|
Dt as B,
|
|
2119
|
-
|
|
2123
|
+
we as C,
|
|
2120
2124
|
ye as D,
|
|
2121
|
-
|
|
2125
|
+
xe as H,
|
|
2122
2126
|
Ct as I,
|
|
2123
2127
|
vt as N,
|
|
2124
2128
|
A as O,
|
|
2125
|
-
|
|
2126
|
-
|
|
2129
|
+
gt as P,
|
|
2130
|
+
xt as S,
|
|
2127
2131
|
R as T,
|
|
2128
2132
|
Re as U,
|
|
2129
|
-
|
|
2133
|
+
kt as W,
|
|
2130
2134
|
ue as a,
|
|
2131
2135
|
$ as b,
|
|
2132
2136
|
de as c,
|
|
2133
2137
|
pt as d,
|
|
2134
2138
|
bt as e,
|
|
2135
|
-
|
|
2139
|
+
me as f,
|
|
2136
2140
|
he as g,
|
|
2137
2141
|
pe as h,
|
|
2138
2142
|
be as i,
|
|
2139
2143
|
j,
|
|
2140
|
-
|
|
2144
|
+
wt as k,
|
|
2141
2145
|
yt as l,
|
|
2142
2146
|
St as m,
|
|
2143
2147
|
Lt as n,
|
package/package.json
CHANGED