ColumnViewSecondarySheet.js 3.09 KB
//>>built
require({cache:{"url:dojox/calendar/templates/ColumnViewSecondarySheet.html":'\x3cdiv data-dojo-attach-events\x3d"keydown:_onKeyDown"\x3e\r\n\t\x3cdiv  data-dojo-attach-point\x3d"rowHeader" class\x3d"dojoxCalendarRowHeader"\x3e\r\n\t\t\x3ctable data-dojo-attach-point\x3d"rowHeaderTable" class\x3d"dojoxCalendarRowHeaderTable" cellpadding\x3d"0" cellspacing\x3d"0"\x3e\x3c/table\x3e\r\n\t\x3c/div\x3e\t\r\n\t\x3cdiv data-dojo-attach-point\x3d"grid" class\x3d"dojoxCalendarGrid"\x3e\r\n\t\t\x3ctable data-dojo-attach-point\x3d"gridTable" class\x3d"dojoxCalendarGridTable" cellpadding\x3d"0" cellspacing\x3d"0"\x3e\x3c/table\x3e\r\n\t\x3c/div\x3e\r\n\t\x3cdiv data-dojo-attach-point\x3d"itemContainer" class\x3d"dojoxCalendarContainer" data-dojo-attach-event\x3d"mousedown:_onGridMouseDown,mouseup:_onGridMouseUp,ondblclick:_onGridDoubleClick,touchstart:_onGridTouchStart,touchmove:_onGridTouchMove,touchend:_onGridTouchEnd"\x3e\r\n\t\t\x3ctable data-dojo-attach-point\x3d"itemContainerTable" class\x3d"dojoxCalendarContainerTable" cellpadding\x3d"0" cellspacing\x3d"0" style\x3d"width:100%"\x3e\x3c/table\x3e\r\n\t\x3c/div\x3e\r\n\x3c/div\x3e\r\n'}});
define("dojo/_base/array dojo/_base/declare dojo/_base/event dojo/_base/lang dojo/dom-geometry dojo/dom-style ./MatrixView dojo/text!./templates/ColumnViewSecondarySheet.html".split(" "),function(f,g,h,n,e,k,l,m){return g("dojox.calendar.ColumnViewSecondarySheet",l,{templateString:m,rowCount:1,cellPaddingTop:4,roundToDay:!1,_defaultHeight:-1,layoutDuringResize:!0,buildRendering:function(){this.inherited(arguments);this._hScrollNodes=[this.gridTable,this.itemContainerTable]},_configureHScrollDomNodes:function(a){f.forEach(this._hScrollNodes,
function(c){k.set(c,"width",a)},this)},_defaultItemToRendererKindFunc:function(a){return a.allDay?"horizontal":null},_formatGridCellLabel:function(){return null},_formatRowHeaderLabel:function(){return null},__fixEvt:function(a){a.sheet="secondary";a.source=this;return a},_dispatchCalendarEvt:function(a,c){a=this.inherited(arguments);if(this.owner.owner)this.owner.owner[c](a)},_layoutExpandRenderers:function(a,c,d){if(this.expandRenderer&&-1!=this._expandedRowCol){var b=e.getMarginBox(this.domNode).h;
if(-1==this._defaultHeight||0===this._defaultHeight)this._defaultHeight=b;this._defaultHeight!=b&&b>=this._getExpandedHeight()||void 0!==this._expandedRowCol&&-1!==this._expandedRowCol?(b=this._expandedRowCol,b>=this.renderData.columnCount&&(b=0),this._layoutExpandRendererImpl(0,b,null,!0)):this.inherited(arguments)}},expandRendererClickHandler:function(a,c){h.stop(a);a=e.getMarginBox(this.domNode).h;var d=this._getExpandedHeight();this._defaultHeight==a||a<d?(this._expandedRowCol=c.columnIndex,this.owner.resizeSecondarySheet(d)):
(delete this._expandedRowCol,this.owner.resizeSecondarySheet(this._defaultHeight))},_getExpandedHeight:function(){return(this.naturalRowsHeight&&0<this.naturalRowsHeight.length?this.naturalRowsHeight[0]:0)+this.expandRendererHeight+this.verticalGap+this.verticalGap},_layoutRenderers:function(a){this._domReady&&(this.inherited(arguments),a.items&&0!==a.items.length||this._layoutExpandRenderers(0,!1,null))}})});