Skip to content

refactor(datepicker): implement date selection model provider - #18090

Merged
mmalerba merged 5 commits into
angular:date-selection-model-newfrom
crisbeto:date-selection-model-implementation
Jan 7, 2020
Merged

mmalerba merged 5 commits into
angular:date-selection-model-newfrom
crisbeto:date-selection-model-implementation

Conversation

@crisbeto

@crisbeto crisbeto commented Jan 2, 2020 •

Copy link
Copy Markdown
Member

Reworks the datepicker-related directives to move the source of the value into the new datepicker selection provider.

Note: I've switched everything except the calendar views to use the value from the model. Since the views are supposed dumb components which are managed the calendar, I thought that it doesn't make sense for them to know about the selection model, because they don't always update the model.

xlou978 and others added 4 commits December 23, 2019 13:02
* Adds a date selection model

* Adds a date selection model
…ular#17766)

* Adds a date selection model (angular#17363)

* Adds a date selection model

* Adds a date selection model

* Add overlaps function to date selection model
* incoporate new type definition

* fix test and clean up the types a bit

* update api gold

* fix some nits

* fix lint

Co-authored-by: mmalerba <mmalerba@google.com>
@crisbeto crisbeto added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent pr: merge safe labels Jan 2, 2020
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jan 2, 2020
@crisbeto
crisbeto force-pushed the date-selection-model-implementation branch from af98768 to 472b12d Compare January 2, 2020 13:32
Comment thread src/material/datepicker/calendar.ts Resolved
Comment thread src/material/datepicker/datepicker.ts Resolved
@crisbeto
crisbeto force-pushed the date-selection-model-implementation branch from 472b12d to a82b6d4 Compare January 7, 2020 05:52
@crisbeto

crisbeto commented Jan 7, 2020

Copy link
Copy Markdown
Member Author

The feedback has been addressed @mmalerba.

@crisbeto
crisbeto force-pushed the date-selection-model-implementation branch from a82b6d4 to 50801fc Compare January 7, 2020 18:12
Reworks the datepicker-related directives to move the source of the value into the new datepicker selection provider.
@crisbeto
crisbeto force-pushed the date-selection-model-implementation branch from 50801fc to a6faba7 Compare January 7, 2020 19:36
@crisbeto

crisbeto commented Jan 7, 2020

Copy link
Copy Markdown
Member Author

Addressed the latest set of feedback.

@mmalerba mmalerba added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Jan 7, 2020
@mmalerba
mmalerba merged commit 24fc653 into angular:date-selection-model-new Jan 7, 2020
mmalerba added a commit that referenced this pull request Jan 7, 2020
* Adds a date selection model (#17363)

* Adds a date selection model

* Adds a date selection model

* Use MatDateSelectionModel to model the selected value in MatDatepickerInput (#17497)

* Make the selection model injectable and add an `overlaps` method (#17766)

* Adds a date selection model (#17363)

* Adds a date selection model

* Adds a date selection model

* Add overlaps function to date selection model

* Trying to incorporate the new type definition (#17942)

* incoporate new type definition

* fix test and clean up the types a bit

* update api gold

* fix some nits

* fix lint

Co-authored-by: mmalerba <mmalerba@google.com>

* refactor(datepicker): implement date selection model provider

Reworks the datepicker-related directives to move the source of the value into the new datepicker selection provider.

Co-authored-by: xlou978 <51772166+xlou978@users.noreply.github.com>
Co-authored-by: jaguima <jaguima@gmail.com>
Co-authored-by: mmalerba <mmalerba@google.com>
Co-authored-by: roboshoes <mail@mathias-paumgarten.com>
Co-authored-by: goldblatt <suzgoldblatt@gmail.com>
crisbeto added a commit to crisbeto/material2 that referenced this pull request Jan 11, 2020
…r#18090)

* Adds a date selection model (angular#17363)

* Adds a date selection model

* Adds a date selection model

* Use MatDateSelectionModel to model the selected value in MatDatepickerInput (angular#17497)

* Make the selection model injectable and add an `overlaps` method (angular#17766)

* Adds a date selection model (angular#17363)

* Adds a date selection model

* Adds a date selection model

* Add overlaps function to date selection model

* Trying to incorporate the new type definition (angular#17942)

* incoporate new type definition

* fix test and clean up the types a bit

* update api gold

* fix some nits

* fix lint

Co-authored-by: mmalerba <mmalerba@google.com>

* refactor(datepicker): implement date selection model provider

Reworks the datepicker-related directives to move the source of the value into the new datepicker selection provider.

Co-authored-by: xlou978 <51772166+xlou978@users.noreply.github.com>
Co-authored-by: jaguima <jaguima@gmail.com>
Co-authored-by: mmalerba <mmalerba@google.com>
Co-authored-by: roboshoes <mail@mathias-paumgarten.com>
Co-authored-by: goldblatt <suzgoldblatt@gmail.com>
crisbeto added a commit to crisbeto/material2 that referenced this pull request Jan 11, 2020
…r#18090)

* Adds a date selection model (angular#17363)

* Adds a date selection model

* Adds a date selection model

* Use MatDateSelectionModel to model the selected value in MatDatepickerInput (angular#17497)

* Make the selection model injectable and add an `overlaps` method (angular#17766)

* Adds a date selection model (angular#17363)

* Adds a date selection model

* Adds a date selection model

* Add overlaps function to date selection model

* Trying to incorporate the new type definition (angular#17942)

* incoporate new type definition

* fix test and clean up the types a bit

* update api gold

* fix some nits

* fix lint

Co-authored-by: mmalerba <mmalerba@google.com>

* refactor(datepicker): implement date selection model provider

Reworks the datepicker-related directives to move the source of the value into the new datepicker selection provider.

Co-authored-by: xlou978 <51772166+xlou978@users.noreply.github.com>
Co-authored-by: jaguima <jaguima@gmail.com>
Co-authored-by: mmalerba <mmalerba@google.com>
Co-authored-by: roboshoes <mail@mathias-paumgarten.com>
Co-authored-by: goldblatt <suzgoldblatt@gmail.com>
crisbeto added a commit that referenced this pull request Jan 11, 2020
* Adds a date selection model (#17363)

* Adds a date selection model

* Adds a date selection model

* Use MatDateSelectionModel to model the selected value in MatDatepickerInput (#17497)

* Make the selection model injectable and add an `overlaps` method (#17766)

* Adds a date selection model (#17363)

* Adds a date selection model

* Adds a date selection model

* Add overlaps function to date selection model

* Trying to incorporate the new type definition (#17942)

* incoporate new type definition

* fix test and clean up the types a bit

* update api gold

* fix some nits

* fix lint

Co-authored-by: mmalerba <mmalerba@google.com>

* refactor(datepicker): implement date selection model provider

Reworks the datepicker-related directives to move the source of the value into the new datepicker selection provider.

Co-authored-by: xlou978 <51772166+xlou978@users.noreply.github.com>
Co-authored-by: jaguima <jaguima@gmail.com>
Co-authored-by: mmalerba <mmalerba@google.com>
Co-authored-by: roboshoes <mail@mathias-paumgarten.com>
Co-authored-by: goldblatt <suzgoldblatt@gmail.com>
crisbeto added a commit that referenced this pull request Jan 24, 2020
* Adds a date selection model (#17363)

* Adds a date selection model

* Adds a date selection model

* Use MatDateSelectionModel to model the selected value in MatDatepickerInput (#17497)

* Make the selection model injectable and add an `overlaps` method (#17766)

* Adds a date selection model (#17363)

* Adds a date selection model

* Adds a date selection model

* Add overlaps function to date selection model

* Trying to incorporate the new type definition (#17942)

* incoporate new type definition

* fix test and clean up the types a bit

* update api gold

* fix some nits

* fix lint

Co-authored-by: mmalerba <mmalerba@google.com>

* refactor(datepicker): implement date selection model provider

Reworks the datepicker-related directives to move the source of the value into the new datepicker selection provider.

Co-authored-by: xlou978 <51772166+xlou978@users.noreply.github.com>
Co-authored-by: jaguima <jaguima@gmail.com>
Co-authored-by: mmalerba <mmalerba@google.com>
Co-authored-by: roboshoes <mail@mathias-paumgarten.com>
Co-authored-by: goldblatt <suzgoldblatt@gmail.com>
crisbeto added a commit that referenced this pull request Jan 24, 2020
* Adds a date selection model (#17363)

* Adds a date selection model

* Adds a date selection model

* Use MatDateSelectionModel to model the selected value in MatDatepickerInput (#17497)

* Make the selection model injectable and add an `overlaps` method (#17766)

* Adds a date selection model (#17363)

* Adds a date selection model

* Adds a date selection model

* Add overlaps function to date selection model

* Trying to incorporate the new type definition (#17942)

* incoporate new type definition

* fix test and clean up the types a bit

* update api gold

* fix some nits

* fix lint

Co-authored-by: mmalerba <mmalerba@google.com>

* refactor(datepicker): implement date selection model provider

Reworks the datepicker-related directives to move the source of the value into the new datepicker selection provider.

Co-authored-by: xlou978 <51772166+xlou978@users.noreply.github.com>
Co-authored-by: jaguima <jaguima@gmail.com>
Co-authored-by: mmalerba <mmalerba@google.com>
Co-authored-by: roboshoes <mail@mathias-paumgarten.com>
Co-authored-by: goldblatt <suzgoldblatt@gmail.com>
crisbeto added a commit to crisbeto/material2 that referenced this pull request Jan 24, 2020
…r#18090)

* Adds a date selection model (angular#17363)

* Adds a date selection model

* Adds a date selection model

* Use MatDateSelectionModel to model the selected value in MatDatepickerInput (angular#17497)

* Make the selection model injectable and add an `overlaps` method (angular#17766)

* Adds a date selection model (angular#17363)

* Adds a date selection model

* Adds a date selection model

* Add overlaps function to date selection model

* Trying to incorporate the new type definition (angular#17942)

* incoporate new type definition

* fix test and clean up the types a bit

* update api gold

* fix some nits

* fix lint

Co-authored-by: mmalerba <mmalerba@google.com>

* refactor(datepicker): implement date selection model provider

Reworks the datepicker-related directives to move the source of the value into the new datepicker selection provider.

Co-authored-by: xlou978 <51772166+xlou978@users.noreply.github.com>
Co-authored-by: jaguima <jaguima@gmail.com>
Co-authored-by: mmalerba <mmalerba@google.com>
Co-authored-by: roboshoes <mail@mathias-paumgarten.com>
Co-authored-by: goldblatt <suzgoldblatt@gmail.com>
crisbeto added a commit that referenced this pull request Jan 29, 2020
* Adds a date selection model (#17363)

* Adds a date selection model

* Adds a date selection model

* Use MatDateSelectionModel to model the selected value in MatDatepickerInput (#17497)

* Make the selection model injectable and add an `overlaps` method (#17766)

* Adds a date selection model (#17363)

* Adds a date selection model

* Adds a date selection model

* Add overlaps function to date selection model

* Trying to incorporate the new type definition (#17942)

* incoporate new type definition

* fix test and clean up the types a bit

* update api gold

* fix some nits

* fix lint

Co-authored-by: mmalerba <mmalerba@google.com>

* refactor(datepicker): implement date selection model provider

Reworks the datepicker-related directives to move the source of the value into the new datepicker selection provider.

Co-authored-by: xlou978 <51772166+xlou978@users.noreply.github.com>
Co-authored-by: jaguima <jaguima@gmail.com>
Co-authored-by: mmalerba <mmalerba@google.com>
Co-authored-by: roboshoes <mail@mathias-paumgarten.com>
Co-authored-by: goldblatt <suzgoldblatt@gmail.com>
crisbeto added a commit that referenced this pull request Feb 5, 2020
* Adds a date selection model (#17363)

* Adds a date selection model

* Adds a date selection model

* Use MatDateSelectionModel to model the selected value in MatDatepickerInput (#17497)

* Make the selection model injectable and add an `overlaps` method (#17766)

* Adds a date selection model (#17363)

* Adds a date selection model

* Adds a date selection model

* Add overlaps function to date selection model

* Trying to incorporate the new type definition (#17942)

* incoporate new type definition

* fix test and clean up the types a bit

* update api gold

* fix some nits

* fix lint

Co-authored-by: mmalerba <mmalerba@google.com>

* refactor(datepicker): implement date selection model provider

Reworks the datepicker-related directives to move the source of the value into the new datepicker selection provider.

Co-authored-by: xlou978 <51772166+xlou978@users.noreply.github.com>
Co-authored-by: jaguima <jaguima@gmail.com>
Co-authored-by: mmalerba <mmalerba@google.com>
Co-authored-by: roboshoes <mail@mathias-paumgarten.com>
Co-authored-by: goldblatt <suzgoldblatt@gmail.com>
@angular-automatic-lock-bot

Copy link
Copy Markdown

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 Feb 7, 2020
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 P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

5 participants