"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/lib/core/datetime/native-date-adapter.ts" between
material2-7.3.6.tar.gz and material2-7.3.7.tar.gz

About: material2 offers Material Design components for Angular.

native-date-adapter.ts  (material2-7.3.6):native-date-adapter.ts  (material2-7.3.7)
skipping to change at line 15 skipping to change at line 15
* Use of this source code is governed by an MIT-style license that can be * Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license * found in the LICENSE file at https://angular.io/license
*/ */
import {Platform} from '@angular/cdk/platform'; import {Platform} from '@angular/cdk/platform';
import {Inject, Injectable, Optional} from '@angular/core'; import {Inject, Injectable, Optional} from '@angular/core';
import {DateAdapter, MAT_DATE_LOCALE} from './date-adapter'; import {DateAdapter, MAT_DATE_LOCALE} from './date-adapter';
// TODO(mmalerba): Remove when we no longer support safari 9. // TODO(mmalerba): Remove when we no longer support safari 9.
/** Whether the browser supports the Intl API. */ /** Whether the browser supports the Intl API. */
const SUPPORTS_INTL_API = typeof Intl != 'undefined'; let SUPPORTS_INTL_API: boolean;
// We need a try/catch around the reference to `Intl`, because accessing it in s
ome cases can
// cause IE to throw. These cases are tied to particular versions of Windows and
can happen if
// the consumer is providing a polyfilled `Map`. See:
// https://github.com/Microsoft/ChakraCore/issues/3189
// https://github.com/angular/material2/issues/15687
try {
SUPPORTS_INTL_API = typeof Intl != 'undefined';
} catch {
SUPPORTS_INTL_API = false;
}
/** The default month names to use if Intl API is not available. */ /** The default month names to use if Intl API is not available. */
const DEFAULT_MONTH_NAMES = { const DEFAULT_MONTH_NAMES = {
'long': [ 'long': [
'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'S eptember', 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'S eptember',
'October', 'November', 'December' 'October', 'November', 'December'
], ],
'short': ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct' , 'Nov', 'Dec'], 'short': ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct' , 'Nov', 'Dec'],
'narrow': ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'] 'narrow': ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D']
}; };
 End of changes. 1 change blocks. 
1 lines changed or deleted 14 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)