123456 |
- // Licensed Materials - Property of IBM
- // IBM Cognos Products: rs
- // (C) Copyright IBM Corp. 2003, 2022.
- // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- var _fmh=new _lcm("_fmh");_fmh._jgn=function(_u4c,_arg,_s8f){this._ufg=_arg;this._93i=_arg[0];this._tue=_s8f!=false;this._4le(_u4c, null);}; _fmh._bgn=function(){if(this._tue){_erh._ybb();}for(var i=0;i<this._ufg.length;i++){var _zpi=this._ufg[i];_8qn._cqh(_zpi, "builtinViz");if(this._whn){_erh._u0g(_zpi, "builtinViz").appendChild(_erh._woh(this._whn, true));}}if(this._tue){_erh._iee();}this._3le();};_fmh._uo9=function(_6sf,_35k,_xya,_02b,_mvl){this._pj8(_6sf, _mvl);_4qn._2b5(this._2oh(_6sf), _mvl?(this._whn.getAttribute(_xya)||"black"):"");_35k._mqh(_mvl, false);if(_mvl){if(!this._whn.getAttribute(_02b)){_35k._bs();this._whn.setAttribute(_02b, _35k._qik());}else{_35k._hwc(this._whn.getAttribute(_02b));}}else{_35k._3kk("");this._whn.setAttribute(_xya, "");this._whn.removeAttribute(_02b);}};_fmh._jd7=function(_atn){var _mwk=_atn.checked;switch(this._9fe(_atn)){case "chkColorPos":this._uo9("btn_coloredViz_positiveColor", this._dv, "positiveColor", "positiveShape", _mwk );break;case "chkColorZero":this._uo9("btn_coloredViz_zeroColor", this._tx1, "zeroColor", "zeroShape", _mwk );break;case "chkColorNegative":this._uo9("btn_coloredViz_negativeColor", this._cv, "negativeColor", "negativeShape", _mwk );break;case "chkPercentagePos":this._uo9("btn_percentageSizedViz_positiveColor", this._bb1, "positiveColor", "positiveShape", _mwk );break;case "chkPercentageNegative":this._uo9("btn_percentageSizedViz_negativeColor", this._ab1, "negativeColor", "negativeShape", _mwk );break;case "chkHtmlPos":if(_mwk){_8qn._w6b(this._whn, "positiveHtmlViz");}else{_8qn._cqh(this._whn, "positiveHtmlViz");}this._un7();break;case "chkHtmlZero":if(_mwk){_8qn._w6b(this._whn, "zeroHtmlViz");}else{_8qn._cqh(this._whn, "zeroHtmlViz");}this._un7();break;case "chkHtmlNeg":if(_mwk){_8qn._w6b(this._whn, "negativeHtmlViz");}else{_8qn._cqh(this._whn, "negativeHtmlViz");}this._un7();break;}};_fmh._wph=function(e){this._lb6(e);};_fmh._5z2=function(){this._y4i=new _jgk( this._2oh( "tblType" ), this._53g( _al8._v6j( "canUseHTML" )?"Type":"Type_NoHTML" ), null, this );var _c7n=0;this._whn=this._93i.selectSingleNode("builtinViz/*");if(this._whn){this._whn=this._whn.cloneNode(true);var _mzj=_pgk._lee(this._y4i._o2g()._eq9(), "value", this._whn.nodeName);this._y4i._2g4(_mzj);_c7n=+_mzj.getAttribute("card");}else{this._y4i._hwc("");}this._cij=new _lfn(this._2oh("deckMain"));var _drm=this._53g("coloredViz_shape");var _ozj=_drm.selectSingleNode("listView");_ozj.setAttribute( "colorAttribute", "positiveColor" );_ozj.setAttribute( "shapeAttribute", "positiveShape" );this._dv=new _jgk(this._2oh("tbl_coloredViz_positiveShape"), _drm, null, this);this._dv._mqh(false, false);this._pj8("btn_coloredViz_positiveColor", false);var _drm=this._53g("coloredViz_shape");var _ozj=_drm.selectSingleNode("listView");_ozj.setAttribute( "colorAttribute", "zeroColor" );_ozj.setAttribute( "shapeAttribute", "zeroShape" );this._tx1=new _jgk(this._2oh("tbl_coloredViz_zeroShape"), _drm, null, this);this._tx1._mqh(false, false);this._pj8("btn_coloredViz_zeroColor", false);var _drm=this._53g("coloredViz_shape");var _ozj=_drm.selectSingleNode("listView");_ozj.setAttribute( "colorAttribute", "negativeColor" );_ozj.setAttribute( "shapeAttribute", "negativeShape" );this._cv=new _jgk(this._2oh("tbl_coloredViz_negativeShape"), _drm, null, this);this._cv._mqh(false, false);this._pj8("btn_coloredViz_negativeColor", false);var _drm=this._53g("coloredViz_shape");var _ozj=_drm.selectSingleNode("listView");_ozj.setAttribute( "colorAttribute", "color" );_ozj.setAttribute( "shapeAttribute", "shape" );this._b24=new _jgk(this._2oh("tbl_coloredViz_shape"), _drm, null, this);var _drm=this._53g("percentageSizedViz_shape");var _ozj=_drm.selectSingleNode("listView");_ozj.setAttribute( "colorAttribute", "positiveColor" );_ozj.setAttribute( "shapeAttribute", "positiveShape" );this._bb1=new _jgk(this._2oh("tbl_percentageSizedViz_positiveShape"), _drm, null, this);this._bb1._mqh(false, false);this._pj8("btn_percentageSizedViz_positiveColor", false);var _drm=this._53g("percentageSizedViz_shape");var _ozj=_drm.selectSingleNode("listView");_ozj.setAttribute( "colorAttribute", "negativeColor" );_ozj.setAttribute( "shapeAttribute", "negativeShape" );this._ab1=new _jgk(this._2oh("tbl_percentageSizedViz_negativeShape"), _drm, null, this);this._ab1._mqh(false, false);this._pj8("btn_percentageSizedViz_negativeColor", false);var _drm=this._53g("percentageSizedViz_shape");var _ozj=_drm.selectSingleNode("listView");_ozj.setAttribute( "colorAttribute", "color" );_ozj.setAttribute( "shapeAttribute", "shape" );this._xr5=new _jgk(this._2oh("tbl_percentageSizedViz_shape"), _drm, null, this);this._cij._ujk(_c7n);this._un7();};_fmh._fl3=function(_35k,_mzj,_gfi){var _k5c=30;var _48n=12;var d=document;_gfi.innerHTML="";_gfi.style.height=_k5c+"px";_gfi.style.width=_k5c+"px";_gfi.style.padding="0";var _waf=_gfi.appendChild(d.createElement("DIV"));_waf.style.height=_k5c+"px";_waf.style.width=_k5c+"px";_waf.style.display="flex";_waf.style.alignItems="center";var _7xm=_mzj.getAttribute("value");var _kyl;var _pvm=( this._whn?this._whn.getAttribute( _mzj.parentNode.parentNode.getAttribute( "colorAttribute" ) ):"" )||"black";if ((_7xm=="upArrow" )||( _7xm=="downArrow" ) ){_kyl=_1y9._777(d,(_7xm=="upArrow"), _pvm, 12, 6);}else if(_7xm=="circle"){_kyl=_1y9._zde(d, _pvm, _48n / 2);}else if(_7xm=="square"){_kyl=_1y9._7ee(d, _pvm, _48n);}else if(_7xm=="bar"){_kyl=_1y9._7o9(d, _pvm, _48n, Math.floor(_48n / 2));}else if ((_7xm=="upTriangle" )||( _7xm=="downTriangle" ) ){_kyl=_1y9._bp1(d,(_7xm=="upTriangle"), _pvm, _48n);}_waf.appendChild(_kyl);_gfi.appendChild(_waf);};_fmh._o46=function(){this._y4i._fdm();this._cij._fdm();this._dv._fdm();this._cv._fdm();this._tx1._fdm();this._b24._fdm();this._bb1._fdm();this._ab1._fdm();this._xr5._fdm();this._2oh( "divPositiveHtmlPreview" ).innerHTML = "";this._2oh( "divZeroHtmlPreview" ).innerHTML = "";this._2oh( "divNegativeHtmlPreview" ).innerHTML = "";this._2oh( "divDefaulHtmlPreview" ).innerHTML = "";this._whn=null;};_fmh._g67=function(_35k,_mzj){var d=this._93i.ownerDocument;if(_35k==this._y4i){this._cij._ujk(parseInt(_mzj.getAttribute("card")));var _ick=_mzj.getAttribute("value");switch(_ick){case "coloredViz":this._whn=d.createElement(_ick);this._whn.setAttribute( "shape", "circle" );this._whn.setAttribute( "color", "black" );this._whn.setAttribute( "positiveColor", "" );this._whn.setAttribute( "zeroColor", "" );this._whn.setAttribute( "negativeColor", "" );break;case "percentageSizedViz":this._whn=d.createElement(_ick);this._whn.setAttribute( "shape", "bar" );this._whn.setAttribute( "color", "black" );this._whn.setAttribute( "animate", "true" );break;case "htmlViz":this._whn=d.createElement(_ick);this._whn.appendChild(d.createElement("defaultHtmlViz"));break;default:this._whn=null;}setTimeout(this._un7.bind(this), 0);}else if(this._cij._cik()==1){this._whn.setAttribute( _mzj.parentNode.parentNode.getAttribute( "shapeAttribute" ), _mzj.getAttribute( "value" ) );}else if(this._cij._cik()==2){this._whn.setAttribute( _mzj.parentNode.parentNode.getAttribute( "shapeAttribute" ), _mzj.getAttribute( "value" ) );}};_fmh._un7=function(){var _c7n=this._cij._cik();if(_c7n==0){return;}else if(_c7n==1){this._dv._o2g()._wfn();var _7xm=this._whn.getAttribute("positiveShape");var _pvm=this._whn.getAttribute("positiveColor");if(_7xm){this._dv._hwc(_7xm);}else{this._dv._3kk("");}this._2oh("chkColorPos").checked=!!_pvm;this._uo9("btn_coloredViz_positiveColor", this._dv, "positiveColor", "positiveShape", !!_pvm );this._tx1._o2g()._wfn();var _7xm=this._whn.getAttribute("zeroShape");var _pvm=this._whn.getAttribute("zeroColor");if(_7xm){this._tx1._hwc(_7xm);}else{this._tx1._3kk("");}this._2oh("chkColorZero").checked=!!_pvm;this._uo9("btn_coloredViz_zeroColor", this._tx1, "zeroColor", "zeroShape", !!_pvm );this._cv._o2g()._wfn();var _7xm=this._whn.getAttribute("negativeShape");var _pvm=this._whn.getAttribute("negativeColor");if(_7xm){this._cv._hwc(_7xm);this._2oh("chkColorNegative").checked=true;}else{this._cv._3kk("");this._2oh("chkColorNegative").checked=false;}this._2oh("chkColorNegative").checked=!!_pvm;this._uo9("btn_coloredViz_negativeColor", this._cv, "negativeColor", "negativeShape", !!_pvm );this._b24._o2g()._wfn();var _7xm=this._whn.getAttribute("shape");if(_7xm){this._b24._hwc(_7xm);}else{this._b24._3kk(""); }_4qn._2b5( this._2oh( "btn_coloredViz_color" ), this._whn.getAttribute( "color" )||"" );}else if(_c7n==2){this._2oh( "chkAnimate" ).checked = ( this._whn.getAttribute( "animate" ) != "false" ); this._bb1._o2g()._wfn();var _7xm=this._whn.getAttribute("positiveShape");var _pvm=this._whn.getAttribute("positiveColor");if(_7xm){this._bb1._hwc(_7xm);this._2oh("chkPercentagePos").checked=true;}else{this._bb1._3kk("");this._2oh("chkPercentagePos").checked=false;}this._2oh("chkPercentagePos").checked=!!_pvm;this._uo9("btn_percentageSizedViz_positiveColor", this._bb1, "positiveColor", "positiveShape", !!_pvm);this._ab1._o2g()._wfn();var _7xm=this._whn.getAttribute("negativeShape");var _pvm=this._whn.getAttribute("negativeColor");if(_7xm){this._ab1._hwc(_7xm);this._2oh("chkPercentageNegative").checked=true;}else{this._ab1._3kk("");this._2oh("chkPercentageNegative").checked=false;}this._2oh("chkPercentageNegative").checked=!!_pvm;this._uo9("btn_percentageSizedViz_negativeColor", this._ab1, "negativeColor", "negativeShape", !!_pvm );this._xr5._o2g()._wfn();var _7xm=this._whn.getAttribute("shape");if(_7xm){this._xr5._hwc(_7xm);}else{this._xr5._3kk(""); }_4qn._2b5( this._2oh( "btn_percentageSizedViz_color" ), this._whn.getAttribute( "color" )||"" ); }else if(_c7n==3){ if(this._whn){var _qln=this._whn.selectSingleNode("positiveHtmlViz");var _ean=this._whn.selectSingleNode("zeroHtmlViz");var _hln=this._whn.selectSingleNode("negativeHtmlViz");var _ton=_8qn._w2g(_qln);var _4fn=_8qn._w2g(_ean);var _qon=_8qn._w2g(_hln);this._2oh("divPositiveHtmlPreview").innerHTML=_ton;this._2oh("divZeroHtmlPreview").innerHTML=_4fn;this._2oh("divNegativeHtmlPreview").innerHTML=_qon;this._2oh( "divDefaulHtmlPreview" ).innerHTML = _8qn._w2g(this._whn.selectSingleNode( "defaultHtmlViz" ));this._2oh("chkHtmlPos").checked=!!_qln;this._pj8("btnEditPositiveHtml", !!_qln);this._2oh("chkHtmlZero").checked=!!_ean;this._pj8("btnEditZeroHtml", !!_ean);this._2oh("chkHtmlNeg").checked=!!_hln;this._pj8("btnEditNegativeHtml", !!_hln);}}};_fmh._3t9=function(_ick){(new _ql9(_8qn._w6b(this._whn, _ick), _anl._6db, false, this))._ujl();};_fmh._vs9=function(){this._whn.setAttribute( "animate", this._2oh( "chkAnimate" ).checked?"true":"false" );setTimeout(this._un7.bind(this), 0);};_fmh._ki8=function(btn){if(btn.nodeName!="BUTTON"){return;}var _g8k=btn.id;this._3fa=_g8k.substr(_g8k.lastIndexOf("_")+1);var _pvm=this._whn.getAttribute(this._3fa)||"";_8fm._jgn( "cchl/dialogs/_1zm", btn, true, _pvm, _frh._c6j( "IDS_CCHL_TITLE_COLOR" ), this, false, false, "", true, false );};_fmh._io9=function(_e5m){if(_e5m._b2g()=="_1zm"){this._whn.setAttribute(this._3fa, _e5m._or());}setTimeout(this._un7.bind(this), 0);};
|