n8n-editor-ui 1.107.1 → 1.108.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/assets/{AddDataStoreModal-DnuHX1S2.js → AddDataStoreModal-CcU8ivRL.js} +2 -2
- package/dist/assets/{AnimatedSpinner-6v6irDSW.js → AnimatedSpinner-BGiYi74y.js} +1 -1
- package/dist/assets/{AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-ozlwYXWj.js → AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-B4UDyM0-.js} +1 -1
- package/dist/assets/{AuthView-BJQzJmO7.js → AuthView-DqXEfmiX.js} +2 -2
- package/dist/assets/{ChangePasswordView-AJr06gB_.js → ChangePasswordView-CgU6Vwxx.js} +3 -3
- package/dist/assets/CollectionParameter-DbGwA_bG.js +4 -0
- package/dist/assets/{ConsumedTokensDetails.vue_vue_type_script_setup_true_lang-BW0CieDo.js → ConsumedTokensDetails.vue_vue_type_script_setup_true_lang-DqYON-Vj.js} +1 -1
- package/dist/assets/{CredentialsView-CXub2k-f.js → CredentialsView-COb21gvI.js} +8 -8
- package/dist/assets/DataStoreActions.vue_vue_type_script_setup_true_lang-CBAZdMw_.js +83 -0
- package/dist/assets/{WorkflowActivator-22RW64G2.css → DataStoreDetailsView-B0CKO8ZR.css} +106 -323
- package/dist/assets/DataStoreDetailsView-DVe4HV2u.js +36144 -0
- package/dist/assets/{DataStoreView-CM5VvI7D.js → DataStoreView-tq8qGfA7.js} +43 -102
- package/dist/assets/{DemoFooter-B3t7CS9X.js → DemoFooter-B8DOkf8u.js} +6 -6
- package/dist/assets/{EmptySharedSectionActionBox.vue_vue_type_script_setup_true_lang-xgH7GJvn.js → EmptySharedSectionActionBox.vue_vue_type_script_setup_true_lang-FKKhn9iz.js} +1 -1
- package/dist/assets/{EntityNotFound-C3W-Gouk.js → EntityNotFound-C6h0eA_K.js} +1 -1
- package/dist/assets/{EntityUnAuthorised-Du_1dCDH.js → EntityUnAuthorised-rxGqHq24.js} +1 -1
- package/dist/assets/{ErrorView-B4s983XH.js → ErrorView-CoOS09mT.js} +1 -1
- package/dist/assets/{EvaluationsRootView-2xzNr5pT.js → EvaluationsRootView-CeSn3uw2.js} +1 -1
- package/dist/assets/{EvaluationsView-CWy0SffW.js → EvaluationsView-CVHZUgYg.js} +4 -4
- package/dist/assets/{ExecutionsTime.vue_vue_type_script_setup_true_lang-DBWrBSV7.js → ExecutionsTime.vue_vue_type_script_setup_true_lang-DmgoWpOT.js} +4 -4
- package/dist/assets/{ExecutionsView-DUoLBkxb.js → ExecutionsView-Ce4DOBay.js} +11 -11
- package/dist/assets/{FixedCollectionParameter-xSZHY6A2.js → FixedCollectionParameter-C_GQZrig.js} +1 -1
- package/dist/assets/{ForgotMyPasswordView-DgKin1FL.js → ForgotMyPasswordView-BxboaIpv.js} +3 -3
- package/dist/assets/{InfoAccordion-BoIzf-yz.js → InfoAccordion-Bzpvtce8.js} +2 -2
- package/dist/assets/{InsightsChartAverageRuntime-CWGu6ocC.js → InsightsChartAverageRuntime-D0-oomYI.js} +4 -4
- package/dist/assets/{InsightsChartFailed-BBlIfrXu.js → InsightsChartFailed-DVFxva2N.js} +4 -4
- package/dist/assets/{InsightsChartFailureRate-CXhB2MIz.js → InsightsChartFailureRate-B88dWE0m.js} +4 -4
- package/dist/assets/{InsightsChartTimeSaved-C7d5mIdl.js → InsightsChartTimeSaved-Buc4eI6y.js} +4 -4
- package/dist/assets/{InsightsChartTotal-DBS3cVYs.js → InsightsChartTotal-DXVXOXxC.js} +4 -4
- package/dist/assets/{InsightsDashboard-D2CF6m01.js → InsightsDashboard-DFVS_OL_.js} +10 -10
- package/dist/assets/{InsightsPaywall-CWEHpnSN.js → InsightsPaywall-Km_8K9J2.js} +1 -1
- package/dist/assets/{InsightsSummary-7514XMdb.js → InsightsSummary-DNkZvhPU.js} +2 -2
- package/dist/assets/{InsightsTableWorkflows-CQZmCGc2.js → InsightsTableWorkflows-DiN2YxQM.js} +6 -6
- package/dist/assets/{Logo-CtGKRONY.js → Logo-BWRzR7Wn.js} +1 -1
- package/dist/assets/{LogsPanel-B-Tmod-K.css → LogsPanel-BinqqXXh.css} +14 -17
- package/dist/assets/{LogsPanel-CIAt3lTg.js → LogsPanel-myx3jrpV.js} +193 -141
- package/dist/assets/{MainHeader-DmIxSulT.js → MainHeader-DNWdA74A.js} +18 -21
- package/dist/assets/{MainHeader-C7eM_NQZ.css → MainHeader-fMUCh_vG.css} +16 -16
- package/dist/assets/{MainSidebar-IXI0NYYP.js → MainSidebar-BmW_mrdS.js} +62 -69
- package/dist/assets/{NodeCreation-DqXKrY6w.js → NodeCreation-BUeUpyyh.js} +4 -4
- package/dist/assets/{NodeCreator-CI6mRPpP.js → NodeCreator-VtJSoJWS.js} +7 -7
- package/dist/assets/{NodeDetailsView-BLAGih5E.js → NodeDetailsView-DnN_JIq6.js} +14 -14
- package/dist/assets/{NodeDetailsViewV2-zTI7VLUX.js → NodeDetailsViewV2-C5YSDisg.js} +25 -25
- package/dist/assets/{NodeDetailsViewV2-Bn1PbAPe.css → NodeDetailsViewV2-J_3cfdea.css} +15 -15
- package/dist/assets/{NodeView-CFuNDv8s.js → NodeView-EEsI2Qb9.js} +11 -11
- package/dist/assets/ProjectBreadcrumb-B1Hnf5da.css +445 -0
- package/dist/assets/ProjectBreadcrumb-KtxdMyZ2.js +381 -0
- package/dist/assets/{ProjectHeader-CIqf2gpl.js → ProjectHeader-CxfMVVpq.js} +13 -13
- package/dist/assets/{ProjectSettings-DGaIUK8h.js → ProjectSettings-6Jreo2aL.js} +6 -6
- package/dist/assets/{PushConnectionTracker.vue_vue_type_script_setup_true_lang-C3fRIVZH.js → PushConnectionTracker.vue_vue_type_script_setup_true_lang-se2FA3gE.js} +2 -2
- package/dist/assets/{ResourcesListLayout-DM01TqXK.js → ResourcesListLayout-CGEmnTS3.js} +3 -3
- package/dist/assets/{RunDataJson-7m3wHhLP.js → RunDataJson-27e01rbG.js} +3 -3
- package/dist/assets/{RunDataJsonActions-CCs-K7u-.js → RunDataJsonActions-Pq9pGbtg.js} +14 -14
- package/dist/assets/{RunDataParsedAiContent-qSEryFRl.js → RunDataParsedAiContent-ChYdnZoY.js} +2 -2
- package/dist/assets/{RunDataSearch-Cn2iAGkx.js → RunDataSearch-Bao0QTKG.js} +1 -1
- package/dist/assets/{RunDataTable-CqcDdqpf.js → RunDataTable-DDzTJ3JW.js} +6 -6
- package/dist/assets/{SamlOnboarding-CExc8LrJ.js → SamlOnboarding-BB5uEOiZ.js} +3 -3
- package/dist/assets/{SettingsApiView-CyzaLF2j.js → SettingsApiView-DZ9pboX5.js} +1 -1
- package/dist/assets/{SettingsCommunityNodesView-Ci1jidLI.js → SettingsCommunityNodesView-BQkRYZ7e.js} +5 -5
- package/dist/assets/{SettingsExternalSecrets-JWxQMJpD.js → SettingsExternalSecrets-9-qgYZR9.js} +1 -1
- package/dist/assets/{SettingsLdapView-BjZFbcTn.js → SettingsLdapView-spVmQTIx.js} +1 -1
- package/dist/assets/{SettingsLogStreamingView-DvWmdSgA.js → SettingsLogStreamingView-ddQEmI4T.js} +1 -1
- package/dist/assets/{SettingsPersonalView-DqrkCtlS.js → SettingsPersonalView-C8mXyr0Q.js} +2 -2
- package/dist/assets/{SettingsSourceControl-N9lSG0gK.js → SettingsSourceControl-CVN0s2_s.js} +2 -2
- package/dist/assets/{SettingsSso-lzPmnXZl.js → SettingsSso-DzOZtqbm.js} +2 -2
- package/dist/assets/{SettingsUsageAndPlan-BF2mv_rX.js → SettingsUsageAndPlan-PsFfrcUO.js} +2 -2
- package/dist/assets/{SettingsUsersView-TueQ1ATe.js → SettingsUsersView-GxaXbEvy.js} +3 -3
- package/dist/assets/{SettingsView-TKZutR1C.js → SettingsView-BCoTKvcx.js} +1 -1
- package/dist/assets/{SetupView-DAFe0s88.js → SetupView-C06fPC4v.js} +3 -3
- package/dist/assets/{SetupWorkflowCredentialsButton-D_e5xPYq.js → SetupWorkflowCredentialsButton-CCPj0w2n.js} +1 -1
- package/dist/assets/{SetupWorkflowFromTemplateView-C40rZsY1.js → SetupWorkflowFromTemplateView-Dnr-rj0a.js} +4 -4
- package/dist/assets/{SigninView-rw-BhvFO.js → SigninView-Dxq1og5D.js} +3 -3
- package/dist/assets/{SignoutView-hmcLIumg.js → SignoutView-DwF2lrt7.js} +1 -1
- package/dist/assets/{SignupView-B8utUMjA.js → SignupView-D0gT_70z.js} +3 -3
- package/dist/assets/{TableBase-Dg9jrpSs.js → TableBase-2nDRjPs3.js} +1 -1
- package/dist/assets/{Tag-DBkUcYd_.js → Tag-Tw1H92yc.js} +1 -1
- package/dist/assets/{Tags-BABZPMfc.js → Tags-CEn7oy-s.js} +2 -2
- package/dist/assets/{TemplateDetails-DY7lPygm.js → TemplateDetails-B1pZ8rnr.js} +2 -2
- package/dist/assets/{TemplateList-UnYTakQQ.js → TemplateList-upDgcS5V.js} +1 -1
- package/dist/assets/{TemplatesCollectionView-DTVw3VF0.js → TemplatesCollectionView-DHHYqexd.js} +7 -7
- package/dist/assets/{TemplatesSearchView-DolE_9AA.js → TemplatesSearchView-DGylmvaI.js} +3 -3
- package/dist/assets/{TemplatesView-CwNytFHx.js → TemplatesView-B6r6jI04.js} +1 -1
- package/dist/assets/{TemplatesWorkflowView-iSKd7uht.js → TemplatesWorkflowView-BqG7obFC.js} +7 -7
- package/dist/assets/{TriggerPanel-BTLbaSMz.js → TriggerPanel-Dvg3vyEj.js} +8 -8
- package/dist/assets/{VariablesView-Dk54OZ1f.js → VariablesView-CIF4byrk.js} +9 -9
- package/dist/assets/{WorkerView-CwuTFYrO.js → WorkerView-D8GP454l.js} +6 -6
- package/dist/assets/{WorkflowActivator-DH6Riyap.js → WorkflowActivator-B0pgQoO2.js} +13 -389
- package/dist/assets/WorkflowActivator-jI4sUqXL.css +391 -0
- package/dist/assets/{WorkflowExecutionsInfoAccordion-CP2uh-PB.js → WorkflowExecutionsInfoAccordion-BnUikOj6.js} +3 -3
- package/dist/assets/{WorkflowExecutionsLandingPage-BoIaBPDG.js → WorkflowExecutionsLandingPage-D4kNQVnJ.js} +3 -3
- package/dist/assets/{WorkflowExecutionsPreview-C11ZxZ-4.js → WorkflowExecutionsPreview-B-sIs_Ug.js} +4 -4
- package/dist/assets/{WorkflowExecutionsView-5rikocSa.js → WorkflowExecutionsView-DtcP0ex6.js} +8 -8
- package/dist/assets/{WorkflowHistory-Cph_B-2a.js → WorkflowHistory-Dv2LNjb3.js} +3 -3
- package/dist/assets/{WorkflowOnboardingView-CTo8mbw7.js → WorkflowOnboardingView-CHwiWIpr.js} +1 -1
- package/dist/assets/{WorkflowPreview-fJy3X_xW.js → WorkflowPreview-DCXLvUc4.js} +1 -1
- package/dist/assets/{WorkflowsView-eYGsq80b.css → WorkflowsView-BuvoAeDm.css} +18 -17
- package/dist/assets/{WorkflowsView-mdIBSRa_.js → WorkflowsView-Ck9uagLz.js} +36 -69
- package/dist/assets/{canvas-DenCY4AJ.js → canvas-DFP0pMz9.js} +1 -1
- package/dist/assets/{chartjs.utils-BlhTVSE9.js → chartjs.utils-Qwffxtza.js} +2 -2
- package/dist/assets/{core-lMJc92pa.js → core-VLDylmke.js} +9 -8
- package/dist/assets/{dataStore.store-CDiWuK8E.js → dataStore.store-Daf-vbcV.js} +57 -6
- package/dist/assets/{en-B7EAgfR5.js → en-BGDurvS-.js} +29 -9
- package/dist/assets/{global-link-actions-D18bp17X.js → global-link-actions-C1gEbCDx.js} +1 -1
- package/dist/assets/{index-Cpz83ovC.js → index-BRttPpfs.js} +1 -1
- package/dist/assets/{index-BFyMw9-0.css → index-C6NR226r.css} +213 -224
- package/dist/assets/{index-CxleUtlq.js → index-CRQJ7x6N.js} +6192 -5720
- package/dist/assets/{pickBy-D7GSyF5E.js → pickBy-B8xTSNTq.js} +1 -1
- package/dist/assets/{polyfills-eMEFRc79.js → polyfills-BhZQ1FDI.js} +44 -0
- package/dist/assets/{readyToRunWorkflows.store-Dz_KLa8_.js → readyToRunWorkflows.store-BDC-qUEi.js} +35 -3
- package/dist/assets/{templateActions-xbNJmRy6.js → templateActions-U_KRhAMr.js} +1 -1
- package/dist/assets/{typescript.worker-ku8s_Oaf.js → typescript.worker-BcoVIdo9.js} +8 -8
- package/dist/assets/{useBeforeUnload-D0WL7mpb.js → useBeforeUnload-B7UlIqac.js} +1 -1
- package/dist/assets/{useExecutionDebugging-Bd_2vpLq.js → useExecutionDebugging-CTEsfGpb.js} +1 -1
- package/dist/assets/{useImportCurlCommand-Cyf8dlDO.js → useImportCurlCommand-vVItCXQc.js} +35 -35
- package/dist/assets/{useProjectPages-BpsdwyKW.js → useProjectPages-CzVikbfF.js} +1 -1
- package/dist/assets/{usePushConnection-BaTxjUZd.js → usePushConnection-CI0nRouW.js} +3 -3
- package/dist/assets/{useWorkflowActivate-DrpskU4R.js → useWorkflowActivate-CT-jqMSY.js} +1 -1
- package/dist/index.html +3 -3
- package/package.json +1 -1
- package/dist/assets/CollectionParameter-78DalTOi.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-CRQJ7x6N.js";
|
|
2
|
+
import { B as Breadcrumbs, _ as __unplugin_components_0$1 } from "./ProjectBreadcrumb-KtxdMyZ2.js";
|
|
3
|
+
import { u as useWorkflowActivate } from "./useWorkflowActivate-CT-jqMSY.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
|
};
|