a:31:{s:9:"#provides";s:27:"dijit.form._DateTimeTextBox";s:9:"#resource";s:24:"form/_DateTimeTextBox.js";s:9:"#requires";a:4:{i:0;a:3:{i:0;s:6:"common";i:1;s:9:"dojo.date";i:2;s:4:"dojo";}i:1;a:3:{i:0;s:6:"common";i:1;s:16:"dojo.date.locale";i:2;s:4:"dojo";}i:2;a:3:{i:0;s:6:"common";i:1;s:15:"dojo.date.stamp";i:2;s:4:"dojo";}i:3;a:2:{i:0;s:6:"common";i:1;s:28:"dijit.form.ValidationTextBox";}}s:41:"dijit.form._DateTimeTextBox.__Constraints";a:6:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:42:"dijit.form.RangeBoundTextBox.__Constraints";}s:4:"call";a:2:{i:0;s:42:"dijit.form.RangeBoundTextBox.__Constraints";i:1;s:32:"dojo.date.locale.__FormatOptions";}}s:6:"mixins";a:1:{s:9:"prototype";a:1:{i:0;s:42:"dojo.date.locale.__FormatOptions.prototype";}}s:7:"private";b:1;s:9:"classlike";b:1;s:7:"summary";s:0:"";}s:27:"dijit.form._DateTimeTextBox";a:4:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:28:"dijit.form.RangeBoundTextBox";}s:4:"call";a:1:{i:0;s:28:"dijit.form.RangeBoundTextBox";}}s:7:"summary";s:75:"Base class for validating, serializable, range-bound date or time text box.";s:9:"classlike";b:1;}s:39:"dijit.form._DateTimeTextBox.constraints";a:3:{s:9:"prototype";s:27:"dijit.form._DateTimeTextBox";s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:37:"dijit.form._DateTimeTextBox.regExpGen";a:2:{s:9:"prototype";s:27:"dijit.form._DateTimeTextBox";s:7:"summary";s:0:"";}s:35:"dijit.form._DateTimeTextBox.compare";a:2:{s:9:"prototype";s:27:"dijit.form._DateTimeTextBox";s:7:"summary";s:0:"";}s:34:"dijit.form._DateTimeTextBox.format";a:6:{s:9:"prototype";s:27:"dijit.form._DateTimeTextBox";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:5:"value";a:1:{s:4:"type";s:4:"Date";}s:11:"constraints";a:1:{s:4:"type";s:32:"dojo.date.locale.__FormatOptions";}}s:6:"source";s:82:" if(!value){ return ''; } return dojo.date.locale.format(value, constraints);";s:7:"summary";s:76:"Formats the value as a Date, according to specified locale (second argument)";s:4:"tags";s:9:"protected";}s:33:"dijit.form._DateTimeTextBox.parse";a:7:{s:9:"prototype";s:27:"dijit.form._DateTimeTextBox";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:5:"value";a:1:{s:4:"type";s:6:"String";}s:11:"constraints";a:1:{s:4:"type";s:32:"dojo.date.locale.__FormatOptions";}}s:6:"source";s:106:" return dojo.date.locale.parse(value, constraints) || (this._isEmpty(value)? null : undefined); // Date";s:7:"summary";s:52:"Parses as string as a Date, according to constraints";s:4:"tags";s:9:"protected";s:7:"returns";s:4:"Date";}s:37:"dijit.form._DateTimeTextBox.serialize";a:2:{s:9:"prototype";s:27:"dijit.form._DateTimeTextBox";s:7:"summary";s:0:"";}s:33:"dijit.form._DateTimeTextBox.value";a:4:{s:9:"prototype";s:27:"dijit.form._DateTimeTextBox";s:8:"instance";s:27:"dijit.form._DateTimeTextBox";s:4:"type";s:4:"Date";s:7:"summary";s:228:"The value of this widget as a JavaScript Date object. Use attr("value") / attr("value", val) to manipulate. When passed to the parser in markup, must be specified according to `dojo.date.stamp.fromISOString`";}s:39:"dijit.form._DateTimeTextBox._blankValue";a:3:{s:9:"prototype";s:27:"dijit.form._DateTimeTextBox";s:7:"private";b:1;s:7:"summary";s:0:"";}s:38:"dijit.form._DateTimeTextBox.popupClass";a:4:{s:9:"prototype";s:27:"dijit.form._DateTimeTextBox";s:4:"tags";a:2:{i:0;s:9:"protected";i:1;s:9:"extension";}s:4:"type";s:6:"String";s:7:"summary";s:90:"Name of the popup widget class used to select a date/time. Subclasses should specify this.";}s:37:"dijit.form._DateTimeTextBox._selector";a:5:{s:9:"prototype";s:27:"dijit.form._DateTimeTextBox";s:4:"tags";a:2:{i:0;s:9:"protected";i:1;s:9:"extension";}s:4:"type";s:6:"String";s:7:"summary";s:144:"Specifies constraints.selector passed to dojo.date functions, should be either "date" or "time". Subclass must specify this.";s:7:"private";b:1;}s:47:"dijit.form._DateTimeTextBox.postMixInProperties";a:5:{s:9:"prototype";s:27:"dijit.form._DateTimeTextBox";s:4:"type";s:8:"Function";s:6:"source";s:3172:"dojo.provide("dijit.form._DateTimeTextBox"); dojo.require("dojo.date"); dojo.require("dojo.date.locale"); dojo.require("dojo.date.stamp"); dojo.require("dijit.form.ValidationTextBox"); dojo.declare( "dijit.form._DateTimeTextBox.__Constraints", [dijit.form.RangeBoundTextBox.__Constraints, dojo.date.locale.__FormatOptions] ); dojo.declare( "dijit.form._DateTimeTextBox", dijit.form.RangeBoundTextBox, { // summary: // Base class for validating, serializable, range-bound date or time text box. // constraints: dijit.form._DateTimeTextBox.__Constraints // Starting / ending dates or times allowed constraints: {}, // Override ValidationTextBox.regExpGen().... we use a reg-ex generating function rather // than a straight regexp to deal with locale (plus formatting options too?) regExpGen: dojo.date.locale.regexp, // Override _FormWidget.compare() to work for dates/times compare: dojo.date.compare, format: function(/*Date*/ value, /*dojo.date.locale.__FormatOptions*/ constraints){ // summary: // Formats the value as a Date, according to specified locale (second argument) // tags: // protected if(!value){ return ''; } return dojo.date.locale.format(value, constraints); }, parse: function(/*String*/ value, /*dojo.date.locale.__FormatOptions*/ constraints){ // summary: // Parses as string as a Date, according to constraints // tags: // protected return dojo.date.locale.parse(value, constraints) || (this._isEmpty(value)? null : undefined); // Date }, // Overrides ValidationTextBox.serialize() to serialize a date in canonical ISO format. serialize: dojo.date.stamp.toISOString, // value: Date // The value of this widget as a JavaScript Date object. Use attr("value") / attr("value", val) to manipulate. // When passed to the parser in markup, must be specified according to `dojo.date.stamp.fromISOString` value: new Date(""), // value.toString()="NaN" _blankValue: null, // used by filter() when the textbox is blank // popupClass: [protected extension] String // Name of the popup widget class used to select a date/time. // Subclasses should specify this. popupClass: "", // default is no popup = text only // _selector: [protected extension] String // Specifies constraints.selector passed to dojo.date functions, should be either // "date" or "time". // Subclass must specify this. _selector: "", postMixInProperties: function(){ //dijit.form.RangeBoundTextBox.prototype.postMixInProperties.apply(this, arguments); this.inherited(arguments); if(!this.value || this.value.toString() == dijit.form._DateTimeTextBox.prototype.value.toString()){ this.value = null; } var constraints = this.constraints; constraints.selector = this._selector; constraints.fullYear = true; // see #5465 - always format with 4-digit years var fromISO = dojo.date.stamp.fromISOString; if(typeof constraints.min == "string"){ constraints.min = fromISO(constraints.min); } if(typeof constraints.max == "string"){ constraints.max = fromISO(constraints.max); }";s:7:"returns";s:4:"Date";s:7:"summary";s:0:"";}s:36:"dijit.form._DateTimeTextBox._onFocus";a:6:{s:9:"prototype";s:27:"dijit.form._DateTimeTextBox";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:3:"evt";a:1:{s:4:"type";s:5:"Event";}}s:6:"source";s:16:" this._open();";s:7:"summary";s:25:"open the TimePicker popup";s:7:"private";b:1;}s:41:"dijit.form._DateTimeTextBox._setValueAttr";a:6:{s:9:"prototype";s:27:"dijit.form._DateTimeTextBox";s:4:"type";s:8:"Function";s:10:"parameters";a:3:{s:5:"value";a:1:{s:4:"type";s:4:"Date";}s:14:"priorityChange";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Boolean";}s:14:"formattedValue";a:2:{s:8:"optional";b:1;s:4:"type";s:6:"String";}}s:6:"source";s:171:" this.inherited(arguments); if(this._picker){ // #3948: fix blank date on popup only if(!value){value=new Date();} this._picker.attr('value', value); }";s:7:"summary";s:83:"Sets the date on this textbox. Note that `value` must be a Javascript Date object.";s:7:"private";b:1;}s:33:"dijit.form._DateTimeTextBox._open";a:6:{s:9:"prototype";s:27:"dijit.form._DateTimeTextBox";s:4:"type";s:8:"Function";s:6:"source";s:1573:" if(this.disabled || this.readOnly || !this.popupClass){return;} var textBox = this; if(!this._picker){ var PopupProto=dojo.getObject(this.popupClass, false); this._picker = new PopupProto({ onValueSelected: function(value){ if(textBox._tabbingAway){ delete textBox._tabbingAway; }else{ textBox.focus(); // focus the textbox before the popup closes to avoid reopening the popup } setTimeout(dojo.hitch(textBox, "_close"), 1); // allow focus time to take // this will cause InlineEditBox and other handlers to do stuff so make sure it's last dijit.form._DateTimeTextBox.superclass._setValueAttr.call(textBox, value, true); }, lang: textBox.lang, constraints: textBox.constraints, isDisabledDate: function(/*Date*/ date){ // summary: // disables dates outside of the min/max of the _DateTimeTextBox var compare = dojo.date.compare; var constraints = textBox.constraints; return constraints && (constraints.min && (compare(constraints.min, date, "date") > 0) || (constraints.max && compare(constraints.max, date, "date") < 0)); } }); this._picker.attr('value', this.attr('value') || new Date()); } if(!this._opened){ dijit.popup.open({ parent: this, popup: this._picker, around: this.domNode, onCancel: dojo.hitch(this, this._close), onClose: function(){ textBox._opened=false; } }); this._opened=true; } dojo.marginBox(this._picker.domNode,{ w:this.domNode.offsetWidth });";s:7:"summary";s:56:"opens the TimePicker, and sets the onValueSelected value";s:6:"chains";a:1:{s:4:"call";a:1:{i:0;s:52:"dijit.form._DateTimeTextBox.superclass._setValueAttr";}}s:7:"private";b:1;}s:34:"dijit.form._DateTimeTextBox._close";a:5:{s:9:"prototype";s:27:"dijit.form._DateTimeTextBox";s:4:"type";s:8:"Function";s:6:"source";s:89:" if(this._opened){ dijit.popup.close(this._picker); this._opened=false; } ";s:7:"private";b:1;s:7:"summary";s:0:"";}s:35:"dijit.form._DateTimeTextBox._onBlur";a:5:{s:9:"prototype";s:27:"dijit.form._DateTimeTextBox";s:4:"type";s:8:"Function";s:6:"source";s:299:" this._close(); if(this._picker){ // teardown so that constraints will be rebuilt next time (redundant reference: #6002) this._picker.destroy(); delete this._picker; } this.inherited(arguments); // don't focus on . the user has explicitly focused on something else.";s:7:"summary";s:79:"Called magically when focus has shifted away from this widget and it's dropdown";s:7:"private";b:1;}s:50:"dijit.form._DateTimeTextBox._getDisplayedValueAttr";a:5:{s:9:"prototype";s:27:"dijit.form._DateTimeTextBox";s:4:"type";s:8:"Function";s:6:"source";s:29:" return this.textbox.value;";s:7:"private";b:1;s:7:"summary";s:0:"";}s:50:"dijit.form._DateTimeTextBox._setDisplayedValueAttr";a:6:{s:9:"prototype";s:27:"dijit.form._DateTimeTextBox";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:5:"value";a:1:{s:4:"type";s:6:"String";}s:14:"priorityChange";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Boolean";}}s:6:"source";s:82:" this._setValueAttr(this.parse(value, this.constraints), priorityChange, value);";s:7:"private";b:1;s:7:"summary";s:0:"";}s:35:"dijit.form._DateTimeTextBox.destroy";a:4:{s:9:"prototype";s:27:"dijit.form._DateTimeTextBox";s:4:"type";s:8:"Function";s:6:"source";s:108:" if(this._picker){ this._picker.destroy(); delete this._picker; } this.inherited(arguments);";s:7:"summary";s:0:"";}s:38:"dijit.form._DateTimeTextBox.postCreate";a:4:{s:9:"prototype";s:27:"dijit.form._DateTimeTextBox";s:4:"type";s:8:"Function";s:6:"source";s:94:" this.inherited(arguments); this.connect(this.focusNode, 'onkeypress', this._onKeyPress);";s:7:"summary";s:0:"";}s:39:"dijit.form._DateTimeTextBox._onKeyPress";a:6:{s:9:"prototype";s:27:"dijit.form._DateTimeTextBox";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"e";a:1:{s:4:"type";s:5:"Event";}}s:6:"source";s:962:" var p = this._picker, dk = dojo.keys; // Handle the key in the picker, if it has a handler. If the handler // returns false, then don't handle any other keys. if(p && this._opened && p.handleKey){ if(p.handleKey(e) === false){ return; } } if(this._opened && e.charOrCode == dk.ESCAPE && !e.shiftKey && !e.ctrlKey && !e.altKey){ this._close(); dojo.stopEvent(e); }else if(!this._opened && e.charOrCode == dk.DOWN_ARROW){ this._open(); dojo.stopEvent(e); }else if(e.charOrCode === dk.TAB){ this._tabbingAway = true; }else if(this._opened && (e.keyChar || e.charOrCode === dk.BACKSPACE || e.charOrCode == dk.DELETE)){ // Replace the element - but do it after a delay to allow for // filtering to occur setTimeout(dojo.hitch(this, function(){ dijit.placeOnScreenAroundElement(p.domNode.parentNode, this.domNode, {'BL':'TL', 'TL':'BL'}, p.orient ? dojo.hitch(p, "orient") : null); }), 1); }";s:7:"summary";s:27:"Handler for keypress events";s:7:"private";b:1;}s:35:"dijit.form._DateTimeTextBox._picker";a:3:{s:8:"instance";s:27:"dijit.form._DateTimeTextBox";s:7:"private";b:1;s:7:"summary";s:0:"";}s:35:"dijit.form._DateTimeTextBox._opened";a:3:{s:8:"instance";s:27:"dijit.form._DateTimeTextBox";s:7:"private";b:1;s:7:"summary";s:0:"";}s:40:"dijit.form._DateTimeTextBox._tabbingAway";a:3:{s:8:"instance";s:27:"dijit.form._DateTimeTextBox";s:7:"private";b:1;s:7:"summary";s:0:"";}s:10:"dijit.form";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:5:"dijit";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}