n8n-editor-ui 1.90.1 → 1.91.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{AnimatedSpinner-ChThynSJ.js → AnimatedSpinner-BrkRvAXQ.js} +1 -1
- package/dist/assets/{AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-WGp2Kuen.js → AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-DRamY8Fo.js} +1 -1
- package/dist/assets/{AuthView-Dlhn_SQ-.js → AuthView-ehh7NFh5.js} +2 -2
- package/dist/assets/{CanvasChatSwitch-BuBg7TJP.js → CanvasChatSwitch-DUBgoMXw.js} +11 -11
- package/dist/assets/{ChangePasswordView-BKYXOoDf.js → ChangePasswordView-BLFb7_-o.js} +3 -3
- package/dist/assets/CollectionParameter-BaH_a73u.js +4 -0
- package/dist/assets/{CredentialsView-BNWIgrLb.js → CredentialsView-1uYUpp0G.js} +10 -9
- package/dist/assets/{DemoFooter-DR6r_2qR.js → DemoFooter-CNfkqkRC.js} +8 -8
- package/dist/assets/{ErrorView-Bu8Mt5FH.js → ErrorView-CmYweWFA.js} +1 -1
- package/dist/assets/{ExecutionsTime.vue_vue_type_script_setup_true_lang-DvtOOOhh.js → ExecutionsTime.vue_vue_type_script_setup_true_lang-DAWTDTON.js} +2 -2
- package/dist/assets/{ExecutionsView-C0WZAIi0.js → ExecutionsView-fotg1R4V.js} +11 -10
- package/dist/assets/{FileSaver.min-Cm0u4qyc.js → FileSaver.min-CcnqpaV-.js} +1 -1
- package/dist/assets/{FixedCollectionParameter-KmRZtBiP.js → FixedCollectionParameter-BYR4RzWw.js} +1 -1
- package/dist/assets/{ForgotMyPasswordView-GH7SqEFu.js → ForgotMyPasswordView-CQMKtpr-.js} +3 -3
- package/dist/assets/{InsightsChartAverageRuntime-SeBUN06R.js → InsightsChartAverageRuntime-B-9BU5qw.js} +7 -6
- package/dist/assets/{InsightsChartFailed-TYjH8LwV.js → InsightsChartFailed-Bd1BlFEm.js} +7 -6
- package/dist/assets/{InsightsChartFailureRate-D41Jv-6v.js → InsightsChartFailureRate-DPTCueAp.js} +7 -6
- package/dist/assets/{InsightsChartTimeSaved-TLPDAmPx.js → InsightsChartTimeSaved-CSVKB08W.js} +7 -6
- package/dist/assets/{InsightsChartTotal-CaKTe2mv.js → InsightsChartTotal-Bxjmisao.js} +7 -6
- package/dist/assets/InsightsDashboard-5cOORj5z.js +372 -0
- package/dist/assets/{InsightsDashboard-DPVczYm3.css → InsightsDashboard-Bx4vx9gz.css} +16 -0
- package/dist/assets/{InsightsPaywall-Z4Y0nO-i.js → InsightsPaywall-Bdo_3Ic_.js} +1 -1
- package/dist/assets/{InsightsSummary-FixbpmPJ.css → InsightsSummary-CdlaUpAt.css} +25 -25
- package/dist/assets/{InsightsSummary-DzYli0Pu.js → InsightsSummary-DB62HhNM.js} +16 -17
- package/dist/assets/{InsightsTableWorkflows-CUHAG57c.js → InsightsTableWorkflows-BEC5Yh0b.js} +2 -2
- package/dist/assets/{Logo-Dxp4M9dy.js → Logo-CK8euEWT.js} +1 -1
- package/dist/assets/{LogsPanel-zIrTNE6j.js → LogsPanel-CrGEYFLo.js} +480 -364
- package/dist/assets/{LogsPanel-DmPMCt9w.css → LogsPanel-DLC2TAqh.css} +203 -97
- package/dist/assets/{MainHeader-D4cIIoUA.js → MainHeader-C7XOaZKu.js} +122 -295
- package/dist/assets/MainHeader-CEPLiR-5.css +1044 -0
- package/dist/assets/{MainSidebar-BtW-9UPT.js → MainSidebar-DD_ugRL3.js} +2 -2
- package/dist/assets/{NodeCreation-thD32mA1.js → NodeCreation-S2FoBcnW.js} +4 -4
- package/dist/assets/{NodeCreator-B4mHaU45.js → NodeCreator-D6TKVgLu.js} +14 -4
- package/dist/assets/{NodeDetailsView-cO3Ci9jH.js → NodeDetailsView-DtvMtBqp.js} +40 -30
- package/dist/assets/{NodeView-E5b1ClVD.js → NodeView-BPhaaoWK.js} +135 -30
- package/dist/assets/{ProjectCardBadge-LnLKqSK-.js → ProjectCardBadge-C_L_pqWA.js} +1 -1
- package/dist/assets/{ProjectHeader-DC02ZuZ0.js → ProjectHeader-C0FZTxjm.js} +1 -1
- package/dist/assets/{ProjectSettings-Zr1UOp7s.js → ProjectSettings-DlggJ6Ti.js} +2 -2
- package/dist/assets/{PushConnectionTracker.vue_vue_type_script_setup_true_lang-CM7WIpD3.js → PushConnectionTracker.vue_vue_type_script_setup_true_lang-BNtCDFSj.js} +1 -1
- package/dist/assets/{ResourcesListLayout-CglK2dXR.css → ResourcesListLayout-CtGME7aU.css} +8 -8
- package/dist/assets/{ResourcesListLayout-DTsuHdYx.js → ResourcesListLayout-HzoSFUaj.js} +2 -2
- package/dist/assets/{RunData-DepHcD2K.css → RunData-C9dtm1M2.css} +92 -73
- package/dist/assets/{RunData-Ds-U68nr.js → RunData-D8Eax0cQ.js} +319 -221
- package/dist/assets/{RunDataAi-DdK11EHU.js → RunDataAi-BUnCQIRN.js} +3 -3
- package/dist/assets/{RunDataJson-Txw0lqay.css → RunDataJson-BH9HLoGC.css} +12 -8
- package/dist/assets/{RunDataJson-B2WU5od1.js → RunDataJson-DXd3nZxI.js} +20 -14
- package/dist/assets/{RunDataJsonActions-DqZ2X1yJ.js → RunDataJsonActions-aivOaol2.js} +1 -1
- package/dist/assets/{RunDataSearch-CQsyZvGK.js → RunDataSearch-DJ9BZGTu.js} +1 -1
- package/dist/assets/{RunDataTable-DyUvXWfl.css → RunDataTable-CUxj7dHx.css} +47 -39
- package/dist/assets/{RunDataTable-BO0R4JT_.js → RunDataTable-vEPCwbcC.js} +41 -30
- package/dist/assets/{SamlOnboarding-CmwMX5y2.js → SamlOnboarding--OTxMEws.js} +3 -3
- package/dist/assets/{SettingsApiView-D6uBbi9-.js → SettingsApiView-BulxWyyY.js} +1 -1
- package/dist/assets/{SettingsCommunityNodesView-CJODtx_K.js → SettingsCommunityNodesView-4wwPXFO2.js} +4 -4
- package/dist/assets/{SettingsExternalSecrets-CVk14P_P.js → SettingsExternalSecrets-zt7dxBKK.js} +1 -1
- package/dist/assets/{SettingsLdapView-pg71FErj.js → SettingsLdapView-xneO6UIv.js} +1 -1
- package/dist/assets/{SettingsLogStreamingView-DUOI3Xb9.js → SettingsLogStreamingView-_h8wUzum.js} +1 -1
- package/dist/assets/{SettingsPersonalView-BFnOmBPC.js → SettingsPersonalView-CwYMP4sk.js} +1 -1
- package/dist/assets/{SettingsSourceControl-BUNmxcvB.js → SettingsSourceControl-B9Tg93u3.js} +1 -1
- package/dist/assets/{SettingsSso-Dx8Qw_2Z.js → SettingsSso-XaL1PzfW.js} +1 -1
- package/dist/assets/{SettingsUsageAndPlan-DTk86tXU.js → SettingsUsageAndPlan-Ci15FW81.js} +1 -1
- package/dist/assets/{SettingsUsersView-BviXcl30.js → SettingsUsersView-DBJV4vSK.js} +1 -1
- package/dist/assets/{SettingsView-fzPdUijx.js → SettingsView-DMzdPF-1.js} +1 -1
- package/dist/assets/{SetupView-DUTx1JXK.js → SetupView-BqWgdvDq.js} +3 -3
- package/dist/assets/{SetupWorkflowCredentialsButton-fApxCGHh.js → SetupWorkflowCredentialsButton-B2wnuUnF.js} +1 -1
- package/dist/assets/{SetupWorkflowFromTemplateView-C5t9fEKF.js → SetupWorkflowFromTemplateView-BwC_wFSc.js} +3 -3
- package/dist/assets/{SigninView-BRVoXQRW.js → SigninView-DpTLJJwD.js} +3 -3
- package/dist/assets/{SignoutView-Duh6wb4Y.js → SignoutView-dkTtOCo1.js} +1 -1
- package/dist/assets/{SignupView-DMkpTtjs.js → SignupView-CJFJJO3L.js} +3 -3
- package/dist/assets/{TemplateDetails-Df9_jph6.js → TemplateDetails-84YElIBA.js} +1 -1
- package/dist/assets/{TemplateList-qSnJvw0K.js → TemplateList-CGsfKuVA.js} +1 -1
- package/dist/assets/{TemplatesCollectionView--ccYXaCo.js → TemplatesCollectionView-2y8KZk0I.js} +5 -5
- package/dist/assets/{TemplatesSearchView-D1YgHKld.js → TemplatesSearchView-DgosiOzl.js} +3 -3
- package/dist/assets/{TemplatesView-B9CwObHN.js → TemplatesView-CgQSZO4a.js} +1 -1
- package/dist/assets/{TemplatesWorkflowView-DtLpUF59.js → TemplatesWorkflowView-2pSUmAbX.js} +5 -5
- package/dist/assets/{TestDefinitionEditView-DFcBlKnN.js → TestDefinitionEditView-C26sWE7p.js} +8 -8
- package/dist/assets/{TestDefinitionListView-C_mbolTO.js → TestDefinitionListView-Cyl6bsLP.js} +1 -1
- package/dist/assets/{TestDefinitionNewView-CvyM6TLE.js → TestDefinitionNewView-CfIZ0atk.js} +2 -2
- package/dist/assets/{TestDefinitionRootView-BXzJY0cY.js → TestDefinitionRootView-CYg7HBL-.js} +1 -1
- package/dist/assets/{VariablesView-BHFJj5IU.js → VariablesView-BFE9B0_b.js} +3 -3
- package/dist/assets/{WorkerView-CgIksFjP.js → WorkerView-BUMCMS_B.js} +6 -6
- package/dist/assets/WorkflowActivator-BDLto9c0.js +776 -0
- package/dist/assets/{MainHeader-CWA2JfVJ.css → WorkflowActivator-DAyH7N29.css} +74 -434
- package/dist/assets/{WorkflowExecutionsInfoAccordion-BcBLZ_Ul.js → WorkflowExecutionsInfoAccordion-manN-WIj.js} +1 -1
- package/dist/assets/{WorkflowExecutionsLandingPage-B9ByHnbR.js → WorkflowExecutionsLandingPage-BzGmpGvf.js} +2 -2
- package/dist/assets/{WorkflowExecutionsPreview-DCE7TYLh.js → WorkflowExecutionsPreview-CNEV2lom.js} +6 -6
- package/dist/assets/{WorkflowExecutionsView-DFoBpdS7.js → WorkflowExecutionsView-WiNvtAmD.js} +7 -7
- package/dist/assets/{WorkflowHistory-DolmPUM2.js → WorkflowHistory-6uJJqB4x.js} +4 -4
- package/dist/assets/{WorkflowOnboardingView-DQW48M8_.js → WorkflowOnboardingView-CPt_AUR-.js} +1 -1
- package/dist/assets/{WorkflowPreview-BFR6V9SO.js → WorkflowPreview-CHUEX6H6.js} +1 -1
- package/dist/assets/{WorkflowsView-CsM69PSv.css → WorkflowsView-B2_HJCJ5.css} +28 -162
- package/dist/assets/{WorkflowsView-B-feKuLZ.js → WorkflowsView-DbGBRbfc.js} +123 -216
- package/dist/assets/{chartjs.utils-BcXTJ2Te.js → chartjs.utils-C--HONKb.js} +2 -2
- package/dist/assets/{dateFormatter-CZI1kGYK.js → dateFormatter-DbKqmK4w.js} +5 -5
- package/dist/assets/{easyAiWorkflowUtils-ChToD_Yl.js → easyAiWorkflowUtils-BWgfZ0am.js} +1 -1
- package/dist/assets/{global-link-actions-OGaZVwsw.js → global-link-actions-COf-9vBh.js} +1 -1
- package/dist/assets/{import-curl-CAszzwx1.js → import-curl-BiXaU2jk.js} +1 -1
- package/dist/assets/{index-7WdERzqm.js → index-B6xE9gZ1.js} +1 -1
- package/dist/assets/{index-BpdkKRP4.js → index-BLAboPd2.js} +14034 -12086
- package/dist/assets/{index-C5OXOcIJ.css → index-sq5ggyEC.css} +6265 -4303
- package/dist/assets/{pickBy-mYqFOFbh.js → pickBy-gZHb6vZ2.js} +1 -1
- package/dist/assets/{templateActions-BX9arLbc.js → templateActions-DCx74tPa.js} +1 -1
- package/dist/assets/{useBeforeUnload-K7nQ15Rk.js → useBeforeUnload-DbfysOS-.js} +1 -1
- package/dist/assets/{useCanvasMapping-D_UPCxYX.js → useCanvasMapping-CSuq_dYj.js} +251 -96
- package/dist/assets/{useCanvasMapping-C--wac6H.css → useCanvasMapping-cuXLM-h-.css} +185 -4
- package/dist/assets/{useCanvasOperations-D6VFiC3b.js → useCanvasOperations-C0pQBHW3.js} +3 -2
- package/dist/assets/{useClearExecutionButtonVisible-D_0O6f0X.js → useClearExecutionButtonVisible-Cvfxw8xC.js} +2 -2
- package/dist/assets/{useExecutionDebugging-BNMaKOh7.js → useExecutionDebugging-D2H5O6fT.js} +1 -1
- package/dist/assets/{useExecutionHelpers-DN5HqPqY.js → useExecutionHelpers-C--m0pTQ.js} +2 -2
- package/dist/assets/{useImportCurlCommand-BSL596XF.js → useImportCurlCommand-XFn6Ezp2.js} +2 -2
- package/dist/assets/{usePushConnection-BdV7ILvK.js → usePushConnection-x0iF1Axz.js} +5 -3
- package/dist/assets/{useTestDefinitionForm-CIhrxyve.js → useTestDefinitionForm-2YP-8pAN.js} +1 -1
- package/dist/assets/{useWorkflowActivate-pZ62ib_C.js → useWorkflowActivate-CvmIpy5T.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/vite.config.mts +15 -1
- package/dist/assets/CollectionParameter-CQXiWluX.js +0 -4
- package/dist/assets/InsightsDashboard-o3JS9fjz.js +0 -178
- package/dist/assets/WorkflowActivator-BX59FxTZ.css +0 -260
- package/dist/assets/WorkflowActivator-O6i5XAk2.js +0 -231
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as defineComponent,
|
|
2
|
-
import { L as Logo } from "./Logo-
|
|
1
|
+
import { d as defineComponent, aD as useLoadingService, H as useUIStore, a0 as useSourceControlStore, a as useToast, r as ref, q as computed, a9 as hasPermission, h as resolveComponent, i as createElementBlock, f as createCommentVNode, g as openBlock, B as normalizeStyle, n as normalizeClass, m as unref, k as createBaseVNode, j as createVNode, l as createTextVNode, t as toDisplayString, e as createBlock, w as withCtx, c as useI18n, C as createEventBus, al as SOURCE_CONTROL_PUSH_MODAL_KEY, aE as notifyUserAboutPullWorkFolderOutcome, aF as sourceControlEventBus, aG as SOURCE_CONTROL_PULL_MODAL_KEY, _ as _export_sfc, aH as get, O as defineStore, aI as useCloudPlanStore, Z as useRootStore, aJ as useStorage, aK as DateTime, T as STORES, ag as useTelemetry, p as useSettingsStore, a1 as useProjectsStore, b as useRouter, aL as sortByProperty, V as VIEWS, a7 as getResourcePermissions, a6 as usePageRedirectionHelper, F as Fragment, D as renderList, aM as useDebugInfo, aN as useTemplatesStore, u as useUsersStore, aO as useVersionsStore, Q as useWorkflowsStore, G as useDebounce, R as useRoute, o as onMounted, aP as useExternalHooks, z as nextTick, y as onBeforeUnmount, aQ as onClickOutside, aR as N8nTooltip, aS as N8nLink, aT as _sfc_main$5, aU as N8nNavigationDropdown, aV as createSlots, aW as VERSIONS_MODAL_KEY, aX as ABOUT_MODAL_KEY } from "./index-BLAboPd2.js";
|
|
2
|
+
import { L as Logo } from "./Logo-CK8euEWT.js";
|
|
3
3
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "MainSidebarSourceControl",
|
|
5
5
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/NodeCreator-
|
|
2
|
-
import {
|
|
3
|
-
import { a as useNodeCreatorStore, t as transformNodeType, s as sortNodeCreateElements } from "./useCanvasOperations-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/NodeCreator-D6TKVgLu.js","assets/index-BLAboPd2.js","assets/index-sq5ggyEC.css","assets/useCanvasOperations-C0pQBHW3.js","assets/NodeCreator-D9fmPdS2.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import { bz as useNodeTypesStore, q as computed, c as useI18n, Q as useWorkflowsStore, fh as MANUAL_TRIGGER_NODE_TYPE, hC as CHAIN_LLM_LANGCHAIN_NODE_TYPE, bm as NodeConnectionTypes, bk as CHAT_TRIGGER_NODE_TYPE, hD as OPEN_AI_NODE_MESSAGE_ASSISTANT_TYPE, hE as OPEN_AI_NODE_TYPE, f9 as SPLIT_IN_BATCHES_NODE_TYPE, hF as NO_OP_NODE_TYPE, fc as WEBHOOK_NODE_TYPE, fj as SCHEDULE_TRIGGER_NODE_TYPE, aP as useExternalHooks, $ as useCanvasStore, eD as AI_CATEGORY_LANGUAGE_MODELS, hG as QA_CHAIN_NODE_TYPE, hH as AGENT_NODE_TYPE, hI as BASIC_CHAIN_NODE_TYPE, hJ as OPEN_AI_ASSISTANT_NODE_TYPE, ay as STICKY_NODE_TYPE, ff as TRIGGER_NODE_CREATOR_VIEW, c9 as NODE_CREATOR_OPEN_SOURCES, d as defineComponent, H as useUIStore, r as ref, bM as useThrottleFn, o as onMounted, y as onBeforeUnmount, h as resolveComponent, i as createElementBlock, g as openBlock, f as createCommentVNode, e as createBlock, n as normalizeClass, k as createBaseVNode, j as createVNode, w as withCtx, m as unref, bP as KeyboardShortcutTooltip, c2 as defineAsyncComponent, c1 as Suspense, F as Fragment, ao as __vitePreload, hK as getMidCanvasPosition, hL as DEFAULT_STICKY_WIDTH, hM as DEFAULT_STICKY_HEIGHT, _ as _export_sfc } from "./index-BLAboPd2.js";
|
|
3
|
+
import { a as useNodeCreatorStore, t as transformNodeType, s as sortNodeCreateElements } from "./useCanvasOperations-C0pQBHW3.js";
|
|
4
4
|
const useActions = () => {
|
|
5
5
|
const nodeCreatorStore = useNodeCreatorStore();
|
|
6
6
|
const nodeTypesStore = useNodeTypesStore();
|
|
@@ -241,7 +241,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
241
241
|
emits: ["addNodes", "toggleNodeCreator"],
|
|
242
242
|
setup(__props, { emit: __emit }) {
|
|
243
243
|
const LazyNodeCreator = defineAsyncComponent(
|
|
244
|
-
async () => await __vitePreload(() => import("./NodeCreator-
|
|
244
|
+
async () => await __vitePreload(() => import("./NodeCreator-D6TKVgLu.js"), true ? __vite__mapDeps([0,1,2,3,4]) : void 0)
|
|
245
245
|
);
|
|
246
246
|
const props = __props;
|
|
247
247
|
const emit = __emit;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u as upperFirst, g as formatTriggerActionName, a as useNodeCreatorStore, h as useViewStacks, j as camelCase, k as useKeyboardNavigation, t as transformNodeType, A as AINodesView, l as AIView, R as RegularView, T as TriggerView, n as flattenCreateElements } from "./useCanvasOperations-
|
|
3
|
-
import { u as useActions } from "./NodeCreation-
|
|
1
|
+
import { eo as createCompounder, iu as memoize, dj as i18n, fb as HTTP_REQUEST_NODE_TYPE, iv as getCredentialOnlyNodeType, eK as AI_CATEGORY_TOOLS, fm as AI_CATEGORY_ROOT_NODES, fs as CUSTOM_API_CALL_KEY, bs as AI_SUBCATEGORY, d as defineComponent, bQ as reactive, o as onMounted, aP as useExternalHooks, y as onBeforeUnmount, b3 as toRefs, h as resolveComponent, i as createElementBlock, g as openBlock, n as normalizeClass, k as createBaseVNode, f as createCommentVNode, j as createVNode, _ as _export_sfc, dU as useNodeType, r as ref, q as computed, ev as DEFAULT_SUBCATEGORY, iw as CREDENTIAL_ONLY_NODE_PREFIX, c as useI18n, fe as HITL_SUBCATEGORY, dO as isCommunityPackageName, ch as resolveDirective, e as createBlock, aV as createSlots, w as withCtx, aA as withDirectives, aB as vShow, B as normalizeStyle, bC as _sfc_main$h, b2 as withModifiers, m as unref, cJ as COMMUNITY_NODES_INSTALLATION_DOCS_URL, cb as DRAG_EVENT_DATA_KEY, ag as useTelemetry, b7 as mergeProps, t as toDisplayString, fc as WEBHOOK_NODE_TYPE, fv as getNewNodePosition, fI as NODE_SIZE, x as renderSlot, Q as useWorkflowsStore, X as watch, b4 as normalizeProps, b5 as guardReactiveProps, bb as onUnmounted, F as Fragment, D as renderList, fg as REGULAR_NODE_CREATOR_VIEW, u as useUsersStore, ff as TRIGGER_NODE_CREATOR_VIEW, hE as OPEN_AI_NODE_TYPE, hD as OPEN_AI_NODE_MESSAGE_ASSISTANT_TYPE, ix as withMemo, gT as createStaticVNode, l as createTextVNode, iy as REQUEST_NODE_FORM_URL, gk as getNodeIconSource, eA as SEND_AND_WAIT_OPERATION, eO as AI_OTHERS_NODE_CREATOR_VIEW, eP as AI_NODE_CREATOR_VIEW, G as useDebounce, gd as Transition, eN as AI_UNCATEGORIZED_CATEGORY, H as useUIStore, dr as useAssistantStore, bV as useBuilderStore, aT as _sfc_main$i, iz as SlideTransition, bz as useNodeTypesStore, bR as useCredentialsStore } from "./index-BLAboPd2.js";
|
|
2
|
+
import { u as upperFirst, g as formatTriggerActionName, a as useNodeCreatorStore, h as useViewStacks, j as camelCase, k as useKeyboardNavigation, t as transformNodeType, A as AINodesView, l as AIView, R as RegularView, T as TriggerView, n as flattenCreateElements } from "./useCanvasOperations-C0pQBHW3.js";
|
|
3
|
+
import { u as useActions } from "./NodeCreation-S2FoBcnW.js";
|
|
4
4
|
var startCase = createCompounder(function(result, word, index) {
|
|
5
5
|
return result + (index ? " " : "") + upperFirst(word);
|
|
6
6
|
});
|
|
@@ -2059,6 +2059,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2059
2059
|
const emit = __emit;
|
|
2060
2060
|
const uiStore = useUIStore();
|
|
2061
2061
|
const assistantStore = useAssistantStore();
|
|
2062
|
+
const builderStore = useBuilderStore();
|
|
2062
2063
|
const { setShowScrim, setActions, setMergeNodes } = useNodeCreatorStore();
|
|
2063
2064
|
const { generateMergedNodesAndActions } = useActionsGenerator();
|
|
2064
2065
|
const state = reactive({
|
|
@@ -2068,9 +2069,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2068
2069
|
const showScrim = computed(() => useNodeCreatorStore().showScrim);
|
|
2069
2070
|
const viewStacksLength = computed(() => useViewStacks().viewStacks.length);
|
|
2070
2071
|
const nodeCreatorInlineStyle = computed(() => {
|
|
2071
|
-
const rightPosition =
|
|
2072
|
+
const rightPosition = getRightOffset();
|
|
2072
2073
|
return { top: `${uiStore.bannersHeight + uiStore.headerHeight}px`, right: `${rightPosition}px` };
|
|
2073
2074
|
});
|
|
2075
|
+
function getRightOffset() {
|
|
2076
|
+
if (assistantStore.isAssistantOpen) {
|
|
2077
|
+
return assistantStore.chatWidth;
|
|
2078
|
+
}
|
|
2079
|
+
if (builderStore.isAssistantOpen) {
|
|
2080
|
+
return builderStore.chatWidth;
|
|
2081
|
+
}
|
|
2082
|
+
return 0;
|
|
2083
|
+
}
|
|
2074
2084
|
function onMouseUpOutside() {
|
|
2075
2085
|
if (state.mousedownInsideEvent) {
|
|
2076
2086
|
const clickEvent = new MouseEvent("click", {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { 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,
|
|
2
|
-
import { i as importCurlEventBus } from "./import-curl-
|
|
3
|
-
import { R as RunData } from "./RunData-
|
|
4
|
-
import { b as convertToDisplayDateComponents } from "./dateFormatter-
|
|
5
|
-
import { R as RunDataAi } from "./RunDataAi-
|
|
6
|
-
import { u as useWorkflowActivate } from "./useWorkflowActivate-
|
|
7
|
-
import "./FileSaver.min-
|
|
8
|
-
import "./useExecutionHelpers-
|
|
9
|
-
import "./useCanvasOperations-
|
|
1
|
+
import { 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$g, w as withCtx, bd as withKeys, b2 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, as as useNDVStore, Q as useWorkflowsStore, dO as isCommunityPackageName, cH as NPM_PACKAGE_DOCS_BASE_URL, hN as BUILTIN_NODES_DOCS_URL, cJ as COMMUNITY_NODES_INSTALLATION_DOCS_URL, aP as useExternalHooks, ag as useTelemetry, bm as NodeConnectionTypes, b as useRouter, bf as useClipboard, a5 as useWorkflowHelpers, a as useToast, hO as OPEN_URL_PANEL_TRIGGER_NODE_TYPES, hP as PRODUCTION_ONLY_TRIGGER_NODE_TYPES, ft as MCP_TRIGGER_NODE_TYPE, fk as FORM_TRIGGER_NODE_TYPE, bk as CHAT_TRIGGER_NODE_TYPE, X as watch, F as Fragment, D as renderList, aQ as onClickOutside, aq as h, hQ as toRef, hR as tryOnScopeDispose, hS as toValue, hT as isIOS, hU as noop, hV as isObject, hW as isClient, bz as useNodeTypesStore, bA as useNodeHelpers, G as useDebounce, B as normalizeStyle, ga as TitledList, bw as getNodeInputs, hX as SWITCH_NODE_TYPE, ej as isEqual, hY as captureException, p as useSettingsStore, au as usePostHog, bR as useCredentialsStore, u as useUsersStore, a1 as useProjectsStore, dD as OPEN_AI_API_CREDENTIAL_TYPE, hZ as AI_CREDITS_EXPERIMENT, bU as useHistoryStore, ab as ProjectTypes, bx as getConnectionTypes, o as onMounted, bH as ndvEventBus, y as onBeforeUnmount, h_ as _sfc_main$h, h$ as CUSTOM_NODES_DOCS_URL, aA as withDirectives, aB as vShow, hn as _sfc_main$i, i0 as NodeCredentials, bo as get, fK as getNodeParameters, cg as deepCopy, i1 as set, i2 as unset, fz as RenameNodeCommand, hm as isINodePropertyCollectionList, i3 as isINodePropertiesList, i4 as isINodePropertyOptionsList, i5 as displayParameter, h2 as Draggable, bM as useThrottleFn, H as useUIStore, fO as useSlots, i6 as MAIN_NODE_PANEL_WIDTH, aJ as useStorage, i7 as LOCAL_STORAGE_MAIN_PANEL_RELATIVE_WIDTH, x as renderSlot, ch as resolveDirective, dk as InfoTip, cM as storeToRefs, ge as useNodeDirtiness, dU as useNodeType, bq as usePinnedData, gb as CanvasNodeDirtiness, aV as createSlots, be as N8nText, i8 as waitingNodeTooltip, bG as N8nRadioButtons, ee as isPresent, i9 as truncate, gT as createStaticVNode, bX as START_NODE_TYPE, fh as MANUAL_TRIGGER_NODE_TYPE, ia as CRON_NODE_TYPE, ib as INTERVAL_NODE_TYPE, by as getNodeOutputs, ic as uniqBy, b6 as resolveDynamicComponent, aR as N8nTooltip, bE as N8nIcon, id as isTriggerPanelObject, dx as getTriggerNodeServiceName, fc as WEBHOOK_NODE_TYPE, dn as CopyInput, C as createEventBus, gd as Transition, V as VIEWS, ak as WORKFLOW_SETTINGS_MODAL_KEY, g2 as useDeviceSupport, ie as EXECUTABLE_TRIGGER_NODE_TYPES, ay as STICKY_NODE_TYPE, ig as BASE_NODE_SURVEY_URL, aa as EnterpriseEditionFeature, e0 as dataPinningEventBus, bJ as useStyles, ih as APP_MODALS_ELEMENT_ID, ai as useMessage, aj as MODAL_CONFIRM, bZ as jsonParse } from "./index-BLAboPd2.js";
|
|
2
|
+
import { i as importCurlEventBus } from "./import-curl-BiXaU2jk.js";
|
|
3
|
+
import { R as RunData } from "./RunData-D8Eax0cQ.js";
|
|
4
|
+
import { b as convertToDisplayDateComponents } from "./dateFormatter-DbKqmK4w.js";
|
|
5
|
+
import { R as RunDataAi } from "./RunDataAi-BUnCQIRN.js";
|
|
6
|
+
import { u as useWorkflowActivate } from "./useWorkflowActivate-CvmIpy5T.js";
|
|
7
|
+
import "./FileSaver.min-CcnqpaV-.js";
|
|
8
|
+
import "./useExecutionHelpers-C--m0pTQ.js";
|
|
9
|
+
import "./useCanvasOperations-C0pQBHW3.js";
|
|
10
10
|
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
11
11
|
__name: "NodeTitle",
|
|
12
12
|
props: {
|
|
@@ -776,7 +776,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
776
776
|
const matchedNodeType = nodeTypesStore.getNodeType(node2.type);
|
|
777
777
|
if (matchedNodeType) {
|
|
778
778
|
const issues = nodeHelpers.getNodeIssues(matchedNodeType, node2, workflow.value);
|
|
779
|
-
const stringifiedIssues = issues ? nodeIssuesToString(issues, node2) : "";
|
|
779
|
+
const stringifiedIssues = issues ? nodeHelpers.nodeIssuesToString(issues, node2) : "";
|
|
780
780
|
return { node: node2, nodeType: matchedNodeType, issues: stringifiedIssues };
|
|
781
781
|
}
|
|
782
782
|
}
|
|
@@ -3273,7 +3273,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3273
3273
|
return nodeTypesStore.getNodeType(node2.type, node2.typeVersion);
|
|
3274
3274
|
});
|
|
3275
3275
|
const inputNodes = computed(
|
|
3276
|
-
() => props.nodes
|
|
3276
|
+
() => props.nodes?.map((node2) => {
|
|
3277
3277
|
const fullNode = workflowsStore.getNodeByName(node2.name);
|
|
3278
3278
|
if (!fullNode) return null;
|
|
3279
3279
|
return {
|
|
@@ -3281,7 +3281,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3281
3281
|
type: nodeTypesStore.getNodeType(fullNode.type, fullNode.typeVersion),
|
|
3282
3282
|
depth: node2.depth
|
|
3283
3283
|
};
|
|
3284
|
-
}).filter(isPresent)
|
|
3284
|
+
}).filter(isPresent) ?? []
|
|
3285
3285
|
);
|
|
3286
3286
|
const activeNode = computed(() => ndvStore.activeNode);
|
|
3287
3287
|
const activeNodeType = computed(() => {
|
|
@@ -4452,9 +4452,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4452
4452
|
const settingsEventBus = createEventBus();
|
|
4453
4453
|
const redrawRequired = ref(false);
|
|
4454
4454
|
const runInputIndex = ref(-1);
|
|
4455
|
-
const runOutputIndex =
|
|
4456
|
-
const isLinkingEnabled = ref(true);
|
|
4455
|
+
const runOutputIndex = computed(() => ndvStore.output.run ?? -1);
|
|
4457
4456
|
const selectedInput = ref();
|
|
4457
|
+
const isLinkingEnabled = ref(true);
|
|
4458
4458
|
const triggerWaitingWarningEnabled = ref(false);
|
|
4459
4459
|
const isDragging = ref(false);
|
|
4460
4460
|
const mainPanelPosition = ref(0);
|
|
@@ -4487,18 +4487,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4487
4487
|
});
|
|
4488
4488
|
const parentNodes = computed(() => {
|
|
4489
4489
|
if (activeNode.value) {
|
|
4490
|
-
return props.workflowObject.getParentNodesByDepth(activeNode.value.name, 1)
|
|
4491
|
-
} else {
|
|
4492
|
-
return [];
|
|
4490
|
+
return props.workflowObject.getParentNodesByDepth(activeNode.value.name, 1);
|
|
4493
4491
|
}
|
|
4492
|
+
return [];
|
|
4494
4493
|
});
|
|
4495
4494
|
const parentNode = computed(() => {
|
|
4496
|
-
for (const
|
|
4497
|
-
if (workflowsStore?.pinnedWorkflowData?.[
|
|
4498
|
-
return
|
|
4495
|
+
for (const parent of parentNodes.value) {
|
|
4496
|
+
if (workflowsStore?.pinnedWorkflowData?.[parent.name]) {
|
|
4497
|
+
return parent;
|
|
4499
4498
|
}
|
|
4500
|
-
if (workflowRunData.value?.[
|
|
4501
|
-
return
|
|
4499
|
+
if (workflowRunData.value?.[parent.name]) {
|
|
4500
|
+
return parent;
|
|
4502
4501
|
}
|
|
4503
4502
|
}
|
|
4504
4503
|
return parentNodes.value[0];
|
|
@@ -4517,7 +4516,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4517
4516
|
)?.[0];
|
|
4518
4517
|
return connectedOutputNode;
|
|
4519
4518
|
}
|
|
4520
|
-
return selectedInput.value
|
|
4519
|
+
return selectedInput.value ?? parentNode.value?.name;
|
|
4521
4520
|
});
|
|
4522
4521
|
const inputNode = computed(() => {
|
|
4523
4522
|
if (inputNodeName.value) {
|
|
@@ -4593,12 +4592,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4593
4592
|
}
|
|
4594
4593
|
return 0;
|
|
4595
4594
|
});
|
|
4595
|
+
const connectedCurrentNodeOutputs = computed(() => {
|
|
4596
|
+
return parentNodes.value.find(({ name }) => name === inputNodeName.value)?.indicies;
|
|
4597
|
+
});
|
|
4596
4598
|
const inputRun = computed(() => {
|
|
4597
4599
|
if (isLinkingEnabled.value && maxOutputRun.value === maxInputRun.value) {
|
|
4598
4600
|
return outputRun.value;
|
|
4599
4601
|
}
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
+
const currentInputNodeName = inputNodeName.value;
|
|
4603
|
+
if (runInputIndex.value === -1 && currentInputNodeName) {
|
|
4604
|
+
return connectedCurrentNodeOutputs.value?.map(
|
|
4605
|
+
(outputIndex) => nodeHelpers.getLastRunIndexWithData(currentInputNodeName, outputIndex)
|
|
4606
|
+
).find((runIndex) => runIndex !== -1) ?? maxInputRun.value;
|
|
4602
4607
|
}
|
|
4603
4608
|
return Math.min(runInputIndex.value, maxInputRun.value);
|
|
4604
4609
|
});
|
|
@@ -4740,7 +4745,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4740
4745
|
});
|
|
4741
4746
|
};
|
|
4742
4747
|
const onLinkRunToInput = () => {
|
|
4743
|
-
|
|
4748
|
+
ndvStore.setOutputRunIndex(runInputIndex.value);
|
|
4744
4749
|
isLinkingEnabled.value = true;
|
|
4745
4750
|
trackLinking("input");
|
|
4746
4751
|
};
|
|
@@ -4801,13 +4806,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4801
4806
|
});
|
|
4802
4807
|
};
|
|
4803
4808
|
const onRunOutputIndexChange = (run) => {
|
|
4804
|
-
|
|
4809
|
+
ndvStore.setOutputRunIndex(run);
|
|
4805
4810
|
trackRunChange(run, "output");
|
|
4806
4811
|
};
|
|
4807
4812
|
const onRunInputIndexChange = (run) => {
|
|
4808
4813
|
runInputIndex.value = run;
|
|
4809
4814
|
if (linked.value) {
|
|
4810
|
-
|
|
4815
|
+
ndvStore.setOutputRunIndex(run);
|
|
4811
4816
|
}
|
|
4812
4817
|
trackRunChange(run, "input");
|
|
4813
4818
|
};
|
|
@@ -4846,6 +4851,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4846
4851
|
const unregisterKeyboardListener = () => {
|
|
4847
4852
|
document.removeEventListener("keydown", onKeyDown, true);
|
|
4848
4853
|
};
|
|
4854
|
+
const setSelectedInput = (value) => {
|
|
4855
|
+
selectedInput.value = value;
|
|
4856
|
+
};
|
|
4849
4857
|
watch(
|
|
4850
4858
|
activeNode,
|
|
4851
4859
|
(node2, oldNode) => {
|
|
@@ -4856,7 +4864,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4856
4864
|
}
|
|
4857
4865
|
if (node2 && node2.name !== oldNode?.name && !isActiveStickyNode.value) {
|
|
4858
4866
|
runInputIndex.value = -1;
|
|
4859
|
-
|
|
4867
|
+
ndvStore.setOutputRunIndex(-1);
|
|
4860
4868
|
isLinkingEnabled.value = true;
|
|
4861
4869
|
selectedInput.value = void 0;
|
|
4862
4870
|
triggerWaitingWarningEnabled.value = false;
|
|
@@ -4903,7 +4911,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4903
4911
|
{ immediate: true }
|
|
4904
4912
|
);
|
|
4905
4913
|
watch(maxOutputRun, () => {
|
|
4906
|
-
|
|
4914
|
+
ndvStore.setOutputRunIndex(-1);
|
|
4907
4915
|
});
|
|
4908
4916
|
watch(maxInputRun, () => {
|
|
4909
4917
|
runInputIndex.value = -1;
|
|
@@ -4920,9 +4928,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4920
4928
|
});
|
|
4921
4929
|
onMounted(() => {
|
|
4922
4930
|
dataPinningEventBus.on("data-pinning-discovery", setIsTooltipVisible);
|
|
4931
|
+
ndvEventBus.on("updateInputNodeName", setSelectedInput);
|
|
4923
4932
|
});
|
|
4924
4933
|
onBeforeUnmount(() => {
|
|
4925
4934
|
dataPinningEventBus.off("data-pinning-discovery", setIsTooltipVisible);
|
|
4935
|
+
ndvEventBus.off("updateInputNodeName", setSelectedInput);
|
|
4926
4936
|
unregisterKeyboardListener();
|
|
4927
4937
|
});
|
|
4928
4938
|
return (_ctx, _cache) => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/NodeCreation-
|
|
2
|
-
import { d as defineComponent, h as resolveComponent, e as createBlock, g as openBlock, C as createEventBus,
|
|
3
|
-
import { u as useVueFlow, a as useCanvasMapping, C as Canvas } from "./useCanvasMapping-
|
|
4
|
-
import { g as globalLinkActionsEventBus } from "./global-link-actions-
|
|
5
|
-
import { a as useNodeCreatorStore, b as useCanvasOperations, c as createCanvasConnectionHandleString } from "./useCanvasOperations-
|
|
6
|
-
import { u as useExecutionDebugging } from "./useExecutionDebugging-
|
|
7
|
-
import { u as useBeforeUnload } from "./useBeforeUnload-
|
|
8
|
-
import { g as getEasyAiWorkflowJson } from "./easyAiWorkflowUtils-
|
|
9
|
-
import { u as useClearExecutionButtonVisible } from "./useClearExecutionButtonVisible-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/NodeCreation-S2FoBcnW.js","assets/index-BLAboPd2.js","assets/index-sq5ggyEC.css","assets/useCanvasOperations-C0pQBHW3.js","assets/NodeCreation-RKvezEeg.css","assets/NodeDetailsView-DtvMtBqp.js","assets/import-curl-BiXaU2jk.js","assets/RunData-D8Eax0cQ.js","assets/FileSaver.min-CcnqpaV-.js","assets/useExecutionHelpers-C--m0pTQ.js","assets/dateFormatter-DbKqmK4w.js","assets/RunData-C9dtm1M2.css","assets/RunDataAi-BUnCQIRN.js","assets/RunDataAi-BF2gZZGr.css","assets/useWorkflowActivate-CvmIpy5T.js","assets/NodeDetailsView-CGgV4Pn_.css","assets/SetupWorkflowCredentialsButton-B2wnuUnF.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import { d as defineComponent, h as resolveComponent, e as createBlock, g as openBlock, C as createEventBus, Y as useCssModule, bN as toRef, q as computed, r as ref, bO as refDebounced, i as createElementBlock, k as createBaseVNode, x as renderSlot, f as createCommentVNode, b7 as mergeProps, m as unref, n as normalizeClass, _ as _export_sfc, c as useI18n, bP as KeyboardShortcutTooltip, w as withCtx, j as createVNode, b2 as withModifiers, bQ as reactive, o as onMounted, bb as onUnmounted, l as createTextVNode, t as toDisplayString, b as useRouter, R as useRoute, a as useToast, a4 as useDocumentTitle, a5 as useWorkflowHelpers, bA as useNodeHelpers, bz as useNodeTypesStore, H as useUIStore, Q as useWorkflowsStore, a0 as useSourceControlStore, p as useSettingsStore, bR as useCredentialsStore, bS as useEnvironmentsStore, bT as useExternalSecretsStore, Z as useRootStore, at as useExecutionsStore, $ as useCanvasStore, a3 as useNpsSurveyStore, bU as useHistoryStore, a1 as useProjectsStore, u as useUsersStore, E as useTagsStore, P as usePushConnectionStore, as as useNDVStore, aN as useTemplatesStore, bV as useBuilderStore, a2 as useFoldersStore, bB as useRunWorkflow, bf as useClipboard, S as PLACEHOLDER_EMPTY_WORKFLOW_ID, bW as NEW_WORKFLOW_ID, V as VIEWS, aZ as LOGS_PANEL_STATE, bX as START_NODE_TYPE, bY as getNodeViewTab, s as MAIN_HEADER_TABS, am as VALID_WORKFLOW_IMPORT_URL_REGEX, ai as useMessage, aj as MODAL_CONFIRM, bZ as jsonParse, a7 as getResourcePermissions, bk as CHAT_TRIGGER_NODE_TYPE, bl as MANUAL_CHAT_TRIGGER_NODE_TYPE, X as watch, b_ as onBeforeRouteLeave, az as onBeforeMount, ak as WORKFLOW_SETTINGS_MODAL_KEY, aP as useExternalHooks, b$ as onActivated, c0 as onDeactivated, y as onBeforeUnmount, c1 as Suspense, c2 as defineAsyncComponent, c3 as N8nCallout, ao as __vitePreload, aa as EnterpriseEditionFeature, z as nextTick, ag as useTelemetry, c4 as tryToParseNumber, ah as nodeViewEventBus, bm as NodeConnectionTypes, c5 as isValidNodeConnectionType, c6 as CanvasConnectionMode, c7 as historyBus, aF as sourceControlEventBus, c8 as getNodesWithNormalizedPosition, aq as h, c9 as NODE_CREATOR_OPEN_SOURCES, ca as CanvasNodeRenderType, ay as STICKY_NODE_TYPE, cb as DRAG_EVENT_DATA_KEY } from "./index-BLAboPd2.js";
|
|
3
|
+
import { u as useVueFlow, a as useCanvasMapping, C as Canvas } from "./useCanvasMapping-CSuq_dYj.js";
|
|
4
|
+
import { g as globalLinkActionsEventBus } from "./global-link-actions-COf-9vBh.js";
|
|
5
|
+
import { a as useNodeCreatorStore, b as useCanvasOperations, c as createCanvasConnectionHandleString } from "./useCanvasOperations-C0pQBHW3.js";
|
|
6
|
+
import { u as useExecutionDebugging } from "./useExecutionDebugging-D2H5O6fT.js";
|
|
7
|
+
import { u as useBeforeUnload } from "./useBeforeUnload-DbfysOS-.js";
|
|
8
|
+
import { g as getEasyAiWorkflowJson } from "./easyAiWorkflowUtils-BWgfZ0am.js";
|
|
9
|
+
import { u as useClearExecutionButtonVisible } from "./useClearExecutionButtonVisible-Cvfxw8xC.js";
|
|
10
10
|
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
11
11
|
__name: "CanvasChatButton",
|
|
12
12
|
props: {
|
|
@@ -284,13 +284,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
284
284
|
__name: "NodeView",
|
|
285
285
|
setup(__props) {
|
|
286
286
|
const LazyNodeCreation = defineAsyncComponent(
|
|
287
|
-
async () => await __vitePreload(() => import("./NodeCreation-
|
|
287
|
+
async () => await __vitePreload(() => import("./NodeCreation-S2FoBcnW.js").then((n) => n.N), true ? __vite__mapDeps([0,1,2,3,4]) : void 0)
|
|
288
288
|
);
|
|
289
289
|
const LazyNodeDetailsView = defineAsyncComponent(
|
|
290
|
-
async () => await __vitePreload(() => import("./NodeDetailsView-
|
|
290
|
+
async () => await __vitePreload(() => import("./NodeDetailsView-DtvMtBqp.js"), true ? __vite__mapDeps([5,1,2,6,7,8,9,10,11,12,3,13,14,15]) : void 0)
|
|
291
291
|
);
|
|
292
292
|
const LazySetupWorkflowCredentialsButton = defineAsyncComponent(
|
|
293
|
-
async () => await __vitePreload(() => import("./SetupWorkflowCredentialsButton-
|
|
293
|
+
async () => await __vitePreload(() => import("./SetupWorkflowCredentialsButton-B2wnuUnF.js"), true ? __vite__mapDeps([16,1,2]) : void 0)
|
|
294
294
|
);
|
|
295
295
|
const $style = useCssModule();
|
|
296
296
|
const router = useRouter();
|
|
@@ -323,6 +323,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
323
323
|
const pushConnectionStore = usePushConnectionStore();
|
|
324
324
|
const ndvStore = useNDVStore();
|
|
325
325
|
const templatesStore = useTemplatesStore();
|
|
326
|
+
const builderStore = useBuilderStore();
|
|
327
|
+
const foldersStore = useFoldersStore();
|
|
326
328
|
const canvasEventBus = createEventBus();
|
|
327
329
|
const { addBeforeUnloadEventBindings, removeBeforeUnloadEventBindings } = useBeforeUnload({
|
|
328
330
|
route
|
|
@@ -379,11 +381,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
379
381
|
const isExecutionPreview = ref(false);
|
|
380
382
|
const canOpenNDV = ref(true);
|
|
381
383
|
const hideNodeIssues = ref(false);
|
|
384
|
+
const fallbackNodes = ref([]);
|
|
382
385
|
const initializedWorkflowId = ref();
|
|
383
386
|
const workflowId = computed(() => {
|
|
384
387
|
const workflowIdParam = route.params.name;
|
|
385
388
|
return [PLACEHOLDER_EMPTY_WORKFLOW_ID, NEW_WORKFLOW_ID].includes(workflowIdParam) ? void 0 : workflowIdParam;
|
|
386
389
|
});
|
|
390
|
+
const routeNodeId = computed(() => route.params.nodeId);
|
|
387
391
|
const isNewWorkflowRoute = computed(() => route.name === VIEWS.NEW_WORKFLOW || !workflowId.value);
|
|
388
392
|
const isWorkflowRoute = computed(() => !!route?.meta?.nodeView || isDemoRoute.value);
|
|
389
393
|
const isDemoRoute = computed(() => route.name === VIEWS.DEMO);
|
|
@@ -394,18 +398,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
394
398
|
const isCanvasReadOnly = computed(() => {
|
|
395
399
|
return isDemoRoute.value || isReadOnlyEnvironment.value || !(workflowPermissions.value.update ?? projectPermissions.value.workflow.update);
|
|
396
400
|
});
|
|
397
|
-
const fallbackNodes = computed(
|
|
398
|
-
() => isLoading.value || isCanvasReadOnly.value ? [] : [
|
|
399
|
-
{
|
|
400
|
-
id: CanvasNodeRenderType.AddNodes,
|
|
401
|
-
name: CanvasNodeRenderType.AddNodes,
|
|
402
|
-
type: CanvasNodeRenderType.AddNodes,
|
|
403
|
-
typeVersion: 1,
|
|
404
|
-
position: [0, 0],
|
|
405
|
-
parameters: {}
|
|
406
|
-
}
|
|
407
|
-
]
|
|
408
|
-
);
|
|
409
401
|
const showFallbackNodes = computed(() => triggerNodes.value.length === 0);
|
|
410
402
|
const keyBindingsEnabled = computed(() => {
|
|
411
403
|
return !ndvStore.activeNode && uiStore.activeModals.length === 0;
|
|
@@ -485,19 +477,48 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
485
477
|
}
|
|
486
478
|
async function initializeWorkspaceForNewWorkflow() {
|
|
487
479
|
resetWorkspace();
|
|
480
|
+
const parentFolderId = route.query.parentFolderId;
|
|
488
481
|
await workflowsStore.getNewWorkflowData(
|
|
489
482
|
void 0,
|
|
490
483
|
projectsStore.currentProjectId,
|
|
491
|
-
|
|
484
|
+
parentFolderId
|
|
492
485
|
);
|
|
493
486
|
workflowsStore.makeNewWorkflowShareable();
|
|
487
|
+
if (projectsStore.currentProjectId) {
|
|
488
|
+
await fetchAndSetProject(projectsStore.currentProjectId);
|
|
489
|
+
}
|
|
490
|
+
await fetchAndSetParentFolder(parentFolderId);
|
|
494
491
|
uiStore.nodeViewInitialized = true;
|
|
495
492
|
initializedWorkflowId.value = NEW_WORKFLOW_ID;
|
|
496
493
|
}
|
|
494
|
+
async function fetchAndSetParentFolder(folderId) {
|
|
495
|
+
if (folderId) {
|
|
496
|
+
let parentFolder = foldersStore.getCachedFolder(folderId);
|
|
497
|
+
if (!parentFolder && projectsStore.currentProjectId) {
|
|
498
|
+
await foldersStore.getFolderPath(projectsStore.currentProjectId, folderId);
|
|
499
|
+
parentFolder = foldersStore.getCachedFolder(folderId);
|
|
500
|
+
}
|
|
501
|
+
if (parentFolder) {
|
|
502
|
+
workflowsStore.setParentFolder({
|
|
503
|
+
...parentFolder,
|
|
504
|
+
parentFolderId: parentFolder.parentFolder ?? null
|
|
505
|
+
});
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
async function fetchAndSetProject(projectId) {
|
|
510
|
+
if (!projectsStore.currentProject) {
|
|
511
|
+
const project = await projectsStore.fetchProject(projectId);
|
|
512
|
+
projectsStore.setCurrentProject(project);
|
|
513
|
+
}
|
|
514
|
+
}
|
|
497
515
|
async function initializeWorkspaceForExistingWorkflow(id) {
|
|
498
516
|
try {
|
|
499
517
|
const workflowData = await workflowsStore.fetchWorkflow(id);
|
|
500
518
|
openWorkflow(workflowData);
|
|
519
|
+
if (workflowData.parentFolder) {
|
|
520
|
+
workflowsStore.setParentFolder(workflowData.parentFolder);
|
|
521
|
+
}
|
|
501
522
|
if (workflowData.meta?.onboardingId) {
|
|
502
523
|
trackOpenWorkflowFromOnboardingTemplate();
|
|
503
524
|
}
|
|
@@ -635,7 +656,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
635
656
|
revertUpdateNodePosition(nodeName, { x: position[0], y: position[1] });
|
|
636
657
|
}
|
|
637
658
|
function onDeleteNode(id) {
|
|
638
|
-
|
|
659
|
+
const matchedFallbackNode = fallbackNodes.value.findIndex((node) => node.id === id);
|
|
660
|
+
if (matchedFallbackNode >= 0) {
|
|
661
|
+
fallbackNodes.value.splice(matchedFallbackNode, 1);
|
|
662
|
+
} else {
|
|
663
|
+
deleteNode(id, { trackHistory: true });
|
|
664
|
+
}
|
|
639
665
|
}
|
|
640
666
|
function onDeleteNodes(ids) {
|
|
641
667
|
deleteNodes(ids);
|
|
@@ -884,6 +910,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
884
910
|
await importWorkflowData(workflowData, "file");
|
|
885
911
|
fitView();
|
|
886
912
|
selectNodes(workflowData.nodes?.map((node) => node.id) ?? []);
|
|
913
|
+
if (data.tidyUp) {
|
|
914
|
+
setTimeout(() => {
|
|
915
|
+
canvasEventBus.emit("tidyUp", { source: "import-workflow-data" });
|
|
916
|
+
}, 0);
|
|
917
|
+
}
|
|
887
918
|
}
|
|
888
919
|
async function onImportWorkflowUrlEvent(data) {
|
|
889
920
|
const workflowData = await fetchWorkflowDataFromUrl(data.url);
|
|
@@ -1132,8 +1163,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1132
1163
|
if (!chatTriggerNode.value) return null;
|
|
1133
1164
|
return workflowsStore.pinDataByNodeName(chatTriggerNode.value.name);
|
|
1134
1165
|
});
|
|
1135
|
-
async function
|
|
1136
|
-
await toggleChatOpen("main"
|
|
1166
|
+
async function onToggleChat() {
|
|
1167
|
+
await toggleChatOpen("main");
|
|
1168
|
+
}
|
|
1169
|
+
async function onOpenChat() {
|
|
1170
|
+
await toggleChatOpen("main", true);
|
|
1137
1171
|
}
|
|
1138
1172
|
function addUndoRedoEventBindings() {
|
|
1139
1173
|
historyBus.on("nodeMove", onRevertNodePosition);
|
|
@@ -1358,6 +1392,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1358
1392
|
uiStore.addFirstStepOnLoad = false;
|
|
1359
1393
|
}
|
|
1360
1394
|
}
|
|
1395
|
+
function updateNodeRoute(nodeId) {
|
|
1396
|
+
const nodeUi = workflowsStore.findNodeByPartialId(nodeId);
|
|
1397
|
+
if (nodeUi) {
|
|
1398
|
+
setNodeActive(nodeUi.id);
|
|
1399
|
+
} else {
|
|
1400
|
+
toast.showToast({
|
|
1401
|
+
title: i18n.baseText("nodeView.showMessage.ndvUrl.missingNodes.title"),
|
|
1402
|
+
message: i18n.baseText("nodeView.showMessage.ndvUrl.missingNodes.content"),
|
|
1403
|
+
type: "warning"
|
|
1404
|
+
});
|
|
1405
|
+
void router.replace({
|
|
1406
|
+
name: route.name,
|
|
1407
|
+
params: { name: workflowId.value }
|
|
1408
|
+
});
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1361
1411
|
watch(
|
|
1362
1412
|
() => route.name,
|
|
1363
1413
|
async (newRouteName, oldRouteName) => {
|
|
@@ -1365,6 +1415,56 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1365
1415
|
await initializeRoute(force);
|
|
1366
1416
|
}
|
|
1367
1417
|
);
|
|
1418
|
+
watch(
|
|
1419
|
+
() => {
|
|
1420
|
+
return isLoading.value || isCanvasReadOnly.value || editableWorkflow.value.nodes.length !== 0;
|
|
1421
|
+
},
|
|
1422
|
+
(isReadOnlyOrLoading) => {
|
|
1423
|
+
const defaultFallbackNodes = [
|
|
1424
|
+
{
|
|
1425
|
+
id: CanvasNodeRenderType.AddNodes,
|
|
1426
|
+
name: CanvasNodeRenderType.AddNodes,
|
|
1427
|
+
type: CanvasNodeRenderType.AddNodes,
|
|
1428
|
+
typeVersion: 1,
|
|
1429
|
+
position: [0, 0],
|
|
1430
|
+
parameters: {}
|
|
1431
|
+
}
|
|
1432
|
+
];
|
|
1433
|
+
if (builderStore.isAIBuilderEnabled && builderStore.isAssistantEnabled) {
|
|
1434
|
+
defaultFallbackNodes.unshift({
|
|
1435
|
+
id: CanvasNodeRenderType.AIPrompt,
|
|
1436
|
+
name: CanvasNodeRenderType.AIPrompt,
|
|
1437
|
+
type: CanvasNodeRenderType.AIPrompt,
|
|
1438
|
+
typeVersion: 1,
|
|
1439
|
+
position: [-690, -15],
|
|
1440
|
+
parameters: {}
|
|
1441
|
+
});
|
|
1442
|
+
}
|
|
1443
|
+
fallbackNodes.value = isReadOnlyOrLoading ? [] : defaultFallbackNodes;
|
|
1444
|
+
}
|
|
1445
|
+
);
|
|
1446
|
+
watch(
|
|
1447
|
+
() => route.params.nodeId,
|
|
1448
|
+
async (newId) => {
|
|
1449
|
+
if (typeof newId !== "string" || newId === "") ndvStore.activeNodeName = null;
|
|
1450
|
+
else {
|
|
1451
|
+
updateNodeRoute(newId);
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
);
|
|
1455
|
+
watch(
|
|
1456
|
+
() => ndvStore.activeNode,
|
|
1457
|
+
async (val) => {
|
|
1458
|
+
if (![VIEWS.WORKFLOW].includes(String(route.name))) return;
|
|
1459
|
+
const nodeId = val?.id ? workflowsStore.getPartialIdForNode(val?.id) : "";
|
|
1460
|
+
if (nodeId !== route.params.nodeId) {
|
|
1461
|
+
await router.replace({
|
|
1462
|
+
name: route.name,
|
|
1463
|
+
params: { name: workflowId.value, nodeId }
|
|
1464
|
+
});
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1467
|
+
);
|
|
1368
1468
|
onBeforeRouteLeave(async (to, from, next) => {
|
|
1369
1469
|
const toNodeViewTab = getNodeViewTab(to);
|
|
1370
1470
|
if (toNodeViewTab === MAIN_HEADER_TABS.EXECUTIONS || from.name === VIEWS.TEMPLATE_IMPORT || toNodeViewTab === MAIN_HEADER_TABS.WORKFLOW && from.name === VIEWS.EXECUTION_DEBUG || isReadOnlyEnvironment.value) {
|
|
@@ -1408,6 +1508,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1408
1508
|
canvasStore.stopLoading();
|
|
1409
1509
|
void externalHooks.run("nodeView.mount").catch(() => {
|
|
1410
1510
|
});
|
|
1511
|
+
setTimeout(() => {
|
|
1512
|
+
if (routeNodeId.value) {
|
|
1513
|
+
updateNodeRoute(routeNodeId.value);
|
|
1514
|
+
}
|
|
1515
|
+
}, 500);
|
|
1411
1516
|
emitPostMessageReady();
|
|
1412
1517
|
});
|
|
1413
1518
|
void usersStore.showPersonalizationSurvey();
|
|
@@ -1479,7 +1584,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1479
1584
|
"onDuplicate:nodes": onDuplicateNodes,
|
|
1480
1585
|
"onCopy:nodes": onCopyNodes,
|
|
1481
1586
|
"onCut:nodes": onCutNodes,
|
|
1482
|
-
"onRun:workflow": _cache[
|
|
1587
|
+
"onRun:workflow": _cache[1] || (_cache[1] = ($event) => unref(runEntireWorkflow)("main")),
|
|
1483
1588
|
"onSave:workflow": onSaveWorkflow,
|
|
1484
1589
|
"onCreate:workflow": onCreateWorkflow,
|
|
1485
1590
|
onViewportChange,
|
|
@@ -1512,7 +1617,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1512
1617
|
key: 1,
|
|
1513
1618
|
type: isLogsPanelOpen.value ? "tertiary" : "primary",
|
|
1514
1619
|
label: isLogsPanelOpen.value ? unref(i18n).baseText("chat.hide") : unref(i18n).baseText("chat.open"),
|
|
1515
|
-
onClick:
|
|
1620
|
+
onClick: onToggleChat
|
|
1516
1621
|
}, null, 8, ["type", "label"])) : createCommentVNode("", true),
|
|
1517
1622
|
isStopExecutionButtonVisible.value ? (openBlock(), createBlock(_sfc_main$4, {
|
|
1518
1623
|
key: 2,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineComponent, q as computed,
|
|
1
|
+
import { d as defineComponent, q as computed, ab as ProjectTypes, c as useI18n, h7 as splitName, gU as ResourceType, V as VIEWS, h as resolveComponent, ch as resolveDirective, i as createElementBlock, g as openBlock, b7 as mergeProps, j as createVNode, x as renderSlot, w as withCtx, e as createBlock, f as createCommentVNode, n as normalizeClass, aA as withDirectives, dA as ProjectIcon, k as createBaseVNode, l as createTextVNode, t as toDisplayString, _ as _export_sfc } from "./index-BLAboPd2.js";
|
|
2
2
|
const _hoisted_1 = { key: 1 };
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "ProjectCardBadge",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineComponent,
|
|
1
|
+
import { d as defineComponent, R as useRoute, r as ref, q as computed, V as VIEWS, c as useI18n, X as watch, h as resolveComponent, e as createBlock, g as openBlock, i as createElementBlock, n as normalizeClass, x as renderSlot, j as createVNode, m as unref, gJ as N8nActionToggle, w as withCtx, aT as _sfc_main$3, _ as _export_sfc, bQ as reactive, b as useRouter, a1 as useProjectsStore, a0 as useSourceControlStore, p as useSettingsStore, ab as ProjectTypes, a7 as getResourcePermissions, k as createBaseVNode, f as createCommentVNode, dA as ProjectIcon, l as createTextVNode, t as toDisplayString, bg as N8nButton, b7 as mergeProps, aR as N8nTooltip } from "./index-BLAboPd2.js";
|
|
2
2
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
3
3
|
__name: "ProjectTabs",
|
|
4
4
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as defineComponent,
|
|
2
|
-
import { P as ProjectHeader } from "./ProjectHeader-
|
|
1
|
+
import { d as defineComponent, g8 as mergeModels, g9 as useModel, r as ref, q as computed, c as useI18n, h as resolveComponent, e as createBlock, g as openBlock, w as withCtx, j as createVNode, k as createBaseVNode, l as createTextVNode, t as toDisplayString, m as unref, i as createElementBlock, f as createCommentVNode, n as normalizeClass, gp as ProjectSharing, b2 as withModifiers, _ as _export_sfc, a6 as usePageRedirectionHelper, u as useUsersStore, a1 as useProjectsStore, he as useRolesStore, aI as useCloudPlanStore, a as useToast, b as useRouter, a4 as useDocumentTitle, hf as getAllIconNames, X as watch, az as onBeforeMount, o as onMounted, db as N8nFormInput, F as Fragment, D as renderList, cg as deepCopy, ag as useTelemetry, z as nextTick, V as VIEWS } from "./index-BLAboPd2.js";
|
|
2
|
+
import { P as ProjectHeader } from "./ProjectHeader-C0FZTxjm.js";
|
|
3
3
|
const _hoisted_1$2 = { class: "pt-l" };
|
|
4
4
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "ProjectDeleteDialog",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineComponent,
|
|
1
|
+
import { d as defineComponent, P as usePushConnectionStore, q as computed, h as resolveComponent, ch as resolveDirective, i as createElementBlock, g as openBlock, x as renderSlot, j as createVNode, w as withCtx, k as createBaseVNode, l as createTextVNode, t as toDisplayString, m as unref, c as useI18n, aA as withDirectives } from "./index-BLAboPd2.js";
|
|
2
2
|
const _hoisted_1 = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "push-connection-lost primary-color"
|