@ui5/create-webcomponents-package 0.0.0-3790e6927 → 0.0.0-41ab6cd28

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/create-package.js CHANGED
@@ -72,7 +72,7 @@ const copyFile = (vars, sourcePath, destPath) => {
72
72
  return;
73
73
  }
74
74
 
75
- if (isLogo()) {
75
+ if (isLogo(sourcePath)) {
76
76
  fs.copyFileSync(sourcePath, destPath);
77
77
  return;
78
78
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ui5/create-webcomponents-package",
3
- "version": "0.0.0-3790e6927",
3
+ "version": "0.0.0-41ab6cd28",
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
+ * Defines the count of the component.
21
22
  * @type { number }
22
23
  * @defaultvalue 0
23
24
  * @public
24
25
  */
25
- counter: {
26
+ count: {
27
+ validator: 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 NIT_PACKAGE_VAR_NAMESPACE.INIT_PACKAGE_VAR_CLASS_NAME.prototype.count
45
46
  * @public
46
47
  * @type { number }
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 +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;