%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/bitrix/www/bitrix/components/bitrix/report.view/templates/.default/
Upload File :
Create Path :
Current File : //home/bitrix/www/bitrix/components/bitrix/report.view/templates/.default/script.min.js

BX.ready(function(){BX.namespace("BX.Report.View");if(typeof BX.Report.View.HScrollFader==="undefined"){BX.Report.View.HScrollFader=function(t){BX.Report.View.HScrollFader.superclass.constructor.apply(this,[t])};BX.extend(BX.Report.View.HScrollFader,BX.Grid.Fader);BX.Report.View.HScrollFader.prototype.adjustEarOffset=function(t){if(t){this.windowHeight=BX.height(window);this.tbodyPos=BX.pos(this.table.tBodies[0]);this.headerPos=BX.pos(this.table.tHead)}var e=window.scrollY;if(this.parent.isIE()){e=document.documentElement.scrollTop}var i=0;var s=0;if(!(e>this.tbodyPos.bottom||e+this.windowHeight<this.headerPos.top)){if(e>this.headerPos.top){i=e-this.headerPos.top}else{i=0}if(e+this.windowHeight>this.tbodyPos.bottom){s=this.tbodyPos.bottom-i-this.headerPos.top}else{s=e+this.windowHeight-i-this.headerPos.top}}BX.Grid.Utils.requestAnimationFrame(BX.proxy(function(){if(i!==this.lastPosTop){var t="translate3d(0px, "+i+"px, 0)";this.getEarLeft().style.transform=t;this.getEarRight().style.transform=t}if(s!==this.lastBottomPos){this.getEarLeft().style.height=s+"px";this.getEarRight().style.height=s+"px"}this.lastPosTop=i;this.lastBottomPos=s},this))}}if(typeof BX.Report.View.HScroll==="undefined"){BX.Report.View.HScroll=function(){this._id="";this.settings=new BX.Report.View.Settings({});this.params={};this.ie=null;this.touch=null};BX.Report.View.HScroll.prototype={initialize:function(t,e){this._id=BX.type.isNotEmptyString(t)?t:BX.util.getRandomString(4);this.settings=new BX.Report.View.Settings(e?e:{});this.params={};this.params["ALLOW_HORIZONTAL_SCROLL"]=this.settings.get("allowHorizontalScroll",false);this.params["ALLOW_PIN_HEADER"]=this.settings.get("allowPinHeader",false);if(this.getParam("ALLOW_HORIZONTAL_SCROLL")){this.fader=new BX.Report.View.HScrollFader(this)}},getId:function(){return this._id},getParam:function(t,e){return this.params.hasOwnProperty(t)?this.params[t]:e},getTable:function(){var t=null;var e=this.settings.get("tableId","");if(BX.type.isNotEmptyString(e)){t=BX(e)}return t},getContainer:function(){var t=null;var e=this.getTable();if(BX.type.isDomNode(e)){t=e.parentNode;if(BX.type.isDomNode(t)){t=t.parentNode}else{t=null}}return t},isIE:function(){if(!BX.type.isBoolean(this.ie)){this.ie=BX.hasClass(document.documentElement,"bx-ie")}return this.ie},isTouch:function(){if(!BX.type.isBoolean(this.touch)){this.touch=BX.hasClass(document.documentElement,"bx-touch")}return this.touch},destroy:function(){this._id="";this.settings=new BX.Report.View.Settings({});this.params={};this.ie=null;this.touch=null}};BX.Report.View.HScroll.prototype.getMessage=function(t){var e=t;var i=this.settings.get("messages",null);if(i!==null&&typeof i==="object"&&i.hasOwnProperty(t)){e=i[t]}else{i=BX.Report.View.HScroll.messages;if(i!==null&&typeof i==="object"&&i.hasOwnProperty(t)){e=i[t]}}return e};if(typeof BX.Report.View.HScroll.messages==="undefined"){BX.Report.View.HScroll.messages={}}if(typeof BX.Report.View.HScroll.items==="undefined"){BX.Report.View.HScroll.items={}}BX.Report.View.HScroll.create=function(t,e){var i=new BX.Report.View.HScroll;i.initialize(t,e);BX.Report.View.HScroll.items[t]=i;return i};BX.Report.View.HScroll.delete=function(t){if(BX.Report.View.HScroll.items.hasOwnProperty(t)){BX.Report.View.HScroll.items[t].destroy();delete BX.Report.View.HScroll.items[t]}}}if(typeof BX.Report.View.Settings==="undefined"){BX.Report.View.Settings=function(t){this.settings={};if(BX.type.isPlainObject(t)){this.defaultSettings=t}else{this.defaultSettings={}}this.prepare()};BX.Report.View.Settings.prototype={prepare:function(){this.settings=this.defaultSettings},getDefault:function(){return this.defaultSettings},get:function(t){var e;try{e=this.getDefault()[t]}catch(t){e=null}return e},getList:function(){return this.getDefault()}}}});

Zerion Mini Shell 1.0