mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACS-8223] - Remove MomentDateTimePipe (#10602)
[ACS-8222] - Remove MomentDatePipe
This commit is contained in:
committed by
GitHub
parent
43f3a5b55f
commit
0c459227a8
@@ -1,33 +0,0 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
||||
*
|
||||
* 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 { Pipe, PipeTransform } from '@angular/core';
|
||||
|
||||
declare let moment: any;
|
||||
|
||||
/**
|
||||
* @deprecated this pipe is deprecated and should no longer be used
|
||||
*/
|
||||
@Pipe({
|
||||
name: 'adfMomentDate',
|
||||
standalone: true
|
||||
})
|
||||
export class MomentDatePipe implements PipeTransform {
|
||||
transform(value: any, dateFormat: string): any {
|
||||
return moment(value, dateFormat);
|
||||
}
|
||||
}
|
@@ -1,32 +0,0 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
||||
*
|
||||
* 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 { Pipe, PipeTransform } from '@angular/core';
|
||||
declare let moment: any;
|
||||
|
||||
/**
|
||||
* @deprecated this pipe is deprecated and should no longer be used
|
||||
*/
|
||||
@Pipe({
|
||||
name: 'adfMomentDateTime',
|
||||
standalone: true
|
||||
})
|
||||
export class MomentDateTimePipe implements PipeTransform {
|
||||
transform(value: any, dateFormat: string): any {
|
||||
return moment(value, dateFormat).add(moment(value, dateFormat).utcOffset(), 'minutes');
|
||||
}
|
||||
}
|
@@ -27,8 +27,6 @@ import { FileTypePipe } from './file-type.pipe';
|
||||
import { MultiValuePipe } from './multi-value.pipe';
|
||||
import { LocalizedDatePipe } from './localized-date.pipe';
|
||||
import { DecimalNumberPipe } from './decimal-number.pipe';
|
||||
import { MomentDatePipe } from './moment-date.pipe';
|
||||
import { MomentDateTimePipe } from './moment-datetime.pipe';
|
||||
import { DateTimePipe } from './date-time.pipe';
|
||||
import { TruncatePipe } from './truncate.pipe';
|
||||
|
||||
@@ -42,8 +40,6 @@ export const CORE_PIPES = [
|
||||
FileTypePipe,
|
||||
MultiValuePipe,
|
||||
DecimalNumberPipe,
|
||||
MomentDatePipe,
|
||||
MomentDateTimePipe,
|
||||
DateTimePipe,
|
||||
InitialUsernamePipe,
|
||||
TruncatePipe
|
||||
|
@@ -26,7 +26,5 @@ export * from './text-highlight.pipe';
|
||||
export * from './time-ago.pipe';
|
||||
export * from './user-initial.pipe';
|
||||
export * from './pipe.module';
|
||||
export * from './moment-date.pipe';
|
||||
export * from './moment-datetime.pipe';
|
||||
export * from './date-time.pipe';
|
||||
export * from './truncate.pipe';
|
||||
|
Reference in New Issue
Block a user