Skip to content

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

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

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Jan 2, 2020

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
@crisbeto crisbeto force-pushed the date-selection-model-implementation branch from 472b12d to a82b6d4 Compare January 7, 2020 05:52
@crisbeto
Copy link
Member Author

crisbeto commented Jan 7, 2020

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
Copy link
Member Author

crisbeto commented Jan 7, 2020

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

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants