@n8n/design-system 2.21.0 → 2.22.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.
|
@@ -54981,33 +54981,38 @@ var XPe = { render: YPe }, ZPe = /* @__PURE__ */ X(/* @__PURE__ */ y({
|
|
|
54981
54981
|
},
|
|
54982
54982
|
emits: ["itemClick", "select"],
|
|
54983
54983
|
setup(e, { expose: t, emit: n }) {
|
|
54984
|
-
let i = V(null),
|
|
54984
|
+
let i = e, a = V(null), o = y({
|
|
54985
54985
|
name: "NoopIcon",
|
|
54986
54986
|
render: () => null
|
|
54987
|
-
}),
|
|
54988
|
-
i.
|
|
54989
|
-
|
|
54990
|
-
i.
|
|
54991
|
-
|
|
54992
|
-
|
|
54993
|
-
|
|
54994
|
-
|
|
54987
|
+
}), s = n, c = Ce(), m = (e) => !!c[`item.append.${e}`], h = l(() => {
|
|
54988
|
+
let e = i.menu.findIndex((e) => !e.isDivider && e.id === "workflow"), t = i.menu.findIndex((e) => !e.isDivider && e.id === "agent");
|
|
54989
|
+
if (e === -1 || t === -1 || t === e + 1) return i.menu;
|
|
54990
|
+
let n = [...i.menu], [r] = n.splice(t, 1), a = n.findIndex((e) => !e.isDivider && e.id === "workflow");
|
|
54991
|
+
return n.splice(a + 1, 0, r), n;
|
|
54992
|
+
}), v = () => {
|
|
54993
|
+
a.value?.open(T7);
|
|
54994
|
+
}, b = () => {
|
|
54995
|
+
a.value?.close(T7);
|
|
54996
|
+
}, x = V("click"), S = (e) => {
|
|
54997
|
+
e === T7 && (x.value = "hover");
|
|
54998
|
+
}, C = (e) => {
|
|
54999
|
+
e === T7 && (x.value = "click");
|
|
54995
55000
|
};
|
|
54996
55001
|
return t({
|
|
54997
|
-
open:
|
|
54998
|
-
close:
|
|
55002
|
+
open: v,
|
|
55003
|
+
close: b
|
|
54999
55004
|
}), (t, n) => (B(), u(G(Tje), {
|
|
55000
55005
|
ref_key: "menuRef",
|
|
55001
|
-
ref:
|
|
55006
|
+
ref: a,
|
|
55002
55007
|
mode: "horizontal",
|
|
55003
55008
|
"unique-opened": "",
|
|
55004
|
-
"menu-trigger":
|
|
55009
|
+
"menu-trigger": x.value,
|
|
55005
55010
|
ellipsis: !1,
|
|
55006
55011
|
class: N(t.$style.dropdown),
|
|
55007
|
-
onSelect: n[1] ||= (e) =>
|
|
55008
|
-
onKeyup: je(
|
|
55009
|
-
onOpen:
|
|
55010
|
-
onClose:
|
|
55012
|
+
onSelect: n[1] ||= (e) => s("select", e),
|
|
55013
|
+
onKeyup: je(b, ["escape"]),
|
|
55014
|
+
onOpen: S,
|
|
55015
|
+
onClose: C
|
|
55011
55016
|
}, {
|
|
55012
55017
|
default: q(() => [_(G(ow), {
|
|
55013
55018
|
index: T7,
|
|
@@ -55018,13 +55023,13 @@ var XPe = { render: YPe }, ZPe = /* @__PURE__ */ X(/* @__PURE__ */ y({
|
|
|
55018
55023
|
teleported: e.teleport
|
|
55019
55024
|
}, {
|
|
55020
55025
|
title: q(() => [U(t.$slots, "default")]),
|
|
55021
|
-
default: q(() => [(B(!0), f(r, null, H(
|
|
55026
|
+
default: q(() => [(B(!0), f(r, null, H(h.value, (e) => (B(), f(r, { key: e.id }, [e.isDivider ? (B(), f("hr", yFe)) : e.submenu ? (B(), u(G(ow), {
|
|
55022
55027
|
key: 1,
|
|
55023
55028
|
"popper-class": t.$style.nestedSubmenu,
|
|
55024
55029
|
index: e.id,
|
|
55025
55030
|
"popper-offset": -10,
|
|
55026
|
-
"expand-close-icon": G(
|
|
55027
|
-
"expand-open-icon": G(
|
|
55031
|
+
"expand-close-icon": G(o),
|
|
55032
|
+
"expand-open-icon": G(o),
|
|
55028
55033
|
"data-test-id": "navigation-submenu"
|
|
55029
55034
|
}, {
|
|
55030
55035
|
title: q(() => [p("div", { class: N(t.$style.subMenuTitle) }, [U(t.$slots, "item-icon", j({ ref_for: !0 }, { item: e }), () => [e.icon ? (B(), f(r, { key: 0 }, [typeof e.icon == "string" || e.icon.type === "icon" ? (B(), u(G(Ni), {
|
|
@@ -55051,7 +55056,7 @@ var XPe = { render: YPe }, ZPe = /* @__PURE__ */ X(/* @__PURE__ */ y({
|
|
|
55051
55056
|
"data-test-id": "navigation-submenu-item",
|
|
55052
55057
|
index: i.id,
|
|
55053
55058
|
disabled: i.disabled,
|
|
55054
|
-
onClick: n[0] ||= (e) =>
|
|
55059
|
+
onClick: n[0] ||= (e) => s("itemClick", e)
|
|
55055
55060
|
}, {
|
|
55056
55061
|
default: q(() => [
|
|
55057
55062
|
U(t.$slots, "item-icon", j({ ref_for: !0 }, { item: i }), () => [i.icon ? (B(), f(r, { key: 0 }, [typeof i.icon == "string" || i.icon.type === "icon" ? (B(), u(G(Ni), {
|
|
@@ -55084,7 +55089,7 @@ var XPe = { render: YPe }, ZPe = /* @__PURE__ */ X(/* @__PURE__ */ y({
|
|
|
55084
55089
|
}, null, 8, ["class"])]),
|
|
55085
55090
|
_: 1
|
|
55086
55091
|
}, 8, ["content", "class"])) : d("", !0),
|
|
55087
|
-
|
|
55092
|
+
m(e.id) ? (B(), f("span", {
|
|
55088
55093
|
key: 1,
|
|
55089
55094
|
class: N(t.$style.menuItemAppend)
|
|
55090
55095
|
}, [U(t.$slots, `item.append.${e.id}`, j({ ref_for: !0 }, { item: e }))], 2)) : d("", !0)
|
|
@@ -55108,7 +55113,7 @@ var XPe = { render: YPe }, ZPe = /* @__PURE__ */ X(/* @__PURE__ */ y({
|
|
|
55108
55113
|
disabled: e.disabled,
|
|
55109
55114
|
"data-test-id": "navigation-menu-item"
|
|
55110
55115
|
}, {
|
|
55111
|
-
default: q(() => [g(W(e.title) + " ", 1),
|
|
55116
|
+
default: q(() => [g(W(e.title) + " ", 1), m(e.id) ? (B(), f("span", {
|
|
55112
55117
|
key: 0,
|
|
55113
55118
|
class: N(t.$style.menuItemAppend)
|
|
55114
55119
|
}, [U(t.$slots, `item.append.${e.id}`, j({ ref_for: !0 }, { item: e }))], 2)) : d("", !0)]),
|
|
@@ -55167,12 +55172,15 @@ var XPe = { render: YPe }, ZPe = /* @__PURE__ */ X(/* @__PURE__ */ y({
|
|
|
55167
55172
|
"data-test-id": "node-creator-item-name",
|
|
55168
55173
|
textContent: W(e.title)
|
|
55169
55174
|
}, null, 10, SFe),
|
|
55170
|
-
e.tag?.
|
|
55175
|
+
e.tag?.preview ? (B(), u(C7, {
|
|
55171
55176
|
key: 0,
|
|
55177
|
+
size: "small"
|
|
55178
|
+
})) : e.tag?.pill ? (B(), u(b7, {
|
|
55179
|
+
key: 1,
|
|
55172
55180
|
size: "small",
|
|
55173
55181
|
text: e.tag.text
|
|
55174
55182
|
}, null, 8, ["text"])) : e.tag ? (B(), u(G(xC), {
|
|
55175
|
-
key:
|
|
55183
|
+
key: 2,
|
|
55176
55184
|
class: N(n.$style.tag),
|
|
55177
55185
|
"disable-transitions": "",
|
|
55178
55186
|
size: "small",
|
|
@@ -55183,14 +55191,14 @@ var XPe = { render: YPe }, ZPe = /* @__PURE__ */ X(/* @__PURE__ */ y({
|
|
|
55183
55191
|
_: 1
|
|
55184
55192
|
}, 8, ["class", "type"])) : d("", !0),
|
|
55185
55193
|
e.isNew ? (B(), u(G(q_), {
|
|
55186
|
-
key:
|
|
55194
|
+
key: 3,
|
|
55187
55195
|
theme: "success"
|
|
55188
55196
|
}, {
|
|
55189
55197
|
default: q(() => [g(W(G(t)("nodeCreatorNode.new")), 1)]),
|
|
55190
55198
|
_: 1
|
|
55191
55199
|
})) : d("", !0),
|
|
55192
55200
|
e.isTrigger ? (B(), u(G(Ni), {
|
|
55193
|
-
key:
|
|
55201
|
+
key: 4,
|
|
55194
55202
|
icon: "bolt-filled",
|
|
55195
55203
|
size: "xsmall",
|
|
55196
55204
|
title: G(t)("nodeCreator.nodeItem.triggerIconTitle"),
|
|
@@ -55225,7 +55233,7 @@ var XPe = { render: YPe }, ZPe = /* @__PURE__ */ X(/* @__PURE__ */ y({
|
|
|
55225
55233
|
description: "_description_1com9_62",
|
|
55226
55234
|
aiIcon: "_aiIcon_1com9_70",
|
|
55227
55235
|
triggerIcon: "_triggerIcon_1com9_74"
|
|
55228
|
-
} }], ["__scopeId", "data-v-
|
|
55236
|
+
} }], ["__scopeId", "data-v-2d8a72b9"]]), TFe = ["src"], E7 = /* @__PURE__ */ X(/* @__PURE__ */ y({
|
|
55229
55237
|
__name: "IconContent",
|
|
55230
55238
|
props: {
|
|
55231
55239
|
type: {},
|