@nubisco/ui 1.24.0 → 1.25.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 +3 -0
- package/dist/components/Blueprint.vue.d.ts.map +1 -1
- package/dist/components/BlueprintCard.vue.d.ts.map +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +236 -229
- package/dist/index.mjs.map +1 -1
- package/dist/ui.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import * as e from "vue";
|
|
2
2
|
import { Comment as t, Fragment as n, Teleport as r, Text as i, Transition as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineAsyncComponent as p, defineComponent as m, getCurrentInstance as h, inject as g, mergeModels as _, mergeProps as v, nextTick as y, normalizeClass as b, normalizeStyle as x, onBeforeUnmount as S, onMounted as C, onUnmounted as w, openBlock as T, provide as E, reactive as D, ref as O, renderList as k, renderSlot as A, resolveComponent as j, resolveDynamicComponent as M, shallowRef as N, toDisplayString as P, unref as F, useId as I, useModel as L, useSlots as R, vModelCheckbox as ee, vModelDynamic as te, vModelText as ne, vShow as re, watch as z, withCtx as B, withDirectives as V, withKeys as H, withModifiers as U } from "vue";
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
|
-
var ie = Object.defineProperty,
|
|
4
|
+
var ie = Object.defineProperty, W = (e, t) => {
|
|
5
5
|
let n = {};
|
|
6
6
|
for (var r in e) ie(n, r, {
|
|
7
7
|
get: e[r],
|
|
8
8
|
enumerable: !0
|
|
9
9
|
});
|
|
10
10
|
return t || ie(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
11
|
-
},
|
|
11
|
+
}, ae = /* @__PURE__ */ function(e) {
|
|
12
12
|
return e.Default = "default", e.Inline = "inline", e;
|
|
13
|
-
}(
|
|
13
|
+
}(ae || {}), oe = /* @__PURE__ */ function(e) {
|
|
14
14
|
return e.Small = "sm", e.Medium = "md", e.Large = "lg", e;
|
|
15
|
-
}(
|
|
15
|
+
}(oe || {}), se = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "nb-ai-label--dot"
|
|
18
18
|
}, ce = /* @__PURE__ */ m({
|
|
19
19
|
__name: "AiLabel",
|
|
20
20
|
props: {
|
|
21
|
-
variant: { default:
|
|
22
|
-
size: { default:
|
|
21
|
+
variant: { default: ae.Default },
|
|
22
|
+
size: { default: oe.Medium }
|
|
23
23
|
},
|
|
24
24
|
setup(e) {
|
|
25
25
|
let t = e, n = o(() => ({
|
|
@@ -32,11 +32,11 @@ var ie = Object.defineProperty, ae = (e, t) => {
|
|
|
32
32
|
return T(), s(i, v({
|
|
33
33
|
is: "button",
|
|
34
34
|
align: "center"
|
|
35
|
-
}, { ...e.variant === F(
|
|
35
|
+
}, { ...e.variant === F(ae).Inline && { gap: "sm" } }, {
|
|
36
36
|
justify: "center",
|
|
37
37
|
class: n.value
|
|
38
38
|
}), {
|
|
39
|
-
default: B(() => [e.variant === F(
|
|
39
|
+
default: B(() => [e.variant === F(ae).Inline ? (T(), l("div", se)) : c("", !0), r[0] ||= u("svg", {
|
|
40
40
|
xmlns: "http://www.w3.org/2000/svg",
|
|
41
41
|
viewBox: "0 0 256 256"
|
|
42
42
|
}, [u("path", {
|
|
@@ -13328,10 +13328,10 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
|
|
|
13328
13328
|
}), H = O(null), U = O(null), ie = D({
|
|
13329
13329
|
x: 0,
|
|
13330
13330
|
y: 0
|
|
13331
|
-
}),
|
|
13331
|
+
}), W = O(null), ae = (e, t) => {
|
|
13332
13332
|
if (!H.value) return;
|
|
13333
13333
|
let n = H.value.getBoundingClientRect();
|
|
13334
|
-
ie.x = e.clientX - n.left + 12, ie.y = e.clientY - n.top + 12, U.value = t.id,
|
|
13334
|
+
ie.x = e.clientX - n.left + 12, ie.y = e.clientY - n.top + 12, U.value = t.id, W.value = {
|
|
13335
13335
|
title: t.label,
|
|
13336
13336
|
rows: [
|
|
13337
13337
|
{
|
|
@@ -13351,10 +13351,10 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
|
|
|
13351
13351
|
}] : []
|
|
13352
13352
|
]
|
|
13353
13353
|
};
|
|
13354
|
-
},
|
|
13354
|
+
}, oe = (e, t) => {
|
|
13355
13355
|
if (!H.value) return;
|
|
13356
13356
|
let n = H.value.getBoundingClientRect();
|
|
13357
|
-
ie.x = e.clientX - n.left + 12, ie.y = e.clientY - n.top + 12, U.value = t.id,
|
|
13357
|
+
ie.x = e.clientX - n.left + 12, ie.y = e.clientY - n.top + 12, U.value = t.id, W.value = {
|
|
13358
13358
|
title: t.label,
|
|
13359
13359
|
rows: [{
|
|
13360
13360
|
label: "Date",
|
|
@@ -13362,7 +13362,7 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
|
|
|
13362
13362
|
color: t.color
|
|
13363
13363
|
}]
|
|
13364
13364
|
};
|
|
13365
|
-
},
|
|
13365
|
+
}, se = o(() => {
|
|
13366
13366
|
let e = /* @__PURE__ */ new Set();
|
|
13367
13367
|
for (let n of t.tasks ?? []) e.add(n.status ?? "default");
|
|
13368
13368
|
let n = {
|
|
@@ -13381,9 +13381,9 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
|
|
|
13381
13381
|
title: e.title,
|
|
13382
13382
|
subtitle: e.subtitle,
|
|
13383
13383
|
height: e.height,
|
|
13384
|
-
"show-legend": e.showLegend &&
|
|
13384
|
+
"show-legend": e.showLegend && se.value.length > 1
|
|
13385
13385
|
}, {
|
|
13386
|
-
legend: B(() => [f(ye, { items:
|
|
13386
|
+
legend: B(() => [f(ye, { items: se.value }, null, 8, ["items"])]),
|
|
13387
13387
|
default: B(() => [u("div", { class: b(["nb-gantt", { "nb-gantt--has-groups": g.value }]) }, [u("div", {
|
|
13388
13388
|
class: "nb-gantt__list",
|
|
13389
13389
|
style: x({ width: `${e.listWidth}px` })
|
|
@@ -13498,7 +13498,7 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
|
|
|
13498
13498
|
fill: t.color,
|
|
13499
13499
|
onMouseenter: (e) => U.value = t.id,
|
|
13500
13500
|
onMouseleave: r[1] ||= (e) => U.value = null,
|
|
13501
|
-
onMousemove: (e) =>
|
|
13501
|
+
onMousemove: (e) => ae(e, t)
|
|
13502
13502
|
}, null, 42, xGt), e.showProgress && t.progress > 0 ? (T(), l("rect", {
|
|
13503
13503
|
key: 0,
|
|
13504
13504
|
class: "nb-gantt__bar-progress",
|
|
@@ -13519,7 +13519,7 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
|
|
|
13519
13519
|
fill: t.color,
|
|
13520
13520
|
onMouseenter: (e) => U.value = t.id,
|
|
13521
13521
|
onMouseleave: r[2] ||= (e) => U.value = null,
|
|
13522
|
-
onMousemove: (e) =>
|
|
13522
|
+
onMousemove: (e) => oe(e, t)
|
|
13523
13523
|
}, null, 42, CGt)]))), 128)),
|
|
13524
13524
|
u("g", null, [(T(!0), l(n, null, k(V.value, (e, t) => (T(), l("path", {
|
|
13525
13525
|
key: `dep-${t}`,
|
|
@@ -13543,11 +13543,11 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
|
|
|
13543
13543
|
}, null, 40, EGt))), 128))])
|
|
13544
13544
|
], 40, pGt)),
|
|
13545
13545
|
f(we, {
|
|
13546
|
-
visible: e.showTooltip && U.value !== null &&
|
|
13546
|
+
visible: e.showTooltip && U.value !== null && W.value !== null,
|
|
13547
13547
|
x: ie.x,
|
|
13548
13548
|
y: ie.y,
|
|
13549
|
-
title:
|
|
13550
|
-
rows:
|
|
13549
|
+
title: W.value?.title ?? "",
|
|
13550
|
+
rows: W.value?.rows ?? []
|
|
13551
13551
|
}, null, 8, [
|
|
13552
13552
|
"visible",
|
|
13553
13553
|
"x",
|
|
@@ -14735,21 +14735,21 @@ function ZGt(e, t = {}) {
|
|
|
14735
14735
|
};
|
|
14736
14736
|
return t("");
|
|
14737
14737
|
}
|
|
14738
|
-
function
|
|
14738
|
+
function W(e) {
|
|
14739
14739
|
g(e);
|
|
14740
14740
|
let t = m(e, "|");
|
|
14741
14741
|
return g(e), t;
|
|
14742
14742
|
}
|
|
14743
|
-
function
|
|
14743
|
+
function ae(e, t) {
|
|
14744
14744
|
let n = null;
|
|
14745
14745
|
switch (e.currentChar()) {
|
|
14746
14746
|
case "{": return t.braceNest >= 1 && d($.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), e.next(), n = f(t, 2, "{"), g(e), t.braceNest++, n;
|
|
14747
14747
|
case "}": return t.braceNest > 0 && t.currentType === 2 && d($.EMPTY_PLACEHOLDER, a(), 0), e.next(), n = f(t, 3, "}"), t.braceNest--, t.braceNest > 0 && g(e), t.inLinked && t.braceNest === 0 && (t.inLinked = !1), n;
|
|
14748
|
-
case "@": return t.braceNest > 0 && d($.UNTERMINATED_CLOSING_BRACE, a(), 0), n =
|
|
14748
|
+
case "@": return t.braceNest > 0 && d($.UNTERMINATED_CLOSING_BRACE, a(), 0), n = oe(e, t) || p(t), t.braceNest = 0, n;
|
|
14749
14749
|
default: {
|
|
14750
14750
|
let r = !0, i = !0, o = !0;
|
|
14751
|
-
if (E(e)) return t.braceNest > 0 && d($.UNTERMINATED_CLOSING_BRACE, a(), 0), n = f(t, 1,
|
|
14752
|
-
if (t.braceNest > 0 && (t.currentType === 4 || t.currentType === 5 || t.currentType === 6)) return d($.UNTERMINATED_CLOSING_BRACE, a(), 0), t.braceNest = 0,
|
|
14751
|
+
if (E(e)) return t.braceNest > 0 && d($.UNTERMINATED_CLOSING_BRACE, a(), 0), n = f(t, 1, W(e)), t.braceNest = 0, t.inLinked = !1, n;
|
|
14752
|
+
if (t.braceNest > 0 && (t.currentType === 4 || t.currentType === 5 || t.currentType === 6)) return d($.UNTERMINATED_CLOSING_BRACE, a(), 0), t.braceNest = 0, se(e, t);
|
|
14753
14753
|
if (r = y(e, t)) return n = f(t, 4, ee(e)), g(e), n;
|
|
14754
14754
|
if (i = b(e, t)) return n = f(t, 5, te(e)), g(e), n;
|
|
14755
14755
|
if (o = x(e, t)) return n = f(t, 6, re(e)), g(e), n;
|
|
@@ -14759,25 +14759,25 @@ function ZGt(e, t = {}) {
|
|
|
14759
14759
|
}
|
|
14760
14760
|
return n;
|
|
14761
14761
|
}
|
|
14762
|
-
function
|
|
14762
|
+
function oe(e, t) {
|
|
14763
14763
|
let { currentType: n } = t, r = null, i = e.currentChar();
|
|
14764
14764
|
switch ((n === 7 || n === 8 || n === 11 || n === 9) && (i === v5 || i === _5) && d($.INVALID_LINKED_FORMAT, a(), 0), i) {
|
|
14765
14765
|
case "@": return e.next(), r = f(t, 7, "@"), t.inLinked = !0, r;
|
|
14766
14766
|
case ".": return g(e), e.next(), f(t, 8, ".");
|
|
14767
14767
|
case ":": return g(e), e.next(), f(t, 9, ":");
|
|
14768
|
-
default: return E(e) ? (r = f(t, 1,
|
|
14768
|
+
default: return E(e) ? (r = f(t, 1, W(e)), t.braceNest = 0, t.inLinked = !1, r) : S(e, t) || w(e, t) ? (g(e), oe(e, t)) : C(e, t) ? (g(e), f(t, 11, U(e))) : T(e, t) ? (g(e), i === "{" ? ae(e, t) || r : f(t, 10, ie(e))) : (n === 7 && d($.INVALID_LINKED_FORMAT, a(), 0), t.braceNest = 0, t.inLinked = !1, se(e, t));
|
|
14769
14769
|
}
|
|
14770
14770
|
}
|
|
14771
|
-
function
|
|
14771
|
+
function se(e, t) {
|
|
14772
14772
|
let n = { type: 13 };
|
|
14773
|
-
if (t.braceNest > 0) return
|
|
14774
|
-
if (t.inLinked) return
|
|
14773
|
+
if (t.braceNest > 0) return ae(e, t) || p(t);
|
|
14774
|
+
if (t.inLinked) return oe(e, t) || p(t);
|
|
14775
14775
|
switch (e.currentChar()) {
|
|
14776
|
-
case "{": return
|
|
14776
|
+
case "{": return ae(e, t) || p(t);
|
|
14777
14777
|
case "}": return d($.UNBALANCED_CLOSING_BRACE, a(), 0), e.next(), f(t, 3, "}");
|
|
14778
|
-
case "@": return
|
|
14778
|
+
case "@": return oe(e, t) || p(t);
|
|
14779
14779
|
default:
|
|
14780
|
-
if (E(e)) return n = f(t, 1,
|
|
14780
|
+
if (E(e)) return n = f(t, 1, W(e)), t.braceNest = 0, t.inLinked = !1, n;
|
|
14781
14781
|
if (D(e)) return f(t, 0, R(e));
|
|
14782
14782
|
break;
|
|
14783
14783
|
}
|
|
@@ -14785,7 +14785,7 @@ function ZGt(e, t = {}) {
|
|
|
14785
14785
|
}
|
|
14786
14786
|
function ce() {
|
|
14787
14787
|
let { currentType: e, offset: t, startLoc: n, endLoc: o } = c;
|
|
14788
|
-
return c.lastType = e, c.lastOffset = t, c.lastStartLoc = n, c.lastEndLoc = o, c.offset = i(), c.startLoc = a(), r.currentChar() === y5 ? f(c, 13) :
|
|
14788
|
+
return c.lastType = e, c.lastOffset = t, c.lastStartLoc = n, c.lastEndLoc = o, c.offset = i(), c.startLoc = a(), r.currentChar() === y5 ? f(c, 13) : se(r, c);
|
|
14789
14789
|
}
|
|
14790
14790
|
return {
|
|
14791
14791
|
nextToken: ce,
|
|
@@ -16255,10 +16255,10 @@ function wqt(e = {}) {
|
|
|
16255
16255
|
function ie(...e) {
|
|
16256
16256
|
return R((t) => Reflect.apply(y7, null, [t, ...e]), () => b7(...e), "datetime format", (t) => t[F7](...e), q7, (e) => Y(e) || c5(e));
|
|
16257
16257
|
}
|
|
16258
|
-
function
|
|
16258
|
+
function W(e) {
|
|
16259
16259
|
C = e, w.pluralRules = C;
|
|
16260
16260
|
}
|
|
16261
|
-
function
|
|
16261
|
+
function ae(e, t) {
|
|
16262
16262
|
return R(() => {
|
|
16263
16263
|
if (!e) return !1;
|
|
16264
16264
|
let n = Y(t) ? t : c.value, r = Y(t) ? [n] : Z5(w, l.value, n);
|
|
@@ -16269,7 +16269,7 @@ function wqt(e = {}) {
|
|
|
16269
16269
|
return !1;
|
|
16270
16270
|
}, () => [e], "translate exists", (n) => Reflect.apply(n.te, n, [e, t]), Cqt, (e) => X(e));
|
|
16271
16271
|
}
|
|
16272
|
-
function
|
|
16272
|
+
function oe(e) {
|
|
16273
16273
|
let t = null, n = Z5(w, l.value, c.value);
|
|
16274
16274
|
for (let r = 0; r < n.length; r++) {
|
|
16275
16275
|
let i = u.value[n[r]] || {}, a = w.messageResolver(i, e);
|
|
@@ -16280,8 +16280,8 @@ function wqt(e = {}) {
|
|
|
16280
16280
|
}
|
|
16281
16281
|
return t;
|
|
16282
16282
|
}
|
|
16283
|
-
function
|
|
16284
|
-
return
|
|
16283
|
+
function se(e) {
|
|
16284
|
+
return oe(e) ?? (t && t.tm(e) || {});
|
|
16285
16285
|
}
|
|
16286
16286
|
function ce(e) {
|
|
16287
16287
|
return u.value[e] || {};
|
|
@@ -16390,9 +16390,9 @@ function wqt(e = {}) {
|
|
|
16390
16390
|
setPostTranslationHandler: P,
|
|
16391
16391
|
getMissingHandler: F,
|
|
16392
16392
|
setMissingHandler: I,
|
|
16393
|
-
[yqt]:
|
|
16393
|
+
[yqt]: W
|
|
16394
16394
|
};
|
|
16395
|
-
return K.datetimeFormats = A, K.numberFormats = j, K.rt = te, K.te =
|
|
16395
|
+
return K.datetimeFormats = A, K.numberFormats = j, K.rt = te, K.te = ae, K.tm = se, K.d = ne, K.n = re, K.getDateTimeFormat = ue, K.setDateTimeFormat = de, K.mergeDateTimeFormat = fe, K.getNumberFormat = pe, K.setNumberFormat = me, K.mergeNumberFormat = he, K[z7] = n, K[P7] = H, K[F7] = ie, K[I7] = U, process.env.NODE_ENV !== "production" && (K[L7] = (e) => {
|
|
16396
16396
|
w.__v_emitter = e;
|
|
16397
16397
|
}, K[R7] = () => {
|
|
16398
16398
|
w.__v_emitter = void 0;
|
|
@@ -16714,7 +16714,7 @@ var $7 = /* @__PURE__ */ function(e) {
|
|
|
16714
16714
|
clientX: 0,
|
|
16715
16715
|
clientY: 0
|
|
16716
16716
|
};
|
|
16717
|
-
},
|
|
16717
|
+
}, W = (e) => {
|
|
16718
16718
|
let t = p.value;
|
|
16719
16719
|
if (!t) return null;
|
|
16720
16720
|
let { clientX: n, clientY: r } = ie(e), { left: i, top: a } = t.getBoundingClientRect();
|
|
@@ -16722,22 +16722,22 @@ var $7 = /* @__PURE__ */ function(e) {
|
|
|
16722
16722
|
x: n - i,
|
|
16723
16723
|
y: r - a
|
|
16724
16724
|
};
|
|
16725
|
-
},
|
|
16725
|
+
}, ae = (e) => {
|
|
16726
16726
|
e.preventDefault();
|
|
16727
|
-
let t =
|
|
16727
|
+
let t = W(e);
|
|
16728
16728
|
if (!t) return;
|
|
16729
16729
|
let { x: n, y: r } = t;
|
|
16730
16730
|
fe(n, r) && (D = !0, E = !0, A = {
|
|
16731
16731
|
x: n - v.value.x,
|
|
16732
16732
|
y: r - v.value.y
|
|
16733
16733
|
});
|
|
16734
|
-
},
|
|
16734
|
+
}, oe = (e) => {
|
|
16735
16735
|
D ? ce(e) : M && ue(e);
|
|
16736
|
-
},
|
|
16736
|
+
}, se = () => {
|
|
16737
16737
|
D && (G(), D = !1, me()), M && (de(), me()), E = !1, D = !1;
|
|
16738
16738
|
}, ce = (e) => {
|
|
16739
16739
|
if (E) {
|
|
16740
|
-
let t =
|
|
16740
|
+
let t = W(e);
|
|
16741
16741
|
if (!t) return;
|
|
16742
16742
|
let { x: n, y: r } = t;
|
|
16743
16743
|
v.value.x = Math.floor(n - A.x), v.value.y = Math.floor(r - A.y), re();
|
|
@@ -16746,7 +16746,7 @@ var $7 = /* @__PURE__ */ function(e) {
|
|
|
16746
16746
|
E &&= (pe(), re(), !1);
|
|
16747
16747
|
}, le = (e, t) => {
|
|
16748
16748
|
e.preventDefault();
|
|
16749
|
-
let n =
|
|
16749
|
+
let n = W(e);
|
|
16750
16750
|
n && (M = !0, L = t, N = {
|
|
16751
16751
|
x: n.x,
|
|
16752
16752
|
y: n.y
|
|
@@ -16754,7 +16754,7 @@ var $7 = /* @__PURE__ */ function(e) {
|
|
|
16754
16754
|
}, ue = (e) => {
|
|
16755
16755
|
if (!M) return;
|
|
16756
16756
|
if (i.lockAspectRatio && p.value) {
|
|
16757
|
-
let t =
|
|
16757
|
+
let t = W(e);
|
|
16758
16758
|
if (!t) return;
|
|
16759
16759
|
let { x: n, y: r } = t, a = I.x + I.width / 2, o = I.y + I.height / 2;
|
|
16760
16760
|
if (i.cropAsCircle) {
|
|
@@ -16777,7 +16777,7 @@ var $7 = /* @__PURE__ */ function(e) {
|
|
|
16777
16777
|
re();
|
|
16778
16778
|
return;
|
|
16779
16779
|
}
|
|
16780
|
-
let t =
|
|
16780
|
+
let t = W(e);
|
|
16781
16781
|
if (!t) return;
|
|
16782
16782
|
let { x: n, y: r } = t, a = n - N.x, o = r - N.y;
|
|
16783
16783
|
R = e instanceof MouseEvent && e.shiftKey;
|
|
@@ -16862,13 +16862,13 @@ var $7 = /* @__PURE__ */ function(e) {
|
|
|
16862
16862
|
let a = j("NbGrid");
|
|
16863
16863
|
return T(), l("div", Nqt, [u("div", {
|
|
16864
16864
|
class: "canvas-container",
|
|
16865
|
-
onMousedown:
|
|
16866
|
-
onMousemove:
|
|
16867
|
-
onMouseup:
|
|
16868
|
-
onMouseleave:
|
|
16869
|
-
onTouchstart:
|
|
16870
|
-
onTouchmove:
|
|
16871
|
-
onTouchend:
|
|
16865
|
+
onMousedown: ae,
|
|
16866
|
+
onMousemove: oe,
|
|
16867
|
+
onMouseup: se,
|
|
16868
|
+
onMouseleave: se,
|
|
16869
|
+
onTouchstart: ae,
|
|
16870
|
+
onTouchmove: oe,
|
|
16871
|
+
onTouchend: se
|
|
16872
16872
|
}, [u("canvas", {
|
|
16873
16873
|
ref_key: "canvas",
|
|
16874
16874
|
ref: p
|
|
@@ -19162,7 +19162,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
19162
19162
|
S(() => {
|
|
19163
19163
|
te(), re();
|
|
19164
19164
|
});
|
|
19165
|
-
let
|
|
19165
|
+
let W = o(() => [
|
|
19166
19166
|
"nb-slider",
|
|
19167
19167
|
`nb-slider--${r.size}`,
|
|
19168
19168
|
`nb-slider--${r.variant}`,
|
|
@@ -19172,13 +19172,13 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
19172
19172
|
"nb-slider--error": !!r.error,
|
|
19173
19173
|
"nb-slider--warning": !r.error && !!r.warning
|
|
19174
19174
|
}
|
|
19175
|
-
]),
|
|
19175
|
+
]), ae = o(() => ({
|
|
19176
19176
|
"nb-slider__track-area--error": !!r.error,
|
|
19177
19177
|
"nb-slider__track-area--warning": !r.error && !!r.warning
|
|
19178
19178
|
}));
|
|
19179
19179
|
return (t, r) => {
|
|
19180
19180
|
let i = j("NbLabel"), o = j("NbNumberInput"), p = j("NbGrid"), v = j("NbMessage");
|
|
19181
|
-
return T(), l("div", { class: b(
|
|
19181
|
+
return T(), l("div", { class: b(W.value) }, [
|
|
19182
19182
|
e.variant === "default" && e.label ? (T(), s(i, {
|
|
19183
19183
|
key: 0,
|
|
19184
19184
|
class: "nb-slider__label"
|
|
@@ -19216,7 +19216,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
19216
19216
|
dir: "col",
|
|
19217
19217
|
justify: "end",
|
|
19218
19218
|
gap: "xs",
|
|
19219
|
-
class: b(["nb-slider__track-area",
|
|
19219
|
+
class: b(["nb-slider__track-area", ae.value]),
|
|
19220
19220
|
grow: ""
|
|
19221
19221
|
}, {
|
|
19222
19222
|
default: B(() => [u("div", {
|
|
@@ -20286,65 +20286,69 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20286
20286
|
"connect",
|
|
20287
20287
|
"disconnect",
|
|
20288
20288
|
"move",
|
|
20289
|
-
"selection-change"
|
|
20289
|
+
"selection-change",
|
|
20290
|
+
"focus"
|
|
20290
20291
|
],
|
|
20291
20292
|
setup(e, { expose: t, emit: r }) {
|
|
20292
|
-
let i = e, a = r, s = O(), d = O(0), f = O(0), p = O(1), m = O(0), h = O(/* @__PURE__ */ new Set());
|
|
20293
|
-
function
|
|
20294
|
-
|
|
20293
|
+
let i = e, a = r, s = O(), d = O(0), f = O(0), p = O(1), m = O(0), h = O(/* @__PURE__ */ new Set()), g = O(null);
|
|
20294
|
+
function _(e) {
|
|
20295
|
+
g.value = e, a("focus", e);
|
|
20295
20296
|
}
|
|
20296
|
-
function
|
|
20297
|
+
function v(e) {
|
|
20298
|
+
h.value = new Set(e), a("selection-change", e), w();
|
|
20299
|
+
}
|
|
20300
|
+
function w() {
|
|
20297
20301
|
s.value && s.value.querySelectorAll(".nb-blueprint-card").forEach((e) => {
|
|
20298
20302
|
let t = e.dataset.cardId;
|
|
20299
20303
|
t && e.classList.toggle("nb-blueprint-card--selected", h.value.has(t));
|
|
20300
20304
|
});
|
|
20301
20305
|
}
|
|
20302
|
-
function
|
|
20306
|
+
function E() {
|
|
20303
20307
|
if (!s.value) return;
|
|
20304
20308
|
let e = [];
|
|
20305
20309
|
s.value.querySelectorAll("[data-card-id]").forEach((t) => {
|
|
20306
20310
|
let n = t.dataset.cardId;
|
|
20307
20311
|
n && e.push(n);
|
|
20308
|
-
}),
|
|
20312
|
+
}), v(e);
|
|
20309
20313
|
}
|
|
20310
|
-
function
|
|
20311
|
-
|
|
20314
|
+
function D() {
|
|
20315
|
+
v([]), _(null);
|
|
20312
20316
|
}
|
|
20313
|
-
let
|
|
20314
|
-
function
|
|
20315
|
-
e.code === "Space" && !e.repeat && (
|
|
20317
|
+
let j = O(!1);
|
|
20318
|
+
function M(e) {
|
|
20319
|
+
e.code === "Space" && !e.repeat && (j.value = !0, e.preventDefault());
|
|
20316
20320
|
}
|
|
20317
|
-
function
|
|
20318
|
-
e.code === "Space" && (
|
|
20321
|
+
function N(e) {
|
|
20322
|
+
e.code === "Space" && (j.value = !1);
|
|
20319
20323
|
}
|
|
20320
|
-
let
|
|
20321
|
-
function
|
|
20324
|
+
let P = !1, I = 0, L = 0;
|
|
20325
|
+
function R(e) {
|
|
20322
20326
|
if (e.target.closest(".nb-blueprint-card__port")) return;
|
|
20323
20327
|
if (e.button === 1) {
|
|
20324
|
-
|
|
20328
|
+
ee(e);
|
|
20325
20329
|
return;
|
|
20326
20330
|
}
|
|
20327
|
-
if (
|
|
20328
|
-
|
|
20331
|
+
if (j.value) {
|
|
20332
|
+
ee(e);
|
|
20329
20333
|
return;
|
|
20330
20334
|
}
|
|
20331
20335
|
let t = e.target.closest(".nb-blueprint-card");
|
|
20332
20336
|
if (t) {
|
|
20333
|
-
|
|
20337
|
+
oe(e, t);
|
|
20334
20338
|
return;
|
|
20335
20339
|
}
|
|
20336
|
-
|
|
20340
|
+
fe(e);
|
|
20337
20341
|
}
|
|
20338
|
-
function
|
|
20339
|
-
|
|
20342
|
+
function ee(e) {
|
|
20343
|
+
P = !0, I = e.clientX - d.value, L = e.clientY - f.value, document.addEventListener("mousemove", te), document.addEventListener("mouseup", ne);
|
|
20340
20344
|
}
|
|
20341
|
-
function
|
|
20342
|
-
|
|
20345
|
+
function te(e) {
|
|
20346
|
+
P && (d.value = e.clientX - I, f.value = e.clientY - L, m.value++);
|
|
20343
20347
|
}
|
|
20344
|
-
function
|
|
20345
|
-
|
|
20348
|
+
function ne() {
|
|
20349
|
+
P = !1, document.removeEventListener("mousemove", te), document.removeEventListener("mouseup", ne);
|
|
20346
20350
|
}
|
|
20347
|
-
function
|
|
20351
|
+
function re(e) {
|
|
20348
20352
|
let t = s.value?.getBoundingClientRect();
|
|
20349
20353
|
if (!t) return;
|
|
20350
20354
|
let n = p.value, r = e.deltaY > 0 ? -.1 : .1, i = Math.max(z9, Math.min(B9, n + r));
|
|
@@ -20352,8 +20356,8 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20352
20356
|
let a = e.clientX - t.left, o = e.clientY - t.top, c = (a - d.value) / n, l = (o - f.value) / n;
|
|
20353
20357
|
d.value = a - c * i, f.value = o - l * i, p.value = i;
|
|
20354
20358
|
}
|
|
20355
|
-
let
|
|
20356
|
-
function
|
|
20359
|
+
let z = !1, B = 0, V = 0, H = /* @__PURE__ */ new Map(), ie = !1;
|
|
20360
|
+
function W(e) {
|
|
20357
20361
|
let t = e.parentElement;
|
|
20358
20362
|
if (!t) return {
|
|
20359
20363
|
x: 0,
|
|
@@ -20368,55 +20372,57 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20368
20372
|
y: t.offsetTop
|
|
20369
20373
|
};
|
|
20370
20374
|
}
|
|
20371
|
-
function
|
|
20375
|
+
function ae(e, t, n) {
|
|
20372
20376
|
let r = e.parentElement;
|
|
20373
20377
|
r && (r.style.transform = `translate(${t}px, ${n}px)`);
|
|
20374
20378
|
}
|
|
20375
|
-
function
|
|
20379
|
+
function oe(e, t) {
|
|
20376
20380
|
let n = t.dataset.cardId;
|
|
20377
20381
|
if (n) {
|
|
20378
|
-
if (e.shiftKey) {
|
|
20382
|
+
if (B = e.clientX, V = e.clientY, ie = !1, H = /* @__PURE__ */ new Map(), e.shiftKey) {
|
|
20379
20383
|
let e = new Set(h.value);
|
|
20380
|
-
e.has(n) ? e.delete(n) : e.add(n),
|
|
20381
|
-
} else h.value.has(n) ||
|
|
20382
|
-
|
|
20383
|
-
let
|
|
20384
|
-
|
|
20385
|
-
|
|
20386
|
-
|
|
20384
|
+
e.has(n) ? e.delete(n) : e.add(n), v(Array.from(e));
|
|
20385
|
+
} else h.value.has(n) || v([n]), _(n);
|
|
20386
|
+
y(() => {
|
|
20387
|
+
if (s.value) for (let e of h.value) {
|
|
20388
|
+
let t = s.value.querySelector(`[data-card-id="${e}"]`);
|
|
20389
|
+
t && H.set(e, W(t));
|
|
20390
|
+
}
|
|
20391
|
+
}), document.addEventListener("mousemove", ce), document.addEventListener("mouseup", G);
|
|
20387
20392
|
}
|
|
20388
20393
|
}
|
|
20389
|
-
function
|
|
20390
|
-
|
|
20391
|
-
|
|
20392
|
-
|
|
20393
|
-
|
|
20394
|
-
|
|
20394
|
+
function se() {
|
|
20395
|
+
if (!s.value) return;
|
|
20396
|
+
let e = [];
|
|
20397
|
+
for (let t of H.keys()) {
|
|
20398
|
+
let n = s.value.querySelector(`[data-card-id="${t}"]`);
|
|
20399
|
+
if (n) {
|
|
20400
|
+
let r = W(n);
|
|
20401
|
+
e.push({
|
|
20402
|
+
id: t,
|
|
20403
|
+
x: Math.round(r.x),
|
|
20404
|
+
y: Math.round(r.y)
|
|
20405
|
+
});
|
|
20395
20406
|
}
|
|
20396
|
-
m.value++;
|
|
20397
20407
|
}
|
|
20408
|
+
e.length && a("move", e);
|
|
20398
20409
|
}
|
|
20399
|
-
function
|
|
20400
|
-
|
|
20401
|
-
|
|
20402
|
-
for (let
|
|
20403
|
-
let
|
|
20404
|
-
|
|
20405
|
-
let r = H(n);
|
|
20406
|
-
e.push({
|
|
20407
|
-
id: t,
|
|
20408
|
-
x: Math.round(r.x),
|
|
20409
|
-
y: Math.round(r.y)
|
|
20410
|
-
});
|
|
20411
|
-
}
|
|
20410
|
+
function ce(e) {
|
|
20411
|
+
let t = (e.clientX - B) / p.value, n = (e.clientY - V) / p.value;
|
|
20412
|
+
if (!(!z && Math.abs(t * p.value) < V9 && Math.abs(n * p.value) < V9) && (z = !0, ie = !0, s.value)) {
|
|
20413
|
+
for (let [e, r] of H) {
|
|
20414
|
+
let i = s.value.querySelector(`[data-card-id="${e}"]`);
|
|
20415
|
+
i && ae(i, r.x + t, r.y + n);
|
|
20412
20416
|
}
|
|
20413
|
-
|
|
20417
|
+
se(), m.value++;
|
|
20414
20418
|
}
|
|
20415
|
-
ne = !1, V = !1, B = /* @__PURE__ */ new Map();
|
|
20416
20419
|
}
|
|
20417
|
-
|
|
20418
|
-
|
|
20419
|
-
|
|
20420
|
+
function G() {
|
|
20421
|
+
document.removeEventListener("mousemove", ce), document.removeEventListener("mouseup", G), ie && se(), z = !1, ie = !1, H = /* @__PURE__ */ new Map();
|
|
20422
|
+
}
|
|
20423
|
+
let le = O(null), ue = !1, de = o(() => {
|
|
20424
|
+
if (!le.value) return {};
|
|
20425
|
+
let { x1: e, y1: t, x2: n, y2: r } = le.value;
|
|
20420
20426
|
return {
|
|
20421
20427
|
left: `${Math.min(e, n)}px`,
|
|
20422
20428
|
top: `${Math.min(t, r)}px`,
|
|
@@ -20424,65 +20430,65 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20424
20430
|
height: `${Math.abs(r - t)}px`
|
|
20425
20431
|
};
|
|
20426
20432
|
});
|
|
20427
|
-
function
|
|
20433
|
+
function fe(e) {
|
|
20428
20434
|
if (!s.value) return;
|
|
20429
20435
|
let t = s.value.getBoundingClientRect(), n = e.clientX - t.left, r = e.clientY - t.top;
|
|
20430
|
-
|
|
20436
|
+
ue = e.shiftKey, ue || v([]), le.value = {
|
|
20431
20437
|
x1: n,
|
|
20432
20438
|
y1: r,
|
|
20433
20439
|
x2: n,
|
|
20434
20440
|
y2: r
|
|
20435
|
-
}, document.addEventListener("mousemove",
|
|
20441
|
+
}, document.addEventListener("mousemove", pe), document.addEventListener("mouseup", me);
|
|
20436
20442
|
}
|
|
20437
|
-
function
|
|
20438
|
-
if (!
|
|
20443
|
+
function pe(e) {
|
|
20444
|
+
if (!le.value || !s.value) return;
|
|
20439
20445
|
let t = s.value.getBoundingClientRect();
|
|
20440
|
-
|
|
20446
|
+
le.value.x2 = e.clientX - t.left, le.value.y2 = e.clientY - t.top;
|
|
20441
20447
|
}
|
|
20442
|
-
function
|
|
20443
|
-
if (document.removeEventListener("mousemove",
|
|
20444
|
-
|
|
20448
|
+
function me() {
|
|
20449
|
+
if (document.removeEventListener("mousemove", pe), document.removeEventListener("mouseup", me), !le.value || !s.value) {
|
|
20450
|
+
le.value = null;
|
|
20445
20451
|
return;
|
|
20446
20452
|
}
|
|
20447
|
-
let e = s.value.getBoundingClientRect(), { x1: t, y1: n, x2: r, y2: i } =
|
|
20453
|
+
let e = s.value.getBoundingClientRect(), { x1: t, y1: n, x2: r, y2: i } = le.value, a = Math.min(t, r), o = Math.min(n, i), c = Math.max(t, r), l = Math.max(n, i);
|
|
20448
20454
|
if (Math.abs(r - t) < V9 && Math.abs(i - n) < V9) {
|
|
20449
|
-
|
|
20455
|
+
ue || (v([]), _(null)), le.value = null;
|
|
20450
20456
|
return;
|
|
20451
20457
|
}
|
|
20452
|
-
let u =
|
|
20458
|
+
let u = ue ? [...h.value] : [];
|
|
20453
20459
|
s.value.querySelectorAll("[data-card-id]").forEach((t) => {
|
|
20454
20460
|
let n = t.getBoundingClientRect(), r = n.left - e.left, i = n.top - e.top, s = r + n.width, d = i + n.height;
|
|
20455
20461
|
if (r < c && s > a && i < l && d > o) {
|
|
20456
20462
|
let e = t.dataset.cardId;
|
|
20457
20463
|
e && !u.includes(e) && u.push(e);
|
|
20458
20464
|
}
|
|
20459
|
-
}),
|
|
20465
|
+
}), v(u), le.value = null;
|
|
20460
20466
|
}
|
|
20461
|
-
let
|
|
20462
|
-
function
|
|
20463
|
-
|
|
20467
|
+
let he = O(null), K = null;
|
|
20468
|
+
function ge(e) {
|
|
20469
|
+
K = e, document.addEventListener("mousemove", _e), document.addEventListener("mouseup", ve);
|
|
20464
20470
|
}
|
|
20465
|
-
function
|
|
20466
|
-
if (!
|
|
20467
|
-
let t = s.value.getBoundingClientRect(), n = (e.clientX - t.left - d.value) / p.value, r = (e.clientY - t.top - f.value) / p.value, i = s.value.querySelector(`[data-port="${
|
|
20471
|
+
function _e(e) {
|
|
20472
|
+
if (!K || !s.value) return;
|
|
20473
|
+
let t = s.value.getBoundingClientRect(), n = (e.clientX - t.left - d.value) / p.value, r = (e.clientY - t.top - f.value) / p.value, i = s.value.querySelector(`[data-port="${K.nodeId}:${K.portId}"]`);
|
|
20468
20474
|
if (!i) return;
|
|
20469
20475
|
let a = i.getBoundingClientRect(), o = (a.left + a.width / 2 - t.left - d.value) / p.value, c = (a.top + a.height / 2 - t.top - f.value) / p.value, l = Math.abs(n - o) * .5;
|
|
20470
|
-
|
|
20476
|
+
he.value = `M ${o} ${c} C ${o + l} ${c}, ${n - l} ${r}, ${n} ${r}`;
|
|
20471
20477
|
}
|
|
20472
|
-
function
|
|
20473
|
-
|
|
20478
|
+
function ve() {
|
|
20479
|
+
K = null, he.value = null, document.removeEventListener("mousemove", _e), document.removeEventListener("mouseup", ve);
|
|
20474
20480
|
}
|
|
20475
|
-
function
|
|
20476
|
-
if (!
|
|
20477
|
-
let t =
|
|
20481
|
+
function ye(e) {
|
|
20482
|
+
if (!K || K.nodeId === e.nodeId || K.type === e.type) return;
|
|
20483
|
+
let t = K.type === "output" ? K : e, n = K.type === "output" ? e : K;
|
|
20478
20484
|
a("connect", {
|
|
20479
20485
|
fromNode: t.nodeId,
|
|
20480
20486
|
fromPort: t.portId,
|
|
20481
20487
|
toNode: n.nodeId,
|
|
20482
20488
|
toPort: n.portId
|
|
20483
|
-
}),
|
|
20489
|
+
}), K = null, he.value = null;
|
|
20484
20490
|
}
|
|
20485
|
-
function
|
|
20491
|
+
function be(e) {
|
|
20486
20492
|
let t = e.closest(".nb-blueprint-card");
|
|
20487
20493
|
if (t) {
|
|
20488
20494
|
let e = getComputedStyle(t).getPropertyValue("--nb-card-color").trim();
|
|
@@ -20490,7 +20496,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20490
20496
|
}
|
|
20491
20497
|
return "var(--nb-c-primary)";
|
|
20492
20498
|
}
|
|
20493
|
-
let
|
|
20499
|
+
let xe = o(() => {
|
|
20494
20500
|
if (m.value, !s.value) return [];
|
|
20495
20501
|
let e = s.value.getBoundingClientRect();
|
|
20496
20502
|
return i.connections.map((t) => {
|
|
@@ -20500,17 +20506,17 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20500
20506
|
return {
|
|
20501
20507
|
path: `M ${o} ${c} C ${o + m} ${c}, ${l - m} ${u}, ${l} ${u}`,
|
|
20502
20508
|
conn: t,
|
|
20503
|
-
color:
|
|
20509
|
+
color: be(n)
|
|
20504
20510
|
};
|
|
20505
20511
|
}).filter(Boolean);
|
|
20506
20512
|
});
|
|
20507
|
-
function
|
|
20513
|
+
function Se() {
|
|
20508
20514
|
if (!s.value) return null;
|
|
20509
20515
|
let e = s.value.querySelectorAll("[data-card-id]");
|
|
20510
20516
|
if (e.length === 0) return null;
|
|
20511
20517
|
let t = Infinity, n = Infinity, r = -Infinity, i = -Infinity;
|
|
20512
20518
|
return e.forEach((e) => {
|
|
20513
|
-
let a = e, o =
|
|
20519
|
+
let a = e, o = W(a), s = a.offsetWidth, c = a.offsetHeight;
|
|
20514
20520
|
t = Math.min(t, o.x), n = Math.min(n, o.y), r = Math.max(r, o.x + s), i = Math.max(i, o.y + c);
|
|
20515
20521
|
}), {
|
|
20516
20522
|
minX: t,
|
|
@@ -20519,9 +20525,9 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20519
20525
|
maxY: i
|
|
20520
20526
|
};
|
|
20521
20527
|
}
|
|
20522
|
-
function
|
|
20528
|
+
function Ce() {
|
|
20523
20529
|
if (p.value = 1, !s.value) return;
|
|
20524
|
-
let e =
|
|
20530
|
+
let e = Se();
|
|
20525
20531
|
if (!e) {
|
|
20526
20532
|
d.value = 0, f.value = 0;
|
|
20527
20533
|
return;
|
|
@@ -20529,31 +20535,31 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20529
20535
|
let t = s.value.getBoundingClientRect(), n = (e.minX + e.maxX) / 2, r = (e.minY + e.maxY) / 2;
|
|
20530
20536
|
d.value = t.width / 2 - n, f.value = t.height / 2 - r;
|
|
20531
20537
|
}
|
|
20532
|
-
function
|
|
20538
|
+
function we(e = 40) {
|
|
20533
20539
|
if (!s.value) return;
|
|
20534
|
-
let t =
|
|
20540
|
+
let t = Se();
|
|
20535
20541
|
if (!t) {
|
|
20536
|
-
|
|
20542
|
+
Te();
|
|
20537
20543
|
return;
|
|
20538
20544
|
}
|
|
20539
20545
|
let n = s.value.getBoundingClientRect(), r = t.maxX - t.minX, i = t.maxY - t.minY;
|
|
20540
20546
|
if (r <= 0 || i <= 0) {
|
|
20541
|
-
|
|
20547
|
+
Ce();
|
|
20542
20548
|
return;
|
|
20543
20549
|
}
|
|
20544
20550
|
let a = n.width - e * 2, o = n.height - e * 2, c = a / r, l = o / i, u = Math.max(z9, Math.min(B9, Math.min(c, l))), m = (t.minX + t.maxX) / 2, h = (t.minY + t.maxY) / 2;
|
|
20545
20551
|
p.value = u, d.value = n.width / 2 - m * u, f.value = n.height / 2 - h * u;
|
|
20546
20552
|
}
|
|
20547
|
-
function
|
|
20553
|
+
function Te() {
|
|
20548
20554
|
d.value = 0, f.value = 0, p.value = 1;
|
|
20549
20555
|
}
|
|
20550
|
-
function
|
|
20556
|
+
function Ee() {
|
|
20551
20557
|
if (!s.value) return [];
|
|
20552
20558
|
let e = [];
|
|
20553
20559
|
for (let t of h.value) {
|
|
20554
20560
|
let n = s.value.querySelector(`[data-card-id="${t}"]`);
|
|
20555
20561
|
if (!n) continue;
|
|
20556
|
-
let r =
|
|
20562
|
+
let r = W(n);
|
|
20557
20563
|
e.push({
|
|
20558
20564
|
id: t,
|
|
20559
20565
|
el: n,
|
|
@@ -20565,74 +20571,74 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20565
20571
|
}
|
|
20566
20572
|
return e;
|
|
20567
20573
|
}
|
|
20568
|
-
function
|
|
20574
|
+
function De(e) {
|
|
20569
20575
|
let t = [];
|
|
20570
|
-
for (let n of e)
|
|
20576
|
+
for (let n of e) ae(n.el, n.x, n.y), t.push({
|
|
20571
20577
|
id: n.id,
|
|
20572
20578
|
x: Math.round(n.x),
|
|
20573
20579
|
y: Math.round(n.y)
|
|
20574
20580
|
});
|
|
20575
20581
|
t.length && (m.value++, a("move", t));
|
|
20576
20582
|
}
|
|
20577
|
-
function
|
|
20578
|
-
let e =
|
|
20583
|
+
function Oe() {
|
|
20584
|
+
let e = Ee();
|
|
20579
20585
|
if (e.length < 2) return;
|
|
20580
20586
|
let t = Math.min(...e.map((e) => e.x));
|
|
20581
|
-
e.forEach((e) => e.x = t),
|
|
20587
|
+
e.forEach((e) => e.x = t), De(e);
|
|
20582
20588
|
}
|
|
20583
|
-
function
|
|
20584
|
-
let e =
|
|
20589
|
+
function ke() {
|
|
20590
|
+
let e = Ee();
|
|
20585
20591
|
if (e.length < 2) return;
|
|
20586
20592
|
let t = e.map((e) => e.x + e.w / 2), n = t.reduce((e, t) => e + t, 0) / t.length;
|
|
20587
|
-
e.forEach((e) => e.x = n - e.w / 2),
|
|
20593
|
+
e.forEach((e) => e.x = n - e.w / 2), De(e);
|
|
20588
20594
|
}
|
|
20589
|
-
function
|
|
20590
|
-
let e =
|
|
20595
|
+
function Ae() {
|
|
20596
|
+
let e = Ee();
|
|
20591
20597
|
if (e.length < 2) return;
|
|
20592
20598
|
let t = Math.max(...e.map((e) => e.x + e.w));
|
|
20593
|
-
e.forEach((e) => e.x = t - e.w),
|
|
20599
|
+
e.forEach((e) => e.x = t - e.w), De(e);
|
|
20594
20600
|
}
|
|
20595
|
-
function
|
|
20596
|
-
let e =
|
|
20601
|
+
function je() {
|
|
20602
|
+
let e = Ee();
|
|
20597
20603
|
if (e.length < 2) return;
|
|
20598
20604
|
let t = Math.min(...e.map((e) => e.y));
|
|
20599
|
-
e.forEach((e) => e.y = t),
|
|
20605
|
+
e.forEach((e) => e.y = t), De(e);
|
|
20600
20606
|
}
|
|
20601
|
-
function
|
|
20602
|
-
let e =
|
|
20607
|
+
function Me() {
|
|
20608
|
+
let e = Ee();
|
|
20603
20609
|
if (e.length < 2) return;
|
|
20604
20610
|
let t = e.map((e) => e.y + e.h / 2), n = t.reduce((e, t) => e + t, 0) / t.length;
|
|
20605
|
-
e.forEach((e) => e.y = n - e.h / 2),
|
|
20611
|
+
e.forEach((e) => e.y = n - e.h / 2), De(e);
|
|
20606
20612
|
}
|
|
20607
|
-
function
|
|
20608
|
-
let e =
|
|
20613
|
+
function Ne() {
|
|
20614
|
+
let e = Ee();
|
|
20609
20615
|
if (e.length < 2) return;
|
|
20610
20616
|
let t = Math.max(...e.map((e) => e.y + e.h));
|
|
20611
|
-
e.forEach((e) => e.y = t - e.h),
|
|
20617
|
+
e.forEach((e) => e.y = t - e.h), De(e);
|
|
20612
20618
|
}
|
|
20613
|
-
function
|
|
20614
|
-
let e =
|
|
20619
|
+
function Pe() {
|
|
20620
|
+
let e = Ee();
|
|
20615
20621
|
if (e.length < 3) return;
|
|
20616
20622
|
e.sort((e, t) => e.x - t.x);
|
|
20617
20623
|
let t = e[0], n = e[e.length - 1], r = e.reduce((e, t) => e + t.w, 0), i = (n.x + n.w - t.x - r) / (e.length - 1), a = t.x + t.w + i;
|
|
20618
20624
|
for (let t = 1; t < e.length - 1; t++) e[t].x = a, a += e[t].w + i;
|
|
20619
|
-
|
|
20625
|
+
De(e);
|
|
20620
20626
|
}
|
|
20621
|
-
function
|
|
20622
|
-
let e =
|
|
20627
|
+
function Fe() {
|
|
20628
|
+
let e = Ee();
|
|
20623
20629
|
if (e.length < 3) return;
|
|
20624
20630
|
e.sort((e, t) => e.y - t.y);
|
|
20625
20631
|
let t = e[0], n = e[e.length - 1], r = e.reduce((e, t) => e + t.h, 0), i = (n.y + n.h - t.y - r) / (e.length - 1), a = t.y + t.h + i;
|
|
20626
20632
|
for (let t = 1; t < e.length - 1; t++) e[t].y = a, a += e[t].h + i;
|
|
20627
|
-
|
|
20633
|
+
De(e);
|
|
20628
20634
|
}
|
|
20629
|
-
function
|
|
20635
|
+
function Ie(e) {
|
|
20630
20636
|
if (!s.value) return;
|
|
20631
20637
|
let t = e?.gapX ?? 80, n = e?.gapY ?? 40, r = e?.padding ?? 60, a = [];
|
|
20632
20638
|
if (s.value.querySelectorAll("[data-card-id]").forEach((e) => {
|
|
20633
20639
|
let t = e, n = t.dataset.cardId;
|
|
20634
20640
|
if (!n) return;
|
|
20635
|
-
let r =
|
|
20641
|
+
let r = W(t);
|
|
20636
20642
|
a.push({
|
|
20637
20643
|
id: n,
|
|
20638
20644
|
el: t,
|
|
@@ -20667,37 +20673,38 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20667
20673
|
for (let e of s) e.x = m, e.y = a, a += e.h + n, i = Math.max(i, e.w);
|
|
20668
20674
|
m += i + t;
|
|
20669
20675
|
}
|
|
20670
|
-
|
|
20676
|
+
De(a);
|
|
20671
20677
|
}
|
|
20672
|
-
let
|
|
20678
|
+
let Le = new MutationObserver(() => {
|
|
20673
20679
|
m.value++;
|
|
20674
20680
|
});
|
|
20675
20681
|
return C(() => {
|
|
20676
|
-
s.value &&
|
|
20682
|
+
s.value && Le.observe(s.value, {
|
|
20677
20683
|
childList: !0,
|
|
20678
20684
|
subtree: !0,
|
|
20679
20685
|
attributes: !0
|
|
20680
|
-
}), window.addEventListener("keydown",
|
|
20686
|
+
}), window.addEventListener("keydown", M), window.addEventListener("keyup", N), y(() => y(we));
|
|
20681
20687
|
}), S(() => {
|
|
20682
|
-
|
|
20688
|
+
Le.disconnect(), window.removeEventListener("keydown", M), window.removeEventListener("keyup", N);
|
|
20683
20689
|
}), t({
|
|
20684
|
-
centerView:
|
|
20685
|
-
fitToView:
|
|
20686
|
-
resetView:
|
|
20690
|
+
centerView: Ce,
|
|
20691
|
+
fitToView: we,
|
|
20692
|
+
resetView: Te,
|
|
20687
20693
|
selectedIds: h,
|
|
20688
|
-
|
|
20689
|
-
|
|
20690
|
-
|
|
20691
|
-
|
|
20692
|
-
|
|
20693
|
-
|
|
20694
|
-
|
|
20695
|
-
|
|
20696
|
-
|
|
20697
|
-
|
|
20698
|
-
|
|
20699
|
-
|
|
20700
|
-
|
|
20694
|
+
focusedId: g,
|
|
20695
|
+
selectAll: E,
|
|
20696
|
+
deselectAll: D,
|
|
20697
|
+
alignLeft: Oe,
|
|
20698
|
+
alignCenter: ke,
|
|
20699
|
+
alignRight: Ae,
|
|
20700
|
+
alignTop: je,
|
|
20701
|
+
alignMiddle: Me,
|
|
20702
|
+
alignBottom: Ne,
|
|
20703
|
+
distributeHorizontally: Pe,
|
|
20704
|
+
distributeVertically: Fe,
|
|
20705
|
+
autoLayout: Ie,
|
|
20706
|
+
onPortMouseDown: ge,
|
|
20707
|
+
onPortMouseUp: ye,
|
|
20701
20708
|
panX: d,
|
|
20702
20709
|
panY: f,
|
|
20703
20710
|
zoom: p
|
|
@@ -20705,11 +20712,11 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20705
20712
|
ref_key: "containerRef",
|
|
20706
20713
|
ref: s,
|
|
20707
20714
|
class: b(["nb-blueprint", {
|
|
20708
|
-
"is-panning": F(
|
|
20709
|
-
"is-space":
|
|
20715
|
+
"is-panning": F(P),
|
|
20716
|
+
"is-space": j.value
|
|
20710
20717
|
}]),
|
|
20711
|
-
onMousedown:
|
|
20712
|
-
onWheel: U(
|
|
20718
|
+
onMousedown: R,
|
|
20719
|
+
onWheel: U(re, ["prevent"])
|
|
20713
20720
|
}, [
|
|
20714
20721
|
t[0] ||= u("div", { class: "nb-blueprint__ambient" }, null, -1),
|
|
20715
20722
|
u("div", {
|
|
@@ -20723,7 +20730,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20723
20730
|
transformOrigin: "0 0"
|
|
20724
20731
|
})
|
|
20725
20732
|
}, [(T(), l("svg", _Xt, [
|
|
20726
|
-
(T(!0), l(n, null, k(
|
|
20733
|
+
(T(!0), l(n, null, k(xe.value, (t, n) => (T(), l("path", {
|
|
20727
20734
|
key: n,
|
|
20728
20735
|
d: t.path,
|
|
20729
20736
|
fill: "none",
|
|
@@ -20733,7 +20740,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20733
20740
|
style: x({ filter: `drop-shadow(0 0 6px ${t.color})` }),
|
|
20734
20741
|
onClick: (n) => e.$emit("disconnect", t.conn)
|
|
20735
20742
|
}, null, 12, vXt))), 128)),
|
|
20736
|
-
(T(!0), l(n, null, k(
|
|
20743
|
+
(T(!0), l(n, null, k(xe.value, (e, t) => (T(), l("path", {
|
|
20737
20744
|
key: `flow-${t}`,
|
|
20738
20745
|
d: e.path,
|
|
20739
20746
|
fill: "none",
|
|
@@ -20743,9 +20750,9 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20743
20750
|
class: "nb-blueprint__wire-flow",
|
|
20744
20751
|
"pointer-events": "none"
|
|
20745
20752
|
}, null, 8, yXt))), 128)),
|
|
20746
|
-
|
|
20753
|
+
he.value ? (T(), l("path", {
|
|
20747
20754
|
key: 0,
|
|
20748
|
-
d:
|
|
20755
|
+
d: he.value,
|
|
20749
20756
|
fill: "none",
|
|
20750
20757
|
stroke: "var(--nb-c-primary)",
|
|
20751
20758
|
"stroke-width": "2",
|
|
@@ -20753,14 +20760,14 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20753
20760
|
opacity: "0.6"
|
|
20754
20761
|
}, null, 8, bXt)) : c("", !0)
|
|
20755
20762
|
])), A(e.$slots, "default", {}, void 0, !0)], 4),
|
|
20756
|
-
|
|
20763
|
+
le.value ? (T(), l("div", {
|
|
20757
20764
|
key: 0,
|
|
20758
20765
|
class: "nb-blueprint__marquee",
|
|
20759
|
-
style: x(
|
|
20766
|
+
style: x(de.value)
|
|
20760
20767
|
}, null, 4)) : c("", !0)
|
|
20761
20768
|
], 34));
|
|
20762
20769
|
}
|
|
20763
|
-
}), [["__scopeId", "data-v-
|
|
20770
|
+
}), [["__scopeId", "data-v-5cb3c08a"]]), xXt = ["data-card-id"], SXt = { class: "nb-blueprint-card__ports nb-blueprint-card__ports--left" }, CXt = [
|
|
20764
20771
|
"data-port",
|
|
20765
20772
|
"title",
|
|
20766
20773
|
"onMousedown",
|
|
@@ -20974,7 +20981,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20974
20981
|
}, null, 46, RXt))), 128))])
|
|
20975
20982
|
], 46, xXt));
|
|
20976
20983
|
}
|
|
20977
|
-
}), [["__scopeId", "data-v-
|
|
20984
|
+
}), [["__scopeId", "data-v-9fe44302"]]), zXt = {
|
|
20978
20985
|
NbAiLabel: le,
|
|
20979
20986
|
NbBadge: pe,
|
|
20980
20987
|
NbBarChart: Re,
|
|
@@ -21023,7 +21030,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
21023
21030
|
Object.entries(zXt).forEach(([t, n]) => {
|
|
21024
21031
|
e.component(t, n);
|
|
21025
21032
|
});
|
|
21026
|
-
} }, VXt = /* @__PURE__ */
|
|
21033
|
+
} }, VXt = /* @__PURE__ */ W({ default: () => HXt });
|
|
21027
21034
|
function HXt(e) {
|
|
21028
21035
|
e.directive("nb-context-menu", {
|
|
21029
21036
|
mounted(e, t) {
|
|
@@ -21059,7 +21066,7 @@ function W9(e) {
|
|
|
21059
21066
|
}
|
|
21060
21067
|
//#endregion
|
|
21061
21068
|
//#region src/directives/ToolTip.directive.ts
|
|
21062
|
-
var UXt = /* @__PURE__ */
|
|
21069
|
+
var UXt = /* @__PURE__ */ W({ default: () => J9 }), G9 = /* @__PURE__ */ new Set(), K9 = (e) => {
|
|
21063
21070
|
if (Array.isArray(e)) return e.map((e) => K9(e)).join("");
|
|
21064
21071
|
if (!e || typeof e != "object" || !e.component) return "";
|
|
21065
21072
|
let { component: t, props: n = {}, children: r, content: i } = e, a = r === void 0 ? i : r, o = Object.entries(n).map(([e, t]) => `${e}="${W9(String(t))}"`).join(" "), s = Array.isArray(a) ? K9(a) : a === void 0 ? "" : W9(String(a));
|