mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[APPS-2108] break direct dependency on moment.js (#9032)
* break direct dependency on moment.js * [ci:force] preserve moment for cli tools * remove MatMomentDatetimeModule from content * share dialog fixes * revert testing module changes * remove incorrect date modules * fix html
This commit is contained in:
@@ -17,7 +17,6 @@ module.exports = function (config) {
|
||||
},
|
||||
{ pattern: 'node_modules/chart.js/dist/Chart.js', included: true, watched: false },
|
||||
{ pattern: 'node_modules/raphael/raphael.min.js', included: true, watched: false },
|
||||
{ pattern: 'node_modules/moment/min/moment.min.js', included: true, watched: false },
|
||||
{ pattern: 'lib/core/src/lib/i18n/**/en.json', included: false, served: true, watched: false },
|
||||
{ pattern: 'lib/content-services/src/lib/i18n/**/en.json', included: false, served: true, watched: false },
|
||||
{ pattern: 'lib/process-services/src/lib/i18n/**/en.json', included: false, served: true, watched: false },
|
||||
|
@@ -24,8 +24,7 @@
|
||||
"@alfresco/js-api": ">=7.1.0-1437",
|
||||
"@alfresco/adf-core": ">=6.3.0",
|
||||
"@alfresco/adf-content-services": ">=6.3.0",
|
||||
"@ngx-translate/core": ">=14.0.0",
|
||||
"moment": ">=2.22.2"
|
||||
"@ngx-translate/core": ">=14.0.0"
|
||||
},
|
||||
"keywords": [
|
||||
"process-services",
|
||||
|
@@ -54,8 +54,8 @@ export class DateEditorComponent implements OnInit {
|
||||
constructor(private dateAdapter: DateAdapter<Date>) {}
|
||||
|
||||
ngOnInit() {
|
||||
const momentDateAdapter = this.dateAdapter as AdfDateFnsAdapter;
|
||||
momentDateAdapter.displayFormat = this.DATE_FORMAT;
|
||||
const dateAdapter = this.dateAdapter as AdfDateFnsAdapter;
|
||||
dateAdapter.displayFormat = this.DATE_FORMAT;
|
||||
|
||||
this.value = this.table.getCellValue(this.row, this.column) as Date;
|
||||
}
|
||||
|
Reference in New Issue
Block a user