@angular/core 8.0.0-rc.3 → 8.0.1

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 (109) hide show
  1. package/bundles/core-testing.umd.js +1 -24
  2. package/bundles/core-testing.umd.js.map +1 -1
  3. package/bundles/core-testing.umd.min.js +13 -13
  4. package/bundles/core-testing.umd.min.js.map +1 -1
  5. package/bundles/core.umd.js +123 -93
  6. package/bundles/core.umd.js.map +1 -1
  7. package/bundles/core.umd.min.js +116 -131
  8. package/bundles/core.umd.min.js.map +1 -1
  9. package/core.d.ts +32 -15
  10. package/core.metadata.json +1 -1
  11. package/esm2015/src/core_private_export.js +1 -1
  12. package/esm2015/src/di/injectable.js +1 -1
  13. package/esm2015/src/di/injector.js +3 -5
  14. package/esm2015/src/di/interface/defs.js +2 -2
  15. package/esm2015/src/di/jit/injectable.js +2 -2
  16. package/esm2015/src/metadata/di.js +1 -1
  17. package/esm2015/src/profile/profile.js +5 -1
  18. package/esm2015/src/profile/wtf_impl.js +2 -1
  19. package/esm2015/src/render3/component_ref.js +2 -4
  20. package/esm2015/src/render3/empty.js +5 -1
  21. package/esm2015/src/render3/index.js +1 -1
  22. package/esm2015/src/render3/instructions/all.js +2 -2
  23. package/esm2015/src/render3/instructions/projection.js +52 -13
  24. package/esm2015/src/render3/instructions/shared.js +7 -2
  25. package/esm2015/src/render3/interfaces/injector.js +3 -4
  26. package/esm2015/src/render3/interfaces/projection.js +1 -1
  27. package/esm2015/src/render3/jit/directive.js +2 -2
  28. package/esm2015/src/render3/jit/environment.js +13 -8
  29. package/esm2015/src/render3/jit/module.js +12 -9
  30. package/esm2015/src/render3/jit/pipe.js +2 -2
  31. package/esm2015/src/render3/node_selector_matcher.js +2 -27
  32. package/esm2015/src/render3/styling/class_and_style_bindings.js +2 -2
  33. package/esm2015/src/render3/util/misc_utils.js +8 -3
  34. package/esm2015/src/util/array_utils.js +16 -17
  35. package/esm2015/src/util/empty.js +5 -1
  36. package/esm2015/src/util/microtask.js +2 -2
  37. package/esm2015/src/util/ng_i18n_closure_mode.js +5 -1
  38. package/esm2015/src/version.js +1 -1
  39. package/esm2015/testing/src/r3_test_bed.js +1 -27
  40. package/esm2015/testing/src/test_bed.js +1 -18
  41. package/esm2015/testing/src/test_bed_common.js +1 -22
  42. package/esm5/src/core_private_export.js +1 -1
  43. package/esm5/src/di/injectable.js +1 -1
  44. package/esm5/src/di/injector.js +3 -4
  45. package/esm5/src/di/interface/defs.js +2 -2
  46. package/esm5/src/di/jit/injectable.js +2 -2
  47. package/esm5/src/metadata/di.js +1 -1
  48. package/esm5/src/profile/profile.js +5 -1
  49. package/esm5/src/profile/wtf_impl.js +1 -1
  50. package/esm5/src/render3/component_ref.js +2 -4
  51. package/esm5/src/render3/empty.js +5 -1
  52. package/esm5/src/render3/index.js +1 -1
  53. package/esm5/src/render3/instructions/projection.js +49 -14
  54. package/esm5/src/render3/instructions/shared.js +4 -2
  55. package/esm5/src/render3/interfaces/injector.js +3 -3
  56. package/esm5/src/render3/interfaces/projection.js +1 -1
  57. package/esm5/src/render3/jit/directive.js +2 -2
  58. package/esm5/src/render3/jit/environment.js +10 -8
  59. package/esm5/src/render3/jit/module.js +12 -9
  60. package/esm5/src/render3/jit/pipe.js +2 -2
  61. package/esm5/src/render3/node_selector_matcher.js +2 -23
  62. package/esm5/src/render3/styling/class_and_style_bindings.js +2 -2
  63. package/esm5/src/render3/util/misc_utils.js +8 -4
  64. package/esm5/src/util/array_utils.js +15 -16
  65. package/esm5/src/util/empty.js +5 -1
  66. package/esm5/src/util/microtask.js +2 -2
  67. package/esm5/src/util/ng_i18n_closure_mode.js +5 -1
  68. package/esm5/src/version.js +1 -1
  69. package/esm5/testing/src/r3_test_bed.js +1 -17
  70. package/esm5/testing/src/test_bed.js +1 -8
  71. package/esm5/testing/src/test_bed_common.js +1 -1
  72. package/fesm2015/core.js +133 -98
  73. package/fesm2015/core.js.map +1 -1
  74. package/fesm2015/testing.js +1 -44
  75. package/fesm2015/testing.js.map +1 -1
  76. package/fesm5/core.js +123 -93
  77. package/fesm5/core.js.map +1 -1
  78. package/fesm5/testing.js +1 -24
  79. package/fesm5/testing.js.map +1 -1
  80. package/package.json +2 -2
  81. package/schematics/migrations/injectable-pipe/index.js +7 -4
  82. package/schematics/migrations/move-document/index.js +7 -4
  83. package/schematics/migrations/static-queries/angular/directive_inputs.js +3 -2
  84. package/schematics/migrations/static-queries/angular/ng_query_visitor.d.ts +2 -0
  85. package/schematics/migrations/static-queries/angular/ng_query_visitor.js +21 -7
  86. package/schematics/migrations/static-queries/angular/query-definition.d.ts +9 -2
  87. package/schematics/migrations/static-queries/angular/query-definition.js +1 -1
  88. package/schematics/migrations/static-queries/index.d.ts +0 -5
  89. package/schematics/migrations/static-queries/index.js +105 -77
  90. package/schematics/migrations/static-queries/strategies/template_strategy/template_strategy.d.ts +2 -2
  91. package/schematics/migrations/static-queries/strategies/template_strategy/template_strategy.js +10 -19
  92. package/schematics/migrations/static-queries/strategies/test_strategy/test_strategy.d.ts +1 -1
  93. package/schematics/migrations/static-queries/strategies/test_strategy/test_strategy.js +2 -2
  94. package/schematics/migrations/static-queries/strategies/timing-strategy.d.ts +2 -2
  95. package/schematics/migrations/static-queries/strategies/timing-strategy.js +1 -1
  96. package/schematics/migrations/static-queries/strategies/usage_strategy/declaration_usage_visitor.d.ts +28 -5
  97. package/schematics/migrations/static-queries/strategies/usage_strategy/declaration_usage_visitor.js +107 -11
  98. package/schematics/migrations/static-queries/strategies/usage_strategy/usage_strategy.d.ts +6 -1
  99. package/schematics/migrations/static-queries/strategies/usage_strategy/usage_strategy.js +86 -66
  100. package/schematics/migrations/static-queries/transform.js +13 -10
  101. package/schematics/migrations/template-var-assignment/index.js +9 -7
  102. package/schematics/utils/ng_component_template.js +2 -1
  103. package/schematics/utils/project_tsconfig_paths.js +5 -3
  104. package/src/r3_symbols.d.ts +2 -2
  105. package/testing/testing.d.ts +5 -84
  106. package/testing/testing.metadata.json +1 -1
  107. package/testing.d.ts +1 -1
  108. package/schematics/utils/typescript/visit_nodes.d.ts +0 -13
  109. package/schematics/utils/typescript/visit_nodes.js +0 -26
package/core.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v8.0.0-rc.3
2
+ * @license Angular v8.0.1
3
3
  * (c) 2010-2019 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1250,13 +1250,13 @@ export declare interface ContentChildDecorator {
1250
1250
  *
1251
1251
  * @Annotation
1252
1252
  */
1253
- (selector: Type<any> | Function | string, opts?: {
1253
+ (selector: Type<any> | Function | string, opts: {
1254
1254
  read?: any;
1255
- static?: boolean;
1255
+ static: boolean;
1256
1256
  }): any;
1257
- new (selector: Type<any> | Function | string, opts?: {
1257
+ new (selector: Type<any> | Function | string, opts: {
1258
1258
  read?: any;
1259
- static?: boolean;
1259
+ static: boolean;
1260
1260
  }): ContentChild;
1261
1261
  }
1262
1262
 
@@ -3155,7 +3155,7 @@ export declare interface InjectableDecorator {
3155
3155
  *
3156
3156
  * The following example shows how service classes are properly marked as
3157
3157
  * injectable.
3158
- *Z
3158
+ *
3159
3159
  * <code-example path="core/di/ts/metadata_spec.ts" region="Injectable"></code-example>
3160
3160
  *
3161
3161
  */
@@ -5156,6 +5156,16 @@ declare interface ProceduralRenderer3 {
5156
5156
  */
5157
5157
  declare type ProcessProvidersFunction = (providers: Provider[]) => Provider[];
5158
5158
 
5159
+ /**
5160
+ * List of slots for a projection. A slot can be either based on a parsed CSS selector
5161
+ * which will be used to determine nodes which are projected into that slot.
5162
+ *
5163
+ * When set to "*", the slot is reserved and can be used for multi-slot projection
5164
+ * using {@link ViewContainerRef#createComponent}. The last slot that specifies the
5165
+ * wildcard selector will retrieve all projectable nodes which do not match any selector.
5166
+ */
5167
+ declare type ProjectionSlots = (ɵCssSelectorList | '*')[];
5168
+
5159
5169
  /**
5160
5170
  * This mapping is necessary so we can set input properties and output listeners
5161
5171
  * properly at runtime when property names are minified or aliased.
@@ -5233,7 +5243,7 @@ export declare interface Query {
5233
5243
  read: any;
5234
5244
  isViewQuery: boolean;
5235
5245
  selector: any;
5236
- static?: boolean;
5246
+ static: boolean;
5237
5247
  }
5238
5248
 
5239
5249
  /**
@@ -8051,13 +8061,13 @@ export declare interface ViewChildDecorator {
8051
8061
  *
8052
8062
  * @Annotation
8053
8063
  */
8054
- (selector: Type<any> | Function | string, opts?: {
8064
+ (selector: Type<any> | Function | string, opts: {
8055
8065
  read?: any;
8056
- static?: boolean;
8066
+ static: boolean;
8057
8067
  }): any;
8058
- new (selector: Type<any> | Function | string, opts?: {
8068
+ new (selector: Type<any> | Function | string, opts: {
8059
8069
  read?: any;
8060
- static?: boolean;
8070
+ static: boolean;
8061
8071
  }): ViewChild;
8062
8072
  }
8063
8073
 
@@ -8627,6 +8637,7 @@ export declare class WrappedValue {
8627
8637
  * an exception is expected during normal execution while profiling.
8628
8638
  *
8629
8639
  * @publicApi
8640
+ * @deprecated the Web Tracing Framework is no longer supported in Angular
8630
8641
  */
8631
8642
  export declare const wtfCreateScope: (signature: string, flags?: any) => WtfScopeFn;
8632
8643
 
@@ -8635,6 +8646,7 @@ export declare const wtfCreateScope: (signature: string, flags?: any) => WtfScop
8635
8646
  * [range] is the return value from [wtfStartTimeRange] Async ranges only work if WTF has been
8636
8647
  * enabled.
8637
8648
  * @publicApi
8649
+ * @deprecated the Web Tracing Framework is no longer supported in Angular
8638
8650
  */
8639
8651
  export declare const wtfEndTimeRange: (range: any) => void;
8640
8652
 
@@ -8646,6 +8658,7 @@ export declare const wtfEndTimeRange: (range: any) => void;
8646
8658
  *
8647
8659
  * Returns the `returnValue for easy chaining.
8648
8660
  * @publicApi
8661
+ * @deprecated the Web Tracing Framework is no longer supported in Angular
8649
8662
  */
8650
8663
  export declare const wtfLeave: <T>(scope: any, returnValue?: T) => T;
8651
8664
 
@@ -8654,6 +8667,7 @@ export declare const wtfLeave: <T>(scope: any, returnValue?: T) => T;
8654
8667
  * A scope function for the Web Tracing Framework (WTF).
8655
8668
  *
8656
8669
  * @publicApi
8670
+ * @deprecated the Web Tracing Framework is no longer supported in Angular
8657
8671
  */
8658
8672
  export declare interface WtfScopeFn {
8659
8673
  (arg0?: any, arg1?: any): any;
@@ -8671,6 +8685,7 @@ export declare interface WtfScopeFn {
8671
8685
  * });
8672
8686
  * }
8673
8687
  * @publicApi
8688
+ * @deprecated the Web Tracing Framework is no longer supported in Angular
8674
8689
  */
8675
8690
  export declare const wtfStartTimeRange: (rangeType: string, action: string) => any;
8676
8691
 
@@ -11146,7 +11161,7 @@ export declare const ɵɵdefineDirective: <T>(directiveDefinition: {
11146
11161
  * * `factory` gives the zero argument function which will create an instance of the injectable.
11147
11162
  * The factory can call `inject` to access the `Injector` and request injection of dependencies.
11148
11163
  *
11149
- * @publicApi
11164
+ * @codeGenApi
11150
11165
  */
11151
11166
  export declare function ɵɵdefineInjectable<T>(opts: {
11152
11167
  providedIn?: Type<any> | 'root' | 'any' | null;
@@ -12213,12 +12228,14 @@ export declare function ɵɵprojection(nodeIndex: number, selectorIndex?: number
12213
12228
  * - we can't have only a parsed as we can't re-construct textual form from it (as entered by a
12214
12229
  * template author).
12215
12230
  *
12216
- * @param selectors A collection of parsed CSS selectors
12217
- * @param rawSelectors A collection of CSS selectors in the raw, un-parsed form
12231
+ * @param projectionSlots? A collection of projection slots. A projection slot can be based
12232
+ * on a parsed CSS selectors or set to the wildcard selector ("*") in order to match
12233
+ * all nodes which do not match any selector. If not specified, a single wildcard
12234
+ * selector projection slot will be defined.
12218
12235
  *
12219
12236
  * @codeGenApi
12220
12237
  */
12221
- export declare function ɵɵprojectionDef(selectors?: ɵCssSelectorList[]): void;
12238
+ export declare function ɵɵprojectionDef(projectionSlots?: ProjectionSlots): void;
12222
12239
 
12223
12240
  /**
12224
12241
  * Update a property on a selected element.