@angular/core 7.2.7 → 7.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.
Files changed (39) hide show
  1. package/bundles/core-testing.umd.js +1 -1
  2. package/bundles/core-testing.umd.js.map +1 -1
  3. package/bundles/core-testing.umd.min.js +1 -1
  4. package/bundles/core-testing.umd.min.js.map +1 -1
  5. package/bundles/core.umd.js +16 -15
  6. package/bundles/core.umd.js.map +1 -1
  7. package/bundles/core.umd.min.js +2 -2
  8. package/bundles/core.umd.min.js.map +1 -1
  9. package/core.metadata.json +1 -1
  10. package/esm2015/src/change_detection/constants.js +2 -1
  11. package/esm2015/src/metadata/directives.js +2 -2
  12. package/esm2015/src/metadata/ng_module.js +3 -1
  13. package/esm2015/src/metadata/resource_loading.js +11 -11
  14. package/esm2015/src/metadata.js +1 -1
  15. package/esm2015/src/render3/jit/compiler_facade.js +2 -2
  16. package/esm2015/src/render3/styling/class_and_style_bindings.js +2 -2
  17. package/esm2015/src/version.js +1 -1
  18. package/esm5/src/change_detection/constants.js +2 -1
  19. package/esm5/src/metadata/directives.js +2 -2
  20. package/esm5/src/metadata/ng_module.js +1 -1
  21. package/esm5/src/metadata/resource_loading.js +11 -11
  22. package/esm5/src/metadata.js +1 -1
  23. package/esm5/src/render3/jit/compiler_facade.js +2 -2
  24. package/esm5/src/render3/styling/class_and_style_bindings.js +2 -2
  25. package/esm5/src/version.js +1 -1
  26. package/fesm2015/core.js +16 -15
  27. package/fesm2015/core.js.map +1 -1
  28. package/fesm2015/testing.js +1 -1
  29. package/fesm5/core.js +16 -15
  30. package/fesm5/core.js.map +1 -1
  31. package/fesm5/testing.js +1 -1
  32. package/package.json +1 -1
  33. package/src/change_detection/constants.d.ts +1 -0
  34. package/src/metadata/directives.d.ts +76 -69
  35. package/src/metadata/ng_module.d.ts +4 -2
  36. package/src/metadata/resource_loading.d.ts +10 -10
  37. package/src/metadata.d.ts +1 -1
  38. package/testing/src/resolvers.d.ts +1 -1
  39. package/testing.d.ts +1 -1
package/fesm5/testing.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v7.2.7
2
+ * @license Angular v7.2.11
3
3
  * (c) 2010-2019 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "7.2.7",
3
+ "version": "7.2.11",
4
4
  "description": "Angular - the core framework",
5
5
  "main": "./bundles/core.umd.js",
6
6
  "module": "./fesm5/core.js",
@@ -16,6 +16,7 @@ export declare enum ChangeDetectionStrategy {
16
16
  * Use the `CheckOnce` strategy, meaning that automatic change detection is deactivated
17
17
  * until reactivated by setting the strategy to `Default` (`CheckAlways`).
18
18
  * Change detection can still be explicitly invoked.
19
+ * This strategy applies to all child directives and cannot be overridden.
19
20
  */
20
21
  OnPush = 0,
21
22
  /**
@@ -260,7 +260,7 @@ export interface Directive {
260
260
  * To listen to global events, add the target to the event name.
261
261
  * The target can be `window`, `document` or `body`.
262
262
  * - The value is the statement to execute when the event occurs. If the
263
- * statement evalueates to `false`, then `preventDefault` is applied on the DOM
263
+ * statement evaluates to `false`, then `preventDefault` is applied on the DOM
264
264
  * event. A handler method can refer to the `$event` local variable.
265
265
  *
266
266
  */
@@ -300,7 +300,7 @@ export interface ComponentDecorator {
300
300
  *
301
301
  * A component must belong to an NgModule in order for it to be available
302
302
  * to another component or application. To make it a member of an NgModule,
303
- * list it in the `declarations` field of the `@NgModule` metadata.
303
+ * list it in the `declarations` field of the `NgModule` metadata.
304
304
  *
305
305
  * Note that, in addition to these options for configuring a directive,
306
306
  * you can control a component's runtime behavior by implementing
@@ -426,7 +426,7 @@ export interface ComponentDecorator {
426
426
  */
427
427
  (obj: Component): TypeDecorator;
428
428
  /**
429
- * See the `@Component` decorator.
429
+ * See the `Component` decorator.
430
430
  */
431
431
  new (obj: Component): Component;
432
432
  }
@@ -491,12 +491,12 @@ export interface Component extends Directive {
491
491
  animations?: any[];
492
492
  /**
493
493
  * An encapsulation policy for the template and CSS styles. One of:
494
- * - `ViewEncapsulation.Native`: Use shadow roots. This works
495
- * only if natively available on the platform.
494
+ * - `ViewEncapsulation.Native`: Deprecated. Use `ViewEncapsulation.ShadowDom` instead.
496
495
  * - `ViewEncapsulation.Emulated`: Use shimmed CSS that
497
496
  * emulates the native behavior.
498
497
  * - `ViewEncapsulation.None`: Use global CSS without any
499
498
  * encapsulation.
499
+ * - `ViewEncapsulation.ShadowDom`: Use Shadow DOM v1 to encapsulate styles.
500
500
  *
501
501
  * If not supplied, the value is taken from `CompilerOptions`. The default compiler option is
502
502
  * `ViewEncapsulation.Emulated`.
@@ -538,7 +538,22 @@ export declare const Component: ComponentDecorator;
538
538
  */
539
539
  export interface PipeDecorator {
540
540
  /**
541
- * Declares a reusable pipe function, and supplies configuration metadata.
541
+ *
542
+ * Decorator that marks a class as pipe and supplies configuration metadata.
543
+ *
544
+ * A pipe class must implement the `PipeTransform` interface.
545
+ * For example, if the name is "myPipe", use a template binding expression
546
+ * such as the following:
547
+ *
548
+ * ```
549
+ * {{ exp | myPipe }}
550
+ * ```
551
+ *
552
+ * The result of the expression is passed to the pipe's `transform()` method.
553
+ *
554
+ * A pipe must belong to an NgModule in order for it to be available
555
+ * to a template. To make it a member of an NgModule,
556
+ * list it in the `declarations` field of the `NgModule` metadata.
542
557
  *
543
558
  */
544
559
  (obj: Pipe): TypeDecorator;
@@ -580,23 +595,48 @@ export declare const Pipe: PipeDecorator;
580
595
  */
581
596
  export interface InputDecorator {
582
597
  /**
583
- * Decorator that marks a class as pipe and supplies configuration metadata.
584
- *
585
- * A pipe class must implement the `PipeTransform` interface.
586
- * For example, if the name is "myPipe", use a template binding expression
587
- * such as the following:
588
- *
589
- * ```
590
- * {{ exp | myPipe }}
591
- * ```
592
- *
593
- * The result of the expression is passed to the pipe's `transform()` method.
594
- *
595
- * A pipe must belong to an NgModule in order for it to be available
596
- * to a template. To make it a member of an NgModule,
597
- * list it in the `declarations` field of the `@NgModule` metadata.
598
- *
599
- */
598
+ * Decorator that marks a class field as an input property and supplies configuration metadata.
599
+ * The input property is bound to a DOM property in the template. During change detection,
600
+ * Angular automatically updates the data property with the DOM property's value.
601
+ *
602
+ * @usageNotes
603
+ *
604
+ * You can supply an optional name to use in templates when the
605
+ * component is instantiated, that maps to the
606
+ * name of the bound property. By default, the original
607
+ * name of the bound property is used for input binding.
608
+ *
609
+ * The following example creates a component with two input properties,
610
+ * one of which is given a special binding name.
611
+ *
612
+ * ```typescript
613
+ * @Component({
614
+ * selector: 'bank-account',
615
+ * template: `
616
+ * Bank Name: {{bankName}}
617
+ * Account Id: {{id}}
618
+ * `
619
+ * })
620
+ * class BankAccount {
621
+ * // This property is bound using its original name.
622
+ * @Input() bankName: string;
623
+ * // this property value is bound to a different property name
624
+ * // when this component is instantiated in a template.
625
+ * @Input('account-id') id: string;
626
+ *
627
+ * // this property is not bound, and is not automatically updated by Angular
628
+ * normalizedBankName: string;
629
+ * }
630
+ *
631
+ * @Component({
632
+ * selector: 'app',
633
+ * template: `
634
+ * <bank-account bankName="RBC" account-id="4747"></bank-account>
635
+ * `
636
+ * })
637
+ * class App {}
638
+ * ```
639
+ */
600
640
  (bindingPropertyName?: string): any;
601
641
  new (bindingPropertyName?: string): any;
602
642
  }
@@ -607,49 +647,7 @@ export interface InputDecorator {
607
647
  */
608
648
  export interface Input {
609
649
  /**
610
- * Decorator that marks a class field as an input property and supplies configuration metadata.
611
- * Declares a data-bound input property, which Angular automatically updates
612
- * during change detection.
613
- *
614
- * @usageNotes
615
- *
616
- * You can supply an optional name to use in templates when the
617
- * component is instantiated, that maps to the
618
- * name of the bound property. By default, the original
619
- * name of the bound property is used for input binding.
620
- *
621
- * The following example creates a component with two input properties,
622
- * one of which is given a special binding name.
623
- *
624
- * ```typescript
625
- * @Component({
626
- * selector: 'bank-account',
627
- * template: `
628
- * Bank Name: {{bankName}}
629
- * Account Id: {{id}}
630
- * `
631
- * })
632
- * class BankAccount {
633
- * // This property is bound using its original name.
634
- * @Input() bankName: string;
635
- * // this property value is bound to a different property name
636
- * // when this component is instantiated in a template.
637
- * @Input('account-id') id: string;
638
- *
639
- * // this property is not bound, and is not automatically updated by Angular
640
- * normalizedBankName: string;
641
- * }
642
- *
643
- * @Component({
644
- * selector: 'app',
645
- * template: `
646
- * <bank-account bankName="RBC" account-id="4747"></bank-account>
647
- * `
648
- * })
649
- *
650
- * class App {}
651
- * ```
652
- *
650
+ * The name of the DOM property to which the input property is bound.
653
651
  */
654
652
  bindingPropertyName?: string;
655
653
  }
@@ -666,8 +664,7 @@ export declare const Input: InputDecorator;
666
664
  export interface OutputDecorator {
667
665
  /**
668
666
  * Decorator that marks a class field as an output property and supplies configuration metadata.
669
- * Declares a data-bound output property, which Angular automatically updates
670
- * during change detection.
667
+ * The DOM property bound to the output property is automatically updated during change detection.
671
668
  *
672
669
  * @usageNotes
673
670
  *
@@ -676,7 +673,7 @@ export interface OutputDecorator {
676
673
  * name of the bound property. By default, the original
677
674
  * name of the bound property is used for output binding.
678
675
  *
679
- * See `@Input` decorator for an example of providing a binding name.
676
+ * See `Input` decorator for an example of providing a binding name.
680
677
  *
681
678
  */
682
679
  (bindingPropertyName?: string): any;
@@ -688,6 +685,9 @@ export interface OutputDecorator {
688
685
  * @publicApi
689
686
  */
690
687
  export interface Output {
688
+ /**
689
+ * The name of the DOM property to which the output property is bound.
690
+ */
691
691
  bindingPropertyName?: string;
692
692
  }
693
693
  /**
@@ -739,6 +739,9 @@ export interface HostBindingDecorator {
739
739
  * @publicApi
740
740
  */
741
741
  export interface HostBinding {
742
+ /**
743
+ * The DOM property that is bound to a data property.
744
+ */
742
745
  hostPropertyName?: string;
743
746
  }
744
747
  /**
@@ -752,6 +755,10 @@ export declare const HostBinding: HostBindingDecorator;
752
755
  * @publicApi
753
756
  */
754
757
  export interface HostListenerDecorator {
758
+ /**
759
+ * Decorator that declares a DOM event to listen for,
760
+ * and provides a handler method to run when that event occurs.
761
+ */
755
762
  (eventName: string, args?: string[]): any;
756
763
  new (eventName: string, args?: string[]): any;
757
764
  }
@@ -102,10 +102,12 @@ export declare const CUSTOM_ELEMENTS_SCHEMA: SchemaMetadata;
102
102
  export declare const NO_ERRORS_SCHEMA: SchemaMetadata;
103
103
  /**
104
104
  * Type of the NgModule decorator / constructor function.
105
+ *
106
+ * @publicApi
105
107
  */
106
108
  export interface NgModuleDecorator {
107
109
  /**
108
- * Marks a class as an NgModule and supplies configuration metadata.
110
+ * Decorator that marks a class as an NgModule and supplies configuration metadata.
109
111
  */
110
112
  (obj?: NgModule): TypeDecorator;
111
113
  new (obj?: NgModule): NgModule;
@@ -206,7 +208,7 @@ export interface NgModule {
206
208
  *
207
209
  * ### Example
208
210
  *
209
- * The following example allows MainModule to use anthing exported by
211
+ * The following example allows MainModule to use anything exported by
210
212
  * `CommonModule`:
211
213
  *
212
214
  * ```javascript
@@ -15,18 +15,18 @@ import { Component } from './directives';
15
15
  * selector: 'my-comp',
16
16
  * templateUrl: 'my-comp.html', // This requires asynchronous resolution
17
17
  * })
18
- * class MyComponnent{
18
+ * class MyComponent{
19
19
  * }
20
20
  *
21
- * // Calling `renderComponent` will fail because `MyComponent`'s `@Compenent.templateUrl`
22
- * // needs to be resolved because `renderComponent` is synchronous process.
23
- * // renderComponent(MyComponent);
21
+ * // Calling `renderComponent` will fail because `renderComponent` is a synchronous process
22
+ * // and `MyComponent`'s `@Component.templateUrl` needs to be resolved asynchronously.
24
23
  *
25
- * // Calling `resolveComponentResources` will resolve `@Compenent.templateUrl` into
26
- * // `@Compenent.template`, which would allow `renderComponent` to proceed in synchronous manner.
27
- * // Use browser's `fetch` function as the default resource resolution strategy.
24
+ * // Calling `resolveComponentResources()` will resolve `@Component.templateUrl` into
25
+ * // `@Component.template`, which allows `renderComponent` to proceed in a synchronous manner.
26
+ *
27
+ * // Use browser's `fetch()` function as the default resource resolution strategy.
28
28
  * resolveComponentResources(fetch).then(() => {
29
- * // After resolution all URLs have been converted into strings.
29
+ * // After resolution all URLs have been converted into `template` strings.
30
30
  * renderComponent(MyComponent);
31
31
  * });
32
32
  *
@@ -35,8 +35,8 @@ import { Component } from './directives';
35
35
  * NOTE: In AOT the resolution happens during compilation, and so there should be no need
36
36
  * to call this method outside JIT mode.
37
37
  *
38
- * @param resourceResolver a function which is responsible to returning a `Promise` of the resolved
39
- * URL. Browser's `fetch` method is a good default implementation.
38
+ * @param resourceResolver a function which is responsible for returning a `Promise` to the
39
+ * contents of the resolved URL. Browser's `fetch()` method is a good default implementation.
40
40
  */
41
41
  export declare function resolveComponentResources(resourceResolver: (url: string) => (Promise<string | {
42
42
  text(): Promise<string>;
package/src/metadata.d.ts CHANGED
@@ -8,5 +8,5 @@
8
8
  export { ANALYZE_FOR_ENTRY_COMPONENTS, Attribute, ContentChild, ContentChildDecorator, ContentChildren, ContentChildrenDecorator, Query, ViewChild, ViewChildDecorator, ViewChildren, ViewChildrenDecorator } from './metadata/di';
9
9
  export { Component, ComponentDecorator, Directive, DirectiveDecorator, HostBinding, HostBindingDecorator, HostListener, HostListenerDecorator, Input, InputDecorator, Output, OutputDecorator, Pipe, PipeDecorator } from './metadata/directives';
10
10
  export { AfterContentChecked, AfterContentInit, AfterViewChecked, AfterViewInit, DoCheck, OnChanges, OnDestroy, OnInit } from './metadata/lifecycle_hooks';
11
- export { CUSTOM_ELEMENTS_SCHEMA, DoBootstrap, ModuleWithProviders, NO_ERRORS_SCHEMA, NgModule, SchemaMetadata } from './metadata/ng_module';
11
+ export { CUSTOM_ELEMENTS_SCHEMA, DoBootstrap, ModuleWithProviders, NO_ERRORS_SCHEMA, NgModule, NgModuleDecorator, SchemaMetadata } from './metadata/ng_module';
12
12
  export { ViewEncapsulation } from './metadata/view';
@@ -34,6 +34,6 @@ export declare class PipeResolver extends OverrideResolver<Pipe> {
34
34
  readonly type: import("@angular/core").PipeDecorator;
35
35
  }
36
36
  export declare class NgModuleResolver extends OverrideResolver<NgModule> {
37
- readonly type: import("@angular/core/src/metadata/ng_module").NgModuleDecorator;
37
+ readonly type: import("@angular/core").NgModuleDecorator;
38
38
  }
39
39
  export {};
package/testing.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v7.2.7
2
+ * @license Angular v7.2.11
3
3
  * (c) 2010-2019 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */