@alfresco/adf-process-services 8.6.0-27406412358 → 9.0.0

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.
Files changed (130) hide show
  1. package/fesm2022/adf-process-services.mjs +704 -771
  2. package/fesm2022/adf-process-services.mjs.map +1 -1
  3. package/index.d.ts +4486 -3
  4. package/lib/form/widgets/dropdown/dropdown.widget.scss +6 -0
  5. package/lib/form/widgets/functional-group/functional-group.widget.scss +6 -0
  6. package/lib/form/widgets/people/people.widget.scss +6 -0
  7. package/lib/form/widgets/typeahead/typeahead.widget.scss +6 -0
  8. package/lib/styles/_mixins.scss +7 -0
  9. package/lib/task-list/components/start-task/start-task.component.scss +5 -5
  10. package/package.json +14 -14
  11. package/lib/app-list/apps-list.component.d.ts +0 -91
  12. package/lib/app-list/icon.model.d.ts +0 -27
  13. package/lib/app-list/index.d.ts +0 -17
  14. package/lib/app-list/public-api.d.ts +0 -22
  15. package/lib/app-list/select-apps-dialog/select-apps-dialog.component.d.ts +0 -13
  16. package/lib/attachment/create-process-attachment/create-process-attachment.component.d.ts +0 -38
  17. package/lib/attachment/create-task-attachment/create-task-attachment.component.d.ts +0 -38
  18. package/lib/attachment/index.d.ts +0 -17
  19. package/lib/attachment/process-attachment-list/process-attachment-list.component.d.ts +0 -64
  20. package/lib/attachment/public-api.d.ts +0 -25
  21. package/lib/attachment/task-attachment-list/task-attachment-list.component.d.ts +0 -60
  22. package/lib/compat/types.d.ts +0 -31
  23. package/lib/form/events/validate-dynamic-table-row.event.d.ts +0 -25
  24. package/lib/form/form-custom-outcomes.component.d.ts +0 -5
  25. package/lib/form/form-list/form-list.component.d.ts +0 -29
  26. package/lib/form/form.component.d.ts +0 -109
  27. package/lib/form/index.d.ts +0 -17
  28. package/lib/form/model/form-definition.model.d.ts +0 -25
  29. package/lib/form/process-form-rendering.service.d.ts +0 -7
  30. package/lib/form/public-api.d.ts +0 -27
  31. package/lib/form/services/activiti-alfresco.service.d.ts +0 -41
  32. package/lib/form/services/ecm-model.service.d.ts +0 -30
  33. package/lib/form/services/editor.service.d.ts +0 -41
  34. package/lib/form/services/external-alfresco-api.service.d.ts +0 -9
  35. package/lib/form/services/index.d.ts +0 -25
  36. package/lib/form/services/model.service.d.ts +0 -59
  37. package/lib/form/services/process-content.service.d.ts +0 -132
  38. package/lib/form/services/process-definition.service.d.ts +0 -44
  39. package/lib/form/services/task-form.service.d.ts +0 -69
  40. package/lib/form/services/task.service.d.ts +0 -32
  41. package/lib/form/start-form/start-form.component.d.ts +0 -50
  42. package/lib/form/widgets/content-widget/attach-file-widget-dialog-component.interface.d.ts +0 -31
  43. package/lib/form/widgets/content-widget/attach-file-widget-dialog.component.d.ts +0 -48
  44. package/lib/form/widgets/content-widget/attach-file-widget-dialog.service.d.ts +0 -47
  45. package/lib/form/widgets/content-widget/attach-file-widget.component.d.ts +0 -64
  46. package/lib/form/widgets/content-widget/attach-folder-widget.component.d.ts +0 -33
  47. package/lib/form/widgets/content-widget/index.d.ts +0 -17
  48. package/lib/form/widgets/content-widget/public-api.d.ts +0 -21
  49. package/lib/form/widgets/document/content.widget.d.ts +0 -50
  50. package/lib/form/widgets/document/document.widget.d.ts +0 -26
  51. package/lib/form/widgets/dropdown/dropdown.widget.d.ts +0 -48
  52. package/lib/form/widgets/dynamic-table/dynamic-table.widget.d.ts +0 -51
  53. package/lib/form/widgets/dynamic-table/editors/amount/amount.editor.d.ts +0 -31
  54. package/lib/form/widgets/dynamic-table/editors/boolean/boolean.editor.d.ts +0 -12
  55. package/lib/form/widgets/dynamic-table/editors/date/date.editor.d.ts +0 -20
  56. package/lib/form/widgets/dynamic-table/editors/datetime/datetime.editor.d.ts +0 -20
  57. package/lib/form/widgets/dynamic-table/editors/dropdown/dropdown.editor.d.ts +0 -39
  58. package/lib/form/widgets/dynamic-table/editors/models/cell-validator.model.d.ts +0 -23
  59. package/lib/form/widgets/dynamic-table/editors/models/date-cell-validator-model.d.ts +0 -26
  60. package/lib/form/widgets/dynamic-table/editors/models/dynamic-row-validation-summary.model.d.ts +0 -21
  61. package/lib/form/widgets/dynamic-table/editors/models/dynamic-table-column-option.model.d.ts +0 -20
  62. package/lib/form/widgets/dynamic-table/editors/models/dynamic-table-column.model.d.ts +0 -37
  63. package/lib/form/widgets/dynamic-table/editors/models/dynamic-table-row.model.d.ts +0 -21
  64. package/lib/form/widgets/dynamic-table/editors/models/dynamic-table.widget.model.d.ts +0 -40
  65. package/lib/form/widgets/dynamic-table/editors/models/number-cell-validator.model.d.ts +0 -26
  66. package/lib/form/widgets/dynamic-table/editors/models/required-cell-validator.model.d.ts +0 -25
  67. package/lib/form/widgets/dynamic-table/editors/row-editor/row.editor.d.ts +0 -42
  68. package/lib/form/widgets/dynamic-table/editors/text/text.editor.d.ts +0 -31
  69. package/lib/form/widgets/dynamic-table/index.d.ts +0 -17
  70. package/lib/form/widgets/dynamic-table/public-api.d.ts +0 -34
  71. package/lib/form/widgets/file-viewer/file-viewer.widget.d.ts +0 -22
  72. package/lib/form/widgets/functional-group/functional-group.widget.d.ts +0 -40
  73. package/lib/form/widgets/index.d.ts +0 -17
  74. package/lib/form/widgets/people/people.widget.d.ts +0 -44
  75. package/lib/form/widgets/public-api.d.ts +0 -31
  76. package/lib/form/widgets/radio-buttons/radio-buttons.widget.d.ts +0 -33
  77. package/lib/form/widgets/typeahead/typeahead.widget.d.ts +0 -39
  78. package/lib/form/widgets/upload/upload.widget.d.ts +0 -39
  79. package/lib/people/components/people/people.component.d.ts +0 -50
  80. package/lib/people/components/people-list/people-list.component.d.ts +0 -42
  81. package/lib/people/components/people-search/people-search.component.d.ts +0 -44
  82. package/lib/people/components/people-search-field/people-search-field.component.d.ts +0 -25
  83. package/lib/people/components/people-selector/people-selector.component.d.ts +0 -40
  84. package/lib/people/helpers/get-display-user.d.ts +0 -17
  85. package/lib/people/index.d.ts +0 -17
  86. package/lib/people/interfaces/perform-search-callback.interface.d.ts +0 -19
  87. package/lib/people/public-api.d.ts +0 -28
  88. package/lib/process-comments/index.d.ts +0 -20
  89. package/lib/process-comments/process-comments.component.d.ts +0 -9
  90. package/lib/process-comments/services/comment-process.service.d.ts +0 -27
  91. package/lib/process-list/components/process-filters/process-filters.component.d.ts +0 -109
  92. package/lib/process-list/components/process-instance-details/process-instance-details.component.d.ts +0 -40
  93. package/lib/process-list/components/process-instance-header/process-instance-header.component.d.ts +0 -39
  94. package/lib/process-list/components/process-instance-tasks/process-instance-tasks.component.d.ts +0 -48
  95. package/lib/process-list/components/process-list/process-list.component.d.ts +0 -141
  96. package/lib/process-list/components/start-process/start-process.component.d.ts +0 -117
  97. package/lib/process-list/index.d.ts +0 -17
  98. package/lib/process-list/public-api.d.ts +0 -31
  99. package/lib/process-list/services/process-filter.service.d.ts +0 -73
  100. package/lib/process-list/services/process.service.d.ts +0 -148
  101. package/lib/process.module.d.ts +0 -89
  102. package/lib/services/apps-process.service.d.ts +0 -22
  103. package/lib/services/people-process.service.d.ts +0 -65
  104. package/lib/services/task-comments.service.d.ts +0 -45
  105. package/lib/task-comments/index.d.ts +0 -20
  106. package/lib/task-comments/task-comments.component.d.ts +0 -9
  107. package/lib/task-list/components/attach-form/attach-form.component.d.ts +0 -50
  108. package/lib/task-list/components/checklist/checklist.component.d.ts +0 -51
  109. package/lib/task-list/components/start-task/start-task.component.d.ts +0 -64
  110. package/lib/task-list/components/task-details/task-details.component.d.ts +0 -131
  111. package/lib/task-list/components/task-filters/task-filters.component.d.ts +0 -108
  112. package/lib/task-list/components/task-form/claim-task.directive.d.ts +0 -35
  113. package/lib/task-list/components/task-form/task-form.component.d.ts +0 -119
  114. package/lib/task-list/components/task-form/unclaim-task.directive.d.ts +0 -35
  115. package/lib/task-list/components/task-header/task-header.component.d.ts +0 -148
  116. package/lib/task-list/components/task-list/task-list.component.d.ts +0 -167
  117. package/lib/task-list/components/task-standalone/task-standalone.component.d.ts +0 -44
  118. package/lib/task-list/index.d.ts +0 -17
  119. package/lib/task-list/models/form.model.d.ts +0 -24
  120. package/lib/task-list/models/task-details.event.d.ts +0 -25
  121. package/lib/task-list/models/task-preset.model.d.ts +0 -31
  122. package/lib/task-list/models/user-event.model.d.ts +0 -23
  123. package/lib/task-list/models/user-group.model.d.ts +0 -26
  124. package/lib/task-list/public-api.d.ts +0 -47
  125. package/lib/task-list/services/process-upload.service.d.ts +0 -25
  126. package/lib/task-list/services/task-filter.service.d.ts +0 -102
  127. package/lib/task-list/services/task-upload.service.d.ts +0 -25
  128. package/lib/task-list/services/tasklist.service.d.ts +0 -159
  129. package/lib/task-list/validators/task-description.validator.d.ts +0 -21
  130. package/public-api.d.ts +0 -29
@@ -1,48 +0,0 @@
1
- import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- import { TaskDetailsEvent } from '../../../task-list';
4
- import { ProcessInstanceRepresentation, TaskRepresentation } from '@alfresco/js-api';
5
- import * as i0 from "@angular/core";
6
- export declare class ProcessInstanceTasksComponent implements OnInit, OnChanges {
7
- private readonly processService;
8
- private readonly dialog;
9
- /** The ID of the process instance to display tasks for. */
10
- processInstanceDetails: ProcessInstanceRepresentation;
11
- /**
12
- * Toggles whether to show a refresh button next to the list of tasks to allow
13
- * it to be updated from the server.
14
- */
15
- showRefreshButton: boolean;
16
- /** Emitted when an error occurs. */
17
- error: EventEmitter<any>;
18
- startDialog: any;
19
- taskDetails: any;
20
- /** Emitted when a task is clicked. */
21
- taskClick: EventEmitter<TaskDetailsEvent>;
22
- activeTasks: TaskRepresentation[];
23
- completedTasks: TaskRepresentation[];
24
- task$: Observable<TaskRepresentation>;
25
- completedTask$: Observable<TaskRepresentation>;
26
- message: string;
27
- processId: string;
28
- private taskObserver;
29
- private completedTaskObserver;
30
- private readonly destroyRef;
31
- constructor();
32
- ngOnInit(): void;
33
- ngOnChanges(changes: SimpleChanges): void;
34
- load(processInstanceId: string): void;
35
- loadActive(processInstanceId: string): void;
36
- loadCompleted(processInstanceId: string): void;
37
- hasStartFormDefined(): boolean;
38
- getUserFullName(user: any): string;
39
- getFormatDate(value: any, format: string): any;
40
- clickTask(task: TaskRepresentation): void;
41
- clickStartTask(): void;
42
- showStartDialog(): void;
43
- closeStartDialog(): void;
44
- onRefreshClicked(): void;
45
- onFormContentClick(): void;
46
- static ɵfac: i0.ɵɵFactoryDeclaration<ProcessInstanceTasksComponent, never>;
47
- static ɵcmp: i0.ɵɵComponentDeclaration<ProcessInstanceTasksComponent, "adf-process-instance-tasks", never, { "processInstanceDetails": { "alias": "processInstanceDetails"; "required": true; }; "showRefreshButton": { "alias": "showRefreshButton"; "required": false; }; }, { "error": "error"; "taskClick": "taskClick"; }, never, never, true, never>;
48
- }
@@ -1,141 +0,0 @@
1
- /*!
2
- * @license
3
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { DataTableSchema, DataRowEvent, DataTableAdapter, CustomEmptyContentTemplateDirective, CustomLoadingContentTemplateDirective, DataRow, DataColumn, PaginatedComponent, PaginationModel, DataCellEvent, ObjectDataRow } from '@alfresco/adf-core';
18
- import { AfterContentInit, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
19
- import { BehaviorSubject } from 'rxjs';
20
- import { ProcessInstanceQueryRepresentation, ProcessInstanceQueryRepresentationSort, ProcessInstanceQueryRepresentationState, ResultListDataRepresentationProcessInstanceRepresentation } from '@alfresco/js-api';
21
- import * as i0 from "@angular/core";
22
- export declare const processPresetsDefaultModel: {
23
- default: ({
24
- key: string;
25
- type: string;
26
- title: string;
27
- sortable: boolean;
28
- cssClass?: undefined;
29
- } | {
30
- key: string;
31
- type: string;
32
- title: string;
33
- cssClass: string;
34
- sortable: boolean;
35
- })[];
36
- };
37
- export declare class ProcessInstanceListComponent extends DataTableSchema implements OnChanges, AfterContentInit, PaginatedComponent {
38
- private readonly processService;
39
- private readonly userPreferences;
40
- customEmptyContent: CustomEmptyContentTemplateDirective;
41
- customLoadingContent: CustomLoadingContentTemplateDirective;
42
- /** The id of the app. */
43
- appId: number;
44
- /** The Definition Id of the process. */
45
- processDefinitionId: string;
46
- /** The id of the process instance. */
47
- processInstanceId: string;
48
- /** Defines the state of the processes. */
49
- state: ProcessInstanceQueryRepresentationState;
50
- /**
51
- * Defines the sort ordering of the list.
52
- */
53
- sort: ProcessInstanceQueryRepresentationSort;
54
- /** The page number of the processes to fetch. */
55
- page: number;
56
- /** The number of processes to fetch in each page. */
57
- size: number;
58
- /** Data source to define the datatable. */
59
- data: DataTableAdapter;
60
- /** Toggles multiple row selection, which renders checkboxes at the beginning of each row */
61
- multiselect: boolean;
62
- /**
63
- * Row selection mode. Can be none, `single` or `multiple`. For `multiple` mode,
64
- * you can use Cmd (macOS) or Ctrl (Win) modifier key to toggle selection for
65
- * multiple rows.
66
- */
67
- selectionMode: string;
68
- /** Toggles default selection of the first row */
69
- selectFirstRow: boolean;
70
- /** Toggles the sticky header mode. */
71
- stickyHeader: boolean;
72
- /** Toggles custom context menu for the component. */
73
- showContextMenu: boolean;
74
- /** Enables column resizing for datatable */
75
- isResizingEnabled: boolean;
76
- /** Enables blur when resizing datatable columns */
77
- blurOnResize: boolean;
78
- /** Emitted before the context menu is displayed for a row. */
79
- showRowContextMenu: EventEmitter<DataCellEvent>;
80
- /**
81
- * Resolver function is used to show dynamic complex column objects
82
- * see the docs to learn how to configure a resolverFn.
83
- */
84
- resolverFn: (row: DataRow, col: DataColumn) => any;
85
- /** Emitted when a row in the process list is clicked. */
86
- rowClick: EventEmitter<string>;
87
- /** Emitted when the list of process instances has been loaded successfully from the server. */
88
- success: EventEmitter<ResultListDataRepresentationProcessInstanceRepresentation>;
89
- /** Emitted when an error occurs while loading the list of process instances from the server. */
90
- error: EventEmitter<any>;
91
- /** Emitted when rows are selected/unselected */
92
- rowsSelected: EventEmitter<ObjectDataRow[]>;
93
- requestNode: ProcessInstanceQueryRepresentation;
94
- currentInstanceId: string;
95
- isLoading: boolean;
96
- rows: any[];
97
- sorting: any[];
98
- pagination: BehaviorSubject<PaginationModel>;
99
- constructor();
100
- ngAfterContentInit(): void;
101
- ngOnChanges(changes: SimpleChanges): void;
102
- reload(): void;
103
- /**
104
- * Select the first instance of a list if present
105
- */
106
- selectFirst(): void;
107
- /**
108
- * Get the id of the current instance
109
- *
110
- * @returns instance id
111
- */
112
- getCurrentId(): string;
113
- /**
114
- * Check if the list is empty
115
- *
116
- * @returns `true` if list is empty, otherwise `false`
117
- */
118
- isListEmpty(): boolean;
119
- /**
120
- * Emit the event rowClick passing the current task id when the row is clicked
121
- *
122
- * @param event input event
123
- */
124
- onRowClick(event: DataRowEvent): void;
125
- onRowCheckboxToggle(event: CustomEvent): void;
126
- /**
127
- * Emit the event rowClick passing the current task id when pressed the Enter key on the selected row
128
- *
129
- * @param event keyboard event
130
- */
131
- onRowKeyUp(event: CustomEvent<any>): void;
132
- onShowRowContextMenu(event: DataCellEvent): void;
133
- updatePagination(params: PaginationModel): void;
134
- currentPage(skipCount: number, maxItems: number): number;
135
- private createRequestNode;
136
- private isSortChanged;
137
- private isPropertyChanged;
138
- private load;
139
- static ɵfac: i0.ɵɵFactoryDeclaration<ProcessInstanceListComponent, never>;
140
- static ɵcmp: i0.ɵɵComponentDeclaration<ProcessInstanceListComponent, "adf-process-instance-list", never, { "appId": { "alias": "appId"; "required": false; }; "processDefinitionId": { "alias": "processDefinitionId"; "required": false; }; "processInstanceId": { "alias": "processInstanceId"; "required": false; }; "state": { "alias": "state"; "required": false; }; "sort": { "alias": "sort"; "required": false; }; "page": { "alias": "page"; "required": false; }; "size": { "alias": "size"; "required": false; }; "data": { "alias": "data"; "required": false; }; "multiselect": { "alias": "multiselect"; "required": false; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; "selectFirstRow": { "alias": "selectFirstRow"; "required": false; }; "stickyHeader": { "alias": "stickyHeader"; "required": false; }; "showContextMenu": { "alias": "showContextMenu"; "required": false; }; "isResizingEnabled": { "alias": "isResizingEnabled"; "required": false; }; "blurOnResize": { "alias": "blurOnResize"; "required": false; }; "resolverFn": { "alias": "resolverFn"; "required": false; }; }, { "showRowContextMenu": "showRowContextMenu"; "rowClick": "rowClick"; "success": "success"; "error": "error"; "rowsSelected": "rowsSelected"; }, ["customEmptyContent", "customLoadingContent"], ["adf-custom-loading-content-template", "adf-custom-empty-content-template"], true, never>;
141
- }
@@ -1,117 +0,0 @@
1
- /*!
2
- * @license
3
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
18
- import { FormValues } from '@alfresco/adf-core';
19
- import { AbstractControl, UntypedFormControl } from '@angular/forms';
20
- import { Observable } from 'rxjs';
21
- import { MatAutocompleteTrigger } from '@angular/material/autocomplete';
22
- import { MatSelectChange } from '@angular/material/select';
23
- import { StartFormComponent } from '../../../form';
24
- import { AppDefinitionRepresentation, ProcessDefinitionRepresentation, ProcessInstanceRepresentation, RestVariable } from '@alfresco/js-api';
25
- import * as i0 from "@angular/core";
26
- export declare class StartProcessInstanceComponent implements OnChanges, OnInit {
27
- private readonly processService;
28
- private readonly contentService;
29
- private readonly appsProcessService;
30
- private readonly appConfig;
31
- private readonly datePipe;
32
- /**
33
- * Limit the list of processes that can be started to those
34
- * contained in the specified app.
35
- */
36
- appId?: number;
37
- /** Define the header of the component. */
38
- title?: string;
39
- /** Definition name of the process to start. */
40
- processDefinitionName?: string;
41
- /**
42
- * Variables in the input to the process
43
- * [RestVariable](https://github.com/Alfresco/alfresco-js-api/tree/master/src/alfresco-activiti-rest-api/docs/RestVariable.md).
44
- */
45
- variables: RestVariable[];
46
- /** Parameter to pass form field values in the start form if one is associated. */
47
- values: FormValues;
48
- /** Name to assign to the current process. */
49
- name?: string;
50
- /** Hide or show the process selection dropdown. */
51
- showSelectProcessDropdown: boolean;
52
- /** Hide or show application selection dropdown. */
53
- showSelectApplicationDropdown?: boolean;
54
- /** Parameter to enable selection of process when filtering. */
55
- processFilterSelector?: boolean;
56
- /** Emitted when the process starts. */
57
- start: EventEmitter<ProcessInstanceRepresentation>;
58
- /** Emitted when the process is canceled. */
59
- cancel: EventEmitter<void>;
60
- /** Emitted when an error occurs. */
61
- error: EventEmitter<any>;
62
- /** Emitted when process definition selection changes. */
63
- processDefinitionSelection: EventEmitter<ProcessDefinitionRepresentation>;
64
- /** Emitted when application selection changes. */
65
- applicationSelection: EventEmitter<AppDefinitionRepresentation>;
66
- startForm: StartFormComponent;
67
- inputAutocomplete: MatAutocompleteTrigger;
68
- processDefinitions: ProcessDefinitionRepresentation[];
69
- selectedProcessDef: ProcessDefinitionRepresentation;
70
- processNameInput: UntypedFormControl;
71
- processDefinitionInput: UntypedFormControl;
72
- filteredProcessesDefinitions$: Observable<ProcessDefinitionRepresentation[]>;
73
- maxProcessNameLength: number;
74
- alfrescoRepositoryName: string;
75
- applications: AppDefinitionRepresentation[];
76
- selectedApplication: AppDefinitionRepresentation;
77
- isProcessDefinitionsLoading: boolean;
78
- isAppsLoading: boolean;
79
- populatedFormData: FormValues;
80
- private readonly destroyRef;
81
- ngOnInit(): void;
82
- ngOnChanges(changes: SimpleChanges): void;
83
- private getSelectedProcess;
84
- private load;
85
- loadProcessDefinitions(appId: number): void;
86
- private filterProcessDefinitionByName;
87
- private loadApps;
88
- private loadProcessDefinitionsBasedOnSelectedApp;
89
- onAppSelectionChange(selectedApplication: MatSelectChange): void;
90
- hasApplications(): boolean;
91
- hasProcessDefinitions(): boolean;
92
- isProcessDefinitionSelected(): boolean;
93
- isDropdownDisabled(): boolean;
94
- getAlfrescoRepositoryName(): string;
95
- populateFormData(): void;
96
- startProcess(outcome?: string): void;
97
- cancelStartProcess(): void;
98
- hasStartForm(): boolean;
99
- private isStartFormMissingOrValid;
100
- validateForm(): boolean;
101
- onOutcomeClick(outcome: string): void;
102
- reset(): void;
103
- displayFn(process: any): string;
104
- displayDropdown(event: Event): void;
105
- get nameController(): AbstractControl;
106
- get processDefinitionController(): AbstractControl;
107
- processDefinitionSelectionChanged(processDefinition: ProcessDefinitionRepresentation): void;
108
- isLoading(): boolean;
109
- private isAppSelected;
110
- private resetSelectedProcessDefinition;
111
- private resetProcessDefinitions;
112
- private toggleProcessNameAndDefinitionsDropdown;
113
- private _filter;
114
- private formatProcessName;
115
- static ɵfac: i0.ɵɵFactoryDeclaration<StartProcessInstanceComponent, never>;
116
- static ɵcmp: i0.ɵɵComponentDeclaration<StartProcessInstanceComponent, "adf-start-process", never, { "appId": { "alias": "appId"; "required": false; }; "title": { "alias": "title"; "required": false; }; "processDefinitionName": { "alias": "processDefinitionName"; "required": false; }; "variables": { "alias": "variables"; "required": false; }; "values": { "alias": "values"; "required": false; }; "name": { "alias": "name"; "required": false; }; "showSelectProcessDropdown": { "alias": "showSelectProcessDropdown"; "required": false; }; "showSelectApplicationDropdown": { "alias": "showSelectApplicationDropdown"; "required": false; }; "processFilterSelector": { "alias": "processFilterSelector"; "required": false; }; }, { "start": "start"; "cancel": "cancel"; "error": "error"; "processDefinitionSelection": "processDefinitionSelection"; "applicationSelection": "applicationSelection"; }, never, never, true, never>;
117
- }
@@ -1,17 +0,0 @@
1
- /*!
2
- * @license
3
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- export * from './public-api';
@@ -1,31 +0,0 @@
1
- /*!
2
- * @license
3
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { ProcessInstanceListComponent } from './components/process-list/process-list.component';
18
- import { ProcessFiltersComponent } from './components/process-filters/process-filters.component';
19
- import { ProcessInstanceDetailsComponent } from './components/process-instance-details/process-instance-details.component';
20
- import { ProcessInstanceHeaderComponent } from './components/process-instance-header/process-instance-header.component';
21
- import { ProcessInstanceTasksComponent } from './components/process-instance-tasks/process-instance-tasks.component';
22
- import { StartProcessInstanceComponent } from './components/start-process/start-process.component';
23
- export * from './components/process-filters/process-filters.component';
24
- export * from './components/process-instance-details/process-instance-details.component';
25
- export * from './components/process-instance-header/process-instance-header.component';
26
- export * from './components/process-instance-tasks/process-instance-tasks.component';
27
- export * from './components/process-list/process-list.component';
28
- export * from './components/start-process/start-process.component';
29
- export * from './services/process.service';
30
- export * from './services/process-filter.service';
31
- export declare const PROCESS_LIST_DIRECTIVES: readonly [typeof ProcessInstanceListComponent, typeof ProcessFiltersComponent, typeof ProcessInstanceDetailsComponent, typeof ProcessInstanceHeaderComponent, typeof ProcessInstanceTasksComponent, typeof StartProcessInstanceComponent];
@@ -1,73 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { ResultListDataRepresentationUserProcessInstanceFilterRepresentation, UserFiltersApi, UserProcessInstanceFilterRepresentation } from '@alfresco/js-api';
3
- import * as i0 from "@angular/core";
4
- export declare class ProcessFilterService {
5
- private readonly alfrescoApiService;
6
- readonly userFiltersApi: UserFiltersApi;
7
- /**
8
- * Gets all filters defined for a Process App.
9
- *
10
- * @param appId ID of the target app
11
- * @returns Array of filter details
12
- */
13
- getProcessFilters(appId: number): Observable<UserProcessInstanceFilterRepresentation[]>;
14
- /**
15
- * Retrieves the process filter by ID.
16
- *
17
- * @param filterId ID of the filter
18
- * @param appId ID of the target app
19
- * @returns Details of the filter
20
- */
21
- getProcessFilterById(filterId: number, appId?: number): Observable<UserProcessInstanceFilterRepresentation>;
22
- /**
23
- * Retrieves the process filter by name.
24
- *
25
- * @param filterName Name of the filter
26
- * @param appId ID of the target app
27
- * @returns Details of the filter
28
- */
29
- getProcessFilterByName(filterName: string, appId?: number): Observable<UserProcessInstanceFilterRepresentation>;
30
- /**
31
- * Creates and returns the default filters for an app.
32
- *
33
- * @param appId ID of the target app
34
- * @returns Default filters just created
35
- */
36
- createDefaultFilters(appId: number): Observable<UserProcessInstanceFilterRepresentation[]>;
37
- /**
38
- * Checks if a filter with the given name already exists in the list of filters.
39
- *
40
- * @param filters - An array of objects representing the existing filters.
41
- * @param filterName - The name of the filter to check for existence.
42
- * @returns - True if a filter with the specified name already exists, false otherwise.
43
- */
44
- isFilterAlreadyExisting(filters: Partial<{
45
- name: string;
46
- }>[], filterName: string): boolean;
47
- /**
48
- * Creates and returns a filter that matches "running" process instances.
49
- *
50
- * @param appId ID of the target app
51
- * @param index of the filter (optional)
52
- * @returns Filter just created
53
- */
54
- getRunningFilterInstance(appId: number, index?: number): UserProcessInstanceFilterRepresentation;
55
- /**
56
- * Adds a filter.
57
- *
58
- * @param filter The filter to add
59
- * @returns The filter just added
60
- */
61
- addProcessFilter(filter: UserProcessInstanceFilterRepresentation): Observable<UserProcessInstanceFilterRepresentation>;
62
- /**
63
- * Calls `getUserProcessInstanceFilters` from the Alfresco JS API.
64
- *
65
- * @param appId ID of the target app
66
- * @returns List of filter details
67
- */
68
- callApiProcessFilters(appId?: number): Promise<ResultListDataRepresentationUserProcessInstanceFilterRepresentation>;
69
- getCompletedFilterInstance(appId: number, index?: number): UserProcessInstanceFilterRepresentation;
70
- getAllFilterInstance(appId: number, index?: number): UserProcessInstanceFilterRepresentation;
71
- static ɵfac: i0.ɵɵFactoryDeclaration<ProcessFilterService, never>;
72
- static ɵprov: i0.ɵɵInjectableDeclaration<ProcessFilterService>;
73
- }
@@ -1,148 +0,0 @@
1
- /*!
2
- * @license
3
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { FormValues } from '@alfresco/adf-core';
18
- import { FormDefinitionRepresentation, ProcessDefinitionsApi, ProcessInstanceAuditInfoRepresentation, ProcessInstanceQueryRepresentation, ProcessInstanceRepresentation, ProcessInstancesApi, ProcessInstanceVariablesApi, RestVariable, ResultListDataRepresentationProcessInstanceRepresentation, TasksApi, ProcessDefinitionRepresentation, TaskRepresentation } from '@alfresco/js-api';
19
- import { Observable } from 'rxjs';
20
- import * as i0 from "@angular/core";
21
- export declare class ProcessService {
22
- private readonly alfrescoApiService;
23
- readonly tasksApi: TasksApi;
24
- readonly processDefinitionsApi: ProcessDefinitionsApi;
25
- readonly processInstancesApi: ProcessInstancesApi;
26
- readonly processInstanceVariablesApi: ProcessInstanceVariablesApi;
27
- /**
28
- * Gets process instances for a filter and optionally a process definition.
29
- *
30
- * @param requestNode Filter for instances
31
- * @param processDefinitionKey Limits returned instances to a process definition
32
- * @returns List of process instances
33
- */
34
- getProcessInstances(requestNode: ProcessInstanceQueryRepresentation, processDefinitionKey?: string): Observable<ResultListDataRepresentationProcessInstanceRepresentation>;
35
- /**
36
- * Gets processes for a filter and optionally a process definition.
37
- *
38
- * @param requestNode Filter for instances
39
- * @param processDefinitionKey Limits returned instances to a process definition
40
- * @returns List of processes
41
- */
42
- getProcesses(requestNode: ProcessInstanceQueryRepresentation, processDefinitionKey?: string): Observable<ResultListDataRepresentationProcessInstanceRepresentation>;
43
- /**
44
- * @deprecated This api is no longer used and will be removed in future releases.
45
- * Fetches the Process Audit information as a PDF.
46
- *
47
- * @param processId ID of the target process
48
- * @returns Binary PDF data
49
- */
50
- fetchProcessAuditPdfById(processId: string): Observable<Blob>;
51
- /**
52
- * @deprecated This api is no longer used and will be removed in future releases.
53
- * Fetches the Process Audit information in a JSON format.
54
- *
55
- * @param processId ID of the target process
56
- * @returns JSON data
57
- */
58
- fetchProcessAuditJsonById(processId: string): Observable<ProcessInstanceAuditInfoRepresentation>;
59
- /**
60
- * Gets Process Instance metadata.
61
- *
62
- * @param processInstanceId ID of the target process
63
- * @returns Metadata for the instance
64
- */
65
- getProcess(processInstanceId: string): Observable<ProcessInstanceRepresentation>;
66
- /**
67
- * Gets the start form definition for a given process.
68
- *
69
- * @param processId Process definition ID
70
- * @returns Form definition
71
- */
72
- getStartFormDefinition(processId: string): Observable<any>;
73
- /**
74
- * Gets the start form instance for a given process.
75
- *
76
- * @param processId Process definition ID
77
- * @returns Form definition
78
- */
79
- getStartFormInstance(processId: string): Observable<FormDefinitionRepresentation>;
80
- /**
81
- * Creates a JSON representation of form data.
82
- *
83
- * @param res Object representing form data
84
- * @returns JSON data
85
- */
86
- private toJson;
87
- /**
88
- * Gets task instances for a process instance.
89
- *
90
- * @param processInstanceId ID of the process instance
91
- * @param state Task state filter (can be "active" or "completed")
92
- * @returns Array of task instance details
93
- */
94
- getProcessTasks(processInstanceId: string, state?: string): Observable<TaskRepresentation[]>;
95
- /**
96
- * Gets process definitions associated with an app.
97
- *
98
- * @param appId ID of a target app
99
- * @returns Array of process definitions
100
- */
101
- getProcessDefinitions(appId?: number): Observable<ProcessDefinitionRepresentation[]>;
102
- /**
103
- * Starts a process based on a process definition, name, form values or variables.
104
- *
105
- * @param processDefinitionId Process definition ID
106
- * @param name Process name
107
- * @param outcome Process outcome
108
- * @param startFormValues Values for the start form
109
- * @param variables Array of process instance variables
110
- * @returns Details of the process instance just started
111
- */
112
- startProcess(processDefinitionId: string, name: string, outcome?: string, startFormValues?: FormValues, variables?: RestVariable[]): Observable<ProcessInstanceRepresentation>;
113
- /**
114
- * Cancels a process instance.
115
- *
116
- * @param processInstanceId ID of process to cancel
117
- * @returns Null response notifying when the operation is complete
118
- */
119
- cancelProcess(processInstanceId: string): Observable<void>;
120
- /**
121
- * Gets the variables for a process instance.
122
- *
123
- * @param processInstanceId ID of the target process
124
- * @returns Array of instance variable info
125
- */
126
- getProcessInstanceVariables(processInstanceId: string): Observable<RestVariable[]>;
127
- /**
128
- * Creates or updates variables for a process instance.
129
- *
130
- * @param processInstanceId ID of the target process
131
- * @param variables Variables to update
132
- * @returns Array of instance variable info
133
- */
134
- createOrUpdateProcessInstanceVariables(processInstanceId: string, variables: RestVariable[]): Observable<RestVariable[]>;
135
- /**
136
- * Deletes a variable for a process instance.
137
- *
138
- * @param processInstanceId ID of the target process
139
- * @param variableName Name of the variable to delete
140
- * @returns Null response notifying when the operation is complete
141
- */
142
- deleteProcessInstanceVariable(processInstanceId: string, variableName: string): Observable<void>;
143
- private extractData;
144
- private getProcessNameOrDescription;
145
- private getFormatDate;
146
- static ɵfac: i0.ɵɵFactoryDeclaration<ProcessService, never>;
147
- static ɵprov: i0.ɵɵInjectableDeclaration<ProcessService>;
148
- }