-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(datepicker): merge datepicker branch into master #4404
Conversation
@mmalerba don't you think #4358 should be fixed first? I just tested it again against the
it's basically confusing days for months, I'd say this could imply there could be other locale related problems that tests aren't catching.. |
35ae5ff
to
205195f
Compare
* create SimpleDate and CalendarLocale objects * tests * addressed comments * make parseDate more robust * simplify createFormatFunction
* date picker initial commit * month view * added month view functionality * more month view tweaking * started extracting common stuff to calendar-table. * base month view on calendar table * added year view * add disclaimers * addressed comments * fix lint * fixed aot and added comment * started on tests * calendar table tests * tests for month and year view * rebase on top of CalendarLocale & SimpleDate * add some additional functionality to SimpleDate * fix lint * addressed comments * add comment
* date picker initial commit * month view * added month view functionality * more month view tweaking * started extracting common stuff to calendar-table. * base month view on calendar table * added year view * add disclaimers * addressed comments * fix lint * fixed aot and added comment * started on tests * calendar table tests * tests for month and year view * rebase on top of CalendarLocale & SimpleDate * add some additional functionality to SimpleDate * add md-datepicker and input[mdDatepicker] * Add touch UI support * fix some stuff that got messed up in rebasing * addressed comments * move position strategy to separate method * added tests for error cases
* started working on responsive calendar table * fix today, selected, hover styles * fix label positioning * replace em with px * fix today cell styling
…d year views (#2994) * create a calendar component that pulls together month and year views styling still needs some love * fix typo
* style changes * more styles * addressed comments
* enable value propagation through various components & directives * add tests * fix lint * addressed comments * addressed feedback * fix lint * make datepicker selected property internal * add test for pristine after ngModel change
…ut-container (#3468) feat(datepicker): add mdDatepickerToggle & compatibility w/ md-input-container
…r input (#3542) * add aria-* attrs and keyboard bindings to datepicker input * fix rebase errors * added comment
* don't allow going past min/max date * add back missing mdSuffix * added date filtering logic * added working date filter * disabled style for prev/next buttons * add unit tests * fix lint * address comments
…nce (#3685) * fix(datepicker): fix bug where calendar dialog could only be opened once * add rxjs first operator
* add active cell support to calendar-table, month-view, and year-view * stop normalizing the active date in calendar since we now care about the exact active date * add some key handlers * add keyboard support, break some tests * add tests * some finishing touches * fix tabindex * fix rxjs import * addressed some comments * refactor handleKeydown * fix commas
#3854) * fix(datepicker): use input's min & max properites rather than custom ones on md-datepicker * add doc comments
* fix(datepicker): calendar selected date should change when input changes * startAt fix * fix tests * address comments * fix unsubscribe * make valueChange on datepicker-input internal
* add keyboard support, break some tests * add tests * some finishing touches * addressed some comments * separate md-datepicker-content into own component * addressed comments * added some more explanation of the datepicker and datepicker-content components.
* add keyboard support, break some tests * add tests * some finishing touches * addressed some comments * separate md-datepicker-content into own component * fix(datepicker): make touch UI work well on mobile * use vmin instead of media queries + vw, vh * fix non-touch styles * addressed comments * fix lint error about vmin * addressed comments
* prev & next icons with css * add some a11y labels * small fixes * fix sizing
* fix broken tests * md-calendar-table --> [md-calendar-body] * move md-calendar-body to tbody element * move weekdays into table header * finishing touches * fix year view padding * add some comments
* added DateAdapter and NativeDateAdapter * add tests * addressed some comments * more comments addressed * another round of comments addressed * add default formats
…apter (#4189) * rename test file to match the file its testing * remove SimpleDate and CalendarLocale * switch MdMonthView to use DateAdapter * swtich MdYearView to use DateAdapter * switch MdCalendar to use DateAdapter * switch MdDatepicker to use DateAdapter * switch MdDatepickerInput and MdDatepickerToggle to use DateAdapter * fix demo * fix some small bugs * fix tests * alias months in tests * address comments and remove overflow on createDate * s/l10n/intl
…th date adapter into MdNativeDateModule (#4296) * New module structure for DateAdapter. * pass through format options * move date-formats to core/datetime * don't subclass error * add test for missing providers case
* first pass a11y * escape key support * month labels * don't steal focus from fwd/back buttons * fix tests * address some comments * fix lint
* docs(datepicker) update readme * address comments * Add a more comprehensive demo * avoid string date properties in docs
* support validation based on date filter * add validation support for min & max * update docs to talk about validation * fix imports * address comments
@jelbourn you may want to review these commits more closely: https://github.com/angular/material2/pull/4404/files/14b252336f126d82178a66224f614b6187f2dbc2..0697350b6803a66b0a044888d9f90f615f3d1b84 these are ones I made on top of the already-reviewed changes to fix tests and things. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just a couple nits
* other browsers do not. We remove them to make output consistent and because they interfere with | ||
* date parsing. | ||
* @param s The string to strip direction characters from. | ||
* @returns {string} The stripped string. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Omit return type from comment
* @param s The string to strip direction characters from. | ||
* @returns {string} The stripped string. | ||
*/ | ||
private _stripDirectionCharacters(s: string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_stripDirectionalityCharacters
? (to match our pending terminology)
Done |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
#675