@angular/core 5.2.0-rc.0 → 5.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/bundles/core-testing.umd.js +4 -4
- package/bundles/core-testing.umd.min.js +2 -2
- package/bundles/core-testing.umd.min.js.map +1 -1
- package/bundles/core.umd.js +129 -83
- package/bundles/core.umd.js.map +1 -1
- package/bundles/core.umd.min.js +9 -9
- package/bundles/core.umd.min.js.map +1 -1
- package/core.d.ts +14 -14
- package/core.metadata.json +1 -1
- package/esm2015/core.js +85 -52
- package/esm2015/core.js.map +1 -1
- package/esm2015/testing.js +2 -2
- package/esm5/core.js +99 -53
- package/esm5/core.js.map +1 -1
- package/esm5/testing.js +2 -2
- package/package.json +1 -1
- package/src/animation/dsl.d.ts +3 -3
- package/src/change_detection/change_detection.d.ts +1 -1
- package/src/change_detection/change_detection_util.d.ts +13 -12
- package/src/core_private_export.d.ts +1 -1
- package/src/render3/instructions.d.ts +10 -4
- package/src/render3/interfaces.d.ts +11 -0
- package/testing.d.ts +2 -2
package/esm5/testing.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v5.2.
|
|
3
|
-
* (c) 2010-
|
|
2
|
+
* @license Angular v5.2.3
|
|
3
|
+
* (c) 2010-2018 Google, Inc. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
import { ApplicationInitStatus, Compiler, Component, InjectionToken, Injector, NgModule, NgZone, Optional, RendererFactory2, SkipSelf, getDebugNode, ɵclearOverrides, ɵoverrideComponentView, ɵoverrideProvider, ɵstringify } from '@angular/core';
|
package/package.json
CHANGED
package/src/animation/dsl.d.ts
CHANGED
|
@@ -765,9 +765,9 @@ export declare function keyframes(steps: AnimationStyleMetadata[]): AnimationKey
|
|
|
765
765
|
* <button (click)="next()">Next</button>
|
|
766
766
|
* <hr>
|
|
767
767
|
* <div [@bannerAnimation]="selectedIndex" class="banner-container">
|
|
768
|
-
* <div class="banner"> {{ banner }} </div>
|
|
768
|
+
* <div class="banner" *ngFor="let banner of banners"> {{ banner }} </div>
|
|
769
769
|
* </div>
|
|
770
|
-
*
|
|
770
|
+
* `,
|
|
771
771
|
* animations: [
|
|
772
772
|
* trigger('bannerAnimation', [
|
|
773
773
|
* transition(":increment", group([
|
|
@@ -787,7 +787,7 @@ export declare function keyframes(steps: AnimationStyleMetadata[]): AnimationKey
|
|
|
787
787
|
* query(':leave', [
|
|
788
788
|
* animate('0.5s ease-out', style({ left: '100%' }))
|
|
789
789
|
* ])
|
|
790
|
-
* ]))
|
|
790
|
+
* ]))
|
|
791
791
|
* ])
|
|
792
792
|
* ]
|
|
793
793
|
* })
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IterableDiffers } from './differs/iterable_differs';
|
|
2
2
|
import { KeyValueDiffers } from './differs/keyvalue_differs';
|
|
3
3
|
export { SimpleChanges } from '../metadata/lifecycle_hooks';
|
|
4
|
-
export { SimpleChange,
|
|
4
|
+
export { SimpleChange, WrappedValue, devModeEqual } from './change_detection_util';
|
|
5
5
|
export { ChangeDetectorRef } from './change_detector_ref';
|
|
6
6
|
export { ChangeDetectionStrategy, ChangeDetectorStatus, isDefaultChangeDetectionStrategy } from './constants';
|
|
7
7
|
export { DefaultIterableDifferFactory } from './differs/default_iterable_differ';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare function devModeEqual(a: any, b: any): boolean;
|
|
2
2
|
/**
|
|
3
3
|
* Indicates that the result of a {@link Pipe} transformation has changed even though the
|
|
4
|
-
* reference
|
|
5
|
-
* has not changed.
|
|
4
|
+
* reference has not changed.
|
|
6
5
|
*
|
|
7
|
-
*
|
|
6
|
+
* Wrapped values are unwrapped automatically during the change detection, and the unwrapped value
|
|
7
|
+
* is stored.
|
|
8
8
|
*
|
|
9
9
|
* Example:
|
|
10
10
|
*
|
|
@@ -19,17 +19,18 @@ export declare function devModeEqual(a: any, b: any): boolean;
|
|
|
19
19
|
* @stable
|
|
20
20
|
*/
|
|
21
21
|
export declare class WrappedValue {
|
|
22
|
+
/** @deprecated from 5.3, use `unwrap()` instead - will switch to protected */
|
|
22
23
|
wrapped: any;
|
|
23
|
-
constructor(
|
|
24
|
+
constructor(value: any);
|
|
25
|
+
/** Creates a wrapped value. */
|
|
24
26
|
static wrap(value: any): WrappedValue;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
reset(): void;
|
|
27
|
+
/**
|
|
28
|
+
* Returns the underlying value of a wrapped value.
|
|
29
|
+
* Returns the given `value` when it is not wrapped.
|
|
30
|
+
**/
|
|
31
|
+
static unwrap(value: any): any;
|
|
32
|
+
/** Returns true if `value` is a wrapped value. */
|
|
33
|
+
static isWrapped(value: any): value is WrappedValue;
|
|
33
34
|
}
|
|
34
35
|
/**
|
|
35
36
|
* Represents a basic change from a previous to a new value.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export { ALLOW_MULTIPLE_PLATFORMS as ɵALLOW_MULTIPLE_PLATFORMS } from './application_ref';
|
|
9
9
|
export { APP_ID_RANDOM_PROVIDER as ɵAPP_ID_RANDOM_PROVIDER } from './application_tokens';
|
|
10
|
-
export {
|
|
10
|
+
export { devModeEqual as ɵdevModeEqual } from './change_detection/change_detection_util';
|
|
11
11
|
export { isListLikeIterable as ɵisListLikeIterable } from './change_detection/change_detection_util';
|
|
12
12
|
export { ChangeDetectorStatus as ɵChangeDetectorStatus, isDefaultChangeDetectionStrategy as ɵisDefaultChangeDetectionStrategy } from './change_detection/constants';
|
|
13
13
|
export { Console as ɵConsole } from './console';
|
|
@@ -25,6 +25,8 @@ export declare const enum LifecycleHook {
|
|
|
25
25
|
ON_INIT = 1,
|
|
26
26
|
ON_DESTROY = 2,
|
|
27
27
|
ON_CHANGES = 4,
|
|
28
|
+
AFTER_VIEW_INIT = 8,
|
|
29
|
+
AFTER_VIEW_CHECKED = 16,
|
|
28
30
|
}
|
|
29
31
|
/**
|
|
30
32
|
* Directive (D) sets a property on all component instances using this constant as a key and the
|
|
@@ -49,7 +51,7 @@ export declare function enterView(newViewState: ViewState, host: LElement | LVie
|
|
|
49
51
|
* Used in lieu of enterView to make it clear when we are exiting a child view. This makes
|
|
50
52
|
* the direction of traversal (up or down the view tree) a bit clearer.
|
|
51
53
|
*/
|
|
52
|
-
export declare
|
|
54
|
+
export declare function leaveView(newViewState: ViewState): void;
|
|
53
55
|
export declare function createViewState(viewId: number, renderer: Renderer3, ngStaticData: NgStaticData): ViewState;
|
|
54
56
|
/**
|
|
55
57
|
* A common way of creating the LNode to make sure that all of them have same shape to
|
|
@@ -244,12 +246,16 @@ export declare function directive<T>(index: number, directive: T, directiveDef:
|
|
|
244
246
|
*
|
|
245
247
|
* e.g. l(LifecycleHook.ON_DESTROY, ctx, ctx.onDestroy);
|
|
246
248
|
*
|
|
247
|
-
* @param
|
|
249
|
+
* @param lifecycle
|
|
248
250
|
* @param self
|
|
249
251
|
* @param method
|
|
250
252
|
*/
|
|
251
|
-
export declare function lifecycle(
|
|
252
|
-
export declare function lifecycle(
|
|
253
|
+
export declare function lifecycle(lifecycle: LifecycleHook.ON_DESTROY, self: any, method: Function): void;
|
|
254
|
+
export declare function lifecycle(lifecycle: LifecycleHook.AFTER_VIEW_INIT, self: any, method: Function): void;
|
|
255
|
+
export declare function lifecycle(lifecycle: LifecycleHook.AFTER_VIEW_CHECKED, self: any, method: Function): void;
|
|
256
|
+
export declare function lifecycle(lifecycle: LifecycleHook): boolean;
|
|
257
|
+
/** Iterates over view hook functions and calls them. */
|
|
258
|
+
export declare function executeViewHooks(): void;
|
|
253
259
|
/**
|
|
254
260
|
* Creates an LContainer.
|
|
255
261
|
*
|
|
@@ -246,6 +246,17 @@ export interface LNodeInjector {
|
|
|
246
246
|
* don't have to edit the data array based on which views are present.
|
|
247
247
|
*/
|
|
248
248
|
export interface ViewState {
|
|
249
|
+
/**
|
|
250
|
+
* Whether or not the view is in creationMode.
|
|
251
|
+
*
|
|
252
|
+
* This must be stored in the view rather than using `data` as a marker so that
|
|
253
|
+
* we can properly support embedded views. Otherwise, when exiting a child view
|
|
254
|
+
* back into the parent view, `data` will be defined and `creationMode` will be
|
|
255
|
+
* improperly reported as false.
|
|
256
|
+
*/
|
|
257
|
+
creationMode: boolean;
|
|
258
|
+
/** The index in the data array at which view hooks begin to be stored. */
|
|
259
|
+
viewHookStartIndex: number | null;
|
|
249
260
|
/**
|
|
250
261
|
* The parent view is needed when we exit the view and must restore the previous
|
|
251
262
|
* `ViewState`. Without this, the render method would have to keep a stack of
|
package/testing.d.ts
CHANGED