Skip to content

Commit

Permalink
prepare release 1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
simonfox committed Apr 11, 2017
1 parent 7870c7c commit 4e82322
Show file tree
Hide file tree
Showing 10 changed files with 55 additions and 21 deletions.
4 changes: 2 additions & 2 deletions dist/amd/autocomplete.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<require from="./autocomplete.css"></require>
<div class="form-group">
<div class-name.bind="'form-group ' + (small ? 'form-group-sm' : '')">
<label if.bind="title.length > 0"
for="${'au-autocomplete-' + id}"
class="control-label">${title}</label>
Expand All @@ -20,7 +20,7 @@
ref="suggestionsUL">
<li repeat.for="suggestion of suggestions"
id.one-time="'au-autocomplate-' + id + '-suggestion-' + $index"
class-name.bind="($index === index ? 'selected' : '') + ' suggestion'"
class-name.bind="($index === index ? 'selected' : '') + (small ? 'small' : '') + ' suggestion'"
mousedown.delegate="suggestionClicked(suggestion)"
role="option">
<template replaceable part="suggestion" >
Expand Down
13 changes: 10 additions & 3 deletions dist/amd/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ define(['exports', 'aurelia-binding', 'aurelia-templating', 'aurelia-dependency-
throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
}

var _dec, _dec2, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;
var _dec, _dec2, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;

var nextID = 0;

Expand All @@ -75,7 +75,9 @@ define(['exports', 'aurelia-binding', 'aurelia-templating', 'aurelia-dependency-

_initDefineProp(this, 'delay', _descriptor6, this);

_initDefineProp(this, 'inputValue', _descriptor7, this);
_initDefineProp(this, 'small', _descriptor7, this);

_initDefineProp(this, 'inputValue', _descriptor8, this);

this.id = nextID++;
this.expanded = false;
Expand Down Expand Up @@ -250,7 +252,12 @@ define(['exports', 'aurelia-binding', 'aurelia-templating', 'aurelia-dependency-
initializer: function initializer() {
return 300;
}
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, 'inputValue', [_aureliaBinding.observable], {
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, 'small', [_aureliaTemplating.bindable], {
enumerable: true,
initializer: function initializer() {
return false;
}
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, 'inputValue', [_aureliaBinding.observable], {
enumerable: true,
initializer: function initializer() {
return '';
Expand Down
4 changes: 2 additions & 2 deletions dist/commonjs/autocomplete.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<require from="./autocomplete.css"></require>
<div class="form-group">
<div class-name.bind="'form-group ' + (small ? 'form-group-sm' : '')">
<label if.bind="title.length > 0"
for="${'au-autocomplete-' + id}"
class="control-label">${title}</label>
Expand All @@ -20,7 +20,7 @@
ref="suggestionsUL">
<li repeat.for="suggestion of suggestions"
id.one-time="'au-autocomplate-' + id + '-suggestion-' + $index"
class-name.bind="($index === index ? 'selected' : '') + ' suggestion'"
class-name.bind="($index === index ? 'selected' : '') + (small ? 'small' : '') + ' suggestion'"
mousedown.delegate="suggestionClicked(suggestion)"
role="option">
<template replaceable part="suggestion" >
Expand Down
13 changes: 10 additions & 3 deletions dist/commonjs/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
});
exports.Autocomplete = undefined;

var _dec, _dec2, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;
var _dec, _dec2, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;

var _aureliaBinding = require('aurelia-binding');

Expand Down Expand Up @@ -82,7 +82,9 @@ var Autocomplete = exports.Autocomplete = (_dec = (0, _aureliaDependencyInjectio

_initDefineProp(this, 'delay', _descriptor6, this);

_initDefineProp(this, 'inputValue', _descriptor7, this);
_initDefineProp(this, 'small', _descriptor7, this);

_initDefineProp(this, 'inputValue', _descriptor8, this);

this.id = nextID++;
this.expanded = false;
Expand Down Expand Up @@ -257,7 +259,12 @@ var Autocomplete = exports.Autocomplete = (_dec = (0, _aureliaDependencyInjectio
initializer: function initializer() {
return 300;
}
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, 'inputValue', [_aureliaBinding.observable], {
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, 'small', [_aureliaTemplating.bindable], {
enumerable: true,
initializer: function initializer() {
return false;
}
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, 'inputValue', [_aureliaBinding.observable], {
enumerable: true,
initializer: function initializer() {
return '';
Expand Down
4 changes: 2 additions & 2 deletions dist/es2015/autocomplete.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<require from="./autocomplete.css"></require>
<div class="form-group">
<div class-name.bind="'form-group ' + (small ? 'form-group-sm' : '')">
<label if.bind="title.length > 0"
for="${'au-autocomplete-' + id}"
class="control-label">${title}</label>
Expand All @@ -20,7 +20,7 @@
ref="suggestionsUL">
<li repeat.for="suggestion of suggestions"
id.one-time="'au-autocomplate-' + id + '-suggestion-' + $index"
class-name.bind="($index === index ? 'selected' : '') + ' suggestion'"
class-name.bind="($index === index ? 'selected' : '') + (small ? 'small' : '') + ' suggestion'"
mousedown.delegate="suggestionClicked(suggestion)"
role="option">
<template replaceable part="suggestion" >
Expand Down
13 changes: 10 additions & 3 deletions dist/es2015/autocomplete.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var _dec, _dec2, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;
var _dec, _dec2, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;

function _initDefineProp(target, property, descriptor, context) {
if (!descriptor) return;
Expand Down Expand Up @@ -67,7 +67,9 @@ export let Autocomplete = (_dec = inject(Element, TaskQueue), _dec2 = bindable({

_initDefineProp(this, 'delay', _descriptor6, this);

_initDefineProp(this, 'inputValue', _descriptor7, this);
_initDefineProp(this, 'small', _descriptor7, this);

_initDefineProp(this, 'inputValue', _descriptor8, this);

this.id = nextID++;
this.expanded = false;
Expand Down Expand Up @@ -232,7 +234,12 @@ export let Autocomplete = (_dec = inject(Element, TaskQueue), _dec2 = bindable({
initializer: function () {
return 300;
}
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, 'inputValue', [observable], {
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, 'small', [bindable], {
enumerable: true,
initializer: function () {
return false;
}
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, 'inputValue', [observable], {
enumerable: true,
initializer: function () {
return '';
Expand Down
4 changes: 2 additions & 2 deletions dist/system/autocomplete.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<require from="./autocomplete.css"></require>
<div class="form-group">
<div class-name.bind="'form-group ' + (small ? 'form-group-sm' : '')">
<label if.bind="title.length > 0"
for="${'au-autocomplete-' + id}"
class="control-label">${title}</label>
Expand All @@ -20,7 +20,7 @@
ref="suggestionsUL">
<li repeat.for="suggestion of suggestions"
id.one-time="'au-autocomplate-' + id + '-suggestion-' + $index"
class-name.bind="($index === index ? 'selected' : '') + ' suggestion'"
class-name.bind="($index === index ? 'selected' : '') + (small ? 'small' : '') + ' suggestion'"
mousedown.delegate="suggestionClicked(suggestion)"
role="option">
<template replaceable part="suggestion" >
Expand Down
13 changes: 10 additions & 3 deletions dist/system/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
System.register(['aurelia-binding', 'aurelia-templating', 'aurelia-dependency-injection', 'aurelia-pal', 'aurelia-task-queue', './autocompleteoptions'], function (_export, _context) {
"use strict";

var bindingMode, observable, bindable, InlineViewStrategy, inject, DOM, TaskQueue, autoCompleteOptions, _dec, _dec2, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, nextID, Autocomplete;
var bindingMode, observable, bindable, InlineViewStrategy, inject, DOM, TaskQueue, autoCompleteOptions, _dec, _dec2, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, nextID, Autocomplete;

function _initDefineProp(target, property, descriptor, context) {
if (!descriptor) return;
Expand Down Expand Up @@ -89,7 +89,9 @@ System.register(['aurelia-binding', 'aurelia-templating', 'aurelia-dependency-in

_initDefineProp(this, 'delay', _descriptor6, this);

_initDefineProp(this, 'inputValue', _descriptor7, this);
_initDefineProp(this, 'small', _descriptor7, this);

_initDefineProp(this, 'inputValue', _descriptor8, this);

this.id = nextID++;
this.expanded = false;
Expand Down Expand Up @@ -264,7 +266,12 @@ System.register(['aurelia-binding', 'aurelia-templating', 'aurelia-dependency-in
initializer: function initializer() {
return 300;
}
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, 'inputValue', [observable], {
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, 'small', [bindable], {
enumerable: true,
initializer: function initializer() {
return false;
}
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, 'inputValue', [observable], {
enumerable: true,
initializer: function initializer() {
return '';
Expand Down
6 changes: 6 additions & 0 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# [1.4.0](https://github.com/drivesoftware/aurelia-autocomplete/releases/tag/1.4.0) (2017-04-11)

### Features

* add small property to allow for bootstrap small control

# [1.3.0](https://github.com/drivesoftware/aurelia-autocomplete/releases/tag/1.3.0) (2017-04-11)

### Features
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-autocomplete",
"version": "1.3.0",
"version": "1.4.0",
"description": "Autocomplete control for Aurelia",
"keywords": [
"aurelia",
Expand Down

0 comments on commit 4e82322

Please sign in to comment.