//>>built
require({cache:{"url:dojox/calendar/templates/ColumnView.html":"
\n\t\n\t\n\t\n\t
\n\t\n\t
\n\t\n\t
\n\t\n
\n"}});
define("dojox/calendar/ColumnView",["dojo/_base/declare","dojo/_base/event","dojo/_base/lang","dojo/_base/sniff","dojo/_base/fx","dojo/dom","dojo/dom-class","dojo/dom-style","dojo/dom-geometry","dojo/dom-construct","dojo/on","dojo/date","dojo/date/locale","dojo/query","dojox/html/metrics","./SimpleColumnView","dojo/text!./templates/ColumnView.html","./ColumnViewSecondarySheet"],function(_1,_2,_3,_4,fx,_5,_6,_7,_8,_9,on,_a,_b,_c,_d,_e,_f,_10){
return _1("dojox.calendar.ColumnView",_e,{templateString:_f,baseClass:"dojoxCalendarColumnView",secondarySheetClass:_10,secondarySheetProps:null,headerPadding:3,buildRendering:function(){
this.inherited(arguments);
if(this.secondarySheetNode){
var _11=_3.mixin({owner:this},this.secondarySheetProps);
this.secondarySheet=new this.secondarySheetClass(_11,this.secondarySheetNode);
this.secondarySheetNode=this.secondarySheet.domNode;
}
},destroy:function(_12){
if(this.secondarySheet){
this.secondarySheet.destroy(_12);
}
this.inherited(arguments);
},_setVisibility:function(_13){
this.inherited(arguments);
if(this.secondarySheet){
this.secondarySheet._setVisibility(_13);
}
},invalidateLayout:function(){
this._layoutRenderers(this.renderData);
if(this.secondarySheet){
this.secondarySheet._layoutRenderers(this.secondarySheet.renderData);
}
},onRowHeaderClick:function(e){
},resizeSecondarySheet:function(_14){
if(this.secondarySheetNode){
var _15=_8.getMarginBox(this.header).h;
_7.set(this.secondarySheetNode,"height",_14+"px");
this.secondarySheet._resizeHandler(null,true);
var top=(_14+_15+this.headerPadding)+"px";
_7.set(this.scrollContainer,"top",top);
if(this.vScrollBar){
_7.set(this.vScrollBar,"top",top);
}
}
},updateRenderers:function(obj,_16){
this.inherited(arguments);
if(this.secondarySheet){
this.secondarySheet.updateRenderers(obj,_16);
}
},_setItemsAttr:function(_17){
this.inherited(arguments);
if(this.secondarySheet){
this.secondarySheet.set("items",_17);
}
},_setStartDateAttr:function(_18){
this.inherited(arguments);
if(this.secondarySheet){
this.secondarySheet.set("startDate",_18);
}
},_setColumnCountAttr:function(_19){
this.inherited(arguments);
if(this.secondarySheet){
this.secondarySheet.set("columnCount",_19);
}
},_setHorizontalRendererAttr:function(_1a){
if(this.secondarySheet){
this.secondarySheet.set("horizontalRenderer",_1a);
}
},_getHorizontalRendererAttr:function(_1b){
if(this.secondarySheet){
return this.secondarySheet.get("horizontalRenderer");
}
},_setExpandRendererAttr:function(_1c){
if(this.secondarySheet){
this.secondarySheet.set("expandRenderer",_1c);
}
},_getExpandRendererAttr:function(_1d){
if(this.secondarySheet){
return this.secondarySheet.get("expandRenderer");
}
},_setTextDirAttr:function(_1e){
this.secondarySheet.set("textDir",_1e);
this._set("textDir",_1e);
},_defaultItemToRendererKindFunc:function(_1f){
return _1f.allDay?null:"vertical";
},getSecondarySheet:function(){
return this.secondarySheet;
},_onGridTouchStart:function(e){
this.inherited(arguments);
this._doEndItemEditing(this.secondarySheet,"touch");
},_onGridMouseDown:function(e){
this.inherited(arguments);
this._doEndItemEditing(this.secondarySheet,"mouse");
},_configureScrollBar:function(_20){
this.inherited(arguments);
if(this.secondarySheetNode){
var _21=this.isLeftToRight()?true:this.scrollBarRTLPosition=="right";
_7.set(this.secondarySheetNode,_21?"right":"left",_20.scrollbarWidth+"px");
_7.set(this.secondarySheetNode,_21?"left":"right","0");
}
},_refreshItemsRendering:function(){
this.inherited(arguments);
if(this.secondarySheet){
var rd=this.secondarySheet.renderData;
this.secondarySheet._computeVisibleItems(rd);
this.secondarySheet._layoutRenderers(rd);
}
},_layoutRenderers:function(_22){
if(!this.secondarySheet._domReady){
this.secondarySheet._domReady=true;
this.secondarySheet._layoutRenderers(this.secondarySheet.renderData);
}
this.inherited(arguments);
},invalidateRendering:function(){
if(this.secondarySheet){
this.secondarySheet.invalidateRendering();
}
this.inherited(arguments);
}});
});