UNPKG

ng-custom-pipe

Version:

An Angular Library, that gives you a hussle free experience on data operation using pipes

1,215 lines (1,158 loc) 92.2 kB
import * as i0 from '@angular/core'; import { Injectable, Component, Pipe, NgModule } from '@angular/core'; /** Copyright 2023 Infosys Ltd. */ class NgCustomPipeService { constructor() { } } NgCustomPipeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NgCustomPipeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); NgCustomPipeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NgCustomPipeService, providedIn: 'root' }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NgCustomPipeService, decorators: [{ type: Injectable, args: [{ providedIn: 'root' }] }], ctorParameters: function () { return []; } }); /** Copyright 2023 Infosys Ltd. */ class NgCustomPipeComponent { constructor() { } ngOnInit() { } } NgCustomPipeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NgCustomPipeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); NgCustomPipeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: NgCustomPipeComponent, selector: "ng-custom-pipe", ngImport: i0, template: ` <p> ng-custom-pipe works! </p> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NgCustomPipeComponent, decorators: [{ type: Component, args: [{ selector: 'ng-custom-pipe', template: ` <p> ng-custom-pipe works! </p> ` }] }], ctorParameters: function () { return []; } }); /** Copyright 2023 Infosys Ltd. */ class HandleNanPipe { constructor() { this.resString = ''; } transform(value, message) { if (!value || isNaN(+value)) { this.resString = message ? message : "Invalid Number"; } else { this.resString = value; } return this.resString; } } HandleNanPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HandleNanPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); HandleNanPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: HandleNanPipe, name: "handleNan" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HandleNanPipe, decorators: [{ type: Pipe, args: [{ name: 'handleNan' }] }] }); /** Copyright 2023 Infosys Ltd. */ class UpperPipe { transform(value) { return value ? value.toUpperCase() : 'NULL'; } } UpperPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UpperPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); UpperPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: UpperPipe, name: "upper" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UpperPipe, decorators: [{ type: Pipe, args: [{ name: 'upper' }] }] }); /** Copyright 2023 Infosys Ltd. */ class LowerPipe { transform(value) { return value ? value.toLowerCase() : 'null'; } } LowerPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LowerPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); LowerPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: LowerPipe, name: "lower" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LowerPipe, decorators: [{ type: Pipe, args: [{ name: 'lower' }] }] }); /** Copyright 2023 Infosys Ltd. */ class TrimPipe { transform(value, direction) { if (!direction || direction.toLowerCase() == 'around') { return value.trim(); } else if (direction.toLowerCase() == 'left') { return value.trimLeft(); } else if (direction.toLowerCase() == 'right') { return value.trimRight(); } else if (direction.toLowerCase() == 'start') { return value.trimStart(); } else if (direction.toLowerCase() == 'end') { return value.trimEnd(); } return ''; } } TrimPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TrimPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); TrimPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: TrimPipe, name: "trim" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TrimPipe, decorators: [{ type: Pipe, args: [{ name: 'trim' }] }] }); /** Copyright 2023 Infosys Ltd. */ class SplitPipe { transform(value, separator) { if (!value) { return []; } if (!separator || separator == '') { return value.split(''); } else { return value.split(separator); } } } SplitPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SplitPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); SplitPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SplitPipe, name: "split" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SplitPipe, decorators: [{ type: Pipe, args: [{ name: 'split' }] }] }); /** Copyright 2023 Infosys Ltd. */ class ReplacePipe { transform(value, textToBeReplaced, replacedText) { if (!value.includes(textToBeReplaced)) { return 'Text to be Replaced not found in Source String.'; } else { if (!replacedText) { return value.replace(new RegExp(textToBeReplaced, 'g'), 'Default Text'); } else { return value.replace(new RegExp(textToBeReplaced, 'g'), replacedText); } } } } ReplacePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReplacePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); ReplacePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ReplacePipe, name: "replace" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReplacePipe, decorators: [{ type: Pipe, args: [{ name: 'replace' }] }] }); /** Copyright 2023 Infosys Ltd. */ class MatchPipe { transform(value, match) { if (typeof (match) == 'string') { match = match.toLowerCase(); } let result = value.toLowerCase().match(match); if (result?.index >= 0) { return result.index; } else { return 'No Match Found'; } } } MatchPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MatchPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); MatchPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: MatchPipe, name: "match" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MatchPipe, decorators: [{ type: Pipe, args: [{ name: 'match' }] }] }); /** Copyright 2023 Infosys Ltd. */ class CapitalizePipe { transform(value) { let words = value.split(' '); let results = []; words.forEach((word) => { results.push(word[0].toUpperCase() + word.slice(1, word.length).toLowerCase()); }); return results.join(' '); } } CapitalizePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CapitalizePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); CapitalizePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: CapitalizePipe, name: "capitalize" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CapitalizePipe, decorators: [{ type: Pipe, args: [{ name: 'capitalize' }] }] }); /** Copyright 2023 Infosys Ltd. */ class SlugItPipe { transform(value) { return typeof (value) === 'string' ? value.toLowerCase().trim().replace(/[^\w\-]+/g, ' ').replace(/\s+/g, '-') : value; } } SlugItPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SlugItPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); SlugItPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SlugItPipe, name: "slugIt" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SlugItPipe, decorators: [{ type: Pipe, args: [{ name: 'slugIt' }] }] }); /** Copyright 2023 Infosys Ltd. */ class ReversePipe { transform(value) { let revString = ''; for (let i = 1; i < value.length + 1; i++) { revString += value[value.length - i]; } return revString; } } ReversePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReversePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); ReversePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ReversePipe, name: "reverse" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReversePipe, decorators: [{ type: Pipe, args: [{ name: 'reverse' }] }] }); /** Copyright 2023 Infosys Ltd. */ class GroupByPipe { transform(value, col) { let result = []; let group = []; value.forEach((row) => { let key = row[col]; if (!group.includes(key)) { result.push({ key: key, value: [row] }); group.push(key); } else { result.forEach(ar => { if (ar.key === key) { ar.value.push(row); } }); } }); return result; } } GroupByPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GroupByPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); GroupByPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: GroupByPipe, name: "groupBy" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GroupByPipe, decorators: [{ type: Pipe, args: [{ name: 'groupBy' }] }] }); /** Copyright 2023 Infosys Ltd. */ class StringifyPipe { transform(value) { return JSON.stringify(value); } } StringifyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StringifyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); StringifyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: StringifyPipe, name: "stringify" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StringifyPipe, decorators: [{ type: Pipe, args: [{ name: 'stringify' }] }] }); /** Copyright 2023 Infosys Ltd. */ class AveragePipe { transform(value) { let sum = 0; value.forEach(num => sum += num); return sum / value.length; } } AveragePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AveragePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); AveragePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: AveragePipe, name: "average" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AveragePipe, decorators: [{ type: Pipe, args: [{ name: 'average' }] }] }); /** Copyright 2023 Infosys Ltd. */ class MedianPipe { transform(value) { if (!value || value.length == 0) { return null; } const midIndex = Math.floor(value.length / 2); const numbers = value.sort((a, b) => a - b); return value.length % 2 !== 0 ? numbers[midIndex] : (numbers[midIndex - 1] + numbers[midIndex]) / 2; } } MedianPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MedianPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); MedianPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: MedianPipe, name: "median" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MedianPipe, decorators: [{ type: Pipe, args: [{ name: 'median' }] }] }); /** Copyright 2023 Infosys Ltd. */ class ModePipe { transform(value) { if (!value || value.length == 0) { return null; } let mode = value[0]; let count = 1; let modeObj = {}; value.forEach((v) => { if (modeObj[v] == null) { modeObj[v] = 1; } else { modeObj[v] += 1; } if (modeObj[v] > count) { mode = v; count = modeObj[v]; } }); return mode; } } ModePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ModePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); ModePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ModePipe, name: "mode" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ModePipe, decorators: [{ type: Pipe, args: [{ name: 'mode' }] }] }); /** Copyright 2023 Infosys Ltd. */ class MaximumPipe { transform(value) { if (!value || value.length == 0) { return 0; } return Math.max(...value); } } MaximumPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MaximumPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); MaximumPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: MaximumPipe, name: "maximum" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MaximumPipe, decorators: [{ type: Pipe, args: [{ name: 'maximum' }] }] }); /** Copyright 2023 Infosys Ltd. */ class MinimumPipe { transform(value) { if (!value || value.length == 0) { return 0; } return Math.min(...value); } } MinimumPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MinimumPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); MinimumPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: MinimumPipe, name: "minimum" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MinimumPipe, decorators: [{ type: Pipe, args: [{ name: 'minimum' }] }] }); /** Copyright 2023 Infosys Ltd. */ class SumPipe { transform(value) { if (!value || value.length == 0) { return 0; } let sum = 0; value.forEach(num => { sum += num; }); return sum; } } SumPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SumPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); SumPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SumPipe, name: "sum" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SumPipe, decorators: [{ type: Pipe, args: [{ name: 'sum' }] }] }); /** Copyright 2023 Infosys Ltd. */ class EmptyPipe { transform(value) { if (!value) return true; return value.length === 0; } } EmptyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EmptyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); EmptyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: EmptyPipe, name: "empty" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EmptyPipe, decorators: [{ type: Pipe, args: [{ name: 'empty' }] }] }); /** Copyright 2023 Infosys Ltd. */ class FirstItemPipe { transform(value) { if (!value || value.length === 0) return null; return value[0]; } } FirstItemPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FirstItemPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); FirstItemPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: FirstItemPipe, name: "firstItem" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FirstItemPipe, decorators: [{ type: Pipe, args: [{ name: 'firstItem' }] }] }); /** Copyright 2023 Infosys Ltd. */ class LastItemPipe { transform(value) { if (!value || value.length === 0) return null; return value[value.length - 1]; } } LastItemPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LastItemPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); LastItemPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: LastItemPipe, name: "lastItem" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LastItemPipe, decorators: [{ type: Pipe, args: [{ name: 'lastItem' }] }] }); /** Copyright 2023 Infosys Ltd. */ class PopFirstItemPipe { transform(value) { if (!value || value.length === 0) return []; return value.slice(1, value.length); } } PopFirstItemPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PopFirstItemPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); PopFirstItemPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: PopFirstItemPipe, name: "popFirstItem" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PopFirstItemPipe, decorators: [{ type: Pipe, args: [{ name: 'popFirstItem' }] }] }); /** Copyright 2023 Infosys Ltd. */ class PopLastItemPipe { transform(value) { if (!value || value.length === 0) return []; return value.slice(0, value.length - 1); } } PopLastItemPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PopLastItemPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); PopLastItemPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: PopLastItemPipe, name: "popLastItem" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PopLastItemPipe, decorators: [{ type: Pipe, args: [{ name: 'popLastItem' }] }] }); /** Copyright 2023 Infosys Ltd. */ class JoinPipe { transform(value, joiner) { if (!joiner) return value.join(''); return value.join(joiner); } } JoinPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JoinPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); JoinPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: JoinPipe, name: "join" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JoinPipe, decorators: [{ type: Pipe, args: [{ name: 'join' }] }] }); /** Copyright 2023 Infosys Ltd. */ class SetPipe { transform(value) { if (!value || value.length === 0) return []; let result = []; value.forEach(val => { if (!result.includes(val)) { result.push(val); } }); return result; } } SetPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SetPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); SetPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SetPipe, name: "set" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SetPipe, decorators: [{ type: Pipe, args: [{ name: 'set' }] }] }); /** Copyright 2023 Infosys Ltd. */ class ExceptPipe { transform(value, exclusions) { if (!value || value.length === 0) return []; let result = []; if (typeof (exclusions) == 'string' || typeof (exclusions) == 'number') { value.forEach(val => { if (val !== exclusions) { result.push(val); } }); } else { value.forEach(val => { if (!exclusions.includes(val)) { result.push(val); } }); } return result; } } ExceptPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ExceptPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); ExceptPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ExceptPipe, name: "except" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ExceptPipe, decorators: [{ type: Pipe, args: [{ name: 'except' }] }] }); /** Copyright 2023 Infosys Ltd. */ class AndPipe { transform(value, anotherArr) { if (!value || value.length === 0) return []; if (!anotherArr || anotherArr.length === 0) return []; let result = []; value.forEach(val => { if (anotherArr.includes(val) && !result.includes(val)) { result.push(val); } }); return result; } } AndPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AndPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); AndPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: AndPipe, name: "and" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AndPipe, decorators: [{ type: Pipe, args: [{ name: 'and' }] }] }); /** Copyright 2023 Infosys Ltd. */ class OrPipe { transform(value, anotherArr) { if (!value || value.length === 0) return anotherArr; if (!anotherArr || anotherArr.length === 0) return value; let result = []; value.forEach(val => { if (!result.includes(val)) { result.push(val); } }); anotherArr.forEach(val => { if (!result.includes(val)) { result.push(val); } }); return result; } } OrPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); OrPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: OrPipe, name: "or" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrPipe, decorators: [{ type: Pipe, args: [{ name: 'or' }] }] }); /** Copyright 2023 Infosys Ltd. */ class RangePipe { transform(value, start, end) { if (!value || value.length === 0) return []; if (!start) { start = Math.min(...value); } if (!end) { end = Math.max(...value); } let result = []; value.forEach(num => { // @ts-ignore if (num >= start && num <= end) { result.push(num); } }); return result; } } RangePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RangePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); RangePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: RangePipe, name: "range" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RangePipe, decorators: [{ type: Pipe, args: [{ name: 'range' }] }] }); /** Copyright 2023 Infosys Ltd. */ class MapPipe { transform(value, funct) { if (!value || value.length === 0) return []; let result = []; result = value.map(val => funct(val)); return result; } } MapPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MapPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); MapPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: MapPipe, name: "map" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MapPipe, decorators: [{ type: Pipe, args: [{ name: 'map' }] }] }); /** Copyright 2023 Infosys Ltd. */ class PluckPropertyPipe { transform(value, prop) { if (!value || value.length === 0) return []; let result = []; let props = prop.split('.'); value.forEach((val) => { let res = val[props[0]]; if (props.length > 1) { for (let i = 1; i < props.length; i++) { res = res[props[i]]; } } if (res) { result.push(res); } }); return result; } } PluckPropertyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PluckPropertyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); PluckPropertyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: PluckPropertyPipe, name: "pluckProperty" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PluckPropertyPipe, decorators: [{ type: Pipe, args: [{ name: 'pluckProperty' }] }] }); /** Copyright 2023 Infosys Ltd. */ class FilterPipe { transform(value, param) { if (!value || value.length === 0) return []; let resultArr = []; if (typeof (param) == 'string' || typeof (param) == 'number') { resultArr = value.filter(val => { return val === param; }); } if (typeof (param) == 'object') { let prop = param[0]; let props = prop.split('.'); value.forEach(val => { let res = val[props[0]]; if (props.length > 1) { for (let i = 1; i < props.length; i++) { res = res[props[i]]; } } if (res === param[1]) { resultArr.push(val); } }); } if (typeof (param) == 'function') { resultArr = param(value); } return resultArr; } } FilterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); FilterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: FilterPipe, name: "filter" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilterPipe, decorators: [{ type: Pipe, args: [{ name: 'filter' }] }] }); /** Copyright 2023 Infosys Ltd. */ class FilterOnePipe { transform(value, param) { if (!value || value.length === 0) return []; let resultArr = []; if (typeof (param) == 'string' || typeof (param) == 'number') { resultArr = value.filter(val => { return val === param; }); } if (typeof (param) == 'object') { let prop = param[0]; let props = prop.split('.'); value.forEach(val => { let res = val[props[0]]; if (props.length > 1) { for (let i = 1; i < props.length; i++) { res = res[props[i]]; } } if (res === param[1]) { resultArr.push(val); } }); } if (typeof (param) == 'function') { resultArr = param(value); } return resultArr[0]; } } FilterOnePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilterOnePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); FilterOnePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: FilterOnePipe, name: "filterOne" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilterOnePipe, decorators: [{ type: Pipe, args: [{ name: 'filterOne' }] }] }); /** Copyright 2023 Infosys Ltd. */ class SortPipe { transform(value, sortingMethod) { if (!value) return []; if (!sortingMethod || sortingMethod === 'asc') { return value.sort((a, b) => { return a > b ? 1 : -1; }); } return value.sort((a, b) => { return a > b ? -1 : 1; }); } } SortPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SortPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); SortPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SortPipe, name: "sort" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SortPipe, decorators: [{ type: Pipe, args: [{ name: 'sort' }] }] }); /** Copyright 2023 Infosys Ltd. */ class LengthPipe { transform(value) { return value ? value.length : 0; } } LengthPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LengthPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); LengthPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: LengthPipe, name: "length" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LengthPipe, decorators: [{ type: Pipe, args: [{ name: 'length' }] }] }); /** Copyright 2023 Infosys Ltd. */ class ChunkPipe { transform(value, length) { if (!length) { length = 1; } let result = []; for (let i = 0; i < value.length; i += length) { let chunkArr = []; for (let k = 0; k < length; k++) { if (i + k < value.length) { chunkArr.push(value[i + k]); } } result.push(chunkArr); } return result; } } ChunkPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChunkPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); ChunkPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ChunkPipe, name: "chunk" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChunkPipe, decorators: [{ type: Pipe, args: [{ name: 'chunk' }] }] }); /** Copyright 2023 Infosys Ltd. */ class DropPipe { transform(value, dropLen) { if (!dropLen) { return value.slice(0, value.length - 1); } return value.slice(0, value.length - dropLen); } } DropPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DropPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); DropPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: DropPipe, name: "drop" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DropPipe, decorators: [{ type: Pipe, args: [{ name: 'drop' }] }] }); /** Copyright 2023 Infosys Ltd. */ class FlatPipe { transform(value, layer) { if (!value || value.length == 0) return []; if (!layer) { layer = 1; } let resultArr = value.flat(); if (layer > 1) for (let i = 1; i < layer; i++) { resultArr = this.flatten(resultArr); } return resultArr; } flatten(arr) { return arr.flat(); } } FlatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); FlatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: FlatPipe, name: "flat" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlatPipe, decorators: [{ type: Pipe, args: [{ name: 'flat' }] }] }); /** Copyright 2023 Infosys Ltd. */ class ReverseArrayPipe { transform(value) { if (!value) return []; return value.sort(() => { return -1; }); } } ReverseArrayPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReverseArrayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); ReverseArrayPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ReverseArrayPipe, name: "reverseArray" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReverseArrayPipe, decorators: [{ type: Pipe, args: [{ name: 'reverseArray' }] }] }); /** Copyright 2023 Infosys Ltd. */ class ByteConvertToPipe { transform(value, unit) { const bMax = 1024; const kbMax = 1024 * 1024; const mbMax = 1024 * 1024 * 1024; const gbMax = 1024 * 1024 * 1024 * 1024; const tbMax = Number.MAX_SAFE_INTEGER; if (!unit) { if (value < bMax) { return value + ' B'; } else if (value < kbMax) { return value / bMax + ' KB'; } else if (value < mbMax) { return value / kbMax + ' MB'; } else if (value < gbMax) { return value / mbMax + ' GB'; } else if (value < tbMax) { return value / gbMax + ' TB'; } } if (unit === 'B') { return value + ' B'; } if (unit === 'KB') { return value / bMax + ' KB'; } if (unit === 'MB') { return value / kbMax + ' MB'; } if (unit === 'GB') { return value / mbMax + ' GB'; } if (unit === 'TB') { return value / gbMax + ' TB'; } return ''; } } ByteConvertToPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ByteConvertToPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); ByteConvertToPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ByteConvertToPipe, name: "byteConvertTo" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ByteConvertToPipe, decorators: [{ type: Pipe, args: [{ name: 'byteConvertTo' }] }] }); /** Copyright 2023 Infosys Ltd. */ class CeilPipe { transform(value) { return Math.ceil(value); } } CeilPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CeilPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); CeilPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: CeilPipe, name: "ceil" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CeilPipe, decorators: [{ type: Pipe, args: [{ name: 'ceil' }] }] }); /** Copyright 2023 Infosys Ltd. */ class FloorPipe { transform(value) { return Math.floor(value); } } FloorPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FloorPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); FloorPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: FloorPipe, name: "floor" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FloorPipe, decorators: [{ type: Pipe, args: [{ name: 'floor' }] }] }); /** Copyright 2023 Infosys Ltd. */ class RoundPipe { transform(value, decimalDigits) { if (!decimalDigits || decimalDigits === 0) { return Math.round(value); } return Math.round(value * Math.pow(10, decimalDigits)) / Math.pow(10, decimalDigits); } } RoundPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RoundPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); RoundPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: RoundPipe, name: "round" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RoundPipe, decorators: [{ type: Pipe, args: [{ name: 'round' }] }] }); /** Copyright 2023 Infosys Ltd. */ class ToDegreePipe { transform(value) { return (value * 180) / Math.PI; } } ToDegreePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToDegreePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); ToDegreePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ToDegreePipe, name: "toDegree" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToDegreePipe, decorators: [{ type: Pipe, args: [{ name: 'toDegree' }] }] }); /** Copyright 2023 Infosys Ltd. */ class ToRadianPipe { transform(value) { return (value * Math.PI) / 180 > Math.PI ? (value / 180) + 'π' : (value * Math.PI) / 180; } } ToRadianPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToRadianPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); ToRadianPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ToRadianPipe, name: "toRadian" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToRadianPipe, decorators: [{ type: Pipe, args: [{ name: 'toRadian' }] }] }); /** Copyright 2023 Infosys Ltd. */ class PowerPipe { transform(value, exponent) { if (!exponent || exponent === 0) return 1; return Math.pow(value, exponent); } } PowerPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PowerPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); PowerPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: PowerPipe, name: "power" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PowerPipe, decorators: [{ type: Pipe, args: [{ name: 'power' }] }] }); /** Copyright 2023 Infosys Ltd. */ class SqrootPipe { transform(value) { return Math.sqrt(value); } } SqrootPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SqrootPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); SqrootPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SqrootPipe, name: "sqroot" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SqrootPipe, decorators: [{ type: Pipe, args: [{ name: 'sqroot' }] }] }); /** Copyright 2023 Infosys Ltd. */ class AbsolutePipe { transform(inputNumberValue) { if (!inputNumberValue) return 0; let absoluteNumberValue = Math.abs(inputNumberValue); return absoluteNumberValue; } } AbsolutePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AbsolutePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); AbsolutePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: AbsolutePipe, name: "absolute" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AbsolutePipe, decorators: [{ type: Pipe, args: [{ name: 'absolute' }] }] }); /** Copyright 2023 Infosys Ltd. */ class OrdinalPipe { transform(value) { const prefix = { 0: 'th', 1: 'st', 2: 'nd', 3: 'rd', 4: 'th', 5: 'th', 6: 'th', 7: 'th', 8: 'th', 9: 'th', }; if (value % 100 > 10 && value % 100 < 20) { return value + 'th'; } return value + prefix[value % 10]; } } OrdinalPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrdinalPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); OrdinalPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: OrdinalPipe, name: "ordinal" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrdinalPipe, decorators: [{ type: Pipe, args: [{ name: 'ordinal' }] }] }); /** Copyright 2023 Infosys Ltd. */ class IntegerTypePipe { transform(value) { return Math.sign(value) == 1 ? 'POSITIVE' : Math.sign(value) == 0 ? 'NIL' : 'NEGATIVE'; } } IntegerTypePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IntegerTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); IntegerTypePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: IntegerTypePipe, name: "integerType" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IntegerTypePipe, decorators: [{ type: Pipe, args: [{ name: 'integerType' }] }] }); /** Copyright 2023 Infosys Ltd. */ class IsArrayPipe { transform(value) { let inp = JSON.stringify(value); return inp.startsWith('[') && inp.endsWith(']'); } } IsArrayPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IsArrayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); IsArrayPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: IsArrayPipe, name: "isArray" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IsArrayPipe, decorators: [{ type: Pipe, args: [{ name: 'isArray' }] }] }); /** Copyright 2023 Infosys Ltd. */ class IsBinaryPipe { transform(value) { let inp = typeof (value) === 'string' || typeof (value) === 'number' || typeof (value) === 'bigint' ? value.toString() : JSON.stringify(value); let reg = /^[0|1]{0,}$/; return reg.test(inp); } } IsBinaryPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IsBinaryPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); IsBinaryPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: IsBinaryPipe, name: "isBinary" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IsBinaryPipe, decorators: [{ type: Pipe, args: [{ name: 'isBinary' }] }] }); /** Copyright 2023 Infosys Ltd. */ class IsDefinedPipe { transform(value) { return !(value == null || value == undefined); } } IsDefinedPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IsDefinedPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); IsDefinedPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: IsDefinedPipe, name: "isDefined" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IsDefinedPipe, decorators: [{ type: Pipe, args: [{ name: 'isDefined' }] }] }); /** Copyright 2023 Infosys Ltd. */ class IsEqualPipe { transform(value, comparator) { return value == comparator; } } IsEqualPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IsEqualPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); IsEqualPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: IsEqualPipe, name: "isEqual" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IsEqualPipe, decorators: [{ type: Pipe, args: [{ name: 'isEqual' }] }] }); /** Copyright 2023 Infosys Ltd. */ class IsFunctionPipe { transform(value) { return typeof (value) == 'function'; } } IsFunctionPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IsFunctionPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); IsFunctionPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: IsFunctionPipe, name: "isFunction" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ng