@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, G as nextTick, Gt as unref, I as guardReactiveProps, It as ref, J as onBeforeUnmount, M as createVNode, P as defineComponent, T as createBlock, Z as onMounted, _ as Fragment, _t as watch, at as renderSlot, bt as withCtx, et as openBlock, it as renderList, j as createTextVNode, p as vShow, pt as useSlots, vn as normalizeClass, w as createBaseVNode, xt as withDirectives, yn as normalizeProps } from "./vue.runtime.esm-bundler-tP5dCd7J.js";
|
|
2
|
+
import { rt as useI18n, v as useLocalStorage } from "./core-CRbPymLT.js";
|
|
3
|
+
import { Cn as N8nIcon_default, Ct as N8nActionBox_default, Dt as ElPagination, J as N8nSelect_default, K as N8nDatatable_default, R as N8nInfoTip_default, Y as N8nOption_default, at as N8nLoading_default, bn as N8nText_default, mt as N8nLink_default, w as N8nRecycleScroller_default, yt as N8nInput_default } from "./src-jviYSG25.js";
|
|
4
|
+
import { t as __plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BwBpWJRZ.js";
|
|
5
|
+
import { Dr as isBaseTextKey, Er as useUsersStore, Fr as isResourceSortableByDate, Lr as isSharedResource, k as useTelemetry } from "./builder.store-Czk2ipDE.js";
|
|
6
|
+
import { _ as useRoute, v as useRouter } from "./get-BcEmeOxn.js";
|
|
7
|
+
import { Us as LOCAL_STORAGE_WORKFLOW_LIST_PREFERENCES_KEY } from "./constants-C8OH4tTq.js";
|
|
8
|
+
import { t as useDebounce } from "./useDebounce-Br5_1ug-.js";
|
|
9
|
+
import { n as useProjectPages } from "./readyToRun.store-YEMvPUqo.js";
|
|
10
|
+
import { t as PageViewLayout_default } from "./PageViewLayout-NT1KPFgy.js";
|
|
11
|
+
import { t as ResourceFiltersDropdown_default } from "./ResourceFiltersDropdown-dgyXpcEX.js";
|
|
12
|
+
var PageViewLayoutList_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
13
|
+
__name: "PageViewLayoutList",
|
|
14
|
+
props: { overflow: { type: Boolean } },
|
|
15
|
+
setup(__props) {
|
|
16
|
+
return (_ctx, _cache) => {
|
|
17
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass({
|
|
18
|
+
[_ctx.$style.wrapper]: true,
|
|
19
|
+
[_ctx.$style.overflow]: _ctx.overflow
|
|
20
|
+
}) }, [createBaseVNode("div", { class: normalizeClass(_ctx.$style.list) }, [_ctx.$slots.header ? (openBlock(), createElementBlock("div", {
|
|
21
|
+
key: 0,
|
|
22
|
+
class: normalizeClass(_ctx.$style.header)
|
|
23
|
+
}, [renderSlot(_ctx.$slots, "header")], 2)) : createCommentVNode("", true), createBaseVNode("div", { class: normalizeClass(_ctx.$style.body) }, [renderSlot(_ctx.$slots, "default")], 2)], 2)], 2);
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
var PageViewLayoutList_vue_vue_type_style_index_0_lang_module_default = {
|
|
28
|
+
wrapper: "_wrapper_hn9dc_123",
|
|
29
|
+
overflow: "_overflow_hn9dc_128",
|
|
30
|
+
list: "_list_hn9dc_128",
|
|
31
|
+
body: "_body_hn9dc_128"
|
|
32
|
+
};
|
|
33
|
+
var PageViewLayoutList_default = /* @__PURE__ */ __plugin_vue_export_helper_default(PageViewLayoutList_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": PageViewLayoutList_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
34
|
+
function useN8nLocalStorage() {
|
|
35
|
+
const projectPages = useProjectPages();
|
|
36
|
+
const getProjectKey = (projectId) => {
|
|
37
|
+
return projectPages.isOverviewSubPage ? "home" : projectId;
|
|
38
|
+
};
|
|
39
|
+
const saveProjectPreferencesToLocalStorage = (projectId, tabKey, preferences) => {
|
|
40
|
+
const projectKey = getProjectKey(projectId);
|
|
41
|
+
if (!projectKey) return;
|
|
42
|
+
const localStorage = useLocalStorage(LOCAL_STORAGE_WORKFLOW_LIST_PREFERENCES_KEY, {});
|
|
43
|
+
if (!localStorage.value[projectKey]) localStorage.value[projectKey] = {};
|
|
44
|
+
localStorage.value[projectKey][tabKey] = {
|
|
45
|
+
...localStorage.value[projectKey][tabKey],
|
|
46
|
+
...preferences
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
const loadProjectPreferencesFromLocalStorage = (projectId, tabKey) => {
|
|
50
|
+
const projectKey = getProjectKey(projectId);
|
|
51
|
+
if (!projectKey) return {};
|
|
52
|
+
return useLocalStorage("N8N_WORKFLOWS_LIST_PREFERENCES", {}).value[projectKey]?.[tabKey] || {};
|
|
53
|
+
};
|
|
54
|
+
return {
|
|
55
|
+
saveProjectPreferencesToLocalStorage,
|
|
56
|
+
loadProjectPreferencesFromLocalStorage,
|
|
57
|
+
getProjectKey
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function useResourcesListI18n(resourceKey) {
|
|
61
|
+
const i18n = useI18n();
|
|
62
|
+
const getResourceText = (keySuffix, fallbackKeySuffix, interpolate) => {
|
|
63
|
+
const specificKey = `${resourceKey}.${keySuffix}`;
|
|
64
|
+
const genericKey = `resources.${keySuffix}`;
|
|
65
|
+
const fallbackKey = fallbackKeySuffix ? `resources.${fallbackKeySuffix}` : void 0;
|
|
66
|
+
if (isBaseTextKey(specificKey)) return i18n.baseText(specificKey, { interpolate });
|
|
67
|
+
if (isBaseTextKey(genericKey)) return i18n.baseText(genericKey, { interpolate });
|
|
68
|
+
if (fallbackKey && isBaseTextKey(fallbackKey)) return i18n.baseText(fallbackKey, { interpolate });
|
|
69
|
+
return keySuffix.split(".").pop()?.replace(/([A-Z])/g, " $1").trim() || keySuffix;
|
|
70
|
+
};
|
|
71
|
+
return { getResourceText };
|
|
72
|
+
}
|
|
73
|
+
var _hoisted_1 = {
|
|
74
|
+
key: 0,
|
|
75
|
+
class: "resource-list-loading"
|
|
76
|
+
};
|
|
77
|
+
var _hoisted_2 = { key: 0 };
|
|
78
|
+
var _hoisted_3 = {
|
|
79
|
+
key: 0,
|
|
80
|
+
class: "mt-xs",
|
|
81
|
+
"data-test-id": "resources-list-filters-applied-info"
|
|
82
|
+
};
|
|
83
|
+
var _hoisted_4 = {
|
|
84
|
+
key: 0,
|
|
85
|
+
class: "resource-list-loading resource-list-loading-instant"
|
|
86
|
+
};
|
|
87
|
+
var ResourcesListLayout_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
88
|
+
__name: "ResourcesListLayout",
|
|
89
|
+
props: {
|
|
90
|
+
resourceKey: {},
|
|
91
|
+
displayName: {
|
|
92
|
+
type: Function,
|
|
93
|
+
default: (resource) => resource.name || ""
|
|
94
|
+
},
|
|
95
|
+
resources: {},
|
|
96
|
+
disabled: { type: Boolean },
|
|
97
|
+
initialize: {
|
|
98
|
+
type: Function,
|
|
99
|
+
default: async () => {}
|
|
100
|
+
},
|
|
101
|
+
filters: { default: () => ({
|
|
102
|
+
search: "",
|
|
103
|
+
homeProject: ""
|
|
104
|
+
}) },
|
|
105
|
+
additionalFiltersHandler: {
|
|
106
|
+
type: Function,
|
|
107
|
+
default: void 0
|
|
108
|
+
},
|
|
109
|
+
shareable: {
|
|
110
|
+
type: Boolean,
|
|
111
|
+
default: true
|
|
112
|
+
},
|
|
113
|
+
sortFns: { default: () => ({}) },
|
|
114
|
+
sortOptions: { default: () => [
|
|
115
|
+
"lastUpdated",
|
|
116
|
+
"lastCreated",
|
|
117
|
+
"nameAsc",
|
|
118
|
+
"nameDesc"
|
|
119
|
+
] },
|
|
120
|
+
type: { default: "list-full" },
|
|
121
|
+
typeProps: { default: () => ({ itemSize: 80 }) },
|
|
122
|
+
loading: {
|
|
123
|
+
type: Boolean,
|
|
124
|
+
default: true
|
|
125
|
+
},
|
|
126
|
+
customPageSize: { default: 25 },
|
|
127
|
+
availablePageSizeOptions: { default: () => [
|
|
128
|
+
10,
|
|
129
|
+
25,
|
|
130
|
+
50,
|
|
131
|
+
100
|
|
132
|
+
] },
|
|
133
|
+
totalItems: { default: 0 },
|
|
134
|
+
resourcesRefreshing: {
|
|
135
|
+
type: Boolean,
|
|
136
|
+
default: false
|
|
137
|
+
},
|
|
138
|
+
dontPerformSortingAndFiltering: {
|
|
139
|
+
type: Boolean,
|
|
140
|
+
default: false
|
|
141
|
+
},
|
|
142
|
+
hasEmptyState: {
|
|
143
|
+
type: Boolean,
|
|
144
|
+
default: true
|
|
145
|
+
},
|
|
146
|
+
uiConfig: { default: () => ({
|
|
147
|
+
searchEnabled: true,
|
|
148
|
+
showFiltersDropdown: true,
|
|
149
|
+
sortEnabled: true
|
|
150
|
+
}) }
|
|
151
|
+
},
|
|
152
|
+
emits: [
|
|
153
|
+
"update:filters",
|
|
154
|
+
"click:add",
|
|
155
|
+
"update:pagination-and-sort",
|
|
156
|
+
"update:search"
|
|
157
|
+
],
|
|
158
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
159
|
+
const route = useRoute();
|
|
160
|
+
const router = useRouter();
|
|
161
|
+
const { callDebounced } = useDebounce();
|
|
162
|
+
const usersStore = useUsersStore();
|
|
163
|
+
const telemetry = useTelemetry();
|
|
164
|
+
const n8nLocalStorage = useN8nLocalStorage();
|
|
165
|
+
const props = __props;
|
|
166
|
+
const { getResourceText } = useResourcesListI18n(props.resourceKey);
|
|
167
|
+
const sortBy = ref(props.sortOptions[0]);
|
|
168
|
+
const hasFilters = ref(false);
|
|
169
|
+
const currentPage = ref(1);
|
|
170
|
+
const rowsPerPage = ref(props.customPageSize);
|
|
171
|
+
const resettingFilters = ref(false);
|
|
172
|
+
const search$1 = ref(null);
|
|
173
|
+
const listWrapperRef = ref(null);
|
|
174
|
+
const listItemsRef = ref(null);
|
|
175
|
+
const preferredPageSize = ref(props.customPageSize);
|
|
176
|
+
const preferredSort = ref(props.sortOptions[0]);
|
|
177
|
+
const emit = __emit;
|
|
178
|
+
useSlots();
|
|
179
|
+
const filtersModel = computed({
|
|
180
|
+
get: () => props.filters,
|
|
181
|
+
set: (newValue) => emit("update:filters", newValue)
|
|
182
|
+
});
|
|
183
|
+
const showEmptyState = computed(() => {
|
|
184
|
+
return props.hasEmptyState && props.resources.length === 0 && !hasFilters.value && !filtersModel.value.search && !props.resourcesRefreshing;
|
|
185
|
+
});
|
|
186
|
+
const filterKeys = computed(() => {
|
|
187
|
+
return Object.keys(filtersModel.value);
|
|
188
|
+
});
|
|
189
|
+
const filteredAndSortedResources = computed(() => {
|
|
190
|
+
if (props.dontPerformSortingAndFiltering) return props.resources;
|
|
191
|
+
return props.resources.filter((resource) => {
|
|
192
|
+
let matches = true;
|
|
193
|
+
if (filtersModel.value.homeProject && isSharedResource(resource)) matches = matches && !!("homeProject" in resource && resource.homeProject && resource.homeProject.id === filtersModel.value.homeProject);
|
|
194
|
+
if (filtersModel.value.search) {
|
|
195
|
+
const searchString = filtersModel.value.search.toLowerCase();
|
|
196
|
+
matches = matches && props.displayName(resource).toLowerCase().includes(searchString);
|
|
197
|
+
}
|
|
198
|
+
if (props.additionalFiltersHandler) matches = props.additionalFiltersHandler(resource, filtersModel.value, matches);
|
|
199
|
+
return matches;
|
|
200
|
+
}).sort((a, b) => {
|
|
201
|
+
const sortableByDate = isResourceSortableByDate(a) && isResourceSortableByDate(b);
|
|
202
|
+
switch (sortBy.value) {
|
|
203
|
+
case "lastUpdated":
|
|
204
|
+
if (!sortableByDate) return 0;
|
|
205
|
+
if ("updatedAt" in a && "updatedAt" in b) return props.sortFns.lastUpdated ? props.sortFns.lastUpdated(a, b) : new Date(b.updatedAt ?? "").valueOf() - new Date(a.updatedAt ?? "").valueOf();
|
|
206
|
+
return 0;
|
|
207
|
+
case "lastCreated":
|
|
208
|
+
if (!sortableByDate) return 0;
|
|
209
|
+
if ("createdAt" in a && "createdAt" in b) return props.sortFns.lastCreated ? props.sortFns.lastCreated(a, b) : new Date(b.createdAt ?? "").valueOf() - new Date(a.createdAt ?? "").valueOf();
|
|
210
|
+
return 0;
|
|
211
|
+
case "nameAsc": return props.sortFns.nameAsc ? props.sortFns.nameAsc(a, b) : props.displayName(a).trim().localeCompare(props.displayName(b).trim());
|
|
212
|
+
case "nameDesc": return props.sortFns.nameDesc ? props.sortFns.nameDesc(a, b) : props.displayName(b).trim().localeCompare(props.displayName(a).trim());
|
|
213
|
+
default: return props.sortFns[sortBy.value] ? props.sortFns[sortBy.value](a, b) : 0;
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
});
|
|
217
|
+
watch(() => props.filters, (value) => {
|
|
218
|
+
filtersModel.value = value;
|
|
219
|
+
if (hasAppliedFilters()) hasFilters.value = true;
|
|
220
|
+
});
|
|
221
|
+
watch(() => filtersModel.value.homeProject, () => {
|
|
222
|
+
sendFiltersTelemetry("homeProject");
|
|
223
|
+
});
|
|
224
|
+
watch(() => filtersModel.value.tags, () => {
|
|
225
|
+
sendFiltersTelemetry("tags");
|
|
226
|
+
});
|
|
227
|
+
watch(() => filtersModel.value.type, () => {
|
|
228
|
+
sendFiltersTelemetry("type");
|
|
229
|
+
});
|
|
230
|
+
watch(() => filtersModel.value.search, () => callDebounced(sendFiltersTelemetry, {
|
|
231
|
+
debounceTime: 1e3,
|
|
232
|
+
trailing: true
|
|
233
|
+
}, "search"));
|
|
234
|
+
watch(() => filtersModel.value.setupNeeded, () => {
|
|
235
|
+
sendFiltersTelemetry("setupNeeded");
|
|
236
|
+
});
|
|
237
|
+
watch(() => filtersModel.value.incomplete, () => {
|
|
238
|
+
sendFiltersTelemetry("incomplete");
|
|
239
|
+
});
|
|
240
|
+
watch([() => route.params?.projectId, () => route.name], async () => {
|
|
241
|
+
await resetFilters();
|
|
242
|
+
await loadPaginationPreferences();
|
|
243
|
+
await props.initialize();
|
|
244
|
+
});
|
|
245
|
+
onMounted(async () => {
|
|
246
|
+
await loadPaginationPreferences();
|
|
247
|
+
await props.initialize();
|
|
248
|
+
await nextTick();
|
|
249
|
+
if (hasAppliedFilters()) hasFilters.value = true;
|
|
250
|
+
window.addEventListener("keydown", captureSearchHotKey);
|
|
251
|
+
});
|
|
252
|
+
onBeforeUnmount(() => {
|
|
253
|
+
window.removeEventListener("keydown", captureSearchHotKey);
|
|
254
|
+
});
|
|
255
|
+
const captureSearchHotKey = (e) => {
|
|
256
|
+
if ((e.ctrlKey || e.metaKey) && e.key === "f") {
|
|
257
|
+
e.preventDefault();
|
|
258
|
+
focusSearchInput();
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
const focusSearchInput = () => {
|
|
262
|
+
if (search$1.value) search$1.value.focus();
|
|
263
|
+
};
|
|
264
|
+
const isFilterApplied = (key) => {
|
|
265
|
+
if (key === "search") return false;
|
|
266
|
+
if (typeof props.filters[key] === "boolean") return props.filters[key];
|
|
267
|
+
if (Array.isArray(props.filters[key])) return props.filters[key].length > 0;
|
|
268
|
+
return props.filters[key] !== "";
|
|
269
|
+
};
|
|
270
|
+
const hasOnlyFiltersThatShowMoreResults = computed(() => {
|
|
271
|
+
const activeFilters = filterKeys.value.filter(isFilterApplied);
|
|
272
|
+
const filtersThatShowMoreResults = ["showArchived"];
|
|
273
|
+
return activeFilters.every((filter) => {
|
|
274
|
+
return filtersThatShowMoreResults.includes(filter);
|
|
275
|
+
});
|
|
276
|
+
});
|
|
277
|
+
const hasAppliedFilters = () => {
|
|
278
|
+
return !!filterKeys.value.find(isFilterApplied);
|
|
279
|
+
};
|
|
280
|
+
const setRowsPerPage = async (numberOfRowsPerPage) => {
|
|
281
|
+
rowsPerPage.value = numberOfRowsPerPage;
|
|
282
|
+
await savePaginationPreferences();
|
|
283
|
+
emit("update:pagination-and-sort", { pageSize: numberOfRowsPerPage });
|
|
284
|
+
};
|
|
285
|
+
const setSorting = async (sort, persistUpdate = true) => {
|
|
286
|
+
sortBy.value = sort;
|
|
287
|
+
if (persistUpdate) {
|
|
288
|
+
await savePaginationPreferences();
|
|
289
|
+
sendSortingTelemetry();
|
|
290
|
+
}
|
|
291
|
+
emit("update:pagination-and-sort", { sort });
|
|
292
|
+
};
|
|
293
|
+
const setCurrentPage = async (page, persistUpdate = true) => {
|
|
294
|
+
currentPage.value = page;
|
|
295
|
+
if (persistUpdate) await savePaginationPreferences();
|
|
296
|
+
emit("update:pagination-and-sort", { page });
|
|
297
|
+
};
|
|
298
|
+
const sendFiltersTelemetry = (source) => {
|
|
299
|
+
if (resettingFilters.value) {
|
|
300
|
+
if (source !== "reset") return;
|
|
301
|
+
setTimeout(() => resettingFilters.value = false, 1500);
|
|
302
|
+
}
|
|
303
|
+
const filters$1 = filtersModel.value;
|
|
304
|
+
const filtersSet = [];
|
|
305
|
+
const filterValues = [];
|
|
306
|
+
Object.keys(filters$1).forEach((key) => {
|
|
307
|
+
if (filters$1[key]) {
|
|
308
|
+
filtersSet.push(key);
|
|
309
|
+
filterValues.push(key === "search" ? null : filters$1[key]);
|
|
310
|
+
}
|
|
311
|
+
});
|
|
312
|
+
telemetry.track(`User set filters in ${props.resourceKey} list`, {
|
|
313
|
+
filters_set: filtersSet,
|
|
314
|
+
filter_values: filterValues,
|
|
315
|
+
[`${props.resourceKey}_total_in_view`]: props.resources.length,
|
|
316
|
+
[`${props.resourceKey}_after_filtering`]: filteredAndSortedResources.value.length
|
|
317
|
+
});
|
|
318
|
+
};
|
|
319
|
+
const onAddButtonClick = (e) => {
|
|
320
|
+
emit("click:add", e);
|
|
321
|
+
};
|
|
322
|
+
const onUpdateFilters = (e) => {
|
|
323
|
+
emit("update:filters", e);
|
|
324
|
+
};
|
|
325
|
+
const resetFilters = async () => {
|
|
326
|
+
Object.keys(filtersModel.value).forEach((key) => {
|
|
327
|
+
filtersModel.value[key] = Array.isArray(filtersModel.value[key]) ? [] : "";
|
|
328
|
+
});
|
|
329
|
+
await setCurrentPage(1, false);
|
|
330
|
+
resettingFilters.value = true;
|
|
331
|
+
hasFilters.value = false;
|
|
332
|
+
sendFiltersTelemetry("reset");
|
|
333
|
+
emit("update:filters", filtersModel.value);
|
|
334
|
+
};
|
|
335
|
+
const itemSize = () => {
|
|
336
|
+
if ("itemSize" in props.typeProps) return props.typeProps.itemSize;
|
|
337
|
+
return 0;
|
|
338
|
+
};
|
|
339
|
+
const getColumns = () => {
|
|
340
|
+
if ("columns" in props.typeProps) return props.typeProps.columns;
|
|
341
|
+
return [];
|
|
342
|
+
};
|
|
343
|
+
const sendSortingTelemetry = () => {
|
|
344
|
+
telemetry.track(`User changed sorting in ${props.resourceKey} list`, { sorting: sortBy.value });
|
|
345
|
+
};
|
|
346
|
+
const onUpdateFiltersLength = (length) => {
|
|
347
|
+
hasFilters.value = length > 0;
|
|
348
|
+
};
|
|
349
|
+
const onSearch = (s) => {
|
|
350
|
+
filtersModel.value.search = s;
|
|
351
|
+
emit("update:search", s);
|
|
352
|
+
};
|
|
353
|
+
const findNearestPageSize = (size) => {
|
|
354
|
+
return props.availablePageSizeOptions.reduce((prev, curr) => Math.abs(curr - size) < Math.abs(prev - size) ? curr : prev);
|
|
355
|
+
};
|
|
356
|
+
const savePaginationPreferences = async () => {
|
|
357
|
+
if (props.type !== "list-paginated") return;
|
|
358
|
+
const currentQuery = { ...route.query };
|
|
359
|
+
if (currentPage.value !== 1) currentQuery.page = currentPage.value.toString();
|
|
360
|
+
else delete currentQuery.page;
|
|
361
|
+
if (rowsPerPage.value !== preferredPageSize.value) {
|
|
362
|
+
currentQuery.pageSize = rowsPerPage.value.toString();
|
|
363
|
+
preferredPageSize.value = rowsPerPage.value;
|
|
364
|
+
} else delete currentQuery.pageSize;
|
|
365
|
+
if (sortBy.value !== preferredSort.value) {
|
|
366
|
+
currentQuery.sort = sortBy.value;
|
|
367
|
+
preferredSort.value = sortBy.value;
|
|
368
|
+
} else delete currentQuery.sort;
|
|
369
|
+
n8nLocalStorage.saveProjectPreferencesToLocalStorage(route.params.projectId ?? "", "workflows", {
|
|
370
|
+
sort: sortBy.value,
|
|
371
|
+
pageSize: rowsPerPage.value
|
|
372
|
+
});
|
|
373
|
+
await router.replace({ query: Object.keys(currentQuery).length ? currentQuery : void 0 });
|
|
374
|
+
};
|
|
375
|
+
const loadPaginationPreferences = async () => {
|
|
376
|
+
if (props.type !== "list-paginated") return;
|
|
377
|
+
const query = route.query;
|
|
378
|
+
const localStorageValues = n8nLocalStorage.loadProjectPreferencesFromLocalStorage(route.params.projectId ?? "", "workflows");
|
|
379
|
+
const emitPayload = {};
|
|
380
|
+
if (query.page) {
|
|
381
|
+
const newPage = parseInt(query.page, 10);
|
|
382
|
+
if (newPage > 1) {
|
|
383
|
+
currentPage.value = newPage;
|
|
384
|
+
emitPayload.page = newPage;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
if (query.pageSize ?? localStorageValues.pageSize) {
|
|
388
|
+
const newPageSize = findNearestPageSize(parseInt(query.pageSize || String(localStorageValues.pageSize), 10));
|
|
389
|
+
rowsPerPage.value = newPageSize;
|
|
390
|
+
emitPayload.pageSize = newPageSize;
|
|
391
|
+
preferredPageSize.value = newPageSize;
|
|
392
|
+
} else {
|
|
393
|
+
rowsPerPage.value = props.customPageSize;
|
|
394
|
+
emitPayload.pageSize = props.customPageSize;
|
|
395
|
+
}
|
|
396
|
+
if (query.sort) sortBy.value = emitPayload.sort = preferredSort.value = query.sort;
|
|
397
|
+
else if (localStorageValues.sort) {
|
|
398
|
+
await setSorting(localStorageValues.sort, false);
|
|
399
|
+
emitPayload.sort = localStorageValues.sort;
|
|
400
|
+
preferredSort.value = localStorageValues.sort;
|
|
401
|
+
} else sortBy.value = props.sortOptions[0];
|
|
402
|
+
emit("update:pagination-and-sort", emitPayload);
|
|
403
|
+
};
|
|
404
|
+
const getScrollContainer = () => {
|
|
405
|
+
if (props.type === "list-paginated") return listItemsRef.value ?? null;
|
|
406
|
+
return listWrapperRef.value ?? null;
|
|
407
|
+
};
|
|
408
|
+
__expose({
|
|
409
|
+
currentPage,
|
|
410
|
+
setCurrentPage,
|
|
411
|
+
getScrollContainer
|
|
412
|
+
});
|
|
413
|
+
return (_ctx, _cache) => {
|
|
414
|
+
return openBlock(), createBlock(PageViewLayout_default, null, {
|
|
415
|
+
header: withCtx(() => [renderSlot(_ctx.$slots, "header", {}, void 0, true)]),
|
|
416
|
+
default: withCtx(() => [_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1, [createVNode(unref(N8nLoading_default), {
|
|
417
|
+
rows: 25,
|
|
418
|
+
"shrink-last": false
|
|
419
|
+
})])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [showEmptyState.value ? (openBlock(), createElementBlock("div", _hoisted_2, [renderSlot(_ctx.$slots, "empty", {}, () => [createVNode(unref(N8nActionBox_default), {
|
|
420
|
+
"data-test-id": "empty-resources-list",
|
|
421
|
+
icon: {
|
|
422
|
+
type: "emoji",
|
|
423
|
+
value: "👋"
|
|
424
|
+
},
|
|
425
|
+
heading: unref(getResourceText)(unref(usersStore).currentUser?.firstName ? "empty.heading" : "empty.heading.userNotSetup", unref(usersStore).currentUser?.firstName ? "empty.heading" : "empty.heading.userNotSetup", { name: unref(usersStore).currentUser?.firstName ?? "" }),
|
|
426
|
+
description: unref(getResourceText)("empty.description"),
|
|
427
|
+
"button-text": unref(getResourceText)("empty.button"),
|
|
428
|
+
"button-type": "secondary",
|
|
429
|
+
"button-disabled": _ctx.disabled,
|
|
430
|
+
"onClick:button": onAddButtonClick
|
|
431
|
+
}, {
|
|
432
|
+
disabledButtonTooltip: withCtx(() => [createTextVNode(toDisplayString(unref(getResourceText)("empty.button.disabled.tooltip")), 1)]),
|
|
433
|
+
_: 1
|
|
434
|
+
}, 8, [
|
|
435
|
+
"heading",
|
|
436
|
+
"description",
|
|
437
|
+
"button-text",
|
|
438
|
+
"button-disabled"
|
|
439
|
+
])], true)])) : (openBlock(), createBlock(PageViewLayoutList_default, { key: 1 }, {
|
|
440
|
+
header: withCtx(() => [
|
|
441
|
+
createBaseVNode("div", { class: normalizeClass(_ctx.$style["filters-row"]) }, [createBaseVNode("div", { class: normalizeClass(_ctx.$style.filters) }, [
|
|
442
|
+
renderSlot(_ctx.$slots, "breadcrumbs", {}, void 0, true),
|
|
443
|
+
props.uiConfig.searchEnabled ? (openBlock(), createBlock(unref(N8nInput_default), {
|
|
444
|
+
key: 0,
|
|
445
|
+
ref_key: "search",
|
|
446
|
+
ref: search$1,
|
|
447
|
+
"model-value": filtersModel.value.search,
|
|
448
|
+
class: normalizeClass(_ctx.$style.search),
|
|
449
|
+
placeholder: unref(getResourceText)("search.placeholder", "search.placeholder"),
|
|
450
|
+
size: "small",
|
|
451
|
+
clearable: "",
|
|
452
|
+
"data-test-id": "resources-list-search",
|
|
453
|
+
"onUpdate:modelValue": onSearch
|
|
454
|
+
}, {
|
|
455
|
+
prefix: withCtx(() => [createVNode(unref(N8nIcon_default), { icon: "search" })]),
|
|
456
|
+
_: 1
|
|
457
|
+
}, 8, [
|
|
458
|
+
"model-value",
|
|
459
|
+
"class",
|
|
460
|
+
"placeholder"
|
|
461
|
+
])) : createCommentVNode("", true),
|
|
462
|
+
props.uiConfig.sortEnabled ? (openBlock(), createElementBlock("div", {
|
|
463
|
+
key: 1,
|
|
464
|
+
class: normalizeClass(_ctx.$style["sort-and-filter"])
|
|
465
|
+
}, [createVNode(unref(N8nSelect_default), {
|
|
466
|
+
modelValue: sortBy.value,
|
|
467
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => sortBy.value = $event),
|
|
468
|
+
size: "small",
|
|
469
|
+
"data-test-id": "resources-list-sort",
|
|
470
|
+
onChange: _cache[1] || (_cache[1] = ($event) => setSorting(sortBy.value))
|
|
471
|
+
}, {
|
|
472
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.sortOptions, (sortOption) => {
|
|
473
|
+
return openBlock(), createBlock(unref(N8nOption_default), {
|
|
474
|
+
key: sortOption,
|
|
475
|
+
"data-test-id": "resources-list-sort-item",
|
|
476
|
+
value: sortOption,
|
|
477
|
+
label: unref(getResourceText)(`sort.${sortOption}`, `sort.${sortOption}`)
|
|
478
|
+
}, null, 8, ["value", "label"]);
|
|
479
|
+
}), 128))]),
|
|
480
|
+
_: 1
|
|
481
|
+
}, 8, ["modelValue"])], 2)) : createCommentVNode("", true),
|
|
482
|
+
props.uiConfig.showFiltersDropdown ? (openBlock(), createElementBlock("div", {
|
|
483
|
+
key: 2,
|
|
484
|
+
class: normalizeClass(_ctx.$style["sort-and-filter"])
|
|
485
|
+
}, [createVNode(ResourceFiltersDropdown_default, {
|
|
486
|
+
keys: filterKeys.value,
|
|
487
|
+
reset: resetFilters,
|
|
488
|
+
"model-value": filtersModel.value,
|
|
489
|
+
shareable: _ctx.shareable,
|
|
490
|
+
"just-icon": true,
|
|
491
|
+
"onUpdate:modelValue": onUpdateFilters,
|
|
492
|
+
"onUpdate:filtersLength": onUpdateFiltersLength
|
|
493
|
+
}, {
|
|
494
|
+
default: withCtx((resourceFiltersSlotProps) => [renderSlot(_ctx.$slots, "filters", normalizeProps(guardReactiveProps(resourceFiltersSlotProps)), void 0, true)]),
|
|
495
|
+
_: 3
|
|
496
|
+
}, 8, [
|
|
497
|
+
"keys",
|
|
498
|
+
"model-value",
|
|
499
|
+
"shareable"
|
|
500
|
+
]), renderSlot(_ctx.$slots, "add-button", {}, void 0, true)], 2)) : createCommentVNode("", true)
|
|
501
|
+
], 2)], 2),
|
|
502
|
+
renderSlot(_ctx.$slots, "callout", {}, void 0, true),
|
|
503
|
+
props.uiConfig.showFiltersDropdown ? withDirectives((openBlock(), createElementBlock("div", _hoisted_3, [createVNode(unref(N8nInfoTip_default), { bold: false }, {
|
|
504
|
+
default: withCtx(() => [createTextVNode(toDisplayString(hasOnlyFiltersThatShowMoreResults.value ? unref(getResourceText)("filters.active.shortText", "filters.active.shortText") : unref(getResourceText)("filters.active", "filters.active")) + " ", 1), createVNode(unref(N8nLink_default), {
|
|
505
|
+
"data-test-id": "workflows-filter-reset",
|
|
506
|
+
size: "small",
|
|
507
|
+
onClick: resetFilters
|
|
508
|
+
}, {
|
|
509
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(getResourceText)("filters.active.reset", "filters.active.reset")), 1)]),
|
|
510
|
+
_: 1
|
|
511
|
+
})]),
|
|
512
|
+
_: 1
|
|
513
|
+
})], 512)), [[vShow, hasFilters.value]]) : createCommentVNode("", true),
|
|
514
|
+
_cache[4] || (_cache[4] = createBaseVNode("div", { class: "pb-xs" }, null, -1))
|
|
515
|
+
]),
|
|
516
|
+
default: withCtx(() => [
|
|
517
|
+
renderSlot(_ctx.$slots, "preamble", {}, void 0, true),
|
|
518
|
+
_ctx.resourcesRefreshing ? (openBlock(), createElementBlock("div", _hoisted_4, [createVNode(unref(N8nLoading_default), {
|
|
519
|
+
rows: rowsPerPage.value,
|
|
520
|
+
"shrink-last": false
|
|
521
|
+
}, null, 8, ["rows"])])) : filteredAndSortedResources.value.length > 0 ? (openBlock(), createElementBlock("div", {
|
|
522
|
+
key: 1,
|
|
523
|
+
ref_key: "listWrapperRef",
|
|
524
|
+
ref: listWrapperRef,
|
|
525
|
+
"data-test-id": "resources-list-wrapper",
|
|
526
|
+
class: normalizeClass(_ctx.$style.listWrapper)
|
|
527
|
+
}, [_ctx.type === "list-full" ? (openBlock(), createBlock(unref(N8nRecycleScroller_default), {
|
|
528
|
+
key: 0,
|
|
529
|
+
"data-test-id": "resources-list",
|
|
530
|
+
items: filteredAndSortedResources.value,
|
|
531
|
+
"item-size": itemSize(),
|
|
532
|
+
"item-key": "id"
|
|
533
|
+
}, {
|
|
534
|
+
default: withCtx(({ item, updateItemSize }) => [renderSlot(_ctx.$slots, "default", {
|
|
535
|
+
data: item,
|
|
536
|
+
updateItemSize
|
|
537
|
+
}, void 0, true)]),
|
|
538
|
+
_: 3
|
|
539
|
+
}, 8, ["items", "item-size"])) : _ctx.type === "list-paginated" ? (openBlock(), createElementBlock("div", {
|
|
540
|
+
key: 1,
|
|
541
|
+
class: normalizeClass(_ctx.$style.paginatedListWrapper),
|
|
542
|
+
"data-test-id": "paginated-list"
|
|
543
|
+
}, [createBaseVNode("div", {
|
|
544
|
+
ref_key: "listItemsRef",
|
|
545
|
+
ref: listItemsRef,
|
|
546
|
+
class: normalizeClass(_ctx.$style.listItems)
|
|
547
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.resources, (item, index) => {
|
|
548
|
+
return openBlock(), createElementBlock("div", {
|
|
549
|
+
key: index,
|
|
550
|
+
class: normalizeClass(_ctx.$style.listItem)
|
|
551
|
+
}, [renderSlot(_ctx.$slots, "item", {
|
|
552
|
+
item,
|
|
553
|
+
index
|
|
554
|
+
}, () => [createTextVNode(toDisplayString(item), 1)], true)], 2);
|
|
555
|
+
}), 128))], 2), createBaseVNode("div", { class: normalizeClass(_ctx.$style.listPagination) }, [createVNode(unref(ElPagination), {
|
|
556
|
+
"current-page": currentPage.value,
|
|
557
|
+
"onUpdate:currentPage": [_cache[2] || (_cache[2] = ($event) => currentPage.value = $event), setCurrentPage],
|
|
558
|
+
"page-size": rowsPerPage.value,
|
|
559
|
+
"onUpdate:pageSize": _cache[3] || (_cache[3] = ($event) => rowsPerPage.value = $event),
|
|
560
|
+
background: "",
|
|
561
|
+
total: _ctx.totalItems,
|
|
562
|
+
"page-sizes": _ctx.availablePageSizeOptions,
|
|
563
|
+
layout: "total, prev, pager, next, sizes",
|
|
564
|
+
"data-test-id": "resources-list-pagination",
|
|
565
|
+
onSizeChange: setRowsPerPage
|
|
566
|
+
}, null, 8, [
|
|
567
|
+
"current-page",
|
|
568
|
+
"page-size",
|
|
569
|
+
"total",
|
|
570
|
+
"page-sizes"
|
|
571
|
+
])], 2)], 2)) : createCommentVNode("", true), _ctx.type === "datatable" ? (openBlock(), createBlock(unref(N8nDatatable_default), {
|
|
572
|
+
key: 2,
|
|
573
|
+
"data-test-id": "resources-table",
|
|
574
|
+
class: normalizeClass(_ctx.$style.datatable),
|
|
575
|
+
columns: getColumns(),
|
|
576
|
+
rows: filteredAndSortedResources.value,
|
|
577
|
+
"current-page": currentPage.value,
|
|
578
|
+
"rows-per-page": rowsPerPage.value,
|
|
579
|
+
"onUpdate:currentPage": setCurrentPage,
|
|
580
|
+
"onUpdate:rowsPerPage": setRowsPerPage
|
|
581
|
+
}, {
|
|
582
|
+
row: withCtx(({ columns, row }) => [renderSlot(_ctx.$slots, "default", {
|
|
583
|
+
data: row,
|
|
584
|
+
columns
|
|
585
|
+
}, void 0, true)]),
|
|
586
|
+
postdata: withCtx(() => [renderSlot(_ctx.$slots, "postdata", {}, void 0, true)]),
|
|
587
|
+
_: 3
|
|
588
|
+
}, 8, [
|
|
589
|
+
"class",
|
|
590
|
+
"columns",
|
|
591
|
+
"rows",
|
|
592
|
+
"current-page",
|
|
593
|
+
"rows-per-page"
|
|
594
|
+
])) : createCommentVNode("", true)], 2)) : hasAppliedFilters() || filtersModel.value.search !== "" ? (openBlock(), createBlock(unref(N8nText_default), {
|
|
595
|
+
key: 2,
|
|
596
|
+
color: "text-base",
|
|
597
|
+
size: "medium",
|
|
598
|
+
"data-test-id": "resources-list-empty"
|
|
599
|
+
}, {
|
|
600
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(getResourceText)("noResults", "noResults")), 1)]),
|
|
601
|
+
_: 1
|
|
602
|
+
})) : createCommentVNode("", true),
|
|
603
|
+
renderSlot(_ctx.$slots, "postamble", {}, void 0, true)
|
|
604
|
+
]),
|
|
605
|
+
_: 3
|
|
606
|
+
}))], 64))]),
|
|
607
|
+
_: 3
|
|
608
|
+
});
|
|
609
|
+
};
|
|
610
|
+
}
|
|
611
|
+
});
|
|
612
|
+
const filters = "_filters_lkzqj_123";
|
|
613
|
+
const search = "_search_lkzqj_154";
|
|
614
|
+
const listWrapper = "_listWrapper_lkzqj_167";
|
|
615
|
+
const paginatedListWrapper = "_paginatedListWrapper_lkzqj_173";
|
|
616
|
+
const listItems = "_listItems_lkzqj_181";
|
|
617
|
+
const listPagination = "_listPagination_lkzqj_185";
|
|
618
|
+
const datatable = "_datatable_lkzqj_212";
|
|
619
|
+
var ResourcesListLayout_vue_vue_type_style_index_0_lang_module_default = {
|
|
620
|
+
"filters-row": "_filters-row_lkzqj_123",
|
|
621
|
+
filters,
|
|
622
|
+
"sort-and-filter": "_sort-and-filter_lkzqj_141",
|
|
623
|
+
search,
|
|
624
|
+
listWrapper,
|
|
625
|
+
paginatedListWrapper,
|
|
626
|
+
listItems,
|
|
627
|
+
listPagination,
|
|
628
|
+
datatable
|
|
629
|
+
};
|
|
630
|
+
var ResourcesListLayout_default = /* @__PURE__ */ __plugin_vue_export_helper_default(ResourcesListLayout_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": ResourcesListLayout_vue_vue_type_style_index_0_lang_module_default }], ["__scopeId", "data-v-e45b274e"]]);
|
|
631
|
+
export { ResourcesListLayout_default as t };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "./vue.runtime.esm-bundler-tP5dCd7J.js";
|
|
2
|
+
import "./_plugin-vue_export-helper-BwBpWJRZ.js";
|
|
3
|
+
import "./empty-BuGRxzl4.js";
|
|
4
|
+
import "./sanitize-html-CbW56HUN.js";
|
|
5
|
+
import "./path-browserify-RUt2u7iT.js";
|
|
6
|
+
import { t as RunDataHtml_default } from "./RunDataHtml-Cleia4Cj.js";
|
|
7
|
+
export { RunDataHtml_default as default };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { o as __toESM } from "./chunk-6z4oVpB-.js";
|
|
2
|
+
import { D as createElementBlock, et as openBlock } from "./vue.runtime.esm-bundler-tP5dCd7J.js";
|
|
3
|
+
import { t as __plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BwBpWJRZ.js";
|
|
4
|
+
import { t as require_sanitize_html } from "./sanitize-html-CbW56HUN.js";
|
|
5
|
+
var import_sanitize_html = /* @__PURE__ */ __toESM(require_sanitize_html());
|
|
6
|
+
var sanitizeOptions = {
|
|
7
|
+
allowVulnerableTags: false,
|
|
8
|
+
enforceHtmlBoundary: false,
|
|
9
|
+
disallowedTagsMode: "discard",
|
|
10
|
+
allowedTags: [
|
|
11
|
+
...import_sanitize_html.defaults.allowedTags,
|
|
12
|
+
"style",
|
|
13
|
+
"img",
|
|
14
|
+
"title"
|
|
15
|
+
],
|
|
16
|
+
allowedAttributes: {
|
|
17
|
+
...import_sanitize_html.defaults.allowedAttributes,
|
|
18
|
+
"*": ["class", "style"]
|
|
19
|
+
},
|
|
20
|
+
transformTags: { head: "" }
|
|
21
|
+
};
|
|
22
|
+
var RunDataHtml_vue_vue_type_script_lang_default = {
|
|
23
|
+
name: "RunDataHtml",
|
|
24
|
+
props: { inputHtml: {
|
|
25
|
+
type: String,
|
|
26
|
+
required: true
|
|
27
|
+
} },
|
|
28
|
+
computed: { sanitizedHtml() {
|
|
29
|
+
return (0, import_sanitize_html.default)(this.inputHtml, sanitizeOptions);
|
|
30
|
+
} }
|
|
31
|
+
};
|
|
32
|
+
var _hoisted_1 = ["srcdoc"];
|
|
33
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
34
|
+
return openBlock(), createElementBlock("iframe", {
|
|
35
|
+
class: "__html-display",
|
|
36
|
+
srcdoc: $options.sanitizedHtml
|
|
37
|
+
}, null, 8, _hoisted_1);
|
|
38
|
+
}
|
|
39
|
+
var RunDataHtml_default = /* @__PURE__ */ __plugin_vue_export_helper_default(RunDataHtml_vue_vue_type_script_lang_default, [["render", _sfc_render]]);
|
|
40
|
+
export { RunDataHtml_default as t };
|