Skip to content

Commit

Permalink
chore(release): 3.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
simonfox committed Nov 3, 2017
1 parent d36f749 commit 371749e
Show file tree
Hide file tree
Showing 13 changed files with 40 additions and 25 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

<a name="3.0.2"></a>
## [3.0.2](https://github.com/drivesoftware/aurelia-widgets/compare/3.0.1...v3.0.2) (2017-11-03)


### Bug Fixes

* **text-display:** title of text-display needs value ([d36f749](https://github.com/drivesoftware/aurelia-widgets/commit/d36f749))



<a name="3.0.1"></a>
## [3.0.1](https://github.com/drivesoftware/aurelia-widgets/compare/3.0.0...v3.0.1) (2017-11-02)

Expand Down
7 changes: 4 additions & 3 deletions dist/amd/text-display-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,13 @@ define(['exports', 'aurelia-templating', 'aurelia-binding', 'aurelia-dependency-
TextDisplayWidget.prototype.bind = function bind() {
this.toolTipElement = (0, _jquery2.default)(this.element.querySelector('.text-display-widget-label'));
this.toolTipElement.attr('title', '');
this.toolTipElement.tooltip({
var options = {
container: 'body',
placement: this.placement,
html: true,
title: this.toolTipText || this.text
});
title: this.toolTipText || this.text || ''
};
this.toolTipElement.tooltip(options);
};

TextDisplayWidget.prototype.unbind = function unbind() {
Expand Down
2 changes: 1 addition & 1 deletion dist/amd/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ define(['exports', 'aurelia-framework', 'jquery'], function (exports, _aureliaFr
container: 'body',
placement: TOOLTIP_PLACEMENT,
html: true,
title: this.value
title: this.value || ''
});
};

Expand Down
9 changes: 5 additions & 4 deletions dist/aurelia-widgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,12 +381,13 @@ export class TextDisplayWidget {
bind() {
this.toolTipElement = $(this.element.querySelector('.text-display-widget-label'));
this.toolTipElement.attr('title', '');
this.toolTipElement.tooltip({
const options = {
container: 'body',
placement: this.placement,
html: true,
title: this.toolTipText || this.text
});
title: this.toolTipText || this.text || ''
}
this.toolTipElement.tooltip(options);
}
unbind() {
Expand Down Expand Up @@ -660,7 +661,7 @@ export class Tooltip {
container: 'body',
placement: TOOLTIP_PLACEMENT,
html: true,
title: this.value
title: this.value || ''
});
}

Expand Down
7 changes: 4 additions & 3 deletions dist/commonjs/text-display-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,13 @@ var TextDisplayWidget = exports.TextDisplayWidget = (_dec = (0, _aureliaTemplati
TextDisplayWidget.prototype.bind = function bind() {
this.toolTipElement = (0, _jquery2.default)(this.element.querySelector('.text-display-widget-label'));
this.toolTipElement.attr('title', '');
this.toolTipElement.tooltip({
var options = {
container: 'body',
placement: this.placement,
html: true,
title: this.toolTipText || this.text
});
title: this.toolTipText || this.text || ''
};
this.toolTipElement.tooltip(options);
};

TextDisplayWidget.prototype.unbind = function unbind() {
Expand Down
2 changes: 1 addition & 1 deletion dist/commonjs/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ var Tooltip = exports.Tooltip = (_dec = (0, _aureliaFramework.customAttribute)('
container: 'body',
placement: TOOLTIP_PLACEMENT,
html: true,
title: this.value
title: this.value || ''
});
};

Expand Down
7 changes: 4 additions & 3 deletions dist/es2015/text-display-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@ export let TextDisplayWidget = (_dec = customElement('text-display-widget'), _de
bind() {
this.toolTipElement = $(this.element.querySelector('.text-display-widget-label'));
this.toolTipElement.attr('title', '');
this.toolTipElement.tooltip({
const options = {
container: 'body',
placement: this.placement,
html: true,
title: this.toolTipText || this.text
});
title: this.toolTipText || this.text || ''
};
this.toolTipElement.tooltip(options);
}

unbind() {
Expand Down
6 changes: 3 additions & 3 deletions dist/es2015/text-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,19 +151,19 @@ export let TextWidget = (_dec = customElement('text-widget'), _dec2 = bindable({
let originalX = window.pageXOffset;
let originalY = window.pageYOffset;
this.optimalHeight = this._calcOptimalHeight();
this.input.style.height = `${ this.optimalHeight }px`;
this.input.style.height = `${this.optimalHeight}px`;
window.scrollTo(originalX, originalY);
}

_expand(e) {
if (this.optimalHeight > this.minSize) {
this.animator.animate(this.input, { height: `${ this.optimalHeight }px` }, { duration: ANIMATION_LENGTH });
this.animator.animate(this.input, { height: `${this.optimalHeight}px` }, { duration: ANIMATION_LENGTH });
}
}

blur(e) {
if (this.optimalHeight > this.minSize) {
this.animator.animate(this.input, { height: `${ this.minSize }px` }, { duration: ANIMATION_LENGTH });
this.animator.animate(this.input, { height: `${this.minSize}px` }, { duration: ANIMATION_LENGTH });
if (this.textValue) {
this.input.style.overflowY = 'scroll';
}
Expand Down
2 changes: 1 addition & 1 deletion dist/es2015/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export let Tooltip = (_dec = customAttribute('tooltip'), _dec2 = inject(Element)
container: 'body',
placement: TOOLTIP_PLACEMENT,
html: true,
title: this.value
title: this.value || ''
});
}

Expand Down
7 changes: 4 additions & 3 deletions dist/system/text-display-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,13 @@ System.register(['aurelia-templating', 'aurelia-binding', 'aurelia-dependency-in
TextDisplayWidget.prototype.bind = function bind() {
this.toolTipElement = $(this.element.querySelector('.text-display-widget-label'));
this.toolTipElement.attr('title', '');
this.toolTipElement.tooltip({
var options = {
container: 'body',
placement: this.placement,
html: true,
title: this.toolTipText || this.text
});
title: this.toolTipText || this.text || ''
};
this.toolTipElement.tooltip(options);
};

TextDisplayWidget.prototype.unbind = function unbind() {
Expand Down
2 changes: 1 addition & 1 deletion dist/system/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ System.register(['aurelia-framework', 'jquery'], function (_export, _context) {
container: 'body',
placement: TOOLTIP_PLACEMENT,
html: true,
title: this.value
title: this.value || ''
});
};

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-widgets",
"version": "3.0.1",
"version": "3.0.2",
"description": "A Collection of UI Widgets for use in Aurelia applications",
"homepage": "http://drivesoftware.co.nz",
"main": "index",
Expand Down

0 comments on commit 371749e

Please sign in to comment.