Skip to content
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

Merged
merged 37 commits into from
May 12, 2017
Merged

feat(datepicker): merge datepicker branch into master #4404

merged 37 commits into from
May 12, 2017

Conversation

mmalerba
Copy link
Contributor

@mmalerba mmalerba commented May 5, 2017

@mmalerba mmalerba requested a review from jelbourn May 5, 2017 22:45
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label May 5, 2017
@fxck
Copy link
Contributor

fxck commented May 6, 2017

@mmalerba don't you think #4358 should be fixed first? I just tested it again against the angular/material2#datepicker and it's still broken..

  • use Czech locale using setLocale('cs')
  • set default value to 2017-05-02T10:10:10.100Z' (2nd of May)
  • open datepicker and it opens on February
    image

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..

@mmalerba mmalerba force-pushed the datepicker branch 5 times, most recently from 35ae5ff to 205195f Compare May 9, 2017 16:33
mmalerba added 20 commits May 9, 2017 10:48
* 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
mmalerba added 16 commits May 9, 2017 10:48
* 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
@mmalerba
Copy link
Contributor Author

mmalerba commented May 9, 2017

@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.

Copy link
Member

@jelbourn jelbourn left a 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.
Copy link
Member

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) {
Copy link
Member

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)

@mmalerba
Copy link
Contributor Author

Done

@mmalerba mmalerba added the action: merge The PR is ready for merge by the caretaker label May 11, 2017
@kara kara merged commit 123d7ec into master May 12, 2017
josephperrott pushed a commit to josephperrott/components that referenced this pull request May 12, 2017
@jelbourn jelbourn deleted the datepicker branch December 7, 2017 23:46
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants