@nubisco/ui 1.25.0 → 1.26.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.map +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +391 -396
- package/dist/index.mjs.map +1 -1
- package/dist/ui.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as e from "vue";
|
|
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
|
|
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 z, watch as B, withCtx as V, withDirectives as H, withKeys as U, withModifiers as W } from "vue";
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
|
-
var
|
|
4
|
+
var re = Object.defineProperty, ie = (e, t) => {
|
|
5
5
|
let n = {};
|
|
6
|
-
for (var r in e)
|
|
6
|
+
for (var r in e) re(n, r, {
|
|
7
7
|
get: e[r],
|
|
8
8
|
enumerable: !0
|
|
9
9
|
});
|
|
10
|
-
return t ||
|
|
10
|
+
return t || re(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) {
|
|
@@ -36,7 +36,7 @@ var ie = Object.defineProperty, W = (e, t) => {
|
|
|
36
36
|
justify: "center",
|
|
37
37
|
class: n.value
|
|
38
38
|
}), {
|
|
39
|
-
default:
|
|
39
|
+
default: V(() => [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", {
|
|
@@ -139,7 +139,7 @@ var ie = Object.defineProperty, W = (e, t) => {
|
|
|
139
139
|
},
|
|
140
140
|
setup(e) {
|
|
141
141
|
return (t, r) => (T(), s(a, { name: "nb-chart-tooltip" }, {
|
|
142
|
-
default:
|
|
142
|
+
default: V(() => [e.visible ? (T(), l("div", {
|
|
143
143
|
key: 0,
|
|
144
144
|
class: "nb-chart__tooltip",
|
|
145
145
|
style: x({ transform: `translate(${e.x}px, ${e.y}px)` }),
|
|
@@ -331,11 +331,11 @@ var ie = Object.defineProperty, W = (e, t) => {
|
|
|
331
331
|
height: e.height,
|
|
332
332
|
"show-legend": e.showLegend && d.value.length > 0
|
|
333
333
|
}, {
|
|
334
|
-
legend:
|
|
334
|
+
legend: V(() => [f(ye, { items: d.value.map((e) => ({
|
|
335
335
|
label: e.name,
|
|
336
336
|
color: e.color
|
|
337
337
|
})) }, null, 8, ["items"])]),
|
|
338
|
-
default:
|
|
338
|
+
default: V(() => [u("div", {
|
|
339
339
|
ref_key: "root",
|
|
340
340
|
ref: i,
|
|
341
341
|
class: "nb-bar-chart"
|
|
@@ -12725,7 +12725,7 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
|
|
|
12725
12725
|
type: !e.href && !e.to ? e.type : void 0,
|
|
12726
12726
|
onClick: n[0] ||= (n) => e.disabled || e.loading ? void 0 : t.$emit("click", n)
|
|
12727
12727
|
}, {
|
|
12728
|
-
default:
|
|
12728
|
+
default: V(() => [A(t.$slots, "default", {}, void 0, !0), e.loading || e.icon ? (T(), l("div", LWt, [e.loading ? (T(), l("span", RWt)) : e.icon ? (T(), s(I8, {
|
|
12729
12729
|
key: 1,
|
|
12730
12730
|
name: e.icon,
|
|
12731
12731
|
size: a.value,
|
|
@@ -12850,7 +12850,7 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
|
|
|
12850
12850
|
color: "transparent",
|
|
12851
12851
|
label: "None"
|
|
12852
12852
|
}, m = O(a.value == null);
|
|
12853
|
-
|
|
12853
|
+
B(() => a.value, (e) => {
|
|
12854
12854
|
e ?? (m.value = !0);
|
|
12855
12855
|
});
|
|
12856
12856
|
let h = o(() => t.allowMultiple ? !1 : t.showNull || m.value), g = o(() => h.value ? [p, ...u.value] : u.value), _ = o(() => {
|
|
@@ -12908,7 +12908,7 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
|
|
|
12908
12908
|
for: i.value,
|
|
12909
12909
|
disabled: !1
|
|
12910
12910
|
}, {
|
|
12911
|
-
default:
|
|
12911
|
+
default: V(() => [d(P(e.label), 1)]),
|
|
12912
12912
|
_: 1
|
|
12913
12913
|
}, 8, ["for"])) : c("", !0)], 64)) : c("", !0),
|
|
12914
12914
|
e.variant === "fluid" && (e.label || t.$slots.label) ? (T(), l("div", GWt, [t.$slots.label ? A(t.$slots, "label", { key: 0 }, void 0, !0) : (T(), l("label", KWt, P(e.label), 1))])) : c("", !0),
|
|
@@ -12920,7 +12920,7 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
|
|
|
12920
12920
|
shrink: !1,
|
|
12921
12921
|
style: x(_.value)
|
|
12922
12922
|
}, {
|
|
12923
|
-
default:
|
|
12923
|
+
default: V(() => [(T(!0), l(n, null, k(g.value, (t) => (T(), s(u, {
|
|
12924
12924
|
is: "button",
|
|
12925
12925
|
key: `option-${t.id || t.value}`,
|
|
12926
12926
|
align: "center",
|
|
@@ -12930,7 +12930,7 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
|
|
|
12930
12930
|
disabled: t.disabled,
|
|
12931
12931
|
onClick: (n) => !e.onlyView && D(t.value)
|
|
12932
12932
|
}, {
|
|
12933
|
-
default:
|
|
12933
|
+
default: V(() => [!e.onlyView && y(t.value) && !w(t) ? (T(), s(o, {
|
|
12934
12934
|
key: 0,
|
|
12935
12935
|
name: "check-light",
|
|
12936
12936
|
color: M(t)
|
|
@@ -13040,10 +13040,10 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
|
|
|
13040
13040
|
setFileStatus: E
|
|
13041
13041
|
}), (t, r) => (T(), l("div", {
|
|
13042
13042
|
class: "nb-file-uploader",
|
|
13043
|
-
onDragenter:
|
|
13044
|
-
onDragover: r[0] ||=
|
|
13045
|
-
onDragleave:
|
|
13046
|
-
onDrop:
|
|
13043
|
+
onDragenter: W(x, ["prevent"]),
|
|
13044
|
+
onDragover: r[0] ||= W(() => {}, ["prevent"]),
|
|
13045
|
+
onDragleave: W(S, ["prevent"]),
|
|
13046
|
+
onDrop: W(C, ["prevent"])
|
|
13047
13047
|
}, [
|
|
13048
13048
|
e.heading ? (T(), l("p", YWt, P(e.heading), 1)) : c("", !0),
|
|
13049
13049
|
e.description ? (T(), l("p", XWt, P(e.description), 1)) : c("", !0),
|
|
@@ -13058,9 +13058,9 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
|
|
|
13058
13058
|
key: 3,
|
|
13059
13059
|
class: "nb-file-uploader__btn",
|
|
13060
13060
|
variant: e.variant,
|
|
13061
|
-
onClick:
|
|
13061
|
+
onClick: W(g, ["stop"])
|
|
13062
13062
|
}, {
|
|
13063
|
-
default:
|
|
13063
|
+
default: V(() => [d(P(e.buttonLabel), 1)]),
|
|
13064
13064
|
_: 1
|
|
13065
13065
|
}, 8, ["variant"])),
|
|
13066
13066
|
u("input", {
|
|
@@ -13308,7 +13308,7 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
|
|
|
13308
13308
|
width: Math.max(c - s, 4)
|
|
13309
13309
|
};
|
|
13310
13310
|
}).filter(Boolean) : [];
|
|
13311
|
-
}),
|
|
13311
|
+
}), z = (e, t) => `${e},${t} ${e - 5},${t + 5} ${e + 5},${t + 5}`, B = (e, t, n) => `${e},${t - n} ${e + n},${t} ${e},${t + n} ${e - n},${t}`, H = o(() => {
|
|
13312
13312
|
let e = t.dependencies ?? [];
|
|
13313
13313
|
if (!e.length) return [];
|
|
13314
13314
|
let n = new Map((t.tasks ?? []).map((e) => [e.id, e]));
|
|
@@ -13325,13 +13325,13 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
|
|
|
13325
13325
|
arrowhead: `${g},${_} ${g - 6},${_ - 4} ${g - 6},${_ + 4}`
|
|
13326
13326
|
};
|
|
13327
13327
|
}).filter(Boolean);
|
|
13328
|
-
}),
|
|
13328
|
+
}), U = O(null), W = O(null), re = D({
|
|
13329
13329
|
x: 0,
|
|
13330
13330
|
y: 0
|
|
13331
|
-
}),
|
|
13332
|
-
if (!
|
|
13333
|
-
let n =
|
|
13334
|
-
|
|
13331
|
+
}), ie = O(null), ae = (e, t) => {
|
|
13332
|
+
if (!U.value) return;
|
|
13333
|
+
let n = U.value.getBoundingClientRect();
|
|
13334
|
+
re.x = e.clientX - n.left + 12, re.y = e.clientY - n.top + 12, W.value = t.id, ie.value = {
|
|
13335
13335
|
title: t.label,
|
|
13336
13336
|
rows: [
|
|
13337
13337
|
{
|
|
@@ -13352,9 +13352,9 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
|
|
|
13352
13352
|
]
|
|
13353
13353
|
};
|
|
13354
13354
|
}, oe = (e, t) => {
|
|
13355
|
-
if (!
|
|
13356
|
-
let n =
|
|
13357
|
-
|
|
13355
|
+
if (!U.value) return;
|
|
13356
|
+
let n = U.value.getBoundingClientRect();
|
|
13357
|
+
re.x = e.clientX - n.left + 12, re.y = e.clientY - n.top + 12, W.value = t.id, ie.value = {
|
|
13358
13358
|
title: t.label,
|
|
13359
13359
|
rows: [{
|
|
13360
13360
|
label: "Date",
|
|
@@ -13383,8 +13383,8 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
|
|
|
13383
13383
|
height: e.height,
|
|
13384
13384
|
"show-legend": e.showLegend && se.value.length > 1
|
|
13385
13385
|
}, {
|
|
13386
|
-
legend:
|
|
13387
|
-
default:
|
|
13386
|
+
legend: V(() => [f(ye, { items: se.value }, null, 8, ["items"])]),
|
|
13387
|
+
default: V(() => [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` })
|
|
13390
13390
|
}, [u("div", {
|
|
@@ -13398,21 +13398,21 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
|
|
|
13398
13398
|
}, [u("span", { class: b(["nb-gantt__list-caret", { "is-collapsed": m.value.has(t.id) }]) }, "▸", 2), u("span", oGt, P(t.label), 1)], 12, aGt)) : (T(), l("div", {
|
|
13399
13399
|
key: 1,
|
|
13400
13400
|
class: b(["nb-gantt__list-row", {
|
|
13401
|
-
"is-hovered":
|
|
13401
|
+
"is-hovered": W.value === t.id,
|
|
13402
13402
|
"is-milestone": t.milestone
|
|
13403
13403
|
}]),
|
|
13404
13404
|
style: x({
|
|
13405
13405
|
height: `${e.rowHeight}px`,
|
|
13406
13406
|
paddingLeft: t.indent ? "20px" : void 0
|
|
13407
13407
|
}),
|
|
13408
|
-
onMouseenter: (e) =>
|
|
13409
|
-
onMouseleave: r[0] ||= (e) =>
|
|
13408
|
+
onMouseenter: (e) => W.value = t.id,
|
|
13409
|
+
onMouseleave: r[0] ||= (e) => W.value = null
|
|
13410
13410
|
}, [u("span", {
|
|
13411
13411
|
class: "nb-gantt__list-label",
|
|
13412
13412
|
title: t.label
|
|
13413
13413
|
}, P(t.label), 9, cGt)], 46, sGt))], 64))), 128))])], 4), u("div", {
|
|
13414
13414
|
ref_key: "timelineEl",
|
|
13415
|
-
ref:
|
|
13415
|
+
ref: U,
|
|
13416
13416
|
class: "nb-gantt__timeline"
|
|
13417
13417
|
}, [
|
|
13418
13418
|
(T(), l("svg", {
|
|
@@ -13438,7 +13438,7 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
|
|
|
13438
13438
|
height: N.value,
|
|
13439
13439
|
role: "img",
|
|
13440
13440
|
"aria-label": e.title || "Gantt chart",
|
|
13441
|
-
onMouseleave: r[4] ||= (e) =>
|
|
13441
|
+
onMouseleave: r[4] ||= (e) => W.value = null
|
|
13442
13442
|
}, [
|
|
13443
13443
|
e.showGrid ? (T(), l("g", mGt, [(T(!0), l(n, null, k(F.value, (e, t) => (T(), l("line", {
|
|
13444
13444
|
key: `grid-${t}`,
|
|
@@ -13478,17 +13478,17 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
|
|
|
13478
13478
|
}, null, 8, vGt),
|
|
13479
13479
|
u("polygon", {
|
|
13480
13480
|
class: "nb-gantt__summary-caret",
|
|
13481
|
-
points:
|
|
13481
|
+
points: z(t.x, t.y + e.rowHeight * .65)
|
|
13482
13482
|
}, null, 8, yGt),
|
|
13483
13483
|
u("polygon", {
|
|
13484
13484
|
class: "nb-gantt__summary-caret",
|
|
13485
|
-
points:
|
|
13485
|
+
points: z(t.x + t.width, t.y + e.rowHeight * .65)
|
|
13486
13486
|
}, null, 8, bGt)
|
|
13487
13487
|
]))), 128)),
|
|
13488
13488
|
(T(!0), l(n, null, k(ee.value, (t) => (T(), l("g", { key: `bar-${t.id}` }, [u("rect", {
|
|
13489
13489
|
class: b(["nb-gantt__bar", [`nb-gantt__bar--${t.status}`, {
|
|
13490
|
-
"is-hovered":
|
|
13491
|
-
"is-dim":
|
|
13490
|
+
"is-hovered": W.value === t.id,
|
|
13491
|
+
"is-dim": W.value !== null && W.value !== t.id
|
|
13492
13492
|
}]]),
|
|
13493
13493
|
x: t.x,
|
|
13494
13494
|
y: t.y + a.value,
|
|
@@ -13496,8 +13496,8 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
|
|
|
13496
13496
|
height: d.value,
|
|
13497
13497
|
rx: "3",
|
|
13498
13498
|
fill: t.color,
|
|
13499
|
-
onMouseenter: (e) =>
|
|
13500
|
-
onMouseleave: r[1] ||= (e) =>
|
|
13499
|
+
onMouseenter: (e) => W.value = t.id,
|
|
13500
|
+
onMouseleave: r[1] ||= (e) => W.value = null,
|
|
13501
13501
|
onMousemove: (e) => ae(e, t)
|
|
13502
13502
|
}, null, 42, xGt), e.showProgress && t.progress > 0 ? (T(), l("rect", {
|
|
13503
13503
|
key: 0,
|
|
@@ -13512,21 +13512,21 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
|
|
|
13512
13512
|
}, null, 8, SGt)) : c("", !0)]))), 128)),
|
|
13513
13513
|
(T(!0), l(n, null, k(te.value, (t) => (T(), l("g", { key: `ms-${t.id}` }, [u("polygon", {
|
|
13514
13514
|
class: b(["nb-gantt__milestone", {
|
|
13515
|
-
"is-hovered":
|
|
13516
|
-
"is-dim":
|
|
13515
|
+
"is-hovered": W.value === t.id,
|
|
13516
|
+
"is-dim": W.value !== null && W.value !== t.id
|
|
13517
13517
|
}]),
|
|
13518
|
-
points:
|
|
13518
|
+
points: B(t.x, t.y + e.rowHeight / 2, p.value),
|
|
13519
13519
|
fill: t.color,
|
|
13520
|
-
onMouseenter: (e) =>
|
|
13521
|
-
onMouseleave: r[2] ||= (e) =>
|
|
13520
|
+
onMouseenter: (e) => W.value = t.id,
|
|
13521
|
+
onMouseleave: r[2] ||= (e) => W.value = null,
|
|
13522
13522
|
onMousemove: (e) => oe(e, t)
|
|
13523
13523
|
}, null, 42, CGt)]))), 128)),
|
|
13524
|
-
u("g", null, [(T(!0), l(n, null, k(
|
|
13524
|
+
u("g", null, [(T(!0), l(n, null, k(H.value, (e, t) => (T(), l("path", {
|
|
13525
13525
|
key: `dep-${t}`,
|
|
13526
13526
|
class: "nb-gantt__dependency",
|
|
13527
13527
|
d: e.path,
|
|
13528
13528
|
fill: "none"
|
|
13529
|
-
}, null, 8, wGt))), 128)), (T(!0), l(n, null, k(
|
|
13529
|
+
}, null, 8, wGt))), 128)), (T(!0), l(n, null, k(H.value, (e, t) => (T(), l("polygon", {
|
|
13530
13530
|
key: `dep-arrow-${t}`,
|
|
13531
13531
|
class: "nb-gantt__dependency-arrow",
|
|
13532
13532
|
points: e.arrowhead
|
|
@@ -13538,16 +13538,16 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
|
|
|
13538
13538
|
width: M.value,
|
|
13539
13539
|
height: e.rowHeight,
|
|
13540
13540
|
fill: "transparent",
|
|
13541
|
-
onMouseenter: (e) =>
|
|
13542
|
-
onMouseleave: r[3] ||= (e) =>
|
|
13541
|
+
onMouseenter: (e) => W.value = t.id,
|
|
13542
|
+
onMouseleave: r[3] ||= (e) => W.value = null
|
|
13543
13543
|
}, null, 40, EGt))), 128))])
|
|
13544
13544
|
], 40, pGt)),
|
|
13545
13545
|
f(we, {
|
|
13546
|
-
visible: e.showTooltip &&
|
|
13547
|
-
x:
|
|
13548
|
-
y:
|
|
13549
|
-
title:
|
|
13550
|
-
rows:
|
|
13546
|
+
visible: e.showTooltip && W.value !== null && ie.value !== null,
|
|
13547
|
+
x: re.x,
|
|
13548
|
+
y: re.y,
|
|
13549
|
+
title: ie.value?.title ?? "",
|
|
13550
|
+
rows: ie.value?.rows ?? []
|
|
13551
13551
|
}, null, 8, [
|
|
13552
13552
|
"visible",
|
|
13553
13553
|
"x",
|
|
@@ -13896,13 +13896,13 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
|
|
|
13896
13896
|
gap: "md",
|
|
13897
13897
|
class: "nb-form"
|
|
13898
13898
|
}, {
|
|
13899
|
-
default:
|
|
13899
|
+
default: V(() => [
|
|
13900
13900
|
e.title ? (T(), s(r, {
|
|
13901
13901
|
key: 0,
|
|
13902
13902
|
is: "h4",
|
|
13903
13903
|
class: "nb-form--header"
|
|
13904
13904
|
}, {
|
|
13905
|
-
default:
|
|
13905
|
+
default: V(() => [d(P(e.title), 1)]),
|
|
13906
13906
|
_: 1
|
|
13907
13907
|
})) : c("", !0),
|
|
13908
13908
|
t.$slots.message ? (T(), s(r, {
|
|
@@ -13910,7 +13910,7 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
|
|
|
13910
13910
|
is: "p",
|
|
13911
13911
|
class: "nb-form--message"
|
|
13912
13912
|
}, {
|
|
13913
|
-
default:
|
|
13913
|
+
default: V(() => [A(t.$slots, "message")]),
|
|
13914
13914
|
_: 3
|
|
13915
13915
|
})) : c("", !0),
|
|
13916
13916
|
t.$slots.default ? (T(), s(r, {
|
|
@@ -13920,7 +13920,7 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
|
|
|
13920
13920
|
gap: "sm",
|
|
13921
13921
|
class: "nb-form--body"
|
|
13922
13922
|
}, {
|
|
13923
|
-
default:
|
|
13923
|
+
default: V(() => [A(t.$slots, "default")]),
|
|
13924
13924
|
_: 3
|
|
13925
13925
|
})) : c("", !0),
|
|
13926
13926
|
t.$slots.footer ? (T(), s(r, {
|
|
@@ -13929,7 +13929,7 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
|
|
|
13929
13929
|
class: "nb-form--footer",
|
|
13930
13930
|
justify: "end"
|
|
13931
13931
|
}, {
|
|
13932
|
-
default:
|
|
13932
|
+
default: V(() => [A(t.$slots, "footer")]),
|
|
13933
13933
|
_: 3
|
|
13934
13934
|
})) : c("", !0)
|
|
13935
13935
|
]),
|
|
@@ -14294,7 +14294,7 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
|
|
|
14294
14294
|
class: b(x.value),
|
|
14295
14295
|
tabindex: e.tabIndex ?? !n.includes(e.is) ? "-1" : "0"
|
|
14296
14296
|
}, {
|
|
14297
|
-
default:
|
|
14297
|
+
default: V(() => [A(e.$slots, "default")]),
|
|
14298
14298
|
_: 3
|
|
14299
14299
|
}, 8, [
|
|
14300
14300
|
"id",
|
|
@@ -14671,7 +14671,7 @@ function ZGt(e, t = {}) {
|
|
|
14671
14671
|
for (; t = M(e);) n += t;
|
|
14672
14672
|
let r = e.currentChar();
|
|
14673
14673
|
if (r && r !== "}" && r !== y5 && r !== _5 && r !== v5 && r !== " ") {
|
|
14674
|
-
let t =
|
|
14674
|
+
let t = U(e);
|
|
14675
14675
|
return d($.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, n + t), n + t;
|
|
14676
14676
|
}
|
|
14677
14677
|
return e.currentChar() === y5 && d($.UNTERMINATED_CLOSING_BRACE, a(), 0), n;
|
|
@@ -14684,24 +14684,24 @@ function ZGt(e, t = {}) {
|
|
|
14684
14684
|
function ne(e) {
|
|
14685
14685
|
return e !== b5 && e !== v5;
|
|
14686
14686
|
}
|
|
14687
|
-
function
|
|
14687
|
+
function z(e) {
|
|
14688
14688
|
g(e), m(e, "'");
|
|
14689
14689
|
let t = "", n = "";
|
|
14690
|
-
for (; t = O(e, ne);) t === "\\" ? n +=
|
|
14690
|
+
for (; t = O(e, ne);) t === "\\" ? n += B(e) : n += t;
|
|
14691
14691
|
let r = e.currentChar();
|
|
14692
14692
|
return r === v5 || r === y5 ? (d($.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), r === v5 && (e.next(), m(e, "'")), n) : (m(e, "'"), n);
|
|
14693
14693
|
}
|
|
14694
|
-
function
|
|
14694
|
+
function B(e) {
|
|
14695
14695
|
let t = e.currentChar();
|
|
14696
14696
|
switch (t) {
|
|
14697
14697
|
case "\\":
|
|
14698
14698
|
case "'": return e.next(), `\\${t}`;
|
|
14699
|
-
case "u": return
|
|
14700
|
-
case "U": return
|
|
14699
|
+
case "u": return V(e, t, 4);
|
|
14700
|
+
case "U": return V(e, t, 6);
|
|
14701
14701
|
default: return d($.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, t), "";
|
|
14702
14702
|
}
|
|
14703
14703
|
}
|
|
14704
|
-
function
|
|
14704
|
+
function V(e, t, n) {
|
|
14705
14705
|
m(e, t);
|
|
14706
14706
|
let r = "";
|
|
14707
14707
|
for (let i = 0; i < n; i++) {
|
|
@@ -14714,28 +14714,28 @@ function ZGt(e, t = {}) {
|
|
|
14714
14714
|
}
|
|
14715
14715
|
return `\\${t}${r}`;
|
|
14716
14716
|
}
|
|
14717
|
-
function
|
|
14717
|
+
function H(e) {
|
|
14718
14718
|
return e !== "{" && e !== "}" && e !== _5 && e !== v5;
|
|
14719
14719
|
}
|
|
14720
|
-
function
|
|
14720
|
+
function U(e) {
|
|
14721
14721
|
g(e);
|
|
14722
14722
|
let t = "", n = "";
|
|
14723
|
-
for (; t = O(e,
|
|
14723
|
+
for (; t = O(e, H);) n += t;
|
|
14724
14724
|
return n;
|
|
14725
14725
|
}
|
|
14726
|
-
function
|
|
14726
|
+
function W(e) {
|
|
14727
14727
|
let t = "", n = "";
|
|
14728
14728
|
for (; t = A(e);) n += t;
|
|
14729
14729
|
return n;
|
|
14730
14730
|
}
|
|
14731
|
-
function
|
|
14731
|
+
function re(e) {
|
|
14732
14732
|
let t = (n) => {
|
|
14733
14733
|
let r = e.currentChar();
|
|
14734
14734
|
return r === "{" || r === "@" || r === "|" || r === "(" || r === ")" || !r || r === _5 ? n : (n += r, e.next(), t(n));
|
|
14735
14735
|
};
|
|
14736
14736
|
return t("");
|
|
14737
14737
|
}
|
|
14738
|
-
function
|
|
14738
|
+
function ie(e) {
|
|
14739
14739
|
g(e);
|
|
14740
14740
|
let t = m(e, "|");
|
|
14741
14741
|
return g(e), t;
|
|
@@ -14748,12 +14748,12 @@ function ZGt(e, t = {}) {
|
|
|
14748
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,
|
|
14751
|
+
if (E(e)) return t.braceNest > 0 && d($.UNTERMINATED_CLOSING_BRACE, a(), 0), n = f(t, 1, ie(e)), t.braceNest = 0, t.inLinked = !1, n;
|
|
14752
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
|
-
if (o = x(e, t)) return n = f(t, 6,
|
|
14756
|
-
if (!r && !i && !o) return n = f(t, 12,
|
|
14755
|
+
if (o = x(e, t)) return n = f(t, 6, z(e)), g(e), n;
|
|
14756
|
+
if (!r && !i && !o) return n = f(t, 12, U(e)), d($.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, n.value), g(e), n;
|
|
14757
14757
|
break;
|
|
14758
14758
|
}
|
|
14759
14759
|
}
|
|
@@ -14765,7 +14765,7 @@ function ZGt(e, t = {}) {
|
|
|
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, ie(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, W(e))) : T(e, t) ? (g(e), i === "{" ? ae(e, t) || r : f(t, 10, re(e))) : (n === 7 && d($.INVALID_LINKED_FORMAT, a(), 0), t.braceNest = 0, t.inLinked = !1, se(e, t));
|
|
14769
14769
|
}
|
|
14770
14770
|
}
|
|
14771
14771
|
function se(e, t) {
|
|
@@ -14777,7 +14777,7 @@ function ZGt(e, t = {}) {
|
|
|
14777
14777
|
case "}": return d($.UNBALANCED_CLOSING_BRACE, a(), 0), e.next(), f(t, 3, "}");
|
|
14778
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, ie(e)), t.braceNest = 0, t.inLinked = !1, n;
|
|
14781
14781
|
if (D(e)) return f(t, 0, R(e));
|
|
14782
14782
|
break;
|
|
14783
14783
|
}
|
|
@@ -16227,35 +16227,35 @@ function wqt(e = {}) {
|
|
|
16227
16227
|
function ne(...e) {
|
|
16228
16228
|
return R((t) => Reflect.apply(y7, null, [t, ...e]), () => b7(...e), "datetime format", (t) => Reflect.apply(t.d, t, [...e]), () => "", (e) => Y(e) || c5(e));
|
|
16229
16229
|
}
|
|
16230
|
-
function
|
|
16230
|
+
function z(...e) {
|
|
16231
16231
|
return R((t) => Reflect.apply(S7, null, [t, ...e]), () => C7(...e), "number format", (t) => Reflect.apply(t.n, t, [...e]), () => "", (e) => Y(e) || c5(e));
|
|
16232
16232
|
}
|
|
16233
|
-
function
|
|
16233
|
+
function V(e) {
|
|
16234
16234
|
return e.map((e) => Y(e) || $8(e) || X(e) ? G7(String(e)) : e);
|
|
16235
16235
|
}
|
|
16236
|
-
let
|
|
16237
|
-
normalize:
|
|
16236
|
+
let H = {
|
|
16237
|
+
normalize: V,
|
|
16238
16238
|
interpolate: (e) => e,
|
|
16239
16239
|
type: "vnode"
|
|
16240
16240
|
};
|
|
16241
|
-
function
|
|
16241
|
+
function U(...e) {
|
|
16242
16242
|
return R((t) => {
|
|
16243
16243
|
let n, r = t;
|
|
16244
16244
|
try {
|
|
16245
|
-
r.processor =
|
|
16245
|
+
r.processor = H, n = Reflect.apply(O7, null, [r, ...e]);
|
|
16246
16246
|
} finally {
|
|
16247
16247
|
r.processor = null;
|
|
16248
16248
|
}
|
|
16249
16249
|
return n;
|
|
16250
16250
|
}, () => j7(...e), "translate", (t) => t[P7](...e), (e) => [G7(e)], (e) => c5(e));
|
|
16251
16251
|
}
|
|
16252
|
-
function
|
|
16252
|
+
function W(...e) {
|
|
16253
16253
|
return R((t) => Reflect.apply(S7, null, [t, ...e]), () => C7(...e), "number format", (t) => t[I7](...e), q7, (e) => Y(e) || c5(e));
|
|
16254
16254
|
}
|
|
16255
|
-
function
|
|
16255
|
+
function re(...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 ie(e) {
|
|
16259
16259
|
C = e, w.pluralRules = C;
|
|
16260
16260
|
}
|
|
16261
16261
|
function ae(e, t) {
|
|
@@ -16318,9 +16318,9 @@ function wqt(e = {}) {
|
|
|
16318
16318
|
function he(e, t) {
|
|
16319
16319
|
f.value[e] = r5(f.value[e] || {}, t), w.numberFormats = f.value, w7(w, e, t);
|
|
16320
16320
|
}
|
|
16321
|
-
J7++, t && J8 && (
|
|
16321
|
+
J7++, t && J8 && (B(t.locale, (e) => {
|
|
16322
16322
|
s && (c.value = e, w.locale = e, h7(w, c.value, l.value));
|
|
16323
|
-
}),
|
|
16323
|
+
}), B(t.fallbackLocale, (e) => {
|
|
16324
16324
|
s && (l.value = e, w.fallbackLocale = e, h7(w, c.value, l.value));
|
|
16325
16325
|
}));
|
|
16326
16326
|
let K = {
|
|
@@ -16390,9 +16390,9 @@ function wqt(e = {}) {
|
|
|
16390
16390
|
setPostTranslationHandler: P,
|
|
16391
16391
|
getMissingHandler: F,
|
|
16392
16392
|
setMissingHandler: I,
|
|
16393
|
-
[yqt]:
|
|
16393
|
+
[yqt]: ie
|
|
16394
16394
|
};
|
|
16395
|
-
return K.datetimeFormats = A, K.numberFormats = j, K.rt = te, K.te = ae, K.tm = se, K.d = ne, K.n =
|
|
16395
|
+
return K.datetimeFormats = A, K.numberFormats = j, K.rt = te, K.te = ae, K.tm = se, K.d = ne, K.n = z, K.getDateTimeFormat = ue, K.setDateTimeFormat = de, K.mergeDateTimeFormat = fe, K.getNumberFormat = pe, K.setNumberFormat = me, K.mergeNumberFormat = he, K[z7] = n, K[P7] = U, K[F7] = re, K[I7] = W, 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;
|
|
@@ -16593,7 +16593,7 @@ var $7 = /* @__PURE__ */ function(e) {
|
|
|
16593
16593
|
width: h.width * _.x * .5,
|
|
16594
16594
|
height: h.height * _.y * .5
|
|
16595
16595
|
};
|
|
16596
|
-
|
|
16596
|
+
z(), me();
|
|
16597
16597
|
}
|
|
16598
16598
|
}, h.onerror = () => {
|
|
16599
16599
|
console.error("Failed to load image");
|
|
@@ -16605,14 +16605,14 @@ var $7 = /* @__PURE__ */ function(e) {
|
|
|
16605
16605
|
g &&= (URL.revokeObjectURL(g), null);
|
|
16606
16606
|
let e = y.value;
|
|
16607
16607
|
e && (URL.revokeObjectURL(e), y.value = null);
|
|
16608
|
-
}),
|
|
16608
|
+
}), B(() => i.image, (e) => {
|
|
16609
16609
|
e && te();
|
|
16610
|
-
}),
|
|
16610
|
+
}), B(() => [
|
|
16611
16611
|
i.cropAsCircle,
|
|
16612
16612
|
i.outputAsCircle,
|
|
16613
16613
|
i.lockAspectRatio
|
|
16614
16614
|
], () => {
|
|
16615
|
-
p.value && m &&
|
|
16615
|
+
p.value && m && z();
|
|
16616
16616
|
});
|
|
16617
16617
|
let ne = () => {
|
|
16618
16618
|
let e = h.width / h.height, t = e9, n = t9;
|
|
@@ -16620,15 +16620,15 @@ var $7 = /* @__PURE__ */ function(e) {
|
|
|
16620
16620
|
drawWidth: t,
|
|
16621
16621
|
drawHeight: n
|
|
16622
16622
|
};
|
|
16623
|
-
},
|
|
16623
|
+
}, z = () => {
|
|
16624
16624
|
if (m && p.value) {
|
|
16625
16625
|
m.clearRect(0, 0, p.value.width, p.value.height);
|
|
16626
16626
|
let e = (p.value.width - h.width * _.x) / 2, t = (p.value.height - h.height * _.y) / 2;
|
|
16627
|
-
m.drawImage(h, 0, 0, h.width, h.height, e, t, h.width * _.x, h.height * _.y),
|
|
16627
|
+
m.drawImage(h, 0, 0, h.width, h.height, e, t, h.width * _.x, h.height * _.y), H();
|
|
16628
16628
|
}
|
|
16629
|
-
},
|
|
16629
|
+
}, H = () => {
|
|
16630
16630
|
m && p.value && (m.save(), m.beginPath(), i.cropAsCircle ? m.arc(v.value.x + v.value.width / 2, v.value.y + v.value.height / 2, v.value.width / 2, 0, Math.PI * 2) : m.rect(v.value.x, v.value.y, v.value.width, v.value.height), m.rect(0, 0, p.value.width, p.value.height), m.clip("evenodd"), m.fillStyle = "rgba(0, 0, 0, 0.5)", m.fillRect(0, 0, p.value.width, p.value.height), m.restore(), m.save(), m.strokeStyle = "rgba(255, 255, 255, 0.8)", m.lineWidth = 1, m.setLineDash([5, 5]), m.imageSmoothingEnabled = !1, i.cropAsCircle ? (m.beginPath(), m.arc(v.value.x + v.value.width / 2, v.value.y + v.value.height / 2, v.value.width / 2, 0, Math.PI * 2), m.stroke()) : m.strokeRect(v.value.x, v.value.y, v.value.width, v.value.height), m.restore());
|
|
16631
|
-
},
|
|
16631
|
+
}, U = o(() => {
|
|
16632
16632
|
if (i.cropAsCircle) {
|
|
16633
16633
|
let e = v.value.x + v.value.width / 2, t = v.value.y + v.value.height / 2, n = v.value.width / 2;
|
|
16634
16634
|
return {
|
|
@@ -16699,7 +16699,7 @@ var $7 = /* @__PURE__ */ function(e) {
|
|
|
16699
16699
|
top: `${v.value.y + v.value.height / 2 - 5}px`
|
|
16700
16700
|
}
|
|
16701
16701
|
};
|
|
16702
|
-
}),
|
|
16702
|
+
}), re = (e) => {
|
|
16703
16703
|
if ("touches" in e && e.touches.length > 0) {
|
|
16704
16704
|
let t = e.touches[0];
|
|
16705
16705
|
return {
|
|
@@ -16714,17 +16714,17 @@ var $7 = /* @__PURE__ */ function(e) {
|
|
|
16714
16714
|
clientX: 0,
|
|
16715
16715
|
clientY: 0
|
|
16716
16716
|
};
|
|
16717
|
-
},
|
|
16717
|
+
}, ie = (e) => {
|
|
16718
16718
|
let t = p.value;
|
|
16719
16719
|
if (!t) return null;
|
|
16720
|
-
let { clientX: n, clientY: r } =
|
|
16720
|
+
let { clientX: n, clientY: r } = re(e), { left: i, top: a } = t.getBoundingClientRect();
|
|
16721
16721
|
return {
|
|
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 = ie(e);
|
|
16728
16728
|
if (!t) return;
|
|
16729
16729
|
let { x: n, y: r } = t;
|
|
16730
16730
|
fe(n, r) && (D = !0, E = !0, A = {
|
|
@@ -16737,16 +16737,16 @@ var $7 = /* @__PURE__ */ function(e) {
|
|
|
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 = ie(e);
|
|
16741
16741
|
if (!t) return;
|
|
16742
16742
|
let { x: n, y: r } = t;
|
|
16743
|
-
v.value.x = Math.floor(n - A.x), v.value.y = Math.floor(r - A.y),
|
|
16743
|
+
v.value.x = Math.floor(n - A.x), v.value.y = Math.floor(r - A.y), z();
|
|
16744
16744
|
}
|
|
16745
16745
|
}, G = () => {
|
|
16746
|
-
E &&= (pe(),
|
|
16746
|
+
E &&= (pe(), z(), !1);
|
|
16747
16747
|
}, le = (e, t) => {
|
|
16748
16748
|
e.preventDefault();
|
|
16749
|
-
let n =
|
|
16749
|
+
let n = ie(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 = ie(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) {
|
|
@@ -16774,10 +16774,10 @@ var $7 = /* @__PURE__ */ function(e) {
|
|
|
16774
16774
|
height: i
|
|
16775
16775
|
};
|
|
16776
16776
|
}
|
|
16777
|
-
|
|
16777
|
+
z();
|
|
16778
16778
|
return;
|
|
16779
16779
|
}
|
|
16780
|
-
let t =
|
|
16780
|
+
let t = ie(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;
|
|
@@ -16812,9 +16812,9 @@ var $7 = /* @__PURE__ */ function(e) {
|
|
|
16812
16812
|
let e = I.width / I.height;
|
|
16813
16813
|
["left", "right"].includes(L) ? (s.height = s.width / e, L === "left" && (s.y = I.y - (s.height - I.height) / 2)) : ["top", "bottom"].includes(L) && (s.width = s.height * e, L === "top" && (s.x = I.x - (s.width - I.width) / 2));
|
|
16814
16814
|
}
|
|
16815
|
-
v.value = s,
|
|
16815
|
+
v.value = s, z();
|
|
16816
16816
|
}, de = () => {
|
|
16817
|
-
M && (pe(),
|
|
16817
|
+
M && (pe(), z(), M = !1, L = null);
|
|
16818
16818
|
}, fe = (e, t) => {
|
|
16819
16819
|
if (i.cropAsCircle) {
|
|
16820
16820
|
let n = v.value.x + v.value.width / 2, r = v.value.y + v.value.height / 2, i = v.value.width / 2, a = e - n, o = t - r;
|
|
@@ -16856,7 +16856,7 @@ var $7 = /* @__PURE__ */ function(e) {
|
|
|
16856
16856
|
}, "image/jpeg", .8));
|
|
16857
16857
|
}
|
|
16858
16858
|
};
|
|
16859
|
-
return
|
|
16859
|
+
return B(() => i, () => {
|
|
16860
16860
|
me();
|
|
16861
16861
|
}, { deep: !0 }), (t, i) => {
|
|
16862
16862
|
let a = j("NbGrid");
|
|
@@ -16875,20 +16875,20 @@ var $7 = /* @__PURE__ */ function(e) {
|
|
|
16875
16875
|
}, null, 512), (T(), l(n, null, k(ee, (e) => u("div", {
|
|
16876
16876
|
key: e.name,
|
|
16877
16877
|
class: b(["resize-handle", e.name]),
|
|
16878
|
-
style: x(
|
|
16879
|
-
onMousedown:
|
|
16880
|
-
onTouchstart:
|
|
16878
|
+
style: x(U.value[e.name]),
|
|
16879
|
+
onMousedown: W((t) => le(t, e.name), ["stop"]),
|
|
16880
|
+
onTouchstart: W((t) => le(t, e.name), ["stop"])
|
|
16881
16881
|
}, null, 46, Pqt)), 64))], 32), e.showPreview && y.value && w.value ? (T(), s(a, {
|
|
16882
16882
|
key: 0,
|
|
16883
16883
|
class: "cropped-image-preview"
|
|
16884
16884
|
}, {
|
|
16885
|
-
default:
|
|
16885
|
+
default: V(() => [f(a, {
|
|
16886
16886
|
is: "ul",
|
|
16887
16887
|
dir: "col",
|
|
16888
16888
|
justify: "center",
|
|
16889
16889
|
gap: "sm"
|
|
16890
16890
|
}, {
|
|
16891
|
-
default:
|
|
16891
|
+
default: V(() => [
|
|
16892
16892
|
u("li", null, [u("strong", null, P(F(r)("common.X")), 1), d(" " + P(w.value.x.toFixed(0)), 1)]),
|
|
16893
16893
|
u("li", null, [u("strong", null, P(F(r)("common.Y")), 1), d(" " + P(w.value.y.toFixed(0)), 1)]),
|
|
16894
16894
|
u("li", null, [u("strong", null, P(F(r)("common.WIDTH")), 1), d(" " + P(w.value.width.toFixed(0)), 1)]),
|
|
@@ -16977,18 +16977,18 @@ var $7 = /* @__PURE__ */ function(e) {
|
|
|
16977
16977
|
}]) }, [
|
|
16978
16978
|
u("div", { class: b(["title", { editor: p.value }]) }, [d(P(e.title) + " ", 1), v(a.value) ? (T(), l("span", Lqt, P(y(a.value) ? `[ ${a.value.length} items ]` : `{ ${a.value && typeof a.value == "object" ? Object.keys(a.value).length : 0} properties }`), 1)) : c("", !0)], 2),
|
|
16979
16979
|
v(a.value) ? c("", !0) : (T(), l("div", Rqt, [
|
|
16980
|
-
S(a.value) ? c("", !0) :
|
|
16980
|
+
S(a.value) ? c("", !0) : H((T(), l("span", {
|
|
16981
16981
|
key: 0,
|
|
16982
16982
|
class: b({
|
|
16983
16983
|
value: !0,
|
|
16984
16984
|
"value--null": x(a.value)
|
|
16985
16985
|
}),
|
|
16986
16986
|
onDblclick: r[0] ||= () => p.value = e.editable
|
|
16987
|
-
}, P(x(a.value) ? Bqt : a.value), 35)), [[
|
|
16988
|
-
!S(a.value) && p.value ?
|
|
16987
|
+
}, P(x(a.value) ? Bqt : a.value), 35)), [[z, !p.value]]),
|
|
16988
|
+
!S(a.value) && p.value ? H((T(), l("input", {
|
|
16989
16989
|
key: 1,
|
|
16990
16990
|
"onUpdate:modelValue": r[1] ||= (e) => a.value = e,
|
|
16991
|
-
onKeyup: r[2] ||=
|
|
16991
|
+
onKeyup: r[2] ||= U(() => p.value = !1, ["enter"]),
|
|
16992
16992
|
onBlur: r[3] ||= () => p.value = !1
|
|
16993
16993
|
}, null, 544)), [[ne, a.value]]) : c("", !0),
|
|
16994
16994
|
S(a.value) ? (T(), l("span", {
|
|
@@ -17144,11 +17144,11 @@ var $7 = /* @__PURE__ */ function(e) {
|
|
|
17144
17144
|
height: e.height,
|
|
17145
17145
|
"show-legend": e.showLegend && d.value.length > 0
|
|
17146
17146
|
}, {
|
|
17147
|
-
legend:
|
|
17147
|
+
legend: V(() => [f(ye, { items: d.value.map((e) => ({
|
|
17148
17148
|
label: e.name,
|
|
17149
17149
|
color: e.color
|
|
17150
17150
|
})) }, null, 8, ["items"])]),
|
|
17151
|
-
default:
|
|
17151
|
+
default: V(() => [u("div", {
|
|
17152
17152
|
ref_key: "root",
|
|
17153
17153
|
ref: i,
|
|
17154
17154
|
class: "nb-line-chart"
|
|
@@ -17360,7 +17360,7 @@ var $7 = /* @__PURE__ */ function(e) {
|
|
|
17360
17360
|
let t = window.innerHeight - g.top - 8;
|
|
17361
17361
|
d.value.style.maxHeight = `${t}px`;
|
|
17362
17362
|
}
|
|
17363
|
-
return
|
|
17363
|
+
return B(() => i.open, (e) => {
|
|
17364
17364
|
e ? (p.value = -1, document.addEventListener("mousedown", P), y(() => {
|
|
17365
17365
|
F(), j().length > 0 && M(0);
|
|
17366
17366
|
})) : (p.value = -1, document.removeEventListener("mousedown", P));
|
|
@@ -17372,7 +17372,7 @@ var $7 = /* @__PURE__ */ function(e) {
|
|
|
17372
17372
|
close: C,
|
|
17373
17373
|
el: d
|
|
17374
17374
|
}), (t, n) => (T(), s(r, { to: "body" }, [f(a, { name: "nb-menu" }, {
|
|
17375
|
-
default:
|
|
17375
|
+
default: V(() => [e.open ? (T(), l("ul", {
|
|
17376
17376
|
key: 0,
|
|
17377
17377
|
ref_key: "menuRef",
|
|
17378
17378
|
ref: d,
|
|
@@ -17466,7 +17466,7 @@ var $7 = /* @__PURE__ */ function(e) {
|
|
|
17466
17466
|
function _() {
|
|
17467
17467
|
s.value && a?.setActiveMenu(null);
|
|
17468
17468
|
}
|
|
17469
|
-
return
|
|
17469
|
+
return B(s, (e) => {
|
|
17470
17470
|
e && c();
|
|
17471
17471
|
}), C(() => {
|
|
17472
17472
|
r.value && a && a.registerTrigger({
|
|
@@ -17498,7 +17498,7 @@ var $7 = /* @__PURE__ */ function(e) {
|
|
|
17498
17498
|
"max-width": e.maxWidth,
|
|
17499
17499
|
onClose: _
|
|
17500
17500
|
}, {
|
|
17501
|
-
default:
|
|
17501
|
+
default: V(() => [A(t.$slots, "default")]),
|
|
17502
17502
|
_: 3
|
|
17503
17503
|
}, 8, [
|
|
17504
17504
|
"open",
|
|
@@ -17568,7 +17568,7 @@ var $7 = /* @__PURE__ */ function(e) {
|
|
|
17568
17568
|
"aria-checked": e.selectable || e.radioGroup ? e.selected : void 0,
|
|
17569
17569
|
tabindex: -1,
|
|
17570
17570
|
onClick: m,
|
|
17571
|
-
onKeydown: [
|
|
17571
|
+
onKeydown: [U(W(m, ["prevent"]), ["enter"]), U(W(m, ["prevent"]), ["space"])],
|
|
17572
17572
|
onMouseenter: n[0] ||= (e) => t.$emit("highlight")
|
|
17573
17573
|
}, [
|
|
17574
17574
|
e.selectable && e.selected ? (T(), s(r, {
|
|
@@ -17682,9 +17682,9 @@ var u9 = /* @__PURE__ */ G(oJt, [["render", cJt]]), lJt = [
|
|
|
17682
17682
|
onMouseenter: M,
|
|
17683
17683
|
onMouseleave: N,
|
|
17684
17684
|
onKeydown: [
|
|
17685
|
-
|
|
17686
|
-
|
|
17687
|
-
|
|
17685
|
+
U(W(E, ["prevent"]), ["right"]),
|
|
17686
|
+
U(W(D, ["prevent"]), ["left"]),
|
|
17687
|
+
U(W(D, ["prevent"]), ["escape"])
|
|
17688
17688
|
],
|
|
17689
17689
|
onClick: L
|
|
17690
17690
|
}, [
|
|
@@ -17701,7 +17701,7 @@ var u9 = /* @__PURE__ */ G(oJt, [["render", cJt]]), lJt = [
|
|
|
17701
17701
|
class: "nb-submenu-trigger__caret"
|
|
17702
17702
|
})
|
|
17703
17703
|
], 42, lJt), (T(), s(r, { to: "body" }, [f(a, { name: "nb-submenu" }, {
|
|
17704
|
-
default:
|
|
17704
|
+
default: V(() => [p.value ? (T(), l("ul", {
|
|
17705
17705
|
key: 0,
|
|
17706
17706
|
ref_key: "submenuRef",
|
|
17707
17707
|
ref: d,
|
|
@@ -17836,13 +17836,13 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
17836
17836
|
document.querySelector(".nb-command-palette__item--highlighted")?.scrollIntoView({ block: "nearest" });
|
|
17837
17837
|
});
|
|
17838
17838
|
}
|
|
17839
|
-
|
|
17839
|
+
B(() => i.isOpen, (e) => {
|
|
17840
17840
|
e ? (p.value = i.searchFilter ?? "", m.value = null, y(() => {
|
|
17841
17841
|
d.value?.focus(), y(() => {
|
|
17842
17842
|
w.value.length > 0 && (m.value = w.value[0].id);
|
|
17843
17843
|
});
|
|
17844
17844
|
}), document.body.style.overflow = "hidden") : (p.value = "", document.body.style.overflow = "");
|
|
17845
|
-
}),
|
|
17845
|
+
}), B(v, (e) => {
|
|
17846
17846
|
e.length > 0 && !e.find((e) => e.id === m.value) ? m.value = e[0].id : e.length === 0 && (m.value = null);
|
|
17847
17847
|
});
|
|
17848
17848
|
let M = {
|
|
@@ -17882,10 +17882,10 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
17882
17882
|
}), (t, o) => {
|
|
17883
17883
|
let h = j("NbIcon");
|
|
17884
17884
|
return T(), s(r, { to: "body" }, [f(a, { name: "nb-command-palette" }, {
|
|
17885
|
-
default:
|
|
17885
|
+
default: V(() => [F(i).isOpen ? (T(), l("div", {
|
|
17886
17886
|
key: 0,
|
|
17887
17887
|
class: "nb-command-palette__overlay",
|
|
17888
|
-
onClick: o[1] ||=
|
|
17888
|
+
onClick: o[1] ||= W((e) => F(i).close(), ["self"])
|
|
17889
17889
|
}, [u("div", {
|
|
17890
17890
|
class: "nb-command-palette",
|
|
17891
17891
|
onKeydown: D
|
|
@@ -17893,7 +17893,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
17893
17893
|
name: "magnifying-glass",
|
|
17894
17894
|
size: 20,
|
|
17895
17895
|
class: "nb-command-palette__search-icon"
|
|
17896
|
-
}),
|
|
17896
|
+
}), H(u("input", {
|
|
17897
17897
|
ref_key: "inputRef",
|
|
17898
17898
|
ref: d,
|
|
17899
17899
|
"onUpdate:modelValue": o[0] ||= (e) => p.value = e,
|
|
@@ -17997,7 +17997,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
17997
17997
|
function p() {
|
|
17998
17998
|
n.closeOnOverlay && i("close");
|
|
17999
17999
|
}
|
|
18000
|
-
|
|
18000
|
+
B(() => n.open, (e) => {
|
|
18001
18001
|
document.body.style.overflow = e ? "hidden" : "";
|
|
18002
18002
|
}), w(() => {
|
|
18003
18003
|
document.body.style.overflow = "";
|
|
@@ -18012,16 +18012,16 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
18012
18012
|
}), (t, n) => {
|
|
18013
18013
|
let m = j("NbIcon"), h = j("NbGrid");
|
|
18014
18014
|
return T(), s(r, { to: "body" }, [f(a, { name: "nb-modal" }, {
|
|
18015
|
-
default:
|
|
18015
|
+
default: V(() => [e.open ? (T(), l("div", {
|
|
18016
18016
|
key: 0,
|
|
18017
18017
|
class: "nb-modal--overlay",
|
|
18018
|
-
onClick:
|
|
18018
|
+
onClick: W(p, ["self"])
|
|
18019
18019
|
}, [u("div", {
|
|
18020
18020
|
class: "nb-modal--content",
|
|
18021
18021
|
role: "dialog",
|
|
18022
18022
|
"aria-modal": "true",
|
|
18023
18023
|
style: x({ maxWidth: o[e.size] }),
|
|
18024
|
-
onClick: n[1] ||=
|
|
18024
|
+
onClick: n[1] ||= W(() => {}, ["stop"])
|
|
18025
18025
|
}, [
|
|
18026
18026
|
t.$slots.header || e.title ? (T(), l("header", TJt, [u("span", EJt, [A(t.$slots, "header", {}, () => [d(P(e.title), 1)], !0)]), u("button", {
|
|
18027
18027
|
class: "nb-modal--close",
|
|
@@ -18036,7 +18036,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
18036
18036
|
class: "nb-modal--footer",
|
|
18037
18037
|
distributed: ""
|
|
18038
18038
|
}, {
|
|
18039
|
-
default:
|
|
18039
|
+
default: V(() => [A(t.$slots, "footer", {}, void 0, !0)]),
|
|
18040
18040
|
_: 3
|
|
18041
18041
|
})) : c("", !0)
|
|
18042
18042
|
], 4)])) : c("", !0)]),
|
|
@@ -18102,7 +18102,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
18102
18102
|
function x(e) {
|
|
18103
18103
|
p.value && (p.value.value = e == null ? "" : String(e));
|
|
18104
18104
|
}
|
|
18105
|
-
C(() => x(i.modelValue)),
|
|
18105
|
+
C(() => x(i.modelValue)), B(() => i.modelValue, (e) => {
|
|
18106
18106
|
m.value || x(e);
|
|
18107
18107
|
});
|
|
18108
18108
|
function S() {
|
|
@@ -18157,7 +18157,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
18157
18157
|
required: e.required,
|
|
18158
18158
|
disabled: e.disabled
|
|
18159
18159
|
}, {
|
|
18160
|
-
default:
|
|
18160
|
+
default: V(() => [d(P(e.label), 1)]),
|
|
18161
18161
|
_: 1
|
|
18162
18162
|
}, 8, [
|
|
18163
18163
|
"for",
|
|
@@ -18179,7 +18179,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
18179
18179
|
required: e.required,
|
|
18180
18180
|
onInput: E,
|
|
18181
18181
|
onBlur: D,
|
|
18182
|
-
onKeydown: r[0] ||=
|
|
18182
|
+
onKeydown: r[0] ||= U(W(() => p.value?.blur(), ["prevent"]), ["enter"]),
|
|
18183
18183
|
onFocus: r[1] ||= (e) => m.value = !0
|
|
18184
18184
|
}, null, 40, OJt),
|
|
18185
18185
|
e.error ? (T(), s(h9, {
|
|
@@ -18188,7 +18188,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
18188
18188
|
"icon-only": !0,
|
|
18189
18189
|
class: "nb-number-input__status"
|
|
18190
18190
|
}, {
|
|
18191
|
-
default:
|
|
18191
|
+
default: V(() => [d(P(e.error), 1)]),
|
|
18192
18192
|
_: 1
|
|
18193
18193
|
})) : e.warning ? (T(), s(h9, {
|
|
18194
18194
|
key: 1,
|
|
@@ -18196,7 +18196,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
18196
18196
|
"icon-only": !0,
|
|
18197
18197
|
class: "nb-number-input__status"
|
|
18198
18198
|
}, {
|
|
18199
|
-
default:
|
|
18199
|
+
default: V(() => [d(P(e.warning), 1)]),
|
|
18200
18200
|
_: 1
|
|
18201
18201
|
})) : c("", !0),
|
|
18202
18202
|
u("div", kJt, [u("button", {
|
|
@@ -18204,7 +18204,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
18204
18204
|
class: b(["nb-number-input__stepper", { "nb-number-input__stepper--at-limit": _.value }]),
|
|
18205
18205
|
disabled: e.disabled,
|
|
18206
18206
|
"aria-label": "Decrease",
|
|
18207
|
-
onMousedown: r[2] ||=
|
|
18207
|
+
onMousedown: r[2] ||= W(() => {}, ["prevent"]),
|
|
18208
18208
|
onClick: w
|
|
18209
18209
|
}, [f(I8, {
|
|
18210
18210
|
name: "minus",
|
|
@@ -18214,7 +18214,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
18214
18214
|
class: b(["nb-number-input__stepper", { "nb-number-input__stepper--at-limit": v.value }]),
|
|
18215
18215
|
disabled: e.disabled,
|
|
18216
18216
|
"aria-label": "Increase",
|
|
18217
|
-
onMousedown: r[3] ||=
|
|
18217
|
+
onMousedown: r[3] ||= W(() => {}, ["prevent"]),
|
|
18218
18218
|
onClick: S
|
|
18219
18219
|
}, [f(I8, {
|
|
18220
18220
|
name: "plus",
|
|
@@ -18226,21 +18226,21 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
18226
18226
|
variant: "error",
|
|
18227
18227
|
class: "nb-number-input__message"
|
|
18228
18228
|
}, {
|
|
18229
|
-
default:
|
|
18229
|
+
default: V(() => [d(P(e.error), 1)]),
|
|
18230
18230
|
_: 1
|
|
18231
18231
|
})) : e.warning ? (T(), s(h9, {
|
|
18232
18232
|
key: 2,
|
|
18233
18233
|
variant: "warning",
|
|
18234
18234
|
class: "nb-number-input__message"
|
|
18235
18235
|
}, {
|
|
18236
|
-
default:
|
|
18236
|
+
default: V(() => [d(P(e.warning), 1)]),
|
|
18237
18237
|
_: 1
|
|
18238
18238
|
})) : e.helper ? (T(), s(h9, {
|
|
18239
18239
|
key: 3,
|
|
18240
18240
|
variant: "helper",
|
|
18241
18241
|
class: "nb-number-input__message"
|
|
18242
18242
|
}, {
|
|
18243
|
-
default:
|
|
18243
|
+
default: V(() => [d(P(e.helper), 1)]),
|
|
18244
18244
|
_: 1
|
|
18245
18245
|
})) : c("", !0)
|
|
18246
18246
|
], 64)) : e.variant === "fluid" ? (T(), l(n, { key: 1 }, [u("div", { class: b(["nb-number-input__field-wrapper", A.value]) }, [e.label ? (T(), l("div", MJt, [u("label", {
|
|
@@ -18252,7 +18252,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
18252
18252
|
"icon-only": !0,
|
|
18253
18253
|
class: "nb-number-input__inner-message"
|
|
18254
18254
|
}, {
|
|
18255
|
-
default:
|
|
18255
|
+
default: V(() => [d(P(e.helper), 1)]),
|
|
18256
18256
|
_: 1
|
|
18257
18257
|
})) : c("", !0)])) : c("", !0), u("div", FJt, [
|
|
18258
18258
|
u("input", {
|
|
@@ -18269,7 +18269,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
18269
18269
|
required: e.required,
|
|
18270
18270
|
onInput: E,
|
|
18271
18271
|
onBlur: D,
|
|
18272
|
-
onKeydown: r[4] ||=
|
|
18272
|
+
onKeydown: r[4] ||= U(W(() => p.value?.blur(), ["prevent"]), ["enter"]),
|
|
18273
18273
|
onFocus: r[5] ||= (e) => m.value = !0
|
|
18274
18274
|
}, null, 40, IJt),
|
|
18275
18275
|
e.error ? (T(), s(h9, {
|
|
@@ -18278,7 +18278,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
18278
18278
|
"icon-only": !0,
|
|
18279
18279
|
class: "nb-number-input__status"
|
|
18280
18280
|
}, {
|
|
18281
|
-
default:
|
|
18281
|
+
default: V(() => [d(P(e.error), 1)]),
|
|
18282
18282
|
_: 1
|
|
18283
18283
|
})) : e.warning ? (T(), s(h9, {
|
|
18284
18284
|
key: 1,
|
|
@@ -18286,7 +18286,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
18286
18286
|
"icon-only": !0,
|
|
18287
18287
|
class: "nb-number-input__status"
|
|
18288
18288
|
}, {
|
|
18289
|
-
default:
|
|
18289
|
+
default: V(() => [d(P(e.warning), 1)]),
|
|
18290
18290
|
_: 1
|
|
18291
18291
|
})) : c("", !0),
|
|
18292
18292
|
u("div", LJt, [u("button", {
|
|
@@ -18294,7 +18294,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
18294
18294
|
class: b(["nb-number-input__stepper", { "nb-number-input__stepper--at-limit": _.value }]),
|
|
18295
18295
|
disabled: e.disabled,
|
|
18296
18296
|
"aria-label": "Decrease",
|
|
18297
|
-
onMousedown: r[6] ||=
|
|
18297
|
+
onMousedown: r[6] ||= W(() => {}, ["prevent"]),
|
|
18298
18298
|
onClick: w
|
|
18299
18299
|
}, [f(I8, {
|
|
18300
18300
|
name: "minus",
|
|
@@ -18304,7 +18304,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
18304
18304
|
class: b(["nb-number-input__stepper", { "nb-number-input__stepper--at-limit": v.value }]),
|
|
18305
18305
|
disabled: e.disabled,
|
|
18306
18306
|
"aria-label": "Increase",
|
|
18307
|
-
onMousedown: r[7] ||=
|
|
18307
|
+
onMousedown: r[7] ||= W(() => {}, ["prevent"]),
|
|
18308
18308
|
onClick: S
|
|
18309
18309
|
}, [f(I8, {
|
|
18310
18310
|
name: "plus",
|
|
@@ -18315,14 +18315,14 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
18315
18315
|
variant: "error",
|
|
18316
18316
|
class: "nb-number-input__fluid-message"
|
|
18317
18317
|
}, {
|
|
18318
|
-
default:
|
|
18318
|
+
default: V(() => [d(P(e.error), 1)]),
|
|
18319
18319
|
_: 1
|
|
18320
18320
|
})) : e.warning ? (T(), s(h9, {
|
|
18321
18321
|
key: 1,
|
|
18322
18322
|
variant: "warning",
|
|
18323
18323
|
class: "nb-number-input__fluid-message"
|
|
18324
18324
|
}, {
|
|
18325
|
-
default:
|
|
18325
|
+
default: V(() => [d(P(e.warning), 1)]),
|
|
18326
18326
|
_: 1
|
|
18327
18327
|
})) : c("", !0)], 64)) : c("", !0)], 2));
|
|
18328
18328
|
}
|
|
@@ -18430,11 +18430,11 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
18430
18430
|
height: e.height,
|
|
18431
18431
|
"show-legend": e.showLegend && a.value.length > 0
|
|
18432
18432
|
}, {
|
|
18433
|
-
legend:
|
|
18433
|
+
legend: V(() => [f(ye, { items: a.value.map((e) => ({
|
|
18434
18434
|
label: e.label,
|
|
18435
18435
|
color: e.color
|
|
18436
18436
|
})) }, null, 8, ["items"])]),
|
|
18437
|
-
default:
|
|
18437
|
+
default: V(() => [u("div", {
|
|
18438
18438
|
ref_key: "root",
|
|
18439
18439
|
ref: r,
|
|
18440
18440
|
class: "nb-pie-chart"
|
|
@@ -18531,7 +18531,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
18531
18531
|
let o = j("NbLabel"), f = j("NbMessage");
|
|
18532
18532
|
return T(), l("div", { class: b(r.value) }, [
|
|
18533
18533
|
e.label ? (T(), s(o, { key: 0 }, {
|
|
18534
|
-
default:
|
|
18534
|
+
default: V(() => [d(P(e.label), 1)]),
|
|
18535
18535
|
_: 1
|
|
18536
18536
|
})) : c("", !0),
|
|
18537
18537
|
u("div", { class: b(["nb-radio__group", `nb-radio__group--${e.direction}`]) }, [(T(!0), l(n, null, k(e.options, (n) => (T(), l("label", {
|
|
@@ -18552,21 +18552,21 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
18552
18552
|
variant: "error",
|
|
18553
18553
|
class: "nb-radio__message"
|
|
18554
18554
|
}, {
|
|
18555
|
-
default:
|
|
18555
|
+
default: V(() => [d(P(e.error), 1)]),
|
|
18556
18556
|
_: 1
|
|
18557
18557
|
})) : e.warning ? (T(), s(f, {
|
|
18558
18558
|
key: 2,
|
|
18559
18559
|
variant: "warning",
|
|
18560
18560
|
class: "nb-radio__message"
|
|
18561
18561
|
}, {
|
|
18562
|
-
default:
|
|
18562
|
+
default: V(() => [d(P(e.warning), 1)]),
|
|
18563
18563
|
_: 1
|
|
18564
18564
|
})) : e.helper ? (T(), s(f, {
|
|
18565
18565
|
key: 3,
|
|
18566
18566
|
variant: "helper",
|
|
18567
18567
|
class: "nb-radio__message"
|
|
18568
18568
|
}, {
|
|
18569
|
-
default:
|
|
18569
|
+
default: V(() => [d(P(e.helper), 1)]),
|
|
18570
18570
|
_: 1
|
|
18571
18571
|
})) : c("", !0)
|
|
18572
18572
|
], 2);
|
|
@@ -18676,7 +18676,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
18676
18676
|
if (a.disabled) return;
|
|
18677
18677
|
m.value = !0, R();
|
|
18678
18678
|
let e = a.options ?? [];
|
|
18679
|
-
g.value = M.value.length > 0 ? Math.max(0, e.findIndex((e) => e.value === M.value[0])) : -1, y(
|
|
18679
|
+
g.value = M.value.length > 0 ? Math.max(0, e.findIndex((e) => e.value === M.value[0])) : -1, y(W);
|
|
18680
18680
|
}
|
|
18681
18681
|
function te() {
|
|
18682
18682
|
m.value = !1, g.value = -1;
|
|
@@ -18684,32 +18684,32 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
18684
18684
|
function ne() {
|
|
18685
18685
|
m.value ? te() : ee();
|
|
18686
18686
|
}
|
|
18687
|
-
function
|
|
18687
|
+
function z(e) {
|
|
18688
18688
|
let t = e.target, n = _.value?.contains(t) ?? !1, r = C.value?.contains(t) ?? !1;
|
|
18689
18689
|
!n && !r && te();
|
|
18690
18690
|
}
|
|
18691
|
-
function
|
|
18691
|
+
function H() {
|
|
18692
18692
|
m.value && R();
|
|
18693
18693
|
}
|
|
18694
|
-
|
|
18695
|
-
e ? (document.addEventListener("mousedown",
|
|
18694
|
+
B(m, (e) => {
|
|
18695
|
+
e ? (document.addEventListener("mousedown", z), window.addEventListener("scroll", H, !0), window.addEventListener("resize", H)) : (document.removeEventListener("mousedown", z), window.removeEventListener("scroll", H, !0), window.removeEventListener("resize", H));
|
|
18696
18696
|
}), S(() => {
|
|
18697
|
-
document.removeEventListener("mousedown",
|
|
18697
|
+
document.removeEventListener("mousedown", z), window.removeEventListener("scroll", H, !0), window.removeEventListener("resize", H);
|
|
18698
18698
|
});
|
|
18699
|
-
function
|
|
18699
|
+
function U(e) {
|
|
18700
18700
|
let t = a.options ?? [];
|
|
18701
18701
|
if (!m.value) {
|
|
18702
18702
|
(e.key === "Enter" || e.key === " " || e.key === "ArrowDown") && (e.preventDefault(), ee());
|
|
18703
18703
|
return;
|
|
18704
18704
|
}
|
|
18705
|
-
e.key === "Escape" ? (te(), e.preventDefault()) : e.key === "Tab" ? te() : e.key === "ArrowDown" ? (e.preventDefault(), g.value = Math.min(g.value + 1, t.length - 1),
|
|
18705
|
+
e.key === "Escape" ? (te(), e.preventDefault()) : e.key === "Tab" ? te() : e.key === "ArrowDown" ? (e.preventDefault(), g.value = Math.min(g.value + 1, t.length - 1), W()) : e.key === "ArrowUp" ? (e.preventDefault(), g.value = Math.max(g.value - 1, 0), W()) : (e.key === "Enter" || e.key === " ") && g.value >= 0 && (e.preventDefault(), L(t[g.value]));
|
|
18706
18706
|
}
|
|
18707
|
-
function
|
|
18707
|
+
function W() {
|
|
18708
18708
|
y(() => {
|
|
18709
18709
|
!C.value || g.value < 0 || C.value.querySelectorAll(".nb-select__option")[g.value]?.scrollIntoView({ block: "nearest" });
|
|
18710
18710
|
});
|
|
18711
18711
|
}
|
|
18712
|
-
let
|
|
18712
|
+
let re = o(() => [
|
|
18713
18713
|
"nb-select",
|
|
18714
18714
|
`nb-select--${a.variant}`,
|
|
18715
18715
|
`nb-select--${a.size}`,
|
|
@@ -18729,8 +18729,8 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
18729
18729
|
return T(), l(n, null, [u("div", {
|
|
18730
18730
|
ref_key: "rootRef",
|
|
18731
18731
|
ref: _,
|
|
18732
|
-
class: b(
|
|
18733
|
-
onKeydown:
|
|
18732
|
+
class: b(re.value),
|
|
18733
|
+
onKeydown: U
|
|
18734
18734
|
}, [e.variant === "default" ? (T(), l(n, { key: 0 }, [
|
|
18735
18735
|
t.$slots.label ? A(t.$slots, "label", { key: 0 }) : e.label ? (T(), s(a, {
|
|
18736
18736
|
key: 1,
|
|
@@ -18738,7 +18738,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
18738
18738
|
required: e.required,
|
|
18739
18739
|
disabled: e.disabled
|
|
18740
18740
|
}, {
|
|
18741
|
-
default:
|
|
18741
|
+
default: V(() => [d(P(e.label), 1)]),
|
|
18742
18742
|
_: 1
|
|
18743
18743
|
}, 8, [
|
|
18744
18744
|
"for",
|
|
@@ -18768,7 +18768,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
18768
18768
|
"icon-only": !0,
|
|
18769
18769
|
class: "nb-select__status-icon"
|
|
18770
18770
|
}, {
|
|
18771
|
-
default:
|
|
18771
|
+
default: V(() => [d(P(e.error), 1)]),
|
|
18772
18772
|
_: 1
|
|
18773
18773
|
})) : e.warning ? (T(), s(o, {
|
|
18774
18774
|
key: 1,
|
|
@@ -18776,7 +18776,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
18776
18776
|
"icon-only": !0,
|
|
18777
18777
|
class: "nb-select__status-icon"
|
|
18778
18778
|
}, {
|
|
18779
|
-
default:
|
|
18779
|
+
default: V(() => [d(P(e.warning), 1)]),
|
|
18780
18780
|
_: 1
|
|
18781
18781
|
})) : c("", !0),
|
|
18782
18782
|
f(y, {
|
|
@@ -18784,7 +18784,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
18784
18784
|
justify: "center",
|
|
18785
18785
|
class: "nb-select__caret"
|
|
18786
18786
|
}, {
|
|
18787
|
-
default:
|
|
18787
|
+
default: V(() => [f(p, {
|
|
18788
18788
|
name: m.value ? "caret-up" : "caret-down",
|
|
18789
18789
|
size: 16
|
|
18790
18790
|
}, null, 8, ["name"])]),
|
|
@@ -18796,21 +18796,21 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
18796
18796
|
variant: "error",
|
|
18797
18797
|
class: "nb-select__message"
|
|
18798
18798
|
}, {
|
|
18799
|
-
default:
|
|
18799
|
+
default: V(() => [d(P(e.error), 1)]),
|
|
18800
18800
|
_: 1
|
|
18801
18801
|
})) : e.warning ? (T(), s(o, {
|
|
18802
18802
|
key: 3,
|
|
18803
18803
|
variant: "warning",
|
|
18804
18804
|
class: "nb-select__message"
|
|
18805
18805
|
}, {
|
|
18806
|
-
default:
|
|
18806
|
+
default: V(() => [d(P(e.warning), 1)]),
|
|
18807
18807
|
_: 1
|
|
18808
18808
|
})) : e.helper ? (T(), s(o, {
|
|
18809
18809
|
key: 4,
|
|
18810
18810
|
variant: "helper",
|
|
18811
18811
|
class: "nb-select__message"
|
|
18812
18812
|
}, {
|
|
18813
|
-
default:
|
|
18813
|
+
default: V(() => [d(P(e.helper), 1)]),
|
|
18814
18814
|
_: 1
|
|
18815
18815
|
})) : c("", !0)
|
|
18816
18816
|
], 64)) : e.variant === "fluid" ? (T(), l(n, { key: 1 }, [u("button", {
|
|
@@ -18835,13 +18835,13 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
18835
18835
|
gap: "xs",
|
|
18836
18836
|
class: "nb-select__inner-header"
|
|
18837
18837
|
}, {
|
|
18838
|
-
default:
|
|
18838
|
+
default: V(() => [t.$slots.label ? A(t.$slots, "label", { key: 0 }) : (T(), l("label", QJt, [d(P(e.label) + " ", 1), e.required ? (T(), l("span", $Jt, "*")) : c("", !0)])), e.helper && !e.error && !e.warning ? (T(), s(o, {
|
|
18839
18839
|
key: 2,
|
|
18840
18840
|
variant: "helper",
|
|
18841
18841
|
"icon-only": !0,
|
|
18842
18842
|
class: "nb-select__inner-message"
|
|
18843
18843
|
}, {
|
|
18844
|
-
default:
|
|
18844
|
+
default: V(() => [d(P(e.helper), 1)]),
|
|
18845
18845
|
_: 1
|
|
18846
18846
|
})) : c("", !0)]),
|
|
18847
18847
|
_: 3
|
|
@@ -18851,12 +18851,12 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
18851
18851
|
flex: "",
|
|
18852
18852
|
class: "nb-select__value-row"
|
|
18853
18853
|
}, {
|
|
18854
|
-
default:
|
|
18854
|
+
default: V(() => [u("span", { class: b(["nb-select__value", { "nb-select__value--placeholder": !N.value }]) }, P(N.value || e.placeholder), 3), f(y, {
|
|
18855
18855
|
align: "center",
|
|
18856
18856
|
justify: "center",
|
|
18857
18857
|
class: "nb-select__caret"
|
|
18858
18858
|
}, {
|
|
18859
|
-
default:
|
|
18859
|
+
default: V(() => [f(p, {
|
|
18860
18860
|
name: m.value ? "caret-up" : "caret-down",
|
|
18861
18861
|
size: 16
|
|
18862
18862
|
}, null, 8, ["name"])]),
|
|
@@ -18868,14 +18868,14 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
18868
18868
|
variant: "error",
|
|
18869
18869
|
class: "nb-select__fluid-message"
|
|
18870
18870
|
}, {
|
|
18871
|
-
default:
|
|
18871
|
+
default: V(() => [d(P(e.error), 1)]),
|
|
18872
18872
|
_: 1
|
|
18873
18873
|
})) : e.warning ? (T(), s(o, {
|
|
18874
18874
|
key: 1,
|
|
18875
18875
|
variant: "warning",
|
|
18876
18876
|
class: "nb-select__fluid-message"
|
|
18877
18877
|
}, {
|
|
18878
|
-
default:
|
|
18878
|
+
default: V(() => [d(P(e.warning), 1)]),
|
|
18879
18879
|
_: 1
|
|
18880
18880
|
})) : c("", !0)], 64)) : c("", !0)], 34), (T(), s(r, { to: "body" }, [m.value ? (T(), l("div", {
|
|
18881
18881
|
key: 0,
|
|
@@ -19012,7 +19012,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
19012
19012
|
"data-tooltip": e.tooltip || void 0,
|
|
19013
19013
|
onClick: n[0] ||= (n) => e.disabled ? void 0 : t.$emit("click", n)
|
|
19014
19014
|
}, {
|
|
19015
|
-
default:
|
|
19015
|
+
default: V(() => [A(t.$slots, "default", {}, void 0, !0)]),
|
|
19016
19016
|
_: 3
|
|
19017
19017
|
}, 8, [
|
|
19018
19018
|
"class",
|
|
@@ -19129,7 +19129,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
19129
19129
|
r.disabled || N(y(e));
|
|
19130
19130
|
}
|
|
19131
19131
|
function R(e) {
|
|
19132
|
-
r.disabled || (i("change", r.range ? [h.value, g.value] : m.value), N(y(e))),
|
|
19132
|
+
r.disabled || (i("change", r.range ? [h.value, g.value] : m.value), N(y(e))), z();
|
|
19133
19133
|
}
|
|
19134
19134
|
function ee() {
|
|
19135
19135
|
document.addEventListener("mousemove", F), document.addEventListener("mouseup", I);
|
|
@@ -19140,29 +19140,29 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
19140
19140
|
function ne() {
|
|
19141
19141
|
document.addEventListener("touchmove", L, { passive: !0 }), document.addEventListener("touchend", R);
|
|
19142
19142
|
}
|
|
19143
|
-
function
|
|
19143
|
+
function z() {
|
|
19144
19144
|
p.value = null, document.removeEventListener("touchmove", L), document.removeEventListener("touchend", R);
|
|
19145
19145
|
}
|
|
19146
|
-
function
|
|
19146
|
+
function B(e) {
|
|
19147
19147
|
if (r.disabled) return;
|
|
19148
19148
|
let t = y(e);
|
|
19149
19149
|
p.value = M(t), N(t), ee();
|
|
19150
19150
|
}
|
|
19151
|
-
function
|
|
19151
|
+
function H(e) {
|
|
19152
19152
|
if (r.disabled) return;
|
|
19153
19153
|
let t = y(e);
|
|
19154
19154
|
p.value = M(t), N(t), ne();
|
|
19155
19155
|
}
|
|
19156
|
-
function
|
|
19156
|
+
function U(e, t) {
|
|
19157
19157
|
r.disabled || (p.value = r.range ? e : null, ee());
|
|
19158
19158
|
}
|
|
19159
|
-
function
|
|
19159
|
+
function re(e, t) {
|
|
19160
19160
|
r.disabled || (p.value = r.range ? e : null, ne());
|
|
19161
19161
|
}
|
|
19162
19162
|
S(() => {
|
|
19163
|
-
te(),
|
|
19163
|
+
te(), z();
|
|
19164
19164
|
});
|
|
19165
|
-
let
|
|
19165
|
+
let ie = o(() => [
|
|
19166
19166
|
"nb-slider",
|
|
19167
19167
|
`nb-slider--${r.size}`,
|
|
19168
19168
|
`nb-slider--${r.variant}`,
|
|
@@ -19178,12 +19178,12 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
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(ie.value) }, [
|
|
19182
19182
|
e.variant === "default" && e.label ? (T(), s(i, {
|
|
19183
19183
|
key: 0,
|
|
19184
19184
|
class: "nb-slider__label"
|
|
19185
19185
|
}, {
|
|
19186
|
-
default:
|
|
19186
|
+
default: V(() => [d(P(e.label), 1)]),
|
|
19187
19187
|
_: 1
|
|
19188
19188
|
})) : c("", !0),
|
|
19189
19189
|
u("div", CYt, [e.variant === "fluid" && e.label ? (T(), l("div", wYt, [u("label", TYt, P(e.label), 1)])) : c("", !0), f(p, {
|
|
@@ -19192,7 +19192,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
19192
19192
|
gap: "sm",
|
|
19193
19193
|
class: "nb-slider__row"
|
|
19194
19194
|
}, {
|
|
19195
|
-
default:
|
|
19195
|
+
default: V(() => [
|
|
19196
19196
|
e.range && e.showInput ? (T(), s(o, {
|
|
19197
19197
|
key: 0,
|
|
19198
19198
|
size: e.variant === "fluid" ? "sm" : e.size,
|
|
@@ -19219,12 +19219,12 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
19219
19219
|
class: b(["nb-slider__track-area", ae.value]),
|
|
19220
19220
|
grow: ""
|
|
19221
19221
|
}, {
|
|
19222
|
-
default:
|
|
19222
|
+
default: V(() => [u("div", {
|
|
19223
19223
|
ref_key: "trackRef",
|
|
19224
19224
|
ref: a,
|
|
19225
19225
|
class: "nb-slider__track",
|
|
19226
|
-
onMousedown:
|
|
19227
|
-
onTouchstartPassive:
|
|
19226
|
+
onMousedown: B,
|
|
19227
|
+
onTouchstartPassive: H
|
|
19228
19228
|
}, [u("div", {
|
|
19229
19229
|
class: "nb-slider__track__fill",
|
|
19230
19230
|
style: x(C.value)
|
|
@@ -19232,22 +19232,22 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
19232
19232
|
u("div", {
|
|
19233
19233
|
class: "nb-slider__track__handle nb-slider__track__handle--low",
|
|
19234
19234
|
style: x({ left: `${_(h.value)}%` }),
|
|
19235
|
-
onMousedown: r[2] ||=
|
|
19236
|
-
onTouchstartPassive: r[3] ||=
|
|
19235
|
+
onMousedown: r[2] ||= W((e) => U("low", e), ["stop"]),
|
|
19236
|
+
onTouchstartPassive: r[3] ||= W((e) => re("low", e), ["stop"])
|
|
19237
19237
|
}, null, 36),
|
|
19238
19238
|
u("div", {
|
|
19239
19239
|
class: "nb-slider__track__handle nb-slider__track__handle--high",
|
|
19240
19240
|
style: x({ left: `${_(g.value)}%` }),
|
|
19241
|
-
onMousedown: r[4] ||=
|
|
19242
|
-
onTouchstartPassive: r[5] ||=
|
|
19241
|
+
onMousedown: r[4] ||= W((e) => U("high", e), ["stop"]),
|
|
19242
|
+
onTouchstartPassive: r[5] ||= W((e) => re("high", e), ["stop"])
|
|
19243
19243
|
}, null, 36),
|
|
19244
19244
|
r[8] ||= u("div", { class: "nb-slider__tick" }, null, -1)
|
|
19245
19245
|
], 64)) : (T(), l("div", {
|
|
19246
19246
|
key: 0,
|
|
19247
19247
|
class: "nb-slider__track__handle",
|
|
19248
19248
|
style: x({ left: `${_(m.value)}%` }),
|
|
19249
|
-
onMousedown: r[0] ||=
|
|
19250
|
-
onTouchstartPassive: r[1] ||=
|
|
19249
|
+
onMousedown: r[0] ||= W((e) => U(null, e), ["stop"]),
|
|
19250
|
+
onTouchstartPassive: r[1] ||= W((e) => re(null, e), ["stop"])
|
|
19251
19251
|
}, null, 36))], 544), u("div", EYt, [u("span", DYt, P(e.min), 1), u("span", OYt, P(e.max), 1)])]),
|
|
19252
19252
|
_: 1
|
|
19253
19253
|
}, 8, ["class"]),
|
|
@@ -19278,21 +19278,21 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
19278
19278
|
variant: "error",
|
|
19279
19279
|
class: "nb-slider__message"
|
|
19280
19280
|
}, {
|
|
19281
|
-
default:
|
|
19281
|
+
default: V(() => [d(P(e.error), 1)]),
|
|
19282
19282
|
_: 1
|
|
19283
19283
|
})) : e.warning ? (T(), s(v, {
|
|
19284
19284
|
key: 2,
|
|
19285
19285
|
variant: "warning",
|
|
19286
19286
|
class: "nb-slider__message"
|
|
19287
19287
|
}, {
|
|
19288
|
-
default:
|
|
19288
|
+
default: V(() => [d(P(e.warning), 1)]),
|
|
19289
19289
|
_: 1
|
|
19290
19290
|
})) : e.helper ? (T(), s(v, {
|
|
19291
19291
|
key: 3,
|
|
19292
19292
|
variant: "helper",
|
|
19293
19293
|
class: "nb-slider__message"
|
|
19294
19294
|
}, {
|
|
19295
|
-
default:
|
|
19295
|
+
default: V(() => [d(P(e.helper), 1)]),
|
|
19296
19296
|
_: 1
|
|
19297
19297
|
})) : c("", !0)
|
|
19298
19298
|
], 2);
|
|
@@ -19444,17 +19444,17 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
19444
19444
|
align: "center",
|
|
19445
19445
|
gap: "sm"
|
|
19446
19446
|
}, {
|
|
19447
|
-
default:
|
|
19447
|
+
default: V(() => [e.label ? (T(), s(a9, {
|
|
19448
19448
|
key: 0,
|
|
19449
19449
|
for: `${F(r)}-input`,
|
|
19450
19450
|
disabled: e.disabled
|
|
19451
19451
|
}, {
|
|
19452
|
-
default:
|
|
19452
|
+
default: V(() => [d(P(e.label), 1)]),
|
|
19453
19453
|
_: 1
|
|
19454
19454
|
}, 8, ["for", "disabled"])) : c("", !0), u("label", v({
|
|
19455
19455
|
for: `${F(r)}-input`,
|
|
19456
19456
|
class: l.value
|
|
19457
|
-
}, i.value, { onClick: o[1] ||=
|
|
19457
|
+
}, i.value, { onClick: o[1] ||= W(() => {}, ["stop"]) }), [H(u("input", {
|
|
19458
19458
|
id: `${F(r)}-input`,
|
|
19459
19459
|
"onUpdate:modelValue": o[0] ||= (e) => t.value = e,
|
|
19460
19460
|
name: e.name,
|
|
@@ -19585,7 +19585,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
19585
19585
|
function x() {
|
|
19586
19586
|
f.value && a.value && (f.value.scrollTop = a.value.scrollTop);
|
|
19587
19587
|
}
|
|
19588
|
-
|
|
19588
|
+
B(_, () => y(x));
|
|
19589
19589
|
let S = o(() => r.error ? "error" : r.warning ? "warning" : "helper"), C = o(() => r.error ?? r.warning ?? r.helper ?? ""), w = o(() => !!C.value), E = o(() => ({
|
|
19590
19590
|
"nb-text-input__field-wrapper--focused": p.value,
|
|
19591
19591
|
"nb-text-input__field-wrapper--error": !!r.error,
|
|
@@ -19607,14 +19607,14 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
19607
19607
|
{ "nb-text-input--multiline": e.multiline }
|
|
19608
19608
|
])
|
|
19609
19609
|
}, {
|
|
19610
|
-
default:
|
|
19610
|
+
default: V(() => [e.variant === "default" ? (T(), l(n, { key: 0 }, [
|
|
19611
19611
|
t.$slots.label ? A(t.$slots, "label", { key: 0 }, void 0, !0) : e.label ? (T(), s(a9, {
|
|
19612
19612
|
key: 1,
|
|
19613
19613
|
for: h.value,
|
|
19614
19614
|
required: e.required,
|
|
19615
19615
|
disabled: e.disabled
|
|
19616
19616
|
}, {
|
|
19617
|
-
default:
|
|
19617
|
+
default: V(() => [d(P(e.label), 1)]),
|
|
19618
19618
|
_: 1
|
|
19619
19619
|
}, 8, [
|
|
19620
19620
|
"for",
|
|
@@ -19667,7 +19667,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
19667
19667
|
onInput: r[3] ||= (e) => i.value = e.target.value,
|
|
19668
19668
|
onFocus: r[4] ||= (e) => p.value = !0,
|
|
19669
19669
|
onBlur: r[5] ||= (e) => p.value = !1
|
|
19670
|
-
}), null, 16, zYt))])) : (T(), l(n, { key: 1 }, [e.multiline ?
|
|
19670
|
+
}), null, 16, zYt))])) : (T(), l(n, { key: 1 }, [e.multiline ? H((T(), l("textarea", v({
|
|
19671
19671
|
key: 0,
|
|
19672
19672
|
id: h.value,
|
|
19673
19673
|
ref_key: "nativeRef",
|
|
@@ -19683,7 +19683,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
19683
19683
|
rows: e.rows,
|
|
19684
19684
|
onFocus: r[7] ||= (e) => p.value = !0,
|
|
19685
19685
|
onBlur: r[8] ||= (e) => p.value = !1
|
|
19686
|
-
}), null, 16, BYt)), [[ne, i.value]]) :
|
|
19686
|
+
}), null, 16, BYt)), [[ne, i.value]]) : H((T(), l("input", v({
|
|
19687
19687
|
key: 1,
|
|
19688
19688
|
id: h.value,
|
|
19689
19689
|
ref_key: "nativeRef",
|
|
@@ -19712,7 +19712,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
19712
19712
|
variant: S.value,
|
|
19713
19713
|
class: "nb-text-input__message"
|
|
19714
19714
|
}, {
|
|
19715
|
-
default:
|
|
19715
|
+
default: V(() => [d(P(C.value), 1)]),
|
|
19716
19716
|
_: 1
|
|
19717
19717
|
}, 8, ["variant"])) : c("", !0),
|
|
19718
19718
|
A(t.$slots, "dropdown", {}, void 0, !0)
|
|
@@ -19729,9 +19729,9 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
19729
19729
|
"icon-only": "",
|
|
19730
19730
|
class: "nb-text-input__inner-message"
|
|
19731
19731
|
}, {
|
|
19732
|
-
default:
|
|
19732
|
+
default: V(() => [d(P(C.value), 1)]),
|
|
19733
19733
|
_: 1
|
|
19734
|
-
}, 8, ["variant"])) : c("", !0)])) : c("", !0),
|
|
19734
|
+
}, 8, ["variant"])) : c("", !0)])) : c("", !0), H(u("input", v({
|
|
19735
19735
|
id: h.value,
|
|
19736
19736
|
ref_key: "nativeRef",
|
|
19737
19737
|
ref: a
|
|
@@ -19786,7 +19786,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
19786
19786
|
}
|
|
19787
19787
|
return C(p), w(() => {
|
|
19788
19788
|
o && clearTimeout(o);
|
|
19789
|
-
}),
|
|
19789
|
+
}), B(() => n.duration, (e) => {
|
|
19790
19790
|
o && clearTimeout(o), s = e ?? 0, p();
|
|
19791
19791
|
}), (t, n) => (T(), l("div", {
|
|
19792
19792
|
class: b(["nb-toast", `nb-toast--${e.variant}`]),
|
|
@@ -20021,10 +20021,10 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20021
20021
|
function ne(e) {
|
|
20022
20022
|
e.preventDefault(), e.stopPropagation(), a && a.onDrop();
|
|
20023
20023
|
}
|
|
20024
|
-
function
|
|
20024
|
+
function z() {
|
|
20025
20025
|
a && a.onDragEnd();
|
|
20026
20026
|
}
|
|
20027
|
-
function
|
|
20027
|
+
function B(e) {
|
|
20028
20028
|
a && (e.key === "Enter" ? (e.preventDefault(), j()) : e.key === "ArrowRight" && h.value ? (e.preventDefault(), _.value || (a.toggle(n.id), r("toggle", n.id, !0))) : e.key === "ArrowLeft" ? (e.preventDefault(), _.value && (a.toggle(n.id), r("toggle", n.id, !1))) : e.key === "F2" && (e.preventDefault(), r("dblclick", n.id)));
|
|
20029
20029
|
}
|
|
20030
20030
|
return (t, n) => (T(), l("li", {
|
|
@@ -20045,15 +20045,15 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20045
20045
|
"nb-tree-node--drop-after": k.value === "after",
|
|
20046
20046
|
"nb-tree-node--drop-inside": k.value === "inside"
|
|
20047
20047
|
}]),
|
|
20048
|
-
onClick:
|
|
20049
|
-
onDblclick:
|
|
20050
|
-
onContextmenu:
|
|
20051
|
-
onKeydown:
|
|
20048
|
+
onClick: W(j, ["stop"]),
|
|
20049
|
+
onDblclick: W(N, ["stop"]),
|
|
20050
|
+
onContextmenu: W(F, ["prevent"]),
|
|
20051
|
+
onKeydown: B,
|
|
20052
20052
|
onDragstart: I,
|
|
20053
20053
|
onDragover: ee,
|
|
20054
20054
|
onDragleave: te,
|
|
20055
20055
|
onDrop: ne,
|
|
20056
|
-
onDragend:
|
|
20056
|
+
onDragend: z
|
|
20057
20057
|
}, [u("div", {
|
|
20058
20058
|
class: "nb-tree-node__label",
|
|
20059
20059
|
style: x({
|
|
@@ -20295,15 +20295,9 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20295
20295
|
g.value = e, a("focus", e);
|
|
20296
20296
|
}
|
|
20297
20297
|
function v(e) {
|
|
20298
|
-
h.value = new Set(e), a("selection-change", e)
|
|
20298
|
+
h.value = new Set(e), a("selection-change", e);
|
|
20299
20299
|
}
|
|
20300
20300
|
function w() {
|
|
20301
|
-
s.value && s.value.querySelectorAll(".nb-blueprint-card").forEach((e) => {
|
|
20302
|
-
let t = e.dataset.cardId;
|
|
20303
|
-
t && e.classList.toggle("nb-blueprint-card--selected", h.value.has(t));
|
|
20304
|
-
});
|
|
20305
|
-
}
|
|
20306
|
-
function E() {
|
|
20307
20301
|
if (!s.value) return;
|
|
20308
20302
|
let e = [];
|
|
20309
20303
|
s.value.querySelectorAll("[data-card-id]").forEach((t) => {
|
|
@@ -20311,53 +20305,54 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20311
20305
|
n && e.push(n);
|
|
20312
20306
|
}), v(e);
|
|
20313
20307
|
}
|
|
20314
|
-
function
|
|
20308
|
+
function E() {
|
|
20315
20309
|
v([]), _(null);
|
|
20316
20310
|
}
|
|
20317
|
-
let
|
|
20318
|
-
function
|
|
20319
|
-
e.code === "Space" && !e.repeat && (
|
|
20311
|
+
let D = O(!1);
|
|
20312
|
+
function j(e) {
|
|
20313
|
+
e.code === "Space" && !e.repeat && (D.value = !0, e.preventDefault());
|
|
20320
20314
|
}
|
|
20321
|
-
function
|
|
20322
|
-
e.code === "Space" && (
|
|
20315
|
+
function M(e) {
|
|
20316
|
+
e.code === "Space" && (D.value = !1);
|
|
20323
20317
|
}
|
|
20324
|
-
let
|
|
20325
|
-
function
|
|
20318
|
+
let N = !1, P = 0, I = 0;
|
|
20319
|
+
function L(e) {
|
|
20326
20320
|
if (e.target.closest(".nb-blueprint-card__port")) return;
|
|
20327
20321
|
if (e.button === 1) {
|
|
20328
|
-
|
|
20322
|
+
R(e);
|
|
20329
20323
|
return;
|
|
20330
20324
|
}
|
|
20331
|
-
if (
|
|
20332
|
-
|
|
20325
|
+
if (D.value) {
|
|
20326
|
+
R(e);
|
|
20333
20327
|
return;
|
|
20334
20328
|
}
|
|
20335
20329
|
let t = e.target.closest(".nb-blueprint-card");
|
|
20336
20330
|
if (t) {
|
|
20337
|
-
|
|
20331
|
+
ae(e, t);
|
|
20338
20332
|
return;
|
|
20339
20333
|
}
|
|
20340
|
-
|
|
20334
|
+
de(e);
|
|
20341
20335
|
}
|
|
20342
|
-
function
|
|
20343
|
-
|
|
20336
|
+
function R(e) {
|
|
20337
|
+
N = !0, P = e.clientX - d.value, I = e.clientY - f.value, document.addEventListener("mousemove", ee), document.addEventListener("mouseup", te);
|
|
20344
20338
|
}
|
|
20345
|
-
function
|
|
20346
|
-
|
|
20339
|
+
function ee(e) {
|
|
20340
|
+
N && (d.value = e.clientX - P, f.value = e.clientY - I, m.value++);
|
|
20347
20341
|
}
|
|
20348
|
-
function
|
|
20349
|
-
|
|
20342
|
+
function te() {
|
|
20343
|
+
N = !1, document.removeEventListener("mousemove", ee), document.removeEventListener("mouseup", te);
|
|
20350
20344
|
}
|
|
20351
|
-
function
|
|
20345
|
+
function ne(e) {
|
|
20352
20346
|
let t = s.value?.getBoundingClientRect();
|
|
20353
|
-
if (
|
|
20354
|
-
|
|
20355
|
-
|
|
20356
|
-
|
|
20357
|
-
|
|
20347
|
+
if (t) if (e.ctrlKey) {
|
|
20348
|
+
let n = p.value, r = 1 - e.deltaY * .01, i = Math.max(z9, Math.min(B9, n * r));
|
|
20349
|
+
if (i === n) return;
|
|
20350
|
+
let a = e.clientX - t.left, o = e.clientY - t.top, s = (a - d.value) / n, c = (o - f.value) / n;
|
|
20351
|
+
d.value = a - s * i, f.value = o - c * i, p.value = i;
|
|
20352
|
+
} else d.value -= e.deltaX, f.value -= e.deltaY, m.value++;
|
|
20358
20353
|
}
|
|
20359
|
-
let z = !1, B = 0, V = 0, H = /* @__PURE__ */ new Map(),
|
|
20360
|
-
function
|
|
20354
|
+
let z = !1, B = 0, V = 0, H = /* @__PURE__ */ new Map(), U = !1;
|
|
20355
|
+
function re(e) {
|
|
20361
20356
|
let t = e.parentElement;
|
|
20362
20357
|
if (!t) return {
|
|
20363
20358
|
x: 0,
|
|
@@ -20372,32 +20367,32 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20372
20367
|
y: t.offsetTop
|
|
20373
20368
|
};
|
|
20374
20369
|
}
|
|
20375
|
-
function
|
|
20370
|
+
function ie(e, t, n) {
|
|
20376
20371
|
let r = e.parentElement;
|
|
20377
20372
|
r && (r.style.transform = `translate(${t}px, ${n}px)`);
|
|
20378
20373
|
}
|
|
20379
|
-
function
|
|
20374
|
+
function ae(e, t) {
|
|
20380
20375
|
let n = t.dataset.cardId;
|
|
20381
20376
|
if (n) {
|
|
20382
|
-
if (B = e.clientX, V = e.clientY,
|
|
20377
|
+
if (B = e.clientX, V = e.clientY, U = !1, H = /* @__PURE__ */ new Map(), e.shiftKey) {
|
|
20383
20378
|
let e = new Set(h.value);
|
|
20384
20379
|
e.has(n) ? e.delete(n) : e.add(n), v(Array.from(e));
|
|
20385
20380
|
} else h.value.has(n) || v([n]), _(n);
|
|
20386
20381
|
y(() => {
|
|
20387
20382
|
if (s.value) for (let e of h.value) {
|
|
20388
20383
|
let t = s.value.querySelector(`[data-card-id="${e}"]`);
|
|
20389
|
-
t && H.set(e,
|
|
20384
|
+
t && H.set(e, re(t));
|
|
20390
20385
|
}
|
|
20391
|
-
}), document.addEventListener("mousemove",
|
|
20386
|
+
}), document.addEventListener("mousemove", se), document.addEventListener("mouseup", ce);
|
|
20392
20387
|
}
|
|
20393
20388
|
}
|
|
20394
|
-
function
|
|
20389
|
+
function oe() {
|
|
20395
20390
|
if (!s.value) return;
|
|
20396
20391
|
let e = [];
|
|
20397
20392
|
for (let t of H.keys()) {
|
|
20398
20393
|
let n = s.value.querySelector(`[data-card-id="${t}"]`);
|
|
20399
20394
|
if (n) {
|
|
20400
|
-
let r =
|
|
20395
|
+
let r = re(n);
|
|
20401
20396
|
e.push({
|
|
20402
20397
|
id: t,
|
|
20403
20398
|
x: Math.round(r.x),
|
|
@@ -20407,22 +20402,22 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20407
20402
|
}
|
|
20408
20403
|
e.length && a("move", e);
|
|
20409
20404
|
}
|
|
20410
|
-
function
|
|
20405
|
+
function se(e) {
|
|
20411
20406
|
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,
|
|
20407
|
+
if (!(!z && Math.abs(t * p.value) < V9 && Math.abs(n * p.value) < V9) && (z = !0, U = !0, s.value)) {
|
|
20413
20408
|
for (let [e, r] of H) {
|
|
20414
20409
|
let i = s.value.querySelector(`[data-card-id="${e}"]`);
|
|
20415
|
-
i &&
|
|
20410
|
+
i && ie(i, r.x + t, r.y + n);
|
|
20416
20411
|
}
|
|
20417
|
-
|
|
20412
|
+
oe(), m.value++;
|
|
20418
20413
|
}
|
|
20419
20414
|
}
|
|
20420
|
-
function
|
|
20421
|
-
document.removeEventListener("mousemove",
|
|
20415
|
+
function ce() {
|
|
20416
|
+
document.removeEventListener("mousemove", se), document.removeEventListener("mouseup", ce), U && oe(), z = !1, U = !1, H = /* @__PURE__ */ new Map();
|
|
20422
20417
|
}
|
|
20423
|
-
let
|
|
20424
|
-
if (!
|
|
20425
|
-
let { x1: e, y1: t, x2: n, y2: r } =
|
|
20418
|
+
let G = O(null), le = !1, ue = o(() => {
|
|
20419
|
+
if (!G.value) return {};
|
|
20420
|
+
let { x1: e, y1: t, x2: n, y2: r } = G.value;
|
|
20426
20421
|
return {
|
|
20427
20422
|
left: `${Math.min(e, n)}px`,
|
|
20428
20423
|
top: `${Math.min(t, r)}px`,
|
|
@@ -20430,65 +20425,65 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20430
20425
|
height: `${Math.abs(r - t)}px`
|
|
20431
20426
|
};
|
|
20432
20427
|
});
|
|
20433
|
-
function
|
|
20428
|
+
function de(e) {
|
|
20434
20429
|
if (!s.value) return;
|
|
20435
20430
|
let t = s.value.getBoundingClientRect(), n = e.clientX - t.left, r = e.clientY - t.top;
|
|
20436
|
-
|
|
20431
|
+
le = e.shiftKey, le || v([]), G.value = {
|
|
20437
20432
|
x1: n,
|
|
20438
20433
|
y1: r,
|
|
20439
20434
|
x2: n,
|
|
20440
20435
|
y2: r
|
|
20441
|
-
}, document.addEventListener("mousemove",
|
|
20436
|
+
}, document.addEventListener("mousemove", fe), document.addEventListener("mouseup", pe);
|
|
20442
20437
|
}
|
|
20443
|
-
function
|
|
20444
|
-
if (!
|
|
20438
|
+
function fe(e) {
|
|
20439
|
+
if (!G.value || !s.value) return;
|
|
20445
20440
|
let t = s.value.getBoundingClientRect();
|
|
20446
|
-
|
|
20441
|
+
G.value.x2 = e.clientX - t.left, G.value.y2 = e.clientY - t.top;
|
|
20447
20442
|
}
|
|
20448
|
-
function
|
|
20449
|
-
if (document.removeEventListener("mousemove",
|
|
20450
|
-
|
|
20443
|
+
function pe() {
|
|
20444
|
+
if (document.removeEventListener("mousemove", fe), document.removeEventListener("mouseup", pe), !G.value || !s.value) {
|
|
20445
|
+
G.value = null;
|
|
20451
20446
|
return;
|
|
20452
20447
|
}
|
|
20453
|
-
let e = s.value.getBoundingClientRect(), { x1: t, y1: n, x2: r, y2: i } =
|
|
20448
|
+
let e = s.value.getBoundingClientRect(), { x1: t, y1: n, x2: r, y2: i } = G.value, a = Math.min(t, r), o = Math.min(n, i), c = Math.max(t, r), l = Math.max(n, i);
|
|
20454
20449
|
if (Math.abs(r - t) < V9 && Math.abs(i - n) < V9) {
|
|
20455
|
-
|
|
20450
|
+
le || (v([]), _(null)), G.value = null;
|
|
20456
20451
|
return;
|
|
20457
20452
|
}
|
|
20458
|
-
let u =
|
|
20453
|
+
let u = le ? [...h.value] : [];
|
|
20459
20454
|
s.value.querySelectorAll("[data-card-id]").forEach((t) => {
|
|
20460
20455
|
let n = t.getBoundingClientRect(), r = n.left - e.left, i = n.top - e.top, s = r + n.width, d = i + n.height;
|
|
20461
20456
|
if (r < c && s > a && i < l && d > o) {
|
|
20462
20457
|
let e = t.dataset.cardId;
|
|
20463
20458
|
e && !u.includes(e) && u.push(e);
|
|
20464
20459
|
}
|
|
20465
|
-
}), v(u),
|
|
20460
|
+
}), v(u), G.value = null;
|
|
20466
20461
|
}
|
|
20467
|
-
let
|
|
20468
|
-
function
|
|
20469
|
-
|
|
20462
|
+
let me = O(null), he = null;
|
|
20463
|
+
function K(e) {
|
|
20464
|
+
he = e, document.addEventListener("mousemove", ge), document.addEventListener("mouseup", _e);
|
|
20470
20465
|
}
|
|
20471
|
-
function
|
|
20472
|
-
if (!
|
|
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="${
|
|
20466
|
+
function ge(e) {
|
|
20467
|
+
if (!he || !s.value) return;
|
|
20468
|
+
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="${he.nodeId}:${he.portId}"]`);
|
|
20474
20469
|
if (!i) return;
|
|
20475
20470
|
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;
|
|
20476
|
-
|
|
20471
|
+
me.value = `M ${o} ${c} C ${o + l} ${c}, ${n - l} ${r}, ${n} ${r}`;
|
|
20477
20472
|
}
|
|
20478
|
-
function
|
|
20479
|
-
|
|
20473
|
+
function _e() {
|
|
20474
|
+
he = null, me.value = null, document.removeEventListener("mousemove", ge), document.removeEventListener("mouseup", _e);
|
|
20480
20475
|
}
|
|
20481
|
-
function
|
|
20482
|
-
if (!
|
|
20483
|
-
let t =
|
|
20476
|
+
function ve(e) {
|
|
20477
|
+
if (!he || he.nodeId === e.nodeId || he.type === e.type) return;
|
|
20478
|
+
let t = he.type === "output" ? he : e, n = he.type === "output" ? e : he;
|
|
20484
20479
|
a("connect", {
|
|
20485
20480
|
fromNode: t.nodeId,
|
|
20486
20481
|
fromPort: t.portId,
|
|
20487
20482
|
toNode: n.nodeId,
|
|
20488
20483
|
toPort: n.portId
|
|
20489
|
-
}),
|
|
20484
|
+
}), he = null, me.value = null;
|
|
20490
20485
|
}
|
|
20491
|
-
function
|
|
20486
|
+
function ye(e) {
|
|
20492
20487
|
let t = e.closest(".nb-blueprint-card");
|
|
20493
20488
|
if (t) {
|
|
20494
20489
|
let e = getComputedStyle(t).getPropertyValue("--nb-card-color").trim();
|
|
@@ -20496,7 +20491,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20496
20491
|
}
|
|
20497
20492
|
return "var(--nb-c-primary)";
|
|
20498
20493
|
}
|
|
20499
|
-
let
|
|
20494
|
+
let be = o(() => {
|
|
20500
20495
|
if (m.value, !s.value) return [];
|
|
20501
20496
|
let e = s.value.getBoundingClientRect();
|
|
20502
20497
|
return i.connections.map((t) => {
|
|
@@ -20506,17 +20501,17 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20506
20501
|
return {
|
|
20507
20502
|
path: `M ${o} ${c} C ${o + m} ${c}, ${l - m} ${u}, ${l} ${u}`,
|
|
20508
20503
|
conn: t,
|
|
20509
|
-
color:
|
|
20504
|
+
color: ye(n)
|
|
20510
20505
|
};
|
|
20511
20506
|
}).filter(Boolean);
|
|
20512
20507
|
});
|
|
20513
|
-
function
|
|
20508
|
+
function xe() {
|
|
20514
20509
|
if (!s.value) return null;
|
|
20515
20510
|
let e = s.value.querySelectorAll("[data-card-id]");
|
|
20516
20511
|
if (e.length === 0) return null;
|
|
20517
20512
|
let t = Infinity, n = Infinity, r = -Infinity, i = -Infinity;
|
|
20518
20513
|
return e.forEach((e) => {
|
|
20519
|
-
let a = e, o =
|
|
20514
|
+
let a = e, o = re(a), s = a.offsetWidth, c = a.offsetHeight;
|
|
20520
20515
|
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);
|
|
20521
20516
|
}), {
|
|
20522
20517
|
minX: t,
|
|
@@ -20525,9 +20520,9 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20525
20520
|
maxY: i
|
|
20526
20521
|
};
|
|
20527
20522
|
}
|
|
20528
|
-
function
|
|
20523
|
+
function Se() {
|
|
20529
20524
|
if (p.value = 1, !s.value) return;
|
|
20530
|
-
let e =
|
|
20525
|
+
let e = xe();
|
|
20531
20526
|
if (!e) {
|
|
20532
20527
|
d.value = 0, f.value = 0;
|
|
20533
20528
|
return;
|
|
@@ -20535,31 +20530,31 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20535
20530
|
let t = s.value.getBoundingClientRect(), n = (e.minX + e.maxX) / 2, r = (e.minY + e.maxY) / 2;
|
|
20536
20531
|
d.value = t.width / 2 - n, f.value = t.height / 2 - r;
|
|
20537
20532
|
}
|
|
20538
|
-
function
|
|
20533
|
+
function Ce(e = 40) {
|
|
20539
20534
|
if (!s.value) return;
|
|
20540
|
-
let t =
|
|
20535
|
+
let t = xe();
|
|
20541
20536
|
if (!t) {
|
|
20542
|
-
|
|
20537
|
+
we();
|
|
20543
20538
|
return;
|
|
20544
20539
|
}
|
|
20545
20540
|
let n = s.value.getBoundingClientRect(), r = t.maxX - t.minX, i = t.maxY - t.minY;
|
|
20546
20541
|
if (r <= 0 || i <= 0) {
|
|
20547
|
-
|
|
20542
|
+
Se();
|
|
20548
20543
|
return;
|
|
20549
20544
|
}
|
|
20550
20545
|
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;
|
|
20551
20546
|
p.value = u, d.value = n.width / 2 - m * u, f.value = n.height / 2 - h * u;
|
|
20552
20547
|
}
|
|
20553
|
-
function
|
|
20548
|
+
function we() {
|
|
20554
20549
|
d.value = 0, f.value = 0, p.value = 1;
|
|
20555
20550
|
}
|
|
20556
|
-
function
|
|
20551
|
+
function Te() {
|
|
20557
20552
|
if (!s.value) return [];
|
|
20558
20553
|
let e = [];
|
|
20559
20554
|
for (let t of h.value) {
|
|
20560
20555
|
let n = s.value.querySelector(`[data-card-id="${t}"]`);
|
|
20561
20556
|
if (!n) continue;
|
|
20562
|
-
let r =
|
|
20557
|
+
let r = re(n);
|
|
20563
20558
|
e.push({
|
|
20564
20559
|
id: t,
|
|
20565
20560
|
el: n,
|
|
@@ -20571,74 +20566,74 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20571
20566
|
}
|
|
20572
20567
|
return e;
|
|
20573
20568
|
}
|
|
20574
|
-
function
|
|
20569
|
+
function Ee(e) {
|
|
20575
20570
|
let t = [];
|
|
20576
|
-
for (let n of e)
|
|
20571
|
+
for (let n of e) ie(n.el, n.x, n.y), t.push({
|
|
20577
20572
|
id: n.id,
|
|
20578
20573
|
x: Math.round(n.x),
|
|
20579
20574
|
y: Math.round(n.y)
|
|
20580
20575
|
});
|
|
20581
20576
|
t.length && (m.value++, a("move", t));
|
|
20582
20577
|
}
|
|
20583
|
-
function
|
|
20584
|
-
let e =
|
|
20578
|
+
function De() {
|
|
20579
|
+
let e = Te();
|
|
20585
20580
|
if (e.length < 2) return;
|
|
20586
20581
|
let t = Math.min(...e.map((e) => e.x));
|
|
20587
|
-
e.forEach((e) => e.x = t),
|
|
20582
|
+
e.forEach((e) => e.x = t), Ee(e);
|
|
20588
20583
|
}
|
|
20589
|
-
function
|
|
20590
|
-
let e =
|
|
20584
|
+
function Oe() {
|
|
20585
|
+
let e = Te();
|
|
20591
20586
|
if (e.length < 2) return;
|
|
20592
20587
|
let t = e.map((e) => e.x + e.w / 2), n = t.reduce((e, t) => e + t, 0) / t.length;
|
|
20593
|
-
e.forEach((e) => e.x = n - e.w / 2),
|
|
20588
|
+
e.forEach((e) => e.x = n - e.w / 2), Ee(e);
|
|
20594
20589
|
}
|
|
20595
|
-
function
|
|
20596
|
-
let e =
|
|
20590
|
+
function ke() {
|
|
20591
|
+
let e = Te();
|
|
20597
20592
|
if (e.length < 2) return;
|
|
20598
20593
|
let t = Math.max(...e.map((e) => e.x + e.w));
|
|
20599
|
-
e.forEach((e) => e.x = t - e.w),
|
|
20594
|
+
e.forEach((e) => e.x = t - e.w), Ee(e);
|
|
20600
20595
|
}
|
|
20601
|
-
function
|
|
20602
|
-
let e =
|
|
20596
|
+
function Ae() {
|
|
20597
|
+
let e = Te();
|
|
20603
20598
|
if (e.length < 2) return;
|
|
20604
20599
|
let t = Math.min(...e.map((e) => e.y));
|
|
20605
|
-
e.forEach((e) => e.y = t),
|
|
20600
|
+
e.forEach((e) => e.y = t), Ee(e);
|
|
20606
20601
|
}
|
|
20607
|
-
function
|
|
20608
|
-
let e =
|
|
20602
|
+
function je() {
|
|
20603
|
+
let e = Te();
|
|
20609
20604
|
if (e.length < 2) return;
|
|
20610
20605
|
let t = e.map((e) => e.y + e.h / 2), n = t.reduce((e, t) => e + t, 0) / t.length;
|
|
20611
|
-
e.forEach((e) => e.y = n - e.h / 2),
|
|
20606
|
+
e.forEach((e) => e.y = n - e.h / 2), Ee(e);
|
|
20612
20607
|
}
|
|
20613
|
-
function
|
|
20614
|
-
let e =
|
|
20608
|
+
function Me() {
|
|
20609
|
+
let e = Te();
|
|
20615
20610
|
if (e.length < 2) return;
|
|
20616
20611
|
let t = Math.max(...e.map((e) => e.y + e.h));
|
|
20617
|
-
e.forEach((e) => e.y = t - e.h),
|
|
20612
|
+
e.forEach((e) => e.y = t - e.h), Ee(e);
|
|
20618
20613
|
}
|
|
20619
|
-
function
|
|
20620
|
-
let e =
|
|
20614
|
+
function Ne() {
|
|
20615
|
+
let e = Te();
|
|
20621
20616
|
if (e.length < 3) return;
|
|
20622
20617
|
e.sort((e, t) => e.x - t.x);
|
|
20623
20618
|
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;
|
|
20624
20619
|
for (let t = 1; t < e.length - 1; t++) e[t].x = a, a += e[t].w + i;
|
|
20625
|
-
|
|
20620
|
+
Ee(e);
|
|
20626
20621
|
}
|
|
20627
|
-
function
|
|
20628
|
-
let e =
|
|
20622
|
+
function Pe() {
|
|
20623
|
+
let e = Te();
|
|
20629
20624
|
if (e.length < 3) return;
|
|
20630
20625
|
e.sort((e, t) => e.y - t.y);
|
|
20631
20626
|
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;
|
|
20632
20627
|
for (let t = 1; t < e.length - 1; t++) e[t].y = a, a += e[t].h + i;
|
|
20633
|
-
|
|
20628
|
+
Ee(e);
|
|
20634
20629
|
}
|
|
20635
|
-
function
|
|
20630
|
+
function Fe(e) {
|
|
20636
20631
|
if (!s.value) return;
|
|
20637
20632
|
let t = e?.gapX ?? 80, n = e?.gapY ?? 40, r = e?.padding ?? 60, a = [];
|
|
20638
20633
|
if (s.value.querySelectorAll("[data-card-id]").forEach((e) => {
|
|
20639
20634
|
let t = e, n = t.dataset.cardId;
|
|
20640
20635
|
if (!n) return;
|
|
20641
|
-
let r =
|
|
20636
|
+
let r = re(t);
|
|
20642
20637
|
a.push({
|
|
20643
20638
|
id: n,
|
|
20644
20639
|
el: t,
|
|
@@ -20673,38 +20668,38 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20673
20668
|
for (let e of s) e.x = m, e.y = a, a += e.h + n, i = Math.max(i, e.w);
|
|
20674
20669
|
m += i + t;
|
|
20675
20670
|
}
|
|
20676
|
-
|
|
20671
|
+
Ee(a);
|
|
20677
20672
|
}
|
|
20678
|
-
let
|
|
20673
|
+
let Ie = new MutationObserver(() => {
|
|
20679
20674
|
m.value++;
|
|
20680
20675
|
});
|
|
20681
20676
|
return C(() => {
|
|
20682
|
-
s.value &&
|
|
20677
|
+
s.value && Ie.observe(s.value, {
|
|
20683
20678
|
childList: !0,
|
|
20684
20679
|
subtree: !0,
|
|
20685
20680
|
attributes: !0
|
|
20686
|
-
}), window.addEventListener("keydown",
|
|
20681
|
+
}), window.addEventListener("keydown", j), window.addEventListener("keyup", M), y(() => y(Ce));
|
|
20687
20682
|
}), S(() => {
|
|
20688
|
-
|
|
20683
|
+
Ie.disconnect(), window.removeEventListener("keydown", j), window.removeEventListener("keyup", M);
|
|
20689
20684
|
}), t({
|
|
20690
|
-
centerView:
|
|
20691
|
-
fitToView:
|
|
20692
|
-
resetView:
|
|
20685
|
+
centerView: Se,
|
|
20686
|
+
fitToView: Ce,
|
|
20687
|
+
resetView: we,
|
|
20693
20688
|
selectedIds: h,
|
|
20694
20689
|
focusedId: g,
|
|
20695
|
-
selectAll:
|
|
20696
|
-
deselectAll:
|
|
20697
|
-
alignLeft:
|
|
20698
|
-
alignCenter:
|
|
20699
|
-
alignRight:
|
|
20700
|
-
alignTop:
|
|
20701
|
-
alignMiddle:
|
|
20702
|
-
alignBottom:
|
|
20703
|
-
distributeHorizontally:
|
|
20704
|
-
distributeVertically:
|
|
20705
|
-
autoLayout:
|
|
20706
|
-
onPortMouseDown:
|
|
20707
|
-
onPortMouseUp:
|
|
20690
|
+
selectAll: w,
|
|
20691
|
+
deselectAll: E,
|
|
20692
|
+
alignLeft: De,
|
|
20693
|
+
alignCenter: Oe,
|
|
20694
|
+
alignRight: ke,
|
|
20695
|
+
alignTop: Ae,
|
|
20696
|
+
alignMiddle: je,
|
|
20697
|
+
alignBottom: Me,
|
|
20698
|
+
distributeHorizontally: Ne,
|
|
20699
|
+
distributeVertically: Pe,
|
|
20700
|
+
autoLayout: Fe,
|
|
20701
|
+
onPortMouseDown: K,
|
|
20702
|
+
onPortMouseUp: ve,
|
|
20708
20703
|
panX: d,
|
|
20709
20704
|
panY: f,
|
|
20710
20705
|
zoom: p
|
|
@@ -20712,11 +20707,11 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20712
20707
|
ref_key: "containerRef",
|
|
20713
20708
|
ref: s,
|
|
20714
20709
|
class: b(["nb-blueprint", {
|
|
20715
|
-
"is-panning": F(
|
|
20716
|
-
"is-space":
|
|
20710
|
+
"is-panning": F(N),
|
|
20711
|
+
"is-space": D.value
|
|
20717
20712
|
}]),
|
|
20718
|
-
onMousedown:
|
|
20719
|
-
onWheel:
|
|
20713
|
+
onMousedown: L,
|
|
20714
|
+
onWheel: W(ne, ["prevent"])
|
|
20720
20715
|
}, [
|
|
20721
20716
|
t[0] ||= u("div", { class: "nb-blueprint__ambient" }, null, -1),
|
|
20722
20717
|
u("div", {
|
|
@@ -20730,7 +20725,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20730
20725
|
transformOrigin: "0 0"
|
|
20731
20726
|
})
|
|
20732
20727
|
}, [(T(), l("svg", _Xt, [
|
|
20733
|
-
(T(!0), l(n, null, k(
|
|
20728
|
+
(T(!0), l(n, null, k(be.value, (t, n) => (T(), l("path", {
|
|
20734
20729
|
key: n,
|
|
20735
20730
|
d: t.path,
|
|
20736
20731
|
fill: "none",
|
|
@@ -20740,7 +20735,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20740
20735
|
style: x({ filter: `drop-shadow(0 0 6px ${t.color})` }),
|
|
20741
20736
|
onClick: (n) => e.$emit("disconnect", t.conn)
|
|
20742
20737
|
}, null, 12, vXt))), 128)),
|
|
20743
|
-
(T(!0), l(n, null, k(
|
|
20738
|
+
(T(!0), l(n, null, k(be.value, (e, t) => (T(), l("path", {
|
|
20744
20739
|
key: `flow-${t}`,
|
|
20745
20740
|
d: e.path,
|
|
20746
20741
|
fill: "none",
|
|
@@ -20750,9 +20745,9 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20750
20745
|
class: "nb-blueprint__wire-flow",
|
|
20751
20746
|
"pointer-events": "none"
|
|
20752
20747
|
}, null, 8, yXt))), 128)),
|
|
20753
|
-
|
|
20748
|
+
me.value ? (T(), l("path", {
|
|
20754
20749
|
key: 0,
|
|
20755
|
-
d:
|
|
20750
|
+
d: me.value,
|
|
20756
20751
|
fill: "none",
|
|
20757
20752
|
stroke: "var(--nb-c-primary)",
|
|
20758
20753
|
"stroke-width": "2",
|
|
@@ -20760,14 +20755,14 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20760
20755
|
opacity: "0.6"
|
|
20761
20756
|
}, null, 8, bXt)) : c("", !0)
|
|
20762
20757
|
])), A(e.$slots, "default", {}, void 0, !0)], 4),
|
|
20763
|
-
|
|
20758
|
+
G.value ? (T(), l("div", {
|
|
20764
20759
|
key: 0,
|
|
20765
20760
|
class: "nb-blueprint__marquee",
|
|
20766
|
-
style: x(
|
|
20761
|
+
style: x(ue.value)
|
|
20767
20762
|
}, null, 4)) : c("", !0)
|
|
20768
20763
|
], 34));
|
|
20769
20764
|
}
|
|
20770
|
-
}), [["__scopeId", "data-v-
|
|
20765
|
+
}), [["__scopeId", "data-v-00b9225f"]]), xXt = ["data-card-id"], SXt = { class: "nb-blueprint-card__ports nb-blueprint-card__ports--left" }, CXt = [
|
|
20771
20766
|
"data-port",
|
|
20772
20767
|
"title",
|
|
20773
20768
|
"onMousedown",
|
|
@@ -20903,12 +20898,12 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20903
20898
|
]]),
|
|
20904
20899
|
style: x({ "--pin-color": g(n) }),
|
|
20905
20900
|
title: n.label,
|
|
20906
|
-
onMousedown:
|
|
20901
|
+
onMousedown: W((r) => t.$emit("port-mousedown", {
|
|
20907
20902
|
nodeId: e.id,
|
|
20908
20903
|
portId: n.id,
|
|
20909
20904
|
type: "input"
|
|
20910
20905
|
}), ["stop"]),
|
|
20911
|
-
onMouseup:
|
|
20906
|
+
onMouseup: W((r) => t.$emit("port-mouseup", {
|
|
20912
20907
|
nodeId: e.id,
|
|
20913
20908
|
portId: n.id,
|
|
20914
20909
|
type: "input"
|
|
@@ -20918,7 +20913,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20918
20913
|
u("button", {
|
|
20919
20914
|
class: "nb-blueprint-card__collapse",
|
|
20920
20915
|
title: e.collapsed ? "Expand" : "Collapse",
|
|
20921
|
-
onClick: o[0] ||=
|
|
20916
|
+
onClick: o[0] ||= W((n) => t.$emit("toggle-collapse", e.id), ["stop"])
|
|
20922
20917
|
}, [...o[5] ||= [u("svg", {
|
|
20923
20918
|
width: "14",
|
|
20924
20919
|
height: "14",
|
|
@@ -20934,7 +20929,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20934
20929
|
e.enabled === void 0 ? c("", !0) : (T(), l("label", {
|
|
20935
20930
|
key: 0,
|
|
20936
20931
|
class: "nb-blueprint-card__toggle",
|
|
20937
|
-
onClick: o[2] ||=
|
|
20932
|
+
onClick: o[2] ||= W(() => {}, ["stop"])
|
|
20938
20933
|
}, [u("input", {
|
|
20939
20934
|
type: "checkbox",
|
|
20940
20935
|
checked: e.enabled,
|
|
@@ -20944,7 +20939,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20944
20939
|
key: 1,
|
|
20945
20940
|
class: "nb-blueprint-card__remove",
|
|
20946
20941
|
title: "Remove",
|
|
20947
|
-
onClick: o[3] ||=
|
|
20942
|
+
onClick: o[3] ||= W((n) => t.$emit("remove", e.id), ["stop"])
|
|
20948
20943
|
}, " × ")) : c("", !0)
|
|
20949
20944
|
]), e.collapsed ? c("", !0) : (T(), l(n, { key: 0 }, [
|
|
20950
20945
|
e.preview ? (T(), l("span", jXt, P(e.preview), 1)) : c("", !0),
|
|
@@ -20968,12 +20963,12 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20968
20963
|
class: b(["nb-blueprint-card__port", [`nb-blueprint-card__port--${_(n)}`, p(n.id) ? "nb-blueprint-card__port--connected" : ""]]),
|
|
20969
20964
|
style: x({ "--pin-color": g(n) }),
|
|
20970
20965
|
title: n.label,
|
|
20971
|
-
onMousedown:
|
|
20966
|
+
onMousedown: W((r) => t.$emit("port-mousedown", {
|
|
20972
20967
|
nodeId: e.id,
|
|
20973
20968
|
portId: n.id,
|
|
20974
20969
|
type: "output"
|
|
20975
20970
|
}), ["stop"]),
|
|
20976
|
-
onMouseup:
|
|
20971
|
+
onMouseup: W((r) => t.$emit("port-mouseup", {
|
|
20977
20972
|
nodeId: e.id,
|
|
20978
20973
|
portId: n.id,
|
|
20979
20974
|
type: "output"
|
|
@@ -20981,7 +20976,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20981
20976
|
}, null, 46, RXt))), 128))])
|
|
20982
20977
|
], 46, xXt));
|
|
20983
20978
|
}
|
|
20984
|
-
}), [["__scopeId", "data-v-
|
|
20979
|
+
}), [["__scopeId", "data-v-5fcfcd01"]]), zXt = {
|
|
20985
20980
|
NbAiLabel: le,
|
|
20986
20981
|
NbBadge: pe,
|
|
20987
20982
|
NbBarChart: Re,
|
|
@@ -21030,7 +21025,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
21030
21025
|
Object.entries(zXt).forEach(([t, n]) => {
|
|
21031
21026
|
e.component(t, n);
|
|
21032
21027
|
});
|
|
21033
|
-
} }, VXt = /* @__PURE__ */
|
|
21028
|
+
} }, VXt = /* @__PURE__ */ ie({ default: () => HXt });
|
|
21034
21029
|
function HXt(e) {
|
|
21035
21030
|
e.directive("nb-context-menu", {
|
|
21036
21031
|
mounted(e, t) {
|
|
@@ -21066,7 +21061,7 @@ function W9(e) {
|
|
|
21066
21061
|
}
|
|
21067
21062
|
//#endregion
|
|
21068
21063
|
//#region src/directives/ToolTip.directive.ts
|
|
21069
|
-
var UXt = /* @__PURE__ */
|
|
21064
|
+
var UXt = /* @__PURE__ */ ie({ default: () => J9 }), G9 = /* @__PURE__ */ new Set(), K9 = (e) => {
|
|
21070
21065
|
if (Array.isArray(e)) return e.map((e) => K9(e)).join("");
|
|
21071
21066
|
if (!e || typeof e != "object" || !e.component) return "";
|
|
21072
21067
|
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));
|