import { PipeTransform } from '@angular/core'; import * as i0 from "@angular/core"; export declare class DmCmpsFilterByPipe implements PipeTransform { /** * * @param array - (any[]) source array * @param filterPredicate - can get a function or object: * * @usageNotes * #### Example as function * * ```typescript * filterPredicateFunction(item: any) { * return item.age > 18 && item.weight > 80; * } * ``` * * #### Example as object * * ```typescript * filterPredicateObject: { [key: string]: any } = { * age: 18, * weight: 80 * } * ``` * * @usageExample * #### Use function predicate * ```html *
* *
* ``` * * #### Use object - with check all * ```html *
* *
* ``` * * #### Use object - returns the items that have some properties from the object * ```html *
* *
* ``` * * @param checkAll - when `filterPredicate` is an object, * if `checkAll=true` it will return just the elements that have the `filterPredicate` keys and values, * if `checkAll=false` it will return all the elements thet have some properties from the `filterPredicate` with same values, * | default is `checkAll=true` * * * @returns (any[]) filterd array */ transform(array: any[], filterPredicate: ((item: any) => boolean) | { [key: string]: any; }, checkAll?: boolean, ...args: any[]): any[]; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; }