n8n-editor-ui 1.107.3 → 1.108.1
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/assets/{AddDataStoreModal-BWJ9lPXD.js → AddDataStoreModal-BduD-_3h.js} +2 -2
- package/dist/assets/{AnimatedSpinner-DNlzAAjE.js → AnimatedSpinner-C6hUJocW.js} +1 -1
- package/dist/assets/{AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-CNykFw3C.js → AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-CPuMOvlw.js} +1 -1
- package/dist/assets/{AuthView-CBZF2tp7.js → AuthView-C11JwvOE.js} +2 -2
- package/dist/assets/{ChangePasswordView-BNZ4Lec-.js → ChangePasswordView-BB7axCnx.js} +3 -3
- package/dist/assets/CollectionParameter-Cgq5mid5.js +4 -0
- package/dist/assets/{ConsumedTokensDetails.vue_vue_type_script_setup_true_lang-CWb4OBYA.js → ConsumedTokensDetails.vue_vue_type_script_setup_true_lang-D-Jt6Gli.js} +1 -1
- package/dist/assets/{CredentialsView-CsNObRPu.js → CredentialsView-CfQzHZs_.js} +8 -8
- package/dist/assets/DataStoreActions.vue_vue_type_script_setup_true_lang-4xXQM9V0.js +83 -0
- package/dist/assets/{WorkflowActivator-22RW64G2.css → DataStoreDetailsView-B0CKO8ZR.css} +106 -323
- package/dist/assets/DataStoreDetailsView-B4_8Wywn.js +36144 -0
- package/dist/assets/{DataStoreView-BNXibrgV.js → DataStoreView-Ca7MkqMT.js} +43 -102
- package/dist/assets/{DemoFooter-DN__rQTx.js → DemoFooter-mdcYI9V4.js} +6 -6
- package/dist/assets/{EmptySharedSectionActionBox.vue_vue_type_script_setup_true_lang-BLs3shin.js → EmptySharedSectionActionBox.vue_vue_type_script_setup_true_lang-sIvwrfw-.js} +1 -1
- package/dist/assets/{EntityNotFound-DwzIV-IA.js → EntityNotFound-Y2W4TM3k.js} +1 -1
- package/dist/assets/{EntityUnAuthorised-Uk7UofGI.js → EntityUnAuthorised-DWipzXTF.js} +1 -1
- package/dist/assets/{ErrorView-2aaHp4mm.js → ErrorView-hJzoyT_-.js} +1 -1
- package/dist/assets/{EvaluationsRootView-DajOMNNe.js → EvaluationsRootView-DYV7_RjO.js} +1 -1
- package/dist/assets/{EvaluationsView-D9B7p6ca.js → EvaluationsView-CxpomFUt.js} +4 -4
- package/dist/assets/{ExecutionsTime.vue_vue_type_script_setup_true_lang-xG0FUKDV.js → ExecutionsTime.vue_vue_type_script_setup_true_lang-cu2lzua8.js} +4 -4
- package/dist/assets/{ExecutionsView-CcstUltt.js → ExecutionsView-Cr_GKQZv.js} +11 -11
- package/dist/assets/{FixedCollectionParameter-B0MexyJU.js → FixedCollectionParameter-7vnFpRXo.js} +1 -1
- package/dist/assets/{ForgotMyPasswordView-Bah9hI_a.js → ForgotMyPasswordView-n42XhNZS.js} +3 -3
- package/dist/assets/{InfoAccordion-BL8J1chC.js → InfoAccordion-B8s_JAdp.js} +2 -2
- package/dist/assets/{InsightsChartAverageRuntime-PuDIJUWO.js → InsightsChartAverageRuntime-DV_Ju7Zp.js} +4 -4
- package/dist/assets/{InsightsChartFailed-e8gNXvOD.js → InsightsChartFailed-n5LqWGkq.js} +4 -4
- package/dist/assets/{InsightsChartFailureRate-CTHQ0RyF.js → InsightsChartFailureRate-DV991eOY.js} +4 -4
- package/dist/assets/{InsightsChartTimeSaved-DnvNXWyi.js → InsightsChartTimeSaved-BvwxGS1S.js} +4 -4
- package/dist/assets/{InsightsChartTotal-DD_g0FlT.js → InsightsChartTotal-BOWuHwMh.js} +4 -4
- package/dist/assets/{InsightsDashboard-Dd6ng80b.js → InsightsDashboard-Bj79r2Dt.js} +10 -10
- package/dist/assets/{InsightsPaywall-CMRBFk7F.js → InsightsPaywall-BMm5-uje.js} +1 -1
- package/dist/assets/{InsightsSummary-od7C9keP.js → InsightsSummary-CpUOsQoR.js} +2 -2
- package/dist/assets/{InsightsTableWorkflows-bDP7Feik.js → InsightsTableWorkflows-BAqDod9M.js} +6 -6
- package/dist/assets/{Logo-DccSZavS.js → Logo-Bk-9Gwmg.js} +1 -1
- package/dist/assets/{LogsPanel-B-Tmod-K.css → LogsPanel-BinqqXXh.css} +14 -17
- package/dist/assets/{LogsPanel-CgRsN0f1.js → LogsPanel-BnH3S-xQ.js} +193 -141
- package/dist/assets/{MainHeader-C7eM_NQZ.css → MainHeader-fMUCh_vG.css} +16 -16
- package/dist/assets/{MainHeader-BuQIia5G.js → MainHeader-lQ8AnThi.js} +18 -21
- package/dist/assets/{MainSidebar-DmJW5X0O.js → MainSidebar-Df5Lmhlu.js} +43 -65
- package/dist/assets/{NodeCreation-BWPpAKFI.js → NodeCreation-Cx5MUGEE.js} +4 -4
- package/dist/assets/{NodeCreator-CcJ3ERxm.js → NodeCreator-DHfJ_cC7.js} +7 -7
- package/dist/assets/{NodeDetailsView-CCLWHias.js → NodeDetailsView-Bb6YAUqN.js} +14 -14
- package/dist/assets/{NodeDetailsViewV2-Bn1PbAPe.css → NodeDetailsViewV2-J_3cfdea.css} +15 -15
- package/dist/assets/{NodeDetailsViewV2-dXQZWfaF.js → NodeDetailsViewV2-uFzp-aaB.js} +25 -25
- package/dist/assets/{NodeView-DXfRa5dq.js → NodeView-kIkCm9Kt.js} +11 -11
- package/dist/assets/ProjectBreadcrumb-B1Hnf5da.css +445 -0
- package/dist/assets/ProjectBreadcrumb-CzeQoSDB.js +381 -0
- package/dist/assets/{ProjectHeader-B9EjwT8u.js → ProjectHeader-Br8yvqkf.js} +13 -13
- package/dist/assets/{ProjectSettings-DxChDPJp.js → ProjectSettings-Dc1-Sv7W.js} +6 -6
- package/dist/assets/{PushConnectionTracker.vue_vue_type_script_setup_true_lang-CAcI_6zc.js → PushConnectionTracker.vue_vue_type_script_setup_true_lang-CC7YLT_t.js} +2 -2
- package/dist/assets/{ResourcesListLayout-BXykiIem.js → ResourcesListLayout-ozILtp5g.js} +3 -3
- package/dist/assets/{RunDataJson-DQ-wEydT.js → RunDataJson-CRFhfhsN.js} +3 -3
- package/dist/assets/{RunDataJsonActions-DkwJw6g0.js → RunDataJsonActions-rXu_dfcA.js} +14 -14
- package/dist/assets/{RunDataParsedAiContent-pthnU6es.js → RunDataParsedAiContent-CkUxt-9z.js} +2 -2
- package/dist/assets/{RunDataSearch-Dz5_0Sop.js → RunDataSearch-DYe-cpkq.js} +1 -1
- package/dist/assets/{RunDataTable-DlwkWBoU.js → RunDataTable-Bt4rcVnP.js} +6 -6
- package/dist/assets/{SamlOnboarding-BfiycZyp.js → SamlOnboarding-DoCTEauY.js} +3 -3
- package/dist/assets/{SettingsApiView-D6E5CVxl.js → SettingsApiView-DpQfNJql.js} +1 -1
- package/dist/assets/{SettingsCommunityNodesView-CQV4UbKm.js → SettingsCommunityNodesView-D_XkgBdt.js} +5 -5
- package/dist/assets/{SettingsExternalSecrets-nYlsTral.js → SettingsExternalSecrets-LhOGgphB.js} +1 -1
- package/dist/assets/{SettingsLdapView-C35iJN3N.js → SettingsLdapView-XcnXdARP.js} +1 -1
- package/dist/assets/{SettingsLogStreamingView-DF2IVwuv.js → SettingsLogStreamingView-BONkwVIB.js} +1 -1
- package/dist/assets/{SettingsPersonalView-DvTBCV7u.js → SettingsPersonalView-2XpKuDxm.js} +2 -2
- package/dist/assets/{SettingsSourceControl-Bp7kBNsF.js → SettingsSourceControl-DXyfgX21.js} +2 -2
- package/dist/assets/{SettingsSso-D3MsGwAG.js → SettingsSso-DBPl52gz.js} +2 -2
- package/dist/assets/{SettingsUsageAndPlan-BvSyV6eq.js → SettingsUsageAndPlan-CRRW-luY.js} +2 -2
- package/dist/assets/{SettingsUsersView-BKx9xQmw.js → SettingsUsersView-3nNUeWJF.js} +3 -3
- package/dist/assets/{SettingsView-N1braOIS.js → SettingsView-D_E-tbUh.js} +1 -1
- package/dist/assets/{SetupView-DB325RA-.js → SetupView-Dawd6Tdz.js} +3 -3
- package/dist/assets/{SetupWorkflowCredentialsButton-Bv6XJXPb.js → SetupWorkflowCredentialsButton-HjpsC5yu.js} +1 -1
- package/dist/assets/{SetupWorkflowFromTemplateView-DvJ9hJNk.js → SetupWorkflowFromTemplateView-BUjd1MTh.js} +4 -4
- package/dist/assets/{SigninView-Do_ZE4PN.js → SigninView-REbhOdEi.js} +3 -3
- package/dist/assets/{SignoutView-RMWoU9ka.js → SignoutView-DNWe1_WW.js} +1 -1
- package/dist/assets/{SignupView-DaSOlcHH.js → SignupView-DvAKWSMp.js} +3 -3
- package/dist/assets/{TableBase-DEfTMdd5.js → TableBase-DpxvhaiM.js} +1 -1
- package/dist/assets/{Tag-Bpg7pWwM.js → Tag-BU_1pCk_.js} +1 -1
- package/dist/assets/{Tags-BOko1qXh.js → Tags-BVRt8Mzw.js} +2 -2
- package/dist/assets/{TemplateDetails-DKT_t-A1.js → TemplateDetails-BzUhHza5.js} +2 -2
- package/dist/assets/{TemplateList-CKb1zA2_.js → TemplateList-CsrMALsz.js} +1 -1
- package/dist/assets/{TemplatesCollectionView-D47Zvruw.js → TemplatesCollectionView-DyEPNFhT.js} +7 -7
- package/dist/assets/{TemplatesSearchView-C1Drn--8.js → TemplatesSearchView-DDGn2iPF.js} +3 -3
- package/dist/assets/{TemplatesView-DLGApF1u.js → TemplatesView-Q-Ygp-l3.js} +1 -1
- package/dist/assets/{TemplatesWorkflowView-BU_v7Vg5.js → TemplatesWorkflowView-Ba-myyYc.js} +7 -7
- package/dist/assets/{TriggerPanel-BEWhhdtu.js → TriggerPanel-DWnvpkRN.js} +8 -8
- package/dist/assets/{VariablesView-CvBjaoev.js → VariablesView-D1C7kn8G.js} +9 -9
- package/dist/assets/{WorkerView-cFswonAF.js → WorkerView-7idQWzAy.js} +6 -6
- package/dist/assets/{WorkflowActivator-mjgVWRcp.js → WorkflowActivator-5rkOtBNg.js} +13 -389
- package/dist/assets/WorkflowActivator-jI4sUqXL.css +391 -0
- package/dist/assets/{WorkflowExecutionsInfoAccordion-CZwCkYjJ.js → WorkflowExecutionsInfoAccordion-CACMIZmQ.js} +3 -3
- package/dist/assets/{WorkflowExecutionsLandingPage-C5AsTUva.js → WorkflowExecutionsLandingPage-Bx1tyNO5.js} +3 -3
- package/dist/assets/{WorkflowExecutionsPreview-1HvxolBT.js → WorkflowExecutionsPreview-D7casZ5n.js} +4 -4
- package/dist/assets/{WorkflowExecutionsView-YiB3L6cC.js → WorkflowExecutionsView-CEt2aAxh.js} +8 -8
- package/dist/assets/{WorkflowHistory-DMhEstvs.js → WorkflowHistory-Ca1cITF8.js} +3 -3
- package/dist/assets/{WorkflowOnboardingView-Dnm-Rnp-.js → WorkflowOnboardingView-Dj5r1TEe.js} +1 -1
- package/dist/assets/{WorkflowPreview-Dy8KQCnA.js → WorkflowPreview-BM8KajvD.js} +1 -1
- package/dist/assets/{WorkflowsView-eYGsq80b.css → WorkflowsView-BuvoAeDm.css} +18 -17
- package/dist/assets/{WorkflowsView-Cv689d2r.js → WorkflowsView-CtEZYf3I.js} +24 -23
- package/dist/assets/{canvas-DBxg3FGB.js → canvas-D0IR7_I9.js} +1 -1
- package/dist/assets/{chartjs.utils-ziIypBRK.js → chartjs.utils-Cl3MP1kj.js} +2 -2
- package/dist/assets/{core-BQX74yIJ.js → core-ChTWffJl.js} +9 -8
- package/dist/assets/{dataStore.store-BPclFpMe.js → dataStore.store-TYb453Ex.js} +57 -6
- package/dist/assets/{en-CdefH_p-.js → en-BGDurvS-.js} +25 -9
- package/dist/assets/{global-link-actions-BgqtAMjH.js → global-link-actions-DVZ42e62.js} +1 -1
- package/dist/assets/{index-BFyMw9-0.css → index-C6NR226r.css} +213 -224
- package/dist/assets/{index-eiGMGof4.js → index-DuT-FIl1.js} +6093 -5539
- package/dist/assets/{index-D4wn1X5v.js → index-rj5i1dCk.js} +1 -1
- package/dist/assets/{pickBy-D-ZGPPK6.js → pickBy-Dt7YGwxv.js} +1 -1
- package/dist/assets/{polyfills-eMEFRc79.js → polyfills-BhZQ1FDI.js} +44 -0
- package/dist/assets/{readyToRunWorkflows.store-BAFBPhWS.js → readyToRunWorkflows.store-BMekdydj.js} +1 -1
- package/dist/assets/{templateActions-BI7pkM1w.js → templateActions-BJtozPHh.js} +1 -1
- package/dist/assets/{typescript.worker-ku8s_Oaf.js → typescript.worker-BcoVIdo9.js} +8 -8
- package/dist/assets/{useBeforeUnload-BjekgFaf.js → useBeforeUnload-_0Sc5GzG.js} +1 -1
- package/dist/assets/{useExecutionDebugging-B38snoEK.js → useExecutionDebugging-BE0aGBWM.js} +1 -1
- package/dist/assets/{useImportCurlCommand-Cm4bDewX.js → useImportCurlCommand-dBmf2eJ5.js} +35 -35
- package/dist/assets/{useProjectPages-ALKmwRBA.js → useProjectPages-BkXBOvhp.js} +1 -1
- package/dist/assets/{usePushConnection-CEXhOxd5.js → usePushConnection-_wOU-QzC.js} +3 -3
- package/dist/assets/{useWorkflowActivate-B8jSp35O.js → useWorkflowActivate-IL8D7V3s.js} +1 -1
- package/dist/index.html +3 -3
- package/package.json +1 -1
- package/dist/assets/CollectionParameter-BNLFCXfs.js +0 -4
|
@@ -1,381 +1,6 @@
|
|
|
1
|
-
import { d as defineComponent,
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const _hoisted_2$1 = ["title", "data-resourceid", "onClick", "onMouseenter", "onMouseup"];
|
|
5
|
-
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
6
|
-
...{ name: "N8nBreadcrumbs" },
|
|
7
|
-
__name: "Breadcrumbs",
|
|
8
|
-
props: {
|
|
9
|
-
items: {},
|
|
10
|
-
hiddenItems: { default: () => new Array() },
|
|
11
|
-
theme: { default: "medium" },
|
|
12
|
-
showBorder: { type: Boolean, default: false },
|
|
13
|
-
loadingSkeletonRows: { default: 3 },
|
|
14
|
-
separator: { default: "/" },
|
|
15
|
-
highlightLastItem: { type: Boolean, default: true },
|
|
16
|
-
hiddenItemsTrigger: { default: "click" },
|
|
17
|
-
pathTruncated: { type: Boolean, default: false },
|
|
18
|
-
dragActive: { type: Boolean, default: false }
|
|
19
|
-
},
|
|
20
|
-
emits: ["tooltipOpened", "tooltipClosed", "hiddenItemsLoadingError", "itemSelected", "itemHover", "itemDrop"],
|
|
21
|
-
setup(__props, { emit: __emit }) {
|
|
22
|
-
const emit = __emit;
|
|
23
|
-
const props = __props;
|
|
24
|
-
const loadedHiddenItems = ref([]);
|
|
25
|
-
const isLoadingHiddenItems = ref(false);
|
|
26
|
-
const currentPromise = ref(null);
|
|
27
|
-
const hasHiddenItems = computed(() => {
|
|
28
|
-
return Array.isArray(props.hiddenItems) ? props.hiddenItems.length > 0 : props.hiddenItems !== void 0;
|
|
29
|
-
});
|
|
30
|
-
const showEllipsis = computed(() => {
|
|
31
|
-
return props.items.length && (hasHiddenItems.value || props.pathTruncated);
|
|
32
|
-
});
|
|
33
|
-
const dropdownDisabled = computed(() => {
|
|
34
|
-
return props.pathTruncated && !hasHiddenItems.value;
|
|
35
|
-
});
|
|
36
|
-
const hiddenItemActions = computed(() => {
|
|
37
|
-
return loadedHiddenItems.value.map((item2) => ({
|
|
38
|
-
value: item2.id,
|
|
39
|
-
label: item2.label,
|
|
40
|
-
disabled: false
|
|
41
|
-
}));
|
|
42
|
-
});
|
|
43
|
-
const getHiddenItems = async () => {
|
|
44
|
-
if (loadedHiddenItems.value.length > 0 && props.hiddenItems === currentPromise.value) {
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
if (Array.isArray(props.hiddenItems)) {
|
|
48
|
-
loadedHiddenItems.value = props.hiddenItems;
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
isLoadingHiddenItems.value = true;
|
|
52
|
-
try {
|
|
53
|
-
currentPromise.value = props.hiddenItems;
|
|
54
|
-
const items = await props.hiddenItems;
|
|
55
|
-
loadedHiddenItems.value = items;
|
|
56
|
-
} catch (error) {
|
|
57
|
-
loadedHiddenItems.value = [];
|
|
58
|
-
emit("hiddenItemsLoadingError", error);
|
|
59
|
-
} finally {
|
|
60
|
-
isLoadingHiddenItems.value = false;
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
watch(
|
|
64
|
-
() => props.hiddenItems,
|
|
65
|
-
(_newValue) => {
|
|
66
|
-
void getHiddenItems();
|
|
67
|
-
}
|
|
68
|
-
);
|
|
69
|
-
const onHiddenMenuVisibleChange = async (visible) => {
|
|
70
|
-
if (visible) {
|
|
71
|
-
emit("tooltipOpened");
|
|
72
|
-
await getHiddenItems();
|
|
73
|
-
} else {
|
|
74
|
-
emit("tooltipClosed");
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
const emitItemSelected = (id) => {
|
|
78
|
-
const item2 = [...props.items, ...loadedHiddenItems.value].find((i) => i.id === id);
|
|
79
|
-
if (!item2) {
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
emit("itemSelected", item2);
|
|
83
|
-
};
|
|
84
|
-
const emitItemHover = (id) => {
|
|
85
|
-
const item2 = [...props.items, ...loadedHiddenItems.value].find((i) => i.id === id);
|
|
86
|
-
if (!item2) {
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
emit("itemHover", item2);
|
|
90
|
-
};
|
|
91
|
-
const onHiddenItemMouseUp = (item2) => {
|
|
92
|
-
const pathItem = [...props.items, ...loadedHiddenItems.value].find((i) => i.id === item2.value);
|
|
93
|
-
if (!pathItem || !props.dragActive) {
|
|
94
|
-
return;
|
|
95
|
-
}
|
|
96
|
-
emit("itemDrop", pathItem);
|
|
97
|
-
};
|
|
98
|
-
const onItemMouseUp = (item2) => {
|
|
99
|
-
if (!props.dragActive) {
|
|
100
|
-
return;
|
|
101
|
-
}
|
|
102
|
-
emit("itemDrop", item2);
|
|
103
|
-
};
|
|
104
|
-
const handleTooltipShow = async () => {
|
|
105
|
-
emit("tooltipOpened");
|
|
106
|
-
await getHiddenItems();
|
|
107
|
-
};
|
|
108
|
-
const handleTooltipClose = () => {
|
|
109
|
-
emit("tooltipClosed");
|
|
110
|
-
};
|
|
111
|
-
return (_ctx, _cache) => {
|
|
112
|
-
return openBlock(), createElementBlock("div", {
|
|
113
|
-
class: normalizeClass({
|
|
114
|
-
[_ctx.$style.container]: true,
|
|
115
|
-
[_ctx.$style.border]: props.showBorder,
|
|
116
|
-
[_ctx.$style[props.theme]]: true,
|
|
117
|
-
["n8n-breadcrumbs"]: true
|
|
118
|
-
})
|
|
119
|
-
}, [
|
|
120
|
-
renderSlot(_ctx.$slots, "prepend"),
|
|
121
|
-
createBaseVNode("ul", {
|
|
122
|
-
class: normalizeClass(_ctx.$style.list)
|
|
123
|
-
}, [
|
|
124
|
-
_ctx.$slots.prepend && _ctx.items.length ? (openBlock(), createElementBlock("li", {
|
|
125
|
-
key: 0,
|
|
126
|
-
class: normalizeClass(_ctx.$style.separator)
|
|
127
|
-
}, toDisplayString(_ctx.separator), 3)) : createCommentVNode("", true),
|
|
128
|
-
showEllipsis.value ? (openBlock(), createElementBlock("li", {
|
|
129
|
-
key: 1,
|
|
130
|
-
class: normalizeClass({ [_ctx.$style.ellipsis]: true, [_ctx.$style.disabled]: dropdownDisabled.value }),
|
|
131
|
-
"data-test-id": "ellipsis"
|
|
132
|
-
}, [
|
|
133
|
-
props.theme !== "small" ? (openBlock(), createElementBlock("div", {
|
|
134
|
-
key: 0,
|
|
135
|
-
class: normalizeClass(_ctx.$style["hidden-items-menu"])
|
|
136
|
-
}, [
|
|
137
|
-
createVNode(unref(N8nActionToggle), {
|
|
138
|
-
actions: hiddenItemActions.value,
|
|
139
|
-
loading: isLoadingHiddenItems.value,
|
|
140
|
-
"loading-row-count": _ctx.loadingSkeletonRows,
|
|
141
|
-
disabled: dropdownDisabled.value,
|
|
142
|
-
class: normalizeClass(_ctx.$style["action-toggle"]),
|
|
143
|
-
"popper-class": `${_ctx.$style["hidden-items-menu-popper"]} ${_ctx.dragActive ? _ctx.$style.dragging : ""}`,
|
|
144
|
-
trigger: _ctx.hiddenItemsTrigger,
|
|
145
|
-
theme: "dark",
|
|
146
|
-
placement: "bottom",
|
|
147
|
-
size: "small",
|
|
148
|
-
"icon-orientation": "horizontal",
|
|
149
|
-
"data-test-id": "hidden-items-menu",
|
|
150
|
-
onVisibleChange: onHiddenMenuVisibleChange,
|
|
151
|
-
onAction: emitItemSelected,
|
|
152
|
-
onItemMouseup: onHiddenItemMouseUp
|
|
153
|
-
}, {
|
|
154
|
-
default: withCtx(() => [
|
|
155
|
-
createVNode(unref(N8nText), {
|
|
156
|
-
bold: true,
|
|
157
|
-
class: normalizeClass(_ctx.$style.dots)
|
|
158
|
-
}, {
|
|
159
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
160
|
-
createTextVNode("...")
|
|
161
|
-
])),
|
|
162
|
-
_: 1
|
|
163
|
-
}, 8, ["class"])
|
|
164
|
-
]),
|
|
165
|
-
_: 1
|
|
166
|
-
}, 8, ["actions", "loading", "loading-row-count", "disabled", "class", "popper-class", "trigger"])
|
|
167
|
-
], 2)) : (openBlock(), createBlock(unref(N8nTooltip), {
|
|
168
|
-
key: 1,
|
|
169
|
-
"popper-class": _ctx.$style.tooltip,
|
|
170
|
-
disabled: dropdownDisabled.value,
|
|
171
|
-
trigger: _ctx.hiddenItemsTrigger,
|
|
172
|
-
placement: "bottom",
|
|
173
|
-
onBeforeShow: handleTooltipShow,
|
|
174
|
-
onHide: handleTooltipClose
|
|
175
|
-
}, {
|
|
176
|
-
content: withCtx(() => [
|
|
177
|
-
isLoadingHiddenItems.value ? (openBlock(), createElementBlock("div", {
|
|
178
|
-
key: 0,
|
|
179
|
-
class: normalizeClass(_ctx.$style["tooltip-loading"])
|
|
180
|
-
}, [
|
|
181
|
-
createVNode(unref(N8nLoading), {
|
|
182
|
-
rows: 1,
|
|
183
|
-
loading: isLoadingHiddenItems.value,
|
|
184
|
-
animated: "",
|
|
185
|
-
variant: "p",
|
|
186
|
-
"shrink-last": false
|
|
187
|
-
}, null, 8, ["loading"])
|
|
188
|
-
], 2)) : (openBlock(), createElementBlock("div", {
|
|
189
|
-
key: 1,
|
|
190
|
-
class: normalizeClass(_ctx.$style.tooltipContent)
|
|
191
|
-
}, [
|
|
192
|
-
createBaseVNode("div", _hoisted_1$2, [
|
|
193
|
-
createVNode(unref(N8nText), null, {
|
|
194
|
-
default: withCtx(() => [
|
|
195
|
-
createTextVNode(toDisplayString(loadedHiddenItems.value.map((item2) => item2.label).join(" / ")), 1)
|
|
196
|
-
]),
|
|
197
|
-
_: 1
|
|
198
|
-
})
|
|
199
|
-
])
|
|
200
|
-
], 2))
|
|
201
|
-
]),
|
|
202
|
-
default: withCtx(() => [
|
|
203
|
-
createBaseVNode("span", {
|
|
204
|
-
class: normalizeClass(_ctx.$style["tooltip-ellipsis"])
|
|
205
|
-
}, "...", 2)
|
|
206
|
-
]),
|
|
207
|
-
_: 1
|
|
208
|
-
}, 8, ["popper-class", "disabled", "trigger"]))
|
|
209
|
-
], 2)) : createCommentVNode("", true),
|
|
210
|
-
showEllipsis.value ? (openBlock(), createElementBlock("li", {
|
|
211
|
-
key: 2,
|
|
212
|
-
class: normalizeClass(_ctx.$style.separator)
|
|
213
|
-
}, toDisplayString(_ctx.separator), 3)) : createCommentVNode("", true),
|
|
214
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.items, (item2, index) => {
|
|
215
|
-
return openBlock(), createElementBlock(Fragment, {
|
|
216
|
-
key: item2.id
|
|
217
|
-
}, [
|
|
218
|
-
createBaseVNode("li", {
|
|
219
|
-
class: normalizeClass({
|
|
220
|
-
[_ctx.$style.item]: true,
|
|
221
|
-
[_ctx.$style.current]: props.highlightLastItem && index === _ctx.items.length - 1,
|
|
222
|
-
[_ctx.$style.dragging]: props.dragActive
|
|
223
|
-
}),
|
|
224
|
-
title: item2.label,
|
|
225
|
-
"data-resourceid": item2.id,
|
|
226
|
-
"data-test-id": "breadcrumbs-item",
|
|
227
|
-
"data-target": "folder-breadcrumb-item",
|
|
228
|
-
onClick: withModifiers(($event) => emitItemSelected(item2.id), ["prevent"]),
|
|
229
|
-
onMouseenter: ($event) => emitItemHover(item2.id),
|
|
230
|
-
onMouseup: ($event) => onItemMouseUp(item2)
|
|
231
|
-
}, [
|
|
232
|
-
item2.href ? (openBlock(), createBlock(unref(N8nLink), {
|
|
233
|
-
key: 0,
|
|
234
|
-
href: item2.href,
|
|
235
|
-
theme: "text"
|
|
236
|
-
}, {
|
|
237
|
-
default: withCtx(() => [
|
|
238
|
-
createTextVNode(toDisplayString(item2.label), 1)
|
|
239
|
-
]),
|
|
240
|
-
_: 2
|
|
241
|
-
}, 1032, ["href"])) : (openBlock(), createBlock(unref(N8nText), { key: 1 }, {
|
|
242
|
-
default: withCtx(() => [
|
|
243
|
-
createTextVNode(toDisplayString(item2.label), 1)
|
|
244
|
-
]),
|
|
245
|
-
_: 2
|
|
246
|
-
}, 1024))
|
|
247
|
-
], 42, _hoisted_2$1),
|
|
248
|
-
index !== _ctx.items.length - 1 ? (openBlock(), createElementBlock("li", {
|
|
249
|
-
key: 0,
|
|
250
|
-
class: normalizeClass(_ctx.$style.separator)
|
|
251
|
-
}, toDisplayString(_ctx.separator), 3)) : createCommentVNode("", true)
|
|
252
|
-
], 64);
|
|
253
|
-
}), 128))
|
|
254
|
-
], 2),
|
|
255
|
-
renderSlot(_ctx.$slots, "append")
|
|
256
|
-
], 2);
|
|
257
|
-
};
|
|
258
|
-
}
|
|
259
|
-
});
|
|
260
|
-
const container$1 = "_container_1kcxp_123";
|
|
261
|
-
const small = "_small_1kcxp_127";
|
|
262
|
-
const border = "_border_1kcxp_131";
|
|
263
|
-
const list = "_list_1kcxp_136";
|
|
264
|
-
const item = "_item_1kcxp_142";
|
|
265
|
-
const dragging$1 = "_dragging_1kcxp_146";
|
|
266
|
-
const current = "_current_1kcxp_162";
|
|
267
|
-
const ellipsis = "_ellipsis_1kcxp_166";
|
|
268
|
-
const dots = "_dots_1kcxp_166";
|
|
269
|
-
const disabled = "_disabled_1kcxp_172";
|
|
270
|
-
const tooltip = "_tooltip_1kcxp_167";
|
|
271
|
-
const separator = "_separator_1kcxp_257";
|
|
272
|
-
const medium = "_medium_1kcxp_262";
|
|
273
|
-
const style0$3 = {
|
|
274
|
-
container: container$1,
|
|
275
|
-
small,
|
|
276
|
-
border,
|
|
277
|
-
list,
|
|
278
|
-
item,
|
|
279
|
-
dragging: dragging$1,
|
|
280
|
-
current,
|
|
281
|
-
ellipsis,
|
|
282
|
-
dots,
|
|
283
|
-
"tooltip-ellipsis": "_tooltip-ellipsis_1kcxp_167",
|
|
284
|
-
disabled,
|
|
285
|
-
"hidden-items-menu": "_hidden-items-menu_1kcxp_184",
|
|
286
|
-
"hidden-items-menu-popper": "_hidden-items-menu-popper_1kcxp_189",
|
|
287
|
-
"tooltip-loading": "_tooltip-loading_1kcxp_205",
|
|
288
|
-
tooltip,
|
|
289
|
-
separator,
|
|
290
|
-
medium
|
|
291
|
-
};
|
|
292
|
-
const cssModules$3 = {
|
|
293
|
-
"$style": style0$3
|
|
294
|
-
};
|
|
295
|
-
const Breadcrumbs = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__cssModules", cssModules$3]]);
|
|
296
|
-
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
297
|
-
__name: "ProjectBreadcrumb",
|
|
298
|
-
props: {
|
|
299
|
-
currentProject: {},
|
|
300
|
-
isDragging: { type: Boolean, default: false }
|
|
301
|
-
},
|
|
302
|
-
emits: ["projectHover", "projectDrop"],
|
|
303
|
-
setup(__props, { emit: __emit }) {
|
|
304
|
-
const props = __props;
|
|
305
|
-
const emit = __emit;
|
|
306
|
-
const i18n = useI18n();
|
|
307
|
-
const projectIcon = computed(() => {
|
|
308
|
-
if (props.currentProject?.type === ProjectTypes.Personal) {
|
|
309
|
-
return { type: "icon", value: "user" };
|
|
310
|
-
} else if (props.currentProject?.name) {
|
|
311
|
-
return isIconOrEmoji(props.currentProject.icon) ? props.currentProject.icon : { type: "icon", value: "layers" };
|
|
312
|
-
} else {
|
|
313
|
-
return { type: "icon", value: "house" };
|
|
314
|
-
}
|
|
315
|
-
});
|
|
316
|
-
const projectName = computed(() => {
|
|
317
|
-
if (props.currentProject.type === ProjectTypes.Personal) {
|
|
318
|
-
return i18n.baseText("projects.menu.personal");
|
|
319
|
-
}
|
|
320
|
-
return props.currentProject.name;
|
|
321
|
-
});
|
|
322
|
-
const onHover = () => {
|
|
323
|
-
emit("projectHover");
|
|
324
|
-
};
|
|
325
|
-
const onProjectMouseUp = () => {
|
|
326
|
-
if (props.isDragging) {
|
|
327
|
-
emit("projectDrop");
|
|
328
|
-
}
|
|
329
|
-
};
|
|
330
|
-
return (_ctx, _cache) => {
|
|
331
|
-
const _component_ProjectIcon = __unplugin_components_0$2;
|
|
332
|
-
const _component_N8nText = N8nText;
|
|
333
|
-
const _component_n8n_link = N8nLink;
|
|
334
|
-
return openBlock(), createElementBlock("div", {
|
|
335
|
-
class: normalizeClass({ [_ctx.$style["home-project"]]: true, [_ctx.$style.dragging]: _ctx.isDragging }),
|
|
336
|
-
"data-test-id": "home-project",
|
|
337
|
-
onMouseenter: onHover,
|
|
338
|
-
onMouseup: _cache[0] || (_cache[0] = ($event) => _ctx.isDragging ? onProjectMouseUp() : null)
|
|
339
|
-
}, [
|
|
340
|
-
createVNode(_component_n8n_link, {
|
|
341
|
-
to: `/projects/${_ctx.currentProject.id}`,
|
|
342
|
-
class: normalizeClass([_ctx.$style["project-link"]])
|
|
343
|
-
}, {
|
|
344
|
-
default: withCtx(() => [
|
|
345
|
-
createVNode(_component_ProjectIcon, {
|
|
346
|
-
icon: projectIcon.value,
|
|
347
|
-
"border-less": true,
|
|
348
|
-
size: "mini",
|
|
349
|
-
title: projectName.value
|
|
350
|
-
}, null, 8, ["icon", "title"]),
|
|
351
|
-
createVNode(_component_N8nText, {
|
|
352
|
-
size: "medium",
|
|
353
|
-
color: "text-base",
|
|
354
|
-
class: normalizeClass(_ctx.$style["project-label"])
|
|
355
|
-
}, {
|
|
356
|
-
default: withCtx(() => [
|
|
357
|
-
createTextVNode(toDisplayString(projectName.value), 1)
|
|
358
|
-
]),
|
|
359
|
-
_: 1
|
|
360
|
-
}, 8, ["class"])
|
|
361
|
-
]),
|
|
362
|
-
_: 1
|
|
363
|
-
}, 8, ["to", "class"])
|
|
364
|
-
], 34);
|
|
365
|
-
};
|
|
366
|
-
}
|
|
367
|
-
});
|
|
368
|
-
const dragging = "_dragging_1gp09_128";
|
|
369
|
-
const style0$2 = {
|
|
370
|
-
"home-project": "_home-project_1gp09_123",
|
|
371
|
-
dragging,
|
|
372
|
-
"project-link": "_project-link_1gp09_141",
|
|
373
|
-
"project-label": "_project-label_1gp09_148"
|
|
374
|
-
};
|
|
375
|
-
const cssModules$2 = {
|
|
376
|
-
"$style": style0$2
|
|
377
|
-
};
|
|
378
|
-
const __unplugin_components_0$1 = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__cssModules", cssModules$2]]);
|
|
1
|
+
import { d as defineComponent, au as useProjectsStore, av as useFoldersStore, r as ref, x as computed, aF as ProjectTypes, c as useI18n, af as watch, P as onBeforeUnmount, h as createElementBlock, g as openBlock, e as createBlock, f as createCommentVNode, bp as createSlots, w as withCtx, Q as renderSlot, i as createVNode, n as normalizeClass, e6 as N8nActionToggle, _ as _export_sfc, k as createTextVNode, j as createBaseVNode, t as toDisplayString, l as unref, a as useToast, Z as useUIStore, az as useWorkflowHelpers, a9 as useWorkflowsStore, d3 as useCredentialsStore, fd as getActivatableTriggerNodes, fe as EXECUTE_WORKFLOW_TRIGGER_NODE_TYPE, ab as PLACEHOLDER_EMPTY_WORKFLOW_ID, T as resolveComponent, ca as resolveDirective, p as N8nText, b2 as withDirectives, a4 as Tooltip, N as N8nIcon, ff as OPEN_AI_API_CREDENTIAL_TYPE, fg as WORKFLOW_ACTIVATION_CONFLICTING_WEBHOOK_MODAL_KEY, aW as h } from "./index-DuT-FIl1.js";
|
|
2
|
+
import { B as Breadcrumbs, _ as __unplugin_components_0$1 } from "./ProjectBreadcrumb-CzeQoSDB.js";
|
|
3
|
+
import { u as useWorkflowActivate } from "./useWorkflowActivate-IL8D7V3s.js";
|
|
379
4
|
const _hoisted_1$1 = { key: 2 };
|
|
380
5
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
381
6
|
__name: "FolderBreadcrumbs",
|
|
@@ -447,15 +72,15 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
447
72
|
props.currentFolder.parentFolder,
|
|
448
73
|
{ addLinks: true }
|
|
449
74
|
);
|
|
450
|
-
const filtered = (await loadedItems).filter((
|
|
75
|
+
const filtered = (await loadedItems).filter((item) => !visibleIds.value.has(item.id));
|
|
451
76
|
hiddenBreadcrumbsItemsAsync.value = Promise.resolve(filtered);
|
|
452
77
|
} catch (error) {
|
|
453
78
|
hiddenBreadcrumbsItemsAsync.value = Promise.resolve([]);
|
|
454
79
|
}
|
|
455
80
|
}
|
|
456
81
|
};
|
|
457
|
-
const onItemSelect = (
|
|
458
|
-
emit("itemSelected",
|
|
82
|
+
const onItemSelect = (item) => {
|
|
83
|
+
emit("itemSelected", item);
|
|
459
84
|
};
|
|
460
85
|
const onAction = (action) => {
|
|
461
86
|
emit("action", action);
|
|
@@ -476,14 +101,14 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
476
101
|
name: currentProject.value?.name
|
|
477
102
|
};
|
|
478
103
|
};
|
|
479
|
-
const onItemHover = (
|
|
104
|
+
const onItemHover = (item) => {
|
|
480
105
|
if (!isDragging.value) {
|
|
481
106
|
return;
|
|
482
107
|
}
|
|
483
108
|
foldersStore.activeDropTarget = {
|
|
484
109
|
type: "folder",
|
|
485
|
-
id:
|
|
486
|
-
name:
|
|
110
|
+
id: item.id,
|
|
111
|
+
name: item.label
|
|
487
112
|
};
|
|
488
113
|
};
|
|
489
114
|
watch(
|
|
@@ -648,7 +273,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
648
273
|
const isNewWorkflow = computed(
|
|
649
274
|
() => !props.workflowId || props.workflowId === PLACEHOLDER_EMPTY_WORKFLOW_ID || props.workflowId === "new"
|
|
650
275
|
);
|
|
651
|
-
const
|
|
276
|
+
const disabled = computed(() => {
|
|
652
277
|
if (props.isArchived) {
|
|
653
278
|
return true;
|
|
654
279
|
}
|
|
@@ -739,7 +364,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
739
364
|
return (_ctx, _cache) => {
|
|
740
365
|
const _component_n8n_text = N8nText;
|
|
741
366
|
const _component_el_switch = resolveComponent("el-switch");
|
|
742
|
-
const _component_n8n_tooltip =
|
|
367
|
+
const _component_n8n_tooltip = Tooltip;
|
|
743
368
|
const _component_n8n_icon = N8nIcon;
|
|
744
369
|
const _directive_loading = resolveDirective("loading");
|
|
745
370
|
const _directive_n8n_html = resolveDirective("n8n-html");
|
|
@@ -771,7 +396,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
771
396
|
}))
|
|
772
397
|
], 2),
|
|
773
398
|
createVNode(_component_n8n_tooltip, {
|
|
774
|
-
disabled: !
|
|
399
|
+
disabled: !disabled.value,
|
|
775
400
|
placement: "bottom"
|
|
776
401
|
}, {
|
|
777
402
|
content: withCtx(() => [
|
|
@@ -783,7 +408,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
783
408
|
withDirectives(createVNode(_component_el_switch, {
|
|
784
409
|
"model-value": _ctx.workflowActive,
|
|
785
410
|
title: _ctx.workflowActive ? unref(i18n).baseText("workflowActivator.deactivateWorkflow") : unref(i18n).baseText("workflowActivator.activateWorkflow"),
|
|
786
|
-
disabled:
|
|
411
|
+
disabled: disabled.value || unref(workflowActivate).updatingWorkflowActivation.value || !isNewWorkflow.value && !_ctx.workflowPermissions.update,
|
|
787
412
|
"active-color": getActiveColor.value,
|
|
788
413
|
"inactive-color": "#8899AA",
|
|
789
414
|
"data-test-id": "workflow-activate-switch",
|
|
@@ -823,7 +448,6 @@ const cssModules = {
|
|
|
823
448
|
};
|
|
824
449
|
const WorkflowActivator = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules], ["__scopeId", "data-v-a10f4f82"]]);
|
|
825
450
|
export {
|
|
826
|
-
Breadcrumbs as B,
|
|
827
451
|
WorkflowActivator as W,
|
|
828
452
|
__unplugin_components_0 as _
|
|
829
453
|
};
|