@vaadin/accordion 23.1.0-alpha3 → 23.1.0-beta2
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/accordion",
|
|
3
|
-
"version": "23.1.0-
|
|
3
|
+
"version": "23.1.0-beta2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -34,17 +34,17 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@polymer/polymer": "^3.0.0",
|
|
37
|
-
"@vaadin/component-base": "23.1.0-
|
|
38
|
-
"@vaadin/details": "23.1.0-
|
|
39
|
-
"@vaadin/vaadin-lumo-styles": "23.1.0-
|
|
40
|
-
"@vaadin/vaadin-material-styles": "23.1.0-
|
|
41
|
-
"@vaadin/vaadin-themable-mixin": "23.1.0-
|
|
37
|
+
"@vaadin/component-base": "23.1.0-beta2",
|
|
38
|
+
"@vaadin/details": "23.1.0-beta2",
|
|
39
|
+
"@vaadin/vaadin-lumo-styles": "23.1.0-beta2",
|
|
40
|
+
"@vaadin/vaadin-material-styles": "23.1.0-beta2",
|
|
41
|
+
"@vaadin/vaadin-themable-mixin": "23.1.0-beta2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@esm-bundle/chai": "^4.3.4",
|
|
45
|
-
"@vaadin/dialog": "23.1.0-
|
|
45
|
+
"@vaadin/dialog": "23.1.0-beta2",
|
|
46
46
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
47
47
|
"sinon": "^13.0.2"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "f11f9245a0b5e6bf912725a501c27c24b74e7c8d"
|
|
50
50
|
}
|
|
@@ -87,13 +87,13 @@ declare class Accordion extends ElementMixin(ThemableMixin(HTMLElement)) {
|
|
|
87
87
|
addEventListener<K extends keyof AccordionEventMap>(
|
|
88
88
|
type: K,
|
|
89
89
|
listener: (this: Accordion, ev: AccordionEventMap[K]) => void,
|
|
90
|
-
options?: boolean | AddEventListenerOptions
|
|
90
|
+
options?: boolean | AddEventListenerOptions,
|
|
91
91
|
): void;
|
|
92
92
|
|
|
93
93
|
removeEventListener<K extends keyof AccordionEventMap>(
|
|
94
94
|
type: K,
|
|
95
95
|
listener: (this: Accordion, ev: AccordionEventMap[K]) => void,
|
|
96
|
-
options?: boolean | EventListenerOptions
|
|
96
|
+
options?: boolean | EventListenerOptions,
|
|
97
97
|
): void;
|
|
98
98
|
}
|
|
99
99
|
|
package/src/vaadin-accordion.js
CHANGED
|
@@ -89,7 +89,7 @@ class Accordion extends ThemableMixin(ElementMixin(PolymerElement)) {
|
|
|
89
89
|
type: Number,
|
|
90
90
|
value: 0,
|
|
91
91
|
notify: true,
|
|
92
|
-
reflectToAttribute: true
|
|
92
|
+
reflectToAttribute: true,
|
|
93
93
|
},
|
|
94
94
|
|
|
95
95
|
/**
|
|
@@ -101,8 +101,8 @@ class Accordion extends ThemableMixin(ElementMixin(PolymerElement)) {
|
|
|
101
101
|
items: {
|
|
102
102
|
type: Array,
|
|
103
103
|
readOnly: true,
|
|
104
|
-
notify: true
|
|
105
|
-
}
|
|
104
|
+
notify: true,
|
|
105
|
+
},
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
108
|
|
|
@@ -176,7 +176,7 @@ class Accordion extends ThemableMixin(ElementMixin(PolymerElement)) {
|
|
|
176
176
|
* @protected
|
|
177
177
|
*/
|
|
178
178
|
_onKeydown(event) {
|
|
179
|
-
//
|
|
179
|
+
// Only check keyboard events on details toggle buttons
|
|
180
180
|
const item = event.composedPath()[0];
|
|
181
181
|
if (!this.items.some((el) => el.focusElement === item)) {
|
|
182
182
|
return;
|
|
@@ -204,7 +204,7 @@ class Accordion extends ThemableMixin(ElementMixin(PolymerElement)) {
|
|
|
204
204
|
idx = this.items.length - 1;
|
|
205
205
|
break;
|
|
206
206
|
default:
|
|
207
|
-
//
|
|
207
|
+
// Do nothing.
|
|
208
208
|
}
|
|
209
209
|
|
|
210
210
|
idx = this._getAvailableIndex(idx, increment);
|