Skip to content

Commit d41097a

Browse files
committed
Merge master into skrastev/hgrid-row-pinning
2 parents aff72cd + c105ddb commit d41097a

File tree

136 files changed

+5464
-4344
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+5464
-4344
lines changed

package-lock.json

+2,383-1,773
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+16-16
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"build:migration": "gulp copyMigrations && tsc --listEmittedFiles --project ./projects/igniteui-angular/migrations/tsconfig.json",
2727
"build:schematics": "gulp copySchematics && tsc --listEmittedFiles --project ./projects/igniteui-angular/schematics/tsconfig.json",
2828
"build:docs": "sassdoc projects/igniteui-angular/src/lib/core/styles && gulp typedocBuildTheme",
29-
"lint:lib": "tslint 'projects/igniteui-angular/src/**/*.ts' && stylelint 'projects/igniteui-angular/src/lib/core/styles'",
29+
"lint:lib": "tslint 'projects/igniteui-angular/src/**/*.ts' && stylelint \"projects/igniteui-angular/src/lib/core/styles\"",
3030
"typedoc:dev": "gulp typedocServe",
3131
"typedoc-build:export": "gulp exportTypedocJson ",
3232
"typedoc-build:import": "gulp importTypedocJson",
@@ -44,14 +44,14 @@
4444
},
4545
"private": true,
4646
"dependencies": {
47-
"@angular/animations": "^9.0.0",
48-
"@angular/common": "^9.0.0",
49-
"@angular/compiler": "^9.0.0",
50-
"@angular/core": "^9.0.0",
51-
"@angular/forms": "^9.0.0",
52-
"@angular/platform-browser": "^9.0.0",
53-
"@angular/platform-browser-dynamic": "^9.0.0",
54-
"@angular/router": "^9.0.0",
47+
"@angular/animations": "^9.1.0",
48+
"@angular/common": "^9.1.0",
49+
"@angular/compiler": "^9.1.0",
50+
"@angular/core": "^9.1.0",
51+
"@angular/forms": "^9.1.0",
52+
"@angular/platform-browser": "^9.1.0",
53+
"@angular/platform-browser-dynamic": "^9.1.0",
54+
"@angular/router": "^9.1.0",
5555
"@types/hammerjs": "^2.0.36",
5656
"@types/source-map": "0.5.2",
5757
"classlist.js": "^1.1.20150312",
@@ -65,12 +65,12 @@
6565
"zone.js": "~0.10.2"
6666
},
6767
"devDependencies": {
68-
"@angular-devkit/build-angular": "~0.900.1",
69-
"@angular-devkit/build-ng-packagr": "~0.900.1",
70-
"@angular-devkit/schematics": "^9.0.1",
71-
"@angular/cli": "~9.0.1",
72-
"@angular/compiler-cli": "^9.0.0",
73-
"@angular/language-service": "^9.0.0",
68+
"@angular-devkit/build-angular": "~0.901.0",
69+
"@angular-devkit/build-ng-packagr": "~0.901.0",
70+
"@angular-devkit/schematics": "^9.1.0",
71+
"@angular/cli": "~9.1.0",
72+
"@angular/compiler-cli": "^9.1.0",
73+
"@angular/language-service": "^9.1.0",
7474
"@angularclass/hmr": "^2.1.3",
7575
"@types/jasmine": "~3.3.5",
7676
"@types/jasminewd2": "~2.0.6",
@@ -91,7 +91,7 @@
9191
"gulp-util": "^3.0.8",
9292
"hammer-simulator": "0.0.1",
9393
"igniteui-sassdoc-theme": "^1.1.2",
94-
"igniteui-typedoc-theme": "^1.3.1",
94+
"igniteui-typedoc-theme": "^1.3.2",
9595
"jasmine": "~3.4.0",
9696
"jasmine-core": "~3.4.0",
9797
"jasmine-spec-reporter": "~4.2.1",

projects/igniteui-angular/src/lib/avatar/avatar.component.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@ describe('Avatar', () => {
8181
instance.size = IgxAvatarSize.MEDIUM;
8282
fixture.detectChanges();
8383
expect(instance.size).toEqual(IgxAvatarSize.MEDIUM);
84-
expect(hostEl.classList).not.toContain(classes.medium);
84+
expect(hostEl.classList).toContain(classes.medium);
8585

8686
instance.size = IgxAvatarSize.LARGE;
8787
fixture.detectChanges();
8888
expect(instance.size).toEqual(IgxAvatarSize.LARGE);
89-
expect(hostEl.classList).not.toContain(classes.large);
89+
expect(hostEl.classList).toContain(classes.large);
9090

9191
instance.size = 'nonsense' as any;
9292
fixture.detectChanges();

projects/igniteui-angular/src/lib/avatar/avatar.component.ts

+36-14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { CommonModule } from '@angular/common';
22
import {
3-
AfterViewInit,
43
Component,
54
ElementRef,
65
HostBinding,
@@ -53,7 +52,7 @@ export enum IgxAvatarType {
5352
selector: 'igx-avatar',
5453
templateUrl: 'avatar.component.html'
5554
})
56-
export class IgxAvatarComponent implements OnInit, AfterViewInit {
55+
export class IgxAvatarComponent implements OnInit {
5756

5857
/**
5958
* This is a reference to the avatar image element in the DOM.
@@ -160,9 +159,9 @@ export class IgxAvatarComponent implements OnInit, AfterViewInit {
160159
* Sets the color of the avatar's initials or icon.
161160
*
162161
* @example
163-
*```html
164-
*<igx-avatar color="blue"></igx-avatar>
165-
*```
162+
* ```html
163+
* <igx-avatar color="blue"></igx-avatar>
164+
* ```
166165
*/
167166

168167
@HostBinding('style.color')
@@ -256,6 +255,22 @@ export class IgxAvatarComponent implements OnInit, AfterViewInit {
256255
}
257256
}
258257

258+
/** @hidden @internal */
259+
@HostBinding('class.igx-avatar--small')
260+
get _isSmallSize(): boolean {
261+
return this.size === 'small';
262+
}
263+
/** @hidden @internal */
264+
@HostBinding('class.igx-avatar--medium')
265+
get _isMediumSize(): boolean {
266+
return this.size === 'medium';
267+
}
268+
/** @hidden @internal */
269+
@HostBinding('class.igx-avatar--large')
270+
get _isLargeSize(): boolean {
271+
return this.size === 'large';
272+
}
273+
259274
/**
260275
* Returns the type of the avatar.
261276
*
@@ -280,6 +295,22 @@ export class IgxAvatarComponent implements OnInit, AfterViewInit {
280295
return IgxAvatarType.CUSTOM;
281296
}
282297

298+
/** @hidden @internal */
299+
@HostBinding('class.igx-avatar--image')
300+
get _isImageType(): boolean {
301+
return this.type === IgxAvatarType.IMAGE;
302+
}
303+
/** @hidden @internal */
304+
@HostBinding('class.igx-avatar--icon')
305+
get _isIconType(): boolean {
306+
return this.type === IgxAvatarType.ICON;
307+
}
308+
/** @hidden @internal */
309+
@HostBinding('class.igx-avatar--initials')
310+
get _isInitialsType(): boolean {
311+
return this.type === IgxAvatarType.INITIALS;
312+
}
313+
283314
/**
284315
* Returns the template of the avatar.
285316
*
@@ -306,15 +337,6 @@ export class IgxAvatarComponent implements OnInit, AfterViewInit {
306337
this.roleDescription = this.getRole();
307338
}
308339

309-
/** @hidden @internal */
310-
public ngAfterViewInit() {
311-
if (this.type !== IgxAvatarType.CUSTOM) {
312-
this.elementRef.nativeElement.classList.add(`igx-avatar--${this.type}`);
313-
}
314-
315-
this.elementRef.nativeElement.classList.add(`igx-avatar--${this._size}`);
316-
}
317-
318340
/** @hidden @internal */
319341
private getRole(): string {
320342
switch (this.type) {

projects/igniteui-angular/src/lib/badge/badge.component.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export enum IgxBadgeType {
4242
})
4343
export class IgxBadgeComponent {
4444

45-
/**
45+
/**
4646
* Sets/gets the `id` of the badge.
4747
*
4848
* @remarks
@@ -57,7 +57,7 @@ export class IgxBadgeComponent {
5757
@Input()
5858
public id = `igx-badge-${NEXT_ID++}`;
5959

60-
/**
60+
/**
6161
* Sets/gets the type of the badge.
6262
*
6363
* @remarks
@@ -72,7 +72,7 @@ export class IgxBadgeComponent {
7272
@Input()
7373
public type: string | IgxBadgeType = IgxBadgeType.PRIMARY;
7474

75-
/**
75+
/**
7676
* Sets/gets the value to be displayed inside the badge.
7777
*
7878
* @remarks

0 commit comments

Comments
 (0)