refactor(TypeScript): Add noImplicitAny
We automatically insert explicit 'any's where needed. These need to be addressed as in #9100. Fixes #4924
This commit is contained in:
@ -60,7 +60,7 @@ var _chromeNumKeyPadMap = {
|
||||
export class BrowserDomAdapter extends GenericBrowserDomAdapter {
|
||||
parse(templateHtml: string) { throw new Error("parse not implemented"); }
|
||||
static makeCurrent() { setRootDomAdapter(new BrowserDomAdapter()); }
|
||||
hasProperty(element, name: string): boolean { return name in element; }
|
||||
hasProperty(element: any /** TODO #9100 */, name: string): boolean { return name in element; }
|
||||
setProperty(el: /*element*/ any, name: string, value: any) { el[name] = value; }
|
||||
getProperty(el: /*element*/ any, name: string): any { return el[name]; }
|
||||
invoke(el: /*element*/ any, methodName: string, args: any[]): any {
|
||||
@ -68,7 +68,7 @@ export class BrowserDomAdapter extends GenericBrowserDomAdapter {
|
||||
}
|
||||
|
||||
// TODO(tbosch): move this into a separate environment class once we have it
|
||||
logError(error) {
|
||||
logError(error: any /** TODO #9100 */) {
|
||||
if (window.console.error) {
|
||||
window.console.error(error);
|
||||
} else {
|
||||
@ -76,9 +76,9 @@ export class BrowserDomAdapter extends GenericBrowserDomAdapter {
|
||||
}
|
||||
}
|
||||
|
||||
log(error) { window.console.log(error); }
|
||||
log(error: any /** TODO #9100 */) { window.console.log(error); }
|
||||
|
||||
logGroup(error) {
|
||||
logGroup(error: any /** TODO #9100 */) {
|
||||
if (window.console.group) {
|
||||
window.console.group(error);
|
||||
this.logError(error);
|
||||
@ -96,22 +96,22 @@ export class BrowserDomAdapter extends GenericBrowserDomAdapter {
|
||||
get attrToPropMap(): any { return _attrToPropMap; }
|
||||
|
||||
query(selector: string): any { return document.querySelector(selector); }
|
||||
querySelector(el, selector: string): HTMLElement { return el.querySelector(selector); }
|
||||
querySelectorAll(el, selector: string): any[] { return el.querySelectorAll(selector); }
|
||||
on(el, evt, listener) { el.addEventListener(evt, listener, false); }
|
||||
onAndCancel(el, evt, listener): Function {
|
||||
querySelector(el: any /** TODO #9100 */, selector: string): HTMLElement { return el.querySelector(selector); }
|
||||
querySelectorAll(el: any /** TODO #9100 */, selector: string): any[] { return el.querySelectorAll(selector); }
|
||||
on(el: any /** TODO #9100 */, evt: any /** TODO #9100 */, listener: any /** TODO #9100 */) { el.addEventListener(evt, listener, false); }
|
||||
onAndCancel(el: any /** TODO #9100 */, evt: any /** TODO #9100 */, listener: any /** TODO #9100 */): Function {
|
||||
el.addEventListener(evt, listener, false);
|
||||
// Needed to follow Dart's subscription semantic, until fix of
|
||||
// https://code.google.com/p/dart/issues/detail?id=17406
|
||||
return () => { el.removeEventListener(evt, listener, false); };
|
||||
}
|
||||
dispatchEvent(el, evt) { el.dispatchEvent(evt); }
|
||||
dispatchEvent(el: any /** TODO #9100 */, evt: any /** TODO #9100 */) { el.dispatchEvent(evt); }
|
||||
createMouseEvent(eventType: string): MouseEvent {
|
||||
var evt: MouseEvent = document.createEvent('MouseEvent');
|
||||
evt.initEvent(eventType, true, true);
|
||||
return evt;
|
||||
}
|
||||
createEvent(eventType): Event {
|
||||
createEvent(eventType: any /** TODO #9100 */): Event {
|
||||
var evt: Event = document.createEvent('Event');
|
||||
evt.initEvent(eventType, true, true);
|
||||
return evt;
|
||||
@ -123,11 +123,11 @@ export class BrowserDomAdapter extends GenericBrowserDomAdapter {
|
||||
isPrevented(evt: Event): boolean {
|
||||
return evt.defaultPrevented || isPresent(evt.returnValue) && !evt.returnValue;
|
||||
}
|
||||
getInnerHTML(el): string { return el.innerHTML; }
|
||||
getTemplateContent(el): Node {
|
||||
getInnerHTML(el: any /** TODO #9100 */): string { return el.innerHTML; }
|
||||
getTemplateContent(el: any /** TODO #9100 */): Node {
|
||||
return 'content' in el && el instanceof HTMLTemplateElement ? el.content : null;
|
||||
}
|
||||
getOuterHTML(el): string { return el.outerHTML; }
|
||||
getOuterHTML(el: any /** TODO #9100 */): string { return el.outerHTML; }
|
||||
nodeName(node: Node): string { return node.nodeName; }
|
||||
nodeValue(node: Node): string { return node.nodeValue; }
|
||||
type(node: HTMLInputElement): string { return node.type; }
|
||||
@ -138,11 +138,11 @@ export class BrowserDomAdapter extends GenericBrowserDomAdapter {
|
||||
return node;
|
||||
}
|
||||
}
|
||||
firstChild(el): Node { return el.firstChild; }
|
||||
nextSibling(el): Node { return el.nextSibling; }
|
||||
parentElement(el): Node { return el.parentNode; }
|
||||
childNodes(el): Node[] { return el.childNodes; }
|
||||
childNodesAsList(el): any[] {
|
||||
firstChild(el: any /** TODO #9100 */): Node { return el.firstChild; }
|
||||
nextSibling(el: any /** TODO #9100 */): Node { return el.nextSibling; }
|
||||
parentElement(el: any /** TODO #9100 */): Node { return el.parentNode; }
|
||||
childNodes(el: any /** TODO #9100 */): Node[] { return el.childNodes; }
|
||||
childNodesAsList(el: any /** TODO #9100 */): any[] {
|
||||
var childNodes = el.childNodes;
|
||||
var res = ListWrapper.createFixedSize(childNodes.length);
|
||||
for (var i = 0; i < childNodes.length; i++) {
|
||||
@ -150,39 +150,39 @@ export class BrowserDomAdapter extends GenericBrowserDomAdapter {
|
||||
}
|
||||
return res;
|
||||
}
|
||||
clearNodes(el) {
|
||||
clearNodes(el: any /** TODO #9100 */) {
|
||||
while (el.firstChild) {
|
||||
el.removeChild(el.firstChild);
|
||||
}
|
||||
}
|
||||
appendChild(el, node) { el.appendChild(node); }
|
||||
removeChild(el, node) { el.removeChild(node); }
|
||||
replaceChild(el: Node, newChild, oldChild) { el.replaceChild(newChild, oldChild); }
|
||||
remove(node): Node {
|
||||
appendChild(el: any /** TODO #9100 */, node: any /** TODO #9100 */) { el.appendChild(node); }
|
||||
removeChild(el: any /** TODO #9100 */, node: any /** TODO #9100 */) { el.removeChild(node); }
|
||||
replaceChild(el: Node, newChild: any /** TODO #9100 */, oldChild: any /** TODO #9100 */) { el.replaceChild(newChild, oldChild); }
|
||||
remove(node: any /** TODO #9100 */): Node {
|
||||
if (node.parentNode) {
|
||||
node.parentNode.removeChild(node);
|
||||
}
|
||||
return node;
|
||||
}
|
||||
insertBefore(el, node) { el.parentNode.insertBefore(node, el); }
|
||||
insertAllBefore(el, nodes) { nodes.forEach(n => el.parentNode.insertBefore(n, el)); }
|
||||
insertAfter(el, node) { el.parentNode.insertBefore(node, el.nextSibling); }
|
||||
setInnerHTML(el, value) { el.innerHTML = value; }
|
||||
getText(el): string { return el.textContent; }
|
||||
insertBefore(el: any /** TODO #9100 */, node: any /** TODO #9100 */) { el.parentNode.insertBefore(node, el); }
|
||||
insertAllBefore(el: any /** TODO #9100 */, nodes: any /** TODO #9100 */) { nodes.forEach((n: any /** TODO #9100 */) => el.parentNode.insertBefore(n, el)); }
|
||||
insertAfter(el: any /** TODO #9100 */, node: any /** TODO #9100 */) { el.parentNode.insertBefore(node, el.nextSibling); }
|
||||
setInnerHTML(el: any /** TODO #9100 */, value: any /** TODO #9100 */) { el.innerHTML = value; }
|
||||
getText(el: any /** TODO #9100 */): string { return el.textContent; }
|
||||
// TODO(vicb): removed Element type because it does not support StyleElement
|
||||
setText(el, value: string) { el.textContent = value; }
|
||||
getValue(el): string { return el.value; }
|
||||
setValue(el, value: string) { el.value = value; }
|
||||
getChecked(el): boolean { return el.checked; }
|
||||
setChecked(el, value: boolean) { el.checked = value; }
|
||||
setText(el: any /** TODO #9100 */, value: string) { el.textContent = value; }
|
||||
getValue(el: any /** TODO #9100 */): string { return el.value; }
|
||||
setValue(el: any /** TODO #9100 */, value: string) { el.value = value; }
|
||||
getChecked(el: any /** TODO #9100 */): boolean { return el.checked; }
|
||||
setChecked(el: any /** TODO #9100 */, value: boolean) { el.checked = value; }
|
||||
createComment(text: string): Comment { return document.createComment(text); }
|
||||
createTemplate(html): HTMLElement {
|
||||
createTemplate(html: any /** TODO #9100 */): HTMLElement {
|
||||
var t = document.createElement('template');
|
||||
t.innerHTML = html;
|
||||
return t;
|
||||
}
|
||||
createElement(tagName, doc = document): HTMLElement { return doc.createElement(tagName); }
|
||||
createElementNS(ns, tagName, doc = document): Element { return doc.createElementNS(ns, tagName); }
|
||||
createElement(tagName: any /** TODO #9100 */, doc = document): HTMLElement { return doc.createElement(tagName); }
|
||||
createElementNS(ns: any /** TODO #9100 */, tagName: any /** TODO #9100 */, doc = document): Element { return doc.createElementNS(ns, tagName); }
|
||||
createTextNode(text: string, doc = document): Text { return doc.createTextNode(text); }
|
||||
createScriptTag(attrName: string, attrValue: string, doc = document): HTMLScriptElement {
|
||||
var el = <HTMLScriptElement>doc.createElement('SCRIPT');
|
||||
@ -198,27 +198,27 @@ export class BrowserDomAdapter extends GenericBrowserDomAdapter {
|
||||
getShadowRoot(el: HTMLElement): DocumentFragment { return (<any>el).shadowRoot; }
|
||||
getHost(el: HTMLElement): HTMLElement { return (<any>el).host; }
|
||||
clone(node: Node): Node { return node.cloneNode(true); }
|
||||
getElementsByClassName(element, name: string): HTMLElement[] {
|
||||
getElementsByClassName(element: any /** TODO #9100 */, name: string): HTMLElement[] {
|
||||
return element.getElementsByClassName(name);
|
||||
}
|
||||
getElementsByTagName(element, name: string): HTMLElement[] {
|
||||
getElementsByTagName(element: any /** TODO #9100 */, name: string): HTMLElement[] {
|
||||
return element.getElementsByTagName(name);
|
||||
}
|
||||
classList(element): any[] { return <any[]>Array.prototype.slice.call(element.classList, 0); }
|
||||
addClass(element, className: string) { element.classList.add(className); }
|
||||
removeClass(element, className: string) { element.classList.remove(className); }
|
||||
hasClass(element, className: string): boolean { return element.classList.contains(className); }
|
||||
setStyle(element, styleName: string, styleValue: string) {
|
||||
classList(element: any /** TODO #9100 */): any[] { return <any[]>Array.prototype.slice.call(element.classList, 0); }
|
||||
addClass(element: any /** TODO #9100 */, className: string) { element.classList.add(className); }
|
||||
removeClass(element: any /** TODO #9100 */, className: string) { element.classList.remove(className); }
|
||||
hasClass(element: any /** TODO #9100 */, className: string): boolean { return element.classList.contains(className); }
|
||||
setStyle(element: any /** TODO #9100 */, styleName: string, styleValue: string) {
|
||||
element.style[styleName] = styleValue;
|
||||
}
|
||||
removeStyle(element, stylename: string) { element.style[stylename] = null; }
|
||||
getStyle(element, stylename: string): string { return element.style[stylename]; }
|
||||
hasStyle(element, styleName: string, styleValue: string = null): boolean {
|
||||
removeStyle(element: any /** TODO #9100 */, stylename: string) { element.style[stylename] = null; }
|
||||
getStyle(element: any /** TODO #9100 */, stylename: string): string { return element.style[stylename]; }
|
||||
hasStyle(element: any /** TODO #9100 */, styleName: string, styleValue: string = null): boolean {
|
||||
var value = this.getStyle(element, styleName) || '';
|
||||
return styleValue ? value == styleValue : value.length > 0;
|
||||
}
|
||||
tagName(element): string { return element.tagName; }
|
||||
attributeMap(element): Map<string, string> {
|
||||
tagName(element: any /** TODO #9100 */): string { return element.tagName; }
|
||||
attributeMap(element: any /** TODO #9100 */): Map<string, string> {
|
||||
var res = new Map<string, string>();
|
||||
var elAttrs = element.attributes;
|
||||
for (var i = 0; i < elAttrs.length; i++) {
|
||||
@ -227,26 +227,26 @@ export class BrowserDomAdapter extends GenericBrowserDomAdapter {
|
||||
}
|
||||
return res;
|
||||
}
|
||||
hasAttribute(element, attribute: string): boolean { return element.hasAttribute(attribute); }
|
||||
hasAttributeNS(element, ns: string, attribute: string): boolean {
|
||||
hasAttribute(element: any /** TODO #9100 */, attribute: string): boolean { return element.hasAttribute(attribute); }
|
||||
hasAttributeNS(element: any /** TODO #9100 */, ns: string, attribute: string): boolean {
|
||||
return element.hasAttributeNS(ns, attribute);
|
||||
}
|
||||
getAttribute(element, attribute: string): string { return element.getAttribute(attribute); }
|
||||
getAttributeNS(element, ns: string, name: string): string {
|
||||
getAttribute(element: any /** TODO #9100 */, attribute: string): string { return element.getAttribute(attribute); }
|
||||
getAttributeNS(element: any /** TODO #9100 */, ns: string, name: string): string {
|
||||
return element.getAttributeNS(ns, name);
|
||||
}
|
||||
setAttribute(element, name: string, value: string) { element.setAttribute(name, value); }
|
||||
setAttributeNS(element, ns: string, name: string, value: string) {
|
||||
setAttribute(element: any /** TODO #9100 */, name: string, value: string) { element.setAttribute(name, value); }
|
||||
setAttributeNS(element: any /** TODO #9100 */, ns: string, name: string, value: string) {
|
||||
element.setAttributeNS(ns, name, value);
|
||||
}
|
||||
removeAttribute(element, attribute: string) { element.removeAttribute(attribute); }
|
||||
removeAttributeNS(element, ns: string, name: string) { element.removeAttributeNS(ns, name); }
|
||||
templateAwareRoot(el): any { return this.isTemplateElement(el) ? this.content(el) : el; }
|
||||
removeAttribute(element: any /** TODO #9100 */, attribute: string) { element.removeAttribute(attribute); }
|
||||
removeAttributeNS(element: any /** TODO #9100 */, ns: string, name: string) { element.removeAttributeNS(ns, name); }
|
||||
templateAwareRoot(el: any /** TODO #9100 */): any { return this.isTemplateElement(el) ? this.content(el) : el; }
|
||||
createHtmlDocument(): HTMLDocument {
|
||||
return document.implementation.createHTMLDocument('fakeTitle');
|
||||
}
|
||||
defaultDoc(): HTMLDocument { return document; }
|
||||
getBoundingClientRect(el): any {
|
||||
getBoundingClientRect(el: any /** TODO #9100 */): any {
|
||||
try {
|
||||
return el.getBoundingClientRect();
|
||||
} catch (e) {
|
||||
@ -255,7 +255,7 @@ export class BrowserDomAdapter extends GenericBrowserDomAdapter {
|
||||
}
|
||||
getTitle(): string { return document.title; }
|
||||
setTitle(newTitle: string) { document.title = newTitle || ''; }
|
||||
elementMatches(n, selector: string): boolean {
|
||||
elementMatches(n: any /** TODO #9100 */, selector: string): boolean {
|
||||
var matches = false;
|
||||
if (n instanceof HTMLElement) {
|
||||
if (n.matches) {
|
||||
@ -274,8 +274,8 @@ export class BrowserDomAdapter extends GenericBrowserDomAdapter {
|
||||
isTextNode(node: Node): boolean { return node.nodeType === Node.TEXT_NODE; }
|
||||
isCommentNode(node: Node): boolean { return node.nodeType === Node.COMMENT_NODE; }
|
||||
isElementNode(node: Node): boolean { return node.nodeType === Node.ELEMENT_NODE; }
|
||||
hasShadowRoot(node): boolean { return node instanceof HTMLElement && isPresent(node.shadowRoot); }
|
||||
isShadowRoot(node): boolean { return node instanceof DocumentFragment; }
|
||||
hasShadowRoot(node: any /** TODO #9100 */): boolean { return node instanceof HTMLElement && isPresent(node.shadowRoot); }
|
||||
isShadowRoot(node: any /** TODO #9100 */): boolean { return node instanceof DocumentFragment; }
|
||||
importIntoDoc(node: Node): any {
|
||||
var toImport = node;
|
||||
if (this.isTemplateElement(node)) {
|
||||
@ -285,7 +285,7 @@ export class BrowserDomAdapter extends GenericBrowserDomAdapter {
|
||||
}
|
||||
adoptNode(node: Node): any { return document.adoptNode(node); }
|
||||
getHref(el: Element): string { return (<any>el).href; }
|
||||
getEventKey(event): string {
|
||||
getEventKey(event: any /** TODO #9100 */): string {
|
||||
var key = event.key;
|
||||
if (isBlank(key)) {
|
||||
key = event.keyIdentifier;
|
||||
@ -302,12 +302,12 @@ export class BrowserDomAdapter extends GenericBrowserDomAdapter {
|
||||
// There is a bug in Chrome for numeric keypad keys:
|
||||
// https://code.google.com/p/chromium/issues/detail?id=155654
|
||||
// 1, 2, 3 ... are reported as A, B, C ...
|
||||
key = _chromeNumKeyPadMap[key];
|
||||
key = (_chromeNumKeyPadMap as any /** TODO #9100 */)[key];
|
||||
}
|
||||
}
|
||||
}
|
||||
if (_keyMap.hasOwnProperty(key)) {
|
||||
key = _keyMap[key];
|
||||
key = (_keyMap as any /** TODO #9100 */)[key];
|
||||
}
|
||||
return key;
|
||||
}
|
||||
@ -331,16 +331,16 @@ export class BrowserDomAdapter extends GenericBrowserDomAdapter {
|
||||
}
|
||||
resetBaseElement(): void { baseElement = null; }
|
||||
getUserAgent(): string { return window.navigator.userAgent; }
|
||||
setData(element, name: string, value: string) {
|
||||
setData(element: any /** TODO #9100 */, name: string, value: string) {
|
||||
this.setAttribute(element, 'data-' + name, value);
|
||||
}
|
||||
getData(element, name: string): string { return this.getAttribute(element, 'data-' + name); }
|
||||
getComputedStyle(element): any { return getComputedStyle(element); }
|
||||
getData(element: any /** TODO #9100 */, name: string): string { return this.getAttribute(element, 'data-' + name); }
|
||||
getComputedStyle(element: any /** TODO #9100 */): any { return getComputedStyle(element); }
|
||||
// TODO(tbosch): move this into a separate environment class once we have it
|
||||
setGlobalVar(path: string, value: any) { setValueOnPath(global, path, value); }
|
||||
requestAnimationFrame(callback): number { return window.requestAnimationFrame(callback); }
|
||||
requestAnimationFrame(callback: any /** TODO #9100 */): number { return window.requestAnimationFrame(callback); }
|
||||
cancelAnimationFrame(id: number) { window.cancelAnimationFrame(id); }
|
||||
supportsWebAnimation(): boolean { return isFunction(document.body['animate']); }
|
||||
supportsWebAnimation(): boolean { return isFunction((document as any /** TODO #9100 */).body['animate']); }
|
||||
performanceNow(): number {
|
||||
// performance.now() is not available in all browsers, see
|
||||
// http://caniuse.com/#search=performance.now
|
||||
@ -365,7 +365,7 @@ export class BrowserDomAdapter extends GenericBrowserDomAdapter {
|
||||
}
|
||||
|
||||
|
||||
var baseElement = null;
|
||||
var baseElement: any /** TODO #9100 */ = null;
|
||||
function getBaseElementHref(): string {
|
||||
if (isBlank(baseElement)) {
|
||||
baseElement = document.querySelector('base');
|
||||
@ -377,8 +377,8 @@ function getBaseElementHref(): string {
|
||||
}
|
||||
|
||||
// based on urlUtils.js in AngularJS 1
|
||||
var urlParsingNode = null;
|
||||
function relativePath(url): string {
|
||||
var urlParsingNode: any /** TODO #9100 */ = null;
|
||||
function relativePath(url: any /** TODO #9100 */): string {
|
||||
if (isBlank(urlParsingNode)) {
|
||||
urlParsingNode = document.createElement("a");
|
||||
}
|
||||
|
@ -50,18 +50,18 @@ export class BrowserGetTestability implements GetTestability {
|
||||
|
||||
global.getAllAngularRootElements = () => registry.getAllRootElements();
|
||||
|
||||
var whenAllStable = (callback) => {
|
||||
var whenAllStable = (callback: any /** TODO #9100 */) => {
|
||||
var testabilities = global.getAllAngularTestabilities();
|
||||
var count = testabilities.length;
|
||||
var didWork = false;
|
||||
var decrement = function(didWork_) {
|
||||
var decrement = function(didWork_: any /** TODO #9100 */) {
|
||||
didWork = didWork || didWork_;
|
||||
count--;
|
||||
if (count == 0) {
|
||||
callback(didWork);
|
||||
}
|
||||
};
|
||||
testabilities.forEach(function(testability) { testability.whenStable(decrement); });
|
||||
testabilities.forEach(function(testability: any /** TODO #9100 */) { testability.whenStable(decrement); });
|
||||
};
|
||||
|
||||
if (!global.frameworkStabilizers) {
|
||||
|
@ -21,18 +21,18 @@ const CORE_TOKENS_GLOBAL_NAME = 'ng.coreTokens';
|
||||
* null if the given native element does not have an Angular view associated
|
||||
* with it.
|
||||
*/
|
||||
export function inspectNativeElement(element): DebugNode {
|
||||
export function inspectNativeElement(element: any /** TODO #9100 */): DebugNode {
|
||||
return getDebugNode(element);
|
||||
}
|
||||
|
||||
function _createConditionalRootRenderer(rootRenderer) {
|
||||
function _createConditionalRootRenderer(rootRenderer: any /** TODO #9100 */) {
|
||||
if (assertionsEnabled()) {
|
||||
return _createRootRenderer(rootRenderer);
|
||||
}
|
||||
return rootRenderer;
|
||||
}
|
||||
|
||||
function _createRootRenderer(rootRenderer) {
|
||||
function _createRootRenderer(rootRenderer: any /** TODO #9100 */) {
|
||||
getDOM().setGlobalVar(INSPECT_GLOBAL_NAME, inspectNativeElement);
|
||||
getDOM().setGlobalVar(CORE_TOKENS_GLOBAL_NAME, CORE_TOKENS);
|
||||
return new DebugDomRootRenderer(rootRenderer);
|
||||
|
@ -22,15 +22,15 @@ export function setRootDomAdapter(adapter: DomAdapter) {
|
||||
*/
|
||||
export abstract class DomAdapter {
|
||||
public xhrType: Type = null;
|
||||
abstract hasProperty(element, name: string): boolean;
|
||||
abstract setProperty(el: Element, name: string, value: any);
|
||||
abstract hasProperty(element: any /** TODO #9100 */, name: string): boolean;
|
||||
abstract setProperty(el: Element, name: string, value: any): any /** TODO #9100 */;
|
||||
abstract getProperty(el: Element, name: string): any;
|
||||
abstract invoke(el: Element, methodName: string, args: any[]): any;
|
||||
|
||||
abstract logError(error);
|
||||
abstract log(error);
|
||||
abstract logGroup(error);
|
||||
abstract logGroupEnd();
|
||||
abstract logError(error: any /** TODO #9100 */): any /** TODO #9100 */;
|
||||
abstract log(error: any /** TODO #9100 */): any /** TODO #9100 */;
|
||||
abstract logGroup(error: any /** TODO #9100 */): any /** TODO #9100 */;
|
||||
abstract logGroupEnd(): any /** TODO #9100 */;
|
||||
|
||||
/** @deprecated */
|
||||
getXHR(): Type { return this.xhrType; }
|
||||
@ -44,95 +44,95 @@ export abstract class DomAdapter {
|
||||
/** @internal */
|
||||
_attrToPropMap: {[key: string]: string};
|
||||
|
||||
abstract parse(templateHtml: string);
|
||||
abstract parse(templateHtml: string): any /** TODO #9100 */;
|
||||
abstract query(selector: string): any;
|
||||
abstract querySelector(el, selector: string): HTMLElement;
|
||||
abstract querySelectorAll(el, selector: string): any[];
|
||||
abstract on(el, evt, listener);
|
||||
abstract onAndCancel(el, evt, listener): Function;
|
||||
abstract dispatchEvent(el, evt);
|
||||
abstract createMouseEvent(eventType): any;
|
||||
abstract querySelector(el: any /** TODO #9100 */, selector: string): HTMLElement;
|
||||
abstract querySelectorAll(el: any /** TODO #9100 */, selector: string): any[];
|
||||
abstract on(el: any /** TODO #9100 */, evt: any /** TODO #9100 */, listener: any /** TODO #9100 */): any /** TODO #9100 */;
|
||||
abstract onAndCancel(el: any /** TODO #9100 */, evt: any /** TODO #9100 */, listener: any /** TODO #9100 */): Function;
|
||||
abstract dispatchEvent(el: any /** TODO #9100 */, evt: any /** TODO #9100 */): any /** TODO #9100 */;
|
||||
abstract createMouseEvent(eventType: any /** TODO #9100 */): any;
|
||||
abstract createEvent(eventType: string): any;
|
||||
abstract preventDefault(evt);
|
||||
abstract isPrevented(evt): boolean;
|
||||
abstract getInnerHTML(el): string;
|
||||
abstract preventDefault(evt: any /** TODO #9100 */): any /** TODO #9100 */;
|
||||
abstract isPrevented(evt: any /** TODO #9100 */): boolean;
|
||||
abstract getInnerHTML(el: any /** TODO #9100 */): string;
|
||||
/** Returns content if el is a <template> element, null otherwise. */
|
||||
abstract getTemplateContent(el): any;
|
||||
abstract getOuterHTML(el): string;
|
||||
abstract nodeName(node): string;
|
||||
abstract nodeValue(node): string;
|
||||
abstract type(node): string;
|
||||
abstract content(node): any;
|
||||
abstract firstChild(el): Node;
|
||||
abstract nextSibling(el): Node;
|
||||
abstract parentElement(el): Node;
|
||||
abstract childNodes(el): Node[];
|
||||
abstract childNodesAsList(el): Node[];
|
||||
abstract clearNodes(el);
|
||||
abstract appendChild(el, node);
|
||||
abstract removeChild(el, node);
|
||||
abstract replaceChild(el, newNode, oldNode);
|
||||
abstract remove(el): Node;
|
||||
abstract insertBefore(el, node);
|
||||
abstract insertAllBefore(el, nodes);
|
||||
abstract insertAfter(el, node);
|
||||
abstract setInnerHTML(el, value);
|
||||
abstract getText(el): string;
|
||||
abstract setText(el, value: string);
|
||||
abstract getValue(el): string;
|
||||
abstract setValue(el, value: string);
|
||||
abstract getChecked(el): boolean;
|
||||
abstract setChecked(el, value: boolean);
|
||||
abstract getTemplateContent(el: any /** TODO #9100 */): any;
|
||||
abstract getOuterHTML(el: any /** TODO #9100 */): string;
|
||||
abstract nodeName(node: any /** TODO #9100 */): string;
|
||||
abstract nodeValue(node: any /** TODO #9100 */): string;
|
||||
abstract type(node: any /** TODO #9100 */): string;
|
||||
abstract content(node: any /** TODO #9100 */): any;
|
||||
abstract firstChild(el: any /** TODO #9100 */): Node;
|
||||
abstract nextSibling(el: any /** TODO #9100 */): Node;
|
||||
abstract parentElement(el: any /** TODO #9100 */): Node;
|
||||
abstract childNodes(el: any /** TODO #9100 */): Node[];
|
||||
abstract childNodesAsList(el: any /** TODO #9100 */): Node[];
|
||||
abstract clearNodes(el: any /** TODO #9100 */): any /** TODO #9100 */;
|
||||
abstract appendChild(el: any /** TODO #9100 */, node: any /** TODO #9100 */): any /** TODO #9100 */;
|
||||
abstract removeChild(el: any /** TODO #9100 */, node: any /** TODO #9100 */): any /** TODO #9100 */;
|
||||
abstract replaceChild(el: any /** TODO #9100 */, newNode: any /** TODO #9100 */, oldNode: any /** TODO #9100 */): any /** TODO #9100 */;
|
||||
abstract remove(el: any /** TODO #9100 */): Node;
|
||||
abstract insertBefore(el: any /** TODO #9100 */, node: any /** TODO #9100 */): any /** TODO #9100 */;
|
||||
abstract insertAllBefore(el: any /** TODO #9100 */, nodes: any /** TODO #9100 */): any /** TODO #9100 */;
|
||||
abstract insertAfter(el: any /** TODO #9100 */, node: any /** TODO #9100 */): any /** TODO #9100 */;
|
||||
abstract setInnerHTML(el: any /** TODO #9100 */, value: any /** TODO #9100 */): any /** TODO #9100 */;
|
||||
abstract getText(el: any /** TODO #9100 */): string;
|
||||
abstract setText(el: any /** TODO #9100 */, value: string): any /** TODO #9100 */;
|
||||
abstract getValue(el: any /** TODO #9100 */): string;
|
||||
abstract setValue(el: any /** TODO #9100 */, value: string): any /** TODO #9100 */;
|
||||
abstract getChecked(el: any /** TODO #9100 */): boolean;
|
||||
abstract setChecked(el: any /** TODO #9100 */, value: boolean): any /** TODO #9100 */;
|
||||
abstract createComment(text: string): any;
|
||||
abstract createTemplate(html): HTMLElement;
|
||||
abstract createElement(tagName, doc?): HTMLElement;
|
||||
abstract createElementNS(ns: string, tagName: string, doc?): Element;
|
||||
abstract createTextNode(text: string, doc?): Text;
|
||||
abstract createScriptTag(attrName: string, attrValue: string, doc?): HTMLElement;
|
||||
abstract createStyleElement(css: string, doc?): HTMLStyleElement;
|
||||
abstract createShadowRoot(el): any;
|
||||
abstract getShadowRoot(el): any;
|
||||
abstract getHost(el): any;
|
||||
abstract getDistributedNodes(el): Node[];
|
||||
abstract createTemplate(html: any /** TODO #9100 */): HTMLElement;
|
||||
abstract createElement(tagName: any /** TODO #9100 */, doc?: any /** TODO #9100 */): HTMLElement;
|
||||
abstract createElementNS(ns: string, tagName: string, doc?: any /** TODO #9100 */): Element;
|
||||
abstract createTextNode(text: string, doc?: any /** TODO #9100 */): Text;
|
||||
abstract createScriptTag(attrName: string, attrValue: string, doc?: any /** TODO #9100 */): HTMLElement;
|
||||
abstract createStyleElement(css: string, doc?: any /** TODO #9100 */): HTMLStyleElement;
|
||||
abstract createShadowRoot(el: any /** TODO #9100 */): any;
|
||||
abstract getShadowRoot(el: any /** TODO #9100 */): any;
|
||||
abstract getHost(el: any /** TODO #9100 */): any;
|
||||
abstract getDistributedNodes(el: any /** TODO #9100 */): Node[];
|
||||
abstract clone /*<T extends Node>*/ (node: Node /*T*/): Node /*T*/;
|
||||
abstract getElementsByClassName(element, name: string): HTMLElement[];
|
||||
abstract getElementsByTagName(element, name: string): HTMLElement[];
|
||||
abstract classList(element): any[];
|
||||
abstract addClass(element, className: string);
|
||||
abstract removeClass(element, className: string);
|
||||
abstract hasClass(element, className: string): boolean;
|
||||
abstract setStyle(element, styleName: string, styleValue: string);
|
||||
abstract removeStyle(element, styleName: string);
|
||||
abstract getStyle(element, styleName: string): string;
|
||||
abstract hasStyle(element, styleName: string, styleValue?: string): boolean;
|
||||
abstract tagName(element): string;
|
||||
abstract attributeMap(element): Map<string, string>;
|
||||
abstract hasAttribute(element, attribute: string): boolean;
|
||||
abstract hasAttributeNS(element, ns: string, attribute: string): boolean;
|
||||
abstract getAttribute(element, attribute: string): string;
|
||||
abstract getAttributeNS(element, ns: string, attribute: string): string;
|
||||
abstract setAttribute(element, name: string, value: string);
|
||||
abstract setAttributeNS(element, ns: string, name: string, value: string);
|
||||
abstract removeAttribute(element, attribute: string);
|
||||
abstract removeAttributeNS(element, ns: string, attribute: string);
|
||||
abstract templateAwareRoot(el);
|
||||
abstract getElementsByClassName(element: any /** TODO #9100 */, name: string): HTMLElement[];
|
||||
abstract getElementsByTagName(element: any /** TODO #9100 */, name: string): HTMLElement[];
|
||||
abstract classList(element: any /** TODO #9100 */): any[];
|
||||
abstract addClass(element: any /** TODO #9100 */, className: string): any /** TODO #9100 */;
|
||||
abstract removeClass(element: any /** TODO #9100 */, className: string): any /** TODO #9100 */;
|
||||
abstract hasClass(element: any /** TODO #9100 */, className: string): boolean;
|
||||
abstract setStyle(element: any /** TODO #9100 */, styleName: string, styleValue: string): any /** TODO #9100 */;
|
||||
abstract removeStyle(element: any /** TODO #9100 */, styleName: string): any /** TODO #9100 */;
|
||||
abstract getStyle(element: any /** TODO #9100 */, styleName: string): string;
|
||||
abstract hasStyle(element: any /** TODO #9100 */, styleName: string, styleValue?: string): boolean;
|
||||
abstract tagName(element: any /** TODO #9100 */): string;
|
||||
abstract attributeMap(element: any /** TODO #9100 */): Map<string, string>;
|
||||
abstract hasAttribute(element: any /** TODO #9100 */, attribute: string): boolean;
|
||||
abstract hasAttributeNS(element: any /** TODO #9100 */, ns: string, attribute: string): boolean;
|
||||
abstract getAttribute(element: any /** TODO #9100 */, attribute: string): string;
|
||||
abstract getAttributeNS(element: any /** TODO #9100 */, ns: string, attribute: string): string;
|
||||
abstract setAttribute(element: any /** TODO #9100 */, name: string, value: string): any /** TODO #9100 */;
|
||||
abstract setAttributeNS(element: any /** TODO #9100 */, ns: string, name: string, value: string): any /** TODO #9100 */;
|
||||
abstract removeAttribute(element: any /** TODO #9100 */, attribute: string): any /** TODO #9100 */;
|
||||
abstract removeAttributeNS(element: any /** TODO #9100 */, ns: string, attribute: string): any /** TODO #9100 */;
|
||||
abstract templateAwareRoot(el: any /** TODO #9100 */): any /** TODO #9100 */;
|
||||
abstract createHtmlDocument(): HTMLDocument;
|
||||
abstract defaultDoc(): HTMLDocument;
|
||||
abstract getBoundingClientRect(el);
|
||||
abstract getBoundingClientRect(el: any /** TODO #9100 */): any /** TODO #9100 */;
|
||||
abstract getTitle(): string;
|
||||
abstract setTitle(newTitle: string);
|
||||
abstract elementMatches(n, selector: string): boolean;
|
||||
abstract setTitle(newTitle: string): any /** TODO #9100 */;
|
||||
abstract elementMatches(n: any /** TODO #9100 */, selector: string): boolean;
|
||||
abstract isTemplateElement(el: any): boolean;
|
||||
abstract isTextNode(node): boolean;
|
||||
abstract isCommentNode(node): boolean;
|
||||
abstract isElementNode(node): boolean;
|
||||
abstract hasShadowRoot(node): boolean;
|
||||
abstract isShadowRoot(node): boolean;
|
||||
abstract isTextNode(node: any /** TODO #9100 */): boolean;
|
||||
abstract isCommentNode(node: any /** TODO #9100 */): boolean;
|
||||
abstract isElementNode(node: any /** TODO #9100 */): boolean;
|
||||
abstract hasShadowRoot(node: any /** TODO #9100 */): boolean;
|
||||
abstract isShadowRoot(node: any /** TODO #9100 */): boolean;
|
||||
abstract importIntoDoc /*<T extends Node>*/ (node: Node /*T*/): Node /*T*/;
|
||||
abstract adoptNode /*<T extends Node>*/ (node: Node /*T*/): Node /*T*/;
|
||||
abstract getHref(element): string;
|
||||
abstract getEventKey(event): string;
|
||||
abstract resolveAndSetHref(element, baseUrl: string, href: string);
|
||||
abstract getHref(element: any /** TODO #9100 */): string;
|
||||
abstract getEventKey(event: any /** TODO #9100 */): string;
|
||||
abstract resolveAndSetHref(element: any /** TODO #9100 */, baseUrl: string, href: string): any /** TODO #9100 */;
|
||||
abstract supportsDOMEvents(): boolean;
|
||||
abstract supportsNativeShadowDOM(): boolean;
|
||||
abstract getGlobalEventTarget(target: string): any;
|
||||
@ -141,12 +141,12 @@ export abstract class DomAdapter {
|
||||
abstract getBaseHref(): string;
|
||||
abstract resetBaseElement(): void;
|
||||
abstract getUserAgent(): string;
|
||||
abstract setData(element, name: string, value: string);
|
||||
abstract getComputedStyle(element): any;
|
||||
abstract getData(element, name: string): string;
|
||||
abstract setGlobalVar(name: string, value: any);
|
||||
abstract requestAnimationFrame(callback): number;
|
||||
abstract cancelAnimationFrame(id);
|
||||
abstract setData(element: any /** TODO #9100 */, name: string, value: string): any /** TODO #9100 */;
|
||||
abstract getComputedStyle(element: any /** TODO #9100 */): any;
|
||||
abstract getData(element: any /** TODO #9100 */, name: string): string;
|
||||
abstract setGlobalVar(name: string, value: any): any /** TODO #9100 */;
|
||||
abstract requestAnimationFrame(callback: any /** TODO #9100 */): number;
|
||||
abstract cancelAnimationFrame(id: any /** TODO #9100 */): any /** TODO #9100 */;
|
||||
abstract supportsWebAnimation(): boolean;
|
||||
abstract performanceNow(): number;
|
||||
abstract getAnimationPrefix(): string;
|
||||
@ -155,5 +155,5 @@ export abstract class DomAdapter {
|
||||
|
||||
abstract supportsCookies(): boolean;
|
||||
abstract getCookie(name: string): string;
|
||||
abstract setCookie(name: string, value: string);
|
||||
abstract setCookie(name: string, value: string): any /** TODO #9100 */;
|
||||
}
|
||||
|
@ -88,7 +88,7 @@ export class DomRenderer implements Renderer {
|
||||
}
|
||||
|
||||
selectRootElement(selectorOrNode: string | any, debugInfo: RenderDebugInfo): Element {
|
||||
var el;
|
||||
var el: any /** TODO #9100 */;
|
||||
if (isString(selectorOrNode)) {
|
||||
el = getDOM().querySelector(this._rootRenderer.document, selectorOrNode);
|
||||
if (isBlank(el)) {
|
||||
@ -104,7 +104,7 @@ export class DomRenderer implements Renderer {
|
||||
createElement(parent: Element, name: string, debugInfo: RenderDebugInfo): Node {
|
||||
var nsAndName = splitNamespace(name);
|
||||
var el = isPresent(nsAndName[0]) ?
|
||||
getDOM().createElementNS(NAMESPACE_URIS[nsAndName[0]], nsAndName[1]) :
|
||||
getDOM().createElementNS((NAMESPACE_URIS as any /** TODO #9100 */)[nsAndName[0]], nsAndName[1]) :
|
||||
getDOM().createElement(nsAndName[1]);
|
||||
if (isPresent(this._contentAttr)) {
|
||||
getDOM().setAttribute(el, this._contentAttr, '');
|
||||
@ -116,7 +116,7 @@ export class DomRenderer implements Renderer {
|
||||
}
|
||||
|
||||
createViewRoot(hostElement: any): any {
|
||||
var nodesParent;
|
||||
var nodesParent: any /** TODO #9100 */;
|
||||
if (this.componentProto.encapsulation === ViewEncapsulation.Native) {
|
||||
nodesParent = getDOM().createShadowRoot(hostElement);
|
||||
this._rootRenderer.sharedStylesHost.addHost(nodesParent);
|
||||
@ -184,11 +184,11 @@ export class DomRenderer implements Renderer {
|
||||
}
|
||||
|
||||
setElementAttribute(renderElement: any, attributeName: string, attributeValue: string): void {
|
||||
var attrNs;
|
||||
var attrNs: any /** TODO #9100 */;
|
||||
var nsAndName = splitNamespace(attributeName);
|
||||
if (isPresent(nsAndName[0])) {
|
||||
attributeName = nsAndName[0] + ':' + nsAndName[1];
|
||||
attrNs = NAMESPACE_URIS[nsAndName[0]];
|
||||
attrNs = (NAMESPACE_URIS as any /** TODO #9100 */)[nsAndName[0]];
|
||||
}
|
||||
if (isPresent(attributeValue)) {
|
||||
if (isPresent(attrNs)) {
|
||||
@ -212,7 +212,7 @@ export class DomRenderer implements Renderer {
|
||||
TEMPLATE_BINDINGS_EXP,
|
||||
StringWrapper.replaceAll(getDOM().getText(renderElement), /\n/g, ''));
|
||||
var parsedBindings = Json.parse(existingBindings[1]);
|
||||
parsedBindings[dashCasedPropertyName] = propertyValue;
|
||||
(parsedBindings as any /** TODO #9100 */)[dashCasedPropertyName] = propertyValue;
|
||||
getDOM().setText(renderElement, StringWrapper.replace(TEMPLATE_COMMENT_TEXT, '{}',
|
||||
Json.stringify(parsedBindings)));
|
||||
} else {
|
||||
@ -250,7 +250,7 @@ export class DomRenderer implements Renderer {
|
||||
}
|
||||
}
|
||||
|
||||
function moveNodesAfterSibling(sibling, nodes) {
|
||||
function moveNodesAfterSibling(sibling: any /** TODO #9100 */, nodes: any /** TODO #9100 */) {
|
||||
var parent = getDOM().parentElement(sibling);
|
||||
if (nodes.length > 0 && isPresent(parent)) {
|
||||
var nextSibling = getDOM().nextSibling(sibling);
|
||||
@ -266,14 +266,14 @@ function moveNodesAfterSibling(sibling, nodes) {
|
||||
}
|
||||
}
|
||||
|
||||
function appendNodes(parent, nodes) {
|
||||
function appendNodes(parent: any /** TODO #9100 */, nodes: any /** TODO #9100 */) {
|
||||
for (var i = 0; i < nodes.length; i++) {
|
||||
getDOM().appendChild(parent, nodes[i]);
|
||||
}
|
||||
}
|
||||
|
||||
function decoratePreventDefault(eventHandler: Function): Function {
|
||||
return (event) => {
|
||||
return (event: any /** TODO #9100 */) => {
|
||||
var allowDefaultBehavior = eventHandler(event);
|
||||
if (allowDefaultBehavior === false) {
|
||||
// TODO(tbosch): move preventDefault into event plugins...
|
||||
|
@ -11,7 +11,7 @@ export class DomEventsPlugin extends EventManagerPlugin {
|
||||
|
||||
addEventListener(element: HTMLElement, eventName: string, handler: Function): Function {
|
||||
var zone = this.manager.getZone();
|
||||
var outsideHandler = (event) => zone.runGuarded(() => handler(event));
|
||||
var outsideHandler = (event: any /** TODO #9100 */) => zone.runGuarded(() => handler(event));
|
||||
return this.manager.getZone().runOutsideAngular(
|
||||
() => getDOM().onAndCancel(element, eventName, outsideHandler));
|
||||
}
|
||||
@ -19,7 +19,7 @@ export class DomEventsPlugin extends EventManagerPlugin {
|
||||
addGlobalEventListener(target: string, eventName: string, handler: Function): Function {
|
||||
var element = getDOM().getGlobalEventTarget(target);
|
||||
var zone = this.manager.getZone();
|
||||
var outsideHandler = (event) => zone.runGuarded(() => handler(event));
|
||||
var outsideHandler = (event: any /** TODO #9100 */) => zone.runGuarded(() => handler(event));
|
||||
return this.manager.getZone().runOutsideAngular(
|
||||
() => getDOM().onAndCancel(element, eventName, outsideHandler));
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ export class HammerGesturesPlugin extends HammerGesturesPluginCommon {
|
||||
supports(eventName: string): boolean {
|
||||
if (!super.supports(eventName) && !this.isCustomEvent(eventName)) return false;
|
||||
|
||||
if (!isPresent(window['Hammer'])) {
|
||||
if (!isPresent((window as any /** TODO #???? */)['Hammer'])) {
|
||||
throw new BaseException(`Hammer.js is not loaded, can not bind ${eventName} event`);
|
||||
}
|
||||
|
||||
@ -51,7 +51,7 @@ export class HammerGesturesPlugin extends HammerGesturesPluginCommon {
|
||||
return zone.runOutsideAngular(() => {
|
||||
// Creating the manager bind events, must be done outside of angular
|
||||
var mc = this._config.buildHammer(element);
|
||||
var callback = function(eventObj) { zone.runGuarded(function() { handler(eventObj); }); };
|
||||
var callback = function(eventObj: any /** TODO #???? */) { zone.runGuarded(function() { handler(eventObj); }); };
|
||||
mc.on(eventName, callback);
|
||||
return () => { mc.off(eventName, callback); };
|
||||
});
|
||||
|
@ -91,7 +91,7 @@ export class KeyEventsPlugin extends EventManagerPlugin {
|
||||
|
||||
static eventCallback(element: HTMLElement, fullKey: any, handler: Function,
|
||||
zone: NgZone): Function {
|
||||
return (event) => {
|
||||
return (event: any /** TODO #9100 */) => {
|
||||
if (StringWrapper.equals(KeyEventsPlugin.getEventFullKey(event), fullKey)) {
|
||||
zone.runGuarded(() => handler(event));
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ export class SharedStylesHost {
|
||||
constructor() {}
|
||||
|
||||
addStyles(styles: string[]) {
|
||||
var additions = [];
|
||||
var additions: any[] /** TODO #9100 */ = [];
|
||||
styles.forEach(style => {
|
||||
if (!SetWrapper.has(this._stylesSet, style)) {
|
||||
this._stylesSet.add(style);
|
||||
|
@ -6,10 +6,10 @@ var DASH_CASE_REGEXP = /-([a-z])/g;
|
||||
|
||||
export function camelCaseToDashCase(input: string): string {
|
||||
return StringWrapper.replaceAllMapped(input, CAMEL_CASE_REGEXP,
|
||||
(m) => { return '-' + m[1].toLowerCase(); });
|
||||
(m: any /** TODO #9100 */) => { return '-' + m[1].toLowerCase(); });
|
||||
}
|
||||
|
||||
export function dashCaseToCamelCase(input: string): string {
|
||||
return StringWrapper.replaceAllMapped(input, DASH_CASE_REGEXP,
|
||||
(m) => { return m[1].toUpperCase(); });
|
||||
(m: any /** TODO #9100 */) => { return m[1].toUpperCase(); });
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ export class WebAnimationsDriver implements AnimationDriver {
|
||||
|
||||
var anyElm = <any>element;
|
||||
|
||||
var formattedSteps = [];
|
||||
var formattedSteps: any[] /** TODO #9100 */ = [];
|
||||
var startingStyleLookup: {[key: string]: string|number}= {};
|
||||
if (isPresent(startingStyles) && startingStyles.styles.length > 0) {
|
||||
startingStyleLookup = _populateStyles(anyElm, startingStyles, {});
|
||||
@ -30,7 +30,7 @@ export class WebAnimationsDriver implements AnimationDriver {
|
||||
|
||||
keyframes.forEach((keyframe: AnimationKeyframe) => {
|
||||
let data = _populateStyles(anyElm, keyframe.styles, startingStyleLookup);
|
||||
data['offset'] = keyframe.offset;
|
||||
(data as any /** TODO #9100 */)['offset'] = keyframe.offset;
|
||||
formattedSteps.push(data);
|
||||
});
|
||||
|
||||
@ -55,15 +55,15 @@ export class WebAnimationsDriver implements AnimationDriver {
|
||||
function _populateStyles(element: any, styles: AnimationStyles, defaultStyles: {[key: string]: string|number}) {
|
||||
var data = {};
|
||||
styles.styles.forEach((entry) => {
|
||||
StringMapWrapper.forEach(entry, (val, prop) => {
|
||||
data[prop] = val == AUTO_STYLE
|
||||
StringMapWrapper.forEach(entry, (val: any /** TODO #9100 */, prop: any /** TODO #9100 */) => {
|
||||
(data as any /** TODO #9100 */)[prop] = val == AUTO_STYLE
|
||||
? _computeStyle(element, prop)
|
||||
: val.toString() + _resolveStyleUnit(val, prop);
|
||||
});
|
||||
});
|
||||
StringMapWrapper.forEach(defaultStyles, (value, prop) => {
|
||||
if (!isPresent(data[prop])) {
|
||||
data[prop] = value;
|
||||
StringMapWrapper.forEach(defaultStyles, (value: any /** TODO #9100 */, prop: any /** TODO #9100 */) => {
|
||||
if (!isPresent((data as any /** TODO #9100 */)[prop])) {
|
||||
(data as any /** TODO #9100 */)[prop] = value;
|
||||
}
|
||||
});
|
||||
return data;
|
||||
|
@ -47,7 +47,7 @@ export class WebAnimationsPlayer implements AnimationPlayer {
|
||||
this._onFinish();
|
||||
}
|
||||
|
||||
setPosition(p): void {
|
||||
setPosition(p: any /** TODO #9100 */): void {
|
||||
this._player.currentTime = p * this.totalTime;
|
||||
}
|
||||
|
||||
|
@ -93,7 +93,7 @@ export abstract class DomSanitizationService implements SanitizationService {
|
||||
*
|
||||
* WARNING: calling this method with untrusted user data will cause severe security bugs!
|
||||
*/
|
||||
abstract bypassSecurityTrustResourceUrl(value: string);
|
||||
abstract bypassSecurityTrustResourceUrl(value: string): any /** TODO #9100 */;
|
||||
}
|
||||
|
||||
|
||||
|
@ -166,7 +166,7 @@ class SanitizingHtmlSerializer {
|
||||
}
|
||||
}
|
||||
|
||||
private chars(chars) { this.buf.push(encodeEntities(chars)); }
|
||||
private chars(chars: any /** TODO #9100 */) { this.buf.push(encodeEntities(chars)); }
|
||||
}
|
||||
|
||||
// Regular Expressions for parsing tags and attributes
|
||||
@ -181,16 +181,16 @@ const NON_ALPHANUMERIC_REGEXP = /([^\#-~ |!])/g;
|
||||
* @param value
|
||||
* @returns {string} escaped text
|
||||
*/
|
||||
function encodeEntities(value) {
|
||||
function encodeEntities(value: any /** TODO #9100 */) {
|
||||
return value.replace(/&/g, '&')
|
||||
.replace(SURROGATE_PAIR_REGEXP,
|
||||
function(match) {
|
||||
function(match: any /** TODO #9100 */) {
|
||||
let hi = match.charCodeAt(0);
|
||||
let low = match.charCodeAt(1);
|
||||
return '&#' + (((hi - 0xD800) * 0x400) + (low - 0xDC00) + 0x10000) + ';';
|
||||
})
|
||||
.replace(NON_ALPHANUMERIC_REGEXP,
|
||||
function(match) { return '&#' + match.charCodeAt(0) + ';'; })
|
||||
function(match: any /** TODO #9100 */) { return '&#' + match.charCodeAt(0) + ';'; })
|
||||
.replace(/</g, '<')
|
||||
.replace(/>/g, '>');
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ export class ClientMessageBroker_ extends ClientMessageBroker {
|
||||
/** @internal */
|
||||
public _serializer: Serializer;
|
||||
|
||||
constructor(messageBus: MessageBus, _serializer: Serializer, public channel) {
|
||||
constructor(messageBus: MessageBus, _serializer: Serializer, public channel: any /** TODO #9100 */) {
|
||||
super();
|
||||
this._sink = messageBus.to(channel);
|
||||
this._serializer = _serializer;
|
||||
@ -58,7 +58,7 @@ export class ClientMessageBroker_ extends ClientMessageBroker {
|
||||
var time: string = stringify(DateWrapper.toMillis(DateWrapper.now()));
|
||||
var iteration: number = 0;
|
||||
var id: string = name + time + stringify(iteration);
|
||||
while (isPresent(this._pending[id])) {
|
||||
while (isPresent((this as any /** TODO #9100 */)._pending[id])) {
|
||||
id = `${name}${time}${iteration}`;
|
||||
iteration++;
|
||||
}
|
||||
@ -66,7 +66,7 @@ export class ClientMessageBroker_ extends ClientMessageBroker {
|
||||
}
|
||||
|
||||
runOnService(args: UiArguments, returnType: Type): Promise<any> {
|
||||
var fnArgs = [];
|
||||
var fnArgs: any[] /** TODO #9100 */ = [];
|
||||
if (isPresent(args.args)) {
|
||||
args.args.forEach(argument => {
|
||||
if (argument.type != null) {
|
||||
@ -102,7 +102,7 @@ export class ClientMessageBroker_ extends ClientMessageBroker {
|
||||
// TODO(jteplitz602): Create a class for these messages so we don't keep using StringMap #3685
|
||||
var message = {'method': args.method, 'args': fnArgs};
|
||||
if (id != null) {
|
||||
message['id'] = id;
|
||||
(message as any /** TODO #9100 */)['id'] = id;
|
||||
}
|
||||
ObservableWrapper.callEmit(this._sink, message);
|
||||
|
||||
@ -151,7 +151,7 @@ class MessageData {
|
||||
}
|
||||
|
||||
export class FnArg {
|
||||
constructor(public value, public type: Type) {}
|
||||
constructor(public value: any /** TODO #9100 */, public type: Type) {}
|
||||
}
|
||||
|
||||
export class UiArguments {
|
||||
|
@ -43,7 +43,7 @@ export class ServiceMessageBroker_ extends ServiceMessageBroker {
|
||||
private _sink: EventEmitter<any>;
|
||||
private _methods: Map<string, Function> = new Map<string, Function>();
|
||||
|
||||
constructor(messageBus: MessageBus, private _serializer: Serializer, public channel) {
|
||||
constructor(messageBus: MessageBus, private _serializer: Serializer, public channel: any /** TODO #9100 */) {
|
||||
super();
|
||||
this._sink = messageBus.to(channel);
|
||||
var source = messageBus.from(channel);
|
||||
|
@ -13,7 +13,7 @@ export class EventDispatcher {
|
||||
constructor(private _sink: EventEmitter<any>, private _serializer: Serializer) {}
|
||||
|
||||
dispatchRenderEvent(element: any, eventTarget: string, eventName: string, event: any): boolean {
|
||||
var serializedEvent;
|
||||
var serializedEvent: any /** TODO #9100 */;
|
||||
// TODO (jteplitz602): support custom events #3350
|
||||
switch (event.type) {
|
||||
case "click":
|
||||
|
@ -80,7 +80,7 @@ function serializeEvent(e: any, properties: string[]): {[key: string]: any} {
|
||||
var serialized = {};
|
||||
for (var i = 0; i < properties.length; i++) {
|
||||
var prop = properties[i];
|
||||
serialized[prop] = e[prop];
|
||||
(serialized as any /** TODO #9100 */)[prop] = e[prop];
|
||||
}
|
||||
return serialized;
|
||||
}
|
||||
|
@ -155,7 +155,7 @@ export class MessageBasedRenderer {
|
||||
|
||||
private _listen(renderer: Renderer, renderElement: any, eventName: string, unlistenId: number) {
|
||||
var unregisterCallback = renderer.listen(renderElement, eventName,
|
||||
(event) => this._eventDispatcher.dispatchRenderEvent(
|
||||
(event: any /** TODO #9100 */) => this._eventDispatcher.dispatchRenderEvent(
|
||||
renderElement, null, eventName, event));
|
||||
this._renderStore.store(unregisterCallback, unlistenId);
|
||||
}
|
||||
@ -164,7 +164,7 @@ export class MessageBasedRenderer {
|
||||
unlistenId: number) {
|
||||
var unregisterCallback = renderer.listenGlobal(
|
||||
eventTarget, eventName,
|
||||
(event) => this._eventDispatcher.dispatchRenderEvent(null, eventTarget, eventName, event));
|
||||
(event: any /** TODO #9100 */) => this._eventDispatcher.dispatchRenderEvent(null, eventTarget, eventName, event));
|
||||
this._renderStore.store(unregisterCallback, unlistenId);
|
||||
}
|
||||
|
||||
|
@ -20,7 +20,7 @@ import {AnimationKeyframe, AnimationPlayer, AnimationStyles, RenderDebugInfo} fr
|
||||
|
||||
@Injectable()
|
||||
export class WebWorkerRootRenderer implements RootRenderer {
|
||||
private _messageBroker;
|
||||
private _messageBroker: any /** TODO #9100 */;
|
||||
public globalEvents: NamedEventEmitter = new NamedEventEmitter();
|
||||
private _componentRenderers: Map<string, WebWorkerRenderer> =
|
||||
new Map<string, WebWorkerRenderer>();
|
||||
|
@ -9,7 +9,7 @@ import {DomAdapter, setRootDomAdapter} from '../../dom/dom_adapter';
|
||||
export class WorkerDomAdapter extends DomAdapter {
|
||||
static makeCurrent() { setRootDomAdapter(new WorkerDomAdapter()); }
|
||||
|
||||
logError(error) {
|
||||
logError(error: any /** TODO #9100 */) {
|
||||
if (console.error) {
|
||||
console.error(error);
|
||||
} else {
|
||||
@ -17,9 +17,9 @@ export class WorkerDomAdapter extends DomAdapter {
|
||||
}
|
||||
}
|
||||
|
||||
log(error) { console.log(error); }
|
||||
log(error: any /** TODO #9100 */) { console.log(error); }
|
||||
|
||||
logGroup(error) {
|
||||
logGroup(error: any /** TODO #9100 */) {
|
||||
if (console.group) {
|
||||
console.group(error);
|
||||
this.logError(error);
|
||||
@ -34,7 +34,7 @@ export class WorkerDomAdapter extends DomAdapter {
|
||||
}
|
||||
}
|
||||
|
||||
hasProperty(element, name: string): boolean { throw "not implemented"; }
|
||||
hasProperty(element: any /** TODO #9100 */, name: string): boolean { throw "not implemented"; }
|
||||
setProperty(el: Element, name: string, value: any) { throw "not implemented"; }
|
||||
getProperty(el: Element, name: string): any { throw "not implemented"; }
|
||||
invoke(el: Element, methodName: string, args: any[]): any { throw "not implemented"; }
|
||||
@ -46,94 +46,94 @@ export class WorkerDomAdapter extends DomAdapter {
|
||||
|
||||
parse(templateHtml: string) { throw "not implemented"; }
|
||||
query(selector: string): any { throw "not implemented"; }
|
||||
querySelector(el, selector: string): HTMLElement { throw "not implemented"; }
|
||||
querySelectorAll(el, selector: string): any[] { throw "not implemented"; }
|
||||
on(el, evt, listener) { throw "not implemented"; }
|
||||
onAndCancel(el, evt, listener): Function { throw "not implemented"; }
|
||||
dispatchEvent(el, evt) { throw "not implemented"; }
|
||||
createMouseEvent(eventType): any { throw "not implemented"; }
|
||||
querySelector(el: any /** TODO #9100 */, selector: string): HTMLElement { throw "not implemented"; }
|
||||
querySelectorAll(el: any /** TODO #9100 */, selector: string): any[] { throw "not implemented"; }
|
||||
on(el: any /** TODO #9100 */, evt: any /** TODO #9100 */, listener: any /** TODO #9100 */) { throw "not implemented"; }
|
||||
onAndCancel(el: any /** TODO #9100 */, evt: any /** TODO #9100 */, listener: any /** TODO #9100 */): Function { throw "not implemented"; }
|
||||
dispatchEvent(el: any /** TODO #9100 */, evt: any /** TODO #9100 */) { throw "not implemented"; }
|
||||
createMouseEvent(eventType: any /** TODO #9100 */): any { throw "not implemented"; }
|
||||
createEvent(eventType: string): any { throw "not implemented"; }
|
||||
preventDefault(evt) { throw "not implemented"; }
|
||||
isPrevented(evt): boolean { throw "not implemented"; }
|
||||
getInnerHTML(el): string { throw "not implemented"; }
|
||||
getTemplateContent(el): any { throw "not implemented"; }
|
||||
getOuterHTML(el): string { throw "not implemented"; }
|
||||
nodeName(node): string { throw "not implemented"; }
|
||||
nodeValue(node): string { throw "not implemented"; }
|
||||
type(node): string { throw "not implemented"; }
|
||||
content(node): any { throw "not implemented"; }
|
||||
firstChild(el): Node { throw "not implemented"; }
|
||||
nextSibling(el): Node { throw "not implemented"; }
|
||||
parentElement(el): Node { throw "not implemented"; }
|
||||
childNodes(el): Node[] { throw "not implemented"; }
|
||||
childNodesAsList(el): Node[] { throw "not implemented"; }
|
||||
clearNodes(el) { throw "not implemented"; }
|
||||
appendChild(el, node) { throw "not implemented"; }
|
||||
removeChild(el, node) { throw "not implemented"; }
|
||||
replaceChild(el, newNode, oldNode) { throw "not implemented"; }
|
||||
remove(el): Node { throw "not implemented"; }
|
||||
insertBefore(el, node) { throw "not implemented"; }
|
||||
insertAllBefore(el, nodes) { throw "not implemented"; }
|
||||
insertAfter(el, node) { throw "not implemented"; }
|
||||
setInnerHTML(el, value) { throw "not implemented"; }
|
||||
getText(el): string { throw "not implemented"; }
|
||||
setText(el, value: string) { throw "not implemented"; }
|
||||
getValue(el): string { throw "not implemented"; }
|
||||
setValue(el, value: string) { throw "not implemented"; }
|
||||
getChecked(el): boolean { throw "not implemented"; }
|
||||
setChecked(el, value: boolean) { throw "not implemented"; }
|
||||
preventDefault(evt: any /** TODO #9100 */) { throw "not implemented"; }
|
||||
isPrevented(evt: any /** TODO #9100 */): boolean { throw "not implemented"; }
|
||||
getInnerHTML(el: any /** TODO #9100 */): string { throw "not implemented"; }
|
||||
getTemplateContent(el: any /** TODO #9100 */): any { throw "not implemented"; }
|
||||
getOuterHTML(el: any /** TODO #9100 */): string { throw "not implemented"; }
|
||||
nodeName(node: any /** TODO #9100 */): string { throw "not implemented"; }
|
||||
nodeValue(node: any /** TODO #9100 */): string { throw "not implemented"; }
|
||||
type(node: any /** TODO #9100 */): string { throw "not implemented"; }
|
||||
content(node: any /** TODO #9100 */): any { throw "not implemented"; }
|
||||
firstChild(el: any /** TODO #9100 */): Node { throw "not implemented"; }
|
||||
nextSibling(el: any /** TODO #9100 */): Node { throw "not implemented"; }
|
||||
parentElement(el: any /** TODO #9100 */): Node { throw "not implemented"; }
|
||||
childNodes(el: any /** TODO #9100 */): Node[] { throw "not implemented"; }
|
||||
childNodesAsList(el: any /** TODO #9100 */): Node[] { throw "not implemented"; }
|
||||
clearNodes(el: any /** TODO #9100 */) { throw "not implemented"; }
|
||||
appendChild(el: any /** TODO #9100 */, node: any /** TODO #9100 */) { throw "not implemented"; }
|
||||
removeChild(el: any /** TODO #9100 */, node: any /** TODO #9100 */) { throw "not implemented"; }
|
||||
replaceChild(el: any /** TODO #9100 */, newNode: any /** TODO #9100 */, oldNode: any /** TODO #9100 */) { throw "not implemented"; }
|
||||
remove(el: any /** TODO #9100 */): Node { throw "not implemented"; }
|
||||
insertBefore(el: any /** TODO #9100 */, node: any /** TODO #9100 */) { throw "not implemented"; }
|
||||
insertAllBefore(el: any /** TODO #9100 */, nodes: any /** TODO #9100 */) { throw "not implemented"; }
|
||||
insertAfter(el: any /** TODO #9100 */, node: any /** TODO #9100 */) { throw "not implemented"; }
|
||||
setInnerHTML(el: any /** TODO #9100 */, value: any /** TODO #9100 */) { throw "not implemented"; }
|
||||
getText(el: any /** TODO #9100 */): string { throw "not implemented"; }
|
||||
setText(el: any /** TODO #9100 */, value: string) { throw "not implemented"; }
|
||||
getValue(el: any /** TODO #9100 */): string { throw "not implemented"; }
|
||||
setValue(el: any /** TODO #9100 */, value: string) { throw "not implemented"; }
|
||||
getChecked(el: any /** TODO #9100 */): boolean { throw "not implemented"; }
|
||||
setChecked(el: any /** TODO #9100 */, value: boolean) { throw "not implemented"; }
|
||||
createComment(text: string): any { throw "not implemented"; }
|
||||
createTemplate(html): HTMLElement { throw "not implemented"; }
|
||||
createElement(tagName, doc?): HTMLElement { throw "not implemented"; }
|
||||
createElementNS(ns: string, tagName: string, doc?): Element { throw "not implemented"; }
|
||||
createTextNode(text: string, doc?): Text { throw "not implemented"; }
|
||||
createScriptTag(attrName: string, attrValue: string, doc?): HTMLElement {
|
||||
createTemplate(html: any /** TODO #9100 */): HTMLElement { throw "not implemented"; }
|
||||
createElement(tagName: any /** TODO #9100 */, doc?: any /** TODO #9100 */): HTMLElement { throw "not implemented"; }
|
||||
createElementNS(ns: string, tagName: string, doc?: any /** TODO #9100 */): Element { throw "not implemented"; }
|
||||
createTextNode(text: string, doc?: any /** TODO #9100 */): Text { throw "not implemented"; }
|
||||
createScriptTag(attrName: string, attrValue: string, doc?: any /** TODO #9100 */): HTMLElement {
|
||||
throw "not implemented";
|
||||
}
|
||||
createStyleElement(css: string, doc?): HTMLStyleElement { throw "not implemented"; }
|
||||
createShadowRoot(el): any { throw "not implemented"; }
|
||||
getShadowRoot(el): any { throw "not implemented"; }
|
||||
getHost(el): any { throw "not implemented"; }
|
||||
getDistributedNodes(el): Node[] { throw "not implemented"; }
|
||||
createStyleElement(css: string, doc?: any /** TODO #9100 */): HTMLStyleElement { throw "not implemented"; }
|
||||
createShadowRoot(el: any /** TODO #9100 */): any { throw "not implemented"; }
|
||||
getShadowRoot(el: any /** TODO #9100 */): any { throw "not implemented"; }
|
||||
getHost(el: any /** TODO #9100 */): any { throw "not implemented"; }
|
||||
getDistributedNodes(el: any /** TODO #9100 */): Node[] { throw "not implemented"; }
|
||||
clone(node: Node): Node { throw "not implemented"; }
|
||||
getElementsByClassName(element, name: string): HTMLElement[] { throw "not implemented"; }
|
||||
getElementsByTagName(element, name: string): HTMLElement[] { throw "not implemented"; }
|
||||
classList(element): any[] { throw "not implemented"; }
|
||||
addClass(element, className: string) { throw "not implemented"; }
|
||||
removeClass(element, className: string) { throw "not implemented"; }
|
||||
hasClass(element, className: string): boolean { throw "not implemented"; }
|
||||
setStyle(element, styleName: string, styleValue: string) { throw "not implemented"; }
|
||||
removeStyle(element, styleName: string) { throw "not implemented"; }
|
||||
getStyle(element, styleName: string): string { throw "not implemented"; }
|
||||
hasStyle(element, styleName: string, styleValue?: string): boolean { throw "not implemented"; }
|
||||
tagName(element): string { throw "not implemented"; }
|
||||
attributeMap(element): Map<string, string> { throw "not implemented"; }
|
||||
hasAttribute(element, attribute: string): boolean { throw "not implemented"; }
|
||||
hasAttributeNS(element, ns: string, attribute: string): boolean { throw "not implemented"; }
|
||||
getAttribute(element, attribute: string): string { throw "not implemented"; }
|
||||
getAttributeNS(element, ns: string, attribute: string): string { throw "not implemented"; }
|
||||
setAttribute(element, name: string, value: string) { throw "not implemented"; }
|
||||
setAttributeNS(element, ns: string, name: string, value: string) { throw "not implemented"; }
|
||||
removeAttribute(element, attribute: string) { throw "not implemented"; }
|
||||
removeAttributeNS(element, ns: string, attribute: string) { throw "not implemented"; }
|
||||
templateAwareRoot(el) { throw "not implemented"; }
|
||||
getElementsByClassName(element: any /** TODO #9100 */, name: string): HTMLElement[] { throw "not implemented"; }
|
||||
getElementsByTagName(element: any /** TODO #9100 */, name: string): HTMLElement[] { throw "not implemented"; }
|
||||
classList(element: any /** TODO #9100 */): any[] { throw "not implemented"; }
|
||||
addClass(element: any /** TODO #9100 */, className: string) { throw "not implemented"; }
|
||||
removeClass(element: any /** TODO #9100 */, className: string) { throw "not implemented"; }
|
||||
hasClass(element: any /** TODO #9100 */, className: string): boolean { throw "not implemented"; }
|
||||
setStyle(element: any /** TODO #9100 */, styleName: string, styleValue: string) { throw "not implemented"; }
|
||||
removeStyle(element: any /** TODO #9100 */, styleName: string) { throw "not implemented"; }
|
||||
getStyle(element: any /** TODO #9100 */, styleName: string): string { throw "not implemented"; }
|
||||
hasStyle(element: any /** TODO #9100 */, styleName: string, styleValue?: string): boolean { throw "not implemented"; }
|
||||
tagName(element: any /** TODO #9100 */): string { throw "not implemented"; }
|
||||
attributeMap(element: any /** TODO #9100 */): Map<string, string> { throw "not implemented"; }
|
||||
hasAttribute(element: any /** TODO #9100 */, attribute: string): boolean { throw "not implemented"; }
|
||||
hasAttributeNS(element: any /** TODO #9100 */, ns: string, attribute: string): boolean { throw "not implemented"; }
|
||||
getAttribute(element: any /** TODO #9100 */, attribute: string): string { throw "not implemented"; }
|
||||
getAttributeNS(element: any /** TODO #9100 */, ns: string, attribute: string): string { throw "not implemented"; }
|
||||
setAttribute(element: any /** TODO #9100 */, name: string, value: string) { throw "not implemented"; }
|
||||
setAttributeNS(element: any /** TODO #9100 */, ns: string, name: string, value: string) { throw "not implemented"; }
|
||||
removeAttribute(element: any /** TODO #9100 */, attribute: string) { throw "not implemented"; }
|
||||
removeAttributeNS(element: any /** TODO #9100 */, ns: string, attribute: string) { throw "not implemented"; }
|
||||
templateAwareRoot(el: any /** TODO #9100 */) { throw "not implemented"; }
|
||||
createHtmlDocument(): HTMLDocument { throw "not implemented"; }
|
||||
defaultDoc(): HTMLDocument { throw "not implemented"; }
|
||||
getBoundingClientRect(el) { throw "not implemented"; }
|
||||
getBoundingClientRect(el: any /** TODO #9100 */) { throw "not implemented"; }
|
||||
getTitle(): string { throw "not implemented"; }
|
||||
setTitle(newTitle: string) { throw "not implemented"; }
|
||||
elementMatches(n, selector: string): boolean { throw "not implemented"; }
|
||||
elementMatches(n: any /** TODO #9100 */, selector: string): boolean { throw "not implemented"; }
|
||||
isTemplateElement(el: any): boolean { throw "not implemented"; }
|
||||
isTextNode(node): boolean { throw "not implemented"; }
|
||||
isCommentNode(node): boolean { throw "not implemented"; }
|
||||
isElementNode(node): boolean { throw "not implemented"; }
|
||||
hasShadowRoot(node): boolean { throw "not implemented"; }
|
||||
isShadowRoot(node): boolean { throw "not implemented"; }
|
||||
isTextNode(node: any /** TODO #9100 */): boolean { throw "not implemented"; }
|
||||
isCommentNode(node: any /** TODO #9100 */): boolean { throw "not implemented"; }
|
||||
isElementNode(node: any /** TODO #9100 */): boolean { throw "not implemented"; }
|
||||
hasShadowRoot(node: any /** TODO #9100 */): boolean { throw "not implemented"; }
|
||||
isShadowRoot(node: any /** TODO #9100 */): boolean { throw "not implemented"; }
|
||||
importIntoDoc(node: Node): Node { throw "not implemented"; }
|
||||
adoptNode(node: Node): Node { throw "not implemented"; }
|
||||
getHref(element): string { throw "not implemented"; }
|
||||
getEventKey(event): string { throw "not implemented"; }
|
||||
resolveAndSetHref(element, baseUrl: string, href: string) { throw "not implemented"; }
|
||||
getHref(element: any /** TODO #9100 */): string { throw "not implemented"; }
|
||||
getEventKey(event: any /** TODO #9100 */): string { throw "not implemented"; }
|
||||
resolveAndSetHref(element: any /** TODO #9100 */, baseUrl: string, href: string) { throw "not implemented"; }
|
||||
supportsDOMEvents(): boolean { throw "not implemented"; }
|
||||
supportsNativeShadowDOM(): boolean { throw "not implemented"; }
|
||||
getGlobalEventTarget(target: string): any { throw "not implemented"; }
|
||||
@ -142,12 +142,12 @@ export class WorkerDomAdapter extends DomAdapter {
|
||||
getBaseHref(): string { throw "not implemented"; }
|
||||
resetBaseElement(): void { throw "not implemented"; }
|
||||
getUserAgent(): string { throw "not implemented"; }
|
||||
setData(element, name: string, value: string) { throw "not implemented"; }
|
||||
getComputedStyle(element): any { throw "not implemented"; }
|
||||
getData(element, name: string): string { throw "not implemented"; }
|
||||
setData(element: any /** TODO #9100 */, name: string, value: string) { throw "not implemented"; }
|
||||
getComputedStyle(element: any /** TODO #9100 */): any { throw "not implemented"; }
|
||||
getData(element: any /** TODO #9100 */, name: string): string { throw "not implemented"; }
|
||||
setGlobalVar(name: string, value: any) { throw "not implemented"; }
|
||||
requestAnimationFrame(callback): number { throw "not implemented"; }
|
||||
cancelAnimationFrame(id) { throw "not implemented"; }
|
||||
requestAnimationFrame(callback: any /** TODO #9100 */): number { throw "not implemented"; }
|
||||
cancelAnimationFrame(id: any /** TODO #9100 */) { throw "not implemented"; }
|
||||
performanceNow(): number { throw "not implemented"; }
|
||||
getAnimationPrefix(): string { throw "not implemented"; }
|
||||
getTransitionEnd(): string { throw "not implemented"; }
|
||||
|
@ -113,7 +113,7 @@ export function initializeGenericWorkerRenderer(injector: Injector) {
|
||||
|
||||
// initialize message services after the bus has been created
|
||||
let services = injector.get(WORKER_RENDER_STARTABLE_MESSAGING_SERVICE);
|
||||
zone.runGuarded(() => { services.forEach((svc) => { svc.start(); }); });
|
||||
zone.runGuarded(() => { services.forEach((svc: any /** TODO #9100 */) => { svc.start(); }); });
|
||||
}
|
||||
|
||||
export function bootstrapRender(
|
||||
|
Reference in New Issue
Block a user