{ "pandav:/initFilterScript/JObject.js": { "cubeCode": "Cube('pandav:/com/carousel-table/1.8.4/initFilterScript/JObject',[],function(a){return a.exports});", "requires": [], "buildLevel": 0, "outputDir": "/com/carousel-table/1.8.4/initFilterScript", "outputPath": "/com/carousel-table/1.8.4/initFilterScript/JObject.js", "fileName": "/initFilterScript/JObject.js" }, "pandav:/initFilterScript/JArray.js": { "cubeCode": "Cube('pandav:/com/carousel-table/1.8.4/initFilterScript/JArray',[],function(a){return a.exports});", "requires": [], "buildLevel": 0, "outputDir": "/com/carousel-table/1.8.4/initFilterScript", "outputPath": "/com/carousel-table/1.8.4/initFilterScript/JArray.js", "fileName": "/initFilterScript/JArray.js" }, "pandav:/index.js": { "cubeCode": "Cube('pandav:/com/carousel-table/1.8.4',['pandav:/npm/bcore/0.0.18/event','pandav:/npm/jquery/2.1.4','pandav:/npm/lodash/4.6.1','pandav:/com/tween-animation/2.0.0'],function(a,b,c){var d=Math.ceil,e=c('pandav:/npm/bcore/0.0.18/event'),f=c('pandav:/npm/jquery/2.1.4'),g=c('pandav:/npm/lodash/4.6.1'),h=c('pandav:/com/tween-animation/2.0.0'),i=h.Tween,j=h.EaseType;return a.exports=e.extend(function(a,b){this.container=f(a);var c={width:this.container.width(),height:this.container.height(),\"background-color\":'transparent',theme:{},global:{animation:{singleStop:!1},ifRowHidden:!1,textAnimate:{ifRun:!1,animateDur:2},ifUpdateImd:!0,highLight:{show:!1,isOrder:!0,hightLightIndex:3,hightLightStyle:{textStyle:{fontFamily:'Microsoft Yahei',fontSize:12,fontWeight:'normal',color:'#f00'},backgroundColor:'yellowGreen',border:{borderWidth:1,borderStyle:'solid',borderColor:'#f00'}}}},idList:{textStyle:{fontFamily:'Microsoft Yahei',fontSize:10,fontWeight:'normal',color:'#ffffff'}},series:[{columnName:'area',displayName:'\\u5730\\u533A',width:20,dataType:'text',widthPercent:50,margin:{left:0,top:0,bottom:10,right:10},isBr:!1,textStyle:{textAlign:'left',fontSize:12,color:'rgba(255,255,255,0.8)',fontWeight:'normal',fontFamily:'Microsoft Yahei'},backgroundColor:'#ff7900',textAlign:'left'},{columnName:'pv',displayName:'\\u6D41\\u91CF(pv)',width:20,dataType:'text',widthPercent:50,margin:{left:0,top:0,bottom:10,right:10},isBr:!1,textStyle:{textAlign:'left',fontSize:12,color:'rgba(255,255,255,0.8)',fontWeight:'normal',fontFamily:'Microsoft Yahei'},backgroundColor:'#ff7900',textAlign:'left'},{columnName:'attribute',displayName:'\\u7528\\u6237\\u884C\\u4E3A\\u7279\\u5F81',width:53,dataType:'text',widthPercent:50,margin:{left:0,top:0,bottom:10,right:10},isBr:!1,textStyle:{textAlign:'left',fontSize:12,color:'rgba(255,255,255,0.8)',fontWeight:'normal',fontFamily:'Microsoft Yahei'},backgroundColor:'#ff7900',textAlign:'left'}]};this.headerTemp=g.template('
; background-color: <%= backgroundColor %>;height: <%= height %>px;text-overflow: ellipsis;white-space: nowrap;overflow: hidden;vertical-align: middle;color: <%= color %>;\">\\n <% if (hasIndex) {%>
%;height: <%= height %>px;\">
<%}%>\\n <%= column %>\\n
'),this.rowTemp=g.template('
px;text-overflow: ellipsis;overflow: hidden;vertical-align: middle; display: flex;align-items: center;background-color: <%= bgColor %>;\">\\n <% if (hasIndex) {%>\\n
%;color: <%= idListColor %>;font-size: <%= idListFontSize %>px;\">\\n
; font-family: <%= idListFontFamily %>;font-weight: <%= fontWeight %>; width: <%= bgSize %>px;height: <%= bgSize %>px;line-height: <%= bgSize %>px;vertical-align: middle;margin: auto;border-radius: <%= radius %>px;text-align: center;\">\\n
\\n
\\n <%}%>\\n
'),this.cellTemp=g.template('
\" style=\"width: <%= width %>%;display:inline-block;text-align: <%= textAlign %>;<% if (isBr) {%>word-break:break-all;<%}%><% if (!isBr) {%>white-space: nowrap;<%}%>overflow: hidden;vertical-align: middle;background-color: transparent;font-size: <%= fontSize %>px;color: <%= color %>;font-family: <%= fontFamily %>;font-weight: <%= fontWeight %>;\">\\n\\n
\\n ;\">\\n <% if (ifRun && !isBr) {%>\\n ;\">\\n
\\n <%}%>\\n
'),this.headerCellTemp=g.template('
\" style=\"width: <%= width %>%;display:inline-block;text-align: <%= textAlign %>;<% if (isBr) {%>word-break:break-all;<%}%><% if (!isBr) {%>white-space: nowrap;<%}%>overflow: hidden;vertical-align: middle;background-color: transparent;font-size: <%= fontSize %>px;color: <%= color %>;font-family: <%= fontFamily %>;font-weight: <%= fontWeight %>;\">\\n\\n <%= content %>\\n
'),this._data=null,this.THREE=3,this.base64Img='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGMAAABBCAMAAADygeqaAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAJcEhZcwAACxIAAAsSAdLdfvwAAADhUExURUdwTADY3BPL1gDZ3ADZ3ATY3ADZ3ADZ3ADZ3ADZ3NTF2ATY3AHW2wXV2gDZ3ADZ3ADZ3ADZ3DCCq0HG1AbZ3ALZ3ADZ3AfS2ADZ3ADZ3ADZ3Me2yRwpcrehwcSzzkNOld/j6G+SpMSsyS9BiD6yxZqNusGuxMrh5iGUtNbA1xSRslxRnKuvyJyFtDSju2xeoADZ3AQvdQEeYw9BiQQpbj2uwDGHrNvn6UBBkSt6pjgseUfN0ws4gRFymwIjVROYrLObuRpKihdZjDE5hnNypzWBiKyMnqG80UnY2VuCrg53iWrCbhYAAAAwdFJOUwAhD3M6kqmI2wj+Y0MaKUx/bO4Fv1vzMlL65/n8G32X7f1O1efzpu2tzHtUPijJ36w5cUEAAAL/SURBVFjD7ZVpc5swEIYFiBtxBDDER2IncdIjaTHGqe/4Ttr//4O6C7ZDZxrSzrj9pGfGFqxgX+0hQQiHw+FwOBzO3/DhrMzNXfvurt1uN7rdxtXJNKLV7BEY4W80ev6WYywaxkf/dIFcpmlvulyuVqvZQaKxMwzj/oTJYs00zXrAtLnebDbdZ2OxWxjG7WFel0Kf2bEkUMIoMalpRaLABMG2LYlFgufRSLIipkdVIp9SIBcZ5qzH4+Gm2zpMCy4NTRdcy75uWq4kOaFgma7lxMwV3TAOVY/Fihw5VRr+NYpAKP1+fzkcTpvj8Xh9eZwWJFtVVTN0VYfEiuVRxbQ92QURk1JZNR3Z8x2FymFltqxlhhp9ZNrroca1eJwVpdiyWRhGokVEymLJij1LYJ5neWYo2qZNqeRQEVJZ3b+jZZodJNIsa44/n3yPCGfQtv1pLpHNe1l6jX1L1SO4RoYZE9UyEto8tn8AMMH2ZtlHk5fBrN/LwP8cspWHYSdHNJ0QBS9okJRwVfx3guKB4g35LQ3xZjJ5mTz1M5CYTw8F9169SYSe4xiUhBON1nJbVMMHABQT38xWOJlMBk9Psx5orIcP+4bTkqQuyyoOIrxfB5kwlmUZRg0GCqHV4NqEcGo2ITEIxhUlCSaDAYqs5s3hsW8t8AnVgmW6YZKco886JEWCa9xxDvoE//WoniQK0WEtQeWxNUCN2ezHdvP1NVwl2GeAaejFBjU118Ssi7mNgX/VxFJ5uIzK3pJB4xEktuXzNpIlT8ayupANgRAYzgUw1BkpbmgRFbaClgdTfWzdDB5H3zvb7W3JKBXFDXDpiblfOqTII0UKIao8RWgDauydTWKCxG7X6TyU9k2t0KB532IgmBRL0XD75LYkKkrt5HfuexvR/9JZwGfjohyGlqMKxQj96QeaJkcWprGwQWF8RdMUvA3Ed3f7vYG0yttGzyG+vr/Ao74YiP6LTcRn/uRIuQWJi3/8aW+d9gP7ey6Mq38tQVoXhMPhcDgcDuc/8xNsRHRmPkNeHAAAAABJRU5ErkJggg==',this.config=c,this.apis=b.apis,this.isInit=!0,this.startIndex=0,this.RANDOM_TIME=g.random(1e3,1010),this.textTimer={},this.animationTime={},this.observerShow=!1,this.singleIndex=0,this.fullScrollIndex=0,this.timerScroll=null,this.listenerImgCb=this.listenerImgCb.bind(this),this.fullScreenIndex=0,this.DURATION_TIME=400,this.fullScreenTimers=0,this.isVisibilityChange=!0,this.init(g.omit(b,['width','height']))},{init:function(a){this.mergeConfig(a),this.initInteraction(),this.observeStyle(),this.listenerImgError()},listenerImgCb:function(a){var b=a.target,c=b.getAttribute('data-retry-num');('IMG'!==a.nodeName.toUpperCase()||g.isNull(c))&&(c>=this.THREE?b.src=this.base64Img:(b.src=g.get(this.config,'global.defaultImg'),a.setAttribute('data-retry-num',c+=1)))},listenerImgError:function(){this.container[0].addEventListener('error',this.listenerImgCb,!0)},observeStyle:function(){var a=this,b=new MutationObserver(function(b){b.forEach(function(b){var c=g.get(b.target,'style.display');'attributes'===b.type&&c&&('block'===c?(a.observerShow=!0,a.render(null,a.config)):a.observerShow=!1)})});b.observe(this.container.parent()[0],{attributes:!0,attributeFilter:['style']});var c=this.container.parents('.slider');c&&0'),this.rowContainer=this.container.find('.rows-container');var h=c.global.rowCount,i={rowCount:h,height:(c.height-d.height)/h,hasIndex:e.show,idListWidth:e.width,idListRadius:e.radius,idListBgColor:e.backgroundColor,idListColor:e.textStyle.color,idListFontSize:e.textStyle.fontSize,idListFontFamily:e.textStyle.fontFamily||c.global.fontFamily,bgColor:c.row.backgroundColor1,fontWeight:e.textStyle.fontWeight};i.bgSize=a(b(this.container.width()*e.width/100),i.height)*i.idListRadius/100-4,i.radius=i.bgSize/2,this.setRowNodeStr(i),h='bottom'===this.config.global.animation.mode?h+1:2*h,this.appendRow(h,f,c.defaultCell)},updateData:function(a){a&&(this.dataPool=a)},getAnimationData:function(a,b){this.singleIndex=b;var c=this.config.global.animation.mode,d=0,e=g.get(this.config,'global.highLight'),f=this.isOrder,h=e.hightLightIndex;if('bottom'===c){d=f?b+1:h;var j=g.filter(this._data,function(a,b){return b+1===d});this.emit('highLight',{index:d,data:j})}var k=this.getData(a,b,'bottom'===this.config.global.animation.mode?1:this.config.global.rowCount);return{data:k,index:k[0].index}},getData:function(a,b,c){var d=this.config,e=g.max([a.length,c]),f=[];b>a.length-1&&('bottom'===d.global.animation.mode&&0a.length-1&&('bottom'===d.global.animation.mode?a.length=e-1&&(i-=e-1):i-=a.length:(i-(a.length-1)+a.length%(c/2)>c/2||0==a.length%(c/2))&&(i%=c/2));var l=a[i];if(l&&void 0!==l){var m=g.cloneDeep(l);m.index=i+1,f.push(m)}else f.push({index:i+1})}return f},setStartIndex:function(a,b,c){b+=c,b>g.max([a.length,this.config.global.rowCount])-1&&(b=0),this.startIndex=b},calTransform:function(a,b,c){var d=b.find('.marquee-text-span'),e=this.config.series[c].isBr;return'left'===a?0:'center'===a?e?0:b.width()/2-d.width()/2:'right'===a?e?0:b.width()-d.width()-1:0},fillCell:function(a){var b=this,c=this.config,d=this.columnNameList||[],e=c.row.backgroundColor1,h=c.row.backgroundColor2,j=c.series,k=c.global.animation.mode,l=g.get(c,'global.highLight'),m=l.show,n=l.isOrder,o=l.hightLightIndex;c.global.isLoop&&this.cancelHighLightStyleAll();for(var p=this,q=function i(){var l=a[r],q=b.$rowContent[r];if(l){var s=l.index,t=f(q),u=t.find('.cell-content');if(t.data({index:s-1,data:l}),1===Object.keys(l).length&&c.global.ifRowHidden?t.css('opacity',0):t.css('opacity',1),u.each(function(a){var b=f(this),c=d[a],e=j[a].dataType,h='';'img'===e&&l[c]?(style='width: '+j[a].widthPercent+'px; margin-left: '+g.get(j[a],'margin.left')+'px; margin-top: '+g.get(j[a],'margin.top')+'px; font-size: 0;',h='',b.css('font-size',0)):h=l[c]||0==+l[c]?l[c]:'-';var i=j[a].text,k=j[a].number,m=j[a].suffix;if(i&&0f(e).width()&&(g.find('.whiteSpace').css('width',0),c.textRun(a+1+'-'+d,g,d))})};if(this.$rowContent&&this.$rowContent.length)for(var e=0;eb.global.rowCount)&&(this.mouseTimer=setTimeout(this.loop.bind(this),'top'===this.config.global.animation.mode?b.global.rowCount*b.global.animation.duraction*this.RANDOM_TIME:b.global.duraction*this.RANDOM_TIME)),b.global.textAnimate.ifRun&&this.textLoop()},resize:function c(a,b){this.render(null,{width:a,height:b})},data:function b(a){return a&&((this.config.global.ifUpdateImd||this.config.global.animation.singleStop&&a.length<=this.config.global.rowContent)&&(this.isInit=!0,this.startIndex=0,this.initRank()),this._data=a),this._data},mergeConfig:function b(a){if(!a)return this.config;var c=this.config,d=g.cloneDeep(a),b=g.defaultsDeep(a||{},c);return b.series=d.series||c.series,g.isEqual(c,b)||(this.config=b,this.isInit=!0,this.startIndex=0,this.initRank()),this.config},destroy:function a(){this.removeTimer(),this.container.find('.row-content').off(),this.container.empty(),this._data=null,this.off&&this.off(),this.container[0].removeEventListener('error',this.listenerImgCb,!0)},clearAnimate:function a(){this.removeTimer()},startAnimate:function a(){this.isInit=!0,this.restartLoop(),this.isInit=!1}}),a.exports});", "requires": [], "buildLevel": 1, "outputDir": "/com/carousel-table/1.8.4", "outputPath": "/com/carousel-table/1.8.4/index.js", "fileName": "/index.js" } }