UNPKG

fabric8-analytics-dep-editor

Version:
24 lines 724 B
import { Pipe } from '@angular/core'; var FilterPipe = /** @class */ (function () { function FilterPipe() { } FilterPipe.prototype.transform = function (value, input) { if (input) { input = input.toLowerCase(); return value.filter(function (el) { return el.name.toLowerCase().indexOf(input) > -1; }); } return value; }; FilterPipe.decorators = [ { type: Pipe, args: [{ name: 'FilterPipe' },] }, ]; /** @nocollapse */ FilterPipe.ctorParameters = function () { return []; }; return FilterPipe; }()); export { FilterPipe }; //# sourceMappingURL=add-dependency.pipe.js.map