UNPKG

@taiga-ui/cdk

Version:

Base library for creating Angular components and applications using Taiga UI principles regarding of actual visual appearance

29 lines (25 loc) 1.1 kB
import * as i0 from '@angular/core'; import { Pipe } from '@angular/core'; class TuiMapperPipe { /** * Maps object to an arbitrary result through a mapper function * * @param value an item to transform * @param mapper a mapping function * @param args arbitrary number of additional arguments */ transform(value, mapper, ...args) { return mapper(value, ...args); } static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TuiMapperPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); } static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.25", ngImport: i0, type: TuiMapperPipe, isStandalone: true, name: "tuiMapper" }); } } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TuiMapperPipe, decorators: [{ type: Pipe, args: [{ name: 'tuiMapper' }] }] }); /** * Generated bundle index. Do not edit. */ export { TuiMapperPipe }; //# sourceMappingURL=taiga-ui-cdk-pipes-mapper.mjs.map