/*!@license * Infragistics.Web.ClientUI infragistics.dv_jquerydom.js 19.1.20191.172 * * Copyright (c) 2011-2019 Infragistics Inc. * * http://www.infragistics.com/ * * Depends: * jquery-1.4.4.js * jquery.ui.core.js * jquery.ui.widget.js * infragistics.util.js * infragistics.ext_core.js * infragistics.ext_collections.js * infragistics.dv_core.js */ (function(factory){if(typeof define==="function"&&define.amd){define(["./infragistics.util","./infragistics.ext_core","./infragistics.ext_collections","./infragistics.dv_core"],factory)}else{factory(igRoot)}})(function($){$.ig=$.ig||{};var $$t={};$.ig.globalDefs=$.ig.globalDefs||{};$.ig.globalDefs.$$ag=$$t;$$0=$.ig.globalDefs.$$0;$$4=$.ig.globalDefs.$$4;$$1=$.ig.globalDefs.$$1;$$w=$.ig.globalDefs.$$w;$$6=$.ig.globalDefs.$$6;$.ig.$currDefinitions=$$t;$.ig.util.bulkDefine(["JQueryDomWrapper:a","JQueryDomRenderer:b"]);var $a=$.ig.intDivide,$b=$.ig.util.cast,$c=$.ig.util.defType,$d=$.ig.util.defEnum,$e=$.ig.util.getBoxIfEnum,$f=$.ig.util.getDefaultValue,$g=$.ig.util.getEnumValue,$h=$.ig.util.getValue,$i=$.ig.util.intSToU,$j=$.ig.util.nullableEquals,$k=$.ig.util.nullableIsNull,$l=$.ig.util.nullableNotEquals,$m=$.ig.util.toNullable,$n=$.ig.util.toString$1,$o=$.ig.util.u32BitwiseAnd,$p=$.ig.util.u32BitwiseOr,$q=$.ig.util.u32BitwiseXor,$r=$.ig.util.u32LS,$s=$.ig.util.unwrapNullable,$t=$.ig.util.wrapNullable,$u=String.fromCharCode,$v=$.ig.util.castObjTo$t;$c("JQueryDomWrapper:a","Object",{c:null,e:null,init:function(a,b){this.b=new $$4.x($$0.$c.$type,0);$.ig.$op.init.call(this);this.a=$$t.$b.b;this.c=a;this.e=b},addClass:function(a){this.e.addClass(a);return this},d:function(child_){if(child_.getNativeElement===undefined){return $(child_)[0]}return child_.getNativeElement()},append:function(a){this.e.append($(this.d(a)));return this},getAttribute:function(a){return this.e.attr(a)},setAttribute:function(a,b){this.e.attr(a,b);return this},before:function(a){this.e.before($(this.d(a)));return this},clone:function(){var a=this.e.clone();var b=new $$t.a(a[0],a);return b},getStyleProperty:function(a){return this.e.css(a)},setStyleProperty:function(a,b){this.e.css(a,b);return this},findByClass:function(a){var b=this.e.find(a);var c=new Array(b.length);for(var d=0;d)[^>]*$/);$$t.$b.b=document.createElement("div").textContent!==undefined;this.requestAnimationFrame(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback){window.setTimeout(callback,1e3/60)})},e:null,rootWrapper:function(){return this.e},querySelector:function(a){var b=this.e.getNativeElement();if(b==null){return null}b=b.querySelector(a);if(b==null){return null}return new $$t.a(b,$(b))},append:function(a){this.e.append(a);return this},appendToBody:function(a){$(document.body).append($(a.getNativeElement()))},createElement:function(a){var b=document.createElement(a);var c=$(b);var d=new $$t.a(b,c);return d},c:null,endCSSQuery:function(){if(this.c.count()>0){var a=this.c.pop();a.remove()}},_htmlTest:null,htmlTest:function(a){if(arguments.length===1){this._htmlTest=a;return a}else{return this._htmlTest}},expandTemplate:function(template_,args_){var expanded_=$.ig.tmpl(template_,args_).toString();if(!this.htmlTest().test(expanded_)){expanded_=""+expanded_+""}var a=$(expanded_);var b=new $$t.a(a[0],a);return b},get2DCanvasContext:function(a){var b=a.getNativeElement();return b.getContext("2d")},getCssDefaultPropertyValue:function(a,b){return $.ig.CssHelper.prototype.getPropertyValue1(this.c.peek(),a,b)},getCssDefaultValuesForClassCollection:function(a,b){var c=new $$4.x(String,0);for(var d=0;dM");span_.css("font",a);span_.css("visibility","hidden");span_.css("position","absolute");span_.css("left","0px");span_.css("top","0px");var body_=$("body");body_.append(span_);var d;if(c){var e=span_[0].offsetHeight;d=e}else{d=span_.height()}span_.remove();return Math.round(d)},getResourceString:function(a){if(this.d!=null){return this.d(a)}return null},getWrapper:function(a){var b=$(a);return new $$t.a(b[0],b)},getSubRenderer:function(a){return new $$t.b(a,this.d)},globalListen:function(a,b,c){var d=null;if(a=="window"){d=$(window)}if(d!=null){var e=function(f){c(f)};d.bind(b,e);var f=null;f=function(){d.unbind(b,e);e=null};return f}return function(){}},hasBody:function(){return true},hasWindow:function(){return true},setCssQueryFontString:function(a){this.c.peek().setStyleProperty("font",a)},startCSSQuery:function(){this.c.push($.ig.CssHelper.prototype.getDisoveryElement(this));if(document.body.contains(this.e.getNativeElement())){this.e.append(this.c.peek())}else{document.body.appendChild(this.c.peek().getNativeElement())}},supportsDOMEvents:function(){return true},supportsAnimation:function(){return true},getRequestAnimationFrame:function(){return this.requestAnimationFrame()},setTimeout:function(a,b){return window.setTimeout(a,b)},clearTimeout:function(a){window.clearTimeout(a)},destroy:function(){if(this.rootWrapper()!=null){this.rootWrapper().destroy();this.e=null}},runInMainZone:function(a){a()},$type:new $.ig.Type("JQueryDomRenderer",$.ig.$ot,[$$1.$g.$type])},true);$$t.$b.b=false});