@nubisco/ui 1.21.1 → 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/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, _Xt = 3, U9 = /* @__PURE__ */ W(/* @__PURE__ */ m({
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(gXt, Math.min(_Xt, n + r));
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
- let I = o(() => {
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: "var(--nb-c-primary)"
20347
+ color: I(n)
20340
20348
  };
20341
20349
  }).filter(Boolean);
20342
20350
  });
20343
- function L() {
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 R = new MutationObserver(() => {
20366
+ let ee = new MutationObserver(() => {
20359
20367
  m.value++;
20360
20368
  });
20361
20369
  return C(() => {
20362
- s.value && R.observe(s.value, {
20370
+ s.value && ee.observe(s.value, {
20363
20371
  childList: !0,
20364
20372
  subtree: !0,
20365
20373
  attributes: !0
20366
- }), y(() => y(L));
20367
- }), S(() => R.disconnect()), t({
20368
- centerView: L,
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
- }, [u("div", {
20381
- class: "nb-blueprint__grid",
20382
- style: x({ transform: `translate(${d.value}px, ${f.value}px) scale(${p.value})` })
20383
- }, null, 4), u("div", {
20384
- class: "nb-blueprint__canvas",
20385
- style: x({
20386
- transform: `translate(${d.value}px, ${f.value}px) scale(${p.value})`,
20387
- transformOrigin: "0 0"
20388
- })
20389
- }, [(T(), l("svg", pXt, [(T(!0), l(n, null, k(I.value, (t, n) => (T(), l("path", {
20390
- key: n,
20391
- d: t.path,
20392
- fill: "none",
20393
- stroke: t.color,
20394
- "stroke-width": "2",
20395
- class: "nb-blueprint__wire",
20396
- onClick: (n) => e.$emit("disconnect", t.conn)
20397
- }, null, 8, mXt))), 128)), D.value ? (T(), l("path", {
20398
- key: 0,
20399
- d: D.value,
20400
- fill: "none",
20401
- stroke: "var(--nb-c-primary)",
20402
- "stroke-width": "2",
20403
- "stroke-dasharray": "6 3",
20404
- opacity: "0.6"
20405
- }, null, 8, hXt)) : c("", !0)])), A(e.$slots, "default", {}, void 0, !0)], 4)], 544));
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-3fa1739d"]]), vXt = { class: "nb-blueprint-card__ports nb-blueprint-card__ports--left" }, yXt = [
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
- ], bXt = { class: "nb-blueprint-card__body" }, xXt = { class: "nb-blueprint-card__header" }, SXt = ["title"], CXt = {
20413
- width: "8",
20414
- height: "8",
20415
- viewBox: "0 0 8 8"
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
- }, AXt = { class: "nb-blueprint-card__ports nb-blueprint-card__ports--right" }, jXt = [
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
- }, s = {
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 d(e) {
20496
- return a[e.dataType ?? "any"] ?? a.any;
20540
+ function g(e) {
20541
+ return m[e.dataType ?? "any"] ?? m.any;
20497
20542
  }
20498
- function f(e) {
20499
- return s[e.dataType ?? "any"] ?? "circle";
20543
+ function _(e) {
20544
+ return h[e.dataType ?? "any"] ?? "circle";
20500
20545
  }
20501
- return (t, a) => (T(), l("div", {
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({ "--nb-card-color": e.color || "var(--nb-c-primary)" }),
20508
- onMousedown: a[4] ||= U((n) => t.$emit("select", e.id), ["stop"])
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
- a[6] ||= u("div", { class: "nb-blueprint-card__indicator" }, null, -1),
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", [`nb-blueprint-card__port--${f(n)}`, n.required ? "nb-blueprint-card__port--required" : ""]]),
20515
- style: x({ "--pin-color": d(n) }),
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, yXt))), 128))]),
20528
- u("div", bXt, [u("div", xXt, [
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: a[0] ||= U((n) => t.$emit("toggle-collapse", e.id), ["stop"])
20533
- }, [(T(), l("svg", CXt, [u("path", {
20534
- d: e.collapsed ? "M2 1L6 4L2 7" : "M1 2L4 6L7 2",
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
- "stroke-linecap": "round",
20539
- "stroke-linejoin": "round"
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: 1,
20597
+ key: 0,
20548
20598
  class: "nb-blueprint-card__toggle",
20549
- onClick: a[2] ||= U(() => {}, ["stop"])
20599
+ onClick: o[2] ||= U(() => {}, ["stop"])
20550
20600
  }, [u("input", {
20551
20601
  type: "checkbox",
20552
20602
  checked: e.enabled,
20553
- onChange: a[1] ||= (n) => t.$emit("toggle", e.id, n.target.checked)
20554
- }, null, 40, EXt), a[5] ||= u("span", { class: "nb-blueprint-card__toggle-track" }, null, -1)])),
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: 2,
20606
+ key: 1,
20557
20607
  class: "nb-blueprint-card__remove",
20558
20608
  title: "Remove",
20559
- onClick: a[3] ||= U((n) => t.$emit("remove", e.id), ["stop"])
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
- t.$slots.default ? (T(), l("div", kXt, [A(t.$slots, "default", {}, void 0, !0)])) : c("", !0)
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", AXt, [(T(!0), l(n, null, k(i.value, (n) => (T(), l("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--${f(n)}`]]),
20570
- style: x({ "--pin-color": d(n) }),
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, jXt))), 128))])
20643
+ }, null, 46, FXt))), 128))])
20583
20644
  ], 38));
20584
20645
  }
20585
- }), [["__scopeId", "data-v-58ace267"]]), MXt = {
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
- }, NXt = { install(e) {
20631
- Object.entries(MXt).forEach(([t, n]) => {
20691
+ }, LXt = { install(e) {
20692
+ Object.entries(IXt).forEach(([t, n]) => {
20632
20693
  e.component(t, n);
20633
20694
  });
20634
- } }, PXt = /* @__PURE__ */ ae({ default: () => FXt });
20635
- function FXt(e) {
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 IXt = /* @__PURE__ */ ae({ default: () => Y9 }), K9 = /* @__PURE__ */ new Set(), q9 = (e) => {
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__ && LXt(e, 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 && RXt(e, t.value) : Z9(e, !0);
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
- `, LXt = (e, { header: t, body: n, tip: r, flavor: i = "default", delay: a = 400, animationTime: o = 300, position: s, overflowOnly: c, classExtra: l }) => {
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
- }, RXt = (e, { header: t, body: n, tip: r, position: i }) => {
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
- }, zXt = /* @__PURE__ */ Object.assign({
20752
- "./ContextMenu.directive.ts": PXt,
20753
- "./ToolTip.directive.ts": IXt
20754
- }), BXt = { install(e) {
20755
- Object.values(zXt).forEach((t) => {
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 VXt() {
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 HXt = { install(e) {
20852
+ var KXt = { install(e) {
20792
20853
  let t = sJt();
20793
20854
  e.provide(g9, t);
20794
- } }, $9 = /* @__PURE__ */ Object.assign({}), UXt = { install(e) {
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
- } }, WXt = { install(e) {
20800
- e.use(NXt), e.use(BXt);
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, HXt 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, UXt as NubiscoUILabs, WXt as default, Y9 as nbTooltipDirective, cJt as useCommandPalette, VXt as useContextMenu };
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