angular-iban 6.0.1 → 15.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 +10 -8
- package/esm2020/lib/angular-iban.module.mjs +5 -5
- package/esm2020/lib/directives/iban-validator.directive.mjs +4 -4
- package/esm2020/lib/pipes/iban-formatter.pipe.mjs +3 -3
- package/fesm2015/angular-iban.mjs +12 -10
- package/fesm2015/angular-iban.mjs.map +1 -1
- package/fesm2020/angular-iban.mjs +12 -10
- package/fesm2020/angular-iban.mjs.map +1 -1
- package/{angular-iban.d.ts → index.d.ts} +0 -0
- package/lib/directives/iban-validator.directive.d.ts +1 -1
- package/lib/pipes/iban-formatter.pipe.d.ts +1 -1
- package/package.json +5 -5
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -14,13 +14,15 @@ This library supports Angular 7+. Please check the Version compatibility below t
|
|
|
14
14
|
|
|
15
15
|
| angular-iban | Angular |
|
|
16
16
|
|:------------:|:-------:|
|
|
17
|
-
|
|
|
18
|
-
|
|
|
19
|
-
|
|
|
20
|
-
|
|
|
21
|
-
|
|
|
22
|
-
|
|
|
23
|
-
|
|
|
17
|
+
| 0.2.0 | 7.x |
|
|
18
|
+
| 1.x | 8.x |
|
|
19
|
+
| 2.x | 9.x |
|
|
20
|
+
| 3.x | 10.x |
|
|
21
|
+
| 4.x | 11.x |
|
|
22
|
+
| 5.x | 12.x |
|
|
23
|
+
| 6.x | 13.x |
|
|
24
|
+
| 14.x | 14.x |
|
|
25
|
+
| 15.x | 15.x |
|
|
24
26
|
|
|
25
27
|
## Installation
|
|
26
28
|
|
|
@@ -196,6 +198,6 @@ Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`.
|
|
|
196
198
|
|
|
197
199
|
## License
|
|
198
200
|
|
|
199
|
-
Copyright (c) 2018 -
|
|
201
|
+
Copyright (c) 2018 - 2022 fundsaccess AG. Licensed under the MIT License (MIT)
|
|
200
202
|
|
|
201
203
|
|
|
@@ -4,12 +4,12 @@ import { IbanFormatterPipe } from './pipes/iban-formatter.pipe';
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export class AngularIbanModule {
|
|
6
6
|
}
|
|
7
|
-
AngularIbanModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8
|
-
AngularIbanModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
7
|
+
AngularIbanModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: AngularIbanModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
8
|
+
AngularIbanModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.1", ngImport: i0, type: AngularIbanModule, declarations: [IbanValidatorDirective,
|
|
9
9
|
IbanFormatterPipe], exports: [IbanValidatorDirective,
|
|
10
10
|
IbanFormatterPipe] });
|
|
11
|
-
AngularIbanModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11
|
+
AngularIbanModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: AngularIbanModule });
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: AngularIbanModule, decorators: [{
|
|
13
13
|
type: NgModule,
|
|
14
14
|
args: [{
|
|
15
15
|
declarations: [
|
|
@@ -23,4 +23,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
|
|
|
23
23
|
]
|
|
24
24
|
}]
|
|
25
25
|
}] });
|
|
26
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
26
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5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25zOiBbXG4gICAgSWJhblZhbGlkYXRvckRpcmVjdGl2ZSxcbiAgICBJYmFuRm9ybWF0dGVyUGlwZVxuICBdLFxuICBpbXBvcnRzOiBbXG4gIF0sXG4gIGV4cG9ydHM6IFtcbiAgICBJYmFuVmFsaWRhdG9yRGlyZWN0aXZlLFxuICAgIEliYW5Gb3JtYXR0ZXJQaXBlLFxuICBdXG59KVxuZXhwb3J0IGNsYXNzIEFuZ3VsYXJJYmFuTW9kdWxlIHsgfVxuIl19
|
|
@@ -7,13 +7,13 @@ export class IbanValidatorDirective {
|
|
|
7
7
|
return ValidatorService.validateIban(c);
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
IbanValidatorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
11
|
-
IbanValidatorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10
|
+
IbanValidatorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: IbanValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
11
|
+
IbanValidatorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.1", type: IbanValidatorDirective, selector: "[ibanValidator]", providers: [{ provide: NG_VALIDATORS, useExisting: IbanValidatorDirective, multi: true }], ngImport: i0 });
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: IbanValidatorDirective, decorators: [{
|
|
13
13
|
type: Directive,
|
|
14
14
|
args: [{
|
|
15
15
|
selector: '[ibanValidator]',
|
|
16
16
|
providers: [{ provide: NG_VALIDATORS, useExisting: IbanValidatorDirective, multi: true }]
|
|
17
17
|
}]
|
|
18
18
|
}] });
|
|
19
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
19
|
+
//# s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lkYXRvciwgQWJzdHJhY3RDb250cm9sIH0gZnJvbSAnQGFuZ3VsYXIvZm9ybXMnO1xuaW1wb3J0IHsgVmFsaWRhdG9yU2VydmljZSB9IGZyb20gJy4uL3NlcnZpY2VzL3ZhbGlkYXRvci5zZXJ2aWNlJztcblxuQERpcmVjdGl2ZSh7XG4gIHNlbGVjdG9yOiAnW2liYW5WYWxpZGF0b3JdJyxcbiAgcHJvdmlkZXJzOiBbe3Byb3ZpZGU6IE5HX1ZBTElEQVRPUlMsIHVzZUV4aXN0aW5nOiBJYmFuVmFsaWRhdG9yRGlyZWN0aXZlLCBtdWx0aTogdHJ1ZX1dXG59KVxuZXhwb3J0IGNsYXNzIEliYW5WYWxpZGF0b3JEaXJlY3RpdmUgaW1wbGVtZW50cyBWYWxpZGF0b3Ige1xuICB2YWxpZGF0ZShjOiBBYnN0cmFjdENvbnRyb2wpOiB7IFtrZXk6IHN0cmluZ106IGFueSB9IHtcbiAgICByZXR1cm4gVmFsaWRhdG9yU2VydmljZS52YWxpZGF0ZUliYW4oYyk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -9,9 +9,9 @@ export class IbanFormatterPipe {
|
|
|
9
9
|
return value;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
IbanFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13
|
-
IbanFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "
|
|
14
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12
|
+
IbanFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: IbanFormatterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
13
|
+
IbanFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.1", ngImport: i0, type: IbanFormatterPipe, name: "ibanFormatter" });
|
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: IbanFormatterPipe, decorators: [{
|
|
15
15
|
type: Pipe,
|
|
16
16
|
args: [{
|
|
17
17
|
name: 'ibanFormatter'
|
|
@@ -17,9 +17,9 @@ class IbanValidatorDirective {
|
|
|
17
17
|
return ValidatorService.validateIban(c);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
IbanValidatorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
21
|
-
IbanValidatorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
20
|
+
IbanValidatorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: IbanValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
21
|
+
IbanValidatorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.1", type: IbanValidatorDirective, selector: "[ibanValidator]", providers: [{ provide: NG_VALIDATORS, useExisting: IbanValidatorDirective, multi: true }], ngImport: i0 });
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: IbanValidatorDirective, decorators: [{
|
|
23
23
|
type: Directive,
|
|
24
24
|
args: [{
|
|
25
25
|
selector: '[ibanValidator]',
|
|
@@ -35,9 +35,9 @@ class IbanFormatterPipe {
|
|
|
35
35
|
return value;
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
IbanFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
39
|
-
IbanFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "
|
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
38
|
+
IbanFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: IbanFormatterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
39
|
+
IbanFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.1", ngImport: i0, type: IbanFormatterPipe, name: "ibanFormatter" });
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: IbanFormatterPipe, decorators: [{
|
|
41
41
|
type: Pipe,
|
|
42
42
|
args: [{
|
|
43
43
|
name: 'ibanFormatter'
|
|
@@ -46,12 +46,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
|
|
|
46
46
|
|
|
47
47
|
class AngularIbanModule {
|
|
48
48
|
}
|
|
49
|
-
AngularIbanModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
50
|
-
AngularIbanModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
49
|
+
AngularIbanModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: AngularIbanModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
50
|
+
AngularIbanModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.1", ngImport: i0, type: AngularIbanModule, declarations: [IbanValidatorDirective,
|
|
51
51
|
IbanFormatterPipe], exports: [IbanValidatorDirective,
|
|
52
52
|
IbanFormatterPipe] });
|
|
53
|
-
AngularIbanModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
54
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
53
|
+
AngularIbanModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: AngularIbanModule });
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: AngularIbanModule, decorators: [{
|
|
55
55
|
type: NgModule,
|
|
56
56
|
args: [{
|
|
57
57
|
declarations: [
|
|
@@ -75,3 +75,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
|
|
|
75
75
|
*/
|
|
76
76
|
|
|
77
77
|
export { AngularIbanModule, IbanFormatterPipe, IbanValidatorDirective, ValidatorService };
|
|
78
|
+
//# sourceMappingURL=angular-iban.mjs.map
|
|
79
|
+
//# sourceMappingURL=angular-iban.mjs.map
|
|
@@ -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';\nimport * as IBAN from 'iban';\n\nexport class ValidatorService {\n\n static validateIban(c: AbstractControl): ValidationErrors {\n if (c.value && !IBAN.isValid(c.value)) {\n return {iban: {value: c.value}};\n }\n\n return null as any;\n }\n}\n","import { Directive } from '@angular/core';\nimport {NG_VALIDATORS, Validator, AbstractControl} from '@angular/forms';\nimport {ValidatorService} from '../services/validator.service';\n\n@Directive({\n selector: '[ibanValidator]',\n providers: [{provide: NG_VALIDATORS, useExisting: IbanValidatorDirective, multi: true}]\n})\nexport class IbanValidatorDirective implements Validator {\n validate(c: AbstractControl): { [key: string]: any } {\n return ValidatorService.validateIban(c);\n }\n}\n","import { Pipe, PipeTransform } from '@angular/core';\nimport * as IBAN from 'iban';\n\n@Pipe({\n name: 'ibanFormatter'\n})\nexport class IbanFormatterPipe implements PipeTransform {\n\n transform(value: any, args?: any): any {\n if (IBAN.isValid(value)) {\n return IBAN.printFormat(value, ' ');\n }\n return value;\n }\n\n}\n","import { NgModule } from '@angular/core';\
|
|
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';\nimport * as IBAN from 'iban';\n\nexport class ValidatorService {\n\n static validateIban(c: AbstractControl): ValidationErrors {\n if (c.value && !IBAN.isValid(c.value)) {\n return {iban: {value: c.value}};\n }\n\n return null as any;\n }\n}\n","import { Directive } from '@angular/core';\nimport { NG_VALIDATORS, Validator, AbstractControl } from '@angular/forms';\nimport { ValidatorService } from '../services/validator.service';\n\n@Directive({\n selector: '[ibanValidator]',\n providers: [{provide: NG_VALIDATORS, useExisting: IbanValidatorDirective, multi: true}]\n})\nexport class IbanValidatorDirective implements Validator {\n validate(c: AbstractControl): { [key: string]: any } {\n return ValidatorService.validateIban(c);\n }\n}\n","import { Pipe, PipeTransform } from '@angular/core';\nimport * as IBAN from 'iban';\n\n@Pipe({\n name: 'ibanFormatter'\n})\nexport class IbanFormatterPipe implements PipeTransform {\n\n transform(value: any, args?: any): any {\n if (IBAN.isValid(value)) {\n return IBAN.printFormat(value, ' ');\n }\n return value;\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { IbanValidatorDirective } from './directives/iban-validator.directive';\nimport { IbanFormatterPipe } from './pipes/iban-formatter.pipe';\n\n@NgModule({\n declarations: [\n IbanValidatorDirective,\n IbanFormatterPipe\n ],\n imports: [\n ],\n exports: [\n IbanValidatorDirective,\n IbanFormatterPipe,\n ]\n})\nexport class AngularIbanModule { }\n","/*\n * Public API Surface of angular-iban\n */\n\nexport * from './lib/angular-iban.module';\nexport * from './lib/services/validator.service';\nexport * from './lib/directives/iban-validator.directive';\nexport * from './lib/pipes/iban-formatter.pipe';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAGa,gBAAgB,CAAA;IAE3B,OAAO,YAAY,CAAC,CAAkB,EAAA;AACpC,QAAA,IAAI,CAAC,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE;YACrC,OAAO,EAAC,IAAI,EAAE,EAAC,KAAK,EAAE,CAAC,CAAC,KAAK,EAAC,EAAC,CAAC;AACjC,SAAA;AAED,QAAA,OAAO,IAAW,CAAC;KACpB;AACF;;MCJY,sBAAsB,CAAA;AACjC,IAAA,QAAQ,CAAC,CAAkB,EAAA;AACzB,QAAA,OAAO,gBAAgB,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;KACzC;;mHAHU,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAtB,sBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,sBAAsB,EAFtB,QAAA,EAAA,iBAAA,EAAA,SAAA,EAAA,CAAC,EAAC,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,sBAAsB,EAAE,KAAK,EAAE,IAAI,EAAC,CAAC,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;2FAE5E,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAJlC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,iBAAiB;AAC3B,oBAAA,SAAS,EAAE,CAAC,EAAC,OAAO,EAAE,aAAa,EAAE,WAAW,EAAA,sBAAwB,EAAE,KAAK,EAAE,IAAI,EAAC,CAA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ACfD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -17,9 +17,9 @@ class IbanValidatorDirective {
|
|
|
17
17
|
return ValidatorService.validateIban(c);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
IbanValidatorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
21
|
-
IbanValidatorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
20
|
+
IbanValidatorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: IbanValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
21
|
+
IbanValidatorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.1", type: IbanValidatorDirective, selector: "[ibanValidator]", providers: [{ provide: NG_VALIDATORS, useExisting: IbanValidatorDirective, multi: true }], ngImport: i0 });
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: IbanValidatorDirective, decorators: [{
|
|
23
23
|
type: Directive,
|
|
24
24
|
args: [{
|
|
25
25
|
selector: '[ibanValidator]',
|
|
@@ -35,9 +35,9 @@ class IbanFormatterPipe {
|
|
|
35
35
|
return value;
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
IbanFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
39
|
-
IbanFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "
|
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
38
|
+
IbanFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: IbanFormatterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
39
|
+
IbanFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.1", ngImport: i0, type: IbanFormatterPipe, name: "ibanFormatter" });
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: IbanFormatterPipe, decorators: [{
|
|
41
41
|
type: Pipe,
|
|
42
42
|
args: [{
|
|
43
43
|
name: 'ibanFormatter'
|
|
@@ -46,12 +46,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
|
|
|
46
46
|
|
|
47
47
|
class AngularIbanModule {
|
|
48
48
|
}
|
|
49
|
-
AngularIbanModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
50
|
-
AngularIbanModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
49
|
+
AngularIbanModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: AngularIbanModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
50
|
+
AngularIbanModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.1", ngImport: i0, type: AngularIbanModule, declarations: [IbanValidatorDirective,
|
|
51
51
|
IbanFormatterPipe], exports: [IbanValidatorDirective,
|
|
52
52
|
IbanFormatterPipe] });
|
|
53
|
-
AngularIbanModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
54
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
53
|
+
AngularIbanModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: AngularIbanModule });
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: AngularIbanModule, decorators: [{
|
|
55
55
|
type: NgModule,
|
|
56
56
|
args: [{
|
|
57
57
|
declarations: [
|
|
@@ -75,3 +75,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
|
|
|
75
75
|
*/
|
|
76
76
|
|
|
77
77
|
export { AngularIbanModule, IbanFormatterPipe, IbanValidatorDirective, ValidatorService };
|
|
78
|
+
//# sourceMappingURL=angular-iban.mjs.map
|
|
79
|
+
//# sourceMappingURL=angular-iban.mjs.map
|
|
@@ -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';\nimport * as IBAN from 'iban';\n\nexport class ValidatorService {\n\n static validateIban(c: AbstractControl): ValidationErrors {\n if (c.value && !IBAN.isValid(c.value)) {\n return {iban: {value: c.value}};\n }\n\n return null as any;\n }\n}\n","import { Directive } from '@angular/core';\nimport {NG_VALIDATORS, Validator, AbstractControl} from '@angular/forms';\nimport {ValidatorService} from '../services/validator.service';\n\n@Directive({\n selector: '[ibanValidator]',\n providers: [{provide: NG_VALIDATORS, useExisting: IbanValidatorDirective, multi: true}]\n})\nexport class IbanValidatorDirective implements Validator {\n validate(c: AbstractControl): { [key: string]: any } {\n return ValidatorService.validateIban(c);\n }\n}\n","import { Pipe, PipeTransform } from '@angular/core';\nimport * as IBAN from 'iban';\n\n@Pipe({\n name: 'ibanFormatter'\n})\nexport class IbanFormatterPipe implements PipeTransform {\n\n transform(value: any, args?: any): any {\n if (IBAN.isValid(value)) {\n return IBAN.printFormat(value, ' ');\n }\n return value;\n }\n\n}\n","import { NgModule } from '@angular/core';\
|
|
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';\nimport * as IBAN from 'iban';\n\nexport class ValidatorService {\n\n static validateIban(c: AbstractControl): ValidationErrors {\n if (c.value && !IBAN.isValid(c.value)) {\n return {iban: {value: c.value}};\n }\n\n return null as any;\n }\n}\n","import { Directive } from '@angular/core';\nimport { NG_VALIDATORS, Validator, AbstractControl } from '@angular/forms';\nimport { ValidatorService } from '../services/validator.service';\n\n@Directive({\n selector: '[ibanValidator]',\n providers: [{provide: NG_VALIDATORS, useExisting: IbanValidatorDirective, multi: true}]\n})\nexport class IbanValidatorDirective implements Validator {\n validate(c: AbstractControl): { [key: string]: any } {\n return ValidatorService.validateIban(c);\n }\n}\n","import { Pipe, PipeTransform } from '@angular/core';\nimport * as IBAN from 'iban';\n\n@Pipe({\n name: 'ibanFormatter'\n})\nexport class IbanFormatterPipe implements PipeTransform {\n\n transform(value: any, args?: any): any {\n if (IBAN.isValid(value)) {\n return IBAN.printFormat(value, ' ');\n }\n return value;\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { IbanValidatorDirective } from './directives/iban-validator.directive';\nimport { IbanFormatterPipe } from './pipes/iban-formatter.pipe';\n\n@NgModule({\n declarations: [\n IbanValidatorDirective,\n IbanFormatterPipe\n ],\n imports: [\n ],\n exports: [\n IbanValidatorDirective,\n IbanFormatterPipe,\n ]\n})\nexport class AngularIbanModule { }\n","/*\n * Public API Surface of angular-iban\n */\n\nexport * from './lib/angular-iban.module';\nexport * from './lib/services/validator.service';\nexport * from './lib/directives/iban-validator.directive';\nexport * from './lib/pipes/iban-formatter.pipe';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport *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5
|
[key: string]: any;
|
|
6
6
|
};
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<IbanValidatorDirective, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<IbanValidatorDirective, "[ibanValidator]", never, {}, {}, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<IbanValidatorDirective, "[ibanValidator]", never, {}, {}, never, never, false, never>;
|
|
9
9
|
}
|
|
@@ -3,5 +3,5 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class IbanFormatterPipe implements PipeTransform {
|
|
4
4
|
transform(value: any, args?: any): any;
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<IbanFormatterPipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<IbanFormatterPipe, "ibanFormatter">;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IbanFormatterPipe, "ibanFormatter", false>;
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "angular-iban",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.0.0",
|
|
4
4
|
"description": "Angular directives and pipes for IBAN",
|
|
5
5
|
"author": "fundsaccess AG",
|
|
6
6
|
"repository": {
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"typescript"
|
|
17
17
|
],
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@angular/common": "^
|
|
20
|
-
"@angular/core": "^
|
|
19
|
+
"@angular/common": "^15.x",
|
|
20
|
+
"@angular/core": "^15.x",
|
|
21
21
|
"iban": "0.0.14"
|
|
22
22
|
},
|
|
23
23
|
"license": "MIT",
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
"esm2020": "esm2020/angular-iban.mjs",
|
|
30
30
|
"fesm2020": "fesm2020/angular-iban.mjs",
|
|
31
31
|
"fesm2015": "fesm2015/angular-iban.mjs",
|
|
32
|
-
"typings": "
|
|
32
|
+
"typings": "index.d.ts",
|
|
33
33
|
"exports": {
|
|
34
34
|
"./package.json": {
|
|
35
35
|
"default": "./package.json"
|
|
36
36
|
},
|
|
37
37
|
".": {
|
|
38
|
-
"types": "./
|
|
38
|
+
"types": "./index.d.ts",
|
|
39
39
|
"esm2020": "./esm2020/angular-iban.mjs",
|
|
40
40
|
"es2020": "./fesm2020/angular-iban.mjs",
|
|
41
41
|
"es2015": "./fesm2015/angular-iban.mjs",
|