@angular/platform-server
Advanced tools
Comparing version 2.0.0-rc.3 to 2.0.0-rc.4
/** | ||
* @license Angular 2.0.0-rc.3 | ||
* @license Angular 2.0.0-rc.4 | ||
* (c) 2010-2016 Google, Inc. https://angular.io/ | ||
@@ -20,2 +20,9 @@ * License: MIT | ||
var wtfInit = _angular_core.__core_private__.wtfInit; | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
var globalScope; | ||
@@ -399,2 +406,9 @@ if (typeof window === 'undefined') { | ||
var CssSelector = _angular_compiler.__compiler_private__.CssSelector; | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
var parse5 = require('parse5/index'); | ||
@@ -401,0 +415,0 @@ var parser = null; |
@@ -1,1 +0,1 @@ | ||
var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)};!function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?factory(exports,require("@angular/common"),require("@angular/core"),require("@angular/platform-browser"),require("@angular/compiler")):"function"==typeof define&&define.amd?define(["exports","@angular/common","@angular/core","@angular/platform-browser","@angular/compiler"],factory):factory((global.ng=global.ng||{},global.ng.platformServer=global.ng.platformServer||{}),global._angular_common,global.ng.core,global.ng.platformBrowser,global.ng.compiler)}(this,function(exports,_angular_common,_angular_core,_angular_platformBrowser,_angular_compiler){"use strict";function isPresent(obj){return void 0!==obj&&null!==obj}function isBlank(obj){return void 0===obj||null===obj}function isArray(obj){return Array.isArray(obj)}function setValueOnPath(global,path,value){for(var parts=path.split("."),obj=global;parts.length>1;){var name=parts.shift();obj=obj.hasOwnProperty(name)&&isPresent(obj[name])?obj[name]:obj[name]={}}(void 0===obj||null===obj)&&(obj={}),obj[parts.shift()]=value}function _flattenArray(source,target){if(isPresent(source))for(var i=0;i<source.length;i++){var item=source[i];isArray(item)?_flattenArray(item,target):target.push(item)}return target}function _notImplemented(methodName){return new BaseException("This method is not implemented in Parse5DomAdapter: "+methodName)}function notSupported(feature){throw new Error("platform-server does not support '"+feature+"'.")}function initParse5Adapter(){Parse5DomAdapter.makeCurrent(),wtfInit()}function serverPlatform(){return _angular_core.getPlatform()||_angular_core.createPlatform(_angular_core.ReflectiveInjector.resolveAndCreate(SERVER_PLATFORM_PROVIDERS)),_angular_core.assertPlatform(SERVER_PLATFORM_MARKER)}function serverBootstrap(appComponentType,providers){reflector.reflectionCapabilities=new ReflectionCapabilities;var appInjector=_angular_core.ReflectiveInjector.resolveAndCreate(providers,serverPlatform().injector);return _angular_core.coreLoadAndBootstrap(appComponentType,appInjector)}var globalScope,reflector=_angular_core.__core_private__.reflector,ReflectionCapabilities=_angular_core.__core_private__.ReflectionCapabilities,wtfInit=_angular_core.__core_private__.wtfInit;globalScope="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:global:window;var _global=globalScope,Date=_global.Date;_global.assert=function(){};var DateWrapper=function(){function DateWrapper(){}return DateWrapper.create=function(year,month,day,hour,minutes,seconds,milliseconds){return void 0===month&&(month=1),void 0===day&&(day=1),void 0===hour&&(hour=0),void 0===minutes&&(minutes=0),void 0===seconds&&(seconds=0),void 0===milliseconds&&(milliseconds=0),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()},DateWrapper}(),Map$1=_global.Map,Set=_global.Set;!function(){try{if(1===new Map$1([[1,2]]).size)return function(pairs){return new Map$1(pairs)}}catch(e){}return function(pairs){for(var map=new Map$1,i=0;i<pairs.length;i++){var pair=pairs[i];map.set(pair[0],pair[1])}return map}}(),function(){try{if(new Map$1(new Map$1))return function(m){return new Map$1(m)}}catch(e){}return function(m){var map=new Map$1;return m.forEach(function(v,k){map.set(k,v)}),map}}(),function(){return(new Map$1).keys().next?function(m){for(var k,keyIterator=m.keys();!(k=keyIterator.next()).done;)m.set(k.value,null)}:function(m){m.forEach(function(v,k){m.set(k,null)})}}(),function(){try{if((new Map$1).values().next)return function(m,getValues){return getValues?Array.from(m.values()):Array.from(m.keys())}}catch(e){}return function(m,getValues){var res=ListWrapper.createFixedSize(m.size),i=0;return m.forEach(function(v,k){res[i]=getValues?v:k,i++}),res}}();var StringMapWrapper=function(){function StringMapWrapper(){}return StringMapWrapper.create=function(){return{}},StringMapWrapper.contains=function(map,key){return map.hasOwnProperty(key)},StringMapWrapper.get=function(map,key){return map.hasOwnProperty(key)?map[key]:void 0},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).reduce(function(r,a){return r.push(map[a]),r},[])},StringMapWrapper.isEmpty=function(map){for(var prop in map)return!1;return!0},StringMapWrapper.delete=function(map,key){delete map[key]},StringMapWrapper.forEach=function(map,callback){for(var prop in map)map.hasOwnProperty(prop)&&callback(map[prop],prop)},StringMapWrapper.merge=function(m1,m2){var m={};for(var attr in m1)m1.hasOwnProperty(attr)&&(m[attr]=m1[attr]);for(var attr in m2)m2.hasOwnProperty(attr)&&(m[attr]=m2[attr]);return m},StringMapWrapper.equals=function(m1,m2){var k1=Object.keys(m1),k2=Object.keys(m2);if(k1.length!=k2.length)return!1;for(var key,i=0;i<k1.length;i++)if(key=k1[i],m1[key]!==m2[key])return!1;return!0},StringMapWrapper}(),ListWrapper=function(){function ListWrapper(){}return ListWrapper.createFixedSize=function(size){return new Array(size)},ListWrapper.createGrowableSize=function(size){return new Array(size)},ListWrapper.clone=function(array){return array.slice(0)},ListWrapper.forEachWithIndex=function(array,fn){for(var i=0;i<array.length;i++)fn(array[i],i)},ListWrapper.first=function(array){return array?array[0]:null},ListWrapper.last=function(array){return array&&0!=array.length?array[array.length-1]:null},ListWrapper.indexOf=function(array,value,startIndex){return void 0===startIndex&&(startIndex=0),array.indexOf(value,startIndex)},ListWrapper.contains=function(list,el){return-1!==list.indexOf(el)},ListWrapper.reversed=function(array){var a=ListWrapper.clone(array);return a.reverse()},ListWrapper.concat=function(a,b){return a.concat(b)},ListWrapper.insert=function(list,index,value){list.splice(index,0,value)},ListWrapper.removeAt=function(list,index){var res=list[index];return list.splice(index,1),res},ListWrapper.removeAll=function(list,items){for(var i=0;i<items.length;++i){var index=list.indexOf(items[i]);list.splice(index,1)}},ListWrapper.remove=function(list,el){var index=list.indexOf(el);return index>-1?(list.splice(index,1),!0):!1},ListWrapper.clear=function(list){list.length=0},ListWrapper.isEmpty=function(list){return 0==list.length},ListWrapper.fill=function(list,value,start,end){void 0===start&&(start=0),void 0===end&&(end=null),list.fill(value,start,null===end?list.length:end)},ListWrapper.equals=function(a,b){if(a.length!=b.length)return!1;for(var i=0;i<a.length;++i)if(a[i]!==b[i])return!1;return!0},ListWrapper.slice=function(l,from,to){return void 0===from&&(from=0),void 0===to&&(to=null),l.slice(from,null===to?void 0:to)},ListWrapper.splice=function(l,from,length){return l.splice(from,length)},ListWrapper.sort=function(l,compareFn){isPresent(compareFn)?l.sort(compareFn):l.sort()},ListWrapper.toString=function(l){return l.toString()},ListWrapper.toJSON=function(l){return JSON.stringify(l)},ListWrapper.maximum=function(list,predicate){if(0==list.length)return null;for(var solution=null,maxValue=-1/0,index=0;index<list.length;index++){var candidate=list[index];if(!isBlank(candidate)){var candidateValue=predicate(candidate);candidateValue>maxValue&&(solution=candidate,maxValue=candidateValue)}}return solution},ListWrapper.flatten=function(list){var target=[];return _flattenArray(list,target),target},ListWrapper.addAll=function(list,source){for(var i=0;i<source.length;i++)list.push(source[i])},ListWrapper}();!function(){var test=new Set([1,2,3]);return 3===test.size?function(lst){return new Set(lst)}:function(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}}();var DomAdapter=_angular_platformBrowser.__platform_browser_private__.DomAdapter,setRootDomAdapter=_angular_platformBrowser.__platform_browser_private__.setRootDomAdapter,BaseException=function(_super){function BaseException(message){void 0===message&&(message="--"),_super.call(this,message),this.message=message,this.stack=new Error(message).stack}return __extends(BaseException,_super),BaseException.prototype.toString=function(){return this.message},BaseException}(Error),SelectorMatcher=_angular_compiler.__compiler_private__.SelectorMatcher,CssSelector=_angular_compiler.__compiler_private__.CssSelector,parse5=require("parse5/index"),parser=null,serializer=null,treeAdapter=null,_attrToPropMap={"class":"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},defDoc=null,mapProps=["attribs","x-attribsNamespace","x-attribsPrefix"],Parse5DomAdapter=function(_super){function Parse5DomAdapter(){_super.apply(this,arguments)}return __extends(Parse5DomAdapter,_super),Parse5DomAdapter.makeCurrent=function(){parser=new parse5.Parser(parse5.TreeAdapters.htmlparser2),serializer=new parse5.Serializer(parse5.TreeAdapters.htmlparser2),treeAdapter=parser.treeAdapter,setRootDomAdapter(new Parse5DomAdapter)},Parse5DomAdapter.prototype.hasProperty=function(element,name){return _HTMLElementPropertyList.indexOf(name)>-1},Parse5DomAdapter.prototype.setProperty=function(el,name,value){"innerHTML"===name?this.setInnerHTML(el,value):"className"===name?el.attribs.class=el.className=value:el[name]=value},Parse5DomAdapter.prototype.getProperty=function(el,name){return el[name]},Parse5DomAdapter.prototype.logError=function(error){console.error(error)},Parse5DomAdapter.prototype.log=function(error){console.log(error)},Parse5DomAdapter.prototype.logGroup=function(error){console.error(error)},Parse5DomAdapter.prototype.logGroupEnd=function(){},Parse5DomAdapter.prototype.getXHR=function(){return _angular_compiler.XHR},Object.defineProperty(Parse5DomAdapter.prototype,"attrToPropMap",{get:function(){return _attrToPropMap},enumerable:!0,configurable:!0}),Parse5DomAdapter.prototype.query=function(){throw _notImplemented("query")},Parse5DomAdapter.prototype.querySelector=function(el,selector){return this.querySelectorAll(el,selector)[0]},Parse5DomAdapter.prototype.querySelectorAll=function(el,selector){var _this=this,res=[],_recursive=function(result,node,selector,matcher){var cNodes=node.childNodes;if(cNodes&&cNodes.length>0)for(var i=0;i<cNodes.length;i++){var childNode=cNodes[i];_this.elementMatches(childNode,selector,matcher)&&result.push(childNode),_recursive(result,childNode,selector,matcher)}},matcher=new SelectorMatcher;return matcher.addSelectables(CssSelector.parse(selector)),_recursive(res,el,selector,matcher),res},Parse5DomAdapter.prototype.elementMatches=function(node,selector,matcher){if(void 0===matcher&&(matcher=null),this.isElementNode(node)&&"*"===selector)return!0;var result=!1;if(selector&&"#"==selector.charAt(0))result=this.getAttribute(node,"id")==selector.substring(1);else if(selector){var result=!1;null==matcher&&(matcher=new SelectorMatcher,matcher.addSelectables(CssSelector.parse(selector)));var cssSelector=new CssSelector;if(cssSelector.setElement(this.tagName(node)),node.attribs)for(var attrName in node.attribs)cssSelector.addAttribute(attrName,node.attribs[attrName]);for(var classList=this.classList(node),i=0;i<classList.length;i++)cssSelector.addClassName(classList[i]);matcher.match(cssSelector,function(){result=!0})}return result},Parse5DomAdapter.prototype.on=function(el,evt,listener){var listenersMap=el._eventListenersMap;if(isBlank(listenersMap)){var listenersMap=StringMapWrapper.create();el._eventListenersMap=listenersMap}var listeners=StringMapWrapper.get(listenersMap,evt);isBlank(listeners)&&(listeners=[]),listeners.push(listener),StringMapWrapper.set(listenersMap,evt,listeners)},Parse5DomAdapter.prototype.onAndCancel=function(el,evt,listener){return this.on(el,evt,listener),function(){ListWrapper.remove(StringMapWrapper.get(el._eventListenersMap,evt),listener)}},Parse5DomAdapter.prototype.dispatchEvent=function(el,evt){if(isBlank(evt.target)&&(evt.target=el),isPresent(el._eventListenersMap)){var listeners=StringMapWrapper.get(el._eventListenersMap,evt.type);if(isPresent(listeners))for(var i=0;i<listeners.length;i++)listeners[i](evt)}isPresent(el.parent)&&this.dispatchEvent(el.parent,evt),isPresent(el._window)&&this.dispatchEvent(el._window,evt)},Parse5DomAdapter.prototype.createMouseEvent=function(eventType){return this.createEvent(eventType)},Parse5DomAdapter.prototype.createEvent=function(eventType){var evt={type:eventType,defaultPrevented:!1,preventDefault:function(){evt.defaultPrevented=!0}};return evt},Parse5DomAdapter.prototype.preventDefault=function(evt){evt.returnValue=!1},Parse5DomAdapter.prototype.isPrevented=function(evt){return isPresent(evt.returnValue)&&!evt.returnValue},Parse5DomAdapter.prototype.getInnerHTML=function(el){return serializer.serialize(this.templateAwareRoot(el))},Parse5DomAdapter.prototype.getTemplateContent=function(){return null},Parse5DomAdapter.prototype.getOuterHTML=function(el){return serializer.html="",serializer._serializeElement(el),serializer.html},Parse5DomAdapter.prototype.nodeName=function(node){return node.tagName},Parse5DomAdapter.prototype.nodeValue=function(node){return node.nodeValue},Parse5DomAdapter.prototype.type=function(){throw _notImplemented("type")},Parse5DomAdapter.prototype.content=function(node){return node.childNodes[0]},Parse5DomAdapter.prototype.firstChild=function(el){return el.firstChild},Parse5DomAdapter.prototype.nextSibling=function(el){return el.nextSibling},Parse5DomAdapter.prototype.parentElement=function(el){return el.parent},Parse5DomAdapter.prototype.childNodes=function(el){return el.childNodes},Parse5DomAdapter.prototype.childNodesAsList=function(el){for(var childNodes=el.childNodes,res=ListWrapper.createFixedSize(childNodes.length),i=0;i<childNodes.length;i++)res[i]=childNodes[i];return res},Parse5DomAdapter.prototype.clearNodes=function(el){for(;el.childNodes.length>0;)this.remove(el.childNodes[0])},Parse5DomAdapter.prototype.appendChild=function(el,node){this.remove(node),treeAdapter.appendChild(this.templateAwareRoot(el),node)},Parse5DomAdapter.prototype.removeChild=function(el,node){ListWrapper.contains(el.childNodes,node)&&this.remove(node)},Parse5DomAdapter.prototype.remove=function(el){var parent=el.parent;if(parent){var index=parent.childNodes.indexOf(el);parent.childNodes.splice(index,1)}var prev=el.previousSibling,next=el.nextSibling;return prev&&(prev.next=next),next&&(next.prev=prev),el.prev=null,el.next=null,el.parent=null,el},Parse5DomAdapter.prototype.insertBefore=function(el,node){this.remove(node),treeAdapter.insertBefore(el.parent,node,el)},Parse5DomAdapter.prototype.insertAllBefore=function(el,nodes){var _this=this;nodes.forEach(function(n){return _this.insertBefore(el,n)})},Parse5DomAdapter.prototype.insertAfter=function(el,node){el.nextSibling?this.insertBefore(el.nextSibling,node):this.appendChild(el.parent,node)},Parse5DomAdapter.prototype.setInnerHTML=function(el,value){this.clearNodes(el);for(var content=parser.parseFragment(value),i=0;i<content.childNodes.length;i++)treeAdapter.appendChild(el,content.childNodes[i])},Parse5DomAdapter.prototype.getText=function(el,isRecursive){if(this.isTextNode(el))return el.data;if(this.isCommentNode(el))return isRecursive?"":el.data;if(isBlank(el.childNodes)||0==el.childNodes.length)return"";for(var textContent="",i=0;i<el.childNodes.length;i++)textContent+=this.getText(el.childNodes[i],!0);return textContent},Parse5DomAdapter.prototype.setText=function(el,value){this.isTextNode(el)||this.isCommentNode(el)?el.data=value:(this.clearNodes(el),""!==value&&treeAdapter.insertText(el,value))},Parse5DomAdapter.prototype.getValue=function(el){return el.value},Parse5DomAdapter.prototype.setValue=function(el,value){el.value=value},Parse5DomAdapter.prototype.getChecked=function(el){return el.checked},Parse5DomAdapter.prototype.setChecked=function(el,value){el.checked=value},Parse5DomAdapter.prototype.createComment=function(text){return treeAdapter.createCommentNode(text)},Parse5DomAdapter.prototype.createTemplate=function(html){var template=treeAdapter.createElement("template","http://www.w3.org/1999/xhtml",[]),content=parser.parseFragment(html);return treeAdapter.appendChild(template,content),template},Parse5DomAdapter.prototype.createElement=function(tagName){return treeAdapter.createElement(tagName,"http://www.w3.org/1999/xhtml",[])},Parse5DomAdapter.prototype.createElementNS=function(ns,tagName){return treeAdapter.createElement(tagName,ns,[])},Parse5DomAdapter.prototype.createTextNode=function(text){var t=this.createComment(text);return t.type="text",t},Parse5DomAdapter.prototype.createScriptTag=function(attrName,attrValue){return treeAdapter.createElement("script","http://www.w3.org/1999/xhtml",[{name:attrName,value:attrValue}])},Parse5DomAdapter.prototype.createStyleElement=function(css){var style=this.createElement("style");return this.setText(style,css),style},Parse5DomAdapter.prototype.createShadowRoot=function(el){return el.shadowRoot=treeAdapter.createDocumentFragment(),el.shadowRoot.parent=el,el.shadowRoot},Parse5DomAdapter.prototype.getShadowRoot=function(el){return el.shadowRoot},Parse5DomAdapter.prototype.getHost=function(el){return el.host},Parse5DomAdapter.prototype.getDistributedNodes=function(){throw _notImplemented("getDistributedNodes")},Parse5DomAdapter.prototype.clone=function(node){var _recursive=function(node){var nodeClone=Object.create(Object.getPrototypeOf(node));for(var prop in node){var desc=Object.getOwnPropertyDescriptor(node,prop);desc&&"value"in desc&&"object"!=typeof desc.value&&(nodeClone[prop]=node[prop])}nodeClone.parent=null,nodeClone.prev=null,nodeClone.next=null,nodeClone.children=null,mapProps.forEach(function(mapName){if(isPresent(node[mapName])){nodeClone[mapName]={};for(var prop in node[mapName])nodeClone[mapName][prop]=node[mapName][prop]}});var cNodes=node.children;if(cNodes){for(var cNodesClone=new Array(cNodes.length),i=0;i<cNodes.length;i++){var childNode=cNodes[i],childNodeClone=_recursive(childNode);cNodesClone[i]=childNodeClone,i>0&&(childNodeClone.prev=cNodesClone[i-1],cNodesClone[i-1].next=childNodeClone),childNodeClone.parent=nodeClone}nodeClone.children=cNodesClone}return nodeClone};return _recursive(node)},Parse5DomAdapter.prototype.getElementsByClassName=function(element,name){return this.querySelectorAll(element,"."+name)},Parse5DomAdapter.prototype.getElementsByTagName=function(){throw _notImplemented("getElementsByTagName")},Parse5DomAdapter.prototype.classList=function(element){var classAttrValue=null,attributes=element.attribs;return attributes&&attributes.hasOwnProperty("class")&&(classAttrValue=attributes.class),classAttrValue?classAttrValue.trim().split(/\s+/g):[]},Parse5DomAdapter.prototype.addClass=function(element,className){var classList=this.classList(element),index=classList.indexOf(className);-1==index&&(classList.push(className),element.attribs.class=element.className=classList.join(" "))},Parse5DomAdapter.prototype.removeClass=function(element,className){var classList=this.classList(element),index=classList.indexOf(className);index>-1&&(classList.splice(index,1),element.attribs.class=element.className=classList.join(" "))},Parse5DomAdapter.prototype.hasClass=function(element,className){return ListWrapper.contains(this.classList(element),className)},Parse5DomAdapter.prototype.hasStyle=function(element,styleName,styleValue){void 0===styleValue&&(styleValue=null);var value=this.getStyle(element,styleName)||"";return styleValue?value==styleValue:value.length>0},Parse5DomAdapter.prototype._readStyleAttribute=function(element){var styleMap={},attributes=element.attribs;if(attributes&&attributes.hasOwnProperty("style"))for(var styleAttrValue=attributes.style,styleList=styleAttrValue.split(/;+/g),i=0;i<styleList.length;i++)if(styleList[i].length>0){var elems=styleList[i].split(/:+/g);styleMap[elems[0].trim()]=elems[1].trim()}return styleMap},Parse5DomAdapter.prototype._writeStyleAttribute=function(element,styleMap){var styleAttrValue="";for(var key in styleMap){var newValue=styleMap[key];newValue&&newValue.length>0&&(styleAttrValue+=key+":"+styleMap[key]+";")}element.attribs.style=styleAttrValue},Parse5DomAdapter.prototype.setStyle=function(element,styleName,styleValue){var styleMap=this._readStyleAttribute(element);styleMap[styleName]=styleValue,this._writeStyleAttribute(element,styleMap)},Parse5DomAdapter.prototype.removeStyle=function(element,styleName){this.setStyle(element,styleName,null)},Parse5DomAdapter.prototype.getStyle=function(element,styleName){var styleMap=this._readStyleAttribute(element);return styleMap.hasOwnProperty(styleName)?styleMap[styleName]:""},Parse5DomAdapter.prototype.tagName=function(element){return"style"==element.tagName?"STYLE":element.tagName},Parse5DomAdapter.prototype.attributeMap=function(element){for(var res=new Map,elAttrs=treeAdapter.getAttrList(element),i=0;i<elAttrs.length;i++){var attrib=elAttrs[i];res.set(attrib.name,attrib.value)}return res},Parse5DomAdapter.prototype.hasAttribute=function(element,attribute){return element.attribs&&element.attribs.hasOwnProperty(attribute)},Parse5DomAdapter.prototype.hasAttributeNS=function(){throw"not implemented"},Parse5DomAdapter.prototype.getAttribute=function(element,attribute){return element.attribs&&element.attribs.hasOwnProperty(attribute)?element.attribs[attribute]:null},Parse5DomAdapter.prototype.getAttributeNS=function(){throw"not implemented"},Parse5DomAdapter.prototype.setAttribute=function(element,attribute,value){attribute&&(element.attribs[attribute]=value,"class"===attribute&&(element.className=value))},Parse5DomAdapter.prototype.setAttributeNS=function(){throw"not implemented"},Parse5DomAdapter.prototype.removeAttribute=function(element,attribute){attribute&&StringMapWrapper.delete(element.attribs,attribute)},Parse5DomAdapter.prototype.removeAttributeNS=function(){throw"not implemented"},Parse5DomAdapter.prototype.templateAwareRoot=function(el){return this.isTemplateElement(el)?this.content(el):el},Parse5DomAdapter.prototype.createHtmlDocument=function(){var newDoc=treeAdapter.createDocument();newDoc.title="fake title";var head=treeAdapter.createElement("head",null,[]),body=treeAdapter.createElement("body","http://www.w3.org/1999/xhtml",[]);return this.appendChild(newDoc,head),this.appendChild(newDoc,body),StringMapWrapper.set(newDoc,"head",head),StringMapWrapper.set(newDoc,"body",body),StringMapWrapper.set(newDoc,"_window",StringMapWrapper.create()),newDoc},Parse5DomAdapter.prototype.defaultDoc=function(){return null===defDoc&&(defDoc=this.createHtmlDocument()),defDoc},Parse5DomAdapter.prototype.getBoundingClientRect=function(){return{left:0,top:0,width:0,height:0}},Parse5DomAdapter.prototype.getTitle=function(){return this.defaultDoc().title||""},Parse5DomAdapter.prototype.setTitle=function(newTitle){this.defaultDoc().title=newTitle},Parse5DomAdapter.prototype.isTemplateElement=function(el){return this.isElementNode(el)&&"template"===this.tagName(el)},Parse5DomAdapter.prototype.isTextNode=function(node){return treeAdapter.isTextNode(node)},Parse5DomAdapter.prototype.isCommentNode=function(node){return treeAdapter.isCommentNode(node)},Parse5DomAdapter.prototype.isElementNode=function(node){return node?treeAdapter.isElementNode(node):!1},Parse5DomAdapter.prototype.hasShadowRoot=function(node){return isPresent(node.shadowRoot)},Parse5DomAdapter.prototype.isShadowRoot=function(node){return this.getShadowRoot(node)==node},Parse5DomAdapter.prototype.importIntoDoc=function(node){return this.clone(node)},Parse5DomAdapter.prototype.adoptNode=function(node){return node},Parse5DomAdapter.prototype.getHref=function(el){return el.href},Parse5DomAdapter.prototype.resolveAndSetHref=function(el,baseUrl,href){el.href=null==href?baseUrl:baseUrl+"/../"+href},Parse5DomAdapter.prototype._buildRules=function(parsedRules,css){for(var rules=[],i=0;i<parsedRules.length;i++){var parsedRule=parsedRules[i],rule=StringMapWrapper.create();if(StringMapWrapper.set(rule,"cssText",css),StringMapWrapper.set(rule,"style",{content:"",cssText:""}),"rule"==parsedRule.type){if(StringMapWrapper.set(rule,"type",1),StringMapWrapper.set(rule,"selectorText",parsedRule.selectors.join(", ").replace(/\s{2,}/g," ").replace(/\s*~\s*/g," ~ ").replace(/\s*\+\s*/g," + ").replace(/\s*>\s*/g," > ").replace(/\[(\w+)=(\w+)\]/g,'[$1="$2"]')),isBlank(parsedRule.declarations))continue;for(var j=0;j<parsedRule.declarations.length;j++){var declaration=parsedRule.declarations[j];StringMapWrapper.set(StringMapWrapper.get(rule,"style"),declaration.property,declaration.value),StringMapWrapper.get(rule,"style").cssText+=declaration.property+": "+declaration.value+";"}}else"media"==parsedRule.type&&(StringMapWrapper.set(rule,"type",4),StringMapWrapper.set(rule,"media",{mediaText:parsedRule.media}),parsedRule.rules&&StringMapWrapper.set(rule,"cssRules",this._buildRules(parsedRule.rules)));rules.push(rule)}return rules},Parse5DomAdapter.prototype.supportsDOMEvents=function(){return!1},Parse5DomAdapter.prototype.supportsNativeShadowDOM=function(){return!1},Parse5DomAdapter.prototype.getGlobalEventTarget=function(target){return"window"==target?this.defaultDoc()._window:"document"==target?this.defaultDoc():"body"==target?this.defaultDoc().body:void 0},Parse5DomAdapter.prototype.getBaseHref=function(){throw"not implemented"},Parse5DomAdapter.prototype.resetBaseElement=function(){throw"not implemented"},Parse5DomAdapter.prototype.getHistory=function(){throw"not implemented"},Parse5DomAdapter.prototype.getLocation=function(){throw"not implemented"},Parse5DomAdapter.prototype.getUserAgent=function(){return"Fake user agent"},Parse5DomAdapter.prototype.getData=function(el,name){return this.getAttribute(el,"data-"+name)},Parse5DomAdapter.prototype.getComputedStyle=function(){throw"not implemented"},Parse5DomAdapter.prototype.setData=function(el,name,value){this.setAttribute(el,"data-"+name,value)},Parse5DomAdapter.prototype.setGlobalVar=function(path,value){setValueOnPath(_global,path,value)},Parse5DomAdapter.prototype.requestAnimationFrame=function(callback){return setTimeout(callback,0)},Parse5DomAdapter.prototype.cancelAnimationFrame=function(id){clearTimeout(id)},Parse5DomAdapter.prototype.supportsWebAnimation=function(){return!1},Parse5DomAdapter.prototype.performanceNow=function(){return DateWrapper.toMillis(DateWrapper.now())},Parse5DomAdapter.prototype.getAnimationPrefix=function(){return""},Parse5DomAdapter.prototype.getTransitionEnd=function(){return"transitionend"},Parse5DomAdapter.prototype.supportsAnimation=function(){return!0},Parse5DomAdapter.prototype.replaceChild=function(){throw new Error("not implemented")},Parse5DomAdapter.prototype.parse=function(){throw new Error("not implemented")},Parse5DomAdapter.prototype.invoke=function(){throw new Error("not implemented")},Parse5DomAdapter.prototype.getEventKey=function(){throw new Error("not implemented")},Parse5DomAdapter.prototype.supportsCookies=function(){return!1},Parse5DomAdapter.prototype.getCookie=function(){throw new Error("not implemented")},Parse5DomAdapter.prototype.setCookie=function(){throw new Error("not implemented")},Parse5DomAdapter.prototype.animate=function(){throw new Error("not implemented")},Parse5DomAdapter}(DomAdapter),_HTMLElementPropertyList=["webkitEntries","incremental","webkitdirectory","selectionDirection","selectionEnd","selectionStart","labels","validationMessage","validity","willValidate","width","valueAsNumber","valueAsDate","value","useMap","defaultValue","type","step","src","size","required","readOnly","placeholder","pattern","name","multiple","min","minLength","maxLength","max","list","indeterminate","height","formTarget","formNoValidate","formMethod","formEnctype","formAction","files","form","disabled","dirName","checked","defaultChecked","autofocus","autocomplete","alt","align","accept","onautocompleteerror","onautocomplete","onwaiting","onvolumechange","ontoggle","ontimeupdate","onsuspend","onsubmit","onstalled","onshow","onselect","onseeking","onseeked","onscroll","onresize","onreset","onratechange","onprogress","onplaying","onplay","onpause","onmousewheel","onmouseup","onmouseover","onmouseout","onmousemove","onmouseleave","onmouseenter","onmousedown","onloadstart","onloadedmetadata","onloadeddata","onload","onkeyup","onkeypress","onkeydown","oninvalid","oninput","onfocus","onerror","onended","onemptied","ondurationchange","ondrop","ondragstart","ondragover","ondragleave","ondragenter","ondragend","ondrag","ondblclick","oncuechange","oncontextmenu","onclose","onclick","onchange","oncanplaythrough","oncanplay","oncancel","onblur","onabort","spellcheck","isContentEditable","contentEditable","outerText","innerText","accessKey","hidden","webkitdropzone","draggable","tabIndex","dir","translate","lang","title","childElementCount","lastElementChild","firstElementChild","children","onwebkitfullscreenerror","onwebkitfullscreenchange","nextElementSibling","previousElementSibling","onwheel","onselectstart","onsearch","onpaste","oncut","oncopy","onbeforepaste","onbeforecut","onbeforecopy","shadowRoot","dataset","classList","className","outerHTML","innerHTML","scrollHeight","scrollWidth","scrollTop","scrollLeft","clientHeight","clientWidth","clientTop","clientLeft","offsetParent","offsetHeight","offsetWidth","offsetTop","offsetLeft","localName","prefix","namespaceURI","id","style","attributes","tagName","parentElement","textContent","baseURI","ownerDocument","nextSibling","previousSibling","lastChild","firstChild","childNodes","parentNode","nodeType","nodeValue","nodeName","closure_lm_714617","__jsaction"],SERVER_PLATFORM_MARKER=new _angular_core.OpaqueToken("ServerPlatformMarker"),ServerPlatformLocation=function(_super){function ServerPlatformLocation(){_super.apply(this,arguments)}return __extends(ServerPlatformLocation,_super),ServerPlatformLocation.prototype.getBaseHrefFromDOM=function(){throw notSupported("getBaseHrefFromDOM")},ServerPlatformLocation.prototype.onPopState=function(){notSupported("onPopState")},ServerPlatformLocation.prototype.onHashChange=function(){notSupported("onHashChange")},Object.defineProperty(ServerPlatformLocation.prototype,"pathname",{get:function(){throw notSupported("pathname")},enumerable:!0,configurable:!0}),Object.defineProperty(ServerPlatformLocation.prototype,"search",{get:function(){throw notSupported("search")},enumerable:!0,configurable:!0}),Object.defineProperty(ServerPlatformLocation.prototype,"hash",{get:function(){throw notSupported("hash")},enumerable:!0,configurable:!0}),ServerPlatformLocation.prototype.replaceState=function(){notSupported("replaceState")},ServerPlatformLocation.prototype.pushState=function(){notSupported("pushState")},ServerPlatformLocation.prototype.forward=function(){notSupported("forward")},ServerPlatformLocation.prototype.back=function(){notSupported("back")},ServerPlatformLocation}(_angular_common.PlatformLocation),SERVER_PLATFORM_PROVIDERS=[{provide:SERVER_PLATFORM_MARKER,useValue:!0},_angular_core.PLATFORM_COMMON_PROVIDERS,{provide:_angular_core.PLATFORM_INITIALIZER,useValue:initParse5Adapter,multi:!0},{provide:_angular_common.PlatformLocation,useClass:ServerPlatformLocation}];exports.SERVER_PLATFORM_PROVIDERS=SERVER_PLATFORM_PROVIDERS,exports.serverBootstrap=serverBootstrap,exports.serverPlatform=serverPlatform}); | ||
var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)};!function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?factory(exports,require("@angular/common"),require("@angular/core"),require("@angular/platform-browser"),require("@angular/compiler")):"function"==typeof define&&define.amd?define(["exports","@angular/common","@angular/core","@angular/platform-browser","@angular/compiler"],factory):factory((global.ng=global.ng||{},global.ng.platformServer=global.ng.platformServer||{}),global._angular_common,global.ng.core,global.ng.platformBrowser,global.ng.compiler)}(this,function(exports,_angular_common,_angular_core,_angular_platformBrowser,_angular_compiler){"use strict";function isPresent(obj){return void 0!==obj&&null!==obj}function isBlank(obj){return void 0===obj||null===obj}function isArray(obj){return Array.isArray(obj)}function setValueOnPath(global,path,value){for(var parts=path.split("."),obj=global;parts.length>1;){var name=parts.shift();obj=obj.hasOwnProperty(name)&&isPresent(obj[name])?obj[name]:obj[name]={}}void 0!==obj&&null!==obj||(obj={}),obj[parts.shift()]=value}function _flattenArray(source,target){if(isPresent(source))for(var i=0;i<source.length;i++){var item=source[i];isArray(item)?_flattenArray(item,target):target.push(item)}return target}function _notImplemented(methodName){return new BaseException("This method is not implemented in Parse5DomAdapter: "+methodName)}function notSupported(feature){throw new Error("platform-server does not support '"+feature+"'.")}function initParse5Adapter(){Parse5DomAdapter.makeCurrent(),wtfInit()}function serverPlatform(){return _angular_core.getPlatform()||_angular_core.createPlatform(_angular_core.ReflectiveInjector.resolveAndCreate(SERVER_PLATFORM_PROVIDERS)),_angular_core.assertPlatform(SERVER_PLATFORM_MARKER)}function serverBootstrap(appComponentType,providers){reflector.reflectionCapabilities=new ReflectionCapabilities;var appInjector=_angular_core.ReflectiveInjector.resolveAndCreate(providers,serverPlatform().injector);return _angular_core.coreLoadAndBootstrap(appComponentType,appInjector)}var globalScope,reflector=_angular_core.__core_private__.reflector,ReflectionCapabilities=_angular_core.__core_private__.ReflectionCapabilities,wtfInit=_angular_core.__core_private__.wtfInit;globalScope="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:global:window;var _global=globalScope,Date=_global.Date;_global.assert=function(condition){};var DateWrapper=function(){function DateWrapper(){}return DateWrapper.create=function(year,month,day,hour,minutes,seconds,milliseconds){return void 0===month&&(month=1),void 0===day&&(day=1),void 0===hour&&(hour=0),void 0===minutes&&(minutes=0),void 0===seconds&&(seconds=0),void 0===milliseconds&&(milliseconds=0),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()},DateWrapper}(),Map$1=_global.Map,Set=_global.Set,StringMapWrapper=(function(){try{if(1===new Map$1([[1,2]]).size)return function(pairs){return new Map$1(pairs)}}catch(e){}return function(pairs){for(var map=new Map$1,i=0;i<pairs.length;i++){var pair=pairs[i];map.set(pair[0],pair[1])}return map}}(),function(){try{if(new Map$1(new Map$1))return function(m){return new Map$1(m)}}catch(e){}return function(m){var map=new Map$1;return m.forEach(function(v,k){map.set(k,v)}),map}}(),function(){return(new Map$1).keys().next?function(m){for(var k,keyIterator=m.keys();!(k=keyIterator.next()).done;)m.set(k.value,null)}:function(m){m.forEach(function(v,k){m.set(k,null)})}}(),function(){try{if((new Map$1).values().next)return function(m,getValues){return getValues?Array.from(m.values()):Array.from(m.keys())}}catch(e){}return function(m,getValues){var res=ListWrapper.createFixedSize(m.size),i=0;return m.forEach(function(v,k){res[i]=getValues?v:k,i++}),res}}(),function(){function StringMapWrapper(){}return StringMapWrapper.create=function(){return{}},StringMapWrapper.contains=function(map,key){return map.hasOwnProperty(key)},StringMapWrapper.get=function(map,key){return map.hasOwnProperty(key)?map[key]:void 0},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).reduce(function(r,a){return r.push(map[a]),r},[])},StringMapWrapper.isEmpty=function(map){for(var prop in map)return!1;return!0},StringMapWrapper.delete=function(map,key){delete map[key]},StringMapWrapper.forEach=function(map,callback){for(var prop in map)map.hasOwnProperty(prop)&&callback(map[prop],prop)},StringMapWrapper.merge=function(m1,m2){var m={};for(var attr in m1)m1.hasOwnProperty(attr)&&(m[attr]=m1[attr]);for(var attr in m2)m2.hasOwnProperty(attr)&&(m[attr]=m2[attr]);return m},StringMapWrapper.equals=function(m1,m2){var k1=Object.keys(m1),k2=Object.keys(m2);if(k1.length!=k2.length)return!1;for(var key,i=0;i<k1.length;i++)if(key=k1[i],m1[key]!==m2[key])return!1;return!0},StringMapWrapper}()),ListWrapper=function(){function ListWrapper(){}return ListWrapper.createFixedSize=function(size){return new Array(size)},ListWrapper.createGrowableSize=function(size){return new Array(size)},ListWrapper.clone=function(array){return array.slice(0)},ListWrapper.forEachWithIndex=function(array,fn){for(var i=0;i<array.length;i++)fn(array[i],i)},ListWrapper.first=function(array){return array?array[0]:null},ListWrapper.last=function(array){return array&&0!=array.length?array[array.length-1]:null},ListWrapper.indexOf=function(array,value,startIndex){return void 0===startIndex&&(startIndex=0),array.indexOf(value,startIndex)},ListWrapper.contains=function(list,el){return list.indexOf(el)!==-1},ListWrapper.reversed=function(array){var a=ListWrapper.clone(array);return a.reverse()},ListWrapper.concat=function(a,b){return a.concat(b)},ListWrapper.insert=function(list,index,value){list.splice(index,0,value)},ListWrapper.removeAt=function(list,index){var res=list[index];return list.splice(index,1),res},ListWrapper.removeAll=function(list,items){for(var i=0;i<items.length;++i){var index=list.indexOf(items[i]);list.splice(index,1)}},ListWrapper.remove=function(list,el){var index=list.indexOf(el);return index>-1&&(list.splice(index,1),!0)},ListWrapper.clear=function(list){list.length=0},ListWrapper.isEmpty=function(list){return 0==list.length},ListWrapper.fill=function(list,value,start,end){void 0===start&&(start=0),void 0===end&&(end=null),list.fill(value,start,null===end?list.length:end)},ListWrapper.equals=function(a,b){if(a.length!=b.length)return!1;for(var i=0;i<a.length;++i)if(a[i]!==b[i])return!1;return!0},ListWrapper.slice=function(l,from,to){return void 0===from&&(from=0),void 0===to&&(to=null),l.slice(from,null===to?void 0:to)},ListWrapper.splice=function(l,from,length){return l.splice(from,length)},ListWrapper.sort=function(l,compareFn){isPresent(compareFn)?l.sort(compareFn):l.sort()},ListWrapper.toString=function(l){return l.toString()},ListWrapper.toJSON=function(l){return JSON.stringify(l)},ListWrapper.maximum=function(list,predicate){if(0==list.length)return null;for(var solution=null,maxValue=-(1/0),index=0;index<list.length;index++){var candidate=list[index];if(!isBlank(candidate)){var candidateValue=predicate(candidate);candidateValue>maxValue&&(solution=candidate,maxValue=candidateValue)}}return solution},ListWrapper.flatten=function(list){var target=[];return _flattenArray(list,target),target},ListWrapper.addAll=function(list,source){for(var i=0;i<source.length;i++)list.push(source[i])},ListWrapper}(),DomAdapter=(function(){var test=new Set([1,2,3]);return 3===test.size?function(lst){return new Set(lst)}:function(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}}(),_angular_platformBrowser.__platform_browser_private__.DomAdapter),setRootDomAdapter=_angular_platformBrowser.__platform_browser_private__.setRootDomAdapter,BaseException=function(_super){function BaseException(message){void 0===message&&(message="--"),_super.call(this,message),this.message=message,this.stack=new Error(message).stack}return __extends(BaseException,_super),BaseException.prototype.toString=function(){return this.message},BaseException}(Error),SelectorMatcher=_angular_compiler.__compiler_private__.SelectorMatcher,CssSelector=_angular_compiler.__compiler_private__.CssSelector,parse5=require("parse5/index"),parser=null,serializer=null,treeAdapter=null,_attrToPropMap={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},defDoc=null,mapProps=["attribs","x-attribsNamespace","x-attribsPrefix"],Parse5DomAdapter=function(_super){function Parse5DomAdapter(){_super.apply(this,arguments)}return __extends(Parse5DomAdapter,_super),Parse5DomAdapter.makeCurrent=function(){parser=new parse5.Parser(parse5.TreeAdapters.htmlparser2),serializer=new parse5.Serializer(parse5.TreeAdapters.htmlparser2),treeAdapter=parser.treeAdapter,setRootDomAdapter(new Parse5DomAdapter)},Parse5DomAdapter.prototype.hasProperty=function(element,name){return _HTMLElementPropertyList.indexOf(name)>-1},Parse5DomAdapter.prototype.setProperty=function(el,name,value){"innerHTML"===name?this.setInnerHTML(el,value):"className"===name?el.attribs.class=el.className=value:el[name]=value},Parse5DomAdapter.prototype.getProperty=function(el,name){return el[name]},Parse5DomAdapter.prototype.logError=function(error){console.error(error)},Parse5DomAdapter.prototype.log=function(error){console.log(error)},Parse5DomAdapter.prototype.logGroup=function(error){console.error(error)},Parse5DomAdapter.prototype.logGroupEnd=function(){},Parse5DomAdapter.prototype.getXHR=function(){return _angular_compiler.XHR},Object.defineProperty(Parse5DomAdapter.prototype,"attrToPropMap",{get:function(){return _attrToPropMap},enumerable:!0,configurable:!0}),Parse5DomAdapter.prototype.query=function(selector){throw _notImplemented("query")},Parse5DomAdapter.prototype.querySelector=function(el,selector){return this.querySelectorAll(el,selector)[0]},Parse5DomAdapter.prototype.querySelectorAll=function(el,selector){var _this=this,res=[],_recursive=function(result,node,selector,matcher){var cNodes=node.childNodes;if(cNodes&&cNodes.length>0)for(var i=0;i<cNodes.length;i++){var childNode=cNodes[i];_this.elementMatches(childNode,selector,matcher)&&result.push(childNode),_recursive(result,childNode,selector,matcher)}},matcher=new SelectorMatcher;return matcher.addSelectables(CssSelector.parse(selector)),_recursive(res,el,selector,matcher),res},Parse5DomAdapter.prototype.elementMatches=function(node,selector,matcher){if(void 0===matcher&&(matcher=null),this.isElementNode(node)&&"*"===selector)return!0;var result=!1;if(selector&&"#"==selector.charAt(0))result=this.getAttribute(node,"id")==selector.substring(1);else if(selector){var result=!1;null==matcher&&(matcher=new SelectorMatcher,matcher.addSelectables(CssSelector.parse(selector)));var cssSelector=new CssSelector;if(cssSelector.setElement(this.tagName(node)),node.attribs)for(var attrName in node.attribs)cssSelector.addAttribute(attrName,node.attribs[attrName]);for(var classList=this.classList(node),i=0;i<classList.length;i++)cssSelector.addClassName(classList[i]);matcher.match(cssSelector,function(selector,cb){result=!0})}return result},Parse5DomAdapter.prototype.on=function(el,evt,listener){var listenersMap=el._eventListenersMap;if(isBlank(listenersMap)){var listenersMap=StringMapWrapper.create();el._eventListenersMap=listenersMap}var listeners=StringMapWrapper.get(listenersMap,evt);isBlank(listeners)&&(listeners=[]),listeners.push(listener),StringMapWrapper.set(listenersMap,evt,listeners)},Parse5DomAdapter.prototype.onAndCancel=function(el,evt,listener){return this.on(el,evt,listener),function(){ListWrapper.remove(StringMapWrapper.get(el._eventListenersMap,evt),listener)}},Parse5DomAdapter.prototype.dispatchEvent=function(el,evt){if(isBlank(evt.target)&&(evt.target=el),isPresent(el._eventListenersMap)){var listeners=StringMapWrapper.get(el._eventListenersMap,evt.type);if(isPresent(listeners))for(var i=0;i<listeners.length;i++)listeners[i](evt)}isPresent(el.parent)&&this.dispatchEvent(el.parent,evt),isPresent(el._window)&&this.dispatchEvent(el._window,evt)},Parse5DomAdapter.prototype.createMouseEvent=function(eventType){return this.createEvent(eventType)},Parse5DomAdapter.prototype.createEvent=function(eventType){var evt={type:eventType,defaultPrevented:!1,preventDefault:function(){evt.defaultPrevented=!0}};return evt},Parse5DomAdapter.prototype.preventDefault=function(evt){evt.returnValue=!1},Parse5DomAdapter.prototype.isPrevented=function(evt){return isPresent(evt.returnValue)&&!evt.returnValue},Parse5DomAdapter.prototype.getInnerHTML=function(el){return serializer.serialize(this.templateAwareRoot(el))},Parse5DomAdapter.prototype.getTemplateContent=function(el){return null},Parse5DomAdapter.prototype.getOuterHTML=function(el){return serializer.html="",serializer._serializeElement(el),serializer.html},Parse5DomAdapter.prototype.nodeName=function(node){return node.tagName},Parse5DomAdapter.prototype.nodeValue=function(node){return node.nodeValue},Parse5DomAdapter.prototype.type=function(node){throw _notImplemented("type")},Parse5DomAdapter.prototype.content=function(node){return node.childNodes[0]},Parse5DomAdapter.prototype.firstChild=function(el){return el.firstChild},Parse5DomAdapter.prototype.nextSibling=function(el){return el.nextSibling},Parse5DomAdapter.prototype.parentElement=function(el){return el.parent},Parse5DomAdapter.prototype.childNodes=function(el){return el.childNodes},Parse5DomAdapter.prototype.childNodesAsList=function(el){for(var childNodes=el.childNodes,res=ListWrapper.createFixedSize(childNodes.length),i=0;i<childNodes.length;i++)res[i]=childNodes[i];return res},Parse5DomAdapter.prototype.clearNodes=function(el){for(;el.childNodes.length>0;)this.remove(el.childNodes[0])},Parse5DomAdapter.prototype.appendChild=function(el,node){this.remove(node),treeAdapter.appendChild(this.templateAwareRoot(el),node)},Parse5DomAdapter.prototype.removeChild=function(el,node){ListWrapper.contains(el.childNodes,node)&&this.remove(node)},Parse5DomAdapter.prototype.remove=function(el){var parent=el.parent;if(parent){var index=parent.childNodes.indexOf(el);parent.childNodes.splice(index,1)}var prev=el.previousSibling,next=el.nextSibling;return prev&&(prev.next=next),next&&(next.prev=prev),el.prev=null,el.next=null,el.parent=null,el},Parse5DomAdapter.prototype.insertBefore=function(el,node){this.remove(node),treeAdapter.insertBefore(el.parent,node,el)},Parse5DomAdapter.prototype.insertAllBefore=function(el,nodes){var _this=this;nodes.forEach(function(n){return _this.insertBefore(el,n)})},Parse5DomAdapter.prototype.insertAfter=function(el,node){el.nextSibling?this.insertBefore(el.nextSibling,node):this.appendChild(el.parent,node)},Parse5DomAdapter.prototype.setInnerHTML=function(el,value){this.clearNodes(el);for(var content=parser.parseFragment(value),i=0;i<content.childNodes.length;i++)treeAdapter.appendChild(el,content.childNodes[i])},Parse5DomAdapter.prototype.getText=function(el,isRecursive){if(this.isTextNode(el))return el.data;if(this.isCommentNode(el))return isRecursive?"":el.data;if(isBlank(el.childNodes)||0==el.childNodes.length)return"";for(var textContent="",i=0;i<el.childNodes.length;i++)textContent+=this.getText(el.childNodes[i],!0);return textContent},Parse5DomAdapter.prototype.setText=function(el,value){this.isTextNode(el)||this.isCommentNode(el)?el.data=value:(this.clearNodes(el),""!==value&&treeAdapter.insertText(el,value))},Parse5DomAdapter.prototype.getValue=function(el){return el.value},Parse5DomAdapter.prototype.setValue=function(el,value){el.value=value},Parse5DomAdapter.prototype.getChecked=function(el){return el.checked},Parse5DomAdapter.prototype.setChecked=function(el,value){el.checked=value},Parse5DomAdapter.prototype.createComment=function(text){return treeAdapter.createCommentNode(text)},Parse5DomAdapter.prototype.createTemplate=function(html){var template=treeAdapter.createElement("template","http://www.w3.org/1999/xhtml",[]),content=parser.parseFragment(html);return treeAdapter.appendChild(template,content),template},Parse5DomAdapter.prototype.createElement=function(tagName){return treeAdapter.createElement(tagName,"http://www.w3.org/1999/xhtml",[])},Parse5DomAdapter.prototype.createElementNS=function(ns,tagName){return treeAdapter.createElement(tagName,ns,[])},Parse5DomAdapter.prototype.createTextNode=function(text){var t=this.createComment(text);return t.type="text",t},Parse5DomAdapter.prototype.createScriptTag=function(attrName,attrValue){return treeAdapter.createElement("script","http://www.w3.org/1999/xhtml",[{name:attrName,value:attrValue}])},Parse5DomAdapter.prototype.createStyleElement=function(css){var style=this.createElement("style");return this.setText(style,css),style},Parse5DomAdapter.prototype.createShadowRoot=function(el){return el.shadowRoot=treeAdapter.createDocumentFragment(),el.shadowRoot.parent=el,el.shadowRoot},Parse5DomAdapter.prototype.getShadowRoot=function(el){return el.shadowRoot},Parse5DomAdapter.prototype.getHost=function(el){return el.host},Parse5DomAdapter.prototype.getDistributedNodes=function(el){throw _notImplemented("getDistributedNodes")},Parse5DomAdapter.prototype.clone=function(node){var _recursive=function(node){var nodeClone=Object.create(Object.getPrototypeOf(node));for(var prop in node){var desc=Object.getOwnPropertyDescriptor(node,prop);desc&&"value"in desc&&"object"!=typeof desc.value&&(nodeClone[prop]=node[prop])}nodeClone.parent=null,nodeClone.prev=null,nodeClone.next=null,nodeClone.children=null,mapProps.forEach(function(mapName){if(isPresent(node[mapName])){nodeClone[mapName]={};for(var prop in node[mapName])nodeClone[mapName][prop]=node[mapName][prop]}});var cNodes=node.children;if(cNodes){for(var cNodesClone=new Array(cNodes.length),i=0;i<cNodes.length;i++){var childNode=cNodes[i],childNodeClone=_recursive(childNode);cNodesClone[i]=childNodeClone,i>0&&(childNodeClone.prev=cNodesClone[i-1],cNodesClone[i-1].next=childNodeClone),childNodeClone.parent=nodeClone}nodeClone.children=cNodesClone}return nodeClone};return _recursive(node)},Parse5DomAdapter.prototype.getElementsByClassName=function(element,name){return this.querySelectorAll(element,"."+name)},Parse5DomAdapter.prototype.getElementsByTagName=function(element,name){throw _notImplemented("getElementsByTagName")},Parse5DomAdapter.prototype.classList=function(element){var classAttrValue=null,attributes=element.attribs;return attributes&&attributes.hasOwnProperty("class")&&(classAttrValue=attributes.class),classAttrValue?classAttrValue.trim().split(/\s+/g):[]},Parse5DomAdapter.prototype.addClass=function(element,className){var classList=this.classList(element),index=classList.indexOf(className);index==-1&&(classList.push(className),element.attribs.class=element.className=classList.join(" "))},Parse5DomAdapter.prototype.removeClass=function(element,className){var classList=this.classList(element),index=classList.indexOf(className);index>-1&&(classList.splice(index,1),element.attribs.class=element.className=classList.join(" "))},Parse5DomAdapter.prototype.hasClass=function(element,className){return ListWrapper.contains(this.classList(element),className)},Parse5DomAdapter.prototype.hasStyle=function(element,styleName,styleValue){void 0===styleValue&&(styleValue=null);var value=this.getStyle(element,styleName)||"";return styleValue?value==styleValue:value.length>0},Parse5DomAdapter.prototype._readStyleAttribute=function(element){var styleMap={},attributes=element.attribs;if(attributes&&attributes.hasOwnProperty("style"))for(var styleAttrValue=attributes.style,styleList=styleAttrValue.split(/;+/g),i=0;i<styleList.length;i++)if(styleList[i].length>0){var elems=styleList[i].split(/:+/g);styleMap[elems[0].trim()]=elems[1].trim()}return styleMap},Parse5DomAdapter.prototype._writeStyleAttribute=function(element,styleMap){var styleAttrValue="";for(var key in styleMap){var newValue=styleMap[key];newValue&&newValue.length>0&&(styleAttrValue+=key+":"+styleMap[key]+";")}element.attribs.style=styleAttrValue},Parse5DomAdapter.prototype.setStyle=function(element,styleName,styleValue){var styleMap=this._readStyleAttribute(element);styleMap[styleName]=styleValue,this._writeStyleAttribute(element,styleMap)},Parse5DomAdapter.prototype.removeStyle=function(element,styleName){this.setStyle(element,styleName,null)},Parse5DomAdapter.prototype.getStyle=function(element,styleName){var styleMap=this._readStyleAttribute(element);return styleMap.hasOwnProperty(styleName)?styleMap[styleName]:""},Parse5DomAdapter.prototype.tagName=function(element){return"style"==element.tagName?"STYLE":element.tagName},Parse5DomAdapter.prototype.attributeMap=function(element){for(var res=new Map,elAttrs=treeAdapter.getAttrList(element),i=0;i<elAttrs.length;i++){var attrib=elAttrs[i];res.set(attrib.name,attrib.value)}return res},Parse5DomAdapter.prototype.hasAttribute=function(element,attribute){return element.attribs&&element.attribs.hasOwnProperty(attribute)},Parse5DomAdapter.prototype.hasAttributeNS=function(element,ns,attribute){throw"not implemented"},Parse5DomAdapter.prototype.getAttribute=function(element,attribute){return element.attribs&&element.attribs.hasOwnProperty(attribute)?element.attribs[attribute]:null},Parse5DomAdapter.prototype.getAttributeNS=function(element,ns,attribute){throw"not implemented"},Parse5DomAdapter.prototype.setAttribute=function(element,attribute,value){attribute&&(element.attribs[attribute]=value,"class"===attribute&&(element.className=value))},Parse5DomAdapter.prototype.setAttributeNS=function(element,ns,attribute,value){throw"not implemented"},Parse5DomAdapter.prototype.removeAttribute=function(element,attribute){attribute&&StringMapWrapper.delete(element.attribs,attribute)},Parse5DomAdapter.prototype.removeAttributeNS=function(element,ns,name){throw"not implemented"},Parse5DomAdapter.prototype.templateAwareRoot=function(el){return this.isTemplateElement(el)?this.content(el):el},Parse5DomAdapter.prototype.createHtmlDocument=function(){var newDoc=treeAdapter.createDocument();newDoc.title="fake title";var head=treeAdapter.createElement("head",null,[]),body=treeAdapter.createElement("body","http://www.w3.org/1999/xhtml",[]);return this.appendChild(newDoc,head),this.appendChild(newDoc,body),StringMapWrapper.set(newDoc,"head",head),StringMapWrapper.set(newDoc,"body",body),StringMapWrapper.set(newDoc,"_window",StringMapWrapper.create()),newDoc},Parse5DomAdapter.prototype.defaultDoc=function(){return null===defDoc&&(defDoc=this.createHtmlDocument()),defDoc},Parse5DomAdapter.prototype.getBoundingClientRect=function(el){return{left:0,top:0,width:0,height:0}},Parse5DomAdapter.prototype.getTitle=function(){return this.defaultDoc().title||""},Parse5DomAdapter.prototype.setTitle=function(newTitle){this.defaultDoc().title=newTitle},Parse5DomAdapter.prototype.isTemplateElement=function(el){return this.isElementNode(el)&&"template"===this.tagName(el)},Parse5DomAdapter.prototype.isTextNode=function(node){return treeAdapter.isTextNode(node)},Parse5DomAdapter.prototype.isCommentNode=function(node){return treeAdapter.isCommentNode(node)},Parse5DomAdapter.prototype.isElementNode=function(node){return!!node&&treeAdapter.isElementNode(node)},Parse5DomAdapter.prototype.hasShadowRoot=function(node){return isPresent(node.shadowRoot)},Parse5DomAdapter.prototype.isShadowRoot=function(node){return this.getShadowRoot(node)==node},Parse5DomAdapter.prototype.importIntoDoc=function(node){return this.clone(node)},Parse5DomAdapter.prototype.adoptNode=function(node){return node},Parse5DomAdapter.prototype.getHref=function(el){return el.href},Parse5DomAdapter.prototype.resolveAndSetHref=function(el,baseUrl,href){null==href?el.href=baseUrl:el.href=baseUrl+"/../"+href},Parse5DomAdapter.prototype._buildRules=function(parsedRules,css){for(var rules=[],i=0;i<parsedRules.length;i++){var parsedRule=parsedRules[i],rule=StringMapWrapper.create();if(StringMapWrapper.set(rule,"cssText",css),StringMapWrapper.set(rule,"style",{content:"",cssText:""}),"rule"==parsedRule.type){if(StringMapWrapper.set(rule,"type",1),StringMapWrapper.set(rule,"selectorText",parsedRule.selectors.join(", ").replace(/\s{2,}/g," ").replace(/\s*~\s*/g," ~ ").replace(/\s*\+\s*/g," + ").replace(/\s*>\s*/g," > ").replace(/\[(\w+)=(\w+)\]/g,'[$1="$2"]')),isBlank(parsedRule.declarations))continue;for(var j=0;j<parsedRule.declarations.length;j++){var declaration=parsedRule.declarations[j];StringMapWrapper.set(StringMapWrapper.get(rule,"style"),declaration.property,declaration.value),StringMapWrapper.get(rule,"style").cssText+=declaration.property+": "+declaration.value+";"}}else"media"==parsedRule.type&&(StringMapWrapper.set(rule,"type",4),StringMapWrapper.set(rule,"media",{mediaText:parsedRule.media}),parsedRule.rules&&StringMapWrapper.set(rule,"cssRules",this._buildRules(parsedRule.rules)));rules.push(rule)}return rules},Parse5DomAdapter.prototype.supportsDOMEvents=function(){return!1},Parse5DomAdapter.prototype.supportsNativeShadowDOM=function(){return!1},Parse5DomAdapter.prototype.getGlobalEventTarget=function(target){return"window"==target?this.defaultDoc()._window:"document"==target?this.defaultDoc():"body"==target?this.defaultDoc().body:void 0},Parse5DomAdapter.prototype.getBaseHref=function(){throw"not implemented"},Parse5DomAdapter.prototype.resetBaseElement=function(){throw"not implemented"},Parse5DomAdapter.prototype.getHistory=function(){throw"not implemented"},Parse5DomAdapter.prototype.getLocation=function(){throw"not implemented"},Parse5DomAdapter.prototype.getUserAgent=function(){return"Fake user agent"},Parse5DomAdapter.prototype.getData=function(el,name){return this.getAttribute(el,"data-"+name)},Parse5DomAdapter.prototype.getComputedStyle=function(el){throw"not implemented"},Parse5DomAdapter.prototype.setData=function(el,name,value){this.setAttribute(el,"data-"+name,value)},Parse5DomAdapter.prototype.setGlobalVar=function(path,value){setValueOnPath(_global,path,value)},Parse5DomAdapter.prototype.requestAnimationFrame=function(callback){return setTimeout(callback,0)},Parse5DomAdapter.prototype.cancelAnimationFrame=function(id){clearTimeout(id)},Parse5DomAdapter.prototype.supportsWebAnimation=function(){return!1},Parse5DomAdapter.prototype.performanceNow=function(){return DateWrapper.toMillis(DateWrapper.now())},Parse5DomAdapter.prototype.getAnimationPrefix=function(){return""},Parse5DomAdapter.prototype.getTransitionEnd=function(){return"transitionend"},Parse5DomAdapter.prototype.supportsAnimation=function(){return!0},Parse5DomAdapter.prototype.replaceChild=function(el,newNode,oldNode){throw new Error("not implemented")},Parse5DomAdapter.prototype.parse=function(templateHtml){throw new Error("not implemented")},Parse5DomAdapter.prototype.invoke=function(el,methodName,args){throw new Error("not implemented")},Parse5DomAdapter.prototype.getEventKey=function(event){throw new Error("not implemented")},Parse5DomAdapter.prototype.supportsCookies=function(){return!1},Parse5DomAdapter.prototype.getCookie=function(name){throw new Error("not implemented")},Parse5DomAdapter.prototype.setCookie=function(name,value){throw new Error("not implemented")},Parse5DomAdapter.prototype.animate=function(element,keyframes,options){throw new Error("not implemented")},Parse5DomAdapter}(DomAdapter),_HTMLElementPropertyList=["webkitEntries","incremental","webkitdirectory","selectionDirection","selectionEnd","selectionStart","labels","validationMessage","validity","willValidate","width","valueAsNumber","valueAsDate","value","useMap","defaultValue","type","step","src","size","required","readOnly","placeholder","pattern","name","multiple","min","minLength","maxLength","max","list","indeterminate","height","formTarget","formNoValidate","formMethod","formEnctype","formAction","files","form","disabled","dirName","checked","defaultChecked","autofocus","autocomplete","alt","align","accept","onautocompleteerror","onautocomplete","onwaiting","onvolumechange","ontoggle","ontimeupdate","onsuspend","onsubmit","onstalled","onshow","onselect","onseeking","onseeked","onscroll","onresize","onreset","onratechange","onprogress","onplaying","onplay","onpause","onmousewheel","onmouseup","onmouseover","onmouseout","onmousemove","onmouseleave","onmouseenter","onmousedown","onloadstart","onloadedmetadata","onloadeddata","onload","onkeyup","onkeypress","onkeydown","oninvalid","oninput","onfocus","onerror","onended","onemptied","ondurationchange","ondrop","ondragstart","ondragover","ondragleave","ondragenter","ondragend","ondrag","ondblclick","oncuechange","oncontextmenu","onclose","onclick","onchange","oncanplaythrough","oncanplay","oncancel","onblur","onabort","spellcheck","isContentEditable","contentEditable","outerText","innerText","accessKey","hidden","webkitdropzone","draggable","tabIndex","dir","translate","lang","title","childElementCount","lastElementChild","firstElementChild","children","onwebkitfullscreenerror","onwebkitfullscreenchange","nextElementSibling","previousElementSibling","onwheel","onselectstart","onsearch","onpaste","oncut","oncopy","onbeforepaste","onbeforecut","onbeforecopy","shadowRoot","dataset","classList","className","outerHTML","innerHTML","scrollHeight","scrollWidth","scrollTop","scrollLeft","clientHeight","clientWidth","clientTop","clientLeft","offsetParent","offsetHeight","offsetWidth","offsetTop","offsetLeft","localName","prefix","namespaceURI","id","style","attributes","tagName","parentElement","textContent","baseURI","ownerDocument","nextSibling","previousSibling","lastChild","firstChild","childNodes","parentNode","nodeType","nodeValue","nodeName","closure_lm_714617","__jsaction"],SERVER_PLATFORM_MARKER=new _angular_core.OpaqueToken("ServerPlatformMarker"),ServerPlatformLocation=function(_super){function ServerPlatformLocation(){_super.apply(this,arguments)}return __extends(ServerPlatformLocation,_super),ServerPlatformLocation.prototype.getBaseHrefFromDOM=function(){throw notSupported("getBaseHrefFromDOM")},ServerPlatformLocation.prototype.onPopState=function(fn){notSupported("onPopState")},ServerPlatformLocation.prototype.onHashChange=function(fn){notSupported("onHashChange")},Object.defineProperty(ServerPlatformLocation.prototype,"pathname",{get:function(){throw notSupported("pathname")},enumerable:!0,configurable:!0}),Object.defineProperty(ServerPlatformLocation.prototype,"search",{get:function(){throw notSupported("search")},enumerable:!0,configurable:!0}),Object.defineProperty(ServerPlatformLocation.prototype,"hash",{get:function(){throw notSupported("hash")},enumerable:!0,configurable:!0}),ServerPlatformLocation.prototype.replaceState=function(state,title,url){notSupported("replaceState")},ServerPlatformLocation.prototype.pushState=function(state,title,url){notSupported("pushState")},ServerPlatformLocation.prototype.forward=function(){notSupported("forward")},ServerPlatformLocation.prototype.back=function(){notSupported("back")},ServerPlatformLocation}(_angular_common.PlatformLocation),SERVER_PLATFORM_PROVIDERS=[{provide:SERVER_PLATFORM_MARKER,useValue:!0},_angular_core.PLATFORM_COMMON_PROVIDERS,{provide:_angular_core.PLATFORM_INITIALIZER,useValue:initParse5Adapter,multi:!0},{provide:_angular_common.PlatformLocation,useClass:ServerPlatformLocation}];exports.SERVER_PLATFORM_PROVIDERS=SERVER_PLATFORM_PROVIDERS,exports.serverBootstrap=serverBootstrap,exports.serverPlatform=serverPlatform}); |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
import { __compiler_private__ as _c } from '@angular/compiler'; | ||
@@ -2,0 +9,0 @@ export declare type SelectorMatcher = typeof _c.SelectorMatcher; |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
"use strict"; | ||
@@ -2,0 +9,0 @@ var compiler_1 = require('@angular/compiler'); |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
import { __core_private_types__ as t } from '@angular/core'; | ||
@@ -2,0 +9,0 @@ export declare var reflector: typeof t.reflector; |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
"use strict"; | ||
@@ -2,0 +9,0 @@ var core_1 = require('@angular/core'); |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
import { __compiler_private__ as _c } from '@angular/compiler'; | ||
@@ -2,0 +9,0 @@ export declare type SelectorMatcher = typeof _c.SelectorMatcher; |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
import { __compiler_private__ as _c } from '@angular/compiler'; | ||
@@ -2,0 +9,0 @@ export var SelectorMatcher = _c.SelectorMatcher; |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
import { __core_private_types__ as t } from '@angular/core'; | ||
@@ -2,0 +9,0 @@ export declare var reflector: typeof t.reflector; |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
import { __core_private__ as r } from '@angular/core'; | ||
@@ -2,0 +9,0 @@ export var reflector = r.reflector; |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
export { SERVER_PLATFORM_PROVIDERS, serverBootstrap, serverPlatform } from './src/server'; |
@@ -0,2 +1,9 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
export { SERVER_PLATFORM_PROVIDERS, serverBootstrap, serverPlatform } from './src/server'; | ||
//# sourceMappingURL=index.js.map |
@@ -0,2 +1,9 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
import { __platform_browser_dynamic_private_types__ as t } from '@angular/platform-browser-dynamic/testing'; | ||
export declare var DOMTestComponentRenderer: typeof t.DOMTestComponentRenderer; |
@@ -0,3 +1,10 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
import { __platform_browser_dynamic_private__ as r } from '@angular/platform-browser-dynamic/testing'; | ||
export var DOMTestComponentRenderer = r.DOMTestComponentRenderer; | ||
//# sourceMappingURL=platform_browser_dynamic_testing_private.js.map |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
import { __platform_browser_private_types__ as t } from '@angular/platform-browser'; | ||
@@ -14,1 +21,5 @@ export declare type DomAdapter = typeof t.DomAdapter; | ||
export declare var SharedStylesHost: typeof t.SharedStylesHost; | ||
export declare type ELEMENT_PROBE_PROVIDERS = typeof t.ELEMENT_PROBE_PROVIDERS; | ||
export declare var ELEMENT_PROBE_PROVIDERS: typeof t.ELEMENT_PROBE_PROVIDERS; | ||
export declare type DomEventsPlugin = typeof t.DomEventsPlugin; | ||
export declare var DomEventsPlugin: typeof t.DomEventsPlugin; |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
import { __platform_browser_private__ as r } from '@angular/platform-browser'; | ||
@@ -9,2 +16,4 @@ export var DomAdapter = r.DomAdapter; | ||
export var SharedStylesHost = r.SharedStylesHost; | ||
export var ELEMENT_PROBE_PROVIDERS = r.ELEMENT_PROBE_PROVIDERS; | ||
export var DomEventsPlugin = r.DomEventsPlugin; | ||
//# sourceMappingURL=platform_browser_private.js.map |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":1,"metadata":{"DomAdapter":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/platform-browser","name":"___platform_browser_private__"},"member":"DomAdapter"},"setRootDomAdapter":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/platform-browser","name":"___platform_browser_private__"},"member":"setRootDomAdapter"},"getDOM":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/platform-browser","name":"___platform_browser_private__"},"member":"getDOM"},"DomRootRenderer":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/platform-browser","name":"___platform_browser_private__"},"member":"DomRootRenderer"},"DomRootRenderer_":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/platform-browser","name":"___platform_browser_private__"},"member":"DomRootRenderer_"},"DomSharedStylesHost":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/platform-browser","name":"___platform_browser_private__"},"member":"DomSharedStylesHost"},"SharedStylesHost":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/platform-browser","name":"___platform_browser_private__"},"member":"SharedStylesHost"}}} | ||
{"__symbolic":"module","version":1,"metadata":{"DomAdapter":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/platform-browser","name":"___platform_browser_private__"},"member":"DomAdapter"},"setRootDomAdapter":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/platform-browser","name":"___platform_browser_private__"},"member":"setRootDomAdapter"},"getDOM":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/platform-browser","name":"___platform_browser_private__"},"member":"getDOM"},"DomRootRenderer":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/platform-browser","name":"___platform_browser_private__"},"member":"DomRootRenderer"},"DomRootRenderer_":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/platform-browser","name":"___platform_browser_private__"},"member":"DomRootRenderer_"},"DomSharedStylesHost":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/platform-browser","name":"___platform_browser_private__"},"member":"DomSharedStylesHost"},"SharedStylesHost":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/platform-browser","name":"___platform_browser_private__"},"member":"SharedStylesHost"},"ELEMENT_PROBE_PROVIDERS":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/platform-browser","name":"___platform_browser_private__"},"member":"ELEMENT_PROBE_PROVIDERS"},"DomEventsPlugin":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/platform-browser","name":"___platform_browser_private__"},"member":"DomEventsPlugin"}}} |
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
/** | ||
* A base class for the WrappedException that can be used to identify | ||
@@ -3,0 +10,0 @@ * a WrappedException from ExceptionHandler without adding circular |
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
/** | ||
* A base class for the WrappedException that can be used to identify | ||
@@ -3,0 +10,0 @@ * a WrappedException from ExceptionHandler without adding circular |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
import { getSymbolIterator, global, isArray, isBlank, isJsObject, isPresent } from './lang'; | ||
@@ -2,0 +9,0 @@ export var Map = global.Map; |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
import { BaseWrappedException } from './base_wrapped_exception'; | ||
@@ -2,0 +9,0 @@ import { isListLikeIterable } from './collection'; |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
import { BaseWrappedException } from './base_wrapped_exception'; | ||
@@ -2,0 +9,0 @@ export { ExceptionHandler } from './exception_handler'; |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
import { BaseWrappedException } from './base_wrapped_exception'; | ||
@@ -2,0 +9,0 @@ import { ExceptionHandler } from './exception_handler'; |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
export interface BrowserNodeGlobal { | ||
@@ -26,3 +33,2 @@ Object: typeof Object; | ||
export { _global as global }; | ||
export declare var Type: FunctionConstructor; | ||
/** | ||
@@ -33,3 +39,6 @@ * Runtime representation a type that a Component or other object is instances of. | ||
* the `MyCustomComponent` constructor function. | ||
* | ||
* @stable | ||
*/ | ||
export declare var Type: FunctionConstructor; | ||
export interface Type extends Function { | ||
@@ -40,4 +49,4 @@ } | ||
*/ | ||
export interface ConcreteType extends Type { | ||
new (...args: any[]): any; | ||
export interface ConcreteType<T> extends Type { | ||
new (...args: any[]): T; | ||
} | ||
@@ -54,3 +63,3 @@ export declare function getTypeNameForDebugging(type: Type): string; | ||
export declare function isType(obj: any): boolean; | ||
export declare function isStringMap(obj: any): boolean; | ||
export declare function isStringMap(obj: any): obj is Object; | ||
export declare function isStrictStringMap(obj: any): boolean; | ||
@@ -57,0 +66,0 @@ export declare function isPromise(obj: any): boolean; |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
var globalScope; | ||
@@ -22,2 +29,10 @@ if (typeof window === 'undefined') { | ||
export { _global as global }; | ||
/** | ||
* Runtime representation a type that a Component or other object is instances of. | ||
* | ||
* An example of a `Type` is `MyCustomComponent` class, which in JavaScript is be represented by | ||
* the `MyCustomComponent` constructor function. | ||
* | ||
* @stable | ||
*/ | ||
export var Type = Function; | ||
@@ -24,0 +39,0 @@ export function getTypeNameForDebugging(type) { |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":1,"metadata":{"IS_DART":false,"Type":{"__symbolic":"reference","name":"Function"},"Math":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"Math"},"Date":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"Date"},"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":95,"character":8},"right":"boolean"}},"isNumber":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":99,"character":8},"right":"number"}},"isString":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":103,"character":8},"right":"string"}},"isFunction":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":107,"character":8},"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":115,"character":8},"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":"reference","name":"STRING_MAP_PROTO"}}}},"isPromise":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"instanceof","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"Promise"}}},"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":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"RegExp"},"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":355,"character":19},"right":"number"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":355,"character":44},"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":"error","message":"Expression form not supported","line":365,"character":8}},"normalizeBool":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"error","message":"Expression form not supported","line":369,"character":8}},"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":373,"character":24},"right":"function"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":373,"character":50},"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":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"encodeURI"},"arguments":[{"__symbolic":"reference","name":"s"}]}},"escapeRegExp":{"__symbolic":"function","parameters":["s"],"value":{"__symbolic":"error","message":"Expression form not supported","line":470,"character":19}}}} | ||
{"__symbolic":"module","version":1,"metadata":{"IS_DART":false,"Type":{"__symbolic":"reference","name":"Function"},"Math":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"Math"},"Date":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"Date"},"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":106,"character":8},"right":"boolean"}},"isNumber":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":110,"character":8},"right":"number"}},"isString":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":114,"character":8},"right":"string"}},"isFunction":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":118,"character":8},"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":126,"character":8},"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":"reference","name":"STRING_MAP_PROTO"}}}},"isPromise":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"instanceof","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"Promise"}}},"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":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"RegExp"},"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":366,"character":19},"right":"number"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":366,"character":44},"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":"error","message":"Expression form not supported","line":376,"character":8}},"normalizeBool":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"error","message":"Expression form not supported","line":380,"character":8}},"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":384,"character":24},"right":"function"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":384,"character":50},"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":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"encodeURI"},"arguments":[{"__symbolic":"reference","name":"s"}]}},"escapeRegExp":{"__symbolic":"function","parameters":["s"],"value":{"__symbolic":"error","message":"Expression form not supported","line":481,"character":19}}}} |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
var parse5 = require('parse5/index'); | ||
@@ -2,0 +9,0 @@ import { ListWrapper, StringMapWrapper } from '../src/facade/collection'; |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
import { PlatformLocation } from '@angular/common'; | ||
@@ -2,0 +9,0 @@ import { OpaqueToken, PLATFORM_COMMON_PROVIDERS, PLATFORM_INITIALIZER, ReflectiveInjector, assertPlatform, coreLoadAndBootstrap, createPlatform, getPlatform } from '@angular/core'; |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":1,"metadata":{"SERVER_PLATFORM_PROVIDERS":{"__symbolic":"error","message":"Reference to non-exported class","line":11,"character":1,"context":{"className":"ServerPlatformLocation"}}}} | ||
{"__symbolic":"module","version":1,"metadata":{"SERVER_PLATFORM_PROVIDERS":{"__symbolic":"error","message":"Reference to non-exported class","line":19,"character":1,"context":{"className":"ServerPlatformLocation"}}}} |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
export * from './testing/server'; |
@@ -0,2 +1,9 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
export * from './testing/server'; | ||
//# sourceMappingURL=testing.js.map |
/** | ||
* Default platform providers for testing. | ||
* | ||
* @experimental | ||
*/ | ||
@@ -7,3 +9,5 @@ export declare const TEST_SERVER_PLATFORM_PROVIDERS: Array<any>; | ||
* Default application providers for testing. | ||
* | ||
* @experimental | ||
*/ | ||
export declare const TEST_SERVER_APPLICATION_PROVIDERS: Array<any>; |
@@ -1,19 +0,24 @@ | ||
import { MockLocationStrategy } from '@angular/common/testing'; | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
import { COMPILER_PROVIDERS, DirectiveResolver, ViewResolver, XHR } from '@angular/compiler'; | ||
import { MockDirectiveResolver, MockViewResolver, TestComponentBuilder, TestComponentRenderer } from '@angular/compiler/testing'; | ||
import { MockDirectiveResolver, MockViewResolver, OverridingTestComponentBuilder } from '@angular/compiler/testing'; | ||
import { APPLICATION_COMMON_PROVIDERS, APP_ID, NgZone, PLATFORM_COMMON_PROVIDERS, PLATFORM_INITIALIZER, RootRenderer } from '@angular/core'; | ||
import { BrowserDetection } from '@angular/platform-browser/testing'; | ||
import { TestComponentBuilder, TestComponentRenderer } from '@angular/core/testing'; | ||
import { BROWSER_SANITIZATION_PROVIDERS, DOCUMENT, EVENT_MANAGER_PLUGINS, EventManager } from '@angular/platform-browser'; | ||
import { AnimationDriver, NoOpAnimationDriver } from '../core_private'; | ||
import { DOMTestComponentRenderer } from '../platform_browser_dynamic_testing_private'; | ||
import { DomEventsPlugin, DomRootRenderer, DomRootRenderer_, DomSharedStylesHost, ELEMENT_PROBE_PROVIDERS, SharedStylesHost, getDOM } from '../platform_browser_private'; | ||
import { Parse5DomAdapter } from '../src/parse5_adapter'; | ||
import { DOCUMENT, BROWSER_SANITIZATION_PROVIDERS, EventManager, EVENT_MANAGER_PLUGINS, ELEMENT_PROBE_PROVIDERS, DomEventsPlugin } from '@angular/platform-browser'; | ||
import { getDOM, DomRootRenderer, DomRootRenderer_, DomSharedStylesHost, SharedStylesHost } from '../platform_browser_private'; | ||
import { LocationStrategy } from '@angular/common'; | ||
import { Log } from '@angular/core/testing'; | ||
function initServerTests() { | ||
Parse5DomAdapter.makeCurrent(); | ||
BrowserDetection.setup(); | ||
} | ||
/** | ||
* Default platform providers for testing. | ||
* | ||
* @experimental | ||
*/ | ||
@@ -42,2 +47,4 @@ export const TEST_SERVER_PLATFORM_PROVIDERS = | ||
* Default application providers for testing. | ||
* | ||
* @experimental | ||
*/ | ||
@@ -63,9 +70,8 @@ export const TEST_SERVER_APPLICATION_PROVIDERS = | ||
DomSharedStylesHost, ELEMENT_PROBE_PROVIDERS, | ||
{ provide: TestComponentBuilder, useClass: OverridingTestComponentBuilder }, | ||
/* @ts2dart_Provider */ { provide: DirectiveResolver, useClass: MockDirectiveResolver }, | ||
/* @ts2dart_Provider */ { provide: ViewResolver, useClass: MockViewResolver }, Log, | ||
/* @ts2dart_Provider */ { provide: ViewResolver, useClass: MockViewResolver }, | ||
/* @ts2dart_Provider */ { provide: TestComponentRenderer, useClass: DOMTestComponentRenderer }, | ||
TestComponentBuilder, | ||
/* @ts2dart_Provider */ { provide: NgZone, useFactory: createNgZone }, | ||
/* @ts2dart_Provider */ { provide: LocationStrategy, useClass: MockLocationStrategy } | ||
/* @ts2dart_Provider */ { provide: NgZone, useFactory: createNgZone } | ||
]; | ||
//# sourceMappingURL=server.js.map |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":1,"metadata":{"TEST_SERVER_PLATFORM_PROVIDERS":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_COMMON_PROVIDERS"},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_INITIALIZER"},"useValue":{"__symbolic":"reference","name":"initServerTests"},"multi":true}],"TEST_SERVER_APPLICATION_PROVIDERS":[{"__symbolic":"reference","module":"@angular/core","name":"APPLICATION_COMMON_PROVIDERS"},{"__symbolic":"reference","module":"@angular/compiler","name":"COMPILER_PROVIDERS"},{"__symbolic":"reference","module":"@angular/platform-browser","name":"BROWSER_SANITIZATION_PROVIDERS"},{"provide":{"__symbolic":"reference","module":"@angular/platform-browser","name":"DOCUMENT"},"useFactory":{"__symbolic":"reference","name":"appDoc"}},{"provide":{"__symbolic":"reference","module":"../platform_browser_private","name":"DomRootRenderer"},"useClass":{"__symbolic":"reference","module":"../platform_browser_private","name":"DomRootRenderer_"}},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"RootRenderer"},"useExisting":{"__symbolic":"reference","module":"../platform_browser_private","name":"DomRootRenderer"}},{"provide":{"__symbolic":"reference","module":"../core_private","name":"AnimationDriver"},"useClass":{"__symbolic":"reference","module":"../core_private","name":"NoOpAnimationDriver"}},{"__symbolic":"reference","module":"@angular/platform-browser","name":"EventManager"},{"provide":{"__symbolic":"reference","module":"@angular/platform-browser","name":"EVENT_MANAGER_PLUGINS"},"useClass":{"__symbolic":"reference","module":"@angular/platform-browser","name":"DomEventsPlugin"},"multi":true},{"provide":{"__symbolic":"reference","module":"@angular/compiler","name":"XHR"},"useClass":{"__symbolic":"reference","module":"@angular/compiler","name":"XHR"}},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"APP_ID"},"useValue":"a"},{"provide":{"__symbolic":"reference","module":"../platform_browser_private","name":"SharedStylesHost"},"useExisting":{"__symbolic":"reference","module":"../platform_browser_private","name":"DomSharedStylesHost"}},{"__symbolic":"reference","module":"../platform_browser_private","name":"DomSharedStylesHost"},{"__symbolic":"reference","module":"@angular/platform-browser","name":"ELEMENT_PROBE_PROVIDERS"},{"provide":{"__symbolic":"reference","module":"@angular/compiler","name":"DirectiveResolver"},"useClass":{"__symbolic":"reference","module":"@angular/compiler/testing","name":"MockDirectiveResolver"}},{"provide":{"__symbolic":"reference","module":"@angular/compiler","name":"ViewResolver"},"useClass":{"__symbolic":"reference","module":"@angular/compiler/testing","name":"MockViewResolver"}},{"__symbolic":"reference","module":"@angular/core/testing","name":"Log"},{"provide":{"__symbolic":"reference","module":"@angular/compiler/testing","name":"TestComponentRenderer"},"useClass":{"__symbolic":"reference","module":"../platform_browser_dynamic_testing_private","name":"DOMTestComponentRenderer"}},{"__symbolic":"reference","module":"@angular/compiler/testing","name":"TestComponentBuilder"},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"NgZone"},"useFactory":{"__symbolic":"reference","name":"createNgZone"}},{"provide":{"__symbolic":"reference","module":"@angular/common","name":"LocationStrategy"},"useClass":{"__symbolic":"reference","module":"@angular/common/testing","name":"MockLocationStrategy"}}]}} | ||
{"__symbolic":"module","version":1,"metadata":{"TEST_SERVER_PLATFORM_PROVIDERS":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_COMMON_PROVIDERS"},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_INITIALIZER"},"useValue":{"__symbolic":"reference","name":"initServerTests"},"multi":true}],"TEST_SERVER_APPLICATION_PROVIDERS":[{"__symbolic":"reference","module":"@angular/core","name":"APPLICATION_COMMON_PROVIDERS"},{"__symbolic":"reference","module":"@angular/compiler","name":"COMPILER_PROVIDERS"},{"__symbolic":"reference","module":"@angular/platform-browser","name":"BROWSER_SANITIZATION_PROVIDERS"},{"provide":{"__symbolic":"reference","module":"@angular/platform-browser","name":"DOCUMENT"},"useFactory":{"__symbolic":"reference","name":"appDoc"}},{"provide":{"__symbolic":"reference","module":"../platform_browser_private","name":"DomRootRenderer"},"useClass":{"__symbolic":"reference","module":"../platform_browser_private","name":"DomRootRenderer_"}},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"RootRenderer"},"useExisting":{"__symbolic":"reference","module":"../platform_browser_private","name":"DomRootRenderer"}},{"provide":{"__symbolic":"reference","module":"../core_private","name":"AnimationDriver"},"useClass":{"__symbolic":"reference","module":"../core_private","name":"NoOpAnimationDriver"}},{"__symbolic":"reference","module":"@angular/platform-browser","name":"EventManager"},{"provide":{"__symbolic":"reference","module":"@angular/platform-browser","name":"EVENT_MANAGER_PLUGINS"},"useClass":{"__symbolic":"reference","module":"../platform_browser_private","name":"DomEventsPlugin"},"multi":true},{"provide":{"__symbolic":"reference","module":"@angular/compiler","name":"XHR"},"useClass":{"__symbolic":"reference","module":"@angular/compiler","name":"XHR"}},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"APP_ID"},"useValue":"a"},{"provide":{"__symbolic":"reference","module":"../platform_browser_private","name":"SharedStylesHost"},"useExisting":{"__symbolic":"reference","module":"../platform_browser_private","name":"DomSharedStylesHost"}},{"__symbolic":"reference","module":"../platform_browser_private","name":"DomSharedStylesHost"},{"__symbolic":"reference","module":"../platform_browser_private","name":"ELEMENT_PROBE_PROVIDERS"},{"provide":{"__symbolic":"reference","module":"@angular/core/testing","name":"TestComponentBuilder"},"useClass":{"__symbolic":"reference","module":"@angular/compiler/testing","name":"OverridingTestComponentBuilder"}},{"provide":{"__symbolic":"reference","module":"@angular/compiler","name":"DirectiveResolver"},"useClass":{"__symbolic":"reference","module":"@angular/compiler/testing","name":"MockDirectiveResolver"}},{"provide":{"__symbolic":"reference","module":"@angular/compiler","name":"ViewResolver"},"useClass":{"__symbolic":"reference","module":"@angular/compiler/testing","name":"MockViewResolver"}},{"provide":{"__symbolic":"reference","module":"@angular/core/testing","name":"TestComponentRenderer"},"useClass":{"__symbolic":"reference","module":"../platform_browser_dynamic_testing_private","name":"DOMTestComponentRenderer"}},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"NgZone"},"useFactory":{"__symbolic":"reference","name":"createNgZone"}}]}} |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
export { SERVER_PLATFORM_PROVIDERS, serverBootstrap, serverPlatform } from './src/server'; |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
"use strict"; | ||
@@ -2,0 +9,0 @@ var server_1 = require('./src/server'); |
{ | ||
"name": "@angular/platform-server", | ||
"version": "2.0.0-rc.3", | ||
"version": "2.0.0-rc.4", | ||
"description": "", | ||
@@ -11,6 +11,6 @@ "main": "index.js", | ||
"peerDependencies": { | ||
"@angular/core": "2.0.0-rc.3", | ||
"@angular/common": "2.0.0-rc.3", | ||
"@angular/compiler": "2.0.0-rc.3", | ||
"@angular/platform-browser": "2.0.0-rc.3" | ||
"@angular/core": "^2.0.0-rc.4", | ||
"@angular/common": "^2.0.0-rc.4", | ||
"@angular/compiler": "^2.0.0-rc.4", | ||
"@angular/platform-browser": "^2.0.0-rc.4" | ||
}, | ||
@@ -17,0 +17,0 @@ "dependencies": { |
@@ -0,2 +1,9 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
import { __platform_browser_dynamic_private_types__ as t } from '@angular/platform-browser-dynamic/testing'; | ||
export declare var DOMTestComponentRenderer: typeof t.DOMTestComponentRenderer; |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
"use strict"; | ||
@@ -2,0 +9,0 @@ var testing_1 = require('@angular/platform-browser-dynamic/testing'); |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
import { __platform_browser_private_types__ as t } from '@angular/platform-browser'; | ||
@@ -14,1 +21,5 @@ export declare type DomAdapter = typeof t.DomAdapter; | ||
export declare var SharedStylesHost: typeof t.SharedStylesHost; | ||
export declare type ELEMENT_PROBE_PROVIDERS = typeof t.ELEMENT_PROBE_PROVIDERS; | ||
export declare var ELEMENT_PROBE_PROVIDERS: typeof t.ELEMENT_PROBE_PROVIDERS; | ||
export declare type DomEventsPlugin = typeof t.DomEventsPlugin; | ||
export declare var DomEventsPlugin: typeof t.DomEventsPlugin; |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
"use strict"; | ||
@@ -10,2 +17,4 @@ var platform_browser_1 = require('@angular/platform-browser'); | ||
exports.SharedStylesHost = platform_browser_1.__platform_browser_private__.SharedStylesHost; | ||
exports.ELEMENT_PROBE_PROVIDERS = platform_browser_1.__platform_browser_private__.ELEMENT_PROBE_PROVIDERS; | ||
exports.DomEventsPlugin = platform_browser_1.__platform_browser_private__.DomEventsPlugin; | ||
//# sourceMappingURL=platform_browser_private.js.map |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":1,"metadata":{"DomAdapter":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/platform-browser","name":"___platform_browser_private__"},"member":"DomAdapter"},"setRootDomAdapter":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/platform-browser","name":"___platform_browser_private__"},"member":"setRootDomAdapter"},"getDOM":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/platform-browser","name":"___platform_browser_private__"},"member":"getDOM"},"DomRootRenderer":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/platform-browser","name":"___platform_browser_private__"},"member":"DomRootRenderer"},"DomRootRenderer_":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/platform-browser","name":"___platform_browser_private__"},"member":"DomRootRenderer_"},"DomSharedStylesHost":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/platform-browser","name":"___platform_browser_private__"},"member":"DomSharedStylesHost"},"SharedStylesHost":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/platform-browser","name":"___platform_browser_private__"},"member":"SharedStylesHost"}}} | ||
{"__symbolic":"module","version":1,"metadata":{"DomAdapter":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/platform-browser","name":"___platform_browser_private__"},"member":"DomAdapter"},"setRootDomAdapter":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/platform-browser","name":"___platform_browser_private__"},"member":"setRootDomAdapter"},"getDOM":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/platform-browser","name":"___platform_browser_private__"},"member":"getDOM"},"DomRootRenderer":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/platform-browser","name":"___platform_browser_private__"},"member":"DomRootRenderer"},"DomRootRenderer_":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/platform-browser","name":"___platform_browser_private__"},"member":"DomRootRenderer_"},"DomSharedStylesHost":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/platform-browser","name":"___platform_browser_private__"},"member":"DomSharedStylesHost"},"SharedStylesHost":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/platform-browser","name":"___platform_browser_private__"},"member":"SharedStylesHost"},"ELEMENT_PROBE_PROVIDERS":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/platform-browser","name":"___platform_browser_private__"},"member":"ELEMENT_PROBE_PROVIDERS"},"DomEventsPlugin":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/platform-browser","name":"___platform_browser_private__"},"member":"DomEventsPlugin"}}} |
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
/** | ||
* A base class for the WrappedException that can be used to identify | ||
@@ -3,0 +10,0 @@ * a WrappedException from ExceptionHandler without adding circular |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
"use strict"; | ||
@@ -2,0 +9,0 @@ var __extends = (this && this.__extends) || function (d, b) { |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
"use strict"; | ||
@@ -2,0 +9,0 @@ var lang_1 = require('./lang'); |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
"use strict"; | ||
@@ -2,0 +9,0 @@ var base_wrapped_exception_1 = require('./base_wrapped_exception'); |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
import { BaseWrappedException } from './base_wrapped_exception'; | ||
@@ -2,0 +9,0 @@ export { ExceptionHandler } from './exception_handler'; |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
"use strict"; | ||
@@ -2,0 +9,0 @@ var __extends = (this && this.__extends) || function (d, b) { |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
export interface BrowserNodeGlobal { | ||
@@ -26,3 +33,2 @@ Object: typeof Object; | ||
export { _global as global }; | ||
export declare var Type: FunctionConstructor; | ||
/** | ||
@@ -33,3 +39,6 @@ * Runtime representation a type that a Component or other object is instances of. | ||
* the `MyCustomComponent` constructor function. | ||
* | ||
* @stable | ||
*/ | ||
export declare var Type: FunctionConstructor; | ||
export interface Type extends Function { | ||
@@ -40,4 +49,4 @@ } | ||
*/ | ||
export interface ConcreteType extends Type { | ||
new (...args: any[]): any; | ||
export interface ConcreteType<T> extends Type { | ||
new (...args: any[]): T; | ||
} | ||
@@ -54,3 +63,3 @@ export declare function getTypeNameForDebugging(type: Type): string; | ||
export declare function isType(obj: any): boolean; | ||
export declare function isStringMap(obj: any): boolean; | ||
export declare function isStringMap(obj: any): obj is Object; | ||
export declare function isStrictStringMap(obj: any): boolean; | ||
@@ -57,0 +66,0 @@ export declare function isPromise(obj: any): boolean; |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
"use strict"; | ||
@@ -29,2 +36,10 @@ var __extends = (this && this.__extends) || function (d, b) { | ||
exports.global = _global; | ||
/** | ||
* Runtime representation a type that a Component or other object is instances of. | ||
* | ||
* An example of a `Type` is `MyCustomComponent` class, which in JavaScript is be represented by | ||
* the `MyCustomComponent` constructor function. | ||
* | ||
* @stable | ||
*/ | ||
exports.Type = Function; | ||
@@ -31,0 +46,0 @@ function getTypeNameForDebugging(type) { |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":1,"metadata":{"IS_DART":false,"Type":{"__symbolic":"reference","name":"Function"},"Math":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"Math"},"Date":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"Date"},"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":95,"character":8},"right":"boolean"}},"isNumber":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":99,"character":8},"right":"number"}},"isString":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":103,"character":8},"right":"string"}},"isFunction":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":107,"character":8},"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":115,"character":8},"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":"reference","name":"STRING_MAP_PROTO"}}}},"isPromise":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"instanceof","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"Promise"}}},"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":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"RegExp"},"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":355,"character":19},"right":"number"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":355,"character":44},"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":"error","message":"Expression form not supported","line":365,"character":8}},"normalizeBool":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"error","message":"Expression form not supported","line":369,"character":8}},"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":373,"character":24},"right":"function"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":373,"character":50},"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":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"encodeURI"},"arguments":[{"__symbolic":"reference","name":"s"}]}},"escapeRegExp":{"__symbolic":"function","parameters":["s"],"value":{"__symbolic":"error","message":"Expression form not supported","line":470,"character":19}}}} | ||
{"__symbolic":"module","version":1,"metadata":{"IS_DART":false,"Type":{"__symbolic":"reference","name":"Function"},"Math":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"Math"},"Date":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"Date"},"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":106,"character":8},"right":"boolean"}},"isNumber":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":110,"character":8},"right":"number"}},"isString":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":114,"character":8},"right":"string"}},"isFunction":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":118,"character":8},"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":126,"character":8},"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":"reference","name":"STRING_MAP_PROTO"}}}},"isPromise":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"instanceof","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"Promise"}}},"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":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"RegExp"},"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":366,"character":19},"right":"number"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":366,"character":44},"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":"error","message":"Expression form not supported","line":376,"character":8}},"normalizeBool":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"error","message":"Expression form not supported","line":380,"character":8}},"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":384,"character":24},"right":"function"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":384,"character":50},"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":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"encodeURI"},"arguments":[{"__symbolic":"reference","name":"s"}]}},"escapeRegExp":{"__symbolic":"function","parameters":["s"],"value":{"__symbolic":"error","message":"Expression form not supported","line":481,"character":19}}}} |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
"use strict"; | ||
@@ -2,0 +9,0 @@ var __extends = (this && this.__extends) || function (d, b) { |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
"use strict"; | ||
@@ -2,0 +9,0 @@ var __extends = (this && this.__extends) || function (d, b) { |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":1,"metadata":{"SERVER_PLATFORM_PROVIDERS":{"__symbolic":"error","message":"Reference to non-exported class","line":11,"character":1,"context":{"className":"ServerPlatformLocation"}}}} | ||
{"__symbolic":"module","version":1,"metadata":{"SERVER_PLATFORM_PROVIDERS":{"__symbolic":"error","message":"Reference to non-exported class","line":19,"character":1,"context":{"className":"ServerPlatformLocation"}}}} |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
export * from './testing/server'; |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
"use strict"; | ||
@@ -2,0 +9,0 @@ function __export(m) { |
/** | ||
* Default platform providers for testing. | ||
* | ||
* @experimental | ||
*/ | ||
@@ -7,3 +9,5 @@ export declare const TEST_SERVER_PLATFORM_PROVIDERS: Array<any>; | ||
* Default application providers for testing. | ||
* | ||
* @experimental | ||
*/ | ||
export declare const TEST_SERVER_APPLICATION_PROVIDERS: Array<any>; |
@@ -0,20 +1,25 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
"use strict"; | ||
var testing_1 = require('@angular/common/testing'); | ||
var compiler_1 = require('@angular/compiler'); | ||
var testing_2 = require('@angular/compiler/testing'); | ||
var testing_1 = require('@angular/compiler/testing'); | ||
var core_1 = require('@angular/core'); | ||
var testing_3 = require('@angular/platform-browser/testing'); | ||
var testing_2 = require('@angular/core/testing'); | ||
var platform_browser_1 = require('@angular/platform-browser'); | ||
var core_private_1 = require('../core_private'); | ||
var platform_browser_dynamic_testing_private_1 = require('../platform_browser_dynamic_testing_private'); | ||
var platform_browser_private_1 = require('../platform_browser_private'); | ||
var parse5_adapter_1 = require('../src/parse5_adapter'); | ||
var platform_browser_1 = require('@angular/platform-browser'); | ||
var platform_browser_private_1 = require('../platform_browser_private'); | ||
var common_1 = require('@angular/common'); | ||
var testing_4 = require('@angular/core/testing'); | ||
function initServerTests() { | ||
parse5_adapter_1.Parse5DomAdapter.makeCurrent(); | ||
testing_3.BrowserDetection.setup(); | ||
} | ||
/** | ||
* Default platform providers for testing. | ||
* | ||
* @experimental | ||
*/ | ||
@@ -43,2 +48,4 @@ exports.TEST_SERVER_PLATFORM_PROVIDERS = | ||
* Default application providers for testing. | ||
* | ||
* @experimental | ||
*/ | ||
@@ -57,3 +64,3 @@ exports.TEST_SERVER_APPLICATION_PROVIDERS = | ||
provide: platform_browser_1.EVENT_MANAGER_PLUGINS, | ||
useClass: platform_browser_1.DomEventsPlugin, | ||
useClass: platform_browser_private_1.DomEventsPlugin, | ||
multi: true | ||
@@ -64,10 +71,9 @@ }, | ||
/* @ts2dart_Provider */ { provide: platform_browser_private_1.SharedStylesHost, useExisting: platform_browser_private_1.DomSharedStylesHost }, | ||
platform_browser_private_1.DomSharedStylesHost, platform_browser_1.ELEMENT_PROBE_PROVIDERS, | ||
/* @ts2dart_Provider */ { provide: compiler_1.DirectiveResolver, useClass: testing_2.MockDirectiveResolver }, | ||
/* @ts2dart_Provider */ { provide: compiler_1.ViewResolver, useClass: testing_2.MockViewResolver }, testing_4.Log, | ||
platform_browser_private_1.DomSharedStylesHost, platform_browser_private_1.ELEMENT_PROBE_PROVIDERS, | ||
{ provide: testing_2.TestComponentBuilder, useClass: testing_1.OverridingTestComponentBuilder }, | ||
/* @ts2dart_Provider */ { provide: compiler_1.DirectiveResolver, useClass: testing_1.MockDirectiveResolver }, | ||
/* @ts2dart_Provider */ { provide: compiler_1.ViewResolver, useClass: testing_1.MockViewResolver }, | ||
/* @ts2dart_Provider */ { provide: testing_2.TestComponentRenderer, useClass: platform_browser_dynamic_testing_private_1.DOMTestComponentRenderer }, | ||
testing_2.TestComponentBuilder, | ||
/* @ts2dart_Provider */ { provide: core_1.NgZone, useFactory: createNgZone }, | ||
/* @ts2dart_Provider */ { provide: common_1.LocationStrategy, useClass: testing_1.MockLocationStrategy } | ||
/* @ts2dart_Provider */ { provide: core_1.NgZone, useFactory: createNgZone } | ||
]; | ||
//# sourceMappingURL=server.js.map |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":1,"metadata":{"TEST_SERVER_PLATFORM_PROVIDERS":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_COMMON_PROVIDERS"},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_INITIALIZER"},"useValue":{"__symbolic":"reference","name":"initServerTests"},"multi":true}],"TEST_SERVER_APPLICATION_PROVIDERS":[{"__symbolic":"reference","module":"@angular/core","name":"APPLICATION_COMMON_PROVIDERS"},{"__symbolic":"reference","module":"@angular/compiler","name":"COMPILER_PROVIDERS"},{"__symbolic":"reference","module":"@angular/platform-browser","name":"BROWSER_SANITIZATION_PROVIDERS"},{"provide":{"__symbolic":"reference","module":"@angular/platform-browser","name":"DOCUMENT"},"useFactory":{"__symbolic":"reference","name":"appDoc"}},{"provide":{"__symbolic":"reference","module":"../platform_browser_private","name":"DomRootRenderer"},"useClass":{"__symbolic":"reference","module":"../platform_browser_private","name":"DomRootRenderer_"}},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"RootRenderer"},"useExisting":{"__symbolic":"reference","module":"../platform_browser_private","name":"DomRootRenderer"}},{"provide":{"__symbolic":"reference","module":"../core_private","name":"AnimationDriver"},"useClass":{"__symbolic":"reference","module":"../core_private","name":"NoOpAnimationDriver"}},{"__symbolic":"reference","module":"@angular/platform-browser","name":"EventManager"},{"provide":{"__symbolic":"reference","module":"@angular/platform-browser","name":"EVENT_MANAGER_PLUGINS"},"useClass":{"__symbolic":"reference","module":"@angular/platform-browser","name":"DomEventsPlugin"},"multi":true},{"provide":{"__symbolic":"reference","module":"@angular/compiler","name":"XHR"},"useClass":{"__symbolic":"reference","module":"@angular/compiler","name":"XHR"}},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"APP_ID"},"useValue":"a"},{"provide":{"__symbolic":"reference","module":"../platform_browser_private","name":"SharedStylesHost"},"useExisting":{"__symbolic":"reference","module":"../platform_browser_private","name":"DomSharedStylesHost"}},{"__symbolic":"reference","module":"../platform_browser_private","name":"DomSharedStylesHost"},{"__symbolic":"reference","module":"@angular/platform-browser","name":"ELEMENT_PROBE_PROVIDERS"},{"provide":{"__symbolic":"reference","module":"@angular/compiler","name":"DirectiveResolver"},"useClass":{"__symbolic":"reference","module":"@angular/compiler/testing","name":"MockDirectiveResolver"}},{"provide":{"__symbolic":"reference","module":"@angular/compiler","name":"ViewResolver"},"useClass":{"__symbolic":"reference","module":"@angular/compiler/testing","name":"MockViewResolver"}},{"__symbolic":"reference","module":"@angular/core/testing","name":"Log"},{"provide":{"__symbolic":"reference","module":"@angular/compiler/testing","name":"TestComponentRenderer"},"useClass":{"__symbolic":"reference","module":"../platform_browser_dynamic_testing_private","name":"DOMTestComponentRenderer"}},{"__symbolic":"reference","module":"@angular/compiler/testing","name":"TestComponentBuilder"},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"NgZone"},"useFactory":{"__symbolic":"reference","name":"createNgZone"}},{"provide":{"__symbolic":"reference","module":"@angular/common","name":"LocationStrategy"},"useClass":{"__symbolic":"reference","module":"@angular/common/testing","name":"MockLocationStrategy"}}]}} | ||
{"__symbolic":"module","version":1,"metadata":{"TEST_SERVER_PLATFORM_PROVIDERS":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_COMMON_PROVIDERS"},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_INITIALIZER"},"useValue":{"__symbolic":"reference","name":"initServerTests"},"multi":true}],"TEST_SERVER_APPLICATION_PROVIDERS":[{"__symbolic":"reference","module":"@angular/core","name":"APPLICATION_COMMON_PROVIDERS"},{"__symbolic":"reference","module":"@angular/compiler","name":"COMPILER_PROVIDERS"},{"__symbolic":"reference","module":"@angular/platform-browser","name":"BROWSER_SANITIZATION_PROVIDERS"},{"provide":{"__symbolic":"reference","module":"@angular/platform-browser","name":"DOCUMENT"},"useFactory":{"__symbolic":"reference","name":"appDoc"}},{"provide":{"__symbolic":"reference","module":"../platform_browser_private","name":"DomRootRenderer"},"useClass":{"__symbolic":"reference","module":"../platform_browser_private","name":"DomRootRenderer_"}},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"RootRenderer"},"useExisting":{"__symbolic":"reference","module":"../platform_browser_private","name":"DomRootRenderer"}},{"provide":{"__symbolic":"reference","module":"../core_private","name":"AnimationDriver"},"useClass":{"__symbolic":"reference","module":"../core_private","name":"NoOpAnimationDriver"}},{"__symbolic":"reference","module":"@angular/platform-browser","name":"EventManager"},{"provide":{"__symbolic":"reference","module":"@angular/platform-browser","name":"EVENT_MANAGER_PLUGINS"},"useClass":{"__symbolic":"reference","module":"../platform_browser_private","name":"DomEventsPlugin"},"multi":true},{"provide":{"__symbolic":"reference","module":"@angular/compiler","name":"XHR"},"useClass":{"__symbolic":"reference","module":"@angular/compiler","name":"XHR"}},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"APP_ID"},"useValue":"a"},{"provide":{"__symbolic":"reference","module":"../platform_browser_private","name":"SharedStylesHost"},"useExisting":{"__symbolic":"reference","module":"../platform_browser_private","name":"DomSharedStylesHost"}},{"__symbolic":"reference","module":"../platform_browser_private","name":"DomSharedStylesHost"},{"__symbolic":"reference","module":"../platform_browser_private","name":"ELEMENT_PROBE_PROVIDERS"},{"provide":{"__symbolic":"reference","module":"@angular/core/testing","name":"TestComponentBuilder"},"useClass":{"__symbolic":"reference","module":"@angular/compiler/testing","name":"OverridingTestComponentBuilder"}},{"provide":{"__symbolic":"reference","module":"@angular/compiler","name":"DirectiveResolver"},"useClass":{"__symbolic":"reference","module":"@angular/compiler/testing","name":"MockDirectiveResolver"}},{"provide":{"__symbolic":"reference","module":"@angular/compiler","name":"ViewResolver"},"useClass":{"__symbolic":"reference","module":"@angular/compiler/testing","name":"MockViewResolver"}},{"provide":{"__symbolic":"reference","module":"@angular/core/testing","name":"TestComponentRenderer"},"useClass":{"__symbolic":"reference","module":"../platform_browser_dynamic_testing_private","name":"DOMTestComponentRenderer"}},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"NgZone"},"useFactory":{"__symbolic":"reference","name":"createNgZone"}}]}} |
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
Mixed license
License(Experimental) Package contains multiple licenses.
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
597831
6590
1