Skip to content

Commit 865fc07

Browse files
committed
refactor(package): renamed the password to mat-password-strength
1 parent aad0b68 commit 865fc07

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

src/module/component/mat-password-strength-info/mat-password-strength-info.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import {async, ComponentFixture, TestBed} from '@angular/core/testing';
22

33
import {MatPasswordStrengthInfoComponent} from './mat-password-strength-info.component';
44
import {MatCardModule, MatIconModule} from '@angular/material';
5-
import {PasswordStrengthComponent} from '../ngx-material-password-strength/password-strength.component';
5+
import {MatPasswordStrengthComponent} from '../mat-password-strength/mat-password-strength.component';
66

77
describe('NgxMaterialPasswordStrengthInfoComponent', () => {
88
let component: MatPasswordStrengthInfoComponent;
99
let fixture: ComponentFixture<MatPasswordStrengthInfoComponent>;
10-
const passwordStrengthComponent: PasswordStrengthComponent = new PasswordStrengthComponent();
10+
const passwordStrengthComponent: MatPasswordStrengthComponent = new MatPasswordStrengthComponent();
1111

1212
beforeEach(async(() => {
1313
TestBed.configureTestingModule({

src/module/component/mat-password-strength-info/mat-password-strength-info.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Component, Input, OnInit} from '@angular/core';
2-
import {PasswordStrengthComponent} from '../ngx-material-password-strength/password-strength.component';
2+
import {MatPasswordStrengthComponent} from '../mat-password-strength/mat-password-strength.component';
33

44
@Component({
55
selector: 'mat-password-strength-info',
@@ -9,7 +9,7 @@ import {PasswordStrengthComponent} from '../ngx-material-password-strength/passw
99
export class MatPasswordStrengthInfoComponent implements OnInit {
1010

1111
@Input()
12-
passwordComponent: PasswordStrengthComponent;
12+
passwordComponent: MatPasswordStrengthComponent;
1313

1414
constructor() {
1515
}

src/module/component/ngx-material-password-strength/password-strength.component.html renamed to src/module/component/mat-password-strength/mat-password-strength.component.html

File renamed without changes.

src/module/component/ngx-material-password-strength/password-strength.component.scss renamed to src/module/component/mat-password-strength/mat-password-strength.component.scss

File renamed without changes.

src/module/component/ngx-material-password-strength/password-strength.component.spec.ts renamed to src/module/component/mat-password-strength/mat-password-strength.component.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
22

3-
import {Colors, PasswordStrengthComponent} from './password-strength.component';
3+
import {Colors, MatPasswordStrengthComponent} from './mat-password-strength.component';
44
import {MatProgressBarModule} from '@angular/material';
55
import {SimpleChange} from '@angular/core';
66
import {NgxCombinationGeneratorService} from 'ngx-combination-generator';
77

88
describe('PasswordStrengthComponent', () => {
9-
let component: PasswordStrengthComponent;
10-
let fixture: ComponentFixture<PasswordStrengthComponent>;
9+
let component: MatPasswordStrengthComponent;
10+
let fixture: ComponentFixture<MatPasswordStrengthComponent>;
1111
const generator = new NgxCombinationGeneratorService();
1212

1313
beforeEach(async(() => {
1414
TestBed.configureTestingModule({
1515
imports: [MatProgressBarModule],
16-
declarations: [PasswordStrengthComponent]
16+
declarations: [MatPasswordStrengthComponent]
1717
})
1818
.compileComponents();
1919
}));
2020

2121
beforeEach(() => {
22-
fixture = TestBed.createComponent(PasswordStrengthComponent);
22+
fixture = TestBed.createComponent(MatPasswordStrengthComponent);
2323
component = fixture.componentInstance;
2424
fixture.detectChanges();
2525
});

src/module/component/ngx-material-password-strength/password-strength.component.ts renamed to src/module/component/mat-password-strength/mat-password-strength.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ export enum Criteria {
1616
}
1717

1818
@Component({
19-
selector: 'ngx-material-password-strength',
20-
templateUrl: './password-strength.component.html',
21-
styleUrls: ['./password-strength.component.scss']
19+
selector: 'mat-password-strength',
20+
templateUrl: './mat-password-strength.component.html',
21+
styleUrls: ['./mat-password-strength.component.scss']
2222
})
23-
export class PasswordStrengthComponent implements OnInit, OnChanges {
23+
export class MatPasswordStrengthComponent implements OnInit, OnChanges {
2424

2525
@Input()
2626
password: string;

src/module/mat-password-strength.module.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ import {CommonModule} from '@angular/common';
22
import {NgModule, ModuleWithProviders} from '@angular/core';
33
import {MatCardModule, MatIconModule, MatProgressBarModule} from '@angular/material';
44

5-
import {PasswordStrengthComponent} from './component/ngx-material-password-strength/password-strength.component';
5+
import {MatPasswordStrengthComponent} from './component/mat-password-strength/mat-password-strength.component';
66
import {
77
MatPasswordStrengthInfoComponent
88
} from './component/mat-password-strength-info/mat-password-strength-info.component';
99

1010
// Export module's public API
11-
export {PasswordStrengthComponent} from './component/ngx-material-password-strength/password-strength.component';
11+
export {MatPasswordStrengthComponent} from './component/mat-password-strength/mat-password-strength.component';
1212
export {
1313
MatPasswordStrengthInfoComponent
1414
} from './component/mat-password-strength-info/mat-password-strength-info.component';
@@ -21,8 +21,8 @@ export {
2121
MatCardModule,
2222
MatIconModule
2323
],
24-
exports: [PasswordStrengthComponent, MatPasswordStrengthInfoComponent],
25-
declarations: [PasswordStrengthComponent, MatPasswordStrengthInfoComponent]
24+
exports: [MatPasswordStrengthComponent, MatPasswordStrengthInfoComponent],
25+
declarations: [MatPasswordStrengthComponent, MatPasswordStrengthInfoComponent]
2626
})
2727
export class MatPasswordStrengthModule {
2828
static forRoot(): ModuleWithProviders {

0 commit comments

Comments
 (0)