Skip to content

Commit

Permalink
Changing directives/components names, related to IgniteUI#536
Browse files Browse the repository at this point in the history
  • Loading branch information
ddincheva committed Feb 8, 2018
2 parents 64d441b + d8b227d commit 1b5a5b8
Show file tree
Hide file tree
Showing 81 changed files with 964 additions and 768 deletions.
46 changes: 46 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"angular2-template-loader": "^0.6.2",
"autoprefixer": "^7.2.5",
"awesome-typescript-loader": "^3.4.1",
"codelyzer": "^4.1.0",
"coveralls": "^3.0.0",
"concurrently": "^3.5.1",
"css-loader": "^0.28.8",
Expand Down
56 changes: 28 additions & 28 deletions src/avatar/avatar.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,27 @@ import {
TestBed
} from "@angular/core/testing";
import { By } from "@angular/platform-browser";
import { IgxIcon, IgxIconModule } from "../icon/icon.component";
import { IgxAvatar, IgxAvatarModule } from "./avatar.component";
import { IgxIconComponent, IgxIconModule } from "../icon/icon.component";
import { IgxAvatarComponent, IgxAvatarModule } from "./avatar.component";

describe("Avatar", () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
InitAvatar,
AvatarWithAttribs,
IgxAvatar,
IgxIcon,
InitIconAvatar,
InitImageAvatar,
InitAvatarWithAria
InitAvatarComponent,
AvatarWithAttribsComponent,
IgxAvatarComponent,
IgxIconComponent,
InitIconAvatarComponent,
InitImageAvatarComponent,
InitAvatarWithAriaComponent
]
})
.compileComponents();
}));

it("Initializes avatar with initials", () => {
const fixture = TestBed.createComponent(InitAvatar);
const fixture = TestBed.createComponent(InitAvatarComponent);
fixture.detectChanges();
const avatar = fixture.componentInstance.avatar;

Expand All @@ -35,7 +35,7 @@ describe("Avatar", () => {
});

it("Initializes bound avatar with initials", () => {
const fixture = TestBed.createComponent(AvatarWithAttribs);
const fixture = TestBed.createComponent(AvatarWithAttribsComponent);
fixture.detectChanges();
const avatar = fixture.componentInstance.avatar;

Expand All @@ -45,7 +45,7 @@ describe("Avatar", () => {
expect(avatar.isRounded).toBeTruthy();
});
it("Initializes icon avatar", () => {
const fixture = TestBed.createComponent(InitIconAvatar);
const fixture = TestBed.createComponent(InitIconAvatarComponent);
fixture.detectChanges();
const avatar = fixture.componentInstance.avatar;
const spanEl = avatar.elementRef.nativeElement.getElementsByClassName("igx-avatar--icon");
Expand All @@ -64,7 +64,7 @@ describe("Avatar", () => {
});

it("Initializes image avatar with src element", () => {
const fixture = TestBed.createComponent(InitImageAvatar);
const fixture = TestBed.createComponent(InitImageAvatarComponent);
fixture.detectChanges();
const avatar = fixture.componentInstance.avatar;

Expand All @@ -82,7 +82,7 @@ describe("Avatar", () => {
});

it("Should set ARIA attributes.", () => {
const fixture = TestBed.createComponent(InitAvatarWithAria);
const fixture = TestBed.createComponent(InitAvatarWithAriaComponent);
fixture.detectChanges();
const avatar = fixture.componentInstance.avatar;

Expand All @@ -97,44 +97,44 @@ describe("Avatar", () => {
template: `<igx-avatar initials="PP" size="medium" roundShape="false"
bgColor="paleturquoise">
</igx-avatar>`})
class InitAvatar {
@ViewChild(IgxAvatar) public avatar: IgxAvatar;
class InitAvatarComponent {
@ViewChild(IgxAvatarComponent) public avatar: IgxAvatarComponent;
}

@Component({
template: `<igx-avatar [initials]="initials" [bgColor]="bgColor" size="small"
[roundShape]="roundShape"></igx-avatar>`})
class AvatarWithAttribs {
@ViewChild(IgxAvatar) public avatar: IgxAvatar;
class AvatarWithAttribsComponent {
@ViewChild(IgxAvatarComponent) public avatar: IgxAvatarComponent;

public initials: string = "ZK";
public bgColor: string = "lightblue";
public roundShape: string = "true";
public initials = "ZK";
public bgColor = "lightblue";
public roundShape = "true";
}

@Component({
template: `<igx-avatar roundShape="false" icon="person"
bgColor="#0375be" size="someIncorectSize">
</igx-avatar>`})
class InitIconAvatar {
@ViewChild(IgxAvatar) public avatar: IgxAvatar;
class InitIconAvatarComponent {
@ViewChild(IgxAvatarComponent) public avatar: IgxAvatarComponent;
}

@Component({
template: `<igx-avatar roundShape="true" bgColor="#0375be" size="large"
[src]="source">
</igx-avatar>`})
class InitImageAvatar {
@ViewChild(IgxAvatar) public avatar: IgxAvatar;
class InitImageAvatarComponent {
@ViewChild(IgxAvatarComponent) public avatar: IgxAvatarComponent;

// tslint:disable-next-line:max-line-length
public source: string = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxQTEhUUExQWFRUXFRcaFRgXFxcXFBcYFxQXFxcUFxcYHCggGBolHBQUITEhJSkrLi4uFx8zODMsNygtLiwBCgoKDg0OGhAQGi4kHyQsLCwsLCwsLSwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLP/AABEIAK4BIgMBIgACEQEDEQH/xAAbAAACAwEBAQAAAAAAAAAAAAACAwABBAcFBv/EADUQAAICAgADBQYFBAIDAAAAAAABAgMRIQQxQQYSUaPSE1NhcYHwM5GhseEWI8HxQ9EUInP/xAAaAQEBAQEBAQEAAAAAAAAAAAAAAQIDBAYF/8QAMBEBAAECAggEBgIDAAAAAAAAAAECEQNRBRITFCGhotEEFTFTFkGBsdLwQ2EGM1L/2gAMAwEAAhEDEQA/APp+Gj0Hxis8s66iKORppjyz9/UDNxkc70vvkLpo1k9HiK8pff2wa6l+XL4AL9k8LBdcceJqppx/I9UR/jIGateP/X+xtdOzXTw+dDLqsaQGZ0JFxoxyHxTfQdXHYGNQfUKNeDcoC5V8wAUC5LoFXF5I1sBeBiQfsw3EDJKP7GZ0tt6PSugDGIHnrhsfUaquhsjDJbrQGeFAFlKWcnoRgZ3Xlv5gZK68/IXZwia2up6NcNgSgB5tlWvzM74bK3k9WVWmLjD4AeNbw+G8pvwJGjevljw0ev7DYp1Yf3sDPVRjf7cgb6875ffM2NaWRUoged/42zNbQstPoz1FB5F8XVzesa+/2A8mzh8LWV/r9Aqac7+WH9P2NX34gVWY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62efW/p//9k=";

}

@Component({
template: `<igx-avatar initials="PP" size="medium">
</igx-avatar>`})
class InitAvatarWithAria {
@ViewChild(IgxAvatar) public avatar: IgxAvatar;
class InitAvatarWithAriaComponent {
@ViewChild(IgxAvatarComponent) public avatar: IgxAvatarComponent;
}
14 changes: 8 additions & 6 deletions src/avatar/avatar.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { CommonModule } from "@angular/common";
import {
AfterContentChecked,
AfterViewInit,
Component,
ElementRef,
Input,
Expand All @@ -22,12 +24,12 @@ export enum Size {
styleUrls: ["./avatar.component.scss"],
templateUrl: "avatar.component.html"
})
export class IgxAvatar {
export class IgxAvatarComponent implements AfterViewInit, AfterContentChecked {
@ViewChild("image") public image: ElementRef;
@Input() public initials: string;
@Input() public src: string;
@Input("roundShape") public roundShape: string = "false";
@Input() public color: string = "white";
@Input("roundShape") public roundShape = "false";
@Input() public color = "white";

public sizeEnum = Size;
public roleDescription: string;
Expand All @@ -36,7 +38,7 @@ export class IgxAvatar {

private _size: string;
private _bgColor: string;
private _icon: string = "android";
private _icon = "android";

@Input()
get size(): string {
Expand Down Expand Up @@ -133,8 +135,8 @@ export class IgxAvatar {
}

@NgModule({
declarations: [IgxAvatar],
exports: [IgxAvatar],
declarations: [IgxAvatarComponent],
exports: [IgxAvatarComponent],
imports: [CommonModule, IgxIconModule]
})
export class IgxAvatarModule { }
Loading

0 comments on commit 1b5a5b8

Please sign in to comment.