@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,616 @@
|
|
|
1
|
+
import { C as computed, Cn as toDisplayString, D as createElementBlock, E as createCommentVNode, Gt as unref, It as ref, M as createVNode, P as defineComponent, T as createBlock, _ as Fragment, bt as withCtx, et as openBlock, it as renderList, j as createTextVNode, ot as resolveComponent, st as resolveDirective, vn as normalizeClass, w as createBaseVNode, xt as withDirectives } from "./vue.runtime.esm-bundler-tP5dCd7J.js";
|
|
2
|
+
import { rt as useI18n } from "./core-CRbPymLT.js";
|
|
3
|
+
import { It as ElTag, Mt as ElDropdownItem, Nt as ElDropdownMenu, Sn as N8nSpinner_default, bn as N8nText_default, jt as ElDropdown, lt as N8nBadge_default, vn as N8nHeading_default, xn as N8nButton_default, xt as N8nIconButton_default } from "./src-jviYSG25.js";
|
|
4
|
+
import "./en-CF30SCh2.js";
|
|
5
|
+
import "./preload-helper-dyVz7ck7.js";
|
|
6
|
+
import { t as __plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BwBpWJRZ.js";
|
|
7
|
+
import { s as createEventBus } from "./truncate-C0KYt7i3.js";
|
|
8
|
+
import { P as useWorkflowsStore, h as useMessage, k as useTelemetry, ms as useSettingsStore, y as useToast } from "./builder.store-Czk2ipDE.js";
|
|
9
|
+
import "./empty-BuGRxzl4.js";
|
|
10
|
+
import { _ as useRoute } from "./get-BcEmeOxn.js";
|
|
11
|
+
import "./sanitize-html-CbW56HUN.js";
|
|
12
|
+
import "./CalendarDate-DgQUMbNo.js";
|
|
13
|
+
import "./path-browserify-RUt2u7iT.js";
|
|
14
|
+
import "./_MapCache-CcdIl4Ae.js";
|
|
15
|
+
import { Oo as getResourcePermissions, Ro as VIEWS, rs as MODAL_CONFIRM, yc as EnterpriseEditionFeature } from "./constants-C8OH4tTq.js";
|
|
16
|
+
import "./merge-DhuTk1HM.js";
|
|
17
|
+
import "./_baseOrderBy-N8Be_6z6.js";
|
|
18
|
+
import "./dateformat-hG8NERse.js";
|
|
19
|
+
import "./useDebounce-Br5_1ug-.js";
|
|
20
|
+
import { t as useExecutionsStore } from "./executions.store-B9uRYwgv.js";
|
|
21
|
+
import "./versions.store-B1z2OrLE.js";
|
|
22
|
+
import "./usePageRedirectionHelper-DjkznpX6.js";
|
|
23
|
+
import "./dateFormatter-ik4-9_9r.js";
|
|
24
|
+
import { t as useExecutionHelpers } from "./useExecutionHelpers-BgRRhpBM.js";
|
|
25
|
+
import "./TagsDropdown-Bvx_Hd6Q.js";
|
|
26
|
+
import { t as useExecutionDebugging } from "./useExecutionDebugging-8azMzbnd.js";
|
|
27
|
+
import { t as AnnotationTagsDropdown_ee_default } from "./AnnotationTagsDropdown.ee-BJ7N9lek.js";
|
|
28
|
+
import { t as WorkflowPreview_default } from "./WorkflowPreview-CXdvv4Nq.js";
|
|
29
|
+
var WorkflowExecutionAnnotationPanel_ee_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
30
|
+
__name: "WorkflowExecutionAnnotationPanel.ee",
|
|
31
|
+
props: { execution: {} },
|
|
32
|
+
setup(__props) {
|
|
33
|
+
const props = __props;
|
|
34
|
+
const workflowsStore = useWorkflowsStore();
|
|
35
|
+
const route = useRoute();
|
|
36
|
+
const i18n = useI18n();
|
|
37
|
+
const annotationDropdownRef = ref(null);
|
|
38
|
+
const isDropdownVisible = ref(false);
|
|
39
|
+
const workflowId = computed(() => route.params.name);
|
|
40
|
+
const workflowPermissions = computed(() => getResourcePermissions(workflowsStore.getWorkflowById(workflowId.value)?.scopes).workflow);
|
|
41
|
+
const customDataLength = computed(() => {
|
|
42
|
+
return props.execution?.customData ? Object.keys(props.execution?.customData).length : 0;
|
|
43
|
+
});
|
|
44
|
+
function onEllipsisButtonBlur(event) {
|
|
45
|
+
if (annotationDropdownRef.value && event.relatedTarget === null) annotationDropdownRef.value.handleClose();
|
|
46
|
+
}
|
|
47
|
+
function onDropdownVisibleChange(visible) {
|
|
48
|
+
isDropdownVisible.value = visible;
|
|
49
|
+
}
|
|
50
|
+
return (_ctx, _cache) => {
|
|
51
|
+
const _directive_n8n_html = resolveDirective("n8n-html");
|
|
52
|
+
return _ctx.execution ? (openBlock(), createBlock(unref(ElDropdown), {
|
|
53
|
+
key: 0,
|
|
54
|
+
ref_key: "annotationDropdownRef",
|
|
55
|
+
ref: annotationDropdownRef,
|
|
56
|
+
trigger: "click",
|
|
57
|
+
onVisibleChange: onDropdownVisibleChange
|
|
58
|
+
}, {
|
|
59
|
+
dropdown: withCtx(() => [createBaseVNode("div", {
|
|
60
|
+
ref: "container",
|
|
61
|
+
class: normalizeClass(["execution-annotation-panel", _ctx.$style.container]),
|
|
62
|
+
"data-test-id": "execution-annotation-panel"
|
|
63
|
+
}, [createBaseVNode("div", { class: normalizeClass(_ctx.$style.section) }, [createBaseVNode("div", { class: normalizeClass(_ctx.$style.heading) }, [createVNode(unref(N8nHeading_default), {
|
|
64
|
+
tag: "h3",
|
|
65
|
+
size: "small",
|
|
66
|
+
color: "text-dark"
|
|
67
|
+
}, {
|
|
68
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(i18n).baseText("generic.annotationData")), 1)]),
|
|
69
|
+
_: 1
|
|
70
|
+
})], 2), _ctx.execution?.customData && Object.keys(_ctx.execution?.customData).length > 0 ? (openBlock(), createElementBlock("div", {
|
|
71
|
+
key: 0,
|
|
72
|
+
class: normalizeClass(_ctx.$style.metadata)
|
|
73
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(Object.keys(_ctx.execution?.customData), (attr) => {
|
|
74
|
+
return openBlock(), createElementBlock("div", {
|
|
75
|
+
key: attr,
|
|
76
|
+
class: normalizeClass(_ctx.$style.customDataEntry)
|
|
77
|
+
}, [createVNode(unref(N8nText_default), {
|
|
78
|
+
class: normalizeClass(_ctx.$style.key),
|
|
79
|
+
size: "small",
|
|
80
|
+
color: "text-base"
|
|
81
|
+
}, {
|
|
82
|
+
default: withCtx(() => [createTextVNode(toDisplayString(attr), 1)]),
|
|
83
|
+
_: 2
|
|
84
|
+
}, 1032, ["class"]), createVNode(unref(N8nText_default), {
|
|
85
|
+
class: normalizeClass(_ctx.$style.value),
|
|
86
|
+
size: "small",
|
|
87
|
+
color: "text-base"
|
|
88
|
+
}, {
|
|
89
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.execution?.customData[attr]), 1)]),
|
|
90
|
+
_: 2
|
|
91
|
+
}, 1032, ["class"])], 2);
|
|
92
|
+
}), 128))], 2)) : (openBlock(), createElementBlock("div", {
|
|
93
|
+
key: 1,
|
|
94
|
+
class: normalizeClass(_ctx.$style.noResultsContainer),
|
|
95
|
+
"data-test-id": "execution-annotation-data-empty"
|
|
96
|
+
}, [createVNode(unref(N8nText_default), {
|
|
97
|
+
color: "text-base",
|
|
98
|
+
size: "small",
|
|
99
|
+
align: "center"
|
|
100
|
+
}, {
|
|
101
|
+
default: withCtx(() => [withDirectives(createBaseVNode("span", null, null, 512), [[_directive_n8n_html, unref(i18n).baseText("executionAnnotationView.data.notFound")]])]),
|
|
102
|
+
_: 1
|
|
103
|
+
})], 2))], 2)], 2)]),
|
|
104
|
+
default: withCtx(() => [createVNode(unref(N8nButton_default), {
|
|
105
|
+
title: unref(i18n).baseText("executionDetails.additionalActions"),
|
|
106
|
+
disabled: !workflowPermissions.value.update,
|
|
107
|
+
icon: "list-checks",
|
|
108
|
+
class: normalizeClass({
|
|
109
|
+
[_ctx.$style.highlightDataButton]: true,
|
|
110
|
+
[_ctx.$style.highlightDataButtonActive]: customDataLength.value > 0,
|
|
111
|
+
[_ctx.$style.highlightDataButtonOpen]: isDropdownVisible.value
|
|
112
|
+
}),
|
|
113
|
+
size: "small",
|
|
114
|
+
type: "secondary",
|
|
115
|
+
"data-test-id": "execution-preview-ellipsis-button",
|
|
116
|
+
onBlur: onEllipsisButtonBlur
|
|
117
|
+
}, {
|
|
118
|
+
default: withCtx(() => [customDataLength.value > 0 ? (openBlock(), createBlock(unref(N8nBadge_default), {
|
|
119
|
+
key: 0,
|
|
120
|
+
class: normalizeClass(_ctx.$style.badge),
|
|
121
|
+
theme: "primary"
|
|
122
|
+
}, {
|
|
123
|
+
default: withCtx(() => [createTextVNode(toDisplayString(customDataLength.value.toString()), 1)]),
|
|
124
|
+
_: 1
|
|
125
|
+
}, 8, ["class"])) : createCommentVNode("", true)]),
|
|
126
|
+
_: 1
|
|
127
|
+
}, 8, [
|
|
128
|
+
"title",
|
|
129
|
+
"disabled",
|
|
130
|
+
"class"
|
|
131
|
+
])]),
|
|
132
|
+
_: 1
|
|
133
|
+
}, 512)) : createCommentVNode("", true);
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
var WorkflowExecutionAnnotationPanel_ee_vue_vue_type_style_index_0_lang_module_default = {
|
|
138
|
+
highlightDataButton: "_highlightDataButton_6a6tl_123",
|
|
139
|
+
highlightDataButtonActive: "_highlightDataButtonActive_6a6tl_128",
|
|
140
|
+
highlightDataButtonOpen: "_highlightDataButtonOpen_6a6tl_132",
|
|
141
|
+
badge: "_badge_6a6tl_138",
|
|
142
|
+
container: "_container_6a6tl_142",
|
|
143
|
+
section: "_section_6a6tl_154",
|
|
144
|
+
metadata: "_metadata_6a6tl_163",
|
|
145
|
+
heading: "_heading_6a6tl_167",
|
|
146
|
+
controls: "_controls_6a6tl_174",
|
|
147
|
+
customDataEntry: "_customDataEntry_6a6tl_186",
|
|
148
|
+
key: "_key_6a6tl_193",
|
|
149
|
+
noResultsContainer: "_noResultsContainer_6a6tl_197",
|
|
150
|
+
"execution-annotation-panel": "_execution-annotation-panel_6a6tl_202",
|
|
151
|
+
"el-skeleton__item": "_el-skeleton__item_6a6tl_202"
|
|
152
|
+
};
|
|
153
|
+
var WorkflowExecutionAnnotationPanel_ee_default = /* @__PURE__ */ __plugin_vue_export_helper_default(WorkflowExecutionAnnotationPanel_ee_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": WorkflowExecutionAnnotationPanel_ee_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
154
|
+
var _hoisted_1$1 = { key: 1 };
|
|
155
|
+
var WorkflowExecutionAnnotationTags_ee_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
156
|
+
__name: "WorkflowExecutionAnnotationTags.ee",
|
|
157
|
+
props: { execution: {} },
|
|
158
|
+
setup(__props) {
|
|
159
|
+
const props = __props;
|
|
160
|
+
const locale = useI18n();
|
|
161
|
+
const telemetry = useTelemetry();
|
|
162
|
+
const { showError } = useToast();
|
|
163
|
+
const executionsStore = useExecutionsStore();
|
|
164
|
+
const tagIds = computed(() => props.execution.annotation?.tags.map((tag) => tag.id) ?? []);
|
|
165
|
+
const tags$1 = computed(() => props.execution.annotation?.tags);
|
|
166
|
+
const tagsEventBus = createEventBus();
|
|
167
|
+
const isTagsEditEnabled = ref(false);
|
|
168
|
+
const appliedTagIds = ref([]);
|
|
169
|
+
const tagsSaving = ref(false);
|
|
170
|
+
const tagsHasChanged = (prev, curr) => {
|
|
171
|
+
if (prev.length !== curr.length) return true;
|
|
172
|
+
const set = new Set(prev);
|
|
173
|
+
return curr.reduce((acc, val) => acc || !set.has(val), false);
|
|
174
|
+
};
|
|
175
|
+
const onTagsEditEnable = () => {
|
|
176
|
+
appliedTagIds.value = tagIds.value;
|
|
177
|
+
isTagsEditEnabled.value = true;
|
|
178
|
+
tagsEventBus.emit("focus");
|
|
179
|
+
};
|
|
180
|
+
const onTagsBlur = async () => {
|
|
181
|
+
if (!props.execution) return;
|
|
182
|
+
const currentTagIds = tagIds.value ?? [];
|
|
183
|
+
const newTagIds = appliedTagIds.value;
|
|
184
|
+
if (!tagsHasChanged(currentTagIds, newTagIds)) {
|
|
185
|
+
isTagsEditEnabled.value = false;
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
if (tagsSaving.value) return;
|
|
189
|
+
tagsSaving.value = true;
|
|
190
|
+
try {
|
|
191
|
+
await executionsStore.annotateExecution(props.execution.id, { tags: newTagIds });
|
|
192
|
+
if (newTagIds.length > 0) telemetry.track("User added execution annotation tag", {
|
|
193
|
+
tag_ids: newTagIds,
|
|
194
|
+
execution_id: props.execution.id
|
|
195
|
+
});
|
|
196
|
+
} catch (e) {
|
|
197
|
+
showError(e, "executionAnnotationView.tag.error");
|
|
198
|
+
}
|
|
199
|
+
tagsSaving.value = false;
|
|
200
|
+
isTagsEditEnabled.value = false;
|
|
201
|
+
};
|
|
202
|
+
const onTagsEditEsc = () => {
|
|
203
|
+
isTagsEditEnabled.value = false;
|
|
204
|
+
};
|
|
205
|
+
return (_ctx, _cache) => {
|
|
206
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass(_ctx.$style.executionDetailsTags) }, [createBaseVNode("span", {
|
|
207
|
+
class: normalizeClass(_ctx.$style.tags),
|
|
208
|
+
"data-test-id": "annotation-tags-container"
|
|
209
|
+
}, [isTagsEditEnabled.value ? (openBlock(), createBlock(AnnotationTagsDropdown_ee_default, {
|
|
210
|
+
key: 0,
|
|
211
|
+
ref: "dropdown",
|
|
212
|
+
modelValue: appliedTagIds.value,
|
|
213
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => appliedTagIds.value = $event),
|
|
214
|
+
"create-enabled": true,
|
|
215
|
+
"event-bus": unref(tagsEventBus),
|
|
216
|
+
placeholder: unref(locale).baseText("executionAnnotationView.chooseOrCreateATag"),
|
|
217
|
+
class: "tags-edit",
|
|
218
|
+
"data-test-id": "workflow-tags-dropdown",
|
|
219
|
+
onBlur: onTagsBlur,
|
|
220
|
+
onEsc: onTagsEditEsc
|
|
221
|
+
}, null, 8, [
|
|
222
|
+
"modelValue",
|
|
223
|
+
"event-bus",
|
|
224
|
+
"placeholder"
|
|
225
|
+
])) : tagIds.value.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_1$1, [createVNode(unref(N8nButton_default), {
|
|
226
|
+
class: normalizeClass([_ctx.$style.addTagButton, "clickable"]),
|
|
227
|
+
label: unref(locale).baseText("executionAnnotationView.addTag"),
|
|
228
|
+
type: "secondary",
|
|
229
|
+
size: "mini",
|
|
230
|
+
outline: false,
|
|
231
|
+
text: true,
|
|
232
|
+
"data-test-id": "new-tag-link",
|
|
233
|
+
icon: "plus",
|
|
234
|
+
onClick: onTagsEditEnable
|
|
235
|
+
}, null, 8, ["class", "label"])])) : (openBlock(), createElementBlock("span", {
|
|
236
|
+
key: 2,
|
|
237
|
+
class: normalizeClass(["tags-container", _ctx.$style.tagsContainer]),
|
|
238
|
+
"data-test-id": "execution-annotation-tags",
|
|
239
|
+
onClick: onTagsEditEnable
|
|
240
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(tags$1.value, (tag) => {
|
|
241
|
+
return openBlock(), createElementBlock("span", {
|
|
242
|
+
key: tag.id,
|
|
243
|
+
class: "clickable"
|
|
244
|
+
}, [createVNode(unref(ElTag), {
|
|
245
|
+
title: tag.name,
|
|
246
|
+
type: "info",
|
|
247
|
+
size: "small",
|
|
248
|
+
"disable-transitions": true
|
|
249
|
+
}, {
|
|
250
|
+
default: withCtx(() => [createTextVNode(toDisplayString(tag.name), 1)]),
|
|
251
|
+
_: 2
|
|
252
|
+
}, 1032, ["title"])]);
|
|
253
|
+
}), 128)), createBaseVNode("span", { class: normalizeClass(_ctx.$style.addTagWrapper) }, [createVNode(unref(N8nButton_default), {
|
|
254
|
+
class: normalizeClass([
|
|
255
|
+
_ctx.$style.addTagButton,
|
|
256
|
+
_ctx.$style.addTagButtonIconOnly,
|
|
257
|
+
"clickable"
|
|
258
|
+
]),
|
|
259
|
+
type: "secondary",
|
|
260
|
+
size: "mini",
|
|
261
|
+
outline: false,
|
|
262
|
+
text: true,
|
|
263
|
+
"data-test-id": "new-tag-link",
|
|
264
|
+
icon: "plus",
|
|
265
|
+
onClick: onTagsEditEnable
|
|
266
|
+
}, null, 8, ["class"])], 2)], 2))], 2)], 2);
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
var WorkflowExecutionAnnotationTags_ee_vue_vue_type_style_index_0_lang_module_default = {
|
|
271
|
+
tags: "_tags_50en8_123",
|
|
272
|
+
addTagButton: "_addTagButton_50en8_128",
|
|
273
|
+
addTagButtonIconOnly: "_addTagButtonIconOnly_50en8_149",
|
|
274
|
+
tagsContainer: "_tagsContainer_50en8_154"
|
|
275
|
+
};
|
|
276
|
+
var WorkflowExecutionAnnotationTags_ee_default = /* @__PURE__ */ __plugin_vue_export_helper_default(WorkflowExecutionAnnotationTags_ee_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": WorkflowExecutionAnnotationTags_ee_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
277
|
+
var VoteButtons_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
278
|
+
__name: "VoteButtons",
|
|
279
|
+
props: { vote: {} },
|
|
280
|
+
emits: ["vote-click"],
|
|
281
|
+
setup(__props, { emit: __emit }) {
|
|
282
|
+
const emit = __emit;
|
|
283
|
+
const onVoteClick = (vote) => {
|
|
284
|
+
emit("vote-click", vote);
|
|
285
|
+
};
|
|
286
|
+
return (_ctx, _cache) => {
|
|
287
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass(_ctx.$style.ratingIcon) }, [createVNode(unref(N8nIconButton_default), {
|
|
288
|
+
class: normalizeClass([_ctx.$style.icon, _ctx.vote === "up" && _ctx.$style.up]),
|
|
289
|
+
type: "tertiary",
|
|
290
|
+
text: "",
|
|
291
|
+
size: "small",
|
|
292
|
+
icon: "thumbs-up",
|
|
293
|
+
onClick: _cache[0] || (_cache[0] = ($event) => onVoteClick("up"))
|
|
294
|
+
}, null, 8, ["class"]), createVNode(unref(N8nIconButton_default), {
|
|
295
|
+
class: normalizeClass([_ctx.$style.icon, _ctx.vote === "down" && _ctx.$style.down]),
|
|
296
|
+
type: "tertiary",
|
|
297
|
+
text: "",
|
|
298
|
+
size: "small",
|
|
299
|
+
icon: "thumbs-down",
|
|
300
|
+
onClick: _cache[1] || (_cache[1] = ($event) => onVoteClick("down"))
|
|
301
|
+
}, null, 8, ["class"])], 2);
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
});
|
|
305
|
+
var VoteButtons_vue_vue_type_style_index_0_lang_module_default = {
|
|
306
|
+
ratingIcon: "_ratingIcon_w647n_123",
|
|
307
|
+
icon: "_icon_w647n_127",
|
|
308
|
+
up: "_up_w647n_130",
|
|
309
|
+
down: "_down_w647n_130"
|
|
310
|
+
};
|
|
311
|
+
var VoteButtons_default = /* @__PURE__ */ __plugin_vue_export_helper_default(VoteButtons_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": VoteButtons_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
312
|
+
var _hoisted_1 = ["data-test-id"];
|
|
313
|
+
var _hoisted_2 = { class: "retry-button" };
|
|
314
|
+
var WorkflowExecutionsPreview_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
315
|
+
__name: "WorkflowExecutionsPreview",
|
|
316
|
+
props: { execution: {} },
|
|
317
|
+
emits: [
|
|
318
|
+
"deleteCurrentExecution",
|
|
319
|
+
"retryExecution",
|
|
320
|
+
"stopExecution"
|
|
321
|
+
],
|
|
322
|
+
setup(__props, { emit: __emit }) {
|
|
323
|
+
const props = __props;
|
|
324
|
+
const emit = __emit;
|
|
325
|
+
const route = useRoute();
|
|
326
|
+
const locale = useI18n();
|
|
327
|
+
const { showError } = useToast();
|
|
328
|
+
const executionHelpers = useExecutionHelpers();
|
|
329
|
+
const message = useMessage();
|
|
330
|
+
const executionDebugging = useExecutionDebugging();
|
|
331
|
+
const workflowsStore = useWorkflowsStore();
|
|
332
|
+
const settingsStore = useSettingsStore();
|
|
333
|
+
const retryDropdownRef = ref(null);
|
|
334
|
+
const workflowId = computed(() => route.params.name);
|
|
335
|
+
const workflowPermissions = computed(() => getResourcePermissions(workflowsStore.getWorkflowById(workflowId.value)?.scopes).workflow);
|
|
336
|
+
const executionId = computed(() => route.params.executionId);
|
|
337
|
+
const nodeId = computed(() => route.params.nodeId);
|
|
338
|
+
const executionUIDetails = computed(() => props.execution ? executionHelpers.getUIDetails(props.execution) : null);
|
|
339
|
+
const debugButtonData = computed(() => props.execution?.status === "success" ? {
|
|
340
|
+
text: locale.baseText("executionsList.debug.button.copyToEditor"),
|
|
341
|
+
type: "secondary"
|
|
342
|
+
} : {
|
|
343
|
+
text: locale.baseText("executionsList.debug.button.debugInEditor"),
|
|
344
|
+
type: "primary"
|
|
345
|
+
});
|
|
346
|
+
const isRetriable = computed(() => !!props.execution && executionHelpers.isExecutionRetriable(props.execution));
|
|
347
|
+
const isAnnotationEnabled = computed(() => settingsStore.isEnterpriseFeatureEnabled[EnterpriseEditionFeature.AdvancedExecutionFilters]);
|
|
348
|
+
const hasAnnotation = computed(() => !!props.execution?.annotation && (props.execution?.annotation.vote || props.execution?.annotation.tags.length > 0));
|
|
349
|
+
const executionsStore = useExecutionsStore();
|
|
350
|
+
const activeExecution = computed(() => {
|
|
351
|
+
return executionsStore.activeExecution;
|
|
352
|
+
});
|
|
353
|
+
const vote = computed(() => activeExecution.value?.annotation?.vote || null);
|
|
354
|
+
async function onDeleteExecution() {
|
|
355
|
+
const confirmationText = [hasAnnotation.value && locale.baseText("executionDetails.confirmMessage.annotationsNote"), locale.baseText("executionDetails.confirmMessage.message")].filter(Boolean).join(" ");
|
|
356
|
+
if (await message.confirm(confirmationText, locale.baseText("executionDetails.confirmMessage.headline"), {
|
|
357
|
+
type: "warning",
|
|
358
|
+
confirmButtonText: locale.baseText("executionDetails.confirmMessage.confirmButtonText"),
|
|
359
|
+
cancelButtonText: ""
|
|
360
|
+
}) !== "confirm") return;
|
|
361
|
+
emit("deleteCurrentExecution");
|
|
362
|
+
}
|
|
363
|
+
function handleRetryClick(command) {
|
|
364
|
+
if (props.execution) emit("retryExecution", {
|
|
365
|
+
execution: props.execution,
|
|
366
|
+
command
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
function handleStopClick() {
|
|
370
|
+
emit("stopExecution");
|
|
371
|
+
}
|
|
372
|
+
function onRetryButtonBlur(event) {
|
|
373
|
+
if (retryDropdownRef.value && event.relatedTarget === null) retryDropdownRef.value.handleClose();
|
|
374
|
+
}
|
|
375
|
+
const onVoteClick = async (voteValue) => {
|
|
376
|
+
if (!activeExecution.value) return;
|
|
377
|
+
const voteToSet = voteValue === vote.value ? null : voteValue;
|
|
378
|
+
try {
|
|
379
|
+
await executionsStore.annotateExecution(activeExecution.value.id, { vote: voteToSet });
|
|
380
|
+
} catch (e) {
|
|
381
|
+
showError(e, "executionAnnotationView.vote.error");
|
|
382
|
+
}
|
|
383
|
+
};
|
|
384
|
+
return (_ctx, _cache) => {
|
|
385
|
+
const _component_RouterLink = resolveComponent("RouterLink");
|
|
386
|
+
return executionUIDetails.value?.name === "new" ? (openBlock(), createElementBlock("div", {
|
|
387
|
+
key: 0,
|
|
388
|
+
class: normalizeClass(_ctx.$style.newInfo)
|
|
389
|
+
}, [createVNode(unref(N8nText_default), {
|
|
390
|
+
class: normalizeClass(_ctx.$style.newMessage),
|
|
391
|
+
color: "text-light"
|
|
392
|
+
}, {
|
|
393
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("executionDetails.newMessage")), 1)]),
|
|
394
|
+
_: 1
|
|
395
|
+
}, 8, ["class"]), createVNode(unref(N8nButton_default), {
|
|
396
|
+
class: "mt-l",
|
|
397
|
+
type: "tertiary",
|
|
398
|
+
onClick: handleStopClick
|
|
399
|
+
}, {
|
|
400
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("executionsList.stopExecution")), 1)]),
|
|
401
|
+
_: 1
|
|
402
|
+
})], 2)) : executionUIDetails.value?.name === "running" ? (openBlock(), createElementBlock("div", {
|
|
403
|
+
key: 1,
|
|
404
|
+
class: normalizeClass(_ctx.$style.runningInfo)
|
|
405
|
+
}, [
|
|
406
|
+
createBaseVNode("div", { class: normalizeClass(_ctx.$style.spinner) }, [createVNode(unref(N8nSpinner_default), { type: "ring" })], 2),
|
|
407
|
+
createVNode(unref(N8nText_default), {
|
|
408
|
+
class: normalizeClass(_ctx.$style.runningMessage),
|
|
409
|
+
color: "text-light"
|
|
410
|
+
}, {
|
|
411
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("executionDetails.runningMessage")), 1)]),
|
|
412
|
+
_: 1
|
|
413
|
+
}, 8, ["class"]),
|
|
414
|
+
createVNode(unref(N8nButton_default), {
|
|
415
|
+
"data-test-id": "stop-execution",
|
|
416
|
+
class: "mt-l",
|
|
417
|
+
type: "tertiary",
|
|
418
|
+
disabled: !workflowPermissions.value.execute,
|
|
419
|
+
onClick: handleStopClick
|
|
420
|
+
}, {
|
|
421
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("executionsList.stopExecution")), 1)]),
|
|
422
|
+
_: 1
|
|
423
|
+
}, 8, ["disabled"])
|
|
424
|
+
], 2)) : executionUIDetails.value ? (openBlock(), createElementBlock("div", {
|
|
425
|
+
key: 2,
|
|
426
|
+
class: normalizeClass(_ctx.$style.previewContainer)
|
|
427
|
+
}, [_ctx.execution ? (openBlock(), createElementBlock("div", {
|
|
428
|
+
key: 0,
|
|
429
|
+
class: normalizeClass(_ctx.$style.executionDetails),
|
|
430
|
+
"data-test-id": `execution-preview-details-${executionId.value}`
|
|
431
|
+
}, [createBaseVNode("div", { class: normalizeClass(_ctx.$style.executionDetailsLeft) }, [
|
|
432
|
+
createBaseVNode("div", { class: normalizeClass(_ctx.$style.executionTitle) }, [createVNode(unref(N8nText_default), {
|
|
433
|
+
size: "large",
|
|
434
|
+
color: "text-dark",
|
|
435
|
+
bold: true,
|
|
436
|
+
"data-test-id": "execution-time"
|
|
437
|
+
}, {
|
|
438
|
+
default: withCtx(() => [createTextVNode(toDisplayString(executionUIDetails.value?.startTime), 1)]),
|
|
439
|
+
_: 1
|
|
440
|
+
}), isAnnotationEnabled.value && _ctx.execution ? (openBlock(), createBlock(VoteButtons_default, {
|
|
441
|
+
key: 0,
|
|
442
|
+
"data-test-id": "execution-preview-vote-buttons",
|
|
443
|
+
vote: vote.value,
|
|
444
|
+
class: normalizeClass(_ctx.$style.voteButtons),
|
|
445
|
+
onVoteClick
|
|
446
|
+
}, null, 8, ["vote", "class"])) : createCommentVNode("", true)], 2),
|
|
447
|
+
createBaseVNode("div", { class: normalizeClass(_ctx.$style.executionDetailsInfo) }, [
|
|
448
|
+
executionUIDetails.value?.name === "running" ? (openBlock(), createBlock(unref(N8nSpinner_default), {
|
|
449
|
+
key: 0,
|
|
450
|
+
size: "small",
|
|
451
|
+
class: normalizeClass([_ctx.$style.spinner, "mr-4xs"])
|
|
452
|
+
}, null, 8, ["class"])) : createCommentVNode("", true),
|
|
453
|
+
createVNode(unref(N8nText_default), {
|
|
454
|
+
size: "medium",
|
|
455
|
+
class: normalizeClass([_ctx.$style.status, _ctx.$style[executionUIDetails.value.name]]),
|
|
456
|
+
"data-test-id": "execution-preview-label"
|
|
457
|
+
}, {
|
|
458
|
+
default: withCtx(() => [createTextVNode(toDisplayString(executionUIDetails.value.label), 1)]),
|
|
459
|
+
_: 1
|
|
460
|
+
}, 8, ["class"]),
|
|
461
|
+
_cache[1] || (_cache[1] = createTextVNode(" " + toDisplayString(" ") + " ")),
|
|
462
|
+
executionUIDetails.value?.showTimestamp === false ? (openBlock(), createBlock(unref(N8nText_default), {
|
|
463
|
+
key: 1,
|
|
464
|
+
color: "text-base",
|
|
465
|
+
size: "medium"
|
|
466
|
+
}, {
|
|
467
|
+
default: withCtx(() => [createTextVNode(" | ID#" + toDisplayString(_ctx.execution.id), 1)]),
|
|
468
|
+
_: 1
|
|
469
|
+
})) : executionUIDetails.value.name === "running" ? (openBlock(), createBlock(unref(N8nText_default), {
|
|
470
|
+
key: 2,
|
|
471
|
+
color: "text-base",
|
|
472
|
+
size: "medium"
|
|
473
|
+
}, {
|
|
474
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("executionDetails.runningTimeRunning", { interpolate: { time: executionUIDetails.value?.runningTime } })) + " | ID#" + toDisplayString(_ctx.execution.id), 1)]),
|
|
475
|
+
_: 1
|
|
476
|
+
})) : executionUIDetails.value.name !== "waiting" ? (openBlock(), createBlock(unref(N8nText_default), {
|
|
477
|
+
key: 3,
|
|
478
|
+
color: "text-base",
|
|
479
|
+
size: "medium",
|
|
480
|
+
"data-test-id": "execution-preview-id"
|
|
481
|
+
}, {
|
|
482
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("executionDetails.runningTimeFinished", { interpolate: { time: executionUIDetails.value?.runningTime ?? "unknown" } })) + " | ID#" + toDisplayString(_ctx.execution.id), 1)]),
|
|
483
|
+
_: 1
|
|
484
|
+
})) : createCommentVNode("", true)
|
|
485
|
+
], 2),
|
|
486
|
+
_ctx.execution.mode === "retry" ? (openBlock(), createElementBlock("div", {
|
|
487
|
+
key: 0,
|
|
488
|
+
class: normalizeClass(_ctx.$style.executionDetailsRetry)
|
|
489
|
+
}, [createVNode(unref(N8nText_default), {
|
|
490
|
+
color: "text-base",
|
|
491
|
+
size: "small"
|
|
492
|
+
}, {
|
|
493
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("executionDetails.retry")) + " ", 1), createVNode(_component_RouterLink, {
|
|
494
|
+
class: normalizeClass(_ctx.$style.executionLink),
|
|
495
|
+
to: {
|
|
496
|
+
name: unref(VIEWS).EXECUTION_PREVIEW,
|
|
497
|
+
params: {
|
|
498
|
+
workflowId: _ctx.execution.workflowId,
|
|
499
|
+
executionId: _ctx.execution.retryOf
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
}, {
|
|
503
|
+
default: withCtx(() => [createTextVNode(" #" + toDisplayString(_ctx.execution.retryOf), 1)]),
|
|
504
|
+
_: 1
|
|
505
|
+
}, 8, ["class", "to"])]),
|
|
506
|
+
_: 1
|
|
507
|
+
})], 2)) : createCommentVNode("", true),
|
|
508
|
+
isAnnotationEnabled.value && _ctx.execution ? (openBlock(), createBlock(WorkflowExecutionAnnotationTags_ee_default, {
|
|
509
|
+
key: 1,
|
|
510
|
+
execution: _ctx.execution
|
|
511
|
+
}, null, 8, ["execution"])) : createCommentVNode("", true)
|
|
512
|
+
], 2), createBaseVNode("div", { class: normalizeClass(_ctx.$style.actions) }, [
|
|
513
|
+
createVNode(_component_RouterLink, { to: {
|
|
514
|
+
name: unref(VIEWS).EXECUTION_DEBUG,
|
|
515
|
+
params: {
|
|
516
|
+
name: _ctx.execution.workflowId,
|
|
517
|
+
executionId: _ctx.execution.id
|
|
518
|
+
}
|
|
519
|
+
} }, {
|
|
520
|
+
default: withCtx(() => [createVNode(unref(N8nButton_default), {
|
|
521
|
+
size: "medium",
|
|
522
|
+
type: debugButtonData.value.type,
|
|
523
|
+
class: normalizeClass(_ctx.$style.debugLink),
|
|
524
|
+
disabled: !workflowPermissions.value.update
|
|
525
|
+
}, {
|
|
526
|
+
default: withCtx(() => [createBaseVNode("span", {
|
|
527
|
+
"data-test-id": "execution-debug-button",
|
|
528
|
+
onClick: _cache[0] || (_cache[0] = (...args) => unref(executionDebugging).handleDebugLinkClick && unref(executionDebugging).handleDebugLinkClick(...args))
|
|
529
|
+
}, toDisplayString(debugButtonData.value.text), 1)]),
|
|
530
|
+
_: 1
|
|
531
|
+
}, 8, [
|
|
532
|
+
"type",
|
|
533
|
+
"class",
|
|
534
|
+
"disabled"
|
|
535
|
+
])]),
|
|
536
|
+
_: 1
|
|
537
|
+
}, 8, ["to"]),
|
|
538
|
+
isRetriable.value ? (openBlock(), createBlock(unref(ElDropdown), {
|
|
539
|
+
key: 0,
|
|
540
|
+
ref: "retryDropdown",
|
|
541
|
+
trigger: "click",
|
|
542
|
+
onCommand: handleRetryClick
|
|
543
|
+
}, {
|
|
544
|
+
dropdown: withCtx(() => [createVNode(unref(ElDropdownMenu), null, {
|
|
545
|
+
default: withCtx(() => [createVNode(unref(ElDropdownItem), { command: "current-workflow" }, {
|
|
546
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("executionsList.retryWithCurrentlySavedWorkflow")), 1)]),
|
|
547
|
+
_: 1
|
|
548
|
+
}), createVNode(unref(ElDropdownItem), { command: "original-workflow" }, {
|
|
549
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("executionsList.retryWithOriginalWorkflow")), 1)]),
|
|
550
|
+
_: 1
|
|
551
|
+
})]),
|
|
552
|
+
_: 1
|
|
553
|
+
})]),
|
|
554
|
+
default: withCtx(() => [createBaseVNode("span", _hoisted_2, [createVNode(unref(N8nIconButton_default), {
|
|
555
|
+
size: "medium",
|
|
556
|
+
type: "tertiary",
|
|
557
|
+
title: unref(locale).baseText("executionsList.retryExecution"),
|
|
558
|
+
disabled: !workflowPermissions.value.update,
|
|
559
|
+
icon: "redo-2",
|
|
560
|
+
"data-test-id": "execution-preview-retry-button",
|
|
561
|
+
onBlur: onRetryButtonBlur
|
|
562
|
+
}, null, 8, ["title", "disabled"])])]),
|
|
563
|
+
_: 1
|
|
564
|
+
}, 512)) : createCommentVNode("", true),
|
|
565
|
+
isAnnotationEnabled.value && activeExecution.value ? (openBlock(), createBlock(WorkflowExecutionAnnotationPanel_ee_default, {
|
|
566
|
+
key: 1,
|
|
567
|
+
execution: activeExecution.value
|
|
568
|
+
}, null, 8, ["execution"])) : createCommentVNode("", true),
|
|
569
|
+
createVNode(unref(N8nIconButton_default), {
|
|
570
|
+
title: unref(locale).baseText("executionDetails.deleteExecution"),
|
|
571
|
+
disabled: !workflowPermissions.value.update,
|
|
572
|
+
icon: "trash-2",
|
|
573
|
+
size: "medium",
|
|
574
|
+
type: "tertiary",
|
|
575
|
+
"data-test-id": "execution-preview-delete-button",
|
|
576
|
+
onClick: onDeleteExecution
|
|
577
|
+
}, null, 8, ["title", "disabled"])
|
|
578
|
+
], 2)], 10, _hoisted_1)) : createCommentVNode("", true), (openBlock(), createBlock(WorkflowPreview_default, {
|
|
579
|
+
key: executionId.value,
|
|
580
|
+
mode: "execution",
|
|
581
|
+
"loader-type": "spinner",
|
|
582
|
+
"execution-id": executionId.value,
|
|
583
|
+
"execution-mode": _ctx.execution?.mode || "",
|
|
584
|
+
"node-id": nodeId.value
|
|
585
|
+
}, null, 8, [
|
|
586
|
+
"execution-id",
|
|
587
|
+
"execution-mode",
|
|
588
|
+
"node-id"
|
|
589
|
+
]))], 2)) : createCommentVNode("", true);
|
|
590
|
+
};
|
|
591
|
+
}
|
|
592
|
+
});
|
|
593
|
+
var WorkflowExecutionsPreview_vue_vue_type_style_index_0_lang_module_default = {
|
|
594
|
+
previewContainer: "_previewContainer_152nc_123",
|
|
595
|
+
executionDetails: "_executionDetails_152nc_129",
|
|
596
|
+
executionDetailsLeft: "_executionDetailsLeft_152nc_147",
|
|
597
|
+
executionTitle: "_executionTitle_152nc_153",
|
|
598
|
+
voteButtons: "_voteButtons_152nc_159",
|
|
599
|
+
spinner: "_spinner_152nc_163",
|
|
600
|
+
running: "_running_152nc_169",
|
|
601
|
+
waiting: "_waiting_152nc_174",
|
|
602
|
+
success: "_success_152nc_178",
|
|
603
|
+
error: "_error_152nc_182",
|
|
604
|
+
newInfo: "_newInfo_152nc_186",
|
|
605
|
+
runningInfo: "_runningInfo_152nc_187",
|
|
606
|
+
newMessage: "_newMessage_152nc_194",
|
|
607
|
+
runningMessage: "_runningMessage_152nc_195",
|
|
608
|
+
debugLink: "_debugLink_152nc_201",
|
|
609
|
+
actions: "_actions_152nc_206",
|
|
610
|
+
highlightDataButton: "_highlightDataButton_152nc_211",
|
|
611
|
+
highlightDataButtonActive: "_highlightDataButtonActive_152nc_216",
|
|
612
|
+
highlightDataButtonOpen: "_highlightDataButtonOpen_152nc_220",
|
|
613
|
+
badge: "_badge_152nc_226"
|
|
614
|
+
};
|
|
615
|
+
var WorkflowExecutionsPreview_default = /* @__PURE__ */ __plugin_vue_export_helper_default(WorkflowExecutionsPreview_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": WorkflowExecutionsPreview_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
616
|
+
export { WorkflowExecutionsPreview_default as default };
|