@vaadin/item 24.3.0-beta2 → 24.3.0-rc2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/item",
3
- "version": "24.3.0-beta2",
3
+ "version": "24.3.0-rc2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -37,11 +37,11 @@
37
37
  "dependencies": {
38
38
  "@open-wc/dedupe-mixin": "^1.3.0",
39
39
  "@polymer/polymer": "^3.0.0",
40
- "@vaadin/a11y-base": "24.3.0-beta2",
41
- "@vaadin/component-base": "24.3.0-beta2",
42
- "@vaadin/vaadin-lumo-styles": "24.3.0-beta2",
43
- "@vaadin/vaadin-material-styles": "24.3.0-beta2",
44
- "@vaadin/vaadin-themable-mixin": "24.3.0-beta2"
40
+ "@vaadin/a11y-base": "24.3.0-rc2",
41
+ "@vaadin/component-base": "24.3.0-rc2",
42
+ "@vaadin/vaadin-lumo-styles": "24.3.0-rc2",
43
+ "@vaadin/vaadin-material-styles": "24.3.0-rc2",
44
+ "@vaadin/vaadin-themable-mixin": "24.3.0-rc2"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@esm-bundle/chai": "^4.3.4",
@@ -52,5 +52,5 @@
52
52
  "web-types.json",
53
53
  "web-types.lit.json"
54
54
  ],
55
- "gitHead": "0bbfb24cb8dcd6e1dca8ecf2269635efac53e4d0"
55
+ "gitHead": "4a393bc5d4706745d3ccca73632e6b1e207cc830"
56
56
  }
@@ -50,6 +50,11 @@ declare class Item extends ItemMixin(ThemableMixin(DirMixin(HTMLElement))) {
50
50
  * Submittable string value. The default value is the trimmed text content of the element.
51
51
  */
52
52
  value: string;
53
+
54
+ /**
55
+ * String that can be set to visually represent the selected item in `vaadin-select`.
56
+ */
57
+ label: string | undefined;
53
58
  }
54
59
 
55
60
  declare global {
@@ -83,8 +83,13 @@ class Item extends ItemMixin(ThemableMixin(DirMixin(PolymerElement))) {
83
83
  * Submittable string value. The default value is the trimmed text content of the element.
84
84
  * @type {string}
85
85
  */
86
- // eslint-disable-next-line no-unused-expressions
87
86
  this.value;
87
+
88
+ /**
89
+ * String that can be set to visually represent the selected item in `vaadin-select`.
90
+ * @type {string}
91
+ */
92
+ this.label;
88
93
  }
89
94
 
90
95
  /** @protected */
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/item",
4
- "version": "24.3.0-beta2",
4
+ "version": "24.3.0-rc2",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -35,7 +35,7 @@
35
35
  "properties": [
36
36
  {
37
37
  "name": "value",
38
- "description": "",
38
+ "description": "Submittable string value. The default value is the trimmed text content of the element.",
39
39
  "value": {
40
40
  "type": [
41
41
  "string"
@@ -50,6 +50,15 @@
50
50
  "boolean"
51
51
  ]
52
52
  }
53
+ },
54
+ {
55
+ "name": "label",
56
+ "description": "String that can be set to visually represent the selected item in `vaadin-select`.",
57
+ "value": {
58
+ "type": [
59
+ "string"
60
+ ]
61
+ }
53
62
  }
54
63
  ],
55
64
  "events": []
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/item",
4
- "version": "24.3.0-beta2",
4
+ "version": "24.3.0-rc2",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -28,7 +28,14 @@
28
28
  },
29
29
  {
30
30
  "name": ".value",
31
- "description": "",
31
+ "description": "Submittable string value. The default value is the trimmed text content of the element.",
32
+ "value": {
33
+ "kind": "expression"
34
+ }
35
+ },
36
+ {
37
+ "name": ".label",
38
+ "description": "String that can be set to visually represent the selected item in `vaadin-select`.",
32
39
  "value": {
33
40
  "kind": "expression"
34
41
  }