_7d3.js 12 KB

123456
  1. // Licensed Materials - Property of IBM
  2. // IBM Cognos Products: irot
  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(["halsvg!images/model/model_icons.svg"],function(){"use strict";var _la7={"model":"ba_graphics_data-model_16","model_failure":"ba_graphics_warn_16","dimension":"ba_graphics_dimension_16","dimension_measure":"ba_graphics_dimension-measure_16","hierarchy":"ba_graphics_hierarchy_16","level":"ba_graphics_level_16","member":"ba_graphics_member_16","member_root":"ba_graphics_member-root_16","measure":"ba_graphics_measure_16","fact":"ba_graphics_measure_16","folder":"ba_graphics_folder_16","namespace":"ba_graphics_namespace_16","folder_expanded":"ba_graphics_folder-expand_16","querySubject":"ba_graphics_query_16","textMeasure":"ba_graphics_text-measure_16","filter":"ba_graphics_filter_16","namedSet":"ba_graphics_namedSet_16","macro":"ba_graphics_macro_16","search":"ba_graphics_search_16","chevron_right":"ba_graphics_chevron-right_16","chevron_down":"ba_graphics_chevron-down_16"};var _cw1={"string":"ba_graphics_text-measure_16","integer":"ba_graphics_numeric-identifier_16","decimal":"ba_graphics_numeric-identifier_16","float":"ba_graphics_numeric-identifier_16","dateTime":"ba_graphics_time_16","interval":"ba_graphics_time_16","date":"ba_graphics_time_16","time":"ba_graphics_time_16","blob":"ba_graphics_warn_16","unsupported":"ba_graphics_warn_16"};function _7d3(_pk5, _vl7, _7m7, _9k5, _hq3){this._if5=_pk5;this._0d7=_vl7;this._mb8=[];this._c16=[];this._6d7=_7m7||this._x62();this._3f5=!!_9k5;this._im3=!!_hq3;}_7d3.prototype._1o8=function(){this._2b7=true;this._dn();if(this._tu4){this._tu4._1o8();this._tu4=null;}};_7d3.prototype._v75=function(){return this._if5;};_7d3.prototype._8i3=function(){if(this._tu4){this._tu4._1o8();}var _ok7=_4l6._lv5("CCHL_PackageTree");_ok7.setAttribute("multiSelect", this._3f5?"true":"false");if(this._im3){_ok7.setAttribute( "htmlDrag", "true" );}var _p96=this._0d7._aw5?this._ql.bind(this):null;this._tu4=new _rq7(this._if5, _ok7, {_lh1: this._5v1.bind(this),_5u: this._k21.bind(this),_uc: this._og.bind(this),_jh1: _p96,_to: _p96});return _ok7;};_7d3.prototype._x62=function(){var _se7=_ss7._jr7("PackageTree").split(",");return {_wx5:_se7[5]=="0",_tj2:_se7[6]=="0",_wh1:_se7[7]=="0",_z81:_se7[4]=="0"};};_7d3.prototype._9j2=function(_9e8){var _ok7=this._8i3();this._tu4._8x5(_4l6._m67("IDS_MSG_LOADING_MODEL"));this._mb8=_9e8;var _ne7=_9e8.map(function(_yw8){ return _yw8._a85(); });Q.all(_ne7).done(function(_fs8){for(var i=0; i<_fs8.length;++i){var _s59=_fs8[i];this._211(_ok7, _s59, i);}this._tu4._f89();}.bind(this));};_7d3.prototype._sg3=function(_9e8,_ow8){var _ok7=this._8i3();this._tu4._8x5(_4l6._m67("IDS_MSG_LOADING_MODEL"));this._mb8=[];this._c64=true;var _ne7=_9e8.map(function(_yw8){ return _yw8._nh2().then(function(_o49){ return _o49||_yw8._a85(); }); });Q.all(_ne7).done(function(_fs8){if(_ow8){_ow8.resolve(true);}for(var i=0; i<_fs8.length;++i){var _s59=_fs8[i];if(_s59){var _zu8=this._mb8.length;this._mb8.push(_9e8[i]);this._211(_ok7, _s59, _zu8);}}this._tu4._f89();}.bind(this));};_7d3.prototype._814=function(_yw8,_wr3){var _ok7=this._8i3();this._tu4._8x5(_4l6._m67("IDS_MSG_LOADING_MODEL"));this._mb8=[_yw8];this._c64=true;_yw8._nh2().done(function(_s59){if(_s59){this._gn3=_wr3;this._211(_ok7, _s59, 0);}this._tu4._f89();}.bind(this));};_7d3.prototype._ih1=function(_yw8,_3d9){var _ok7=this._8i3();this._tu4._8x5(_4l6._m67("IDS_MSG_LOADING_MODEL"));this._mb8=[_yw8];_yw8._e22().then(function(_v38){return _yw8._tz3(_v38._6b5[_3d9]);}).done(function(_px7){for(var i=0; i<_px7.length;++i){this._211(_ok7, _px7[i], 0);}if(_px7.length==1){var _nk7=_999._7y2(_ok7, "treeNode");_nk7.setAttribute("expanded", "true");}this._tu4._f89();}.bind(this));};_7d3.prototype._j33=function(){return _fe9._8z(function(){this._tu4._8x5(_4l6._m67("IDS_MSG_SEARCHING"));}.bind(this), 1000);};_7d3.prototype._pm4=function(_yw8,_x07,_7o7,_m37,_qa4,_3e1){var _ok7=this._8i3();var _ko1=this._j33();this._mb8=[_yw8];this._c16=[_x07];_yw8._pm4(_x07._699, _7o7, _m37, _qa4, _3e1).done(function(_px7){_fe9._b75(_ko1);this._qo4(_ok7, _px7, 0, 0);this._tu4._f89();}.bind(this));};_7d3.prototype._vi2=function(_yw8,_x07,_7o7,_m37,_qa4,_3e1){var _ok7=this._8i3();var _ko1=this._j33();this._mb8=[_yw8];this._c16=[_x07];_yw8._vi2(_x07, _7o7, _m37, _qa4, _3e1).done(function(_px7){_fe9._b75(_ko1);this._qo4(_ok7, _px7, 0, 0);this._tu4._f89();}.bind(this));};_7d3.prototype._6y2=function(_yw8,_x07,_7o7,_m37,_qa4,_3e1){var _ok7=this._8i3();var _ko1=this._j33();this._mb8=[_yw8];_yw8._6y2(_x07, _7o7, _m37, _qa4, _3e1).done(function(_y56){_fe9._b75(_ko1);for(var i=0; i<_y56.length;++i){this._211(_ok7, _y56[i], 0);}this._tu4._f89();}.bind(this));};_7d3.prototype._dn=function(){_109._wq7(this._mb8, "_dn");};_7d3.prototype._5v1=function(_em7,_nk7){var _n25=this._dj3(_nk7);if(_nk7.getAttribute("searchButton")){if(this._0d7._1s7){this._0d7._1s7(_n25);}return;}if(_n25&&this._0d7._dw5){this._0d7._dw5(_n25);}};_7d3.prototype._k21=function(_em7,_nk7){var _n25=this._dj3(_nk7);if(_n25&&this._0d7._3h1){if ((_nk7.getAttribute( "expandable" ) != "true" )||( _nk7.getAttribute( "populated" )=="true"&&!_nk7.selectSingleNode( "treeNode" ) )){this._0d7._3h1(_n25);}}};_7d3.prototype._k3=function(_em7,_nk7,_px7){if(this._2b7){return;}this._qo4(_nk7, _px7, _nk7.getAttribute("idxModel"), _nk7.getAttribute("idxModelItem"));_em7._k75(true);};_7d3.prototype._su1=function(_em7,_3c9){console.warn('_7d3._su1: ', _3c9);if(this._2b7){return;}_em7._k75(false);};_7d3.prototype._og=function(_em7,_nk7){var _yw8=this._tt7(_nk7);var _x07=this._oc5(_nk7);if(_nk7.getAttribute("rootMembersFolder")){_yw8._tz3(_x07).done(this._k3.bind(this, _em7, _nk7), this._su1.bind(this, _em7));}else if(_x07._009=="member"){_yw8._mh2(_x07._699).done(this._k3.bind(this, _em7, _nk7), this._su1.bind(this, _em7));}else{_yw8._xw2(_x07).done(function(_5e7){if(this._2b7){return;}for(var i=0; i<_5e7.length;++i){var _kw8=_5e7[i];this._211(_nk7, _kw8);}_em7._k75(true);}.bind(this),this._su1.bind(this, _em7));}return true;};_7d3.prototype._ql=function(_em7,_dt6,_am5,e){this._0d7._aw5(this._i13(_dt6), _am5, e);};_7d3.prototype._qo4=function(_it3,_px7,_zu8,_jx6){var _ma6=this._ag(this._mb8[_zu8]);var _lx6=_px7.length;var _uq3=_lx6<=_ma6;var _ed2=_uq3?_lx6:_ma6;for(var i=0; i<_ed2;++i){var _kj8=_px7[i];this._211(_it3, _kj8, _zu8);}if(this._0d7&&this._0d7._1s7&&!_uq3){var _nk7=_ie9._7u5(_it3, "treeNode");_ie9._e42( _nk7, 'idsLabel="IDS_MI_POPUP_METADATA_SEARCH" classPrefix="clsTreeNode_hyperlink" forceHover="true" forceSelection="true" searchButton="true"' );_nk7.setAttribute("smallSvgIcon", _la7["search"]);_nk7.setAttribute("idxModel", _zu8);_nk7.setAttribute("idxModelItem", _jx6);}};var _u8={"memberProperty":"IDS_CCHL_AC_TYPE_ATTR","measure":"IDS_CCHL_AC_TYPE_FACT","textMeasure":"IDS_CCHL_AC_TYPE_FACT","filter":"IDS_CCHL_AC_TYPE_FILTER","namedSet":"IDS_CCHL_AC_TYPE_NAMEDSET","macro":"IDS_CCHL_AC_TYPE_MACROS","identifier":"IDS_CCHL_AC_TYPE_QUERY_ITEM","fact":"IDS_CCHL_AC_TYPE_FACT","attribute":"IDS_CCHL_AC_TYPE_ATTR"};_7d3.prototype._211=function(_vt3,_x07,_zu8){if(this._gn3&&this._gn3(_x07)){return;}var _nk7=_ie9._7u5(_vt3, "treeNode");_ie9._m95(_nk7, "tooltip", _x07._799||_x07._ho4||_x07._yz8);_nk7.setAttribute("label", _x07._yz8);_nk7.setAttribute("smallSvgIcon", _7d3._dj6(_x07));_nk7.setAttribute("treeNodeChildId", _x07._p87);_zu8=(_zu8!==undefined)?_zu8:parseInt(_vt3.getAttribute("idxModel"));_nk7.setAttribute("idxModel", _zu8);_nk7.setAttribute("idxModelItem", this._c16.length);this._c16.push(_x07);switch(_x07._009){case "model":if(_x07._6p8){_nk7.setAttribute( "expandable", "false" );_nk7.setAttribute("tooltip", _x07._6p8._go4);break;}_ie9._e42(_nk7, 'idsExtraAriaLabel="IDS_CCHL_AC_TYPE_PACKAGE" expandable="true"');if(_zu8==0){_nk7.setAttribute("expanded", "true");}break;case "dimension":var _6o1=(_x07._724=="measure");_nk7.setAttribute("expandable", "true");_nk7.setAttribute( "idsExtraAriaLabel", _6o1?"IDS_CCHL_AC_TYPE_MEASURE_DIM":"IDS_CCHL_AC_TYPE_DIMENSION" );break;case "hierarchy":_nk7.setAttribute("expandable", (this._6d7._wx5&&this._6d7._z81)?"false":"true");_nk7.setAttribute("idsExtraAriaLabel", "IDS_CCHL_AC_TYPE_HIERARCHY");if(!this._6d7._z81){if(this._6d7._wx5){_nk7.setAttribute("rootMembersFolder", "true");}else{this._nu(_nk7);}}break;case "level":_nk7.setAttribute("expandable", (this._6d7._tj2&&this._6d7._wh1)?"false":"true");_nk7.setAttribute("idsExtraAriaLabel", "IDS_CCHL_AC_TYPE_LEVEL");if(!this._6d7._tj2){if(this._6d7._wh1){_nk7.setAttribute("rootMembersFolder", "true");}else{this._nu(_nk7);}}break;case "member":_nk7.setAttribute( "idsExtraAriaLabel", "IDS_CCHL_AC_TYPE_MEMBER" );_nk7.setAttribute("expandable", _x07._v14?"false":"true");if(_x07._7o4&&this._c64){_nk7.setAttribute("label", _x07._jl6._yz8);}break;case "measure":_nk7.setAttribute("idsExtraAriaLabel", _u8[_x07._009]);_nk7.setAttribute("expandable", _x07._hh3?"true":"false"); break;case "hierarchyRootMembers":_ie9._e42( _nk7, 'idsExtraAriaLabel="IDS_HAL_AC_TYPE_FOLDER" expandable="true" rootMembersFolder="true"' );_nk7.setAttribute("expandedSmallSvgIcon", _la7["folder_expanded"]);break;case "folder":if(_x07._wa5){_nk7.setAttribute("expandable", "true");_nk7.setAttribute("idsExtraAriaLabel", "IDS_CCHL_AC_TYPE_NAMESPACE");break;}_ie9._e42( _nk7, 'idsExtraAriaLabel="IDS_HAL_AC_TYPE_FOLDER" expandable="true"' );_nk7.setAttribute("expandedSmallSvgIcon", _la7["folder_expanded"]);break;case "querySubject":_nk7.setAttribute("expandable", "true");_nk7.setAttribute("idsExtraAriaLabel", "IDS_CCHL_AC_TYPE_QUERY_SUBJECT");break;case "identifier":case "attribute":case "memberProperty":_nk7.setAttribute("idsExtraAriaLabel", _u8[_x07._009]);_nk7.setAttribute("expandable", _x07._5o4?"true":"false");break;case "fact":case "textMeasure":case "filter":case "namedSet":case "macro":default:_nk7.setAttribute("idsExtraAriaLabel", _u8[_x07._009]);_nk7.setAttribute("expandable", _x07._5o4?"true":"false");break;}};_7d3.prototype._nu=function(_nk7){var _ia3=_ie9._7u5(_nk7, "treeNode");_ie9._my3(_ia3, _nk7, ["idxModel", "idxModelItem", "treeNodeChildId"]);_ie9._e42( _ia3, 'idsLabel="IDS_LBL_MEMBERS" idsExtraAriaLabel="IDS_HAL_AC_TYPE_FOLDER" expandable="true" rootMembersFolder="true"' );_ia3.setAttribute("smallSvgIcon", _la7["folder"]);_ia3.setAttribute("expandedSmallSvgIcon", _la7["folder_expanded"]);};_7d3.prototype._tt7=function(_nk7){return this._mb8[parseInt(_nk7.getAttribute("idxModel"))];};_7d3.prototype._oc5=function(_nk7){return this._c16[parseInt(_nk7.getAttribute("idxModelItem"))];};_7d3.prototype._dj3=function(_nk7){var _x07=this._oc5(_nk7);return _x07?{_8p8:this._tt7(_nk7),_ll6:_x07}:null;};_7d3.prototype._i13=function(_dt6){var _aa4=[];if(_dt6){for(var i=0; i<_dt6.length;++i){_aa4.push(this._dj3(_dt6[i]));}}return _aa4;};_7d3.prototype._2f3=function(){var _nk7=this._tu4&&this._tu4._2f3();return _nk7?this._dj3(_nk7):null;};_7d3.prototype._br1=function(){return this._tu4&&this._tu4._2f3();};_7d3.prototype._7x2=function(){return this._i13(this._tu4&&this._tu4._7x2());};_7d3.prototype._ag=function(_yw8){var _na6=_fa5._885(_yw8._2d7._zz8).memberDisplayCountLimit;var _td4=_ss7._jr7("MemberDisplayCountLimit");if(_na6&&_td4){return(_na6<_td4)?_na6:_td4;}return _na6||_td4||50;};_7d3.prototype._sf1=function(){var _ok7=this._tu4._af3();var nl=_999._mw5(_ok7, "treeNode");if(nl.length==1){nl=_999._mw5(_ok7, "treeNode/treeNode");}for(var i=0;i<nl.length;i++){this._tu4._3w2(nl.item(i));}};_7d3.prototype._hn=function(){var a=this._tu4._7x2();for(var i=0; i<a.length;++i){this._tu4._3w2(a[i]);}};_7d3.prototype._kd3=function(){this._tu4._kd3();};_7d3._ax2=function(_m79){return _la7[_m79];};_7d3._dj6=function(_x07){switch(_x07._009){case "model":return _la7[_x07._6p8?"model_failure":_x07._009];case "dimension":return _la7[( _x07._724=="measure" )?"dimension_measure":"dimension"];case "member":return _la7[_x07._7o4?"member_root":"member"];case "hierarchyRootMembers":return _la7["folder"];case "folder":return _la7[_x07._wa5?"namespace":"folder"];case "identifier":case "attribute":case "memberProperty":return _cw1[_x07._n87];}return _la7[_x07._009];};return _7d3;});