-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(datepicker): replace SimpleDate & CalendarLocale with DateAd…
…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
- Loading branch information
Showing
25 changed files
with
491 additions
and
873 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
import {NgModule} from '@angular/core'; | ||
import {DefaultCalendarLocale, CalendarLocale} from './calendar-locale'; | ||
import {DateAdapter} from './date-adapter'; | ||
import {NativeDateAdapter} from './native-date-adapter'; | ||
|
||
|
||
export * from './calendar-locale'; | ||
export * from './date-adapter'; | ||
export * from './simple-date'; | ||
export * from './native-date-adapter'; | ||
|
||
|
||
@NgModule({ | ||
providers: [{provide: CalendarLocale, useClass: DefaultCalendarLocale}], | ||
providers: [{provide: DateAdapter, useClass: NativeDateAdapter}], | ||
}) | ||
export class DatetimeModule {} |
Oops, something went wrong.