n8n-editor-ui 2.1.1 → 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/data/node-popularity.json +0 -4
- package/dist/assets/{AddDataTableModal-Dz0DDl2J.js → AddDataTableModal-C07v9Nxn.js} +18 -19
- package/dist/assets/{AgentEditorModal-BucPtfuf.js → AgentEditorModal-BrtNn_I9.js} +51 -62
- package/dist/assets/{AgentEditorModal-CzlIqORm.css → AgentEditorModal-CnYw6elM.css} +7 -13
- package/dist/assets/{Alert-0hwMnhqx.js → Alert-CjCTAWnZ.js} +1 -1
- package/dist/assets/{AnnotationTagsDropdown.ee-FwAi0jQL.js → AnnotationTagsDropdown.ee-BLpUZufe.js} +2 -2
- package/dist/assets/{AuthView-DpssdaNh.js → AuthView-CqAePJa9.js} +5 -5
- package/dist/assets/BottomMenu-CRVyIu-B.css +474 -0
- package/dist/assets/BottomMenu-Cej7gwr4.js +547 -0
- package/dist/assets/{ChangePasswordView-DBihzMqB.js → ChangePasswordView-BuzmSLJ8.js} +15 -15
- package/dist/assets/{ChatAgentAvatar-BK95BHUo.css → ChatAgentAvatar-B68ZZ295.css} +18 -9
- package/dist/assets/{ChatAgentAvatar-DDaNlXcV.js → ChatAgentAvatar-CwpeLqqo.js} +17 -16
- package/dist/assets/{ChatSidebarOpener-B4_hEzpT.js → ChatLayout-Baw4DF5I.js} +9 -28
- package/dist/assets/{ChatPersonalAgentsView-DhQsTHJ3.js → ChatPersonalAgentsView-B9Pt0vxY.js} +29 -34
- package/dist/assets/ChatPersonalAgentsView-BiiyFIRl.css +159 -0
- package/dist/assets/ChatSidebar-Cmc2-HvU.js +526 -0
- package/dist/assets/{ChatSidebar-D0f-W0S9.css → ChatSidebar-DcNxY7Pt.css} +61 -336
- package/dist/assets/{ChatView-B1O45V-1.js → ChatView-C2ezV2fz.js} +121 -142
- package/dist/assets/{ChatView-mTIZIDr3.css → ChatView-DZODCD2o.css} +4 -4
- package/dist/assets/{ChatWorkflowAgentsView-U76sjiCh.js → ChatWorkflowAgentsView-DBmwl58I.js} +22 -23
- package/dist/assets/CollectionParameter-DvlRV-HR.js +50 -0
- package/dist/assets/{CommunityNodeUpdateInfo-DaqlFCWs.js → CommunityNodeUpdateInfo-DjXh6DHu.js} +8 -8
- package/dist/assets/{CopyInput-DjkkoSUR.js → CopyInput-D-Z7pmxS.js} +4 -4
- package/dist/assets/{CredentialIcon-B5mFnPOM.js → CredentialIcon-ClX-2bGh.js} +3 -3
- package/dist/assets/{CredentialPicker-DmA-dFkP.js → CredentialPicker-CrCc144c.js} +5 -6
- package/dist/assets/{CredentialSelectorModal-CVKa8AAF.js → CredentialSelectorModal-Da2na5my.js} +18 -20
- package/dist/assets/{CredentialsView-B2WvyZTw.js → CredentialsView-CqNF_Gka.js} +34 -37
- package/dist/assets/{DataTableActions-CGYkW0Ge.js → DataTableActions-D0ibHSoF.js} +5 -6
- package/dist/assets/{DataTableDetailsView-B-_rx-9L.js → DataTableDetailsView-BRY9rVV1.js} +22 -24
- package/dist/assets/{DataTableView-K-cZEOKP.js → DataTableView-D4ujwn7I.js} +31 -34
- package/dist/assets/DemoFooter-fhB0ZsZi.js +63 -0
- package/dist/assets/{Draggable-D6WWA0zM.js → Draggable-Bs1jTk_8.js} +1 -1
- package/dist/assets/{EmptySharedSectionActionBox-CR6VISbw.js → EmptySharedSectionActionBox-BBB3j3rf.js} +4 -4
- package/dist/assets/{EnterpriseEdition.ee-CZml4Gcj.js → EnterpriseEdition.ee-_BSL-rxT.js} +1 -1
- package/dist/assets/{EntityNotFound-5i3KSEDe.js → EntityNotFound-8qJnYCXt.js} +7 -7
- package/dist/assets/{EntityUnAuthorised-DHAtMGRv.js → EntityUnAuthorised-CYu0UXzr.js} +7 -7
- package/dist/assets/{ErrorView-CxNhrbRr.js → ErrorView-CrDo6qHL.js} +9 -9
- package/dist/assets/{EvaluationsRootView-DFRtR5a2.js → EvaluationsRootView-C_7tPZ3q.js} +36 -36
- package/dist/assets/{EvaluationsView-DDnL-VtS.js → EvaluationsView-DTmT_Mjm.js} +21 -21
- package/dist/assets/{ExecutionsTime-CNz8UC7l.css → ExecutionsTime-CMAp2_xF.css} +24 -21
- package/dist/assets/{ExecutionsTime-Bll0yiJm.js → ExecutionsTime-ncZBFujs.js} +37 -28
- package/dist/assets/{ExecutionsView-8Y-vd0QZ.js → ExecutionsView-DKx5PCwr.js} +34 -37
- package/dist/assets/{ExternalSecretsProviderConnectionSwitch.ee-BWWuVEWG.js → ExternalSecretsProviderConnectionSwitch.ee-DQZ57stj.js} +4 -4
- package/dist/assets/{FixedCollectionParameter-CsPQJVNL.js → FixedCollectionParameter-BJZ0eM-5.js} +45 -53
- package/dist/assets/{ForgotMyPasswordView-DXGbw-EL.js → ForgotMyPasswordView-D_k_YvIG.js} +15 -15
- package/dist/assets/{InsightsChartAverageRuntime-Bm0c6_UE.js → InsightsChartAverageRuntime-Cljk8p2A.js} +10 -10
- package/dist/assets/{InsightsChartFailed-D6TI96gu.js → InsightsChartFailed-DTmTcxHp.js} +8 -8
- package/dist/assets/{InsightsChartFailureRate-BXjbwEEr.js → InsightsChartFailureRate-BKL-1iTZ.js} +10 -10
- package/dist/assets/{InsightsChartTimeSaved-BPUaaTg8.js → InsightsChartTimeSaved-CIxYU033.js} +10 -10
- package/dist/assets/{InsightsChartTotal-D3aCqsFD.js → InsightsChartTotal-_2DLJIdR.js} +8 -8
- package/dist/assets/{InsightsDashboard-C9pPsgT2.js → InsightsDashboard--1f1U32C.js} +32 -34
- package/dist/assets/{InsightsPaywall-fDfWjnVB.js → InsightsPaywall-DwtdewB6.js} +15 -16
- package/dist/assets/{InsightsSummary-Bjy-SY3W.js → InsightsSummary-DWzL1ePo.js} +8 -8
- package/dist/assets/{InsightsTableWorkflows-CAslapaK.js → InsightsTableWorkflows-CHoJdUEl.js} +18 -18
- package/dist/assets/{ItemsRenderer-CuTgDOI7.js → ItemsRenderer-Bju44b_S.js} +10 -10
- package/dist/assets/{ItemsRenderer-Cr6c6uYy.css → ItemsRenderer-DkobJF9f.css} +4 -2
- package/dist/assets/{KeyboardShortcutTooltip-BSbSC7ko.js → KeyboardShortcutTooltip-srIzApSu.js} +1 -1
- package/dist/assets/{LogsPanel-BVg_Ph6Z.js → LogsPanel-C9nCXiIh.js} +24 -25
- package/dist/assets/LogsPanel-z0W4CHve.js +50 -0
- package/dist/assets/MCPConnectWorkflowsModal-CR5hRPTJ.js +301 -0
- package/dist/assets/MCPConnectWorkflowsModal-CS2q8ice.css +275 -0
- package/dist/assets/{MainHeader-DJA_Afhq.css → MainHeader-CSaAWCWj.css} +13 -13
- package/dist/assets/{MainHeader-CfOHJ5AX.js → MainHeader-Dtf7ohow.js} +97 -101
- package/dist/assets/{MainSidebar-bwCkn71q.css → MainSidebar-CEsQ8o1Y.css} +84 -304
- package/dist/assets/{MainSidebar-BLoE9rZO.js → MainSidebar-_37xftBv.js} +222 -694
- package/dist/assets/{MigrationRuleDetail-CmcZ36s9.js → MigrationRuleDetail-CCO__jC7.js} +20 -20
- package/dist/assets/{MigrationRules-Cf4vXtX8.js → MigrationRules-B0SPwFyT.js} +12 -12
- package/dist/assets/{Modal-BkPSKUmM.js → Modal-DrkMFWe3.js} +4 -4
- package/dist/assets/{ModelByIdSelectorModal-BoLoyNu7.js → ModelByIdSelectorModal-CoQLLeXk.js} +17 -18
- package/dist/assets/{NDVEmptyState-ClE3eiVz.js → NDVEmptyState-DKrc1TFh.js} +1 -1
- package/dist/assets/{NodeCreation-DFfRX0DY.js → NodeCreation-k3pkIHZY.js} +41 -49
- package/dist/assets/{NodeCreator-CO64k-3G.js → NodeCreator-B6D9_1wn.js} +47 -50
- package/dist/assets/{NodeCreator-C-ckvxD7.css → NodeCreator-OSIpRI6S.css} +25 -25
- package/dist/assets/{NodeDetailsView-BURiqx95.js → NodeDetailsView-DfMYS7Pz.js} +60 -68
- package/dist/assets/{NodeDetailsViewV2-XUrXwnja.js → NodeDetailsViewV2-DOCw_zWY.js} +61 -69
- package/dist/assets/{ModalDrawer-B-12esvU.css → NodeIcon-BDxr0f30.css} +5 -6
- package/dist/assets/{NodeIcon-CWyPkrTk.js → NodeIcon-DL6ucXJC.js} +4 -4
- package/dist/assets/{NodeSettings-CcYkiMI8.js → NodeSettings-CS2iUNwL.js} +17 -17
- package/dist/assets/{NodeView-BPGoqSQJ.js → NodeView-0XOeMCB7.js} +111 -106
- package/dist/assets/{OAuthConsentView-kdX_7fls.js → OAuthConsentView-WGFrtRYZ.js} +14 -14
- package/dist/assets/{ParameterInputList-CXEjv4Ky.css → ParameterInputList-0YoVowEI.css} +10 -7
- package/dist/assets/{ParameterInputList-DdA16d29.js → ParameterInputList-DTEJwrQm.js} +59 -56
- package/dist/assets/{PrebuiltAgentTemplatesView-CwoV26I0.js → PrebuiltAgentTemplatesView-CJ6VJ0XJ.js} +17 -19
- package/dist/assets/{ProjectBreadcrumb-3cTfM8kZ.js → ProjectBreadcrumb-FtcudW_2.js} +4 -4
- package/dist/assets/{ProjectCardBadge-DWmYy--A.js → ProjectCardBadge-C42B_oyx.js} +5 -5
- package/dist/assets/{ProjectHeader-CzeJhu2I.js → ProjectHeader-UBLuSGFT.js} +8 -8
- package/dist/assets/{ProjectIcon-Biy_-Ssg.js → ProjectIcon-CEp8nyYM.js} +1 -1
- package/dist/assets/{ProjectRoleView-D6dn38TT.js → ProjectRoleView-BQvsQqjp.js} +15 -16
- package/dist/assets/{ProjectRolesView-BljI8SKN.js → ProjectRolesView-CksItD9m.js} +16 -19
- package/dist/assets/{ProjectSettings-Cu6igv0N.js → ProjectSettings-DUSQ3i-j.js} +26 -28
- package/dist/assets/{ProjectSharing-YZRwVLxy.js → ProjectSharing-DcKfaqUD.js} +5 -5
- package/dist/assets/{ProjectVariables-ClTl8P4L.js → ProjectVariables-BEwMAsZl.js} +32 -35
- package/dist/assets/{ProviderSettingsModal-Bw0f0MFf.js → ProviderSettingsModal-D9LOoiTP.js} +21 -23
- package/dist/assets/{PushConnectionTracker-ClSwVP7t.js → PushConnectionTracker-CYhR1yeo.js} +3 -3
- package/dist/assets/{ResolversView-BC_8K9SU.js → ResolversView-MhtoNdHP.js} +15 -17
- package/dist/assets/{ResourceFiltersDropdown-BACE5ZTX.css → ResourceFiltersDropdown-Cma1Lj9J.css} +12 -9
- package/dist/assets/{ResourceFiltersDropdown-1x0v8WL5.js → ResourceFiltersDropdown-DJG8zh1q.js} +18 -18
- package/dist/assets/{ResourcesListLayout-DeXcgSE7.js → ResourcesListLayout-CBYWFTvd.js} +9 -9
- package/dist/assets/{RunDataHtml-DhjduYN-.js → RunDataHtml-B4A7gRBL.js} +3 -3
- package/dist/assets/{RunDataHtml-_b8v7-9v.js → RunDataHtml-CkjC7YuF.js} +1 -1
- package/dist/assets/{RunDataJson-CzijJVcS.js → RunDataJson-hUd8I9Iw.js} +14 -14
- package/dist/assets/{RunDataJsonActions-F_lYqidD.js → RunDataJsonActions-mj5kInPr.js} +15 -15
- package/dist/assets/{RunDataParsedAiContent-rfF9dj2q.js → RunDataParsedAiContent-DQYrKUHo.js} +8 -8
- package/dist/assets/RunDataParsedAiContent-DhKdg7Ux.js +24 -0
- package/dist/assets/{RunDataSearch-sHgYw75e.js → RunDataSearch-BanmtjON.js} +10 -10
- package/dist/assets/{RunDataTable-CcVCz6KL.js → RunDataTable-CLw-U45I.js} +18 -18
- package/dist/assets/{SamlOnboarding-_E1uKrqU.js → SamlOnboarding-CL7FFqOA.js} +15 -15
- package/dist/assets/{SaveButton-CKB6EQNE.js → SaveButton-DdOVpjST.js} +3 -3
- package/dist/assets/{SelectedItemsInfo-BvVqSABb.js → SelectedItemsInfo-DBuH5w0D.js} +2 -2
- package/dist/assets/{SettingsApiView-BTIamHhf.js → SettingsApiView-C0aDHviI.js} +17 -20
- package/dist/assets/{SettingsChatHubView-CcI8QRBj.js → SettingsChatHubView-xXbgxwbM.js} +19 -19
- package/dist/assets/{SettingsCommunityNodesView-DnxcG1WB.js → SettingsCommunityNodesView-BAxes_Db.js} +29 -36
- package/dist/assets/{SettingsExternalSecrets-CZeypg03.js → SettingsExternalSecrets-B6jdgfB7.js} +17 -18
- package/dist/assets/{SettingsLdapView-BocG9o4_.js → SettingsLdapView-CR2IAnRQ.js} +19 -22
- package/dist/assets/{SettingsLogStreamingView-Cb0TLdGI.js → SettingsLogStreamingView-DSRc5q9w.js} +17 -20
- package/dist/assets/{SettingsMCPView-B61X_NPm.js → SettingsMCPView-C7HQFidB.js} +136 -164
- package/dist/assets/{SettingsMCPView-CuJwNWhp.css → SettingsMCPView-DIdodQTu.css} +28 -41
- package/dist/assets/{SettingsPersonalView-DwALyVrM.js → SettingsPersonalView-DOH_Ml9N.js} +15 -16
- package/dist/assets/{SettingsSourceControl-o8jjZB6R.js → SettingsSourceControl-DH0mZaa0.js} +19 -21
- package/dist/assets/{SettingsSso-CWlyF0Ul.js → SettingsSso-CrWkteb1.js} +21 -24
- package/dist/assets/{SettingsUsageAndPlan-qLBre8L1.js → SettingsUsageAndPlan-DQzF59ve.js} +17 -19
- package/dist/assets/{SettingsUsersView-IoXkRrA3.js → SettingsUsersView-BZrQxtA7.js} +22 -25
- package/dist/assets/{SettingsView-BRggCZxl.js → SettingsView-LDjLlP2V.js} +14 -14
- package/dist/assets/{SetupTemplateFormStep-B16Nen7u.js → SetupTemplateFormStep-CwgC9pY3.js} +7 -7
- package/dist/assets/{SetupView-B_3dlp0F.js → SetupView-wJeD4wwM.js} +15 -15
- package/dist/assets/{SetupWorkflowCredentialsButton-DbpL-wd-.js → SetupWorkflowCredentialsButton-kVNSvjYZ.js} +14 -14
- package/dist/assets/{SetupWorkflowFromTemplateView-DtkJ3dhT.js → SetupWorkflowFromTemplateView-CBTduGfH.js} +21 -25
- package/dist/assets/{SeverityTag-Bdpvd3O4.js → SeverityTag-CuF3dVKd.js} +2 -2
- package/dist/assets/{SigninView-D0mRO95G.js → SigninView-DjWIkUJe.js} +16 -16
- package/dist/assets/{SignoutView-D-cEDvGt.js → SignoutView-CP6UttCg.js} +8 -8
- package/dist/assets/{SignupView-BGUF0a3y.js → SignupView-DKWZNap-.js} +15 -15
- package/dist/assets/{SkeletonAgentCard-BqWJHS47.js → SkeletonAgentCard-DcV1dSF-.js} +8 -8
- package/dist/assets/{TagsDropdown-CKHFeXgu.js → TagsDropdown-CuT_jHbX.js} +3 -3
- package/dist/assets/{TemplateCard-C1F6Sjp3.js → TemplateCard-DY1aPA-a.js} +6 -7
- package/dist/assets/{TemplateDetails-ByaDkPHZ.js → TemplateDetails-Cstu-YNP.js} +6 -7
- package/dist/assets/{TemplateList-IOK3RSuN.js → TemplateList-BfBs1Bpa.js} +5 -5
- package/dist/assets/{TemplatesCollectionView-CpjEgT9v.js → TemplatesCollectionView-DgKv-274.js} +22 -24
- package/dist/assets/{TemplatesSearchView-Ddpn7Bwp.js → TemplatesSearchView-BgdaZIha.js} +19 -21
- package/dist/assets/{TemplatesView-DRX4MxqG.js → TemplatesView-HPIEGoX2.js} +3 -3
- package/dist/assets/{TemplatesWorkflowView-DOl8Qqi3.js → TemplatesWorkflowView-3-fxkWIH.js} +23 -25
- package/dist/assets/{TestRunDetailView-TQvUYMub.js → TestRunDetailView-D9tH7Ptp.js} +19 -19
- package/dist/assets/{TimeAgo-DxwwBGgJ.js → TimeAgo-BpAJIqal.js} +3 -3
- package/dist/assets/{ToolsSelectorModal-D0Uim3wr.js → ToolsSelectorModal-DSyXV7Ag.js} +17 -18
- package/dist/assets/{TriggerPanel-Bkka_-zL.js → TriggerPanel-DDzH4j34.js} +18 -19
- package/dist/assets/{VirtualSchema-498CQIM4.js → VirtualSchema-BN0NQDyh.js} +15 -16
- package/dist/assets/VirtualSchema-rizWsPXH.js +35 -0
- package/dist/assets/{VueMarkdown-Cpmboohi.js → VueMarkdown-D7yo0t2n.js} +1 -1
- package/dist/assets/{WorkerView-D0MGMP-3.js → WorkerView-DeYRT0mS.js} +34 -41
- package/dist/assets/{WorkflowActivationErrorMessage-CQe9ZG_g.js → WorkflowActivationErrorMessage-D9ktIWO1.js} +1 -1
- package/dist/assets/{WorkflowActivator-xCBwqG20.css → WorkflowActivator-BGcCOUCH.css} +2 -2
- package/dist/assets/{WorkflowActivator-CQk3zJa2.js → WorkflowActivator-Cj1x_nLm.js} +13 -11
- package/dist/assets/{WorkflowExecutionsInfoAccordion-DrB1HwtD.js → WorkflowExecutionsInfoAccordion-DOW8-lUO.js} +11 -15
- package/dist/assets/{WorkflowExecutionsLandingPage-wZsE1MEB.js → WorkflowExecutionsLandingPage-D-k97H81.js} +19 -33
- package/dist/assets/{WorkflowExecutionsPreview-DhEx7EQF.js → WorkflowExecutionsPreview-bwSmtqxL.js} +22 -25
- package/dist/assets/{WorkflowExecutionsView-CDFxKpEl.js → WorkflowExecutionsView-BoJYR4A-.js} +50 -46
- package/dist/assets/{WorkflowExecutionsView-J4lWGYW8.css → WorkflowExecutionsView-DzHhxp4K.css} +2 -2
- package/dist/assets/{WorkflowHistory-D3BhOWlD.css → WorkflowHistory-BBHdNsOb.css} +147 -98
- package/dist/assets/{WorkflowHistory-_npGuIvZ.js → WorkflowHistory-DDwFxfgs.js} +329 -273
- package/dist/assets/WorkflowLocation-6rp_-CuW.css +164 -0
- package/dist/assets/WorkflowLocation-BcPFmw0j.js +164 -0
- package/dist/assets/{WorkflowOnboardingView-DJmpaFOM.js → WorkflowOnboardingView-CQjMFn6h.js} +8 -10
- package/dist/assets/{WorkflowPreview-CVFW6eRL.js → WorkflowPreview-C2LPnLG1.js} +4 -4
- package/dist/assets/{WorkflowTagsDropdown-Dp6YkEZ3.js → WorkflowTagsDropdown-ChfpozQB.js} +2 -2
- package/dist/assets/{WorkflowsView-B068TUtp.js → WorkflowsView-C3nCkxzz.js} +65 -84
- package/dist/assets/{_MapCache-BXj4WgHo.js → _MapCache-0zNxISSG.js} +78 -8
- package/dist/assets/{_baseOrderBy-GjkKJVvF.js → _baseOrderBy-CesQfsb9.js} +4 -4
- package/dist/assets/{_initCloneObject-GPxNDW5O.js → _initCloneObject-DrYdt_vX.js} +2 -2
- package/dist/assets/{aiTemplatesStarterCollection.store-Ca9czXOC.js → aiTemplatesStarterCollection.store-Bz4IH9Sr.js} +5 -5
- package/dist/assets/{apiKeys.store-D60Aub0Q.js → apiKeys.store-W8uXGfoe.js} +2 -2
- package/dist/assets/{assistant.store-C0GxcpwT.js → assistant.store-Cn9sEjYD.js} +6 -6
- package/dist/assets/{auth.eventBus-BD50qglP.js → auth.eventBus-D9L5FHI4.js} +1 -1
- package/dist/assets/{banners.store-COEGRZB2.js → banners.store-CRNqMmnn.js} +4 -4
- package/dist/assets/{builder.store--AJ05qsa.js → builder.store-YujiPssa.js} +5772 -157
- package/dist/assets/{chartjs.utils-BuKhcKwM.js → chartjs.utils-CoNBCTXc.js} +3 -3
- package/dist/assets/{chat.store-DwNzDu7-.js → chat.store-YbHxxnni.js} +124 -88
- package/dist/assets/{chatPanel.store-DcSNy2dM.js → chatPanel.store-DmxMXfyE.js} +17 -11
- package/dist/assets/{col-D5wesaQA.js → col-oSGwUVsR.js} +1 -2
- package/dist/assets/{constants-B6Jp7SZD.js → constants-D52YoOSp.js} +13 -13
- package/dist/assets/{constants-qk3hx0l8.js → constants-DLTaaipl.js} +2 -1
- package/dist/assets/{core-CiWhevuy.js → core-BbiIkN91.js} +1 -1
- package/dist/assets/{dataTable.store-DjA0BZm0.js → dataTable.store-CUsh5p9b.js} +3 -3
- package/dist/assets/{date-picker-ZPBpyB3m.js → date-picker-DeUybCvv.js} +2 -2
- package/dist/assets/{dateFormatter-DqsBbNBt.js → dateFormatter-DzJiM44k.js} +2 -2
- package/dist/assets/{dialog-DJAwPy6j.js → dialog-C4MrWHj5.js} +3 -3
- package/dist/assets/{dist-JIm44DPf.js → dist-DP_8je0B.js} +1 -1
- package/dist/assets/{en-b3uD8cvU.js → en-CF30SCh2.js} +11 -1
- package/dist/assets/en-DyO2pPiC.js +2 -0
- package/dist/assets/{es-BskBLtZB.js → es-DlTgUi2w.js} +1 -1
- package/dist/assets/{evaluation.constants-CE1pFRXt.js → evaluation.constants-0Qe9Ioy2.js} +3 -3
- package/dist/assets/{executions.store-Di5hWapE.js → executions.store-Dodf4hZt.js} +2 -2
- package/dist/assets/{externalSecrets.ee.store-DRAvYvQH.js → externalSecrets.ee.store-CRomIb5E.js} +3 -3
- package/dist/assets/{folders.store-CHmc_cIa.js → folders.store-Bld2a-oS.js} +3 -3
- package/dist/assets/{index-BPWWnUZx.js → index-BFbfC2Dj.js} +478 -172
- package/dist/assets/{index-BkLJ6ICr.css → index-Bl6XoGDE.css} +155 -24
- package/dist/assets/{insights.constants-B7y0cvTb.js → insights.constants-C8GITe6H.js} +1 -1
- package/dist/assets/{insights.store-CUBXm-KC.js → insights.store-CwovPTtG.js} +5 -5
- package/dist/assets/{insights.utils-Dc4VSauh.js → insights.utils-BjffJfoC.js} +4 -4
- package/dist/assets/{isEmpty-B9tt1d3-.js → isEmpty-OfTBXDAe.js} +26 -27
- package/dist/assets/{languageModules-CLe6cIYW.js → languageModules-D_uyjb6R.js} +1 -1
- package/dist/assets/{logStreaming.store-Cv3Kx61Q.js → logStreaming.store-fF1gjMD8.js} +2 -2
- package/dist/assets/mcp.constants-DQPD3Ntp.js +10 -0
- package/dist/assets/{mcp.store-BY003P3O.js → mcp.store-CaNRXC4L.js} +14 -3
- package/dist/assets/{merge-BfSiz1ty.js → merge-BmWPLD5Q.js} +1 -1
- package/dist/assets/{nodeCreator.store-CPxLvRpA.js → nodeCreator.store-CnQC3Thy.js} +11 -16
- package/dist/assets/{nodeIcon-CwI12n1T.js → nodeIcon-Bcr-G7rB.js} +3 -3
- package/dist/assets/{nodeTransforms-E21OvGFn.js → nodeTransforms-DK79e95H.js} +2 -2
- package/dist/assets/{orderBy-BD202wCl.js → orderBy-YGC4g6w9.js} +2 -2
- package/dist/assets/{personalizedTemplatesV3.store-Bzf1Cn2b.js → personalizedTemplatesV3.store-BKxUzmKZ.js} +3 -5
- package/dist/assets/{pickBy-DhNfLbj0.js → pickBy-BnWwuV2u.js} +2 -2
- package/dist/assets/{radio-_dKLhwOP.js → radio-DyB--77Q.js} +1 -2
- package/dist/assets/{readyToRun.store-2jju4pRU.js → readyToRun.store-BRvUlRSD.js} +6 -7
- package/dist/assets/{readyToRunWorkflows.store-Bx_siYQA.js → readyToRunWorkflows.store-BNsVPNB9.js} +5 -6
- package/dist/assets/{roles.store-CfxqweOK.js → roles.store-pbRRxt0E.js} +3 -3
- package/dist/assets/{router-WNnUej-x.js → router-nTea-Urj.js} +111 -90
- package/dist/assets/{sanitize-html-Cft-jOcY.js → sanitize-html-Cc45ZKm8.js} +1 -1
- package/dist/assets/{schemaPreview.store-Do_fvTej.js → schemaPreview.store-D6CQiOeI.js} +3 -3
- package/dist/assets/{semver-CJFCetEf.js → semver-CrR9VADA.js} +2 -2
- package/dist/assets/{sourceControl.eventBus-Cvxq2KVt.js → sourceControl.eventBus-KIeXsiU7.js} +1 -1
- package/dist/assets/{src-DS0bffpn.css → src-CWWagUhy.css} +729 -81
- package/dist/assets/{src-RwnQoRPP.js → src-DTY1hJHs.js} +1675 -3573
- package/dist/assets/{sso.store-BfZ0zC0E.js → sso.store-Di00dtDC.js} +2 -2
- package/dist/assets/{table-8YZ1ENjX.js → table-VmuGzK7A.js} +3 -3
- package/dist/assets/{templateActions-Cs0Obyiy.js → templateActions-DIWkQgOn.js} +5 -5
- package/dist/assets/{templateTransforms-wuELQNpD.js → templateTransforms-BYfEDiSK.js} +1 -1
- package/dist/assets/{truncate-BmR9EyjG.js → truncate-ByNK2lRy.js} +2266 -27
- package/dist/assets/{uniqBy-DbOFAEPx.js → uniqBy-CJFaA-UD.js} +1 -1
- package/dist/assets/{usage.store-BQa0qHOj.js → usage.store-BY4g7MNp.js} +2 -2
- package/dist/assets/{useActions-CMJSyR7r.js → useActions-CBZGt3Kf.js} +4 -4
- package/dist/assets/{useBeforeUnload-DpKXUfN8.js → useBeforeUnload-CQAM_lAW.js} +3 -3
- package/dist/assets/{useCanvasMapping-BqapVTrs.js → useCanvasMapping-C0deX2fv.js} +35 -32
- package/dist/assets/{useCanvasOperations-Biw6mnUM.js → useCanvasOperations-BQyHvbXi.js} +140 -28
- package/dist/assets/{useClipboard-DvY5RseI.js → useClipboard-CqFyEHaX.js} +2 -2
- package/dist/assets/{useCommandBar-UBYl6Lds.js → useCommandBar-I9Rh00u6.js} +26 -30
- package/dist/assets/{useCredentialResolvers-PAhMLRo2.js → useCredentialResolvers-CaMKldsZ.js} +4 -5
- package/dist/assets/{useCustomAgent-BRGYGAAN.js → useCustomAgent-DLwpqJcm.js} +25 -15
- package/dist/assets/{useDebounce-Cisb25yt.js → useDebounce-DGSOfe85.js} +2 -2
- package/dist/assets/{useExecutionData-OVx1QXVF.js → useExecutionData-BocEX1BJ.js} +1 -1
- package/dist/assets/{useExecutionDebugging-B8KvDhkA.js → useExecutionDebugging-CsWzUsUi.js} +6 -7
- package/dist/assets/{useExecutionHelpers-DkOSl_iJ.js → useExecutionHelpers-BWgzEc86.js} +5 -5
- package/dist/assets/{useImportCurlCommand-3YGPoLWh.js → useImportCurlCommand-DGIgJik0.js} +9 -9
- package/dist/assets/{useKeybindings-BcvGBvra.js → useKeybindings-DD-ZZkmj.js} +4 -4
- package/dist/assets/{useLogsTreeExpand-CbLhbpHd.js → useLogsTreeExpand-BQmkJc3D.js} +13 -13
- package/dist/assets/{useMcp-1Dma_uQx.js → useMcp-CtPU_6al.js} +2 -2
- package/dist/assets/{usePageRedirectionHelper-D0ob2A1J.js → usePageRedirectionHelper-TzgTKFxt.js} +3 -4
- package/dist/assets/{usePinnedData-B3-uxBtk.js → usePinnedData-Dztv0dCp.js} +4 -4
- package/dist/assets/{usePushConnection-BA2hhsGP.js → usePushConnection-Ce3EppRV.js} +12 -13
- package/dist/assets/{useRecentResources-C_Rg8cei.js → useRecentResources-fniP3oOE.js} +9 -8
- package/dist/assets/{useRunWorkflow-nBr2MJkO.js → useRunWorkflow-CJgkc0Iq.js} +9 -10
- package/dist/assets/{useSettingsItems-B7GpfNq3.js → useSettingsItems-Ds8JJZE_.js} +4 -4
- package/dist/assets/{useTelemetryContext-DHoBfjOQ.js → useTelemetryContext-Ds7-s6ZC.js} +1 -1
- package/dist/assets/{useWorkflowActivate-B3DYQS1P.js → useWorkflowActivate-DocAQ9u8.js} +7 -8
- package/dist/assets/{useWorkflowsCache-BNSc43ak.js → useWorkflowsCache-BXhjK2ZF.js} +1 -1
- package/dist/assets/{userRoleProvisioning.store-DAStBpkv.js → userRoleProvisioning.store-DNmA1ftX.js} +2 -2
- package/dist/assets/utils-C2GPI2gK.js +54 -0
- package/dist/assets/{versions.store-BIIVPCEy.js → versions.store-qQUmfjg3.js} +3 -3
- package/dist/index.html +109 -119
- package/package.json +1 -1
- package/dist/assets/ChatSidebar-DW6c9Blv.js +0 -555
- package/dist/assets/CollectionParameter-Ci_0m1Vk.js +0 -58
- package/dist/assets/DemoFooter-DuvjbD1c.js +0 -71
- package/dist/assets/FileSaver.min--9uV1QmK.js +0 -72
- package/dist/assets/LogsPanel-DZfIzuWL.js +0 -58
- package/dist/assets/ModalDrawer-DJsD4EIc.js +0 -277
- package/dist/assets/NodeIcon-eaW3atZy.css +0 -125
- package/dist/assets/RunDataParsedAiContent-DuwV5rNK.js +0 -24
- package/dist/assets/VirtualSchema-B-AQEHOc.js +0 -42
- package/dist/assets/cloudPlan.store-Dad6qPdn.js +0 -185
- package/dist/assets/en-BD3FHSTF.js +0 -2
- package/dist/assets/focusPanel.store-C5r79FXL.js +0 -208
- package/dist/assets/mcp.constants-svQUbNx5.js +0 -8
- package/dist/assets/npsSurvey.store-DF2xZcCA.js +0 -98
- package/dist/assets/overlay-Bil1NnPh.js +0 -165
- package/dist/assets/templates.store-C3DEfML8.js +0 -3915
- package/dist/assets/useChatHubSidebarState-CZrP-mNo.js +0 -29
- package/dist/assets/useMessage-DIJ5qCTv.js +0 -610
- package/dist/assets/useWorkflowSaving-B1uc1ePR.js +0 -229
- package/dist/assets/utils-BLHsa_NJ.js +0 -18
- /package/dist/assets/{AnimatedSpinner-g6zev3_N.js → AnimatedSpinner-wiGFgffA.js} +0 -0
- /package/dist/assets/{CalendarDate-B-JEhNYg.js → CalendarDate-zWqgZMlk.js} +0 -0
- /package/dist/assets/{ChatFile-8ik4bOn3.js → ChatFile-cnNK8Kf8.js} +0 -0
- /package/dist/assets/{ChatSidebarOpener-CxM-3LAt.css → ChatLayout-CxM-3LAt.css} +0 -0
- /package/dist/assets/{ChatPersonalAgentsView-BBfu-g98.css → ChatWorkflowAgentsView-BBfu-g98.css} +0 -0
- /package/dist/assets/{PageViewLayout-B889Bfwc.js → PageViewLayout-BHSzOio1.js} +0 -0
- /package/dist/assets/{TextWithHighlights-C4QSPTGM.js → TextWithHighlights-DjzuDrgO.js} +0 -0
- /package/dist/assets/{buttons.esm-CZxEX89d.js → buttons.esm-CT4flsfB.js} +0 -0
- /package/dist/assets/{chart-BxWK2ZOo.js → chart-CE3HWIkr.js} +0 -0
- /package/dist/assets/{core-CXk6RNMV.js → core-6W4wWNc1.js} +0 -0
- /package/dist/assets/{dateformat-hG8NERse.js → dateformat-CM9k0--B.js} +0 -0
- /package/dist/assets/{exports-CdZcr9ah.js → exports-hpMZaOPT.js} +0 -0
- /package/dist/assets/{fileUtils-D3GQ2UWQ.js → fileUtils-D_SiS8no.js} +0 -0
- /package/dist/assets/{path-browserify-BgjP7RyT.js → path-browserify-BtCDmZ3_.js} +0 -0
- /package/dist/assets/{retry-CMAFrhVi.js → retry-dP46utx2.js} +0 -0
- /package/dist/assets/{smartDecimal-Bi50OE4b.js → smartDecimal-DK6-_VSq.js} +0 -0
- /package/dist/assets/{sortByProperty-DAqnDMg7.js → sortByProperty-CV1aCzkS.js} +0 -0
- /package/dist/assets/{useIntersectionObserver-BZ6Jqnr3.js → useIntersectionObserver-DXKoRNFj.js} +0 -0
- /package/dist/assets/{vue-0rlD32wK.js → vue-Dg_43WEg.js} +0 -0
- /package/dist/assets/{vue-json-pretty-B9qWbmOF.js → vue-json-pretty-DGKuDe33.js} +0 -0
- /package/dist/assets/{xml-DSIt30t0.js → xml-B6veOr9z.js} +0 -0
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { C as computed } from "./vue.runtime.esm-bundler-tP5dCd7J.js";
|
|
2
|
-
import { M as useMediaQuery, j as useLocalStorage } from "./_MapCache-BXj4WgHo.js";
|
|
3
|
-
import { Wi as useUIStore, dr as useUsersStore } from "./builder.store--AJ05qsa.js";
|
|
4
|
-
import { Go as CHAT_HUB_SIDE_MENU_DRAWER_MODAL_KEY, js as LOCAL_STORAGE_CHAT_HUB_STATIC_SIDEBAR } from "./constants-B6Jp7SZD.js";
|
|
5
|
-
import { d as MOBILE_MEDIA_QUERY } from "./constants-qk3hx0l8.js";
|
|
6
|
-
function useChatHubSidebarState() {
|
|
7
|
-
const isMobileDevice = useMediaQuery(MOBILE_MEDIA_QUERY);
|
|
8
|
-
const uiStore = useUIStore();
|
|
9
|
-
const isStatic = useLocalStorage(LOCAL_STORAGE_CHAT_HUB_STATIC_SIDEBAR(useUsersStore().currentUserId ?? "anonymous"), !isMobileDevice.value, { writeDefaults: false });
|
|
10
|
-
const canBeStatic = computed(() => !isMobileDevice.value);
|
|
11
|
-
function toggleOpen(value) {
|
|
12
|
-
const isOpen = !!uiStore.isModalActiveById[CHAT_HUB_SIDE_MENU_DRAWER_MODAL_KEY];
|
|
13
|
-
if (value ?? !isOpen) uiStore.openModal(CHAT_HUB_SIDE_MENU_DRAWER_MODAL_KEY);
|
|
14
|
-
else uiStore.closeModal(CHAT_HUB_SIDE_MENU_DRAWER_MODAL_KEY);
|
|
15
|
-
}
|
|
16
|
-
function toggleStatic(value) {
|
|
17
|
-
const newValue = value ?? !isStatic.value;
|
|
18
|
-
isStatic.value = newValue;
|
|
19
|
-
toggleOpen(newValue);
|
|
20
|
-
}
|
|
21
|
-
return {
|
|
22
|
-
canBeStatic,
|
|
23
|
-
isStatic: computed(() => canBeStatic.value && isStatic.value),
|
|
24
|
-
isCollapsed: computed(() => !isStatic.value && uiStore.isModalActiveById["chatHubSideMenuDrawer"] !== true),
|
|
25
|
-
toggleOpen,
|
|
26
|
-
toggleStatic
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
export { useChatHubSidebarState as t };
|
|
@@ -1,610 +0,0 @@
|
|
|
1
|
-
import { $t as hasOwn, C as computed, Cn as toDisplayString, D as createElementBlock, E as createCommentVNode, G as nextTick, Ht as toRefs, It as ref, J as onBeforeUnmount, M as createVNode, P as defineComponent, Pt as reactive, T as createBlock, V as isVNode, Z as onMounted, _t as watch, an as isFunction, at as renderSlot, bn as normalizeStyle, bt as withCtx, cn as isObject, ct as resolveDynamicComponent, et as openBlock, h as withModifiers, j as createTextVNode, m as withKeys, mn as isString, n as Transition, o as render, ot as resolveComponent, p as vShow, tn as init_shared_esm_bundler, vn as normalizeClass, w as createBaseVNode, xt as withDirectives } from "./vue.runtime.esm-bundler-tP5dCd7J.js";
|
|
2
|
-
import { $t as useId, Vt as ElButton, Wt as ElFocusTrap, an as isValidComponentSize, qt as ElInput, zn as obtainAllFocusableElements } from "./src-RwnQoRPP.js";
|
|
3
|
-
import { D as _export_sfc, Dt as debugWarn, E as ElIcon, G as TypeComponents, K as TypeComponentsMap, Lt as isUndefined, O as useGlobalComponentSettings, Pt as isElement, bn as isClient, z as EVENT_CODE } from "./truncate-BmR9EyjG.js";
|
|
4
|
-
import { i as useDraggable, n as useSameTarget, r as useLockscreen, t as ElOverlay } from "./overlay-Bil1NnPh.js";
|
|
5
|
-
import { d as sanitizeIfString } from "./builder.store--AJ05qsa.js";
|
|
6
|
-
var FOCUSABLE_CHILDREN = "_trap-focus-children";
|
|
7
|
-
var FOCUS_STACK = [];
|
|
8
|
-
var FOCUS_HANDLER = (e) => {
|
|
9
|
-
if (FOCUS_STACK.length === 0) return;
|
|
10
|
-
const focusableElement = FOCUS_STACK[FOCUS_STACK.length - 1][FOCUSABLE_CHILDREN];
|
|
11
|
-
if (focusableElement.length > 0 && e.code === EVENT_CODE.tab) {
|
|
12
|
-
if (focusableElement.length === 1) {
|
|
13
|
-
e.preventDefault();
|
|
14
|
-
if (document.activeElement !== focusableElement[0]) focusableElement[0].focus();
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
const goingBackward = e.shiftKey;
|
|
18
|
-
const isFirst = e.target === focusableElement[0];
|
|
19
|
-
const isLast = e.target === focusableElement[focusableElement.length - 1];
|
|
20
|
-
if (isFirst && goingBackward) {
|
|
21
|
-
e.preventDefault();
|
|
22
|
-
focusableElement[focusableElement.length - 1].focus();
|
|
23
|
-
}
|
|
24
|
-
if (isLast && !goingBackward) {
|
|
25
|
-
e.preventDefault();
|
|
26
|
-
focusableElement[0].focus();
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
var _sfc_main = defineComponent({
|
|
31
|
-
name: "ElMessageBox",
|
|
32
|
-
directives: { TrapFocus: {
|
|
33
|
-
beforeMount(el) {
|
|
34
|
-
el[FOCUSABLE_CHILDREN] = obtainAllFocusableElements(el);
|
|
35
|
-
FOCUS_STACK.push(el);
|
|
36
|
-
if (FOCUS_STACK.length <= 1) document.addEventListener("keydown", FOCUS_HANDLER);
|
|
37
|
-
},
|
|
38
|
-
updated(el) {
|
|
39
|
-
nextTick(() => {
|
|
40
|
-
el[FOCUSABLE_CHILDREN] = obtainAllFocusableElements(el);
|
|
41
|
-
});
|
|
42
|
-
},
|
|
43
|
-
unmounted() {
|
|
44
|
-
FOCUS_STACK.shift();
|
|
45
|
-
if (FOCUS_STACK.length === 0) document.removeEventListener("keydown", FOCUS_HANDLER);
|
|
46
|
-
}
|
|
47
|
-
} },
|
|
48
|
-
components: {
|
|
49
|
-
ElButton,
|
|
50
|
-
ElFocusTrap,
|
|
51
|
-
ElInput,
|
|
52
|
-
ElOverlay,
|
|
53
|
-
ElIcon,
|
|
54
|
-
...TypeComponents
|
|
55
|
-
},
|
|
56
|
-
inheritAttrs: false,
|
|
57
|
-
props: {
|
|
58
|
-
buttonSize: {
|
|
59
|
-
type: String,
|
|
60
|
-
validator: isValidComponentSize
|
|
61
|
-
},
|
|
62
|
-
modal: {
|
|
63
|
-
type: Boolean,
|
|
64
|
-
default: true
|
|
65
|
-
},
|
|
66
|
-
lockScroll: {
|
|
67
|
-
type: Boolean,
|
|
68
|
-
default: true
|
|
69
|
-
},
|
|
70
|
-
showClose: {
|
|
71
|
-
type: Boolean,
|
|
72
|
-
default: true
|
|
73
|
-
},
|
|
74
|
-
closeOnClickModal: {
|
|
75
|
-
type: Boolean,
|
|
76
|
-
default: true
|
|
77
|
-
},
|
|
78
|
-
closeOnPressEscape: {
|
|
79
|
-
type: Boolean,
|
|
80
|
-
default: true
|
|
81
|
-
},
|
|
82
|
-
closeOnHashChange: {
|
|
83
|
-
type: Boolean,
|
|
84
|
-
default: true
|
|
85
|
-
},
|
|
86
|
-
center: Boolean,
|
|
87
|
-
draggable: Boolean,
|
|
88
|
-
roundButton: {
|
|
89
|
-
default: false,
|
|
90
|
-
type: Boolean
|
|
91
|
-
},
|
|
92
|
-
container: {
|
|
93
|
-
type: String,
|
|
94
|
-
default: "body"
|
|
95
|
-
},
|
|
96
|
-
boxType: {
|
|
97
|
-
type: String,
|
|
98
|
-
default: ""
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
emits: ["vanish", "action"],
|
|
102
|
-
setup(props, { emit }) {
|
|
103
|
-
const { locale, zIndex, ns, size: btnSize } = useGlobalComponentSettings("message-box", computed(() => props.buttonSize));
|
|
104
|
-
const { t } = locale;
|
|
105
|
-
const { nextZIndex } = zIndex;
|
|
106
|
-
const visible = ref(false);
|
|
107
|
-
const state = reactive({
|
|
108
|
-
autofocus: true,
|
|
109
|
-
beforeClose: null,
|
|
110
|
-
callback: null,
|
|
111
|
-
cancelButtonText: "",
|
|
112
|
-
cancelButtonClass: "",
|
|
113
|
-
confirmButtonText: "",
|
|
114
|
-
confirmButtonClass: "",
|
|
115
|
-
customClass: "",
|
|
116
|
-
customStyle: {},
|
|
117
|
-
dangerouslyUseHTMLString: false,
|
|
118
|
-
distinguishCancelAndClose: false,
|
|
119
|
-
icon: "",
|
|
120
|
-
inputPattern: null,
|
|
121
|
-
inputPlaceholder: "",
|
|
122
|
-
inputType: "text",
|
|
123
|
-
inputValue: null,
|
|
124
|
-
inputValidator: null,
|
|
125
|
-
inputErrorMessage: "",
|
|
126
|
-
message: null,
|
|
127
|
-
modalFade: true,
|
|
128
|
-
modalClass: "",
|
|
129
|
-
showCancelButton: false,
|
|
130
|
-
showConfirmButton: true,
|
|
131
|
-
type: "",
|
|
132
|
-
title: void 0,
|
|
133
|
-
showInput: false,
|
|
134
|
-
action: "",
|
|
135
|
-
confirmButtonLoading: false,
|
|
136
|
-
cancelButtonLoading: false,
|
|
137
|
-
confirmButtonDisabled: false,
|
|
138
|
-
editorErrorMessage: "",
|
|
139
|
-
validateError: false,
|
|
140
|
-
zIndex: nextZIndex()
|
|
141
|
-
});
|
|
142
|
-
const typeClass = computed(() => {
|
|
143
|
-
const type = state.type;
|
|
144
|
-
return { [ns.bm("icon", type)]: type && TypeComponentsMap[type] };
|
|
145
|
-
});
|
|
146
|
-
const contentId = useId();
|
|
147
|
-
const inputId = useId();
|
|
148
|
-
const iconComponent = computed(() => state.icon || TypeComponentsMap[state.type] || "");
|
|
149
|
-
const hasMessage = computed(() => !!state.message);
|
|
150
|
-
const rootRef = ref();
|
|
151
|
-
const headerRef = ref();
|
|
152
|
-
const focusStartRef = ref();
|
|
153
|
-
const inputRef = ref();
|
|
154
|
-
const confirmRef = ref();
|
|
155
|
-
const confirmButtonClasses = computed(() => state.confirmButtonClass);
|
|
156
|
-
watch(() => state.inputValue, async (val) => {
|
|
157
|
-
await nextTick();
|
|
158
|
-
if (props.boxType === "prompt" && val !== null) validate();
|
|
159
|
-
}, { immediate: true });
|
|
160
|
-
watch(() => visible.value, (val) => {
|
|
161
|
-
var _a, _b;
|
|
162
|
-
if (val) {
|
|
163
|
-
if (props.boxType !== "prompt") if (state.autofocus) focusStartRef.value = (_b = (_a = confirmRef.value) == null ? void 0 : _a.$el) != null ? _b : rootRef.value;
|
|
164
|
-
else focusStartRef.value = rootRef.value;
|
|
165
|
-
state.zIndex = nextZIndex();
|
|
166
|
-
}
|
|
167
|
-
if (props.boxType !== "prompt") return;
|
|
168
|
-
if (val) nextTick().then(() => {
|
|
169
|
-
var _a2;
|
|
170
|
-
if (inputRef.value && inputRef.value.$el) if (state.autofocus) focusStartRef.value = (_a2 = getInputElement()) != null ? _a2 : rootRef.value;
|
|
171
|
-
else focusStartRef.value = rootRef.value;
|
|
172
|
-
});
|
|
173
|
-
else {
|
|
174
|
-
state.editorErrorMessage = "";
|
|
175
|
-
state.validateError = false;
|
|
176
|
-
}
|
|
177
|
-
});
|
|
178
|
-
useDraggable(rootRef, headerRef, computed(() => props.draggable));
|
|
179
|
-
onMounted(async () => {
|
|
180
|
-
await nextTick();
|
|
181
|
-
if (props.closeOnHashChange) window.addEventListener("hashchange", doClose);
|
|
182
|
-
});
|
|
183
|
-
onBeforeUnmount(() => {
|
|
184
|
-
if (props.closeOnHashChange) window.removeEventListener("hashchange", doClose);
|
|
185
|
-
});
|
|
186
|
-
function doClose() {
|
|
187
|
-
if (!visible.value) return;
|
|
188
|
-
visible.value = false;
|
|
189
|
-
nextTick(() => {
|
|
190
|
-
if (state.action) emit("action", state.action);
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
const handleWrapperClick = () => {
|
|
194
|
-
if (props.closeOnClickModal) handleAction(state.distinguishCancelAndClose ? "close" : "cancel");
|
|
195
|
-
};
|
|
196
|
-
const overlayEvent = useSameTarget(handleWrapperClick);
|
|
197
|
-
const handleInputEnter = (e) => {
|
|
198
|
-
if (state.inputType !== "textarea") {
|
|
199
|
-
e.preventDefault();
|
|
200
|
-
return handleAction("confirm");
|
|
201
|
-
}
|
|
202
|
-
};
|
|
203
|
-
const handleAction = (action) => {
|
|
204
|
-
var _a;
|
|
205
|
-
if (props.boxType === "prompt" && action === "confirm" && !validate()) return;
|
|
206
|
-
state.action = action;
|
|
207
|
-
if (state.beforeClose) (_a = state.beforeClose) == null || _a.call(state, action, state, doClose);
|
|
208
|
-
else doClose();
|
|
209
|
-
};
|
|
210
|
-
const validate = () => {
|
|
211
|
-
if (props.boxType === "prompt") {
|
|
212
|
-
const inputPattern = state.inputPattern;
|
|
213
|
-
if (inputPattern && !inputPattern.test(state.inputValue || "")) {
|
|
214
|
-
state.editorErrorMessage = state.inputErrorMessage || t("el.messagebox.error");
|
|
215
|
-
state.validateError = true;
|
|
216
|
-
return false;
|
|
217
|
-
}
|
|
218
|
-
const inputValidator = state.inputValidator;
|
|
219
|
-
if (typeof inputValidator === "function") {
|
|
220
|
-
const validateResult = inputValidator(state.inputValue);
|
|
221
|
-
if (validateResult === false) {
|
|
222
|
-
state.editorErrorMessage = state.inputErrorMessage || t("el.messagebox.error");
|
|
223
|
-
state.validateError = true;
|
|
224
|
-
return false;
|
|
225
|
-
}
|
|
226
|
-
if (typeof validateResult === "string") {
|
|
227
|
-
state.editorErrorMessage = validateResult;
|
|
228
|
-
state.validateError = true;
|
|
229
|
-
return false;
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
state.editorErrorMessage = "";
|
|
234
|
-
state.validateError = false;
|
|
235
|
-
return true;
|
|
236
|
-
};
|
|
237
|
-
const getInputElement = () => {
|
|
238
|
-
const inputRefs = inputRef.value.$refs;
|
|
239
|
-
return inputRefs.input || inputRefs.textarea;
|
|
240
|
-
};
|
|
241
|
-
const handleClose = () => {
|
|
242
|
-
handleAction("close");
|
|
243
|
-
};
|
|
244
|
-
const onCloseRequested = () => {
|
|
245
|
-
if (props.closeOnPressEscape) handleClose();
|
|
246
|
-
};
|
|
247
|
-
if (props.lockScroll) useLockscreen(visible);
|
|
248
|
-
return {
|
|
249
|
-
...toRefs(state),
|
|
250
|
-
ns,
|
|
251
|
-
overlayEvent,
|
|
252
|
-
visible,
|
|
253
|
-
hasMessage,
|
|
254
|
-
typeClass,
|
|
255
|
-
contentId,
|
|
256
|
-
inputId,
|
|
257
|
-
btnSize,
|
|
258
|
-
iconComponent,
|
|
259
|
-
confirmButtonClasses,
|
|
260
|
-
rootRef,
|
|
261
|
-
focusStartRef,
|
|
262
|
-
headerRef,
|
|
263
|
-
inputRef,
|
|
264
|
-
confirmRef,
|
|
265
|
-
doClose,
|
|
266
|
-
handleClose,
|
|
267
|
-
onCloseRequested,
|
|
268
|
-
handleWrapperClick,
|
|
269
|
-
handleInputEnter,
|
|
270
|
-
handleAction,
|
|
271
|
-
t
|
|
272
|
-
};
|
|
273
|
-
}
|
|
274
|
-
});
|
|
275
|
-
var _hoisted_1 = ["aria-label", "aria-describedby"];
|
|
276
|
-
var _hoisted_2 = ["aria-label"];
|
|
277
|
-
var _hoisted_3 = ["id"];
|
|
278
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
279
|
-
const _component_el_icon = resolveComponent("el-icon");
|
|
280
|
-
const _component_close = resolveComponent("close");
|
|
281
|
-
const _component_el_input = resolveComponent("el-input");
|
|
282
|
-
const _component_el_button = resolveComponent("el-button");
|
|
283
|
-
const _component_el_focus_trap = resolveComponent("el-focus-trap");
|
|
284
|
-
const _component_el_overlay = resolveComponent("el-overlay");
|
|
285
|
-
return openBlock(), createBlock(Transition, {
|
|
286
|
-
name: "fade-in-linear",
|
|
287
|
-
onAfterLeave: _cache[11] || (_cache[11] = ($event) => _ctx.$emit("vanish")),
|
|
288
|
-
persisted: ""
|
|
289
|
-
}, {
|
|
290
|
-
default: withCtx(() => [withDirectives(createVNode(_component_el_overlay, {
|
|
291
|
-
"z-index": _ctx.zIndex,
|
|
292
|
-
"overlay-class": [_ctx.ns.is("message-box"), _ctx.modalClass],
|
|
293
|
-
mask: _ctx.modal
|
|
294
|
-
}, {
|
|
295
|
-
default: withCtx(() => [createBaseVNode("div", {
|
|
296
|
-
role: "dialog",
|
|
297
|
-
"aria-label": _ctx.title,
|
|
298
|
-
"aria-modal": "true",
|
|
299
|
-
"aria-describedby": !_ctx.showInput ? _ctx.contentId : void 0,
|
|
300
|
-
class: normalizeClass(`${_ctx.ns.namespace.value}-overlay-message-box`),
|
|
301
|
-
onClick: _cache[8] || (_cache[8] = (...args) => _ctx.overlayEvent.onClick && _ctx.overlayEvent.onClick(...args)),
|
|
302
|
-
onMousedown: _cache[9] || (_cache[9] = (...args) => _ctx.overlayEvent.onMousedown && _ctx.overlayEvent.onMousedown(...args)),
|
|
303
|
-
onMouseup: _cache[10] || (_cache[10] = (...args) => _ctx.overlayEvent.onMouseup && _ctx.overlayEvent.onMouseup(...args))
|
|
304
|
-
}, [createVNode(_component_el_focus_trap, {
|
|
305
|
-
loop: "",
|
|
306
|
-
trapped: _ctx.visible,
|
|
307
|
-
"focus-trap-el": _ctx.rootRef,
|
|
308
|
-
"focus-start-el": _ctx.focusStartRef,
|
|
309
|
-
onReleaseRequested: _ctx.onCloseRequested
|
|
310
|
-
}, {
|
|
311
|
-
default: withCtx(() => [createBaseVNode("div", {
|
|
312
|
-
ref: "rootRef",
|
|
313
|
-
class: normalizeClass([
|
|
314
|
-
_ctx.ns.b(),
|
|
315
|
-
_ctx.customClass,
|
|
316
|
-
_ctx.ns.is("draggable", _ctx.draggable),
|
|
317
|
-
{ [_ctx.ns.m("center")]: _ctx.center }
|
|
318
|
-
]),
|
|
319
|
-
style: normalizeStyle(_ctx.customStyle),
|
|
320
|
-
tabindex: "-1",
|
|
321
|
-
onClick: _cache[7] || (_cache[7] = withModifiers(() => {}, ["stop"]))
|
|
322
|
-
}, [
|
|
323
|
-
_ctx.title !== null && _ctx.title !== void 0 ? (openBlock(), createElementBlock("div", {
|
|
324
|
-
key: 0,
|
|
325
|
-
ref: "headerRef",
|
|
326
|
-
class: normalizeClass(_ctx.ns.e("header"))
|
|
327
|
-
}, [createBaseVNode("div", { class: normalizeClass(_ctx.ns.e("title")) }, [_ctx.iconComponent && _ctx.center ? (openBlock(), createBlock(_component_el_icon, {
|
|
328
|
-
key: 0,
|
|
329
|
-
class: normalizeClass([_ctx.ns.e("status"), _ctx.typeClass])
|
|
330
|
-
}, {
|
|
331
|
-
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(_ctx.iconComponent)))]),
|
|
332
|
-
_: 1
|
|
333
|
-
}, 8, ["class"])) : createCommentVNode("v-if", true), createBaseVNode("span", null, toDisplayString(_ctx.title), 1)], 2), _ctx.showClose ? (openBlock(), createElementBlock("button", {
|
|
334
|
-
key: 0,
|
|
335
|
-
type: "button",
|
|
336
|
-
class: normalizeClass(_ctx.ns.e("headerbtn")),
|
|
337
|
-
"aria-label": _ctx.t("el.messagebox.close"),
|
|
338
|
-
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.handleAction(_ctx.distinguishCancelAndClose ? "close" : "cancel")),
|
|
339
|
-
onKeydown: _cache[1] || (_cache[1] = withKeys(withModifiers(($event) => _ctx.handleAction(_ctx.distinguishCancelAndClose ? "close" : "cancel"), ["prevent"]), ["enter"]))
|
|
340
|
-
}, [createVNode(_component_el_icon, { class: normalizeClass(_ctx.ns.e("close")) }, {
|
|
341
|
-
default: withCtx(() => [createVNode(_component_close)]),
|
|
342
|
-
_: 1
|
|
343
|
-
}, 8, ["class"])], 42, _hoisted_2)) : createCommentVNode("v-if", true)], 2)) : createCommentVNode("v-if", true),
|
|
344
|
-
createBaseVNode("div", {
|
|
345
|
-
id: _ctx.contentId,
|
|
346
|
-
class: normalizeClass(_ctx.ns.e("content"))
|
|
347
|
-
}, [createBaseVNode("div", { class: normalizeClass(_ctx.ns.e("container")) }, [_ctx.iconComponent && !_ctx.center && _ctx.hasMessage ? (openBlock(), createBlock(_component_el_icon, {
|
|
348
|
-
key: 0,
|
|
349
|
-
class: normalizeClass([_ctx.ns.e("status"), _ctx.typeClass])
|
|
350
|
-
}, {
|
|
351
|
-
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(_ctx.iconComponent)))]),
|
|
352
|
-
_: 1
|
|
353
|
-
}, 8, ["class"])) : createCommentVNode("v-if", true), _ctx.hasMessage ? (openBlock(), createElementBlock("div", {
|
|
354
|
-
key: 1,
|
|
355
|
-
class: normalizeClass(_ctx.ns.e("message"))
|
|
356
|
-
}, [renderSlot(_ctx.$slots, "default", {}, () => [!_ctx.dangerouslyUseHTMLString ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.showInput ? "label" : "p"), {
|
|
357
|
-
key: 0,
|
|
358
|
-
for: _ctx.showInput ? _ctx.inputId : void 0
|
|
359
|
-
}, {
|
|
360
|
-
default: withCtx(() => [createTextVNode(toDisplayString(!_ctx.dangerouslyUseHTMLString ? _ctx.message : ""), 1)]),
|
|
361
|
-
_: 1
|
|
362
|
-
}, 8, ["for"])) : (openBlock(), createBlock(resolveDynamicComponent(_ctx.showInput ? "label" : "p"), {
|
|
363
|
-
key: 1,
|
|
364
|
-
for: _ctx.showInput ? _ctx.inputId : void 0,
|
|
365
|
-
innerHTML: _ctx.message
|
|
366
|
-
}, null, 8, ["for", "innerHTML"]))])], 2)) : createCommentVNode("v-if", true)], 2), withDirectives(createBaseVNode("div", { class: normalizeClass(_ctx.ns.e("input")) }, [createVNode(_component_el_input, {
|
|
367
|
-
id: _ctx.inputId,
|
|
368
|
-
ref: "inputRef",
|
|
369
|
-
modelValue: _ctx.inputValue,
|
|
370
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.inputValue = $event),
|
|
371
|
-
type: _ctx.inputType,
|
|
372
|
-
placeholder: _ctx.inputPlaceholder,
|
|
373
|
-
"aria-invalid": _ctx.validateError,
|
|
374
|
-
class: normalizeClass({ invalid: _ctx.validateError }),
|
|
375
|
-
onKeydown: withKeys(_ctx.handleInputEnter, ["enter"])
|
|
376
|
-
}, null, 8, [
|
|
377
|
-
"id",
|
|
378
|
-
"modelValue",
|
|
379
|
-
"type",
|
|
380
|
-
"placeholder",
|
|
381
|
-
"aria-invalid",
|
|
382
|
-
"class",
|
|
383
|
-
"onKeydown"
|
|
384
|
-
]), createBaseVNode("div", {
|
|
385
|
-
class: normalizeClass(_ctx.ns.e("errormsg")),
|
|
386
|
-
style: normalizeStyle({ visibility: !!_ctx.editorErrorMessage ? "visible" : "hidden" })
|
|
387
|
-
}, toDisplayString(_ctx.editorErrorMessage), 7)], 2), [[vShow, _ctx.showInput]])], 10, _hoisted_3),
|
|
388
|
-
createBaseVNode("div", { class: normalizeClass(_ctx.ns.e("btns")) }, [_ctx.showCancelButton ? (openBlock(), createBlock(_component_el_button, {
|
|
389
|
-
key: 0,
|
|
390
|
-
loading: _ctx.cancelButtonLoading,
|
|
391
|
-
class: normalizeClass([_ctx.cancelButtonClass]),
|
|
392
|
-
round: _ctx.roundButton,
|
|
393
|
-
size: _ctx.btnSize,
|
|
394
|
-
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.handleAction("cancel")),
|
|
395
|
-
onKeydown: _cache[4] || (_cache[4] = withKeys(withModifiers(($event) => _ctx.handleAction("cancel"), ["prevent"]), ["enter"]))
|
|
396
|
-
}, {
|
|
397
|
-
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.cancelButtonText || _ctx.t("el.messagebox.cancel")), 1)]),
|
|
398
|
-
_: 1
|
|
399
|
-
}, 8, [
|
|
400
|
-
"loading",
|
|
401
|
-
"class",
|
|
402
|
-
"round",
|
|
403
|
-
"size"
|
|
404
|
-
])) : createCommentVNode("v-if", true), withDirectives(createVNode(_component_el_button, {
|
|
405
|
-
ref: "confirmRef",
|
|
406
|
-
type: "primary",
|
|
407
|
-
loading: _ctx.confirmButtonLoading,
|
|
408
|
-
class: normalizeClass([_ctx.confirmButtonClasses]),
|
|
409
|
-
round: _ctx.roundButton,
|
|
410
|
-
disabled: _ctx.confirmButtonDisabled,
|
|
411
|
-
size: _ctx.btnSize,
|
|
412
|
-
onClick: _cache[5] || (_cache[5] = ($event) => _ctx.handleAction("confirm")),
|
|
413
|
-
onKeydown: _cache[6] || (_cache[6] = withKeys(withModifiers(($event) => _ctx.handleAction("confirm"), ["prevent"]), ["enter"]))
|
|
414
|
-
}, {
|
|
415
|
-
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.confirmButtonText || _ctx.t("el.messagebox.confirm")), 1)]),
|
|
416
|
-
_: 1
|
|
417
|
-
}, 8, [
|
|
418
|
-
"loading",
|
|
419
|
-
"class",
|
|
420
|
-
"round",
|
|
421
|
-
"disabled",
|
|
422
|
-
"size"
|
|
423
|
-
]), [[vShow, _ctx.showConfirmButton]])], 2)
|
|
424
|
-
], 6)]),
|
|
425
|
-
_: 3
|
|
426
|
-
}, 8, [
|
|
427
|
-
"trapped",
|
|
428
|
-
"focus-trap-el",
|
|
429
|
-
"focus-start-el",
|
|
430
|
-
"onReleaseRequested"
|
|
431
|
-
])], 42, _hoisted_1)]),
|
|
432
|
-
_: 3
|
|
433
|
-
}, 8, [
|
|
434
|
-
"z-index",
|
|
435
|
-
"overlay-class",
|
|
436
|
-
"mask"
|
|
437
|
-
]), [[vShow, _ctx.visible]])]),
|
|
438
|
-
_: 3
|
|
439
|
-
});
|
|
440
|
-
}
|
|
441
|
-
var MessageBoxConstructor = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);
|
|
442
|
-
init_shared_esm_bundler();
|
|
443
|
-
var messageInstance = /* @__PURE__ */ new Map();
|
|
444
|
-
var getAppendToElement = (props) => {
|
|
445
|
-
let appendTo = document.body;
|
|
446
|
-
if (props.appendTo) {
|
|
447
|
-
if (isString(props.appendTo)) appendTo = document.querySelector(props.appendTo);
|
|
448
|
-
if (isElement(props.appendTo)) appendTo = props.appendTo;
|
|
449
|
-
if (!isElement(appendTo)) {
|
|
450
|
-
debugWarn("ElMessageBox", "the appendTo option is not an HTMLElement. Falling back to document.body.");
|
|
451
|
-
appendTo = document.body;
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
return appendTo;
|
|
455
|
-
};
|
|
456
|
-
var initInstance = (props, container, appContext = null) => {
|
|
457
|
-
const vnode = createVNode(MessageBoxConstructor, props, isFunction(props.message) || isVNode(props.message) ? { default: isFunction(props.message) ? props.message : () => props.message } : null);
|
|
458
|
-
vnode.appContext = appContext;
|
|
459
|
-
render(vnode, container);
|
|
460
|
-
getAppendToElement(props).appendChild(container.firstElementChild);
|
|
461
|
-
return vnode.component;
|
|
462
|
-
};
|
|
463
|
-
var genContainer = () => {
|
|
464
|
-
return document.createElement("div");
|
|
465
|
-
};
|
|
466
|
-
var showMessage = (options, appContext) => {
|
|
467
|
-
const container = genContainer();
|
|
468
|
-
options.onVanish = () => {
|
|
469
|
-
render(null, container);
|
|
470
|
-
messageInstance.delete(vm);
|
|
471
|
-
};
|
|
472
|
-
options.onAction = (action) => {
|
|
473
|
-
const currentMsg = messageInstance.get(vm);
|
|
474
|
-
let resolve;
|
|
475
|
-
if (options.showInput) resolve = {
|
|
476
|
-
value: vm.inputValue,
|
|
477
|
-
action
|
|
478
|
-
};
|
|
479
|
-
else resolve = action;
|
|
480
|
-
if (options.callback) options.callback(resolve, instance.proxy);
|
|
481
|
-
else if (action === "cancel" || action === "close") if (options.distinguishCancelAndClose && action !== "cancel") currentMsg.reject("close");
|
|
482
|
-
else currentMsg.reject("cancel");
|
|
483
|
-
else currentMsg.resolve(resolve);
|
|
484
|
-
};
|
|
485
|
-
const instance = initInstance(options, container, appContext);
|
|
486
|
-
const vm = instance.proxy;
|
|
487
|
-
for (const prop in options) if (hasOwn(options, prop) && !hasOwn(vm.$props, prop)) vm[prop] = options[prop];
|
|
488
|
-
vm.visible = true;
|
|
489
|
-
return vm;
|
|
490
|
-
};
|
|
491
|
-
function MessageBox(options, appContext = null) {
|
|
492
|
-
if (!isClient) return Promise.reject();
|
|
493
|
-
let callback;
|
|
494
|
-
if (isString(options) || isVNode(options)) options = { message: options };
|
|
495
|
-
else callback = options.callback;
|
|
496
|
-
return new Promise((resolve, reject) => {
|
|
497
|
-
const vm = showMessage(options, appContext != null ? appContext : MessageBox._context);
|
|
498
|
-
messageInstance.set(vm, {
|
|
499
|
-
options,
|
|
500
|
-
callback,
|
|
501
|
-
resolve,
|
|
502
|
-
reject
|
|
503
|
-
});
|
|
504
|
-
});
|
|
505
|
-
}
|
|
506
|
-
var MESSAGE_BOX_VARIANTS = [
|
|
507
|
-
"alert",
|
|
508
|
-
"confirm",
|
|
509
|
-
"prompt"
|
|
510
|
-
];
|
|
511
|
-
var MESSAGE_BOX_DEFAULT_OPTS = {
|
|
512
|
-
alert: {
|
|
513
|
-
closeOnPressEscape: false,
|
|
514
|
-
closeOnClickModal: false
|
|
515
|
-
},
|
|
516
|
-
confirm: { showCancelButton: true },
|
|
517
|
-
prompt: {
|
|
518
|
-
showCancelButton: true,
|
|
519
|
-
showInput: true
|
|
520
|
-
}
|
|
521
|
-
};
|
|
522
|
-
MESSAGE_BOX_VARIANTS.forEach((boxType) => {
|
|
523
|
-
MessageBox[boxType] = messageBoxFactory(boxType);
|
|
524
|
-
});
|
|
525
|
-
function messageBoxFactory(boxType) {
|
|
526
|
-
return (message, title, options, appContext) => {
|
|
527
|
-
let titleOrOpts = "";
|
|
528
|
-
if (isObject(title)) {
|
|
529
|
-
options = title;
|
|
530
|
-
titleOrOpts = "";
|
|
531
|
-
} else if (isUndefined(title)) titleOrOpts = "";
|
|
532
|
-
else titleOrOpts = title;
|
|
533
|
-
return MessageBox(Object.assign({
|
|
534
|
-
title: titleOrOpts,
|
|
535
|
-
message,
|
|
536
|
-
type: "",
|
|
537
|
-
...MESSAGE_BOX_DEFAULT_OPTS[boxType]
|
|
538
|
-
}, options, { boxType }), appContext);
|
|
539
|
-
};
|
|
540
|
-
}
|
|
541
|
-
MessageBox.close = () => {
|
|
542
|
-
messageInstance.forEach((_, vm) => {
|
|
543
|
-
vm.doClose();
|
|
544
|
-
});
|
|
545
|
-
messageInstance.clear();
|
|
546
|
-
};
|
|
547
|
-
MessageBox._context = null;
|
|
548
|
-
var _MessageBox = MessageBox;
|
|
549
|
-
_MessageBox.install = (app) => {
|
|
550
|
-
_MessageBox._context = app._context;
|
|
551
|
-
app.config.globalProperties.$msgbox = _MessageBox;
|
|
552
|
-
app.config.globalProperties.$messageBox = _MessageBox;
|
|
553
|
-
app.config.globalProperties.$alert = _MessageBox.alert;
|
|
554
|
-
app.config.globalProperties.$confirm = _MessageBox.confirm;
|
|
555
|
-
app.config.globalProperties.$prompt = _MessageBox.prompt;
|
|
556
|
-
};
|
|
557
|
-
var ElMessageBox = _MessageBox;
|
|
558
|
-
function useMessage() {
|
|
559
|
-
const handleCancelOrClose = (e) => {
|
|
560
|
-
if (e instanceof Error) throw e;
|
|
561
|
-
return e;
|
|
562
|
-
};
|
|
563
|
-
const handleCancelOrClosePrompt = (e) => {
|
|
564
|
-
if (e instanceof Error) throw e;
|
|
565
|
-
return {
|
|
566
|
-
value: "",
|
|
567
|
-
action: e
|
|
568
|
-
};
|
|
569
|
-
};
|
|
570
|
-
async function alert(message, configOrTitle, config) {
|
|
571
|
-
const resolvedConfig = {
|
|
572
|
-
...config ?? (typeof configOrTitle === "object" ? configOrTitle : {}),
|
|
573
|
-
cancelButtonClass: "btn--cancel",
|
|
574
|
-
confirmButtonClass: "btn--confirm",
|
|
575
|
-
dangerouslyUseHTMLString: true
|
|
576
|
-
};
|
|
577
|
-
if (typeof configOrTitle === "string") return await ElMessageBox.alert(sanitizeIfString(message), configOrTitle, resolvedConfig).catch(handleCancelOrClose);
|
|
578
|
-
return await ElMessageBox.alert(sanitizeIfString(message), resolvedConfig).catch(handleCancelOrClose);
|
|
579
|
-
}
|
|
580
|
-
async function confirm(message, configOrTitle, config) {
|
|
581
|
-
const resolvedConfig = {
|
|
582
|
-
cancelButtonClass: "btn--cancel",
|
|
583
|
-
confirmButtonClass: "btn--confirm",
|
|
584
|
-
distinguishCancelAndClose: true,
|
|
585
|
-
showClose: config?.showClose ?? false,
|
|
586
|
-
closeOnClickModal: false,
|
|
587
|
-
dangerouslyUseHTMLString: true,
|
|
588
|
-
...config ?? (typeof configOrTitle === "object" ? configOrTitle : {})
|
|
589
|
-
};
|
|
590
|
-
if (typeof configOrTitle === "string") return await ElMessageBox.confirm(sanitizeIfString(message), sanitizeIfString(configOrTitle), resolvedConfig).catch(handleCancelOrClose);
|
|
591
|
-
return await ElMessageBox.confirm(sanitizeIfString(message), resolvedConfig).catch(handleCancelOrClose);
|
|
592
|
-
}
|
|
593
|
-
async function prompt(message, configOrTitle, config) {
|
|
594
|
-
const resolvedConfig = {
|
|
595
|
-
...config ?? (typeof configOrTitle === "object" ? configOrTitle : {}),
|
|
596
|
-
cancelButtonClass: "btn--cancel",
|
|
597
|
-
confirmButtonClass: "btn--confirm",
|
|
598
|
-
dangerouslyUseHTMLString: true
|
|
599
|
-
};
|
|
600
|
-
if (typeof configOrTitle === "string") return await ElMessageBox.prompt(sanitizeIfString(message), sanitizeIfString(configOrTitle), resolvedConfig).catch(handleCancelOrClosePrompt);
|
|
601
|
-
return await ElMessageBox.prompt(sanitizeIfString(message), resolvedConfig).catch(handleCancelOrClosePrompt);
|
|
602
|
-
}
|
|
603
|
-
return {
|
|
604
|
-
alert,
|
|
605
|
-
confirm,
|
|
606
|
-
prompt,
|
|
607
|
-
message: ElMessageBox
|
|
608
|
-
};
|
|
609
|
-
}
|
|
610
|
-
export { ElMessageBox as n, useMessage as t };
|