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.
- var _on8=new _in8( "_on8", "dlgBorder", "cchl/dialogs/" );_on8._w89=function(_hc4,_2e6,_dy8,_eu3,_z76){this._046=_hp8._e89(_2e6);this._226=_z76!=false;this._1b5(_hc4, _eu3, _dy8);};_on8._9l1=["border-top-width","border-top-style","border-top-color","border-right-width","border-right-style","border-right-color","border-bottom-width","border-bottom-style","border-bottom-color","border-left-width","border-left-style","border-left-color" ];_on8._rl4=function(){return this._046;};_on8._ig1=function(){return this._ip2?_hp8._e89(this._ip2):null;};_on8._011=function(_6z6,_hy8,_jy6,_3g7){var _xj7=_6z6.appendChild(_6z6.ownerDocument.createElement("listItem"));_xj7.setAttribute("value", _hy8);_xj7.setAttribute( "html", '<table role="presentation" cellpadding="0" cellspacing="1" style="table-layout:fixed"><tr style="vertical-align:middle"><td style="border:1px solid var(--text-03); width:18px; height:16px; background-color:' + _hy8 + '"> </td><td style="padding-left:4px" HAL_ids="' + _jy6 + '"></td></tr></table>' );if(_3g7){_xj7.setAttribute( "selected", "true" );}};_on8._lk=function(_7z6){var d=_7z6.ownerDocument;var _zj7=_7z6.appendChild(d.createElement("listView"));_zj7.setAttribute( "allowCtrlDeselect", "false" );_zj7.setAttribute( "hotTracking", "false" );_zj7.setAttribute( "classPrefix", "clsListItem_outline" );var _6z6=_zj7.appendChild(d.createElement("listItems"));var _xj7=_6z6.appendChild(d.createElement("listItem"));_xj7.setAttribute( "value", "" );_xj7.setAttribute( "html", '<div class="clsCCHLDefaultListItem" HAL_ids="IDS_CCHL_PROPVAL_DEFAULT"></div>' );this._011( _6z6, "black", "IDS_HAL_COLOR_BLACK", true );this._011( _6z6, "silver", "IDS_HAL_COLOR_SILVER" );this._011( _6z6, "gray", "IDS_HAL_COLOR_GRAY" );this._011( _6z6, "white", "IDS_HAL_COLOR_WHITE" );this._011( _6z6, "maroon", "IDS_HAL_COLOR_MAROON" );this._011( _6z6, "red", "IDS_HAL_COLOR_RED" );this._011( _6z6, "purple", "IDS_HAL_COLOR_PURPLE" );this._011( _6z6, "fuchsia", "IDS_HAL_COLOR_FUCHSIA" );this._011( _6z6, "green", "IDS_HAL_COLOR_GREEN" );this._011( _6z6, "lime", "IDS_HAL_COLOR_LIME" );this._011( _6z6, "olive", "IDS_HAL_COLOR_OLIVE" );this._011( _6z6, "yellow", "IDS_HAL_COLOR_YELLOW" );this._011( _6z6, "navy", "IDS_HAL_COLOR_NAVY" );this._011( _6z6, "blue", "IDS_HAL_COLOR_BLUE" );this._011( _6z6, "teal", "IDS_HAL_COLOR_TEAL" );this._011( _6z6, "aqua", "IDS_HAL_COLOR_AQUA" );_xj7=_6z6.appendChild(d.createElement("listItem"));_xj7.setAttribute( "name", "CustomColor" );this._dn2(_xj7);return _zj7;};_on8._dn2=function(_xj7){if(this._ih5){var _ex8=_4l6._rh2("IDS_HAL_COLOR_"+this._ih5.toUpperCase());_xj7.setAttribute( "tooltip", _4l6._m67( "IDS_CCHL_COLOR_CUSTOM" ) + ( _ex8?" - " + _ex8:" - " + this._ih5 ) );}else{_xj7.setAttribute( "tooltip", _4l6._m67( "IDS_CCHL_COLOR_CUSTOM" ) );}_xj7.setAttribute("value", this._ih5);var _u69 ='<table role="presentation" cellpadding="0" cellspacing="1" style="table-layout:fixed;width:100%">' +'<tr style="vertical-align:middle">' +'<td style="border:1px solid var(--text-03); width:18px; height:16px' + ( this._ih5?( "; background-color:" + this._ih5 ):"" ) + '"> </td>' +'<td style="padding-left:3px" HAL_ids="IDS_CCHL_COLOR_CUSTOM"></td>' +'<td style="width:22px">' +'<button class="clsDotDotDotPropertyButton" style="width:22px; vertical-align:middle" hideFocus="true" HAL_idsAriaLabel="IDS_CCHL_AC_COLOR_CUSTOM_DOTDOTDOT" onclick="_on8._kg2()">' +'<svg class="clsDotDotDotButtonSvg"><use xlink:href="#def_hal_property_dotdotdot"></use></svg>' +'</button>'+'</td>'+'</tr>'+'</table>';_xj7.setAttribute("html", _u69);};_on8._yl2=function(){var _607=new _l57(this._ip2["border-width"]);var txt=this._2j6("txtWidth");txt.value=_607._jh2();txt.onkeypress=_fe9._z9;txt.onchange=function(e){ _fe9._vr1(e); _on8._j1(); };this._df5._rm4(_607._898()||"pt");};_on8._j1=function(){if(this._2j6("txtWidth").value.length>0){var _hy8=_jp8._b95(this._2j6("txtWidth").value)._ms7();this._ip2["border-width"] = _hy8?( _hy8 + this._df5._jr7() ):"";}else{this._046["border-width"] = "";}this._yl2();};_on8._rk4=function(){this._a53=this._2j6("divBorderPreview");if(_kx5._gl6){this._a53.parentNode.style.textAlign="-moz-center";}else if(_kx5._g87){this._a53.parentNode.style.textAlign="-webkit-center";}this._lf5=_ie9._py3();var _7z6=this._lf5.appendChild(this._lf5.createElement("ListViews"));this._t74=new _lq7(this._2j6("divBorderColor"), this._lk(_7z6), this);var _zj7=_cp8._dt(_4l6._lv5('CCHL_border-style'));_zj7.selectSingleNode( "listItems/listItem[@value='solid']" ).setAttribute( "selected", "true" );this._q84=new _lq7(this._2j6("divBorderStyle"), _zj7, this);var _zj7=_cp8._et(this._lv5('CCHL_border-width'));_zj7.selectSingleNode( "listItems/listItem[@value='1pt']" ).setAttribute( "selected", "true" );this._v84=new _lq7(this._2j6("divBorderWidth"), _zj7, this);this._ip2={};this._ip2["border-style"] = this._q84._8r1().getAttribute( "value" );this._ip2["border-width"] = this._v84._8r1().getAttribute( "value" );this._ip2["border-color"] = this._t74._8r1().getAttribute( "value" );this._df5=new _jq7(this._2j6("cboWidthUnit"), null, _4l6._lv5('CCHL_CSSLengthUnits'), this);this._df5._rm4("pt");this._yl2();this._ih5="";};_on8._1o8=function(){if(this._t74){this._t74._1o8();delete this._t74;}if(this._q84){this._q84._1o8();delete this._q84;}if(this._v84){this._v84._1o8();delete this._v84;}if(this._df5){this._df5._1o8();delete this._df5;}};_on8._r89=function(){if(!this._226){this._2w();}this._0b5();};_on8._cz=function(){this._2j6( "divBottom" ).style.display = this._226?"":"none";_dp8._bs7( this._2j6( "btnOK" ), _4l6._m67( this._226?"IDS_HAL_BTN_OK":"IDS_HAL_BTN_CLOSE" ) );this._2j6( "btnApply" ).style.display = this._226?"":"none";this._2j6( "btnCancel" ).style.display = this._226?"":"none";this._on4();if(this._mc1){this._2j6("divBorderColor").scrollTop=this._mc1;}if(this._nc1){this._2j6("divBorderStyle").scrollTop=this._nc1;}if(this._oc1){this._2j6("divBorderWidth").scrollTop=this._oc1;}};_on8._iq1=function(){this._mc1=this._2j6("divBorderColor").scrollTop;this._nc1=this._2j6("divBorderStyle").scrollTop;this._oc1=this._2j6("divBorderWidth").scrollTop;};_on8._122=function(){delete this._046;};_on8._0w=function(_5j4,_us5){try{this._a53.style[_5j4]=this._046[_us5];}catch(e){this._a53.style[_5j4]="";}};_on8._yl=function(_5j4){var _us5=_5j4.toLowerCase();if(this._046["border-" + _us5 + "-style"]=="none" ){this._a53.style["border" + _5j4 + "Width"] = "1px";this._a53.style["border" + _5j4 + "Color"] = _3z2._fx2( "--G2" );this._a53.style["border" + _5j4 + "Style"] = "dotted";}else{this._0w( "border" + _5j4 + "Width", "border-" + _us5 + "-width" );this._0w( "border" + _5j4 + "Color", "border-" + _us5 + "-color" );this._0w( "border" + _5j4 + "Style", "border-" + _us5 + "-style" );}};_on8._on4=function(){if(!this._226){return;}this._yl("Top");this._yl("Bottom");this._yl("Left");this._yl("Right");var _m78="";var a=this._9l1;for(var i=0;i<a.length;i++){if((i % 3)==0){if(i>0){_m78+= "\r\n";}var _jy8=this._046[a[i]];var _gj8=new _l57(_jy8);var _7l8=(_gj8._898()?(_gj8._jh2()+_gj8._k85()):"");var _by8=this._046[a[i+1]];_by8=_by8?_4l6._rh2( "IDS_CCHL_BORDERSTYLE_" + _by8.toUpperCase() ):"";var _ex8=this._046[a[i+2]];var _hy8=_ex8?_4l6._rh2( "IDS_HAL_COLOR_" + _ex8.toUpperCase() ):"";_ex8=_hy8||_ex8;if(_jy8||_by8||_ex8){_m78 +=(_7l8||"?" ) + " " + ( _by8||"?" ) + " " + ( _ex8||"?" );}else{_m78+= "?";}}}this._a53.title=_m78;};_on8._kg2=function(){_vo8._w89( "cchl/dialogs/_6z8", this._ie3(), false, this._ih5, _4l6._m67( "IDS_CCHL_TITLE_COLOR_CUST_BORDER" ), this, false, true );};_on8._wd3=function(_7j8){switch(_7j8._xu5()){case "_6z8":this._ih5=_7j8._ar7();this._ip2["border-color"]=this._ih5;this._dn2(this._2j6("divBorderColor")._ul7._8r1());this._2j6("divBorderColor")._ul7._f89();this._on4();}};_on8._lg2=function(_7l7){this._j1();};_on8._xg1=function(_ul7,_xj7,_am5){switch(_ul7._dz8()){case "_on8_divBorderStyle":if(_xj7.getAttribute( "value" )=="none" ){this._ip2["border-width"] = "";this._yl2();var _ul7=this._2j6("divBorderWidth")._ul7;_ul7._s04(_lq7._nq1(_ul7._re3(), 0));var _ul7=this._2j6("divBorderColor")._ul7;_ul7._s04(_lq7._nq1(_ul7._re3(), 0));}this._jn1="-style";this._ip2["border-style"] = _xj7.getAttribute( "value" );break;case "_on8_divBorderWidth":this._jn1="-width";this._ip2["border-width"] = _xj7.getAttribute( "value" );this._yl2();break;case "_on8_divBorderColor":this._jn1="-color";this._ip2["border-color"] = _xj7.getAttribute( "value" );break;}setTimeout("_on8._on4()", 0);};_on8._mt=function(_ul7,_xj7){switch(_ul7._dz8()){case "_on8_divBorderColor":if(_xj7.getAttribute( "name" )&&( _xj7.getAttribute( "name" )=="CustomColor" ) ){setTimeout("_on8._kg2()", 0);}break;}};_on8._bw5=function(e,el){var _s48=_fe9._yh2(this._a53, document.body);var _db9=_s48.top;var _p39=_s48.left;var _gv8=this._a53.offsetWidth;var _xg8=this._a53.offsetHeight;var _mg8=_db9+_xg8;var _4v8=_p39+_gv8;var _3x6=10;if(_899._ew5(e.y, e.x, _db9-(_3x6 / 2), _p39, _gv8, _3x6)){this._jq4(e, "border-top");}else if(_899._ew5(e.y, e.x, _mg8-(_3x6 / 2), _p39, _gv8, _3x6)){this._jq4(e, "border-bottom");}else if(_899._ew5(e.y, e.x, _db9, _p39-(_3x6 / 2), _3x6, _xg8)){this._jq4(e, "border-left");}else if(_899._ew5(e.y, e.x, _db9, _4v8-(_3x6 / 2), _3x6, _xg8)){this._jq4(e, "border-right");}setTimeout("_on8._on4()", 0);};_on8._2w=function(){if(!_cp8._x12( this._ip2["border-width"], this._ip2["border-style"], this._ip2["border-color"] ) ){_i04("IDS_MSG_DOUBLE_BORDERS");}};_on8._jq4=function(e,_us5,_s83){if(!_s83){this._2w();}if(!_us5){for(var s in this._046){this._046[s]="";}}else if(e.ctrlKey){var _ul7=this._2j6("divBorderColor")._ul7;var _hy8=this._046[_us5+"-color"];var _xj7=_lq7._l75(_ul7._re3(), "value", _hy8);if(_hy8&&!_xj7){var _xj7=_lq7._l75( _ul7._re3(), "name", "CustomColor" );this._ih5=_hy8;this._dn2(_xj7);_ul7._f89();_ul7._s04(_xj7);}else if(_xj7){_ul7._s04(_xj7);}var _ul7=this._2j6("divBorderStyle")._ul7;var _hy8=this._046[_us5+"-style"];var _xj7=_lq7._l75(_ul7._re3(), "value", _hy8);if(_xj7){_ul7._s04(_xj7);}var _ul7=this._2j6("divBorderWidth")._ul7;var _hy8=this._046[_us5+"-width"];var _607=new _l57(_hy8);var txt=this._2j6("txtWidth");txt.value=_607._jh2();this._df5._rm4(_607._898()||"pt");var _xj7=_lq7._l75(_ul7._re3(), "value", _hy8);if(_xj7){_ul7._s04(_xj7);}}else if(e.shiftKey&&this._jn1){this._046[_us5+this._jn1]=this._ip2["border" + this._jn1];}else{this._046[_us5+"-style"] = this._ip2["border-style"];this._046[_us5+"-width"] = this._ip2["border-width"];this._046[_us5+"-color"] = this._ip2["border-color"];}setTimeout("_on8._on4()", 0);};_on8._477=function(e){if(e.ctrlKey){switch(e.keyCode){case "C".charCodeAt(0):case "X".charCodeAt(0):var o=new _uj4("");o._5n4(this._rl4());_r87._y98(o.toString());break;case "V".charCodeAt(0):var s=_r87._598();if(s&&s.match(/^border/)){var o=new _uj4(s);var a=this._9l1;for(var i=0;i<a.length;i++){var _hy8=o._hv5(a[i]);this._046[a[i]]=_hy8||"";}this._on4();}break;}}this._xj2(e);};
|