@atom8n/n8n-editor-ui 2.2.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/.stylelintcache +1 -0
- package/README.md +59 -0
- package/biome.jsonc +8 -0
- package/build.log +55 -0
- package/data/node-popularity.json +3998 -0
- package/dist/assets/AddDataTableModal-UINkk54_.js +1555 -0
- package/dist/assets/AgentEditorModal-CVww87TJ.js +358 -0
- package/dist/assets/Alert-Dy86dyOr.js +102 -0
- package/dist/assets/AnimatedSpinner-DmPN4poP.js +15 -0
- package/dist/assets/AnnotationTagsDropdown.ee-BJ7N9lek.js +71 -0
- package/dist/assets/AuthView-D2LWHrMp.js +106 -0
- package/dist/assets/BottomMenu-CIQiK_dJ.js +532 -0
- package/dist/assets/CalendarDate-DgQUMbNo.js +875 -0
- package/dist/assets/ChangePasswordView-Z6tUkw0u.js +133 -0
- package/dist/assets/ChatAgentAvatar-50YBnv3N.js +67 -0
- package/dist/assets/ChatFile-xZxmc2nV.js +146 -0
- package/dist/assets/ChatLayout-CTE_5SiM.js +96 -0
- package/dist/assets/ChatPersonalAgentsView-BGpHk03K.js +149 -0
- package/dist/assets/ChatSidebar-BkVwIypC.js +528 -0
- package/dist/assets/ChatView-BbbdeU9x.js +1559 -0
- package/dist/assets/ChatWorkflowAgentsView-BtunOxlC.js +116 -0
- package/dist/assets/CollectionParameter-BdcPG1lu.js +52 -0
- package/dist/assets/CommitMonoVariable-ytizKI8U.woff2 +0 -0
- package/dist/assets/CommunityNodeUpdateInfo-C37kca4W.js +273 -0
- package/dist/assets/CopyInput-DDZVu2iU.js +74 -0
- package/dist/assets/CredentialIcon-8YdTTFZ1.js +80 -0
- package/dist/assets/CredentialPicker-DWtj314o.js +293 -0
- package/dist/assets/CredentialSelectorModal-DTW2fKh0.js +138 -0
- package/dist/assets/CredentialsView-BjUchcCu.js +480 -0
- package/dist/assets/DataTableActions-DpAkoxg_.js +95 -0
- package/dist/assets/DataTableDetailsView-Coq7zdW5.js +41922 -0
- package/dist/assets/DataTableView-Cs-BIkzw.js +293 -0
- package/dist/assets/DemoFooter-Cga3jvi-.js +65 -0
- package/dist/assets/Draggable-vfvXl9Sp.js +105 -0
- package/dist/assets/EmptySharedSectionActionBox-DOXZtTCv.js +36 -0
- package/dist/assets/EnterpriseEdition.ee-D_rCFexM.js +15 -0
- package/dist/assets/EntityNotFound-3dhTRWsE.js +85 -0
- package/dist/assets/EntityUnAuthorised-ChJYZakE.js +66 -0
- package/dist/assets/ErrorView-zT9cX76a.js +61 -0
- package/dist/assets/EvaluationsRootView-C-OVWYnY.js +523 -0
- package/dist/assets/EvaluationsView-CJwJTruc.js +469 -0
- package/dist/assets/ExecutionsTime-DEQiyozR.js +573 -0
- package/dist/assets/ExecutionsView-Bd5Oh8TH.js +791 -0
- package/dist/assets/ExternalSecretsProviderConnectionSwitch.ee-C7Ih-uRo.js +191 -0
- package/dist/assets/FixedCollectionParameter-CYuTDW9t.js +496 -0
- package/dist/assets/ForgotMyPasswordView-Bs_L9P27.js +102 -0
- package/dist/assets/InsightsChartAverageRuntime-Bp3VA8_7.js +62 -0
- package/dist/assets/InsightsChartFailed-KPaNWoEr.js +52 -0
- package/dist/assets/InsightsChartFailureRate-DE6kE3FM.js +54 -0
- package/dist/assets/InsightsChartTimeSaved-auABNZlc.js +68 -0
- package/dist/assets/InsightsChartTotal-BKzYRKE7.js +56 -0
- package/dist/assets/InsightsDashboard-JWx4W6Db.js +473 -0
- package/dist/assets/InsightsPaywall-C8zLLKe8.js +63 -0
- package/dist/assets/InsightsSummary-cmN1lHDm.js +210 -0
- package/dist/assets/InsightsTableWorkflows-CqcC3IbQ.js +203 -0
- package/dist/assets/InterVariable-DiVDrmQJ.woff2 +0 -0
- package/dist/assets/InterVariable-Italic-FCBEiFp6.woff2 +0 -0
- package/dist/assets/ItemsRenderer-DC8WVyMv.js +922 -0
- package/dist/assets/KeyboardShortcutTooltip-D8PAK5JP.js +31 -0
- package/dist/assets/LogsPanel-BR06u9RK.js +52 -0
- package/dist/assets/LogsPanel-C-_acMHp.js +2325 -0
- package/dist/assets/MCPConnectWorkflowsModal-3g8_iUa4.js +303 -0
- package/dist/assets/MainHeader-DiQc1edn.js +2153 -0
- package/dist/assets/MainSidebar-CoPGG5Ea.js +804 -0
- package/dist/assets/MigrationRuleDetail-BAxk1Pvl.js +295 -0
- package/dist/assets/MigrationRules-IW9lZMpE.js +285 -0
- package/dist/assets/Modal-CIzXlZdZ.js +204 -0
- package/dist/assets/ModelByIdSelectorModal-DLvBjzJO.js +115 -0
- package/dist/assets/NDVEmptyState-33UoX00I.js +19743 -0
- package/dist/assets/NodeCreation-BNzbSWSB.js +240 -0
- package/dist/assets/NodeCreator-BftgCKx7.js +1288 -0
- package/dist/assets/NodeDetailsView-CsoQCpcF.js +1075 -0
- package/dist/assets/NodeDetailsViewV2-C_wNQR_3.js +981 -0
- package/dist/assets/NodeIcon-B9VW6tX6.js +87 -0
- package/dist/assets/NodeSettings-ZwVip6VR.js +1872 -0
- package/dist/assets/NodeView-D4WUEvLB.js +2452 -0
- package/dist/assets/OAuthConsentView-DlrUqZbT.js +230 -0
- package/dist/assets/PageViewLayout-NT1KPFgy.js +12 -0
- package/dist/assets/ParameterInputList-sG2nz-Jo.js +38091 -0
- package/dist/assets/PrebuiltAgentTemplatesView-Csi5U8dc.js +154 -0
- package/dist/assets/ProjectBreadcrumb-C_XiY7sc.js +98 -0
- package/dist/assets/ProjectCardBadge-t_hs7vzx.js +209 -0
- package/dist/assets/ProjectHeader-Dq5Ihb26.js +549 -0
- package/dist/assets/ProjectIcon-DY8gGuHX.js +64 -0
- package/dist/assets/ProjectRoleView-Du-KTrAC.js +435 -0
- package/dist/assets/ProjectRolesView-DjxM_y4u.js +239 -0
- package/dist/assets/ProjectSettings-C6kWuV21.js +966 -0
- package/dist/assets/ProjectSharing-CVUgNWAY.js +262 -0
- package/dist/assets/ProjectVariables-CJlAo3dv.js +467 -0
- package/dist/assets/ProviderSettingsModal-BUFC2ZLv.js +307 -0
- package/dist/assets/PushConnectionTracker-DPBnGV0v.js +27 -0
- package/dist/assets/ResolversView-3BdkvvYA.js +209 -0
- package/dist/assets/ResourceFiltersDropdown-dgyXpcEX.js +159 -0
- package/dist/assets/ResourcesListLayout-qBLtomK6.js +631 -0
- package/dist/assets/RunDataHtml-BrW0OQra.js +7 -0
- package/dist/assets/RunDataHtml-Cleia4Cj.js +40 -0
- package/dist/assets/RunDataJson-uxkrhYRK.js +227 -0
- package/dist/assets/RunDataJsonActions-DkPk7E8d.js +5007 -0
- package/dist/assets/RunDataParsedAiContent-CtPRjig-.js +26 -0
- package/dist/assets/RunDataParsedAiContent-WAuqLQ5M.js +192 -0
- package/dist/assets/RunDataSearch-YBWUr93C.js +141 -0
- package/dist/assets/RunDataTable-DcXaBynW.js +631 -0
- package/dist/assets/SamlOnboarding-BTdQ_hr3.js +78 -0
- package/dist/assets/SaveButton-D5sQSxIk.js +89 -0
- package/dist/assets/SelectedItemsInfo-BHZ-NvF5.js +58 -0
- package/dist/assets/SettingsApiView-IfZTMXx1.js +313 -0
- package/dist/assets/SettingsChatHubView-gWh2X6vX.js +285 -0
- package/dist/assets/SettingsCommunityNodesView-D8VQtpGY.js +349 -0
- package/dist/assets/SettingsExternalSecrets-CpMc7mkW.js +233 -0
- package/dist/assets/SettingsLdapView-CU5a2MAy.js +2553 -0
- package/dist/assets/SettingsLogStreamingView-uojTe-oX.js +375 -0
- package/dist/assets/SettingsMCPView-B5Swp1C_.js +1214 -0
- package/dist/assets/SettingsPersonalView-Cr3aGood.js +402 -0
- package/dist/assets/SettingsSourceControl-DXOvFDEY.js +547 -0
- package/dist/assets/SettingsSso-27MfU1HV.js +1032 -0
- package/dist/assets/SettingsUsageAndPlan-DqIO-G46.js +419 -0
- package/dist/assets/SettingsUsersView-DfHB4_Kh.js +833 -0
- package/dist/assets/SettingsView-C4sA7Uny.js +90 -0
- package/dist/assets/SetupTemplateFormStep-BmiSzZin.js +258 -0
- package/dist/assets/SetupView-VORZ-L_u.js +112 -0
- package/dist/assets/SetupWorkflowCredentialsButton-DTmkOAW5.js +73 -0
- package/dist/assets/SetupWorkflowFromTemplateView-B9NupdJE.js +286 -0
- package/dist/assets/SeverityTag-CX1qTTNA.js +45 -0
- package/dist/assets/SigninView-D9_Pm16j.js +358 -0
- package/dist/assets/SignoutView-BFsjEAGz.js +19 -0
- package/dist/assets/SignupView-Am4ot0QZ.js +137 -0
- package/dist/assets/SkeletonAgentCard-C5TL-h8F.js +191 -0
- package/dist/assets/TagsDropdown-Bvx_Hd6Q.js +230 -0
- package/dist/assets/TemplateCard-CyQ1GuVz.js +105 -0
- package/dist/assets/TemplateDetails-CZRusTxE.js +124 -0
- package/dist/assets/TemplateList-DKvbwuiY.js +333 -0
- package/dist/assets/TemplatesCollectionView-D8dxU8By.js +184 -0
- package/dist/assets/TemplatesSearchView-CebC_GLs.js +1230 -0
- package/dist/assets/TemplatesView-025CcmIY.js +57 -0
- package/dist/assets/TemplatesWorkflowView-C2JfwJAn.js +170 -0
- package/dist/assets/TestRunDetailView-Ck78TTWO.js +395 -0
- package/dist/assets/TextWithHighlights-BxumwGnv.js +57 -0
- package/dist/assets/TimeAgo-C6EN4lCs.js +123 -0
- package/dist/assets/ToolsSelectorModal-8QJoUvRL.js +368 -0
- package/dist/assets/TriggerPanel-B6pacLkk.js +1225 -0
- package/dist/assets/VirtualSchema-B3zGe_8b.js +2402 -0
- package/dist/assets/VirtualSchema-Dkh0Cu5z.js +37 -0
- package/dist/assets/VueMarkdown-CQqJL9vK.js +28 -0
- package/dist/assets/WorkerView-Caznsljo.js +563 -0
- package/dist/assets/WorkflowActivationErrorMessage-CGrfPi9O.js +17 -0
- package/dist/assets/WorkflowActivator-BINnz0f7.js +362 -0
- package/dist/assets/WorkflowExecutionsInfoAccordion-Dg37yEfT.js +166 -0
- package/dist/assets/WorkflowExecutionsLandingPage-V2wdubhK.js +93 -0
- package/dist/assets/WorkflowExecutionsPreview-DdJaqYV6.js +616 -0
- package/dist/assets/WorkflowExecutionsView-DV8ySTfn.js +808 -0
- package/dist/assets/WorkflowHistory-GtaBMzIM.js +973 -0
- package/dist/assets/WorkflowLocation-CQ9Sq-2y.js +164 -0
- package/dist/assets/WorkflowOnboardingView-C49gt0Jr.js +61 -0
- package/dist/assets/WorkflowPreview-CXdvv4Nq.js +186 -0
- package/dist/assets/WorkflowTagsDropdown-QwbICWjN.js +71 -0
- package/dist/assets/WorkflowsView-B-MWIECO.js +3253 -0
- package/dist/assets/_MapCache-CcdIl4Ae.js +363 -0
- package/dist/assets/_baseOrderBy-N8Be_6z6.js +2989 -0
- package/dist/assets/_initCloneObject-viQQyT6o.js +80 -0
- package/dist/assets/_plugin-vue_export-helper-BwBpWJRZ.js +6 -0
- package/dist/assets/aiTemplatesStarterCollection.store-nL9nePkK.js +656 -0
- package/dist/assets/apiKeys.store-BhOFmP2j.js +51 -0
- package/dist/assets/assistant.store-CNywgN4S.js +518 -0
- package/dist/assets/auth.eventBus-CWXS0Qp7.js +5 -0
- package/dist/assets/banners.store-CGEcBTDn.js +195 -0
- package/dist/assets/builder.store-Czk2ipDE.js +31417 -0
- package/dist/assets/buttons.esm-yintpW2E.js +364 -0
- package/dist/assets/chart-CNvyywtJ.js +10958 -0
- package/dist/assets/chartjs.utils-BAE52Cv9.js +155 -0
- package/dist/assets/chat.store-290YeyrQ.js +865 -0
- package/dist/assets/chatPanel.store-NDaawEZL.js +118 -0
- package/dist/assets/chunk-6z4oVpB-.js +36 -0
- package/dist/assets/col-Cmt4cmuS.js +158 -0
- package/dist/assets/constants-C8OH4tTq.js +106256 -0
- package/dist/assets/constants-DMrsrpD7.js +32 -0
- package/dist/assets/core-B9gt_4yk.js +4 -0
- package/dist/assets/core-CP5FY4aX.js +1202 -0
- package/dist/assets/core-CRbPymLT.js +9741 -0
- package/dist/assets/dataTable.store-DmipQsol.js +207 -0
- package/dist/assets/date-picker-2IDsBs2n.js +4115 -0
- package/dist/assets/dateFormatter-ik4-9_9r.js +33 -0
- package/dist/assets/dateformat-hG8NERse.js +181 -0
- package/dist/assets/dialog-lMho1TD8.js +425 -0
- package/dist/assets/dist-Cw46Is-h.js +151 -0
- package/dist/assets/doppler-B__k0MeW.webp +0 -0
- package/dist/assets/element-icons-B-tDfklg.woff +0 -0
- package/dist/assets/element-icons-_lZGOqcG.ttf +0 -0
- package/dist/assets/empty-BuGRxzl4.js +2210 -0
- package/dist/assets/en-CF30SCh2.js +95 -0
- package/dist/assets/en-DyO2pPiC.js +2 -0
- package/dist/assets/es-BkUFJVtD.js +43338 -0
- package/dist/assets/evaluation.constants-GYAwmJnh.js +284 -0
- package/dist/assets/executions.store-B9uRYwgv.js +205 -0
- package/dist/assets/exports-Crx_gvt_.js +1799 -0
- package/dist/assets/externalSecrets.ee.store-BJh4a_6G.js +118 -0
- package/dist/assets/fileUtils-CRWqOQje.js +20 -0
- package/dist/assets/folders.store-yAFj-5Vl.js +235 -0
- package/dist/assets/get-BcEmeOxn.js +2781 -0
- package/dist/assets/index-SL8542zQ.js +28372 -0
- package/dist/assets/insights.constants-BkJCYJTL.js +55 -0
- package/dist/assets/insights.store-BFc3kDUo.js +61 -0
- package/dist/assets/insights.utils-CcLXdrrz.js +77 -0
- package/dist/assets/isEmpty-C3XXoHqJ.js +35216 -0
- package/dist/assets/languageModules-9LyndCqU.js +13862 -0
- package/dist/assets/logStreaming.store-IZhWe_VK.js +190 -0
- package/dist/assets/mcp.constants-_Jcn7fPq.js +10 -0
- package/dist/assets/mcp.store-B9yfcAN9.js +116 -0
- package/dist/assets/merge-DhuTk1HM.js +564 -0
- package/dist/assets/nodeCreator.store-Bpnrwp2l.js +5444 -0
- package/dist/assets/nodeIcon-D6X-ENYt.js +102 -0
- package/dist/assets/nodeTransforms-RzcOM0v2.js +42 -0
- package/dist/assets/orderBy-Cu9F9DU_.js +15 -0
- package/dist/assets/path-browserify-RUt2u7iT.js +328 -0
- package/dist/assets/personalizedTemplatesV3.store-BGYp0YBN.js +334 -0
- package/dist/assets/pickBy-UI0Jt4wC.js +18 -0
- package/dist/assets/preload-helper-dyVz7ck7.js +59 -0
- package/dist/assets/radio-CSce3UT0.js +262 -0
- package/dist/assets/readyToRun.store-YEMvPUqo.js +626 -0
- package/dist/assets/readyToRunWorkflows.store-G3srgIze.js +1319 -0
- package/dist/assets/retry-BgHaYzbB.js +23 -0
- package/dist/assets/roles.store-CRf_zJTb.js +51 -0
- package/dist/assets/router-DNpzz3GH.js +2631 -0
- package/dist/assets/sanitize-html-CbW56HUN.js +10758 -0
- package/dist/assets/schemaPreview.store-DUgN1yVE.js +113 -0
- package/dist/assets/semver-Bk6DGseV.js +1306 -0
- package/dist/assets/smartDecimal-DAZl4HKA.js +6 -0
- package/dist/assets/sortByProperty-Cn7iGKYu.js +8 -0
- package/dist/assets/sourceControl.eventBus-D47xXSc_.js +3 -0
- package/dist/assets/sqlite3-DBpDb1lf.wasm +0 -0
- package/dist/assets/sqlite3-opfs-async-proxy-vVtmDGHX.js +461 -0
- package/dist/assets/sqlite3-worker1-bundler-friendly-DLarOZDL.js +9405 -0
- package/dist/assets/src-jviYSG25.js +55454 -0
- package/dist/assets/sso.store-DyApJwhx.js +139 -0
- package/dist/assets/style-E3CrYFV8.css +111829 -0
- package/dist/assets/table-we1DjFMV.js +3944 -0
- package/dist/assets/templateActions-bEDSARw2.js +65 -0
- package/dist/assets/templateTransforms-BHWiRbtR.js +43 -0
- package/dist/assets/truncate-C0KYt7i3.js +4176 -0
- package/dist/assets/typescript.worker-CYqLvLHh.js +152048 -0
- package/dist/assets/uniqBy-xDyuCRP0.js +10 -0
- package/dist/assets/usage.store-CU5J_nGm.js +100 -0
- package/dist/assets/useActions-B1JckIRj.js +255 -0
- package/dist/assets/useBeforeUnload-DiDkvI8p.js +40 -0
- package/dist/assets/useCanvasMapping-BXT7rGhC.js +12570 -0
- package/dist/assets/useCanvasOperations-8ULLtMkY.js +1765 -0
- package/dist/assets/useClipboard-DvjhVHqJ.js +39 -0
- package/dist/assets/useCommandBar-C4tLJbKt.js +2425 -0
- package/dist/assets/useCredentialResolvers-BKeFGJnY.js +78 -0
- package/dist/assets/useCustomAgent-DpILEt5e.js +471 -0
- package/dist/assets/useDebounce-Br5_1ug-.js +147 -0
- package/dist/assets/useExecutionData-M5iKsX6z.js +23 -0
- package/dist/assets/useExecutionDebugging-8azMzbnd.js +191 -0
- package/dist/assets/useExecutionHelpers-BgRRhpBM.js +91 -0
- package/dist/assets/useImportCurlCommand-CKiEmX5P.js +8891 -0
- package/dist/assets/useIntersectionObserver-BWMwOueh.js +33 -0
- package/dist/assets/useKeybindings-B2jfN6rd.js +62 -0
- package/dist/assets/useLogsTreeExpand-sZViUfdM.js +843 -0
- package/dist/assets/useMcp-DoMOIfqT.js +27 -0
- package/dist/assets/usePageRedirectionHelper-DjkznpX6.js +51 -0
- package/dist/assets/usePinnedData-BhZkqttf.js +203 -0
- package/dist/assets/usePushConnection-DMS-F_IW.js +513 -0
- package/dist/assets/useRecentResources-BVORr7eM.js +118 -0
- package/dist/assets/useRunWorkflow-LO7ffLp9.js +950 -0
- package/dist/assets/useSettingsItems-BhZXwMZn.js +144 -0
- package/dist/assets/useTelemetryContext-V6bv4YRq.js +34 -0
- package/dist/assets/useWorkflowActivate-DeSmDXjI.js +152 -0
- package/dist/assets/useWorkflowsCache-DtcEEAIR.js +179 -0
- package/dist/assets/userRoleProvisioning.store-kkSIdeTo.js +33 -0
- package/dist/assets/utils-DI7dLldp.js +54 -0
- package/dist/assets/versions.store-B1z2OrLE.js +191 -0
- package/dist/assets/vue-CydWIhxN.js +4378 -0
- package/dist/assets/vue-json-pretty-CsGX66mG.js +1130 -0
- package/dist/assets/vue.runtime.esm-bundler-tP5dCd7J.js +7325 -0
- package/dist/assets/xml-B_oj6Mle.js +2060 -0
- package/dist/favicon.ico +0 -0
- package/dist/index.html +157 -0
- package/dist/static/base-path.js +1 -0
- package/dist/static/community_package_tooltip_img.png +0 -0
- package/dist/static/data-mapping-gif.gif +0 -0
- package/dist/static/form-grey.svg +1 -0
- package/dist/static/google-auth/disabled.dark.png +0 -0
- package/dist/static/google-auth/disabled.png +0 -0
- package/dist/static/google-auth/focus.dark.png +0 -0
- package/dist/static/google-auth/focus.png +0 -0
- package/dist/static/google-auth/normal.dark.png +0 -0
- package/dist/static/google-auth/normal.png +0 -0
- package/dist/static/google-auth/pressed.dark.png +0 -0
- package/dist/static/google-auth/pressed.png +0 -0
- package/dist/static/n8n-logo.png +0 -0
- package/dist/static/og_image.png +0 -0
- package/dist/static/open-ai.svg +1 -0
- package/dist/static/openChat.png +0 -0
- package/dist/static/posthog.init.js +41 -0
- package/dist/static/prefers-color-scheme.css +5 -0
- package/dist/static/webhook-icon.svg +1 -0
- package/dist/tree-sitter-bash.wasm +0 -0
- package/dist/tree-sitter.wasm +0 -0
- package/eslint.config.mjs +59 -0
- package/index.html +45 -0
- package/index.js +0 -0
- package/package.json +147 -0
- package/postcss.config.cjs +6 -0
- package/scripts/fetch-node-popularity.mjs +102 -0
- package/stylelint.config.mjs +9 -0
- package/tailwind.config.js +8 -0
- package/tsconfig.json +36 -0
- package/vite/i18n-locales-hmr-helpers.ts +19 -0
- package/vite/source-map-js-shim.ts +1 -0
- package/vite/vite-plugin-node-popularity.mts +32 -0
- package/vite.config.mts +304 -0
|
@@ -0,0 +1,981 @@
|
|
|
1
|
+
import { C as computed, Cn as toDisplayString, D as createElementBlock, E as createCommentVNode, Gt as unref, It as ref, J as onBeforeUnmount, M as createVNode, P as defineComponent, T as createBlock, Ut as toValue, Vt as toRef, W as mergeProps, Z as onMounted, _t as watch, b as Teleport, bn as normalizeStyle, bt as withCtx, et as openBlock, j as createTextVNode, mt as useTemplateRef, vn as normalizeClass, w as createBaseVNode } from "./vue.runtime.esm-bundler-tP5dCd7J.js";
|
|
2
|
+
import { p as useElementSize, rt as useI18n } from "./core-CRbPymLT.js";
|
|
3
|
+
import { C as N8nResizeWrapper_default, Cn as N8nIcon_default, bn as N8nText_default, c as N8nInlineTextEdit_default, ct as useDeviceSupport, ht as N8nTooltip_default, mt as N8nLink_default, xt as N8nIconButton_default } from "./src-jviYSG25.js";
|
|
4
|
+
import "./en-CF30SCh2.js";
|
|
5
|
+
import "./preload-helper-dyVz7ck7.js";
|
|
6
|
+
import { t as __plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BwBpWJRZ.js";
|
|
7
|
+
import { s as createEventBus } from "./truncate-C0KYt7i3.js";
|
|
8
|
+
import "./date-picker-2IDsBs2n.js";
|
|
9
|
+
import { Kn as useNodeHelpers, N as useNDVStore, P as useWorkflowsStore, Pt as useNodeTypesStore, Qi as nodeViewEventBus, aa as useUIStore, b as useStyles, fs as LOCAL_STORAGE_NDV_PANEL_WIDTH, h as useMessage, k as useTelemetry, na as dataPinningEventBus, x as useExternalHooks } from "./builder.store-Czk2ipDE.js";
|
|
10
|
+
import { c as InputPanel_default } from "./ParameterInputList-sG2nz-Jo.js";
|
|
11
|
+
import "./empty-BuGRxzl4.js";
|
|
12
|
+
import "./col-Cmt4cmuS.js";
|
|
13
|
+
import "./dialog-lMho1TD8.js";
|
|
14
|
+
import "./get-BcEmeOxn.js";
|
|
15
|
+
import "./sanitize-html-CbW56HUN.js";
|
|
16
|
+
import "./CalendarDate-DgQUMbNo.js";
|
|
17
|
+
import "./path-browserify-RUt2u7iT.js";
|
|
18
|
+
import "./_MapCache-CcdIl4Ae.js";
|
|
19
|
+
import { Da as jsonParse, E as APP_MODALS_ELEMENT_ID, Qi as getNodeOutputs, Ua as NodeConnectionTypes, rn as EXECUTABLE_TRIGGER_NODE_TYPES, rs as MODAL_CONFIRM, sr as STICKY_NODE_TYPE } from "./constants-C8OH4tTq.js";
|
|
20
|
+
import "./merge-DhuTk1HM.js";
|
|
21
|
+
import { A as storeToRefs } from "./_baseOrderBy-N8Be_6z6.js";
|
|
22
|
+
import "./dateformat-hG8NERse.js";
|
|
23
|
+
import "./useDebounce-Br5_1ug-.js";
|
|
24
|
+
import { n as ndvEventBus } from "./assistant.store-CNywgN4S.js";
|
|
25
|
+
import "./chatPanel.store-NDaawEZL.js";
|
|
26
|
+
import "./retry-BgHaYzbB.js";
|
|
27
|
+
import "./executions.store-B9uRYwgv.js";
|
|
28
|
+
import "./useRunWorkflow-LO7ffLp9.js";
|
|
29
|
+
import { t as usePinnedData } from "./usePinnedData-BhZkqttf.js";
|
|
30
|
+
import "./nodeCreator.store-Bpnrwp2l.js";
|
|
31
|
+
import { t as getNodeIconSource } from "./nodeIcon-D6X-ENYt.js";
|
|
32
|
+
import "./useClipboard-DvjhVHqJ.js";
|
|
33
|
+
import "./useCanvasOperations-8ULLtMkY.js";
|
|
34
|
+
import "./folders.store-yAFj-5Vl.js";
|
|
35
|
+
import { t as NodeIcon_default } from "./NodeIcon-B9VW6tX6.js";
|
|
36
|
+
import "./dataTable.store-DmipQsol.js";
|
|
37
|
+
import "./CopyInput-DDZVu2iU.js";
|
|
38
|
+
import "./isEmpty-C3XXoHqJ.js";
|
|
39
|
+
import "./NDVEmptyState-33UoX00I.js";
|
|
40
|
+
import "./exports-Crx_gvt_.js";
|
|
41
|
+
import "./externalSecrets.ee.store-BJh4a_6G.js";
|
|
42
|
+
import "./uniqBy-xDyuCRP0.js";
|
|
43
|
+
import "./semver-Bk6DGseV.js";
|
|
44
|
+
import "./CommunityNodeUpdateInfo-C37kca4W.js";
|
|
45
|
+
import "./RunDataHtml-Cleia4Cj.js";
|
|
46
|
+
import "./VueMarkdown-CQqJL9vK.js";
|
|
47
|
+
import { t as Draggable_default } from "./Draggable-vfvXl9Sp.js";
|
|
48
|
+
import "./VirtualSchema-B3zGe_8b.js";
|
|
49
|
+
import "./TextWithHighlights-BxumwGnv.js";
|
|
50
|
+
import { t as useTelemetryContext } from "./useTelemetryContext-V6bv4YRq.js";
|
|
51
|
+
import "./schemaPreview.store-DUgN1yVE.js";
|
|
52
|
+
import "./nodeTransforms-RzcOM0v2.js";
|
|
53
|
+
import "./vue-json-pretty-CsGX66mG.js";
|
|
54
|
+
import "./dateFormatter-ik4-9_9r.js";
|
|
55
|
+
import "./useExecutionHelpers-BgRRhpBM.js";
|
|
56
|
+
import { n as useNodeDocsUrl, t as NodeSettings_default } from "./NodeSettings-ZwVip6VR.js";
|
|
57
|
+
import "./useActions-B1JckIRj.js";
|
|
58
|
+
import "./vue-CydWIhxN.js";
|
|
59
|
+
import { t as useKeybindings } from "./useKeybindings-B2jfN6rd.js";
|
|
60
|
+
import "./core-CP5FY4aX.js";
|
|
61
|
+
import "./useExecutionData-M5iKsX6z.js";
|
|
62
|
+
import "./AnimatedSpinner-DmPN4poP.js";
|
|
63
|
+
import "./useLogsTreeExpand-sZViUfdM.js";
|
|
64
|
+
import "./core-B9gt_4yk.js";
|
|
65
|
+
import "./RunDataParsedAiContent-WAuqLQ5M.js";
|
|
66
|
+
import { n as OutputPanel_default, r as NDVFloatingNodes_default, t as TriggerPanel_default } from "./TriggerPanel-B6pacLkk.js";
|
|
67
|
+
var NDVHeader_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
68
|
+
__name: "NDVHeader",
|
|
69
|
+
props: {
|
|
70
|
+
nodeName: {},
|
|
71
|
+
nodeTypeName: {},
|
|
72
|
+
docsUrl: {},
|
|
73
|
+
icon: {},
|
|
74
|
+
readOnly: { type: Boolean }
|
|
75
|
+
},
|
|
76
|
+
emits: ["close", "rename"],
|
|
77
|
+
setup(__props, { emit: __emit }) {
|
|
78
|
+
const props = __props;
|
|
79
|
+
const i18n = useI18n();
|
|
80
|
+
const emit = __emit;
|
|
81
|
+
function onRename(newNodeName) {
|
|
82
|
+
emit("rename", newNodeName || props.nodeTypeName);
|
|
83
|
+
}
|
|
84
|
+
return (_ctx, _cache) => {
|
|
85
|
+
return openBlock(), createElementBlock("header", { class: normalizeClass(_ctx.$style.ndvHeader) }, [createBaseVNode("div", { class: normalizeClass(_ctx.$style.content) }, [_ctx.icon ? (openBlock(), createBlock(NodeIcon_default, {
|
|
86
|
+
key: 0,
|
|
87
|
+
class: normalizeClass(_ctx.$style.icon),
|
|
88
|
+
size: 20,
|
|
89
|
+
"icon-source": _ctx.icon,
|
|
90
|
+
"node-name": props.nodeTypeName,
|
|
91
|
+
"show-tooltip": true
|
|
92
|
+
}, null, 8, [
|
|
93
|
+
"class",
|
|
94
|
+
"icon-source",
|
|
95
|
+
"node-name"
|
|
96
|
+
])) : createCommentVNode("", true), createBaseVNode("div", {
|
|
97
|
+
class: normalizeClass(_ctx.$style.title),
|
|
98
|
+
"data-test-id": "node-title-container"
|
|
99
|
+
}, [createVNode(unref(N8nInlineTextEdit_default), {
|
|
100
|
+
"model-value": _ctx.nodeName,
|
|
101
|
+
"min-width": 0,
|
|
102
|
+
"max-width": 500,
|
|
103
|
+
placeholder: unref(i18n).baseText("ndv.title.rename.placeholder"),
|
|
104
|
+
"read-only": _ctx.readOnly,
|
|
105
|
+
"onUpdate:modelValue": onRename
|
|
106
|
+
}, null, 8, [
|
|
107
|
+
"model-value",
|
|
108
|
+
"placeholder",
|
|
109
|
+
"read-only"
|
|
110
|
+
])], 2)], 2), createBaseVNode("div", { class: normalizeClass(_ctx.$style.actions) }, [_ctx.docsUrl ? (openBlock(), createBlock(unref(N8nLink_default), {
|
|
111
|
+
key: 0,
|
|
112
|
+
theme: "text",
|
|
113
|
+
target: "_blank",
|
|
114
|
+
href: _ctx.docsUrl
|
|
115
|
+
}, {
|
|
116
|
+
default: withCtx(() => [createBaseVNode("span", { class: normalizeClass(_ctx.$style.docsLabel) }, [createVNode(unref(N8nText_default), {
|
|
117
|
+
size: "small",
|
|
118
|
+
bold: ""
|
|
119
|
+
}, {
|
|
120
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(i18n).baseText("nodeSettings.docs")), 1)]),
|
|
121
|
+
_: 1
|
|
122
|
+
}), createVNode(unref(N8nIcon_default), { icon: "external-link" })], 2)]),
|
|
123
|
+
_: 1
|
|
124
|
+
}, 8, ["href"])) : createCommentVNode("", true), createVNode(unref(N8nTooltip_default), null, {
|
|
125
|
+
content: withCtx(() => [createTextVNode(toDisplayString(unref(i18n).baseText("ndv.close.tooltip")), 1)]),
|
|
126
|
+
default: withCtx(() => [createVNode(unref(N8nIconButton_default), {
|
|
127
|
+
icon: "x",
|
|
128
|
+
type: "tertiary",
|
|
129
|
+
text: "",
|
|
130
|
+
"data-test-id": "ndv-close-button",
|
|
131
|
+
onClick: _cache[0] || (_cache[0] = ($event) => emit("close"))
|
|
132
|
+
})]),
|
|
133
|
+
_: 1
|
|
134
|
+
})], 2)], 2);
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
var NDVHeader_vue_vue_type_style_index_0_lang_module_default = {
|
|
139
|
+
ndvHeader: "_ndvHeader_1e58b_2",
|
|
140
|
+
content: "_content_1e58b_12",
|
|
141
|
+
actions: "_actions_1e58b_19",
|
|
142
|
+
title: "_title_1e58b_34",
|
|
143
|
+
docsLabel: "_docsLabel_1e58b_39",
|
|
144
|
+
icon: "_icon_1e58b_44"
|
|
145
|
+
};
|
|
146
|
+
var NDVHeader_default = /* @__PURE__ */ __plugin_vue_export_helper_default(NDVHeader_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": NDVHeader_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
147
|
+
function useNdvLayout(options) {
|
|
148
|
+
const MIN_MAIN_PANEL_WIDTH_PX = 368;
|
|
149
|
+
const MIN_PANEL_WIDTH_PX = 120;
|
|
150
|
+
const DEFAULT_INPUTLESS_MAIN_WIDTH_PX = 480;
|
|
151
|
+
const DEFAULT_WIDE_MAIN_WIDTH_PX = 640;
|
|
152
|
+
const DEFAULT_REGULAR_MAIN_WIDTH_PX = 420;
|
|
153
|
+
const panelWidthPercentage = ref({
|
|
154
|
+
left: 40,
|
|
155
|
+
main: 20,
|
|
156
|
+
right: 40
|
|
157
|
+
});
|
|
158
|
+
const localStorageKey = computed(() => `${LOCAL_STORAGE_NDV_PANEL_WIDTH}_${toValue(options.paneType).toUpperCase()}`);
|
|
159
|
+
const containerSize = useElementSize(options.container);
|
|
160
|
+
const containerWidth = computed(() => containerSize.width.value);
|
|
161
|
+
const percentageToPixels = (percentage) => {
|
|
162
|
+
return percentage / 100 * containerWidth.value;
|
|
163
|
+
};
|
|
164
|
+
const pixelsToPercentage = (pixels) => {
|
|
165
|
+
return pixels / containerWidth.value * 100;
|
|
166
|
+
};
|
|
167
|
+
const minMainPanelWidthPercentage = computed(() => pixelsToPercentage(MIN_MAIN_PANEL_WIDTH_PX));
|
|
168
|
+
const panelWidthPixels = computed(() => ({
|
|
169
|
+
left: percentageToPixels(panelWidthPercentage.value.left),
|
|
170
|
+
main: percentageToPixels(panelWidthPercentage.value.main),
|
|
171
|
+
right: percentageToPixels(panelWidthPercentage.value.right)
|
|
172
|
+
}));
|
|
173
|
+
const minPanelWidthPercentage = computed(() => pixelsToPercentage(MIN_PANEL_WIDTH_PX));
|
|
174
|
+
const defaultPanelSize = computed(() => {
|
|
175
|
+
switch (toValue(options.paneType)) {
|
|
176
|
+
case "inputless": {
|
|
177
|
+
const main$1 = pixelsToPercentage(DEFAULT_INPUTLESS_MAIN_WIDTH_PX);
|
|
178
|
+
return {
|
|
179
|
+
left: 0,
|
|
180
|
+
main: main$1,
|
|
181
|
+
right: 100 - main$1
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
case "wide": {
|
|
185
|
+
const main$1 = pixelsToPercentage(DEFAULT_WIDE_MAIN_WIDTH_PX);
|
|
186
|
+
const panels = (100 - main$1) / 2;
|
|
187
|
+
return {
|
|
188
|
+
left: panels,
|
|
189
|
+
main: main$1,
|
|
190
|
+
right: panels
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
case "dragless":
|
|
194
|
+
case "unknown":
|
|
195
|
+
case "regular":
|
|
196
|
+
default: {
|
|
197
|
+
const main$1 = pixelsToPercentage(DEFAULT_REGULAR_MAIN_WIDTH_PX);
|
|
198
|
+
const panels = (100 - main$1) / 2;
|
|
199
|
+
return {
|
|
200
|
+
left: panels,
|
|
201
|
+
main: main$1,
|
|
202
|
+
right: panels
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
const safePanelWidth = ({ left, main: main$1, right }) => {
|
|
208
|
+
const minLeft = toValue(options.hasInputPanel) ? minPanelWidthPercentage.value : 0;
|
|
209
|
+
const minRight = minPanelWidthPercentage.value;
|
|
210
|
+
const minMain = minMainPanelWidthPercentage.value;
|
|
211
|
+
const newPanelWidth = {
|
|
212
|
+
left: Math.max(minLeft, left),
|
|
213
|
+
main: Math.max(minMain, main$1),
|
|
214
|
+
right: Math.max(minRight, right)
|
|
215
|
+
};
|
|
216
|
+
const total = newPanelWidth.left + newPanelWidth.main + newPanelWidth.right;
|
|
217
|
+
if (total > 100) {
|
|
218
|
+
const overflow = total - 100;
|
|
219
|
+
const trimLeft = newPanelWidth.left / (newPanelWidth.left + newPanelWidth.right) * overflow;
|
|
220
|
+
const trimRight = overflow - trimLeft;
|
|
221
|
+
newPanelWidth.left = Math.max(minLeft, newPanelWidth.left - trimLeft);
|
|
222
|
+
newPanelWidth.right = Math.max(minRight, newPanelWidth.right - trimRight);
|
|
223
|
+
}
|
|
224
|
+
return newPanelWidth;
|
|
225
|
+
};
|
|
226
|
+
const persistPanelSize = () => {
|
|
227
|
+
localStorage.setItem(localStorageKey.value, JSON.stringify(panelWidthPercentage.value));
|
|
228
|
+
};
|
|
229
|
+
const loadPanelSize = () => {
|
|
230
|
+
const storedPanelSizeString = localStorage.getItem(localStorageKey.value);
|
|
231
|
+
const defaultSize = defaultPanelSize.value;
|
|
232
|
+
if (storedPanelSizeString) panelWidthPercentage.value = safePanelWidth(jsonParse(storedPanelSizeString, { fallbackValue: defaultSize }) ?? defaultSize);
|
|
233
|
+
else panelWidthPercentage.value = safePanelWidth(defaultSize);
|
|
234
|
+
};
|
|
235
|
+
const onResizeEnd = () => {
|
|
236
|
+
persistPanelSize();
|
|
237
|
+
};
|
|
238
|
+
const onResize = (event) => {
|
|
239
|
+
const newMain = Math.max(minMainPanelWidthPercentage.value, pixelsToPercentage(event.width));
|
|
240
|
+
const initialLeft = panelWidthPercentage.value.left;
|
|
241
|
+
const initialMain = panelWidthPercentage.value.main;
|
|
242
|
+
const initialRight = panelWidthPercentage.value.right;
|
|
243
|
+
const diffMain = newMain - initialMain;
|
|
244
|
+
if (event.direction === "left") {
|
|
245
|
+
const potentialLeft = initialLeft - diffMain;
|
|
246
|
+
if (potentialLeft < minPanelWidthPercentage.value) return;
|
|
247
|
+
panelWidthPercentage.value = safePanelWidth({
|
|
248
|
+
left: Math.max(minPanelWidthPercentage.value, potentialLeft),
|
|
249
|
+
main: newMain,
|
|
250
|
+
right: initialRight
|
|
251
|
+
});
|
|
252
|
+
} else if (event.direction === "right") {
|
|
253
|
+
const potentialRight = initialRight - diffMain;
|
|
254
|
+
if (potentialRight < minPanelWidthPercentage.value) return;
|
|
255
|
+
panelWidthPercentage.value = safePanelWidth({
|
|
256
|
+
left: initialLeft,
|
|
257
|
+
main: newMain,
|
|
258
|
+
right: Math.max(minPanelWidthPercentage.value, potentialRight)
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
const onDrag = (position) => {
|
|
263
|
+
const newLeft = Math.max(minPanelWidthPercentage.value, pixelsToPercentage(position[0]) - panelWidthPercentage.value.main / 2);
|
|
264
|
+
const newRight = Math.max(minPanelWidthPercentage.value, 100 - newLeft - panelWidthPercentage.value.main);
|
|
265
|
+
if (newLeft + panelWidthPercentage.value.main + newRight > 100) return;
|
|
266
|
+
panelWidthPercentage.value.left = newLeft;
|
|
267
|
+
panelWidthPercentage.value.right = newRight;
|
|
268
|
+
};
|
|
269
|
+
watch(containerWidth, (newWidth, oldWidth) => {
|
|
270
|
+
if (!newWidth) return;
|
|
271
|
+
if (!oldWidth) loadPanelSize();
|
|
272
|
+
else panelWidthPercentage.value = safePanelWidth(panelWidthPercentage.value);
|
|
273
|
+
});
|
|
274
|
+
watch(toRef(options.paneType), () => {
|
|
275
|
+
loadPanelSize();
|
|
276
|
+
}, { immediate: true });
|
|
277
|
+
return {
|
|
278
|
+
containerWidth,
|
|
279
|
+
panelWidthPercentage,
|
|
280
|
+
panelWidthPixels,
|
|
281
|
+
onResize,
|
|
282
|
+
onDrag,
|
|
283
|
+
onResizeEnd
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
var PanelDragButtonV2_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
287
|
+
__name: "PanelDragButtonV2",
|
|
288
|
+
props: {
|
|
289
|
+
canMoveRight: { type: Boolean },
|
|
290
|
+
canMoveLeft: { type: Boolean }
|
|
291
|
+
},
|
|
292
|
+
emits: [
|
|
293
|
+
"drag",
|
|
294
|
+
"dragstart",
|
|
295
|
+
"dragend"
|
|
296
|
+
],
|
|
297
|
+
setup(__props, { emit: __emit }) {
|
|
298
|
+
const emit = __emit;
|
|
299
|
+
const onDrag = (e) => {
|
|
300
|
+
emit("drag", e);
|
|
301
|
+
};
|
|
302
|
+
const onDragEnd = () => {
|
|
303
|
+
emit("dragend");
|
|
304
|
+
};
|
|
305
|
+
const onDragStart = () => {
|
|
306
|
+
emit("dragstart");
|
|
307
|
+
};
|
|
308
|
+
return (_ctx, _cache) => {
|
|
309
|
+
return openBlock(), createBlock(Draggable_default, {
|
|
310
|
+
class: normalizeClass(_ctx.$style.dragContainer),
|
|
311
|
+
type: "panel-resize",
|
|
312
|
+
cursor: "ew-resize",
|
|
313
|
+
"data-test-id": "panel-drag-button",
|
|
314
|
+
onDrag,
|
|
315
|
+
onDragstart: onDragStart,
|
|
316
|
+
onDragend: onDragEnd
|
|
317
|
+
}, {
|
|
318
|
+
default: withCtx(({ isDragging }) => [createBaseVNode("button", { class: normalizeClass([_ctx.$style.dragButton, { [_ctx.$style.dragging]: isDragging }]) }, [
|
|
319
|
+
_ctx.canMoveLeft ? (openBlock(), createBlock(unref(N8nIcon_default), {
|
|
320
|
+
key: 0,
|
|
321
|
+
class: normalizeClass(_ctx.$style.arrow),
|
|
322
|
+
icon: "arrow-left"
|
|
323
|
+
}, null, 8, ["class"])) : createCommentVNode("", true),
|
|
324
|
+
createVNode(unref(N8nIcon_default), {
|
|
325
|
+
class: normalizeClass(_ctx.$style.handle),
|
|
326
|
+
icon: "menu"
|
|
327
|
+
}, null, 8, ["class"]),
|
|
328
|
+
_ctx.canMoveRight ? (openBlock(), createBlock(unref(N8nIcon_default), {
|
|
329
|
+
key: 1,
|
|
330
|
+
class: normalizeClass(_ctx.$style.arrow),
|
|
331
|
+
icon: "arrow-right"
|
|
332
|
+
}, null, 8, ["class"])) : createCommentVNode("", true)
|
|
333
|
+
], 2)]),
|
|
334
|
+
_: 1
|
|
335
|
+
}, 8, ["class"]);
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
});
|
|
339
|
+
var PanelDragButtonV2_vue_vue_type_style_index_0_lang_module_default = {
|
|
340
|
+
dragButton: "_dragButton_16ffn_123",
|
|
341
|
+
arrow: "_arrow_16ffn_138",
|
|
342
|
+
handle: "_handle_16ffn_142",
|
|
343
|
+
dragging: "_dragging_16ffn_146"
|
|
344
|
+
};
|
|
345
|
+
var PanelDragButtonV2_default = /* @__PURE__ */ __plugin_vue_export_helper_default(PanelDragButtonV2_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": PanelDragButtonV2_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
346
|
+
var NodeDetailsViewV2_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
347
|
+
__name: "NodeDetailsViewV2",
|
|
348
|
+
props: {
|
|
349
|
+
workflowObject: {},
|
|
350
|
+
readOnly: {
|
|
351
|
+
type: Boolean,
|
|
352
|
+
default: false
|
|
353
|
+
},
|
|
354
|
+
isProductionExecutionPreview: {
|
|
355
|
+
type: Boolean,
|
|
356
|
+
default: false
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
emits: [
|
|
360
|
+
"saveKeyboardShortcut",
|
|
361
|
+
"valueChanged",
|
|
362
|
+
"switchSelectedNode",
|
|
363
|
+
"openConnectionNodeCreator",
|
|
364
|
+
"renameNode",
|
|
365
|
+
"stopExecution"
|
|
366
|
+
],
|
|
367
|
+
setup(__props, { emit: __emit }) {
|
|
368
|
+
const emit = __emit;
|
|
369
|
+
const props = __props;
|
|
370
|
+
const ndvStore = useNDVStore();
|
|
371
|
+
const externalHooks = useExternalHooks();
|
|
372
|
+
const nodeHelpers = useNodeHelpers();
|
|
373
|
+
const { activeNode } = storeToRefs(ndvStore);
|
|
374
|
+
const pinnedData = usePinnedData(activeNode);
|
|
375
|
+
const nodeTypesStore = useNodeTypesStore();
|
|
376
|
+
const uiStore = useUIStore();
|
|
377
|
+
const workflowsStore = useWorkflowsStore();
|
|
378
|
+
const deviceSupport = useDeviceSupport();
|
|
379
|
+
const telemetry = useTelemetry();
|
|
380
|
+
const telemetryContext = useTelemetryContext({ view_shown: "ndv" });
|
|
381
|
+
const i18n = useI18n();
|
|
382
|
+
const message = useMessage();
|
|
383
|
+
const { APP_Z_INDEXES } = useStyles();
|
|
384
|
+
const settingsEventBus = createEventBus();
|
|
385
|
+
const runInputIndex = ref(-1);
|
|
386
|
+
const runOutputIndex = computed(() => ndvStore.output.run ?? -1);
|
|
387
|
+
const isLinkingEnabled = ref(true);
|
|
388
|
+
const selectedInput = ref();
|
|
389
|
+
const triggerWaitingWarningEnabled = ref(false);
|
|
390
|
+
const isDragging = ref(false);
|
|
391
|
+
const mainPanelPosition = ref(0);
|
|
392
|
+
const pinDataDiscoveryTooltipVisible = ref(false);
|
|
393
|
+
const avgInputRowHeight = ref(0);
|
|
394
|
+
const avgOutputRowHeight = ref(0);
|
|
395
|
+
const isInputPaneActive = ref(false);
|
|
396
|
+
const isOutputPaneActive = ref(false);
|
|
397
|
+
const isPairedItemHoveringEnabled = ref(true);
|
|
398
|
+
const dialogRef = ref();
|
|
399
|
+
const containerRef = useTemplateRef("containerRef");
|
|
400
|
+
const mainPanelRef = useTemplateRef("mainPanelRef");
|
|
401
|
+
const pushRef = computed(() => ndvStore.pushRef);
|
|
402
|
+
const activeNodeType = computed(() => {
|
|
403
|
+
if (activeNode.value) return nodeTypesStore.getNodeType(activeNode.value.type, activeNode.value.typeVersion);
|
|
404
|
+
return null;
|
|
405
|
+
});
|
|
406
|
+
const { docsUrl } = useNodeDocsUrl({ nodeType: activeNodeType });
|
|
407
|
+
const workflowRunning = computed(() => uiStore.isActionActive.workflowRunning);
|
|
408
|
+
const workflowRunData = computed(() => {
|
|
409
|
+
if (workflowExecution.value === null) return null;
|
|
410
|
+
const executionData = workflowExecution.value.data;
|
|
411
|
+
if (executionData?.resultData) return executionData.resultData.runData;
|
|
412
|
+
return null;
|
|
413
|
+
});
|
|
414
|
+
const parentNodes = computed(() => {
|
|
415
|
+
if (activeNode.value) return props.workflowObject.getParentNodesByDepth(activeNode.value.name, 1).map(({ name }) => name) || [];
|
|
416
|
+
else return [];
|
|
417
|
+
});
|
|
418
|
+
const parentNode = computed(() => {
|
|
419
|
+
for (const parentNodeName of parentNodes.value) {
|
|
420
|
+
if (workflowsStore?.pinnedWorkflowData?.[parentNodeName]) return parentNodeName;
|
|
421
|
+
if (workflowRunData.value?.[parentNodeName]) return parentNodeName;
|
|
422
|
+
}
|
|
423
|
+
return parentNodes.value[0];
|
|
424
|
+
});
|
|
425
|
+
const inputNodeName = computed(() => {
|
|
426
|
+
if ((activeNode.value && activeNodeType.value ? getNodeOutputs(props.workflowObject, activeNode.value, activeNodeType.value) : []).filter((output$1) => {
|
|
427
|
+
if (typeof output$1 === "string") return output$1 !== NodeConnectionTypes.Main;
|
|
428
|
+
return output$1.type !== NodeConnectionTypes.Main;
|
|
429
|
+
}).length > 0 && activeNode.value) return props.workflowObject.getChildNodes(activeNode.value.name, "ALL_NON_MAIN")?.[0];
|
|
430
|
+
return selectedInput.value || parentNode.value;
|
|
431
|
+
});
|
|
432
|
+
const inputNode = computed(() => {
|
|
433
|
+
if (inputNodeName.value) return workflowsStore.getNodeByName(inputNodeName.value);
|
|
434
|
+
return null;
|
|
435
|
+
});
|
|
436
|
+
const inputSize = computed(() => ndvStore.ndvInputDataWithPinnedData.length);
|
|
437
|
+
const isTriggerNode = computed(() => !!activeNodeType.value && activeNodeType.value.group.includes("trigger"));
|
|
438
|
+
const showTriggerPanel = computed(() => {
|
|
439
|
+
const override = !!activeNodeType.value?.triggerPanel;
|
|
440
|
+
if (typeof activeNodeType.value?.triggerPanel === "boolean") return override;
|
|
441
|
+
const isWebhookBasedNode = !!activeNodeType.value?.webhooks?.length;
|
|
442
|
+
const isPollingNode = activeNodeType.value?.polling;
|
|
443
|
+
return !props.readOnly && isTriggerNode.value && (isWebhookBasedNode || isPollingNode || override);
|
|
444
|
+
});
|
|
445
|
+
const isExecutableTriggerNode = computed(() => {
|
|
446
|
+
if (!activeNodeType.value) return false;
|
|
447
|
+
return EXECUTABLE_TRIGGER_NODE_TYPES.includes(activeNodeType.value.name);
|
|
448
|
+
});
|
|
449
|
+
const isActiveStickyNode = computed(() => !!ndvStore.activeNode && ndvStore.activeNode.type === "n8n-nodes-base.stickyNote");
|
|
450
|
+
const workflowExecution = computed(() => workflowsStore.getWorkflowExecution);
|
|
451
|
+
const maxOutputRun = computed(() => {
|
|
452
|
+
if (activeNode.value === null) return 0;
|
|
453
|
+
const runData = workflowRunData.value;
|
|
454
|
+
if (!runData?.[activeNode.value.name]) return 0;
|
|
455
|
+
if (runData[activeNode.value.name].length) return runData[activeNode.value.name].length - 1;
|
|
456
|
+
return 0;
|
|
457
|
+
});
|
|
458
|
+
const outputRun = computed(() => runOutputIndex.value === -1 ? maxOutputRun.value : Math.min(runOutputIndex.value, maxOutputRun.value));
|
|
459
|
+
const maxInputRun = computed(() => {
|
|
460
|
+
if (inputNode.value === null || activeNode.value === null) return 0;
|
|
461
|
+
const workflowNode = props.workflowObject.getNode(activeNode.value.name);
|
|
462
|
+
if (!workflowNode || !activeNodeType.value) return 0;
|
|
463
|
+
const outputs = getNodeOutputs(props.workflowObject, workflowNode, activeNodeType.value);
|
|
464
|
+
let node = inputNode.value;
|
|
465
|
+
const runData = workflowRunData.value;
|
|
466
|
+
if (outputs.some((output$1) => output$1 !== NodeConnectionTypes.Main)) node = activeNode.value;
|
|
467
|
+
if (!node || !runData?.hasOwnProperty(node.name)) return 0;
|
|
468
|
+
if (runData[node.name].length) return runData[node.name].length - 1;
|
|
469
|
+
return 0;
|
|
470
|
+
});
|
|
471
|
+
const inputRun = computed(() => {
|
|
472
|
+
if (isLinkingEnabled.value && maxOutputRun.value === maxInputRun.value) return outputRun.value;
|
|
473
|
+
if (runInputIndex.value === -1) return maxInputRun.value;
|
|
474
|
+
return Math.min(runInputIndex.value, maxInputRun.value);
|
|
475
|
+
});
|
|
476
|
+
const canLinkRuns = computed(() => maxOutputRun.value > 0 && maxOutputRun.value === maxInputRun.value);
|
|
477
|
+
const linked = computed(() => isLinkingEnabled.value && canLinkRuns.value);
|
|
478
|
+
const outputPanelEditMode = computed(() => ndvStore.outputPanelEditMode);
|
|
479
|
+
const isWorkflowRunning = computed(() => uiStore.isActionActive.workflowRunning);
|
|
480
|
+
const isExecutionWaitingForWebhook = computed(() => workflowsStore.executionWaitingForWebhook);
|
|
481
|
+
const blockUi = computed(() => isWorkflowRunning.value || isExecutionWaitingForWebhook.value);
|
|
482
|
+
const foreignCredentials = computed(() => nodeHelpers.getForeignCredentialsIfSharingEnabled(activeNode.value?.credentials));
|
|
483
|
+
const hasForeignCredential = computed(() => foreignCredentials.value.length > 0);
|
|
484
|
+
const inputPanelDisplayMode = computed(() => ndvStore.inputPanelDisplayMode);
|
|
485
|
+
const outputPanelDisplayMode = computed(() => ndvStore.outputPanelDisplayMode);
|
|
486
|
+
const hasInputPanel = computed(() => !isTriggerNode.value || showTriggerPanel.value);
|
|
487
|
+
const supportedResizeDirections = computed(() => hasInputPanel.value ? ["left", "right"] : ["right"]);
|
|
488
|
+
const nodeSettingsProps = computed(() => ({
|
|
489
|
+
eventBus: settingsEventBus,
|
|
490
|
+
dragging: isDragging.value,
|
|
491
|
+
pushRef: pushRef.value,
|
|
492
|
+
nodeType: activeNodeType.value,
|
|
493
|
+
foreignCredentials: foreignCredentials.value,
|
|
494
|
+
readOnly: props.readOnly,
|
|
495
|
+
blockUI: blockUi.value && showTriggerPanel.value,
|
|
496
|
+
executable: !props.readOnly,
|
|
497
|
+
inputSize: inputSize.value,
|
|
498
|
+
isNdvV2: true
|
|
499
|
+
}));
|
|
500
|
+
const { containerWidth, onDrag, onResize, onResizeEnd, panelWidthPercentage, panelWidthPixels } = useNdvLayout({
|
|
501
|
+
container: containerRef,
|
|
502
|
+
hasInputPanel,
|
|
503
|
+
paneType: computed(() => {
|
|
504
|
+
if (!hasInputPanel.value) return "inputless";
|
|
505
|
+
return activeNodeType.value?.parameterPane ?? "regular";
|
|
506
|
+
})
|
|
507
|
+
});
|
|
508
|
+
const setIsTooltipVisible = ({ isTooltipVisible }) => {
|
|
509
|
+
pinDataDiscoveryTooltipVisible.value = isTooltipVisible;
|
|
510
|
+
};
|
|
511
|
+
const setSelectedInput = (value) => {
|
|
512
|
+
selectedInput.value = value;
|
|
513
|
+
};
|
|
514
|
+
const onKeyDown = (e) => {
|
|
515
|
+
if (e.key === "s" && deviceSupport.isCtrlKeyPressed(e)) onSaveWorkflow(e);
|
|
516
|
+
};
|
|
517
|
+
const onSaveWorkflow = (e) => {
|
|
518
|
+
e.stopPropagation();
|
|
519
|
+
e.preventDefault();
|
|
520
|
+
if (props.readOnly) return;
|
|
521
|
+
emit("saveKeyboardShortcut", e);
|
|
522
|
+
};
|
|
523
|
+
const onInputItemHover = (e) => {
|
|
524
|
+
if (e === null || !inputNodeName.value || !isPairedItemHoveringEnabled.value) {
|
|
525
|
+
ndvStore.setHoveringItem(null);
|
|
526
|
+
return;
|
|
527
|
+
}
|
|
528
|
+
const item = {
|
|
529
|
+
nodeName: inputNodeName.value,
|
|
530
|
+
runIndex: inputRun.value,
|
|
531
|
+
outputIndex: e.outputIndex,
|
|
532
|
+
itemIndex: e.itemIndex
|
|
533
|
+
};
|
|
534
|
+
ndvStore.setHoveringItem(item);
|
|
535
|
+
};
|
|
536
|
+
const onInputTableMounted = (e) => {
|
|
537
|
+
avgInputRowHeight.value = e.avgRowHeight;
|
|
538
|
+
};
|
|
539
|
+
const onWorkflowActivate = () => {
|
|
540
|
+
ndvStore.unsetActiveNodeName();
|
|
541
|
+
nodeViewEventBus.emit("publishWorkflow");
|
|
542
|
+
};
|
|
543
|
+
const onOutputItemHover = (e) => {
|
|
544
|
+
if (e === null || !activeNode.value || !isPairedItemHoveringEnabled.value) {
|
|
545
|
+
ndvStore.setHoveringItem(null);
|
|
546
|
+
return;
|
|
547
|
+
}
|
|
548
|
+
const item = {
|
|
549
|
+
nodeName: activeNode.value?.name,
|
|
550
|
+
runIndex: outputRun.value,
|
|
551
|
+
outputIndex: e.outputIndex,
|
|
552
|
+
itemIndex: e.itemIndex
|
|
553
|
+
};
|
|
554
|
+
ndvStore.setHoveringItem(item);
|
|
555
|
+
};
|
|
556
|
+
const onDragEnd = () => {
|
|
557
|
+
onResizeEnd();
|
|
558
|
+
isDragging.value = false;
|
|
559
|
+
telemetry.track("User moved parameters pane", {
|
|
560
|
+
window_width: containerWidth.value,
|
|
561
|
+
start_position: mainPanelPosition.value,
|
|
562
|
+
node_type: activeNodeType.value ? activeNodeType.value.name : "",
|
|
563
|
+
push_ref: pushRef.value,
|
|
564
|
+
workflow_id: workflowsStore.workflowId
|
|
565
|
+
});
|
|
566
|
+
};
|
|
567
|
+
const onDragStart = () => {
|
|
568
|
+
isDragging.value = true;
|
|
569
|
+
};
|
|
570
|
+
const onLinkRunToOutput = () => {
|
|
571
|
+
isLinkingEnabled.value = true;
|
|
572
|
+
trackLinking("output");
|
|
573
|
+
};
|
|
574
|
+
const onUnlinkRun = (pane) => {
|
|
575
|
+
runInputIndex.value = runOutputIndex.value;
|
|
576
|
+
isLinkingEnabled.value = false;
|
|
577
|
+
trackLinking(pane);
|
|
578
|
+
};
|
|
579
|
+
const onNodeExecute = () => {
|
|
580
|
+
setTimeout(() => {
|
|
581
|
+
if (!activeNode.value || !workflowRunning.value) return;
|
|
582
|
+
triggerWaitingWarningEnabled.value = true;
|
|
583
|
+
}, 1e3);
|
|
584
|
+
};
|
|
585
|
+
const openSettings = () => {
|
|
586
|
+
settingsEventBus.emit("openSettings");
|
|
587
|
+
};
|
|
588
|
+
const trackLinking = (pane) => {
|
|
589
|
+
telemetry.track("User changed ndv run linking", {
|
|
590
|
+
node_type: activeNodeType.value ? activeNodeType.value.name : "",
|
|
591
|
+
push_ref: pushRef.value,
|
|
592
|
+
linked: linked.value,
|
|
593
|
+
pane
|
|
594
|
+
});
|
|
595
|
+
};
|
|
596
|
+
const onLinkRunToInput = () => {
|
|
597
|
+
ndvStore.setOutputRunIndex(runInputIndex.value);
|
|
598
|
+
isLinkingEnabled.value = true;
|
|
599
|
+
trackLinking("input");
|
|
600
|
+
};
|
|
601
|
+
const onSwitchSelectedNode = (nodeTypeName) => {
|
|
602
|
+
emit("switchSelectedNode", nodeTypeName);
|
|
603
|
+
};
|
|
604
|
+
const onOpenConnectionNodeCreator = (nodeTypeName, connectionType) => {
|
|
605
|
+
emit("openConnectionNodeCreator", nodeTypeName, connectionType);
|
|
606
|
+
};
|
|
607
|
+
const close = async () => {
|
|
608
|
+
if (isDragging.value) return;
|
|
609
|
+
if (outputPanelEditMode.value.enabled && activeNode.value) {
|
|
610
|
+
if (await message.confirm("", i18n.baseText("ndv.pinData.beforeClosing.title"), {
|
|
611
|
+
confirmButtonText: i18n.baseText("ndv.pinData.beforeClosing.confirm"),
|
|
612
|
+
cancelButtonText: i18n.baseText("ndv.pinData.beforeClosing.cancel")
|
|
613
|
+
}) === "confirm") {
|
|
614
|
+
const { value } = outputPanelEditMode.value;
|
|
615
|
+
try {
|
|
616
|
+
pinnedData.setData(jsonParse(value), "on-ndv-close-modal");
|
|
617
|
+
} catch (error) {
|
|
618
|
+
console.error(error);
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
ndvStore.setOutputPanelEditModeEnabled(false);
|
|
622
|
+
}
|
|
623
|
+
await externalHooks.run("dataDisplay.nodeEditingFinished");
|
|
624
|
+
telemetry.track("User closed node modal", {
|
|
625
|
+
node_type: activeNodeType.value ? activeNodeType.value?.name : "",
|
|
626
|
+
push_ref: pushRef.value,
|
|
627
|
+
workflow_id: workflowsStore.workflowId
|
|
628
|
+
});
|
|
629
|
+
triggerWaitingWarningEnabled.value = false;
|
|
630
|
+
ndvStore.unsetActiveNodeName();
|
|
631
|
+
ndvStore.resetNDVPushRef();
|
|
632
|
+
};
|
|
633
|
+
useKeybindings({ Escape: close });
|
|
634
|
+
const trackRunChange = (run, pane) => {
|
|
635
|
+
telemetry.track("User changed ndv run dropdown", {
|
|
636
|
+
push_ref: pushRef.value,
|
|
637
|
+
run_index: run,
|
|
638
|
+
node_type: activeNodeType.value ? activeNodeType.value?.name : "",
|
|
639
|
+
pane
|
|
640
|
+
});
|
|
641
|
+
};
|
|
642
|
+
const onRunOutputIndexChange = (run) => {
|
|
643
|
+
ndvStore.setOutputRunIndex(run);
|
|
644
|
+
trackRunChange(run, "output");
|
|
645
|
+
};
|
|
646
|
+
const onRunInputIndexChange = (run) => {
|
|
647
|
+
runInputIndex.value = run;
|
|
648
|
+
if (linked.value) ndvStore.setOutputRunIndex(run);
|
|
649
|
+
trackRunChange(run, "input");
|
|
650
|
+
};
|
|
651
|
+
const onOutputTableMounted = (e) => {
|
|
652
|
+
avgOutputRowHeight.value = e.avgRowHeight;
|
|
653
|
+
};
|
|
654
|
+
const onInputNodeChange = (value, index) => {
|
|
655
|
+
runInputIndex.value = -1;
|
|
656
|
+
isLinkingEnabled.value = true;
|
|
657
|
+
selectedInput.value = value;
|
|
658
|
+
telemetry.track("User changed ndv input dropdown", {
|
|
659
|
+
node_type: activeNode.value ? activeNode.value.type : "",
|
|
660
|
+
push_ref: pushRef.value,
|
|
661
|
+
workflow_id: workflowsStore.workflowId,
|
|
662
|
+
selection_value: index,
|
|
663
|
+
input_node_type: inputNode.value ? inputNode.value.type : ""
|
|
664
|
+
});
|
|
665
|
+
};
|
|
666
|
+
const onStopExecution = () => {
|
|
667
|
+
emit("stopExecution");
|
|
668
|
+
};
|
|
669
|
+
const activateInputPane = () => {
|
|
670
|
+
isInputPaneActive.value = true;
|
|
671
|
+
isOutputPaneActive.value = false;
|
|
672
|
+
};
|
|
673
|
+
const activateOutputPane = () => {
|
|
674
|
+
isInputPaneActive.value = false;
|
|
675
|
+
isOutputPaneActive.value = true;
|
|
676
|
+
};
|
|
677
|
+
const onSearch = (search) => {
|
|
678
|
+
isPairedItemHoveringEnabled.value = !search;
|
|
679
|
+
};
|
|
680
|
+
const registerKeyboardListener = () => {
|
|
681
|
+
document.addEventListener("keydown", onKeyDown, true);
|
|
682
|
+
};
|
|
683
|
+
const unregisterKeyboardListener = () => {
|
|
684
|
+
document.removeEventListener("keydown", onKeyDown, true);
|
|
685
|
+
};
|
|
686
|
+
const onRename = (name) => {
|
|
687
|
+
emit("renameNode", name);
|
|
688
|
+
};
|
|
689
|
+
const handleChangeDisplayMode = (pane, mode) => {
|
|
690
|
+
ndvStore.setPanelDisplayMode({
|
|
691
|
+
pane,
|
|
692
|
+
mode
|
|
693
|
+
});
|
|
694
|
+
};
|
|
695
|
+
watch(activeNode, (node, oldNode) => {
|
|
696
|
+
if (node && !oldNode) {
|
|
697
|
+
registerKeyboardListener();
|
|
698
|
+
dialogRef.value?.show();
|
|
699
|
+
} else if (!node) unregisterKeyboardListener();
|
|
700
|
+
if (node && node.name !== oldNode?.name && !isActiveStickyNode.value) {
|
|
701
|
+
runInputIndex.value = -1;
|
|
702
|
+
ndvStore.setOutputRunIndex(-1);
|
|
703
|
+
isLinkingEnabled.value = true;
|
|
704
|
+
selectedInput.value = void 0;
|
|
705
|
+
triggerWaitingWarningEnabled.value = false;
|
|
706
|
+
avgOutputRowHeight.value = 0;
|
|
707
|
+
avgInputRowHeight.value = 0;
|
|
708
|
+
setTimeout(() => ndvStore.setNDVPushRef(), 0);
|
|
709
|
+
if (!activeNodeType.value) return;
|
|
710
|
+
externalHooks.run("dataDisplay.nodeTypeChanged", { nodeSubtitle: nodeHelpers.getNodeSubtitle(node, activeNodeType.value, props.workflowObject) });
|
|
711
|
+
setTimeout(() => {
|
|
712
|
+
if (activeNode.value) {
|
|
713
|
+
const outgoingConnections = workflowsStore.outgoingConnectionsByNodeName(activeNode.value?.name);
|
|
714
|
+
telemetry.track("User opened node modal", {
|
|
715
|
+
node_id: activeNode.value?.id,
|
|
716
|
+
node_type: activeNodeType.value ? activeNodeType.value?.name : "",
|
|
717
|
+
workflow_id: workflowsStore.workflowId,
|
|
718
|
+
push_ref: pushRef.value,
|
|
719
|
+
is_editable: !hasForeignCredential.value,
|
|
720
|
+
parameters_pane_position: mainPanelPosition.value,
|
|
721
|
+
input_first_connector_runs: maxInputRun.value,
|
|
722
|
+
output_first_connector_runs: maxOutputRun.value,
|
|
723
|
+
selected_view_inputs: isTriggerNode.value ? "trigger" : ndvStore.inputPanelDisplayMode,
|
|
724
|
+
selected_view_outputs: ndvStore.outputPanelDisplayMode,
|
|
725
|
+
input_connectors: parentNodes.value.length,
|
|
726
|
+
output_connectors: outgoingConnections?.main?.length,
|
|
727
|
+
input_displayed_run_index: inputRun.value,
|
|
728
|
+
output_displayed_run_index: outputRun.value,
|
|
729
|
+
data_pinning_tooltip_presented: pinDataDiscoveryTooltipVisible.value,
|
|
730
|
+
input_displayed_row_height_avg: avgInputRowHeight.value,
|
|
731
|
+
output_displayed_row_height_avg: avgOutputRowHeight.value,
|
|
732
|
+
source: telemetryContext.ndv_source?.value ?? "other"
|
|
733
|
+
});
|
|
734
|
+
}
|
|
735
|
+
}, 2e3);
|
|
736
|
+
}
|
|
737
|
+
if (window.top && !isActiveStickyNode.value) window.top.postMessage(JSON.stringify({ command: node ? "openNDV" : "closeNDV" }), "*");
|
|
738
|
+
}, { immediate: true });
|
|
739
|
+
watch(maxOutputRun, () => {
|
|
740
|
+
ndvStore.setOutputRunIndex(-1);
|
|
741
|
+
});
|
|
742
|
+
watch(maxInputRun, () => {
|
|
743
|
+
runInputIndex.value = -1;
|
|
744
|
+
});
|
|
745
|
+
watch(inputNodeName, (nodeName) => {
|
|
746
|
+
setTimeout(() => {
|
|
747
|
+
ndvStore.setInputNodeName(nodeName);
|
|
748
|
+
}, 0);
|
|
749
|
+
});
|
|
750
|
+
watch(inputRun, (run) => {
|
|
751
|
+
setTimeout(() => {
|
|
752
|
+
ndvStore.setInputRunIndex(run);
|
|
753
|
+
}, 0);
|
|
754
|
+
});
|
|
755
|
+
watch(mainPanelRef, (mainPanel) => {
|
|
756
|
+
if (!mainPanel) return;
|
|
757
|
+
function getTabbableCandidates(element) {
|
|
758
|
+
const nodes = [];
|
|
759
|
+
const walker = document.createTreeWalker(element, NodeFilter.SHOW_ELEMENT, { acceptNode: (node) => {
|
|
760
|
+
const isHiddenInput = node.tagName === "INPUT" && node.type === "hidden";
|
|
761
|
+
if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP;
|
|
762
|
+
return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
763
|
+
} });
|
|
764
|
+
while (walker.nextNode()) nodes.push(walker.currentNode);
|
|
765
|
+
return nodes;
|
|
766
|
+
}
|
|
767
|
+
const firstFocusableElement = getTabbableCandidates(mainPanel)[0];
|
|
768
|
+
if (firstFocusableElement) firstFocusableElement.focus();
|
|
769
|
+
});
|
|
770
|
+
onMounted(() => {
|
|
771
|
+
dialogRef.value?.show();
|
|
772
|
+
dataPinningEventBus.on("data-pinning-discovery", setIsTooltipVisible);
|
|
773
|
+
ndvEventBus.on("updateInputNodeName", setSelectedInput);
|
|
774
|
+
});
|
|
775
|
+
onBeforeUnmount(() => {
|
|
776
|
+
dataPinningEventBus.off("data-pinning-discovery", setIsTooltipVisible);
|
|
777
|
+
ndvEventBus.off("updateInputNodeName", setSelectedInput);
|
|
778
|
+
unregisterKeyboardListener();
|
|
779
|
+
});
|
|
780
|
+
return (_ctx, _cache) => {
|
|
781
|
+
return unref(activeNode) && !isActiveStickyNode.value ? (openBlock(), createBlock(Teleport, {
|
|
782
|
+
key: 0,
|
|
783
|
+
to: `#${unref(APP_MODALS_ELEMENT_ID)}`
|
|
784
|
+
}, [createBaseVNode("div", {
|
|
785
|
+
"data-test-id": "ndv-backdrop",
|
|
786
|
+
class: normalizeClass(_ctx.$style.backdrop),
|
|
787
|
+
style: normalizeStyle({ zIndex: unref(APP_Z_INDEXES).NDV }),
|
|
788
|
+
onClick: close
|
|
789
|
+
}, null, 6), createBaseVNode("dialog", {
|
|
790
|
+
ref_key: "dialogRef",
|
|
791
|
+
ref: dialogRef,
|
|
792
|
+
open: "",
|
|
793
|
+
"aria-modal": "true",
|
|
794
|
+
"data-test-id": "ndv",
|
|
795
|
+
class: normalizeClass(_ctx.$style.dialog),
|
|
796
|
+
style: normalizeStyle({ zIndex: unref(APP_Z_INDEXES).NDV })
|
|
797
|
+
}, [createVNode(NDVFloatingNodes_default, {
|
|
798
|
+
"root-node": unref(activeNode),
|
|
799
|
+
onSwitchSelectedNode
|
|
800
|
+
}, null, 8, ["root-node"]), createBaseVNode("div", {
|
|
801
|
+
ref_key: "containerRef",
|
|
802
|
+
ref: containerRef,
|
|
803
|
+
class: normalizeClass({
|
|
804
|
+
[_ctx.$style.container]: true,
|
|
805
|
+
[_ctx.$style.webhookWaiting]: isExecutionWaitingForWebhook.value
|
|
806
|
+
})
|
|
807
|
+
}, [createVNode(NDVHeader_default, {
|
|
808
|
+
class: normalizeClass(_ctx.$style.header),
|
|
809
|
+
"node-name": unref(activeNode).name,
|
|
810
|
+
"node-type-name": activeNodeType.value?.defaults.name ?? activeNodeType.value?.displayName ?? unref(activeNode).name,
|
|
811
|
+
icon: unref(getNodeIconSource)(activeNodeType.value ?? unref(activeNode).type, unref(activeNode)),
|
|
812
|
+
"docs-url": unref(docsUrl),
|
|
813
|
+
onClose: close,
|
|
814
|
+
onRename
|
|
815
|
+
}, null, 8, [
|
|
816
|
+
"class",
|
|
817
|
+
"node-name",
|
|
818
|
+
"node-type-name",
|
|
819
|
+
"icon",
|
|
820
|
+
"docs-url"
|
|
821
|
+
]), createBaseVNode("main", { class: normalizeClass(_ctx.$style.main) }, [
|
|
822
|
+
hasInputPanel.value ? (openBlock(), createElementBlock("div", {
|
|
823
|
+
key: 0,
|
|
824
|
+
class: normalizeClass([_ctx.$style.column, _ctx.$style.dataColumn]),
|
|
825
|
+
style: normalizeStyle({ width: `${unref(panelWidthPercentage).left}%` })
|
|
826
|
+
}, [showTriggerPanel.value ? (openBlock(), createBlock(TriggerPanel_default, {
|
|
827
|
+
key: 0,
|
|
828
|
+
"node-name": unref(activeNode).name,
|
|
829
|
+
"push-ref": pushRef.value,
|
|
830
|
+
class: normalizeClass(_ctx.$style.input),
|
|
831
|
+
onExecute: onNodeExecute,
|
|
832
|
+
onActivate: onWorkflowActivate
|
|
833
|
+
}, null, 8, [
|
|
834
|
+
"node-name",
|
|
835
|
+
"push-ref",
|
|
836
|
+
"class"
|
|
837
|
+
])) : !isTriggerNode.value ? (openBlock(), createBlock(InputPanel_default, {
|
|
838
|
+
key: 1,
|
|
839
|
+
"workflow-object": _ctx.workflowObject,
|
|
840
|
+
"can-link-runs": canLinkRuns.value,
|
|
841
|
+
"run-index": inputRun.value,
|
|
842
|
+
"linked-runs": linked.value,
|
|
843
|
+
"active-node-name": unref(activeNode).name,
|
|
844
|
+
"current-node-name": inputNodeName.value,
|
|
845
|
+
"push-ref": pushRef.value,
|
|
846
|
+
"read-only": _ctx.readOnly || hasForeignCredential.value,
|
|
847
|
+
"is-production-execution-preview": _ctx.isProductionExecutionPreview,
|
|
848
|
+
"search-shortcut": isInputPaneActive.value ? "/" : void 0,
|
|
849
|
+
"display-mode": inputPanelDisplayMode.value,
|
|
850
|
+
class: normalizeClass(_ctx.$style.input),
|
|
851
|
+
"is-mapping-onboarded": unref(ndvStore).isMappingOnboarded,
|
|
852
|
+
"focused-mappable-input": unref(ndvStore).focusedMappableInput,
|
|
853
|
+
onActivatePane: activateInputPane,
|
|
854
|
+
onLinkRun: onLinkRunToInput,
|
|
855
|
+
onUnlinkRun: _cache[0] || (_cache[0] = () => onUnlinkRun("input")),
|
|
856
|
+
onRunChange: onRunInputIndexChange,
|
|
857
|
+
onOpenSettings: openSettings,
|
|
858
|
+
onChangeInputNode: onInputNodeChange,
|
|
859
|
+
onExecute: onNodeExecute,
|
|
860
|
+
onTableMounted: onInputTableMounted,
|
|
861
|
+
onItemHover: onInputItemHover,
|
|
862
|
+
onSearch,
|
|
863
|
+
onDisplayModeChange: _cache[1] || (_cache[1] = ($event) => handleChangeDisplayMode("input", $event))
|
|
864
|
+
}, null, 8, [
|
|
865
|
+
"workflow-object",
|
|
866
|
+
"can-link-runs",
|
|
867
|
+
"run-index",
|
|
868
|
+
"linked-runs",
|
|
869
|
+
"active-node-name",
|
|
870
|
+
"current-node-name",
|
|
871
|
+
"push-ref",
|
|
872
|
+
"read-only",
|
|
873
|
+
"is-production-execution-preview",
|
|
874
|
+
"search-shortcut",
|
|
875
|
+
"display-mode",
|
|
876
|
+
"class",
|
|
877
|
+
"is-mapping-onboarded",
|
|
878
|
+
"focused-mappable-input"
|
|
879
|
+
])) : createCommentVNode("", true)], 6)) : createCommentVNode("", true),
|
|
880
|
+
createVNode(unref(N8nResizeWrapper_default), {
|
|
881
|
+
width: unref(panelWidthPixels).main,
|
|
882
|
+
"min-width": 260,
|
|
883
|
+
"supported-directions": supportedResizeDirections.value,
|
|
884
|
+
"grid-size": 8,
|
|
885
|
+
class: normalizeClass({
|
|
886
|
+
[_ctx.$style.column]: !isExecutionWaitingForWebhook.value,
|
|
887
|
+
[_ctx.$style.webhookWaiting]: isExecutionWaitingForWebhook.value
|
|
888
|
+
}),
|
|
889
|
+
style: normalizeStyle({ width: `${unref(panelWidthPercentage).main}%` }),
|
|
890
|
+
outset: "",
|
|
891
|
+
onResize: unref(onResize),
|
|
892
|
+
onResizestart: onDragStart,
|
|
893
|
+
onResizeend: onDragEnd
|
|
894
|
+
}, {
|
|
895
|
+
default: withCtx(() => [createBaseVNode("div", {
|
|
896
|
+
ref_key: "mainPanelRef",
|
|
897
|
+
ref: mainPanelRef,
|
|
898
|
+
class: normalizeClass(_ctx.$style.main)
|
|
899
|
+
}, [hasInputPanel.value ? (openBlock(), createBlock(PanelDragButtonV2_default, {
|
|
900
|
+
key: 0,
|
|
901
|
+
class: normalizeClass(_ctx.$style.draggable),
|
|
902
|
+
"can-move-left": true,
|
|
903
|
+
"can-move-right": true,
|
|
904
|
+
onDrag: unref(onDrag),
|
|
905
|
+
onDragstart: onDragStart,
|
|
906
|
+
onDragend: onDragEnd
|
|
907
|
+
}, null, 8, ["class", "onDrag"])) : createCommentVNode("", true), createVNode(NodeSettings_default, mergeProps(nodeSettingsProps.value, {
|
|
908
|
+
class: _ctx.$style.settings,
|
|
909
|
+
onExecute: onNodeExecute,
|
|
910
|
+
onStopExecution,
|
|
911
|
+
onActivate: onWorkflowActivate,
|
|
912
|
+
onSwitchSelectedNode,
|
|
913
|
+
onOpenConnectionNodeCreator
|
|
914
|
+
}), null, 16, ["class"])], 2)]),
|
|
915
|
+
_: 1
|
|
916
|
+
}, 8, [
|
|
917
|
+
"width",
|
|
918
|
+
"supported-directions",
|
|
919
|
+
"class",
|
|
920
|
+
"style",
|
|
921
|
+
"onResize"
|
|
922
|
+
]),
|
|
923
|
+
createBaseVNode("div", {
|
|
924
|
+
class: normalizeClass([_ctx.$style.column, _ctx.$style.dataColumn]),
|
|
925
|
+
style: normalizeStyle({ width: `${unref(panelWidthPercentage).right}%` })
|
|
926
|
+
}, [createVNode(OutputPanel_default, {
|
|
927
|
+
"data-test-id": "output-panel",
|
|
928
|
+
"workflow-object": _ctx.workflowObject,
|
|
929
|
+
"can-link-runs": canLinkRuns.value,
|
|
930
|
+
"run-index": outputRun.value,
|
|
931
|
+
"linked-runs": linked.value,
|
|
932
|
+
"push-ref": pushRef.value,
|
|
933
|
+
"is-read-only": _ctx.readOnly || hasForeignCredential.value,
|
|
934
|
+
"block-u-i": blockUi.value && isTriggerNode.value && !isExecutableTriggerNode.value,
|
|
935
|
+
"is-production-execution-preview": _ctx.isProductionExecutionPreview,
|
|
936
|
+
"is-pane-active": isOutputPaneActive.value,
|
|
937
|
+
"display-mode": outputPanelDisplayMode.value,
|
|
938
|
+
class: normalizeClass(_ctx.$style.output),
|
|
939
|
+
onActivatePane: activateOutputPane,
|
|
940
|
+
onLinkRun: onLinkRunToOutput,
|
|
941
|
+
onUnlinkRun: _cache[2] || (_cache[2] = () => onUnlinkRun("output")),
|
|
942
|
+
onRunChange: onRunOutputIndexChange,
|
|
943
|
+
onOpenSettings: openSettings,
|
|
944
|
+
onTableMounted: onOutputTableMounted,
|
|
945
|
+
onItemHover: onOutputItemHover,
|
|
946
|
+
onSearch,
|
|
947
|
+
onExecute: onNodeExecute,
|
|
948
|
+
onDisplayModeChange: _cache[3] || (_cache[3] = ($event) => handleChangeDisplayMode("output", $event))
|
|
949
|
+
}, null, 8, [
|
|
950
|
+
"workflow-object",
|
|
951
|
+
"can-link-runs",
|
|
952
|
+
"run-index",
|
|
953
|
+
"linked-runs",
|
|
954
|
+
"push-ref",
|
|
955
|
+
"is-read-only",
|
|
956
|
+
"block-u-i",
|
|
957
|
+
"is-production-execution-preview",
|
|
958
|
+
"is-pane-active",
|
|
959
|
+
"display-mode",
|
|
960
|
+
"class"
|
|
961
|
+
])], 6)
|
|
962
|
+
], 2)], 2)], 6)], 8, ["to"])) : createCommentVNode("", true);
|
|
963
|
+
};
|
|
964
|
+
}
|
|
965
|
+
});
|
|
966
|
+
var NodeDetailsViewV2_vue_vue_type_style_index_0_lang_module_default = {
|
|
967
|
+
backdrop: "_backdrop_m8tra_123",
|
|
968
|
+
dialog: "_dialog_m8tra_133",
|
|
969
|
+
container: "_container_m8tra_148",
|
|
970
|
+
main: "_main_m8tra_159",
|
|
971
|
+
column: "_column_m8tra_169",
|
|
972
|
+
input: "_input_m8tra_182",
|
|
973
|
+
output: "_output_m8tra_183",
|
|
974
|
+
dataColumn: "_dataColumn_m8tra_187",
|
|
975
|
+
header: "_header_m8tra_191",
|
|
976
|
+
settings: "_settings_m8tra_198",
|
|
977
|
+
draggable: "_draggable_m8tra_203",
|
|
978
|
+
webhookWaiting: "_webhookWaiting_m8tra_212"
|
|
979
|
+
};
|
|
980
|
+
var NodeDetailsViewV2_default = /* @__PURE__ */ __plugin_vue_export_helper_default(NodeDetailsViewV2_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": NodeDetailsViewV2_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
981
|
+
export { NodeDetailsViewV2_default as default };
|