File tree 6 files changed +45
-4
lines changed
6 files changed +45
-4
lines changed Original file line number Diff line number Diff line change 26
26
],
27
27
"dependencies" : {
28
28
"polymer" : " ^2.0.0" ,
29
- "vaadin-themable-mixin" : " vaadin/vaadin-themable-mixin#^1.2.0 " ,
30
- "vaadin-element-mixin" : " vaadin/vaadin-element-mixin#^2.3.0 " ,
31
- "vaadin-details" : " vaadin/vaadin-details#^1.1.0 " ,
29
+ "vaadin-themable-mixin" : " vaadin/vaadin-themable-mixin#^1.6.1 " ,
30
+ "vaadin-element-mixin" : " vaadin/vaadin-element-mixin#^2.4.1 " ,
31
+ "vaadin-details" : " vaadin/vaadin-details#^1.2.0-alpha1 " ,
32
32
"vaadin-lumo-styles" : " vaadin/vaadin-lumo-styles#^1.4.1" ,
33
33
"vaadin-material-styles" : " vaadin/vaadin-material-styles#^1.2.0"
34
34
},
Original file line number Diff line number Diff line change
1
+ {
2
+ "excludeFiles" : [
3
+ " wct.conf.js" ,
4
+ " index.html" ,
5
+ " demo/**/*" ,
6
+ " test/**/*" ,
7
+ " theme/**/*"
8
+ ]
9
+ }
Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ files : [
3
+ 'vaadin-accordion.js'
4
+ ] ,
5
+ from : [
6
+ / i m p o r t ' \. \/ t h e m e \/ l u m o \/ v a a d i n - ( .+ ) \. j s ' ; /
7
+ ] ,
8
+ to : [
9
+ `import './theme/lumo/vaadin-$1.js';\nexport * from './src/vaadin-$1.js';`
10
+ ]
11
+ } ;
Original file line number Diff line number Diff line change 18
18
},
19
19
"homepage" : " https://vaadin.com/components" ,
20
20
"files" : [
21
+ " vaadin-*.d.ts" ,
21
22
" vaadin-*.js" ,
22
23
" src" ,
23
24
" theme"
Original file line number Diff line number Diff line change 35
35
*
36
36
* See [ThemableMixin – how to apply styles for shadow parts](https://github.com/vaadin/vaadin-themable-mixin/wiki)
37
37
*
38
- * @memberof Vaadin
38
+ * @extends Vaadin.DetailsElement
39
39
*/
40
40
class AccordionPanelElement extends Vaadin . DetailsElement {
41
41
static get is ( ) {
Original file line number Diff line number Diff line change 89
89
* The index of currently opened panel. First panel is opened by
90
90
* default. Only one panel can be opened at the same time.
91
91
* Setting null or undefined closes all the accordion panels.
92
+ * @type {number }
92
93
*/
93
94
opened : {
94
95
type : Number ,
101
102
* The list of `<vaadin-accordion-panel>` child elements.
102
103
* It is populated from the elements passed to the light DOM,
103
104
* and updated dynamically when adding or removing panels.
105
+ * @type {!Array<!AccordionPanelElement> }
104
106
*/
105
107
items : {
106
108
type : Array ,
122
124
}
123
125
124
126
/**
127
+ * @return {Element | null }
125
128
* @protected
126
129
*/
127
130
get focused ( ) {
155
158
} ) ;
156
159
}
157
160
161
+ /**
162
+ * @param {!Array<!Element> } array
163
+ * @return {!Array<!AccordionPanelElement> }
164
+ * @protected
165
+ */
158
166
_filterItems ( array ) {
159
167
return array . filter ( el => el instanceof Vaadin . AccordionPanelElement ) ;
160
168
}
161
169
170
+ /** @private */
162
171
_updateItems ( items , opened ) {
163
172
if ( items ) {
164
173
const itemToOpen = items [ opened ] ;
168
177
}
169
178
}
170
179
180
+ /**
181
+ * @param {!KeyboardEvent } event
182
+ * @protected
183
+ */
171
184
_onKeydown ( event ) {
172
185
// only check keyboard events on details toggle buttons
173
186
const item = event . composedPath ( ) [ 0 ] ;
211
224
}
212
225
}
213
226
227
+ /**
228
+ * @param {number } index
229
+ * @param {number } increment
230
+ * @return {number }
231
+ * @protected
232
+ */
214
233
_getAvailableIndex ( index , increment ) {
215
234
const totalItems = this . items . length ;
216
235
let idx = index ;
229
248
return - 1 ;
230
249
}
231
250
251
+ /** @private */
232
252
_updateOpened ( e ) {
233
253
const target = this . _filterItems ( e . composedPath ( ) ) [ 0 ] ;
234
254
const idx = this . items . indexOf ( target ) ;
You can’t perform that action at this time.
0 commit comments