@ui5/create-webcomponents-package 0.0.0-6298a142d → 0.0.0-64a57f090

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 CHANGED
@@ -3,6 +3,176 @@
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.18.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v1.18.0-rc.1...v1.18.0-rc.2) (2023-09-28)
7
+
8
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
9
+
10
+
11
+
12
+
13
+
14
+ # [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)
15
+
16
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
17
+
18
+
19
+
20
+
21
+
22
+ # [1.18.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.17.0...v1.18.0-rc.0) (2023-09-07)
23
+
24
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
25
+
26
+
27
+
28
+
29
+
30
+ # [1.17.0](https://github.com/SAP/ui5-webcomponents/compare/v1.17.0-rc.2...v1.17.0) (2023-09-01)
31
+
32
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
33
+
34
+
35
+
36
+
37
+
38
+ # [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)
39
+
40
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
41
+
42
+
43
+
44
+
45
+
46
+ # [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)
47
+
48
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
49
+
50
+
51
+
52
+
53
+
54
+ # [1.17.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.16.0...v1.17.0-rc.0) (2023-08-10)
55
+
56
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
57
+
58
+
59
+
60
+
61
+
62
+ # [1.16.0](https://github.com/SAP/ui5-webcomponents/compare/v1.16.0-rc.4...v1.16.0) (2023-08-03)
63
+
64
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
65
+
66
+
67
+
68
+
69
+
70
+ # [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)
71
+
72
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
73
+
74
+
75
+
76
+
77
+
78
+ # [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)
79
+
80
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
81
+
82
+
83
+
84
+
85
+
86
+ # [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)
87
+
88
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
89
+
90
+
91
+
92
+
93
+
94
+ # [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)
95
+
96
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
97
+
98
+
99
+
100
+
101
+
102
+ # [1.16.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.15.1...v1.16.0-rc.0) (2023-07-06)
103
+
104
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
105
+
106
+
107
+
108
+
109
+
110
+ ## [1.15.1](https://github.com/SAP/ui5-webcomponents/compare/v1.15.0...v1.15.1) (2023-06-30)
111
+
112
+
113
+ ### Bug Fixes
114
+
115
+ * **framework:** fix links in starting page of new pkg [ci skip] ([475fed5](https://github.com/SAP/ui5-webcomponents/commit/475fed55504f4a15e8b26aaf3c9e4d73b55976ec))
116
+
117
+
118
+
119
+
120
+
121
+ # [1.15.0](https://github.com/SAP/ui5-webcomponents/compare/v1.15.0-rc.2...v1.15.0) (2023-06-30)
122
+
123
+
124
+ ### Bug Fixes
125
+
126
+ * fix image in `create-webcomponent-package` ([#7253](https://github.com/SAP/ui5-webcomponents/issues/7253)) ([3317e64](https://github.com/SAP/ui5-webcomponents/commit/3317e64b911f992abf34b88a48e6003a723f7b9e))
127
+
128
+
129
+
130
+
131
+
132
+ # [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)
133
+
134
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
135
+
136
+
137
+
138
+
139
+
140
+ # [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)
141
+
142
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+ # [1.15.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.14.0...v1.15.0-rc.0) (2023-06-08)
153
+
154
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
155
+
156
+
157
+
158
+
159
+
160
+ # [1.14.0](https://github.com/SAP/ui5-webcomponents/compare/v1.14.0-rc.2...v1.14.0) (2023-06-01)
161
+
162
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
163
+
164
+
165
+
166
+
167
+
168
+ # [1.14.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v1.14.0-rc.1...v1.14.0-rc.2) (2023-06-01)
169
+
170
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
171
+
172
+
173
+
174
+
175
+
6
176
  # [1.14.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v1.14.0-rc.0...v1.14.0-rc.1) (2023-05-25)
7
177
 
8
178
  **Note:** Version bump only for package @ui5/create-webcomponents-package
package/README.md CHANGED
@@ -18,8 +18,8 @@ Usage:
18
18
 
19
19
  Options:
20
20
  --name <string> - defines the package name
21
- --componentName <string> - defines the component class name that will be created in your new package
22
- --tag <string> - defines the tag name of the sample web component that will be created in your new package. The tag will be derived from the component name if not provided.
21
+ --component-name <string> - defines the component class name that will be created in your new package
22
+ --tag <string> - defines the tag name of the sample web component that will be created in your new package. The tag will be derived from the component name if not provided.
23
23
  --enable-typescript - enables TypeScript support for the package
24
24
  --skip - skips configuration and generates package with a default value for each parameter that wasn't passed
25
25
  ```
@@ -34,6 +34,7 @@ Usage:
34
34
  yarn create @ui5/webcomponents-package [OPTIONS]
35
35
  Options:
36
36
  --name <string> - defines the package name
37
+ --component-name <string> - defines the component class name that will be created in your new package
37
38
  --tag <string> - defines the tag name of the sample web component that will be created in your new package
38
39
  --enable-typescript - enables TypeScript support for the package
39
40
  --skip - skips configuration and generates package with a default value for each parameter that wasn't passed
package/create-package.js CHANGED
@@ -25,6 +25,9 @@ const isJSRelatedFile = sourcePath => {
25
25
  const isGitIgnore = sourcePath => {
26
26
  return sourcePath.includes("gitignore");
27
27
  };
28
+ const isLogo = sourcePath => {
29
+ return sourcePath.includes("logo");
30
+ };
28
31
  const isNPMRC = sourcePath => {
29
32
  return sourcePath.includes("npmrc");
30
33
  };
@@ -69,6 +72,11 @@ const copyFile = (vars, sourcePath, destPath) => {
69
72
  return;
70
73
  }
71
74
 
75
+ if (isLogo(sourcePath)) {
76
+ fs.copyFileSync(sourcePath, destPath);
77
+ return;
78
+ }
79
+
72
80
  let content = fs.readFileSync(sourcePath, { encoding: "UTF-8" });
73
81
  content = replaceVarsInFileContent(vars, content);
74
82
  destPath = replaceVarsInFileName(vars, destPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ui5/create-webcomponents-package",
3
- "version": "0.0.0-6298a142d",
3
+ "version": "0.0.0-64a57f090",
4
4
  "description": "UI5 Web Components: create package",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -1 +1 @@
1
- <div @click="{{onClick}}">{{counterText}} :: {{counter}}</div>
1
+ <div @click="{{onClick}}">{{counterText}} :: {{count}}</div>
@@ -1,6 +1,7 @@
1
1
  import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
2
2
  import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
3
3
  import { getI18nBundle } from "@ui5/webcomponents-base/dist/i18nBundle.js";
4
+ import Integer from "@ui5/webcomponents-base/dist/types/Integer.js";
4
5
 
5
6
  // Template
6
7
  import INIT_PACKAGE_VAR_CLASS_NAMETemplate from "./generated/templates/INIT_PACKAGE_VAR_CLASS_NAMETemplate.lit.js";
@@ -8,7 +9,7 @@ import INIT_PACKAGE_VAR_CLASS_NAMETemplate from "./generated/templates/INIT_PACK
8
9
  // Styles
9
10
  import INIT_PACKAGE_VAR_CLASS_NAMECss from "./generated/themes/INIT_PACKAGE_VAR_CLASS_NAME.css.js";
10
11
 
11
- import { COUNTER } from "./generated/i18n/i18n-defaults.js";
12
+ import { COUNT } from "./generated/i18n/i18n-defaults.js";
12
13
 
13
14
  /**
14
15
  * @public
@@ -17,12 +18,13 @@ const metadata = {
17
18
  tag: "INIT_PACKAGE_VAR_TAG",
18
19
  properties: /** @lends INIT_PACKAGE_VAR_NAMESPACE.INIT_PACKAGE_VAR_CLASS_NAME.prototype */ {
19
20
  /**
20
- * Defines the counter of the component.
21
- * @type { number }
21
+ * Defines the count of the component.
22
+ * @type { sap.ui.webc.base.types.Integer }
22
23
  * @defaultvalue 0
23
24
  * @public
24
25
  */
25
- counter: {
26
+ count: {
27
+ type: Integer,
26
28
  defaultValue: 0,
27
29
  },
28
30
  },
@@ -67,11 +69,11 @@ class INIT_PACKAGE_VAR_CLASS_NAME extends UI5Element {
67
69
  }
68
70
 
69
71
  onClick() {
70
- this.counter++;
72
+ this.count++;
71
73
  }
72
74
 
73
75
  get counterText() {
74
- return INIT_PACKAGE_VAR_CLASS_NAME.i18nBundle.getText(COUNTER);
76
+ return INIT_PACKAGE_VAR_CLASS_NAME.i18nBundle.getText(COUNT);
75
77
  }
76
78
  }
77
79
 
@@ -4,6 +4,7 @@ import property from "@ui5/webcomponents-base/dist/decorators/property.js";
4
4
  import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
5
5
  import { getI18nBundle } from "@ui5/webcomponents-base/dist/i18nBundle.js";
6
6
  import type I18nBundle from "@ui5/webcomponents-base/dist/i18nBundle.js";
7
+ import Integer from "@ui5/webcomponents-base/dist/types/Integer.js";
7
8
 
8
9
  // Template
9
10
  import INIT_PACKAGE_VAR_CLASS_NAMETemplate from "./generated/templates/INIT_PACKAGE_VAR_CLASS_NAMETemplate.lit.js";
@@ -11,7 +12,7 @@ import INIT_PACKAGE_VAR_CLASS_NAMETemplate from "./generated/templates/INIT_PACK
11
12
  // Styles
12
13
  import INIT_PACKAGE_VAR_CLASS_NAMECss from "./generated/themes/INIT_PACKAGE_VAR_CLASS_NAME.css.js";
13
14
 
14
- import { COUNTER } from "./generated/i18n/i18n-defaults.js";
15
+ import { COUNT } from "./generated/i18n/i18n-defaults.js";
15
16
 
16
17
  /**
17
18
  * @class
@@ -40,20 +41,20 @@ class INIT_PACKAGE_VAR_CLASS_NAME extends UI5Element {
40
41
  }
41
42
 
42
43
  /**
43
- * Defines the component counter.
44
- * @name NIT_PACKAGE_VAR_NAMESPACE.INIT_PACKAGE_VAR_CLASS_NAME.prototype.counter
44
+ * Defines the component count.
45
+ * @name INIT_PACKAGE_VAR_NAMESPACE.INIT_PACKAGE_VAR_CLASS_NAME.prototype.count
45
46
  * @public
46
- * @type { number }
47
+ * @type { sap.ui.webc.base.types.Integer }
47
48
  */
48
- @property({ defaultValue: 0 })
49
- counter!: number;
49
+ @property({ validator: Integer, defaultValue: 0 })
50
+ count!: number;
50
51
 
51
52
  onClick() {
52
- this.counter++;
53
+ this.count++;
53
54
  }
54
55
 
55
56
  get counterText() {
56
- return INIT_PACKAGE_VAR_CLASS_NAME.i18nBundle.getText(COUNTER);
57
+ return INIT_PACKAGE_VAR_CLASS_NAME.i18nBundle.getText(COUNT);
57
58
  }
58
59
  }
59
60
 
@@ -1,3 +1,3 @@
1
1
  # the "counter" text for the sample component
2
- COUNTER=Counter
2
+ COUNT=Count
3
3
 
@@ -1 +1 @@
1
- COUNTER=Schalter
1
+ COUNT=Zählung
@@ -1 +1 @@
1
- COUNTER=Counter
1
+ COUNT=Count
@@ -1 +1 @@
1
- COUNTER=Encimera
1
+ COUNT=Cuenta
@@ -1 +1 @@
1
- COUNTER=Comptoir
1
+ COUNT=Comte
@@ -1,4 +1,8 @@
1
1
  :host {
2
+ display: inline-flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ flex-direction: column;
2
6
  padding: 0 2rem;
3
7
  color: var(--sapAvatar_6_TextColor);
4
8
  background-color: var(--sapAvatar_6_Background);
@@ -15,7 +15,7 @@ h2 {
15
15
  margin-bottom: 0.5rem;
16
16
  }
17
17
 
18
- .app, .app-first-component, .app-settings, .app-docs {
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>&lt;INIT_PACKAGE_VAR_TAG>&lt;/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>
@@ -1,4 +0,0 @@
1
- // vite.config.js
2
- const config = require("@ui5/webcomponents-tools/components-package/vite.config.js"); // eslint-disable-line
3
- config.server = { open: "/test/pages/index.html" };
4
- module.exports = config;