-
-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update dependencies and blocking deprecations
- Loading branch information
1 parent
1c23f2e
commit 11dfc61
Showing
132 changed files
with
39,926 additions
and
13,390 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,8 @@ | |
# misc | ||
/coverage/ | ||
!.* | ||
.*/ | ||
.eslintcache | ||
|
||
# ember-try | ||
/.node_modules.ember-try/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ | |
/.env* | ||
/.pnp* | ||
/.sass-cache | ||
/.eslintcache | ||
/connect.lock | ||
/coverage/ | ||
/libpeerconnection.log | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# unconventional js | ||
/blueprints/*/files/ | ||
/vendor/ | ||
|
||
# compiled output | ||
/dist/ | ||
/tmp/ | ||
|
||
# dependencies | ||
/bower_components/ | ||
/node_modules/ | ||
|
||
# misc | ||
/coverage/ | ||
!.* | ||
.eslintcache | ||
|
||
# ember-try | ||
/.node_modules.ember-try/ | ||
/bower.json.ember-try | ||
/package.json.ember-try |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
singleQuote: true, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import PowerSelectOptions from 'ember-power-select/components/power-select/options'; | ||
|
||
export default class PaperAutocompleteOptions extends PowerSelectOptions {} |
35 changes: 7 additions & 28 deletions
35
addon/components/paper-autocomplete/reset-button/component.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,13 @@ | ||
import Component from '@ember/component'; | ||
import TransitionMixin from 'ember-css-transitions/mixins/transition-mixin'; | ||
|
||
import { tagName, attribute } from '@ember-decorators/component'; | ||
import template from './template'; | ||
import { tagName, layout } from '@ember-decorators/component'; | ||
|
||
@tagName('button') | ||
class PaperAutocompleteResetButton extends Component.extend(TransitionMixin) { | ||
@tagName('') | ||
@layout(template) | ||
export default class PaperAutocompleteResetButton extends Component { | ||
|
||
@attribute | ||
type = 'button'; | ||
|
||
@attribute | ||
tabindex = '-1'; | ||
|
||
transitionClass = 'ng'; | ||
onReset = null; | ||
|
||
click(e) { | ||
let onReset = this.get('onReset'); | ||
if (onReset === null) { | ||
return; | ||
} | ||
onReset(e); | ||
} | ||
|
||
didTransitionOut() { | ||
super.didTransitionOut(...arguments); | ||
if (this.onDidTransitionOut) { | ||
this.onDidTransitionOut(); | ||
} | ||
handleClick(onReset, e) { | ||
if (onReset) { onReset(e) } | ||
} | ||
} | ||
|
||
export default PaperAutocompleteResetButton; |
8 changes: 8 additions & 0 deletions
8
addon/components/paper-autocomplete/reset-button/template.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<button | ||
{{on 'click' (fn this.handleClick @onReset)}} | ||
{{css-transition 'ng' didTransitionOut=@onDidTransitionOut}} | ||
type="button" | ||
tabindex="-1" | ||
...attributes> | ||
{{yield}} | ||
</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,25 @@ | ||
/** | ||
* @module ember-paper | ||
*/ | ||
import { bool } from '@ember/object/computed'; | ||
|
||
import Component from '@ember/component'; | ||
import { computed } from '@ember/object'; | ||
import { htmlSafe } from '@ember/string'; | ||
import TransitionMixin from 'ember-css-transitions/mixins/transition-mixin'; | ||
import { invokeAction } from 'ember-invoke-action'; | ||
import layout from '../templates/components/paper-backdrop'; | ||
/** | ||
* @class PaperBackdrop | ||
* @extends Ember.Component | ||
* @uses TransitionMixin | ||
*/ | ||
export default Component.extend(TransitionMixin, { | ||
|
||
tagName: 'md-backdrop', | ||
classNames: ['md-default-theme'], | ||
classNameBindings: ['opaque:md-opaque', 'isLockedOpen:md-locked-open'], | ||
attributeBindings: ['backdropStyle:style'], | ||
|
||
// TransitionMixin: | ||
transitionName: 'ng', | ||
shouldTransition: bool('opaque'), | ||
export default Component.extend({ | ||
layout, | ||
tagName: '', | ||
|
||
backdropStyle: computed('fixed', function() { | ||
return this.get('fixed') ? htmlSafe('position:fixed;') : null; | ||
}), | ||
// addDestroyedElementClone(original, clone) { | ||
// if (original.parentNode) { | ||
// original.parentNode.appendChild(clone); | ||
// } | ||
// }, | ||
|
||
addDestroyedElementClone(original, clone) { | ||
if (original.parentNode) { | ||
original.parentNode.appendChild(clone); | ||
} | ||
}, | ||
|
||
sendClickAction(e) { | ||
sendClickAction(onClick, e) { | ||
e.preventDefault(); | ||
invokeAction(this, 'onClick', e); | ||
}, | ||
|
||
click(e) { | ||
this.sendClickAction(e); | ||
}, | ||
|
||
// needed for iOS | ||
// iOS doesn't trigger a click event on normal divs | ||
// unless we use `cursor: pointer` css | ||
touchEnd(e) { | ||
this.sendClickAction(e); | ||
if (onClick) { onClick(e); } | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.