a:25:{s:9:"#provides";s:15:"dijit._Calendar";s:9:"#resource";s:12:"_Calendar.js";s:9:"#requires";a:5:{i:0;a:3:{i:0;s:6:"common";i:1;s:22:"dojo.cldr.supplemental";i:2;s:4:"dojo";}i:1;a:3:{i:0;s:6:"common";i:1;s:9:"dojo.date";i:2;s:4:"dojo";}i:2;a:3:{i:0;s:6:"common";i:1;s:16:"dojo.date.locale";i:2;s:4:"dojo";}i:3;a:2:{i:0;s:6:"common";i:1;s:13:"dijit._Widget";}i:4;a:2:{i:0;s:6:"common";i:1;s:16:"dijit._Templated";}}s:15:"dijit._Calendar";a:7:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:13:"dijit._Widget";}s:4:"call";a:2:{i:0;s:13:"dijit._Widget";i:1;s:16:"dijit._Templated";}}s:6:"mixins";a:1:{s:9:"prototype";a:1:{i:0;s:26:"dijit._Templated.prototype";}}s:7:"summary";s:70:"A simple GUI for choosing a date in the context of a monthly calendar.";s:11:"description";s:526:"A simple GUI for choosing a date in the context of a monthly calendar. This widget is used internally by other widgets and is not accessible as a standalone widget. This widget can't be used in a form because it doesn't serialize the date to an `` field. For a form element, use dijit.form.DateTextBox instead. Note that the parser takes all dates attributes passed in the [RFC 3339 format](http://www.faqs.org/rfcs/rfc3339.html), e.g. `2005-06-30T08:05:00-07:00` so that they are serializable and locale-independent.";s:8:"examples";a:2:{i:0;s:69:" var calendar = new dijit._Calendar({}, dojo.byId("calendarNode"));";i:1;s:41:"
";}s:9:"classlike";b:1;}s:28:"dijit._Calendar.templatePath";a:2:{s:9:"prototype";s:15:"dijit._Calendar";s:7:"summary";s:0:"";}s:21:"dijit._Calendar.value";a:4:{s:9:"prototype";s:15:"dijit._Calendar";s:8:"instance";s:15:"dijit._Calendar";s:4:"type";s:4:"Date";s:7:"summary";s:27:"The currently selected Date";}s:24:"dijit._Calendar.dayWidth";a:3:{s:9:"prototype";s:15:"dijit._Calendar";s:4:"type";s:6:"String";s:7:"summary";s:82:"How to represent the days of the week in the calendar header. See dojo.date.locale";}s:24:"dijit._Calendar.setValue";a:6:{s:9:"prototype";s:15:"dijit._Calendar";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:5:"value";a:1:{s:4:"type";s:4:"Date";}}s:6:"source";s:137:" dojo.deprecated("dijit.Calendar:setValue() is deprecated. Use attr('value', ...) instead.", "", "2.0"); this.attr('value', value);";s:7:"summary";s:46:"Deprecated. Used attr('value', ...) instead.";s:4:"tags";s:10:"deprecated";}s:29:"dijit._Calendar._getValueAttr";a:7:{s:9:"prototype";s:15:"dijit._Calendar";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:5:"value";a:1:{s:4:"type";s:6:"String";}}s:6:"source";s:384:" var value = new Date(this.value); value.setHours(0, 0, 0, 0); // return midnight, local time for back-compat // If daylight savings pushes midnight to the previous date, fix the Date // object to point at 1am so it will represent the correct day. See #9366 if(value.getDate() < this.value.getDate()){ value = dojo.date.add(value, "hour", 1); } return value;";s:7:"summary";s:28:"Hook so attr('value') works.";s:7:"returns";s:43:"return midnight, local time for back-compat";s:7:"private";b:1;}s:29:"dijit._Calendar._setValueAttr";a:8:{s:9:"prototype";s:15:"dijit._Calendar";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:5:"value";a:1:{s:4:"type";s:4:"Date";}}s:6:"source";s:373:" if(!this.value || dojo.date.compare(value, this.value)){ value = new Date(value); value.setHours(1); // to avoid issues when DST shift occurs at midnight, see #8521, #9366 this.displayMonth = new Date(value); if(!this.isDisabledDate(value, this.lang)){ this.value = value; this.onChange(this.attr('value')); } this._populateGrid(); }";s:7:"summary";s:47:"Hook to make attr("value", ...) work.";s:11:"description";s:152:"Set the current date and update the UI. If the date is disabled, the selection will not change, but the display will change to the corresponding month.";s:4:"tags";s:9:"protected";s:7:"private";b:1;}s:24:"dijit._Calendar._setText";a:7:{s:9:"prototype";s:15:"dijit._Calendar";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:4:"node";a:1:{s:4:"type";s:0:"";}s:4:"text";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:122:" while(node.firstChild){ node.removeChild(node.firstChild); } node.appendChild(dojo.doc.createTextNode(text));";s:7:"summary";s:140:"This just sets the content of node to the specified text. Can't do "node.innerHTML=text" because of an IE bug w/tables, see #3434.";s:4:"tags";s:7:"private";s:7:"private";b:1;}s:29:"dijit._Calendar._populateGrid";a:6:{s:9:"prototype";s:15:"dijit._Calendar";s:4:"type";s:8:"Function";s:6:"source";s:2801:" var month = this.displayMonth; month.setDate(1); var firstDay = month.getDay(); var daysInMonth = dojo.date.getDaysInMonth(month); var daysInPreviousMonth = dojo.date.getDaysInMonth(dojo.date.add(month, "month", -1)); var today = new Date(); var selected = this.value; var dayOffset = dojo.cldr.supplemental.getFirstDayOfWeek(this.lang); if(dayOffset > firstDay){ dayOffset -= 7; } // Iterate through dates in the calendar and fill in date numbers and style info dojo.query(".dijitCalendarDateTemplate", this.domNode).forEach(function(template, i){ i += dayOffset; var date = new Date(month); var number, clazz = "dijitCalendar", adj = 0; if(i < firstDay){ number = daysInPreviousMonth - firstDay + i + 1; adj = -1; clazz += "Previous"; }else if(i >= (firstDay + daysInMonth)){ number = i - firstDay - daysInMonth + 1; adj = 1; clazz += "Next"; }else{ number = i - firstDay + 1; clazz += "Current"; } if(adj){ date = dojo.date.add(date, "month", adj); } date.setDate(number); if(!dojo.date.compare(date, today, "date")){ clazz = "dijitCalendarCurrentDate " + clazz; } if(!dojo.date.compare(date, selected, "date")){ clazz = "dijitCalendarSelectedDate " + clazz; } if(this.isDisabledDate(date, this.lang)){ clazz = "dijitCalendarDisabledDate " + clazz; } var clazz2 = this.getClassForDate(date, this.lang); if(clazz2){ clazz = clazz2 + " " + clazz; } template.className = clazz + "Month dijitCalendarDateTemplate"; template.dijitDateValue = date.valueOf(); var label = dojo.query(".dijitCalendarDateLabel", template)[0]; this._setText(label, date.getDate()); }, this); // Fill in localized month name var monthNames = dojo.date.locale.getNames('months', 'wide', 'standAlone', this.lang); this._setText(this.monthLabelNode, monthNames[month.getMonth()]); // Fill in localized prev/current/next years var y = month.getFullYear() - 1; var d = new Date(); dojo.forEach(["previous", "current", "next"], function(name){ d.setFullYear(y++); this._setText(this[name+"YearLabelNode"], dojo.date.locale.format(d, {selector:'year', locale:this.lang})); }, this); // Set up repeating mouse behavior var _this = this; var typematic = function(nodeProp, dateProp, adj){ _this._connects.push( dijit.typematic.addMouseListener(_this[nodeProp], _this, function(count){ if(count >= 0){ _this._adjustDisplay(dateProp, adj); } }, 0.8, 500) ); }; typematic("incrementMonth", "month", 1); typematic("decrementMonth", "month", -1); typematic("nextYearLabelNode", "year", 1); typematic("previousYearLabelNode", "year", -1);";s:7:"summary";s:47:"Fills in the calendar grid with each day (1-31)";s:4:"tags";s:7:"private";s:7:"private";b:1;}s:25:"dijit._Calendar.goToToday";a:4:{s:9:"prototype";s:15:"dijit._Calendar";s:4:"type";s:8:"Function";s:6:"source";s:34:" this.attr('value', new Date());";s:7:"summary";s:37:"Sets calendar's value to today's date";}s:26:"dijit._Calendar.postCreate";a:4:{s:9:"prototype";s:15:"dijit._Calendar";s:4:"type";s:8:"Function";s:6:"source";s:1345:" this.inherited(arguments); dojo.setSelectable(this.domNode, false); var cloneClass = dojo.hitch(this, function(clazz, n){ var template = dojo.query(clazz, this.domNode)[0]; for(var i=0; i