@nice2dev/ui-science 1.1.6 → 1.1.7
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.mjs +302 -84
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -346,10 +346,20 @@ function dt() {
|
|
|
346
346
|
},
|
|
347
347
|
children: [
|
|
348
348
|
/* @__PURE__ */ o("div", { style: { fontWeight: 500 }, children: p.name }),
|
|
349
|
-
/* @__PURE__ */ u(
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
349
|
+
/* @__PURE__ */ u(
|
|
350
|
+
"div",
|
|
351
|
+
{
|
|
352
|
+
style: {
|
|
353
|
+
fontSize: "12px",
|
|
354
|
+
color: "var(--nice-text-secondary, #666)",
|
|
355
|
+
marginTop: "4px"
|
|
356
|
+
},
|
|
357
|
+
children: [
|
|
358
|
+
p.entries.length,
|
|
359
|
+
" entries"
|
|
360
|
+
]
|
|
361
|
+
}
|
|
362
|
+
)
|
|
353
363
|
]
|
|
354
364
|
},
|
|
355
365
|
p.id
|
|
@@ -397,38 +407,58 @@ function ut() {
|
|
|
397
407
|
/* @__PURE__ */ o("button", { onClick: () => a(!0), style: q.button, children: "+ New Entry" })
|
|
398
408
|
] }) }),
|
|
399
409
|
/* @__PURE__ */ u("div", { style: { display: "flex", flex: 1, overflow: "hidden" }, children: [
|
|
400
|
-
/* @__PURE__ */ o(
|
|
410
|
+
/* @__PURE__ */ o(
|
|
401
411
|
"div",
|
|
402
412
|
{
|
|
403
|
-
onClick: () => n(c.id),
|
|
404
413
|
style: {
|
|
405
|
-
|
|
406
|
-
|
|
414
|
+
width: "300px",
|
|
415
|
+
borderRight: "1px solid var(--nice-border, #e0e0e0)",
|
|
416
|
+
overflow: "auto"
|
|
407
417
|
},
|
|
408
|
-
children:
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
418
|
+
children: e.entries.map((c) => /* @__PURE__ */ u(
|
|
419
|
+
"div",
|
|
420
|
+
{
|
|
421
|
+
onClick: () => n(c.id),
|
|
422
|
+
style: {
|
|
423
|
+
...q.entryCard,
|
|
424
|
+
backgroundColor: (t == null ? void 0 : t.id) === c.id ? "var(--nice-primary-bg, #e3f2fd)" : "transparent"
|
|
425
|
+
},
|
|
426
|
+
children: [
|
|
427
|
+
/* @__PURE__ */ u("div", { style: { display: "flex", gap: "8px", alignItems: "center" }, children: [
|
|
428
|
+
/* @__PURE__ */ o("span", { children: Je[c.type] }),
|
|
429
|
+
/* @__PURE__ */ o("span", { style: { fontWeight: 500 }, children: c.title })
|
|
430
|
+
] }),
|
|
431
|
+
/* @__PURE__ */ u("div", { style: { display: "flex", gap: "8px", marginTop: "8px" }, children: [
|
|
432
|
+
/* @__PURE__ */ o(
|
|
433
|
+
"span",
|
|
434
|
+
{
|
|
435
|
+
style: {
|
|
436
|
+
...q.badge,
|
|
437
|
+
backgroundColor: `${Be[c.status]}20`,
|
|
438
|
+
color: Be[c.status]
|
|
439
|
+
},
|
|
440
|
+
children: c.status
|
|
441
|
+
}
|
|
442
|
+
),
|
|
443
|
+
/* @__PURE__ */ o("span", { style: { fontSize: "12px", color: "var(--nice-text-secondary, #666)" }, children: new Date(c.updatedAt).toLocaleDateString() })
|
|
444
|
+
] })
|
|
445
|
+
]
|
|
446
|
+
},
|
|
447
|
+
c.id
|
|
448
|
+
))
|
|
449
|
+
}
|
|
450
|
+
),
|
|
451
|
+
/* @__PURE__ */ o("div", { style: q.content, children: t ? /* @__PURE__ */ o(ht, { entry: t }) : s ? /* @__PURE__ */ o(pt, { onSubmit: l, onCancel: () => a(!1) }) : /* @__PURE__ */ o(
|
|
452
|
+
"div",
|
|
453
|
+
{
|
|
454
|
+
style: {
|
|
455
|
+
textAlign: "center",
|
|
456
|
+
color: "var(--nice-text-secondary, #666)",
|
|
457
|
+
marginTop: "100px"
|
|
458
|
+
},
|
|
459
|
+
children: "Select an entry or create a new one"
|
|
460
|
+
}
|
|
461
|
+
) })
|
|
432
462
|
] })
|
|
433
463
|
] });
|
|
434
464
|
}
|
|
@@ -481,7 +511,10 @@ function ht({ entry: e }) {
|
|
|
481
511
|
onClick: () => {
|
|
482
512
|
s(!1), l(e);
|
|
483
513
|
},
|
|
484
|
-
style: {
|
|
514
|
+
style: {
|
|
515
|
+
...q.button,
|
|
516
|
+
backgroundColor: "var(--nice-text-secondary, #9e9e9e)"
|
|
517
|
+
},
|
|
485
518
|
children: "Cancel"
|
|
486
519
|
}
|
|
487
520
|
)
|
|
@@ -607,7 +640,11 @@ function ht({ entry: e }) {
|
|
|
607
640
|
href: y.url,
|
|
608
641
|
target: "_blank",
|
|
609
642
|
rel: "noopener noreferrer",
|
|
610
|
-
style: {
|
|
643
|
+
style: {
|
|
644
|
+
display: "block",
|
|
645
|
+
color: "var(--nice-primary-hover, #1976d2)",
|
|
646
|
+
textDecoration: "none"
|
|
647
|
+
},
|
|
611
648
|
children: [
|
|
612
649
|
"📎 ",
|
|
613
650
|
y.name,
|
|
@@ -1232,7 +1269,11 @@ function Qt({
|
|
|
1232
1269
|
{
|
|
1233
1270
|
value: s || "",
|
|
1234
1271
|
onChange: (m) => a(m.target.value || null),
|
|
1235
|
-
style: {
|
|
1272
|
+
style: {
|
|
1273
|
+
padding: "8px 12px",
|
|
1274
|
+
borderRadius: "4px",
|
|
1275
|
+
border: "1px solid var(--nice-border, #ddd)"
|
|
1276
|
+
},
|
|
1236
1277
|
children: [
|
|
1237
1278
|
/* @__PURE__ */ o("option", { value: "", children: "Select dataset..." }),
|
|
1238
1279
|
r.map((m) => /* @__PURE__ */ u("option", { value: m.id, children: [
|
|
@@ -1264,10 +1305,20 @@ function Qt({
|
|
|
1264
1305
|
]
|
|
1265
1306
|
}
|
|
1266
1307
|
),
|
|
1267
|
-
/* @__PURE__ */ o("div", { style: { flex: 1, overflow: "auto", padding: "16px" }, children: p ? l === "data" ? /* @__PURE__ */ o(yt, { dataset: p }) : l === "stats" ? /* @__PURE__ */ o(mt, { dataset: p }) : /* @__PURE__ */ o(gt, { dataset: p, service: e }) : /* @__PURE__ */ u(
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1308
|
+
/* @__PURE__ */ o("div", { style: { flex: 1, overflow: "auto", padding: "16px" }, children: p ? l === "data" ? /* @__PURE__ */ o(yt, { dataset: p }) : l === "stats" ? /* @__PURE__ */ o(mt, { dataset: p }) : /* @__PURE__ */ o(gt, { dataset: p, service: e }) : /* @__PURE__ */ u(
|
|
1309
|
+
"div",
|
|
1310
|
+
{
|
|
1311
|
+
style: {
|
|
1312
|
+
textAlign: "center",
|
|
1313
|
+
color: "var(--nice-text-secondary, #666)",
|
|
1314
|
+
padding: "48px"
|
|
1315
|
+
},
|
|
1316
|
+
children: [
|
|
1317
|
+
/* @__PURE__ */ o("div", { style: { fontSize: "48px", marginBottom: "16px" }, children: "📊" }),
|
|
1318
|
+
/* @__PURE__ */ o("div", { style: { fontSize: "18px" }, children: "Import a dataset or select an existing one to begin" })
|
|
1319
|
+
]
|
|
1320
|
+
}
|
|
1321
|
+
) })
|
|
1271
1322
|
]
|
|
1272
1323
|
}
|
|
1273
1324
|
);
|
|
@@ -1277,22 +1328,63 @@ function yt({ dataset: e }) {
|
|
|
1277
1328
|
return /* @__PURE__ */ u("div", { children: [
|
|
1278
1329
|
/* @__PURE__ */ o("div", { style: { overflowX: "auto", marginBottom: "16px" }, children: /* @__PURE__ */ u("table", { style: { borderCollapse: "collapse", width: "100%", fontSize: "13px" }, children: [
|
|
1279
1330
|
/* @__PURE__ */ o("thead", { children: /* @__PURE__ */ u("tr", { style: { backgroundColor: "var(--nice-bg-secondary, #f5f5f5)" }, children: [
|
|
1280
|
-
/* @__PURE__ */ o(
|
|
1331
|
+
/* @__PURE__ */ o(
|
|
1332
|
+
"th",
|
|
1333
|
+
{
|
|
1334
|
+
style: {
|
|
1335
|
+
padding: "8px 12px",
|
|
1336
|
+
border: "1px solid var(--nice-border, #ddd)",
|
|
1337
|
+
textAlign: "left"
|
|
1338
|
+
},
|
|
1339
|
+
children: "#"
|
|
1340
|
+
}
|
|
1341
|
+
),
|
|
1281
1342
|
e.columns.map((a) => /* @__PURE__ */ u(
|
|
1282
1343
|
"th",
|
|
1283
1344
|
{
|
|
1284
|
-
style: {
|
|
1345
|
+
style: {
|
|
1346
|
+
padding: "8px 12px",
|
|
1347
|
+
border: "1px solid var(--nice-border, #ddd)",
|
|
1348
|
+
textAlign: "left"
|
|
1349
|
+
},
|
|
1285
1350
|
children: [
|
|
1286
1351
|
a.name,
|
|
1287
|
-
/* @__PURE__ */ o(
|
|
1352
|
+
/* @__PURE__ */ o(
|
|
1353
|
+
"div",
|
|
1354
|
+
{
|
|
1355
|
+
style: {
|
|
1356
|
+
fontSize: "10px",
|
|
1357
|
+
color: "var(--nice-text-secondary, #666)",
|
|
1358
|
+
fontWeight: "normal"
|
|
1359
|
+
},
|
|
1360
|
+
children: a.type
|
|
1361
|
+
}
|
|
1362
|
+
)
|
|
1288
1363
|
]
|
|
1289
1364
|
},
|
|
1290
1365
|
a.name
|
|
1291
1366
|
))
|
|
1292
1367
|
] }) }),
|
|
1293
1368
|
/* @__PURE__ */ o("tbody", { children: s.map((a, l) => /* @__PURE__ */ u("tr", { children: [
|
|
1294
|
-
/* @__PURE__ */ o(
|
|
1295
|
-
|
|
1369
|
+
/* @__PURE__ */ o(
|
|
1370
|
+
"td",
|
|
1371
|
+
{
|
|
1372
|
+
style: {
|
|
1373
|
+
padding: "8px 12px",
|
|
1374
|
+
border: "1px solid var(--nice-border, #ddd)",
|
|
1375
|
+
color: "var(--nice-text-secondary, #666)"
|
|
1376
|
+
},
|
|
1377
|
+
children: t * r + l + 1
|
|
1378
|
+
}
|
|
1379
|
+
),
|
|
1380
|
+
e.columns.map((c) => /* @__PURE__ */ o(
|
|
1381
|
+
"td",
|
|
1382
|
+
{
|
|
1383
|
+
style: { padding: "8px 12px", border: "1px solid var(--nice-border, #ddd)" },
|
|
1384
|
+
children: a[c.name] != null ? String(a[c.name]) : /* @__PURE__ */ o("span", { style: { color: "var(--nice-border, #ccc)" }, children: "null" })
|
|
1385
|
+
},
|
|
1386
|
+
c.name
|
|
1387
|
+
))
|
|
1296
1388
|
] }, l)) })
|
|
1297
1389
|
] }) }),
|
|
1298
1390
|
/* @__PURE__ */ u("div", { style: { display: "flex", gap: "8px", alignItems: "center", justifyContent: "center" }, children: [
|
|
@@ -1322,7 +1414,11 @@ function mt({ dataset: e }) {
|
|
|
1322
1414
|
children: t.map((n) => /* @__PURE__ */ u(
|
|
1323
1415
|
"div",
|
|
1324
1416
|
{
|
|
1325
|
-
style: {
|
|
1417
|
+
style: {
|
|
1418
|
+
padding: "16px",
|
|
1419
|
+
backgroundColor: "var(--nice-bg-secondary, #f9f9f9)",
|
|
1420
|
+
borderRadius: "8px"
|
|
1421
|
+
},
|
|
1326
1422
|
children: [
|
|
1327
1423
|
/* @__PURE__ */ o("h3", { style: { margin: "0 0 12px 0" }, children: n.name }),
|
|
1328
1424
|
n.stats && /* @__PURE__ */ o("table", { style: { width: "100%", fontSize: "13px" }, children: /* @__PURE__ */ o("tbody", { children: Object.entries(n.stats).map(([r, i]) => /* @__PURE__ */ u("tr", { children: [
|
|
@@ -1348,7 +1444,11 @@ function gt({
|
|
|
1348
1444
|
{
|
|
1349
1445
|
value: n,
|
|
1350
1446
|
onChange: (l) => r(l.target.value),
|
|
1351
|
-
style: {
|
|
1447
|
+
style: {
|
|
1448
|
+
padding: "8px 12px",
|
|
1449
|
+
borderRadius: "4px",
|
|
1450
|
+
border: "1px solid var(--nice-border, #ddd)"
|
|
1451
|
+
},
|
|
1352
1452
|
children: [
|
|
1353
1453
|
/* @__PURE__ */ o("option", { value: "descriptive", children: "Descriptive Statistics" }),
|
|
1354
1454
|
/* @__PURE__ */ o("option", { value: "correlation", children: "Correlation Matrix" }),
|
|
@@ -1375,14 +1475,24 @@ function gt({
|
|
|
1375
1475
|
}
|
|
1376
1476
|
)
|
|
1377
1477
|
] }),
|
|
1378
|
-
i && /* @__PURE__ */ u(
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1478
|
+
i && /* @__PURE__ */ u(
|
|
1479
|
+
"div",
|
|
1480
|
+
{
|
|
1481
|
+
style: {
|
|
1482
|
+
padding: "16px",
|
|
1483
|
+
backgroundColor: "var(--nice-bg-secondary, #f9f9f9)",
|
|
1484
|
+
borderRadius: "8px"
|
|
1485
|
+
},
|
|
1486
|
+
children: [
|
|
1487
|
+
/* @__PURE__ */ u("h3", { style: { margin: "0 0 12px 0" }, children: [
|
|
1488
|
+
"Results (",
|
|
1489
|
+
i.executionTimeMs.toFixed(2),
|
|
1490
|
+
"ms)"
|
|
1491
|
+
] }),
|
|
1492
|
+
/* @__PURE__ */ o("pre", { style: { margin: 0, overflow: "auto", fontSize: "12px" }, children: JSON.stringify(i.result, null, 2) })
|
|
1493
|
+
]
|
|
1494
|
+
}
|
|
1495
|
+
)
|
|
1386
1496
|
] });
|
|
1387
1497
|
}
|
|
1388
1498
|
const Oe = {
|
|
@@ -1964,12 +2074,32 @@ function en({ service: e, className: t, style: n }) {
|
|
|
1964
2074
|
L.authors.map((H) => H.family).join(", "),
|
|
1965
2075
|
L.year && ` (${L.year})`
|
|
1966
2076
|
] }),
|
|
1967
|
-
L.journal && /* @__PURE__ */ o(
|
|
2077
|
+
L.journal && /* @__PURE__ */ o(
|
|
2078
|
+
"div",
|
|
2079
|
+
{
|
|
2080
|
+
style: {
|
|
2081
|
+
fontSize: "12px",
|
|
2082
|
+
color: "var(--nice-text-secondary, #888)",
|
|
2083
|
+
fontStyle: "italic"
|
|
2084
|
+
},
|
|
2085
|
+
children: L.journal
|
|
2086
|
+
}
|
|
2087
|
+
)
|
|
1968
2088
|
]
|
|
1969
2089
|
},
|
|
1970
2090
|
L.id
|
|
1971
2091
|
)),
|
|
1972
|
-
J.length === 0 && /* @__PURE__ */ o(
|
|
2092
|
+
J.length === 0 && /* @__PURE__ */ o(
|
|
2093
|
+
"div",
|
|
2094
|
+
{
|
|
2095
|
+
style: {
|
|
2096
|
+
padding: "24px",
|
|
2097
|
+
textAlign: "center",
|
|
2098
|
+
color: "var(--nice-text-secondary, #666)"
|
|
2099
|
+
},
|
|
2100
|
+
children: "No references found"
|
|
2101
|
+
}
|
|
2102
|
+
)
|
|
1973
2103
|
] }),
|
|
1974
2104
|
te && /* @__PURE__ */ o("div", { style: he.detail, children: /* @__PURE__ */ o(Dt, { citation: te }) })
|
|
1975
2105
|
] })
|
|
@@ -2281,13 +2411,34 @@ function tn({
|
|
|
2281
2411
|
}, [oe]), A = K(() => {
|
|
2282
2412
|
switch (V) {
|
|
2283
2413
|
case "dark":
|
|
2284
|
-
return [
|
|
2414
|
+
return [
|
|
2415
|
+
"var(--nice-primary-light, #60a5fa)",
|
|
2416
|
+
"var(--nice-accent-pink, #f472b6)",
|
|
2417
|
+
"var(--nice-success-light, #34d399)",
|
|
2418
|
+
"var(--nice-warning-light, #fbbf24)",
|
|
2419
|
+
"var(--nice-accent, #a78bfa)",
|
|
2420
|
+
"#fb923c"
|
|
2421
|
+
];
|
|
2285
2422
|
case "publication":
|
|
2286
2423
|
return ["#1f77b4", "#ff7f0e", "#2ca02c", "#d62728", "#9467bd", "#8c564b"];
|
|
2287
2424
|
case "presentation":
|
|
2288
|
-
return [
|
|
2425
|
+
return [
|
|
2426
|
+
"var(--nice-primary, #3b82f6)",
|
|
2427
|
+
"var(--nice-danger, #ef4444)",
|
|
2428
|
+
"var(--nice-success, #22c55e)",
|
|
2429
|
+
"var(--nice-warning, #f59e0b)",
|
|
2430
|
+
"var(--nice-accent, #8b5cf6)",
|
|
2431
|
+
"var(--nice-accent-pink, #ec4899)"
|
|
2432
|
+
];
|
|
2289
2433
|
default:
|
|
2290
|
-
return [
|
|
2434
|
+
return [
|
|
2435
|
+
"var(--nice-primary-hover, #2563eb)",
|
|
2436
|
+
"var(--nice-danger-dark, #dc2626)",
|
|
2437
|
+
"var(--nice-success-dark, #16a34a)",
|
|
2438
|
+
"#ca8a04",
|
|
2439
|
+
"var(--nice-accent, #7c3aed)",
|
|
2440
|
+
"var(--nice-accent-pink, #db2777)"
|
|
2441
|
+
];
|
|
2291
2442
|
}
|
|
2292
2443
|
}, [V]), k = K(() => {
|
|
2293
2444
|
switch (V) {
|
|
@@ -2906,11 +3057,26 @@ function nn({
|
|
|
2906
3057
|
), ee = K(() => {
|
|
2907
3058
|
switch (F) {
|
|
2908
3059
|
case "dark":
|
|
2909
|
-
return {
|
|
3060
|
+
return {
|
|
3061
|
+
bg: "var(--nice-bg, #1a1a2e)",
|
|
3062
|
+
text: "var(--nice-border, #e0e0e0)",
|
|
3063
|
+
axis: "var(--nice-text-secondary, #555)",
|
|
3064
|
+
grid: "var(--nice-text, #333)"
|
|
3065
|
+
};
|
|
2910
3066
|
case "scientific":
|
|
2911
|
-
return {
|
|
3067
|
+
return {
|
|
3068
|
+
bg: "var(--nice-bg-secondary, #f8f8f8)",
|
|
3069
|
+
text: "var(--nice-text, #333)",
|
|
3070
|
+
axis: "var(--nice-text-secondary, #666)",
|
|
3071
|
+
grid: "var(--nice-border, #ddd)"
|
|
3072
|
+
};
|
|
2912
3073
|
default:
|
|
2913
|
-
return {
|
|
3074
|
+
return {
|
|
3075
|
+
bg: "var(--nice-bg, #fff)",
|
|
3076
|
+
text: "var(--nice-text, #333)",
|
|
3077
|
+
axis: "var(--nice-text-secondary, #888)",
|
|
3078
|
+
grid: "var(--nice-border, #e0e0e0)"
|
|
3079
|
+
};
|
|
2914
3080
|
}
|
|
2915
3081
|
}, [F]), re = K(() => {
|
|
2916
3082
|
var k;
|
|
@@ -3133,7 +3299,17 @@ function nn({
|
|
|
3133
3299
|
...c === "bottom-left" && { bottom: 8, left: 8 }
|
|
3134
3300
|
},
|
|
3135
3301
|
children: e.map((A, k) => /* @__PURE__ */ u("div", { style: { display: "flex", alignItems: "center", gap: 4 }, children: [
|
|
3136
|
-
/* @__PURE__ */ o(
|
|
3302
|
+
/* @__PURE__ */ o(
|
|
3303
|
+
"span",
|
|
3304
|
+
{
|
|
3305
|
+
style: {
|
|
3306
|
+
width: 12,
|
|
3307
|
+
height: 12,
|
|
3308
|
+
background: "var(--nice-primary, #3498db)",
|
|
3309
|
+
borderRadius: 2
|
|
3310
|
+
}
|
|
3311
|
+
}
|
|
3312
|
+
),
|
|
3137
3313
|
A.name
|
|
3138
3314
|
] }, A.id || k))
|
|
3139
3315
|
}
|
|
@@ -3625,19 +3801,31 @@ function rn({
|
|
|
3625
3801
|
] }, g.id);
|
|
3626
3802
|
})
|
|
3627
3803
|
] }),
|
|
3628
|
-
/* @__PURE__ */ u(
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3804
|
+
/* @__PURE__ */ u(
|
|
3805
|
+
"div",
|
|
3806
|
+
{
|
|
3807
|
+
style: {
|
|
3808
|
+
position: "absolute",
|
|
3809
|
+
top: 8,
|
|
3810
|
+
left: 8,
|
|
3811
|
+
color: "var(--nice-bg, #fff)",
|
|
3812
|
+
fontSize: "0.8rem"
|
|
3813
|
+
},
|
|
3814
|
+
children: [
|
|
3815
|
+
/* @__PURE__ */ o("div", { style: { fontWeight: "bold" }, children: Y.name }),
|
|
3816
|
+
/* @__PURE__ */ u("div", { children: [
|
|
3817
|
+
Y.atoms.length,
|
|
3818
|
+
" atoms, ",
|
|
3819
|
+
Y.bonds.length,
|
|
3820
|
+
" bonds"
|
|
3821
|
+
] }),
|
|
3822
|
+
Y.formula && /* @__PURE__ */ u("div", { children: [
|
|
3823
|
+
"Formula: ",
|
|
3824
|
+
Y.formula
|
|
3825
|
+
] })
|
|
3826
|
+
]
|
|
3827
|
+
}
|
|
3828
|
+
),
|
|
3641
3829
|
G && /* @__PURE__ */ u(
|
|
3642
3830
|
"div",
|
|
3643
3831
|
{
|
|
@@ -4150,12 +4338,24 @@ function on({
|
|
|
4150
4338
|
]
|
|
4151
4339
|
}
|
|
4152
4340
|
),
|
|
4153
|
-
/* @__PURE__ */ u(
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4341
|
+
/* @__PURE__ */ u(
|
|
4342
|
+
"div",
|
|
4343
|
+
{
|
|
4344
|
+
style: {
|
|
4345
|
+
position: "absolute",
|
|
4346
|
+
top: 8,
|
|
4347
|
+
left: 8,
|
|
4348
|
+
fontSize: "0.75rem",
|
|
4349
|
+
color: "var(--nice-text-secondary, #666)"
|
|
4350
|
+
},
|
|
4351
|
+
children: [
|
|
4352
|
+
g.length,
|
|
4353
|
+
" nodes • ",
|
|
4354
|
+
N,
|
|
4355
|
+
" leaves"
|
|
4356
|
+
]
|
|
4357
|
+
}
|
|
4358
|
+
),
|
|
4159
4359
|
ee && /* @__PURE__ */ u(
|
|
4160
4360
|
"div",
|
|
4161
4361
|
{
|
|
@@ -4504,7 +4704,17 @@ function sn({
|
|
|
4504
4704
|
},
|
|
4505
4705
|
children: [
|
|
4506
4706
|
R,
|
|
4507
|
-
f.label && /* @__PURE__ */ o(
|
|
4707
|
+
f.label && /* @__PURE__ */ o(
|
|
4708
|
+
"text",
|
|
4709
|
+
{
|
|
4710
|
+
x: b.x + I,
|
|
4711
|
+
y: b.y,
|
|
4712
|
+
fontSize: 10,
|
|
4713
|
+
fill: "var(--nice-text, #333)",
|
|
4714
|
+
dominantBaseline: "middle",
|
|
4715
|
+
children: f.label
|
|
4716
|
+
}
|
|
4717
|
+
)
|
|
4508
4718
|
]
|
|
4509
4719
|
},
|
|
4510
4720
|
f.id
|
|
@@ -4583,7 +4793,15 @@ function sn({
|
|
|
4583
4793
|
/* @__PURE__ */ u("svg", { width: "100%", height: "100%", children: [
|
|
4584
4794
|
/* @__PURE__ */ o("defs", { children: /* @__PURE__ */ o("marker", { id: "arrow", markerWidth: "10", markerHeight: "10", refX: "9", refY: "3", orient: "auto", children: /* @__PURE__ */ o("path", { d: "M0,0 L0,6 L9,3 z", fill: "var(--nice-primary, #2196f3)" }) }) }),
|
|
4585
4795
|
d === "orthographic" && W && /* @__PURE__ */ u(ze, { children: [
|
|
4586
|
-
/* @__PURE__ */ o(
|
|
4796
|
+
/* @__PURE__ */ o(
|
|
4797
|
+
"path",
|
|
4798
|
+
{
|
|
4799
|
+
d: W,
|
|
4800
|
+
fill: w,
|
|
4801
|
+
stroke: "var(--nice-text-muted, #999)",
|
|
4802
|
+
strokeWidth: 1
|
|
4803
|
+
}
|
|
4804
|
+
),
|
|
4587
4805
|
/* @__PURE__ */ o(
|
|
4588
4806
|
"circle",
|
|
4589
4807
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nice2dev/ui-science",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"description": "Nice2Dev Scientific Visualization Components - Scientific charts, molecular viewers, phylogenetic trees, geographic maps, and 3D plots",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|