@angular/platform-browser
Advanced tools
Comparing version 2.0.1 to 2.0.2
/** | ||
* @license Angular v2.0.1 | ||
* @license Angular v2.0.2 | ||
* (c) 2010-2016 Google, Inc. https://angular.io/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
{ | ||
"name": "@angular/platform-browser", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Angular - library for using Angular in a web browser", | ||
@@ -11,4 +11,4 @@ "main": "bundles/platform-browser.umd.js", | ||
"peerDependencies": { | ||
"@angular/core": "2.0.1", | ||
"@angular/common": "2.0.1" | ||
"@angular/core": "2.0.2", | ||
"@angular/common": "2.0.2" | ||
}, | ||
@@ -15,0 +15,0 @@ "repository": { |
@@ -11,17 +11,17 @@ import { GenericBrowserDomAdapter } from './generic_browser_adapter'; | ||
static makeCurrent(): void; | ||
hasProperty(element: any, name: string): boolean; | ||
setProperty(el: any, name: string, value: any): void; | ||
getProperty(el: any, name: string): any; | ||
invoke(el: any, methodName: string, args: any[]): any; | ||
logError(error: any): void; | ||
log(error: any): void; | ||
logGroup(error: any): void; | ||
hasProperty(element: Node, name: string): boolean; | ||
setProperty(el: Node, name: string, value: any): void; | ||
getProperty(el: Node, name: string): any; | ||
invoke(el: Node, methodName: string, args: any[]): any; | ||
logError(error: string): void; | ||
log(error: string): void; | ||
logGroup(error: string): void; | ||
logGroupEnd(): void; | ||
attrToPropMap: any; | ||
query(selector: string): any; | ||
querySelector(el: any, selector: string): HTMLElement; | ||
querySelector(el: Element, selector: string): HTMLElement; | ||
querySelectorAll(el: any, selector: string): any[]; | ||
on(el: any, evt: any, listener: any): void; | ||
onAndCancel(el: any, evt: any, listener: any): Function; | ||
dispatchEvent(el: any, evt: any): void; | ||
on(el: Node, evt: any, listener: any): void; | ||
onAndCancel(el: Node, evt: any, listener: any): Function; | ||
dispatchEvent(el: Node, evt: any): void; | ||
createMouseEvent(eventType: string): MouseEvent; | ||
@@ -31,5 +31,5 @@ createEvent(eventType: any): Event; | ||
isPrevented(evt: Event): boolean; | ||
getInnerHTML(el: any): string; | ||
getTemplateContent(el: any): Node; | ||
getOuterHTML(el: any): string; | ||
getInnerHTML(el: HTMLElement): string; | ||
getTemplateContent(el: Node): Node; | ||
getOuterHTML(el: HTMLElement): string; | ||
nodeName(node: Node): string; | ||
@@ -39,18 +39,18 @@ nodeValue(node: Node): string; | ||
content(node: Node): Node; | ||
firstChild(el: any): Node; | ||
nextSibling(el: any): Node; | ||
parentElement(el: any): Node; | ||
firstChild(el: Node): Node; | ||
nextSibling(el: Node): Node; | ||
parentElement(el: Node): Node; | ||
childNodes(el: any): Node[]; | ||
childNodesAsList(el: any): any[]; | ||
clearNodes(el: any): void; | ||
appendChild(el: any, node: any): void; | ||
removeChild(el: any, node: any): void; | ||
replaceChild(el: Node, newChild: any, oldChild: any): void; | ||
remove(node: any): Node; | ||
insertBefore(el: any, node: any): void; | ||
insertAllBefore(el: any, nodes: any): void; | ||
insertAfter(el: any, node: any): void; | ||
setInnerHTML(el: any, value: any): void; | ||
getText(el: any): string; | ||
setText(el: any, value: string): void; | ||
childNodesAsList(el: Node): any[]; | ||
clearNodes(el: Node): void; | ||
appendChild(el: Node, node: Node): void; | ||
removeChild(el: Node, node: Node): void; | ||
replaceChild(el: Node, newChild: Node, oldChild: Node): void; | ||
remove(node: Node): Node; | ||
insertBefore(el: Node, node: Node): void; | ||
insertAllBefore(el: Node, nodes: Node[]): void; | ||
insertAfter(el: Node, node: any): void; | ||
setInnerHTML(el: Element, value: string): void; | ||
getText(el: Node): string; | ||
setText(el: Node, value: string): void; | ||
getValue(el: any): string; | ||
@@ -62,4 +62,4 @@ setValue(el: any, value: string): void; | ||
createTemplate(html: any): HTMLElement; | ||
createElement(tagName: any, doc?: Document): HTMLElement; | ||
createElementNS(ns: any, tagName: any, doc?: Document): Element; | ||
createElement(tagName: string, doc?: Document): HTMLElement; | ||
createElementNS(ns: string, tagName: string, doc?: Document): Element; | ||
createTextNode(text: string, doc?: Document): Text; | ||
@@ -84,18 +84,18 @@ createScriptTag(attrName: string, attrValue: string, doc?: Document): HTMLScriptElement; | ||
attributeMap(element: any): Map<string, string>; | ||
hasAttribute(element: any, attribute: string): boolean; | ||
hasAttributeNS(element: any, ns: string, attribute: string): boolean; | ||
getAttribute(element: any, attribute: string): string; | ||
getAttributeNS(element: any, ns: string, name: string): string; | ||
setAttribute(element: any, name: string, value: string): void; | ||
setAttributeNS(element: any, ns: string, name: string, value: string): void; | ||
removeAttribute(element: any, attribute: string): void; | ||
removeAttributeNS(element: any, ns: string, name: string): void; | ||
templateAwareRoot(el: any): any; | ||
hasAttribute(element: Element, attribute: string): boolean; | ||
hasAttributeNS(element: Element, ns: string, attribute: string): boolean; | ||
getAttribute(element: Element, attribute: string): string; | ||
getAttributeNS(element: Element, ns: string, name: string): string; | ||
setAttribute(element: Element, name: string, value: string): void; | ||
setAttributeNS(element: Element, ns: string, name: string, value: string): void; | ||
removeAttribute(element: Element, attribute: string): void; | ||
removeAttributeNS(element: Element, ns: string, name: string): void; | ||
templateAwareRoot(el: Node): any; | ||
createHtmlDocument(): HTMLDocument; | ||
defaultDoc(): HTMLDocument; | ||
getBoundingClientRect(el: any): any; | ||
getBoundingClientRect(el: Element): any; | ||
getTitle(): string; | ||
setTitle(newTitle: string): void; | ||
elementMatches(n: any, selector: string): boolean; | ||
isTemplateElement(el: any): boolean; | ||
isTemplateElement(el: Node): boolean; | ||
isTextNode(node: Node): boolean; | ||
@@ -116,4 +116,4 @@ isCommentNode(node: Node): boolean; | ||
getUserAgent(): string; | ||
setData(element: any, name: string, value: string): void; | ||
getData(element: any, name: string): string; | ||
setData(element: Element, name: string, value: string): void; | ||
getData(element: Element, name: string): string; | ||
getComputedStyle(element: any): any; | ||
@@ -120,0 +120,0 @@ setGlobalVar(path: string, value: any): void; |
@@ -14,3 +14,3 @@ /** | ||
import { setRootDomAdapter } from '../dom/dom_adapter'; | ||
import { DateWrapper, global, isBlank, isFunction, isPresent, setValueOnPath } from '../facade/lang'; | ||
import { global, isBlank, isPresent, setValueOnPath } from '../facade/lang'; | ||
import { GenericBrowserDomAdapter } from './generic_browser_adapter'; | ||
@@ -21,3 +21,3 @@ var _attrToPropMap = { | ||
'readonly': 'readOnly', | ||
'tabindex': 'tabIndex' | ||
'tabindex': 'tabIndex', | ||
}; | ||
@@ -78,32 +78,14 @@ var DOM_KEY_LOCATION_NUMPAD = 3; | ||
BrowserDomAdapter.makeCurrent = function () { setRootDomAdapter(new BrowserDomAdapter()); }; | ||
BrowserDomAdapter.prototype.hasProperty = function (element /** TODO #9100 */, name) { return name in element; }; | ||
BrowserDomAdapter.prototype.hasProperty = function (element, name) { return name in element; }; | ||
BrowserDomAdapter.prototype.setProperty = function (el, name, value) { el[name] = value; }; | ||
BrowserDomAdapter.prototype.getProperty = function (el, name) { return el[name]; }; | ||
BrowserDomAdapter.prototype.invoke = function (el, methodName, args) { | ||
el[methodName].apply(el, args); | ||
}; | ||
BrowserDomAdapter.prototype.invoke = function (el, methodName, args) { (_a = el)[methodName].apply(_a, args); var _a; }; | ||
// TODO(tbosch): move this into a separate environment class once we have it | ||
BrowserDomAdapter.prototype.logError = function (error /** TODO #9100 */) { | ||
if (window.console.error) { | ||
window.console.error(error); | ||
} | ||
else { | ||
window.console.log(error); | ||
} | ||
BrowserDomAdapter.prototype.logError = function (error) { (window.console.error || window.console.log)(error); }; | ||
BrowserDomAdapter.prototype.log = function (error) { window.console.log(error); }; | ||
BrowserDomAdapter.prototype.logGroup = function (error) { | ||
window.console.group && window.console.group(error); | ||
this.logError(error); | ||
}; | ||
BrowserDomAdapter.prototype.log = function (error /** TODO #9100 */) { window.console.log(error); }; | ||
BrowserDomAdapter.prototype.logGroup = function (error /** TODO #9100 */) { | ||
if (window.console.group) { | ||
window.console.group(error); | ||
this.logError(error); | ||
} | ||
else { | ||
window.console.log(error); | ||
} | ||
}; | ||
BrowserDomAdapter.prototype.logGroupEnd = function () { | ||
if (window.console.groupEnd) { | ||
window.console.groupEnd(); | ||
} | ||
}; | ||
BrowserDomAdapter.prototype.logGroupEnd = function () { window.console.groupEnd && window.console.groupEnd(); }; | ||
Object.defineProperty(BrowserDomAdapter.prototype, "attrToPropMap", { | ||
@@ -115,13 +97,9 @@ get: function () { return _attrToPropMap; }, | ||
BrowserDomAdapter.prototype.query = function (selector) { return document.querySelector(selector); }; | ||
BrowserDomAdapter.prototype.querySelector = function (el /** TODO #9100 */, selector) { | ||
BrowserDomAdapter.prototype.querySelector = function (el, selector) { | ||
return el.querySelector(selector); | ||
}; | ||
BrowserDomAdapter.prototype.querySelectorAll = function (el /** TODO #9100 */, selector) { | ||
return el.querySelectorAll(selector); | ||
}; | ||
BrowserDomAdapter.prototype.on = function (el /** TODO #9100 */, evt /** TODO #9100 */, listener /** TODO #9100 */) { | ||
BrowserDomAdapter.prototype.querySelectorAll = function (el, selector) { return el.querySelectorAll(selector); }; | ||
BrowserDomAdapter.prototype.on = function (el, evt, listener) { el.addEventListener(evt, listener, false); }; | ||
BrowserDomAdapter.prototype.onAndCancel = function (el, evt, listener) { | ||
el.addEventListener(evt, listener, false); | ||
}; | ||
BrowserDomAdapter.prototype.onAndCancel = function (el /** TODO #9100 */, evt /** TODO #9100 */, listener /** TODO #9100 */) { | ||
el.addEventListener(evt, listener, false); | ||
// Needed to follow Dart's subscription semantic, until fix of | ||
@@ -131,3 +109,3 @@ // https://code.google.com/p/dart/issues/detail?id=17406 | ||
}; | ||
BrowserDomAdapter.prototype.dispatchEvent = function (el /** TODO #9100 */, evt /** TODO #9100 */) { el.dispatchEvent(evt); }; | ||
BrowserDomAdapter.prototype.dispatchEvent = function (el, evt) { el.dispatchEvent(evt); }; | ||
BrowserDomAdapter.prototype.createMouseEvent = function (eventType) { | ||
@@ -138,3 +116,3 @@ var evt = document.createEvent('MouseEvent'); | ||
}; | ||
BrowserDomAdapter.prototype.createEvent = function (eventType /** TODO #9100 */) { | ||
BrowserDomAdapter.prototype.createEvent = function (eventType) { | ||
var evt = document.createEvent('Event'); | ||
@@ -151,7 +129,7 @@ evt.initEvent(eventType, true, true); | ||
}; | ||
BrowserDomAdapter.prototype.getInnerHTML = function (el /** TODO #9100 */) { return el.innerHTML; }; | ||
BrowserDomAdapter.prototype.getTemplateContent = function (el /** TODO #9100 */) { | ||
BrowserDomAdapter.prototype.getInnerHTML = function (el) { return el.innerHTML; }; | ||
BrowserDomAdapter.prototype.getTemplateContent = function (el) { | ||
return 'content' in el && el instanceof HTMLTemplateElement ? el.content : null; | ||
}; | ||
BrowserDomAdapter.prototype.getOuterHTML = function (el /** TODO #9100 */) { return el.outerHTML; }; | ||
BrowserDomAdapter.prototype.getOuterHTML = function (el) { return el.outerHTML; }; | ||
BrowserDomAdapter.prototype.nodeName = function (node) { return node.nodeName; }; | ||
@@ -168,7 +146,7 @@ BrowserDomAdapter.prototype.nodeValue = function (node) { return node.nodeValue; }; | ||
}; | ||
BrowserDomAdapter.prototype.firstChild = function (el /** TODO #9100 */) { return el.firstChild; }; | ||
BrowserDomAdapter.prototype.nextSibling = function (el /** TODO #9100 */) { return el.nextSibling; }; | ||
BrowserDomAdapter.prototype.parentElement = function (el /** TODO #9100 */) { return el.parentNode; }; | ||
BrowserDomAdapter.prototype.childNodes = function (el /** TODO #9100 */) { return el.childNodes; }; | ||
BrowserDomAdapter.prototype.childNodesAsList = function (el /** TODO #9100 */) { | ||
BrowserDomAdapter.prototype.firstChild = function (el) { return el.firstChild; }; | ||
BrowserDomAdapter.prototype.nextSibling = function (el) { return el.nextSibling; }; | ||
BrowserDomAdapter.prototype.parentElement = function (el) { return el.parentNode; }; | ||
BrowserDomAdapter.prototype.childNodes = function (el) { return el.childNodes; }; | ||
BrowserDomAdapter.prototype.childNodesAsList = function (el) { | ||
var childNodes = el.childNodes; | ||
@@ -181,3 +159,3 @@ var res = new Array(childNodes.length); | ||
}; | ||
BrowserDomAdapter.prototype.clearNodes = function (el /** TODO #9100 */) { | ||
BrowserDomAdapter.prototype.clearNodes = function (el) { | ||
while (el.firstChild) { | ||
@@ -187,8 +165,6 @@ el.removeChild(el.firstChild); | ||
}; | ||
BrowserDomAdapter.prototype.appendChild = function (el /** TODO #9100 */, node /** TODO #9100 */) { el.appendChild(node); }; | ||
BrowserDomAdapter.prototype.removeChild = function (el /** TODO #9100 */, node /** TODO #9100 */) { el.removeChild(node); }; | ||
BrowserDomAdapter.prototype.replaceChild = function (el, newChild /** TODO #9100 */, oldChild /** TODO #9100 */) { | ||
el.replaceChild(newChild, oldChild); | ||
}; | ||
BrowserDomAdapter.prototype.remove = function (node /** TODO #9100 */) { | ||
BrowserDomAdapter.prototype.appendChild = function (el, node) { el.appendChild(node); }; | ||
BrowserDomAdapter.prototype.removeChild = function (el, node) { el.removeChild(node); }; | ||
BrowserDomAdapter.prototype.replaceChild = function (el, newChild, oldChild) { el.replaceChild(newChild, oldChild); }; | ||
BrowserDomAdapter.prototype.remove = function (node) { | ||
if (node.parentNode) { | ||
@@ -199,21 +175,16 @@ node.parentNode.removeChild(node); | ||
}; | ||
BrowserDomAdapter.prototype.insertBefore = function (el /** TODO #9100 */, node /** TODO #9100 */) { | ||
el.parentNode.insertBefore(node, el); | ||
BrowserDomAdapter.prototype.insertBefore = function (el, node) { el.parentNode.insertBefore(node, el); }; | ||
BrowserDomAdapter.prototype.insertAllBefore = function (el, nodes) { | ||
nodes.forEach(function (n) { return el.parentNode.insertBefore(n, el); }); | ||
}; | ||
BrowserDomAdapter.prototype.insertAllBefore = function (el /** TODO #9100 */, nodes /** TODO #9100 */) { | ||
nodes.forEach(function (n /** TODO #9100 */) { return el.parentNode.insertBefore(n, el); }); | ||
}; | ||
BrowserDomAdapter.prototype.insertAfter = function (el /** TODO #9100 */, node /** TODO #9100 */) { | ||
el.parentNode.insertBefore(node, el.nextSibling); | ||
}; | ||
BrowserDomAdapter.prototype.setInnerHTML = function (el /** TODO #9100 */, value /** TODO #9100 */) { el.innerHTML = value; }; | ||
BrowserDomAdapter.prototype.getText = function (el /** TODO #9100 */) { return el.textContent; }; | ||
// TODO(vicb): removed Element type because it does not support StyleElement | ||
BrowserDomAdapter.prototype.setText = function (el /** TODO #9100 */, value) { el.textContent = value; }; | ||
BrowserDomAdapter.prototype.getValue = function (el /** TODO #9100 */) { return el.value; }; | ||
BrowserDomAdapter.prototype.setValue = function (el /** TODO #9100 */, value) { el.value = value; }; | ||
BrowserDomAdapter.prototype.getChecked = function (el /** TODO #9100 */) { return el.checked; }; | ||
BrowserDomAdapter.prototype.setChecked = function (el /** TODO #9100 */, value) { el.checked = value; }; | ||
BrowserDomAdapter.prototype.insertAfter = function (el, node) { el.parentNode.insertBefore(node, el.nextSibling); }; | ||
BrowserDomAdapter.prototype.setInnerHTML = function (el, value) { el.innerHTML = value; }; | ||
BrowserDomAdapter.prototype.getText = function (el) { return el.textContent; }; | ||
BrowserDomAdapter.prototype.setText = function (el, value) { el.textContent = value; }; | ||
BrowserDomAdapter.prototype.getValue = function (el) { return el.value; }; | ||
BrowserDomAdapter.prototype.setValue = function (el, value) { el.value = value; }; | ||
BrowserDomAdapter.prototype.getChecked = function (el) { return el.checked; }; | ||
BrowserDomAdapter.prototype.setChecked = function (el, value) { el.checked = value; }; | ||
BrowserDomAdapter.prototype.createComment = function (text) { return document.createComment(text); }; | ||
BrowserDomAdapter.prototype.createTemplate = function (html /** TODO #9100 */) { | ||
BrowserDomAdapter.prototype.createTemplate = function (html) { | ||
var t = document.createElement('template'); | ||
@@ -223,7 +194,7 @@ t.innerHTML = html; | ||
}; | ||
BrowserDomAdapter.prototype.createElement = function (tagName /* TODO #9100 */, doc) { | ||
BrowserDomAdapter.prototype.createElement = function (tagName, doc) { | ||
if (doc === void 0) { doc = document; } | ||
return doc.createElement(tagName); | ||
}; | ||
BrowserDomAdapter.prototype.createElementNS = function (ns /* TODO #9100 */, tagName /* TODO #9100 */, doc) { | ||
BrowserDomAdapter.prototype.createElementNS = function (ns, tagName, doc) { | ||
if (doc === void 0) { doc = document; } | ||
@@ -252,28 +223,24 @@ return doc.createElementNS(ns, tagName); | ||
BrowserDomAdapter.prototype.clone = function (node) { return node.cloneNode(true); }; | ||
BrowserDomAdapter.prototype.getElementsByClassName = function (element /** TODO #9100 */, name) { | ||
BrowserDomAdapter.prototype.getElementsByClassName = function (element, name) { | ||
return element.getElementsByClassName(name); | ||
}; | ||
BrowserDomAdapter.prototype.getElementsByTagName = function (element /** TODO #9100 */, name) { | ||
BrowserDomAdapter.prototype.getElementsByTagName = function (element, name) { | ||
return element.getElementsByTagName(name); | ||
}; | ||
BrowserDomAdapter.prototype.classList = function (element /** TODO #9100 */) { | ||
return Array.prototype.slice.call(element.classList, 0); | ||
}; | ||
BrowserDomAdapter.prototype.addClass = function (element /** TODO #9100 */, className) { element.classList.add(className); }; | ||
BrowserDomAdapter.prototype.removeClass = function (element /** TODO #9100 */, className) { | ||
element.classList.remove(className); | ||
}; | ||
BrowserDomAdapter.prototype.hasClass = function (element /** TODO #9100 */, className) { | ||
BrowserDomAdapter.prototype.classList = function (element) { return Array.prototype.slice.call(element.classList, 0); }; | ||
BrowserDomAdapter.prototype.addClass = function (element, className) { element.classList.add(className); }; | ||
BrowserDomAdapter.prototype.removeClass = function (element, className) { element.classList.remove(className); }; | ||
BrowserDomAdapter.prototype.hasClass = function (element, className) { | ||
return element.classList.contains(className); | ||
}; | ||
BrowserDomAdapter.prototype.setStyle = function (element /** TODO #9100 */, styleName, styleValue) { | ||
BrowserDomAdapter.prototype.setStyle = function (element, styleName, styleValue) { | ||
element.style[styleName] = styleValue; | ||
}; | ||
BrowserDomAdapter.prototype.removeStyle = function (element /** TODO #9100 */, stylename) { | ||
element.style[stylename] = null; | ||
BrowserDomAdapter.prototype.removeStyle = function (element, stylename) { | ||
// IE requires '' instead of null | ||
// see https://github.com/angular/angular/issues/7916 | ||
element.style[stylename] = ''; | ||
}; | ||
BrowserDomAdapter.prototype.getStyle = function (element /** TODO #9100 */, stylename) { | ||
return element.style[stylename]; | ||
}; | ||
BrowserDomAdapter.prototype.hasStyle = function (element /** TODO #9100 */, styleName, styleValue) { | ||
BrowserDomAdapter.prototype.getStyle = function (element, stylename) { return element.style[stylename]; }; | ||
BrowserDomAdapter.prototype.hasStyle = function (element, styleName, styleValue) { | ||
if (styleValue === void 0) { styleValue = null; } | ||
@@ -283,4 +250,4 @@ var value = this.getStyle(element, styleName) || ''; | ||
}; | ||
BrowserDomAdapter.prototype.tagName = function (element /** TODO #9100 */) { return element.tagName; }; | ||
BrowserDomAdapter.prototype.attributeMap = function (element /** TODO #9100 */) { | ||
BrowserDomAdapter.prototype.tagName = function (element) { return element.tagName; }; | ||
BrowserDomAdapter.prototype.attributeMap = function (element) { | ||
var res = new Map(); | ||
@@ -294,29 +261,23 @@ var elAttrs = element.attributes; | ||
}; | ||
BrowserDomAdapter.prototype.hasAttribute = function (element /** TODO #9100 */, attribute) { | ||
BrowserDomAdapter.prototype.hasAttribute = function (element, attribute) { | ||
return element.hasAttribute(attribute); | ||
}; | ||
BrowserDomAdapter.prototype.hasAttributeNS = function (element /** TODO #9100 */, ns, attribute) { | ||
BrowserDomAdapter.prototype.hasAttributeNS = function (element, ns, attribute) { | ||
return element.hasAttributeNS(ns, attribute); | ||
}; | ||
BrowserDomAdapter.prototype.getAttribute = function (element /** TODO #9100 */, attribute) { | ||
BrowserDomAdapter.prototype.getAttribute = function (element, attribute) { | ||
return element.getAttribute(attribute); | ||
}; | ||
BrowserDomAdapter.prototype.getAttributeNS = function (element /** TODO #9100 */, ns, name) { | ||
BrowserDomAdapter.prototype.getAttributeNS = function (element, ns, name) { | ||
return element.getAttributeNS(ns, name); | ||
}; | ||
BrowserDomAdapter.prototype.setAttribute = function (element /** TODO #9100 */, name, value) { | ||
element.setAttribute(name, value); | ||
}; | ||
BrowserDomAdapter.prototype.setAttributeNS = function (element /** TODO #9100 */, ns, name, value) { | ||
BrowserDomAdapter.prototype.setAttribute = function (element, name, value) { element.setAttribute(name, value); }; | ||
BrowserDomAdapter.prototype.setAttributeNS = function (element, ns, name, value) { | ||
element.setAttributeNS(ns, name, value); | ||
}; | ||
BrowserDomAdapter.prototype.removeAttribute = function (element /** TODO #9100 */, attribute) { | ||
element.removeAttribute(attribute); | ||
}; | ||
BrowserDomAdapter.prototype.removeAttributeNS = function (element /** TODO #9100 */, ns, name) { | ||
BrowserDomAdapter.prototype.removeAttribute = function (element, attribute) { element.removeAttribute(attribute); }; | ||
BrowserDomAdapter.prototype.removeAttributeNS = function (element, ns, name) { | ||
element.removeAttributeNS(ns, name); | ||
}; | ||
BrowserDomAdapter.prototype.templateAwareRoot = function (el /** TODO #9100 */) { | ||
return this.isTemplateElement(el) ? this.content(el) : el; | ||
}; | ||
BrowserDomAdapter.prototype.templateAwareRoot = function (el) { return this.isTemplateElement(el) ? this.content(el) : el; }; | ||
BrowserDomAdapter.prototype.createHtmlDocument = function () { | ||
@@ -326,3 +287,3 @@ return document.implementation.createHTMLDocument('fakeTitle'); | ||
BrowserDomAdapter.prototype.defaultDoc = function () { return document; }; | ||
BrowserDomAdapter.prototype.getBoundingClientRect = function (el /** TODO #9100 */) { | ||
BrowserDomAdapter.prototype.getBoundingClientRect = function (el) { | ||
try { | ||
@@ -337,16 +298,9 @@ return el.getBoundingClientRect(); | ||
BrowserDomAdapter.prototype.setTitle = function (newTitle) { document.title = newTitle || ''; }; | ||
BrowserDomAdapter.prototype.elementMatches = function (n /** TODO #9100 */, selector) { | ||
var matches = false; | ||
BrowserDomAdapter.prototype.elementMatches = function (n, selector) { | ||
if (n instanceof HTMLElement) { | ||
if (n.matches) { | ||
matches = n.matches(selector); | ||
} | ||
else if (n.msMatchesSelector) { | ||
matches = n.msMatchesSelector(selector); | ||
} | ||
else if (n.webkitMatchesSelector) { | ||
matches = n.webkitMatchesSelector(selector); | ||
} | ||
return n.matches && n.matches(selector) || | ||
n.msMatchesSelector && n.msMatchesSelector(selector) || | ||
n.webkitMatchesSelector && n.webkitMatchesSelector(selector); | ||
} | ||
return matches; | ||
return false; | ||
}; | ||
@@ -359,16 +313,10 @@ BrowserDomAdapter.prototype.isTemplateElement = function (el) { | ||
BrowserDomAdapter.prototype.isElementNode = function (node) { return node.nodeType === Node.ELEMENT_NODE; }; | ||
BrowserDomAdapter.prototype.hasShadowRoot = function (node /** TODO #9100 */) { | ||
BrowserDomAdapter.prototype.hasShadowRoot = function (node) { | ||
return isPresent(node.shadowRoot) && node instanceof HTMLElement; | ||
}; | ||
BrowserDomAdapter.prototype.isShadowRoot = function (node /** TODO #9100 */) { return node instanceof DocumentFragment; }; | ||
BrowserDomAdapter.prototype.importIntoDoc = function (node) { | ||
var toImport = node; | ||
if (this.isTemplateElement(node)) { | ||
toImport = this.content(node); | ||
} | ||
return document.importNode(toImport, true); | ||
}; | ||
BrowserDomAdapter.prototype.isShadowRoot = function (node) { return node instanceof DocumentFragment; }; | ||
BrowserDomAdapter.prototype.importIntoDoc = function (node) { return document.importNode(this.templateAwareRoot(node), true); }; | ||
BrowserDomAdapter.prototype.adoptNode = function (node) { return document.adoptNode(node); }; | ||
BrowserDomAdapter.prototype.getHref = function (el) { return el.href; }; | ||
BrowserDomAdapter.prototype.getEventKey = function (event /** TODO #9100 */) { | ||
BrowserDomAdapter.prototype.getEventKey = function (event) { | ||
var key = event.key; | ||
@@ -378,4 +326,3 @@ if (isBlank(key)) { | ||
// keyIdentifier is defined in the old draft of DOM Level 3 Events implemented by Chrome and | ||
// Safari | ||
// cf | ||
// Safari cf | ||
// http://www.w3.org/TR/2007/WD-DOM-Level-3-Events-20071221/events.html#Events-KeyboardEvents-Interfaces | ||
@@ -395,15 +342,12 @@ if (isBlank(key)) { | ||
} | ||
if (_keyMap.hasOwnProperty(key)) { | ||
key = _keyMap[key]; | ||
} | ||
return key; | ||
return _keyMap[key] || key; | ||
}; | ||
BrowserDomAdapter.prototype.getGlobalEventTarget = function (target) { | ||
if (target == 'window') { | ||
if (target === 'window') { | ||
return window; | ||
} | ||
else if (target == 'document') { | ||
if (target === 'document') { | ||
return document; | ||
} | ||
else if (target == 'body') { | ||
if (target === 'body') { | ||
return document.body; | ||
@@ -416,28 +360,23 @@ } | ||
var href = getBaseElementHref(); | ||
if (isBlank(href)) { | ||
return null; | ||
} | ||
return relativePath(href); | ||
return isBlank(href) ? null : relativePath(href); | ||
}; | ||
BrowserDomAdapter.prototype.resetBaseElement = function () { baseElement = null; }; | ||
BrowserDomAdapter.prototype.getUserAgent = function () { return window.navigator.userAgent; }; | ||
BrowserDomAdapter.prototype.setData = function (element /** TODO #9100 */, name, value) { | ||
BrowserDomAdapter.prototype.setData = function (element, name, value) { | ||
this.setAttribute(element, 'data-' + name, value); | ||
}; | ||
BrowserDomAdapter.prototype.getData = function (element /** TODO #9100 */, name) { | ||
BrowserDomAdapter.prototype.getData = function (element, name) { | ||
return this.getAttribute(element, 'data-' + name); | ||
}; | ||
BrowserDomAdapter.prototype.getComputedStyle = function (element /** TODO #9100 */) { return getComputedStyle(element); }; | ||
BrowserDomAdapter.prototype.getComputedStyle = function (element) { return getComputedStyle(element); }; | ||
// TODO(tbosch): move this into a separate environment class once we have it | ||
BrowserDomAdapter.prototype.setGlobalVar = function (path, value) { setValueOnPath(global, path, value); }; | ||
BrowserDomAdapter.prototype.supportsWebAnimation = function () { return isFunction(Element.prototype['animate']); }; | ||
BrowserDomAdapter.prototype.supportsWebAnimation = function () { | ||
return typeof Element.prototype['animate'] === 'function'; | ||
}; | ||
BrowserDomAdapter.prototype.performanceNow = function () { | ||
// performance.now() is not available in all browsers, see | ||
// http://caniuse.com/#search=performance.now | ||
if (isPresent(window.performance) && isPresent(window.performance.now)) { | ||
return window.performance.now(); | ||
} | ||
else { | ||
return DateWrapper.toMillis(DateWrapper.now()); | ||
} | ||
return window.performance && window.performance.now ? window.performance.now() : | ||
new Date().getTime(); | ||
}; | ||
@@ -455,5 +394,5 @@ BrowserDomAdapter.prototype.supportsCookies = function () { return true; }; | ||
function getBaseElementHref() { | ||
if (isBlank(baseElement)) { | ||
if (!baseElement) { | ||
baseElement = document.querySelector('base'); | ||
if (isBlank(baseElement)) { | ||
if (!baseElement) { | ||
return null; | ||
@@ -465,5 +404,5 @@ } | ||
// based on urlUtils.js in AngularJS 1 | ||
var urlParsingNode = null; | ||
function relativePath(url /** TODO #9100 */) { | ||
if (isBlank(urlParsingNode)) { | ||
var urlParsingNode; | ||
function relativePath(url) { | ||
if (!urlParsingNode) { | ||
urlParsingNode = document.createElement('a'); | ||
@@ -470,0 +409,0 @@ } |
@@ -14,4 +14,3 @@ /** | ||
import { DomAdapter } from '../dom/dom_adapter'; | ||
import { StringMapWrapper } from '../facade/collection'; | ||
import { isFunction, isPresent } from '../facade/lang'; | ||
import { isPresent } from '../facade/lang'; | ||
/** | ||
@@ -31,4 +30,4 @@ * Provides DOM operations in any browser environment. | ||
try { | ||
var element = this.createElement('div', this.defaultDoc()); | ||
if (isPresent(this.getStyle(element, 'animationName'))) { | ||
var element_1 = this.createElement('div', this.defaultDoc()); | ||
if (isPresent(this.getStyle(element_1, 'animationName'))) { | ||
this._animationPrefix = ''; | ||
@@ -39,3 +38,3 @@ } | ||
for (var i = 0; i < domPrefixes.length; i++) { | ||
if (isPresent(this.getStyle(element, domPrefixes[i] + 'AnimationName'))) { | ||
if (isPresent(this.getStyle(element_1, domPrefixes[i] + 'AnimationName'))) { | ||
this._animationPrefix = '-' + domPrefixes[i].toLowerCase() + '-'; | ||
@@ -46,3 +45,3 @@ break; | ||
} | ||
var transEndEventNames = { | ||
var transEndEventNames_1 = { | ||
WebkitTransition: 'webkitTransitionEnd', | ||
@@ -53,5 +52,5 @@ MozTransition: 'transitionend', | ||
}; | ||
StringMapWrapper.forEach(transEndEventNames, function (value, key) { | ||
if (isPresent(_this.getStyle(element, key))) { | ||
_this._transitionEnd = value; | ||
Object.keys(transEndEventNames_1).forEach(function (key) { | ||
if (isPresent(_this.getStyle(element_1, key))) { | ||
_this._transitionEnd = transEndEventNames_1[key]; | ||
} | ||
@@ -71,8 +70,6 @@ }); | ||
GenericBrowserDomAdapter.prototype.supportsNativeShadowDOM = function () { | ||
return isFunction(this.defaultDoc().body.createShadowRoot); | ||
return typeof this.defaultDoc().body.createShadowRoot === 'function'; | ||
}; | ||
GenericBrowserDomAdapter.prototype.getAnimationPrefix = function () { | ||
return isPresent(this._animationPrefix) ? this._animationPrefix : ''; | ||
}; | ||
GenericBrowserDomAdapter.prototype.getTransitionEnd = function () { return isPresent(this._transitionEnd) ? this._transitionEnd : ''; }; | ||
GenericBrowserDomAdapter.prototype.getAnimationPrefix = function () { return this._animationPrefix ? this._animationPrefix : ''; }; | ||
GenericBrowserDomAdapter.prototype.getTransitionEnd = function () { return this._transitionEnd ? this._transitionEnd : ''; }; | ||
GenericBrowserDomAdapter.prototype.supportsAnimation = function () { | ||
@@ -79,0 +76,0 @@ return isPresent(this._animationPrefix) && isPresent(this._transitionEnd); |
@@ -8,3 +8,2 @@ /** | ||
*/ | ||
import { isBlank } from '../facade/lang'; | ||
var _DOM = null; | ||
@@ -18,3 +17,3 @@ export function getDOM() { | ||
export function setRootDomAdapter(adapter) { | ||
if (isBlank(_DOM)) { | ||
if (!_DOM) { | ||
_DOM = adapter; | ||
@@ -21,0 +20,0 @@ } |
@@ -38,3 +38,3 @@ /** | ||
var renderer = this.registeredComponents.get(componentProto.id); | ||
if (isBlank(renderer)) { | ||
if (!renderer) { | ||
renderer = new DomRenderer(this, componentProto, this.animationDriver); | ||
@@ -41,0 +41,0 @@ this.registeredComponents.set(componentProto.id, renderer); |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":1,"metadata":{"DomRootRenderer_":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"./dom_tokens","name":"DOCUMENT"}]}],null,null,null],"parameters":[{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","module":"./events/event_manager","name":"EventManager"},{"__symbolic":"reference","module":"./shared_styles_host","name":"DomSharedStylesHost"},{"__symbolic":"reference","module":"./animation_driver","name":"AnimationDriver"}]}]}},"COMPONENT_VARIABLE":"%COMP%","HOST_ATTR":{"__symbolic":"error","message":"Expression form not supported","line":272,"character":25},"CONTENT_ATTR":{"__symbolic":"error","message":"Expression form not supported","line":273,"character":28}}} | ||
{"__symbolic":"module","version":1,"metadata":{"DomRootRenderer_":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"./dom_tokens","name":"DOCUMENT"}]}],null,null,null],"parameters":[{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","module":"./events/event_manager","name":"EventManager"},{"__symbolic":"reference","module":"./shared_styles_host","name":"DomSharedStylesHost"},{"__symbolic":"reference","module":"./animation_driver","name":"AnimationDriver"}]}]}},"COMPONENT_VARIABLE":"%COMP%","HOST_ATTR":{"__symbolic":"error","message":"Expression form not supported","line":270,"character":25},"CONTENT_ATTR":{"__symbolic":"error","message":"Expression form not supported","line":271,"character":28}}} |
@@ -14,3 +14,3 @@ /** | ||
import { Injectable } from '@angular/core'; | ||
import { ListWrapper, StringMapWrapper } from '../../facade/collection'; | ||
import { ListWrapper } from '../../facade/collection'; | ||
import { StringWrapper, isPresent } from '../../facade/lang'; | ||
@@ -39,5 +39,5 @@ import { getDOM } from '../dom_adapter'; | ||
var parsedEvent = KeyEventsPlugin.parseEventName(eventName); | ||
var outsideHandler = KeyEventsPlugin.eventCallback(element, StringMapWrapper.get(parsedEvent, 'fullKey'), handler, this.manager.getZone()); | ||
var outsideHandler = KeyEventsPlugin.eventCallback(element, parsedEvent['fullKey'], handler, this.manager.getZone()); | ||
return this.manager.getZone().runOutsideAngular(function () { | ||
return getDOM().onAndCancel(element, StringMapWrapper.get(parsedEvent, 'domEventName'), outsideHandler); | ||
return getDOM().onAndCancel(element, parsedEvent['domEventName'], outsideHandler); | ||
}); | ||
@@ -67,4 +67,4 @@ }; | ||
var result = {}; | ||
StringMapWrapper.set(result, 'domEventName', domEventName); | ||
StringMapWrapper.set(result, 'fullKey', fullKey); | ||
result['domEventName'] = domEventName; | ||
result['fullKey'] = fullKey; | ||
return result; | ||
@@ -84,3 +84,3 @@ }; | ||
if (modifierName != key) { | ||
var modifierGetter = StringMapWrapper.get(modifierKeyGetters, modifierName); | ||
var modifierGetter = modifierKeyGetters[modifierName]; | ||
if (modifierGetter(event)) { | ||
@@ -87,0 +87,0 @@ fullKey += modifierName + '.'; |
@@ -12,7 +12,7 @@ /** | ||
export function camelCaseToDashCase(input) { | ||
return StringWrapper.replaceAllMapped(input, CAMEL_CASE_REGEXP, function (m /** TODO #9100 */) { return '-' + m[1].toLowerCase(); }); | ||
return StringWrapper.replaceAllMapped(input, CAMEL_CASE_REGEXP, function (m) { return '-' + m[1].toLowerCase(); }); | ||
} | ||
export function dashCaseToCamelCase(input) { | ||
return StringWrapper.replaceAllMapped(input, DASH_CASE_REGEXP, function (m /** TODO #9100 */) { return m[1].toUpperCase(); }); | ||
return StringWrapper.replaceAllMapped(input, DASH_CASE_REGEXP, function (m) { return m[1].toUpperCase(); }); | ||
} | ||
//# sourceMappingURL=util.js.map |
@@ -9,3 +9,2 @@ /** | ||
import { AUTO_STYLE } from '@angular/core'; | ||
import { StringMapWrapper } from '../facade/collection'; | ||
import { StringWrapper, isNumber, isPresent } from '../facade/lang'; | ||
@@ -56,3 +55,4 @@ import { dashCaseToCamelCase } from './util'; | ||
styles.styles.forEach(function (entry) { | ||
StringMapWrapper.forEach(entry, function (val, prop) { | ||
Object.keys(entry).forEach(function (prop) { | ||
var val = entry[prop]; | ||
var formattedProp = dashCaseToCamelCase(prop); | ||
@@ -63,5 +63,5 @@ data[formattedProp] = | ||
}); | ||
StringMapWrapper.forEach(defaultStyles, function (value, prop) { | ||
Object.keys(defaultStyles).forEach(function (prop) { | ||
if (!isPresent(data[prop])) { | ||
data[prop] = value; | ||
data[prop] = defaultStyles[prop]; | ||
} | ||
@@ -68,0 +68,0 @@ }); |
@@ -9,3 +9,2 @@ /** | ||
import { AUTO_STYLE } from '@angular/core'; | ||
import { StringMapWrapper } from '../facade/collection'; | ||
import { isPresent } from '../facade/lang'; | ||
@@ -43,3 +42,4 @@ import { getDOM } from './dom_adapter'; | ||
var formattedKeyframe = {}; | ||
StringMapWrapper.forEach(styles, function (value, prop) { | ||
Object.keys(styles).forEach(function (prop) { | ||
var value = styles[prop]; | ||
formattedKeyframe[prop] = value == AUTO_STYLE ? _computeStyle(_this.element, prop) : value; | ||
@@ -46,0 +46,0 @@ }); |
@@ -11,8 +11,8 @@ /** | ||
*/ | ||
declare var win: any; | ||
declare const win: any; | ||
export { win as window }; | ||
export declare var document: any; | ||
export declare var location: any; | ||
export declare var gc: () => any; | ||
export declare var performance: any; | ||
export declare const document: any; | ||
export declare const location: any; | ||
export declare const gc: () => any; | ||
export declare const performance: any; | ||
export declare const Event: any; | ||
@@ -19,0 +19,0 @@ export declare const MouseEvent: any; |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":1,"metadata":{"document":{"__symbolic":"select","expression":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"error","message":"Expression form not supported","line":11,"character":10},"right":"undefined"},"right":{"__symbolic":"reference","name":"window"}},"right":{}},"member":"document"},"location":{"__symbolic":"select","expression":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"error","message":"Expression form not supported","line":11,"character":10},"right":"undefined"},"right":{"__symbolic":"reference","name":"window"}},"right":{}},"member":"location"},"gc":{"__symbolic":"if","condition":{"__symbolic":"index","expression":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"error","message":"Expression form not supported","line":11,"character":10},"right":"undefined"},"right":{"__symbolic":"reference","name":"window"}},"right":{}},"index":"gc"},"thenExpression":{"__symbolic":"error","message":"Function call not supported","line":16,"character":28},"elseExpression":{"__symbolic":"error","message":"Function call not supported","line":16,"character":48}},"performance":{"__symbolic":"if","condition":{"__symbolic":"index","expression":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"error","message":"Expression form not supported","line":11,"character":10},"right":"undefined"},"right":{"__symbolic":"reference","name":"window"}},"right":{}},"index":"performance"},"thenExpression":{"__symbolic":"index","expression":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"error","message":"Expression form not supported","line":11,"character":10},"right":"undefined"},"right":{"__symbolic":"reference","name":"window"}},"right":{}},"index":"performance"},"elseExpression":null},"Event":{"__symbolic":"index","expression":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"error","message":"Expression form not supported","line":11,"character":10},"right":"undefined"},"right":{"__symbolic":"reference","name":"window"}},"right":{}},"index":"Event"},"MouseEvent":{"__symbolic":"index","expression":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"error","message":"Expression form not supported","line":11,"character":10},"right":"undefined"},"right":{"__symbolic":"reference","name":"window"}},"right":{}},"index":"MouseEvent"},"KeyboardEvent":{"__symbolic":"index","expression":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"error","message":"Expression form not supported","line":11,"character":10},"right":"undefined"},"right":{"__symbolic":"reference","name":"window"}},"right":{}},"index":"KeyboardEvent"},"EventTarget":{"__symbolic":"index","expression":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"error","message":"Expression form not supported","line":11,"character":10},"right":"undefined"},"right":{"__symbolic":"reference","name":"window"}},"right":{}},"index":"EventTarget"},"History":{"__symbolic":"index","expression":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"error","message":"Expression form not supported","line":11,"character":10},"right":"undefined"},"right":{"__symbolic":"reference","name":"window"}},"right":{}},"index":"History"},"Location":{"__symbolic":"index","expression":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"error","message":"Expression form not supported","line":11,"character":10},"right":"undefined"},"right":{"__symbolic":"reference","name":"window"}},"right":{}},"index":"Location"},"EventListener":{"__symbolic":"index","expression":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"error","message":"Expression form not supported","line":11,"character":10},"right":"undefined"},"right":{"__symbolic":"reference","name":"window"}},"right":{}},"index":"EventListener"}}} | ||
{"__symbolic":"module","version":1,"metadata":{"document":{"__symbolic":"select","expression":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"error","message":"Expression form not supported","line":11,"character":12},"right":"undefined"},"right":{"__symbolic":"reference","name":"window"}},"right":{}},"member":"document"},"location":{"__symbolic":"select","expression":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"error","message":"Expression form not supported","line":11,"character":12},"right":"undefined"},"right":{"__symbolic":"reference","name":"window"}},"right":{}},"member":"location"},"gc":{"__symbolic":"if","condition":{"__symbolic":"index","expression":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"error","message":"Expression form not supported","line":11,"character":12},"right":"undefined"},"right":{"__symbolic":"reference","name":"window"}},"right":{}},"index":"gc"},"thenExpression":{"__symbolic":"error","message":"Function call not supported","line":16,"character":30},"elseExpression":{"__symbolic":"error","message":"Function call not supported","line":16,"character":50}},"performance":{"__symbolic":"if","condition":{"__symbolic":"index","expression":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"error","message":"Expression form not supported","line":11,"character":12},"right":"undefined"},"right":{"__symbolic":"reference","name":"window"}},"right":{}},"index":"performance"},"thenExpression":{"__symbolic":"index","expression":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"error","message":"Expression form not supported","line":11,"character":12},"right":"undefined"},"right":{"__symbolic":"reference","name":"window"}},"right":{}},"index":"performance"},"elseExpression":null},"Event":{"__symbolic":"index","expression":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"error","message":"Expression form not supported","line":11,"character":12},"right":"undefined"},"right":{"__symbolic":"reference","name":"window"}},"right":{}},"index":"Event"},"MouseEvent":{"__symbolic":"index","expression":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"error","message":"Expression form not supported","line":11,"character":12},"right":"undefined"},"right":{"__symbolic":"reference","name":"window"}},"right":{}},"index":"MouseEvent"},"KeyboardEvent":{"__symbolic":"index","expression":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"error","message":"Expression form not supported","line":11,"character":12},"right":"undefined"},"right":{"__symbolic":"reference","name":"window"}},"right":{}},"index":"KeyboardEvent"},"EventTarget":{"__symbolic":"index","expression":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"error","message":"Expression form not supported","line":11,"character":12},"right":"undefined"},"right":{"__symbolic":"reference","name":"window"}},"right":{}},"index":"EventTarget"},"History":{"__symbolic":"index","expression":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"error","message":"Expression form not supported","line":11,"character":12},"right":"undefined"},"right":{"__symbolic":"reference","name":"window"}},"right":{}},"index":"History"},"Location":{"__symbolic":"index","expression":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"error","message":"Expression form not supported","line":11,"character":12},"right":"undefined"},"right":{"__symbolic":"reference","name":"window"}},"right":{}},"index":"Location"},"EventListener":{"__symbolic":"index","expression":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"error","message":"Expression form not supported","line":11,"character":12},"right":"undefined"},"right":{"__symbolic":"reference","name":"window"}},"right":{}},"index":"EventListener"}}} |
@@ -17,20 +17,2 @@ export declare class MapWrapper { | ||
export declare class StringMapWrapper { | ||
static get<V>(map: { | ||
[key: string]: V; | ||
}, key: string): V; | ||
static set<V>(map: { | ||
[key: string]: V; | ||
}, key: string, value: V): void; | ||
static keys(map: { | ||
[key: string]: any; | ||
}): string[]; | ||
static values<T>(map: { | ||
[key: string]: T; | ||
}): T[]; | ||
static isEmpty(map: { | ||
[key: string]: any; | ||
}): boolean; | ||
static forEach<K, V>(map: { | ||
[key: string]: V; | ||
}, callback: (v: V, K: string) => void): void; | ||
static merge<V>(m1: { | ||
@@ -87,6 +69,1 @@ [key: string]: V; | ||
export declare function iterateListLike(obj: any, fn: Function): void; | ||
export declare class SetWrapper { | ||
static createFromList<T>(lst: T[]): Set<T>; | ||
static has<T>(s: Set<T>, key: T): boolean; | ||
static delete<K>(m: Set<K>, k: K): void; | ||
} |
@@ -106,22 +106,2 @@ /** | ||
} | ||
StringMapWrapper.get = function (map, key) { | ||
return map.hasOwnProperty(key) ? map[key] : undefined; | ||
}; | ||
StringMapWrapper.set = function (map, key, value) { map[key] = value; }; | ||
StringMapWrapper.keys = function (map) { return Object.keys(map); }; | ||
StringMapWrapper.values = function (map) { | ||
return Object.keys(map).map(function (k) { return map[k]; }); | ||
}; | ||
StringMapWrapper.isEmpty = function (map) { | ||
for (var prop in map) { | ||
return false; | ||
} | ||
return true; | ||
}; | ||
StringMapWrapper.forEach = function (map, callback) { | ||
for (var _i = 0, _a = Object.keys(map); _i < _a.length; _i++) { | ||
var k = _a[_i]; | ||
callback(map[k], k); | ||
} | ||
}; | ||
StringMapWrapper.merge = function (m1, m2) { | ||
@@ -320,29 +300,2 @@ var m = {}; | ||
} | ||
// Safari and Internet Explorer do not support the iterable parameter to the | ||
// Set constructor. We work around that by manually adding the items. | ||
var createSetFromList = (function () { | ||
var test = new Set([1, 2, 3]); | ||
if (test.size === 3) { | ||
return function createSetFromList(lst) { return new Set(lst); }; | ||
} | ||
else { | ||
return function createSetAndPopulateFromList(lst) { | ||
var res = new Set(lst); | ||
if (res.size !== lst.length) { | ||
for (var i = 0; i < lst.length; i++) { | ||
res.add(lst[i]); | ||
} | ||
} | ||
return res; | ||
}; | ||
} | ||
})(); | ||
export var SetWrapper = (function () { | ||
function SetWrapper() { | ||
} | ||
SetWrapper.createFromList = function (lst) { return createSetFromList(lst); }; | ||
SetWrapper.has = function (s, key) { return s.has(key); }; | ||
SetWrapper.delete = function (m, k) { m.delete(k); }; | ||
return SetWrapper; | ||
}()); | ||
//# sourceMappingURL=collection.js.map |
@@ -34,4 +34,2 @@ | ||
export declare function getTypeNameForDebugging(type: any): string; | ||
export declare var Math: any; | ||
export declare var Date: DateConstructor; | ||
export declare function isPresent(obj: any): boolean; | ||
@@ -50,5 +48,2 @@ export declare function isBlank(obj: any): boolean; | ||
export declare function stringify(token: any): string; | ||
export declare function serializeEnum(val: any): number; | ||
export declare function deserializeEnum(val: any, values: Map<number, any>): any; | ||
export declare function resolveEnumToken(enumValue: any, val: any): string; | ||
export declare class StringWrapper { | ||
@@ -100,10 +95,2 @@ static fromCharCode(code: number): string; | ||
} | ||
export declare class DateWrapper { | ||
static create(year: number, month?: number, day?: number, hour?: number, minutes?: number, seconds?: number, milliseconds?: number): Date; | ||
static fromISOString(str: string): Date; | ||
static fromMillis(ms: number): Date; | ||
static toMillis(date: Date): number; | ||
static now(): Date; | ||
static toJson(date: Date): string; | ||
} | ||
export declare function setValueOnPath(global: any, path: string, value: any): void; | ||
@@ -110,0 +97,0 @@ export declare function getSymbolIterator(): string | symbol; |
@@ -29,9 +29,4 @@ /** | ||
export function getTypeNameForDebugging(type) { | ||
if (type['name']) { | ||
return type['name']; | ||
} | ||
return typeof type; | ||
return type['name'] || typeof type; | ||
} | ||
export var Math = _global.Math; | ||
export var Date = _global.Date; | ||
// TODO: remove calls to assert in production environment | ||
@@ -93,15 +88,4 @@ // Note: Can't just export this and import in in other files | ||
var newLineIndex = res.indexOf('\n'); | ||
return (newLineIndex === -1) ? res : res.substring(0, newLineIndex); | ||
return newLineIndex === -1 ? res : res.substring(0, newLineIndex); | ||
} | ||
// serialize / deserialize enum exist only for consistency with dart API | ||
// enums in typescript don't need to be serialized | ||
export function serializeEnum(val) { | ||
return val; | ||
} | ||
export function deserializeEnum(val, values) { | ||
return val; | ||
} | ||
export function resolveEnumToken(enumValue, val) { | ||
return enumValue[val]; | ||
} | ||
export var StringWrapper = (function () { | ||
@@ -268,21 +252,2 @@ function StringWrapper() { | ||
}()); | ||
export var DateWrapper = (function () { | ||
function DateWrapper() { | ||
} | ||
DateWrapper.create = function (year, month, day, hour, minutes, seconds, milliseconds) { | ||
if (month === void 0) { month = 1; } | ||
if (day === void 0) { day = 1; } | ||
if (hour === void 0) { hour = 0; } | ||
if (minutes === void 0) { minutes = 0; } | ||
if (seconds === void 0) { seconds = 0; } | ||
if (milliseconds === void 0) { milliseconds = 0; } | ||
return new Date(year, month - 1, day, hour, minutes, seconds, milliseconds); | ||
}; | ||
DateWrapper.fromISOString = function (str) { return new Date(str); }; | ||
DateWrapper.fromMillis = function (ms) { return new Date(ms); }; | ||
DateWrapper.toMillis = function (date) { return date.getTime(); }; | ||
DateWrapper.now = function () { return new Date(); }; | ||
DateWrapper.toJson = function (date) { return date.toJSON(); }; | ||
return DateWrapper; | ||
}()); | ||
export function setValueOnPath(global, path, value) { | ||
@@ -289,0 +254,0 @@ var parts = path.split('.'); |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":1,"metadata":{"Math":{"__symbolic":"error","message":"Reference to a local symbol","line":55,"character":4,"context":{"name":"_global"}},"Date":{"__symbolic":"error","message":"Reference to a local symbol","line":55,"character":4,"context":{"name":"_global"}},"isPresent":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"reference","name":"undefined"}},"right":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"obj"},"right":null}}},"isBlank":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"reference","name":"undefined"}},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"obj"},"right":null}}},"isBoolean":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":87,"character":9},"right":"boolean"}},"isNumber":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":91,"character":9},"right":"number"}},"isString":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":95,"character":9},"right":"string"}},"isFunction":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":99,"character":9},"right":"function"}},"isType":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isFunction"},"arguments":[{"__symbolic":"reference","name":"obj"}]}},"isStringMap":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":107,"character":9},"right":"object"},"right":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"obj"},"right":null}}},"isStrictStringMap":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isStringMap"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Object"},"member":"getPrototypeOf"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"right":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Object"},"member":"getPrototypeOf"},"arguments":[{}]}}}},"isArray":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Array"},"member":"isArray"},"arguments":[{"__symbolic":"reference","name":"obj"}]}},"isDate":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"instanceof","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"reference","name":"Date"}},"right":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isNaN"},"arguments":[{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"obj"},"member":"valueOf"}}]}}}},"serializeEnum":{"__symbolic":"function","parameters":["val"],"value":{"__symbolic":"reference","name":"val"}},"deserializeEnum":{"__symbolic":"function","parameters":["val","values"],"value":{"__symbolic":"reference","name":"val"}},"resolveEnumToken":{"__symbolic":"function","parameters":["enumValue","val"],"value":{"__symbolic":"index","expression":{"__symbolic":"reference","name":"enumValue"},"index":{"__symbolic":"reference","name":"val"}}},"RegExp":{"__symbolic":"error","message":"Reference to a local symbol","line":55,"character":4,"context":{"name":"_global"}},"looseIdentical":{"__symbolic":"function","parameters":["a","b"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"a"},"right":{"__symbolic":"reference","name":"b"}},"right":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":287,"character":20},"right":"number"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":287,"character":45},"right":"number"}},"right":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isNaN"},"arguments":[{"__symbolic":"reference","name":"a"}]}},"right":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isNaN"},"arguments":[{"__symbolic":"reference","name":"b"}]}}}},"getMapKey":{"__symbolic":"function","parameters":["value"],"value":{"__symbolic":"reference","name":"value"}},"normalizeBlank":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"if","condition":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isBlank"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"thenExpression":null,"elseExpression":{"__symbolic":"reference","name":"obj"}}},"normalizeBool":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"if","condition":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isBlank"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"thenExpression":false,"elseExpression":{"__symbolic":"reference","name":"obj"}}},"isJsObject":{"__symbolic":"function","parameters":["o"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"o"},"right":null},"right":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":305,"character":24},"right":"function"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":305,"character":51},"right":"object"}}}},"isPrimitive":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isJsObject"},"arguments":[{"__symbolic":"reference","name":"obj"}]}}},"hasConstructor":{"__symbolic":"function","parameters":["value","type"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"value"},"member":"constructor"},"right":{"__symbolic":"reference","name":"type"}}},"escape":{"__symbolic":"function","parameters":["s"],"value":{"__symbolic":"error","message":"Reference to a local symbol","line":55,"character":4,"context":{"name":"_global"}}},"escapeRegExp":{"__symbolic":"function","parameters":["s"],"value":{"__symbolic":"error","message":"Expression form not supported","line":402,"character":19}}}} | ||
{"__symbolic":"module","version":1,"metadata":{"getTypeNameForDebugging":{"__symbolic":"function","parameters":["type"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"index","expression":{"__symbolic":"reference","name":"type"},"index":"name"},"right":{"__symbolic":"error","message":"Expression form not supported","line":61,"character":25}}},"isPresent":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"reference","name":"undefined"}},"right":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"obj"},"right":null}}},"isBlank":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"reference","name":"undefined"}},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"obj"},"right":null}}},"isBoolean":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":80,"character":9},"right":"boolean"}},"isNumber":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":84,"character":9},"right":"number"}},"isString":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":88,"character":9},"right":"string"}},"isFunction":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":92,"character":9},"right":"function"}},"isType":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isFunction"},"arguments":[{"__symbolic":"reference","name":"obj"}]}},"isStringMap":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":100,"character":9},"right":"object"},"right":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"obj"},"right":null}}},"isStrictStringMap":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isStringMap"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Object"},"member":"getPrototypeOf"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"right":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Object"},"member":"getPrototypeOf"},"arguments":[{}]}}}},"isArray":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Array"},"member":"isArray"},"arguments":[{"__symbolic":"reference","name":"obj"}]}},"isDate":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"instanceof","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"reference","name":"Date"}},"right":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isNaN"},"arguments":[{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"obj"},"member":"valueOf"}}]}}}},"RegExp":{"__symbolic":"error","message":"Reference to a local symbol","line":55,"character":4,"context":{"name":"_global"}},"looseIdentical":{"__symbolic":"function","parameters":["a","b"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"a"},"right":{"__symbolic":"reference","name":"b"}},"right":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":265,"character":20},"right":"number"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":265,"character":45},"right":"number"}},"right":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isNaN"},"arguments":[{"__symbolic":"reference","name":"a"}]}},"right":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isNaN"},"arguments":[{"__symbolic":"reference","name":"b"}]}}}},"getMapKey":{"__symbolic":"function","parameters":["value"],"value":{"__symbolic":"reference","name":"value"}},"normalizeBlank":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"if","condition":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isBlank"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"thenExpression":null,"elseExpression":{"__symbolic":"reference","name":"obj"}}},"normalizeBool":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"if","condition":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isBlank"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"thenExpression":false,"elseExpression":{"__symbolic":"reference","name":"obj"}}},"isJsObject":{"__symbolic":"function","parameters":["o"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"o"},"right":null},"right":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":283,"character":24},"right":"function"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":283,"character":51},"right":"object"}}}},"isPrimitive":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isJsObject"},"arguments":[{"__symbolic":"reference","name":"obj"}]}}},"hasConstructor":{"__symbolic":"function","parameters":["value","type"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"value"},"member":"constructor"},"right":{"__symbolic":"reference","name":"type"}}},"escape":{"__symbolic":"function","parameters":["s"],"value":{"__symbolic":"error","message":"Reference to a local symbol","line":55,"character":4,"context":{"name":"_global"}}},"escapeRegExp":{"__symbolic":"function","parameters":["s"],"value":{"__symbolic":"error","message":"Expression form not supported","line":367,"character":19}}}} |
@@ -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 * as browser from './browser'; | ||
@@ -2,0 +9,0 @@ import * as browserDomAdapter from './browser/browser_adapter'; |
@@ -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 * as browser from './browser'; | ||
@@ -2,0 +9,0 @@ import * as browserDomAdapter from './browser/browser_adapter'; |
@@ -12,3 +12,2 @@ /** | ||
export declare var ReflectionCapabilities: typeof r.ReflectionCapabilities; | ||
export declare var VIEW_ENCAPSULATION_VALUES: typeof r.VIEW_ENCAPSULATION_VALUES; | ||
export declare type DebugDomRootRenderer = typeof r._DebugDomRootRenderer; | ||
@@ -15,0 +14,0 @@ export declare var DebugDomRootRenderer: typeof r.DebugDomRootRenderer; |
@@ -11,3 +11,2 @@ /** | ||
export var ReflectionCapabilities = r.ReflectionCapabilities; | ||
export var VIEW_ENCAPSULATION_VALUES = r.VIEW_ENCAPSULATION_VALUES; | ||
export var DebugDomRootRenderer = r.DebugDomRootRenderer; | ||
@@ -14,0 +13,0 @@ export var reflector = r.reflector; |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":1,"metadata":{"RenderDebugInfo":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"RenderDebugInfo"},"ReflectionCapabilities":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"ReflectionCapabilities"},"VIEW_ENCAPSULATION_VALUES":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"VIEW_ENCAPSULATION_VALUES"},"DebugDomRootRenderer":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"DebugDomRootRenderer"},"reflector":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"reflector"},"NoOpAnimationPlayer":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"NoOpAnimationPlayer"},"AnimationPlayer":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"AnimationPlayer"},"AnimationSequencePlayer":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"AnimationSequencePlayer"},"AnimationGroupPlayer":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"AnimationGroupPlayer"},"AnimationKeyframe":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"AnimationKeyframe"},"AnimationStyles":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"AnimationStyles"},"prepareFinalAnimationStyles":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"prepareFinalAnimationStyles"},"balanceAnimationKeyframes":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"balanceAnimationKeyframes"},"clearStyles":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"clearStyles"},"collectAndResolveStyles":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"collectAndResolveStyles"}}} | ||
{"__symbolic":"module","version":1,"metadata":{"RenderDebugInfo":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"RenderDebugInfo"},"ReflectionCapabilities":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"ReflectionCapabilities"},"DebugDomRootRenderer":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"DebugDomRootRenderer"},"reflector":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"reflector"},"NoOpAnimationPlayer":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"NoOpAnimationPlayer"},"AnimationPlayer":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"AnimationPlayer"},"AnimationSequencePlayer":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"AnimationSequencePlayer"},"AnimationGroupPlayer":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"AnimationGroupPlayer"},"AnimationKeyframe":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"AnimationKeyframe"},"AnimationStyles":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"AnimationStyles"},"prepareFinalAnimationStyles":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"prepareFinalAnimationStyles"},"balanceAnimationKeyframes":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"balanceAnimationKeyframes"},"clearStyles":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"clearStyles"},"collectAndResolveStyles":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"collectAndResolveStyles"}}} |
@@ -17,20 +17,2 @@ export declare class MapWrapper { | ||
export declare class StringMapWrapper { | ||
static get<V>(map: { | ||
[key: string]: V; | ||
}, key: string): V; | ||
static set<V>(map: { | ||
[key: string]: V; | ||
}, key: string, value: V): void; | ||
static keys(map: { | ||
[key: string]: any; | ||
}): string[]; | ||
static values<T>(map: { | ||
[key: string]: T; | ||
}): T[]; | ||
static isEmpty(map: { | ||
[key: string]: any; | ||
}): boolean; | ||
static forEach<K, V>(map: { | ||
[key: string]: V; | ||
}, callback: (v: V, K: string) => void): void; | ||
static merge<V>(m1: { | ||
@@ -87,6 +69,1 @@ [key: string]: V; | ||
export declare function iterateListLike(obj: any, fn: Function): void; | ||
export declare class SetWrapper { | ||
static createFromList<T>(lst: T[]): Set<T>; | ||
static has<T>(s: Set<T>, key: T): boolean; | ||
static delete<K>(m: Set<K>, k: K): void; | ||
} |
@@ -106,22 +106,2 @@ /** | ||
} | ||
StringMapWrapper.get = function (map, key) { | ||
return map.hasOwnProperty(key) ? map[key] : undefined; | ||
}; | ||
StringMapWrapper.set = function (map, key, value) { map[key] = value; }; | ||
StringMapWrapper.keys = function (map) { return Object.keys(map); }; | ||
StringMapWrapper.values = function (map) { | ||
return Object.keys(map).map(function (k) { return map[k]; }); | ||
}; | ||
StringMapWrapper.isEmpty = function (map) { | ||
for (var prop in map) { | ||
return false; | ||
} | ||
return true; | ||
}; | ||
StringMapWrapper.forEach = function (map, callback) { | ||
for (var _i = 0, _a = Object.keys(map); _i < _a.length; _i++) { | ||
var k = _a[_i]; | ||
callback(map[k], k); | ||
} | ||
}; | ||
StringMapWrapper.merge = function (m1, m2) { | ||
@@ -320,29 +300,2 @@ var m = {}; | ||
} | ||
// Safari and Internet Explorer do not support the iterable parameter to the | ||
// Set constructor. We work around that by manually adding the items. | ||
var createSetFromList = (function () { | ||
var test = new Set([1, 2, 3]); | ||
if (test.size === 3) { | ||
return function createSetFromList(lst) { return new Set(lst); }; | ||
} | ||
else { | ||
return function createSetAndPopulateFromList(lst) { | ||
var res = new Set(lst); | ||
if (res.size !== lst.length) { | ||
for (var i = 0; i < lst.length; i++) { | ||
res.add(lst[i]); | ||
} | ||
} | ||
return res; | ||
}; | ||
} | ||
})(); | ||
export var SetWrapper = (function () { | ||
function SetWrapper() { | ||
} | ||
SetWrapper.createFromList = function (lst) { return createSetFromList(lst); }; | ||
SetWrapper.has = function (s, key) { return s.has(key); }; | ||
SetWrapper.delete = function (m, k) { m.delete(k); }; | ||
return SetWrapper; | ||
}()); | ||
//# sourceMappingURL=collection.js.map |
@@ -34,4 +34,2 @@ | ||
export declare function getTypeNameForDebugging(type: any): string; | ||
export declare var Math: any; | ||
export declare var Date: DateConstructor; | ||
export declare function isPresent(obj: any): boolean; | ||
@@ -50,5 +48,2 @@ export declare function isBlank(obj: any): boolean; | ||
export declare function stringify(token: any): string; | ||
export declare function serializeEnum(val: any): number; | ||
export declare function deserializeEnum(val: any, values: Map<number, any>): any; | ||
export declare function resolveEnumToken(enumValue: any, val: any): string; | ||
export declare class StringWrapper { | ||
@@ -100,10 +95,2 @@ static fromCharCode(code: number): string; | ||
} | ||
export declare class DateWrapper { | ||
static create(year: number, month?: number, day?: number, hour?: number, minutes?: number, seconds?: number, milliseconds?: number): Date; | ||
static fromISOString(str: string): Date; | ||
static fromMillis(ms: number): Date; | ||
static toMillis(date: Date): number; | ||
static now(): Date; | ||
static toJson(date: Date): string; | ||
} | ||
export declare function setValueOnPath(global: any, path: string, value: any): void; | ||
@@ -110,0 +97,0 @@ export declare function getSymbolIterator(): string | symbol; |
@@ -29,9 +29,4 @@ /** | ||
export function getTypeNameForDebugging(type) { | ||
if (type['name']) { | ||
return type['name']; | ||
} | ||
return typeof type; | ||
return type['name'] || typeof type; | ||
} | ||
export var Math = _global.Math; | ||
export var Date = _global.Date; | ||
// TODO: remove calls to assert in production environment | ||
@@ -93,15 +88,4 @@ // Note: Can't just export this and import in in other files | ||
var newLineIndex = res.indexOf('\n'); | ||
return (newLineIndex === -1) ? res : res.substring(0, newLineIndex); | ||
return newLineIndex === -1 ? res : res.substring(0, newLineIndex); | ||
} | ||
// serialize / deserialize enum exist only for consistency with dart API | ||
// enums in typescript don't need to be serialized | ||
export function serializeEnum(val) { | ||
return val; | ||
} | ||
export function deserializeEnum(val, values) { | ||
return val; | ||
} | ||
export function resolveEnumToken(enumValue, val) { | ||
return enumValue[val]; | ||
} | ||
export var StringWrapper = (function () { | ||
@@ -268,21 +252,2 @@ function StringWrapper() { | ||
}()); | ||
export var DateWrapper = (function () { | ||
function DateWrapper() { | ||
} | ||
DateWrapper.create = function (year, month, day, hour, minutes, seconds, milliseconds) { | ||
if (month === void 0) { month = 1; } | ||
if (day === void 0) { day = 1; } | ||
if (hour === void 0) { hour = 0; } | ||
if (minutes === void 0) { minutes = 0; } | ||
if (seconds === void 0) { seconds = 0; } | ||
if (milliseconds === void 0) { milliseconds = 0; } | ||
return new Date(year, month - 1, day, hour, minutes, seconds, milliseconds); | ||
}; | ||
DateWrapper.fromISOString = function (str) { return new Date(str); }; | ||
DateWrapper.fromMillis = function (ms) { return new Date(ms); }; | ||
DateWrapper.toMillis = function (date) { return date.getTime(); }; | ||
DateWrapper.now = function () { return new Date(); }; | ||
DateWrapper.toJson = function (date) { return date.toJSON(); }; | ||
return DateWrapper; | ||
}()); | ||
export function setValueOnPath(global, path, value) { | ||
@@ -289,0 +254,0 @@ var parts = path.split('.'); |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":1,"metadata":{"Math":{"__symbolic":"error","message":"Reference to a local symbol","line":55,"character":4,"context":{"name":"_global"}},"Date":{"__symbolic":"error","message":"Reference to a local symbol","line":55,"character":4,"context":{"name":"_global"}},"isPresent":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"reference","name":"undefined"}},"right":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"obj"},"right":null}}},"isBlank":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"reference","name":"undefined"}},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"obj"},"right":null}}},"isBoolean":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":87,"character":9},"right":"boolean"}},"isNumber":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":91,"character":9},"right":"number"}},"isString":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":95,"character":9},"right":"string"}},"isFunction":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":99,"character":9},"right":"function"}},"isType":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isFunction"},"arguments":[{"__symbolic":"reference","name":"obj"}]}},"isStringMap":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":107,"character":9},"right":"object"},"right":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"obj"},"right":null}}},"isStrictStringMap":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isStringMap"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Object"},"member":"getPrototypeOf"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"right":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Object"},"member":"getPrototypeOf"},"arguments":[{}]}}}},"isArray":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Array"},"member":"isArray"},"arguments":[{"__symbolic":"reference","name":"obj"}]}},"isDate":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"instanceof","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"reference","name":"Date"}},"right":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isNaN"},"arguments":[{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"obj"},"member":"valueOf"}}]}}}},"serializeEnum":{"__symbolic":"function","parameters":["val"],"value":{"__symbolic":"reference","name":"val"}},"deserializeEnum":{"__symbolic":"function","parameters":["val","values"],"value":{"__symbolic":"reference","name":"val"}},"resolveEnumToken":{"__symbolic":"function","parameters":["enumValue","val"],"value":{"__symbolic":"index","expression":{"__symbolic":"reference","name":"enumValue"},"index":{"__symbolic":"reference","name":"val"}}},"RegExp":{"__symbolic":"error","message":"Reference to a local symbol","line":55,"character":4,"context":{"name":"_global"}},"looseIdentical":{"__symbolic":"function","parameters":["a","b"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"a"},"right":{"__symbolic":"reference","name":"b"}},"right":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":287,"character":20},"right":"number"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":287,"character":45},"right":"number"}},"right":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isNaN"},"arguments":[{"__symbolic":"reference","name":"a"}]}},"right":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isNaN"},"arguments":[{"__symbolic":"reference","name":"b"}]}}}},"getMapKey":{"__symbolic":"function","parameters":["value"],"value":{"__symbolic":"reference","name":"value"}},"normalizeBlank":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"if","condition":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isBlank"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"thenExpression":null,"elseExpression":{"__symbolic":"reference","name":"obj"}}},"normalizeBool":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"if","condition":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isBlank"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"thenExpression":false,"elseExpression":{"__symbolic":"reference","name":"obj"}}},"isJsObject":{"__symbolic":"function","parameters":["o"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"o"},"right":null},"right":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":305,"character":24},"right":"function"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":305,"character":51},"right":"object"}}}},"isPrimitive":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isJsObject"},"arguments":[{"__symbolic":"reference","name":"obj"}]}}},"hasConstructor":{"__symbolic":"function","parameters":["value","type"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"value"},"member":"constructor"},"right":{"__symbolic":"reference","name":"type"}}},"escape":{"__symbolic":"function","parameters":["s"],"value":{"__symbolic":"error","message":"Reference to a local symbol","line":55,"character":4,"context":{"name":"_global"}}},"escapeRegExp":{"__symbolic":"function","parameters":["s"],"value":{"__symbolic":"error","message":"Expression form not supported","line":402,"character":19}}}} | ||
{"__symbolic":"module","version":1,"metadata":{"getTypeNameForDebugging":{"__symbolic":"function","parameters":["type"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"index","expression":{"__symbolic":"reference","name":"type"},"index":"name"},"right":{"__symbolic":"error","message":"Expression form not supported","line":61,"character":25}}},"isPresent":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"reference","name":"undefined"}},"right":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"obj"},"right":null}}},"isBlank":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"reference","name":"undefined"}},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"obj"},"right":null}}},"isBoolean":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":80,"character":9},"right":"boolean"}},"isNumber":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":84,"character":9},"right":"number"}},"isString":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":88,"character":9},"right":"string"}},"isFunction":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":92,"character":9},"right":"function"}},"isType":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isFunction"},"arguments":[{"__symbolic":"reference","name":"obj"}]}},"isStringMap":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":100,"character":9},"right":"object"},"right":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"obj"},"right":null}}},"isStrictStringMap":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isStringMap"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Object"},"member":"getPrototypeOf"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"right":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Object"},"member":"getPrototypeOf"},"arguments":[{}]}}}},"isArray":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Array"},"member":"isArray"},"arguments":[{"__symbolic":"reference","name":"obj"}]}},"isDate":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"instanceof","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"reference","name":"Date"}},"right":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isNaN"},"arguments":[{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"obj"},"member":"valueOf"}}]}}}},"RegExp":{"__symbolic":"error","message":"Reference to a local symbol","line":55,"character":4,"context":{"name":"_global"}},"looseIdentical":{"__symbolic":"function","parameters":["a","b"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"a"},"right":{"__symbolic":"reference","name":"b"}},"right":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":265,"character":20},"right":"number"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":265,"character":45},"right":"number"}},"right":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isNaN"},"arguments":[{"__symbolic":"reference","name":"a"}]}},"right":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isNaN"},"arguments":[{"__symbolic":"reference","name":"b"}]}}}},"getMapKey":{"__symbolic":"function","parameters":["value"],"value":{"__symbolic":"reference","name":"value"}},"normalizeBlank":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"if","condition":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isBlank"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"thenExpression":null,"elseExpression":{"__symbolic":"reference","name":"obj"}}},"normalizeBool":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"if","condition":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isBlank"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"thenExpression":false,"elseExpression":{"__symbolic":"reference","name":"obj"}}},"isJsObject":{"__symbolic":"function","parameters":["o"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"o"},"right":null},"right":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":283,"character":24},"right":"function"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":283,"character":51},"right":"object"}}}},"isPrimitive":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isJsObject"},"arguments":[{"__symbolic":"reference","name":"obj"}]}}},"hasConstructor":{"__symbolic":"function","parameters":["value","type"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"value"},"member":"constructor"},"right":{"__symbolic":"reference","name":"type"}}},"escape":{"__symbolic":"function","parameters":["s"],"value":{"__symbolic":"error","message":"Reference to a local symbol","line":55,"character":4,"context":{"name":"_global"}}},"escapeRegExp":{"__symbolic":"function","parameters":["s"],"value":{"__symbolic":"error","message":"Expression form not supported","line":367,"character":19}}}} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
776470
9067