@alfresco/adf-process-services-cloud 8.1.0-16346981764 → 8.1.0-16445172226

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.
@@ -24,7 +24,6 @@ import { MatDialog } from '@angular/material/dialog';
24
24
  import { FormCloudDisplayModeConfiguration } from '../../services/form-fields.interfaces';
25
25
  import { FormCloudSpinnerService } from '../services/spinner/form-cloud-spinner.service';
26
26
  import { DisplayModeService } from '../services/display-mode.service';
27
- import { MatCheckboxChange } from '@angular/material/checkbox';
28
27
  import * as i0 from "@angular/core";
29
28
  export declare const FORM_CLOUD_FIELD_VALIDATORS_TOKEN: InjectionToken<FormFieldValidator[]>;
30
29
  export declare class FormCloudComponent extends FormBaseComponent implements OnChanges, OnInit {
@@ -42,10 +41,6 @@ export declare class FormCloudComponent extends FormBaseComponent implements OnC
42
41
  data: TaskVariableCloud[];
43
42
  /** The available display configurations for the form */
44
43
  displayModeConfigurations: FormCloudDisplayModeConfiguration[];
45
- /** Toggle rendering of the `Open next task` checkbox. */
46
- showNextTaskCheckbox: boolean;
47
- /** Whether the `Open next task` checkbox is checked by default or not. */
48
- isNextTaskCheckboxChecked: boolean;
49
44
  /** Toggle rendering of the `Complete` button. */
50
45
  showCompleteButton: boolean;
51
46
  /** Emitted when the form is submitted with the `Save` or custom outcomes. */
@@ -62,8 +57,6 @@ export declare class FormCloudComponent extends FormBaseComponent implements OnC
62
57
  displayModeOn: EventEmitter<FormCloudDisplayModeConfiguration>;
63
58
  /** Emitted when a display mode configuration is turned off. */
64
59
  displayModeOff: EventEmitter<FormCloudDisplayModeConfiguration>;
65
- /** Emitted when the `Open next task` checkbox was toggled. */
66
- nextTaskCheckboxCheckedChanged: EventEmitter<MatCheckboxChange>;
67
60
  protected subscriptions: Subscription[];
68
61
  nodeId: string;
69
62
  formCloudRepresentationJSON: any;
@@ -117,7 +110,6 @@ export declare class FormCloudComponent extends FormBaseComponent implements OnC
117
110
  switchToDisplayMode(newDisplayMode?: string): void;
118
111
  findDisplayConfiguration(displayMode?: string): FormCloudDisplayModeConfiguration;
119
112
  loadInjectedFieldValidators(injectedFieldValidators: FormFieldValidator[]): void;
120
- onNextTaskCheckboxCheckedChanged(event: MatCheckboxChange): void;
121
113
  static ɵfac: i0.ɵɵFactoryDeclaration<FormCloudComponent, [{ optional: true; }]>;
122
- static ɵcmp: i0.ɵɵComponentDeclaration<FormCloudComponent, "adf-cloud-form", never, { "appName": { "alias": "appName"; "required": false; }; "appVersion": { "alias": "appVersion"; "required": false; }; "formId": { "alias": "formId"; "required": false; }; "processInstanceId": { "alias": "processInstanceId"; "required": false; }; "taskId": { "alias": "taskId"; "required": false; }; "data": { "alias": "data"; "required": false; }; "displayModeConfigurations": { "alias": "displayModeConfigurations"; "required": false; }; "showNextTaskCheckbox": { "alias": "showNextTaskCheckbox"; "required": false; }; "isNextTaskCheckboxChecked": { "alias": "isNextTaskCheckboxChecked"; "required": false; }; "showCompleteButton": { "alias": "showCompleteButton"; "required": false; }; }, { "formSaved": "formSaved"; "formCompleted": "formCompleted"; "formLoaded": "formLoaded"; "formDataRefreshed": "formDataRefreshed"; "formContentClicked": "formContentClicked"; "displayModeOn": "displayModeOn"; "displayModeOff": "displayModeOff"; "nextTaskCheckboxCheckedChanged": "nextTaskCheckboxCheckedChanged"; }, never, ["[empty-form]", "adf-cloud-form-custom-outcomes"], true, never>;
114
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormCloudComponent, "adf-cloud-form", never, { "appName": { "alias": "appName"; "required": false; }; "appVersion": { "alias": "appVersion"; "required": false; }; "formId": { "alias": "formId"; "required": false; }; "processInstanceId": { "alias": "processInstanceId"; "required": false; }; "taskId": { "alias": "taskId"; "required": false; }; "data": { "alias": "data"; "required": false; }; "displayModeConfigurations": { "alias": "displayModeConfigurations"; "required": false; }; "showCompleteButton": { "alias": "showCompleteButton"; "required": false; }; }, { "formSaved": "formSaved"; "formCompleted": "formCompleted"; "formLoaded": "formLoaded"; "formDataRefreshed": "formDataRefreshed"; "formContentClicked": "formContentClicked"; "displayModeOn": "displayModeOn"; "displayModeOff": "displayModeOff"; }, never, ["[empty-form]", "adf-cloud-form-custom-outcomes"], true, never>;
123
115
  }
@@ -19,10 +19,6 @@
19
19
  display: flex;
20
20
  position: relative;
21
21
  }
22
-
23
- .adf-card-actions-spacer {
24
- flex: 1 1 auto;
25
- }
26
22
  }
27
23
 
28
24
  &-fullscreen-container {
@@ -24,7 +24,6 @@ import { Observable } from 'rxjs';
24
24
  import { ProcessDefinitionCloud } from '../../../models/process-definition-cloud.model';
25
25
  import { TaskVariableCloud } from '../../../form/models/task-variable-cloud.model';
26
26
  import { FormCloudDisplayModeConfiguration } from '../../../services/form-fields.interfaces';
27
- import { MatCheckboxChange } from '@angular/material/checkbox';
28
27
  import * as i0 from "@angular/core";
29
28
  export declare class StartProcessCloudComponent implements OnChanges, OnInit {
30
29
  private translateService;
@@ -52,10 +51,6 @@ export declare class StartProcessCloudComponent implements OnChanges, OnInit {
52
51
  * (start process event can have assigned form)
53
52
  */
54
53
  displayModeConfigurations: FormCloudDisplayModeConfiguration[];
55
- /** Toggle rendering of the `Open next task` checkbox. */
56
- showNextTaskCheckbox: boolean;
57
- /** Whether the `Open next task` checkbox is checked by default or not. */
58
- isNextTaskCheckboxChecked: boolean;
59
54
  /** Emitted when the process is successfully started. */
60
55
  success: EventEmitter<ProcessInstanceCloud>;
61
56
  /** Emitted when the starting process is cancelled */
@@ -66,8 +61,6 @@ export declare class StartProcessCloudComponent implements OnChanges, OnInit {
66
61
  formContentClicked: EventEmitter<ContentLinkModel>;
67
62
  /** Emitted when process definition selection changes. */
68
63
  processDefinitionSelection: EventEmitter<ProcessDefinitionCloud>;
69
- /** Emitted when the `Open next task` checkbox was toggled. */
70
- nextTaskCheckboxCheckedChanged: EventEmitter<MatCheckboxChange>;
71
64
  processDefinitionList: ProcessDefinitionCloud[];
72
65
  processDefinitionCurrent?: ProcessDefinitionCloud;
73
66
  errorMessageId: string;
@@ -135,7 +128,6 @@ export declare class StartProcessCloudComponent implements OnChanges, OnInit {
135
128
  processDefinitionSelectionChanged(processDefinition: ProcessDefinitionCloud): void;
136
129
  setDefaultProcessName(processDefinitionName: string): void;
137
130
  getDefaultProcessName(processNameFormat: string, processInstance?: ProcessInstanceCloud): string;
138
- onNextTaskCheckboxCheckedChanged(event: MatCheckboxChange): void;
139
131
  static ɵfac: i0.ɵɵFactoryDeclaration<StartProcessCloudComponent, never>;
140
- static ɵcmp: i0.ɵɵComponentDeclaration<StartProcessCloudComponent, "adf-cloud-start-process", never, { "appName": { "alias": "appName"; "required": false; }; "maxNameLength": { "alias": "maxNameLength"; "required": false; }; "name": { "alias": "name"; "required": false; }; "processDefinitionName": { "alias": "processDefinitionName"; "required": false; }; "variables": { "alias": "variables"; "required": false; }; "values": { "alias": "values"; "required": false; }; "showSelectProcessDropdown": { "alias": "showSelectProcessDropdown"; "required": false; }; "showTitle": { "alias": "showTitle"; "required": false; }; "showCancelButton": { "alias": "showCancelButton"; "required": false; }; "displayModeConfigurations": { "alias": "displayModeConfigurations"; "required": false; }; "showNextTaskCheckbox": { "alias": "showNextTaskCheckbox"; "required": false; }; "isNextTaskCheckboxChecked": { "alias": "isNextTaskCheckboxChecked"; "required": false; }; }, { "success": "success"; "cancel": "cancel"; "error": "error"; "formContentClicked": "formContentClicked"; "processDefinitionSelection": "processDefinitionSelection"; "nextTaskCheckboxCheckedChanged": "nextTaskCheckboxCheckedChanged"; }, never, never, true, never>;
132
+ static ɵcmp: i0.ɵɵComponentDeclaration<StartProcessCloudComponent, "adf-cloud-start-process", never, { "appName": { "alias": "appName"; "required": false; }; "maxNameLength": { "alias": "maxNameLength"; "required": false; }; "name": { "alias": "name"; "required": false; }; "processDefinitionName": { "alias": "processDefinitionName"; "required": false; }; "variables": { "alias": "variables"; "required": false; }; "values": { "alias": "values"; "required": false; }; "showSelectProcessDropdown": { "alias": "showSelectProcessDropdown"; "required": false; }; "showTitle": { "alias": "showTitle"; "required": false; }; "showCancelButton": { "alias": "showCancelButton"; "required": false; }; "displayModeConfigurations": { "alias": "displayModeConfigurations"; "required": false; }; }, { "success": "success"; "cancel": "cancel"; "error": "error"; "formContentClicked": "formContentClicked"; "processDefinitionSelection": "processDefinitionSelection"; }, never, never, true, never>;
141
133
  }
@@ -44,6 +44,18 @@ import * as i22 from "./task/task-form/components/task-form-cloud/task-form-clou
44
44
  import * as i23 from "./task/task-form/components/user-task-cloud/user-task-cloud.component";
45
45
  import * as i24 from "./people/components/people-cloud.component";
46
46
  export declare const PROCESS_SERVICES_CLOUD_DIRECTIVES: readonly [typeof import("@alfresco/adf-process-services-cloud").AppListCloudComponent, typeof import("@alfresco/adf-process-services-cloud").AppDetailsCloudComponent, typeof RichTextEditorComponent, typeof import("@alfresco/adf-process-services-cloud").FormSpinnerComponent, typeof import("@alfresco/adf-process-services-cloud").PropertiesViewerWrapperComponent, typeof import("@alfresco/adf-process-services-cloud").PropertiesViewerWidgetComponent, typeof import("@alfresco/adf-process-services-cloud").DisplayRichTextWidgetComponent, typeof import("@alfresco/adf-process-services-cloud").FileViewerWidgetComponent, typeof import("@alfresco/adf-process-services-cloud").FilePropertiesTableCloudComponent, typeof import("@alfresco/adf-process-services-cloud").FormCustomOutcomesComponent, typeof import("@alfresco/adf-process-services-cloud").FormDefinitionSelectorCloudComponent, typeof import("@alfresco/adf-process-services-cloud").RadioButtonsCloudWidgetComponent, typeof import("@alfresco/adf-process-services-cloud").AttachFileCloudWidgetComponent, typeof import("@alfresco/adf-process-services-cloud").UploadCloudWidgetComponent, typeof import("@alfresco/adf-process-services-cloud").PeopleCloudWidgetComponent, typeof import("@alfresco/adf-process-services-cloud").GroupCloudWidgetComponent, typeof import("@alfresco/adf-process-services-cloud").FormCloudComponent, typeof import("@alfresco/adf-process-services-cloud").UserTaskCloudButtonsComponent, typeof import("@alfresco/adf-process-services-cloud").TaskFormCloudComponent, typeof import("@alfresco/adf-process-services-cloud").UserTaskCloudComponent, typeof PeopleCloudComponent, typeof RichTextEditorComponent];
47
+ /**
48
+ * @deprecated this module is deprecated and will be removed in the future versions
49
+ *
50
+ * Instead, import the standalone components directly, or use the following provider API to replicate the behaviour:
51
+ *
52
+ * providers: [
53
+ * provideTranslations('adf-process-services-cloud', 'assets/adf-process-services-cloud')
54
+ * provideCloudPreferences()
55
+ * provideCloudFormRenderer(),
56
+ * { provide: TASK_LIST_CLOUD_TOKEN, useClass: TaskListCloudService }
57
+ * ]
58
+ */
47
59
  export declare class ProcessServicesCloudModule {
48
60
  static forRoot(filterPreferenceServiceInstance?: PreferenceCloudServiceInterface, listPreferenceServiceInstance?: PreferenceCloudServiceInterface): ModuleWithProviders<ProcessServicesCloudModule>;
49
61
  static forChild(): ModuleWithProviders<ProcessServicesCloudModule>;
@@ -0,0 +1,36 @@
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 { PreferenceCloudServiceInterface } from './services/preference-cloud.interface';
18
+ import { Provider } from '@angular/core';
19
+ /**
20
+ * Provides preferences service for the process services cloud components
21
+ *
22
+ * @param opts Optional settings
23
+ * @param opts.filterPreferenceServiceInstance Custom filter instance for `PROCESS_FILTERS_SERVICE_TOKEN` and `TASK_FILTERS_SERVICE_TOKEN` (default: LocalPreferenceCloudService)
24
+ * @param opts.listPreferenceServiceInstance Custom filter instance for `PROCESS_LISTS_PREFERENCES_SERVICE_TOKEN` and `TASK_LIST_PREFERENCES_SERVICE_TOKEN` (default: LocalPreferenceCloudService)
25
+ * @returns list of providers
26
+ */
27
+ export declare function provideCloudPreferences(opts?: {
28
+ filterPreferenceServiceInstance?: PreferenceCloudServiceInterface;
29
+ listPreferenceServiceInstance?: PreferenceCloudServiceInterface;
30
+ }): Provider[];
31
+ /**
32
+ * Provides form rendering services for process cloud components
33
+ *
34
+ * @returns list of providers
35
+ */
36
+ export declare function provideCloudFormRenderer(): Provider[];
@@ -20,7 +20,6 @@ import { FormCloudComponent } from '../../../../form/components/form-cloud.compo
20
20
  import { FormCloudDisplayModeConfiguration } from '../../../../services/form-fields.interfaces';
21
21
  import { TaskCloudService } from '../../../services/task-cloud.service';
22
22
  import { TaskDetailsCloudModel } from '../../../models/task-details-cloud.model';
23
- import { MatCheckboxChange } from '@angular/material/checkbox';
24
23
  import * as i0 from "@angular/core";
25
24
  export declare class TaskFormCloudComponent {
26
25
  private taskCloudService;
@@ -51,10 +50,6 @@ export declare class TaskFormCloudComponent {
51
50
  displayModeConfigurations: FormCloudDisplayModeConfiguration[];
52
51
  /** Task details. */
53
52
  taskDetails: TaskDetailsCloudModel;
54
- /** Toggle rendering of the `Open next task` checkbox. */
55
- showNextTaskCheckbox: boolean;
56
- /** Whether the `Open next task` checkbox is checked by default or not. */
57
- isNextTaskCheckboxChecked: boolean;
58
53
  /** Emitted when the form is saved. */
59
54
  formSaved: EventEmitter<FormModel>;
60
55
  /** Emitted when the form is submitted with the `Complete` outcome. */
@@ -80,8 +75,6 @@ export declare class TaskFormCloudComponent {
80
75
  displayModeOn: EventEmitter<FormCloudDisplayModeConfiguration>;
81
76
  /** Emitted when a display mode configuration is turned off. */
82
77
  displayModeOff: EventEmitter<FormCloudDisplayModeConfiguration>;
83
- /** Emitted when the `Open next task` checkbox was toggled. */
84
- nextTaskCheckboxCheckedChanged: EventEmitter<MatCheckboxChange>;
85
78
  adfCloudForm: FormCloudComponent;
86
79
  loading: boolean;
87
80
  constructor(taskCloudService: TaskCloudService, formRenderingService: FormRenderingService);
@@ -105,7 +98,6 @@ export declare class TaskFormCloudComponent {
105
98
  switchToDisplayMode(newDisplayMode?: string): void;
106
99
  onDisplayModeOn(displayModeConfiguration: FormCloudDisplayModeConfiguration): void;
107
100
  onDisplayModeOff(displayModeConfiguration: FormCloudDisplayModeConfiguration): void;
108
- onNextTaskCheckboxCheckedChanged(event: MatCheckboxChange): void;
109
101
  static ɵfac: i0.ɵɵFactoryDeclaration<TaskFormCloudComponent, never>;
110
- 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; }; "readOnly": { "alias": "readOnly"; "required": false; }; "displayModeConfigurations": { "alias": "displayModeConfigurations"; "required": false; }; "taskDetails": { "alias": "taskDetails"; "required": false; }; "showNextTaskCheckbox": { "alias": "showNextTaskCheckbox"; "required": false; }; "isNextTaskCheckboxChecked": { "alias": "isNextTaskCheckboxChecked"; "required": false; }; }, { "formSaved": "formSaved"; "formCompleted": "formCompleted"; "taskCompleted": "taskCompleted"; "taskClaimed": "taskClaimed"; "taskUnclaimed": "taskUnclaimed"; "cancelClick": "cancelClick"; "error": "error"; "formContentClicked": "formContentClicked"; "executeOutcome": "executeOutcome"; "displayModeOn": "displayModeOn"; "displayModeOff": "displayModeOff"; "nextTaskCheckboxCheckedChanged": "nextTaskCheckboxCheckedChanged"; }, never, never, true, never>;
102
+ 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; }; "readOnly": { "alias": "readOnly"; "required": false; }; "displayModeConfigurations": { "alias": "displayModeConfigurations"; "required": false; }; "taskDetails": { "alias": "taskDetails"; "required": false; }; }, { "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>;
111
103
  }
@@ -41,7 +41,7 @@ export declare class UserTaskCloudComponent implements OnInit, OnChanges {
41
41
  showCancelButton: boolean;
42
42
  /** Toggle rendering of the `Complete` button. */
43
43
  showCompleteButton: boolean;
44
- /** Toggle rendering of the `Open next task` checkbox. */
44
+ /** Toggle rendering of the `Open next task` checkbox (for screens only). */
45
45
  showNextTaskCheckbox: boolean;
46
46
  /** Whether the `Open next task` checkbox is checked by default or not. */
47
47
  isNextTaskCheckboxChecked: boolean;
@@ -87,11 +87,6 @@ export declare class UserTaskCloudComponent implements OnInit, OnChanges {
87
87
  readonly Screen: "screen";
88
88
  readonly None: "";
89
89
  };
90
- /**
91
- * The `Open next task` feature is currently disabled for forms only.
92
- * See https://hyland.atlassian.net/browse/AAE-34514 for further details.
93
- */
94
- readonly nextTaskCheckboxForFormsActivated = false;
95
90
  private taskCloudService;
96
91
  private readonly destroyRef;
97
92
  ngOnChanges(changes: SimpleChanges): void;
@@ -4,10 +4,6 @@
4
4
  > div {
5
5
  height: 100%;
6
6
  }
7
-
8
- .adf-card-actions-spacer {
9
- flex: 1 1 auto;
10
- }
11
7
  }
12
8
 
13
9
  .adf-user-task-cloud-spinner {
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.1.0-16346981764",
4
+ "version": "8.1.0-16445172226",
5
5
  "author": "Hyland Software, Inc. and its affiliates",
6
6
  "repository": {
7
7
  "type": "git",
@@ -37,9 +37,9 @@
37
37
  "@angular/platform-browser": ">=14.1.3",
38
38
  "@angular/platform-browser-dynamic": ">=14.1.3",
39
39
  "@angular/router": ">=14.1.3",
40
- "@alfresco/js-api": ">=9.1.0-16346981764",
41
- "@alfresco/adf-core": ">=8.1.0-16346981764",
42
- "@alfresco/adf-content-services": ">=8.1.0-16346981764",
40
+ "@alfresco/js-api": ">=9.1.0-16445172226",
41
+ "@alfresco/adf-core": ">=8.1.0-16445172226",
42
+ "@alfresco/adf-content-services": ">=8.1.0-16445172226",
43
43
  "@apollo/client": ">=3.7.2",
44
44
  "@ngx-translate/core": ">=14.0.0",
45
45
  "apollo-angular": ">=4.0.1"
package/public-api.d.ts CHANGED
@@ -37,3 +37,4 @@ export * from './lib/models/process-instance-variable.model';
37
37
  export * from './lib/models/variable-definition';
38
38
  export * from './lib/models/date-format-cloud.model';
39
39
  export * from './lib/models/process-variable-filter.model';
40
+ export * from './lib/providers';