@ui5/webcomponents-base
Advanced tools
Comparing version 1.22.1-rc.0 to 1.23.0-rc.0
@@ -36,3 +36,2 @@ import { registerThemePropertiesLoader } from "./dist/AssetRegistry.js"; | ||
import { getNoConflict, setNoConflict } from "./dist/config/NoConflict.js"; | ||
import { getRTL } from "./dist/config/RTL.js"; | ||
import { getFirstDayOfWeek, getLegacyDateCalendarCustomizing } from "./dist/config/FormatSettings.js"; | ||
@@ -56,3 +55,2 @@ import { _getRegisteredNames as getIconNames } from "./dist/asset-registries/Icons.js" | ||
getCalendarType, | ||
getRTL, | ||
getFirstDayOfWeek, | ||
@@ -59,0 +57,0 @@ getLegacyDateCalendarCustomizing, |
@@ -0,1 +1,2 @@ | ||
declare const isBooted: () => boolean; | ||
/** | ||
@@ -9,2 +10,2 @@ * Attaches a callback that will be executed after boot finishes. | ||
declare const boot: () => Promise<void>; | ||
export { boot, attachBoot, }; | ||
export { boot, attachBoot, isBooted, }; |
@@ -13,2 +13,5 @@ import whenDOMReady from "./util/whenDOMReady.js"; | ||
const eventProvider = new EventProvider(); | ||
const isBooted = () => { | ||
return booted; | ||
}; | ||
/** | ||
@@ -71,3 +74,3 @@ * Attaches a callback that will be executed after boot finishes. | ||
}; | ||
export { boot, attachBoot, }; | ||
export { boot, attachBoot, isBooted, }; | ||
//# sourceMappingURL=Boot.js.map |
@@ -5,2 +5,3 @@ import { getLanguage as getConfiguredLanguage, getFetchDefaultLanguage as getConfiguredFetchDefaultLanguage, } from "../InitialConfiguration.js"; | ||
import { DEFAULT_LANGUAGE } from "../generated/AssetParameters.js"; | ||
import { isBooted } from "../Boot.js"; | ||
let curLanguage; | ||
@@ -32,4 +33,6 @@ let fetchDefaultLanguage; | ||
curLanguage = language; | ||
await fireLanguageChange(language); | ||
await reRenderAllUI5Elements({ languageAware: true }); | ||
if (isBooted()) { | ||
await fireLanguageChange(language); | ||
await reRenderAllUI5Elements({ languageAware: true }); | ||
} | ||
}; | ||
@@ -36,0 +39,0 @@ /** |
@@ -6,2 +6,3 @@ import { getTheme as getConfiguredTheme } from "../InitialConfiguration.js"; | ||
import { DEFAULT_THEME, SUPPORTED_THEMES } from "../generated/AssetParameters.js"; | ||
import { isBooted } from "../Boot.js"; | ||
let curTheme; | ||
@@ -30,5 +31,7 @@ /** | ||
curTheme = theme; | ||
// Update CSS Custom Properties | ||
await applyTheme(curTheme); | ||
await reRenderAllUI5Elements({ themeAware: true }); | ||
if (isBooted()) { | ||
// Update CSS Custom Properties | ||
await applyTheme(curTheme); | ||
await reRenderAllUI5Elements({ themeAware: true }); | ||
} | ||
}; | ||
@@ -35,0 +38,0 @@ /** |
const styleData = { | ||
packageName: "@ui5/webcomponents-base", | ||
fileName: "SystemCSSVars.css", | ||
content: `:root{--_ui5_content_density:cozy}.sapUiSizeCompact,.ui5-content-density-compact,[data-ui5-compact-size]{--_ui5_content_density:compact}[dir=rtl]{--_ui5_dir:rtl}[dir=ltr]{--_ui5_dir:ltr}`, | ||
content: `:root{--_ui5_content_density:cozy}.sapUiSizeCompact,.ui5-content-density-compact,[data-ui5-compact-size]{--_ui5_content_density:compact}`, | ||
}; | ||
export default styleData; | ||
//# sourceMappingURL=SystemCSSVars.css.js.map |
const VersionInfo = { | ||
version: "1.22.0", | ||
version: "1.22.1-rc.0", | ||
major: 1, | ||
minor: 22, | ||
patch: 0, | ||
suffix: "", | ||
patch: 1, | ||
suffix: "-rc.0", | ||
isNext: false, | ||
buildTime: 1707379523, | ||
buildTime: 1707984329, | ||
}; | ||
export default VersionInfo; | ||
//# sourceMappingURL=VersionInfo.js.map |
@@ -7,3 +7,2 @@ import type { FormatSettings } from "./config/FormatSettings.js"; | ||
declare const getThemeRoot: () => string | undefined; | ||
declare const getRTL: () => boolean | undefined; | ||
declare const getLanguage: () => string | undefined; | ||
@@ -29,2 +28,2 @@ /** | ||
declare const getFormatSettings: () => FormatSettings; | ||
export { getAnimationMode, getTheme, getThemeRoot, getRTL, getLanguage, getFetchDefaultLanguage, getNoConflict, getCalendarType, getSecondaryCalendarType, getTimezone, getFormatSettings, }; | ||
export { getAnimationMode, getTheme, getThemeRoot, getLanguage, getFetchDefaultLanguage, getNoConflict, getCalendarType, getSecondaryCalendarType, getTimezone, getFormatSettings, }; |
@@ -33,6 +33,2 @@ import merge from "./thirdparty/merge.js"; | ||
}; | ||
const getRTL = () => { | ||
initConfiguration(); | ||
return initialConfig.rtl; | ||
}; | ||
const getLanguage = () => { | ||
@@ -161,3 +157,3 @@ initConfiguration(); | ||
}; | ||
export { getAnimationMode, getTheme, getThemeRoot, getRTL, getLanguage, getFetchDefaultLanguage, getNoConflict, getCalendarType, getSecondaryCalendarType, getTimezone, getFormatSettings, }; | ||
export { getAnimationMode, getTheme, getThemeRoot, getLanguage, getFetchDefaultLanguage, getNoConflict, getCalendarType, getSecondaryCalendarType, getTimezone, getFormatSettings, }; | ||
//# sourceMappingURL=InitialConfiguration.js.map |
@@ -1,2 +0,2 @@ | ||
declare const getEffectiveDir: (element: HTMLElement) => string | undefined; | ||
declare const getEffectiveDir: (element: HTMLElement) => "rtl" | "ltr"; | ||
export default getEffectiveDir; |
@@ -1,24 +0,8 @@ | ||
import { getRTL } from "../config/RTL.js"; | ||
const GLOBAL_DIR_CSS_VAR = "--_ui5_dir"; | ||
const getEffectiveDir = (element) => { | ||
const doc = window.document; | ||
const dirValues = ["ltr", "rtl"]; // exclude "auto" and "" from all calculations | ||
const locallyAppliedDir = getComputedStyle(element).getPropertyValue(GLOBAL_DIR_CSS_VAR); | ||
// In that order, inspect the CSS Var (for modern browsers), the element itself, html and body (for IE fallback) | ||
if (dirValues.includes(locallyAppliedDir)) { | ||
return locallyAppliedDir; | ||
if (element.matches(":dir(rtl)")) { | ||
return "rtl"; | ||
} | ||
if (dirValues.includes(element.dir)) { | ||
return element.dir; | ||
} | ||
if (dirValues.includes(doc.documentElement.dir)) { | ||
return doc.documentElement.dir; | ||
} | ||
if (dirValues.includes(doc.body.dir)) { | ||
return doc.body.dir; | ||
} | ||
// Finally, check the configuration for explicitly set RTL or language-implied RTL | ||
return getRTL() ? "rtl" : undefined; | ||
return "ltr"; | ||
}; | ||
export default getEffectiveDir; | ||
//# sourceMappingURL=getEffectiveDir.js.map |
@@ -60,3 +60,3 @@ import "./StaticArea.js"; | ||
const dir = getEffectiveDir(this.ownerElement); | ||
if (dir) { | ||
if (dir === "rtl") { | ||
this.setAttribute("dir", dir); | ||
@@ -63,0 +63,0 @@ } |
@@ -24,3 +24,2 @@ // animations/ | ||
import { getNoConflict, setNoConflict } from "./dist/config/NoConflict.js"; | ||
import { getRTL } from "./dist/config/RTL.js"; | ||
import { | ||
@@ -142,3 +141,2 @@ getTheme, | ||
setNoConflict, | ||
getRTL, | ||
getTheme, | ||
@@ -145,0 +143,0 @@ setTheme, |
{ | ||
"name": "@ui5/webcomponents-base", | ||
"version": "1.22.1-rc.0", | ||
"version": "1.23.0-rc.0", | ||
"description": "UI5 Web Components: webcomponents.base", | ||
@@ -48,3 +48,3 @@ "author": "SAP SE (https://www.sap.com)", | ||
"@openui5/sap.ui.core": "1.120.3", | ||
"@ui5/webcomponents-tools": "1.22.1-rc.0", | ||
"@ui5/webcomponents-tools": "1.23.0-rc.0", | ||
"chromedriver": "120.0.0", | ||
@@ -59,3 +59,3 @@ "clean-css": "^5.2.2", | ||
}, | ||
"gitHead": "573f831d114960ad9bc0c7a15ac39c3ec256172b" | ||
"gitHead": "e2a973c91667b21715470df85bf779779ec517cb" | ||
} |
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 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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
1649087
491
22324