@nubisco/ui 3.1.0 → 3.2.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/BlueprintCard.vue.d.ts.map +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.mjs +157 -153
- package/dist/ui.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -25980,47 +25980,43 @@ function t4t() {
|
|
|
25980
25980
|
//#endregion
|
|
25981
25981
|
//#region src/components/BlueprintCard.vue?vue&type=script&setup=true&lang.ts
|
|
25982
25982
|
var n4t = ["data-card-id", "aria-label"], r4t = { class: "nb-blueprint-card__ports nb-blueprint-card__ports--left" }, i4t = ["title"], a4t = [
|
|
25983
|
-
"data-port",
|
|
25984
|
-
"data-port-data-type",
|
|
25985
25983
|
"title",
|
|
25986
25984
|
"aria-label",
|
|
25987
25985
|
"onMousedown",
|
|
25988
25986
|
"onMouseup",
|
|
25989
25987
|
"onKeydown"
|
|
25990
|
-
], o4t = {
|
|
25988
|
+
], o4t = ["data-port", "data-port-data-type"], s4t = {
|
|
25991
25989
|
key: 0,
|
|
25992
25990
|
class: "nb-blueprint-card__port-label"
|
|
25993
|
-
},
|
|
25991
|
+
}, c4t = { class: "nb-blueprint-card__inner" }, l4t = { class: "nb-blueprint-card__body" }, u4t = { class: "nb-blueprint-card__header" }, d4t = [
|
|
25994
25992
|
"title",
|
|
25995
25993
|
"aria-label",
|
|
25996
25994
|
"aria-expanded"
|
|
25997
|
-
],
|
|
25995
|
+
], f4t = { class: "nb-blueprint-card__title-group" }, p4t = { class: "nb-blueprint-card__name" }, m4t = {
|
|
25998
25996
|
key: 0,
|
|
25999
25997
|
class: "nb-blueprint-card__tag"
|
|
26000
|
-
},
|
|
25998
|
+
}, h4t = ["aria-label"], g4t = ["checked", "aria-label"], _4t = ["aria-label"], v4t = {
|
|
26001
25999
|
key: 0,
|
|
26002
26000
|
class: "nb-blueprint-card__preview"
|
|
26003
|
-
},
|
|
26001
|
+
}, y4t = {
|
|
26004
26002
|
key: 1,
|
|
26005
26003
|
class: "nb-blueprint-card__params"
|
|
26006
|
-
},
|
|
26004
|
+
}, b4t = { class: "nb-blueprint-card__row-label" }, x4t = { class: "nb-blueprint-card__row-value" }, S4t = {
|
|
26007
26005
|
key: 0,
|
|
26008
26006
|
class: "nb-blueprint-card__row-unit"
|
|
26009
|
-
},
|
|
26007
|
+
}, C4t = {
|
|
26010
26008
|
key: 2,
|
|
26011
26009
|
class: "nb-blueprint-card__content"
|
|
26012
|
-
},
|
|
26013
|
-
"data-port",
|
|
26014
|
-
"data-port-data-type",
|
|
26010
|
+
}, w4t = { class: "nb-blueprint-card__ports nb-blueprint-card__ports--right" }, T4t = ["title"], E4t = [
|
|
26015
26011
|
"title",
|
|
26016
26012
|
"aria-label",
|
|
26017
26013
|
"onMousedown",
|
|
26018
26014
|
"onMouseup",
|
|
26019
26015
|
"onKeydown"
|
|
26020
|
-
],
|
|
26016
|
+
], D4t = ["data-port", "data-port-data-type"], O4t = {
|
|
26021
26017
|
key: 0,
|
|
26022
26018
|
class: "nb-blueprint-card__port-label"
|
|
26023
|
-
},
|
|
26019
|
+
}, k4t = 320, A4t = 1, j4t = 10, o9 = /* @__PURE__ */ X(/* @__PURE__ */ m({
|
|
26024
26020
|
__name: "BlueprintCard",
|
|
26025
26021
|
props: {
|
|
26026
26022
|
id: {},
|
|
@@ -26099,7 +26095,7 @@ var n4t = ["data-card-id", "aria-label"], r4t = { class: "nb-blueprint-card__por
|
|
|
26099
26095
|
for (let t of e ?? []) n.has(t) || (C.value = new Set(C.value).add(t), clearTimeout(T.get(t)), T.set(t, setTimeout(() => {
|
|
26100
26096
|
let e = new Set(C.value);
|
|
26101
26097
|
e.delete(t), C.value = e, T.delete(t);
|
|
26102
|
-
},
|
|
26098
|
+
}, k4t)));
|
|
26103
26099
|
}, { deep: !0 }), w(() => {
|
|
26104
26100
|
for (let e of T.values()) clearTimeout(e);
|
|
26105
26101
|
T.clear();
|
|
@@ -26133,7 +26129,7 @@ var n4t = ["data-card-id", "aria-label"], r4t = { class: "nb-blueprint-card__por
|
|
|
26133
26129
|
let t = F[e.key];
|
|
26134
26130
|
if (!t || !a?.nudge) return;
|
|
26135
26131
|
e.preventDefault();
|
|
26136
|
-
let n = e.shiftKey ?
|
|
26132
|
+
let n = e.shiftKey ? j4t : A4t;
|
|
26137
26133
|
a.nudge(r.id, t[0] * n, t[1] * n);
|
|
26138
26134
|
}
|
|
26139
26135
|
function R(e) {
|
|
@@ -26289,24 +26285,12 @@ var n4t = ["data-card-id", "aria-label"], r4t = { class: "nb-blueprint-card__por
|
|
|
26289
26285
|
"nb-blueprint-card__port-combined--active": re.value
|
|
26290
26286
|
}]),
|
|
26291
26287
|
title: `${B.value.length} input${B.value.length === 1 ? "" : "s"}`
|
|
26292
|
-
}, null, 10, i4t)) : c("", !0), (E(!0), l(n, null, j(B.value, (t) => (E(), l("
|
|
26288
|
+
}, null, 10, i4t)) : c("", !0), (E(!0), l(n, null, j(B.value, (t) => (E(), l("div", {
|
|
26293
26289
|
key: t.key,
|
|
26290
|
+
class: "nb-blueprint-card__port-slot"
|
|
26291
|
+
}, [u("button", {
|
|
26294
26292
|
type: "button",
|
|
26295
|
-
"
|
|
26296
|
-
"data-port-data-type": t.port.dataType ?? "any",
|
|
26297
|
-
class: b(["nb-blueprint-card__port nb-blueprint-card__port-hit nb-blueprint-card__port--left", [
|
|
26298
|
-
`nb-blueprint-card__port--${de(t.port)}`,
|
|
26299
|
-
`nb-blueprint-card__port--size-${fe(t.port)}`,
|
|
26300
|
-
`nb-blueprint-card__port--${pe(t.port)}`,
|
|
26301
|
-
t.port.required ? "nb-blueprint-card__port--required" : "",
|
|
26302
|
-
t.channel ? "nb-blueprint-card__port--channel" : "",
|
|
26303
|
-
J(t.portId) ? "nb-blueprint-card__port--connected" : "",
|
|
26304
|
-
te(t.portId) ? "nb-blueprint-card__port--active" : "",
|
|
26305
|
-
D(t.portId) ? "nb-blueprint-card__port--metered" : "",
|
|
26306
|
-
C.value.has(t.portId) ? "nb-blueprint-card__port--ping" : "",
|
|
26307
|
-
y(t, "input")
|
|
26308
|
-
]]),
|
|
26309
|
-
style: x(O(t)),
|
|
26293
|
+
class: "nb-blueprint-card__port-hit",
|
|
26310
26294
|
title: oe(t),
|
|
26311
26295
|
"aria-label": N(t, "input"),
|
|
26312
26296
|
onMousedown: Y((n) => s({
|
|
@@ -26327,8 +26311,24 @@ var n4t = ["data-card-id", "aria-label"], r4t = { class: "nb-blueprint-card__por
|
|
|
26327
26311
|
type: "input",
|
|
26328
26312
|
dataType: t.port.dataType
|
|
26329
26313
|
})
|
|
26330
|
-
}, [
|
|
26331
|
-
|
|
26314
|
+
}, [u("span", {
|
|
26315
|
+
"data-port": `${e.id}:${t.portId}`,
|
|
26316
|
+
"data-port-data-type": t.port.dataType ?? "any",
|
|
26317
|
+
class: b(["nb-blueprint-card__port nb-blueprint-card__port--left", [
|
|
26318
|
+
`nb-blueprint-card__port--${de(t.port)}`,
|
|
26319
|
+
`nb-blueprint-card__port--size-${fe(t.port)}`,
|
|
26320
|
+
`nb-blueprint-card__port--${pe(t.port)}`,
|
|
26321
|
+
t.port.required ? "nb-blueprint-card__port--required" : "",
|
|
26322
|
+
t.channel ? "nb-blueprint-card__port--channel" : "",
|
|
26323
|
+
J(t.portId) ? "nb-blueprint-card__port--connected" : "",
|
|
26324
|
+
te(t.portId) ? "nb-blueprint-card__port--active" : "",
|
|
26325
|
+
D(t.portId) ? "nb-blueprint-card__port--metered" : "",
|
|
26326
|
+
C.value.has(t.portId) ? "nb-blueprint-card__port--ping" : "",
|
|
26327
|
+
y(t, "input")
|
|
26328
|
+
]]),
|
|
26329
|
+
style: x(O(t))
|
|
26330
|
+
}, null, 14, o4t)], 40, a4t), t.showLabel ? (E(), l("span", s4t, I(X(t)), 1)) : c("", !0)]))), 128))]),
|
|
26331
|
+
u("div", c4t, [u("div", l4t, [u("div", u4t, [
|
|
26332
26332
|
u("button", {
|
|
26333
26333
|
type: "button",
|
|
26334
26334
|
class: "nb-blueprint-card__collapse",
|
|
@@ -26344,8 +26344,8 @@ var n4t = ["data-card-id", "aria-label"], r4t = { class: "nb-blueprint-card__por
|
|
|
26344
26344
|
fill: "none",
|
|
26345
26345
|
stroke: "currentColor",
|
|
26346
26346
|
"stroke-width": "1.5"
|
|
26347
|
-
}, [u("polyline", { points: "4 6 8 10 12 6" })], -1)]], 40,
|
|
26348
|
-
u("div",
|
|
26347
|
+
}, [u("polyline", { points: "4 6 8 10 12 6" })], -1)]], 40, d4t),
|
|
26348
|
+
u("div", f4t, [u("span", p4t, I(e.title), 1), e.category ? (E(), l("span", m4t, I(W.value), 1)) : c("", !0)]),
|
|
26349
26349
|
e.status && e.status !== "none" ? (E(), l("svg", {
|
|
26350
26350
|
key: 0,
|
|
26351
26351
|
class: b(["nb-blueprint-card__status", `nb-blueprint-card__status--${e.status}`]),
|
|
@@ -26409,7 +26409,7 @@ var n4t = ["data-card-id", "aria-label"], r4t = { class: "nb-blueprint-card__por
|
|
|
26409
26409
|
r: "1",
|
|
26410
26410
|
fill: "var(--nb-c-surface)"
|
|
26411
26411
|
}, null, -1)
|
|
26412
|
-
], 64))], 10,
|
|
26412
|
+
], 64))], 10, h4t)) : c("", !0),
|
|
26413
26413
|
e.enabled === void 0 ? c("", !0) : (E(), l("label", {
|
|
26414
26414
|
key: 1,
|
|
26415
26415
|
class: "nb-blueprint-card__toggle",
|
|
@@ -26420,7 +26420,7 @@ var n4t = ["data-card-id", "aria-label"], r4t = { class: "nb-blueprint-card__por
|
|
|
26420
26420
|
checked: e.enabled,
|
|
26421
26421
|
"aria-label": `Enable ${e.title}`,
|
|
26422
26422
|
onChange: r[2] ||= (n) => t.$emit("toggle", e.id, n.target.checked)
|
|
26423
|
-
}, null, 40,
|
|
26423
|
+
}, null, 40, g4t), r[18] ||= u("span", { class: "nb-blueprint-card__toggle-track" }, null, -1)], 32)),
|
|
26424
26424
|
e.removable ? (E(), l("button", {
|
|
26425
26425
|
key: 2,
|
|
26426
26426
|
type: "button",
|
|
@@ -26429,47 +26429,36 @@ var n4t = ["data-card-id", "aria-label"], r4t = { class: "nb-blueprint-card__por
|
|
|
26429
26429
|
"aria-label": `Remove ${e.title}`,
|
|
26430
26430
|
onMousedown: r[5] ||= Y(() => {}, ["stop"]),
|
|
26431
26431
|
onClick: r[6] ||= Y((n) => t.$emit("remove", e.id), ["stop"])
|
|
26432
|
-
}, " × ", 40,
|
|
26432
|
+
}, " × ", 40, _4t)) : c("", !0)
|
|
26433
26433
|
]), e.collapsed ? c("", !0) : (E(), l(n, { key: 0 }, [
|
|
26434
|
-
e.preview ? (E(), l("span",
|
|
26435
|
-
e.parameters && e.parameters.length ? (E(), l("div",
|
|
26434
|
+
e.preview ? (E(), l("span", v4t, I(e.preview), 1)) : c("", !0),
|
|
26435
|
+
e.parameters && e.parameters.length ? (E(), l("div", y4t, [(E(!0), l(n, null, j(e.parameters, (e) => (E(), l("div", {
|
|
26436
26436
|
key: e.label,
|
|
26437
26437
|
class: "nb-blueprint-card__row"
|
|
26438
26438
|
}, [
|
|
26439
|
-
u("span",
|
|
26440
|
-
u("span",
|
|
26439
|
+
u("span", b4t, I(e.label), 1),
|
|
26440
|
+
u("span", x4t, [d(I(e.value) + " ", 1), e.unit ? (E(), l("em", S4t, I(e.unit), 1)) : c("", !0)]),
|
|
26441
26441
|
e.bar === void 0 ? c("", !0) : (E(), l("div", {
|
|
26442
26442
|
key: 0,
|
|
26443
26443
|
class: "nb-blueprint-card__row-bar",
|
|
26444
26444
|
style: x({ "--bar-progress": `${e.bar}%` })
|
|
26445
26445
|
}, null, 4))
|
|
26446
26446
|
]))), 128))])) : c("", !0),
|
|
26447
|
-
t.$slots.default ? (E(), l("div",
|
|
26447
|
+
t.$slots.default ? (E(), l("div", C4t, [M(t.$slots, "default", {}, void 0, !0)])) : c("", !0)
|
|
26448
26448
|
], 64))])]),
|
|
26449
|
-
u("div",
|
|
26449
|
+
u("div", w4t, [e.collapsed && V.value.length > 0 ? (E(), l("div", {
|
|
26450
26450
|
key: 0,
|
|
26451
26451
|
class: b(["nb-blueprint-card__port-combined nb-blueprint-card__port-combined--right", {
|
|
26452
26452
|
"nb-blueprint-card__port-combined--connected": ie.value,
|
|
26453
26453
|
"nb-blueprint-card__port-combined--active": ae.value
|
|
26454
26454
|
}]),
|
|
26455
26455
|
title: `${V.value.length} output${V.value.length === 1 ? "" : "s"}`
|
|
26456
|
-
}, null, 10,
|
|
26456
|
+
}, null, 10, T4t)) : c("", !0), (E(!0), l(n, null, j(V.value, (t) => (E(), l("div", {
|
|
26457
26457
|
key: t.key,
|
|
26458
|
+
class: "nb-blueprint-card__port-slot"
|
|
26459
|
+
}, [u("button", {
|
|
26458
26460
|
type: "button",
|
|
26459
|
-
"
|
|
26460
|
-
"data-port-data-type": t.port.dataType ?? "any",
|
|
26461
|
-
class: b(["nb-blueprint-card__port nb-blueprint-card__port-hit nb-blueprint-card__port--right", [
|
|
26462
|
-
`nb-blueprint-card__port--${de(t.port)}`,
|
|
26463
|
-
`nb-blueprint-card__port--size-${fe(t.port)}`,
|
|
26464
|
-
`nb-blueprint-card__port--${pe(t.port)}`,
|
|
26465
|
-
t.channel ? "nb-blueprint-card__port--channel" : "",
|
|
26466
|
-
J(t.portId) ? "nb-blueprint-card__port--connected" : "",
|
|
26467
|
-
te(t.portId) ? "nb-blueprint-card__port--active" : "",
|
|
26468
|
-
D(t.portId) ? "nb-blueprint-card__port--metered" : "",
|
|
26469
|
-
C.value.has(t.portId) ? "nb-blueprint-card__port--ping" : "",
|
|
26470
|
-
y(t, "output")
|
|
26471
|
-
]]),
|
|
26472
|
-
style: x(O(t)),
|
|
26461
|
+
class: "nb-blueprint-card__port-hit",
|
|
26473
26462
|
title: oe(t),
|
|
26474
26463
|
"aria-label": N(t, "output"),
|
|
26475
26464
|
onMousedown: Y((n) => s({
|
|
@@ -26490,10 +26479,25 @@ var n4t = ["data-card-id", "aria-label"], r4t = { class: "nb-blueprint-card__por
|
|
|
26490
26479
|
type: "output",
|
|
26491
26480
|
dataType: t.port.dataType
|
|
26492
26481
|
})
|
|
26493
|
-
}, [
|
|
26482
|
+
}, [u("span", {
|
|
26483
|
+
"data-port": `${e.id}:${t.portId}`,
|
|
26484
|
+
"data-port-data-type": t.port.dataType ?? "any",
|
|
26485
|
+
class: b(["nb-blueprint-card__port nb-blueprint-card__port--right", [
|
|
26486
|
+
`nb-blueprint-card__port--${de(t.port)}`,
|
|
26487
|
+
`nb-blueprint-card__port--size-${fe(t.port)}`,
|
|
26488
|
+
`nb-blueprint-card__port--${pe(t.port)}`,
|
|
26489
|
+
t.channel ? "nb-blueprint-card__port--channel" : "",
|
|
26490
|
+
J(t.portId) ? "nb-blueprint-card__port--connected" : "",
|
|
26491
|
+
te(t.portId) ? "nb-blueprint-card__port--active" : "",
|
|
26492
|
+
D(t.portId) ? "nb-blueprint-card__port--metered" : "",
|
|
26493
|
+
C.value.has(t.portId) ? "nb-blueprint-card__port--ping" : "",
|
|
26494
|
+
y(t, "output")
|
|
26495
|
+
]]),
|
|
26496
|
+
style: x(O(t))
|
|
26497
|
+
}, null, 14, D4t)], 40, E4t), t.showLabel ? (E(), l("span", O4t, I(X(t)), 1)) : c("", !0)]))), 128))])
|
|
26494
26498
|
], 46, n4t));
|
|
26495
26499
|
}
|
|
26496
|
-
}), [["__scopeId", "data-v-
|
|
26500
|
+
}), [["__scopeId", "data-v-abebdb9e"]]), M4t = { class: "nb-blueprint-controls__group" }, N4t = {
|
|
26497
26501
|
key: 0,
|
|
26498
26502
|
class: "nb-blueprint-controls__group"
|
|
26499
26503
|
}, s9 = /* @__PURE__ */ X(/* @__PURE__ */ m({
|
|
@@ -26518,7 +26522,7 @@ var n4t = ["data-card-id", "aria-label"], r4t = { class: "nb-blueprint-card__por
|
|
|
26518
26522
|
class: b(["nb-blueprint-controls", [`nb-blueprint-controls--${e.position}`, `is-${e.orientation}`]]),
|
|
26519
26523
|
role: "toolbar",
|
|
26520
26524
|
"aria-label": "Blueprint controls"
|
|
26521
|
-
}, [u("div",
|
|
26525
|
+
}, [u("div", M4t, [
|
|
26522
26526
|
f($3, {
|
|
26523
26527
|
variant: "ghost",
|
|
26524
26528
|
size: z(t),
|
|
@@ -26560,7 +26564,7 @@ var n4t = ["data-card-id", "aria-label"], r4t = { class: "nb-blueprint-card__por
|
|
|
26560
26564
|
"aria-label": "Auto layout",
|
|
26561
26565
|
onClick: o[4] ||= (e) => z(r).autoLayout()
|
|
26562
26566
|
}, null, 8, ["size"])) : c("", !0)
|
|
26563
|
-
]), a.value ? (E(), l("div",
|
|
26567
|
+
]), a.value ? (E(), l("div", N4t, [
|
|
26564
26568
|
f($3, {
|
|
26565
26569
|
variant: "ghost",
|
|
26566
26570
|
size: z(t),
|
|
@@ -26627,22 +26631,22 @@ var n4t = ["data-card-id", "aria-label"], r4t = { class: "nb-blueprint-card__por
|
|
|
26627
26631
|
}, null, 8, ["size"])
|
|
26628
26632
|
])) : c("", !0)], 2)) : c("", !0);
|
|
26629
26633
|
}
|
|
26630
|
-
}), [["__scopeId", "data-v-9da072b6"]]),
|
|
26634
|
+
}), [["__scopeId", "data-v-9da072b6"]]), P4t = [
|
|
26631
26635
|
"width",
|
|
26632
26636
|
"height",
|
|
26633
26637
|
"viewBox"
|
|
26634
|
-
],
|
|
26638
|
+
], F4t = ["width", "height"], I4t = { key: 0 }, L4t = [
|
|
26635
26639
|
"x",
|
|
26636
26640
|
"y",
|
|
26637
26641
|
"width",
|
|
26638
26642
|
"height",
|
|
26639
26643
|
"fill"
|
|
26640
|
-
],
|
|
26644
|
+
], R4t = [
|
|
26641
26645
|
"x",
|
|
26642
26646
|
"y",
|
|
26643
26647
|
"width",
|
|
26644
26648
|
"height"
|
|
26645
|
-
],
|
|
26649
|
+
], z4t = 220, B4t = 120, c9 = 10, l9 = /* @__PURE__ */ X(/* @__PURE__ */ m({
|
|
26646
26650
|
__name: "BlueprintMinimap",
|
|
26647
26651
|
props: {
|
|
26648
26652
|
cards: {},
|
|
@@ -26661,8 +26665,8 @@ var n4t = ["data-card-id", "aria-label"], r4t = { class: "nb-blueprint-card__por
|
|
|
26661
26665
|
return {
|
|
26662
26666
|
x: e.x,
|
|
26663
26667
|
y: e.y,
|
|
26664
|
-
w: e.width ??
|
|
26665
|
-
h: e.height ??
|
|
26668
|
+
w: e.width ?? z4t,
|
|
26669
|
+
h: e.height ?? B4t
|
|
26666
26670
|
};
|
|
26667
26671
|
}
|
|
26668
26672
|
let a = o(() => {
|
|
@@ -26763,7 +26767,7 @@ var n4t = ["data-card-id", "aria-label"], r4t = { class: "nb-blueprint-card__por
|
|
|
26763
26767
|
width: e.width,
|
|
26764
26768
|
height: e.height,
|
|
26765
26769
|
rx: "8"
|
|
26766
|
-
}, null, 8,
|
|
26770
|
+
}, null, 8, F4t), d.value ? (E(), l("g", I4t, [(E(!0), l(n, null, j(p.value, (e) => (E(), l("rect", {
|
|
26767
26771
|
key: e.id,
|
|
26768
26772
|
class: "nb-blueprint-minimap__node",
|
|
26769
26773
|
x: e.x,
|
|
@@ -26772,17 +26776,17 @@ var n4t = ["data-card-id", "aria-label"], r4t = { class: "nb-blueprint-card__por
|
|
|
26772
26776
|
height: e.h,
|
|
26773
26777
|
fill: e.color,
|
|
26774
26778
|
rx: "1.5"
|
|
26775
|
-
}, null, 8,
|
|
26779
|
+
}, null, 8, L4t))), 128)), u("rect", {
|
|
26776
26780
|
class: "nb-blueprint-minimap__viewport",
|
|
26777
26781
|
x: m.value.x,
|
|
26778
26782
|
y: m.value.y,
|
|
26779
26783
|
width: m.value.w,
|
|
26780
26784
|
height: m.value.h,
|
|
26781
26785
|
rx: "2"
|
|
26782
|
-
}, null, 8,
|
|
26786
|
+
}, null, 8, R4t)])) : c("", !0)], 42, P4t));
|
|
26783
26787
|
}
|
|
26784
26788
|
}), [["__scopeId", "data-v-959b4274"]]), u9 = "nb:walkthrough:";
|
|
26785
|
-
function
|
|
26789
|
+
function V4t(e) {
|
|
26786
26790
|
return !!e && typeof e == "object" && typeof e.version == "number";
|
|
26787
26791
|
}
|
|
26788
26792
|
function d9(e = u9) {
|
|
@@ -26793,7 +26797,7 @@ function d9(e = u9) {
|
|
|
26793
26797
|
let n = window.localStorage.getItem(t(e));
|
|
26794
26798
|
if (!n) return null;
|
|
26795
26799
|
let r = JSON.parse(n);
|
|
26796
|
-
return
|
|
26800
|
+
return V4t(r) ? r : null;
|
|
26797
26801
|
} catch {
|
|
26798
26802
|
return null;
|
|
26799
26803
|
}
|
|
@@ -26823,13 +26827,13 @@ function p9() {
|
|
|
26823
26827
|
}
|
|
26824
26828
|
//#endregion
|
|
26825
26829
|
//#region src/composables/useWalkthrough.composable.ts
|
|
26826
|
-
var
|
|
26830
|
+
var H4t = {
|
|
26827
26831
|
id: "",
|
|
26828
26832
|
version: 1,
|
|
26829
26833
|
steps: []
|
|
26830
26834
|
};
|
|
26831
26835
|
function m9(e, t = {}) {
|
|
26832
|
-
let n = t.storage ?? p9(), r = o(() => R(e) ??
|
|
26836
|
+
let n = t.storage ?? p9(), r = o(() => R(e) ?? H4t), i = o(() => r.value.steps ?? []), a = o(() => i.value.length), s = A(!1), c = A(0), l = o(() => i.value[c.value]), u = o(() => c.value === 0), d = o(() => c.value >= Math.max(0, a.value - 1));
|
|
26833
26837
|
function f() {
|
|
26834
26838
|
let e = l.value;
|
|
26835
26839
|
e && t.onStepChange?.(e, c.value);
|
|
@@ -26906,13 +26910,13 @@ function m9(e, t = {}) {
|
|
|
26906
26910
|
//#endregion
|
|
26907
26911
|
//#region src/utils/tourTarget.helper.ts
|
|
26908
26912
|
var h9 = "data-nb-tour-step";
|
|
26909
|
-
function
|
|
26913
|
+
function U4t(e) {
|
|
26910
26914
|
return typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(e) : e.replace(/["\\]/g, "\\$&");
|
|
26911
26915
|
}
|
|
26912
26916
|
function g9(e) {
|
|
26913
|
-
return `[${h9}="${
|
|
26917
|
+
return `[${h9}="${U4t(e)}"]`;
|
|
26914
26918
|
}
|
|
26915
|
-
function
|
|
26919
|
+
function W4t(e) {
|
|
26916
26920
|
return !!e && typeof e == "object" && "value" in e;
|
|
26917
26921
|
}
|
|
26918
26922
|
function _9(e, t = typeof document < "u" ? document : void 0) {
|
|
@@ -26920,7 +26924,7 @@ function _9(e, t = typeof document < "u" ? document : void 0) {
|
|
|
26920
26924
|
if (typeof e == "function") return e() ?? null;
|
|
26921
26925
|
if (typeof e == "object") {
|
|
26922
26926
|
if (e instanceof HTMLElement) return e;
|
|
26923
|
-
if (
|
|
26927
|
+
if (W4t(e)) {
|
|
26924
26928
|
let t = e.value;
|
|
26925
26929
|
return t instanceof HTMLElement ? t : null;
|
|
26926
26930
|
}
|
|
@@ -26941,26 +26945,26 @@ function v9(e) {
|
|
|
26941
26945
|
}
|
|
26942
26946
|
//#endregion
|
|
26943
26947
|
//#region src/components/Walkthrough.vue?vue&type=script&setup=true&lang.ts
|
|
26944
|
-
var
|
|
26948
|
+
var G4t = ["viewBox"], K4t = ["width", "height"], q4t = [
|
|
26945
26949
|
"x",
|
|
26946
26950
|
"y",
|
|
26947
26951
|
"width",
|
|
26948
26952
|
"height",
|
|
26949
26953
|
"rx"
|
|
26950
|
-
],
|
|
26954
|
+
], J4t = [
|
|
26951
26955
|
"width",
|
|
26952
26956
|
"height",
|
|
26953
26957
|
"mask"
|
|
26954
|
-
],
|
|
26958
|
+
], Y4t = [
|
|
26955
26959
|
"x",
|
|
26956
26960
|
"y",
|
|
26957
26961
|
"width",
|
|
26958
26962
|
"height",
|
|
26959
26963
|
"rx"
|
|
26960
|
-
],
|
|
26964
|
+
], X4t = ["aria-label", "aria-labelledby"], Z4t = { class: "nb-walkthrough--footer" }, Q4t = {
|
|
26961
26965
|
class: "nb-walkthrough--progress",
|
|
26962
26966
|
"aria-live": "polite"
|
|
26963
|
-
},
|
|
26967
|
+
}, $4t = { class: "nb-walkthrough--actions" }, y9 = /* @__PURE__ */ X(/* @__PURE__ */ m({
|
|
26964
26968
|
__name: "Walkthrough",
|
|
26965
26969
|
props: {
|
|
26966
26970
|
walkthrough: { default: void 0 },
|
|
@@ -27156,7 +27160,7 @@ var U4t = ["viewBox"], W4t = ["width", "height"], G4t = [
|
|
|
27156
27160
|
width: j.value.width,
|
|
27157
27161
|
height: j.value.height,
|
|
27158
27162
|
fill: "white"
|
|
27159
|
-
}, null, 8,
|
|
27163
|
+
}, null, 8, K4t), K.value ? (E(), l("rect", {
|
|
27160
27164
|
key: 0,
|
|
27161
27165
|
x: K.value.left,
|
|
27162
27166
|
y: K.value.top,
|
|
@@ -27164,7 +27168,7 @@ var U4t = ["viewBox"], W4t = ["width", "height"], G4t = [
|
|
|
27164
27168
|
height: K.value.height,
|
|
27165
27169
|
rx: ee.value,
|
|
27166
27170
|
fill: "black"
|
|
27167
|
-
}, null, 8,
|
|
27171
|
+
}, null, 8, q4t)) : c("", !0)])]),
|
|
27168
27172
|
u("rect", {
|
|
27169
27173
|
class: "nb-walkthrough--scrim-fill",
|
|
27170
27174
|
x: "0",
|
|
@@ -27172,7 +27176,7 @@ var U4t = ["viewBox"], W4t = ["width", "height"], G4t = [
|
|
|
27172
27176
|
width: j.value.width,
|
|
27173
27177
|
height: j.value.height,
|
|
27174
27178
|
mask: `url(#${_})`
|
|
27175
|
-
}, null, 8,
|
|
27179
|
+
}, null, 8, J4t),
|
|
27176
27180
|
K.value ? (E(), l("rect", {
|
|
27177
27181
|
key: 0,
|
|
27178
27182
|
class: "nb-walkthrough--ring",
|
|
@@ -27181,8 +27185,8 @@ var U4t = ["viewBox"], W4t = ["width", "height"], G4t = [
|
|
|
27181
27185
|
width: K.value.width,
|
|
27182
27186
|
height: K.value.height,
|
|
27183
27187
|
rx: ee.value
|
|
27184
|
-
}, null, 8,
|
|
27185
|
-
], 8,
|
|
27188
|
+
}, null, 8, Y4t)) : c("", !0)
|
|
27189
|
+
], 8, G4t)), u("div", v({
|
|
27186
27190
|
ref_key: "popoverRef",
|
|
27187
27191
|
ref: D,
|
|
27188
27192
|
class: [
|
|
@@ -27217,14 +27221,14 @@ var U4t = ["viewBox"], W4t = ["width", "height"], G4t = [
|
|
|
27217
27221
|
index: H.value,
|
|
27218
27222
|
total: U.value
|
|
27219
27223
|
}, () => [d(I(V.value?.body), 1)], !0)]),
|
|
27220
|
-
u("div",
|
|
27224
|
+
u("div", Z4t, [u("p", Q4t, I(W.value.progress(H.value + 1, U.value)), 1), M(t.$slots, "actions", {
|
|
27221
27225
|
step: V.value,
|
|
27222
27226
|
index: H.value,
|
|
27223
27227
|
total: U.value,
|
|
27224
27228
|
back: de,
|
|
27225
27229
|
next: ue,
|
|
27226
27230
|
skip: pe
|
|
27227
|
-
}, () => [u("div",
|
|
27231
|
+
}, () => [u("div", $4t, [
|
|
27228
27232
|
z(h).isLast.value ? c("", !0) : (E(), s($3, {
|
|
27229
27233
|
key: 0,
|
|
27230
27234
|
variant: "ghost",
|
|
@@ -27253,9 +27257,9 @@ var U4t = ["viewBox"], W4t = ["width", "height"], G4t = [
|
|
|
27253
27257
|
_: 1
|
|
27254
27258
|
})
|
|
27255
27259
|
])], !0)])
|
|
27256
|
-
], 16,
|
|
27260
|
+
], 16, X4t)], 2)) : c("", !0)], 8, ["to"]));
|
|
27257
27261
|
}
|
|
27258
|
-
}), [["__scopeId", "data-v-902c67c9"]]),
|
|
27262
|
+
}), [["__scopeId", "data-v-902c67c9"]]), e3t = {
|
|
27259
27263
|
NbAccordion: se,
|
|
27260
27264
|
NbAccordionItem: x3,
|
|
27261
27265
|
NbAiLabel: hKt,
|
|
@@ -27332,12 +27336,12 @@ var U4t = ["viewBox"], W4t = ["width", "height"], G4t = [
|
|
|
27332
27336
|
NbBlueprintControls: s9,
|
|
27333
27337
|
NbBlueprintMinimap: l9,
|
|
27334
27338
|
NbWalkthrough: y9
|
|
27335
|
-
},
|
|
27336
|
-
Object.entries(
|
|
27339
|
+
}, t3t = { install(e) {
|
|
27340
|
+
Object.entries(e3t).forEach(([t, n]) => {
|
|
27337
27341
|
e.component(t, n);
|
|
27338
27342
|
});
|
|
27339
|
-
} },
|
|
27340
|
-
function
|
|
27343
|
+
} }, n3t = /* @__PURE__ */ ie({ default: () => r3t });
|
|
27344
|
+
function r3t(e) {
|
|
27341
27345
|
e.directive("nb-context-menu", {
|
|
27342
27346
|
mounted(e, t) {
|
|
27343
27347
|
let n = (e) => {
|
|
@@ -27372,7 +27376,7 @@ function b9(e) {
|
|
|
27372
27376
|
}
|
|
27373
27377
|
//#endregion
|
|
27374
27378
|
//#region src/directives/ToolTip.directive.ts
|
|
27375
|
-
var
|
|
27379
|
+
var i3t = /* @__PURE__ */ ie({
|
|
27376
27380
|
default: () => k9,
|
|
27377
27381
|
dismissAllTooltips: () => F9
|
|
27378
27382
|
}), x9 = /* @__PURE__ */ new Set(), S9 = (e) => {
|
|
@@ -27380,14 +27384,14 @@ var n3t = /* @__PURE__ */ ie({
|
|
|
27380
27384
|
if (!e || typeof e != "object" || !e.component) return "";
|
|
27381
27385
|
let { component: t, props: n = {}, children: r, content: i } = e, a = r === void 0 ? i : r, o = Object.entries(n).map(([e, t]) => `${e}="${b9(String(t))}"`).join(" "), s = Array.isArray(a) ? S9(a) : a === void 0 ? "" : b9(String(a));
|
|
27382
27386
|
return `<${t}${o ? ` ${o}` : ""}>${s}</${t}>`;
|
|
27383
|
-
}, C9 = (e) => e ? typeof e == "string" ? b9(e) : Array.isArray(e) ? S9(e) : "" : "", w9 = !1,
|
|
27387
|
+
}, C9 = (e) => e ? typeof e == "string" ? b9(e) : Array.isArray(e) ? S9(e) : "" : "", w9 = !1, a3t = () => {
|
|
27384
27388
|
if (w9 || typeof document > "u") return;
|
|
27385
27389
|
w9 = !0;
|
|
27386
27390
|
let e = () => {
|
|
27387
27391
|
x9.size !== 0 && F9();
|
|
27388
27392
|
};
|
|
27389
27393
|
document.addEventListener("pointerdown", e, !0), window.addEventListener("blur", e), document.addEventListener("mouseleave", e);
|
|
27390
|
-
}, T9 = 200, E9 = 1e3,
|
|
27394
|
+
}, T9 = 200, E9 = 1e3, o3t = 2, s3t = (e) => {
|
|
27391
27395
|
if (!e.isConnected) return !1;
|
|
27392
27396
|
try {
|
|
27393
27397
|
return e.matches(":hover");
|
|
@@ -27396,22 +27400,22 @@ var n3t = /* @__PURE__ */ ie({
|
|
|
27396
27400
|
}
|
|
27397
27401
|
}, D9 = (e) => {
|
|
27398
27402
|
clearTimeout(e.__watchdogTimer__), e.__watchdogTimer__ = void 0, e.__watchdogMisses__ = 0;
|
|
27399
|
-
},
|
|
27403
|
+
}, c3t = (e) => {
|
|
27400
27404
|
D9(e);
|
|
27401
27405
|
let t = () => {
|
|
27402
27406
|
if (!e.__chips__?.size) {
|
|
27403
27407
|
D9(e);
|
|
27404
27408
|
return;
|
|
27405
27409
|
}
|
|
27406
|
-
if (
|
|
27407
|
-
else if (e.__watchdogMisses__ = (e.__watchdogMisses__ ?? 0) + 1, !e.isConnected || e.__watchdogMisses__ >=
|
|
27410
|
+
if (s3t(e)) e.__watchdogMisses__ = 0;
|
|
27411
|
+
else if (e.__watchdogMisses__ = (e.__watchdogMisses__ ?? 0) + 1, !e.isConnected || e.__watchdogMisses__ >= o3t) {
|
|
27408
27412
|
M9(e, !e.isConnected);
|
|
27409
27413
|
return;
|
|
27410
27414
|
}
|
|
27411
27415
|
e.__watchdogTimer__ = setTimeout(t, E9);
|
|
27412
27416
|
};
|
|
27413
27417
|
e.__watchdogTimer__ = setTimeout(t, E9);
|
|
27414
|
-
},
|
|
27418
|
+
}, l3t = (e, t, n) => {
|
|
27415
27419
|
if (e.__chips__?.delete(t), clearTimeout(t.__removeTimer__), t.__removeTimer__ = void 0, n) {
|
|
27416
27420
|
t.remove();
|
|
27417
27421
|
return;
|
|
@@ -27420,17 +27424,17 @@ var n3t = /* @__PURE__ */ ie({
|
|
|
27420
27424
|
t.__removeTimer__ = void 0, t.remove();
|
|
27421
27425
|
}, T9);
|
|
27422
27426
|
}, O9 = (e, t) => {
|
|
27423
|
-
if (e.__chips__) for (let n of Array.from(e.__chips__))
|
|
27427
|
+
if (e.__chips__) for (let n of Array.from(e.__chips__)) l3t(e, n, t);
|
|
27424
27428
|
e.tooltipElement = void 0, e.__lastContent__ = void 0, D9(e);
|
|
27425
27429
|
}, k9 = (e) => {
|
|
27426
|
-
|
|
27430
|
+
a3t();
|
|
27427
27431
|
let t = e.config.globalProperties.$router;
|
|
27428
27432
|
t && t.beforeEach(() => {
|
|
27429
27433
|
x9.forEach((e) => e?.__hideTooltip__?.(0)), x9.clear();
|
|
27430
27434
|
}), e.directive("nb-tooltip", {
|
|
27431
27435
|
mounted(e, t) {
|
|
27432
27436
|
e.__showTooltip__ = () => {
|
|
27433
|
-
clearTimeout(e.__hideTimer__), e.__hideTimer__ = void 0, e.__tooltipBinding__ &&
|
|
27437
|
+
clearTimeout(e.__hideTimer__), e.__hideTimer__ = void 0, e.__tooltipBinding__ && u3t(e, e.__tooltipBinding__);
|
|
27434
27438
|
}, e.__hideTooltip__ = (t = 150) => {
|
|
27435
27439
|
clearTimeout(e.__hideTimer__), e.__hideTimer__ = setTimeout(() => {
|
|
27436
27440
|
e.__hideTimer__ = void 0, M9(e, t <= 0);
|
|
@@ -27447,13 +27451,13 @@ var n3t = /* @__PURE__ */ ie({
|
|
|
27447
27451
|
}
|
|
27448
27452
|
if (!e.tooltipElement || n === t.value) return;
|
|
27449
27453
|
let r = j9(t.value);
|
|
27450
|
-
r !== e.__lastContent__ && (e.__lastContent__ = r,
|
|
27454
|
+
r !== e.__lastContent__ && (e.__lastContent__ = r, d3t(e, t.value));
|
|
27451
27455
|
},
|
|
27452
27456
|
unmounted(e) {
|
|
27453
27457
|
clearTimeout(e.__showTimer__), e.__showTimer__ = void 0, clearTimeout(e.__hideTimer__), e.__hideTimer__ = void 0, M9(e, !0), x9.delete(e), e.__showHandler__ && e.removeEventListener("mouseenter", e.__showHandler__), e.__hideHandler__ && e.removeEventListener("mouseleave", e.__hideHandler__), e.__mouseMove__ && e.removeEventListener("mousemove", e.__mouseMove__), e.__hideHandler__ && window.removeEventListener("scroll", e.__hideHandler__);
|
|
27454
27458
|
}
|
|
27455
27459
|
});
|
|
27456
|
-
}, A9 = ({ header: e = "", body: t = "", tip: n = "" }) => `<div class="nb-tooltip-content"><div class="nb-tooltip-header">${C9(e)}</div><div class="nb-tooltip-body">${C9(t)}</div><div class="nb-tooltip-tip">${C9(n)}</div></div>`, j9 = (e) => `${e.position ?? ""}|${e.flavor ?? ""}|${A9(e)}`,
|
|
27460
|
+
}, A9 = ({ header: e = "", body: t = "", tip: n = "" }) => `<div class="nb-tooltip-content"><div class="nb-tooltip-header">${C9(e)}</div><div class="nb-tooltip-body">${C9(t)}</div><div class="nb-tooltip-tip">${C9(n)}</div></div>`, j9 = (e) => `${e.position ?? ""}|${e.flavor ?? ""}|${A9(e)}`, u3t = (e, t) => {
|
|
27457
27461
|
let { header: n, body: r, tip: i, flavor: a = "default", delay: o = 400, animationTime: s = 300, position: c, overflowOnly: l, classExtra: u } = t;
|
|
27458
27462
|
if (clearTimeout(e.__showTimer__), e.__showTimer__ = void 0, O9(e, !0), l) {
|
|
27459
27463
|
let t = e.getBoundingClientRect();
|
|
@@ -27466,11 +27470,11 @@ var n3t = /* @__PURE__ */ ie({
|
|
|
27466
27470
|
header: n,
|
|
27467
27471
|
body: r,
|
|
27468
27472
|
tip: i
|
|
27469
|
-
}), o.style.animation = `tooltipAppear ${s}ms ease-in-out forwards`, e.tooltipElement = o, (e.__chips__ ??= /* @__PURE__ */ new Set()).add(o), e.__lastContent__ = j9(t), x9.add(e), document.body.appendChild(o), P9(e, o, c),
|
|
27473
|
+
}), o.style.animation = `tooltipAppear ${s}ms ease-in-out forwards`, e.tooltipElement = o, (e.__chips__ ??= /* @__PURE__ */ new Set()).add(o), e.__lastContent__ = j9(t), x9.add(e), document.body.appendChild(o), P9(e, o, c), c3t(e);
|
|
27470
27474
|
}, o));
|
|
27471
27475
|
}, M9 = (e, t = !1) => {
|
|
27472
27476
|
clearTimeout(e.__showTimer__), e.__showTimer__ = void 0, O9(e, t), x9.delete(e);
|
|
27473
|
-
},
|
|
27477
|
+
}, d3t = (e, { header: t, body: n, tip: r, position: i }) => {
|
|
27474
27478
|
let a = e.tooltipElement;
|
|
27475
27479
|
a && (a.innerHTML = A9({
|
|
27476
27480
|
header: t,
|
|
@@ -27478,7 +27482,7 @@ var n3t = /* @__PURE__ */ ie({
|
|
|
27478
27482
|
tip: r
|
|
27479
27483
|
}), P9(e, a, i));
|
|
27480
27484
|
};
|
|
27481
|
-
function
|
|
27485
|
+
function f3t(e, t, n, r, i, a, o, s, c) {
|
|
27482
27486
|
switch (e) {
|
|
27483
27487
|
case "top": return {
|
|
27484
27488
|
top: t.top - (r + i * 2) - a,
|
|
@@ -27505,7 +27509,7 @@ function u3t(e, t, n, r, i, a, o, s, c) {
|
|
|
27505
27509
|
function N9(e, t, n, r, i) {
|
|
27506
27510
|
return t >= i && e >= i && t + n <= window.innerWidth - i && e + r <= window.innerHeight - i;
|
|
27507
27511
|
}
|
|
27508
|
-
var
|
|
27512
|
+
var p3t = {
|
|
27509
27513
|
top: [
|
|
27510
27514
|
"bottom",
|
|
27511
27515
|
"right",
|
|
@@ -27529,8 +27533,8 @@ var d3t = {
|
|
|
27529
27533
|
cursor: []
|
|
27530
27534
|
}, P9 = (e, t, n) => {
|
|
27531
27535
|
if (!t) return;
|
|
27532
|
-
let r = e.getBoundingClientRect(), i = t.getBoundingClientRect(), a = i.width || 0, o = i.height || 0, s = e.scrollTop, c = e.scrollLeft, l = e.__mouseX__ ?? 0, u = e.__mouseY__ ?? 0, d = n ?? "cursor", f = (e) =>
|
|
27533
|
-
if (a > 0 && o > 0 && !N9(p.top, p.left, a, o, 16)) for (let e of
|
|
27536
|
+
let r = e.getBoundingClientRect(), i = t.getBoundingClientRect(), a = i.width || 0, o = i.height || 0, s = e.scrollTop, c = e.scrollLeft, l = e.__mouseX__ ?? 0, u = e.__mouseY__ ?? 0, d = n ?? "cursor", f = (e) => f3t(e, r, a, o, 4, s, c, l, u), p = f(d), m = d;
|
|
27537
|
+
if (a > 0 && o > 0 && !N9(p.top, p.left, a, o, 16)) for (let e of p3t[d]) {
|
|
27534
27538
|
let t = f(e);
|
|
27535
27539
|
if (N9(t.top, t.left, a, o, 16)) {
|
|
27536
27540
|
p = t, m = e;
|
|
@@ -27569,7 +27573,7 @@ function F9() {
|
|
|
27569
27573
|
}
|
|
27570
27574
|
//#endregion
|
|
27571
27575
|
//#region src/directives/TourStep.directive.ts
|
|
27572
|
-
var
|
|
27576
|
+
var m3t = /* @__PURE__ */ ie({ default: () => L9 });
|
|
27573
27577
|
function I9(e, t) {
|
|
27574
27578
|
let n = t.value;
|
|
27575
27579
|
if (n == null || n === "") {
|
|
@@ -27586,12 +27590,12 @@ var L9 = (e) => {
|
|
|
27586
27590
|
e.removeAttribute(h9);
|
|
27587
27591
|
}
|
|
27588
27592
|
});
|
|
27589
|
-
},
|
|
27590
|
-
"./ContextMenu.directive.ts":
|
|
27591
|
-
"./ToolTip.directive.ts":
|
|
27592
|
-
"./TourStep.directive.ts":
|
|
27593
|
-
}),
|
|
27594
|
-
Object.values(
|
|
27593
|
+
}, h3t = /* @__PURE__ */ Object.assign({
|
|
27594
|
+
"./ContextMenu.directive.ts": n3t,
|
|
27595
|
+
"./ToolTip.directive.ts": i3t,
|
|
27596
|
+
"./TourStep.directive.ts": m3t
|
|
27597
|
+
}), g3t = { install(e) {
|
|
27598
|
+
Object.values(h3t).forEach((t) => {
|
|
27595
27599
|
typeof t.default == "function" && t.default(e);
|
|
27596
27600
|
});
|
|
27597
27601
|
} }, R9 = { install(e) {
|
|
@@ -27600,7 +27604,7 @@ var L9 = (e) => {
|
|
|
27600
27604
|
} };
|
|
27601
27605
|
//#endregion
|
|
27602
27606
|
//#region src/composables/useContextMenu.composable.ts
|
|
27603
|
-
function
|
|
27607
|
+
function _3t() {
|
|
27604
27608
|
let e = A(!1), t = A({
|
|
27605
27609
|
x: 0,
|
|
27606
27610
|
y: 0
|
|
@@ -27635,49 +27639,49 @@ var z9 = {
|
|
|
27635
27639
|
defaultTheme: "system",
|
|
27636
27640
|
darkClass: "dark"
|
|
27637
27641
|
}, B9 = "(prefers-color-scheme: dark)", V9 = { ...z9 }, H9 = !1, U9 = null, W9 = A(z9.defaultTheme), G9 = A("light");
|
|
27638
|
-
function
|
|
27642
|
+
function v3t(e) {
|
|
27639
27643
|
return e === "light" || e === "dark" || e === "system";
|
|
27640
27644
|
}
|
|
27641
|
-
function
|
|
27645
|
+
function y3t() {
|
|
27642
27646
|
try {
|
|
27643
27647
|
if (typeof localStorage > "u") return null;
|
|
27644
27648
|
let e = localStorage.getItem(V9.storageKey);
|
|
27645
|
-
return
|
|
27649
|
+
return v3t(e) ? e : null;
|
|
27646
27650
|
} catch {
|
|
27647
27651
|
return null;
|
|
27648
27652
|
}
|
|
27649
27653
|
}
|
|
27650
|
-
function
|
|
27654
|
+
function b3t(e) {
|
|
27651
27655
|
try {
|
|
27652
27656
|
if (typeof localStorage > "u") return;
|
|
27653
27657
|
localStorage.setItem(V9.storageKey, e);
|
|
27654
27658
|
} catch {}
|
|
27655
27659
|
}
|
|
27656
|
-
function
|
|
27660
|
+
function x3t() {
|
|
27657
27661
|
return typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia(B9).matches;
|
|
27658
27662
|
}
|
|
27659
27663
|
function K9() {
|
|
27660
|
-
let e = W9.value === "dark" || W9.value === "system" &&
|
|
27664
|
+
let e = W9.value === "dark" || W9.value === "system" && x3t();
|
|
27661
27665
|
G9.value = e ? "dark" : "light", !(typeof document > "u") && (document.documentElement.classList.toggle(V9.darkClass, e), document.documentElement.style.colorScheme = G9.value);
|
|
27662
27666
|
}
|
|
27663
|
-
function
|
|
27667
|
+
function S3t() {
|
|
27664
27668
|
if (U9?.(), U9 = null, typeof window > "u" || typeof window.matchMedia != "function") return;
|
|
27665
27669
|
let e = window.matchMedia(B9), t = () => K9();
|
|
27666
27670
|
typeof e.addEventListener == "function" ? (e.addEventListener("change", t), U9 = () => e.removeEventListener("change", t)) : typeof e.addListener == "function" && (e.addListener(t), U9 = () => e.removeListener(t));
|
|
27667
27671
|
}
|
|
27668
27672
|
var q9 = null;
|
|
27669
27673
|
function J9() {
|
|
27670
|
-
W9.value =
|
|
27671
|
-
|
|
27674
|
+
W9.value = y3t() ?? V9.defaultTheme, K9(), S3t(), q9?.(), q9 = q(W9, (e) => {
|
|
27675
|
+
b3t(e), K9();
|
|
27672
27676
|
}), H9 = !0;
|
|
27673
27677
|
}
|
|
27674
|
-
function
|
|
27678
|
+
function C3t(e = {}) {
|
|
27675
27679
|
V9 = {
|
|
27676
27680
|
...V9,
|
|
27677
27681
|
...e
|
|
27678
27682
|
}, J9();
|
|
27679
27683
|
}
|
|
27680
|
-
function
|
|
27684
|
+
function w3t() {
|
|
27681
27685
|
return H9 || J9(), {
|
|
27682
27686
|
theme: k(W9),
|
|
27683
27687
|
resolved: k(G9),
|
|
@@ -27692,21 +27696,21 @@ function S3t() {
|
|
|
27692
27696
|
}
|
|
27693
27697
|
//#endregion
|
|
27694
27698
|
//#region src/components/labs/Spreadsheet.vue?vue&type=script&setup=true&lang.ts
|
|
27695
|
-
var
|
|
27699
|
+
var T3t = {
|
|
27696
27700
|
key: 0,
|
|
27697
27701
|
class: "nb-spreadsheet__toolbar"
|
|
27698
|
-
},
|
|
27702
|
+
}, E3t = {
|
|
27699
27703
|
key: 0,
|
|
27700
27704
|
class: "nb-spreadsheet__corner",
|
|
27701
27705
|
style: {
|
|
27702
27706
|
gridRow: 1,
|
|
27703
27707
|
gridColumn: 1
|
|
27704
27708
|
}
|
|
27705
|
-
},
|
|
27709
|
+
}, D3t = ["onClick"], O3t = { class: "nb-spreadsheet__header-label" }, k3t = {
|
|
27706
27710
|
key: 0,
|
|
27707
27711
|
class: "nb-spreadsheet__sort",
|
|
27708
27712
|
"aria-hidden": "true"
|
|
27709
|
-
},
|
|
27713
|
+
}, A3t = ["onMousedown"], j3t = [
|
|
27710
27714
|
"title",
|
|
27711
27715
|
"data-cell",
|
|
27712
27716
|
"data-row",
|
|
@@ -27714,7 +27718,7 @@ var C3t = {
|
|
|
27714
27718
|
"onMousedown",
|
|
27715
27719
|
"onMouseenter",
|
|
27716
27720
|
"onDblclick"
|
|
27717
|
-
],
|
|
27721
|
+
], M3t = ["inputmode"], Y9 = 44, X9 = 32, Z9 = 28, N3t = /* @__PURE__ */ m({
|
|
27718
27722
|
__name: "Spreadsheet",
|
|
27719
27723
|
props: {
|
|
27720
27724
|
columns: {},
|
|
@@ -28201,7 +28205,7 @@ var C3t = {
|
|
|
28201
28205
|
undo: De,
|
|
28202
28206
|
redo: Oe,
|
|
28203
28207
|
getSelection: () => h.value
|
|
28204
|
-
}), (t, r) => (E(), l("div", { class: b(["nb-spreadsheet", { "nb-spreadsheet--editing": !!_.value }]) }, [t.$slots.toolbar ? (E(), l("div",
|
|
28208
|
+
}), (t, r) => (E(), l("div", { class: b(["nb-spreadsheet", { "nb-spreadsheet--editing": !!_.value }]) }, [t.$slots.toolbar ? (E(), l("div", T3t, [M(t.$slots, "toolbar", {}, void 0, !0)])) : c("", !0), u("div", {
|
|
28205
28209
|
ref_key: "scrollerRef",
|
|
28206
28210
|
ref: s,
|
|
28207
28211
|
class: "nb-spreadsheet__scroller",
|
|
@@ -28215,21 +28219,21 @@ var C3t = {
|
|
|
28215
28219
|
class: "nb-spreadsheet__grid",
|
|
28216
28220
|
style: x(O.value)
|
|
28217
28221
|
}, [
|
|
28218
|
-
e.showGutter ? (E(), l("div",
|
|
28222
|
+
e.showGutter ? (E(), l("div", E3t)) : c("", !0),
|
|
28219
28223
|
(E(!0), l(n, null, j(T.value, (t, n) => (E(), l("div", {
|
|
28220
28224
|
key: `h-${t.id}`,
|
|
28221
28225
|
class: b(["nb-spreadsheet__header", ee(t)]),
|
|
28222
28226
|
style: x(ne(t, n)),
|
|
28223
28227
|
onClick: (e) => Te(t)
|
|
28224
28228
|
}, [
|
|
28225
|
-
u("span",
|
|
28226
|
-
p.value && p.value.columnId === t.id ? (E(), l("span",
|
|
28229
|
+
u("span", O3t, I(t.label), 1),
|
|
28230
|
+
p.value && p.value.columnId === t.id ? (E(), l("span", k3t, I(p.value.direction === "asc" ? "▲" : "▼"), 1)) : c("", !0),
|
|
28227
28231
|
e.resizable ? (E(), l("span", {
|
|
28228
28232
|
key: 1,
|
|
28229
28233
|
class: "nb-spreadsheet__resize-handle",
|
|
28230
28234
|
onMousedown: Y((e) => we(e, t), ["stop"])
|
|
28231
|
-
}, null, 40,
|
|
28232
|
-
], 14,
|
|
28235
|
+
}, null, 40, A3t)) : c("", !0)
|
|
28236
|
+
], 14, D3t))), 128)),
|
|
28233
28237
|
(E(!0), l(n, null, j(F.value, (t, r) => (E(), l(n, { key: `r-${t.id}` }, [e.showGutter ? (E(), l("div", {
|
|
28234
28238
|
key: 0,
|
|
28235
28239
|
class: b(["nb-spreadsheet__gutter", {
|
|
@@ -28248,7 +28252,7 @@ var C3t = {
|
|
|
28248
28252
|
onMousedown: (n) => X(n, t, e),
|
|
28249
28253
|
onMouseenter: (n) => se(t, e),
|
|
28250
28254
|
onDblclick: (n) => le(t, e)
|
|
28251
|
-
}, [u("span", null, I(V(t, e)), 1)], 46,
|
|
28255
|
+
}, [u("span", null, I(V(t, e)), 1)], 46, j3t))), 128))], 64))), 128))
|
|
28252
28256
|
], 4), _.value ? te((E(), l("input", {
|
|
28253
28257
|
key: 0,
|
|
28254
28258
|
ref_key: "editorRef",
|
|
@@ -28259,15 +28263,15 @@ var C3t = {
|
|
|
28259
28263
|
inputmode: he.value,
|
|
28260
28264
|
onBlur: r[1] ||= (e) => ve(!0),
|
|
28261
28265
|
onKeydown: Y(_e, ["stop"])
|
|
28262
|
-
}, null, 44,
|
|
28266
|
+
}, null, 44, M3t)), [[K, _.value.draft]]) : c("", !0)], 544)], 2));
|
|
28263
28267
|
}
|
|
28264
|
-
}),
|
|
28268
|
+
}), P3t = /* @__PURE__ */ ie({ default: () => Q9 }), Q9 = /* @__PURE__ */ X(N3t, [["__scopeId", "data-v-df859a7e"]]), $9 = /* @__PURE__ */ Object.assign({ "./components/labs/Spreadsheet.vue": P3t }), F3t = { install(e) {
|
|
28265
28269
|
Object.keys($9).forEach((t) => {
|
|
28266
28270
|
let n = `Nb${t.replace(/(.+\/)(\w+)(\.vue)$/, "$2")}`, r = $9[t];
|
|
28267
28271
|
e.component(n, r.default);
|
|
28268
28272
|
});
|
|
28269
|
-
} },
|
|
28270
|
-
e.use(
|
|
28273
|
+
} }, I3t = { install(e) {
|
|
28274
|
+
e.use(t3t), e.use(g3t), e.use(R9);
|
|
28271
28275
|
} };
|
|
28272
28276
|
//#endregion
|
|
28273
|
-
export { Y7 as BlueprintLiveData, D3 as EBannerStatus, O3 as EBannerVariant, q7 as NB_BLUEPRINT_CONTEXT, J7 as NB_BLUEPRINT_CONTROLLER, U3 as NB_LAYER_ATTRIBUTE, W3 as NB_LAYER_INJECTION_KEY, JKt as NB_MAX_LAYER, qKt as NB_MIN_LAYER, se as NbAccordion, x3 as NbAccordionItem, E3 as NbBadge, k3 as NbBanner, H3 as NbBarChart, t9 as NbBlueprint, r9 as NbBlueprintBackground, o9 as NbBlueprintCard, s9 as NbBlueprintControls, l9 as NbBlueprintMinimap, Y3 as NbBoard, G7 as NbBottomPanel, X3 as NbBreadcrumbs, $3 as NbButton, e6 as NbCalendar, t6 as NbCard, n6 as NbCardGrid, u6 as NbCheckbox, f6 as NbCheckboxGroup, p6 as NbColorStrip, a7 as NbCommandPalette, R9 as NbCommandPalettePlugin, m6 as NbDataTable, c6 as NbDatePicker, h6 as NbDefinitionList, g6 as NbDefinitionListItem, _6 as NbEmptyState, Z5 as NbField, w6 as NbFlag, C6 as NbGanttChart, s6 as NbGrid, Z as NbIcon, A6 as NbInfoHint, M6 as NbInterpolationChart, Y5 as NbJsonTree, i6 as NbLabel, u7 as NbLayer, X5 as NbLineChart, Q5 as NbMenu, $5 as NbMenuBar, e7 as NbMenuBarItem, n7 as NbMenuDivider, t7 as NbMenuItem, o6 as NbMessage, c7 as NbModal, o7 as NbNubiscoMark, s7 as NbNubiscoPlatformMark, l7 as NbNumberInput, y6 as NbPagination, d7 as NbPanel, f7 as NbPieChart, h7 as NbProgressBar, _7 as NbRadio, v7 as NbReorderList, v6 as NbSelect, S7 as NbShell, K7 as NbShellPanel, C7 as NbSidebarBrand, w7 as NbSidebarLink, T7 as NbSidebarMenu, E7 as NbSidebarMenuGroup, D7 as NbSidebarMenuItem, O7 as NbSlider, j7 as NbSparkline, Q9 as NbSpreadsheet, r7 as NbSubmenu, P7 as NbSwitch, L7 as NbTabs, R7 as NbTextInput, z7 as NbToast, H7 as NbTree, U7 as NbTreeNode, W7 as NbUserMenu, y9 as NbWalkthrough,
|
|
28277
|
+
export { Y7 as BlueprintLiveData, D3 as EBannerStatus, O3 as EBannerVariant, q7 as NB_BLUEPRINT_CONTEXT, J7 as NB_BLUEPRINT_CONTROLLER, U3 as NB_LAYER_ATTRIBUTE, W3 as NB_LAYER_INJECTION_KEY, JKt as NB_MAX_LAYER, qKt as NB_MIN_LAYER, se as NbAccordion, x3 as NbAccordionItem, E3 as NbBadge, k3 as NbBanner, H3 as NbBarChart, t9 as NbBlueprint, r9 as NbBlueprintBackground, o9 as NbBlueprintCard, s9 as NbBlueprintControls, l9 as NbBlueprintMinimap, Y3 as NbBoard, G7 as NbBottomPanel, X3 as NbBreadcrumbs, $3 as NbButton, e6 as NbCalendar, t6 as NbCard, n6 as NbCardGrid, u6 as NbCheckbox, f6 as NbCheckboxGroup, p6 as NbColorStrip, a7 as NbCommandPalette, R9 as NbCommandPalettePlugin, m6 as NbDataTable, c6 as NbDatePicker, h6 as NbDefinitionList, g6 as NbDefinitionListItem, _6 as NbEmptyState, Z5 as NbField, w6 as NbFlag, C6 as NbGanttChart, s6 as NbGrid, Z as NbIcon, A6 as NbInfoHint, M6 as NbInterpolationChart, Y5 as NbJsonTree, i6 as NbLabel, u7 as NbLayer, X5 as NbLineChart, Q5 as NbMenu, $5 as NbMenuBar, e7 as NbMenuBarItem, n7 as NbMenuDivider, t7 as NbMenuItem, o6 as NbMessage, c7 as NbModal, o7 as NbNubiscoMark, s7 as NbNubiscoPlatformMark, l7 as NbNumberInput, y6 as NbPagination, d7 as NbPanel, f7 as NbPieChart, h7 as NbProgressBar, _7 as NbRadio, v7 as NbReorderList, v6 as NbSelect, S7 as NbShell, K7 as NbShellPanel, C7 as NbSidebarBrand, w7 as NbSidebarLink, T7 as NbSidebarMenu, E7 as NbSidebarMenuGroup, D7 as NbSidebarMenuItem, O7 as NbSlider, j7 as NbSparkline, Q9 as NbSpreadsheet, r7 as NbSubmenu, P7 as NbSwitch, L7 as NbTabs, R7 as NbTextInput, z7 as NbToast, H7 as NbTree, U7 as NbTreeNode, W7 as NbUserMenu, y9 as NbWalkthrough, F3t as NubiscoUILabs, h9 as TOUR_STEP_ATTRIBUTE, u9 as WALKTHROUGH_STORAGE_PREFIX, G3 as clampLayer, X7 as computeAutoLayout, C3t as configureTheme, p9 as createDefaultWalkthroughStorage, d9 as createLocalStorageWalkthroughStorage, f9 as createMemoryWalkthroughStorage, I3t as default, F9 as dismissAllTooltips, v9 as isTargetVisible, K3 as layerClassFor, k9 as nbTooltipDirective, L9 as nbTourStepDirective, t4t as prefersReducedMotion, q3 as probeLayerFromDom, iKt as registerIcons, _9 as resolveTourTarget, g9 as tourStepSelector, aKt as unregisterIcon, n9 as useBlueprint, u$t as useCommandPalette, _3t as useContextMenu, ZKt as useLayer, a9 as useReducedMotion, J3 as useSurfaceLayer, w3t as useTheme, m9 as useWalkthrough };
|