All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.prod.config.Theme.js Maven / Gradle / Ivy

"use strict";import{getTheme as s}from"../InitialConfiguration.js";import{reRenderAllUI5Elements as o}from"../Render.js";import m from"../theming/applyTheme.js";import a from"../theming/getThemeDesignerTheme.js";import{DEFAULT_THEME as T,SUPPORTED_THEMES as h}from"../generated/AssetParameters.js";import{boot as c,isBooted as g}from"../Boot.js";let t;const r=()=>(t===void 0&&(t=s()),t),u=async e=>{t!==e&&(t=e,g()&&(await m(t),await o({themeAware:!0})))},f=()=>T,p=e=>{const n=r();return n===e||n===`${e}_exp`},i=()=>{const e=r();return y(e)?!e.startsWith("sap_horizon"):!a()?.baseThemeName?.startsWith("sap_horizon")},l=async()=>(await c(),i()),y=e=>h.includes(e);export{r as getTheme,u as setTheme,p as isTheme,i as isLegacyThemeFamily,l as isLegacyThemeFamilyAsync,f as getDefaultTheme};
//# sourceMappingURL=Theme.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy