-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Adds an abstract date selection model #13033
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
| abstract isValid(adapter: DateAdapter<D>): boolean; | ||
| } | ||
|
|
||
| export class MatSingleDateSelection<D> extends MatDateSelection<D> { |
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.
We should add an asDate method to this so we can get a date to pass back to the user
| } | ||
| } | ||
|
|
||
| export class MatRangeDateSelection<D> extends MatDateSelection<D> { |
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.
similarly, this can have an asRange method
This PR also includes a single date implementation of the selection model and the range implementation.
This PR also includes a single date implementation of the selection model and the range implementation.
This PR also includes a single date implementation of the selection model and the range implementation.
This PR also includes a single date implementation of the selection model and the range implementation.
This PR also includes a single date implementation of the selection model and the range implementation.
This PR also includes a single date implementation of the selection model and the range implementation.
This PR also includes a single date implementation of the selection model and the range implementation.
* adds an abstract date selection model and a single date and range implementation * moves adapter to contructor * adds asDate and asRange convertions * adds explicit constructors to concrete implementations * Adds an abstract date selection model (#13033) This PR also includes a single date implementation of the selection model and the range implementation. * WIP uses date selectio in calendar * Observable in MatDateSelection (#13037) This change adds an observable to the date selection. This allows the usage of a single date selection instance instead of creating multiple. * test fixes * small cleanup * cleanup * improves calendar body test spec * fixes tests in month view * fixes matCalendar tests * cleared up calendar body tests with date injection * indent * cleaning up some nits * fixes the final tests * update today programatically * remove unused file * nits
This PR also includes a single date implementation of the selection model and the range implementation.
* adds an abstract date selection model and a single date and range implementation * moves adapter to contructor * adds asDate and asRange convertions * adds explicit constructors to concrete implementations * Adds an abstract date selection model (#13033) This PR also includes a single date implementation of the selection model and the range implementation. * WIP uses date selectio in calendar * Observable in MatDateSelection (#13037) This change adds an observable to the date selection. This allows the usage of a single date selection instance instead of creating multiple. * test fixes * small cleanup * cleanup * improves calendar body test spec * fixes tests in month view * fixes matCalendar tests * cleared up calendar body tests with date injection * indent * cleaning up some nits * fixes the final tests * update today programatically * remove unused file * nits
This PR also includes a single date implementation of the selection model and the range implementation.
* adds an abstract date selection model and a single date and range implementation * moves adapter to contructor * adds asDate and asRange convertions * adds explicit constructors to concrete implementations * Adds an abstract date selection model (#13033) This PR also includes a single date implementation of the selection model and the range implementation. * WIP uses date selectio in calendar * Observable in MatDateSelection (#13037) This change adds an observable to the date selection. This allows the usage of a single date selection instance instead of creating multiple. * test fixes * small cleanup * cleanup * improves calendar body test spec * fixes tests in month view * fixes matCalendar tests * cleared up calendar body tests with date injection * indent * cleaning up some nits * fixes the final tests * update today programatically * remove unused file * nits
This PR also includes a single date implementation of the selection model and the range implementation.
* adds an abstract date selection model and a single date and range implementation * moves adapter to contructor * adds asDate and asRange convertions * adds explicit constructors to concrete implementations * Adds an abstract date selection model (angular#13033) This PR also includes a single date implementation of the selection model and the range implementation. * WIP uses date selectio in calendar * Observable in MatDateSelection (angular#13037) This change adds an observable to the date selection. This allows the usage of a single date selection instance instead of creating multiple. * test fixes * small cleanup * cleanup * improves calendar body test spec * fixes tests in month view * fixes matCalendar tests * cleared up calendar body tests with date injection * indent * cleaning up some nits * fixes the final tests * update today programatically * remove unused file * nits
This PR also includes a single date implementation of the selection model and the range implementation.
* adds an abstract date selection model and a single date and range implementation * moves adapter to contructor * adds asDate and asRange convertions * adds explicit constructors to concrete implementations * Adds an abstract date selection model (#13033) This PR also includes a single date implementation of the selection model and the range implementation. * WIP uses date selectio in calendar * Observable in MatDateSelection (#13037) This change adds an observable to the date selection. This allows the usage of a single date selection instance instead of creating multiple. * test fixes * small cleanup * cleanup * improves calendar body test spec * fixes tests in month view * fixes matCalendar tests * cleared up calendar body tests with date injection * indent * cleaning up some nits * fixes the final tests * update today programatically * remove unused file * nits
|
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. |
This PR also includes a single date implementation of the selection model and the range implementation.