Skip to content

Commit

Permalink
feat: prepare for TS defs generation (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan authored Apr 29, 2020
1 parent 9ea98fa commit 5f54386
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@
},
"dependencies": {
"polymer": "^2.0.0",
"vaadin-control-state-mixin": "vaadin/vaadin-control-state-mixin#^2.1.1",
"vaadin-themable-mixin": "vaadin/vaadin-themable-mixin#^1.2.1",
"vaadin-control-state-mixin": "vaadin/vaadin-control-state-mixin#^2.2.1",
"vaadin-themable-mixin": "vaadin/vaadin-themable-mixin#^1.6.1",
"vaadin-lumo-styles": "vaadin/vaadin-lumo-styles#^1.3.3",
"vaadin-material-styles": "vaadin/vaadin-material-styles#^1.2.0",
"vaadin-element-mixin": "vaadin/vaadin-element-mixin#^2.0.0"
"vaadin-element-mixin": "vaadin/vaadin-element-mixin#^2.4.1"
},
"resolutions": {
"vaadin-element-mixin": "^2.0.0"
Expand Down
9 changes: 9 additions & 0 deletions gen-tsd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"excludeFiles": [
"wct.conf.js",
"index.html",
"demo/**/*",
"test/**/*",
"theme/**/*"
]
}
11 changes: 11 additions & 0 deletions magi-p3-post.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
files: [
'vaadin-button.js'
],
from: [
/import '\.\/theme\/lumo\/vaadin-(.+)\.js';/
],
to: [
`import './theme/lumo/vaadin-$1.js';\nexport * from './src/vaadin-$1.js';`
]
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
},
"homepage": "https://vaadin.com/components",
"files": [
"vaadin-*.d.ts",
"vaadin-*.js",
"src",
"theme"
Expand Down
2 changes: 2 additions & 0 deletions src/vaadin-button.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@
}
}

/** @private */
_addActiveListeners() {
Polymer.Gestures.addListener(this, 'down', () => !this.disabled && this.setAttribute('active', ''));
Polymer.Gestures.addListener(this, 'up', () => this.removeAttribute('active'));
Expand All @@ -176,6 +177,7 @@

/**
* @protected
* @return {Element}
*/
get focusElement() {
return this.$.button;
Expand Down

0 comments on commit 5f54386

Please sign in to comment.