@nubisco/ui 2.8.0 → 2.9.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.types.d.ts +38 -4
- package/dist/components/BlueprintCard.types.d.ts.map +1 -1
- package/dist/components/BlueprintCard.vue.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +40 -16
- package/dist/ui.css +1 -1
- package/package.json +1 -1
- package/src/styles/_theme.scss +2 -3
package/dist/index.mjs
CHANGED
|
@@ -25632,7 +25632,7 @@ var _2t = ["data-card-id", "aria-label"], v2t = { class: "nb-blueprint-card__por
|
|
|
25632
25632
|
return typeof r.portLevels?.[e] == "number";
|
|
25633
25633
|
}
|
|
25634
25634
|
function O(e) {
|
|
25635
|
-
let t = { "--pin-color":
|
|
25635
|
+
let t = { "--pin-color": ue(e.port) }, n = r.portLevels?.[e.portId];
|
|
25636
25636
|
return typeof n == "number" && (t["--pin-level"] = `${(Math.max(0, Math.min(1, n)) * 100).toFixed(1)}%`), t;
|
|
25637
25637
|
}
|
|
25638
25638
|
let k = {
|
|
@@ -25741,25 +25741,47 @@ var _2t = ["data-card-id", "aria-label"], v2t = { class: "nb-blueprint-card__por
|
|
|
25741
25741
|
"audio:mono": "pill",
|
|
25742
25742
|
"audio:stereo": "pill",
|
|
25743
25743
|
"audio:bus": "pill",
|
|
25744
|
-
midi: "
|
|
25745
|
-
"midi:rechannelized": "
|
|
25746
|
-
control: "
|
|
25744
|
+
midi: "pill",
|
|
25745
|
+
"midi:rechannelized": "pill",
|
|
25746
|
+
control: "pill",
|
|
25747
25747
|
entity: "pill",
|
|
25748
|
-
number: "
|
|
25749
|
-
vector3: "
|
|
25750
|
-
color: "
|
|
25751
|
-
asset: "
|
|
25748
|
+
number: "pill",
|
|
25749
|
+
vector3: "pill",
|
|
25750
|
+
color: "pill",
|
|
25751
|
+
asset: "pill",
|
|
25752
25752
|
any: "pill"
|
|
25753
|
+
}, le = {
|
|
25754
|
+
geometry: "analog",
|
|
25755
|
+
celestial: "analog",
|
|
25756
|
+
lighting: "analog",
|
|
25757
|
+
effect: "analog",
|
|
25758
|
+
surface: "analog",
|
|
25759
|
+
audio: "analog",
|
|
25760
|
+
"audio:mono": "analog",
|
|
25761
|
+
"audio:stereo": "analog",
|
|
25762
|
+
"audio:bus": "analog",
|
|
25763
|
+
midi: "digital",
|
|
25764
|
+
"midi:rechannelized": "digital",
|
|
25765
|
+
control: "digital",
|
|
25766
|
+
entity: "digital",
|
|
25767
|
+
number: "analog",
|
|
25768
|
+
vector3: "analog",
|
|
25769
|
+
color: "digital",
|
|
25770
|
+
asset: "digital",
|
|
25771
|
+
any: "analog"
|
|
25753
25772
|
};
|
|
25754
|
-
function
|
|
25773
|
+
function ue(e) {
|
|
25755
25774
|
return e.color ?? ce[e.dataType ?? "any"] ?? ce.any;
|
|
25756
25775
|
}
|
|
25757
|
-
function
|
|
25776
|
+
function de(e) {
|
|
25758
25777
|
return e.shape ?? X[e.dataType ?? "any"] ?? "pill";
|
|
25759
25778
|
}
|
|
25760
|
-
function
|
|
25779
|
+
function fe(e) {
|
|
25761
25780
|
return e.size ?? "md";
|
|
25762
25781
|
}
|
|
25782
|
+
function pe(e) {
|
|
25783
|
+
return e.signal ?? le[e.dataType ?? "any"] ?? "analog";
|
|
25784
|
+
}
|
|
25763
25785
|
return (t, r) => (E(), l("div", {
|
|
25764
25786
|
class: b(["nb-blueprint-card", [`nb-blueprint-card--density-${h.value}`, {
|
|
25765
25787
|
"nb-blueprint-card--selected": e.selected,
|
|
@@ -25821,8 +25843,9 @@ var _2t = ["data-card-id", "aria-label"], v2t = { class: "nb-blueprint-card__por
|
|
|
25821
25843
|
"data-port": `${e.id}:${t.portId}`,
|
|
25822
25844
|
"data-port-data-type": t.port.dataType ?? "any",
|
|
25823
25845
|
class: b(["nb-blueprint-card__port nb-blueprint-card__port--left", [
|
|
25824
|
-
`nb-blueprint-card__port--${
|
|
25825
|
-
`nb-blueprint-card__port--size-${
|
|
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)}`,
|
|
25826
25849
|
t.port.required ? "nb-blueprint-card__port--required" : "",
|
|
25827
25850
|
t.channel ? "nb-blueprint-card__port--channel" : "",
|
|
25828
25851
|
J(t.portId) ? "nb-blueprint-card__port--connected" : "",
|
|
@@ -25988,8 +26011,9 @@ var _2t = ["data-card-id", "aria-label"], v2t = { class: "nb-blueprint-card__por
|
|
|
25988
26011
|
"data-port": `${e.id}:${t.portId}`,
|
|
25989
26012
|
"data-port-data-type": t.port.dataType ?? "any",
|
|
25990
26013
|
class: b(["nb-blueprint-card__port nb-blueprint-card__port--right", [
|
|
25991
|
-
`nb-blueprint-card__port--${
|
|
25992
|
-
`nb-blueprint-card__port--size-${
|
|
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)}`,
|
|
25993
26017
|
t.channel ? "nb-blueprint-card__port--channel" : "",
|
|
25994
26018
|
J(t.portId) ? "nb-blueprint-card__port--connected" : "",
|
|
25995
26019
|
te(t.portId) ? "nb-blueprint-card__port--active" : "",
|
|
@@ -26001,7 +26025,7 @@ var _2t = ["data-card-id", "aria-label"], v2t = { class: "nb-blueprint-card__por
|
|
|
26001
26025
|
}, null, 14, H2t)], 40, V2t), t.showLabel ? (E(), l("span", U2t, I(se(t)), 1)) : c("", !0)]))), 128))])
|
|
26002
26026
|
], 46, _2t));
|
|
26003
26027
|
}
|
|
26004
|
-
}), [["__scopeId", "data-v-
|
|
26028
|
+
}), [["__scopeId", "data-v-1c72f618"]]), q2t = { class: "nb-blueprint-controls__group" }, J2t = {
|
|
26005
26029
|
key: 0,
|
|
26006
26030
|
class: "nb-blueprint-controls__group"
|
|
26007
26031
|
}, s9 = /* @__PURE__ */ X(/* @__PURE__ */ m({
|