@alfresco/adf-process-services-cloud 8.5.0-24716296101 → 8.5.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 (39) hide show
  1. package/LICENSE +177 -0
  2. package/bundles/assets/adf-process-services-cloud/i18n/en-AU.json +386 -0
  3. package/bundles/assets/adf-process-services-cloud/i18n/en.json +2 -2
  4. package/fesm2022/adf-process-services-cloud.mjs +352 -100
  5. package/fesm2022/adf-process-services-cloud.mjs.map +1 -1
  6. package/lib/app/components/app-details-cloud/app-details-cloud.component.scss +168 -0
  7. package/lib/form/components/form-cloud.component.d.ts +20 -2
  8. package/lib/form/components/form-cloud.component.scss +40 -11
  9. package/lib/form/components/spinner/form-spinner.component.scss +1 -1
  10. package/lib/form/components/widgets/attach-file/attach-file-cloud-widget.component.scss +3 -20
  11. package/lib/form/components/widgets/attach-file/file-properties-table/file-properties-table-cloud.component.scss +1 -1
  12. package/lib/form/components/widgets/data-table/data-table.widget.scss +0 -1
  13. package/lib/form/components/widgets/display-external-property/display-external-property.widget.d.ts +5 -0
  14. package/lib/form/components/widgets/display-external-property/display-external-property.widget.scss +0 -1
  15. package/lib/form/components/widgets/display-rich-text/display-rich-text.widget.scss +0 -9
  16. package/lib/form/components/widgets/dropdown/dropdown-cloud.widget.d.ts +5 -0
  17. package/lib/form/components/widgets/dropdown/dropdown-cloud.widget.scss +0 -4
  18. package/lib/form/components/widgets/properties-viewer/properties-viewer.widget.scss +1 -1
  19. package/lib/form/components/widgets/radio-buttons/radio-buttons-cloud.widget.scss +0 -9
  20. package/lib/group/components/group-cloud.component.d.ts +1 -0
  21. package/lib/group/components/group-cloud.component.scss +3 -14
  22. package/lib/people/components/people-cloud.component.d.ts +1 -0
  23. package/lib/people/components/people-cloud.component.scss +3 -22
  24. package/lib/process/process-filters/components/edit-process-filter/edit-process-filter-cloud.component.scss +0 -23
  25. package/lib/process/process-filters/components/process-filters/process-filters-cloud.component.scss +3 -3
  26. package/lib/process/start-process/components/start-process-cloud.component.scss +0 -4
  27. package/lib/process/start-process/models/process-instance-cloud.model.d.ts +1 -0
  28. package/lib/services/task-list-cloud.service.interface.d.ts +10 -1
  29. package/lib/task/services/task-cloud.service.d.ts +17 -1
  30. package/lib/task/task-filters/components/edit-task-filters/edit-service-task-filter/edit-service-task-filter-cloud.component.scss +0 -24
  31. package/lib/task/task-filters/components/edit-task-filters/edit-task-filter/edit-task-filter-cloud.component.scss +0 -24
  32. package/lib/task/task-filters/components/service-task-filters/service-task-filters-cloud.component.scss +8 -8
  33. package/lib/task/task-filters/components/task-assignment-filter/task-assignment-filter.component.scss +0 -16
  34. package/lib/task/task-filters/components/task-filters/task-filters-cloud.component.scss +3 -3
  35. package/lib/task/task-header/components/task-header-cloud.component.d.ts +7 -2
  36. package/lib/task/task-header/components/task-header-cloud.component.scss +2 -2
  37. package/lib/task/task-list/services/task-list-cloud.service.d.ts +2 -1
  38. package/package.json +4 -4
  39. package/lib/process/process-header/components/process-header-cloud.component.scss +0 -3
@@ -3,14 +3,14 @@
3
3
  .adf-process-filters {
4
4
  &__entry-counter {
5
5
  padding: 0 5px;
6
- border-radius: var(--mat-sys-corner-large, 15px);
6
+ border-radius: var(--mat-sys-corner-large);
7
7
 
8
8
  &.adf-active {
9
- background-color: var(--mat-sys-secondary, var(--theme-accent-color));
9
+ background-color: var(--mat-sys-secondary);
10
10
 
11
11
  @include mat.list-overrides(
12
12
  (
13
- list-item-trailing-supporting-text-color: var(--mat-sys-on-secondary, var(--theme-accent-color-default-contrast))
13
+ list-item-trailing-supporting-text-color: var(--mat-sys-on-secondary)
14
14
  )
15
15
  );
16
16
  }
@@ -1,9 +1,5 @@
1
1
  .adf {
2
2
  &-start-process {
3
- .adf-start-process-input-label {
4
- color: var(--adf-theme-mat-grey-color-a200-dark);
5
- }
6
-
7
3
  &-cloud-actions {
8
4
  display: flex;
9
5
  justify-content: flex-end;
@@ -31,6 +31,7 @@ export interface ProcessInstanceCloud {
31
31
  parentId?: string;
32
32
  linkedProcessInstanceId?: string;
33
33
  linkedProcessInstanceType?: string;
34
+ type?: string;
34
35
  linkedProcesses?: RelatedProcessInstance[];
35
36
  subprocesses?: RelatedProcessInstance[];
36
37
  processDefinitionId?: string;
@@ -31,8 +31,17 @@ export interface TaskListCloudServiceInterface {
31
31
  * Retrieves a list of tasks using an object with optional query properties.
32
32
  *
33
33
  * @param requestNode Query object
34
- * @param queryUrl Query url
34
+ * @param queryUrl Query url. If empty, query service will be called.
35
35
  * @returns List of tasks
36
36
  */
37
37
  fetchTaskList(requestNode: TaskListRequestModel, queryUrl?: string): Observable<any>;
38
+ /**
39
+ * Available from Activiti version 8.7.0 onwards.
40
+ * Retrieves a list of tasks using an object with optional query properties.
41
+ * Calls runtime bundle service.
42
+ *
43
+ * @param requestNode Query object
44
+ * @returns List of tasks
45
+ */
46
+ fetchTaskList_UsingRuntimeBundleService(requestNode: TaskListRequestModel): Observable<any>;
38
47
  }
@@ -33,6 +33,13 @@ export declare class TaskCloudService extends BaseCloudService {
33
33
  */
34
34
  isTaskEditable(taskDetails: TaskDetailsCloudModel): boolean;
35
35
  isAssigneePropertyClickable(taskDetails: TaskDetailsCloudModel, candidateUsers: CardViewArrayItem[], candidateGroups: CardViewArrayItem[]): boolean;
36
+ /**
37
+ * Validates if a task was completed by the current user.
38
+ *
39
+ * @param taskDetails task details object
40
+ * @returns Boolean value if the task was completed by the current user
41
+ */
42
+ wasTaskCompletedByCurrentUser(taskDetails: TaskDetailsCloudModel): boolean;
36
43
  /**
37
44
  * Validate if a task can be claimed.
38
45
  *
@@ -47,6 +54,14 @@ export declare class TaskCloudService extends BaseCloudService {
47
54
  * @returns Boolean value if the task can be completed
48
55
  */
49
56
  canUnclaimTask(taskDetails: TaskDetailsCloudModel): boolean;
57
+ /**
58
+ * Returns the next recommended task to process.
59
+ *
60
+ * @param appName Name of the app
61
+ * @param strategy The task identification strategy
62
+ * @returns Details of the returned task
63
+ */
64
+ nextTask(appName: string, strategy?: string): Observable<TaskDetailsCloudModel>;
50
65
  /**
51
66
  * Claims a task for an assignee.
52
67
  *
@@ -69,9 +84,10 @@ export declare class TaskCloudService extends BaseCloudService {
69
84
  *
70
85
  * @param appName Name of the app
71
86
  * @param taskId ID of the task whose details you want
87
+ * @param service The service to call. Either Query Service or Runtime Bundle Service.
72
88
  * @returns Task details
73
89
  */
74
- getTaskById(appName: string, taskId: string): Observable<TaskDetailsCloudModel>;
90
+ getTaskById(appName: string, taskId: string, service?: 'query' | 'rb'): Observable<TaskDetailsCloudModel>;
75
91
  /**
76
92
  * Creates a new standalone task.
77
93
  *
@@ -1,7 +1,6 @@
1
1
  @use '../../../../../flex' as flex;
2
2
 
3
3
  .adf-edit-task-filter-checkbox {
4
- font-size: var(--theme-subheading-2-font-size);
5
4
  padding-top: 10px;
6
5
  text-align: center;
7
6
  flex: 1 23%;
@@ -22,16 +21,8 @@
22
21
  .adf-error-text {
23
22
  padding-right: 8px;
24
23
  height: 16px;
25
- font-size: 10px;
26
- line-height: 1.33;
27
- color: var(--theme-warn-color);
28
24
  width: auto;
29
25
  }
30
-
31
- .adf-error-icon {
32
- font-size: 16px;
33
- color: var(--theme-warn-color);
34
- }
35
26
  }
36
27
 
37
28
  .adf-edit-task-filter-dateRange mat-grid-list {
@@ -74,24 +65,9 @@
74
65
  &-header {
75
66
  height: 48px;
76
67
 
77
- &__title {
78
- color: var(--adf-theme-foreground-text-color);
79
- }
80
-
81
68
  &__description {
82
- color: var(--adf-theme-foreground-secondary-text-color);
83
69
  place-content: center space-between;
84
70
  }
85
71
  }
86
-
87
- &-content {
88
- &__text-label {
89
- color: var(--adf-theme-foreground-secondary-text-color);
90
- }
91
-
92
- &__select-label {
93
- color: var(--adf-theme-foreground-secondary-text-color);
94
- }
95
- }
96
72
  }
97
73
  }
@@ -1,7 +1,6 @@
1
1
  @use '../../../../../flex' as flex;
2
2
 
3
3
  .adf-edit-task-filter-checkbox {
4
- font-size: var(--theme-subheading-2-font-size);
5
4
  padding-top: 10px;
6
5
  text-align: center;
7
6
  flex: 1 23%;
@@ -22,16 +21,8 @@
22
21
  .adf-error-text {
23
22
  padding-right: 8px;
24
23
  height: 16px;
25
- font-size: 10px;
26
- line-height: 1.33;
27
- color: var(--theme-warn-color);
28
24
  width: auto;
29
25
  }
30
-
31
- .adf-error-icon {
32
- font-size: 16px;
33
- color: var(--theme-warn-color);
34
- }
35
26
  }
36
27
 
37
28
  .adf-edit-task-filter-dateRange mat-grid-list {
@@ -74,24 +65,9 @@
74
65
  &-header {
75
66
  height: 48px;
76
67
 
77
- &__title {
78
- color: var(--adf-theme-foreground-text-color);
79
- }
80
-
81
68
  &__description {
82
- color: var(--adf-theme-foreground-secondary-text-color);
83
69
  place-content: center space-between;
84
70
  }
85
71
  }
86
-
87
- &-content {
88
- &__text-label {
89
- color: var(--adf-theme-foreground-secondary-text-color);
90
- }
91
-
92
- &__select-label {
93
- color: var(--adf-theme-foreground-secondary-text-color);
94
- }
95
- }
96
72
  }
97
73
  }
@@ -1,9 +1,9 @@
1
1
  .adf-task-filters {
2
- margin-right: calc(-1 * var(--adf-theme-spacing));
2
+ margin-right: -16px;
3
3
 
4
4
  &__entry {
5
- font-size: var(--theme-body-1-font-size);
6
- color: var(--adf-theme-foreground-text-color-054);
5
+ font-size: var(--mat-sys-body-medium-size);
6
+ color: var(--mat-sys-on-surface-variant);
7
7
  display: flex;
8
8
  justify-content: space-between;
9
9
  align-items: center;
@@ -11,7 +11,7 @@
11
11
  height: 100%;
12
12
 
13
13
  &:hover {
14
- color: var(--theme-primary-color);
14
+ color: var(--mat-sys-primary);
15
15
  }
16
16
  }
17
17
 
@@ -19,7 +19,7 @@
19
19
  display: flex;
20
20
  flex: 1;
21
21
  align-items: center;
22
- gap: var(--adf-theme-spacing);
22
+ gap: 16px;
23
23
  }
24
24
 
25
25
  &__entry-counter {
@@ -27,13 +27,13 @@
27
27
  border-radius: 15px;
28
28
 
29
29
  &.adf-active {
30
- background-color: var(--theme-accent-color);
31
- color: var(--theme-accent-color-default-contrast);
30
+ background-color: var(--mat-sys-secondary);
31
+ color: var(--mat-sys-on-secondary);
32
32
  font-size: smaller;
33
33
  }
34
34
  }
35
35
 
36
36
  .adf-active .adf-task-filters__entry-label {
37
- color: var(--theme-primary-color);
37
+ color: var(--mat-sys-primary);
38
38
  }
39
39
  }
@@ -9,22 +9,6 @@
9
9
  &-container {
10
10
  width: 100%;
11
11
  }
12
-
13
- &-label {
14
- color: var(--adf-theme-foreground-secondary-text-color);
15
-
16
- &.adf-task-assignment-filter-label--focus {
17
- color: var(--theme-primary-color);
18
- }
19
- }
20
-
21
- &-option {
22
- color: var(--adf-theme-foreground-text-color);
23
-
24
- &.adf-task-assignment-filter-option--selected:not(&:disabled) {
25
- color: var(--theme-primary-color);
26
- }
27
- }
28
12
  }
29
13
 
30
14
  .adf-group-cloud-filter {
@@ -3,14 +3,14 @@
3
3
  .adf-task-filters {
4
4
  &__entry-counter {
5
5
  padding: 0 5px;
6
- border-radius: var(--mat-sys-corner-large, 15px);
6
+ border-radius: var(--mat-sys-corner-large);
7
7
 
8
8
  &.adf-active {
9
- background-color: var(--mat-sys-secondary, var(--theme-accent-color));
9
+ background-color: var(--mat-sys-secondary);
10
10
 
11
11
  @include mat.list-overrides(
12
12
  (
13
- list-item-trailing-supporting-text-color: var(--mat-sys-on-secondary, var(--theme-accent-color-default-contrast))
13
+ list-item-trailing-supporting-text-color: var(--mat-sys-on-secondary)
14
14
  )
15
15
  );
16
16
  }
@@ -29,6 +29,8 @@ export declare class TaskHeaderCloudComponent implements OnInit, OnChanges {
29
29
  taskId: string;
30
30
  /** Show/Hide the task title */
31
31
  showTitle: boolean;
32
+ /** Process instance id used when task details do not include it. */
33
+ processInstanceId?: string;
32
34
  /** Emitted when the task is claimed. */
33
35
  claim: EventEmitter<any>;
34
36
  /** Emitted when the task is unclaimed (ie, requeued). */
@@ -45,8 +47,8 @@ export declare class TaskHeaderCloudComponent implements OnInit, OnChanges {
45
47
  dateLocale: string;
46
48
  displayDateClearAction: boolean;
47
49
  isLoading: boolean;
48
- processInstanceId: string;
49
50
  private readonly destroyRef;
51
+ private readonly clipboardService;
50
52
  constructor();
51
53
  ngOnInit(): void;
52
54
  ngOnChanges(): void;
@@ -62,6 +64,9 @@ export declare class TaskHeaderCloudComponent implements OnInit, OnChanges {
62
64
  * @param updateNotification notification model
63
65
  */
64
66
  private updateTaskDetails;
67
+ private applyProcessInstanceIdToTaskDetails;
68
+ private onPropertyClicked;
69
+ private copyProcessInstanceIdToClipboard;
65
70
  private loadParentName;
66
71
  isCompleted(): boolean;
67
72
  hasAssignee(): boolean;
@@ -77,5 +82,5 @@ export declare class TaskHeaderCloudComponent implements OnInit, OnChanges {
77
82
  isAssigneePropertyClickable(): boolean;
78
83
  private isValidSelection;
79
84
  static ɵfac: i0.ɵɵFactoryDeclaration<TaskHeaderCloudComponent, never>;
80
- static ɵcmp: i0.ɵɵComponentDeclaration<TaskHeaderCloudComponent, "adf-cloud-task-header", never, { "appName": { "alias": "appName"; "required": true; }; "taskId": { "alias": "taskId"; "required": true; }; "showTitle": { "alias": "showTitle"; "required": false; }; }, { "claim": "claim"; "unclaim": "unclaim"; "error": "error"; }, never, never, true, never>;
85
+ static ɵcmp: i0.ɵɵComponentDeclaration<TaskHeaderCloudComponent, "adf-cloud-task-header", never, { "appName": { "alias": "appName"; "required": true; }; "taskId": { "alias": "taskId"; "required": true; }; "showTitle": { "alias": "showTitle"; "required": false; }; "processInstanceId": { "alias": "processInstanceId"; "required": false; }; }, { "claim": "claim"; "unclaim": "unclaim"; "error": "error"; }, never, never, true, never>;
81
86
  }
@@ -14,12 +14,12 @@
14
14
 
15
15
  &-switch-to-edit-mode,
16
16
  &-save-edit-mode {
17
- color: var(--theme-primary-color);
17
+ color: var(--mat-sys-primary);
18
18
  }
19
19
 
20
20
  &-cancel-edit-mode,
21
21
  &-claim-controls {
22
- color: rgb(131, 131, 131);
22
+ color: var(--mat-sys-on-surface-variant);
23
23
  }
24
24
 
25
25
  &-task-header-loading {
@@ -19,10 +19,11 @@ export declare class TaskListCloudService extends BaseCloudService implements Ta
19
19
  * Retrieves a list of tasks using an object with optional query properties.
20
20
  *
21
21
  * @param requestNode Query object
22
- * @param queryUrl Query url
22
+ * @param queryUrl Query url. If empty, query service will be called.
23
23
  * @returns List of tasks
24
24
  */
25
25
  fetchTaskList(requestNode: TaskListRequestModel, queryUrl?: string): Observable<any>;
26
+ fetchTaskList_UsingRuntimeBundleService(requestNode: TaskListRequestModel): Observable<any>;
26
27
  getTaskListCounter(requestNode: TaskListRequestModel): Observable<number>;
27
28
  getTaskListCount(requestNode: TaskListRequestModel): Observable<number>;
28
29
  protected buildQueryData(requestNode: TaskListRequestModel): any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@alfresco/adf-process-services-cloud",
3
3
  "description": "Alfresco ADF process services cloud",
4
- "version": "8.5.0-24716296101",
4
+ "version": "8.5.0",
5
5
  "author": "Hyland Software, Inc. and its affiliates",
6
6
  "repository": {
7
7
  "type": "git",
@@ -21,9 +21,9 @@
21
21
  "@angular/platform-browser": ">=14.1.3",
22
22
  "@angular/platform-browser-dynamic": ">=14.1.3",
23
23
  "@angular/router": ">=14.1.3",
24
- "@alfresco/js-api": ">=9.5.0-24716296101",
25
- "@alfresco/adf-core": ">=8.5.0-24716296101",
26
- "@alfresco/adf-content-services": ">=8.5.0-24716296101",
24
+ "@alfresco/js-api": ">=9.5.0",
25
+ "@alfresco/adf-core": ">=8.5.0",
26
+ "@alfresco/adf-content-services": ">=8.5.0",
27
27
  "@apollo/client": ">=3.7.2",
28
28
  "@ngx-translate/core": ">=17.0.0",
29
29
  "apollo-angular": ">=4.0.1",
@@ -1,3 +0,0 @@
1
- .adf-process-header-cloud-card {
2
- background-color: var(--adf-theme-background-card-color);
3
- }