@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 +1 -1
- package/package.json +1 -1
- package/template/src/MyFirstComponent.hbs +1 -1
- package/template/src/MyFirstComponent.js +7 -5
- package/template/src/MyFirstComponent.ts +8 -7
- package/template/src/i18n/messagebundle.properties +1 -1
- package/template/src/i18n/messagebundle_de.properties +1 -1
- package/template/src/i18n/messagebundle_en.properties +1 -1
- package/template/src/i18n/messagebundle_es.properties +1 -1
- package/template/src/i18n/messagebundle_fr.properties +1 -1
- package/template/config/vite.config.js +0 -4
package/create-package.js
CHANGED
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<div @click="{{onClick}}">{{counterText}} :: {{
|
|
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 {
|
|
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
|
|
21
|
+
* Defines the count of the component.
|
|
21
22
|
* @type { number }
|
|
22
23
|
* @defaultvalue 0
|
|
23
24
|
* @public
|
|
24
25
|
*/
|
|
25
|
-
|
|
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.
|
|
72
|
+
this.count++;
|
|
71
73
|
}
|
|
72
74
|
|
|
73
75
|
get counterText() {
|
|
74
|
-
return INIT_PACKAGE_VAR_CLASS_NAME.i18nBundle.getText(
|
|
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 {
|
|
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
|
|
44
|
-
* @name NIT_PACKAGE_VAR_NAMESPACE.INIT_PACKAGE_VAR_CLASS_NAME.prototype.
|
|
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
|
-
|
|
49
|
+
@property({ validator: Integer, defaultValue: 0 })
|
|
50
|
+
count!: number;
|
|
50
51
|
|
|
51
52
|
onClick() {
|
|
52
|
-
this.
|
|
53
|
+
this.count++;
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
get counterText() {
|
|
56
|
-
return INIT_PACKAGE_VAR_CLASS_NAME.i18nBundle.getText(
|
|
57
|
+
return INIT_PACKAGE_VAR_CLASS_NAME.i18nBundle.getText(COUNT);
|
|
57
58
|
}
|
|
58
59
|
}
|
|
59
60
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
COUNT=Zählung
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
COUNT=Count
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
COUNT=Cuenta
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
COUNT=Comte
|