//>>built require({cache:{"url:dojox/calendar/templates/MatrixView.html":"
\n\t
\n\t\t
\t\t\n\t
\t\n\t
\n\t\t
\n\t
\t\t\n\t
\n\t\t
\n\t
\t\n\t
\n\t\t
\n\t
\t\n\t
\n\t\t
\n\t
\t\n
\n"}}); define("dojox/calendar/MatrixView",["dojo/_base/declare","dojo/_base/array","dojo/_base/event","dojo/_base/lang","dojo/_base/sniff","dojo/_base/fx","dojo/_base/html","dojo/on","dojo/dom","dojo/dom-class","dojo/dom-style","dojo/dom-geometry","dojo/dom-construct","dojo/query","dojox/html/metrics","dojo/i18n","./ViewBase","dojo/text!./templates/MatrixView.html","dijit/_TemplatedMixin"],function(_1,_2,_3,_4,_5,fx,_6,on,_7,_8,_9,_a,_b,_c,_d,_e,_f,_10,_11){ return _1("dojox.calendar.MatrixView",[_f,_11],{templateString:_10,baseClass:"dojoxCalendarMatrixView",_setTabIndexAttr:"domNode",viewKind:"matrix",renderData:null,startDate:null,refStartTime:null,refEndTime:null,columnCount:7,rowCount:5,horizontalRenderer:null,labelRenderer:null,expandRenderer:null,percentOverlap:0,verticalGap:2,horizontalRendererHeight:17,labelRendererHeight:14,expandRendererHeight:15,cellPaddingTop:16,expandDuration:300,expandEasing:null,layoutDuringResize:false,roundToDay:true,showCellLabel:true,scrollable:false,resizeCursor:"e-resize",constructor:function(){ this.invalidatingProperties=["columnCount","rowCount","startDate","horizontalRenderer","labelRenderer","expandRenderer","rowHeaderDatePattern","columnHeaderLabelLength","cellHeaderShortPattern","cellHeaderLongPattern","percentOverlap","verticalGap","horizontalRendererHeight","labelRendererHeight","expandRendererHeight","cellPaddingTop","roundToDay","itemToRendererKindFunc","layoutPriorityFunction","formatItemTimeFunc","textDir","items"]; this._ddRendererList=[]; this._ddRendererPool=[]; this._rowHeaderHandles=[]; this._viewHandles.push(on(window,"resize",_4.hitch(this,this._resizeHandler))); },destroy:function(_12){ this._cleanupRowHeader(); this.inherited(arguments); },postCreate:function(){ this.inherited(arguments); this._initialized=true; if(!this.invalidRendering){ this.refreshRendering(); } },_createRenderData:function(){ var rd={}; rd.dateLocaleModule=this.dateLocaleModule; rd.dateClassObj=this.dateClassObj; rd.dateModule=this.dateModule; rd.dates=[]; rd.columnCount=this.get("columnCount"); rd.rowCount=this.get("rowCount"); rd.sheetHeight=this.itemContainer.offsetHeight; this._computeRowsHeight(rd); var d=this.get("startDate"); if(d==null){ d=new rd.dateClassObj(); } d=this.floorToDay(d,false,rd); this.startDate=d; for(var row=0;row100){ this.percentOverlap=0; } if(isNaN(this.verticalGap)||this.verticalGap<0){ this.verticalGap=2; } if(isNaN(this.horizontalRendererHeight)||this.horizontalRendererHeight<1){ this.horizontalRendererHeight=17; } if(isNaN(this.labelRendererHeight)||this.labelRendererHeight<1){ this.labelRendererHeight=14; } if(isNaN(this.expandRendererHeight)||this.expandRendererHeight<1){ this.expandRendererHeight=15; } },_setStartDateAttr:function(_13){ this.displayedItemsInvalidated=true; this._set("startDate",_13); },_setColumnCountAttr:function(_14){ this.displayedItemsInvalidated=true; this._set("columnCount",_14); },_setRowCountAttr:function(_15){ this.displayedItemsInvalidated=true; this._set("rowCount",_15); },__fixEvt:function(e){ e.sheet="primary"; e.source=this; return e; },_formatRowHeaderLabel:function(d){ if(this.rowHeaderDatePattern){ return this.renderData.dateLocaleModule.format(d,{selector:"date",datePattern:this.rowHeaderDatePattern}); }else{ return this.getWeekNumberLabel(d); } },_formatColumnHeaderLabel:function(d){ return this.renderData.dateLocaleModule.getNames("days",this.columnHeaderLabelLength?this.columnHeaderLabelLength:"wide","standAlone")[d.getDay()]; },_formatGridCellLabel:function(d,row,col){ var _16=row==0&&col==0||d.getDate()==1; var _17,rb; if(_16){ if(this.cellHeaderLongPattern){ _17=this.cellHeaderLongPattern; }else{ rb=_e.getLocalization("dojo.cldr",this._calendar); _17=rb["dateFormatItem-MMMd"]; } }else{ if(this.cellHeaderShortPattern){ _17=this.cellHeaderShortPattern; }else{ rb=_e.getLocalization("dojo.cldr",this._calendar); _17=rb["dateFormatItem-d"]; } } return this.renderData.dateLocaleModule.format(d,{selector:"date",datePattern:_17}); },refreshRendering:function(){ this.inherited(arguments); if(!this.domNode){ return; } this._validateProperties(); var _18=this.renderData; this.renderData=this._createRenderData(); this._createRendering(this.renderData,_18); this._layoutRenderers(this.renderData); },_createRendering:function(_19,_1a){ if(_19.rowHeight<=0){ _19.columnCount=0; _19.rowCount=0; return; } this._buildColumnHeader(_19,_1a); this._buildRowHeader(_19,_1a); this._buildGrid(_19,_1a); this._buildItemContainer(_19,_1a); if(this.buttonContainer&&this.owner!=null&&this.owner.currentView==this){ _9.set(this.buttonContainer,{"right":0,"left":0}); } },_buildColumnHeader:function(_1b,_1c){ var _1d=this.columnHeaderTable; if(!_1d){ return; } var _1e=_1b.columnCount-(_1c?_1c.columnCount:0); if(_5("ie")==8){ if(this._colTableSave==null){ this._colTableSave=_4.clone(_1d); }else{ if(_1e<0){ this.columnHeader.removeChild(_1d); _b.destroy(_1d); _1d=_4.clone(this._colTableSave); this.columnHeaderTable=_1d; this.columnHeader.appendChild(_1d); _1e=_1b.columnCount; } } } var _1f=_c("tbody",_1d); var trs=_c("tr",_1d); var _20,tr,td; if(_1f.length==1){ _20=_1f[0]; }else{ _20=_6.create("tbody",null,_1d); } if(trs.length==1){ tr=trs[0]; }else{ tr=_b.create("tr",null,_20); } if(_1e>0){ for(var i=0;i<_1e;i++){ td=_b.create("td",null,tr); } }else{ _1e=-_1e; for(var i=0;i<_1e;i++){ tr.removeChild(tr.lastChild); } } _c("td",_1d).forEach(function(td,i){ td.className=""; var d=_1b.dates[0][i]; this._setText(td,this._formatColumnHeaderLabel(d)); if(i==0){ _8.add(td,"first-child"); }else{ if(i==this.renderData.columnCount-1){ _8.add(td,"last-child"); } } this.styleColumnHeaderCell(td,d,_1b); },this); if(this.yearColumnHeaderContent){ var d=_1b.dates[0][0]; this._setText(this.yearColumnHeaderContent,_1b.dateLocaleModule.format(d,{selector:"date",datePattern:"yyyy"})); } },styleColumnHeaderCell:function(_21,_22,_23){ if(this.isWeekEnd(_22)){ return _8.add(_21,"dojoxCalendarWeekend"); } },_rowHeaderHandles:null,_cleanupRowHeader:function(){ while(this._rowHeaderHandles.length>0){ var _24=this._rowHeaderHandles.pop(); while(_24.length>0){ _24.pop().remove(); } } },_rowHeaderClick:function(e){ var _25=_c("td",this.rowHeaderTable).indexOf(e.currentTarget); this._onRowHeaderClick({index:_25,date:this.renderData.dates[_25][0],triggerEvent:e}); },_buildRowHeader:function(_26,_27){ var _28=this.rowHeaderTable; if(!_28){ return; } var _29=_c("tbody",_28); var _2a,tr,td; if(_29.length==1){ _2a=_29[0]; }else{ _2a=_b.create("tbody",null,_28); } var _2b=_26.rowCount-(_27?_27.rowCount:0); if(_2b>0){ for(var i=0;i<_2b;i++){ tr=_b.create("tr",null,_2a); td=_b.create("td",null,tr); var h=[]; h.push(on(td,"click",_4.hitch(this,this._rowHeaderClick))); if(!_5("touch")){ h.push(on(td,"mousedown",function(e){ _8.add(e.currentTarget,"Active"); })); h.push(on(td,"mouseup",function(e){ _8.remove(e.currentTarget,"Active"); })); h.push(on(td,"mouseover",function(e){ _8.add(e.currentTarget,"Hover"); })); h.push(on(td,"mouseout",function(e){ _8.remove(e.currentTarget,"Hover"); })); } this._rowHeaderHandles.push(h); } }else{ _2b=-_2b; for(var i=0;i<_2b;i++){ _2a.removeChild(_2a.lastChild); var _2c=this._rowHeaderHandles.pop(); while(_2c.length>0){ _2c.pop().remove(); } } } _c("tr",_28).forEach(function(tr,i){ _9.set(tr,"height",this._getRowHeight(i)+"px"); var d=_26.dates[i][0]; var td=_c("td",tr)[0]; td.className=""; if(i==0){ _8.add(td,"first-child"); } if(i==this.renderData.rowCount-1){ _8.add(td,"last-child"); } this.styleRowHeaderCell(td,d,_26); this._setText(td,this._formatRowHeaderLabel(d)); },this); },styleRowHeaderCell:function(_2d,_2e,_2f){ },_buildGrid:function(_30,_31){ var _32=this.gridTable; if(!_32){ return; } var _33=_30.rowCount-(_31?_31.rowCount:0); var _34=_33>0; var _35=_30.columnCount-(_31?_31.columnCount:0); if(_5("ie")==8){ if(this._gridTableSave==null){ this._gridTableSave=_4.clone(_32); }else{ if(_35<0){ this.grid.removeChild(_32); _b.destroy(_32); _32=_4.clone(this._gridTableSave); this.gridTable=_32; this.grid.appendChild(_32); _35=_30.columnCount; _33=_30.rowCount; _34=true; } } } var _36=_c("tbody",_32); var _37; if(_36.length==1){ _37=_36[0]; }else{ _37=_b.create("tbody",null,_32); } if(_34){ for(var i=0;i<_33;i++){ _b.create("tr",null,_37); } }else{ _33=-_33; for(var i=0;i<_33;i++){ _37.removeChild(_37.lastChild); } } var _38=_30.rowCount-_33; var _39=_34||_35>0; _35=_39?_35:-_35; _c("tr",_32).forEach(function(tr,i){ if(_39){ var len=i>=_38?_30.columnCount:_35; for(var i=0;i=0||cal.compare(cal.add(_3c,"day",1),this.refStartTime)<=0)){ _8.add(_3b,"dojoxCalendarDayDisabled"); }else{ if(this.isWeekEnd(_3c)){ _8.add(_3b,"dojoxCalendarWeekend"); } } } },_buildItemContainer:function(_3e,_3f){ var _40=this.itemContainerTable; if(!_40){ return; } var _41=[]; var _42=_3e.rowCount-(_3f?_3f.rowCount:0); if(_5("ie")==8){ if(this._itemTableSave==null){ this._itemTableSave=_4.clone(_40); }else{ if(_42<0){ this.itemContainer.removeChild(_40); this._recycleItemRenderers(true); this._recycleExpandRenderers(true); _b.destroy(_40); _40=_4.clone(this._itemTableSave); this.itemContainerTable=_40; this.itemContainer.appendChild(_40); _42=_3e.columnCount; } } } var _43=_c("tbody",_40); var _44,tr,td,div; if(_43.length==1){ _44=_43[0]; }else{ _44=_b.create("tbody",null,_40); } if(_42>0){ for(var i=0;i<_42;i++){ tr=_b.create("tr",null,_44); _8.add(tr,"dojoxCalendarItemContainerRow"); td=_b.create("td",null,tr); div=_b.create("div",null,td); _8.add(div,"dojoxCalendarContainerRow"); } }else{ _42=-_42; for(var i=0;i<_42;i++){ _44.removeChild(_44.lastChild); } } _c(".dojoxCalendarItemContainerRow",_40).forEach(function(tr,i){ _9.set(tr,"height",this._getRowHeight(i)+"px"); _41.push(tr.childNodes[0].childNodes[0]); },this); _3e.cells=_41; },_resizeHandler:function(e,_45){ var rd=this.renderData; if(rd==null){ this.refreshRendering(); return; } if(rd.sheetHeight!=this.itemContainer.offsetHeight){ rd.sheetHeight=this.itemContainer.offsetHeight; var _46=this.getExpandedRowIndex(); if(_46==-1){ this._computeRowsHeight(); this._resizeRows(); }else{ this.expandRow(rd.expandedRow,rd.expandedRowCol,0,null,true); } } if(this.layoutDuringResize||_45){ setTimeout(_4.hitch(this,function(){ this._layoutRenderers(this.renderData); }),20); }else{ _9.set(this.itemContainer,"opacity",0); this._recycleItemRenderers(); this._recycleExpandRenderers(); if(this._resizeTimer!=undefined){ clearTimeout(this._resizeTimer); } this._resizeTimer=setTimeout(_4.hitch(this,function(){ delete this._resizeTimer; this._resizeRowsImpl(this.itemContainer,"tr"); this._layoutRenderers(this.renderData); if(this.resizeAnimationDuration==0){ _9.set(this.itemContainer,"opacity",1); }else{ fx.fadeIn({node:this.itemContainer,curve:[0,1]}).play(this.resizeAnimationDuration); } }),200); } },resizeAnimationDuration:0,getExpandedRowIndex:function(){ return this.renderData.expandedRow==null?-1:this.renderData.expandedRow; },collapseRow:function(_47,_48,_49){ var rd=this.renderData; if(_49==undefined){ _49=true; } if(_47==undefined){ _47=this.expandDuration; } if(rd&&rd.expandedRow!=null&&rd.expandedRow!=-1){ if(_49&&_47){ var _4a=rd.expandedRow; var _4b=rd.expandedRowHeight; delete rd.expandedRow; this._computeRowsHeight(rd); var _4c=this._getRowHeight(_4a); rd.expandedRow=_4a; this._recycleExpandRenderers(); this._recycleItemRenderers(); _9.set(this.itemContainer,"display","none"); this._expandAnimation=new fx.Animation({curve:[_4b,_4c],duration:_47,easing:_48,onAnimate:_4.hitch(this,function(_4d){ this._expandRowImpl(Math.floor(_4d)); }),onEnd:_4.hitch(this,function(_4e){ this._expandAnimation=null; this._collapseRowImpl(false); this._resizeRows(); _9.set(this.itemContainer,"display","block"); setTimeout(_4.hitch(this,function(){ this._layoutRenderers(rd); }),100); this.onExpandAnimationEnd(false); })}); this._expandAnimation.play(); }else{ this._collapseRowImpl(_49); } } },_collapseRowImpl:function(_4f){ var rd=this.renderData; delete rd.expandedRow; delete rd.expandedRowHeight; this._computeRowsHeight(rd); if(_4f==undefined||_4f){ this._resizeRows(); this._layoutRenderers(rd); } },expandRow:function(_50,_51,_52,_53,_54){ var rd=this.renderData; if(!rd||_50<0||_50>=rd.rowCount){ return -1; } if(_51==undefined||_51<0||_51>=rd.columnCount){ _51=-1; } if(_54==undefined){ _54=true; } if(_52==undefined){ _52=this.expandDuration; } if(_53==undefined){ _53=this.expandEasing; } var _55=this._getRowHeight(_50); var _56=rd.sheetHeight-Math.ceil(this.cellPaddingTop*(rd.rowCount-1)); rd.expandedRow=_50; rd.expandedRowCol=_51; rd.expandedRowHeight=_56; if(_54){ if(_52){ this._recycleExpandRenderers(); this._recycleItemRenderers(); _9.set(this.itemContainer,"display","none"); this._expandAnimation=new fx.Animation({curve:[_55,_56],duration:_52,delay:50,easing:_53,onAnimate:_4.hitch(this,function(_57){ this._expandRowImpl(Math.floor(_57)); }),onEnd:_4.hitch(this,function(){ this._expandAnimation=null; _9.set(this.itemContainer,"display","block"); setTimeout(_4.hitch(this,function(){ this._expandRowImpl(_56,true); }),100); this.onExpandAnimationEnd(true); })}); this._expandAnimation.play(); }else{ this._expandRowImpl(_56); } } },_expandRowImpl:function(_58,_59){ var rd=this.renderData; rd.expandedRowHeight=_58; this._computeRowsHeight(rd,rd.sheetHeight-_58); this._resizeRows(); if(_59){ this._layoutRenderers(rd); } },onExpandAnimationEnd:function(_5a){ },_resizeRows:function(){ if(this._getRowHeight(0)<=0){ return; } if(this.rowHeaderTable){ this._resizeRowsImpl(this.rowHeaderTable,"tr"); } if(this.gridTable){ this._resizeRowsImpl(this.gridTable,"tr"); } if(this.itemContainerTable){ this._resizeRowsImpl(this.itemContainerTable,"tr"); } },_computeRowsHeight:function(_5b,max){ var rd=_5b==null?this.renderData:_5b; max=max||rd.sheetHeight; max--; if(_5("ie")==7){ max-=rd.rowCount; } if(rd.rowCount==1){ rd.rowHeight=max; rd.rowHeightFirst=max; rd.rowHeightLast=max; return; } var _5c=rd.expandedRow==null?rd.rowCount:rd.rowCount-1; var rhx=max/_5c; var rhf,rhl,rh; var _5d=max-(Math.floor(rhx)*_5c); var _5e=Math.abs(max-(Math.ceil(rhx)*_5c)); var _5f; var _60=1; if(_5d<_5e){ rh=Math.floor(rhx); _5f=_5d; }else{ _60=-1; rh=Math.ceil(rhx); _5f=_5e; } rhf=rh+_60*Math.floor(_5f/2); rhl=rhf+_60*(_5f%2); rd.rowHeight=rh; rd.rowHeightFirst=rhf; rd.rowHeightLast=rhl; },_getRowHeight:function(_61){ var rd=this.renderData; if(_61==rd.expandedRow){ return rd.expandedRowHeight; }else{ if(rd.expandedRow==0&&_61==1||_61==0){ return rd.rowHeightFirst; }else{ if(rd.expandedRow==this.renderData.rowCount-1&&_61==this.renderData.rowCount-2||_61==this.renderData.rowCount-1){ return rd.rowHeightLast; }else{ return rd.rowHeight; } } } },_resizeRowsImpl:function(_62,_63){ var rd=this.renderData; dojo.query(_63,_62).forEach(function(tr,i){ _9.set(tr,"height",this._getRowHeight(i)+"px"); },this); },_setHorizontalRendererAttr:function(_64){ this._destroyRenderersByKind("horizontal"); this._set("horizontalRenderer",_64); },_setLabelRendererAttr:function(_65){ this._destroyRenderersByKind("label"); this._set("labelRenderer",_65); },_destroyExpandRenderer:function(_66){ _2.forEach(_66.__handles,function(_67){ _67.remove(); }); if(_66["destroy"]){ _66.destroy(); } _6.destroy(_66.domNode); },_setExpandRendererAttr:function(_68){ while(this._ddRendererList.length>0){ this._destroyExpandRenderer(this._ddRendererList.pop()); } var _69=this._ddRendererPool; if(_69){ while(_69.length>0){ this._destroyExpandRenderer(_69.pop()); } } this._set("expandRenderer",_68); },_ddRendererList:null,_ddRendererPool:null,_getExpandRenderer:function(_6a,_6b,_6c,_6d,_6e){ if(this.expandRenderer==null){ return null; } var ir=this._ddRendererPool.pop(); if(ir==null){ ir=new this.expandRenderer(); } this._ddRendererList.push(ir); ir.set("owner",this); ir.set("date",_6a); ir.set("items",_6b); ir.set("rowIndex",_6c); ir.set("columnIndex",_6d); ir.set("expanded",_6e); return ir; },_recycleExpandRenderers:function(_6f){ for(var i=0;i=1440?"horizontal":"label"; },naturalRowsHeight:null,_roundItemToDay:function(_71){ var s=_71.startTime,e=_71.endTime; if(!this.isStartOfDay(s)){ s=this.floorToDay(s,false,this.renderData); } if(!this.isStartOfDay(e)){ e=this.renderData.dateModule.add(e,"day",1); e=this.floorToDay(e,true); } return {startTime:s,endTime:e}; },_sortItemsFunction:function(a,b){ if(this.roundToDay){ a=this._roundItemToDay(a); b=this._roundItemToDay(b); } var res=this.dateModule.compare(a.startTime,b.startTime); if(res==0){ res=-1*this.dateModule.compare(a.endTime,b.endTime); } return res; },_overlapLayoutPass3:function(_72){ var pos=0,_73=0; var res=[]; var _74=_a.position(this.gridTable).x; for(var col=0;col=0&&!_75;_77--){ for(var i=0;i<_72[_77].length;i++){ var _78=_72[_77][i]; _75=_78.start<_73&&pos<_78.end; if(_75){ res[col]=_77+1; break; } } } if(!_75){ res[col]=0; } } return res; },applyRendererZIndex:function(_79,_7a,_7b,_7c,_7d,_7e){ _9.set(_7a.container,{"zIndex":_7d||_7c?_7a.renderer.mobile?100:0:_79.lane==undefined?1:_79.lane+1}); },_layoutRenderers:function(_7f){ if(_7f==null||_7f.items==null||_7f.rowHeight<=0){ return; } if(!this.gridTable||this._expandAnimation!=null||(this.horizontalRenderer==null&&this.labelRenderer==null)){ this._recycleItemRenderers(); return; } this.renderData.gridTablePosX=_a.position(this.gridTable).x; this._layoutStep=_7f.columnCount; this._recycleExpandRenderers(); this._hiddenItems=[]; this._offsets=[]; this.naturalRowsHeight=[]; this.inherited(arguments); },_offsets:null,_layoutInterval:function(_80,_81,_82,end,_83){ if(this.renderData.cells==null){ return; } var _84=[]; var _85=[]; for(var i=0;i<_83.length;i++){ var _86=_83[i]; var _87=this._itemToRendererKind(_86); if(_87=="horizontal"){ _84.push(_86); }else{ if(_87=="label"){ _85.push(_86); } } } var _88=this.getExpandedRowIndex(); if(_88!=-1&&_88!=_81){ return; } var _89; var _8a=[]; var _8b; var _8c=[]; if(_84.length>0&&this.horizontalRenderer){ var _8b=this._createHorizontalLayoutItems(_81,_82,end,_84); var _8d=this._computeHorizontalOverlapLayout(_8b,_8c); } var _8e; var _8f=[]; if(_85.length>0&&this.labelRenderer){ _8e=this._createLabelLayoutItems(_81,_82,end,_85); this._computeLabelOffsets(_8e,_8f); } var _90=this._computeColHasHiddenItems(_81,_8c,_8f); if(_8b!=null){ this._layoutHorizontalItemsImpl(_81,_8b,_8d,_90,_8a); } if(_8e!=null){ this._layoutLabelItemsImpl(_81,_8e,_90,_8a,_8c); } this._layoutExpandRenderers(_81,_90,_8a); this._hiddenItems[_81]=_8a; },_createHorizontalLayoutItems:function(_91,_92,_93,_94){ if(this.horizontalRenderer==null){ return; } var rd=this.renderData; var cal=rd.dateModule; var _95=rd.cells[_91]; var _96=this.horizontalRendererHeight; var _97=this.percentOverlap/100; var _98=_a.getMarginBox(this.itemContainer).w; var _99=rd.rtl?-1:1; var _9a=[]; for(var i=0;i<_94.length;i++){ var _9b=_94[i]; var _9c=this.computeRangeOverlap(rd,_9b.startTime,_9b.endTime,_92,_93); var _9d=cal.difference(_92,this.floorToDay(_9c[0],false,rd),"day"); var _9e=rd.dates[_91][_9d]; var _9f=_a.position(this._getCellAt(_91,_9d,false)); var _a0=_9f.x-rd.gridTablePosX; if(rd.rtl){ _a0+=_9f.w; } if(!this.roundToDay&&!_9b.allDay){ _a0+=_99*this.computeProjectionOnDate(rd,_9e,_9c[0],_9f.w); } _a0=Math.ceil(_a0); var _a1=cal.difference(_92,this.floorToDay(_9c[1],false,rd),"day"); var end; if(_a1>rd.columnCount-1){ _9f=_a.position(this._getCellAt(_91,rd.columnCount-1,false)); if(rd.rtl){ end=_9f.x-rd.gridTablePosX; }else{ end=_9f.x-rd.gridTablePosX+_9f.w; } }else{ _9e=rd.dates[_91][_a1]; _9f=_a.position(this._getCellAt(_91,_a1,false)); end=_9f.x-rd.gridTablePosX; if(rd.rtl){ end+=_9f.w; } if(this.roundToDay){ if(!this.isStartOfDay(_9c[1])){ end+=_99*_9f.w; } }else{ end+=_99*this.computeProjectionOnDate(rd,_9e,_9c[1],_9f.w); } } end=Math.floor(end); if(rd.rtl){ var t=end; end=_a0; _a0=t; } if(end>_a0){ var _a2=_4.mixin({start:_a0,end:end,range:_9c,item:_9b,startOffset:_9d,endOffset:_a1},_9b); _9a.push(_a2); } } return _9a; },_computeHorizontalOverlapLayout:function(_a3,_a4){ var rd=this.renderData; var _a5=this.horizontalRendererHeight; var _a6=this.computeOverlapping(_a3,this._overlapLayoutPass3); var _a7=this.percentOverlap/100; for(i=0;i=this.columnCount){ break; } if(_b3>=0){ var _b4=_ae[_b3]; if(_b4==null){ _b4=[]; _ae[_b3]=_b4; } _b4.push(_4.mixin({startOffset:_b3,range:_b2,item:_af},_af)); } d=cal.add(d,"day",1); this.floorToDay(d,true); } } return _ae; },_computeLabelOffsets:function(_b5,_b6){ for(var i=0;i_bb){ _bb=h; } res[i]=h>_ba; } this.naturalRowsHeight[_b7]=_bb; return res; },_layoutHorizontalItemsImpl:function(_bc,_bd,_be,_bf,_c0){ var rd=this.renderData; var cal=rd.dateModule; var _c1=rd.cells[_bc]; var _c2=this._getRowHeight(_bc); var _c3=this.horizontalRendererHeight; var _c4=this.percentOverlap/100; for(var i=0;i<_bd.length;i++){ var _c5=_bd[i]; var _c6=_c5.lane; var _c7=this.cellPaddingTop; if(_c4==0){ _c7+=_c6*(_c3+this.verticalGap); }else{ _c7+=_c6*(_c3-_c4*_c3); } var exp=false; var _c8=_c2; if(this.expandRenderer){ for(var off=_c5.startOffset;off<=_c5.endOffset;off++){ if(_bf[off]){ exp=true; break; } } _c8=exp?_c2-this.expandRendererHeight:_c2; } if(_c7+_c3<=_c8){ var ir=this._createRenderer(_c5,"horizontal",this.horizontalRenderer,"dojoxCalendarHorizontal"); var _c9=this.isItemBeingEdited(_c5)&&!this.liveLayout&&this._isEditing; var h=_c9?_c2-this.cellPaddingTop:_c3; var w=_c5.end-_c5.start; if(_5("ie")>=9&&_c5.start+wr.w){ x=r.w-1; } } if(y<0){ y=0; }else{ if(y>r.h){ y=r.h-1; } } var w=_a.getMarginBox(this.itemContainer).w; var _fd=w/rd.columnCount; var row; if(rd.expandedRow==null){ row=Math.floor(y/(_a.getMarginBox(this.itemContainer).h/rd.rowCount)); }else{ row=rd.expandedRow; } var r=_a.getContentBox(this.itemContainer); if(rd.rtl){ x=r.w-x; } var col=Math.floor(x/_fd); var tm=Math.floor((x-(col*_fd))*1440/_fd); var _fe=null; if(row