123456 |
- // Licensed Materials - Property of IBM
- // IBM Cognos Products: irot
- // (C) Copyright IBM Corp. 2003, 2022.
- // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- function _jq7(_sh6, _pj7, _zj7, _vl7){_be9._452("_lq7");this._656=_sh6;this._656._7l7=this;this._0d7=_vl7||null;this._246=window["_4l6"]?_4l6:null;if(!_pj7){var _w86=_ie9._py3();_pj7=_w86.appendChild(_w86.createElement("comboBox"));}this._l19=_pj7.getAttribute("type");if(!this._l19){this._l19="dropDownList";}this._fo2=_pj7.getAttribute( "showSmallSvgIcon" )=="true";this._h64=this._fo2||( _pj7.getAttribute( "showSmallIcon" )=="true" );this._sw=_pj7.getAttribute( "showListViewCustomHtml" )=="true";_sh6.cellPadding=0;_sh6.cellSpacing=0;_sh6.classList.add("clsComboBox");if(_be9._kl6["hal"]["enableHighContrastMode"]){_sh6.style.tableLayout="auto";}var d=document;var tr=_sh6.insertRow(_sh6.rows.length);this._ir8=tr.appendChild(d.createElement("TD"));this._ir8.className="clsComboBoxIcon";this._ir8.style.display="none";this._ir8.style.padding="0 0 0 1px";this._np3=_pj7.getAttribute("smallIconWidth");this._d73=_pj7.getAttribute("smallIconHeight");if(this._fo2){this._ir8.innerHTML=_fe9._rd3( "def_blank", this._np3, this._d73, "clsComboBoxIconImg" );}else{var img=this._ir8.appendChild(d.createElement("IMG"));img.alt="";img.className="clsComboBoxIconImg";}if(this._h64&&this._np3){this._ir8.style.width=(parseInt(_fe9._fe3(this._ir8.firstChild).marginLeft)+parseInt(this._np3)+2)+ "px";}this._kr8=tr.appendChild(d.createElement("TD"));this._kr8.className="clsComboBoxText";if(this._l19=="dropDown"){var txt=this._kr8.appendChild(d.createElement("INPUT"));txt.className="clsComboBoxTextInput";txt.id=((this._656.id||_fe9._9h2(this._656))+"_dropDownText");txt.type="text";txt.onchange=_jq7._8d5;}else{var div=this._kr8.appendChild(d.createElement("DIV"));div.className="clsComboBoxTextDiv";}this._nd8=tr.appendChild(d.createElement("TD"));this._nd8.className="clsComboBoxArrow";_fe9._u95( this._nd8, " " );this._j82(_pj7);this._hk6(true);var _zu6=_jq7._sm6();this._d26=_zu6.appendChild(d.createElement("DIV"));this._d26.id=((this._656.id||_fe9._9h2(this._656))+"_ListViewDropDown");this._d26.className="clsListView_dropdown";if(_pj7.getAttribute("listViewClass")){this._d26.classList.add(_pj7.getAttribute("listViewClass"));}if(_fe9._a04(_sh6)){this._d26.classList.add("clsDirectionRtl");}this._d26.style.position="absolute";if(_be9._kl6["hal"]["enableAccessibility"]){_ie9._jk4(this._d26, this._656, "aria-label");}this._d26.style.visibility="hidden";this._d26.tabIndex=-1;if(_zj7){_ie9._ck6(_pj7, "listView");_pj7.appendChild(_ie9._kj6(_pj7.ownerDocument, _zj7));}var _2t2=_999._7y2(_pj7, "listView");if(!_2t2){_2t2=_pj7.appendChild(_pj7.ownerDocument.createElement("listView"));_2t2.setAttribute( "view", "report" );_2t2.appendChild(_pj7.ownerDocument.createElement("listItems"));}_2t2.setAttribute( "hoverSelection", "true" );_2t2.setAttribute( "allowCtrlDeselect", "false" );this._053=( _pj7.getAttribute( "resolveIconPath" ) != "false" );_2t2.setAttribute( "resolveIconPath", this._053?"true":"false" );this._k41=_pj7.getAttribute("textDirection");this._5d1=_pj7.getAttribute("guiDirection");this._82(_2t2);if(_pj7.getAttribute( "limitDropDownWidth" )=="false" ){this._xw1=false;}if(_pj7.getAttribute( "limitDropDownHeight" )=="true" ){this._0m1=true;}this._zc7=new _lq7(this._d26, _2t2, this); };_jq7.prototype._bs4=true;_jq7.prototype._xu7=false;_jq7.prototype._8d8=null;_jq7.prototype._hp3=null;_jq7.prototype._xw1=true;_jq7.prototype._0m1=false;_jq7.prototype._6g3=function(_zj7){_zj7.setAttribute( "hoverSelection", "true" );_zj7.setAttribute( "allowCtrlDeselect", "false" );_zj7.setAttribute( "resolveIconPath", this._053?"true":"false" );this._82(_zj7);this._zc7._1o8();this._zc7=new _lq7(this._d26, _zj7, this);};_jq7.prototype._82=function(_zj7){if(this._k41){_zj7.setAttribute("textDirection", this._k41);}if(this._5d1){_zj7.setAttribute("guiDirection", this._5d1);}this._8d8=_zj7.getAttribute( "guiDirection" )||_be9._kl6["hal"]["defaultGuiDirection"];if(this._8d8){this._656.style.direction=this._8d8;}this._hp3=_zj7.getAttribute("textDirection")||this._8d8; };_jq7.prototype._9v5=function(){return this._zc7;};_jq7.prototype._1o8=function(){this._zc7._1o8();this._zc7=null;this._d26.parentNode.removeChild(this._d26);_fe9._td3(this._656);this._656._7l7=null;};_jq7._1o8=function(){if(_jq7._1p6){this._1p6[_kx5._wj2?"onpointerdown":"onmousedown"]=null;this._1p6.onkeydown=null;this._1p6=null;}};_jq7.prototype._b81=function(){this._zi2((this._zc7._685().length>6)?"192px":"auto");};_jq7.prototype._zi2=function(_zk8){this._d26.style.height=_zk8;};_jq7.prototype._iy2=function(_jy8){this._594=_jy8;};_jq7.prototype._dz8=function(){return this._656.id;};_jq7.prototype._v75=function(){return this._656;};_jq7._sm6=function(){if(!_jq7._1p6){_jq7._1p6=document.body.appendChild(document.createElement("DIV"));var _zu6=_jq7._1p6;_zu6[_kx5._wj2?"onpointerdown":"onmousedown"] =function(){ this._7l7._vc5(); };var _vr3=function(e){if(_be9._kl6["hal"]["enableAccessibility"]&&e.keyCode!=_fe9._zn4&&e.keyCode!=_fe9._n14){_fe9._8u5(e);}if(e.keyCode==_fe9._al6){this._7l7._vc5();}};_zu6.onkeydown=_vr3;_zu6.className="clsComboBoxBlocker";_zu6.style.visibility="hidden";_zu6.style.zIndex=10000;}return _jq7._1p6;};_jq7.prototype._o62=function(){if(this._0d7&&this._0d7._qs){this._0d7._qs(this, this._zc7);}if(this._0m1){this._b81();}};_jq7.prototype._vu=function(){if(this._0d7&&this._0d7._l9){setTimeout(this._0d7._l9.bind(this._0d7, this, this._zc7));}};_jq7.prototype._513=function(){if(this._0d7&&this._0d7._o61){this._0d7._o61(this);}};_jq7.prototype._n62=function(){if(this._0d7&&this._0d7._ps){this._0d7._ps(this, this._zc7);}this._zc7._kd3(false);};_jq7.prototype._qm4=function(_xu8){var _xj7=_lq7._nq1(this._zc7._re3(), _xu8);if(_xj7){this._fh1(_xj7);}return(_xj7!=null);};_jq7.prototype._rm4=function(_hy8,_976){var _xj7=_lq7._l75(this._zc7._re3(), "value", _hy8, _976);if(_xj7){this._fh1(_xj7);}return(_xj7!=null);};_jq7.prototype._68=function(){var _xj7=_999._7y2( this._zc7._re3(), "listItems/listItem[not(@selectable) or @selectable='true']" );if(_xj7){this._fh1(_xj7);}return(_xj7!=null);};_jq7.prototype._0e5=function(){this._o62();var _zu6=_jq7._sm6();_zu6._7l7=this;_zu6.style.visibility="visible";this._nd8.className="clsComboBoxArrow_down";var _lt8=document.body;var _bc9=_fe9._yh2(this._656, _lt8);_bc9.top+= this._656.offsetHeight;var _i29=true;if((_bc9.top+this._d26.offsetHeight)>(_lt8.clientHeight+_lt8.scrollTop)){_bc9.top=_899._no8(_bc9.top-this._d26.offsetHeight-this._656.offsetHeight);_i29=false;}this._d26.scrollTop=0;this._d26.style.left=_bc9.left+"px";this._d26.style.top=_bc9.top+"px";this._d26.style.visibility="visible";this._d26.style[this._xw1?"width":"minWidth"] = this._594||( this._656.offsetWidth + "px" );if((_bc9.left+this._d26.offsetWidth)>(_lt8.clientWidth+_lt8.scrollLeft)){var _ax6=(_bc9.left+this._d26.offsetWidth)-(_lt8.clientWidth+_lt8.scrollLeft);this._d26.style.left=_899._no8(parseInt(this._d26.style.left, 10)-_ax6)+"px";_bc9.left=_899._no8(_bc9.left-_ax6);}this._d26.focus();this._vu();var _xj7=null;var _hy8=this._jr7();if(typeof _hy8=="string"){_xj7=this._zc7._l75("value", _hy8, true);}if(_be9._kl6["hal"]["enableAccessibility"]&&_xj7){document.getElementById(_xj7.getAttribute("htmlId")).focus();}else{this._zc7._s04(_xj7, false);}this._656.setAttribute( "_1o7", "true" );};_jq7.prototype._vc5=function(){if(_be9._kl6["hal"]["enableAccessibility"]){var _fh7=(this._l19=="dropDown")?this._nd8:this._656;_fh7.focus();}this._nd8.className="clsComboBoxArrow";this._d26.style.visibility="hidden";_jq7._1p6.style.visibility="hidden";_jq7._1p6._7l7=null;this._n62();this._656.removeAttribute( "_1o7", "true" );};_jq7._r85=function(){if(this._1p6&&this._1p6._7l7){this._1p6._7l7._vc5();}};_jq7.prototype._3j6=function(){return !!this._xu7;};_jq7.prototype._hk6=function(_cy7,_b86){if(_cy7==this._xu7){return;}this._xu7=_cy7;if(_cy7){var _tc4=function(e){if(_be9._co4&&_be9._co4._a4){_be9._co4._a4(e, this);}if((e||event).button==_fe9._bz2){this.parentNode.parentNode.parentNode._7l7._0e5();}};this._ir8[_kx5._wj2?"onpointerdown":"onmousedown"] = ( this._l19=="dropDown" )?null:_tc4;this._kr8[_kx5._wj2?"onpointerdown":"onmousedown"] = ( this._l19=="dropDown" )?null:_tc4;this._nd8[_kx5._wj2?"onpointerdown":"onmousedown"]=_tc4;this._nd8.className="clsComboBoxArrow";var _t96=function(e){if((e||event).button==_fe9._rj2){this.parentNode.parentNode.parentNode._7l7._513();}};this._ir8[_kx5._wj2?"onpointerup":"onmouseup"]=_t96;this._kr8[_kx5._wj2?"onpointerup":"onmouseup"]=_t96;this._nd8[_kx5._wj2?"onpointerup":"onmouseup"]=_t96;this._j7(true);}else{this._ir8[_kx5._wj2?"onpointerdown":"onmousedown"]=null;this._kr8[_kx5._wj2?"onpointerdown":"onmousedown"]=null;this._nd8[_kx5._wj2?"onpointerdown":"onmousedown"]=null;this._nd8.className="clsComboBoxArrow_disabled";this._ir8[_kx5._wj2?"onpointerup":"onmouseup"]=null;this._kr8[_kx5._wj2?"onpointerup":"onmouseup"]=null;this._nd8[_kx5._wj2?"onpointerup":"onmouseup"]=null;this._j7();}if(this._l19=="dropDown"){_fe9._fs1(this._kr8.firstChild, _cy7);}else{_fe9._714(this._kr8, _cy7);}if(_b86&&this._ir8.getAttribute("_747")){if(this._fo2){this._ir8.setAttribute( "hal_disabled", _cy7?"false":"true" );}else{var _md9=this._ir8.getAttribute("_747");if(!_cy7){_md9=_md9.replace( ".gif", "_disabled.gif" );}this._ir8.firstChild.src=this._053?_be9._7v5(_md9):_md9;}}this._bq(_cy7);};_jq7.prototype._fh1=function(_xj7){this._es7(_xj7.getAttribute("value"),_xj7.getAttribute("idsLabel"),_xj7.getAttribute("label"),_xj7.getAttribute(this._fo2?"smallSvgIcon":"smallIcon"),_xj7.getAttribute("textDirection"),_xj7.getAttribute("html"));this._lk6(_xj7.getAttribute("tooltip"),_xj7.getAttribute("idsTooltip"),_xj7.getAttribute("textDirection"));if(this._sw&&( _xj7.getAttribute( "html" )!==null )&&( this._l19 != "dropDown" )&&this._0d7&&this._0d7._n61 ){this._0d7._n61(this, _xj7, this._kr8.firstChild);}};_jq7.prototype._es7=function(_hy8,_vh8,_k79,_747,_i78,_u69){if(this._l19=="dropDown"){this._kr8.firstChild.value=_hy8;}else{if(this._sw&&_u69){this._kr8.firstChild.innerHTML=_u69;if(this._246){this._246._jd3(this._kr8.firstChild);}}else if(_vh8){_fe9._u95(this._kr8.firstChild, this._246._m67(_vh8));}else{_fe9._u95(this._kr8.firstChild,(_k79||_k79=="")?_k79:_hy8);var _mn7=_i78||this._hp3;if(_mn7){this._kr8.firstChild.style.direction=_mn7;}}this._ir8.setAttribute( "_747", _747||"" );if(this._fo2&&_747){this._ir8.innerHTML=_fe9._rd3(_747, this._np3, this._d73, "clsComboBoxIconImg");}else if(this._h64&&_747){var _md9=_747;this._ir8.firstChild.src=this._053?_be9._7v5(_md9):_md9;}this._ir8.style.display=(this._h64&&_747)?"":"none";}this._kr8._hy8=_hy8;};_jq7.prototype._jr7=function(){return this._kr8._hy8;};_jq7.prototype._598=function(){if(this._l19=="dropDown"){return this._kr8.firstChild.value;}return _fe9._485(this._kr8.firstChild);};_jq7.prototype._lk6=function(_m78,_ly6,_i78){if(!this._bs4){return;}if(_m78){this._656.title=_m78;}else if(_ly6){this._656.title=this._246._m67(_ly6);}else{this._656.title=this._598();}var _mn7=_i78||this._hp3;if(_mn7){if(_mn7=="ltr"){this._656.title="\u202A" + this._656.title + "\u202C";}else if(_mn7=="rtl"){this._656.title="\u202B" + this._656.title + "\u202C";}}if(!this._fo2){this._ir8.querySelector("IMG").alt=this._656.title;}};_jq7.prototype._z71=function(_ul7,_f49,_tt8){if(this._0d7&&this._0d7._n61){this._0d7._n61(this, _f49, _tt8);}};_jq7.prototype._xg1=function(_ul7,_xj7,_am5){if(_xj7.getAttribute( "selectable" )=="false" ){return;}this._fh1(_xj7);this._vc5();this._ac5(_xj7);};_jq7._8d5=function(e){e.stopPropagation();var txt=this;var _7l7=txt.parentNode.parentNode.parentNode.parentNode._7l7;_7l7._kr8._hy8=txt.value;_7l7._ac5();};_jq7.prototype._ac5=function(_xj7){if(this._0d7&&this._0d7._lg2){this._0d7._lg2(this, _xj7);}};_jq7.prototype._j82=function(_pj7){if(!_be9._kl6["hal"]["enableAccessibility"]){return;}this._656.setAttribute( "role", "combobox" );this._656.removeAttribute("aria-describedby");_io4._p12(this._656, _fe9._9h2(this._kr8.firstChild));this._nd8.setAttribute( "role", "button" );var _579=_pj7.getAttribute("a11y_name");this._nd8.setAttribute( "aria-label", ( _579?( _579 + " " ):"" ) + _4l6._m67( "IDS_HAL_AC_DROPDOWN" ) );if(this._l19=="dropDown"){if(!this._nd8.getAttribute("tabIndex")){this._nd8.setAttribute( "tabIndex", "0" );}_ie9._jk4(this._kr8.firstChild, this._656, "aria-label");_ie9._jk4(this._kr8.firstChild, this._656, "aria-labelledby");}else if(!this._656.getAttribute("tabIndex")){this._656.setAttribute( "tabIndex", "0" );}};_jq7.prototype._j7=function(_5a9){if(!_be9._kl6["hal"]["enableAccessibility"]){return;}if(_5a9){if(this._l19=="dropDown"){var _de1=function(e){if(e.keyCode==_fe9._687||e.keyCode==_fe9._yn4){this.parentNode.parentNode.parentNode._7l7._0e5();}};this._nd8.onkeydown=_de1;}else{var _de1=function(e){if(e.keyCode==_fe9._687||e.keyCode==_fe9._yn4){this._7l7._0e5();}};this._656.onkeydown=_de1;}}else{if(this._l19=="dropDown"){this._nd8.onkeydown=null;}else{this._656.onkeydown=null;}}};_jq7.prototype._bq=function(_pe8){if(!_be9._kl6["hal"]["enableAccessibility"]){return;}if(!_pe8){this._656.removeAttribute("tabIndex");this._656.setAttribute( "disabled", "true" );this._nd8.setAttribute( "disabled", "true" );}else{this._656.setAttribute( "tabIndex", "0" );this._656.removeAttribute("disabled");this._nd8.removeAttribute("disabled");}_io4._zt(this._656, "aria-disabled", !_pe8);_io4._zt(this._kr8, "aria-disabled", !_pe8);_io4._zt(this._nd8, "aria-disabled", !_pe8);};_jq7.prototype._li6=function(){if(!_be9._kl6["hal"]["enableAccessibility"]){return;}this._656.removeAttribute("disabled");};_jq7.prototype._675=function(_qs8){this._bs4=_qs8;};_jq7._me=function(_dg9){return _dg9._7l7||null;};
|