@vaadin/list-box 25.4.0-alpha3 → 25.4.0-alpha5

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.
@@ -48,7 +48,6 @@
48
48
  "text": "!Array<!Element> | undefined"
49
49
  },
50
50
  "description": "A read-only list of items from which a selection can be made.\nIt is populated from the elements passed to the light DOM,\nand updated dynamically when adding or removing items.",
51
- "attribute": "items",
52
51
  "readonly": true,
53
52
  "inheritedFrom": {
54
53
  "name": "ListMixin",
@@ -69,21 +68,6 @@
69
68
  "module": "src/vaadin-multi-select-list-mixin.js"
70
69
  }
71
70
  },
72
- {
73
- "kind": "field",
74
- "name": "orientation",
75
- "privacy": "public",
76
- "type": {
77
- "text": "string"
78
- },
79
- "description": "Define how items are disposed in the dom.\nPossible values are: `horizontal|vertical`.\nIt also changes navigation keys from left/right to up/down.",
80
- "attribute": "orientation",
81
- "readonly": true,
82
- "inheritedFrom": {
83
- "name": "ListMixin",
84
- "package": "@vaadin/a11y-base/src/list-mixin.js"
85
- }
86
- },
87
71
  {
88
72
  "kind": "field",
89
73
  "name": "selected",
@@ -106,7 +90,6 @@
106
90
  "text": "number[] | null | undefined"
107
91
  },
108
92
  "description": "Array of indexes of the items selected in the items array\nNote: Not updated when used in single selection mode.",
109
- "attribute": "selected-values",
110
93
  "inheritedFrom": {
111
94
  "name": "MultiSelectListMixin",
112
95
  "module": "src/vaadin-multi-select-list-mixin.js"
@@ -161,18 +144,6 @@
161
144
  "module": "src/vaadin-multi-select-list-mixin.js"
162
145
  }
163
146
  },
164
- {
165
- "name": "orientation",
166
- "type": {
167
- "text": "string"
168
- },
169
- "description": "Define how items are disposed in the dom.\nPossible values are: `horizontal|vertical`.\nIt also changes navigation keys from left/right to up/down.",
170
- "fieldName": "orientation",
171
- "inheritedFrom": {
172
- "name": "ListMixin",
173
- "package": "@vaadin/a11y-base/src/list-mixin.js"
174
- }
175
- },
176
147
  {
177
148
  "name": "selected",
178
149
  "type": {
@@ -185,18 +156,6 @@
185
156
  "package": "@vaadin/a11y-base/src/list-mixin.js"
186
157
  }
187
158
  },
188
- {
189
- "name": "selected-values",
190
- "type": {
191
- "text": "number[] | null | undefined"
192
- },
193
- "description": "Array of indexes of the items selected in the items array\nNote: Not updated when used in single selection mode.",
194
- "fieldName": "selectedValues",
195
- "inheritedFrom": {
196
- "name": "MultiSelectListMixin",
197
- "module": "src/vaadin-multi-select-list-mixin.js"
198
- }
199
- },
200
159
  {
201
160
  "type": {
202
161
  "text": "string"
@@ -277,7 +236,6 @@
277
236
  "text": "!Array<!Element> | undefined"
278
237
  },
279
238
  "description": "A read-only list of items from which a selection can be made.\nIt is populated from the elements passed to the light DOM,\nand updated dynamically when adding or removing items.",
280
- "attribute": "items",
281
239
  "readonly": true,
282
240
  "inheritedFrom": {
283
241
  "name": "ListMixin",
@@ -329,8 +287,7 @@
329
287
  "type": {
330
288
  "text": "number[] | null | undefined"
331
289
  },
332
- "description": "Array of indexes of the items selected in the items array\nNote: Not updated when used in single selection mode.",
333
- "attribute": "selected-values"
290
+ "description": "Array of indexes of the items selected in the items array\nNote: Not updated when used in single selection mode."
334
291
  }
335
292
  ],
336
293
  "attributes": [
@@ -377,14 +334,6 @@
377
334
  "name": "ListMixin",
378
335
  "package": "@vaadin/a11y-base/src/list-mixin.js"
379
336
  }
380
- },
381
- {
382
- "name": "selected-values",
383
- "type": {
384
- "text": "number[] | null | undefined"
385
- },
386
- "description": "Array of indexes of the items selected in the items array\nNote: Not updated when used in single selection mode.",
387
- "fieldName": "selectedValues"
388
337
  }
389
338
  ],
390
339
  "mixins": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/list-box",
3
- "version": "25.4.0-alpha3",
3
+ "version": "25.4.0-alpha5",
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.4.0-alpha3",
39
- "@vaadin/component-base": "25.4.0-alpha3",
40
- "@vaadin/item": "25.4.0-alpha3",
41
- "@vaadin/vaadin-themable-mixin": "25.4.0-alpha3",
38
+ "@vaadin/a11y-base": "25.4.0-alpha5",
39
+ "@vaadin/component-base": "25.4.0-alpha5",
40
+ "@vaadin/item": "25.4.0-alpha5",
41
+ "@vaadin/vaadin-themable-mixin": "25.4.0-alpha5",
42
42
  "lit": "^3.0.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@vaadin/aura": "25.4.0-alpha3",
46
- "@vaadin/chai-plugins": "25.4.0-alpha3",
47
- "@vaadin/test-runner-commands": "25.4.0-alpha3",
45
+ "@vaadin/aura": "25.4.0-alpha5",
46
+ "@vaadin/chai-plugins": "25.4.0-alpha5",
47
+ "@vaadin/test-runner-commands": "25.4.0-alpha5",
48
48
  "@vaadin/testing-helpers": "^2.0.0",
49
- "@vaadin/vaadin-lumo-styles": "25.4.0-alpha3",
49
+ "@vaadin/vaadin-lumo-styles": "25.4.0-alpha5",
50
50
  "sinon": "^22.0.0"
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": "db7e679c1a8af00840cc05ddcbefff68dfed1e45"
57
+ "gitHead": "65e9c9e49c0a723b08ee91b9aae8b901e91a3597"
58
58
  }
@@ -65,7 +65,7 @@ export const MultiSelectListMixin = (superClass) =>
65
65
 
66
66
  /** @private */
67
67
  _scrollToLastSelectedItem() {
68
- const lastSelectedItem = this.selectedValues.slice(-1)[0];
68
+ const lastSelectedItem = this.selectedValues.at(-1);
69
69
  if (lastSelectedItem && !lastSelectedItem.disabled) {
70
70
  this._scrollToItem(lastSelectedItem);
71
71
  }
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.4.0-alpha3",
4
+ "version": "25.4.0-alpha5",
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/list-box",
4
- "version": "25.4.0-alpha3",
4
+ "version": "25.4.0-alpha5",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {