@alfresco/adf-process-services 8.4.0-20304984890 → 8.4.0-20369531079
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/adf-process-services.mjs +8 -105
- package/fesm2022/adf-process-services.mjs.map +1 -1
- package/lib/process-list/public-api.d.ts +1 -3
- package/lib/process-list/services/process.service.d.ts +2 -0
- package/lib/process.module.d.ts +54 -55
- package/package.json +4 -4
- package/lib/process-list/components/process-audit/process-audit.directive.d.ts +0 -49
|
@@ -116,6 +116,7 @@ class ProcessService {
|
|
|
116
116
|
}));
|
|
117
117
|
}
|
|
118
118
|
/**
|
|
119
|
+
* @deprecated This api is no longer used and will be removed in future releases.
|
|
119
120
|
* Fetches the Process Audit information as a PDF.
|
|
120
121
|
*
|
|
121
122
|
* @param processId ID of the target process
|
|
@@ -125,6 +126,7 @@ class ProcessService {
|
|
|
125
126
|
return from(this.processInstancesApi.getProcessAuditPdf(processId));
|
|
126
127
|
}
|
|
127
128
|
/**
|
|
129
|
+
* @deprecated This api is no longer used and will be removed in future releases.
|
|
128
130
|
* Fetches the Process Audit information in a JSON format.
|
|
129
131
|
*
|
|
130
132
|
* @param processId ID of the target process
|
|
@@ -9424,11 +9426,11 @@ class ProcessCommentsComponent {
|
|
|
9424
9426
|
provide: ADF_COMMENTS_SERVICE,
|
|
9425
9427
|
useClass: CommentProcessService
|
|
9426
9428
|
}
|
|
9427
|
-
], ngImport: i0, template: "<adf-comments \n [readOnly]=\"readOnly\"\n [id]=\"processInstanceId\"\n/>\n", dependencies: [{ kind: "
|
|
9429
|
+
], ngImport: i0, template: "<adf-comments \n [readOnly]=\"readOnly\"\n [id]=\"processInstanceId\"\n/>\n", dependencies: [{ kind: "component", type: CommentsComponent, selector: "adf-comments", inputs: ["id", "readOnly"], outputs: ["error", "commentAdded"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
9428
9430
|
}
|
|
9429
9431
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ProcessCommentsComponent, decorators: [{
|
|
9430
9432
|
type: Component,
|
|
9431
|
-
args: [{ selector: 'adf-process-instance-comments', imports: [
|
|
9433
|
+
args: [{ selector: 'adf-process-instance-comments', imports: [CommentsComponent], providers: [
|
|
9432
9434
|
{
|
|
9433
9435
|
provide: ADF_COMMENTS_SERVICE,
|
|
9434
9436
|
useClass: CommentProcessService
|
|
@@ -9991,107 +9993,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
9991
9993
|
* See the License for the specific language governing permissions and
|
|
9992
9994
|
* limitations under the License.
|
|
9993
9995
|
*/
|
|
9994
|
-
/*
|
|
9995
|
-
const JSON_FORMAT = 'json';
|
|
9996
|
-
const PDF_FORMAT = 'pdf';
|
|
9997
|
-
class ProcessAuditDirective {
|
|
9998
|
-
constructor(downloadService, processListService) {
|
|
9999
|
-
this.downloadService = downloadService;
|
|
10000
|
-
this.processListService = processListService;
|
|
10001
|
-
/** Name of the file to download (for PDF downloads). */
|
|
10002
|
-
this.fileName = 'Audit';
|
|
10003
|
-
/** Format for the audit information (can be "pdf" or "json"). */
|
|
10004
|
-
this.format = 'pdf';
|
|
10005
|
-
/** Enables downloading of the audit file on clicking. */
|
|
10006
|
-
this.download = true;
|
|
10007
|
-
/** Emitted when the decorated element is clicked. */
|
|
10008
|
-
this.clicked = new EventEmitter();
|
|
10009
|
-
/** Emitted when an error occurs. */
|
|
10010
|
-
this.error = new EventEmitter();
|
|
10011
|
-
}
|
|
10012
|
-
ngOnChanges() {
|
|
10013
|
-
if (!this.isValidType()) {
|
|
10014
|
-
this.setDefaultFormatType();
|
|
10015
|
-
}
|
|
10016
|
-
}
|
|
10017
|
-
isValidType() {
|
|
10018
|
-
return this.format && (this.isJsonFormat() || this.isPdfFormat());
|
|
10019
|
-
}
|
|
10020
|
-
setDefaultFormatType() {
|
|
10021
|
-
this.format = PDF_FORMAT;
|
|
10022
|
-
}
|
|
10023
|
-
/**
|
|
10024
|
-
* fetch the audit information in the requested format
|
|
10025
|
-
*/
|
|
10026
|
-
fetchAuditInfo() {
|
|
10027
|
-
if (this.isPdfFormat()) {
|
|
10028
|
-
this.processListService.fetchProcessAuditPdfById(this.processId).subscribe((blob) => {
|
|
10029
|
-
if (this.download) {
|
|
10030
|
-
this.downloadService.downloadBlob(blob, this.fileName + '.pdf');
|
|
10031
|
-
}
|
|
10032
|
-
this.clicked.emit({ format: this.format, value: blob, fileName: this.fileName });
|
|
10033
|
-
}, (err) => this.error.emit(err));
|
|
10034
|
-
}
|
|
10035
|
-
else {
|
|
10036
|
-
this.processListService.fetchProcessAuditJsonById(this.processId).subscribe((res) => this.clicked.emit({ format: this.format, value: res, fileName: this.fileName }), (err) => this.error.emit(err));
|
|
10037
|
-
}
|
|
10038
|
-
}
|
|
10039
|
-
onClickAudit() {
|
|
10040
|
-
this.fetchAuditInfo();
|
|
10041
|
-
}
|
|
10042
|
-
isJsonFormat() {
|
|
10043
|
-
return this.format === JSON_FORMAT;
|
|
10044
|
-
}
|
|
10045
|
-
isPdfFormat() {
|
|
10046
|
-
return this.format === PDF_FORMAT;
|
|
10047
|
-
}
|
|
10048
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ProcessAuditDirective, deps: [{ token: i1.DownloadService }, { token: ProcessService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
10049
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.17", type: ProcessAuditDirective, isStandalone: true, selector: "button[adf-process-audit]", inputs: { processId: ["process-id", "processId"], fileName: "fileName", format: "format", download: "download" }, outputs: { clicked: "clicked", error: "error" }, host: { attributes: { "role": "button" }, listeners: { "click": "onClickAudit()" } }, usesOnChanges: true, ngImport: i0 }); }
|
|
10050
|
-
}
|
|
10051
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ProcessAuditDirective, decorators: [{
|
|
10052
|
-
type: Directive,
|
|
10053
|
-
args: [{
|
|
10054
|
-
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
10055
|
-
selector: 'button[adf-process-audit]',
|
|
10056
|
-
host: {
|
|
10057
|
-
role: 'button',
|
|
10058
|
-
'(click)': 'onClickAudit()'
|
|
10059
|
-
}
|
|
10060
|
-
}]
|
|
10061
|
-
}], ctorParameters: () => [{ type: i1.DownloadService }, { type: ProcessService }], propDecorators: { processId: [{
|
|
10062
|
-
type: Input,
|
|
10063
|
-
args: ['process-id']
|
|
10064
|
-
}], fileName: [{
|
|
10065
|
-
type: Input
|
|
10066
|
-
}], format: [{
|
|
10067
|
-
type: Input
|
|
10068
|
-
}], download: [{
|
|
10069
|
-
type: Input
|
|
10070
|
-
}], clicked: [{
|
|
10071
|
-
type: Output
|
|
10072
|
-
}], error: [{
|
|
10073
|
-
type: Output
|
|
10074
|
-
}] } });
|
|
10075
|
-
|
|
10076
|
-
/*!
|
|
10077
|
-
* @license
|
|
10078
|
-
* Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
10079
|
-
*
|
|
10080
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10081
|
-
* you may not use this file except in compliance with the License.
|
|
10082
|
-
* You may obtain a copy of the License at
|
|
10083
|
-
*
|
|
10084
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10085
|
-
*
|
|
10086
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
10087
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
10088
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
10089
|
-
* See the License for the specific language governing permissions and
|
|
10090
|
-
* limitations under the License.
|
|
10091
|
-
*/
|
|
10092
|
-
// component
|
|
9996
|
+
/* @deprecated use individual exports */
|
|
10093
9997
|
const PROCESS_LIST_DIRECTIVES = [
|
|
10094
|
-
ProcessAuditDirective,
|
|
10095
9998
|
ProcessInstanceListComponent,
|
|
10096
9999
|
ProcessFiltersComponent,
|
|
10097
10000
|
ProcessInstanceDetailsComponent,
|
|
@@ -10944,11 +10847,11 @@ class ProcessModule {
|
|
|
10944
10847
|
};
|
|
10945
10848
|
}
|
|
10946
10849
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ProcessModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
10947
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.17", ngImport: i0, type: ProcessModule, imports: [ProcessCommentsComponent,
|
|
10850
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.17", ngImport: i0, type: ProcessModule, imports: [ProcessCommentsComponent, ProcessInstanceListComponent, ProcessFiltersComponent, ProcessInstanceDetailsComponent, ProcessInstanceHeaderComponent, ProcessInstanceTasksComponent, StartProcessInstanceComponent, TaskFormComponent, AttachFormComponent, ChecklistComponent, TaskFiltersComponent, TaskListComponent, TaskDetailsComponent, TaskHeaderComponent, StartTaskComponent, TaskStandaloneComponent, ClaimTaskDirective, UnclaimTaskDirective, TaskCommentsComponent, AppsListComponent, SelectAppsDialogComponent, TaskAttachmentListComponent, ProcessAttachmentListComponent, CreateProcessAttachmentComponent, AttachmentComponent, PeopleComponent, PeopleSearchComponent, PeopleSearchFieldComponent, PeopleSelectorComponent, PeopleListComponent, FormListComponent, FormCustomOutcomesComponent, StartFormComponent, FormComponent, AttachFileWidgetComponent, AttachFolderWidgetComponent, AttachFileWidgetDialogComponent, ContentWidgetComponent, DocumentWidgetComponent, DropdownWidgetComponent, DynamicTableWidgetComponent, DropdownEditorComponent, AmountEditorComponent, BooleanEditorComponent, DateEditorComponent, DateTimeEditorComponent, RowEditorComponent, TextEditorComponent, FileViewerWidgetComponent, FunctionalGroupWidgetComponent, PeopleWidgetComponent, RadioButtonsWidgetComponent, TypeaheadWidgetComponent, UploadWidgetComponent], exports: [ProcessCommentsComponent, ProcessInstanceListComponent, ProcessFiltersComponent, ProcessInstanceDetailsComponent, ProcessInstanceHeaderComponent, ProcessInstanceTasksComponent, StartProcessInstanceComponent, TaskFormComponent, AttachFormComponent, ChecklistComponent, TaskFiltersComponent, TaskListComponent, TaskDetailsComponent, TaskHeaderComponent, StartTaskComponent, TaskStandaloneComponent, ClaimTaskDirective, UnclaimTaskDirective, TaskCommentsComponent, AppsListComponent, SelectAppsDialogComponent, TaskAttachmentListComponent, ProcessAttachmentListComponent, CreateProcessAttachmentComponent, AttachmentComponent, PeopleComponent, PeopleSearchComponent, PeopleSearchFieldComponent, PeopleSelectorComponent, PeopleListComponent, FormListComponent, FormCustomOutcomesComponent, StartFormComponent, FormComponent, AttachFileWidgetComponent, AttachFolderWidgetComponent, AttachFileWidgetDialogComponent, ContentWidgetComponent, DocumentWidgetComponent, DropdownWidgetComponent, DynamicTableWidgetComponent, DropdownEditorComponent, AmountEditorComponent, BooleanEditorComponent, DateEditorComponent, DateTimeEditorComponent, RowEditorComponent, TextEditorComponent, FileViewerWidgetComponent, FunctionalGroupWidgetComponent, PeopleWidgetComponent, RadioButtonsWidgetComponent, TypeaheadWidgetComponent, UploadWidgetComponent] }); }
|
|
10948
10851
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ProcessModule, providers: [
|
|
10949
10852
|
provideTranslations('adf-process-services', 'assets/adf-process-services'),
|
|
10950
10853
|
{ provide: MAT_FORM_FIELD_DEFAULT_OPTIONS, useValue: { floatLabel: 'never' } }
|
|
10951
|
-
], imports: [PROCESS_COMMENTS_DIRECTIVES,
|
|
10854
|
+
], imports: [PROCESS_COMMENTS_DIRECTIVES, PROCESS_LIST_DIRECTIVES, TaskFormComponent, AttachFormComponent, ChecklistComponent, TaskFiltersComponent, TaskListComponent, TaskDetailsComponent, TaskHeaderComponent, StartTaskComponent, TaskStandaloneComponent, TASK_COMMENTS_DIRECTIVES, APPS_LIST_DIRECTIVES, ATTACHMENT_DIRECTIVES, PEOPLE_DIRECTIVES, FormListComponent, StartFormComponent, FormComponent, AttachFileWidgetComponent, AttachFolderWidgetComponent, AttachFileWidgetDialogComponent, ContentWidgetComponent, DocumentWidgetComponent, DropdownWidgetComponent, DynamicTableWidgetComponent, DropdownEditorComponent, AmountEditorComponent, BooleanEditorComponent, DateEditorComponent, DateTimeEditorComponent, RowEditorComponent, TextEditorComponent, FileViewerWidgetComponent, FunctionalGroupWidgetComponent, PeopleWidgetComponent, RadioButtonsWidgetComponent, TypeaheadWidgetComponent, UploadWidgetComponent] }); }
|
|
10952
10855
|
}
|
|
10953
10856
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ProcessModule, decorators: [{
|
|
10954
10857
|
type: NgModule,
|
|
@@ -11018,5 +10921,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
11018
10921
|
* Generated bundle index. Do not edit.
|
|
11019
10922
|
*/
|
|
11020
10923
|
|
|
11021
|
-
export { APPS_LIST_DIRECTIVES, APP_LIST_LAYOUT_GRID, APP_LIST_LAYOUT_LIST, ATTACHMENT_DIRECTIVES, ActivitiContentService, AmountEditorComponent, AppsListComponent, AppsProcessService, AttachFileWidgetComponent, AttachFileWidgetDialogComponent, AttachFileWidgetDialogService, AttachFolderWidgetComponent, AttachFormComponent, AttachmentComponent, BooleanEditorComponent, ChecklistComponent, ClaimTaskDirective, CommentProcessService, ContentWidgetComponent, CreateProcessAttachmentComponent, DYNAMIC_TABLE_WIDGET_DIRECTIVES, DateEditorComponent, DateTimeEditorComponent, DocumentWidgetComponent, DropdownEditorComponent, DropdownWidgetComponent, DynamicTableWidgetComponent, EcmModelService, EditorService, ExternalAlfrescoApiService, FORM_DIRECTIVES, FileViewerWidgetComponent, Form, FormComponent, FormCustomOutcomesComponent, FormDefinitionModel, FormListComponent, FunctionalGroupWidgetComponent, ModelService, PEOPLE_DIRECTIVES, PRESET_KEY, PROCESS_COMMENTS_DIRECTIVES, PROCESS_LIST_DIRECTIVES, PeopleComponent, PeopleListComponent, PeopleProcessService, PeopleSearchComponent, PeopleSearchFieldComponent, PeopleSelectorComponent, PeopleWidgetComponent, ProcessAttachmentListComponent,
|
|
10924
|
+
export { APPS_LIST_DIRECTIVES, APP_LIST_LAYOUT_GRID, APP_LIST_LAYOUT_LIST, ATTACHMENT_DIRECTIVES, ActivitiContentService, AmountEditorComponent, AppsListComponent, AppsProcessService, AttachFileWidgetComponent, AttachFileWidgetDialogComponent, AttachFileWidgetDialogService, AttachFolderWidgetComponent, AttachFormComponent, AttachmentComponent, BooleanEditorComponent, ChecklistComponent, ClaimTaskDirective, CommentProcessService, ContentWidgetComponent, CreateProcessAttachmentComponent, DYNAMIC_TABLE_WIDGET_DIRECTIVES, DateEditorComponent, DateTimeEditorComponent, DocumentWidgetComponent, DropdownEditorComponent, DropdownWidgetComponent, DynamicTableWidgetComponent, EcmModelService, EditorService, ExternalAlfrescoApiService, FORM_DIRECTIVES, FileViewerWidgetComponent, Form, FormComponent, FormCustomOutcomesComponent, FormDefinitionModel, FormListComponent, FunctionalGroupWidgetComponent, ModelService, PEOPLE_DIRECTIVES, PRESET_KEY, PROCESS_COMMENTS_DIRECTIVES, PROCESS_LIST_DIRECTIVES, PeopleComponent, PeopleListComponent, PeopleProcessService, PeopleSearchComponent, PeopleSearchFieldComponent, PeopleSelectorComponent, PeopleWidgetComponent, ProcessAttachmentListComponent, ProcessCommentsComponent, ProcessContentService, ProcessDefinitionService, ProcessFilterService, ProcessFiltersComponent, ProcessFormRenderingService, ProcessInstanceDetailsComponent, ProcessInstanceHeaderComponent, ProcessInstanceListComponent, ProcessInstanceTasksComponent, ProcessModule, ProcessService, ProcessUploadService, RadioButtonsWidgetComponent, RowEditorComponent, SelectAppsDialogComponent, StartFormComponent, StartProcessInstanceComponent, StartTaskComponent, TASK_COMMENTS_DIRECTIVES, TASK_LIST_DIRECTIVES, TaskAttachmentListComponent, TaskCommentsComponent, TaskCommentsService, TaskDetailsComponent, TaskDetailsEvent, TaskFilterService, TaskFiltersComponent, TaskFormComponent, TaskFormService, TaskHeaderComponent, TaskListComponent, TaskListService, TaskService, TaskStandaloneComponent, TaskUploadService, TextEditorComponent, TypeaheadWidgetComponent, UnclaimTaskDirective, UploadWidgetComponent, ValidateDynamicTableRowEvent, WIDGET_DIRECTIVES, processPresetsDefaultModel };
|
|
11022
10925
|
//# sourceMappingURL=adf-process-services.mjs.map
|