Skip to content

Commit

Permalink
chore(): upgrade to @angular@4.1.0 (#529)
Browse files Browse the repository at this point in the history
* chore(): upgrade to @angular@4.1.0

Also upgraded codelyzer to 3.0.0, added @angular/language-service, tslint to 5.1.0 and upgraded typescript to 2.3.1

* chore(yarn): updated yarn.lock with new dependencies

* chore(): update package.jsons from modules with 4.1.0

* fix(): fix lint errors
  • Loading branch information
emoralesb05 committed May 3, 2017
1 parent 7011d6b commit 78327a9
Show file tree
Hide file tree
Showing 19 changed files with 416 additions and 515 deletions.
33 changes: 17 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,18 @@
"Steven Ov <steven.ov@teradata.com>"
],
"dependencies": {
"@angular/animations": "^4.0.0",
"@angular/common": "^4.0.0",
"@angular/compiler": "^4.0.0",
"@angular/core": "^4.0.0",
"@angular/animations": "^4.1.0",
"@angular/common": "^4.1.0",
"@angular/compiler": "^4.1.0",
"@angular/core": "^4.1.0",
"@angular/flex-layout": "2.0.0-beta.7",
"@angular/forms": "^4.0.0",
"@angular/http": "^4.0.0",
"@angular/forms": "^4.1.0",
"@angular/http": "^4.1.0",
"@angular/material": "2.0.0-beta.3",
"@angular/platform-browser": "^4.0.0",
"@angular/platform-browser-dynamic": "^4.0.0",
"@angular/platform-server": "^4.0.0",
"@angular/router": "^4.0.0",
"@angular/platform-browser": "^4.1.0",
"@angular/platform-browser-dynamic": "^4.1.0",
"@angular/platform-server": "^4.1.0",
"@angular/router": "^4.1.0",
"@ngx-translate/core": "6.0.0",
"@ngx-translate/http-loader": "0.0.3",
"@swimlane/ngx-charts": "5.0.0",
Expand All @@ -77,16 +77,17 @@
"rxjs": "^5.2.0",
"showdown": "1.6.4",
"web-animations-js": "2.2.2",
"zone.js": "^0.8.5"
"zone.js": "^0.8.6"
},
"devDependencies": {
"@angular/cli": "1.0.0",
"@angular/compiler-cli": "^4.0.0",
"@angular/cli": "1.0.1",
"@angular/compiler-cli": "^4.1.0",
"@angular/language-service": "^4.1.0",
"@types/hammerjs": "^2.0.30",
"@types/jasmine": "2.5.38",
"@types/node": "~6.0.60",
"@types/selenium-webdriver": "^2.52.0",
"codelyzer": "~2.0.0",
"codelyzer": "~3.0.0",
"coveralls": "^2.12.0",
"glob": "^6.0.4",
"gulp": "3.9.1",
Expand Down Expand Up @@ -116,7 +117,7 @@
"rollup-plugin-node-resolve": "2.0.0",
"semver": "5.2.0",
"ts-node": "~2.0.0",
"tslint": "^4.5.1",
"typescript": "^2.1.6"
"tslint": "^5.1.0",
"typescript": "^2.3.1"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ export class FileUploadDemoComponent {

selectEvent(file: File): void {
this.fileSelectMsg = file.name;
};
}

uploadEvent(file: File): void {
this.fileUploadMsg = file.name;
};
}

selectMultipleEvent(files: FileList | File): void {
if (files instanceof FileList) {
Expand Down
2 changes: 1 addition & 1 deletion src/platform/core/chips/chips.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export class TdChipsComponent implements ControlValueAccessor, DoCheck, OnInit {
}
}
}
get value(): any { return this._value; };
get value(): any { return this._value; }

ngOnInit(): void {
this.inputControl.valueChanges
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ export class TdMaxValidator implements Validator {

validate(c: AbstractControl): {[key: string]: any} {
return this._validator(c);
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ export class TdMinValidator implements Validator {

validate(c: AbstractControl): {[key: string]: any} {
return this._validator(c);
};
}
}
4 changes: 2 additions & 2 deletions src/platform/core/common/forms/validators/validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class CovalentValidators {
undefined;
};
return func;
};
}

static max(maxValue: any): ValidatorFn {
let func: ValidatorFn = (c: AbstractControl): {[key: string]: any} => {
Expand All @@ -25,7 +25,7 @@ export class CovalentValidators {
undefined;
};
return func;
};
}

static numberRequired(c: AbstractControl): {[key: string]: any} {
return (Number.isNaN(c.value)) ?
Expand Down
8 changes: 4 additions & 4 deletions src/platform/core/data-table/data-table.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const TD_DATA_TABLE_CONTROL_VALUE_ACCESSOR: any = {
export enum TdDataTableSortingOrder {
Ascending = <any>'ASC',
Descending = <any>'DESC',
};
}

export interface ITdDataTableColumn {
name: string;
Expand All @@ -28,12 +28,12 @@ export interface ITdDataTableColumn {
format?: (value: any) => any;
nested?: boolean;
sortable?: boolean;
};
}

export interface ITdDataTableSelectEvent {
row: any;
selected: boolean;
};
}

export interface ITdDataTableSelectAllEvent {
rows: any[];
Expand Down Expand Up @@ -81,7 +81,7 @@ export class TdDataTableComponent implements ControlValueAccessor, AfterContentI
this.refresh();
}
}
get value(): any { return this._value; };
get value(): any { return this._value; }

/**
* uniqueId?: string
Expand Down
16 changes: 8 additions & 8 deletions src/platform/core/expansion-panel/expansion-panel.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ export class TdExpansionPanelComponent {
@Input('expand')
set expand(expand: boolean) {
this._setExpand(expand);
};
}
get expand(): boolean {
return this._expand;
};
}

/**
* disabled?: boolean
Expand All @@ -90,10 +90,10 @@ export class TdExpansionPanelComponent {
this._onCollapsed();
}
this._disabled = disabled;
};
}
get disabled(): boolean {
return this._disabled;
};
}

/**
* expanded?: function
Expand All @@ -112,7 +112,7 @@ export class TdExpansionPanelComponent {
*/
clickEvent(): void {
this._setExpand(!this._expand);
};
}

/**
* Toggle expand state of [TdExpansionPanelComponent]
Expand Down Expand Up @@ -156,13 +156,13 @@ export class TdExpansionPanelComponent {
return true;
}
return false;
};
}

private _onExpanded(): void {
this.expanded.emit(undefined);
};
}

private _onCollapsed(): void {
this.collapsed.emit(undefined);
};
}
}
2 changes: 1 addition & 1 deletion src/platform/core/file/file-input/file-input.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class TdFileInputComponent implements ControlValueAccessor {
private _value: FileList | File = undefined;

// get/set accessor (needed for ControlValueAccessor)
get value(): FileList | File { return this._value; };
get value(): FileList | File { return this._value; }
set value(v: FileList | File) {
if (v !== this._value) {
this._value = v;
Expand Down
10 changes: 5 additions & 5 deletions src/platform/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@
"@angular/material": "2.0.0-beta.3"
},
"peerDependencies": {
"@angular/common": "^4.0.0",
"@angular/core": "^4.0.0",
"@angular/forms": "^4.0.0",
"@angular/http": "^4.0.0",
"@angular/router": "^4.0.0"
"@angular/common": "^4.1.0",
"@angular/core": "^4.1.0",
"@angular/forms": "^4.1.0",
"@angular/http": "^4.1.0",
"@angular/router": "^4.1.0"
}
}
2 changes: 1 addition & 1 deletion src/platform/core/steps/step-body/step-body.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ export class TdStepBodyComponent {
*/
isComplete(): boolean {
return this.state === StepState.Complete;
};
}
}
4 changes: 2 additions & 2 deletions src/platform/core/steps/step-header/step-header.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ export class TdStepHeaderComponent {
*/
isComplete(): boolean {
return this.state === StepState.Complete;
};
}

/**
* Returns 'true' if [state] equals to [StepState.Required | 'required'], else 'false'.
*/
isRequired(): boolean {
return this.state === StepState.Required;
};
}
}
18 changes: 9 additions & 9 deletions src/platform/core/steps/step.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ export class TdStepComponent implements OnInit {
@Input('active')
set active(active: boolean) {
this._setActive(active);
};
}
get active(): boolean {
return this._active;
};
}

/**
* disabled?: boolean
Expand All @@ -92,10 +92,10 @@ export class TdStepComponent implements OnInit {
this._onDeactivated();
}
this._disabled = disabled;
};
}
get disabled(): boolean {
return this._disabled;
};
}

/**
* state?: StepState or ['none' | 'required' | 'complete']
Expand All @@ -115,7 +115,7 @@ export class TdStepComponent implements OnInit {
this._state = StepState.None;
break;
}
};
}
get state(): StepState {
return this._state;
}
Expand Down Expand Up @@ -167,7 +167,7 @@ export class TdStepComponent implements OnInit {
*/
isComplete(): boolean {
return this._state === StepState.Complete;
};
}

/**
* Method to change active state internally and emit the [onActivated] event if 'true' or [onDeactivated]
Expand All @@ -188,13 +188,13 @@ export class TdStepComponent implements OnInit {
return true;
}
return false;
};
}

private _onActivated(): void {
this.onActivated.emit(undefined);
};
}

private _onDeactivated(): void {
this.onDeactivated.emit(undefined);
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export abstract class AbstractControlValueAccessor implements ControlValueAccess
protected _value: any = undefined;

// get/set accessor (needed for ControlValueAccessor)
get value(): any { return this._value; };
get value(): any { return this._value; }
set value(v: any) {
if (v !== this._value) {
this._value = v;
Expand Down
4 changes: 2 additions & 2 deletions src/platform/highlight/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"highlight.js": "9.10.0"
},
"peerDependencies": {
"@angular/common": "^4.0.0",
"@angular/core": "^4.0.0"
"@angular/common": "^4.1.0",
"@angular/core": "^4.1.0"
}
}
4 changes: 2 additions & 2 deletions src/platform/http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"Steven Ov <steven.ov@teradata.com>"
],
"peerDependencies": {
"@angular/core": "^4.0.0",
"@angular/http": "^4.0.0"
"@angular/core": "^4.1.0",
"@angular/http": "^4.1.0"
}
}
4 changes: 2 additions & 2 deletions src/platform/markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"showdown": "1.6.4"
},
"peerDependencies": {
"@angular/common": "^4.0.0",
"@angular/core": "^4.0.0"
"@angular/common": "^4.1.0",
"@angular/core": "^4.1.0"
}
}
2 changes: 1 addition & 1 deletion tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
"no-string-literal": true,
"no-string-throw": true,
"no-switch-case-fall-through": true,
"no-trailing-whitespace": true,
"no-trailing-whitespace": false,
"no-unused-expression": true,
"no-use-before-declare": true,
"no-var-keyword": true,
Expand Down
Loading

0 comments on commit 78327a9

Please sign in to comment.