@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,1872 @@
|
|
|
1
|
+
import { o as __toESM } from "./chunk-6z4oVpB-.js";
|
|
2
|
+
import { C as computed, Cn as toDisplayString, D as createElementBlock, E as createCommentVNode, F as getCurrentInstance, G as nextTick, Gt as unref, It as ref, J as onBeforeUnmount, L as h, M as createVNode, P as defineComponent, Pt as reactive, T as createBlock, Ut as toValue, Z as onMounted, _ as Fragment, _t as watch, at as renderSlot, bn as normalizeStyle, bt as withCtx, et as openBlock, h as withModifiers, it as renderList, j as createTextVNode, mt as useTemplateRef, p as vShow, pt as useSlots, vn as normalizeClass, w as createBaseVNode, xt as withDirectives } from "./vue.runtime.esm-bundler-tP5dCd7J.js";
|
|
3
|
+
import { A as directiveHooks, F as notNullish, G as useThrottleFn, H as tryOnMounted, M as isIOS, N as isObject, P as noop, U as tryOnScopeDispose, V as toValue$1, W as useDebounceFn, Y as isVue2, b as useResizeObserver, it as I18nT, j as isClient, n as onClickOutside, p as useElementSize, rt as useI18n, z as toRef } from "./core-CRbPymLT.js";
|
|
4
|
+
import { Cn as N8nIcon_default, Ft as ElCollapseTransition, T as N8nRadioButtons_default, bn as N8nText_default, c as N8nInlineTextEdit_default, ht as N8nTooltip_default, k as N8nNotice_default, nt as N8nBlockUi_default, xn as N8nButton_default, xt as N8nIconButton_default, y as N8nTabs_default, yn as N8nCallout_default } from "./src-jviYSG25.js";
|
|
5
|
+
import { t as __plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BwBpWJRZ.js";
|
|
6
|
+
import { $i as importCurlEventBus, $n as ProjectTypes, Er as useUsersStore, Ft as useActionsGenerator, Kn as useNodeHelpers, N as useNDVStore, P as useWorkflowsStore, Pt as useNodeTypesStore, Yr as useHistoryStore, Yt as removePreviewToken, Zn as useProjectsStore, _n as useCredentialsStore, aa as useUIStore, ii as RenameNodeCommand, k as useTelemetry, ms as useSettingsStore, pa as COMMUNITY_PACKAGE_INSTALL_MODAL_KEY, qn as injectWorkflowState, ua as COMMUNITY_NODES_INSTALLATION_DOCS_URL, x as useExternalHooks, y as useToast, zn as useWorkflowHelpers } from "./builder.store-Czk2ipDE.js";
|
|
7
|
+
import { D as TitledList_default, E as useNodeCredentialOptions, T as NodeCredentials_default, d as collectParametersByTab, f as collectSettings, h as getNodeSettingsInitialValues, p as createCommonNodeSettings, t as ParameterInputList_default, u as useNodeSettingsParameters, v as nameIsParameter } from "./ParameterInputList-sG2nz-Jo.js";
|
|
8
|
+
import { n as ElRow, t as ElCol } from "./col-Cmt4cmuS.js";
|
|
9
|
+
import { _ as useRoute, t as require_get } from "./get-BcEmeOxn.js";
|
|
10
|
+
import { $i as getNodeParameters, Dn as MCP_TRIGGER_NODE_TYPE, F as CUSTOM_API_CALL_KEY, Gn as PRODUCTION_ONLY_TRIGGER_NODE_TYPES, Hn as OPEN_URL_PANEL_TRIGGER_NODE_TYPES, Jt as DATA_TABLE_NODES, Ro as VIEWS, Ta as isCommunityPackageName, Ua as NodeConnectionTypes, Zi as getNodeInputs, b as NPM_PACKAGE_DOCS_BASE_URL, co as OPEN_AI_API_CREDENTIAL_TYPE, d as CUSTOM_NODES_DOCS_URL, l as BUILTIN_NODES_DOCS_URL, s as BASE_NODE_SURVEY_URL, un as FORM_TRIGGER_NODE_TYPE, wa as deepCopy, zt as CHAT_TRIGGER_NODE_TYPE } from "./constants-C8OH4tTq.js";
|
|
11
|
+
import { t as useDebounce } from "./useDebounce-Br5_1ug-.js";
|
|
12
|
+
import { n as ndvEventBus } from "./assistant.store-CNywgN4S.js";
|
|
13
|
+
import { t as useNodeCreatorStore } from "./nodeCreator.store-Bpnrwp2l.js";
|
|
14
|
+
import { t as getNodeIconSource } from "./nodeIcon-D6X-ENYt.js";
|
|
15
|
+
import { t as useClipboard } from "./useClipboard-DvjhVHqJ.js";
|
|
16
|
+
import { t as NodeIcon_default } from "./NodeIcon-B9VW6tX6.js";
|
|
17
|
+
import { t as useDataTableStore } from "./dataTable.store-DmipQsol.js";
|
|
18
|
+
import { a as useInstallNode, i as useInstalledCommunityPackage, n as CommunityNodeFooter_default, r as ContactAdministratorToInstall_default, t as CommunityNodeUpdateInfo_default } from "./CommunityNodeUpdateInfo-C37kca4W.js";
|
|
19
|
+
import { n as NodeExecuteButton_default } from "./VirtualSchema-B3zGe_8b.js";
|
|
20
|
+
import { t as useActions } from "./useActions-B1JckIRj.js";
|
|
21
|
+
var _hoisted_1$6 = { key: 2 };
|
|
22
|
+
var LANGCHAIN_NODES_PREFIX = "@n8n/n8n-nodes-langchain.";
|
|
23
|
+
var N8N_NODES_PREFIX = "@n8n/n8n-nodes.";
|
|
24
|
+
var FreeAiCreditsCallout_default = /* @__PURE__ */ defineComponent({
|
|
25
|
+
__name: "FreeAiCreditsCallout",
|
|
26
|
+
props: { credentialTypeName: {} },
|
|
27
|
+
setup(__props) {
|
|
28
|
+
const props = __props;
|
|
29
|
+
const NODES_WITH_OPEN_AI_API_CREDENTIAL = [
|
|
30
|
+
`${LANGCHAIN_NODES_PREFIX}openAi`,
|
|
31
|
+
`${LANGCHAIN_NODES_PREFIX}embeddingsOpenAi`,
|
|
32
|
+
`${LANGCHAIN_NODES_PREFIX}lmChatOpenAi`,
|
|
33
|
+
`${N8N_NODES_PREFIX}openAi`
|
|
34
|
+
];
|
|
35
|
+
const showSuccessCallout = ref(false);
|
|
36
|
+
const claimingCredits = ref(false);
|
|
37
|
+
const settingsStore = useSettingsStore();
|
|
38
|
+
const credentialsStore = useCredentialsStore();
|
|
39
|
+
const usersStore = useUsersStore();
|
|
40
|
+
const ndvStore = useNDVStore();
|
|
41
|
+
const projectsStore = useProjectsStore();
|
|
42
|
+
const telemetry = useTelemetry();
|
|
43
|
+
const i18n = useI18n();
|
|
44
|
+
const toast = useToast();
|
|
45
|
+
const userHasOpenAiCredentialAlready = computed(() => !!credentialsStore.allCredentials.filter((credential) => credential.type === OPEN_AI_API_CREDENTIAL_TYPE).length);
|
|
46
|
+
const isEditingOpenAiCredential = computed(() => props.credentialTypeName && props.credentialTypeName === "openAiApi");
|
|
47
|
+
const userHasClaimedAiCreditsAlready = computed(() => !!usersStore.currentUser?.settings?.userClaimedAiCredits);
|
|
48
|
+
const activeNodeHasOpenAiApiCredential = computed(() => ndvStore.activeNode?.type && NODES_WITH_OPEN_AI_API_CREDENTIAL.includes(ndvStore.activeNode.type));
|
|
49
|
+
const userCanClaimOpenAiCredits = computed(() => {
|
|
50
|
+
return settingsStore.isAiCreditsEnabled && (activeNodeHasOpenAiApiCredential.value || isEditingOpenAiCredential.value) && !userHasOpenAiCredentialAlready.value && !userHasClaimedAiCreditsAlready.value;
|
|
51
|
+
});
|
|
52
|
+
const onClaimCreditsClicked = async () => {
|
|
53
|
+
claimingCredits.value = true;
|
|
54
|
+
try {
|
|
55
|
+
await credentialsStore.claimFreeAiCredits(projectsStore.currentProject?.id);
|
|
56
|
+
if (usersStore?.currentUser?.settings) usersStore.currentUser.settings.userClaimedAiCredits = true;
|
|
57
|
+
telemetry.track("User claimed OpenAI credits");
|
|
58
|
+
showSuccessCallout.value = true;
|
|
59
|
+
} catch (e) {
|
|
60
|
+
toast.showError(e, i18n.baseText("freeAi.credits.showError.claim.title"), i18n.baseText("freeAi.credits.showError.claim.message"));
|
|
61
|
+
} finally {
|
|
62
|
+
claimingCredits.value = false;
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
return (_ctx, _cache) => {
|
|
66
|
+
return userCanClaimOpenAiCredits.value && !showSuccessCallout.value ? (openBlock(), createBlock(unref(N8nCallout_default), {
|
|
67
|
+
key: 0,
|
|
68
|
+
theme: "secondary",
|
|
69
|
+
icon: "circle-alert",
|
|
70
|
+
class: "mt-xs"
|
|
71
|
+
}, {
|
|
72
|
+
trailingContent: withCtx(() => [createVNode(unref(N8nButton_default), {
|
|
73
|
+
type: "tertiary",
|
|
74
|
+
size: "small",
|
|
75
|
+
label: unref(i18n).baseText("freeAi.credits.callout.claim.button.label"),
|
|
76
|
+
loading: claimingCredits.value,
|
|
77
|
+
onClick: onClaimCreditsClicked
|
|
78
|
+
}, null, 8, ["label", "loading"])]),
|
|
79
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(i18n).baseText("freeAi.credits.callout.claim.title", { interpolate: { credits: unref(settingsStore).aiCreditsQuota } })) + " ", 1)]),
|
|
80
|
+
_: 1
|
|
81
|
+
})) : showSuccessCallout.value ? (openBlock(), createBlock(unref(N8nCallout_default), {
|
|
82
|
+
key: 1,
|
|
83
|
+
theme: "success",
|
|
84
|
+
icon: "circle-check",
|
|
85
|
+
class: "mt-xs"
|
|
86
|
+
}, {
|
|
87
|
+
default: withCtx(() => [
|
|
88
|
+
createVNode(unref(N8nText_default), { size: "small" }, {
|
|
89
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(i18n).baseText("freeAi.credits.callout.success.title.part1", { interpolate: { credits: unref(settingsStore).aiCreditsQuota } })), 1)]),
|
|
90
|
+
_: 1
|
|
91
|
+
}),
|
|
92
|
+
_cache[0] || (_cache[0] = createTextVNode(" \xA0 ")),
|
|
93
|
+
createVNode(unref(N8nText_default), {
|
|
94
|
+
size: "small",
|
|
95
|
+
bold: true
|
|
96
|
+
}, {
|
|
97
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(i18n).baseText("freeAi.credits.callout.success.title.part2")), 1)]),
|
|
98
|
+
_: 1
|
|
99
|
+
})
|
|
100
|
+
]),
|
|
101
|
+
_: 1
|
|
102
|
+
})) : (openBlock(), createElementBlock("div", _hoisted_1$6));
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
var OnClickOutside = /* @__PURE__ */ defineComponent({
|
|
107
|
+
name: "OnClickOutside",
|
|
108
|
+
props: ["as", "options"],
|
|
109
|
+
emits: ["trigger"],
|
|
110
|
+
setup(props, { slots, emit }) {
|
|
111
|
+
const target = ref();
|
|
112
|
+
onClickOutside(target, (e) => {
|
|
113
|
+
emit("trigger", e);
|
|
114
|
+
}, props.options);
|
|
115
|
+
return () => {
|
|
116
|
+
if (slots.default) return h(props.as || "div", { ref: target }, slots.default());
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
function unrefElement(elRef) {
|
|
121
|
+
var _a;
|
|
122
|
+
const plain = toValue$1(elRef);
|
|
123
|
+
return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain;
|
|
124
|
+
}
|
|
125
|
+
var defaultWindow = isClient ? window : void 0;
|
|
126
|
+
function useEventListener(...args) {
|
|
127
|
+
let target;
|
|
128
|
+
let events;
|
|
129
|
+
let listeners;
|
|
130
|
+
let options;
|
|
131
|
+
if (typeof args[0] === "string" || Array.isArray(args[0])) {
|
|
132
|
+
[events, listeners, options] = args;
|
|
133
|
+
target = defaultWindow;
|
|
134
|
+
} else [target, events, listeners, options] = args;
|
|
135
|
+
if (!target) return noop;
|
|
136
|
+
if (!Array.isArray(events)) events = [events];
|
|
137
|
+
if (!Array.isArray(listeners)) listeners = [listeners];
|
|
138
|
+
const cleanups = [];
|
|
139
|
+
const cleanup = () => {
|
|
140
|
+
cleanups.forEach((fn) => fn());
|
|
141
|
+
cleanups.length = 0;
|
|
142
|
+
};
|
|
143
|
+
const register = (el, event, listener, options2) => {
|
|
144
|
+
el.addEventListener(event, listener, options2);
|
|
145
|
+
return () => el.removeEventListener(event, listener, options2);
|
|
146
|
+
};
|
|
147
|
+
const stopWatch = watch(() => [unrefElement(target), toValue$1(options)], ([el, options2]) => {
|
|
148
|
+
cleanup();
|
|
149
|
+
if (!el) return;
|
|
150
|
+
const optionsClone = isObject(options2) ? { ...options2 } : options2;
|
|
151
|
+
cleanups.push(...events.flatMap((event) => {
|
|
152
|
+
return listeners.map((listener) => register(el, event, listener, optionsClone));
|
|
153
|
+
}));
|
|
154
|
+
}, {
|
|
155
|
+
immediate: true,
|
|
156
|
+
flush: "post"
|
|
157
|
+
});
|
|
158
|
+
const stop = () => {
|
|
159
|
+
stopWatch();
|
|
160
|
+
cleanup();
|
|
161
|
+
};
|
|
162
|
+
tryOnScopeDispose(stop);
|
|
163
|
+
return stop;
|
|
164
|
+
}
|
|
165
|
+
directiveHooks.mounted, directiveHooks.unmounted;
|
|
166
|
+
directiveHooks.mounted;
|
|
167
|
+
directiveHooks.mounted;
|
|
168
|
+
directiveHooks.mounted;
|
|
169
|
+
directiveHooks.mounted;
|
|
170
|
+
directiveHooks.mounted;
|
|
171
|
+
function resolveElement(el) {
|
|
172
|
+
if (typeof Window !== "undefined" && el instanceof Window) return el.document.documentElement;
|
|
173
|
+
if (typeof Document !== "undefined" && el instanceof Document) return el.documentElement;
|
|
174
|
+
return el;
|
|
175
|
+
}
|
|
176
|
+
directiveHooks.mounted;
|
|
177
|
+
directiveHooks.mounted;
|
|
178
|
+
directiveHooks.mounted;
|
|
179
|
+
function checkOverflowScroll(ele) {
|
|
180
|
+
const style = window.getComputedStyle(ele);
|
|
181
|
+
if (style.overflowX === "scroll" || style.overflowY === "scroll" || style.overflowX === "auto" && ele.clientWidth < ele.scrollWidth || style.overflowY === "auto" && ele.clientHeight < ele.scrollHeight) return true;
|
|
182
|
+
else {
|
|
183
|
+
const parent = ele.parentNode;
|
|
184
|
+
if (!parent || parent.tagName === "BODY") return false;
|
|
185
|
+
return checkOverflowScroll(parent);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
function preventDefault(rawEvent) {
|
|
189
|
+
const e = rawEvent || window.event;
|
|
190
|
+
const _target = e.target;
|
|
191
|
+
if (checkOverflowScroll(_target)) return false;
|
|
192
|
+
if (e.touches.length > 1) return true;
|
|
193
|
+
if (e.preventDefault) e.preventDefault();
|
|
194
|
+
return false;
|
|
195
|
+
}
|
|
196
|
+
var elInitialOverflow = /* @__PURE__ */ new WeakMap();
|
|
197
|
+
function useScrollLock(element, initialState = false) {
|
|
198
|
+
const isLocked = ref(initialState);
|
|
199
|
+
let stopTouchMoveListener = null;
|
|
200
|
+
let initialOverflow = "";
|
|
201
|
+
watch(toRef(element), (el) => {
|
|
202
|
+
const target = resolveElement(toValue$1(el));
|
|
203
|
+
if (target) {
|
|
204
|
+
const ele = target;
|
|
205
|
+
if (!elInitialOverflow.get(ele)) elInitialOverflow.set(ele, ele.style.overflow);
|
|
206
|
+
if (ele.style.overflow !== "hidden") initialOverflow = ele.style.overflow;
|
|
207
|
+
if (ele.style.overflow === "hidden") return isLocked.value = true;
|
|
208
|
+
if (isLocked.value) return ele.style.overflow = "hidden";
|
|
209
|
+
}
|
|
210
|
+
}, { immediate: true });
|
|
211
|
+
const lock = () => {
|
|
212
|
+
const el = resolveElement(toValue$1(element));
|
|
213
|
+
if (!el || isLocked.value) return;
|
|
214
|
+
if (isIOS) stopTouchMoveListener = useEventListener(el, "touchmove", (e) => {
|
|
215
|
+
preventDefault(e);
|
|
216
|
+
}, { passive: false });
|
|
217
|
+
el.style.overflow = "hidden";
|
|
218
|
+
isLocked.value = true;
|
|
219
|
+
};
|
|
220
|
+
const unlock = () => {
|
|
221
|
+
const el = resolveElement(toValue$1(element));
|
|
222
|
+
if (!el || !isLocked.value) return;
|
|
223
|
+
isIOS && stopTouchMoveListener?.();
|
|
224
|
+
el.style.overflow = initialOverflow;
|
|
225
|
+
elInitialOverflow.delete(el);
|
|
226
|
+
isLocked.value = false;
|
|
227
|
+
};
|
|
228
|
+
tryOnScopeDispose(unlock);
|
|
229
|
+
return computed({
|
|
230
|
+
get() {
|
|
231
|
+
return isLocked.value;
|
|
232
|
+
},
|
|
233
|
+
set(v) {
|
|
234
|
+
if (v) lock();
|
|
235
|
+
else unlock();
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
function onScrollLock() {
|
|
240
|
+
let isMounted = false;
|
|
241
|
+
const state = ref(false);
|
|
242
|
+
return (el, binding) => {
|
|
243
|
+
state.value = binding.value;
|
|
244
|
+
if (isMounted) return;
|
|
245
|
+
isMounted = true;
|
|
246
|
+
const isLocked = useScrollLock(el, binding.value);
|
|
247
|
+
watch(state, (v) => isLocked.value = v);
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
onScrollLock();
|
|
251
|
+
var _hoisted_1$5 = ["data-test-id"];
|
|
252
|
+
var _hoisted_2$4 = ["textContent"];
|
|
253
|
+
var _hoisted_3$2 = ["onClick"];
|
|
254
|
+
var _hoisted_4$2 = ["onClick"];
|
|
255
|
+
var _hoisted_5$2 = ["data-node-name"];
|
|
256
|
+
var _hoisted_6$1 = ["onClick"];
|
|
257
|
+
var NDVSubConnections_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
258
|
+
__name: "NDVSubConnections",
|
|
259
|
+
props: { rootNode: {} },
|
|
260
|
+
emits: ["switchSelectedNode", "openConnectionNodeCreator"],
|
|
261
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
262
|
+
const props = __props;
|
|
263
|
+
const workflowsStore = useWorkflowsStore();
|
|
264
|
+
const nodeTypesStore = useNodeTypesStore();
|
|
265
|
+
const nodeHelpers = useNodeHelpers();
|
|
266
|
+
const i18n = useI18n();
|
|
267
|
+
const { debounce } = useDebounce();
|
|
268
|
+
const emit = __emit;
|
|
269
|
+
const possibleConnections = ref([]);
|
|
270
|
+
const expandedGroups = ref([]);
|
|
271
|
+
const shouldShowNodeInputIssues = ref(false);
|
|
272
|
+
const nodeType = computed(() => nodeTypesStore.getNodeType(props.rootNode.type, props.rootNode.typeVersion));
|
|
273
|
+
const nodeData = computed(() => workflowsStore.getNodeByName(props.rootNode.name));
|
|
274
|
+
const ndvStore = useNDVStore();
|
|
275
|
+
const workflowObject = computed(() => workflowsStore.workflowObject);
|
|
276
|
+
const nodeInputIssues = computed(() => {
|
|
277
|
+
return nodeHelpers.getNodeIssues(nodeType.value, props.rootNode, workflowObject.value, [
|
|
278
|
+
"typeUnknown",
|
|
279
|
+
"parameters",
|
|
280
|
+
"credentials",
|
|
281
|
+
"execution"
|
|
282
|
+
])?.input ?? {};
|
|
283
|
+
});
|
|
284
|
+
const connectedNodes$1 = computed(() => {
|
|
285
|
+
const typeIndexCounters = {};
|
|
286
|
+
return possibleConnections.value.reduce((acc, connection) => {
|
|
287
|
+
const typeIndex = typeIndexCounters[connection.type] ?? 0;
|
|
288
|
+
typeIndexCounters[connection.type] = typeIndex + 1;
|
|
289
|
+
const nodes = getINodesFromNames(((workflowObject.value.connectionsByDestinationNode[props.rootNode.name]?.[connection.type] ?? [])[typeIndex] ?? []).map((conn) => conn.node));
|
|
290
|
+
const connectionKey = `${connection.type}-${typeIndex}`;
|
|
291
|
+
return {
|
|
292
|
+
...acc,
|
|
293
|
+
[connectionKey]: nodes
|
|
294
|
+
};
|
|
295
|
+
}, {});
|
|
296
|
+
});
|
|
297
|
+
function getConnectionContext(connection, globalIndex) {
|
|
298
|
+
let typeIndex = 0;
|
|
299
|
+
for (let i = 0; i < globalIndex; i++) if (possibleConnections.value[i].type === connection.type) typeIndex++;
|
|
300
|
+
return {
|
|
301
|
+
connectionType: connection.type,
|
|
302
|
+
typeIndex,
|
|
303
|
+
key: `${connection.type}-${typeIndex}`
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
function getConnectionKey(connection, globalIndex) {
|
|
307
|
+
return getConnectionContext(connection, globalIndex).key;
|
|
308
|
+
}
|
|
309
|
+
function getConnectionConfig(connectionType$1, typeIndex) {
|
|
310
|
+
return possibleConnections.value.filter((connection) => connection.type === connectionType$1).at(typeIndex);
|
|
311
|
+
}
|
|
312
|
+
function isMultiConnection(connectionContext) {
|
|
313
|
+
return getConnectionConfig(connectionContext.connectionType, connectionContext.typeIndex)?.maxConnections !== 1;
|
|
314
|
+
}
|
|
315
|
+
function shouldShowConnectionTooltip(connectionContext) {
|
|
316
|
+
return isMultiConnection(connectionContext) && !expandedGroups.value.includes(connectionContext.connectionType);
|
|
317
|
+
}
|
|
318
|
+
function expandConnectionGroup(connectionContext, isExpanded) {
|
|
319
|
+
if (!isMultiConnection(connectionContext)) return;
|
|
320
|
+
if (isExpanded) expandedGroups.value = [...expandedGroups.value, connectionContext.connectionType];
|
|
321
|
+
else expandedGroups.value = expandedGroups.value.filter((g) => g !== connectionContext.connectionType);
|
|
322
|
+
}
|
|
323
|
+
function getINodesFromNames(names) {
|
|
324
|
+
return names.map((name) => {
|
|
325
|
+
const node = workflowsStore.getNodeByName(name);
|
|
326
|
+
if (node) {
|
|
327
|
+
const matchedNodeType = nodeTypesStore.getNodeType(node.type);
|
|
328
|
+
if (matchedNodeType) {
|
|
329
|
+
const issues = nodeHelpers.getNodeIssues(matchedNodeType, node, workflowObject.value);
|
|
330
|
+
return {
|
|
331
|
+
node,
|
|
332
|
+
nodeType: matchedNodeType,
|
|
333
|
+
issues: issues ? nodeHelpers.nodeIssuesToString(issues, node) : ""
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
return null;
|
|
338
|
+
}).filter((n) => n !== null);
|
|
339
|
+
}
|
|
340
|
+
function hasInputIssues(connectionContext) {
|
|
341
|
+
return shouldShowNodeInputIssues.value && (nodeInputIssues.value[connectionContext.connectionType] ?? []).length > 0;
|
|
342
|
+
}
|
|
343
|
+
function isNodeInputConfiguration(connectionConfig) {
|
|
344
|
+
if (typeof connectionConfig === "string") return false;
|
|
345
|
+
return "type" in connectionConfig;
|
|
346
|
+
}
|
|
347
|
+
function getPossibleSubInputConnections() {
|
|
348
|
+
if (!nodeType.value || !props.rootNode) return [];
|
|
349
|
+
return getNodeInputs(workflowObject.value, props.rootNode, nodeType.value).filter((input) => {
|
|
350
|
+
if (!isNodeInputConfiguration(input)) return false;
|
|
351
|
+
return input.type !== "main";
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
function onNodeClick(nodeName, connectionContext) {
|
|
355
|
+
if (isMultiConnection(connectionContext) && !expandedGroups.value.includes(connectionContext.connectionType)) {
|
|
356
|
+
expandConnectionGroup(connectionContext, true);
|
|
357
|
+
return;
|
|
358
|
+
}
|
|
359
|
+
emit("switchSelectedNode", nodeName);
|
|
360
|
+
}
|
|
361
|
+
function onPlusClick(connectionContext) {
|
|
362
|
+
const connectionNodes = connectedNodes$1.value[connectionContext.key];
|
|
363
|
+
if (isMultiConnection(connectionContext) && !expandedGroups.value.includes(connectionContext.connectionType) && connectionNodes.length >= 1) {
|
|
364
|
+
expandConnectionGroup(connectionContext, true);
|
|
365
|
+
return;
|
|
366
|
+
}
|
|
367
|
+
emit("openConnectionNodeCreator", props.rootNode.name, connectionContext.connectionType, connectionContext.typeIndex);
|
|
368
|
+
}
|
|
369
|
+
function showNodeInputsIssues() {
|
|
370
|
+
shouldShowNodeInputIssues.value = false;
|
|
371
|
+
setTimeout(() => {
|
|
372
|
+
shouldShowNodeInputIssues.value = true;
|
|
373
|
+
}, 0);
|
|
374
|
+
}
|
|
375
|
+
watch([nodeData, ndvStore.activeNode], debounce(() => setTimeout(() => {
|
|
376
|
+
expandedGroups.value = [];
|
|
377
|
+
possibleConnections.value = getPossibleSubInputConnections();
|
|
378
|
+
}, 0), { debounceTime: 1e3 }), { immediate: true });
|
|
379
|
+
__expose({ showNodeInputsIssues });
|
|
380
|
+
return (_ctx, _cache) => {
|
|
381
|
+
return possibleConnections.value.length ? (openBlock(), createElementBlock("div", {
|
|
382
|
+
key: 0,
|
|
383
|
+
class: normalizeClass(_ctx.$style.container)
|
|
384
|
+
}, [createBaseVNode("div", {
|
|
385
|
+
class: normalizeClass(_ctx.$style.connections),
|
|
386
|
+
style: normalizeStyle(`--possible-connections: ${possibleConnections.value.length}`)
|
|
387
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(possibleConnections.value, (connection, index) => {
|
|
388
|
+
return openBlock(), createElementBlock("div", {
|
|
389
|
+
key: getConnectionKey(connection, index),
|
|
390
|
+
"data-test-id": `subnode-connection-group-${getConnectionKey(connection, index)}`
|
|
391
|
+
}, [createBaseVNode("div", { class: normalizeClass(_ctx.$style.connectionType) }, [createBaseVNode("span", {
|
|
392
|
+
class: normalizeClass({
|
|
393
|
+
[_ctx.$style.connectionLabel]: true,
|
|
394
|
+
[_ctx.$style.hasIssues]: hasInputIssues(getConnectionContext(connection, index))
|
|
395
|
+
}),
|
|
396
|
+
textContent: toDisplayString(`${connection.displayName}${connection.required ? " *" : ""}`)
|
|
397
|
+
}, null, 10, _hoisted_2$4), createVNode(unref(OnClickOutside), { onTrigger: ($event) => expandConnectionGroup(getConnectionContext(connection, index), false) }, {
|
|
398
|
+
default: withCtx(() => [createBaseVNode("div", {
|
|
399
|
+
ref_for: true,
|
|
400
|
+
ref: "connectedNodesWrapper",
|
|
401
|
+
class: normalizeClass({
|
|
402
|
+
[_ctx.$style.connectedNodesWrapper]: true,
|
|
403
|
+
[_ctx.$style.connectedNodesWrapperExpanded]: expandedGroups.value.includes(connection.type)
|
|
404
|
+
}),
|
|
405
|
+
style: normalizeStyle(`--nodes-length: ${connectedNodes$1.value[getConnectionKey(connection, index)].length}`),
|
|
406
|
+
onClick: ($event) => expandConnectionGroup(getConnectionContext(connection, index), true)
|
|
407
|
+
}, [(connectedNodes$1.value[getConnectionKey(connection, index)].length >= 1 ? connection.maxConnections !== 1 : true) ? (openBlock(), createElementBlock("div", {
|
|
408
|
+
key: 0,
|
|
409
|
+
class: normalizeClass({
|
|
410
|
+
[_ctx.$style.plusButton]: true,
|
|
411
|
+
[_ctx.$style.hasIssues]: hasInputIssues(getConnectionContext(connection, index))
|
|
412
|
+
}),
|
|
413
|
+
onClick: ($event) => onPlusClick(getConnectionContext(connection, index))
|
|
414
|
+
}, [createVNode(unref(N8nTooltip_default), {
|
|
415
|
+
placement: "top",
|
|
416
|
+
teleported: true,
|
|
417
|
+
offset: 10,
|
|
418
|
+
"show-after": 300,
|
|
419
|
+
disabled: shouldShowConnectionTooltip(getConnectionContext(connection, index)) && connectedNodes$1.value[getConnectionKey(connection, index)].length >= 1
|
|
420
|
+
}, {
|
|
421
|
+
content: withCtx(() => [createTextVNode(" Add " + toDisplayString(connection.displayName) + " ", 1), hasInputIssues(getConnectionContext(connection, index)) ? (openBlock(), createBlock(TitledList_default, {
|
|
422
|
+
key: 0,
|
|
423
|
+
title: `${unref(i18n).baseText("node.issues")}:`,
|
|
424
|
+
items: nodeInputIssues.value[connection.type]
|
|
425
|
+
}, null, 8, ["title", "items"])) : createCommentVNode("", true)]),
|
|
426
|
+
default: withCtx(() => [createVNode(unref(N8nIconButton_default), {
|
|
427
|
+
size: "medium",
|
|
428
|
+
icon: "plus",
|
|
429
|
+
type: "tertiary",
|
|
430
|
+
"data-test-id": `add-subnode-${getConnectionKey(connection, index)}`
|
|
431
|
+
}, null, 8, ["data-test-id"])]),
|
|
432
|
+
_: 2
|
|
433
|
+
}, 1032, ["disabled"])], 10, _hoisted_4$2)) : createCommentVNode("", true), connectedNodes$1.value[getConnectionKey(connection, index)].length > 0 ? (openBlock(), createElementBlock("div", {
|
|
434
|
+
key: 1,
|
|
435
|
+
class: normalizeClass({
|
|
436
|
+
[_ctx.$style.connectedNodes]: true,
|
|
437
|
+
[_ctx.$style.connectedNodesMultiple]: connectedNodes$1.value[getConnectionKey(connection, index)].length > 1
|
|
438
|
+
})
|
|
439
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(connectedNodes$1.value[getConnectionKey(connection, index)], (node, nodeIndex) => {
|
|
440
|
+
return openBlock(), createElementBlock("div", {
|
|
441
|
+
key: node.node.name,
|
|
442
|
+
class: normalizeClass({
|
|
443
|
+
[_ctx.$style.nodeWrapper]: true,
|
|
444
|
+
[_ctx.$style.hasIssues]: node.issues
|
|
445
|
+
}),
|
|
446
|
+
"data-test-id": "floating-subnode",
|
|
447
|
+
"data-node-name": node.node.name,
|
|
448
|
+
style: normalizeStyle(`--node-index: ${nodeIndex}`)
|
|
449
|
+
}, [(openBlock(), createBlock(unref(N8nTooltip_default), {
|
|
450
|
+
key: node.node.name,
|
|
451
|
+
placement: "top",
|
|
452
|
+
teleported: true,
|
|
453
|
+
offset: 10,
|
|
454
|
+
"show-after": 300,
|
|
455
|
+
disabled: shouldShowConnectionTooltip(getConnectionContext(connection, index))
|
|
456
|
+
}, {
|
|
457
|
+
content: withCtx(() => [createTextVNode(toDisplayString(node.node.name) + " ", 1), node.issues ? (openBlock(), createBlock(TitledList_default, {
|
|
458
|
+
key: 0,
|
|
459
|
+
title: `${unref(i18n).baseText("node.issues")}:`,
|
|
460
|
+
items: node.issues
|
|
461
|
+
}, null, 8, ["title", "items"])) : createCommentVNode("", true)]),
|
|
462
|
+
default: withCtx(() => [createBaseVNode("div", {
|
|
463
|
+
class: normalizeClass(_ctx.$style.connectedNode),
|
|
464
|
+
onClick: ($event) => onNodeClick(node.node.name, getConnectionContext(connection, index))
|
|
465
|
+
}, [createVNode(NodeIcon_default, {
|
|
466
|
+
"node-type": node.nodeType,
|
|
467
|
+
"node-name": node.node.name,
|
|
468
|
+
"tooltip-position": "top",
|
|
469
|
+
size: 20,
|
|
470
|
+
circle: ""
|
|
471
|
+
}, null, 8, ["node-type", "node-name"])], 10, _hoisted_6$1)]),
|
|
472
|
+
_: 2
|
|
473
|
+
}, 1032, ["disabled"]))], 14, _hoisted_5$2);
|
|
474
|
+
}), 128))], 2)) : createCommentVNode("", true)], 14, _hoisted_3$2)]),
|
|
475
|
+
_: 2
|
|
476
|
+
}, 1032, ["onTrigger"])], 2)], 8, _hoisted_1$5);
|
|
477
|
+
}), 128))], 6)], 2)) : createCommentVNode("", true);
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
});
|
|
481
|
+
const container$1 = "_container_1kr6k_140";
|
|
482
|
+
const connections = "_connections_1kr6k_148";
|
|
483
|
+
const connectionType = "_connectionType_1kr6k_161";
|
|
484
|
+
const connectionLabel = "_connectionLabel_1kr6k_168";
|
|
485
|
+
const hasIssues = "_hasIssues_1kr6k_174";
|
|
486
|
+
const connectedNodesWrapper = "_connectedNodesWrapper_1kr6k_178";
|
|
487
|
+
const plusButton = "_plusButton_1kr6k_186";
|
|
488
|
+
const connectedNodesWrapperExpanded = "_connectedNodesWrapperExpanded_1kr6k_204";
|
|
489
|
+
const connectedNodesMultiple = "_connectedNodesMultiple_1kr6k_210";
|
|
490
|
+
const connectedNode = "_connectedNode_1kr6k_178";
|
|
491
|
+
const connectedNodes = "_connectedNodes_1kr6k_178";
|
|
492
|
+
const nodeWrapper = "_nodeWrapper_1kr6k_249";
|
|
493
|
+
var NDVSubConnections_vue_vue_type_style_index_0_lang_module_default = {
|
|
494
|
+
container: container$1,
|
|
495
|
+
connections,
|
|
496
|
+
connectionType,
|
|
497
|
+
connectionLabel,
|
|
498
|
+
hasIssues,
|
|
499
|
+
connectedNodesWrapper,
|
|
500
|
+
plusButton,
|
|
501
|
+
"horizontal-shake": "_horizontal-shake_1kr6k_1",
|
|
502
|
+
connectedNodesWrapperExpanded,
|
|
503
|
+
connectedNodesMultiple,
|
|
504
|
+
connectedNode,
|
|
505
|
+
connectedNodes,
|
|
506
|
+
nodeWrapper
|
|
507
|
+
};
|
|
508
|
+
var NDVSubConnections_default = /* @__PURE__ */ __plugin_vue_export_helper_default(NDVSubConnections_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": NDVSubConnections_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
509
|
+
const useNodeDocsUrl = ({ nodeType: nodeTypeRef }) => {
|
|
510
|
+
const packageName = computed(() => toValue(nodeTypeRef)?.name.split(".")[0] ?? "");
|
|
511
|
+
const isCommunityNode = computed(() => {
|
|
512
|
+
const nodeType = toValue(nodeTypeRef);
|
|
513
|
+
if (nodeType) return isCommunityPackageName(nodeType.name);
|
|
514
|
+
return false;
|
|
515
|
+
});
|
|
516
|
+
return { docsUrl: computed(() => {
|
|
517
|
+
const nodeType = toValue(nodeTypeRef);
|
|
518
|
+
if (!nodeType) return "";
|
|
519
|
+
if (nodeType.documentationUrl?.startsWith("http")) return nodeType.documentationUrl;
|
|
520
|
+
const utmParams = new URLSearchParams({
|
|
521
|
+
utm_source: "n8n_app",
|
|
522
|
+
utm_medium: "node_settings_modal-credential_link",
|
|
523
|
+
utm_campaign: nodeType.name
|
|
524
|
+
});
|
|
525
|
+
const primaryDocUrl = nodeType.codex?.resources?.primaryDocumentation?.[0]?.url;
|
|
526
|
+
if (primaryDocUrl) return `${primaryDocUrl}?${utmParams.toString()}`;
|
|
527
|
+
if (isCommunityNode.value) return `${NPM_PACKAGE_DOCS_BASE_URL}${packageName.value}`;
|
|
528
|
+
return `${BUILTIN_NODES_DOCS_URL}?${utmParams.toString()}`;
|
|
529
|
+
}) };
|
|
530
|
+
};
|
|
531
|
+
var NodeSettingsTabs_default = /* @__PURE__ */ defineComponent({
|
|
532
|
+
__name: "NodeSettingsTabs",
|
|
533
|
+
props: {
|
|
534
|
+
modelValue: { default: "params" },
|
|
535
|
+
nodeType: { default: void 0 },
|
|
536
|
+
pushRef: { default: "" },
|
|
537
|
+
hideDocs: { type: Boolean },
|
|
538
|
+
tabsVariant: { default: void 0 },
|
|
539
|
+
includeAction: { type: Boolean },
|
|
540
|
+
includeCredential: { type: Boolean },
|
|
541
|
+
hasCredentialIssue: {
|
|
542
|
+
type: Boolean,
|
|
543
|
+
default: false
|
|
544
|
+
},
|
|
545
|
+
compact: { type: Boolean }
|
|
546
|
+
},
|
|
547
|
+
emits: ["update:model-value"],
|
|
548
|
+
setup(__props, { emit: __emit }) {
|
|
549
|
+
const props = __props;
|
|
550
|
+
const emit = __emit;
|
|
551
|
+
const externalHooks = useExternalHooks();
|
|
552
|
+
const ndvStore = useNDVStore();
|
|
553
|
+
const workflowsStore = useWorkflowsStore();
|
|
554
|
+
const i18n = useI18n();
|
|
555
|
+
const telemetry = useTelemetry();
|
|
556
|
+
const { docsUrl } = useNodeDocsUrl({ nodeType: () => props.nodeType });
|
|
557
|
+
const activeNode = computed(() => ndvStore.activeNode);
|
|
558
|
+
const { installedPackage, isCommunityNode, isUpdateCheckAvailable } = useInstalledCommunityPackage(computed(() => props.nodeType?.name));
|
|
559
|
+
const packageName = computed(() => props.nodeType?.name.split(".")[0] ?? "");
|
|
560
|
+
const documentationUrl = computed(() => {
|
|
561
|
+
if (props.hideDocs) return "";
|
|
562
|
+
return docsUrl.value;
|
|
563
|
+
});
|
|
564
|
+
const options = computed(() => {
|
|
565
|
+
const ret = [];
|
|
566
|
+
if (props.includeAction) ret.push({
|
|
567
|
+
label: i18n.baseText("nodeSettings.action"),
|
|
568
|
+
value: "action"
|
|
569
|
+
});
|
|
570
|
+
if (props.includeCredential) ret.push({
|
|
571
|
+
label: i18n.baseText("nodeSettings.credential"),
|
|
572
|
+
value: "credential",
|
|
573
|
+
...props.hasCredentialIssue && {
|
|
574
|
+
icon: "triangle-alert",
|
|
575
|
+
iconPosition: "right",
|
|
576
|
+
variant: "danger"
|
|
577
|
+
}
|
|
578
|
+
});
|
|
579
|
+
ret.push({
|
|
580
|
+
label: i18n.baseText(props.compact ? "nodeSettings.parametersShort" : "nodeSettings.parameters"),
|
|
581
|
+
value: "params"
|
|
582
|
+
}, {
|
|
583
|
+
value: "settings",
|
|
584
|
+
notification: isUpdateCheckAvailable.value && installedPackage.value?.updateAvailable ? true : void 0,
|
|
585
|
+
...props.compact ? {
|
|
586
|
+
icon: "settings",
|
|
587
|
+
align: "right",
|
|
588
|
+
tooltip: i18n.baseText("nodeSettings.settings")
|
|
589
|
+
} : { label: i18n.baseText("nodeSettings.settings") }
|
|
590
|
+
});
|
|
591
|
+
if (isCommunityNode.value) ret.push({
|
|
592
|
+
icon: "box",
|
|
593
|
+
value: "communityNode",
|
|
594
|
+
align: "right",
|
|
595
|
+
tooltip: i18n.baseText("generic.communityNode.tooltip", { interpolate: {
|
|
596
|
+
docUrl: COMMUNITY_NODES_INSTALLATION_DOCS_URL,
|
|
597
|
+
packageName: packageName.value
|
|
598
|
+
} })
|
|
599
|
+
});
|
|
600
|
+
if (documentationUrl.value) ret.push({
|
|
601
|
+
value: "docs",
|
|
602
|
+
href: documentationUrl.value,
|
|
603
|
+
align: "right",
|
|
604
|
+
...props.compact ? {
|
|
605
|
+
icon: "book-open",
|
|
606
|
+
tooltip: i18n.baseText("nodeSettings.docs")
|
|
607
|
+
} : { label: i18n.baseText("nodeSettings.docs") }
|
|
608
|
+
});
|
|
609
|
+
return ret;
|
|
610
|
+
});
|
|
611
|
+
function onTabSelect(tab) {
|
|
612
|
+
if (tab === "docs" && props.nodeType) {
|
|
613
|
+
externalHooks.run("dataDisplay.onDocumentationUrlClick", {
|
|
614
|
+
nodeType: props.nodeType,
|
|
615
|
+
documentationUrl: documentationUrl.value
|
|
616
|
+
});
|
|
617
|
+
telemetry.track("User clicked ndv link", {
|
|
618
|
+
node_type: activeNode.value?.type,
|
|
619
|
+
workflow_id: workflowsStore.workflowId,
|
|
620
|
+
push_ref: props.pushRef,
|
|
621
|
+
pane: NodeConnectionTypes.Main,
|
|
622
|
+
type: "docs"
|
|
623
|
+
});
|
|
624
|
+
}
|
|
625
|
+
if (tab === "settings" && props.nodeType) telemetry.track("User viewed node settings", {
|
|
626
|
+
node_type: props.nodeType.name,
|
|
627
|
+
workflow_id: workflowsStore.workflowId
|
|
628
|
+
});
|
|
629
|
+
if (tab === "settings" || tab === "params" || tab === "action" || tab === "credential") emit("update:model-value", tab);
|
|
630
|
+
}
|
|
631
|
+
function onTooltipClick(tab, event) {
|
|
632
|
+
if (tab === "communityNode" && event.target.localName === "a") telemetry.track("user clicked cnr docs link", { source: "node details view" });
|
|
633
|
+
}
|
|
634
|
+
return (_ctx, _cache) => {
|
|
635
|
+
return openBlock(), createBlock(unref(N8nTabs_default), {
|
|
636
|
+
options: options.value,
|
|
637
|
+
"model-value": _ctx.modelValue,
|
|
638
|
+
variant: _ctx.tabsVariant,
|
|
639
|
+
size: _ctx.compact ? "small" : "medium",
|
|
640
|
+
"onUpdate:modelValue": onTabSelect,
|
|
641
|
+
onTooltipClick
|
|
642
|
+
}, null, 8, [
|
|
643
|
+
"options",
|
|
644
|
+
"model-value",
|
|
645
|
+
"variant",
|
|
646
|
+
"size"
|
|
647
|
+
]);
|
|
648
|
+
};
|
|
649
|
+
}
|
|
650
|
+
});
|
|
651
|
+
var NodeSettingsHeader_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
652
|
+
__name: "NodeSettingsHeader",
|
|
653
|
+
props: {
|
|
654
|
+
nodeName: {},
|
|
655
|
+
hideExecute: { type: Boolean },
|
|
656
|
+
hideDocs: { type: Boolean },
|
|
657
|
+
hideTabs: { type: Boolean },
|
|
658
|
+
disableExecute: { type: Boolean },
|
|
659
|
+
executeButtonTooltip: {},
|
|
660
|
+
selectedTab: {},
|
|
661
|
+
nodeType: {},
|
|
662
|
+
pushRef: {}
|
|
663
|
+
},
|
|
664
|
+
emits: [
|
|
665
|
+
"execute",
|
|
666
|
+
"stop-execution",
|
|
667
|
+
"value-changed",
|
|
668
|
+
"tab-changed"
|
|
669
|
+
],
|
|
670
|
+
setup(__props, { emit: __emit }) {
|
|
671
|
+
const emit = __emit;
|
|
672
|
+
return (_ctx, _cache) => {
|
|
673
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass(_ctx.$style.header) }, [!_ctx.hideTabs ? (openBlock(), createBlock(NodeSettingsTabs_default, {
|
|
674
|
+
key: 0,
|
|
675
|
+
"hide-docs": _ctx.hideDocs,
|
|
676
|
+
"model-value": _ctx.selectedTab,
|
|
677
|
+
"node-type": _ctx.nodeType,
|
|
678
|
+
"push-ref": _ctx.pushRef,
|
|
679
|
+
class: normalizeClass(_ctx.$style.tabs),
|
|
680
|
+
"tabs-variant": "modern",
|
|
681
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("tab-changed", $event))
|
|
682
|
+
}, null, 8, [
|
|
683
|
+
"hide-docs",
|
|
684
|
+
"model-value",
|
|
685
|
+
"node-type",
|
|
686
|
+
"push-ref",
|
|
687
|
+
"class"
|
|
688
|
+
])) : createCommentVNode("", true), !_ctx.hideExecute ? (openBlock(), createBlock(NodeExecuteButton_default, {
|
|
689
|
+
key: 1,
|
|
690
|
+
"data-test-id": "node-execute-button",
|
|
691
|
+
"node-name": _ctx.nodeName,
|
|
692
|
+
disabled: _ctx.disableExecute,
|
|
693
|
+
tooltip: _ctx.executeButtonTooltip,
|
|
694
|
+
class: normalizeClass(_ctx.$style.execute),
|
|
695
|
+
size: "small",
|
|
696
|
+
"telemetry-source": "parameters",
|
|
697
|
+
onExecute: _cache[1] || (_cache[1] = ($event) => emit("execute")),
|
|
698
|
+
onStopExecution: _cache[2] || (_cache[2] = ($event) => emit("stop-execution")),
|
|
699
|
+
onValueChanged: _cache[3] || (_cache[3] = ($event) => emit("value-changed", $event))
|
|
700
|
+
}, null, 8, [
|
|
701
|
+
"node-name",
|
|
702
|
+
"disabled",
|
|
703
|
+
"tooltip",
|
|
704
|
+
"class"
|
|
705
|
+
])) : createCommentVNode("", true)], 2);
|
|
706
|
+
};
|
|
707
|
+
}
|
|
708
|
+
});
|
|
709
|
+
var NodeSettingsHeader_vue_vue_type_style_index_0_lang_module_default = {
|
|
710
|
+
header: "_header_qhhug_123",
|
|
711
|
+
execute: "_execute_qhhug_131",
|
|
712
|
+
tabs: "_tabs_qhhug_135"
|
|
713
|
+
};
|
|
714
|
+
var NodeSettingsHeader_default = /* @__PURE__ */ __plugin_vue_export_helper_default(NodeSettingsHeader_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": NodeSettingsHeader_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
715
|
+
var _hoisted_1$4 = {
|
|
716
|
+
key: 0,
|
|
717
|
+
class: "webhooks"
|
|
718
|
+
};
|
|
719
|
+
var _hoisted_2$3 = ["title"];
|
|
720
|
+
var _hoisted_3$1 = {
|
|
721
|
+
key: 0,
|
|
722
|
+
class: "node-webhooks"
|
|
723
|
+
};
|
|
724
|
+
var _hoisted_4$1 = {
|
|
725
|
+
key: 0,
|
|
726
|
+
class: "url-selection"
|
|
727
|
+
};
|
|
728
|
+
var _hoisted_5$1 = {
|
|
729
|
+
key: 0,
|
|
730
|
+
class: "webhook-wrapper"
|
|
731
|
+
};
|
|
732
|
+
var _hoisted_6 = { class: "http-field" };
|
|
733
|
+
var _hoisted_7 = { class: "http-method" };
|
|
734
|
+
var _hoisted_8 = { class: "url-field" };
|
|
735
|
+
var _hoisted_9 = ["onClick"];
|
|
736
|
+
var _hoisted_10 = {
|
|
737
|
+
key: 1,
|
|
738
|
+
class: "webhook-wrapper"
|
|
739
|
+
};
|
|
740
|
+
var _hoisted_11 = { class: "url-field-full-width" };
|
|
741
|
+
var _hoisted_12 = ["onClick"];
|
|
742
|
+
var NodeWebhooks_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
743
|
+
__name: "NodeWebhooks",
|
|
744
|
+
props: {
|
|
745
|
+
node: {},
|
|
746
|
+
nodeTypeDescription: {}
|
|
747
|
+
},
|
|
748
|
+
setup(__props) {
|
|
749
|
+
const props = __props;
|
|
750
|
+
const clipboard = useClipboard();
|
|
751
|
+
const workflowHelpers = useWorkflowHelpers();
|
|
752
|
+
const toast = useToast();
|
|
753
|
+
const i18n = useI18n();
|
|
754
|
+
const telemetry = useTelemetry();
|
|
755
|
+
const isMinimized = ref(props.nodeTypeDescription && !OPEN_URL_PANEL_TRIGGER_NODE_TYPES.includes(props.nodeTypeDescription.name));
|
|
756
|
+
const showUrlFor = ref("test");
|
|
757
|
+
const isProductionOnly = computed(() => {
|
|
758
|
+
return props.nodeTypeDescription && PRODUCTION_ONLY_TRIGGER_NODE_TYPES.includes(props.nodeTypeDescription.name);
|
|
759
|
+
});
|
|
760
|
+
const urlOptions = computed(() => [...isProductionOnly.value ? [] : [{
|
|
761
|
+
label: baseText.value.testUrl,
|
|
762
|
+
value: "test"
|
|
763
|
+
}], {
|
|
764
|
+
label: baseText.value.productionUrl,
|
|
765
|
+
value: "production"
|
|
766
|
+
}]);
|
|
767
|
+
const visibleWebhookUrls = computed(() => {
|
|
768
|
+
return webhooksNode.value.filter((webhook) => {
|
|
769
|
+
if (typeof webhook.ndvHideUrl === "string") return !workflowHelpers.getWebhookExpressionValue(webhook, "ndvHideUrl");
|
|
770
|
+
return !webhook.ndvHideUrl;
|
|
771
|
+
});
|
|
772
|
+
});
|
|
773
|
+
const webhooksNode = computed(() => {
|
|
774
|
+
if (props.nodeTypeDescription?.webhooks === void 0) return [];
|
|
775
|
+
return props.nodeTypeDescription.webhooks.filter((webhookData) => webhookData.restartWebhook !== true);
|
|
776
|
+
});
|
|
777
|
+
const baseText = computed(() => {
|
|
778
|
+
switch (props.nodeTypeDescription?.name) {
|
|
779
|
+
case CHAT_TRIGGER_NODE_TYPE: return {
|
|
780
|
+
toggleTitle: i18n.baseText("nodeWebhooks.webhookUrls.chatTrigger"),
|
|
781
|
+
clickToDisplay: i18n.baseText("nodeWebhooks.clickToDisplayWebhookUrls.formTrigger"),
|
|
782
|
+
clickToHide: i18n.baseText("nodeWebhooks.clickToHideWebhookUrls.chatTrigger"),
|
|
783
|
+
clickToCopy: i18n.baseText("nodeWebhooks.clickToCopyWebhookUrls.chatTrigger"),
|
|
784
|
+
testUrl: i18n.baseText("nodeWebhooks.testUrl"),
|
|
785
|
+
productionUrl: i18n.baseText("nodeWebhooks.productionUrl"),
|
|
786
|
+
copyTitle: i18n.baseText("nodeWebhooks.showMessage.title.chatTrigger"),
|
|
787
|
+
copyMessage: i18n.baseText("nodeWebhooks.showMessage.message.chatTrigger")
|
|
788
|
+
};
|
|
789
|
+
case FORM_TRIGGER_NODE_TYPE: return {
|
|
790
|
+
toggleTitle: i18n.baseText("nodeWebhooks.webhookUrls.formTrigger"),
|
|
791
|
+
clickToDisplay: i18n.baseText("nodeWebhooks.clickToDisplayWebhookUrls.formTrigger"),
|
|
792
|
+
clickToHide: i18n.baseText("nodeWebhooks.clickToHideWebhookUrls.formTrigger"),
|
|
793
|
+
clickToCopy: i18n.baseText("nodeWebhooks.clickToCopyWebhookUrls.formTrigger"),
|
|
794
|
+
testUrl: i18n.baseText("nodeWebhooks.testUrl"),
|
|
795
|
+
productionUrl: i18n.baseText("nodeWebhooks.productionUrl"),
|
|
796
|
+
copyTitle: i18n.baseText("nodeWebhooks.showMessage.title.formTrigger"),
|
|
797
|
+
copyMessage: i18n.baseText("nodeWebhooks.showMessage.message.formTrigger")
|
|
798
|
+
};
|
|
799
|
+
case MCP_TRIGGER_NODE_TYPE: return {
|
|
800
|
+
toggleTitle: i18n.baseText("nodeWebhooks.webhookUrls.mcpTrigger"),
|
|
801
|
+
clickToDisplay: i18n.baseText("nodeWebhooks.clickToDisplayWebhookUrls.mcpTrigger"),
|
|
802
|
+
clickToHide: i18n.baseText("nodeWebhooks.clickToHideWebhookUrls.mcpTrigger"),
|
|
803
|
+
clickToCopy: i18n.baseText("nodeWebhooks.clickToCopyWebhookUrls.mcpTrigger"),
|
|
804
|
+
testUrl: i18n.baseText("nodeWebhooks.testUrl"),
|
|
805
|
+
productionUrl: i18n.baseText("nodeWebhooks.productionUrl"),
|
|
806
|
+
copyTitle: i18n.baseText("nodeWebhooks.showMessage.title.mcpTrigger"),
|
|
807
|
+
copyMessage: void 0
|
|
808
|
+
};
|
|
809
|
+
default: return {
|
|
810
|
+
toggleTitle: i18n.baseText("nodeWebhooks.webhookUrls"),
|
|
811
|
+
clickToDisplay: i18n.baseText("nodeWebhooks.clickToDisplayWebhookUrls"),
|
|
812
|
+
clickToHide: i18n.baseText("nodeWebhooks.clickToHideWebhookUrls"),
|
|
813
|
+
clickToCopy: i18n.baseText("nodeWebhooks.clickToCopyWebhookUrls"),
|
|
814
|
+
testUrl: i18n.baseText("nodeWebhooks.testUrl"),
|
|
815
|
+
productionUrl: i18n.baseText("nodeWebhooks.productionUrl"),
|
|
816
|
+
copyTitle: i18n.baseText("nodeWebhooks.showMessage.title"),
|
|
817
|
+
copyMessage: void 0
|
|
818
|
+
};
|
|
819
|
+
}
|
|
820
|
+
});
|
|
821
|
+
function copyWebhookUrl(webhookData) {
|
|
822
|
+
const webhookUrl = getWebhookUrlDisplay(webhookData);
|
|
823
|
+
clipboard.copy(webhookUrl);
|
|
824
|
+
toast.showMessage({
|
|
825
|
+
title: baseText.value.copyTitle,
|
|
826
|
+
message: baseText.value.copyMessage,
|
|
827
|
+
type: "success"
|
|
828
|
+
});
|
|
829
|
+
telemetry.track("User copied webhook URL", {
|
|
830
|
+
pane: "parameters",
|
|
831
|
+
type: `${showUrlFor.value} url`
|
|
832
|
+
});
|
|
833
|
+
}
|
|
834
|
+
function getWebhookUrlDisplay(webhookData) {
|
|
835
|
+
if (props.node) return workflowHelpers.getWebhookUrl(webhookData, props.node, isProductionOnly.value ? "production" : showUrlFor.value);
|
|
836
|
+
return "";
|
|
837
|
+
}
|
|
838
|
+
function isWebhookMethodVisible(webhook) {
|
|
839
|
+
try {
|
|
840
|
+
const method = workflowHelpers.getWebhookExpressionValue(webhook, "httpMethod", false);
|
|
841
|
+
if (Array.isArray(method) && method.length !== 1) return false;
|
|
842
|
+
} catch (error) {}
|
|
843
|
+
if (typeof webhook.ndvHideMethod === "string") return !workflowHelpers.getWebhookExpressionValue(webhook, "ndvHideMethod");
|
|
844
|
+
return !webhook.ndvHideMethod;
|
|
845
|
+
}
|
|
846
|
+
function getWebhookHttpMethod(webhook) {
|
|
847
|
+
const method = workflowHelpers.getWebhookExpressionValue(webhook, "httpMethod", false);
|
|
848
|
+
if (Array.isArray(method)) return method[0];
|
|
849
|
+
return method;
|
|
850
|
+
}
|
|
851
|
+
watch(() => props.node, () => {
|
|
852
|
+
isMinimized.value = props.nodeTypeDescription && !OPEN_URL_PANEL_TRIGGER_NODE_TYPES.includes(props.nodeTypeDescription.name);
|
|
853
|
+
});
|
|
854
|
+
return (_ctx, _cache) => {
|
|
855
|
+
return webhooksNode.value.length && visibleWebhookUrls.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$4, [createBaseVNode("div", {
|
|
856
|
+
class: normalizeClass(["clickable headline", { expanded: !isMinimized.value }]),
|
|
857
|
+
title: isMinimized.value ? baseText.value.clickToDisplay : baseText.value.clickToHide,
|
|
858
|
+
onClick: _cache[0] || (_cache[0] = ($event) => isMinimized.value = !isMinimized.value)
|
|
859
|
+
}, [createVNode(unref(N8nIcon_default), {
|
|
860
|
+
icon: "chevron-right",
|
|
861
|
+
class: "minimize-button minimize-icon"
|
|
862
|
+
}), createTextVNode(" " + toDisplayString(baseText.value.toggleTitle), 1)], 10, _hoisted_2$3), createVNode(unref(ElCollapseTransition), null, {
|
|
863
|
+
default: withCtx(() => [!isMinimized.value ? (openBlock(), createElementBlock("div", _hoisted_3$1, [!isProductionOnly.value ? (openBlock(), createElementBlock("div", _hoisted_4$1, [createVNode(unref(ElRow), null, {
|
|
864
|
+
default: withCtx(() => [createVNode(unref(ElCol), { span: 24 }, {
|
|
865
|
+
default: withCtx(() => [createVNode(unref(N8nRadioButtons_default), {
|
|
866
|
+
modelValue: showUrlFor.value,
|
|
867
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => showUrlFor.value = $event),
|
|
868
|
+
options: urlOptions.value
|
|
869
|
+
}, null, 8, ["modelValue", "options"])]),
|
|
870
|
+
_: 1
|
|
871
|
+
})]),
|
|
872
|
+
_: 1
|
|
873
|
+
})])) : createCommentVNode("", true), (openBlock(true), createElementBlock(Fragment, null, renderList(visibleWebhookUrls.value, (webhook, index) => {
|
|
874
|
+
return openBlock(), createBlock(unref(N8nTooltip_default), {
|
|
875
|
+
key: index,
|
|
876
|
+
class: "item",
|
|
877
|
+
content: baseText.value.clickToCopy,
|
|
878
|
+
placement: "left"
|
|
879
|
+
}, {
|
|
880
|
+
default: withCtx(() => [isWebhookMethodVisible(webhook) ? (openBlock(), createElementBlock("div", _hoisted_5$1, [createBaseVNode("div", _hoisted_6, [createBaseVNode("div", _hoisted_7, [createTextVNode(toDisplayString(getWebhookHttpMethod(webhook)), 1), _cache[2] || (_cache[2] = createBaseVNode("br", null, null, -1))])]), createBaseVNode("div", _hoisted_8, [createBaseVNode("div", {
|
|
881
|
+
class: "webhook-url left-ellipsis clickable",
|
|
882
|
+
onClick: ($event) => copyWebhookUrl(webhook)
|
|
883
|
+
}, [createTextVNode(toDisplayString(getWebhookUrlDisplay(webhook)), 1), _cache[3] || (_cache[3] = createBaseVNode("br", null, null, -1))], 8, _hoisted_9)])])) : (openBlock(), createElementBlock("div", _hoisted_10, [createBaseVNode("div", _hoisted_11, [createBaseVNode("div", {
|
|
884
|
+
class: "webhook-url left-ellipsis clickable",
|
|
885
|
+
onClick: ($event) => copyWebhookUrl(webhook)
|
|
886
|
+
}, [createTextVNode(toDisplayString(getWebhookUrlDisplay(webhook)), 1), _cache[4] || (_cache[4] = createBaseVNode("br", null, null, -1))], 8, _hoisted_12)])]))]),
|
|
887
|
+
_: 2
|
|
888
|
+
}, 1032, ["content"]);
|
|
889
|
+
}), 128))])) : createCommentVNode("", true)]),
|
|
890
|
+
_: 1
|
|
891
|
+
})])) : createCommentVNode("", true);
|
|
892
|
+
};
|
|
893
|
+
}
|
|
894
|
+
}), [["__scopeId", "data-v-66c974d9"]]);
|
|
895
|
+
var ExperimentalEmbeddedNdvHeader_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
896
|
+
__name: "ExperimentalEmbeddedNdvHeader",
|
|
897
|
+
props: {
|
|
898
|
+
node: {},
|
|
899
|
+
readOnly: { type: Boolean },
|
|
900
|
+
nodeType: {},
|
|
901
|
+
pushRef: {},
|
|
902
|
+
subTitle: {},
|
|
903
|
+
extraTabsClassName: {},
|
|
904
|
+
selectedTab: {},
|
|
905
|
+
includeAction: { type: Boolean },
|
|
906
|
+
includeCredential: { type: Boolean },
|
|
907
|
+
hasCredentialIssue: { type: Boolean }
|
|
908
|
+
},
|
|
909
|
+
emits: [
|
|
910
|
+
"name-changed",
|
|
911
|
+
"dblclick-title",
|
|
912
|
+
"tab-changed"
|
|
913
|
+
],
|
|
914
|
+
setup(__props, { emit: __emit }) {
|
|
915
|
+
const emit = __emit;
|
|
916
|
+
return (_ctx, _cache) => {
|
|
917
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass([_ctx.$style.component, _ctx.node.disabled ? _ctx.$style.disabled : ""]) }, [createBaseVNode("div", {
|
|
918
|
+
class: normalizeClass(_ctx.$style.title),
|
|
919
|
+
onDblclick: _cache[1] || (_cache[1] = ($event) => emit("dblclick-title", $event))
|
|
920
|
+
}, [
|
|
921
|
+
createVNode(NodeIcon_default, {
|
|
922
|
+
"node-type": _ctx.nodeType,
|
|
923
|
+
size: 16
|
|
924
|
+
}, null, 8, ["node-type"]),
|
|
925
|
+
createBaseVNode("div", { class: normalizeClass(_ctx.$style.titleText) }, [createVNode(unref(N8nInlineTextEdit_default), {
|
|
926
|
+
"min-width": 0,
|
|
927
|
+
"model-value": _ctx.node.name,
|
|
928
|
+
"read-only": _ctx.readOnly,
|
|
929
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("name-changed", $event))
|
|
930
|
+
}, null, 8, ["model-value", "read-only"])], 2),
|
|
931
|
+
createVNode(unref(N8nText_default), {
|
|
932
|
+
bold: "",
|
|
933
|
+
size: "small",
|
|
934
|
+
color: "text-light",
|
|
935
|
+
class: normalizeClass(_ctx.$style.subTitleText)
|
|
936
|
+
}, {
|
|
937
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.subTitle), 1)]),
|
|
938
|
+
_: 1
|
|
939
|
+
}, 8, ["class"]),
|
|
940
|
+
renderSlot(_ctx.$slots, "actions")
|
|
941
|
+
], 34), createBaseVNode("div", { class: normalizeClass(_ctx.$style.tabsContainer) }, [createVNode(NodeSettingsTabs_default, {
|
|
942
|
+
class: normalizeClass(_ctx.extraTabsClassName),
|
|
943
|
+
"model-value": _ctx.selectedTab,
|
|
944
|
+
"node-type": _ctx.nodeType,
|
|
945
|
+
"push-ref": _ctx.pushRef,
|
|
946
|
+
"tabs-variant": "modern",
|
|
947
|
+
compact: "",
|
|
948
|
+
"include-action": _ctx.includeAction,
|
|
949
|
+
"include-credential": _ctx.includeCredential,
|
|
950
|
+
"has-credential-issue": _ctx.hasCredentialIssue,
|
|
951
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => emit("tab-changed", $event))
|
|
952
|
+
}, null, 8, [
|
|
953
|
+
"class",
|
|
954
|
+
"model-value",
|
|
955
|
+
"node-type",
|
|
956
|
+
"push-ref",
|
|
957
|
+
"include-action",
|
|
958
|
+
"include-credential",
|
|
959
|
+
"has-credential-issue"
|
|
960
|
+
])], 2)], 2);
|
|
961
|
+
};
|
|
962
|
+
}
|
|
963
|
+
});
|
|
964
|
+
var ExperimentalEmbeddedNdvHeader_vue_vue_type_style_index_0_lang_module_default = {
|
|
965
|
+
component: "_component_13igc_123",
|
|
966
|
+
title: "_title_13igc_127",
|
|
967
|
+
disabled: "_disabled_13igc_135",
|
|
968
|
+
titleText: "_titleText_13igc_139",
|
|
969
|
+
subTitleText: "_subTitleText_13igc_151",
|
|
970
|
+
tabsContainer: "_tabsContainer_13igc_160"
|
|
971
|
+
};
|
|
972
|
+
var ExperimentalEmbeddedNdvHeader_default = /* @__PURE__ */ __plugin_vue_export_helper_default(ExperimentalEmbeddedNdvHeader_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": ExperimentalEmbeddedNdvHeader_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
973
|
+
var _hoisted_1$3 = ["onClick"];
|
|
974
|
+
var NodeActionsList_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
975
|
+
__name: "NodeActionsList",
|
|
976
|
+
props: { node: {} },
|
|
977
|
+
emits: ["actionSelected"],
|
|
978
|
+
setup(__props, { emit: __emit }) {
|
|
979
|
+
const emit = __emit;
|
|
980
|
+
const nodeTypesStore = useNodeTypesStore();
|
|
981
|
+
const { generateMergedNodesAndActions } = useActionsGenerator();
|
|
982
|
+
const { parseCategoryActions, getActionData } = useActions();
|
|
983
|
+
const i18n = useI18n();
|
|
984
|
+
const selectedActionRef = ref();
|
|
985
|
+
const nodeType = computed(() => nodeTypesStore.getNodeType(__props.node.type, __props.node.typeVersion));
|
|
986
|
+
const options = computed(() => {
|
|
987
|
+
const { actions } = generateMergedNodesAndActions(nodeType.value ? [nodeType.value] : [], []);
|
|
988
|
+
return parseCategoryActions(Object.values(actions).flatMap((typeDescriptions) => typeDescriptions.filter(({ actionKey }) => actionKey !== CUSTOM_API_CALL_KEY).map((typeDescription) => ({
|
|
989
|
+
type: "action",
|
|
990
|
+
subcategory: typeDescription.actionKey,
|
|
991
|
+
key: typeDescription.actionKey,
|
|
992
|
+
properties: typeDescription
|
|
993
|
+
}))), i18n.baseText("nodeCreator.actionsCategory.actions"), true).map((action) => {
|
|
994
|
+
if (action.type !== "action") return {
|
|
995
|
+
action,
|
|
996
|
+
isSelected: false
|
|
997
|
+
};
|
|
998
|
+
const data = getActionData(action.properties).value;
|
|
999
|
+
let isSelected = true;
|
|
1000
|
+
for (const [key, value] of Object.entries(data)) isSelected = isSelected && __props.node.parameters[key] === value;
|
|
1001
|
+
return {
|
|
1002
|
+
action,
|
|
1003
|
+
isSelected
|
|
1004
|
+
};
|
|
1005
|
+
});
|
|
1006
|
+
});
|
|
1007
|
+
function handleClickOption(option$1) {
|
|
1008
|
+
if (option$1.type !== "action") return;
|
|
1009
|
+
emit("actionSelected", getActionData(option$1.properties).value);
|
|
1010
|
+
}
|
|
1011
|
+
function handleSelectedItemRef(el) {
|
|
1012
|
+
if (el instanceof HTMLDivElement) selectedActionRef.value = el;
|
|
1013
|
+
}
|
|
1014
|
+
watch(selectedActionRef, (selected$1) => {
|
|
1015
|
+
selected$1?.scrollIntoView();
|
|
1016
|
+
}, { flush: "post" });
|
|
1017
|
+
return (_ctx, _cache) => {
|
|
1018
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass(_ctx.$style.component) }, [(openBlock(true), createElementBlock(Fragment, null, renderList(options.value, (option$1) => {
|
|
1019
|
+
return openBlock(), createElementBlock(Fragment, { key: option$1.action.key }, [option$1.action.type === "label" ? (openBlock(), createBlock(unref(N8nText_default), {
|
|
1020
|
+
key: 0,
|
|
1021
|
+
tag: "div",
|
|
1022
|
+
class: normalizeClass(_ctx.$style.label),
|
|
1023
|
+
size: "xsmall",
|
|
1024
|
+
color: "text-base",
|
|
1025
|
+
bold: ""
|
|
1026
|
+
}, {
|
|
1027
|
+
default: withCtx(() => [createTextVNode(toDisplayString(option$1.action.key), 1)]),
|
|
1028
|
+
_: 2
|
|
1029
|
+
}, 1032, ["class"])) : option$1.action.type === "action" ? (openBlock(), createElementBlock("div", {
|
|
1030
|
+
key: 1,
|
|
1031
|
+
ref_for: true,
|
|
1032
|
+
ref: option$1.isSelected ? handleSelectedItemRef : void 0,
|
|
1033
|
+
class: normalizeClass({
|
|
1034
|
+
[_ctx.$style.option]: true,
|
|
1035
|
+
[_ctx.$style.selected]: option$1.isSelected
|
|
1036
|
+
}),
|
|
1037
|
+
role: "button",
|
|
1038
|
+
onClick: ($event) => handleClickOption(option$1.action)
|
|
1039
|
+
}, [
|
|
1040
|
+
createVNode(NodeIcon_default, {
|
|
1041
|
+
size: 20,
|
|
1042
|
+
"node-type": nodeType.value
|
|
1043
|
+
}, null, 8, ["node-type"]),
|
|
1044
|
+
createVNode(unref(N8nText_default), {
|
|
1045
|
+
size: "small",
|
|
1046
|
+
bold: "",
|
|
1047
|
+
class: normalizeClass(_ctx.$style.optionText)
|
|
1048
|
+
}, {
|
|
1049
|
+
default: withCtx(() => [createTextVNode(toDisplayString(option$1.action.properties.displayName), 1)]),
|
|
1050
|
+
_: 2
|
|
1051
|
+
}, 1032, ["class"]),
|
|
1052
|
+
option$1.isSelected ? (openBlock(), createBlock(unref(N8nIcon_default), {
|
|
1053
|
+
key: 0,
|
|
1054
|
+
icon: "check",
|
|
1055
|
+
color: "primary"
|
|
1056
|
+
})) : createCommentVNode("", true)
|
|
1057
|
+
], 10, _hoisted_1$3)) : createCommentVNode("", true)], 64);
|
|
1058
|
+
}), 128))], 2);
|
|
1059
|
+
};
|
|
1060
|
+
}
|
|
1061
|
+
});
|
|
1062
|
+
var NodeActionsList_vue_vue_type_style_index_0_lang_module_default = {
|
|
1063
|
+
component: "_component_1vh3g_123",
|
|
1064
|
+
label: "_label_1vh3g_127",
|
|
1065
|
+
option: "_option_1vh3g_132",
|
|
1066
|
+
selected: "_selected_1vh3g_139",
|
|
1067
|
+
optionText: "_optionText_1vh3g_143"
|
|
1068
|
+
};
|
|
1069
|
+
var NodeActionsList_default = /* @__PURE__ */ __plugin_vue_export_helper_default(NodeActionsList_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": NodeActionsList_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
1070
|
+
var _hoisted_1$2 = { class: "mt-s mb-xs" };
|
|
1071
|
+
var _hoisted_2$2 = ["href", "textContent"];
|
|
1072
|
+
var NodeSettingsInvalidNodeWarning_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
1073
|
+
__name: "NodeSettingsInvalidNodeWarning",
|
|
1074
|
+
props: {
|
|
1075
|
+
node: {},
|
|
1076
|
+
previewMode: {
|
|
1077
|
+
type: Boolean,
|
|
1078
|
+
default: false
|
|
1079
|
+
}
|
|
1080
|
+
},
|
|
1081
|
+
setup(__props) {
|
|
1082
|
+
const i18n = useI18n();
|
|
1083
|
+
const telemetry = useTelemetry();
|
|
1084
|
+
const nodeTypesStore = useNodeTypesStore();
|
|
1085
|
+
const uiStore = useUIStore();
|
|
1086
|
+
const ndvStore = useNDVStore();
|
|
1087
|
+
const nodeCreatorStore = useNodeCreatorStore();
|
|
1088
|
+
const usersStore = useUsersStore();
|
|
1089
|
+
const isCommunityNode = computed(() => isCommunityPackageName(__props.node.type));
|
|
1090
|
+
const isVerifiedCommunityNode = computed(() => isCommunityPackageName(__props.node.type) && nodeTypesStore.communityNodeType(__props.node.type)?.isOfficialNode);
|
|
1091
|
+
const npmPackage = computed(() => removePreviewToken(__props.node.type.split(".")[0]));
|
|
1092
|
+
const isOwner = computed(() => usersStore.isInstanceOwner);
|
|
1093
|
+
const { installNode, loading } = useInstallNode();
|
|
1094
|
+
const isNodeDefined = computed(() => !!nodeTypesStore.nodeTypes[__props.node.type]);
|
|
1095
|
+
async function onViewDetailsClick() {
|
|
1096
|
+
telemetry.track("user clicked cnr docs link", {
|
|
1097
|
+
source: "missing node modal source",
|
|
1098
|
+
package_name: __props.node.type.split(".")[0],
|
|
1099
|
+
node_type: __props.node.type
|
|
1100
|
+
});
|
|
1101
|
+
if (isVerifiedCommunityNode.value) await nodeCreatorStore.openNodeCreatorWithNode(__props.node.name);
|
|
1102
|
+
else if (npmPackage.value) window.open(`https://www.npmjs.com/package/${npmPackage.value}`, "_blank");
|
|
1103
|
+
}
|
|
1104
|
+
async function onInstallClick() {
|
|
1105
|
+
telemetry.track("user clicked cnr install button", {
|
|
1106
|
+
source: "missing node modal source",
|
|
1107
|
+
package_name: npmPackage.value,
|
|
1108
|
+
node_type: __props.node.type
|
|
1109
|
+
});
|
|
1110
|
+
if (isVerifiedCommunityNode.value) await installNode({
|
|
1111
|
+
type: "verified",
|
|
1112
|
+
packageName: npmPackage.value,
|
|
1113
|
+
nodeType: __props.node.type
|
|
1114
|
+
});
|
|
1115
|
+
else uiStore.openModalWithData({
|
|
1116
|
+
name: COMMUNITY_PACKAGE_INSTALL_MODAL_KEY,
|
|
1117
|
+
data: {
|
|
1118
|
+
packageName: npmPackage.value,
|
|
1119
|
+
disableInput: true,
|
|
1120
|
+
hideSuggestion: true,
|
|
1121
|
+
nodeType: __props.node.type
|
|
1122
|
+
}
|
|
1123
|
+
});
|
|
1124
|
+
}
|
|
1125
|
+
watch(isNodeDefined, () => {
|
|
1126
|
+
if (isNodeDefined.value) ndvStore.unsetActiveNodeName();
|
|
1127
|
+
});
|
|
1128
|
+
return (_ctx, _cache) => {
|
|
1129
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass(_ctx.$style.nodeIsNotValid) }, [
|
|
1130
|
+
createBaseVNode("p", { class: normalizeClass(_ctx.$style.warningIcon) }, [createVNode(unref(N8nIcon_default), { icon: "triangle-alert" })], 2),
|
|
1131
|
+
createBaseVNode("div", _hoisted_1$2, [createVNode(unref(N8nText_default), {
|
|
1132
|
+
size: "large",
|
|
1133
|
+
color: "text-dark",
|
|
1134
|
+
bold: ""
|
|
1135
|
+
}, {
|
|
1136
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.previewMode ? unref(i18n).baseText("nodeSettings.communityNodeUnknown.title.preview") : unref(i18n).baseText("nodeSettings.communityNodeUnknown.title")), 1)]),
|
|
1137
|
+
_: 1
|
|
1138
|
+
})]),
|
|
1139
|
+
isCommunityNode.value && !_ctx.previewMode ? (openBlock(), createElementBlock("div", {
|
|
1140
|
+
key: 0,
|
|
1141
|
+
class: normalizeClass(_ctx.$style.descriptionContainer)
|
|
1142
|
+
}, [createVNode(unref(I18nT), {
|
|
1143
|
+
keypath: "nodeSettings.communityNodeUnknown.description",
|
|
1144
|
+
tag: "span",
|
|
1145
|
+
scope: "global"
|
|
1146
|
+
}, {
|
|
1147
|
+
action: withCtx(() => [createVNode(unref(N8nText_default), {
|
|
1148
|
+
size: "medium",
|
|
1149
|
+
bold: ""
|
|
1150
|
+
}, {
|
|
1151
|
+
default: withCtx(() => [createTextVNode(toDisplayString(npmPackage.value), 1)]),
|
|
1152
|
+
_: 1
|
|
1153
|
+
})]),
|
|
1154
|
+
_: 1
|
|
1155
|
+
}), isOwner.value ? (openBlock(), createElementBlock("div", {
|
|
1156
|
+
key: 0,
|
|
1157
|
+
class: normalizeClass(_ctx.$style.communityNodeActionsContainer)
|
|
1158
|
+
}, [isOwner.value ? (openBlock(), createBlock(unref(N8nButton_default), {
|
|
1159
|
+
key: 0,
|
|
1160
|
+
icon: "hard-drive-download",
|
|
1161
|
+
type: "primary",
|
|
1162
|
+
"data-test-id": "install-community-node-button",
|
|
1163
|
+
loading: unref(loading),
|
|
1164
|
+
disabled: unref(loading),
|
|
1165
|
+
onClick: onInstallClick
|
|
1166
|
+
}, {
|
|
1167
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(i18n).baseText("nodeSettings.communityNodeUnknown.installButton.label")), 1)]),
|
|
1168
|
+
_: 1
|
|
1169
|
+
}, 8, ["loading", "disabled"])) : createCommentVNode("", true), createVNode(unref(N8nButton_default), {
|
|
1170
|
+
icon: "external-link",
|
|
1171
|
+
type: "secondary",
|
|
1172
|
+
onClick: onViewDetailsClick,
|
|
1173
|
+
"data-test-id": "view-details-button"
|
|
1174
|
+
}, {
|
|
1175
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(i18n).baseText("nodeSettings.communityNodeUnknown.viewDetailsButton.label")), 1)]),
|
|
1176
|
+
_: 1
|
|
1177
|
+
})], 2)) : (openBlock(), createBlock(ContactAdministratorToInstall_default, {
|
|
1178
|
+
key: 1,
|
|
1179
|
+
box: false
|
|
1180
|
+
}))], 2)) : !_ctx.previewMode ? (openBlock(), createBlock(unref(I18nT), {
|
|
1181
|
+
key: 1,
|
|
1182
|
+
keypath: "nodeSettings.nodeTypeUnknown.description",
|
|
1183
|
+
tag: "span",
|
|
1184
|
+
scope: "global"
|
|
1185
|
+
}, {
|
|
1186
|
+
action: withCtx(() => [createBaseVNode("a", {
|
|
1187
|
+
href: unref(CUSTOM_NODES_DOCS_URL),
|
|
1188
|
+
target: "_blank",
|
|
1189
|
+
textContent: toDisplayString(unref(i18n).baseText("nodeSettings.nodeTypeUnknown.description.customNode"))
|
|
1190
|
+
}, null, 8, _hoisted_2$2)]),
|
|
1191
|
+
_: 1
|
|
1192
|
+
})) : createCommentVNode("", true)
|
|
1193
|
+
], 2);
|
|
1194
|
+
};
|
|
1195
|
+
}
|
|
1196
|
+
});
|
|
1197
|
+
var NodeSettingsInvalidNodeWarning_vue_vue_type_style_index_0_lang_module_default = {
|
|
1198
|
+
communityNodeActionsContainer: "_communityNodeActionsContainer_1mqmg_123",
|
|
1199
|
+
nodeIsNotValid: "_nodeIsNotValid_1mqmg_128",
|
|
1200
|
+
warningIcon: "_warningIcon_1mqmg_139",
|
|
1201
|
+
descriptionContainer: "_descriptionContainer_1mqmg_144"
|
|
1202
|
+
};
|
|
1203
|
+
var NodeSettingsInvalidNodeWarning_default = /* @__PURE__ */ __plugin_vue_export_helper_default(NodeSettingsInvalidNodeWarning_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": NodeSettingsInvalidNodeWarning_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
1204
|
+
var _hoisted_1$1 = { key: 0 };
|
|
1205
|
+
var _hoisted_2$1 = { key: 1 };
|
|
1206
|
+
var NodeStorageLimitCallout_default = /* @__PURE__ */ defineComponent({
|
|
1207
|
+
__name: "NodeStorageLimitCallout",
|
|
1208
|
+
setup(__props) {
|
|
1209
|
+
const i18n = useI18n();
|
|
1210
|
+
const nvdStore = useNDVStore();
|
|
1211
|
+
const dataTableStore = useDataTableStore();
|
|
1212
|
+
const calloutType = computed(() => {
|
|
1213
|
+
if (!DATA_TABLE_NODES.includes(nvdStore.activeNode?.type ?? "")) return null;
|
|
1214
|
+
switch (dataTableStore.dataTableSizeLimitState) {
|
|
1215
|
+
case "error": return "danger";
|
|
1216
|
+
case "warn": return "warning";
|
|
1217
|
+
default: return null;
|
|
1218
|
+
}
|
|
1219
|
+
});
|
|
1220
|
+
return (_ctx, _cache) => {
|
|
1221
|
+
return calloutType.value ? (openBlock(), createBlock(unref(N8nCallout_default), {
|
|
1222
|
+
key: 0,
|
|
1223
|
+
theme: calloutType.value,
|
|
1224
|
+
class: "mt-xs"
|
|
1225
|
+
}, {
|
|
1226
|
+
default: withCtx(() => [calloutType.value === "danger" ? (openBlock(), createElementBlock("span", _hoisted_1$1, toDisplayString(unref(i18n).baseText("dataTable.banner.storageLimitError.message", { interpolate: { usage: `${unref(dataTableStore).dataTableSize} / ${unref(dataTableStore).maxSizeMB}MB` } })), 1)) : (openBlock(), createElementBlock("span", _hoisted_2$1, toDisplayString(unref(i18n).baseText("dataTable.banner.storageLimitWarning.message", { interpolate: { usage: `${unref(dataTableStore).dataTableSize} / ${unref(dataTableStore).maxSizeMB}MB` } })), 1))]),
|
|
1227
|
+
_: 1
|
|
1228
|
+
}, 8, ["theme"])) : createCommentVNode("", true);
|
|
1229
|
+
};
|
|
1230
|
+
}
|
|
1231
|
+
});
|
|
1232
|
+
var NodeTitle_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
1233
|
+
__name: "NodeTitle",
|
|
1234
|
+
props: {
|
|
1235
|
+
modelValue: { default: "" },
|
|
1236
|
+
nodeType: { default: void 0 },
|
|
1237
|
+
iconSource: { default: void 0 },
|
|
1238
|
+
readOnly: {
|
|
1239
|
+
type: Boolean,
|
|
1240
|
+
default: false
|
|
1241
|
+
}
|
|
1242
|
+
},
|
|
1243
|
+
emits: ["update:model-value"],
|
|
1244
|
+
setup(__props, { emit: __emit }) {
|
|
1245
|
+
const emit = __emit;
|
|
1246
|
+
function onRename(value) {
|
|
1247
|
+
if (value.trim() !== "") emit("update:model-value", value.trim());
|
|
1248
|
+
}
|
|
1249
|
+
const wrapperRef = useTemplateRef("wrapperRef");
|
|
1250
|
+
const { width } = useElementSize(wrapperRef);
|
|
1251
|
+
return (_ctx, _cache) => {
|
|
1252
|
+
return openBlock(), createElementBlock("span", {
|
|
1253
|
+
class: normalizeClass(_ctx.$style.container),
|
|
1254
|
+
"data-test-id": "node-title-container"
|
|
1255
|
+
}, [createBaseVNode("span", { class: normalizeClass(_ctx.$style.iconWrapper) }, [!_ctx.iconSource ? (openBlock(), createBlock(NodeIcon_default, {
|
|
1256
|
+
key: 0,
|
|
1257
|
+
"node-type": _ctx.nodeType,
|
|
1258
|
+
size: 18,
|
|
1259
|
+
"show-tooltip": true,
|
|
1260
|
+
"tooltip-position": "left"
|
|
1261
|
+
}, null, 8, ["node-type"])) : (openBlock(), createBlock(NodeIcon_default, {
|
|
1262
|
+
key: 1,
|
|
1263
|
+
"icon-source": _ctx.iconSource,
|
|
1264
|
+
"node-type": _ctx.nodeType,
|
|
1265
|
+
size: 18,
|
|
1266
|
+
"show-tooltip": true,
|
|
1267
|
+
"tooltip-position": "left"
|
|
1268
|
+
}, null, 8, ["icon-source", "node-type"]))], 2), createBaseVNode("div", {
|
|
1269
|
+
ref_key: "wrapperRef",
|
|
1270
|
+
ref: wrapperRef,
|
|
1271
|
+
class: normalizeClass(_ctx.$style.textWrapper)
|
|
1272
|
+
}, [createVNode(unref(N8nInlineTextEdit_default), {
|
|
1273
|
+
"max-width": unref(width),
|
|
1274
|
+
"model-value": _ctx.modelValue,
|
|
1275
|
+
"read-only": _ctx.readOnly,
|
|
1276
|
+
"onUpdate:modelValue": onRename
|
|
1277
|
+
}, null, 8, [
|
|
1278
|
+
"max-width",
|
|
1279
|
+
"model-value",
|
|
1280
|
+
"read-only"
|
|
1281
|
+
])], 2)], 2);
|
|
1282
|
+
};
|
|
1283
|
+
}
|
|
1284
|
+
});
|
|
1285
|
+
var NodeTitle_vue_vue_type_style_index_0_lang_module_default = {
|
|
1286
|
+
container: "_container_oei61_123",
|
|
1287
|
+
textWrapper: "_textWrapper_oei61_132",
|
|
1288
|
+
iconWrapper: "_iconWrapper_oei61_137"
|
|
1289
|
+
};
|
|
1290
|
+
var NodeTitle_default = /* @__PURE__ */ __plugin_vue_export_helper_default(NodeTitle_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": NodeTitle_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
1291
|
+
var import_get = /* @__PURE__ */ __toESM(require_get());
|
|
1292
|
+
var _hoisted_1 = ["data-has-output-connection"];
|
|
1293
|
+
var _hoisted_2 = { class: "header-side-menu" };
|
|
1294
|
+
var _hoisted_3 = {
|
|
1295
|
+
key: 1,
|
|
1296
|
+
class: "no-parameters"
|
|
1297
|
+
};
|
|
1298
|
+
var _hoisted_4 = {
|
|
1299
|
+
key: 2,
|
|
1300
|
+
class: "parameter-item parameter-notice",
|
|
1301
|
+
"data-test-id": "node-parameters-http-notice"
|
|
1302
|
+
};
|
|
1303
|
+
var _hoisted_5 = {
|
|
1304
|
+
class: "node-version",
|
|
1305
|
+
"data-test-id": "node-version"
|
|
1306
|
+
};
|
|
1307
|
+
var NodeSettings_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
1308
|
+
__name: "NodeSettings",
|
|
1309
|
+
props: {
|
|
1310
|
+
eventBus: {},
|
|
1311
|
+
dragging: { type: Boolean },
|
|
1312
|
+
pushRef: {},
|
|
1313
|
+
readOnly: { type: Boolean },
|
|
1314
|
+
foreignCredentials: {},
|
|
1315
|
+
blockUI: { type: Boolean },
|
|
1316
|
+
executable: { type: Boolean },
|
|
1317
|
+
inputSize: { default: 0 },
|
|
1318
|
+
activeNode: { default: void 0 },
|
|
1319
|
+
isEmbeddedInCanvas: {
|
|
1320
|
+
type: Boolean,
|
|
1321
|
+
default: false
|
|
1322
|
+
},
|
|
1323
|
+
subTitle: { default: void 0 },
|
|
1324
|
+
extraTabsClassName: {},
|
|
1325
|
+
extraParameterWrapperClassName: {},
|
|
1326
|
+
isNdvV2: {
|
|
1327
|
+
type: Boolean,
|
|
1328
|
+
default: false
|
|
1329
|
+
},
|
|
1330
|
+
hideExecute: {
|
|
1331
|
+
type: Boolean,
|
|
1332
|
+
default: false
|
|
1333
|
+
},
|
|
1334
|
+
hideDocs: {
|
|
1335
|
+
type: Boolean,
|
|
1336
|
+
default: true
|
|
1337
|
+
},
|
|
1338
|
+
hideSubConnections: {
|
|
1339
|
+
type: Boolean,
|
|
1340
|
+
default: false
|
|
1341
|
+
}
|
|
1342
|
+
},
|
|
1343
|
+
emits: [
|
|
1344
|
+
"stopExecution",
|
|
1345
|
+
"valueChanged",
|
|
1346
|
+
"switchSelectedNode",
|
|
1347
|
+
"openConnectionNodeCreator",
|
|
1348
|
+
"activate",
|
|
1349
|
+
"execute",
|
|
1350
|
+
"captureWheelBody",
|
|
1351
|
+
"dblclickHeader"
|
|
1352
|
+
],
|
|
1353
|
+
setup(__props, { emit: __emit }) {
|
|
1354
|
+
const props = __props;
|
|
1355
|
+
const emit = __emit;
|
|
1356
|
+
useSlots();
|
|
1357
|
+
const nodeValues = ref(getNodeSettingsInitialValues());
|
|
1358
|
+
const nodeTypesStore = useNodeTypesStore();
|
|
1359
|
+
const ndvStore = useNDVStore();
|
|
1360
|
+
const workflowsStore = useWorkflowsStore();
|
|
1361
|
+
const workflowState = injectWorkflowState();
|
|
1362
|
+
const credentialsStore = useCredentialsStore();
|
|
1363
|
+
const historyStore = useHistoryStore();
|
|
1364
|
+
const telemetry = useTelemetry();
|
|
1365
|
+
const nodeHelpers = useNodeHelpers();
|
|
1366
|
+
const externalHooks = useExternalHooks();
|
|
1367
|
+
const i18n = useI18n();
|
|
1368
|
+
const route = useRoute();
|
|
1369
|
+
const nodeSettingsParameters = useNodeSettingsParameters();
|
|
1370
|
+
const nodeParameterWrapper = useTemplateRef("nodeParameterWrapper");
|
|
1371
|
+
const shouldShowStaticScrollbar = ref(false);
|
|
1372
|
+
if (props.isEmbeddedInCanvas) useResizeObserver(nodeParameterWrapper, () => {
|
|
1373
|
+
shouldShowStaticScrollbar.value = (nodeParameterWrapper.value?.scrollHeight ?? 0) > (nodeParameterWrapper.value?.offsetHeight ?? 0);
|
|
1374
|
+
});
|
|
1375
|
+
const nodeValid = ref(true);
|
|
1376
|
+
const openPanel = ref("params");
|
|
1377
|
+
const nodeValuesInitialized = ref(false);
|
|
1378
|
+
const hiddenIssuesInputs = ref([]);
|
|
1379
|
+
const subConnections = ref(null);
|
|
1380
|
+
const isDemoRoute = computed(() => route?.name === VIEWS.DEMO);
|
|
1381
|
+
const { isPreviewMode } = useSettingsStore();
|
|
1382
|
+
const isDemoPreview = computed(() => isDemoRoute.value && isPreviewMode);
|
|
1383
|
+
const currentWorkflow = computed(() => workflowsStore.getWorkflowById(workflowsStore.workflowObject.id));
|
|
1384
|
+
const hasForeignCredential = computed(() => props.foreignCredentials.length > 0);
|
|
1385
|
+
const isHomeProjectTeam = computed(() => currentWorkflow.value?.homeProject?.type === ProjectTypes.Team);
|
|
1386
|
+
const isReadOnly = computed(() => props.readOnly || hasForeignCredential.value && !isHomeProjectTeam.value);
|
|
1387
|
+
const node = computed(() => props.activeNode ?? ndvStore.activeNode);
|
|
1388
|
+
const nodeType = computed(() => node.value ? nodeTypesStore.getNodeType(node.value.type, node.value.typeVersion) : null);
|
|
1389
|
+
const { areAllCredentialsSet } = useNodeCredentialOptions(node, nodeType, "");
|
|
1390
|
+
const { installedPackage, isUpdateCheckAvailable } = useInstalledCommunityPackage(computed(() => node.value?.type));
|
|
1391
|
+
const isTriggerNode = computed(() => !!node.value && nodeTypesStore.isTriggerNode(node.value.type));
|
|
1392
|
+
const isToolNode = computed(() => !!node.value && nodeTypesStore.isToolNode(node.value.type));
|
|
1393
|
+
const isExecutable = computed(() => nodeHelpers.isNodeExecutable(node.value, props.executable, props.foreignCredentials));
|
|
1394
|
+
const nodeTypeVersions = computed(() => {
|
|
1395
|
+
if (!node.value) return [];
|
|
1396
|
+
return nodeTypesStore.getNodeVersions(node.value.type);
|
|
1397
|
+
});
|
|
1398
|
+
const latestVersion = computed(() => Math.max(...nodeTypeVersions.value));
|
|
1399
|
+
const isLatestNodeVersion = computed(() => !node.value?.typeVersion || latestVersion.value === node.value.typeVersion);
|
|
1400
|
+
const executeButtonTooltip = computed(() => {
|
|
1401
|
+
if (node.value && isLatestNodeVersion.value && props.inputSize > 1 && !nodeHelpers.isSingleExecution(node.value.type, node.value.parameters)) return i18n.baseText("nodeSettings.executeButtonTooltip.times", { interpolate: { inputSize: props.inputSize } });
|
|
1402
|
+
return "";
|
|
1403
|
+
});
|
|
1404
|
+
const nodeVersionTag = computed(() => {
|
|
1405
|
+
if (!nodeType.value || nodeType.value.hidden) return i18n.baseText("nodeSettings.deprecated");
|
|
1406
|
+
if (isLatestNodeVersion.value) return i18n.baseText("nodeSettings.latest");
|
|
1407
|
+
return i18n.baseText("nodeSettings.latestVersion", { interpolate: { version: latestVersion.value.toString() } });
|
|
1408
|
+
});
|
|
1409
|
+
const parameters = computed(() => {
|
|
1410
|
+
if (nodeType.value === null) return [];
|
|
1411
|
+
return nodeType.value?.properties ?? [];
|
|
1412
|
+
});
|
|
1413
|
+
const parametersByTab = computed(() => collectParametersByTab(parameters.value, props.isEmbeddedInCanvas));
|
|
1414
|
+
const isDisplayingCredentials = computed(() => credentialsStore.getCredentialTypesNodeDescriptions("", nodeType.value).filter((credentialTypeDescription) => displayCredentials(credentialTypeDescription)).length > 0);
|
|
1415
|
+
const showNoParametersNotice = computed(() => !isDisplayingCredentials.value && (parametersByTab.value.params ?? []).filter((item) => item.type !== "notice").length === 0);
|
|
1416
|
+
const outputPanelEditMode = computed(() => ndvStore.outputPanelEditMode);
|
|
1417
|
+
const isCommunityNode = computed(() => !!node.value && isCommunityPackageName(node.value.type));
|
|
1418
|
+
const packageName = computed(() => node.value?.type.split(".")[0] ?? "");
|
|
1419
|
+
const usedCredentials = computed(() => Object.values(workflowsStore.usedCredentials).filter((credential) => Object.values(node.value?.credentials || []).find((nodeCredential) => nodeCredential.id === credential.id)));
|
|
1420
|
+
const credentialOwnerName = computed(() => {
|
|
1421
|
+
const credential = usedCredentials.value ? Object.values(usedCredentials.value).find((credential$1) => credential$1.id === props.foreignCredentials[0]) : void 0;
|
|
1422
|
+
return credentialsStore.getCredentialOwnerName(credential);
|
|
1423
|
+
});
|
|
1424
|
+
const featureRequestUrl = computed(() => {
|
|
1425
|
+
if (!nodeType.value) return "";
|
|
1426
|
+
return `${BASE_NODE_SURVEY_URL}${nodeType.value.name}`;
|
|
1427
|
+
});
|
|
1428
|
+
const hasOutputConnection = computed(() => {
|
|
1429
|
+
if (!node.value) return false;
|
|
1430
|
+
const outgoingConnections = workflowsStore.outgoingConnectionsByNodeName(node.value.name);
|
|
1431
|
+
return (Object.values(outgoingConnections)?.[0]?.[0] ?? []).length > 0;
|
|
1432
|
+
});
|
|
1433
|
+
const valueChanged = (parameterData) => {
|
|
1434
|
+
let newValue;
|
|
1435
|
+
if (parameterData.hasOwnProperty("value")) newValue = parameterData.value;
|
|
1436
|
+
else newValue = (0, import_get.default)(nodeValues.value, parameterData.name);
|
|
1437
|
+
const nodeNameBefore = parameterData.node || node.value?.name;
|
|
1438
|
+
if (!nodeNameBefore) return;
|
|
1439
|
+
const _node = workflowsStore.getNodeByName(nodeNameBefore);
|
|
1440
|
+
if (_node === null) return;
|
|
1441
|
+
if (parameterData.name === "name") emit("valueChanged", {
|
|
1442
|
+
value: newValue,
|
|
1443
|
+
oldValue: nodeNameBefore,
|
|
1444
|
+
name: parameterData.name
|
|
1445
|
+
});
|
|
1446
|
+
else if (parameterData.name === "parameters") {
|
|
1447
|
+
const _nodeType = nodeTypesStore.getNodeType(_node.type, _node.typeVersion);
|
|
1448
|
+
if (!_nodeType) return;
|
|
1449
|
+
let nodeParameters = getNodeParameters(_nodeType.properties, _node.parameters, false, false, _node, _nodeType);
|
|
1450
|
+
const oldNodeParameters = Object.assign({}, nodeParameters);
|
|
1451
|
+
nodeParameters = deepCopy(nodeParameters);
|
|
1452
|
+
if (parameterData.value && typeof parameterData.value === "object") for (const [parameterName, parameterValue] of Object.entries(parameterData.value)) {
|
|
1453
|
+
newValue = parameterValue;
|
|
1454
|
+
const parameterPath = nodeSettingsParameters.updateParameterByPath(parameterName, newValue, nodeParameters, _nodeType, _node.typeVersion);
|
|
1455
|
+
externalHooks.run("nodeSettings.valueChanged", {
|
|
1456
|
+
parameterPath,
|
|
1457
|
+
newValue,
|
|
1458
|
+
parameters: parameters.value,
|
|
1459
|
+
oldNodeParameters
|
|
1460
|
+
});
|
|
1461
|
+
}
|
|
1462
|
+
nodeParameters = getNodeParameters(_nodeType.properties, nodeParameters, true, false, _node, _nodeType);
|
|
1463
|
+
for (const key of Object.keys(nodeParameters)) if (nodeParameters?.[key] !== null && nodeParameters?.[key] !== void 0) nodeSettingsParameters.setValue(nodeValues, `parameters.${key}`, nodeParameters[key]);
|
|
1464
|
+
if (nodeParameters) {
|
|
1465
|
+
const updateInformation = {
|
|
1466
|
+
name: _node.name,
|
|
1467
|
+
value: nodeParameters
|
|
1468
|
+
};
|
|
1469
|
+
workflowState.setNodeParameters(updateInformation);
|
|
1470
|
+
nodeHelpers.updateNodeParameterIssuesByName(_node.name);
|
|
1471
|
+
nodeHelpers.updateNodeCredentialIssuesByName(_node.name);
|
|
1472
|
+
}
|
|
1473
|
+
} else if (nameIsParameter(parameterData)) nodeSettingsParameters.updateNodeParameter(nodeValues, parameterData, newValue, _node, isToolNode.value);
|
|
1474
|
+
else {
|
|
1475
|
+
nodeValues.value = {
|
|
1476
|
+
...nodeValues.value,
|
|
1477
|
+
[parameterData.name]: newValue
|
|
1478
|
+
};
|
|
1479
|
+
const updateInformation = {
|
|
1480
|
+
name: _node.name,
|
|
1481
|
+
key: parameterData.name,
|
|
1482
|
+
value: newValue
|
|
1483
|
+
};
|
|
1484
|
+
workflowState.setNodeValue(updateInformation);
|
|
1485
|
+
}
|
|
1486
|
+
};
|
|
1487
|
+
const setHttpNodeParameters = (parameters$1) => {
|
|
1488
|
+
try {
|
|
1489
|
+
valueChanged({
|
|
1490
|
+
node: node.value?.name,
|
|
1491
|
+
name: "parameters",
|
|
1492
|
+
value: parameters$1
|
|
1493
|
+
});
|
|
1494
|
+
} catch {}
|
|
1495
|
+
};
|
|
1496
|
+
const onSwitchSelectedNode = (node$1) => {
|
|
1497
|
+
emit("switchSelectedNode", node$1);
|
|
1498
|
+
};
|
|
1499
|
+
const onOpenConnectionNodeCreator = (nodeName, connectionType$1, connectionIndex = 0) => {
|
|
1500
|
+
emit("openConnectionNodeCreator", nodeName, connectionType$1, connectionIndex);
|
|
1501
|
+
};
|
|
1502
|
+
const populateHiddenIssuesSet = () => {
|
|
1503
|
+
if (!node.value || !workflowsStore.isNodePristine(node.value.name)) return;
|
|
1504
|
+
hiddenIssuesInputs.value.push("credentials");
|
|
1505
|
+
parametersByTab.value.params.forEach((parameter) => {
|
|
1506
|
+
hiddenIssuesInputs.value.push(parameter.name);
|
|
1507
|
+
});
|
|
1508
|
+
workflowsStore.setNodePristine(node.value.name, false);
|
|
1509
|
+
};
|
|
1510
|
+
const nodeSettings = computed(() => createCommonNodeSettings(isToolNode.value, i18n.baseText.bind(i18n)));
|
|
1511
|
+
const iconSource = computed(() => getNodeIconSource(nodeType.value ?? node.value?.type, node.value ?? null));
|
|
1512
|
+
const onParameterBlur = (parameterName) => {
|
|
1513
|
+
hiddenIssuesInputs.value = hiddenIssuesInputs.value.filter((name) => name !== parameterName);
|
|
1514
|
+
};
|
|
1515
|
+
const onWorkflowActivate = () => {
|
|
1516
|
+
hiddenIssuesInputs.value = [];
|
|
1517
|
+
emit("activate");
|
|
1518
|
+
};
|
|
1519
|
+
const onNodeExecute = () => {
|
|
1520
|
+
hiddenIssuesInputs.value = [];
|
|
1521
|
+
subConnections.value?.showNodeInputsIssues();
|
|
1522
|
+
emit("execute");
|
|
1523
|
+
};
|
|
1524
|
+
const credentialSelected = (updateInformation) => {
|
|
1525
|
+
workflowState.updateNodeProperties(updateInformation);
|
|
1526
|
+
const node$1 = workflowsStore.getNodeByName(updateInformation.name);
|
|
1527
|
+
if (node$1) nodeHelpers.updateNodeCredentialIssues(node$1);
|
|
1528
|
+
externalHooks.run("nodeSettings.credentialSelected", { updateInformation });
|
|
1529
|
+
};
|
|
1530
|
+
const nameChanged = (name) => {
|
|
1531
|
+
if (node.value) historyStore.pushCommandToUndo(new RenameNodeCommand(node.value.name, name, Date.now()));
|
|
1532
|
+
valueChanged({
|
|
1533
|
+
value: name,
|
|
1534
|
+
name: "name"
|
|
1535
|
+
});
|
|
1536
|
+
};
|
|
1537
|
+
const setNodeValues = () => {
|
|
1538
|
+
if (!node.value) {
|
|
1539
|
+
nodeValuesInitialized.value = true;
|
|
1540
|
+
return;
|
|
1541
|
+
}
|
|
1542
|
+
if (nodeType.value !== null) {
|
|
1543
|
+
nodeValid.value = true;
|
|
1544
|
+
nodeValues.value = collectSettings(node.value, nodeSettings.value);
|
|
1545
|
+
} else nodeValid.value = false;
|
|
1546
|
+
nodeValuesInitialized.value = true;
|
|
1547
|
+
};
|
|
1548
|
+
const onStopExecution = () => {
|
|
1549
|
+
emit("stopExecution");
|
|
1550
|
+
};
|
|
1551
|
+
const openSettings = () => {
|
|
1552
|
+
openPanel.value = "settings";
|
|
1553
|
+
};
|
|
1554
|
+
const onTabSelect = (tab) => {
|
|
1555
|
+
openPanel.value = tab;
|
|
1556
|
+
};
|
|
1557
|
+
const onFeatureRequestClick = () => {
|
|
1558
|
+
window.open(featureRequestUrl.value, "_blank");
|
|
1559
|
+
if (node.value) telemetry.track("User clicked ndv link", {
|
|
1560
|
+
node_type: node.value.type,
|
|
1561
|
+
workflow_id: workflowsStore.workflowId,
|
|
1562
|
+
push_ref: props.pushRef,
|
|
1563
|
+
pane: NodeConnectionTypes.Main,
|
|
1564
|
+
type: "i-wish-this-node-would"
|
|
1565
|
+
});
|
|
1566
|
+
};
|
|
1567
|
+
watch(node, () => {
|
|
1568
|
+
setNodeValues();
|
|
1569
|
+
});
|
|
1570
|
+
onMounted(async () => {
|
|
1571
|
+
populateHiddenIssuesSet();
|
|
1572
|
+
setNodeValues();
|
|
1573
|
+
props.eventBus?.on("openSettings", openSettings);
|
|
1574
|
+
if (node.value !== null) nodeHelpers.updateNodeParameterIssues(node.value, nodeType.value);
|
|
1575
|
+
importCurlEventBus.on("setHttpNodeParameters", setHttpNodeParameters);
|
|
1576
|
+
ndvEventBus.on("updateParameterValue", valueChanged);
|
|
1577
|
+
});
|
|
1578
|
+
onBeforeUnmount(() => {
|
|
1579
|
+
props.eventBus?.off("openSettings", openSettings);
|
|
1580
|
+
importCurlEventBus.off("setHttpNodeParameters", setHttpNodeParameters);
|
|
1581
|
+
ndvEventBus.off("updateParameterValue", valueChanged);
|
|
1582
|
+
});
|
|
1583
|
+
function displayCredentials(credentialTypeDescription) {
|
|
1584
|
+
if (credentialTypeDescription.displayOptions === void 0) return true;
|
|
1585
|
+
return !!node.value && nodeHelpers.displayParameter(node.value.parameters, credentialTypeDescription, "", node.value);
|
|
1586
|
+
}
|
|
1587
|
+
function handleSelectAction(params) {
|
|
1588
|
+
for (const [key, value] of Object.entries(params)) valueChanged({
|
|
1589
|
+
name: `parameters.${key}`,
|
|
1590
|
+
value
|
|
1591
|
+
});
|
|
1592
|
+
if (isDisplayingCredentials.value && !areAllCredentialsSet.value) {
|
|
1593
|
+
onTabSelect("credential");
|
|
1594
|
+
return;
|
|
1595
|
+
}
|
|
1596
|
+
if (parametersByTab.value.params.length > 0) onTabSelect("params");
|
|
1597
|
+
}
|
|
1598
|
+
return (_ctx, _cache) => {
|
|
1599
|
+
return openBlock(), createElementBlock("div", {
|
|
1600
|
+
class: normalizeClass({
|
|
1601
|
+
"node-settings": true,
|
|
1602
|
+
dragging: _ctx.dragging,
|
|
1603
|
+
embedded: props.isEmbeddedInCanvas
|
|
1604
|
+
}),
|
|
1605
|
+
"data-has-output-connection": hasOutputConnection.value,
|
|
1606
|
+
onKeydown: _cache[2] || (_cache[2] = withModifiers(() => {}, ["stop"]))
|
|
1607
|
+
}, [
|
|
1608
|
+
_ctx.isEmbeddedInCanvas && node.value ? (openBlock(), createBlock(ExperimentalEmbeddedNdvHeader_default, {
|
|
1609
|
+
key: 0,
|
|
1610
|
+
node: node.value,
|
|
1611
|
+
"selected-tab": openPanel.value,
|
|
1612
|
+
"read-only": _ctx.readOnly,
|
|
1613
|
+
"node-type": nodeType.value,
|
|
1614
|
+
"push-ref": _ctx.pushRef,
|
|
1615
|
+
"sub-title": _ctx.subTitle,
|
|
1616
|
+
"extra-tabs-class-name": _ctx.extraTabsClassName,
|
|
1617
|
+
"include-action": parametersByTab.value.action.length > 0,
|
|
1618
|
+
"include-credential": isDisplayingCredentials.value,
|
|
1619
|
+
"has-credential-issue": !unref(areAllCredentialsSet),
|
|
1620
|
+
onNameChanged: nameChanged,
|
|
1621
|
+
onTabChanged: onTabSelect,
|
|
1622
|
+
onDblclickTitle: _cache[0] || (_cache[0] = ($event) => emit("dblclickHeader", $event))
|
|
1623
|
+
}, {
|
|
1624
|
+
actions: withCtx(() => [renderSlot(_ctx.$slots, "actions", {}, void 0, true)]),
|
|
1625
|
+
_: 3
|
|
1626
|
+
}, 8, [
|
|
1627
|
+
"node",
|
|
1628
|
+
"selected-tab",
|
|
1629
|
+
"read-only",
|
|
1630
|
+
"node-type",
|
|
1631
|
+
"push-ref",
|
|
1632
|
+
"sub-title",
|
|
1633
|
+
"extra-tabs-class-name",
|
|
1634
|
+
"include-action",
|
|
1635
|
+
"include-credential",
|
|
1636
|
+
"has-credential-issue"
|
|
1637
|
+
])) : !_ctx.isNdvV2 ? (openBlock(), createElementBlock("div", {
|
|
1638
|
+
key: 1,
|
|
1639
|
+
class: normalizeClass(_ctx.$style.header)
|
|
1640
|
+
}, [createBaseVNode("div", _hoisted_2, [node.value ? (openBlock(), createBlock(NodeTitle_default, {
|
|
1641
|
+
key: 0,
|
|
1642
|
+
class: "node-name",
|
|
1643
|
+
"model-value": node.value.name,
|
|
1644
|
+
"icon-source": iconSource.value,
|
|
1645
|
+
"read-only": isReadOnly.value,
|
|
1646
|
+
"node-type": nodeType.value,
|
|
1647
|
+
"onUpdate:modelValue": nameChanged
|
|
1648
|
+
}, null, 8, [
|
|
1649
|
+
"model-value",
|
|
1650
|
+
"icon-source",
|
|
1651
|
+
"read-only",
|
|
1652
|
+
"node-type"
|
|
1653
|
+
])) : createCommentVNode("", true), isExecutable.value && !_ctx.blockUI && node.value && nodeValid.value ? (openBlock(), createBlock(NodeExecuteButton_default, {
|
|
1654
|
+
key: 1,
|
|
1655
|
+
"data-test-id": "node-execute-button",
|
|
1656
|
+
"node-name": node.value.name,
|
|
1657
|
+
disabled: outputPanelEditMode.value.enabled && !isTriggerNode.value,
|
|
1658
|
+
tooltip: executeButtonTooltip.value,
|
|
1659
|
+
size: "small",
|
|
1660
|
+
"telemetry-source": "parameters",
|
|
1661
|
+
onExecute: onNodeExecute,
|
|
1662
|
+
onStopExecution,
|
|
1663
|
+
onValueChanged: valueChanged
|
|
1664
|
+
}, null, 8, [
|
|
1665
|
+
"node-name",
|
|
1666
|
+
"disabled",
|
|
1667
|
+
"tooltip"
|
|
1668
|
+
])) : createCommentVNode("", true)]), node.value && nodeValid.value ? (openBlock(), createBlock(NodeSettingsTabs_default, {
|
|
1669
|
+
key: 0,
|
|
1670
|
+
"model-value": openPanel.value,
|
|
1671
|
+
"node-type": nodeType.value,
|
|
1672
|
+
"push-ref": _ctx.pushRef,
|
|
1673
|
+
"onUpdate:modelValue": onTabSelect
|
|
1674
|
+
}, null, 8, [
|
|
1675
|
+
"model-value",
|
|
1676
|
+
"node-type",
|
|
1677
|
+
"push-ref"
|
|
1678
|
+
])) : createCommentVNode("", true)], 2)) : node.value && nodeValid.value ? (openBlock(), createBlock(NodeSettingsHeader_default, {
|
|
1679
|
+
key: 2,
|
|
1680
|
+
"selected-tab": openPanel.value,
|
|
1681
|
+
"node-name": node.value.name,
|
|
1682
|
+
"node-type": nodeType.value,
|
|
1683
|
+
"execute-button-tooltip": executeButtonTooltip.value,
|
|
1684
|
+
"hide-execute": props.hideExecute || !isExecutable.value || _ctx.blockUI || !node.value || !nodeValid.value,
|
|
1685
|
+
"disable-execute": outputPanelEditMode.value.enabled && !isTriggerNode.value,
|
|
1686
|
+
"hide-tabs": !nodeValid.value,
|
|
1687
|
+
"hide-docs": props.hideDocs,
|
|
1688
|
+
"push-ref": _ctx.pushRef,
|
|
1689
|
+
onExecute: onNodeExecute,
|
|
1690
|
+
onStopExecution,
|
|
1691
|
+
onValueChanged: valueChanged,
|
|
1692
|
+
onTabChanged: onTabSelect
|
|
1693
|
+
}, null, 8, [
|
|
1694
|
+
"selected-tab",
|
|
1695
|
+
"node-name",
|
|
1696
|
+
"node-type",
|
|
1697
|
+
"execute-button-tooltip",
|
|
1698
|
+
"hide-execute",
|
|
1699
|
+
"disable-execute",
|
|
1700
|
+
"hide-tabs",
|
|
1701
|
+
"hide-docs",
|
|
1702
|
+
"push-ref"
|
|
1703
|
+
])) : createCommentVNode("", true),
|
|
1704
|
+
node.value && !nodeValid.value ? (openBlock(), createBlock(NodeSettingsInvalidNodeWarning_default, {
|
|
1705
|
+
key: 3,
|
|
1706
|
+
node: node.value,
|
|
1707
|
+
"preview-mode": isDemoPreview.value
|
|
1708
|
+
}, null, 8, ["node", "preview-mode"])) : createCommentVNode("", true),
|
|
1709
|
+
node.value && nodeValid.value ? (openBlock(), createElementBlock("div", {
|
|
1710
|
+
key: 4,
|
|
1711
|
+
ref_key: "nodeParameterWrapper",
|
|
1712
|
+
ref: nodeParameterWrapper,
|
|
1713
|
+
class: normalizeClass([
|
|
1714
|
+
"node-parameters-wrapper",
|
|
1715
|
+
shouldShowStaticScrollbar.value ? "with-static-scrollbar" : "",
|
|
1716
|
+
{ "ndv-v2": _ctx.isNdvV2 },
|
|
1717
|
+
_ctx.extraParameterWrapperClassName ?? ""
|
|
1718
|
+
]),
|
|
1719
|
+
"data-test-id": "node-parameters",
|
|
1720
|
+
onWheelCapture: _cache[1] || (_cache[1] = ($event) => emit("captureWheelBody", $event))
|
|
1721
|
+
}, [
|
|
1722
|
+
hasForeignCredential.value && !isHomeProjectTeam.value ? (openBlock(), createBlock(unref(N8nNotice_default), {
|
|
1723
|
+
key: 0,
|
|
1724
|
+
content: unref(i18n).baseText("nodeSettings.hasForeignCredential", { interpolate: { owner: credentialOwnerName.value } })
|
|
1725
|
+
}, null, 8, ["content"])) : createCommentVNode("", true),
|
|
1726
|
+
createVNode(FreeAiCreditsCallout_default),
|
|
1727
|
+
createVNode(NodeStorageLimitCallout_default),
|
|
1728
|
+
openPanel.value === "action" ? (openBlock(), createBlock(NodeActionsList_default, {
|
|
1729
|
+
key: 1,
|
|
1730
|
+
class: "action-tab",
|
|
1731
|
+
node: node.value,
|
|
1732
|
+
onActionSelected: handleSelectAction
|
|
1733
|
+
}, null, 8, ["node"])) : createCommentVNode("", true),
|
|
1734
|
+
openPanel.value === "credential" ? (openBlock(), createBlock(NodeCredentials_default, {
|
|
1735
|
+
key: 2,
|
|
1736
|
+
node: node.value,
|
|
1737
|
+
readonly: isReadOnly.value,
|
|
1738
|
+
"show-all": true,
|
|
1739
|
+
"hide-issues": hiddenIssuesInputs.value.includes("credentials"),
|
|
1740
|
+
onCredentialSelected: credentialSelected,
|
|
1741
|
+
onValueChanged: valueChanged,
|
|
1742
|
+
onBlur: onParameterBlur
|
|
1743
|
+
}, null, 8, [
|
|
1744
|
+
"node",
|
|
1745
|
+
"readonly",
|
|
1746
|
+
"hide-issues"
|
|
1747
|
+
])) : createCommentVNode("", true),
|
|
1748
|
+
withDirectives(createBaseVNode("div", null, [
|
|
1749
|
+
createVNode(NodeWebhooks_default, {
|
|
1750
|
+
node: node.value,
|
|
1751
|
+
"node-type-description": nodeType.value
|
|
1752
|
+
}, null, 8, ["node", "node-type-description"]),
|
|
1753
|
+
nodeValuesInitialized.value ? (openBlock(), createBlock(ParameterInputList_default, {
|
|
1754
|
+
key: 0,
|
|
1755
|
+
parameters: parametersByTab.value.params,
|
|
1756
|
+
"hide-delete": true,
|
|
1757
|
+
"node-values": nodeValues.value,
|
|
1758
|
+
"is-read-only": isReadOnly.value,
|
|
1759
|
+
"hidden-issues-inputs": hiddenIssuesInputs.value,
|
|
1760
|
+
path: "parameters",
|
|
1761
|
+
node: props.activeNode,
|
|
1762
|
+
onValueChanged: valueChanged,
|
|
1763
|
+
onActivate: onWorkflowActivate,
|
|
1764
|
+
onParameterBlur
|
|
1765
|
+
}, {
|
|
1766
|
+
default: withCtx(() => [!_ctx.isEmbeddedInCanvas && !isDemoPreview.value ? (openBlock(), createBlock(NodeCredentials_default, {
|
|
1767
|
+
key: 0,
|
|
1768
|
+
node: node.value,
|
|
1769
|
+
readonly: isReadOnly.value,
|
|
1770
|
+
"show-all": true,
|
|
1771
|
+
"hide-issues": hiddenIssuesInputs.value.includes("credentials"),
|
|
1772
|
+
onCredentialSelected: credentialSelected,
|
|
1773
|
+
onValueChanged: valueChanged,
|
|
1774
|
+
onBlur: onParameterBlur
|
|
1775
|
+
}, null, 8, [
|
|
1776
|
+
"node",
|
|
1777
|
+
"readonly",
|
|
1778
|
+
"hide-issues"
|
|
1779
|
+
])) : createCommentVNode("", true)]),
|
|
1780
|
+
_: 1
|
|
1781
|
+
}, 8, [
|
|
1782
|
+
"parameters",
|
|
1783
|
+
"node-values",
|
|
1784
|
+
"is-read-only",
|
|
1785
|
+
"hidden-issues-inputs",
|
|
1786
|
+
"node"
|
|
1787
|
+
])) : createCommentVNode("", true),
|
|
1788
|
+
showNoParametersNotice.value ? (openBlock(), createElementBlock("div", _hoisted_3, [createVNode(unref(N8nText_default), null, {
|
|
1789
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(i18n).baseText("nodeSettings.thisNodeDoesNotHaveAnyParameters")), 1)]),
|
|
1790
|
+
_: 1
|
|
1791
|
+
})])) : createCommentVNode("", true),
|
|
1792
|
+
unref(nodeHelpers).isCustomApiCallSelected(nodeValues.value) ? (openBlock(), createElementBlock("div", _hoisted_4, [createVNode(unref(N8nNotice_default), { content: unref(i18n).baseText("nodeSettings.useTheHttpRequestNode", { interpolate: { nodeTypeDisplayName: nodeType.value?.displayName ?? "" } }) }, null, 8, ["content"])])) : createCommentVNode("", true)
|
|
1793
|
+
], 512), [[vShow, openPanel.value === "params"]]),
|
|
1794
|
+
withDirectives(createBaseVNode("div", null, [
|
|
1795
|
+
unref(isUpdateCheckAvailable) && unref(installedPackage)?.updateAvailable ? (openBlock(), createBlock(CommunityNodeUpdateInfo_default, {
|
|
1796
|
+
key: 0,
|
|
1797
|
+
"data-test-id": "update-available",
|
|
1798
|
+
"package-name": packageName.value,
|
|
1799
|
+
style: { "margin-top": "var(--spacing--sm)" },
|
|
1800
|
+
source: "node settings"
|
|
1801
|
+
}, null, 8, ["package-name"])) : createCommentVNode("", true),
|
|
1802
|
+
createVNode(ParameterInputList_default, {
|
|
1803
|
+
parameters: parametersByTab.value.settings,
|
|
1804
|
+
"node-values": nodeValues.value,
|
|
1805
|
+
"is-read-only": isReadOnly.value,
|
|
1806
|
+
"hide-delete": true,
|
|
1807
|
+
"hidden-issues-inputs": hiddenIssuesInputs.value,
|
|
1808
|
+
path: "parameters",
|
|
1809
|
+
onValueChanged: valueChanged,
|
|
1810
|
+
onParameterBlur
|
|
1811
|
+
}, null, 8, [
|
|
1812
|
+
"parameters",
|
|
1813
|
+
"node-values",
|
|
1814
|
+
"is-read-only",
|
|
1815
|
+
"hidden-issues-inputs"
|
|
1816
|
+
]),
|
|
1817
|
+
createVNode(ParameterInputList_default, {
|
|
1818
|
+
parameters: nodeSettings.value,
|
|
1819
|
+
"hide-delete": true,
|
|
1820
|
+
"node-values": nodeValues.value,
|
|
1821
|
+
"is-read-only": isReadOnly.value,
|
|
1822
|
+
"hidden-issues-inputs": hiddenIssuesInputs.value,
|
|
1823
|
+
path: "",
|
|
1824
|
+
onValueChanged: valueChanged,
|
|
1825
|
+
onParameterBlur
|
|
1826
|
+
}, null, 8, [
|
|
1827
|
+
"parameters",
|
|
1828
|
+
"node-values",
|
|
1829
|
+
"is-read-only",
|
|
1830
|
+
"hidden-issues-inputs"
|
|
1831
|
+
]),
|
|
1832
|
+
createBaseVNode("div", _hoisted_5, [createTextVNode(toDisplayString(unref(i18n).baseText("nodeSettings.nodeVersion", { interpolate: {
|
|
1833
|
+
node: nodeType.value?.displayName,
|
|
1834
|
+
version: (node.value.typeVersion ?? latestVersion.value).toString()
|
|
1835
|
+
} })) + " ", 1), createBaseVNode("span", null, "(" + toDisplayString(nodeVersionTag.value) + ")", 1)])
|
|
1836
|
+
], 512), [[vShow, openPanel.value === "settings"]]),
|
|
1837
|
+
_ctx.isNdvV2 && featureRequestUrl.value && !_ctx.isEmbeddedInCanvas ? (openBlock(), createElementBlock("div", {
|
|
1838
|
+
key: 3,
|
|
1839
|
+
class: normalizeClass(_ctx.$style.featureRequest)
|
|
1840
|
+
}, [createBaseVNode("a", {
|
|
1841
|
+
target: "_blank",
|
|
1842
|
+
onClick: onFeatureRequestClick
|
|
1843
|
+
}, [createVNode(unref(N8nIcon_default), { icon: "lightbulb" }), createTextVNode(" " + toDisplayString(unref(i18n).baseText("ndv.featureRequest")), 1)])], 2)) : createCommentVNode("", true)
|
|
1844
|
+
], 34)) : createCommentVNode("", true),
|
|
1845
|
+
node.value && !_ctx.hideSubConnections ? (openBlock(), createBlock(NDVSubConnections_default, {
|
|
1846
|
+
key: 5,
|
|
1847
|
+
ref_key: "subConnections",
|
|
1848
|
+
ref: subConnections,
|
|
1849
|
+
"root-node": node.value,
|
|
1850
|
+
onSwitchSelectedNode,
|
|
1851
|
+
onOpenConnectionNodeCreator
|
|
1852
|
+
}, null, 8, ["root-node"])) : createCommentVNode("", true),
|
|
1853
|
+
createVNode(unref(N8nBlockUi_default), {
|
|
1854
|
+
show: _ctx.blockUI,
|
|
1855
|
+
class: normalizeClass({ [_ctx.$style.uiBlockerNdvV2]: _ctx.isNdvV2 })
|
|
1856
|
+
}, null, 8, ["show", "class"]),
|
|
1857
|
+
openPanel.value === "settings" && isCommunityNode.value ? (openBlock(), createBlock(CommunityNodeFooter_default, {
|
|
1858
|
+
key: 6,
|
|
1859
|
+
"package-name": packageName.value,
|
|
1860
|
+
"show-manage": unref(useUsersStore)().isInstanceOwner
|
|
1861
|
+
}, null, 8, ["package-name", "show-manage"])) : createCommentVNode("", true)
|
|
1862
|
+
], 42, _hoisted_1);
|
|
1863
|
+
};
|
|
1864
|
+
}
|
|
1865
|
+
});
|
|
1866
|
+
var NodeSettings_vue_vue_type_style_index_0_lang_module_default = {
|
|
1867
|
+
header: "_header_l6e8w_123",
|
|
1868
|
+
featureRequest: "_featureRequest_l6e8w_127",
|
|
1869
|
+
uiBlockerNdvV2: "_uiBlockerNdvV2_l6e8w_141"
|
|
1870
|
+
};
|
|
1871
|
+
var NodeSettings_default = /* @__PURE__ */ __plugin_vue_export_helper_default(NodeSettings_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": NodeSettings_vue_vue_type_style_index_0_lang_module_default }], ["__scopeId", "data-v-8f0fa02d"]]);
|
|
1872
|
+
export { useNodeDocsUrl as n, FreeAiCreditsCallout_default as r, NodeSettings_default as t };
|