Skip to content

Commit

Permalink
build(docs-infra): upgrade Angular to 7.0.0-rc.0 and TypeScript to 3.…
Browse files Browse the repository at this point in the history
…1.1 (#26306)

PR Close #26306
  • Loading branch information
gkalpak authored and jasonaden committed Oct 8, 2018
1 parent ccb0ec9 commit 8a6f372
Show file tree
Hide file tree
Showing 4 changed files with 183 additions and 87 deletions.
28 changes: 14 additions & 14 deletions aio/package.json
Expand Up @@ -71,17 +71,17 @@
},
"private": true,
"dependencies": {
"@angular/animations": "^7.0.0-beta.7",
"@angular/animations": "^7.0.0-rc.0",
"@angular/cdk": "6.0.2",
"@angular/common": "^7.0.0-beta.7",
"@angular/core": "^7.0.0-beta.7",
"@angular/elements": "^7.0.0-beta.7",
"@angular/forms": "^7.0.0-beta.7",
"@angular/common": "^7.0.0-rc.0",
"@angular/core": "^7.0.0-rc.0",
"@angular/elements": "^7.0.0-rc.0",
"@angular/forms": "^7.0.0-rc.0",
"@angular/material": "6.0.2",
"@angular/platform-browser": "^7.0.0-beta.7",
"@angular/platform-browser-dynamic": "^7.0.0-beta.7",
"@angular/router": "^7.0.0-beta.7",
"@angular/service-worker": "^7.0.0-beta.7",
"@angular/platform-browser": "^7.0.0-rc.0",
"@angular/platform-browser-dynamic": "^7.0.0-rc.0",
"@angular/router": "^7.0.0-rc.0",
"@angular/service-worker": "^7.0.0-rc.0",
"@webcomponents/custom-elements": "^1.2.0",
"classlist.js": "^1.1.20150312",
"core-js": "^2.4.1",
Expand All @@ -93,9 +93,9 @@
"devDependencies": {
"@angular-devkit/build-angular": "^0.8.3",
"@angular/cli": "^6.2.3",
"@angular/compiler": "^7.0.0-beta.7",
"@angular/compiler-cli": "^7.0.0-beta.7",
"@angular/language-service": "^7.0.0-beta.7",
"@angular/compiler": "^7.0.0-rc.0",
"@angular/compiler-cli": "^7.0.0-rc.0",
"@angular/language-service": "^7.0.0-rc.0",
"@types/jasmine": "^2.5.52",
"@types/jasminewd2": "^2.0.3",
"@types/node": "~6.0.60",
Expand Down Expand Up @@ -147,7 +147,7 @@
"tree-kill": "^1.1.0",
"ts-node": "^3.3.0",
"tslint": "~5.9.1",
"typescript": "3.0",
"typescript": "^3.1.1",
"uglify-js": "^3.0.15",
"unist-util-filter": "^0.2.1",
"unist-util-source": "^1.0.1",
Expand All @@ -159,4 +159,4 @@
"xregexp": "^4.0.0",
"yargs": "^7.0.2"
}
}
}
2 changes: 1 addition & 1 deletion aio/scripts/_payload-limits.json
Expand Up @@ -3,7 +3,7 @@
"master": {
"uncompressed": {
"runtime": 3173,
"main": 483270,
"main": 483428,
"polyfills": 53920,
"prettify": 14913
}
Expand Down
5 changes: 3 additions & 2 deletions aio/src/app/shared/copier.service.ts
Expand Up @@ -16,7 +16,8 @@ export class CopierService {
* and makes a selection on it.
*/
createFake(text: string) {
const isRTL = document.documentElement.getAttribute('dir') === 'rtl';
const docElem = document.documentElement!;
const isRTL = docElem.getAttribute('dir') === 'rtl';

// Create a fake element to hold the contents to copy
this.fakeElem = document.createElement('textarea');
Expand All @@ -34,7 +35,7 @@ export class CopierService {
this.fakeElem.style[ isRTL ? 'right' : 'left' ] = '-9999px';

// Move element to the same position vertically
const yPosition = window.pageYOffset || document.documentElement.scrollTop;
const yPosition = window.pageYOffset || docElem.scrollTop;
this.fakeElem.style.top = yPosition + 'px';

this.fakeElem.setAttribute('readonly', '');
Expand Down

0 comments on commit 8a6f372

Please sign in to comment.