@ui5/webcomponents-base
Advanced tools
Comparing version 2.1.0-rc.1 to 2.1.0-rc.2
@@ -5,6 +5,7 @@ import { hasStyle, createStyle } from "./ManagedStyles.js"; | ||
import overrideFontFaceCSS from "./generated/css/OverrideFontFace.css.js"; | ||
import { getDefaultFontLoading } from "./config/Fonts.js"; | ||
const insertFontFace = () => { | ||
const openUI5Support = getFeature("OpenUI5Support"); | ||
// Only set the main font if there is no OpenUI5 support, or there is, but OpenUI5 is not loaded | ||
if (!openUI5Support || !openUI5Support.isOpenUI5Detected()) { | ||
if ((!openUI5Support || !openUI5Support.isOpenUI5Detected())) { | ||
insertMainFontFace(); | ||
@@ -16,2 +17,6 @@ } | ||
const insertMainFontFace = () => { | ||
const hasFontStyles = document.querySelector("head>style[data-ui5-font-face]"); | ||
if (!getDefaultFontLoading() || hasFontStyles) { | ||
return; | ||
} | ||
if (!hasStyle("data-ui5-font-face")) { | ||
@@ -18,0 +23,0 @@ createStyle(fontFaceCSS, "data-ui5-font-face"); |
const VersionInfo = { | ||
version: "2.1.0-rc.1", | ||
version: "2.1.0-rc.2", | ||
major: 2, | ||
minor: 1, | ||
patch: 0, | ||
suffix: "-rc.1", | ||
suffix: "-rc.2", | ||
isNext: false, | ||
buildTime: 1721290057, | ||
buildTime: 1721894897, | ||
}; | ||
export default VersionInfo; | ||
//# sourceMappingURL=VersionInfo.js.map |
@@ -15,2 +15,3 @@ import type { FormatSettings } from "./config/FormatSettings.js"; | ||
declare const getNoConflict: () => boolean; | ||
declare const getDefaultFontLoading: () => boolean; | ||
/** | ||
@@ -28,2 +29,2 @@ * Get the configured calendar type | ||
declare const getFormatSettings: () => FormatSettings; | ||
export { getAnimationMode, getTheme, getThemeRoot, getLanguage, getFetchDefaultLanguage, getNoConflict, getCalendarType, getSecondaryCalendarType, getTimezone, getFormatSettings, }; | ||
export { getAnimationMode, getTheme, getThemeRoot, getLanguage, getFetchDefaultLanguage, getNoConflict, getCalendarType, getSecondaryCalendarType, getTimezone, getFormatSettings, getDefaultFontLoading, }; |
@@ -19,2 +19,3 @@ import merge from "./thirdparty/merge.js"; | ||
fetchDefaultLanguage: false, | ||
defaultFontLoading: true, | ||
}; | ||
@@ -51,2 +52,6 @@ /* General settings */ | ||
}; | ||
const getDefaultFontLoading = () => { | ||
initConfiguration(); | ||
return initialConfig.defaultFontLoading; | ||
}; | ||
/** | ||
@@ -158,3 +163,3 @@ * Get the configured calendar type | ||
}; | ||
export { getAnimationMode, getTheme, getThemeRoot, getLanguage, getFetchDefaultLanguage, getNoConflict, getCalendarType, getSecondaryCalendarType, getTimezone, getFormatSettings, }; | ||
export { getAnimationMode, getTheme, getThemeRoot, getLanguage, getFetchDefaultLanguage, getNoConflict, getCalendarType, getSecondaryCalendarType, getTimezone, getFormatSettings, getDefaultFontLoading, }; | ||
//# sourceMappingURL=InitialConfiguration.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";import{hasStyle as t,createStyle as o}from"./ManagedStyles.js";import{getFeature as r}from"./FeaturesRegistry.js";import p from"./generated/css/FontFace.css.js";import a from"./generated/css/OverrideFontFace.css.js";const n=()=>{const e=r("OpenUI5Support");(!e||!e.isOpenUI5Detected())&&i(),f()},i=()=>{t("data-ui5-font-face")||o(p,"data-ui5-font-face")},f=()=>{t("data-ui5-font-face-override")||o(a,"data-ui5-font-face-override")};export default n; | ||
"use strict";import{hasStyle as e,createStyle as o}from"./ManagedStyles.js";import{getFeature as r}from"./FeaturesRegistry.js";import a from"./generated/css/FontFace.css.js";import n from"./generated/css/OverrideFontFace.css.js";import{getDefaultFontLoading as f}from"./config/Fonts.js";const i=()=>{const t=r("OpenUI5Support");(!t||!t.isOpenUI5Detected())&&p(),c()},p=()=>{const t=document.querySelector("head>style[data-ui5-font-face]");!f()||t||e("data-ui5-font-face")||o(a,"data-ui5-font-face")},c=()=>{e("data-ui5-font-face-override")||o(n,"data-ui5-font-face-override")};export default i; | ||
//# sourceMappingURL=FontFace.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";const e={version:"2.1.0-rc.1",major:2,minor:1,patch:0,suffix:"-rc.1",isNext:!1,buildTime:1721290057};export default e; | ||
"use strict";const e={version:"2.1.0-rc.2",major:2,minor:1,patch:0,suffix:"-rc.2",isNext:!1,buildTime:1721894897};export default e; | ||
//# sourceMappingURL=VersionInfo.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";import p from"./thirdparty/merge.js";import{getFeature as g}from"./FeaturesRegistry.js";import{DEFAULT_THEME as u}from"./generated/AssetParameters.js";import m from"./validateThemeRoot.js";import d from"./types/AnimationMode.js";let f=!1,t={animationMode:d.Full,theme:u,themeRoot:void 0,rtl:void 0,language:void 0,timezone:void 0,calendarType:void 0,secondaryCalendarType:void 0,noConflict:!1,formatSettings:{},fetchDefaultLanguage:!1};const l=()=>(o(),t.animationMode),h=()=>(o(),t.theme),y=()=>(o(),t.themeRoot),C=()=>(o(),t.language),S=()=>(o(),t.fetchDefaultLanguage),T=()=>(o(),t.noConflict),U=()=>(o(),t.calendarType),I=()=>(o(),t.secondaryCalendarType),L=()=>(o(),t.timezone),O=()=>(o(),t.formatSettings),i=new Map;i.set("true",!0),i.set("false",!1);const R=()=>{const n=document.querySelector("[data-ui5-config]")||document.querySelector("[data-id='sap-ui-config']");let e;if(n){try{e=JSON.parse(n.innerHTML)}catch{console.warn("Incorrect data-sap-ui-config format. Please use JSON")}e&&(t=p(t,e))}},M=()=>{const n=new URLSearchParams(window.location.search);n.forEach((e,r)=>{const a=r.split("sap-").length;a===0||a===r.split("sap-ui-").length||c(r,e,"sap")}),n.forEach((e,r)=>{r.startsWith("sap-ui")&&c(r,e,"sap-ui")})},F=n=>{const e=n.split("@")[1];return m(e)},w=(n,e)=>n==="theme"&&e.includes("@")?e.split("@")[0]:e,c=(n,e,r)=>{const a=e.toLowerCase(),s=n.split(`${r}-`)[1];i.has(e)&&(e=i.get(a)),s==="theme"?(t.theme=w(s,e),e&&e.includes("@")&&(t.themeRoot=F(e))):t[s]=e},z=()=>{const n=g("OpenUI5Support");if(!n||!n.isOpenUI5Detected())return;const e=n.getConfigurationSettingsObject();t=p(t,e)},o=()=>{typeof document>"u"||f||(R(),M(),z(),f=!0)};export{l as getAnimationMode,h as getTheme,y as getThemeRoot,C as getLanguage,S as getFetchDefaultLanguage,T as getNoConflict,U as getCalendarType,I as getSecondaryCalendarType,L as getTimezone,O as getFormatSettings}; | ||
"use strict";import f from"./thirdparty/merge.js";import{getFeature as u}from"./FeaturesRegistry.js";import{DEFAULT_THEME as c}from"./generated/AssetParameters.js";import d from"./validateThemeRoot.js";import m from"./types/AnimationMode.js";let p=!1,t={animationMode:m.Full,theme:c,themeRoot:void 0,rtl:void 0,language:void 0,timezone:void 0,calendarType:void 0,secondaryCalendarType:void 0,noConflict:!1,formatSettings:{},fetchDefaultLanguage:!1,defaultFontLoading:!0};const l=()=>(o(),t.animationMode),h=()=>(o(),t.theme),y=()=>(o(),t.themeRoot),C=()=>(o(),t.language),S=()=>(o(),t.fetchDefaultLanguage),T=()=>(o(),t.noConflict),L=()=>(o(),t.defaultFontLoading),F=()=>(o(),t.calendarType),U=()=>(o(),t.secondaryCalendarType),I=()=>(o(),t.timezone),O=()=>(o(),t.formatSettings),i=new Map;i.set("true",!0),i.set("false",!1);const R=()=>{const n=document.querySelector("[data-ui5-config]")||document.querySelector("[data-id='sap-ui-config']");let e;if(n){try{e=JSON.parse(n.innerHTML)}catch{console.warn("Incorrect data-sap-ui-config format. Please use JSON")}e&&(t=f(t,e))}},M=()=>{const n=new URLSearchParams(window.location.search);n.forEach((e,r)=>{const a=r.split("sap-").length;a===0||a===r.split("sap-ui-").length||g(r,e,"sap")}),n.forEach((e,r)=>{r.startsWith("sap-ui")&&g(r,e,"sap-ui")})},w=n=>{const e=n.split("@")[1];return d(e)},z=(n,e)=>n==="theme"&&e.includes("@")?e.split("@")[0]:e,g=(n,e,r)=>{const a=e.toLowerCase(),s=n.split(`${r}-`)[1];i.has(e)&&(e=i.get(a)),s==="theme"?(t.theme=z(s,e),e&&e.includes("@")&&(t.themeRoot=w(e))):t[s]=e},D=()=>{const n=u("OpenUI5Support");if(!n||!n.isOpenUI5Detected())return;const e=n.getConfigurationSettingsObject();t=f(t,e)},o=()=>{typeof document>"u"||p||(R(),M(),D(),p=!0)};export{l as getAnimationMode,h as getTheme,y as getThemeRoot,C as getLanguage,S as getFetchDefaultLanguage,T as getNoConflict,F as getCalendarType,U as getSecondaryCalendarType,I as getTimezone,O as getFormatSettings,L as getDefaultFontLoading}; | ||
//# sourceMappingURL=InitialConfiguration.js.map |
{ | ||
"name": "@ui5/webcomponents-base", | ||
"version": "2.1.0-rc.1", | ||
"version": "2.1.0-rc.2", | ||
"description": "UI5 Web Components: webcomponents.base", | ||
@@ -54,3 +54,3 @@ "author": "SAP SE (https://www.sap.com)", | ||
"@openui5/sap.ui.core": "1.120.17", | ||
"@ui5/webcomponents-tools": "2.1.0-rc.1", | ||
"@ui5/webcomponents-tools": "2.1.0-rc.2", | ||
"chromedriver": "^125.0.0", | ||
@@ -66,3 +66,3 @@ "clean-css": "^5.2.2", | ||
}, | ||
"gitHead": "87939ef793d60480ba9571b194223cf5ac8ba031" | ||
"gitHead": "fdefc6672a5a050030bdfff133222d714886272b" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2490227
810
27577