@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.
package/esm2015/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
  */
@@ -41,6 +41,7 @@ import { Subscription } from 'rxjs/Subscription';
41
41
  * {\@example core/di/ts/injector_spec.ts region='InjectionToken'}
42
42
  *
43
43
  * \@stable
44
+ * @template T
44
45
  */
45
46
  class InjectionToken {
46
47
  /**
@@ -683,7 +684,7 @@ class Version {
683
684
  /**
684
685
  * \@stable
685
686
  */
686
- const VERSION = new Version('5.2.7');
687
+ const VERSION = new Version('5.2.11');
687
688
 
688
689
  /**
689
690
  * @fileoverview added by tsickle
@@ -2995,7 +2996,7 @@ function isPromise(obj) {
2995
2996
  * @return {?}
2996
2997
  */
2997
2998
  function isObservable(obj) {
2998
- // TODO use Symbol.observable when https://github.com/ReactiveX/rxjs/issues/2415 will be resolved
2999
+ // TODO: use Symbol.observable when https://github.com/ReactiveX/rxjs/issues/2415 will be resolved
2999
3000
  return !!obj && typeof obj.subscribe === 'function';
3000
3001
  }
3001
3002
 
@@ -3187,6 +3188,7 @@ Console.ctorParameters = () => [];
3187
3188
  * Combination of NgModuleFactory and ComponentFactorys.
3188
3189
  *
3189
3190
  * \@experimental
3191
+ * @template T
3190
3192
  */
3191
3193
  class ModuleWithComponentFactories {
3192
3194
  /**
@@ -3299,12 +3301,14 @@ class CompilerFactory {
3299
3301
  * method.
3300
3302
  * \@stable
3301
3303
  * @abstract
3304
+ * @template C
3302
3305
  */
3303
3306
  class ComponentRef {
3304
3307
  }
3305
3308
  /**
3306
3309
  * \@stable
3307
3310
  * @abstract
3311
+ * @template C
3308
3312
  */
3309
3313
  class ComponentFactory {
3310
3314
  }
@@ -3383,6 +3387,9 @@ class CodegenComponentFactoryResolver {
3383
3387
  return new ComponentFactoryBoundToModule(factory, this._ngModule);
3384
3388
  }
3385
3389
  }
3390
+ /**
3391
+ * @template C
3392
+ */
3386
3393
  class ComponentFactoryBoundToModule extends ComponentFactory {
3387
3394
  /**
3388
3395
  * @param {?} factory
@@ -3429,16 +3436,19 @@ class ComponentFactoryBoundToModule extends ComponentFactory {
3429
3436
  *
3430
3437
  * \@stable
3431
3438
  * @abstract
3439
+ * @template T
3432
3440
  */
3433
3441
  class NgModuleRef {
3434
3442
  }
3435
3443
  /**
3436
3444
  * @record
3445
+ * @template T
3437
3446
  */
3438
3447
 
3439
3448
  /**
3440
3449
  * \@experimental
3441
3450
  * @abstract
3451
+ * @template T
3442
3452
  */
3443
3453
  class NgModuleFactory {
3444
3454
  }
@@ -3662,6 +3672,7 @@ const wtfEndTimeRange = wtfEnabled ? endTimeRange : (r) => null;
3662
3672
  *
3663
3673
  * Once a reference implementation of the spec is available, switch to it.
3664
3674
  * \@stable
3675
+ * @template T
3665
3676
  */
3666
3677
  class EventEmitter extends Subject {
3667
3678
  /**
@@ -5169,6 +5180,7 @@ function getModuleFactory(id) {
5169
5180
  * }
5170
5181
  * ```
5171
5182
  * \@stable
5183
+ * @template T
5172
5184
  */
5173
5185
  class QueryList {
5174
5186
  constructor() {
@@ -5404,6 +5416,7 @@ function checkNotEmpty(value, modulePath, exportName) {
5404
5416
  * createEmbeddedView}, which will create the View and attach it to the View Container.
5405
5417
  * \@stable
5406
5418
  * @abstract
5419
+ * @template C
5407
5420
  */
5408
5421
  class TemplateRef {
5409
5422
  }
@@ -5530,6 +5543,7 @@ class ViewRef extends ChangeDetectorRef {
5530
5543
  * ```
5531
5544
  * \@experimental
5532
5545
  * @abstract
5546
+ * @template C
5533
5547
  */
5534
5548
  class EmbeddedViewRef extends ViewRef {
5535
5549
  }
@@ -5806,6 +5820,7 @@ function removeDebugNodeFromIndex(node) {
5806
5820
  *
5807
5821
  * \@experimental All debugging apis are currently experimental.
5808
5822
  * @record
5823
+ * @template T
5809
5824
  */
5810
5825
 
5811
5826
  /**
@@ -5996,6 +6011,7 @@ class DefaultIterableDifferFactory {
5996
6011
  const trackByIdentity = (index, item) => item;
5997
6012
  /**
5998
6013
  * @deprecated v4.0.0 - Should not be part of public API.
6014
+ * @template V
5999
6015
  */
6000
6016
  class DefaultIterableDiffer {
6001
6017
  /**
@@ -6241,7 +6257,7 @@ class DefaultIterableDiffer {
6241
6257
  this._movesHead = this._movesTail = null;
6242
6258
  this._removalsHead = this._removalsTail = null;
6243
6259
  this._identityChangesHead = this._identityChangesTail = null;
6244
- // todo(vicb) when assert gets supported
6260
+ // TODO(vicb): when assert gets supported
6245
6261
  // assert(!this.isDirty);
6246
6262
  }
6247
6263
  }
@@ -6428,12 +6444,12 @@ class DefaultIterableDiffer {
6428
6444
  _addAfter(record, prevRecord, index) {
6429
6445
  this._insertAfter(record, prevRecord, index);
6430
6446
  if (this._additionsTail === null) {
6431
- // todo(vicb)
6447
+ // TODO(vicb):
6432
6448
  // assert(this._additionsHead === null);
6433
6449
  this._additionsTail = this._additionsHead = record;
6434
6450
  }
6435
6451
  else {
6436
- // todo(vicb)
6452
+ // TODO(vicb):
6437
6453
  // assert(_additionsTail._nextAdded === null);
6438
6454
  // assert(record._nextAdded === null);
6439
6455
  this._additionsTail = this._additionsTail._nextAdded = record;
@@ -6448,12 +6464,12 @@ class DefaultIterableDiffer {
6448
6464
  * @return {?}
6449
6465
  */
6450
6466
  _insertAfter(record, prevRecord, index) {
6451
- // todo(vicb)
6467
+ // TODO(vicb):
6452
6468
  // assert(record != prevRecord);
6453
6469
  // assert(record._next === null);
6454
6470
  // assert(record._prev === null);
6455
6471
  const /** @type {?} */ next = prevRecord === null ? this._itHead : prevRecord._next;
6456
- // todo(vicb)
6472
+ // TODO(vicb):
6457
6473
  // assert(next != record);
6458
6474
  // assert(prevRecord != record);
6459
6475
  record._next = next;
@@ -6496,7 +6512,7 @@ class DefaultIterableDiffer {
6496
6512
  }
6497
6513
  const /** @type {?} */ prev = record._prev;
6498
6514
  const /** @type {?} */ next = record._next;
6499
- // todo(vicb)
6515
+ // TODO(vicb):
6500
6516
  // assert((record._prev = null) === null);
6501
6517
  // assert((record._next = null) === null);
6502
6518
  if (prev === null) {
@@ -6520,18 +6536,18 @@ class DefaultIterableDiffer {
6520
6536
  * @return {?}
6521
6537
  */
6522
6538
  _addToMoves(record, toIndex) {
6523
- // todo(vicb)
6539
+ // TODO(vicb):
6524
6540
  // assert(record._nextMoved === null);
6525
6541
  if (record.previousIndex === toIndex) {
6526
6542
  return record;
6527
6543
  }
6528
6544
  if (this._movesTail === null) {
6529
- // todo(vicb)
6545
+ // TODO(vicb):
6530
6546
  // assert(_movesHead === null);
6531
6547
  this._movesTail = this._movesHead = record;
6532
6548
  }
6533
6549
  else {
6534
- // todo(vicb)
6550
+ // TODO(vicb):
6535
6551
  // assert(_movesTail._nextMoved === null);
6536
6552
  this._movesTail = this._movesTail._nextMoved = record;
6537
6553
  }
@@ -6549,13 +6565,13 @@ class DefaultIterableDiffer {
6549
6565
  record.currentIndex = null;
6550
6566
  record._nextRemoved = null;
6551
6567
  if (this._removalsTail === null) {
6552
- // todo(vicb)
6568
+ // TODO(vicb):
6553
6569
  // assert(_removalsHead === null);
6554
6570
  this._removalsTail = this._removalsHead = record;
6555
6571
  record._prevRemoved = null;
6556
6572
  }
6557
6573
  else {
6558
- // todo(vicb)
6574
+ // TODO(vicb):
6559
6575
  // assert(_removalsTail._nextRemoved === null);
6560
6576
  // assert(record._nextRemoved === null);
6561
6577
  record._prevRemoved = this._removalsTail;
@@ -6582,6 +6598,7 @@ class DefaultIterableDiffer {
6582
6598
  }
6583
6599
  /**
6584
6600
  * \@stable
6601
+ * @template V
6585
6602
  */
6586
6603
  class IterableChangeRecord_ {
6587
6604
  /**
@@ -6635,6 +6652,9 @@ class IterableChangeRecord_ {
6635
6652
  this._nextIdentityChange = null;
6636
6653
  }
6637
6654
  }
6655
+ /**
6656
+ * @template V
6657
+ */
6638
6658
  class _DuplicateItemRecordList {
6639
6659
  constructor() {
6640
6660
  /**
@@ -6661,7 +6681,7 @@ class _DuplicateItemRecordList {
6661
6681
  }
6662
6682
  else {
6663
6683
  /** @type {?} */ ((
6664
- // todo(vicb)
6684
+ // TODO(vicb):
6665
6685
  // assert(record.item == _head.item ||
6666
6686
  // record.item is num && record.item.isNaN && _head.item is num && _head.item.isNaN);
6667
6687
  this._tail))._nextDup = record;
@@ -6693,7 +6713,7 @@ class _DuplicateItemRecordList {
6693
6713
  * @return {?}
6694
6714
  */
6695
6715
  remove(record) {
6696
- // todo(vicb)
6716
+ // TODO(vicb):
6697
6717
  // assert(() {
6698
6718
  // // verify that the record being removed is in the list.
6699
6719
  // for (IterableChangeRecord_ cursor = _head; cursor != null; cursor = cursor._nextDup) {
@@ -6718,6 +6738,9 @@ class _DuplicateItemRecordList {
6718
6738
  return this._head === null;
6719
6739
  }
6720
6740
  }
6741
+ /**
6742
+ * @template V
6743
+ */
6721
6744
  class _DuplicateMap {
6722
6745
  constructor() {
6723
6746
  this.map = new Map();
@@ -6803,6 +6826,9 @@ function getPreviousIndex(item, addRemoveOffset, moveOffsets) {
6803
6826
  * Use of this source code is governed by an MIT-style license that can be
6804
6827
  * found in the LICENSE file at https://angular.io/license
6805
6828
  */
6829
+ /**
6830
+ * @template K, V
6831
+ */
6806
6832
  class DefaultKeyValueDifferFactory {
6807
6833
  constructor() { }
6808
6834
  /**
@@ -6816,6 +6842,9 @@ class DefaultKeyValueDifferFactory {
6816
6842
  */
6817
6843
  create() { return new DefaultKeyValueDiffer(); }
6818
6844
  }
6845
+ /**
6846
+ * @template K, V
6847
+ */
6819
6848
  class DefaultKeyValueDiffer {
6820
6849
  constructor() {
6821
6850
  this._records = new Map();
@@ -7093,6 +7122,7 @@ class DefaultKeyValueDiffer {
7093
7122
  }
7094
7123
  /**
7095
7124
  * \@stable
7125
+ * @template K, V
7096
7126
  */
7097
7127
  class KeyValueChangeRecord_ {
7098
7128
  /**
@@ -7146,6 +7176,7 @@ class KeyValueChangeRecord_ {
7146
7176
  *
7147
7177
  * \@stable
7148
7178
  * @record
7179
+ * @template V
7149
7180
  */
7150
7181
 
7151
7182
  /**
@@ -7154,6 +7185,7 @@ class KeyValueChangeRecord_ {
7154
7185
  *
7155
7186
  * \@stable
7156
7187
  * @record
7188
+ * @template V
7157
7189
  */
7158
7190
 
7159
7191
  /**
@@ -7161,11 +7193,13 @@ class KeyValueChangeRecord_ {
7161
7193
  *
7162
7194
  * \@stable
7163
7195
  * @record
7196
+ * @template V
7164
7197
  */
7165
7198
 
7166
7199
  /**
7167
7200
  * @deprecated v4.0.0 - Use IterableChangeRecord instead.
7168
7201
  * @record
7202
+ * @template V
7169
7203
  */
7170
7204
 
7171
7205
  /**
@@ -7174,6 +7208,7 @@ class KeyValueChangeRecord_ {
7174
7208
  *
7175
7209
  * \@stable
7176
7210
  * @record
7211
+ * @template T
7177
7212
  */
7178
7213
 
7179
7214
  /**
@@ -7282,6 +7317,7 @@ function getTypeNameForDebugging(type) {
7282
7317
  *
7283
7318
  * \@stable
7284
7319
  * @record
7320
+ * @template K, V
7285
7321
  */
7286
7322
 
7287
7323
  /**
@@ -7290,6 +7326,7 @@ function getTypeNameForDebugging(type) {
7290
7326
  *
7291
7327
  * \@stable
7292
7328
  * @record
7329
+ * @template K, V
7293
7330
  */
7294
7331
 
7295
7332
  /**
@@ -7297,6 +7334,7 @@ function getTypeNameForDebugging(type) {
7297
7334
  *
7298
7335
  * \@stable
7299
7336
  * @record
7337
+ * @template K, V
7300
7338
  */
7301
7339
 
7302
7340
  /**
@@ -7635,12 +7673,14 @@ class Sanitizer {
7635
7673
  * Use of this source code is governed by an MIT-style license that can be
7636
7674
  * found in the LICENSE file at https://angular.io/license
7637
7675
  */
7676
+ // unsupported: template constraints.
7638
7677
  /**
7639
7678
  * Factory for ViewDefinitions/NgModuleDefinitions.
7640
7679
  * We use a function so we can reexeute it in case an error happens and use the given logger
7641
7680
  * function to log the error from the definition of the node, which is shown in all browser
7642
7681
  * logs.
7643
7682
  * @record
7683
+ * @template D
7644
7684
  */
7645
7685
 
7646
7686
  /**
@@ -7650,8 +7690,10 @@ class Sanitizer {
7650
7690
  * @record
7651
7691
  */
7652
7692
 
7693
+ // unsupported: template constraints.
7653
7694
  /**
7654
7695
  * @record
7696
+ * @template DF
7655
7697
  */
7656
7698
 
7657
7699
  /**
@@ -14086,6 +14128,7 @@ function bloomFindPossibleInjector(startInjector, bloomBit) {
14086
14128
  /**
14087
14129
  * A predicate which determines if a given element/directive should be included in the query
14088
14130
  * @record
14131
+ * @template T
14089
14132
  */
14090
14133
 
14091
14134