From 8830486039d98d29a9dcf356bbcd7a8124a02478 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Tue, 6 Mar 2018 10:42:53 -0500 Subject: [PATCH] chore: bump to 6.0.0-beta.6 and remove explicit preserveWhitespaces setting (#10216) * Bumps the Angular version to at least 6.0.0-beta.6. * Removes all of the `preserveWhitespaces` declarations, because the option is now `false` by default. * Removes the tslint requirement for `preserveWhitespaces`. --- package-lock.json | 293 +++++++++++------- package.json | 24 +- .../dialog/dialog-container.ts | 1 - src/cdk/stepper/stepper.ts | 1 - src/cdk/table/row.ts | 2 - src/cdk/table/table.ts | 1 - src/cdk/tree/tree.ts | 1 - src/demo-app/a11y/a11y.ts | 1 - src/demo-app/a11y/icon/icon-a11y.ts | 1 - .../a11y/sidenav/basic-sidenav-a11y.ts | 1 - .../a11y/sidenav/dual-sidenav-a11y.ts | 1 - .../a11y/sidenav/mobile-sidenav-a11y.ts | 1 - src/demo-app/a11y/sidenav/sidenav-a11y.ts | 1 - .../autocomplete/autocomplete-demo.ts | 1 - .../bottom-sheet/bottom-sheet-demo.ts | 1 - src/demo-app/demo-app/demo-app.ts | 2 - src/demo-app/drawer/drawer-demo.ts | 1 - src/demo-app/expansion/expansion-demo.ts | 1 - src/demo-app/icon/icon-demo.ts | 1 - src/demo-app/overlay/overlay-demo.ts | 1 - src/demo-app/sidenav/sidenav-demo.ts | 1 - src/demo-app/snack-bar/snack-bar-demo.ts | 1 - src/demo-app/tabs/tabs-demo.ts | 1 - src/demo-app/tooltip/tooltip-demo.ts | 1 - src/lib/autocomplete/autocomplete.ts | 1 - .../bottom-sheet/bottom-sheet-container.ts | 1 - src/lib/button-toggle/button-toggle.ts | 1 - src/lib/button/button.ts | 2 - src/lib/card/card.ts | 3 - src/lib/checkbox/checkbox.ts | 1 - src/lib/chips/chip-list.ts | 1 - src/lib/core/option/optgroup.ts | 1 - src/lib/core/option/option.ts | 1 - .../pseudo-checkbox/pseudo-checkbox.ts | 1 - src/lib/datepicker/calendar-body.ts | 1 - src/lib/datepicker/calendar.ts | 1 - src/lib/datepicker/datepicker-toggle.ts | 1 - src/lib/datepicker/datepicker.ts | 2 - src/lib/datepicker/month-view.ts | 1 - src/lib/datepicker/multi-year-view.ts | 1 - src/lib/datepicker/year-view.ts | 1 - src/lib/dialog/dialog-container.ts | 1 - src/lib/divider/divider.ts | 1 - src/lib/expansion/expansion-panel-header.ts | 1 - src/lib/expansion/expansion-panel.ts | 1 - src/lib/form-field/form-field.ts | 1 - src/lib/grid-list/grid-list.ts | 1 - src/lib/grid-list/grid-tile.ts | 2 - src/lib/icon/icon.ts | 1 - src/lib/list/list.ts | 3 - src/lib/list/selection-list.ts | 2 - src/lib/menu/menu-directive.ts | 1 - src/lib/menu/menu-item.ts | 1 - src/lib/paginator/paginator.ts | 1 - src/lib/progress-bar/progress-bar.ts | 1 - src/lib/progress-spinner/progress-spinner.ts | 2 - src/lib/radio/radio.ts | 1 - src/lib/select/select.ts | 1 - src/lib/sidenav/drawer.ts | 3 - src/lib/sidenav/sidenav.ts | 3 - src/lib/slide-toggle/slide-toggle.ts | 1 - src/lib/slider/slider.ts | 1 - src/lib/snack-bar/simple-snack-bar.ts | 1 - src/lib/snack-bar/snack-bar-container.ts | 1 - src/lib/sort/sort-header.ts | 1 - src/lib/stepper/step-header.ts | 1 - src/lib/stepper/stepper.ts | 3 - src/lib/table/row.ts | 2 - src/lib/table/table.ts | 1 - src/lib/tabs/tab-body.ts | 1 - src/lib/tabs/tab-group.ts | 1 - src/lib/tabs/tab-header.ts | 1 - src/lib/tabs/tab-nav-bar/tab-nav-bar.ts | 1 - src/lib/tabs/tab.ts | 1 - src/lib/toolbar/toolbar.ts | 1 - src/lib/tooltip/tooltip.ts | 1 - src/lib/tree/tree.ts | 1 - .../slider-configurable-example.ts | 1 - tslint.json | 1 - 79 files changed, 187 insertions(+), 225 deletions(-) diff --git a/package-lock.json b/package-lock.json index d80805dbb0d..f83e3367cf1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,24 +1,27 @@ { "name": "material2-srcs", - "version": "6.0.0-beta.2", + "version": "6.0.0-beta.3", "lockfileVersion": 1, "requires": true, "dependencies": { "@angular/animations": { - "version": "6.0.0-beta.4", - "resolved": "https://registry.npmjs.org/@angular/animations/-/animations-6.0.0-beta.4.tgz", - "integrity": "sha512-eQKNoAQoYRRanOajSfVn44UlKUONg+L/wEfLsIcerEXqsoSreUakV2G2sdWbaKwIjXxwwGR2cUrC+zD4xTe6Fg==", + "version": "6.0.0-beta.6", + "resolved": "https://registry.npmjs.org/@angular/animations/-/animations-6.0.0-beta.6.tgz", + "integrity": "sha512-WmIXw219QIPLAOe8YAU1mqQxyyrghJiP0ZSOlbBwGJVPwB1bkkhS7LxMQR44uLl1TqP5JkS6sRMDM1Nl7xYRhg==", "requires": { "tslib": "1.9.0" } }, "@angular/bazel": { - "version": "6.0.0-beta.4", - "resolved": "https://registry.npmjs.org/@angular/bazel/-/bazel-6.0.0-beta.4.tgz", - "integrity": "sha512-qJkbRN0WzSqTQi87qhygOHs2se3UmpSJbugcOGDbX4femXiAqvNBzARZiBNYJ65aUXwcptXcJfKIJiQnslmOiw==", + "version": "6.0.0-beta.6", + "resolved": "https://registry.npmjs.org/@angular/bazel/-/bazel-6.0.0-beta.6.tgz", + "integrity": "sha512-VZQkti7DJ+5DNgHuRFfgiO6/a7YyQwRYNMTronF4D1Hh+Aq1DuFUUm2wFcPTKXnCfv2RRrj+TXLxo1d/7IUgdg==", "dev": true, "requires": { - "@types/node": "6.0.84" + "@types/node": "6.0.84", + "@types/shelljs": "0.7.7", + "protobufjs": "5.0.0", + "shelljs": "0.7.8" }, "dependencies": { "@types/node": { @@ -26,108 +29,148 @@ "resolved": "https://registry.npmjs.org/@types/node/-/node-6.0.84.tgz", "integrity": "sha512-1SvEazClhUBRNroJM3oB3xf3u2r6xGmHDGbdigqNPHvNKLl8/BtATgO9eC04ZLuovpSh0B20BF1QJxdi+qmTlg==", "dev": true + }, + "glob": { + "version": "5.0.15", + "resolved": "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz", + "integrity": "sha1-G8k2ueAvSmA/zCIuz3Yz0wuLk7E=", + "dev": true, + "requires": { + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + }, + "protobufjs": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-5.0.0.tgz", + "integrity": "sha1-QiMGMjPqlqwGPKK1VANSBNtST6E=", + "dev": true, + "requires": { + "ascli": "1.0.1", + "bytebuffer": "5.0.1", + "glob": "5.0.15", + "yargs": "3.32.0" + } } } }, "@angular/common": { - "version": "6.0.0-beta.4", - "resolved": "https://registry.npmjs.org/@angular/common/-/common-6.0.0-beta.4.tgz", - "integrity": "sha512-xzqZZb4Jf8xyC8F2PB86F3x9cKalQ1qDCCdEX3ggNnkCfONcPp4tpUltj7Ny3MDdN+ix7texgpJRROc4oOxlMg==", + "version": "6.0.0-beta.6", + "resolved": "https://registry.npmjs.org/@angular/common/-/common-6.0.0-beta.6.tgz", + "integrity": "sha512-B8QeNuchZAscCY9xaDolIzdjDmkeicPcYL4Gct6Jkv4Kk9HkP5pZlFd/A1j/DAfOFKpReUyQLIOemj2pcxZkqA==", "requires": { "tslib": "1.9.0" } }, "@angular/compiler": { - "version": "6.0.0-beta.4", - "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-6.0.0-beta.4.tgz", - "integrity": "sha512-WVKsBHOSzQ3iTGXuQffwmLOapx3wMeIqBNBVtZsm62Xuty4CzcKhoH3oRIl5etcirhvCwlS80T9jOTLgWZvJpg==", + "version": "6.0.0-beta.6", + "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-6.0.0-beta.6.tgz", + "integrity": "sha512-O0GgLR+W5jbuMlbvNX7xOOTglouZF6eXVcQJWBe3XoYYJUPlTgSlIxkNqyZToOiwSMxwuZAOQ2PBABn5iuivIA==", "requires": { "tslib": "1.9.0" } }, "@angular/compiler-cli": { - "version": "6.0.0-beta.4", - "resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-6.0.0-beta.4.tgz", - "integrity": "sha512-g64FOdyFKF/PBAx4zEl4nLb3vJLkOVZhlOyoqNYp9mNPsWCXr1UhFxjRN9Ogm4ZGEcapx+2eJUAXMJ2nMyZDGw==", + "version": "6.0.0-beta.6", + "resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-6.0.0-beta.6.tgz", + "integrity": "sha512-V4726nbRUDjGysOx+Kj/usrKp8uvnQRvPqCXCB0wK3L7gzNBToOIdAFjVMAIlChSKtpUPA/VLGGPXtbOQg0gfQ==", "dev": true, "requires": { "chokidar": "1.7.0", "minimist": "1.2.0", "reflect-metadata": "0.1.12", - "tsickle": "0.26.0" + "tsickle": "0.27.2" }, "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "source-map-support": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.3.tgz", + "integrity": "sha512-eKkTgWYeBOQqFGXRfKabMFdnWepo51vWqEdoeikaEPFiJC7MCU5j2h4+6Q8npkZTeLGbSyecZvRxiSoWl3rh+w==", + "dev": true, + "requires": { + "source-map": "0.6.1" + } + }, "tsickle": { - "version": "0.26.0", - "resolved": "https://registry.npmjs.org/tsickle/-/tsickle-0.26.0.tgz", - "integrity": "sha512-eWJ2CUfttGK0LqF9iJ/Avnxbj4M+fCyJ50Zag3wm73Fut1hsasPRHKxKdrMWVj4BMHnQNx7TO+DdNmLmJTSuNw==", + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/tsickle/-/tsickle-0.27.2.tgz", + "integrity": "sha512-KW+ZgY0t2cq2Qib1sfdgMiRnk+cr3brUtzZoVWjv+Ot3jNxVorFBUH+6In6hl8Dg7BI2AAFf69NHkwvZNMSFwA==", "dev": true, "requires": { "minimist": "1.2.0", "mkdirp": "0.5.1", - "source-map": "0.5.7", - "source-map-support": "0.4.18" + "source-map": "0.6.1", + "source-map-support": "0.5.3" } } } }, "@angular/core": { - "version": "6.0.0-beta.4", - "resolved": "https://registry.npmjs.org/@angular/core/-/core-6.0.0-beta.4.tgz", - "integrity": "sha512-Dzy+Ui7YAiuNZA1ciZ3Bbnr40W1ay68TYg/ZSzUKRRPaWffuCDSGUSK+yTJ7MDHKfpWErw9dmYHLW88iLsFadg==", + "version": "6.0.0-beta.6", + "resolved": "https://registry.npmjs.org/@angular/core/-/core-6.0.0-beta.6.tgz", + "integrity": "sha512-XSCVSTf2YXYRfQtHtU1Uocyv6+GWok9hcjH+UVf7IWtWReZqkMQK0WW2a8DW0Wss0AsmBAvPFXeekYIjKEYyqA==", "requires": { "tslib": "1.9.0" } }, "@angular/forms": { - "version": "6.0.0-beta.4", - "resolved": "https://registry.npmjs.org/@angular/forms/-/forms-6.0.0-beta.4.tgz", - "integrity": "sha512-+mhrz0Xs+vDpBT3BcOAxYxCGLI+iBJyMeshsJDajRv/Vtr3/+5JWgnVua8+HQML3D/j/qIhAArzSO6RTB7YRkw==", + "version": "6.0.0-beta.6", + "resolved": "https://registry.npmjs.org/@angular/forms/-/forms-6.0.0-beta.6.tgz", + "integrity": "sha512-u26FsmvecknJ4M/kPGNQhBBkBrWYh4ej72mcgEmFj0MYMV4NSmLC5tq8OvTNtICYecYWnDoqX46a3WgQ5fvMxA==", "requires": { "tslib": "1.9.0" } }, "@angular/http": { - "version": "6.0.0-beta.4", - "resolved": "https://registry.npmjs.org/@angular/http/-/http-6.0.0-beta.4.tgz", - "integrity": "sha512-bQKMy8L1/ZFR8QeUrlaZRuQS1WIX/Eat8aLlqFFbXaywZ8ngkl1xW1UtYfNjaF7XyPsXDyDixX9YGuFF9f1AEQ==", + "version": "6.0.0-beta.6", + "resolved": "https://registry.npmjs.org/@angular/http/-/http-6.0.0-beta.6.tgz", + "integrity": "sha512-YjQMOgR5Y0IFzLbiu469JVcOU4xNvwdVT8v0pLEgNhyi4V9uoperW5wsko+9P28Yb2Tw6z4r0vR+ABSdHS7ouw==", "dev": true, "requires": { "tslib": "1.9.0" } }, "@angular/platform-browser": { - "version": "6.0.0-beta.4", - "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-6.0.0-beta.4.tgz", - "integrity": "sha512-6Rnl2hiWk4FoOa1dWSfHPHT8lhsCHS/gnDTrIKDk2V2uUFWfZIb7BeCBDZrmRS06l5ZGktaHVJ/MV4j6mNtq/g==", + "version": "6.0.0-beta.6", + "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-6.0.0-beta.6.tgz", + "integrity": "sha512-0JO769Z1SzUE2KyDuXN7pPk0TmycP8duIm/eJvo0tu1gOjq0im0BfKbTx0PM69GBOVOR6u1hUthMbu58sBxL7A==", "requires": { "tslib": "1.9.0" } }, "@angular/platform-browser-dynamic": { - "version": "6.0.0-beta.4", - "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-6.0.0-beta.4.tgz", - "integrity": "sha512-RTBefFd3+le4AV3ajC62pVju1Tkodp776Dwam5rXSATa69Kk1qajkyhn9Rhng2qM/kQqdi25b7sz1ouH0n6KCw==", + "version": "6.0.0-beta.6", + "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-6.0.0-beta.6.tgz", + "integrity": "sha512-yrItu/4UOgumlIqwYGIYjQDFjZoUQEUdoaWleDj0NOSCYRAmSmYHItmN7oLm81D4eFjfCwrpX6nBP7UlTsEEkA==", "dev": true, "requires": { "tslib": "1.9.0" } }, "@angular/platform-server": { - "version": "6.0.0-beta.4", - "resolved": "https://registry.npmjs.org/@angular/platform-server/-/platform-server-6.0.0-beta.4.tgz", - "integrity": "sha512-CcN2vOt/PHZ5FtDgz3+YK00Ls1TYsWBGL2F86G/HZtC+uXC2cYod7aOOkEBzGH7iZZxBKLMCndbN8NbHnETRDg==", + "version": "6.0.0-beta.6", + "resolved": "https://registry.npmjs.org/@angular/platform-server/-/platform-server-6.0.0-beta.6.tgz", + "integrity": "sha512-vviDwE/maF5faCeU47v5czftbf9aluZ8r4jhkjS4cICl1E017PNrNWptWX1xwOLtAzcx2Gh338SBZCJeAWASwQ==", "dev": true, "requires": { - "domino": "1.0.30", + "domino": "2.0.1", "tslib": "1.9.0", "xhr2": "0.1.4" } }, "@angular/router": { - "version": "6.0.0-beta.4", - "resolved": "https://registry.npmjs.org/@angular/router/-/router-6.0.0-beta.4.tgz", - "integrity": "sha512-0xq2HqNk1RlOQoWyr8HWcJ0oOOxVw7cUBvCXAIw3f/2mJTUglvLsOrtK0ulIgvwVr+hCMX4m6xmfiGjHso5Zpg==", + "version": "6.0.0-beta.6", + "resolved": "https://registry.npmjs.org/@angular/router/-/router-6.0.0-beta.6.tgz", + "integrity": "sha512-Oiv1YEj5KwQQykJgYNyVBo3grxhiEvzO9x9aHVSW+AtnXbv2d21puX+uI7UjGed0PRIinQbU3G0y+qYjux6Geg==", "dev": true, "requires": { "tslib": "1.9.0" @@ -1062,6 +1105,14 @@ } } }, + "string_decoder": { + "version": "1.0.3", + "bundled": true, + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + }, "string-width": { "version": "1.0.2", "bundled": true, @@ -1072,14 +1123,6 @@ "strip-ansi": "3.0.1" } }, - "string_decoder": { - "version": "1.0.3", - "bundled": true, - "dev": true, - "requires": { - "safe-buffer": "5.1.1" - } - }, "stringstream": { "version": "0.0.5", "bundled": true, @@ -2825,6 +2868,16 @@ "integrity": "sha512-UBYHWph6P3tutkbXpW6XYg9ZPbTKjw/YC2hGG1/GEvWwTbvezBUv3h+mmUFw79T3RFPnmedpiXdOBbXX+4l0jg==", "dev": true }, + "@types/shelljs": { + "version": "0.7.7", + "resolved": "https://registry.npmjs.org/@types/shelljs/-/shelljs-0.7.7.tgz", + "integrity": "sha512-37gn9J75TVAhhmzBqoX0vzQodsjzri1SxElMX+Wk092IobNZSGW/8X4ygLOQOrKjCQr5nxGN9Ik0UA3fSdL1Pw==", + "dev": true, + "requires": { + "@types/glob": "5.0.35", + "@types/node": "7.0.54" + } + }, "@types/vinyl": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/@types/vinyl/-/vinyl-2.0.2.tgz", @@ -2834,16 +2887,6 @@ "@types/node": "7.0.54" } }, - "JSONStream": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.2.tgz", - "integrity": "sha1-wQI3G27Dp887hHygDCC7D85Mbeo=", - "dev": true, - "requires": { - "jsonparse": "1.3.1", - "through": "2.3.8" - } - }, "a-sync-waterfall": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/a-sync-waterfall/-/a-sync-waterfall-1.0.0.tgz", @@ -5160,8 +5203,8 @@ "integrity": "sha512-Qqxaul7TELPnTrm7KhWGjVTFTs7T9yUblzXugtXEff2C2uXFK4S0uVGqsyX7feQZzoFbXnJ1KdEs+IMmSxGbqQ==", "dev": true, "requires": { - "JSONStream": "1.3.2", "is-text-path": "1.0.1", + "JSONStream": "1.3.2", "lodash": "4.17.5", "meow": "3.7.0", "split2": "2.2.0", @@ -5882,9 +5925,9 @@ } }, "dgeni-packages": { - "version": "0.24.1", - "resolved": "https://registry.npmjs.org/dgeni-packages/-/dgeni-packages-0.24.1.tgz", - "integrity": "sha512-evUE+6J2OWG5Rr6igTkCEvws8dhoGXGJwVGvAl+np9Xg1h6Au8RiGqXA96YqbHBIj5Kf2IiiE0trrrNe90ZUYw==", + "version": "0.24.3", + "resolved": "https://registry.npmjs.org/dgeni-packages/-/dgeni-packages-0.24.3.tgz", + "integrity": "sha512-WWlZTm2XfSB669e1Gi5dUAw3PUMYC0tXSPiyOZ/DJcexTv3QR2Q1NAg7sqpHmb9WPoXKHAuXIT0bowft+dmrYg==", "dev": true, "requires": { "canonical-path": "0.0.2", @@ -5901,7 +5944,7 @@ "mkdirp": "0.5.1", "mkdirp-promise": "5.0.1", "node-html-encoder": "0.0.2", - "nunjucks": "3.0.1", + "nunjucks": "3.1.2", "semver": "5.5.0", "shelljs": "0.7.8", "source-map-support": "0.4.18", @@ -6005,9 +6048,9 @@ } }, "domino": { - "version": "1.0.30", - "resolved": "https://registry.npmjs.org/domino/-/domino-1.0.30.tgz", - "integrity": "sha512-ikq8WiDSkICdkElud317F2Sigc6A3EDpWsxWBwIZqOl95km4p/Vc9Rj98id7qKgsjDmExj0AVM7JOd4bb647Xg==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/domino/-/domino-2.0.1.tgz", + "integrity": "sha512-f08oiY92tD+GHNiBTZKWmU9l2dbpWEMC9/UX4hM2kD3TSONcfHmCR2llqZpcipSAtVMz/dVgLfg5tfxy7axwLw==", "dev": true }, "domutils": { @@ -7309,7 +7352,6 @@ "dev": true, "requires": { "@google-cloud/functions-emulator": "1.0.0-alpha.23", - "JSONStream": "1.3.2", "archiver": "2.1.1", "chalk": "1.1.3", "cjson": "0.3.3", @@ -7330,6 +7372,7 @@ "inquirer": "0.12.0", "is": "3.2.1", "jsonschema": "1.2.2", + "JSONStream": "1.3.2", "jsonwebtoken": "7.4.3", "lodash": "4.17.5", "open": "0.0.5", @@ -8489,6 +8532,14 @@ } } }, + "string_decoder": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "requires": { + "safe-buffer": "5.0.1" + } + }, "string-width": { "version": "1.0.2", "bundled": true, @@ -8499,14 +8550,6 @@ "strip-ansi": "3.0.1" } }, - "string_decoder": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "requires": { - "safe-buffer": "5.0.1" - } - }, "stringstream": { "version": "0.0.5", "bundled": true, @@ -9992,6 +10035,14 @@ } } }, + "string_decoder": { + "version": "1.0.3", + "bundled": true, + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + }, "string-width": { "version": "1.0.2", "bundled": true, @@ -10002,14 +10053,6 @@ "strip-ansi": "3.0.1" } }, - "string_decoder": { - "version": "1.0.3", - "bundled": true, - "dev": true, - "requires": { - "safe-buffer": "5.1.1" - } - }, "stringstream": { "version": "0.0.5", "bundled": true, @@ -10979,6 +11022,14 @@ } } }, + "string_decoder": { + "version": "1.0.3", + "bundled": true, + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + }, "string-width": { "version": "1.0.2", "bundled": true, @@ -10989,14 +11040,6 @@ "strip-ansi": "3.0.1" } }, - "string_decoder": { - "version": "1.0.3", - "bundled": true, - "dev": true, - "requires": { - "safe-buffer": "5.1.1" - } - }, "stringstream": { "version": "0.0.5", "bundled": true, @@ -13444,6 +13487,16 @@ "integrity": "sha512-iX5OFQ6yx9NgbHCwse51ohhKgLuLL7Z5cNOeZOPIlDUtAMrxlruHLzVZxbltdHE5mEDXN+75oFOwq6Gn0MZwsA==", "dev": true }, + "JSONStream": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.2.tgz", + "integrity": "sha1-wQI3G27Dp887hHygDCC7D85Mbeo=", + "dev": true, + "requires": { + "jsonparse": "1.3.1", + "through": "2.3.8" + } + }, "jsonwebtoken": { "version": "7.4.3", "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-7.4.3.tgz", @@ -15559,14 +15612,15 @@ "dev": true }, "nunjucks": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/nunjucks/-/nunjucks-3.0.1.tgz", - "integrity": "sha1-TedKPlULr2+jNwMj89HHwqhr3E0=", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/nunjucks/-/nunjucks-3.1.2.tgz", + "integrity": "sha512-pJXncV07mmiuIDL9OqdNkcpvifuDMzMq9qBQT9SHasAS7AEwzNp/r/jHNl+9O0+zsldcdWG9ZtXo/nwu2cTqXA==", "dev": true, "requires": { "a-sync-waterfall": "1.0.0", "asap": "2.0.6", "chokidar": "1.7.0", + "postinstall-build": "5.0.1", "yargs": "3.32.0" } }, @@ -16704,6 +16758,12 @@ "integrity": "sha1-h/OPnxj3dKSrTIojL1xc6IcqnRU=", "dev": true }, + "postinstall-build": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postinstall-build/-/postinstall-build-5.0.1.tgz", + "integrity": "sha1-uRepB5smF42aJK9aXNjLSpkdEbk=", + "dev": true + }, "power-assert": { "version": "1.4.4", "resolved": "https://registry.npmjs.org/power-assert/-/power-assert-1.4.4.tgz", @@ -17816,13 +17876,10 @@ "dev": true }, "rollup": { - "version": "0.41.6", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-0.41.6.tgz", - "integrity": "sha1-4NBUl4d6OYwQTYFtJzOnGKepTio=", - "dev": true, - "requires": { - "source-map-support": "0.4.18" - } + "version": "0.56.3", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-0.56.3.tgz", + "integrity": "sha512-/iH4RfioboHgBjo7TbQcdMad/ifVGY/ToOB1AsW7oZHUhfhm+low6QlrImUSaJO1JqklOpWEKlD+b3MZYLuptA==", + "dev": true }, "rollup-plugin-alias": { "version": "1.4.0", @@ -17834,9 +17891,9 @@ } }, "rollup-plugin-node-resolve": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-3.0.2.tgz", - "integrity": "sha512-ZwmMip/yqw6cmDQJuCQJ1G7gw2z11iGUtQNFYrFZHmqadRHU+OZGC3nOXwXu+UTvcm5lzDspB1EYWrkTgPWybw==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-3.0.3.tgz", + "integrity": "sha512-qJLXJ1aASV6p8SrEfRdQdHmb5OQmqXyIWIdVGcju8QFzftSsHcuL554Vy+n8mr0fZCC+ksO6aWJ7TAVl2F+Qwg==", "dev": true, "requires": { "builtin-modules": "1.1.1", @@ -19337,6 +19394,15 @@ "integrity": "sha1-1cdSgl5TZ+eG944Y5EXqIjoVWVI=", "dev": true }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + }, "string-format-obj": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/string-format-obj/-/string-format-obj-1.1.1.tgz", @@ -19370,15 +19436,6 @@ "strip-ansi": "3.0.1" } }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", - "dev": true, - "requires": { - "safe-buffer": "5.1.1" - } - }, "stringifier": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/stringifier/-/stringifier-1.3.0.tgz", diff --git a/package.json b/package.json index 3bbaf92b8bf..60bd0c1587f 100644 --- a/package.json +++ b/package.json @@ -26,12 +26,12 @@ "node": ">= 5.4.1" }, "dependencies": { - "@angular/animations": ">=6.0.0-beta.0 <7.0.0", - "@angular/common": ">=6.0.0-beta.0 <7.0.0", - "@angular/compiler": ">=6.0.0-beta.0 <7.0.0", - "@angular/core": ">=6.0.0-beta.0 <7.0.0", - "@angular/forms": ">=6.0.0-beta.0 <7.0.0", - "@angular/platform-browser": ">=6.0.0-beta.0 <7.0.0", + "@angular/animations": ">=6.0.0-beta.6 <7.0.0", + "@angular/common": ">=6.0.0-beta.6 <7.0.0", + "@angular/compiler": ">=6.0.0-beta.6 <7.0.0", + "@angular/core": ">=6.0.0-beta.6 <7.0.0", + "@angular/forms": ">=6.0.0-beta.6 <7.0.0", + "@angular/platform-browser": ">=6.0.0-beta.6 <7.0.0", "core-js": "^2.4.1", "rxjs": "^5.5.5", "systemjs": "0.19.43", @@ -40,12 +40,12 @@ "zone.js": "^0.8.12" }, "devDependencies": { - "@angular/bazel": ">=6.0.0-beta.0 <7.0.0", - "@angular/compiler-cli": ">=6.0.0-beta.0 <7.0.0", - "@angular/http": ">=6.0.0-beta.0 <7.0.0", - "@angular/platform-browser-dynamic": ">=6.0.0-beta.0 <7.0.0", - "@angular/platform-server": ">=6.0.0-beta.0 <7.0.0", - "@angular/router": ">=6.0.0-beta.0 <7.0.0", + "@angular/bazel": ">=6.0.0-beta.6 <7.0.0", + "@angular/compiler-cli": ">=6.0.0-beta.6 <7.0.0", + "@angular/http": ">=6.0.0-beta.6 <7.0.0", + "@angular/platform-browser-dynamic": ">=6.0.0-beta.6 <7.0.0", + "@angular/platform-server": ">=6.0.0-beta.6 <7.0.0", + "@angular/router": ">=6.0.0-beta.6 <7.0.0", "@angular/upgrade": "^5.0.1", "@bazel/ibazel": "0.3.1", "@google-cloud/storage": "^1.1.1", diff --git a/src/cdk-experimental/dialog/dialog-container.ts b/src/cdk-experimental/dialog/dialog-container.ts index 2821ddfc7e2..c31332fd3c9 100644 --- a/src/cdk-experimental/dialog/dialog-container.ts +++ b/src/cdk-experimental/dialog/dialog-container.ts @@ -47,7 +47,6 @@ export function throwDialogContentAlreadyAttachedError() { templateUrl: './dialog-container.html', styleUrls: ['dialog-container.css'], encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, // Using OnPush for dialogs caused some G3 sync issues. Disabled until we can track them down. // tslint:disable-next-line:validate-decorators changeDetection: ChangeDetectionStrategy.Default, diff --git a/src/cdk/stepper/stepper.ts b/src/cdk/stepper/stepper.ts index c184b32f6ff..dcdc614c7a8 100644 --- a/src/cdk/stepper/stepper.ts +++ b/src/cdk/stepper/stepper.ts @@ -73,7 +73,6 @@ export class StepperSelectionEvent { exportAs: 'cdkStep', templateUrl: 'step.html', encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, }) export class CdkStep implements OnChanges { diff --git a/src/cdk/table/row.ts b/src/cdk/table/row.ts index 76bb6c377eb..afd7d94bebf 100644 --- a/src/cdk/table/row.ts +++ b/src/cdk/table/row.ts @@ -159,7 +159,6 @@ export class CdkCellOutlet { }, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, }) export class CdkHeaderRow { } @@ -174,6 +173,5 @@ export class CdkHeaderRow { } }, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, }) export class CdkRow { } diff --git a/src/cdk/table/table.ts b/src/cdk/table/table.ts index a5ae5ac4982..6603da3e353 100644 --- a/src/cdk/table/table.ts +++ b/src/cdk/table/table.ts @@ -94,7 +94,6 @@ abstract class RowViewRef extends EmbeddedViewRef> 'class': 'cdk-table', }, encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, }) export class CdkTable implements CollectionViewer, OnInit, AfterContentChecked { diff --git a/src/cdk/tree/tree.ts b/src/cdk/tree/tree.ts index 7f854bef4df..a2cc663cb68 100644 --- a/src/cdk/tree/tree.ts +++ b/src/cdk/tree/tree.ts @@ -132,7 +132,6 @@ export class CdkTreeNode implements FocusableOption, OnDestroy { 'role': 'tree', }, encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush }) export class CdkTree implements CollectionViewer, OnInit, OnDestroy { diff --git a/src/demo-app/a11y/a11y.ts b/src/demo-app/a11y/a11y.ts index 9db5dda65aa..4a8592891fc 100644 --- a/src/demo-app/a11y/a11y.ts +++ b/src/demo-app/a11y/a11y.ts @@ -23,7 +23,6 @@ export class AccessibilityHome {} templateUrl: 'a11y.html', styleUrls: ['a11y.css'], encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, }) export class AccessibilityDemo implements OnDestroy { currentComponent: string = ''; diff --git a/src/demo-app/a11y/icon/icon-a11y.ts b/src/demo-app/a11y/icon/icon-a11y.ts index aabf76cd360..f527a84ed64 100644 --- a/src/demo-app/a11y/icon/icon-a11y.ts +++ b/src/demo-app/a11y/icon/icon-a11y.ts @@ -14,7 +14,6 @@ import {MatSnackBar} from '@angular/material'; selector: 'icon-a11y', templateUrl: 'icon-a11y.html', encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, }) export class IconAccessibilityDemo { constructor(private snackBar: MatSnackBar) {} diff --git a/src/demo-app/a11y/sidenav/basic-sidenav-a11y.ts b/src/demo-app/a11y/sidenav/basic-sidenav-a11y.ts index fa6d1741a98..4c87c1f0d03 100644 --- a/src/demo-app/a11y/sidenav/basic-sidenav-a11y.ts +++ b/src/demo-app/a11y/sidenav/basic-sidenav-a11y.ts @@ -16,6 +16,5 @@ import {Component, ViewEncapsulation} from '@angular/core'; styleUrls: ['shared.css'], host: {'class': 'a11y-demo-sidenav-app'}, encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, }) export class SidenavBasicAccessibilityDemo {} diff --git a/src/demo-app/a11y/sidenav/dual-sidenav-a11y.ts b/src/demo-app/a11y/sidenav/dual-sidenav-a11y.ts index 4075ed3577a..91376ba319f 100644 --- a/src/demo-app/a11y/sidenav/dual-sidenav-a11y.ts +++ b/src/demo-app/a11y/sidenav/dual-sidenav-a11y.ts @@ -17,7 +17,6 @@ import {MatSnackBar} from '@angular/material/snack-bar'; styleUrls: ['shared.css', 'dual-sidenav-a11y.css'], host: {'class': 'a11y-demo-sidenav-app'}, encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, }) export class SidenavDualAccessibilityDemo { constructor(private _snackbar: MatSnackBar) {} diff --git a/src/demo-app/a11y/sidenav/mobile-sidenav-a11y.ts b/src/demo-app/a11y/sidenav/mobile-sidenav-a11y.ts index 0c9a72f6a67..60e6f1380a5 100644 --- a/src/demo-app/a11y/sidenav/mobile-sidenav-a11y.ts +++ b/src/demo-app/a11y/sidenav/mobile-sidenav-a11y.ts @@ -17,7 +17,6 @@ import {ChangeDetectorRef, Component, OnDestroy, ViewEncapsulation} from '@angul styleUrls: ['shared.css', 'mobile-sidenav-a11y.css'], host: {'class': 'a11y-demo-sidenav-app'}, encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, }) export class SidenavMobileAccessibilityDemo implements OnDestroy { mobileQuery: MediaQueryList; diff --git a/src/demo-app/a11y/sidenav/sidenav-a11y.ts b/src/demo-app/a11y/sidenav/sidenav-a11y.ts index 529ae262d1a..97e1af42e45 100644 --- a/src/demo-app/a11y/sidenav/sidenav-a11y.ts +++ b/src/demo-app/a11y/sidenav/sidenav-a11y.ts @@ -13,6 +13,5 @@ import {Component} from '@angular/core'; moduleId: module.id, selector: 'sidenav-a11y', templateUrl: 'sidenav-a11y.html', - preserveWhitespaces: false, }) export class SidenavAccessibilityDemo {} diff --git a/src/demo-app/autocomplete/autocomplete-demo.ts b/src/demo-app/autocomplete/autocomplete-demo.ts index 3a70ab24a49..1115c188a9a 100644 --- a/src/demo-app/autocomplete/autocomplete-demo.ts +++ b/src/demo-app/autocomplete/autocomplete-demo.ts @@ -27,7 +27,6 @@ export interface StateGroup { templateUrl: 'autocomplete-demo.html', styleUrls: ['autocomplete-demo.css'], encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, }) export class AutocompleteDemo { stateCtrl: FormControl; diff --git a/src/demo-app/bottom-sheet/bottom-sheet-demo.ts b/src/demo-app/bottom-sheet/bottom-sheet-demo.ts index e3bd8c80f4e..0945a682ef7 100644 --- a/src/demo-app/bottom-sheet/bottom-sheet-demo.ts +++ b/src/demo-app/bottom-sheet/bottom-sheet-demo.ts @@ -21,7 +21,6 @@ const defaultConfig = new MatBottomSheetConfig(); styleUrls: ['bottom-sheet-demo.css'], templateUrl: 'bottom-sheet-demo.html', encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, }) export class BottomSheetDemo { config: MatBottomSheetConfig = { diff --git a/src/demo-app/demo-app/demo-app.ts b/src/demo-app/demo-app/demo-app.ts index 2624072af22..674c42c26f9 100644 --- a/src/demo-app/demo-app/demo-app.ts +++ b/src/demo-app/demo-app/demo-app.ts @@ -20,7 +20,6 @@ import {Component, ElementRef, ViewEncapsulation} from '@angular/core'; selector: 'entry-app', template: '', encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, }) export class EntryApp {} @@ -45,7 +44,6 @@ export class Home {} templateUrl: 'demo-app.html', styleUrls: ['demo-app.css'], encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, }) export class DemoApp { dark = false; diff --git a/src/demo-app/drawer/drawer-demo.ts b/src/demo-app/drawer/drawer-demo.ts index 4e944959c24..8941ebdb24e 100644 --- a/src/demo-app/drawer/drawer-demo.ts +++ b/src/demo-app/drawer/drawer-demo.ts @@ -15,7 +15,6 @@ import {Component, ViewEncapsulation} from '@angular/core'; templateUrl: 'drawer-demo.html', styleUrls: ['drawer-demo.css'], encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, }) export class DrawerDemo { invert = false; diff --git a/src/demo-app/expansion/expansion-demo.ts b/src/demo-app/expansion/expansion-demo.ts index f3fab72d743..5c8a43401cd 100644 --- a/src/demo-app/expansion/expansion-demo.ts +++ b/src/demo-app/expansion/expansion-demo.ts @@ -15,7 +15,6 @@ import {MatAccordion} from '@angular/material'; styleUrls: ['expansion-demo.css'], templateUrl: 'expansion-demo.html', encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, }) export class ExpansionDemo { @ViewChild(MatAccordion) accordion: MatAccordion; diff --git a/src/demo-app/icon/icon-demo.ts b/src/demo-app/icon/icon-demo.ts index 3dc295156a8..bc032395c3e 100644 --- a/src/demo-app/icon/icon-demo.ts +++ b/src/demo-app/icon/icon-demo.ts @@ -16,7 +16,6 @@ import {MatIconRegistry} from '@angular/material'; templateUrl: 'icon-demo.html', styleUrls: ['icon-demo.css'], encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, }) export class IconDemo { constructor(iconRegistry: MatIconRegistry, sanitizer: DomSanitizer) { diff --git a/src/demo-app/overlay/overlay-demo.ts b/src/demo-app/overlay/overlay-demo.ts index 54d2ed256cb..1f77b4f7027 100644 --- a/src/demo-app/overlay/overlay-demo.ts +++ b/src/demo-app/overlay/overlay-demo.ts @@ -26,7 +26,6 @@ import {tap} from 'rxjs/operators/tap'; templateUrl: 'overlay-demo.html', styleUrls: ['overlay-demo.css'], encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, }) export class OverlayDemo { nextPosition: number = 0; diff --git a/src/demo-app/sidenav/sidenav-demo.ts b/src/demo-app/sidenav/sidenav-demo.ts index 4e1ad35c4e8..14252a023df 100644 --- a/src/demo-app/sidenav/sidenav-demo.ts +++ b/src/demo-app/sidenav/sidenav-demo.ts @@ -15,7 +15,6 @@ import {Component, ViewEncapsulation} from '@angular/core'; templateUrl: 'sidenav-demo.html', styleUrls: ['sidenav-demo.css'], encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, }) export class SidenavDemo { isLaunched = false; diff --git a/src/demo-app/snack-bar/snack-bar-demo.ts b/src/demo-app/snack-bar/snack-bar-demo.ts index ea95babde2d..0e9616b727d 100644 --- a/src/demo-app/snack-bar/snack-bar-demo.ts +++ b/src/demo-app/snack-bar/snack-bar-demo.ts @@ -22,7 +22,6 @@ import { styleUrls: ['snack-bar-demo.css'], templateUrl: 'snack-bar-demo.html', encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, }) export class SnackBarDemo { @ViewChild('template') template: TemplateRef; diff --git a/src/demo-app/tabs/tabs-demo.ts b/src/demo-app/tabs/tabs-demo.ts index 1f9263215e3..f6b9712ef6f 100644 --- a/src/demo-app/tabs/tabs-demo.ts +++ b/src/demo-app/tabs/tabs-demo.ts @@ -15,7 +15,6 @@ import {Observable} from 'rxjs/Observable'; templateUrl: 'tabs-demo.html', styleUrls: ['tabs-demo.css'], encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, }) export class TabsDemo { // Nav bar demo diff --git a/src/demo-app/tooltip/tooltip-demo.ts b/src/demo-app/tooltip/tooltip-demo.ts index 08a066958e4..afcd11665c3 100644 --- a/src/demo-app/tooltip/tooltip-demo.ts +++ b/src/demo-app/tooltip/tooltip-demo.ts @@ -16,7 +16,6 @@ import {TooltipPosition} from '@angular/material'; templateUrl: 'tooltip-demo.html', styleUrls: ['tooltip-demo.css'], encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, }) export class TooltipDemo { position: TooltipPosition = 'below'; diff --git a/src/lib/autocomplete/autocomplete.ts b/src/lib/autocomplete/autocomplete.ts index de85cd5cec6..c60a95ab9c1 100644 --- a/src/lib/autocomplete/autocomplete.ts +++ b/src/lib/autocomplete/autocomplete.ts @@ -71,7 +71,6 @@ export const MAT_AUTOCOMPLETE_DEFAULT_OPTIONS = templateUrl: 'autocomplete.html', styleUrls: ['autocomplete.css'], encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, exportAs: 'matAutocomplete', inputs: ['disableRipple'], diff --git a/src/lib/bottom-sheet/bottom-sheet-container.ts b/src/lib/bottom-sheet/bottom-sheet-container.ts index d6a6bc4f8ad..cf859f25f32 100644 --- a/src/lib/bottom-sheet/bottom-sheet-container.ts +++ b/src/lib/bottom-sheet/bottom-sheet-container.ts @@ -47,7 +47,6 @@ import {FocusTrap, FocusTrapFactory} from '@angular/cdk/a11y'; styleUrls: ['bottom-sheet-container.css'], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, animations: [matBottomSheetAnimations.bottomSheetState], host: { 'class': 'mat-bottom-sheet-container', diff --git a/src/lib/button-toggle/button-toggle.ts b/src/lib/button-toggle/button-toggle.ts index 833e751a31a..2f47ef7abc9 100644 --- a/src/lib/button-toggle/button-toggle.ts +++ b/src/lib/button-toggle/button-toggle.ts @@ -242,7 +242,6 @@ export const _MatButtonToggleMixinBase = mixinDisableRipple(MatButtonToggleBase) templateUrl: 'button-toggle.html', styleUrls: ['button-toggle.css'], encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, exportAs: 'matButtonToggle', changeDetection: ChangeDetectionStrategy.OnPush, inputs: ['disableRipple'], diff --git a/src/lib/button/button.ts b/src/lib/button/button.ts index feb8840dbba..0b4a3958279 100644 --- a/src/lib/button/button.ts +++ b/src/lib/button/button.ts @@ -70,7 +70,6 @@ export const _MatButtonMixinBase = mixinColor(mixinDisabled(mixinDisableRipple(M styleUrls: ['button.css'], inputs: ['disabled', 'disableRipple', 'color'], encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, }) export class MatButton extends _MatButtonMixinBase @@ -155,7 +154,6 @@ export class MatButton extends _MatButtonMixinBase templateUrl: 'button.html', styleUrls: ['button.css'], encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, }) export class MatAnchor extends MatButton { diff --git a/src/lib/card/card.ts b/src/lib/card/card.ts index 17d7ebfb71d..431af65b8ac 100644 --- a/src/lib/card/card.ts +++ b/src/lib/card/card.ts @@ -155,7 +155,6 @@ export class MatCardAvatar {} templateUrl: 'card.html', styleUrls: ['card.css'], encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, host: {'class': 'mat-card'} }) @@ -172,7 +171,6 @@ export class MatCard {} selector: 'mat-card-header', templateUrl: 'card-header.html', encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, host: {'class': 'mat-card-header'} }) @@ -189,7 +187,6 @@ export class MatCardHeader {} selector: 'mat-card-title-group', templateUrl: 'card-title-group.html', encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, host: {'class': 'mat-card-title-group'} }) diff --git a/src/lib/checkbox/checkbox.ts b/src/lib/checkbox/checkbox.ts index cb261ec98a9..d10e172e5af 100644 --- a/src/lib/checkbox/checkbox.ts +++ b/src/lib/checkbox/checkbox.ts @@ -112,7 +112,6 @@ export const _MatCheckboxMixinBase = providers: [MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR], inputs: ['disabled', 'disableRipple', 'color', 'tabIndex'], encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush }) export class MatCheckbox extends _MatCheckboxMixinBase implements ControlValueAccessor, diff --git a/src/lib/chips/chip-list.ts b/src/lib/chips/chip-list.ts index 282bf4ff5ae..13cd2f7a0e6 100644 --- a/src/lib/chips/chip-list.ts +++ b/src/lib/chips/chip-list.ts @@ -92,7 +92,6 @@ export class MatChipListChange { providers: [{provide: MatFormFieldControl, useExisting: MatChipList}], styleUrls: ['chips.css'], encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush }) export class MatChipList extends _MatChipListMixinBase implements MatFormFieldControl, diff --git a/src/lib/core/option/optgroup.ts b/src/lib/core/option/optgroup.ts index 512177a99c6..42a03976e79 100644 --- a/src/lib/core/option/optgroup.ts +++ b/src/lib/core/option/optgroup.ts @@ -26,7 +26,6 @@ let _uniqueOptgroupIdCounter = 0; exportAs: 'matOptgroup', templateUrl: 'optgroup.html', encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, inputs: ['disabled'], styleUrls: ['optgroup.css'], diff --git a/src/lib/core/option/option.ts b/src/lib/core/option/option.ts index d943d97768c..b743aaf254b 100644 --- a/src/lib/core/option/option.ts +++ b/src/lib/core/option/option.ts @@ -81,7 +81,6 @@ export const MAT_OPTION_PARENT_COMPONENT = styleUrls: ['option.css'], templateUrl: 'option.html', encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, }) export class MatOption implements AfterViewChecked { diff --git a/src/lib/core/selection/pseudo-checkbox/pseudo-checkbox.ts b/src/lib/core/selection/pseudo-checkbox/pseudo-checkbox.ts index 5ddb31c8469..cd245b01f69 100644 --- a/src/lib/core/selection/pseudo-checkbox/pseudo-checkbox.ts +++ b/src/lib/core/selection/pseudo-checkbox/pseudo-checkbox.ts @@ -26,7 +26,6 @@ export type MatPseudoCheckboxState = 'unchecked' | 'checked' | 'indeterminate'; @Component({ moduleId: module.id, encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, selector: 'mat-pseudo-checkbox', styleUrls: ['pseudo-checkbox.css'], diff --git a/src/lib/datepicker/calendar-body.ts b/src/lib/datepicker/calendar-body.ts index 7ed2e5e2e1e..6e6ff27e310 100644 --- a/src/lib/datepicker/calendar-body.ts +++ b/src/lib/datepicker/calendar-body.ts @@ -46,7 +46,6 @@ export class MatCalendarCell { }, exportAs: 'matCalendarBody', encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, }) export class MatCalendarBody { diff --git a/src/lib/datepicker/calendar.ts b/src/lib/datepicker/calendar.ts index c7533062fc9..1d25bd2b86b 100644 --- a/src/lib/datepicker/calendar.ts +++ b/src/lib/datepicker/calendar.ts @@ -45,7 +45,6 @@ import {MatYearView} from './year-view'; }, exportAs: 'matCalendar', encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, }) export class MatCalendar implements AfterContentInit, OnDestroy, OnChanges { diff --git a/src/lib/datepicker/datepicker-toggle.ts b/src/lib/datepicker/datepicker-toggle.ts index ac50c391f23..3adf32c2339 100644 --- a/src/lib/datepicker/datepicker-toggle.ts +++ b/src/lib/datepicker/datepicker-toggle.ts @@ -47,7 +47,6 @@ export class MatDatepickerToggleIcon {} }, exportAs: 'matDatepickerToggle', encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, }) export class MatDatepickerToggle implements AfterContentInit, OnChanges, OnDestroy { diff --git a/src/lib/datepicker/datepicker.ts b/src/lib/datepicker/datepicker.ts index 47d102f4922..7ef1291d9aa 100644 --- a/src/lib/datepicker/datepicker.ts +++ b/src/lib/datepicker/datepicker.ts @@ -94,7 +94,6 @@ export const _MatDatepickerContentMixinBase = mixinColor(MatDatepickerContentBas }, exportAs: 'matDatepickerContent', encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, inputs: ['color'], }) @@ -134,7 +133,6 @@ export class MatDatepickerContent extends _MatDatepickerContentMixinBase exportAs: 'matDatepicker', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, }) export class MatDatepicker implements OnDestroy, CanColor { /** The date to open the calendar to initially. */ diff --git a/src/lib/datepicker/month-view.ts b/src/lib/datepicker/month-view.ts index dcfd05c2ebf..1dcf444ef54 100644 --- a/src/lib/datepicker/month-view.ts +++ b/src/lib/datepicker/month-view.ts @@ -49,7 +49,6 @@ const DAYS_PER_WEEK = 7; templateUrl: 'month-view.html', exportAs: 'matMonthView', encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush }) export class MatMonthView implements AfterContentInit { diff --git a/src/lib/datepicker/multi-year-view.ts b/src/lib/datepicker/multi-year-view.ts index fef053e2645..29f29542d26 100644 --- a/src/lib/datepicker/multi-year-view.ts +++ b/src/lib/datepicker/multi-year-view.ts @@ -49,7 +49,6 @@ export const yearsPerRow = 4; templateUrl: 'multi-year-view.html', exportAs: 'matMultiYearView', encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush }) export class MatMultiYearView implements AfterContentInit { diff --git a/src/lib/datepicker/year-view.ts b/src/lib/datepicker/year-view.ts index 242bf0f2cdc..fd7e1247823 100644 --- a/src/lib/datepicker/year-view.ts +++ b/src/lib/datepicker/year-view.ts @@ -45,7 +45,6 @@ import {createMissingDateImplError} from './datepicker-errors'; templateUrl: 'year-view.html', exportAs: 'matYearView', encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush }) export class MatYearView implements AfterContentInit { diff --git a/src/lib/dialog/dialog-container.ts b/src/lib/dialog/dialog-container.ts index 2e371fdd2fb..3a705be3752 100644 --- a/src/lib/dialog/dialog-container.ts +++ b/src/lib/dialog/dialog-container.ts @@ -52,7 +52,6 @@ export function throwMatDialogContentAlreadyAttachedError() { templateUrl: 'dialog-container.html', styleUrls: ['dialog.css'], encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, // Using OnPush for dialogs caused some G3 sync issues. Disabled until we can track them down. // tslint:disable-next-line:validate-decorators changeDetection: ChangeDetectionStrategy.Default, diff --git a/src/lib/divider/divider.ts b/src/lib/divider/divider.ts index e5eb0d60f2b..97f4856a9d1 100644 --- a/src/lib/divider/divider.ts +++ b/src/lib/divider/divider.ts @@ -23,7 +23,6 @@ import {coerceBooleanProperty} from '@angular/cdk/coercion'; styleUrls: ['divider.css'], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, - preserveWhitespaces: false, }) export class MatDivider { /** Whether the divider is vertically aligned. */ diff --git a/src/lib/expansion/expansion-panel-header.ts b/src/lib/expansion/expansion-panel-header.ts index bbd62e90e72..7ea173da63a 100644 --- a/src/lib/expansion/expansion-panel-header.ts +++ b/src/lib/expansion/expansion-panel-header.ts @@ -37,7 +37,6 @@ import {matExpansionAnimations} from './expansion-animations'; styleUrls: ['./expansion-panel-header.css'], templateUrl: './expansion-panel-header.html', encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, animations: [ matExpansionAnimations.indicatorRotate, diff --git a/src/lib/expansion/expansion-panel.ts b/src/lib/expansion/expansion-panel.ts index 960e4727035..2b3631e2f34 100644 --- a/src/lib/expansion/expansion-panel.ts +++ b/src/lib/expansion/expansion-panel.ts @@ -54,7 +54,6 @@ let uniqueId = 0; exportAs: 'matExpansionPanel', templateUrl: './expansion-panel.html', encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, inputs: ['disabled', 'expanded'], outputs: ['opened', 'closed', 'expandedChange'], diff --git a/src/lib/form-field/form-field.ts b/src/lib/form-field/form-field.ts index 209da5ba83a..5e804eda745 100644 --- a/src/lib/form-field/form-field.ts +++ b/src/lib/form-field/form-field.ts @@ -114,7 +114,6 @@ export type MatFormFieldAppearance = 'legacy' | 'standard' | 'fill' | 'outline'; }, inputs: ['color'], encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, }) diff --git a/src/lib/grid-list/grid-list.ts b/src/lib/grid-list/grid-list.ts index 1b609548ea7..a0f872dab54 100644 --- a/src/lib/grid-list/grid-list.ts +++ b/src/lib/grid-list/grid-list.ts @@ -45,7 +45,6 @@ const MAT_FIT_MODE = 'fit'; }, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, }) export class MatGridList implements OnInit, AfterContentChecked { /** Number of columns being rendered. */ diff --git a/src/lib/grid-list/grid-tile.ts b/src/lib/grid-list/grid-tile.ts index 50add7a6278..87bc53abfc2 100644 --- a/src/lib/grid-list/grid-tile.ts +++ b/src/lib/grid-list/grid-tile.ts @@ -30,7 +30,6 @@ import {coerceToNumber} from './grid-list-measure'; templateUrl: 'grid-tile.html', styleUrls: ['grid-list.css'], encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, }) export class MatGridTile { @@ -64,7 +63,6 @@ export class MatGridTile { templateUrl: 'grid-tile-text.html', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, }) export class MatGridTileText implements AfterContentInit { /** diff --git a/src/lib/icon/icon.ts b/src/lib/icon/icon.ts index 3caba677e6c..215496e6104 100644 --- a/src/lib/icon/icon.ts +++ b/src/lib/icon/icon.ts @@ -69,7 +69,6 @@ export const _MatIconMixinBase = mixinColor(MatIconBase); 'class': 'mat-icon', }, encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, }) export class MatIcon extends _MatIconMixinBase implements OnChanges, OnInit, CanColor { diff --git a/src/lib/list/list.ts b/src/lib/list/list.ts index 38cc9eef283..00f9c7b8ab3 100644 --- a/src/lib/list/list.ts +++ b/src/lib/list/list.ts @@ -42,7 +42,6 @@ export const _MatListItemMixinBase = mixinDisableRipple(MatListItemBase); styleUrls: ['list.css'], inputs: ['disableRipple'], encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, }) export class MatNavList extends _MatListMixinBase implements CanDisableRipple {} @@ -56,7 +55,6 @@ export class MatNavList extends _MatListMixinBase implements CanDisableRipple {} styleUrls: ['list.css'], inputs: ['disableRipple'], encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, }) export class MatList extends _MatListMixinBase implements CanDisableRipple {} @@ -107,7 +105,6 @@ export class MatListSubheaderCssMatStyler {} inputs: ['disableRipple'], templateUrl: 'list-item.html', encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, }) export class MatListItem extends _MatListItemMixinBase implements AfterContentInit, diff --git a/src/lib/list/selection-list.ts b/src/lib/list/selection-list.ts index e5e01ebac44..c0654d165b3 100644 --- a/src/lib/list/selection-list.ts +++ b/src/lib/list/selection-list.ts @@ -102,7 +102,6 @@ export class MatSelectionListChange { }, templateUrl: 'list-option.html', encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, }) export class MatListOption extends _MatListOptionMixinBase @@ -292,7 +291,6 @@ export class MatListOption extends _MatListOptionMixinBase styleUrls: ['list.css'], encapsulation: ViewEncapsulation.None, providers: [MAT_SELECTION_LIST_VALUE_ACCESSOR], - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush }) export class MatSelectionList extends _MatSelectionListMixinBase implements FocusableOption, diff --git a/src/lib/menu/menu-directive.ts b/src/lib/menu/menu-directive.ts index 83c3dbae4e6..3863103b3f4 100644 --- a/src/lib/menu/menu-directive.ts +++ b/src/lib/menu/menu-directive.ts @@ -82,7 +82,6 @@ const MAT_MENU_BASE_ELEVATION = 2; styleUrls: ['menu.css'], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, animations: [ matMenuAnimations.transformMenu, matMenuAnimations.fadeInItems diff --git a/src/lib/menu/menu-item.ts b/src/lib/menu/menu-item.ts index 66b3bdd6608..ef588b32a96 100644 --- a/src/lib/menu/menu-item.ts +++ b/src/lib/menu/menu-item.ts @@ -51,7 +51,6 @@ export const _MatMenuItemMixinBase = mixinDisableRipple(mixinDisabled(MatMenuIte }, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, templateUrl: 'menu-item.html', }) export class MatMenuItem extends _MatMenuItemMixinBase diff --git a/src/lib/paginator/paginator.ts b/src/lib/paginator/paginator.ts index 8f1b00e1e07..f66ac29d617 100644 --- a/src/lib/paginator/paginator.ts +++ b/src/lib/paginator/paginator.ts @@ -55,7 +55,6 @@ export class PageEvent { }, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, }) export class MatPaginator implements OnInit, OnDestroy { private _initialized: boolean; diff --git a/src/lib/progress-bar/progress-bar.ts b/src/lib/progress-bar/progress-bar.ts index 99287048b03..6231ebda849 100644 --- a/src/lib/progress-bar/progress-bar.ts +++ b/src/lib/progress-bar/progress-bar.ts @@ -48,7 +48,6 @@ let progressbarId = 0; styleUrls: ['progress-bar.css'], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, }) export class MatProgressBar extends _MatProgressBarMixinBase implements CanColor { diff --git a/src/lib/progress-spinner/progress-spinner.ts b/src/lib/progress-spinner/progress-spinner.ts index 1ec6684b1ab..509e4279457 100644 --- a/src/lib/progress-spinner/progress-spinner.ts +++ b/src/lib/progress-spinner/progress-spinner.ts @@ -94,7 +94,6 @@ const INDETERMINATE_ANIMATION_TEMPLATE = ` styleUrls: ['progress-spinner.css'], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, }) export class MatProgressSpinner extends _MatProgressSpinnerMixinBase implements CanColor, OnChanges { @@ -260,7 +259,6 @@ export class MatProgressSpinner extends _MatProgressSpinnerMixinBase implements styleUrls: ['progress-spinner.css'], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, }) export class MatSpinner extends MatProgressSpinner { constructor(elementRef: ElementRef, platform: Platform, diff --git a/src/lib/radio/radio.ts b/src/lib/radio/radio.ts index 8cd37805d44..d91d652324f 100644 --- a/src/lib/radio/radio.ts +++ b/src/lib/radio/radio.ts @@ -319,7 +319,6 @@ export const _MatRadioButtonMixinBase = styleUrls: ['radio.css'], inputs: ['color', 'disableRipple', 'tabIndex'], encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, exportAs: 'matRadioButton', host: { 'class': 'mat-radio-button', diff --git a/src/lib/select/select.ts b/src/lib/select/select.ts index 0a5a291af16..ca8ccfd6a6b 100644 --- a/src/lib/select/select.ts +++ b/src/lib/select/select.ts @@ -188,7 +188,6 @@ export class MatSelectTrigger {} styleUrls: ['select.css'], inputs: ['disabled', 'disableRipple', 'tabIndex'], encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, host: { 'role': 'listbox', diff --git a/src/lib/sidenav/drawer.ts b/src/lib/sidenav/drawer.ts index 80ed422a97a..9fb1799c622 100644 --- a/src/lib/sidenav/drawer.ts +++ b/src/lib/sidenav/drawer.ts @@ -82,7 +82,6 @@ export const MAT_DRAWER_DEFAULT_AUTOSIZE = }, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, }) export class MatDrawerContent implements AfterContentInit { /** @@ -130,7 +129,6 @@ export class MatDrawerContent implements AfterContentInit { }, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, }) export class MatDrawer implements AfterContentInit, AfterContentChecked, OnDestroy { private _focusTrap: FocusTrap; @@ -434,7 +432,6 @@ export class MatDrawer implements AfterContentInit, AfterContentChecked, OnDestr }, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, }) export class MatDrawerContainer implements AfterContentInit, OnDestroy { @ContentChildren(MatDrawer) _drawers: QueryList; diff --git a/src/lib/sidenav/sidenav.ts b/src/lib/sidenav/sidenav.ts index e1b026078e0..e4d44a05ea5 100644 --- a/src/lib/sidenav/sidenav.ts +++ b/src/lib/sidenav/sidenav.ts @@ -34,7 +34,6 @@ import {coerceBooleanProperty, coerceNumberProperty} from '@angular/cdk/coercion }, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, }) export class MatSidenavContent extends MatDrawerContent { constructor( @@ -69,7 +68,6 @@ export class MatSidenavContent extends MatDrawerContent { }, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, }) export class MatSidenav extends MatDrawer { /** Whether the sidenav is fixed in the viewport. */ @@ -110,7 +108,6 @@ export class MatSidenav extends MatDrawer { }, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, }) export class MatSidenavContainer extends MatDrawerContainer { @ContentChildren(MatSidenav) _drawers: QueryList; diff --git a/src/lib/slide-toggle/slide-toggle.ts b/src/lib/slide-toggle/slide-toggle.ts index 42d5e11b689..67e2a222d62 100644 --- a/src/lib/slide-toggle/slide-toggle.ts +++ b/src/lib/slide-toggle/slide-toggle.ts @@ -82,7 +82,6 @@ export const _MatSlideToggleMixinBase = providers: [MAT_SLIDE_TOGGLE_VALUE_ACCESSOR], inputs: ['disabled', 'disableRipple', 'color', 'tabIndex'], encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, }) export class MatSlideToggle extends _MatSlideToggleMixinBase implements OnDestroy, AfterContentInit, diff --git a/src/lib/slider/slider.ts b/src/lib/slider/slider.ts index 4c1aca052de..2e4bf60c533 100644 --- a/src/lib/slider/slider.ts +++ b/src/lib/slider/slider.ts @@ -131,7 +131,6 @@ export const _MatSliderMixinBase = styleUrls: ['slider.css'], inputs: ['disabled', 'color', 'tabIndex'], encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, }) export class MatSlider extends _MatSliderMixinBase diff --git a/src/lib/snack-bar/simple-snack-bar.ts b/src/lib/snack-bar/simple-snack-bar.ts index 11436bb5843..0bfa2039bb6 100644 --- a/src/lib/snack-bar/simple-snack-bar.ts +++ b/src/lib/snack-bar/simple-snack-bar.ts @@ -22,7 +22,6 @@ import {matSnackBarAnimations} from './snack-bar-animations'; templateUrl: 'simple-snack-bar.html', styleUrls: ['simple-snack-bar.css'], encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, animations: [matSnackBarAnimations.contentFade], host: { diff --git a/src/lib/snack-bar/snack-bar-container.ts b/src/lib/snack-bar/snack-bar-container.ts index 34dd3668994..6e21d3cddfb 100644 --- a/src/lib/snack-bar/snack-bar-container.ts +++ b/src/lib/snack-bar/snack-bar-container.ts @@ -42,7 +42,6 @@ import {matSnackBarAnimations} from './snack-bar-animations'; styleUrls: ['snack-bar-container.css'], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, animations: [matSnackBarAnimations.snackBarState], host: { 'role': 'alert', diff --git a/src/lib/sort/sort-header.ts b/src/lib/sort/sort-header.ts index 24dfd51410b..a1e45108975 100644 --- a/src/lib/sort/sort-header.ts +++ b/src/lib/sort/sort-header.ts @@ -73,7 +73,6 @@ export interface ArrowViewStateTransition { '[class.mat-sort-header-disabled]': '_isDisabled()', }, encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, inputs: ['disabled'], animations: [ diff --git a/src/lib/stepper/step-header.ts b/src/lib/stepper/step-header.ts index 1b2cec0d201..cefaf236b9d 100644 --- a/src/lib/stepper/step-header.ts +++ b/src/lib/stepper/step-header.ts @@ -33,7 +33,6 @@ import {MatStepperIntl} from './stepper-intl'; 'role': 'tab', }, encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, }) export class MatStepHeader implements OnDestroy { diff --git a/src/lib/stepper/stepper.ts b/src/lib/stepper/stepper.ts index 14f18ecf372..5b6a4722527 100644 --- a/src/lib/stepper/stepper.ts +++ b/src/lib/stepper/stepper.ts @@ -44,7 +44,6 @@ export const _MatStepper = CdkStepper; providers: [{provide: ErrorStateMatcher, useExisting: MatStep}], encapsulation: ViewEncapsulation.None, exportAs: 'matStep', - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, }) export class MatStep extends CdkStep implements ErrorStateMatcher { @@ -119,7 +118,6 @@ export class MatStepper extends CdkStepper implements AfterContentInit { animations: [matStepperAnimations.horizontalStepTransition], providers: [{provide: MatStepper, useExisting: MatHorizontalStepper}], encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, }) export class MatHorizontalStepper extends MatStepper { } @@ -139,7 +137,6 @@ export class MatHorizontalStepper extends MatStepper { } animations: [matStepperAnimations.verticalStepTransition], providers: [{provide: MatStepper, useExisting: MatVerticalStepper}], encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, }) export class MatVerticalStepper extends MatStepper { diff --git a/src/lib/table/row.ts b/src/lib/table/row.ts index 7ecbe169309..b4945e5a375 100644 --- a/src/lib/table/row.ts +++ b/src/lib/table/row.ts @@ -51,7 +51,6 @@ export class MatRowDef extends CdkRowDef { changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, exportAs: 'matHeaderRow', - preserveWhitespaces: false, }) export class MatHeaderRow extends CdkHeaderRow { } @@ -67,6 +66,5 @@ export class MatHeaderRow extends CdkHeaderRow { } changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, exportAs: 'matRow', - preserveWhitespaces: false, }) export class MatRow extends CdkRow { } diff --git a/src/lib/table/table.ts b/src/lib/table/table.ts index 5a4ade84681..19c5eb22953 100644 --- a/src/lib/table/table.ts +++ b/src/lib/table/table.ts @@ -22,7 +22,6 @@ import {CDK_TABLE_TEMPLATE, CdkTable} from '@angular/cdk/table'; 'class': 'mat-table', }, encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, }) export class MatTable extends CdkTable { } diff --git a/src/lib/tabs/tab-body.ts b/src/lib/tabs/tab-body.ts index e214199fe71..8db6d731b1e 100644 --- a/src/lib/tabs/tab-body.ts +++ b/src/lib/tabs/tab-body.ts @@ -109,7 +109,6 @@ export class MatTabBodyPortal extends CdkPortalOutlet implements OnInit, OnDestr templateUrl: 'tab-body.html', styleUrls: ['tab-body.css'], encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, animations: [matTabsAnimations.translateTab], host: { diff --git a/src/lib/tabs/tab-group.ts b/src/lib/tabs/tab-group.ts index da35c0ec57c..1d625632dc9 100644 --- a/src/lib/tabs/tab-group.ts +++ b/src/lib/tabs/tab-group.ts @@ -69,7 +69,6 @@ export const _MatTabGroupMixinBase = mixinColor(mixinDisableRipple(MatTabGroupBa templateUrl: 'tab-group.html', styleUrls: ['tab-group.css'], encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, inputs: ['color', 'disableRipple'], host: { diff --git a/src/lib/tabs/tab-header.ts b/src/lib/tabs/tab-header.ts index 32c3ed0f794..cd4c3b7ed77 100644 --- a/src/lib/tabs/tab-header.ts +++ b/src/lib/tabs/tab-header.ts @@ -67,7 +67,6 @@ export const _MatTabHeaderMixinBase = mixinDisableRipple(MatTabHeaderBase); styleUrls: ['tab-header.css'], inputs: ['disableRipple'], encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, host: { 'class': 'mat-tab-header', diff --git a/src/lib/tabs/tab-nav-bar/tab-nav-bar.ts b/src/lib/tabs/tab-nav-bar/tab-nav-bar.ts index 4838eb9e5b3..7045669dbdc 100644 --- a/src/lib/tabs/tab-nav-bar/tab-nav-bar.ts +++ b/src/lib/tabs/tab-nav-bar/tab-nav-bar.ts @@ -70,7 +70,6 @@ export const _MatTabNavMixinBase = mixinColor(MatTabNavBase, 'primary'); styleUrls: ['tab-nav-bar.css'], host: {'class': 'mat-tab-nav-bar'}, encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, }) export class MatTabNav extends _MatTabNavMixinBase implements AfterContentInit, CanColor, diff --git a/src/lib/tabs/tab.ts b/src/lib/tabs/tab.ts index 49b09f8ef5c..4aee4ee1b1a 100644 --- a/src/lib/tabs/tab.ts +++ b/src/lib/tabs/tab.ts @@ -39,7 +39,6 @@ export const _MatTabMixinBase = mixinDisabled(MatTabBase); inputs: ['disabled'], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, exportAs: 'matTab', }) export class MatTab extends _MatTabMixinBase implements OnInit, CanDisable, OnChanges, OnDestroy { diff --git a/src/lib/toolbar/toolbar.ts b/src/lib/toolbar/toolbar.ts index 51f063aaeb6..fa561f18d0d 100644 --- a/src/lib/toolbar/toolbar.ts +++ b/src/lib/toolbar/toolbar.ts @@ -50,7 +50,6 @@ export class MatToolbarRow {} }, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, }) export class MatToolbar extends _MatToolbarMixinBase implements CanColor, AfterViewInit { private _document: Document; diff --git a/src/lib/tooltip/tooltip.ts b/src/lib/tooltip/tooltip.ts index aff6a3cf09d..86cba6d2a98 100644 --- a/src/lib/tooltip/tooltip.ts +++ b/src/lib/tooltip/tooltip.ts @@ -494,7 +494,6 @@ export type TooltipVisibility = 'initial' | 'visible' | 'hidden'; templateUrl: 'tooltip.html', styleUrls: ['tooltip.css'], encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, animations: [matTooltipAnimations.tooltipState], host: { diff --git a/src/lib/tree/tree.ts b/src/lib/tree/tree.ts index 34b81695c36..e2ebe584991 100644 --- a/src/lib/tree/tree.ts +++ b/src/lib/tree/tree.ts @@ -24,7 +24,6 @@ import {MatTreeNodeOutlet} from './outlet'; }, styleUrls: ['tree.css'], encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, providers: [{provide: CdkTree, useExisting: MatTree}] }) diff --git a/src/material-examples/slider-configurable/slider-configurable-example.ts b/src/material-examples/slider-configurable/slider-configurable-example.ts index caee9ab54cb..80f20670990 100644 --- a/src/material-examples/slider-configurable/slider-configurable-example.ts +++ b/src/material-examples/slider-configurable/slider-configurable-example.ts @@ -8,7 +8,6 @@ import {Component, ViewEncapsulation} from '@angular/core'; templateUrl: 'slider-configurable-example.html', styleUrls: ['slider-configurable-example.css'], encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, }) export class SliderConfigurableExample { autoTicks = false; diff --git a/tslint.json b/tslint.json index f060771a173..e75b7ec48a8 100644 --- a/tslint.json +++ b/tslint.json @@ -98,7 +98,6 @@ "Component": { "encapsulation": "\\.None$", "moduleId": "^module\\.id$", - "preserveWhitespaces": "false$", "changeDetection": "\\.OnPush$", "!styles": ".*", "!host": "\\[class\\]"