@vaadin/list-box 25.2.0-alpha1 → 25.2.0-alpha10

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.
@@ -125,14 +125,14 @@
125
125
  "type": {
126
126
  "text": "CustomEvent"
127
127
  },
128
- "description": "Fired when the `selected` property changes.",
128
+ "description": "Fired when the `selected` property changes. Not fired in multiple selection mode.",
129
129
  "name": "selected-changed"
130
130
  },
131
131
  {
132
132
  "type": {
133
133
  "text": "CustomEvent"
134
134
  },
135
- "description": "Fired when the `selectedValues` property changes.",
135
+ "description": "Fired when the `selectedValues` property changes. Not fired in single selection mode.",
136
136
  "name": "selected-values-changed"
137
137
  }
138
138
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/list-box",
3
- "version": "25.2.0-alpha1",
3
+ "version": "25.2.0-alpha10",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -35,18 +35,18 @@
35
35
  ],
36
36
  "dependencies": {
37
37
  "@open-wc/dedupe-mixin": "^1.3.0",
38
- "@vaadin/a11y-base": "25.2.0-alpha1",
39
- "@vaadin/component-base": "25.2.0-alpha1",
40
- "@vaadin/item": "25.2.0-alpha1",
41
- "@vaadin/vaadin-themable-mixin": "25.2.0-alpha1",
38
+ "@vaadin/a11y-base": "25.2.0-alpha10",
39
+ "@vaadin/component-base": "25.2.0-alpha10",
40
+ "@vaadin/item": "25.2.0-alpha10",
41
+ "@vaadin/vaadin-themable-mixin": "25.2.0-alpha10",
42
42
  "lit": "^3.0.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@vaadin/aura": "25.2.0-alpha1",
46
- "@vaadin/chai-plugins": "25.2.0-alpha1",
47
- "@vaadin/test-runner-commands": "25.2.0-alpha1",
45
+ "@vaadin/aura": "25.2.0-alpha10",
46
+ "@vaadin/chai-plugins": "25.2.0-alpha10",
47
+ "@vaadin/test-runner-commands": "25.2.0-alpha10",
48
48
  "@vaadin/testing-helpers": "^2.0.0",
49
- "@vaadin/vaadin-lumo-styles": "25.2.0-alpha1",
49
+ "@vaadin/vaadin-lumo-styles": "25.2.0-alpha10",
50
50
  "sinon": "^21.0.2"
51
51
  },
52
52
  "customElements": "custom-elements.json",
@@ -54,5 +54,5 @@
54
54
  "web-types.json",
55
55
  "web-types.lit.json"
56
56
  ],
57
- "gitHead": "866f813f89655a351cbd25328eba1fcb317e267d"
57
+ "gitHead": "1303b6a3eeecb44a9d26f2b53cb56d9e906febdf"
58
58
  }
@@ -13,12 +13,12 @@ import { MultiSelectListMixin } from './vaadin-multi-select-list-mixin.js';
13
13
  export type ListBoxItemsChangedEvent = CustomEvent<{ value: Element[] }>;
14
14
 
15
15
  /**
16
- * Fired when the `selected` property changes.
16
+ * Fired when the `selected` property changes. Not fired in multiple selection mode.
17
17
  */
18
18
  export type ListBoxSelectedChangedEvent = CustomEvent<{ value: number }>;
19
19
 
20
20
  /**
21
- * Fired when the `selectedValues` property changes.
21
+ * Fired when the `selectedValues` property changes. Not fired in single selection mode.
22
22
  */
23
23
  export type ListBoxSelectedValuesChangedEvent = CustomEvent<{ value: number[] }>;
24
24
 
@@ -61,8 +61,8 @@ export interface ListBoxEventMap extends HTMLElementEventMap, ListBoxCustomEvent
61
61
  * See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
62
62
  *
63
63
  * @fires {CustomEvent} items-changed - Fired when the `items` property changes.
64
- * @fires {CustomEvent} selected-changed - Fired when the `selected` property changes.
65
- * @fires {CustomEvent} selected-values-changed - Fired when the `selectedValues` property changes.
64
+ * @fires {CustomEvent} selected-changed - Fired when the `selected` property changes. Not fired in multiple selection mode.
65
+ * @fires {CustomEvent} selected-values-changed - Fired when the `selectedValues` property changes. Not fired in single selection mode.
66
66
  */
67
67
  declare class ListBox extends MultiSelectListMixin(ThemableMixin(ElementMixin(HTMLElement))) {
68
68
  focused: Element | null;
@@ -42,8 +42,8 @@ import { MultiSelectListMixin } from './vaadin-multi-select-list-mixin.js';
42
42
  * See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
43
43
  *
44
44
  * @fires {CustomEvent} items-changed - Fired when the `items` property changes.
45
- * @fires {CustomEvent} selected-changed - Fired when the `selected` property changes.
46
- * @fires {CustomEvent} selected-values-changed - Fired when the `selectedValues` property changes.
45
+ * @fires {CustomEvent} selected-changed - Fired when the `selected` property changes. Not fired in multiple selection mode.
46
+ * @fires {CustomEvent} selected-values-changed - Fired when the `selectedValues` property changes. Not fired in single selection mode.
47
47
  *
48
48
  * @customElement vaadin-list-box
49
49
  * @extends HTMLElement
@@ -115,13 +115,4 @@ export const MultiSelectListMixin = (superClass) =>
115
115
  }
116
116
  }
117
117
  }
118
-
119
- /**
120
- * Fired when the selection is changed.
121
- * Not fired in single selection mode.
122
- *
123
- * @event selected-values-changed
124
- * @param {Object} detail
125
- * @param {Object} detail.value the array of indexes of the items selected in the items array.
126
- */
127
118
  };
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/list-box",
4
- "version": "25.2.0-alpha1",
4
+ "version": "25.2.0-alpha10",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -15,9 +15,7 @@
15
15
  "description": "If true, the user cannot interact with this element.\nWhen the element is disabled, the selected item is\nnot updated when `selected` property is changed.",
16
16
  "value": {
17
17
  "type": [
18
- "boolean",
19
- "null",
20
- "undefined"
18
+ "boolean"
21
19
  ]
22
20
  }
23
21
  },
@@ -26,9 +24,7 @@
26
24
  "description": "Specifies that multiple options can be selected at once.",
27
25
  "value": {
28
26
  "type": [
29
- "boolean",
30
- "null",
31
- "undefined"
27
+ "boolean"
32
28
  ]
33
29
  }
34
30
  },
@@ -37,9 +33,7 @@
37
33
  "description": "The index of the item selected in the items array.\nNote: Not updated when used in `multiple` selection mode.",
38
34
  "value": {
39
35
  "type": [
40
- "number",
41
- "null",
42
- "undefined"
36
+ "number"
43
37
  ]
44
38
  }
45
39
  },
@@ -62,9 +56,7 @@
62
56
  "description": "If true, the user cannot interact with this element.\nWhen the element is disabled, the selected item is\nnot updated when `selected` property is changed.",
63
57
  "value": {
64
58
  "type": [
65
- "boolean",
66
- "null",
67
- "undefined"
59
+ "boolean"
68
60
  ]
69
61
  }
70
62
  },
@@ -73,9 +65,7 @@
73
65
  "description": "Specifies that multiple options can be selected at once.",
74
66
  "value": {
75
67
  "type": [
76
- "boolean",
77
- "null",
78
- "undefined"
68
+ "boolean"
79
69
  ]
80
70
  }
81
71
  },
@@ -84,9 +74,7 @@
84
74
  "description": "The index of the item selected in the items array.\nNote: Not updated when used in `multiple` selection mode.",
85
75
  "value": {
86
76
  "type": [
87
- "number",
88
- "null",
89
- "undefined"
77
+ "number"
90
78
  ]
91
79
  }
92
80
  },
@@ -95,7 +83,7 @@
95
83
  "description": "Array of indexes of the items selected in the items array\nNote: Not updated when used in single selection mode.",
96
84
  "value": {
97
85
  "type": [
98
- "Array.<number>",
86
+ "number[]",
99
87
  "null",
100
88
  "undefined"
101
89
  ]
@@ -109,11 +97,11 @@
109
97
  },
110
98
  {
111
99
  "name": "selected-changed",
112
- "description": "Fired when the selection is changed.\nNot fired when used in `multiple` selection mode."
100
+ "description": "Fired when the `selected` property changes. Not fired in multiple selection mode."
113
101
  },
114
102
  {
115
103
  "name": "selected-values-changed",
116
- "description": "Fired when the selection is changed.\nNot fired in single selection mode."
104
+ "description": "Fired when the `selectedValues` property changes. Not fired in single selection mode."
117
105
  }
118
106
  ]
119
107
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/list-box",
4
- "version": "25.2.0-alpha1",
4
+ "version": "25.2.0-alpha10",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -56,14 +56,14 @@
56
56
  },
57
57
  {
58
58
  "name": "@selected-changed",
59
- "description": "Fired when the selection is changed.\nNot fired when used in `multiple` selection mode.",
59
+ "description": "Fired when the `selected` property changes. Not fired in multiple selection mode.",
60
60
  "value": {
61
61
  "kind": "expression"
62
62
  }
63
63
  },
64
64
  {
65
65
  "name": "@selected-values-changed",
66
- "description": "Fired when the selection is changed.\nNot fired in single selection mode.",
66
+ "description": "Fired when the `selectedValues` property changes. Not fired in single selection mode.",
67
67
  "value": {
68
68
  "kind": "expression"
69
69
  }