_b57.js 7.5 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. define([],function(){"use strict";function _b57(_waf, _1nd){this._rzh=_qgn._bsh;this._9ve=false;this._mad=_1nd;this._1gj=_waf.insertBefore(document.createElement("DIV"), _waf.firstChild);this._1gj.style.cssText=_9l8._cj8( "padding:var(--16S); position:absolute; z-index:10000; left:0px; height:100%; width:100%; overflow:auto; background-color:var(--ui-01);" );var _bdn ='<table cellpadding="0" cellspacing="0" style="width:100%; height:100%" role="presentation">' +'<tr>'+'<td style="padding-right:var(--8XS)">' +'<span HAL_id="viewerError_imgError"><svg style="width:32px; height:32px; vertical-align:middle; fill:var(--support-01)"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#common-error"/></svg></span>' +'<span HAL_id="viewerError_imgInfo"><svg style="width:32px; height:32px; vertical-align:middle; fill:var(--support-03)"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#common-information"/></svg></span>' +'</td>'+'<td HAL_id="viewerError_tdMsg" tabIndex="0" role="presentation"></td>' +'</tr>'+'<tr>'+'<td rowSpan="7"></td>' +'<td style="padding-top:20px;"><span HAL_ids="IDS_LBL_PREVIEW_ERR_OPTIONS" style="padding-bottom: 7px;"></span></td>' +'</tr>'+'<tr>'+'<td>'+'<div HAL_id="viewerError_divUndo" class="clsHyperlink clsTouchHeight" HAL_idsTooltip="IDS_TLTP_PREVIEW_ERR_OPT_UNDO" tabIndex="0" role="link">' +'<img class="clsImg16x16" src="hal/images/round_check.png"/>&nbsp;<span HAL_id="viewerError_imgUndo"><svg height="16px" width="16px" style="vertical-align: middle;"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#common-undo"/></svg></span>&nbsp;<span HAL_id="viewerError_spanUndo" HAL_ids="IDS_MI_EDIT_UNDO" style="vertical-align: middle;"></span>' +'</div>'+'</td>'+'</tr>'+'<tr>'+'<td>'+'<div HAL_id="viewerError_divRefresh" class="clsHyperlink clsTouchHeight" HAL_idsTooltip="IDS_TLTP_PREVIEW_ERR_OPT_REFRESH" tabIndex="0" role="link">' +'<img class="clsImg16x16" src="hal/images/round_check.png"/>&nbsp;<span HAL_id="viewerError_imgRefresh"><svg height="16px" width="16px" style="vertical-align: middle;"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#def_paging_refresh"/></svg></span>&nbsp;<span HAL_id="viewerError_spanRefresh" HAL_ids="IDS_TOOLTIP_REFRESH" style="vertical-align: middle;" HAL_idsTooltip="IDS_TLTP_PREVIEW_ERR_OPT_REFRESH"></span>' +'</div>'+'</td>'+'</tr>'+'<tr>'+'<td>'+(this._rzh?'':('<div class="clsHyperlink clsTouchHeight" HAL_id="viewerError_divPageDesignView" HAL_idsTooltip="IDS_TLTP_PREVIEW_ERR_OPT_DESIGNVIEW" tabIndex="0" role="link">' +'<img class="clsImg16x16" src="hal/images/round_check.png"/>&nbsp;<span HAL_id="viewerError_spanDesignView" HAL_ids="IDS_LBL_PREVIEW_ERR_OPT_DESIGNVIEW"></span>' +'</div>'))+'</td>'+'</tr>'+'<tr>'+'<td>'+'<div class="clsHyperlink clsTouchHeight" HAL_id="viewerError_divAutoCorrect" HAL_idsTooltip="IDS_TLTP_PREVIEW_ERR_OPT_AUTOCORRECT" tabIndex="0" role="link">' +'<img class="clsImg16x16" src="hal/images/round_check.png"/>&nbsp;<span HAL_id="viewerError_spanAutoCorrect" HAL_ids="IDS_LBL_PREVIEW_ERR_OPT_AUTOCORRECT"></span>' +'</div>'+'</td>'+'</tr>'+'<tr>'+'<td>'+(this._rzh?'':('<div class="clsHyperlink clsTouchHeight" HAL_id="viewerError_divClose" HAL_idsTooltip="IDS_LBL_CLOSE_REPORT_TIP" tabIndex="0" role="link">' +'<img class="clsImg16x16" src="hal/images/round_check.png"/>&nbsp;<span HAL_id="viewerError_spanClose" HAL_ids="IDS_LBL_CLOSE_REPORT"></span>' +'</div>'))+'</td>'+'</tr>'+'<tr>'+'<td>'+'<div style="height:var(--16S)"></div>' +'</td>'+'</tr>'+'<tr>'+'<td rowspan="2" style="vertical-align:top; text-align:right; padding-right:var(--8XS); padding-top:10px;">' +'<img title="" HAL_id="viewerError_expandDetails" class="clsTreeViewExpand_normal" style="width:19px; height:20px; cursor:pointer;" src="hal/images/tv_Lplus.svg" _mpj="true" tabIndex="0" role="link">' +'</td>'+'<td>'+'<div HAL_id="viewerError_lblDetails" class="clsHyperlink clsTouchHeight" style="padding-bottom:2px; vertical-align:bottom;" tabIndex="0" role="link"><span HAL_ids="IDS_MSG_DETAILS"></span></div>' +'</td>'+'</tr>'+'<tr>'+'<td style="width:100%; height:100%">' +'<textarea readOnly="true" HAL_id="viewerError_taDetails" wrap="off" style="height:100%; width:100%; display:none; overflow:auto; background-color:transparent;"></textarea>' +'</td>'+'</tr>'+'</table>';this._1gj.innerHTML=_9l8._cj8(_bdn);_frh._gn9(this._1gj);var el=this._1ol("viewerError_tdMsg");var _lsn=_4qn._k3g();el.id=_lsn;el.setAttribute("aria-labelledby", _lsn);var el=this._1ol("viewerError_divUndo");el.onclick=this._bdg.bind(this);el.onkeydown=_b57._183;var el=this._1ol("viewerError_divRefresh");el.onclick=this._1i6.bind(this);el.onkeydown=_b57._183;if(!this._rzh){var el=this._1ol("viewerError_divPageDesignView");el.onclick=this._dl7.bind(this);el.onkeydown=_b57._183;}var el=this._1ol("viewerError_divAutoCorrect");el.onclick=this._jk5.bind(this);el.onkeydown=_b57._183;if(!this._rzh){var el=this._1ol("viewerError_divClose");el.onclick=this._9qe.bind(this);el.onkeydown=_b57._183;}var el=this._1ol("viewerError_expandDetails");el.onclick=this._7o4.bind(this);el.onkeydown=_b57._183;var el=this._1ol("viewerError_lblDetails");el.onclick=this._7o4.bind(this);el.onkeydown=_b57._183;};_b57.prototype._fdm=function(){this._1gj.parentNode.removeChild(this._1gj);this._1gj=null;};_b57.prototype._1gn=function(){this._1gj.style.display="none";};_b57.prototype._08j=function(_5um,_gai){this._1gj.style.display="";this._8xh("viewerError_divRefresh", !this._mad);_4qn._1je( this._1ol( "viewerError_tdMsg" ), _frh._c6j( _gai?"IDS_MSG_PREVIEW_CANCEL":(this._rzh?"IDS_MSG_PREVIEW_ERR_DATASET":"IDS_MSG_PREVIEW_ERR") ) );this._8xh("viewerError_expandDetails", !!_5um);this._8xh("viewerError_lblDetails", !!_5um);this._8xh("viewerError_taDetails",(!!_5um&&this._9ve));this._1ol( "viewerError_taDetails" ).value = _5um?( _5um._cfe() + " " + _5um._3q9() + "\r\n" + _5um._2q9() ):"";this._8xh("viewerError_divUndo", this._mad&&_erh._tkl());this._8xh("viewerError_divAutoCorrect", this._mad&&!_gai);if(!this._rzh){this._8xh("viewerError_divPageDesignView", this._mad);}this._8xh("viewerError_imgError", !_gai);this._8xh("viewerError_imgInfo", _gai);if(_zpn._qsh["hal"]["enableAccessibility"]){this._1ol("viewerError_tdMsg").focus();}};_b57.prototype._1ol=function(_lsn){return this._1gj.querySelector( "[HAL_id='" + _lsn + "']" );};_b57.prototype._8xh=function(_lsn,_wwk){this._1ol(_lsn).style.display=_wwk?"":"none";};_b57.prototype._bdg=function(){setTimeout(_ypn._vhk.bind(_ypn), 0);};_b57.prototype._9qe=function(){setTimeout(Application._ig2.bind(Application), 0);};_b57.prototype._7o4=function(){this._9ve=!this._9ve;this._1ol("viewerError_taDetails").style.display = this._9ve?"":"none";this._1ol("viewerError_expandDetails").src = this._9ve? "hal/images/tv_Lminus.svg":"hal/images/tv_Lplus.svg";};_b57.prototype._dl7=function(){this._1gn();setTimeout(this._uj6.bind(this), 0);};_b57.prototype._uj6=function(){Application.SharedState.Set( "rs_viewer", "editor", "design" );Application.SharedState.Set( "rs_viewer", "isViewer", false );};_b57.prototype._1i6=function(){setTimeout(this._aag.bind(this), 0);};_b57.prototype._aag=function(){Application.SharedState.Call( "rs_viewer", "refresh" );};_b57.prototype._jk5=function(){setTimeout(_8fm._jgn.bind(_8fm, "_5de"), 0);};_b57._183=function(e){if(e.keyCode==_4qn._x8j){_4qn._w0g(e);_k0d._6a6(this, _4qn._ll8, e.ctrlKey, e.shiftKey);}};return _b57;});