mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix types
This commit is contained in:
@@ -67,13 +67,13 @@ export class AnalyticsGeneratorComponent implements OnChanges {
|
|||||||
|
|
||||||
ngOnChanges() {
|
ngOnChanges() {
|
||||||
if (this.reportId && this.reportParamQuery) {
|
if (this.reportId && this.reportParamQuery) {
|
||||||
this.generateReport(this.reportId, this.reportParamQuery);
|
this.generateReport(`${this.reportId}`, this.reportParamQuery);
|
||||||
} else {
|
} else {
|
||||||
this.reset();
|
this.reset();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public generateReport(reportId, reportParamQuery) {
|
public generateReport(reportId: string, reportParamQuery: any) {
|
||||||
if (reportParamQuery === undefined || reportParamQuery === null) {
|
if (reportParamQuery === undefined || reportParamQuery === null) {
|
||||||
reportParamQuery = {};
|
reportParamQuery = {};
|
||||||
}
|
}
|
||||||
|
@@ -315,7 +315,7 @@ export class AnalyticsReportParametersComponent implements OnInit, OnChanges, On
|
|||||||
|
|
||||||
public editTitle() {
|
public editTitle() {
|
||||||
this.analyticsService
|
this.analyticsService
|
||||||
.updateReport(this.reportParameters.id, this.reportParameters.name)
|
.updateReport(`${this.reportParameters.id}`, this.reportParameters.name)
|
||||||
.subscribe(
|
.subscribe(
|
||||||
() => {
|
() => {
|
||||||
this.editDisable();
|
this.editDisable();
|
||||||
|
@@ -54,8 +54,8 @@ export class AnalyticsComponent implements OnChanges {
|
|||||||
this.analyticsGenerator.reset();
|
this.analyticsGenerator.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
public showReport($event) {
|
public showReport($event: any) {
|
||||||
this.analyticsGenerator.generateReport(this.reportId, $event);
|
this.analyticsGenerator.generateReport(`${this.reportId}`, $event);
|
||||||
}
|
}
|
||||||
|
|
||||||
public reset() {
|
public reset() {
|
||||||
|
@@ -182,7 +182,7 @@ export class AnalyticsService {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
getReportsByParams(reportId: number, paramsQuery: any): Observable<any> {
|
getReportsByParams(reportId: string, paramsQuery: any): Observable<any> {
|
||||||
return from(this.apiService.getInstance().activiti.reportApi.getReportsByParams(reportId, paramsQuery))
|
return from(this.apiService.getInstance().activiti.reportApi.getReportsByParams(reportId, paramsQuery))
|
||||||
.pipe(
|
.pipe(
|
||||||
map((res: any) => {
|
map((res: any) => {
|
||||||
@@ -217,7 +217,7 @@ export class AnalyticsService {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
updateReport(reportId: number, name: string): Observable<any> {
|
updateReport(reportId: string, name: string): Observable<any> {
|
||||||
return from(this.apiService.getInstance().activiti.reportApi.updateReport(reportId, name))
|
return from(this.apiService.getInstance().activiti.reportApi.updateReport(reportId, name))
|
||||||
.pipe(
|
.pipe(
|
||||||
map(() => this.logService.info('upload')),
|
map(() => this.logService.info('upload')),
|
||||||
|
6
package-lock.json
generated
6
package-lock.json
generated
@@ -76,9 +76,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@alfresco/js-api": {
|
"@alfresco/js-api": {
|
||||||
"version": "3.6.0-7e8896bfba998c91066a9f4752af2ba4b7ea2aa2",
|
"version": "3.6.0-ff07b76cae68703ca071ade23be3d400f7ff55f0",
|
||||||
"resolved": "https://registry.npmjs.org/@alfresco/js-api/-/js-api-3.6.0-7e8896bfba998c91066a9f4752af2ba4b7ea2aa2.tgz",
|
"resolved": "https://registry.npmjs.org/@alfresco/js-api/-/js-api-3.6.0-ff07b76cae68703ca071ade23be3d400f7ff55f0.tgz",
|
||||||
"integrity": "sha512-oIpYPWDwsiGGM0glZTY2KqIw3/DTYtP8QxR2/MqlMDp76VBfiQk3vIJGS04tQbtoUqC24nU59TwcPp3o6Pfn/A==",
|
"integrity": "sha512-vwwf3S5nCmWP1o8RsQz2HCjk8fyEmGTXgCusyc//gPUJIyuYIihuqcqS14DVoSJKicY0TMo6vlsx7RKdl+ddTQ==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"event-emitter": "0.3.4",
|
"event-emitter": "0.3.4",
|
||||||
"minimatch": "3.0.4",
|
"minimatch": "3.0.4",
|
||||||
|
@@ -82,7 +82,7 @@
|
|||||||
"@alfresco/adf-process-services": "3.6.0-1d7ef6209592e8703cdbaf48d4340d141fa461a5",
|
"@alfresco/adf-process-services": "3.6.0-1d7ef6209592e8703cdbaf48d4340d141fa461a5",
|
||||||
"@alfresco/adf-process-services-cloud": "3.6.0-1d7ef6209592e8703cdbaf48d4340d141fa461a5",
|
"@alfresco/adf-process-services-cloud": "3.6.0-1d7ef6209592e8703cdbaf48d4340d141fa461a5",
|
||||||
"@alfresco/adf-testing": "3.6.0-1d7ef6209592e8703cdbaf48d4340d141fa461a5",
|
"@alfresco/adf-testing": "3.6.0-1d7ef6209592e8703cdbaf48d4340d141fa461a5",
|
||||||
"@alfresco/js-api": "3.6.0-7e8896bfba998c91066a9f4752af2ba4b7ea2aa2",
|
"@alfresco/js-api": "3.6.0-ff07b76cae68703ca071ade23be3d400f7ff55f0",
|
||||||
"@angular/animations": "^7.2.15",
|
"@angular/animations": "^7.2.15",
|
||||||
"@angular/cdk": "7.3.7",
|
"@angular/cdk": "7.3.7",
|
||||||
"@angular/common": "^7.2.15",
|
"@angular/common": "^7.2.15",
|
||||||
|
Reference in New Issue
Block a user