@ui5/create-webcomponents-package 0.0.0-820a5a869 → 0.0.0-8c62d34c3
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 +222 -0
- package/README.md +2 -1
- package/create-package.js +4 -6
- package/package.json +1 -1
- package/template/src/MyFirstComponent.js +1 -1
- package/template/src/MyFirstComponent.ts +1 -1
- package/template/src/themes/MyFirstComponent.css +4 -0
- package/template/test/pages/css/index.css +2 -2
- package/template/test/pages/index.html +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,228 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.20.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v1.20.0-rc.2...v1.20.0-rc.3) (2023-11-30)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @ui5/create-webcomponents-package
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [1.20.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v1.20.0-rc.1...v1.20.0-rc.2) (2023-11-23)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @ui5/create-webcomponents-package
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [1.20.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v1.20.0-rc.0...v1.20.0-rc.1) (2023-11-16)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @ui5/create-webcomponents-package
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# [1.20.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.19.0...v1.20.0-rc.0) (2023-11-09)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @ui5/create-webcomponents-package
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
# [1.19.0](https://github.com/SAP/ui5-webcomponents/compare/v1.19.0-rc.3...v1.19.0) (2023-11-02)
|
|
39
|
+
|
|
40
|
+
**Note:** Version bump only for package @ui5/create-webcomponents-package
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
# [1.19.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v1.19.0-rc.2...v1.19.0-rc.3) (2023-11-02)
|
|
47
|
+
|
|
48
|
+
**Note:** Version bump only for package @ui5/create-webcomponents-package
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
# [1.19.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v1.19.0-rc.1...v1.19.0-rc.2) (2023-10-26)
|
|
55
|
+
|
|
56
|
+
**Note:** Version bump only for package @ui5/create-webcomponents-package
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
# [1.19.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v1.19.0-rc.0...v1.19.0-rc.1) (2023-10-19)
|
|
63
|
+
|
|
64
|
+
**Note:** Version bump only for package @ui5/create-webcomponents-package
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
# [1.19.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.18.1-rc.0...v1.19.0-rc.0) (2023-10-12)
|
|
71
|
+
|
|
72
|
+
**Note:** Version bump only for package @ui5/create-webcomponents-package
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
## [1.18.1-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.18.0...v1.18.1-rc.0) (2023-10-05)
|
|
79
|
+
|
|
80
|
+
**Note:** Version bump only for package @ui5/create-webcomponents-package
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
# [1.18.0](https://github.com/SAP/ui5-webcomponents/compare/v1.18.0-rc.2...v1.18.0) (2023-10-02)
|
|
87
|
+
|
|
88
|
+
**Note:** Version bump only for package @ui5/create-webcomponents-package
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
# [1.18.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v1.18.0-rc.1...v1.18.0-rc.2) (2023-09-28)
|
|
95
|
+
|
|
96
|
+
**Note:** Version bump only for package @ui5/create-webcomponents-package
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
# [1.18.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v1.18.0-rc.0...v1.18.0-rc.1) (2023-09-21)
|
|
103
|
+
|
|
104
|
+
**Note:** Version bump only for package @ui5/create-webcomponents-package
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
# [1.18.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.17.0...v1.18.0-rc.0) (2023-09-07)
|
|
111
|
+
|
|
112
|
+
**Note:** Version bump only for package @ui5/create-webcomponents-package
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
# [1.17.0](https://github.com/SAP/ui5-webcomponents/compare/v1.17.0-rc.2...v1.17.0) (2023-09-01)
|
|
119
|
+
|
|
120
|
+
**Note:** Version bump only for package @ui5/create-webcomponents-package
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
# [1.17.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v1.17.0-rc.1...v1.17.0-rc.2) (2023-08-24)
|
|
127
|
+
|
|
128
|
+
**Note:** Version bump only for package @ui5/create-webcomponents-package
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
# [1.17.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v1.17.0-rc.0...v1.17.0-rc.1) (2023-08-17)
|
|
135
|
+
|
|
136
|
+
**Note:** Version bump only for package @ui5/create-webcomponents-package
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
# [1.17.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.16.0...v1.17.0-rc.0) (2023-08-10)
|
|
143
|
+
|
|
144
|
+
**Note:** Version bump only for package @ui5/create-webcomponents-package
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
# [1.16.0](https://github.com/SAP/ui5-webcomponents/compare/v1.16.0-rc.4...v1.16.0) (2023-08-03)
|
|
151
|
+
|
|
152
|
+
**Note:** Version bump only for package @ui5/create-webcomponents-package
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
# [1.16.0-rc.4](https://github.com/SAP/ui5-webcomponents/compare/v1.16.0-rc.3...v1.16.0-rc.4) (2023-08-03)
|
|
159
|
+
|
|
160
|
+
**Note:** Version bump only for package @ui5/create-webcomponents-package
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
# [1.16.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v1.16.0-rc.2...v1.16.0-rc.3) (2023-07-27)
|
|
167
|
+
|
|
168
|
+
**Note:** Version bump only for package @ui5/create-webcomponents-package
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
# [1.16.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v1.16.0-rc.1...v1.16.0-rc.2) (2023-07-20)
|
|
175
|
+
|
|
176
|
+
**Note:** Version bump only for package @ui5/create-webcomponents-package
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
# [1.16.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v1.16.0-rc.0...v1.16.0-rc.1) (2023-07-13)
|
|
183
|
+
|
|
184
|
+
**Note:** Version bump only for package @ui5/create-webcomponents-package
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
# [1.16.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.15.1...v1.16.0-rc.0) (2023-07-06)
|
|
191
|
+
|
|
192
|
+
**Note:** Version bump only for package @ui5/create-webcomponents-package
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
## [1.15.1](https://github.com/SAP/ui5-webcomponents/compare/v1.15.0...v1.15.1) (2023-06-30)
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
### Bug Fixes
|
|
202
|
+
|
|
203
|
+
* **framework:** fix links in starting page of new pkg [ci skip] ([475fed5](https://github.com/SAP/ui5-webcomponents/commit/475fed55504f4a15e8b26aaf3c9e4d73b55976ec))
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
# [1.15.0](https://github.com/SAP/ui5-webcomponents/compare/v1.15.0-rc.2...v1.15.0) (2023-06-30)
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
### Bug Fixes
|
|
213
|
+
|
|
214
|
+
* fix image in `create-webcomponent-package` ([#7253](https://github.com/SAP/ui5-webcomponents/issues/7253)) ([3317e64](https://github.com/SAP/ui5-webcomponents/commit/3317e64b911f992abf34b88a48e6003a723f7b9e))
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
# [1.15.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v1.15.0-rc.1...v1.15.0-rc.2) (2023-06-22)
|
|
221
|
+
|
|
222
|
+
**Note:** Version bump only for package @ui5/create-webcomponents-package
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
6
228
|
# [1.15.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v1.15.0-rc.0...v1.15.0-rc.1) (2023-06-15)
|
|
7
229
|
|
|
8
230
|
**Note:** Version bump only for package @ui5/create-webcomponents-package
|
package/README.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
|
+
|
|
3
4
|
# UI5 Web Components - Create Package
|
|
4
5
|
|
|
5
6
|
[](https://www.npmjs.com/package/@ui5/webcomponents)
|
|
@@ -49,7 +50,7 @@ components package.
|
|
|
49
50
|
- [UI5 Web Components - Playground and API Reference](https://sap.github.io/ui5-webcomponents/playground/)
|
|
50
51
|
|
|
51
52
|
## Support
|
|
52
|
-
We welcome all comments, suggestions, questions, and bug reports. Please follow our [Support Guidelines](https://github.com/SAP/ui5-webcomponents/blob/main/SUPPORT.md#-content) on how to report an issue, or chat with us in the `#webcomponents` channel of the [OpenUI5 Community Slack](https://
|
|
53
|
+
We welcome all comments, suggestions, questions, and bug reports. Please follow our [Support Guidelines](https://github.com/SAP/ui5-webcomponents/blob/main/SUPPORT.md#-content) on how to report an issue, or chat with us in the `#webcomponents` channel of the [OpenUI5 Community Slack](https://ui5-slack-invite.cfapps.eu10.hana.ondemand.com/).
|
|
53
54
|
|
|
54
55
|
## Contribute
|
|
55
56
|
Please check our [Contribution Guidelines](https://github.com/SAP/ui5-webcomponents/blob/main/docs/6-contributing/02-conventions-and-guidelines.md).
|
package/create-package.js
CHANGED
|
@@ -10,9 +10,7 @@ const { hideBin } = require("yargs/helpers");
|
|
|
10
10
|
|
|
11
11
|
const argv = yargs(hideBin(process.argv)).argv;
|
|
12
12
|
|
|
13
|
-
const version = JSON.parse(fs.readFileSync(path.join(__dirname, "package.json"))).version;
|
|
14
|
-
const versionParts = version.split(".") // f.e. 1, 15, 3
|
|
15
|
-
const effVersion = `^${versionParts[0]}.${versionParts[1]}.0` // f.e. ^1.15.0
|
|
13
|
+
const version = JSON.parse(fs.readFileSync(path.join(__dirname, "package.json"))).version;
|
|
16
14
|
|
|
17
15
|
// from where all the files will be copied
|
|
18
16
|
const TEMPLATE_DIR = path.join(`${__dirname}`, `template/`);
|
|
@@ -146,11 +144,11 @@ const generateFilesContent = (packageName, componentName, namespace, typescript,
|
|
|
146
144
|
"./*": "./dist/*",
|
|
147
145
|
},
|
|
148
146
|
"dependencies": {
|
|
149
|
-
"@ui5/webcomponents-base":
|
|
150
|
-
"@ui5/webcomponents-theming":
|
|
147
|
+
"@ui5/webcomponents-base": version,
|
|
148
|
+
"@ui5/webcomponents-theming": version,
|
|
151
149
|
},
|
|
152
150
|
"devDependencies": {
|
|
153
|
-
"@ui5/webcomponents-tools":
|
|
151
|
+
"@ui5/webcomponents-tools": version,
|
|
154
152
|
"chromedriver": "*",
|
|
155
153
|
},
|
|
156
154
|
};
|
package/package.json
CHANGED
|
@@ -42,7 +42,7 @@ class INIT_PACKAGE_VAR_CLASS_NAME extends UI5Element {
|
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
* Defines the component count.
|
|
45
|
-
* @name
|
|
45
|
+
* @name INIT_PACKAGE_VAR_NAMESPACE.INIT_PACKAGE_VAR_CLASS_NAME.prototype.count
|
|
46
46
|
* @public
|
|
47
47
|
* @type { sap.ui.webc.base.types.Integer }
|
|
48
48
|
*/
|
|
@@ -15,7 +15,7 @@ h2 {
|
|
|
15
15
|
margin-bottom: 0.5rem;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
.app, .app-
|
|
18
|
+
.app, .app-settings, .app-docs, .app-first-component {
|
|
19
19
|
display: flex;
|
|
20
20
|
align-items: center;
|
|
21
21
|
justify-content: center;
|
|
@@ -33,4 +33,4 @@ h2 {
|
|
|
33
33
|
a {
|
|
34
34
|
margin: 0.25rem;
|
|
35
35
|
color: var(--sapLinkColor);
|
|
36
|
-
}
|
|
36
|
+
}
|
|
@@ -14,21 +14,21 @@
|
|
|
14
14
|
"language": "EN"
|
|
15
15
|
}
|
|
16
16
|
</script>
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
<link rel="stylesheet" type="text/css" href="./css/index.css">
|
|
19
19
|
<script src="../../bundle.esm.js" type="module"></script>
|
|
20
20
|
</head>
|
|
21
21
|
|
|
22
22
|
<body>
|
|
23
23
|
<div class="app">
|
|
24
|
-
<a href="https://sap.github.io/ui5-webcomponents/playground/getting-started" target="_blank"><img src="./img/logo.png" alt="logo"/></a>
|
|
24
|
+
<a href="https://sap.github.io/ui5-webcomponents/playground/?path=/docs/docs-getting-started-first-steps--docs" target="_blank"><img src="./img/logo.png" alt="logo"/></a>
|
|
25
25
|
|
|
26
26
|
<div class="app-first-component">
|
|
27
27
|
<h1>Hooray! It's Your First Web Component!</h1>
|
|
28
28
|
<div> <pre><INIT_PACKAGE_VAR_TAG></INIT_PACKAGE_VAR_TAG> </pre></div>
|
|
29
29
|
<INIT_PACKAGE_VAR_TAG id="myFirstComponent"></INIT_PACKAGE_VAR_TAG>
|
|
30
30
|
</div>
|
|
31
|
-
|
|
31
|
+
|
|
32
32
|
<div class="app-settings">
|
|
33
33
|
|
|
34
34
|
<h2>Switch themes</h2>
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
<a class="link" href="?sap-ui-theme=sap_horizon_hcb">Horizon High Contrast Black</a>
|
|
39
39
|
<a class="link" href="?sap-ui-theme=sap_horizon_hcw">Horizon High Contrast White</a>
|
|
40
40
|
</div>
|
|
41
|
-
|
|
41
|
+
|
|
42
42
|
<h2>Switch language</h2>
|
|
43
43
|
<div>
|
|
44
44
|
<a class="link" href="?sap-ui-language=en">English</a>
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
|
|
51
51
|
<div class="app-docs">
|
|
52
52
|
<h2>Documentation</h2>
|
|
53
|
-
<a class="link" href="https://sap.github.io/ui5-webcomponents/playground/development">Custom Component Development</a>
|
|
53
|
+
<a class="link" href="https://sap.github.io/ui5-webcomponents/playground/?path=/docs/docs-development-custom-ui5-web-components-packages--docs">Custom Component Development</a>
|
|
54
54
|
</div>
|
|
55
55
|
</div>
|
|
56
56
|
</body>
|