@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.
Files changed (310) hide show
  1. package/.stylelintcache +1 -0
  2. package/README.md +59 -0
  3. package/biome.jsonc +8 -0
  4. package/build.log +55 -0
  5. package/data/node-popularity.json +3998 -0
  6. package/dist/assets/AddDataTableModal-UINkk54_.js +1555 -0
  7. package/dist/assets/AgentEditorModal-CVww87TJ.js +358 -0
  8. package/dist/assets/Alert-Dy86dyOr.js +102 -0
  9. package/dist/assets/AnimatedSpinner-DmPN4poP.js +15 -0
  10. package/dist/assets/AnnotationTagsDropdown.ee-BJ7N9lek.js +71 -0
  11. package/dist/assets/AuthView-D2LWHrMp.js +106 -0
  12. package/dist/assets/BottomMenu-CIQiK_dJ.js +532 -0
  13. package/dist/assets/CalendarDate-DgQUMbNo.js +875 -0
  14. package/dist/assets/ChangePasswordView-Z6tUkw0u.js +133 -0
  15. package/dist/assets/ChatAgentAvatar-50YBnv3N.js +67 -0
  16. package/dist/assets/ChatFile-xZxmc2nV.js +146 -0
  17. package/dist/assets/ChatLayout-CTE_5SiM.js +96 -0
  18. package/dist/assets/ChatPersonalAgentsView-BGpHk03K.js +149 -0
  19. package/dist/assets/ChatSidebar-BkVwIypC.js +528 -0
  20. package/dist/assets/ChatView-BbbdeU9x.js +1559 -0
  21. package/dist/assets/ChatWorkflowAgentsView-BtunOxlC.js +116 -0
  22. package/dist/assets/CollectionParameter-BdcPG1lu.js +52 -0
  23. package/dist/assets/CommitMonoVariable-ytizKI8U.woff2 +0 -0
  24. package/dist/assets/CommunityNodeUpdateInfo-C37kca4W.js +273 -0
  25. package/dist/assets/CopyInput-DDZVu2iU.js +74 -0
  26. package/dist/assets/CredentialIcon-8YdTTFZ1.js +80 -0
  27. package/dist/assets/CredentialPicker-DWtj314o.js +293 -0
  28. package/dist/assets/CredentialSelectorModal-DTW2fKh0.js +138 -0
  29. package/dist/assets/CredentialsView-BjUchcCu.js +480 -0
  30. package/dist/assets/DataTableActions-DpAkoxg_.js +95 -0
  31. package/dist/assets/DataTableDetailsView-Coq7zdW5.js +41922 -0
  32. package/dist/assets/DataTableView-Cs-BIkzw.js +293 -0
  33. package/dist/assets/DemoFooter-Cga3jvi-.js +65 -0
  34. package/dist/assets/Draggable-vfvXl9Sp.js +105 -0
  35. package/dist/assets/EmptySharedSectionActionBox-DOXZtTCv.js +36 -0
  36. package/dist/assets/EnterpriseEdition.ee-D_rCFexM.js +15 -0
  37. package/dist/assets/EntityNotFound-3dhTRWsE.js +85 -0
  38. package/dist/assets/EntityUnAuthorised-ChJYZakE.js +66 -0
  39. package/dist/assets/ErrorView-zT9cX76a.js +61 -0
  40. package/dist/assets/EvaluationsRootView-C-OVWYnY.js +523 -0
  41. package/dist/assets/EvaluationsView-CJwJTruc.js +469 -0
  42. package/dist/assets/ExecutionsTime-DEQiyozR.js +573 -0
  43. package/dist/assets/ExecutionsView-Bd5Oh8TH.js +791 -0
  44. package/dist/assets/ExternalSecretsProviderConnectionSwitch.ee-C7Ih-uRo.js +191 -0
  45. package/dist/assets/FixedCollectionParameter-CYuTDW9t.js +496 -0
  46. package/dist/assets/ForgotMyPasswordView-Bs_L9P27.js +102 -0
  47. package/dist/assets/InsightsChartAverageRuntime-Bp3VA8_7.js +62 -0
  48. package/dist/assets/InsightsChartFailed-KPaNWoEr.js +52 -0
  49. package/dist/assets/InsightsChartFailureRate-DE6kE3FM.js +54 -0
  50. package/dist/assets/InsightsChartTimeSaved-auABNZlc.js +68 -0
  51. package/dist/assets/InsightsChartTotal-BKzYRKE7.js +56 -0
  52. package/dist/assets/InsightsDashboard-JWx4W6Db.js +473 -0
  53. package/dist/assets/InsightsPaywall-C8zLLKe8.js +63 -0
  54. package/dist/assets/InsightsSummary-cmN1lHDm.js +210 -0
  55. package/dist/assets/InsightsTableWorkflows-CqcC3IbQ.js +203 -0
  56. package/dist/assets/InterVariable-DiVDrmQJ.woff2 +0 -0
  57. package/dist/assets/InterVariable-Italic-FCBEiFp6.woff2 +0 -0
  58. package/dist/assets/ItemsRenderer-DC8WVyMv.js +922 -0
  59. package/dist/assets/KeyboardShortcutTooltip-D8PAK5JP.js +31 -0
  60. package/dist/assets/LogsPanel-BR06u9RK.js +52 -0
  61. package/dist/assets/LogsPanel-C-_acMHp.js +2325 -0
  62. package/dist/assets/MCPConnectWorkflowsModal-3g8_iUa4.js +303 -0
  63. package/dist/assets/MainHeader-DiQc1edn.js +2153 -0
  64. package/dist/assets/MainSidebar-CoPGG5Ea.js +804 -0
  65. package/dist/assets/MigrationRuleDetail-BAxk1Pvl.js +295 -0
  66. package/dist/assets/MigrationRules-IW9lZMpE.js +285 -0
  67. package/dist/assets/Modal-CIzXlZdZ.js +204 -0
  68. package/dist/assets/ModelByIdSelectorModal-DLvBjzJO.js +115 -0
  69. package/dist/assets/NDVEmptyState-33UoX00I.js +19743 -0
  70. package/dist/assets/NodeCreation-BNzbSWSB.js +240 -0
  71. package/dist/assets/NodeCreator-BftgCKx7.js +1288 -0
  72. package/dist/assets/NodeDetailsView-CsoQCpcF.js +1075 -0
  73. package/dist/assets/NodeDetailsViewV2-C_wNQR_3.js +981 -0
  74. package/dist/assets/NodeIcon-B9VW6tX6.js +87 -0
  75. package/dist/assets/NodeSettings-ZwVip6VR.js +1872 -0
  76. package/dist/assets/NodeView-D4WUEvLB.js +2452 -0
  77. package/dist/assets/OAuthConsentView-DlrUqZbT.js +230 -0
  78. package/dist/assets/PageViewLayout-NT1KPFgy.js +12 -0
  79. package/dist/assets/ParameterInputList-sG2nz-Jo.js +38091 -0
  80. package/dist/assets/PrebuiltAgentTemplatesView-Csi5U8dc.js +154 -0
  81. package/dist/assets/ProjectBreadcrumb-C_XiY7sc.js +98 -0
  82. package/dist/assets/ProjectCardBadge-t_hs7vzx.js +209 -0
  83. package/dist/assets/ProjectHeader-Dq5Ihb26.js +549 -0
  84. package/dist/assets/ProjectIcon-DY8gGuHX.js +64 -0
  85. package/dist/assets/ProjectRoleView-Du-KTrAC.js +435 -0
  86. package/dist/assets/ProjectRolesView-DjxM_y4u.js +239 -0
  87. package/dist/assets/ProjectSettings-C6kWuV21.js +966 -0
  88. package/dist/assets/ProjectSharing-CVUgNWAY.js +262 -0
  89. package/dist/assets/ProjectVariables-CJlAo3dv.js +467 -0
  90. package/dist/assets/ProviderSettingsModal-BUFC2ZLv.js +307 -0
  91. package/dist/assets/PushConnectionTracker-DPBnGV0v.js +27 -0
  92. package/dist/assets/ResolversView-3BdkvvYA.js +209 -0
  93. package/dist/assets/ResourceFiltersDropdown-dgyXpcEX.js +159 -0
  94. package/dist/assets/ResourcesListLayout-qBLtomK6.js +631 -0
  95. package/dist/assets/RunDataHtml-BrW0OQra.js +7 -0
  96. package/dist/assets/RunDataHtml-Cleia4Cj.js +40 -0
  97. package/dist/assets/RunDataJson-uxkrhYRK.js +227 -0
  98. package/dist/assets/RunDataJsonActions-DkPk7E8d.js +5007 -0
  99. package/dist/assets/RunDataParsedAiContent-CtPRjig-.js +26 -0
  100. package/dist/assets/RunDataParsedAiContent-WAuqLQ5M.js +192 -0
  101. package/dist/assets/RunDataSearch-YBWUr93C.js +141 -0
  102. package/dist/assets/RunDataTable-DcXaBynW.js +631 -0
  103. package/dist/assets/SamlOnboarding-BTdQ_hr3.js +78 -0
  104. package/dist/assets/SaveButton-D5sQSxIk.js +89 -0
  105. package/dist/assets/SelectedItemsInfo-BHZ-NvF5.js +58 -0
  106. package/dist/assets/SettingsApiView-IfZTMXx1.js +313 -0
  107. package/dist/assets/SettingsChatHubView-gWh2X6vX.js +285 -0
  108. package/dist/assets/SettingsCommunityNodesView-D8VQtpGY.js +349 -0
  109. package/dist/assets/SettingsExternalSecrets-CpMc7mkW.js +233 -0
  110. package/dist/assets/SettingsLdapView-CU5a2MAy.js +2553 -0
  111. package/dist/assets/SettingsLogStreamingView-uojTe-oX.js +375 -0
  112. package/dist/assets/SettingsMCPView-B5Swp1C_.js +1214 -0
  113. package/dist/assets/SettingsPersonalView-Cr3aGood.js +402 -0
  114. package/dist/assets/SettingsSourceControl-DXOvFDEY.js +547 -0
  115. package/dist/assets/SettingsSso-27MfU1HV.js +1032 -0
  116. package/dist/assets/SettingsUsageAndPlan-DqIO-G46.js +419 -0
  117. package/dist/assets/SettingsUsersView-DfHB4_Kh.js +833 -0
  118. package/dist/assets/SettingsView-C4sA7Uny.js +90 -0
  119. package/dist/assets/SetupTemplateFormStep-BmiSzZin.js +258 -0
  120. package/dist/assets/SetupView-VORZ-L_u.js +112 -0
  121. package/dist/assets/SetupWorkflowCredentialsButton-DTmkOAW5.js +73 -0
  122. package/dist/assets/SetupWorkflowFromTemplateView-B9NupdJE.js +286 -0
  123. package/dist/assets/SeverityTag-CX1qTTNA.js +45 -0
  124. package/dist/assets/SigninView-D9_Pm16j.js +358 -0
  125. package/dist/assets/SignoutView-BFsjEAGz.js +19 -0
  126. package/dist/assets/SignupView-Am4ot0QZ.js +137 -0
  127. package/dist/assets/SkeletonAgentCard-C5TL-h8F.js +191 -0
  128. package/dist/assets/TagsDropdown-Bvx_Hd6Q.js +230 -0
  129. package/dist/assets/TemplateCard-CyQ1GuVz.js +105 -0
  130. package/dist/assets/TemplateDetails-CZRusTxE.js +124 -0
  131. package/dist/assets/TemplateList-DKvbwuiY.js +333 -0
  132. package/dist/assets/TemplatesCollectionView-D8dxU8By.js +184 -0
  133. package/dist/assets/TemplatesSearchView-CebC_GLs.js +1230 -0
  134. package/dist/assets/TemplatesView-025CcmIY.js +57 -0
  135. package/dist/assets/TemplatesWorkflowView-C2JfwJAn.js +170 -0
  136. package/dist/assets/TestRunDetailView-Ck78TTWO.js +395 -0
  137. package/dist/assets/TextWithHighlights-BxumwGnv.js +57 -0
  138. package/dist/assets/TimeAgo-C6EN4lCs.js +123 -0
  139. package/dist/assets/ToolsSelectorModal-8QJoUvRL.js +368 -0
  140. package/dist/assets/TriggerPanel-B6pacLkk.js +1225 -0
  141. package/dist/assets/VirtualSchema-B3zGe_8b.js +2402 -0
  142. package/dist/assets/VirtualSchema-Dkh0Cu5z.js +37 -0
  143. package/dist/assets/VueMarkdown-CQqJL9vK.js +28 -0
  144. package/dist/assets/WorkerView-Caznsljo.js +563 -0
  145. package/dist/assets/WorkflowActivationErrorMessage-CGrfPi9O.js +17 -0
  146. package/dist/assets/WorkflowActivator-BINnz0f7.js +362 -0
  147. package/dist/assets/WorkflowExecutionsInfoAccordion-Dg37yEfT.js +166 -0
  148. package/dist/assets/WorkflowExecutionsLandingPage-V2wdubhK.js +93 -0
  149. package/dist/assets/WorkflowExecutionsPreview-DdJaqYV6.js +616 -0
  150. package/dist/assets/WorkflowExecutionsView-DV8ySTfn.js +808 -0
  151. package/dist/assets/WorkflowHistory-GtaBMzIM.js +973 -0
  152. package/dist/assets/WorkflowLocation-CQ9Sq-2y.js +164 -0
  153. package/dist/assets/WorkflowOnboardingView-C49gt0Jr.js +61 -0
  154. package/dist/assets/WorkflowPreview-CXdvv4Nq.js +186 -0
  155. package/dist/assets/WorkflowTagsDropdown-QwbICWjN.js +71 -0
  156. package/dist/assets/WorkflowsView-B-MWIECO.js +3253 -0
  157. package/dist/assets/_MapCache-CcdIl4Ae.js +363 -0
  158. package/dist/assets/_baseOrderBy-N8Be_6z6.js +2989 -0
  159. package/dist/assets/_initCloneObject-viQQyT6o.js +80 -0
  160. package/dist/assets/_plugin-vue_export-helper-BwBpWJRZ.js +6 -0
  161. package/dist/assets/aiTemplatesStarterCollection.store-nL9nePkK.js +656 -0
  162. package/dist/assets/apiKeys.store-BhOFmP2j.js +51 -0
  163. package/dist/assets/assistant.store-CNywgN4S.js +518 -0
  164. package/dist/assets/auth.eventBus-CWXS0Qp7.js +5 -0
  165. package/dist/assets/banners.store-CGEcBTDn.js +195 -0
  166. package/dist/assets/builder.store-Czk2ipDE.js +31417 -0
  167. package/dist/assets/buttons.esm-yintpW2E.js +364 -0
  168. package/dist/assets/chart-CNvyywtJ.js +10958 -0
  169. package/dist/assets/chartjs.utils-BAE52Cv9.js +155 -0
  170. package/dist/assets/chat.store-290YeyrQ.js +865 -0
  171. package/dist/assets/chatPanel.store-NDaawEZL.js +118 -0
  172. package/dist/assets/chunk-6z4oVpB-.js +36 -0
  173. package/dist/assets/col-Cmt4cmuS.js +158 -0
  174. package/dist/assets/constants-C8OH4tTq.js +106256 -0
  175. package/dist/assets/constants-DMrsrpD7.js +32 -0
  176. package/dist/assets/core-B9gt_4yk.js +4 -0
  177. package/dist/assets/core-CP5FY4aX.js +1202 -0
  178. package/dist/assets/core-CRbPymLT.js +9741 -0
  179. package/dist/assets/dataTable.store-DmipQsol.js +207 -0
  180. package/dist/assets/date-picker-2IDsBs2n.js +4115 -0
  181. package/dist/assets/dateFormatter-ik4-9_9r.js +33 -0
  182. package/dist/assets/dateformat-hG8NERse.js +181 -0
  183. package/dist/assets/dialog-lMho1TD8.js +425 -0
  184. package/dist/assets/dist-Cw46Is-h.js +151 -0
  185. package/dist/assets/doppler-B__k0MeW.webp +0 -0
  186. package/dist/assets/element-icons-B-tDfklg.woff +0 -0
  187. package/dist/assets/element-icons-_lZGOqcG.ttf +0 -0
  188. package/dist/assets/empty-BuGRxzl4.js +2210 -0
  189. package/dist/assets/en-CF30SCh2.js +95 -0
  190. package/dist/assets/en-DyO2pPiC.js +2 -0
  191. package/dist/assets/es-BkUFJVtD.js +43338 -0
  192. package/dist/assets/evaluation.constants-GYAwmJnh.js +284 -0
  193. package/dist/assets/executions.store-B9uRYwgv.js +205 -0
  194. package/dist/assets/exports-Crx_gvt_.js +1799 -0
  195. package/dist/assets/externalSecrets.ee.store-BJh4a_6G.js +118 -0
  196. package/dist/assets/fileUtils-CRWqOQje.js +20 -0
  197. package/dist/assets/folders.store-yAFj-5Vl.js +235 -0
  198. package/dist/assets/get-BcEmeOxn.js +2781 -0
  199. package/dist/assets/index-SL8542zQ.js +28372 -0
  200. package/dist/assets/insights.constants-BkJCYJTL.js +55 -0
  201. package/dist/assets/insights.store-BFc3kDUo.js +61 -0
  202. package/dist/assets/insights.utils-CcLXdrrz.js +77 -0
  203. package/dist/assets/isEmpty-C3XXoHqJ.js +35216 -0
  204. package/dist/assets/languageModules-9LyndCqU.js +13862 -0
  205. package/dist/assets/logStreaming.store-IZhWe_VK.js +190 -0
  206. package/dist/assets/mcp.constants-_Jcn7fPq.js +10 -0
  207. package/dist/assets/mcp.store-B9yfcAN9.js +116 -0
  208. package/dist/assets/merge-DhuTk1HM.js +564 -0
  209. package/dist/assets/nodeCreator.store-Bpnrwp2l.js +5444 -0
  210. package/dist/assets/nodeIcon-D6X-ENYt.js +102 -0
  211. package/dist/assets/nodeTransforms-RzcOM0v2.js +42 -0
  212. package/dist/assets/orderBy-Cu9F9DU_.js +15 -0
  213. package/dist/assets/path-browserify-RUt2u7iT.js +328 -0
  214. package/dist/assets/personalizedTemplatesV3.store-BGYp0YBN.js +334 -0
  215. package/dist/assets/pickBy-UI0Jt4wC.js +18 -0
  216. package/dist/assets/preload-helper-dyVz7ck7.js +59 -0
  217. package/dist/assets/radio-CSce3UT0.js +262 -0
  218. package/dist/assets/readyToRun.store-YEMvPUqo.js +626 -0
  219. package/dist/assets/readyToRunWorkflows.store-G3srgIze.js +1319 -0
  220. package/dist/assets/retry-BgHaYzbB.js +23 -0
  221. package/dist/assets/roles.store-CRf_zJTb.js +51 -0
  222. package/dist/assets/router-DNpzz3GH.js +2631 -0
  223. package/dist/assets/sanitize-html-CbW56HUN.js +10758 -0
  224. package/dist/assets/schemaPreview.store-DUgN1yVE.js +113 -0
  225. package/dist/assets/semver-Bk6DGseV.js +1306 -0
  226. package/dist/assets/smartDecimal-DAZl4HKA.js +6 -0
  227. package/dist/assets/sortByProperty-Cn7iGKYu.js +8 -0
  228. package/dist/assets/sourceControl.eventBus-D47xXSc_.js +3 -0
  229. package/dist/assets/sqlite3-DBpDb1lf.wasm +0 -0
  230. package/dist/assets/sqlite3-opfs-async-proxy-vVtmDGHX.js +461 -0
  231. package/dist/assets/sqlite3-worker1-bundler-friendly-DLarOZDL.js +9405 -0
  232. package/dist/assets/src-jviYSG25.js +55454 -0
  233. package/dist/assets/sso.store-DyApJwhx.js +139 -0
  234. package/dist/assets/style-E3CrYFV8.css +111829 -0
  235. package/dist/assets/table-we1DjFMV.js +3944 -0
  236. package/dist/assets/templateActions-bEDSARw2.js +65 -0
  237. package/dist/assets/templateTransforms-BHWiRbtR.js +43 -0
  238. package/dist/assets/truncate-C0KYt7i3.js +4176 -0
  239. package/dist/assets/typescript.worker-CYqLvLHh.js +152048 -0
  240. package/dist/assets/uniqBy-xDyuCRP0.js +10 -0
  241. package/dist/assets/usage.store-CU5J_nGm.js +100 -0
  242. package/dist/assets/useActions-B1JckIRj.js +255 -0
  243. package/dist/assets/useBeforeUnload-DiDkvI8p.js +40 -0
  244. package/dist/assets/useCanvasMapping-BXT7rGhC.js +12570 -0
  245. package/dist/assets/useCanvasOperations-8ULLtMkY.js +1765 -0
  246. package/dist/assets/useClipboard-DvjhVHqJ.js +39 -0
  247. package/dist/assets/useCommandBar-C4tLJbKt.js +2425 -0
  248. package/dist/assets/useCredentialResolvers-BKeFGJnY.js +78 -0
  249. package/dist/assets/useCustomAgent-DpILEt5e.js +471 -0
  250. package/dist/assets/useDebounce-Br5_1ug-.js +147 -0
  251. package/dist/assets/useExecutionData-M5iKsX6z.js +23 -0
  252. package/dist/assets/useExecutionDebugging-8azMzbnd.js +191 -0
  253. package/dist/assets/useExecutionHelpers-BgRRhpBM.js +91 -0
  254. package/dist/assets/useImportCurlCommand-CKiEmX5P.js +8891 -0
  255. package/dist/assets/useIntersectionObserver-BWMwOueh.js +33 -0
  256. package/dist/assets/useKeybindings-B2jfN6rd.js +62 -0
  257. package/dist/assets/useLogsTreeExpand-sZViUfdM.js +843 -0
  258. package/dist/assets/useMcp-DoMOIfqT.js +27 -0
  259. package/dist/assets/usePageRedirectionHelper-DjkznpX6.js +51 -0
  260. package/dist/assets/usePinnedData-BhZkqttf.js +203 -0
  261. package/dist/assets/usePushConnection-DMS-F_IW.js +513 -0
  262. package/dist/assets/useRecentResources-BVORr7eM.js +118 -0
  263. package/dist/assets/useRunWorkflow-LO7ffLp9.js +950 -0
  264. package/dist/assets/useSettingsItems-BhZXwMZn.js +144 -0
  265. package/dist/assets/useTelemetryContext-V6bv4YRq.js +34 -0
  266. package/dist/assets/useWorkflowActivate-DeSmDXjI.js +152 -0
  267. package/dist/assets/useWorkflowsCache-DtcEEAIR.js +179 -0
  268. package/dist/assets/userRoleProvisioning.store-kkSIdeTo.js +33 -0
  269. package/dist/assets/utils-DI7dLldp.js +54 -0
  270. package/dist/assets/versions.store-B1z2OrLE.js +191 -0
  271. package/dist/assets/vue-CydWIhxN.js +4378 -0
  272. package/dist/assets/vue-json-pretty-CsGX66mG.js +1130 -0
  273. package/dist/assets/vue.runtime.esm-bundler-tP5dCd7J.js +7325 -0
  274. package/dist/assets/xml-B_oj6Mle.js +2060 -0
  275. package/dist/favicon.ico +0 -0
  276. package/dist/index.html +157 -0
  277. package/dist/static/base-path.js +1 -0
  278. package/dist/static/community_package_tooltip_img.png +0 -0
  279. package/dist/static/data-mapping-gif.gif +0 -0
  280. package/dist/static/form-grey.svg +1 -0
  281. package/dist/static/google-auth/disabled.dark.png +0 -0
  282. package/dist/static/google-auth/disabled.png +0 -0
  283. package/dist/static/google-auth/focus.dark.png +0 -0
  284. package/dist/static/google-auth/focus.png +0 -0
  285. package/dist/static/google-auth/normal.dark.png +0 -0
  286. package/dist/static/google-auth/normal.png +0 -0
  287. package/dist/static/google-auth/pressed.dark.png +0 -0
  288. package/dist/static/google-auth/pressed.png +0 -0
  289. package/dist/static/n8n-logo.png +0 -0
  290. package/dist/static/og_image.png +0 -0
  291. package/dist/static/open-ai.svg +1 -0
  292. package/dist/static/openChat.png +0 -0
  293. package/dist/static/posthog.init.js +41 -0
  294. package/dist/static/prefers-color-scheme.css +5 -0
  295. package/dist/static/webhook-icon.svg +1 -0
  296. package/dist/tree-sitter-bash.wasm +0 -0
  297. package/dist/tree-sitter.wasm +0 -0
  298. package/eslint.config.mjs +59 -0
  299. package/index.html +45 -0
  300. package/index.js +0 -0
  301. package/package.json +147 -0
  302. package/postcss.config.cjs +6 -0
  303. package/scripts/fetch-node-popularity.mjs +102 -0
  304. package/stylelint.config.mjs +9 -0
  305. package/tailwind.config.js +8 -0
  306. package/tsconfig.json +36 -0
  307. package/vite/i18n-locales-hmr-helpers.ts +19 -0
  308. package/vite/source-map-js-shim.ts +1 -0
  309. package/vite/vite-plugin-node-popularity.mts +32 -0
  310. package/vite.config.mts +304 -0
@@ -0,0 +1,808 @@
1
+ import { C as computed, Cn as toDisplayString, D as createElementBlock, E as createCommentVNode, Gt as unref, It as ref, J as onBeforeUnmount, M as createVNode, P as defineComponent, T as createBlock, Z as onMounted, _ as Fragment, _t as watch, bt as withCtx, et as openBlock, it as renderList, j as createTextVNode, ot as resolveComponent, r as TransitionGroup, vn as normalizeClass, w as createBaseVNode } from "./vue.runtime.esm-bundler-tP5dCd7J.js";
2
+ import { rt as useI18n } from "./core-CRbPymLT.js";
3
+ import { Cn as N8nIcon_default, Lt as ElCheckbox, Sn as N8nSpinner_default, at as N8nLoading_default, bn as N8nText_default, ht as N8nTooltip_default, ot as N8nActionDropdown_default, v as N8nTags_default, vn as N8nHeading_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 "./truncate-C0KYt7i3.js";
8
+ import "./date-picker-2IDsBs2n.js";
9
+ import { Dt as executionRetryMessage, Or as isComponentPublicInstance, P as useWorkflowsStore, Pt as useNodeTypesStore, X as getNodeViewTab, Zn as useProjectsStore, k as useTelemetry, ms as useSettingsStore, n as useWorkflowSaving, y as useToast } from "./builder.store-Czk2ipDE.js";
10
+ import "./empty-BuGRxzl4.js";
11
+ import { _ as useRoute, g as onBeforeRouteLeave, v as useRouter } from "./get-BcEmeOxn.js";
12
+ import "./sanitize-html-CbW56HUN.js";
13
+ import "./CalendarDate-DgQUMbNo.js";
14
+ import "./path-browserify-RUt2u7iT.js";
15
+ import "./_MapCache-CcdIl4Ae.js";
16
+ import { Lo as MAIN_HEADER_TABS, Oo as getResourcePermissions, Ro as VIEWS, yc as EnterpriseEditionFeature } from "./constants-C8OH4tTq.js";
17
+ import "./merge-DhuTk1HM.js";
18
+ import { o as NO_NETWORK_ERROR_CODE } from "./_baseOrderBy-N8Be_6z6.js";
19
+ import "./dateformat-hG8NERse.js";
20
+ import { t as useDebounce } from "./useDebounce-Br5_1ug-.js";
21
+ import { t as useExecutionsStore } from "./executions.store-B9uRYwgv.js";
22
+ import "./usePinnedData-BhZkqttf.js";
23
+ import "./nodeCreator.store-Bpnrwp2l.js";
24
+ import "./nodeIcon-D6X-ENYt.js";
25
+ import "./useClipboard-DvjhVHqJ.js";
26
+ import { t as useCanvasOperations } from "./useCanvasOperations-8ULLtMkY.js";
27
+ import "./folders.store-yAFj-5Vl.js";
28
+ import "./versions.store-B1z2OrLE.js";
29
+ import { t as usePageRedirectionHelper } from "./usePageRedirectionHelper-DjkznpX6.js";
30
+ import { a as toTime, i as toDayMonth } from "./dateFormatter-ik4-9_9r.js";
31
+ import { t as useExecutionHelpers } from "./useExecutionHelpers-BgRRhpBM.js";
32
+ import "./TagsDropdown-Bvx_Hd6Q.js";
33
+ import "./WorkflowTagsDropdown-QwbICWjN.js";
34
+ import { t as WorkflowExecutionsInfoAccordion_default } from "./WorkflowExecutionsInfoAccordion-Dg37yEfT.js";
35
+ import "./AnnotationTagsDropdown.ee-BJ7N9lek.js";
36
+ import { n as ExecutionsFilter_default, r as ConcurrentExecutionsHeader_default, t as ExecutionsTime_default } from "./ExecutionsTime-DEQiyozR.js";
37
+ import { t as useIntersectionObserver } from "./useIntersectionObserver-BWMwOueh.js";
38
+ var _hoisted_1$1 = { key: 2 };
39
+ var WorkflowExecutionsCard_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
40
+ __name: "WorkflowExecutionsCard",
41
+ props: {
42
+ execution: {},
43
+ highlight: { type: Boolean },
44
+ showGap: { type: Boolean },
45
+ workflowPermissions: {}
46
+ },
47
+ emits: ["retryExecution", "mounted"],
48
+ setup(__props, { emit: __emit }) {
49
+ const props = __props;
50
+ const emit = __emit;
51
+ const route = useRoute();
52
+ const locale = useI18n();
53
+ const executionHelpers = useExecutionHelpers();
54
+ const workflowsStore = useWorkflowsStore();
55
+ const settingsStore = useSettingsStore();
56
+ const isAdvancedExecutionFilterEnabled = computed(() => settingsStore.isEnterpriseFeatureEnabled[EnterpriseEditionFeature.AdvancedExecutionFilters]);
57
+ const isAnnotationEnabled = computed(() => isAdvancedExecutionFilterEnabled.value);
58
+ const currentWorkflow = computed(() => route.params.name || workflowsStore.workflowId);
59
+ const retryExecutionActions = computed(() => [{
60
+ id: "current-workflow",
61
+ label: locale.baseText("executionsList.retryWithCurrentlySavedWorkflow")
62
+ }, {
63
+ id: "original-workflow",
64
+ label: locale.baseText("executionsList.retryWithOriginalWorkflow")
65
+ }]);
66
+ const executionUIDetails = computed(() => executionHelpers.getUIDetails(props.execution));
67
+ const isActive = computed(() => props.execution.id === route.params.executionId);
68
+ const isRetriable = computed(() => executionHelpers.isExecutionRetriable(props.execution));
69
+ onMounted(() => {
70
+ emit("mounted", props.execution.id);
71
+ });
72
+ function onRetryMenuItemSelect(action) {
73
+ emit("retryExecution", {
74
+ execution: props.execution,
75
+ command: action
76
+ });
77
+ }
78
+ return (_ctx, _cache) => {
79
+ const _component_RouterLink = resolveComponent("RouterLink");
80
+ return openBlock(), createElementBlock("div", { class: normalizeClass({
81
+ ["execution-card"]: true,
82
+ [_ctx.$style.WorkflowExecutionsCard]: true,
83
+ [_ctx.$style.active]: isActive.value,
84
+ [_ctx.$style[executionUIDetails.value.name]]: true,
85
+ [_ctx.$style.highlight]: _ctx.highlight,
86
+ [_ctx.$style.showGap]: _ctx.showGap
87
+ }) }, [createVNode(_component_RouterLink, {
88
+ class: normalizeClass(_ctx.$style.executionLink),
89
+ to: {
90
+ name: unref(VIEWS).EXECUTION_PREVIEW,
91
+ params: {
92
+ name: currentWorkflow.value,
93
+ executionId: _ctx.execution.id
94
+ },
95
+ query: unref(route).query
96
+ },
97
+ "data-test-execution-status": executionUIDetails.value.name
98
+ }, {
99
+ default: withCtx(() => [createBaseVNode("div", { class: normalizeClass(_ctx.$style.description) }, [
100
+ executionUIDetails.value.name === "new" ? (openBlock(), createBlock(unref(N8nText_default), {
101
+ key: 0,
102
+ color: "text-dark",
103
+ bold: true,
104
+ size: "medium",
105
+ "data-test-id": "execution-time"
106
+ }, {
107
+ default: withCtx(() => [createTextVNode(toDisplayString(unref(toDayMonth)(executionUIDetails.value.createdAt)) + " - " + toDisplayString(unref(locale).baseText("executionDetails.startingSoon")), 1)]),
108
+ _: 1
109
+ })) : (openBlock(), createBlock(unref(N8nText_default), {
110
+ key: 1,
111
+ color: "text-dark",
112
+ bold: true,
113
+ size: "medium",
114
+ "data-test-id": "execution-time"
115
+ }, {
116
+ default: withCtx(() => [createTextVNode(toDisplayString(executionUIDetails.value.startTime), 1)]),
117
+ _: 1
118
+ })),
119
+ createBaseVNode("div", { class: normalizeClass(_ctx.$style.executionStatus) }, [
120
+ executionUIDetails.value.name === "running" ? (openBlock(), createBlock(unref(N8nSpinner_default), {
121
+ key: 0,
122
+ size: "small",
123
+ class: normalizeClass([_ctx.$style.spinner, "mr-4xs"])
124
+ }, null, 8, ["class"])) : createCommentVNode("", true),
125
+ createVNode(unref(N8nText_default), {
126
+ class: normalizeClass(_ctx.$style.statusLabel),
127
+ size: "small"
128
+ }, {
129
+ default: withCtx(() => [createTextVNode(toDisplayString(executionUIDetails.value.label), 1)]),
130
+ _: 1
131
+ }, 8, ["class"]),
132
+ _cache[0] || (_cache[0] = createTextVNode(" " + toDisplayString(" ") + " ")),
133
+ executionUIDetails.value.name === "running" && !_ctx.execution.stoppedAt ? (openBlock(), createBlock(unref(N8nText_default), {
134
+ key: 1,
135
+ color: isActive.value ? "text-dark" : "text-base",
136
+ size: "small",
137
+ "data-test-id": "execution-time-in-status"
138
+ }, {
139
+ default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("executionDetails.runningTimeRunning")) + " ", 1), createVNode(ExecutionsTime_default, { "start-time": _ctx.execution.startedAt ?? _ctx.execution.createdAt }, null, 8, ["start-time"])]),
140
+ _: 1
141
+ }, 8, ["color"])) : createCommentVNode("", true),
142
+ executionUIDetails.value.name === "new" && _ctx.execution.createdAt ? (openBlock(), createBlock(unref(N8nText_default), {
143
+ key: 2,
144
+ color: isActive.value ? "text-dark" : "text-base",
145
+ size: "small"
146
+ }, {
147
+ default: withCtx(() => [createBaseVNode("span", null, toDisplayString(unref(locale).baseText("executionDetails.at")) + " " + toDisplayString(unref(toTime)(_ctx.execution.createdAt)), 1)]),
148
+ _: 1
149
+ }, 8, ["color"])) : executionUIDetails.value.runningTime !== "" ? (openBlock(), createBlock(unref(N8nText_default), {
150
+ key: 3,
151
+ color: isActive.value ? "text-dark" : "text-base",
152
+ size: "small"
153
+ }, {
154
+ default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("executionDetails.runningTimeFinished", { interpolate: { time: executionUIDetails.value?.runningTime } })), 1)]),
155
+ _: 1
156
+ }, 8, ["color"])) : createCommentVNode("", true)
157
+ ], 2),
158
+ _ctx.execution.mode === "retry" ? (openBlock(), createElementBlock("div", _hoisted_1$1, [createVNode(unref(N8nText_default), {
159
+ color: isActive.value ? "text-dark" : "text-base",
160
+ size: "small"
161
+ }, {
162
+ default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("executionDetails.retry")) + " #" + toDisplayString(_ctx.execution.retryOf), 1)]),
163
+ _: 1
164
+ }, 8, ["color"])])) : createCommentVNode("", true),
165
+ isAnnotationEnabled.value ? (openBlock(), createElementBlock("div", {
166
+ key: 3,
167
+ class: normalizeClass(_ctx.$style.annotation)
168
+ }, [_ctx.execution.annotation?.vote ? (openBlock(), createElementBlock("div", {
169
+ key: 0,
170
+ class: normalizeClass(_ctx.$style.ratingIcon)
171
+ }, [_ctx.execution.annotation.vote == "up" ? (openBlock(), createBlock(unref(N8nIcon_default), {
172
+ key: 0,
173
+ class: normalizeClass(_ctx.$style.up),
174
+ icon: "thumbs-up"
175
+ }, null, 8, ["class"])) : (openBlock(), createBlock(unref(N8nIcon_default), {
176
+ key: 1,
177
+ class: normalizeClass(_ctx.$style.down),
178
+ icon: "thumbs-down"
179
+ }, null, 8, ["class"]))], 2)) : createCommentVNode("", true), executionUIDetails.value.tags.length > 0 ? (openBlock(), createBlock(unref(N8nTags_default), {
180
+ key: 1,
181
+ tags: executionUIDetails.value.tags,
182
+ clickable: false
183
+ }, null, 8, ["tags"])) : createCommentVNode("", true)], 2)) : createCommentVNode("", true)
184
+ ], 2), createBaseVNode("div", { class: normalizeClass(_ctx.$style.icons) }, [
185
+ isRetriable.value ? (openBlock(), createBlock(unref(N8nActionDropdown_default), {
186
+ key: 0,
187
+ class: normalizeClass([_ctx.$style.icon, _ctx.$style.retry]),
188
+ items: retryExecutionActions.value,
189
+ disabled: !_ctx.workflowPermissions.execute,
190
+ "activator-icon": "redo-2",
191
+ "data-test-id": "retry-execution-button",
192
+ onSelect: onRetryMenuItemSelect
193
+ }, null, 8, [
194
+ "class",
195
+ "items",
196
+ "disabled"
197
+ ])) : createCommentVNode("", true),
198
+ _ctx.execution.mode === "manual" ? (openBlock(), createBlock(unref(N8nTooltip_default), {
199
+ key: 1,
200
+ placement: "top"
201
+ }, {
202
+ content: withCtx(() => [createBaseVNode("span", null, toDisplayString(unref(locale).baseText("executionsList.test")), 1)]),
203
+ default: withCtx(() => [createVNode(unref(N8nIcon_default), {
204
+ class: normalizeClass([_ctx.$style.icon, _ctx.$style.manual]),
205
+ icon: "flask-conical"
206
+ }, null, 8, ["class"])]),
207
+ _: 1
208
+ })) : createCommentVNode("", true),
209
+ _ctx.execution.mode === "evaluation" ? (openBlock(), createBlock(unref(N8nTooltip_default), {
210
+ key: 2,
211
+ placement: "top"
212
+ }, {
213
+ content: withCtx(() => [createBaseVNode("span", null, toDisplayString(unref(locale).baseText("executionsList.evaluation")), 1)]),
214
+ default: withCtx(() => [createVNode(unref(N8nIcon_default), {
215
+ class: normalizeClass([_ctx.$style.icon, _ctx.$style.evaluation]),
216
+ icon: "check-check"
217
+ }, null, 8, ["class"])]),
218
+ _: 1
219
+ })) : createCommentVNode("", true)
220
+ ], 2)]),
221
+ _: 1
222
+ }, 8, [
223
+ "class",
224
+ "to",
225
+ "data-test-execution-status"
226
+ ])], 2);
227
+ };
228
+ }
229
+ });
230
+ const WorkflowExecutionsCard = "_WorkflowExecutionsCard_19371_123";
231
+ const active = "_active_19371_130";
232
+ const executionStatus = "_executionStatus_19371_133";
233
+ const executionLink = "_executionLink_19371_136";
234
+ const spinner = "_spinner_19371_139";
235
+ const running = "_running_19371_139";
236
+ const statusLabel = "_statusLabel_19371_146";
237
+ const success = "_success_19371_151";
238
+ const waiting = "_waiting_19371_160";
239
+ const error = "_error_19371_166";
240
+ const unknown = "_unknown_19371_172";
241
+ const annotation = "_annotation_19371_175";
242
+ const ratingIcon = "_ratingIcon_19371_182";
243
+ const up = "_up_19371_182";
244
+ const down = "_down_19371_185";
245
+ const icon = "_icon_19371_202";
246
+ const icons = "_icons_19371_207";
247
+ const retry = "_retry_19371_215";
248
+ const manual = "_manual_19371_218";
249
+ const showGap = "_showGap_19371_226";
250
+ var WorkflowExecutionsCard_vue_vue_type_style_index_0_lang_module_default = {
251
+ WorkflowExecutionsCard,
252
+ active,
253
+ executionStatus,
254
+ executionLink,
255
+ "new": "_new_19371_139",
256
+ spinner,
257
+ running,
258
+ statusLabel,
259
+ success,
260
+ waiting,
261
+ error,
262
+ unknown,
263
+ annotation,
264
+ ratingIcon,
265
+ up,
266
+ down,
267
+ icon,
268
+ icons,
269
+ retry,
270
+ manual,
271
+ showGap
272
+ };
273
+ var WorkflowExecutionsCard_default = /* @__PURE__ */ __plugin_vue_export_helper_default(WorkflowExecutionsCard_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": WorkflowExecutionsCard_vue_vue_type_style_index_0_lang_module_default }]]);
274
+ var _hoisted_1 = {
275
+ key: 0,
276
+ class: "mr-l"
277
+ };
278
+ var _hoisted_2 = {
279
+ key: 3,
280
+ class: "mr-m"
281
+ };
282
+ var WorkflowExecutionsSidebar_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
283
+ __name: "WorkflowExecutionsSidebar",
284
+ props: {
285
+ workflow: {},
286
+ executions: {},
287
+ loading: { type: Boolean },
288
+ loadingMore: { type: Boolean },
289
+ temporaryExecution: {}
290
+ },
291
+ emits: [
292
+ "retryExecution",
293
+ "loadMore",
294
+ "filterUpdated",
295
+ "update:autoRefresh"
296
+ ],
297
+ setup(__props, { emit: __emit }) {
298
+ const props = __props;
299
+ const emit = __emit;
300
+ const route = useRoute();
301
+ const router = useRouter();
302
+ const i18n = useI18n();
303
+ const executionsStore = useExecutionsStore();
304
+ const settingsStore = useSettingsStore();
305
+ const pageRedirectionHelper = usePageRedirectionHelper();
306
+ const autoScrollDeps = ref({
307
+ activeExecutionSet: false,
308
+ cardsMounted: false,
309
+ scroll: true
310
+ });
311
+ const currentWorkflowExecutionsCardRefs = ref({});
312
+ const sidebarContainerRef = ref(null);
313
+ const executionListRef = ref(null);
314
+ const { observe: observeForLoadMore } = useIntersectionObserver({
315
+ root: executionListRef,
316
+ threshold: .01,
317
+ onIntersect: () => emit("loadMore", 20)
318
+ });
319
+ const workflowPermissions = computed(() => getResourcePermissions(props.workflow?.scopes).workflow);
320
+ const showConcurrencyHeader = computed(() => settingsStore.isConcurrencyEnabled && !settingsStore.isQueueModeEnabled);
321
+ watch(() => route, (to, from) => {
322
+ if (from.name === VIEWS.EXECUTION_PREVIEW && to.name === VIEWS.EXECUTION_HOME) router.go(-1);
323
+ });
324
+ watch(() => executionsStore.activeExecution, (newValue, oldValue) => {
325
+ if (newValue && newValue.id !== oldValue?.id) autoScrollDeps.value.activeExecutionSet = true;
326
+ });
327
+ watch(autoScrollDeps, (updatedDeps) => {
328
+ if (Object.values(updatedDeps).every(Boolean)) scrollToActiveCard();
329
+ }, { deep: true });
330
+ function addCurrentWorkflowExecutionsCardRef(comp, id) {
331
+ if (comp && isComponentPublicInstance(comp) && id) currentWorkflowExecutionsCardRefs.value[id] = comp;
332
+ }
333
+ function onItemMounted(id) {
334
+ const index = props.executions.findIndex((execution) => execution.id === id);
335
+ if (executionsStore.activeExecution?.id === id) {
336
+ autoScrollDeps.value.activeExecutionSet = true;
337
+ autoScrollDeps.value.cardsMounted = true;
338
+ }
339
+ if (index === props.executions.length - 1 && !props.loading && !props.loadingMore) {
340
+ const cardElement = currentWorkflowExecutionsCardRefs.value[id]?.$el;
341
+ observeForLoadMore(cardElement);
342
+ }
343
+ }
344
+ function loadMore(limit = 20) {
345
+ if (!props.loading) {
346
+ if (executionListRef.value) {
347
+ const diff = executionListRef.value.offsetHeight - (executionListRef.value.scrollHeight - executionListRef.value.scrollTop);
348
+ if (diff > -10 && diff < 10) emit("loadMore", limit);
349
+ }
350
+ }
351
+ }
352
+ function onRetryExecution(payload) {
353
+ emit("retryExecution", payload);
354
+ }
355
+ function onFilterChanged(filter) {
356
+ autoScrollDeps.value.activeExecutionSet = false;
357
+ autoScrollDeps.value.cardsMounted = false;
358
+ autoScrollDeps.value.scroll = true;
359
+ emit("filterUpdated", filter);
360
+ }
361
+ function onAutoRefreshChange(enabled) {
362
+ emit("update:autoRefresh", typeof enabled === "boolean" ? enabled : Boolean(enabled));
363
+ }
364
+ function scrollToActiveCard() {
365
+ if (executionListRef.value && executionsStore.activeExecution && currentWorkflowExecutionsCardRefs.value[executionsStore.activeExecution.id]) {
366
+ const cardRect = currentWorkflowExecutionsCardRefs.value[executionsStore.activeExecution.id].$el.getBoundingClientRect();
367
+ const LIST_HEADER_OFFSET = 200;
368
+ if (cardRect.top > executionListRef.value.offsetHeight) {
369
+ autoScrollDeps.value.scroll = false;
370
+ executionListRef.value.scrollTo({
371
+ top: cardRect.top - LIST_HEADER_OFFSET,
372
+ behavior: "smooth"
373
+ });
374
+ }
375
+ }
376
+ }
377
+ const goToUpgrade = () => {
378
+ pageRedirectionHelper.goToUpgrade("concurrency", "upgrade-concurrency");
379
+ };
380
+ return (_ctx, _cache) => {
381
+ return openBlock(), createElementBlock("div", {
382
+ ref_key: "sidebarContainerRef",
383
+ ref: sidebarContainerRef,
384
+ class: normalizeClass(["executions-sidebar", _ctx.$style.container]),
385
+ "data-test-id": "executions-sidebar"
386
+ }, [
387
+ createBaseVNode("div", { class: normalizeClass(_ctx.$style.heading) }, [createVNode(unref(N8nHeading_default), {
388
+ tag: "h2",
389
+ size: "medium",
390
+ color: "text-dark"
391
+ }, {
392
+ default: withCtx(() => [createTextVNode(toDisplayString(unref(i18n).baseText("generic.executions")), 1)]),
393
+ _: 1
394
+ }), showConcurrencyHeader.value ? (openBlock(), createBlock(ConcurrentExecutionsHeader_default, {
395
+ key: 0,
396
+ "running-executions-count": unref(executionsStore).concurrentExecutionsCount,
397
+ "concurrency-cap": unref(settingsStore).concurrency,
398
+ "is-cloud-deployment": unref(settingsStore).isCloudDeployment,
399
+ onGoToUpgrade: goToUpgrade
400
+ }, null, 8, [
401
+ "running-executions-count",
402
+ "concurrency-cap",
403
+ "is-cloud-deployment"
404
+ ])) : createCommentVNode("", true)], 2),
405
+ createBaseVNode("div", { class: normalizeClass(_ctx.$style.controls) }, [createVNode(unref(ElCheckbox), {
406
+ modelValue: unref(executionsStore).autoRefresh,
407
+ "onUpdate:modelValue": [_cache[0] || (_cache[0] = ($event) => unref(executionsStore).autoRefresh = $event), onAutoRefreshChange],
408
+ "data-test-id": "auto-refresh-checkbox"
409
+ }, {
410
+ default: withCtx(() => [createTextVNode(toDisplayString(unref(i18n).baseText("executionsList.autoRefresh")), 1)]),
411
+ _: 1
412
+ }, 8, ["modelValue"]), createVNode(ExecutionsFilter_default, {
413
+ "popover-side": "right",
414
+ "popover-align": "start",
415
+ onFilterChanged
416
+ })], 2),
417
+ createBaseVNode("div", {
418
+ ref_key: "executionListRef",
419
+ ref: executionListRef,
420
+ class: normalizeClass(_ctx.$style.executionList),
421
+ "data-test-id": "current-executions-list",
422
+ onScroll: _cache[1] || (_cache[1] = ($event) => loadMore(20))
423
+ }, [
424
+ _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1, [createVNode(unref(N8nLoading_default), { variant: "rect" })])) : createCommentVNode("", true),
425
+ !_ctx.loading && _ctx.executions.length === 0 ? (openBlock(), createElementBlock("div", {
426
+ key: 1,
427
+ class: normalizeClass(_ctx.$style.noResultsContainer),
428
+ "data-test-id": "execution-list-empty"
429
+ }, [createVNode(unref(N8nText_default), {
430
+ color: "text-base",
431
+ size: "medium",
432
+ align: "center"
433
+ }, {
434
+ default: withCtx(() => [createTextVNode(toDisplayString(unref(i18n).baseText("executionsLandingPage.noResults")), 1)]),
435
+ _: 1
436
+ })], 2)) : _ctx.temporaryExecution ? (openBlock(), createBlock(WorkflowExecutionsCard_default, {
437
+ key: 2,
438
+ ref: (el) => addCurrentWorkflowExecutionsCardRef(el, _ctx.temporaryExecution?.id),
439
+ execution: _ctx.temporaryExecution,
440
+ "data-test-id": `execution-details-${_ctx.temporaryExecution.id}`,
441
+ "show-gap": true,
442
+ "workflow-permissions": workflowPermissions.value,
443
+ onRetryExecution
444
+ }, null, 8, [
445
+ "execution",
446
+ "data-test-id",
447
+ "workflow-permissions"
448
+ ])) : createCommentVNode("", true),
449
+ createVNode(TransitionGroup, { name: "executions-list" }, {
450
+ default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.executions, (execution) => {
451
+ return openBlock(), createBlock(WorkflowExecutionsCard_default, {
452
+ key: execution.id,
453
+ ref_for: true,
454
+ ref: (el) => addCurrentWorkflowExecutionsCardRef(el, execution.id),
455
+ execution,
456
+ "workflow-permissions": workflowPermissions.value,
457
+ "data-test-id": `execution-details-${execution.id}`,
458
+ onRetryExecution,
459
+ onMounted: onItemMounted
460
+ }, null, 8, [
461
+ "execution",
462
+ "workflow-permissions",
463
+ "data-test-id"
464
+ ]);
465
+ }), 128))]),
466
+ _: 1
467
+ }),
468
+ _ctx.loadingMore ? (openBlock(), createElementBlock("div", _hoisted_2, [createVNode(unref(N8nLoading_default), {
469
+ variant: "p",
470
+ rows: 1
471
+ })])) : createCommentVNode("", true)
472
+ ], 34),
473
+ createBaseVNode("div", { class: normalizeClass(_ctx.$style.infoAccordion) }, [createVNode(WorkflowExecutionsInfoAccordion_default, { "initially-expanded": false })], 2)
474
+ ], 2);
475
+ };
476
+ }
477
+ });
478
+ var WorkflowExecutionsSidebar_vue_vue_type_style_index_0_lang_module_default = {
479
+ container: "_container_hrgxj_123",
480
+ heading: "_heading_hrgxj_135",
481
+ controls: "_controls_hrgxj_142",
482
+ executionList: "_executionList_hrgxj_154",
483
+ infoAccordion: "_infoAccordion_hrgxj_172",
484
+ noResultsContainer: "_noResultsContainer_hrgxj_185"
485
+ };
486
+ var WorkflowExecutionsSidebar_default = /* @__PURE__ */ __plugin_vue_export_helper_default(WorkflowExecutionsSidebar_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": WorkflowExecutionsSidebar_vue_vue_type_style_index_0_lang_module_default }], ["__scopeId", "data-v-ae104a1e"]]);
487
+ var WorkflowExecutionsList_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
488
+ __name: "WorkflowExecutionsList",
489
+ props: {
490
+ loading: {
491
+ type: Boolean,
492
+ default: false
493
+ },
494
+ workflow: {},
495
+ executions: { default: () => [] },
496
+ execution: {},
497
+ loadingMore: {
498
+ type: Boolean,
499
+ default: false
500
+ }
501
+ },
502
+ emits: [
503
+ "execution:delete",
504
+ "execution:stop",
505
+ "execution:retry",
506
+ "update:auto-refresh",
507
+ "update:filters",
508
+ "load-more",
509
+ "reload"
510
+ ],
511
+ setup(__props, { emit: __emit }) {
512
+ const props = __props;
513
+ const emit = __emit;
514
+ const { promptSaveUnsavedWorkflowChanges } = useWorkflowSaving({ router: useRouter() });
515
+ const temporaryExecution = computed(() => props.executions.find((execution) => execution.id === props.execution?.id) ? void 0 : props.execution ?? void 0);
516
+ const hidePreview = computed(() => {
517
+ return props.loading || !props.execution && props.executions.length;
518
+ });
519
+ const onDeleteCurrentExecution = () => {
520
+ if (!props.execution?.id) return;
521
+ emit("execution:delete", props.execution.id);
522
+ };
523
+ const onStopExecution = () => {
524
+ if (!props.execution?.id) return;
525
+ emit("execution:stop", props.execution.id);
526
+ };
527
+ const onRetryExecution = (payload) => {
528
+ const loadWorkflow = payload.command === "current-workflow";
529
+ emit("execution:retry", {
530
+ id: payload.execution.id,
531
+ loadWorkflow
532
+ });
533
+ };
534
+ onBeforeRouteLeave(async (to, _, next) => {
535
+ if (getNodeViewTab(to) === MAIN_HEADER_TABS.WORKFLOW) {
536
+ next();
537
+ return;
538
+ }
539
+ await promptSaveUnsavedWorkflowChanges(next);
540
+ });
541
+ return (_ctx, _cache) => {
542
+ const _component_RouterView = resolveComponent("RouterView");
543
+ return openBlock(), createElementBlock("div", { class: normalizeClass(_ctx.$style.container) }, [createVNode(WorkflowExecutionsSidebar_default, {
544
+ executions: _ctx.executions,
545
+ loading: _ctx.loading && !_ctx.executions.length,
546
+ "loading-more": _ctx.loadingMore,
547
+ "temporary-execution": temporaryExecution.value,
548
+ workflow: _ctx.workflow,
549
+ "onUpdate:autoRefresh": _cache[0] || (_cache[0] = ($event) => emit("update:auto-refresh", $event)),
550
+ onReloadExecutions: _cache[1] || (_cache[1] = ($event) => emit("reload")),
551
+ onFilterUpdated: _cache[2] || (_cache[2] = ($event) => emit("update:filters", $event)),
552
+ onLoadMore: _cache[3] || (_cache[3] = ($event) => emit("load-more")),
553
+ onRetryExecution
554
+ }, null, 8, [
555
+ "executions",
556
+ "loading",
557
+ "loading-more",
558
+ "temporary-execution",
559
+ "workflow"
560
+ ]), !hidePreview.value ? (openBlock(), createElementBlock("div", {
561
+ key: 0,
562
+ class: normalizeClass(_ctx.$style.content)
563
+ }, [createVNode(_component_RouterView, {
564
+ name: "executionPreview",
565
+ execution: _ctx.execution,
566
+ onDeleteCurrentExecution,
567
+ onRetryExecution,
568
+ onStopExecution
569
+ }, null, 8, ["execution"])], 2)) : createCommentVNode("", true)], 2);
570
+ };
571
+ }
572
+ });
573
+ var WorkflowExecutionsList_vue_vue_type_style_index_0_lang_module_default = {
574
+ container: "_container_udnba_123",
575
+ content: "_content_udnba_129"
576
+ };
577
+ var WorkflowExecutionsList_default = /* @__PURE__ */ __plugin_vue_export_helper_default(WorkflowExecutionsList_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": WorkflowExecutionsList_vue_vue_type_style_index_0_lang_module_default }]]);
578
+ var WorkflowExecutionsView_default = /* @__PURE__ */ defineComponent({
579
+ __name: "WorkflowExecutionsView",
580
+ setup(__props) {
581
+ const executionsStore = useExecutionsStore();
582
+ const workflowsStore = useWorkflowsStore();
583
+ const nodeTypesStore = useNodeTypesStore();
584
+ const projectsStore = useProjectsStore();
585
+ const i18n = useI18n();
586
+ const telemetry = useTelemetry();
587
+ const route = useRoute();
588
+ const router = useRouter();
589
+ const toast = useToast();
590
+ const { callDebounced } = useDebounce();
591
+ const { initializeWorkspace } = useCanvasOperations();
592
+ const loading = ref(false);
593
+ const loadingMore = ref(false);
594
+ const workflow = ref();
595
+ const workflowId = computed(() => {
596
+ const name = route.params.name;
597
+ return typeof name === "string" ? name : void 0;
598
+ });
599
+ const executionId = computed(() => {
600
+ const id = route.params.executionId;
601
+ return typeof id === "string" ? id : void 0;
602
+ });
603
+ const executions = computed(() => workflowId.value ? [...executionsStore.currentExecutionsByWorkflowId[workflowId.value] ?? [], ...executionsStore.executionsByWorkflowId[workflowId.value] ?? []] : []);
604
+ const execution = computed(() => {
605
+ return executions.value.find((e) => e.id === executionId.value) ?? currentExecution.value;
606
+ });
607
+ const currentExecution = ref();
608
+ const isNewWorkflowRoute = computed(() => {
609
+ return route.query.new === "true";
610
+ });
611
+ watch(() => workflowId.value, async () => {
612
+ await fetchWorkflow();
613
+ });
614
+ watch(() => executionId.value, async () => {
615
+ await fetchExecution();
616
+ });
617
+ onMounted(async () => {
618
+ await Promise.all([nodeTypesStore.loadNodeTypesIfNotLoaded(), fetchWorkflow()]);
619
+ if (workflowId.value) await Promise.all([executionsStore.initialize(workflowId.value), fetchExecution()]);
620
+ await initializeRoute();
621
+ document.addEventListener("visibilitychange", onDocumentVisibilityChange);
622
+ });
623
+ onBeforeUnmount(() => {
624
+ executionsStore.reset();
625
+ document.removeEventListener("visibilitychange", onDocumentVisibilityChange);
626
+ });
627
+ async function fetchExecution() {
628
+ if (!executionId.value) return;
629
+ try {
630
+ currentExecution.value = await executionsStore.fetchExecution(executionId.value);
631
+ executionsStore.activeExecution = currentExecution.value;
632
+ } catch (error$1) {
633
+ toast.showError(error$1, i18n.baseText("nodeView.showError.openExecution.title"));
634
+ }
635
+ if (!currentExecution.value) {
636
+ toast.showMessage({
637
+ type: "error",
638
+ title: i18n.baseText("openExecution.missingExeuctionId.title"),
639
+ message: i18n.baseText("openExecution.missingExeuctionId.message")
640
+ });
641
+ return;
642
+ }
643
+ }
644
+ function onDocumentVisibilityChange() {
645
+ if (document.visibilityState === "hidden") executionsStore.stopAutoRefreshInterval();
646
+ else executionsStore.startAutoRefreshInterval(workflowId.value);
647
+ }
648
+ async function initializeRoute() {
649
+ if (route.name === VIEWS.EXECUTION_HOME && executions.value.length > 0 && workflow.value) await router.replace({
650
+ name: VIEWS.EXECUTION_PREVIEW,
651
+ params: {
652
+ name: workflow.value.id,
653
+ executionId: executions.value[0].id
654
+ },
655
+ query: route.query
656
+ }).catch(() => {});
657
+ }
658
+ async function fetchWorkflow() {
659
+ if (isNewWorkflowRoute.value) {
660
+ workflow.value = workflowsStore.workflow;
661
+ return;
662
+ }
663
+ if (workflowId.value) if (!workflowsStore.workflowsById[workflowId.value]) {
664
+ try {
665
+ await workflowsStore.fetchActiveWorkflows();
666
+ await initializeWorkspace(await workflowsStore.fetchWorkflow(workflowId.value));
667
+ } catch (error$1) {
668
+ toast.showError(error$1, i18n.baseText("nodeView.showError.openWorkflow.title"));
669
+ }
670
+ workflow.value = workflowsStore.getWorkflowById(workflowId.value);
671
+ const workflowData = await workflowsStore.fetchWorkflow(workflow.value.id);
672
+ await projectsStore.setProjectNavActiveIdByWorkflowHomeProject(workflowData.homeProject);
673
+ } else workflow.value = workflowsStore.workflowsById[workflowId.value];
674
+ }
675
+ async function onAutoRefreshToggle(value) {
676
+ if (value) await executionsStore.startAutoRefreshInterval(workflowId.value);
677
+ else executionsStore.stopAutoRefreshInterval();
678
+ }
679
+ async function onRefreshData() {
680
+ if (!workflowId.value) return;
681
+ try {
682
+ await executionsStore.fetchExecutions({
683
+ ...executionsStore.executionsFilters,
684
+ workflowId: workflowId.value
685
+ });
686
+ } catch (error$1) {
687
+ if (error$1.errorCode === 999) toast.showMessage({
688
+ title: i18n.baseText("executionsList.showError.refreshData.title"),
689
+ message: error$1.message,
690
+ type: "error",
691
+ duration: 3500
692
+ }, false);
693
+ else toast.showError(error$1, i18n.baseText("executionsList.showError.refreshData.title"));
694
+ }
695
+ }
696
+ async function onUpdateFilters(newFilters) {
697
+ executionsStore.reset();
698
+ executionsStore.setFilters(newFilters);
699
+ await executionsStore.initialize(workflowId.value);
700
+ }
701
+ async function onExecutionStop(id) {
702
+ if (!id) return;
703
+ try {
704
+ await executionsStore.stopCurrentExecution(id);
705
+ toast.showMessage({
706
+ title: i18n.baseText("executionsList.showMessage.stopExecution.title"),
707
+ message: i18n.baseText("executionsList.showMessage.stopExecution.message", { interpolate: { activeExecutionId: id } }),
708
+ type: "success"
709
+ });
710
+ await onRefreshData();
711
+ } catch (error$1) {
712
+ toast.showError(error$1, i18n.baseText("executionsList.showError.stopExecution.title"));
713
+ }
714
+ }
715
+ async function onExecutionDelete(id) {
716
+ if (!id) return;
717
+ loading.value = true;
718
+ try {
719
+ const executionIndex = executions.value.findIndex((e) => e.id === id);
720
+ const nextExecution = executions.value[executionIndex + 1] || executions.value[executionIndex - 1] || executions.value[0];
721
+ await executionsStore.deleteExecutions({ ids: [id] });
722
+ if (workflow.value) if (executions.value.length > 0) await router.replace({
723
+ name: VIEWS.EXECUTION_PREVIEW,
724
+ params: {
725
+ name: workflow.value.id,
726
+ executionId: nextExecution.id
727
+ }
728
+ }).catch(() => {});
729
+ else await router.replace({
730
+ name: VIEWS.EXECUTION_HOME,
731
+ params: { name: workflow.value.id }
732
+ });
733
+ } catch (error$1) {
734
+ loading.value = false;
735
+ toast.showError(error$1, i18n.baseText("executionsList.showError.handleDeleteSelected.title"));
736
+ return;
737
+ }
738
+ loading.value = false;
739
+ toast.showMessage({
740
+ title: i18n.baseText("executionsList.showMessage.handleDeleteSelected.title"),
741
+ type: "success"
742
+ });
743
+ }
744
+ async function onExecutionRetry(payload) {
745
+ toast.showMessage({
746
+ title: i18n.baseText("executionDetails.runningMessage"),
747
+ type: "info",
748
+ duration: 2e3
749
+ });
750
+ await retryExecution(payload);
751
+ await onRefreshData();
752
+ telemetry.track("User clicked retry execution button", {
753
+ workflow_id: workflow.value?.id,
754
+ execution_id: payload.id,
755
+ retry_type: payload.loadWorkflow ? "current" : "original"
756
+ });
757
+ }
758
+ async function retryExecution(payload) {
759
+ try {
760
+ const retryMessage = executionRetryMessage((await executionsStore.retryExecution(payload.id, payload.loadWorkflow)).status);
761
+ if (retryMessage) toast.showMessage(retryMessage);
762
+ } catch (error$1) {
763
+ toast.showError(error$1, i18n.baseText("executionsList.showError.retryExecution.title"));
764
+ }
765
+ }
766
+ async function onLoadMore() {
767
+ if (!loadingMore.value) await callDebounced(loadMore, { debounceTime: 1e3 });
768
+ }
769
+ async function loadMore() {
770
+ if (!!executionsStore.executionsFilters.status?.includes("running") || executions.value.length >= executionsStore.executionsCount) return;
771
+ loadingMore.value = true;
772
+ let lastId;
773
+ if (executions.value.length !== 0) lastId = executions.value.slice(-1)[0].id;
774
+ try {
775
+ await executionsStore.fetchExecutions(executionsStore.executionsFilters, lastId);
776
+ } catch (error$1) {
777
+ loadingMore.value = false;
778
+ toast.showError(error$1, i18n.baseText("executionsList.showError.loadMore.title"));
779
+ return;
780
+ }
781
+ loadingMore.value = false;
782
+ }
783
+ return (_ctx, _cache) => {
784
+ return workflow.value ? (openBlock(), createBlock(WorkflowExecutionsList_default, {
785
+ key: 0,
786
+ executions: executions.value,
787
+ execution: execution.value,
788
+ workflow: workflow.value,
789
+ loading: loading.value,
790
+ "loading-more": loadingMore.value,
791
+ "onExecution:stop": onExecutionStop,
792
+ "onExecution:delete": onExecutionDelete,
793
+ "onExecution:retry": onExecutionRetry,
794
+ "onUpdate:filters": onUpdateFilters,
795
+ "onUpdate:autoRefresh": onAutoRefreshToggle,
796
+ onLoadMore,
797
+ onReload: onRefreshData
798
+ }, null, 8, [
799
+ "executions",
800
+ "execution",
801
+ "workflow",
802
+ "loading",
803
+ "loading-more"
804
+ ])) : createCommentVNode("", true);
805
+ };
806
+ }
807
+ });
808
+ export { WorkflowExecutionsView_default as default };