Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var DescriptionComponent = (function () {
function DescriptionComponent() {
}
DescriptionComponent = __decorate([
core_1.Component({
selector: 'description',
templateUrl: './app/description/description.html',
directives: [primeng_1.InputTextarea, primeng_1.Header, primeng_1.Panel]
}),
__metadata('design:paramtypes', [])
], DescriptionComponent);
return DescriptionComponent;
}());
exports.DescriptionComponent = DescriptionComponent;
var parentNode = this.findNodeById(this.selectedNode.parentId, this.files);
var index = parentNode.children.findIndex(function (child) { return child.id === _this.selectedNode.id; });
if (index > -1) {
parentNode.children.splice(index, 1);
}
}
};
__decorate([
core_1.Output(),
__metadata('design:type', Object)
], FileManagerComponent.prototype, "fileSelected", void 0);
FileManagerComponent = __decorate([
core_1.Component({
selector: 'filemanager',
templateUrl: './app/filemanager/filemanager.html',
directives: [primeng_1.Tree, primeng_1.Panel, primeng_1.Toolbar, primeng_1.Button, primeng_1.Dialog, primeng_1.InputText]
}),
__metadata('design:paramtypes', [core_1.Renderer])
], FileManagerComponent);
return FileManagerComponent;
}());
exports.FileManagerComponent = FileManagerComponent;
};
TagsComponent.prototype.filterTags = function (query, tagList) {
var filtered = [];
for (var i = 0; i < tagList.length; i++) {
var tag = tagList[i];
if (tag.toLowerCase().indexOf(query.toLowerCase()) == 0) {
filtered.push(tag);
}
}
return filtered;
};
TagsComponent = __decorate([
core_1.Component({
selector: 'tags',
templateUrl: './app/tags/tags.html',
directives: [primeng_1.AutoComplete, primeng_1.Panel]
}),
__metadata('design:paramtypes', [tag_service_1.TagService])
], TagsComponent);
return TagsComponent;
}());
exports.TagsComponent = TagsComponent;