Skip to content

Commit

Permalink
prepare release 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
simonfox committed Apr 11, 2017
1 parent 550b3f3 commit e16d697
Show file tree
Hide file tree
Showing 10 changed files with 103 additions and 57 deletions.
21 changes: 12 additions & 9 deletions dist/amd/autocomplete.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@
<div class="form-group">
<label for="${'au-autocomplete-' + id}"
class="control-label">${title}</label>
<input id="${'au-autocomplete-' + id}"
placeholder.bind="placeholder"
value.bind="inputValue & debounce:delay"
keydown.delegate="keydown($event.which)"
blur.trigger="blur()"
class="form-control"
type="text" autocomplete="off"
aria-autocomplete="list">
<div class="autocomplete-container">
<input id="${'au-autocomplete-' + id}"
value.bind="inputValue & debounce:delay"
disabled.bind="disabled"
placeholder.bind="placeholder"
keydown.delegate="keydown($event.which)"
blur.trigger="blur()"
class="form-control"
type="text" autocomplete="off"
aria-autocomplete="list"/>
<ul if.bind="expanded"
id.one-time="'au-autocomplate-' + id + '-suggestions'"
class="suggestions" role="listbox"
Expand All @@ -24,6 +26,7 @@
<compose view.bind="suggestionView" view-model.bind="suggestion"></compose>
</template>
</li>
</ul>
</ul>
</div>
</div>
</template>
17 changes: 12 additions & 5 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;
var _dec, _dec2, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;

var nextID = 0;

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

_initDefineProp(this, 'placeholder', _descriptor4, this);

_initDefineProp(this, 'delay', _descriptor5, this);
_initDefineProp(this, 'disabled', _descriptor5, this);

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

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

this.id = nextID++;
this.expanded = false;
Expand Down Expand Up @@ -238,12 +240,17 @@ define(['exports', 'aurelia-binding', 'aurelia-templating', 'aurelia-dependency-
initializer: function initializer() {
return '';
}
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, 'delay', [_aureliaTemplating.bindable], {
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, 'disabled', [_aureliaTemplating.bindable], {
enumerable: true,
initializer: function initializer() {
return false;
}
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, 'delay', [_aureliaTemplating.bindable], {
enumerable: true,
initializer: function initializer() {
return 300;
}
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, 'inputValue', [_aureliaBinding.observable], {
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, 'inputValue', [_aureliaBinding.observable], {
enumerable: true,
initializer: function initializer() {
return '';
Expand Down
21 changes: 12 additions & 9 deletions dist/commonjs/autocomplete.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@
<div class="form-group">
<label for="${'au-autocomplete-' + id}"
class="control-label">${title}</label>
<input id="${'au-autocomplete-' + id}"
placeholder.bind="placeholder"
value.bind="inputValue & debounce:delay"
keydown.delegate="keydown($event.which)"
blur.trigger="blur()"
class="form-control"
type="text" autocomplete="off"
aria-autocomplete="list">
<div class="autocomplete-container">
<input id="${'au-autocomplete-' + id}"
value.bind="inputValue & debounce:delay"
disabled.bind="disabled"
placeholder.bind="placeholder"
keydown.delegate="keydown($event.which)"
blur.trigger="blur()"
class="form-control"
type="text" autocomplete="off"
aria-autocomplete="list"/>
<ul if.bind="expanded"
id.one-time="'au-autocomplate-' + id + '-suggestions'"
class="suggestions" role="listbox"
Expand All @@ -24,6 +26,7 @@
<compose view.bind="suggestionView" view-model.bind="suggestion"></compose>
</template>
</li>
</ul>
</ul>
</div>
</div>
</template>
17 changes: 12 additions & 5 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;
var _dec, _dec2, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;

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

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

_initDefineProp(this, 'placeholder', _descriptor4, this);

_initDefineProp(this, 'delay', _descriptor5, this);
_initDefineProp(this, 'disabled', _descriptor5, this);

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

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

this.id = nextID++;
this.expanded = false;
Expand Down Expand Up @@ -245,12 +247,17 @@ var Autocomplete = exports.Autocomplete = (_dec = (0, _aureliaDependencyInjectio
initializer: function initializer() {
return '';
}
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, 'delay', [_aureliaTemplating.bindable], {
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, 'disabled', [_aureliaTemplating.bindable], {
enumerable: true,
initializer: function initializer() {
return false;
}
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, 'delay', [_aureliaTemplating.bindable], {
enumerable: true,
initializer: function initializer() {
return 300;
}
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, 'inputValue', [_aureliaBinding.observable], {
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, 'inputValue', [_aureliaBinding.observable], {
enumerable: true,
initializer: function initializer() {
return '';
Expand Down
21 changes: 12 additions & 9 deletions dist/es2015/autocomplete.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@
<div class="form-group">
<label for="${'au-autocomplete-' + id}"
class="control-label">${title}</label>
<input id="${'au-autocomplete-' + id}"
placeholder.bind="placeholder"
value.bind="inputValue & debounce:delay"
keydown.delegate="keydown($event.which)"
blur.trigger="blur()"
class="form-control"
type="text" autocomplete="off"
aria-autocomplete="list">
<div class="autocomplete-container">
<input id="${'au-autocomplete-' + id}"
value.bind="inputValue & debounce:delay"
disabled.bind="disabled"
placeholder.bind="placeholder"
keydown.delegate="keydown($event.which)"
blur.trigger="blur()"
class="form-control"
type="text" autocomplete="off"
aria-autocomplete="list"/>
<ul if.bind="expanded"
id.one-time="'au-autocomplate-' + id + '-suggestions'"
class="suggestions" role="listbox"
Expand All @@ -24,6 +26,7 @@
<compose view.bind="suggestionView" view-model.bind="suggestion"></compose>
</template>
</li>
</ul>
</ul>
</div>
</div>
</template>
17 changes: 12 additions & 5 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;
var _dec, _dec2, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;

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

_initDefineProp(this, 'placeholder', _descriptor4, this);

_initDefineProp(this, 'delay', _descriptor5, this);
_initDefineProp(this, 'disabled', _descriptor5, this);

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

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

this.id = nextID++;
this.expanded = false;
Expand Down Expand Up @@ -220,12 +222,17 @@ export let Autocomplete = (_dec = inject(Element, TaskQueue), _dec2 = bindable({
initializer: function () {
return '';
}
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, 'delay', [bindable], {
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, 'disabled', [bindable], {
enumerable: true,
initializer: function () {
return false;
}
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, 'delay', [bindable], {
enumerable: true,
initializer: function () {
return 300;
}
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, 'inputValue', [observable], {
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, 'inputValue', [observable], {
enumerable: true,
initializer: function () {
return '';
Expand Down
21 changes: 12 additions & 9 deletions dist/system/autocomplete.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@
<div class="form-group">
<label for="${'au-autocomplete-' + id}"
class="control-label">${title}</label>
<input id="${'au-autocomplete-' + id}"
placeholder.bind="placeholder"
value.bind="inputValue & debounce:delay"
keydown.delegate="keydown($event.which)"
blur.trigger="blur()"
class="form-control"
type="text" autocomplete="off"
aria-autocomplete="list">
<div class="autocomplete-container">
<input id="${'au-autocomplete-' + id}"
value.bind="inputValue & debounce:delay"
disabled.bind="disabled"
placeholder.bind="placeholder"
keydown.delegate="keydown($event.which)"
blur.trigger="blur()"
class="form-control"
type="text" autocomplete="off"
aria-autocomplete="list"/>
<ul if.bind="expanded"
id.one-time="'au-autocomplate-' + id + '-suggestions'"
class="suggestions" role="listbox"
Expand All @@ -24,6 +26,7 @@
<compose view.bind="suggestionView" view-model.bind="suggestion"></compose>
</template>
</li>
</ul>
</ul>
</div>
</div>
</template>
17 changes: 12 additions & 5 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, nextID, Autocomplete;
var bindingMode, observable, bindable, InlineViewStrategy, inject, DOM, TaskQueue, autoCompleteOptions, _dec, _dec2, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, nextID, Autocomplete;

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

_initDefineProp(this, 'placeholder', _descriptor4, this);

_initDefineProp(this, 'delay', _descriptor5, this);
_initDefineProp(this, 'disabled', _descriptor5, this);

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

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

this.id = nextID++;
this.expanded = false;
Expand Down Expand Up @@ -252,12 +254,17 @@ System.register(['aurelia-binding', 'aurelia-templating', 'aurelia-dependency-in
initializer: function initializer() {
return '';
}
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, 'delay', [bindable], {
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, 'disabled', [bindable], {
enumerable: true,
initializer: function initializer() {
return false;
}
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, 'delay', [bindable], {
enumerable: true,
initializer: function initializer() {
return 300;
}
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, 'inputValue', [observable], {
}), _descriptor7 = _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.2.0](https://github.com/drivesoftware/aurelia-autocomplete/releases/tag/1.2.0) (2017-04-11)

### Features

* disabled bindable for disabling the control

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

### 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.1.0",
"version": "1.2.0",
"description": "Autocomplete control for Aurelia",
"keywords": [
"aurelia",
Expand Down

0 comments on commit e16d697

Please sign in to comment.