@vaadin/item 25.1.0-beta2 → 25.1.0-beta3

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.
@@ -54,19 +54,10 @@
54
54
  {
55
55
  "kind": "field",
56
56
  "name": "value",
57
- "return": {
58
- "type": {
59
- "text": "string"
60
- }
61
- },
62
- "parameters": [
63
- {
64
- "name": "value",
65
- "type": {
66
- "text": "string"
67
- }
68
- }
69
- ]
57
+ "description": "Submittable string value. The default value is the trimmed text content of the element.",
58
+ "type": {
59
+ "text": "string"
60
+ }
70
61
  }
71
62
  ],
72
63
  "attributes": [
@@ -116,6 +107,14 @@
116
107
  "description": "`<vaadin-item>` is a Web Component providing layout for items in tabs and menus.\n\n```html\n<vaadin-item>Item content</vaadin-item>\n```\n\n### Selectable\n\n`<vaadin-item>` has the `selected` property and the corresponding state attribute.\nCurrently, the component sets the `selected` to false, when `disabled` property is set to true.\nBut other than that, the `<vaadin-item>` does not switch selection by itself.\nIn general, it is the wrapper component, like `<vaadin-list-box>`, which should update\nthe `selected` property on the items, e. g. on mousedown or when Enter / Spacebar is pressed.\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n-------------|----------------\n`checkmark` | The graphical checkmark shown for a selected item\n`content` | The element that wraps the slot\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n-------------|-------------\n`active` | Set when the item is pressed down, either with mouse, touch or the keyboard.\n`disabled` | Set when the item is disabled.\n`focus-ring` | Set when the item is focused using the keyboard.\n`focused` | Set when the item is focused.\n`selected` | Set when the item is selected\n\nThe following custom CSS properties are available for styling:\n\nCustom CSS property |\n:------------------------------------|\n| `--vaadin-item-border-radius` |\n| `--vaadin-item-checkmark-color` |\n| `--vaadin-item-checkmark-display` |\n| `--vaadin-item-gap` |\n| `--vaadin-item-height` |\n| `--vaadin-item-padding` |\n| `--vaadin-item-text-align` |\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
117
108
  "name": "Item",
118
109
  "members": [
110
+ {
111
+ "type": {
112
+ "text": "string"
113
+ },
114
+ "description": "String that can be set to visually represent the selected item in `vaadin-select`.",
115
+ "name": "label",
116
+ "kind": "field"
117
+ },
119
118
  {
120
119
  "kind": "field",
121
120
  "name": "selected",
@@ -133,19 +132,10 @@
133
132
  {
134
133
  "kind": "field",
135
134
  "name": "value",
136
- "return": {
137
- "type": {
138
- "text": "string"
139
- }
135
+ "description": "Submittable string value. The default value is the trimmed text content of the element.",
136
+ "type": {
137
+ "text": "string"
140
138
  },
141
- "parameters": [
142
- {
143
- "name": "value",
144
- "type": {
145
- "text": "string"
146
- }
147
- }
148
- ],
149
139
  "inheritedFrom": {
150
140
  "name": "ItemMixin",
151
141
  "module": "src/vaadin-item-mixin.js"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/item",
3
- "version": "25.1.0-beta2",
3
+ "version": "25.1.0-beta3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -35,23 +35,23 @@
35
35
  ],
36
36
  "dependencies": {
37
37
  "@open-wc/dedupe-mixin": "^1.3.0",
38
- "@vaadin/a11y-base": "25.1.0-beta2",
39
- "@vaadin/component-base": "25.1.0-beta2",
40
- "@vaadin/vaadin-themable-mixin": "25.1.0-beta2",
38
+ "@vaadin/a11y-base": "25.1.0-beta3",
39
+ "@vaadin/component-base": "25.1.0-beta3",
40
+ "@vaadin/vaadin-themable-mixin": "25.1.0-beta3",
41
41
  "lit": "^3.0.0"
42
42
  },
43
43
  "devDependencies": {
44
- "@vaadin/aura": "25.1.0-beta2",
45
- "@vaadin/chai-plugins": "25.1.0-beta2",
46
- "@vaadin/test-runner-commands": "25.1.0-beta2",
44
+ "@vaadin/aura": "25.1.0-beta3",
45
+ "@vaadin/chai-plugins": "25.1.0-beta3",
46
+ "@vaadin/test-runner-commands": "25.1.0-beta3",
47
47
  "@vaadin/testing-helpers": "^2.0.0",
48
- "@vaadin/vaadin-lumo-styles": "25.1.0-beta2",
49
- "sinon": "^21.0.0"
48
+ "@vaadin/vaadin-lumo-styles": "25.1.0-beta3",
49
+ "sinon": "^21.0.2"
50
50
  },
51
51
  "customElements": "custom-elements.json",
52
52
  "web-types": [
53
53
  "web-types.json",
54
54
  "web-types.lit.json"
55
55
  ],
56
- "gitHead": "ffbedbae08a5160d13bcd1c6fcaa328df5103a05"
56
+ "gitHead": "4251850231a42298fda23b83928da588831cdb5d"
57
57
  }
@@ -57,15 +57,13 @@ export const ItemMixin = (superClass) =>
57
57
  }
58
58
 
59
59
  /**
60
- * @return {string}
60
+ * Submittable string value. The default value is the trimmed text content of the element.
61
+ * @type {string}
61
62
  */
62
63
  get value() {
63
64
  return this._value !== undefined ? this._value : this.textContent.trim();
64
65
  }
65
66
 
66
- /**
67
- * @param {string} value
68
- */
69
67
  set value(value) {
70
68
  this._value = value;
71
69
  }
@@ -60,6 +60,7 @@ import { ItemMixin } from './vaadin-item-mixin.js';
60
60
  *
61
61
  * See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
62
62
  *
63
+ * @prop {string} label - String that can be set to visually represent the selected item in `vaadin-select`.
63
64
  * @customElement vaadin-item
64
65
  * @extends HTMLElement
65
66
  * @mixes ItemMixin
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": "25.1.0-beta2",
4
+ "version": "25.1.0-beta3",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/item",
4
- "version": "25.1.0-beta2",
4
+ "version": "25.1.0-beta3",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {