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

package.dist.prod.FontFace.js.map Maven / Gradle / Ivy

{
  "version": 3,
  "sources": ["../../src/FontFace.ts"],
  "sourcesContent": ["import { hasStyle, createStyle } from \"./ManagedStyles.js\";\nimport { getFeature } from \"./FeaturesRegistry.js\";\nimport fontFaceCSS from \"./generated/css/FontFace.css.js\";\nimport overrideFontFaceCSS from \"./generated/css/OverrideFontFace.css.js\";\nimport type OpenUI5Support from \"./features/OpenUI5Support.js\";\nimport { getDefaultFontLoading } from \"./config/Fonts.js\";\n\nconst insertFontFace = () => {\n\tconst openUI5Support = getFeature(\"OpenUI5Support\");\n\n\t// Only set the main font if there is no OpenUI5 support, or there is, but OpenUI5 is not loaded\n\tif ((!openUI5Support || !openUI5Support.isOpenUI5Detected())) {\n\t\tinsertMainFontFace();\n\t}\n\n\t// Always set the override font - OpenUI5 in CSS Vars mode does not set it, unlike the main font\n\tinsertOverrideFontFace();\n};\n\nconst insertMainFontFace = () => {\n\tconst hasFontStyles = document.querySelector(\"head>style[data-ui5-font-face]\");\n\n\tif (!getDefaultFontLoading() || hasFontStyles) {\n\t\treturn;\n\t}\n\n\tif (!hasStyle(\"data-ui5-font-face\")) {\n\t\tcreateStyle(fontFaceCSS, \"data-ui5-font-face\");\n\t}\n};\n\nconst insertOverrideFontFace = () => {\n\tif (!hasStyle(\"data-ui5-font-face-override\")) {\n\t\tcreateStyle(overrideFontFaceCSS, \"data-ui5-font-face-override\");\n\t}\n};\n\nexport default insertFontFace;\n"],
  "mappings": "aAAA,OAAS,YAAAA,EAAU,eAAAC,MAAmB,qBACtC,OAAS,cAAAC,MAAkB,wBAC3B,OAAOC,MAAiB,kCACxB,OAAOC,MAAyB,0CAEhC,OAAS,yBAAAC,MAA6B,oBAEtC,MAAMC,EAAiB,IAAM,CAC5B,MAAMC,EAAiBL,EAAkC,gBAAgB,GAGpE,CAACK,GAAkB,CAACA,EAAe,kBAAkB,IACzDC,EAAmB,EAIpBC,EAAuB,CACxB,EAEMD,EAAqB,IAAM,CAChC,MAAME,EAAgB,SAAS,cAAc,gCAAgC,EAEzE,CAACL,EAAsB,GAAKK,GAI3BV,EAAS,oBAAoB,GACjCC,EAAYE,EAAa,oBAAoB,CAE/C,EAEMM,EAAyB,IAAM,CAC/BT,EAAS,6BAA6B,GAC1CC,EAAYG,EAAqB,6BAA6B,CAEhE,EAEA,eAAeE",
  "names": ["hasStyle", "createStyle", "getFeature", "fontFaceCSS", "overrideFontFaceCSS", "getDefaultFontLoading", "insertFontFace", "openUI5Support", "insertMainFontFace", "insertOverrideFontFace", "hasFontStyles"]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy