n8n-editor-ui 1.86.0 → 1.87.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/AnimatedSpinner-ChSRgyeI.css +39 -0
- package/dist/assets/AnimatedSpinner-urWn52iY.js +18 -0
- package/dist/assets/{AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-DofUIs9S.js → AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-DIbgkfAC.js} +1 -1
- package/dist/assets/{AuthView-CyY2quTd.js → AuthView-DIQI5asI.js} +2 -2
- package/dist/assets/{CanvasChatSwitch-CRtE2Fld.css → CanvasChatSwitch-0IWSu8RE.css} +249 -45
- package/dist/assets/{CanvasChatSwitch-BTInPgKl.js → CanvasChatSwitch-BIpZuY-n.js} +437 -268
- package/dist/assets/{ChangePasswordView-Db-MkXhZ.js → ChangePasswordView-D8Qv0tim.js} +3 -3
- package/dist/assets/CollectionParameter-DT1MnS63.js +4 -0
- package/dist/assets/{CredentialsView-CLr_6U2B.js → CredentialsView-tJ8-2RrO.js} +8 -8
- package/dist/assets/{ErrorView-CUS5vnCW.js → ErrorView-CZEZD7LB.js} +1 -1
- package/dist/assets/{ExecutionsTime-BOPJEomw.css → ExecutionsTime-DZHUIJjP.css} +6 -6
- package/dist/assets/{ExecutionsTime.vue_vue_type_script_setup_true_lang-D15zjPBZ.js → ExecutionsTime.vue_vue_type_script_setup_true_lang-gcknFyjA.js} +23 -20
- package/dist/assets/{ExecutionsView-1df-oH5P.js → ExecutionsView-BCfIz8EF.js} +48 -56
- package/dist/assets/{ExecutionsView-BnBpSqVn.css → ExecutionsView-ByQf9yli.css} +13 -47
- package/dist/assets/{FileSaver.min-DLKMtSuf.js → FileSaver.min-Bs2qHlKb.js} +1 -1
- package/dist/assets/{FixedCollectionParameter-CcqTLBeP.js → FixedCollectionParameter-E0LDqNW3.js} +1 -1
- package/dist/assets/{ForgotMyPasswordView-BHRWkO2H.js → ForgotMyPasswordView-YOnrzvKJ.js} +3 -3
- package/dist/assets/InsightsChartAverageRuntime-DWrrriYN.js +61 -0
- package/dist/assets/InsightsChartFailed-DRi6JC3m.js +57 -0
- package/dist/assets/InsightsChartFailureRate-BdFNsMpg.js +57 -0
- package/dist/assets/InsightsChartTimeSaved-C12GZzSQ.js +71 -0
- package/dist/assets/InsightsChartTotal-Cn386HO4.js +59 -0
- package/dist/assets/InsightsDashboard-BawwZ0Oo.js +154 -0
- package/dist/assets/InsightsDashboard-CB4vHnBh.css +152 -0
- package/dist/assets/InsightsPaywall-OeXh6LeZ.css +133 -0
- package/dist/assets/InsightsPaywall-g3JcqAYL.js +58 -0
- package/dist/assets/{InsightsSummary-DcRuPjLJ.css → InsightsSummary-W08OzElS.css} +57 -35
- package/dist/assets/InsightsSummary-vMmKUcie.js +185 -0
- package/dist/assets/InsightsTableWorkflows-DQQ1vvMz.js +129 -0
- package/dist/assets/InsightsTableWorkflows-Us3j4UTO.css +128 -0
- package/dist/assets/{Logo-DbXTFYA8.js → Logo-Vm92axlM.js} +1 -1
- package/dist/assets/{MainHeader-BfQR9Td3.js → MainHeader-BUhpvu2K.js} +9 -10
- package/dist/assets/{MainSidebar-CDUegYGN.js → MainSidebar-D5P5FSUQ.js} +11 -2
- package/dist/assets/{NodeCreation-BBXRRxZa.js → NodeCreation-BgW5u-Bc.js} +4 -4
- package/dist/assets/{NodeCreator-BiyvtIjb.js → NodeCreator-CFe2n6vJ.js} +3 -3
- package/dist/assets/{NodeDetailsView-BcVu3kf0.css → NodeDetailsView-BT-ro74o.css} +63 -70
- package/dist/assets/{NodeDetailsView-Ph7FVpa8.js → NodeDetailsView-CmtK-rDD.js} +138 -478
- package/dist/assets/{NodeView-BEJ48TF4.js → NodeView-BqaNPfpx.js} +19 -21
- package/dist/assets/{ProjectCardBadge-B7cCM6Eo.js → ProjectCardBadge-BKgtzWr1.js} +1 -1
- package/dist/assets/{ProjectHeader-BjPaep-H.js → ProjectHeader-BWVSdavS.js} +1 -1
- package/dist/assets/{ProjectSettings-C1By1g0Z.js → ProjectSettings-BL-2-uOg.js} +2 -2
- package/dist/assets/{PushConnectionTracker.vue_vue_type_script_setup_true_lang-UHiXbqwy.js → PushConnectionTracker.vue_vue_type_script_setup_true_lang-BL-bMMgn.js} +1 -2
- package/dist/assets/{ResourcesListLayout-CiiXWGd5.js → ResourcesListLayout-CozpmfUY.js} +1 -1
- package/dist/assets/{RunDataAi-CQE0VYut.js → RunDataAi-B_EadpzG.js} +88 -37
- package/dist/assets/{RunDataAi-CN9FrT9c.css → RunDataAi-CUUDqZRP.css} +128 -0
- package/dist/assets/{RunDataJson-BY9cOxFp.js → RunDataJson-CyNNCtyd.js} +11 -12
- package/dist/assets/{RunDataJsonActions-CuFjccfe.js → RunDataJsonActions-SQqaiBEP.js} +1 -2
- package/dist/assets/{RunDataSearch-afEc-21Y.js → RunDataSearch-BF9kshKq.js} +1 -1
- package/dist/assets/{RunDataTable-N6yWFXKt.js → RunDataTable-DsW7wuc2.js} +10 -8
- package/dist/assets/{SamlOnboarding-HDQzVmha.js → SamlOnboarding-BX7RiRJB.js} +3 -3
- package/dist/assets/{SettingsApiView-DQMZT3uc.js → SettingsApiView-CDIPYvaG.js} +1 -1
- package/dist/assets/{SettingsCommunityNodesView-BlQT_0E8.js → SettingsCommunityNodesView-BRSEkT73.js} +4 -5
- package/dist/assets/{SettingsExternalSecrets-BL_3qoNS.js → SettingsExternalSecrets-D7ASuAnS.js} +1 -1
- package/dist/assets/{SettingsLdapView-BMsfXg-A.js → SettingsLdapView-DA5fZZ51.js} +1 -1
- package/dist/assets/{SettingsLogStreamingView-Bm5vaSO2.js → SettingsLogStreamingView-C9qkYvCr.js} +1 -1
- package/dist/assets/{SettingsPersonalView-Djl1VXnE.js → SettingsPersonalView-BnNOJcvO.js} +1 -1
- package/dist/assets/{SettingsSourceControl-A-9nD8hG.js → SettingsSourceControl--ozL4427.js} +1 -1
- package/dist/assets/{SettingsSso-DZCscZY6.js → SettingsSso-Bfe_HRSr.js} +1 -1
- package/dist/assets/{SettingsUsageAndPlan-Rd5AGlNl.js → SettingsUsageAndPlan-CzvMNudh.js} +1 -1
- package/dist/assets/{SettingsUsersView-NEahsGVs.js → SettingsUsersView-DGu5ku48.js} +1 -1
- package/dist/assets/{SettingsView-CeXAUGXE.js → SettingsView-CvreVxXL.js} +1 -1
- package/dist/assets/{SetupView-BI7oJfg0.js → SetupView-BJT6GtIA.js} +3 -3
- package/dist/assets/{SetupWorkflowCredentialsButton-DMZX1S1F.js → SetupWorkflowCredentialsButton-BEq2gs_-.js} +2 -4
- package/dist/assets/{SetupWorkflowFromTemplateView-DZsPVdhN.js → SetupWorkflowFromTemplateView-F9oCDWX8.js} +3 -12
- package/dist/assets/{SigninView-CzVnEKyz.js → SigninView-DyoDtCBc.js} +3 -3
- package/dist/assets/{SignoutView-C4ynr4AN.js → SignoutView-DclBslYe.js} +1 -1
- package/dist/assets/{SignupView-9nwGonm9.js → SignupView-BhB0Hhj0.js} +3 -3
- package/dist/assets/{TemplateDetails-DT1tI4AF.js → TemplateDetails-B3utdyMi.js} +1 -1
- package/dist/assets/{TemplateList-DGPm_Qol.js → TemplateList-Bgz1iiiH.js} +1 -1
- package/dist/assets/{TemplatesCollectionView-DwXY5s5G.js → TemplatesCollectionView-CORzb8YZ.js} +7 -9
- package/dist/assets/{TemplatesSearchView-D0R7uF40.js → TemplatesSearchView-DTuv4-5C.js} +3 -3
- package/dist/assets/{TemplatesView-BZ-ntkfi.js → TemplatesView-CFV5SVF7.js} +1 -1
- package/dist/assets/{TemplatesWorkflowView-TwVAHvD7.js → TemplatesWorkflowView-CQVVdNty.js} +5 -7
- package/dist/assets/{TestDefinitionEditView-C3nnWQ4Q.css → TestDefinitionEditView-Cwkrz308.css} +12 -18
- package/dist/assets/{TestDefinitionEditView-o2Gc4BjN.js → TestDefinitionEditView-DX6GIeq2.js} +163 -199
- package/dist/assets/{TestDefinitionListView-BuUWjPAl.js → TestDefinitionListView-CLEkthYQ.js} +1 -1
- package/dist/assets/{TestDefinitionNewView-DmSFNxfn.js → TestDefinitionNewView-DWTTqvlN.js} +2 -2
- package/dist/assets/{TestDefinitionRootView-1dNmGZUI.js → TestDefinitionRootView-D0yLW0V6.js} +1 -1
- package/dist/assets/{VariablesView-D46tH9pw.js → VariablesView-Dsr4pqth.js} +3 -3
- package/dist/assets/{WorkerView-G0K849qT.js → WorkerView-Bbu5wv-g.js} +6 -7
- package/dist/assets/{WorkflowActivator-DfalOPsa.js → WorkflowActivator-C197X_D6.js} +2 -2
- package/dist/assets/{WorkflowExecutionsInfoAccordion-BcD7ZskD.js → WorkflowExecutionsInfoAccordion-CHPlRtMQ.js} +1 -1
- package/dist/assets/{WorkflowExecutionsLandingPage-BhPbJi5K.js → WorkflowExecutionsLandingPage-CnvMc3SA.js} +2 -2
- package/dist/assets/{WorkflowExecutionsPreview-CowaFwPg.js → WorkflowExecutionsPreview-CJBM3Awe.js} +24 -256
- package/dist/assets/{WorkflowExecutionsPreview-CHu6M3Dh.css → WorkflowExecutionsPreview-D7jTJ8GL.css} +16 -48
- package/dist/assets/{WorkflowExecutionsView-BAojAjIM.js → WorkflowExecutionsView-BwB6WS6M.js} +11 -17
- package/dist/assets/{WorkflowHistory-Bj5_YFN8.js → WorkflowHistory-U5a4aYts.js} +4 -4
- package/dist/assets/{WorkflowOnboardingView-D9peqUJs.js → WorkflowOnboardingView-DHUUTLOo.js} +1 -1
- package/dist/assets/{WorkflowPreview-gflk06YT.js → WorkflowPreview-D8pwehRe.js} +1 -1
- package/dist/assets/{WorkflowsView-CmgKYCQ6.js → WorkflowsView-DIh7kqZk.js} +10 -10
- package/dist/assets/chartjs.utils-DTEY3u-V.js +193 -0
- package/dist/assets/dateFormatter-C7xnNKzY.js +21 -0
- package/dist/assets/{easyAiWorkflowUtils-CLssJdgl.js → easyAiWorkflowUtils-V__OjFo9.js} +1 -1
- package/dist/assets/{global-link-actions-BphqczCY.js → global-link-actions-vGpWr9Uz.js} +1 -1
- package/dist/assets/{import-curl-C9KhAemD.js → import-curl-C6ERUxFe.js} +1 -1
- package/dist/assets/{index-C0DaAYgf.js → index-BrjPYODL.js} +3 -1
- package/dist/assets/{index-CkOV8f0Z.js → index-DD7Wuhk5.js} +9472 -3624
- package/dist/assets/{index-BaqhUIB7.css → index-DJ205bL0.css} +369 -44
- package/dist/assets/{pickBy-DUugkW7s.js → pickBy-BILEJ4hg.js} +1 -1
- package/dist/assets/{templateActions-Czp13jCM.js → templateActions-M3qRQiV6.js} +2 -7
- package/dist/assets/{useBeforeUnload-BBbiw-FV.js → useBeforeUnload-DTsj_abb.js} +1 -1
- package/dist/assets/{useCanvasMapping-Cla--atl.js → useCanvasMapping-DJvMRP2s.js} +6 -6
- package/dist/assets/{useCanvasOperations-FyzGfva5.js → useCanvasOperations-DCaSrD1N.js} +27 -256
- package/dist/assets/{useClearExecutionButtonVisible-fESJZE5R.js → useClearExecutionButtonVisible-CVPKhr9F.js} +2 -2
- package/dist/assets/{useExecutionDebugging-D4s4CdaL.js → useExecutionDebugging-yY2o_eNc.js} +1 -1
- package/dist/assets/{useExecutionHelpers-Bm91b8wb.js → useExecutionHelpers-BVY9xXbG.js} +2 -19
- package/dist/assets/{useImportCurlCommand-BPNuR5ZX.js → useImportCurlCommand-Chewi-_x.js} +2 -2
- package/dist/assets/{usePushConnection-BbQhNUm8.js → usePushConnection-9zsAnuvC.js} +3 -4
- package/dist/assets/{useTestDefinitionForm-ZJngcsSH.js → useTestDefinitionForm-CCVy0jKP.js} +1 -1
- package/dist/assets/{useWorkflowActivate-CkCvd-g6.js → useWorkflowActivate-DeEvbrsK.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/dist/assets/CollectionParameter-BD3jmKi_.js +0 -4
- package/dist/assets/InsightsSummary-CyilLKXz.js +0 -152
- package/dist/assets/pushConnection.store-Cb2TGyrZ.js +0 -238
- package/dist/assets/useRunWorkflow-DnbQqqcB.js +0 -527
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/RunDataTable-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { u as useExecutionHelpers, b as convertToDisplayDateComponents } from "./useExecutionHelpers-Bm91b8wb.js";
|
|
9
|
-
import { u as useWorkflowActivate } from "./useWorkflowActivate-CkCvd-g6.js";
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/RunDataTable-DsW7wuc2.js","assets/index-DD7Wuhk5.js","assets/index-DJ205bL0.css","assets/useExecutionHelpers-BVY9xXbG.js","assets/dateFormatter-C7xnNKzY.js","assets/RunDataTable-CX7gToH4.css","assets/RunDataJson-CyNNCtyd.js","assets/import-curl-C6ERUxFe.js","assets/FileSaver.min-Bs2qHlKb.js","assets/RunDataAi-B_EadpzG.js","assets/useCanvasOperations-DCaSrD1N.js","assets/RunDataAi-CUUDqZRP.css","assets/useWorkflowActivate-DeEvbrsK.js","assets/RunDataJson-Txw0lqay.css","assets/RunDataSearch-BF9kshKq.js","assets/RunDataSearch-R6qtl0Jf.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import { h2 as hasKey, d as defineComponent, r as ref, q as computed, h as resolveComponent, i as createElementBlock, g as openBlock, n as normalizeClass, k as createBaseVNode, j as createVNode, bC as _sfc_main$l, w as withCtx, H as withKeys, J as withModifiers, l as createTextVNode, t as toDisplayString, m as unref, c as useI18n, e as createBlock, f as createCommentVNode, z as nextTick, _ as _export_sfc, au as useNDVStore, U as useWorkflowsStore, dI as isCommunityPackageName, cC as NPM_PACKAGE_DOCS_BASE_URL, h3 as BUILTIN_NODES_DOCS_URL, cE as COMMUNITY_NODES_INSTALLATION_DOCS_URL, aR as useExternalHooks, ai as useTelemetry, bu as NodeConnectionTypes, b as useRouter, ba as useClipboard, a7 as useWorkflowHelpers, a as useToast, h4 as OPEN_URL_PANEL_TRIGGER_NODE_TYPES, h5 as PRODUCTION_ONLY_TRIGGER_NODE_TYPES, eL as FORM_TRIGGER_NODE_TYPE, bv as CHAT_TRIGGER_NODE_TYPE, I as watch, F as Fragment, D as renderList, G as onClickOutside, as as h, h6 as toRef, h7 as tryOnScopeDispose, h8 as toValue, h9 as isIOS, ha as noop, hb as isObject, hc as isClient, bw as useNodeTypesStore, bx as useNodeHelpers, K as useDebounce, fH as nodeIssuesToString, B as normalizeStyle, fB as TitledList, br as getNodeInputs, hd as SWITCH_NODE_TYPE, fF as isEqual, he as captureException, p as useSettingsStore, aw as usePostHog, bM as useCredentialsStore, u as useUsersStore, a4 as useProjectsStore, dC as OPEN_AI_API_CREDENTIAL_TYPE, b$ as AI_CREDITS_EXPERIMENT, bP as useHistoryStore, ad as ProjectTypes, bs as getConnectionTypes, o as onMounted, hf as ndvEventBus, y as onBeforeUnmount, hg as _sfc_main$m, hh as CUSTOM_NODES_DOCS_URL, aC as withDirectives, aD as vShow, gM as _sfc_main$n, hi as NodeCredentials, bh as get, f8 as getNodeParameters, cb as deepCopy, hj as set, hk as unset, eZ as RenameNodeCommand, gL as isINodePropertyCollectionList, hl as isINodePropertiesList, hm as isINodePropertyOptionsList, hn as displayParameter, ho as Draggable, fr as useThrottleFn, L as useUIStore, fc as useSlots, hp as MAIN_NODE_PANEL_WIDTH, aL as useStorage, hq as LOCAL_STORAGE_MAIN_PANEL_RELATIVE_WIDTH, x as renderSlot, hr as requireVue, cl as getDefaultExportFromCjs, hs as sanitizeHtml, ht as sanitizeHtmlExports, bU as jsonParse, aS as N8nTooltip, aU as _sfc_main$o, aT as N8nLink, b9 as N8nText, a3 as useSourceControlStore, a1 as useRootStore, dz as useSchemaPreviewStore, W as useRoute, bI as toRef$1, bi as usePinnedData, hu as useNodeType, cH as storeToRefs, eq as HTML_NODE_TYPE, hv as TRIMMED_TASK_DATA_CONNECTIONS_KEY, hw as executionDataToJson, hx as NODE_TYPES_EXCLUDED_FROM_OUTPUT_NAME_APPEND, dV as CORE_NODES_CATEGORY, hy as SCHEMA_PREVIEW_EXPERIMENT, hz as computedAsync, hA as LOCAL_STORAGE_PIN_DATA_DISCOVERY_NDV_FLAG, hB as dataPinningEventBus, hC as LOCAL_STORAGE_PIN_DATA_DISCOVERY_CANVAS_FLAG, hD as searchInObject, hE as isObject$1, hF as MAX_DISPLAY_DATA_SIZE_SCHEMA_VIEW, dH as MAX_DISPLAY_DATA_SIZE, cc as resolveDirective, b_ as N8nCallout, hG as DATA_PINNING_DOCS_URL, bY as Suspense, bZ as defineAsyncComponent, bG as N8nRadioButtons, bb as N8nButton, gt as _sfc_main$p, gs as N8nSelect, hH as N8nTabs, g9 as _sfc_main$q, hI as JsonEditor, hJ as DATA_EDITING_DOCS_URL, df as InfoTip, hK as N8nBlockUi, aq as __vitePreload, eX as isPresent, bt as getNodeOutputs, hL as getNodeHints, hM as getGenericHints, hN as clearJsonKey, hO as TEST_PIN_DATA, fP as isEmpty, fG as useNodeDirtiness, fC as CanvasNodeDirtiness, aW as createSlots, hP as waitingNodeTooltip, hQ as truncate, gi as createStaticVNode, bS as START_NODE_TYPE, eI as MANUAL_TRIGGER_NODE_TYPE, hR as CRON_NODE_TYPE, hS as INTERVAL_NODE_TYPE, hT as uniqBy, b2 as resolveDynamicComponent, bE as N8nIcon, hU as isTriggerPanelObject, dx as getTriggerNodeServiceName, eD as WEBHOOK_NODE_TYPE, di as CopyInput, C as createEventBus, fE as Transition, V as VIEWS, am as WORKFLOW_SETTINGS_MODAL_KEY, ft as useDeviceSupport, hV as EXECUTABLE_TRIGGER_NODE_TYPES, aA as STICKY_NODE_TYPE, hW as BASE_NODE_SURVEY_URL, ac as EnterpriseEditionFeature, bH as useStyles, hX as APP_MODALS_ELEMENT_ID, ak as useMessage, al as MODAL_CONFIRM } from "./index-DD7Wuhk5.js";
|
|
3
|
+
import { i as importCurlEventBus } from "./import-curl-C6ERUxFe.js";
|
|
4
|
+
import { F as FileSaver_minExports } from "./FileSaver.min-Bs2qHlKb.js";
|
|
5
|
+
import { V as ViewSubExecution, d as _sfc_main$r, R as RunDataAi } from "./RunDataAi-B_EadpzG.js";
|
|
6
|
+
import { b as convertToDisplayDateComponents } from "./dateFormatter-C7xnNKzY.js";
|
|
7
|
+
import { u as useWorkflowActivate } from "./useWorkflowActivate-DeEvbrsK.js";
|
|
10
8
|
function responseHasSubworkflowData(response) {
|
|
11
9
|
return ["executionId", "workflowId"].every(
|
|
12
10
|
(x) => hasKey(response, x) && typeof response[x] === "string"
|
|
@@ -26,9 +24,9 @@ function parseErrorMetadata(error) {
|
|
|
26
24
|
if (hasKey(error, "errorResponse")) {
|
|
27
25
|
return parseErrorResponseWorkflowMetadata(error.errorResponse);
|
|
28
26
|
}
|
|
29
|
-
return
|
|
27
|
+
return parseErrorResponseWorkflowMetadata(error);
|
|
30
28
|
}
|
|
31
|
-
const _sfc_main$
|
|
29
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
32
30
|
__name: "NodeTitle",
|
|
33
31
|
props: {
|
|
34
32
|
modelValue: { default: "" },
|
|
@@ -72,7 +70,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
72
70
|
createBaseVNode("span", {
|
|
73
71
|
class: normalizeClass(_ctx.$style.iconWrapper)
|
|
74
72
|
}, [
|
|
75
|
-
createVNode(_sfc_main$
|
|
73
|
+
createVNode(_sfc_main$l, {
|
|
76
74
|
"node-type": _ctx.nodeType,
|
|
77
75
|
size: 18
|
|
78
76
|
}, null, 8, ["node-type"])
|
|
@@ -174,8 +172,8 @@ const style0$c = {
|
|
|
174
172
|
const cssModules$d = {
|
|
175
173
|
"$style": style0$c
|
|
176
174
|
};
|
|
177
|
-
const NodeTitle = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
178
|
-
const _sfc_main$
|
|
175
|
+
const NodeTitle = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__cssModules", cssModules$d]]);
|
|
176
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
179
177
|
__name: "NodeSettingsTabs",
|
|
180
178
|
props: {
|
|
181
179
|
modelValue: { default: "params" },
|
|
@@ -321,9 +319,9 @@ const _hoisted_10$2 = {
|
|
|
321
319
|
key: 1,
|
|
322
320
|
class: "webhook-wrapper"
|
|
323
321
|
};
|
|
324
|
-
const _hoisted_11$
|
|
325
|
-
const _hoisted_12
|
|
326
|
-
const _sfc_main$
|
|
322
|
+
const _hoisted_11$1 = { class: "url-field-full-width" };
|
|
323
|
+
const _hoisted_12 = ["onClick"];
|
|
324
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
327
325
|
__name: "NodeWebhooks",
|
|
328
326
|
props: {
|
|
329
327
|
node: {},
|
|
@@ -518,14 +516,14 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
518
516
|
], 8, _hoisted_9$3)
|
|
519
517
|
])
|
|
520
518
|
])) : (openBlock(), createElementBlock("div", _hoisted_10$2, [
|
|
521
|
-
createBaseVNode("div", _hoisted_11$
|
|
519
|
+
createBaseVNode("div", _hoisted_11$1, [
|
|
522
520
|
createBaseVNode("div", {
|
|
523
521
|
class: "webhook-url left-ellipsis clickable",
|
|
524
522
|
onClick: ($event) => copyWebhookUrl(webhook)
|
|
525
523
|
}, [
|
|
526
524
|
createTextVNode(toDisplayString(getWebhookUrlDisplay(webhook)), 1),
|
|
527
525
|
_cache[4] || (_cache[4] = createBaseVNode("br", null, null, -1))
|
|
528
|
-
], 8, _hoisted_12
|
|
526
|
+
], 8, _hoisted_12)
|
|
529
527
|
])
|
|
530
528
|
]))
|
|
531
529
|
]),
|
|
@@ -540,7 +538,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
540
538
|
};
|
|
541
539
|
}
|
|
542
540
|
});
|
|
543
|
-
const NodeWebhooks = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
541
|
+
const NodeWebhooks = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-08694311"]]);
|
|
544
542
|
const OnClickOutside = /* @__PURE__ */ defineComponent({
|
|
545
543
|
name: "OnClickOutside",
|
|
546
544
|
props: ["as", "options"],
|
|
@@ -717,7 +715,7 @@ const _hoisted_3$5 = ["onClick"];
|
|
|
717
715
|
const _hoisted_4$5 = ["onClick"];
|
|
718
716
|
const _hoisted_5$5 = ["data-node-name"];
|
|
719
717
|
const _hoisted_6$4 = ["onClick"];
|
|
720
|
-
const _sfc_main$
|
|
718
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
721
719
|
__name: "NDVSubConnections",
|
|
722
720
|
props: {
|
|
723
721
|
rootNode: {}
|
|
@@ -954,7 +952,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
954
952
|
class: normalizeClass(_ctx.$style.connectedNode),
|
|
955
953
|
onClick: ($event) => onNodeClick(node2.node.name, connection.type)
|
|
956
954
|
}, [
|
|
957
|
-
createVNode(_sfc_main$
|
|
955
|
+
createVNode(_sfc_main$l, {
|
|
958
956
|
"node-type": node2.nodeType,
|
|
959
957
|
"node-name": node2.node.name,
|
|
960
958
|
"tooltip-position": "top",
|
|
@@ -1010,289 +1008,7 @@ const style0$b = {
|
|
|
1010
1008
|
const cssModules$c = {
|
|
1011
1009
|
"$style": style0$b
|
|
1012
1010
|
};
|
|
1013
|
-
const NDVSubConnections = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1014
|
-
const NODE_TEST_STEP_POPUP_COUNT_KEY = "N8N_NODE_TEST_STEP_POPUP_COUNT";
|
|
1015
|
-
const MAX_POPUP_COUNT = 10;
|
|
1016
|
-
const POPUP_UPDATE_DELAY = 3e3;
|
|
1017
|
-
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
1018
|
-
...{
|
|
1019
|
-
inheritAttrs: false
|
|
1020
|
-
},
|
|
1021
|
-
__name: "NodeExecuteButton",
|
|
1022
|
-
props: {
|
|
1023
|
-
nodeName: {},
|
|
1024
|
-
telemetrySource: {},
|
|
1025
|
-
disabled: { type: Boolean, default: false },
|
|
1026
|
-
label: {},
|
|
1027
|
-
type: {},
|
|
1028
|
-
size: {},
|
|
1029
|
-
transparent: { type: Boolean, default: false },
|
|
1030
|
-
hideIcon: { type: Boolean },
|
|
1031
|
-
tooltip: {}
|
|
1032
|
-
},
|
|
1033
|
-
emits: ["stopExecution", "execute", "valueChanged"],
|
|
1034
|
-
setup(__props, { emit: __emit }) {
|
|
1035
|
-
const props = __props;
|
|
1036
|
-
const emit = __emit;
|
|
1037
|
-
const lastPopupCountUpdate = ref(0);
|
|
1038
|
-
const codeGenerationInProgress = ref(false);
|
|
1039
|
-
const router = useRouter();
|
|
1040
|
-
const { runWorkflow, stopCurrentExecution } = useRunWorkflow({ router });
|
|
1041
|
-
const workflowsStore = useWorkflowsStore();
|
|
1042
|
-
const externalHooks = useExternalHooks();
|
|
1043
|
-
const toast = useToast();
|
|
1044
|
-
const ndvStore = useNDVStore();
|
|
1045
|
-
const nodeTypesStore = useNodeTypesStore();
|
|
1046
|
-
const uiStore = useUIStore();
|
|
1047
|
-
const i18n = useI18n();
|
|
1048
|
-
const message = useMessage();
|
|
1049
|
-
const telemetry = useTelemetry();
|
|
1050
|
-
const node2 = computed(() => workflowsStore.getNodeByName(props.nodeName));
|
|
1051
|
-
const pinnedData = usePinnedData(node2);
|
|
1052
|
-
const nodeType = computed(() => {
|
|
1053
|
-
return node2.value ? nodeTypesStore.getNodeType(node2.value.type, node2.value.typeVersion) : null;
|
|
1054
|
-
});
|
|
1055
|
-
const isNodeRunning = computed(() => {
|
|
1056
|
-
if (!uiStore.isActionActive.workflowRunning || codeGenerationInProgress.value) return false;
|
|
1057
|
-
const triggeredNode = workflowsStore.executedNode;
|
|
1058
|
-
return workflowsStore.isNodeExecuting(node2.value?.name ?? "") || triggeredNode === node2.value?.name;
|
|
1059
|
-
});
|
|
1060
|
-
const isTriggerNode = computed(() => {
|
|
1061
|
-
return node2.value ? nodeTypesStore.isTriggerNode(node2.value.type) : false;
|
|
1062
|
-
});
|
|
1063
|
-
const isWorkflowRunning = computed(() => uiStore.isActionActive.workflowRunning);
|
|
1064
|
-
const isManualTriggerNode = computed(
|
|
1065
|
-
() => nodeType.value ? nodeType.value.name === MANUAL_TRIGGER_NODE_TYPE : false
|
|
1066
|
-
);
|
|
1067
|
-
const isChatNode = computed(
|
|
1068
|
-
() => nodeType.value ? nodeType.value.name === CHAT_TRIGGER_NODE_TYPE : false
|
|
1069
|
-
);
|
|
1070
|
-
const isChatChild = computed(() => workflowsStore.checkIfNodeHasChatParent(props.nodeName));
|
|
1071
|
-
const isFormTriggerNode = computed(
|
|
1072
|
-
() => nodeType.value ? nodeType.value.name === FORM_TRIGGER_NODE_TYPE : false
|
|
1073
|
-
);
|
|
1074
|
-
const isPollingTypeNode = computed(() => !!nodeType.value?.polling);
|
|
1075
|
-
const isScheduleTrigger = computed(() => !!nodeType.value?.group.includes("schedule"));
|
|
1076
|
-
const isWebhookNode = computed(
|
|
1077
|
-
() => nodeType.value ? nodeType.value.name === WEBHOOK_NODE_TYPE : false
|
|
1078
|
-
);
|
|
1079
|
-
const isListeningForEvents = computed(() => {
|
|
1080
|
-
const waitingOnWebhook = workflowsStore.executionWaitingForWebhook;
|
|
1081
|
-
const executedNode = workflowsStore.executedNode;
|
|
1082
|
-
return !!node2.value && !node2.value.disabled && isTriggerNode.value && waitingOnWebhook && (!executedNode || executedNode === props.nodeName);
|
|
1083
|
-
});
|
|
1084
|
-
const isListeningForWorkflowEvents = computed(() => {
|
|
1085
|
-
return isNodeRunning.value && isTriggerNode.value && !isScheduleTrigger.value && !isManualTriggerNode.value;
|
|
1086
|
-
});
|
|
1087
|
-
const hasIssues2 = computed(
|
|
1088
|
-
() => Boolean(node2.value?.issues && (node2.value.issues.parameters || node2.value.issues.credentials))
|
|
1089
|
-
);
|
|
1090
|
-
const disabledHint = computed(() => {
|
|
1091
|
-
if (isListeningForEvents.value) {
|
|
1092
|
-
return "";
|
|
1093
|
-
}
|
|
1094
|
-
if (codeGenerationInProgress.value) {
|
|
1095
|
-
return i18n.baseText("ndv.execute.generatingCode");
|
|
1096
|
-
}
|
|
1097
|
-
if (node2?.value?.disabled) {
|
|
1098
|
-
return i18n.baseText("ndv.execute.nodeIsDisabled");
|
|
1099
|
-
}
|
|
1100
|
-
if (isTriggerNode.value && hasIssues2.value) {
|
|
1101
|
-
const activeNode = ndvStore.activeNode;
|
|
1102
|
-
if (activeNode && activeNode.name !== props.nodeName) {
|
|
1103
|
-
return i18n.baseText("ndv.execute.fixPrevious");
|
|
1104
|
-
}
|
|
1105
|
-
return i18n.baseText("ndv.execute.requiredFieldsMissing");
|
|
1106
|
-
}
|
|
1107
|
-
if (isWorkflowRunning.value && !isNodeRunning.value) {
|
|
1108
|
-
return i18n.baseText("ndv.execute.workflowAlreadyRunning");
|
|
1109
|
-
}
|
|
1110
|
-
return "";
|
|
1111
|
-
});
|
|
1112
|
-
const tooltipText = computed(() => {
|
|
1113
|
-
if (shouldGenerateCode.value) {
|
|
1114
|
-
return i18n.baseText("ndv.execute.generateCodeAndTestNode.description");
|
|
1115
|
-
}
|
|
1116
|
-
if (disabledHint.value) return disabledHint.value;
|
|
1117
|
-
if (props.tooltip && !isLoading.value && testStepButtonPopupCount() < MAX_POPUP_COUNT) {
|
|
1118
|
-
return props.tooltip;
|
|
1119
|
-
}
|
|
1120
|
-
return "";
|
|
1121
|
-
});
|
|
1122
|
-
const buttonLabel = computed(() => {
|
|
1123
|
-
if (isListeningForEvents.value || isListeningForWorkflowEvents.value) {
|
|
1124
|
-
return i18n.baseText("ndv.execute.stopListening");
|
|
1125
|
-
}
|
|
1126
|
-
if (props.label) {
|
|
1127
|
-
return props.label;
|
|
1128
|
-
}
|
|
1129
|
-
if (isChatNode.value) {
|
|
1130
|
-
return i18n.baseText("ndv.execute.testChat");
|
|
1131
|
-
}
|
|
1132
|
-
if (isWebhookNode.value) {
|
|
1133
|
-
return i18n.baseText("ndv.execute.listenForTestEvent");
|
|
1134
|
-
}
|
|
1135
|
-
if (isFormTriggerNode.value) {
|
|
1136
|
-
return i18n.baseText("ndv.execute.testStep");
|
|
1137
|
-
}
|
|
1138
|
-
if (isPollingTypeNode.value || nodeType.value?.mockManualExecution) {
|
|
1139
|
-
return i18n.baseText("ndv.execute.fetchEvent");
|
|
1140
|
-
}
|
|
1141
|
-
return i18n.baseText("ndv.execute.testNode");
|
|
1142
|
-
});
|
|
1143
|
-
const isLoading = computed(
|
|
1144
|
-
() => codeGenerationInProgress.value || isNodeRunning.value && !isListeningForEvents.value && !isListeningForWorkflowEvents.value
|
|
1145
|
-
);
|
|
1146
|
-
const buttonIcon = computed(() => {
|
|
1147
|
-
if (shouldGenerateCode.value) return "terminal";
|
|
1148
|
-
if (!isListeningForEvents.value && !props.hideIcon) return "flask";
|
|
1149
|
-
return void 0;
|
|
1150
|
-
});
|
|
1151
|
-
const shouldGenerateCode = computed(() => {
|
|
1152
|
-
if (node2.value?.type !== AI_TRANSFORM_NODE_TYPE) {
|
|
1153
|
-
return false;
|
|
1154
|
-
}
|
|
1155
|
-
if (!node2.value?.parameters?.instructions) {
|
|
1156
|
-
return false;
|
|
1157
|
-
}
|
|
1158
|
-
if (!node2.value?.parameters?.jsCode) {
|
|
1159
|
-
return true;
|
|
1160
|
-
}
|
|
1161
|
-
if (node2.value?.parameters[AI_TRANSFORM_CODE_GENERATED_FOR_PROMPT] && (node2.value?.parameters?.instructions).trim() !== (node2.value?.parameters?.[AI_TRANSFORM_CODE_GENERATED_FOR_PROMPT]).trim()) {
|
|
1162
|
-
return true;
|
|
1163
|
-
}
|
|
1164
|
-
return false;
|
|
1165
|
-
});
|
|
1166
|
-
async function stopWaitingForWebhook() {
|
|
1167
|
-
try {
|
|
1168
|
-
await workflowsStore.removeTestWebhook(workflowsStore.workflowId);
|
|
1169
|
-
} catch (error) {
|
|
1170
|
-
toast.showError(error, "Error stopping webhook");
|
|
1171
|
-
}
|
|
1172
|
-
}
|
|
1173
|
-
function testStepButtonPopupCount() {
|
|
1174
|
-
return Number(localStorage.getItem(NODE_TEST_STEP_POPUP_COUNT_KEY));
|
|
1175
|
-
}
|
|
1176
|
-
function onMouseOver() {
|
|
1177
|
-
const count = testStepButtonPopupCount();
|
|
1178
|
-
if (count < MAX_POPUP_COUNT && !disabledHint.value && tooltipText.value) {
|
|
1179
|
-
const now = Date.now();
|
|
1180
|
-
if (!lastPopupCountUpdate.value || now - lastPopupCountUpdate.value >= POPUP_UPDATE_DELAY) {
|
|
1181
|
-
localStorage.setItem(NODE_TEST_STEP_POPUP_COUNT_KEY, `${count + 1}`);
|
|
1182
|
-
lastPopupCountUpdate.value = now;
|
|
1183
|
-
}
|
|
1184
|
-
}
|
|
1185
|
-
}
|
|
1186
|
-
async function onClick() {
|
|
1187
|
-
if (shouldGenerateCode.value) {
|
|
1188
|
-
codeGenerationInProgress.value = true;
|
|
1189
|
-
try {
|
|
1190
|
-
toast.showMessage({
|
|
1191
|
-
title: i18n.baseText("ndv.execute.generateCode.title"),
|
|
1192
|
-
message: i18n.baseText("ndv.execute.generateCode.message", {
|
|
1193
|
-
interpolate: { nodeName: node2.value?.name }
|
|
1194
|
-
}),
|
|
1195
|
-
type: "success"
|
|
1196
|
-
});
|
|
1197
|
-
const prompt2 = node2.value?.parameters?.instructions;
|
|
1198
|
-
const updateInformation = await generateCodeForAiTransform(
|
|
1199
|
-
prompt2,
|
|
1200
|
-
`parameters.${AI_TRANSFORM_JS_CODE}`,
|
|
1201
|
-
5
|
|
1202
|
-
);
|
|
1203
|
-
if (!updateInformation) return;
|
|
1204
|
-
emit("valueChanged", updateInformation);
|
|
1205
|
-
emit("valueChanged", {
|
|
1206
|
-
name: `parameters.${AI_TRANSFORM_CODE_GENERATED_FOR_PROMPT}`,
|
|
1207
|
-
value: prompt2
|
|
1208
|
-
});
|
|
1209
|
-
useTelemetry().trackAiTransform("generationFinished", {
|
|
1210
|
-
prompt: prompt2,
|
|
1211
|
-
code: updateInformation.value
|
|
1212
|
-
});
|
|
1213
|
-
} catch (error) {
|
|
1214
|
-
useTelemetry().trackAiTransform("generationFinished", {
|
|
1215
|
-
prompt,
|
|
1216
|
-
code: "",
|
|
1217
|
-
hasError: true
|
|
1218
|
-
});
|
|
1219
|
-
toast.showMessage({
|
|
1220
|
-
type: "error",
|
|
1221
|
-
title: i18n.baseText("codeNodeEditor.askAi.generationFailed"),
|
|
1222
|
-
message: error.message
|
|
1223
|
-
});
|
|
1224
|
-
}
|
|
1225
|
-
codeGenerationInProgress.value = false;
|
|
1226
|
-
}
|
|
1227
|
-
if (isChatNode.value || isChatChild.value && ndvStore.isInputPanelEmpty) {
|
|
1228
|
-
ndvStore.setActiveNodeName(null);
|
|
1229
|
-
workflowsStore.chatPartialExecutionDestinationNode = props.nodeName;
|
|
1230
|
-
nodeViewEventBus.emit("openChat");
|
|
1231
|
-
} else if (isListeningForEvents.value) {
|
|
1232
|
-
await stopWaitingForWebhook();
|
|
1233
|
-
} else if (isListeningForWorkflowEvents.value) {
|
|
1234
|
-
await stopCurrentExecution();
|
|
1235
|
-
emit("stopExecution");
|
|
1236
|
-
} else {
|
|
1237
|
-
let shouldUnpinAndExecute = false;
|
|
1238
|
-
if (pinnedData.hasData.value) {
|
|
1239
|
-
const confirmResult = await message.confirm(
|
|
1240
|
-
i18n.baseText("ndv.pinData.unpinAndExecute.description"),
|
|
1241
|
-
i18n.baseText("ndv.pinData.unpinAndExecute.title"),
|
|
1242
|
-
{
|
|
1243
|
-
confirmButtonText: i18n.baseText("ndv.pinData.unpinAndExecute.confirm"),
|
|
1244
|
-
cancelButtonText: i18n.baseText("ndv.pinData.unpinAndExecute.cancel")
|
|
1245
|
-
}
|
|
1246
|
-
);
|
|
1247
|
-
shouldUnpinAndExecute = confirmResult === MODAL_CONFIRM;
|
|
1248
|
-
if (shouldUnpinAndExecute && node2.value) {
|
|
1249
|
-
pinnedData.unsetData("unpin-and-execute-modal");
|
|
1250
|
-
}
|
|
1251
|
-
}
|
|
1252
|
-
if (!pinnedData.hasData.value || shouldUnpinAndExecute) {
|
|
1253
|
-
const telemetryPayload = {
|
|
1254
|
-
node_type: nodeType.value ? nodeType.value.name : null,
|
|
1255
|
-
workflow_id: workflowsStore.workflowId,
|
|
1256
|
-
source: props.telemetrySource,
|
|
1257
|
-
push_ref: ndvStore.pushRef
|
|
1258
|
-
};
|
|
1259
|
-
telemetry.track("User clicked execute node button", telemetryPayload);
|
|
1260
|
-
await externalHooks.run("nodeExecuteButton.onClick", telemetryPayload);
|
|
1261
|
-
await runWorkflow({
|
|
1262
|
-
destinationNode: props.nodeName,
|
|
1263
|
-
source: "RunData.ExecuteNodeButton"
|
|
1264
|
-
});
|
|
1265
|
-
emit("execute");
|
|
1266
|
-
}
|
|
1267
|
-
}
|
|
1268
|
-
}
|
|
1269
|
-
return (_ctx, _cache) => {
|
|
1270
|
-
const _component_N8nButton = resolveComponent("N8nButton");
|
|
1271
|
-
const _component_N8nTooltip = resolveComponent("N8nTooltip");
|
|
1272
|
-
return openBlock(), createBlock(_component_N8nTooltip, {
|
|
1273
|
-
placement: "right",
|
|
1274
|
-
disabled: !tooltipText.value,
|
|
1275
|
-
content: tooltipText.value
|
|
1276
|
-
}, {
|
|
1277
|
-
default: withCtx(() => [
|
|
1278
|
-
createVNode(_component_N8nButton, mergeProps(_ctx.$attrs, {
|
|
1279
|
-
loading: isLoading.value,
|
|
1280
|
-
disabled: _ctx.disabled || !!disabledHint.value,
|
|
1281
|
-
label: buttonLabel.value,
|
|
1282
|
-
type: _ctx.type,
|
|
1283
|
-
size: _ctx.size,
|
|
1284
|
-
icon: buttonIcon.value,
|
|
1285
|
-
"transparent-background": _ctx.transparent,
|
|
1286
|
-
title: !isTriggerNode.value && !tooltipText.value ? unref(i18n).baseText("ndv.execute.testNode.description") : "",
|
|
1287
|
-
onMouseover: onMouseOver,
|
|
1288
|
-
onClick
|
|
1289
|
-
}), null, 16, ["loading", "disabled", "label", "type", "size", "icon", "transparent-background", "title"])
|
|
1290
|
-
]),
|
|
1291
|
-
_: 1
|
|
1292
|
-
}, 8, ["disabled", "content"]);
|
|
1293
|
-
};
|
|
1294
|
-
}
|
|
1295
|
-
});
|
|
1011
|
+
const NDVSubConnections = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__cssModules", cssModules$c]]);
|
|
1296
1012
|
function updateDynamicConnections(node2, workflowConnections, parameterData) {
|
|
1297
1013
|
const connections2 = { ...workflowConnections };
|
|
1298
1014
|
try {
|
|
@@ -1512,7 +1228,7 @@ const _hoisted_10$1 = {
|
|
|
1512
1228
|
class: "parameter-item parameter-notice",
|
|
1513
1229
|
"data-test-id": "node-parameters-http-notice"
|
|
1514
1230
|
};
|
|
1515
|
-
const _hoisted_11
|
|
1231
|
+
const _hoisted_11 = {
|
|
1516
1232
|
class: "node-version",
|
|
1517
1233
|
"data-test-id": "node-version"
|
|
1518
1234
|
};
|
|
@@ -1718,7 +1434,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1718
1434
|
(option) => option.value === nodeParameterValues[prop.name]
|
|
1719
1435
|
);
|
|
1720
1436
|
}
|
|
1721
|
-
if (!hasValidOptions && displayParameter(nodeParameterValues, prop, node2.value)) {
|
|
1437
|
+
if (!hasValidOptions && displayParameter(nodeParameterValues, prop, node2.value, nodeType)) {
|
|
1722
1438
|
unset(nodeParameterValues, prop.name);
|
|
1723
1439
|
}
|
|
1724
1440
|
});
|
|
@@ -1758,7 +1474,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1758
1474
|
_node.parameters,
|
|
1759
1475
|
false,
|
|
1760
1476
|
false,
|
|
1761
|
-
_node
|
|
1477
|
+
_node,
|
|
1478
|
+
nodeType
|
|
1762
1479
|
);
|
|
1763
1480
|
const oldNodeParameters = Object.assign({}, nodeParameters);
|
|
1764
1481
|
nodeParameters = deepCopy(nodeParameters);
|
|
@@ -1795,7 +1512,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1795
1512
|
nodeParameters,
|
|
1796
1513
|
true,
|
|
1797
1514
|
false,
|
|
1798
|
-
_node
|
|
1515
|
+
_node,
|
|
1516
|
+
nodeType
|
|
1799
1517
|
);
|
|
1800
1518
|
for (const key of Object.keys(nodeParameters)) {
|
|
1801
1519
|
if (nodeParameters && nodeParameters[key] !== null && nodeParameters[key] !== void 0) {
|
|
@@ -1821,7 +1539,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1821
1539
|
_node.parameters,
|
|
1822
1540
|
false,
|
|
1823
1541
|
false,
|
|
1824
|
-
_node
|
|
1542
|
+
_node,
|
|
1543
|
+
nodeType
|
|
1825
1544
|
);
|
|
1826
1545
|
const oldNodeParameters = Object.assign({}, nodeParameters);
|
|
1827
1546
|
nodeParameters = deepCopy(nodeParameters);
|
|
@@ -1850,7 +1569,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1850
1569
|
nodeParameters,
|
|
1851
1570
|
true,
|
|
1852
1571
|
false,
|
|
1853
|
-
_node
|
|
1572
|
+
_node,
|
|
1573
|
+
nodeType
|
|
1854
1574
|
);
|
|
1855
1575
|
for (const key of Object.keys(nodeParameters)) {
|
|
1856
1576
|
if (nodeParameters && nodeParameters[key] !== null && nodeParameters[key] !== void 0) {
|
|
@@ -2223,7 +1943,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2223
1943
|
"onUpdate:modelValue": nameChanged
|
|
2224
1944
|
}, null, 8, ["model-value", "node-type", "read-only"])) : createCommentVNode("", true),
|
|
2225
1945
|
isExecutable.value ? (openBlock(), createElementBlock("div", _hoisted_2$5, [
|
|
2226
|
-
!_ctx.blockUI && node2.value && nodeValid.value ? (openBlock(), createBlock(_sfc_main$
|
|
1946
|
+
!_ctx.blockUI && node2.value && nodeValid.value ? (openBlock(), createBlock(_sfc_main$m, {
|
|
2227
1947
|
key: 0,
|
|
2228
1948
|
"data-test-id": "node-execute-button",
|
|
2229
1949
|
"node-name": node2.value.name,
|
|
@@ -2237,7 +1957,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2237
1957
|
}, null, 8, ["node-name", "disabled", "tooltip"])) : createCommentVNode("", true)
|
|
2238
1958
|
])) : createCommentVNode("", true)
|
|
2239
1959
|
]),
|
|
2240
|
-
node2.value && nodeValid.value ? (openBlock(), createBlock(_sfc_main$
|
|
1960
|
+
node2.value && nodeValid.value ? (openBlock(), createBlock(_sfc_main$j, {
|
|
2241
1961
|
key: 0,
|
|
2242
1962
|
"model-value": openPanel.value,
|
|
2243
1963
|
"node-type": _ctx.nodeType,
|
|
@@ -2383,7 +2103,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2383
2103
|
onValueChanged: valueChanged,
|
|
2384
2104
|
onParameterBlur
|
|
2385
2105
|
}, null, 8, ["parameters", "node-values", "is-read-only", "hidden-issues-inputs"]),
|
|
2386
|
-
createBaseVNode("div", _hoisted_11
|
|
2106
|
+
createBaseVNode("div", _hoisted_11, [
|
|
2387
2107
|
createTextVNode(toDisplayString(unref(i18n).baseText("nodeSettings.nodeVersion", {
|
|
2388
2108
|
interpolate: {
|
|
2389
2109
|
node: _ctx.nodeType?.displayName,
|
|
@@ -2420,7 +2140,7 @@ const style0$a = {
|
|
|
2420
2140
|
const cssModules$b = {
|
|
2421
2141
|
"$style": style0$a
|
|
2422
2142
|
};
|
|
2423
|
-
const NodeSettings = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__cssModules", cssModules$b], ["__scopeId", "data-v-
|
|
2143
|
+
const NodeSettings = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__cssModules", cssModules$b], ["__scopeId", "data-v-18fbbe4a"]]);
|
|
2424
2144
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
2425
2145
|
__name: "PanelDragButton",
|
|
2426
2146
|
props: {
|
|
@@ -2636,7 +2356,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
2636
2356
|
"data-node-placement": connectionGroup,
|
|
2637
2357
|
onClick: ($event) => emit("switchSelectedNode", node2.name)
|
|
2638
2358
|
}, [
|
|
2639
|
-
createVNode(_sfc_main$
|
|
2359
|
+
createVNode(_sfc_main$l, {
|
|
2640
2360
|
"node-type": nodeType,
|
|
2641
2361
|
"node-name": node2.name,
|
|
2642
2362
|
"tooltip-position": tooltipPositionMapper[connectionGroup],
|
|
@@ -3647,17 +3367,15 @@ const _hoisted_1$4 = {
|
|
|
3647
3367
|
key: 0,
|
|
3648
3368
|
class: "ml-4xs"
|
|
3649
3369
|
};
|
|
3650
|
-
const _hoisted_2$1 =
|
|
3651
|
-
const _hoisted_3$1 = { key:
|
|
3652
|
-
const _hoisted_4$1 =
|
|
3653
|
-
const _hoisted_5$1 =
|
|
3370
|
+
const _hoisted_2$1 = { key: 0 };
|
|
3371
|
+
const _hoisted_3$1 = { key: 1 };
|
|
3372
|
+
const _hoisted_4$1 = { key: 0 };
|
|
3373
|
+
const _hoisted_5$1 = ["data-test-id"];
|
|
3654
3374
|
const _hoisted_6$1 = { key: 0 };
|
|
3655
|
-
const _hoisted_7$1 =
|
|
3656
|
-
const _hoisted_8$1 = { key:
|
|
3657
|
-
const _hoisted_9 = { key:
|
|
3658
|
-
const _hoisted_10 = { key:
|
|
3659
|
-
const _hoisted_11 = { key: 3 };
|
|
3660
|
-
const _hoisted_12 = { key: 4 };
|
|
3375
|
+
const _hoisted_7$1 = { key: 1 };
|
|
3376
|
+
const _hoisted_8$1 = { key: 2 };
|
|
3377
|
+
const _hoisted_9 = { key: 3 };
|
|
3378
|
+
const _hoisted_10 = { key: 4 };
|
|
3661
3379
|
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
3662
3380
|
__name: "RunData",
|
|
3663
3381
|
props: {
|
|
@@ -3685,19 +3403,19 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3685
3403
|
emits: ["search", "runChange", "itemHover", "linkRun", "unlinkRun", "activatePane", "tableMounted"],
|
|
3686
3404
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
3687
3405
|
const LazyRunDataTable = defineAsyncComponent(
|
|
3688
|
-
async () => await __vitePreload(() => import("./RunDataTable-
|
|
3406
|
+
async () => await __vitePreload(() => import("./RunDataTable-DsW7wuc2.js"), true ? __vite__mapDeps([0,1,2,3,4,5]) : void 0)
|
|
3689
3407
|
);
|
|
3690
3408
|
const LazyRunDataJson = defineAsyncComponent(
|
|
3691
|
-
async () => await __vitePreload(() => import("./RunDataJson-
|
|
3409
|
+
async () => await __vitePreload(() => import("./RunDataJson-CyNNCtyd.js"), true ? __vite__mapDeps([6,1,2,7,8,9,10,3,4,11,12,13]) : void 0)
|
|
3692
3410
|
);
|
|
3693
3411
|
const LazyRunDataSchema = defineAsyncComponent(
|
|
3694
|
-
async () => await __vitePreload(() => import("./index-
|
|
3412
|
+
async () => await __vitePreload(() => import("./index-DD7Wuhk5.js").then((n) => n.im), true ? __vite__mapDeps([1,2]) : void 0)
|
|
3695
3413
|
);
|
|
3696
3414
|
const LazyRunDataHtml = defineAsyncComponent(
|
|
3697
3415
|
async () => await __vitePreload(() => Promise.resolve().then(() => RunDataHtml$1), true ? void 0 : void 0)
|
|
3698
3416
|
);
|
|
3699
3417
|
const LazyRunDataSearch = defineAsyncComponent(
|
|
3700
|
-
async () => await __vitePreload(() => import("./RunDataSearch-
|
|
3418
|
+
async () => await __vitePreload(() => import("./RunDataSearch-BF9kshKq.js"), true ? __vite__mapDeps([14,1,2,15]) : void 0)
|
|
3701
3419
|
);
|
|
3702
3420
|
const props = __props;
|
|
3703
3421
|
const emit = __emit;
|
|
@@ -3729,7 +3447,6 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3729
3447
|
const externalHooks = useExternalHooks();
|
|
3730
3448
|
const telemetry = useTelemetry();
|
|
3731
3449
|
const i18n = useI18n();
|
|
3732
|
-
const { trackOpeningRelatedExecution, resolveRelatedExecutionUrl } = useExecutionHelpers();
|
|
3733
3450
|
const node2 = toRef$1(props, "node");
|
|
3734
3451
|
const pinnedData = usePinnedData(node2, {
|
|
3735
3452
|
runIndex: props.runIndex,
|
|
@@ -3996,11 +3713,6 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3996
3713
|
}
|
|
3997
3714
|
return workflowRunData.value?.[node2.value.name]?.[props.runIndex]?.metadata ?? null;
|
|
3998
3715
|
});
|
|
3999
|
-
const hasRelatedExecution = computed(() => {
|
|
4000
|
-
return Boolean(
|
|
4001
|
-
activeTaskMetadata.value?.subExecution ?? activeTaskMetadata.value?.parentExecution
|
|
4002
|
-
);
|
|
4003
|
-
});
|
|
4004
3716
|
const hasInputOverwrite = computed(() => {
|
|
4005
3717
|
if (!node2.value) {
|
|
4006
3718
|
return false;
|
|
@@ -4597,26 +4309,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
4597
4309
|
search2.value = "";
|
|
4598
4310
|
document.dispatchEvent(new KeyboardEvent("keyup", { key: "/" }));
|
|
4599
4311
|
}
|
|
4600
|
-
function getExecutionLinkLabel(task) {
|
|
4601
|
-
if (task.parentExecution) {
|
|
4602
|
-
return i18n.baseText("runData.openParentExecution", {
|
|
4603
|
-
interpolate: { id: task.parentExecution.executionId }
|
|
4604
|
-
});
|
|
4605
|
-
}
|
|
4606
|
-
if (task.subExecution) {
|
|
4607
|
-
if (activeTaskMetadata.value?.subExecutionsCount === 1) {
|
|
4608
|
-
return i18n.baseText("runData.openSubExecutionSingle");
|
|
4609
|
-
} else {
|
|
4610
|
-
return i18n.baseText("runData.openSubExecutionWithId", {
|
|
4611
|
-
interpolate: { id: task.subExecution.executionId }
|
|
4612
|
-
});
|
|
4613
|
-
}
|
|
4614
|
-
}
|
|
4615
|
-
return;
|
|
4616
|
-
}
|
|
4617
4312
|
__expose({ enterEditMode });
|
|
4618
4313
|
return (_ctx, _cache) => {
|
|
4619
|
-
const _component_N8nIcon = resolveComponent("N8nIcon");
|
|
4620
4314
|
const _component_i18n_t = resolveComponent("i18n-t");
|
|
4621
4315
|
const _component_el_pagination = resolveComponent("el-pagination");
|
|
4622
4316
|
const _directive_n8n_html = resolveDirective("n8n-html");
|
|
@@ -4812,20 +4506,11 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
4812
4506
|
})) : createCommentVNode("", true),
|
|
4813
4507
|
renderSlot(_ctx.$slots, "run-info", {}, void 0, true)
|
|
4814
4508
|
], 2),
|
|
4815
|
-
activeTaskMetadata.value &&
|
|
4509
|
+
activeTaskMetadata.value && !(_ctx.paneType === "input" && hasInputOverwrite.value) ? (openBlock(), createBlock(ViewSubExecution, {
|
|
4816
4510
|
key: 0,
|
|
4817
|
-
|
|
4818
|
-
"
|
|
4819
|
-
|
|
4820
|
-
target: "_blank",
|
|
4821
|
-
onClick: _cache[6] || (_cache[6] = withModifiers(($event) => unref(trackOpeningRelatedExecution)(activeTaskMetadata.value, displayMode.value), ["stop"]))
|
|
4822
|
-
}, [
|
|
4823
|
-
createVNode(_component_N8nIcon, {
|
|
4824
|
-
icon: "external-link-alt",
|
|
4825
|
-
size: "xsmall"
|
|
4826
|
-
}),
|
|
4827
|
-
createTextVNode(" " + toDisplayString(getExecutionLinkLabel(activeTaskMetadata.value)), 1)
|
|
4828
|
-
], 10, _hoisted_2$1)) : createCommentVNode("", true)
|
|
4511
|
+
"task-metadata": activeTaskMetadata.value,
|
|
4512
|
+
"display-mode": displayMode.value
|
|
4513
|
+
}, null, 8, ["task-metadata", "display-mode"])) : createCommentVNode("", true)
|
|
4829
4514
|
], 2)), [
|
|
4830
4515
|
[vShow, !editMode2.value.enabled]
|
|
4831
4516
|
]) : createCommentVNode("", true),
|
|
@@ -4867,6 +4552,11 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
4867
4552
|
"data-test-id": "branches"
|
|
4868
4553
|
}, [
|
|
4869
4554
|
inputSelectLocation.value === "outputs" ? renderSlot(_ctx.$slots, "input-select", { key: 0 }, void 0, true) : createCommentVNode("", true),
|
|
4555
|
+
activeTaskMetadata.value && !(_ctx.paneType === "input" && hasInputOverwrite.value) ? (openBlock(), createBlock(ViewSubExecution, {
|
|
4556
|
+
key: 1,
|
|
4557
|
+
"task-metadata": activeTaskMetadata.value,
|
|
4558
|
+
"display-mode": displayMode.value
|
|
4559
|
+
}, null, 8, ["task-metadata", "display-mode"])) : createCommentVNode("", true),
|
|
4870
4560
|
createBaseVNode("div", {
|
|
4871
4561
|
class: normalizeClass(_ctx.$style.tabs)
|
|
4872
4562
|
}, [
|
|
@@ -4902,27 +4592,18 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
4902
4592
|
adjustToNumber: dataCount.value,
|
|
4903
4593
|
interpolate: { count: dataCount.value }
|
|
4904
4594
|
})), 1),
|
|
4905
|
-
activeTaskMetadata.value?.subExecutionsCount ? (openBlock(), createElementBlock("span",
|
|
4595
|
+
activeTaskMetadata.value?.subExecutionsCount ? (openBlock(), createElementBlock("span", _hoisted_2$1, toDisplayString(unref(i18n).baseText("ndv.output.andSubExecutions", {
|
|
4906
4596
|
adjustToNumber: activeTaskMetadata.value.subExecutionsCount,
|
|
4907
4597
|
interpolate: { count: activeTaskMetadata.value.subExecutionsCount }
|
|
4908
4598
|
})), 1)) : createCommentVNode("", true)
|
|
4909
4599
|
]),
|
|
4910
4600
|
_: 1
|
|
4911
4601
|
}, 8, ["class"])),
|
|
4912
|
-
activeTaskMetadata.value &&
|
|
4602
|
+
activeTaskMetadata.value && !(_ctx.paneType === "input" && hasInputOverwrite.value) ? (openBlock(), createBlock(ViewSubExecution, {
|
|
4913
4603
|
key: 3,
|
|
4914
|
-
|
|
4915
|
-
"
|
|
4916
|
-
|
|
4917
|
-
target: "_blank",
|
|
4918
|
-
onClick: _cache[7] || (_cache[7] = withModifiers(($event) => unref(trackOpeningRelatedExecution)(activeTaskMetadata.value, displayMode.value), ["stop"]))
|
|
4919
|
-
}, [
|
|
4920
|
-
createVNode(_component_N8nIcon, {
|
|
4921
|
-
icon: "external-link-alt",
|
|
4922
|
-
size: "xsmall"
|
|
4923
|
-
}),
|
|
4924
|
-
createTextVNode(" " + toDisplayString(getExecutionLinkLabel(activeTaskMetadata.value)), 1)
|
|
4925
|
-
], 10, _hoisted_4$1)) : createCommentVNode("", true)
|
|
4604
|
+
"task-metadata": activeTaskMetadata.value,
|
|
4605
|
+
"display-mode": displayMode.value
|
|
4606
|
+
}, null, 8, ["task-metadata", "display-mode"])) : createCommentVNode("", true)
|
|
4926
4607
|
], 2)), [
|
|
4927
4608
|
[vShow, !editMode2.value.enabled]
|
|
4928
4609
|
]) : createCommentVNode("", true),
|
|
@@ -4958,7 +4639,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
4958
4639
|
createVNode(JsonEditor, {
|
|
4959
4640
|
"model-value": editMode2.value.value,
|
|
4960
4641
|
"fill-parent": true,
|
|
4961
|
-
"onUpdate:modelValue": _cache[
|
|
4642
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => unref(ndvStore).setOutputPanelEditModeValue($event))
|
|
4962
4643
|
}, null, 8, ["model-value"])
|
|
4963
4644
|
], 2),
|
|
4964
4645
|
createBaseVNode("div", {
|
|
@@ -4996,7 +4677,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
4996
4677
|
class: normalizeClass(_ctx.$style.center)
|
|
4997
4678
|
}, [
|
|
4998
4679
|
renderSlot(_ctx.$slots, "node-waiting", {}, () => [
|
|
4999
|
-
_cache[
|
|
4680
|
+
_cache[9] || (_cache[9] = createTextVNode("xxx"))
|
|
5000
4681
|
], true)
|
|
5001
4682
|
], 2)) : !hasNodeRun.value && !(displaysMultipleNodes.value && (node2.value?.disabled || unref(hasPreviewSchema))) ? (openBlock(), createElementBlock("div", {
|
|
5002
4683
|
key: 4,
|
|
@@ -5079,7 +4760,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
5079
4760
|
})), 1)
|
|
5080
4761
|
]),
|
|
5081
4762
|
_: 1
|
|
5082
|
-
}, 8, ["class"])) : _ctx.$slots["content"] ? (openBlock(), createElementBlock("div",
|
|
4763
|
+
}, 8, ["class"])) : _ctx.$slots["content"] ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
|
|
5083
4764
|
workflowRunErrorAsNodeError.value ? (openBlock(), createBlock(_sfc_main$r, {
|
|
5084
4765
|
key: 0,
|
|
5085
4766
|
error: workflowRunErrorAsNodeError.value,
|
|
@@ -5096,7 +4777,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
5096
4777
|
key: 10,
|
|
5097
4778
|
class: normalizeClass(_ctx.$style.center)
|
|
5098
4779
|
}, [
|
|
5099
|
-
search2.value ? (openBlock(), createElementBlock("div",
|
|
4780
|
+
search2.value ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
|
|
5100
4781
|
createVNode(unref(N8nText), {
|
|
5101
4782
|
tag: "h3",
|
|
5102
4783
|
size: "large"
|
|
@@ -5134,7 +4815,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
5134
4815
|
class: normalizeClass(_ctx.$style.center)
|
|
5135
4816
|
}, [
|
|
5136
4817
|
renderSlot(_ctx.$slots, "no-output-data", {}, () => [
|
|
5137
|
-
_cache[
|
|
4818
|
+
_cache[10] || (_cache[10] = createTextVNode("xxx"))
|
|
5138
4819
|
], true)
|
|
5139
4820
|
], 2)) : hasNodeRun.value && !showData.value ? (openBlock(), createElementBlock("div", {
|
|
5140
4821
|
key: 12,
|
|
@@ -5175,7 +4856,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
5175
4856
|
createVNode(unref(N8nButton), {
|
|
5176
4857
|
size: "small",
|
|
5177
4858
|
label: unref(i18n).baseText("runData.downloadBinaryData"),
|
|
5178
|
-
onClick: _cache[
|
|
4859
|
+
onClick: _cache[7] || (_cache[7] = ($event) => downloadJsonData())
|
|
5179
4860
|
}, null, 8, ["label"])
|
|
5180
4861
|
], 2)) : hasNodeRun.value && _ctx.$slots["content"] ? renderSlot(_ctx.$slots, "content", { key: 13 }, void 0, true) : hasNodeRun.value && displayMode.value === "table" && binaryData.value.length > 0 && inputData.value.length === 1 && Object.keys(jsonData.value[0] || {}).length === 0 ? (openBlock(), createElementBlock("div", {
|
|
5181
4862
|
key: 14,
|
|
@@ -5230,7 +4911,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
5230
4911
|
"total-runs": maxRunIndex.value,
|
|
5231
4912
|
"has-default-hover-state": _ctx.paneType === "input" && !search2.value,
|
|
5232
4913
|
search: search2.value,
|
|
5233
|
-
onMounted: _cache[
|
|
4914
|
+
onMounted: _cache[8] || (_cache[8] = ($event) => emit("tableMounted", $event)),
|
|
5234
4915
|
onActiveRowChanged: onItemHover,
|
|
5235
4916
|
onDisplayModeChange
|
|
5236
4917
|
}, null, 8, ["node", "input-data", "mapping-enabled", "distance-from-active", "run-index", "page-offset", "total-runs", "has-default-hover-state", "search"])
|
|
@@ -5315,7 +4996,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
5315
4996
|
createBaseVNode("div", {
|
|
5316
4997
|
class: normalizeClass(_ctx.$style.binaryHeader)
|
|
5317
4998
|
}, toDisplayString(key), 3),
|
|
5318
|
-
binaryData2.fileName ? (openBlock(), createElementBlock("div",
|
|
4999
|
+
binaryData2.fileName ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
|
|
5319
5000
|
createBaseVNode("div", null, [
|
|
5320
5001
|
createVNode(unref(N8nText), {
|
|
5321
5002
|
size: "small",
|
|
@@ -5331,7 +5012,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
5331
5012
|
class: normalizeClass(_ctx.$style.binaryValue)
|
|
5332
5013
|
}, toDisplayString(binaryData2.fileName), 3)
|
|
5333
5014
|
])) : createCommentVNode("", true),
|
|
5334
|
-
binaryData2.directory ? (openBlock(), createElementBlock("div",
|
|
5015
|
+
binaryData2.directory ? (openBlock(), createElementBlock("div", _hoisted_7$1, [
|
|
5335
5016
|
createBaseVNode("div", null, [
|
|
5336
5017
|
createVNode(unref(N8nText), {
|
|
5337
5018
|
size: "small",
|
|
@@ -5347,7 +5028,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
5347
5028
|
class: normalizeClass(_ctx.$style.binaryValue)
|
|
5348
5029
|
}, toDisplayString(binaryData2.directory), 3)
|
|
5349
5030
|
])) : createCommentVNode("", true),
|
|
5350
|
-
binaryData2.fileExtension ? (openBlock(), createElementBlock("div",
|
|
5031
|
+
binaryData2.fileExtension ? (openBlock(), createElementBlock("div", _hoisted_8$1, [
|
|
5351
5032
|
createBaseVNode("div", null, [
|
|
5352
5033
|
createVNode(unref(N8nText), {
|
|
5353
5034
|
size: "small",
|
|
@@ -5363,7 +5044,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
5363
5044
|
class: normalizeClass(_ctx.$style.binaryValue)
|
|
5364
5045
|
}, toDisplayString(binaryData2.fileExtension), 3)
|
|
5365
5046
|
])) : createCommentVNode("", true),
|
|
5366
|
-
binaryData2.mimeType ? (openBlock(), createElementBlock("div",
|
|
5047
|
+
binaryData2.mimeType ? (openBlock(), createElementBlock("div", _hoisted_9, [
|
|
5367
5048
|
createBaseVNode("div", null, [
|
|
5368
5049
|
createVNode(unref(N8nText), {
|
|
5369
5050
|
size: "small",
|
|
@@ -5379,7 +5060,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
5379
5060
|
class: normalizeClass(_ctx.$style.binaryValue)
|
|
5380
5061
|
}, toDisplayString(binaryData2.mimeType), 3)
|
|
5381
5062
|
])) : createCommentVNode("", true),
|
|
5382
|
-
binaryData2.fileSize ? (openBlock(), createElementBlock("div",
|
|
5063
|
+
binaryData2.fileSize ? (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
5383
5064
|
createBaseVNode("div", null, [
|
|
5384
5065
|
createVNode(unref(N8nText), {
|
|
5385
5066
|
size: "small",
|
|
@@ -5414,7 +5095,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
5414
5095
|
onClick: ($event) => downloadBinaryData(index, key)
|
|
5415
5096
|
}, null, 8, ["label", "onClick"])) : createCommentVNode("", true)
|
|
5416
5097
|
], 2)
|
|
5417
|
-
], 8,
|
|
5098
|
+
], 8, _hoisted_5$1)
|
|
5418
5099
|
], 2);
|
|
5419
5100
|
}), 128))
|
|
5420
5101
|
], 2)
|
|
@@ -5476,45 +5157,44 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
5476
5157
|
};
|
|
5477
5158
|
}
|
|
5478
5159
|
});
|
|
5479
|
-
const infoIcon = "
|
|
5480
|
-
const center = "
|
|
5481
|
-
const container$1 = "
|
|
5482
|
-
const pinnedDataCallout = "
|
|
5483
|
-
const header$1 = "
|
|
5484
|
-
const dataContainer = "
|
|
5485
|
-
const dataDisplay = "
|
|
5486
|
-
const inlineError = "
|
|
5487
|
-
const outputs = "
|
|
5488
|
-
const tabs = "
|
|
5489
|
-
const itemsCount = "
|
|
5490
|
-
const itemsText = "
|
|
5491
|
-
const muted = "
|
|
5492
|
-
const inputSelect = "
|
|
5493
|
-
const runSelector = "
|
|
5494
|
-
const runSelectorInner = "
|
|
5495
|
-
const runSelectorSelect = "
|
|
5496
|
-
const search = "
|
|
5497
|
-
const pagination = "
|
|
5498
|
-
const pageSizeSelector = "
|
|
5499
|
-
const binaryIndex = "
|
|
5500
|
-
const binaryRow = "
|
|
5501
|
-
const binaryCell = "
|
|
5502
|
-
const binaryHeader = "
|
|
5503
|
-
const binaryButtonContainer = "
|
|
5504
|
-
const binaryValue = "
|
|
5505
|
-
const displayModes = "
|
|
5506
|
-
const tooltipContain = "
|
|
5507
|
-
const spinner = "
|
|
5508
|
-
const editMode = "
|
|
5509
|
-
const editModeBody = "
|
|
5510
|
-
const editModeFooter = "
|
|
5511
|
-
const editModeFooterInfotip = "
|
|
5512
|
-
const editModeActions = "
|
|
5513
|
-
const stretchVertically = "
|
|
5514
|
-
const uiBlocker = "
|
|
5515
|
-
const hintCallout = "
|
|
5516
|
-
const schema = "
|
|
5517
|
-
const relatedExecutionInfo = "_relatedExecutionInfo_e9ynn_426";
|
|
5160
|
+
const infoIcon = "_infoIcon_1vmxg_123";
|
|
5161
|
+
const center = "_center_1vmxg_127";
|
|
5162
|
+
const container$1 = "_container_1vmxg_141";
|
|
5163
|
+
const pinnedDataCallout = "_pinnedDataCallout_1vmxg_150";
|
|
5164
|
+
const header$1 = "_header_1vmxg_158";
|
|
5165
|
+
const dataContainer = "_dataContainer_1vmxg_173";
|
|
5166
|
+
const dataDisplay = "_dataDisplay_1vmxg_182";
|
|
5167
|
+
const inlineError = "_inlineError_1vmxg_194";
|
|
5168
|
+
const outputs = "_outputs_1vmxg_201";
|
|
5169
|
+
const tabs = "_tabs_1vmxg_210";
|
|
5170
|
+
const itemsCount = "_itemsCount_1vmxg_218";
|
|
5171
|
+
const itemsText = "_itemsText_1vmxg_227";
|
|
5172
|
+
const muted = "_muted_1vmxg_233";
|
|
5173
|
+
const inputSelect = "_inputSelect_1vmxg_238";
|
|
5174
|
+
const runSelector = "_runSelector_1vmxg_244";
|
|
5175
|
+
const runSelectorInner = "_runSelectorInner_1vmxg_257";
|
|
5176
|
+
const runSelectorSelect = "_runSelectorSelect_1vmxg_263";
|
|
5177
|
+
const search = "_search_1vmxg_267";
|
|
5178
|
+
const pagination = "_pagination_1vmxg_271";
|
|
5179
|
+
const pageSizeSelector = "_pageSizeSelector_1vmxg_281";
|
|
5180
|
+
const binaryIndex = "_binaryIndex_1vmxg_287";
|
|
5181
|
+
const binaryRow = "_binaryRow_1vmxg_304";
|
|
5182
|
+
const binaryCell = "_binaryCell_1vmxg_309";
|
|
5183
|
+
const binaryHeader = "_binaryHeader_1vmxg_321";
|
|
5184
|
+
const binaryButtonContainer = "_binaryButtonContainer_1vmxg_330";
|
|
5185
|
+
const binaryValue = "_binaryValue_1vmxg_341";
|
|
5186
|
+
const displayModes = "_displayModes_1vmxg_346";
|
|
5187
|
+
const tooltipContain = "_tooltipContain_1vmxg_353";
|
|
5188
|
+
const spinner = "_spinner_1vmxg_357";
|
|
5189
|
+
const editMode = "_editMode_1vmxg_368";
|
|
5190
|
+
const editModeBody = "_editModeBody_1vmxg_377";
|
|
5191
|
+
const editModeFooter = "_editModeFooter_1vmxg_384";
|
|
5192
|
+
const editModeFooterInfotip = "_editModeFooterInfotip_1vmxg_394";
|
|
5193
|
+
const editModeActions = "_editModeActions_1vmxg_400";
|
|
5194
|
+
const stretchVertically = "_stretchVertically_1vmxg_407";
|
|
5195
|
+
const uiBlocker = "_uiBlocker_1vmxg_411";
|
|
5196
|
+
const hintCallout = "_hintCallout_1vmxg_416";
|
|
5197
|
+
const schema = "_schema_1vmxg_422";
|
|
5518
5198
|
const style0$5 = {
|
|
5519
5199
|
infoIcon,
|
|
5520
5200
|
center,
|
|
@@ -5522,7 +5202,7 @@ const style0$5 = {
|
|
|
5522
5202
|
pinnedDataCallout,
|
|
5523
5203
|
header: header$1,
|
|
5524
5204
|
dataContainer,
|
|
5525
|
-
"actions-group": "_actions-
|
|
5205
|
+
"actions-group": "_actions-group_1vmxg_178",
|
|
5526
5206
|
dataDisplay,
|
|
5527
5207
|
inlineError,
|
|
5528
5208
|
outputs,
|
|
@@ -5554,13 +5234,12 @@ const style0$5 = {
|
|
|
5554
5234
|
stretchVertically,
|
|
5555
5235
|
uiBlocker,
|
|
5556
5236
|
hintCallout,
|
|
5557
|
-
schema
|
|
5558
|
-
relatedExecutionInfo
|
|
5237
|
+
schema
|
|
5559
5238
|
};
|
|
5560
5239
|
const cssModules$6 = {
|
|
5561
5240
|
"$style": style0$5
|
|
5562
5241
|
};
|
|
5563
|
-
const RunData = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__cssModules", cssModules$6], ["__scopeId", "data-v-
|
|
5242
|
+
const RunData = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__cssModules", cssModules$6], ["__scopeId", "data-v-7bd2e155"]]);
|
|
5564
5243
|
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
5565
5244
|
__name: "RunInfo",
|
|
5566
5245
|
props: {
|
|
@@ -6163,7 +5842,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
6163
5842
|
"onUpdate:modelValue": onInputNodeChange
|
|
6164
5843
|
}, {
|
|
6165
5844
|
prefix: withCtx(() => [
|
|
6166
|
-
createVNode(_sfc_main$
|
|
5845
|
+
createVNode(_sfc_main$l, {
|
|
6167
5846
|
disabled: selectedInputNode.value?.disabled,
|
|
6168
5847
|
"node-type": selectedInputNodeType.value,
|
|
6169
5848
|
size: 14,
|
|
@@ -6180,7 +5859,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
6180
5859
|
"data-test-id": "ndv-input-option"
|
|
6181
5860
|
}, {
|
|
6182
5861
|
default: withCtx(() => [
|
|
6183
|
-
createVNode(_sfc_main$
|
|
5862
|
+
createVNode(_sfc_main$l, {
|
|
6184
5863
|
disabled: node2.disabled,
|
|
6185
5864
|
"node-type": type,
|
|
6186
5865
|
size: 14,
|
|
@@ -6583,7 +6262,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
6583
6262
|
])
|
|
6584
6263
|
]),
|
|
6585
6264
|
default: withCtx(() => [
|
|
6586
|
-
createVNode(_sfc_main$
|
|
6265
|
+
createVNode(_sfc_main$m, {
|
|
6587
6266
|
type: "secondary",
|
|
6588
6267
|
"hide-icon": "",
|
|
6589
6268
|
transparent: true,
|
|
@@ -7050,7 +6729,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
7050
6729
|
hasIssues2.value || hideContent.value ? (openBlock(), createElementBlock("div", _hoisted_1$1)) : isListeningForEvents.value ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
7051
6730
|
createVNode(_component_n8n_pulse, null, {
|
|
7052
6731
|
default: withCtx(() => [
|
|
7053
|
-
createVNode(_sfc_main$
|
|
6732
|
+
createVNode(_sfc_main$l, {
|
|
7054
6733
|
"node-type": nodeType.value,
|
|
7055
6734
|
size: 40
|
|
7056
6735
|
}, null, 8, ["node-type"])
|
|
@@ -7091,7 +6770,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
7091
6770
|
"copy-button-text": unref(i18n).baseText("generic.clickToCopy"),
|
|
7092
6771
|
onCopy: onTestLinkCopied
|
|
7093
6772
|
}, null, 8, ["value", "toast-title", "copy-button-text"]),
|
|
7094
|
-
createVNode(_sfc_main$
|
|
6773
|
+
createVNode(_sfc_main$m, {
|
|
7095
6774
|
"data-test-id": "trigger-execute-button",
|
|
7096
6775
|
"node-name": _ctx.nodeName,
|
|
7097
6776
|
size: "medium",
|
|
@@ -7132,7 +6811,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
7132
6811
|
_: 1
|
|
7133
6812
|
})
|
|
7134
6813
|
])) : createCommentVNode("", true),
|
|
7135
|
-
createVNode(_sfc_main$
|
|
6814
|
+
createVNode(_sfc_main$m, {
|
|
7136
6815
|
"data-test-id": "trigger-execute-button",
|
|
7137
6816
|
"node-name": _ctx.nodeName,
|
|
7138
6817
|
size: "medium",
|
|
@@ -7169,7 +6848,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
7169
6848
|
_: 1
|
|
7170
6849
|
})) : createCommentVNode("", true)
|
|
7171
6850
|
], 2),
|
|
7172
|
-
createVNode(_sfc_main$
|
|
6851
|
+
createVNode(_sfc_main$m, {
|
|
7173
6852
|
"data-test-id": "trigger-execute-button",
|
|
7174
6853
|
"node-name": _ctx.nodeName,
|
|
7175
6854
|
size: "medium",
|
|
@@ -7270,9 +6949,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7270
6949
|
const { APP_Z_INDEXES } = useStyles();
|
|
7271
6950
|
const settingsEventBus = createEventBus();
|
|
7272
6951
|
const redrawRequired = ref(false);
|
|
7273
|
-
const runInputIndex = ref(-1);
|
|
7274
|
-
const runOutputIndex = ref(-1);
|
|
7275
|
-
const isLinkingEnabled = ref(true);
|
|
7276
6952
|
const selectedInput = ref();
|
|
7277
6953
|
const triggerWaitingWarningEnabled = ref(false);
|
|
7278
6954
|
const isDragging = ref(false);
|
|
@@ -7383,9 +7059,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7383
7059
|
}
|
|
7384
7060
|
return 0;
|
|
7385
7061
|
});
|
|
7386
|
-
const outputRun = computed(
|
|
7387
|
-
() => runOutputIndex.value === -1 ? maxOutputRun.value : Math.min(runOutputIndex.value, maxOutputRun.value)
|
|
7388
|
-
);
|
|
7389
7062
|
const maxInputRun = computed(() => {
|
|
7390
7063
|
if (inputNode.value === null || activeNode.value === null) {
|
|
7391
7064
|
return 0;
|
|
@@ -7412,14 +7085,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7412
7085
|
}
|
|
7413
7086
|
return 0;
|
|
7414
7087
|
});
|
|
7088
|
+
const isLinkingEnabled = computed(() => ndvStore.isRunIndexLinkingEnabled);
|
|
7089
|
+
const outputRun = computed(
|
|
7090
|
+
() => ndvStore.output.run === -1 ? maxOutputRun.value : Math.min(ndvStore.output.run, maxOutputRun.value)
|
|
7091
|
+
);
|
|
7415
7092
|
const inputRun = computed(() => {
|
|
7416
7093
|
if (isLinkingEnabled.value && maxOutputRun.value === maxInputRun.value) {
|
|
7417
7094
|
return outputRun.value;
|
|
7418
7095
|
}
|
|
7419
|
-
if (
|
|
7096
|
+
if (ndvStore.input.run === -1) {
|
|
7420
7097
|
return maxInputRun.value;
|
|
7421
7098
|
}
|
|
7422
|
-
return Math.min(
|
|
7099
|
+
return Math.min(ndvStore.input.run, maxInputRun.value);
|
|
7423
7100
|
});
|
|
7424
7101
|
const canLinkRuns = computed(
|
|
7425
7102
|
() => maxOutputRun.value > 0 && maxOutputRun.value === maxInputRun.value
|
|
@@ -7531,12 +7208,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7531
7208
|
mainPanelPosition.value = e.position;
|
|
7532
7209
|
};
|
|
7533
7210
|
const onLinkRunToOutput = () => {
|
|
7534
|
-
|
|
7211
|
+
ndvStore.setRunIndexLinkingEnabled(true);
|
|
7535
7212
|
trackLinking("output");
|
|
7536
7213
|
};
|
|
7537
7214
|
const onUnlinkRun = (pane) => {
|
|
7538
|
-
|
|
7539
|
-
|
|
7215
|
+
ndvStore.setInputRunIndex(outputRun.value);
|
|
7216
|
+
ndvStore.setRunIndexLinkingEnabled(false);
|
|
7540
7217
|
trackLinking(pane);
|
|
7541
7218
|
};
|
|
7542
7219
|
const onNodeExecute = () => {
|
|
@@ -7559,8 +7236,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7559
7236
|
});
|
|
7560
7237
|
};
|
|
7561
7238
|
const onLinkRunToInput = () => {
|
|
7562
|
-
|
|
7563
|
-
|
|
7239
|
+
ndvStore.setOutputRunIndex(inputRun.value);
|
|
7240
|
+
ndvStore.setRunIndexLinkingEnabled(true);
|
|
7564
7241
|
trackLinking("input");
|
|
7565
7242
|
};
|
|
7566
7243
|
const valueChanged = (parameterData) => {
|
|
@@ -7620,22 +7297,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7620
7297
|
});
|
|
7621
7298
|
};
|
|
7622
7299
|
const onRunOutputIndexChange = (run) => {
|
|
7623
|
-
|
|
7300
|
+
ndvStore.setOutputRunIndex(run);
|
|
7624
7301
|
trackRunChange(run, "output");
|
|
7625
7302
|
};
|
|
7626
7303
|
const onRunInputIndexChange = (run) => {
|
|
7627
|
-
|
|
7628
|
-
if (linked.value) {
|
|
7629
|
-
runOutputIndex.value = run;
|
|
7630
|
-
}
|
|
7304
|
+
ndvStore.setInputRunIndex(run);
|
|
7631
7305
|
trackRunChange(run, "input");
|
|
7632
7306
|
};
|
|
7633
7307
|
const onOutputTableMounted = (e) => {
|
|
7634
7308
|
avgOutputRowHeight.value = e.avgRowHeight;
|
|
7635
7309
|
};
|
|
7636
7310
|
const onInputNodeChange = (value, index) => {
|
|
7637
|
-
|
|
7638
|
-
|
|
7311
|
+
ndvStore.setInputRunIndex(-1);
|
|
7312
|
+
ndvStore.setRunIndexLinkingEnabled(true);
|
|
7639
7313
|
selectedInput.value = value;
|
|
7640
7314
|
telemetry.track("User changed ndv input dropdown", {
|
|
7641
7315
|
node_type: activeNode.value ? activeNode.value.type : "",
|
|
@@ -7674,9 +7348,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7674
7348
|
unregisterKeyboardListener();
|
|
7675
7349
|
}
|
|
7676
7350
|
if (node2 && node2.name !== oldNode?.name && !isActiveStickyNode.value) {
|
|
7677
|
-
runInputIndex.value = -1;
|
|
7678
|
-
runOutputIndex.value = -1;
|
|
7679
|
-
isLinkingEnabled.value = true;
|
|
7680
7351
|
selectedInput.value = void 0;
|
|
7681
7352
|
triggerWaitingWarningEnabled.value = false;
|
|
7682
7353
|
avgOutputRowHeight.value = 0;
|
|
@@ -7721,22 +7392,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7721
7392
|
},
|
|
7722
7393
|
{ immediate: true }
|
|
7723
7394
|
);
|
|
7724
|
-
watch(maxOutputRun, () => {
|
|
7725
|
-
runOutputIndex.value = -1;
|
|
7726
|
-
});
|
|
7727
|
-
watch(maxInputRun, () => {
|
|
7728
|
-
runInputIndex.value = -1;
|
|
7729
|
-
});
|
|
7730
7395
|
watch(inputNodeName, (nodeName) => {
|
|
7731
7396
|
setTimeout(() => {
|
|
7732
7397
|
ndvStore.setInputNodeName(nodeName);
|
|
7733
7398
|
}, 0);
|
|
7734
7399
|
});
|
|
7735
|
-
watch(inputRun, (inputRun2) => {
|
|
7736
|
-
setTimeout(() => {
|
|
7737
|
-
ndvStore.setInputRunIndex(inputRun2);
|
|
7738
|
-
}, 0);
|
|
7739
|
-
});
|
|
7740
7400
|
onMounted(() => {
|
|
7741
7401
|
dataPinningEventBus.on("data-pinning-discovery", setIsTooltipVisible);
|
|
7742
7402
|
});
|