Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ng2-branchy

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng2-branchy - npm Package Compare versions

Comparing version 0.0.2-1 to 0.0.2-2

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc