@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.
- package/bundles/core-testing.umd.js +46 -83
- package/bundles/core-testing.umd.js.map +1 -1
- package/bundles/core.umd.js +29 -21
- package/bundles/core.umd.js.map +1 -1
- package/core.d.ts +194 -15
- package/core.metadata.json +1 -1
- package/esm2015/src/change_detection/differs/iterable_differs.js +1 -1
- package/esm2015/src/debug/debug_node.js +1 -1
- package/esm2015/src/di/injectable.js +1 -1
- package/esm2015/src/metadata/di.js +1 -1
- package/esm2015/src/metadata/do_boostrap.js +1 -1
- package/esm2015/src/render3/instructions/listener.js +6 -3
- package/esm2015/src/render3/util/discovery_utils.js +18 -12
- package/esm2015/src/render3/view_ref.js +3 -3
- package/esm2015/src/version.js +5 -6
- package/esm2015/testing/src/fake_async.js +42 -25
- package/esm2015/testing/src/test_bed.js +5 -25
- package/esm2015/testing/src/testing_internal.js +1 -182
- package/fesm2015/core.js +29 -21
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/testing.js +46 -76
- package/fesm2015/testing.js.map +1 -1
- package/package.json +2 -5
- package/schematics/migrations/deep-shadow-piercing-selector/index.d.ts +10 -0
- package/schematics/migrations/deep-shadow-piercing-selector/index.js +49 -0
- package/schematics/migrations.json +5 -0
- package/src/r3_symbols.d.ts +1 -1
- package/testing/testing.d.ts +42 -30
- package/testing/testing.metadata.json +1 -1
- package/testing.d.ts +1 -1
- package/esm2015/testing/src/async_test_completer.js +0 -28
package/bundles/core.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v12.0.
|
|
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
|
-
* <
|
|
12391
|
+
* <app-root>
|
|
12391
12392
|
* <div>
|
|
12392
12393
|
* <child-comp></child-comp>
|
|
12393
12394
|
* </div>
|
|
12394
|
-
* </
|
|
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 `<
|
|
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
|
-
*
|
|
12530
|
+
*
|
|
12531
|
+
* ```html
|
|
12532
|
+
* <app-root>
|
|
12530
12533
|
* <button my-button></button>
|
|
12531
12534
|
* <my-comp></my-comp>
|
|
12532
|
-
* </
|
|
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
|
-
//
|
|
15725
|
-
|
|
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
|
-
|
|
22017
|
-
this.
|
|
22018
|
-
this.
|
|
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.
|
|
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: '
|
|
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: '
|
|
23380
|
+
* selector: 'app-root',
|
|
23373
23381
|
* providers: [DataProvider],
|
|
23374
23382
|
* template: `
|
|
23375
23383
|
* Live Update: <input type="checkbox" [(ngModel)]="live">
|