@nubisco/ui 3.0.0 → 3.0.2
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/components/Button.vue.d.ts.map +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.mjs +154 -158
- package/dist/ui.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -13074,7 +13074,7 @@ var eqt = {
|
|
|
13074
13074
|
"type"
|
|
13075
13075
|
]));
|
|
13076
13076
|
}
|
|
13077
|
-
}), [["__scopeId", "data-v-
|
|
13077
|
+
}), [["__scopeId", "data-v-10a7b994"]]), nqt = { class: "nb-calendar__header" }, rqt = { class: "nb-calendar__title" }, iqt = { class: "nb-calendar__weekdays" }, aqt = { class: "nb-calendar__grid" }, oqt = ["onClick"], sqt = { class: "nb-calendar__day-num" }, cqt = { class: "nb-calendar__events" }, lqt = ["title", "onClick"], uqt = { class: "nb-calendar__event-label" }, o6 = /* @__PURE__ */ m({
|
|
13078
13078
|
__name: "Calendar",
|
|
13079
13079
|
props: {
|
|
13080
13080
|
events: { default: () => [] },
|
|
@@ -25508,43 +25508,47 @@ function g2t() {
|
|
|
25508
25508
|
//#endregion
|
|
25509
25509
|
//#region src/components/BlueprintCard.vue?vue&type=script&setup=true&lang.ts
|
|
25510
25510
|
var _2t = ["data-card-id", "aria-label"], v2t = { class: "nb-blueprint-card__ports nb-blueprint-card__ports--left" }, y2t = ["title"], b2t = [
|
|
25511
|
+
"data-port",
|
|
25512
|
+
"data-port-data-type",
|
|
25511
25513
|
"title",
|
|
25512
25514
|
"aria-label",
|
|
25513
25515
|
"onMousedown",
|
|
25514
25516
|
"onMouseup",
|
|
25515
25517
|
"onKeydown"
|
|
25516
|
-
], x2t =
|
|
25518
|
+
], x2t = {
|
|
25517
25519
|
key: 0,
|
|
25518
25520
|
class: "nb-blueprint-card__port-label"
|
|
25519
|
-
},
|
|
25521
|
+
}, S2t = { class: "nb-blueprint-card__inner" }, C2t = { class: "nb-blueprint-card__body" }, w2t = { class: "nb-blueprint-card__header" }, T2t = [
|
|
25520
25522
|
"title",
|
|
25521
25523
|
"aria-label",
|
|
25522
25524
|
"aria-expanded"
|
|
25523
|
-
],
|
|
25525
|
+
], E2t = { class: "nb-blueprint-card__title-group" }, D2t = { class: "nb-blueprint-card__name" }, O2t = {
|
|
25524
25526
|
key: 0,
|
|
25525
25527
|
class: "nb-blueprint-card__tag"
|
|
25526
|
-
},
|
|
25528
|
+
}, k2t = ["aria-label"], A2t = ["checked", "aria-label"], j2t = ["aria-label"], M2t = {
|
|
25527
25529
|
key: 0,
|
|
25528
25530
|
class: "nb-blueprint-card__preview"
|
|
25529
|
-
},
|
|
25531
|
+
}, N2t = {
|
|
25530
25532
|
key: 1,
|
|
25531
25533
|
class: "nb-blueprint-card__params"
|
|
25532
|
-
},
|
|
25534
|
+
}, P2t = { class: "nb-blueprint-card__row-label" }, F2t = { class: "nb-blueprint-card__row-value" }, I2t = {
|
|
25533
25535
|
key: 0,
|
|
25534
25536
|
class: "nb-blueprint-card__row-unit"
|
|
25535
|
-
},
|
|
25537
|
+
}, L2t = {
|
|
25536
25538
|
key: 2,
|
|
25537
25539
|
class: "nb-blueprint-card__content"
|
|
25538
|
-
},
|
|
25540
|
+
}, R2t = { class: "nb-blueprint-card__ports nb-blueprint-card__ports--right" }, z2t = ["title"], B2t = [
|
|
25541
|
+
"data-port",
|
|
25542
|
+
"data-port-data-type",
|
|
25539
25543
|
"title",
|
|
25540
25544
|
"aria-label",
|
|
25541
25545
|
"onMousedown",
|
|
25542
25546
|
"onMouseup",
|
|
25543
25547
|
"onKeydown"
|
|
25544
|
-
],
|
|
25548
|
+
], V2t = {
|
|
25545
25549
|
key: 0,
|
|
25546
25550
|
class: "nb-blueprint-card__port-label"
|
|
25547
|
-
},
|
|
25551
|
+
}, H2t = 320, U2t = 1, W2t = 10, o9 = /* @__PURE__ */ X(/* @__PURE__ */ m({
|
|
25548
25552
|
__name: "BlueprintCard",
|
|
25549
25553
|
props: {
|
|
25550
25554
|
id: {},
|
|
@@ -25623,7 +25627,7 @@ var _2t = ["data-card-id", "aria-label"], v2t = { class: "nb-blueprint-card__por
|
|
|
25623
25627
|
for (let t of e ?? []) n.has(t) || (C.value = new Set(C.value).add(t), clearTimeout(T.get(t)), T.set(t, setTimeout(() => {
|
|
25624
25628
|
let e = new Set(C.value);
|
|
25625
25629
|
e.delete(t), C.value = e, T.delete(t);
|
|
25626
|
-
},
|
|
25630
|
+
}, H2t)));
|
|
25627
25631
|
}, { deep: !0 }), w(() => {
|
|
25628
25632
|
for (let e of T.values()) clearTimeout(e);
|
|
25629
25633
|
T.clear();
|
|
@@ -25657,7 +25661,7 @@ var _2t = ["data-card-id", "aria-label"], v2t = { class: "nb-blueprint-card__por
|
|
|
25657
25661
|
let t = F[e.key];
|
|
25658
25662
|
if (!t || !a?.nudge) return;
|
|
25659
25663
|
e.preventDefault();
|
|
25660
|
-
let n = e.shiftKey ?
|
|
25664
|
+
let n = e.shiftKey ? W2t : U2t;
|
|
25661
25665
|
a.nudge(r.id, t[0] * n, t[1] * n);
|
|
25662
25666
|
}
|
|
25663
25667
|
function R(e) {
|
|
@@ -25813,12 +25817,24 @@ var _2t = ["data-card-id", "aria-label"], v2t = { class: "nb-blueprint-card__por
|
|
|
25813
25817
|
"nb-blueprint-card__port-combined--active": re.value
|
|
25814
25818
|
}]),
|
|
25815
25819
|
title: `${B.value.length} input${B.value.length === 1 ? "" : "s"}`
|
|
25816
|
-
}, null, 10, y2t)) : c("", !0), (E(!0), l(n, null, j(B.value, (t) => (E(), l("
|
|
25820
|
+
}, null, 10, y2t)) : c("", !0), (E(!0), l(n, null, j(B.value, (t) => (E(), l("button", {
|
|
25817
25821
|
key: t.key,
|
|
25818
|
-
class: "nb-blueprint-card__port-slot"
|
|
25819
|
-
}, [u("button", {
|
|
25820
25822
|
type: "button",
|
|
25821
|
-
|
|
25823
|
+
"data-port": `${e.id}:${t.portId}`,
|
|
25824
|
+
"data-port-data-type": t.port.dataType ?? "any",
|
|
25825
|
+
class: b(["nb-blueprint-card__port nb-blueprint-card__port-hit nb-blueprint-card__port--left", [
|
|
25826
|
+
`nb-blueprint-card__port--${de(t.port)}`,
|
|
25827
|
+
`nb-blueprint-card__port--size-${fe(t.port)}`,
|
|
25828
|
+
`nb-blueprint-card__port--${pe(t.port)}`,
|
|
25829
|
+
t.port.required ? "nb-blueprint-card__port--required" : "",
|
|
25830
|
+
t.channel ? "nb-blueprint-card__port--channel" : "",
|
|
25831
|
+
J(t.portId) ? "nb-blueprint-card__port--connected" : "",
|
|
25832
|
+
te(t.portId) ? "nb-blueprint-card__port--active" : "",
|
|
25833
|
+
D(t.portId) ? "nb-blueprint-card__port--metered" : "",
|
|
25834
|
+
C.value.has(t.portId) ? "nb-blueprint-card__port--ping" : "",
|
|
25835
|
+
y(t, "input")
|
|
25836
|
+
]]),
|
|
25837
|
+
style: x(O(t)),
|
|
25822
25838
|
title: oe(t),
|
|
25823
25839
|
"aria-label": N(t, "input"),
|
|
25824
25840
|
onMousedown: Y((n) => s({
|
|
@@ -25839,24 +25855,8 @@ var _2t = ["data-card-id", "aria-label"], v2t = { class: "nb-blueprint-card__por
|
|
|
25839
25855
|
type: "input",
|
|
25840
25856
|
dataType: t.port.dataType
|
|
25841
25857
|
})
|
|
25842
|
-
}, [
|
|
25843
|
-
|
|
25844
|
-
"data-port-data-type": t.port.dataType ?? "any",
|
|
25845
|
-
class: b(["nb-blueprint-card__port nb-blueprint-card__port--left", [
|
|
25846
|
-
`nb-blueprint-card__port--${de(t.port)}`,
|
|
25847
|
-
`nb-blueprint-card__port--size-${fe(t.port)}`,
|
|
25848
|
-
`nb-blueprint-card__port--${pe(t.port)}`,
|
|
25849
|
-
t.port.required ? "nb-blueprint-card__port--required" : "",
|
|
25850
|
-
t.channel ? "nb-blueprint-card__port--channel" : "",
|
|
25851
|
-
J(t.portId) ? "nb-blueprint-card__port--connected" : "",
|
|
25852
|
-
te(t.portId) ? "nb-blueprint-card__port--active" : "",
|
|
25853
|
-
D(t.portId) ? "nb-blueprint-card__port--metered" : "",
|
|
25854
|
-
C.value.has(t.portId) ? "nb-blueprint-card__port--ping" : "",
|
|
25855
|
-
y(t, "input")
|
|
25856
|
-
]]),
|
|
25857
|
-
style: x(O(t))
|
|
25858
|
-
}, null, 14, x2t)], 40, b2t), t.showLabel ? (E(), l("span", S2t, I(se(t)), 1)) : c("", !0)]))), 128))]),
|
|
25859
|
-
u("div", C2t, [u("div", w2t, [u("div", T2t, [
|
|
25858
|
+
}, [t.showLabel ? (E(), l("span", x2t, I(se(t)), 1)) : c("", !0)], 46, b2t))), 128))]),
|
|
25859
|
+
u("div", S2t, [u("div", C2t, [u("div", w2t, [
|
|
25860
25860
|
u("button", {
|
|
25861
25861
|
type: "button",
|
|
25862
25862
|
class: "nb-blueprint-card__collapse",
|
|
@@ -25872,8 +25872,8 @@ var _2t = ["data-card-id", "aria-label"], v2t = { class: "nb-blueprint-card__por
|
|
|
25872
25872
|
fill: "none",
|
|
25873
25873
|
stroke: "currentColor",
|
|
25874
25874
|
"stroke-width": "1.5"
|
|
25875
|
-
}, [u("polyline", { points: "4 6 8 10 12 6" })], -1)]], 40,
|
|
25876
|
-
u("div",
|
|
25875
|
+
}, [u("polyline", { points: "4 6 8 10 12 6" })], -1)]], 40, T2t),
|
|
25876
|
+
u("div", E2t, [u("span", D2t, I(e.title), 1), e.category ? (E(), l("span", O2t, I(W.value), 1)) : c("", !0)]),
|
|
25877
25877
|
e.status && e.status !== "none" ? (E(), l("svg", {
|
|
25878
25878
|
key: 0,
|
|
25879
25879
|
class: b(["nb-blueprint-card__status", `nb-blueprint-card__status--${e.status}`]),
|
|
@@ -25937,7 +25937,7 @@ var _2t = ["data-card-id", "aria-label"], v2t = { class: "nb-blueprint-card__por
|
|
|
25937
25937
|
r: "1",
|
|
25938
25938
|
fill: "var(--nb-c-surface)"
|
|
25939
25939
|
}, null, -1)
|
|
25940
|
-
], 64))], 10,
|
|
25940
|
+
], 64))], 10, k2t)) : c("", !0),
|
|
25941
25941
|
e.enabled === void 0 ? c("", !0) : (E(), l("label", {
|
|
25942
25942
|
key: 1,
|
|
25943
25943
|
class: "nb-blueprint-card__toggle",
|
|
@@ -25948,7 +25948,7 @@ var _2t = ["data-card-id", "aria-label"], v2t = { class: "nb-blueprint-card__por
|
|
|
25948
25948
|
checked: e.enabled,
|
|
25949
25949
|
"aria-label": `Enable ${e.title}`,
|
|
25950
25950
|
onChange: r[2] ||= (n) => t.$emit("toggle", e.id, n.target.checked)
|
|
25951
|
-
}, null, 40,
|
|
25951
|
+
}, null, 40, A2t), r[18] ||= u("span", { class: "nb-blueprint-card__toggle-track" }, null, -1)], 32)),
|
|
25952
25952
|
e.removable ? (E(), l("button", {
|
|
25953
25953
|
key: 2,
|
|
25954
25954
|
type: "button",
|
|
@@ -25957,36 +25957,47 @@ var _2t = ["data-card-id", "aria-label"], v2t = { class: "nb-blueprint-card__por
|
|
|
25957
25957
|
"aria-label": `Remove ${e.title}`,
|
|
25958
25958
|
onMousedown: r[5] ||= Y(() => {}, ["stop"]),
|
|
25959
25959
|
onClick: r[6] ||= Y((n) => t.$emit("remove", e.id), ["stop"])
|
|
25960
|
-
}, " × ", 40,
|
|
25960
|
+
}, " × ", 40, j2t)) : c("", !0)
|
|
25961
25961
|
]), e.collapsed ? c("", !0) : (E(), l(n, { key: 0 }, [
|
|
25962
|
-
e.preview ? (E(), l("span",
|
|
25963
|
-
e.parameters && e.parameters.length ? (E(), l("div",
|
|
25962
|
+
e.preview ? (E(), l("span", M2t, I(e.preview), 1)) : c("", !0),
|
|
25963
|
+
e.parameters && e.parameters.length ? (E(), l("div", N2t, [(E(!0), l(n, null, j(e.parameters, (e) => (E(), l("div", {
|
|
25964
25964
|
key: e.label,
|
|
25965
25965
|
class: "nb-blueprint-card__row"
|
|
25966
25966
|
}, [
|
|
25967
|
-
u("span",
|
|
25968
|
-
u("span",
|
|
25967
|
+
u("span", P2t, I(e.label), 1),
|
|
25968
|
+
u("span", F2t, [d(I(e.value) + " ", 1), e.unit ? (E(), l("em", I2t, I(e.unit), 1)) : c("", !0)]),
|
|
25969
25969
|
e.bar === void 0 ? c("", !0) : (E(), l("div", {
|
|
25970
25970
|
key: 0,
|
|
25971
25971
|
class: "nb-blueprint-card__row-bar",
|
|
25972
25972
|
style: x({ "--bar-progress": `${e.bar}%` })
|
|
25973
25973
|
}, null, 4))
|
|
25974
25974
|
]))), 128))])) : c("", !0),
|
|
25975
|
-
t.$slots.default ? (E(), l("div",
|
|
25975
|
+
t.$slots.default ? (E(), l("div", L2t, [M(t.$slots, "default", {}, void 0, !0)])) : c("", !0)
|
|
25976
25976
|
], 64))])]),
|
|
25977
|
-
u("div",
|
|
25977
|
+
u("div", R2t, [e.collapsed && V.value.length > 0 ? (E(), l("div", {
|
|
25978
25978
|
key: 0,
|
|
25979
25979
|
class: b(["nb-blueprint-card__port-combined nb-blueprint-card__port-combined--right", {
|
|
25980
25980
|
"nb-blueprint-card__port-combined--connected": ie.value,
|
|
25981
25981
|
"nb-blueprint-card__port-combined--active": ae.value
|
|
25982
25982
|
}]),
|
|
25983
25983
|
title: `${V.value.length} output${V.value.length === 1 ? "" : "s"}`
|
|
25984
|
-
}, null, 10,
|
|
25984
|
+
}, null, 10, z2t)) : c("", !0), (E(!0), l(n, null, j(V.value, (t) => (E(), l("button", {
|
|
25985
25985
|
key: t.key,
|
|
25986
|
-
class: "nb-blueprint-card__port-slot"
|
|
25987
|
-
}, [u("button", {
|
|
25988
25986
|
type: "button",
|
|
25989
|
-
|
|
25987
|
+
"data-port": `${e.id}:${t.portId}`,
|
|
25988
|
+
"data-port-data-type": t.port.dataType ?? "any",
|
|
25989
|
+
class: b(["nb-blueprint-card__port nb-blueprint-card__port-hit nb-blueprint-card__port--right", [
|
|
25990
|
+
`nb-blueprint-card__port--${de(t.port)}`,
|
|
25991
|
+
`nb-blueprint-card__port--size-${fe(t.port)}`,
|
|
25992
|
+
`nb-blueprint-card__port--${pe(t.port)}`,
|
|
25993
|
+
t.channel ? "nb-blueprint-card__port--channel" : "",
|
|
25994
|
+
J(t.portId) ? "nb-blueprint-card__port--connected" : "",
|
|
25995
|
+
te(t.portId) ? "nb-blueprint-card__port--active" : "",
|
|
25996
|
+
D(t.portId) ? "nb-blueprint-card__port--metered" : "",
|
|
25997
|
+
C.value.has(t.portId) ? "nb-blueprint-card__port--ping" : "",
|
|
25998
|
+
y(t, "output")
|
|
25999
|
+
]]),
|
|
26000
|
+
style: x(O(t)),
|
|
25990
26001
|
title: oe(t),
|
|
25991
26002
|
"aria-label": N(t, "output"),
|
|
25992
26003
|
onMousedown: Y((n) => s({
|
|
@@ -26007,25 +26018,10 @@ var _2t = ["data-card-id", "aria-label"], v2t = { class: "nb-blueprint-card__por
|
|
|
26007
26018
|
type: "output",
|
|
26008
26019
|
dataType: t.port.dataType
|
|
26009
26020
|
})
|
|
26010
|
-
}, [
|
|
26011
|
-
"data-port": `${e.id}:${t.portId}`,
|
|
26012
|
-
"data-port-data-type": t.port.dataType ?? "any",
|
|
26013
|
-
class: b(["nb-blueprint-card__port nb-blueprint-card__port--right", [
|
|
26014
|
-
`nb-blueprint-card__port--${de(t.port)}`,
|
|
26015
|
-
`nb-blueprint-card__port--size-${fe(t.port)}`,
|
|
26016
|
-
`nb-blueprint-card__port--${pe(t.port)}`,
|
|
26017
|
-
t.channel ? "nb-blueprint-card__port--channel" : "",
|
|
26018
|
-
J(t.portId) ? "nb-blueprint-card__port--connected" : "",
|
|
26019
|
-
te(t.portId) ? "nb-blueprint-card__port--active" : "",
|
|
26020
|
-
D(t.portId) ? "nb-blueprint-card__port--metered" : "",
|
|
26021
|
-
C.value.has(t.portId) ? "nb-blueprint-card__port--ping" : "",
|
|
26022
|
-
y(t, "output")
|
|
26023
|
-
]]),
|
|
26024
|
-
style: x(O(t))
|
|
26025
|
-
}, null, 14, H2t)], 40, V2t), t.showLabel ? (E(), l("span", U2t, I(se(t)), 1)) : c("", !0)]))), 128))])
|
|
26021
|
+
}, [t.showLabel ? (E(), l("span", V2t, I(se(t)), 1)) : c("", !0)], 46, B2t))), 128))])
|
|
26026
26022
|
], 46, _2t));
|
|
26027
26023
|
}
|
|
26028
|
-
}), [["__scopeId", "data-v-
|
|
26024
|
+
}), [["__scopeId", "data-v-d6d38820"]]), G2t = { class: "nb-blueprint-controls__group" }, K2t = {
|
|
26029
26025
|
key: 0,
|
|
26030
26026
|
class: "nb-blueprint-controls__group"
|
|
26031
26027
|
}, s9 = /* @__PURE__ */ X(/* @__PURE__ */ m({
|
|
@@ -26050,7 +26046,7 @@ var _2t = ["data-card-id", "aria-label"], v2t = { class: "nb-blueprint-card__por
|
|
|
26050
26046
|
class: b(["nb-blueprint-controls", [`nb-blueprint-controls--${e.position}`, `is-${e.orientation}`]]),
|
|
26051
26047
|
role: "toolbar",
|
|
26052
26048
|
"aria-label": "Blueprint controls"
|
|
26053
|
-
}, [u("div",
|
|
26049
|
+
}, [u("div", G2t, [
|
|
26054
26050
|
f(a6, {
|
|
26055
26051
|
variant: "ghost",
|
|
26056
26052
|
size: z(t),
|
|
@@ -26092,7 +26088,7 @@ var _2t = ["data-card-id", "aria-label"], v2t = { class: "nb-blueprint-card__por
|
|
|
26092
26088
|
"aria-label": "Auto layout",
|
|
26093
26089
|
onClick: o[4] ||= (e) => z(r).autoLayout()
|
|
26094
26090
|
}, null, 8, ["size"])) : c("", !0)
|
|
26095
|
-
]), a.value ? (E(), l("div",
|
|
26091
|
+
]), a.value ? (E(), l("div", K2t, [
|
|
26096
26092
|
f(a6, {
|
|
26097
26093
|
variant: "ghost",
|
|
26098
26094
|
size: z(t),
|
|
@@ -26159,22 +26155,22 @@ var _2t = ["data-card-id", "aria-label"], v2t = { class: "nb-blueprint-card__por
|
|
|
26159
26155
|
}, null, 8, ["size"])
|
|
26160
26156
|
])) : c("", !0)], 2)) : c("", !0);
|
|
26161
26157
|
}
|
|
26162
|
-
}), [["__scopeId", "data-v-9da072b6"]]),
|
|
26158
|
+
}), [["__scopeId", "data-v-9da072b6"]]), q2t = [
|
|
26163
26159
|
"width",
|
|
26164
26160
|
"height",
|
|
26165
26161
|
"viewBox"
|
|
26166
|
-
],
|
|
26162
|
+
], J2t = ["width", "height"], Y2t = { key: 0 }, X2t = [
|
|
26167
26163
|
"x",
|
|
26168
26164
|
"y",
|
|
26169
26165
|
"width",
|
|
26170
26166
|
"height",
|
|
26171
26167
|
"fill"
|
|
26172
|
-
],
|
|
26168
|
+
], Z2t = [
|
|
26173
26169
|
"x",
|
|
26174
26170
|
"y",
|
|
26175
26171
|
"width",
|
|
26176
26172
|
"height"
|
|
26177
|
-
],
|
|
26173
|
+
], Q2t = 220, $2t = 120, c9 = 10, l9 = /* @__PURE__ */ X(/* @__PURE__ */ m({
|
|
26178
26174
|
__name: "BlueprintMinimap",
|
|
26179
26175
|
props: {
|
|
26180
26176
|
cards: {},
|
|
@@ -26193,8 +26189,8 @@ var _2t = ["data-card-id", "aria-label"], v2t = { class: "nb-blueprint-card__por
|
|
|
26193
26189
|
return {
|
|
26194
26190
|
x: e.x,
|
|
26195
26191
|
y: e.y,
|
|
26196
|
-
w: e.width ??
|
|
26197
|
-
h: e.height ??
|
|
26192
|
+
w: e.width ?? Q2t,
|
|
26193
|
+
h: e.height ?? $2t
|
|
26198
26194
|
};
|
|
26199
26195
|
}
|
|
26200
26196
|
let a = o(() => {
|
|
@@ -26295,7 +26291,7 @@ var _2t = ["data-card-id", "aria-label"], v2t = { class: "nb-blueprint-card__por
|
|
|
26295
26291
|
width: e.width,
|
|
26296
26292
|
height: e.height,
|
|
26297
26293
|
rx: "8"
|
|
26298
|
-
}, null, 8,
|
|
26294
|
+
}, null, 8, J2t), d.value ? (E(), l("g", Y2t, [(E(!0), l(n, null, j(p.value, (e) => (E(), l("rect", {
|
|
26299
26295
|
key: e.id,
|
|
26300
26296
|
class: "nb-blueprint-minimap__node",
|
|
26301
26297
|
x: e.x,
|
|
@@ -26304,17 +26300,17 @@ var _2t = ["data-card-id", "aria-label"], v2t = { class: "nb-blueprint-card__por
|
|
|
26304
26300
|
height: e.h,
|
|
26305
26301
|
fill: e.color,
|
|
26306
26302
|
rx: "1.5"
|
|
26307
|
-
}, null, 8,
|
|
26303
|
+
}, null, 8, X2t))), 128)), u("rect", {
|
|
26308
26304
|
class: "nb-blueprint-minimap__viewport",
|
|
26309
26305
|
x: m.value.x,
|
|
26310
26306
|
y: m.value.y,
|
|
26311
26307
|
width: m.value.w,
|
|
26312
26308
|
height: m.value.h,
|
|
26313
26309
|
rx: "2"
|
|
26314
|
-
}, null, 8,
|
|
26310
|
+
}, null, 8, Z2t)])) : c("", !0)], 42, q2t));
|
|
26315
26311
|
}
|
|
26316
26312
|
}), [["__scopeId", "data-v-959b4274"]]), u9 = "nb:walkthrough:";
|
|
26317
|
-
function
|
|
26313
|
+
function e4t(e) {
|
|
26318
26314
|
return !!e && typeof e == "object" && typeof e.version == "number";
|
|
26319
26315
|
}
|
|
26320
26316
|
function d9(e = u9) {
|
|
@@ -26325,7 +26321,7 @@ function d9(e = u9) {
|
|
|
26325
26321
|
let n = window.localStorage.getItem(t(e));
|
|
26326
26322
|
if (!n) return null;
|
|
26327
26323
|
let r = JSON.parse(n);
|
|
26328
|
-
return
|
|
26324
|
+
return e4t(r) ? r : null;
|
|
26329
26325
|
} catch {
|
|
26330
26326
|
return null;
|
|
26331
26327
|
}
|
|
@@ -26355,13 +26351,13 @@ function p9() {
|
|
|
26355
26351
|
}
|
|
26356
26352
|
//#endregion
|
|
26357
26353
|
//#region src/composables/useWalkthrough.composable.ts
|
|
26358
|
-
var
|
|
26354
|
+
var t4t = {
|
|
26359
26355
|
id: "",
|
|
26360
26356
|
version: 1,
|
|
26361
26357
|
steps: []
|
|
26362
26358
|
};
|
|
26363
26359
|
function m9(e, t = {}) {
|
|
26364
|
-
let n = t.storage ?? p9(), r = o(() => R(e) ??
|
|
26360
|
+
let n = t.storage ?? p9(), r = o(() => R(e) ?? t4t), 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));
|
|
26365
26361
|
function f() {
|
|
26366
26362
|
let e = l.value;
|
|
26367
26363
|
e && t.onStepChange?.(e, c.value);
|
|
@@ -26438,13 +26434,13 @@ function m9(e, t = {}) {
|
|
|
26438
26434
|
//#endregion
|
|
26439
26435
|
//#region src/utils/tourTarget.helper.ts
|
|
26440
26436
|
var h9 = "data-nb-tour-step";
|
|
26441
|
-
function
|
|
26437
|
+
function n4t(e) {
|
|
26442
26438
|
return typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(e) : e.replace(/["\\]/g, "\\$&");
|
|
26443
26439
|
}
|
|
26444
26440
|
function g9(e) {
|
|
26445
|
-
return `[${h9}="${
|
|
26441
|
+
return `[${h9}="${n4t(e)}"]`;
|
|
26446
26442
|
}
|
|
26447
|
-
function
|
|
26443
|
+
function r4t(e) {
|
|
26448
26444
|
return !!e && typeof e == "object" && "value" in e;
|
|
26449
26445
|
}
|
|
26450
26446
|
function _9(e, t = typeof document < "u" ? document : void 0) {
|
|
@@ -26452,7 +26448,7 @@ function _9(e, t = typeof document < "u" ? document : void 0) {
|
|
|
26452
26448
|
if (typeof e == "function") return e() ?? null;
|
|
26453
26449
|
if (typeof e == "object") {
|
|
26454
26450
|
if (e instanceof HTMLElement) return e;
|
|
26455
|
-
if (
|
|
26451
|
+
if (r4t(e)) {
|
|
26456
26452
|
let t = e.value;
|
|
26457
26453
|
return t instanceof HTMLElement ? t : null;
|
|
26458
26454
|
}
|
|
@@ -26473,26 +26469,26 @@ function v9(e) {
|
|
|
26473
26469
|
}
|
|
26474
26470
|
//#endregion
|
|
26475
26471
|
//#region src/components/Walkthrough.vue?vue&type=script&setup=true&lang.ts
|
|
26476
|
-
var
|
|
26472
|
+
var i4t = ["viewBox"], a4t = ["width", "height"], o4t = [
|
|
26477
26473
|
"x",
|
|
26478
26474
|
"y",
|
|
26479
26475
|
"width",
|
|
26480
26476
|
"height",
|
|
26481
26477
|
"rx"
|
|
26482
|
-
],
|
|
26478
|
+
], s4t = [
|
|
26483
26479
|
"width",
|
|
26484
26480
|
"height",
|
|
26485
26481
|
"mask"
|
|
26486
|
-
],
|
|
26482
|
+
], c4t = [
|
|
26487
26483
|
"x",
|
|
26488
26484
|
"y",
|
|
26489
26485
|
"width",
|
|
26490
26486
|
"height",
|
|
26491
26487
|
"rx"
|
|
26492
|
-
],
|
|
26488
|
+
], l4t = ["aria-label", "aria-labelledby"], u4t = { class: "nb-walkthrough--footer" }, d4t = {
|
|
26493
26489
|
class: "nb-walkthrough--progress",
|
|
26494
26490
|
"aria-live": "polite"
|
|
26495
|
-
},
|
|
26491
|
+
}, f4t = { class: "nb-walkthrough--actions" }, y9 = /* @__PURE__ */ X(/* @__PURE__ */ m({
|
|
26496
26492
|
__name: "Walkthrough",
|
|
26497
26493
|
props: {
|
|
26498
26494
|
walkthrough: { default: void 0 },
|
|
@@ -26688,7 +26684,7 @@ var o4t = ["viewBox"], s4t = ["width", "height"], c4t = [
|
|
|
26688
26684
|
width: j.value.width,
|
|
26689
26685
|
height: j.value.height,
|
|
26690
26686
|
fill: "white"
|
|
26691
|
-
}, null, 8,
|
|
26687
|
+
}, null, 8, a4t), K.value ? (E(), l("rect", {
|
|
26692
26688
|
key: 0,
|
|
26693
26689
|
x: K.value.left,
|
|
26694
26690
|
y: K.value.top,
|
|
@@ -26696,7 +26692,7 @@ var o4t = ["viewBox"], s4t = ["width", "height"], c4t = [
|
|
|
26696
26692
|
height: K.value.height,
|
|
26697
26693
|
rx: ee.value,
|
|
26698
26694
|
fill: "black"
|
|
26699
|
-
}, null, 8,
|
|
26695
|
+
}, null, 8, o4t)) : c("", !0)])]),
|
|
26700
26696
|
u("rect", {
|
|
26701
26697
|
class: "nb-walkthrough--scrim-fill",
|
|
26702
26698
|
x: "0",
|
|
@@ -26704,7 +26700,7 @@ var o4t = ["viewBox"], s4t = ["width", "height"], c4t = [
|
|
|
26704
26700
|
width: j.value.width,
|
|
26705
26701
|
height: j.value.height,
|
|
26706
26702
|
mask: `url(#${_})`
|
|
26707
|
-
}, null, 8,
|
|
26703
|
+
}, null, 8, s4t),
|
|
26708
26704
|
K.value ? (E(), l("rect", {
|
|
26709
26705
|
key: 0,
|
|
26710
26706
|
class: "nb-walkthrough--ring",
|
|
@@ -26713,8 +26709,8 @@ var o4t = ["viewBox"], s4t = ["width", "height"], c4t = [
|
|
|
26713
26709
|
width: K.value.width,
|
|
26714
26710
|
height: K.value.height,
|
|
26715
26711
|
rx: ee.value
|
|
26716
|
-
}, null, 8,
|
|
26717
|
-
], 8,
|
|
26712
|
+
}, null, 8, c4t)) : c("", !0)
|
|
26713
|
+
], 8, i4t)), u("div", v({
|
|
26718
26714
|
ref_key: "popoverRef",
|
|
26719
26715
|
ref: D,
|
|
26720
26716
|
class: [
|
|
@@ -26749,14 +26745,14 @@ var o4t = ["viewBox"], s4t = ["width", "height"], c4t = [
|
|
|
26749
26745
|
index: H.value,
|
|
26750
26746
|
total: U.value
|
|
26751
26747
|
}, () => [d(I(V.value?.body), 1)], !0)]),
|
|
26752
|
-
u("div",
|
|
26748
|
+
u("div", u4t, [u("p", d4t, I(W.value.progress(H.value + 1, U.value)), 1), M(t.$slots, "actions", {
|
|
26753
26749
|
step: V.value,
|
|
26754
26750
|
index: H.value,
|
|
26755
26751
|
total: U.value,
|
|
26756
26752
|
back: de,
|
|
26757
26753
|
next: ue,
|
|
26758
26754
|
skip: pe
|
|
26759
|
-
}, () => [u("div",
|
|
26755
|
+
}, () => [u("div", f4t, [
|
|
26760
26756
|
z(h).isLast.value ? c("", !0) : (E(), s(a6, {
|
|
26761
26757
|
key: 0,
|
|
26762
26758
|
variant: "ghost",
|
|
@@ -26785,9 +26781,9 @@ var o4t = ["viewBox"], s4t = ["width", "height"], c4t = [
|
|
|
26785
26781
|
_: 1
|
|
26786
26782
|
})
|
|
26787
26783
|
])], !0)])
|
|
26788
|
-
], 16,
|
|
26784
|
+
], 16, l4t)], 2)) : c("", !0)], 8, ["to"]));
|
|
26789
26785
|
}
|
|
26790
|
-
}), [["__scopeId", "data-v-902c67c9"]]),
|
|
26786
|
+
}), [["__scopeId", "data-v-902c67c9"]]), p4t = {
|
|
26791
26787
|
NbAiLabel: le,
|
|
26792
26788
|
NbBadge: pe,
|
|
26793
26789
|
NbBanner: F3,
|
|
@@ -26856,12 +26852,12 @@ var o4t = ["viewBox"], s4t = ["width", "height"], c4t = [
|
|
|
26856
26852
|
NbBlueprintControls: s9,
|
|
26857
26853
|
NbBlueprintMinimap: l9,
|
|
26858
26854
|
NbWalkthrough: y9
|
|
26859
|
-
},
|
|
26860
|
-
Object.entries(
|
|
26855
|
+
}, m4t = { install(e) {
|
|
26856
|
+
Object.entries(p4t).forEach(([t, n]) => {
|
|
26861
26857
|
e.component(t, n);
|
|
26862
26858
|
});
|
|
26863
|
-
} },
|
|
26864
|
-
function
|
|
26859
|
+
} }, h4t = /* @__PURE__ */ ie({ default: () => g4t });
|
|
26860
|
+
function g4t(e) {
|
|
26865
26861
|
e.directive("nb-context-menu", {
|
|
26866
26862
|
mounted(e, t) {
|
|
26867
26863
|
let n = (e) => {
|
|
@@ -26896,7 +26892,7 @@ function b9(e) {
|
|
|
26896
26892
|
}
|
|
26897
26893
|
//#endregion
|
|
26898
26894
|
//#region src/directives/ToolTip.directive.ts
|
|
26899
|
-
var
|
|
26895
|
+
var _4t = /* @__PURE__ */ ie({
|
|
26900
26896
|
default: () => k9,
|
|
26901
26897
|
dismissAllTooltips: () => F9
|
|
26902
26898
|
}), x9 = /* @__PURE__ */ new Set(), S9 = (e) => {
|
|
@@ -26904,14 +26900,14 @@ var y4t = /* @__PURE__ */ ie({
|
|
|
26904
26900
|
if (!e || typeof e != "object" || !e.component) return "";
|
|
26905
26901
|
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));
|
|
26906
26902
|
return `<${t}${o ? ` ${o}` : ""}>${s}</${t}>`;
|
|
26907
|
-
}, C9 = (e) => e ? typeof e == "string" ? b9(e) : Array.isArray(e) ? S9(e) : "" : "", w9 = !1,
|
|
26903
|
+
}, C9 = (e) => e ? typeof e == "string" ? b9(e) : Array.isArray(e) ? S9(e) : "" : "", w9 = !1, v4t = () => {
|
|
26908
26904
|
if (w9 || typeof document > "u") return;
|
|
26909
26905
|
w9 = !0;
|
|
26910
26906
|
let e = () => {
|
|
26911
26907
|
x9.size !== 0 && F9();
|
|
26912
26908
|
};
|
|
26913
26909
|
document.addEventListener("pointerdown", e, !0), window.addEventListener("blur", e), document.addEventListener("mouseleave", e);
|
|
26914
|
-
}, T9 = 200, E9 = 1e3,
|
|
26910
|
+
}, T9 = 200, E9 = 1e3, y4t = 2, b4t = (e) => {
|
|
26915
26911
|
if (!e.isConnected) return !1;
|
|
26916
26912
|
try {
|
|
26917
26913
|
return e.matches(":hover");
|
|
@@ -26920,22 +26916,22 @@ var y4t = /* @__PURE__ */ ie({
|
|
|
26920
26916
|
}
|
|
26921
26917
|
}, D9 = (e) => {
|
|
26922
26918
|
clearTimeout(e.__watchdogTimer__), e.__watchdogTimer__ = void 0, e.__watchdogMisses__ = 0;
|
|
26923
|
-
},
|
|
26919
|
+
}, x4t = (e) => {
|
|
26924
26920
|
D9(e);
|
|
26925
26921
|
let t = () => {
|
|
26926
26922
|
if (!e.__chips__?.size) {
|
|
26927
26923
|
D9(e);
|
|
26928
26924
|
return;
|
|
26929
26925
|
}
|
|
26930
|
-
if (
|
|
26931
|
-
else if (e.__watchdogMisses__ = (e.__watchdogMisses__ ?? 0) + 1, !e.isConnected || e.__watchdogMisses__ >=
|
|
26926
|
+
if (b4t(e)) e.__watchdogMisses__ = 0;
|
|
26927
|
+
else if (e.__watchdogMisses__ = (e.__watchdogMisses__ ?? 0) + 1, !e.isConnected || e.__watchdogMisses__ >= y4t) {
|
|
26932
26928
|
M9(e, !e.isConnected);
|
|
26933
26929
|
return;
|
|
26934
26930
|
}
|
|
26935
26931
|
e.__watchdogTimer__ = setTimeout(t, E9);
|
|
26936
26932
|
};
|
|
26937
26933
|
e.__watchdogTimer__ = setTimeout(t, E9);
|
|
26938
|
-
},
|
|
26934
|
+
}, S4t = (e, t, n) => {
|
|
26939
26935
|
if (e.__chips__?.delete(t), clearTimeout(t.__removeTimer__), t.__removeTimer__ = void 0, n) {
|
|
26940
26936
|
t.remove();
|
|
26941
26937
|
return;
|
|
@@ -26944,17 +26940,17 @@ var y4t = /* @__PURE__ */ ie({
|
|
|
26944
26940
|
t.__removeTimer__ = void 0, t.remove();
|
|
26945
26941
|
}, T9);
|
|
26946
26942
|
}, O9 = (e, t) => {
|
|
26947
|
-
if (e.__chips__) for (let n of Array.from(e.__chips__))
|
|
26943
|
+
if (e.__chips__) for (let n of Array.from(e.__chips__)) S4t(e, n, t);
|
|
26948
26944
|
e.tooltipElement = void 0, e.__lastContent__ = void 0, D9(e);
|
|
26949
26945
|
}, k9 = (e) => {
|
|
26950
|
-
|
|
26946
|
+
v4t();
|
|
26951
26947
|
let t = e.config.globalProperties.$router;
|
|
26952
26948
|
t && t.beforeEach(() => {
|
|
26953
26949
|
x9.forEach((e) => e?.__hideTooltip__?.(0)), x9.clear();
|
|
26954
26950
|
}), e.directive("nb-tooltip", {
|
|
26955
26951
|
mounted(e, t) {
|
|
26956
26952
|
e.__showTooltip__ = () => {
|
|
26957
|
-
clearTimeout(e.__hideTimer__), e.__hideTimer__ = void 0, e.__tooltipBinding__ &&
|
|
26953
|
+
clearTimeout(e.__hideTimer__), e.__hideTimer__ = void 0, e.__tooltipBinding__ && C4t(e, e.__tooltipBinding__);
|
|
26958
26954
|
}, e.__hideTooltip__ = (t = 150) => {
|
|
26959
26955
|
clearTimeout(e.__hideTimer__), e.__hideTimer__ = setTimeout(() => {
|
|
26960
26956
|
e.__hideTimer__ = void 0, M9(e, t <= 0);
|
|
@@ -26971,13 +26967,13 @@ var y4t = /* @__PURE__ */ ie({
|
|
|
26971
26967
|
}
|
|
26972
26968
|
if (!e.tooltipElement || n === t.value) return;
|
|
26973
26969
|
let r = j9(t.value);
|
|
26974
|
-
r !== e.__lastContent__ && (e.__lastContent__ = r,
|
|
26970
|
+
r !== e.__lastContent__ && (e.__lastContent__ = r, w4t(e, t.value));
|
|
26975
26971
|
},
|
|
26976
26972
|
unmounted(e) {
|
|
26977
26973
|
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__);
|
|
26978
26974
|
}
|
|
26979
26975
|
});
|
|
26980
|
-
}, 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)}`,
|
|
26976
|
+
}, 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)}`, C4t = (e, t) => {
|
|
26981
26977
|
let { header: n, body: r, tip: i, flavor: a = "default", delay: o = 400, animationTime: s = 300, position: c, overflowOnly: l, classExtra: u } = t;
|
|
26982
26978
|
if (clearTimeout(e.__showTimer__), e.__showTimer__ = void 0, O9(e, !0), l) {
|
|
26983
26979
|
let t = e.getBoundingClientRect();
|
|
@@ -26990,11 +26986,11 @@ var y4t = /* @__PURE__ */ ie({
|
|
|
26990
26986
|
header: n,
|
|
26991
26987
|
body: r,
|
|
26992
26988
|
tip: i
|
|
26993
|
-
}), 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),
|
|
26989
|
+
}), 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), x4t(e);
|
|
26994
26990
|
}, o));
|
|
26995
26991
|
}, M9 = (e, t = !1) => {
|
|
26996
26992
|
clearTimeout(e.__showTimer__), e.__showTimer__ = void 0, O9(e, t), x9.delete(e);
|
|
26997
|
-
},
|
|
26993
|
+
}, w4t = (e, { header: t, body: n, tip: r, position: i }) => {
|
|
26998
26994
|
let a = e.tooltipElement;
|
|
26999
26995
|
a && (a.innerHTML = A9({
|
|
27000
26996
|
header: t,
|
|
@@ -27002,7 +26998,7 @@ var y4t = /* @__PURE__ */ ie({
|
|
|
27002
26998
|
tip: r
|
|
27003
26999
|
}), P9(e, a, i));
|
|
27004
27000
|
};
|
|
27005
|
-
function
|
|
27001
|
+
function T4t(e, t, n, r, i, a, o, s, c) {
|
|
27006
27002
|
switch (e) {
|
|
27007
27003
|
case "top": return {
|
|
27008
27004
|
top: t.top - (r + i * 2) - a,
|
|
@@ -27029,7 +27025,7 @@ function D4t(e, t, n, r, i, a, o, s, c) {
|
|
|
27029
27025
|
function N9(e, t, n, r, i) {
|
|
27030
27026
|
return t >= i && e >= i && t + n <= window.innerWidth - i && e + r <= window.innerHeight - i;
|
|
27031
27027
|
}
|
|
27032
|
-
var
|
|
27028
|
+
var E4t = {
|
|
27033
27029
|
top: [
|
|
27034
27030
|
"bottom",
|
|
27035
27031
|
"right",
|
|
@@ -27053,8 +27049,8 @@ var O4t = {
|
|
|
27053
27049
|
cursor: []
|
|
27054
27050
|
}, P9 = (e, t, n) => {
|
|
27055
27051
|
if (!t) return;
|
|
27056
|
-
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) =>
|
|
27057
|
-
if (a > 0 && o > 0 && !N9(p.top, p.left, a, o, 16)) for (let e of
|
|
27052
|
+
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) => T4t(e, r, a, o, 4, s, c, l, u), p = f(d), m = d;
|
|
27053
|
+
if (a > 0 && o > 0 && !N9(p.top, p.left, a, o, 16)) for (let e of E4t[d]) {
|
|
27058
27054
|
let t = f(e);
|
|
27059
27055
|
if (N9(t.top, t.left, a, o, 16)) {
|
|
27060
27056
|
p = t, m = e;
|
|
@@ -27093,7 +27089,7 @@ function F9() {
|
|
|
27093
27089
|
}
|
|
27094
27090
|
//#endregion
|
|
27095
27091
|
//#region src/directives/TourStep.directive.ts
|
|
27096
|
-
var
|
|
27092
|
+
var D4t = /* @__PURE__ */ ie({ default: () => L9 });
|
|
27097
27093
|
function I9(e, t) {
|
|
27098
27094
|
let n = t.value;
|
|
27099
27095
|
if (n == null || n === "") {
|
|
@@ -27110,12 +27106,12 @@ var L9 = (e) => {
|
|
|
27110
27106
|
e.removeAttribute(h9);
|
|
27111
27107
|
}
|
|
27112
27108
|
});
|
|
27113
|
-
},
|
|
27114
|
-
"./ContextMenu.directive.ts":
|
|
27115
|
-
"./ToolTip.directive.ts":
|
|
27116
|
-
"./TourStep.directive.ts":
|
|
27117
|
-
}),
|
|
27118
|
-
Object.values(
|
|
27109
|
+
}, O4t = /* @__PURE__ */ Object.assign({
|
|
27110
|
+
"./ContextMenu.directive.ts": h4t,
|
|
27111
|
+
"./ToolTip.directive.ts": _4t,
|
|
27112
|
+
"./TourStep.directive.ts": D4t
|
|
27113
|
+
}), k4t = { install(e) {
|
|
27114
|
+
Object.values(O4t).forEach((t) => {
|
|
27119
27115
|
typeof t.default == "function" && t.default(e);
|
|
27120
27116
|
});
|
|
27121
27117
|
} }, R9 = { install(e) {
|
|
@@ -27124,7 +27120,7 @@ var L9 = (e) => {
|
|
|
27124
27120
|
} };
|
|
27125
27121
|
//#endregion
|
|
27126
27122
|
//#region src/composables/useContextMenu.composable.ts
|
|
27127
|
-
function
|
|
27123
|
+
function A4t() {
|
|
27128
27124
|
let e = A(!1), t = A({
|
|
27129
27125
|
x: 0,
|
|
27130
27126
|
y: 0
|
|
@@ -27159,49 +27155,49 @@ var z9 = {
|
|
|
27159
27155
|
defaultTheme: "system",
|
|
27160
27156
|
darkClass: "dark"
|
|
27161
27157
|
}, B9 = "(prefers-color-scheme: dark)", V9 = { ...z9 }, H9 = !1, U9 = null, W9 = A(z9.defaultTheme), G9 = A("light");
|
|
27162
|
-
function
|
|
27158
|
+
function j4t(e) {
|
|
27163
27159
|
return e === "light" || e === "dark" || e === "system";
|
|
27164
27160
|
}
|
|
27165
|
-
function
|
|
27161
|
+
function M4t() {
|
|
27166
27162
|
try {
|
|
27167
27163
|
if (typeof localStorage > "u") return null;
|
|
27168
27164
|
let e = localStorage.getItem(V9.storageKey);
|
|
27169
|
-
return
|
|
27165
|
+
return j4t(e) ? e : null;
|
|
27170
27166
|
} catch {
|
|
27171
27167
|
return null;
|
|
27172
27168
|
}
|
|
27173
27169
|
}
|
|
27174
|
-
function
|
|
27170
|
+
function N4t(e) {
|
|
27175
27171
|
try {
|
|
27176
27172
|
if (typeof localStorage > "u") return;
|
|
27177
27173
|
localStorage.setItem(V9.storageKey, e);
|
|
27178
27174
|
} catch {}
|
|
27179
27175
|
}
|
|
27180
|
-
function
|
|
27176
|
+
function P4t() {
|
|
27181
27177
|
return typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia(B9).matches;
|
|
27182
27178
|
}
|
|
27183
27179
|
function K9() {
|
|
27184
|
-
let e = W9.value === "dark" || W9.value === "system" &&
|
|
27180
|
+
let e = W9.value === "dark" || W9.value === "system" && P4t();
|
|
27185
27181
|
G9.value = e ? "dark" : "light", !(typeof document > "u") && (document.documentElement.classList.toggle(V9.darkClass, e), document.documentElement.style.colorScheme = G9.value);
|
|
27186
27182
|
}
|
|
27187
|
-
function
|
|
27183
|
+
function F4t() {
|
|
27188
27184
|
if (U9?.(), U9 = null, typeof window > "u" || typeof window.matchMedia != "function") return;
|
|
27189
27185
|
let e = window.matchMedia(B9), t = () => K9();
|
|
27190
27186
|
typeof e.addEventListener == "function" ? (e.addEventListener("change", t), U9 = () => e.removeEventListener("change", t)) : typeof e.addListener == "function" && (e.addListener(t), U9 = () => e.removeListener(t));
|
|
27191
27187
|
}
|
|
27192
27188
|
var q9 = null;
|
|
27193
27189
|
function J9() {
|
|
27194
|
-
W9.value =
|
|
27195
|
-
|
|
27190
|
+
W9.value = M4t() ?? V9.defaultTheme, K9(), F4t(), q9?.(), q9 = q(W9, (e) => {
|
|
27191
|
+
N4t(e), K9();
|
|
27196
27192
|
}), H9 = !0;
|
|
27197
27193
|
}
|
|
27198
|
-
function
|
|
27194
|
+
function I4t(e = {}) {
|
|
27199
27195
|
V9 = {
|
|
27200
27196
|
...V9,
|
|
27201
27197
|
...e
|
|
27202
27198
|
}, J9();
|
|
27203
27199
|
}
|
|
27204
|
-
function
|
|
27200
|
+
function L4t() {
|
|
27205
27201
|
return H9 || J9(), {
|
|
27206
27202
|
theme: k(W9),
|
|
27207
27203
|
resolved: k(G9),
|
|
@@ -27216,21 +27212,21 @@ function z4t() {
|
|
|
27216
27212
|
}
|
|
27217
27213
|
//#endregion
|
|
27218
27214
|
//#region src/components/labs/Spreadsheet.vue?vue&type=script&setup=true&lang.ts
|
|
27219
|
-
var
|
|
27215
|
+
var R4t = {
|
|
27220
27216
|
key: 0,
|
|
27221
27217
|
class: "nb-spreadsheet__toolbar"
|
|
27222
|
-
},
|
|
27218
|
+
}, z4t = {
|
|
27223
27219
|
key: 0,
|
|
27224
27220
|
class: "nb-spreadsheet__corner",
|
|
27225
27221
|
style: {
|
|
27226
27222
|
gridRow: 1,
|
|
27227
27223
|
gridColumn: 1
|
|
27228
27224
|
}
|
|
27229
|
-
},
|
|
27225
|
+
}, B4t = ["onClick"], V4t = { class: "nb-spreadsheet__header-label" }, H4t = {
|
|
27230
27226
|
key: 0,
|
|
27231
27227
|
class: "nb-spreadsheet__sort",
|
|
27232
27228
|
"aria-hidden": "true"
|
|
27233
|
-
},
|
|
27229
|
+
}, U4t = ["onMousedown"], W4t = [
|
|
27234
27230
|
"title",
|
|
27235
27231
|
"data-cell",
|
|
27236
27232
|
"data-row",
|
|
@@ -27238,7 +27234,7 @@ var B4t = {
|
|
|
27238
27234
|
"onMousedown",
|
|
27239
27235
|
"onMouseenter",
|
|
27240
27236
|
"onDblclick"
|
|
27241
|
-
],
|
|
27237
|
+
], G4t = ["inputmode"], Y9 = 44, X9 = 32, Z9 = 28, K4t = /* @__PURE__ */ m({
|
|
27242
27238
|
__name: "Spreadsheet",
|
|
27243
27239
|
props: {
|
|
27244
27240
|
columns: {},
|
|
@@ -27725,7 +27721,7 @@ var B4t = {
|
|
|
27725
27721
|
undo: De,
|
|
27726
27722
|
redo: Oe,
|
|
27727
27723
|
getSelection: () => h.value
|
|
27728
|
-
}), (t, r) => (E(), l("div", { class: b(["nb-spreadsheet", { "nb-spreadsheet--editing": !!_.value }]) }, [t.$slots.toolbar ? (E(), l("div",
|
|
27724
|
+
}), (t, r) => (E(), l("div", { class: b(["nb-spreadsheet", { "nb-spreadsheet--editing": !!_.value }]) }, [t.$slots.toolbar ? (E(), l("div", R4t, [M(t.$slots, "toolbar", {}, void 0, !0)])) : c("", !0), u("div", {
|
|
27729
27725
|
ref_key: "scrollerRef",
|
|
27730
27726
|
ref: s,
|
|
27731
27727
|
class: "nb-spreadsheet__scroller",
|
|
@@ -27739,21 +27735,21 @@ var B4t = {
|
|
|
27739
27735
|
class: "nb-spreadsheet__grid",
|
|
27740
27736
|
style: x(O.value)
|
|
27741
27737
|
}, [
|
|
27742
|
-
e.showGutter ? (E(), l("div",
|
|
27738
|
+
e.showGutter ? (E(), l("div", z4t)) : c("", !0),
|
|
27743
27739
|
(E(!0), l(n, null, j(T.value, (t, n) => (E(), l("div", {
|
|
27744
27740
|
key: `h-${t.id}`,
|
|
27745
27741
|
class: b(["nb-spreadsheet__header", ee(t)]),
|
|
27746
27742
|
style: x(ne(t, n)),
|
|
27747
27743
|
onClick: (e) => Te(t)
|
|
27748
27744
|
}, [
|
|
27749
|
-
u("span",
|
|
27750
|
-
p.value && p.value.columnId === t.id ? (E(), l("span",
|
|
27745
|
+
u("span", V4t, I(t.label), 1),
|
|
27746
|
+
p.value && p.value.columnId === t.id ? (E(), l("span", H4t, I(p.value.direction === "asc" ? "▲" : "▼"), 1)) : c("", !0),
|
|
27751
27747
|
e.resizable ? (E(), l("span", {
|
|
27752
27748
|
key: 1,
|
|
27753
27749
|
class: "nb-spreadsheet__resize-handle",
|
|
27754
27750
|
onMousedown: Y((e) => we(e, t), ["stop"])
|
|
27755
|
-
}, null, 40,
|
|
27756
|
-
], 14,
|
|
27751
|
+
}, null, 40, U4t)) : c("", !0)
|
|
27752
|
+
], 14, B4t))), 128)),
|
|
27757
27753
|
(E(!0), l(n, null, j(F.value, (t, r) => (E(), l(n, { key: `r-${t.id}` }, [e.showGutter ? (E(), l("div", {
|
|
27758
27754
|
key: 0,
|
|
27759
27755
|
class: b(["nb-spreadsheet__gutter", {
|
|
@@ -27772,7 +27768,7 @@ var B4t = {
|
|
|
27772
27768
|
onMousedown: (n) => se(n, t, e),
|
|
27773
27769
|
onMouseenter: (n) => ce(t, e),
|
|
27774
27770
|
onDblclick: (n) => le(t, e)
|
|
27775
|
-
}, [u("span", null, I(V(t, e)), 1)], 46,
|
|
27771
|
+
}, [u("span", null, I(V(t, e)), 1)], 46, W4t))), 128))], 64))), 128))
|
|
27776
27772
|
], 4), _.value ? te((E(), l("input", {
|
|
27777
27773
|
key: 0,
|
|
27778
27774
|
ref_key: "editorRef",
|
|
@@ -27783,15 +27779,15 @@ var B4t = {
|
|
|
27783
27779
|
inputmode: he.value,
|
|
27784
27780
|
onBlur: r[1] ||= (e) => ve(!0),
|
|
27785
27781
|
onKeydown: Y(_e, ["stop"])
|
|
27786
|
-
}, null, 44,
|
|
27782
|
+
}, null, 44, G4t)), [[K, _.value.draft]]) : c("", !0)], 544)], 2));
|
|
27787
27783
|
}
|
|
27788
|
-
}),
|
|
27784
|
+
}), q4t = /* @__PURE__ */ ie({ default: () => Q9 }), Q9 = /* @__PURE__ */ X(K4t, [["__scopeId", "data-v-df859a7e"]]), $9 = /* @__PURE__ */ Object.assign({ "./components/labs/Spreadsheet.vue": q4t }), J4t = { install(e) {
|
|
27789
27785
|
Object.keys($9).forEach((t) => {
|
|
27790
27786
|
let n = `Nb${t.replace(/(.+\/)(\w+)(\.vue)$/, "$2")}`, r = $9[t];
|
|
27791
27787
|
e.component(n, r.default);
|
|
27792
27788
|
});
|
|
27793
|
-
} },
|
|
27794
|
-
e.use(
|
|
27789
|
+
} }, Y4t = { install(e) {
|
|
27790
|
+
e.use(m4t), e.use(k4t), e.use(R9);
|
|
27795
27791
|
} };
|
|
27796
27792
|
//#endregion
|
|
27797
|
-
export { Y7 as BlueprintLiveData, N3 as EBannerStatus, P3 as EBannerVariant, q7 as NB_BLUEPRINT_CONTEXT, J7 as NB_BLUEPRINT_CONTROLLER, Y3 as NB_LAYER_ATTRIBUTE, X3 as NB_LAYER_INJECTION_KEY, NKt as NB_MAX_LAYER, MKt as NB_MIN_LAYER, pe as NbBadge, F3 as NbBanner, J3 as NbBarChart, t9 as NbBlueprint, r9 as NbBlueprintBackground, o9 as NbBlueprintCard, s9 as NbBlueprintControls, l9 as NbBlueprintMinimap, t6 as NbBoard, G7 as NbBottomPanel, n6 as NbBreadcrumbs, a6 as NbButton, o6 as NbCalendar, m6 as NbCheckbox, g6 as NbCheckboxGroup, _6 as NbColorStrip, o7 as NbCommandPalette, R9 as NbCommandPalettePlugin, v6 as NbDataTable, f6 as NbDatePicker, Q5 as NbField, T6 as NbFlag, w6 as NbGanttChart, d6 as NbGrid, Z as NbIcon, j6 as NbInfoHint, N6 as NbInterpolationChart, X5 as NbJsonTree, c6 as NbLabel, d7 as NbLayer, Z5 as NbLineChart, $5 as NbMenu, e7 as NbMenuBar, t7 as NbMenuBarItem, r7 as NbMenuDivider, n7 as NbMenuItem, u6 as NbMessage, l7 as NbModal, s7 as NbNubiscoMark, c7 as NbNubiscoPlatformMark, u7 as NbNumberInput, b6 as NbPagination, f7 as NbPanel, p7 as NbPieChart, g7 as NbProgressBar, v7 as NbRadio, y6 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, i7 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,
|
|
27793
|
+
export { Y7 as BlueprintLiveData, N3 as EBannerStatus, P3 as EBannerVariant, q7 as NB_BLUEPRINT_CONTEXT, J7 as NB_BLUEPRINT_CONTROLLER, Y3 as NB_LAYER_ATTRIBUTE, X3 as NB_LAYER_INJECTION_KEY, NKt as NB_MAX_LAYER, MKt as NB_MIN_LAYER, pe as NbBadge, F3 as NbBanner, J3 as NbBarChart, t9 as NbBlueprint, r9 as NbBlueprintBackground, o9 as NbBlueprintCard, s9 as NbBlueprintControls, l9 as NbBlueprintMinimap, t6 as NbBoard, G7 as NbBottomPanel, n6 as NbBreadcrumbs, a6 as NbButton, o6 as NbCalendar, m6 as NbCheckbox, g6 as NbCheckboxGroup, _6 as NbColorStrip, o7 as NbCommandPalette, R9 as NbCommandPalettePlugin, v6 as NbDataTable, f6 as NbDatePicker, Q5 as NbField, T6 as NbFlag, w6 as NbGanttChart, d6 as NbGrid, Z as NbIcon, j6 as NbInfoHint, N6 as NbInterpolationChart, X5 as NbJsonTree, c6 as NbLabel, d7 as NbLayer, Z5 as NbLineChart, $5 as NbMenu, e7 as NbMenuBar, t7 as NbMenuBarItem, r7 as NbMenuDivider, n7 as NbMenuItem, u6 as NbMessage, l7 as NbModal, s7 as NbNubiscoMark, c7 as NbNubiscoPlatformMark, u7 as NbNumberInput, b6 as NbPagination, f7 as NbPanel, p7 as NbPieChart, g7 as NbProgressBar, v7 as NbRadio, y6 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, i7 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, J4t as NubiscoUILabs, h9 as TOUR_STEP_ATTRIBUTE, u9 as WALKTHROUGH_STORAGE_PREFIX, Z3 as clampLayer, X7 as computeAutoLayout, I4t as configureTheme, p9 as createDefaultWalkthroughStorage, d9 as createLocalStorageWalkthroughStorage, f9 as createMemoryWalkthroughStorage, Y4t as default, F9 as dismissAllTooltips, v9 as isTargetVisible, Q3 as layerClassFor, k9 as nbTooltipDirective, L9 as nbTourStepDirective, g2t as prefersReducedMotion, $3 as probeLayerFromDom, QGt as registerIcons, _9 as resolveTourTarget, g9 as tourStepSelector, $Gt as unregisterIcon, n9 as useBlueprint, jQt as useCommandPalette, A4t as useContextMenu, IKt as useLayer, a9 as useReducedMotion, e6 as useSurfaceLayer, L4t as useTheme, m9 as useWalkthrough };
|