@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
  */
@@ -44,7 +44,7 @@ var __assign = Object.assign || function __assign(t) {
44
44
  };
45
45
 
46
46
  /**
47
- * @license Angular v5.2.7
47
+ * @license Angular v5.2.11
48
48
  * (c) 2010-2018 Google, Inc. https://angular.io/
49
49
  * License: MIT
50
50
  */
@@ -80,6 +80,7 @@ var __assign = Object.assign || function __assign(t) {
80
80
  * {\@example core/di/ts/injector_spec.ts region='InjectionToken'}
81
81
  *
82
82
  * \@stable
83
+ * @template T
83
84
  */
84
85
  var InjectionToken = /** @class */ (function () {
85
86
  function InjectionToken(_desc) {
@@ -755,7 +756,7 @@ var Version = /** @class */ (function () {
755
756
  /**
756
757
  * \@stable
757
758
  */
758
- var VERSION = new Version('5.2.7');
759
+ var VERSION = new Version('5.2.11');
759
760
 
760
761
  /**
761
762
  * @fileoverview added by tsickle
@@ -3551,7 +3552,7 @@ function isPromise(obj) {
3551
3552
  * @return {?}
3552
3553
  */
3553
3554
  function isObservable(obj) {
3554
- // TODO use Symbol.observable when https://github.com/ReactiveX/rxjs/issues/2415 will be resolved
3555
+ // TODO: use Symbol.observable when https://github.com/ReactiveX/rxjs/issues/2415 will be resolved
3555
3556
  return !!obj && typeof obj.subscribe === 'function';
3556
3557
  }
3557
3558
 
@@ -3760,6 +3761,7 @@ var Console = /** @class */ (function () {
3760
3761
  * Combination of NgModuleFactory and ComponentFactorys.
3761
3762
  *
3762
3763
  * \@experimental
3764
+ * @template T
3763
3765
  */
3764
3766
  var ModuleWithComponentFactories = /** @class */ (function () {
3765
3767
  function ModuleWithComponentFactories(ngModuleFactory, componentFactories) {
@@ -3928,6 +3930,7 @@ var CompilerFactory = /** @class */ (function () {
3928
3930
  * method.
3929
3931
  * \@stable
3930
3932
  * @abstract
3933
+ * @template C
3931
3934
  */
3932
3935
  var ComponentRef = /** @class */ (function () {
3933
3936
  function ComponentRef() {
@@ -3937,6 +3940,7 @@ var ComponentRef = /** @class */ (function () {
3937
3940
  /**
3938
3941
  * \@stable
3939
3942
  * @abstract
3943
+ * @template C
3940
3944
  */
3941
3945
  var ComponentFactory = /** @class */ (function () {
3942
3946
  function ComponentFactory() {
@@ -4030,6 +4034,9 @@ var CodegenComponentFactoryResolver = /** @class */ (function () {
4030
4034
  };
4031
4035
  return CodegenComponentFactoryResolver;
4032
4036
  }());
4037
+ /**
4038
+ * @template C
4039
+ */
4033
4040
  var ComponentFactoryBoundToModule = /** @class */ (function (_super) {
4034
4041
  __extends(ComponentFactoryBoundToModule, _super);
4035
4042
  function ComponentFactoryBoundToModule(factory, ngModule) {
@@ -4082,6 +4089,7 @@ var ComponentFactoryBoundToModule = /** @class */ (function (_super) {
4082
4089
  *
4083
4090
  * \@stable
4084
4091
  * @abstract
4092
+ * @template T
4085
4093
  */
4086
4094
  var NgModuleRef = /** @class */ (function () {
4087
4095
  function NgModuleRef() {
@@ -4090,11 +4098,13 @@ var NgModuleRef = /** @class */ (function () {
4090
4098
  }());
4091
4099
  /**
4092
4100
  * @record
4101
+ * @template T
4093
4102
  */
4094
4103
 
4095
4104
  /**
4096
4105
  * \@experimental
4097
4106
  * @abstract
4107
+ * @template T
4098
4108
  */
4099
4109
  var NgModuleFactory = /** @class */ (function () {
4100
4110
  function NgModuleFactory() {
@@ -4322,6 +4332,7 @@ var wtfEndTimeRange = wtfEnabled ? endTimeRange : function (r) { return null; };
4322
4332
  *
4323
4333
  * Once a reference implementation of the spec is available, switch to it.
4324
4334
  * \@stable
4335
+ * @template T
4325
4336
  */
4326
4337
  var EventEmitter = /** @class */ (function (_super) {
4327
4338
  __extends(EventEmitter, _super);
@@ -6325,6 +6336,7 @@ function getModuleFactory(id) {
6325
6336
  * }
6326
6337
  * ```
6327
6338
  * \@stable
6339
+ * @template T
6328
6340
  */
6329
6341
  var QueryList = /** @class */ (function () {
6330
6342
  function QueryList() {
@@ -6663,6 +6675,7 @@ function checkNotEmpty(value, modulePath, exportName) {
6663
6675
  * createEmbeddedView}, which will create the View and attach it to the View Container.
6664
6676
  * \@stable
6665
6677
  * @abstract
6678
+ * @template C
6666
6679
  */
6667
6680
  var TemplateRef = /** @class */ (function () {
6668
6681
  function TemplateRef() {
@@ -6803,6 +6816,7 @@ var ViewRef = /** @class */ (function (_super) {
6803
6816
  * ```
6804
6817
  * \@experimental
6805
6818
  * @abstract
6819
+ * @template C
6806
6820
  */
6807
6821
  var EmbeddedViewRef = /** @class */ (function (_super) {
6808
6822
  __extends(EmbeddedViewRef, _super);
@@ -7136,6 +7150,7 @@ function removeDebugNodeFromIndex(node) {
7136
7150
  *
7137
7151
  * \@experimental All debugging apis are currently experimental.
7138
7152
  * @record
7153
+ * @template T
7139
7154
  */
7140
7155
 
7141
7156
  /**
@@ -7363,6 +7378,7 @@ var DefaultIterableDifferFactory = /** @class */ (function () {
7363
7378
  var trackByIdentity = function (index, item) { return item; };
7364
7379
  /**
7365
7380
  * @deprecated v4.0.0 - Should not be part of public API.
7381
+ * @template V
7366
7382
  */
7367
7383
  var DefaultIterableDiffer = /** @class */ (function () {
7368
7384
  function DefaultIterableDiffer(trackByFn) {
@@ -7669,7 +7685,7 @@ var DefaultIterableDiffer = /** @class */ (function () {
7669
7685
  this._movesHead = this._movesTail = null;
7670
7686
  this._removalsHead = this._removalsTail = null;
7671
7687
  this._identityChangesHead = this._identityChangesTail = null;
7672
- // todo(vicb) when assert gets supported
7688
+ // TODO(vicb): when assert gets supported
7673
7689
  // assert(!this.isDirty);
7674
7690
  }
7675
7691
  };
@@ -7980,12 +7996,12 @@ var DefaultIterableDiffer = /** @class */ (function () {
7980
7996
  function (record, prevRecord, index) {
7981
7997
  this._insertAfter(record, prevRecord, index);
7982
7998
  if (this._additionsTail === null) {
7983
- // todo(vicb)
7999
+ // TODO(vicb):
7984
8000
  // assert(this._additionsHead === null);
7985
8001
  this._additionsTail = this._additionsHead = record;
7986
8002
  }
7987
8003
  else {
7988
- // todo(vicb)
8004
+ // TODO(vicb):
7989
8005
  // assert(_additionsTail._nextAdded === null);
7990
8006
  // assert(record._nextAdded === null);
7991
8007
  this._additionsTail = this._additionsTail._nextAdded = record;
@@ -8008,12 +8024,12 @@ var DefaultIterableDiffer = /** @class */ (function () {
8008
8024
  * @return {?}
8009
8025
  */
8010
8026
  function (record, prevRecord, index) {
8011
- // todo(vicb)
8027
+ // TODO(vicb):
8012
8028
  // assert(record != prevRecord);
8013
8029
  // assert(record._next === null);
8014
8030
  // assert(record._prev === null);
8015
8031
  var /** @type {?} */ next = prevRecord === null ? this._itHead : prevRecord._next;
8016
- // todo(vicb)
8032
+ // TODO(vicb):
8017
8033
  // assert(next != record);
8018
8034
  // assert(prevRecord != record);
8019
8035
  record._next = next;
@@ -8068,7 +8084,7 @@ var DefaultIterableDiffer = /** @class */ (function () {
8068
8084
  }
8069
8085
  var /** @type {?} */ prev = record._prev;
8070
8086
  var /** @type {?} */ next = record._next;
8071
- // todo(vicb)
8087
+ // TODO(vicb):
8072
8088
  // assert((record._prev = null) === null);
8073
8089
  // assert((record._next = null) === null);
8074
8090
  if (prev === null) {
@@ -8099,18 +8115,18 @@ var DefaultIterableDiffer = /** @class */ (function () {
8099
8115
  * @return {?}
8100
8116
  */
8101
8117
  function (record, toIndex) {
8102
- // todo(vicb)
8118
+ // TODO(vicb):
8103
8119
  // assert(record._nextMoved === null);
8104
8120
  if (record.previousIndex === toIndex) {
8105
8121
  return record;
8106
8122
  }
8107
8123
  if (this._movesTail === null) {
8108
- // todo(vicb)
8124
+ // TODO(vicb):
8109
8125
  // assert(_movesHead === null);
8110
8126
  this._movesTail = this._movesHead = record;
8111
8127
  }
8112
8128
  else {
8113
- // todo(vicb)
8129
+ // TODO(vicb):
8114
8130
  // assert(_movesTail._nextMoved === null);
8115
8131
  this._movesTail = this._movesTail._nextMoved = record;
8116
8132
  }
@@ -8132,13 +8148,13 @@ var DefaultIterableDiffer = /** @class */ (function () {
8132
8148
  record.currentIndex = null;
8133
8149
  record._nextRemoved = null;
8134
8150
  if (this._removalsTail === null) {
8135
- // todo(vicb)
8151
+ // TODO(vicb):
8136
8152
  // assert(_removalsHead === null);
8137
8153
  this._removalsTail = this._removalsHead = record;
8138
8154
  record._prevRemoved = null;
8139
8155
  }
8140
8156
  else {
8141
- // todo(vicb)
8157
+ // TODO(vicb):
8142
8158
  // assert(_removalsTail._nextRemoved === null);
8143
8159
  // assert(record._nextRemoved === null);
8144
8160
  record._prevRemoved = this._removalsTail;
@@ -8173,6 +8189,7 @@ var DefaultIterableDiffer = /** @class */ (function () {
8173
8189
  }());
8174
8190
  /**
8175
8191
  * \@stable
8192
+ * @template V
8176
8193
  */
8177
8194
  var IterableChangeRecord_ = /** @class */ (function () {
8178
8195
  function IterableChangeRecord_(item, trackById) {
@@ -8223,6 +8240,9 @@ var IterableChangeRecord_ = /** @class */ (function () {
8223
8240
  }
8224
8241
  return IterableChangeRecord_;
8225
8242
  }());
8243
+ /**
8244
+ * @template V
8245
+ */
8226
8246
  var _DuplicateItemRecordList = /** @class */ (function () {
8227
8247
  function _DuplicateItemRecordList() {
8228
8248
  /**
@@ -8261,7 +8281,7 @@ var _DuplicateItemRecordList = /** @class */ (function () {
8261
8281
  }
8262
8282
  else {
8263
8283
  /** @type {?} */ ((
8264
- // todo(vicb)
8284
+ // TODO(vicb):
8265
8285
  // assert(record.item == _head.item ||
8266
8286
  // record.item is num && record.item.isNaN && _head.item is num && _head.item.isNaN);
8267
8287
  this._tail))._nextDup = record;
@@ -8312,7 +8332,7 @@ var _DuplicateItemRecordList = /** @class */ (function () {
8312
8332
  * @return {?}
8313
8333
  */
8314
8334
  function (record) {
8315
- // todo(vicb)
8335
+ // TODO(vicb):
8316
8336
  // assert(() {
8317
8337
  // // verify that the record being removed is in the list.
8318
8338
  // for (IterableChangeRecord_ cursor = _head; cursor != null; cursor = cursor._nextDup) {
@@ -8338,6 +8358,9 @@ var _DuplicateItemRecordList = /** @class */ (function () {
8338
8358
  };
8339
8359
  return _DuplicateItemRecordList;
8340
8360
  }());
8361
+ /**
8362
+ * @template V
8363
+ */
8341
8364
  var _DuplicateMap = /** @class */ (function () {
8342
8365
  function _DuplicateMap() {
8343
8366
  this.map = new Map();
@@ -8464,6 +8487,9 @@ function getPreviousIndex(item, addRemoveOffset, moveOffsets) {
8464
8487
  * Use of this source code is governed by an MIT-style license that can be
8465
8488
  * found in the LICENSE file at https://angular.io/license
8466
8489
  */
8490
+ /**
8491
+ * @template K, V
8492
+ */
8467
8493
  var DefaultKeyValueDifferFactory = /** @class */ (function () {
8468
8494
  function DefaultKeyValueDifferFactory() {
8469
8495
  }
@@ -8487,6 +8513,9 @@ var DefaultKeyValueDifferFactory = /** @class */ (function () {
8487
8513
  function () { return new DefaultKeyValueDiffer(); };
8488
8514
  return DefaultKeyValueDifferFactory;
8489
8515
  }());
8516
+ /**
8517
+ * @template K, V
8518
+ */
8490
8519
  var DefaultKeyValueDiffer = /** @class */ (function () {
8491
8520
  function DefaultKeyValueDiffer() {
8492
8521
  this._records = new Map();
@@ -8848,6 +8877,7 @@ var DefaultKeyValueDiffer = /** @class */ (function () {
8848
8877
  }());
8849
8878
  /**
8850
8879
  * \@stable
8880
+ * @template K, V
8851
8881
  */
8852
8882
  var KeyValueChangeRecord_ = /** @class */ (function () {
8853
8883
  function KeyValueChangeRecord_(key) {
@@ -8899,6 +8929,7 @@ var KeyValueChangeRecord_ = /** @class */ (function () {
8899
8929
  *
8900
8930
  * \@stable
8901
8931
  * @record
8932
+ * @template V
8902
8933
  */
8903
8934
 
8904
8935
  /**
@@ -8907,6 +8938,7 @@ var KeyValueChangeRecord_ = /** @class */ (function () {
8907
8938
  *
8908
8939
  * \@stable
8909
8940
  * @record
8941
+ * @template V
8910
8942
  */
8911
8943
 
8912
8944
  /**
@@ -8914,11 +8946,13 @@ var KeyValueChangeRecord_ = /** @class */ (function () {
8914
8946
  *
8915
8947
  * \@stable
8916
8948
  * @record
8949
+ * @template V
8917
8950
  */
8918
8951
 
8919
8952
  /**
8920
8953
  * @deprecated v4.0.0 - Use IterableChangeRecord instead.
8921
8954
  * @record
8955
+ * @template V
8922
8956
  */
8923
8957
 
8924
8958
  /**
@@ -8927,6 +8961,7 @@ var KeyValueChangeRecord_ = /** @class */ (function () {
8927
8961
  *
8928
8962
  * \@stable
8929
8963
  * @record
8964
+ * @template T
8930
8965
  */
8931
8966
 
8932
8967
  /**
@@ -9084,6 +9119,7 @@ function getTypeNameForDebugging(type) {
9084
9119
  *
9085
9120
  * \@stable
9086
9121
  * @record
9122
+ * @template K, V
9087
9123
  */
9088
9124
 
9089
9125
  /**
@@ -9092,6 +9128,7 @@ function getTypeNameForDebugging(type) {
9092
9128
  *
9093
9129
  * \@stable
9094
9130
  * @record
9131
+ * @template K, V
9095
9132
  */
9096
9133
 
9097
9134
  /**
@@ -9099,6 +9136,7 @@ function getTypeNameForDebugging(type) {
9099
9136
  *
9100
9137
  * \@stable
9101
9138
  * @record
9139
+ * @template K, V
9102
9140
  */
9103
9141
 
9104
9142
  /**
@@ -9491,12 +9529,14 @@ var Sanitizer = /** @class */ (function () {
9491
9529
  * Use of this source code is governed by an MIT-style license that can be
9492
9530
  * found in the LICENSE file at https://angular.io/license
9493
9531
  */
9532
+ // unsupported: template constraints.
9494
9533
  /**
9495
9534
  * Factory for ViewDefinitions/NgModuleDefinitions.
9496
9535
  * We use a function so we can reexeute it in case an error happens and use the given logger
9497
9536
  * function to log the error from the definition of the node, which is shown in all browser
9498
9537
  * logs.
9499
9538
  * @record
9539
+ * @template D
9500
9540
  */
9501
9541
 
9502
9542
  /**
@@ -9506,8 +9546,10 @@ var Sanitizer = /** @class */ (function () {
9506
9546
  * @record
9507
9547
  */
9508
9548
 
9549
+ // unsupported: template constraints.
9509
9550
  /**
9510
9551
  * @record
9552
+ * @template DF
9511
9553
  */
9512
9554
 
9513
9555
  /**
@@ -16219,8 +16261,12 @@ function stringify$1(value) {
16219
16261
  /**
16220
16262
  * A predicate which determines if a given element/directive should be included in the query
16221
16263
  * @record
16264
+ * @template T
16222
16265
  */
16223
16266
 
16267
+ /**
16268
+ * @template T
16269
+ */
16224
16270
  var QueryList_ = /** @class */ (function () {
16225
16271
  function QueryList_() {
16226
16272
  this.dirty = false;