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 _0g2(_vc3, _re4, _vl7, _a45){_be9._452("_4l6");_be9._452("_4k2");_0g2.baseConstructor.call(this, _vc3, _re4, _vl7, _a45);this._yk2();this._9v4="";this._x92=null;this._a99();if(_a45){this._es7(_a45);}else{this._pn4();this._hp();}if(_be9._kl6["hal"]["enableAccessibility"]){if(this._8r6){this._9s6.setAttribute("aria-label", this._8r6);}else if(this._463){this._9s6.setAttribute("aria-labelledby", this._463);}}};_9t7._v88(_0g2, _zf2);_0g2.prototype._1o8=function(){var _e57=this._9s6;this._9s6=null;if(_e57){_e57.onchange=null;_e57.oncut=null;_e57.onpaste=null;_e57.onkeyup=null;_e57.ondrop=null;_e57.onkeypress=null;_e57.onblur=null;_e57.onfocus=null;}if(this._6t4){this._6t4.onclick=null;this._6t4.onmouseout=null;this._6t4.onmouseover=null;this._6t4=null;}this._lp8();};_0g2.prototype._yk2=function(){_0g2.superClass._yk2.call(this);this._4f5=false;this._qo6=false;this._5b7=false;this._n31=false;this._pw=false;this._qw=false;this._o46="clsCCHLTextWidget";this._x43=false;this._i19=null;this._kr6=null;this._eb7=null;this._pp3="none";this._k46="none";this._rt4=0;this._zo6=null;this._nb7=null;this._mr6=null; this._lr6=null; this._vs4=true;this._us4=true;this._7c1=false; this._se5=false;if(this._j74.getAttribute("numbersOnly")){this._4f5=( this._j74.getAttribute( "numbersOnly" )=="true" );if(this._4f5){this._se5=true;this._k46="number";this._pp3="number";}}if(this._j74.getAttribute("multiLine")){this._qo6=( this._j74.getAttribute( "multiLine" )=="true" );}if(this._j74.getAttribute("hideText")){this._5b7=( this._j74.getAttribute( "hideText" )=="true" );}if(this._j74.getAttribute("showThousandSeparator")){this._n31=( this._j74.getAttribute( "showThousandSeparator" )=="true" );}if(this._j74.getAttribute("restrictInputExponents")){this._pw=( this._j74.getAttribute( "restrictInputExponents" )=="true" );}if(this._j74.getAttribute("restrictInputNegatives")){this._qw=( this._j74.getAttribute( "restrictInputNegatives" )=="true" );}if(this._j74.getAttribute("inputClass")){this._o46=this._j74.getAttribute("inputClass");}if(this._j74.getAttribute("inputSelectMode")){this._x43=( this._j74.getAttribute( "inputSelectMode" )=="true" );}if(this._j74.getAttribute("size")){this._i19=this._j74.getAttribute("size");}if(this._j74.getAttribute("maxlength")){this._kr6=this._j74.getAttribute("maxlength");}if(this._j74.getAttribute("readonly")){this._eb7=this._j74.getAttribute("readonly")=='true';}if(this._j74.getAttribute("validation")){this._pp3=this._j74.getAttribute("validation");}if(this._j74.getAttribute("formatting")){this._k46=this._j74.getAttribute("formatting");if(this._k46!="none"){this._se5=true;}}if(this._j74.getAttribute("calendar")){this._rt4=( this._j74.getAttribute( "calendar" )=="Imperial" )?1:0;}if(this._j74.getAttribute("firstDate")){this._zo6=_4k2._677(this._j74.getAttribute("firstDate"), _4k2._692, this._264);}if(this._j74.getAttribute("lastDate")){this._nb7=_4k2._677(this._j74.getAttribute("lastDate"), _4k2._692, this._264);}if(this._j74.getAttribute("minNumber")){this._mr6=isNaN( this._j74.getAttribute( "minNumber" ) )?null:this._j74.getAttribute( "minNumber" );}if(this._j74.getAttribute("maxNumber")){this._lr6=isNaN( this._j74.getAttribute( "maxNumber" ) )?null:this._j74.getAttribute( "maxNumber" );}if(this._j74.getAttribute("minInclusive")){this._vs4=this._j74.getAttribute("minInclusive")=='true';}if(this._j74.getAttribute("maxInclusive")){this._us4=this._j74.getAttribute("maxInclusive")=='true';}if(this._j74.getAttribute("restrictInputPercent")){this._7c1=this._j74.getAttribute("restrictInputPercent")=='true';}if(_be9._kl6["hal"]["enableAccessibility"]){if(this._j74.getAttribute("sAriaLabel")){this._8r6=this._j74.getAttribute("sAriaLabel");}else if(this._j74.getAttribute("idsAriaLabel")){this._8r6=_4l6._m67(this._j74.getAttribute("idsAriaLabel"));}else if(this._j74.getAttribute("idAriaLabelledBy")){this._463=this._j74.getAttribute("idAriaLabelledBy");}}this._p46=this._j74.getAttribute( "idsInvalidMsg" )?_4l6._m67( this._j74.getAttribute( "idsInvalidMsg" ) ):'';this._ab7=!!this._h73.getAttribute("useStyleVersion");};_0g2.prototype._a99=function(){var _gx3=this._h73.insertRow(0);if(this._6c1){var _3t5=_gx3.insertCell(0);this._tk2(_3t5);if(this._5t4){if(this._3f5||this._qm3||!this._gb7){_3t5.style.display="none";}}}var _fs=_gx3.insertCell(this._6c1?1:0);if(this._5t4){this._h73.classList.remove(_1k4._uz2);}else{_fs.className="clsCCHLParseErrorOff";}_fs.style.verticalAlign="top";var _e57;if(this._qo6){_e57=document.createElement("textarea");}else{_e57=document.createElement("input");if(this._h73.id){_e57.setAttribute("id", "idStrValPane_input" + this._h73.id );}if(this._5b7){_e57.setAttribute( "type", "password" );_e57.setAttribute( "autocomplete", "off" );}else{_e57.setAttribute( "type", "text" );}if(this._i19){_e57.setAttribute("size", this._i19);}if(this._kr6){_e57.setAttribute("maxlength", this._kr6);}if(this._eb7){_e57.setAttribute( "readOnly", "readonly" );}}if(this._qo6){_e57.setAttribute( "cols", "20" );_e57.setAttribute( "rows", this._5t4?"3":"7" );}if(this._5t4){_e57.className="pt " + this._o46;}else{_e57.className="clsTextBox " + this._o46;}if((isNaN(this._k53)&&!_e57.getAttribute("size"))||(this._k53>=11.5)){_e57.style.width="100%";}if(this._f64&&(this._pp3!="none")){_e57.onkeypress=_0g2._im2;}var _8w6=this._8d5.bind(this);var _yr3=_9t7._nd3(_8w6);_e57.onchange=_8w6;_e57.oncut=_yr3;_e57.onpaste=_yr3;_e57.onkeyup=((!this._lo6&&this._3f5&&!this._qo6)?_9t7._uf1(_8w6):_yr3);_e57.ondrop=_yr3;_e57.onblur=_0g2._tp8;_e57.onfocus=_0g2._7b8;_e57.onclick=_0g2._6b8;if(this._5t4&&this._qo6){_fs.style.height="100%";var _t86=_fs.appendChild(document.createElement("div"));_t86.style.width=_t86.style.height="100%";this._9s6=_t86.appendChild(_e57);_e57.style.height="100%";}else{this._9s6=_fs.appendChild(_e57);}this._lk1(this._9s6, "txtInput");this._at4=null;this._b26=null;var _ub4=document.createElement('div');_ub4.style.position='relative';this._at4=document.createElement('div');this._at4.style.position='absolute';this._at4.style.top='3px';this._at4.style.width='350px';this._at4.style.display='none';var _ec4=document.createElement('div');_ec4.style.position='absolute';_ec4.className='clsPromptInvalidMessageContainer';var _ag8=document.createElement('table');_io4._h81(_ag8);_ag8.cellpadding='0';_ag8.cellspacing='0';_ec4.appendChild(_ag8);var _8g8=document.createElement('tbody');_ag8.appendChild(_8g8);var _ja9=document.createElement('tr');_8g8.appendChild(_ja9);var _ia9=document.createElement('td');_ja9.appendChild(_ia9);this._b26=document.createElement('div');this._b26.className='clsLabel clsPromptInvalidMessage';_fe9._u95(this._b26, this._p46);_ia9.appendChild(this._b26);_ia9=document.createElement('td');_ja9.appendChild(_ia9);var _1y4=document.createElement('div');_1y4.className='clsStartupXButtonContainer';_1y4.style.lineHeight='2px';this._6t4=document.createElement('button');this._6t4.className='clsXButton_active';this._6t4.style.margin='0';this._6t4.id=_fe9._sv5("txtError");this._6t4.onclick =function(){ this.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.style.display='none';};_ia9.appendChild(_1y4);_1y4.appendChild(this._6t4);this._6t4.innerHTML='<svg class="clsXButton"><use xlink:href="#def_hal_close_16x16"/></svg>';this._at4.appendChild(_ec4);_ub4.appendChild(this._at4);_fs.appendChild(_ub4);if(_be9._kl6["hal"]["enableAccessibility"]){this._b26.tabIndex=0;this._b26.setAttribute( "role", "gridcell" );this._6t4.title=_4l6._m67("IDS_CCHL_AC_CLOSE");}};_0g2._im2=function(e){var _8g4=_zf2._0j6(this);var _vr5='decimal';switch(_8g4._pp3){case 'integer':case 'natural':case 'whole':_vr5='integer';break;}_4k2._281(e, !_8g4._qw, _vr5, _8g4._pw, _8g4._7c1, this._264);};_0g2.prototype._es7=function(_eq7,_jq3,_ek5){var _145=this._9v4;var _et6=_eq7.toString().split("\n");var _my1=[];for(var i=0; i<_et6.length; i++){var _y51=_4k2._mu5(_et6[i], this._k46, this._n31, this._rt4, null, this._264);_my1.push(_y51);}var _6f2=_my1.join("\n");this._9s6.value=_6f2;this._9v4=_6f2;this._pn4();if(_ek5){this._yp8();}this._hp();};_0g2.prototype._lo4=function(_vy7){_vy7=_vy7||this._qm3||this._9s6.disabled||this._9s6.readOnly;if(_vy7){if(this._6c1){this._zk1(true);}if(this._5t4){this._h73.classList.remove(_1k4._uz2);}else{this._9s6.parentNode.className="clsCCHLParseErrorOff";}this._at4.style.display='none';}else{if(this._6c1){this._zk1(false);}if(this._5t4){this._h73.classList.add(_1k4._uz2);}else{this._9s6.parentNode.className="clsCCHLParseErrorOn";}if(this._p46&&this._p46!=''){this._at4.style.display='block';}}if(_be9._kl6["hal"]["enableAccessibility"]){this._9s6.setAttribute("aria-invalid", (_vy7?"false":"true"));}};_0g2.prototype._nf=function(_a76){this._lo4(_a76);if(_a76!==this._x92){this._x92=_a76;if(_a76){this._ti1();}else{this._n11();}}};_0g2.prototype._l98=function(){return this._x92;};_0g2.prototype._pn4=function(_hy8){if(typeof _hy8=="undefined"){_hy8=this._9s6.value;}var _a76;if(this._s26){_a76=this._s26(this._1x2()._q67());}else{if(this._gb7&&(_hy8=="")){_a76=false;}else if(((this._pp3=="none")&&!this._gb7)||(!this._gb7&&(_hy8==""))){_a76=true;}else{var _le8=this._qo6?_hy8.split("\n"):[_hy8];for(var i=0; i<_le8.length; i++){_a76=_4k2._y85(_le8[i], this._pp3, this._rt4, this._zo6, this._nb7, this._mr6, this._lr6, this._vs4, this._us4, this._264);if(!_a76){break;}}}if(this._0d7._io){_a76=this._0d7._io(this, _a76, _hy8);}}this._nf(_a76);return _a76;};_0g2.prototype._mu5=function(_hy8){if(typeof _hy8=="undefined"){_hy8=this._9s6.value;}var _f86=this._pn4(_hy8);if(!this._se5||!_f86||( this._k46=="none" )||( _hy8=="" ) ){return 2;}var _t56=_hy8.split("\n");var _1c2=[];for(var i=0; i<_t56.length; i++){var _037=_t56[i];if(!_037){continue;}var _1s5=_4k2._2g3(_037, this._pp3, this._rt4, this._zo6, this._nb7, null, null, null, null, this._264);if(_1s5===false){return 0;}if ((this._k46=="date" )||( this._k46=="year" ) ){_1s5=_037;}var _y51=_4k2._mu5(_1s5, this._k46, this._n31, this._rt4, null, this._264);_1c2.push(_y51);}if(_1c2.length==0){return 0;}var _6f2=_1c2.join("\n");this._9s6.value=_6f2;this._9v4=_6f2;return 1;};_0g2.prototype._th2=function(){var _d78=(this._k46=="number"?_1u5._ua8:_1u5._509);return new _1u5(false, this._tv5(), _d78, this._n31, this._ab7);};_0g2.prototype._1o=function(){var _ac2=(this._0d7&&this._0d7._t92==false)?false:true;var _d78=(this._k46=="number"?_1u5._ua8:_1u5._509);var _le8=this._qo6?this._9s6.value.split("\n"):[this._9s6.value];var _y73=[];for(var i=0; i<_le8.length; i++){if(_le8[i].length==0&&_ac2==false){continue;}_y73.push(new _1u5(false, this._d24(_le8[i]), _d78, this._n31));}return _y73;};_0g2.prototype._tv5=function(){return this._d24(this._9s6.value);};_0g2.prototype._d24=function(_hy8){var _0v2=_4k2._2g3(_hy8, this._k46, this._0c7, this._zo6, this._nb7, null, null, null, null, this._264);if(_0v2===false){_0v2=_hy8;}return _0v2;};_0g2.prototype._je3=function(){return this._9s6.value;};_0g2.prototype._8d5=function(e){ this._rv7=0;if(e&&e.type=="keyup"&&(_be9._kl6["hal"]["enableAccessibility"]||(e.keyCode==_fe9._687&&!this._qo6))){this._rv7=e.keyCode;}this._pn4();this._1l2();this._hp();};_0g2.prototype._1l2=function(){if(this._0d7&&this._0d7._hc){this._0d7._hc(this);}if(!this._3f5){this._xu();}};_0g2._tp8=function(e){e.stopPropagation();var _8g4=_zf2._0j6(this);if(_8g4._uj6()){return;}_8g4._pn4();_8g4._mu5();if(_8g4._0d7&&_8g4._0d7._6h1){_8g4._0d7._6h1(_8g4);}_8g4._zk2();_8g4._hp();};_0g2.prototype._zk2=function(){if(this._0d7&&this._0d7._fc){this._0d7._fc(this);}};_0g2._7b8=function(e){e.stopPropagation();var _8g4=_zf2._0j6(this);_8g4._yp8();_8g4._5z5();};_0g2._6b8=function(e){e.stopPropagation();if(_kx5._uz8){e.target.focus();}};_0g2.prototype._yp8=function(_ur){if(this._x43||(_ur===true)){setTimeout( "document.getElementById( '" + _fe9._9h2( this._9s6 ) + "' ).select()", 0 );this._9s6.focus();}};_0g2.prototype._hp=function(){if(this._9s6){if(this._9s6.value!=""){this._9c5();}else{this._834();}}};_0g2.prototype._cz8=function(){this._9s6.focus();};_0g2.prototype._hk6=function(_cy7){_fe9._fs1(this._9s6, _cy7);this._pn4();};_0g2.prototype._z67=function(_cy7){return !this._9s6.disabled; };_0g2.prototype._zw5=function(_1g7){this._9s6.readOnly=_1g7;this._9s6.setAttribute("tabIndex", (_1g7?"-1":"0"));};_0g2.prototype._uj6=function(){return this._9s6.readOnly;};_0g2.prototype._oy2=function(_hy8){this._9s6.value=_hy8;};_0g2.prototype._w95=function(_hy8){this._mr6=_hy8;this._pn4();};_0g2.prototype._v95=function(_hy8){this._lr6=_hy8;this._pn4();};_0g2.prototype._jg3=function(_et8){this._vs4=_et8;this._pn4();};_0g2.prototype._ig3=function(_et8){this._us4=_et8;this._pn4();};_0g2.prototype._2j2=function(_dd9){this._p46=_dd9;_fe9._u95(this._b26, this._p46);};_0g2.prototype._cq1=function(_a45){this._es7(_a45||"");};_0g2.prototype._3j2=function(_8x8){this._es7(_8x8["use"]||"");};
|