@angular/core 5.2.7 → 5.2.11

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v5.2.7
2
+ * @license Angular v5.2.11
3
3
  * (c) 2010-2018 Google, Inc. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/esm5/core.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v5.2.7
2
+ * @license Angular v5.2.11
3
3
  * (c) 2010-2018 Google, Inc. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -42,6 +42,7 @@ import { Subscription } from 'rxjs/Subscription';
42
42
  * {\@example core/di/ts/injector_spec.ts region='InjectionToken'}
43
43
  *
44
44
  * \@stable
45
+ * @template T
45
46
  */
46
47
  var InjectionToken = /** @class */ (function () {
47
48
  function InjectionToken(_desc) {
@@ -717,7 +718,7 @@ var Version = /** @class */ (function () {
717
718
  /**
718
719
  * \@stable
719
720
  */
720
- var VERSION = new Version('5.2.7');
721
+ var VERSION = new Version('5.2.11');
721
722
 
722
723
  /**
723
724
  * @fileoverview added by tsickle
@@ -3513,7 +3514,7 @@ function isPromise(obj) {
3513
3514
  * @return {?}
3514
3515
  */
3515
3516
  function isObservable(obj) {
3516
- // TODO use Symbol.observable when https://github.com/ReactiveX/rxjs/issues/2415 will be resolved
3517
+ // TODO: use Symbol.observable when https://github.com/ReactiveX/rxjs/issues/2415 will be resolved
3517
3518
  return !!obj && typeof obj.subscribe === 'function';
3518
3519
  }
3519
3520
 
@@ -3722,6 +3723,7 @@ var Console = /** @class */ (function () {
3722
3723
  * Combination of NgModuleFactory and ComponentFactorys.
3723
3724
  *
3724
3725
  * \@experimental
3726
+ * @template T
3725
3727
  */
3726
3728
  var ModuleWithComponentFactories = /** @class */ (function () {
3727
3729
  function ModuleWithComponentFactories(ngModuleFactory, componentFactories) {
@@ -3890,6 +3892,7 @@ var CompilerFactory = /** @class */ (function () {
3890
3892
  * method.
3891
3893
  * \@stable
3892
3894
  * @abstract
3895
+ * @template C
3893
3896
  */
3894
3897
  var ComponentRef = /** @class */ (function () {
3895
3898
  function ComponentRef() {
@@ -3899,6 +3902,7 @@ var ComponentRef = /** @class */ (function () {
3899
3902
  /**
3900
3903
  * \@stable
3901
3904
  * @abstract
3905
+ * @template C
3902
3906
  */
3903
3907
  var ComponentFactory = /** @class */ (function () {
3904
3908
  function ComponentFactory() {
@@ -3992,6 +3996,9 @@ var CodegenComponentFactoryResolver = /** @class */ (function () {
3992
3996
  };
3993
3997
  return CodegenComponentFactoryResolver;
3994
3998
  }());
3999
+ /**
4000
+ * @template C
4001
+ */
3995
4002
  var ComponentFactoryBoundToModule = /** @class */ (function (_super) {
3996
4003
  __extends(ComponentFactoryBoundToModule, _super);
3997
4004
  function ComponentFactoryBoundToModule(factory, ngModule) {
@@ -4044,6 +4051,7 @@ var ComponentFactoryBoundToModule = /** @class */ (function (_super) {
4044
4051
  *
4045
4052
  * \@stable
4046
4053
  * @abstract
4054
+ * @template T
4047
4055
  */
4048
4056
  var NgModuleRef = /** @class */ (function () {
4049
4057
  function NgModuleRef() {
@@ -4052,11 +4060,13 @@ var NgModuleRef = /** @class */ (function () {
4052
4060
  }());
4053
4061
  /**
4054
4062
  * @record
4063
+ * @template T
4055
4064
  */
4056
4065
 
4057
4066
  /**
4058
4067
  * \@experimental
4059
4068
  * @abstract
4069
+ * @template T
4060
4070
  */
4061
4071
  var NgModuleFactory = /** @class */ (function () {
4062
4072
  function NgModuleFactory() {
@@ -4284,6 +4294,7 @@ var wtfEndTimeRange = wtfEnabled ? endTimeRange : function (r) { return null; };
4284
4294
  *
4285
4295
  * Once a reference implementation of the spec is available, switch to it.
4286
4296
  * \@stable
4297
+ * @template T
4287
4298
  */
4288
4299
  var EventEmitter = /** @class */ (function (_super) {
4289
4300
  __extends(EventEmitter, _super);
@@ -6287,6 +6298,7 @@ function getModuleFactory(id) {
6287
6298
  * }
6288
6299
  * ```
6289
6300
  * \@stable
6301
+ * @template T
6290
6302
  */
6291
6303
  var QueryList = /** @class */ (function () {
6292
6304
  function QueryList() {
@@ -6625,6 +6637,7 @@ function checkNotEmpty(value, modulePath, exportName) {
6625
6637
  * createEmbeddedView}, which will create the View and attach it to the View Container.
6626
6638
  * \@stable
6627
6639
  * @abstract
6640
+ * @template C
6628
6641
  */
6629
6642
  var TemplateRef = /** @class */ (function () {
6630
6643
  function TemplateRef() {
@@ -6765,6 +6778,7 @@ var ViewRef = /** @class */ (function (_super) {
6765
6778
  * ```
6766
6779
  * \@experimental
6767
6780
  * @abstract
6781
+ * @template C
6768
6782
  */
6769
6783
  var EmbeddedViewRef = /** @class */ (function (_super) {
6770
6784
  __extends(EmbeddedViewRef, _super);
@@ -7098,6 +7112,7 @@ function removeDebugNodeFromIndex(node) {
7098
7112
  *
7099
7113
  * \@experimental All debugging apis are currently experimental.
7100
7114
  * @record
7115
+ * @template T
7101
7116
  */
7102
7117
 
7103
7118
  /**
@@ -7325,6 +7340,7 @@ var DefaultIterableDifferFactory = /** @class */ (function () {
7325
7340
  var trackByIdentity = function (index, item) { return item; };
7326
7341
  /**
7327
7342
  * @deprecated v4.0.0 - Should not be part of public API.
7343
+ * @template V
7328
7344
  */
7329
7345
  var DefaultIterableDiffer = /** @class */ (function () {
7330
7346
  function DefaultIterableDiffer(trackByFn) {
@@ -7631,7 +7647,7 @@ var DefaultIterableDiffer = /** @class */ (function () {
7631
7647
  this._movesHead = this._movesTail = null;
7632
7648
  this._removalsHead = this._removalsTail = null;
7633
7649
  this._identityChangesHead = this._identityChangesTail = null;
7634
- // todo(vicb) when assert gets supported
7650
+ // TODO(vicb): when assert gets supported
7635
7651
  // assert(!this.isDirty);
7636
7652
  }
7637
7653
  };
@@ -7942,12 +7958,12 @@ var DefaultIterableDiffer = /** @class */ (function () {
7942
7958
  function (record, prevRecord, index) {
7943
7959
  this._insertAfter(record, prevRecord, index);
7944
7960
  if (this._additionsTail === null) {
7945
- // todo(vicb)
7961
+ // TODO(vicb):
7946
7962
  // assert(this._additionsHead === null);
7947
7963
  this._additionsTail = this._additionsHead = record;
7948
7964
  }
7949
7965
  else {
7950
- // todo(vicb)
7966
+ // TODO(vicb):
7951
7967
  // assert(_additionsTail._nextAdded === null);
7952
7968
  // assert(record._nextAdded === null);
7953
7969
  this._additionsTail = this._additionsTail._nextAdded = record;
@@ -7970,12 +7986,12 @@ var DefaultIterableDiffer = /** @class */ (function () {
7970
7986
  * @return {?}
7971
7987
  */
7972
7988
  function (record, prevRecord, index) {
7973
- // todo(vicb)
7989
+ // TODO(vicb):
7974
7990
  // assert(record != prevRecord);
7975
7991
  // assert(record._next === null);
7976
7992
  // assert(record._prev === null);
7977
7993
  var /** @type {?} */ next = prevRecord === null ? this._itHead : prevRecord._next;
7978
- // todo(vicb)
7994
+ // TODO(vicb):
7979
7995
  // assert(next != record);
7980
7996
  // assert(prevRecord != record);
7981
7997
  record._next = next;
@@ -8030,7 +8046,7 @@ var DefaultIterableDiffer = /** @class */ (function () {
8030
8046
  }
8031
8047
  var /** @type {?} */ prev = record._prev;
8032
8048
  var /** @type {?} */ next = record._next;
8033
- // todo(vicb)
8049
+ // TODO(vicb):
8034
8050
  // assert((record._prev = null) === null);
8035
8051
  // assert((record._next = null) === null);
8036
8052
  if (prev === null) {
@@ -8061,18 +8077,18 @@ var DefaultIterableDiffer = /** @class */ (function () {
8061
8077
  * @return {?}
8062
8078
  */
8063
8079
  function (record, toIndex) {
8064
- // todo(vicb)
8080
+ // TODO(vicb):
8065
8081
  // assert(record._nextMoved === null);
8066
8082
  if (record.previousIndex === toIndex) {
8067
8083
  return record;
8068
8084
  }
8069
8085
  if (this._movesTail === null) {
8070
- // todo(vicb)
8086
+ // TODO(vicb):
8071
8087
  // assert(_movesHead === null);
8072
8088
  this._movesTail = this._movesHead = record;
8073
8089
  }
8074
8090
  else {
8075
- // todo(vicb)
8091
+ // TODO(vicb):
8076
8092
  // assert(_movesTail._nextMoved === null);
8077
8093
  this._movesTail = this._movesTail._nextMoved = record;
8078
8094
  }
@@ -8094,13 +8110,13 @@ var DefaultIterableDiffer = /** @class */ (function () {
8094
8110
  record.currentIndex = null;
8095
8111
  record._nextRemoved = null;
8096
8112
  if (this._removalsTail === null) {
8097
- // todo(vicb)
8113
+ // TODO(vicb):
8098
8114
  // assert(_removalsHead === null);
8099
8115
  this._removalsTail = this._removalsHead = record;
8100
8116
  record._prevRemoved = null;
8101
8117
  }
8102
8118
  else {
8103
- // todo(vicb)
8119
+ // TODO(vicb):
8104
8120
  // assert(_removalsTail._nextRemoved === null);
8105
8121
  // assert(record._nextRemoved === null);
8106
8122
  record._prevRemoved = this._removalsTail;
@@ -8135,6 +8151,7 @@ var DefaultIterableDiffer = /** @class */ (function () {
8135
8151
  }());
8136
8152
  /**
8137
8153
  * \@stable
8154
+ * @template V
8138
8155
  */
8139
8156
  var IterableChangeRecord_ = /** @class */ (function () {
8140
8157
  function IterableChangeRecord_(item, trackById) {
@@ -8185,6 +8202,9 @@ var IterableChangeRecord_ = /** @class */ (function () {
8185
8202
  }
8186
8203
  return IterableChangeRecord_;
8187
8204
  }());
8205
+ /**
8206
+ * @template V
8207
+ */
8188
8208
  var _DuplicateItemRecordList = /** @class */ (function () {
8189
8209
  function _DuplicateItemRecordList() {
8190
8210
  /**
@@ -8223,7 +8243,7 @@ var _DuplicateItemRecordList = /** @class */ (function () {
8223
8243
  }
8224
8244
  else {
8225
8245
  /** @type {?} */ ((
8226
- // todo(vicb)
8246
+ // TODO(vicb):
8227
8247
  // assert(record.item == _head.item ||
8228
8248
  // record.item is num && record.item.isNaN && _head.item is num && _head.item.isNaN);
8229
8249
  this._tail))._nextDup = record;
@@ -8274,7 +8294,7 @@ var _DuplicateItemRecordList = /** @class */ (function () {
8274
8294
  * @return {?}
8275
8295
  */
8276
8296
  function (record) {
8277
- // todo(vicb)
8297
+ // TODO(vicb):
8278
8298
  // assert(() {
8279
8299
  // // verify that the record being removed is in the list.
8280
8300
  // for (IterableChangeRecord_ cursor = _head; cursor != null; cursor = cursor._nextDup) {
@@ -8300,6 +8320,9 @@ var _DuplicateItemRecordList = /** @class */ (function () {
8300
8320
  };
8301
8321
  return _DuplicateItemRecordList;
8302
8322
  }());
8323
+ /**
8324
+ * @template V
8325
+ */
8303
8326
  var _DuplicateMap = /** @class */ (function () {
8304
8327
  function _DuplicateMap() {
8305
8328
  this.map = new Map();
@@ -8426,6 +8449,9 @@ function getPreviousIndex(item, addRemoveOffset, moveOffsets) {
8426
8449
  * Use of this source code is governed by an MIT-style license that can be
8427
8450
  * found in the LICENSE file at https://angular.io/license
8428
8451
  */
8452
+ /**
8453
+ * @template K, V
8454
+ */
8429
8455
  var DefaultKeyValueDifferFactory = /** @class */ (function () {
8430
8456
  function DefaultKeyValueDifferFactory() {
8431
8457
  }
@@ -8449,6 +8475,9 @@ var DefaultKeyValueDifferFactory = /** @class */ (function () {
8449
8475
  function () { return new DefaultKeyValueDiffer(); };
8450
8476
  return DefaultKeyValueDifferFactory;
8451
8477
  }());
8478
+ /**
8479
+ * @template K, V
8480
+ */
8452
8481
  var DefaultKeyValueDiffer = /** @class */ (function () {
8453
8482
  function DefaultKeyValueDiffer() {
8454
8483
  this._records = new Map();
@@ -8810,6 +8839,7 @@ var DefaultKeyValueDiffer = /** @class */ (function () {
8810
8839
  }());
8811
8840
  /**
8812
8841
  * \@stable
8842
+ * @template K, V
8813
8843
  */
8814
8844
  var KeyValueChangeRecord_ = /** @class */ (function () {
8815
8845
  function KeyValueChangeRecord_(key) {
@@ -8861,6 +8891,7 @@ var KeyValueChangeRecord_ = /** @class */ (function () {
8861
8891
  *
8862
8892
  * \@stable
8863
8893
  * @record
8894
+ * @template V
8864
8895
  */
8865
8896
 
8866
8897
  /**
@@ -8869,6 +8900,7 @@ var KeyValueChangeRecord_ = /** @class */ (function () {
8869
8900
  *
8870
8901
  * \@stable
8871
8902
  * @record
8903
+ * @template V
8872
8904
  */
8873
8905
 
8874
8906
  /**
@@ -8876,11 +8908,13 @@ var KeyValueChangeRecord_ = /** @class */ (function () {
8876
8908
  *
8877
8909
  * \@stable
8878
8910
  * @record
8911
+ * @template V
8879
8912
  */
8880
8913
 
8881
8914
  /**
8882
8915
  * @deprecated v4.0.0 - Use IterableChangeRecord instead.
8883
8916
  * @record
8917
+ * @template V
8884
8918
  */
8885
8919
 
8886
8920
  /**
@@ -8889,6 +8923,7 @@ var KeyValueChangeRecord_ = /** @class */ (function () {
8889
8923
  *
8890
8924
  * \@stable
8891
8925
  * @record
8926
+ * @template T
8892
8927
  */
8893
8928
 
8894
8929
  /**
@@ -9046,6 +9081,7 @@ function getTypeNameForDebugging(type) {
9046
9081
  *
9047
9082
  * \@stable
9048
9083
  * @record
9084
+ * @template K, V
9049
9085
  */
9050
9086
 
9051
9087
  /**
@@ -9054,6 +9090,7 @@ function getTypeNameForDebugging(type) {
9054
9090
  *
9055
9091
  * \@stable
9056
9092
  * @record
9093
+ * @template K, V
9057
9094
  */
9058
9095
 
9059
9096
  /**
@@ -9061,6 +9098,7 @@ function getTypeNameForDebugging(type) {
9061
9098
  *
9062
9099
  * \@stable
9063
9100
  * @record
9101
+ * @template K, V
9064
9102
  */
9065
9103
 
9066
9104
  /**
@@ -9453,12 +9491,14 @@ var Sanitizer = /** @class */ (function () {
9453
9491
  * Use of this source code is governed by an MIT-style license that can be
9454
9492
  * found in the LICENSE file at https://angular.io/license
9455
9493
  */
9494
+ // unsupported: template constraints.
9456
9495
  /**
9457
9496
  * Factory for ViewDefinitions/NgModuleDefinitions.
9458
9497
  * We use a function so we can reexeute it in case an error happens and use the given logger
9459
9498
  * function to log the error from the definition of the node, which is shown in all browser
9460
9499
  * logs.
9461
9500
  * @record
9501
+ * @template D
9462
9502
  */
9463
9503
 
9464
9504
  /**
@@ -9468,8 +9508,10 @@ var Sanitizer = /** @class */ (function () {
9468
9508
  * @record
9469
9509
  */
9470
9510
 
9511
+ // unsupported: template constraints.
9471
9512
  /**
9472
9513
  * @record
9514
+ * @template DF
9473
9515
  */
9474
9516
 
9475
9517
  /**
@@ -16328,8 +16370,12 @@ function bloomFindPossibleInjector(startInjector, bloomBit) {
16328
16370
  /**
16329
16371
  * A predicate which determines if a given element/directive should be included in the query
16330
16372
  * @record
16373
+ * @template T
16331
16374
  */
16332
16375
 
16376
+ /**
16377
+ * @template T
16378
+ */
16333
16379
  var QueryList_ = /** @class */ (function () {
16334
16380
  function QueryList_() {
16335
16381
  this.dirty = false;