WEB-215 Merge angular-update-19 into dev to upgrade Angular from v18 to v19 (#2530)
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
|
||||
@Pipe({
|
||||
name: 'accountsFilter'
|
||||
})
|
||||
@Pipe({ name: 'accountsFilter' })
|
||||
export class AccountsFilterPipe implements PipeTransform {
|
||||
transform(accounts: any, type: any, status: any, checkSavings: any): any {
|
||||
if (accounts) {
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
|
||||
@Pipe({
|
||||
name: 'chargesFilter'
|
||||
})
|
||||
@Pipe({ name: 'chargesFilter' })
|
||||
export class ChargesFilterPipe implements PipeTransform {
|
||||
transform(charges: any, chargesDataSource: any, currencyCode: string, multiDisburseLoan?: boolean): any {
|
||||
if (charges) {
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
|
||||
@Pipe({
|
||||
name: 'chargesPenaltyFilter'
|
||||
})
|
||||
@Pipe({ name: 'chargesPenaltyFilter' })
|
||||
export class ChargesPenaltyFilterPipe implements PipeTransform {
|
||||
transform(charges: any, penalty: boolean): any {
|
||||
if (charges) {
|
||||
|
||||
@@ -2,9 +2,7 @@ import { Pipe, PipeTransform } from '@angular/core';
|
||||
import { SettingsService } from 'app/settings/settings.service';
|
||||
import moment from 'moment';
|
||||
|
||||
@Pipe({
|
||||
name: 'dateFormat'
|
||||
})
|
||||
@Pipe({ name: 'dateFormat' })
|
||||
export class DateFormatPipe implements PipeTransform {
|
||||
constructor(private settingsService: SettingsService) {}
|
||||
|
||||
|
||||
@@ -2,9 +2,7 @@ import { Pipe, PipeTransform } from '@angular/core';
|
||||
import { SettingsService } from 'app/settings/settings.service';
|
||||
import moment from 'moment';
|
||||
|
||||
@Pipe({
|
||||
name: 'datetimeFormat'
|
||||
})
|
||||
@Pipe({ name: 'datetimeFormat' })
|
||||
export class DatetimeFormatPipe implements PipeTransform {
|
||||
constructor(private settingsService: SettingsService) {}
|
||||
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
|
||||
@Pipe({
|
||||
name: 'externalIdentifier'
|
||||
})
|
||||
@Pipe({ name: 'externalIdentifier' })
|
||||
export class ExternalIdentifierPipe implements PipeTransform {
|
||||
transform(externalId: string): string {
|
||||
const limit = 20;
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
|
||||
@Pipe({
|
||||
name: 'find'
|
||||
})
|
||||
@Pipe({ name: 'find' })
|
||||
export class FindPipe implements PipeTransform {
|
||||
transform(value: any, options: any, key: string, property: string): any {
|
||||
let optionFound;
|
||||
|
||||
@@ -2,9 +2,7 @@ import { DecimalPipe } from '@angular/common';
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
import { SettingsService } from 'app/settings/settings.service';
|
||||
|
||||
@Pipe({
|
||||
name: 'formatNumber'
|
||||
})
|
||||
@Pipe({ name: 'formatNumber' })
|
||||
export class FormatNumberPipe implements PipeTransform {
|
||||
constructor(
|
||||
private decimalFormat: DecimalPipe,
|
||||
|
||||
@@ -17,9 +17,7 @@ import { YesnoPipe } from './yesno.pipe';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule
|
||||
],
|
||||
declarations: [
|
||||
CommonModule,
|
||||
StatusLookupPipe,
|
||||
AccountsFilterPipe,
|
||||
ChargesFilterPipe,
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
import * as vkbeautify from 'vkbeautify';
|
||||
|
||||
@Pipe({
|
||||
name: 'prettyPrint'
|
||||
})
|
||||
@Pipe({ name: 'prettyPrint' })
|
||||
export class PrettyPrintPipe implements PipeTransform {
|
||||
transform(value: any) {
|
||||
if (value.charAt(0) === '{' && value.charAt(value.length - 1) === '}') {
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
|
||||
@Pipe({
|
||||
name: 'statusLookup'
|
||||
})
|
||||
@Pipe({ name: 'statusLookup' })
|
||||
export class StatusLookupPipe implements PipeTransform {
|
||||
transform(status: string): string {
|
||||
const cssClassNameLookup = {
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
import { TranslateService } from '@ngx-translate/core';
|
||||
|
||||
@Pipe({
|
||||
name: 'translateKey'
|
||||
})
|
||||
@Pipe({ name: 'translateKey', standalone: true })
|
||||
export class TranslatePipe implements PipeTransform {
|
||||
constructor(private translateService: TranslateService) {}
|
||||
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
|
||||
@Pipe({
|
||||
name: 'truncateText'
|
||||
})
|
||||
@Pipe({ name: 'truncateText' })
|
||||
export class TruncateTextPipe implements PipeTransform {
|
||||
transform(value: string, chars: number): string {
|
||||
if (value.length <= 40) {
|
||||
|
||||
@@ -5,9 +5,7 @@ import { Pipe, PipeTransform } from '@angular/core';
|
||||
* URL to String pipe.
|
||||
* Transform eg: `self-service/users` :: `Self Service | Users`
|
||||
*/
|
||||
@Pipe({
|
||||
name: 'urlToString'
|
||||
})
|
||||
@Pipe({ name: 'urlToString' })
|
||||
export class UrlToStringPipe implements PipeTransform {
|
||||
transform(url: string): any {
|
||||
url = decodeURIComponent(url);
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
import { TranslateService } from '@ngx-translate/core';
|
||||
|
||||
@Pipe({
|
||||
name: 'yesNo'
|
||||
})
|
||||
@Pipe({ name: 'yesNo' })
|
||||
export class YesnoPipe implements PipeTransform {
|
||||
constructor(private translateService: TranslateService) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user