@angular/core 11.2.0-rc.0 → 11.2.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/core.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @license Angular v11.2.0-rc.0
3
- * (c) 2010-2020 Google LLC. https://angular.io/
2
+ * @license Angular v11.2.3
3
+ * (c) 2010-2021 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
@@ -334,7 +334,6 @@ export declare class ApplicationModule {
334
334
  */
335
335
  export declare class ApplicationRef {
336
336
  private _zone;
337
- private _console;
338
337
  private _injector;
339
338
  private _exceptionHandler;
340
339
  private _componentFactoryResolver;
@@ -859,7 +858,7 @@ export declare interface Component extends Directive {
859
858
  */
860
859
  encapsulation?: ViewEncapsulation;
861
860
  /**
862
- * Overrides the default encapsulation start and end delimiters (`{{` and `}}`)
861
+ * Overrides the default interpolation start and end delimiters (`{{` and `}}`).
863
862
  */
864
863
  interpolation?: [string, string];
865
864
  /**
@@ -2806,7 +2805,7 @@ export declare interface HostDecorator {
2806
2805
  *
2807
2806
  * @usageNotes
2808
2807
  *
2809
- * The following shows use with the `@Optional` decorator, and allows for a null result.
2808
+ * The following shows use with the `@Optional` decorator, and allows for a `null` result.
2810
2809
  *
2811
2810
  * <code-example path="core/di/ts/metadata_spec.ts" region="Host">
2812
2811
  * </code-example>
@@ -2904,6 +2903,11 @@ export declare interface HostListenerDecorator {
2904
2903
  /**
2905
2904
  * Decorator that declares a DOM event to listen for,
2906
2905
  * and provides a handler method to run when that event occurs.
2906
+ *
2907
+ * Angular invokes the supplied handler method when the host element emits the specified event,
2908
+ * and updates the bound element with the result.
2909
+ *
2910
+ * If the handler method returns false, applies `preventDefault` on the bound element.
2907
2911
  */
2908
2912
  (eventName: string, args?: string[]): any;
2909
2913
  new (eventName: string, args?: string[]): any;
@@ -3178,7 +3182,7 @@ export declare const Inject: InjectDecorator;
3178
3182
  * @param flags Optional flags that control how injection is executed.
3179
3183
  * The flags correspond to injection strategies that can be specified with
3180
3184
  * parameter decorators `@Host`, `@Self`, `@SkipSef`, and `@Optional`.
3181
- * @returns True if injection is successful, null otherwise.
3185
+ * @returns the injected value if injection is successful, `null` otherwise.
3182
3186
  *
3183
3187
  * @usageNotes
3184
3188
  *
@@ -4972,14 +4976,14 @@ export declare interface OptionalDecorator {
4972
4976
  /**
4973
4977
  * Parameter decorator to be used on constructor parameters,
4974
4978
  * which marks the parameter as being an optional dependency.
4975
- * The DI framework provides null if the dependency is not found.
4979
+ * The DI framework provides `null` if the dependency is not found.
4976
4980
  *
4977
4981
  * Can be used together with other parameter decorators
4978
4982
  * that modify how dependency injection operates.
4979
4983
  *
4980
4984
  * @usageNotes
4981
4985
  *
4982
- * The following code allows the possibility of a null result:
4986
+ * The following code allows the possibility of a `null` result:
4983
4987
  *
4984
4988
  * <code-example path="core/di/ts/metadata_spec.ts" region="Optional">
4985
4989
  * </code-example>
@@ -5137,20 +5141,19 @@ declare type PipeDefListOrFactory = (() => PipeDefList) | PipeDefList;
5137
5141
  *
5138
5142
  * @usageNotes
5139
5143
  *
5140
- * In the following example, `RepeatPipe` repeats a given value a given number of times.
5144
+ * In the following example, `TruncatePipe` returns the shortened value with an added ellipses.
5141
5145
  *
5142
- * ```ts
5143
- * import {Pipe, PipeTransform} from '@angular/core';
5146
+ * <code-example path="core/ts/pipes/simple_truncate.ts" header="simple_truncate.ts"></code-example>
5144
5147
  *
5145
- * @Pipe({name: 'repeat'})
5146
- * export class RepeatPipe implements PipeTransform {
5147
- * transform(value: any, times: number) {
5148
- * return value.repeat(times);
5149
- * }
5150
- * }
5151
- * ```
5148
+ * Invoking `{{ 'It was the best of times' | truncate }}` in a template will produce `It was...`.
5149
+ *
5150
+ * In the following example, `TruncatePipe` takes parameters that sets the truncated length and the
5151
+ * string to append with.
5152
5152
  *
5153
- * Invoking `{{ 'ok' | repeat:3 }}` in a template produces `okokok`.
5153
+ * <code-example path="core/ts/pipes/truncate.ts" header="truncate.ts"></code-example>
5154
+ *
5155
+ * Invoking `{{ 'It was the best of times' | truncate:4:'....' }}` in a template will produce `It
5156
+ * was the best....`.
5154
5157
  *
5155
5158
  * @publicApi
5156
5159
  */
@@ -5659,6 +5662,12 @@ declare interface R3DeclareDirectiveFacade {
5659
5662
  usesOnChanges?: boolean;
5660
5663
  }
5661
5664
 
5665
+ declare interface R3DeclarePipeFacade {
5666
+ type: Function;
5667
+ name: string;
5668
+ pure?: boolean;
5669
+ }
5670
+
5662
5671
  declare interface R3DeclareQueryMetadataFacade {
5663
5672
  propertyName: string;
5664
5673
  first?: boolean;
@@ -6566,7 +6575,7 @@ export declare interface SelfDecorator {
6566
6575
  * which tells the DI framework to start dependency resolution from the local injector.
6567
6576
  *
6568
6577
  * Resolution works upward through the injector hierarchy, so the children
6569
- * of this class must configure their own providers or be prepared for a null result.
6578
+ * of this class must configure their own providers or be prepared for a `null` result.
6570
6579
  *
6571
6580
  * @usageNotes
6572
6581
  *
@@ -13028,6 +13037,13 @@ export declare function ɵɵngDeclareComponent(decl: R3DeclareComponentFacade):
13028
13037
  */
13029
13038
  export declare function ɵɵngDeclareDirective(decl: R3DeclareDirectiveFacade): unknown;
13030
13039
 
13040
+ /**
13041
+ * Compiles a partial pipe declaration object into a full pipe definition object.
13042
+ *
13043
+ * @codeGenApi
13044
+ */
13045
+ export declare function ɵɵngDeclarePipe(decl: R3DeclarePipeFacade): unknown;
13046
+
13031
13047
  /**
13032
13048
  * @publicApi
13033
13049
  */