Skip to content

Commit

Permalink
Merge branch 'release/4.1.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
abalad committed Jun 26, 2019
2 parents ade5f02 + cb9a681 commit 6ecf834
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 16 deletions.
49 changes: 34 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"rxjs-compat": "^6.5.2",
"string-format": "^2.0.0",
"ts-md5": "^1.2.4",
"web-animations-js": "^2.3.1",
"web-animations-js": "^2.3.2",
"zone.js": "~0.9.1"
},
"peerDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ export class TlMessageValidationDirective implements AfterContentInit, AfterView
}

ngOnDestroy() {
this.remove();
this.subscription.unsubscribe();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ export class TlMessageValidationComponent {
private keyErrors = {
required: Function(),
minlength: Function(),
cnpj: Function(),
cpf: Function(),
email: Function(),
pattern: Function(),
invalidPasswordRuleDigits: Function(),
Expand Down Expand Up @@ -57,6 +59,8 @@ export class TlMessageValidationComponent {
const requiredLength = this.control.errors['minlength']['requiredLength'];
this.messages.push(format(this.i18n.getLocale().Validators.invalidMinLength, requiredLength));
},
cnpj: () => this.messages.push( this.i18n.getLocale().Validators.invalidCNPJ ),
cpf: () => this.messages.push( this.i18n.getLocale().Validators.invalidCPF ),
invalidPasswordRuleDigits: () => this.messages.push(this.i18n.getLocale().Validators.invalidPasswordRuleDigits),
invalidPasswordRuleUppercase: () => this.messages.push(this.i18n.getLocale().Validators.invalidPasswordRuleUppercase),
invalidPasswordRuleSpecial: () => this.messages.push(this.i18n.getLocale().Validators.invalidPasswordRuleSpecial),
Expand Down

0 comments on commit 6ecf834

Please sign in to comment.