n8n-editor-ui 1.115.1 → 1.116.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/.build/cache-marker +1 -1
- package/.build/node-popularity.json +1844 -1844
- package/dist/assets/{AddDataStoreModal-DxLlmnRh.js → AddDataTableModal-BWWNocvE.js} +32 -32
- package/dist/assets/{AddDataStoreModal-B7jBhCjt.css → AddDataTableModal-BzS5Yqag.css} +6 -6
- package/dist/assets/{AnimatedSpinner-DR4QrGrL.js → AnimatedSpinner-DFjfUB--.js} +1 -1
- package/dist/assets/{AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-BfGhW9R4.js → AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-AwTdMVsi.js} +1 -1
- package/dist/assets/{AuthView-CWVio_MZ.css → AuthView-BvfgleDU.css} +30 -30
- package/dist/assets/{AuthView-BUfRQlip.js → AuthView-CPPX5tYt.js} +14 -14
- package/dist/assets/{ChangePasswordView-hnVcBOdZ.js → ChangePasswordView-D_VXG-a6.js} +3 -3
- package/dist/assets/ChatSidebar-C0s-SoxK.js +117 -0
- package/dist/assets/ChatSidebar-wKAC9nrh.css +165 -0
- package/dist/assets/ChatView-ClX1FsZV.css +657 -0
- package/dist/assets/ChatView-DLlPfas8.js +805 -0
- package/dist/assets/CollectionParameter-CYHkGO0F.js +4 -0
- package/dist/assets/{CredentialsView-DYbozDMz.js → CredentialsView-BipY16I_.js} +15 -15
- package/dist/assets/{CredentialsView-BAqjGrNq.css → CredentialsView-C9uo2Njh.css} +14 -14
- package/dist/assets/{DataStoreActions.vue_vue_type_script_setup_true_lang-_Q8OXvzI.js → DataTableActions.vue_vue_type_script_setup_true_lang-B_Q2_4UV.js} +21 -21
- package/dist/assets/{DataStoreDetailsView-Bc-J9ZrW.css → DataTableDetailsView-BOmb3x4S.css} +138 -138
- package/dist/assets/{DataStoreDetailsView-DN1DvV53.js → DataTableDetailsView-Fi-LWBLm.js} +538 -525
- package/dist/assets/{DataStoreView-BqQv7QeU.css → DataTableView-ByKnlVtU.css} +14 -14
- package/dist/assets/{DataStoreView-BNU_I-gX.js → DataTableView-CFOQzQI7.js} +68 -68
- package/dist/assets/{DemoFooter-rHoOk6iK.js → DemoFooter-J9LQ705n.js} +5 -5
- package/dist/assets/{EmptySharedSectionActionBox.vue_vue_type_script_setup_true_lang-DWIEvR1-.js → EmptySharedSectionActionBox.vue_vue_type_script_setup_true_lang-BiphSIS4.js} +1 -1
- package/dist/assets/{EntityNotFound-DAi6p29d.js → EntityNotFound-CYQqRNOB.js} +2 -2
- package/dist/assets/EntityNotFound-CargndZm.css +10 -0
- package/dist/assets/EntityUnAuthorised-Deb2bHNC.css +10 -0
- package/dist/assets/{EntityUnAuthorised-8E-9FBHe.js → EntityUnAuthorised-DetfwCtv.js} +2 -2
- package/dist/assets/{ErrorView-DPS9icAS.css → ErrorView-D2OMvGTk.css} +8 -8
- package/dist/assets/{ErrorView-y79cILv4.js → ErrorView-qxP6uTVl.js} +4 -4
- package/dist/assets/{EvaluationsRootView-B5AhHo41.css → EvaluationsRootView-7FGhfEKm.css} +48 -48
- package/dist/assets/{EvaluationsRootView-CWelItmD.js → EvaluationsRootView-BueMulsE.js} +22 -22
- package/dist/assets/{EvaluationsView-BTyYfInB.css → EvaluationsView-DsfXDJ-U.css} +35 -35
- package/dist/assets/{EvaluationsView-C0X9064k.js → EvaluationsView-gk_juymK.js} +27 -27
- package/dist/assets/{ExecutionsTime-B5dXCTxD.css → ExecutionsTime-BGpurJsp.css} +41 -41
- package/dist/assets/{ExecutionsTime.vue_vue_type_script_setup_true_lang-CmtPBoIQ.js → ExecutionsTime.vue_vue_type_script_setup_true_lang-8mG-89V4.js} +16 -16
- package/dist/assets/{ExecutionsView-DRsBgt5L.js → ExecutionsView-0KpKg6S4.js} +18 -18
- package/dist/assets/{ExecutionsView-BxsSXnlU.css → ExecutionsView-BbH7fInw.css} +14 -14
- package/dist/assets/{FixedCollectionParameter-Bhdk1XcN.js → FixedCollectionParameter-B9qkRreb.js} +2 -2
- package/dist/assets/{FixedCollectionParameter-D3u3aCCk.css → FixedCollectionParameter-D82suS6W.css} +43 -43
- package/dist/assets/{ForgotMyPasswordView-C-GNSvtY.js → ForgotMyPasswordView-C1kfYO_S.js} +3 -3
- package/dist/assets/{InfoAccordion-BpibqNsS.js → InfoAccordion-B_T19Esx.js} +7 -7
- package/dist/assets/{InfoAccordion-dxudNqVC.css → InfoAccordion-BuKidEQb.css} +13 -13
- package/dist/assets/{InsightsChartAverageRuntime-CwkkxEk1.js → InsightsChartAverageRuntime-IISuKphn.js} +4 -4
- package/dist/assets/{InsightsChartFailed-Di6uVDGI.js → InsightsChartFailed-DRHEEzJU.js} +5 -5
- package/dist/assets/{InsightsChartFailureRate-Bl5Av3Eu.js → InsightsChartFailureRate-D1L6WYZP.js} +5 -5
- package/dist/assets/{InsightsChartTimeSaved-Bcup49B9.js → InsightsChartTimeSaved-zCEK3kuY.js} +4 -4
- package/dist/assets/{InsightsChartTotal-DnEUMCMt.js → InsightsChartTotal-DW-EkNtK.js} +5 -5
- package/dist/assets/{InsightsDashboard-luJ134I5.js → InsightsDashboard-DfpOZ30S.js} +21 -21
- package/dist/assets/{InsightsDashboard-CYAx_0X9.css → InsightsDashboard-DyOwzHmP.css} +25 -25
- package/dist/assets/{InsightsPaywall-BEXUk0T6.js → InsightsPaywall-CKH7O7yd.js} +1 -1
- package/dist/assets/{InsightsSummary-DTFIhBF3.css → InsightsSummary-BazqPYQ0.css} +52 -52
- package/dist/assets/{InsightsSummary-XxOp2tas.js → InsightsSummary-ChZNMeJI.js} +11 -11
- package/dist/assets/{InsightsTableWorkflows-BTHSCwX8.css → InsightsTableWorkflows-D20Yb7ZW.css} +8 -8
- package/dist/assets/{InsightsTableWorkflows-B4re5fkw.js → InsightsTableWorkflows-DwLRkvVL.js} +7 -7
- package/dist/assets/{Logo-CSmRCqF2.css → Logo-BU1oDo5-.css} +16 -16
- package/dist/assets/{Logo-91TLwfCH.js → Logo-Bgcx_T7R.js} +7 -7
- package/dist/assets/{LogsPanel-BWP7EQ84.js → LogsPanel-BCUqUR29.js} +141 -1091
- package/dist/assets/{LogsPanel-BE9Gl1z0.css → LogsPanel-DVmpE0zV.css} +160 -592
- package/dist/assets/{MainHeader-DIiyDT8d.css → MainHeader-BqJwA1aC.css} +117 -117
- package/dist/assets/{MainHeader-BaSUt6eJ.js → MainHeader-BzhBs3En.js} +45 -45
- package/dist/assets/{MainSidebar-C4cyDjUV.js → MainSidebar-Bf48nTMR.js} +69 -1133
- package/dist/assets/{MainSidebar-BT8sXxNa.css → MainSidebar-tTEyXOKH.css} +107 -279
- package/dist/assets/NavigationDropdown-Wb7mPGhl.css +187 -0
- package/dist/assets/NavigationDropdown-kfg0blbZ.js +1116 -0
- package/dist/assets/{NodeCreation-C4gQlPqI.css → NodeCreation-B1fOtARK.css} +6 -6
- package/dist/assets/{NodeCreation-BkqOy8gF.js → NodeCreation-CsCoqAnU.js} +12 -10
- package/dist/assets/{NodeCreator-COTYfPaK.css → NodeCreator-CamUhvMk.css} +175 -174
- package/dist/assets/{NodeCreator-BppRTVIa.js → NodeCreator-D45qQQ4H.js} +60 -64
- package/dist/assets/{NodeDetailsView-BuhpInfo.js → NodeDetailsView-6bLQaVHT.js} +33 -32
- package/dist/assets/{NodeDetailsView-CBYV4Rrz.css → NodeDetailsView-D3QAo3SF.css} +61 -61
- package/dist/assets/{NodeDetailsViewV2-C0bp_zCD.js → NodeDetailsViewV2-DRCY6EX6.js} +58 -69
- package/dist/assets/{NodeDetailsViewV2-J_3cfdea.css → NodeDetailsViewV2-bvXejqU_.css} +67 -60
- package/dist/assets/{NodeView-Bsq1Fh0D.css → NodeView-BhF0ieQM.css} +85 -85
- package/dist/assets/{NodeView-B9LYqx2z.js → NodeView-C9PvNIUz.js} +106 -95
- package/dist/assets/{PageViewLayout-CJlzbuVj.css → PageViewLayout-BIiboMgG.css} +5 -5
- package/dist/assets/{PageViewLayout-B8D8Tkxn.js → PageViewLayout-DNBKIQ4N.js} +3 -3
- package/dist/assets/{PrebuiltAgentTemplatesView-DZAkWI4E.js → PrebuiltAgentTemplatesView-C0Uqhzma.js} +9 -9
- package/dist/assets/{PrebuiltAgentTemplatesView-COxu7Iih.css → PrebuiltAgentTemplatesView-jF7HvWnL.css} +14 -14
- package/dist/assets/{ProjectBreadcrumb-B1Hnf5da.css → ProjectBreadcrumb-BNbnf7Ir.css} +96 -96
- package/dist/assets/{ProjectBreadcrumb-HI65z9tX.js → ProjectBreadcrumb-w-ZQjuc2.js} +22 -22
- package/dist/assets/{ProjectHeader-BzekhnTR.js → ProjectHeader-DG_Z0cm0.js} +36 -18
- package/dist/assets/{ProjectHeader-BNMKpvzV.css → ProjectHeader-TKKq6OrY.css} +15 -15
- package/dist/assets/{ProjectSettings-BTP0xrzD.js → ProjectSettings-ClU4oaU3.js} +26 -26
- package/dist/assets/{ProjectSettings-Cj1kC16G.css → ProjectSettings-c2BBLEzY.css} +60 -60
- package/dist/assets/ProjectVariables-B76TEE5o.js +532 -0
- package/dist/assets/ProjectVariables-DtGcMnSf.css +293 -0
- package/dist/assets/{PushConnectionTracker.vue_vue_type_script_setup_true_lang-DflOVayR.js → PushConnectionTracker.vue_vue_type_script_setup_true_lang-C7mROgKI.js} +1 -1
- package/dist/assets/{ResourcesListLayout-Dm7w49bu.css → ResourcesListLayout-CY-G3BmN.css} +42 -42
- package/dist/assets/{ResourcesListLayout-CnidC9EV.js → ResourcesListLayout-Db6ys3gY.js} +25 -21
- package/dist/assets/{RunDataJson-DEs4Ql5T.js → RunDataJson-CXyTvX4C.js} +8 -8
- package/dist/assets/{RunDataJson-BH9HLoGC.css → RunDataJson-PAkTmkZf.css} +19 -19
- package/dist/assets/{RunDataJsonActions-Ct02vlvz.js → RunDataJsonActions-C5Cvqjc_.js} +2 -2
- package/dist/assets/{RunDataJsonActions-B2jW3_UG.css → RunDataJsonActions-CZx7rSSE.css} +2 -2
- package/dist/assets/{RunDataParsedAiContent-Bl49tvwG.js → RunDataParsedAiContent-BkNc-yBy.js} +13 -112
- package/dist/assets/{RunDataParsedAiContent-wfIiKsq7.css → RunDataParsedAiContent-CvjNCtpG.css} +37 -37
- package/dist/assets/{RunDataSearch-D8DXH4rw.js → RunDataSearch-CBsWlIj1.js} +4 -4
- package/dist/assets/{RunDataSearch-2eEalFoi.css → RunDataSearch-CPo36NE_.css} +10 -10
- package/dist/assets/{RunDataTable-BZzteeuj.css → RunDataTable-C4QnrVVF.css} +104 -104
- package/dist/assets/{RunDataTable-CdxTnMd4.js → RunDataTable-FKsWIgfg.js} +33 -33
- package/dist/assets/{SamlOnboarding-CLFzc3D4.js → SamlOnboarding--cNSub8q.js} +3 -3
- package/dist/assets/{SelectedItemsInfo-Dl4uynXs.css → SelectedItemsInfo-B6Rq6uIe.css} +7 -7
- package/dist/assets/{SelectedItemsInfo-Dd3HKZ6z.js → SelectedItemsInfo-BOQrOU8d.js} +3 -3
- package/dist/assets/{SettingsApiView-CmU8R9-c.js → SettingsApiView-DkPpP_Xa.js} +14 -14
- package/dist/assets/{SettingsApiView-k1hALKCX.css → SettingsApiView-Dtl_N9mK.css} +31 -31
- package/dist/assets/{SettingsCommunityNodesView-CAggjsaT.css → SettingsCommunityNodesView-CVQjV37D.css} +31 -31
- package/dist/assets/{SettingsCommunityNodesView-CjgVPZAy.js → SettingsCommunityNodesView-CypE1wWW.js} +21 -21
- package/dist/assets/{SettingsExternalSecrets-BAX9ENm9.css → SettingsExternalSecrets-CaiOf7cD.css} +12 -12
- package/dist/assets/{SettingsExternalSecrets-Baxom4lP.js → SettingsExternalSecrets-Dw8qeVlx.js} +8 -8
- package/dist/assets/{SettingsLdapView-BQUfzAsN.js → SettingsLdapView-CQXdsBfZ.js} +8 -8
- package/dist/assets/{SettingsLdapView-D0SUO3ai.css → SettingsLdapView-KgMO_1GA.css} +17 -17
- package/dist/assets/{SettingsLogStreamingView-Bq2IwWDt.js → SettingsLogStreamingView-B-0r_ZsJ.js} +7 -7
- package/dist/assets/{SettingsLogStreamingView-CflEMmu9.css → SettingsLogStreamingView-xo-rTSA0.css} +12 -12
- package/dist/assets/SettingsMCPView-BBO_ZyBU.css +552 -0
- package/dist/assets/{SettingsMCPView-D3BOHCtS.js → SettingsMCPView-Bbdsa8lu.js} +200 -126
- package/dist/assets/{SettingsPersonalView-Bt8bL5tJ.css → SettingsPersonalView-D6LtKnaF.css} +23 -23
- package/dist/assets/{SettingsPersonalView-Bbn0olns.js → SettingsPersonalView-VU8Kh83i.js} +10 -10
- package/dist/assets/{SettingsSourceControl-BBxJXbFC.css → SettingsSourceControl-C6pfOcuv.css} +40 -40
- package/dist/assets/{SettingsSourceControl-CC_Pak2B.js → SettingsSourceControl-CJvfstK0.js} +15 -15
- package/dist/assets/{SettingsSso-vViqB8oe.js → SettingsSso-v2r9nirX.js} +7 -7
- package/dist/assets/{SettingsSso-D4HKPLvV.css → SettingsSso-w7Iz4Luy.css} +25 -25
- package/dist/assets/{SettingsUsageAndPlan-BtE-s9Vb.js → SettingsUsageAndPlan-BhgN2Hcc.js} +13 -13
- package/dist/assets/{SettingsUsageAndPlan-82J0IcdW.css → SettingsUsageAndPlan-Cct79Zta.css} +34 -34
- package/dist/assets/{SettingsUsersView-DVdCq-SX.js → SettingsUsersView-CApxIHLx.js} +16 -16
- package/dist/assets/{SettingsUsersView-BG7JdfYz.css → SettingsUsersView-CfJcVjkl.css} +28 -28
- package/dist/assets/{SettingsView-BHLJBEJF.css → SettingsView-C4aA4kVV.css} +18 -18
- package/dist/assets/{SettingsView-ByNIw76r.js → SettingsView-Dru_1OUG.js} +8 -8
- package/dist/assets/{SetupView-XbSIMu9B.js → SetupView-Bh4XpOq8.js} +3 -3
- package/dist/assets/{SetupWorkflowCredentialsButton-CUzPtmot.js → SetupWorkflowCredentialsButton-6T0EX3L6.js} +1 -1
- package/dist/assets/{SetupWorkflowFromTemplateView-ZPJL_m2F.css → SetupWorkflowFromTemplateView-CU2iGJTa.css} +11 -11
- package/dist/assets/{SetupWorkflowFromTemplateView-CQcMUEt1.js → SetupWorkflowFromTemplateView-EJjV79MY.js} +8 -8
- package/dist/assets/{SigninView-D57wRRHz.css → SigninView-BQgsTN8o.css} +13 -13
- package/dist/assets/{SigninView-C8qujIEW.js → SigninView-DKLEwC5i.js} +9 -9
- package/dist/assets/{SignoutView-BCsXtAKk.js → SignoutView-xza1c_rm.js} +1 -1
- package/dist/assets/{SignupView-By-KjS2P.js → SignupView-DnZEsYnl.js} +3 -3
- package/dist/assets/{TableBase-CX4nZLla.js → TableBase-B1eTsHT8.js} +3 -3
- package/dist/assets/{TableBase-Bf42_9Yp.css → TableBase-CUZbI5pm.css} +24 -24
- package/dist/assets/{Tags-CCemj7t9.css → Tags-6vh_jPIG.css} +4 -4
- package/dist/assets/{Tags-D03vT_rK.js → Tags-DpegReyF.js} +2 -2
- package/dist/assets/{TemplateDetails-DyUqVhf2.css → TemplateDetails-DfyKyMyy.css} +13 -13
- package/dist/assets/{TemplateDetails-CDaB-6oH.js → TemplateDetails-lJNnuxdO.js} +8 -8
- package/dist/assets/{TemplateList-DNBeV62H.js → TemplateList-BHbHvx-_.js} +24 -24
- package/dist/assets/{TemplateList-XNW-2Ugr.css → TemplateList-CNUtq0N7.css} +49 -49
- package/dist/assets/{TemplatesCollectionView-BTk7wBlq.js → TemplatesCollectionView-BijeS4Al.js} +13 -13
- package/dist/assets/{TemplatesCollectionView-2q1rzsOG.css → TemplatesCollectionView-klb8FT9y.css} +13 -13
- package/dist/assets/{TemplatesSearchView-DtyBPi6V.js → TemplatesSearchView-Db14LD0F.js} +18 -18
- package/dist/assets/{TemplatesSearchView-DETaMpDt.css → TemplatesSearchView-gPmmtwoU.css} +50 -50
- package/dist/assets/{TemplatesView-BTid6_ga.js → TemplatesView-BTxutjLU.js} +8 -8
- package/dist/assets/{TemplatesView-Cyu28Dlo.css → TemplatesView-BgdyYmrL.css} +21 -21
- package/dist/assets/{TemplatesWorkflowView-DpIiJjJp.css → TemplatesWorkflowView-CBjRBbmw.css} +17 -17
- package/dist/assets/{TemplatesWorkflowView-CLr9pY-p.js → TemplatesWorkflowView-xFif3ij7.js} +14 -14
- package/dist/assets/{TestRunDetailView-BDPhxOvY.js → TestRunDetailView-BRfLAqZW.js} +36 -36
- package/dist/assets/{TestRunDetailView--lZbJq4u.css → TestRunDetailView-D_a9QpSQ.css} +93 -93
- package/dist/assets/{TriggerPanel-CQgUdcjv.css → TriggerPanel-BbB_P9ZT.css} +158 -236
- package/dist/assets/TriggerPanel-nPxZrihp.js +1633 -0
- package/dist/assets/VariablesUsageBadge-BaTs74dX.js +39 -0
- package/dist/assets/VariablesUsageBadge-C_yi7Lw5.css +129 -0
- package/dist/assets/{VariablesView-DsA8Mqxt.js → VariablesView-BeHRHeb1.js} +11 -52
- package/dist/assets/VariablesView-zN910qd9.css +272 -0
- package/dist/assets/{WorkerView-BrSoYcbf.css → WorkerView-4m_NaoAx.css} +47 -47
- package/dist/assets/{WorkerView-CDijwoCe.js → WorkerView-LAFQqBrx.js} +39 -39
- package/dist/assets/{WorkflowActivator-DKpc2Acz.js → WorkflowActivator-BdIK7K-g.js} +7 -7
- package/dist/assets/{WorkflowActivator-DPDRDtQG.css → WorkflowActivator-DBJbtrBD.css} +9 -9
- package/dist/assets/{WorkflowExecutionsInfoAccordion-53bC-IXN.css → WorkflowExecutionsInfoAccordion-CEOvJ-SX.css} +11 -11
- package/dist/assets/{WorkflowExecutionsInfoAccordion-Fedus-Da.js → WorkflowExecutionsInfoAccordion-kaRsv7EW.js} +4 -4
- package/dist/assets/{WorkflowExecutionsLandingPage-BpO-BoFq.js → WorkflowExecutionsLandingPage-BdMQTvlG.js} +6 -6
- package/dist/assets/{WorkflowExecutionsLandingPage-Bm_hJMl4.css → WorkflowExecutionsLandingPage-DMldlKod.css} +8 -8
- package/dist/assets/{WorkflowExecutionsPreview-Cd4BrS-0.css → WorkflowExecutionsPreview-CkEakQp2.css} +90 -90
- package/dist/assets/{WorkflowExecutionsPreview-DzvPOJOY.js → WorkflowExecutionsPreview-DoAsEchV.js} +46 -46
- package/dist/assets/{WorkflowExecutionsView-DDoqUcYQ.js → WorkflowExecutionsView-Cl1624bM.js} +34 -34
- package/dist/assets/{WorkflowExecutionsView-Bjkudb8L.css → WorkflowExecutionsView-CqRMwPwF.css} +82 -82
- package/dist/assets/{WorkflowHistory-7Ad0Va7M.css → WorkflowHistory-BmerBiKz.css} +71 -71
- package/dist/assets/{WorkflowHistory-BhU1Rfch.js → WorkflowHistory-DcGYJnXH.js} +21 -21
- package/dist/assets/{WorkflowOnboardingView-BqWP7FwD.js → WorkflowOnboardingView-Ci32PYxq.js} +1 -1
- package/dist/assets/{WorkflowPreview-B1W62QhC.js → WorkflowPreview-B8KvmFRP.js} +8 -8
- package/dist/assets/{WorkflowPreview-CIOAVgxK.css → WorkflowPreview-Bt03akXc.css} +8 -8
- package/dist/assets/{WorkflowsView-B-pO60w1.js → WorkflowsView-BFZrfitq.js} +79 -83
- package/dist/assets/{WorkflowsView-B8UKso1P.css → WorkflowsView-GJhG9SFw.css} +144 -144
- package/dist/assets/{chartjs.utils-DpK-YRAM.js → chartjs.utils-nj8CCZPZ.js} +10 -10
- package/dist/assets/chat.utils-irsHFh8G.js +224 -0
- package/dist/assets/{core-HZaYo_tU.js → core-DsTi4w-I.js} +1 -1
- package/dist/assets/{evaluation-ZbMdquW3.css → evaluation-BpIei8SG.css} +26 -26
- package/dist/assets/{evaluation.constants-DfiJmRyk.js → evaluation.constants-DjPrCMEi.js} +9 -9
- package/dist/assets/{global-link-actions-DdzlWwjw.js → global-link-actions-DSKsOCqo.js} +1 -1
- package/dist/assets/{index-CFiA0qjr.css → index-BvbpnRSm.css} +6384 -6442
- package/dist/assets/{index-MTM6BbvW.js → index-C2iJCVYf.js} +13722 -15461
- package/dist/assets/{index-P3-xVlwI.js → index-DkYsG7tJ.js} +1 -1
- package/dist/assets/mcp.store-LrK5gI5Y.js +85 -0
- package/dist/assets/{pickBy-DUKPNRlc.js → pickBy-DSRQa7Nf.js} +1 -1
- package/dist/assets/{readyToRunWorkflows.store-nzu6XNAP.js → readyToRunWorkflows.store-ia-2Nluj.js} +2 -2
- package/dist/assets/{readyToRunWorkflowsV2.store-1dRkG6XV.js → readyToRunWorkflowsV2.store-CyBbWYeG.js} +41 -3
- package/dist/assets/{templateActions-BePunFaZ.js → templateActions-CqLHZUrv.js} +1 -1
- package/dist/assets/{useBeforeUnload-DsbgbymL.js → useBeforeUnload-D788NzAs.js} +1 -1
- package/dist/assets/{useExecutionDebugging-yUnwhnYk.js → useExecutionDebugging-DWOhAQo4.js} +1 -1
- package/dist/assets/{useImportCurlCommand-DcFIVp7Y.js → useImportCurlCommand-BQs5GVHJ.js} +1 -1
- package/dist/assets/useLogsTreeExpand-2auAOTOK.js +1080 -0
- package/dist/assets/useLogsTreeExpand-BZb1m-U7.css +554 -0
- package/dist/assets/{useProjectPages-JCNZbA2u.js → useProjectPages-BRhbuYJH.js} +1 -1
- package/dist/assets/{usePushConnection-_VL-61pH.js → usePushConnection-DgYz_QNH.js} +17 -19
- package/dist/assets/{useWorkflowsCache-DwIv_I-Z.js → useWorkflowsCache-C2_YYjSX.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/scripts/fetch-node-popularity.mjs +13 -1
- package/turbo.json +2 -1
- package/dist/assets/CollectionParameter-BbxTTmMu.js +0 -4
- package/dist/assets/ConsumedTokensDetails.vue_vue_type_script_setup_true_lang-Bv40HGJu.js +0 -44
- package/dist/assets/EntityNotFound-pTnVFOv-.css +0 -10
- package/dist/assets/EntityUnAuthorised-CHl9g0Ry.css +0 -10
- package/dist/assets/SettingsMCPView-B7NzLvT3.css +0 -378
- package/dist/assets/TriggerPanel-BS69Ky8P.js +0 -3343
- package/dist/assets/VariablesView-BMHdLce7.css +0 -400
|
@@ -1,1086 +1,6 @@
|
|
|
1
|
-
import { b7 as
|
|
2
|
-
import { L as Logo } from "./Logo-
|
|
3
|
-
|
|
4
|
-
constructor(parent, domNode) {
|
|
5
|
-
this.parent = parent;
|
|
6
|
-
this.domNode = domNode;
|
|
7
|
-
this.subIndex = 0;
|
|
8
|
-
this.subIndex = 0;
|
|
9
|
-
this.init();
|
|
10
|
-
}
|
|
11
|
-
init() {
|
|
12
|
-
this.subMenuItems = this.domNode.querySelectorAll("li");
|
|
13
|
-
this.addListeners();
|
|
14
|
-
}
|
|
15
|
-
gotoSubIndex(idx) {
|
|
16
|
-
if (idx === this.subMenuItems.length) {
|
|
17
|
-
idx = 0;
|
|
18
|
-
} else if (idx < 0) {
|
|
19
|
-
idx = this.subMenuItems.length - 1;
|
|
20
|
-
}
|
|
21
|
-
this.subMenuItems[idx].focus();
|
|
22
|
-
this.subIndex = idx;
|
|
23
|
-
}
|
|
24
|
-
addListeners() {
|
|
25
|
-
const parentNode = this.parent.domNode;
|
|
26
|
-
Array.prototype.forEach.call(this.subMenuItems, (el) => {
|
|
27
|
-
el.addEventListener("keydown", (event) => {
|
|
28
|
-
let prevDef = false;
|
|
29
|
-
switch (event.code) {
|
|
30
|
-
case EVENT_CODE.down: {
|
|
31
|
-
this.gotoSubIndex(this.subIndex + 1);
|
|
32
|
-
prevDef = true;
|
|
33
|
-
break;
|
|
34
|
-
}
|
|
35
|
-
case EVENT_CODE.up: {
|
|
36
|
-
this.gotoSubIndex(this.subIndex - 1);
|
|
37
|
-
prevDef = true;
|
|
38
|
-
break;
|
|
39
|
-
}
|
|
40
|
-
case EVENT_CODE.tab: {
|
|
41
|
-
triggerEvent(parentNode, "mouseleave");
|
|
42
|
-
break;
|
|
43
|
-
}
|
|
44
|
-
case EVENT_CODE.enter:
|
|
45
|
-
case EVENT_CODE.space: {
|
|
46
|
-
prevDef = true;
|
|
47
|
-
event.currentTarget.click();
|
|
48
|
-
break;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
if (prevDef) {
|
|
52
|
-
event.preventDefault();
|
|
53
|
-
event.stopPropagation();
|
|
54
|
-
}
|
|
55
|
-
return false;
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
let MenuItem$1 = class MenuItem {
|
|
61
|
-
constructor(domNode, namespace) {
|
|
62
|
-
this.domNode = domNode;
|
|
63
|
-
this.submenu = null;
|
|
64
|
-
this.submenu = null;
|
|
65
|
-
this.init(namespace);
|
|
66
|
-
}
|
|
67
|
-
init(namespace) {
|
|
68
|
-
this.domNode.setAttribute("tabindex", "0");
|
|
69
|
-
const menuChild = this.domNode.querySelector(`.${namespace}-menu`);
|
|
70
|
-
if (menuChild) {
|
|
71
|
-
this.submenu = new SubMenu$1(this, menuChild);
|
|
72
|
-
}
|
|
73
|
-
this.addListeners();
|
|
74
|
-
}
|
|
75
|
-
addListeners() {
|
|
76
|
-
this.domNode.addEventListener("keydown", (event) => {
|
|
77
|
-
let prevDef = false;
|
|
78
|
-
switch (event.code) {
|
|
79
|
-
case EVENT_CODE.down: {
|
|
80
|
-
triggerEvent(event.currentTarget, "mouseenter");
|
|
81
|
-
this.submenu && this.submenu.gotoSubIndex(0);
|
|
82
|
-
prevDef = true;
|
|
83
|
-
break;
|
|
84
|
-
}
|
|
85
|
-
case EVENT_CODE.up: {
|
|
86
|
-
triggerEvent(event.currentTarget, "mouseenter");
|
|
87
|
-
this.submenu && this.submenu.gotoSubIndex(this.submenu.subMenuItems.length - 1);
|
|
88
|
-
prevDef = true;
|
|
89
|
-
break;
|
|
90
|
-
}
|
|
91
|
-
case EVENT_CODE.tab: {
|
|
92
|
-
triggerEvent(event.currentTarget, "mouseleave");
|
|
93
|
-
break;
|
|
94
|
-
}
|
|
95
|
-
case EVENT_CODE.enter:
|
|
96
|
-
case EVENT_CODE.space: {
|
|
97
|
-
prevDef = true;
|
|
98
|
-
event.currentTarget.click();
|
|
99
|
-
break;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
if (prevDef) {
|
|
103
|
-
event.preventDefault();
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
let Menu$1 = class Menu {
|
|
109
|
-
constructor(domNode, namespace) {
|
|
110
|
-
this.domNode = domNode;
|
|
111
|
-
this.init(namespace);
|
|
112
|
-
}
|
|
113
|
-
init(namespace) {
|
|
114
|
-
const menuChildren = this.domNode.childNodes;
|
|
115
|
-
Array.from(menuChildren).forEach((child) => {
|
|
116
|
-
if (child.nodeType === 1) {
|
|
117
|
-
new MenuItem$1(child, namespace);
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
const _sfc_main$9 = defineComponent({
|
|
123
|
-
name: "ElMenuCollapseTransition",
|
|
124
|
-
setup() {
|
|
125
|
-
const ns = useNamespace("menu");
|
|
126
|
-
const listeners = {
|
|
127
|
-
onBeforeEnter: (el) => el.style.opacity = "0.2",
|
|
128
|
-
onEnter(el, done) {
|
|
129
|
-
addClass(el, `${ns.namespace.value}-opacity-transition`);
|
|
130
|
-
el.style.opacity = "1";
|
|
131
|
-
done();
|
|
132
|
-
},
|
|
133
|
-
onAfterEnter(el) {
|
|
134
|
-
removeClass(el, `${ns.namespace.value}-opacity-transition`);
|
|
135
|
-
el.style.opacity = "";
|
|
136
|
-
},
|
|
137
|
-
onBeforeLeave(el) {
|
|
138
|
-
if (!el.dataset) {
|
|
139
|
-
el.dataset = {};
|
|
140
|
-
}
|
|
141
|
-
if (hasClass(el, ns.m("collapse"))) {
|
|
142
|
-
removeClass(el, ns.m("collapse"));
|
|
143
|
-
el.dataset.oldOverflow = el.style.overflow;
|
|
144
|
-
el.dataset.scrollWidth = el.clientWidth.toString();
|
|
145
|
-
addClass(el, ns.m("collapse"));
|
|
146
|
-
} else {
|
|
147
|
-
addClass(el, ns.m("collapse"));
|
|
148
|
-
el.dataset.oldOverflow = el.style.overflow;
|
|
149
|
-
el.dataset.scrollWidth = el.clientWidth.toString();
|
|
150
|
-
removeClass(el, ns.m("collapse"));
|
|
151
|
-
}
|
|
152
|
-
el.style.width = `${el.scrollWidth}px`;
|
|
153
|
-
el.style.overflow = "hidden";
|
|
154
|
-
},
|
|
155
|
-
onLeave(el) {
|
|
156
|
-
addClass(el, "horizontal-collapse-transition");
|
|
157
|
-
el.style.width = `${el.dataset.scrollWidth}px`;
|
|
158
|
-
}
|
|
159
|
-
};
|
|
160
|
-
return {
|
|
161
|
-
listeners
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
});
|
|
165
|
-
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
166
|
-
return openBlock(), createBlock(Transition, mergeProps({ mode: "out-in" }, _ctx.listeners), {
|
|
167
|
-
default: withCtx(() => [
|
|
168
|
-
renderSlot(_ctx.$slots, "default")
|
|
169
|
-
]),
|
|
170
|
-
_: 3
|
|
171
|
-
}, 16);
|
|
172
|
-
}
|
|
173
|
-
var ElMenuCollapseTransition = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$2], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);
|
|
174
|
-
function useMenu(instance, currentIndex) {
|
|
175
|
-
const indexPath = computed(() => {
|
|
176
|
-
let parent = instance.parent;
|
|
177
|
-
const path = [currentIndex.value];
|
|
178
|
-
while (parent.type.name !== "ElMenu") {
|
|
179
|
-
if (parent.props.index) {
|
|
180
|
-
path.unshift(parent.props.index);
|
|
181
|
-
}
|
|
182
|
-
parent = parent.parent;
|
|
183
|
-
}
|
|
184
|
-
return path;
|
|
185
|
-
});
|
|
186
|
-
const parentMenu = computed(() => {
|
|
187
|
-
let parent = instance.parent;
|
|
188
|
-
while (parent && !["ElMenu", "ElSubMenu"].includes(parent.type.name)) {
|
|
189
|
-
parent = parent.parent;
|
|
190
|
-
}
|
|
191
|
-
return parent;
|
|
192
|
-
});
|
|
193
|
-
return {
|
|
194
|
-
parentMenu,
|
|
195
|
-
indexPath
|
|
196
|
-
};
|
|
197
|
-
}
|
|
198
|
-
function useMenuColor(props) {
|
|
199
|
-
const menuBarColor = computed(() => {
|
|
200
|
-
const color = props.backgroundColor;
|
|
201
|
-
if (!color) {
|
|
202
|
-
return "";
|
|
203
|
-
} else {
|
|
204
|
-
return new TinyColor(color).shade(20).toString();
|
|
205
|
-
}
|
|
206
|
-
});
|
|
207
|
-
return menuBarColor;
|
|
208
|
-
}
|
|
209
|
-
const useMenuCssVar = (props, level) => {
|
|
210
|
-
const ns = useNamespace("menu");
|
|
211
|
-
return computed(() => {
|
|
212
|
-
return ns.cssVarBlock({
|
|
213
|
-
"text-color": props.textColor || "",
|
|
214
|
-
"hover-text-color": props.textColor || "",
|
|
215
|
-
"bg-color": props.backgroundColor || "",
|
|
216
|
-
"hover-bg-color": useMenuColor(props).value || "",
|
|
217
|
-
"active-color": props.activeTextColor || "",
|
|
218
|
-
level: `${level}`
|
|
219
|
-
});
|
|
220
|
-
});
|
|
221
|
-
};
|
|
222
|
-
const subMenuProps = buildProps({
|
|
223
|
-
index: {
|
|
224
|
-
type: String,
|
|
225
|
-
required: true
|
|
226
|
-
},
|
|
227
|
-
showTimeout: {
|
|
228
|
-
type: Number,
|
|
229
|
-
default: 300
|
|
230
|
-
},
|
|
231
|
-
hideTimeout: {
|
|
232
|
-
type: Number,
|
|
233
|
-
default: 300
|
|
234
|
-
},
|
|
235
|
-
popperClass: String,
|
|
236
|
-
disabled: Boolean,
|
|
237
|
-
popperAppendToBody: {
|
|
238
|
-
type: Boolean,
|
|
239
|
-
default: void 0
|
|
240
|
-
},
|
|
241
|
-
teleported: {
|
|
242
|
-
type: Boolean,
|
|
243
|
-
default: void 0
|
|
244
|
-
},
|
|
245
|
-
popperOffset: {
|
|
246
|
-
type: Number,
|
|
247
|
-
default: 6
|
|
248
|
-
},
|
|
249
|
-
expandCloseIcon: {
|
|
250
|
-
type: iconPropType
|
|
251
|
-
},
|
|
252
|
-
expandOpenIcon: {
|
|
253
|
-
type: iconPropType
|
|
254
|
-
},
|
|
255
|
-
collapseCloseIcon: {
|
|
256
|
-
type: iconPropType
|
|
257
|
-
},
|
|
258
|
-
collapseOpenIcon: {
|
|
259
|
-
type: iconPropType
|
|
260
|
-
}
|
|
261
|
-
});
|
|
262
|
-
const COMPONENT_NAME$2 = "ElSubMenu";
|
|
263
|
-
var SubMenu2 = defineComponent({
|
|
264
|
-
name: COMPONENT_NAME$2,
|
|
265
|
-
props: subMenuProps,
|
|
266
|
-
setup(props, { slots, expose }) {
|
|
267
|
-
useDeprecated({
|
|
268
|
-
from: "popper-append-to-body",
|
|
269
|
-
replacement: "teleported",
|
|
270
|
-
scope: COMPONENT_NAME$2,
|
|
271
|
-
version: "2.3.0",
|
|
272
|
-
ref: "https://element-plus.org/en-US/component/menu.html#submenu-attributes"
|
|
273
|
-
}, computed(() => props.popperAppendToBody !== void 0));
|
|
274
|
-
const instance = getCurrentInstance();
|
|
275
|
-
const { indexPath, parentMenu } = useMenu(instance, computed(() => props.index));
|
|
276
|
-
const nsMenu = useNamespace("menu");
|
|
277
|
-
const nsSubMenu = useNamespace("sub-menu");
|
|
278
|
-
const rootMenu = inject("rootMenu");
|
|
279
|
-
if (!rootMenu)
|
|
280
|
-
throwError(COMPONENT_NAME$2, "can not inject root menu");
|
|
281
|
-
const subMenu = inject(`subMenu:${parentMenu.value.uid}`);
|
|
282
|
-
if (!subMenu)
|
|
283
|
-
throwError(COMPONENT_NAME$2, "can not inject sub menu");
|
|
284
|
-
const items = ref({});
|
|
285
|
-
const subMenus = ref({});
|
|
286
|
-
let timeout;
|
|
287
|
-
const mouseInChild = ref(false);
|
|
288
|
-
const verticalTitleRef = ref();
|
|
289
|
-
const vPopper = ref(null);
|
|
290
|
-
const currentPlacement = computed(() => mode.value === "horizontal" && isFirstLevel.value ? "bottom-start" : "right-start");
|
|
291
|
-
const subMenuTitleIcon = computed(() => {
|
|
292
|
-
return mode.value === "horizontal" && isFirstLevel.value || mode.value === "vertical" && !rootMenu.props.collapse ? props.expandCloseIcon && props.expandOpenIcon ? opened.value ? props.expandOpenIcon : props.expandCloseIcon : arrow_down_default : props.collapseCloseIcon && props.collapseOpenIcon ? opened.value ? props.collapseOpenIcon : props.collapseCloseIcon : arrow_right_default;
|
|
293
|
-
});
|
|
294
|
-
const isFirstLevel = computed(() => {
|
|
295
|
-
return subMenu.level === 0;
|
|
296
|
-
});
|
|
297
|
-
const appendToBody = computed(() => {
|
|
298
|
-
var _a;
|
|
299
|
-
const value = (_a = props.teleported) != null ? _a : props.popperAppendToBody;
|
|
300
|
-
return value === void 0 ? isFirstLevel.value : value;
|
|
301
|
-
});
|
|
302
|
-
const menuTransitionName = computed(() => rootMenu.props.collapse ? `${nsMenu.namespace.value}-zoom-in-left` : `${nsMenu.namespace.value}-zoom-in-top`);
|
|
303
|
-
const fallbackPlacements = computed(() => mode.value === "horizontal" && isFirstLevel.value ? [
|
|
304
|
-
"bottom-start",
|
|
305
|
-
"bottom-end",
|
|
306
|
-
"top-start",
|
|
307
|
-
"top-end",
|
|
308
|
-
"right-start",
|
|
309
|
-
"left-start"
|
|
310
|
-
] : [
|
|
311
|
-
"right-start",
|
|
312
|
-
"right",
|
|
313
|
-
"right-end",
|
|
314
|
-
"left-start",
|
|
315
|
-
"bottom-start",
|
|
316
|
-
"bottom-end",
|
|
317
|
-
"top-start",
|
|
318
|
-
"top-end"
|
|
319
|
-
]);
|
|
320
|
-
const opened = computed(() => rootMenu.openedMenus.includes(props.index));
|
|
321
|
-
const active = computed(() => {
|
|
322
|
-
let isActive = false;
|
|
323
|
-
Object.values(items.value).forEach((item2) => {
|
|
324
|
-
if (item2.active) {
|
|
325
|
-
isActive = true;
|
|
326
|
-
}
|
|
327
|
-
});
|
|
328
|
-
Object.values(subMenus.value).forEach((subItem) => {
|
|
329
|
-
if (subItem.active) {
|
|
330
|
-
isActive = true;
|
|
331
|
-
}
|
|
332
|
-
});
|
|
333
|
-
return isActive;
|
|
334
|
-
});
|
|
335
|
-
const mode = computed(() => rootMenu.props.mode);
|
|
336
|
-
const item = reactive({
|
|
337
|
-
index: props.index,
|
|
338
|
-
indexPath,
|
|
339
|
-
active
|
|
340
|
-
});
|
|
341
|
-
const ulStyle = useMenuCssVar(rootMenu.props, subMenu.level + 1);
|
|
342
|
-
const doDestroy = () => {
|
|
343
|
-
var _a, _b, _c;
|
|
344
|
-
return (_c = (_b = (_a = vPopper.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.popperInstanceRef) == null ? void 0 : _c.destroy();
|
|
345
|
-
};
|
|
346
|
-
const handleCollapseToggle = (value) => {
|
|
347
|
-
if (!value) {
|
|
348
|
-
doDestroy();
|
|
349
|
-
}
|
|
350
|
-
};
|
|
351
|
-
const handleClick = () => {
|
|
352
|
-
if (rootMenu.props.menuTrigger === "hover" && rootMenu.props.mode === "horizontal" || rootMenu.props.collapse && rootMenu.props.mode === "vertical" || props.disabled)
|
|
353
|
-
return;
|
|
354
|
-
rootMenu.handleSubMenuClick({
|
|
355
|
-
index: props.index,
|
|
356
|
-
indexPath: indexPath.value,
|
|
357
|
-
active: active.value
|
|
358
|
-
});
|
|
359
|
-
};
|
|
360
|
-
const handleMouseenter = (event, showTimeout = props.showTimeout) => {
|
|
361
|
-
var _a;
|
|
362
|
-
if (event.type === "focus") {
|
|
363
|
-
return;
|
|
364
|
-
}
|
|
365
|
-
if (rootMenu.props.menuTrigger === "click" && rootMenu.props.mode === "horizontal" || !rootMenu.props.collapse && rootMenu.props.mode === "vertical" || props.disabled) {
|
|
366
|
-
return;
|
|
367
|
-
}
|
|
368
|
-
subMenu.mouseInChild.value = true;
|
|
369
|
-
timeout == null ? void 0 : timeout();
|
|
370
|
-
({ stop: timeout } = useTimeoutFn(() => {
|
|
371
|
-
rootMenu.openMenu(props.index, indexPath.value);
|
|
372
|
-
}, showTimeout));
|
|
373
|
-
if (appendToBody.value) {
|
|
374
|
-
(_a = parentMenu.value.vnode.el) == null ? void 0 : _a.dispatchEvent(new MouseEvent("mouseenter"));
|
|
375
|
-
}
|
|
376
|
-
};
|
|
377
|
-
const handleMouseleave = (deepDispatch = false) => {
|
|
378
|
-
var _a, _b;
|
|
379
|
-
if (rootMenu.props.menuTrigger === "click" && rootMenu.props.mode === "horizontal" || !rootMenu.props.collapse && rootMenu.props.mode === "vertical") {
|
|
380
|
-
return;
|
|
381
|
-
}
|
|
382
|
-
timeout == null ? void 0 : timeout();
|
|
383
|
-
subMenu.mouseInChild.value = false;
|
|
384
|
-
({ stop: timeout } = useTimeoutFn(() => !mouseInChild.value && rootMenu.closeMenu(props.index, indexPath.value), props.hideTimeout));
|
|
385
|
-
if (appendToBody.value && deepDispatch) {
|
|
386
|
-
if (((_a = instance.parent) == null ? void 0 : _a.type.name) === "ElSubMenu") {
|
|
387
|
-
(_b = subMenu.handleMouseleave) == null ? void 0 : _b.call(subMenu, true);
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
};
|
|
391
|
-
watch(() => rootMenu.props.collapse, (value) => handleCollapseToggle(Boolean(value)));
|
|
392
|
-
{
|
|
393
|
-
const addSubMenu = (item2) => {
|
|
394
|
-
subMenus.value[item2.index] = item2;
|
|
395
|
-
};
|
|
396
|
-
const removeSubMenu = (item2) => {
|
|
397
|
-
delete subMenus.value[item2.index];
|
|
398
|
-
};
|
|
399
|
-
provide(`subMenu:${instance.uid}`, {
|
|
400
|
-
addSubMenu,
|
|
401
|
-
removeSubMenu,
|
|
402
|
-
handleMouseleave,
|
|
403
|
-
mouseInChild,
|
|
404
|
-
level: subMenu.level + 1
|
|
405
|
-
});
|
|
406
|
-
}
|
|
407
|
-
expose({
|
|
408
|
-
opened
|
|
409
|
-
});
|
|
410
|
-
onMounted(() => {
|
|
411
|
-
rootMenu.addSubMenu(item);
|
|
412
|
-
subMenu.addSubMenu(item);
|
|
413
|
-
});
|
|
414
|
-
onBeforeUnmount(() => {
|
|
415
|
-
subMenu.removeSubMenu(item);
|
|
416
|
-
rootMenu.removeSubMenu(item);
|
|
417
|
-
});
|
|
418
|
-
return () => {
|
|
419
|
-
var _a;
|
|
420
|
-
const titleTag = [
|
|
421
|
-
(_a = slots.title) == null ? void 0 : _a.call(slots),
|
|
422
|
-
h(ElIcon, {
|
|
423
|
-
class: nsSubMenu.e("icon-arrow"),
|
|
424
|
-
style: {
|
|
425
|
-
transform: opened.value ? props.expandCloseIcon && props.expandOpenIcon || props.collapseCloseIcon && props.collapseOpenIcon && rootMenu.props.collapse ? "none" : "rotateZ(180deg)" : "none"
|
|
426
|
-
}
|
|
427
|
-
}, {
|
|
428
|
-
default: () => isString(subMenuTitleIcon.value) ? h(instance.appContext.components[subMenuTitleIcon.value]) : h(subMenuTitleIcon.value)
|
|
429
|
-
})
|
|
430
|
-
];
|
|
431
|
-
const child = rootMenu.isMenuPopup ? h(ElTooltip, {
|
|
432
|
-
ref: vPopper,
|
|
433
|
-
visible: opened.value,
|
|
434
|
-
effect: "light",
|
|
435
|
-
pure: true,
|
|
436
|
-
offset: props.popperOffset,
|
|
437
|
-
showArrow: false,
|
|
438
|
-
persistent: true,
|
|
439
|
-
popperClass: props.popperClass,
|
|
440
|
-
placement: currentPlacement.value,
|
|
441
|
-
teleported: appendToBody.value,
|
|
442
|
-
fallbackPlacements: fallbackPlacements.value,
|
|
443
|
-
transition: menuTransitionName.value,
|
|
444
|
-
gpuAcceleration: false
|
|
445
|
-
}, {
|
|
446
|
-
content: () => {
|
|
447
|
-
var _a2;
|
|
448
|
-
return h("div", {
|
|
449
|
-
class: [
|
|
450
|
-
nsMenu.m(mode.value),
|
|
451
|
-
nsMenu.m("popup-container"),
|
|
452
|
-
props.popperClass
|
|
453
|
-
],
|
|
454
|
-
onMouseenter: (evt) => handleMouseenter(evt, 100),
|
|
455
|
-
onMouseleave: () => handleMouseleave(true),
|
|
456
|
-
onFocus: (evt) => handleMouseenter(evt, 100)
|
|
457
|
-
}, [
|
|
458
|
-
h("ul", {
|
|
459
|
-
class: [
|
|
460
|
-
nsMenu.b(),
|
|
461
|
-
nsMenu.m("popup"),
|
|
462
|
-
nsMenu.m(`popup-${currentPlacement.value}`)
|
|
463
|
-
],
|
|
464
|
-
style: ulStyle.value
|
|
465
|
-
}, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)])
|
|
466
|
-
]);
|
|
467
|
-
},
|
|
468
|
-
default: () => h("div", {
|
|
469
|
-
class: nsSubMenu.e("title"),
|
|
470
|
-
onClick: handleClick
|
|
471
|
-
}, titleTag)
|
|
472
|
-
}) : h(Fragment, {}, [
|
|
473
|
-
h("div", {
|
|
474
|
-
class: nsSubMenu.e("title"),
|
|
475
|
-
ref: verticalTitleRef,
|
|
476
|
-
onClick: handleClick
|
|
477
|
-
}, titleTag),
|
|
478
|
-
h(_CollapseTransition, {}, {
|
|
479
|
-
default: () => {
|
|
480
|
-
var _a2;
|
|
481
|
-
return withDirectives(h("ul", {
|
|
482
|
-
role: "menu",
|
|
483
|
-
class: [nsMenu.b(), nsMenu.m("inline")],
|
|
484
|
-
style: ulStyle.value
|
|
485
|
-
}, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)]), [[vShow, opened.value]]);
|
|
486
|
-
}
|
|
487
|
-
})
|
|
488
|
-
]);
|
|
489
|
-
return h("li", {
|
|
490
|
-
class: [
|
|
491
|
-
nsSubMenu.b(),
|
|
492
|
-
nsSubMenu.is("active", active.value),
|
|
493
|
-
nsSubMenu.is("opened", opened.value),
|
|
494
|
-
nsSubMenu.is("disabled", props.disabled)
|
|
495
|
-
],
|
|
496
|
-
role: "menuitem",
|
|
497
|
-
ariaHaspopup: true,
|
|
498
|
-
ariaExpanded: opened.value,
|
|
499
|
-
onMouseenter: handleMouseenter,
|
|
500
|
-
onMouseleave: () => handleMouseleave(true),
|
|
501
|
-
onFocus: handleMouseenter
|
|
502
|
-
}, [child]);
|
|
503
|
-
};
|
|
504
|
-
}
|
|
505
|
-
});
|
|
506
|
-
const menuProps = buildProps({
|
|
507
|
-
mode: {
|
|
508
|
-
type: String,
|
|
509
|
-
values: ["horizontal", "vertical"],
|
|
510
|
-
default: "vertical"
|
|
511
|
-
},
|
|
512
|
-
defaultActive: {
|
|
513
|
-
type: String,
|
|
514
|
-
default: ""
|
|
515
|
-
},
|
|
516
|
-
defaultOpeneds: {
|
|
517
|
-
type: definePropType(Array),
|
|
518
|
-
default: () => mutable([])
|
|
519
|
-
},
|
|
520
|
-
uniqueOpened: Boolean,
|
|
521
|
-
router: Boolean,
|
|
522
|
-
menuTrigger: {
|
|
523
|
-
type: String,
|
|
524
|
-
values: ["hover", "click"],
|
|
525
|
-
default: "hover"
|
|
526
|
-
},
|
|
527
|
-
collapse: Boolean,
|
|
528
|
-
backgroundColor: String,
|
|
529
|
-
textColor: String,
|
|
530
|
-
activeTextColor: String,
|
|
531
|
-
collapseTransition: {
|
|
532
|
-
type: Boolean,
|
|
533
|
-
default: true
|
|
534
|
-
},
|
|
535
|
-
ellipsis: {
|
|
536
|
-
type: Boolean,
|
|
537
|
-
default: true
|
|
538
|
-
},
|
|
539
|
-
popperEffect: {
|
|
540
|
-
type: String,
|
|
541
|
-
values: ["dark", "light"],
|
|
542
|
-
default: "dark"
|
|
543
|
-
}
|
|
544
|
-
});
|
|
545
|
-
const checkIndexPath = (indexPath) => Array.isArray(indexPath) && indexPath.every((path) => isString(path));
|
|
546
|
-
const menuEmits = {
|
|
547
|
-
close: (index, indexPath) => isString(index) && checkIndexPath(indexPath),
|
|
548
|
-
open: (index, indexPath) => isString(index) && checkIndexPath(indexPath),
|
|
549
|
-
select: (index, indexPath, item, routerResult) => isString(index) && checkIndexPath(indexPath) && isObject(item) && (routerResult === void 0 || routerResult instanceof Promise)
|
|
550
|
-
};
|
|
551
|
-
var Menu2 = defineComponent({
|
|
552
|
-
name: "ElMenu",
|
|
553
|
-
props: menuProps,
|
|
554
|
-
emits: menuEmits,
|
|
555
|
-
setup(props, { emit, slots, expose }) {
|
|
556
|
-
const instance = getCurrentInstance();
|
|
557
|
-
const router = instance.appContext.config.globalProperties.$router;
|
|
558
|
-
const menu = ref();
|
|
559
|
-
const nsMenu = useNamespace("menu");
|
|
560
|
-
const nsSubMenu = useNamespace("sub-menu");
|
|
561
|
-
const sliceIndex = ref(-1);
|
|
562
|
-
const openedMenus = ref(props.defaultOpeneds && !props.collapse ? props.defaultOpeneds.slice(0) : []);
|
|
563
|
-
const activeIndex = ref(props.defaultActive);
|
|
564
|
-
const items = ref({});
|
|
565
|
-
const subMenus = ref({});
|
|
566
|
-
const isMenuPopup = computed(() => {
|
|
567
|
-
return props.mode === "horizontal" || props.mode === "vertical" && props.collapse;
|
|
568
|
-
});
|
|
569
|
-
const initMenu = () => {
|
|
570
|
-
const activeItem = activeIndex.value && items.value[activeIndex.value];
|
|
571
|
-
if (!activeItem || props.mode === "horizontal" || props.collapse)
|
|
572
|
-
return;
|
|
573
|
-
const indexPath = activeItem.indexPath;
|
|
574
|
-
indexPath.forEach((index) => {
|
|
575
|
-
const subMenu = subMenus.value[index];
|
|
576
|
-
subMenu && openMenu(index, subMenu.indexPath);
|
|
577
|
-
});
|
|
578
|
-
};
|
|
579
|
-
const openMenu = (index, indexPath) => {
|
|
580
|
-
if (openedMenus.value.includes(index))
|
|
581
|
-
return;
|
|
582
|
-
if (props.uniqueOpened) {
|
|
583
|
-
openedMenus.value = openedMenus.value.filter((index2) => indexPath.includes(index2));
|
|
584
|
-
}
|
|
585
|
-
openedMenus.value.push(index);
|
|
586
|
-
emit("open", index, indexPath);
|
|
587
|
-
};
|
|
588
|
-
const close = (index) => {
|
|
589
|
-
const i = openedMenus.value.indexOf(index);
|
|
590
|
-
if (i !== -1) {
|
|
591
|
-
openedMenus.value.splice(i, 1);
|
|
592
|
-
}
|
|
593
|
-
};
|
|
594
|
-
const closeMenu = (index, indexPath) => {
|
|
595
|
-
close(index);
|
|
596
|
-
emit("close", index, indexPath);
|
|
597
|
-
};
|
|
598
|
-
const handleSubMenuClick = ({
|
|
599
|
-
index,
|
|
600
|
-
indexPath
|
|
601
|
-
}) => {
|
|
602
|
-
const isOpened = openedMenus.value.includes(index);
|
|
603
|
-
if (isOpened) {
|
|
604
|
-
closeMenu(index, indexPath);
|
|
605
|
-
} else {
|
|
606
|
-
openMenu(index, indexPath);
|
|
607
|
-
}
|
|
608
|
-
};
|
|
609
|
-
const handleMenuItemClick = (menuItem) => {
|
|
610
|
-
if (props.mode === "horizontal" || props.collapse) {
|
|
611
|
-
openedMenus.value = [];
|
|
612
|
-
}
|
|
613
|
-
const { index, indexPath } = menuItem;
|
|
614
|
-
if (isNil(index) || isNil(indexPath))
|
|
615
|
-
return;
|
|
616
|
-
if (props.router && router) {
|
|
617
|
-
const route = menuItem.route || index;
|
|
618
|
-
const routerResult = router.push(route).then((res) => {
|
|
619
|
-
if (!res)
|
|
620
|
-
activeIndex.value = index;
|
|
621
|
-
return res;
|
|
622
|
-
});
|
|
623
|
-
emit("select", index, indexPath, { index, indexPath, route }, routerResult);
|
|
624
|
-
} else {
|
|
625
|
-
activeIndex.value = index;
|
|
626
|
-
emit("select", index, indexPath, { index, indexPath });
|
|
627
|
-
}
|
|
628
|
-
};
|
|
629
|
-
const updateActiveIndex = (val) => {
|
|
630
|
-
const itemsInData = items.value;
|
|
631
|
-
const item = itemsInData[val] || activeIndex.value && itemsInData[activeIndex.value] || itemsInData[props.defaultActive];
|
|
632
|
-
if (item) {
|
|
633
|
-
activeIndex.value = item.index;
|
|
634
|
-
} else {
|
|
635
|
-
activeIndex.value = val;
|
|
636
|
-
}
|
|
637
|
-
};
|
|
638
|
-
const calcSliceIndex = () => {
|
|
639
|
-
var _a, _b;
|
|
640
|
-
if (!menu.value)
|
|
641
|
-
return -1;
|
|
642
|
-
const items2 = Array.from((_b = (_a = menu.value) == null ? void 0 : _a.childNodes) != null ? _b : []).filter((item) => item.nodeName !== "#comment" && (item.nodeName !== "#text" || item.nodeValue));
|
|
643
|
-
const moreItemWidth = 64;
|
|
644
|
-
const paddingLeft = Number.parseInt(getComputedStyle(menu.value).paddingLeft, 10);
|
|
645
|
-
const paddingRight = Number.parseInt(getComputedStyle(menu.value).paddingRight, 10);
|
|
646
|
-
const menuWidth = menu.value.clientWidth - paddingLeft - paddingRight;
|
|
647
|
-
let calcWidth = 0;
|
|
648
|
-
let sliceIndex2 = 0;
|
|
649
|
-
items2.forEach((item, index) => {
|
|
650
|
-
calcWidth += item.offsetWidth || 0;
|
|
651
|
-
if (calcWidth <= menuWidth - moreItemWidth) {
|
|
652
|
-
sliceIndex2 = index + 1;
|
|
653
|
-
}
|
|
654
|
-
});
|
|
655
|
-
return sliceIndex2 === items2.length ? -1 : sliceIndex2;
|
|
656
|
-
};
|
|
657
|
-
const debounce = (fn, wait = 33.34) => {
|
|
658
|
-
let timmer;
|
|
659
|
-
return () => {
|
|
660
|
-
timmer && clearTimeout(timmer);
|
|
661
|
-
timmer = setTimeout(() => {
|
|
662
|
-
fn();
|
|
663
|
-
}, wait);
|
|
664
|
-
};
|
|
665
|
-
};
|
|
666
|
-
let isFirstTimeRender = true;
|
|
667
|
-
const handleResize = () => {
|
|
668
|
-
const callback = () => {
|
|
669
|
-
sliceIndex.value = -1;
|
|
670
|
-
nextTick(() => {
|
|
671
|
-
sliceIndex.value = calcSliceIndex();
|
|
672
|
-
});
|
|
673
|
-
};
|
|
674
|
-
isFirstTimeRender ? callback() : debounce(callback)();
|
|
675
|
-
isFirstTimeRender = false;
|
|
676
|
-
};
|
|
677
|
-
watch(() => props.defaultActive, (currentActive) => {
|
|
678
|
-
if (!items.value[currentActive]) {
|
|
679
|
-
activeIndex.value = "";
|
|
680
|
-
}
|
|
681
|
-
updateActiveIndex(currentActive);
|
|
682
|
-
});
|
|
683
|
-
watch(() => props.collapse, (value) => {
|
|
684
|
-
if (value)
|
|
685
|
-
openedMenus.value = [];
|
|
686
|
-
});
|
|
687
|
-
watch(items.value, initMenu);
|
|
688
|
-
let resizeStopper;
|
|
689
|
-
watchEffect(() => {
|
|
690
|
-
if (props.mode === "horizontal" && props.ellipsis)
|
|
691
|
-
resizeStopper = useResizeObserver(menu, handleResize).stop;
|
|
692
|
-
else
|
|
693
|
-
resizeStopper == null ? void 0 : resizeStopper();
|
|
694
|
-
});
|
|
695
|
-
{
|
|
696
|
-
const addSubMenu = (item) => {
|
|
697
|
-
subMenus.value[item.index] = item;
|
|
698
|
-
};
|
|
699
|
-
const removeSubMenu = (item) => {
|
|
700
|
-
delete subMenus.value[item.index];
|
|
701
|
-
};
|
|
702
|
-
const addMenuItem = (item) => {
|
|
703
|
-
items.value[item.index] = item;
|
|
704
|
-
};
|
|
705
|
-
const removeMenuItem = (item) => {
|
|
706
|
-
delete items.value[item.index];
|
|
707
|
-
};
|
|
708
|
-
provide("rootMenu", reactive({
|
|
709
|
-
props,
|
|
710
|
-
openedMenus,
|
|
711
|
-
items,
|
|
712
|
-
subMenus,
|
|
713
|
-
activeIndex,
|
|
714
|
-
isMenuPopup,
|
|
715
|
-
addMenuItem,
|
|
716
|
-
removeMenuItem,
|
|
717
|
-
addSubMenu,
|
|
718
|
-
removeSubMenu,
|
|
719
|
-
openMenu,
|
|
720
|
-
closeMenu,
|
|
721
|
-
handleMenuItemClick,
|
|
722
|
-
handleSubMenuClick
|
|
723
|
-
}));
|
|
724
|
-
provide(`subMenu:${instance.uid}`, {
|
|
725
|
-
addSubMenu,
|
|
726
|
-
removeSubMenu,
|
|
727
|
-
mouseInChild: ref(false),
|
|
728
|
-
level: 0
|
|
729
|
-
});
|
|
730
|
-
}
|
|
731
|
-
onMounted(() => {
|
|
732
|
-
if (props.mode === "horizontal") {
|
|
733
|
-
new Menu$1(instance.vnode.el, nsMenu.namespace.value);
|
|
734
|
-
}
|
|
735
|
-
});
|
|
736
|
-
{
|
|
737
|
-
const open = (index) => {
|
|
738
|
-
const { indexPath } = subMenus.value[index];
|
|
739
|
-
indexPath.forEach((i) => openMenu(i, indexPath));
|
|
740
|
-
};
|
|
741
|
-
expose({
|
|
742
|
-
open,
|
|
743
|
-
close,
|
|
744
|
-
handleResize
|
|
745
|
-
});
|
|
746
|
-
}
|
|
747
|
-
return () => {
|
|
748
|
-
var _a, _b;
|
|
749
|
-
let slot = (_b = (_a = slots.default) == null ? void 0 : _a.call(slots)) != null ? _b : [];
|
|
750
|
-
const vShowMore = [];
|
|
751
|
-
if (props.mode === "horizontal" && menu.value) {
|
|
752
|
-
const originalSlot = flattedChildren(slot);
|
|
753
|
-
const slotDefault = sliceIndex.value === -1 ? originalSlot : originalSlot.slice(0, sliceIndex.value);
|
|
754
|
-
const slotMore = sliceIndex.value === -1 ? [] : originalSlot.slice(sliceIndex.value);
|
|
755
|
-
if ((slotMore == null ? void 0 : slotMore.length) && props.ellipsis) {
|
|
756
|
-
slot = slotDefault;
|
|
757
|
-
vShowMore.push(h(SubMenu2, {
|
|
758
|
-
index: "sub-menu-more",
|
|
759
|
-
class: nsSubMenu.e("hide-arrow")
|
|
760
|
-
}, {
|
|
761
|
-
title: () => h(ElIcon, {
|
|
762
|
-
class: nsSubMenu.e("icon-more")
|
|
763
|
-
}, { default: () => h(more_default) }),
|
|
764
|
-
default: () => slotMore
|
|
765
|
-
}));
|
|
766
|
-
}
|
|
767
|
-
}
|
|
768
|
-
const ulStyle = useMenuCssVar(props, 0);
|
|
769
|
-
const vMenu = h("ul", {
|
|
770
|
-
key: String(props.collapse),
|
|
771
|
-
role: "menubar",
|
|
772
|
-
ref: menu,
|
|
773
|
-
style: ulStyle.value,
|
|
774
|
-
class: {
|
|
775
|
-
[nsMenu.b()]: true,
|
|
776
|
-
[nsMenu.m(props.mode)]: true,
|
|
777
|
-
[nsMenu.m("collapse")]: props.collapse
|
|
778
|
-
}
|
|
779
|
-
}, [...slot, ...vShowMore]);
|
|
780
|
-
if (props.collapseTransition && props.mode === "vertical") {
|
|
781
|
-
return h(ElMenuCollapseTransition, () => vMenu);
|
|
782
|
-
}
|
|
783
|
-
return vMenu;
|
|
784
|
-
};
|
|
785
|
-
}
|
|
786
|
-
});
|
|
787
|
-
const menuItemProps = buildProps({
|
|
788
|
-
index: {
|
|
789
|
-
type: definePropType([String, null]),
|
|
790
|
-
default: null
|
|
791
|
-
},
|
|
792
|
-
route: {
|
|
793
|
-
type: definePropType([String, Object])
|
|
794
|
-
},
|
|
795
|
-
disabled: Boolean
|
|
796
|
-
});
|
|
797
|
-
const menuItemEmits = {
|
|
798
|
-
click: (item) => isString(item.index) && Array.isArray(item.indexPath)
|
|
799
|
-
};
|
|
800
|
-
const COMPONENT_NAME$1 = "ElMenuItem";
|
|
801
|
-
const _sfc_main$8 = defineComponent({
|
|
802
|
-
name: COMPONENT_NAME$1,
|
|
803
|
-
components: {
|
|
804
|
-
ElTooltip
|
|
805
|
-
},
|
|
806
|
-
props: menuItemProps,
|
|
807
|
-
emits: menuItemEmits,
|
|
808
|
-
setup(props, { emit }) {
|
|
809
|
-
const instance = getCurrentInstance();
|
|
810
|
-
const rootMenu = inject("rootMenu");
|
|
811
|
-
const nsMenu = useNamespace("menu");
|
|
812
|
-
const nsMenuItem = useNamespace("menu-item");
|
|
813
|
-
if (!rootMenu)
|
|
814
|
-
throwError(COMPONENT_NAME$1, "can not inject root menu");
|
|
815
|
-
const { parentMenu, indexPath } = useMenu(instance, toRef(props, "index"));
|
|
816
|
-
const subMenu = inject(`subMenu:${parentMenu.value.uid}`);
|
|
817
|
-
if (!subMenu)
|
|
818
|
-
throwError(COMPONENT_NAME$1, "can not inject sub menu");
|
|
819
|
-
const active = computed(() => props.index === rootMenu.activeIndex);
|
|
820
|
-
const item = reactive({
|
|
821
|
-
index: props.index,
|
|
822
|
-
indexPath,
|
|
823
|
-
active
|
|
824
|
-
});
|
|
825
|
-
const handleClick = () => {
|
|
826
|
-
if (!props.disabled) {
|
|
827
|
-
rootMenu.handleMenuItemClick({
|
|
828
|
-
index: props.index,
|
|
829
|
-
indexPath: indexPath.value,
|
|
830
|
-
route: props.route
|
|
831
|
-
});
|
|
832
|
-
emit("click", item);
|
|
833
|
-
}
|
|
834
|
-
};
|
|
835
|
-
onMounted(() => {
|
|
836
|
-
subMenu.addSubMenu(item);
|
|
837
|
-
rootMenu.addMenuItem(item);
|
|
838
|
-
});
|
|
839
|
-
onBeforeUnmount(() => {
|
|
840
|
-
subMenu.removeSubMenu(item);
|
|
841
|
-
rootMenu.removeMenuItem(item);
|
|
842
|
-
});
|
|
843
|
-
return {
|
|
844
|
-
parentMenu,
|
|
845
|
-
rootMenu,
|
|
846
|
-
active,
|
|
847
|
-
nsMenu,
|
|
848
|
-
nsMenuItem,
|
|
849
|
-
handleClick
|
|
850
|
-
};
|
|
851
|
-
}
|
|
852
|
-
});
|
|
853
|
-
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
854
|
-
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
855
|
-
return openBlock(), createElementBlock("li", {
|
|
856
|
-
class: normalizeClass([
|
|
857
|
-
_ctx.nsMenuItem.b(),
|
|
858
|
-
_ctx.nsMenuItem.is("active", _ctx.active),
|
|
859
|
-
_ctx.nsMenuItem.is("disabled", _ctx.disabled)
|
|
860
|
-
]),
|
|
861
|
-
role: "menuitem",
|
|
862
|
-
tabindex: "-1",
|
|
863
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
864
|
-
}, [
|
|
865
|
-
_ctx.parentMenu.type.name === "ElMenu" && _ctx.rootMenu.props.collapse && _ctx.$slots.title ? (openBlock(), createBlock(_component_el_tooltip, {
|
|
866
|
-
key: 0,
|
|
867
|
-
effect: _ctx.rootMenu.props.popperEffect,
|
|
868
|
-
placement: "right",
|
|
869
|
-
"fallback-placements": ["left"],
|
|
870
|
-
persistent: ""
|
|
871
|
-
}, {
|
|
872
|
-
content: withCtx(() => [
|
|
873
|
-
renderSlot(_ctx.$slots, "title")
|
|
874
|
-
]),
|
|
875
|
-
default: withCtx(() => [
|
|
876
|
-
createBaseVNode("div", {
|
|
877
|
-
class: normalizeClass(_ctx.nsMenu.be("tooltip", "trigger"))
|
|
878
|
-
}, [
|
|
879
|
-
renderSlot(_ctx.$slots, "default")
|
|
880
|
-
], 2)
|
|
881
|
-
]),
|
|
882
|
-
_: 3
|
|
883
|
-
}, 8, ["effect"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
884
|
-
renderSlot(_ctx.$slots, "default"),
|
|
885
|
-
renderSlot(_ctx.$slots, "title")
|
|
886
|
-
], 64))
|
|
887
|
-
], 2);
|
|
888
|
-
}
|
|
889
|
-
var MenuItem2 = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);
|
|
890
|
-
const menuItemGroupProps = {
|
|
891
|
-
title: String
|
|
892
|
-
};
|
|
893
|
-
const COMPONENT_NAME = "ElMenuItemGroup";
|
|
894
|
-
const _sfc_main$7 = defineComponent({
|
|
895
|
-
name: COMPONENT_NAME,
|
|
896
|
-
props: menuItemGroupProps,
|
|
897
|
-
setup() {
|
|
898
|
-
const ns = useNamespace("menu-item-group");
|
|
899
|
-
return {
|
|
900
|
-
ns
|
|
901
|
-
};
|
|
902
|
-
}
|
|
903
|
-
});
|
|
904
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
905
|
-
return openBlock(), createElementBlock("li", {
|
|
906
|
-
class: normalizeClass(_ctx.ns.b())
|
|
907
|
-
}, [
|
|
908
|
-
createBaseVNode("div", {
|
|
909
|
-
class: normalizeClass(_ctx.ns.e("title"))
|
|
910
|
-
}, [
|
|
911
|
-
!_ctx.$slots.title ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
912
|
-
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
913
|
-
], 64)) : renderSlot(_ctx.$slots, "title", { key: 1 })
|
|
914
|
-
], 2),
|
|
915
|
-
createBaseVNode("ul", null, [
|
|
916
|
-
renderSlot(_ctx.$slots, "default")
|
|
917
|
-
])
|
|
918
|
-
], 2);
|
|
919
|
-
}
|
|
920
|
-
var MenuItemGroup = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);
|
|
921
|
-
const ElMenu = withInstall(Menu2, {
|
|
922
|
-
MenuItem: MenuItem2,
|
|
923
|
-
MenuItemGroup,
|
|
924
|
-
SubMenu: SubMenu2
|
|
925
|
-
});
|
|
926
|
-
const ElMenuItem = withNoopInstall(MenuItem2);
|
|
927
|
-
withNoopInstall(MenuItemGroup);
|
|
928
|
-
const ElSubMenu = withNoopInstall(SubMenu2);
|
|
929
|
-
const ROOT_MENU_INDEX = "-1";
|
|
930
|
-
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
931
|
-
...{
|
|
932
|
-
name: "N8nNavigationDropdown"
|
|
933
|
-
},
|
|
934
|
-
__name: "NavigationDropdown",
|
|
935
|
-
props: {
|
|
936
|
-
menu: {},
|
|
937
|
-
disabled: { type: Boolean },
|
|
938
|
-
teleport: { type: Boolean }
|
|
939
|
-
},
|
|
940
|
-
emits: ["itemClick", "select"],
|
|
941
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
942
|
-
const menuRef = ref(null);
|
|
943
|
-
const emit = __emit;
|
|
944
|
-
const close = () => {
|
|
945
|
-
menuRef.value?.close(ROOT_MENU_INDEX);
|
|
946
|
-
};
|
|
947
|
-
const menuTrigger = ref("click");
|
|
948
|
-
const onOpen = (index) => {
|
|
949
|
-
if (index !== ROOT_MENU_INDEX) return;
|
|
950
|
-
menuTrigger.value = "hover";
|
|
951
|
-
};
|
|
952
|
-
const onClose = (index) => {
|
|
953
|
-
if (index !== ROOT_MENU_INDEX) return;
|
|
954
|
-
menuTrigger.value = "click";
|
|
955
|
-
};
|
|
956
|
-
__expose({
|
|
957
|
-
close
|
|
958
|
-
});
|
|
959
|
-
return (_ctx, _cache) => {
|
|
960
|
-
return openBlock(), createBlock(unref(ElMenu), {
|
|
961
|
-
ref_key: "menuRef",
|
|
962
|
-
ref: menuRef,
|
|
963
|
-
mode: "horizontal",
|
|
964
|
-
"unique-opened": "",
|
|
965
|
-
"menu-trigger": menuTrigger.value,
|
|
966
|
-
ellipsis: false,
|
|
967
|
-
class: normalizeClass(_ctx.$style.dropdown),
|
|
968
|
-
onSelect: _cache[1] || (_cache[1] = ($event) => emit("select", $event)),
|
|
969
|
-
onKeyup: withKeys(close, ["escape"]),
|
|
970
|
-
onOpen,
|
|
971
|
-
onClose
|
|
972
|
-
}, {
|
|
973
|
-
default: withCtx(() => [
|
|
974
|
-
createVNode(unref(ElSubMenu), {
|
|
975
|
-
index: ROOT_MENU_INDEX,
|
|
976
|
-
class: normalizeClass(_ctx.$style.trigger),
|
|
977
|
-
"popper-offset": -10,
|
|
978
|
-
"popper-class": _ctx.$style.submenu,
|
|
979
|
-
disabled: _ctx.disabled,
|
|
980
|
-
teleported: _ctx.teleport
|
|
981
|
-
}, {
|
|
982
|
-
title: withCtx(() => [
|
|
983
|
-
renderSlot(_ctx.$slots, "default")
|
|
984
|
-
]),
|
|
985
|
-
default: withCtx(() => [
|
|
986
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menu, (item) => {
|
|
987
|
-
return openBlock(), createElementBlock(Fragment, {
|
|
988
|
-
key: item.id
|
|
989
|
-
}, [
|
|
990
|
-
item.submenu ? (openBlock(), createBlock(unref(ElSubMenu), {
|
|
991
|
-
key: 0,
|
|
992
|
-
"popper-class": _ctx.$style.nestedSubmenu,
|
|
993
|
-
index: item.id,
|
|
994
|
-
"popper-offset": -10,
|
|
995
|
-
"data-test-id": "navigation-submenu"
|
|
996
|
-
}, {
|
|
997
|
-
title: withCtx(() => [
|
|
998
|
-
createTextVNode(toDisplayString(item.title), 1)
|
|
999
|
-
]),
|
|
1000
|
-
default: withCtx(() => [
|
|
1001
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(item.submenu, (subitem) => {
|
|
1002
|
-
return openBlock(), createBlock(unref(_sfc_main$a), {
|
|
1003
|
-
key: subitem.id,
|
|
1004
|
-
to: !subitem.disabled && subitem.route || void 0
|
|
1005
|
-
}, {
|
|
1006
|
-
default: withCtx(() => [
|
|
1007
|
-
createVNode(unref(ElMenuItem), {
|
|
1008
|
-
"data-test-id": "navigation-submenu-item",
|
|
1009
|
-
index: subitem.id,
|
|
1010
|
-
disabled: subitem.disabled,
|
|
1011
|
-
onClick: _cache[0] || (_cache[0] = ($event) => emit("itemClick", $event))
|
|
1012
|
-
}, {
|
|
1013
|
-
default: withCtx(() => [
|
|
1014
|
-
subitem.icon ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
1015
|
-
typeof subitem.icon === "string" || subitem.icon.type === "icon" ? (openBlock(), createBlock(unref(N8nIcon), {
|
|
1016
|
-
key: 0,
|
|
1017
|
-
class: normalizeClass(_ctx.$style.submenu__icon),
|
|
1018
|
-
icon: typeof subitem.icon === "object" ? subitem.icon.value : subitem.icon
|
|
1019
|
-
}, null, 8, ["class", "icon"])) : subitem.icon.type === "emoji" ? (openBlock(), createBlock(unref(N8nText), {
|
|
1020
|
-
key: 1,
|
|
1021
|
-
class: normalizeClass(_ctx.$style.submenu__icon)
|
|
1022
|
-
}, {
|
|
1023
|
-
default: withCtx(() => [
|
|
1024
|
-
createTextVNode(toDisplayString(subitem.icon.value), 1)
|
|
1025
|
-
]),
|
|
1026
|
-
_: 2
|
|
1027
|
-
}, 1032, ["class"])) : createCommentVNode("", true)
|
|
1028
|
-
], 64)) : createCommentVNode("", true),
|
|
1029
|
-
createTextVNode(" " + toDisplayString(subitem.title) + " ", 1),
|
|
1030
|
-
renderSlot(_ctx.$slots, `item.append.${item.id}`, mergeProps({ ref_for: true }, { item }))
|
|
1031
|
-
]),
|
|
1032
|
-
_: 2
|
|
1033
|
-
}, 1032, ["index", "disabled"])
|
|
1034
|
-
]),
|
|
1035
|
-
_: 2
|
|
1036
|
-
}, 1032, ["to"]);
|
|
1037
|
-
}), 128))
|
|
1038
|
-
]),
|
|
1039
|
-
_: 2
|
|
1040
|
-
}, 1032, ["popper-class", "index"])) : (openBlock(), createBlock(unref(_sfc_main$a), {
|
|
1041
|
-
key: 1,
|
|
1042
|
-
to: !item.disabled && item.route || void 0
|
|
1043
|
-
}, {
|
|
1044
|
-
default: withCtx(() => [
|
|
1045
|
-
createVNode(unref(ElMenuItem), {
|
|
1046
|
-
index: item.id,
|
|
1047
|
-
disabled: item.disabled,
|
|
1048
|
-
"data-test-id": "navigation-menu-item"
|
|
1049
|
-
}, {
|
|
1050
|
-
default: withCtx(() => [
|
|
1051
|
-
createTextVNode(toDisplayString(item.title) + " ", 1),
|
|
1052
|
-
renderSlot(_ctx.$slots, `item.append.${item.id}`, mergeProps({ ref_for: true }, { item }))
|
|
1053
|
-
]),
|
|
1054
|
-
_: 2
|
|
1055
|
-
}, 1032, ["index", "disabled"])
|
|
1056
|
-
]),
|
|
1057
|
-
_: 2
|
|
1058
|
-
}, 1032, ["to"]))
|
|
1059
|
-
], 64);
|
|
1060
|
-
}), 128))
|
|
1061
|
-
]),
|
|
1062
|
-
_: 3
|
|
1063
|
-
}, 8, ["class", "popper-class", "disabled", "teleported"])
|
|
1064
|
-
]),
|
|
1065
|
-
_: 3
|
|
1066
|
-
}, 8, ["menu-trigger", "class"]);
|
|
1067
|
-
};
|
|
1068
|
-
}
|
|
1069
|
-
});
|
|
1070
|
-
const dropdown = "_dropdown_1dr86_123";
|
|
1071
|
-
const nestedSubmenu = "_nestedSubmenu_1dr86_140";
|
|
1072
|
-
const submenu = "_submenu_1dr86_145";
|
|
1073
|
-
const submenu__icon = "_submenu__icon_1dr86_173";
|
|
1074
|
-
const style0$6 = {
|
|
1075
|
-
dropdown,
|
|
1076
|
-
nestedSubmenu,
|
|
1077
|
-
submenu,
|
|
1078
|
-
submenu__icon
|
|
1079
|
-
};
|
|
1080
|
-
const cssModules$6 = {
|
|
1081
|
-
"$style": style0$6
|
|
1082
|
-
};
|
|
1083
|
-
const N8nNavigationDropdown = /* @__PURE__ */ _export_sfc$1(_sfc_main$6, [["__cssModules", cssModules$6]]);
|
|
1
|
+
import { b7 as get, b8 as useDebugInfo, v as useSettingsStore, b9 as useCloudPlanStore, av as useProjectsStore, af as useSourceControlStore, b as useRouter, a as useToast, r as ref, x as computed, ba as sortByProperty, V as VIEWS, c as useI18n, aC as getResourcePermissions, bb as updatedIconSet, aB as usePageRedirectionHelper, a0 as defineStore, au as useRootStore, bc as useStorage, bd as DateTime, a5 as STORES, d as defineComponent, h as createElementBlock, f as createCommentVNode, k as unref, g as openBlock, n as normalizeClass, j as createBaseVNode, i as createVNode, t as toDisplayString, N as N8nIcon, q as N8nButton, al as useTelemetry, _ as _export_sfc, be as useVersionsStore, Q as useUIStore, w as withCtx, l as createTextVNode, C as N8nLink, aa as N8nTooltip, bf as VERSIONS_MODAL_KEY, bg as usePersonalizedTemplatesV3Store, a8 as watch, o as onMounted, bh as onUnmounted, e as createBlock, ap as normalizeStyle, bi as Teleport, Z as nextTick, u as useUsersStore, b3 as onBeforeMount, bj as N8nMenuItem, m as N8nHeading, F as Fragment, A as renderList, a3 as useRoute, aE as hasPermission, bk as useTemplatesStore, a2 as useWorkflowsStore, bl as usePersonalizedTemplatesV2Store, P as useDebounce, bm as useCalloutHelpers, bn as usePostHog, bo as useKeybindings, bp as PROJECT_VARIABLES_EXPERIMENT, bq as CHAT_VIEW, br as RELEASE_NOTES_URL, bs as useExternalHooks, X as onBeforeUnmount, bt as onClickOutside, ac as I18nT, ab as _sfc_main$6, y as N8nPopoverReka, p as N8nText, bu as resolveDynamicComponent, K as mergeProps, bv as N8nScrollArea, G as N8nAvatar, bw as WHATS_NEW_MODAL_KEY, bx as ABOUT_MODAL_KEY, by as EXPERIMENT_TEMPLATE_RECO_V3_KEY, bz as trackTemplatesClick, bA as TemplateClickSource, bB as EXPERIMENT_TEMPLATE_RECO_V2_KEY } from "./index-C2iJCVYf.js";
|
|
2
|
+
import { L as Logo } from "./Logo-Bgcx_T7R.js";
|
|
3
|
+
import { N as N8nNavigationDropdown } from "./NavigationDropdown-kfg0blbZ.js";
|
|
1084
4
|
const isCustomMenuItem = (e) => "component" in e;
|
|
1085
5
|
async function getBecomeCreatorCta(context) {
|
|
1086
6
|
const response = await get(context.baseUrl, "/cta/become-creator");
|
|
@@ -1430,11 +350,11 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
1430
350
|
};
|
|
1431
351
|
}
|
|
1432
352
|
});
|
|
1433
|
-
const container$1 = "
|
|
1434
|
-
const textAndCloseButton = "
|
|
1435
|
-
const text$1 = "
|
|
1436
|
-
const closeButton = "
|
|
1437
|
-
const becomeCreatorButton = "
|
|
353
|
+
const container$1 = "_container_1ab4u_123";
|
|
354
|
+
const textAndCloseButton = "_textAndCloseButton_1ab4u_131";
|
|
355
|
+
const text$1 = "_text_1ab4u_131";
|
|
356
|
+
const closeButton = "_closeButton_1ab4u_144";
|
|
357
|
+
const becomeCreatorButton = "_becomeCreatorButton_1ab4u_156";
|
|
1438
358
|
const style0$5 = {
|
|
1439
359
|
container: container$1,
|
|
1440
360
|
textAndCloseButton,
|
|
@@ -1445,7 +365,7 @@ const style0$5 = {
|
|
|
1445
365
|
const cssModules$5 = {
|
|
1446
366
|
"$style": style0$5
|
|
1447
367
|
};
|
|
1448
|
-
const BecomeTemplateCreatorCta = /* @__PURE__ */ _export_sfc
|
|
368
|
+
const BecomeTemplateCreatorCta = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__cssModules", cssModules$5]]);
|
|
1449
369
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
1450
370
|
__name: "VersionUpdateCTA",
|
|
1451
371
|
props: {
|
|
@@ -1507,8 +427,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
1507
427
|
};
|
|
1508
428
|
}
|
|
1509
429
|
});
|
|
1510
|
-
const container = "
|
|
1511
|
-
const button = "
|
|
430
|
+
const container = "_container_5mg6c_123";
|
|
431
|
+
const button = "_button_5mg6c_135";
|
|
1512
432
|
const style0$4 = {
|
|
1513
433
|
container,
|
|
1514
434
|
button
|
|
@@ -1516,7 +436,7 @@ const style0$4 = {
|
|
|
1516
436
|
const cssModules$4 = {
|
|
1517
437
|
"$style": style0$4
|
|
1518
438
|
};
|
|
1519
|
-
const VersionUpdateCTA = /* @__PURE__ */ _export_sfc
|
|
439
|
+
const VersionUpdateCTA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__cssModules", cssModules$4]]);
|
|
1520
440
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
1521
441
|
__name: "TemplateTooltip",
|
|
1522
442
|
setup(__props) {
|
|
@@ -1648,11 +568,11 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
1648
568
|
};
|
|
1649
569
|
}
|
|
1650
570
|
});
|
|
1651
|
-
const triggerContainer = "
|
|
1652
|
-
const tooltipTrigger = "
|
|
1653
|
-
const tooltipContent = "
|
|
1654
|
-
const text = "
|
|
1655
|
-
const dismissButton = "
|
|
571
|
+
const triggerContainer = "_triggerContainer_5kwt6_123";
|
|
572
|
+
const tooltipTrigger = "_tooltipTrigger_5kwt6_128";
|
|
573
|
+
const tooltipContent = "_tooltipContent_5kwt6_134";
|
|
574
|
+
const text = "_text_5kwt6_140";
|
|
575
|
+
const dismissButton = "_dismissButton_5kwt6_146";
|
|
1656
576
|
const style0$3 = {
|
|
1657
577
|
triggerContainer,
|
|
1658
578
|
tooltipTrigger,
|
|
@@ -1663,7 +583,7 @@ const style0$3 = {
|
|
|
1663
583
|
const cssModules$3 = {
|
|
1664
584
|
"$style": style0$3
|
|
1665
585
|
};
|
|
1666
|
-
const TemplateTooltip = /* @__PURE__ */ _export_sfc
|
|
586
|
+
const TemplateTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__cssModules", cssModules$3]]);
|
|
1667
587
|
const _hoisted_1$1 = { class: "home" };
|
|
1668
588
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
1669
589
|
__name: "ProjectNavigation",
|
|
@@ -1837,13 +757,13 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1837
757
|
};
|
|
1838
758
|
}
|
|
1839
759
|
});
|
|
1840
|
-
const projects = "
|
|
1841
|
-
const plusBtn = "
|
|
1842
|
-
const projectItems = "
|
|
1843
|
-
const upgradeLink = "
|
|
1844
|
-
const projectsLabel = "
|
|
1845
|
-
const collapsed$1 = "
|
|
1846
|
-
const addFirstProjectBtn = "
|
|
760
|
+
const projects = "_projects_81iv3_123";
|
|
761
|
+
const plusBtn = "_plusBtn_81iv3_128";
|
|
762
|
+
const projectItems = "_projectItems_81iv3_132";
|
|
763
|
+
const upgradeLink = "_upgradeLink_81iv3_136";
|
|
764
|
+
const projectsLabel = "_projectsLabel_81iv3_141";
|
|
765
|
+
const collapsed$1 = "_collapsed_81iv3_150";
|
|
766
|
+
const addFirstProjectBtn = "_addFirstProjectBtn_81iv3_163";
|
|
1847
767
|
const style0$2 = {
|
|
1848
768
|
projects,
|
|
1849
769
|
plusBtn,
|
|
@@ -1856,7 +776,7 @@ const style0$2 = {
|
|
|
1856
776
|
const cssModules$2 = {
|
|
1857
777
|
"$style": style0$2
|
|
1858
778
|
};
|
|
1859
|
-
const ProjectNavigation = /* @__PURE__ */ _export_sfc
|
|
779
|
+
const ProjectNavigation = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__cssModules", cssModules$2], ["__scopeId", "data-v-5d368480"]]);
|
|
1860
780
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
1861
781
|
__name: "MainSidebarSourceControl",
|
|
1862
782
|
props: {
|
|
@@ -1978,11 +898,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1978
898
|
};
|
|
1979
899
|
}
|
|
1980
900
|
});
|
|
1981
|
-
const sync = "
|
|
1982
|
-
const isConnected = "
|
|
1983
|
-
const collapsed = "
|
|
1984
|
-
const branchName = "
|
|
1985
|
-
const connected = "
|
|
901
|
+
const sync = "_sync_1xb4i_123";
|
|
902
|
+
const isConnected = "_isConnected_1xb4i_129";
|
|
903
|
+
const collapsed = "_collapsed_1xb4i_133";
|
|
904
|
+
const branchName = "_branchName_1xb4i_143";
|
|
905
|
+
const connected = "_connected_1xb4i_153";
|
|
1986
906
|
const style0$1 = {
|
|
1987
907
|
sync,
|
|
1988
908
|
isConnected,
|
|
@@ -1993,7 +913,7 @@ const style0$1 = {
|
|
|
1993
913
|
const cssModules$1 = {
|
|
1994
914
|
"$style": style0$1
|
|
1995
915
|
};
|
|
1996
|
-
const MainSidebarSourceControl = /* @__PURE__ */ _export_sfc
|
|
916
|
+
const MainSidebarSourceControl = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__cssModules", cssModules$1]]);
|
|
1997
917
|
const _hoisted_1 = { key: 0 };
|
|
1998
918
|
const _hoisted_2 = {
|
|
1999
919
|
class: "ml-3xs",
|
|
@@ -2023,6 +943,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2023
943
|
const pageRedirectionHelper = usePageRedirectionHelper();
|
|
2024
944
|
const { getReportingURL } = useBugReporting();
|
|
2025
945
|
const calloutHelpers = useCalloutHelpers();
|
|
946
|
+
const posthogStore = usePostHog();
|
|
2026
947
|
useKeybindings({
|
|
2027
948
|
ctrl_alt_o: () => handleSelect("about")
|
|
2028
949
|
});
|
|
@@ -2046,6 +967,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2046
967
|
(article) => !versionsStore.isWhatsNewArticleRead(article.id)
|
|
2047
968
|
)
|
|
2048
969
|
);
|
|
970
|
+
const isProjectVariablesEnabled = computed(
|
|
971
|
+
() => posthogStore.isVariantEnabled(
|
|
972
|
+
PROJECT_VARIABLES_EXPERIMENT.name,
|
|
973
|
+
PROJECT_VARIABLES_EXPERIMENT.variant
|
|
974
|
+
)
|
|
975
|
+
);
|
|
2049
976
|
const mainMenuItems = computed(() => [
|
|
2050
977
|
{
|
|
2051
978
|
id: "cloud-admin",
|
|
@@ -2060,7 +987,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2060
987
|
icon: "package-open",
|
|
2061
988
|
label: i18n.baseText("mainSidebar.templates"),
|
|
2062
989
|
position: "bottom",
|
|
2063
|
-
available: settingsStore.isTemplatesEnabled && calloutHelpers.isPreBuiltAgentsCalloutVisible.value && !personalizedTemplatesV2Store.isFeatureEnabled(),
|
|
990
|
+
available: settingsStore.isTemplatesEnabled && calloutHelpers.isPreBuiltAgentsCalloutVisible.value && !(personalizedTemplatesV2Store.isFeatureEnabled() || personalizedTemplatesV3Store.isFeatureEnabled()),
|
|
2064
991
|
route: { to: { name: VIEWS.PRE_BUILT_AGENT_TEMPLATES } }
|
|
2065
992
|
},
|
|
2066
993
|
{
|
|
@@ -2069,7 +996,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2069
996
|
icon: "package-open",
|
|
2070
997
|
label: i18n.baseText("mainSidebar.templates"),
|
|
2071
998
|
position: "bottom",
|
|
2072
|
-
available: settingsStore.isTemplatesEnabled &&
|
|
999
|
+
available: settingsStore.isTemplatesEnabled && (personalizedTemplatesV2Store.isFeatureEnabled() || personalizedTemplatesV3Store.isFeatureEnabled())
|
|
2073
1000
|
},
|
|
2074
1001
|
{
|
|
2075
1002
|
// Link to in-app templates, available if custom templates are enabled and experiment is disabled
|
|
@@ -2097,7 +1024,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2097
1024
|
icon: "variable",
|
|
2098
1025
|
label: i18n.baseText("mainSidebar.variables"),
|
|
2099
1026
|
position: "bottom",
|
|
2100
|
-
route: { to: { name: VIEWS.VARIABLES } }
|
|
1027
|
+
route: { to: { name: VIEWS.VARIABLES } },
|
|
1028
|
+
available: !isProjectVariablesEnabled.value
|
|
2101
1029
|
},
|
|
2102
1030
|
{
|
|
2103
1031
|
id: "insights",
|
|
@@ -2107,6 +1035,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2107
1035
|
route: { to: { name: VIEWS.INSIGHTS } },
|
|
2108
1036
|
available: settingsStore.isModuleActive("insights") && hasPermission(["rbac"], { rbac: { scope: "insights:list" } })
|
|
2109
1037
|
},
|
|
1038
|
+
{
|
|
1039
|
+
id: "chat",
|
|
1040
|
+
icon: "bot",
|
|
1041
|
+
label: "Chat",
|
|
1042
|
+
position: "bottom",
|
|
1043
|
+
route: { to: { name: CHAT_VIEW } },
|
|
1044
|
+
available: settingsStore.isChatFeatureEnabled && hasPermission(["rbac"], { rbac: { scope: "chatHub:message" } })
|
|
1045
|
+
},
|
|
2110
1046
|
{
|
|
2111
1047
|
id: "help",
|
|
2112
1048
|
icon: "circle-help",
|
|
@@ -2493,7 +1429,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2493
1429
|
}, 1032, ["content"])) : createCommentVNode("", true)
|
|
2494
1430
|
]),
|
|
2495
1431
|
default: withCtx(() => [
|
|
2496
|
-
createVNode(unref(_sfc_main$
|
|
1432
|
+
createVNode(unref(_sfc_main$6), {
|
|
2497
1433
|
icon: "plus",
|
|
2498
1434
|
type: "secondary",
|
|
2499
1435
|
outline: ""
|
|
@@ -2642,7 +1578,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2642
1578
|
"data-test-id": "user-menu",
|
|
2643
1579
|
class: normalizeClass({ [_ctx.$style.userActions]: true, [_ctx.$style.expanded]: fullyExpanded.value })
|
|
2644
1580
|
}, [
|
|
2645
|
-
createVNode(unref(_sfc_main$
|
|
1581
|
+
createVNode(unref(_sfc_main$6), {
|
|
2646
1582
|
icon: "ellipsis",
|
|
2647
1583
|
text: "",
|
|
2648
1584
|
square: "",
|
|
@@ -2660,21 +1596,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2660
1596
|
};
|
|
2661
1597
|
}
|
|
2662
1598
|
});
|
|
2663
|
-
const sideMenu = "
|
|
2664
|
-
const logo = "
|
|
2665
|
-
const sideMenuCollapsed = "
|
|
2666
|
-
const scrollArea = "
|
|
2667
|
-
const sideMenuCollapseButton = "
|
|
2668
|
-
const bottomMenu = "
|
|
2669
|
-
const bottomMenuItems = "
|
|
2670
|
-
const popover = "
|
|
2671
|
-
const popoverTitle = "
|
|
2672
|
-
const userArea = "
|
|
2673
|
-
const userName = "
|
|
2674
|
-
const expanded = "
|
|
2675
|
-
const userActions = "
|
|
2676
|
-
const userAreaInner = "
|
|
2677
|
-
const readOnlyEnvironmentIcon = "
|
|
1599
|
+
const sideMenu = "_sideMenu_144ie_123";
|
|
1600
|
+
const logo = "_logo_144ie_132";
|
|
1601
|
+
const sideMenuCollapsed = "_sideMenuCollapsed_144ie_143";
|
|
1602
|
+
const scrollArea = "_scrollArea_144ie_152";
|
|
1603
|
+
const sideMenuCollapseButton = "_sideMenuCollapseButton_144ie_158";
|
|
1604
|
+
const bottomMenu = "_bottomMenu_144ie_177";
|
|
1605
|
+
const bottomMenuItems = "_bottomMenuItems_144ie_183";
|
|
1606
|
+
const popover = "_popover_144ie_187";
|
|
1607
|
+
const popoverTitle = "_popoverTitle_144ie_192";
|
|
1608
|
+
const userArea = "_userArea_144ie_197";
|
|
1609
|
+
const userName = "_userName_144ie_203";
|
|
1610
|
+
const expanded = "_expanded_144ie_210";
|
|
1611
|
+
const userActions = "_userActions_144ie_217";
|
|
1612
|
+
const userAreaInner = "_userAreaInner_144ie_224";
|
|
1613
|
+
const readOnlyEnvironmentIcon = "_readOnlyEnvironmentIcon_144ie_235";
|
|
2678
1614
|
const style0 = {
|
|
2679
1615
|
sideMenu,
|
|
2680
1616
|
logo,
|
|
@@ -2695,7 +1631,7 @@ const style0 = {
|
|
|
2695
1631
|
const cssModules = {
|
|
2696
1632
|
"$style": style0
|
|
2697
1633
|
};
|
|
2698
|
-
const MainSidebar = /* @__PURE__ */ _export_sfc
|
|
1634
|
+
const MainSidebar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
2699
1635
|
export {
|
|
2700
1636
|
MainSidebar as default
|
|
2701
1637
|
};
|