mirror of
https://github.com/Raghu-Ch/angular-accessibility.git
synced 2026-02-10 04:43:02 -05:00
fix: upgrade to Angular v13
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -32,6 +32,7 @@ speed-measure-plugin*.json
|
|||||||
.history/*
|
.history/*
|
||||||
|
|
||||||
# misc
|
# misc
|
||||||
|
/.angular
|
||||||
/.sass-cache
|
/.sass-cache
|
||||||
/connect.lock
|
/connect.lock
|
||||||
/coverage
|
/coverage
|
||||||
|
|||||||
10410
package-lock.json
generated
10410
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
46
package.json
46
package.json
@@ -11,29 +11,29 @@
|
|||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/animations": "~12.0.0",
|
"@angular/animations": "~13.0.1",
|
||||||
"@angular/cdk": "^12.0.0",
|
"@angular/cdk": "^13.0.1",
|
||||||
"@angular/common": "^12.0.0",
|
"@angular/common": "^13.0.1",
|
||||||
"@angular/compiler": "^12.0.0",
|
"@angular/compiler": "^13.0.1",
|
||||||
"@angular/core": "^12.0.0",
|
"@angular/core": "^13.0.1",
|
||||||
"@angular/forms": "^12.0.0",
|
"@angular/forms": "^13.0.1",
|
||||||
"@angular/google-maps": "^12.0.0",
|
"@angular/google-maps": "^13.0.1",
|
||||||
"@angular/material": "^12.0.0",
|
"@angular/material": "^13.0.1",
|
||||||
"@angular/platform-browser": "^12.0.0",
|
"@angular/platform-browser": "^13.0.1",
|
||||||
"@angular/platform-browser-dynamic": "^12.0.0",
|
"@angular/platform-browser-dynamic": "^13.0.1",
|
||||||
"@angular/router": "~12.0.0",
|
"@angular/router": "~13.0.1",
|
||||||
"rxjs": "~6.6.0",
|
"rxjs": "^7.4.0",
|
||||||
"tslib": "^2.0.0",
|
"tslib": "^2.0.0",
|
||||||
"zone.js": "~0.11.4"
|
"zone.js": "~0.11.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular-devkit/build-angular": "~12.0.0",
|
"@angular-devkit/build-angular": "~13.0.2",
|
||||||
"@angular/cli": "~12.0.0",
|
"@angular/cli": "~13.0.2",
|
||||||
"@angular/compiler-cli": "~12.0.0",
|
"@angular/compiler-cli": "~13.0.1",
|
||||||
"@types/jasmine": "~3.6.0",
|
"@types/jasmine": "~3.6.0",
|
||||||
"@types/node": "^12.11.1",
|
"@types/node": "^12.11.1",
|
||||||
"@typescript-eslint/eslint-plugin": "4.16.1",
|
"@typescript-eslint/eslint-plugin": "5.4.0",
|
||||||
"@typescript-eslint/parser": "4.16.1",
|
"@typescript-eslint/parser": "5.4.0",
|
||||||
"eslint": "^7.6.0",
|
"eslint": "^7.6.0",
|
||||||
"jasmine-core": "~3.6.0",
|
"jasmine-core": "~3.6.0",
|
||||||
"jasmine-spec-reporter": "~5.0.0",
|
"jasmine-spec-reporter": "~5.0.0",
|
||||||
@@ -45,14 +45,14 @@
|
|||||||
"protractor": "~7.0.0",
|
"protractor": "~7.0.0",
|
||||||
"ts-node": "~8.3.0",
|
"ts-node": "~8.3.0",
|
||||||
"tslint": "~6.1.0",
|
"tslint": "~6.1.0",
|
||||||
"typescript": "~4.2.3",
|
"typescript": "~4.4.4",
|
||||||
"eslint-plugin-import": "2.22.1",
|
"eslint-plugin-import": "2.22.1",
|
||||||
"eslint-plugin-jsdoc": "30.7.6",
|
"eslint-plugin-jsdoc": "30.7.6",
|
||||||
"eslint-plugin-prefer-arrow": "1.2.2",
|
"eslint-plugin-prefer-arrow": "1.2.2",
|
||||||
"@angular-eslint/builder": "^4.0.0",
|
"@angular-eslint/builder": "13.0.0-alpha.0",
|
||||||
"@angular-eslint/eslint-plugin": "^4.0.0",
|
"@angular-eslint/eslint-plugin": "13.0.0-alpha.0",
|
||||||
"@angular-eslint/eslint-plugin-template": "^4.0.0",
|
"@angular-eslint/eslint-plugin-template": "13.0.0-alpha.0",
|
||||||
"@angular-eslint/schematics": "12.0.0",
|
"@angular-eslint/schematics": "13.0.0-alpha.0",
|
||||||
"@angular-eslint/template-parser": "^4.0.0"
|
"@angular-eslint/template-parser": "13.0.0-alpha.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,6 +15,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// Adapted from https://codepen.io/osermay/pen/wrKQOd
|
// Adapted from https://codepen.io/osermay/pen/wrKQOd
|
||||||
|
|
||||||
|
@use 'sass:math';
|
||||||
|
|
||||||
$dumpling-light: #efd7b8;
|
$dumpling-light: #efd7b8;
|
||||||
$dumpling-dark: darken(#efd7b8, 15%);
|
$dumpling-dark: darken(#efd7b8, 15%);
|
||||||
$dumpling-size: 100px;
|
$dumpling-size: 100px;
|
||||||
@@ -39,7 +42,7 @@ $fold-size: 20px;
|
|||||||
@include center;
|
@include center;
|
||||||
background-color: $dumpling-light;
|
background-color: $dumpling-light;
|
||||||
width: $dumpling-size;
|
width: $dumpling-size;
|
||||||
height: $dumpling-size/2;
|
height: math.div($dumpling-size, 2);
|
||||||
border-top-left-radius: $dumpling-size;
|
border-top-left-radius: $dumpling-size;
|
||||||
border-top-right-radius: $dumpling-size;
|
border-top-right-radius: $dumpling-size;
|
||||||
border: #ffe9e9 solid 2px;
|
border: #ffe9e9 solid 2px;
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
@use '~@angular/material' as mat;
|
@use '@angular/material' as mat;
|
||||||
|
|
||||||
// TODO: #12. Enable HighContrast mode
|
// TODO: #12. Enable HighContrast mode
|
||||||
|
|
||||||
|
|||||||
@@ -33,18 +33,6 @@
|
|||||||
* BROWSER POLYFILLS
|
* BROWSER POLYFILLS
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
|
||||||
* IE11 requires the following for NgClass support on SVG elements
|
|
||||||
*/
|
|
||||||
// import 'classlist.js'; // Run `npm install --save classlist.js`.
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Web Animations `@angular/platform-browser/animations`
|
|
||||||
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
|
|
||||||
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
|
|
||||||
*/
|
|
||||||
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* By default, zone.js will patch all possible macroTask and DomEvents
|
* By default, zone.js will patch all possible macroTask and DomEvents
|
||||||
* user can disable parts of macroTask/DomEvents patch by setting following flags
|
* user can disable parts of macroTask/DomEvents patch by setting following flags
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
@use '~@angular/material' as mat;
|
@use '@angular/material' as mat;
|
||||||
|
|
||||||
@import url('https://fonts.googleapis.com/css2?family=Vollkorn:ital,wght@1,700&Lato:wght@400;700;900&display=swap');
|
@import url('https://fonts.googleapis.com/css2?family=Vollkorn:ital,wght@1,700&Lato:wght@400;700;900&display=swap');
|
||||||
$vollkorn-font-family: 'Vollkorn', serif;
|
$vollkorn-font-family: 'Vollkorn', serif;
|
||||||
|
|||||||
@@ -24,15 +24,17 @@ import {
|
|||||||
|
|
||||||
declare const require: {
|
declare const require: {
|
||||||
context(path: string, deep?: boolean, filter?: RegExp): {
|
context(path: string, deep?: boolean, filter?: RegExp): {
|
||||||
keys(): string[];
|
|
||||||
<T>(id: string): T;
|
<T>(id: string): T;
|
||||||
|
keys(): string[];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
// First, initialize the Angular testing environment.
|
// First, initialize the Angular testing environment.
|
||||||
getTestBed().initTestEnvironment(
|
getTestBed().initTestEnvironment(
|
||||||
BrowserDynamicTestingModule,
|
BrowserDynamicTestingModule,
|
||||||
platformBrowserDynamicTesting()
|
platformBrowserDynamicTesting(), {
|
||||||
|
teardown: { destroyAfterEach: false }
|
||||||
|
}
|
||||||
);
|
);
|
||||||
// Then we find all the tests.
|
// Then we find all the tests.
|
||||||
const context = require.context('./', true, /\.spec\.ts$/);
|
const context = require.context('./', true, /\.spec\.ts$/);
|
||||||
|
|||||||
Reference in New Issue
Block a user