[AAE-9200] - Be able to customise task/process list and header date f… (#7711)

* [AAE-9200] - Be able to customise task/process list and header date formats

* Update json schema

* Revert schema changes

* Update task and process name translation values

* move task/process header date formats inside header config

* Add documentation

* Update documentation

* Use a fixed timezone for unit tests of core and cloud

* Fix e2e due to column rename

* More e2e fixes due to column rename, remove test covered by unit test
This commit is contained in:
Ardit Domi
2022-07-19 15:46:31 +02:00
committed by GitHub
parent 46926ed818
commit fa587510bd
21 changed files with 171 additions and 54 deletions

View File

@@ -41,8 +41,7 @@ import { takeUntil } from 'rxjs/operators';
<ng-template #standard_date>
<span
class="adf-datatable-cell-value"
title="{{ tooltip | adfLocalizedDate: format }}"
class="adf-datatable-cell-value"
title="{{ tooltip | adfLocalizedDate: tooltipDateFormat }}"
[attr.aria-label]="value$ | async | adfLocalizedDate: format">
{{ value$ | async | adfLocalizedDate: format }}
</span>
@@ -57,6 +56,7 @@ export class DateCellComponent extends DataTableCellComponent {
currentLocale: string;
dateFormat: string;
tooltipDateFormat: string;
get format(): string {
if (this.column) {
@@ -73,6 +73,7 @@ export class DateCellComponent extends DataTableCellComponent {
super(alfrescoApiService);
this.dateFormat = appConfig.get('dateValues.defaultDateFormat', DateCellComponent.DATE_FORMAT);
this.tooltipDateFormat = appConfig.get('dateValues.defaultTooltipDateFormat', DateCellComponent.DATE_FORMAT);
if (userPreferenceService) {
userPreferenceService
.select(UserPreferenceValues.Locale)