@angular/core
Advanced tools
Comparing version 2.0.1 to 2.0.2
/** | ||
* @license Angular v2.0.1 | ||
* @license Angular v2.0.2 | ||
* (c) 2010-2016 Google, Inc. https://angular.io/ | ||
@@ -129,3 +129,3 @@ * License: MIT | ||
var newLineIndex = res.indexOf('\n'); | ||
return (newLineIndex === -1) ? res : res.substring(0, newLineIndex); | ||
return newLineIndex === -1 ? res : res.substring(0, newLineIndex); | ||
} | ||
@@ -132,0 +132,0 @@ var NumberWrapper = (function () { |
{ | ||
"name": "@angular/core", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Angular - the core framework", | ||
@@ -5,0 +5,0 @@ "main": "bundles/core.umd.js", |
@@ -15,6 +15,7 @@ /** | ||
var finalStyles = {}; | ||
StringMapWrapper.forEach(newStyles, function (value, prop) { | ||
Object.keys(newStyles).forEach(function (prop) { | ||
var value = newStyles[prop]; | ||
finalStyles[prop] = value == AUTO_STYLE ? nullValue : value.toString(); | ||
}); | ||
StringMapWrapper.forEach(previousStyles, function (value, prop) { | ||
Object.keys(previousStyles).forEach(function (prop) { | ||
if (!isPresent(finalStyles[prop])) { | ||
@@ -33,3 +34,4 @@ finalStyles[prop] = nullValue; | ||
var hasExtraFirstStyles = false; | ||
StringMapWrapper.forEach(collectedStyles, function (value, prop) { | ||
Object.keys(collectedStyles).forEach(function (prop) { | ||
var value = collectedStyles[prop]; | ||
// if the style is already defined in the first keyframe then | ||
@@ -50,3 +52,3 @@ // we do not replace it. | ||
var hasExtraFinalStyles = false; | ||
StringMapWrapper.forEach(keyframeCollectedStyles, function (value, prop) { | ||
Object.keys(keyframeCollectedStyles).forEach(function (prop) { | ||
if (!isPresent(flatenedFinalKeyframeStyles[prop])) { | ||
@@ -60,3 +62,3 @@ extraFinalKeyframeStyles[prop] = AUTO_STYLE; | ||
} | ||
StringMapWrapper.forEach(flatenedFinalKeyframeStyles, function (value, prop) { | ||
Object.keys(flatenedFinalKeyframeStyles).forEach(function (prop) { | ||
if (!isPresent(flatenedFirstKeyframeStyles[prop])) { | ||
@@ -74,3 +76,3 @@ extraFirstKeyframeStyles[prop] = AUTO_STYLE; | ||
var finalStyles = {}; | ||
StringMapWrapper.keys(styles).forEach(function (key) { finalStyles[key] = null; }); | ||
Object.keys(styles).forEach(function (key) { finalStyles[key] = null; }); | ||
return finalStyles; | ||
@@ -81,3 +83,4 @@ } | ||
var stylesObj = {}; | ||
StringMapWrapper.forEach(entry, function (value, prop) { | ||
Object.keys(entry).forEach(function (prop) { | ||
var value = entry[prop]; | ||
if (value == FILL_STYLE_FLAG) { | ||
@@ -96,3 +99,3 @@ value = collection[prop]; | ||
export function renderStyles(element, renderer, styles) { | ||
StringMapWrapper.forEach(styles, function (value, prop) { renderer.setElementStyle(element, prop, value); }); | ||
Object.keys(styles).forEach(function (prop) { renderer.setElementStyle(element, prop, styles[prop]); }); | ||
} | ||
@@ -102,3 +105,3 @@ export function flattenStyles(styles) { | ||
styles.forEach(function (entry) { | ||
StringMapWrapper.forEach(entry, function (value, prop) { finalStyles[prop] = value; }); | ||
Object.keys(entry).forEach(function (prop) { finalStyles[prop] = entry[prop]; }); | ||
}); | ||
@@ -105,0 +108,0 @@ return finalStyles; |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":1,"metadata":{"collectAndResolveStyles":{"__symbolic":"function","parameters":["collection","styles"],"value":{"__symbolic":"error","message":"Function call not supported","line":95,"character":20}}}} | ||
{"__symbolic":"module","version":1,"metadata":{"collectAndResolveStyles":{"__symbolic":"function","parameters":["collection","styles"],"value":{"__symbolic":"error","message":"Function call not supported","line":97,"character":20}}}} |
@@ -8,3 +8,2 @@ /** | ||
*/ | ||
import { StringMapWrapper } from '../facade/collection'; | ||
import { isPresent } from '../facade/lang'; | ||
@@ -29,3 +28,3 @@ export var ViewAnimationMap = (function () { | ||
var el = this._map.get(element); | ||
return el ? StringMapWrapper.values(el) : []; | ||
return el ? Object.keys(el).map(function (k) { return el[k]; }) : []; | ||
}; | ||
@@ -53,3 +52,3 @@ ViewAnimationMap.prototype.set = function (element, animationName, player) { | ||
this._allPlayers.splice(index, 1); | ||
if (StringMapWrapper.isEmpty(playersByAnimation)) { | ||
if (Object.keys(playersByAnimation).length === 0) { | ||
this._map.delete(element); | ||
@@ -56,0 +55,0 @@ } |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
import { Math, StringWrapper } from '../src/facade/lang'; | ||
import { StringWrapper } from '../src/facade/lang'; | ||
import { OpaqueToken } from './di'; | ||
@@ -11,0 +11,0 @@ /** |
@@ -6,3 +6,3 @@ import { IterableDifferFactory, IterableDiffers } from './differs/iterable_differs'; | ||
export { ChangeDetectorRef } from './change_detector_ref'; | ||
export { CHANGE_DETECTION_STRATEGY_VALUES, ChangeDetectionStrategy, ChangeDetectorStatus, isDefaultChangeDetectionStrategy } from './constants'; | ||
export { ChangeDetectionStrategy, ChangeDetectorStatus, isDefaultChangeDetectionStrategy } from './constants'; | ||
export { CollectionChangeRecord, DefaultIterableDifferFactory } from './differs/default_iterable_differ'; | ||
@@ -9,0 +9,0 @@ export { DefaultIterableDiffer } from './differs/default_iterable_differ'; |
@@ -14,3 +14,3 @@ /** | ||
export { ChangeDetectorRef } from './change_detector_ref'; | ||
export { CHANGE_DETECTION_STRATEGY_VALUES, ChangeDetectionStrategy, ChangeDetectorStatus, isDefaultChangeDetectionStrategy } from './constants'; | ||
export { ChangeDetectionStrategy, ChangeDetectorStatus, isDefaultChangeDetectionStrategy } from './constants'; | ||
export { CollectionChangeRecord, DefaultIterableDifferFactory } from './differs/default_iterable_differ'; | ||
@@ -17,0 +17,0 @@ export { DefaultIterableDiffer } from './differs/default_iterable_differ'; |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":1,"metadata":{"keyValDiff":[{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./differs/default_keyvalue_differ","name":"DefaultKeyValueDifferFactory"}}],"iterableDiff":[{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./differs/default_iterable_differ","name":"DefaultIterableDifferFactory"}}],"defaultIterableDiffers":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./differs/iterable_differs","name":"IterableDiffers"},"arguments":[{"__symbolic":"reference","name":"iterableDiff"}]},"defaultKeyValueDiffers":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./differs/keyvalue_differs","name":"KeyValueDiffers"},"arguments":[{"__symbolic":"reference","name":"keyValDiff"}]}},"exports":[{"from":"../metadata/lifecycle_hooks","export":["SimpleChanges"]},{"from":"./change_detection_util","export":["SimpleChange","UNINITIALIZED","ValueUnwrapper","WrappedValue","devModeEqual","looseIdentical"]},{"from":"./change_detector_ref","export":["ChangeDetectorRef"]},{"from":"./constants","export":["CHANGE_DETECTION_STRATEGY_VALUES","ChangeDetectionStrategy","ChangeDetectorStatus","isDefaultChangeDetectionStrategy"]},{"from":"./differs/default_iterable_differ","export":["CollectionChangeRecord","DefaultIterableDifferFactory"]},{"from":"./differs/default_iterable_differ","export":["DefaultIterableDiffer"]},{"from":"./differs/default_keyvalue_differ","export":["DefaultKeyValueDifferFactory","KeyValueChangeRecord"]},{"from":"./differs/iterable_differs","export":["IterableDiffer","IterableDifferFactory","IterableDiffers","TrackByFn"]},{"from":"./differs/keyvalue_differs","export":["KeyValueDiffer","KeyValueDifferFactory","KeyValueDiffers"]},{"from":"./pipe_transform","export":["PipeTransform"]}]} | ||
{"__symbolic":"module","version":1,"metadata":{"keyValDiff":[{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./differs/default_keyvalue_differ","name":"DefaultKeyValueDifferFactory"}}],"iterableDiff":[{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./differs/default_iterable_differ","name":"DefaultIterableDifferFactory"}}],"defaultIterableDiffers":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./differs/iterable_differs","name":"IterableDiffers"},"arguments":[{"__symbolic":"reference","name":"iterableDiff"}]},"defaultKeyValueDiffers":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./differs/keyvalue_differs","name":"KeyValueDiffers"},"arguments":[{"__symbolic":"reference","name":"keyValDiff"}]}},"exports":[{"from":"../metadata/lifecycle_hooks","export":["SimpleChanges"]},{"from":"./change_detection_util","export":["SimpleChange","UNINITIALIZED","ValueUnwrapper","WrappedValue","devModeEqual","looseIdentical"]},{"from":"./change_detector_ref","export":["ChangeDetectorRef"]},{"from":"./constants","export":["ChangeDetectionStrategy","ChangeDetectorStatus","isDefaultChangeDetectionStrategy"]},{"from":"./differs/default_iterable_differ","export":["CollectionChangeRecord","DefaultIterableDifferFactory"]},{"from":"./differs/default_iterable_differ","export":["DefaultIterableDiffer"]},{"from":"./differs/default_keyvalue_differ","export":["DefaultKeyValueDifferFactory","KeyValueChangeRecord"]},{"from":"./differs/iterable_differs","export":["IterableDiffer","IterableDifferFactory","IterableDiffers","TrackByFn"]},{"from":"./differs/keyvalue_differs","export":["KeyValueDiffer","KeyValueDifferFactory","KeyValueDiffers"]},{"from":"./pipe_transform","export":["PipeTransform"]}]} |
@@ -43,3 +43,2 @@ /** | ||
* `, | ||
* directives: [Cmp] | ||
* }) | ||
@@ -83,3 +82,2 @@ * class App { | ||
* `, | ||
* directives: [NgFor] | ||
* }) | ||
@@ -101,3 +99,2 @@ * class GiantList { | ||
* `, | ||
* directives: [GiantList] | ||
* }) | ||
@@ -167,3 +164,3 @@ * class App { | ||
* inputs: ['live'], | ||
* template: `Data: {{dataProvider.data}}` | ||
* template: 'Data: {{dataProvider.data}}' | ||
* }) | ||
@@ -188,3 +185,2 @@ * class LiveData { | ||
* `, | ||
* directives: [LiveData, FORM_DIRECTIVES] | ||
* }) | ||
@@ -191,0 +187,0 @@ * class App { |
@@ -51,10 +51,2 @@ /** | ||
} | ||
/** | ||
* List of possible {@link ChangeDetectionStrategy} values. | ||
*/ | ||
export declare var CHANGE_DETECTION_STRATEGY_VALUES: ChangeDetectionStrategy[]; | ||
/** | ||
* List of possible {@link ChangeDetectorStatus} values. | ||
*/ | ||
export declare var CHANGE_DETECTOR_STATUS_VALUES: ChangeDetectorStatus[]; | ||
export declare function isDefaultChangeDetectionStrategy(changeDetectionStrategy: ChangeDetectionStrategy): boolean; |
@@ -61,20 +61,2 @@ /** | ||
})(ChangeDetectorStatus || (ChangeDetectorStatus = {})); | ||
/** | ||
* List of possible {@link ChangeDetectionStrategy} values. | ||
*/ | ||
export var CHANGE_DETECTION_STRATEGY_VALUES = [ | ||
ChangeDetectionStrategy.OnPush, | ||
ChangeDetectionStrategy.Default, | ||
]; | ||
/** | ||
* List of possible {@link ChangeDetectorStatus} values. | ||
*/ | ||
export var CHANGE_DETECTOR_STATUS_VALUES = [ | ||
ChangeDetectorStatus.CheckOnce, | ||
ChangeDetectorStatus.Checked, | ||
ChangeDetectorStatus.CheckAlways, | ||
ChangeDetectorStatus.Detached, | ||
ChangeDetectorStatus.Errored, | ||
ChangeDetectorStatus.Destroyed, | ||
]; | ||
export function isDefaultChangeDetectionStrategy(changeDetectionStrategy) { | ||
@@ -81,0 +63,0 @@ return isBlank(changeDetectionStrategy) || |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":1,"metadata":{"ChangeDetectionStrategy":{"OnPush":0,"Default":1},"ChangeDetectorStatus":{"CheckOnce":0,"Checked":1,"CheckAlways":2,"Detached":3,"Errored":4,"Destroyed":5},"CHANGE_DETECTION_STRATEGY_VALUES":[{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ChangeDetectionStrategy"},"member":"OnPush"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ChangeDetectionStrategy"},"member":"Default"}],"CHANGE_DETECTOR_STATUS_VALUES":[{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ChangeDetectorStatus"},"member":"CheckOnce"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ChangeDetectorStatus"},"member":"Checked"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ChangeDetectorStatus"},"member":"CheckAlways"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ChangeDetectorStatus"},"member":"Detached"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ChangeDetectorStatus"},"member":"Errored"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ChangeDetectorStatus"},"member":"Destroyed"}],"isDefaultChangeDetectionStrategy":{"__symbolic":"function","parameters":["changeDetectionStrategy"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../facade/lang","name":"isBlank"},"arguments":[{"__symbolic":"reference","name":"changeDetectionStrategy"}]},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"changeDetectionStrategy"},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ChangeDetectionStrategy"},"member":"Default"}}}}}} | ||
{"__symbolic":"module","version":1,"metadata":{"ChangeDetectionStrategy":{"OnPush":0,"Default":1},"ChangeDetectorStatus":{"CheckOnce":0,"Checked":1,"CheckAlways":2,"Detached":3,"Errored":4,"Destroyed":5},"isDefaultChangeDetectionStrategy":{"__symbolic":"function","parameters":["changeDetectionStrategy"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../facade/lang","name":"isBlank"},"arguments":[{"__symbolic":"reference","name":"changeDetectionStrategy"}]},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"changeDetectionStrategy"},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ChangeDetectionStrategy"},"member":"Default"}}}}}} |
@@ -683,3 +683,3 @@ /** | ||
var recordList = this.map.get(key); | ||
return isBlank(recordList) ? null : recordList.get(trackById, afterIndex); | ||
return recordList ? recordList.get(trackById, afterIndex) : null; | ||
}; | ||
@@ -686,0 +686,0 @@ /** |
@@ -8,3 +8,2 @@ /** | ||
*/ | ||
import { StringMapWrapper } from '../../facade/collection'; | ||
import { isJsObject, looseIdentical, stringify } from '../../facade/lang'; | ||
@@ -272,3 +271,3 @@ export var DefaultKeyValueDifferFactory = (function () { | ||
else { | ||
StringMapWrapper.forEach(obj, fn); | ||
Object.keys(obj).forEach(function (k) { return fn(obj[k], k); }); | ||
} | ||
@@ -275,0 +274,0 @@ }; |
@@ -10,3 +10,3 @@ /** | ||
import { ListWrapper } from '../../facade/collection'; | ||
import { getTypeNameForDebugging, isBlank, isPresent } from '../../facade/lang'; | ||
import { getTypeNameForDebugging, isPresent } from '../../facade/lang'; | ||
/** | ||
@@ -53,3 +53,3 @@ * A repository of different iterable diffing strategies used by NgFor, NgClass, and others. | ||
useFactory: function (parent) { | ||
if (isBlank(parent)) { | ||
if (!parent) { | ||
// Typically would occur when calling IterableDiffers.extend inside of dependencies passed | ||
@@ -56,0 +56,0 @@ // to |
@@ -10,3 +10,3 @@ /** | ||
import { ListWrapper } from '../../facade/collection'; | ||
import { isBlank, isPresent } from '../../facade/lang'; | ||
import { isPresent } from '../../facade/lang'; | ||
/** | ||
@@ -53,3 +53,3 @@ * A repository of different Map diffing strategies used by NgClass, NgStyle, and others. | ||
useFactory: function (parent) { | ||
if (isBlank(parent)) { | ||
if (!parent) { | ||
// Typically would occur when calling KeyValueDiffers.extend inside of dependencies passed | ||
@@ -56,0 +56,0 @@ // to |
@@ -11,3 +11,2 @@ /** | ||
import { AnimationKeyframe as AnimationKeyframe_ } from './animation/animation_keyframe'; | ||
import { AnimationOutput as AnimationOutput_ } from './animation/animation_output'; | ||
import { AnimationPlayer as AnimationPlayer_, NoOpAnimationPlayer as NoOpAnimationPlayer_ } from './animation/animation_player'; | ||
@@ -45,3 +44,2 @@ import { AnimationSequencePlayer as AnimationSequencePlayer_ } from './animation/animation_sequence_player'; | ||
_ChangeDetectorStatus?: constants.ChangeDetectorStatus; | ||
CHANGE_DETECTION_STRATEGY_VALUES: typeof constants.CHANGE_DETECTION_STRATEGY_VALUES; | ||
constructDependencies: typeof reflective_provider.constructDependencies; | ||
@@ -75,3 +73,2 @@ LifecycleHooks: typeof lifecycle_hooks.LifecycleHooks; | ||
_ViewUtils?: view_utils.ViewUtils; | ||
VIEW_ENCAPSULATION_VALUES: typeof metadata_view.VIEW_ENCAPSULATION_VALUES; | ||
ViewMetadata: typeof metadata_view.ViewMetadata; | ||
@@ -132,4 +129,2 @@ _ViewMetadata?: metadata_view.ViewMetadata; | ||
_AnimationStyles?: AnimationStyles_; | ||
AnimationOutput: typeof AnimationOutput_; | ||
_AnimationOutput?: AnimationOutput_; | ||
ANY_STATE: typeof ANY_STATE_; | ||
@@ -136,0 +131,0 @@ DEFAULT_STATE: typeof DEFAULT_STATE_; |
@@ -11,3 +11,2 @@ /** | ||
import { AnimationKeyframe as AnimationKeyframe_ } from './animation/animation_keyframe'; | ||
import { AnimationOutput as AnimationOutput_ } from './animation/animation_output'; | ||
import { AnimationPlayer as AnimationPlayer_, NoOpAnimationPlayer as NoOpAnimationPlayer_ } from './animation/animation_player'; | ||
@@ -43,3 +42,2 @@ import { AnimationSequencePlayer as AnimationSequencePlayer_ } from './animation/animation_sequence_player'; | ||
ChangeDetectorStatus: constants.ChangeDetectorStatus, | ||
CHANGE_DETECTION_STRATEGY_VALUES: constants.CHANGE_DETECTION_STRATEGY_VALUES, | ||
constructDependencies: reflective_provider.constructDependencies, | ||
@@ -61,3 +59,2 @@ LifecycleHooks: lifecycle_hooks.LifecycleHooks, | ||
ViewUtils: view_utils.ViewUtils, | ||
VIEW_ENCAPSULATION_VALUES: metadata_view.VIEW_ENCAPSULATION_VALUES, | ||
ViewMetadata: metadata_view.ViewMetadata, | ||
@@ -102,3 +99,2 @@ DebugContext: debug_context.DebugContext, | ||
AnimationStyles: AnimationStyles_, | ||
AnimationOutput: AnimationOutput_, | ||
ANY_STATE: ANY_STATE_, | ||
@@ -105,0 +101,0 @@ DEFAULT_STATE: DEFAULT_STATE_, |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":1,"metadata":{"___core_private__":{"isDefaultChangeDetectionStrategy":{"__symbolic":"reference","module":"./change_detection/constants","name":"isDefaultChangeDetectionStrategy"},"ChangeDetectorStatus":{"__symbolic":"reference","module":"./change_detection/constants","name":"ChangeDetectorStatus"},"CHANGE_DETECTION_STRATEGY_VALUES":{"__symbolic":"reference","module":"./change_detection/constants","name":"CHANGE_DETECTION_STRATEGY_VALUES"},"constructDependencies":{"__symbolic":"reference","module":"./di/reflective_provider","name":"constructDependencies"},"LifecycleHooks":{"__symbolic":"reference","module":"./metadata/lifecycle_hooks","name":"LifecycleHooks"},"LIFECYCLE_HOOKS_VALUES":{"__symbolic":"reference","module":"./metadata/lifecycle_hooks","name":"LIFECYCLE_HOOKS_VALUES"},"ReflectorReader":{"__symbolic":"reference","module":"./reflection/reflector_reader","name":"ReflectorReader"},"CodegenComponentFactoryResolver":{"__symbolic":"reference","module":"./linker/component_factory_resolver","name":"CodegenComponentFactoryResolver"},"AppElement":{"__symbolic":"reference","module":"./linker/element","name":"AppElement"},"AppView":{"__symbolic":"reference","module":"./linker/view","name":"AppView"},"DebugAppView":{"__symbolic":"reference","module":"./linker/view","name":"DebugAppView"},"NgModuleInjector":{"__symbolic":"reference","module":"./linker/ng_module_factory","name":"NgModuleInjector"},"registerModuleFactory":{"__symbolic":"reference","module":"./linker/ng_module_factory_loader","name":"registerModuleFactory"},"ViewType":{"__symbolic":"reference","module":"./linker/view_type","name":"ViewType"},"MAX_INTERPOLATION_VALUES":{"__symbolic":"reference","module":"./linker/view_utils","name":"MAX_INTERPOLATION_VALUES"},"checkBinding":{"__symbolic":"reference","module":"./linker/view_utils","name":"checkBinding"},"flattenNestedViewRenderNodes":{"__symbolic":"reference","module":"./linker/view_utils","name":"flattenNestedViewRenderNodes"},"interpolate":{"__symbolic":"reference","module":"./linker/view_utils","name":"interpolate"},"ViewUtils":{"__symbolic":"reference","module":"./linker/view_utils","name":"ViewUtils"},"VIEW_ENCAPSULATION_VALUES":{"__symbolic":"reference","module":"./metadata/view","name":"VIEW_ENCAPSULATION_VALUES"},"ViewMetadata":{"__symbolic":"reference","module":"./metadata/view","name":"ViewMetadata"},"DebugContext":{"__symbolic":"reference","module":"./linker/debug_context","name":"DebugContext"},"StaticNodeDebugInfo":{"__symbolic":"reference","module":"./linker/debug_context","name":"StaticNodeDebugInfo"},"devModeEqual":{"__symbolic":"reference","module":"./change_detection/change_detection_util","name":"devModeEqual"},"UNINITIALIZED":{"__symbolic":"reference","module":"./change_detection/change_detection_util","name":"UNINITIALIZED"},"ValueUnwrapper":{"__symbolic":"reference","module":"./change_detection/change_detection_util","name":"ValueUnwrapper"},"RenderDebugInfo":{"__symbolic":"reference","module":"./render/api","name":"RenderDebugInfo"},"TemplateRef_":{"__symbolic":"reference","module":"./linker/template_ref","name":"TemplateRef_"},"ReflectionCapabilities":{"__symbolic":"reference","module":"./reflection/reflection_capabilities","name":"ReflectionCapabilities"},"makeDecorator":{"__symbolic":"reference","module":"./util/decorators","name":"makeDecorator"},"DebugDomRootRenderer":{"__symbolic":"reference","module":"./debug/debug_renderer","name":"DebugDomRootRenderer"},"EMPTY_ARRAY":{"__symbolic":"reference","module":"./linker/view_utils","name":"EMPTY_ARRAY"},"EMPTY_MAP":{"__symbolic":"reference","module":"./linker/view_utils","name":"EMPTY_MAP"},"pureProxy1":{"__symbolic":"reference","module":"./linker/view_utils","name":"pureProxy1"},"pureProxy2":{"__symbolic":"reference","module":"./linker/view_utils","name":"pureProxy2"},"pureProxy3":{"__symbolic":"reference","module":"./linker/view_utils","name":"pureProxy3"},"pureProxy4":{"__symbolic":"reference","module":"./linker/view_utils","name":"pureProxy4"},"pureProxy5":{"__symbolic":"reference","module":"./linker/view_utils","name":"pureProxy5"},"pureProxy6":{"__symbolic":"reference","module":"./linker/view_utils","name":"pureProxy6"},"pureProxy7":{"__symbolic":"reference","module":"./linker/view_utils","name":"pureProxy7"},"pureProxy8":{"__symbolic":"reference","module":"./linker/view_utils","name":"pureProxy8"},"pureProxy9":{"__symbolic":"reference","module":"./linker/view_utils","name":"pureProxy9"},"pureProxy10":{"__symbolic":"reference","module":"./linker/view_utils","name":"pureProxy10"},"castByValue":{"__symbolic":"reference","module":"./linker/view_utils","name":"castByValue"},"Console":{"__symbolic":"reference","module":"./console","name":"Console"},"reflector":{"__symbolic":"reference","module":"./reflection/reflection","name":"reflector"},"Reflector":{"__symbolic":"reference","module":"./reflection/reflection","name":"Reflector"},"NoOpAnimationPlayer":{"__symbolic":"reference","module":"./animation/animation_player","name":"NoOpAnimationPlayer"},"AnimationPlayer":{"__symbolic":"reference","module":"./animation/animation_player","name":"AnimationPlayer"},"AnimationSequencePlayer":{"__symbolic":"reference","module":"./animation/animation_sequence_player","name":"AnimationSequencePlayer"},"AnimationGroupPlayer":{"__symbolic":"reference","module":"./animation/animation_group_player","name":"AnimationGroupPlayer"},"AnimationKeyframe":{"__symbolic":"reference","module":"./animation/animation_keyframe","name":"AnimationKeyframe"},"prepareFinalAnimationStyles":{"__symbolic":"reference","module":"./animation/animation_style_util","name":"prepareFinalAnimationStyles"},"balanceAnimationKeyframes":{"__symbolic":"reference","module":"./animation/animation_style_util","name":"balanceAnimationKeyframes"},"flattenStyles":{"__symbolic":"reference","module":"./animation/animation_style_util","name":"flattenStyles"},"clearStyles":{"__symbolic":"reference","module":"./animation/animation_style_util","name":"clearStyles"},"renderStyles":{"__symbolic":"reference","module":"./animation/animation_style_util","name":"renderStyles"},"collectAndResolveStyles":{"__symbolic":"reference","module":"./animation/animation_style_util","name":"collectAndResolveStyles"},"AnimationStyles":{"__symbolic":"reference","module":"./animation/animation_styles","name":"AnimationStyles"},"AnimationOutput":{"__symbolic":"reference","module":"./animation/animation_output","name":"AnimationOutput"},"ANY_STATE":{"__symbolic":"reference","module":"./animation/animation_constants","name":"ANY_STATE"},"DEFAULT_STATE":{"__symbolic":"reference","module":"./animation/animation_constants","name":"DEFAULT_STATE"},"EMPTY_STATE":{"__symbolic":"reference","module":"./animation/animation_constants","name":"EMPTY_STATE"},"FILL_STYLE_FLAG":{"__symbolic":"reference","module":"./animation/animation_constants","name":"FILL_STYLE_FLAG"},"ComponentStillLoadingError":{"__symbolic":"reference","module":"./linker/compiler","name":"ComponentStillLoadingError"},"isPromise":{"__symbolic":"reference","module":"./util/lang","name":"isPromise"}}}} | ||
{"__symbolic":"module","version":1,"metadata":{"___core_private__":{"isDefaultChangeDetectionStrategy":{"__symbolic":"reference","module":"./change_detection/constants","name":"isDefaultChangeDetectionStrategy"},"ChangeDetectorStatus":{"__symbolic":"reference","module":"./change_detection/constants","name":"ChangeDetectorStatus"},"constructDependencies":{"__symbolic":"reference","module":"./di/reflective_provider","name":"constructDependencies"},"LifecycleHooks":{"__symbolic":"reference","module":"./metadata/lifecycle_hooks","name":"LifecycleHooks"},"LIFECYCLE_HOOKS_VALUES":{"__symbolic":"reference","module":"./metadata/lifecycle_hooks","name":"LIFECYCLE_HOOKS_VALUES"},"ReflectorReader":{"__symbolic":"reference","module":"./reflection/reflector_reader","name":"ReflectorReader"},"CodegenComponentFactoryResolver":{"__symbolic":"reference","module":"./linker/component_factory_resolver","name":"CodegenComponentFactoryResolver"},"AppElement":{"__symbolic":"reference","module":"./linker/element","name":"AppElement"},"AppView":{"__symbolic":"reference","module":"./linker/view","name":"AppView"},"DebugAppView":{"__symbolic":"reference","module":"./linker/view","name":"DebugAppView"},"NgModuleInjector":{"__symbolic":"reference","module":"./linker/ng_module_factory","name":"NgModuleInjector"},"registerModuleFactory":{"__symbolic":"reference","module":"./linker/ng_module_factory_loader","name":"registerModuleFactory"},"ViewType":{"__symbolic":"reference","module":"./linker/view_type","name":"ViewType"},"MAX_INTERPOLATION_VALUES":{"__symbolic":"reference","module":"./linker/view_utils","name":"MAX_INTERPOLATION_VALUES"},"checkBinding":{"__symbolic":"reference","module":"./linker/view_utils","name":"checkBinding"},"flattenNestedViewRenderNodes":{"__symbolic":"reference","module":"./linker/view_utils","name":"flattenNestedViewRenderNodes"},"interpolate":{"__symbolic":"reference","module":"./linker/view_utils","name":"interpolate"},"ViewUtils":{"__symbolic":"reference","module":"./linker/view_utils","name":"ViewUtils"},"ViewMetadata":{"__symbolic":"reference","module":"./metadata/view","name":"ViewMetadata"},"DebugContext":{"__symbolic":"reference","module":"./linker/debug_context","name":"DebugContext"},"StaticNodeDebugInfo":{"__symbolic":"reference","module":"./linker/debug_context","name":"StaticNodeDebugInfo"},"devModeEqual":{"__symbolic":"reference","module":"./change_detection/change_detection_util","name":"devModeEqual"},"UNINITIALIZED":{"__symbolic":"reference","module":"./change_detection/change_detection_util","name":"UNINITIALIZED"},"ValueUnwrapper":{"__symbolic":"reference","module":"./change_detection/change_detection_util","name":"ValueUnwrapper"},"RenderDebugInfo":{"__symbolic":"reference","module":"./render/api","name":"RenderDebugInfo"},"TemplateRef_":{"__symbolic":"reference","module":"./linker/template_ref","name":"TemplateRef_"},"ReflectionCapabilities":{"__symbolic":"reference","module":"./reflection/reflection_capabilities","name":"ReflectionCapabilities"},"makeDecorator":{"__symbolic":"reference","module":"./util/decorators","name":"makeDecorator"},"DebugDomRootRenderer":{"__symbolic":"reference","module":"./debug/debug_renderer","name":"DebugDomRootRenderer"},"EMPTY_ARRAY":{"__symbolic":"reference","module":"./linker/view_utils","name":"EMPTY_ARRAY"},"EMPTY_MAP":{"__symbolic":"reference","module":"./linker/view_utils","name":"EMPTY_MAP"},"pureProxy1":{"__symbolic":"reference","module":"./linker/view_utils","name":"pureProxy1"},"pureProxy2":{"__symbolic":"reference","module":"./linker/view_utils","name":"pureProxy2"},"pureProxy3":{"__symbolic":"reference","module":"./linker/view_utils","name":"pureProxy3"},"pureProxy4":{"__symbolic":"reference","module":"./linker/view_utils","name":"pureProxy4"},"pureProxy5":{"__symbolic":"reference","module":"./linker/view_utils","name":"pureProxy5"},"pureProxy6":{"__symbolic":"reference","module":"./linker/view_utils","name":"pureProxy6"},"pureProxy7":{"__symbolic":"reference","module":"./linker/view_utils","name":"pureProxy7"},"pureProxy8":{"__symbolic":"reference","module":"./linker/view_utils","name":"pureProxy8"},"pureProxy9":{"__symbolic":"reference","module":"./linker/view_utils","name":"pureProxy9"},"pureProxy10":{"__symbolic":"reference","module":"./linker/view_utils","name":"pureProxy10"},"castByValue":{"__symbolic":"reference","module":"./linker/view_utils","name":"castByValue"},"Console":{"__symbolic":"reference","module":"./console","name":"Console"},"reflector":{"__symbolic":"reference","module":"./reflection/reflection","name":"reflector"},"Reflector":{"__symbolic":"reference","module":"./reflection/reflection","name":"Reflector"},"NoOpAnimationPlayer":{"__symbolic":"reference","module":"./animation/animation_player","name":"NoOpAnimationPlayer"},"AnimationPlayer":{"__symbolic":"reference","module":"./animation/animation_player","name":"AnimationPlayer"},"AnimationSequencePlayer":{"__symbolic":"reference","module":"./animation/animation_sequence_player","name":"AnimationSequencePlayer"},"AnimationGroupPlayer":{"__symbolic":"reference","module":"./animation/animation_group_player","name":"AnimationGroupPlayer"},"AnimationKeyframe":{"__symbolic":"reference","module":"./animation/animation_keyframe","name":"AnimationKeyframe"},"prepareFinalAnimationStyles":{"__symbolic":"reference","module":"./animation/animation_style_util","name":"prepareFinalAnimationStyles"},"balanceAnimationKeyframes":{"__symbolic":"reference","module":"./animation/animation_style_util","name":"balanceAnimationKeyframes"},"flattenStyles":{"__symbolic":"reference","module":"./animation/animation_style_util","name":"flattenStyles"},"clearStyles":{"__symbolic":"reference","module":"./animation/animation_style_util","name":"clearStyles"},"renderStyles":{"__symbolic":"reference","module":"./animation/animation_style_util","name":"renderStyles"},"collectAndResolveStyles":{"__symbolic":"reference","module":"./animation/animation_style_util","name":"collectAndResolveStyles"},"AnimationStyles":{"__symbolic":"reference","module":"./animation/animation_styles","name":"AnimationStyles"},"ANY_STATE":{"__symbolic":"reference","module":"./animation/animation_constants","name":"ANY_STATE"},"DEFAULT_STATE":{"__symbolic":"reference","module":"./animation/animation_constants","name":"DEFAULT_STATE"},"EMPTY_STATE":{"__symbolic":"reference","module":"./animation/animation_constants","name":"EMPTY_STATE"},"FILL_STYLE_FLAG":{"__symbolic":"reference","module":"./animation/animation_constants","name":"FILL_STYLE_FLAG"},"ComponentStillLoadingError":{"__symbolic":"reference","module":"./linker/compiler","name":"ComponentStillLoadingError"},"isPromise":{"__symbolic":"reference","module":"./util/lang","name":"isPromise"}}}} |
@@ -15,3 +15,3 @@ /** | ||
import { BaseError, WrappedError } from '../facade/errors'; | ||
import { isBlank, stringify } from '../facade/lang'; | ||
import { stringify } from '../facade/lang'; | ||
function findFirstClosedCycle(keys) { | ||
@@ -216,3 +216,3 @@ var res = []; | ||
var parameter = params[i]; | ||
if (isBlank(parameter) || parameter.length == 0) { | ||
if (!parameter || parameter.length == 0) { | ||
signature.push('?'); | ||
@@ -219,0 +219,0 @@ } |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
import { isBlank, stringify } from '../facade/lang'; | ||
import { stringify } from '../facade/lang'; | ||
import { resolveForwardRef } from './forward_ref'; | ||
@@ -34,3 +34,3 @@ /** | ||
this.id = id; | ||
if (isBlank(token)) { | ||
if (!token) { | ||
throw new Error('Token must be defined!'); | ||
@@ -37,0 +37,0 @@ } |
@@ -162,3 +162,3 @@ /** | ||
export function constructDependencies(typeOrFunc, dependencies) { | ||
if (isBlank(dependencies)) { | ||
if (!dependencies) { | ||
return _dependenciesFor(typeOrFunc); | ||
@@ -173,3 +173,3 @@ } | ||
var params = reflector.parameters(typeOrFunc); | ||
if (isBlank(params)) | ||
if (!params) | ||
return []; | ||
@@ -176,0 +176,0 @@ if (params.some(isBlank)) { |
/** | ||
* Provides a hook for centralized exception handling. | ||
* @whatItDoes Provides a hook for centralized exception handling. | ||
* | ||
* The default implementation of `ErrorHandler` prints error messages to the `Console`. To | ||
* intercept error handling, | ||
* write a custom exception handler that replaces this default as appropriate for your app. | ||
* @description | ||
* | ||
* The default implementation of `ErrorHandler` prints error messages to the `console`. To | ||
* intercept error handling, write a custom exception handler that replaces this default as | ||
* appropriate for your app. | ||
* | ||
* ### Example | ||
* | ||
* ```javascript | ||
* | ||
* ``` | ||
* class MyErrorHandler implements ErrorHandler { | ||
* call(error, stackTrace = null, reason = null) { | ||
* handleError(error) { | ||
* // do something with the exception | ||
@@ -23,2 +24,3 @@ * } | ||
* ``` | ||
* | ||
* @stable | ||
@@ -25,0 +27,0 @@ */ |
@@ -9,14 +9,15 @@ /** | ||
/** | ||
* Provides a hook for centralized exception handling. | ||
* @whatItDoes Provides a hook for centralized exception handling. | ||
* | ||
* The default implementation of `ErrorHandler` prints error messages to the `Console`. To | ||
* intercept error handling, | ||
* write a custom exception handler that replaces this default as appropriate for your app. | ||
* @description | ||
* | ||
* The default implementation of `ErrorHandler` prints error messages to the `console`. To | ||
* intercept error handling, write a custom exception handler that replaces this default as | ||
* appropriate for your app. | ||
* | ||
* ### Example | ||
* | ||
* ```javascript | ||
* | ||
* ``` | ||
* class MyErrorHandler implements ErrorHandler { | ||
* call(error, stackTrace = null, reason = null) { | ||
* handleError(error) { | ||
* // do something with the exception | ||
@@ -31,2 +32,3 @@ * } | ||
* ``` | ||
* | ||
* @stable | ||
@@ -74,5 +76,3 @@ */ | ||
} | ||
else { | ||
return null; | ||
} | ||
return null; | ||
}; | ||
@@ -79,0 +79,0 @@ /** @internal */ |
@@ -17,20 +17,2 @@ export declare class MapWrapper { | ||
export declare class StringMapWrapper { | ||
static get<V>(map: { | ||
[key: string]: V; | ||
}, key: string): V; | ||
static set<V>(map: { | ||
[key: string]: V; | ||
}, key: string, value: V): void; | ||
static keys(map: { | ||
[key: string]: any; | ||
}): string[]; | ||
static values<T>(map: { | ||
[key: string]: T; | ||
}): T[]; | ||
static isEmpty(map: { | ||
[key: string]: any; | ||
}): boolean; | ||
static forEach<K, V>(map: { | ||
[key: string]: V; | ||
}, callback: (v: V, K: string) => void): void; | ||
static merge<V>(m1: { | ||
@@ -87,6 +69,1 @@ [key: string]: V; | ||
export declare function iterateListLike(obj: any, fn: Function): void; | ||
export declare class SetWrapper { | ||
static createFromList<T>(lst: T[]): Set<T>; | ||
static has<T>(s: Set<T>, key: T): boolean; | ||
static delete<K>(m: Set<K>, k: K): void; | ||
} |
@@ -106,22 +106,2 @@ /** | ||
} | ||
StringMapWrapper.get = function (map, key) { | ||
return map.hasOwnProperty(key) ? map[key] : undefined; | ||
}; | ||
StringMapWrapper.set = function (map, key, value) { map[key] = value; }; | ||
StringMapWrapper.keys = function (map) { return Object.keys(map); }; | ||
StringMapWrapper.values = function (map) { | ||
return Object.keys(map).map(function (k) { return map[k]; }); | ||
}; | ||
StringMapWrapper.isEmpty = function (map) { | ||
for (var prop in map) { | ||
return false; | ||
} | ||
return true; | ||
}; | ||
StringMapWrapper.forEach = function (map, callback) { | ||
for (var _i = 0, _a = Object.keys(map); _i < _a.length; _i++) { | ||
var k = _a[_i]; | ||
callback(map[k], k); | ||
} | ||
}; | ||
StringMapWrapper.merge = function (m1, m2) { | ||
@@ -320,29 +300,2 @@ var m = {}; | ||
} | ||
// Safari and Internet Explorer do not support the iterable parameter to the | ||
// Set constructor. We work around that by manually adding the items. | ||
var createSetFromList = (function () { | ||
var test = new Set([1, 2, 3]); | ||
if (test.size === 3) { | ||
return function createSetFromList(lst) { return new Set(lst); }; | ||
} | ||
else { | ||
return function createSetAndPopulateFromList(lst) { | ||
var res = new Set(lst); | ||
if (res.size !== lst.length) { | ||
for (var i = 0; i < lst.length; i++) { | ||
res.add(lst[i]); | ||
} | ||
} | ||
return res; | ||
}; | ||
} | ||
})(); | ||
export var SetWrapper = (function () { | ||
function SetWrapper() { | ||
} | ||
SetWrapper.createFromList = function (lst) { return createSetFromList(lst); }; | ||
SetWrapper.has = function (s, key) { return s.has(key); }; | ||
SetWrapper.delete = function (m, k) { m.delete(k); }; | ||
return SetWrapper; | ||
}()); | ||
//# sourceMappingURL=collection.js.map |
@@ -34,4 +34,2 @@ | ||
export declare function getTypeNameForDebugging(type: any): string; | ||
export declare var Math: any; | ||
export declare var Date: DateConstructor; | ||
export declare function isPresent(obj: any): boolean; | ||
@@ -50,5 +48,2 @@ export declare function isBlank(obj: any): boolean; | ||
export declare function stringify(token: any): string; | ||
export declare function serializeEnum(val: any): number; | ||
export declare function deserializeEnum(val: any, values: Map<number, any>): any; | ||
export declare function resolveEnumToken(enumValue: any, val: any): string; | ||
export declare class StringWrapper { | ||
@@ -100,10 +95,2 @@ static fromCharCode(code: number): string; | ||
} | ||
export declare class DateWrapper { | ||
static create(year: number, month?: number, day?: number, hour?: number, minutes?: number, seconds?: number, milliseconds?: number): Date; | ||
static fromISOString(str: string): Date; | ||
static fromMillis(ms: number): Date; | ||
static toMillis(date: Date): number; | ||
static now(): Date; | ||
static toJson(date: Date): string; | ||
} | ||
export declare function setValueOnPath(global: any, path: string, value: any): void; | ||
@@ -110,0 +97,0 @@ export declare function getSymbolIterator(): string | symbol; |
@@ -29,9 +29,4 @@ /** | ||
export function getTypeNameForDebugging(type) { | ||
if (type['name']) { | ||
return type['name']; | ||
} | ||
return typeof type; | ||
return type['name'] || typeof type; | ||
} | ||
export var Math = _global.Math; | ||
export var Date = _global.Date; | ||
// TODO: remove calls to assert in production environment | ||
@@ -93,15 +88,4 @@ // Note: Can't just export this and import in in other files | ||
var newLineIndex = res.indexOf('\n'); | ||
return (newLineIndex === -1) ? res : res.substring(0, newLineIndex); | ||
return newLineIndex === -1 ? res : res.substring(0, newLineIndex); | ||
} | ||
// serialize / deserialize enum exist only for consistency with dart API | ||
// enums in typescript don't need to be serialized | ||
export function serializeEnum(val) { | ||
return val; | ||
} | ||
export function deserializeEnum(val, values) { | ||
return val; | ||
} | ||
export function resolveEnumToken(enumValue, val) { | ||
return enumValue[val]; | ||
} | ||
export var StringWrapper = (function () { | ||
@@ -268,21 +252,2 @@ function StringWrapper() { | ||
}()); | ||
export var DateWrapper = (function () { | ||
function DateWrapper() { | ||
} | ||
DateWrapper.create = function (year, month, day, hour, minutes, seconds, milliseconds) { | ||
if (month === void 0) { month = 1; } | ||
if (day === void 0) { day = 1; } | ||
if (hour === void 0) { hour = 0; } | ||
if (minutes === void 0) { minutes = 0; } | ||
if (seconds === void 0) { seconds = 0; } | ||
if (milliseconds === void 0) { milliseconds = 0; } | ||
return new Date(year, month - 1, day, hour, minutes, seconds, milliseconds); | ||
}; | ||
DateWrapper.fromISOString = function (str) { return new Date(str); }; | ||
DateWrapper.fromMillis = function (ms) { return new Date(ms); }; | ||
DateWrapper.toMillis = function (date) { return date.getTime(); }; | ||
DateWrapper.now = function () { return new Date(); }; | ||
DateWrapper.toJson = function (date) { return date.toJSON(); }; | ||
return DateWrapper; | ||
}()); | ||
export function setValueOnPath(global, path, value) { | ||
@@ -289,0 +254,0 @@ var parts = path.split('.'); |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":1,"metadata":{"Math":{"__symbolic":"error","message":"Reference to a local symbol","line":55,"character":4,"context":{"name":"_global"}},"Date":{"__symbolic":"error","message":"Reference to a local symbol","line":55,"character":4,"context":{"name":"_global"}},"isPresent":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"reference","name":"undefined"}},"right":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"obj"},"right":null}}},"isBlank":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"reference","name":"undefined"}},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"obj"},"right":null}}},"isBoolean":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":87,"character":9},"right":"boolean"}},"isNumber":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":91,"character":9},"right":"number"}},"isString":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":95,"character":9},"right":"string"}},"isFunction":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":99,"character":9},"right":"function"}},"isType":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isFunction"},"arguments":[{"__symbolic":"reference","name":"obj"}]}},"isStringMap":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":107,"character":9},"right":"object"},"right":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"obj"},"right":null}}},"isStrictStringMap":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isStringMap"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Object"},"member":"getPrototypeOf"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"right":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Object"},"member":"getPrototypeOf"},"arguments":[{}]}}}},"isArray":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Array"},"member":"isArray"},"arguments":[{"__symbolic":"reference","name":"obj"}]}},"isDate":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"instanceof","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"reference","name":"Date"}},"right":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isNaN"},"arguments":[{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"obj"},"member":"valueOf"}}]}}}},"serializeEnum":{"__symbolic":"function","parameters":["val"],"value":{"__symbolic":"reference","name":"val"}},"deserializeEnum":{"__symbolic":"function","parameters":["val","values"],"value":{"__symbolic":"reference","name":"val"}},"resolveEnumToken":{"__symbolic":"function","parameters":["enumValue","val"],"value":{"__symbolic":"index","expression":{"__symbolic":"reference","name":"enumValue"},"index":{"__symbolic":"reference","name":"val"}}},"RegExp":{"__symbolic":"error","message":"Reference to a local symbol","line":55,"character":4,"context":{"name":"_global"}},"looseIdentical":{"__symbolic":"function","parameters":["a","b"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"a"},"right":{"__symbolic":"reference","name":"b"}},"right":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":287,"character":20},"right":"number"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":287,"character":45},"right":"number"}},"right":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isNaN"},"arguments":[{"__symbolic":"reference","name":"a"}]}},"right":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isNaN"},"arguments":[{"__symbolic":"reference","name":"b"}]}}}},"getMapKey":{"__symbolic":"function","parameters":["value"],"value":{"__symbolic":"reference","name":"value"}},"normalizeBlank":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"if","condition":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isBlank"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"thenExpression":null,"elseExpression":{"__symbolic":"reference","name":"obj"}}},"normalizeBool":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"if","condition":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isBlank"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"thenExpression":false,"elseExpression":{"__symbolic":"reference","name":"obj"}}},"isJsObject":{"__symbolic":"function","parameters":["o"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"o"},"right":null},"right":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":305,"character":24},"right":"function"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":305,"character":51},"right":"object"}}}},"isPrimitive":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isJsObject"},"arguments":[{"__symbolic":"reference","name":"obj"}]}}},"hasConstructor":{"__symbolic":"function","parameters":["value","type"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"value"},"member":"constructor"},"right":{"__symbolic":"reference","name":"type"}}},"escape":{"__symbolic":"function","parameters":["s"],"value":{"__symbolic":"error","message":"Reference to a local symbol","line":55,"character":4,"context":{"name":"_global"}}},"escapeRegExp":{"__symbolic":"function","parameters":["s"],"value":{"__symbolic":"error","message":"Expression form not supported","line":402,"character":19}}}} | ||
{"__symbolic":"module","version":1,"metadata":{"getTypeNameForDebugging":{"__symbolic":"function","parameters":["type"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"index","expression":{"__symbolic":"reference","name":"type"},"index":"name"},"right":{"__symbolic":"error","message":"Expression form not supported","line":61,"character":25}}},"isPresent":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"reference","name":"undefined"}},"right":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"obj"},"right":null}}},"isBlank":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"reference","name":"undefined"}},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"obj"},"right":null}}},"isBoolean":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":80,"character":9},"right":"boolean"}},"isNumber":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":84,"character":9},"right":"number"}},"isString":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":88,"character":9},"right":"string"}},"isFunction":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":92,"character":9},"right":"function"}},"isType":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isFunction"},"arguments":[{"__symbolic":"reference","name":"obj"}]}},"isStringMap":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":100,"character":9},"right":"object"},"right":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"obj"},"right":null}}},"isStrictStringMap":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isStringMap"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Object"},"member":"getPrototypeOf"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"right":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Object"},"member":"getPrototypeOf"},"arguments":[{}]}}}},"isArray":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Array"},"member":"isArray"},"arguments":[{"__symbolic":"reference","name":"obj"}]}},"isDate":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"instanceof","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"reference","name":"Date"}},"right":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isNaN"},"arguments":[{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"obj"},"member":"valueOf"}}]}}}},"RegExp":{"__symbolic":"error","message":"Reference to a local symbol","line":55,"character":4,"context":{"name":"_global"}},"looseIdentical":{"__symbolic":"function","parameters":["a","b"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"a"},"right":{"__symbolic":"reference","name":"b"}},"right":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":265,"character":20},"right":"number"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":265,"character":45},"right":"number"}},"right":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isNaN"},"arguments":[{"__symbolic":"reference","name":"a"}]}},"right":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isNaN"},"arguments":[{"__symbolic":"reference","name":"b"}]}}}},"getMapKey":{"__symbolic":"function","parameters":["value"],"value":{"__symbolic":"reference","name":"value"}},"normalizeBlank":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"if","condition":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isBlank"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"thenExpression":null,"elseExpression":{"__symbolic":"reference","name":"obj"}}},"normalizeBool":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"if","condition":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isBlank"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"thenExpression":false,"elseExpression":{"__symbolic":"reference","name":"obj"}}},"isJsObject":{"__symbolic":"function","parameters":["o"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"o"},"right":null},"right":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":283,"character":24},"right":"function"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":283,"character":51},"right":"object"}}}},"isPrimitive":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isJsObject"},"arguments":[{"__symbolic":"reference","name":"obj"}]}}},"hasConstructor":{"__symbolic":"function","parameters":["value","type"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"value"},"member":"constructor"},"right":{"__symbolic":"reference","name":"type"}}},"escape":{"__symbolic":"function","parameters":["s"],"value":{"__symbolic":"error","message":"Reference to a local symbol","line":55,"character":4,"context":{"name":"_global"}}},"escapeRegExp":{"__symbolic":"function","parameters":["s"],"value":{"__symbolic":"error","message":"Expression form not supported","line":367,"character":19}}}} |
@@ -14,3 +14,2 @@ /** | ||
import { unimplemented } from '../facade/errors'; | ||
import { isBlank } from '../facade/lang'; | ||
import { ViewUtils } from './view_utils'; | ||
@@ -149,3 +148,3 @@ /** | ||
var vu = injector.get(ViewUtils); | ||
if (isBlank(projectableNodes)) { | ||
if (!projectableNodes) { | ||
projectableNodes = []; | ||
@@ -152,0 +151,0 @@ } |
@@ -8,3 +8,2 @@ /** | ||
*/ | ||
import { StringMapWrapper } from '../facade/collection'; | ||
import { isBlank, isPresent } from '../facade/lang'; | ||
@@ -103,3 +102,4 @@ import { ViewType } from './view_type'; | ||
var refs = staticNodeInfo.refTokens; | ||
StringMapWrapper.forEach(refs, function (refToken, refName) { | ||
Object.keys(refs).forEach(function (refName) { | ||
var refToken = refs[refName]; | ||
var varValue; | ||
@@ -106,0 +106,0 @@ if (isBlank(refToken)) { |
@@ -15,9 +15,6 @@ import { BaseError, WrappedError } from '../facade/errors'; | ||
* selector: 'parent', | ||
* template: ` | ||
* <child [prop]="parentProp"></child> | ||
* `, | ||
* directives: [forwardRef(() => Child)] | ||
* template: '<child [prop]="parentProp"></child>', | ||
* }) | ||
* class Parent { | ||
* parentProp = "init"; | ||
* parentProp = 'init'; | ||
* } | ||
@@ -32,3 +29,3 @@ * | ||
* // this will result in ExpressionChangedAfterItHasBeenCheckedError | ||
* this.parent.parentProp = "updated"; | ||
* this.parent.parentProp = 'updated'; | ||
* } | ||
@@ -35,0 +32,0 @@ * } |
@@ -27,9 +27,6 @@ /** | ||
* selector: 'parent', | ||
* template: ` | ||
* <child [prop]="parentProp"></child> | ||
* `, | ||
* directives: [forwardRef(() => Child)] | ||
* template: '<child [prop]="parentProp"></child>', | ||
* }) | ||
* class Parent { | ||
* parentProp = "init"; | ||
* parentProp = 'init'; | ||
* } | ||
@@ -44,3 +41,3 @@ * | ||
* // this will result in ExpressionChangedAfterItHasBeenCheckedError | ||
* this.parent.parentProp = "updated"; | ||
* this.parent.parentProp = 'updated'; | ||
* } | ||
@@ -47,0 +44,0 @@ * } |
@@ -12,3 +12,3 @@ /** | ||
import { Inject, Injectable } from '../di'; | ||
import { isBlank, isPresent, looseIdentical } from '../facade/lang'; | ||
import { isPresent, looseIdentical } from '../facade/lang'; | ||
import { RenderComponentType, RootRenderer } from '../render/api'; | ||
@@ -71,3 +71,3 @@ import { Sanitizer } from '../security'; | ||
var res; | ||
if (isBlank(projectableNodes)) { | ||
if (!projectableNodes) { | ||
res = EMPTY_ARR; | ||
@@ -74,0 +74,0 @@ } |
@@ -1,2 +0,1 @@ | ||
import { AnimationOutput } from '../animation/animation_output'; | ||
import { AnimationPlayer } from '../animation/animation_player'; | ||
@@ -45,3 +44,3 @@ import { AnimationTransitionEvent } from '../animation/animation_transition_event'; | ||
triggerAnimationOutput(element: any, animationName: string, phase: string, event: AnimationTransitionEvent): void; | ||
registerAnimationOutput(element: any, outputEvent: AnimationOutput, eventHandler: Function): void; | ||
registerAnimationOutput(element: any, eventName: string, eventPhase: string, eventHandler: Function): void; | ||
create(context: T, givenProjectableNodes: Array<any | any[]>, rootSelectorOrNode: string | any): AppElement; | ||
@@ -48,0 +47,0 @@ /** |
@@ -92,3 +92,3 @@ /** | ||
// that there may be more than one @trigger on the same element | ||
if (listener.output.name == animationName && listener.output.phase == phase) { | ||
if (listener.eventName === animationName && listener.eventPhase === phase) { | ||
listener.handler(event); | ||
@@ -100,4 +100,3 @@ break; | ||
}; | ||
AppView.prototype.registerAnimationOutput = function (element, outputEvent, eventHandler) { | ||
var entry = new _AnimationOutputWithHandler(outputEvent, eventHandler); | ||
AppView.prototype.registerAnimationOutput = function (element, eventName, eventPhase, eventHandler) { | ||
var animations = this._animationListeners.get(element); | ||
@@ -107,3 +106,3 @@ if (!isPresent(animations)) { | ||
} | ||
animations.push(entry); | ||
animations.push(new _AnimationOutputHandler(eventName, eventPhase, eventHandler)); | ||
}; | ||
@@ -437,9 +436,10 @@ AppView.prototype.create = function (context, givenProjectableNodes, rootSelectorOrNode) { | ||
} | ||
var _AnimationOutputWithHandler = (function () { | ||
function _AnimationOutputWithHandler(output, handler) { | ||
this.output = output; | ||
var _AnimationOutputHandler = (function () { | ||
function _AnimationOutputHandler(eventName, eventPhase, handler) { | ||
this.eventName = eventName; | ||
this.eventPhase = eventPhase; | ||
this.handler = handler; | ||
} | ||
return _AnimationOutputWithHandler; | ||
return _AnimationOutputHandler; | ||
}()); | ||
//# sourceMappingURL=view.js.map |
@@ -863,3 +863,2 @@ /** | ||
* template: `<input [(ngModel)]="prop">`, | ||
* directives: [FORM_DIRECTIVES, NgModelStatus] | ||
* }) | ||
@@ -901,4 +900,3 @@ * class App { | ||
* | ||
* If the decorated method returns `false`, then `preventDefault` is applied on the DOM | ||
* event. | ||
* If the decorated method returns `false`, then `preventDefault` is applied on the DOM event. | ||
* | ||
@@ -917,3 +915,3 @@ * ### Example | ||
* onClick(btn) { | ||
* console.log("button", btn, "number of clicks:", this.numberOfClicks++); | ||
* console.log('button', btn, 'number of clicks:', this.numberOfClicks++); | ||
* } | ||
@@ -924,4 +922,3 @@ * } | ||
* selector: 'app', | ||
* template: `<button counting>Increment</button>`, | ||
* directives: [CountClicks] | ||
* template: '<button counting>Increment</button>', | ||
* }) | ||
@@ -928,0 +925,0 @@ * class App {} |
@@ -30,3 +30,3 @@ /** | ||
* Defines a schema that will allow: | ||
* - any non-angular elements with a `-` in their name, | ||
* - any non-Angular elements with a `-` in their name, | ||
* - any properties on elements with a `-` in their name which is the common rule for custom | ||
@@ -123,5 +123,5 @@ * elements. | ||
/** | ||
* Specifies a list of directives/pipes/module that can be used within the template | ||
* of any component that is part of an angular module | ||
* that imports this angular module. | ||
* Specifies a list of directives/pipes/modules that can be used within the template | ||
* of any component that is part of an Angular module | ||
* that imports this Angular module. | ||
* | ||
@@ -140,6 +140,5 @@ * ### Example | ||
/** | ||
* Defines the components that should be compiled as well when | ||
* this component is defined. For each components listed here, | ||
* Angular will create a {@link ComponentFactory ComponentFactory} and store it in the | ||
* {@link ComponentFactoryResolver ComponentFactoryResolver}. | ||
* Specifies a list of components that should be compiled when this module is defined. | ||
* For each component listed here, Angular will create a {@link ComponentFactory} | ||
* and store it in the {@link ComponentFactoryResolver}. | ||
*/ | ||
@@ -154,3 +153,3 @@ entryComponents?: Array<Type<any> | any[]>; | ||
/** | ||
* Elements and properties that are not angular Components nor Directives have to be declared in | ||
* Elements and properties that are not Angular components nor directives have to be declared in | ||
* the schema. | ||
@@ -175,3 +174,3 @@ * | ||
/** | ||
* NgModule decorator and metadata | ||
* NgModule decorator and metadata. | ||
* | ||
@@ -178,0 +177,0 @@ * @stable |
@@ -11,3 +11,3 @@ /** | ||
* Defines a schema that will allow: | ||
* - any non-angular elements with a `-` in their name, | ||
* - any non-Angular elements with a `-` in their name, | ||
* - any properties on elements with a `-` in their name which is the common rule for custom | ||
@@ -30,3 +30,3 @@ * elements. | ||
/** | ||
* NgModule decorator and metadata | ||
* NgModule decorator and metadata. | ||
* | ||
@@ -33,0 +33,0 @@ * @stable |
@@ -37,3 +37,2 @@ /** | ||
} | ||
export declare var VIEW_ENCAPSULATION_VALUES: ViewEncapsulation[]; | ||
/** | ||
@@ -40,0 +39,0 @@ * Metadata properties available for configuring Views. |
@@ -37,3 +37,2 @@ /** | ||
})(ViewEncapsulation || (ViewEncapsulation = {})); | ||
export var VIEW_ENCAPSULATION_VALUES = [ViewEncapsulation.Emulated, ViewEncapsulation.Native, ViewEncapsulation.None]; | ||
/** | ||
@@ -40,0 +39,0 @@ * Metadata properties available for configuring Views. |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":1,"metadata":{"ViewEncapsulation":{"Emulated":0,"Native":1,"None":2},"VIEW_ENCAPSULATION_VALUES":[{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ViewEncapsulation"},"member":"Emulated"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ViewEncapsulation"},"member":"Native"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ViewEncapsulation"},"member":"None"}]}} | ||
{"__symbolic":"module","version":1,"metadata":{"ViewEncapsulation":{"Emulated":0,"Native":1,"None":2}}} |
@@ -13,3 +13,3 @@ /** | ||
}; | ||
import { MapWrapper, SetWrapper, StringMapWrapper } from '../facade/collection'; | ||
import { MapWrapper } from '../facade/collection'; | ||
import { isPresent } from '../facade/lang'; | ||
@@ -68,3 +68,3 @@ import { ReflectorReader } from './reflector_reader'; | ||
var allTypes = MapWrapper.keys(this._injectableInfo); | ||
return allTypes.filter(function (key) { return !SetWrapper.has(_this._usedKeys, key); }); | ||
return allTypes.filter(function (key) { return !_this._usedKeys.has(key); }); | ||
}; | ||
@@ -177,4 +177,4 @@ Reflector.prototype.registerFunction = function (func, funcInfo) { | ||
function _mergeMaps(target, config) { | ||
StringMapWrapper.forEach(config, function (v, k) { return target.set(k, v); }); | ||
Object.keys(config).forEach(function (k) { target.set(k, config[k]); }); | ||
} | ||
//# sourceMappingURL=reflector.js.map |
@@ -38,3 +38,2 @@ /** | ||
* `, | ||
* directives: [NgIf] | ||
* }) | ||
@@ -41,0 +40,0 @@ * export class NgZoneDemo { |
@@ -39,3 +39,2 @@ /** | ||
* `, | ||
* directives: [NgIf] | ||
* }) | ||
@@ -42,0 +41,0 @@ * export class NgZoneDemo { |
@@ -34,4 +34,2 @@ | ||
export declare function getTypeNameForDebugging(type: any): string; | ||
export declare var Math: any; | ||
export declare var Date: DateConstructor; | ||
export declare function isPresent(obj: any): boolean; | ||
@@ -50,5 +48,2 @@ export declare function isBlank(obj: any): boolean; | ||
export declare function stringify(token: any): string; | ||
export declare function serializeEnum(val: any): number; | ||
export declare function deserializeEnum(val: any, values: Map<number, any>): any; | ||
export declare function resolveEnumToken(enumValue: any, val: any): string; | ||
export declare class StringWrapper { | ||
@@ -100,10 +95,2 @@ static fromCharCode(code: number): string; | ||
} | ||
export declare class DateWrapper { | ||
static create(year: number, month?: number, day?: number, hour?: number, minutes?: number, seconds?: number, milliseconds?: number): Date; | ||
static fromISOString(str: string): Date; | ||
static fromMillis(ms: number): Date; | ||
static toMillis(date: Date): number; | ||
static now(): Date; | ||
static toJson(date: Date): string; | ||
} | ||
export declare function setValueOnPath(global: any, path: string, value: any): void; | ||
@@ -110,0 +97,0 @@ export declare function getSymbolIterator(): string | symbol; |
@@ -29,9 +29,4 @@ /** | ||
export function getTypeNameForDebugging(type) { | ||
if (type['name']) { | ||
return type['name']; | ||
} | ||
return typeof type; | ||
return type['name'] || typeof type; | ||
} | ||
export var Math = _global.Math; | ||
export var Date = _global.Date; | ||
// TODO: remove calls to assert in production environment | ||
@@ -93,15 +88,4 @@ // Note: Can't just export this and import in in other files | ||
var newLineIndex = res.indexOf('\n'); | ||
return (newLineIndex === -1) ? res : res.substring(0, newLineIndex); | ||
return newLineIndex === -1 ? res : res.substring(0, newLineIndex); | ||
} | ||
// serialize / deserialize enum exist only for consistency with dart API | ||
// enums in typescript don't need to be serialized | ||
export function serializeEnum(val) { | ||
return val; | ||
} | ||
export function deserializeEnum(val, values) { | ||
return val; | ||
} | ||
export function resolveEnumToken(enumValue, val) { | ||
return enumValue[val]; | ||
} | ||
export var StringWrapper = (function () { | ||
@@ -268,21 +252,2 @@ function StringWrapper() { | ||
}()); | ||
export var DateWrapper = (function () { | ||
function DateWrapper() { | ||
} | ||
DateWrapper.create = function (year, month, day, hour, minutes, seconds, milliseconds) { | ||
if (month === void 0) { month = 1; } | ||
if (day === void 0) { day = 1; } | ||
if (hour === void 0) { hour = 0; } | ||
if (minutes === void 0) { minutes = 0; } | ||
if (seconds === void 0) { seconds = 0; } | ||
if (milliseconds === void 0) { milliseconds = 0; } | ||
return new Date(year, month - 1, day, hour, minutes, seconds, milliseconds); | ||
}; | ||
DateWrapper.fromISOString = function (str) { return new Date(str); }; | ||
DateWrapper.fromMillis = function (ms) { return new Date(ms); }; | ||
DateWrapper.toMillis = function (date) { return date.getTime(); }; | ||
DateWrapper.now = function () { return new Date(); }; | ||
DateWrapper.toJson = function (date) { return date.toJSON(); }; | ||
return DateWrapper; | ||
}()); | ||
export function setValueOnPath(global, path, value) { | ||
@@ -289,0 +254,0 @@ var parts = path.split('.'); |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":1,"metadata":{"Math":{"__symbolic":"error","message":"Reference to a local symbol","line":55,"character":4,"context":{"name":"_global"}},"Date":{"__symbolic":"error","message":"Reference to a local symbol","line":55,"character":4,"context":{"name":"_global"}},"isPresent":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"reference","name":"undefined"}},"right":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"obj"},"right":null}}},"isBlank":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"reference","name":"undefined"}},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"obj"},"right":null}}},"isBoolean":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":87,"character":9},"right":"boolean"}},"isNumber":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":91,"character":9},"right":"number"}},"isString":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":95,"character":9},"right":"string"}},"isFunction":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":99,"character":9},"right":"function"}},"isType":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isFunction"},"arguments":[{"__symbolic":"reference","name":"obj"}]}},"isStringMap":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":107,"character":9},"right":"object"},"right":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"obj"},"right":null}}},"isStrictStringMap":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isStringMap"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Object"},"member":"getPrototypeOf"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"right":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Object"},"member":"getPrototypeOf"},"arguments":[{}]}}}},"isArray":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Array"},"member":"isArray"},"arguments":[{"__symbolic":"reference","name":"obj"}]}},"isDate":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"instanceof","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"reference","name":"Date"}},"right":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isNaN"},"arguments":[{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"obj"},"member":"valueOf"}}]}}}},"serializeEnum":{"__symbolic":"function","parameters":["val"],"value":{"__symbolic":"reference","name":"val"}},"deserializeEnum":{"__symbolic":"function","parameters":["val","values"],"value":{"__symbolic":"reference","name":"val"}},"resolveEnumToken":{"__symbolic":"function","parameters":["enumValue","val"],"value":{"__symbolic":"index","expression":{"__symbolic":"reference","name":"enumValue"},"index":{"__symbolic":"reference","name":"val"}}},"RegExp":{"__symbolic":"error","message":"Reference to a local symbol","line":55,"character":4,"context":{"name":"_global"}},"looseIdentical":{"__symbolic":"function","parameters":["a","b"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"a"},"right":{"__symbolic":"reference","name":"b"}},"right":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":287,"character":20},"right":"number"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":287,"character":45},"right":"number"}},"right":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isNaN"},"arguments":[{"__symbolic":"reference","name":"a"}]}},"right":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isNaN"},"arguments":[{"__symbolic":"reference","name":"b"}]}}}},"getMapKey":{"__symbolic":"function","parameters":["value"],"value":{"__symbolic":"reference","name":"value"}},"normalizeBlank":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"if","condition":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isBlank"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"thenExpression":null,"elseExpression":{"__symbolic":"reference","name":"obj"}}},"normalizeBool":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"if","condition":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isBlank"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"thenExpression":false,"elseExpression":{"__symbolic":"reference","name":"obj"}}},"isJsObject":{"__symbolic":"function","parameters":["o"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"o"},"right":null},"right":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":305,"character":24},"right":"function"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":305,"character":51},"right":"object"}}}},"isPrimitive":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isJsObject"},"arguments":[{"__symbolic":"reference","name":"obj"}]}}},"hasConstructor":{"__symbolic":"function","parameters":["value","type"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"value"},"member":"constructor"},"right":{"__symbolic":"reference","name":"type"}}},"escape":{"__symbolic":"function","parameters":["s"],"value":{"__symbolic":"error","message":"Reference to a local symbol","line":55,"character":4,"context":{"name":"_global"}}},"escapeRegExp":{"__symbolic":"function","parameters":["s"],"value":{"__symbolic":"error","message":"Expression form not supported","line":402,"character":19}}}} | ||
{"__symbolic":"module","version":1,"metadata":{"getTypeNameForDebugging":{"__symbolic":"function","parameters":["type"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"index","expression":{"__symbolic":"reference","name":"type"},"index":"name"},"right":{"__symbolic":"error","message":"Expression form not supported","line":61,"character":25}}},"isPresent":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"reference","name":"undefined"}},"right":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"obj"},"right":null}}},"isBlank":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"reference","name":"undefined"}},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"obj"},"right":null}}},"isBoolean":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":80,"character":9},"right":"boolean"}},"isNumber":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":84,"character":9},"right":"number"}},"isString":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":88,"character":9},"right":"string"}},"isFunction":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":92,"character":9},"right":"function"}},"isType":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isFunction"},"arguments":[{"__symbolic":"reference","name":"obj"}]}},"isStringMap":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":100,"character":9},"right":"object"},"right":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"obj"},"right":null}}},"isStrictStringMap":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isStringMap"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Object"},"member":"getPrototypeOf"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"right":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Object"},"member":"getPrototypeOf"},"arguments":[{}]}}}},"isArray":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Array"},"member":"isArray"},"arguments":[{"__symbolic":"reference","name":"obj"}]}},"isDate":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"instanceof","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"reference","name":"Date"}},"right":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isNaN"},"arguments":[{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"obj"},"member":"valueOf"}}]}}}},"RegExp":{"__symbolic":"error","message":"Reference to a local symbol","line":55,"character":4,"context":{"name":"_global"}},"looseIdentical":{"__symbolic":"function","parameters":["a","b"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"a"},"right":{"__symbolic":"reference","name":"b"}},"right":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":265,"character":20},"right":"number"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":265,"character":45},"right":"number"}},"right":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isNaN"},"arguments":[{"__symbolic":"reference","name":"a"}]}},"right":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isNaN"},"arguments":[{"__symbolic":"reference","name":"b"}]}}}},"getMapKey":{"__symbolic":"function","parameters":["value"],"value":{"__symbolic":"reference","name":"value"}},"normalizeBlank":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"if","condition":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isBlank"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"thenExpression":null,"elseExpression":{"__symbolic":"reference","name":"obj"}}},"normalizeBool":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"if","condition":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isBlank"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"thenExpression":false,"elseExpression":{"__symbolic":"reference","name":"obj"}}},"isJsObject":{"__symbolic":"function","parameters":["o"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"o"},"right":null},"right":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":283,"character":24},"right":"function"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":283,"character":51},"right":"object"}}}},"isPrimitive":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isJsObject"},"arguments":[{"__symbolic":"reference","name":"obj"}]}}},"hasConstructor":{"__symbolic":"function","parameters":["value","type"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"value"},"member":"constructor"},"right":{"__symbolic":"reference","name":"type"}}},"escape":{"__symbolic":"function","parameters":["s"],"value":{"__symbolic":"error","message":"Reference to a local symbol","line":55,"character":4,"context":{"name":"_global"}}},"escapeRegExp":{"__symbolic":"function","parameters":["s"],"value":{"__symbolic":"error","message":"Expression form not supported","line":367,"character":19}}}} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2164516
377
31001