@pitaya-components/app
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -48,2 +48,8 @@ import { Container } from "aurelia-framework"; | ||
/** | ||
* @bindable | ||
* Event callback - Gets called when this custom element gets detached by Aurelia. | ||
*/ | ||
public onDetached: ( component: PiView ) => void; | ||
/** | ||
* Scrolls to a secific position or element. | ||
@@ -50,0 +56,0 @@ */ |
@@ -57,4 +57,6 @@ "use strict"; | ||
detached() { | ||
var _a; | ||
window.removeEventListener("online", this._scopedOnlineMethod); | ||
window.removeEventListener("offline", this._scopedOfflineMethod); | ||
(_a = this.onDetached) === null || _a === void 0 ? void 0 : _a.call(this, { component: this }); | ||
} | ||
@@ -113,7 +115,10 @@ _willBeAnimated() { | ||
], PiView.prototype, "onReady", void 0); | ||
__decorate([ | ||
aurelia_typed_observable_plugin_1.bindable, | ||
__metadata("design:type", Function) | ||
], PiView.prototype, "onDetached", void 0); | ||
PiView = __decorate([ | ||
aurelia_dependency_injection_1.autoinject, | ||
aurelia_framework_1.viewResources(aurelia_framework_1.PLATFORM.moduleName("./pi-view.css")), | ||
__metadata("design:paramtypes", [Element, | ||
aurelia_framework_1.TaskQueue]) | ||
__metadata("design:paramtypes", [Element, aurelia_framework_1.TaskQueue]) | ||
], PiView); | ||
@@ -120,0 +125,0 @@ exports.PiView = PiView; |
@@ -48,2 +48,8 @@ import { Container } from "aurelia-framework"; | ||
/** | ||
* @bindable | ||
* Event callback - Gets called when this custom element gets detached by Aurelia. | ||
*/ | ||
public onDetached: ( component: PiView ) => void; | ||
/** | ||
* Scrolls to a secific position or element. | ||
@@ -50,0 +56,0 @@ */ |
@@ -55,4 +55,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
detached() { | ||
var _a; | ||
window.removeEventListener("online", this._scopedOnlineMethod); | ||
window.removeEventListener("offline", this._scopedOfflineMethod); | ||
(_a = this.onDetached) === null || _a === void 0 ? void 0 : _a.call(this, { component: this }); | ||
} | ||
@@ -111,7 +113,10 @@ _willBeAnimated() { | ||
], PiView.prototype, "onReady", void 0); | ||
__decorate([ | ||
bindable, | ||
__metadata("design:type", Function) | ||
], PiView.prototype, "onDetached", void 0); | ||
PiView = __decorate([ | ||
autoinject, | ||
viewResources(PLATFORM.moduleName("./pi-view.css")), | ||
__metadata("design:paramtypes", [Element, | ||
TaskQueue]) | ||
__metadata("design:paramtypes", [Element, TaskQueue]) | ||
], PiView); | ||
@@ -118,0 +123,0 @@ export { PiView }; |
{ | ||
"name": "@pitaya-components/app", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Aurelia plugin which helps building faster views and provides additional utility functionality.", | ||
@@ -55,3 +55,5 @@ "repository": { | ||
"gulp-watch": "^5.0.1", | ||
"@pitaya-components/top-bar": "~0.0.1" | ||
"@pitaya-components/top-bar": "~0.0.1", | ||
"@pitaya-components/typography": "~0.0.1", | ||
"@pitaya-components/grid": "~0.0.1" | ||
}, | ||
@@ -58,0 +60,0 @@ "browserslist": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
117597
1582
35