@angular/platform-browser 9.1.0 → 9.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/animations/animations.d.ts +1 -1
  2. package/animations/animations.metadata.json +1 -1
  3. package/animations.d.ts +1 -1
  4. package/bundles/platform-browser-animations.umd.js +88 -32
  5. package/bundles/platform-browser-animations.umd.js.map +1 -1
  6. package/bundles/platform-browser-animations.umd.min.js +1 -1
  7. package/bundles/platform-browser-animations.umd.min.js.map +1 -1
  8. package/bundles/platform-browser-testing.umd.js +42 -11
  9. package/bundles/platform-browser-testing.umd.js.map +1 -1
  10. package/bundles/platform-browser-testing.umd.min.js +1 -1
  11. package/bundles/platform-browser-testing.umd.min.js.map +1 -1
  12. package/bundles/platform-browser.umd.js +182 -71
  13. package/bundles/platform-browser.umd.js.map +1 -1
  14. package/bundles/platform-browser.umd.min.js +7 -7
  15. package/bundles/platform-browser.umd.min.js.map +1 -1
  16. package/esm2015/animations/src/animation_builder.js +38 -19
  17. package/esm2015/animations/src/animation_renderer.js +31 -11
  18. package/esm2015/animations/src/providers.js +2 -2
  19. package/esm2015/index.js +1 -1
  20. package/esm2015/public_api.js +1 -1
  21. package/esm2015/src/browser/browser_adapter.js +43 -15
  22. package/esm2015/src/browser/generic_browser_adapter.js +7 -3
  23. package/esm2015/src/browser/meta.js +4 -2
  24. package/esm2015/src/browser/testability.js +4 -2
  25. package/esm2015/src/browser/title.js +7 -3
  26. package/esm2015/src/browser/tools/common_tools.js +4 -2
  27. package/esm2015/src/browser/transfer_state.js +10 -4
  28. package/esm2015/src/browser.js +2 -2
  29. package/esm2015/src/dom/debug/by.js +7 -5
  30. package/esm2015/src/dom/dom_renderer.js +34 -12
  31. package/esm2015/src/dom/events/dom_events.js +7 -3
  32. package/esm2015/src/dom/events/event_manager.js +4 -2
  33. package/esm2015/src/dom/events/hammer_gestures.js +13 -5
  34. package/esm2015/src/dom/events/key_events.js +7 -3
  35. package/esm2015/src/dom/shared_styles_host.js +14 -8
  36. package/esm2015/src/dom/util.js +1 -1
  37. package/esm2015/src/platform-browser.js +3 -3
  38. package/esm2015/src/private_export.js +3 -3
  39. package/esm2015/src/security/dom_sanitization_service.js +11 -5
  40. package/esm2015/src/version.js +1 -1
  41. package/esm2015/testing/src/browser.js +2 -2
  42. package/esm2015/testing/src/browser_util.js +25 -9
  43. package/esm2015/testing/src/matchers.js +22 -9
  44. package/esm5/animations/src/animation_builder.js +38 -19
  45. package/esm5/animations/src/animation_renderer.js +31 -11
  46. package/esm5/animations/src/providers.js +2 -2
  47. package/esm5/src/browser/browser_adapter.js +43 -15
  48. package/esm5/src/browser/generic_browser_adapter.js +4 -2
  49. package/esm5/src/browser/meta.js +4 -2
  50. package/esm5/src/browser/testability.js +4 -2
  51. package/esm5/src/browser/title.js +7 -3
  52. package/esm5/src/browser/tools/common_tools.js +1 -1
  53. package/esm5/src/browser/transfer_state.js +10 -4
  54. package/esm5/src/browser.js +2 -2
  55. package/esm5/src/dom/debug/by.js +4 -2
  56. package/esm5/src/dom/dom_renderer.js +34 -12
  57. package/esm5/src/dom/events/dom_events.js +4 -2
  58. package/esm5/src/dom/events/event_manager.js +4 -2
  59. package/esm5/src/dom/events/hammer_gestures.js +28 -20
  60. package/esm5/src/dom/events/key_events.js +8 -6
  61. package/esm5/src/dom/shared_styles_host.js +10 -4
  62. package/esm5/src/dom/util.js +1 -1
  63. package/esm5/src/platform-browser.js +2 -2
  64. package/esm5/src/private_export.js +3 -3
  65. package/esm5/src/security/dom_sanitization_service.js +11 -5
  66. package/esm5/src/version.js +1 -1
  67. package/esm5/testing/src/browser.js +2 -2
  68. package/esm5/testing/src/browser_util.js +22 -8
  69. package/esm5/testing/src/matchers.js +21 -8
  70. package/fesm2015/animations.js +68 -29
  71. package/fesm2015/animations.js.map +1 -1
  72. package/fesm2015/platform-browser.js +162 -60
  73. package/fesm2015/platform-browser.js.map +1 -1
  74. package/fesm2015/testing.js +25 -9
  75. package/fesm2015/testing.js.map +1 -1
  76. package/fesm5/animations.js +68 -29
  77. package/fesm5/animations.js.map +1 -1
  78. package/fesm5/platform-browser.js +162 -68
  79. package/fesm5/platform-browser.js.map +1 -1
  80. package/fesm5/testing.js +22 -8
  81. package/fesm5/testing.js.map +1 -1
  82. package/package.json +4 -4
  83. package/platform-browser.d.ts +20 -20
  84. package/platform-browser.metadata.json +1 -1
  85. package/testing/testing.d.ts +1 -1
  86. package/testing/testing.metadata.json +1 -1
  87. package/testing.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v9.1.0
2
+ * @license Angular v9.1.4
3
3
  * (c) 2010-2020 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -27,7 +27,9 @@ var GenericBrowserDomAdapter = /** @class */ (function (_super) {
27
27
  function GenericBrowserDomAdapter() {
28
28
  return _super.call(this) || this;
29
29
  }
30
- GenericBrowserDomAdapter.prototype.supportsDOMEvents = function () { return true; };
30
+ GenericBrowserDomAdapter.prototype.supportsDOMEvents = function () {
31
+ return true;
32
+ };
31
33
  return GenericBrowserDomAdapter;
32
34
  }(ɵDomAdapter));
33
35
 
@@ -59,8 +61,12 @@ var BrowserDomAdapter = /** @class */ (function (_super) {
59
61
  function BrowserDomAdapter() {
60
62
  return _super !== null && _super.apply(this, arguments) || this;
61
63
  }
62
- BrowserDomAdapter.makeCurrent = function () { ɵsetRootDomAdapter(new BrowserDomAdapter()); };
63
- BrowserDomAdapter.prototype.getProperty = function (el, name) { return el[name]; };
64
+ BrowserDomAdapter.makeCurrent = function () {
65
+ ɵsetRootDomAdapter(new BrowserDomAdapter());
66
+ };
67
+ BrowserDomAdapter.prototype.getProperty = function (el, name) {
68
+ return el[name];
69
+ };
64
70
  BrowserDomAdapter.prototype.log = function (error) {
65
71
  if (window.console) {
66
72
  window.console.log && window.console.log(error);
@@ -80,16 +86,22 @@ var BrowserDomAdapter = /** @class */ (function (_super) {
80
86
  el.addEventListener(evt, listener, false);
81
87
  // Needed to follow Dart's subscription semantic, until fix of
82
88
  // https://code.google.com/p/dart/issues/detail?id=17406
83
- return function () { el.removeEventListener(evt, listener, false); };
89
+ return function () {
90
+ el.removeEventListener(evt, listener, false);
91
+ };
92
+ };
93
+ BrowserDomAdapter.prototype.dispatchEvent = function (el, evt) {
94
+ el.dispatchEvent(evt);
84
95
  };
85
- BrowserDomAdapter.prototype.dispatchEvent = function (el, evt) { el.dispatchEvent(evt); };
86
96
  BrowserDomAdapter.prototype.remove = function (node) {
87
97
  if (node.parentNode) {
88
98
  node.parentNode.removeChild(node);
89
99
  }
90
100
  return node;
91
101
  };
92
- BrowserDomAdapter.prototype.getValue = function (el) { return el.value; };
102
+ BrowserDomAdapter.prototype.getValue = function (el) {
103
+ return el.value;
104
+ };
93
105
  BrowserDomAdapter.prototype.createElement = function (tagName, doc) {
94
106
  doc = doc || this.getDefaultDocument();
95
107
  return doc.createElement(tagName);
@@ -97,9 +109,15 @@ var BrowserDomAdapter = /** @class */ (function (_super) {
97
109
  BrowserDomAdapter.prototype.createHtmlDocument = function () {
98
110
  return document.implementation.createHTMLDocument('fakeTitle');
99
111
  };
100
- BrowserDomAdapter.prototype.getDefaultDocument = function () { return document; };
101
- BrowserDomAdapter.prototype.isElementNode = function (node) { return node.nodeType === Node.ELEMENT_NODE; };
102
- BrowserDomAdapter.prototype.isShadowRoot = function (node) { return node instanceof DocumentFragment; };
112
+ BrowserDomAdapter.prototype.getDefaultDocument = function () {
113
+ return document;
114
+ };
115
+ BrowserDomAdapter.prototype.isElementNode = function (node) {
116
+ return node.nodeType === Node.ELEMENT_NODE;
117
+ };
118
+ BrowserDomAdapter.prototype.isShadowRoot = function (node) {
119
+ return node instanceof DocumentFragment;
120
+ };
103
121
  BrowserDomAdapter.prototype.getGlobalEventTarget = function (doc, target) {
104
122
  if (target === 'window') {
105
123
  return window;
@@ -112,22 +130,34 @@ var BrowserDomAdapter = /** @class */ (function (_super) {
112
130
  }
113
131
  return null;
114
132
  };
115
- BrowserDomAdapter.prototype.getHistory = function () { return window.history; };
116
- BrowserDomAdapter.prototype.getLocation = function () { return window.location; };
133
+ BrowserDomAdapter.prototype.getHistory = function () {
134
+ return window.history;
135
+ };
136
+ BrowserDomAdapter.prototype.getLocation = function () {
137
+ return window.location;
138
+ };
117
139
  BrowserDomAdapter.prototype.getBaseHref = function (doc) {
118
140
  var href = getBaseElementHref();
119
141
  return href == null ? null : relativePath(href);
120
142
  };
121
- BrowserDomAdapter.prototype.resetBaseElement = function () { baseElement = null; };
122
- BrowserDomAdapter.prototype.getUserAgent = function () { return window.navigator.userAgent; };
143
+ BrowserDomAdapter.prototype.resetBaseElement = function () {
144
+ baseElement = null;
145
+ };
146
+ BrowserDomAdapter.prototype.getUserAgent = function () {
147
+ return window.navigator.userAgent;
148
+ };
123
149
  BrowserDomAdapter.prototype.performanceNow = function () {
124
150
  // performance.now() is not available in all browsers, see
125
151
  // http://caniuse.com/#search=performance.now
126
152
  return window.performance && window.performance.now ? window.performance.now() :
127
153
  new Date().getTime();
128
154
  };
129
- BrowserDomAdapter.prototype.supportsCookies = function () { return true; };
130
- BrowserDomAdapter.prototype.getCookie = function (name) { return ɵparseCookieValue(document.cookie, name); };
155
+ BrowserDomAdapter.prototype.supportsCookies = function () {
156
+ return true;
157
+ };
158
+ BrowserDomAdapter.prototype.getCookie = function (name) {
159
+ return ɵparseCookieValue(document.cookie, name);
160
+ };
131
161
  return BrowserDomAdapter;
132
162
  }(GenericBrowserDomAdapter));
133
163
  var baseElement = null;
@@ -194,7 +224,9 @@ var SERVER_TRANSITION_PROVIDERS = [
194
224
  var BrowserGetTestability = /** @class */ (function () {
195
225
  function BrowserGetTestability() {
196
226
  }
197
- BrowserGetTestability.init = function () { setTestabilityGetter(new BrowserGetTestability()); };
227
+ BrowserGetTestability.init = function () {
228
+ setTestabilityGetter(new BrowserGetTestability());
229
+ };
198
230
  BrowserGetTestability.prototype.addToWindow = function (registry) {
199
231
  ɵglobal['getAngularTestability'] = function (elem, findInAncestors) {
200
232
  if (findInAncestors === void 0) { findInAncestors = true; }
@@ -402,7 +434,9 @@ var EventManager = /** @class */ (function () {
402
434
  /**
403
435
  * Retrieves the compilation zone in which event listeners are registered.
404
436
  */
405
- EventManager.prototype.getZone = function () { return this._zone; };
437
+ EventManager.prototype.getZone = function () {
438
+ return this._zone;
439
+ };
406
440
  /** @internal */
407
441
  EventManager.prototype._findPluginFor = function (eventName) {
408
442
  var plugin = this._eventNameToPlugin.get(eventName);
@@ -464,7 +498,9 @@ var SharedStylesHost = /** @class */ (function () {
464
498
  this.onStylesAdded(additions);
465
499
  };
466
500
  SharedStylesHost.prototype.onStylesAdded = function (additions) { };
467
- SharedStylesHost.prototype.getAllStyles = function () { return Array.from(this._stylesSet); };
501
+ SharedStylesHost.prototype.getAllStyles = function () {
502
+ return Array.from(this._stylesSet);
503
+ };
468
504
  SharedStylesHost = __decorate([
469
505
  Injectable()
470
506
  ], SharedStylesHost);
@@ -492,12 +528,16 @@ var DomSharedStylesHost = /** @class */ (function (_super) {
492
528
  this._addStylesToHost(this._stylesSet, hostNode);
493
529
  this._hostNodes.add(hostNode);
494
530
  };
495
- DomSharedStylesHost.prototype.removeHost = function (hostNode) { this._hostNodes.delete(hostNode); };
531
+ DomSharedStylesHost.prototype.removeHost = function (hostNode) {
532
+ this._hostNodes.delete(hostNode);
533
+ };
496
534
  DomSharedStylesHost.prototype.onStylesAdded = function (additions) {
497
535
  var _this = this;
498
536
  this._hostNodes.forEach(function (hostNode) { return _this._addStylesToHost(additions, hostNode); });
499
537
  };
500
- DomSharedStylesHost.prototype.ngOnDestroy = function () { this._styleNodes.forEach(function (styleNode) { return ɵgetDOM().remove(styleNode); }); };
538
+ DomSharedStylesHost.prototype.ngOnDestroy = function () {
539
+ this._styleNodes.forEach(function (styleNode) { return ɵgetDOM().remove(styleNode); });
540
+ };
501
541
  DomSharedStylesHost = __decorate([
502
542
  Injectable(),
503
543
  __param(0, Inject(DOCUMENT)),
@@ -624,9 +664,15 @@ var DefaultDomRenderer2 = /** @class */ (function () {
624
664
  }
625
665
  return document.createElement(name);
626
666
  };
627
- DefaultDomRenderer2.prototype.createComment = function (value) { return document.createComment(value); };
628
- DefaultDomRenderer2.prototype.createText = function (value) { return document.createTextNode(value); };
629
- DefaultDomRenderer2.prototype.appendChild = function (parent, newChild) { parent.appendChild(newChild); };
667
+ DefaultDomRenderer2.prototype.createComment = function (value) {
668
+ return document.createComment(value);
669
+ };
670
+ DefaultDomRenderer2.prototype.createText = function (value) {
671
+ return document.createTextNode(value);
672
+ };
673
+ DefaultDomRenderer2.prototype.appendChild = function (parent, newChild) {
674
+ parent.appendChild(newChild);
675
+ };
630
676
  DefaultDomRenderer2.prototype.insertBefore = function (parent, newChild, refChild) {
631
677
  if (parent) {
632
678
  parent.insertBefore(newChild, refChild);
@@ -648,8 +694,12 @@ var DefaultDomRenderer2 = /** @class */ (function () {
648
694
  }
649
695
  return el;
650
696
  };
651
- DefaultDomRenderer2.prototype.parentNode = function (node) { return node.parentNode; };
652
- DefaultDomRenderer2.prototype.nextSibling = function (node) { return node.nextSibling; };
697
+ DefaultDomRenderer2.prototype.parentNode = function (node) {
698
+ return node.parentNode;
699
+ };
700
+ DefaultDomRenderer2.prototype.nextSibling = function (node) {
701
+ return node.nextSibling;
702
+ };
653
703
  DefaultDomRenderer2.prototype.setAttribute = function (el, name, value, namespace) {
654
704
  if (namespace) {
655
705
  name = namespace + ':' + name;
@@ -686,8 +736,12 @@ var DefaultDomRenderer2 = /** @class */ (function () {
686
736
  el.removeAttribute(name);
687
737
  }
688
738
  };
689
- DefaultDomRenderer2.prototype.addClass = function (el, name) { el.classList.add(name); };
690
- DefaultDomRenderer2.prototype.removeClass = function (el, name) { el.classList.remove(name); };
739
+ DefaultDomRenderer2.prototype.addClass = function (el, name) {
740
+ el.classList.add(name);
741
+ };
742
+ DefaultDomRenderer2.prototype.removeClass = function (el, name) {
743
+ el.classList.remove(name);
744
+ };
691
745
  DefaultDomRenderer2.prototype.setStyle = function (el, style, value, flags) {
692
746
  if (flags & RendererStyleFlags2.DashCase) {
693
747
  el.style.setProperty(style, value, !!(flags & RendererStyleFlags2.Important) ? 'important' : '');
@@ -710,7 +764,9 @@ var DefaultDomRenderer2 = /** @class */ (function () {
710
764
  NG_DEV_MODE && checkNoSyntheticProp(name, 'property');
711
765
  el[name] = value;
712
766
  };
713
- DefaultDomRenderer2.prototype.setValue = function (node, value) { node.nodeValue = value; };
767
+ DefaultDomRenderer2.prototype.setValue = function (node, value) {
768
+ node.nodeValue = value;
769
+ };
714
770
  DefaultDomRenderer2.prototype.listen = function (target, event, callback) {
715
771
  NG_DEV_MODE && checkNoSyntheticProp(event, 'listener');
716
772
  if (typeof target === 'string') {
@@ -738,7 +794,9 @@ var EmulatedEncapsulationDomRenderer2 = /** @class */ (function (_super) {
738
794
  _this.hostAttr = shimHostAttribute(appId + '-' + component.id);
739
795
  return _this;
740
796
  }
741
- EmulatedEncapsulationDomRenderer2.prototype.applyToHost = function (element) { _super.prototype.setAttribute.call(this, element, this.hostAttr, ''); };
797
+ EmulatedEncapsulationDomRenderer2.prototype.applyToHost = function (element) {
798
+ _super.prototype.setAttribute.call(this, element, this.hostAttr, '');
799
+ };
742
800
  EmulatedEncapsulationDomRenderer2.prototype.createElement = function (parent, name) {
743
801
  var el = _super.prototype.createElement.call(this, parent, name);
744
802
  _super.prototype.setAttribute.call(this, el, this.contentAttr, '');
@@ -768,8 +826,12 @@ var ShadowDomRenderer = /** @class */ (function (_super) {
768
826
  }
769
827
  return _this;
770
828
  }
771
- ShadowDomRenderer.prototype.nodeOrShadowRoot = function (node) { return node === this.hostEl ? this.shadowRoot : node; };
772
- ShadowDomRenderer.prototype.destroy = function () { this.sharedStylesHost.removeHost(this.shadowRoot); };
829
+ ShadowDomRenderer.prototype.nodeOrShadowRoot = function (node) {
830
+ return node === this.hostEl ? this.shadowRoot : node;
831
+ };
832
+ ShadowDomRenderer.prototype.destroy = function () {
833
+ this.sharedStylesHost.removeHost(this.shadowRoot);
834
+ };
773
835
  ShadowDomRenderer.prototype.appendChild = function (parent, newChild) {
774
836
  return _super.prototype.appendChild.call(this, this.nodeOrShadowRoot(parent), newChild);
775
837
  };
@@ -799,7 +861,9 @@ var DomEventsPlugin = /** @class */ (function (_super) {
799
861
  }
800
862
  // This plugin should come last in the list of plugins, because it accepts all
801
863
  // events.
802
- DomEventsPlugin.prototype.supports = function (eventName) { return true; };
864
+ DomEventsPlugin.prototype.supports = function (eventName) {
865
+ return true;
866
+ };
803
867
  DomEventsPlugin.prototype.addEventListener = function (element, eventName, handler) {
804
868
  var _this = this;
805
869
  element.addEventListener(eventName, handler, false);
@@ -891,21 +955,21 @@ var HammerGestureConfig = /** @class */ (function () {
891
955
  */
892
956
  this.events = [];
893
957
  /**
894
- * Maps gesture event names to a set of configuration options
895
- * that specify overrides to the default values for specific properties.
896
- *
897
- * The key is a supported event name to be configured,
898
- * and the options object contains a set of properties, with override values
899
- * to be applied to the named recognizer event.
900
- * For example, to disable recognition of the rotate event, specify
901
- * `{"rotate": {"enable": false}}`.
902
- *
903
- * Properties that are not present take the HammerJS default values.
904
- * For information about which properties are supported for which events,
905
- * and their allowed and default values, see
906
- * [HammerJS documentation](http://hammerjs.github.io/).
907
- *
908
- */
958
+ * Maps gesture event names to a set of configuration options
959
+ * that specify overrides to the default values for specific properties.
960
+ *
961
+ * The key is a supported event name to be configured,
962
+ * and the options object contains a set of properties, with override values
963
+ * to be applied to the named recognizer event.
964
+ * For example, to disable recognition of the rotate event, specify
965
+ * `{"rotate": {"enable": false}}`.
966
+ *
967
+ * Properties that are not present take the HammerJS default values.
968
+ * For information about which properties are supported for which events,
969
+ * and their allowed and default values, see
970
+ * [HammerJS documentation](http://hammerjs.github.io/).
971
+ *
972
+ */
909
973
  this.overrides = {};
910
974
  }
911
975
  /**
@@ -964,7 +1028,9 @@ var HammerGesturesPlugin = /** @class */ (function (_super) {
964
1028
  // Until Hammer is loaded, the returned function needs to *cancel* the registration rather
965
1029
  // than remove anything.
966
1030
  var cancelRegistration_1 = false;
967
- var deregister_1 = function () { cancelRegistration_1 = true; };
1031
+ var deregister_1 = function () {
1032
+ cancelRegistration_1 = true;
1033
+ };
968
1034
  this.loader()
969
1035
  .then(function () {
970
1036
  // If Hammer isn't actually loaded when the custom loader resolves, give up.
@@ -987,13 +1053,17 @@ var HammerGesturesPlugin = /** @class */ (function (_super) {
987
1053
  // Return a function that *executes* `deregister` (and not `deregister` itself) so that we
988
1054
  // can change the behavior of `deregister` once the listener is added. Using a closure in
989
1055
  // this way allows us to avoid any additional data structures to track listener removal.
990
- return function () { deregister_1(); };
1056
+ return function () {
1057
+ deregister_1();
1058
+ };
991
1059
  }
992
1060
  return zone.runOutsideAngular(function () {
993
1061
  // Creating the manager bind events, must be done outside of angular
994
1062
  var mc = _this._config.buildHammer(element);
995
1063
  var callback = function (eventObj) {
996
- zone.runGuarded(function () { handler(eventObj); });
1064
+ zone.runGuarded(function () {
1065
+ handler(eventObj);
1066
+ });
997
1067
  };
998
1068
  mc.on(eventName, callback);
999
1069
  return function () {
@@ -1005,7 +1075,9 @@ var HammerGesturesPlugin = /** @class */ (function (_super) {
1005
1075
  };
1006
1076
  });
1007
1077
  };
1008
- HammerGesturesPlugin.prototype.isCustomEvent = function (eventName) { return this._config.events.indexOf(eventName) > -1; };
1078
+ HammerGesturesPlugin.prototype.isCustomEvent = function (eventName) {
1079
+ return this._config.events.indexOf(eventName) > -1;
1080
+ };
1009
1081
  HammerGesturesPlugin = __decorate([
1010
1082
  Injectable(),
1011
1083
  __param(0, Inject(DOCUMENT)),
@@ -1130,11 +1202,13 @@ var KeyEventsPlugin = /** @class */ (function (_super) {
1130
1202
  }
1131
1203
  KeyEventsPlugin_1 = KeyEventsPlugin;
1132
1204
  /**
1133
- * Reports whether a named key event is supported.
1134
- * @param eventName The event name to query.
1135
- * @return True if the named key event is supported.
1205
+ * Reports whether a named key event is supported.
1206
+ * @param eventName The event name to query.
1207
+ * @return True if the named key event is supported.
1136
1208
  */
1137
- KeyEventsPlugin.prototype.supports = function (eventName) { return KeyEventsPlugin_1.parseEventName(eventName) != null; };
1209
+ KeyEventsPlugin.prototype.supports = function (eventName) {
1210
+ return KeyEventsPlugin_1.parseEventName(eventName) != null;
1211
+ };
1138
1212
  /**
1139
1213
  * Registers a handler for a specific element and key event.
1140
1214
  * @param element The HTML element to receive event notifications.
@@ -1142,7 +1216,7 @@ var KeyEventsPlugin = /** @class */ (function (_super) {
1142
1216
  * @param handler A function to call when the notification occurs. Receives the
1143
1217
  * event object as an argument.
1144
1218
  * @returns The key event that was registered.
1145
- */
1219
+ */
1146
1220
  KeyEventsPlugin.prototype.addEventListener = function (element, eventName, handler) {
1147
1221
  var parsedEvent = KeyEventsPlugin_1.parseEventName(eventName);
1148
1222
  var outsideHandler = KeyEventsPlugin_1.eventCallback(parsedEvent['fullKey'], handler, this.manager.getZone());
@@ -1337,12 +1411,18 @@ var DomSanitizerImpl = /** @class */ (function (_super) {
1337
1411
  throw new Error("Unexpected SecurityContext " + ctx + " (see http://g.co/ng/security#xss)");
1338
1412
  }
1339
1413
  };
1340
- DomSanitizerImpl.prototype.bypassSecurityTrustHtml = function (value) { return ɵbypassSanitizationTrustHtml(value); };
1341
- DomSanitizerImpl.prototype.bypassSecurityTrustStyle = function (value) { return ɵbypassSanitizationTrustStyle(value); };
1414
+ DomSanitizerImpl.prototype.bypassSecurityTrustHtml = function (value) {
1415
+ return ɵbypassSanitizationTrustHtml(value);
1416
+ };
1417
+ DomSanitizerImpl.prototype.bypassSecurityTrustStyle = function (value) {
1418
+ return ɵbypassSanitizationTrustStyle(value);
1419
+ };
1342
1420
  DomSanitizerImpl.prototype.bypassSecurityTrustScript = function (value) {
1343
1421
  return ɵbypassSanitizationTrustScript(value);
1344
1422
  };
1345
- DomSanitizerImpl.prototype.bypassSecurityTrustUrl = function (value) { return ɵbypassSanitizationTrustUrl(value); };
1423
+ DomSanitizerImpl.prototype.bypassSecurityTrustUrl = function (value) {
1424
+ return ɵbypassSanitizationTrustUrl(value);
1425
+ };
1346
1426
  DomSanitizerImpl.prototype.bypassSecurityTrustResourceUrl = function (value) {
1347
1427
  return ɵbypassSanitizationTrustResourceUrl(value);
1348
1428
  };
@@ -1518,7 +1598,9 @@ var Meta = /** @class */ (function () {
1518
1598
  }
1519
1599
  return this._getOrCreateElement(tag, true);
1520
1600
  };
1521
- Meta.prototype.removeTag = function (attrSelector) { this.removeTagElement(this.getTag(attrSelector)); };
1601
+ Meta.prototype.removeTag = function (attrSelector) {
1602
+ this.removeTagElement(this.getTag(attrSelector));
1603
+ };
1522
1604
  Meta.prototype.removeTagElement = function (meta) {
1523
1605
  if (meta) {
1524
1606
  this._dom.remove(meta);
@@ -1584,12 +1666,16 @@ var Title = /** @class */ (function () {
1584
1666
  /**
1585
1667
  * Get the title of the current HTML document.
1586
1668
  */
1587
- Title.prototype.getTitle = function () { return this._doc.title; };
1669
+ Title.prototype.getTitle = function () {
1670
+ return this._doc.title;
1671
+ };
1588
1672
  /**
1589
1673
  * Set the title of the current HTML document.
1590
1674
  * @param newTitle
1591
1675
  */
1592
- Title.prototype.setTitle = function (newTitle) { this._doc.title = newTitle || ''; };
1676
+ Title.prototype.setTitle = function (newTitle) {
1677
+ this._doc.title = newTitle || '';
1678
+ };
1593
1679
  Title.ɵprov = ɵɵdefineInjectable({ factory: createTitle, token: Title, providedIn: "root" });
1594
1680
  Title = __decorate([
1595
1681
  Injectable({ providedIn: 'root', useFactory: createTitle, deps: [] }),
@@ -1785,15 +1871,21 @@ var TransferState = /** @class */ (function () {
1785
1871
  /**
1786
1872
  * Set the value corresponding to a key.
1787
1873
  */
1788
- TransferState.prototype.set = function (key, value) { this.store[key] = value; };
1874
+ TransferState.prototype.set = function (key, value) {
1875
+ this.store[key] = value;
1876
+ };
1789
1877
  /**
1790
1878
  * Remove a key from the store.
1791
1879
  */
1792
- TransferState.prototype.remove = function (key) { delete this.store[key]; };
1880
+ TransferState.prototype.remove = function (key) {
1881
+ delete this.store[key];
1882
+ };
1793
1883
  /**
1794
1884
  * Test whether a key exists in the store.
1795
1885
  */
1796
- TransferState.prototype.hasKey = function (key) { return this.store.hasOwnProperty(key); };
1886
+ TransferState.prototype.hasKey = function (key) {
1887
+ return this.store.hasOwnProperty(key);
1888
+ };
1797
1889
  /**
1798
1890
  * Register a callback to provide the value for a key when `toJson` is called.
1799
1891
  */
@@ -1878,7 +1970,9 @@ var By = /** @class */ (function () {
1878
1970
  *
1879
1971
  * {@example platform-browser/dom/debug/ts/by/by.ts region='by_all'}
1880
1972
  */
1881
- By.all = function () { return function () { return true; }; };
1973
+ By.all = function () {
1974
+ return function () { return true; };
1975
+ };
1882
1976
  /**
1883
1977
  * Match elements by the given CSS selector.
1884
1978
  *
@@ -1934,7 +2028,7 @@ function elementMatches(n, selector) {
1934
2028
  /**
1935
2029
  * @publicApi
1936
2030
  */
1937
- var VERSION = new Version('9.1.0');
2031
+ var VERSION = new Version('9.1.4');
1938
2032
 
1939
2033
  /**
1940
2034
  * @license