diff --git a/aio/package.json b/aio/package.json index c474c491a7..f6cb6659c0 100644 --- a/aio/package.json +++ b/aio/package.json @@ -77,17 +77,17 @@ }, "private": true, "dependencies": { - "@angular/animations": "^7.0.0", + "@angular/animations": "^8.0.0-beta.14", "@angular/cdk": "7.0.0", - "@angular/common": "^7.0.0", - "@angular/core": "^7.0.0", - "@angular/elements": "^7.0.0", - "@angular/forms": "^7.0.0", + "@angular/common": "^8.0.0-beta.14", + "@angular/core": "^8.0.0-beta.14", + "@angular/elements": "^8.0.0-beta.14", + "@angular/forms": "^8.0.0-beta.14", "@angular/material": "7.0.0", - "@angular/platform-browser": "^7.0.0", - "@angular/platform-browser-dynamic": "^7.0.0", - "@angular/router": "^7.0.0", - "@angular/service-worker": "^7.0.0", + "@angular/platform-browser": "^8.0.0-beta.14", + "@angular/platform-browser-dynamic": "^8.0.0-beta.14", + "@angular/router": "^8.0.0-beta.14", + "@angular/service-worker": "^8.0.0-beta.14", "@types/lunr": "^2.3.2", "@webcomponents/custom-elements": "^1.2.0", "classlist.js": "^1.1.20150312", @@ -98,9 +98,9 @@ "devDependencies": { "@angular-devkit/build-angular": "0.800.0-beta.13", "@angular/cli": "8.0.0-beta.13", - "@angular/compiler": "^7.0.0", - "@angular/compiler-cli": "^7.0.0", - "@angular/language-service": "^7.0.0", + "@angular/compiler": "^8.0.0-beta.14", + "@angular/compiler-cli": "^8.0.0-beta.14", + "@angular/language-service": "^8.0.0-beta.14", "@types/jasmine": "^2.5.52", "@types/jasminewd2": "^2.0.4", "@types/node": "~6.0.60", @@ -159,7 +159,7 @@ "ts-node": "^3.3.0", "tslib": "^1.9.0", "tslint": "~5.9.1", - "typescript": "~3.4.2", + "typescript": "~3.4.5", "uglify-js": "^3.0.15", "unist-util-filter": "^0.2.1", "unist-util-source": "^1.0.1", diff --git a/aio/scripts/_payload-limits.json b/aio/scripts/_payload-limits.json index db3c38cc54..6c4da07d5d 100755 --- a/aio/scripts/_payload-limits.json +++ b/aio/scripts/_payload-limits.json @@ -3,7 +3,7 @@ "master": { "uncompressed": { "runtime": 2972, - "main": 479228, + "main": 497135, "polyfills": 59197 } } diff --git a/aio/src/app/app.component.ts b/aio/src/app/app.component.ts index a7ccb03b0a..c8a1c8d477 100644 --- a/aio/src/app/app.component.ts +++ b/aio/src/app/app.component.ts @@ -85,13 +85,13 @@ export class AppComponent implements OnInit { searchResults: Observable; @ViewChildren('searchBox, searchResultsView', { read: ElementRef }) searchElements: QueryList; - @ViewChild(SearchBoxComponent) + @ViewChild(SearchBoxComponent, { static: true }) searchBox: SearchBoxComponent; - @ViewChild(MatSidenav) + @ViewChild(MatSidenav, { static: true }) sidenav: MatSidenav; - @ViewChild(NotificationComponent) + @ViewChild(NotificationComponent, { static: true }) notification: NotificationComponent; notificationAnimating = false; diff --git a/aio/src/app/custom-elements/api/api-list.component.ts b/aio/src/app/custom-elements/api/api-list.component.ts index 568ea0f7d9..ab17aaf75a 100644 --- a/aio/src/app/custom-elements/api/api-list.component.ts +++ b/aio/src/app/custom-elements/api/api-list.component.ts @@ -61,7 +61,7 @@ export class ApiListComponent implements OnInit { { value: 'security-risk', title: 'Security Risk' } ]; - @ViewChild('filter') queryEl: ElementRef; + @ViewChild('filter', { static: true }) queryEl: ElementRef; constructor( private apiService: ApiService, diff --git a/aio/src/app/custom-elements/code/code-example.component.ts b/aio/src/app/custom-elements/code/code-example.component.ts index 404d0530ff..3ea8e38c68 100644 --- a/aio/src/app/custom-elements/code/code-example.component.ts +++ b/aio/src/app/custom-elements/code/code-example.component.ts @@ -79,9 +79,9 @@ export class CodeExampleComponent implements AfterViewInit { @HostBinding('class.avoidFile') isAvoid = false; - @ViewChild('content') content: ElementRef; + @ViewChild('content', { static: true }) content: ElementRef; - @ViewChild(CodeComponent) aioCode: CodeComponent; + @ViewChild(CodeComponent, { static: true }) aioCode: CodeComponent; ngAfterViewInit() { this.aioCode.code = this.content.nativeElement.innerHTML; diff --git a/aio/src/app/custom-elements/code/code-tabs.component.ts b/aio/src/app/custom-elements/code/code-tabs.component.ts index f0bb45e22a..d2d080dca2 100644 --- a/aio/src/app/custom-elements/code/code-tabs.component.ts +++ b/aio/src/app/custom-elements/code/code-tabs.component.ts @@ -48,7 +48,7 @@ export class CodeTabsComponent implements OnInit, AfterViewInit { @Input() linenums: string; - @ViewChild('content') content; + @ViewChild('content', { static: true }) content; @ViewChildren(CodeComponent) codeComponents: QueryList; diff --git a/aio/src/app/custom-elements/code/code.component.ts b/aio/src/app/custom-elements/code/code.component.ts index 54272f8123..d047f934da 100644 --- a/aio/src/app/custom-elements/code/code.component.ts +++ b/aio/src/app/custom-elements/code/code.component.ts @@ -97,7 +97,7 @@ export class CodeComponent implements OnChanges { @Output() codeFormatted = new EventEmitter(); /** The element in the template that will display the formatted code. */ - @ViewChild('codeContainer') codeContainer: ElementRef; + @ViewChild('codeContainer', { static: true }) codeContainer: ElementRef; constructor( private snackbar: MatSnackBar, diff --git a/aio/src/app/custom-elements/live-example/live-example.component.ts b/aio/src/app/custom-elements/live-example/live-example.component.ts index bc52ef32d3..d5c6246a3f 100644 --- a/aio/src/app/custom-elements/live-example/live-example.component.ts +++ b/aio/src/app/custom-elements/live-example/live-example.component.ts @@ -62,7 +62,7 @@ export class LiveExampleComponent implements AfterContentInit { readonly zip: string; title: string; - @ViewChild('content') + @ViewChild('content', { static: true }) private content: ElementRef; constructor(elementRef: ElementRef, location: Location) { @@ -142,7 +142,7 @@ export class LiveExampleComponent implements AfterContentInit { export class EmbeddedStackblitzComponent implements AfterViewInit { @Input() src: string; - @ViewChild('iframe') iframe: ElementRef; + @ViewChild('iframe', { static: true }) iframe: ElementRef; ngAfterViewInit() { // DEVELOPMENT TESTING ONLY diff --git a/aio/src/app/layout/doc-viewer/dt.component.ts b/aio/src/app/layout/doc-viewer/dt.component.ts index 23a40d0475..8258d92548 100644 --- a/aio/src/app/layout/doc-viewer/dt.component.ts +++ b/aio/src/app/layout/doc-viewer/dt.component.ts @@ -17,7 +17,7 @@ export class DtComponent { @Input() doc: DocumentContents; @Output() docChange = new EventEmitter(); - @ViewChild('dt', { read: ElementRef }) + @ViewChild('dt', { read: ElementRef, static: true }) dt: ElementRef; get text() { return this.doc && this.doc.contents; } diff --git a/aio/src/app/search/search-box/search-box.component.ts b/aio/src/app/search/search-box/search-box.component.ts index af50c6fd58..2929699c8f 100644 --- a/aio/src/app/search/search-box/search-box.component.ts +++ b/aio/src/app/search/search-box/search-box.component.ts @@ -29,7 +29,7 @@ export class SearchBoxComponent implements OnInit { private searchDebounce = 300; private searchSubject = new Subject(); - @ViewChild('searchBox') searchBox: ElementRef; + @ViewChild('searchBox', { static: true }) searchBox: ElementRef; @Output() onSearch = this.searchSubject.pipe(distinctUntilChanged(), debounceTime(this.searchDebounce)); @Output() onFocus = new EventEmitter(); diff --git a/aio/yarn.lock b/aio/yarn.lock index 04bada4227..264de3d6e2 100644 --- a/aio/yarn.lock +++ b/aio/yarn.lock @@ -104,10 +104,10 @@ "@angular-devkit/core" "8.0.0-beta.13" rxjs "6.4.0" -"@angular/animations@^7.0.0": - version "7.2.9" - resolved "https://registry.yarnpkg.com/@angular/animations/-/animations-7.2.9.tgz#1bfacb76dfd80656e28edb4efdfd3154e56f1c29" - integrity sha512-cdIf/UWwhNlw6Ep3pRxRk12F8q/GyTbcHDF4qbgg7lZEDPYS32KS1lpHY1pgSuSOIPZUT+iLPOxAZ6cu7Am1vA== +"@angular/animations@^8.0.0-beta.14": + version "8.0.0-beta.14" + resolved "https://registry.yarnpkg.com/@angular/animations/-/animations-8.0.0-beta.14.tgz#50259f6f3c97101183216e8311b8c0875c4356c3" + integrity sha512-ihYHQXEbjzemjJxJV4p2XAWOD9H4r8HpfNekxxelgj2RyZhrMQStzL+PEKxHHlGn167HuZz5YEoW4MXGflTtsA== dependencies: tslib "^1.9.0" @@ -141,17 +141,17 @@ universal-analytics "^0.4.20" uuid "^3.3.2" -"@angular/common@^7.0.0": - version "7.2.9" - resolved "https://registry.yarnpkg.com/@angular/common/-/common-7.2.9.tgz#eeb3d0332e14f737bfb9a63b8347b3dd625e57fe" - integrity sha512-SBIinZi/R0mKWjbKvcBhwRpAVIY/7/AnzIEkMb5JnGExersYhDD02otW3ZwPStpl7HrhgWk8ueWnxVFFXRz5gA== +"@angular/common@^8.0.0-beta.14": + version "8.0.0-beta.14" + resolved "https://registry.yarnpkg.com/@angular/common/-/common-8.0.0-beta.14.tgz#a27efe0b3e38e38f0e481a2a3f8cad026823b39d" + integrity sha512-4mBGXb+VyakX+YqAAfDsYrlKmjDcyD0BjmWi1u7aTJgf5QmEvFD4QLXzHoWEsmBFnTgoFHXMtXogF04GXy3kuA== dependencies: tslib "^1.9.0" -"@angular/compiler-cli@^7.0.0": - version "7.2.9" - resolved "https://registry.yarnpkg.com/@angular/compiler-cli/-/compiler-cli-7.2.9.tgz#2c1c970969a956fe148a96fe402704626568d3bc" - integrity sha512-3itdcfszdyXTHYEsO4eBu4WEx10hU8JpOgUcZyw+OYgwLQLyjEXOD9dfYZZpE/+2F0omoMLseCTHTP//uux+Iw== +"@angular/compiler-cli@^8.0.0-beta.14": + version "8.0.0-beta.14" + resolved "https://registry.yarnpkg.com/@angular/compiler-cli/-/compiler-cli-8.0.0-beta.14.tgz#61aa5947d3427afd0043fdba079a8cc616d29201" + integrity sha512-Q+B9bUDqVOT3OZdUsOFJeQWSmVKUdUoaU5ptq6UQFALCa/0skQrcL/KOFpej3fk3ZRVTkQ+vWQ1nMzv+tm8Byw== dependencies: canonical-path "1.0.0" chokidar "^2.1.1" @@ -165,38 +165,38 @@ tslib "^1.9.0" yargs "9.0.1" -"@angular/compiler@^7.0.0": - version "7.2.9" - resolved "https://registry.yarnpkg.com/@angular/compiler/-/compiler-7.2.9.tgz#92dd0d9fd26fa7cfdbc8c75d0be0d96bd6432fbb" - integrity sha512-jAKV4C5BW2pnke10fiDZNbLCQOs2QK37mUJWe5jnZqCAM4Y3edXlfifOkbi0hvA4WJMDXKmUdydY6Xo/Z+cWbA== +"@angular/compiler@^8.0.0-beta.14": + version "8.0.0-beta.14" + resolved "https://registry.yarnpkg.com/@angular/compiler/-/compiler-8.0.0-beta.14.tgz#dc01066a060ea9fbd9696a015f481279aa23c2b0" + integrity sha512-Copy2bMf8EL9WcHwz1rHeMY6CqWhOZmvGRBSVwI149awbTxc31h3+01TG2I5FlgIm+vc70PUldp7EumqFiCCDA== dependencies: tslib "^1.9.0" -"@angular/core@^7.0.0": - version "7.2.9" - resolved "https://registry.yarnpkg.com/@angular/core/-/core-7.2.9.tgz#43ca94adf74fd8ad9ba0b015b3b979a5d04fb3a6" - integrity sha512-tW1jHjCnvtquJ3XEnmqRNMoV7MXAZ2yfnCXE25+odRZjNVMiTcKWvRLd/XjBzjCg2OvwREXcQpB7/s+Av10uAQ== +"@angular/core@^8.0.0-beta.14": + version "8.0.0-beta.14" + resolved "https://registry.yarnpkg.com/@angular/core/-/core-8.0.0-beta.14.tgz#d3e75291ac390a1a29bf037bfd292586a90aea8b" + integrity sha512-7gltt13BTUFgGHpOBUmvxr/PUcqY8n6177NpYgEJRBFLZl2FtErG+7BfYBCt23StAi+K6ZafP+IX2m1evOtX8g== dependencies: tslib "^1.9.0" -"@angular/elements@^7.0.0": - version "7.2.9" - resolved "https://registry.yarnpkg.com/@angular/elements/-/elements-7.2.9.tgz#8d95316b663265e84080ebecf80eb24974903ef3" - integrity sha512-xXmRGFd+oHOwck8ZVuRZDWgT4CPcAS/jyWCQ6y74mwQ006ivJ9w2fFGx+IKmRvBjoCHcUUupOop5GCJ3NlQAfQ== +"@angular/elements@^8.0.0-beta.14": + version "8.0.0-beta.14" + resolved "https://registry.yarnpkg.com/@angular/elements/-/elements-8.0.0-beta.14.tgz#951a9c79c475a26a86bc83c7e21769863b6611f0" + integrity sha512-oY6hv7cN0zOElABrO7lEiz+/xVPF5+97r/RA/x2vIVWyei7J7VIWQxAvHX+osrndIwAgXtBlyx0U0EXfp+BshA== dependencies: tslib "^1.9.0" -"@angular/forms@^7.0.0": - version "7.2.9" - resolved "https://registry.yarnpkg.com/@angular/forms/-/forms-7.2.9.tgz#1cc46542b422654ac87a6ead84cb4d9a7e73b0e8" - integrity sha512-2hpu2Gl8suwG5FmOczk/oBBE1x7QypM58XE1ms0V6uYlL+g/JIg0AWMMOldI5KYUnxwoCikgsdGzzt8XPbvRkQ== +"@angular/forms@^8.0.0-beta.14": + version "8.0.0-beta.14" + resolved "https://registry.yarnpkg.com/@angular/forms/-/forms-8.0.0-beta.14.tgz#db0958d9f1bd8d22aef1605c66704d9247837f31" + integrity sha512-40GN2X+ycaUyq1/VX8jQcQqnuDojp2A7OBtfGguTsz2viKlIFY89GvErqPzGcbUwoKE2e00pNDEK2NWwLqLmpg== dependencies: tslib "^1.9.0" -"@angular/language-service@^7.0.0": - version "7.2.9" - resolved "https://registry.yarnpkg.com/@angular/language-service/-/language-service-7.2.9.tgz#50a74f80a42b069c6a3a0844ee6af3098f8bd48b" - integrity sha512-+8P3yGqrCZy8PaoxUUlC6cowxPAIbuW4HwhvHvYV3G99LDQUC/bxUPSPhqbrAvDiFr3VeXqivzXgFCTo69S1WQ== +"@angular/language-service@^8.0.0-beta.14": + version "8.0.0-beta.14" + resolved "https://registry.yarnpkg.com/@angular/language-service/-/language-service-8.0.0-beta.14.tgz#cf293951d518889cdaedc433306d0699d078a364" + integrity sha512-FNPYEDEUlgF7dejL6spCtLs/7+nMq7mAAMvtI1hPDldAhLMkfygrGlxtDrREG+6ekYDBJVpHy7Sik/e9Hn/Szw== "@angular/material@7.0.0": version "7.0.0" @@ -204,31 +204,31 @@ dependencies: tslib "^1.7.1" -"@angular/platform-browser-dynamic@^7.0.0": - version "7.2.9" - resolved "https://registry.yarnpkg.com/@angular/platform-browser-dynamic/-/platform-browser-dynamic-7.2.9.tgz#bfbdf1a906f1363440cd4f18f9dd64a369a7b55a" - integrity sha512-QJQ1NmzaX2nAX9u6vkc/cZSBEqio/YQojaZqlbRyAn391rpzb9cGVvqYzUU9DqCeXbxKgA1xbmLiNMQ/M7xMHg== +"@angular/platform-browser-dynamic@^8.0.0-beta.14": + version "8.0.0-beta.14" + resolved "https://registry.yarnpkg.com/@angular/platform-browser-dynamic/-/platform-browser-dynamic-8.0.0-beta.14.tgz#ef2463033f7383500aaa55627fbd487c5c377033" + integrity sha512-NWcOey/bzstnbVzNvBpryEAamWNAQobUkP4i3mSnKvWAyhs1GO7IPOsTwzOOPVvQBTOq0GFdYJjDoB4DIo3/ZA== dependencies: tslib "^1.9.0" -"@angular/platform-browser@^7.0.0": - version "7.2.9" - resolved "https://registry.yarnpkg.com/@angular/platform-browser/-/platform-browser-7.2.9.tgz#4259eb9c41d152c580ab283b858a938fc0058421" - integrity sha512-h7RaXllauFLa1SPcje/cK7IbwCqV6ViyeHEUAAWljrM2OWRU1zRYtDk/gcphRj4tWhhHVfQsJ9+0p3NoPP5LZw== +"@angular/platform-browser@^8.0.0-beta.14": + version "8.0.0-beta.14" + resolved "https://registry.yarnpkg.com/@angular/platform-browser/-/platform-browser-8.0.0-beta.14.tgz#9023453d850243fbc7c6452c26e100fd1d505617" + integrity sha512-nOo8wZU1PToNgb1BdKVWVmJqX4l30YWOzMCJ1S41LMImf0k+PXgKYUCQ5OzFBJNTH0x8JvANTvsBiqJyNN+QkQ== dependencies: tslib "^1.9.0" -"@angular/router@^7.0.0": - version "7.2.9" - resolved "https://registry.yarnpkg.com/@angular/router/-/router-7.2.9.tgz#63fabbaa4dc83c32fbc2858c621916ea7b1690a1" - integrity sha512-vNk2x6i1iLNQM1KYnRhbC2DJQvNmlu9lVGzcZzRiS7zDT5DFvbiYA1M7ixUlbehLDEGVKlJEZNIdKWErWW8xYw== +"@angular/router@^8.0.0-beta.14": + version "8.0.0-beta.14" + resolved "https://registry.yarnpkg.com/@angular/router/-/router-8.0.0-beta.14.tgz#62e4be7b085cce764e00c608eb910886767cd61e" + integrity sha512-QGIvWPd4ngxWzEwzAqEk7M54CGmmYGRxs/+V8Zohau580XL5lK6tuPvN+slO1dWe3+YuFt6U02zzs9mRGlLnYw== dependencies: tslib "^1.9.0" -"@angular/service-worker@^7.0.0": - version "7.2.9" - resolved "https://registry.yarnpkg.com/@angular/service-worker/-/service-worker-7.2.9.tgz#f48cc8a86d7234f11f2d03e6696059d4cadcc5d5" - integrity sha512-cBwx0GN/onLSRgz18Wg1tXPcbL+TcfglAmGP0juvQnNlpRwGeyV0pF8ny9yKA1IvI6n3CkoKlmku8Tu6KcXcKA== +"@angular/service-worker@^8.0.0-beta.14": + version "8.0.0-beta.14" + resolved "https://registry.yarnpkg.com/@angular/service-worker/-/service-worker-8.0.0-beta.14.tgz#7fdac405d2f6757cbaeb2abdb35b513f69e0bdf2" + integrity sha512-dQGdpjj97bVp0AvLHI4wpbQCEeWSoPssnKf24oXaJHLM0UuWQgumlBzKU4/gWBpQ+lQoW+txELp4qoY4YH/Yig== dependencies: tslib "^1.9.0" @@ -10243,11 +10243,16 @@ typescript@^2.4.1: version "2.6.2" resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.6.2.tgz#3c5b6fd7f6de0914269027f03c0946758f7673a4" -typescript@^3.2.2, typescript@~3.4.2: +typescript@^3.2.2: version "3.4.2" resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.4.2.tgz#9ed4e6475d906f589200193be056f5913caed481" integrity sha512-Og2Vn6Mk7JAuWA1hQdDQN/Ekm/SchX80VzLhjKN9ETYrIepBFAd8PkOdOTK2nKt0FCkmMZKBJvQ1dV1gIxPu/A== +typescript@~3.4.5: + version "3.4.5" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.4.5.tgz#2d2618d10bb566572b8d7aad5180d84257d70a99" + integrity sha512-YycBxUb49UUhdNMU5aJ7z5Ej2XGmaIBL0x34vZ82fn3hGvD+bgrMrVDpatgz2f7YxUMJxMkbWxJZeAvDxVe7Vw== + uglify-js@^3.0.15, uglify-js@^3.1.4: version "3.4.9" resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.4.9.tgz#af02f180c1207d76432e473ed24a28f4a782bae3"