@nubisco/ui 1.26.0 → 1.26.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/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +41 -41
- package/dist/index.mjs.map +1 -1
- package/dist/ui.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -20767,22 +20767,22 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20767
20767
|
"title",
|
|
20768
20768
|
"onMousedown",
|
|
20769
20769
|
"onMouseup"
|
|
20770
|
-
], wXt = { class: "nb-blueprint-
|
|
20770
|
+
], wXt = { class: "nb-blueprint-card__inner" }, TXt = { class: "nb-blueprint-card__body" }, EXt = { class: "nb-blueprint-card__header" }, DXt = ["title"], OXt = { class: "nb-blueprint-card__title-group" }, kXt = { class: "nb-blueprint-card__name" }, AXt = {
|
|
20771
20771
|
key: 0,
|
|
20772
20772
|
class: "nb-blueprint-card__tag"
|
|
20773
|
-
},
|
|
20773
|
+
}, jXt = ["checked"], MXt = {
|
|
20774
20774
|
key: 0,
|
|
20775
20775
|
class: "nb-blueprint-card__preview"
|
|
20776
|
-
},
|
|
20776
|
+
}, NXt = {
|
|
20777
20777
|
key: 1,
|
|
20778
20778
|
class: "nb-blueprint-card__params"
|
|
20779
|
-
},
|
|
20779
|
+
}, PXt = { class: "nb-blueprint-card__row-label" }, FXt = { class: "nb-blueprint-card__row-value" }, IXt = {
|
|
20780
20780
|
key: 0,
|
|
20781
20781
|
class: "nb-blueprint-card__row-unit"
|
|
20782
|
-
},
|
|
20782
|
+
}, LXt = {
|
|
20783
20783
|
key: 2,
|
|
20784
20784
|
class: "nb-blueprint-card__content"
|
|
20785
|
-
},
|
|
20785
|
+
}, RXt = { class: "nb-blueprint-card__ports nb-blueprint-card__ports--right" }, zXt = [
|
|
20786
20786
|
"data-port",
|
|
20787
20787
|
"title",
|
|
20788
20788
|
"onMousedown",
|
|
@@ -20891,7 +20891,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20891
20891
|
u("div", SXt, [(T(!0), l(n, null, k(r.value, (n) => (T(), l("div", {
|
|
20892
20892
|
key: n.id,
|
|
20893
20893
|
"data-port": `${e.id}:${n.id}`,
|
|
20894
|
-
class: b(["nb-blueprint-card__port", [
|
|
20894
|
+
class: b(["nb-blueprint-card__port nb-blueprint-card__port--left", [
|
|
20895
20895
|
`nb-blueprint-card__port--${_(n)}`,
|
|
20896
20896
|
n.required ? "nb-blueprint-card__port--required" : "",
|
|
20897
20897
|
p(n.id) ? "nb-blueprint-card__port--connected" : ""
|
|
@@ -20909,7 +20909,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20909
20909
|
type: "input"
|
|
20910
20910
|
}), ["stop"])
|
|
20911
20911
|
}, null, 46, CXt))), 128))]),
|
|
20912
|
-
u("div", wXt, [u("div", TXt, [
|
|
20912
|
+
u("div", wXt, [u("div", TXt, [u("div", EXt, [
|
|
20913
20913
|
u("button", {
|
|
20914
20914
|
class: "nb-blueprint-card__collapse",
|
|
20915
20915
|
title: e.collapsed ? "Expand" : "Collapse",
|
|
@@ -20921,11 +20921,11 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20921
20921
|
fill: "none",
|
|
20922
20922
|
stroke: "currentColor",
|
|
20923
20923
|
"stroke-width": "1.5"
|
|
20924
|
-
}, [u("polyline", { points: "4 6 8 10 12 6" })], -1)]], 8,
|
|
20925
|
-
u("div",
|
|
20924
|
+
}, [u("polyline", { points: "4 6 8 10 12 6" })], -1)]], 8, DXt),
|
|
20925
|
+
u("div", OXt, [u("span", kXt, [d(P(e.title) + " ", 1), e.status && e.status !== "none" ? (T(), l("span", {
|
|
20926
20926
|
key: 0,
|
|
20927
20927
|
class: b(["nb-blueprint-card__status", `nb-blueprint-card__status--${e.status}`])
|
|
20928
|
-
}, null, 2)) : c("", !0)]), e.category ? (T(), l("span",
|
|
20928
|
+
}, null, 2)) : c("", !0)]), e.category ? (T(), l("span", AXt, P(a.value), 1)) : c("", !0)]),
|
|
20929
20929
|
e.enabled === void 0 ? c("", !0) : (T(), l("label", {
|
|
20930
20930
|
key: 0,
|
|
20931
20931
|
class: "nb-blueprint-card__toggle",
|
|
@@ -20934,7 +20934,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20934
20934
|
type: "checkbox",
|
|
20935
20935
|
checked: e.enabled,
|
|
20936
20936
|
onChange: o[1] ||= (n) => t.$emit("toggle", e.id, n.target.checked)
|
|
20937
|
-
}, null, 40,
|
|
20937
|
+
}, null, 40, jXt), o[6] ||= u("span", { class: "nb-blueprint-card__toggle-track" }, null, -1)])),
|
|
20938
20938
|
e.removable ? (T(), l("button", {
|
|
20939
20939
|
key: 1,
|
|
20940
20940
|
class: "nb-blueprint-card__remove",
|
|
@@ -20942,25 +20942,25 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20942
20942
|
onClick: o[3] ||= W((n) => t.$emit("remove", e.id), ["stop"])
|
|
20943
20943
|
}, " × ")) : c("", !0)
|
|
20944
20944
|
]), e.collapsed ? c("", !0) : (T(), l(n, { key: 0 }, [
|
|
20945
|
-
e.preview ? (T(), l("span",
|
|
20946
|
-
e.parameters && e.parameters.length ? (T(), l("div",
|
|
20945
|
+
e.preview ? (T(), l("span", MXt, P(e.preview), 1)) : c("", !0),
|
|
20946
|
+
e.parameters && e.parameters.length ? (T(), l("div", NXt, [(T(!0), l(n, null, k(e.parameters, (e) => (T(), l("div", {
|
|
20947
20947
|
key: e.label,
|
|
20948
20948
|
class: "nb-blueprint-card__row"
|
|
20949
20949
|
}, [
|
|
20950
|
-
u("span",
|
|
20951
|
-
u("span",
|
|
20950
|
+
u("span", PXt, P(e.label), 1),
|
|
20951
|
+
u("span", FXt, [d(P(e.value) + " ", 1), e.unit ? (T(), l("em", IXt, P(e.unit), 1)) : c("", !0)]),
|
|
20952
20952
|
e.bar === void 0 ? c("", !0) : (T(), l("div", {
|
|
20953
20953
|
key: 0,
|
|
20954
20954
|
class: "nb-blueprint-card__row-bar",
|
|
20955
20955
|
style: x({ "--bar-progress": `${e.bar}%` })
|
|
20956
20956
|
}, null, 4))
|
|
20957
20957
|
]))), 128))])) : c("", !0),
|
|
20958
|
-
t.$slots.default ? (T(), l("div",
|
|
20959
|
-
], 64))]),
|
|
20960
|
-
u("div",
|
|
20958
|
+
t.$slots.default ? (T(), l("div", LXt, [A(t.$slots, "default", {}, void 0, !0)])) : c("", !0)
|
|
20959
|
+
], 64))])]),
|
|
20960
|
+
u("div", RXt, [(T(!0), l(n, null, k(i.value, (n) => (T(), l("div", {
|
|
20961
20961
|
key: n.id,
|
|
20962
20962
|
"data-port": `${e.id}:${n.id}`,
|
|
20963
|
-
class: b(["nb-blueprint-card__port", [`nb-blueprint-card__port--${_(n)}`, p(n.id) ? "nb-blueprint-card__port--connected" : ""]]),
|
|
20963
|
+
class: b(["nb-blueprint-card__port nb-blueprint-card__port--right", [`nb-blueprint-card__port--${_(n)}`, p(n.id) ? "nb-blueprint-card__port--connected" : ""]]),
|
|
20964
20964
|
style: x({ "--pin-color": g(n) }),
|
|
20965
20965
|
title: n.label,
|
|
20966
20966
|
onMousedown: W((r) => t.$emit("port-mousedown", {
|
|
@@ -20973,10 +20973,10 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
20973
20973
|
portId: n.id,
|
|
20974
20974
|
type: "output"
|
|
20975
20975
|
}), ["stop"])
|
|
20976
|
-
}, null, 46,
|
|
20976
|
+
}, null, 46, zXt))), 128))])
|
|
20977
20977
|
], 46, xXt));
|
|
20978
20978
|
}
|
|
20979
|
-
}), [["__scopeId", "data-v-
|
|
20979
|
+
}), [["__scopeId", "data-v-1c26a64c"]]), BXt = {
|
|
20980
20980
|
NbAiLabel: le,
|
|
20981
20981
|
NbBadge: pe,
|
|
20982
20982
|
NbBarChart: Re,
|
|
@@ -21021,12 +21021,12 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
|
|
|
21021
21021
|
NbShellPanel: R9,
|
|
21022
21022
|
NbBlueprint: H9,
|
|
21023
21023
|
NbBlueprintCard: U9
|
|
21024
|
-
},
|
|
21025
|
-
Object.entries(
|
|
21024
|
+
}, VXt = { install(e) {
|
|
21025
|
+
Object.entries(BXt).forEach(([t, n]) => {
|
|
21026
21026
|
e.component(t, n);
|
|
21027
21027
|
});
|
|
21028
|
-
} },
|
|
21029
|
-
function
|
|
21028
|
+
} }, HXt = /* @__PURE__ */ ie({ default: () => UXt });
|
|
21029
|
+
function UXt(e) {
|
|
21030
21030
|
e.directive("nb-context-menu", {
|
|
21031
21031
|
mounted(e, t) {
|
|
21032
21032
|
let n = (e) => {
|
|
@@ -21061,7 +21061,7 @@ function W9(e) {
|
|
|
21061
21061
|
}
|
|
21062
21062
|
//#endregion
|
|
21063
21063
|
//#region src/directives/ToolTip.directive.ts
|
|
21064
|
-
var
|
|
21064
|
+
var WXt = /* @__PURE__ */ ie({ default: () => J9 }), G9 = /* @__PURE__ */ new Set(), K9 = (e) => {
|
|
21065
21065
|
if (Array.isArray(e)) return e.map((e) => K9(e)).join("");
|
|
21066
21066
|
if (!e || typeof e != "object" || !e.component) return "";
|
|
21067
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));
|
|
@@ -21074,7 +21074,7 @@ var UXt = /* @__PURE__ */ ie({ default: () => J9 }), G9 = /* @__PURE__ */ new Se
|
|
|
21074
21074
|
mounted(e, t) {
|
|
21075
21075
|
let n;
|
|
21076
21076
|
e.__showTooltip__ = () => {
|
|
21077
|
-
clearTimeout(n), e.__tooltipBinding__ &&
|
|
21077
|
+
clearTimeout(n), e.__tooltipBinding__ && GXt(e, e.__tooltipBinding__);
|
|
21078
21078
|
}, e.__hideTooltip__ = (t = 150) => {
|
|
21079
21079
|
n = setTimeout(() => {
|
|
21080
21080
|
X9(e, t <= 0);
|
|
@@ -21084,7 +21084,7 @@ var UXt = /* @__PURE__ */ ie({ default: () => J9 }), G9 = /* @__PURE__ */ new Se
|
|
|
21084
21084
|
}, e.__tooltipBinding__ = t.value, e.__showHandler__ = () => e.__showTooltip__?.(), e.__hideHandler__ = () => e.__hideTooltip__?.(), e.addEventListener("mouseenter", e.__showHandler__), e.addEventListener("mouseleave", e.__hideHandler__), e.addEventListener("mousemove", e.__mouseMove__), window.addEventListener("scroll", e.__hideHandler__);
|
|
21085
21085
|
},
|
|
21086
21086
|
updated(e, t) {
|
|
21087
|
-
e.__tooltipBinding__ = t.value, t.value ? e.tooltipElement &&
|
|
21087
|
+
e.__tooltipBinding__ = t.value, t.value ? e.tooltipElement && KXt(e, t.value) : X9(e, !0);
|
|
21088
21088
|
},
|
|
21089
21089
|
unmounted(e) {
|
|
21090
21090
|
X9(e, !0), e.__showHandler__ && e.removeEventListener("mouseenter", e.__showHandler__), e.__hideHandler__ && e.removeEventListener("mouseleave", e.__hideHandler__), e.__hideHandler__ && window.removeEventListener("scroll", e.__hideHandler__);
|
|
@@ -21096,7 +21096,7 @@ var UXt = /* @__PURE__ */ ie({ default: () => J9 }), G9 = /* @__PURE__ */ new Se
|
|
|
21096
21096
|
<div class="nb-tooltip-body">${q9(t)}</div>
|
|
21097
21097
|
<div class="nb-tooltip-tip">${q9(n)}</div>
|
|
21098
21098
|
</div>
|
|
21099
|
-
`,
|
|
21099
|
+
`, GXt = (e, { header: t, body: n, tip: r, flavor: i = "default", delay: a = 400, animationTime: o = 300, position: s, overflowOnly: c, classExtra: l }) => {
|
|
21100
21100
|
let u = e.tooltipElement;
|
|
21101
21101
|
if (u && u.remove(), c) {
|
|
21102
21102
|
let t = e.getBoundingClientRect();
|
|
@@ -21115,7 +21115,7 @@ var UXt = /* @__PURE__ */ ie({ default: () => J9 }), G9 = /* @__PURE__ */ new Se
|
|
|
21115
21115
|
clearTimeout(e.__showTimer__), n && (t ? n.remove() : (n.style.animation = "tooltipDisappear 200ms ease-in-out forwards", setTimeout(() => {
|
|
21116
21116
|
n.remove();
|
|
21117
21117
|
}, 200)), G9.delete(e));
|
|
21118
|
-
},
|
|
21118
|
+
}, KXt = (e, { header: t, body: n, tip: r, position: i }) => {
|
|
21119
21119
|
let a = e.tooltipElement;
|
|
21120
21120
|
a && (a.innerHTML = Y9({
|
|
21121
21121
|
header: t,
|
|
@@ -21142,11 +21142,11 @@ var UXt = /* @__PURE__ */ ie({ default: () => J9 }), G9 = /* @__PURE__ */ new Se
|
|
|
21142
21142
|
break;
|
|
21143
21143
|
}
|
|
21144
21144
|
t && (t.style.top = `${l}px`, t.style.left = `${u}px`);
|
|
21145
|
-
},
|
|
21146
|
-
"./ContextMenu.directive.ts":
|
|
21147
|
-
"./ToolTip.directive.ts":
|
|
21148
|
-
}),
|
|
21149
|
-
Object.values(
|
|
21145
|
+
}, qXt = /* @__PURE__ */ Object.assign({
|
|
21146
|
+
"./ContextMenu.directive.ts": HXt,
|
|
21147
|
+
"./ToolTip.directive.ts": WXt
|
|
21148
|
+
}), JXt = { install(e) {
|
|
21149
|
+
Object.values(qXt).forEach((t) => {
|
|
21150
21150
|
typeof t.default == "function" && t.default(e);
|
|
21151
21151
|
});
|
|
21152
21152
|
} }, Q9 = { install(e) {
|
|
@@ -21155,7 +21155,7 @@ var UXt = /* @__PURE__ */ ie({ default: () => J9 }), G9 = /* @__PURE__ */ new Se
|
|
|
21155
21155
|
} };
|
|
21156
21156
|
//#endregion
|
|
21157
21157
|
//#region src/composables/useContextMenu.composable.ts
|
|
21158
|
-
function
|
|
21158
|
+
function YXt() {
|
|
21159
21159
|
let e = O(!1), t = O({
|
|
21160
21160
|
x: 0,
|
|
21161
21161
|
y: 0
|
|
@@ -21185,15 +21185,15 @@ function JXt() {
|
|
|
21185
21185
|
}
|
|
21186
21186
|
//#endregion
|
|
21187
21187
|
//#region src/labs.ts
|
|
21188
|
-
var $9 = /* @__PURE__ */ Object.assign({}),
|
|
21188
|
+
var $9 = /* @__PURE__ */ Object.assign({}), XXt = { install(e) {
|
|
21189
21189
|
Object.keys($9).forEach((t) => {
|
|
21190
21190
|
let n = `Nb${t.replace(/(.+\/)(\w+)(\.vue)$/, "$2")}`, r = $9[t];
|
|
21191
21191
|
e.component(n, r.default);
|
|
21192
21192
|
});
|
|
21193
|
-
} },
|
|
21194
|
-
e.use(
|
|
21193
|
+
} }, ZXt = { install(e) {
|
|
21194
|
+
e.use(VXt), e.use(JXt), e.use(Q9);
|
|
21195
21195
|
} };
|
|
21196
21196
|
//#endregion
|
|
21197
|
-
export { pe as NbBadge, Re as NbBarChart, H9 as NbBlueprint, U9 as NbBlueprintCard, L9 as NbBottomPanel, ze as NbBreadcrumbs, L8 as NbButton, R8 as NbCheckbox, z8 as NbColorStrip, p9 as NbCommandPalette, Q9 as NbCommandPalettePlugin, W8 as NbFlag, U8 as NbGanttChart, G8 as NbGrid, I8 as NbIcon, n9 as NbJsonTree, a9 as NbLabel, r9 as NbLineChart, o9 as NbMenu, s9 as NbMenuBar, c9 as NbMenuBarItem, u9 as NbMenuDivider, l9 as NbMenuItem, h9 as NbMessage, g9 as NbModal, _9 as NbNumberInput, v9 as NbPanel, y9 as NbPieChart, x9 as NbRadio, S9 as NbSelect, C9 as NbShell, R9 as NbShellPanel, w9 as NbSidebarLink, T9 as NbSlider, O9 as NbSparkline, d9 as NbSubmenu, j9 as NbTextInput, M9 as NbToast, F9 as NbTree, I9 as NbTreeNode,
|
|
21197
|
+
export { pe as NbBadge, Re as NbBarChart, H9 as NbBlueprint, U9 as NbBlueprintCard, L9 as NbBottomPanel, ze as NbBreadcrumbs, L8 as NbButton, R8 as NbCheckbox, z8 as NbColorStrip, p9 as NbCommandPalette, Q9 as NbCommandPalettePlugin, W8 as NbFlag, U8 as NbGanttChart, G8 as NbGrid, I8 as NbIcon, n9 as NbJsonTree, a9 as NbLabel, r9 as NbLineChart, o9 as NbMenu, s9 as NbMenuBar, c9 as NbMenuBarItem, u9 as NbMenuDivider, l9 as NbMenuItem, h9 as NbMessage, g9 as NbModal, _9 as NbNumberInput, v9 as NbPanel, y9 as NbPieChart, x9 as NbRadio, S9 as NbSelect, C9 as NbShell, R9 as NbShellPanel, w9 as NbSidebarLink, T9 as NbSlider, O9 as NbSparkline, d9 as NbSubmenu, j9 as NbTextInput, M9 as NbToast, F9 as NbTree, I9 as NbTreeNode, XXt as NubiscoUILabs, ZXt as default, J9 as nbTooltipDirective, fJt as useCommandPalette, YXt as useContextMenu };
|
|
21198
21198
|
|
|
21199
21199
|
//# sourceMappingURL=index.mjs.map
|