angular2
Version:
Angular 2 - a web framework for modern web apps
384 lines (383 loc) • 11.1 kB
JavaScript
;
Object.defineProperties(module.exports, {
DOM: {get: function() {
return DOM;
}},
setRootDomAdapter: {get: function() {
return setRootDomAdapter;
}},
DomAdapter: {get: function() {
return DomAdapter;
}},
__esModule: {value: true}
});
var $__angular2_47_src_47_facade_47_lang__;
var $__0 = ($__angular2_47_src_47_facade_47_lang__ = require("angular2/src/facade/lang"), $__angular2_47_src_47_facade_47_lang__ && $__angular2_47_src_47_facade_47_lang__.__esModule && $__angular2_47_src_47_facade_47_lang__ || {default: $__angular2_47_src_47_facade_47_lang__}),
ABSTRACT = $__0.ABSTRACT,
BaseException = $__0.BaseException;
var DOM;
function setRootDomAdapter(adapter) {
DOM = adapter;
}
Object.defineProperty(setRootDomAdapter, "parameters", {get: function() {
return [[DomAdapter]];
}});
function _abstract() {
return new BaseException('This method is abstract');
}
var DomAdapter = function DomAdapter() {
;
};
($traceurRuntime.createClass)(DomAdapter, {
get attrToPropMap() {
throw _abstract();
},
parse: function(templateHtml) {
throw _abstract();
},
query: function(selector) {
throw _abstract();
},
querySelector: function(el, selector) {
throw _abstract();
},
querySelectorAll: function(el, selector) {
throw _abstract();
},
on: function(el, evt, listener) {
throw _abstract();
},
onAndCancel: function(el, evt, listener) {
throw _abstract();
},
dispatchEvent: function(el, evt) {
throw _abstract();
},
createMouseEvent: function(eventType) {
throw _abstract();
},
createEvent: function(eventType) {
throw _abstract();
},
getInnerHTML: function(el) {
throw _abstract();
},
getOuterHTML: function(el) {
throw _abstract();
},
nodeName: function(node) {
throw _abstract();
},
nodeValue: function(node) {
throw _abstract();
},
type: function(node) {
throw _abstract();
},
content: function(node) {
throw _abstract();
},
firstChild: function(el) {
throw _abstract();
},
nextSibling: function(el) {
throw _abstract();
},
parentElement: function(el) {
throw _abstract();
},
childNodes: function(el) {
throw _abstract();
},
childNodesAsList: function(el) {
throw _abstract();
},
clearNodes: function(el) {
throw _abstract();
},
appendChild: function(el, node) {
throw _abstract();
},
removeChild: function(el, node) {
throw _abstract();
},
replaceChild: function(el, newNode, oldNode) {
throw _abstract();
},
remove: function(el) {
throw _abstract();
},
insertBefore: function(el, node) {
throw _abstract();
},
insertAllBefore: function(el, nodes) {
throw _abstract();
},
insertAfter: function(el, node) {
throw _abstract();
},
setInnerHTML: function(el, value) {
throw _abstract();
},
getText: function(el) {
throw _abstract();
},
setText: function(el, value) {
throw _abstract();
},
getValue: function(el) {
throw _abstract();
},
setValue: function(el, value) {
throw _abstract();
},
getChecked: function(el) {
throw _abstract();
},
setChecked: function(el, value) {
throw _abstract();
},
createTemplate: function(html) {
throw _abstract();
},
createElement: function(tagName) {
var doc = arguments[1] !== (void 0) ? arguments[1] : null;
throw _abstract();
},
createTextNode: function(text) {
var doc = arguments[1] !== (void 0) ? arguments[1] : null;
throw _abstract();
},
createScriptTag: function(attrName, attrValue) {
var doc = arguments[2] !== (void 0) ? arguments[2] : null;
throw _abstract();
},
createStyleElement: function(css) {
var doc = arguments[1] !== (void 0) ? arguments[1] : null;
throw _abstract();
},
createShadowRoot: function(el) {
throw _abstract();
},
getShadowRoot: function(el) {
throw _abstract();
},
getHost: function(el) {
throw _abstract();
},
getDistributedNodes: function(el) {
throw _abstract();
},
clone: function(node) {
throw _abstract();
},
hasProperty: function(element, name) {
throw _abstract();
},
getElementsByClassName: function(element, name) {
throw _abstract();
},
getElementsByTagName: function(element, name) {
throw _abstract();
},
classList: function(element) {
throw _abstract();
},
addClass: function(element, classname) {
throw _abstract();
},
removeClass: function(element, classname) {
throw _abstract();
},
hasClass: function(element, classname) {
throw _abstract();
},
setStyle: function(element, stylename, stylevalue) {
throw _abstract();
},
removeStyle: function(element, stylename) {
throw _abstract();
},
getStyle: function(element, stylename) {
throw _abstract();
},
tagName: function(element) {
throw _abstract();
},
attributeMap: function(element) {
throw _abstract();
},
getAttribute: function(element, attribute) {
throw _abstract();
},
setAttribute: function(element, name, value) {
throw _abstract();
},
removeAttribute: function(element, attribute) {
throw _abstract();
},
templateAwareRoot: function(el) {
throw _abstract();
},
createHtmlDocument: function() {
throw _abstract();
},
defaultDoc: function() {
throw _abstract();
},
getBoundingClientRect: function(el) {
throw _abstract();
},
getTitle: function() {
throw _abstract();
},
setTitle: function(newTitle) {
throw _abstract();
},
elementMatches: function(n, selector) {
throw _abstract();
},
isTemplateElement: function(el) {
throw _abstract();
},
isTextNode: function(node) {
throw _abstract();
},
isCommentNode: function(node) {
throw _abstract();
},
isElementNode: function(node) {
throw _abstract();
},
hasShadowRoot: function(node) {
throw _abstract();
},
isShadowRoot: function(node) {
throw _abstract();
},
importIntoDoc: function(node) {
throw _abstract();
},
isPageRule: function(rule) {
throw _abstract();
},
isStyleRule: function(rule) {
throw _abstract();
},
isMediaRule: function(rule) {
throw _abstract();
},
isKeyframesRule: function(rule) {
throw _abstract();
},
getHref: function(element) {
throw _abstract();
},
getEventKey: function(event) {
throw _abstract();
},
resolveAndSetHref: function(element, baseUrl, href) {
throw _abstract();
},
cssToRules: function(css) {
throw _abstract();
},
supportsDOMEvents: function() {
throw _abstract();
},
supportsNativeShadowDOM: function() {
throw _abstract();
},
getGlobalEventTarget: function(target) {
throw _abstract();
}
}, {});
Object.defineProperty(DomAdapter, "annotations", {get: function() {
return [new ABSTRACT()];
}});
Object.defineProperty(DomAdapter.prototype.parse, "parameters", {get: function() {
return [[$traceurRuntime.type.string]];
}});
Object.defineProperty(DomAdapter.prototype.query, "parameters", {get: function() {
return [[$traceurRuntime.type.string]];
}});
Object.defineProperty(DomAdapter.prototype.querySelector, "parameters", {get: function() {
return [[], [$traceurRuntime.type.string]];
}});
Object.defineProperty(DomAdapter.prototype.querySelectorAll, "parameters", {get: function() {
return [[], [$traceurRuntime.type.string]];
}});
Object.defineProperty(DomAdapter.prototype.setText, "parameters", {get: function() {
return [[], [$traceurRuntime.type.string]];
}});
Object.defineProperty(DomAdapter.prototype.setValue, "parameters", {get: function() {
return [[], [$traceurRuntime.type.string]];
}});
Object.defineProperty(DomAdapter.prototype.setChecked, "parameters", {get: function() {
return [[], [$traceurRuntime.type.boolean]];
}});
Object.defineProperty(DomAdapter.prototype.createTextNode, "parameters", {get: function() {
return [[$traceurRuntime.type.string], []];
}});
Object.defineProperty(DomAdapter.prototype.createScriptTag, "parameters", {get: function() {
return [[$traceurRuntime.type.string], [$traceurRuntime.type.string], []];
}});
Object.defineProperty(DomAdapter.prototype.createStyleElement, "parameters", {get: function() {
return [[$traceurRuntime.type.string], []];
}});
Object.defineProperty(DomAdapter.prototype.hasProperty, "parameters", {get: function() {
return [[], [$traceurRuntime.type.string]];
}});
Object.defineProperty(DomAdapter.prototype.getElementsByClassName, "parameters", {get: function() {
return [[], [$traceurRuntime.type.string]];
}});
Object.defineProperty(DomAdapter.prototype.getElementsByTagName, "parameters", {get: function() {
return [[], [$traceurRuntime.type.string]];
}});
Object.defineProperty(DomAdapter.prototype.addClass, "parameters", {get: function() {
return [[], [$traceurRuntime.type.string]];
}});
Object.defineProperty(DomAdapter.prototype.removeClass, "parameters", {get: function() {
return [[], [$traceurRuntime.type.string]];
}});
Object.defineProperty(DomAdapter.prototype.hasClass, "parameters", {get: function() {
return [[], [$traceurRuntime.type.string]];
}});
Object.defineProperty(DomAdapter.prototype.setStyle, "parameters", {get: function() {
return [[], [$traceurRuntime.type.string], [$traceurRuntime.type.string]];
}});
Object.defineProperty(DomAdapter.prototype.removeStyle, "parameters", {get: function() {
return [[], [$traceurRuntime.type.string]];
}});
Object.defineProperty(DomAdapter.prototype.getStyle, "parameters", {get: function() {
return [[], [$traceurRuntime.type.string]];
}});
Object.defineProperty(DomAdapter.prototype.getAttribute, "parameters", {get: function() {
return [[], [$traceurRuntime.type.string]];
}});
Object.defineProperty(DomAdapter.prototype.setAttribute, "parameters", {get: function() {
return [[], [$traceurRuntime.type.string], [$traceurRuntime.type.string]];
}});
Object.defineProperty(DomAdapter.prototype.removeAttribute, "parameters", {get: function() {
return [[], [$traceurRuntime.type.string]];
}});
Object.defineProperty(DomAdapter.prototype.setTitle, "parameters", {get: function() {
return [[$traceurRuntime.type.string]];
}});
Object.defineProperty(DomAdapter.prototype.elementMatches, "parameters", {get: function() {
return [[], [$traceurRuntime.type.string]];
}});
Object.defineProperty(DomAdapter.prototype.isTemplateElement, "parameters", {get: function() {
return [[$traceurRuntime.type.any]];
}});
Object.defineProperty(DomAdapter.prototype.resolveAndSetHref, "parameters", {get: function() {
return [[], [$traceurRuntime.type.string], [$traceurRuntime.type.string]];
}});
Object.defineProperty(DomAdapter.prototype.cssToRules, "parameters", {get: function() {
return [[$traceurRuntime.type.string]];
}});
Object.defineProperty(DomAdapter.prototype.getGlobalEventTarget, "parameters", {get: function() {
return [[$traceurRuntime.type.string]];
}});
//# sourceMappingURL=dom_adapter.js.map
//# sourceMappingURL=./dom_adapter.map