@alfresco/adf-process-services-cloud 8.5.0-25850979174 → 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 (190) hide show
  1. package/LICENSE +177 -0
  2. package/bundles/assets/adf-process-services-cloud/i18n/en-AU.json +386 -0
  3. package/fesm2022/adf-process-services-cloud.mjs +654 -369
  4. package/fesm2022/adf-process-services-cloud.mjs.map +1 -1
  5. package/index.d.ts +3 -6257
  6. package/lib/app/components/app-details-cloud/app-details-cloud.component.scss +168 -0
  7. package/lib/app/models/application-instance.model.d.ts +67 -0
  8. package/lib/app/public-api.d.ts +18 -0
  9. package/lib/app/services/apps-process-cloud.service.d.ts +25 -0
  10. package/lib/common/date-range-filter/date-range-filter.component.d.ts +49 -0
  11. package/lib/common/date-range-filter/date-range-filter.service.d.ts +17 -0
  12. package/lib/common/index.d.ts +17 -0
  13. package/lib/common/interface/environment.interface.d.ts +20 -0
  14. package/lib/common/interface/index.d.ts +17 -0
  15. package/lib/common/interface/public-api.d.ts +17 -0
  16. package/lib/common/public-api.d.ts +18 -0
  17. package/lib/form/components/cloud-form-rendering.service.d.ts +7 -0
  18. package/lib/form/components/form-cloud-custom-outcomes.component.d.ts +5 -0
  19. package/lib/form/components/form-cloud.component.d.ts +155 -0
  20. package/lib/form/components/form-cloud.component.scss +40 -11
  21. package/lib/form/components/spinner/form-spinner.component.d.ts +6 -0
  22. package/lib/form/components/spinner/form-spinner.component.scss +1 -1
  23. package/lib/form/components/widgets/attach-file/attach-file-cloud-widget.component.d.ts +62 -0
  24. package/lib/form/components/widgets/attach-file/attach-file-cloud-widget.component.scss +3 -20
  25. package/lib/form/components/widgets/attach-file/file-properties-table/file-properties-table-cloud.component.d.ts +49 -0
  26. package/lib/form/components/widgets/attach-file/file-properties-table/file-properties-table-cloud.component.scss +1 -1
  27. package/lib/form/components/widgets/data-table/data-table-adapter.widget.d.ts +42 -0
  28. package/lib/form/components/widgets/data-table/data-table.widget.d.ts +43 -0
  29. package/lib/form/components/widgets/data-table/data-table.widget.scss +0 -1
  30. package/lib/form/components/widgets/data-table/helpers/data-table-path-parser.helper.d.ts +29 -0
  31. package/lib/form/components/widgets/date/date-cloud.widget.d.ts +47 -0
  32. package/lib/form/components/widgets/display-external-property/display-external-property.widget.d.ts +39 -0
  33. package/lib/form/components/widgets/display-external-property/display-external-property.widget.scss +0 -1
  34. package/lib/form/components/widgets/display-rich-text/display-rich-text.widget.d.ts +37 -0
  35. package/lib/form/components/widgets/display-rich-text/display-rich-text.widget.scss +0 -9
  36. package/lib/form/components/widgets/dropdown/dropdown-cloud.widget.d.ts +105 -0
  37. package/lib/form/components/widgets/dropdown/dropdown-cloud.widget.scss +0 -4
  38. package/lib/form/components/widgets/dropdown/validators.d.ts +19 -0
  39. package/lib/form/components/widgets/file-viewer/file-viewer.widget.d.ts +6 -0
  40. package/lib/form/components/widgets/group/group-cloud.widget.d.ts +37 -0
  41. package/lib/form/components/widgets/people/people-cloud.widget.d.ts +40 -0
  42. package/lib/form/components/widgets/properties-viewer/properties-viewer-wrapper/properties-viewer-wrapper.component.d.ts +53 -0
  43. package/lib/form/components/widgets/properties-viewer/properties-viewer.widget.d.ts +26 -0
  44. package/lib/form/components/widgets/properties-viewer/properties-viewer.widget.scss +1 -1
  45. package/lib/form/components/widgets/radio-buttons/radio-buttons-cloud.schema.d.ts +18 -0
  46. package/lib/form/components/widgets/radio-buttons/radio-buttons-cloud.widget.d.ts +41 -0
  47. package/lib/form/components/widgets/radio-buttons/radio-buttons-cloud.widget.scss +0 -9
  48. package/lib/form/components/widgets/upload/upload-cloud.widget.d.ts +55 -0
  49. package/lib/form/form-cloud.module.d.ts +34 -0
  50. package/lib/form/models/form-cloud-representation.model.d.ts +48 -0
  51. package/lib/form/models/task-variable-cloud.model.d.ts +24 -0
  52. package/lib/form/public-api.d.ts +40 -0
  53. package/lib/form/services/content-cloud-node-selector.service.d.ts +21 -0
  54. package/lib/form/services/display-mode.service.d.ts +22 -0
  55. package/lib/form/services/form-cloud.service.d.ts +104 -0
  56. package/lib/form/services/form-cloud.service.interface.d.ts +34 -0
  57. package/lib/form/services/form-utils.service.d.ts +11 -0
  58. package/lib/form/services/process-cloud-content.service.d.ts +18 -0
  59. package/lib/form/services/rich-text-parser.service.d.ts +12 -0
  60. package/lib/form/services/spinner/form-cloud-spinner.service.d.ts +26 -0
  61. package/lib/group/components/group-cloud.component.d.ts +123 -0
  62. package/lib/group/components/group-cloud.component.scss +3 -14
  63. package/lib/group/group-cloud.module.d.ts +8 -0
  64. package/lib/group/models/identity-group.model.d.ts +21 -0
  65. package/lib/group/public-api.d.ts +20 -0
  66. package/lib/group/services/identity-group.service.d.ts +28 -0
  67. package/lib/models/application-version.model.d.ts +30 -0
  68. package/lib/models/constant-values.type.d.ts +20 -0
  69. package/lib/models/data-column-custom-data.d.ts +22 -0
  70. package/lib/models/date-cloud-filter.model.d.ts +36 -0
  71. package/lib/models/date-format-cloud.model.d.ts +17 -0
  72. package/lib/models/engine-event-cloud.model.d.ts +21 -0
  73. package/lib/models/filter-cloud-model.d.ts +92 -0
  74. package/lib/models/process-definition-cloud.model.d.ts +32 -0
  75. package/lib/models/process-instance-variable.model.d.ts +38 -0
  76. package/lib/models/process-variable-filter.model.d.ts +24 -0
  77. package/lib/models/task-cloud.model.d.ts +57 -0
  78. package/lib/models/task-list-sorting.model.d.ts +31 -0
  79. package/lib/models/variable-definition.d.ts +24 -0
  80. package/lib/people/components/people-cloud.component.d.ts +167 -0
  81. package/lib/people/components/people-cloud.component.scss +3 -22
  82. package/lib/people/models/identity-user.model.d.ts +24 -0
  83. package/lib/people/people-cloud.module.d.ts +8 -0
  84. package/lib/people/public-api.d.ts +20 -0
  85. package/lib/people/services/identity-user.service.d.ts +45 -0
  86. package/lib/process/process-cloud.module.d.ts +16 -0
  87. package/lib/process/process-filters/components/edit-process-filter/edit-process-filter-cloud.component.d.ts +182 -0
  88. package/lib/process/process-filters/components/edit-process-filter/edit-process-filter-cloud.component.scss +0 -23
  89. package/lib/process/process-filters/components/process-filter-dialog/process-filter-dialog-cloud.component.d.ts +16 -0
  90. package/lib/process/process-filters/components/process-filters/process-filters-cloud.component.d.ts +146 -0
  91. package/lib/process/process-filters/components/process-filters/process-filters-cloud.component.scss +3 -3
  92. package/lib/process/process-filters/models/process-filter-cloud.model.d.ts +110 -0
  93. package/lib/process/process-filters/process-filters-cloud.module.d.ts +14 -0
  94. package/lib/process/process-filters/public-api.d.ts +22 -0
  95. package/lib/process/process-filters/services/process-filter-cloud.service.d.ts +163 -0
  96. package/lib/process/process-header/components/process-header-cloud.component.d.ts +48 -0
  97. package/lib/process/process-header/process-header-cloud.module.d.ts +8 -0
  98. package/lib/process/process-header/public-api.d.ts +18 -0
  99. package/lib/process/process-list/components/process-list-cloud.component.d.ts +228 -0
  100. package/lib/process/process-list/datatable/process-list-datatable-adapter.d.ts +23 -0
  101. package/lib/process/process-list/models/perocess-instance-cloud-view.model.d.ts +19 -0
  102. package/lib/process/process-list/models/process-cloud-preferences.d.ts +22 -0
  103. package/lib/process/process-list/models/process-cloud-preset.model.d.ts +35 -0
  104. package/lib/process/process-list/models/process-cloud-query-request.model.d.ts +80 -0
  105. package/lib/process/process-list/models/process-list-sorting.model.d.ts +31 -0
  106. package/lib/process/process-list/process-list-cloud.module.d.ts +7 -0
  107. package/lib/process/process-list/public-api.d.ts +24 -0
  108. package/lib/process/process-list/services/process-list-cloud.service.d.ts +56 -0
  109. package/lib/process/process-list/services/process-task-list-cloud.service.d.ts +30 -0
  110. package/lib/process/public-api.d.ts +22 -0
  111. package/lib/process/services/process-cloud.service.d.ts +41 -0
  112. package/lib/process/start-process/components/start-process-cloud.component.d.ts +146 -0
  113. package/lib/process/start-process/components/start-process-cloud.component.scss +0 -4
  114. package/lib/process/start-process/models/process-instance-cloud.model.d.ts +48 -0
  115. package/lib/process/start-process/models/process-payload-cloud.model.d.ts +35 -0
  116. package/lib/process/start-process/models/process-with-form-payload-cloud.model.d.ts +24 -0
  117. package/lib/process/start-process/public-api.d.ts +20 -0
  118. package/lib/process/start-process/services/start-process-cloud.service.d.ts +64 -0
  119. package/lib/process-services-cloud.module.d.ts +61 -0
  120. package/lib/providers.d.ts +36 -0
  121. package/lib/screen/components/screen-cloud/base-screen/base-screen-cloud.component.d.ts +33 -0
  122. package/lib/screen/components/screen-cloud/start-process-event-screen/start-process-screen-cloud.component.d.ts +16 -0
  123. package/lib/screen/components/screen-cloud/start-process-event-screen/start-process-screen.model.d.ts +29 -0
  124. package/lib/screen/components/screen-cloud/user-task-screen/screen-cloud.component.d.ts +48 -0
  125. package/lib/screen/components/screen-cloud/user-task-screen/screen-cloud.model.d.ts +38 -0
  126. package/lib/screen/public-api.d.ts +20 -0
  127. package/lib/screen/services/provide-screen.d.ts +37 -0
  128. package/lib/screen/services/screen-rendering.service.d.ts +51 -0
  129. package/lib/services/base-cloud.service.d.ts +37 -0
  130. package/lib/services/cloud-token.service.d.ts +24 -0
  131. package/lib/services/form-fields.interfaces.d.ts +246 -0
  132. package/lib/services/local-preference-cloud.service.d.ts +51 -0
  133. package/lib/services/notification-cloud.service.d.ts +7 -0
  134. package/lib/services/preference-cloud.interface.d.ts +24 -0
  135. package/lib/services/public-api.d.ts +26 -0
  136. package/lib/services/task-list-cloud.service.interface.d.ts +47 -0
  137. package/lib/services/task-type-resolver/task-type-resolver.service.d.ts +15 -0
  138. package/lib/services/user-preference-cloud.service.d.ts +49 -0
  139. package/lib/services/variable-mapper.sevice.d.ts +13 -0
  140. package/lib/services/web-socket.service.d.ts +28 -0
  141. package/lib/task/models/start-task-cloud-request.model.d.ts +28 -0
  142. package/lib/task/models/task-details-cloud.model.d.ts +62 -0
  143. package/lib/task/models/task.model.d.ts +22 -0
  144. package/lib/task/public-api.d.ts +25 -0
  145. package/lib/task/services/task-cloud.service.d.ts +145 -0
  146. package/lib/task/task-cloud.module.d.ts +18 -0
  147. package/lib/task/task-filters/components/base-task-filters-cloud.component.d.ts +44 -0
  148. package/lib/task/task-filters/components/edit-task-filters/base-edit-task-filter-cloud.component.d.ts +152 -0
  149. package/lib/task/task-filters/components/edit-task-filters/edit-service-task-filter/edit-service-task-filter-cloud.component.d.ts +21 -0
  150. package/lib/task/task-filters/components/edit-task-filters/edit-service-task-filter/edit-service-task-filter-cloud.component.scss +0 -24
  151. package/lib/task/task-filters/components/edit-task-filters/edit-task-filter/edit-task-filter-cloud.component.d.ts +24 -0
  152. package/lib/task/task-filters/components/edit-task-filters/edit-task-filter/edit-task-filter-cloud.component.scss +0 -24
  153. package/lib/task/task-filters/components/service-task-filters/service-task-filters-cloud.component.d.ts +69 -0
  154. package/lib/task/task-filters/components/service-task-filters/service-task-filters-cloud.component.scss +8 -8
  155. package/lib/task/task-filters/components/task-assignment-filter/task-assignment-filter.component.d.ts +53 -0
  156. package/lib/task/task-filters/components/task-assignment-filter/task-assignment-filter.component.scss +0 -16
  157. package/lib/task/task-filters/components/task-filter-dialog/task-filter-dialog-cloud.component.d.ts +35 -0
  158. package/lib/task/task-filters/components/task-filters/task-filters-cloud.component.d.ts +106 -0
  159. package/lib/task/task-filters/components/task-filters/task-filters-cloud.component.scss +3 -3
  160. package/lib/task/task-filters/models/filter-cloud.model.d.ts +168 -0
  161. package/lib/task/task-filters/public-api.d.ts +26 -0
  162. package/lib/task/task-filters/services/service-task-filter-cloud.service.d.ts +127 -0
  163. package/lib/task/task-filters/services/task-filter-cloud.service.d.ts +158 -0
  164. package/lib/task/task-filters/task-filters-cloud.module.d.ts +20 -0
  165. package/lib/task/task-form/components/task-form-cloud/task-form-cloud.component.d.ts +126 -0
  166. package/lib/task/task-form/components/user-task-cloud/complete-task/complete-task.directive.d.ts +39 -0
  167. package/lib/task/task-form/components/user-task-cloud/user-task-cloud.component.d.ts +138 -0
  168. package/lib/task/task-form/components/user-task-cloud-buttons/claim-task/claim-task-cloud.directive.d.ts +41 -0
  169. package/lib/task/task-form/components/user-task-cloud-buttons/unclaim-task/unclaim-task-cloud.directive.d.ts +39 -0
  170. package/lib/task/task-form/components/user-task-cloud-buttons/user-task-cloud-buttons.component.d.ts +49 -0
  171. package/lib/task/task-form/public-api.d.ts +20 -0
  172. package/lib/task/task-form/task-form.module.d.ts +14 -0
  173. package/lib/task/task-header/components/task-header-cloud.component.d.ts +86 -0
  174. package/lib/task/task-header/components/task-header-cloud.component.scss +2 -2
  175. package/lib/task/task-header/public-api.d.ts +18 -0
  176. package/lib/task/task-header/task-header-cloud.module.d.ts +8 -0
  177. package/lib/task/task-list/components/base-task-list-cloud.component.d.ts +131 -0
  178. package/lib/task/task-list/components/service-task-list/service-task-list-cloud.component.d.ts +16 -0
  179. package/lib/task/task-list/components/task-list/datatable/task-list-datatable-adapter.d.ts +23 -0
  180. package/lib/task/task-list/components/task-list/task-list-cloud.component.d.ts +135 -0
  181. package/lib/task/task-list/models/service-task-cloud.model.d.ts +126 -0
  182. package/lib/task/task-list/models/task-cloud-view.model.d.ts +19 -0
  183. package/lib/task/task-list/public-api.d.ts +22 -0
  184. package/lib/task/task-list/services/service-task-list-cloud.service.d.ts +51 -0
  185. package/lib/task/task-list/services/task-list-cloud.service.d.ts +36 -0
  186. package/lib/task/task-list/task-list-cloud.module.d.ts +12 -0
  187. package/lib/types.d.ts +17 -0
  188. package/package.json +4 -4
  189. package/public-api.d.ts +39 -0
  190. package/lib/process/process-header/components/process-header-cloud.component.scss +0 -3
@@ -0,0 +1,168 @@
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 { DateCloudFilterType } from '../../../models/date-cloud-filter.model';
18
+ import { ComponentSelectionMode } from '../../../types';
19
+ import { IdentityGroupModel } from '../../../group/models/identity-group.model';
20
+ import { IdentityUserModel } from '../../../people/models/identity-user.model';
21
+ import { ProcessVariableFilterModel } from '../../../models/process-variable-filter.model';
22
+ export declare class TaskFilterCloudModel {
23
+ id: string;
24
+ name: string;
25
+ key: string;
26
+ environmentId?: string;
27
+ icon: string;
28
+ index: number;
29
+ appName: string;
30
+ status: TaskStatusFilter;
31
+ sort: string;
32
+ assignee: string;
33
+ assignedUsers: IdentityUserModel[];
34
+ candidateGroups: IdentityGroupModel[];
35
+ order: string;
36
+ owner: string;
37
+ processDefinitionName?: string;
38
+ processDefinitionId: string;
39
+ processInstanceId: string;
40
+ createdDate: Date;
41
+ dueDateType: DateCloudFilterType;
42
+ dueDate: Date;
43
+ taskName: string;
44
+ taskId: string;
45
+ parentTaskId: string;
46
+ priority: number;
47
+ standalone: boolean;
48
+ lastModifiedFrom: string;
49
+ lastModifiedTo: string;
50
+ completedDateType: DateCloudFilterType;
51
+ createdDateType: DateCloudFilterType;
52
+ assignmentType: AssignmentType;
53
+ completedDate: Date;
54
+ completedBy: IdentityUserModel;
55
+ showCounter: boolean;
56
+ taskNames: string[] | null;
57
+ statuses: TaskStatusFilter[] | null;
58
+ assignees: string[] | null;
59
+ processNames: string[] | null;
60
+ processDefinitionNames: string[] | null;
61
+ taskIds: string[] | null;
62
+ parentTaskIds: string[] | null;
63
+ processInstanceIds: string[] | null;
64
+ priorities: string[] | null;
65
+ completedByUsers: string[] | null;
66
+ private _completedFrom;
67
+ private _completedTo;
68
+ private _dueDateFrom;
69
+ private _dueDateTo;
70
+ private _createdFrom;
71
+ private _createdTo;
72
+ private readonly dateRangeFilterService;
73
+ processVariableFilters?: ProcessVariableFilterModel[];
74
+ constructor(obj?: any);
75
+ private initArrayProperties;
76
+ set dueDateFrom(dueDateFrom: string);
77
+ get dueDateFrom(): string;
78
+ set dueDateTo(dueDateTo: string);
79
+ get dueDateTo(): string;
80
+ set completedFrom(completedFrom: string);
81
+ get completedFrom(): string;
82
+ set completedTo(completedTo: string);
83
+ get completedTo(): string;
84
+ set createdFrom(createdFrom: string);
85
+ get createdFrom(): string;
86
+ set createdTo(createdTo: string);
87
+ get createdTo(): string;
88
+ private getStartDate;
89
+ private getEndDate;
90
+ private isDateRangeType;
91
+ }
92
+ export interface ServiceTaskFilterCloudModel {
93
+ id?: string;
94
+ name?: string;
95
+ environmentId?: string;
96
+ key?: string;
97
+ icon?: string;
98
+ index?: number;
99
+ appName?: string;
100
+ status?: string;
101
+ sort?: string;
102
+ order?: string;
103
+ activityName?: string;
104
+ activityType?: string;
105
+ completedDate?: Date;
106
+ completedDateType?: DateCloudFilterType;
107
+ completedFrom?: string;
108
+ completedTo?: string;
109
+ elementId?: string;
110
+ executionId?: string;
111
+ processDefinitionId?: string;
112
+ processDefinitionKey?: string;
113
+ processDefinitionVersion?: number;
114
+ processInstanceId?: string;
115
+ serviceTaskId?: string;
116
+ serviceFullName?: string;
117
+ serviceName?: string;
118
+ serviceVersion?: string;
119
+ startedDate?: Date;
120
+ startedDateType?: DateCloudFilterType;
121
+ startedFrom?: string;
122
+ startedTo?: string;
123
+ }
124
+ export interface FilterParamsModel {
125
+ id?: string;
126
+ name?: string;
127
+ key?: string;
128
+ index?: number;
129
+ }
130
+ export interface TaskFilterAction {
131
+ actionType?: string;
132
+ icon?: string;
133
+ tooltip?: string;
134
+ filter?: TaskFilterCloudModel | ServiceTaskFilterCloudModel;
135
+ }
136
+ export interface FilterOptions {
137
+ label?: string;
138
+ value?: string;
139
+ }
140
+ export declare const AssignmentType: {
141
+ readonly CURRENT_USER: "CURRENT_USER";
142
+ readonly UNASSIGNED: "UNASSIGNED";
143
+ readonly NONE: "NONE";
144
+ readonly CANDIDATE_GROUPS: "CANDIDATE_GROUPS";
145
+ readonly ASSIGNED_TO: "ASSIGNED_TO";
146
+ };
147
+ export type AssignmentType = (typeof AssignmentType)[keyof typeof AssignmentType];
148
+ export declare const TaskStatusFilter: {
149
+ readonly ALL: "";
150
+ readonly CREATED: "CREATED";
151
+ readonly ASSIGNED: "ASSIGNED";
152
+ readonly SUSPENDED: "SUSPENDED";
153
+ readonly CANCELLED: "CANCELLED";
154
+ readonly COMPLETED: "COMPLETED";
155
+ };
156
+ export type TaskStatusFilter = (typeof TaskStatusFilter)[keyof typeof TaskStatusFilter];
157
+ export interface TaskFilterProperties {
158
+ label?: string;
159
+ type?: string;
160
+ value?: any;
161
+ key?: string;
162
+ attributes?: {
163
+ [key: string]: string;
164
+ };
165
+ options?: FilterOptions[];
166
+ dateFilterOptions?: DateCloudFilterType[];
167
+ selectionMode?: ComponentSelectionMode;
168
+ }
@@ -0,0 +1,26 @@
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 './components/edit-task-filters/edit-task-filter/edit-task-filter-cloud.component';
18
+ export * from './components/edit-task-filters/edit-service-task-filter/edit-service-task-filter-cloud.component';
19
+ export * from './components/service-task-filters/service-task-filters-cloud.component';
20
+ export * from './components/task-assignment-filter/task-assignment-filter.component';
21
+ export * from './components/task-filter-dialog/task-filter-dialog-cloud.component';
22
+ export * from './components/task-filters/task-filters-cloud.component';
23
+ export * from './models/filter-cloud.model';
24
+ export * from './services/task-filter-cloud.service';
25
+ export * from './services/service-task-filter-cloud.service';
26
+ export * from './task-filters-cloud.module';
@@ -0,0 +1,127 @@
1
+ import { Observable } from 'rxjs';
2
+ import { ServiceTaskFilterCloudModel } from '../models/filter-cloud.model';
3
+ import { PreferenceCloudServiceInterface } from '../../../services/preference-cloud.interface';
4
+ import { IdentityUserService } from '../../../people/services/identity-user.service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class ServiceTaskFilterCloudService {
7
+ private readonly filtersSubject;
8
+ readonly filters$: Observable<ServiceTaskFilterCloudModel[]>;
9
+ protected readonly preferenceService: PreferenceCloudServiceInterface;
10
+ protected readonly identityUserService: IdentityUserService;
11
+ /**
12
+ * Creates and returns the default task filters for an app.
13
+ *
14
+ * @param appName Name of the target app
15
+ */
16
+ private createDefaultFilters;
17
+ /**
18
+ * Checks user preference are empty or not
19
+ *
20
+ * @param preferences User preferences of the target app
21
+ * @returns Boolean value if the preferences are not empty
22
+ */
23
+ private hasPreferences;
24
+ /**
25
+ * Checks for task filters in given user preferences
26
+ *
27
+ * @param preferences User preferences of the target app
28
+ * @param key Key of the task filters
29
+ * @returns Boolean value if the preference has task filters
30
+ */
31
+ private hasTaskFilters;
32
+ /**
33
+ * Calls create preference api to create task filters
34
+ *
35
+ * @param appName Name of the target app
36
+ * @param key Key of the task instance filters
37
+ * @param filters Details of new task filter
38
+ * @returns Observable of created task filters
39
+ */
40
+ private createTaskFilters;
41
+ /**
42
+ * Calls get preference api to get task filter by preference key
43
+ *
44
+ * @param appName Name of the target app
45
+ * @param key Key of the task filters
46
+ * @returns Observable of task filters
47
+ */
48
+ private getTaskFiltersByKey;
49
+ /**
50
+ * Gets all task filters for a task app.
51
+ *
52
+ * @param appName Name of the target app
53
+ * @returns Observable of task filter details
54
+ */
55
+ getTaskListFilters(appName?: string): Observable<ServiceTaskFilterCloudModel[]>;
56
+ /**
57
+ * Gets a task filter.
58
+ *
59
+ * @param appName Name of the target app
60
+ * @param id ID of the task
61
+ * @returns Details of the task filter
62
+ */
63
+ getTaskFilterById(appName: string, id: string): Observable<ServiceTaskFilterCloudModel>;
64
+ /**
65
+ * Adds a new task filter.
66
+ *
67
+ * @param newFilter The new filter to add
68
+ * @returns Observable of task instance filters with newly added filter
69
+ */
70
+ addFilter(newFilter: ServiceTaskFilterCloudModel): Observable<ServiceTaskFilterCloudModel[]>;
71
+ private addFiltersToStream;
72
+ /**
73
+ * Updates a task filter.
74
+ *
75
+ * @param updatedFilter The filter to update
76
+ * @returns Observable of task instance filters with updated filter
77
+ */
78
+ updateFilter(updatedFilter: ServiceTaskFilterCloudModel): Observable<ServiceTaskFilterCloudModel[]>;
79
+ /**
80
+ * Deletes a task filter
81
+ *
82
+ * @param deletedFilter The filter to delete
83
+ * @returns Observable of task instance filters without deleted filter
84
+ */
85
+ deleteFilter(deletedFilter: ServiceTaskFilterCloudModel): Observable<ServiceTaskFilterCloudModel[]>;
86
+ /**
87
+ * Checks if given filter is a default filter
88
+ *
89
+ * @param filterName Name of the target task filter
90
+ * @returns Boolean value for whether the filter is a default filter
91
+ */
92
+ isDefaultFilter(filterName: string): boolean;
93
+ /**
94
+ * Calls update preference api to update task filter
95
+ *
96
+ * @param appName Name of the target app
97
+ * @param key Key of the task filters
98
+ * @param filters Details of update filter
99
+ * @returns Observable of updated task filters
100
+ */
101
+ private updateTaskFilters;
102
+ /**
103
+ * Creates a uniq key with appName and username
104
+ *
105
+ * @param appName Name of the target app
106
+ * @returns String of task filters preference key
107
+ */
108
+ protected prepareKey(appName: string): string;
109
+ /**
110
+ * Finds and returns the task filters from preferences
111
+ *
112
+ * @returns Array of TaskFilterCloudModel
113
+ * @param preferences preferences
114
+ * @param key key
115
+ */
116
+ private findFiltersByKeyInPreferences;
117
+ /**
118
+ * Creates and returns the default filters for a task app.
119
+ *
120
+ * @param appName Name of the target app
121
+ * @returns Array of TaskFilterCloudModel
122
+ */
123
+ private defaultServiceTaskFilters;
124
+ generateRandomId(): string;
125
+ static ɵfac: i0.ɵɵFactoryDeclaration<ServiceTaskFilterCloudService, never>;
126
+ static ɵprov: i0.ɵɵInjectableDeclaration<ServiceTaskFilterCloudService>;
127
+ }
@@ -0,0 +1,158 @@
1
+ import { Observable } from 'rxjs';
2
+ import { TaskFilterCloudModel } from '../models/filter-cloud.model';
3
+ import { BaseCloudService } from '../../../services/base-cloud.service';
4
+ import { PreferenceCloudServiceInterface } from '../../../services/preference-cloud.interface';
5
+ import { TaskCloudEngineEvent } from '../../../models/engine-event-cloud.model';
6
+ import { IdentityUserService } from '../../../people/services/identity-user.service';
7
+ import * as i0 from "@angular/core";
8
+ export declare class TaskFilterCloudService extends BaseCloudService {
9
+ private readonly notificationCloudService;
10
+ preferenceService: PreferenceCloudServiceInterface;
11
+ protected identityUserService: IdentityUserService;
12
+ private readonly filtersSubject;
13
+ filters$: Observable<TaskFilterCloudModel[]>;
14
+ private readonly filterKeyToBeRefreshedSource;
15
+ filterKeyToBeRefreshed$: Observable<string>;
16
+ /**
17
+ * Creates and returns the default task filters for an app.
18
+ *
19
+ * @param appName Name of the target app
20
+ */
21
+ private createDefaultFilters;
22
+ /**
23
+ * Checks user preference are empty or not
24
+ *
25
+ * @param preferences User preferences of the target app
26
+ * @returns Boolean value if the preferences are not empty
27
+ */
28
+ private hasPreferences;
29
+ /**
30
+ * Checks for task filters in given user preferences
31
+ *
32
+ * @param preferences User preferences of the target app
33
+ * @param key Key of the task filters
34
+ * @returns Boolean value if the preference has task filters
35
+ */
36
+ private hasTaskFilters;
37
+ /**
38
+ * Calls create preference api to create task filters
39
+ *
40
+ * @param appName Name of the target app
41
+ * @param key Key of the task instance filters
42
+ * @param filters Details of new task filter
43
+ * @returns Observable of created task filters
44
+ */
45
+ private createTaskFilters;
46
+ /**
47
+ * Calls get preference api to get task filter by preference key
48
+ *
49
+ * @param appName Name of the target app
50
+ * @param key Key of the task filters
51
+ * @returns Observable of task filters
52
+ */
53
+ private getTaskFiltersByKey;
54
+ /**
55
+ * Gets all task filters for a task app.
56
+ *
57
+ * @param appName Name of the target app
58
+ * @returns Observable of task filter details
59
+ */
60
+ getTaskListFilters(appName?: string): Observable<TaskFilterCloudModel[]>;
61
+ /**
62
+ * Gets a task filter.
63
+ *
64
+ * @param appName Name of the target app
65
+ * @param id ID of the task
66
+ * @returns Details of the task filter
67
+ */
68
+ getTaskFilterById(appName: string, id: string): Observable<TaskFilterCloudModel>;
69
+ /**
70
+ * Adds a new task filter.
71
+ *
72
+ * @param newFilter The new filter to add
73
+ * @returns Observable of task instance filters with newly added filter
74
+ */
75
+ addFilter(newFilter: TaskFilterCloudModel): Observable<TaskFilterCloudModel[]>;
76
+ private addFiltersToStream;
77
+ /**
78
+ * Updates a task filter.
79
+ *
80
+ * @param updatedFilter The filter to update
81
+ * @returns Observable of task instance filters with updated filter
82
+ */
83
+ updateFilter(updatedFilter: TaskFilterCloudModel): Observable<TaskFilterCloudModel[]>;
84
+ /**
85
+ * Deletes a task filter
86
+ *
87
+ * @param deletedFilter The filter to delete
88
+ * @returns Observable of task instance filters without deleted filter
89
+ */
90
+ deleteFilter(deletedFilter: TaskFilterCloudModel): Observable<TaskFilterCloudModel[]>;
91
+ /**
92
+ * Checks if given filter is a default filter
93
+ *
94
+ * @param filterName Name of the target task filter
95
+ * @returns Boolean value for whether the filter is a default filter
96
+ */
97
+ isDefaultFilter(filterName: string): boolean;
98
+ /**
99
+ * Finds a task using an object with optional query properties.
100
+ *
101
+ * @returns Task information
102
+ * @param taskFilter task filter model
103
+ */
104
+ getTaskFilterCounter(taskFilter: TaskFilterCloudModel): Observable<number>;
105
+ /**
106
+ * Calls update preference api to update task filter
107
+ *
108
+ * @param appName Name of the target app
109
+ * @param key Key of the task filters
110
+ * @param filters Details of update filter
111
+ * @returns Observable of updated task filters
112
+ */
113
+ private updateTaskFilters;
114
+ /**
115
+ * Creates a uniq key with appName and username
116
+ *
117
+ * @param appName Name of the target app
118
+ * @returns String of task filters preference key
119
+ */
120
+ protected prepareKey(appName: string): string;
121
+ /**
122
+ * Finds and returns the task filters from preferences
123
+ *
124
+ * @returns Array of TaskFilterCloudModel
125
+ * @param preferences preferences
126
+ * @param key key
127
+ */
128
+ private findFiltersByKeyInPreferences;
129
+ /**
130
+ * Creates and returns the default filters for a task app.
131
+ *
132
+ * @param appName Name of the target app
133
+ * @returns Array of TaskFilterCloudModel
134
+ */
135
+ private defaultTaskFilters;
136
+ getTaskNotificationSubscription(appName: string): Observable<TaskCloudEngineEvent[]>;
137
+ /**
138
+ * Refresh filter key
139
+ *
140
+ * @param filterKey Key of the filter
141
+ */
142
+ refreshFilter(filterKey: string): void;
143
+ /**
144
+ * This method is run after retrieving the filter array from preferences.
145
+ * It handles the backwards compatibility with the new API by looking for the new properties and their counterparts in each passed filter.
146
+ * If the new property is not found, it is created and assigned the value constructed from the old property.
147
+ * The filters are then updated in the preferences and returned.
148
+ * Old properties are left untouched for purposes like feature toggling.
149
+ *
150
+ * @param appName Name of the target app.
151
+ * @param key Key of the task filters.
152
+ * @param filters Array of task filters to be checked for backward compatibility.
153
+ * @returns Observable of task filters with updated properties.
154
+ */
155
+ private handleCreateFilterBackwardsCompatibility;
156
+ static ɵfac: i0.ɵɵFactoryDeclaration<TaskFilterCloudService, never>;
157
+ static ɵprov: i0.ɵɵInjectableDeclaration<TaskFilterCloudService>;
158
+ }
@@ -0,0 +1,20 @@
1
+ import { TaskFiltersCloudComponent } from './components/task-filters/task-filters-cloud.component';
2
+ import { EditServiceTaskFilterCloudComponent } from './components/edit-task-filters/edit-service-task-filter/edit-service-task-filter-cloud.component';
3
+ import { EditTaskFilterCloudComponent } from './components/edit-task-filters/edit-task-filter/edit-task-filter-cloud.component';
4
+ import { TaskFilterDialogCloudComponent } from './components/task-filter-dialog/task-filter-dialog-cloud.component';
5
+ import { ServiceTaskFiltersCloudComponent } from './components/service-task-filters/service-task-filters-cloud.component';
6
+ import { TaskAssignmentFilterCloudComponent } from './components/task-assignment-filter/task-assignment-filter.component';
7
+ import * as i0 from "@angular/core";
8
+ import * as i1 from "./components/task-filter-dialog/task-filter-dialog-cloud.component";
9
+ import * as i2 from "./components/task-filters/task-filters-cloud.component";
10
+ import * as i3 from "./components/service-task-filters/service-task-filters-cloud.component";
11
+ import * as i4 from "./components/edit-task-filters/edit-task-filter/edit-task-filter-cloud.component";
12
+ import * as i5 from "./components/task-assignment-filter/task-assignment-filter.component";
13
+ import * as i6 from "./components/edit-task-filters/edit-service-task-filter/edit-service-task-filter-cloud.component";
14
+ export declare const TASK_FILTERS_CLOUD_DIRECTIVES: readonly [typeof TaskFilterDialogCloudComponent, typeof TaskFiltersCloudComponent, typeof ServiceTaskFiltersCloudComponent, typeof EditTaskFilterCloudComponent, typeof TaskAssignmentFilterCloudComponent, typeof EditServiceTaskFilterCloudComponent];
15
+ /** @deprecated use ...TASK_FILTERS_CLOUD_DIRECTIVES instead */
16
+ export declare class TaskFiltersCloudModule {
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<TaskFiltersCloudModule, never>;
18
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TaskFiltersCloudModule, never, [typeof i1.TaskFilterDialogCloudComponent, typeof i2.TaskFiltersCloudComponent, typeof i3.ServiceTaskFiltersCloudComponent, typeof i4.EditTaskFilterCloudComponent, typeof i5.TaskAssignmentFilterCloudComponent, typeof i6.EditServiceTaskFilterCloudComponent], [typeof i1.TaskFilterDialogCloudComponent, typeof i2.TaskFiltersCloudComponent, typeof i3.ServiceTaskFiltersCloudComponent, typeof i4.EditTaskFilterCloudComponent, typeof i5.TaskAssignmentFilterCloudComponent, typeof i6.EditServiceTaskFilterCloudComponent]>;
19
+ static ɵinj: i0.ɵɵInjectorDeclaration<TaskFiltersCloudModule>;
20
+ }
@@ -0,0 +1,126 @@
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 { ContentLinkModel, FormModel, FormOutcomeEvent } from '@alfresco/adf-core';
18
+ import { EventEmitter } from '@angular/core';
19
+ import { FormCloudComponent } from '../../../../form/components/form-cloud.component';
20
+ import { FormCloudDisplayModeConfiguration } from '../../../../services/form-fields.interfaces';
21
+ import { TaskDetailsCloudModel } from '../../../models/task-details-cloud.model';
22
+ import * as i0 from "@angular/core";
23
+ export declare class TaskFormCloudComponent {
24
+ private readonly taskCloudService;
25
+ private readonly formRenderingService;
26
+ /** App id to fetch corresponding form and values. */
27
+ appName: string;
28
+ /**Candidates users*/
29
+ candidateUsers: string[];
30
+ /**Candidates groups */
31
+ candidateGroups: string[];
32
+ /** Task id to fetch corresponding form and values. */
33
+ taskId: string;
34
+ /** Toggle rendering of the form title. */
35
+ showTitle: boolean;
36
+ /** Toggle rendering of the `Refresh` button. */
37
+ showRefreshButton: boolean;
38
+ /** Toggle rendering of the `Validation` icon. */
39
+ showValidationIcon: boolean;
40
+ /** Toggle rendering of the `Cancel` button. */
41
+ showCancelButton: boolean;
42
+ /** Toggle rendering of the `Complete` button. */
43
+ showCompleteButton: boolean;
44
+ /** Toggle rendering of the `Save` button. */
45
+ showSaveButton: boolean;
46
+ /**
47
+ * Custom text for the `Cancel` button.
48
+ * If not provided, the default text will be used.
49
+ */
50
+ customCancelButtonText: string;
51
+ /**
52
+ * Custom text for the `Complete` button.
53
+ * If not provided, the default text will be used.
54
+ */
55
+ customCompleteButtonText: string;
56
+ /**
57
+ * Custom text for the `Save` button.
58
+ * If not provided, the default text will be used.
59
+ */
60
+ customSaveButtonText: string;
61
+ /** Toggle readonly state of the task. */
62
+ readOnly: boolean;
63
+ /**
64
+ * The available display configurations for the form
65
+ */
66
+ displayModeConfigurations: FormCloudDisplayModeConfiguration[];
67
+ /**
68
+ * Toggle to enable parent visibility check for validation.
69
+ * When enabled, fields inside hidden groups/sections will skip validation.
70
+ */
71
+ enableParentVisibilityCheck: boolean;
72
+ /** Task details. */
73
+ taskDetails: TaskDetailsCloudModel;
74
+ /** Emitted when the form is loaded or reloaded. */
75
+ formLoaded: EventEmitter<FormModel>;
76
+ /** Emitted when the form is saved. */
77
+ formSaved: EventEmitter<FormModel>;
78
+ /** Emitted when the form is submitted with the `Complete` outcome. */
79
+ formCompleted: EventEmitter<FormModel>;
80
+ /** Emitted when the task is completed. */
81
+ taskCompleted: EventEmitter<FormModel>;
82
+ /** Emitted when the task is claimed. */
83
+ taskClaimed: EventEmitter<string>;
84
+ /** Emitted when the task is unclaimed. */
85
+ taskUnclaimed: EventEmitter<string>;
86
+ /** Emitted when the cancel button is clicked. */
87
+ cancelClick: EventEmitter<string>;
88
+ /** Emitted when any error occurs. */
89
+ error: EventEmitter<any>;
90
+ /** Emitted when form content is clicked. */
91
+ formContentClicked: EventEmitter<ContentLinkModel>;
92
+ /**
93
+ * Emitted when any outcome is executed. Default behaviour can be prevented
94
+ * via `event.preventDefault()`.
95
+ */
96
+ executeOutcome: EventEmitter<FormOutcomeEvent>;
97
+ /** Emitted when a display mode configuration is turned on. */
98
+ displayModeOn: EventEmitter<FormCloudDisplayModeConfiguration>;
99
+ /** Emitted when a display mode configuration is turned off. */
100
+ displayModeOff: EventEmitter<FormCloudDisplayModeConfiguration>;
101
+ adfCloudForm: FormCloudComponent;
102
+ loading: boolean;
103
+ constructor();
104
+ hasForm(): boolean;
105
+ canCompleteTask(): boolean;
106
+ canClaimTask(): boolean;
107
+ canUnclaimTask(): boolean;
108
+ hasCandidateUsers(): boolean;
109
+ hasCandidateGroups(): boolean;
110
+ hasCandidateUsersOrGroups(): boolean;
111
+ isReadOnly(): boolean;
112
+ onClaimTask(): void;
113
+ onUnclaimTask(): void;
114
+ onCancelClick(): void;
115
+ onFormSaved(form: FormModel): void;
116
+ onFormCompleted(form: FormModel): void;
117
+ onError(data: any): void;
118
+ onFormContentClicked(content: ContentLinkModel): void;
119
+ onFormExecuteOutcome(outcome: FormOutcomeEvent): void;
120
+ switchToDisplayMode(newDisplayMode?: string): void;
121
+ onDisplayModeOn(displayModeConfiguration: FormCloudDisplayModeConfiguration): void;
122
+ onDisplayModeOff(displayModeConfiguration: FormCloudDisplayModeConfiguration): void;
123
+ onFormLoaded(form: FormModel): void;
124
+ static ɵfac: i0.ɵɵFactoryDeclaration<TaskFormCloudComponent, never>;
125
+ static ɵcmp: i0.ɵɵComponentDeclaration<TaskFormCloudComponent, "adf-cloud-task-form", never, { "appName": { "alias": "appName"; "required": false; }; "candidateUsers": { "alias": "candidateUsers"; "required": false; }; "candidateGroups": { "alias": "candidateGroups"; "required": false; }; "taskId": { "alias": "taskId"; "required": false; }; "showTitle": { "alias": "showTitle"; "required": false; }; "showRefreshButton": { "alias": "showRefreshButton"; "required": false; }; "showValidationIcon": { "alias": "showValidationIcon"; "required": false; }; "showCancelButton": { "alias": "showCancelButton"; "required": false; }; "showCompleteButton": { "alias": "showCompleteButton"; "required": false; }; "showSaveButton": { "alias": "showSaveButton"; "required": false; }; "customCancelButtonText": { "alias": "customCancelButtonText"; "required": false; }; "customCompleteButtonText": { "alias": "customCompleteButtonText"; "required": false; }; "customSaveButtonText": { "alias": "customSaveButtonText"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "displayModeConfigurations": { "alias": "displayModeConfigurations"; "required": false; }; "enableParentVisibilityCheck": { "alias": "enableParentVisibilityCheck"; "required": false; }; "taskDetails": { "alias": "taskDetails"; "required": false; }; }, { "formLoaded": "formLoaded"; "formSaved": "formSaved"; "formCompleted": "formCompleted"; "taskCompleted": "taskCompleted"; "taskClaimed": "taskClaimed"; "taskUnclaimed": "taskUnclaimed"; "cancelClick": "cancelClick"; "error": "error"; "formContentClicked": "formContentClicked"; "executeOutcome": "executeOutcome"; "displayModeOn": "displayModeOn"; "displayModeOff": "displayModeOff"; }, never, never, true, never>;
126
+ }
@@ -0,0 +1,39 @@
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, OnInit } from '@angular/core';
18
+ import * as i0 from "@angular/core";
19
+ export declare class CompleteTaskDirective implements OnInit {
20
+ private readonly el;
21
+ private readonly renderer;
22
+ private readonly taskListService;
23
+ /** (Required) The id of the task. */
24
+ taskId: string;
25
+ /** (Required) The name of the application. */
26
+ appName: string;
27
+ /** Emitted when the task is completed. */
28
+ success: EventEmitter<any>;
29
+ /** Emitted when the task cannot be completed. */
30
+ error: EventEmitter<any>;
31
+ invalidParams: string[];
32
+ ngOnInit(): void;
33
+ validateInputs(): void;
34
+ isTaskValid(): boolean;
35
+ isAppValid(): boolean;
36
+ onClick(): Promise<void>;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<CompleteTaskDirective, never>;
38
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CompleteTaskDirective, "[adf-cloud-complete-task]", never, { "taskId": { "alias": "taskId"; "required": false; }; "appName": { "alias": "appName"; "required": false; }; }, { "success": "success"; "error": "error"; }, never, never, true, never>;
39
+ }