@ui5/webcomponents-tools 0.0.0-e7dd012d7 → 0.0.0-ec448881d
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 +170 -0
- package/README.md +1 -1
- package/assets-meta.js +16 -1
- package/components-package/nps.js +41 -28
- package/components-package/postcss.themes.js +6 -3
- package/components-package/rollup-plugins/empty-module.js +15 -0
- package/components-package/rollup.js +83 -78
- package/components-package/wdio.js +54 -29
- package/components-package/wdio.sync.js +360 -0
- package/icons-collection/nps.js +46 -8
- package/lib/copy-and-watch/index.js +30 -5
- package/lib/copy-list/index.js +28 -0
- package/lib/create-icons/index.js +82 -52
- package/lib/create-illustrations/index.js +161 -0
- package/lib/create-new-component/index.js +12 -4
- package/lib/documentation/index.js +124 -99
- package/lib/documentation/templates/api-properties-section.js +3 -1
- package/lib/documentation/templates/template.js +2 -1
- package/lib/esm-abs-to-rel/index.js +58 -0
- package/lib/generate-json-imports/i18n.js +75 -30
- package/lib/generate-json-imports/themes.js +61 -23
- package/lib/hbs2lit/src/compiler.js +12 -3
- package/lib/hbs2lit/src/includesReplacer.js +5 -5
- package/lib/hbs2lit/src/litVisitor2.js +31 -6
- package/lib/hbs2lit/src/svgProcessor.js +3 -3
- package/lib/hbs2ui5/RenderTemplates/LitRenderer.js +4 -11
- package/lib/hbs2ui5/index.js +37 -21
- package/lib/i18n/defaults.js +49 -57
- package/lib/i18n/toJSON.js +13 -12
- package/lib/jsdoc/config.json +1 -1
- package/lib/jsdoc/plugin.js +30 -1
- package/lib/jsdoc/template/publish.js +22 -2
- package/lib/postcss-combine-duplicated-selectors/index.js +178 -0
- package/lib/postcss-css-to-esm/index.js +19 -16
- package/lib/postcss-css-to-json/index.js +20 -11
- package/lib/postcss-new-files/index.js +36 -0
- package/lib/postcss-p/postcss-p.mjs +11 -0
- package/lib/replace-global-core/index.js +25 -0
- package/lib/scoping/lint-src.js +1 -1
- package/lib/scoping/missing-dependencies.js +65 -0
- package/lib/scoping/report-tags-usage.js +28 -0
- package/lib/serve/index.js +46 -0
- package/{components-package → lib/serve}/serve.json +0 -0
- package/package.json +45 -52
- package/bin/init-ui5-package.js +0 -3
- package/lib/init-package/index.js +0 -123
- package/lib/init-package/resources/.eslintignore +0 -3
- package/lib/init-package/resources/bundle.es5.js +0 -25
- package/lib/init-package/resources/bundle.esm.js +0 -34
- package/lib/init-package/resources/config/.eslintrc.js +0 -1
- package/lib/init-package/resources/config/postcss.components/postcss.config.js +0 -1
- package/lib/init-package/resources/config/postcss.themes/postcss.config.js +0 -1
- package/lib/init-package/resources/config/rollup.config.js +0 -1
- package/lib/init-package/resources/config/wdio.conf.js +0 -1
- package/lib/init-package/resources/package-scripts.js +0 -11
- package/lib/init-package/resources/src/Assets.js +0 -5
- package/lib/init-package/resources/src/MyFirstComponent.hbs +0 -1
- package/lib/init-package/resources/src/MyFirstComponent.js +0 -56
- package/lib/init-package/resources/src/i18n/messagebundle.properties +0 -2
- package/lib/init-package/resources/src/i18n/messagebundle_de.properties +0 -1
- package/lib/init-package/resources/src/i18n/messagebundle_en.properties +0 -1
- package/lib/init-package/resources/src/i18n/messagebundle_es.properties +0 -1
- package/lib/init-package/resources/src/i18n/messagebundle_fr.properties +0 -1
- package/lib/init-package/resources/src/themes/MyFirstComponent.css +0 -11
- package/lib/init-package/resources/src/themes/sap_belize/parameters-bundle.css +0 -3
- package/lib/init-package/resources/src/themes/sap_belize_hcb/parameters-bundle.css +0 -3
- package/lib/init-package/resources/src/themes/sap_belize_hcw/parameters-bundle.css +0 -3
- package/lib/init-package/resources/src/themes/sap_fiori_3/parameters-bundle.css +0 -3
- package/lib/init-package/resources/src/themes/sap_fiori_3_dark/parameters-bundle.css +0 -3
- package/lib/init-package/resources/src/themes/sap_fiori_3_hcb/parameters-bundle.css +0 -3
- package/lib/init-package/resources/src/themes/sap_fiori_3_hcw/parameters-bundle.css +0 -3
- package/lib/init-package/resources/test/pages/index.html +0 -56
- package/lib/init-package/resources/test/specs/Demo.spec.js +0 -12
@@ -1,56 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
|
4
|
-
<head>
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
6
|
-
<meta charset="utf-8">
|
7
|
-
|
8
|
-
<title>INIT_PACKAGE_VAR_TAG</title>
|
9
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
10
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
11
|
-
<meta charset="utf-8">
|
12
|
-
|
13
|
-
<script data-ui5-config type="application/json">
|
14
|
-
{
|
15
|
-
"language": "EN"
|
16
|
-
}
|
17
|
-
</script>
|
18
|
-
|
19
|
-
<script src="../../webcomponentsjs/webcomponents-loader.js"></script>
|
20
|
-
<script src="../../resources/bundle.esm.js" type="module"></script>
|
21
|
-
<script nomodule src="../../resources/bundle.es5.js"></script>
|
22
|
-
|
23
|
-
<style>
|
24
|
-
code { color: blue; font-size: small; }
|
25
|
-
</style>
|
26
|
-
|
27
|
-
</head>
|
28
|
-
|
29
|
-
<body>
|
30
|
-
<ul>
|
31
|
-
<li><a href="?sap-ui-theme=sap_fiori_3">Fiori 3</a></li>
|
32
|
-
<li><a href="?sap-ui-theme=sap_fiori_3_dark">Fiori 3 Dark</a></li>
|
33
|
-
<li><a href="?sap-ui-theme=sap_fiori_3_hcb">Fiori 3 High Contrast Black</a></li>
|
34
|
-
<li><a href="?sap-ui-theme=sap_fiori_3_hcw">Fiori 3 High Contrast White</a></li>
|
35
|
-
<li><a href="?sap-ui-theme=sap_belize">Belize</a></li>
|
36
|
-
<li><a href="?sap-ui-theme=sap_belize_hcb">Belize High Contrast Black</a></li>
|
37
|
-
<li><a href="?sap-ui-theme=sap_belize_hcw">Belize High Contrast White</a></li>
|
38
|
-
</ul>
|
39
|
-
<br>
|
40
|
-
<span>or in the browser console, for example:</span>
|
41
|
-
<code>window['sap-ui-webcomponents-bundle'].configuration.setTheme("sap_belize_hcb")</code>
|
42
|
-
|
43
|
-
<br><br>
|
44
|
-
|
45
|
-
<a href="?sap-ui-language=en">English</a> |
|
46
|
-
<a href="?sap-ui-language=de">German</a> |
|
47
|
-
<a href="?sap-ui-language=es">Spanish</a> |
|
48
|
-
<a href="?sap-ui-language=fr">French</a>
|
49
|
-
|
50
|
-
<br><br>
|
51
|
-
|
52
|
-
<h1>Test your web components here</h1>
|
53
|
-
<INIT_PACKAGE_VAR_TAG id="myFirstComponent"></INIT_PACKAGE_VAR_TAG>
|
54
|
-
</body>
|
55
|
-
|
56
|
-
</html>
|
@@ -1,12 +0,0 @@
|
|
1
|
-
const assert = require("assert");
|
2
|
-
|
3
|
-
describe("INIT_PACKAGE_VAR_TAG rendering", () => {
|
4
|
-
browser.url("http://localhost:INIT_PACKAGE_VAR_PORT/test-resources/pages/index.html");
|
5
|
-
|
6
|
-
it("tests if web component is correctly rendered", () => {
|
7
|
-
|
8
|
-
const innerContent = browser.$("#myFirstComponent").shadow$("div");
|
9
|
-
|
10
|
-
assert.ok(innerContent, "content rendered");
|
11
|
-
});
|
12
|
-
});
|