@angular/core 12.0.0-rc.3 → 12.0.3

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 v12.0.0-rc.3
2
+ * @license Angular v12.0.3
3
3
  * (c) 2010-2021 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -12386,17 +12386,19 @@
12386
12386
  *
12387
12387
  * @usageNotes
12388
12388
  * Given the following DOM structure:
12389
+ *
12389
12390
  * ```html
12390
- * <my-app>
12391
+ * <app-root>
12391
12392
  * <div>
12392
12393
  * <child-comp></child-comp>
12393
12394
  * </div>
12394
- * </my-app>
12395
+ * </app-root>
12395
12396
  * ```
12397
+ *
12396
12398
  * Calling `getComponent` on `<child-comp>` will return the instance of `ChildComponent`
12397
12399
  * associated with this DOM element.
12398
12400
  *
12399
- * Calling the function on `<my-app>` will return the `MyApp` instance.
12401
+ * Calling the function on `<app-root>` will return the `MyApp` instance.
12400
12402
  *
12401
12403
  *
12402
12404
  * @param element DOM element from which the component should be retrieved.
@@ -12525,12 +12527,14 @@
12525
12527
  *
12526
12528
  * @usageNotes
12527
12529
  * Given the following DOM structure:
12528
- * ```
12529
- * <my-app>
12530
+ *
12531
+ * ```html
12532
+ * <app-root>
12530
12533
  * <button my-button></button>
12531
12534
  * <my-comp></my-comp>
12532
- * </my-app>
12535
+ * </app-root>
12533
12536
  * ```
12537
+ *
12534
12538
  * Calling `getDirectives` on `<button>` will return an array with an instance of the `MyButton`
12535
12539
  * directive that is associated with the DOM node.
12536
12540
  *
@@ -12650,14 +12654,16 @@
12650
12654
  *
12651
12655
  * @usageNotes
12652
12656
  * Given the following DOM structure:
12653
- * ```
12654
- * <my-app>
12655
- * <div (click)="doSomething()"></div>
12656
- * </my-app>
12657
12657
  *
12658
+ * ```html
12659
+ * <app-root>
12660
+ * <div (click)="doSomething()"></div>
12661
+ * </app-root>
12658
12662
  * ```
12663
+ *
12659
12664
  * Calling `getListeners` on `<div>` will return an object that looks as follows:
12660
- * ```
12665
+ *
12666
+ * ```ts
12661
12667
  * {
12662
12668
  * name: 'click',
12663
12669
  * element: <div>,
@@ -15721,8 +15727,11 @@
15721
15727
  var lCleanup = getOrCreateLViewCleanup(lView);
15722
15728
  ngDevMode && assertTNodeType(tNode, 3 /* AnyRNode */ | 12 /* AnyContainer */);
15723
15729
  var processOutputs = true;
15724
- // add native event listener - applicable to elements only
15725
- if (tNode.type & 3 /* AnyRNode */) {
15730
+ // Adding a native event listener is applicable when:
15731
+ // - The corresponding TNode represents a DOM element.
15732
+ // - The event target has a resolver (usually resulting in a global object,
15733
+ // such as `window` or `document`).
15734
+ if ((tNode.type & 3 /* AnyRNode */) || eventTargetResolver) {
15726
15735
  var native = getNativeByTNode(tNode, lView);
15727
15736
  var target = eventTargetResolver ? eventTargetResolver(native) : native;
15728
15737
  var lCleanupIndex = lCleanup.length;
@@ -22013,17 +22022,16 @@
22013
22022
  var Version = /** @class */ (function () {
22014
22023
  function Version(full) {
22015
22024
  this.full = full;
22016
- var _a = __read(full.split('.')), major = _a[0], minor = _a[1], rest = _a.slice(2);
22017
- this.major = major;
22018
- this.minor = minor;
22019
- this.patch = rest.join('.');
22025
+ this.major = full.split('.')[0];
22026
+ this.minor = full.split('.')[1];
22027
+ this.patch = full.split('.').slice(2).join('.');
22020
22028
  }
22021
22029
  return Version;
22022
22030
  }());
22023
22031
  /**
22024
22032
  * @publicApi
22025
22033
  */
22026
- var VERSION = new Version('12.0.0-rc.3');
22034
+ var VERSION = new Version('12.0.3');
22027
22035
 
22028
22036
  /**
22029
22037
  * @license
@@ -23249,7 +23257,7 @@
23249
23257
  *
23250
23258
  * ```typescript
23251
23259
  * @Component({
23252
- * selector: 'my-app',
23260
+ * selector: 'app-root',
23253
23261
  * template: `Number of ticks: {{numberOfTicks}}`
23254
23262
  * changeDetection: ChangeDetectionStrategy.OnPush,
23255
23263
  * })
@@ -23369,7 +23377,7 @@
23369
23377
  * }
23370
23378
  *
23371
23379
  * @Component({
23372
- * selector: 'my-app',
23380
+ * selector: 'app-root',
23373
23381
  * providers: [DataProvider],
23374
23382
  * template: `
23375
23383
  * Live Update: <input type="checkbox" [(ngModel)]="live">