n8n-editor-ui 2.1.2 → 2.2.1
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-Biub-zeV.js → AddDataTableModal-DdQPndvj.js} +18 -19
- package/dist/assets/{AgentEditorModal-PXvmwyMd.js → AgentEditorModal-13IKfi65.js} +51 -62
- package/dist/assets/{AgentEditorModal-CzlIqORm.css → AgentEditorModal-CnYw6elM.css} +7 -13
- package/dist/assets/{Alert-ThpSN7C0.js → Alert-DOlbYzaP.js} +1 -1
- package/dist/assets/{AnnotationTagsDropdown.ee-CgUQtuOy.js → AnnotationTagsDropdown.ee-BV5N0QpC.js} +2 -2
- package/dist/assets/{AuthView-CIGxT6Xf.js → AuthView-XL99nUn8.js} +5 -5
- package/dist/assets/BottomMenu-CRVyIu-B.css +474 -0
- package/dist/assets/BottomMenu-Urdm-sib.js +547 -0
- package/dist/assets/{ChangePasswordView-BGSyBBl2.js → ChangePasswordView-BE2ZGJcQ.js} +15 -15
- package/dist/assets/{ChatAgentAvatar-BK95BHUo.css → ChatAgentAvatar-B68ZZ295.css} +18 -9
- package/dist/assets/{ChatAgentAvatar-BLpWC-zL.js → ChatAgentAvatar-DWOQygP6.js} +17 -16
- package/dist/assets/{ChatSidebarOpener-ctovVEcz.js → ChatLayout--VoBX0db.js} +9 -28
- package/dist/assets/ChatPersonalAgentsView-BiiyFIRl.css +159 -0
- package/dist/assets/{ChatPersonalAgentsView-Bd73mT2L.js → ChatPersonalAgentsView-C0AZXJ21.js} +29 -34
- package/dist/assets/ChatSidebar-C7kpSeSL.js +526 -0
- package/dist/assets/{ChatSidebar-D0f-W0S9.css → ChatSidebar-DcNxY7Pt.css} +61 -336
- package/dist/assets/{ChatView-k5Ib5T23.js → ChatView-DPBUfiCx.js} +121 -142
- package/dist/assets/{ChatView-mTIZIDr3.css → ChatView-DZODCD2o.css} +4 -4
- package/dist/assets/{ChatWorkflowAgentsView-CPOcTSK4.js → ChatWorkflowAgentsView-CPDjKGeW.js} +22 -23
- package/dist/assets/CollectionParameter-PHj-nQX_.js +50 -0
- package/dist/assets/{CommunityNodeUpdateInfo-Dy0ilmZE.js → CommunityNodeUpdateInfo-C8_mLrZ5.js} +8 -8
- package/dist/assets/{CopyInput-B2aUDGPW.js → CopyInput-D4IqeIwh.js} +4 -4
- package/dist/assets/{CredentialIcon-BGZoAL3d.js → CredentialIcon-uhIIYjQ5.js} +3 -3
- package/dist/assets/{CredentialPicker-BtKDHFRq.js → CredentialPicker-CHj_u87Q.js} +5 -6
- package/dist/assets/{CredentialSelectorModal-DkyFq-Pq.js → CredentialSelectorModal-BgjG3ACX.js} +18 -20
- package/dist/assets/{CredentialsView-xnKf-zG4.js → CredentialsView-GgHi3Nwa.js} +34 -37
- package/dist/assets/{DataTableActions-B5aTsXib.js → DataTableActions-D8jtOheL.js} +5 -6
- package/dist/assets/{DataTableDetailsView-C6okqjS-.js → DataTableDetailsView-BQKJhJRx.js} +22 -24
- package/dist/assets/{DataTableView-BM78mbgY.js → DataTableView-CRpaR8O2.js} +31 -34
- package/dist/assets/DemoFooter-Cxu0hnvC.js +63 -0
- package/dist/assets/{Draggable-DveKAuxg.js → Draggable-CeRLORdu.js} +1 -1
- package/dist/assets/{EmptySharedSectionActionBox-SKlYZNuX.js → EmptySharedSectionActionBox-WNc5syUl.js} +4 -4
- package/dist/assets/{EnterpriseEdition.ee-BQiXZvAd.js → EnterpriseEdition.ee-D0ixqMOk.js} +1 -1
- package/dist/assets/{EntityNotFound-ByhfFutM.js → EntityNotFound-CuNhWBrZ.js} +7 -7
- package/dist/assets/{EntityUnAuthorised-Ab8M--6A.js → EntityUnAuthorised-ProWKTPU.js} +7 -7
- package/dist/assets/{ErrorView-Csvm001D.js → ErrorView-jBBYrV1n.js} +9 -9
- package/dist/assets/{EvaluationsRootView-B6-VDQXl.js → EvaluationsRootView-D70Tp2Up.js} +36 -36
- package/dist/assets/{EvaluationsView-D8teiZoa.js → EvaluationsView-DPKBS6PJ.js} +21 -21
- package/dist/assets/{ExecutionsTime-CNz8UC7l.css → ExecutionsTime-CMAp2_xF.css} +24 -21
- package/dist/assets/{ExecutionsTime-CLQBgXgq.js → ExecutionsTime-CQneihIO.js} +37 -28
- package/dist/assets/{ExecutionsView-B6W7-w3K.js → ExecutionsView-Vg6JvFFQ.js} +34 -37
- package/dist/assets/{ExternalSecretsProviderConnectionSwitch.ee-DcLHCwv3.js → ExternalSecretsProviderConnectionSwitch.ee-B9I0rKT4.js} +4 -4
- package/dist/assets/{FixedCollectionParameter-ozilaYrN.js → FixedCollectionParameter-Dgp7H09p.js} +45 -53
- package/dist/assets/{ForgotMyPasswordView-Bnk-XG6Z.js → ForgotMyPasswordView-DqcF_Z2q.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-KVEJC5l2.js → InsightsDashboard-CiJyVecp.js} +32 -34
- package/dist/assets/{InsightsPaywall-BrnS_pKR.js → InsightsPaywall-CINaGtwo.js} +15 -16
- package/dist/assets/{InsightsSummary-Da08_DCk.js → InsightsSummary-CgA8vOKu.js} +8 -8
- package/dist/assets/{InsightsTableWorkflows-CjXv0hN6.js → InsightsTableWorkflows-YYoh5C57.js} +18 -18
- package/dist/assets/{ItemsRenderer-B3028vj7.js → ItemsRenderer-Bkvm6ylT.js} +10 -10
- package/dist/assets/{ItemsRenderer-Cr6c6uYy.css → ItemsRenderer-DkobJF9f.css} +4 -2
- package/dist/assets/{KeyboardShortcutTooltip-vWNBozVo.js → KeyboardShortcutTooltip-BErFISFN.js} +1 -1
- package/dist/assets/LogsPanel-1rVp7yTV.js +50 -0
- package/dist/assets/{LogsPanel-DxQFRme8.js → LogsPanel-wqHn7duZ.js} +24 -25
- package/dist/assets/MCPConnectWorkflowsModal-CS2q8ice.css +275 -0
- package/dist/assets/MCPConnectWorkflowsModal-zndEVWiT.js +301 -0
- package/dist/assets/{MainHeader-DJA_Afhq.css → MainHeader-CSaAWCWj.css} +13 -13
- package/dist/assets/{MainHeader-Di9xKi5B.js → MainHeader-S9F1mef-.js} +97 -101
- package/dist/assets/{MainSidebar-bwCkn71q.css → MainSidebar-CEsQ8o1Y.css} +84 -304
- package/dist/assets/{MainSidebar-DIa4RZxf.js → MainSidebar-nlRQuq4m.js} +222 -694
- package/dist/assets/{MigrationRuleDetail-mcU4VyTt.js → MigrationRuleDetail-MPJH8woH.js} +20 -20
- package/dist/assets/{MigrationRules-2g39kC1H.js → MigrationRules-CXWOU2h7.js} +12 -12
- package/dist/assets/{Modal-DGPQBa8T.js → Modal-Bx0XYuv8.js} +4 -4
- package/dist/assets/{ModelByIdSelectorModal-CzcpDw87.js → ModelByIdSelectorModal-BI7ckDXC.js} +17 -18
- package/dist/assets/{NDVEmptyState-BeXJvhnF.js → NDVEmptyState-YMeX60Ni.js} +1 -1
- package/dist/assets/{NodeCreation-Br8ljRfC.js → NodeCreation-BaNMWutd.js} +41 -49
- package/dist/assets/{NodeCreator-fSrstn2P.js → NodeCreator-C852UqEf.js} +47 -50
- package/dist/assets/{NodeCreator-C-ckvxD7.css → NodeCreator-OSIpRI6S.css} +25 -25
- package/dist/assets/{NodeDetailsView-HXe2ZuYh.js → NodeDetailsView-GXMPg1-K.js} +60 -68
- package/dist/assets/{NodeDetailsViewV2-C3W-2c0t.js → NodeDetailsViewV2-DCnVXlNg.js} +61 -69
- package/dist/assets/{NodeIcon-eaW3atZy.css → NodeIcon-BDxr0f30.css} +5 -2
- package/dist/assets/{NodeIcon-CWvzhRQM.js → NodeIcon-UuZXMI3b.js} +4 -4
- package/dist/assets/{NodeSettings-Br6GFKCU.js → NodeSettings-sGW3h0b4.js} +17 -17
- package/dist/assets/{NodeView-BLDOwZvQ.js → NodeView-i2FqlrZg.js} +111 -106
- package/dist/assets/{OAuthConsentView-C13weyO_.js → OAuthConsentView-BCnyFvFE.js} +14 -14
- package/dist/assets/{ParameterInputList-CXEjv4Ky.css → ParameterInputList-0YoVowEI.css} +10 -7
- package/dist/assets/{ParameterInputList-BUU1q_EZ.js → ParameterInputList-Br9nDZxe.js} +59 -56
- package/dist/assets/{PrebuiltAgentTemplatesView-D9w4f2e0.js → PrebuiltAgentTemplatesView-CKUzZatm.js} +17 -19
- package/dist/assets/{ProjectBreadcrumb-8JDiuLL3.js → ProjectBreadcrumb-ByT1IATl.js} +4 -4
- package/dist/assets/{ProjectCardBadge-CcHOiONP.js → ProjectCardBadge-DjNmgRAP.js} +5 -5
- package/dist/assets/{ProjectHeader-D4bO6fjq.js → ProjectHeader-Cl-v-GMx.js} +8 -8
- package/dist/assets/{ProjectIcon-DQILIjYR.js → ProjectIcon-CVhr6466.js} +1 -1
- package/dist/assets/{ProjectRoleView-UeSNgqSq.js → ProjectRoleView-3D060erL.js} +15 -16
- package/dist/assets/{ProjectRolesView-DhXb0x1i.js → ProjectRolesView-DvZkoFBe.js} +16 -19
- package/dist/assets/{ProjectSettings-CUnoqyPE.js → ProjectSettings-0C6lnj8u.js} +26 -28
- package/dist/assets/{ProjectSharing-utuPX2PB.js → ProjectSharing-CtOlIYg8.js} +5 -5
- package/dist/assets/{ProjectVariables-djh1rIms.js → ProjectVariables-COktFANb.js} +32 -35
- package/dist/assets/{ProviderSettingsModal-CazzGyiO.js → ProviderSettingsModal-B-btuOfV.js} +21 -23
- package/dist/assets/{PushConnectionTracker-Dpvr4Zz3.js → PushConnectionTracker-C4wioF1a.js} +3 -3
- package/dist/assets/{ResolversView-BdV4DSqj.js → ResolversView-qWEf4KSk.js} +15 -17
- package/dist/assets/{ResourceFiltersDropdown-W30MKKtt.js → ResourceFiltersDropdown-BikLhLzy.js} +18 -18
- package/dist/assets/{ResourceFiltersDropdown-BACE5ZTX.css → ResourceFiltersDropdown-Cma1Lj9J.css} +12 -9
- package/dist/assets/{ResourcesListLayout-DqSGTRQL.js → ResourcesListLayout-DjbDZ485.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-Ber6Oi12.js → RunDataJson-xNt8TeT7.js} +14 -14
- package/dist/assets/{RunDataJsonActions-Bf98jdLe.js → RunDataJsonActions-ZnTJFjPn.js} +15 -15
- package/dist/assets/{RunDataParsedAiContent-DL7QTmP_.js → RunDataParsedAiContent-BCJUkbqC.js} +8 -8
- package/dist/assets/RunDataParsedAiContent-DqRKhrSB.js +24 -0
- package/dist/assets/{RunDataSearch-jh-3G-0I.js → RunDataSearch-BAwHZr-P.js} +10 -10
- package/dist/assets/{RunDataTable-BVL7OKID.js → RunDataTable-YYViC6gq.js} +18 -18
- package/dist/assets/{SamlOnboarding-D_thSH33.js → SamlOnboarding-C5Tr3Slo.js} +15 -15
- package/dist/assets/{SaveButton-DooLZseO.js → SaveButton-92mEEoEP.js} +3 -3
- package/dist/assets/{SelectedItemsInfo-DDt5oazC.js → SelectedItemsInfo-DzkrxhPo.js} +2 -2
- package/dist/assets/{SettingsApiView-BBxKUUm2.js → SettingsApiView-CJyqNNAX.js} +17 -20
- package/dist/assets/{SettingsChatHubView-DVgdfxN7.js → SettingsChatHubView-DpdcfBor.js} +19 -19
- package/dist/assets/{SettingsCommunityNodesView-BRFN63n0.js → SettingsCommunityNodesView-BCvCmXWC.js} +29 -36
- package/dist/assets/{SettingsExternalSecrets-C0x7V0VC.js → SettingsExternalSecrets-CtuNjOHB.js} +17 -18
- package/dist/assets/{SettingsLdapView-Bwoo1o2k.js → SettingsLdapView-CB2PN4XF.js} +19 -22
- package/dist/assets/{SettingsLogStreamingView-BgwdyH0h.js → SettingsLogStreamingView-BkeGZzXU.js} +17 -20
- package/dist/assets/{SettingsMCPView-DzdHfN6P.js → SettingsMCPView-CfaP3OAo.js} +136 -164
- package/dist/assets/{SettingsMCPView-CuJwNWhp.css → SettingsMCPView-DIdodQTu.css} +28 -41
- package/dist/assets/{SettingsPersonalView-CnMsk8M2.js → SettingsPersonalView-DqyIIYiM.js} +15 -16
- package/dist/assets/{SettingsSourceControl-DKRbSwDj.js → SettingsSourceControl-DTKvyQ-E.js} +19 -21
- package/dist/assets/{SettingsSso-DD32GRf1.js → SettingsSso-BqSa2kyP.js} +21 -24
- package/dist/assets/{SettingsUsageAndPlan-lZYIpXMj.js → SettingsUsageAndPlan-DjxRwtnH.js} +17 -19
- package/dist/assets/{SettingsUsersView-BP2U2tD2.js → SettingsUsersView-DTtMD45S.js} +22 -25
- package/dist/assets/{SettingsView-BRsk0Vjq.js → SettingsView-LehjcLhP.js} +14 -14
- package/dist/assets/{SetupTemplateFormStep-DcmVXD3a.js → SetupTemplateFormStep-DH5EaAC-.js} +7 -7
- package/dist/assets/{SetupView-DBFUYVtm.js → SetupView-CNpqI-Mm.js} +15 -15
- package/dist/assets/{SetupWorkflowCredentialsButton-ChlRSbhd.js → SetupWorkflowCredentialsButton-Cd6MsYCC.js} +14 -14
- package/dist/assets/{SetupWorkflowFromTemplateView-CER9J7DP.js → SetupWorkflowFromTemplateView-CKYEo2_N.js} +21 -25
- package/dist/assets/{SeverityTag-CkJev9WS.js → SeverityTag-CjL6aCgr.js} +2 -2
- package/dist/assets/{SigninView-CWdvHULD.js → SigninView-BFhXhQy_.js} +16 -16
- package/dist/assets/{SignoutView-fvJJZx5p.js → SignoutView-C5Rqj0rG.js} +8 -8
- package/dist/assets/{SignupView-SNgWdNtE.js → SignupView-pkWEAwT4.js} +15 -15
- package/dist/assets/{SkeletonAgentCard-DQhrFpBG.js → SkeletonAgentCard-CFbUHoJ_.js} +8 -8
- package/dist/assets/{TagsDropdown-RP7eXKHF.js → TagsDropdown-Ckp4w5RZ.js} +3 -3
- package/dist/assets/{TemplateCard-DbQ8Ekek.js → TemplateCard-CVIt847s.js} +6 -7
- package/dist/assets/{TemplateDetails-BlnoU2XX.js → TemplateDetails-CU_WdmN6.js} +6 -7
- package/dist/assets/{TemplateList-EUHRRcHT.js → TemplateList-CI2Xi3Nr.js} +5 -5
- package/dist/assets/{TemplatesCollectionView-CShXKKou.js → TemplatesCollectionView-9nTVlhmd.js} +22 -24
- package/dist/assets/{TemplatesSearchView-JPvTJqrT.js → TemplatesSearchView-5sECuF70.js} +19 -21
- package/dist/assets/{TemplatesView-CkSiPY6S.js → TemplatesView-BwDvsLzl.js} +3 -3
- package/dist/assets/{TemplatesWorkflowView-mGRivOAH.js → TemplatesWorkflowView-BUJF5y7g.js} +23 -25
- package/dist/assets/{TestRunDetailView-d89WWvUc.js → TestRunDetailView-CpbEtZB0.js} +19 -19
- package/dist/assets/{TimeAgo-BgFYQmEV.js → TimeAgo-wOp8Jlnz.js} +3 -3
- package/dist/assets/{ToolsSelectorModal-BBdpzWrV.js → ToolsSelectorModal-B4Id-oqD.js} +17 -18
- package/dist/assets/{TriggerPanel-Ccr_a4aS.js → TriggerPanel-ClTWEUV8.js} +18 -19
- package/dist/assets/VirtualSchema-Bf4iCl-D.js +35 -0
- package/dist/assets/{VirtualSchema-Ccpa4B_2.js → VirtualSchema-CnYo2buH.js} +15 -16
- package/dist/assets/{VueMarkdown-wTXGt3en.js → VueMarkdown-DQtBIjcr.js} +1 -1
- package/dist/assets/{WorkerView-CjTDGSi1.js → WorkerView-BFEeByTA.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-B4F8t0yo.js → WorkflowActivator-Bxd-bB8P.js} +13 -11
- package/dist/assets/{WorkflowExecutionsInfoAccordion-Cx2nzSuB.js → WorkflowExecutionsInfoAccordion-BbBvNiqB.js} +11 -15
- package/dist/assets/{WorkflowExecutionsLandingPage-DEJ2PbWE.js → WorkflowExecutionsLandingPage-C9EEWnxX.js} +19 -33
- package/dist/assets/{WorkflowExecutionsPreview-BMGRACSR.js → WorkflowExecutionsPreview-bL404UdF.js} +22 -25
- package/dist/assets/{WorkflowExecutionsView-Bqx9k5c-.js → WorkflowExecutionsView-Bpxaw8Vh.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-DmtAM9fi.js → WorkflowHistory-CORp6hCd.js} +329 -273
- package/dist/assets/WorkflowLocation-6rp_-CuW.css +164 -0
- package/dist/assets/WorkflowLocation-tnhpuBX7.js +164 -0
- package/dist/assets/{WorkflowOnboardingView-CIrmsRw4.js → WorkflowOnboardingView-BEawbzt-.js} +8 -10
- package/dist/assets/{WorkflowPreview-CYlgo0kD.js → WorkflowPreview-CEDUFgeD.js} +4 -4
- package/dist/assets/{WorkflowTagsDropdown-BsjxBGVH.js → WorkflowTagsDropdown-XEtouCaM.js} +2 -2
- package/dist/assets/{WorkflowsView-D-Je3mdl.js → WorkflowsView-ClQilsPp.js} +65 -84
- package/dist/assets/{_MapCache-BXj4WgHo.js → _MapCache-0zNxISSG.js} +78 -8
- package/dist/assets/{_baseOrderBy-ZGuD_-iy.js → _baseOrderBy-xWA0TcWm.js} +4 -4
- package/dist/assets/{_initCloneObject-DCLKwsUi.js → _initCloneObject-DZFc-F-b.js} +2 -2
- package/dist/assets/{aiTemplatesStarterCollection.store-NYOrgNlj.js → aiTemplatesStarterCollection.store-zMePNJbZ.js} +5 -5
- package/dist/assets/{apiKeys.store-DOf4JeD0.js → apiKeys.store-BzgIQpBj.js} +2 -2
- package/dist/assets/{assistant.store-Dy9VDomp.js → assistant.store-B5OR1Bze.js} +6 -6
- package/dist/assets/{auth.eventBus-Pqv7Rxfm.js → auth.eventBus-D3nU98SE.js} +1 -1
- package/dist/assets/{banners.store-Rf3We1Q7.js → banners.store-B7CxzJ2_.js} +4 -4
- package/dist/assets/{builder.store-D_RDTxxI.js → builder.store-DoNE5iKP.js} +5772 -157
- package/dist/assets/{chartjs.utils-BuKhcKwM.js → chartjs.utils-CoNBCTXc.js} +3 -3
- package/dist/assets/{chat.store-D4DOVQYU.js → chat.store-YIaykMtq.js} +124 -88
- package/dist/assets/{chatPanel.store-D3DaHq1z.js → chatPanel.store-zWZ0Jjvi.js} +17 -11
- package/dist/assets/{col-ebWyVZHF.js → col-Cj8t34XN.js} +1 -2
- package/dist/assets/{constants-DPB1SWiX.js → constants-BiRoCM0c.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-BL0mLkMg.js → dataTable.store-BXKAnmr0.js} +3 -3
- package/dist/assets/{date-picker-tQf2dntC.js → date-picker-CNwAHb3n.js} +2 -2
- package/dist/assets/{dateFormatter-DqsBbNBt.js → dateFormatter-DzJiM44k.js} +2 -2
- package/dist/assets/{dialog-jh_mITmm.js → dialog-Bot5nr0N.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-iqEXbNEl.js → evaluation.constants-QH_qT6UD.js} +3 -3
- package/dist/assets/{executions.store-D8Pn4Xih.js → executions.store-O0Cs6kyK.js} +2 -2
- package/dist/assets/{externalSecrets.ee.store-BDrodR7I.js → externalSecrets.ee.store-D1gmVgZF.js} +3 -3
- package/dist/assets/{folders.store-D8nKs5-U.js → folders.store-vVDyrOf9.js} +3 -3
- package/dist/assets/{index-BkLJ6ICr.css → index-Bl6XoGDE.css} +155 -24
- package/dist/assets/{index-DvVzFVr2.js → index-D6qelrIy.js} +478 -172
- package/dist/assets/{insights.constants-B7y0cvTb.js → insights.constants-C8GITe6H.js} +1 -1
- package/dist/assets/{insights.store-6LgiVo3h.js → insights.store-CEm0oAQ1.js} +5 -5
- package/dist/assets/{insights.utils-Dc4VSauh.js → insights.utils-BjffJfoC.js} +4 -4
- package/dist/assets/{isEmpty-GqdrxwqC.js → isEmpty-DCuynolj.js} +26 -27
- package/dist/assets/{languageModules-CLe6cIYW.js → languageModules-D_uyjb6R.js} +1 -1
- package/dist/assets/{logStreaming.store-I5_7h6od.js → logStreaming.store-rSlN8vmt.js} +2 -2
- package/dist/assets/mcp.constants-DQPD3Ntp.js +10 -0
- package/dist/assets/{mcp.store-BiAizQEG.js → mcp.store-NBibfYnt.js} +14 -3
- package/dist/assets/{merge-BfSiz1ty.js → merge-BmWPLD5Q.js} +1 -1
- package/dist/assets/{nodeCreator.store-CzS_snY4.js → nodeCreator.store-C5ZiFH88.js} +11 -16
- package/dist/assets/{nodeIcon-B3eU2X78.js → nodeIcon-CPowiQry.js} +3 -3
- package/dist/assets/{nodeTransforms-DQR-xCjB.js → nodeTransforms-B7ZrYsoY.js} +2 -2
- package/dist/assets/{orderBy-CKjuXXf2.js → orderBy-C7nKLQm8.js} +2 -2
- package/dist/assets/{personalizedTemplatesV3.store-uBVFSjod.js → personalizedTemplatesV3.store-C-6ck-eG.js} +3 -5
- package/dist/assets/{pickBy-DWwTL0iT.js → pickBy-CegO_wl5.js} +2 -2
- package/dist/assets/{radio-CHTjuYB5.js → radio-BQbSXowV.js} +1 -2
- package/dist/assets/{readyToRun.store-CoBaUeeQ.js → readyToRun.store-B87q35Mr.js} +6 -7
- package/dist/assets/{readyToRunWorkflows.store-CP3ZQHOV.js → readyToRunWorkflows.store-DYQM88iU.js} +5 -6
- package/dist/assets/{roles.store-Cc8yV7SO.js → roles.store-D6uYJEc8.js} +3 -3
- package/dist/assets/{router-DqNrjUQe.js → router-BeB9V_IR.js} +111 -90
- package/dist/assets/{sanitize-html-Cft-jOcY.js → sanitize-html-Cc45ZKm8.js} +1 -1
- package/dist/assets/{schemaPreview.store-CEyVQQFy.js → schemaPreview.store-C7il53qQ.js} +3 -3
- package/dist/assets/{semver-D94dSx-h.js → semver-DQ1spAwG.js} +2 -2
- package/dist/assets/{sourceControl.eventBus-dh45B_eQ.js → sourceControl.eventBus-C4ZTxfD6.js} +1 -1
- package/dist/assets/{src-DS0bffpn.css → src-CWWagUhy.css} +729 -81
- package/dist/assets/{src-D5Ea_YL1.js → src-Czua7QS4.js} +1675 -3573
- package/dist/assets/{sso.store-BhQFxFCm.js → sso.store-XplLjdjE.js} +2 -2
- package/dist/assets/{table-C-rs8-jl.js → table-BaJV0PMz.js} +3 -3
- package/dist/assets/{templateActions-Diym8ovq.js → templateActions-CnKsqyQX.js} +5 -5
- package/dist/assets/{templateTransforms-CKqUjP17.js → templateTransforms-tCNgggoI.js} +1 -1
- package/dist/assets/{truncate-Dmdv43Z9.js → truncate-4AS2exV3.js} +2266 -27
- package/dist/assets/{uniqBy-MFjFW8tb.js → uniqBy-DYX8cQbP.js} +1 -1
- package/dist/assets/{usage.store-DhJeF5yr.js → usage.store---1xT3dr.js} +2 -2
- package/dist/assets/{useActions-dKafQbOS.js → useActions-SqyZSpq8.js} +4 -4
- package/dist/assets/{useBeforeUnload-Bmlb3xCA.js → useBeforeUnload-Frc3kJwY.js} +3 -3
- package/dist/assets/{useCanvasMapping-B63N62Et.js → useCanvasMapping-ckk9p3Z_.js} +35 -32
- package/dist/assets/{useCanvasOperations-CfQ4z3tY.js → useCanvasOperations-B0_VkwYO.js} +140 -28
- package/dist/assets/{useClipboard-C_mhEUZu.js → useClipboard-aAhMBccX.js} +2 -2
- package/dist/assets/{useCommandBar-DaWt4vV_.js → useCommandBar-B-FM_q4D.js} +26 -30
- package/dist/assets/{useCredentialResolvers--QtS2m8P.js → useCredentialResolvers-BUdqGvmz.js} +4 -5
- package/dist/assets/{useCustomAgent-CfCSJQhK.js → useCustomAgent-CpSjLLmx.js} +25 -15
- package/dist/assets/{useDebounce-ChdrGmRj.js → useDebounce-BT72iAmz.js} +2 -2
- package/dist/assets/{useExecutionData-CW_KIDkd.js → useExecutionData-CcJxqQ4P.js} +1 -1
- package/dist/assets/{useExecutionDebugging-wiVN69Tq.js → useExecutionDebugging-CtsTTYUP.js} +6 -7
- package/dist/assets/{useExecutionHelpers-BuuqwS9p.js → useExecutionHelpers-BT28_NgQ.js} +5 -5
- package/dist/assets/{useImportCurlCommand-13VIaPBb.js → useImportCurlCommand-iPI3t0bK.js} +9 -9
- package/dist/assets/{useKeybindings-Dy748tLi.js → useKeybindings-CdqRqeMq.js} +4 -4
- package/dist/assets/{useLogsTreeExpand-BEKrkc6w.js → useLogsTreeExpand-U4aHj0YH.js} +13 -13
- package/dist/assets/{useMcp-DybYgWvO.js → useMcp-DqpgReET.js} +2 -2
- package/dist/assets/{usePageRedirectionHelper-BniqTqk7.js → usePageRedirectionHelper-WQFPPEkJ.js} +3 -4
- package/dist/assets/{usePinnedData-oATErInx.js → usePinnedData-DY18UrR8.js} +4 -4
- package/dist/assets/{usePushConnection-BucLZJhS.js → usePushConnection-DLXKs6Pl.js} +12 -13
- package/dist/assets/{useRecentResources-Cswwj5RH.js → useRecentResources-Dmyse5sV.js} +9 -8
- package/dist/assets/{useRunWorkflow-CtXYGwm0.js → useRunWorkflow-qvHcKYK-.js} +9 -10
- package/dist/assets/{useSettingsItems-Lsuyk-2F.js → useSettingsItems-BnPf2JrE.js} +4 -4
- package/dist/assets/{useTelemetryContext-TG-yqBI_.js → useTelemetryContext-k7tFigHj.js} +1 -1
- package/dist/assets/{useWorkflowActivate-Dzfi3i8Q.js → useWorkflowActivate-B8Z7d2ST.js} +7 -8
- package/dist/assets/{useWorkflowsCache-CUuFvP-s.js → useWorkflowsCache-Bph0PnSk.js} +1 -1
- package/dist/assets/{userRoleProvisioning.store-D4bBWYXg.js → userRoleProvisioning.store-DD9VUV4g.js} +2 -2
- package/dist/assets/utils-C2GPI2gK.js +54 -0
- package/dist/assets/{versions.store-UoNOsj3D.js → versions.store-BTPqbzUV.js} +3 -3
- package/dist/index.html +109 -119
- package/package.json +1 -1
- package/dist/assets/ChatSidebar-FcoKSroN.js +0 -555
- package/dist/assets/CollectionParameter-BdVkYonk.js +0 -58
- package/dist/assets/DemoFooter-BCrcY2ep.js +0 -71
- package/dist/assets/FileSaver.min--9uV1QmK.js +0 -72
- package/dist/assets/LogsPanel-Bl6S94ba.js +0 -58
- package/dist/assets/ModalDrawer-B-12esvU.css +0 -129
- package/dist/assets/ModalDrawer-CHxulsmc.js +0 -277
- package/dist/assets/RunDataParsedAiContent-Brtftd8W.js +0 -24
- package/dist/assets/VirtualSchema-wYsuagJ2.js +0 -42
- package/dist/assets/cloudPlan.store-Ck9BLZl3.js +0 -185
- package/dist/assets/en-BD3FHSTF.js +0 -2
- package/dist/assets/focusPanel.store-Cr5ipnc8.js +0 -208
- package/dist/assets/mcp.constants-svQUbNx5.js +0 -8
- package/dist/assets/npsSurvey.store-CjDE24yH.js +0 -98
- package/dist/assets/overlay-DBShc2HG.js +0 -165
- package/dist/assets/templates.store-DW5zmCkZ.js +0 -3915
- package/dist/assets/useChatHubSidebarState-Dp-DKjJx.js +0 -29
- package/dist/assets/useMessage-D9ClyiWR.js +0 -610
- package/dist/assets/useWorkflowSaving-BZmOLOu-.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-D_RDTxxI.js";
|
|
4
|
-
import { Go as CHAT_HUB_SIDE_MENU_DRAWER_MODAL_KEY, js as LOCAL_STORAGE_CHAT_HUB_STATIC_SIDEBAR } from "./constants-DPB1SWiX.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-D5Ea_YL1.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-Dmdv43Z9.js";
|
|
4
|
-
import { i as useDraggable, n as useSameTarget, r as useLockscreen, t as ElOverlay } from "./overlay-DBShc2HG.js";
|
|
5
|
-
import { d as sanitizeIfString } from "./builder.store-D_RDTxxI.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 };
|