/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/material/core/datetime/native-date-formats.ts
24 строки
750 B
Kristiyan Kostadinov
refactor(material/core): add methods to date adapter
30 сен 2024, 20:43
30 сен 2024, 20:43
78ed8b8
Код
Авторство
О чём код?
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {MatDateFormats} from './date-formats'; export const MAT_NATIVE_DATE_FORMATS: MatDateFormats = { parse: { dateInput: null, timeInput: null, }, display: { dateInput: {year: 'numeric', month: 'numeric', day: 'numeric'}, timeInput: {hour: 'numeric', minute: 'numeric'}, monthYearLabel: {year: 'numeric', month: 'short'}, dateA11yLabel: {year: 'numeric', month: 'long', day: 'numeric'}, monthYearA11yLabel: {year: 'numeric', month: 'long'}, timeOptionLabel: {hour: 'numeric', minute: 'numeric'}, }, };