angular-iban 20.0.0 → 21.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +2 -1
- package/fesm2022/angular-iban.mjs +11 -11
- package/fesm2022/angular-iban.mjs.map +1 -1
- package/package.json +7 -7
- package/{index.d.ts → types/angular-iban.d.ts} +4 -4
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -28,6 +28,7 @@ This library supports Angular 7+. Please check the Version compatibility below t
|
|
|
28
28
|
| 18.x | 18.x |
|
|
29
29
|
| 19.x | 19.x |
|
|
30
30
|
| 20.x | 20.x |
|
|
31
|
+
| 21.x | 21.x |
|
|
31
32
|
## Installation
|
|
32
33
|
|
|
33
34
|
npm:
|
|
@@ -194,6 +195,6 @@ Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`.
|
|
|
194
195
|
|
|
195
196
|
## License
|
|
196
197
|
|
|
197
|
-
Copyright (c) 2018 -
|
|
198
|
+
Copyright (c) 2018 - 2026 fundsaccess AG. Licensed under the MIT License (MIT)
|
|
198
199
|
|
|
199
200
|
|
|
@@ -16,10 +16,10 @@ class IbanValidatorDirective {
|
|
|
16
16
|
validate(c) {
|
|
17
17
|
return ValidatorService.validateIban(c);
|
|
18
18
|
}
|
|
19
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
20
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
19
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: IbanValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
20
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: IbanValidatorDirective, isStandalone: false, selector: "[ibanValidator]", providers: [{ provide: NG_VALIDATORS, useExisting: IbanValidatorDirective, multi: true }], ngImport: i0 }); }
|
|
21
21
|
}
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: IbanValidatorDirective, decorators: [{
|
|
23
23
|
type: Directive,
|
|
24
24
|
args: [{
|
|
25
25
|
selector: '[ibanValidator]',
|
|
@@ -29,16 +29,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.3", ngImpor
|
|
|
29
29
|
}] });
|
|
30
30
|
|
|
31
31
|
class IbanFormatterPipe {
|
|
32
|
-
transform(value
|
|
32
|
+
transform(value) {
|
|
33
33
|
if (IBAN.isValid(value)) {
|
|
34
34
|
return IBAN.printFormat(value, ' ');
|
|
35
35
|
}
|
|
36
36
|
return value;
|
|
37
37
|
}
|
|
38
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
39
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
38
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: IbanFormatterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
39
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.8", ngImport: i0, type: IbanFormatterPipe, isStandalone: false, name: "ibanFormatter" }); }
|
|
40
40
|
}
|
|
41
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
41
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: IbanFormatterPipe, decorators: [{
|
|
42
42
|
type: Pipe,
|
|
43
43
|
args: [{
|
|
44
44
|
name: 'ibanFormatter',
|
|
@@ -47,13 +47,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.3", ngImpor
|
|
|
47
47
|
}] });
|
|
48
48
|
|
|
49
49
|
class AngularIbanModule {
|
|
50
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
51
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
50
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: AngularIbanModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
51
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.8", ngImport: i0, type: AngularIbanModule, declarations: [IbanValidatorDirective,
|
|
52
52
|
IbanFormatterPipe], exports: [IbanValidatorDirective,
|
|
53
53
|
IbanFormatterPipe] }); }
|
|
54
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
54
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: AngularIbanModule }); }
|
|
55
55
|
}
|
|
56
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
56
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: AngularIbanModule, decorators: [{
|
|
57
57
|
type: NgModule,
|
|
58
58
|
args: [{
|
|
59
59
|
declarations: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"angular-iban.mjs","sources":["../../../projects/angular-iban/src/lib/services/validator.service.ts","../../../projects/angular-iban/src/lib/directives/iban-validator.directive.ts","../../../projects/angular-iban/src/lib/pipes/iban-formatter.pipe.ts","../../../projects/angular-iban/src/lib/angular-iban.module.ts","../../../projects/angular-iban/src/public-api.ts","../../../projects/angular-iban/src/angular-iban.ts"],"sourcesContent":["import { AbstractControl, ValidationErrors } from '@angular/forms';\r\nimport * as IBAN from 'iban';\r\n\r\nexport class ValidatorService {\r\n static validateIban(c: AbstractControl): ValidationErrors {\r\n if (c.value && !IBAN.isValid(c.value)) {\r\n return { iban: { value: c.value } };\r\n }\r\n\r\n return null
|
|
1
|
+
{"version":3,"file":"angular-iban.mjs","sources":["../../../projects/angular-iban/src/lib/services/validator.service.ts","../../../projects/angular-iban/src/lib/directives/iban-validator.directive.ts","../../../projects/angular-iban/src/lib/pipes/iban-formatter.pipe.ts","../../../projects/angular-iban/src/lib/angular-iban.module.ts","../../../projects/angular-iban/src/public-api.ts","../../../projects/angular-iban/src/angular-iban.ts"],"sourcesContent":["import { AbstractControl, ValidationErrors } from '@angular/forms';\r\nimport * as IBAN from 'iban';\r\n\r\nexport class ValidatorService {\r\n static validateIban(c: AbstractControl): ValidationErrors | null {\r\n if (c.value && !IBAN.isValid(c.value)) {\r\n return { iban: { value: c.value } };\r\n }\r\n\r\n return null;\r\n }\r\n}\r\n","import { Directive } from '@angular/core';\r\nimport {NG_VALIDATORS, Validator, AbstractControl, ValidationErrors} from '@angular/forms';\r\nimport { ValidatorService } from '../services/validator.service';\r\n\r\n@Directive({\r\n selector: '[ibanValidator]',\r\n providers: [{ provide: NG_VALIDATORS, useExisting: IbanValidatorDirective, multi: true }],\r\n standalone: false\r\n})\r\nexport class IbanValidatorDirective implements Validator {\r\n validate(c: AbstractControl): { [key: string]: ValidationErrors } | null {\r\n return ValidatorService.validateIban(c);\r\n }\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\nimport * as IBAN from 'iban';\r\n\r\n@Pipe({\r\n name: 'ibanFormatter',\r\n standalone: false\r\n})\r\nexport class IbanFormatterPipe implements PipeTransform {\r\n transform(value: string): string {\r\n if (IBAN.isValid(value)) {\r\n return IBAN.printFormat(value, ' ');\r\n }\r\n return value;\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { IbanValidatorDirective } from './directives/iban-validator.directive';\r\nimport { IbanFormatterPipe } from './pipes/iban-formatter.pipe';\r\n\r\n@NgModule({\r\n declarations: [\r\n IbanValidatorDirective,\r\n IbanFormatterPipe,\r\n ],\r\n imports: [\r\n ],\r\n exports: [\r\n IbanValidatorDirective,\r\n IbanFormatterPipe,\r\n ],\r\n})\r\nexport class AngularIbanModule { }\r\n","/*\r\n * Public API Surface of angular-iban\r\n */\r\n\r\nexport * from './lib/angular-iban.module';\r\nexport * from './lib/services/validator.service';\r\nexport * from './lib/directives/iban-validator.directive';\r\nexport * from './lib/pipes/iban-formatter.pipe';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAGa,gBAAgB,CAAA;IAC3B,OAAO,YAAY,CAAC,CAAkB,EAAA;AACpC,QAAA,IAAI,CAAC,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE;YACrC,OAAO,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,EAAE;QACrC;AAEA,QAAA,OAAO,IAAI;IACb;AACD;;MCFY,sBAAsB,CAAA;AACjC,IAAA,QAAQ,CAAC,CAAkB,EAAA;AACzB,QAAA,OAAO,gBAAgB,CAAC,YAAY,CAAC,CAAC,CAAC;IACzC;8GAHW,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,sBAAsB,EAAA,YAAA,EAAA,KAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,SAAA,EAHpB,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,sBAAsB,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA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GR,iBAAiB,EAAA,CAAA,CAAA;;2FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAZ7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,sBAAsB;wBACtB,iBAAiB;AAClB,qBAAA;AACD,oBAAA,OAAO,EAAE,EACR;AACD,oBAAA,OAAO,EAAE;wBACP,sBAAsB;wBACtB,iBAAiB;AAClB,qBAAA;AACF,iBAAA;;;ACfD;;AAEG;;ACFH;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "angular-iban",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "21.0.0",
|
|
4
4
|
"description": "Angular directives and pipes for IBAN",
|
|
5
|
-
"author": "fundsaccess AG",
|
|
6
5
|
"repository": {
|
|
7
6
|
"type": "git",
|
|
8
7
|
"url": "https://github.com/fundsaccess/angular-iban"
|
|
@@ -16,8 +15,8 @@
|
|
|
16
15
|
"typescript"
|
|
17
16
|
],
|
|
18
17
|
"peerDependencies": {
|
|
19
|
-
"@angular/common": "^
|
|
20
|
-
"@angular/core": "^
|
|
18
|
+
"@angular/common": "^21.x",
|
|
19
|
+
"@angular/core": "^21.x",
|
|
21
20
|
"iban": "0.0.14"
|
|
22
21
|
},
|
|
23
22
|
"license": "MIT",
|
|
@@ -25,15 +24,16 @@
|
|
|
25
24
|
"tslib": "^2.3.0"
|
|
26
25
|
},
|
|
27
26
|
"module": "fesm2022/angular-iban.mjs",
|
|
28
|
-
"typings": "
|
|
27
|
+
"typings": "types/angular-iban.d.ts",
|
|
29
28
|
"exports": {
|
|
30
29
|
"./package.json": {
|
|
31
30
|
"default": "./package.json"
|
|
32
31
|
},
|
|
33
32
|
".": {
|
|
34
|
-
"types": "./
|
|
33
|
+
"types": "./types/angular-iban.d.ts",
|
|
35
34
|
"default": "./fesm2022/angular-iban.mjs"
|
|
36
35
|
}
|
|
37
36
|
},
|
|
38
|
-
"sideEffects": false
|
|
37
|
+
"sideEffects": false,
|
|
38
|
+
"type": "module"
|
|
39
39
|
}
|
|
@@ -4,14 +4,14 @@ import { Validator, AbstractControl, ValidationErrors } from '@angular/forms';
|
|
|
4
4
|
|
|
5
5
|
declare class IbanValidatorDirective implements Validator {
|
|
6
6
|
validate(c: AbstractControl): {
|
|
7
|
-
[key: string]:
|
|
8
|
-
};
|
|
7
|
+
[key: string]: ValidationErrors;
|
|
8
|
+
} | null;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<IbanValidatorDirective, never>;
|
|
10
10
|
static ɵdir: i0.ɵɵDirectiveDeclaration<IbanValidatorDirective, "[ibanValidator]", never, {}, {}, never, never, false, never>;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
declare class IbanFormatterPipe implements PipeTransform {
|
|
14
|
-
transform(value:
|
|
14
|
+
transform(value: string): string;
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<IbanFormatterPipe, never>;
|
|
16
16
|
static ɵpipe: i0.ɵɵPipeDeclaration<IbanFormatterPipe, "ibanFormatter", false>;
|
|
17
17
|
}
|
|
@@ -23,7 +23,7 @@ declare class AngularIbanModule {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
declare class ValidatorService {
|
|
26
|
-
static validateIban(c: AbstractControl): ValidationErrors;
|
|
26
|
+
static validateIban(c: AbstractControl): ValidationErrors | null;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export { AngularIbanModule, IbanFormatterPipe, IbanValidatorDirective, ValidatorService };
|