Opened 13 years ago

Closed 13 years ago

#2745 closed task (fixed)

port DatePicker to dijit as Calendar widget for 0.9

Reported by: tk Owned by: tk
Priority: high Milestone: 0.9beta
Component: Widgets Version: 0.9
Keywords: Cc: bill
Blocked By: Blocking:

Description

Redoing DatePicker? as Calendar in 0.9 dijit release.

Change History (26)

comment:1 Changed 13 years ago by Karl Tiedt

(In [8099]) refs #2745

Preliminary Calendar Widget.... needs CSS help... I've checked in the original CSS file under form/templates/ as a reference until the CSS is fixed... despite the lack of CSS this is still functional. I left the tundra CSS file untounched since I could not get it working right.

Also, some names may need changing from DatePicker?... as I said, this is a preliminary check in, but I figured its better to check in so others can see the progress.

comment:2 Changed 13 years ago by bill

Milestone: 0.9M2

comment:3 Changed 13 years ago by bill

(In [8411]) Remove code related to having a hidden <input> box associated w/the calendar (used for form submission). If people want to have a calendar as a form widget, they'll need to make a new widget that extends this one. Refs #2745.

comment:4 Changed 13 years ago by bill

(In [8414]) Fixes related to previous checkin. Refs #2745.

comment:5 Changed 13 years ago by bill

Milestone: 0.9M20.9beta

Still need startdate/enddate, and some general cleanup.

comment:6 Changed 13 years ago by bill

Also CSS work: the size should adjust automatically, rather than being hardcoded, and to get constant width need to have a div w/all the month names (but height: 1px visibility: hidden)

comment:7 Changed 13 years ago by Adam Peller

(In [8517]) Calendar rewrite. Refs #2745.

  • Rework template so you can actually customize calendar grid structure and style any way you like
  • Remove lots of code, including pre/initUI, start date manipulations, unnecessary state vars, and code left over from DatePicker? requirements.
  • Use dojo.query (cool)
  • Updated comments

comment:8 Changed 13 years ago by Adam Peller

(In [8520]) Fix previous month #'s, don't fire events or redraw for clicks on same day, set time on value to 00:00:00. Refs #2745

comment:9 Changed 13 years ago by Adam Peller

(In [8521]) Still not accessible, but at least alt text shows up more consistently. Refs #2745

comment:10 Changed 13 years ago by alex

(In [8528]) scope the dojo.query()'s. Refs #2745

comment:11 Changed 13 years ago by Adam Peller

(In [8550]) Add Bill's invisible list trick so that increment/decrement month buttons don't move. Refs #2745

comment:12 Changed 13 years ago by Adam Peller

(In [8551]) Rename Calendar class to reflect the fact that it's not a form element. Refs #2745

comment:13 Changed 13 years ago by Adam Peller

(In [8552]) Rename Calendar widget to reflect the fact that it's not a form widget. Refs #2745

comment:14 Changed 13 years ago by Adam Peller

(In [8553]) Fix paths. Refs #2745

comment:15 Changed 13 years ago by Adam Peller

(In [8554]) Make sure first week is rendered when first day of week is > 0. Refs #2745

comment:16 Changed 13 years ago by Adam Peller

(In [8555]) try to get usage right. Refs #2745

comment:17 Changed 13 years ago by Adam Peller

(In [8566]) Fix Calendar refactoring in DateTextbox?. Refs #2745

comment:18 Changed 13 years ago by Adam Peller

(In [8574]) Move Calendar templates from dijit.form to dijit. Refs #2745

comment:19 Changed 13 years ago by Karl Tiedt

(In [8578]) Fixed Calendar, prefixed all CSS with "calendar" and replaced all prefixes of "dojo" in this... Ready for theming I believe.... refs #2745

comment:20 Changed 13 years ago by Karl Tiedt

(In [8583]) Removed nested tables... this really screws up the CSS. Hopefully Torrey can fix this up all nice and clean looking now? Also removed Curved corner CSS and table stuff. Included CSS rules to override dojo.css styles that were making the Calendar look funny (wide margins/paddings). refs #2745

comment:21 Changed 13 years ago by Adam Peller

(In [8586]) More Calendar HTML/CSS cleanup and simplification. Refs #2745

comment:22 Changed 13 years ago by bill

(In [8587]) remove unneeded outer div (refs #2745)

comment:23 Changed 13 years ago by Adam Peller

(In [8592]) Add onValueSelected method. Refs #2745

comment:24 Changed 13 years ago by Adam Peller

(In [8593]) Add isDisabledDate method. Refs #2745

comment:25 Changed 13 years ago by Adam Peller

(In [8601]) More dojo.date refactoring based on Owen's suggestions. Refs #2745

dojo.date.diff->dojo.date.difference moved large-ish function out of format into closure move isWeekend from dojo.cldr.supplemental to dojo.date.locale

comment:26 Changed 13 years ago by Adam Peller

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.