@ui5/webcomponents-base 2.0.0-rc.1 → 2.0.0-rc.3
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/CHANGELOG.md +172 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/Boot.js +2 -3
- package/dist/Boot.js.map +1 -1
- package/dist/Keys.d.ts +2 -1
- package/dist/Keys.js +4 -1
- package/dist/Keys.js.map +1 -1
- package/dist/UI5Element.js +1 -0
- package/dist/UI5Element.js.map +1 -1
- package/dist/asset-registries/Icons.js +1 -1
- package/dist/asset-registries/Icons.js.map +1 -1
- package/dist/asset-registries/util/getIconCollectionByTheme.d.ts +3 -3
- package/dist/asset-registries/util/getIconCollectionByTheme.js +3 -3
- package/dist/asset-registries/util/getIconCollectionByTheme.js.map +1 -1
- package/dist/config/Theme.d.ts +3 -2
- package/dist/config/Theme.js +7 -3
- package/dist/config/Theme.js.map +1 -1
- package/dist/custom-elements-internal.json +180 -6
- package/dist/custom-elements.json +75 -0
- package/dist/features/OpenUI5Support.js +8 -2
- package/dist/features/OpenUI5Support.js.map +1 -1
- package/dist/features/patchPatcher.d.ts +11 -0
- package/dist/features/patchPatcher.js +11 -0
- package/dist/features/patchPatcher.js.map +1 -0
- package/dist/features/patchPopup.d.ts +14 -0
- package/dist/features/patchPopup.js +50 -0
- package/dist/features/patchPopup.js.map +1 -0
- package/dist/generated/AssetParameters.js +1 -1
- package/dist/generated/AssetParameters.js.map +1 -1
- package/dist/generated/VersionInfo.js +3 -3
- package/dist/generated/VersionInfo.js.map +1 -1
- package/dist/ssr-dom.js +0 -3
- package/dist/types/AriaHasPopup.d.ts +32 -0
- package/dist/types/AriaHasPopup.js +34 -0
- package/dist/types/AriaHasPopup.js.map +1 -0
- package/dist/types/AriaLandmarkRole.d.ts +79 -0
- package/dist/types/AriaLandmarkRole.js +81 -0
- package/dist/types/AriaLandmarkRole.js.map +1 -0
- package/dist/types/AriaRole.d.ts +27 -0
- package/dist/types/AriaRole.js +29 -0
- package/dist/types/AriaRole.js.map +1 -0
- package/dist/types/ValueState.d.ts +3 -3
- package/dist/types/ValueState.js +3 -3
- package/dist/types/ValueState.js.map +1 -1
- package/dist/types.d.ts +15 -2
- package/dist/types.js.map +1 -1
- package/dist/util/clamp.js +2 -1
- package/dist/util/clamp.js.map +1 -1
- package/package-scripts.cjs +3 -1
- package/package.json +6 -5
- package/tsconfig.json +2 -2
- package/.eslintignore +0 -17
- package/.eslintrc.cjs +0 -3
- package/bundle.esm.js +0 -65
- package/dist/ssr-dom.js.map +0 -1
- package/lib/generate-asset-parameters/index.js +0 -27
- package/lib/generate-styles/index.js +0 -31
- package/lib/generate-version-info/index.js +0 -32
- package/used-modules.txt +0 -14
package/bundle.esm.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { registerThemePropertiesLoader } from "./dist/AssetRegistry.js";
|
|
2
|
-
import EventProvider from "./dist/EventProvider.js";
|
|
3
|
-
|
|
4
|
-
// ESM bundle targets browsers with native support
|
|
5
|
-
import "./dist/features/OpenUI5Support.js";
|
|
6
|
-
|
|
7
|
-
// Test components
|
|
8
|
-
import "./test/elements/Accessor.js";
|
|
9
|
-
import "./test/elements/Generic.js";
|
|
10
|
-
import "./test/elements/NoShadowDOM.js";
|
|
11
|
-
import "./test/elements/Parent.js";
|
|
12
|
-
import "./test/elements/Child.js";
|
|
13
|
-
import "./test/elements/WithComplexTemplate.js";
|
|
14
|
-
import "./test/elements/GenericExt.js";
|
|
15
|
-
|
|
16
|
-
// Test themes - CSS Vars for the sap_fiori_3, sap_fiori_3_dark, sap_belize and sap_belize_hcb themes
|
|
17
|
-
import "./test/assets/Themes.js";
|
|
18
|
-
|
|
19
|
-
// used in test pages
|
|
20
|
-
import { renderFinished } from "./dist/Render.js";
|
|
21
|
-
|
|
22
|
-
// used for tests - to register a custom theme
|
|
23
|
-
window.registerThemePropertiesLoader = registerThemePropertiesLoader;
|
|
24
|
-
|
|
25
|
-
// i18n
|
|
26
|
-
import { registerI18nLoader, getI18nBundle } from "./dist/i18nBundle.js";
|
|
27
|
-
import parseProperties from "./dist/PropertiesFileFormat.js";
|
|
28
|
-
|
|
29
|
-
// Note: keep in sync with rollup.config value for IIFE
|
|
30
|
-
import { getAnimationMode } from "./dist/config/AnimationMode.js";
|
|
31
|
-
import { getLanguage, setLanguage } from "./dist/config/Language.js";
|
|
32
|
-
import { getCalendarType } from "./dist/config/CalendarType.js";
|
|
33
|
-
import { getTheme, setTheme } from "./dist/config/Theme.js";
|
|
34
|
-
import { getThemeRoot, setThemeRoot } from "./dist/config/ThemeRoot.js";
|
|
35
|
-
import { getNoConflict, setNoConflict } from "./dist/config/NoConflict.js";
|
|
36
|
-
import { getFirstDayOfWeek, getLegacyDateCalendarCustomizing } from "./dist/config/FormatSettings.js";
|
|
37
|
-
import { _getRegisteredNames as getIconNames } from "./dist/asset-registries/Icons.js"
|
|
38
|
-
import applyDirection from "./dist/locale/applyDirection.js";
|
|
39
|
-
import { getCurrentRuntimeIndex } from "./dist/Runtimes.js";
|
|
40
|
-
import LegacyDateFormats from "./dist/features/LegacyDateFormats.js";
|
|
41
|
-
|
|
42
|
-
window["sap-ui-webcomponents-bundle"] = {
|
|
43
|
-
configuration : {
|
|
44
|
-
getAnimationMode,
|
|
45
|
-
getLanguage,
|
|
46
|
-
setLanguage,
|
|
47
|
-
getTheme,
|
|
48
|
-
getThemeRoot,
|
|
49
|
-
setThemeRoot,
|
|
50
|
-
setTheme,
|
|
51
|
-
getNoConflict,
|
|
52
|
-
setNoConflict,
|
|
53
|
-
getCalendarType,
|
|
54
|
-
getFirstDayOfWeek,
|
|
55
|
-
getLegacyDateCalendarCustomizing,
|
|
56
|
-
},
|
|
57
|
-
getCurrentRuntimeIndex,
|
|
58
|
-
getIconNames,
|
|
59
|
-
parseProperties,
|
|
60
|
-
registerI18nLoader,
|
|
61
|
-
getI18nBundle,
|
|
62
|
-
renderFinished,
|
|
63
|
-
applyDirection,
|
|
64
|
-
EventProvider,
|
|
65
|
-
};
|
package/dist/ssr-dom.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ssr-dom.js","sourceRoot":"","sources":["../src/ssr-dom.ts"],"names":[],"mappings":";AAAA,+DAA+D","sourcesContent":["// no shims in the browser when imported via conditional export\n"]}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import fs from "fs/promises";
|
|
2
|
-
import assets from "@ui5/webcomponents-tools/assets-meta.js";
|
|
3
|
-
|
|
4
|
-
const fileContent = `const assetParameters = ${JSON.stringify(assets)};
|
|
5
|
-
|
|
6
|
-
const DEFAULT_THEME = assetParameters.themes.default;
|
|
7
|
-
const SUPPORTED_THEMES = assetParameters.themes.all;
|
|
8
|
-
const DEFAULT_LANGUAGE = assetParameters.languages.default;
|
|
9
|
-
const DEFAULT_LOCALE = assetParameters.locales.default;
|
|
10
|
-
const SUPPORTED_LOCALES = assetParameters.locales.all;
|
|
11
|
-
|
|
12
|
-
export {
|
|
13
|
-
DEFAULT_THEME,
|
|
14
|
-
SUPPORTED_THEMES,
|
|
15
|
-
DEFAULT_LANGUAGE,
|
|
16
|
-
DEFAULT_LOCALE,
|
|
17
|
-
SUPPORTED_LOCALES,
|
|
18
|
-
};`;
|
|
19
|
-
|
|
20
|
-
const generate = async () => {
|
|
21
|
-
await fs.mkdir("src/generated/", { recursive: true });
|
|
22
|
-
return fs.writeFile("src/generated/AssetParameters.ts", fileContent);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
generate().then(() => {
|
|
26
|
-
console.log("Assets parameters generated.");
|
|
27
|
-
});
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import fs from 'fs/promises';
|
|
2
|
-
import path from "path";
|
|
3
|
-
import CleanCSS from "clean-css";
|
|
4
|
-
|
|
5
|
-
const generate = async () => {
|
|
6
|
-
await fs.mkdir("src/generated/css/", {recursive: true});
|
|
7
|
-
|
|
8
|
-
const files = (await fs.readdir("src/css/")).filter(file => file.endsWith(".css"));
|
|
9
|
-
const filesPromises = files.map(async file => {
|
|
10
|
-
let content = await fs.readFile(path.join("src/css/", file));
|
|
11
|
-
const res = new CleanCSS().minify(`${content}`);
|
|
12
|
-
content = `import type { StyleData } from "../../types.js";
|
|
13
|
-
|
|
14
|
-
const styleData: StyleData = {
|
|
15
|
-
packageName: "@ui5/webcomponents-base",
|
|
16
|
-
fileName: "${file}",
|
|
17
|
-
content: \`${res.styles}\`,
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export default styleData;
|
|
21
|
-
`;
|
|
22
|
-
|
|
23
|
-
return fs.writeFile(path.join("src/generated/css/", `${file}.ts`), content);
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
return Promise.all(filesPromises);
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
generate().then(() => {
|
|
30
|
-
console.log("Styles files generated.");
|
|
31
|
-
});
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import fs from "fs/promises";
|
|
2
|
-
|
|
3
|
-
const generate = async () => {
|
|
4
|
-
const version = JSON.parse(await fs.readFile("package.json")).version;
|
|
5
|
-
|
|
6
|
-
// Parse version
|
|
7
|
-
const matches = version.match(/^([0-9]+)\.([0-9]+)\.([0-9]+)(.*)$/);
|
|
8
|
-
if (!matches) {
|
|
9
|
-
throw new Error("Unsupported version format");
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const isNext = version.match(/[a-f0-9]{9}$/);
|
|
13
|
-
const buildTime = Math.floor(new Date().getTime() / 1000);
|
|
14
|
-
|
|
15
|
-
const fileContent = `const VersionInfo = {
|
|
16
|
-
version: "${version}",
|
|
17
|
-
major: ${matches[1]},
|
|
18
|
-
minor: ${matches[2]},
|
|
19
|
-
patch: ${matches[3]},
|
|
20
|
-
suffix: "${matches[4]}",
|
|
21
|
-
isNext: ${isNext ? "true" : "false"},
|
|
22
|
-
buildTime: ${buildTime},
|
|
23
|
-
};
|
|
24
|
-
export default VersionInfo;`;
|
|
25
|
-
|
|
26
|
-
await fs.mkdir("src/generated/", { recursive: true });
|
|
27
|
-
await fs.writeFile("src/generated/VersionInfo.ts", fileContent);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
generate().then(() => {
|
|
31
|
-
console.log("Version info file generated.");
|
|
32
|
-
});
|
package/used-modules.txt
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# Needed files from OpenUI5
|
|
2
|
-
|
|
3
|
-
# ./ui5loader-autoconfig.js
|
|
4
|
-
sap/base/util/now.js
|
|
5
|
-
sap/base/util/uid.js
|
|
6
|
-
sap/base/Log.js
|
|
7
|
-
# sap/base/config.js
|
|
8
|
-
sap/base/config/MemoryConfigurationProvider.js
|
|
9
|
-
sap/base/assert.js
|
|
10
|
-
sap/base/security/URLListValidator.js
|
|
11
|
-
sap/base/security/sanitizeHTML.js
|
|
12
|
-
sap/base/strings/toHex.js
|
|
13
|
-
sap/base/security/encodeXML.js
|
|
14
|
-
sap/base/security/encodeCSS.js
|