mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-] update library to use new js-api 3.0.0 (#4097)
This commit is contained in:
committed by
Eugenio Romano
parent
2acd1b4e26
commit
3ef7d3b7ea
@@ -101,8 +101,8 @@ export class DateRangeWidgetComponent implements OnInit {
|
||||
dateCheck(formControl: AbstractControl) {
|
||||
let startDate = moment(formControl.get('startDate').value);
|
||||
let endDate = moment(formControl.get('endDate').value);
|
||||
let result = startDate.isAfter(endDate);
|
||||
return result ? {'greaterThan': true} : null;
|
||||
let isAfterCheck = startDate.isAfter(endDate);
|
||||
return isAfterCheck ? {'greaterThan': true} : null;
|
||||
}
|
||||
|
||||
isStartDateGreaterThanEndDate() {
|
||||
|
@@ -68,7 +68,7 @@ describe('AnalyticsService', () => {
|
||||
(report) => {
|
||||
expect(report).toBeDefined();
|
||||
expect(report).not.toBeNull();
|
||||
expect(report.id).toEqual(2);
|
||||
expect(report.id).toEqual('2');
|
||||
done();
|
||||
}
|
||||
);
|
||||
|
@@ -9,7 +9,7 @@
|
||||
"entryFile": "./public-api.ts",
|
||||
"flatModuleFile": "adf-insights",
|
||||
"umdModuleIds": {
|
||||
"alfresco-js-api": "alfresco-js-api",
|
||||
"@alfresco/js-api": "@alfresco/js-ap",
|
||||
"minimatch": "minimatch",
|
||||
"@angular/platform-browser/animations": "@angular/platform-browser/animations",
|
||||
"@angular/material": "@angular/material",
|
||||
|
@@ -29,7 +29,7 @@
|
||||
"rxjs": ">=6.2.2",
|
||||
"@alfresco/adf-core": ">=2.7.0-beta5",
|
||||
"@alfresco/adf-content-services": ">=2.7.0-beta5",
|
||||
"@ngx-translate/core": ">=10.0.2",
|
||||
"@ngx-translate/core": ">=11.0.0",
|
||||
"chart.js": ">=2.5.0",
|
||||
"core-js": ">=2.5.4",
|
||||
"hammerjs": ">=2.0.8",
|
||||
|
Reference in New Issue
Block a user