@nubisco/ui 1.21.0 → 1.22.0
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/components/Blueprint.vue.d.ts.map +1 -1
- package/dist/components/BlueprintCard.vue.d.ts +2 -0
- package/dist/components/BlueprintCard.vue.d.ts.map +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +166 -105
- package/dist/index.mjs.map +1 -1
- package/dist/main.d.ts +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/ui.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -20279,7 +20279,7 @@ var lJt = { class: "nb-command-palette__input-row" }, uJt = ["placeholder"], dJt
|
|
|
20279
20279
|
"d",
|
|
20280
20280
|
"stroke",
|
|
20281
20281
|
"onClick"
|
|
20282
|
-
], hXt = ["d"], gXt = .2,
|
|
20282
|
+
], hXt = ["d", "stroke"], gXt = ["d"], _Xt = .2, vXt = 3, U9 = /* @__PURE__ */ W(/* @__PURE__ */ m({
|
|
20283
20283
|
__name: "Blueprint",
|
|
20284
20284
|
props: { connections: { default: () => [] } },
|
|
20285
20285
|
emits: ["connect", "disconnect"],
|
|
@@ -20297,7 +20297,7 @@ var lJt = { class: "nb-command-palette__input-row" }, uJt = ["placeholder"], dJt
|
|
|
20297
20297
|
function E(e) {
|
|
20298
20298
|
let t = s.value?.getBoundingClientRect();
|
|
20299
20299
|
if (!t) return;
|
|
20300
|
-
let n = p.value, r = e.deltaY > 0 ? -.1 : .1, i = Math.max(
|
|
20300
|
+
let n = p.value, r = e.deltaY > 0 ? -.1 : .1, i = Math.max(_Xt, Math.min(vXt, n + r));
|
|
20301
20301
|
if (i === n) return;
|
|
20302
20302
|
let a = e.clientX - t.left, o = e.clientY - t.top, c = (a - d.value) / n, l = (o - f.value) / n;
|
|
20303
20303
|
d.value = a - c * i, f.value = o - l * i, p.value = i;
|
|
@@ -20326,7 +20326,15 @@ var lJt = { class: "nb-command-palette__input-row" }, uJt = ["placeholder"], dJt
|
|
|
20326
20326
|
toPort: n.portId
|
|
20327
20327
|
}), j = null, D.value = null;
|
|
20328
20328
|
}
|
|
20329
|
-
|
|
20329
|
+
function I(e) {
|
|
20330
|
+
let t = e.closest(".nb-blueprint-card");
|
|
20331
|
+
if (t) {
|
|
20332
|
+
let e = getComputedStyle(t).getPropertyValue("--nb-card-color").trim();
|
|
20333
|
+
if (e && !e.startsWith("var(")) return e;
|
|
20334
|
+
}
|
|
20335
|
+
return "var(--nb-c-primary)";
|
|
20336
|
+
}
|
|
20337
|
+
let L = o(() => {
|
|
20330
20338
|
if (m.value, !s.value) return [];
|
|
20331
20339
|
let e = s.value.getBoundingClientRect();
|
|
20332
20340
|
return i.connections.map((t) => {
|
|
@@ -20336,11 +20344,11 @@ var lJt = { class: "nb-command-palette__input-row" }, uJt = ["placeholder"], dJt
|
|
|
20336
20344
|
return {
|
|
20337
20345
|
path: `M ${o} ${c} C ${o + m} ${c}, ${l - m} ${u}, ${l} ${u}`,
|
|
20338
20346
|
conn: t,
|
|
20339
|
-
color:
|
|
20347
|
+
color: I(n)
|
|
20340
20348
|
};
|
|
20341
20349
|
}).filter(Boolean);
|
|
20342
20350
|
});
|
|
20343
|
-
function
|
|
20351
|
+
function R() {
|
|
20344
20352
|
if (p.value = 1, !s.value) return;
|
|
20345
20353
|
let e = s.value.querySelectorAll(".nb-blueprint-card");
|
|
20346
20354
|
if (e.length === 0) {
|
|
@@ -20355,17 +20363,17 @@ var lJt = { class: "nb-command-palette__input-row" }, uJt = ["placeholder"], dJt
|
|
|
20355
20363
|
let o = (n + i) / 2, c = (r + a) / 2;
|
|
20356
20364
|
d.value = t.width / 2 - o, f.value = t.height / 2 - c;
|
|
20357
20365
|
}
|
|
20358
|
-
let
|
|
20366
|
+
let ee = new MutationObserver(() => {
|
|
20359
20367
|
m.value++;
|
|
20360
20368
|
});
|
|
20361
20369
|
return C(() => {
|
|
20362
|
-
s.value &&
|
|
20370
|
+
s.value && ee.observe(s.value, {
|
|
20363
20371
|
childList: !0,
|
|
20364
20372
|
subtree: !0,
|
|
20365
20373
|
attributes: !0
|
|
20366
|
-
}), y(() => y(
|
|
20367
|
-
}), S(() =>
|
|
20368
|
-
centerView:
|
|
20374
|
+
}), y(() => y(R));
|
|
20375
|
+
}), S(() => ee.disconnect()), t({
|
|
20376
|
+
centerView: R,
|
|
20369
20377
|
onPortMouseDown: M,
|
|
20370
20378
|
onPortMouseUp: F,
|
|
20371
20379
|
panX: d,
|
|
@@ -20377,52 +20385,72 @@ var lJt = { class: "nb-command-palette__input-row" }, uJt = ["placeholder"], dJt
|
|
|
20377
20385
|
class: "nb-blueprint",
|
|
20378
20386
|
onMousedown: v,
|
|
20379
20387
|
onWheel: U(E, ["prevent"])
|
|
20380
|
-
}, [
|
|
20381
|
-
class: "nb-
|
|
20382
|
-
|
|
20383
|
-
|
|
20384
|
-
|
|
20385
|
-
|
|
20386
|
-
|
|
20387
|
-
|
|
20388
|
-
|
|
20389
|
-
|
|
20390
|
-
|
|
20391
|
-
|
|
20392
|
-
|
|
20393
|
-
|
|
20394
|
-
|
|
20395
|
-
|
|
20396
|
-
|
|
20397
|
-
|
|
20398
|
-
|
|
20399
|
-
|
|
20400
|
-
|
|
20401
|
-
|
|
20402
|
-
|
|
20403
|
-
|
|
20404
|
-
|
|
20405
|
-
|
|
20388
|
+
}, [
|
|
20389
|
+
t[0] ||= u("div", { class: "nb-blueprint__ambient" }, null, -1),
|
|
20390
|
+
u("div", {
|
|
20391
|
+
class: "nb-blueprint__grid",
|
|
20392
|
+
style: x({ transform: `translate(${d.value}px, ${f.value}px) scale(${p.value})` })
|
|
20393
|
+
}, null, 4),
|
|
20394
|
+
u("div", {
|
|
20395
|
+
class: "nb-blueprint__canvas",
|
|
20396
|
+
style: x({
|
|
20397
|
+
transform: `translate(${d.value}px, ${f.value}px) scale(${p.value})`,
|
|
20398
|
+
transformOrigin: "0 0"
|
|
20399
|
+
})
|
|
20400
|
+
}, [(T(), l("svg", pXt, [
|
|
20401
|
+
(T(!0), l(n, null, k(L.value, (t, n) => (T(), l("path", {
|
|
20402
|
+
key: n,
|
|
20403
|
+
d: t.path,
|
|
20404
|
+
fill: "none",
|
|
20405
|
+
stroke: t.color,
|
|
20406
|
+
"stroke-width": "1.5",
|
|
20407
|
+
class: "nb-blueprint__wire",
|
|
20408
|
+
style: x({ filter: `drop-shadow(0 0 6px ${t.color})` }),
|
|
20409
|
+
onClick: (n) => e.$emit("disconnect", t.conn)
|
|
20410
|
+
}, null, 12, mXt))), 128)),
|
|
20411
|
+
(T(!0), l(n, null, k(L.value, (e, t) => (T(), l("path", {
|
|
20412
|
+
key: `flow-${t}`,
|
|
20413
|
+
d: e.path,
|
|
20414
|
+
fill: "none",
|
|
20415
|
+
stroke: e.color,
|
|
20416
|
+
"stroke-width": "1.5",
|
|
20417
|
+
"stroke-dasharray": "4 8",
|
|
20418
|
+
class: "nb-blueprint__wire-flow",
|
|
20419
|
+
"pointer-events": "none"
|
|
20420
|
+
}, null, 8, hXt))), 128)),
|
|
20421
|
+
D.value ? (T(), l("path", {
|
|
20422
|
+
key: 0,
|
|
20423
|
+
d: D.value,
|
|
20424
|
+
fill: "none",
|
|
20425
|
+
stroke: "var(--nb-c-primary)",
|
|
20426
|
+
"stroke-width": "2",
|
|
20427
|
+
"stroke-dasharray": "6 3",
|
|
20428
|
+
opacity: "0.6"
|
|
20429
|
+
}, null, 8, gXt)) : c("", !0)
|
|
20430
|
+
])), A(e.$slots, "default", {}, void 0, !0)], 4)
|
|
20431
|
+
], 544));
|
|
20406
20432
|
}
|
|
20407
|
-
}), [["__scopeId", "data-v-
|
|
20433
|
+
}), [["__scopeId", "data-v-228d6b91"]]), yXt = { class: "nb-blueprint-card__ports nb-blueprint-card__ports--left" }, bXt = [
|
|
20408
20434
|
"data-port",
|
|
20409
20435
|
"title",
|
|
20410
20436
|
"onMousedown",
|
|
20411
20437
|
"onMouseup"
|
|
20412
|
-
],
|
|
20413
|
-
|
|
20414
|
-
|
|
20415
|
-
|
|
20416
|
-
}, wXt = ["d"], TXt = { class: "nb-blueprint-card__title" }, EXt = ["checked"], DXt = {
|
|
20438
|
+
], xXt = { class: "nb-blueprint-card__body" }, SXt = { class: "nb-blueprint-card__header" }, CXt = ["title"], wXt = { class: "nb-blueprint-card__title-group" }, TXt = { class: "nb-blueprint-card__name" }, EXt = {
|
|
20439
|
+
key: 0,
|
|
20440
|
+
class: "nb-blueprint-card__tag"
|
|
20441
|
+
}, DXt = ["checked"], OXt = {
|
|
20417
20442
|
key: 0,
|
|
20418
|
-
class: "nb-blueprint-card__category"
|
|
20419
|
-
}, OXt = {
|
|
20420
|
-
key: 1,
|
|
20421
20443
|
class: "nb-blueprint-card__preview"
|
|
20422
20444
|
}, kXt = {
|
|
20445
|
+
key: 1,
|
|
20446
|
+
class: "nb-blueprint-card__params"
|
|
20447
|
+
}, AXt = { class: "nb-blueprint-card__row-label" }, jXt = { class: "nb-blueprint-card__row-value" }, MXt = {
|
|
20448
|
+
key: 0,
|
|
20449
|
+
class: "nb-blueprint-card__row-unit"
|
|
20450
|
+
}, NXt = {
|
|
20423
20451
|
key: 2,
|
|
20424
20452
|
class: "nb-blueprint-card__content"
|
|
20425
|
-
},
|
|
20453
|
+
}, PXt = { class: "nb-blueprint-card__ports nb-blueprint-card__ports--right" }, FXt = [
|
|
20426
20454
|
"data-port",
|
|
20427
20455
|
"title",
|
|
20428
20456
|
"onMousedown",
|
|
@@ -20443,6 +20471,7 @@ var lJt = { class: "nb-command-palette__input-row" }, uJt = ["placeholder"], dJt
|
|
|
20443
20471
|
},
|
|
20444
20472
|
category: { default: "" },
|
|
20445
20473
|
ports: { default: () => [] },
|
|
20474
|
+
connectedPorts: { default: () => [] },
|
|
20446
20475
|
x: { default: 0 },
|
|
20447
20476
|
y: { default: 0 },
|
|
20448
20477
|
removable: {
|
|
@@ -20454,7 +20483,8 @@ var lJt = { class: "nb-command-palette__input-row" }, uJt = ["placeholder"], dJt
|
|
|
20454
20483
|
default: !1
|
|
20455
20484
|
},
|
|
20456
20485
|
status: { default: "none" },
|
|
20457
|
-
preview: { default: "" }
|
|
20486
|
+
preview: { default: "" },
|
|
20487
|
+
parameters: { default: () => [] }
|
|
20458
20488
|
},
|
|
20459
20489
|
emits: [
|
|
20460
20490
|
"select",
|
|
@@ -20465,7 +20495,22 @@ var lJt = { class: "nb-command-palette__input-row" }, uJt = ["placeholder"], dJt
|
|
|
20465
20495
|
"port-mouseup"
|
|
20466
20496
|
],
|
|
20467
20497
|
setup(e) {
|
|
20468
|
-
let t = e, r = o(() => t.ports.filter((e) => e.type === "input")), i = o(() => t.ports.filter((e) => e.type === "output")), a = {
|
|
20498
|
+
let t = e, r = o(() => t.ports.filter((e) => e.type === "input")), i = o(() => t.ports.filter((e) => e.type === "output")), a = o(() => {
|
|
20499
|
+
let e = t.category || "";
|
|
20500
|
+
return !t.enabled && e ? `${e} \u00b7 off` : e;
|
|
20501
|
+
}), s = o(() => {
|
|
20502
|
+
let e = t.color;
|
|
20503
|
+
if (!e || e.startsWith("var(")) return "rgba(139, 124, 255, 0.18)";
|
|
20504
|
+
if (e.startsWith("#") && (e.length === 7 || e.length === 4)) {
|
|
20505
|
+
let t = e.length === 4 ? `#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}` : e;
|
|
20506
|
+
return `rgba(${parseInt(t.slice(1, 3), 16)}, ${parseInt(t.slice(3, 5), 16)}, ${parseInt(t.slice(5, 7), 16)}, 0.18)`;
|
|
20507
|
+
}
|
|
20508
|
+
return "rgba(139, 124, 255, 0.18)";
|
|
20509
|
+
}), f = o(() => new Set(t.connectedPorts));
|
|
20510
|
+
function p(e) {
|
|
20511
|
+
return f.value.has(e);
|
|
20512
|
+
}
|
|
20513
|
+
let m = {
|
|
20469
20514
|
geometry: "#6366f1",
|
|
20470
20515
|
celestial: "#f97316",
|
|
20471
20516
|
lighting: "#f59e0b",
|
|
@@ -20478,7 +20523,7 @@ var lJt = { class: "nb-command-palette__input-row" }, uJt = ["placeholder"], dJt
|
|
|
20478
20523
|
color: "#fb923c",
|
|
20479
20524
|
asset: "#a78bfa",
|
|
20480
20525
|
any: "#64748b"
|
|
20481
|
-
},
|
|
20526
|
+
}, h = {
|
|
20482
20527
|
geometry: "circle",
|
|
20483
20528
|
celestial: "circle",
|
|
20484
20529
|
lighting: "circle",
|
|
@@ -20492,27 +20537,33 @@ var lJt = { class: "nb-command-palette__input-row" }, uJt = ["placeholder"], dJt
|
|
|
20492
20537
|
asset: "square",
|
|
20493
20538
|
any: "circle"
|
|
20494
20539
|
};
|
|
20495
|
-
function
|
|
20496
|
-
return
|
|
20540
|
+
function g(e) {
|
|
20541
|
+
return m[e.dataType ?? "any"] ?? m.any;
|
|
20497
20542
|
}
|
|
20498
|
-
function
|
|
20499
|
-
return
|
|
20543
|
+
function _(e) {
|
|
20544
|
+
return h[e.dataType ?? "any"] ?? "circle";
|
|
20500
20545
|
}
|
|
20501
|
-
return (t,
|
|
20546
|
+
return (t, o) => (T(), l("div", {
|
|
20502
20547
|
class: b(["nb-blueprint-card", {
|
|
20503
20548
|
"nb-blueprint-card--selected": e.selected,
|
|
20504
20549
|
"nb-blueprint-card--disabled": !e.enabled,
|
|
20505
20550
|
"nb-blueprint-card--collapsed": e.collapsed
|
|
20506
20551
|
}]),
|
|
20507
|
-
style: x({
|
|
20508
|
-
|
|
20552
|
+
style: x({
|
|
20553
|
+
"--nb-card-color": e.color || "var(--nb-c-primary)",
|
|
20554
|
+
"--nb-card-glow": s.value
|
|
20555
|
+
}),
|
|
20556
|
+
onMousedown: o[4] ||= U((n) => t.$emit("select", e.id), ["stop"])
|
|
20509
20557
|
}, [
|
|
20510
|
-
|
|
20511
|
-
u("div", vXt, [(T(!0), l(n, null, k(r.value, (n) => (T(), l("div", {
|
|
20558
|
+
u("div", yXt, [(T(!0), l(n, null, k(r.value, (n) => (T(), l("div", {
|
|
20512
20559
|
key: n.id,
|
|
20513
20560
|
"data-port": `${e.id}:${n.id}`,
|
|
20514
|
-
class: b(["nb-blueprint-card__port", [
|
|
20515
|
-
|
|
20561
|
+
class: b(["nb-blueprint-card__port", [
|
|
20562
|
+
`nb-blueprint-card__port--${_(n)}`,
|
|
20563
|
+
n.required ? "nb-blueprint-card__port--required" : "",
|
|
20564
|
+
p(n.id) ? "nb-blueprint-card__port--connected" : ""
|
|
20565
|
+
]]),
|
|
20566
|
+
style: x({ "--pin-color": g(n) }),
|
|
20516
20567
|
title: n.label,
|
|
20517
20568
|
onMousedown: U((r) => t.$emit("port-mousedown", {
|
|
20518
20569
|
nodeId: e.id,
|
|
@@ -20524,50 +20575,60 @@ var lJt = { class: "nb-command-palette__input-row" }, uJt = ["placeholder"], dJt
|
|
|
20524
20575
|
portId: n.id,
|
|
20525
20576
|
type: "input"
|
|
20526
20577
|
}), ["stop"])
|
|
20527
|
-
}, null, 46,
|
|
20528
|
-
u("div",
|
|
20578
|
+
}, null, 46, bXt))), 128))]),
|
|
20579
|
+
u("div", xXt, [u("div", SXt, [
|
|
20529
20580
|
u("button", {
|
|
20530
20581
|
class: "nb-blueprint-card__collapse",
|
|
20531
20582
|
title: e.collapsed ? "Expand" : "Collapse",
|
|
20532
|
-
onClick:
|
|
20533
|
-
}, [
|
|
20534
|
-
|
|
20583
|
+
onClick: o[0] ||= U((n) => t.$emit("toggle-collapse", e.id), ["stop"])
|
|
20584
|
+
}, [...o[5] ||= [u("svg", {
|
|
20585
|
+
width: "14",
|
|
20586
|
+
height: "14",
|
|
20587
|
+
viewBox: "0 0 16 16",
|
|
20535
20588
|
fill: "none",
|
|
20536
20589
|
stroke: "currentColor",
|
|
20537
|
-
"stroke-width": "1.5"
|
|
20538
|
-
|
|
20539
|
-
|
|
20540
|
-
}, null, 8, wXt)]))], 8, SXt),
|
|
20541
|
-
e.status && e.status !== "none" ? (T(), l("span", {
|
|
20590
|
+
"stroke-width": "1.5"
|
|
20591
|
+
}, [u("polyline", { points: "4 6 8 10 12 6" })], -1)]], 8, CXt),
|
|
20592
|
+
u("div", wXt, [u("span", TXt, [d(P(e.title) + " ", 1), e.status && e.status !== "none" ? (T(), l("span", {
|
|
20542
20593
|
key: 0,
|
|
20543
20594
|
class: b(["nb-blueprint-card__status", `nb-blueprint-card__status--${e.status}`])
|
|
20544
|
-
}, null, 2)) : c("", !0),
|
|
20545
|
-
u("span", TXt, P(e.title), 1),
|
|
20595
|
+
}, null, 2)) : c("", !0)]), e.category ? (T(), l("span", EXt, P(a.value), 1)) : c("", !0)]),
|
|
20546
20596
|
e.enabled === void 0 ? c("", !0) : (T(), l("label", {
|
|
20547
|
-
key:
|
|
20597
|
+
key: 0,
|
|
20548
20598
|
class: "nb-blueprint-card__toggle",
|
|
20549
|
-
onClick:
|
|
20599
|
+
onClick: o[2] ||= U(() => {}, ["stop"])
|
|
20550
20600
|
}, [u("input", {
|
|
20551
20601
|
type: "checkbox",
|
|
20552
20602
|
checked: e.enabled,
|
|
20553
|
-
onChange:
|
|
20554
|
-
}, null, 40,
|
|
20603
|
+
onChange: o[1] ||= (n) => t.$emit("toggle", e.id, n.target.checked)
|
|
20604
|
+
}, null, 40, DXt), o[6] ||= u("span", { class: "nb-blueprint-card__toggle-track" }, null, -1)])),
|
|
20555
20605
|
e.removable ? (T(), l("button", {
|
|
20556
|
-
key:
|
|
20606
|
+
key: 1,
|
|
20557
20607
|
class: "nb-blueprint-card__remove",
|
|
20558
20608
|
title: "Remove",
|
|
20559
|
-
onClick:
|
|
20609
|
+
onClick: o[3] ||= U((n) => t.$emit("remove", e.id), ["stop"])
|
|
20560
20610
|
}, " × ")) : c("", !0)
|
|
20561
20611
|
]), e.collapsed ? c("", !0) : (T(), l(n, { key: 0 }, [
|
|
20562
|
-
e.category ? (T(), l("span", DXt, P(e.category), 1)) : c("", !0),
|
|
20563
20612
|
e.preview ? (T(), l("span", OXt, P(e.preview), 1)) : c("", !0),
|
|
20564
|
-
|
|
20613
|
+
e.parameters && e.parameters.length ? (T(), l("div", kXt, [(T(!0), l(n, null, k(e.parameters, (e) => (T(), l("div", {
|
|
20614
|
+
key: e.label,
|
|
20615
|
+
class: "nb-blueprint-card__row"
|
|
20616
|
+
}, [
|
|
20617
|
+
u("span", AXt, P(e.label), 1),
|
|
20618
|
+
u("span", jXt, [d(P(e.value) + " ", 1), e.unit ? (T(), l("em", MXt, P(e.unit), 1)) : c("", !0)]),
|
|
20619
|
+
e.bar === void 0 ? c("", !0) : (T(), l("div", {
|
|
20620
|
+
key: 0,
|
|
20621
|
+
class: "nb-blueprint-card__row-bar",
|
|
20622
|
+
style: x({ "--bar-progress": `${e.bar}%` })
|
|
20623
|
+
}, null, 4))
|
|
20624
|
+
]))), 128))])) : c("", !0),
|
|
20625
|
+
t.$slots.default ? (T(), l("div", NXt, [A(t.$slots, "default", {}, void 0, !0)])) : c("", !0)
|
|
20565
20626
|
], 64))]),
|
|
20566
|
-
u("div",
|
|
20627
|
+
u("div", PXt, [(T(!0), l(n, null, k(i.value, (n) => (T(), l("div", {
|
|
20567
20628
|
key: n.id,
|
|
20568
20629
|
"data-port": `${e.id}:${n.id}`,
|
|
20569
|
-
class: b(["nb-blueprint-card__port", [`nb-blueprint-card__port--${
|
|
20570
|
-
style: x({ "--pin-color":
|
|
20630
|
+
class: b(["nb-blueprint-card__port", [`nb-blueprint-card__port--${_(n)}`, p(n.id) ? "nb-blueprint-card__port--connected" : ""]]),
|
|
20631
|
+
style: x({ "--pin-color": g(n) }),
|
|
20571
20632
|
title: n.label,
|
|
20572
20633
|
onMousedown: U((r) => t.$emit("port-mousedown", {
|
|
20573
20634
|
nodeId: e.id,
|
|
@@ -20579,10 +20640,10 @@ var lJt = { class: "nb-command-palette__input-row" }, uJt = ["placeholder"], dJt
|
|
|
20579
20640
|
portId: n.id,
|
|
20580
20641
|
type: "output"
|
|
20581
20642
|
}), ["stop"])
|
|
20582
|
-
}, null, 46,
|
|
20643
|
+
}, null, 46, FXt))), 128))])
|
|
20583
20644
|
], 38));
|
|
20584
20645
|
}
|
|
20585
|
-
}), [["__scopeId", "data-v-
|
|
20646
|
+
}), [["__scopeId", "data-v-34b9f4d6"]]), IXt = {
|
|
20586
20647
|
NbAiLabel: ue,
|
|
20587
20648
|
NbBadge: me,
|
|
20588
20649
|
NbBarChart: ke,
|
|
@@ -20627,12 +20688,12 @@ var lJt = { class: "nb-command-palette__input-row" }, uJt = ["placeholder"], dJt
|
|
|
20627
20688
|
NbShellPanel: H9,
|
|
20628
20689
|
NbBlueprint: U9,
|
|
20629
20690
|
NbBlueprintCard: W9
|
|
20630
|
-
},
|
|
20631
|
-
Object.entries(
|
|
20691
|
+
}, LXt = { install(e) {
|
|
20692
|
+
Object.entries(IXt).forEach(([t, n]) => {
|
|
20632
20693
|
e.component(t, n);
|
|
20633
20694
|
});
|
|
20634
|
-
} },
|
|
20635
|
-
function
|
|
20695
|
+
} }, RXt = /* @__PURE__ */ ae({ default: () => zXt });
|
|
20696
|
+
function zXt(e) {
|
|
20636
20697
|
e.directive("nb-context-menu", {
|
|
20637
20698
|
mounted(e, t) {
|
|
20638
20699
|
let n = (e) => {
|
|
@@ -20667,7 +20728,7 @@ function G9(e) {
|
|
|
20667
20728
|
}
|
|
20668
20729
|
//#endregion
|
|
20669
20730
|
//#region src/directives/ToolTip.directive.ts
|
|
20670
|
-
var
|
|
20731
|
+
var BXt = /* @__PURE__ */ ae({ default: () => Y9 }), K9 = /* @__PURE__ */ new Set(), q9 = (e) => {
|
|
20671
20732
|
if (Array.isArray(e)) return e.map((e) => q9(e)).join("");
|
|
20672
20733
|
if (!e || typeof e != "object" || !e.component) return "";
|
|
20673
20734
|
let { component: t, props: n = {}, children: r, content: i } = e, a = r === void 0 ? i : r, o = Object.entries(n).map(([e, t]) => `${e}="${G9(String(t))}"`).join(" "), s = Array.isArray(a) ? q9(a) : a === void 0 ? "" : G9(String(a));
|
|
@@ -20680,7 +20741,7 @@ var IXt = /* @__PURE__ */ ae({ default: () => Y9 }), K9 = /* @__PURE__ */ new Se
|
|
|
20680
20741
|
mounted(e, t) {
|
|
20681
20742
|
let n;
|
|
20682
20743
|
e.__showTooltip__ = () => {
|
|
20683
|
-
clearTimeout(n), e.__tooltipBinding__ &&
|
|
20744
|
+
clearTimeout(n), e.__tooltipBinding__ && VXt(e, e.__tooltipBinding__);
|
|
20684
20745
|
}, e.__hideTooltip__ = (t = 150) => {
|
|
20685
20746
|
n = setTimeout(() => {
|
|
20686
20747
|
Z9(e, t <= 0);
|
|
@@ -20690,7 +20751,7 @@ var IXt = /* @__PURE__ */ ae({ default: () => Y9 }), K9 = /* @__PURE__ */ new Se
|
|
|
20690
20751
|
}, e.__tooltipBinding__ = t.value, e.__showHandler__ = () => e.__showTooltip__?.(), e.__hideHandler__ = () => e.__hideTooltip__?.(), e.addEventListener("mouseenter", e.__showHandler__), e.addEventListener("mouseleave", e.__hideHandler__), e.addEventListener("mousemove", e.__mouseMove__), window.addEventListener("scroll", e.__hideHandler__);
|
|
20691
20752
|
},
|
|
20692
20753
|
updated(e, t) {
|
|
20693
|
-
e.__tooltipBinding__ = t.value, t.value ? e.tooltipElement &&
|
|
20754
|
+
e.__tooltipBinding__ = t.value, t.value ? e.tooltipElement && HXt(e, t.value) : Z9(e, !0);
|
|
20694
20755
|
},
|
|
20695
20756
|
unmounted(e) {
|
|
20696
20757
|
Z9(e, !0), e.__showHandler__ && e.removeEventListener("mouseenter", e.__showHandler__), e.__hideHandler__ && e.removeEventListener("mouseleave", e.__hideHandler__), e.__hideHandler__ && window.removeEventListener("scroll", e.__hideHandler__);
|
|
@@ -20702,7 +20763,7 @@ var IXt = /* @__PURE__ */ ae({ default: () => Y9 }), K9 = /* @__PURE__ */ new Se
|
|
|
20702
20763
|
<div class="nb-tooltip-body">${J9(t)}</div>
|
|
20703
20764
|
<div class="nb-tooltip-tip">${J9(n)}</div>
|
|
20704
20765
|
</div>
|
|
20705
|
-
`,
|
|
20766
|
+
`, VXt = (e, { header: t, body: n, tip: r, flavor: i = "default", delay: a = 400, animationTime: o = 300, position: s, overflowOnly: c, classExtra: l }) => {
|
|
20706
20767
|
let u = e.tooltipElement;
|
|
20707
20768
|
if (u && u.remove(), c) {
|
|
20708
20769
|
let t = e.getBoundingClientRect();
|
|
@@ -20721,7 +20782,7 @@ var IXt = /* @__PURE__ */ ae({ default: () => Y9 }), K9 = /* @__PURE__ */ new Se
|
|
|
20721
20782
|
clearTimeout(e.__showTimer__), n && (t ? n.remove() : (n.style.animation = "tooltipDisappear 200ms ease-in-out forwards", setTimeout(() => {
|
|
20722
20783
|
n.remove();
|
|
20723
20784
|
}, 200)), K9.delete(e));
|
|
20724
|
-
},
|
|
20785
|
+
}, HXt = (e, { header: t, body: n, tip: r, position: i }) => {
|
|
20725
20786
|
let a = e.tooltipElement;
|
|
20726
20787
|
a && (a.innerHTML = X9({
|
|
20727
20788
|
header: t,
|
|
@@ -20748,17 +20809,17 @@ var IXt = /* @__PURE__ */ ae({ default: () => Y9 }), K9 = /* @__PURE__ */ new Se
|
|
|
20748
20809
|
break;
|
|
20749
20810
|
}
|
|
20750
20811
|
t && (t.style.top = `${l}px`, t.style.left = `${u}px`);
|
|
20751
|
-
},
|
|
20752
|
-
"./ContextMenu.directive.ts":
|
|
20753
|
-
"./ToolTip.directive.ts":
|
|
20754
|
-
}),
|
|
20755
|
-
Object.values(
|
|
20812
|
+
}, UXt = /* @__PURE__ */ Object.assign({
|
|
20813
|
+
"./ContextMenu.directive.ts": RXt,
|
|
20814
|
+
"./ToolTip.directive.ts": BXt
|
|
20815
|
+
}), WXt = { install(e) {
|
|
20816
|
+
Object.values(UXt).forEach((t) => {
|
|
20756
20817
|
typeof t.default == "function" && t.default(e);
|
|
20757
20818
|
});
|
|
20758
20819
|
} };
|
|
20759
20820
|
//#endregion
|
|
20760
20821
|
//#region src/composables/useContextMenu.composable.ts
|
|
20761
|
-
function
|
|
20822
|
+
function GXt() {
|
|
20762
20823
|
let e = O(!1), t = O({
|
|
20763
20824
|
x: 0,
|
|
20764
20825
|
y: 0
|
|
@@ -20788,18 +20849,18 @@ function VXt() {
|
|
|
20788
20849
|
}
|
|
20789
20850
|
//#endregion
|
|
20790
20851
|
//#region src/plugins/commandPalette.ts
|
|
20791
|
-
var
|
|
20852
|
+
var KXt = { install(e) {
|
|
20792
20853
|
let t = sJt();
|
|
20793
20854
|
e.provide(g9, t);
|
|
20794
|
-
} }, $9 = /* @__PURE__ */ Object.assign({}),
|
|
20855
|
+
} }, $9 = /* @__PURE__ */ Object.assign({}), qXt = { install(e) {
|
|
20795
20856
|
Object.keys($9).forEach((t) => {
|
|
20796
20857
|
let n = `Nb${t.replace(/(.+\/)(\w+)(\.vue)$/, "$2")}`, r = $9[t];
|
|
20797
20858
|
e.component(n, r.default);
|
|
20798
20859
|
});
|
|
20799
|
-
} },
|
|
20800
|
-
e.use(
|
|
20860
|
+
} }, JXt = { install(e) {
|
|
20861
|
+
e.use(LXt), e.use(WXt);
|
|
20801
20862
|
} };
|
|
20802
20863
|
//#endregion
|
|
20803
|
-
export { me as NbBadge, ke as NbBarChart, U9 as NbBlueprint, W9 as NbBlueprintCard, V9 as NbBottomPanel, Ae as NbBreadcrumbs, H8 as NbButton, U8 as NbCheckbox, W8 as NbColorStrip, _9 as NbCommandPalette,
|
|
20864
|
+
export { me as NbBadge, ke as NbBarChart, U9 as NbBlueprint, W9 as NbBlueprintCard, V9 as NbBottomPanel, Ae as NbBreadcrumbs, H8 as NbButton, U8 as NbCheckbox, W8 as NbColorStrip, _9 as NbCommandPalette, KXt as NbCommandPalettePlugin, Y8 as NbFlag, J8 as NbGanttChart, X8 as NbGrid, V8 as NbIcon, o9 as NbJsonTree, l9 as NbLabel, s9 as NbLineChart, u9 as NbMenu, d9 as NbMenuBar, f9 as NbMenuBarItem, m9 as NbMenuDivider, p9 as NbMenuItem, y9 as NbMessage, b9 as NbModal, x9 as NbNumberInput, S9 as NbPanel, C9 as NbPieChart, T9 as NbRadio, E9 as NbSelect, D9 as NbShell, H9 as NbShellPanel, O9 as NbSidebarLink, k9 as NbSlider, M9 as NbSparkline, h9 as NbSubmenu, F9 as NbTextInput, I9 as NbToast, z9 as NbTree, B9 as NbTreeNode, qXt as NubiscoUILabs, JXt as default, Y9 as nbTooltipDirective, cJt as useCommandPalette, GXt as useContextMenu };
|
|
20804
20865
|
|
|
20805
20866
|
//# sourceMappingURL=index.mjs.map
|