_ck2.js 6.4 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(["halres!res/Toolbox.xml"],function(){"use strict";var _ck2={};_ck2._jgn=function(_jxd,_u4c,_76m){if(!this._jue){this._jue=true;this._z4i=_y7g._le();_erh._q0g(this);_8l8._q0g(this);this._021=_ypn._a13.bind(_ypn, null);}if(!this._hfd){this._hfd=new _3ce(this._qd6(_jxd), this);}var _ymn=_4qn._m97(_u4c);this._hfd._pxc("mnuSelectAncestorPopup", _ymn.left+(_76m?_76m.width:0), _4qn._m97(_u4c).top + _u4c.offsetHeight +(_76m?_76m.height:0));this._gqb=_u4c;};_ck2._mi=function(_52e,_sf3){if(!_sf3){if(this._gqb.className=="clsToolbarButton_down"){this._gqb.className="clsToolbarButton";}this._gqb=null;}};_ck2._n51=function(_52e,_uni,_phh){var _7en=_52e._s2g(_phh).getAttribute("roid");var _jxd=_7en?_erh._9kl(_7en):null;var _ick=_jxd?_jxd.nodeName:"";var _zxm;switch(_ick){case "listColumns":_zxm="listColumn/*[self::listColumnTitle | self::listColumnBody]/@iid";;break;case "lcColumns":_zxm="lcColumn/*[self::lcColumnBody | self::lcColumnTitle]/@iid";;break;case "listColumn":_zxm="*[self::listColumnTitle | self::listColumnBody]/@iid";break;case "lcColumn":_zxm="*[self::lcColumnBody | self::lcColumnTitle]/@iid";break;case "listColumnTitleStyle":_zxm="../listColumns/listColumn/listColumnTitle/@iid";break;case "lcColumnTitleStyle":_zxm="../lcColumns/lcColumn/lcColumnTitle/@iid";break;case "listColumnBodyStyle":_zxm="../listColumns/listColumn/listColumnBody/@iid";break;case "lcColumnBodyStyle":_zxm="../lcColumns/lcColumn/lcColumnBody/@iid";break;case "lcGroupHeaderStyle":_zxm="../lcColumns/lcColumn/lcGroup/lcGroupHeader/lcSummaryRows/lcSummaryRow/@iid";break;case "lcGroupFooterStyle":_zxm="../lcColumns/lcColumn/lcGroup/lcGroupFooter/lcSummaryRows/lcSummaryRow/@iid";break;case "listRow":_zxm="rowCells/rowCell/@iid";break;case "listHeader":case "listFooter":case "listPageHeader":case "listPageFooter":_zxm="listRows/listRow/rowCells/rowCell/@iid";break;case "lcGroupHeader":case "lcGroupFooter":_zxm="lcSummaryRows/lcSummaryRow/@iid";break;case "crosstabRows":case "crosstabRowNodeStyle":_zxm="../crosstabRows//crosstabNodeMember/@iid";break;case "crosstabColumns":case "crosstabColumnNodeStyle":_zxm="../crosstabColumns//crosstabNodeMember/@iid";break;case "crosstabNode":case "crosstabNestedNodes":_zxm=".//crosstabNodeMember/@iid";break;case "crosstabFactCell":_zxm="../crosstabIntersections/crosstabIntersection/@iid";break;case "factCell":var _nxj=_8qn._12g(_jxd, "crosstab");if(_7hn._ij8( _nxj, "crosstabIntersections/crosstabIntersection")&&_jxd.parentNode.getAttribute( "edgeLocation" ) ){var _w9k=_7hn._ij8( _jxd, "ancestor::crosstabRows" )?"row":"column";var nl=_7hn._x5g(_jxd, "../../..//crosstabNode[not(crosstabNestedNodes/*)]/crosstabNodeMembers/*/@edgeLocation");if(nl.length>0){_zxm="ancestor::crosstab/crosstabIntersections/crosstabIntersection" + _8qn._i67( "@" + _w9k, _8qn._fde( null, nl ) + "/@iid" );}else{_zxm="ancestor::crosstab/crosstabIntersections/crosstabIntersection[@" + _w9k + "=" + _cgm._zxc( _jxd.parentNode.getAttribute( "edgeLocation" ) ) + "]/@iid";}}else{_zxm="../../..//crosstabNode[not(crosstabNestedNodes/*)]/crosstabNodeMembers/*/factCell/@iid";}break;}var _0mm=_zxm?_8qn._fde(null, _7hn._x5g(_jxd, _zxm)):(_7en?[_7en]:null);setTimeout(_ypn._a13.bind(_ypn, _0mm), 0);};_ck2._1f1=function(_52e,_uni,_phh){setTimeout(this._021, 0);};_ck2._rx=function(_52e,_phh){var _zzj=_52e._s2g(_phh);var _7en=_zzj.getAttribute("roid");if(_7en){setTimeout(_v7g._qbb.bind(_v7g, _v7g.ePaneWorkarea), 0);setTimeout(_38g._g0n._yem.bind(_38g._g0n, _7en), 0);}};_ck2._ta5=function(){this._efb();};_ck2._m9=function(){this._efb();};_ck2._efb=function(){if(this._hfd){this._hfd._fdm();this._hfd=null;}};_ck2._bk7=function(d,_uni,_jxd,_ztf){var _zzj=_uni.insertBefore(d.createElement("menuItem"), _uni.firstChild);var _ick=_jxd.nodeName;switch(_ick){case "customControl":var _xrm=_jxd.selectSingleNode("description/@label");if(_xrm){_zzj.setAttribute("label", _xrm.value);}else{_zzj.setAttribute( "idsLabel", "IDS_EL_" + _ick );}var _b9n=_jxd.selectSingleNode("description/icon16x16");if(_b9n){_zzj.setAttribute( "smallIcon", "data:image/svg+xml;charset=utf-8," + encodeURIComponent( _b9n.text ) );}else{_zzj.setAttribute( "smallIcon", _ick + ".gif" );}break;default:_zzj.setAttribute( "idsLabel", "IDS_EL_" + _ick );var _9xl=this._z4i.has(_ick);_zzj.setAttribute( _9xl?"smallSvgIcon":"smallIcon", _9xl?( "def_el_" + _ick ):( _ick + ".gif" ) );}_zzj.setAttribute( "roid", _jxd.getAttribute( "iid" ) );_zzj.setAttribute( "id", "mnuSelectAncestorMenuItem" + this._22i++ );if(_ztf){_zzj.setAttribute("indentLevel", _ztf);}};_ck2._qd6=function(n){var _pvd=_8qn._dhe( '<menuPopupSet><menuPopup id="mnuSelectAncestorPopup" indentLength="24" autoPosition="horizontal"/></menuPopupSet>' ).documentElement;var _uni=_7hn._ij8(_pvd, "menuPopup");var d=_uni.ownerDocument;this._22i=0;var i=0;while(n&&(n.nodeName!="page")){switch(n.nodeName){case "crosstabNodeMember":case "crosstabSpacer":case "appCrosstabSummary":if(n.nodeName!="factCell"){this._bk7( d, _uni, n.selectSingleNode( "factCell" ), "1" );}break;case "crosstabIntersection":var _nxj=_8qn._12g(n, "crosstab");var _eyj=_nxj.selectSingleNode("crosstabFactCell");if(_eyj){this._bk7(d, _uni, _eyj);}break;case "TOCEntry":var _83m=_dth._ug8(n);var _1mn=_83m.selectSingleNode( "layouts//TOC[@tocName=" + _cgm._zxc( n.getAttribute( "refToc" ) ) + "]" );if(_1mn){this._bk7(d, _uni, _1mn, "1");}break;}n=_ath._rh2(n);if(n){switch(n.nodeName){case "listColumns":this._bk7( d, _uni, n.selectSingleNode( "../listColumnBodyStyle" ), "1" );this._bk7( d, _uni, n.selectSingleNode( "../listColumnTitleStyle" ), "1" );break;case "lcColumns":this._bk7( d, _uni, n.selectSingleNode( "../lcColumnBodyStyle" ), "1" );this._bk7( d, _uni, n.selectSingleNode( "../lcColumnTitleStyle" ), "1" );break;case "listControl":this._bk7( d, _uni, n.selectSingleNode( "lcGroupFooterStyle" ), "1");this._bk7( d, _uni, n.selectSingleNode( "lcGroupHeaderStyle" ), "1");break;}this._bk7(d, _uni, n);if((++i>16)&&(n.nodeName!="page")){var _zzj=_uni.insertBefore(d.createElement("menuItem"), _uni.firstChild);_zzj.setAttribute( "id", "mnuSelectAncestorMenuItem_dotdotdot" );_zzj.setAttribute( "label", "..." );_zzj.setAttribute( "enabled", "false" );_zzj.setAttribute( "smallIcon", "hal/images/blank.gif" );break;}}}return _pvd;};return _ck2;});