Skip to content

refactor(datepicker): set up date range picker classes #18292

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

Merged
merged 1 commit into from
Jan 29, 2020

Conversation

crisbeto
Copy link
Member

Moves some things around to set up the date range picker. Includes:

  • Moves all of the datepicker logic into a base class so that it can be reused between the single and range selection.
  • Makes the input being passed into a datepicker generic so that we can strongly type MatDatepicker to MatDatepickerInput and MatDateRangePicker to MatDateRangeInput.
  • Sets up min, max and date filter validation for the date range picker.
  • Hooks up the date range picker to the date range input.
  • Makes it so that a generic datepicker can be passed to a datepicker toggle.
  • Adds a DateFilterFn type so we don't have to repeat the signature for the filter function everywhere.

Note that while picking a date range somewhat works now, it's still a bit broken. The primary goal of these changes was to have all of components in place and wired up so that we can start working on the UI in follow-up PRs.

@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 26, 2020
@crisbeto crisbeto requested a review from mmalerba as a code owner January 26, 2020 13:39
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jan 26, 2020
Moves some things around to set up the date range picker. Includes:
* Moves all of the datepicker logic into a base class so that it can be reused between the single and range selection.
* Makes the input being passed into a datepicker generic so that we can strongly type `MatDatepicker` to `MatDatepickerInput` and `MatDateRangePicker` to `MatDateRangeInput`.
* Sets up min, max and date filter validation for the date range picker.
* Hooks up the date range picker to the date range input.
* Makes it so that a generic datepicker can be passed to a datepicker toggle.
* Adds a `DateFilterFn` type so we don't have to repeat the signature for the filter function everywhere.

Note that while picking a date range somewhat works now, it's still a bit broken. The primary goal of these changes was to have all of components in place and wired up so that we can start working on the UI in follow-up PRs.
@crisbeto crisbeto force-pushed the date-range-picker-base branch from 09a936b to f071c88 Compare January 29, 2020 19:27
@mmalerba mmalerba added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Jan 29, 2020
@crisbeto crisbeto merged commit 3ad4fbb into angular:date-range Jan 29, 2020
crisbeto added a commit that referenced this pull request Jan 29, 2020
Moves some things around to set up the date range picker. Includes:
* Moves all of the datepicker logic into a base class so that it can be reused between the single and range selection.
* Makes the input being passed into a datepicker generic so that we can strongly type `MatDatepicker` to `MatDatepickerInput` and `MatDateRangePicker` to `MatDateRangeInput`.
* Sets up min, max and date filter validation for the date range picker.
* Hooks up the date range picker to the date range input.
* Makes it so that a generic datepicker can be passed to a datepicker toggle.
* Adds a `DateFilterFn` type so we don't have to repeat the signature for the filter function everywhere.

Note that while picking a date range somewhat works now, it's still a bit broken. The primary goal of these changes was to have all of components in place and wired up so that we can start working on the UI in follow-up PRs.
crisbeto added a commit that referenced this pull request Feb 5, 2020
Moves some things around to set up the date range picker. Includes:
* Moves all of the datepicker logic into a base class so that it can be reused between the single and range selection.
* Makes the input being passed into a datepicker generic so that we can strongly type `MatDatepicker` to `MatDatepickerInput` and `MatDateRangePicker` to `MatDateRangeInput`.
* Sets up min, max and date filter validation for the date range picker.
* Hooks up the date range picker to the date range input.
* Makes it so that a generic datepicker can be passed to a datepicker toggle.
* Adds a `DateFilterFn` type so we don't have to repeat the signature for the filter function everywhere.

Note that while picking a date range somewhat works now, it's still a bit broken. The primary goal of these changes was to have all of components in place and wired up so that we can start working on the UI in follow-up PRs.
crisbeto added a commit that referenced this pull request Feb 17, 2020
Moves some things around to set up the date range picker. Includes:
* Moves all of the datepicker logic into a base class so that it can be reused between the single and range selection.
* Makes the input being passed into a datepicker generic so that we can strongly type `MatDatepicker` to `MatDatepickerInput` and `MatDateRangePicker` to `MatDateRangeInput`.
* Sets up min, max and date filter validation for the date range picker.
* Hooks up the date range picker to the date range input.
* Makes it so that a generic datepicker can be passed to a datepicker toggle.
* Adds a `DateFilterFn` type so we don't have to repeat the signature for the filter function everywhere.

Note that while picking a date range somewhat works now, it's still a bit broken. The primary goal of these changes was to have all of components in place and wired up so that we can start working on the UI in follow-up PRs.
crisbeto added a commit to crisbeto/material2 that referenced this pull request Feb 17, 2020
Moves some things around to set up the date range picker. Includes:
* Moves all of the datepicker logic into a base class so that it can be reused between the single and range selection.
* Makes the input being passed into a datepicker generic so that we can strongly type `MatDatepicker` to `MatDatepickerInput` and `MatDateRangePicker` to `MatDateRangeInput`.
* Sets up min, max and date filter validation for the date range picker.
* Hooks up the date range picker to the date range input.
* Makes it so that a generic datepicker can be passed to a datepicker toggle.
* Adds a `DateFilterFn` type so we don't have to repeat the signature for the filter function everywhere.

Note that while picking a date range somewhat works now, it's still a bit broken. The primary goal of these changes was to have all of components in place and wired up so that we can start working on the UI in follow-up PRs.
crisbeto added a commit that referenced this pull request Feb 26, 2020
Moves some things around to set up the date range picker. Includes:
* Moves all of the datepicker logic into a base class so that it can be reused between the single and range selection.
* Makes the input being passed into a datepicker generic so that we can strongly type `MatDatepicker` to `MatDatepickerInput` and `MatDateRangePicker` to `MatDateRangeInput`.
* Sets up min, max and date filter validation for the date range picker.
* Hooks up the date range picker to the date range input.
* Makes it so that a generic datepicker can be passed to a datepicker toggle.
* Adds a `DateFilterFn` type so we don't have to repeat the signature for the filter function everywhere.

Note that while picking a date range somewhat works now, it's still a bit broken. The primary goal of these changes was to have all of components in place and wired up so that we can start working on the UI in follow-up PRs.
@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 29, 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.

3 participants