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.
- define([ "_s4j", "_zc8" ],function(_s4j,_zc8){"use strict";function _upc(_sin, _vf9, _i07, _wqf, _1z4){this._cze={ "highlighted": false,"selected": false};this._jhn=_sin;this._w09=_vf9;this._wo6=_i07;this._s0f=_wqf;this._ct4=_1z4;this._3x8=_1z4!==undefined;this._nmg={};this._729={};}_upc.prototype.getDataSet=function(){return this._s0f;};_upc.prototype.getDecoration=function(_vdn){return !!this._cze[ _vdn ];};_upc.prototype.hasDecoration=function(_vdn){return this._cze[ _vdn ]!==undefined; };_upc.prototype.getTupleIndex=function(_guj){if(this._729[ _guj ]){return this._729[ _guj ];}if(this._w09.nested[_guj]){var _4al=this._w09.nested[ _guj ];var _xga=_4al.columnIdxs.map(function(_adf){ return this._jhn[ _adf ]; }.bind(this));this._729[ _guj ]=_4al.tupleLookup[_xga.join("-")];return this._729[ _guj ];}var _f1h=this._jhn[ this._w09.direct[ _guj ] ]; if(this._w09.sort[_guj]){this._729[ _guj ]=this._w09.sort[_guj][ _f1h ];return this._729[ _guj ];}this._729[ _guj ]=_f1h;return this._729[ _guj ];};_upc.prototype.getValue=function(_guj){if(this._nmg[ _guj ]){return this._nmg[ _guj ];}var _3vm;var _b5k=this._s0f.getDataItem(_guj);if(this._3x8&&this._w09.measureGroup.dataItemIdx===_guj){_3vm=this._jhn[this._ct4];this._nmg[ _guj ]=new _s4j(_3vm, this._wo6._132(this._ct4), _b5k);return this._nmg[ _guj ];}var _2hi=this._w09.direct[ _guj ];_3vm=this._jhn[ _2hi ];var _278=this._w09.continuousValues[ _guj ];if(_278){_3vm=_278[ _3vm ];var _3g9=this._w09.continuousFormattedValues[ _guj ];this._nmg[ _guj ]=new _zc8(_3vm, _3g9?_3g9[ _3vm ]:"".concat(_3vm));return this._nmg[ _guj ];}this._nmg[ _guj ]=new _s4j(_3vm, this._wo6._132(_2hi), _b5k, this._yn3(), _2hi);return this._nmg[ _guj ];};_upc.prototype._ohk=function(_3fh,_0om){if(_3fh=="selected"){this._s0f._jg4(_0om?1:-1);}this._cze[ _3fh ]=_0om;};_upc.prototype._yn3=function(){return this._s0f._cik();};_upc.prototype._e8b=function(){if(this._o0f){return this._o0f;}var _pqf=this._o0f={};var _7hi=this._s0f.getDataItemCount();for(var i=0;i<_7hi;i++){var _b5k=this._s0f.getDataItem(i);switch(_b5k.getType()){case "cont":_pqf[_b5k.getItemClass().getCaption()]={"value": this.getValue(i).getCaption(),"type": "value"};break;case "cat":var _gyb=[];var _ozb=[];var _s88=_b5k.getItemClassSet(0);var _5zg=_s88.getItemClassCount();var _1vm=_b5k.getTuple(this.getTupleIndex(i));for(var j=0;j<_5zg;j++){_gyb.push(_s88.getItemClass(j).getCaption());_ozb.push(_1vm.getItem(j).getCaption());}_pqf[_gyb.join(" | ")] = {"value": _ozb.join(" | "),"type": "attribute"};break;default:_vzm._6dm("Unsupported data item type");break;}}return _pqf;};_upc.prototype._wdm=function(){return this._jhn;};_upc.prototype._te1=function(){return this._s0f._fn3()>1;};_upc.prototype._tp9=function(_7zl){if(this._s0f._fn3()==0){return null;}var _6df=this._s0f._6h2(_7zl);var _15k=this._s0f.getDataItem(_6df).getItemClassSet();return _15k.getItemClass(_15k.getItemClassCount()-1).getName(); };return _upc;});
|