Skip to content

Commit

Permalink
chore(all): prepare release 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Nov 10, 2015
1 parent 62eb849 commit 95d5f04
Show file tree
Hide file tree
Showing 12 changed files with 101 additions and 16 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-ui-virtualization",
"version": "0.1.0",
"version": "0.2.0",
"description": "A plugin that provides a virtualized repeater and other virtualization services.",
"keywords": [
"aurelia",
Expand Down
13 changes: 13 additions & 0 deletions dist/amd/scroll-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ define(['exports'], function (exports) {
this.firefoxMultitude = 30;
this.mouseMultitude = 1;
this.keyStep = 120;
this.pageStep = this.keyStep * 100;
this.isFirefox = navigator.userAgent.indexOf('Firefox') > -1;
this.hasKeyDown = 'onkeydown' in document;
this.hasWheelEvent = 'onwheel' in document;
Expand Down Expand Up @@ -188,6 +189,18 @@ define(['exports'], function (exports) {
ScrollHandler.prototype.keyDown = function keyDown(event) {
var delta = 0;
switch (event.keyCode) {
case 36:
delta = Number.POSITIVE_INFINITY;
break;
case 35:
delta = Number.NEGATIVE_INFINITY;
break;
case 33:
delta = this.pageStep;
break;
case 34:
delta = -this.pageStep;
break;
case 38:
delta = this.keyStep;
break;
Expand Down
9 changes: 6 additions & 3 deletions dist/amd/virtual-repeat.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ define(['exports', 'aurelia-dependency-injection', 'aurelia-binding', 'aurelia-t
};

var row = this.createFullBindingContext(this.items[0], 0, 1);
var view = this.viewFactory.create(row);
var view = this.viewFactory.create();
view.bind(row);
this.viewSlot.add(view);
};

Expand Down Expand Up @@ -103,7 +104,8 @@ define(['exports', 'aurelia-dependency-injection', 'aurelia-binding', 'aurelia-t

for (var i = 1, ii = this.numberOfDomElements; i < ii; ++i) {
row = this.createFullBindingContext(this.items[i], i, ii);
view = this.viewFactory.create(row);
view = this.viewFactory.create();
view.bind(row);
this.viewSlot.add(view);
}

Expand Down Expand Up @@ -138,7 +140,8 @@ define(['exports', 'aurelia-dependency-injection', 'aurelia-binding', 'aurelia-t
if (this.numberOfDomElements > childrenLength) {
addIndex = children[childrenLength - 1].bindingContext.$index + 1;
row = this.createFullBindingContext(this.items[addIndex], addIndex, this.items.length);
view = this.viewFactory.create(row);
view = this.viewFactory.create();
view.bind(row);
this.viewSlot.insert(childrenLength, view);
} else if (this.numberOfDomElements < childrenLength) {
this.numberOfDomElements = childrenLength;
Expand Down
13 changes: 13 additions & 0 deletions dist/commonjs/scroll-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ var ScrollHandler = (function () {
this.firefoxMultitude = 30;
this.mouseMultitude = 1;
this.keyStep = 120;
this.pageStep = this.keyStep * 100;
this.isFirefox = navigator.userAgent.indexOf('Firefox') > -1;
this.hasKeyDown = 'onkeydown' in document;
this.hasWheelEvent = 'onwheel' in document;
Expand Down Expand Up @@ -187,6 +188,18 @@ var ScrollHandler = (function () {
ScrollHandler.prototype.keyDown = function keyDown(event) {
var delta = 0;
switch (event.keyCode) {
case 36:
delta = Number.POSITIVE_INFINITY;
break;
case 35:
delta = Number.NEGATIVE_INFINITY;
break;
case 33:
delta = this.pageStep;
break;
case 34:
delta = -this.pageStep;
break;
case 38:
delta = this.keyStep;
break;
Expand Down
9 changes: 6 additions & 3 deletions dist/commonjs/virtual-repeat.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ var VirtualRepeat = (function () {
};

var row = this.createFullBindingContext(this.items[0], 0, 1);
var view = this.viewFactory.create(row);
var view = this.viewFactory.create();
view.bind(row);
this.viewSlot.add(view);
};

Expand Down Expand Up @@ -110,7 +111,8 @@ var VirtualRepeat = (function () {

for (var i = 1, ii = this.numberOfDomElements; i < ii; ++i) {
row = this.createFullBindingContext(this.items[i], i, ii);
view = this.viewFactory.create(row);
view = this.viewFactory.create();
view.bind(row);
this.viewSlot.add(view);
}

Expand Down Expand Up @@ -145,7 +147,8 @@ var VirtualRepeat = (function () {
if (this.numberOfDomElements > childrenLength) {
addIndex = children[childrenLength - 1].bindingContext.$index + 1;
row = this.createFullBindingContext(this.items[addIndex], addIndex, this.items.length);
view = this.viewFactory.create(row);
view = this.viewFactory.create();
view.bind(row);
this.viewSlot.insert(childrenLength, view);
} else if (this.numberOfDomElements < childrenLength) {
this.numberOfDomElements = childrenLength;
Expand Down
17 changes: 15 additions & 2 deletions dist/es6/scroll-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export class ScrollHandler{
this.firefoxMultitude = 30;
this.mouseMultitude = 1;
this.keyStep = 120;
this.pageStep = this.keyStep * 100;
this.isFirefox = navigator.userAgent.indexOf('Firefox') > -1;
this.hasKeyDown = 'onkeydown' in document;
this.hasWheelEvent = 'onwheel' in document;
Expand Down Expand Up @@ -153,10 +154,22 @@ export class ScrollHandler{
keyDown(event) {
var delta = 0;
switch(event.keyCode) {
case 38:
case 36: // Home key
delta = Number.POSITIVE_INFINITY;
break;
case 35: // End key
delta = Number.NEGATIVE_INFINITY;
break;
case 33: // Page up
delta = this.pageStep;
break;
case 34: // Page down
delta = -this.pageStep;
break;
case 38: // Up arrow
delta = this.keyStep;
break;
case 40:
case 40: // Down arrow
delta = -this.keyStep;
break;
}
Expand Down
9 changes: 6 additions & 3 deletions dist/es6/virtual-repeat.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ export class VirtualRepeat {

// create first item to get the heights
var row = this.createFullBindingContext(this.items[0], 0, 1);
var view = this.viewFactory.create(row);
var view = this.viewFactory.create();
view.bind(row);
this.viewSlot.add(view);
}

Expand All @@ -73,7 +74,8 @@ export class VirtualRepeat {

for(var i = 1, ii = this.numberOfDomElements; i < ii; ++i){
row = this.createFullBindingContext(this.items[i], i, ii);
view = this.viewFactory.create(row);
view = this.viewFactory.create();
view.bind(row);
this.viewSlot.add(view);
}

Expand Down Expand Up @@ -106,7 +108,8 @@ export class VirtualRepeat {
if(this.numberOfDomElements > childrenLength){
addIndex = children[childrenLength - 1].bindingContext.$index + 1;
row = this.createFullBindingContext(this.items[addIndex], addIndex, this.items.length);
view = this.viewFactory.create(row);
view = this.viewFactory.create();
view.bind(row);
this.viewSlot.insert(childrenLength, view);
}else if (this.numberOfDomElements < childrenLength){
this.numberOfDomElements = childrenLength;
Expand Down
13 changes: 13 additions & 0 deletions dist/system/scroll-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ System.register([], function (_export) {
this.firefoxMultitude = 30;
this.mouseMultitude = 1;
this.keyStep = 120;
this.pageStep = this.keyStep * 100;
this.isFirefox = navigator.userAgent.indexOf('Firefox') > -1;
this.hasKeyDown = 'onkeydown' in document;
this.hasWheelEvent = 'onwheel' in document;
Expand Down Expand Up @@ -191,6 +192,18 @@ System.register([], function (_export) {
ScrollHandler.prototype.keyDown = function keyDown(event) {
var delta = 0;
switch (event.keyCode) {
case 36:
delta = Number.POSITIVE_INFINITY;
break;
case 35:
delta = Number.NEGATIVE_INFINITY;
break;
case 33:
delta = this.pageStep;
break;
case 34:
delta = -this.pageStep;
break;
case 38:
delta = this.keyStep;
break;
Expand Down
9 changes: 6 additions & 3 deletions dist/system/virtual-repeat.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ System.register(['aurelia-dependency-injection', 'aurelia-binding', 'aurelia-tem
};

var row = this.createFullBindingContext(this.items[0], 0, 1);
var view = this.viewFactory.create(row);
var view = this.viewFactory.create();
view.bind(row);
this.viewSlot.add(view);
};

Expand Down Expand Up @@ -120,7 +121,8 @@ System.register(['aurelia-dependency-injection', 'aurelia-binding', 'aurelia-tem

for (var i = 1, ii = this.numberOfDomElements; i < ii; ++i) {
row = this.createFullBindingContext(this.items[i], i, ii);
view = this.viewFactory.create(row);
view = this.viewFactory.create();
view.bind(row);
this.viewSlot.add(view);
}

Expand Down Expand Up @@ -155,7 +157,8 @@ System.register(['aurelia-dependency-injection', 'aurelia-binding', 'aurelia-tem
if (this.numberOfDomElements > childrenLength) {
addIndex = children[childrenLength - 1].bindingContext.$index + 1;
row = this.createFullBindingContext(this.items[addIndex], addIndex, this.items.length);
view = this.viewFactory.create(row);
view = this.viewFactory.create();
view.bind(row);
this.viewSlot.insert(childrenLength, view);
} else if (this.numberOfDomElements < childrenLength) {
this.numberOfDomElements = childrenLength;
Expand Down
20 changes: 20 additions & 0 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## 0.2.0 (2015-11-10)


#### Bug Fixes

* **index:** update to latest configuration api ([f87a32dc](http://github.com/aurelia/ui-virtualization/commit/f87a32dc04c3be06ba2d7add0aebeb69204fa9ea))
* **virtual-list:** remove css class ([3d282b29](http://github.com/aurelia/ui-virtualization/commit/3d282b29393f1bb9719b5a2af23b0f1d21038f47))
* **virtual-repeat:**
* update to latest templating ([62eb8490](http://github.com/aurelia/ui-virtualization/commit/62eb849032babb151127a1c21e217519ce7912f6))
* update executionContext to bindingContext ([e29c46f0](http://github.com/aurelia/ui-virtualization/commit/e29c46f0ea552d42701239fa00be32ca244d7bad))
* use parentNode instead of parentElement on the injected element ([66d05bbe](http://github.com/aurelia/ui-virtualization/commit/66d05bbe8f556ce96b950b11930b140b553b182d), closes [#4](http://github.com/aurelia/ui-virtualization/issues/4))


#### Features

* **all:**
* handle home, end, pgup, pgdown keys ([9c27a091](http://github.com/aurelia/ui-virtualization/commit/9c27a0911cf3090bae6682e84b82dd554f4d4a81), closes [#10](http://github.com/aurelia/ui-virtualization/issues/10))
* add initial implementation ([58cae757](http://github.com/aurelia/ui-virtualization/commit/58cae757f29abc0974ffdae3df32e85e15c8798d))
* **sample:** add ui-virtualization demo ([644bbe33](http://github.com/aurelia/ui-virtualization/commit/644bbe33e74247086f58081dbcfee191bc196e69), closes [#17](http://github.com/aurelia/ui-virtualization/issues/17))

1 change: 1 addition & 0 deletions doc/api.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"classes":[],"methods":[],"properties":[],"events":[]}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-ui-virtualization",
"version": "0.1.0",
"version": "0.2.0",
"description": "A plugin that provides a virtualized repeater and other virtualization services.",
"keywords": [
"aurelia",
Expand Down

0 comments on commit 95d5f04

Please sign in to comment.