Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit cf63aa8

Browse files
committed
chore(package): Publish Angular MDC v2.0.0
1 parent 715b84f commit cf63aa8

File tree

15 files changed

+196
-212
lines changed

15 files changed

+196
-212
lines changed

demos/src/browserslist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
last 2 versions
99
Firefox ESR
1010
not dead
11-
not IE 9-11
11+
IE 9-11

demos/src/polyfills.ts

Lines changed: 20 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -18,57 +18,40 @@
1818
* BROWSER POLYFILLS
1919
*/
2020

21-
/** IE9, IE10 and IE11 requires all of the following polyfills. **/
22-
import 'core-js/es6/symbol';
23-
import 'core-js/es6/object';
24-
import 'core-js/es6/function';
25-
import 'core-js/es6/parse-int';
26-
import 'core-js/es6/parse-float';
27-
import 'core-js/es6/number';
28-
import 'core-js/es6/math';
29-
import 'core-js/es6/string';
30-
import 'core-js/es6/date';
31-
import 'core-js/es6/array';
32-
import 'core-js/es6/regexp';
33-
import 'core-js/es6/map';
34-
import 'core-js/es6/weak-map';
35-
import 'core-js/es6/set';
36-
37-
/**
38-
* If the application will be indexed by Google Search, the following is required.
39-
* Googlebot uses a renderer based on Chrome 41.
40-
* https://developers.google.com/search/docs/guides/rendering
41-
**/
42-
// import 'core-js/es6/array';
43-
4421
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
4522
// import 'classlist.js'; // Run `npm install --save classlist.js`.
4623

47-
/** IE10 and IE11 requires the following for the Reflect API. */
48-
// import 'core-js/es6/reflect';
49-
5024
/**
5125
* Web Animations `@angular/platform-browser/animations`
5226
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
5327
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
54-
**/
28+
*/
5529
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
5630

5731
/**
5832
* By default, zone.js will patch all possible macroTask and DomEvents
5933
* user can disable parts of macroTask/DomEvents patch by setting following flags
34+
* because those flags need to be set before `zone.js` being loaded, and webpack
35+
* will put import in the top of bundle, so user need to create a separate file
36+
* in this directory (for example: zone-flags.ts), and put the following flags
37+
* into that file, and then add the following code before importing zone.js.
38+
* import './zone-flags.ts';
39+
*
40+
* The flags allowed in zone-flags.ts are listed here.
41+
*
42+
* The following flags will work for all browsers.
43+
*
44+
* (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
45+
* (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
46+
* (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
47+
*
48+
* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
49+
* with the following flag, it will bypass `zone.js` patch for IE/Edge
50+
*
51+
* (window as any).__Zone_enable_cross_context_check = true;
52+
*
6053
*/
6154

62-
// (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
63-
// (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
64-
// (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
65-
66-
/*
67-
* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
68-
* with the following flag, it will bypass `zone.js` patch for IE/Edge
69-
*/
70-
// (window as any).__Zone_enable_cross_context_check = true;
71-
7255
/***************************************************************************************************
7356
* Zone JS is required by default for Angular itself.
7457
*/

demos/tsconfig.aot.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
"outDir": "./dist/out-tsc",
66
"sourceMap": true,
77
"declaration": false,
8-
"module": "es2015",
8+
"module": "esnext",
99
"moduleResolution": "node",
1010
"emitDecoratorMetadata": true,
1111
"experimentalDecorators": true,
1212
"importHelpers": true,
13-
"target": "es5",
13+
"target": "es2015",
1414
"typeRoots": [
1515
"node_modules/@types"
1616
],

demos/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
"outDir": "./dist/out-tsc",
66
"sourceMap": true,
77
"declaration": false,
8-
"module": "es2015",
8+
"module": "esnext",
99
"moduleResolution": "node",
1010
"emitDecoratorMetadata": true,
1111
"experimentalDecorators": true,
1212
"importHelpers": true,
13-
"target": "es5",
13+
"target": "es2015",
1414
"typeRoots": [
1515
"node_modules/@types"
1616
],

demos/yarn.lock

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -591,11 +591,6 @@ are-we-there-yet@~1.1.2:
591591
delegates "^1.0.0"
592592
readable-stream "^2.0.6"
593593

594-
arg@^4.1.0:
595-
version "4.1.0"
596-
resolved "https://registry.yarnpkg.com/arg/-/arg-4.1.0.tgz#583c518199419e0037abb74062c37f8519e575f0"
597-
integrity sha512-ZWc51jO3qegGkVh8Hwpv636EkbesNV5ZNQPCtRa+0qytRYPEs9IYT9qITY9buezqUH5uqyzlWLcufrzU2rffdg==
598-
599594
argparse@^1.0.7:
600595
version "1.0.10"
601596
resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911"
@@ -645,6 +640,11 @@ array-unique@^0.3.2:
645640
resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428"
646641
integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=
647642

643+
arrify@^1.0.0:
644+
version "1.0.1"
645+
resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d"
646+
integrity sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=
647+
648648
asap@^2.0.0, asap@~2.0.3:
649649
version "2.0.6"
650650
resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46"
@@ -1001,7 +1001,7 @@ browserslist@^4.5.4:
10011001
electron-to-chromium "^1.3.164"
10021002
node-releases "^1.1.23"
10031003

1004-
buffer-from@^1.0.0:
1004+
buffer-from@^1.0.0, buffer-from@^1.1.0:
10051005
version "1.1.1"
10061006
resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef"
10071007
integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==
@@ -1688,16 +1688,11 @@ dezalgo@^1.0.0:
16881688
asap "^2.0.0"
16891689
wrappy "1"
16901690

1691-
diff@^3.2.0:
1691+
diff@^3.1.0, diff@^3.2.0:
16921692
version "3.5.0"
16931693
resolved "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz#800c0dd1e0a8bfbc95835c202ad220fe317e5a12"
16941694
integrity sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==
16951695

1696-
diff@^4.0.1:
1697-
version "4.0.1"
1698-
resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.1.tgz#0c667cb467ebbb5cea7f14f135cc2dba7780a8ff"
1699-
integrity sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==
1700-
17011696
diffie-hellman@^5.0.0:
17021697
version "5.0.3"
17031698
resolved "https://registry.yarnpkg.com/diffie-hellman/-/diffie-hellman-5.0.3.tgz#40e8ee98f55a2149607146921c63e1ae5f3d2875"
@@ -4533,7 +4528,7 @@ run-queue@^1.0.0, run-queue@^1.0.3:
45334528
dependencies:
45344529
aproba "^1.1.1"
45354530

4536-
[email protected], rxjs@~6.4.0:
4531+
45374532
version "6.4.0"
45384533
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.4.0.tgz#f3bb0fe7bda7fb69deac0c16f17b50b0b8790504"
45394534
integrity sha512-Z9Yfa11F6B9Sg/BK9MnqnQ+aQYicPLtilXBp2yUtDt2JRCE0h26d33EnfO3ZxoNxG0T92OUucP3Ct7cpfkdFfw==
@@ -5364,16 +5359,19 @@ trim-right@^1.0.1:
53645359
resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003"
53655360
integrity sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=
53665361

5367-
ts-node@~8.1.0:
5368-
version "8.1.1"
5369-
resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-8.1.1.tgz#2b9621934a0471f0e13c1b75be54ee0f46c31479"
5370-
integrity sha512-nd+mdxDP2BjQlyumBCMSU3IQLEjSla1X3uSzDfQ4M5OEZ3iDC01gjhs0FX29jyolATwLKB7YoRJ1Asbxd9EEoA==
5362+
ts-node@7.0.0:
5363+
version "7.0.0"
5364+
resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-7.0.0.tgz#a94a13c75e5e1aa6b82814b84c68deb339ba7bff"
5365+
integrity sha512-klJsfswHP0FuOLsvBZ/zzCfUvakOSSxds78mVeK7I+qP76YWtxf16hEZsp3U+b0kIo82R5UatGFeblYMqabb2Q==
53715366
dependencies:
5372-
arg "^4.1.0"
5373-
diff "^4.0.1"
5367+
arrify "^1.0.0"
5368+
buffer-from "^1.1.0"
5369+
diff "^3.1.0"
53745370
make-error "^1.1.1"
5371+
minimist "^1.2.0"
5372+
mkdirp "^0.5.1"
53755373
source-map-support "^0.5.6"
5376-
yn "^3.0.0"
5374+
yn "^2.0.0"
53775375

53785376
tslib@^1.10.0, tslib@^1.8.0, tslib@^1.8.1, tslib@^1.9.0:
53795377
version "1.10.0"
@@ -5869,10 +5867,10 @@ [email protected]:
58695867
y18n "^4.0.0"
58705868
yargs-parser "^13.0.0"
58715869

5872-
yn@^3.0.0:
5873-
version "3.1.0"
5874-
resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.0.tgz#fcbe2db63610361afcc5eb9e0ac91e976d046114"
5875-
integrity sha512-kKfnnYkbTfrAdd0xICNFw7Atm8nKpLcLv9AZGEt+kczL/WQVai4e2V6ZN8U/O+iI6WrNuJjNNOyu4zfhl9D3Hg==
5870+
yn@^2.0.0:
5871+
version "2.0.0"
5872+
resolved "https://registry.yarnpkg.com/yn/-/yn-2.0.0.tgz#e5adabc8acf408f6385fc76495684c88e6af689a"
5873+
integrity sha1-5a2ryKz0CPY4X8dklWhMiOavaJo=
58765874

58775875
zone.js@~0.9.1:
58785876
version "0.9.1"

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"url": "https://github.com/trimox/angular-mdc-web.git"
99
},
1010
"license": "MIT",
11-
"version": "1.0.5",
11+
"version": "2.0.0",
1212
"engines": {
1313
"node": ">= 9.11.1"
1414
},
@@ -72,21 +72,21 @@
7272
"karma-webpack": "^4.0.2",
7373
"magic-string": "^0.25.2",
7474
"node-sass": "^4.12.0",
75-
"rollup": "^1.10.0",
76-
"rollup-plugin-alias": "^1.5.1",
77-
"rollup-plugin-babel": "^4.3.2",
78-
"rollup-plugin-commonjs": "^9.3.4",
79-
"rollup-plugin-node-resolve": "^4.2.3",
75+
"rollup": "^1.16.2",
76+
"rollup-plugin-alias": "^1.5.2",
77+
"rollup-plugin-babel": "^4.3.3",
78+
"rollup-plugin-commonjs": "^10.0.0",
79+
"rollup-plugin-node-resolve": "^5.0.4",
8080
"run-sequence": "^2.2.1",
8181
"sorcery": "^0.10.0",
8282
"stylelint": "^9.10.1",
8383
"stylelint-config-standard": "^18.0.0",
8484
"stylelint-order": "^2.0.0",
8585
"stylelint-scss": "^3.5.3",
8686
"stylelint-selector-bem-pattern": "^2.1.0",
87-
"terser": "^3.17.0",
87+
"terser": "^4.0.0",
8888
"ts-loader": "^6.0.4",
89-
"ts-node": "^8.0.3",
89+
"ts-node": "^8.3.0",
9090
"tsconfig-paths": "^3.8.0",
9191
"tsconfig-paths-webpack-plugin": "^3.2.0",
9292
"tslint": "^5.18.0",

packages/common/platform.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
import {Inject, Injectable, PLATFORM_ID} from '@angular/core';
22
import {isPlatformBrowser} from '@angular/common';
33

4-
@Injectable({
5-
providedIn: 'root'
6-
})
4+
@Injectable({providedIn: 'root'})
75
export class Platform {
86
isBrowser: boolean = this._platformId ?
97
isPlatformBrowser(this._platformId) : typeof document === 'object' && !!document;
108

11-
constructor(@Inject(PLATFORM_ID) private _platformId?: Object) { }
9+
constructor(@Inject(PLATFORM_ID) private _platformId?: Object) {}
1210
}

packages/common/unique-selection-dispatcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export type UniqueSelectionDispatcherListener = (id: string, name: string) => vo
2020
* This service does not *store* any IDs and names because they may change at any time, so it is
2121
* less error-prone if they are simply passed through when the events occur.
2222
*/
23-
@Injectable({ providedIn: 'root' })
23+
@Injectable({providedIn: 'root'})
2424
export class UniqueSelectionDispatcher implements OnDestroy {
2525
private _listeners: UniqueSelectionDispatcherListener[] = [];
2626

packages/icon/icon-registry.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class SvgIconConfig {
8888
* - Registers aliases for CSS classes, for use with icon fonts.
8989
* - Loads icons from URLs and extracts individual icons from icon sets.
9090
*/
91-
@Injectable({ providedIn: 'root' })
91+
@Injectable({providedIn: 'root'})
9292
export class MdcIconRegistry implements OnDestroy {
9393
private _document: Document;
9494

@@ -559,7 +559,7 @@ export class MdcIconRegistry implements OnDestroy {
559559

560560
// TODO(jelbourn): for some reason, the `finalize` operator "loses" the generic type on the
561561
// Observable. Figure out why and fix it.
562-
const req = this._httpClient.get(url, { responseType: 'text' }).pipe(
562+
const req = this._httpClient.get(url, {responseType: 'text'}).pipe(
563563
finalize(() => this._inProgressUrlFetches.delete(url)),
564564
share(),
565565
);

packages/material-components-web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"type": "git",
88
"url": "https://github.com/trimox/angular-mdc-web.git"
99
},
10-
"version": "1.0.5",
10+
"version": "2.0.0",
1111
"license": "MIT",
1212
"keywords": [
1313
"angular-mdc",

0 commit comments

Comments
 (0)