DEV: introduces prettier for es6 files

This commit is contained in:
Joffrey JAFFEUX
2018-06-15 17:03:24 +02:00
committed by GitHub
parent c7ee70941e
commit 03a7d532cf
1162 changed files with 60667 additions and 29659 deletions

View File

@ -10,7 +10,8 @@ export default SelectKitHeaderComponent.extend({
"values:data-value"
],
classNames: "multi-select-header",
layoutName: "select-kit/templates/components/multi-select/multi-select-header",
layoutName:
"select-kit/templates/components/multi-select/multi-select-header",
selectedNameComponent: Ember.computed.alias("options.selectedNameComponent"),
ariaLabel: Ember.computed.or("computedContent.ariaLabel", "title", "names"),
@ -30,17 +31,21 @@ export default SelectKitHeaderComponent.extend({
const width = this.$().outerWidth(false);
const availableSpace = width - offset;
const $choices = $filter.parent(".choices");
const parentRightPadding = parseInt($choices.css("padding-right") , 10);
const parentRightPadding = parseInt($choices.css("padding-right"), 10);
$filter.width(availableSpace - parentRightPadding * 4);
},
@computed("computedContent.selection.[]")
names(selection) {
return Ember.makeArray(selection).map(s => s.name).join(",");
return Ember.makeArray(selection)
.map(s => s.name)
.join(",");
},
@computed("computedContent.selection.[]")
values(selection) {
return Ember.makeArray(selection).map(s => s.value).join(",");
return Ember.makeArray(selection)
.map(s => s.value)
.join(",");
}
});