@vaadin/item 24.4.0-alpha1 → 24.4.0-dev.223e39f050

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.4.0-alpha1",
3
+ "version": "24.4.0-dev.223e39f050",
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.4.0-alpha1",
41
- "@vaadin/component-base": "24.4.0-alpha1",
42
- "@vaadin/vaadin-lumo-styles": "24.4.0-alpha1",
43
- "@vaadin/vaadin-material-styles": "24.4.0-alpha1",
44
- "@vaadin/vaadin-themable-mixin": "24.4.0-alpha1"
40
+ "@vaadin/a11y-base": "24.4.0-dev.223e39f050",
41
+ "@vaadin/component-base": "24.4.0-dev.223e39f050",
42
+ "@vaadin/vaadin-lumo-styles": "24.4.0-dev.223e39f050",
43
+ "@vaadin/vaadin-material-styles": "24.4.0-dev.223e39f050",
44
+ "@vaadin/vaadin-themable-mixin": "24.4.0-dev.223e39f050"
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": "3e2ed41c99d618ff7def2734fd863c21c85775a3"
55
+ "gitHead": "5e2e3bfc811c95aed9354235fab93fdbf43eb354"
56
56
  }
@@ -10,7 +10,10 @@ import { FocusMixin } from '@vaadin/a11y-base/src/focus-mixin.js';
10
10
  * A mixin providing `focused`, `focus-ring`, `active`, `disabled` and `selected`.
11
11
  *
12
12
  * `focused`, `active` and `focus-ring` are set as only as attributes.
13
+ *
13
14
  * @polymerMixin
15
+ * @mixes ActiveMixin
16
+ * @mixes FocusMixin
14
17
  */
15
18
  export const ItemMixin = (superClass) =>
16
19
  class VaadinItemMixin extends ActiveMixin(FocusMixin(superClass)) {
package/web-types.json DELETED
@@ -1,70 +0,0 @@
1
- {
2
- "$schema": "https://json.schemastore.org/web-types",
3
- "name": "@vaadin/item",
4
- "version": "24.4.0-alpha1",
5
- "description-markup": "markdown",
6
- "contributions": {
7
- "html": {
8
- "elements": [
9
- {
10
- "name": "vaadin-item",
11
- "description": "`<vaadin-item>` is a Web Component providing layout for items in tabs and menus.\n\n```\n <vaadin-item>\n Item content\n </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\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
12
- "attributes": [
13
- {
14
- "name": "selected",
15
- "description": "If true, the item is in selected state.",
16
- "value": {
17
- "type": [
18
- "boolean"
19
- ]
20
- }
21
- },
22
- {
23
- "name": "theme",
24
- "description": "The theme variants to apply to the component.",
25
- "value": {
26
- "type": [
27
- "string",
28
- "null",
29
- "undefined"
30
- ]
31
- }
32
- }
33
- ],
34
- "js": {
35
- "properties": [
36
- {
37
- "name": "value",
38
- "description": "Submittable string value. The default value is the trimmed text content of the element.",
39
- "value": {
40
- "type": [
41
- "string"
42
- ]
43
- }
44
- },
45
- {
46
- "name": "selected",
47
- "description": "If true, the item is in selected state.",
48
- "value": {
49
- "type": [
50
- "boolean"
51
- ]
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
- }
62
- }
63
- ],
64
- "events": []
65
- }
66
- }
67
- ]
68
- }
69
- }
70
- }
@@ -1,48 +0,0 @@
1
- {
2
- "$schema": "https://json.schemastore.org/web-types",
3
- "name": "@vaadin/item",
4
- "version": "24.4.0-alpha1",
5
- "description-markup": "markdown",
6
- "framework": "lit",
7
- "framework-config": {
8
- "enable-when": {
9
- "node-packages": [
10
- "lit"
11
- ]
12
- }
13
- },
14
- "contributions": {
15
- "html": {
16
- "elements": [
17
- {
18
- "name": "vaadin-item",
19
- "description": "`<vaadin-item>` is a Web Component providing layout for items in tabs and menus.\n\n```\n <vaadin-item>\n Item content\n </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\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
20
- "extension": true,
21
- "attributes": [
22
- {
23
- "name": "?selected",
24
- "description": "If true, the item is in selected state.",
25
- "value": {
26
- "kind": "expression"
27
- }
28
- },
29
- {
30
- "name": ".value",
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`.",
39
- "value": {
40
- "kind": "expression"
41
- }
42
- }
43
- ]
44
- }
45
- ]
46
- }
47
- }
48
- }