_d45.js 6.3 KB

123456
  1. // Licensed Materials - Property of IBM
  2. // IBM Cognos Products: rs
  3. // (C) Copyright IBM Corp. 2003, 2022.
  4. // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  5. function _d45(_kg3, _b6k, _x4e, _y4e, _4u6){_zpn._la6("_frh");this._cc3=_kg3;this._cc3._eu4=this;this._vij=_b6k||null;this._b7i=null;this._pgd=_x4e||_frh._c6j("IDS_CCHL_MSG_TEXT_CONDITION");this._qgd=_y4e||_frh._c6j("IDS_CCHL_MSG_STYLE");this._dm6=_4u6||false;};_d45.prototype._fdm=function(){this._8wc();var _wfk=this._cc3.childNodes[ 0 ];var _hxl=this._cc3.childNodes[ 1 ];this._cc3.removeChild(_wfk);this._cc3.removeChild(_hxl);this._cc3._eu4=null;};_d45.prototype._5b5=function(_cwi){this._sv7=_cwi;};_d45.prototype._wfn=function(){this._cc3.style.height="200px";this._cc3.className="clsListView";this._cc3.style.overflow="hidden";var _wfk=this._cc3.appendChild(document.createElement("table"));_k0d._9q3(_wfk);this._w2d(_wfk);var _jwg=this._cc3.appendChild(document.createElement("div"));_jwg.style.height=this._cc3.clientHeight-_wfk.offsetHeight+"px";_jwg.style.width="100%";_jwg.style.overflow="auto";_jwg.style.verticalAlign="top";this._ne3=_jwg.appendChild(document.createElement("table"));this._ne3.style.width="100%";this._ne3.setAttribute( "cellSpacing", "0" );this._ne3.setAttribute( "cellPadding", "0" );this._ne3.style.borderCollapse="collapse";_k0d._9q3(this._ne3);};_d45.prototype._w2d=function(_tsn){_tsn.style.width="100%";_tsn.setAttribute( "cellSpacing", "0" );_tsn.setAttribute( "cellPadding", "0" );var _cun=_tsn.insertRow(0);_cun.className="clsCCHLtableHeader";this._lw7=_cun.insertCell(0);this._lw7.style.width=this._sv7||(this._cc3.clientWidth-240+"px");this._ogb(this._lw7, this._pgd);var _1k3=_cun.insertCell(1);this._ogb(_1k3, this._qgd);};_d45.prototype._ogb=function(_bun,_dwm){var _3rn=_bun.appendChild(document.createElement("div"));_3rn.className="clsListViewColumnHeader";_3rn.innerHTML=_dwm;};_d45.prototype._t6j=function(_6jc,_5qm,_u9e){if(typeof _5qm=="undefined"){_5qm=((this._ne3.rows.length)<2)?this._ne3.rows.length:(this._ne3.rows.length-1);}var _cun=this._ne3.insertRow(_5qm);_cun.className="clsListItem_normal";var _bun=_cun.insertCell(0);_bun.className="clsListItem_gridLine";_bun.style.width=this._lw7.clientWidth-1+"px";_bun.onmousedown=_d45._tn4;_bun.ondblclick=_d45._zj5;_bun.id=this._cc3.id+"_idx_" + this._ne3.rows.length; var _vaf=_bun.appendChild(document.createElement("div"));_vaf.style.textOverflow="ellipsis";_vaf.style.overflow="hidden";_vaf.style.whiteSpace="nowrap";_vaf.style.margin="2px 5px 2px 5px";_vaf.style.width=this._lw7.clientWidth-11+"px";if(_u9e){_vaf.innerHTML='<svg class="clsSvgIcon16x16" style="margin:1px 2px 1px 1px;"><use xlink:href="#' + _u9e + '"/></svg>';}var _rfk=_vaf.appendChild(document.createElement("span"));_rfk.style.paddingLeft="2px";_rfk.style.verticalAlign="middle";_4qn._1je(_rfk, _6jc);if(_zpn._qsh["hal"]["enableAccessibility"]){_vaf.tabIndex=0;_vaf.setAttribute( "aria-labelledby", ( _4qn._a87( this._lw7 ) + " " + _4qn._a87( _rfk ) ) );}_cun._lvb=_6jc;var _ll9=_cun.insertCell(1);_ll9.className="clsListItem_gridLine";var _p08=_ll9.appendChild(document.createElement("div"));_p08.style.overflow="hidden";_p08.style.whiteSpace="nowrap";_p08.style.margin="2px 5px 2px 5px";if(this._vij&&this._vij._gi){var _2c8=_p08.appendChild(document.createElement("table"));_2c8.setAttribute( "cellSpacing", "0" );_2c8.setAttribute( "cellPadding", "0" );_2c8.id=this._cc3.id+"_idx_" + this._ne3.rows.length + "_tbl"; _k0d._9q3(_2c8);var _z68=this._vij._gi(_2c8);_cun._it7=_z68;}};_d45.prototype._yb7=function(){if(!this._b7i){return;}if(this._vij&&this._vij._ii){this._vij._ii(this._b7i.parentNode._it7);}this._b7i.parentNode.parentNode.removeChild(this._b7i.parentNode);this._b7i=null;};_d45.prototype._8wc=function(){var _svj=this._83g();for(var i=0;i<_svj;i++){var _cun=this._ne3.rows.item(0);if(this._vij&&this._vij._ii){this._vij._ii(_cun._it7);}_cun.parentNode.removeChild(_cun);}this._b7i=null;};_d45._tn4=function(e){ if(_zpn._70d&&_zpn._70d._ui){_zpn._70d._ui(e);}e.stopPropagation();var _a6k=this.parentNode.parentNode.parentNode.parentNode.parentNode._eu4;if((this.parentNode.rowIndex+1)==this.parentNode.parentNode.rows.length&&!_a6k._dm6){return;}_a6k._wcj(this);if(_a6k._vij&&_a6k._vij._hi){_a6k._vij._hi(this.parentNode.rowIndex);}};_d45._zj5=function(e){ if(_zpn._70d&&_zpn._70d._ui){_zpn._70d._ui(e);}e.stopPropagation();var _a6k=this.parentNode.parentNode.parentNode.parentNode.parentNode._eu4;if((this.parentNode.rowIndex+1)==this.parentNode.parentNode.rows.length&&!_a6k._dm6){return;}_a6k._wcj(this);if(_a6k._vij&&_a6k._vij._i9){_a6k._vij._i9(this.parentNode.rowIndex);}};_d45.prototype._wcj=function(_gym){if(this._b7i==_gym){return;}if(this._b7i){this._b7i.className="clsListItem_gridLine";}_gym.className += " clsListItem_selected";this._b7i=_gym;};_d45.prototype._xa7=function(){if(!this._b7i){return;}var _04j=this._b7i.parentNode;var _fil=this._b7i.parentNode.previousSibling;if(_fil){_04j.parentNode.insertBefore(_04j, _fil);}};_d45.prototype._i95=function(){if(!this._b7i){return;}var _04j=this._b7i.parentNode;var _fil=this._b7i.parentNode.nextSibling;if(_fil){_04j.parentNode.insertBefore(_04j, _fil.nextSibling);}};_d45.prototype._a85=function(){if(!this._b7i){return null;}return this._b7i.parentNode.rowIndex;};_d45.prototype._83g=function(){if(!this._ne3.firstChild){return 0;}else{return this._ne3.firstChild.childNodes.length;}};_d45.prototype._985=function(){return this._b7i.parentNode._it7;};_d45.prototype._q7j=function(_5qm,_k7f){var _14j=this._ne3.rows.item(_5qm);if(_14j){this._wcj(_14j.cells.item(0));if((_k7f===true)&&this._vij&&this._vij._hi){this._vij._hi(_5qm);}}};_d45.prototype._c7g=function(){if(this._b7i){this._b7i.className="clsListItem_gridLine";}this._b7i=null;};_d45.prototype._tie=function(_5qm,_6jc){var _cun=this._ne3.rows.item(_5qm);if(_cun){_cun._lvb=_6jc;var _3rn=_cun.cells.item(0).firstChild;_4qn._1je(_3rn, _6jc);}};_d45.prototype._d56=function(){var _rpg=[];for(var i=0;i<this._83g();i++){var _cun=this._ne3.rows.item(i);_rpg.push(new _a4j(_cun._lvb, _cun._it7));}return _rpg;};_d45.prototype._p8b=function(_5qm){var tr=this._ne3.rows.item(_5qm);tr.style.display="none";};_d45.prototype._5g4=function(_5qm){var tr=this._ne3.rows.item(_5qm);tr.style.display="";};_d45.prototype._3d7=function(){var _opm=this._83g();for(var i=0; i<_opm; i++){this._5g4(i);}};