@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,496 @@
|
|
|
1
|
+
import { o as __toESM } from "./chunk-6z4oVpB-.js";
|
|
2
|
+
import { C as computed, Cn as toDisplayString, D as createElementBlock, E as createCommentVNode, Gt as unref, It as ref, M as createVNode, P as defineComponent, T as createBlock, _ as Fragment, _t as watch, bt as withCtx, et as openBlock, h as withModifiers, it as renderList, j as createTextVNode, q as onBeforeMount, vn as normalizeClass, w as createBaseVNode, y as Suspense } from "./vue.runtime.esm-bundler-tP5dCd7J.js";
|
|
3
|
+
import { rt as useI18n } from "./core-CRbPymLT.js";
|
|
4
|
+
import { $ as N8nInputLabel_default, Cn as N8nIcon_default, J as N8nSelect_default, Y as N8nOption_default, bn as N8nText_default, xn as N8nButton_default, xt as N8nIconButton_default } from "./src-jviYSG25.js";
|
|
5
|
+
import "./en-CF30SCh2.js";
|
|
6
|
+
import "./preload-helper-dyVz7ck7.js";
|
|
7
|
+
import { t as __plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BwBpWJRZ.js";
|
|
8
|
+
import "./truncate-C0KYt7i3.js";
|
|
9
|
+
import "./date-picker-2IDsBs2n.js";
|
|
10
|
+
import { Kn as useNodeHelpers, N as useNDVStore, P as useWorkflowsStore, j as telemetry } from "./builder.store-Czk2ipDE.js";
|
|
11
|
+
import { r as require_vuedraggable_umd, t as ParameterInputList_default } from "./ParameterInputList-sG2nz-Jo.js";
|
|
12
|
+
import "./empty-BuGRxzl4.js";
|
|
13
|
+
import "./dialog-lMho1TD8.js";
|
|
14
|
+
import { t as require_get } from "./get-BcEmeOxn.js";
|
|
15
|
+
import "./sanitize-html-CbW56HUN.js";
|
|
16
|
+
import "./CalendarDate-DgQUMbNo.js";
|
|
17
|
+
import "./path-browserify-RUt2u7iT.js";
|
|
18
|
+
import "./_MapCache-CcdIl4Ae.js";
|
|
19
|
+
import { ga as isINodePropertyCollectionList, ho as require_isEqual, wa as deepCopy } from "./constants-C8OH4tTq.js";
|
|
20
|
+
import "./merge-DhuTk1HM.js";
|
|
21
|
+
import { A as storeToRefs } from "./_baseOrderBy-N8Be_6z6.js";
|
|
22
|
+
import "./dateformat-hG8NERse.js";
|
|
23
|
+
import "./useDebounce-Br5_1ug-.js";
|
|
24
|
+
import "./assistant.store-CNywgN4S.js";
|
|
25
|
+
import "./chatPanel.store-NDaawEZL.js";
|
|
26
|
+
import "./retry-BgHaYzbB.js";
|
|
27
|
+
import "./executions.store-B9uRYwgv.js";
|
|
28
|
+
import "./useRunWorkflow-LO7ffLp9.js";
|
|
29
|
+
import "./usePinnedData-BhZkqttf.js";
|
|
30
|
+
import "./nodeCreator.store-Bpnrwp2l.js";
|
|
31
|
+
import "./nodeIcon-D6X-ENYt.js";
|
|
32
|
+
import "./useClipboard-DvjhVHqJ.js";
|
|
33
|
+
import "./useCanvasOperations-8ULLtMkY.js";
|
|
34
|
+
import "./folders.store-yAFj-5Vl.js";
|
|
35
|
+
import "./NodeIcon-B9VW6tX6.js";
|
|
36
|
+
import "./isEmpty-C3XXoHqJ.js";
|
|
37
|
+
import "./NDVEmptyState-33UoX00I.js";
|
|
38
|
+
import "./exports-Crx_gvt_.js";
|
|
39
|
+
import "./externalSecrets.ee.store-BJh4a_6G.js";
|
|
40
|
+
import "./uniqBy-xDyuCRP0.js";
|
|
41
|
+
import "./RunDataHtml-Cleia4Cj.js";
|
|
42
|
+
import "./VueMarkdown-CQqJL9vK.js";
|
|
43
|
+
import "./Draggable-vfvXl9Sp.js";
|
|
44
|
+
import "./VirtualSchema-B3zGe_8b.js";
|
|
45
|
+
import "./TextWithHighlights-BxumwGnv.js";
|
|
46
|
+
import "./useTelemetryContext-V6bv4YRq.js";
|
|
47
|
+
import "./schemaPreview.store-DUgN1yVE.js";
|
|
48
|
+
import "./nodeTransforms-RzcOM0v2.js";
|
|
49
|
+
import "./vue-json-pretty-CsGX66mG.js";
|
|
50
|
+
import "./dateFormatter-ik4-9_9r.js";
|
|
51
|
+
import "./useExecutionHelpers-BgRRhpBM.js";
|
|
52
|
+
import "./vue-CydWIhxN.js";
|
|
53
|
+
var import_get = /* @__PURE__ */ __toESM(require_get());
|
|
54
|
+
var import_isEqual = /* @__PURE__ */ __toESM(require_isEqual());
|
|
55
|
+
var import_vuedraggable_umd = /* @__PURE__ */ __toESM(require_vuedraggable_umd());
|
|
56
|
+
var _hoisted_1 = ["data-test-id"];
|
|
57
|
+
var _hoisted_2 = {
|
|
58
|
+
key: 0,
|
|
59
|
+
class: "no-items-exist"
|
|
60
|
+
};
|
|
61
|
+
var _hoisted_3 = { key: 1 };
|
|
62
|
+
var _hoisted_4 = {
|
|
63
|
+
key: 0,
|
|
64
|
+
class: "icon-button default-top-padding"
|
|
65
|
+
};
|
|
66
|
+
var _hoisted_5 = {
|
|
67
|
+
key: 1,
|
|
68
|
+
class: "icon-button extra-top-padding"
|
|
69
|
+
};
|
|
70
|
+
var _hoisted_6 = {
|
|
71
|
+
key: 2,
|
|
72
|
+
class: "optional-values-picker add-option",
|
|
73
|
+
"data-test-id": "fixed-collection-add-property"
|
|
74
|
+
};
|
|
75
|
+
var _hoisted_7 = { class: "optional-value-item" };
|
|
76
|
+
var _hoisted_8 = {
|
|
77
|
+
key: 2,
|
|
78
|
+
class: "parameter-item"
|
|
79
|
+
};
|
|
80
|
+
var _hoisted_9 = { class: "parameter-item-wrapper" };
|
|
81
|
+
var _hoisted_10 = {
|
|
82
|
+
key: 0,
|
|
83
|
+
class: "icon-button"
|
|
84
|
+
};
|
|
85
|
+
var _hoisted_11 = {
|
|
86
|
+
key: 1,
|
|
87
|
+
class: "optional-values-picker add-option",
|
|
88
|
+
"data-test-id": "fixed-collection-add-property"
|
|
89
|
+
};
|
|
90
|
+
var _hoisted_12 = { class: "optional-value-item" };
|
|
91
|
+
var _hoisted_13 = {
|
|
92
|
+
key: 1,
|
|
93
|
+
class: "controls"
|
|
94
|
+
};
|
|
95
|
+
var _hoisted_14 = {
|
|
96
|
+
key: 1,
|
|
97
|
+
class: "add-option"
|
|
98
|
+
};
|
|
99
|
+
var FixedCollectionParameter_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
100
|
+
__name: "FixedCollectionParameter",
|
|
101
|
+
props: {
|
|
102
|
+
nodeValues: {},
|
|
103
|
+
parameter: {},
|
|
104
|
+
path: {},
|
|
105
|
+
values: { default: () => ({}) },
|
|
106
|
+
isReadOnly: {
|
|
107
|
+
type: Boolean,
|
|
108
|
+
default: false
|
|
109
|
+
},
|
|
110
|
+
hiddenIssuesInputs: { default: () => [] }
|
|
111
|
+
},
|
|
112
|
+
emits: ["valueChanged"],
|
|
113
|
+
setup(__props, { emit: __emit }) {
|
|
114
|
+
const locale = useI18n();
|
|
115
|
+
const nodeHelpers = useNodeHelpers();
|
|
116
|
+
const props = __props;
|
|
117
|
+
const emit = __emit;
|
|
118
|
+
const workflowsStore = useWorkflowsStore();
|
|
119
|
+
const ndvStore = useNDVStore();
|
|
120
|
+
const { activeNode } = storeToRefs(ndvStore);
|
|
121
|
+
const getPlaceholderText = computed(() => {
|
|
122
|
+
const placeholder = locale.nodeText(activeNode.value?.type).placeholder(props.parameter, props.path);
|
|
123
|
+
return placeholder ? placeholder : locale.baseText("fixedCollectionParameter.choose");
|
|
124
|
+
});
|
|
125
|
+
const mutableValues = ref({});
|
|
126
|
+
const selectedOption = ref(null);
|
|
127
|
+
const propertyNames = computed(() => {
|
|
128
|
+
return new Set(Object.keys(mutableValues.value || {}));
|
|
129
|
+
});
|
|
130
|
+
const getProperties = computed(() => {
|
|
131
|
+
const returnProperties = [];
|
|
132
|
+
let tempProperties;
|
|
133
|
+
for (const name of propertyNames.value) {
|
|
134
|
+
tempProperties = getOptionProperties(name);
|
|
135
|
+
if (tempProperties !== void 0) returnProperties.push(tempProperties);
|
|
136
|
+
}
|
|
137
|
+
return returnProperties;
|
|
138
|
+
});
|
|
139
|
+
const multipleValues = computed(() => {
|
|
140
|
+
return !!props.parameter.typeOptions?.multipleValues;
|
|
141
|
+
});
|
|
142
|
+
const addedOptionalValues = ref(/* @__PURE__ */ new Map());
|
|
143
|
+
const parameterOptions = computed(() => {
|
|
144
|
+
if (!isINodePropertyCollectionList(props.parameter.options)) return [];
|
|
145
|
+
if (multipleValues.value) return props.parameter.options;
|
|
146
|
+
return (props.parameter.options ?? []).filter((option) => {
|
|
147
|
+
return !propertyNames.value.has(option.name);
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
const sortable = computed(() => {
|
|
151
|
+
return !!props.parameter.typeOptions?.sortable;
|
|
152
|
+
});
|
|
153
|
+
const hideOptionalFields = computed(() => {
|
|
154
|
+
return !!props.parameter.typeOptions?.hideOptionalFields;
|
|
155
|
+
});
|
|
156
|
+
const addOptionalFieldButtonText = computed(() => {
|
|
157
|
+
if (!props.parameter.typeOptions?.addOptionalFieldButtonText) return locale.baseText("fixedCollectionParameter.addField");
|
|
158
|
+
return locale.nodeText(activeNode.value?.type).addOptionalFieldButtonText(props.parameter);
|
|
159
|
+
});
|
|
160
|
+
const getOptionalValuesKey = (propertyName, index) => {
|
|
161
|
+
return index !== void 0 ? `${propertyName}-${index}` : propertyName;
|
|
162
|
+
};
|
|
163
|
+
const hasNonDefaultValue = (propertyDef, itemValues) => {
|
|
164
|
+
if (!itemValues) return false;
|
|
165
|
+
const value = itemValues[propertyDef.name];
|
|
166
|
+
if (value === void 0 || value === null) return false;
|
|
167
|
+
if (typeof value === "string" && value === "") return false;
|
|
168
|
+
if (typeof value === "object") return !(0, import_isEqual.default)(value, propertyDef.default);
|
|
169
|
+
return value !== propertyDef.default;
|
|
170
|
+
};
|
|
171
|
+
const initializeAddedOptionalValues = () => {
|
|
172
|
+
if (!hideOptionalFields.value) return;
|
|
173
|
+
if (!isINodePropertyCollectionList(props.parameter.options)) return;
|
|
174
|
+
addedOptionalValues.value.clear();
|
|
175
|
+
for (const property of props.parameter.options) {
|
|
176
|
+
const propertyPath = `${props.path}.${property.name}`;
|
|
177
|
+
const propertyValues = (0, import_get.default)(props.nodeValues, propertyPath);
|
|
178
|
+
if (!propertyValues) continue;
|
|
179
|
+
const optionalValueDefs = property.values.filter((v) => v.required !== true && v.type !== "notice");
|
|
180
|
+
if (multipleValues.value && Array.isArray(propertyValues)) propertyValues.forEach((itemValues, index) => {
|
|
181
|
+
const key = getOptionalValuesKey(property.name, index);
|
|
182
|
+
const addedValues = /* @__PURE__ */ new Set();
|
|
183
|
+
for (const valueDef of optionalValueDefs) if (hasNonDefaultValue(valueDef, itemValues)) addedValues.add(valueDef.name);
|
|
184
|
+
if (addedValues.size > 0) addedOptionalValues.value.set(key, addedValues);
|
|
185
|
+
});
|
|
186
|
+
else if (typeof propertyValues === "object" && !Array.isArray(propertyValues)) {
|
|
187
|
+
const key = getOptionalValuesKey(property.name);
|
|
188
|
+
const addedValues = /* @__PURE__ */ new Set();
|
|
189
|
+
for (const valueDef of optionalValueDefs) if (hasNonDefaultValue(valueDef, propertyValues)) addedValues.add(valueDef.name);
|
|
190
|
+
if (addedValues.size > 0) addedOptionalValues.value.set(key, addedValues);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
const isOptionalValueAdded = (propertyName, valueName, index) => {
|
|
195
|
+
const key = getOptionalValuesKey(propertyName, index);
|
|
196
|
+
return addedOptionalValues.value.get(key)?.has(valueName) ?? false;
|
|
197
|
+
};
|
|
198
|
+
const getVisiblePropertyValues = (property, index) => {
|
|
199
|
+
if (!hideOptionalFields.value) return property.values;
|
|
200
|
+
const key = getOptionalValuesKey(property.name, index);
|
|
201
|
+
const addedValues = addedOptionalValues.value.get(key);
|
|
202
|
+
return property.values.filter((value) => {
|
|
203
|
+
if (value.required === true) return true;
|
|
204
|
+
if (value.type === "notice") return true;
|
|
205
|
+
if (addedValues?.has(value.name)) return true;
|
|
206
|
+
if (value.typeOptions?.showEvenWhenOptional) return true;
|
|
207
|
+
return false;
|
|
208
|
+
});
|
|
209
|
+
};
|
|
210
|
+
const getPickerPropertyValues = (property, index) => {
|
|
211
|
+
if (!hideOptionalFields.value) return [];
|
|
212
|
+
const itemPath = getPropertyPath(property.name, index);
|
|
213
|
+
return property.values.filter((value) => {
|
|
214
|
+
if (value.required === true) return false;
|
|
215
|
+
if (value.type === "notice") return false;
|
|
216
|
+
if (value.typeOptions?.showEvenWhenOptional) return false;
|
|
217
|
+
return nodeHelpers.displayParameter(props.nodeValues, value, itemPath, activeNode.value);
|
|
218
|
+
});
|
|
219
|
+
};
|
|
220
|
+
const toggleOptionalValue = (property, valueName, index) => {
|
|
221
|
+
const key = getOptionalValuesKey(property.name, index);
|
|
222
|
+
let valueSet = addedOptionalValues.value.get(key);
|
|
223
|
+
if (!valueSet) {
|
|
224
|
+
valueSet = /* @__PURE__ */ new Set();
|
|
225
|
+
addedOptionalValues.value.set(key, valueSet);
|
|
226
|
+
}
|
|
227
|
+
const valueDef = property.values.find((v) => v.name === valueName);
|
|
228
|
+
if (!valueDef) return;
|
|
229
|
+
const isCurrentlyAdded = valueSet.has(valueName);
|
|
230
|
+
if (isCurrentlyAdded) valueSet.delete(valueName);
|
|
231
|
+
else valueSet.add(valueName);
|
|
232
|
+
addedOptionalValues.value.set(key, valueSet);
|
|
233
|
+
emit("valueChanged", {
|
|
234
|
+
name: getPropertyPath(property.name, index) + `.${valueName}`,
|
|
235
|
+
value: isCurrentlyAdded ? void 0 : deepCopy(valueDef.default)
|
|
236
|
+
});
|
|
237
|
+
};
|
|
238
|
+
watch(() => props.values, (newValues) => {
|
|
239
|
+
mutableValues.value = deepCopy(newValues);
|
|
240
|
+
}, { deep: true });
|
|
241
|
+
onBeforeMount(() => {
|
|
242
|
+
mutableValues.value = deepCopy(props.values);
|
|
243
|
+
initializeAddedOptionalValues();
|
|
244
|
+
});
|
|
245
|
+
const deleteOption = (optionName, index) => {
|
|
246
|
+
const currentOptionsOfSameType = mutableValues.value[optionName];
|
|
247
|
+
if (!currentOptionsOfSameType || currentOptionsOfSameType.length > 1) emit("valueChanged", {
|
|
248
|
+
name: getPropertyPath(optionName, index),
|
|
249
|
+
value: void 0
|
|
250
|
+
});
|
|
251
|
+
else emit("valueChanged", {
|
|
252
|
+
name: getPropertyPath(optionName),
|
|
253
|
+
value: void 0
|
|
254
|
+
});
|
|
255
|
+
};
|
|
256
|
+
const getPropertyPath = (name, index) => {
|
|
257
|
+
return `${props.path}.${name}` + (index !== void 0 ? `[${index}]` : "");
|
|
258
|
+
};
|
|
259
|
+
const getOptionProperties = (optionName) => {
|
|
260
|
+
if (isINodePropertyCollectionList(props.parameter.options)) {
|
|
261
|
+
for (const option of props.parameter.options) if (option.name === optionName) return option;
|
|
262
|
+
}
|
|
263
|
+
};
|
|
264
|
+
const onAddButtonClick = (optionName) => {
|
|
265
|
+
optionSelected(optionName);
|
|
266
|
+
if (props.parameter.name === "workflowInputs") trackWorkflowInputFieldAdded();
|
|
267
|
+
};
|
|
268
|
+
const optionSelected = (optionName) => {
|
|
269
|
+
const option = getOptionProperties(optionName);
|
|
270
|
+
if (option === void 0) return;
|
|
271
|
+
const name = `${props.path}.${option.name}`;
|
|
272
|
+
const newParameterValue = {};
|
|
273
|
+
for (const optionParameter of option.values) if (optionParameter.type === "fixedCollection" && optionParameter.typeOptions !== void 0 && optionParameter.typeOptions.multipleValues === true) newParameterValue[optionParameter.name] = {};
|
|
274
|
+
else if (optionParameter.typeOptions !== void 0 && optionParameter.typeOptions.multipleValues === true) {
|
|
275
|
+
const multiValue = (0, import_get.default)(props.nodeValues, [props.path, optionParameter.name], []);
|
|
276
|
+
if (Array.isArray(optionParameter.default)) multiValue.push(...deepCopy(optionParameter.default));
|
|
277
|
+
else if (optionParameter.default !== "" && typeof optionParameter.default !== "object") multiValue.push(deepCopy(optionParameter.default));
|
|
278
|
+
newParameterValue[optionParameter.name] = multiValue;
|
|
279
|
+
} else newParameterValue[optionParameter.name] = deepCopy(optionParameter.default);
|
|
280
|
+
let newValue;
|
|
281
|
+
if (multipleValues.value) {
|
|
282
|
+
newValue = (0, import_get.default)(props.nodeValues, name, []);
|
|
283
|
+
newValue.push(newParameterValue);
|
|
284
|
+
} else newValue = newParameterValue;
|
|
285
|
+
emit("valueChanged", {
|
|
286
|
+
name,
|
|
287
|
+
value: newValue
|
|
288
|
+
});
|
|
289
|
+
selectedOption.value = void 0;
|
|
290
|
+
};
|
|
291
|
+
const valueChanged = (parameterData) => {
|
|
292
|
+
emit("valueChanged", parameterData);
|
|
293
|
+
if (props.parameter.name === "workflowInputs") trackWorkflowInputFieldTypeChange(parameterData);
|
|
294
|
+
};
|
|
295
|
+
const onDragChange = (optionName) => {
|
|
296
|
+
emit("valueChanged", {
|
|
297
|
+
name: getPropertyPath(optionName),
|
|
298
|
+
value: mutableValues.value[optionName],
|
|
299
|
+
type: "optionsOrderChanged"
|
|
300
|
+
});
|
|
301
|
+
};
|
|
302
|
+
const trackWorkflowInputFieldTypeChange = (parameterData) => {
|
|
303
|
+
telemetry.track("User changed workflow input field type", {
|
|
304
|
+
type: parameterData.value,
|
|
305
|
+
workflow_id: workflowsStore.workflow.id,
|
|
306
|
+
node_id: ndvStore.activeNode?.id
|
|
307
|
+
});
|
|
308
|
+
};
|
|
309
|
+
const trackWorkflowInputFieldAdded = () => {
|
|
310
|
+
telemetry.track("User added workflow input field", {
|
|
311
|
+
workflow_id: workflowsStore.workflow.id,
|
|
312
|
+
node_id: ndvStore.activeNode?.id
|
|
313
|
+
});
|
|
314
|
+
};
|
|
315
|
+
function getItemKey(item, property) {
|
|
316
|
+
return mutableValues.value[property.name]?.indexOf(item) ?? -1;
|
|
317
|
+
}
|
|
318
|
+
return (_ctx, _cache) => {
|
|
319
|
+
return openBlock(), createElementBlock("div", {
|
|
320
|
+
class: "fixed-collection-parameter",
|
|
321
|
+
"data-test-id": `fixed-collection-${props.parameter?.name}`,
|
|
322
|
+
onKeydown: _cache[2] || (_cache[2] = withModifiers(() => {}, ["stop"]))
|
|
323
|
+
}, [
|
|
324
|
+
getProperties.value.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_2, [createVNode(unref(N8nText_default), { size: "small" }, {
|
|
325
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("fixedCollectionParameter.currentlyNoItemsExist")), 1)]),
|
|
326
|
+
_: 1
|
|
327
|
+
})])) : createCommentVNode("", true),
|
|
328
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(getProperties.value, (property) => {
|
|
329
|
+
return openBlock(), createElementBlock("div", {
|
|
330
|
+
key: property.name,
|
|
331
|
+
class: "fixed-collection-parameter-property"
|
|
332
|
+
}, [property.displayName !== "" && _ctx.parameter.options && _ctx.parameter.options.length !== 1 ? (openBlock(), createBlock(unref(N8nInputLabel_default), {
|
|
333
|
+
key: 0,
|
|
334
|
+
label: unref(locale).nodeText(unref(activeNode)?.type).inputLabelDisplayName(property, _ctx.path),
|
|
335
|
+
underline: true,
|
|
336
|
+
size: "small",
|
|
337
|
+
color: "text-dark"
|
|
338
|
+
}, null, 8, ["label"])) : createCommentVNode("", true), multipleValues.value ? (openBlock(), createElementBlock("div", _hoisted_3, [createVNode(unref(import_vuedraggable_umd.default), {
|
|
339
|
+
modelValue: mutableValues.value[property.name],
|
|
340
|
+
"onUpdate:modelValue": ($event) => mutableValues.value[property.name] = $event,
|
|
341
|
+
"item-key": (item) => getItemKey(item, property),
|
|
342
|
+
handle: ".drag-handle",
|
|
343
|
+
"drag-class": "dragging",
|
|
344
|
+
"ghost-class": "ghost",
|
|
345
|
+
"chosen-class": "chosen",
|
|
346
|
+
onChange: ($event) => onDragChange(property.name)
|
|
347
|
+
}, {
|
|
348
|
+
item: withCtx(({ index }) => [(openBlock(), createElementBlock("div", {
|
|
349
|
+
key: property.name + "-" + index,
|
|
350
|
+
class: "parameter-item"
|
|
351
|
+
}, [createBaseVNode("div", { class: normalizeClass(index ? "border-top-dashed parameter-item-wrapper " : "parameter-item-wrapper") }, [
|
|
352
|
+
!_ctx.isReadOnly ? (openBlock(), createElementBlock("div", _hoisted_4, [sortable.value ? (openBlock(), createBlock(unref(N8nIconButton_default), {
|
|
353
|
+
key: 0,
|
|
354
|
+
type: "tertiary",
|
|
355
|
+
text: "",
|
|
356
|
+
size: "small",
|
|
357
|
+
icon: "grip-vertical",
|
|
358
|
+
title: unref(locale).baseText("fixedCollectionParameter.dragItem"),
|
|
359
|
+
class: "drag-handle"
|
|
360
|
+
}, null, 8, ["title"])) : createCommentVNode("", true)])) : createCommentVNode("", true),
|
|
361
|
+
!_ctx.isReadOnly ? (openBlock(), createElementBlock("div", _hoisted_5, [createVNode(unref(N8nIconButton_default), {
|
|
362
|
+
type: "tertiary",
|
|
363
|
+
text: "",
|
|
364
|
+
size: "small",
|
|
365
|
+
icon: "trash-2",
|
|
366
|
+
"data-test-id": "fixed-collection-delete",
|
|
367
|
+
title: unref(locale).baseText("fixedCollectionParameter.deleteItem"),
|
|
368
|
+
onClick: ($event) => deleteOption(property.name, index)
|
|
369
|
+
}, null, 8, ["title", "onClick"])])) : createCommentVNode("", true),
|
|
370
|
+
(openBlock(), createBlock(Suspense, null, {
|
|
371
|
+
default: withCtx(() => [createVNode(ParameterInputList_default, {
|
|
372
|
+
parameters: getVisiblePropertyValues(property, index),
|
|
373
|
+
"node-values": _ctx.nodeValues,
|
|
374
|
+
path: getPropertyPath(property.name, index),
|
|
375
|
+
"hide-delete": true,
|
|
376
|
+
"is-read-only": _ctx.isReadOnly,
|
|
377
|
+
"hidden-issues-inputs": _ctx.hiddenIssuesInputs,
|
|
378
|
+
onValueChanged: valueChanged
|
|
379
|
+
}, null, 8, [
|
|
380
|
+
"parameters",
|
|
381
|
+
"node-values",
|
|
382
|
+
"path",
|
|
383
|
+
"is-read-only",
|
|
384
|
+
"hidden-issues-inputs"
|
|
385
|
+
])]),
|
|
386
|
+
_: 2
|
|
387
|
+
}, 1024)),
|
|
388
|
+
getPickerPropertyValues(property, index).length > 0 && !_ctx.isReadOnly ? (openBlock(), createElementBlock("div", _hoisted_6, [createVNode(unref(N8nSelect_default), {
|
|
389
|
+
placeholder: addOptionalFieldButtonText.value,
|
|
390
|
+
size: "small",
|
|
391
|
+
filterable: "",
|
|
392
|
+
"model-value": null,
|
|
393
|
+
"onUpdate:modelValue": (valueName) => toggleOptionalValue(property, valueName, index)
|
|
394
|
+
}, {
|
|
395
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(getPickerPropertyValues(property, index), (value) => {
|
|
396
|
+
return openBlock(), createBlock(unref(N8nOption_default), {
|
|
397
|
+
key: value.name,
|
|
398
|
+
label: value.displayName || value.name,
|
|
399
|
+
value: value.name
|
|
400
|
+
}, {
|
|
401
|
+
default: withCtx(() => [createBaseVNode("div", _hoisted_7, [createBaseVNode("span", null, toDisplayString(value.displayName || value.name), 1), isOptionalValueAdded(property.name, value.name, index) ? (openBlock(), createBlock(unref(N8nIcon_default), {
|
|
402
|
+
key: 0,
|
|
403
|
+
icon: "check",
|
|
404
|
+
size: "medium"
|
|
405
|
+
})) : createCommentVNode("", true)])]),
|
|
406
|
+
_: 2
|
|
407
|
+
}, 1032, ["label", "value"]);
|
|
408
|
+
}), 128))]),
|
|
409
|
+
_: 2
|
|
410
|
+
}, 1032, ["placeholder", "onUpdate:modelValue"])])) : createCommentVNode("", true)
|
|
411
|
+
], 2)]))]),
|
|
412
|
+
_: 2
|
|
413
|
+
}, 1032, [
|
|
414
|
+
"modelValue",
|
|
415
|
+
"onUpdate:modelValue",
|
|
416
|
+
"item-key",
|
|
417
|
+
"onChange"
|
|
418
|
+
])])) : (openBlock(), createElementBlock("div", _hoisted_8, [createBaseVNode("div", _hoisted_9, [
|
|
419
|
+
!_ctx.isReadOnly ? (openBlock(), createElementBlock("div", _hoisted_10, [createVNode(unref(N8nIconButton_default), {
|
|
420
|
+
type: "tertiary",
|
|
421
|
+
text: "",
|
|
422
|
+
size: "small",
|
|
423
|
+
icon: "trash-2",
|
|
424
|
+
"data-test-id": "fixed-collection-delete",
|
|
425
|
+
title: unref(locale).baseText("fixedCollectionParameter.deleteItem"),
|
|
426
|
+
onClick: ($event) => deleteOption(property.name)
|
|
427
|
+
}, null, 8, ["title", "onClick"])])) : createCommentVNode("", true),
|
|
428
|
+
createVNode(ParameterInputList_default, {
|
|
429
|
+
parameters: getVisiblePropertyValues(property),
|
|
430
|
+
"node-values": _ctx.nodeValues,
|
|
431
|
+
path: getPropertyPath(property.name),
|
|
432
|
+
"is-read-only": _ctx.isReadOnly,
|
|
433
|
+
class: "parameter-item",
|
|
434
|
+
"hide-delete": true,
|
|
435
|
+
"hidden-issues-inputs": _ctx.hiddenIssuesInputs,
|
|
436
|
+
onValueChanged: valueChanged
|
|
437
|
+
}, null, 8, [
|
|
438
|
+
"parameters",
|
|
439
|
+
"node-values",
|
|
440
|
+
"path",
|
|
441
|
+
"is-read-only",
|
|
442
|
+
"hidden-issues-inputs"
|
|
443
|
+
]),
|
|
444
|
+
getPickerPropertyValues(property).length > 0 && !_ctx.isReadOnly ? (openBlock(), createElementBlock("div", _hoisted_11, [createVNode(unref(N8nSelect_default), {
|
|
445
|
+
placeholder: addOptionalFieldButtonText.value,
|
|
446
|
+
size: "small",
|
|
447
|
+
filterable: "",
|
|
448
|
+
"model-value": null,
|
|
449
|
+
"onUpdate:modelValue": (valueName) => toggleOptionalValue(property, valueName)
|
|
450
|
+
}, {
|
|
451
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(getPickerPropertyValues(property), (value) => {
|
|
452
|
+
return openBlock(), createBlock(unref(N8nOption_default), {
|
|
453
|
+
key: value.name,
|
|
454
|
+
label: value.displayName || value.name,
|
|
455
|
+
value: value.name
|
|
456
|
+
}, {
|
|
457
|
+
default: withCtx(() => [createBaseVNode("div", _hoisted_12, [createBaseVNode("span", null, toDisplayString(value.displayName || value.name), 1), isOptionalValueAdded(property.name, value.name) ? (openBlock(), createBlock(unref(N8nIcon_default), {
|
|
458
|
+
key: 0,
|
|
459
|
+
icon: "check",
|
|
460
|
+
size: "medium"
|
|
461
|
+
})) : createCommentVNode("", true)])]),
|
|
462
|
+
_: 2
|
|
463
|
+
}, 1032, ["label", "value"]);
|
|
464
|
+
}), 128))]),
|
|
465
|
+
_: 2
|
|
466
|
+
}, 1032, ["placeholder", "onUpdate:modelValue"])])) : createCommentVNode("", true)
|
|
467
|
+
])]))]);
|
|
468
|
+
}), 128)),
|
|
469
|
+
parameterOptions.value.length > 0 && !_ctx.isReadOnly ? (openBlock(), createElementBlock("div", _hoisted_13, [_ctx.parameter.options && _ctx.parameter.options.length === 1 ? (openBlock(), createBlock(unref(N8nButton_default), {
|
|
470
|
+
key: 0,
|
|
471
|
+
type: "tertiary",
|
|
472
|
+
block: "",
|
|
473
|
+
"data-test-id": "fixed-collection-add",
|
|
474
|
+
label: getPlaceholderText.value,
|
|
475
|
+
onClick: _cache[0] || (_cache[0] = ($event) => onAddButtonClick(_ctx.parameter.options[0].name))
|
|
476
|
+
}, null, 8, ["label"])) : (openBlock(), createElementBlock("div", _hoisted_14, [createVNode(unref(N8nSelect_default), {
|
|
477
|
+
modelValue: selectedOption.value,
|
|
478
|
+
"onUpdate:modelValue": [_cache[1] || (_cache[1] = ($event) => selectedOption.value = $event), optionSelected],
|
|
479
|
+
placeholder: getPlaceholderText.value,
|
|
480
|
+
size: "small",
|
|
481
|
+
filterable: ""
|
|
482
|
+
}, {
|
|
483
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(parameterOptions.value, (item) => {
|
|
484
|
+
return openBlock(), createBlock(unref(N8nOption_default), {
|
|
485
|
+
key: item.name,
|
|
486
|
+
label: unref(locale).nodeText(unref(activeNode)?.type).collectionOptionDisplayName(_ctx.parameter, item, _ctx.path),
|
|
487
|
+
value: item.name
|
|
488
|
+
}, null, 8, ["label", "value"]);
|
|
489
|
+
}), 128))]),
|
|
490
|
+
_: 1
|
|
491
|
+
}, 8, ["modelValue", "placeholder"])]))])) : createCommentVNode("", true)
|
|
492
|
+
], 40, _hoisted_1);
|
|
493
|
+
};
|
|
494
|
+
}
|
|
495
|
+
}), [["__scopeId", "data-v-33c4afd7"]]);
|
|
496
|
+
export { FixedCollectionParameter_default as default };
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { C as computed, It as ref, P as defineComponent, T as createBlock, et as openBlock } from "./vue.runtime.esm-bundler-tP5dCd7J.js";
|
|
2
|
+
import { rt as useI18n } from "./core-CRbPymLT.js";
|
|
3
|
+
import "./src-jviYSG25.js";
|
|
4
|
+
import "./en-CF30SCh2.js";
|
|
5
|
+
import "./preload-helper-dyVz7ck7.js";
|
|
6
|
+
import "./_plugin-vue_export-helper-BwBpWJRZ.js";
|
|
7
|
+
import "./truncate-C0KYt7i3.js";
|
|
8
|
+
import { Er as useUsersStore, ms as useSettingsStore, y as useToast } 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 "./_baseOrderBy-N8Be_6z6.js";
|
|
18
|
+
import "./dateformat-hG8NERse.js";
|
|
19
|
+
import "./useDebounce-Br5_1ug-.js";
|
|
20
|
+
import "./sso.store-DyApJwhx.js";
|
|
21
|
+
import { t as AuthView_default } from "./AuthView-D2LWHrMp.js";
|
|
22
|
+
var ForgotMyPasswordView_default = /* @__PURE__ */ defineComponent({
|
|
23
|
+
__name: "ForgotMyPasswordView",
|
|
24
|
+
setup(__props) {
|
|
25
|
+
const settingsStore = useSettingsStore();
|
|
26
|
+
const usersStore = useUsersStore();
|
|
27
|
+
const toast = useToast();
|
|
28
|
+
const locale = useI18n();
|
|
29
|
+
const loading = ref(false);
|
|
30
|
+
const formConfig = computed(() => {
|
|
31
|
+
const EMAIL_INPUTS = [{
|
|
32
|
+
name: "email",
|
|
33
|
+
properties: {
|
|
34
|
+
label: locale.baseText("auth.email"),
|
|
35
|
+
type: "email",
|
|
36
|
+
required: true,
|
|
37
|
+
validationRules: [{ name: "VALID_EMAIL" }],
|
|
38
|
+
autocomplete: "email",
|
|
39
|
+
capitalize: true,
|
|
40
|
+
focusInitially: true
|
|
41
|
+
}
|
|
42
|
+
}];
|
|
43
|
+
const NO_SMTP_INPUTS = [{
|
|
44
|
+
name: "no-smtp-warning",
|
|
45
|
+
properties: {
|
|
46
|
+
label: locale.baseText("forgotPassword.noSMTPToSendEmailWarning"),
|
|
47
|
+
type: "info"
|
|
48
|
+
}
|
|
49
|
+
}];
|
|
50
|
+
const DEFAULT_FORM_CONFIG = {
|
|
51
|
+
title: locale.baseText("forgotPassword.recoverPassword"),
|
|
52
|
+
redirectText: locale.baseText("forgotPassword.returnToSignIn"),
|
|
53
|
+
redirectLink: "/signin"
|
|
54
|
+
};
|
|
55
|
+
if (settingsStore.isSmtpSetup) return {
|
|
56
|
+
...DEFAULT_FORM_CONFIG,
|
|
57
|
+
buttonText: locale.baseText("forgotPassword.getRecoveryLink"),
|
|
58
|
+
inputs: EMAIL_INPUTS
|
|
59
|
+
};
|
|
60
|
+
return {
|
|
61
|
+
...DEFAULT_FORM_CONFIG,
|
|
62
|
+
inputs: NO_SMTP_INPUTS
|
|
63
|
+
};
|
|
64
|
+
});
|
|
65
|
+
const isFormWithEmail = (values) => {
|
|
66
|
+
return "email" in values;
|
|
67
|
+
};
|
|
68
|
+
const onSubmit = async (values) => {
|
|
69
|
+
if (!isFormWithEmail(values)) return;
|
|
70
|
+
try {
|
|
71
|
+
loading.value = true;
|
|
72
|
+
await usersStore.sendForgotPasswordEmail(values);
|
|
73
|
+
toast.showMessage({
|
|
74
|
+
type: "success",
|
|
75
|
+
title: locale.baseText("forgotPassword.recoveryEmailSent"),
|
|
76
|
+
message: locale.baseText("forgotPassword.emailSentIfExists", { interpolate: { email: values.email } })
|
|
77
|
+
});
|
|
78
|
+
} catch (error) {
|
|
79
|
+
let message = locale.baseText("forgotPassword.smtpErrorContactAdministrator");
|
|
80
|
+
if (error.httpStatusCode) {
|
|
81
|
+
const { httpStatusCode: status } = error;
|
|
82
|
+
if (status === 429) message = locale.baseText("forgotPassword.tooManyRequests");
|
|
83
|
+
else if (error.httpStatusCode === 422) message = locale.baseText(error.message);
|
|
84
|
+
toast.showMessage({
|
|
85
|
+
type: "error",
|
|
86
|
+
title: locale.baseText("forgotPassword.sendingEmailError"),
|
|
87
|
+
message
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
loading.value = false;
|
|
92
|
+
};
|
|
93
|
+
return (_ctx, _cache) => {
|
|
94
|
+
return openBlock(), createBlock(AuthView_default, {
|
|
95
|
+
form: formConfig.value,
|
|
96
|
+
"form-loading": loading.value,
|
|
97
|
+
onSubmit
|
|
98
|
+
}, null, 8, ["form", "form-loading"]);
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
export { ForgotMyPasswordView_default as default };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { C as computed, Gt as unref, P as defineComponent, T as createBlock, et as openBlock } from "./vue.runtime.esm-bundler-tP5dCd7J.js";
|
|
2
|
+
import { rt as useI18n } from "./core-CRbPymLT.js";
|
|
3
|
+
import "./CalendarDate-DgQUMbNo.js";
|
|
4
|
+
import "./_MapCache-CcdIl4Ae.js";
|
|
5
|
+
import "./merge-DhuTk1HM.js";
|
|
6
|
+
import "./dateformat-hG8NERse.js";
|
|
7
|
+
import { a as INSIGHTS_UNIT_MAPPING, t as GRANULARITY_DATE_FORMAT_MASK } from "./insights.constants-BkJCYJTL.js";
|
|
8
|
+
import { a as transformInsightsAverageRunTime } from "./insights.utils-CcLXdrrz.js";
|
|
9
|
+
import { l as index } from "./chart-CNvyywtJ.js";
|
|
10
|
+
import { t as smartDecimal } from "./smartDecimal-DAZl4HKA.js";
|
|
11
|
+
import { r as Line } from "./dist-Cw46Is-h.js";
|
|
12
|
+
import { n as generateLineChartOptions, r as generateLinearGradient } from "./chartjs.utils-BAE52Cv9.js";
|
|
13
|
+
var InsightsChartAverageRuntime_default = /* @__PURE__ */ defineComponent({
|
|
14
|
+
__name: "InsightsChartAverageRuntime",
|
|
15
|
+
props: {
|
|
16
|
+
data: {},
|
|
17
|
+
type: {},
|
|
18
|
+
granularity: {},
|
|
19
|
+
startDate: {},
|
|
20
|
+
endDate: {}
|
|
21
|
+
},
|
|
22
|
+
setup(__props) {
|
|
23
|
+
const props = __props;
|
|
24
|
+
const i18n = useI18n();
|
|
25
|
+
const chartOptions = computed(() => generateLineChartOptions({ plugins: { tooltip: { callbacks: { label: (context) => {
|
|
26
|
+
return `${context.dataset.label ?? ""} ${smartDecimal(context.parsed.y)}${INSIGHTS_UNIT_MAPPING[props.type](context.parsed.y)}`;
|
|
27
|
+
} } } } }));
|
|
28
|
+
const chartData = computed(() => {
|
|
29
|
+
const labels = [];
|
|
30
|
+
const data = [];
|
|
31
|
+
for (const entry of props.data) {
|
|
32
|
+
labels.push(GRANULARITY_DATE_FORMAT_MASK[props.granularity](entry.date));
|
|
33
|
+
const value = transformInsightsAverageRunTime(entry.values.averageRunTime);
|
|
34
|
+
data.push(value);
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
labels,
|
|
38
|
+
datasets: [{
|
|
39
|
+
label: i18n.baseText("insights.banner.title.averageRunTime"),
|
|
40
|
+
data,
|
|
41
|
+
cubicInterpolationMode: "monotone",
|
|
42
|
+
fill: "origin",
|
|
43
|
+
backgroundColor: (ctx) => generateLinearGradient(ctx.chart.ctx, 292),
|
|
44
|
+
borderColor: "rgba(255, 64, 39, 1)"
|
|
45
|
+
}]
|
|
46
|
+
};
|
|
47
|
+
});
|
|
48
|
+
return (_ctx, _cache) => {
|
|
49
|
+
return openBlock(), createBlock(unref(Line), {
|
|
50
|
+
"data-test-id": "insights-chart-average-runtime",
|
|
51
|
+
data: chartData.value,
|
|
52
|
+
options: chartOptions.value,
|
|
53
|
+
plugins: [unref(index)]
|
|
54
|
+
}, null, 8, [
|
|
55
|
+
"data",
|
|
56
|
+
"options",
|
|
57
|
+
"plugins"
|
|
58
|
+
]);
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
export { InsightsChartAverageRuntime_default as default };
|