Skip to content

Commit 3841f9f

Browse files
committed
fix(lib): upgraded angular material to v12
1 parent 3372be8 commit 3841f9f

10 files changed

+26
-24
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
src="https://cdn.jsdelivr.net/gh/angular-material-extensions/password-strength@master/assets/angular-material-extensions-logo.svg">
55
</p>
66

7-
# @angular-material-extensions/password-strength - Material password strength meter to indicate how secure is the provided password - Angular V11 supported incl. schematics
7+
# @angular-material-extensions/password-strength - Material password strength meter to indicate how secure is the provided password - Angular V12 supported incl. schematics
88

99
[![npm version](https://badge.fury.io/js/%40angular-material-extensions%2Fpassword-strength.svg)](https://badge.fury.io/js/%40angular-material-extensions%2Fpassword-strength)
1010
[![npm demo](https://img.shields.io/badge/demo-online-ed1c46.svg)](https://angular-material-extensions.github.io/password-strength)
@@ -99,7 +99,7 @@ View all the directives and components in action at [https://angular-material-ex
9999
<a name="dependencies"/>
100100

101101
## Dependencies
102-
* [Angular](https://angular.io) developed and tested with `11.x`
102+
* [Angular](https://angular.io) developed and tested with `12.x`
103103

104104
---
105105

@@ -542,4 +542,4 @@ This project is supported by [jetbrains](https://www.jetbrains.com/) with 1 ALL
542542

543543
## License
544544

545-
Copyright (c) 2019-2020 [Anthony Nahas](https://github.com/AnthonyNahas). Licensed under the MIT License (MIT)
545+
Copyright (c) 2019-2021 [Anthony Nahas](https://github.com/AnthonyNahas). Licensed under the MIT License (MIT)

projects/angular-material-extensions/password-strength/node_modules/.cache/ng-packagr-styles/content-v2/sha512/3c/12/c37c3595101334999f5057edd0d128166a0ee5fe11dbfa0af55d20800c10f9c17c9463c21d9e07fb8a5ee8fd9f2fad7b73c345abd87bd5c6454a92264f71

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

projects/angular-material-extensions/password-strength/node_modules/.cache/ng-packagr-styles/content-v2/sha512/bd/04/d10535ccac1b28a6844d86989c679885bd47e6f622321d09ea7604682b1ba0951d77c35adc68291e4433345441f587e64e16f6c75244943d1e743e1a5c45

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

projects/angular-material-extensions/password-strength/node_modules/.cache/ng-packagr-styles/content-v2/sha512/cf/83/e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e

Whitespace-only changes.

projects/angular-material-extensions/password-strength/node_modules/.cache/ng-packagr-styles/index-v5/1e/96/4f6d74f0c3bce103469050d19928d7924bf9d7b65dafd9719f867a041165

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

projects/angular-material-extensions/password-strength/node_modules/.cache/ng-packagr-styles/index-v5/cd/86/9a2960b7274b19da505a736ffd99b65f4d478c05c6ef181a58d782445370

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

projects/angular-material-extensions/password-strength/node_modules/.cache/ng-packagr-styles/index-v5/d5/6f/ffcee3b10023f65001a1e3b43937d0939d1f0dbe1a569c63322714391a69

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

projects/angular-material-extensions/password-strength/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@
4747
"test:watch": "../../../node_modules/.bin/jest --coverage --watch"
4848
},
4949
"peerDependencies": {
50-
"@angular/common": "^11.0.2",
51-
"@angular/core": "^11.0.2",
52-
"@angular/forms": "^11.0.2",
53-
"@angular/cdk": "^11.0.0",
54-
"@angular/material": "^11.0.0"
50+
"@angular/common": "^12.x",
51+
"@angular/core": "^12.x",
52+
"@angular/forms": "^12.x",
53+
"@angular/cdk": "^12.x",
54+
"@angular/material": "^12.x"
5555
},
5656
"engines": {
57-
"node": ">=10.13"
57+
"node": ">=12"
5858
},
5959
"release-it": {
6060
"github": {

projects/angular-material-extensions/password-strength/src/lib/component/mat-pass-toggle-visibility/mat-pass-toggle-visibility.component.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import {Component, Input, ViewEncapsulation} from '@angular/core';
22

3-
type Type = 'text' | 'password' ;
4-
53
@Component({
64
selector: 'mat-pass-toggle-visibility',
75
templateUrl: './mat-pass-toggle-visibility.component.html',
@@ -12,11 +10,10 @@ export class MatPassToggleVisibilityComponent {
1210

1311
@Input()
1412
isVisible: boolean;
13+
1514
@Input()
1615
tabindex?: string;
1716

18-
_type: Type = 'text';
19-
2017
get type() {
2118
return this.isVisible ? 'text' : 'password';
2219
}

projects/angular-material-extensions/password-strength/src/lib/mat-password-strength.module.ts

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,16 @@ import {MatRippleModule} from '@angular/material/core';
55
import {MatCardModule} from '@angular/material/card';
66
import {MatIconModule} from '@angular/material/icon';
77

8-
import {MatPasswordStrengthComponent} from './component/mat-password-strength/mat-password-strength.component';
9-
import {MatPasswordStrengthInfoComponent} from './component/mat-password-strength-info/mat-password-strength-info.component';
10-
import {MatPassToggleVisibilityComponent} from './component/mat-pass-toggle-visibility/mat-pass-toggle-visibility.component';
8+
import {MatPassToggleVisibilityComponent, MatPasswordStrengthComponent, MatPasswordStrengthInfoComponent} from './component';
119

1210

1311
// Export module's public API
14-
export {MatPasswordStrengthComponent} from './component/mat-password-strength/mat-password-strength.component';
15-
export {
16-
MatPasswordStrengthInfoComponent
17-
} from './component/mat-password-strength-info/mat-password-strength-info.component';
18-
export {MatPassToggleVisibilityComponent} from './component/mat-pass-toggle-visibility/mat-pass-toggle-visibility.component';
19-
export {MatPasswordStrengthValidator} from './validator/mat-password-strength-validator';
12+
// export {MatPasswordStrengthComponent} from './component/mat-password-strength/mat-password-strength.component';
13+
// export {
14+
// MatPasswordStrengthInfoComponent
15+
// } from './component/mat-password-strength-info/mat-password-strength-info.component';
16+
// export {MatPassToggleVisibilityComponent} from './component/mat-pass-toggle-visibility/mat-pass-toggle-visibility.component';
17+
// export {MatPasswordStrengthValidator} from './validator/mat-password-strength-validator';
2018
// validator
2119
export {RegExpValidator} from './validator/regexp.class';
2220

@@ -37,8 +35,7 @@ export {RegExpValidator} from './validator/regexp.class';
3735
MatPasswordStrengthComponent,
3836
MatPasswordStrengthInfoComponent,
3937
MatPassToggleVisibilityComponent
40-
],
41-
entryComponents: [MatPassToggleVisibilityComponent]
38+
]
4239
})
4340
export class MatPasswordStrengthModule {
4441
static forRoot(): ModuleWithProviders<MatPasswordStrengthModule> {

0 commit comments

Comments
 (0)