Skip to content

Commit d9cbc4b

Browse files
committed
upgrade angular version to 11.0.0
1 parent 0115366 commit d9cbc4b

File tree

13 files changed

+1810
-1671
lines changed

13 files changed

+1810
-1671
lines changed

angular.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"optimization": true,
4040
"outputHashing": "all",
4141
"sourceMap": false,
42-
"extractCss": true,
4342
"namedChunks": false,
4443
"extractLicenses": true,
4544
"vendorChunk": false,

package-lock.json

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

package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -49,36 +49,36 @@
4949
"private": false,
5050
"peerDependencies": {},
5151
"dependencies": {
52-
"@angular/common": "~10.1.2",
53-
"@angular/compiler": "~10.1.2",
54-
"@angular/core": "~10.1.2",
55-
"@angular/forms": "~10.1.2",
56-
"@angular/platform-browser": "~10.1.2",
57-
"@angular/platform-browser-dynamic": "~10.1.2",
58-
"@angular/router": "~10.1.2",
52+
"@angular/common": "~11.0.0",
53+
"@angular/compiler": "~11.0.0",
54+
"@angular/core": "~11.0.0",
55+
"@angular/forms": "~11.0.0",
56+
"@angular/platform-browser": "~11.0.0",
57+
"@angular/platform-browser-dynamic": "~11.0.0",
58+
"@angular/router": "~11.0.0",
5959
"moment": "^2.28.0",
6060
"rxjs": "~6.6.3",
6161
"tslib": "^2.0.0",
6262
"zone.js": "~0.11.1"
6363
},
6464
"devDependencies": {
65-
"@angular-devkit/build-angular": "~0.1001.2",
66-
"@angular-devkit/schematics": "~10.1.2",
67-
"@angular/cli": "~10.1.2",
68-
"@angular/compiler-cli": "~10.1.2",
69-
"@angular/language-service": "~10.1.2",
70-
"@types/jasmine": "~3.5.14",
65+
"@angular-devkit/build-angular": "~0.1100.1",
66+
"@angular-devkit/schematics": "~11.0.1",
67+
"@angular/cli": "~11.0.1",
68+
"@angular/compiler-cli": "~11.0.0",
69+
"@angular/language-service": "~11.0.0",
70+
"@types/jasmine": "~3.6.0",
7171
"@types/jasminewd2": "~2.0.3",
7272
"@types/node": "^14.11.1",
7373
"codelyzer": "^6.0.0",
74-
"jasmine-core": "~3.5.0",
74+
"jasmine-core": "~3.6.0",
7575
"jasmine-spec-reporter": "~5.0.0",
76-
"karma": "~5.0.0",
76+
"karma": "~5.1.1",
7777
"karma-chrome-launcher": "~3.1.0",
7878
"karma-coverage-istanbul-reporter": "~3.0.2",
7979
"karma-jasmine": "~4.0.0",
8080
"karma-jasmine-html-reporter": "^1.5.0",
81-
"ng-packagr": "^10.1.2",
81+
"ng-packagr": "^11.0.2",
8282
"protractor": "~7.0.0",
8383
"ts-node": "~9.0.0",
8484
"tslint": "~6.1.0",

src/app/custom-forms.module.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ import { url } from './url/validator';
5757
import { UUIDValidator } from './uuid/directive';
5858
import { uuid } from './uuid/validator';
5959
import { NgModule } from '@angular/core';
60-
import { AbstractControl, ValidatorFn } from '@angular/forms';
6160

6261
export const CustomValidators = {
6362
arrayLength,

src/app/included-in/directive.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ class IncludedInValidatorAppComponent {
2121

2222
describe('IncludedInValidator', () => {
2323

24-
let fixture: ComponentFixture<IncludedInValidatorAppComponent>, component: IncludedInValidatorAppComponent;
24+
let fixture: ComponentFixture<IncludedInValidatorAppComponent>;
25+
let component: IncludedInValidatorAppComponent;
2526

2627
beforeEach(() => {
2728
fixture = createComponent(IncludedInValidatorAppComponent, [FormsModule, CustomFormsModule]);

src/app/max-date/validator.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ export const maxDate = (maxInput: any): ValidatorFn => {
4343
value = value();
4444
}
4545

46-
return d <= new Date(value).getTime() ? null : (isForm ? { maxDate: { control: maxInput, value: maxInput.value } } : { maxDate: { value: maxValue, control: undefined } });
46+
return d <= new Date(value).getTime()
47+
? null
48+
: (isForm ? { maxDate: { control: maxInput, value: maxInput.value } } : { maxDate: { value: maxValue, control: undefined } });
4749
};
4850
};

src/app/min-date/validator.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ export const minDate = (minInput: any): ValidatorFn => {
4444
value = value();
4545
}
4646

47-
return d >= new Date(value).getTime() ? null : (isForm ? { minDate: { control: minInput, value: minInput.value } } : { minDate: { value: minValue, control: undefined } });
47+
return d >= new Date(value).getTime()
48+
? null
49+
: (isForm ? { minDate: { control: minInput, value: minInput.value } } : { minDate: { value: minValue, control: undefined } });
4850
};
4951
};

src/app/not-included-in/directive.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ class NotIncludedInValidatorAppComponent {
2121

2222
describe('NotIncludedInValidator', () => {
2323

24-
let fixture: ComponentFixture<NotIncludedInValidatorAppComponent>, component: NotIncludedInValidatorAppComponent;
24+
let fixture: ComponentFixture<NotIncludedInValidatorAppComponent>;
25+
let component: NotIncludedInValidatorAppComponent;
2526

2627
beforeEach(() => {
2728
fixture = createComponent(NotIncludedInValidatorAppComponent, [FormsModule, CustomFormsModule]);

src/app/not-matching/directive.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ class NotMatchingValidatorAppComponent {
2121

2222
describe('NotMatchingValidator', () => {
2323

24-
let fixture: ComponentFixture<NotMatchingValidatorAppComponent>, component: NotMatchingValidatorAppComponent;
24+
let fixture: ComponentFixture<NotMatchingValidatorAppComponent>;
25+
let component: NotMatchingValidatorAppComponent;
2526

2627
beforeEach(() => {
2728
fixture = createComponent(NotMatchingValidatorAppComponent, [FormsModule, CustomFormsModule]);

src/app/number/validator.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import { AbstractControl, ValidationErrors, ValidatorFn, Validators } from '@angular/forms';
22
import { isPresent } from '../util/lang';
33

4+
// tslint:disable-next-line:variable-name
45
export const number: ValidatorFn = (control: AbstractControl): ValidationErrors => {
56
if (isPresent(Validators.required(control))) {
67
return null;
78
}
89

910
const v: string = control.value;
10-
return /^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(v) ? null : { 'number': true };
11+
return /^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(v) ? null : { number: true };
1112
};

0 commit comments

Comments
 (0)