ng2-branchy
Advanced tools
Comparing version 0.0.2-1 to 0.0.2-2
{ | ||
"name": "ng2-branchy", | ||
"version": "0.0.2-1", | ||
"version": "0.0.2-2", | ||
"description": "angular2 component for visualizing data that can be naturally represented as a tree", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -10,4 +10,4 @@ import { ElementRef, OnInit, Renderer } from '@angular/core'; | ||
private applyNewValue(newNodeValue); | ||
private applyNewValueByLoosingFocus(newNodeValue); | ||
private cancelEditing(); | ||
private cancelEditingByLoosingFocus(); | ||
} |
@@ -28,6 +28,9 @@ "use strict"; | ||
NodeEditableDirective.prototype.applyNewValue = function (newNodeValue) { | ||
return this.valueChanged.emit({ type: 'keyup', value: newNodeValue }); | ||
this.valueChanged.emit({ type: 'keyup', value: newNodeValue }); | ||
}; | ||
NodeEditableDirective.prototype.applyNewValueByLoosingFocus = function (newNodeValue) { | ||
this.valueChanged.emit({ type: 'blur', value: newNodeValue }); | ||
}; | ||
NodeEditableDirective.prototype.cancelEditing = function () { | ||
return this.valueChanged.emit({ | ||
this.valueChanged.emit({ | ||
type: 'keyup', | ||
@@ -38,9 +41,2 @@ value: this.nodeValue, | ||
}; | ||
NodeEditableDirective.prototype.cancelEditingByLoosingFocus = function () { | ||
this.valueChanged.emit({ | ||
type: 'blur', | ||
value: this.nodeValue, | ||
action: editable_type_1.NodeEditableEventAction.Cancel | ||
}); | ||
}; | ||
__decorate([ | ||
@@ -61,13 +57,13 @@ core_1.Input('nodeEditable'), | ||
__decorate([ | ||
core_1.HostListener('keyup.esc'), | ||
core_1.HostListener('blur', ['$event.target.value']), | ||
__metadata('design:type', Function), | ||
__metadata('design:paramtypes', []), | ||
__metadata('design:paramtypes', [String]), | ||
__metadata('design:returntype', void 0) | ||
], NodeEditableDirective.prototype, "cancelEditing", null); | ||
], NodeEditableDirective.prototype, "applyNewValueByLoosingFocus", null); | ||
__decorate([ | ||
core_1.HostListener('blur'), | ||
core_1.HostListener('keyup.esc'), | ||
__metadata('design:type', Function), | ||
__metadata('design:paramtypes', []), | ||
__metadata('design:returntype', void 0) | ||
], NodeEditableDirective.prototype, "cancelEditingByLoosingFocus", null); | ||
], NodeEditableDirective.prototype, "cancelEditing", null); | ||
NodeEditableDirective = __decorate([ | ||
@@ -74,0 +70,0 @@ core_1.Directive({ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
116946
1244