@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,631 @@
|
|
|
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, Z as onMounted, _ as Fragment, _t as watch, bt as withCtx, et as openBlock, it as renderList, j as createTextVNode, mt as useTemplateRef, p as vShow, vn as normalizeClass, w as createBaseVNode, xt as withDirectives } from "./vue.runtime.esm-bundler-tP5dCd7J.js";
|
|
2
|
+
import { it as I18nT, rt as useI18n } from "./core-CRbPymLT.js";
|
|
3
|
+
import { Cn as N8nIcon_default, R as N8nInfoTip_default, _ as N8nTree_default, ht as N8nTooltip_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 "./truncate-C0KYt7i3.js";
|
|
8
|
+
import { Ki as shorten, N as useNDVStore, P as useWorkflowsStore, Tn as getMappedExpression, gr as getPairedItemId, k as useTelemetry, x as useExternalHooks } from "./builder.store-Czk2ipDE.js";
|
|
9
|
+
import "./empty-BuGRxzl4.js";
|
|
10
|
+
import "./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 "./constants-C8OH4tTq.js";
|
|
16
|
+
import "./merge-DhuTk1HM.js";
|
|
17
|
+
import { A as storeToRefs } from "./_baseOrderBy-N8Be_6z6.js";
|
|
18
|
+
import "./dateformat-hG8NERse.js";
|
|
19
|
+
import "./useDebounce-Br5_1ug-.js";
|
|
20
|
+
import { t as Draggable_default } from "./Draggable-vfvXl9Sp.js";
|
|
21
|
+
import { t as TextWithHighlights_default } from "./TextWithHighlights-BxumwGnv.js";
|
|
22
|
+
import { n as MappingPill_default, t as useTelemetryContext } from "./useTelemetryContext-V6bv4YRq.js";
|
|
23
|
+
import "./dateFormatter-ik4-9_9r.js";
|
|
24
|
+
import { t as useExecutionHelpers } from "./useExecutionHelpers-BgRRhpBM.js";
|
|
25
|
+
"" + new URL("../static/data-mapping-gif.gif", import.meta.url).href;
|
|
26
|
+
var _hoisted_1 = ["data-row"];
|
|
27
|
+
var _hoisted_2 = ["data-row"];
|
|
28
|
+
var _hoisted_3 = { key: 0 };
|
|
29
|
+
var _hoisted_4 = ["width"];
|
|
30
|
+
var _hoisted_5 = ["data-test-id"];
|
|
31
|
+
var _hoisted_6 = ["data-row"];
|
|
32
|
+
var _hoisted_7 = ["data-row", "data-col"];
|
|
33
|
+
var _hoisted_8 = { key: 1 };
|
|
34
|
+
var MAX_COLUMNS_LIMIT = 40;
|
|
35
|
+
var RunDataTable_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
36
|
+
__name: "RunDataTable",
|
|
37
|
+
props: {
|
|
38
|
+
node: {},
|
|
39
|
+
inputData: {},
|
|
40
|
+
distanceFromActive: {},
|
|
41
|
+
pageOffset: {},
|
|
42
|
+
runIndex: { default: 0 },
|
|
43
|
+
outputIndex: { default: 0 },
|
|
44
|
+
totalRuns: { default: 0 },
|
|
45
|
+
mappingEnabled: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
default: false
|
|
48
|
+
},
|
|
49
|
+
hasDefaultHoverState: {
|
|
50
|
+
type: Boolean,
|
|
51
|
+
default: false
|
|
52
|
+
},
|
|
53
|
+
search: { default: "" },
|
|
54
|
+
headerBgColor: { default: "base" },
|
|
55
|
+
compact: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
default: false
|
|
58
|
+
},
|
|
59
|
+
disableHoverHighlight: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: false
|
|
62
|
+
},
|
|
63
|
+
collapsingColumnName: {}
|
|
64
|
+
},
|
|
65
|
+
emits: [
|
|
66
|
+
"activeRowChanged",
|
|
67
|
+
"displayModeChange",
|
|
68
|
+
"mounted",
|
|
69
|
+
"collapsingColumnChanged"
|
|
70
|
+
],
|
|
71
|
+
setup(__props, { emit: __emit }) {
|
|
72
|
+
const props = __props;
|
|
73
|
+
const emit = __emit;
|
|
74
|
+
const externalHooks = useExternalHooks();
|
|
75
|
+
const tableRef = useTemplateRef("tableRef");
|
|
76
|
+
const activeColumn = ref(-1);
|
|
77
|
+
const forceShowGrip = ref(false);
|
|
78
|
+
const draggedColumn = ref(false);
|
|
79
|
+
const draggingPath = ref(null);
|
|
80
|
+
const hoveringPath = ref(null);
|
|
81
|
+
const hoveringColumnIndex = ref(-1);
|
|
82
|
+
const activeRow = ref(null);
|
|
83
|
+
const columnLimit = ref(MAX_COLUMNS_LIMIT);
|
|
84
|
+
const columnLimitExceeded = ref(false);
|
|
85
|
+
const draggableRef = ref();
|
|
86
|
+
const fixedColumnWidths = ref();
|
|
87
|
+
const ndvStore = useNDVStore();
|
|
88
|
+
const workflowsStore = useWorkflowsStore();
|
|
89
|
+
const i18n = useI18n();
|
|
90
|
+
const telemetry = useTelemetry();
|
|
91
|
+
const telemetryContext = useTelemetryContext();
|
|
92
|
+
const { trackOpeningRelatedExecution, resolveRelatedExecutionUrl } = useExecutionHelpers();
|
|
93
|
+
const { hoveringItem, focusedMappableInput, highlightDraggables: highlight$1 } = storeToRefs(ndvStore);
|
|
94
|
+
const canDraggableDrop = computed(() => ndvStore.canDraggableDrop);
|
|
95
|
+
const draggableStickyPosition = computed(() => ndvStore.draggableStickyPos);
|
|
96
|
+
const pairedItemMappings = computed(() => workflowsStore.workflowExecutionPairedItemMappings);
|
|
97
|
+
const tableData = computed(() => convertToTable(props.inputData));
|
|
98
|
+
const collapsingColumnIndex = computed(() => {
|
|
99
|
+
if (!props.collapsingColumnName) return -1;
|
|
100
|
+
return tableData.value.columns.indexOf(props.collapsingColumnName);
|
|
101
|
+
});
|
|
102
|
+
onMounted(() => {
|
|
103
|
+
if (tableData.value?.columns && draggableRef.value) {
|
|
104
|
+
const tbody = draggableRef.value.$refs.wrapper;
|
|
105
|
+
if (tbody) emit("mounted", { avgRowHeight: tbody.offsetHeight / tableData.value.data.length });
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
function isHoveringRow(row) {
|
|
109
|
+
if (props.disableHoverHighlight) return false;
|
|
110
|
+
if (row === activeRow.value) return true;
|
|
111
|
+
const itemIndex = props.pageOffset + row;
|
|
112
|
+
if (itemIndex === 0 && !hoveringItem.value && props.hasDefaultHoverState && props.distanceFromActive === 1) return true;
|
|
113
|
+
const itemNodeId = getPairedItemId(props.node?.name ?? "", props.runIndex || 0, props.outputIndex || 0, itemIndex);
|
|
114
|
+
if (!hoveringItem.value || !pairedItemMappings.value[itemNodeId]) return false;
|
|
115
|
+
const hoveringItemId = getPairedItemId(hoveringItem.value.nodeName, hoveringItem.value.runIndex, hoveringItem.value.outputIndex, hoveringItem.value.itemIndex);
|
|
116
|
+
return pairedItemMappings.value[itemNodeId].has(hoveringItemId);
|
|
117
|
+
}
|
|
118
|
+
function showExecutionLink(index) {
|
|
119
|
+
if (index === activeRow.value) return true;
|
|
120
|
+
if (activeRow.value === null) return index === 0;
|
|
121
|
+
return false;
|
|
122
|
+
}
|
|
123
|
+
function onMouseEnterCell(e) {
|
|
124
|
+
const target = e.target;
|
|
125
|
+
const col = target.dataset.col;
|
|
126
|
+
const parsedCol = col ? parseInt(col, 10) : NaN;
|
|
127
|
+
if (!isNaN(parsedCol)) {
|
|
128
|
+
hoveringColumnIndex.value = parsedCol;
|
|
129
|
+
if (target && props.mappingEnabled) activeColumn.value = parsedCol;
|
|
130
|
+
}
|
|
131
|
+
if (target) {
|
|
132
|
+
const row = target.dataset.row;
|
|
133
|
+
if (row && !isNaN(parseInt(row, 10))) {
|
|
134
|
+
activeRow.value = parseInt(row, 10);
|
|
135
|
+
emit("activeRowChanged", props.pageOffset + activeRow.value);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
function onMouseLeaveCell() {
|
|
140
|
+
activeColumn.value = -1;
|
|
141
|
+
activeRow.value = null;
|
|
142
|
+
emit("activeRowChanged", null);
|
|
143
|
+
hoveringColumnIndex.value = -1;
|
|
144
|
+
}
|
|
145
|
+
function onMouseEnterKey(path, colIndex) {
|
|
146
|
+
hoveringPath.value = getCellExpression(path, colIndex);
|
|
147
|
+
}
|
|
148
|
+
function onMouseLeaveKey() {
|
|
149
|
+
hoveringPath.value = null;
|
|
150
|
+
}
|
|
151
|
+
function isHovering(path, colIndex) {
|
|
152
|
+
const expr = getCellExpression(path, colIndex);
|
|
153
|
+
return hoveringPath.value === expr;
|
|
154
|
+
}
|
|
155
|
+
function getExpression(column) {
|
|
156
|
+
if (!props.node) return "";
|
|
157
|
+
return getMappedExpression({
|
|
158
|
+
nodeName: props.node.name,
|
|
159
|
+
distanceFromActive: props.distanceFromActive,
|
|
160
|
+
path: [column]
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
function getPathNameFromTarget(el) {
|
|
164
|
+
if (!el) return "";
|
|
165
|
+
return el.dataset.name;
|
|
166
|
+
}
|
|
167
|
+
function getCellPathName(path, colIndex) {
|
|
168
|
+
const lastKey = path[path.length - 1];
|
|
169
|
+
if (typeof lastKey === "string") return lastKey;
|
|
170
|
+
if (path.length > 1) return `${path[path.length - 2]}[${lastKey}]`;
|
|
171
|
+
return `${tableData.value.columns[colIndex]}[${lastKey}]`;
|
|
172
|
+
}
|
|
173
|
+
function getCellExpression(path, colIndex) {
|
|
174
|
+
if (!props.node) return "";
|
|
175
|
+
const column = tableData.value.columns[colIndex];
|
|
176
|
+
return getMappedExpression({
|
|
177
|
+
nodeName: props.node.name,
|
|
178
|
+
distanceFromActive: props.distanceFromActive,
|
|
179
|
+
path: [column, ...path]
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
function isEmpty(value$1) {
|
|
183
|
+
return value$1 === "" || Array.isArray(value$1) && value$1.length === 0 || typeof value$1 === "object" && value$1 !== null && Object.keys(value$1).length === 0 || value$1 === null || value$1 === void 0;
|
|
184
|
+
}
|
|
185
|
+
function getValueToRender(value$1) {
|
|
186
|
+
if (value$1 === "") return i18n.baseText("runData.emptyString");
|
|
187
|
+
if (typeof value$1 === "string") return value$1;
|
|
188
|
+
if (Array.isArray(value$1) && value$1.length === 0) return i18n.baseText("runData.emptyArray");
|
|
189
|
+
if (typeof value$1 === "object" && value$1 !== null && Object.keys(value$1).length === 0) return i18n.baseText("runData.emptyObject");
|
|
190
|
+
if (value$1 === null || value$1 === void 0) return `${value$1}`;
|
|
191
|
+
if (value$1 === true || value$1 === false || typeof value$1 === "number") return value$1.toString();
|
|
192
|
+
return JSON.stringify(value$1);
|
|
193
|
+
}
|
|
194
|
+
function onDragStart(el, data) {
|
|
195
|
+
draggedColumn.value = true;
|
|
196
|
+
ndvStore.draggableStartDragging({
|
|
197
|
+
type: "mapping",
|
|
198
|
+
data: data ?? "",
|
|
199
|
+
dimensions: el?.getBoundingClientRect() ?? null
|
|
200
|
+
});
|
|
201
|
+
ndvStore.resetMappingTelemetry();
|
|
202
|
+
}
|
|
203
|
+
function onCellDragStart(el, data) {
|
|
204
|
+
if (el?.dataset.value) draggingPath.value = el.dataset.value;
|
|
205
|
+
onDragStart(el, data);
|
|
206
|
+
}
|
|
207
|
+
function onCellDragEnd(el) {
|
|
208
|
+
draggingPath.value = null;
|
|
209
|
+
onDragEnd(el.dataset.name ?? "", "tree", el.dataset.depth ?? "0");
|
|
210
|
+
}
|
|
211
|
+
function isDraggingKey(path, colIndex) {
|
|
212
|
+
if (!draggingPath.value) return;
|
|
213
|
+
return draggingPath.value === getCellExpression(path, colIndex);
|
|
214
|
+
}
|
|
215
|
+
function onDragEnd(column, src, depth = "0") {
|
|
216
|
+
ndvStore.draggableStopDragging();
|
|
217
|
+
setTimeout(() => {
|
|
218
|
+
const mappingTelemetry = ndvStore.mappingTelemetry;
|
|
219
|
+
const telemetryPayload = {
|
|
220
|
+
src_node_type: props.node.type,
|
|
221
|
+
src_field_name: column,
|
|
222
|
+
src_nodes_back: props.distanceFromActive,
|
|
223
|
+
src_run_index: props.runIndex,
|
|
224
|
+
src_runs_total: props.totalRuns,
|
|
225
|
+
src_field_nest_level: parseInt(depth, 10),
|
|
226
|
+
src_view: "table",
|
|
227
|
+
src_element: src,
|
|
228
|
+
success: false,
|
|
229
|
+
view_shown: telemetryContext.view_shown,
|
|
230
|
+
...mappingTelemetry
|
|
231
|
+
};
|
|
232
|
+
externalHooks.run("runDataTable.onDragEnd", telemetryPayload);
|
|
233
|
+
telemetry.track("User dragged data for mapping", telemetryPayload);
|
|
234
|
+
}, 1e3);
|
|
235
|
+
}
|
|
236
|
+
function isSimple(data) {
|
|
237
|
+
return typeof data !== "object" || data === null || Array.isArray(data) && data.length === 0 || typeof data === "object" && Object.keys(data).length === 0;
|
|
238
|
+
}
|
|
239
|
+
function isObject(data) {
|
|
240
|
+
return !isSimple(data);
|
|
241
|
+
}
|
|
242
|
+
function hasJsonInColumn(colIndex) {
|
|
243
|
+
return tableData.value.hasJson[tableData.value.columns[colIndex]];
|
|
244
|
+
}
|
|
245
|
+
function convertToTable(inputData) {
|
|
246
|
+
const resultTableData = [];
|
|
247
|
+
const tableColumns = [];
|
|
248
|
+
let leftEntryColumns, entryRows;
|
|
249
|
+
let entry;
|
|
250
|
+
const metadata = {
|
|
251
|
+
hasExecutionIds: false,
|
|
252
|
+
data: []
|
|
253
|
+
};
|
|
254
|
+
const hasJson = {};
|
|
255
|
+
inputData.forEach((data) => {
|
|
256
|
+
if (!data.hasOwnProperty("json")) return;
|
|
257
|
+
entry = data.json;
|
|
258
|
+
entryRows = [];
|
|
259
|
+
const entryColumns = Object.keys(entry || {});
|
|
260
|
+
if (entryColumns.length > MAX_COLUMNS_LIMIT) {
|
|
261
|
+
columnLimitExceeded.value = true;
|
|
262
|
+
leftEntryColumns = entryColumns.slice(0, MAX_COLUMNS_LIMIT);
|
|
263
|
+
} else leftEntryColumns = entryColumns;
|
|
264
|
+
if (data.metadata?.subExecution) {
|
|
265
|
+
metadata.data.push(data.metadata);
|
|
266
|
+
metadata.hasExecutionIds = true;
|
|
267
|
+
} else metadata.data.push(void 0);
|
|
268
|
+
tableColumns.forEach((key) => {
|
|
269
|
+
if (entry.hasOwnProperty(key)) {
|
|
270
|
+
entryRows.push(entry[key]);
|
|
271
|
+
leftEntryColumns.splice(leftEntryColumns.indexOf(key), 1);
|
|
272
|
+
hasJson[key] = hasJson[key] || typeof entry[key] === "object" && Object.keys(entry[key] ?? {}).length > 0 || false;
|
|
273
|
+
} else entryRows.push(void 0);
|
|
274
|
+
});
|
|
275
|
+
leftEntryColumns.forEach((key) => {
|
|
276
|
+
tableColumns.push(key);
|
|
277
|
+
entryRows.push(entry[key]);
|
|
278
|
+
hasJson[key] = hasJson[key] || typeof entry[key] === "object" && Object.keys(entry[key] ?? {}).length > 0 || false;
|
|
279
|
+
});
|
|
280
|
+
resultTableData.push(entryRows);
|
|
281
|
+
});
|
|
282
|
+
resultTableData.forEach((rows) => {
|
|
283
|
+
if (tableColumns.length > rows.length) rows.push(...new Array(tableColumns.length - rows.length));
|
|
284
|
+
});
|
|
285
|
+
return {
|
|
286
|
+
hasJson,
|
|
287
|
+
columns: tableColumns,
|
|
288
|
+
data: resultTableData,
|
|
289
|
+
metadata
|
|
290
|
+
};
|
|
291
|
+
}
|
|
292
|
+
function switchToJsonView() {
|
|
293
|
+
emit("displayModeChange", "json");
|
|
294
|
+
}
|
|
295
|
+
function handleSetCollapsingColumn(columnIndex) {
|
|
296
|
+
emit("collapsingColumnChanged", collapsingColumnIndex.value === columnIndex ? null : tableData.value.columns[columnIndex] ?? null);
|
|
297
|
+
}
|
|
298
|
+
watch(focusedMappableInput, (curr) => {
|
|
299
|
+
setTimeout(() => {
|
|
300
|
+
forceShowGrip.value = !!focusedMappableInput.value;
|
|
301
|
+
}, curr ? 300 : 150);
|
|
302
|
+
});
|
|
303
|
+
watch([collapsingColumnIndex, tableRef], ([index, table$1]) => {
|
|
304
|
+
if (index === -1) {
|
|
305
|
+
fixedColumnWidths.value = void 0;
|
|
306
|
+
return;
|
|
307
|
+
}
|
|
308
|
+
if (table$1 === null) return;
|
|
309
|
+
fixedColumnWidths.value = [...table$1.querySelectorAll("thead tr th")].map((el) => el instanceof HTMLElement ? el.getBoundingClientRect().width : 0);
|
|
310
|
+
}, {
|
|
311
|
+
immediate: true,
|
|
312
|
+
flush: "post"
|
|
313
|
+
});
|
|
314
|
+
return (_ctx, _cache) => {
|
|
315
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass([_ctx.$style.dataDisplay, {
|
|
316
|
+
[_ctx.$style.highlight]: unref(highlight$1),
|
|
317
|
+
[_ctx.$style.lightHeader]: _ctx.headerBgColor === "light",
|
|
318
|
+
[_ctx.$style.compact]: props.compact,
|
|
319
|
+
[_ctx.$style.hasCollapsingColumn]: fixedColumnWidths.value !== void 0
|
|
320
|
+
}]) }, [tableData.value.columns && tableData.value.columns.length === 0 ? (openBlock(), createElementBlock("table", {
|
|
321
|
+
key: 0,
|
|
322
|
+
class: normalizeClass(_ctx.$style.table)
|
|
323
|
+
}, [createBaseVNode("thead", null, [createBaseVNode("tr", null, [
|
|
324
|
+
tableData.value.metadata.hasExecutionIds ? (openBlock(), createElementBlock("th", {
|
|
325
|
+
key: 0,
|
|
326
|
+
class: normalizeClass(_ctx.$style.executionLinkRowHeader)
|
|
327
|
+
}, null, 2)) : createCommentVNode("", true),
|
|
328
|
+
createBaseVNode("th", { class: normalizeClass(_ctx.$style.emptyCell) }, null, 2),
|
|
329
|
+
createBaseVNode("th", { class: normalizeClass(_ctx.$style.tableRightMargin) }, null, 2)
|
|
330
|
+
])]), createBaseVNode("tbody", null, [(openBlock(true), createElementBlock(Fragment, null, renderList(tableData.value.data, (_, index1) => {
|
|
331
|
+
return openBlock(), createElementBlock("tr", {
|
|
332
|
+
key: index1,
|
|
333
|
+
class: normalizeClass({ [_ctx.$style.hoveringRow]: isHoveringRow(index1) })
|
|
334
|
+
}, [
|
|
335
|
+
tableData.value.metadata.hasExecutionIds ? (openBlock(), createElementBlock("td", {
|
|
336
|
+
key: 0,
|
|
337
|
+
"data-row": index1,
|
|
338
|
+
class: normalizeClass(_ctx.$style.executionLinkCell),
|
|
339
|
+
onMouseenter: onMouseEnterCell,
|
|
340
|
+
onMouseleave: onMouseLeaveCell
|
|
341
|
+
}, [tableData.value.metadata.data[index1] ? (openBlock(), createBlock(unref(N8nTooltip_default), {
|
|
342
|
+
key: 0,
|
|
343
|
+
content: unref(i18n).baseText("runData.table.viewSubExecution", { interpolate: { id: `${tableData.value.metadata.data[index1]?.subExecution.executionId}` } }),
|
|
344
|
+
placement: "left",
|
|
345
|
+
"hide-after": 0
|
|
346
|
+
}, {
|
|
347
|
+
default: withCtx(() => [withDirectives(createVNode(unref(N8nIconButton_default), {
|
|
348
|
+
element: "a",
|
|
349
|
+
type: "secondary",
|
|
350
|
+
icon: "external-link",
|
|
351
|
+
"data-test-id": "debug-sub-execution",
|
|
352
|
+
size: "mini",
|
|
353
|
+
target: "_blank",
|
|
354
|
+
href: unref(resolveRelatedExecutionUrl)(tableData.value.metadata.data[index1]),
|
|
355
|
+
onClick: ($event) => unref(trackOpeningRelatedExecution)(tableData.value.metadata.data[index1], "table")
|
|
356
|
+
}, null, 8, ["href", "onClick"]), [[vShow, showExecutionLink(index1)]])]),
|
|
357
|
+
_: 2
|
|
358
|
+
}, 1032, ["content"])) : createCommentVNode("", true)], 42, _hoisted_1)) : createCommentVNode("", true),
|
|
359
|
+
createBaseVNode("td", {
|
|
360
|
+
"data-row": index1,
|
|
361
|
+
"data-col": 0,
|
|
362
|
+
onMouseenter: onMouseEnterCell,
|
|
363
|
+
onMouseleave: onMouseLeaveCell
|
|
364
|
+
}, [createVNode(unref(N8nInfoTip_default), null, {
|
|
365
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(i18n).baseText("runData.emptyItemHint")), 1)]),
|
|
366
|
+
_: 1
|
|
367
|
+
})], 40, _hoisted_2),
|
|
368
|
+
createBaseVNode("td", { class: normalizeClass(_ctx.$style.tableRightMargin) }, null, 2)
|
|
369
|
+
], 2);
|
|
370
|
+
}), 128))])], 2)) : (openBlock(), createElementBlock("table", {
|
|
371
|
+
key: 1,
|
|
372
|
+
ref_key: "tableRef",
|
|
373
|
+
ref: tableRef,
|
|
374
|
+
class: normalizeClass(_ctx.$style.table)
|
|
375
|
+
}, [
|
|
376
|
+
fixedColumnWidths.value ? (openBlock(), createElementBlock("colgroup", _hoisted_3, [(openBlock(true), createElementBlock(Fragment, null, renderList(fixedColumnWidths.value, (width, i) => {
|
|
377
|
+
return openBlock(), createElementBlock("col", {
|
|
378
|
+
key: i,
|
|
379
|
+
width
|
|
380
|
+
}, null, 8, _hoisted_4);
|
|
381
|
+
}), 128))])) : createCommentVNode("", true),
|
|
382
|
+
createBaseVNode("thead", null, [createBaseVNode("tr", null, [
|
|
383
|
+
tableData.value.metadata.hasExecutionIds ? (openBlock(), createElementBlock("th", {
|
|
384
|
+
key: 0,
|
|
385
|
+
class: normalizeClass(_ctx.$style.executionLinkRowHeader)
|
|
386
|
+
}, null, 2)) : createCommentVNode("", true),
|
|
387
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(tableData.value.columns || [], (column, i) => {
|
|
388
|
+
return openBlock(), createElementBlock("th", {
|
|
389
|
+
key: column,
|
|
390
|
+
class: normalizeClass({
|
|
391
|
+
[_ctx.$style.isCollapsingColumn]: collapsingColumnIndex.value === i,
|
|
392
|
+
[_ctx.$style.isHoveredColumn]: hoveringColumnIndex.value === i
|
|
393
|
+
})
|
|
394
|
+
}, [createVNode(unref(N8nTooltip_default), {
|
|
395
|
+
placement: "bottom-start",
|
|
396
|
+
disabled: !_ctx.mappingEnabled,
|
|
397
|
+
"show-after": 1e3
|
|
398
|
+
}, {
|
|
399
|
+
content: withCtx(() => [createBaseVNode("div", null, [_cache[0] || (_cache[0] = createBaseVNode("img", { src: "" + new URL("../static/data-mapping-gif.gif", import.meta.url).href }, null, -1)), createTextVNode(" " + toDisplayString(unref(i18n).baseText("dataMapping.dragColumnToFieldHint")), 1)])]),
|
|
400
|
+
default: withCtx(() => [createVNode(Draggable_default, {
|
|
401
|
+
type: "mapping",
|
|
402
|
+
data: getExpression(column),
|
|
403
|
+
disabled: !_ctx.mappingEnabled,
|
|
404
|
+
"can-drop": canDraggableDrop.value,
|
|
405
|
+
"sticky-position": draggableStickyPosition.value,
|
|
406
|
+
onDragstart: onDragStart,
|
|
407
|
+
onDragend: (column$1) => onDragEnd(column$1?.textContent ?? "", "column")
|
|
408
|
+
}, {
|
|
409
|
+
preview: withCtx(({ canDrop }) => [createVNode(MappingPill_default, {
|
|
410
|
+
html: unref(shorten)(column, 16, 2),
|
|
411
|
+
"can-drop": canDrop
|
|
412
|
+
}, null, 8, ["html", "can-drop"])]),
|
|
413
|
+
default: withCtx(({ isDragging }) => [createBaseVNode("div", { class: normalizeClass({
|
|
414
|
+
[_ctx.$style.header]: true,
|
|
415
|
+
[_ctx.$style.draggableHeader]: _ctx.mappingEnabled,
|
|
416
|
+
[_ctx.$style.activeHeader]: (i === activeColumn.value || forceShowGrip.value) && _ctx.mappingEnabled,
|
|
417
|
+
[_ctx.$style.draggingHeader]: isDragging
|
|
418
|
+
}) }, [
|
|
419
|
+
createVNode(TextWithHighlights_default, {
|
|
420
|
+
content: getValueToRender(column || ""),
|
|
421
|
+
search: _ctx.search
|
|
422
|
+
}, null, 8, ["content", "search"]),
|
|
423
|
+
createVNode(unref(N8nTooltip_default), {
|
|
424
|
+
content: unref(i18n).baseText("dataMapping.tableView.columnCollapsing.tooltip"),
|
|
425
|
+
disabled: _ctx.mappingEnabled || collapsingColumnIndex.value === i
|
|
426
|
+
}, {
|
|
427
|
+
default: withCtx(() => [createVNode(unref(N8nIconButton_default), {
|
|
428
|
+
class: normalizeClass(_ctx.$style.collapseColumnButton),
|
|
429
|
+
type: "tertiary",
|
|
430
|
+
size: "xmini",
|
|
431
|
+
text: "",
|
|
432
|
+
icon: collapsingColumnIndex.value === i ? "chevrons-up-down" : "chevrons-down-up",
|
|
433
|
+
"aria-label": unref(i18n).baseText("dataMapping.tableView.columnCollapsing"),
|
|
434
|
+
onClick: ($event) => handleSetCollapsingColumn(i)
|
|
435
|
+
}, null, 8, [
|
|
436
|
+
"class",
|
|
437
|
+
"icon",
|
|
438
|
+
"aria-label",
|
|
439
|
+
"onClick"
|
|
440
|
+
])]),
|
|
441
|
+
_: 2
|
|
442
|
+
}, 1032, ["content", "disabled"]),
|
|
443
|
+
_ctx.mappingEnabled ? (openBlock(), createElementBlock("div", {
|
|
444
|
+
key: 0,
|
|
445
|
+
class: normalizeClass(_ctx.$style.dragButton)
|
|
446
|
+
}, [createVNode(unref(N8nIcon_default), { icon: "grip-vertical" })], 2)) : createCommentVNode("", true)
|
|
447
|
+
], 2)]),
|
|
448
|
+
_: 2
|
|
449
|
+
}, 1032, [
|
|
450
|
+
"data",
|
|
451
|
+
"disabled",
|
|
452
|
+
"can-drop",
|
|
453
|
+
"sticky-position",
|
|
454
|
+
"onDragend"
|
|
455
|
+
])]),
|
|
456
|
+
_: 2
|
|
457
|
+
}, 1032, ["disabled"])], 2);
|
|
458
|
+
}), 128)),
|
|
459
|
+
columnLimitExceeded.value ? (openBlock(), createElementBlock("th", {
|
|
460
|
+
key: 1,
|
|
461
|
+
class: normalizeClass(_ctx.$style.header)
|
|
462
|
+
}, [createVNode(unref(N8nTooltip_default), { placement: "bottom-end" }, {
|
|
463
|
+
content: withCtx(() => [createBaseVNode("div", null, [createVNode(unref(I18nT), {
|
|
464
|
+
tag: "span",
|
|
465
|
+
keypath: "dataMapping.tableView.tableColumnsExceeded.tooltip",
|
|
466
|
+
scope: "global"
|
|
467
|
+
}, {
|
|
468
|
+
columnLimit: withCtx(() => [createTextVNode(toDisplayString(columnLimit.value), 1)]),
|
|
469
|
+
link: withCtx(() => [createBaseVNode("a", { onClick: switchToJsonView }, toDisplayString(unref(i18n).baseText("dataMapping.tableView.tableColumnsExceeded.tooltip.link")), 1)]),
|
|
470
|
+
_: 1
|
|
471
|
+
})])]),
|
|
472
|
+
default: withCtx(() => [createBaseVNode("span", null, [createVNode(unref(N8nIcon_default), {
|
|
473
|
+
class: normalizeClass(_ctx.$style["warningTooltip"]),
|
|
474
|
+
icon: "triangle-alert"
|
|
475
|
+
}, null, 8, ["class"]), createTextVNode(" " + toDisplayString(unref(i18n).baseText("dataMapping.tableView.tableColumnsExceeded")), 1)])]),
|
|
476
|
+
_: 1
|
|
477
|
+
})], 2)) : createCommentVNode("", true),
|
|
478
|
+
createBaseVNode("th", { class: normalizeClass(_ctx.$style.tableRightMargin) }, null, 2)
|
|
479
|
+
])]),
|
|
480
|
+
createVNode(Draggable_default, {
|
|
481
|
+
ref_key: "draggableRef",
|
|
482
|
+
ref: draggableRef,
|
|
483
|
+
tag: "tbody",
|
|
484
|
+
type: "mapping",
|
|
485
|
+
"target-data-key": "mappable",
|
|
486
|
+
disabled: !_ctx.mappingEnabled,
|
|
487
|
+
onDragstart: onCellDragStart,
|
|
488
|
+
onDragend: onCellDragEnd
|
|
489
|
+
}, {
|
|
490
|
+
preview: withCtx(({ canDrop, el }) => [createVNode(MappingPill_default, {
|
|
491
|
+
html: unref(shorten)(getPathNameFromTarget(el) || "", 16, 2),
|
|
492
|
+
"can-drop": canDrop
|
|
493
|
+
}, null, 8, ["html", "can-drop"])]),
|
|
494
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(tableData.value.data, (row, index1) => {
|
|
495
|
+
return openBlock(), createElementBlock("tr", {
|
|
496
|
+
key: index1,
|
|
497
|
+
class: normalizeClass({ [_ctx.$style.hoveringRow]: isHoveringRow(index1) }),
|
|
498
|
+
"data-test-id": isHoveringRow(index1) ? "hovering-item" : void 0
|
|
499
|
+
}, [
|
|
500
|
+
tableData.value.metadata.hasExecutionIds ? (openBlock(), createElementBlock("td", {
|
|
501
|
+
key: 0,
|
|
502
|
+
"data-row": index1,
|
|
503
|
+
class: normalizeClass(_ctx.$style.executionLinkCell),
|
|
504
|
+
onMouseenter: onMouseEnterCell,
|
|
505
|
+
onMouseleave: onMouseLeaveCell
|
|
506
|
+
}, [tableData.value.metadata.data[index1] ? (openBlock(), createBlock(unref(N8nTooltip_default), {
|
|
507
|
+
key: 0,
|
|
508
|
+
content: unref(i18n).baseText("runData.table.viewSubExecution", { interpolate: { id: `${tableData.value.metadata.data[index1]?.subExecution.executionId}` } }),
|
|
509
|
+
placement: "left",
|
|
510
|
+
"hide-after": 0
|
|
511
|
+
}, {
|
|
512
|
+
default: withCtx(() => [withDirectives(createVNode(unref(N8nIconButton_default), {
|
|
513
|
+
element: "a",
|
|
514
|
+
type: "secondary",
|
|
515
|
+
icon: "external-link",
|
|
516
|
+
"data-test-id": "debug-sub-execution",
|
|
517
|
+
size: "mini",
|
|
518
|
+
target: "_blank",
|
|
519
|
+
href: unref(resolveRelatedExecutionUrl)(tableData.value.metadata.data[index1]),
|
|
520
|
+
onClick: ($event) => unref(trackOpeningRelatedExecution)(tableData.value.metadata.data[index1], "table")
|
|
521
|
+
}, null, 8, ["href", "onClick"]), [[vShow, showExecutionLink(index1)]])]),
|
|
522
|
+
_: 2
|
|
523
|
+
}, 1032, ["content"])) : createCommentVNode("", true)], 42, _hoisted_6)) : createCommentVNode("", true),
|
|
524
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(row, (data, index2) => {
|
|
525
|
+
return openBlock(), createElementBlock("td", {
|
|
526
|
+
key: index2,
|
|
527
|
+
"data-row": index1,
|
|
528
|
+
"data-col": index2,
|
|
529
|
+
class: normalizeClass([hasJsonInColumn(index2) ? _ctx.$style.minColWidth : _ctx.$style.limitColWidth, collapsingColumnIndex.value === index2 ? _ctx.$style.isCollapsingColumn : ""]),
|
|
530
|
+
onMouseenter: onMouseEnterCell,
|
|
531
|
+
onMouseleave: onMouseLeaveCell
|
|
532
|
+
}, [isSimple(data) ? (openBlock(), createBlock(TextWithHighlights_default, {
|
|
533
|
+
key: 0,
|
|
534
|
+
content: getValueToRender(data),
|
|
535
|
+
search: _ctx.search,
|
|
536
|
+
class: normalizeClass({
|
|
537
|
+
[_ctx.$style.value]: true,
|
|
538
|
+
[_ctx.$style.empty]: isEmpty(data)
|
|
539
|
+
})
|
|
540
|
+
}, null, 8, [
|
|
541
|
+
"content",
|
|
542
|
+
"search",
|
|
543
|
+
"class"
|
|
544
|
+
])) : isObject(data) ? (openBlock(), createBlock(unref(N8nTree_default), {
|
|
545
|
+
key: 1,
|
|
546
|
+
"node-class": _ctx.$style.nodeClass,
|
|
547
|
+
value: data
|
|
548
|
+
}, {
|
|
549
|
+
label: withCtx(({ label, path }) => [createVNode(TextWithHighlights_default, {
|
|
550
|
+
"data-target": "mappable",
|
|
551
|
+
class: normalizeClass({
|
|
552
|
+
[_ctx.$style.hoveringKey]: _ctx.mappingEnabled && isHovering(path, index2),
|
|
553
|
+
[_ctx.$style.draggingKey]: isDraggingKey(path, index2),
|
|
554
|
+
[_ctx.$style.dataKey]: true,
|
|
555
|
+
[_ctx.$style.mappable]: _ctx.mappingEnabled
|
|
556
|
+
}),
|
|
557
|
+
content: label || unref(i18n).baseText("runData.unnamedField"),
|
|
558
|
+
search: _ctx.search,
|
|
559
|
+
"data-name": getCellPathName(path, index2),
|
|
560
|
+
"data-value": getCellExpression(path, index2),
|
|
561
|
+
"data-depth": path.length,
|
|
562
|
+
onMouseenter: () => onMouseEnterKey(path, index2),
|
|
563
|
+
onMouseleave: onMouseLeaveKey
|
|
564
|
+
}, null, 8, [
|
|
565
|
+
"class",
|
|
566
|
+
"content",
|
|
567
|
+
"search",
|
|
568
|
+
"data-name",
|
|
569
|
+
"data-value",
|
|
570
|
+
"data-depth",
|
|
571
|
+
"onMouseenter"
|
|
572
|
+
])]),
|
|
573
|
+
value: withCtx(({ value: value$1 }) => [createVNode(TextWithHighlights_default, {
|
|
574
|
+
content: getValueToRender(value$1),
|
|
575
|
+
search: _ctx.search,
|
|
576
|
+
class: normalizeClass({
|
|
577
|
+
[_ctx.$style.nestedValue]: true,
|
|
578
|
+
[_ctx.$style.empty]: isEmpty(value$1)
|
|
579
|
+
})
|
|
580
|
+
}, null, 8, [
|
|
581
|
+
"content",
|
|
582
|
+
"search",
|
|
583
|
+
"class"
|
|
584
|
+
])]),
|
|
585
|
+
_: 2
|
|
586
|
+
}, 1032, ["node-class", "value"])) : createCommentVNode("", true)], 42, _hoisted_7);
|
|
587
|
+
}), 128)),
|
|
588
|
+
columnLimitExceeded.value ? (openBlock(), createElementBlock("td", _hoisted_8)) : createCommentVNode("", true),
|
|
589
|
+
createBaseVNode("td", { class: normalizeClass(_ctx.$style.tableRightMargin) }, null, 2)
|
|
590
|
+
], 10, _hoisted_5);
|
|
591
|
+
}), 128))]),
|
|
592
|
+
_: 1
|
|
593
|
+
}, 8, ["disabled"])
|
|
594
|
+
], 2))], 2);
|
|
595
|
+
};
|
|
596
|
+
}
|
|
597
|
+
});
|
|
598
|
+
var RunDataTable_vue_vue_type_style_index_0_lang_module_default = {
|
|
599
|
+
dataDisplay: "_dataDisplay_6nuo6_123",
|
|
600
|
+
compact: "_compact_6nuo6_135",
|
|
601
|
+
table: "_table_6nuo6_139",
|
|
602
|
+
lightHeader: "_lightHeader_6nuo6_156",
|
|
603
|
+
tableRightMargin: "_tableRightMargin_6nuo6_159",
|
|
604
|
+
hasCollapsingColumn: "_hasCollapsingColumn_6nuo6_194",
|
|
605
|
+
isCollapsingColumn: "_isCollapsingColumn_6nuo6_197",
|
|
606
|
+
nodeClass: "_nodeClass_6nuo6_226",
|
|
607
|
+
emptyCell: "_emptyCell_6nuo6_230",
|
|
608
|
+
header: "_header_6nuo6_234",
|
|
609
|
+
draggableHeader: "_draggableHeader_6nuo6_246",
|
|
610
|
+
dragButton: "_dragButton_6nuo6_250",
|
|
611
|
+
highlight: "_highlight_6nuo6_254",
|
|
612
|
+
draggingHeader: "_draggingHeader_6nuo6_258",
|
|
613
|
+
activeHeader: "_activeHeader_6nuo6_263",
|
|
614
|
+
dataKey: "_dataKey_6nuo6_274",
|
|
615
|
+
value: "_value_6nuo6_283",
|
|
616
|
+
nestedValue: "_nestedValue_6nuo6_287 _value_6nuo6_283",
|
|
617
|
+
mappable: "_mappable_6nuo6_292",
|
|
618
|
+
empty: "_empty_6nuo6_230",
|
|
619
|
+
limitColWidth: "_limitColWidth_6nuo6_301",
|
|
620
|
+
minColWidth: "_minColWidth_6nuo6_305",
|
|
621
|
+
hoveringKey: "_hoveringKey_6nuo6_309",
|
|
622
|
+
draggingKey: "_draggingKey_6nuo6_313",
|
|
623
|
+
hoveringRow: "_hoveringRow_6nuo6_329",
|
|
624
|
+
warningTooltip: "_warningTooltip_6nuo6_334",
|
|
625
|
+
executionLinkCell: "_executionLinkCell_6nuo6_338",
|
|
626
|
+
executionLinkRowHeader: "_executionLinkRowHeader_6nuo6_342",
|
|
627
|
+
collapseColumnButton: "_collapseColumnButton_6nuo6_346",
|
|
628
|
+
isHoveredColumn: "_isHoveredColumn_6nuo6_353"
|
|
629
|
+
};
|
|
630
|
+
var RunDataTable_default = /* @__PURE__ */ __plugin_vue_export_helper_default(RunDataTable_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": RunDataTable_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
631
|
+
export { RunDataTable_default as default };
|