-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(all): prepare release 1.0.0-beta.1.1.0
- Loading branch information
1 parent
c30927e
commit 47728a2
Showing
16 changed files
with
968 additions
and
436 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
define(['exports', 'aurelia-dependency-injection', 'aurelia-templating', 'aurelia-pal'], function (exports, _aureliaDependencyInjection, _aureliaTemplating, _aureliaPal) { | ||
'use strict'; | ||
|
||
exports.__esModule = true; | ||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } | ||
|
||
var Hide = (function () { | ||
function Hide(element, animator) { | ||
_classCallCheck(this, _Hide); | ||
|
||
this.element = element; | ||
this.animator = animator; | ||
} | ||
|
||
Hide.prototype.valueChanged = function valueChanged(newValue) { | ||
if (newValue) { | ||
this.animator.addClass(this.element, 'aurelia-hide'); | ||
} else { | ||
this.animator.removeClass(this.element, 'aurelia-hide'); | ||
} | ||
}; | ||
|
||
Hide.prototype.bind = function bind(bindingContext) { | ||
this.valueChanged(this.value); | ||
}; | ||
|
||
var _Hide = Hide; | ||
Hide = _aureliaDependencyInjection.inject(_aureliaPal.DOM.Element, _aureliaTemplating.Animator)(Hide) || Hide; | ||
Hide = _aureliaTemplating.customAttribute('hide')(Hide) || Hide; | ||
return Hide; | ||
})(); | ||
|
||
exports.Hide = Hide; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
'use strict'; | ||
|
||
exports.__esModule = true; | ||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } | ||
|
||
var _aureliaDependencyInjection = require('aurelia-dependency-injection'); | ||
|
||
var _aureliaTemplating = require('aurelia-templating'); | ||
|
||
var _aureliaPal = require('aurelia-pal'); | ||
|
||
var Hide = (function () { | ||
function Hide(element, animator) { | ||
_classCallCheck(this, _Hide); | ||
|
||
this.element = element; | ||
this.animator = animator; | ||
} | ||
|
||
Hide.prototype.valueChanged = function valueChanged(newValue) { | ||
if (newValue) { | ||
this.animator.addClass(this.element, 'aurelia-hide'); | ||
} else { | ||
this.animator.removeClass(this.element, 'aurelia-hide'); | ||
} | ||
}; | ||
|
||
Hide.prototype.bind = function bind(bindingContext) { | ||
this.valueChanged(this.value); | ||
}; | ||
|
||
var _Hide = Hide; | ||
Hide = _aureliaDependencyInjection.inject(_aureliaPal.DOM.Element, _aureliaTemplating.Animator)(Hide) || Hide; | ||
Hide = _aureliaTemplating.customAttribute('hide')(Hide) || Hide; | ||
return Hide; | ||
})(); | ||
|
||
exports.Hide = Hide; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import {inject} from 'aurelia-dependency-injection'; | ||
import {customAttribute, Animator} from 'aurelia-templating'; | ||
import {DOM} from 'aurelia-pal'; | ||
|
||
/** | ||
* Binding to conditionally show markup in the DOM based on the value. | ||
* - different from "if" in that the markup is still added to the DOM, simply not shown. | ||
*/ | ||
@customAttribute('hide') | ||
@inject(DOM.Element, Animator) | ||
export class Hide { | ||
/** | ||
* Creates a new instance of Hide. | ||
* @param element Target element to conditionally hide. | ||
* @param animator The animator that conditionally adds or removes the aurelia-hide css class. | ||
*/ | ||
constructor(element, animator) { | ||
this.element = element; | ||
this.animator = animator; | ||
} | ||
|
||
/** | ||
* Invoked everytime the bound value changes. | ||
* @param newValue The new value. | ||
*/ | ||
valueChanged(newValue) { | ||
if (newValue) { | ||
this.animator.addClass(this.element, 'aurelia-hide'); | ||
} else { | ||
this.animator.removeClass(this.element, 'aurelia-hide'); | ||
} | ||
} | ||
|
||
/** | ||
* Binds the Hide attribute. | ||
*/ | ||
bind(bindingContext) { | ||
this.valueChanged(this.value); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
System.register(['aurelia-dependency-injection', 'aurelia-templating', 'aurelia-pal'], function (_export) { | ||
'use strict'; | ||
|
||
var inject, customAttribute, Animator, DOM, Hide; | ||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } | ||
|
||
return { | ||
setters: [function (_aureliaDependencyInjection) { | ||
inject = _aureliaDependencyInjection.inject; | ||
}, function (_aureliaTemplating) { | ||
customAttribute = _aureliaTemplating.customAttribute; | ||
Animator = _aureliaTemplating.Animator; | ||
}, function (_aureliaPal) { | ||
DOM = _aureliaPal.DOM; | ||
}], | ||
execute: function () { | ||
Hide = (function () { | ||
function Hide(element, animator) { | ||
_classCallCheck(this, _Hide); | ||
|
||
this.element = element; | ||
this.animator = animator; | ||
} | ||
|
||
Hide.prototype.valueChanged = function valueChanged(newValue) { | ||
if (newValue) { | ||
this.animator.addClass(this.element, 'aurelia-hide'); | ||
} else { | ||
this.animator.removeClass(this.element, 'aurelia-hide'); | ||
} | ||
}; | ||
|
||
Hide.prototype.bind = function bind(bindingContext) { | ||
this.valueChanged(this.value); | ||
}; | ||
|
||
var _Hide = Hide; | ||
Hide = inject(DOM.Element, Animator)(Hide) || Hide; | ||
Hide = customAttribute('hide')(Hide) || Hide; | ||
return Hide; | ||
})(); | ||
|
||
_export('Hide', Hide); | ||
} | ||
}; | ||
}); |
Oops, something went wrong.