mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-1968] [IE11] The login page is not loading and import fix (#2679)
* fix viewer script export insights and diagram remove requires svg fix new data adapter path dist working with diagrams commented out change use of minimatch fix unused import remove unused component fix test new import moment es6 and throw rxjs fix import analytics test fix imports rxjs new pacakging * fix after rebase * fix test upload services * exclude temporarily button event test * restore commented demo shell files * fix process spy
This commit is contained in:
35
lib/core/utils/moment-date-formats.model.ts
Normal file
35
lib/core/utils/moment-date-formats.model.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright 2016 Alfresco Software, Ltd.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { MatDateFormats } from '@angular/material';
|
||||
|
||||
export const MOMENT_DATE_FORMATS: MatDateFormats = {
|
||||
parse: {
|
||||
dateInput: 'DD/MM/YYYY'
|
||||
},
|
||||
display: {
|
||||
dateInput: 'DD/MM/YYYY',
|
||||
monthYearLabel: 'MMMM Y',
|
||||
dateA11yLabel: 'LL',
|
||||
monthYearA11yLabel: 'MMMM Y'
|
||||
}
|
||||
};
|
||||
|
||||
const dateNames: string[] = [];
|
||||
for (let date = 1; date <= 31; date++) {
|
||||
dateNames.push(String(date));
|
||||
}
|
@@ -15,21 +15,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { DateAdapter, MatDateFormats } from '@angular/material';
|
||||
import { DateAdapter } from '@angular/material';
|
||||
import { isMoment, Moment } from 'moment';
|
||||
import * as moment from 'moment';
|
||||
|
||||
export const MOMENT_DATE_FORMATS: MatDateFormats = {
|
||||
parse: {
|
||||
dateInput: 'DD/MM/YYYY'
|
||||
},
|
||||
display: {
|
||||
dateInput: 'DD/MM/YYYY',
|
||||
monthYearLabel: 'MMMM Y',
|
||||
dateA11yLabel: 'LL',
|
||||
monthYearA11yLabel: 'MMMM Y'
|
||||
}
|
||||
};
|
||||
import moment from 'moment-es6';
|
||||
|
||||
const dateNames: string[] = [];
|
||||
for (let date = 1; date <= 31; date++) {
|
||||
|
@@ -17,4 +17,5 @@
|
||||
|
||||
export * from './object-utils';
|
||||
export * from './file-utils';
|
||||
export * from './moment-date-formats.model';
|
||||
export * from './momentDateAdapter';
|
||||
|
Reference in New Issue
Block a user